diff --git a/index.html b/index.html index 89f5bf2..415bed3 100644 --- a/index.html +++ b/index.html @@ -23,7 +23,7 @@ - + Skip to the content. diff --git a/pad/assets/AboutView-WUaYhNug.js b/pad/assets/AboutView-Ca9Yn8Fv.js similarity index 84% rename from pad/assets/AboutView-WUaYhNug.js rename to pad/assets/AboutView-Ca9Yn8Fv.js index b02c4a7..3435665 100644 --- a/pad/assets/AboutView-WUaYhNug.js +++ b/pad/assets/AboutView-Ca9Yn8Fv.js @@ -1 +1 @@ -import{_ as o,c as e,o as a,F as n,a as t}from"./index-Bj4K-MQD.js";const s={},c=t("h1",null,"OntoPad",-1),l=t("ul",null,[t("li",null,[t("a",{href:"https://github.com/AKSW/OntoPad/"},"https://github.com/AKSW/OntoPad/")]),t("li",null,[t("a",{href:"https://ontopad.aksw.org/"},"https://ontopad.aksw.org/")])],-1);function r(_,h){return a(),e(n,null,[c,l],64)}const d=o(s,[["render",r]]);export{d as default}; +import{_ as o,c as e,o as a,F as n,a as t}from"./index-BSywqiEU.js";const s={},c=t("h1",null,"OntoPad",-1),l=t("ul",null,[t("li",null,[t("a",{href:"https://github.com/AKSW/OntoPad/"},"https://github.com/AKSW/OntoPad/")]),t("li",null,[t("a",{href:"https://ontopad.aksw.org/"},"https://ontopad.aksw.org/")])],-1);function r(_,h){return a(),e(n,null,[c,l],64)}const d=o(s,[["render",r]]);export{d as default}; diff --git a/pad/assets/DashboardView-CezIPe5R.js b/pad/assets/DashboardView-CbSvJWll.js similarity index 95% rename from pad/assets/DashboardView-CezIPe5R.js rename to pad/assets/DashboardView-CbSvJWll.js index eb56193..0ef223a 100644 --- a/pad/assets/DashboardView-CezIPe5R.js +++ b/pad/assets/DashboardView-CbSvJWll.js @@ -1 +1 @@ -import{T as R}from"./Term-D5UpjgJn.js";import{u as k,b as _,f as d,m as C,q as S,_ as f,r as y,o as n,c,a as t,t as M,d as o,F as w,e as N,g as j,w as i,h as m,i as p,M as v,p as I,j as V}from"./index-Bj4K-MQD.js";import D from"./InstanceList-0bHU3vsR.js";const Q={name:"PropertyView",setup(){const e=k(),a=_();return{store:e,selection:a}},components:{Term:R},data(){return{dataModel:{},subject:d.namedNode("")}},computed:{...C(_,["resource_iri"]),label(){if(this.dataModel.getQuads!==void 0){const e=this.dataModel.getQuads(d.namedNode(this.resource_iri),d.namedNode("http://www.w3.org/2000/01/rdf-schema#label"),null)[0];if(e)return e.object}return""},description(){if(this.dataModel.getQuads!==void 0){const e=this.dataModel.getQuads(d.namedNode(this.resource_iri),d.namedNode("http://www.w3.org/2000/01/rdf-schema#comment"),null)[0];if(e)return e.object}return""}},mounted(){this.getResource()},watch:{resource_iri(e){this.getResource()}},methods:{async getResource(){this.subject=d.namedNode(this.resource_iri),console.log("get resource: "+this.resource_iri);const e=await this.store.getResource(this.resource_iri);this.dataModel=(await S(e)).store},selectResource(e){this.selection.changeResourceIri(e)}}},U=t("dt",null,"IRI",-1),T=t("dt",null,"Label",-1),x=t("dt",null,"Description",-1),B={key:0,width:"100%"},P=t("tr",null,[t("th",{scope:"col",width:"45%"},"Predicate"),t("th",{scope:"col",width:"auto"},"Object")],-1);function q(e,a,g,O,h,r){const l=y("Term");return n(),c("div",null,[t("dl",null,[U,t("dd",null,M(e.resource_iri),1),T,t("dd",null,[o(l,{term:r.label,"onUpdate:term":a[0]||(a[0]=s=>r.label=s),onClick:r.selectResource},null,8,["term","onClick"])]),x,t("dd",null,[o(l,{term:r.description,"onUpdate:term":a[1]||(a[1]=s=>r.description=s),onClick:r.selectResource},null,8,["term","onClick"])])]),h.dataModel.getQuads!==void 0?(n(),c("table",B,[P,(n(!0),c(w,null,N(h.dataModel.getQuads(null,null,null),(s,b)=>(n(),c("tr",{key:b},[t("td",null,[o(l,{term:s.predicate,"onUpdate:term":u=>s.predicate=u,onClick:r.selectResource},null,8,["term","onUpdate:term","onClick"])]),t("td",null,[o(l,{term:s.object,"onUpdate:term":u=>s.object=u,onClick:r.selectResource},null,8,["term","onUpdate:term","onClick"])])]))),128))])):j("",!0)])}const z=f(Q,[["render",q]]),F=e=>(I("data-v-f8555f28"),e=e(),V(),e),L=F(()=>t("strong",null,"Resource Dashboard",-1)),E={__name:"DashboardView",setup(e){return(a,g)=>(n(),c(w,null,[L,o(m(v),{class:"default-theme"},{default:i(()=>[o(m(p),{size:"70"},{default:i(()=>[o(z)]),_:1}),o(m(p),{size:"30"},{default:i(()=>[o(D,{style:{height:"80vh","overflow-y":"scroll"}})]),_:1})]),_:1})],64))}},J=f(E,[["__scopeId","data-v-f8555f28"]]);export{J as default}; +import{T as R}from"./Term-Cnp3cOVO.js";import{u as k,b as _,f as d,m as C,q as S,_ as f,r as y,o as n,c,a as t,t as M,d as o,F as w,e as N,g as j,w as i,h as m,i as p,M as v,p as I,j as V}from"./index-BSywqiEU.js";import D from"./InstanceList-Bq0sFaoV.js";const Q={name:"PropertyView",setup(){const e=k(),a=_();return{store:e,selection:a}},components:{Term:R},data(){return{dataModel:{},subject:d.namedNode("")}},computed:{...C(_,["resource_iri"]),label(){if(this.dataModel.getQuads!==void 0){const e=this.dataModel.getQuads(d.namedNode(this.resource_iri),d.namedNode("http://www.w3.org/2000/01/rdf-schema#label"),null)[0];if(e)return e.object}return""},description(){if(this.dataModel.getQuads!==void 0){const e=this.dataModel.getQuads(d.namedNode(this.resource_iri),d.namedNode("http://www.w3.org/2000/01/rdf-schema#comment"),null)[0];if(e)return e.object}return""}},mounted(){this.getResource()},watch:{resource_iri(e){this.getResource()}},methods:{async getResource(){this.subject=d.namedNode(this.resource_iri),console.log("get resource: "+this.resource_iri);const e=await this.store.getResource(this.resource_iri);this.dataModel=(await S(e)).store},selectResource(e){this.selection.changeResourceIri(e)}}},U=t("dt",null,"IRI",-1),T=t("dt",null,"Label",-1),x=t("dt",null,"Description",-1),B={key:0,width:"100%"},P=t("tr",null,[t("th",{scope:"col",width:"45%"},"Predicate"),t("th",{scope:"col",width:"auto"},"Object")],-1);function q(e,a,g,O,h,r){const l=y("Term");return n(),c("div",null,[t("dl",null,[U,t("dd",null,M(e.resource_iri),1),T,t("dd",null,[o(l,{term:r.label,"onUpdate:term":a[0]||(a[0]=s=>r.label=s),onClick:r.selectResource},null,8,["term","onClick"])]),x,t("dd",null,[o(l,{term:r.description,"onUpdate:term":a[1]||(a[1]=s=>r.description=s),onClick:r.selectResource},null,8,["term","onClick"])])]),h.dataModel.getQuads!==void 0?(n(),c("table",B,[P,(n(!0),c(w,null,N(h.dataModel.getQuads(null,null,null),(s,b)=>(n(),c("tr",{key:b},[t("td",null,[o(l,{term:s.predicate,"onUpdate:term":u=>s.predicate=u,onClick:r.selectResource},null,8,["term","onUpdate:term","onClick"])]),t("td",null,[o(l,{term:s.object,"onUpdate:term":u=>s.object=u,onClick:r.selectResource},null,8,["term","onUpdate:term","onClick"])])]))),128))])):j("",!0)])}const z=f(Q,[["render",q]]),F=e=>(I("data-v-f8555f28"),e=e(),V(),e),L=F(()=>t("strong",null,"Resource Dashboard",-1)),E={__name:"DashboardView",setup(e){return(a,g)=>(n(),c(w,null,[L,o(m(v),{class:"default-theme"},{default:i(()=>[o(m(p),{size:"70"},{default:i(()=>[o(z)]),_:1}),o(m(p),{size:"30"},{default:i(()=>[o(D,{style:{height:"80vh","overflow-y":"scroll"}})]),_:1})]),_:1})],64))}},J=f(E,[["__scopeId","data-v-f8555f28"]]);export{J as default}; diff --git a/pad/assets/EditForm-DnRif1LP.js b/pad/assets/EditForm-DnRif1LP.js deleted file mode 100644 index 8541a7c..0000000 --- a/pad/assets/EditForm-DnRif1LP.js +++ /dev/null @@ -1,5 +0,0 @@ -import{_ as g,u as f,T as y,f as n,m as k,r as v,c as i,a as e,d as m,F as h,e as w,g as b,C as _,t as u,b as j,o as l}from"./index-Bj4K-MQD.js";import{l as M,d as R}from"./n3-compare-ntaMYPFI.js";const C={name:"EditForm",setup(){return{store:f()}},components:{TermInput:y},mounted(){this.getResource()},watch:{resource_iri(s){this.getResource()}},data(){return{debug:!1,subject:n.namedNode(""),originalDataModel:[],dataModel:[]}},computed:{...k(j,["graph_iri","resource_iri"])},methods:{newTriple(s){s||(s=0),this.dataModel.splice(s+1,0,n.quad(this.subject,n.namedNode(""),n.namedNode(""),n.namedNode(this.graph_iri)))},delTriple(s){this.dataModel.splice(s,1)},async getResource(){this.subject=n.namedNode(this.resource_iri),this.originalDataModel=await(await this.store.getResource(this.resource_iri)).toArray(),this.dataModel=M.cloneDeep(this.originalDataModel)},async updateResource(){const s=R(this.originalDataModel,this.dataModel);try{await this.store.deleteInsertData({deleteArray:s.del,insertArray:s.add}),this.getResource()}catch(t){console.error(t)}}}},T={class:"Form"},N=e("label",{for:"resourceUriInput"},"Resource IRI (Subject)",-1),D={width:"100%"},I=e("tr",null,[e("th",{scope:"col",width:"45%"},"Predicate"),e("th",{scope:"col",width:"auto"},"Object"),e("th",{scope:"col",width:"90px"})],-1),U=["onClick"],S=["onClick"],F={key:1},E={style:{overflow:"scroll",height:"400px"}},V={class:"container"},A={class:"row"},B={class:"col"},q={class:"col"};function x(s,t,L,O,o,d){const p=v("TermInput");return l(),i(h,null,[e("div",T,[e("form",null,[N,m(p,{term:o.subject,"onUpdate:term":t[0]||(t[0]=r=>o.subject=r),type:"iri",id:"resourceUriInput"},null,8,["term"]),e("table",D,[I,(l(!0),i(h,null,w(o.dataModel,(r,a)=>(l(),i("tr",{key:a},[e("td",null,[m(p,{id:"form-pred-"+a,term:r.predicate,"onUpdate:term":c=>r.predicate=c,type:"iri"},null,8,["id","term","onUpdate:term"])]),e("td",null,[m(p,{id:"form-obj-"+a,term:r.object,"onUpdate:term":c=>r.object=c},null,8,["id","term","onUpdate:term"])]),e("td",null,[e("button",{type:"button",class:"btn btn-outline-dark mb-0",onClick:c=>d.newTriple(a)},"+",8,U),e("button",{type:"button",class:"btn btn-outline-dark mb-0",onClick:c=>d.delTriple(a)},"-",8,S)])]))),128))]),o.dataModel.length<1?(l(),i("button",{key:0,type:"button",class:"btn btn-outline-dark mb-0",onClick:t[1]||(t[1]=r=>d.newTriple())},"+")):b("",!0),e("button",{type:"button",class:"btn btn-outline-primary mb-0",onClick:t[2]||(t[2]=(...r)=>d.updateResource&&d.updateResource(...r))},"Update Resource")])]),o.debug==!1?(l(),i("a",{key:0,onClick:t[3]||(t[3]=r=>o.debug=!0)},"(show debug)")):b("",!0),o.debug?(l(),i("div",F,[e("a",{onClick:t[4]||(t[4]=r=>o.debug=!1)},"(hide debug)"),e("div",E,[e("div",V,[e("div",A,[e("div",B,[_(" new "),e("pre",null,"subject: "+u(o.subject)+` -`+u(o.dataModel)+` - `,1)]),e("div",q,[_(" old "),e("pre",null,"subject: "+u(o.subject)+` -`+u(o.originalDataModel)+` - `,1)])])])])])):b("",!0)],64)}const G=g(C,[["render",x]]);export{G as default}; diff --git a/pad/assets/EditForm-YneyvUd-.js b/pad/assets/EditForm-YneyvUd-.js new file mode 100644 index 0000000..fe6beb8 --- /dev/null +++ b/pad/assets/EditForm-YneyvUd-.js @@ -0,0 +1,5 @@ +import{_ as f,u as g,T as y,f as n,m as k,r as v,c as i,a as e,d as m,F as h,e as w,g as b,C as _,t as u,b as j,o as l}from"./index-BSywqiEU.js";import{l as M}from"./lodash-B15SRsdl.js";import{d as R}from"./n3-compare-Dh5Sa1pm.js";const C={name:"EditForm",setup(){return{store:g()}},components:{TermInput:y},mounted(){this.getResource()},watch:{resource_iri(s){this.getResource()}},data(){return{debug:!1,subject:n.namedNode(""),originalDataModel:[],dataModel:[]}},computed:{...k(j,["graph_iri","resource_iri"])},methods:{newTriple(s){s||(s=0),this.dataModel.splice(s+1,0,n.quad(this.subject,n.namedNode(""),n.namedNode(""),n.namedNode(this.graph_iri)))},delTriple(s){this.dataModel.splice(s,1)},async getResource(){this.subject=n.namedNode(this.resource_iri),this.originalDataModel=await(await this.store.getResource(this.resource_iri)).toArray(),this.dataModel=M.cloneDeep(this.originalDataModel)},async updateResource(){const s=R(this.originalDataModel,this.dataModel);try{await this.store.deleteInsertData({deleteArray:s.del,insertArray:s.add}),this.getResource()}catch(t){console.error(t)}}}},T={class:"Form"},N=e("label",{for:"resourceUriInput"},"Resource IRI (Subject)",-1),D={width:"100%"},I=e("tr",null,[e("th",{scope:"col",width:"45%"},"Predicate"),e("th",{scope:"col",width:"auto"},"Object"),e("th",{scope:"col",width:"90px"})],-1),U=["onClick"],S=["onClick"],F={key:1},E={style:{overflow:"scroll",height:"400px"}},V={class:"container"},A={class:"row"},B={class:"col"},q={class:"col"};function x(s,t,L,O,o,d){const p=v("TermInput");return l(),i(h,null,[e("div",T,[e("form",null,[N,m(p,{term:o.subject,"onUpdate:term":t[0]||(t[0]=r=>o.subject=r),type:"iri",id:"resourceUriInput"},null,8,["term"]),e("table",D,[I,(l(!0),i(h,null,w(o.dataModel,(r,a)=>(l(),i("tr",{key:a},[e("td",null,[m(p,{id:"form-pred-"+a,term:r.predicate,"onUpdate:term":c=>r.predicate=c,type:"iri"},null,8,["id","term","onUpdate:term"])]),e("td",null,[m(p,{id:"form-obj-"+a,term:r.object,"onUpdate:term":c=>r.object=c},null,8,["id","term","onUpdate:term"])]),e("td",null,[e("button",{type:"button",class:"btn btn-outline-dark mb-0",onClick:c=>d.newTriple(a)},"+",8,U),e("button",{type:"button",class:"btn btn-outline-dark mb-0",onClick:c=>d.delTriple(a)},"-",8,S)])]))),128))]),o.dataModel.length<1?(l(),i("button",{key:0,type:"button",class:"btn btn-outline-dark mb-0",onClick:t[1]||(t[1]=r=>d.newTriple())},"+")):b("",!0),e("button",{type:"button",class:"btn btn-outline-primary mb-0",onClick:t[2]||(t[2]=(...r)=>d.updateResource&&d.updateResource(...r))},"Update Resource")])]),o.debug==!1?(l(),i("a",{key:0,onClick:t[3]||(t[3]=r=>o.debug=!0)},"(show debug)")):b("",!0),o.debug?(l(),i("div",F,[e("a",{onClick:t[4]||(t[4]=r=>o.debug=!1)},"(hide debug)"),e("div",E,[e("div",V,[e("div",A,[e("div",B,[_(" new "),e("pre",null,"subject: "+u(o.subject)+` +`+u(o.dataModel)+` + `,1)]),e("div",q,[_(" old "),e("pre",null,"subject: "+u(o.subject)+` +`+u(o.originalDataModel)+` + `,1)])])])])])):b("",!0)],64)}const H=f(C,[["render",x]]);export{H as default}; diff --git a/pad/assets/FormDemo-8IUc-wZZ.js b/pad/assets/FormDemo-DgM9bpNm.js similarity index 99% rename from pad/assets/FormDemo-8IUc-wZZ.js rename to pad/assets/FormDemo-DgM9bpNm.js index c3d6dda..93e9554 100644 --- a/pad/assets/FormDemo-8IUc-wZZ.js +++ b/pad/assets/FormDemo-DgM9bpNm.js @@ -1,4 +1,4 @@ -import{T as fn}from"./Term-D5UpjgJn.js";import{L as pn,_ as gn,u as mn,b as wr,M as yn,i as bn,f as gt,m as vn,q as wn,N as _n,O as xn,P as Sn,Q as jn,r as mt,n as In,w as Ct,o as En,d as yt,a as We,t as Nn}from"./index-Bj4K-MQD.js";import Tn from"./InstanceList-0bHU3vsR.js";/*! For license information please see form-default.js.LICENSE.txt */var Rn={5568:s=>{const{AbortController:e,AbortSignal:t}=typeof self<"u"?self:typeof window<"u"?window:void 0;s.exports=e,s.exports.AbortSignal=t,s.exports.default=e},7526:(s,e)=>{e.byteLength=function(o){var c=d(o),p=c[0],v=c[1];return 3*(p+v)/4-v},e.toByteArray=function(o){var c,p,v=d(o),f=v[0],h=v[1],w=new n(function(j,A,Q){return 3*(A+Q)/4-Q}(0,f,h)),g=0,x=h>0?f-4:f;for(p=0;p>16&255,w[g++]=c>>8&255,w[g++]=255&c;return h===2&&(c=r[o.charCodeAt(p)]<<2|r[o.charCodeAt(p+1)]>>4,w[g++]=255&c),h===1&&(c=r[o.charCodeAt(p)]<<10|r[o.charCodeAt(p+1)]<<4|r[o.charCodeAt(p+2)]>>2,w[g++]=c>>8&255,w[g++]=255&c),w},e.fromByteArray=function(o){for(var c,p=o.length,v=p%3,f=[],h=16383,w=0,g=p-v;wg?g:w+h));return v===1?(c=o[p-1],f.push(t[c>>2]+t[c<<4&63]+"==")):v===2&&(c=(o[p-2]<<8)+o[p-1],f.push(t[c>>10]+t[c>>4&63]+t[c<<2&63]+"=")),f.join("")};for(var t=[],r=[],n=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0;l<64;++l)t[l]=a[l],r[a.charCodeAt(l)]=l;function d(o){var c=o.length;if(c%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var p=o.indexOf("=");return p===-1&&(p=c),[p,p===c?0:4-p%4]}function i(o,c,p){for(var v,f,h=[],w=c;w>18&63]+t[f>>12&63]+t[f>>6&63]+t[63&f]);return h.join("")}r[45]=62,r[95]=63},8287:(s,e,t)=>{const r=t(7526),n=t(251),a=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=i,e.SlowBuffer=function(u){return+u!=u&&(u=0),i.alloc(+u)},e.INSPECT_MAX_BYTES=50;const l=2147483647;function d(u){if(u>l)throw new RangeError('The value "'+u+'" is invalid for option "size"');const m=new Uint8Array(u);return Object.setPrototypeOf(m,i.prototype),m}function i(u,m,_){if(typeof u=="number"){if(typeof m=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return p(u)}return o(u,m,_)}function o(u,m,_){if(typeof u=="string")return function(re,ce){if(typeof ce=="string"&&ce!==""||(ce="utf8"),!i.isEncoding(ce))throw new TypeError("Unknown encoding: "+ce);const he=0|w(re,ce);let pe=d(he);const me=pe.write(re,ce);return me!==he&&(pe=pe.slice(0,me)),pe}(u,m);if(ArrayBuffer.isView(u))return function(re){if(R(re,Uint8Array)){const ce=new Uint8Array(re);return f(ce.buffer,ce.byteOffset,ce.byteLength)}return v(re)}(u);if(u==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof u);if(R(u,ArrayBuffer)||u&&R(u.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(R(u,SharedArrayBuffer)||u&&R(u.buffer,SharedArrayBuffer)))return f(u,m,_);if(typeof u=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const F=u.valueOf&&u.valueOf();if(F!=null&&F!==u)return i.from(F,m,_);const G=function(re){if(i.isBuffer(re)){const ce=0|h(re.length),he=d(ce);return he.length===0||re.copy(he,0,0,ce),he}return re.length!==void 0?typeof re.length!="number"||ne(re.length)?d(0):v(re):re.type==="Buffer"&&Array.isArray(re.data)?v(re.data):void 0}(u);if(G)return G;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof u[Symbol.toPrimitive]=="function")return i.from(u[Symbol.toPrimitive]("string"),m,_);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof u)}function c(u){if(typeof u!="number")throw new TypeError('"size" argument must be of type number');if(u<0)throw new RangeError('The value "'+u+'" is invalid for option "size"')}function p(u){return c(u),d(u<0?0:0|h(u))}function v(u){const m=u.length<0?0:0|h(u.length),_=d(m);for(let F=0;F=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return 0|u}function w(u,m){if(i.isBuffer(u))return u.length;if(ArrayBuffer.isView(u)||R(u,ArrayBuffer))return u.byteLength;if(typeof u!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof u);const _=u.length,F=arguments.length>2&&arguments[2]===!0;if(!F&&_===0)return 0;let G=!1;for(;;)switch(m){case"ascii":case"latin1":case"binary":return _;case"utf8":case"utf-8":return W(u).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*_;case"hex":return _>>>1;case"base64":return z(u).length;default:if(G)return F?-1:W(u).length;m=(""+m).toLowerCase(),G=!0}}function g(u,m,_){let F=!1;if((m===void 0||m<0)&&(m=0),m>this.length||((_===void 0||_>this.length)&&(_=this.length),_<=0)||(_>>>=0)<=(m>>>=0))return"";for(u||(u="utf8");;)switch(u){case"hex":return se(this,m,_);case"utf8":case"utf-8":return b(this,m,_);case"ascii":return N(this,m,_);case"latin1":case"binary":return K(this,m,_);case"base64":return k(this,m,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q(this,m,_);default:if(F)throw new TypeError("Unknown encoding: "+u);u=(u+"").toLowerCase(),F=!0}}function x(u,m,_){const F=u[m];u[m]=u[_],u[_]=F}function j(u,m,_,F,G){if(u.length===0)return-1;if(typeof _=="string"?(F=_,_=0):_>2147483647?_=2147483647:_<-2147483648&&(_=-2147483648),ne(_=+_)&&(_=G?0:u.length-1),_<0&&(_=u.length+_),_>=u.length){if(G)return-1;_=u.length-1}else if(_<0){if(!G)return-1;_=0}if(typeof m=="string"&&(m=i.from(m,F)),i.isBuffer(m))return m.length===0?-1:A(u,m,_,F,G);if(typeof m=="number")return m&=255,typeof Uint8Array.prototype.indexOf=="function"?G?Uint8Array.prototype.indexOf.call(u,m,_):Uint8Array.prototype.lastIndexOf.call(u,m,_):A(u,[m],_,F,G);throw new TypeError("val must be string, number or Buffer")}function A(u,m,_,F,G){let re,ce=1,he=u.length,pe=m.length;if(F!==void 0&&((F=String(F).toLowerCase())==="ucs2"||F==="ucs-2"||F==="utf16le"||F==="utf-16le")){if(u.length<2||m.length<2)return-1;ce=2,he/=2,pe/=2,_/=2}function me(ge,_e){return ce===1?ge[_e]:ge.readUInt16BE(_e*ce)}if(G){let ge=-1;for(re=_;rehe&&(_=he-pe),re=_;re>=0;re--){let ge=!0;for(let _e=0;_eG&&(F=G):F=G;const re=m.length;let ce;for(F>re/2&&(F=re/2),ce=0;ce>8,pe=ce%256,me.push(pe),me.push(he);return me}(m,u.length-_),u,_,F)}function k(u,m,_){return m===0&&_===u.length?r.fromByteArray(u):r.fromByteArray(u.slice(m,_))}function b(u,m,_){_=Math.min(u.length,_);const F=[];let G=m;for(;G<_;){const re=u[G];let ce=null,he=re>239?4:re>223?3:re>191?2:1;if(G+he<=_){let pe,me,ge,_e;switch(he){case 1:re<128&&(ce=re);break;case 2:pe=u[G+1],(192&pe)==128&&(_e=(31&re)<<6|63&pe,_e>127&&(ce=_e));break;case 3:pe=u[G+1],me=u[G+2],(192&pe)==128&&(192&me)==128&&(_e=(15&re)<<12|(63&pe)<<6|63&me,_e>2047&&(_e<55296||_e>57343)&&(ce=_e));break;case 4:pe=u[G+1],me=u[G+2],ge=u[G+3],(192&pe)==128&&(192&me)==128&&(192&ge)==128&&(_e=(15&re)<<18|(63&pe)<<12|(63&me)<<6|63&ge,_e>65535&&_e<1114112&&(ce=_e))}}ce===null?(ce=65533,he=1):ce>65535&&(ce-=65536,F.push(ce>>>10&1023|55296),ce=56320|1023&ce),F.push(ce),G+=he}return function(re){const ce=re.length;if(ce<=L)return String.fromCharCode.apply(String,re);let he="",pe=0;for(;pe"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(i.prototype,"parent",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.buffer}}),Object.defineProperty(i.prototype,"offset",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.byteOffset}}),i.poolSize=8192,i.from=function(u,m,_){return o(u,m,_)},Object.setPrototypeOf(i.prototype,Uint8Array.prototype),Object.setPrototypeOf(i,Uint8Array),i.alloc=function(u,m,_){return function(F,G,re){return c(F),F<=0?d(F):G!==void 0?typeof re=="string"?d(F).fill(G,re):d(F).fill(G):d(F)}(u,m,_)},i.allocUnsafe=function(u){return p(u)},i.allocUnsafeSlow=function(u){return p(u)},i.isBuffer=function(u){return u!=null&&u._isBuffer===!0&&u!==i.prototype},i.compare=function(u,m){if(R(u,Uint8Array)&&(u=i.from(u,u.offset,u.byteLength)),R(m,Uint8Array)&&(m=i.from(m,m.offset,m.byteLength)),!i.isBuffer(u)||!i.isBuffer(m))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(u===m)return 0;let _=u.length,F=m.length;for(let G=0,re=Math.min(_,F);GF.length?(i.isBuffer(re)||(re=i.from(re)),re.copy(F,G)):Uint8Array.prototype.set.call(F,re,G);else{if(!i.isBuffer(re))throw new TypeError('"list" argument must be an Array of Buffers');re.copy(F,G)}G+=re.length}return F},i.byteLength=w,i.prototype._isBuffer=!0,i.prototype.swap16=function(){const u=this.length;if(u%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let m=0;mm&&(u+=" ... "),""},a&&(i.prototype[a]=i.prototype.inspect),i.prototype.compare=function(u,m,_,F,G){if(R(u,Uint8Array)&&(u=i.from(u,u.offset,u.byteLength)),!i.isBuffer(u))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof u);if(m===void 0&&(m=0),_===void 0&&(_=u?u.length:0),F===void 0&&(F=0),G===void 0&&(G=this.length),m<0||_>u.length||F<0||G>this.length)throw new RangeError("out of range index");if(F>=G&&m>=_)return 0;if(F>=G)return-1;if(m>=_)return 1;if(this===u)return 0;let re=(G>>>=0)-(F>>>=0),ce=(_>>>=0)-(m>>>=0);const he=Math.min(re,ce),pe=this.slice(F,G),me=u.slice(m,_);for(let ge=0;ge>>=0,isFinite(_)?(_>>>=0,F===void 0&&(F="utf8")):(F=_,_=void 0)}const G=this.length-m;if((_===void 0||_>G)&&(_=G),u.length>0&&(_<0||m<0)||m>this.length)throw new RangeError("Attempt to write outside buffer bounds");F||(F="utf8");let re=!1;for(;;)switch(F){case"hex":return Q(this,u,m,_);case"utf8":case"utf-8":return S(this,u,m,_);case"ascii":case"latin1":case"binary":return y(this,u,m,_);case"base64":return O(this,u,m,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,u,m,_);default:if(re)throw new TypeError("Unknown encoding: "+F);F=(""+F).toLowerCase(),re=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const L=4096;function N(u,m,_){let F="";_=Math.min(u.length,_);for(let G=m;G<_;++G)F+=String.fromCharCode(127&u[G]);return F}function K(u,m,_){let F="";_=Math.min(u.length,_);for(let G=m;G<_;++G)F+=String.fromCharCode(u[G]);return F}function se(u,m,_){const F=u.length;(!m||m<0)&&(m=0),(!_||_<0||_>F)&&(_=F);let G="";for(let re=m;re<_;++re)G+=Y[u[re]];return G}function q(u,m,_){const F=u.slice(m,_);let G="";for(let re=0;re_)throw new RangeError("Trying to access beyond buffer length")}function X(u,m,_,F,G,re){if(!i.isBuffer(u))throw new TypeError('"buffer" argument must be a Buffer instance');if(m>G||mu.length)throw new RangeError("Index out of range")}function I(u,m,_,F,G){le(m,F,G,u,_,7);let re=Number(m&BigInt(4294967295));u[_++]=re,re>>=8,u[_++]=re,re>>=8,u[_++]=re,re>>=8,u[_++]=re;let ce=Number(m>>BigInt(32)&BigInt(4294967295));return u[_++]=ce,ce>>=8,u[_++]=ce,ce>>=8,u[_++]=ce,ce>>=8,u[_++]=ce,_}function B(u,m,_,F,G){le(m,F,G,u,_,7);let re=Number(m&BigInt(4294967295));u[_+7]=re,re>>=8,u[_+6]=re,re>>=8,u[_+5]=re,re>>=8,u[_+4]=re;let ce=Number(m>>BigInt(32)&BigInt(4294967295));return u[_+3]=ce,ce>>=8,u[_+2]=ce,ce>>=8,u[_+1]=ce,ce>>=8,u[_]=ce,_+8}function U(u,m,_,F,G,re){if(_+F>u.length)throw new RangeError("Index out of range");if(_<0)throw new RangeError("Index out of range")}function P(u,m,_,F,G){return m=+m,_>>>=0,G||U(u,0,_,4),n.write(u,m,_,F,23,4),_+4}function J(u,m,_,F,G){return m=+m,_>>>=0,G||U(u,0,_,8),n.write(u,m,_,F,52,8),_+8}i.prototype.slice=function(u,m){const _=this.length;(u=~~u)<0?(u+=_)<0&&(u=0):u>_&&(u=_),(m=m===void 0?_:~~m)<0?(m+=_)<0&&(m=0):m>_&&(m=_),m>>=0,m>>>=0,_||C(u,m,this.length);let F=this[u],G=1,re=0;for(;++re>>=0,m>>>=0,_||C(u,m,this.length);let F=this[u+--m],G=1;for(;m>0&&(G*=256);)F+=this[u+--m]*G;return F},i.prototype.readUint8=i.prototype.readUInt8=function(u,m){return u>>>=0,m||C(u,1,this.length),this[u]},i.prototype.readUint16LE=i.prototype.readUInt16LE=function(u,m){return u>>>=0,m||C(u,2,this.length),this[u]|this[u+1]<<8},i.prototype.readUint16BE=i.prototype.readUInt16BE=function(u,m){return u>>>=0,m||C(u,2,this.length),this[u]<<8|this[u+1]},i.prototype.readUint32LE=i.prototype.readUInt32LE=function(u,m){return u>>>=0,m||C(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+16777216*this[u+3]},i.prototype.readUint32BE=i.prototype.readUInt32BE=function(u,m){return u>>>=0,m||C(u,4,this.length),16777216*this[u]+(this[u+1]<<16|this[u+2]<<8|this[u+3])},i.prototype.readBigUInt64LE=ie(function(u){ee(u>>>=0,"offset");const m=this[u],_=this[u+7];m!==void 0&&_!==void 0||M(u,this.length-8);const F=m+256*this[++u]+65536*this[++u]+this[++u]*2**24,G=this[++u]+256*this[++u]+65536*this[++u]+_*2**24;return BigInt(F)+(BigInt(G)<>>=0,"offset");const m=this[u],_=this[u+7];m!==void 0&&_!==void 0||M(u,this.length-8);const F=m*2**24+65536*this[++u]+256*this[++u]+this[++u],G=this[++u]*2**24+65536*this[++u]+256*this[++u]+_;return(BigInt(F)<>>=0,m>>>=0,_||C(u,m,this.length);let F=this[u],G=1,re=0;for(;++re=G&&(F-=Math.pow(2,8*m)),F},i.prototype.readIntBE=function(u,m,_){u>>>=0,m>>>=0,_||C(u,m,this.length);let F=m,G=1,re=this[u+--F];for(;F>0&&(G*=256);)re+=this[u+--F]*G;return G*=128,re>=G&&(re-=Math.pow(2,8*m)),re},i.prototype.readInt8=function(u,m){return u>>>=0,m||C(u,1,this.length),128&this[u]?-1*(255-this[u]+1):this[u]},i.prototype.readInt16LE=function(u,m){u>>>=0,m||C(u,2,this.length);const _=this[u]|this[u+1]<<8;return 32768&_?4294901760|_:_},i.prototype.readInt16BE=function(u,m){u>>>=0,m||C(u,2,this.length);const _=this[u+1]|this[u]<<8;return 32768&_?4294901760|_:_},i.prototype.readInt32LE=function(u,m){return u>>>=0,m||C(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},i.prototype.readInt32BE=function(u,m){return u>>>=0,m||C(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},i.prototype.readBigInt64LE=ie(function(u){ee(u>>>=0,"offset");const m=this[u],_=this[u+7];m!==void 0&&_!==void 0||M(u,this.length-8);const F=this[u+4]+256*this[u+5]+65536*this[u+6]+(_<<24);return(BigInt(F)<>>=0,"offset");const m=this[u],_=this[u+7];m!==void 0&&_!==void 0||M(u,this.length-8);const F=(m<<24)+65536*this[++u]+256*this[++u]+this[++u];return(BigInt(F)<>>=0,m||C(u,4,this.length),n.read(this,u,!0,23,4)},i.prototype.readFloatBE=function(u,m){return u>>>=0,m||C(u,4,this.length),n.read(this,u,!1,23,4)},i.prototype.readDoubleLE=function(u,m){return u>>>=0,m||C(u,8,this.length),n.read(this,u,!0,52,8)},i.prototype.readDoubleBE=function(u,m){return u>>>=0,m||C(u,8,this.length),n.read(this,u,!1,52,8)},i.prototype.writeUintLE=i.prototype.writeUIntLE=function(u,m,_,F){u=+u,m>>>=0,_>>>=0,F||X(this,u,m,_,Math.pow(2,8*_)-1,0);let G=1,re=0;for(this[m]=255&u;++re<_&&(G*=256);)this[m+re]=u/G&255;return m+_},i.prototype.writeUintBE=i.prototype.writeUIntBE=function(u,m,_,F){u=+u,m>>>=0,_>>>=0,F||X(this,u,m,_,Math.pow(2,8*_)-1,0);let G=_-1,re=1;for(this[m+G]=255&u;--G>=0&&(re*=256);)this[m+G]=u/re&255;return m+_},i.prototype.writeUint8=i.prototype.writeUInt8=function(u,m,_){return u=+u,m>>>=0,_||X(this,u,m,1,255,0),this[m]=255&u,m+1},i.prototype.writeUint16LE=i.prototype.writeUInt16LE=function(u,m,_){return u=+u,m>>>=0,_||X(this,u,m,2,65535,0),this[m]=255&u,this[m+1]=u>>>8,m+2},i.prototype.writeUint16BE=i.prototype.writeUInt16BE=function(u,m,_){return u=+u,m>>>=0,_||X(this,u,m,2,65535,0),this[m]=u>>>8,this[m+1]=255&u,m+2},i.prototype.writeUint32LE=i.prototype.writeUInt32LE=function(u,m,_){return u=+u,m>>>=0,_||X(this,u,m,4,4294967295,0),this[m+3]=u>>>24,this[m+2]=u>>>16,this[m+1]=u>>>8,this[m]=255&u,m+4},i.prototype.writeUint32BE=i.prototype.writeUInt32BE=function(u,m,_){return u=+u,m>>>=0,_||X(this,u,m,4,4294967295,0),this[m]=u>>>24,this[m+1]=u>>>16,this[m+2]=u>>>8,this[m+3]=255&u,m+4},i.prototype.writeBigUInt64LE=ie(function(u,m=0){return I(this,u,m,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeBigUInt64BE=ie(function(u,m=0){return B(this,u,m,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeIntLE=function(u,m,_,F){if(u=+u,m>>>=0,!F){const he=Math.pow(2,8*_-1);X(this,u,m,_,he-1,-he)}let G=0,re=1,ce=0;for(this[m]=255&u;++G<_&&(re*=256);)u<0&&ce===0&&this[m+G-1]!==0&&(ce=1),this[m+G]=(u/re|0)-ce&255;return m+_},i.prototype.writeIntBE=function(u,m,_,F){if(u=+u,m>>>=0,!F){const he=Math.pow(2,8*_-1);X(this,u,m,_,he-1,-he)}let G=_-1,re=1,ce=0;for(this[m+G]=255&u;--G>=0&&(re*=256);)u<0&&ce===0&&this[m+G+1]!==0&&(ce=1),this[m+G]=(u/re|0)-ce&255;return m+_},i.prototype.writeInt8=function(u,m,_){return u=+u,m>>>=0,_||X(this,u,m,1,127,-128),u<0&&(u=255+u+1),this[m]=255&u,m+1},i.prototype.writeInt16LE=function(u,m,_){return u=+u,m>>>=0,_||X(this,u,m,2,32767,-32768),this[m]=255&u,this[m+1]=u>>>8,m+2},i.prototype.writeInt16BE=function(u,m,_){return u=+u,m>>>=0,_||X(this,u,m,2,32767,-32768),this[m]=u>>>8,this[m+1]=255&u,m+2},i.prototype.writeInt32LE=function(u,m,_){return u=+u,m>>>=0,_||X(this,u,m,4,2147483647,-2147483648),this[m]=255&u,this[m+1]=u>>>8,this[m+2]=u>>>16,this[m+3]=u>>>24,m+4},i.prototype.writeInt32BE=function(u,m,_){return u=+u,m>>>=0,_||X(this,u,m,4,2147483647,-2147483648),u<0&&(u=4294967295+u+1),this[m]=u>>>24,this[m+1]=u>>>16,this[m+2]=u>>>8,this[m+3]=255&u,m+4},i.prototype.writeBigInt64LE=ie(function(u,m=0){return I(this,u,m,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),i.prototype.writeBigInt64BE=ie(function(u,m=0){return B(this,u,m,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),i.prototype.writeFloatLE=function(u,m,_){return P(this,u,m,!0,_)},i.prototype.writeFloatBE=function(u,m,_){return P(this,u,m,!1,_)},i.prototype.writeDoubleLE=function(u,m,_){return J(this,u,m,!0,_)},i.prototype.writeDoubleBE=function(u,m,_){return J(this,u,m,!1,_)},i.prototype.copy=function(u,m,_,F){if(!i.isBuffer(u))throw new TypeError("argument should be a Buffer");if(_||(_=0),F||F===0||(F=this.length),m>=u.length&&(m=u.length),m||(m=0),F>0&&F<_&&(F=_),F===_||u.length===0||this.length===0)return 0;if(m<0)throw new RangeError("targetStart out of bounds");if(_<0||_>=this.length)throw new RangeError("Index out of range");if(F<0)throw new RangeError("sourceEnd out of bounds");F>this.length&&(F=this.length),u.length-m>>=0,_=_===void 0?this.length:_>>>0,u||(u=0),typeof u=="number")for(G=m;G<_;++G)this[G]=u;else{const re=i.isBuffer(u)?u:i.from(u,F),ce=re.length;if(ce===0)throw new TypeError('The value "'+u+'" is invalid for argument "value"');for(G=0;G<_-m;++G)this[G+m]=re[G%ce]}return this};const D={};function V(u,m,_){D[u]=class extends _{constructor(){super(),Object.defineProperty(this,"message",{value:m.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${u}]`,this.stack,delete this.name}get code(){return u}set code(F){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:F,writable:!0})}toString(){return`${this.name} [${u}]: ${this.message}`}}}function te(u){let m="",_=u.length;const F=u[0]==="-"?1:0;for(;_>=F+4;_-=3)m=`_${u.slice(_-3,_)}${m}`;return`${u.slice(0,_)}${m}`}function le(u,m,_,F,G,re){if(u>_||u3?m===0||m===BigInt(0)?`>= 0${ce} and < 2${ce} ** ${8*(re+1)}${ce}`:`>= -(2${ce} ** ${8*(re+1)-1}${ce}) and < 2 ** ${8*(re+1)-1}${ce}`:`>= ${m}${ce} and <= ${_}${ce}`,new D.ERR_OUT_OF_RANGE("value",he,u)}(function(ce,he,pe){ee(he,"offset"),ce[he]!==void 0&&ce[he+pe]!==void 0||M(he,ce.length-(pe+1))})(F,G,re)}function ee(u,m){if(typeof u!="number")throw new D.ERR_INVALID_ARG_TYPE(m,"number",u)}function M(u,m,_){throw Math.floor(u)!==u?(ee(u,_),new D.ERR_OUT_OF_RANGE(_||"offset","an integer",u)):m<0?new D.ERR_BUFFER_OUT_OF_BOUNDS:new D.ERR_OUT_OF_RANGE(_||"offset",`>= ${_?1:0} and <= ${m}`,u)}V("ERR_BUFFER_OUT_OF_BOUNDS",function(u){return u?`${u} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),V("ERR_INVALID_ARG_TYPE",function(u,m){return`The "${u}" argument must be of type number. Received type ${typeof m}`},TypeError),V("ERR_OUT_OF_RANGE",function(u,m,_){let F=`The value of "${u}" is out of range.`,G=_;return Number.isInteger(_)&&Math.abs(_)>2**32?G=te(String(_)):typeof _=="bigint"&&(G=String(_),(_>BigInt(2)**BigInt(32)||_<-(BigInt(2)**BigInt(32)))&&(G=te(G)),G+="n"),F+=` It must be ${m}. Received ${G}`,F},RangeError);const E=/[^+/0-9A-Za-z-_]/g;function W(u,m){let _;m=m||1/0;const F=u.length;let G=null;const re=[];for(let ce=0;ce55295&&_<57344){if(!G){if(_>56319){(m-=3)>-1&&re.push(239,191,189);continue}if(ce+1===F){(m-=3)>-1&&re.push(239,191,189);continue}G=_;continue}if(_<56320){(m-=3)>-1&&re.push(239,191,189),G=_;continue}_=65536+(G-55296<<10|_-56320)}else G&&(m-=3)>-1&&re.push(239,191,189);if(G=null,_<128){if((m-=1)<0)break;re.push(_)}else if(_<2048){if((m-=2)<0)break;re.push(_>>6|192,63&_|128)}else if(_<65536){if((m-=3)<0)break;re.push(_>>12|224,_>>6&63|128,63&_|128)}else{if(!(_<1114112))throw new Error("Invalid code point");if((m-=4)<0)break;re.push(_>>18|240,_>>12&63|128,_>>6&63|128,63&_|128)}}return re}function z(u){return r.toByteArray(function(m){if((m=(m=m.split("=")[0]).trim().replace(E,"")).length<2)return"";for(;m.length%4!=0;)m+="=";return m}(u))}function Z(u,m,_,F){let G;for(G=0;G=m.length||G>=u.length);++G)m[G+_]=u[G];return G}function R(u,m){return u instanceof m||u!=null&&u.constructor!=null&&u.constructor.name!=null&&u.constructor.name===m.name}function ne(u){return u!=u}const Y=function(){const u="0123456789abcdef",m=new Array(256);for(let _=0;_<16;++_){const F=16*_;for(let G=0;G<16;++G)m[F+G]=u[_]+u[G]}return m}();function ie(u){return typeof BigInt>"u"?oe:u}function oe(){throw new Error("BigInt not supported")}},2341:s=>{s.exports=function e(t){return t===null||typeof t!="object"||t.toJSON!=null?JSON.stringify(t):Array.isArray(t)?"["+t.reduce((r,n,a)=>r+(a===0?"":",")+e(n===void 0||typeof n=="symbol"?null:n),"")+"]":"{"+Object.keys(t).sort().reduce((r,n,a)=>t[n]===void 0||typeof t[n]=="symbol"?r:r+(r.length===0?"":",")+e(n)+":"+e(t[n]),"")+"}"}},7007:s=>{var e,t=typeof Reflect=="object"?Reflect:null,r=t&&typeof t.apply=="function"?t.apply:function(g,x,j){return Function.prototype.apply.call(g,x,j)};e=t&&typeof t.ownKeys=="function"?t.ownKeys:Object.getOwnPropertySymbols?function(g){return Object.getOwnPropertyNames(g).concat(Object.getOwnPropertySymbols(g))}:function(g){return Object.getOwnPropertyNames(g)};var n=Number.isNaN||function(g){return g!=g};function a(){a.init.call(this)}s.exports=a,s.exports.once=function(g,x){return new Promise(function(j,A){function Q(y){g.removeListener(x,S),A(y)}function S(){typeof g.removeListener=="function"&&g.removeListener("error",Q),j([].slice.call(arguments))}w(g,x,S,{once:!0}),x!=="error"&&function(y,O){typeof y.on=="function"&&w(y,"error",O,{once:!0})}(g,Q)})},a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var l=10;function d(g){if(typeof g!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof g)}function i(g){return g._maxListeners===void 0?a.defaultMaxListeners:g._maxListeners}function o(g,x,j,A){var Q,S,y,O;if(d(j),(S=g._events)===void 0?(S=g._events=Object.create(null),g._eventsCount=0):(S.newListener!==void 0&&(g.emit("newListener",x,j.listener?j.listener:j),S=g._events),y=S[x]),y===void 0)y=S[x]=j,++g._eventsCount;else if(typeof y=="function"?y=S[x]=A?[j,y]:[y,j]:A?y.unshift(j):y.push(j),(Q=i(g))>0&&y.length>Q&&!y.warned){y.warned=!0;var T=new Error("Possible EventEmitter memory leak detected. "+y.length+" "+String(x)+" listeners added. Use emitter.setMaxListeners() to increase limit");T.name="MaxListenersExceededWarning",T.emitter=g,T.type=x,T.count=y.length,O=T,console&&console.warn&&console.warn(O)}return g}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(g,x,j){var A={fired:!1,wrapFn:void 0,target:g,type:x,listener:j},Q=c.bind(A);return Q.listener=j,A.wrapFn=Q,Q}function v(g,x,j){var A=g._events;if(A===void 0)return[];var Q=A[x];return Q===void 0?[]:typeof Q=="function"?j?[Q.listener||Q]:[Q]:j?function(S){for(var y=new Array(S.length),O=0;O0&&(S=x[0]),S instanceof Error)throw S;var y=new Error("Unhandled error."+(S?" ("+S.message+")":""));throw y.context=S,y}var O=Q[g];if(O===void 0)return!1;if(typeof O=="function")r(O,this,x);else{var T=O.length,k=h(O,T);for(j=0;j=0;S--)if(j[S]===x||j[S].listener===x){y=j[S].listener,Q=S;break}if(Q<0)return this;Q===0?j.shift():function(O,T){for(;T+1=0;A--)this.removeListener(g,x[A]);return this},a.prototype.listeners=function(g){return v(this,g,!0)},a.prototype.rawListeners=function(g){return v(this,g,!1)},a.listenerCount=function(g,x){return typeof g.listenerCount=="function"?g.listenerCount(x):f.call(g,x)},a.prototype.listenerCount=f,a.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},251:(s,e)=>{e.read=function(t,r,n,a,l){var d,i,o=8*l-a-1,c=(1<>1,v=-7,f=n?l-1:0,h=n?-1:1,w=t[r+f];for(f+=h,d=w&(1<<-v)-1,w>>=-v,v+=o;v>0;d=256*d+t[r+f],f+=h,v-=8);for(i=d&(1<<-v)-1,d>>=-v,v+=a;v>0;i=256*i+t[r+f],f+=h,v-=8);if(d===0)d=1-p;else{if(d===c)return i?NaN:1/0*(w?-1:1);i+=Math.pow(2,a),d-=p}return(w?-1:1)*i*Math.pow(2,d-a)},e.write=function(t,r,n,a,l,d){var i,o,c,p=8*d-l-1,v=(1<>1,h=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=a?0:d-1,g=a?1:-1,x=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(o=isNaN(r)?1:0,i=v):(i=Math.floor(Math.log(r)/Math.LN2),r*(c=Math.pow(2,-i))<1&&(i--,c*=2),(r+=i+f>=1?h/c:h*Math.pow(2,1-f))*c>=2&&(i++,c/=2),i+f>=v?(o=0,i=v):i+f>=1?(o=(r*c-1)*Math.pow(2,l),i+=f):(o=r*Math.pow(2,f-1)*Math.pow(2,l),i=0));l>=8;t[n+w]=255&o,w+=g,o/=256,l-=8);for(i=i<0;t[n+w]=255&i,w+=g,i/=256,p-=8);t[n+w-g]|=128*x}},7034:(s,e,t)=>{const{isArray:r,isObject:n,isString:a}=t(7382),{asArray:l}=t(9263),{prependBase:d}=t(470),i=t(2207),o=t(7532);function c(v){throw new i("Invalid JSON-LD syntax; @context must be an object.","jsonld.SyntaxError",{code:"invalid local context",context:v})}function p({context:v,base:f}){if(!v)return;const h=v["@context"];if(a(h))v["@context"]=d(f,h);else if(r(h))for(let w=0;w10)throw new i("Maximum number of @context URLs exceeded.","jsonld.ContextUrlError",{code:v.processingMode==="json-ld-1.0"?"loading remote context failed":"context overflow",max:10});if(w.has(f))throw new i("Cyclical @context URLs detected.","jsonld.ContextUrlError",{code:v.processingMode==="json-ld-1.0"?"recursive context inclusion":"context overflow",url:f});let g,x;w.add(f);try{x=await h(f),g=x.document||null,a(g)&&(g=JSON.parse(g))}catch(j){throw new i("Dereferencing a URL did not result in a valid JSON-LD object. Possible causes are an inaccessible URL perhaps due to a same-origin policy (ensure the server uses CORS if you are using client-side JavaScript), too many redirects, a non-JSON response, or more than one HTTP Link Header was provided for a remote context.","jsonld.InvalidUrl",{code:"loading remote context failed",url:f,cause:j})}if(!n(g))throw new i("Dereferencing a URL did not result in a JSON object. The response was valid JSON, but it was not a JSON object.","jsonld.InvalidUrl",{code:"invalid remote context",url:f});return g="@context"in g?{"@context":g["@context"]}:{"@context":{}},x.contextUrl&&(r(g["@context"])||(g["@context"]=[g["@context"]]),g["@context"].push(x.contextUrl)),{context:g,remoteDoc:x}}}},2207:s=>{s.exports=class extends Error{constructor(e="An unspecified JSON-LD error occurred.",t="jsonld.Error",r={}){super(e),this.name=t,this.message=e,this.details=r}}},5445:s=>{s.exports=e=>{class t{toString(){return"[object JsonLdProcessor]"}}return Object.defineProperty(t,"prototype",{writable:!1,enumerable:!1}),Object.defineProperty(t.prototype,"constructor",{writable:!0,enumerable:!1,configurable:!0,value:t}),t.compact=function(r,n){return arguments.length<2?Promise.reject(new TypeError("Could not compact, too few arguments.")):e.compact(r,n)},t.expand=function(r){return arguments.length<1?Promise.reject(new TypeError("Could not expand, too few arguments.")):e.expand(r)},t.flatten=function(r){return arguments.length<1?Promise.reject(new TypeError("Could not flatten, too few arguments.")):e.flatten(r)},t}},8229:(s,e,t)=>{s.exports=t(989).NQuads},3743:s=>{s.exports=class{constructor(){this._requests={}}wrapLoader(e){const t=this;return t._loader=e,function(){return t.add.apply(t,arguments)}}async add(e){let t=this._requests[e];if(t)return Promise.resolve(t);t=this._requests[e]=this._loader(e);try{return await t}finally{delete this._requests[e]}}}},7532:(s,e,t)=>{const r=t(9749);s.exports=class{constructor({document:n}){this.document=n,this.cache=new r({max:10})}getProcessed(n){return this.cache.get(n)}setProcessed(n,a){this.cache.set(n,a)}}},1058:(s,e,t)=>{const r=t(2207),{isArray:n,isObject:a,isString:l,isUndefined:d}=t(7382),{isList:i,isValue:o,isGraph:c,isSimpleGraph:p,isSubjectReference:v}=t(3978),{expandIri:f,getContextValue:h,isKeyword:w,process:g,processingMode:x}=t(1972),{removeBase:j,prependBase:A}=t(470),{REGEX_KEYWORD:Q,addValue:S,asArray:y,compareShortestLeast:O}=t(9263),T={};function k(b,L,N){if(f(b,L,{vocab:!0},N)!=="@nest")throw new r("JSON-LD compact error; nested property must have an @nest value resolving to @nest.","jsonld.SyntaxError",{code:"invalid @nest value"})}s.exports=T,T.compact=async({activeCtx:b,activeProperty:L=null,element:N,options:K={}})=>{if(n(N)){let q=[];for(let C=0;C1&&(B=Array.from(B).sort());const U=b;for(const J of B){const D=T.compactIri({activeCtx:U,iri:J,relativeTo:{vocab:!0}}),V=h(X,D,"@context");d(V)||(b=await g({activeCtx:b,localCtx:V,options:K,propagate:!1}))}const P=Object.keys(N).sort();for(const J of P){const D=N[J];if(J!=="@id")if(J!=="@type")if(J!=="@reverse")if(J!=="@preserve")if(J!=="@index")if(J!=="@graph"&&J!=="@list"&&J!=="@included"&&w(J)){const V=T.compactIri({activeCtx:b,iri:J,relativeTo:{vocab:!0}});S(C,V,D)}else{if(!n(D))throw new r("JSON-LD expansion error; expanded value must be an array.","jsonld.SyntaxError");if(D.length===0){const V=T.compactIri({activeCtx:b,iri:J,value:D,relativeTo:{vocab:!0},reverse:q}),te=b.mappings.has(V)?b.mappings.get(V)["@nest"]:null;let le=C;te&&(k(b,te,K),a(C[te])||(C[te]={}),le=C[te]),S(le,V,D,{propertyIsArray:!0})}for(const V of D){const te=T.compactIri({activeCtx:b,iri:J,value:V,relativeTo:{vocab:!0},reverse:q}),le=b.mappings.has(te)?b.mappings.get(te)["@nest"]:null;let ee=C;le&&(k(b,le,K),a(C[le])||(C[le]={}),ee=C[le]);const M=h(b,te,"@container")||[],E=c(V),W=i(V);let z;W?z=V["@list"]:E&&(z=V["@graph"]);let Z=await T.compact({activeCtx:b,activeProperty:te,element:W||E?z:V,options:K});if(W){if(n(Z)||(Z=[Z]),M.includes("@list")){S(ee,te,Z,{valueIsArray:!0,allowDuplicate:!0});continue}Z={[T.compactIri({activeCtx:b,iri:"@list",relativeTo:{vocab:!0}})]:Z},"@index"in V&&(Z[T.compactIri({activeCtx:b,iri:"@index",relativeTo:{vocab:!0}})]=V["@index"])}if(E)if(M.includes("@graph")&&(M.includes("@id")||M.includes("@index")&&p(V))){let R;ee.hasOwnProperty(te)?R=ee[te]:ee[te]=R={};const ne=(M.includes("@id")?V["@id"]:V["@index"])||T.compactIri({activeCtx:b,iri:"@none",relativeTo:{vocab:!0}});S(R,ne,Z,{propertyIsArray:!K.compactArrays||M.includes("@set")})}else M.includes("@graph")&&p(V)?(n(Z)&&Z.length>1&&(Z={"@included":Z}),S(ee,te,Z,{propertyIsArray:!K.compactArrays||M.includes("@set")})):(n(Z)&&Z.length===1&&K.compactArrays&&(Z=Z[0]),Z={[T.compactIri({activeCtx:b,iri:"@graph",relativeTo:{vocab:!0}})]:Z},"@id"in V&&(Z[T.compactIri({activeCtx:b,iri:"@id",relativeTo:{vocab:!0}})]=V["@id"]),"@index"in V&&(Z[T.compactIri({activeCtx:b,iri:"@index",relativeTo:{vocab:!0}})]=V["@index"]),S(ee,te,Z,{propertyIsArray:!K.compactArrays||M.includes("@set")}));else if(M.includes("@language")||M.includes("@index")||M.includes("@id")||M.includes("@type")){let R,ne;if(ee.hasOwnProperty(te)?R=ee[te]:ee[te]=R={},M.includes("@language"))o(Z)&&(Z=Z["@value"]),ne=V["@language"];else if(M.includes("@index")){const Y=h(b,te,"@index")||"@index",ie=T.compactIri({activeCtx:b,iri:Y,relativeTo:{vocab:!0}});if(Y==="@index")ne=V["@index"],delete Z[ie];else{let oe;if([ne,...oe]=y(Z[Y]||[]),l(ne))switch(oe.length){case 0:delete Z[Y];break;case 1:Z[Y]=oe[0];break;default:Z[Y]=oe}else ne=null}}else if(M.includes("@id")){const Y=T.compactIri({activeCtx:b,iri:"@id",relativeTo:{vocab:!0}});ne=Z[Y],delete Z[Y]}else if(M.includes("@type")){const Y=T.compactIri({activeCtx:b,iri:"@type",relativeTo:{vocab:!0}});let ie;switch([ne,...ie]=y(Z[Y]||[]),ie.length){case 0:delete Z[Y];break;case 1:Z[Y]=ie[0];break;default:Z[Y]=ie}Object.keys(Z).length===1&&"@id"in V&&(Z=await T.compact({activeCtx:b,activeProperty:te,element:{"@id":V["@id"]},options:K}))}ne||(ne=T.compactIri({activeCtx:b,iri:"@none",relativeTo:{vocab:!0}})),S(R,ne,Z,{propertyIsArray:M.includes("@set")})}else{const R=!K.compactArrays||M.includes("@set")||M.includes("@list")||n(Z)&&Z.length===0||J==="@list"||J==="@graph";S(ee,te,Z,{propertyIsArray:R})}}}else{if((h(b,L,"@container")||[]).includes("@index"))continue;const V=T.compactIri({activeCtx:b,iri:J,relativeTo:{vocab:!0}});S(C,V,D)}else{const V=await T.compact({activeCtx:b,activeProperty:L,element:D,options:K});n(V)&&V.length===0||S(C,J,V)}else{const V=await T.compact({activeCtx:b,activeProperty:"@reverse",element:D,options:K});for(const te in V)if(b.mappings.has(te)&&b.mappings.get(te).reverse){const le=V[te],ee=(h(b,te,"@container")||[]).includes("@set")||!K.compactArrays;S(C,te,le,{propertyIsArray:ee}),delete V[te]}if(Object.keys(V).length>0){const te=T.compactIri({activeCtx:b,iri:J,relativeTo:{vocab:!0}});S(C,te,V)}}else{let V=y(D).map(ee=>T.compactIri({activeCtx:X,iri:ee,relativeTo:{vocab:!0}}));V.length===1&&(V=V[0]);const te=T.compactIri({activeCtx:b,iri:"@type",relativeTo:{vocab:!0}}),le=(h(b,te,"@container")||[]).includes("@set")&&x(b,1.1)||n(V)&&D.length===0;S(C,te,V,{propertyIsArray:le})}else{let V=y(D).map(te=>T.compactIri({activeCtx:b,iri:te,relativeTo:{vocab:!1},base:K.base}));V.length===1&&(V=V[0]),C[T.compactIri({activeCtx:b,iri:"@id",relativeTo:{vocab:!0}})]=V}}return C}return N},T.compactIri=({activeCtx:b,iri:L,value:N=null,relativeTo:K={vocab:!1},reverse:se=!1,base:q=null})=>{if(L===null)return L;b.isPropertyTermScoped&&b.previousContext&&(b=b.previousContext);const C=b.getInverse();if(w(L)&&L in C&&"@none"in C[L]&&"@type"in C[L]["@none"]&&"@none"in C[L]["@none"]["@type"])return C[L]["@none"]["@type"]["@none"];if(K.vocab&&L in C){const P=b["@language"]||"@none",J=[];a(N)&&"@index"in N&&!("@graph"in N)&&J.push("@index","@index@set"),a(N)&&"@preserve"in N&&(N=N["@preserve"][0]),c(N)?("@index"in N&&J.push("@graph@index","@graph@index@set","@index","@index@set"),"@id"in N&&J.push("@graph@id","@graph@id@set"),J.push("@graph","@graph@set","@set"),"@index"in N||J.push("@graph@index","@graph@index@set","@index","@index@set"),"@id"in N||J.push("@graph@id","@graph@id@set")):a(N)&&!o(N)&&J.push("@id","@id@set","@type","@set@type");let D="@language",V="@null";if(se)D="@type",V="@reverse",J.push("@set");else if(i(N)){"@index"in N||J.push("@list");const le=N["@list"];if(le.length===0)D="@any",V="@none";else{let ee=le.length===0?P:null,M=null;for(let E=0;EY.includes("_"));ne&&Z.push(ne.replace(/^[^_]+_/,"_"))}Z.push("@none");const R=le.inverse[ee];for(const ne of E){if(!(ne in R))continue;const Y=R[ne][W];for(const ie of Z)if(ie in Y)return Y[ie]}return null}(b,L,N,J,D,V);if(te!==null)return te}if(K.vocab&&"@vocab"in b){const P=b["@vocab"];if(L.indexOf(P)===0&&L!==P){const J=L.substr(P.length);if(!b.mappings.has(J))return J}}let X=null;const I=[];let B=b.fastCurieMap;const U=L.length-1;for(let P=0;P=0;--P){const J=I[P],D=J.terms;for(const V of D){const te=V+":"+L.substr(J.iri.length);b.mappings.get(V)._prefix&&(!b.mappings.has(te)||N===null&&b.mappings.get(te)["@id"]===L)&&(X===null||O(te,X)<0)&&(X=te)}}if(X!==null)return X;for(const[P,J]of b.mappings)if(J&&J._prefix&&L.startsWith(P+":"))throw new r(`Absolute IRI "${L}" confused with prefix "${P}".`,"jsonld.SyntaxError",{code:"IRI confused with prefix",context:b});if(!K.vocab){if("@base"in b){if(b["@base"]){const P=j(A(q,b["@base"]),L);return Q.test(P)?`./${P}`:P}return L}return j(q,L)}return L},T.compactValue=({activeCtx:b,activeProperty:L,value:N,options:K})=>{if(o(N)){const X=h(b,L,"@type"),I=h(b,L,"@language"),B=h(b,L,"@direction"),U=h(b,L,"@container")||[],P="@index"in N&&!U.includes("@index");if(!P&&X!=="@none"&&(N["@type"]===X||"@language"in N&&N["@language"]===I&&"@direction"in N&&N["@direction"]===B||"@language"in N&&N["@language"]===I||"@direction"in N&&N["@direction"]===B))return N["@value"];const J=Object.keys(N).length,D=J===1||J===2&&"@index"in N&&!P,V="@language"in b,te=l(N["@value"]),le=b.mappings.has(L)&&b.mappings.get(L)["@language"]===null;if(D&&X!=="@none"&&(!V||!te||le))return N["@value"];const ee={};return P&&(ee[T.compactIri({activeCtx:b,iri:"@index",relativeTo:{vocab:!0}})]=N["@index"]),"@type"in N?ee[T.compactIri({activeCtx:b,iri:"@type",relativeTo:{vocab:!0}})]=T.compactIri({activeCtx:b,iri:N["@type"],relativeTo:{vocab:!0}}):"@language"in N&&(ee[T.compactIri({activeCtx:b,iri:"@language",relativeTo:{vocab:!0}})]=N["@language"]),"@direction"in N&&(ee[T.compactIri({activeCtx:b,iri:"@direction",relativeTo:{vocab:!0}})]=N["@direction"]),ee[T.compactIri({activeCtx:b,iri:"@value",relativeTo:{vocab:!0}})]=N["@value"],ee}const se=f(b,L,{vocab:!0},K),q=h(b,L,"@type"),C=T.compactIri({activeCtx:b,iri:N["@id"],relativeTo:{vocab:q==="@vocab"},base:K.base});return q==="@id"||q==="@vocab"||se==="@graph"?C:{[T.compactIri({activeCtx:b,iri:"@id",relativeTo:{vocab:!0}})]:C}}},9378:s=>{const e="http://www.w3.org/1999/02/22-rdf-syntax-ns#",t="http://www.w3.org/2001/XMLSchema#";s.exports={LINK_HEADER_REL:"http://www.w3.org/ns/json-ld#context",LINK_HEADER_CONTEXT:"http://www.w3.org/ns/json-ld#context",RDF:e,RDF_LIST:e+"List",RDF_FIRST:e+"first",RDF_REST:e+"rest",RDF_NIL:e+"nil",RDF_TYPE:e+"type",RDF_PLAIN_LITERAL:e+"PlainLiteral",RDF_XML_LITERAL:e+"XMLLiteral",RDF_JSON_LITERAL:e+"JSON",RDF_OBJECT:e+"object",RDF_LANGSTRING:e+"langString",XSD:t,XSD_BOOLEAN:t+"boolean",XSD_DOUBLE:t+"double",XSD_INTEGER:t+"integer",XSD_STRING:t+"string"}},1972:(s,e,t)=>{const r=t(9263),n=t(2207),{isArray:a,isObject:l,isString:d,isUndefined:i}=t(7382),{isAbsolute:o,isRelative:c,prependBase:p}=t(470),{handleEvent:v}=t(2246),{REGEX_BCP47:f,REGEX_KEYWORD:h,asArray:w,compareShortestLeast:g}=t(9263),x=new Map,j={};function A(S,y,O,T,k,b){if(y===null||!d(y)||j.isKeyword(y))return y;if(y.match(h))return null;if(T&&T.hasOwnProperty(y)&&k.get(y)!==!0&&j.createTermDefinition({activeCtx:S,localCtx:T,term:y,defined:k,options:b}),(O=O||{}).vocab){const N=S.mappings.get(y);if(N===null)return null;if(l(N)&&"@id"in N)return N["@id"]}const L=y.indexOf(":");if(L>0){const N=y.substr(0,L),K=y.substr(L+1);if(N==="_"||K.indexOf("//")===0)return y;T&&T.hasOwnProperty(N)&&j.createTermDefinition({activeCtx:S,localCtx:T,term:N,defined:k,options:b});const se=S.mappings.get(N);if(se&&se._prefix)return se["@id"]+K;if(o(y))return y}if(O.vocab&&"@vocab"in S)y=S["@vocab"]+y;else if(O.base){let N,K;"@base"in S?S["@base"]?(K=p(b.base,S["@base"]),N=p(K,y)):(K=S["@base"],N=y):(K=b.base,N=p(b.base,y)),y=N}return y}function Q(S,y){if(!S||typeof S!="object"||!y||typeof y!="object")return S===y;const O=Array.isArray(S);if(O!==Array.isArray(y))return!1;if(O){if(S.length!==y.length)return!1;for(let b=0;b{if(l(y)&&"@context"in y&&a(y["@context"])&&(y=y["@context"]),w(y).length===0)return S;const L=[],N=[({event:C,next:X})=>{L.push(C),X()}];O.eventHandler&&N.push(O.eventHandler);const K=O;O={...O,eventHandler:N};const se=await O.contextResolver.resolve({activeCtx:S,context:y,documentLoader:O.documentLoader,base:O.base});l(se[0].document)&&typeof se[0].document["@propagate"]=="boolean"&&(T=se[0].document["@propagate"]);let q=S;T||q.previousContext||(q=q.clone(),q.previousContext=S);for(const C of se){let{document:X}=C;if(S=q,X===null){if(!k&&Object.keys(S.protected).length!==0)throw new n("Tried to nullify a context with protected terms outside of a term definition.","jsonld.SyntaxError",{code:"invalid context nullification"});q=S=j.getInitialContext(O).clone();continue}const I=C.getProcessed(S);if(I){if(K.eventHandler)for(const U of I.events)v({event:U,options:K});q=S=I.context;continue}if(l(X)&&"@context"in X&&(X=X["@context"]),!l(X))throw new n("Invalid JSON-LD syntax; @context must be an object.","jsonld.SyntaxError",{code:"invalid local context",context:X});q=q.clone();const B=new Map;if("@version"in X){if(X["@version"]!==1.1)throw new n("Unsupported JSON-LD version: "+X["@version"],"jsonld.UnsupportedVersion",{code:"invalid @version value",context:X});if(S.processingMode&&S.processingMode==="json-ld-1.0")throw new n("@version: "+X["@version"]+" not compatible with "+S.processingMode,"jsonld.ProcessingModeConflict",{code:"processing mode conflict",context:X});q.processingMode="json-ld-1.1",q["@version"]=X["@version"],B.set("@version",!0)}if(q.processingMode=q.processingMode||S.processingMode,"@base"in X){let U=X["@base"];if(!(U===null||o(U))){if(!c(U))throw new n('Invalid JSON-LD syntax; the value of "@base" in a @context must be an absolute IRI, a relative IRI, or null.',"jsonld.SyntaxError",{code:"invalid base IRI",context:X});U=p(q["@base"],U)}q["@base"]=U,B.set("@base",!0)}if("@vocab"in X){const U=X["@vocab"];if(U===null)delete q["@vocab"];else{if(!d(U))throw new n('Invalid JSON-LD syntax; the value of "@vocab" in a @context must be a string or null.',"jsonld.SyntaxError",{code:"invalid vocab mapping",context:X});if(!o(U)&&j.processingMode(q,1))throw new n('Invalid JSON-LD syntax; the value of "@vocab" in a @context must be an absolute IRI.',"jsonld.SyntaxError",{code:"invalid vocab mapping",context:X});{const P=A(q,U,{vocab:!0,base:!0},void 0,void 0,O);o(P)||O.eventHandler&&v({event:{type:["JsonLdEvent"],code:"relative @vocab reference",level:"warning",message:"Relative @vocab reference found.",details:{vocab:P}},options:O}),q["@vocab"]=P}}B.set("@vocab",!0)}if("@language"in X){const U=X["@language"];if(U===null)delete q["@language"];else{if(!d(U))throw new n('Invalid JSON-LD syntax; the value of "@language" in a @context must be a string or null.',"jsonld.SyntaxError",{code:"invalid default language",context:X});U.match(f)||O.eventHandler&&v({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:U}},options:O}),q["@language"]=U.toLowerCase()}B.set("@language",!0)}if("@direction"in X){const U=X["@direction"];if(S.processingMode==="json-ld-1.0")throw new n("Invalid JSON-LD syntax; @direction not compatible with "+S.processingMode,"jsonld.SyntaxError",{code:"invalid context member",context:X});if(U===null)delete q["@direction"];else{if(U!=="ltr"&&U!=="rtl")throw new n('Invalid JSON-LD syntax; the value of "@direction" in a @context must be null, "ltr", or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",context:X});q["@direction"]=U}B.set("@direction",!0)}if("@propagate"in X){const U=X["@propagate"];if(S.processingMode==="json-ld-1.0")throw new n("Invalid JSON-LD syntax; @propagate not compatible with "+S.processingMode,"jsonld.SyntaxError",{code:"invalid context entry",context:X});if(typeof U!="boolean")throw new n("Invalid JSON-LD syntax; @propagate value must be a boolean.","jsonld.SyntaxError",{code:"invalid @propagate value",context:y});B.set("@propagate",!0)}if("@import"in X){const U=X["@import"];if(S.processingMode==="json-ld-1.0")throw new n("Invalid JSON-LD syntax; @import not compatible with "+S.processingMode,"jsonld.SyntaxError",{code:"invalid context entry",context:X});if(!d(U))throw new n("Invalid JSON-LD syntax; @import must be a string.","jsonld.SyntaxError",{code:"invalid @import value",context:y});const P=await O.contextResolver.resolve({activeCtx:S,context:U,documentLoader:O.documentLoader,base:O.base});if(P.length!==1)throw new n("Invalid JSON-LD syntax; @import must reference a single context.","jsonld.SyntaxError",{code:"invalid remote context",context:y});const J=P[0].getProcessed(S);if(J)X=J;else{const D=P[0].document;if("@import"in D)throw new n("Invalid JSON-LD syntax: imported context must not include @import.","jsonld.SyntaxError",{code:"invalid context entry",context:y});for(const V in D)X.hasOwnProperty(V)||(X[V]=D[V]);P[0].setProcessed(S,X)}B.set("@import",!0)}B.set("@protected",X["@protected"]||!1);for(const U in X)if(j.createTermDefinition({activeCtx:q,localCtx:X,term:U,defined:B,options:O,overrideProtected:k}),l(X[U])&&"@context"in X[U]){const P=X[U]["@context"];let J=!0;if(d(P)){const D=p(O.base,P);b.has(D)?J=!1:b.add(D)}if(J)try{await j.process({activeCtx:q.clone(),localCtx:X[U]["@context"],overrideProtected:!0,options:O,cycles:b})}catch{throw new n("Invalid JSON-LD syntax; invalid scoped context.","jsonld.SyntaxError",{code:"invalid scoped context",context:X[U]["@context"],term:U})}}C.setProcessed(S,{context:q,events:L})}return q},j.createTermDefinition=({activeCtx:S,localCtx:y,term:O,defined:T,options:k,overrideProtected:b=!1})=>{if(T.has(O)){if(T.get(O))return;throw new n("Cyclical context definition detected.","jsonld.CyclicalContext",{code:"cyclic IRI mapping",context:y,term:O})}let L;if(T.set(O,!1),y.hasOwnProperty(O)&&(L=y[O]),O==="@type"&&l(L)&&(L["@container"]||"@set")==="@set"&&j.processingMode(S,1.1)){const I=["@container","@id","@protected"],B=Object.keys(L);if(B.length===0||B.some(U=>!I.includes(U)))throw new n("Invalid JSON-LD syntax; keywords cannot be overridden.","jsonld.SyntaxError",{code:"keyword redefinition",context:y,term:O})}else{if(j.isKeyword(O))throw new n("Invalid JSON-LD syntax; keywords cannot be overridden.","jsonld.SyntaxError",{code:"keyword redefinition",context:y,term:O});if(O.match(h))return void(k.eventHandler&&v({event:{type:["JsonLdEvent"],code:"reserved term",level:"warning",message:'Terms beginning with "@" are reserved for future use and dropped.',details:{term:O}},options:k}));if(O==="")throw new n("Invalid JSON-LD syntax; a term cannot be an empty string.","jsonld.SyntaxError",{code:"invalid term definition",context:y})}const N=S.mappings.get(O);S.mappings.has(O)&&S.mappings.delete(O);let K=!1;if((d(L)||L===null)&&(K=!0,L={"@id":L}),!l(L))throw new n("Invalid JSON-LD syntax; @context term values must be strings or objects.","jsonld.SyntaxError",{code:"invalid term definition",context:y});const se={};S.mappings.set(O,se),se.reverse=!1;const q=["@container","@id","@language","@reverse","@type"];j.processingMode(S,1.1)&&q.push("@context","@direction","@index","@nest","@prefix","@protected");for(const I in L)if(!q.includes(I))throw new n("Invalid JSON-LD syntax; a term definition must not contain "+I,"jsonld.SyntaxError",{code:"invalid term definition",context:y});const C=O.indexOf(":");if(se._termHasColon=C>0,"@reverse"in L){if("@id"in L)throw new n("Invalid JSON-LD syntax; a @reverse term definition must not contain @id.","jsonld.SyntaxError",{code:"invalid reverse property",context:y});if("@nest"in L)throw new n("Invalid JSON-LD syntax; a @reverse term definition must not contain @nest.","jsonld.SyntaxError",{code:"invalid reverse property",context:y});const I=L["@reverse"];if(!d(I))throw new n("Invalid JSON-LD syntax; a @context @reverse value must be a string.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:y});if(I.match(h))return k.eventHandler&&v({event:{type:["JsonLdEvent"],code:"reserved @reverse value",level:"warning",message:'@reverse values beginning with "@" are reserved for future use and dropped.',details:{reverse:I}},options:k}),void(N?S.mappings.set(O,N):S.mappings.delete(O));const B=A(S,I,{vocab:!0,base:!1},y,T,k);if(!o(B))throw new n("Invalid JSON-LD syntax; a @context @reverse value must be an absolute IRI or a blank node identifier.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:y});se["@id"]=B,se.reverse=!0}else if("@id"in L){let I=L["@id"];if(I&&!d(I))throw new n("Invalid JSON-LD syntax; a @context @id value must be an array of strings or a string.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:y});if(I===null)se["@id"]=null;else{if(!j.isKeyword(I)&&I.match(h))return k.eventHandler&&v({event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:'@id values beginning with "@" are reserved for future use and dropped.',details:{id:I}},options:k}),void(N?S.mappings.set(O,N):S.mappings.delete(O));if(I!==O){if(I=A(S,I,{vocab:!0,base:!1},y,T,k),!o(I)&&!j.isKeyword(I))throw new n("Invalid JSON-LD syntax; a @context @id value must be an absolute IRI, a blank node identifier, or a keyword.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:y});if(O.match(/(?::[^:])|\//)&&A(S,O,{vocab:!0,base:!1},y,new Map(T).set(O,!0),k)!==I)throw new n("Invalid JSON-LD syntax; term in form of IRI must expand to definition.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:y});se["@id"]=I,se._prefix=K&&!se._termHasColon&&I.match(/[:\/\?#\[\]@]$/)!==null}}}if(!("@id"in se))if(se._termHasColon){const I=O.substr(0,C);if(y.hasOwnProperty(I)&&j.createTermDefinition({activeCtx:S,localCtx:y,term:I,defined:T,options:k}),S.mappings.has(I)){const B=O.substr(C+1);se["@id"]=S.mappings.get(I)["@id"]+B}else se["@id"]=O}else if(O==="@type")se["@id"]=O;else{if(!("@vocab"in S))throw new n("Invalid JSON-LD syntax; @context terms must define an @id.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:y,term:O});se["@id"]=S["@vocab"]+O}if((L["@protected"]===!0||T.get("@protected")===!0&&L["@protected"]!==!1)&&(S.protected[O]=!0,se.protected=!0),T.set(O,!0),"@type"in L){let I=L["@type"];if(!d(I))throw new n("Invalid JSON-LD syntax; an @context @type value must be a string.","jsonld.SyntaxError",{code:"invalid type mapping",context:y});if(I==="@json"||I==="@none"){if(j.processingMode(S,1))throw new n(`Invalid JSON-LD syntax; an @context @type value must not be "${I}" in JSON-LD 1.0 mode.`,"jsonld.SyntaxError",{code:"invalid type mapping",context:y})}else if(I!=="@id"&&I!=="@vocab"){if(I=A(S,I,{vocab:!0,base:!1},y,T,k),!o(I))throw new n("Invalid JSON-LD syntax; an @context @type value must be an absolute IRI.","jsonld.SyntaxError",{code:"invalid type mapping",context:y});if(I.indexOf("_:")===0)throw new n("Invalid JSON-LD syntax; an @context @type value must be an IRI, not a blank node identifier.","jsonld.SyntaxError",{code:"invalid type mapping",context:y})}se["@type"]=I}if("@container"in L){const I=d(L["@container"])?[L["@container"]]:L["@container"]||[],B=["@list","@set","@index","@language"];let U=!0;const P=I.includes("@set");if(j.processingMode(S,1.1)){if(B.push("@graph","@id","@type"),I.includes("@list")){if(I.length!==1)throw new n("Invalid JSON-LD syntax; @context @container with @list must have no other values","jsonld.SyntaxError",{code:"invalid container mapping",context:y})}else if(I.includes("@graph")){if(I.some(J=>J!=="@graph"&&J!=="@id"&&J!=="@index"&&J!=="@set"))throw new n("Invalid JSON-LD syntax; @context @container with @graph must have no other values other than @id, @index, and @set","jsonld.SyntaxError",{code:"invalid container mapping",context:y})}else U&=I.length<=(P?2:1);if(I.includes("@type")&&(se["@type"]=se["@type"]||"@id",!["@id","@vocab"].includes(se["@type"])))throw new n("Invalid JSON-LD syntax; container: @type requires @type to be @id or @vocab.","jsonld.SyntaxError",{code:"invalid type mapping",context:y})}else U&=!a(L["@container"]),U&=I.length<=1;if(U&=I.every(J=>B.includes(J)),U&=!(P&&I.includes("@list")),!U)throw new n("Invalid JSON-LD syntax; @context @container value must be one of the following: "+B.join(", "),"jsonld.SyntaxError",{code:"invalid container mapping",context:y});if(se.reverse&&!I.every(J=>["@index","@set"].includes(J)))throw new n("Invalid JSON-LD syntax; @context @container value for a @reverse type definition must be @index or @set.","jsonld.SyntaxError",{code:"invalid reverse property",context:y});se["@container"]=I}if("@index"in L){if(!("@container"in L)||!se["@container"].includes("@index"))throw new n(`Invalid JSON-LD syntax; @index without @index in @container: "${L["@index"]}" on term "${O}".`,"jsonld.SyntaxError",{code:"invalid term definition",context:y});if(!d(L["@index"])||L["@index"].indexOf("@")===0)throw new n(`Invalid JSON-LD syntax; @index must expand to an IRI: "${L["@index"]}" on term "${O}".`,"jsonld.SyntaxError",{code:"invalid term definition",context:y});se["@index"]=L["@index"]}if("@context"in L&&(se["@context"]=L["@context"]),"@language"in L&&!("@type"in L)){let I=L["@language"];if(I!==null&&!d(I))throw new n("Invalid JSON-LD syntax; @context @language value must be a string or null.","jsonld.SyntaxError",{code:"invalid language mapping",context:y});I!==null&&(I=I.toLowerCase()),se["@language"]=I}if("@prefix"in L){if(O.match(/:|\//))throw new n("Invalid JSON-LD syntax; @context @prefix used on a compact IRI term","jsonld.SyntaxError",{code:"invalid term definition",context:y});if(j.isKeyword(se["@id"]))throw new n("Invalid JSON-LD syntax; keywords may not be used as prefixes","jsonld.SyntaxError",{code:"invalid term definition",context:y});if(typeof L["@prefix"]!="boolean")throw new n("Invalid JSON-LD syntax; @context value for @prefix must be boolean","jsonld.SyntaxError",{code:"invalid @prefix value",context:y});se._prefix=L["@prefix"]===!0}if("@direction"in L){const I=L["@direction"];if(I!==null&&I!=="ltr"&&I!=="rtl")throw new n('Invalid JSON-LD syntax; @direction value must be null, "ltr", or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",context:y});se["@direction"]=I}if("@nest"in L){const I=L["@nest"];if(!d(I)||I!=="@nest"&&I.indexOf("@")===0)throw new n("Invalid JSON-LD syntax; @context @nest value must be a string which is not a keyword other than @nest.","jsonld.SyntaxError",{code:"invalid @nest value",context:y});se["@nest"]=I}const X=se["@id"];if(X==="@context"||X==="@preserve")throw new n("Invalid JSON-LD syntax; @context and @preserve cannot be aliased.","jsonld.SyntaxError",{code:"invalid keyword alias",context:y});if(N&&N.protected&&!b&&(S.protected[O]=!0,se.protected=!0,!Q(N,se)))throw new n("Invalid JSON-LD syntax; tried to redefine a protected term.","jsonld.SyntaxError",{code:"protected term redefinition",context:y,term:O})},j.expandIri=(S,y,O,T)=>A(S,y,O,void 0,void 0,T),j.getInitialContext=S=>{const y=JSON.stringify({processingMode:S.processingMode}),O=x.get(y);if(O)return O;const T={processingMode:S.processingMode,mappings:new Map,inverse:null,getInverse:function(){const L=this;if(L.inverse)return L.inverse;const N=L.inverse={},K=L.fastCurieMap={},se={},q=(L["@language"]||"@none").toLowerCase(),C=L["@direction"],X=L.mappings,I=[...X.keys()].sort(g);for(const B of I){const U=X.get(B);if(U===null)continue;let P=U["@container"]||"@none";if(P=[].concat(P).sort().join(""),U["@id"]===null)continue;const J=w(U["@id"]);for(const D of J){let V=N[D];const te=j.isKeyword(D);if(V)te||U._termHasColon||se[D].push(B);else if(N[D]=V={},!te&&!U._termHasColon){se[D]=[B];const le={iri:D,terms:se[D]};D[0]in K?K[D[0]].push(le):K[D[0]]=[le]}if(V[P]||(V[P]={"@language":{},"@type":{},"@any":{}}),V=V[P],b(B,V["@any"],"@none"),U.reverse)b(B,V["@type"],"@reverse");else if(U["@type"]==="@none")b(B,V["@any"],"@none"),b(B,V["@language"],"@none"),b(B,V["@type"],"@none");else if("@type"in U)b(B,V["@type"],U["@type"]);else if("@language"in U&&"@direction"in U){const le=U["@language"],ee=U["@direction"];b(B,V["@language"],le&&ee?`${le}_${ee}`.toLowerCase():le?le.toLowerCase():ee?`_${ee}`:"@null")}else"@language"in U?b(B,V["@language"],(U["@language"]||"@null").toLowerCase()):"@direction"in U?U["@direction"]?b(B,V["@language"],`_${U["@direction"]}`):b(B,V["@language"],"@none"):C?(b(B,V["@language"],`_${C}`),b(B,V["@language"],"@none"),b(B,V["@type"],"@none")):(b(B,V["@language"],q),b(B,V["@language"],"@none"),b(B,V["@type"],"@none"))}}for(const B in K)k(K,B,1);return N},clone:function(){const L={};return L.mappings=r.clone(this.mappings),L.clone=this.clone,L.inverse=null,L.getInverse=this.getInverse,L.protected=r.clone(this.protected),this.previousContext&&(L.previousContext=this.previousContext.clone()),L.revertToPreviousContext=this.revertToPreviousContext,"@base"in this&&(L["@base"]=this["@base"]),"@language"in this&&(L["@language"]=this["@language"]),"@vocab"in this&&(L["@vocab"]=this["@vocab"]),L},revertToPreviousContext:function(){return this.previousContext?this.previousContext.clone():this},protected:{}};return x.size===1e4&&x.clear(),x.set(y,T),T;function k(L,N,K){const se=L[N],q=L[N]={};let C,X;for(const I of se)C=I.iri,X=K>=C.length?"":C[K],X in q?q[X].push(I):q[X]=[I];for(const I in q)I!==""&&k(q,I,K+1)}function b(L,N,K){N.hasOwnProperty(K)||(N[K]=L)}},j.getContextValue=(S,y,O)=>{if(y===null)return O==="@context"?void 0:null;if(S.mappings.has(y)){const T=S.mappings.get(y);if(i(O))return T;if(T.hasOwnProperty(O))return T[O]}return O==="@language"&&O in S||O==="@direction"&&O in S?S[O]:O!=="@context"?null:void 0},j.processingMode=(S,y)=>y.toString()>="1.1"?!S.processingMode||S.processingMode>="json-ld-"+y.toString():S.processingMode==="json-ld-1.0",j.isKeyword=S=>{if(!d(S)||S[0]!=="@")return!1;switch(S){case"@base":case"@container":case"@context":case"@default":case"@direction":case"@embed":case"@explicit":case"@graph":case"@id":case"@included":case"@index":case"@json":case"@language":case"@list":case"@nest":case"@none":case"@omitDefault":case"@prefix":case"@preserve":case"@protected":case"@requireAll":case"@reverse":case"@set":case"@type":case"@value":case"@version":case"@vocab":return!0}return!1}},6957:(s,e,t)=>{const{parseLinkHeader:r,buildHeaders:n}=t(9263),{LINK_HEADER_CONTEXT:a}=t(9378),l=t(2207),d=t(3743),{prependBase:i}=t(470),o=/(^|(\r\n))link:/i;s.exports=({secure:c,headers:p={},xhr:v}={headers:{}})=>(p=n(p),new d().wrapLoader(async function f(h){if(h.indexOf("http:")!==0&&h.indexOf("https:")!==0)throw new l('URL could not be dereferenced; only "http" and "https" URLs are supported.',"jsonld.InvalidUrl",{code:"loading document failed",url:h});if(c&&h.indexOf("https")!==0)throw new l(`URL could not be dereferenced; secure mode is enabled and the URL's scheme is not "https".`,"jsonld.InvalidUrl",{code:"loading document failed",url:h});let w;try{w=await function(Q,S,y){const O=new(Q=Q||XMLHttpRequest);return new Promise((T,k)=>{O.onload=()=>T(O),O.onerror=b=>k(b),O.open("GET",S,!0);for(const b in y)O.setRequestHeader(b,y[b]);O.send()})}(v,h,p)}catch(Q){throw new l("URL could not be dereferenced, an error occurred.","jsonld.LoadDocumentError",{code:"loading document failed",url:h,cause:Q})}if(w.status>=400)throw new l("URL could not be dereferenced: "+w.statusText,"jsonld.LoadDocumentError",{code:"loading document failed",url:h,httpStatusCode:w.status});let g={contextUrl:null,documentUrl:h,document:w.response},x=null;const j=w.getResponseHeader("Content-Type");let A;if(o.test(w.getAllResponseHeaders())&&(A=w.getResponseHeader("Link")),A&&j!=="application/ld+json"){const Q=r(A),S=Q[a];if(Array.isArray(S))throw new l("URL could not be dereferenced, it has more than one associated HTTP Link Header.","jsonld.InvalidUrl",{code:"multiple context link headers",url:h});S&&(g.contextUrl=S.target),x=Q.alternate,x&&x.type=="application/ld+json"&&!(j||"").match(/^application\/(\w*\+)?json$/)&&(g=await f(i(h,x.target)))}return g}))},2246:(s,e,t)=>{const r=t(2207),{isArray:n}=t(7382),{asArray:a}=t(9263),l={};function d({event:o,handlers:c}){let p=!0;for(let v=0;p&&v{p=!0}});else{if(typeof f!="object")throw new r("Invalid event handler.","jsonld.InvalidEventHandler",{event:o});o.code in f?f[o.code]({event:o,next:()=>{p=!0}}):p=!0}}return p}s.exports=l,l.defaultEventHandler=null,l.setupEventHandler=({options:o={}})=>{const c=[].concat(o.safe?l.safeEventHandler:[],o.eventHandler?a(o.eventHandler):[],l.defaultEventHandler?l.defaultEventHandler:[]);return c.length===0?null:c},l.handleEvent=({event:o,options:c})=>{d({event:o,handlers:c.eventHandler})};const i=new Set(["empty object","free-floating scalar","invalid @language value","invalid property","null @id value","null @value value","object with only @id","object with only @language","object with only @list","object with only @value","relative @id reference","relative @type reference","relative @vocab reference","reserved @id value","reserved @reverse value","reserved term","blank node predicate","relative graph reference","relative object reference","relative predicate reference","relative subject reference","rdfDirection not set"]);l.safeEventHandler=function({event:o,next:c}){if(o.level==="warning"&&i.has(o.code))throw new r("Safe mode validation error.","jsonld.ValidationError",{event:o});c()},l.logEventHandler=function({event:o,next:c}){console.log(`EVENT: ${o.message}`,{event:o}),c()},l.logWarningEventHandler=function({event:o,next:c}){o.level==="warning"&&console.warn(`WARNING: ${o.message}`,{event:o}),c()},l.unhandledEventHandler=function({event:o}){throw new r("No handler for event.","jsonld.UnhandledEvent",{event:o})},l.setDefaultEventHandler=function({eventHandler:o}={}){l.defaultEventHandler=o?a(o):null}},4019:(s,e,t)=>{const r=t(2207),{isArray:n,isObject:a,isEmptyObject:l,isString:d,isUndefined:i}=t(7382),{isList:o,isValue:c,isGraph:p,isSubject:v}=t(3978),{expandIri:f,getContextValue:h,isKeyword:w,process:g,processingMode:x}=t(1972),{isAbsolute:j}=t(470),{REGEX_BCP47:A,REGEX_KEYWORD:Q,addValue:S,asArray:y,getValues:O,validateTypeValue:T}=t(9263),{handleEvent:k}=t(2246),b={};function L({value:C,count:X,options:I}){if(X===0||"@value"in C||"@list"in C||X===1&&"@id"in C){if(I.eventHandler){let B,U;X===0?(B="empty object",U="Dropping empty object."):"@value"in C?(B="object with only @value",U="Dropping object with only @value."):"@list"in C?(B="object with only @list",U="Dropping object with only @list."):X===1&&"@id"in C&&(B="object with only @id",U="Dropping object with only @id."),k({event:{type:["JsonLdEvent"],code:B,level:"warning",message:U,details:{value:C}},options:I})}return null}return C}async function N({activeCtx:C,activeProperty:X,expandedActiveProperty:I,element:B,expandedParent:U,options:P={},insideList:J,typeKey:D,typeScopedContext:V}){const te=Object.keys(B).sort(),le=[];let ee;const M=B[D]&&f(C,n(B[D])?B[D][0]:B[D],{vocab:!0},{...P,typeExpansion:!0})==="@json";for(const E of te){let W,z=B[E];if(E==="@context")continue;const Z=f(C,E,{vocab:!0},P);if(Z===null||!j(Z)&&!w(Z)){P.eventHandler&&k({event:{type:["JsonLdEvent"],code:"invalid property",level:"warning",message:"Dropping property that did not expand into an absolute IRI or keyword.",details:{property:E,expandedProperty:Z}},options:P});continue}if(w(Z)){if(I==="@reverse")throw new r("Invalid JSON-LD syntax; a keyword cannot be used as a @reverse property.","jsonld.SyntaxError",{code:"invalid reverse property map",value:z});if(Z in U&&Z!=="@included"&&Z!=="@type")throw new r("Invalid JSON-LD syntax; colliding keywords detected.","jsonld.SyntaxError",{code:"colliding keywords",keyword:Z})}if(Z==="@id"){if(!d(z)){if(!P.isFrame)throw new r('Invalid JSON-LD syntax; "@id" value must a string.',"jsonld.SyntaxError",{code:"invalid @id value",value:z});if(a(z)){if(!l(z))throw new r('Invalid JSON-LD syntax; "@id" value an empty object or array of strings, if framing',"jsonld.SyntaxError",{code:"invalid @id value",value:z})}else{if(!n(z))throw new r('Invalid JSON-LD syntax; "@id" value an empty object or array of strings, if framing',"jsonld.SyntaxError",{code:"invalid @id value",value:z});if(!z.every(ie=>d(ie)))throw new r('Invalid JSON-LD syntax; "@id" value an empty object or array of strings, if framing',"jsonld.SyntaxError",{code:"invalid @id value",value:z})}}S(U,"@id",y(z).map(ie=>{if(d(ie)){const oe=f(C,ie,{base:!0},P);return P.eventHandler&&(oe===null?k(ie===null?{event:{type:["JsonLdEvent"],code:"null @id value",level:"warning",message:"Null @id found.",details:{id:ie}},options:P}:{event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:"Reserved @id found.",details:{id:ie}},options:P}):j(oe)||k({event:{type:["JsonLdEvent"],code:"relative @id reference",level:"warning",message:"Relative @id reference found.",details:{id:ie,expandedId:oe}},options:P})),oe}return ie}),{propertyIsArray:P.isFrame});continue}if(Z==="@type"){a(z)&&(z=Object.fromEntries(Object.entries(z).map(([ie,oe])=>[f(V,ie,{vocab:!0}),y(oe).map(u=>f(V,u,{base:!0,vocab:!0},{...P,typeExpansion:!0}))]))),T(z,P.isFrame),S(U,"@type",y(z).map(ie=>{if(d(ie)){const oe=f(V,ie,{base:!0,vocab:!0},{...P,typeExpansion:!0});return oe==="@json"||j(oe)||P.eventHandler&&k({event:{type:["JsonLdEvent"],code:"relative @type reference",level:"warning",message:"Relative @type reference found.",details:{type:ie}},options:P}),oe}return ie}),{propertyIsArray:!!P.isFrame});continue}if(Z==="@included"&&x(C,1.1)){const ie=y(await b.expand({activeCtx:C,activeProperty:X,element:z,options:P}));if(!ie.every(oe=>v(oe)))throw new r("Invalid JSON-LD syntax; values of @included must expand to node objects.","jsonld.SyntaxError",{code:"invalid @included value",value:z});S(U,"@included",ie,{propertyIsArray:!0});continue}if(Z==="@graph"&&!a(z)&&!n(z))throw new r('Invalid JSON-LD syntax; "@graph" value must not be an object or an array.',"jsonld.SyntaxError",{code:"invalid @graph value",value:z});if(Z==="@value"){ee=z,M&&x(C,1.1)?U["@value"]=z:S(U,"@value",z,{propertyIsArray:P.isFrame});continue}if(Z==="@language"){if(z===null)continue;if(!d(z)&&!P.isFrame)throw new r('Invalid JSON-LD syntax; "@language" value must be a string.',"jsonld.SyntaxError",{code:"invalid language-tagged string",value:z});z=y(z).map(ie=>d(ie)?ie.toLowerCase():ie);for(const ie of z)d(ie)&&!ie.match(A)&&P.eventHandler&&k({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:ie}},options:P});S(U,"@language",z,{propertyIsArray:P.isFrame});continue}if(Z==="@direction"){if(!d(z)&&!P.isFrame)throw new r('Invalid JSON-LD syntax; "@direction" value must be a string.',"jsonld.SyntaxError",{code:"invalid base direction",value:z});z=y(z);for(const ie of z)if(d(ie)&&ie!=="ltr"&&ie!=="rtl")throw new r('Invalid JSON-LD syntax; "@direction" must be "ltr" or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",value:z});S(U,"@direction",z,{propertyIsArray:P.isFrame});continue}if(Z==="@index"){if(!d(z))throw new r('Invalid JSON-LD syntax; "@index" value must be a string.',"jsonld.SyntaxError",{code:"invalid @index value",value:z});S(U,"@index",z);continue}if(Z==="@reverse"){if(!a(z))throw new r('Invalid JSON-LD syntax; "@reverse" value must be an object.',"jsonld.SyntaxError",{code:"invalid @reverse value",value:z});if(W=await b.expand({activeCtx:C,activeProperty:"@reverse",element:z,options:P}),"@reverse"in W)for(const oe in W["@reverse"])S(U,oe,W["@reverse"][oe],{propertyIsArray:!0});let ie=U["@reverse"]||null;for(const oe in W){if(oe==="@reverse")continue;ie===null&&(ie=U["@reverse"]={}),S(ie,oe,[],{propertyIsArray:!0});const u=W[oe];for(let m=0;mie==="@id"||ie==="@index")){if(W=y(W),P.isFrame||(W=W.filter(ie=>L({value:ie,count:Object.keys(ie).length,options:P})!==null)),W.length===0)continue;W=W.map(ie=>({"@graph":y(ie)}))}if(R.mappings.has(E)&&R.mappings.get(E).reverse){const ie=U["@reverse"]=U["@reverse"]||{};W=y(W);for(let oe=0;oef(C,Z,{vocab:!0},P)==="@value"))throw new r("Invalid JSON-LD syntax; nested value must be a node object.","jsonld.SyntaxError",{code:"invalid @nest value",value:z});await N({activeCtx:C,activeProperty:X,expandedActiveProperty:I,element:z,expandedParent:U,options:P,insideList:J,typeScopedContext:V,typeKey:D})}}}function K({activeCtx:C,activeProperty:X,value:I,options:B}){if(I==null)return null;const U=f(C,X,{vocab:!0},B);if(U==="@id")return f(C,I,{base:!0},B);if(U==="@type")return f(C,I,{vocab:!0,base:!0},{...B,typeExpansion:!0});const P=h(C,X,"@type");if((P==="@id"||U==="@graph")&&d(I)){const D=f(C,I,{base:!0},B);return D===null&&I.match(Q)&&B.eventHandler&&k({event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:"Reserved @id found.",details:{id:X}},options:B}),{"@id":D}}if(P==="@vocab"&&d(I))return{"@id":f(C,I,{vocab:!0,base:!0},B)};if(w(U))return I;const J={};if(P&&!["@id","@vocab","@none"].includes(P))J["@type"]=P;else if(d(I)){const D=h(C,X,"@language");D!==null&&(J["@language"]=D);const V=h(C,X,"@direction");V!==null&&(J["@direction"]=V)}return["boolean","number","string"].includes(typeof I)||(I=I.toString()),J["@value"]=I,J}function se(C,X,I,B){const U=[],P=Object.keys(X).sort();for(const J of P){const D=f(C,J,{vocab:!0},B);let V=X[J];n(V)||(V=[V]);for(const te of V){if(te===null)continue;if(!d(te))throw new r("Invalid JSON-LD syntax; language map values must be strings.","jsonld.SyntaxError",{code:"invalid language map value",languageMap:X});const le={"@value":te};D!=="@none"&&(J.match(A)||B.eventHandler&&k({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:J}},options:B}),le["@language"]=J.toLowerCase()),I&&(le["@direction"]=I),U.push(le)}}return U}async function q({activeCtx:C,options:X,activeProperty:I,value:B,asGraph:U,indexKey:P,propertyIndex:J}){const D=[],V=Object.keys(B).sort(),te=P==="@type";for(let le of V){if(te){const E=h(C,le,"@context");i(E)||(C=await g({activeCtx:C,localCtx:E,propagate:!1,options:X}))}let ee,M=B[le];n(M)||(M=[M]),M=await b.expand({activeCtx:C,activeProperty:I,element:M,options:X,insideList:!1,insideIndex:!0}),ee=J?le==="@none"?"@none":K({activeCtx:C,activeProperty:P,value:le,options:X}):f(C,le,{vocab:!0},X),P==="@id"?le=f(C,le,{base:!0},X):te&&(le=ee);for(let E of M){if(U&&!p(E)&&(E={"@graph":[E]}),P==="@type")ee==="@none"||(E["@type"]?E["@type"]=[le].concat(E["@type"]):E["@type"]=[le]);else{if(c(E)&&!["@language","@type","@index"].includes(P))throw new r(`Invalid JSON-LD syntax; Attempt to add illegal key to value object: "${P}".`,"jsonld.SyntaxError",{code:"invalid value object",value:E});J?ee!=="@none"&&S(E,J,ee,{propertyIsArray:!0,prependValue:!0}):ee==="@none"||P in E||(E[P]=le)}D.push(E)}}return D}s.exports=b,b.expand=async({activeCtx:C,activeProperty:X=null,element:I,options:B={},insideList:U=!1,insideIndex:P=!1,typeScopedContext:J=null})=>{if(I==null)return null;if(X==="@default"&&(B=Object.assign({},B,{isFrame:!1})),!n(I)&&!a(I))return U||X!==null&&f(C,X,{vocab:!0},B)!=="@graph"?K({activeCtx:C,activeProperty:X,value:I,options:B}):(B.eventHandler&&k({event:{type:["JsonLdEvent"],code:"free-floating scalar",level:"warning",message:"Dropping free-floating scalar not in a list.",details:{value:I}},options:B}),null);if(n(I)){let W=[];const z=h(C,X,"@container")||[];U=U||z.includes("@list");for(let Z=0;Z1?z.slice().sort():z:[z];for(const R of Z){const ne=h(J,R,"@context");i(ne)||(C=await g({activeCtx:C,localCtx:ne,options:B,propagate:!1}))}}let M={};await N({activeCtx:C,activeProperty:X,expandedActiveProperty:D,element:I,expandedParent:M,options:B,insideList:U,typeKey:ee,typeScopedContext:J}),te=Object.keys(M);let E=te.length;if("@value"in M){if("@type"in M&&("@language"in M||"@direction"in M))throw new r('Invalid JSON-LD syntax; an element containing "@value" may not contain both "@type" and either "@language" or "@direction".',"jsonld.SyntaxError",{code:"invalid value object",element:M});let W=E-1;if("@type"in M&&(W-=1),"@index"in M&&(W-=1),"@language"in M&&(W-=1),"@direction"in M&&(W-=1),W!==0)throw new r('Invalid JSON-LD syntax; an element containing "@value" may only have an "@index" property and either "@type" or either or both "@language" or "@direction".',"jsonld.SyntaxError",{code:"invalid value object",element:M});const z=M["@value"]===null?[]:y(M["@value"]),Z=O(M,"@type");if(!(x(C,1.1)&&Z.includes("@json")&&Z.length===1))if(z.length===0)B.eventHandler&&k({event:{type:["JsonLdEvent"],code:"null @value value",level:"warning",message:"Dropping null @value value.",details:{value:M}},options:B}),M=null;else{if(!z.every(R=>d(R)||l(R))&&"@language"in M)throw new r("Invalid JSON-LD syntax; only strings may be language-tagged.","jsonld.SyntaxError",{code:"invalid language-tagged value",element:M});if(!Z.every(R=>j(R)&&!(d(R)&&R.indexOf("_:")===0)||l(R)))throw new r('Invalid JSON-LD syntax; an element containing "@value" and "@type" must have an absolute IRI for the value of "@type".',"jsonld.SyntaxError",{code:"invalid typed value",element:M})}}else if("@type"in M&&!n(M["@type"]))M["@type"]=[M["@type"]];else if("@set"in M||"@list"in M){if(E>1&&(E!==2||!("@index"in M)))throw new r('Invalid JSON-LD syntax; if an element has the property "@set" or "@list", then it can have at most one other property that is "@index".',"jsonld.SyntaxError",{code:"invalid set or list object",element:M});"@set"in M&&(M=M["@set"],te=Object.keys(M),E=te.length)}else E===1&&"@language"in M&&(B.eventHandler&&k({event:{type:["JsonLdEvent"],code:"object with only @language",level:"warning",message:"Dropping object with only @language.",details:{value:M}},options:B}),M=null);return!a(M)||B.keepFreeFloatingNodes||U||X!==null&&D!=="@graph"&&!(h(C,X,"@container")||[]).includes("@graph")||(M=L({value:M,count:E,options:B})),M}},5229:(s,e,t)=>{const{isSubjectReference:r}=t(3978),{createMergedNodeMap:n}=t(9233),a={};s.exports=a,a.flatten=l=>{const d=n(l),i=[],o=Object.keys(d).sort();for(let c=0;c{const{isKeyword:r}=t(1972),n=t(3978),a=t(7382),l=t(9263),d=t(470),i=t(2207),{createNodeMap:o,mergeNodeMapGraphs:c}=t(9233),p={};function v(y){const O={};for(const T in y)y[T]!==void 0&&(O["@"+T]=[y[T]]);return[O]}function f(y,O,T){for(let k=T.length-1;k>=0;--k){const b=T[k];if(b.graph===O&&b.subject["@id"]===y["@id"])return!0}return!1}function h(y,O,T){const k="@"+T;let b=k in y?y[k][0]:O[T];if(T==="embed"){if(b===!0)b="@once";else if(b===!1)b="@never";else if(b!=="@always"&&b!=="@never"&&b!=="@link"&&b!=="@first"&&b!=="@last"&&b!=="@once")throw new i("Invalid JSON-LD syntax; invalid value of @embed.","jsonld.SyntaxError",{code:"invalid @embed value",frame:y})}return b}function w(y){if(!a.isArray(y)||y.length!==1||!a.isObject(y[0]))throw new i("Invalid JSON-LD syntax; a JSON-LD frame must be a single object.","jsonld.SyntaxError",{frame:y});if("@id"in y[0]){for(const O of l.asArray(y[0]["@id"]))if(!a.isObject(O)&&!d.isAbsolute(O)||a.isString(O)&&O.indexOf("_:")===0)throw new i("Invalid JSON-LD syntax; invalid @id in frame.","jsonld.SyntaxError",{code:"invalid frame",frame:y})}if("@type"in y[0]){for(const O of l.asArray(y[0]["@type"]))if(!a.isObject(O)&&!d.isAbsolute(O)&&O!=="@json"||a.isString(O)&&O.indexOf("_:")===0)throw new i("Invalid JSON-LD syntax; invalid @type in frame.","jsonld.SyntaxError",{code:"invalid frame",frame:y})}}function g(y,O,T,k){let b=!0,L=!1;for(const N in T){let K=!1;const se=l.getValues(O,N),q=l.getValues(T,N).length===0;if(N==="@id"){if(a.isEmptyObject(T["@id"][0]||{})?K=!0:T["@id"].length>=0&&(K=T["@id"].includes(se[0])),!k.requireAll)return K}else if(N==="@type"){if(b=!1,q){if(se.length>0)return!1;K=!0}else if(T["@type"].length===1&&a.isEmptyObject(T["@type"][0]))K=se.length>0;else for(const C of T["@type"])K=!(!a.isObject(C)||!("@default"in C))||K||se.some(X=>X===C);if(!k.requireAll)return K}else{if(r(N))continue;{const C=l.getValues(T,N)[0];let X=!1;if(C&&(w([C]),X="@default"in C),b=!1,se.length===0&&X)continue;if(se.length>0&&q)return!1;if(C===void 0){if(se.length>0)return!1;K=!0}else if(n.isList(C)){const I=C["@list"][0];if(n.isList(se[0])){const B=se[0]["@list"];n.isValue(I)?K=B.some(U=>S(I,U)):(n.isSubject(I)||n.isSubjectReference(I))&&(K=B.some(U=>Q(y,I,U,k)))}}else K=n.isValue(C)?se.some(I=>S(C,I)):n.isSubjectReference(C)?se.some(I=>Q(y,C,I,k)):!!a.isObject(C)&&se.length>0}}if(!K&&k.requireAll)return!1;L=L||K}return b||L}function x(y,O){const T=y.uniqueEmbeds[y.graph],k=T[O],b=k.parent,L=k.property,N={"@id":O};if(a.isArray(b)){for(let se=0;se{const q=Object.keys(T);for(const C of q)C in T&&a.isObject(T[C].parent)&&T[C].parent["@id"]===se&&(delete T[C],K(C))};K(O)}function j(y,O){if(a.isArray(y))return y.map(T=>j(T,O));if(a.isObject(y)){if("@preserve"in y)return y["@preserve"][0];if(n.isValue(y))return y;if(n.isList(y))return y["@list"]=j(y["@list"],O),y;if("@id"in y){const T=y["@id"];if(O.link.hasOwnProperty(T)){const k=O.link[T].indexOf(y);if(k!==-1)return O.link[T][k];O.link[T].push(y)}else O.link[T]=[y]}for(const T in y)T==="@id"&&O.bnodesToClear.includes(y[T])?delete y["@id"]:y[T]=j(y[T],O)}return y}function A(y,O,T){a.isObject(y)?l.addValue(y,O,T,{propertyIsArray:!0}):y.push(T)}function Q(y,O,T,k){if(!("@id"in T))return!1;const b=y.subjects[T["@id"]];return b&&g(y,b,O,k)}function S(y,O){const T=O["@value"],k=O["@type"],b=O["@language"],L=y["@value"]?a.isArray(y["@value"])?y["@value"]:[y["@value"]]:[],N=y["@type"]?a.isArray(y["@type"])?y["@type"]:[y["@type"]]:[],K=y["@language"]?a.isArray(y["@language"])?y["@language"]:[y["@language"]]:[];return L.length===0&&N.length===0&&K.length===0||!(!L.includes(T)&&!a.isEmptyObject(L[0]))&&!!(!k&&N.length===0||N.includes(k)||k&&a.isEmptyObject(N[0]))&&!!(!b&&K.length===0||K.includes(b)||b&&a.isEmptyObject(K[0]))}s.exports=p,p.frameMergedOrDefault=(y,O,T)=>{const k={options:T,embedded:!1,graph:"@default",graphMap:{"@default":{}},subjectStack:[],link:{},bnodeMap:{}},b=new l.IdentifierIssuer("_:b");o(y,k.graphMap,"@default",b),T.merged&&(k.graphMap["@merged"]=c(k.graphMap),k.graph="@merged"),k.subjects=k.graphMap[k.graph];const L=[];return p.frame(k,Object.keys(k.subjects).sort(),O,L),T.pruneBlankNodeIdentifiers&&(T.bnodesToClear=Object.keys(k.bnodeMap).filter(N=>k.bnodeMap[N].length===1)),T.link={},j(L,T)},p.frame=(y,O,T,k,b=null)=>{w(T),T=T[0];const L=y.options,N={embed:h(T,L,"embed"),explicit:h(T,L,"explicit"),requireAll:h(T,L,"requireAll")};y.link.hasOwnProperty(y.graph)||(y.link[y.graph]={});const K=y.link[y.graph],se=function(C,X,I,B){const U={};for(const P of X){const J=C.graphMap[C.graph][P];g(C,J,I,B)&&(U[P]=J)}return U}(y,O,T,N),q=Object.keys(se).sort();for(const C of q){const X=se[C];if(b===null?y.uniqueEmbeds={[y.graph]:{}}:y.uniqueEmbeds[y.graph]=y.uniqueEmbeds[y.graph]||{},N.embed==="@link"&&C in K){A(k,b,K[C]);continue}const I={"@id":C};if(C.indexOf("_:")===0&&l.addValue(y.bnodeMap,C,I,{propertyIsArray:!0}),K[C]=I,(N.embed==="@first"||N.embed==="@last")&&y.is11)throw new i("Invalid JSON-LD syntax; invalid value of @embed.","jsonld.SyntaxError",{code:"invalid @embed value",frame:T});if(y.embedded||!y.uniqueEmbeds[y.graph].hasOwnProperty(C))if(!y.embedded||N.embed!=="@never"&&!f(X,y.graph,y.subjectStack))if(!y.embedded||N.embed!="@first"&&N.embed!="@once"||!y.uniqueEmbeds[y.graph].hasOwnProperty(C)){if(N.embed==="@last"&&C in y.uniqueEmbeds[y.graph]&&x(y,C),y.uniqueEmbeds[y.graph][C]={parent:k,property:b},y.subjectStack.push({subject:X,graph:y.graph}),C in y.graphMap){let B=!1,U=null;"@graph"in T?(U=T["@graph"][0],B=!(C==="@merged"||C==="@default"),a.isObject(U)||(U={})):(B=y.graph!=="@merged",U={}),B&&p.frame({...y,graph:C,embedded:!1},Object.keys(y.graphMap[C]).sort(),[U],I,"@graph")}"@included"in T&&p.frame({...y,embedded:!1},O,T["@included"],I,"@included");for(const B of Object.keys(X).sort())if(r(B)){if(I[B]=l.clone(X[B]),B==="@type")for(const U of X["@type"])U.indexOf("_:")===0&&l.addValue(y.bnodeMap,U,I,{propertyIsArray:!0})}else if(!N.explicit||B in T)for(const U of X[B]){const P=B in T?T[B]:v(N);if(n.isList(U)){const J=T[B]&&T[B][0]&&T[B][0]["@list"]?T[B][0]["@list"]:v(N),D={"@list":[]};A(I,B,D);const V=U["@list"];for(const te of V)n.isSubjectReference(te)?p.frame({...y,embedded:!0},[te["@id"]],J,D,"@list"):A(D,"@list",l.clone(te))}else n.isSubjectReference(U)?p.frame({...y,embedded:!0},[U["@id"]],P,I,B):S(P[0],U)&&A(I,B,l.clone(U))}for(const B of Object.keys(T).sort()){if(B==="@type"){if(!a.isObject(T[B][0])||!("@default"in T[B][0]))continue}else if(r(B))continue;const U=T[B][0]||{};if(!h(U,L,"omitDefault")&&!(B in I)){let P="@null";"@default"in U&&(P=l.clone(U["@default"])),a.isArray(P)||(P=[P]),I[B]=[{"@preserve":P}]}}for(const B of Object.keys(T["@reverse"]||{}).sort()){const U=T["@reverse"][B];for(const P of Object.keys(y.subjects))l.getValues(y.subjects[P],B).some(J=>J["@id"]===C)&&(I["@reverse"]=I["@reverse"]||{},l.addValue(I["@reverse"],B,[],{propertyIsArray:!0}),p.frame({...y,embedded:!0},[P],U,I["@reverse"][B],b))}A(k,b,I),y.subjectStack.pop()}else A(k,b,I);else A(k,b,I)}},p.cleanupNull=(y,O)=>{if(a.isArray(y))return y.map(T=>p.cleanupNull(T,O)).filter(T=>T);if(y==="@null")return null;if(a.isObject(y)){if("@id"in y){const T=y["@id"];if(O.link.hasOwnProperty(T)){const k=O.link[T].indexOf(y);if(k!==-1)return O.link[T][k];O.link[T].push(y)}else O.link[T]=[y]}for(const T in y)y[T]=p.cleanupNull(y[T],O)}return y}},3947:(s,e,t)=>{const r=t(2207),n=t(3978),a=t(7382),{REGEX_BCP47:l,addValue:d}=t(9263),{handleEvent:i}=t(2246),{RDF_LIST:o,RDF_FIRST:c,RDF_REST:p,RDF_NIL:v,RDF_TYPE:f,RDF_JSON_LITERAL:h,XSD_BOOLEAN:w,XSD_DOUBLE:g,XSD_INTEGER:x,XSD_STRING:j}=t(9378),A={};function Q(S,y,O,T){if(S.termType.endsWith("Node"))return{"@id":S.value};const k={"@value":S.value};if(S.language)S.language.match(l)||T.eventHandler&&i({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:S.language}},options:T}),k["@language"]=S.language;else{let b=S.datatype.value;if(b||(b=j),b===h){b="@json";try{k["@value"]=JSON.parse(k["@value"])}catch(L){throw new r("JSON literal could not be parsed.","jsonld.InvalidJsonLiteral",{code:"invalid JSON literal",value:k["@value"],cause:L})}}if(y){if(b===w)k["@value"]==="true"?k["@value"]=!0:k["@value"]==="false"&&(k["@value"]=!1);else if(a.isNumeric(k["@value"]))if(b===x){const L=parseInt(k["@value"],10);L.toFixed(0)===k["@value"]&&(k["@value"]=L)}else b===g&&(k["@value"]=parseFloat(k["@value"]));[w,x,g,j].includes(b)||(k["@type"]=b)}else if(O==="i18n-datatype"&&b.startsWith("https://www.w3.org/ns/i18n#")){const[,L,N]=b.split(/[#_]/);L.length>0&&(k["@language"]=L,L.match(l)||T.eventHandler&&i({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:L}},options:T})),k["@direction"]=N}else b!==j&&(k["@type"]=b)}return k}s.exports=A,A.fromRDF=async(S,y)=>{const{useRdfType:O=!1,useNativeTypes:T=!1,rdfDirection:k=null}=y,b={},L={"@default":b},N={};if(k){if(k==="compound-literal")throw new r("Unsupported rdfDirection value.","jsonld.InvalidRdfDirection",{value:k});if(k!=="i18n-datatype")throw new r("Unknown rdfDirection value.","jsonld.InvalidRdfDirection",{value:k})}for(const q of S){const C=q.graph.termType==="DefaultGraph"?"@default":q.graph.value;C in L||(L[C]={}),C==="@default"||C in b||(b[C]={"@id":C});const X=L[C],I=q.subject.value,B=q.predicate.value,U=q.object;I in X||(X[I]={"@id":I});const P=X[I],J=U.termType.endsWith("Node");if(J&&!(U.value in X)&&(X[U.value]={"@id":U.value}),B===f&&!O&&J){d(P,"@type",U.value,{propertyIsArray:!0});continue}const D=Q(U,T,k,y);if(d(P,B,D,{propertyIsArray:!0}),J)if(U.value===v){const V=X[U.value];"usages"in V||(V.usages=[]),V.usages.push({node:P,property:B,value:D})}else U.value in N?N[U.value]=!1:N[U.value]={node:P,property:B,value:D}}for(const q in L){const C=L[q];if(!(v in C))continue;const X=C[v];if(X.usages){for(let I of X.usages){let B=I.node,U=I.property,P=I.value;const J=[],D=[];let V=Object.keys(B).length;for(;U===p&&a.isObject(N[B["@id"]])&&a.isArray(B[c])&&B[c].length===1&&a.isArray(B[p])&&B[p].length===1&&(V===3||V===4&&a.isArray(B["@type"])&&B["@type"].length===1&&B["@type"][0]===o)&&(J.push(B[c][0]),D.push(B["@id"]),I=N[B["@id"]],B=I.node,U=I.property,P=I.value,V=Object.keys(B).length,n.isBlankNode(B)););delete P["@id"],P["@list"]=J.reverse();for(const te of D)delete C[te]}delete X.usages}}const K=[],se=Object.keys(b).sort();for(const q of se){const C=b[q];if(q in L){const X=C["@graph"]=[],I=L[q],B=Object.keys(I).sort();for(const U of B){const P=I[U];n.isSubjectReference(P)||X.push(P)}}n.isSubjectReference(C)||K.push(C)}return K}},3978:(s,e,t)=>{const r=t(7382),n={};s.exports=n,n.isSubject=a=>!(!r.isObject(a)||"@value"in a||"@set"in a||"@list"in a)&&(Object.keys(a).length>1||!("@id"in a)),n.isSubjectReference=a=>r.isObject(a)&&Object.keys(a).length===1&&"@id"in a,n.isValue=a=>r.isObject(a)&&"@value"in a,n.isList=a=>r.isObject(a)&&"@list"in a,n.isGraph=a=>r.isObject(a)&&"@graph"in a&&Object.keys(a).filter(l=>l!=="@id"&&l!=="@index").length===1,n.isSimpleGraph=a=>n.isGraph(a)&&!("@id"in a),n.isBlankNode=a=>{if(r.isObject(a)){if("@id"in a){const l=a["@id"];return!r.isString(l)||l.indexOf("_:")===0}return Object.keys(a).length===0||!("@value"in a||"@set"in a||"@list"in a)}return!1}},4841:(s,e,t)=>{const r=t(989),n=t(701),a=t(9263),l=t(7034),d=a.IdentifierIssuer,i=t(2207),o=t(9749),c=t(8229),{expand:p}=t(4019),{flatten:v}=t(5229),{fromRDF:f}=t(3947),{toRDF:h}=t(9180),{frameMergedOrDefault:w,cleanupNull:g}=t(7946),{isArray:x,isObject:j,isString:A}=t(7382),{isSubjectReference:Q}=t(3978),{expandIri:S,getInitialContext:y,process:O,processingMode:T}=t(1972),{compact:k,compactIri:b}=t(1058),{createNodeMap:L,createMergedNodeMap:N,mergeNodeMaps:K}=t(9233),{logEventHandler:se,logWarningEventHandler:q,safeEventHandler:C,setDefaultEventHandler:X,setupEventHandler:I,strictEventHandler:B,unhandledEventHandler:U}=t(2246),P=function(D){const V={},te=new o({max:100});function le(ee,{documentLoader:M=D.documentLoader,...E}){if(ee&&"compactionMap"in ee)throw new i('"compactionMap" not supported.',"jsonld.OptionsError");if(ee&&"expansionMap"in ee)throw new i('"expansionMap" not supported.',"jsonld.OptionsError");return Object.assign({},{documentLoader:M},E,ee,{eventHandler:I({options:ee})})}return D.compact=async function(ee,M,E){if(arguments.length<2)throw new TypeError("Could not compact, too few arguments.");if(M===null)throw new i("The compaction context must not be null.","jsonld.CompactError",{code:"invalid local context"});if(ee===null)return null;let W;(E=le(E,{base:A(ee)?ee:"",compactArrays:!0,compactToRelative:!0,graph:!1,skipExpansion:!1,link:!1,issuer:new d("_:b"),contextResolver:new l({sharedCache:te})})).link&&(E.skipExpansion=!0),E.compactToRelative||delete E.base,W=E.skipExpansion?ee:await D.expand(ee,E);const z=await D.processContext(y(E),M,E);let Z=await k({activeCtx:z,element:W,options:E});E.compactArrays&&!E.graph&&x(Z)?Z.length===1?Z=Z[0]:Z.length===0&&(Z={}):E.graph&&j(Z)&&(Z=[Z]),j(M)&&"@context"in M&&(M=M["@context"]),M=a.clone(M),x(M)||(M=[M]);const R=M;M=[];for(let Y=0;Y0)&&M.push(R[Y]);const ne=M.length>0;if(M.length===1&&(M=M[0]),x(Z)){const Y=b({activeCtx:z,iri:"@graph",relativeTo:{vocab:!0}}),ie=Z;Z={},ne&&(Z["@context"]=M),Z[Y]=ie}else if(j(Z)&&ne){const Y=Z;Z={"@context":M};for(const ie in Y)Z[ie]=Y[ie]}return Z},D.expand=async function(ee,M){if(arguments.length<1)throw new TypeError("Could not expand, too few arguments.");const E={},W=[];if("expandContext"in(M=le(M,{keepFreeFloatingNodes:!1,contextResolver:new l({sharedCache:te})}))){const ne=a.clone(M.expandContext);j(ne)&&"@context"in ne?E.expandContext=ne:E.expandContext={"@context":ne},W.push(E.expandContext)}let z;if(A(ee)){const ne=await D.get(ee,M);z=ne.documentUrl,E.input=ne.document,ne.contextUrl&&(E.remoteContext={"@context":ne.contextUrl},W.push(E.remoteContext))}else E.input=a.clone(ee);"base"in M||(M.base=z||"");let Z=y(M);for(const ne of W)Z=await O({activeCtx:Z,localCtx:ne,options:M});let R=await p({activeCtx:Z,element:E.input,options:M});return j(R)&&"@graph"in R&&Object.keys(R).length===1?R=R["@graph"]:R===null&&(R=[]),x(R)||(R=[R]),R},D.flatten=async function(ee,M,E){if(arguments.length<1)return new TypeError("Could not flatten, too few arguments.");M=typeof M=="function"?null:M||null,E=le(E,{base:A(ee)?ee:"",contextResolver:new l({sharedCache:te})});const W=await D.expand(ee,E),z=v(W);return M===null?z:(E.graph=!0,E.skipExpansion=!0,await D.compact(z,M,E))},D.frame=async function(ee,M,E){if(arguments.length<2)throw new TypeError("Could not frame, too few arguments.");if(E=le(E,{base:A(ee)?ee:"",embed:"@once",explicit:!1,requireAll:!1,omitDefault:!1,bnodesToClear:[],contextResolver:new l({sharedCache:te})}),A(M)){const u=await D.get(M,E);if(M=u.document,u.contextUrl){let m=M["@context"];m?x(m)?m.push(u.contextUrl):m=[m,u.contextUrl]:m=u.contextUrl,M["@context"]=m}}const W=M&&M["@context"]||{},z=await D.processContext(y(E),W,E);E.hasOwnProperty("omitGraph")||(E.omitGraph=T(z,1.1)),E.hasOwnProperty("pruneBlankNodeIdentifiers")||(E.pruneBlankNodeIdentifiers=T(z,1.1));const Z=await D.expand(ee,E),R={...E};R.isFrame=!0,R.keepFreeFloatingNodes=!0;const ne=await D.expand(M,R),Y=Object.keys(M).map(u=>S(z,u,{vocab:!0}));R.merged=!Y.includes("@graph"),R.is11=T(z,1.1);const ie=w(Z,ne,R);R.graph=!E.omitGraph,R.skipExpansion=!0,R.link={},R.framing=!0;let oe=await D.compact(ie,W,R);return R.link={},oe=g(oe,R),oe},D.link=async function(ee,M,E){const W={};return M&&(W["@context"]=M),W["@embed"]="@link",D.frame(ee,W,E)},D.normalize=D.canonize=async function(ee,M){if(arguments.length<1)throw new TypeError("Could not canonize, too few arguments.");if("inputFormat"in(M=le(M,{base:A(ee)?ee:null,algorithm:"URDNA2015",skipExpansion:!1,safe:!0,contextResolver:new l({sharedCache:te})}))){if(M.inputFormat!=="application/n-quads"&&M.inputFormat!=="application/nquads")throw new i("Unknown canonicalization input format.","jsonld.CanonizeError");const z=c.parse(ee);return r.canonize(z,M)}const E={...M};delete E.format,E.produceGeneralizedRdf=!1;const W=await D.toRDF(ee,E);return r.canonize(W,M)},D.fromRDF=async function(ee,M){if(arguments.length<1)throw new TypeError("Could not convert from RDF, too few arguments.");M=le(M,{format:A(ee)?"application/n-quads":void 0});const{format:E}=M;let{rdfParser:W}=M;if(E){if(W=W||V[E],!W)throw new i("Unknown input format.","jsonld.UnknownFormat",{format:E})}else W=()=>ee;const z=await W(ee);return f(z,M)},D.toRDF=async function(ee,M){if(arguments.length<1)throw new TypeError("Could not convert to RDF, too few arguments.");let E;E=(M=le(M,{base:A(ee)?ee:"",skipExpansion:!1,contextResolver:new l({sharedCache:te})})).skipExpansion?ee:await D.expand(ee,M);const W=h(E,M);if(M.format){if(M.format==="application/n-quads"||M.format==="application/nquads")return c.serialize(W);throw new i("Unknown output format.","jsonld.UnknownFormat",{format:M.format})}return W},D.createNodeMap=async function(ee,M){if(arguments.length<1)throw new TypeError("Could not create node map, too few arguments.");M=le(M,{base:A(ee)?ee:"",contextResolver:new l({sharedCache:te})});const E=await D.expand(ee,M);return N(E,M)},D.merge=async function(ee,M,E){if(arguments.length<1)throw new TypeError("Could not merge, too few arguments.");if(!x(ee))throw new TypeError('Could not merge, "docs" must be an array.');M=typeof M=="function"?null:M||null,E=le(E,{contextResolver:new l({sharedCache:te})});const W=await Promise.all(ee.map(oe=>{const u={...E};return D.expand(oe,u)}));let z=!0;"mergeNodes"in E&&(z=E.mergeNodes);const Z=E.issuer||new d("_:b"),R={"@default":{}};for(let oe=0;oeD._documentLoader,set:ee=>D._documentLoader=ee}),D.documentLoader=async ee=>{throw new i("Could not retrieve a JSON-LD document from the URL. URL dereferencing not implemented.","jsonld.LoadDocumentError",{code:"loading document failed",url:ee})},D.get=async function(ee,M){let E;E=typeof M.documentLoader=="function"?M.documentLoader:D.documentLoader;const W=await E(ee);try{if(!W.document)throw new i("No remote document found at the given URL.","jsonld.NullRemoteDocument");A(W.document)&&(W.document=JSON.parse(W.document))}catch(z){throw new i("Could not retrieve a JSON-LD document from the URL.","jsonld.LoadDocumentError",{code:"loading document failed",cause:z,remoteDoc:W})}return W},D.processContext=async function(ee,M,E){return E=le(E,{base:"",contextResolver:new l({sharedCache:te})}),M===null?y(E):(M=a.clone(M),j(M)&&"@context"in M||(M={"@context":M}),O({activeCtx:ee,localCtx:M,options:E}))},D.getContextValue=t(1972).getContextValue,D.documentLoaders={},D.useDocumentLoader=function(ee){if(!(ee in D.documentLoaders))throw new i('Unknown document loader type: "'+ee+'"',"jsonld.UnknownDocumentLoader",{type:ee});D.documentLoader=D.documentLoaders[ee].apply(D,Array.prototype.slice.call(arguments,1))},D.registerRDFParser=function(ee,M){V[ee]=M},D.unregisterRDFParser=function(ee){delete V[ee]},D.registerRDFParser("application/n-quads",c.parse),D.registerRDFParser("application/nquads",c.parse),D.url=t(470),D.logEventHandler=se,D.logWarningEventHandler=q,D.safeEventHandler=C,D.setDefaultEventHandler=X,D.strictEventHandler=B,D.unhandledEventHandler=U,D.util=a,Object.assign(D,a),D.promises=D,D.RequestQueue=t(3743),D.JsonLdProcessor=t(5445)(D),n.setupGlobals(D),n.setupDocumentLoaders(D),D},J=function(){return P(function(){return J()})};P(J),s.exports=J},9233:(s,e,t)=>{const{isKeyword:r}=t(1972),n=t(3978),a=t(7382),l=t(9263),d=t(2207),i={};s.exports=i,i.createMergedNodeMap=(o,c)=>{const p=(c=c||{}).issuer||new l.IdentifierIssuer("_:b"),v={"@default":{}};return i.createNodeMap(o,v,"@default",p),i.mergeNodeMaps(v)},i.createNodeMap=(o,c,p,v,f,h)=>{if(a.isArray(o)){for(const j of o)i.createNodeMap(j,c,p,v,void 0,h);return}if(!a.isObject(o))return void(h&&h.push(o));if(n.isValue(o)){if("@type"in o){let j=o["@type"];j.indexOf("_:")===0&&(o["@type"]=j=v.getId(j))}return void(h&&h.push(o))}if(h&&n.isList(o)){const j=[];return i.createNodeMap(o["@list"],c,p,v,f,j),void h.push({"@list":j})}if("@type"in o){const j=o["@type"];for(const A of j)A.indexOf("_:")===0&&v.getId(A)}a.isUndefined(f)&&(f=n.isBlankNode(o)?v.getId(o["@id"]):o["@id"]),h&&h.push({"@id":f});const w=c[p],g=w[f]=w[f]||{};g["@id"]=f;const x=Object.keys(o).sort();for(let j of x){if(j==="@id")continue;if(j==="@reverse"){const Q={"@id":f},S=o["@reverse"];for(const y in S){const O=S[y];for(const T of O){let k=T["@id"];n.isBlankNode(T)&&(k=v.getId(k)),i.createNodeMap(T,c,p,v,k),l.addValue(w[k],y,Q,{propertyIsArray:!0,allowDuplicate:!1})}}continue}if(j==="@graph"){f in c||(c[f]={}),i.createNodeMap(o[j],c,f,v);continue}if(j==="@included"){i.createNodeMap(o[j],c,p,v);continue}if(j!=="@type"&&r(j)){if(j==="@index"&&j in g&&(o[j]!==g[j]||o[j]["@id"]!==g[j]["@id"]))throw new d("Invalid JSON-LD syntax; conflicting @index property detected.","jsonld.SyntaxError",{code:"conflicting indexes",subject:g});g[j]=o[j];continue}const A=o[j];if(j.indexOf("_:")===0&&(j=v.getId(j)),A.length!==0)for(let Q of A)if(j==="@type"&&(Q=Q.indexOf("_:")===0?v.getId(Q):Q),n.isSubject(Q)||n.isSubjectReference(Q)){if("@id"in Q&&!Q["@id"])continue;const S=n.isBlankNode(Q)?v.getId(Q["@id"]):Q["@id"];l.addValue(g,j,{"@id":S},{propertyIsArray:!0,allowDuplicate:!1}),i.createNodeMap(Q,c,p,v,S)}else if(n.isValue(Q))l.addValue(g,j,Q,{propertyIsArray:!0,allowDuplicate:!1});else if(n.isList(Q)){const S=[];i.createNodeMap(Q["@list"],c,p,v,f,S),Q={"@list":S},l.addValue(g,j,Q,{propertyIsArray:!0,allowDuplicate:!1})}else i.createNodeMap(Q,c,p,v,f),l.addValue(g,j,Q,{propertyIsArray:!0,allowDuplicate:!1});else l.addValue(g,j,[],{propertyIsArray:!0})}},i.mergeNodeMapGraphs=o=>{const c={};for(const p of Object.keys(o).sort())for(const v of Object.keys(o[p]).sort()){const f=o[p][v];v in c||(c[v]={"@id":v});const h=c[v];for(const w of Object.keys(f).sort())if(r(w)&&w!=="@type")h[w]=l.clone(f[w]);else for(const g of f[w])l.addValue(h,w,l.clone(g),{propertyIsArray:!0,allowDuplicate:!1})}return c},i.mergeNodeMaps=o=>{const c=o["@default"],p=Object.keys(o).sort();for(const v of p){if(v==="@default")continue;const f=o[v];let h=c[v];h?"@graph"in h||(h["@graph"]=[]):c[v]=h={"@id":v,"@graph":[]};const w=h["@graph"];for(const g of Object.keys(f).sort()){const x=f[g];n.isSubjectReference(x)||w.push(x)}}return c}},701:(s,e,t)=>{const r=t(6957),n={};s.exports=n,n.setupDocumentLoaders=function(a){typeof XMLHttpRequest<"u"&&(a.documentLoaders.xhr=r,a.useDocumentLoader("xhr"))},n.setupGlobals=function(a){globalThis.JsonLdProcessor===void 0&&Object.defineProperty(globalThis,"JsonLdProcessor",{writable:!0,enumerable:!1,configurable:!0,value:a.JsonLdProcessor})}},9180:(s,e,t)=>{const{createNodeMap:r}=t(9233),{isKeyword:n}=t(1972),a=t(3978),l=t(2341),d=t(2207),i=t(7382),o=t(9263),{handleEvent:c}=t(2246),{RDF_FIRST:p,RDF_REST:v,RDF_NIL:f,RDF_TYPE:h,RDF_JSON_LITERAL:w,RDF_LANGSTRING:g,XSD_BOOLEAN:x,XSD_DOUBLE:j,XSD_INTEGER:A,XSD_STRING:Q}=t(9378),{isAbsolute:S}=t(470),y={};function O(k,b,L,N,K){const se=Object.keys(b).sort();for(const q of se){const C=b[q],X=Object.keys(C).sort();for(let I of X){const B=C[I];if(I==="@type")I=h;else if(n(I))continue;for(const U of B){const P={termType:q.startsWith("_:")?"BlankNode":"NamedNode",value:q};if(!S(q)){K.eventHandler&&c({event:{type:["JsonLdEvent"],code:"relative subject reference",level:"warning",message:"Relative subject reference found.",details:{subject:q}},options:K});continue}const J={termType:I.startsWith("_:")?"BlankNode":"NamedNode",value:I};if(!S(I)){K.eventHandler&&c({event:{type:["JsonLdEvent"],code:"relative predicate reference",level:"warning",message:"Relative predicate reference found.",details:{predicate:I}},options:K});continue}if(J.termType==="BlankNode"&&!K.produceGeneralizedRdf){K.eventHandler&&c({event:{type:["JsonLdEvent"],code:"blank node predicate",level:"warning",message:"Dropping blank node predicate.",details:{property:N.getOldIds().find(V=>N.getId(V)===I)}},options:K});continue}const D=T(U,N,k,L,K.rdfDirection,K);D&&k.push({subject:P,predicate:J,object:D,graph:L})}}}}function T(k,b,L,N,K,se){const q={};if(a.isValue(k)){q.termType="Literal",q.value=void 0,q.datatype={termType:"NamedNode"};let C=k["@value"];const X=k["@type"]||null;if(X==="@json")q.value=l(C),q.datatype.value=w;else if(i.isBoolean(C))q.value=C.toString(),q.datatype.value=X||x;else if(i.isDouble(C)||X===j)i.isDouble(C)||(C=parseFloat(C)),q.value=C.toExponential(15).replace(/(\d)0*e\+?/,"$1E"),q.datatype.value=X||j;else if(i.isNumber(C))q.value=C.toFixed(0),q.datatype.value=X||A;else if("@direction"in k&&K==="i18n-datatype"){const I=`https://www.w3.org/ns/i18n#${(k["@language"]||"").toLowerCase()}_${k["@direction"]}`;q.datatype.value=I,q.value=C}else{if("@direction"in k&&K==="compound-literal")throw new d("Unsupported rdfDirection value.","jsonld.InvalidRdfDirection",{value:K});if("@direction"in k&&K)throw new d("Unknown rdfDirection value.","jsonld.InvalidRdfDirection",{value:K});"@language"in k?("@direction"in k&&!K&&se.eventHandler&&c({event:{type:["JsonLdEvent"],code:"rdfDirection not set",level:"warning",message:"rdfDirection not set for @direction.",details:{object:q.value}},options:se}),q.value=C,q.datatype.value=X||g,q.language=k["@language"]):("@direction"in k&&!K&&se.eventHandler&&c({event:{type:["JsonLdEvent"],code:"rdfDirection not set",level:"warning",message:"rdfDirection not set for @direction.",details:{object:q.value}},options:se}),q.value=C,q.datatype.value=X||Q)}}else if(a.isList(k)){const C=function(X,I,B,U,P,J){const D={termType:"NamedNode",value:p},V={termType:"NamedNode",value:v},te={termType:"NamedNode",value:f},le=X.pop(),ee=le?{termType:"BlankNode",value:I.getId()}:te;let M=ee;for(const E of X){const W=T(E,I,B,U,P,J),z={termType:"BlankNode",value:I.getId()};B.push({subject:M,predicate:D,object:W,graph:U}),B.push({subject:M,predicate:V,object:z,graph:U}),M=z}if(le){const E=T(le,I,B,U,P,J);B.push({subject:M,predicate:D,object:E,graph:U}),B.push({subject:M,predicate:V,object:te,graph:U})}return ee}(k["@list"],b,L,N,K,se);q.termType=C.termType,q.value=C.value}else{const C=i.isObject(k)?k["@id"]:k;q.termType=C.startsWith("_:")?"BlankNode":"NamedNode",q.value=C}return q.termType!=="NamedNode"||S(q.value)?q:(se.eventHandler&&c({event:{type:["JsonLdEvent"],code:"relative object reference",level:"warning",message:"Relative object reference found.",details:{object:q.value}},options:se}),null)}s.exports=y,y.toRDF=(k,b)=>{const L=new o.IdentifierIssuer("_:b"),N={"@default":{}};r(k,N,"@default",L);const K=[],se=Object.keys(N).sort();for(const q of se){let C;if(q==="@default")C={termType:"DefaultGraph",value:""};else{if(!S(q)){b.eventHandler&&c({event:{type:["JsonLdEvent"],code:"relative graph reference",level:"warning",message:"Relative graph reference found.",details:{graph:q}},options:b});continue}C=q.startsWith("_:")?{termType:"BlankNode"}:{termType:"NamedNode"},C.value=q}O(K,N[q],C,L,b)}return K}},7382:s=>{const e={};s.exports=e,e.isArray=Array.isArray,e.isBoolean=t=>typeof t=="boolean"||Object.prototype.toString.call(t)==="[object Boolean]",e.isDouble=t=>e.isNumber(t)&&(String(t).indexOf(".")!==-1||Math.abs(t)>=1e21),e.isEmptyObject=t=>e.isObject(t)&&Object.keys(t).length===0,e.isNumber=t=>typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]",e.isNumeric=t=>!isNaN(parseFloat(t))&&isFinite(t),e.isObject=t=>Object.prototype.toString.call(t)==="[object Object]",e.isString=t=>typeof t=="string"||Object.prototype.toString.call(t)==="[object String]",e.isUndefined=t=>t===void 0},470:(s,e,t)=>{const r=t(7382),n={};s.exports=n,n.parsers={simple:{keys:["href","scheme","authority","path","query","fragment"],regex:/^(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/},full:{keys:["href","protocol","scheme","authority","auth","user","password","hostname","port","path","directory","file","query","fragment"],regex:/^(([a-zA-Z][a-zA-Z0-9+-.]*):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?(?:(((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/}},n.parse=(l,d)=>{const i={},o=n.parsers[d||"full"],c=o.regex.exec(l);let p=o.keys.length;for(;p--;)i[o.keys[p]]=c[p]===void 0?null:c[p];return(i.scheme==="https"&&i.port==="443"||i.scheme==="http"&&i.port==="80")&&(i.href=i.href.replace(":"+i.port,""),i.authority=i.authority.replace(":"+i.port,""),i.port=null),i.normalizedPath=n.removeDotSegments(i.path),i},n.prependBase=(l,d)=>{if(l===null||n.isAbsolute(d))return d;l&&!r.isString(l)||(l=n.parse(l||""));const i=n.parse(d),o={protocol:l.protocol||""};if(i.authority!==null)o.authority=i.authority,o.path=i.path,o.query=i.query;else if(o.authority=l.authority,i.path==="")o.path=l.path,i.query!==null?o.query=i.query:o.query=l.query;else{if(i.path.indexOf("/")===0)o.path=i.path;else{let p=l.path;p=p.substr(0,p.lastIndexOf("/")+1),(p.length>0||l.authority)&&p.substr(-1)!=="/"&&(p+="/"),p+=i.path,o.path=p}o.query=i.query}i.path!==""&&(o.path=n.removeDotSegments(o.path));let c=o.protocol;return o.authority!==null&&(c+="//"+o.authority),c+=o.path,o.query!==null&&(c+="?"+o.query),i.fragment!==null&&(c+="#"+i.fragment),c===""&&(c="./"),c},n.removeBase=(l,d)=>{if(l===null)return d;l&&!r.isString(l)||(l=n.parse(l||""));let i="";if(l.href!==""?i+=(l.protocol||"")+"//"+(l.authority||""):d.indexOf("//")&&(i+="//"),d.indexOf(i)!==0)return d;const o=n.parse(d.substr(i.length)),c=l.normalizedPath.split("/"),p=o.normalizedPath.split("/"),v=o.fragment||o.query?0:1;for(;c.length>0&&p.length>v&&c[0]===p[0];)c.shift(),p.shift();let f="";if(c.length>0){c.pop();for(let h=0;h{if(l.length===0)return"";const d=l.split("/"),i=[];for(;d.length>0;){const o=d.shift(),c=d.length===0;o!=="."?o!==".."?i.push(o):(i.pop(),c&&i.push("")):c&&i.push("")}return l[0]==="/"&&i.length>0&&i[0]!==""&&i.unshift(""),i.length===1&&i[0]===""?"/":i.join("/")};const a=/^([A-Za-z][A-Za-z0-9+-.]*|_):[^\s]*$/;n.isAbsolute=l=>r.isString(l)&&a.test(l),n.isRelative=l=>r.isString(l)},9263:(s,e,t)=>{const r=t(3978),n=t(7382),a=t(989).IdentifierIssuer,l=t(2207),d=/(?:<[^>]*?>|"[^"]*?"|[^,])+/g,i=/\s*<([^>]*?)>\s*(?:;\s*(.*))?/,o=/(.*?)=(?:(?:"([^"]*?)")|([^"]*?))\s*(?:(?:;\s*)|$)/g,c="application/ld+json, application/json",p={};function v(f,h){if(n.isArray(h))for(let w=0;w{if(Object.keys(f).some(h=>h.toLowerCase()==="accept"))throw new RangeError('Accept header may not be specified; only "'+c+'" is supported.');return Object.assign({Accept:c},f)},p.parseLinkHeader=f=>{const h={},w=f.match(d);for(let g=0;g{if(!(n.isString(f)||n.isArray(f)&&f.every(w=>n.isString(w)))){if(h&&n.isObject(f))switch(Object.keys(f).length){case 0:return;case 1:if("@default"in f&&p.asArray(f["@default"]).every(w=>n.isString(w)))return}throw new l('Invalid JSON-LD syntax; "@type" value must a string, an array of strings, an empty object, or a default object.',"jsonld.SyntaxError",{code:"invalid type value",value:f})}},p.hasProperty=(f,h)=>{if(f.hasOwnProperty(h)){const w=f[h];return!n.isArray(w)||w.length>0}return!1},p.hasValue=(f,h,w)=>{if(p.hasProperty(f,h)){let g=f[h];const x=r.isList(g);if(n.isArray(g)||x){x&&(g=g["@list"]);for(let j=0;j{if("propertyIsArray"in(g=g||{})||(g.propertyIsArray=!1),"valueIsArray"in g||(g.valueIsArray=!1),"allowDuplicate"in g||(g.allowDuplicate=!0),"prependValue"in g||(g.prependValue=!1),g.valueIsArray)f[h]=w;else if(n.isArray(w)){w.length===0&&g.propertyIsArray&&!f.hasOwnProperty(h)&&(f[h]=[]),g.prependValue&&(w=w.concat(f[h]),f[h]=[]);for(let x=0;x[].concat(f[h]||[]),p.removeProperty=(f,h)=>{delete f[h]},p.removeValue=(f,h,w,g)=>{"propertyIsArray"in(g=g||{})||(g.propertyIsArray=!1);const x=p.getValues(f,h).filter(j=>!p.compareValues(j,w));x.length===0?p.removeProperty(f,h):x.length!==1||g.propertyIsArray?f[h]=x:f[h]=x[0]},p.relabelBlankNodes=(f,h)=>v((h=h||{}).issuer||new a("_:b"),f),p.compareValues=(f,h)=>f===h||!(!r.isValue(f)||!r.isValue(h)||f["@value"]!==h["@value"]||f["@type"]!==h["@type"]||f["@language"]!==h["@language"]||f["@index"]!==h["@index"])||!!(n.isObject(f)&&"@id"in f&&n.isObject(h)&&"@id"in h)&&f["@id"]===h["@id"],p.compareShortestLeast=(f,h)=>f.length{var r=t(9325).Symbol;s.exports=r},2552:(s,e,t)=>{var r=t(1873),n=t(659),a=t(9350),l=r?r.toStringTag:void 0;s.exports=function(d){return d==null?d===void 0?"[object Undefined]":"[object Null]":l&&l in Object(d)?n(d):a(d)}},4128:(s,e,t)=>{var r=t(1800),n=/^\s+/;s.exports=function(a){return a&&a.slice(0,r(a)+1).replace(n,"")}},4840:(s,e,t)=>{var r=typeof t.g=="object"&&t.g&&t.g.Object===Object&&t.g;s.exports=r},659:(s,e,t)=>{var r=t(1873),n=Object.prototype,a=n.hasOwnProperty,l=n.toString,d=r?r.toStringTag:void 0;s.exports=function(i){var o=a.call(i,d),c=i[d];try{i[d]=void 0;var p=!0}catch{}var v=l.call(i);return p&&(o?i[d]=c:delete i[d]),v}},9350:s=>{var e=Object.prototype.toString;s.exports=function(t){return e.call(t)}},9325:(s,e,t)=>{var r=t(4840),n=typeof self=="object"&&self&&self.Object===Object&&self,a=r||n||Function("return this")();s.exports=a},1800:s=>{var e=/\s/;s.exports=function(t){for(var r=t.length;r--&&e.test(t.charAt(r)););return r}},2177:(s,e,t)=>{var r=t(1489);s.exports=function(n,a){var l;if(typeof a!="function")throw new TypeError("Expected a function");return n=r(n),function(){return--n>0&&(l=a.apply(this,arguments)),n<=1&&(a=void 0),l}}},3805:s=>{s.exports=function(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}},346:s=>{s.exports=function(e){return e!=null&&typeof e=="object"}},4394:(s,e,t)=>{var r=t(2552),n=t(346);s.exports=function(a){return typeof a=="symbol"||n(a)&&r(a)=="[object Symbol]"}},8059:(s,e,t)=>{var r=t(2177);s.exports=function(n){return r(2,n)}},7400:(s,e,t)=>{var r=t(9374),n=1/0;s.exports=function(a){return a?(a=r(a))===n||a===-1/0?17976931348623157e292*(a<0?-1:1):a==a?a:0:a===0?a:0}},1489:(s,e,t)=>{var r=t(7400);s.exports=function(n){var a=r(n),l=a%1;return a==a?l?a-l:a:0}},9374:(s,e,t)=>{var r=t(4128),n=t(3805),a=t(4394),l=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,i=/^0o[0-7]+$/i,o=parseInt;s.exports=function(c){if(typeof c=="number")return c;if(a(c))return NaN;if(n(c)){var p=typeof c.valueOf=="function"?c.valueOf():c;c=n(p)?p+"":p}if(typeof c!="string")return c===0?c:+c;c=r(c);var v=d.test(c);return v||i.test(c)?o(c.slice(2),v?2:8):l.test(c)?NaN:+c}},9749:(s,e,t)=>{const r=t(8799),n=Symbol("max"),a=Symbol("length"),l=Symbol("lengthCalculator"),d=Symbol("allowStale"),i=Symbol("maxAge"),o=Symbol("dispose"),c=Symbol("noDisposeOnSet"),p=Symbol("lruList"),v=Symbol("cache"),f=Symbol("updateAgeOnGet"),h=()=>1,w=(S,y,O)=>{const T=S[v].get(y);if(T){const k=T.value;if(g(S,k)){if(j(S,T),!S[d])return}else O&&(S[f]&&(T.value.now=Date.now()),S[p].unshiftNode(T));return k.value}},g=(S,y)=>{if(!y||!y.maxAge&&!S[i])return!1;const O=Date.now()-y.now;return y.maxAge?O>y.maxAge:S[i]&&O>S[i]},x=S=>{if(S[a]>S[n])for(let y=S[p].tail;S[a]>S[n]&&y!==null;){const O=y.prev;j(S,y),y=O}},j=(S,y)=>{if(y){const O=y.value;S[o]&&S[o](O.key,O.value),S[a]-=O.length,S[v].delete(O.key),S[p].removeNode(y)}};class A{constructor(y,O,T,k,b){this.key=y,this.value=O,this.length=T,this.now=k,this.maxAge=b||0}}const Q=(S,y,O,T)=>{let k=O.value;g(S,k)&&(j(S,O),S[d]||(k=void 0)),k&&y.call(T,k.value,k.key,S)};s.exports=class{constructor(S){if(typeof S=="number"&&(S={max:S}),S||(S={}),S.max&&(typeof S.max!="number"||S.max<0))throw new TypeError("max must be a non-negative number");this[n]=S.max||1/0;const y=S.length||h;if(this[l]=typeof y!="function"?h:y,this[d]=S.stale||!1,S.maxAge&&typeof S.maxAge!="number")throw new TypeError("maxAge must be a number");this[i]=S.maxAge||0,this[o]=S.dispose,this[c]=S.noDisposeOnSet||!1,this[f]=S.updateAgeOnGet||!1,this.reset()}set max(S){if(typeof S!="number"||S<0)throw new TypeError("max must be a non-negative number");this[n]=S||1/0,x(this)}get max(){return this[n]}set allowStale(S){this[d]=!!S}get allowStale(){return this[d]}set maxAge(S){if(typeof S!="number")throw new TypeError("maxAge must be a non-negative number");this[i]=S,x(this)}get maxAge(){return this[i]}set lengthCalculator(S){typeof S!="function"&&(S=h),S!==this[l]&&(this[l]=S,this[a]=0,this[p].forEach(y=>{y.length=this[l](y.value,y.key),this[a]+=y.length})),x(this)}get lengthCalculator(){return this[l]}get length(){return this[a]}get itemCount(){return this[p].length}rforEach(S,y){y=y||this;for(let O=this[p].tail;O!==null;){const T=O.prev;Q(this,S,O,y),O=T}}forEach(S,y){y=y||this;for(let O=this[p].head;O!==null;){const T=O.next;Q(this,S,O,y),O=T}}keys(){return this[p].toArray().map(S=>S.key)}values(){return this[p].toArray().map(S=>S.value)}reset(){this[o]&&this[p]&&this[p].length&&this[p].forEach(S=>this[o](S.key,S.value)),this[v]=new Map,this[p]=new r,this[a]=0}dump(){return this[p].map(S=>!g(this,S)&&{k:S.key,v:S.value,e:S.now+(S.maxAge||0)}).toArray().filter(S=>S)}dumpLru(){return this[p]}set(S,y,O){if((O=O||this[i])&&typeof O!="number")throw new TypeError("maxAge must be a number");const T=O?Date.now():0,k=this[l](y,S);if(this[v].has(S)){if(k>this[n])return j(this,this[v].get(S)),!1;const L=this[v].get(S).value;return this[o]&&(this[c]||this[o](S,L.value)),L.now=T,L.maxAge=O,L.value=y,this[a]+=k-L.length,L.length=k,this.get(S),x(this),!0}const b=new A(S,y,k,T,O);return b.length>this[n]?(this[o]&&this[o](S,y),!1):(this[a]+=b.length,this[p].unshift(b),this[v].set(S,this[p].head),x(this),!0)}has(S){if(!this[v].has(S))return!1;const y=this[v].get(S).value;return!g(this,y)}get(S){return w(this,S,!0)}peek(S){return w(this,S,!1)}pop(){const S=this[p].tail;return S?(j(this,S),S.value):null}del(S){j(this,this[v].get(S))}load(S){this.reset();const y=Date.now();for(let O=S.length-1;O>=0;O--){const T=S[O],k=T.e||0;if(k===0)this.set(T.k,T.v);else{const b=k-y;b>0&&this.set(T.k,T.v,b)}}}prune(){this[v].forEach((S,y)=>w(this,y,!1))}}},5606:s=>{var e,t,r=s.exports={};function n(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function l(w){if(e===setTimeout)return setTimeout(w,0);if((e===n||!e)&&setTimeout)return e=setTimeout,setTimeout(w,0);try{return e(w,0)}catch{try{return e.call(null,w,0)}catch{return e.call(this,w,0)}}}(function(){try{e=typeof setTimeout=="function"?setTimeout:n}catch{e=n}try{t=typeof clearTimeout=="function"?clearTimeout:a}catch{t=a}})();var d,i=[],o=!1,c=-1;function p(){o&&d&&(o=!1,d.length?i=d.concat(i):c=-1,i.length&&v())}function v(){if(!o){var w=l(p);o=!0;for(var g=i.length;g;){for(d=i,i=[];++c1)for(var x=1;x{let r;s.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:t.g):n=>(r||(r=Promise.resolve())).then(n).catch(a=>setTimeout(()=>{throw a},0))},989:(s,e,t)=>{s.exports=t(4005)},2985:s=>{s.exports=class Vr{constructor(t,r=new Map,n=0){this.prefix=t,this._existing=r,this.counter=n}clone(){const{prefix:t,_existing:r,counter:n}=this;return new Vr(t,new Map(r),n)}getId(t){const r=t&&this._existing.get(t);if(r)return r;const n=this.prefix+this.counter;return this.counter++,t&&this._existing.set(t,n),n}hasId(t){return this._existing.has(t)}getOldIds(){return[...this._existing.keys()]}}},3751:(s,e,t)=>{t(2791);const r=self.crypto||self.msCrypto;s.exports=class{constructor(n){if(!r||!r.subtle)throw new Error("crypto.subtle not found.");if(n==="sha256")this.algorithm={name:"SHA-256"};else{if(n!=="sha1")throw new Error(`Unsupported algorithm "${n}".`);this.algorithm={name:"SHA-1"}}this._content=""}update(n){this._content+=n}async digest(){const n=new TextEncoder().encode(this._content),a=new Uint8Array(await r.subtle.digest(this.algorithm,n));let l="";for(let d=0;d{const e="http://www.w3.org/1999/02/22-rdf-syntax-ns#langString",t="http://www.w3.org/2001/XMLSchema#string",r="NamedNode",n="BlankNode",a="Literal",l="DefaultGraph",d={};(()=>{const c="(?:<([^:]+:[^>]*)>)",p="A-Za-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�_",v=p+"0-9-·̀-ͯ‿-⁀",f="(_:(?:["+p+"0-9])(?:(?:["+v+".])*(?:["+v+"]))?)",h="[ \\t]+",w="[ \\t]*",g="(?:"+c+"|"+f+")"+h,x=c+h,j="(?:"+c+"|"+f+'|(?:"([^"\\\\]*(?:\\\\.[^"\\\\]*)*)"(?:(?:\\^\\^'+c+")|(?:@([a-zA-Z]+(?:-[a-zA-Z0-9]+)*)))?))"+w,A="(?:\\.|(?:(?:"+c+"|"+f+")"+w+"\\.))";d.eoln=/(?:\r\n)|(?:\n)|(?:\r)/g,d.empty=new RegExp("^"+w+"$"),d.quad=new RegExp("^"+w+g+x+j+A+w+"$")})(),s.exports=class xt{static parse(p){const v=[],f={},h=p.split(d.eoln);let w=0;for(const j of h){if(w++,d.empty.test(j))continue;const A=j.match(d.quad);if(A===null)throw new Error("N-Quads parse error on line "+w+".");const Q={subject:null,predicate:null,object:null,graph:null};if(A[1]!==void 0?Q.subject={termType:r,value:A[1]}:Q.subject={termType:n,value:A[2]},Q.predicate={termType:r,value:A[3]},A[4]!==void 0?Q.object={termType:r,value:A[4]}:A[5]!==void 0?Q.object={termType:n,value:A[5]}:(Q.object={termType:a,value:void 0,datatype:{termType:r}},A[7]!==void 0?Q.object.datatype.value=A[7]:A[8]!==void 0?(Q.object.datatype.value=e,Q.object.language=A[8]):Q.object.datatype.value=t,Q.object.value=A[6].replace(o,function(S,y,O,T){if(y)switch(y){case"t":return" ";case"b":return"\b";case"n":return` +import{T as fn}from"./Term-Cnp3cOVO.js";import{L as pn,_ as gn,u as mn,b as wr,M as yn,i as bn,f as gt,m as vn,q as wn,N as _n,O as xn,P as Sn,Q as jn,r as mt,n as In,w as Ct,o as En,d as yt,a as We,t as Nn}from"./index-BSywqiEU.js";import Tn from"./InstanceList-Bq0sFaoV.js";/*! For license information please see form-default.js.LICENSE.txt */var Rn={5568:s=>{const{AbortController:e,AbortSignal:t}=typeof self<"u"?self:typeof window<"u"?window:void 0;s.exports=e,s.exports.AbortSignal=t,s.exports.default=e},7526:(s,e)=>{e.byteLength=function(o){var c=d(o),p=c[0],v=c[1];return 3*(p+v)/4-v},e.toByteArray=function(o){var c,p,v=d(o),f=v[0],h=v[1],w=new n(function(j,A,Q){return 3*(A+Q)/4-Q}(0,f,h)),g=0,x=h>0?f-4:f;for(p=0;p>16&255,w[g++]=c>>8&255,w[g++]=255&c;return h===2&&(c=r[o.charCodeAt(p)]<<2|r[o.charCodeAt(p+1)]>>4,w[g++]=255&c),h===1&&(c=r[o.charCodeAt(p)]<<10|r[o.charCodeAt(p+1)]<<4|r[o.charCodeAt(p+2)]>>2,w[g++]=c>>8&255,w[g++]=255&c),w},e.fromByteArray=function(o){for(var c,p=o.length,v=p%3,f=[],h=16383,w=0,g=p-v;wg?g:w+h));return v===1?(c=o[p-1],f.push(t[c>>2]+t[c<<4&63]+"==")):v===2&&(c=(o[p-2]<<8)+o[p-1],f.push(t[c>>10]+t[c>>4&63]+t[c<<2&63]+"=")),f.join("")};for(var t=[],r=[],n=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0;l<64;++l)t[l]=a[l],r[a.charCodeAt(l)]=l;function d(o){var c=o.length;if(c%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var p=o.indexOf("=");return p===-1&&(p=c),[p,p===c?0:4-p%4]}function i(o,c,p){for(var v,f,h=[],w=c;w>18&63]+t[f>>12&63]+t[f>>6&63]+t[63&f]);return h.join("")}r[45]=62,r[95]=63},8287:(s,e,t)=>{const r=t(7526),n=t(251),a=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=i,e.SlowBuffer=function(u){return+u!=u&&(u=0),i.alloc(+u)},e.INSPECT_MAX_BYTES=50;const l=2147483647;function d(u){if(u>l)throw new RangeError('The value "'+u+'" is invalid for option "size"');const m=new Uint8Array(u);return Object.setPrototypeOf(m,i.prototype),m}function i(u,m,_){if(typeof u=="number"){if(typeof m=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return p(u)}return o(u,m,_)}function o(u,m,_){if(typeof u=="string")return function(re,ce){if(typeof ce=="string"&&ce!==""||(ce="utf8"),!i.isEncoding(ce))throw new TypeError("Unknown encoding: "+ce);const he=0|w(re,ce);let pe=d(he);const me=pe.write(re,ce);return me!==he&&(pe=pe.slice(0,me)),pe}(u,m);if(ArrayBuffer.isView(u))return function(re){if(R(re,Uint8Array)){const ce=new Uint8Array(re);return f(ce.buffer,ce.byteOffset,ce.byteLength)}return v(re)}(u);if(u==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof u);if(R(u,ArrayBuffer)||u&&R(u.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(R(u,SharedArrayBuffer)||u&&R(u.buffer,SharedArrayBuffer)))return f(u,m,_);if(typeof u=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const F=u.valueOf&&u.valueOf();if(F!=null&&F!==u)return i.from(F,m,_);const G=function(re){if(i.isBuffer(re)){const ce=0|h(re.length),he=d(ce);return he.length===0||re.copy(he,0,0,ce),he}return re.length!==void 0?typeof re.length!="number"||ne(re.length)?d(0):v(re):re.type==="Buffer"&&Array.isArray(re.data)?v(re.data):void 0}(u);if(G)return G;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof u[Symbol.toPrimitive]=="function")return i.from(u[Symbol.toPrimitive]("string"),m,_);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof u)}function c(u){if(typeof u!="number")throw new TypeError('"size" argument must be of type number');if(u<0)throw new RangeError('The value "'+u+'" is invalid for option "size"')}function p(u){return c(u),d(u<0?0:0|h(u))}function v(u){const m=u.length<0?0:0|h(u.length),_=d(m);for(let F=0;F=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return 0|u}function w(u,m){if(i.isBuffer(u))return u.length;if(ArrayBuffer.isView(u)||R(u,ArrayBuffer))return u.byteLength;if(typeof u!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof u);const _=u.length,F=arguments.length>2&&arguments[2]===!0;if(!F&&_===0)return 0;let G=!1;for(;;)switch(m){case"ascii":case"latin1":case"binary":return _;case"utf8":case"utf-8":return W(u).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*_;case"hex":return _>>>1;case"base64":return z(u).length;default:if(G)return F?-1:W(u).length;m=(""+m).toLowerCase(),G=!0}}function g(u,m,_){let F=!1;if((m===void 0||m<0)&&(m=0),m>this.length||((_===void 0||_>this.length)&&(_=this.length),_<=0)||(_>>>=0)<=(m>>>=0))return"";for(u||(u="utf8");;)switch(u){case"hex":return se(this,m,_);case"utf8":case"utf-8":return b(this,m,_);case"ascii":return N(this,m,_);case"latin1":case"binary":return K(this,m,_);case"base64":return k(this,m,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q(this,m,_);default:if(F)throw new TypeError("Unknown encoding: "+u);u=(u+"").toLowerCase(),F=!0}}function x(u,m,_){const F=u[m];u[m]=u[_],u[_]=F}function j(u,m,_,F,G){if(u.length===0)return-1;if(typeof _=="string"?(F=_,_=0):_>2147483647?_=2147483647:_<-2147483648&&(_=-2147483648),ne(_=+_)&&(_=G?0:u.length-1),_<0&&(_=u.length+_),_>=u.length){if(G)return-1;_=u.length-1}else if(_<0){if(!G)return-1;_=0}if(typeof m=="string"&&(m=i.from(m,F)),i.isBuffer(m))return m.length===0?-1:A(u,m,_,F,G);if(typeof m=="number")return m&=255,typeof Uint8Array.prototype.indexOf=="function"?G?Uint8Array.prototype.indexOf.call(u,m,_):Uint8Array.prototype.lastIndexOf.call(u,m,_):A(u,[m],_,F,G);throw new TypeError("val must be string, number or Buffer")}function A(u,m,_,F,G){let re,ce=1,he=u.length,pe=m.length;if(F!==void 0&&((F=String(F).toLowerCase())==="ucs2"||F==="ucs-2"||F==="utf16le"||F==="utf-16le")){if(u.length<2||m.length<2)return-1;ce=2,he/=2,pe/=2,_/=2}function me(ge,_e){return ce===1?ge[_e]:ge.readUInt16BE(_e*ce)}if(G){let ge=-1;for(re=_;rehe&&(_=he-pe),re=_;re>=0;re--){let ge=!0;for(let _e=0;_eG&&(F=G):F=G;const re=m.length;let ce;for(F>re/2&&(F=re/2),ce=0;ce>8,pe=ce%256,me.push(pe),me.push(he);return me}(m,u.length-_),u,_,F)}function k(u,m,_){return m===0&&_===u.length?r.fromByteArray(u):r.fromByteArray(u.slice(m,_))}function b(u,m,_){_=Math.min(u.length,_);const F=[];let G=m;for(;G<_;){const re=u[G];let ce=null,he=re>239?4:re>223?3:re>191?2:1;if(G+he<=_){let pe,me,ge,_e;switch(he){case 1:re<128&&(ce=re);break;case 2:pe=u[G+1],(192&pe)==128&&(_e=(31&re)<<6|63&pe,_e>127&&(ce=_e));break;case 3:pe=u[G+1],me=u[G+2],(192&pe)==128&&(192&me)==128&&(_e=(15&re)<<12|(63&pe)<<6|63&me,_e>2047&&(_e<55296||_e>57343)&&(ce=_e));break;case 4:pe=u[G+1],me=u[G+2],ge=u[G+3],(192&pe)==128&&(192&me)==128&&(192&ge)==128&&(_e=(15&re)<<18|(63&pe)<<12|(63&me)<<6|63&ge,_e>65535&&_e<1114112&&(ce=_e))}}ce===null?(ce=65533,he=1):ce>65535&&(ce-=65536,F.push(ce>>>10&1023|55296),ce=56320|1023&ce),F.push(ce),G+=he}return function(re){const ce=re.length;if(ce<=L)return String.fromCharCode.apply(String,re);let he="",pe=0;for(;pe"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(i.prototype,"parent",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.buffer}}),Object.defineProperty(i.prototype,"offset",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.byteOffset}}),i.poolSize=8192,i.from=function(u,m,_){return o(u,m,_)},Object.setPrototypeOf(i.prototype,Uint8Array.prototype),Object.setPrototypeOf(i,Uint8Array),i.alloc=function(u,m,_){return function(F,G,re){return c(F),F<=0?d(F):G!==void 0?typeof re=="string"?d(F).fill(G,re):d(F).fill(G):d(F)}(u,m,_)},i.allocUnsafe=function(u){return p(u)},i.allocUnsafeSlow=function(u){return p(u)},i.isBuffer=function(u){return u!=null&&u._isBuffer===!0&&u!==i.prototype},i.compare=function(u,m){if(R(u,Uint8Array)&&(u=i.from(u,u.offset,u.byteLength)),R(m,Uint8Array)&&(m=i.from(m,m.offset,m.byteLength)),!i.isBuffer(u)||!i.isBuffer(m))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(u===m)return 0;let _=u.length,F=m.length;for(let G=0,re=Math.min(_,F);GF.length?(i.isBuffer(re)||(re=i.from(re)),re.copy(F,G)):Uint8Array.prototype.set.call(F,re,G);else{if(!i.isBuffer(re))throw new TypeError('"list" argument must be an Array of Buffers');re.copy(F,G)}G+=re.length}return F},i.byteLength=w,i.prototype._isBuffer=!0,i.prototype.swap16=function(){const u=this.length;if(u%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let m=0;mm&&(u+=" ... "),""},a&&(i.prototype[a]=i.prototype.inspect),i.prototype.compare=function(u,m,_,F,G){if(R(u,Uint8Array)&&(u=i.from(u,u.offset,u.byteLength)),!i.isBuffer(u))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof u);if(m===void 0&&(m=0),_===void 0&&(_=u?u.length:0),F===void 0&&(F=0),G===void 0&&(G=this.length),m<0||_>u.length||F<0||G>this.length)throw new RangeError("out of range index");if(F>=G&&m>=_)return 0;if(F>=G)return-1;if(m>=_)return 1;if(this===u)return 0;let re=(G>>>=0)-(F>>>=0),ce=(_>>>=0)-(m>>>=0);const he=Math.min(re,ce),pe=this.slice(F,G),me=u.slice(m,_);for(let ge=0;ge>>=0,isFinite(_)?(_>>>=0,F===void 0&&(F="utf8")):(F=_,_=void 0)}const G=this.length-m;if((_===void 0||_>G)&&(_=G),u.length>0&&(_<0||m<0)||m>this.length)throw new RangeError("Attempt to write outside buffer bounds");F||(F="utf8");let re=!1;for(;;)switch(F){case"hex":return Q(this,u,m,_);case"utf8":case"utf-8":return S(this,u,m,_);case"ascii":case"latin1":case"binary":return y(this,u,m,_);case"base64":return O(this,u,m,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,u,m,_);default:if(re)throw new TypeError("Unknown encoding: "+F);F=(""+F).toLowerCase(),re=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const L=4096;function N(u,m,_){let F="";_=Math.min(u.length,_);for(let G=m;G<_;++G)F+=String.fromCharCode(127&u[G]);return F}function K(u,m,_){let F="";_=Math.min(u.length,_);for(let G=m;G<_;++G)F+=String.fromCharCode(u[G]);return F}function se(u,m,_){const F=u.length;(!m||m<0)&&(m=0),(!_||_<0||_>F)&&(_=F);let G="";for(let re=m;re<_;++re)G+=Y[u[re]];return G}function q(u,m,_){const F=u.slice(m,_);let G="";for(let re=0;re_)throw new RangeError("Trying to access beyond buffer length")}function X(u,m,_,F,G,re){if(!i.isBuffer(u))throw new TypeError('"buffer" argument must be a Buffer instance');if(m>G||mu.length)throw new RangeError("Index out of range")}function I(u,m,_,F,G){le(m,F,G,u,_,7);let re=Number(m&BigInt(4294967295));u[_++]=re,re>>=8,u[_++]=re,re>>=8,u[_++]=re,re>>=8,u[_++]=re;let ce=Number(m>>BigInt(32)&BigInt(4294967295));return u[_++]=ce,ce>>=8,u[_++]=ce,ce>>=8,u[_++]=ce,ce>>=8,u[_++]=ce,_}function B(u,m,_,F,G){le(m,F,G,u,_,7);let re=Number(m&BigInt(4294967295));u[_+7]=re,re>>=8,u[_+6]=re,re>>=8,u[_+5]=re,re>>=8,u[_+4]=re;let ce=Number(m>>BigInt(32)&BigInt(4294967295));return u[_+3]=ce,ce>>=8,u[_+2]=ce,ce>>=8,u[_+1]=ce,ce>>=8,u[_]=ce,_+8}function U(u,m,_,F,G,re){if(_+F>u.length)throw new RangeError("Index out of range");if(_<0)throw new RangeError("Index out of range")}function P(u,m,_,F,G){return m=+m,_>>>=0,G||U(u,0,_,4),n.write(u,m,_,F,23,4),_+4}function J(u,m,_,F,G){return m=+m,_>>>=0,G||U(u,0,_,8),n.write(u,m,_,F,52,8),_+8}i.prototype.slice=function(u,m){const _=this.length;(u=~~u)<0?(u+=_)<0&&(u=0):u>_&&(u=_),(m=m===void 0?_:~~m)<0?(m+=_)<0&&(m=0):m>_&&(m=_),m>>=0,m>>>=0,_||C(u,m,this.length);let F=this[u],G=1,re=0;for(;++re>>=0,m>>>=0,_||C(u,m,this.length);let F=this[u+--m],G=1;for(;m>0&&(G*=256);)F+=this[u+--m]*G;return F},i.prototype.readUint8=i.prototype.readUInt8=function(u,m){return u>>>=0,m||C(u,1,this.length),this[u]},i.prototype.readUint16LE=i.prototype.readUInt16LE=function(u,m){return u>>>=0,m||C(u,2,this.length),this[u]|this[u+1]<<8},i.prototype.readUint16BE=i.prototype.readUInt16BE=function(u,m){return u>>>=0,m||C(u,2,this.length),this[u]<<8|this[u+1]},i.prototype.readUint32LE=i.prototype.readUInt32LE=function(u,m){return u>>>=0,m||C(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+16777216*this[u+3]},i.prototype.readUint32BE=i.prototype.readUInt32BE=function(u,m){return u>>>=0,m||C(u,4,this.length),16777216*this[u]+(this[u+1]<<16|this[u+2]<<8|this[u+3])},i.prototype.readBigUInt64LE=ie(function(u){ee(u>>>=0,"offset");const m=this[u],_=this[u+7];m!==void 0&&_!==void 0||M(u,this.length-8);const F=m+256*this[++u]+65536*this[++u]+this[++u]*2**24,G=this[++u]+256*this[++u]+65536*this[++u]+_*2**24;return BigInt(F)+(BigInt(G)<>>=0,"offset");const m=this[u],_=this[u+7];m!==void 0&&_!==void 0||M(u,this.length-8);const F=m*2**24+65536*this[++u]+256*this[++u]+this[++u],G=this[++u]*2**24+65536*this[++u]+256*this[++u]+_;return(BigInt(F)<>>=0,m>>>=0,_||C(u,m,this.length);let F=this[u],G=1,re=0;for(;++re=G&&(F-=Math.pow(2,8*m)),F},i.prototype.readIntBE=function(u,m,_){u>>>=0,m>>>=0,_||C(u,m,this.length);let F=m,G=1,re=this[u+--F];for(;F>0&&(G*=256);)re+=this[u+--F]*G;return G*=128,re>=G&&(re-=Math.pow(2,8*m)),re},i.prototype.readInt8=function(u,m){return u>>>=0,m||C(u,1,this.length),128&this[u]?-1*(255-this[u]+1):this[u]},i.prototype.readInt16LE=function(u,m){u>>>=0,m||C(u,2,this.length);const _=this[u]|this[u+1]<<8;return 32768&_?4294901760|_:_},i.prototype.readInt16BE=function(u,m){u>>>=0,m||C(u,2,this.length);const _=this[u+1]|this[u]<<8;return 32768&_?4294901760|_:_},i.prototype.readInt32LE=function(u,m){return u>>>=0,m||C(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},i.prototype.readInt32BE=function(u,m){return u>>>=0,m||C(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},i.prototype.readBigInt64LE=ie(function(u){ee(u>>>=0,"offset");const m=this[u],_=this[u+7];m!==void 0&&_!==void 0||M(u,this.length-8);const F=this[u+4]+256*this[u+5]+65536*this[u+6]+(_<<24);return(BigInt(F)<>>=0,"offset");const m=this[u],_=this[u+7];m!==void 0&&_!==void 0||M(u,this.length-8);const F=(m<<24)+65536*this[++u]+256*this[++u]+this[++u];return(BigInt(F)<>>=0,m||C(u,4,this.length),n.read(this,u,!0,23,4)},i.prototype.readFloatBE=function(u,m){return u>>>=0,m||C(u,4,this.length),n.read(this,u,!1,23,4)},i.prototype.readDoubleLE=function(u,m){return u>>>=0,m||C(u,8,this.length),n.read(this,u,!0,52,8)},i.prototype.readDoubleBE=function(u,m){return u>>>=0,m||C(u,8,this.length),n.read(this,u,!1,52,8)},i.prototype.writeUintLE=i.prototype.writeUIntLE=function(u,m,_,F){u=+u,m>>>=0,_>>>=0,F||X(this,u,m,_,Math.pow(2,8*_)-1,0);let G=1,re=0;for(this[m]=255&u;++re<_&&(G*=256);)this[m+re]=u/G&255;return m+_},i.prototype.writeUintBE=i.prototype.writeUIntBE=function(u,m,_,F){u=+u,m>>>=0,_>>>=0,F||X(this,u,m,_,Math.pow(2,8*_)-1,0);let G=_-1,re=1;for(this[m+G]=255&u;--G>=0&&(re*=256);)this[m+G]=u/re&255;return m+_},i.prototype.writeUint8=i.prototype.writeUInt8=function(u,m,_){return u=+u,m>>>=0,_||X(this,u,m,1,255,0),this[m]=255&u,m+1},i.prototype.writeUint16LE=i.prototype.writeUInt16LE=function(u,m,_){return u=+u,m>>>=0,_||X(this,u,m,2,65535,0),this[m]=255&u,this[m+1]=u>>>8,m+2},i.prototype.writeUint16BE=i.prototype.writeUInt16BE=function(u,m,_){return u=+u,m>>>=0,_||X(this,u,m,2,65535,0),this[m]=u>>>8,this[m+1]=255&u,m+2},i.prototype.writeUint32LE=i.prototype.writeUInt32LE=function(u,m,_){return u=+u,m>>>=0,_||X(this,u,m,4,4294967295,0),this[m+3]=u>>>24,this[m+2]=u>>>16,this[m+1]=u>>>8,this[m]=255&u,m+4},i.prototype.writeUint32BE=i.prototype.writeUInt32BE=function(u,m,_){return u=+u,m>>>=0,_||X(this,u,m,4,4294967295,0),this[m]=u>>>24,this[m+1]=u>>>16,this[m+2]=u>>>8,this[m+3]=255&u,m+4},i.prototype.writeBigUInt64LE=ie(function(u,m=0){return I(this,u,m,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeBigUInt64BE=ie(function(u,m=0){return B(this,u,m,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeIntLE=function(u,m,_,F){if(u=+u,m>>>=0,!F){const he=Math.pow(2,8*_-1);X(this,u,m,_,he-1,-he)}let G=0,re=1,ce=0;for(this[m]=255&u;++G<_&&(re*=256);)u<0&&ce===0&&this[m+G-1]!==0&&(ce=1),this[m+G]=(u/re|0)-ce&255;return m+_},i.prototype.writeIntBE=function(u,m,_,F){if(u=+u,m>>>=0,!F){const he=Math.pow(2,8*_-1);X(this,u,m,_,he-1,-he)}let G=_-1,re=1,ce=0;for(this[m+G]=255&u;--G>=0&&(re*=256);)u<0&&ce===0&&this[m+G+1]!==0&&(ce=1),this[m+G]=(u/re|0)-ce&255;return m+_},i.prototype.writeInt8=function(u,m,_){return u=+u,m>>>=0,_||X(this,u,m,1,127,-128),u<0&&(u=255+u+1),this[m]=255&u,m+1},i.prototype.writeInt16LE=function(u,m,_){return u=+u,m>>>=0,_||X(this,u,m,2,32767,-32768),this[m]=255&u,this[m+1]=u>>>8,m+2},i.prototype.writeInt16BE=function(u,m,_){return u=+u,m>>>=0,_||X(this,u,m,2,32767,-32768),this[m]=u>>>8,this[m+1]=255&u,m+2},i.prototype.writeInt32LE=function(u,m,_){return u=+u,m>>>=0,_||X(this,u,m,4,2147483647,-2147483648),this[m]=255&u,this[m+1]=u>>>8,this[m+2]=u>>>16,this[m+3]=u>>>24,m+4},i.prototype.writeInt32BE=function(u,m,_){return u=+u,m>>>=0,_||X(this,u,m,4,2147483647,-2147483648),u<0&&(u=4294967295+u+1),this[m]=u>>>24,this[m+1]=u>>>16,this[m+2]=u>>>8,this[m+3]=255&u,m+4},i.prototype.writeBigInt64LE=ie(function(u,m=0){return I(this,u,m,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),i.prototype.writeBigInt64BE=ie(function(u,m=0){return B(this,u,m,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),i.prototype.writeFloatLE=function(u,m,_){return P(this,u,m,!0,_)},i.prototype.writeFloatBE=function(u,m,_){return P(this,u,m,!1,_)},i.prototype.writeDoubleLE=function(u,m,_){return J(this,u,m,!0,_)},i.prototype.writeDoubleBE=function(u,m,_){return J(this,u,m,!1,_)},i.prototype.copy=function(u,m,_,F){if(!i.isBuffer(u))throw new TypeError("argument should be a Buffer");if(_||(_=0),F||F===0||(F=this.length),m>=u.length&&(m=u.length),m||(m=0),F>0&&F<_&&(F=_),F===_||u.length===0||this.length===0)return 0;if(m<0)throw new RangeError("targetStart out of bounds");if(_<0||_>=this.length)throw new RangeError("Index out of range");if(F<0)throw new RangeError("sourceEnd out of bounds");F>this.length&&(F=this.length),u.length-m>>=0,_=_===void 0?this.length:_>>>0,u||(u=0),typeof u=="number")for(G=m;G<_;++G)this[G]=u;else{const re=i.isBuffer(u)?u:i.from(u,F),ce=re.length;if(ce===0)throw new TypeError('The value "'+u+'" is invalid for argument "value"');for(G=0;G<_-m;++G)this[G+m]=re[G%ce]}return this};const D={};function V(u,m,_){D[u]=class extends _{constructor(){super(),Object.defineProperty(this,"message",{value:m.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${u}]`,this.stack,delete this.name}get code(){return u}set code(F){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:F,writable:!0})}toString(){return`${this.name} [${u}]: ${this.message}`}}}function te(u){let m="",_=u.length;const F=u[0]==="-"?1:0;for(;_>=F+4;_-=3)m=`_${u.slice(_-3,_)}${m}`;return`${u.slice(0,_)}${m}`}function le(u,m,_,F,G,re){if(u>_||u3?m===0||m===BigInt(0)?`>= 0${ce} and < 2${ce} ** ${8*(re+1)}${ce}`:`>= -(2${ce} ** ${8*(re+1)-1}${ce}) and < 2 ** ${8*(re+1)-1}${ce}`:`>= ${m}${ce} and <= ${_}${ce}`,new D.ERR_OUT_OF_RANGE("value",he,u)}(function(ce,he,pe){ee(he,"offset"),ce[he]!==void 0&&ce[he+pe]!==void 0||M(he,ce.length-(pe+1))})(F,G,re)}function ee(u,m){if(typeof u!="number")throw new D.ERR_INVALID_ARG_TYPE(m,"number",u)}function M(u,m,_){throw Math.floor(u)!==u?(ee(u,_),new D.ERR_OUT_OF_RANGE(_||"offset","an integer",u)):m<0?new D.ERR_BUFFER_OUT_OF_BOUNDS:new D.ERR_OUT_OF_RANGE(_||"offset",`>= ${_?1:0} and <= ${m}`,u)}V("ERR_BUFFER_OUT_OF_BOUNDS",function(u){return u?`${u} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),V("ERR_INVALID_ARG_TYPE",function(u,m){return`The "${u}" argument must be of type number. Received type ${typeof m}`},TypeError),V("ERR_OUT_OF_RANGE",function(u,m,_){let F=`The value of "${u}" is out of range.`,G=_;return Number.isInteger(_)&&Math.abs(_)>2**32?G=te(String(_)):typeof _=="bigint"&&(G=String(_),(_>BigInt(2)**BigInt(32)||_<-(BigInt(2)**BigInt(32)))&&(G=te(G)),G+="n"),F+=` It must be ${m}. Received ${G}`,F},RangeError);const E=/[^+/0-9A-Za-z-_]/g;function W(u,m){let _;m=m||1/0;const F=u.length;let G=null;const re=[];for(let ce=0;ce55295&&_<57344){if(!G){if(_>56319){(m-=3)>-1&&re.push(239,191,189);continue}if(ce+1===F){(m-=3)>-1&&re.push(239,191,189);continue}G=_;continue}if(_<56320){(m-=3)>-1&&re.push(239,191,189),G=_;continue}_=65536+(G-55296<<10|_-56320)}else G&&(m-=3)>-1&&re.push(239,191,189);if(G=null,_<128){if((m-=1)<0)break;re.push(_)}else if(_<2048){if((m-=2)<0)break;re.push(_>>6|192,63&_|128)}else if(_<65536){if((m-=3)<0)break;re.push(_>>12|224,_>>6&63|128,63&_|128)}else{if(!(_<1114112))throw new Error("Invalid code point");if((m-=4)<0)break;re.push(_>>18|240,_>>12&63|128,_>>6&63|128,63&_|128)}}return re}function z(u){return r.toByteArray(function(m){if((m=(m=m.split("=")[0]).trim().replace(E,"")).length<2)return"";for(;m.length%4!=0;)m+="=";return m}(u))}function Z(u,m,_,F){let G;for(G=0;G=m.length||G>=u.length);++G)m[G+_]=u[G];return G}function R(u,m){return u instanceof m||u!=null&&u.constructor!=null&&u.constructor.name!=null&&u.constructor.name===m.name}function ne(u){return u!=u}const Y=function(){const u="0123456789abcdef",m=new Array(256);for(let _=0;_<16;++_){const F=16*_;for(let G=0;G<16;++G)m[F+G]=u[_]+u[G]}return m}();function ie(u){return typeof BigInt>"u"?oe:u}function oe(){throw new Error("BigInt not supported")}},2341:s=>{s.exports=function e(t){return t===null||typeof t!="object"||t.toJSON!=null?JSON.stringify(t):Array.isArray(t)?"["+t.reduce((r,n,a)=>r+(a===0?"":",")+e(n===void 0||typeof n=="symbol"?null:n),"")+"]":"{"+Object.keys(t).sort().reduce((r,n,a)=>t[n]===void 0||typeof t[n]=="symbol"?r:r+(r.length===0?"":",")+e(n)+":"+e(t[n]),"")+"}"}},7007:s=>{var e,t=typeof Reflect=="object"?Reflect:null,r=t&&typeof t.apply=="function"?t.apply:function(g,x,j){return Function.prototype.apply.call(g,x,j)};e=t&&typeof t.ownKeys=="function"?t.ownKeys:Object.getOwnPropertySymbols?function(g){return Object.getOwnPropertyNames(g).concat(Object.getOwnPropertySymbols(g))}:function(g){return Object.getOwnPropertyNames(g)};var n=Number.isNaN||function(g){return g!=g};function a(){a.init.call(this)}s.exports=a,s.exports.once=function(g,x){return new Promise(function(j,A){function Q(y){g.removeListener(x,S),A(y)}function S(){typeof g.removeListener=="function"&&g.removeListener("error",Q),j([].slice.call(arguments))}w(g,x,S,{once:!0}),x!=="error"&&function(y,O){typeof y.on=="function"&&w(y,"error",O,{once:!0})}(g,Q)})},a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var l=10;function d(g){if(typeof g!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof g)}function i(g){return g._maxListeners===void 0?a.defaultMaxListeners:g._maxListeners}function o(g,x,j,A){var Q,S,y,O;if(d(j),(S=g._events)===void 0?(S=g._events=Object.create(null),g._eventsCount=0):(S.newListener!==void 0&&(g.emit("newListener",x,j.listener?j.listener:j),S=g._events),y=S[x]),y===void 0)y=S[x]=j,++g._eventsCount;else if(typeof y=="function"?y=S[x]=A?[j,y]:[y,j]:A?y.unshift(j):y.push(j),(Q=i(g))>0&&y.length>Q&&!y.warned){y.warned=!0;var T=new Error("Possible EventEmitter memory leak detected. "+y.length+" "+String(x)+" listeners added. Use emitter.setMaxListeners() to increase limit");T.name="MaxListenersExceededWarning",T.emitter=g,T.type=x,T.count=y.length,O=T,console&&console.warn&&console.warn(O)}return g}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(g,x,j){var A={fired:!1,wrapFn:void 0,target:g,type:x,listener:j},Q=c.bind(A);return Q.listener=j,A.wrapFn=Q,Q}function v(g,x,j){var A=g._events;if(A===void 0)return[];var Q=A[x];return Q===void 0?[]:typeof Q=="function"?j?[Q.listener||Q]:[Q]:j?function(S){for(var y=new Array(S.length),O=0;O0&&(S=x[0]),S instanceof Error)throw S;var y=new Error("Unhandled error."+(S?" ("+S.message+")":""));throw y.context=S,y}var O=Q[g];if(O===void 0)return!1;if(typeof O=="function")r(O,this,x);else{var T=O.length,k=h(O,T);for(j=0;j=0;S--)if(j[S]===x||j[S].listener===x){y=j[S].listener,Q=S;break}if(Q<0)return this;Q===0?j.shift():function(O,T){for(;T+1=0;A--)this.removeListener(g,x[A]);return this},a.prototype.listeners=function(g){return v(this,g,!0)},a.prototype.rawListeners=function(g){return v(this,g,!1)},a.listenerCount=function(g,x){return typeof g.listenerCount=="function"?g.listenerCount(x):f.call(g,x)},a.prototype.listenerCount=f,a.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},251:(s,e)=>{e.read=function(t,r,n,a,l){var d,i,o=8*l-a-1,c=(1<>1,v=-7,f=n?l-1:0,h=n?-1:1,w=t[r+f];for(f+=h,d=w&(1<<-v)-1,w>>=-v,v+=o;v>0;d=256*d+t[r+f],f+=h,v-=8);for(i=d&(1<<-v)-1,d>>=-v,v+=a;v>0;i=256*i+t[r+f],f+=h,v-=8);if(d===0)d=1-p;else{if(d===c)return i?NaN:1/0*(w?-1:1);i+=Math.pow(2,a),d-=p}return(w?-1:1)*i*Math.pow(2,d-a)},e.write=function(t,r,n,a,l,d){var i,o,c,p=8*d-l-1,v=(1<>1,h=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=a?0:d-1,g=a?1:-1,x=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(o=isNaN(r)?1:0,i=v):(i=Math.floor(Math.log(r)/Math.LN2),r*(c=Math.pow(2,-i))<1&&(i--,c*=2),(r+=i+f>=1?h/c:h*Math.pow(2,1-f))*c>=2&&(i++,c/=2),i+f>=v?(o=0,i=v):i+f>=1?(o=(r*c-1)*Math.pow(2,l),i+=f):(o=r*Math.pow(2,f-1)*Math.pow(2,l),i=0));l>=8;t[n+w]=255&o,w+=g,o/=256,l-=8);for(i=i<0;t[n+w]=255&i,w+=g,i/=256,p-=8);t[n+w-g]|=128*x}},7034:(s,e,t)=>{const{isArray:r,isObject:n,isString:a}=t(7382),{asArray:l}=t(9263),{prependBase:d}=t(470),i=t(2207),o=t(7532);function c(v){throw new i("Invalid JSON-LD syntax; @context must be an object.","jsonld.SyntaxError",{code:"invalid local context",context:v})}function p({context:v,base:f}){if(!v)return;const h=v["@context"];if(a(h))v["@context"]=d(f,h);else if(r(h))for(let w=0;w10)throw new i("Maximum number of @context URLs exceeded.","jsonld.ContextUrlError",{code:v.processingMode==="json-ld-1.0"?"loading remote context failed":"context overflow",max:10});if(w.has(f))throw new i("Cyclical @context URLs detected.","jsonld.ContextUrlError",{code:v.processingMode==="json-ld-1.0"?"recursive context inclusion":"context overflow",url:f});let g,x;w.add(f);try{x=await h(f),g=x.document||null,a(g)&&(g=JSON.parse(g))}catch(j){throw new i("Dereferencing a URL did not result in a valid JSON-LD object. Possible causes are an inaccessible URL perhaps due to a same-origin policy (ensure the server uses CORS if you are using client-side JavaScript), too many redirects, a non-JSON response, or more than one HTTP Link Header was provided for a remote context.","jsonld.InvalidUrl",{code:"loading remote context failed",url:f,cause:j})}if(!n(g))throw new i("Dereferencing a URL did not result in a JSON object. The response was valid JSON, but it was not a JSON object.","jsonld.InvalidUrl",{code:"invalid remote context",url:f});return g="@context"in g?{"@context":g["@context"]}:{"@context":{}},x.contextUrl&&(r(g["@context"])||(g["@context"]=[g["@context"]]),g["@context"].push(x.contextUrl)),{context:g,remoteDoc:x}}}},2207:s=>{s.exports=class extends Error{constructor(e="An unspecified JSON-LD error occurred.",t="jsonld.Error",r={}){super(e),this.name=t,this.message=e,this.details=r}}},5445:s=>{s.exports=e=>{class t{toString(){return"[object JsonLdProcessor]"}}return Object.defineProperty(t,"prototype",{writable:!1,enumerable:!1}),Object.defineProperty(t.prototype,"constructor",{writable:!0,enumerable:!1,configurable:!0,value:t}),t.compact=function(r,n){return arguments.length<2?Promise.reject(new TypeError("Could not compact, too few arguments.")):e.compact(r,n)},t.expand=function(r){return arguments.length<1?Promise.reject(new TypeError("Could not expand, too few arguments.")):e.expand(r)},t.flatten=function(r){return arguments.length<1?Promise.reject(new TypeError("Could not flatten, too few arguments.")):e.flatten(r)},t}},8229:(s,e,t)=>{s.exports=t(989).NQuads},3743:s=>{s.exports=class{constructor(){this._requests={}}wrapLoader(e){const t=this;return t._loader=e,function(){return t.add.apply(t,arguments)}}async add(e){let t=this._requests[e];if(t)return Promise.resolve(t);t=this._requests[e]=this._loader(e);try{return await t}finally{delete this._requests[e]}}}},7532:(s,e,t)=>{const r=t(9749);s.exports=class{constructor({document:n}){this.document=n,this.cache=new r({max:10})}getProcessed(n){return this.cache.get(n)}setProcessed(n,a){this.cache.set(n,a)}}},1058:(s,e,t)=>{const r=t(2207),{isArray:n,isObject:a,isString:l,isUndefined:d}=t(7382),{isList:i,isValue:o,isGraph:c,isSimpleGraph:p,isSubjectReference:v}=t(3978),{expandIri:f,getContextValue:h,isKeyword:w,process:g,processingMode:x}=t(1972),{removeBase:j,prependBase:A}=t(470),{REGEX_KEYWORD:Q,addValue:S,asArray:y,compareShortestLeast:O}=t(9263),T={};function k(b,L,N){if(f(b,L,{vocab:!0},N)!=="@nest")throw new r("JSON-LD compact error; nested property must have an @nest value resolving to @nest.","jsonld.SyntaxError",{code:"invalid @nest value"})}s.exports=T,T.compact=async({activeCtx:b,activeProperty:L=null,element:N,options:K={}})=>{if(n(N)){let q=[];for(let C=0;C1&&(B=Array.from(B).sort());const U=b;for(const J of B){const D=T.compactIri({activeCtx:U,iri:J,relativeTo:{vocab:!0}}),V=h(X,D,"@context");d(V)||(b=await g({activeCtx:b,localCtx:V,options:K,propagate:!1}))}const P=Object.keys(N).sort();for(const J of P){const D=N[J];if(J!=="@id")if(J!=="@type")if(J!=="@reverse")if(J!=="@preserve")if(J!=="@index")if(J!=="@graph"&&J!=="@list"&&J!=="@included"&&w(J)){const V=T.compactIri({activeCtx:b,iri:J,relativeTo:{vocab:!0}});S(C,V,D)}else{if(!n(D))throw new r("JSON-LD expansion error; expanded value must be an array.","jsonld.SyntaxError");if(D.length===0){const V=T.compactIri({activeCtx:b,iri:J,value:D,relativeTo:{vocab:!0},reverse:q}),te=b.mappings.has(V)?b.mappings.get(V)["@nest"]:null;let le=C;te&&(k(b,te,K),a(C[te])||(C[te]={}),le=C[te]),S(le,V,D,{propertyIsArray:!0})}for(const V of D){const te=T.compactIri({activeCtx:b,iri:J,value:V,relativeTo:{vocab:!0},reverse:q}),le=b.mappings.has(te)?b.mappings.get(te)["@nest"]:null;let ee=C;le&&(k(b,le,K),a(C[le])||(C[le]={}),ee=C[le]);const M=h(b,te,"@container")||[],E=c(V),W=i(V);let z;W?z=V["@list"]:E&&(z=V["@graph"]);let Z=await T.compact({activeCtx:b,activeProperty:te,element:W||E?z:V,options:K});if(W){if(n(Z)||(Z=[Z]),M.includes("@list")){S(ee,te,Z,{valueIsArray:!0,allowDuplicate:!0});continue}Z={[T.compactIri({activeCtx:b,iri:"@list",relativeTo:{vocab:!0}})]:Z},"@index"in V&&(Z[T.compactIri({activeCtx:b,iri:"@index",relativeTo:{vocab:!0}})]=V["@index"])}if(E)if(M.includes("@graph")&&(M.includes("@id")||M.includes("@index")&&p(V))){let R;ee.hasOwnProperty(te)?R=ee[te]:ee[te]=R={};const ne=(M.includes("@id")?V["@id"]:V["@index"])||T.compactIri({activeCtx:b,iri:"@none",relativeTo:{vocab:!0}});S(R,ne,Z,{propertyIsArray:!K.compactArrays||M.includes("@set")})}else M.includes("@graph")&&p(V)?(n(Z)&&Z.length>1&&(Z={"@included":Z}),S(ee,te,Z,{propertyIsArray:!K.compactArrays||M.includes("@set")})):(n(Z)&&Z.length===1&&K.compactArrays&&(Z=Z[0]),Z={[T.compactIri({activeCtx:b,iri:"@graph",relativeTo:{vocab:!0}})]:Z},"@id"in V&&(Z[T.compactIri({activeCtx:b,iri:"@id",relativeTo:{vocab:!0}})]=V["@id"]),"@index"in V&&(Z[T.compactIri({activeCtx:b,iri:"@index",relativeTo:{vocab:!0}})]=V["@index"]),S(ee,te,Z,{propertyIsArray:!K.compactArrays||M.includes("@set")}));else if(M.includes("@language")||M.includes("@index")||M.includes("@id")||M.includes("@type")){let R,ne;if(ee.hasOwnProperty(te)?R=ee[te]:ee[te]=R={},M.includes("@language"))o(Z)&&(Z=Z["@value"]),ne=V["@language"];else if(M.includes("@index")){const Y=h(b,te,"@index")||"@index",ie=T.compactIri({activeCtx:b,iri:Y,relativeTo:{vocab:!0}});if(Y==="@index")ne=V["@index"],delete Z[ie];else{let oe;if([ne,...oe]=y(Z[Y]||[]),l(ne))switch(oe.length){case 0:delete Z[Y];break;case 1:Z[Y]=oe[0];break;default:Z[Y]=oe}else ne=null}}else if(M.includes("@id")){const Y=T.compactIri({activeCtx:b,iri:"@id",relativeTo:{vocab:!0}});ne=Z[Y],delete Z[Y]}else if(M.includes("@type")){const Y=T.compactIri({activeCtx:b,iri:"@type",relativeTo:{vocab:!0}});let ie;switch([ne,...ie]=y(Z[Y]||[]),ie.length){case 0:delete Z[Y];break;case 1:Z[Y]=ie[0];break;default:Z[Y]=ie}Object.keys(Z).length===1&&"@id"in V&&(Z=await T.compact({activeCtx:b,activeProperty:te,element:{"@id":V["@id"]},options:K}))}ne||(ne=T.compactIri({activeCtx:b,iri:"@none",relativeTo:{vocab:!0}})),S(R,ne,Z,{propertyIsArray:M.includes("@set")})}else{const R=!K.compactArrays||M.includes("@set")||M.includes("@list")||n(Z)&&Z.length===0||J==="@list"||J==="@graph";S(ee,te,Z,{propertyIsArray:R})}}}else{if((h(b,L,"@container")||[]).includes("@index"))continue;const V=T.compactIri({activeCtx:b,iri:J,relativeTo:{vocab:!0}});S(C,V,D)}else{const V=await T.compact({activeCtx:b,activeProperty:L,element:D,options:K});n(V)&&V.length===0||S(C,J,V)}else{const V=await T.compact({activeCtx:b,activeProperty:"@reverse",element:D,options:K});for(const te in V)if(b.mappings.has(te)&&b.mappings.get(te).reverse){const le=V[te],ee=(h(b,te,"@container")||[]).includes("@set")||!K.compactArrays;S(C,te,le,{propertyIsArray:ee}),delete V[te]}if(Object.keys(V).length>0){const te=T.compactIri({activeCtx:b,iri:J,relativeTo:{vocab:!0}});S(C,te,V)}}else{let V=y(D).map(ee=>T.compactIri({activeCtx:X,iri:ee,relativeTo:{vocab:!0}}));V.length===1&&(V=V[0]);const te=T.compactIri({activeCtx:b,iri:"@type",relativeTo:{vocab:!0}}),le=(h(b,te,"@container")||[]).includes("@set")&&x(b,1.1)||n(V)&&D.length===0;S(C,te,V,{propertyIsArray:le})}else{let V=y(D).map(te=>T.compactIri({activeCtx:b,iri:te,relativeTo:{vocab:!1},base:K.base}));V.length===1&&(V=V[0]),C[T.compactIri({activeCtx:b,iri:"@id",relativeTo:{vocab:!0}})]=V}}return C}return N},T.compactIri=({activeCtx:b,iri:L,value:N=null,relativeTo:K={vocab:!1},reverse:se=!1,base:q=null})=>{if(L===null)return L;b.isPropertyTermScoped&&b.previousContext&&(b=b.previousContext);const C=b.getInverse();if(w(L)&&L in C&&"@none"in C[L]&&"@type"in C[L]["@none"]&&"@none"in C[L]["@none"]["@type"])return C[L]["@none"]["@type"]["@none"];if(K.vocab&&L in C){const P=b["@language"]||"@none",J=[];a(N)&&"@index"in N&&!("@graph"in N)&&J.push("@index","@index@set"),a(N)&&"@preserve"in N&&(N=N["@preserve"][0]),c(N)?("@index"in N&&J.push("@graph@index","@graph@index@set","@index","@index@set"),"@id"in N&&J.push("@graph@id","@graph@id@set"),J.push("@graph","@graph@set","@set"),"@index"in N||J.push("@graph@index","@graph@index@set","@index","@index@set"),"@id"in N||J.push("@graph@id","@graph@id@set")):a(N)&&!o(N)&&J.push("@id","@id@set","@type","@set@type");let D="@language",V="@null";if(se)D="@type",V="@reverse",J.push("@set");else if(i(N)){"@index"in N||J.push("@list");const le=N["@list"];if(le.length===0)D="@any",V="@none";else{let ee=le.length===0?P:null,M=null;for(let E=0;EY.includes("_"));ne&&Z.push(ne.replace(/^[^_]+_/,"_"))}Z.push("@none");const R=le.inverse[ee];for(const ne of E){if(!(ne in R))continue;const Y=R[ne][W];for(const ie of Z)if(ie in Y)return Y[ie]}return null}(b,L,N,J,D,V);if(te!==null)return te}if(K.vocab&&"@vocab"in b){const P=b["@vocab"];if(L.indexOf(P)===0&&L!==P){const J=L.substr(P.length);if(!b.mappings.has(J))return J}}let X=null;const I=[];let B=b.fastCurieMap;const U=L.length-1;for(let P=0;P=0;--P){const J=I[P],D=J.terms;for(const V of D){const te=V+":"+L.substr(J.iri.length);b.mappings.get(V)._prefix&&(!b.mappings.has(te)||N===null&&b.mappings.get(te)["@id"]===L)&&(X===null||O(te,X)<0)&&(X=te)}}if(X!==null)return X;for(const[P,J]of b.mappings)if(J&&J._prefix&&L.startsWith(P+":"))throw new r(`Absolute IRI "${L}" confused with prefix "${P}".`,"jsonld.SyntaxError",{code:"IRI confused with prefix",context:b});if(!K.vocab){if("@base"in b){if(b["@base"]){const P=j(A(q,b["@base"]),L);return Q.test(P)?`./${P}`:P}return L}return j(q,L)}return L},T.compactValue=({activeCtx:b,activeProperty:L,value:N,options:K})=>{if(o(N)){const X=h(b,L,"@type"),I=h(b,L,"@language"),B=h(b,L,"@direction"),U=h(b,L,"@container")||[],P="@index"in N&&!U.includes("@index");if(!P&&X!=="@none"&&(N["@type"]===X||"@language"in N&&N["@language"]===I&&"@direction"in N&&N["@direction"]===B||"@language"in N&&N["@language"]===I||"@direction"in N&&N["@direction"]===B))return N["@value"];const J=Object.keys(N).length,D=J===1||J===2&&"@index"in N&&!P,V="@language"in b,te=l(N["@value"]),le=b.mappings.has(L)&&b.mappings.get(L)["@language"]===null;if(D&&X!=="@none"&&(!V||!te||le))return N["@value"];const ee={};return P&&(ee[T.compactIri({activeCtx:b,iri:"@index",relativeTo:{vocab:!0}})]=N["@index"]),"@type"in N?ee[T.compactIri({activeCtx:b,iri:"@type",relativeTo:{vocab:!0}})]=T.compactIri({activeCtx:b,iri:N["@type"],relativeTo:{vocab:!0}}):"@language"in N&&(ee[T.compactIri({activeCtx:b,iri:"@language",relativeTo:{vocab:!0}})]=N["@language"]),"@direction"in N&&(ee[T.compactIri({activeCtx:b,iri:"@direction",relativeTo:{vocab:!0}})]=N["@direction"]),ee[T.compactIri({activeCtx:b,iri:"@value",relativeTo:{vocab:!0}})]=N["@value"],ee}const se=f(b,L,{vocab:!0},K),q=h(b,L,"@type"),C=T.compactIri({activeCtx:b,iri:N["@id"],relativeTo:{vocab:q==="@vocab"},base:K.base});return q==="@id"||q==="@vocab"||se==="@graph"?C:{[T.compactIri({activeCtx:b,iri:"@id",relativeTo:{vocab:!0}})]:C}}},9378:s=>{const e="http://www.w3.org/1999/02/22-rdf-syntax-ns#",t="http://www.w3.org/2001/XMLSchema#";s.exports={LINK_HEADER_REL:"http://www.w3.org/ns/json-ld#context",LINK_HEADER_CONTEXT:"http://www.w3.org/ns/json-ld#context",RDF:e,RDF_LIST:e+"List",RDF_FIRST:e+"first",RDF_REST:e+"rest",RDF_NIL:e+"nil",RDF_TYPE:e+"type",RDF_PLAIN_LITERAL:e+"PlainLiteral",RDF_XML_LITERAL:e+"XMLLiteral",RDF_JSON_LITERAL:e+"JSON",RDF_OBJECT:e+"object",RDF_LANGSTRING:e+"langString",XSD:t,XSD_BOOLEAN:t+"boolean",XSD_DOUBLE:t+"double",XSD_INTEGER:t+"integer",XSD_STRING:t+"string"}},1972:(s,e,t)=>{const r=t(9263),n=t(2207),{isArray:a,isObject:l,isString:d,isUndefined:i}=t(7382),{isAbsolute:o,isRelative:c,prependBase:p}=t(470),{handleEvent:v}=t(2246),{REGEX_BCP47:f,REGEX_KEYWORD:h,asArray:w,compareShortestLeast:g}=t(9263),x=new Map,j={};function A(S,y,O,T,k,b){if(y===null||!d(y)||j.isKeyword(y))return y;if(y.match(h))return null;if(T&&T.hasOwnProperty(y)&&k.get(y)!==!0&&j.createTermDefinition({activeCtx:S,localCtx:T,term:y,defined:k,options:b}),(O=O||{}).vocab){const N=S.mappings.get(y);if(N===null)return null;if(l(N)&&"@id"in N)return N["@id"]}const L=y.indexOf(":");if(L>0){const N=y.substr(0,L),K=y.substr(L+1);if(N==="_"||K.indexOf("//")===0)return y;T&&T.hasOwnProperty(N)&&j.createTermDefinition({activeCtx:S,localCtx:T,term:N,defined:k,options:b});const se=S.mappings.get(N);if(se&&se._prefix)return se["@id"]+K;if(o(y))return y}if(O.vocab&&"@vocab"in S)y=S["@vocab"]+y;else if(O.base){let N,K;"@base"in S?S["@base"]?(K=p(b.base,S["@base"]),N=p(K,y)):(K=S["@base"],N=y):(K=b.base,N=p(b.base,y)),y=N}return y}function Q(S,y){if(!S||typeof S!="object"||!y||typeof y!="object")return S===y;const O=Array.isArray(S);if(O!==Array.isArray(y))return!1;if(O){if(S.length!==y.length)return!1;for(let b=0;b{if(l(y)&&"@context"in y&&a(y["@context"])&&(y=y["@context"]),w(y).length===0)return S;const L=[],N=[({event:C,next:X})=>{L.push(C),X()}];O.eventHandler&&N.push(O.eventHandler);const K=O;O={...O,eventHandler:N};const se=await O.contextResolver.resolve({activeCtx:S,context:y,documentLoader:O.documentLoader,base:O.base});l(se[0].document)&&typeof se[0].document["@propagate"]=="boolean"&&(T=se[0].document["@propagate"]);let q=S;T||q.previousContext||(q=q.clone(),q.previousContext=S);for(const C of se){let{document:X}=C;if(S=q,X===null){if(!k&&Object.keys(S.protected).length!==0)throw new n("Tried to nullify a context with protected terms outside of a term definition.","jsonld.SyntaxError",{code:"invalid context nullification"});q=S=j.getInitialContext(O).clone();continue}const I=C.getProcessed(S);if(I){if(K.eventHandler)for(const U of I.events)v({event:U,options:K});q=S=I.context;continue}if(l(X)&&"@context"in X&&(X=X["@context"]),!l(X))throw new n("Invalid JSON-LD syntax; @context must be an object.","jsonld.SyntaxError",{code:"invalid local context",context:X});q=q.clone();const B=new Map;if("@version"in X){if(X["@version"]!==1.1)throw new n("Unsupported JSON-LD version: "+X["@version"],"jsonld.UnsupportedVersion",{code:"invalid @version value",context:X});if(S.processingMode&&S.processingMode==="json-ld-1.0")throw new n("@version: "+X["@version"]+" not compatible with "+S.processingMode,"jsonld.ProcessingModeConflict",{code:"processing mode conflict",context:X});q.processingMode="json-ld-1.1",q["@version"]=X["@version"],B.set("@version",!0)}if(q.processingMode=q.processingMode||S.processingMode,"@base"in X){let U=X["@base"];if(!(U===null||o(U))){if(!c(U))throw new n('Invalid JSON-LD syntax; the value of "@base" in a @context must be an absolute IRI, a relative IRI, or null.',"jsonld.SyntaxError",{code:"invalid base IRI",context:X});U=p(q["@base"],U)}q["@base"]=U,B.set("@base",!0)}if("@vocab"in X){const U=X["@vocab"];if(U===null)delete q["@vocab"];else{if(!d(U))throw new n('Invalid JSON-LD syntax; the value of "@vocab" in a @context must be a string or null.',"jsonld.SyntaxError",{code:"invalid vocab mapping",context:X});if(!o(U)&&j.processingMode(q,1))throw new n('Invalid JSON-LD syntax; the value of "@vocab" in a @context must be an absolute IRI.',"jsonld.SyntaxError",{code:"invalid vocab mapping",context:X});{const P=A(q,U,{vocab:!0,base:!0},void 0,void 0,O);o(P)||O.eventHandler&&v({event:{type:["JsonLdEvent"],code:"relative @vocab reference",level:"warning",message:"Relative @vocab reference found.",details:{vocab:P}},options:O}),q["@vocab"]=P}}B.set("@vocab",!0)}if("@language"in X){const U=X["@language"];if(U===null)delete q["@language"];else{if(!d(U))throw new n('Invalid JSON-LD syntax; the value of "@language" in a @context must be a string or null.',"jsonld.SyntaxError",{code:"invalid default language",context:X});U.match(f)||O.eventHandler&&v({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:U}},options:O}),q["@language"]=U.toLowerCase()}B.set("@language",!0)}if("@direction"in X){const U=X["@direction"];if(S.processingMode==="json-ld-1.0")throw new n("Invalid JSON-LD syntax; @direction not compatible with "+S.processingMode,"jsonld.SyntaxError",{code:"invalid context member",context:X});if(U===null)delete q["@direction"];else{if(U!=="ltr"&&U!=="rtl")throw new n('Invalid JSON-LD syntax; the value of "@direction" in a @context must be null, "ltr", or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",context:X});q["@direction"]=U}B.set("@direction",!0)}if("@propagate"in X){const U=X["@propagate"];if(S.processingMode==="json-ld-1.0")throw new n("Invalid JSON-LD syntax; @propagate not compatible with "+S.processingMode,"jsonld.SyntaxError",{code:"invalid context entry",context:X});if(typeof U!="boolean")throw new n("Invalid JSON-LD syntax; @propagate value must be a boolean.","jsonld.SyntaxError",{code:"invalid @propagate value",context:y});B.set("@propagate",!0)}if("@import"in X){const U=X["@import"];if(S.processingMode==="json-ld-1.0")throw new n("Invalid JSON-LD syntax; @import not compatible with "+S.processingMode,"jsonld.SyntaxError",{code:"invalid context entry",context:X});if(!d(U))throw new n("Invalid JSON-LD syntax; @import must be a string.","jsonld.SyntaxError",{code:"invalid @import value",context:y});const P=await O.contextResolver.resolve({activeCtx:S,context:U,documentLoader:O.documentLoader,base:O.base});if(P.length!==1)throw new n("Invalid JSON-LD syntax; @import must reference a single context.","jsonld.SyntaxError",{code:"invalid remote context",context:y});const J=P[0].getProcessed(S);if(J)X=J;else{const D=P[0].document;if("@import"in D)throw new n("Invalid JSON-LD syntax: imported context must not include @import.","jsonld.SyntaxError",{code:"invalid context entry",context:y});for(const V in D)X.hasOwnProperty(V)||(X[V]=D[V]);P[0].setProcessed(S,X)}B.set("@import",!0)}B.set("@protected",X["@protected"]||!1);for(const U in X)if(j.createTermDefinition({activeCtx:q,localCtx:X,term:U,defined:B,options:O,overrideProtected:k}),l(X[U])&&"@context"in X[U]){const P=X[U]["@context"];let J=!0;if(d(P)){const D=p(O.base,P);b.has(D)?J=!1:b.add(D)}if(J)try{await j.process({activeCtx:q.clone(),localCtx:X[U]["@context"],overrideProtected:!0,options:O,cycles:b})}catch{throw new n("Invalid JSON-LD syntax; invalid scoped context.","jsonld.SyntaxError",{code:"invalid scoped context",context:X[U]["@context"],term:U})}}C.setProcessed(S,{context:q,events:L})}return q},j.createTermDefinition=({activeCtx:S,localCtx:y,term:O,defined:T,options:k,overrideProtected:b=!1})=>{if(T.has(O)){if(T.get(O))return;throw new n("Cyclical context definition detected.","jsonld.CyclicalContext",{code:"cyclic IRI mapping",context:y,term:O})}let L;if(T.set(O,!1),y.hasOwnProperty(O)&&(L=y[O]),O==="@type"&&l(L)&&(L["@container"]||"@set")==="@set"&&j.processingMode(S,1.1)){const I=["@container","@id","@protected"],B=Object.keys(L);if(B.length===0||B.some(U=>!I.includes(U)))throw new n("Invalid JSON-LD syntax; keywords cannot be overridden.","jsonld.SyntaxError",{code:"keyword redefinition",context:y,term:O})}else{if(j.isKeyword(O))throw new n("Invalid JSON-LD syntax; keywords cannot be overridden.","jsonld.SyntaxError",{code:"keyword redefinition",context:y,term:O});if(O.match(h))return void(k.eventHandler&&v({event:{type:["JsonLdEvent"],code:"reserved term",level:"warning",message:'Terms beginning with "@" are reserved for future use and dropped.',details:{term:O}},options:k}));if(O==="")throw new n("Invalid JSON-LD syntax; a term cannot be an empty string.","jsonld.SyntaxError",{code:"invalid term definition",context:y})}const N=S.mappings.get(O);S.mappings.has(O)&&S.mappings.delete(O);let K=!1;if((d(L)||L===null)&&(K=!0,L={"@id":L}),!l(L))throw new n("Invalid JSON-LD syntax; @context term values must be strings or objects.","jsonld.SyntaxError",{code:"invalid term definition",context:y});const se={};S.mappings.set(O,se),se.reverse=!1;const q=["@container","@id","@language","@reverse","@type"];j.processingMode(S,1.1)&&q.push("@context","@direction","@index","@nest","@prefix","@protected");for(const I in L)if(!q.includes(I))throw new n("Invalid JSON-LD syntax; a term definition must not contain "+I,"jsonld.SyntaxError",{code:"invalid term definition",context:y});const C=O.indexOf(":");if(se._termHasColon=C>0,"@reverse"in L){if("@id"in L)throw new n("Invalid JSON-LD syntax; a @reverse term definition must not contain @id.","jsonld.SyntaxError",{code:"invalid reverse property",context:y});if("@nest"in L)throw new n("Invalid JSON-LD syntax; a @reverse term definition must not contain @nest.","jsonld.SyntaxError",{code:"invalid reverse property",context:y});const I=L["@reverse"];if(!d(I))throw new n("Invalid JSON-LD syntax; a @context @reverse value must be a string.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:y});if(I.match(h))return k.eventHandler&&v({event:{type:["JsonLdEvent"],code:"reserved @reverse value",level:"warning",message:'@reverse values beginning with "@" are reserved for future use and dropped.',details:{reverse:I}},options:k}),void(N?S.mappings.set(O,N):S.mappings.delete(O));const B=A(S,I,{vocab:!0,base:!1},y,T,k);if(!o(B))throw new n("Invalid JSON-LD syntax; a @context @reverse value must be an absolute IRI or a blank node identifier.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:y});se["@id"]=B,se.reverse=!0}else if("@id"in L){let I=L["@id"];if(I&&!d(I))throw new n("Invalid JSON-LD syntax; a @context @id value must be an array of strings or a string.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:y});if(I===null)se["@id"]=null;else{if(!j.isKeyword(I)&&I.match(h))return k.eventHandler&&v({event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:'@id values beginning with "@" are reserved for future use and dropped.',details:{id:I}},options:k}),void(N?S.mappings.set(O,N):S.mappings.delete(O));if(I!==O){if(I=A(S,I,{vocab:!0,base:!1},y,T,k),!o(I)&&!j.isKeyword(I))throw new n("Invalid JSON-LD syntax; a @context @id value must be an absolute IRI, a blank node identifier, or a keyword.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:y});if(O.match(/(?::[^:])|\//)&&A(S,O,{vocab:!0,base:!1},y,new Map(T).set(O,!0),k)!==I)throw new n("Invalid JSON-LD syntax; term in form of IRI must expand to definition.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:y});se["@id"]=I,se._prefix=K&&!se._termHasColon&&I.match(/[:\/\?#\[\]@]$/)!==null}}}if(!("@id"in se))if(se._termHasColon){const I=O.substr(0,C);if(y.hasOwnProperty(I)&&j.createTermDefinition({activeCtx:S,localCtx:y,term:I,defined:T,options:k}),S.mappings.has(I)){const B=O.substr(C+1);se["@id"]=S.mappings.get(I)["@id"]+B}else se["@id"]=O}else if(O==="@type")se["@id"]=O;else{if(!("@vocab"in S))throw new n("Invalid JSON-LD syntax; @context terms must define an @id.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:y,term:O});se["@id"]=S["@vocab"]+O}if((L["@protected"]===!0||T.get("@protected")===!0&&L["@protected"]!==!1)&&(S.protected[O]=!0,se.protected=!0),T.set(O,!0),"@type"in L){let I=L["@type"];if(!d(I))throw new n("Invalid JSON-LD syntax; an @context @type value must be a string.","jsonld.SyntaxError",{code:"invalid type mapping",context:y});if(I==="@json"||I==="@none"){if(j.processingMode(S,1))throw new n(`Invalid JSON-LD syntax; an @context @type value must not be "${I}" in JSON-LD 1.0 mode.`,"jsonld.SyntaxError",{code:"invalid type mapping",context:y})}else if(I!=="@id"&&I!=="@vocab"){if(I=A(S,I,{vocab:!0,base:!1},y,T,k),!o(I))throw new n("Invalid JSON-LD syntax; an @context @type value must be an absolute IRI.","jsonld.SyntaxError",{code:"invalid type mapping",context:y});if(I.indexOf("_:")===0)throw new n("Invalid JSON-LD syntax; an @context @type value must be an IRI, not a blank node identifier.","jsonld.SyntaxError",{code:"invalid type mapping",context:y})}se["@type"]=I}if("@container"in L){const I=d(L["@container"])?[L["@container"]]:L["@container"]||[],B=["@list","@set","@index","@language"];let U=!0;const P=I.includes("@set");if(j.processingMode(S,1.1)){if(B.push("@graph","@id","@type"),I.includes("@list")){if(I.length!==1)throw new n("Invalid JSON-LD syntax; @context @container with @list must have no other values","jsonld.SyntaxError",{code:"invalid container mapping",context:y})}else if(I.includes("@graph")){if(I.some(J=>J!=="@graph"&&J!=="@id"&&J!=="@index"&&J!=="@set"))throw new n("Invalid JSON-LD syntax; @context @container with @graph must have no other values other than @id, @index, and @set","jsonld.SyntaxError",{code:"invalid container mapping",context:y})}else U&=I.length<=(P?2:1);if(I.includes("@type")&&(se["@type"]=se["@type"]||"@id",!["@id","@vocab"].includes(se["@type"])))throw new n("Invalid JSON-LD syntax; container: @type requires @type to be @id or @vocab.","jsonld.SyntaxError",{code:"invalid type mapping",context:y})}else U&=!a(L["@container"]),U&=I.length<=1;if(U&=I.every(J=>B.includes(J)),U&=!(P&&I.includes("@list")),!U)throw new n("Invalid JSON-LD syntax; @context @container value must be one of the following: "+B.join(", "),"jsonld.SyntaxError",{code:"invalid container mapping",context:y});if(se.reverse&&!I.every(J=>["@index","@set"].includes(J)))throw new n("Invalid JSON-LD syntax; @context @container value for a @reverse type definition must be @index or @set.","jsonld.SyntaxError",{code:"invalid reverse property",context:y});se["@container"]=I}if("@index"in L){if(!("@container"in L)||!se["@container"].includes("@index"))throw new n(`Invalid JSON-LD syntax; @index without @index in @container: "${L["@index"]}" on term "${O}".`,"jsonld.SyntaxError",{code:"invalid term definition",context:y});if(!d(L["@index"])||L["@index"].indexOf("@")===0)throw new n(`Invalid JSON-LD syntax; @index must expand to an IRI: "${L["@index"]}" on term "${O}".`,"jsonld.SyntaxError",{code:"invalid term definition",context:y});se["@index"]=L["@index"]}if("@context"in L&&(se["@context"]=L["@context"]),"@language"in L&&!("@type"in L)){let I=L["@language"];if(I!==null&&!d(I))throw new n("Invalid JSON-LD syntax; @context @language value must be a string or null.","jsonld.SyntaxError",{code:"invalid language mapping",context:y});I!==null&&(I=I.toLowerCase()),se["@language"]=I}if("@prefix"in L){if(O.match(/:|\//))throw new n("Invalid JSON-LD syntax; @context @prefix used on a compact IRI term","jsonld.SyntaxError",{code:"invalid term definition",context:y});if(j.isKeyword(se["@id"]))throw new n("Invalid JSON-LD syntax; keywords may not be used as prefixes","jsonld.SyntaxError",{code:"invalid term definition",context:y});if(typeof L["@prefix"]!="boolean")throw new n("Invalid JSON-LD syntax; @context value for @prefix must be boolean","jsonld.SyntaxError",{code:"invalid @prefix value",context:y});se._prefix=L["@prefix"]===!0}if("@direction"in L){const I=L["@direction"];if(I!==null&&I!=="ltr"&&I!=="rtl")throw new n('Invalid JSON-LD syntax; @direction value must be null, "ltr", or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",context:y});se["@direction"]=I}if("@nest"in L){const I=L["@nest"];if(!d(I)||I!=="@nest"&&I.indexOf("@")===0)throw new n("Invalid JSON-LD syntax; @context @nest value must be a string which is not a keyword other than @nest.","jsonld.SyntaxError",{code:"invalid @nest value",context:y});se["@nest"]=I}const X=se["@id"];if(X==="@context"||X==="@preserve")throw new n("Invalid JSON-LD syntax; @context and @preserve cannot be aliased.","jsonld.SyntaxError",{code:"invalid keyword alias",context:y});if(N&&N.protected&&!b&&(S.protected[O]=!0,se.protected=!0,!Q(N,se)))throw new n("Invalid JSON-LD syntax; tried to redefine a protected term.","jsonld.SyntaxError",{code:"protected term redefinition",context:y,term:O})},j.expandIri=(S,y,O,T)=>A(S,y,O,void 0,void 0,T),j.getInitialContext=S=>{const y=JSON.stringify({processingMode:S.processingMode}),O=x.get(y);if(O)return O;const T={processingMode:S.processingMode,mappings:new Map,inverse:null,getInverse:function(){const L=this;if(L.inverse)return L.inverse;const N=L.inverse={},K=L.fastCurieMap={},se={},q=(L["@language"]||"@none").toLowerCase(),C=L["@direction"],X=L.mappings,I=[...X.keys()].sort(g);for(const B of I){const U=X.get(B);if(U===null)continue;let P=U["@container"]||"@none";if(P=[].concat(P).sort().join(""),U["@id"]===null)continue;const J=w(U["@id"]);for(const D of J){let V=N[D];const te=j.isKeyword(D);if(V)te||U._termHasColon||se[D].push(B);else if(N[D]=V={},!te&&!U._termHasColon){se[D]=[B];const le={iri:D,terms:se[D]};D[0]in K?K[D[0]].push(le):K[D[0]]=[le]}if(V[P]||(V[P]={"@language":{},"@type":{},"@any":{}}),V=V[P],b(B,V["@any"],"@none"),U.reverse)b(B,V["@type"],"@reverse");else if(U["@type"]==="@none")b(B,V["@any"],"@none"),b(B,V["@language"],"@none"),b(B,V["@type"],"@none");else if("@type"in U)b(B,V["@type"],U["@type"]);else if("@language"in U&&"@direction"in U){const le=U["@language"],ee=U["@direction"];b(B,V["@language"],le&&ee?`${le}_${ee}`.toLowerCase():le?le.toLowerCase():ee?`_${ee}`:"@null")}else"@language"in U?b(B,V["@language"],(U["@language"]||"@null").toLowerCase()):"@direction"in U?U["@direction"]?b(B,V["@language"],`_${U["@direction"]}`):b(B,V["@language"],"@none"):C?(b(B,V["@language"],`_${C}`),b(B,V["@language"],"@none"),b(B,V["@type"],"@none")):(b(B,V["@language"],q),b(B,V["@language"],"@none"),b(B,V["@type"],"@none"))}}for(const B in K)k(K,B,1);return N},clone:function(){const L={};return L.mappings=r.clone(this.mappings),L.clone=this.clone,L.inverse=null,L.getInverse=this.getInverse,L.protected=r.clone(this.protected),this.previousContext&&(L.previousContext=this.previousContext.clone()),L.revertToPreviousContext=this.revertToPreviousContext,"@base"in this&&(L["@base"]=this["@base"]),"@language"in this&&(L["@language"]=this["@language"]),"@vocab"in this&&(L["@vocab"]=this["@vocab"]),L},revertToPreviousContext:function(){return this.previousContext?this.previousContext.clone():this},protected:{}};return x.size===1e4&&x.clear(),x.set(y,T),T;function k(L,N,K){const se=L[N],q=L[N]={};let C,X;for(const I of se)C=I.iri,X=K>=C.length?"":C[K],X in q?q[X].push(I):q[X]=[I];for(const I in q)I!==""&&k(q,I,K+1)}function b(L,N,K){N.hasOwnProperty(K)||(N[K]=L)}},j.getContextValue=(S,y,O)=>{if(y===null)return O==="@context"?void 0:null;if(S.mappings.has(y)){const T=S.mappings.get(y);if(i(O))return T;if(T.hasOwnProperty(O))return T[O]}return O==="@language"&&O in S||O==="@direction"&&O in S?S[O]:O!=="@context"?null:void 0},j.processingMode=(S,y)=>y.toString()>="1.1"?!S.processingMode||S.processingMode>="json-ld-"+y.toString():S.processingMode==="json-ld-1.0",j.isKeyword=S=>{if(!d(S)||S[0]!=="@")return!1;switch(S){case"@base":case"@container":case"@context":case"@default":case"@direction":case"@embed":case"@explicit":case"@graph":case"@id":case"@included":case"@index":case"@json":case"@language":case"@list":case"@nest":case"@none":case"@omitDefault":case"@prefix":case"@preserve":case"@protected":case"@requireAll":case"@reverse":case"@set":case"@type":case"@value":case"@version":case"@vocab":return!0}return!1}},6957:(s,e,t)=>{const{parseLinkHeader:r,buildHeaders:n}=t(9263),{LINK_HEADER_CONTEXT:a}=t(9378),l=t(2207),d=t(3743),{prependBase:i}=t(470),o=/(^|(\r\n))link:/i;s.exports=({secure:c,headers:p={},xhr:v}={headers:{}})=>(p=n(p),new d().wrapLoader(async function f(h){if(h.indexOf("http:")!==0&&h.indexOf("https:")!==0)throw new l('URL could not be dereferenced; only "http" and "https" URLs are supported.',"jsonld.InvalidUrl",{code:"loading document failed",url:h});if(c&&h.indexOf("https")!==0)throw new l(`URL could not be dereferenced; secure mode is enabled and the URL's scheme is not "https".`,"jsonld.InvalidUrl",{code:"loading document failed",url:h});let w;try{w=await function(Q,S,y){const O=new(Q=Q||XMLHttpRequest);return new Promise((T,k)=>{O.onload=()=>T(O),O.onerror=b=>k(b),O.open("GET",S,!0);for(const b in y)O.setRequestHeader(b,y[b]);O.send()})}(v,h,p)}catch(Q){throw new l("URL could not be dereferenced, an error occurred.","jsonld.LoadDocumentError",{code:"loading document failed",url:h,cause:Q})}if(w.status>=400)throw new l("URL could not be dereferenced: "+w.statusText,"jsonld.LoadDocumentError",{code:"loading document failed",url:h,httpStatusCode:w.status});let g={contextUrl:null,documentUrl:h,document:w.response},x=null;const j=w.getResponseHeader("Content-Type");let A;if(o.test(w.getAllResponseHeaders())&&(A=w.getResponseHeader("Link")),A&&j!=="application/ld+json"){const Q=r(A),S=Q[a];if(Array.isArray(S))throw new l("URL could not be dereferenced, it has more than one associated HTTP Link Header.","jsonld.InvalidUrl",{code:"multiple context link headers",url:h});S&&(g.contextUrl=S.target),x=Q.alternate,x&&x.type=="application/ld+json"&&!(j||"").match(/^application\/(\w*\+)?json$/)&&(g=await f(i(h,x.target)))}return g}))},2246:(s,e,t)=>{const r=t(2207),{isArray:n}=t(7382),{asArray:a}=t(9263),l={};function d({event:o,handlers:c}){let p=!0;for(let v=0;p&&v{p=!0}});else{if(typeof f!="object")throw new r("Invalid event handler.","jsonld.InvalidEventHandler",{event:o});o.code in f?f[o.code]({event:o,next:()=>{p=!0}}):p=!0}}return p}s.exports=l,l.defaultEventHandler=null,l.setupEventHandler=({options:o={}})=>{const c=[].concat(o.safe?l.safeEventHandler:[],o.eventHandler?a(o.eventHandler):[],l.defaultEventHandler?l.defaultEventHandler:[]);return c.length===0?null:c},l.handleEvent=({event:o,options:c})=>{d({event:o,handlers:c.eventHandler})};const i=new Set(["empty object","free-floating scalar","invalid @language value","invalid property","null @id value","null @value value","object with only @id","object with only @language","object with only @list","object with only @value","relative @id reference","relative @type reference","relative @vocab reference","reserved @id value","reserved @reverse value","reserved term","blank node predicate","relative graph reference","relative object reference","relative predicate reference","relative subject reference","rdfDirection not set"]);l.safeEventHandler=function({event:o,next:c}){if(o.level==="warning"&&i.has(o.code))throw new r("Safe mode validation error.","jsonld.ValidationError",{event:o});c()},l.logEventHandler=function({event:o,next:c}){console.log(`EVENT: ${o.message}`,{event:o}),c()},l.logWarningEventHandler=function({event:o,next:c}){o.level==="warning"&&console.warn(`WARNING: ${o.message}`,{event:o}),c()},l.unhandledEventHandler=function({event:o}){throw new r("No handler for event.","jsonld.UnhandledEvent",{event:o})},l.setDefaultEventHandler=function({eventHandler:o}={}){l.defaultEventHandler=o?a(o):null}},4019:(s,e,t)=>{const r=t(2207),{isArray:n,isObject:a,isEmptyObject:l,isString:d,isUndefined:i}=t(7382),{isList:o,isValue:c,isGraph:p,isSubject:v}=t(3978),{expandIri:f,getContextValue:h,isKeyword:w,process:g,processingMode:x}=t(1972),{isAbsolute:j}=t(470),{REGEX_BCP47:A,REGEX_KEYWORD:Q,addValue:S,asArray:y,getValues:O,validateTypeValue:T}=t(9263),{handleEvent:k}=t(2246),b={};function L({value:C,count:X,options:I}){if(X===0||"@value"in C||"@list"in C||X===1&&"@id"in C){if(I.eventHandler){let B,U;X===0?(B="empty object",U="Dropping empty object."):"@value"in C?(B="object with only @value",U="Dropping object with only @value."):"@list"in C?(B="object with only @list",U="Dropping object with only @list."):X===1&&"@id"in C&&(B="object with only @id",U="Dropping object with only @id."),k({event:{type:["JsonLdEvent"],code:B,level:"warning",message:U,details:{value:C}},options:I})}return null}return C}async function N({activeCtx:C,activeProperty:X,expandedActiveProperty:I,element:B,expandedParent:U,options:P={},insideList:J,typeKey:D,typeScopedContext:V}){const te=Object.keys(B).sort(),le=[];let ee;const M=B[D]&&f(C,n(B[D])?B[D][0]:B[D],{vocab:!0},{...P,typeExpansion:!0})==="@json";for(const E of te){let W,z=B[E];if(E==="@context")continue;const Z=f(C,E,{vocab:!0},P);if(Z===null||!j(Z)&&!w(Z)){P.eventHandler&&k({event:{type:["JsonLdEvent"],code:"invalid property",level:"warning",message:"Dropping property that did not expand into an absolute IRI or keyword.",details:{property:E,expandedProperty:Z}},options:P});continue}if(w(Z)){if(I==="@reverse")throw new r("Invalid JSON-LD syntax; a keyword cannot be used as a @reverse property.","jsonld.SyntaxError",{code:"invalid reverse property map",value:z});if(Z in U&&Z!=="@included"&&Z!=="@type")throw new r("Invalid JSON-LD syntax; colliding keywords detected.","jsonld.SyntaxError",{code:"colliding keywords",keyword:Z})}if(Z==="@id"){if(!d(z)){if(!P.isFrame)throw new r('Invalid JSON-LD syntax; "@id" value must a string.',"jsonld.SyntaxError",{code:"invalid @id value",value:z});if(a(z)){if(!l(z))throw new r('Invalid JSON-LD syntax; "@id" value an empty object or array of strings, if framing',"jsonld.SyntaxError",{code:"invalid @id value",value:z})}else{if(!n(z))throw new r('Invalid JSON-LD syntax; "@id" value an empty object or array of strings, if framing',"jsonld.SyntaxError",{code:"invalid @id value",value:z});if(!z.every(ie=>d(ie)))throw new r('Invalid JSON-LD syntax; "@id" value an empty object or array of strings, if framing',"jsonld.SyntaxError",{code:"invalid @id value",value:z})}}S(U,"@id",y(z).map(ie=>{if(d(ie)){const oe=f(C,ie,{base:!0},P);return P.eventHandler&&(oe===null?k(ie===null?{event:{type:["JsonLdEvent"],code:"null @id value",level:"warning",message:"Null @id found.",details:{id:ie}},options:P}:{event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:"Reserved @id found.",details:{id:ie}},options:P}):j(oe)||k({event:{type:["JsonLdEvent"],code:"relative @id reference",level:"warning",message:"Relative @id reference found.",details:{id:ie,expandedId:oe}},options:P})),oe}return ie}),{propertyIsArray:P.isFrame});continue}if(Z==="@type"){a(z)&&(z=Object.fromEntries(Object.entries(z).map(([ie,oe])=>[f(V,ie,{vocab:!0}),y(oe).map(u=>f(V,u,{base:!0,vocab:!0},{...P,typeExpansion:!0}))]))),T(z,P.isFrame),S(U,"@type",y(z).map(ie=>{if(d(ie)){const oe=f(V,ie,{base:!0,vocab:!0},{...P,typeExpansion:!0});return oe==="@json"||j(oe)||P.eventHandler&&k({event:{type:["JsonLdEvent"],code:"relative @type reference",level:"warning",message:"Relative @type reference found.",details:{type:ie}},options:P}),oe}return ie}),{propertyIsArray:!!P.isFrame});continue}if(Z==="@included"&&x(C,1.1)){const ie=y(await b.expand({activeCtx:C,activeProperty:X,element:z,options:P}));if(!ie.every(oe=>v(oe)))throw new r("Invalid JSON-LD syntax; values of @included must expand to node objects.","jsonld.SyntaxError",{code:"invalid @included value",value:z});S(U,"@included",ie,{propertyIsArray:!0});continue}if(Z==="@graph"&&!a(z)&&!n(z))throw new r('Invalid JSON-LD syntax; "@graph" value must not be an object or an array.',"jsonld.SyntaxError",{code:"invalid @graph value",value:z});if(Z==="@value"){ee=z,M&&x(C,1.1)?U["@value"]=z:S(U,"@value",z,{propertyIsArray:P.isFrame});continue}if(Z==="@language"){if(z===null)continue;if(!d(z)&&!P.isFrame)throw new r('Invalid JSON-LD syntax; "@language" value must be a string.',"jsonld.SyntaxError",{code:"invalid language-tagged string",value:z});z=y(z).map(ie=>d(ie)?ie.toLowerCase():ie);for(const ie of z)d(ie)&&!ie.match(A)&&P.eventHandler&&k({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:ie}},options:P});S(U,"@language",z,{propertyIsArray:P.isFrame});continue}if(Z==="@direction"){if(!d(z)&&!P.isFrame)throw new r('Invalid JSON-LD syntax; "@direction" value must be a string.',"jsonld.SyntaxError",{code:"invalid base direction",value:z});z=y(z);for(const ie of z)if(d(ie)&&ie!=="ltr"&&ie!=="rtl")throw new r('Invalid JSON-LD syntax; "@direction" must be "ltr" or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",value:z});S(U,"@direction",z,{propertyIsArray:P.isFrame});continue}if(Z==="@index"){if(!d(z))throw new r('Invalid JSON-LD syntax; "@index" value must be a string.',"jsonld.SyntaxError",{code:"invalid @index value",value:z});S(U,"@index",z);continue}if(Z==="@reverse"){if(!a(z))throw new r('Invalid JSON-LD syntax; "@reverse" value must be an object.',"jsonld.SyntaxError",{code:"invalid @reverse value",value:z});if(W=await b.expand({activeCtx:C,activeProperty:"@reverse",element:z,options:P}),"@reverse"in W)for(const oe in W["@reverse"])S(U,oe,W["@reverse"][oe],{propertyIsArray:!0});let ie=U["@reverse"]||null;for(const oe in W){if(oe==="@reverse")continue;ie===null&&(ie=U["@reverse"]={}),S(ie,oe,[],{propertyIsArray:!0});const u=W[oe];for(let m=0;mie==="@id"||ie==="@index")){if(W=y(W),P.isFrame||(W=W.filter(ie=>L({value:ie,count:Object.keys(ie).length,options:P})!==null)),W.length===0)continue;W=W.map(ie=>({"@graph":y(ie)}))}if(R.mappings.has(E)&&R.mappings.get(E).reverse){const ie=U["@reverse"]=U["@reverse"]||{};W=y(W);for(let oe=0;oef(C,Z,{vocab:!0},P)==="@value"))throw new r("Invalid JSON-LD syntax; nested value must be a node object.","jsonld.SyntaxError",{code:"invalid @nest value",value:z});await N({activeCtx:C,activeProperty:X,expandedActiveProperty:I,element:z,expandedParent:U,options:P,insideList:J,typeScopedContext:V,typeKey:D})}}}function K({activeCtx:C,activeProperty:X,value:I,options:B}){if(I==null)return null;const U=f(C,X,{vocab:!0},B);if(U==="@id")return f(C,I,{base:!0},B);if(U==="@type")return f(C,I,{vocab:!0,base:!0},{...B,typeExpansion:!0});const P=h(C,X,"@type");if((P==="@id"||U==="@graph")&&d(I)){const D=f(C,I,{base:!0},B);return D===null&&I.match(Q)&&B.eventHandler&&k({event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:"Reserved @id found.",details:{id:X}},options:B}),{"@id":D}}if(P==="@vocab"&&d(I))return{"@id":f(C,I,{vocab:!0,base:!0},B)};if(w(U))return I;const J={};if(P&&!["@id","@vocab","@none"].includes(P))J["@type"]=P;else if(d(I)){const D=h(C,X,"@language");D!==null&&(J["@language"]=D);const V=h(C,X,"@direction");V!==null&&(J["@direction"]=V)}return["boolean","number","string"].includes(typeof I)||(I=I.toString()),J["@value"]=I,J}function se(C,X,I,B){const U=[],P=Object.keys(X).sort();for(const J of P){const D=f(C,J,{vocab:!0},B);let V=X[J];n(V)||(V=[V]);for(const te of V){if(te===null)continue;if(!d(te))throw new r("Invalid JSON-LD syntax; language map values must be strings.","jsonld.SyntaxError",{code:"invalid language map value",languageMap:X});const le={"@value":te};D!=="@none"&&(J.match(A)||B.eventHandler&&k({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:J}},options:B}),le["@language"]=J.toLowerCase()),I&&(le["@direction"]=I),U.push(le)}}return U}async function q({activeCtx:C,options:X,activeProperty:I,value:B,asGraph:U,indexKey:P,propertyIndex:J}){const D=[],V=Object.keys(B).sort(),te=P==="@type";for(let le of V){if(te){const E=h(C,le,"@context");i(E)||(C=await g({activeCtx:C,localCtx:E,propagate:!1,options:X}))}let ee,M=B[le];n(M)||(M=[M]),M=await b.expand({activeCtx:C,activeProperty:I,element:M,options:X,insideList:!1,insideIndex:!0}),ee=J?le==="@none"?"@none":K({activeCtx:C,activeProperty:P,value:le,options:X}):f(C,le,{vocab:!0},X),P==="@id"?le=f(C,le,{base:!0},X):te&&(le=ee);for(let E of M){if(U&&!p(E)&&(E={"@graph":[E]}),P==="@type")ee==="@none"||(E["@type"]?E["@type"]=[le].concat(E["@type"]):E["@type"]=[le]);else{if(c(E)&&!["@language","@type","@index"].includes(P))throw new r(`Invalid JSON-LD syntax; Attempt to add illegal key to value object: "${P}".`,"jsonld.SyntaxError",{code:"invalid value object",value:E});J?ee!=="@none"&&S(E,J,ee,{propertyIsArray:!0,prependValue:!0}):ee==="@none"||P in E||(E[P]=le)}D.push(E)}}return D}s.exports=b,b.expand=async({activeCtx:C,activeProperty:X=null,element:I,options:B={},insideList:U=!1,insideIndex:P=!1,typeScopedContext:J=null})=>{if(I==null)return null;if(X==="@default"&&(B=Object.assign({},B,{isFrame:!1})),!n(I)&&!a(I))return U||X!==null&&f(C,X,{vocab:!0},B)!=="@graph"?K({activeCtx:C,activeProperty:X,value:I,options:B}):(B.eventHandler&&k({event:{type:["JsonLdEvent"],code:"free-floating scalar",level:"warning",message:"Dropping free-floating scalar not in a list.",details:{value:I}},options:B}),null);if(n(I)){let W=[];const z=h(C,X,"@container")||[];U=U||z.includes("@list");for(let Z=0;Z1?z.slice().sort():z:[z];for(const R of Z){const ne=h(J,R,"@context");i(ne)||(C=await g({activeCtx:C,localCtx:ne,options:B,propagate:!1}))}}let M={};await N({activeCtx:C,activeProperty:X,expandedActiveProperty:D,element:I,expandedParent:M,options:B,insideList:U,typeKey:ee,typeScopedContext:J}),te=Object.keys(M);let E=te.length;if("@value"in M){if("@type"in M&&("@language"in M||"@direction"in M))throw new r('Invalid JSON-LD syntax; an element containing "@value" may not contain both "@type" and either "@language" or "@direction".',"jsonld.SyntaxError",{code:"invalid value object",element:M});let W=E-1;if("@type"in M&&(W-=1),"@index"in M&&(W-=1),"@language"in M&&(W-=1),"@direction"in M&&(W-=1),W!==0)throw new r('Invalid JSON-LD syntax; an element containing "@value" may only have an "@index" property and either "@type" or either or both "@language" or "@direction".',"jsonld.SyntaxError",{code:"invalid value object",element:M});const z=M["@value"]===null?[]:y(M["@value"]),Z=O(M,"@type");if(!(x(C,1.1)&&Z.includes("@json")&&Z.length===1))if(z.length===0)B.eventHandler&&k({event:{type:["JsonLdEvent"],code:"null @value value",level:"warning",message:"Dropping null @value value.",details:{value:M}},options:B}),M=null;else{if(!z.every(R=>d(R)||l(R))&&"@language"in M)throw new r("Invalid JSON-LD syntax; only strings may be language-tagged.","jsonld.SyntaxError",{code:"invalid language-tagged value",element:M});if(!Z.every(R=>j(R)&&!(d(R)&&R.indexOf("_:")===0)||l(R)))throw new r('Invalid JSON-LD syntax; an element containing "@value" and "@type" must have an absolute IRI for the value of "@type".',"jsonld.SyntaxError",{code:"invalid typed value",element:M})}}else if("@type"in M&&!n(M["@type"]))M["@type"]=[M["@type"]];else if("@set"in M||"@list"in M){if(E>1&&(E!==2||!("@index"in M)))throw new r('Invalid JSON-LD syntax; if an element has the property "@set" or "@list", then it can have at most one other property that is "@index".',"jsonld.SyntaxError",{code:"invalid set or list object",element:M});"@set"in M&&(M=M["@set"],te=Object.keys(M),E=te.length)}else E===1&&"@language"in M&&(B.eventHandler&&k({event:{type:["JsonLdEvent"],code:"object with only @language",level:"warning",message:"Dropping object with only @language.",details:{value:M}},options:B}),M=null);return!a(M)||B.keepFreeFloatingNodes||U||X!==null&&D!=="@graph"&&!(h(C,X,"@container")||[]).includes("@graph")||(M=L({value:M,count:E,options:B})),M}},5229:(s,e,t)=>{const{isSubjectReference:r}=t(3978),{createMergedNodeMap:n}=t(9233),a={};s.exports=a,a.flatten=l=>{const d=n(l),i=[],o=Object.keys(d).sort();for(let c=0;c{const{isKeyword:r}=t(1972),n=t(3978),a=t(7382),l=t(9263),d=t(470),i=t(2207),{createNodeMap:o,mergeNodeMapGraphs:c}=t(9233),p={};function v(y){const O={};for(const T in y)y[T]!==void 0&&(O["@"+T]=[y[T]]);return[O]}function f(y,O,T){for(let k=T.length-1;k>=0;--k){const b=T[k];if(b.graph===O&&b.subject["@id"]===y["@id"])return!0}return!1}function h(y,O,T){const k="@"+T;let b=k in y?y[k][0]:O[T];if(T==="embed"){if(b===!0)b="@once";else if(b===!1)b="@never";else if(b!=="@always"&&b!=="@never"&&b!=="@link"&&b!=="@first"&&b!=="@last"&&b!=="@once")throw new i("Invalid JSON-LD syntax; invalid value of @embed.","jsonld.SyntaxError",{code:"invalid @embed value",frame:y})}return b}function w(y){if(!a.isArray(y)||y.length!==1||!a.isObject(y[0]))throw new i("Invalid JSON-LD syntax; a JSON-LD frame must be a single object.","jsonld.SyntaxError",{frame:y});if("@id"in y[0]){for(const O of l.asArray(y[0]["@id"]))if(!a.isObject(O)&&!d.isAbsolute(O)||a.isString(O)&&O.indexOf("_:")===0)throw new i("Invalid JSON-LD syntax; invalid @id in frame.","jsonld.SyntaxError",{code:"invalid frame",frame:y})}if("@type"in y[0]){for(const O of l.asArray(y[0]["@type"]))if(!a.isObject(O)&&!d.isAbsolute(O)&&O!=="@json"||a.isString(O)&&O.indexOf("_:")===0)throw new i("Invalid JSON-LD syntax; invalid @type in frame.","jsonld.SyntaxError",{code:"invalid frame",frame:y})}}function g(y,O,T,k){let b=!0,L=!1;for(const N in T){let K=!1;const se=l.getValues(O,N),q=l.getValues(T,N).length===0;if(N==="@id"){if(a.isEmptyObject(T["@id"][0]||{})?K=!0:T["@id"].length>=0&&(K=T["@id"].includes(se[0])),!k.requireAll)return K}else if(N==="@type"){if(b=!1,q){if(se.length>0)return!1;K=!0}else if(T["@type"].length===1&&a.isEmptyObject(T["@type"][0]))K=se.length>0;else for(const C of T["@type"])K=!(!a.isObject(C)||!("@default"in C))||K||se.some(X=>X===C);if(!k.requireAll)return K}else{if(r(N))continue;{const C=l.getValues(T,N)[0];let X=!1;if(C&&(w([C]),X="@default"in C),b=!1,se.length===0&&X)continue;if(se.length>0&&q)return!1;if(C===void 0){if(se.length>0)return!1;K=!0}else if(n.isList(C)){const I=C["@list"][0];if(n.isList(se[0])){const B=se[0]["@list"];n.isValue(I)?K=B.some(U=>S(I,U)):(n.isSubject(I)||n.isSubjectReference(I))&&(K=B.some(U=>Q(y,I,U,k)))}}else K=n.isValue(C)?se.some(I=>S(C,I)):n.isSubjectReference(C)?se.some(I=>Q(y,C,I,k)):!!a.isObject(C)&&se.length>0}}if(!K&&k.requireAll)return!1;L=L||K}return b||L}function x(y,O){const T=y.uniqueEmbeds[y.graph],k=T[O],b=k.parent,L=k.property,N={"@id":O};if(a.isArray(b)){for(let se=0;se{const q=Object.keys(T);for(const C of q)C in T&&a.isObject(T[C].parent)&&T[C].parent["@id"]===se&&(delete T[C],K(C))};K(O)}function j(y,O){if(a.isArray(y))return y.map(T=>j(T,O));if(a.isObject(y)){if("@preserve"in y)return y["@preserve"][0];if(n.isValue(y))return y;if(n.isList(y))return y["@list"]=j(y["@list"],O),y;if("@id"in y){const T=y["@id"];if(O.link.hasOwnProperty(T)){const k=O.link[T].indexOf(y);if(k!==-1)return O.link[T][k];O.link[T].push(y)}else O.link[T]=[y]}for(const T in y)T==="@id"&&O.bnodesToClear.includes(y[T])?delete y["@id"]:y[T]=j(y[T],O)}return y}function A(y,O,T){a.isObject(y)?l.addValue(y,O,T,{propertyIsArray:!0}):y.push(T)}function Q(y,O,T,k){if(!("@id"in T))return!1;const b=y.subjects[T["@id"]];return b&&g(y,b,O,k)}function S(y,O){const T=O["@value"],k=O["@type"],b=O["@language"],L=y["@value"]?a.isArray(y["@value"])?y["@value"]:[y["@value"]]:[],N=y["@type"]?a.isArray(y["@type"])?y["@type"]:[y["@type"]]:[],K=y["@language"]?a.isArray(y["@language"])?y["@language"]:[y["@language"]]:[];return L.length===0&&N.length===0&&K.length===0||!(!L.includes(T)&&!a.isEmptyObject(L[0]))&&!!(!k&&N.length===0||N.includes(k)||k&&a.isEmptyObject(N[0]))&&!!(!b&&K.length===0||K.includes(b)||b&&a.isEmptyObject(K[0]))}s.exports=p,p.frameMergedOrDefault=(y,O,T)=>{const k={options:T,embedded:!1,graph:"@default",graphMap:{"@default":{}},subjectStack:[],link:{},bnodeMap:{}},b=new l.IdentifierIssuer("_:b");o(y,k.graphMap,"@default",b),T.merged&&(k.graphMap["@merged"]=c(k.graphMap),k.graph="@merged"),k.subjects=k.graphMap[k.graph];const L=[];return p.frame(k,Object.keys(k.subjects).sort(),O,L),T.pruneBlankNodeIdentifiers&&(T.bnodesToClear=Object.keys(k.bnodeMap).filter(N=>k.bnodeMap[N].length===1)),T.link={},j(L,T)},p.frame=(y,O,T,k,b=null)=>{w(T),T=T[0];const L=y.options,N={embed:h(T,L,"embed"),explicit:h(T,L,"explicit"),requireAll:h(T,L,"requireAll")};y.link.hasOwnProperty(y.graph)||(y.link[y.graph]={});const K=y.link[y.graph],se=function(C,X,I,B){const U={};for(const P of X){const J=C.graphMap[C.graph][P];g(C,J,I,B)&&(U[P]=J)}return U}(y,O,T,N),q=Object.keys(se).sort();for(const C of q){const X=se[C];if(b===null?y.uniqueEmbeds={[y.graph]:{}}:y.uniqueEmbeds[y.graph]=y.uniqueEmbeds[y.graph]||{},N.embed==="@link"&&C in K){A(k,b,K[C]);continue}const I={"@id":C};if(C.indexOf("_:")===0&&l.addValue(y.bnodeMap,C,I,{propertyIsArray:!0}),K[C]=I,(N.embed==="@first"||N.embed==="@last")&&y.is11)throw new i("Invalid JSON-LD syntax; invalid value of @embed.","jsonld.SyntaxError",{code:"invalid @embed value",frame:T});if(y.embedded||!y.uniqueEmbeds[y.graph].hasOwnProperty(C))if(!y.embedded||N.embed!=="@never"&&!f(X,y.graph,y.subjectStack))if(!y.embedded||N.embed!="@first"&&N.embed!="@once"||!y.uniqueEmbeds[y.graph].hasOwnProperty(C)){if(N.embed==="@last"&&C in y.uniqueEmbeds[y.graph]&&x(y,C),y.uniqueEmbeds[y.graph][C]={parent:k,property:b},y.subjectStack.push({subject:X,graph:y.graph}),C in y.graphMap){let B=!1,U=null;"@graph"in T?(U=T["@graph"][0],B=!(C==="@merged"||C==="@default"),a.isObject(U)||(U={})):(B=y.graph!=="@merged",U={}),B&&p.frame({...y,graph:C,embedded:!1},Object.keys(y.graphMap[C]).sort(),[U],I,"@graph")}"@included"in T&&p.frame({...y,embedded:!1},O,T["@included"],I,"@included");for(const B of Object.keys(X).sort())if(r(B)){if(I[B]=l.clone(X[B]),B==="@type")for(const U of X["@type"])U.indexOf("_:")===0&&l.addValue(y.bnodeMap,U,I,{propertyIsArray:!0})}else if(!N.explicit||B in T)for(const U of X[B]){const P=B in T?T[B]:v(N);if(n.isList(U)){const J=T[B]&&T[B][0]&&T[B][0]["@list"]?T[B][0]["@list"]:v(N),D={"@list":[]};A(I,B,D);const V=U["@list"];for(const te of V)n.isSubjectReference(te)?p.frame({...y,embedded:!0},[te["@id"]],J,D,"@list"):A(D,"@list",l.clone(te))}else n.isSubjectReference(U)?p.frame({...y,embedded:!0},[U["@id"]],P,I,B):S(P[0],U)&&A(I,B,l.clone(U))}for(const B of Object.keys(T).sort()){if(B==="@type"){if(!a.isObject(T[B][0])||!("@default"in T[B][0]))continue}else if(r(B))continue;const U=T[B][0]||{};if(!h(U,L,"omitDefault")&&!(B in I)){let P="@null";"@default"in U&&(P=l.clone(U["@default"])),a.isArray(P)||(P=[P]),I[B]=[{"@preserve":P}]}}for(const B of Object.keys(T["@reverse"]||{}).sort()){const U=T["@reverse"][B];for(const P of Object.keys(y.subjects))l.getValues(y.subjects[P],B).some(J=>J["@id"]===C)&&(I["@reverse"]=I["@reverse"]||{},l.addValue(I["@reverse"],B,[],{propertyIsArray:!0}),p.frame({...y,embedded:!0},[P],U,I["@reverse"][B],b))}A(k,b,I),y.subjectStack.pop()}else A(k,b,I);else A(k,b,I)}},p.cleanupNull=(y,O)=>{if(a.isArray(y))return y.map(T=>p.cleanupNull(T,O)).filter(T=>T);if(y==="@null")return null;if(a.isObject(y)){if("@id"in y){const T=y["@id"];if(O.link.hasOwnProperty(T)){const k=O.link[T].indexOf(y);if(k!==-1)return O.link[T][k];O.link[T].push(y)}else O.link[T]=[y]}for(const T in y)y[T]=p.cleanupNull(y[T],O)}return y}},3947:(s,e,t)=>{const r=t(2207),n=t(3978),a=t(7382),{REGEX_BCP47:l,addValue:d}=t(9263),{handleEvent:i}=t(2246),{RDF_LIST:o,RDF_FIRST:c,RDF_REST:p,RDF_NIL:v,RDF_TYPE:f,RDF_JSON_LITERAL:h,XSD_BOOLEAN:w,XSD_DOUBLE:g,XSD_INTEGER:x,XSD_STRING:j}=t(9378),A={};function Q(S,y,O,T){if(S.termType.endsWith("Node"))return{"@id":S.value};const k={"@value":S.value};if(S.language)S.language.match(l)||T.eventHandler&&i({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:S.language}},options:T}),k["@language"]=S.language;else{let b=S.datatype.value;if(b||(b=j),b===h){b="@json";try{k["@value"]=JSON.parse(k["@value"])}catch(L){throw new r("JSON literal could not be parsed.","jsonld.InvalidJsonLiteral",{code:"invalid JSON literal",value:k["@value"],cause:L})}}if(y){if(b===w)k["@value"]==="true"?k["@value"]=!0:k["@value"]==="false"&&(k["@value"]=!1);else if(a.isNumeric(k["@value"]))if(b===x){const L=parseInt(k["@value"],10);L.toFixed(0)===k["@value"]&&(k["@value"]=L)}else b===g&&(k["@value"]=parseFloat(k["@value"]));[w,x,g,j].includes(b)||(k["@type"]=b)}else if(O==="i18n-datatype"&&b.startsWith("https://www.w3.org/ns/i18n#")){const[,L,N]=b.split(/[#_]/);L.length>0&&(k["@language"]=L,L.match(l)||T.eventHandler&&i({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:L}},options:T})),k["@direction"]=N}else b!==j&&(k["@type"]=b)}return k}s.exports=A,A.fromRDF=async(S,y)=>{const{useRdfType:O=!1,useNativeTypes:T=!1,rdfDirection:k=null}=y,b={},L={"@default":b},N={};if(k){if(k==="compound-literal")throw new r("Unsupported rdfDirection value.","jsonld.InvalidRdfDirection",{value:k});if(k!=="i18n-datatype")throw new r("Unknown rdfDirection value.","jsonld.InvalidRdfDirection",{value:k})}for(const q of S){const C=q.graph.termType==="DefaultGraph"?"@default":q.graph.value;C in L||(L[C]={}),C==="@default"||C in b||(b[C]={"@id":C});const X=L[C],I=q.subject.value,B=q.predicate.value,U=q.object;I in X||(X[I]={"@id":I});const P=X[I],J=U.termType.endsWith("Node");if(J&&!(U.value in X)&&(X[U.value]={"@id":U.value}),B===f&&!O&&J){d(P,"@type",U.value,{propertyIsArray:!0});continue}const D=Q(U,T,k,y);if(d(P,B,D,{propertyIsArray:!0}),J)if(U.value===v){const V=X[U.value];"usages"in V||(V.usages=[]),V.usages.push({node:P,property:B,value:D})}else U.value in N?N[U.value]=!1:N[U.value]={node:P,property:B,value:D}}for(const q in L){const C=L[q];if(!(v in C))continue;const X=C[v];if(X.usages){for(let I of X.usages){let B=I.node,U=I.property,P=I.value;const J=[],D=[];let V=Object.keys(B).length;for(;U===p&&a.isObject(N[B["@id"]])&&a.isArray(B[c])&&B[c].length===1&&a.isArray(B[p])&&B[p].length===1&&(V===3||V===4&&a.isArray(B["@type"])&&B["@type"].length===1&&B["@type"][0]===o)&&(J.push(B[c][0]),D.push(B["@id"]),I=N[B["@id"]],B=I.node,U=I.property,P=I.value,V=Object.keys(B).length,n.isBlankNode(B)););delete P["@id"],P["@list"]=J.reverse();for(const te of D)delete C[te]}delete X.usages}}const K=[],se=Object.keys(b).sort();for(const q of se){const C=b[q];if(q in L){const X=C["@graph"]=[],I=L[q],B=Object.keys(I).sort();for(const U of B){const P=I[U];n.isSubjectReference(P)||X.push(P)}}n.isSubjectReference(C)||K.push(C)}return K}},3978:(s,e,t)=>{const r=t(7382),n={};s.exports=n,n.isSubject=a=>!(!r.isObject(a)||"@value"in a||"@set"in a||"@list"in a)&&(Object.keys(a).length>1||!("@id"in a)),n.isSubjectReference=a=>r.isObject(a)&&Object.keys(a).length===1&&"@id"in a,n.isValue=a=>r.isObject(a)&&"@value"in a,n.isList=a=>r.isObject(a)&&"@list"in a,n.isGraph=a=>r.isObject(a)&&"@graph"in a&&Object.keys(a).filter(l=>l!=="@id"&&l!=="@index").length===1,n.isSimpleGraph=a=>n.isGraph(a)&&!("@id"in a),n.isBlankNode=a=>{if(r.isObject(a)){if("@id"in a){const l=a["@id"];return!r.isString(l)||l.indexOf("_:")===0}return Object.keys(a).length===0||!("@value"in a||"@set"in a||"@list"in a)}return!1}},4841:(s,e,t)=>{const r=t(989),n=t(701),a=t(9263),l=t(7034),d=a.IdentifierIssuer,i=t(2207),o=t(9749),c=t(8229),{expand:p}=t(4019),{flatten:v}=t(5229),{fromRDF:f}=t(3947),{toRDF:h}=t(9180),{frameMergedOrDefault:w,cleanupNull:g}=t(7946),{isArray:x,isObject:j,isString:A}=t(7382),{isSubjectReference:Q}=t(3978),{expandIri:S,getInitialContext:y,process:O,processingMode:T}=t(1972),{compact:k,compactIri:b}=t(1058),{createNodeMap:L,createMergedNodeMap:N,mergeNodeMaps:K}=t(9233),{logEventHandler:se,logWarningEventHandler:q,safeEventHandler:C,setDefaultEventHandler:X,setupEventHandler:I,strictEventHandler:B,unhandledEventHandler:U}=t(2246),P=function(D){const V={},te=new o({max:100});function le(ee,{documentLoader:M=D.documentLoader,...E}){if(ee&&"compactionMap"in ee)throw new i('"compactionMap" not supported.',"jsonld.OptionsError");if(ee&&"expansionMap"in ee)throw new i('"expansionMap" not supported.',"jsonld.OptionsError");return Object.assign({},{documentLoader:M},E,ee,{eventHandler:I({options:ee})})}return D.compact=async function(ee,M,E){if(arguments.length<2)throw new TypeError("Could not compact, too few arguments.");if(M===null)throw new i("The compaction context must not be null.","jsonld.CompactError",{code:"invalid local context"});if(ee===null)return null;let W;(E=le(E,{base:A(ee)?ee:"",compactArrays:!0,compactToRelative:!0,graph:!1,skipExpansion:!1,link:!1,issuer:new d("_:b"),contextResolver:new l({sharedCache:te})})).link&&(E.skipExpansion=!0),E.compactToRelative||delete E.base,W=E.skipExpansion?ee:await D.expand(ee,E);const z=await D.processContext(y(E),M,E);let Z=await k({activeCtx:z,element:W,options:E});E.compactArrays&&!E.graph&&x(Z)?Z.length===1?Z=Z[0]:Z.length===0&&(Z={}):E.graph&&j(Z)&&(Z=[Z]),j(M)&&"@context"in M&&(M=M["@context"]),M=a.clone(M),x(M)||(M=[M]);const R=M;M=[];for(let Y=0;Y0)&&M.push(R[Y]);const ne=M.length>0;if(M.length===1&&(M=M[0]),x(Z)){const Y=b({activeCtx:z,iri:"@graph",relativeTo:{vocab:!0}}),ie=Z;Z={},ne&&(Z["@context"]=M),Z[Y]=ie}else if(j(Z)&&ne){const Y=Z;Z={"@context":M};for(const ie in Y)Z[ie]=Y[ie]}return Z},D.expand=async function(ee,M){if(arguments.length<1)throw new TypeError("Could not expand, too few arguments.");const E={},W=[];if("expandContext"in(M=le(M,{keepFreeFloatingNodes:!1,contextResolver:new l({sharedCache:te})}))){const ne=a.clone(M.expandContext);j(ne)&&"@context"in ne?E.expandContext=ne:E.expandContext={"@context":ne},W.push(E.expandContext)}let z;if(A(ee)){const ne=await D.get(ee,M);z=ne.documentUrl,E.input=ne.document,ne.contextUrl&&(E.remoteContext={"@context":ne.contextUrl},W.push(E.remoteContext))}else E.input=a.clone(ee);"base"in M||(M.base=z||"");let Z=y(M);for(const ne of W)Z=await O({activeCtx:Z,localCtx:ne,options:M});let R=await p({activeCtx:Z,element:E.input,options:M});return j(R)&&"@graph"in R&&Object.keys(R).length===1?R=R["@graph"]:R===null&&(R=[]),x(R)||(R=[R]),R},D.flatten=async function(ee,M,E){if(arguments.length<1)return new TypeError("Could not flatten, too few arguments.");M=typeof M=="function"?null:M||null,E=le(E,{base:A(ee)?ee:"",contextResolver:new l({sharedCache:te})});const W=await D.expand(ee,E),z=v(W);return M===null?z:(E.graph=!0,E.skipExpansion=!0,await D.compact(z,M,E))},D.frame=async function(ee,M,E){if(arguments.length<2)throw new TypeError("Could not frame, too few arguments.");if(E=le(E,{base:A(ee)?ee:"",embed:"@once",explicit:!1,requireAll:!1,omitDefault:!1,bnodesToClear:[],contextResolver:new l({sharedCache:te})}),A(M)){const u=await D.get(M,E);if(M=u.document,u.contextUrl){let m=M["@context"];m?x(m)?m.push(u.contextUrl):m=[m,u.contextUrl]:m=u.contextUrl,M["@context"]=m}}const W=M&&M["@context"]||{},z=await D.processContext(y(E),W,E);E.hasOwnProperty("omitGraph")||(E.omitGraph=T(z,1.1)),E.hasOwnProperty("pruneBlankNodeIdentifiers")||(E.pruneBlankNodeIdentifiers=T(z,1.1));const Z=await D.expand(ee,E),R={...E};R.isFrame=!0,R.keepFreeFloatingNodes=!0;const ne=await D.expand(M,R),Y=Object.keys(M).map(u=>S(z,u,{vocab:!0}));R.merged=!Y.includes("@graph"),R.is11=T(z,1.1);const ie=w(Z,ne,R);R.graph=!E.omitGraph,R.skipExpansion=!0,R.link={},R.framing=!0;let oe=await D.compact(ie,W,R);return R.link={},oe=g(oe,R),oe},D.link=async function(ee,M,E){const W={};return M&&(W["@context"]=M),W["@embed"]="@link",D.frame(ee,W,E)},D.normalize=D.canonize=async function(ee,M){if(arguments.length<1)throw new TypeError("Could not canonize, too few arguments.");if("inputFormat"in(M=le(M,{base:A(ee)?ee:null,algorithm:"URDNA2015",skipExpansion:!1,safe:!0,contextResolver:new l({sharedCache:te})}))){if(M.inputFormat!=="application/n-quads"&&M.inputFormat!=="application/nquads")throw new i("Unknown canonicalization input format.","jsonld.CanonizeError");const z=c.parse(ee);return r.canonize(z,M)}const E={...M};delete E.format,E.produceGeneralizedRdf=!1;const W=await D.toRDF(ee,E);return r.canonize(W,M)},D.fromRDF=async function(ee,M){if(arguments.length<1)throw new TypeError("Could not convert from RDF, too few arguments.");M=le(M,{format:A(ee)?"application/n-quads":void 0});const{format:E}=M;let{rdfParser:W}=M;if(E){if(W=W||V[E],!W)throw new i("Unknown input format.","jsonld.UnknownFormat",{format:E})}else W=()=>ee;const z=await W(ee);return f(z,M)},D.toRDF=async function(ee,M){if(arguments.length<1)throw new TypeError("Could not convert to RDF, too few arguments.");let E;E=(M=le(M,{base:A(ee)?ee:"",skipExpansion:!1,contextResolver:new l({sharedCache:te})})).skipExpansion?ee:await D.expand(ee,M);const W=h(E,M);if(M.format){if(M.format==="application/n-quads"||M.format==="application/nquads")return c.serialize(W);throw new i("Unknown output format.","jsonld.UnknownFormat",{format:M.format})}return W},D.createNodeMap=async function(ee,M){if(arguments.length<1)throw new TypeError("Could not create node map, too few arguments.");M=le(M,{base:A(ee)?ee:"",contextResolver:new l({sharedCache:te})});const E=await D.expand(ee,M);return N(E,M)},D.merge=async function(ee,M,E){if(arguments.length<1)throw new TypeError("Could not merge, too few arguments.");if(!x(ee))throw new TypeError('Could not merge, "docs" must be an array.');M=typeof M=="function"?null:M||null,E=le(E,{contextResolver:new l({sharedCache:te})});const W=await Promise.all(ee.map(oe=>{const u={...E};return D.expand(oe,u)}));let z=!0;"mergeNodes"in E&&(z=E.mergeNodes);const Z=E.issuer||new d("_:b"),R={"@default":{}};for(let oe=0;oeD._documentLoader,set:ee=>D._documentLoader=ee}),D.documentLoader=async ee=>{throw new i("Could not retrieve a JSON-LD document from the URL. URL dereferencing not implemented.","jsonld.LoadDocumentError",{code:"loading document failed",url:ee})},D.get=async function(ee,M){let E;E=typeof M.documentLoader=="function"?M.documentLoader:D.documentLoader;const W=await E(ee);try{if(!W.document)throw new i("No remote document found at the given URL.","jsonld.NullRemoteDocument");A(W.document)&&(W.document=JSON.parse(W.document))}catch(z){throw new i("Could not retrieve a JSON-LD document from the URL.","jsonld.LoadDocumentError",{code:"loading document failed",cause:z,remoteDoc:W})}return W},D.processContext=async function(ee,M,E){return E=le(E,{base:"",contextResolver:new l({sharedCache:te})}),M===null?y(E):(M=a.clone(M),j(M)&&"@context"in M||(M={"@context":M}),O({activeCtx:ee,localCtx:M,options:E}))},D.getContextValue=t(1972).getContextValue,D.documentLoaders={},D.useDocumentLoader=function(ee){if(!(ee in D.documentLoaders))throw new i('Unknown document loader type: "'+ee+'"',"jsonld.UnknownDocumentLoader",{type:ee});D.documentLoader=D.documentLoaders[ee].apply(D,Array.prototype.slice.call(arguments,1))},D.registerRDFParser=function(ee,M){V[ee]=M},D.unregisterRDFParser=function(ee){delete V[ee]},D.registerRDFParser("application/n-quads",c.parse),D.registerRDFParser("application/nquads",c.parse),D.url=t(470),D.logEventHandler=se,D.logWarningEventHandler=q,D.safeEventHandler=C,D.setDefaultEventHandler=X,D.strictEventHandler=B,D.unhandledEventHandler=U,D.util=a,Object.assign(D,a),D.promises=D,D.RequestQueue=t(3743),D.JsonLdProcessor=t(5445)(D),n.setupGlobals(D),n.setupDocumentLoaders(D),D},J=function(){return P(function(){return J()})};P(J),s.exports=J},9233:(s,e,t)=>{const{isKeyword:r}=t(1972),n=t(3978),a=t(7382),l=t(9263),d=t(2207),i={};s.exports=i,i.createMergedNodeMap=(o,c)=>{const p=(c=c||{}).issuer||new l.IdentifierIssuer("_:b"),v={"@default":{}};return i.createNodeMap(o,v,"@default",p),i.mergeNodeMaps(v)},i.createNodeMap=(o,c,p,v,f,h)=>{if(a.isArray(o)){for(const j of o)i.createNodeMap(j,c,p,v,void 0,h);return}if(!a.isObject(o))return void(h&&h.push(o));if(n.isValue(o)){if("@type"in o){let j=o["@type"];j.indexOf("_:")===0&&(o["@type"]=j=v.getId(j))}return void(h&&h.push(o))}if(h&&n.isList(o)){const j=[];return i.createNodeMap(o["@list"],c,p,v,f,j),void h.push({"@list":j})}if("@type"in o){const j=o["@type"];for(const A of j)A.indexOf("_:")===0&&v.getId(A)}a.isUndefined(f)&&(f=n.isBlankNode(o)?v.getId(o["@id"]):o["@id"]),h&&h.push({"@id":f});const w=c[p],g=w[f]=w[f]||{};g["@id"]=f;const x=Object.keys(o).sort();for(let j of x){if(j==="@id")continue;if(j==="@reverse"){const Q={"@id":f},S=o["@reverse"];for(const y in S){const O=S[y];for(const T of O){let k=T["@id"];n.isBlankNode(T)&&(k=v.getId(k)),i.createNodeMap(T,c,p,v,k),l.addValue(w[k],y,Q,{propertyIsArray:!0,allowDuplicate:!1})}}continue}if(j==="@graph"){f in c||(c[f]={}),i.createNodeMap(o[j],c,f,v);continue}if(j==="@included"){i.createNodeMap(o[j],c,p,v);continue}if(j!=="@type"&&r(j)){if(j==="@index"&&j in g&&(o[j]!==g[j]||o[j]["@id"]!==g[j]["@id"]))throw new d("Invalid JSON-LD syntax; conflicting @index property detected.","jsonld.SyntaxError",{code:"conflicting indexes",subject:g});g[j]=o[j];continue}const A=o[j];if(j.indexOf("_:")===0&&(j=v.getId(j)),A.length!==0)for(let Q of A)if(j==="@type"&&(Q=Q.indexOf("_:")===0?v.getId(Q):Q),n.isSubject(Q)||n.isSubjectReference(Q)){if("@id"in Q&&!Q["@id"])continue;const S=n.isBlankNode(Q)?v.getId(Q["@id"]):Q["@id"];l.addValue(g,j,{"@id":S},{propertyIsArray:!0,allowDuplicate:!1}),i.createNodeMap(Q,c,p,v,S)}else if(n.isValue(Q))l.addValue(g,j,Q,{propertyIsArray:!0,allowDuplicate:!1});else if(n.isList(Q)){const S=[];i.createNodeMap(Q["@list"],c,p,v,f,S),Q={"@list":S},l.addValue(g,j,Q,{propertyIsArray:!0,allowDuplicate:!1})}else i.createNodeMap(Q,c,p,v,f),l.addValue(g,j,Q,{propertyIsArray:!0,allowDuplicate:!1});else l.addValue(g,j,[],{propertyIsArray:!0})}},i.mergeNodeMapGraphs=o=>{const c={};for(const p of Object.keys(o).sort())for(const v of Object.keys(o[p]).sort()){const f=o[p][v];v in c||(c[v]={"@id":v});const h=c[v];for(const w of Object.keys(f).sort())if(r(w)&&w!=="@type")h[w]=l.clone(f[w]);else for(const g of f[w])l.addValue(h,w,l.clone(g),{propertyIsArray:!0,allowDuplicate:!1})}return c},i.mergeNodeMaps=o=>{const c=o["@default"],p=Object.keys(o).sort();for(const v of p){if(v==="@default")continue;const f=o[v];let h=c[v];h?"@graph"in h||(h["@graph"]=[]):c[v]=h={"@id":v,"@graph":[]};const w=h["@graph"];for(const g of Object.keys(f).sort()){const x=f[g];n.isSubjectReference(x)||w.push(x)}}return c}},701:(s,e,t)=>{const r=t(6957),n={};s.exports=n,n.setupDocumentLoaders=function(a){typeof XMLHttpRequest<"u"&&(a.documentLoaders.xhr=r,a.useDocumentLoader("xhr"))},n.setupGlobals=function(a){globalThis.JsonLdProcessor===void 0&&Object.defineProperty(globalThis,"JsonLdProcessor",{writable:!0,enumerable:!1,configurable:!0,value:a.JsonLdProcessor})}},9180:(s,e,t)=>{const{createNodeMap:r}=t(9233),{isKeyword:n}=t(1972),a=t(3978),l=t(2341),d=t(2207),i=t(7382),o=t(9263),{handleEvent:c}=t(2246),{RDF_FIRST:p,RDF_REST:v,RDF_NIL:f,RDF_TYPE:h,RDF_JSON_LITERAL:w,RDF_LANGSTRING:g,XSD_BOOLEAN:x,XSD_DOUBLE:j,XSD_INTEGER:A,XSD_STRING:Q}=t(9378),{isAbsolute:S}=t(470),y={};function O(k,b,L,N,K){const se=Object.keys(b).sort();for(const q of se){const C=b[q],X=Object.keys(C).sort();for(let I of X){const B=C[I];if(I==="@type")I=h;else if(n(I))continue;for(const U of B){const P={termType:q.startsWith("_:")?"BlankNode":"NamedNode",value:q};if(!S(q)){K.eventHandler&&c({event:{type:["JsonLdEvent"],code:"relative subject reference",level:"warning",message:"Relative subject reference found.",details:{subject:q}},options:K});continue}const J={termType:I.startsWith("_:")?"BlankNode":"NamedNode",value:I};if(!S(I)){K.eventHandler&&c({event:{type:["JsonLdEvent"],code:"relative predicate reference",level:"warning",message:"Relative predicate reference found.",details:{predicate:I}},options:K});continue}if(J.termType==="BlankNode"&&!K.produceGeneralizedRdf){K.eventHandler&&c({event:{type:["JsonLdEvent"],code:"blank node predicate",level:"warning",message:"Dropping blank node predicate.",details:{property:N.getOldIds().find(V=>N.getId(V)===I)}},options:K});continue}const D=T(U,N,k,L,K.rdfDirection,K);D&&k.push({subject:P,predicate:J,object:D,graph:L})}}}}function T(k,b,L,N,K,se){const q={};if(a.isValue(k)){q.termType="Literal",q.value=void 0,q.datatype={termType:"NamedNode"};let C=k["@value"];const X=k["@type"]||null;if(X==="@json")q.value=l(C),q.datatype.value=w;else if(i.isBoolean(C))q.value=C.toString(),q.datatype.value=X||x;else if(i.isDouble(C)||X===j)i.isDouble(C)||(C=parseFloat(C)),q.value=C.toExponential(15).replace(/(\d)0*e\+?/,"$1E"),q.datatype.value=X||j;else if(i.isNumber(C))q.value=C.toFixed(0),q.datatype.value=X||A;else if("@direction"in k&&K==="i18n-datatype"){const I=`https://www.w3.org/ns/i18n#${(k["@language"]||"").toLowerCase()}_${k["@direction"]}`;q.datatype.value=I,q.value=C}else{if("@direction"in k&&K==="compound-literal")throw new d("Unsupported rdfDirection value.","jsonld.InvalidRdfDirection",{value:K});if("@direction"in k&&K)throw new d("Unknown rdfDirection value.","jsonld.InvalidRdfDirection",{value:K});"@language"in k?("@direction"in k&&!K&&se.eventHandler&&c({event:{type:["JsonLdEvent"],code:"rdfDirection not set",level:"warning",message:"rdfDirection not set for @direction.",details:{object:q.value}},options:se}),q.value=C,q.datatype.value=X||g,q.language=k["@language"]):("@direction"in k&&!K&&se.eventHandler&&c({event:{type:["JsonLdEvent"],code:"rdfDirection not set",level:"warning",message:"rdfDirection not set for @direction.",details:{object:q.value}},options:se}),q.value=C,q.datatype.value=X||Q)}}else if(a.isList(k)){const C=function(X,I,B,U,P,J){const D={termType:"NamedNode",value:p},V={termType:"NamedNode",value:v},te={termType:"NamedNode",value:f},le=X.pop(),ee=le?{termType:"BlankNode",value:I.getId()}:te;let M=ee;for(const E of X){const W=T(E,I,B,U,P,J),z={termType:"BlankNode",value:I.getId()};B.push({subject:M,predicate:D,object:W,graph:U}),B.push({subject:M,predicate:V,object:z,graph:U}),M=z}if(le){const E=T(le,I,B,U,P,J);B.push({subject:M,predicate:D,object:E,graph:U}),B.push({subject:M,predicate:V,object:te,graph:U})}return ee}(k["@list"],b,L,N,K,se);q.termType=C.termType,q.value=C.value}else{const C=i.isObject(k)?k["@id"]:k;q.termType=C.startsWith("_:")?"BlankNode":"NamedNode",q.value=C}return q.termType!=="NamedNode"||S(q.value)?q:(se.eventHandler&&c({event:{type:["JsonLdEvent"],code:"relative object reference",level:"warning",message:"Relative object reference found.",details:{object:q.value}},options:se}),null)}s.exports=y,y.toRDF=(k,b)=>{const L=new o.IdentifierIssuer("_:b"),N={"@default":{}};r(k,N,"@default",L);const K=[],se=Object.keys(N).sort();for(const q of se){let C;if(q==="@default")C={termType:"DefaultGraph",value:""};else{if(!S(q)){b.eventHandler&&c({event:{type:["JsonLdEvent"],code:"relative graph reference",level:"warning",message:"Relative graph reference found.",details:{graph:q}},options:b});continue}C=q.startsWith("_:")?{termType:"BlankNode"}:{termType:"NamedNode"},C.value=q}O(K,N[q],C,L,b)}return K}},7382:s=>{const e={};s.exports=e,e.isArray=Array.isArray,e.isBoolean=t=>typeof t=="boolean"||Object.prototype.toString.call(t)==="[object Boolean]",e.isDouble=t=>e.isNumber(t)&&(String(t).indexOf(".")!==-1||Math.abs(t)>=1e21),e.isEmptyObject=t=>e.isObject(t)&&Object.keys(t).length===0,e.isNumber=t=>typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]",e.isNumeric=t=>!isNaN(parseFloat(t))&&isFinite(t),e.isObject=t=>Object.prototype.toString.call(t)==="[object Object]",e.isString=t=>typeof t=="string"||Object.prototype.toString.call(t)==="[object String]",e.isUndefined=t=>t===void 0},470:(s,e,t)=>{const r=t(7382),n={};s.exports=n,n.parsers={simple:{keys:["href","scheme","authority","path","query","fragment"],regex:/^(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/},full:{keys:["href","protocol","scheme","authority","auth","user","password","hostname","port","path","directory","file","query","fragment"],regex:/^(([a-zA-Z][a-zA-Z0-9+-.]*):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?(?:(((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/}},n.parse=(l,d)=>{const i={},o=n.parsers[d||"full"],c=o.regex.exec(l);let p=o.keys.length;for(;p--;)i[o.keys[p]]=c[p]===void 0?null:c[p];return(i.scheme==="https"&&i.port==="443"||i.scheme==="http"&&i.port==="80")&&(i.href=i.href.replace(":"+i.port,""),i.authority=i.authority.replace(":"+i.port,""),i.port=null),i.normalizedPath=n.removeDotSegments(i.path),i},n.prependBase=(l,d)=>{if(l===null||n.isAbsolute(d))return d;l&&!r.isString(l)||(l=n.parse(l||""));const i=n.parse(d),o={protocol:l.protocol||""};if(i.authority!==null)o.authority=i.authority,o.path=i.path,o.query=i.query;else if(o.authority=l.authority,i.path==="")o.path=l.path,i.query!==null?o.query=i.query:o.query=l.query;else{if(i.path.indexOf("/")===0)o.path=i.path;else{let p=l.path;p=p.substr(0,p.lastIndexOf("/")+1),(p.length>0||l.authority)&&p.substr(-1)!=="/"&&(p+="/"),p+=i.path,o.path=p}o.query=i.query}i.path!==""&&(o.path=n.removeDotSegments(o.path));let c=o.protocol;return o.authority!==null&&(c+="//"+o.authority),c+=o.path,o.query!==null&&(c+="?"+o.query),i.fragment!==null&&(c+="#"+i.fragment),c===""&&(c="./"),c},n.removeBase=(l,d)=>{if(l===null)return d;l&&!r.isString(l)||(l=n.parse(l||""));let i="";if(l.href!==""?i+=(l.protocol||"")+"//"+(l.authority||""):d.indexOf("//")&&(i+="//"),d.indexOf(i)!==0)return d;const o=n.parse(d.substr(i.length)),c=l.normalizedPath.split("/"),p=o.normalizedPath.split("/"),v=o.fragment||o.query?0:1;for(;c.length>0&&p.length>v&&c[0]===p[0];)c.shift(),p.shift();let f="";if(c.length>0){c.pop();for(let h=0;h{if(l.length===0)return"";const d=l.split("/"),i=[];for(;d.length>0;){const o=d.shift(),c=d.length===0;o!=="."?o!==".."?i.push(o):(i.pop(),c&&i.push("")):c&&i.push("")}return l[0]==="/"&&i.length>0&&i[0]!==""&&i.unshift(""),i.length===1&&i[0]===""?"/":i.join("/")};const a=/^([A-Za-z][A-Za-z0-9+-.]*|_):[^\s]*$/;n.isAbsolute=l=>r.isString(l)&&a.test(l),n.isRelative=l=>r.isString(l)},9263:(s,e,t)=>{const r=t(3978),n=t(7382),a=t(989).IdentifierIssuer,l=t(2207),d=/(?:<[^>]*?>|"[^"]*?"|[^,])+/g,i=/\s*<([^>]*?)>\s*(?:;\s*(.*))?/,o=/(.*?)=(?:(?:"([^"]*?)")|([^"]*?))\s*(?:(?:;\s*)|$)/g,c="application/ld+json, application/json",p={};function v(f,h){if(n.isArray(h))for(let w=0;w{if(Object.keys(f).some(h=>h.toLowerCase()==="accept"))throw new RangeError('Accept header may not be specified; only "'+c+'" is supported.');return Object.assign({Accept:c},f)},p.parseLinkHeader=f=>{const h={},w=f.match(d);for(let g=0;g{if(!(n.isString(f)||n.isArray(f)&&f.every(w=>n.isString(w)))){if(h&&n.isObject(f))switch(Object.keys(f).length){case 0:return;case 1:if("@default"in f&&p.asArray(f["@default"]).every(w=>n.isString(w)))return}throw new l('Invalid JSON-LD syntax; "@type" value must a string, an array of strings, an empty object, or a default object.',"jsonld.SyntaxError",{code:"invalid type value",value:f})}},p.hasProperty=(f,h)=>{if(f.hasOwnProperty(h)){const w=f[h];return!n.isArray(w)||w.length>0}return!1},p.hasValue=(f,h,w)=>{if(p.hasProperty(f,h)){let g=f[h];const x=r.isList(g);if(n.isArray(g)||x){x&&(g=g["@list"]);for(let j=0;j{if("propertyIsArray"in(g=g||{})||(g.propertyIsArray=!1),"valueIsArray"in g||(g.valueIsArray=!1),"allowDuplicate"in g||(g.allowDuplicate=!0),"prependValue"in g||(g.prependValue=!1),g.valueIsArray)f[h]=w;else if(n.isArray(w)){w.length===0&&g.propertyIsArray&&!f.hasOwnProperty(h)&&(f[h]=[]),g.prependValue&&(w=w.concat(f[h]),f[h]=[]);for(let x=0;x[].concat(f[h]||[]),p.removeProperty=(f,h)=>{delete f[h]},p.removeValue=(f,h,w,g)=>{"propertyIsArray"in(g=g||{})||(g.propertyIsArray=!1);const x=p.getValues(f,h).filter(j=>!p.compareValues(j,w));x.length===0?p.removeProperty(f,h):x.length!==1||g.propertyIsArray?f[h]=x:f[h]=x[0]},p.relabelBlankNodes=(f,h)=>v((h=h||{}).issuer||new a("_:b"),f),p.compareValues=(f,h)=>f===h||!(!r.isValue(f)||!r.isValue(h)||f["@value"]!==h["@value"]||f["@type"]!==h["@type"]||f["@language"]!==h["@language"]||f["@index"]!==h["@index"])||!!(n.isObject(f)&&"@id"in f&&n.isObject(h)&&"@id"in h)&&f["@id"]===h["@id"],p.compareShortestLeast=(f,h)=>f.length{var r=t(9325).Symbol;s.exports=r},2552:(s,e,t)=>{var r=t(1873),n=t(659),a=t(9350),l=r?r.toStringTag:void 0;s.exports=function(d){return d==null?d===void 0?"[object Undefined]":"[object Null]":l&&l in Object(d)?n(d):a(d)}},4128:(s,e,t)=>{var r=t(1800),n=/^\s+/;s.exports=function(a){return a&&a.slice(0,r(a)+1).replace(n,"")}},4840:(s,e,t)=>{var r=typeof t.g=="object"&&t.g&&t.g.Object===Object&&t.g;s.exports=r},659:(s,e,t)=>{var r=t(1873),n=Object.prototype,a=n.hasOwnProperty,l=n.toString,d=r?r.toStringTag:void 0;s.exports=function(i){var o=a.call(i,d),c=i[d];try{i[d]=void 0;var p=!0}catch{}var v=l.call(i);return p&&(o?i[d]=c:delete i[d]),v}},9350:s=>{var e=Object.prototype.toString;s.exports=function(t){return e.call(t)}},9325:(s,e,t)=>{var r=t(4840),n=typeof self=="object"&&self&&self.Object===Object&&self,a=r||n||Function("return this")();s.exports=a},1800:s=>{var e=/\s/;s.exports=function(t){for(var r=t.length;r--&&e.test(t.charAt(r)););return r}},2177:(s,e,t)=>{var r=t(1489);s.exports=function(n,a){var l;if(typeof a!="function")throw new TypeError("Expected a function");return n=r(n),function(){return--n>0&&(l=a.apply(this,arguments)),n<=1&&(a=void 0),l}}},3805:s=>{s.exports=function(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}},346:s=>{s.exports=function(e){return e!=null&&typeof e=="object"}},4394:(s,e,t)=>{var r=t(2552),n=t(346);s.exports=function(a){return typeof a=="symbol"||n(a)&&r(a)=="[object Symbol]"}},8059:(s,e,t)=>{var r=t(2177);s.exports=function(n){return r(2,n)}},7400:(s,e,t)=>{var r=t(9374),n=1/0;s.exports=function(a){return a?(a=r(a))===n||a===-1/0?17976931348623157e292*(a<0?-1:1):a==a?a:0:a===0?a:0}},1489:(s,e,t)=>{var r=t(7400);s.exports=function(n){var a=r(n),l=a%1;return a==a?l?a-l:a:0}},9374:(s,e,t)=>{var r=t(4128),n=t(3805),a=t(4394),l=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,i=/^0o[0-7]+$/i,o=parseInt;s.exports=function(c){if(typeof c=="number")return c;if(a(c))return NaN;if(n(c)){var p=typeof c.valueOf=="function"?c.valueOf():c;c=n(p)?p+"":p}if(typeof c!="string")return c===0?c:+c;c=r(c);var v=d.test(c);return v||i.test(c)?o(c.slice(2),v?2:8):l.test(c)?NaN:+c}},9749:(s,e,t)=>{const r=t(8799),n=Symbol("max"),a=Symbol("length"),l=Symbol("lengthCalculator"),d=Symbol("allowStale"),i=Symbol("maxAge"),o=Symbol("dispose"),c=Symbol("noDisposeOnSet"),p=Symbol("lruList"),v=Symbol("cache"),f=Symbol("updateAgeOnGet"),h=()=>1,w=(S,y,O)=>{const T=S[v].get(y);if(T){const k=T.value;if(g(S,k)){if(j(S,T),!S[d])return}else O&&(S[f]&&(T.value.now=Date.now()),S[p].unshiftNode(T));return k.value}},g=(S,y)=>{if(!y||!y.maxAge&&!S[i])return!1;const O=Date.now()-y.now;return y.maxAge?O>y.maxAge:S[i]&&O>S[i]},x=S=>{if(S[a]>S[n])for(let y=S[p].tail;S[a]>S[n]&&y!==null;){const O=y.prev;j(S,y),y=O}},j=(S,y)=>{if(y){const O=y.value;S[o]&&S[o](O.key,O.value),S[a]-=O.length,S[v].delete(O.key),S[p].removeNode(y)}};class A{constructor(y,O,T,k,b){this.key=y,this.value=O,this.length=T,this.now=k,this.maxAge=b||0}}const Q=(S,y,O,T)=>{let k=O.value;g(S,k)&&(j(S,O),S[d]||(k=void 0)),k&&y.call(T,k.value,k.key,S)};s.exports=class{constructor(S){if(typeof S=="number"&&(S={max:S}),S||(S={}),S.max&&(typeof S.max!="number"||S.max<0))throw new TypeError("max must be a non-negative number");this[n]=S.max||1/0;const y=S.length||h;if(this[l]=typeof y!="function"?h:y,this[d]=S.stale||!1,S.maxAge&&typeof S.maxAge!="number")throw new TypeError("maxAge must be a number");this[i]=S.maxAge||0,this[o]=S.dispose,this[c]=S.noDisposeOnSet||!1,this[f]=S.updateAgeOnGet||!1,this.reset()}set max(S){if(typeof S!="number"||S<0)throw new TypeError("max must be a non-negative number");this[n]=S||1/0,x(this)}get max(){return this[n]}set allowStale(S){this[d]=!!S}get allowStale(){return this[d]}set maxAge(S){if(typeof S!="number")throw new TypeError("maxAge must be a non-negative number");this[i]=S,x(this)}get maxAge(){return this[i]}set lengthCalculator(S){typeof S!="function"&&(S=h),S!==this[l]&&(this[l]=S,this[a]=0,this[p].forEach(y=>{y.length=this[l](y.value,y.key),this[a]+=y.length})),x(this)}get lengthCalculator(){return this[l]}get length(){return this[a]}get itemCount(){return this[p].length}rforEach(S,y){y=y||this;for(let O=this[p].tail;O!==null;){const T=O.prev;Q(this,S,O,y),O=T}}forEach(S,y){y=y||this;for(let O=this[p].head;O!==null;){const T=O.next;Q(this,S,O,y),O=T}}keys(){return this[p].toArray().map(S=>S.key)}values(){return this[p].toArray().map(S=>S.value)}reset(){this[o]&&this[p]&&this[p].length&&this[p].forEach(S=>this[o](S.key,S.value)),this[v]=new Map,this[p]=new r,this[a]=0}dump(){return this[p].map(S=>!g(this,S)&&{k:S.key,v:S.value,e:S.now+(S.maxAge||0)}).toArray().filter(S=>S)}dumpLru(){return this[p]}set(S,y,O){if((O=O||this[i])&&typeof O!="number")throw new TypeError("maxAge must be a number");const T=O?Date.now():0,k=this[l](y,S);if(this[v].has(S)){if(k>this[n])return j(this,this[v].get(S)),!1;const L=this[v].get(S).value;return this[o]&&(this[c]||this[o](S,L.value)),L.now=T,L.maxAge=O,L.value=y,this[a]+=k-L.length,L.length=k,this.get(S),x(this),!0}const b=new A(S,y,k,T,O);return b.length>this[n]?(this[o]&&this[o](S,y),!1):(this[a]+=b.length,this[p].unshift(b),this[v].set(S,this[p].head),x(this),!0)}has(S){if(!this[v].has(S))return!1;const y=this[v].get(S).value;return!g(this,y)}get(S){return w(this,S,!0)}peek(S){return w(this,S,!1)}pop(){const S=this[p].tail;return S?(j(this,S),S.value):null}del(S){j(this,this[v].get(S))}load(S){this.reset();const y=Date.now();for(let O=S.length-1;O>=0;O--){const T=S[O],k=T.e||0;if(k===0)this.set(T.k,T.v);else{const b=k-y;b>0&&this.set(T.k,T.v,b)}}}prune(){this[v].forEach((S,y)=>w(this,y,!1))}}},5606:s=>{var e,t,r=s.exports={};function n(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function l(w){if(e===setTimeout)return setTimeout(w,0);if((e===n||!e)&&setTimeout)return e=setTimeout,setTimeout(w,0);try{return e(w,0)}catch{try{return e.call(null,w,0)}catch{return e.call(this,w,0)}}}(function(){try{e=typeof setTimeout=="function"?setTimeout:n}catch{e=n}try{t=typeof clearTimeout=="function"?clearTimeout:a}catch{t=a}})();var d,i=[],o=!1,c=-1;function p(){o&&d&&(o=!1,d.length?i=d.concat(i):c=-1,i.length&&v())}function v(){if(!o){var w=l(p);o=!0;for(var g=i.length;g;){for(d=i,i=[];++c1)for(var x=1;x{let r;s.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:t.g):n=>(r||(r=Promise.resolve())).then(n).catch(a=>setTimeout(()=>{throw a},0))},989:(s,e,t)=>{s.exports=t(4005)},2985:s=>{s.exports=class Vr{constructor(t,r=new Map,n=0){this.prefix=t,this._existing=r,this.counter=n}clone(){const{prefix:t,_existing:r,counter:n}=this;return new Vr(t,new Map(r),n)}getId(t){const r=t&&this._existing.get(t);if(r)return r;const n=this.prefix+this.counter;return this.counter++,t&&this._existing.set(t,n),n}hasId(t){return this._existing.has(t)}getOldIds(){return[...this._existing.keys()]}}},3751:(s,e,t)=>{t(2791);const r=self.crypto||self.msCrypto;s.exports=class{constructor(n){if(!r||!r.subtle)throw new Error("crypto.subtle not found.");if(n==="sha256")this.algorithm={name:"SHA-256"};else{if(n!=="sha1")throw new Error(`Unsupported algorithm "${n}".`);this.algorithm={name:"SHA-1"}}this._content=""}update(n){this._content+=n}async digest(){const n=new TextEncoder().encode(this._content),a=new Uint8Array(await r.subtle.digest(this.algorithm,n));let l="";for(let d=0;d{const e="http://www.w3.org/1999/02/22-rdf-syntax-ns#langString",t="http://www.w3.org/2001/XMLSchema#string",r="NamedNode",n="BlankNode",a="Literal",l="DefaultGraph",d={};(()=>{const c="(?:<([^:]+:[^>]*)>)",p="A-Za-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�_",v=p+"0-9-·̀-ͯ‿-⁀",f="(_:(?:["+p+"0-9])(?:(?:["+v+".])*(?:["+v+"]))?)",h="[ \\t]+",w="[ \\t]*",g="(?:"+c+"|"+f+")"+h,x=c+h,j="(?:"+c+"|"+f+'|(?:"([^"\\\\]*(?:\\\\.[^"\\\\]*)*)"(?:(?:\\^\\^'+c+")|(?:@([a-zA-Z]+(?:-[a-zA-Z0-9]+)*)))?))"+w,A="(?:\\.|(?:(?:"+c+"|"+f+")"+w+"\\.))";d.eoln=/(?:\r\n)|(?:\n)|(?:\r)/g,d.empty=new RegExp("^"+w+"$"),d.quad=new RegExp("^"+w+g+x+j+A+w+"$")})(),s.exports=class xt{static parse(p){const v=[],f={},h=p.split(d.eoln);let w=0;for(const j of h){if(w++,d.empty.test(j))continue;const A=j.match(d.quad);if(A===null)throw new Error("N-Quads parse error on line "+w+".");const Q={subject:null,predicate:null,object:null,graph:null};if(A[1]!==void 0?Q.subject={termType:r,value:A[1]}:Q.subject={termType:n,value:A[2]},Q.predicate={termType:r,value:A[3]},A[4]!==void 0?Q.object={termType:r,value:A[4]}:A[5]!==void 0?Q.object={termType:n,value:A[5]}:(Q.object={termType:a,value:void 0,datatype:{termType:r}},A[7]!==void 0?Q.object.datatype.value=A[7]:A[8]!==void 0?(Q.object.datatype.value=e,Q.object.language=A[8]):Q.object.datatype.value=t,Q.object.value=A[6].replace(o,function(S,y,O,T){if(y)switch(y){case"t":return" ";case"b":return"\b";case"n":return` `;case"r":return"\r";case"f":return"\f";case'"':return'"';case"'":return"'";case"\\":return"\\"}if(O)return String.fromCharCode(parseInt(O,16));if(T)throw new Error("Unsupported U escape")})),A[9]!==void 0?Q.graph={termType:r,value:A[9]}:A[10]!==void 0?Q.graph={termType:n,value:A[10]}:Q.graph={termType:l,value:""},Q.graph.value in f){let S=!0;const y=f[Q.graph.value];for(const O of y)if(x=Q,(g=O).subject.termType===x.subject.termType&&g.object.termType===x.object.termType&&g.subject.value===x.subject.value&&g.predicate.value===x.predicate.value&&g.object.value===x.object.value&&(g.object.termType!==a||g.object.datatype.termType===x.object.datatype.termType&&g.object.language===x.object.language&&g.object.datatype.value===x.object.datatype.value)){S=!1;break}S&&(y.push(Q),v.push(Q))}else f[Q.graph.value]=[Q],v.push(Q)}var g,x;return v}static serialize(p){Array.isArray(p)||(p=xt.legacyDatasetToQuads(p));const v=[];for(const f of p)v.push(xt.serializeQuad(f));return v.sort().join("")}static serializeQuadComponents(p,v,f,h){let w="";return p.termType===r?w+=`<${p.value}>`:w+=`${p.value}`,w+=` <${v.value}> `,f.termType===r?w+=`<${f.value}>`:f.termType===n?w+=f.value:(w+=`"${function(g){return g.replace(i,function(x){switch(x){case'"':return'\\"';case"\\":return"\\\\";case` `:return"\\n";case"\r":return"\\r"}})}(f.value)}"`,f.datatype.value===e?f.language&&(w+=`@${f.language}`):f.datatype.value!==t&&(w+=`^^<${f.datatype.value}>`)),h.termType===r?w+=` <${h.value}>`:h.termType===n&&(w+=` ${h.value}`),w+=` . `,w}static serializeQuad(p){return xt.serializeQuadComponents(p.subject,p.predicate,p.object,p.graph)}static legacyDatasetToQuads(p){const v=[],f={"blank node":n,IRI:r,literal:a};for(const h in p)p[h].forEach(w=>{const g={};for(const x in w){const j=w[x],A={termType:f[j.type],value:j.value};A.termType===a&&(A.datatype={termType:r},"datatype"in j&&(A.datatype.value=j.datatype),"language"in j?("datatype"in j||(A.datatype.value=e),A.language=j.language):"datatype"in j||(A.datatype.value=t)),g[x]=A}g.graph=h==="@default"?{termType:l,value:""}:{termType:h.startsWith("_:")?n:r,value:h},v.push(g)});return v}};const i=/["\\\n\r]/g,o=/(?:\\([tbnrf"'\\]))|(?:\\u([0-9A-Fa-f]{4}))|(?:\\U([0-9A-Fa-f]{8}))/g},9925:s=>{s.exports=class{constructor(e){this.current=e.sort(),this.done=!1,this.dir=new Map;for(let t=0;tn)&&(o&&d>0&&i>e[d-1]||!o&&de[d+1])&&(n=i,a=d)}if(n===null)this.done=!0;else{const d=t.get(n)?a-1:a+1;e[a]=e[d],e[d]=n;for(const i of e)i>n&&t.set(i,!t.get(i))}return r}}},3513:(s,e,t)=>{const r=t(2985),n=t(3751),a=t(9925),l=t(1227);function d(i,o){return i.hasho.hash?1:0}s.exports=class{constructor({createMessageDigest:i=()=>new n("sha256"),canonicalIdMap:o=new Map,maxDeepIterations:c=1/0}={}){this.name="URDNA2015",this.blankNodeInfo=new Map,this.canonicalIssuer=new r("_:c14n",o),this.createMessageDigest=i,this.maxDeepIterations=c,this.quads=null,this.deepIterations=null}async main(i){this.deepIterations=new Map,this.quads=i;for(const w of i)this._addBlankNodeQuadInfo({quad:w,component:w.subject}),this._addBlankNodeQuadInfo({quad:w,component:w.object}),this._addBlankNodeQuadInfo({quad:w,component:w.graph});const o=new Map,c=[...this.blankNodeInfo.keys()];let p=0;for(const w of c)++p%100==0&&await this._yield(),await this._hashAndTrackBlankNode({id:w,hashToBlankNodes:o});const v=[...o.keys()].sort(),f=[];for(const w of v){const g=o.get(w);if(g.length>1){f.push(g);continue}const x=g[0];this.canonicalIssuer.getId(x)}for(const w of f){const g=[];for(const x of w){if(this.canonicalIssuer.hasId(x))continue;const j=new r("_:b");j.getId(x);const A=await this.hashNDegreeQuads(x,j);g.push(A)}g.sort(d);for(const x of g){const j=x.issuer.getOldIds();for(const A of j)this.canonicalIssuer.getId(A)}}const h=[];for(const w of this.quads){const g=l.serializeQuadComponents(this._componentWithCanonicalId(w.subject),w.predicate,this._componentWithCanonicalId(w.object),this._componentWithCanonicalId(w.graph));h.push(g)}return h.sort(),h.join("")}async hashFirstDegreeQuads(i){const o=[],c=this.blankNodeInfo.get(i),p=c.quads;for(const f of p){const h={subject:null,predicate:f.predicate,object:null,graph:null};h.subject=this.modifyFirstDegreeComponent(i,f.subject,"subject"),h.object=this.modifyFirstDegreeComponent(i,f.object,"object"),h.graph=this.modifyFirstDegreeComponent(i,f.graph,"graph"),o.push(l.serializeQuad(h))}o.sort();const v=this.createMessageDigest();for(const f of o)v.update(f);return c.hash=await v.digest(),c.hash}async hashRelatedBlankNode(i,o,c,p){let v;v=this.canonicalIssuer.hasId(i)?this.canonicalIssuer.getId(i):c.hasId(i)?c.getId(i):this.blankNodeInfo.get(i).hash;const f=this.createMessageDigest();return f.update(p),p!=="g"&&f.update(this.getRelatedPredicate(o)),f.update(v),f.digest()}async hashNDegreeQuads(i,o){const c=this.deepIterations.get(i)||0;if(c>this.maxDeepIterations)throw new Error(`Maximum deep iterations (${this.maxDeepIterations}) exceeded.`);this.deepIterations.set(i,c+1);const p=this.createMessageDigest(),v=await this.createHashToRelated(i,o),f=[...v.keys()].sort();for(const h of f){p.update(h);let w,g="";const x=new a(v.get(h));let j=0;for(;x.hasNext();){const A=x.next();++j%3==0&&await this._yield();let Q=o.clone(),S="";const y=[];let O=!1;for(const T of A)if(this.canonicalIssuer.hasId(T)?S+=this.canonicalIssuer.getId(T):(Q.hasId(T)||y.push(T),S+=Q.getId(T)),g.length!==0&&S>g){O=!0;break}if(!O){for(const T of y){const k=await this.hashNDegreeQuads(T,Q);if(S+=Q.getId(T),S+=`<${k.hash}>`,Q=k.issuer,g.length!==0&&S>g){O=!0;break}}O||(g.length===0||S`}async createHashToRelated(i,o){const c=new Map,p=this.blankNodeInfo.get(i).quads;let v=0;for(const f of p)++v%100==0&&await this._yield(),await Promise.all([this._addRelatedBlankNodeHash({quad:f,component:f.subject,position:"s",id:i,issuer:o,hashToRelated:c}),this._addRelatedBlankNodeHash({quad:f,component:f.object,position:"o",id:i,issuer:o,hashToRelated:c}),this._addRelatedBlankNodeHash({quad:f,component:f.graph,position:"g",id:i,issuer:o,hashToRelated:c})]);return c}async _hashAndTrackBlankNode({id:i,hashToBlankNodes:o}){const c=await this.hashFirstDegreeQuads(i),p=o.get(c);p?p.push(i):o.set(c,[i])}_addBlankNodeQuadInfo({quad:i,component:o}){if(o.termType!=="BlankNode")return;const c=o.value,p=this.blankNodeInfo.get(c);p?p.quads.add(i):this.blankNodeInfo.set(c,{quads:new Set([i]),hash:null})}async _addRelatedBlankNodeHash({quad:i,component:o,position:c,id:p,issuer:v,hashToRelated:f}){if(o.termType!=="BlankNode"||o.value===p)return;const h=o.value,w=await this.hashRelatedBlankNode(h,i,v,c),g=f.get(w);g?g.push(h):f.set(w,[h])}_componentWithCanonicalId(i){return i.termType!=="BlankNode"||i.value.startsWith(this.canonicalIssuer.prefix)?i:{termType:"BlankNode",value:this.canonicalIssuer.getId(i.value)}}async _yield(){return new Promise(i=>setImmediate(i))}}},2438:(s,e,t)=>{const r=t(2985),n=t(3751),a=t(9925),l=t(1227);function d(i,o){return i.hasho.hash?1:0}s.exports=class{constructor({createMessageDigest:i=()=>new n("sha256"),canonicalIdMap:o=new Map,maxDeepIterations:c=1/0}={}){this.name="URDNA2015",this.blankNodeInfo=new Map,this.canonicalIssuer=new r("_:c14n",o),this.createMessageDigest=i,this.maxDeepIterations=c,this.quads=null,this.deepIterations=null}main(i){this.deepIterations=new Map,this.quads=i;for(const h of i)this._addBlankNodeQuadInfo({quad:h,component:h.subject}),this._addBlankNodeQuadInfo({quad:h,component:h.object}),this._addBlankNodeQuadInfo({quad:h,component:h.graph});const o=new Map,c=[...this.blankNodeInfo.keys()];for(const h of c)this._hashAndTrackBlankNode({id:h,hashToBlankNodes:o});const p=[...o.keys()].sort(),v=[];for(const h of p){const w=o.get(h);if(w.length>1){v.push(w);continue}const g=w[0];this.canonicalIssuer.getId(g)}for(const h of v){const w=[];for(const g of h){if(this.canonicalIssuer.hasId(g))continue;const x=new r("_:b");x.getId(g);const j=this.hashNDegreeQuads(g,x);w.push(j)}w.sort(d);for(const g of w){const x=g.issuer.getOldIds();for(const j of x)this.canonicalIssuer.getId(j)}}const f=[];for(const h of this.quads){const w=l.serializeQuadComponents(this._componentWithCanonicalId({component:h.subject}),h.predicate,this._componentWithCanonicalId({component:h.object}),this._componentWithCanonicalId({component:h.graph}));f.push(w)}return f.sort(),f.join("")}hashFirstDegreeQuads(i){const o=[],c=this.blankNodeInfo.get(i),p=c.quads;for(const f of p){const h={subject:null,predicate:f.predicate,object:null,graph:null};h.subject=this.modifyFirstDegreeComponent(i,f.subject,"subject"),h.object=this.modifyFirstDegreeComponent(i,f.object,"object"),h.graph=this.modifyFirstDegreeComponent(i,f.graph,"graph"),o.push(l.serializeQuad(h))}o.sort();const v=this.createMessageDigest();for(const f of o)v.update(f);return c.hash=v.digest(),c.hash}hashRelatedBlankNode(i,o,c,p){let v;v=this.canonicalIssuer.hasId(i)?this.canonicalIssuer.getId(i):c.hasId(i)?c.getId(i):this.blankNodeInfo.get(i).hash;const f=this.createMessageDigest();return f.update(p),p!=="g"&&f.update(this.getRelatedPredicate(o)),f.update(v),f.digest()}hashNDegreeQuads(i,o){const c=this.deepIterations.get(i)||0;if(c>this.maxDeepIterations)throw new Error(`Maximum deep iterations (${this.maxDeepIterations}) exceeded.`);this.deepIterations.set(i,c+1);const p=this.createMessageDigest(),v=this.createHashToRelated(i,o),f=[...v.keys()].sort();for(const h of f){p.update(h);let w,g="";const x=new a(v.get(h));for(;x.hasNext();){const j=x.next();let A=o.clone(),Q="";const S=[];let y=!1;for(const O of j)if(this.canonicalIssuer.hasId(O)?Q+=this.canonicalIssuer.getId(O):(A.hasId(O)||S.push(O),Q+=A.getId(O)),g.length!==0&&Q>g){y=!0;break}if(!y){for(const O of S){const T=this.hashNDegreeQuads(O,A);if(Q+=A.getId(O),Q+=`<${T.hash}>`,A=T.issuer,g.length!==0&&Q>g){y=!0;break}}y||(g.length===0||Q`}createHashToRelated(i,o){const c=new Map,p=this.blankNodeInfo.get(i).quads;for(const v of p)this._addRelatedBlankNodeHash({quad:v,component:v.subject,position:"s",id:i,issuer:o,hashToRelated:c}),this._addRelatedBlankNodeHash({quad:v,component:v.object,position:"o",id:i,issuer:o,hashToRelated:c}),this._addRelatedBlankNodeHash({quad:v,component:v.graph,position:"g",id:i,issuer:o,hashToRelated:c});return c}_hashAndTrackBlankNode({id:i,hashToBlankNodes:o}){const c=this.hashFirstDegreeQuads(i),p=o.get(c);p?p.push(i):o.set(c,[i])}_addBlankNodeQuadInfo({quad:i,component:o}){if(o.termType!=="BlankNode")return;const c=o.value,p=this.blankNodeInfo.get(c);p?p.quads.add(i):this.blankNodeInfo.set(c,{quads:new Set([i]),hash:null})}_addRelatedBlankNodeHash({quad:i,component:o,position:c,id:p,issuer:v,hashToRelated:f}){if(o.termType!=="BlankNode"||o.value===p)return;const h=o.value,w=this.hashRelatedBlankNode(h,i,v,c),g=f.get(w);g?g.push(h):f.set(w,[h])}_componentWithCanonicalId({component:i}){return i.termType!=="BlankNode"||i.value.startsWith(this.canonicalIssuer.prefix)?i:{termType:"BlankNode",value:this.canonicalIssuer.getId(i.value)}}}},3845:(s,e,t)=>{const r=t(3751),n=t(3513);s.exports=class extends n{constructor(){super(),this.name="URGNA2012",this.createMessageDigest=()=>new r("sha1")}modifyFirstDegreeComponent(a,l,d){return l.termType!=="BlankNode"?l:d==="graph"?{termType:"BlankNode",value:"_:g"}:{termType:"BlankNode",value:l.value===a?"_:a":"_:z"}}getRelatedPredicate(a){return a.predicate.value}async createHashToRelated(a,l){const d=new Map,i=this.blankNodeInfo.get(a).quads;let o=0;for(const c of i){let p,v;if(c.subject.termType==="BlankNode"&&c.subject.value!==a)v=c.subject.value,p="p";else{if(c.object.termType!=="BlankNode"||c.object.value===a)continue;v=c.object.value,p="r"}++o%100==0&&await this._yield();const f=await this.hashRelatedBlankNode(v,c,l,p),h=d.get(f);h?h.push(v):d.set(f,[v])}return d}}},378:(s,e,t)=>{const r=t(3751),n=t(2438);s.exports=class extends n{constructor(){super(),this.name="URGNA2012",this.createMessageDigest=()=>new r("sha1")}modifyFirstDegreeComponent(a,l,d){return l.termType!=="BlankNode"?l:d==="graph"?{termType:"BlankNode",value:"_:g"}:{termType:"BlankNode",value:l.value===a?"_:a":"_:z"}}getRelatedPredicate(a){return a.predicate.value}createHashToRelated(a,l){const d=new Map,i=this.blankNodeInfo.get(a).quads;for(const o of i){let c,p;if(o.subject.termType==="BlankNode"&&o.subject.value!==a)p=o.subject.value,c="p";else{if(o.object.termType!=="BlankNode"||o.object.value===a)continue;p=o.object.value,c="r"}const v=this.hashRelatedBlankNode(p,o,l,c),f=d.get(v);f?f.push(p):d.set(v,[p])}return d}}},4005:(s,e,t)=>{const r=t(3513),n=t(3845),a=t(2438),l=t(378);let d;try{d=t(7789)}catch{}function i(o){return Array.isArray(o)?o:e.NQuads.legacyDatasetToQuads(o)}e.NQuads=t(1227),e.IdentifierIssuer=t(2985),e._rdfCanonizeNative=function(o){return o&&(d=o),d},e.canonize=async function(o,c){const p=i(o);if(c.useNative){if(!d)throw new Error("rdf-canonize-native not available");if(c.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "useNative".');return new Promise((v,f)=>d.canonize(p,c,(h,w)=>h?f(h):v(w)))}if(c.algorithm==="URDNA2015")return new r(c).main(p);if(c.algorithm==="URGNA2012"){if(c.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "URGNA2012".');return new n(c).main(p)}throw"algorithm"in c?new Error("Invalid RDF Dataset Canonicalization algorithm: "+c.algorithm):new Error("No RDF Dataset Canonicalization algorithm specified.")},e._canonizeSync=function(o,c){const p=i(o);if(c.useNative){if(!d)throw new Error("rdf-canonize-native not available");if(c.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "useNative".');return d.canonizeSync(p,c)}if(c.algorithm==="URDNA2015")return new a(c).main(p);if(c.algorithm==="URGNA2012"){if(c.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "URGNA2012".');return new l(c).main(p)}throw"algorithm"in c?new Error("Invalid RDF Dataset Canonicalization algorithm: "+c.algorithm):new Error("No RDF Dataset Canonicalization algorithm specified.")}},7793:function(s,e,t){var r=this&&this.__createBinding||(Object.create?function(a,l,d,i){i===void 0&&(i=d),Object.defineProperty(a,i,{enumerable:!0,get:function(){return l[d]}})}:function(a,l,d,i){i===void 0&&(i=d),a[i]=l[d]}),n=this&&this.__exportStar||function(a,l){for(var d in a)d==="default"||Object.prototype.hasOwnProperty.call(l,d)||r(l,a,d)};Object.defineProperty(e,"__esModule",{value:!0}),n(t(9931),e),n(t(8483),e),n(t(2142),e),n(t(2426),e),n(t(3988),e),n(t(6754),e),n(t(8401),e)},9931:(s,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BlankNode=void 0,e.BlankNode=class{constructor(t){this.termType="BlankNode",this.value=t}equals(t){return!!t&&t.termType==="BlankNode"&&t.value===this.value}}},8483:(s,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DataFactory=void 0;const r=t(9931),n=t(2142),a=t(2426),l=t(3988),d=t(6754),i=t(8401);let o=0;e.DataFactory=class{constructor(c){this.blankNodeCounter=0,c=c||{},this.blankNodePrefix=c.blankNodePrefix||`df_${o++}_`}namedNode(c){return new l.NamedNode(c)}blankNode(c){return new r.BlankNode(c||`${this.blankNodePrefix}${this.blankNodeCounter++}`)}literal(c,p){return new a.Literal(c,p)}variable(c){return new i.Variable(c)}defaultGraph(){return n.DefaultGraph.INSTANCE}quad(c,p,v,f){return new d.Quad(c,p,v,f||this.defaultGraph())}fromTerm(c){switch(c.termType){case"NamedNode":return this.namedNode(c.value);case"BlankNode":return this.blankNode(c.value);case"Literal":return c.language?this.literal(c.value,c.language):c.datatype.equals(a.Literal.XSD_STRING)?this.literal(c.value):this.literal(c.value,this.fromTerm(c.datatype));case"Variable":return this.variable(c.value);case"DefaultGraph":return this.defaultGraph();case"Quad":return this.quad(this.fromTerm(c.subject),this.fromTerm(c.predicate),this.fromTerm(c.object),this.fromTerm(c.graph))}}fromQuad(c){return this.fromTerm(c)}resetBlankNodeCounter(){this.blankNodeCounter=0}}},2142:(s,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultGraph=void 0;class t{constructor(){this.termType="DefaultGraph",this.value=""}equals(n){return!!n&&n.termType==="DefaultGraph"}}e.DefaultGraph=t,t.INSTANCE=new t},2426:(s,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Literal=void 0;const r=t(3988);class n{constructor(l,d){this.termType="Literal",this.value=l,typeof d=="string"?(this.language=d,this.datatype=n.RDF_LANGUAGE_STRING):d?(this.language="",this.datatype=d):(this.language="",this.datatype=n.XSD_STRING)}equals(l){return!!l&&l.termType==="Literal"&&l.value===this.value&&l.language===this.language&&this.datatype.equals(l.datatype)}}e.Literal=n,n.RDF_LANGUAGE_STRING=new r.NamedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"),n.XSD_STRING=new r.NamedNode("http://www.w3.org/2001/XMLSchema#string")},3988:(s,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.NamedNode=void 0,e.NamedNode=class{constructor(t){this.termType="NamedNode",this.value=t}equals(t){return!!t&&t.termType==="NamedNode"&&t.value===this.value}}},6754:(s,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Quad=void 0,e.Quad=class{constructor(t,r,n,a){this.termType="Quad",this.value="",this.subject=t,this.predicate=r,this.object=n,this.graph=a}equals(t){return!!t&&(t.termType==="Quad"||!t.termType)&&this.subject.equals(t.subject)&&this.predicate.equals(t.predicate)&&this.object.equals(t.object)&&this.graph.equals(t.graph)}}},8401:(s,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Variable=void 0,e.Variable=class{constructor(t){this.termType="Variable",this.value=t}equals(t){return!!t&&t.termType==="Variable"&&t.value===this.value}}},9349:function(s,e,t){var r=this&&this.__createBinding||(Object.create?function(p,v,f,h){h===void 0&&(h=f);var w=Object.getOwnPropertyDescriptor(v,f);w&&!("get"in w?!v.__esModule:w.writable||w.configurable)||(w={enumerable:!0,get:function(){return v[f]}}),Object.defineProperty(p,h,w)}:function(p,v,f,h){h===void 0&&(h=f),p[h]=v[f]}),n=this&&this.__exportStar||function(p,v){for(var f in p)f==="default"||Object.prototype.hasOwnProperty.call(v,f)||r(v,p,f)};Object.defineProperty(e,"__esModule",{value:!0}),e.getSupportedJavaScriptPrimitives=e.getSupportedRdfDatatypes=e.getTermRaw=e.toRdf=e.fromRdf=void 0;const a=t(7793),l=t(4802),d=t(103);n(t(4802),e),n(t(5448),e),n(t(103),e);const i=new a.DataFactory,o=new d.Translator;function c(p,v){return o.fromRdf(p,v)}o.registerHandler(new l.TypeHandlerString,l.TypeHandlerString.TYPES.map(p=>i.namedNode(p)),["string"]),o.registerHandler(new l.TypeHandlerBoolean,[l.TypeHandlerBoolean.TYPE].map(p=>i.namedNode(p)),["boolean"]),o.registerHandler(new l.TypeHandlerNumberDouble,l.TypeHandlerNumberDouble.TYPES.map(p=>i.namedNode(p)),["number"]),o.registerHandler(new l.TypeHandlerNumberInteger,l.TypeHandlerNumberInteger.TYPES.map(p=>i.namedNode(p)),["number"]),o.registerHandler(new l.TypeHandlerDate,l.TypeHandlerDate.TYPES.map(p=>i.namedNode(p)),["object"]),e.fromRdf=c,e.toRdf=function(p,v){return v&&"namedNode"in v&&(v={dataFactory:v}),(v=v||{})&&!v.dataFactory&&(v.dataFactory=i),o.toRdf(p,v)},e.getTermRaw=function(p,v){return p.termType==="Literal"?c(p,v):p.value},e.getSupportedRdfDatatypes=function(){return o.getSupportedRdfDatatypes()},e.getSupportedJavaScriptPrimitives=function(){return o.getSupportedJavaScriptPrimitives()}},5448:(s,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},103:(s,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Translator=void 0,e.Translator=class{constructor(){this.supportedRdfDatatypes=[],this.fromRdfHandlers={},this.toRdfHandlers={}}static incorrectRdfDataType(t){throw new Error(`Invalid RDF ${t.datatype.value} value: '${t.value}'`)}registerHandler(t,r,n){for(const a of r)this.supportedRdfDatatypes.push(a),this.fromRdfHandlers[a.value]=t;for(const a of n){let l=this.toRdfHandlers[a];l||(this.toRdfHandlers[a]=l=[]),l.push(t)}}fromRdf(t,r){const n=this.fromRdfHandlers[t.datatype.value];return n?n.fromRdf(t,r):t.value}toRdf(t,r){const n=this.toRdfHandlers[typeof t];if(n)for(const a of n){const l=a.toRdf(t,r);if(l)return l}throw new Error(`Invalid JavaScript value: '${t}'`)}getSupportedRdfDatatypes(){return this.supportedRdfDatatypes}getSupportedJavaScriptPrimitives(){return Object.keys(this.toRdfHandlers)}}},92:(s,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TypeHandlerBoolean=void 0;const r=t(103);class n{fromRdf(l,d){switch(l.value){case"true":case"1":return!0;case"false":case"0":return!1}return d&&r.Translator.incorrectRdfDataType(l),!1}toRdf(l,{datatype:d,dataFactory:i}){return i.literal(l?"true":"false",d||i.namedNode(n.TYPE))}}n.TYPE="http://www.w3.org/2001/XMLSchema#boolean",e.TypeHandlerBoolean=n},7258:(s,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TypeHandlerDate=void 0;const r=t(103);class n{fromRdf(l,d){switch(d&&!l.value.match(n.VALIDATORS[l.datatype.value.substr(33,l.datatype.value.length)])&&r.Translator.incorrectRdfDataType(l),l.datatype.value){case"http://www.w3.org/2001/XMLSchema#gDay":return new Date(0,0,parseInt(l.value,10));case"http://www.w3.org/2001/XMLSchema#gMonthDay":const i=l.value.split("-");return new Date(0,parseInt(i[0],10)-1,parseInt(i[1],10));case"http://www.w3.org/2001/XMLSchema#gYear":return new Date(l.value+"-01-01");case"http://www.w3.org/2001/XMLSchema#gYearMonth":return new Date(l.value+"-01");default:return new Date(l.value)}}toRdf(l,{datatype:d,dataFactory:i}){if(d=d||i.namedNode(n.TYPES[0]),!(l instanceof Date))return null;const o=l;let c;switch(d.value){case"http://www.w3.org/2001/XMLSchema#gDay":c=String(o.getUTCDate());break;case"http://www.w3.org/2001/XMLSchema#gMonthDay":c=o.getUTCMonth()+1+"-"+o.getUTCDate();break;case"http://www.w3.org/2001/XMLSchema#gYear":c=String(o.getUTCFullYear());break;case"http://www.w3.org/2001/XMLSchema#gYearMonth":c=o.getUTCFullYear()+"-"+(o.getUTCMonth()+1);break;case"http://www.w3.org/2001/XMLSchema#date":c=o.toISOString().replace(/T.*$/,"");break;default:c=o.toISOString()}return i.literal(c,d)}}n.TYPES=["http://www.w3.org/2001/XMLSchema#dateTime","http://www.w3.org/2001/XMLSchema#date","http://www.w3.org/2001/XMLSchema#gDay","http://www.w3.org/2001/XMLSchema#gMonthDay","http://www.w3.org/2001/XMLSchema#gYear","http://www.w3.org/2001/XMLSchema#gYearMonth"],n.VALIDATORS={date:/^[0-9]+-[0-9][0-9]-[0-9][0-9]Z?$/,dateTime:/^[0-9]+-[0-9][0-9]-[0-9][0-9]T[0-9][0-9]:[0-9][0-9]:[0-9][0-9](\.[0-9][0-9][0-9])?((Z?)|([\+-][0-9][0-9]:[0-9][0-9]))$/,gDay:/^[0-9]+$/,gMonthDay:/^[0-9]+-[0-9][0-9]$/,gYear:/^[0-9]+$/,gYearMonth:/^[0-9]+-[0-9][0-9]$/},e.TypeHandlerDate=n},2406:(s,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TypeHandlerNumberDouble=void 0;const r=t(103);class n{fromRdf(l,d){const i=parseFloat(l.value);return d&&isNaN(i)&&r.Translator.incorrectRdfDataType(l),i}toRdf(l,{datatype:d,dataFactory:i}){return d=d||i.namedNode(n.TYPES[0]),isNaN(l)?i.literal("NaN",d):isFinite(l)?l%1==0?null:i.literal(l.toExponential(15).replace(/(\d)0*e\+?/,"$1E"),d):i.literal(l>0?"INF":"-INF",d)}}n.TYPES=["http://www.w3.org/2001/XMLSchema#double","http://www.w3.org/2001/XMLSchema#decimal","http://www.w3.org/2001/XMLSchema#float"],e.TypeHandlerNumberDouble=n},6925:(s,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TypeHandlerNumberInteger=void 0;const r=t(103);class n{fromRdf(l,d){const i=parseInt(l.value,10);return d&&(isNaN(i)||l.value.indexOf(".")>=0)&&r.Translator.incorrectRdfDataType(l),i}toRdf(l,{datatype:d,dataFactory:i}){return i.literal(String(l),d||(l<=n.MAX_INT&&l>=n.MIN_INT?i.namedNode(n.TYPES[0]):i.namedNode(n.TYPES[1])))}}n.TYPES=["http://www.w3.org/2001/XMLSchema#integer","http://www.w3.org/2001/XMLSchema#long","http://www.w3.org/2001/XMLSchema#int","http://www.w3.org/2001/XMLSchema#byte","http://www.w3.org/2001/XMLSchema#short","http://www.w3.org/2001/XMLSchema#negativeInteger","http://www.w3.org/2001/XMLSchema#nonNegativeInteger","http://www.w3.org/2001/XMLSchema#nonPositiveInteger","http://www.w3.org/2001/XMLSchema#positiveInteger","http://www.w3.org/2001/XMLSchema#unsignedByte","http://www.w3.org/2001/XMLSchema#unsignedInt","http://www.w3.org/2001/XMLSchema#unsignedLong","http://www.w3.org/2001/XMLSchema#unsignedShort"],n.MAX_INT=2147483647,n.MIN_INT=-2147483648,e.TypeHandlerNumberInteger=n},4191:(s,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TypeHandlerString=void 0;class t{fromRdf(n){return n.value}toRdf(n,{datatype:a,dataFactory:l}){return l.literal(n,a)}}t.TYPES=["http://www.w3.org/2001/XMLSchema#string","http://www.w3.org/2001/XMLSchema#normalizedString","http://www.w3.org/2001/XMLSchema#anyURI","http://www.w3.org/2001/XMLSchema#base64Binary","http://www.w3.org/2001/XMLSchema#language","http://www.w3.org/2001/XMLSchema#Name","http://www.w3.org/2001/XMLSchema#NCName","http://www.w3.org/2001/XMLSchema#NMTOKEN","http://www.w3.org/2001/XMLSchema#token","http://www.w3.org/2001/XMLSchema#hexBinary","http://www.w3.org/1999/02/22-rdf-syntax-ns#langString","http://www.w3.org/2001/XMLSchema#time","http://www.w3.org/2001/XMLSchema#duration"],e.TypeHandlerString=t},4802:function(s,e,t){var r=this&&this.__createBinding||(Object.create?function(a,l,d,i){i===void 0&&(i=d);var o=Object.getOwnPropertyDescriptor(l,d);o&&!("get"in o?!l.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return l[d]}}),Object.defineProperty(a,i,o)}:function(a,l,d,i){i===void 0&&(i=d),a[i]=l[d]}),n=this&&this.__exportStar||function(a,l){for(var d in a)d==="default"||Object.prototype.hasOwnProperty.call(l,d)||r(l,a,d)};Object.defineProperty(e,"__esModule",{value:!0}),n(t(92),e),n(t(7258),e),n(t(2406),e),n(t(6925),e),n(t(4191),e)},4147:(s,e,t)=>{const{SymbolDispose:r}=t(4134),{AbortError:n,codes:a}=t(6371),{isNodeStream:l,isWebStream:d,kControllerErrorFunction:i}=t(6115),o=t(6238),{ERR_INVALID_ARG_TYPE:c}=a;let p;s.exports.addAbortSignal=function(v,f){if((h=>{if(typeof h!="object"||!("aborted"in h))throw new c("signal","AbortSignal",h)})(v),!l(f)&&!d(f))throw new c("stream",["ReadableStream","WritableStream","Stream"],f);return s.exports.addAbortSignalNoValidate(v,f)},s.exports.addAbortSignalNoValidate=function(v,f){if(typeof v!="object"||!("aborted"in v))return f;const h=l(f)?()=>{f.destroy(new n(void 0,{cause:v.reason}))}:()=>{f[i](new n(void 0,{cause:v.reason}))};if(v.aborted)h();else{p=p||t(7760).addAbortListener;const w=p(v,h);o(f,w[r])}return f}},345:(s,e,t)=>{const{StringPrototypeSlice:r,SymbolIterator:n,TypedArrayPrototypeSet:a,Uint8Array:l}=t(4134),{Buffer:d}=t(8287),{inspect:i}=t(7760);s.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(o){const c={data:o,next:null};this.length>0?this.tail.next=c:this.head=c,this.tail=c,++this.length}unshift(o){const c={data:o,next:this.head};this.length===0&&(this.tail=c),this.head=c,++this.length}shift(){if(this.length===0)return;const o=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,o}clear(){this.head=this.tail=null,this.length=0}join(o){if(this.length===0)return"";let c=this.head,p=""+c.data;for(;(c=c.next)!==null;)p+=o+c.data;return p}concat(o){if(this.length===0)return d.alloc(0);const c=d.allocUnsafe(o>>>0);let p=this.head,v=0;for(;p;)a(c,p.data,v),v+=p.data.length,p=p.next;return c}consume(o,c){const p=this.head.data;if(of.length)){o===f.length?(c+=f,++v,p.next?this.head=p.next:this.head=this.tail=null):(c+=r(f,0,o),this.head=p,p.data=r(f,o));break}c+=f,o-=f.length,++v}while((p=p.next)!==null);return this.length-=v,c}_getBuffer(o){const c=d.allocUnsafe(o),p=o;let v=this.head,f=0;do{const h=v.data;if(!(o>h.length)){o===h.length?(a(c,h,p-o),++f,v.next?this.head=v.next:this.head=this.tail=null):(a(c,new l(h.buffer,h.byteOffset,o),p-o),this.head=v,v.data=h.slice(o));break}a(c,h,p-o),o-=h.length,++f}while((v=v.next)!==null);return this.length-=f,c}[Symbol.for("nodejs.util.inspect.custom")](o,c){return i(this,{...c,depth:0,customInspect:!1})}}},7830:(s,e,t)=>{const{pipeline:r}=t(7758),n=t(3370),{destroyer:a}=t(5896),{isNodeStream:l,isReadable:d,isWritable:i,isWebStream:o,isTransformStream:c,isWritableStream:p,isReadableStream:v}=t(6115),{AbortError:f,codes:{ERR_INVALID_ARG_VALUE:h,ERR_MISSING_ARGS:w}}=t(6371),g=t(6238);s.exports=function(...x){if(x.length===0)throw new w("streams");if(x.length===1)return n.from(x[0]);const j=[...x];if(typeof x[0]=="function"&&(x[0]=n.from(x[0])),typeof x[x.length-1]=="function"){const N=x.length-1;x[N]=n.from(x[N])}for(let N=0;N0&&!(i(x[N])||p(x[N])||c(x[N])))throw new h(`streams[${N}]`,j[N],"must be writable")}let A,Q,S,y,O;const T=x[0],k=r(x,function(N){const K=y;y=null,K?K(N):N?O.destroy(N):L||b||O.destroy()}),b=!!(i(T)||p(T)||c(T)),L=!!(d(k)||v(k)||c(k));if(O=new n({writableObjectMode:!(T==null||!T.writableObjectMode),readableObjectMode:!(k==null||!k.readableObjectMode),writable:b,readable:L}),b){if(l(T))O._write=function(K,se,q){T.write(K,se)?q():A=q},O._final=function(K){T.end(),Q=K},T.on("drain",function(){if(A){const K=A;A=null,K()}});else if(o(T)){const K=(c(T)?T.writable:T).getWriter();O._write=async function(se,q,C){try{await K.ready,K.write(se).catch(()=>{}),C()}catch(X){C(X)}},O._final=async function(se){try{await K.ready,K.close().catch(()=>{}),Q=se}catch(q){se(q)}}}const N=c(k)?k.readable:k;g(N,()=>{if(Q){const K=Q;Q=null,K()}})}if(L){if(l(k))k.on("readable",function(){if(S){const N=S;S=null,N()}}),k.on("end",function(){O.push(null)}),O._read=function(){for(;;){const N=k.read();if(N===null)return void(S=O._read);if(!O.push(N))return}};else if(o(k)){const N=(c(k)?k.readable:k).getReader();O._read=async function(){for(;;)try{const{value:K,done:se}=await N.read();if(!O.push(K))return;if(se)return void O.push(null)}catch{return}}}}return O._destroy=function(N,K){N||y===null||(N=new f),S=null,A=null,Q=null,y===null?K(N):(y=K,l(k)&&a(k,N))},O}},5896:(s,e,t)=>{const r=t(5606),{aggregateTwoErrors:n,codes:{ERR_MULTIPLE_CALLBACK:a},AbortError:l}=t(6371),{Symbol:d}=t(4134),{kIsDestroyed:i,isDestroyed:o,isFinished:c,isServerRequest:p}=t(6115),v=d("kDestroy"),f=d("kConstruct");function h(k,b,L){k&&(k.stack,b&&!b.errored&&(b.errored=k),L&&!L.errored&&(L.errored=k))}function w(k,b,L){let N=!1;function K(se){if(N)return;N=!0;const q=k._readableState,C=k._writableState;h(se,C,q),C&&(C.closed=!0),q&&(q.closed=!0),typeof L=="function"&&L(se),se?r.nextTick(g,k,se):r.nextTick(x,k)}try{k._destroy(b||null,K)}catch(se){K(se)}}function g(k,b){j(k,b),x(k)}function x(k){const b=k._readableState,L=k._writableState;L&&(L.closeEmitted=!0),b&&(b.closeEmitted=!0),(L!=null&&L.emitClose||b!=null&&b.emitClose)&&k.emit("close")}function j(k,b){const L=k._readableState,N=k._writableState;N!=null&&N.errorEmitted||L!=null&&L.errorEmitted||(N&&(N.errorEmitted=!0),L&&(L.errorEmitted=!0),k.emit("error",b))}function A(k,b,L){const N=k._readableState,K=k._writableState;if(K!=null&&K.destroyed||N!=null&&N.destroyed)return this;N!=null&&N.autoDestroy||K!=null&&K.autoDestroy?k.destroy(b):b&&(b.stack,K&&!K.errored&&(K.errored=b),N&&!N.errored&&(N.errored=b),L?r.nextTick(j,k,b):j(k,b))}function Q(k){let b=!1;function L(N){if(b)return void A(k,N??new a);b=!0;const K=k._readableState,se=k._writableState,q=se||K;K&&(K.constructed=!0),se&&(se.constructed=!0),q.destroyed?k.emit(v,N):N?A(k,N,!0):r.nextTick(S,k)}try{k._construct(N=>{r.nextTick(L,N)})}catch(N){r.nextTick(L,N)}}function S(k){k.emit(f)}function y(k){return(k==null?void 0:k.setHeader)&&typeof k.abort=="function"}function O(k){k.emit("close")}function T(k,b){k.emit("error",b),r.nextTick(O,k)}s.exports={construct:function(k,b){if(typeof k._construct!="function")return;const L=k._readableState,N=k._writableState;L&&(L.constructed=!1),N&&(N.constructed=!1),k.once(f,b),k.listenerCount(f)>1||r.nextTick(Q,k)},destroyer:function(k,b){k&&!o(k)&&(b||c(k)||(b=new l),p(k)?(k.socket=null,k.destroy(b)):y(k)?k.abort():y(k.req)?k.req.abort():typeof k.destroy=="function"?k.destroy(b):typeof k.close=="function"?k.close():b?r.nextTick(T,k,b):r.nextTick(O,k),k.destroyed||(k[i]=!0))},destroy:function(k,b){const L=this._readableState,N=this._writableState,K=N||L;return N!=null&&N.destroyed||L!=null&&L.destroyed?(typeof b=="function"&&b(),this):(h(k,N,L),N&&(N.destroyed=!0),L&&(L.destroyed=!0),K.constructed?w(this,k,b):this.once(v,function(se){w(this,n(se,k),b)}),this)},undestroy:function(){const k=this._readableState,b=this._writableState;k&&(k.constructed=!0,k.closed=!1,k.closeEmitted=!1,k.destroyed=!1,k.errored=null,k.errorEmitted=!1,k.reading=!1,k.ended=k.readable===!1,k.endEmitted=k.readable===!1),b&&(b.constructed=!0,b.destroyed=!1,b.closed=!1,b.closeEmitted=!1,b.errored=null,b.errorEmitted=!1,b.finalCalled=!1,b.prefinished=!1,b.ended=b.writable===!1,b.ending=b.writable===!1,b.finished=b.writable===!1)},errorOrDestroy:A}},3370:(s,e,t)=>{const{ObjectDefineProperties:r,ObjectGetOwnPropertyDescriptor:n,ObjectKeys:a,ObjectSetPrototypeOf:l}=t(4134);s.exports=o;const d=t(7576),i=t(8584);l(o.prototype,d.prototype),l(o,d);{const f=a(i.prototype);for(let h=0;h{const r=t(5606),n=t(8287),{isReadable:a,isWritable:l,isIterable:d,isNodeStream:i,isReadableNodeStream:o,isWritableNodeStream:c,isDuplexNodeStream:p,isReadableStream:v,isWritableStream:f}=t(6115),h=t(6238),{AbortError:w,codes:{ERR_INVALID_ARG_TYPE:g,ERR_INVALID_RETURN_VALUE:x}}=t(6371),{destroyer:j}=t(5896),A=t(3370),Q=t(7576),S=t(8584),{createDeferredPromise:y}=t(7760),O=t(6532),T=globalThis.Blob||n.Blob,k=T!==void 0?function(se){return se instanceof T}:function(se){return!1},b=globalThis.AbortController||t(5568).AbortController,{FunctionPrototypeCall:L}=t(4134);class N extends A{constructor(q){super(q),(q==null?void 0:q.readable)===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),(q==null?void 0:q.writable)===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}}function K(se){const q=se.readable&&typeof se.readable.read!="function"?Q.wrap(se.readable):se.readable,C=se.writable;let X,I,B,U,P,J=!!a(q),D=!!l(C);function V(te){const le=U;U=null,le?le(te):te&&P.destroy(te)}return P=new N({readableObjectMode:!(q==null||!q.readableObjectMode),writableObjectMode:!(C==null||!C.writableObjectMode),readable:J,writable:D}),D&&(h(C,te=>{D=!1,te&&j(q,te),V(te)}),P._write=function(te,le,ee){C.write(te,le)?ee():X=ee},P._final=function(te){C.end(),I=te},C.on("drain",function(){if(X){const te=X;X=null,te()}}),C.on("finish",function(){if(I){const te=I;I=null,te()}})),J&&(h(q,te=>{J=!1,te&&j(q,te),V(te)}),q.on("readable",function(){if(B){const te=B;B=null,te()}}),q.on("end",function(){P.push(null)}),P._read=function(){for(;;){const te=q.read();if(te===null)return void(B=P._read);if(!P.push(te))return}}),P._destroy=function(te,le){te||U===null||(te=new w),B=null,X=null,I=null,U===null?le(te):(U=le,j(C,te),j(q,te))},P}s.exports=function se(q,C){if(p(q))return q;if(o(q))return K({readable:q});if(c(q))return K({writable:q});if(i(q))return K({writable:!1,readable:!1});if(v(q))return K({readable:Q.fromWeb(q)});if(f(q))return K({writable:S.fromWeb(q)});if(typeof q=="function"){const{value:I,write:B,final:U,destroy:P}=function(D){let{promise:V,resolve:te}=y();const le=new b,ee=le.signal;return{value:D(async function*(){for(;;){const M=V;V=null;const{chunk:E,done:W,cb:z}=await M;if(r.nextTick(z),W)return;if(ee.aborted)throw new w(void 0,{cause:ee.reason});({promise:V,resolve:te}=y()),yield E}}(),{signal:ee}),write(M,E,W){const z=te;te=null,z({chunk:M,done:!1,cb:W})},final(M){const E=te;te=null,E({done:!0,cb:M})},destroy(M,E){le.abort(),E(M)}}}(q);if(d(I))return O(N,I,{objectMode:!0,write:B,final:U,destroy:P});const J=I==null?void 0:I.then;if(typeof J=="function"){let D;const V=L(J,I,te=>{if(te!=null)throw new x("nully","body",te)},te=>{j(D,te)});return D=new N({objectMode:!0,readable:!1,write:B,final(te){U(async()=>{try{await V,r.nextTick(te,null)}catch(le){r.nextTick(te,le)}})},destroy:P})}throw new x("Iterable, AsyncIterable or AsyncFunction",C,I)}if(k(q))return se(q.arrayBuffer());if(d(q))return O(N,q,{objectMode:!0,writable:!1});if(v(q==null?void 0:q.readable)&&f(q==null?void 0:q.writable))return N.fromWeb(q);if(typeof(q==null?void 0:q.writable)=="object"||typeof(q==null?void 0:q.readable)=="object")return K({readable:q!=null&&q.readable?o(q==null?void 0:q.readable)?q==null?void 0:q.readable:se(q.readable):void 0,writable:q!=null&&q.writable?c(q==null?void 0:q.writable)?q==null?void 0:q.writable:se(q.writable):void 0});const X=q==null?void 0:q.then;if(typeof X=="function"){let I;return L(X,q,B=>{B!=null&&I.push(B),I.push(null)},B=>{j(I,B)}),I=new N({objectMode:!0,writable:!1,read(){}})}throw new g(C,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],q)}},6238:(s,e,t)=>{const r=t(5606),{AbortError:n,codes:a}=t(6371),{ERR_INVALID_ARG_TYPE:l,ERR_STREAM_PREMATURE_CLOSE:d}=a,{kEmptyObject:i,once:o}=t(7760),{validateAbortSignal:c,validateFunction:p,validateObject:v,validateBoolean:f}=t(277),{Promise:h,PromisePrototypeThen:w,SymbolDispose:g}=t(4134),{isClosed:x,isReadable:j,isReadableNodeStream:A,isReadableStream:Q,isReadableFinished:S,isReadableErrored:y,isWritable:O,isWritableNodeStream:T,isWritableStream:k,isWritableFinished:b,isWritableErrored:L,isNodeStream:N,willEmitClose:K,kIsClosedPromise:se}=t(6115);let q;const C=()=>{};function X(I,B,U){var P,J;if(arguments.length===2?(U=B,B=i):B==null?B=i:v(B,"options"),p(U,"callback"),c(B.signal,"options.signal"),U=o(U),Q(I)||k(I))return function(m,_,F){let G=!1,re=C;if(_.signal)if(re=()=>{G=!0,F.call(m,new n(void 0,{cause:_.signal.reason}))},_.signal.aborted)r.nextTick(re);else{q=q||t(7760).addAbortListener;const he=q(_.signal,re),pe=F;F=o((...me)=>{he[g](),pe.apply(m,me)})}const ce=(...he)=>{G||r.nextTick(()=>F.apply(m,he))};return w(m[se].promise,ce,ce),C}(I,B,U);if(!N(I))throw new l("stream",["ReadableStream","WritableStream","Stream"],I);const D=(P=B.readable)!==null&&P!==void 0?P:A(I),V=(J=B.writable)!==null&&J!==void 0?J:T(I),te=I._writableState,le=I._readableState,ee=()=>{I.writable||W()};let M=K(I)&&A(I)===D&&T(I)===V,E=b(I,!1);const W=()=>{E=!0,I.destroyed&&(M=!1),(!M||I.readable&&!D)&&(D&&!z||U.call(I))};let z=S(I,!1);const Z=()=>{z=!0,I.destroyed&&(M=!1),(!M||I.writable&&!V)&&(V&&!E||U.call(I))},R=m=>{U.call(I,m)};let ne=x(I);const Y=()=>{ne=!0;const m=L(I)||y(I);return m&&typeof m!="boolean"?U.call(I,m):D&&!z&&A(I,!0)&&!S(I,!1)?U.call(I,new d):!V||E||b(I,!1)?void U.call(I):U.call(I,new d)},ie=()=>{ne=!0;const m=L(I)||y(I);if(m&&typeof m!="boolean")return U.call(I,m);U.call(I)},oe=()=>{I.req.on("finish",W)};(function(m){return m.setHeader&&typeof m.abort=="function"})(I)?(I.on("complete",W),M||I.on("abort",Y),I.req?oe():I.on("request",oe)):V&&!te&&(I.on("end",ee),I.on("close",ee)),M||typeof I.aborted!="boolean"||I.on("aborted",Y),I.on("end",Z),I.on("finish",W),B.error!==!1&&I.on("error",R),I.on("close",Y),ne?r.nextTick(Y):te!=null&&te.errorEmitted||le!=null&&le.errorEmitted?M||r.nextTick(ie):(D||M&&!j(I)||!E&&O(I)!==!1)&&(V||M&&!O(I)||!z&&j(I)!==!1)?le&&I.req&&I.aborted&&r.nextTick(ie):r.nextTick(ie);const u=()=>{U=C,I.removeListener("aborted",Y),I.removeListener("complete",W),I.removeListener("abort",Y),I.removeListener("request",oe),I.req&&I.req.removeListener("finish",W),I.removeListener("end",ee),I.removeListener("close",ee),I.removeListener("finish",W),I.removeListener("end",Z),I.removeListener("error",R),I.removeListener("close",Y)};if(B.signal&&!ne){const m=()=>{const _=U;u(),_.call(I,new n(void 0,{cause:B.signal.reason}))};if(B.signal.aborted)r.nextTick(m);else{q=q||t(7760).addAbortListener;const _=q(B.signal,m),F=U;U=o((...G)=>{_[g](),F.apply(I,G)})}}return u}s.exports=X,s.exports.finished=function(I,B){var U;let P=!1;return B===null&&(B=i),(U=B)!==null&&U!==void 0&&U.cleanup&&(f(B.cleanup,"cleanup"),P=B.cleanup),new h((J,D)=>{const V=X(I,B,te=>{P&&V(),te?D(te):J()})})}},6532:(s,e,t)=>{const r=t(5606),{PromisePrototypeThen:n,SymbolAsyncIterator:a,SymbolIterator:l}=t(4134),{Buffer:d}=t(8287),{ERR_INVALID_ARG_TYPE:i,ERR_STREAM_NULL_VALUES:o}=t(6371).codes;s.exports=function(c,p,v){let f,h;if(typeof p=="string"||p instanceof d)return new c({objectMode:!0,...v,read(){this.push(p),this.push(null)}});if(p&&p[a])h=!0,f=p[a]();else{if(!p||!p[l])throw new i("iterable",["Iterable"],p);h=!1,f=p[l]()}const w=new c({objectMode:!0,highWaterMark:1,...v});let g=!1;return w._read=function(){g||(g=!0,async function(){for(;;){try{const{value:x,done:j}=h?await f.next():f.next();if(j)w.push(null);else{const A=x&&typeof x.then=="function"?await x:x;if(A===null)throw g=!1,new o;if(w.push(A))continue;g=!1}}catch(x){w.destroy(x)}break}}())},w._destroy=function(x,j){n(async function(A){const Q=A!=null,S=typeof f.throw=="function";if(Q&&S){const{value:y,done:O}=await f.throw(A);if(await y,O)return}if(typeof f.return=="function"){const{value:y}=await f.return();await y}}(x),()=>r.nextTick(j,x),A=>r.nextTick(j,A||x))},w}},4259:(s,e,t)=>{const{ArrayIsArray:r,ObjectSetPrototypeOf:n}=t(4134),{EventEmitter:a}=t(7007);function l(i){a.call(this,i)}function d(i,o,c){if(typeof i.prependListener=="function")return i.prependListener(o,c);i._events&&i._events[o]?r(i._events[o])?i._events[o].unshift(c):i._events[o]=[c,i._events[o]]:i.on(o,c)}n(l.prototype,a.prototype),n(l,a),l.prototype.pipe=function(i,o){const c=this;function p(j){i.writable&&i.write(j)===!1&&c.pause&&c.pause()}function v(){c.readable&&c.resume&&c.resume()}c.on("data",p),i.on("drain",v),i._isStdio||o&&o.end===!1||(c.on("end",h),c.on("close",w));let f=!1;function h(){f||(f=!0,i.end())}function w(){f||(f=!0,typeof i.destroy=="function"&&i.destroy())}function g(j){x(),a.listenerCount(this,"error")===0&&this.emit("error",j)}function x(){c.removeListener("data",p),i.removeListener("drain",v),c.removeListener("end",h),c.removeListener("close",w),c.removeListener("error",g),i.removeListener("error",g),c.removeListener("end",x),c.removeListener("close",x),i.removeListener("close",x)}return d(c,"error",g),d(i,"error",g),c.on("end",x),c.on("close",x),i.on("close",x),i.emit("pipe",c),i},s.exports={Stream:l,prependListener:d}},823:(s,e,t)=>{const r=globalThis.AbortController||t(5568).AbortController,{codes:{ERR_INVALID_ARG_VALUE:n,ERR_INVALID_ARG_TYPE:a,ERR_MISSING_ARGS:l,ERR_OUT_OF_RANGE:d},AbortError:i}=t(6371),{validateAbortSignal:o,validateInteger:c,validateObject:p}=t(277),v=t(4134).Symbol("kWeak"),f=t(4134).Symbol("kResistStopPropagation"),{finished:h}=t(6238),w=t(7830),{addAbortSignalNoValidate:g}=t(4147),{isWritable:x,isNodeStream:j}=t(6115),{deprecate:A}=t(7760),{ArrayPrototypePush:Q,Boolean:S,MathFloor:y,Number:O,NumberIsNaN:T,Promise:k,PromiseReject:b,PromiseResolve:L,PromisePrototypeThen:N,Symbol:K}=t(4134),se=K("kEmpty"),q=K("kEof");function C(P,J){if(typeof P!="function")throw new a("fn",["Function","AsyncFunction"],P);J!=null&&p(J,"options"),(J==null?void 0:J.signal)!=null&&o(J.signal,"options.signal");let D=1;(J==null?void 0:J.concurrency)!=null&&(D=y(J.concurrency));let V=D-1;return(J==null?void 0:J.highWaterMark)!=null&&(V=y(J.highWaterMark)),c(D,"options.concurrency",1),c(V,"options.highWaterMark",0),V+=D,(async function*(){const te=t(7760).AbortSignalAny([J==null?void 0:J.signal].filter(S)),le=this,ee=[],M={signal:te};let E,W,z=!1,Z=0;function R(){z=!0,ne()}function ne(){Z-=1,Y()}function Y(){W&&!z&&Z=V||Z>=D)&&await new k(oe=>{W=oe})}ee.push(q)}catch(ie){const oe=b(ie);N(oe,ne,R),ee.push(oe)}finally{z=!0,E&&(E(),E=null)}})();try{for(;;){for(;ee.length>0;){const ie=await ee[0];if(ie===q)return;if(te.aborted)throw new i;ie!==se&&(yield ie),ee.shift(),Y()}await new k(ie=>{E=ie})}}finally{z=!0,W&&(W(),W=null)}}).call(this)}async function X(P,J=void 0){for await(const D of I.call(this,P,J))return!0;return!1}function I(P,J){if(typeof P!="function")throw new a("fn",["Function","AsyncFunction"],P);return C.call(this,async function(D,V){return await P(D,V)?D:se},J)}class B extends l{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}function U(P){if(P=O(P),T(P))return 0;if(P<0)throw new d("number",">= 0",P);return P}s.exports.streamReturningOperators={asIndexedPairs:A(function(P=void 0){return P!=null&&p(P,"options"),(P==null?void 0:P.signal)!=null&&o(P.signal,"options.signal"),(async function*(){let J=0;for await(const V of this){var D;if(P!=null&&(D=P.signal)!==null&&D!==void 0&&D.aborted)throw new i({cause:P.signal.reason});yield[J++,V]}}).call(this)},"readable.asIndexedPairs will be removed in a future version."),drop:function(P,J=void 0){return J!=null&&p(J,"options"),(J==null?void 0:J.signal)!=null&&o(J.signal,"options.signal"),P=U(P),(async function*(){var D;if(J!=null&&(D=J.signal)!==null&&D!==void 0&&D.aborted)throw new i;for await(const te of this){var V;if(J!=null&&(V=J.signal)!==null&&V!==void 0&&V.aborted)throw new i;P--<=0&&(yield te)}}).call(this)},filter:I,flatMap:function(P,J){const D=C.call(this,P,J);return(async function*(){for await(const V of D)yield*V}).call(this)},map:C,take:function(P,J=void 0){return J!=null&&p(J,"options"),(J==null?void 0:J.signal)!=null&&o(J.signal,"options.signal"),P=U(P),(async function*(){var D;if(J!=null&&(D=J.signal)!==null&&D!==void 0&&D.aborted)throw new i;for await(const te of this){var V;if(J!=null&&(V=J.signal)!==null&&V!==void 0&&V.aborted)throw new i;if(P-- >0&&(yield te),P<=0)return}}).call(this)},compose:function(P,J){if(J!=null&&p(J,"options"),(J==null?void 0:J.signal)!=null&&o(J.signal,"options.signal"),j(P)&&!x(P))throw new n("stream",P,"must be writable");const D=w(this,P);return J!=null&&J.signal&&g(J.signal,D),D}},s.exports.promiseReturningOperators={every:async function(P,J=void 0){if(typeof P!="function")throw new a("fn",["Function","AsyncFunction"],P);return!await X.call(this,async(...D)=>!await P(...D),J)},forEach:async function(P,J){if(typeof P!="function")throw new a("fn",["Function","AsyncFunction"],P);for await(const D of C.call(this,async function(V,te){return await P(V,te),se},J));},reduce:async function(P,J,D){var V;if(typeof P!="function")throw new a("reducer",["Function","AsyncFunction"],P);D!=null&&p(D,"options"),(D==null?void 0:D.signal)!=null&&o(D.signal,"options.signal");let te=arguments.length>1;if(D!=null&&(V=D.signal)!==null&&V!==void 0&&V.aborted){const W=new i(void 0,{cause:D.signal.reason});throw this.once("error",()=>{}),await h(this.destroy(W)),W}const le=new r,ee=le.signal;if(D!=null&&D.signal){const W={once:!0,[v]:this,[f]:!0};D.signal.addEventListener("abort",()=>le.abort(),W)}let M=!1;try{for await(const W of this){var E;if(M=!0,D!=null&&(E=D.signal)!==null&&E!==void 0&&E.aborted)throw new i;te?J=await P(J,W,{signal:ee}):(J=W,te=!0)}if(!M&&!te)throw new B}finally{le.abort()}return J},toArray:async function(P){P!=null&&p(P,"options"),(P==null?void 0:P.signal)!=null&&o(P.signal,"options.signal");const J=[];for await(const V of this){var D;if(P!=null&&(D=P.signal)!==null&&D!==void 0&&D.aborted)throw new i(void 0,{cause:P.signal.reason});Q(J,V)}return J},some:X,find:async function(P,J){for await(const D of I.call(this,P,J))return D}}},6524:(s,e,t)=>{const{ObjectSetPrototypeOf:r}=t(4134);s.exports=a;const n=t(5001);function a(l){if(!(this instanceof a))return new a(l);n.call(this,l)}r(a.prototype,n.prototype),r(a,n),a.prototype._transform=function(l,d,i){i(null,l)}},7758:(s,e,t)=>{const r=t(5606),{ArrayIsArray:n,Promise:a,SymbolAsyncIterator:l,SymbolDispose:d}=t(4134),i=t(6238),{once:o}=t(7760),c=t(5896),p=t(3370),{aggregateTwoErrors:v,codes:{ERR_INVALID_ARG_TYPE:f,ERR_INVALID_RETURN_VALUE:h,ERR_MISSING_ARGS:w,ERR_STREAM_DESTROYED:g,ERR_STREAM_PREMATURE_CLOSE:x},AbortError:j}=t(6371),{validateFunction:A,validateAbortSignal:Q}=t(277),{isIterable:S,isReadable:y,isReadableNodeStream:O,isNodeStream:T,isTransformStream:k,isWebStream:b,isReadableStream:L,isReadableFinished:N}=t(6115),K=globalThis.AbortController||t(5568).AbortController;let se,q,C;function X(D,V,te){let le=!1;return D.on("close",()=>{le=!0}),{destroy:ee=>{le||(le=!0,c.destroyer(D,ee||new g("pipe")))},cleanup:i(D,{readable:V,writable:te},ee=>{le=!ee})}}function I(D){if(S(D))return D;if(O(D))return async function*(V){q||(q=t(7576)),yield*q.prototype[l].call(V)}(D);throw new f("val",["Readable","Iterable","AsyncIterable"],D)}async function B(D,V,te,{end:le}){let ee,M=null;const E=Z=>{if(Z&&(ee=Z),M){const R=M;M=null,R()}},W=()=>new a((Z,R)=>{ee?R(ee):M=()=>{ee?R(ee):Z()}});V.on("drain",E);const z=i(V,{readable:!1},E);try{V.writableNeedDrain&&await W();for await(const Z of D)V.write(Z)||await W();le&&(V.end(),await W()),te()}catch(Z){te(ee!==Z?v(ee,Z):Z)}finally{z(),V.off("drain",E)}}async function U(D,V,te,{end:le}){k(V)&&(V=V.writable);const ee=V.getWriter();try{for await(const M of D)await ee.ready,ee.write(M).catch(()=>{});await ee.ready,le&&await ee.close(),te()}catch(M){try{await ee.abort(M),te(M)}catch(E){te(E)}}}function P(D,V,te){if(D.length===1&&n(D[0])&&(D=D[0]),D.length<2)throw new w("streams");const le=new K,ee=le.signal,M=te==null?void 0:te.signal,E=[];function W(){u(new j)}let z,Z,R;Q(M,"options.signal"),C=C||t(7760).addAbortListener,M&&(z=C(M,W));const ne=[];let Y,ie=0;function oe(F){u(F,--ie==0)}function u(F,G){var re;if(!F||Z&&Z.code!=="ERR_STREAM_PREMATURE_CLOSE"||(Z=F),Z||G){for(;ne.length;)ne.shift()(Z);(re=z)===null||re===void 0||re[d](),le.abort(),G&&(Z||E.forEach(ce=>ce()),r.nextTick(V,Z,R))}}for(let F=0;F0,he=re||(te==null?void 0:te.end)!==!1,pe=F===D.length-1;if(T(G)){let me=function(ge){ge&&ge.name!=="AbortError"&&ge.code!=="ERR_STREAM_PREMATURE_CLOSE"&&oe(ge)};if(he){const{destroy:ge,cleanup:_e}=X(G,re,ce);ne.push(ge),y(G)&&pe&&E.push(_e)}G.on("error",me),y(G)&&pe&&E.push(()=>{G.removeListener("error",me)})}if(F===0)if(typeof G=="function"){if(Y=G({signal:ee}),!S(Y))throw new h("Iterable, AsyncIterable or Stream","source",Y)}else Y=S(G)||O(G)||k(G)?G:p.from(G);else if(typeof G=="function"){var m;if(Y=k(Y)?I((m=Y)===null||m===void 0?void 0:m.readable):I(Y),Y=G(Y,{signal:ee}),re){if(!S(Y,!0))throw new h("AsyncIterable",`transform[${F-1}]`,Y)}else{var _;se||(se=t(6524));const me=new se({objectMode:!0}),ge=(_=Y)===null||_===void 0?void 0:_.then;if(typeof ge=="function")ie++,ge.call(Y,Pe=>{R=Pe,Pe!=null&&me.write(Pe),he&&me.end(),r.nextTick(oe)},Pe=>{me.destroy(Pe),r.nextTick(oe,Pe)});else if(S(Y,!0))ie++,B(Y,me,oe,{end:he});else{if(!L(Y)&&!k(Y))throw new h("AsyncIterable or Promise","destination",Y);{const Pe=Y.readable||Y;ie++,B(Pe,me,oe,{end:he})}}Y=me;const{destroy:_e,cleanup:it}=X(Y,!1,!0);ne.push(_e),pe&&E.push(it)}}else if(T(G)){if(O(Y)){ie+=2;const me=J(Y,G,oe,{end:he});y(G)&&pe&&E.push(me)}else if(k(Y)||L(Y)){const me=Y.readable||Y;ie++,B(me,G,oe,{end:he})}else{if(!S(Y))throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],Y);ie++,B(Y,G,oe,{end:he})}Y=G}else if(b(G)){if(O(Y))ie++,U(I(Y),G,oe,{end:he});else if(L(Y)||S(Y))ie++,U(Y,G,oe,{end:he});else{if(!k(Y))throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],Y);ie++,U(Y.readable,G,oe,{end:he})}Y=G}else Y=p.from(G)}return(ee!=null&&ee.aborted||M!=null&&M.aborted)&&r.nextTick(W),Y}function J(D,V,te,{end:le}){let ee=!1;if(V.on("close",()=>{ee||te(new x)}),D.pipe(V,{end:!1}),le){let M=function(){ee=!0,V.end()};N(D)?r.nextTick(M):D.once("end",M)}else te();return i(D,{readable:!0,writable:!1},M=>{const E=D._readableState;M&&M.code==="ERR_STREAM_PREMATURE_CLOSE"&&E&&E.ended&&!E.errored&&!E.errorEmitted?D.once("end",te).once("error",te):te(M)}),i(V,{readable:!1,writable:!0},te)}s.exports={pipelineImpl:P,pipeline:function(...D){return P(D,o(function(V){return A(V[V.length-1],"streams[stream.length - 1]"),V.pop()}(D)))}}},7576:(s,e,t)=>{const r=t(5606),{ArrayPrototypeIndexOf:n,NumberIsInteger:a,NumberIsNaN:l,NumberParseInt:d,ObjectDefineProperties:i,ObjectKeys:o,ObjectSetPrototypeOf:c,Promise:p,SafeSet:v,SymbolAsyncDispose:f,SymbolAsyncIterator:h,Symbol:w}=t(4134);s.exports=R,R.ReadableState=Z;const{EventEmitter:g}=t(7007),{Stream:x,prependListener:j}=t(4259),{Buffer:A}=t(8287),{addAbortSignal:Q}=t(4147),S=t(6238);let y=t(7760).debuglog("stream",$=>{y=$});const O=t(345),T=t(5896),{getHighWaterMark:k,getDefaultHighWaterMark:b}=t(5291),{aggregateTwoErrors:L,codes:{ERR_INVALID_ARG_TYPE:N,ERR_METHOD_NOT_IMPLEMENTED:K,ERR_OUT_OF_RANGE:se,ERR_STREAM_PUSH_AFTER_EOF:q,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:C},AbortError:X}=t(6371),{validateObject:I}=t(277),B=w("kPaused"),{StringDecoder:U}=t(3141),P=t(6532);c(R.prototype,x.prototype),c(R,x);const J=()=>{},{errorOrDestroy:D}=T,V=1,te=16,le=32,ee=64,M=2048,E=4096,W=65536;function z($){return{enumerable:!1,get(){return!!(this.state&$)},set(H){H?this.state|=$:this.state&=~$}}}function Z($,H,de){typeof de!="boolean"&&(de=H instanceof t(3370)),this.state=M|E|te|le,$&&$.objectMode&&(this.state|=V),de&&$&&$.readableObjectMode&&(this.state|=V),this.highWaterMark=$?k(this,$,"readableHighWaterMark",de):b(!1),this.buffer=new O,this.length=0,this.pipes=[],this.flowing=null,this[B]=null,$&&$.emitClose===!1&&(this.state&=~M),$&&$.autoDestroy===!1&&(this.state&=~E),this.errored=null,this.defaultEncoding=$&&$.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,$&&$.encoding&&(this.decoder=new U($.encoding),this.encoding=$.encoding)}function R($){if(!(this instanceof R))return new R($);const H=this instanceof t(3370);this._readableState=new Z($,this,H),$&&(typeof $.read=="function"&&(this._read=$.read),typeof $.destroy=="function"&&(this._destroy=$.destroy),typeof $.construct=="function"&&(this._construct=$.construct),$.signal&&!H&&Q($.signal,this)),x.call(this,$),T.construct(this,()=>{this._readableState.needReadable&&m(this,this._readableState)})}function ne($,H,de,ue){y("readableAddChunk",H);const fe=$._readableState;let ve;if(fe.state&V||(typeof H=="string"?(de=de||fe.defaultEncoding,fe.encoding!==de&&(ue&&fe.encoding?H=A.from(H,de).toString(fe.encoding):(H=A.from(H,de),de=""))):H instanceof A?de="":x._isUint8Array(H)?(H=x._uint8ArrayToBuffer(H),de=""):H!=null&&(ve=new N("chunk",["string","Buffer","Uint8Array"],H))),ve)D($,ve);else if(H===null)fe.state&=-9,function(Ne,Ie){if(y("onEofChunk"),!Ie.ended){if(Ie.decoder){const ze=Ie.decoder.end();ze&&ze.length&&(Ie.buffer.push(ze),Ie.length+=Ie.objectMode?1:ze.length)}Ie.ended=!0,Ie.sync?oe(Ne):(Ie.needReadable=!1,Ie.emittedReadable=!0,u(Ne))}}($,fe);else if(fe.state&V||H&&H.length>0)if(ue)if(4&fe.state)D($,new C);else{if(fe.destroyed||fe.errored)return!1;Y($,fe,H,!0)}else if(fe.ended)D($,new q);else{if(fe.destroyed||fe.errored)return!1;fe.state&=-9,fe.decoder&&!de?(H=fe.decoder.write(H),fe.objectMode||H.length!==0?Y($,fe,H,!1):m($,fe)):Y($,fe,H,!1)}else ue||(fe.state&=-9,m($,fe));return!fe.ended&&(fe.length0?(H.state&W?H.awaitDrainWriters.clear():H.awaitDrainWriters=null,H.dataEmitted=!0,$.emit("data",de)):(H.length+=H.objectMode?1:de.length,ue?H.buffer.unshift(de):H.buffer.push(de),H.state&ee&&oe($)),m($,H)}function ie($,H){return $<=0||H.length===0&&H.ended?0:H.state&V?1:l($)?H.flowing&&H.length?H.buffer.first().length:H.length:$<=H.length?$:H.ended?H.length:0}function oe($){const H=$._readableState;y("emitReadable",H.needReadable,H.emittedReadable),H.needReadable=!1,H.emittedReadable||(y("emitReadable",H.flowing),H.emittedReadable=!0,r.nextTick(u,$))}function u($){const H=$._readableState;y("emitReadable_",H.destroyed,H.length,H.ended),H.destroyed||H.errored||!H.length&&!H.ended||($.emit("readable"),H.emittedReadable=!1),H.needReadable=!H.flowing&&!H.ended&&H.length<=H.highWaterMark,ce($)}function m($,H){!H.readingMore&&H.constructed&&(H.readingMore=!0,r.nextTick(_,$,H))}function _($,H){for(;!H.reading&&!H.ended&&(H.length0,H.resumeScheduled&&H[B]===!1?H.flowing=!0:$.listenerCount("data")>0?$.resume():H.readableListening||(H.flowing=null)}function G($){y("readable nexttick read 0"),$.read(0)}function re($,H){y("resume",H.reading),H.reading||$.read(0),H.resumeScheduled=!1,$.emit("resume"),ce($),H.flowing&&!H.reading&&$.read(0)}function ce($){const H=$._readableState;for(y("flow",H.flowing);H.flowing&&$.read()!==null;);}function he($,H){typeof $.read!="function"&&($=R.wrap($,{objectMode:!0}));const de=async function*(ue,fe){let ve,Ne=J;function Ie(Ce){this===ue?(Ne(),Ne=J):Ne=Ce}ue.on("readable",Ie);const ze=S(ue,{writable:!1},Ce=>{ve=Ce?L(ve,Ce):null,Ne(),Ne=J});try{for(;;){const Ce=ue.destroyed?null:ue.read();if(Ce!==null)yield Ce;else{if(ve)throw ve;if(ve===null)return;await new p(Ie)}}}catch(Ce){throw ve=L(ve,Ce),ve}finally{!ve&&(fe==null?void 0:fe.destroyOnReturn)===!1||ve!==void 0&&!ue._readableState.autoDestroy?(ue.off("readable",Ie),ze()):T.destroyer(ue,null)}}($,H);return de.stream=$,de}function pe($,H){if(H.length===0)return null;let de;return H.objectMode?de=H.buffer.shift():!$||$>=H.length?(de=H.decoder?H.buffer.join(""):H.buffer.length===1?H.buffer.first():H.buffer.concat(H.length),H.buffer.clear()):de=H.buffer.consume($,H.decoder),de}function me($){const H=$._readableState;y("endReadable",H.endEmitted),H.endEmitted||(H.ended=!0,r.nextTick(ge,H,$))}function ge($,H){if(y("endReadableNT",$.endEmitted,$.length),!$.errored&&!$.closeEmitted&&!$.endEmitted&&$.length===0){if($.endEmitted=!0,H.emit("end"),H.writable&&H.allowHalfOpen===!1)r.nextTick(_e,H);else if($.autoDestroy){const de=H._writableState;(!de||de.autoDestroy&&(de.finished||de.writable===!1))&&H.destroy()}}}function _e($){$.writable&&!$.writableEnded&&!$.destroyed&&$.end()}let it;function Pe(){return it===void 0&&(it={}),it}i(Z.prototype,{objectMode:z(V),ended:z(2),endEmitted:z(4),reading:z(8),constructed:z(te),sync:z(le),needReadable:z(ee),emittedReadable:z(128),readableListening:z(256),resumeScheduled:z(512),errorEmitted:z(1024),emitClose:z(M),autoDestroy:z(E),destroyed:z(8192),closed:z(16384),closeEmitted:z(32768),multiAwaitDrain:z(W),readingMore:z(1<<17),dataEmitted:z(1<<18)}),R.prototype.destroy=T.destroy,R.prototype._undestroy=T.undestroy,R.prototype._destroy=function($,H){H($)},R.prototype[g.captureRejectionSymbol]=function($){this.destroy($)},R.prototype[f]=function(){let $;return this.destroyed||($=this.readableEnded?null:new X,this.destroy($)),new p((H,de)=>S(this,ue=>ue&&ue!==$?de(ue):H(null)))},R.prototype.push=function($,H){return ne(this,$,H,!1)},R.prototype.unshift=function($,H){return ne(this,$,H,!0)},R.prototype.isPaused=function(){const $=this._readableState;return $[B]===!0||$.flowing===!1},R.prototype.setEncoding=function($){const H=new U($);this._readableState.decoder=H,this._readableState.encoding=this._readableState.decoder.encoding;const de=this._readableState.buffer;let ue="";for(const fe of de)ue+=H.write(fe);return de.clear(),ue!==""&&de.push(ue),this._readableState.length=ue.length,this},R.prototype.read=function($){y("read",$),$===void 0?$=NaN:a($)||($=d($,10));const H=this._readableState,de=$;if($>H.highWaterMark&&(H.highWaterMark=function(ve){if(ve>1073741824)throw new se("size","<= 1GiB",ve);return ve--,ve|=ve>>>1,ve|=ve>>>2,ve|=ve>>>4,ve|=ve>>>8,ve|=ve>>>16,++ve}($)),$!==0&&(H.state&=-129),$===0&&H.needReadable&&((H.highWaterMark!==0?H.length>=H.highWaterMark:H.length>0)||H.ended))return y("read: emitReadable",H.length,H.ended),H.length===0&&H.ended?me(this):oe(this),null;if(($=ie($,H))===0&&H.ended)return H.length===0&&me(this),null;let ue,fe=!!(H.state&ee);if(y("need readable",fe),(H.length===0||H.length-$0?pe($,H):null,ue===null?(H.needReadable=H.length<=H.highWaterMark,$=0):(H.length-=$,H.multiAwaitDrain?H.awaitDrainWriters.clear():H.awaitDrainWriters=null),H.length===0&&(H.ended||(H.needReadable=!0),de!==$&&H.ended&&me(this)),ue===null||H.errorEmitted||H.closeEmitted||(H.dataEmitted=!0,this.emit("data",ue)),ue},R.prototype._read=function($){throw new K("_read()")},R.prototype.pipe=function($,H){const de=this,ue=this._readableState;ue.pipes.length===1&&(ue.multiAwaitDrain||(ue.multiAwaitDrain=!0,ue.awaitDrainWriters=new v(ue.awaitDrainWriters?[ue.awaitDrainWriters]:[]))),ue.pipes.push($),y("pipe count=%d opts=%j",ue.pipes.length,H);const fe=H&&H.end===!1||$===r.stdout||$===r.stderr?st:ve;function ve(){y("onend"),$.end()}let Ne;ue.endEmitted?r.nextTick(fe):de.once("end",fe),$.on("unpipe",function $e(Ge,Be){y("onunpipe"),Ge===de&&Be&&Be.hasUnpiped===!1&&(Be.hasUnpiped=!0,y("cleanup"),$.removeListener("close",Lt),$.removeListener("finish",At),Ne&&$.removeListener("drain",Ne),$.removeListener("error",kt),$.removeListener("unpipe",$e),de.removeListener("end",ve),de.removeListener("end",st),de.removeListener("data",Ce),Ie=!0,Ne&&ue.awaitDrainWriters&&(!$._writableState||$._writableState.needDrain)&&Ne())});let Ie=!1;function ze(){Ie||(ue.pipes.length===1&&ue.pipes[0]===$?(y("false write response, pause",0),ue.awaitDrainWriters=$,ue.multiAwaitDrain=!1):ue.pipes.length>1&&ue.pipes.includes($)&&(y("false write response, pause",ue.awaitDrainWriters.size),ue.awaitDrainWriters.add($)),de.pause()),Ne||(Ne=function($e,Ge){return function(){const Be=$e._readableState;Be.awaitDrainWriters===Ge?(y("pipeOnDrain",1),Be.awaitDrainWriters=null):Be.multiAwaitDrain&&(y("pipeOnDrain",Be.awaitDrainWriters.size),Be.awaitDrainWriters.delete(Ge)),Be.awaitDrainWriters&&Be.awaitDrainWriters.size!==0||!$e.listenerCount("data")||$e.resume()}}(de,$),$.on("drain",Ne))}function Ce($e){y("ondata");const Ge=$.write($e);y("dest.write",Ge),Ge===!1&&ze()}function kt($e){if(y("onerror",$e),st(),$.removeListener("error",kt),$.listenerCount("error")===0){const Ge=$._writableState||$._readableState;Ge&&!Ge.errorEmitted?D($,$e):$.emit("error",$e)}}function Lt(){$.removeListener("finish",At),st()}function At(){y("onfinish"),$.removeListener("close",Lt),st()}function st(){y("unpipe"),de.unpipe($)}return de.on("data",Ce),j($,"error",kt),$.once("close",Lt),$.once("finish",At),$.emit("pipe",de),$.writableNeedDrain===!0?ze():ue.flowing||(y("pipe resume"),de.resume()),$},R.prototype.unpipe=function($){const H=this._readableState;if(H.pipes.length===0)return this;if(!$){const ue=H.pipes;H.pipes=[],this.pause();for(let fe=0;fe0,ue.flowing!==!1&&this.resume()):$==="readable"&&(ue.endEmitted||ue.readableListening||(ue.readableListening=ue.needReadable=!0,ue.flowing=!1,ue.emittedReadable=!1,y("on readable",ue.length,ue.reading),ue.length?oe(this):ue.reading||r.nextTick(G,this))),de},R.prototype.addListener=R.prototype.on,R.prototype.removeListener=function($,H){const de=x.prototype.removeListener.call(this,$,H);return $==="readable"&&r.nextTick(F,this),de},R.prototype.off=R.prototype.removeListener,R.prototype.removeAllListeners=function($){const H=x.prototype.removeAllListeners.apply(this,arguments);return $!=="readable"&&$!==void 0||r.nextTick(F,this),H},R.prototype.resume=function(){const $=this._readableState;return $.flowing||(y("resume"),$.flowing=!$.readableListening,function(H,de){de.resumeScheduled||(de.resumeScheduled=!0,r.nextTick(re,H,de))}(this,$)),$[B]=!1,this},R.prototype.pause=function(){return y("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(y("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[B]=!0,this},R.prototype.wrap=function($){let H=!1;$.on("data",ue=>{!this.push(ue)&&$.pause&&(H=!0,$.pause())}),$.on("end",()=>{this.push(null)}),$.on("error",ue=>{D(this,ue)}),$.on("close",()=>{this.destroy()}),$.on("destroy",()=>{this.destroy()}),this._read=()=>{H&&$.resume&&(H=!1,$.resume())};const de=o($);for(let ue=1;ue{const{MathFloor:r,NumberIsInteger:n}=t(4134),{validateInteger:a}=t(277),{ERR_INVALID_ARG_VALUE:l}=t(6371).codes;let d=16384,i=16;function o(c){return c?i:d}s.exports={getHighWaterMark:function(c,p,v,f){const h=function(w,g,x){return w.highWaterMark!=null?w.highWaterMark:g?w[x]:null}(p,f,v);if(h!=null){if(!n(h)||h<0)throw new l(f?`options.${v}`:"options.highWaterMark",h);return r(h)}return o(c.objectMode)},getDefaultHighWaterMark:o,setDefaultHighWaterMark:function(c,p){a(p,"value",0),c?i=p:d=p}}},5001:(s,e,t)=>{const{ObjectSetPrototypeOf:r,Symbol:n}=t(4134);s.exports=o;const{ERR_METHOD_NOT_IMPLEMENTED:a}=t(6371).codes,l=t(3370),{getHighWaterMark:d}=t(5291);r(o.prototype,l.prototype),r(o,l);const i=n("kCallback");function o(v){if(!(this instanceof o))return new o(v);const f=v?d(this,v,"readableHighWaterMark",!0):null;f===0&&(v={...v,highWaterMark:null,readableHighWaterMark:f,writableHighWaterMark:v.writableHighWaterMark||0}),l.call(this,v),this._readableState.sync=!1,this[i]=null,v&&(typeof v.transform=="function"&&(this._transform=v.transform),typeof v.flush=="function"&&(this._flush=v.flush)),this.on("prefinish",p)}function c(v){typeof this._flush!="function"||this.destroyed?(this.push(null),v&&v()):this._flush((f,h)=>{f?v?v(f):this.destroy(f):(h!=null&&this.push(h),this.push(null),v&&v())})}function p(){this._final!==c&&c.call(this)}o.prototype._final=c,o.prototype._transform=function(v,f,h){throw new a("_transform()")},o.prototype._write=function(v,f,h){const w=this._readableState,g=this._writableState,x=w.length;this._transform(v,f,(j,A)=>{j?h(j):(A!=null&&this.push(A),g.ended||x===w.length||w.length{const{SymbolAsyncIterator:r,SymbolIterator:n,SymbolFor:a}=t(4134),l=a("nodejs.stream.destroyed"),d=a("nodejs.stream.errored"),i=a("nodejs.stream.readable"),o=a("nodejs.stream.writable"),c=a("nodejs.stream.disturbed"),p=a("nodejs.webstream.isClosedPromise"),v=a("nodejs.webstream.controllerErrorFunction");function f(b,L=!1){var N;return!(!b||typeof b.pipe!="function"||typeof b.on!="function"||L&&(typeof b.pause!="function"||typeof b.resume!="function")||b._writableState&&((N=b._readableState)===null||N===void 0?void 0:N.readable)===!1||b._writableState&&!b._readableState)}function h(b){var L;return!(!b||typeof b.write!="function"||typeof b.on!="function"||b._readableState&&((L=b._writableState)===null||L===void 0?void 0:L.writable)===!1)}function w(b){return b&&(b._readableState||b._writableState||typeof b.write=="function"&&typeof b.on=="function"||typeof b.pipe=="function"&&typeof b.on=="function")}function g(b){return!(!b||w(b)||typeof b.pipeThrough!="function"||typeof b.getReader!="function"||typeof b.cancel!="function")}function x(b){return!(!b||w(b)||typeof b.getWriter!="function"||typeof b.abort!="function")}function j(b){return!(!b||w(b)||typeof b.readable!="object"||typeof b.writable!="object")}function A(b){if(!w(b))return null;const L=b._writableState,N=b._readableState,K=L||N;return!!(b.destroyed||b[l]||K!=null&&K.destroyed)}function Q(b){if(!h(b))return null;if(b.writableEnded===!0)return!0;const L=b._writableState;return(L==null||!L.errored)&&(typeof(L==null?void 0:L.ended)!="boolean"?null:L.ended)}function S(b,L){if(!f(b))return null;const N=b._readableState;return(N==null||!N.errored)&&(typeof(N==null?void 0:N.endEmitted)!="boolean"?null:!!(N.endEmitted||L===!1&&N.ended===!0&&N.length===0))}function y(b){return b&&b[i]!=null?b[i]:typeof(b==null?void 0:b.readable)!="boolean"?null:!A(b)&&f(b)&&b.readable&&!S(b)}function O(b){return b&&b[o]!=null?b[o]:typeof(b==null?void 0:b.writable)!="boolean"?null:!A(b)&&h(b)&&b.writable&&!Q(b)}function T(b){return typeof b._closed=="boolean"&&typeof b._defaultKeepAlive=="boolean"&&typeof b._removedConnection=="boolean"&&typeof b._removedContLen=="boolean"}function k(b){return typeof b._sent100=="boolean"&&T(b)}s.exports={isDestroyed:A,kIsDestroyed:l,isDisturbed:function(b){var L;return!(!b||!((L=b[c])!==null&&L!==void 0?L:b.readableDidRead||b.readableAborted))},kIsDisturbed:c,isErrored:function(b){var L,N,K,se,q,C,X,I,B,U;return!(!b||!((L=(N=(K=(se=(q=(C=b[d])!==null&&C!==void 0?C:b.readableErrored)!==null&&q!==void 0?q:b.writableErrored)!==null&&se!==void 0?se:(X=b._readableState)===null||X===void 0?void 0:X.errorEmitted)!==null&&K!==void 0?K:(I=b._writableState)===null||I===void 0?void 0:I.errorEmitted)!==null&&N!==void 0?N:(B=b._readableState)===null||B===void 0?void 0:B.errored)!==null&&L!==void 0?L:!((U=b._writableState)===null||U===void 0)&&U.errored))},kIsErrored:d,isReadable:y,kIsReadable:i,kIsClosedPromise:p,kControllerErrorFunction:v,kIsWritable:o,isClosed:function(b){if(!w(b))return null;if(typeof b.closed=="boolean")return b.closed;const L=b._writableState,N=b._readableState;return typeof(L==null?void 0:L.closed)=="boolean"||typeof(N==null?void 0:N.closed)=="boolean"?(L==null?void 0:L.closed)||(N==null?void 0:N.closed):typeof b._closed=="boolean"&&T(b)?b._closed:null},isDuplexNodeStream:function(b){return!(!b||typeof b.pipe!="function"||!b._readableState||typeof b.on!="function"||typeof b.write!="function")},isFinished:function(b,L){return w(b)?!(!A(b)&&((L==null?void 0:L.readable)!==!1&&y(b)||(L==null?void 0:L.writable)!==!1&&O(b))):null},isIterable:function(b,L){return b!=null&&(L===!0?typeof b[r]=="function":L===!1?typeof b[n]=="function":typeof b[r]=="function"||typeof b[n]=="function")},isReadableNodeStream:f,isReadableStream:g,isReadableEnded:function(b){if(!f(b))return null;if(b.readableEnded===!0)return!0;const L=b._readableState;return!(!L||L.errored)&&(typeof(L==null?void 0:L.ended)!="boolean"?null:L.ended)},isReadableFinished:S,isReadableErrored:function(b){var L,N;return w(b)?b.readableErrored?b.readableErrored:(L=(N=b._readableState)===null||N===void 0?void 0:N.errored)!==null&&L!==void 0?L:null:null},isNodeStream:w,isWebStream:function(b){return g(b)||x(b)||j(b)},isWritable:O,isWritableNodeStream:h,isWritableStream:x,isWritableEnded:Q,isWritableFinished:function(b,L){if(!h(b))return null;if(b.writableFinished===!0)return!0;const N=b._writableState;return(N==null||!N.errored)&&(typeof(N==null?void 0:N.finished)!="boolean"?null:!!(N.finished||L===!1&&N.ended===!0&&N.length===0))},isWritableErrored:function(b){var L,N;return w(b)?b.writableErrored?b.writableErrored:(L=(N=b._writableState)===null||N===void 0?void 0:N.errored)!==null&&L!==void 0?L:null:null},isServerRequest:function(b){var L;return typeof b._consuming=="boolean"&&typeof b._dumped=="boolean"&&((L=b.req)===null||L===void 0?void 0:L.upgradeOrConnect)===void 0},isServerResponse:k,willEmitClose:function(b){if(!w(b))return null;const L=b._writableState,N=b._readableState,K=L||N;return!K&&k(b)||!!(K&&K.autoDestroy&&K.emitClose&&K.closed===!1)},isTransformStream:j}},8584:(s,e,t)=>{const r=t(5606),{ArrayPrototypeSlice:n,Error:a,FunctionPrototypeSymbolHasInstance:l,ObjectDefineProperty:d,ObjectDefineProperties:i,ObjectSetPrototypeOf:o,StringPrototypeToLowerCase:c,Symbol:p,SymbolHasInstance:v}=t(4134);s.exports=I,I.WritableState=C;const{EventEmitter:f}=t(7007),h=t(4259).Stream,{Buffer:w}=t(8287),g=t(5896),{addAbortSignal:x}=t(4147),{getHighWaterMark:j,getDefaultHighWaterMark:A}=t(5291),{ERR_INVALID_ARG_TYPE:Q,ERR_METHOD_NOT_IMPLEMENTED:S,ERR_MULTIPLE_CALLBACK:y,ERR_STREAM_CANNOT_PIPE:O,ERR_STREAM_DESTROYED:T,ERR_STREAM_ALREADY_FINISHED:k,ERR_STREAM_NULL_VALUES:b,ERR_STREAM_WRITE_AFTER_END:L,ERR_UNKNOWN_ENCODING:N}=t(6371).codes,{errorOrDestroy:K}=g;function se(){}o(I.prototype,h.prototype),o(I,h);const q=p("kOnFinished");function C(R,ne,Y){typeof Y!="boolean"&&(Y=ne instanceof t(3370)),this.objectMode=!(!R||!R.objectMode),Y&&(this.objectMode=this.objectMode||!(!R||!R.writableObjectMode)),this.highWaterMark=R?j(this,R,"writableHighWaterMark",Y):A(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const ie=!(!R||R.decodeStrings!==!1);this.decodeStrings=!ie,this.defaultEncoding=R&&R.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=J.bind(void 0,ne),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,X(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!R||R.emitClose!==!1,this.autoDestroy=!R||R.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[q]=[]}function X(R){R.buffered=[],R.bufferedIndex=0,R.allBuffers=!0,R.allNoop=!0}function I(R){const ne=this instanceof t(3370);if(!ne&&!l(I,this))return new I(R);this._writableState=new C(R,this,ne),R&&(typeof R.write=="function"&&(this._write=R.write),typeof R.writev=="function"&&(this._writev=R.writev),typeof R.destroy=="function"&&(this._destroy=R.destroy),typeof R.final=="function"&&(this._final=R.final),typeof R.construct=="function"&&(this._construct=R.construct),R.signal&&x(R.signal,this)),h.call(this,R),g.construct(this,()=>{const Y=this._writableState;Y.writing||le(this,Y),M(this,Y)})}function B(R,ne,Y,ie){const oe=R._writableState;if(typeof Y=="function")ie=Y,Y=oe.defaultEncoding;else{if(Y){if(Y!=="buffer"&&!w.isEncoding(Y))throw new N(Y)}else Y=oe.defaultEncoding;typeof ie!="function"&&(ie=se)}if(ne===null)throw new b;if(!oe.objectMode)if(typeof ne=="string")oe.decodeStrings!==!1&&(ne=w.from(ne,Y),Y="buffer");else if(ne instanceof w)Y="buffer";else{if(!h._isUint8Array(ne))throw new Q("chunk",["string","Buffer","Uint8Array"],ne);ne=h._uint8ArrayToBuffer(ne),Y="buffer"}let u;return oe.ending?u=new L:oe.destroyed&&(u=new T("write")),u?(r.nextTick(ie,u),K(R,u,!0),u):(oe.pendingcb++,function(m,_,F,G,re){const ce=_.objectMode?1:F.length;_.length+=ce;const he=_.length<_.highWaterMark;return he||(_.needDrain=!0),_.writing||_.corked||_.errored||!_.constructed?(_.buffered.push({chunk:F,encoding:G,callback:re}),_.allBuffers&&G!=="buffer"&&(_.allBuffers=!1),_.allNoop&&re!==se&&(_.allNoop=!1)):(_.writelen=ce,_.writecb=re,_.writing=!0,_.sync=!0,m._write(F,G,_.onwrite),_.sync=!1),he&&!_.errored&&!_.destroyed}(R,oe,ne,Y,ie))}function U(R,ne,Y,ie,oe,u,m){ne.writelen=ie,ne.writecb=m,ne.writing=!0,ne.sync=!0,ne.destroyed?ne.onwrite(new T("write")):Y?R._writev(oe,ne.onwrite):R._write(oe,u,ne.onwrite),ne.sync=!1}function P(R,ne,Y,ie){--ne.pendingcb,ie(Y),te(ne),K(R,Y)}function J(R,ne){const Y=R._writableState,ie=Y.sync,oe=Y.writecb;typeof oe=="function"?(Y.writing=!1,Y.writecb=null,Y.length-=Y.writelen,Y.writelen=0,ne?(ne.stack,Y.errored||(Y.errored=ne),R._readableState&&!R._readableState.errored&&(R._readableState.errored=ne),ie?r.nextTick(P,R,Y,ne,oe):P(R,Y,ne,oe)):(Y.buffered.length>Y.bufferedIndex&&le(R,Y),ie?Y.afterWriteTickInfo!==null&&Y.afterWriteTickInfo.cb===oe?Y.afterWriteTickInfo.count++:(Y.afterWriteTickInfo={count:1,cb:oe,stream:R,state:Y},r.nextTick(D,Y.afterWriteTickInfo)):V(R,Y,1,oe))):K(R,new y)}function D({stream:R,state:ne,count:Y,cb:ie}){return ne.afterWriteTickInfo=null,V(R,ne,Y,ie)}function V(R,ne,Y,ie){for(!ne.ending&&!R.destroyed&&ne.length===0&&ne.needDrain&&(ne.needDrain=!1,R.emit("drain"));Y-- >0;)ne.pendingcb--,ie();ne.destroyed&&te(ne),M(R,ne)}function te(R){if(R.writing)return;for(let oe=R.bufferedIndex;oe1&&R._writev){ne.pendingcb-=u-1;const _=ne.allNoop?se:G=>{for(let re=m;re256?(Y.splice(0,m),ne.bufferedIndex=0):ne.bufferedIndex=m}ne.bufferProcessing=!1}function ee(R){return R.ending&&!R.destroyed&&R.constructed&&R.length===0&&!R.errored&&R.buffered.length===0&&!R.finished&&!R.writing&&!R.errorEmitted&&!R.closeEmitted}function M(R,ne,Y){ee(ne)&&(function(ie,oe){oe.prefinished||oe.finalCalled||(typeof ie._final!="function"||oe.destroyed?(oe.prefinished=!0,ie.emit("prefinish")):(oe.finalCalled=!0,function(u,m){let _=!1;function F(G){if(_)K(u,G??y());else if(_=!0,m.pendingcb--,G){const re=m[q].splice(0);for(let ce=0;ce{ee(oe)?E(ie,oe):oe.pendingcb--},R,ne)):ee(ne)&&(ne.pendingcb++,E(R,ne))))}function E(R,ne){ne.pendingcb--,ne.finished=!0;const Y=ne[q].splice(0);for(let ie=0;ie{const{ArrayIsArray:r,ArrayPrototypeIncludes:n,ArrayPrototypeJoin:a,ArrayPrototypeMap:l,NumberIsInteger:d,NumberIsNaN:i,NumberMAX_SAFE_INTEGER:o,NumberMIN_SAFE_INTEGER:c,NumberParseInt:p,ObjectPrototypeHasOwnProperty:v,RegExpPrototypeExec:f,String:h,StringPrototypeToUpperCase:w,StringPrototypeTrim:g}=t(4134),{hideStackFrames:x,codes:{ERR_SOCKET_BAD_PORT:j,ERR_INVALID_ARG_TYPE:A,ERR_INVALID_ARG_VALUE:Q,ERR_OUT_OF_RANGE:S,ERR_UNKNOWN_SIGNAL:y}}=t(6371),{normalizeEncoding:O}=t(7760),{isAsyncFunction:T,isArrayBufferView:k}=t(7760).types,b={},L=/^[0-7]+$/,N=x((E,W,z=c,Z=o)=>{if(typeof E!="number")throw new A(W,"number",E);if(!d(E))throw new S(W,"an integer",E);if(EZ)throw new S(W,`>= ${z} && <= ${Z}`,E)}),K=x((E,W,z=-2147483648,Z=2147483647)=>{if(typeof E!="number")throw new A(W,"number",E);if(!d(E))throw new S(W,"an integer",E);if(EZ)throw new S(W,`>= ${z} && <= ${Z}`,E)}),se=x((E,W,z=!1)=>{if(typeof E!="number")throw new A(W,"number",E);if(!d(E))throw new S(W,"an integer",E);const Z=z?1:0,R=4294967295;if(ER)throw new S(W,`>= ${Z} && <= ${R}`,E)});function q(E,W){if(typeof E!="string")throw new A(W,"string",E)}const C=x((E,W,z)=>{if(!n(z,E)){const Z=a(l(z,R=>typeof R=="string"?`'${R}'`:h(R)),", ");throw new Q(W,E,"must be one of: "+Z)}});function X(E,W){if(typeof E!="boolean")throw new A(W,"boolean",E)}function I(E,W,z){return E!=null&&v(E,W)?E[W]:z}const B=x((E,W,z=null)=>{const Z=I(z,"allowArray",!1),R=I(z,"allowFunction",!1);if(!I(z,"nullable",!1)&&E===null||!Z&&r(E)||typeof E!="object"&&(!R||typeof E!="function"))throw new A(W,"Object",E)}),U=x((E,W)=>{if(E!=null&&typeof E!="object"&&typeof E!="function")throw new A(W,"a dictionary",E)}),P=x((E,W,z=0)=>{if(!r(E))throw new A(W,"Array",E);if(E.length{if(!k(E))throw new A(W,["Buffer","TypedArray","DataView"],E)}),D=x((E,W)=>{if(E!==void 0&&(E===null||typeof E!="object"||!("aborted"in E)))throw new A(W,"AbortSignal",E)}),V=x((E,W)=>{if(typeof E!="function")throw new A(W,"Function",E)}),te=x((E,W)=>{if(typeof E!="function"||T(E))throw new A(W,"Function",E)}),le=x((E,W)=>{if(E!==void 0)throw new A(W,"undefined",E)}),ee=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function M(E,W){if(E===void 0||!f(ee,E))throw new Q(W,E,'must be an array or string of format "; rel=preload; as=style"')}s.exports={isInt32:function(E){return E===(0|E)},isUint32:function(E){return E===E>>>0},parseFileMode:function(E,W,z){if(E===void 0&&(E=z),typeof E=="string"){if(f(L,E)===null)throw new Q(W,E,"must be a 32-bit unsigned integer or an octal string");E=p(E,8)}return se(E,W),E},validateArray:P,validateStringArray:function(E,W){P(E,W);for(let z=0;zZ||(z!=null||Z!=null)&&i(E))throw new S(W,`${z!=null?`>= ${z}`:""}${z!=null&&Z!=null?" && ":""}${Z!=null?`<= ${Z}`:""}`,E)},validateObject:B,validateOneOf:C,validatePlainFunction:te,validatePort:function(E,W="Port",z=!0){if(typeof E!="number"&&typeof E!="string"||typeof E=="string"&&g(E).length===0||+E!=+E>>>0||E>65535||E===0&&!z)throw new j(W,E,z);return 0|E},validateSignalName:function(E,W="signal"){if(q(E,W),b[E]===void 0)throw b[w(E)]!==void 0?new y(E+" (signals must use all capital letters)"):new y(E)},validateString:q,validateUint32:se,validateUndefined:le,validateUnion:function(E,W,z){if(!n(z,E))throw new A(W,`('${a(z,"|")}')`,E)},validateAbortSignal:D,validateLinkHeaderValue:function(E){if(typeof E=="string")return M(E,"hints"),E;if(r(E)){const W=E.length;let z="";if(W===0)return z;for(let Z=0;Z; rel=preload; as=style"')}}},9198:(s,e,t)=>{const r=t(5506),n=t(3095),a=r.Readable.destroy;s.exports=r.Readable,s.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer,s.exports._isUint8Array=r._isUint8Array,s.exports.isDisturbed=r.isDisturbed,s.exports.isErrored=r.isErrored,s.exports.isReadable=r.isReadable,s.exports.Readable=r.Readable,s.exports.Writable=r.Writable,s.exports.Duplex=r.Duplex,s.exports.Transform=r.Transform,s.exports.PassThrough=r.PassThrough,s.exports.addAbortSignal=r.addAbortSignal,s.exports.finished=r.finished,s.exports.destroy=r.destroy,s.exports.destroy=a,s.exports.pipeline=r.pipeline,s.exports.compose=r.compose,Object.defineProperty(r,"promises",{configurable:!0,enumerable:!0,get:()=>n}),s.exports.Stream=r.Stream,s.exports.default=s.exports},6371:(s,e,t)=>{const{format:r,inspect:n,AggregateError:a}=t(7760),l=globalThis.AggregateError||a,d=Symbol("kIsNodeError"),i=["string","function","number","object","Function","Object","boolean","bigint","symbol"],o=/^([A-Z][a-z0-9]*)+$/,c={};function p(g,x){if(!g)throw new c.ERR_INTERNAL_ASSERTION(x)}function v(g){let x="",j=g.length;const A=g[0]==="-"?1:0;for(;j>=A+4;j-=3)x=`_${g.slice(j-3,j)}${x}`;return`${g.slice(0,j)}${x}`}function f(g,x,j){j||(j=Error);class A extends j{constructor(...S){super(function(y,O,T){if(typeof O=="function")return p(O.length<=T.length,`Code: ${y}; The provided arguments length (${T.length}) does not match the required ones (${O.length}).`),O(...T);const k=(O.match(/%[dfijoOs]/g)||[]).length;return p(k===T.length,`Code: ${y}; The provided arguments length (${T.length}) does not match the required ones (${k}).`),T.length===0?O:r(O,...T)}(g,x,S))}toString(){return`${this.name} [${g}]: ${this.message}`}}Object.defineProperties(A.prototype,{name:{value:j.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${g}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),A.prototype.code=g,A.prototype[d]=!0,c[g]=A}function h(g){const x="__node_internal_"+g.name;return Object.defineProperty(g,"name",{value:x}),g}class w extends Error{constructor(x="The operation was aborted",j=void 0){if(j!==void 0&&typeof j!="object")throw new c.ERR_INVALID_ARG_TYPE("options","Object",j);super(x,j),this.code="ABORT_ERR",this.name="AbortError"}}f("ERR_ASSERTION","%s",Error),f("ERR_INVALID_ARG_TYPE",(g,x,j)=>{p(typeof g=="string","'name' must be a string"),Array.isArray(x)||(x=[x]);let A="The ";g.endsWith(" argument")?A+=`${g} `:A+=`"${g}" ${g.includes(".")?"property":"argument"} `,A+="must be ";const Q=[],S=[],y=[];for(const T of x)p(typeof T=="string","All expected entries have to be of type string"),i.includes(T)?Q.push(T.toLowerCase()):o.test(T)?S.push(T):(p(T!=="object",'The value "object" should be written as "Object"'),y.push(T));if(S.length>0){const T=Q.indexOf("object");T!==-1&&(Q.splice(Q,T,1),S.push("Object"))}if(Q.length>0){switch(Q.length){case 1:A+=`of type ${Q[0]}`;break;case 2:A+=`one of type ${Q[0]} or ${Q[1]}`;break;default:{const T=Q.pop();A+=`one of type ${Q.join(", ")}, or ${T}`}}(S.length>0||y.length>0)&&(A+=" or ")}if(S.length>0){switch(S.length){case 1:A+=`an instance of ${S[0]}`;break;case 2:A+=`an instance of ${S[0]} or ${S[1]}`;break;default:{const T=S.pop();A+=`an instance of ${S.join(", ")}, or ${T}`}}y.length>0&&(A+=" or ")}switch(y.length){case 0:break;case 1:y[0].toLowerCase()!==y[0]&&(A+="an "),A+=`${y[0]}`;break;case 2:A+=`one of ${y[0]} or ${y[1]}`;break;default:{const T=y.pop();A+=`one of ${y.join(", ")}, or ${T}`}}if(j==null)A+=`. Received ${j}`;else if(typeof j=="function"&&j.name)A+=`. Received function ${j.name}`;else if(typeof j=="object"){var O;(O=j.constructor)!==null&&O!==void 0&&O.name?A+=`. Received an instance of ${j.constructor.name}`:A+=`. Received ${n(j,{depth:-1})}`}else{let T=n(j,{colors:!1});T.length>25&&(T=`${T.slice(0,25)}...`),A+=`. Received type ${typeof j} (${T})`}return A},TypeError),f("ERR_INVALID_ARG_VALUE",(g,x,j="is invalid")=>{let A=n(x);return A.length>128&&(A=A.slice(0,128)+"..."),`The ${g.includes(".")?"property":"argument"} '${g}' ${j}. Received ${A}`},TypeError),f("ERR_INVALID_RETURN_VALUE",(g,x,j)=>{var A;return`Expected ${g} to be returned from the "${x}" function but got ${j!=null&&(A=j.constructor)!==null&&A!==void 0&&A.name?`instance of ${j.constructor.name}`:"type "+typeof j}.`},TypeError),f("ERR_MISSING_ARGS",(...g)=>{let x;p(g.length>0,"At least one arg needs to be specified");const j=g.length;switch(g=(Array.isArray(g)?g:[g]).map(A=>`"${A}"`).join(" or "),j){case 1:x+=`The ${g[0]} argument`;break;case 2:x+=`The ${g[0]} and ${g[1]} arguments`;break;default:{const A=g.pop();x+=`The ${g.join(", ")}, and ${A} arguments`}}return`${x} must be specified`},TypeError),f("ERR_OUT_OF_RANGE",(g,x,j)=>{let A;return p(x,'Missing "range" argument'),Number.isInteger(j)&&Math.abs(j)>2**32?A=v(String(j)):typeof j=="bigint"?(A=String(j),(j>2n**32n||j<-(2n**32n))&&(A=v(A)),A+="n"):A=n(j),`The value of "${g}" is out of range. It must be ${x}. Received ${A}`},RangeError),f("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),f("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),f("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),f("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),f("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),f("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),f("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),f("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),f("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),f("ERR_STREAM_WRITE_AFTER_END","write after end",Error),f("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),s.exports={AbortError:w,aggregateTwoErrors:h(function(g,x){if(g&&x&&g!==x){if(Array.isArray(x.errors))return x.errors.push(g),x;const j=new l([x,g],x.message);return j.code=x.code,j}return g||x}),hideStackFrames:h,codes:c}},4134:s=>{s.exports={ArrayIsArray:e=>Array.isArray(e),ArrayPrototypeIncludes:(e,t)=>e.includes(t),ArrayPrototypeIndexOf:(e,t)=>e.indexOf(t),ArrayPrototypeJoin:(e,t)=>e.join(t),ArrayPrototypeMap:(e,t)=>e.map(t),ArrayPrototypePop:(e,t)=>e.pop(t),ArrayPrototypePush:(e,t)=>e.push(t),ArrayPrototypeSlice:(e,t,r)=>e.slice(t,r),Error,FunctionPrototypeCall:(e,t,...r)=>e.call(t,...r),FunctionPrototypeSymbolHasInstance:(e,t)=>Function.prototype[Symbol.hasInstance].call(e,t),MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties:(e,t)=>Object.defineProperties(e,t),ObjectDefineProperty:(e,t,r)=>Object.defineProperty(e,t,r),ObjectGetOwnPropertyDescriptor:(e,t)=>Object.getOwnPropertyDescriptor(e,t),ObjectKeys:e=>Object.keys(e),ObjectSetPrototypeOf:(e,t)=>Object.setPrototypeOf(e,t),Promise,PromisePrototypeCatch:(e,t)=>e.catch(t),PromisePrototypeThen:(e,t,r)=>e.then(t,r),PromiseReject:e=>Promise.reject(e),PromiseResolve:e=>Promise.resolve(e),ReflectApply:Reflect.apply,RegExpPrototypeTest:(e,t)=>e.test(t),SafeSet:Set,String,StringPrototypeSlice:(e,t,r)=>e.slice(t,r),StringPrototypeToLowerCase:e=>e.toLowerCase(),StringPrototypeToUpperCase:e=>e.toUpperCase(),StringPrototypeTrim:e=>e.trim(),Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet:(e,t,r)=>e.set(t,r),Boolean,Uint8Array}},7760:(s,e,t)=>{const r=t(8287),{kResistStopPropagation:n,SymbolDispose:a}=t(4134),l=globalThis.AbortSignal||t(5568).AbortSignal,d=globalThis.AbortController||t(5568).AbortController,i=Object.getPrototypeOf(async function(){}).constructor,o=globalThis.Blob||r.Blob,c=o!==void 0?function(f){return f instanceof o}:function(f){return!1},p=(f,h)=>{if(f!==void 0&&(f===null||typeof f!="object"||!("aborted"in f)))throw new ERR_INVALID_ARG_TYPE(h,"AbortSignal",f)};class v extends Error{constructor(h){if(!Array.isArray(h))throw new TypeError("Expected input to be an Array, got "+typeof h);let w="";for(let g=0;gn.subject=o),type:"iri",id:"resourceUriInput"},null,8,["term"]),e("table",T,[v,(l(!0),d(y,null,j(n.dataModel,(o,a)=>(l(),d("tr",{key:a},[e("td",null,[m(c,{id:"form-pred-"+a,term:o.predicate,"onUpdate:term":i=>o.predicate=i,type:"iri"},null,8,["id","term","onUpdate:term"])]),e("td",null,[m(c,{id:"form-obj-"+a,term:o.object,"onUpdate:term":i=>o.object=i},null,8,["id","term","onUpdate:term"])]),e("td",null,[e("button",{type:"button",class:"btn btn-outline-dark",onClick:i=>u.newTriple(a)},"+",8,w),e("button",{type:"button",class:"btn btn-outline-dark",onClick:i=>u.delTriple(a)},"-",8,S)])]))),128))]),n.dataModel.length<1?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-dark mb-0",onClick:t[1]||(t[1]=o=>u.newTriple())},"+")):b("",!0),e("button",{type:"button",class:"btn btn-outline-primary mb-0",onClick:t[2]||(t[2]=(...o)=>u.submit&&u.submit(...o))},"Submit")]),n.debug==!1?(l(),d("a",{key:0,onClick:t[3]||(t[3]=o=>n.debug=!0)},"(show debug)")):b("",!0),n.debug?(l(),d("div",U,[e("a",{onClick:t[4]||(t[4]=o=>n.debug=!1)},"(hide debug)"),e("pre",null,"subject: "+p(n.subject)+` +import{_ as h,u as k,T as f,f as s,m as _,r as g,c as d,a as e,d as m,F as y,e as j,g as b,t as p,b as I,o as l}from"./index-BSywqiEU.js";const C={name:"InputForm",setup(){return{store:k()}},components:{TermInput:f},data(){return{debug:!1,subject:s.namedNode(""),dataModel:[s.quad(s.blankNode(""),s.namedNode(""),s.namedNode(""))]}},computed:{..._(I,["graph_iri"])},methods:{newTriple(r){r||(r=0),this.dataModel.splice(r+1,0,s.quad(s.blankNode(""),s.namedNode(""),s.namedNode("")))},delTriple(r){this.dataModel.splice(r,1)},submit(){for(const r in this.dataModel){const t=this.dataModel[r];t.subject=this.subject}this.store.deleteInsertData({insertArray:this.dataModel,graphIri:this.graph_iri})}}},N={class:"Form"},M=e("label",{for:"resourceUriInput"},"Resource IRI (Subject)",-1),T={width:"100%"},v=e("tr",null,[e("th",{scope:"col",width:"45%"},"Predicate"),e("th",{scope:"col",width:"auto"},"Object"),e("th",{scope:"col",width:"90px"})],-1),w=["onClick"],S=["onClick"],U={key:1};function F(r,t,B,R,n,u){const c=g("TermInput");return l(),d("div",N,[e("form",null,[M,m(c,{term:n.subject,"onUpdate:term":t[0]||(t[0]=o=>n.subject=o),type:"iri",id:"resourceUriInput"},null,8,["term"]),e("table",T,[v,(l(!0),d(y,null,j(n.dataModel,(o,a)=>(l(),d("tr",{key:a},[e("td",null,[m(c,{id:"form-pred-"+a,term:o.predicate,"onUpdate:term":i=>o.predicate=i,type:"iri"},null,8,["id","term","onUpdate:term"])]),e("td",null,[m(c,{id:"form-obj-"+a,term:o.object,"onUpdate:term":i=>o.object=i},null,8,["id","term","onUpdate:term"])]),e("td",null,[e("button",{type:"button",class:"btn btn-outline-dark",onClick:i=>u.newTriple(a)},"+",8,w),e("button",{type:"button",class:"btn btn-outline-dark",onClick:i=>u.delTriple(a)},"-",8,S)])]))),128))]),n.dataModel.length<1?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-dark mb-0",onClick:t[1]||(t[1]=o=>u.newTriple())},"+")):b("",!0),e("button",{type:"button",class:"btn btn-outline-primary mb-0",onClick:t[2]||(t[2]=(...o)=>u.submit&&u.submit(...o))},"Submit")]),n.debug==!1?(l(),d("a",{key:0,onClick:t[3]||(t[3]=o=>n.debug=!0)},"(show debug)")):b("",!0),n.debug?(l(),d("div",U,[e("a",{onClick:t[4]||(t[4]=o=>n.debug=!1)},"(hide debug)"),e("pre",null,"subject: "+p(n.subject)+` `+p(n.dataModel)+` `,1)])):b("",!0)])}const q=h(C,[["render",F]]);export{q as default}; diff --git a/pad/assets/InstanceList-0bHU3vsR.js b/pad/assets/InstanceList-Bq0sFaoV.js similarity index 76% rename from pad/assets/InstanceList-0bHU3vsR.js rename to pad/assets/InstanceList-Bq0sFaoV.js index edf6ef9..1f54dd1 100644 --- a/pad/assets/InstanceList-0bHU3vsR.js +++ b/pad/assets/InstanceList-Bq0sFaoV.js @@ -1 +1 @@ -import{m as c,n as r,h as a,R as n,b as s,o as i}from"./index-Bj4K-MQD.js";const o={name:"InstanceList",computed:{...c(s,["resource_iri"])}},p=Object.assign(o,{setup(u){return(e,l)=>(i(),r(n,{title:"Instance List",search:"",query:"select distinct ?instance { ?instance a <"+e.resource_iri+"> } order by ?instance","select-variable":"instance",itemClass:"py-2",ref:"instanceList",activeResource:e.resource_iri,selectResource:t=>{a(s)().changeResourceIri(t,!1)}},null,8,["query","activeResource","selectResource"]))}});export{p as default}; +import{m as c,n as r,h as a,R as n,b as s,o as i}from"./index-BSywqiEU.js";const o={name:"InstanceList",computed:{...c(s,["resource_iri"])}},p=Object.assign(o,{setup(u){return(e,l)=>(i(),r(n,{title:"Instance List",search:"",query:"select distinct ?instance { ?instance a <"+e.resource_iri+"> } order by ?instance","select-variable":"instance",itemClass:"py-2",ref:"instanceList",activeResource:e.resource_iri,selectResource:t=>{a(s)().changeResourceIri(t,!1)}},null,8,["query","activeResource","selectResource"]))}});export{p as default}; diff --git a/pad/assets/Kanban-BpZPvI91.js b/pad/assets/Kanban-BpZPvI91.js new file mode 100644 index 0000000..e0cac64 --- /dev/null +++ b/pad/assets/Kanban-BpZPvI91.js @@ -0,0 +1,20 @@ +import{S as tn,U as en,V as rn,W as nn,X as on,Y as an,Z as sn,F as Nr,$ as ln,a0 as fn,a1 as un,a2 as cn,a3 as dn,a4 as vn,a5 as hn,a6 as pn,a7 as gn,a8 as mn,a9 as yn,aa as bn,ab as Sn,ac as En,ad as xn,ae as On,af as Tn,ag as In,ah as Pn,ai as Dn,n as wr,g as jr,c as Se,a as Vt,aj as Cn,ak as An,al as Rn,am as Mn,s as Nn,an as wn,C as jn,d as ur,ao as Fn,ap as Ln,l as Un,aq as Gn,ar as $n,as as Bn,at as Kn,au as Hn,av as Vn,aw as Wn,ax as Xn,ay as Yn,az as zn,aA as Jn,aB as Qn,aC as Zn,aD as kn,aE as qn,aF as _n,aG as to,aH as eo,aI as ro,aJ as no,aK as oo,aL as ao,aM as io,aN as so,aO as lo,aP as fo,aQ as uo,aR as co,aS as vo,aT as ho,aU as po,aV as go,aW as mo,aX as yo,aY as bo,B as So,aZ as Eo,v as xo,a_ as Oo,a$ as To,b0 as Io,b1 as Po,b2 as Do,b3 as Co,z as Ao,b4 as Ro,b5 as Mo,b6 as No,b7 as wo,b8 as jo,b9 as Fo,o as le,j as Lo,ba as Uo,bb as Go,p as $o,bc as Bo,bd as Ko,be as Ho,x as Vo,bf as Wo,bg as Xo,e as Fr,A as Yo,r as zo,bh as Jo,G as Qo,bi as Zo,bj as ko,bk as qo,bl as _o,bm as ta,bn as ea,bo as ra,bp as na,bq as oa,br as aa,bs as ia,t as Be,bt as sa,bu as la,bv as fa,bw as ua,bx as ca,by as da,bz as va,bA as ha,h as Lr,bB as pa,bC as ga,bD as ma,bE as ya,bF as ba,y as Sa,bG as Ea,bH as xa,bI as Oa,bJ as Ta,bK as Ia,E as Pa,bL as Da,bM as Ca,bN as Aa,bO as Ra,bP as Ma,bQ as Na,bR as wa,bS as ja,w as Ur,bT as Fa,D as La,bU as Ua,bV as Ga,J as $a,bW as Ba,bX as Gr,R as Ka,bY as $r,bZ as Ha,_ as Va,u as Sr}from"./index-BSywqiEU.js";import{l as Wa}from"./lodash-B15SRsdl.js";/** +* vue v3.4.23 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const Xa=()=>{},Ya=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:tn,BaseTransitionPropsValidators:en,Comment:rn,DeprecationTypes:nn,EffectScope:on,ErrorCodes:an,ErrorTypeStrings:sn,Fragment:Nr,KeepAlive:ln,ReactiveEffect:fn,Static:un,Suspense:cn,Teleport:dn,Text:vn,TrackOpTypes:hn,Transition:pn,TransitionGroup:gn,TriggerOpTypes:mn,VueElement:yn,assertNumber:bn,callWithAsyncErrorHandling:Sn,callWithErrorHandling:En,camelize:xn,capitalize:On,cloneVNode:Tn,compatUtils:In,compile:Xa,computed:Pn,createApp:Dn,createBlock:wr,createCommentVNode:jr,createElementBlock:Se,createElementVNode:Vt,createHydrationRenderer:Cn,createPropsRestProxy:An,createRenderer:Rn,createSSRApp:Mn,createSlots:Nn,createStaticVNode:wn,createTextVNode:jn,createVNode:ur,customRef:Fn,defineAsyncComponent:Ln,defineComponent:Un,defineCustomElement:Gn,defineEmits:$n,defineExpose:Bn,defineModel:Kn,defineOptions:Hn,defineProps:Vn,defineSSRCustomElement:Wn,defineSlots:Xn,devtools:Yn,effect:zn,effectScope:Jn,getCurrentInstance:Qn,getCurrentScope:Zn,getTransitionRawChildren:kn,guardReactiveProps:qn,h:_n,handleError:to,hasInjectionContext:eo,hydrate:ro,initCustomFormatter:no,initDirectivesForSSR:oo,inject:ao,isMemoSame:io,isProxy:so,isReactive:lo,isReadonly:fo,isRef:uo,isRuntimeOnly:co,isShallow:vo,isVNode:ho,markRaw:po,mergeDefaults:go,mergeModels:mo,mergeProps:yo,nextTick:bo,normalizeClass:So,normalizeProps:Eo,normalizeStyle:xo,onActivated:Oo,onBeforeMount:To,onBeforeUnmount:Io,onBeforeUpdate:Po,onDeactivated:Do,onErrorCaptured:Co,onMounted:Ao,onRenderTracked:Ro,onRenderTriggered:Mo,onScopeDispose:No,onServerPrefetch:wo,onUnmounted:jo,onUpdated:Fo,openBlock:le,popScopeId:Lo,provide:Uo,proxyRefs:Go,pushScopeId:$o,queuePostFlushCb:Bo,reactive:Ko,readonly:Ho,ref:Vo,registerRuntimeCompiler:Wo,render:Xo,renderList:Fr,renderSlot:Yo,resolveComponent:zo,resolveDirective:Jo,resolveDynamicComponent:Qo,resolveFilter:Zo,resolveTransitionHooks:ko,setBlockTracking:qo,setDevtoolsHook:_o,setTransitionHooks:ta,shallowReactive:ea,shallowReadonly:ra,shallowRef:na,ssrContextKey:oa,ssrUtils:aa,stop:ia,toDisplayString:Be,toHandlerKey:sa,toHandlers:la,toRaw:fa,toRef:ua,toRefs:ca,toValue:da,transformVNodeArgs:va,triggerRef:ha,unref:Lr,useAttrs:pa,useCssModule:ga,useCssVars:ma,useModel:ya,useSSRContext:ba,useSlots:Sa,useTransitionState:Ea,vModelCheckbox:xa,vModelDynamic:Oa,vModelRadio:Ta,vModelSelect:Ia,vModelText:Pa,vShow:Da,version:Ca,warn:Aa,watch:Ra,watchEffect:Ma,watchPostEffect:Na,watchSyncEffect:wa,withAsyncContext:ja,withCtx:Ur,withDefaults:Fa,withDirectives:La,withKeys:Ua,withMemo:Ga,withModifiers:$a,withScopeId:Ba},Symbol.toStringTag,{value:"Module"}));var za=function(r){for(var n=[],i=1;i(le(),wr(Ka,{title:"Property List",search:"",query:"select distinct ?property { {?s ?property ?o} union {?property a } union {?property a } union {?property a } } order by ?property","select-variable":"property",ref:"propertyList",activeResource:s.property_iri,selectResource:s.selectProperty},null,8,["activeResource","selectResource"]))}});var Br={exports:{}};const ka=$r(Ya);/**! + * Sortable 1.14.0 + * @author RubaXa + * @author owenm + * @license MIT + */function Er(s,r){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(s);r&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(s,e).enumerable})),n.push.apply(n,i)}return n}function Kt(s){for(var r=1;r=0)&&(n[e]=s[e]);return n}function ti(s,r){if(s==null)return{};var n=_a(s,r),i,e;if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(s);for(e=0;e=0)&&Object.prototype.propertyIsEnumerable.call(s,i)&&(n[i]=s[i])}return n}function ei(s){return ri(s)||ni(s)||oi(s)||ai()}function ri(s){if(Array.isArray(s))return cr(s)}function ni(s){if(typeof Symbol<"u"&&s[Symbol.iterator]!=null||s["@@iterator"]!=null)return Array.from(s)}function oi(s,r){if(s){if(typeof s=="string")return cr(s,r);var n=Object.prototype.toString.call(s).slice(8,-1);if(n==="Object"&&s.constructor&&(n=s.constructor.name),n==="Map"||n==="Set")return Array.from(s);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cr(s,r)}}function cr(s,r){(r==null||r>s.length)&&(r=s.length);for(var n=0,i=new Array(r);n"&&(r=r.substring(1)),s)try{if(s.matches)return s.matches(r);if(s.msMatchesSelector)return s.msMatchesSelector(r);if(s.webkitMatchesSelector)return s.webkitMatchesSelector(r)}catch{return!1}return!1}}function li(s){return s.host&&s!==document&&s.host.nodeType?s.host:s.parentNode}function Ut(s,r,n,i){if(s){n=n||document;do{if(r!=null&&(r[0]===">"?s.parentNode===n&&Ye(s,r):Ye(s,r))||i&&s===n)return s;if(s===n)break}while(s=li(s))}return null}var Or=/\s+/g;function st(s,r,n){if(s&&r)if(s.classList)s.classList[n?"add":"remove"](r);else{var i=(" "+s.className+" ").replace(Or," ").replace(" "+r+" "," ");s.className=(i+(n?" "+r:"")).replace(Or," ")}}function L(s,r,n){var i=s&&s.style;if(i){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(s,""):s.currentStyle&&(n=s.currentStyle),r===void 0?n:n[r];!(r in i)&&r.indexOf("webkit")===-1&&(r="-webkit-"+r),i[r]=n+(typeof n=="string"?"":"px")}}function re(s,r){var n="";if(typeof s=="string")n=s;else do{var i=L(s,"transform");i&&i!=="none"&&(n=i+" "+n)}while(!r&&(s=s.parentNode));var e=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return e&&new e(n)}function Vr(s,r,n){if(s){var i=s.getElementsByTagName(r),e=0,f=i.length;if(n)for(;e=f:t=e<=f,!t)return i;if(i===Bt())break;i=Zt(i,!1)}return!1}function ue(s,r,n,i){for(var e=0,f=0,t=s.children;f2&&arguments[2]!==void 0?arguments[2]:{},e=i.evt,f=ti(i,pi);Me.pluginEvent.bind(K)(r,n,Kt({dragEl:A,parentEl:ut,ghostEl:z,rootEl:ot,nextEl:ee,lastDownEl:He,cloneEl:ct,cloneHidden:Qt,dragStarted:xe,putSortable:Et,activeSortable:K.active,originalEvent:e,oldIndex:fe,oldDraggableIndex:De,newIndex:Mt,newDraggableIndex:Jt,hideGhostForTarget:Qr,unhideGhostForTarget:Zr,cloneNowHidden:function(){Qt=!0},cloneNowShown:function(){Qt=!1},dispatchSortableEvent:function(o){It({sortable:n,name:o,originalEvent:e})}},f))};function It(s){Ee(Kt({putSortable:Et,cloneEl:ct,targetEl:A,rootEl:ot,oldIndex:fe,oldDraggableIndex:De,newIndex:Mt,newDraggableIndex:Jt},s))}var A,ut,z,ot,ee,He,ct,Qt,fe,Mt,De,Jt,je,Et,se=!1,ze=!1,Je=[],_t,Ft,nr,or,Dr,Cr,xe,ae,Ce,Ae=!1,Fe=!1,Ve,xt,ar=[],dr=!1,Qe=[],ke=typeof document<"u",Le=Kr,Ar=Re||Xt?"cssFloat":"float",gi=ke&&!si&&!Kr&&"draggable"in document.createElement("div"),Yr=function(){if(ke){if(Xt)return!1;var s=document.createElement("x");return s.style.cssText="pointer-events:auto",s.style.pointerEvents==="auto"}}(),zr=function(r,n){var i=L(r),e=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),f=ue(r,0,n),t=ue(r,1,n),o=f&&L(f),a=t&&L(t),l=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+at(f).width,c=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+at(t).width;if(i.display==="flex")return i.flexDirection==="column"||i.flexDirection==="column-reverse"?"vertical":"horizontal";if(i.display==="grid")return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(f&&o.float&&o.float!=="none"){var u=o.float==="left"?"left":"right";return t&&(a.clear==="both"||a.clear===u)?"vertical":"horizontal"}return f&&(o.display==="block"||o.display==="flex"||o.display==="table"||o.display==="grid"||l>=e&&i[Ar]==="none"||t&&i[Ar]==="none"&&l+c>e)?"vertical":"horizontal"},mi=function(r,n,i){var e=i?r.left:r.top,f=i?r.right:r.bottom,t=i?r.width:r.height,o=i?n.left:n.top,a=i?n.right:n.bottom,l=i?n.width:n.height;return e===o||f===a||e+t/2===o+l/2},yi=function(r,n){var i;return Je.some(function(e){var f=e[Ot].options.emptyInsertThreshold;if(!(!f||gr(e))){var t=at(e),o=r>=t.left-f&&r<=t.right+f,a=n>=t.top-f&&n<=t.bottom+f;if(o&&a)return i=e}}),i},Jr=function(r){function n(f,t){return function(o,a,l,c){var u=o.options.group.name&&a.options.group.name&&o.options.group.name===a.options.group.name;if(f==null&&(t||u))return!0;if(f==null||f===!1)return!1;if(t&&f==="clone")return f;if(typeof f=="function")return n(f(o,a,l,c),t)(o,a,l,c);var d=(t?o:a).options.group.name;return f===!0||typeof f=="string"&&f===d||f.join&&f.indexOf(d)>-1}}var i={},e=r.group;(!e||Ke(e)!="object")&&(e={name:e}),i.name=e.name,i.checkPull=n(e.pull,!0),i.checkPut=n(e.put),i.revertClone=e.revertClone,r.group=i},Qr=function(){!Yr&&z&&L(z,"display","none")},Zr=function(){!Yr&&z&&L(z,"display","")};ke&&document.addEventListener("click",function(s){if(ze)return s.preventDefault(),s.stopPropagation&&s.stopPropagation(),s.stopImmediatePropagation&&s.stopImmediatePropagation(),ze=!1,!1},!0);var te=function(r){if(A){r=r.touches?r.touches[0]:r;var n=yi(r.clientX,r.clientY);if(n){var i={};for(var e in r)r.hasOwnProperty(e)&&(i[e]=r[e]);i.target=i.rootEl=n,i.preventDefault=void 0,i.stopPropagation=void 0,n[Ot]._onDragOver(i)}}},bi=function(r){A&&A.parentNode[Ot]._isOutsideThisEl(r.target)};function K(s,r){if(!(s&&s.nodeType&&s.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(s));this.el=s,this.options=r=wt({},r),s[Ot]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(s.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return zr(s,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,o){t.setData("Text",o.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:K.supportPointer!==!1&&"PointerEvent"in window&&!Ie,emptyInsertThreshold:5};Me.initializePlugins(this,s,n);for(var i in n)!(i in r)&&(r[i]=n[i]);Jr(r);for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this));this.nativeDraggable=r.forceFallback?!1:gi,this.nativeDraggable&&(this.options.touchStartThreshold=1),r.supportPointer?Z(s,"pointerdown",this._onTapStart):(Z(s,"mousedown",this._onTapStart),Z(s,"touchstart",this._onTapStart)),this.nativeDraggable&&(Z(s,"dragover",this),Z(s,"dragenter",this)),Je.push(this.el),r.store&&r.store.get&&this.sort(r.store.get(this)||[]),wt(this,di())}K.prototype={constructor:K,_isOutsideThisEl:function(r){!this.el.contains(r)&&r!==this.el&&(ae=null)},_getDirection:function(r,n){return typeof this.options.direction=="function"?this.options.direction.call(this,r,n,A):this.options.direction},_onTapStart:function(r){if(r.cancelable){var n=this,i=this.el,e=this.options,f=e.preventOnFilter,t=r.type,o=r.touches&&r.touches[0]||r.pointerType&&r.pointerType==="touch"&&r,a=(o||r).target,l=r.target.shadowRoot&&(r.path&&r.path[0]||r.composedPath&&r.composedPath()[0])||a,c=e.filter;if(Di(i),!A&&!(/mousedown|pointerdown/.test(t)&&r.button!==0||e.disabled)&&!l.isContentEditable&&!(!this.nativeDraggable&&Ie&&a&&a.tagName.toUpperCase()==="SELECT")&&(a=Ut(a,e.draggable,i,!1),!(a&&a.animated)&&He!==a)){if(fe=dt(a),De=dt(a,e.draggable),typeof c=="function"){if(c.call(this,r,a,this)){It({sortable:n,rootEl:l,name:"filter",targetEl:a,toEl:i,fromEl:i}),Dt("filter",n,{evt:r}),f&&r.cancelable&&r.preventDefault();return}}else if(c&&(c=c.split(",").some(function(u){if(u=Ut(l,u.trim(),i,!1),u)return It({sortable:n,rootEl:u,name:"filter",targetEl:a,fromEl:i,toEl:i}),Dt("filter",n,{evt:r}),!0}),c)){f&&r.cancelable&&r.preventDefault();return}e.handle&&!Ut(l,e.handle,i,!1)||this._prepareDragStart(r,o,a)}}},_prepareDragStart:function(r,n,i){var e=this,f=e.el,t=e.options,o=f.ownerDocument,a;if(i&&!A&&i.parentNode===f){var l=at(i);if(ot=f,A=i,ut=A.parentNode,ee=A.nextSibling,He=i,je=t.group,K.dragged=A,_t={target:A,clientX:(n||r).clientX,clientY:(n||r).clientY},Dr=_t.clientX-l.left,Cr=_t.clientY-l.top,this._lastX=(n||r).clientX,this._lastY=(n||r).clientY,A.style["will-change"]="all",a=function(){if(Dt("delayEnded",e,{evt:r}),K.eventCanceled){e._onDrop();return}e._disableDelayedDragEvents(),!xr&&e.nativeDraggable&&(A.draggable=!0),e._triggerDragStart(r,n),It({sortable:e,name:"choose",originalEvent:r}),st(A,t.chosenClass,!0)},t.ignore.split(",").forEach(function(c){Vr(A,c.trim(),ir)}),Z(o,"dragover",te),Z(o,"mousemove",te),Z(o,"touchmove",te),Z(o,"mouseup",e._onDrop),Z(o,"touchend",e._onDrop),Z(o,"touchcancel",e._onDrop),xr&&this.nativeDraggable&&(this.options.touchStartThreshold=4,A.draggable=!0),Dt("delayStart",this,{evt:r}),t.delay&&(!t.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Re||Xt))){if(K.eventCanceled){this._onDrop();return}Z(o,"mouseup",e._disableDelayedDrag),Z(o,"touchend",e._disableDelayedDrag),Z(o,"touchcancel",e._disableDelayedDrag),Z(o,"mousemove",e._delayedDragTouchMoveHandler),Z(o,"touchmove",e._delayedDragTouchMoveHandler),t.supportPointer&&Z(o,"pointermove",e._delayedDragTouchMoveHandler),e._dragStartTimer=setTimeout(a,t.delay)}else a()}},_delayedDragTouchMoveHandler:function(r){var n=r.touches?r.touches[0]:r;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){A&&ir(A),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var r=this.el.ownerDocument;Q(r,"mouseup",this._disableDelayedDrag),Q(r,"touchend",this._disableDelayedDrag),Q(r,"touchcancel",this._disableDelayedDrag),Q(r,"mousemove",this._delayedDragTouchMoveHandler),Q(r,"touchmove",this._delayedDragTouchMoveHandler),Q(r,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(r,n){n=n||r.pointerType=="touch"&&r,!this.nativeDraggable||n?this.options.supportPointer?Z(document,"pointermove",this._onTouchMove):n?Z(document,"touchmove",this._onTouchMove):Z(document,"mousemove",this._onTouchMove):(Z(A,"dragend",this),Z(ot,"dragstart",this._onDragStart));try{document.selection?We(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(r,n){if(se=!1,ot&&A){Dt("dragStarted",this,{evt:n}),this.nativeDraggable&&Z(document,"dragover",bi);var i=this.options;!r&&st(A,i.dragClass,!1),st(A,i.ghostClass,!0),K.active=this,r&&this._appendGhost(),It({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Ft){this._lastX=Ft.clientX,this._lastY=Ft.clientY,Qr();for(var r=document.elementFromPoint(Ft.clientX,Ft.clientY),n=r;r&&r.shadowRoot&&(r=r.shadowRoot.elementFromPoint(Ft.clientX,Ft.clientY),r!==n);)n=r;if(A.parentNode[Ot]._isOutsideThisEl(r),n)do{if(n[Ot]){var i=void 0;if(i=n[Ot]._onDragOver({clientX:Ft.clientX,clientY:Ft.clientY,target:r,rootEl:n}),i&&!this.options.dragoverBubble)break}r=n}while(n=n.parentNode);Zr()}},_onTouchMove:function(r){if(_t){var n=this.options,i=n.fallbackTolerance,e=n.fallbackOffset,f=r.touches?r.touches[0]:r,t=z&&re(z,!0),o=z&&t&&t.a,a=z&&t&&t.d,l=Le&&xt&&Ir(xt),c=(f.clientX-_t.clientX+e.x)/(o||1)+(l?l[0]-ar[0]:0)/(o||1),u=(f.clientY-_t.clientY+e.y)/(a||1)+(l?l[1]-ar[1]:0)/(a||1);if(!K.active&&!se){if(i&&Math.max(Math.abs(f.clientX-this._lastX),Math.abs(f.clientY-this._lastY))=0&&(It({rootEl:ut,name:"add",toEl:ut,fromEl:ot,originalEvent:r}),It({sortable:this,name:"remove",toEl:ut,originalEvent:r}),It({rootEl:ut,name:"sort",toEl:ut,fromEl:ot,originalEvent:r}),It({sortable:this,name:"sort",toEl:ut,originalEvent:r})),Et&&Et.save()):Mt!==fe&&Mt>=0&&(It({sortable:this,name:"update",toEl:ut,originalEvent:r}),It({sortable:this,name:"sort",toEl:ut,originalEvent:r})),K.active&&((Mt==null||Mt===-1)&&(Mt=fe,Jt=De),It({sortable:this,name:"end",toEl:ut,originalEvent:r}),this.save()))),this._nulling()},_nulling:function(){Dt("nulling",this),ot=A=ut=z=ee=ct=He=Qt=_t=Ft=xe=Mt=Jt=fe=De=ae=Ce=Et=je=K.dragged=K.ghost=K.clone=K.active=null,Qe.forEach(function(r){r.checked=!0}),Qe.length=nr=or=0},handleEvent:function(r){switch(r.type){case"drop":case"dragend":this._onDrop(r);break;case"dragenter":case"dragover":A&&(this._onDragOver(r),Si(r));break;case"selectstart":r.preventDefault();break}},toArray:function(){for(var r=[],n,i=this.el.children,e=0,f=i.length,t=this.options;ei.right+e||s.clientX<=i.right&&s.clientY>i.bottom&&s.clientX>=i.left:s.clientX>i.right&&s.clientY>i.top||s.clientX<=i.right&&s.clientY>i.bottom+e}function Ti(s,r,n,i,e,f,t,o){var a=i?s.clientY:s.clientX,l=i?n.height:n.width,c=i?n.top:n.left,u=i?n.bottom:n.right,d=!1;if(!t){if(o&&Vec+l*f/2:au-Ve)return-Ce}else if(a>c+l*(1-e)/2&&au-l*f/2)?a>c+l/2?1:-1:0}function Ii(s){return dt(A)1&&(Y.forEach(function(o){f.addAnimationState({target:o,rect:Ct?at(o):t}),er(o),o.fromRect=t,i.removeAnimationState(o)}),Ct=!1,Ni(!this.options.removeCloneOnHide,e))},dragOverCompleted:function(n){var i=n.sortable,e=n.isOwner,f=n.insertion,t=n.activeSortable,o=n.parentEl,a=n.putSortable,l=this.options;if(f){if(e&&t._hideClone(),ye=!1,l.animation&&Y.length>1&&(Ct||!e&&!t.options.sort&&!a)){var c=at(et,!1,!0,!0);Y.forEach(function(d){d!==et&&(Pr(d,c),o.appendChild(d))}),Ct=!0}if(!e)if(Ct||$e(),Y.length>1){var u=Ge;t._showClone(i),t.options.animation&&!Ge&&u&&Rt.forEach(function(d){t.addAnimationState({target:d,rect:be}),d.fromRect=be,d.thisAnimationDuration=null})}else t._showClone(i)}},dragOverAnimationCapture:function(n){var i=n.dragRect,e=n.isOwner,f=n.activeSortable;if(Y.forEach(function(o){o.thisAnimationDuration=null}),f.options.animation&&!e&&f.multiDrag.isMultiDrag){be=wt({},i);var t=re(et,!0);be.top-=t.f,be.left-=t.e}},dragOverAnimationComplete:function(){Ct&&(Ct=!1,$e())},drop:function(n){var i=n.originalEvent,e=n.rootEl,f=n.parentEl,t=n.sortable,o=n.dispatchSortableEvent,a=n.oldIndex,l=n.putSortable,c=l||this.sortable;if(i){var u=this.options,d=f.children;if(!ie)if(u.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),st(et,u.selectedClass,!~Y.indexOf(et)),~Y.indexOf(et))Y.splice(Y.indexOf(et),1),me=null,Ee({sortable:t,rootEl:e,name:"deselect",targetEl:et,originalEvt:i});else{if(Y.push(et),Ee({sortable:t,rootEl:e,name:"select",targetEl:et,originalEvt:i}),i.shiftKey&&me&&t.el.contains(me)){var v=dt(me),h=dt(et);if(~v&&~h&&v!==h){var p,g;for(h>v?(g=v,p=h):(g=h,p=v+1);g1){var b=at(et),S=dt(et,":not(."+this.options.selectedClass+")");if(!ye&&u.animation&&(et.thisAnimationDuration=null),c.captureAnimationState(),!ye&&(u.animation&&(et.fromRect=b,Y.forEach(function(x){if(x.thisAnimationDuration=null,x!==et){var P=Ct?at(x):b;x.fromRect=P,c.addAnimationState({target:x,rect:P})}})),$e(),Y.forEach(function(x){d[S]?f.insertBefore(x,d[S]):f.appendChild(x),S++}),a===dt(et))){var I=!1;Y.forEach(function(x){if(x.sortableIndex!==dt(x)){I=!0;return}}),I&&o("update")}Y.forEach(function(x){er(x)}),c.animateAll()}Lt=c}(e===f||l&&l.lastPutMode!=="clone")&&Rt.forEach(function(x){x.parentNode&&x.parentNode.removeChild(x)})}},nullingGlobal:function(){this.isMultiDrag=ie=!1,Rt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),Q(document,"pointerup",this._deselectMultiDrag),Q(document,"mouseup",this._deselectMultiDrag),Q(document,"touchend",this._deselectMultiDrag),Q(document,"keydown",this._checkKeyDown),Q(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof ie<"u"&&ie)&&Lt===this.sortable&&!(n&&Ut(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;Y.length;){var i=Y[0];st(i,this.options.selectedClass,!1),Y.shift(),Ee({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:i,originalEvt:n})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},wt(s,{pluginName:"multiDrag",utils:{select:function(n){var i=n.parentNode[Ot];!i||!i.options.multiDrag||~Y.indexOf(n)||(Lt&&Lt!==i&&(Lt.multiDrag._deselectMultiDrag(),Lt=i),st(n,i.options.selectedClass,!0),Y.push(n))},deselect:function(n){var i=n.parentNode[Ot],e=Y.indexOf(n);!i||!i.options.multiDrag||!~e||(st(n,i.options.selectedClass,!1),Y.splice(e,1))}},eventProperties:function(){var n=this,i=[],e=[];return Y.forEach(function(f){i.push({multiDragElement:f,index:f.sortableIndex});var t;Ct&&f!==et?t=-1:Ct?t=dt(f,":not(."+n.options.selectedClass+")"):t=dt(f),e.push({multiDragElement:f,index:t})}),{items:ei(Y),clones:[].concat(Rt),oldIndicies:i,newIndicies:e}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function Ni(s,r){Y.forEach(function(n,i){var e=r.children[n.sortableIndex+(s?Number(i):0)];e?r.insertBefore(n,e):r.appendChild(n)})}function Mr(s,r){Rt.forEach(function(n,i){var e=r.children[n.sortableIndex+(s?Number(i):0)];e?r.insertBefore(n,e):r.appendChild(n)})}function $e(){Y.forEach(function(s){s!==et&&s.parentNode&&s.parentNode.removeChild(s)})}K.mount(new Ci);K.mount(br,yr);const wi=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:Mi,Sortable:K,Swap:Ai,default:K},Symbol.toStringTag,{value:"Module"})),ji=$r(wi);(function(s,r){(function(i,e){s.exports=e(ka,ji)})(typeof self<"u"?self:Ha,function(n,i){return function(e){var f={};function t(o){if(f[o])return f[o].exports;var a=f[o]={i:o,l:!1,exports:{}};return e[o].call(a.exports,a,a.exports,t),a.l=!0,a.exports}return t.m=e,t.c=f,t.d=function(o,a,l){t.o(o,a)||Object.defineProperty(o,a,{enumerable:!0,get:l})},t.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},t.t=function(o,a){if(a&1&&(o=t(o)),a&8||a&4&&typeof o=="object"&&o&&o.__esModule)return o;var l=Object.create(null);if(t.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:o}),a&2&&typeof o!="string")for(var c in o)t.d(l,c,(function(u){return o[u]}).bind(null,c));return l},t.n=function(o){var a=o&&o.__esModule?function(){return o.default}:function(){return o};return t.d(a,"a",a),a},t.o=function(o,a){return Object.prototype.hasOwnProperty.call(o,a)},t.p="",t(t.s="fb15")}({"00ee":function(e,f,t){var o=t("b622"),a=o("toStringTag"),l={};l[a]="z",e.exports=String(l)==="[object z]"},"0366":function(e,f,t){var o=t("1c0b");e.exports=function(a,l,c){if(o(a),l===void 0)return a;switch(c){case 0:return function(){return a.call(l)};case 1:return function(u){return a.call(l,u)};case 2:return function(u,d){return a.call(l,u,d)};case 3:return function(u,d,v){return a.call(l,u,d,v)}}return function(){return a.apply(l,arguments)}}},"057f":function(e,f,t){var o=t("fc6a"),a=t("241c").f,l={}.toString,c=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(d){try{return a(d)}catch{return c.slice()}};e.exports.f=function(v){return c&&l.call(v)=="[object Window]"?u(v):a(o(v))}},"06cf":function(e,f,t){var o=t("83ab"),a=t("d1e7"),l=t("5c6c"),c=t("fc6a"),u=t("c04e"),d=t("5135"),v=t("0cfb"),h=Object.getOwnPropertyDescriptor;f.f=o?h:function(g,b){if(g=c(g),b=u(b,!0),v)try{return h(g,b)}catch{}if(d(g,b))return l(!a.f.call(g,b),g[b])}},"0cfb":function(e,f,t){var o=t("83ab"),a=t("d039"),l=t("cc12");e.exports=!o&&!a(function(){return Object.defineProperty(l("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(e,f,t){var o=t("23e7"),a=t("d58f").left,l=t("a640"),c=t("ae40"),u=l("reduce"),d=c("reduce",{1:0});o({target:"Array",proto:!0,forced:!u||!d},{reduce:function(h){return a(this,h,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(e,f,t){var o=t("c6b6"),a=t("9263");e.exports=function(l,c){var u=l.exec;if(typeof u=="function"){var d=u.call(l,c);if(typeof d!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return d}if(o(l)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return a.call(l,c)}},"159b":function(e,f,t){var o=t("da84"),a=t("fdbc"),l=t("17c2"),c=t("9112");for(var u in a){var d=o[u],v=d&&d.prototype;if(v&&v.forEach!==l)try{c(v,"forEach",l)}catch{v.forEach=l}}},"17c2":function(e,f,t){var o=t("b727").forEach,a=t("a640"),l=t("ae40"),c=a("forEach"),u=l("forEach");e.exports=!c||!u?function(v){return o(this,v,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(e,f,t){var o=t("d066");e.exports=o("document","documentElement")},"1c0b":function(e,f){e.exports=function(t){if(typeof t!="function")throw TypeError(String(t)+" is not a function");return t}},"1c7e":function(e,f,t){var o=t("b622"),a=o("iterator"),l=!1;try{var c=0,u={next:function(){return{done:!!c++}},return:function(){l=!0}};u[a]=function(){return this},Array.from(u,function(){throw 2})}catch{}e.exports=function(d,v){if(!v&&!l)return!1;var h=!1;try{var p={};p[a]=function(){return{next:function(){return{done:h=!0}}}},d(p)}catch{}return h}},"1d80":function(e,f){e.exports=function(t){if(t==null)throw TypeError("Can't call method on "+t);return t}},"1dde":function(e,f,t){var o=t("d039"),a=t("b622"),l=t("2d00"),c=a("species");e.exports=function(u){return l>=51||!o(function(){var d=[],v=d.constructor={};return v[c]=function(){return{foo:1}},d[u](Boolean).foo!==1})}},"23cb":function(e,f,t){var o=t("a691"),a=Math.max,l=Math.min;e.exports=function(c,u){var d=o(c);return d<0?a(d+u,0):l(d,u)}},"23e7":function(e,f,t){var o=t("da84"),a=t("06cf").f,l=t("9112"),c=t("6eeb"),u=t("ce4e"),d=t("e893"),v=t("94ca");e.exports=function(h,p){var g=h.target,b=h.global,S=h.stat,I,x,P,O,F,U;if(b?x=o:S?x=o[g]||u(g,{}):x=(o[g]||{}).prototype,x)for(P in p){if(F=p[P],h.noTargetGet?(U=a(x,P),O=U&&U.value):O=x[P],I=v(b?P:g+(S?".":"#")+P,h.forced),!I&&O!==void 0){if(typeof F==typeof O)continue;d(F,O)}(h.sham||O&&O.sham)&&l(F,"sham",!0),c(x,P,F,h)}}},"241c":function(e,f,t){var o=t("ca84"),a=t("7839"),l=a.concat("length","prototype");f.f=Object.getOwnPropertyNames||function(u){return o(u,l)}},"25f0":function(e,f,t){var o=t("6eeb"),a=t("825a"),l=t("d039"),c=t("ad6d"),u="toString",d=RegExp.prototype,v=d[u],h=l(function(){return v.call({source:"a",flags:"b"})!="/a/b"}),p=v.name!=u;(h||p)&&o(RegExp.prototype,u,function(){var b=a(this),S=String(b.source),I=b.flags,x=String(I===void 0&&b instanceof RegExp&&!("flags"in d)?c.call(b):I);return"/"+S+"/"+x},{unsafe:!0})},"2ca0":function(e,f,t){var o=t("23e7"),a=t("06cf").f,l=t("50c4"),c=t("5a34"),u=t("1d80"),d=t("ab13"),v=t("c430"),h="".startsWith,p=Math.min,g=d("startsWith"),b=!v&&!g&&!!function(){var S=a(String.prototype,"startsWith");return S&&!S.writable}();o({target:"String",proto:!0,forced:!b&&!g},{startsWith:function(I){var x=String(u(this));c(I);var P=l(p(arguments.length>1?arguments[1]:void 0,x.length)),O=String(I);return h?h.call(x,O,P):x.slice(P,P+O.length)===O}})},"2d00":function(e,f,t){var o=t("da84"),a=t("342f"),l=o.process,c=l&&l.versions,u=c&&c.v8,d,v;u?(d=u.split("."),v=d[0]+d[1]):a&&(d=a.match(/Edge\/(\d+)/),(!d||d[1]>=74)&&(d=a.match(/Chrome\/(\d+)/),d&&(v=d[1]))),e.exports=v&&+v},"342f":function(e,f,t){var o=t("d066");e.exports=o("navigator","userAgent")||""},"35a1":function(e,f,t){var o=t("f5df"),a=t("3f8c"),l=t("b622"),c=l("iterator");e.exports=function(u){if(u!=null)return u[c]||u["@@iterator"]||a[o(u)]}},"37e8":function(e,f,t){var o=t("83ab"),a=t("9bf2"),l=t("825a"),c=t("df75");e.exports=o?Object.defineProperties:function(d,v){l(d);for(var h=c(v),p=h.length,g=0,b;p>g;)a.f(d,b=h[g++],v[b]);return d}},"3bbe":function(e,f,t){var o=t("861d");e.exports=function(a){if(!o(a)&&a!==null)throw TypeError("Can't set "+String(a)+" as a prototype");return a}},"3ca3":function(e,f,t){var o=t("6547").charAt,a=t("69f3"),l=t("7dd0"),c="String Iterator",u=a.set,d=a.getterFor(c);l(String,"String",function(v){u(this,{type:c,string:String(v),index:0})},function(){var h=d(this),p=h.string,g=h.index,b;return g>=p.length?{value:void 0,done:!0}:(b=o(p,g),h.index+=b.length,{value:b,done:!1})})},"3f8c":function(e,f){e.exports={}},4160:function(e,f,t){var o=t("23e7"),a=t("17c2");o({target:"Array",proto:!0,forced:[].forEach!=a},{forEach:a})},"428f":function(e,f,t){var o=t("da84");e.exports=o},"44ad":function(e,f,t){var o=t("d039"),a=t("c6b6"),l="".split;e.exports=o(function(){return!Object("z").propertyIsEnumerable(0)})?function(c){return a(c)=="String"?l.call(c,""):Object(c)}:Object},"44d2":function(e,f,t){var o=t("b622"),a=t("7c73"),l=t("9bf2"),c=o("unscopables"),u=Array.prototype;u[c]==null&&l.f(u,c,{configurable:!0,value:a(null)}),e.exports=function(d){u[c][d]=!0}},"44e7":function(e,f,t){var o=t("861d"),a=t("c6b6"),l=t("b622"),c=l("match");e.exports=function(u){var d;return o(u)&&((d=u[c])!==void 0?!!d:a(u)=="RegExp")}},4930:function(e,f,t){var o=t("d039");e.exports=!!Object.getOwnPropertySymbols&&!o(function(){return!String(Symbol())})},"4d64":function(e,f,t){var o=t("fc6a"),a=t("50c4"),l=t("23cb"),c=function(u){return function(d,v,h){var p=o(d),g=a(p.length),b=l(h,g),S;if(u&&v!=v){for(;g>b;)if(S=p[b++],S!=S)return!0}else for(;g>b;b++)if((u||b in p)&&p[b]===v)return u||b||0;return!u&&-1}};e.exports={includes:c(!0),indexOf:c(!1)}},"4de4":function(e,f,t){var o=t("23e7"),a=t("b727").filter,l=t("1dde"),c=t("ae40"),u=l("filter"),d=c("filter");o({target:"Array",proto:!0,forced:!u||!d},{filter:function(h){return a(this,h,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,f,t){var o=t("0366"),a=t("7b0b"),l=t("9bdd"),c=t("e95a"),u=t("50c4"),d=t("8418"),v=t("35a1");e.exports=function(p){var g=a(p),b=typeof this=="function"?this:Array,S=arguments.length,I=S>1?arguments[1]:void 0,x=I!==void 0,P=v(g),O=0,F,U,T,M,w,X;if(x&&(I=o(I,S>2?arguments[2]:void 0,2)),P!=null&&!(b==Array&&c(P)))for(M=P.call(g),w=M.next,U=new b;!(T=w.call(M)).done;O++)X=x?l(M,I,[T.value,O],!0):T.value,d(U,O,X);else for(F=u(g.length),U=new b(F);F>O;O++)X=x?I(g[O],O):g[O],d(U,O,X);return U.length=O,U}},"4fad":function(e,f,t){var o=t("23e7"),a=t("6f53").entries;o({target:"Object",stat:!0},{entries:function(c){return a(c)}})},"50c4":function(e,f,t){var o=t("a691"),a=Math.min;e.exports=function(l){return l>0?a(o(l),9007199254740991):0}},5135:function(e,f){var t={}.hasOwnProperty;e.exports=function(o,a){return t.call(o,a)}},5319:function(e,f,t){var o=t("d784"),a=t("825a"),l=t("7b0b"),c=t("50c4"),u=t("a691"),d=t("1d80"),v=t("8aa5"),h=t("14c3"),p=Math.max,g=Math.min,b=Math.floor,S=/\$([$&'`]|\d\d?|<[^>]*>)/g,I=/\$([$&'`]|\d\d?)/g,x=function(P){return P===void 0?P:String(P)};o("replace",2,function(P,O,F,U){var T=U.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,M=U.REPLACE_KEEPS_$0,w=T?"$":"$0";return[function(R,W){var N=d(this),$=R==null?void 0:R[P];return $!==void 0?$.call(R,N,W):O.call(String(N),R,W)},function(C,R){if(!T&&M||typeof R=="string"&&R.indexOf(w)===-1){var W=F(O,C,this,R);if(W.done)return W.value}var N=a(C),$=String(this),_=typeof R=="function";_||(R=String(R));var rt=N.global;if(rt){var yt=N.unicode;N.lastIndex=0}for(var lt=[];;){var ft=h(N,$);if(ft===null||(lt.push(ft),!rt))break;var gt=String(ft[0]);gt===""&&(N.lastIndex=v($,c(N.lastIndex),yt))}for(var mt="",ht=0,nt=0;nt=ht&&(mt+=$.slice(ht,At)+bt,ht=At+it.length)}return mt+$.slice(ht)}];function X(C,R,W,N,$,_){var rt=W+C.length,yt=N.length,lt=I;return $!==void 0&&($=l($),lt=S),O.call(_,lt,function(ft,gt){var mt;switch(gt.charAt(0)){case"$":return"$";case"&":return C;case"`":return R.slice(0,W);case"'":return R.slice(rt);case"<":mt=$[gt.slice(1,-1)];break;default:var ht=+gt;if(ht===0)return ft;if(ht>yt){var nt=b(ht/10);return nt===0?ft:nt<=yt?N[nt-1]===void 0?gt.charAt(1):N[nt-1]+gt.charAt(1):ft}mt=N[ht-1]}return mt===void 0?"":mt})}})},5692:function(e,f,t){var o=t("c430"),a=t("c6cd");(e.exports=function(l,c){return a[l]||(a[l]=c!==void 0?c:{})})("versions",[]).push({version:"3.6.5",mode:o?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,f,t){var o=t("d066"),a=t("241c"),l=t("7418"),c=t("825a");e.exports=o("Reflect","ownKeys")||function(d){var v=a.f(c(d)),h=l.f;return h?v.concat(h(d)):v}},"5a34":function(e,f,t){var o=t("44e7");e.exports=function(a){if(o(a))throw TypeError("The method doesn't accept regular expressions");return a}},"5c6c":function(e,f){e.exports=function(t,o){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:o}}},"5db7":function(e,f,t){var o=t("23e7"),a=t("a2bf"),l=t("7b0b"),c=t("50c4"),u=t("1c0b"),d=t("65f0");o({target:"Array",proto:!0},{flatMap:function(h){var p=l(this),g=c(p.length),b;return u(h),b=d(p,0),b.length=a(b,p,p,g,0,1,h,arguments.length>1?arguments[1]:void 0),b}})},6547:function(e,f,t){var o=t("a691"),a=t("1d80"),l=function(c){return function(u,d){var v=String(a(u)),h=o(d),p=v.length,g,b;return h<0||h>=p?c?"":void 0:(g=v.charCodeAt(h),g<55296||g>56319||h+1===p||(b=v.charCodeAt(h+1))<56320||b>57343?c?v.charAt(h):g:c?v.slice(h,h+2):(g-55296<<10)+(b-56320)+65536)}};e.exports={codeAt:l(!1),charAt:l(!0)}},"65f0":function(e,f,t){var o=t("861d"),a=t("e8b5"),l=t("b622"),c=l("species");e.exports=function(u,d){var v;return a(u)&&(v=u.constructor,typeof v=="function"&&(v===Array||a(v.prototype))?v=void 0:o(v)&&(v=v[c],v===null&&(v=void 0))),new(v===void 0?Array:v)(d===0?0:d)}},"69f3":function(e,f,t){var o=t("7f9a"),a=t("da84"),l=t("861d"),c=t("9112"),u=t("5135"),d=t("f772"),v=t("d012"),h=a.WeakMap,p,g,b,S=function(T){return b(T)?g(T):p(T,{})},I=function(T){return function(M){var w;if(!l(M)||(w=g(M)).type!==T)throw TypeError("Incompatible receiver, "+T+" required");return w}};if(o){var x=new h,P=x.get,O=x.has,F=x.set;p=function(T,M){return F.call(x,T,M),M},g=function(T){return P.call(x,T)||{}},b=function(T){return O.call(x,T)}}else{var U=d("state");v[U]=!0,p=function(T,M){return c(T,U,M),M},g=function(T){return u(T,U)?T[U]:{}},b=function(T){return u(T,U)}}e.exports={set:p,get:g,has:b,enforce:S,getterFor:I}},"6eeb":function(e,f,t){var o=t("da84"),a=t("9112"),l=t("5135"),c=t("ce4e"),u=t("8925"),d=t("69f3"),v=d.get,h=d.enforce,p=String(String).split("String");(e.exports=function(g,b,S,I){var x=I?!!I.unsafe:!1,P=I?!!I.enumerable:!1,O=I?!!I.noTargetGet:!1;if(typeof S=="function"&&(typeof b=="string"&&!l(S,"name")&&a(S,"name",b),h(S).source=p.join(typeof b=="string"?b:"")),g===o){P?g[b]=S:c(b,S);return}else x?!O&&g[b]&&(P=!0):delete g[b];P?g[b]=S:a(g,b,S)})(Function.prototype,"toString",function(){return typeof this=="function"&&v(this).source||u(this)})},"6f53":function(e,f,t){var o=t("83ab"),a=t("df75"),l=t("fc6a"),c=t("d1e7").f,u=function(d){return function(v){for(var h=l(v),p=a(h),g=p.length,b=0,S=[],I;g>b;)I=p[b++],(!o||c.call(h,I))&&S.push(d?[I,h[I]]:h[I]);return S}};e.exports={entries:u(!0),values:u(!1)}},"73d9":function(e,f,t){var o=t("44d2");o("flatMap")},7418:function(e,f){f.f=Object.getOwnPropertySymbols},"746f":function(e,f,t){var o=t("428f"),a=t("5135"),l=t("e538"),c=t("9bf2").f;e.exports=function(u){var d=o.Symbol||(o.Symbol={});a(d,u)||c(d,u,{value:l.f(u)})}},7839:function(e,f){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(e,f,t){var o=t("1d80");e.exports=function(a){return Object(o(a))}},"7c73":function(e,f,t){var o=t("825a"),a=t("37e8"),l=t("7839"),c=t("d012"),u=t("1be4"),d=t("cc12"),v=t("f772"),h=">",p="<",g="prototype",b="script",S=v("IE_PROTO"),I=function(){},x=function(T){return p+b+h+T+p+"/"+b+h},P=function(T){T.write(x("")),T.close();var M=T.parentWindow.Object;return T=null,M},O=function(){var T=d("iframe"),M="java"+b+":",w;return T.style.display="none",u.appendChild(T),T.src=String(M),w=T.contentWindow.document,w.open(),w.write(x("document.F=Object")),w.close(),w.F},F,U=function(){try{F=document.domain&&new ActiveXObject("htmlfile")}catch{}U=F?P(F):O();for(var T=l.length;T--;)delete U[g][l[T]];return U()};c[S]=!0,e.exports=Object.create||function(M,w){var X;return M!==null?(I[g]=o(M),X=new I,I[g]=null,X[S]=M):X=U(),w===void 0?X:a(X,w)}},"7dd0":function(e,f,t){var o=t("23e7"),a=t("9ed3"),l=t("e163"),c=t("d2bb"),u=t("d44e"),d=t("9112"),v=t("6eeb"),h=t("b622"),p=t("c430"),g=t("3f8c"),b=t("ae93"),S=b.IteratorPrototype,I=b.BUGGY_SAFARI_ITERATORS,x=h("iterator"),P="keys",O="values",F="entries",U=function(){return this};e.exports=function(T,M,w,X,C,R,W){a(w,M,X);var N=function(nt){if(nt===C&<)return lt;if(!I&&nt in rt)return rt[nt];switch(nt){case P:return function(){return new w(this,nt)};case O:return function(){return new w(this,nt)};case F:return function(){return new w(this,nt)}}return function(){return new w(this)}},$=M+" Iterator",_=!1,rt=T.prototype,yt=rt[x]||rt["@@iterator"]||C&&rt[C],lt=!I&&yt||N(C),ft=M=="Array"&&rt.entries||yt,gt,mt,ht;if(ft&&(gt=l(ft.call(new T)),S!==Object.prototype&>.next&&(!p&&l(gt)!==S&&(c?c(gt,S):typeof gt[x]!="function"&&d(gt,x,U)),u(gt,$,!0,!0),p&&(g[$]=U))),C==O&&yt&&yt.name!==O&&(_=!0,lt=function(){return yt.call(this)}),(!p||W)&&rt[x]!==lt&&d(rt,x,lt),g[M]=lt,C)if(mt={values:N(O),keys:R?lt:N(P),entries:N(F)},W)for(ht in mt)(I||_||!(ht in rt))&&v(rt,ht,mt[ht]);else o({target:M,proto:!0,forced:I||_},mt);return mt}},"7f9a":function(e,f,t){var o=t("da84"),a=t("8925"),l=o.WeakMap;e.exports=typeof l=="function"&&/native code/.test(a(l))},"825a":function(e,f,t){var o=t("861d");e.exports=function(a){if(!o(a))throw TypeError(String(a)+" is not an object");return a}},"83ab":function(e,f,t){var o=t("d039");e.exports=!o(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(e,f,t){var o=t("c04e"),a=t("9bf2"),l=t("5c6c");e.exports=function(c,u,d){var v=o(u);v in c?a.f(c,v,l(0,d)):c[v]=d}},"861d":function(e,f){e.exports=function(t){return typeof t=="object"?t!==null:typeof t=="function"}},8875:function(e,f,t){var o,a,l;(function(c,u){a=[],o=u,l=typeof o=="function"?o.apply(f,a):o,l!==void 0&&(e.exports=l)})(typeof self<"u"?self:this,function(){function c(){var u=Object.getOwnPropertyDescriptor(document,"currentScript");if(!u&&"currentScript"in document&&document.currentScript||u&&u.get!==c&&document.currentScript)return document.currentScript;try{throw new Error}catch(F){var d=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,v=/@([^@]*):(\d+):(\d+)\s*$/ig,h=d.exec(F.stack)||v.exec(F.stack),p=h&&h[1]||!1,g=h&&h[2]||!1,b=document.location.href.replace(document.location.hash,""),S,I,x,P=document.getElementsByTagName("script");p===b&&(S=document.documentElement.outerHTML,I=new RegExp("(?:[^\\n]+?\\n){0,"+(g-2)+"}[^<]* Vite App - - + +