From 289793c63ded1f587dd41dcdb89e15bc69c0bbb5 Mon Sep 17 00:00:00 2001 From: white-gecko Date: Thu, 23 Jan 2025 23:02:29 +0000 Subject: [PATCH] deploy: 3ada6550c46d53b6833cb1cd9e2b2dc80c84442c --- index.html | 2 +- ...View-DIoPbG4c.js => AboutView-BffY2ewW.js} | 2 +- ...-ByE6n5y7.js => DashboardView-D2RmONvH.js} | 2 +- ...tForm-ZP9PIVhz.js => EditForm-BDy1_m9-.js} | 2 +- ...mDemo-Dkmfdozh.js => FormDemo-BPR7kEQV.js} | 2 +- ...Form-B0GLM1s7.js => InputForm-B7hx1Ai9.js} | 2 +- ...t-Co90cV-T.js => InstanceList-v9de9g4o.js} | 2 +- ...{Kanban-DCPF8TrZ.js => Kanban-g0r4q0PH.js} | 2 +- ...{Source-Bbt3wr0N.js => Source-C-gl1s4o.js} | 2 +- .../{Term-mut0BvSr.js => Term-C9db-2KR.js} | 2 +- ...{VocPad-BbbB64ZC.js => VocPad-D0fsloHc.js} | 2 +- .../{index-PXc6VOLX.js => index-BcaS_xbN.js} | 253 +++++++++--------- .../{index-B9jj8Ydm.js => index-CMU1fec0.js} | 2 +- ...{index-DNvRhm5Q.css => index-DlEVPgxc.css} | 2 +- ...{lodash-BSfnp1_F.js => lodash-CFmKKHsC.js} | 2 +- ...are-DZx0gfyH.js => n3-compare-BeIsM-_E.js} | 2 +- pad/index.html | 4 +- 17 files changed, 143 insertions(+), 144 deletions(-) rename pad/assets/{AboutView-DIoPbG4c.js => AboutView-BffY2ewW.js} (84%) rename pad/assets/{DashboardView-ByE6n5y7.js => DashboardView-D2RmONvH.js} (92%) rename pad/assets/{EditForm-ZP9PIVhz.js => EditForm-BDy1_m9-.js} (95%) rename pad/assets/{FormDemo-Dkmfdozh.js => FormDemo-BPR7kEQV.js} (99%) rename pad/assets/{InputForm-B0GLM1s7.js => InputForm-B7hx1Ai9.js} (94%) rename pad/assets/{InstanceList-Co90cV-T.js => InstanceList-v9de9g4o.js} (76%) rename pad/assets/{Kanban-DCPF8TrZ.js => Kanban-g0r4q0PH.js} (99%) rename pad/assets/{Source-Bbt3wr0N.js => Source-C-gl1s4o.js} (89%) rename pad/assets/{Term-mut0BvSr.js => Term-C9db-2KR.js} (92%) rename pad/assets/{VocPad-BbbB64ZC.js => VocPad-D0fsloHc.js} (99%) rename pad/assets/{index-PXc6VOLX.js => index-BcaS_xbN.js} (86%) rename pad/assets/{index-B9jj8Ydm.js => index-CMU1fec0.js} (99%) rename pad/assets/{index-DNvRhm5Q.css => index-DlEVPgxc.css} (99%) rename pad/assets/{lodash-BSfnp1_F.js => lodash-CFmKKHsC.js} (99%) rename pad/assets/{n3-compare-DZx0gfyH.js => n3-compare-BeIsM-_E.js} (83%) diff --git a/index.html b/index.html index 350c8df..5c2eb11 100644 --- a/index.html +++ b/index.html @@ -23,7 +23,7 @@ - + Skip to the content. diff --git a/pad/assets/AboutView-DIoPbG4c.js b/pad/assets/AboutView-BffY2ewW.js similarity index 84% rename from pad/assets/AboutView-DIoPbG4c.js rename to pad/assets/AboutView-BffY2ewW.js index 89da048..094bafa 100644 --- a/pad/assets/AboutView-DIoPbG4c.js +++ b/pad/assets/AboutView-BffY2ewW.js @@ -1 +1 @@ -import{_ as o,c as e,o as a,F as n,a as t}from"./index-PXc6VOLX.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-BcaS_xbN.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-ByE6n5y7.js b/pad/assets/DashboardView-D2RmONvH.js similarity index 92% rename from pad/assets/DashboardView-ByE6n5y7.js rename to pad/assets/DashboardView-D2RmONvH.js index 0c3fcaf..9df109f 100644 --- a/pad/assets/DashboardView-ByE6n5y7.js +++ b/pad/assets/DashboardView-D2RmONvH.js @@ -1 +1 @@ -import{T as R}from"./Term-mut0BvSr.js";import{u as k,b as h,f as n,m as C,_ as f,r as y,o as d,c,a as t,t as M,d as o,F as w,e as N,g as S,w as u,h as m,i as p,M as j,p as v,j as I}from"./index-PXc6VOLX.js";import{s as V}from"./index-B9jj8Ydm.js";import D from"./InstanceList-Co90cV-T.js";const Q={name:"PropertyView",setup(){const e=k(),a=h();return{store:e,selection:a}},components:{Term:R},data(){return{dataModel:{},subject:n.namedNode("")}},computed:{...C(h,["resource_iri"]),label(){if(this.dataModel.getQuads!==void 0){const e=this.dataModel.getQuads(n.namedNode(this.resource_iri),n.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(n.namedNode(this.resource_iri),n.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=n.namedNode(this.resource_iri),console.log("get resource: "+this.resource_iri);const e=await this.store.getResource(this.resource_iri);this.dataModel=(await V(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 z(e,a,g,q,_,r){const l=y("Term");return d(),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"])])]),_.dataModel.getQuads!==void 0?(d(),c("table",B,[P,(d(!0),c(w,null,N(_.dataModel.getQuads(null,null,null),(s,b)=>(d(),c("tr",{key:b},[t("td",null,[o(l,{term:s.predicate,"onUpdate:term":i=>s.predicate=i,onClick:r.selectResource},null,8,["term","onUpdate:term","onClick"])]),t("td",null,[o(l,{term:s.object,"onUpdate:term":i=>s.object=i,onClick:r.selectResource},null,8,["term","onUpdate:term","onClick"])])]))),128))])):S("",!0)])}const F=f(Q,[["render",z]]),L=e=>(v("data-v-f8555f28"),e=e(),I(),e),E=L(()=>t("strong",null,"Resource Dashboard",-1)),O={__name:"DashboardView",setup(e){return(a,g)=>(d(),c(w,null,[E,o(m(j),{class:"default-theme"},{default:u(()=>[o(m(p),{size:"70"},{default:u(()=>[o(F)]),_:1}),o(m(p),{size:"30"},{default:u(()=>[o(D,{style:{height:"80vh","overflow-y":"scroll"}})]),_:1})]),_:1})],64))}},K=f(O,[["__scopeId","data-v-f8555f28"]]);export{K as default}; +import{T as R}from"./Term-C9db-2KR.js";import{u as k,b as h,f as n,m as C,_ as f,r as y,o as d,c,a as t,t as M,d as o,F as w,e as N,g as S,w as u,h as m,i as p,M as j,p as v,j as I}from"./index-BcaS_xbN.js";import{s as V}from"./index-CMU1fec0.js";import D from"./InstanceList-v9de9g4o.js";const Q={name:"PropertyView",setup(){const e=k(),a=h();return{store:e,selection:a}},components:{Term:R},data(){return{dataModel:{},subject:n.namedNode("")}},computed:{...C(h,["resource_iri"]),label(){if(this.dataModel.getQuads!==void 0){const e=this.dataModel.getQuads(n.namedNode(this.resource_iri),n.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(n.namedNode(this.resource_iri),n.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=n.namedNode(this.resource_iri),console.log("get resource: "+this.resource_iri);const e=await this.store.getResource(this.resource_iri);this.dataModel=(await V(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 z(e,a,g,q,_,r){const l=y("Term");return d(),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"])])]),_.dataModel.getQuads!==void 0?(d(),c("table",B,[P,(d(!0),c(w,null,N(_.dataModel.getQuads(null,null,null),(s,b)=>(d(),c("tr",{key:b},[t("td",null,[o(l,{term:s.predicate,"onUpdate:term":i=>s.predicate=i,onClick:r.selectResource},null,8,["term","onUpdate:term","onClick"])]),t("td",null,[o(l,{term:s.object,"onUpdate:term":i=>s.object=i,onClick:r.selectResource},null,8,["term","onUpdate:term","onClick"])])]))),128))])):S("",!0)])}const F=f(Q,[["render",z]]),L=e=>(v("data-v-f8555f28"),e=e(),I(),e),E=L(()=>t("strong",null,"Resource Dashboard",-1)),O={__name:"DashboardView",setup(e){return(a,g)=>(d(),c(w,null,[E,o(m(j),{class:"default-theme"},{default:u(()=>[o(m(p),{size:"70"},{default:u(()=>[o(F)]),_:1}),o(m(p),{size:"30"},{default:u(()=>[o(D,{style:{height:"80vh","overflow-y":"scroll"}})]),_:1})]),_:1})],64))}},K=f(O,[["__scopeId","data-v-f8555f28"]]);export{K as default}; diff --git a/pad/assets/EditForm-ZP9PIVhz.js b/pad/assets/EditForm-BDy1_m9-.js similarity index 95% rename from pad/assets/EditForm-ZP9PIVhz.js rename to pad/assets/EditForm-BDy1_m9-.js index 509d50a..294954b 100644 --- a/pad/assets/EditForm-ZP9PIVhz.js +++ b/pad/assets/EditForm-BDy1_m9-.js @@ -1,4 +1,4 @@ -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,B as _,t as u,b as j,o as l}from"./index-PXc6VOLX.js";import{l as M}from"./lodash-BSfnp1_F.js";import{d as R}from"./n3-compare-DZx0gfyH.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},B={style:{overflow:"scroll",height:"400px"}},E={class:"container"},V={class:"row"},A={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",B,[e("div",E,[e("div",V,[e("div",A,[_(" new "),e("pre",null,"subject: "+u(o.subject)+` +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,B as _,t as u,b as j,o as l}from"./index-BcaS_xbN.js";import{l as M}from"./lodash-CFmKKHsC.js";import{d as R}from"./n3-compare-BeIsM-_E.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},B={style:{overflow:"scroll",height:"400px"}},E={class:"container"},V={class:"row"},A={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",B,[e("div",E,[e("div",V,[e("div",A,[_(" 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)+` diff --git a/pad/assets/FormDemo-Dkmfdozh.js b/pad/assets/FormDemo-BPR7kEQV.js similarity index 99% rename from pad/assets/FormDemo-Dkmfdozh.js rename to pad/assets/FormDemo-BPR7kEQV.js index 2a022b1..3bc7e0a 100644 --- a/pad/assets/FormDemo-Dkmfdozh.js +++ b/pad/assets/FormDemo-BPR7kEQV.js @@ -1,4 +1,4 @@ -import{T as fn}from"./Term-mut0BvSr.js";import{K as pn,_ as gn,u as mn,b as wr,M as yn,i as bn,f as gt,m as vn,L 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-PXc6VOLX.js";import"./index-B9jj8Ydm.js";import Tn from"./InstanceList-Co90cV-T.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-C9db-2KR.js";import{K as pn,_ as gn,u as mn,b as wr,M as yn,i as bn,f as gt,m as vn,L 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-BcaS_xbN.js";import"./index-CMU1fec0.js";import Tn from"./InstanceList-v9de9g4o.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-BcaS_xbN.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-Co90cV-T.js b/pad/assets/InstanceList-v9de9g4o.js similarity index 76% rename from pad/assets/InstanceList-Co90cV-T.js rename to pad/assets/InstanceList-v9de9g4o.js index 13b6078..938829a 100644 --- a/pad/assets/InstanceList-Co90cV-T.js +++ b/pad/assets/InstanceList-v9de9g4o.js @@ -1 +1 @@ -import{m as c,n as r,h as a,R as n,b as s,o as i}from"./index-PXc6VOLX.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-BcaS_xbN.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-DCPF8TrZ.js b/pad/assets/Kanban-g0r4q0PH.js similarity index 99% rename from pad/assets/Kanban-DCPF8TrZ.js rename to pad/assets/Kanban-g0r4q0PH.js index 14515c2..9d6e4e9 100644 --- a/pad/assets/Kanban-DCPF8TrZ.js +++ b/pad/assets/Kanban-g0r4q0PH.js @@ -1,4 +1,4 @@ -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,q as Nn,an as wn,B 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 Qn,aB as Jn,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,A as So,aZ as Eo,s as xo,a_ as Oo,a$ as To,b0 as Io,b1 as Po,b2 as Do,b3 as Co,y 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,v as Vo,bf as Wo,bg as Xo,e as Fr,z as Yo,r as zo,bh as Qo,E as Jo,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,x as Sa,bG as Ea,bH as xa,bI as Oa,bJ as Ta,bK as Ia,D 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,C as La,bU as Ua,bV as Ga,I as $a,bW as Ba,bX as Gr,R as Ka,bY as $r,bZ as Ha,_ as Va,u as Sr}from"./index-PXc6VOLX.js";import{l as Wa}from"./lodash-BSfnp1_F.js";import"./index-B9jj8Ydm.js";/** +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,q as Nn,an as wn,B 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 Qn,aB as Jn,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,A as So,aZ as Eo,s as xo,a_ as Oo,a$ as To,b0 as Io,b1 as Po,b2 as Do,b3 as Co,y 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,v as Vo,bf as Wo,bg as Xo,e as Fr,z as Yo,r as zo,bh as Qo,E as Jo,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,x as Sa,bG as Ea,bH as xa,bI as Oa,bJ as Ta,bK as Ia,D 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,C as La,bU as Ua,bV as Ga,I as $a,bW as Ba,bX as Gr,R as Ka,bY as $r,bZ as Ha,_ as Va,u as Sr}from"./index-BcaS_xbN.js";import{l as Wa}from"./lodash-CFmKKHsC.js";import"./index-CMU1fec0.js";/** * vue v3.4.23 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT diff --git a/pad/assets/Source-Bbt3wr0N.js b/pad/assets/Source-C-gl1s4o.js similarity index 89% rename from pad/assets/Source-Bbt3wr0N.js rename to pad/assets/Source-C-gl1s4o.js index a312737..87f68d9 100644 --- a/pad/assets/Source-Bbt3wr0N.js +++ b/pad/assets/Source-C-gl1s4o.js @@ -1 +1 @@ -import{_ as f,u as g,m as n,L as m,b_ as p,c as i,a as r,t as l,B as c,C as S,D as b,g as d,b as h,H as _,o as u}from"./index-PXc6VOLX.js";import{s as D}from"./index-B9jj8Ydm.js";import{a as v}from"./n3-compare-DZx0gfyH.js";import"./lodash-BSfnp1_F.js";const w={name:"Source",setup(){return{store:g()}},mounted(){this.getResource()},watch:{resource_iri(t){this.getResource()}},computed:{...n(h,["graph_iri","resource_iri"]),...n(_,["prefixes_flat"])},data(){return{debug:!1,originalData:{},resourceSource:""}},methods:{async getResource(){console.log("get resource");const t=await this.store.getResource(this.resource_iri);this.originalData=(await D(t)).store,this.resourceSource=await m(this.originalData.match(),{format:"text/turtle",prefixes:this.prefixes_flat})},async updateResource(){const t=await p(this.resourceSource),e=v(this.originalData,t);this.store.deleteInsertData({insertArray:e.add,deleteArray:e.del,graphIri:this.graph_iri})}}},x={class:"form-group"},y=r("label",{for:"sourceInput",class:""},"Turtle",-1),R={key:1};function k(t,e,C,T,s,a){return u(),i("div",null,[r("strong",null,"Sources of "+l(t.resource_iri),1),c(" ("),r("a",{onClick:e[0]||(e[0]=(...o)=>a.getResource&&a.getResource(...o))},"refresh"),c(") "),r("form",null,[r("div",x,[y,S(r("textarea",{id:"sourceInput",class:"form-control","onUpdate:modelValue":e[1]||(e[1]=o=>s.resourceSource=o),rows:"15"},null,512),[[b,s.resourceSource]])]),r("button",{type:"button",class:"btn btn-outline-primary mb-0",onClick:e[2]||(e[2]=o=>a.updateResource())},"Submit")]),s.debug==!1?(u(),i("a",{key:0,onClick:e[3]||(e[3]=o=>s.debug=!0)},"(show debug)")):d("",!0),s.debug?(u(),i("div",R,[r("a",{onClick:e[4]||(e[4]=o=>s.debug=!1)},"(hide debug)"),r("pre",null,l(t.originalSource)+" ",1)])):d("",!0)])}const A=f(w,[["render",k]]);export{A as default}; +import{_ as f,u as g,m as n,L as m,b_ as p,c as i,a as r,t as l,B as c,C as S,D as b,g as d,b as h,H as _,o as u}from"./index-BcaS_xbN.js";import{s as D}from"./index-CMU1fec0.js";import{a as v}from"./n3-compare-BeIsM-_E.js";import"./lodash-CFmKKHsC.js";const w={name:"Source",setup(){return{store:g()}},mounted(){this.getResource()},watch:{resource_iri(t){this.getResource()}},computed:{...n(h,["graph_iri","resource_iri"]),...n(_,["prefixes_flat"])},data(){return{debug:!1,originalData:{},resourceSource:""}},methods:{async getResource(){console.log("get resource");const t=await this.store.getResource(this.resource_iri);this.originalData=(await D(t)).store,this.resourceSource=await m(this.originalData.match(),{format:"text/turtle",prefixes:this.prefixes_flat})},async updateResource(){const t=await p(this.resourceSource),e=v(this.originalData,t);this.store.deleteInsertData({insertArray:e.add,deleteArray:e.del,graphIri:this.graph_iri})}}},x={class:"form-group"},y=r("label",{for:"sourceInput",class:""},"Turtle",-1),R={key:1};function k(t,e,C,T,s,a){return u(),i("div",null,[r("strong",null,"Sources of "+l(t.resource_iri),1),c(" ("),r("a",{onClick:e[0]||(e[0]=(...o)=>a.getResource&&a.getResource(...o))},"refresh"),c(") "),r("form",null,[r("div",x,[y,S(r("textarea",{id:"sourceInput",class:"form-control","onUpdate:modelValue":e[1]||(e[1]=o=>s.resourceSource=o),rows:"15"},null,512),[[b,s.resourceSource]])]),r("button",{type:"button",class:"btn btn-outline-primary mb-0",onClick:e[2]||(e[2]=o=>a.updateResource())},"Submit")]),s.debug==!1?(u(),i("a",{key:0,onClick:e[3]||(e[3]=o=>s.debug=!0)},"(show debug)")):d("",!0),s.debug?(u(),i("div",R,[r("a",{onClick:e[4]||(e[4]=o=>s.debug=!1)},"(hide debug)"),r("pre",null,l(t.originalSource)+" ",1)])):d("",!0)])}const A=f(w,[["render",k]]);export{A as default}; diff --git a/pad/assets/Term-mut0BvSr.js b/pad/assets/Term-C9db-2KR.js similarity index 92% rename from pad/assets/Term-mut0BvSr.js rename to pad/assets/Term-C9db-2KR.js index 2822fed..79a4aac 100644 --- a/pad/assets/Term-mut0BvSr.js +++ b/pad/assets/Term-C9db-2KR.js @@ -1 +1 @@ -import{_ as u,o as r,c as m,B as n,a as l,t,I as i,g as d}from"./index-PXc6VOLX.js";const v={name:"Term",props:["term"],emits:["click"],methods:{selectResource:function(s){this.$emit("click",s)}}},_={key:0},y={key:1},f={key:2};function k(s,a,e,T,g,c){return r(),m("div",null,[e.term.termType==="NamedNode"?(r(),m("span",_,[n(" <"),l("a",{href:"#",onClick:a[0]||(a[0]=i(o=>c.selectResource(e.term.value),["prevent"]))},t(e.term.value),1),n("> ")])):e.term.termType==="Literal"&&e.term.language?(r(),m("span",y,'"'+t(e.term.value)+'"@'+t(e.term.language),1)):e.term.termType==="Literal"&&e.term.datatype.value?(r(),m("span",f,[n('"'+t(e.term.value)+'"^^<',1),l("a",{href:"#",onClick:a[1]||(a[1]=i(o=>c.selectResource(e.term.datatype.value),["prevent"]))},t(e.term.datatype.value),1),n(">")])):d("",!0)])}const N=u(v,[["render",k]]);export{N as T}; +import{_ as u,o as r,c as m,B as n,a as l,t,I as i,g as d}from"./index-BcaS_xbN.js";const v={name:"Term",props:["term"],emits:["click"],methods:{selectResource:function(s){this.$emit("click",s)}}},_={key:0},y={key:1},f={key:2};function k(s,a,e,T,g,c){return r(),m("div",null,[e.term.termType==="NamedNode"?(r(),m("span",_,[n(" <"),l("a",{href:"#",onClick:a[0]||(a[0]=i(o=>c.selectResource(e.term.value),["prevent"]))},t(e.term.value),1),n("> ")])):e.term.termType==="Literal"&&e.term.language?(r(),m("span",y,'"'+t(e.term.value)+'"@'+t(e.term.language),1)):e.term.termType==="Literal"&&e.term.datatype.value?(r(),m("span",f,[n('"'+t(e.term.value)+'"^^<',1),l("a",{href:"#",onClick:a[1]||(a[1]=i(o=>c.selectResource(e.term.datatype.value),["prevent"]))},t(e.term.datatype.value),1),n(">")])):d("",!0)])}const N=u(v,[["render",k]]);export{N as T}; diff --git a/pad/assets/VocPad-BbbB64ZC.js b/pad/assets/VocPad-D0fsloHc.js similarity index 99% rename from pad/assets/VocPad-BbbB64ZC.js rename to pad/assets/VocPad-D0fsloHc.js index 7a83519..78100e0 100644 --- a/pad/assets/VocPad-BbbB64ZC.js +++ b/pad/assets/VocPad-D0fsloHc.js @@ -1,4 +1,4 @@ -import{k as nt,l as C,r as A,o as p,c,n as O,g as R,d as P,q as Pt,w as j,F as z,e as E,a as r,s as N,v as $,x as kt,y as wt,z as H,A as q,B as Ct,t as B,C as Dt,D as It,E as zt,p as Et,j as Tt,_ as Zt,u as Nt,b as it,T as Lt,m as Bt,G as st,H as At,I as Ot,J as $t}from"./index-PXc6VOLX.js";import{d as Rt}from"./n3-compare-DZx0gfyH.js";import"./lodash-BSfnp1_F.js";var Vt=Object.defineProperty,qt=(t,e,o)=>e in t?Vt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,I=(t,e,o)=>(qt(t,typeof e!="symbol"?e+"":e,o),o),Ut=Object.defineProperty,Ht=Object.defineProperties,jt=Object.getOwnPropertyDescriptors,rt=Object.getOwnPropertySymbols,Xt=Object.prototype.hasOwnProperty,Yt=Object.prototype.propertyIsEnumerable,lt=(t,e,o)=>e in t?Ut(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,Ft=(t,e)=>{for(var o in e||(e={}))Xt.call(e,o)&<(t,o,e[o]);if(rt)for(var o of rt(e))Yt.call(e,o)&<(t,o,e[o]);return t},Wt=(t,e)=>Ht(t,jt(e)),at=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof nt<"u"?nt:typeof self<"u"?self:{},Gt=function(){var t="",e,o,n,i=[],s={passive:!0};window.addEventListener?(e="addEventListener",o="removeEventListener"):(e="attachEvent",o="detachEvent",t="on"),n="onwheel"in document.createElement("div")?"wheel":document.onmousewheel!==void 0?"mousewheel":"DOMMouseScroll";function l(v,u){var y=function(g){!g&&(g=window.event);var S={originalEvent:g,target:g.target||g.srcElement,type:"wheel",deltaMode:g.type=="MozMousePixelScroll"?0:1,deltaX:0,delatZ:0,preventDefault:function(){g.preventDefault?g.preventDefault():g.returnValue=!1}};return n=="mousewheel"?(S.deltaY=-.025*g.wheelDelta,g.wheelDeltaX&&(S.deltaX=-.025*g.wheelDeltaX)):S.deltaY=g.detail,u(S)};return i.push({element:v,fn:y}),y}function d(v){for(var u=0;ue?(clearTimeout(d),d=null,a=m,l=t.apply(i,s),d||(i=s=null)):!d&&o.trailing!==!1&&(d=setTimeout(h,b)),l}},createRequestAnimationFrame:function(t){var e=null;return t!=="auto"&&t<60&&t>1&&(e=Math.floor(1e3/t)),e===null?window.requestAnimationFrame||dt(33):dt(e)}};function dt(t){return function(e){window.setTimeout(e,t)}}var K=tt,bt="unknown";document.documentMode&&(bt="ie");var et={svgNS:"http://www.w3.org/2000/svg",xmlNS:"http://www.w3.org/XML/1998/namespace",xmlnsNS:"http://www.w3.org/2000/xmlns/",xlinkNS:"http://www.w3.org/1999/xlink",evNS:"http://www.w3.org/2001/xml-events",getBoundingClientRectNormalized:function(t){if(t.clientWidth&&t.clientHeight)return{width:t.clientWidth,height:t.clientHeight};if(t.getBoundingClientRect())return t.getBoundingClientRect();throw new Error("Cannot get BoundingClientRect for SVG.")},getOrCreateViewport:function(t,e){var o=null;if(K.isElement(e)?o=e:o=t.querySelector(e),!o){var n=Array.prototype.slice.call(t.childNodes||t.children).filter(function(a){return a.nodeName!=="defs"&&a.nodeName!=="#text"});n.length===1&&n[0].nodeName==="g"&&n[0].getAttribute("transform")===null&&(o=n[0])}if(!o){var i="viewport-"+new Date().toISOString().replace(/\D/g,"");o=document.createElementNS(this.svgNS,"g"),o.setAttribute("id",i);var s=t.childNodes||t.children;if(s&&s.length>0)for(var l=s.length;l>0;l--)s[s.length-l].nodeName!=="defs"&&o.appendChild(s[s.length-l]);t.appendChild(o)}var d=[];return o.getAttribute("class")&&(d=o.getAttribute("class").split(" ")),~d.indexOf("svg-pan-zoom_viewport")||(d.push("svg-pan-zoom_viewport"),o.setAttribute("class",d.join(" "))),o},setupSvgAttributes:function(t){if(t.setAttribute("xmlns",this.svgNS),t.setAttributeNS(this.xmlnsNS,"xmlns:xlink",this.xlinkNS),t.setAttributeNS(this.xmlnsNS,"xmlns:ev",this.evNS),t.parentNode!==null){var e=t.getAttribute("style")||"";e.toLowerCase().indexOf("overflow")===-1&&t.setAttribute("style","overflow: hidden; "+e)}},internetExplorerRedisplayInterval:300,refreshDefsGlobal:K.throttle(function(){for(var t=document.querySelectorAll("defs"),e=t.length,o=0;o=0;n--)this.eventListeners.hasOwnProperty(o[n])&&delete this.eventListeners[o[n]]}for(var i in this.eventListeners)(this.options.eventsListenerElement||this.svg).addEventListener(i,this.eventListeners[i],this.options.preventMouseEventsDefault?!1:St);this.options.mouseWheelZoomEnabled&&(this.options.mouseWheelZoomEnabled=!1,this.enableMouseWheelZoom())};f.prototype.enableMouseWheelZoom=function(){if(!this.options.mouseWheelZoomEnabled){var t=this;this.wheelListener=function(o){return t.handleMouseWheel(o)};var e=!this.options.preventMouseEventsDefault;xt.on(this.options.eventsListenerElement||this.svg,this.wheelListener,e),this.options.mouseWheelZoomEnabled=!0}};f.prototype.disableMouseWheelZoom=function(){if(this.options.mouseWheelZoomEnabled){var t=!this.options.preventMouseEventsDefault;xt.off(this.options.eventsListenerElement||this.svg,this.wheelListener,t),this.options.mouseWheelZoomEnabled=!1}};f.prototype.handleMouseWheel=function(t){if(!(!this.options.zoomEnabled||this.state!=="none")){this.options.preventMouseEventsDefault&&(t.preventDefault?t.preventDefault():t.returnValue=!1);var e=t.deltaY||1,o=Date.now()-this.lastMouseWheelEventTime,n=3+Math.max(0,30-o);this.lastMouseWheelEventTime=Date.now(),"deltaMode"in t&&t.deltaMode===0&&t.wheelDelta&&(e=t.deltaY===0?0:Math.abs(t.wheelDelta)/t.deltaY),e=-.30?1:-1)*Math.log(Math.abs(e)+10)/n;var i=this.svg.getScreenCTM().inverse(),s=L.getEventPoint(t,this.svg).matrixTransform(i),l=Math.pow(1+this.options.zoomScaleSensitivity,-1*e);this.zoomAtPoint(l,s)}};f.prototype.zoomAtPoint=function(t,e,o){var n=this.viewport.getOriginalState();o?(t=Math.max(this.options.minZoom*n.zoom,Math.min(this.options.maxZoom*n.zoom,t)),t=t/this.getZoom()):this.getZoom()*tthis.options.maxZoom*n.zoom&&(t=this.options.maxZoom*n.zoom/this.getZoom());var i=this.viewport.getCTM(),s=e.matrixTransform(i.inverse()),l=this.svg.createSVGMatrix().translate(s.x,s.y).scale(t).translate(-s.x,-s.y),d=i.multiply(l);d.a!==i.a&&this.viewport.setCTM(d)};f.prototype.zoom=function(t,e){this.zoomAtPoint(t,L.getSvgCenterPoint(this.svg,this.width,this.height),e)};f.prototype.publicZoom=function(t,e){e&&(t=this.computeFromRelativeZoom(t)),this.zoom(t,e)};f.prototype.publicZoomAtPoint=function(t,e,o){if(o&&(t=this.computeFromRelativeZoom(t)),T.getType(e)!=="SVGPoint")if("x"in e&&"y"in e)e=L.createSVGPoint(this.svg,e.x,e.y);else throw new Error("Given point is invalid");this.zoomAtPoint(t,e,o)};f.prototype.getZoom=function(){return this.viewport.getZoom()};f.prototype.getRelativeZoom=function(){return this.viewport.getRelativeZoom()};f.prototype.computeFromRelativeZoom=function(t){return t*this.viewport.getOriginalState().zoom};f.prototype.resetZoom=function(){var t=this.viewport.getOriginalState();this.zoom(t.zoom,!0)};f.prototype.resetPan=function(){this.pan(this.viewport.getOriginalState())};f.prototype.reset=function(){this.resetZoom(),this.resetPan()};f.prototype.handleDblClick=function(t){if(this.options.preventMouseEventsDefault&&(t.preventDefault?t.preventDefault():t.returnValue=!1),this.options.controlIconsEnabled){var e=t.target.getAttribute("class")||"";if(e.indexOf("svg-pan-zoom-control")>-1)return!1}var o;t.shiftKey?o=1/((1+this.options.zoomScaleSensitivity)*2):o=(1+this.options.zoomScaleSensitivity)*2;var n=L.getEventPoint(t,this.svg).matrixTransform(this.svg.getScreenCTM().inverse());this.zoomAtPoint(o,n)};f.prototype.handleMouseDown=function(t,e){this.options.preventMouseEventsDefault&&(t.preventDefault?t.preventDefault():t.returnValue=!1),T.mouseAndTouchNormalize(t,this.svg),this.options.dblClickZoomEnabled&&T.isDblClick(t,e)?this.handleDblClick(t):(this.state="pan",this.firstEventCTM=this.viewport.getCTM(),this.stateOrigin=L.getEventPoint(t,this.svg).matrixTransform(this.firstEventCTM.inverse()))};f.prototype.handleMouseMove=function(t){if(this.options.preventMouseEventsDefault&&(t.preventDefault?t.preventDefault():t.returnValue=!1),this.state==="pan"&&this.options.panEnabled){var e=L.getEventPoint(t,this.svg).matrixTransform(this.firstEventCTM.inverse()),o=this.firstEventCTM.translate(e.x-this.stateOrigin.x,e.y-this.stateOrigin.y);this.viewport.setCTM(o)}};f.prototype.handleMouseUp=function(t){this.options.preventMouseEventsDefault&&(t.preventDefault?t.preventDefault():t.returnValue=!1),this.state==="pan"&&(this.state="none")};f.prototype.fit=function(){var t=this.viewport.getViewBox(),e=Math.min(this.width/t.width,this.height/t.height);this.zoom(e,!0)};f.prototype.contain=function(){var t=this.viewport.getViewBox(),e=Math.max(this.width/t.width,this.height/t.height);this.zoom(e,!0)};f.prototype.center=function(){var t=this.viewport.getViewBox(),e=(this.width-(t.width+t.x*2)*this.getZoom())*.5,o=(this.height-(t.height+t.y*2)*this.getZoom())*.5;this.getPublicInstance().pan({x:e,y:o})};f.prototype.updateBBox=function(){this.viewport.simpleViewBoxCache()};f.prototype.pan=function(t){var e=this.viewport.getCTM();e.e=t.x,e.f=t.y,this.viewport.setCTM(e)};f.prototype.panBy=function(t){var e=this.viewport.getCTM();e.e+=t.x,e.f+=t.y,this.viewport.setCTM(e)};f.prototype.getPan=function(){var t=this.viewport.getState();return{x:t.x,y:t.y}};f.prototype.resize=function(){var t=L.getBoundingClientRectNormalized(this.svg);this.width=t.width,this.height=t.height;var e=this.viewport;e.options.width=this.width,e.options.height=this.height,e.processCTM(),this.options.controlIconsEnabled&&(this.getPublicInstance().disableControlIcons(),this.getPublicInstance().enableControlIcons())};f.prototype.destroy=function(){var t=this;this.beforeZoom=null,this.onZoom=null,this.beforePan=null,this.onPan=null,this.onUpdatedCTM=null,this.options.customEventsHandler!=null&&this.options.customEventsHandler.destroy({svgElement:this.svg,eventsListenerElement:this.options.eventsListenerElement,instance:this.getPublicInstance()});for(var e in this.eventListeners)(this.options.eventsListenerElement||this.svg).removeEventListener(e,this.eventListeners[e],this.options.preventMouseEventsDefault?!1:St);this.disableMouseWheelZoom(),this.getPublicInstance().disableControlIcons(),this.reset(),V=V.filter(function(o){return o.svg!==t.svg}),delete this.options,delete this.viewport,delete this.publicInstance,delete this.pi,this.getPublicInstance=function(){return null}};f.prototype.getPublicInstance=function(){var t=this;return this.publicInstance||(this.publicInstance=this.pi={enablePan:function(){return t.options.panEnabled=!0,t.pi},disablePan:function(){return t.options.panEnabled=!1,t.pi},isPanEnabled:function(){return!!t.options.panEnabled},pan:function(e){return t.pan(e),t.pi},panBy:function(e){return t.panBy(e),t.pi},getPan:function(){return t.getPan()},setBeforePan:function(e){return t.options.beforePan=e===null?null:T.proxy(e,t.publicInstance),t.pi},setOnPan:function(e){return t.options.onPan=e===null?null:T.proxy(e,t.publicInstance),t.pi},enableZoom:function(){return t.options.zoomEnabled=!0,t.pi},disableZoom:function(){return t.options.zoomEnabled=!1,t.pi},isZoomEnabled:function(){return!!t.options.zoomEnabled},enableControlIcons:function(){return t.options.controlIconsEnabled||(t.options.controlIconsEnabled=!0,J.enable(t)),t.pi},disableControlIcons:function(){return t.options.controlIconsEnabled&&(t.options.controlIconsEnabled=!1,J.disable(t)),t.pi},isControlIconsEnabled:function(){return!!t.options.controlIconsEnabled},enableDblClickZoom:function(){return t.options.dblClickZoomEnabled=!0,t.pi},disableDblClickZoom:function(){return t.options.dblClickZoomEnabled=!1,t.pi},isDblClickZoomEnabled:function(){return!!t.options.dblClickZoomEnabled},enableMouseWheelZoom:function(){return t.enableMouseWheelZoom(),t.pi},disableMouseWheelZoom:function(){return t.disableMouseWheelZoom(),t.pi},isMouseWheelZoomEnabled:function(){return!!t.options.mouseWheelZoomEnabled},setZoomScaleSensitivity:function(e){return t.options.zoomScaleSensitivity=e,t.pi},setMinZoom:function(e){return t.options.minZoom=e,t.pi},setMaxZoom:function(e){return t.options.maxZoom=e,t.pi},setBeforeZoom:function(e){return t.options.beforeZoom=e===null?null:T.proxy(e,t.publicInstance),t.pi},setOnZoom:function(e){return t.options.onZoom=e===null?null:T.proxy(e,t.publicInstance),t.pi},zoom:function(e){return t.publicZoom(e,!0),t.pi},zoomBy:function(e){return t.publicZoom(e,!1),t.pi},zoomAtPoint:function(e,o){return t.publicZoomAtPoint(e,o,!0),t.pi},zoomAtPointBy:function(e,o){return t.publicZoomAtPoint(e,o,!1),t.pi},zoomIn:function(){return this.zoomBy(1+t.options.zoomScaleSensitivity),t.pi},zoomOut:function(){return this.zoomBy(1/(1+t.options.zoomScaleSensitivity)),t.pi},getZoom:function(){return t.getRelativeZoom()},setOnUpdatedCTM:function(e){return t.options.onUpdatedCTM=e===null?null:T.proxy(e,t.publicInstance),t.pi},resetZoom:function(){return t.resetZoom(),t.pi},resetPan:function(){return t.resetPan(),t.pi},reset:function(){return t.reset(),t.pi},fit:function(){return t.fit(),t.pi},contain:function(){return t.contain(),t.pi},center:function(){return t.center(),t.pi},updateBBox:function(){return t.updateBBox(),t.pi},resize:function(){return t.resize(),t.pi},getSizes:function(){return{width:t.width,height:t.height,realZoom:t.getZoom(),viewBox:t.viewport.getViewBox()}},destroy:function(){return t.destroy(),t.pi}}),this.publicInstance};var V=[],oe=function(t,e){var o=T.getSvg(t);if(o===null)return null;for(var n=V.length-1;n>=0;n--)if(V[n].svg===o)return V[n].instance.getPublicInstance();return V.push({svg:o,instance:new f(o,e)}),V[V.length-1].instance.getPublicInstance()},ne=oe,Mt=(t,e)=>{const o=t.__vccOpts||t;for(const[n,i]of e)o[n]=i;return o};const ie=["x","y","width","height"],se=C({__name:"Scope",props:{mainSPZ:null,thumbnailSPZ:null},setup(t){const e=t,o=$(0),n=$(0),i=$(0),s=$(0),l=$(null),d=()=>{if(!e.mainSPZ||!e.thumbnailSPZ)return;const h=e.mainSPZ.getPan().x,m=e.mainSPZ.getPan().y,b=e.mainSPZ.getSizes().width,w=e.mainSPZ.getSizes().height,v=e.mainSPZ.getSizes().realZoom,u=e.thumbnailSPZ.getPan().x,y=e.thumbnailSPZ.getPan().y,g=e.thumbnailSPZ.getSizes().realZoom/v,S=u-h*g,X=y-m*g,W=b*g,G=w*g;o.value=S+1,n.value=X+1,i.value=W-2,s.value=G-2},a=h=>{if(h.which==0&&h.button==0||!l.value)return;let m=e.mainSPZ,b=e.thumbnailSPZ,w=l.value.getBoundingClientRect();m.getSizes().width,m.getSizes().height;let v=m.getSizes().realZoom,u=b.getSizes().width,y=b.getSizes().height,g=b.getSizes().realZoom;var S=h.clientX-w.left-u/2,X=h.clientY-w.top-y/2,W=-S*v/g,G=-X*v/g;m.pan({x:W,y:G})};return wt(()=>{d(),e.mainSPZ.setOnPan(()=>d()),e.mainSPZ.setOnZoom(()=>d())}),(h,m)=>(p(),c("svg",{class:"svg-pan-zoom__scope",onClick:a,onMousemove:a,ref_key:"scopeSVG",ref:l},[r("rect",{class:"scope",x:o.value,y:n.value,width:i.value,height:s.value},null,8,ie)],544))}});var re=Mt(se,[["__scopeId","data-v-169415fd"]]);const le=C({__name:"SvgPanZoomThumbnail",props:{mainSPZ:null},emits:["thumbnailCreated"],setup(t,{emit:e}){const o=t,n=$(null),i=l=>{o.mainSPZ[l.deltaY<0?"zoomIn":"zoomOut"]()},s=l=>{n.value=l,e("thumbnailCreated",l)};return(l,d)=>(p(),c("div",{class:"svg-pan-zoom__thumbnail",onWheel:i},[P(_t,{class:"thumbnail",zoomEnabled:!1,panEnabled:!1,controlIconsEnabled:!1,dblClickZoomEnabled:!1,preventMouseEventsDefault:!0,onCreated:s},{default:j(()=>[H(l.$slots,"default",{},void 0,!0)]),_:3}),n.value?(p(),O(re,{key:0,mainSPZ:t.mainSPZ,thumbnailSPZ:n.value},null,8,["mainSPZ","thumbnailSPZ"])):R("",!0)],32))}});var ae=Mt(le,[["__scopeId","data-v-093287c4"]]);const de={class:"svg-pan-zoom"},_t=C({__name:"SvgPanZoom",props:{viewportSelector:{type:[String,Object],default:".svg-pan-zoom"},panEnabled:{type:Boolean,default:!0},controlIconsEnabled:{type:Boolean,default:!1},zoomEnabled:{type:Boolean,default:!0},dblClickZoomEnabled:{type:Boolean,default:!0},mouseWheelZoomEnabled:{type:Boolean,default:!0},preventMouseEventsDefault:{type:Boolean,default:!0},zoomScaleSensitivity:{type:Number,default:.2},minZoom:{type:Number,default:.5},maxZoom:{type:Number,default:10},fit:{type:Boolean,default:!0},contain:{type:Boolean,default:!0},center:{type:Boolean,default:!0},refreshRate:{type:[Number,String],default:"auto"}},emits:["beforeZoom","onZoom","beforePan","onPan","onUpdatedCTM","created","thumbnailCreated"],setup(t,{emit:e}){const o=t,n=$(null),i=kt(),s=$({});Object.keys(o).filter(a=>o[a]!==void 0).forEach(a=>{s.value=Wt(Ft({},s.value),{[a]:o[a]})});const l=$(null),d=a=>{if(a&&a.tagName==="svg")return a;const h=Array.from(a.children);if(!h)return!1;for(const m of h){const b=d(m);if(b)return b}return!1};return wt(()=>{if(s.value.onZoom=h=>e("onZoom",h),s.value.onPan=h=>e("onPan",h),!(i.default&&n.value))return;const a=d(n.value);a&&(l.value=ne(a,s.value),e("created",l.value))}),(a,h)=>(p(),c("div",de,[r("div",{class:"svg-pan-zoom__default",ref_key:"defaultSlot",ref:n},[H(a.$slots,"default")],512),a.$slots.thumbnail&&l.value?(p(),O(ae,{key:0,onThumbnailCreated:h[0]||(h[0]=m=>a.$emit("thumbnailCreated",m)),mainSPZ:l.value},{default:j(()=>[H(a.$slots,"thumbnail")]),_:3},8,["mainSPZ"])):R("",!0)]))}}),he=C({data(){return{onContextMenu:t=>{t.preventDefault()},onMouseDown:t=>{const e=this,o=t==null?void 0:t.target.closest(".diagram-context-menu"),n=t==null?void 0:t.target.closest(".has-menu");this.menuX=t.pageX,this.menuY=t.pageY,o?(t.stopPropagation(),this.menuItemClick(t,this.showMenuComponent),e.showMenuComponent=void 0):n&&t.button===2?(this.showMenuComponent=n.vueComponent,t.stopPropagation()):e.showMenuComponent=void 0},menuX:0,menuY:0,showMenuComponent:void 0}},mounted(){this.$parent.$el.addEventListener("mousedown",this.onMouseDown,{capture:!0}),this.$parent.$el.addEventListener("contextmenu",this.onContextMenu)},beforeUnmount(){this.$parent.$el.removeEventListener("mousedown",this.onMouseDown),this.$parent.$el.addEventListener("contextmenu",this.onContextMenu)},methods:{menuItemClick(t,e){var o;const n=(o=t==null?void 0:t.target)==null?void 0:o.dataset;n!=null&&n.childItemKey?e.menu[n.menuItemKey].children[n.childItemKey].handler.call(e):e.menu[n.menuItemKey].handler.call(e)}}}),Z=(t,e)=>{const o=t.__vccOpts||t;for(const[n,i]of e)o[n]=i;return o},ue=["data-menu-item-key"],pe={key:0,style:{float:"right"}},ce={key:1,class:"menu-item-children-container"},me=["data-menu-item-key","data-child-item-key"];function ge(t,e,o,n,i,s){return p(),c("div",null,[t.showMenuComponent?(p(),c("div",{key:0,class:q("menu diagram-context-menu"),style:N(`left: ${t.menuX}px; top: ${t.menuY}px`)},[(p(!0),c(z,null,E(t.showMenuComponent.menu,(l,d)=>(p(),c("div",{key:d,class:q(`menu-item ${l.classes?l.classes.join(" "):""}`),"data-menu-item-key":d},[Ct(B(l.label)+" ",1),l.children?(p(),c("span",pe," > ")):R("",!0),l.children?(p(),c("div",ce,[(p(!0),c(z,null,E(l.children,(a,h)=>(p(),c("div",{key:h,class:q(`menu-item child-menu-item ${a.classes?a.classes.join(" "):""}`),"data-menu-item-key":d,"data-child-item-key":h},B(a.label),11,me))),128))])):R("",!0)],10,ue))),128))],4)):R("",!0)])}const ve=Z(he,[["render",ge],["__scopeId","data-v-f5726dff"]]),fe=C({data(){return{style:"display: none;",object:void 0,property:"",element:void 0}},computed:{value:{get(){if(this.object)return this.object[this.property]},set(t){this.object&&(this.object[this.property]=t,this.computeStyle())}}},watch:{element(t,e){e&&e.classList.remove("opacity-0"),t&&t.classList.add("opacity-0")}},methods:{computeStyle(){this.element?this.style=` +import{k as nt,l as C,r as A,o as p,c,n as O,g as R,d as P,q as Pt,w as j,F as z,e as E,a as r,s as N,v as $,x as kt,y as wt,z as H,A as q,B as Ct,t as B,C as Dt,D as It,E as zt,p as Et,j as Tt,_ as Zt,u as Nt,b as it,T as Lt,m as Bt,G as st,H as At,I as Ot,J as $t}from"./index-BcaS_xbN.js";import{d as Rt}from"./n3-compare-BeIsM-_E.js";import"./lodash-CFmKKHsC.js";var Vt=Object.defineProperty,qt=(t,e,o)=>e in t?Vt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,I=(t,e,o)=>(qt(t,typeof e!="symbol"?e+"":e,o),o),Ut=Object.defineProperty,Ht=Object.defineProperties,jt=Object.getOwnPropertyDescriptors,rt=Object.getOwnPropertySymbols,Xt=Object.prototype.hasOwnProperty,Yt=Object.prototype.propertyIsEnumerable,lt=(t,e,o)=>e in t?Ut(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,Ft=(t,e)=>{for(var o in e||(e={}))Xt.call(e,o)&<(t,o,e[o]);if(rt)for(var o of rt(e))Yt.call(e,o)&<(t,o,e[o]);return t},Wt=(t,e)=>Ht(t,jt(e)),at=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof nt<"u"?nt:typeof self<"u"?self:{},Gt=function(){var t="",e,o,n,i=[],s={passive:!0};window.addEventListener?(e="addEventListener",o="removeEventListener"):(e="attachEvent",o="detachEvent",t="on"),n="onwheel"in document.createElement("div")?"wheel":document.onmousewheel!==void 0?"mousewheel":"DOMMouseScroll";function l(v,u){var y=function(g){!g&&(g=window.event);var S={originalEvent:g,target:g.target||g.srcElement,type:"wheel",deltaMode:g.type=="MozMousePixelScroll"?0:1,deltaX:0,delatZ:0,preventDefault:function(){g.preventDefault?g.preventDefault():g.returnValue=!1}};return n=="mousewheel"?(S.deltaY=-.025*g.wheelDelta,g.wheelDeltaX&&(S.deltaX=-.025*g.wheelDeltaX)):S.deltaY=g.detail,u(S)};return i.push({element:v,fn:y}),y}function d(v){for(var u=0;ue?(clearTimeout(d),d=null,a=m,l=t.apply(i,s),d||(i=s=null)):!d&&o.trailing!==!1&&(d=setTimeout(h,b)),l}},createRequestAnimationFrame:function(t){var e=null;return t!=="auto"&&t<60&&t>1&&(e=Math.floor(1e3/t)),e===null?window.requestAnimationFrame||dt(33):dt(e)}};function dt(t){return function(e){window.setTimeout(e,t)}}var K=tt,bt="unknown";document.documentMode&&(bt="ie");var et={svgNS:"http://www.w3.org/2000/svg",xmlNS:"http://www.w3.org/XML/1998/namespace",xmlnsNS:"http://www.w3.org/2000/xmlns/",xlinkNS:"http://www.w3.org/1999/xlink",evNS:"http://www.w3.org/2001/xml-events",getBoundingClientRectNormalized:function(t){if(t.clientWidth&&t.clientHeight)return{width:t.clientWidth,height:t.clientHeight};if(t.getBoundingClientRect())return t.getBoundingClientRect();throw new Error("Cannot get BoundingClientRect for SVG.")},getOrCreateViewport:function(t,e){var o=null;if(K.isElement(e)?o=e:o=t.querySelector(e),!o){var n=Array.prototype.slice.call(t.childNodes||t.children).filter(function(a){return a.nodeName!=="defs"&&a.nodeName!=="#text"});n.length===1&&n[0].nodeName==="g"&&n[0].getAttribute("transform")===null&&(o=n[0])}if(!o){var i="viewport-"+new Date().toISOString().replace(/\D/g,"");o=document.createElementNS(this.svgNS,"g"),o.setAttribute("id",i);var s=t.childNodes||t.children;if(s&&s.length>0)for(var l=s.length;l>0;l--)s[s.length-l].nodeName!=="defs"&&o.appendChild(s[s.length-l]);t.appendChild(o)}var d=[];return o.getAttribute("class")&&(d=o.getAttribute("class").split(" ")),~d.indexOf("svg-pan-zoom_viewport")||(d.push("svg-pan-zoom_viewport"),o.setAttribute("class",d.join(" "))),o},setupSvgAttributes:function(t){if(t.setAttribute("xmlns",this.svgNS),t.setAttributeNS(this.xmlnsNS,"xmlns:xlink",this.xlinkNS),t.setAttributeNS(this.xmlnsNS,"xmlns:ev",this.evNS),t.parentNode!==null){var e=t.getAttribute("style")||"";e.toLowerCase().indexOf("overflow")===-1&&t.setAttribute("style","overflow: hidden; "+e)}},internetExplorerRedisplayInterval:300,refreshDefsGlobal:K.throttle(function(){for(var t=document.querySelectorAll("defs"),e=t.length,o=0;o=0;n--)this.eventListeners.hasOwnProperty(o[n])&&delete this.eventListeners[o[n]]}for(var i in this.eventListeners)(this.options.eventsListenerElement||this.svg).addEventListener(i,this.eventListeners[i],this.options.preventMouseEventsDefault?!1:St);this.options.mouseWheelZoomEnabled&&(this.options.mouseWheelZoomEnabled=!1,this.enableMouseWheelZoom())};f.prototype.enableMouseWheelZoom=function(){if(!this.options.mouseWheelZoomEnabled){var t=this;this.wheelListener=function(o){return t.handleMouseWheel(o)};var e=!this.options.preventMouseEventsDefault;xt.on(this.options.eventsListenerElement||this.svg,this.wheelListener,e),this.options.mouseWheelZoomEnabled=!0}};f.prototype.disableMouseWheelZoom=function(){if(this.options.mouseWheelZoomEnabled){var t=!this.options.preventMouseEventsDefault;xt.off(this.options.eventsListenerElement||this.svg,this.wheelListener,t),this.options.mouseWheelZoomEnabled=!1}};f.prototype.handleMouseWheel=function(t){if(!(!this.options.zoomEnabled||this.state!=="none")){this.options.preventMouseEventsDefault&&(t.preventDefault?t.preventDefault():t.returnValue=!1);var e=t.deltaY||1,o=Date.now()-this.lastMouseWheelEventTime,n=3+Math.max(0,30-o);this.lastMouseWheelEventTime=Date.now(),"deltaMode"in t&&t.deltaMode===0&&t.wheelDelta&&(e=t.deltaY===0?0:Math.abs(t.wheelDelta)/t.deltaY),e=-.30?1:-1)*Math.log(Math.abs(e)+10)/n;var i=this.svg.getScreenCTM().inverse(),s=L.getEventPoint(t,this.svg).matrixTransform(i),l=Math.pow(1+this.options.zoomScaleSensitivity,-1*e);this.zoomAtPoint(l,s)}};f.prototype.zoomAtPoint=function(t,e,o){var n=this.viewport.getOriginalState();o?(t=Math.max(this.options.minZoom*n.zoom,Math.min(this.options.maxZoom*n.zoom,t)),t=t/this.getZoom()):this.getZoom()*tthis.options.maxZoom*n.zoom&&(t=this.options.maxZoom*n.zoom/this.getZoom());var i=this.viewport.getCTM(),s=e.matrixTransform(i.inverse()),l=this.svg.createSVGMatrix().translate(s.x,s.y).scale(t).translate(-s.x,-s.y),d=i.multiply(l);d.a!==i.a&&this.viewport.setCTM(d)};f.prototype.zoom=function(t,e){this.zoomAtPoint(t,L.getSvgCenterPoint(this.svg,this.width,this.height),e)};f.prototype.publicZoom=function(t,e){e&&(t=this.computeFromRelativeZoom(t)),this.zoom(t,e)};f.prototype.publicZoomAtPoint=function(t,e,o){if(o&&(t=this.computeFromRelativeZoom(t)),T.getType(e)!=="SVGPoint")if("x"in e&&"y"in e)e=L.createSVGPoint(this.svg,e.x,e.y);else throw new Error("Given point is invalid");this.zoomAtPoint(t,e,o)};f.prototype.getZoom=function(){return this.viewport.getZoom()};f.prototype.getRelativeZoom=function(){return this.viewport.getRelativeZoom()};f.prototype.computeFromRelativeZoom=function(t){return t*this.viewport.getOriginalState().zoom};f.prototype.resetZoom=function(){var t=this.viewport.getOriginalState();this.zoom(t.zoom,!0)};f.prototype.resetPan=function(){this.pan(this.viewport.getOriginalState())};f.prototype.reset=function(){this.resetZoom(),this.resetPan()};f.prototype.handleDblClick=function(t){if(this.options.preventMouseEventsDefault&&(t.preventDefault?t.preventDefault():t.returnValue=!1),this.options.controlIconsEnabled){var e=t.target.getAttribute("class")||"";if(e.indexOf("svg-pan-zoom-control")>-1)return!1}var o;t.shiftKey?o=1/((1+this.options.zoomScaleSensitivity)*2):o=(1+this.options.zoomScaleSensitivity)*2;var n=L.getEventPoint(t,this.svg).matrixTransform(this.svg.getScreenCTM().inverse());this.zoomAtPoint(o,n)};f.prototype.handleMouseDown=function(t,e){this.options.preventMouseEventsDefault&&(t.preventDefault?t.preventDefault():t.returnValue=!1),T.mouseAndTouchNormalize(t,this.svg),this.options.dblClickZoomEnabled&&T.isDblClick(t,e)?this.handleDblClick(t):(this.state="pan",this.firstEventCTM=this.viewport.getCTM(),this.stateOrigin=L.getEventPoint(t,this.svg).matrixTransform(this.firstEventCTM.inverse()))};f.prototype.handleMouseMove=function(t){if(this.options.preventMouseEventsDefault&&(t.preventDefault?t.preventDefault():t.returnValue=!1),this.state==="pan"&&this.options.panEnabled){var e=L.getEventPoint(t,this.svg).matrixTransform(this.firstEventCTM.inverse()),o=this.firstEventCTM.translate(e.x-this.stateOrigin.x,e.y-this.stateOrigin.y);this.viewport.setCTM(o)}};f.prototype.handleMouseUp=function(t){this.options.preventMouseEventsDefault&&(t.preventDefault?t.preventDefault():t.returnValue=!1),this.state==="pan"&&(this.state="none")};f.prototype.fit=function(){var t=this.viewport.getViewBox(),e=Math.min(this.width/t.width,this.height/t.height);this.zoom(e,!0)};f.prototype.contain=function(){var t=this.viewport.getViewBox(),e=Math.max(this.width/t.width,this.height/t.height);this.zoom(e,!0)};f.prototype.center=function(){var t=this.viewport.getViewBox(),e=(this.width-(t.width+t.x*2)*this.getZoom())*.5,o=(this.height-(t.height+t.y*2)*this.getZoom())*.5;this.getPublicInstance().pan({x:e,y:o})};f.prototype.updateBBox=function(){this.viewport.simpleViewBoxCache()};f.prototype.pan=function(t){var e=this.viewport.getCTM();e.e=t.x,e.f=t.y,this.viewport.setCTM(e)};f.prototype.panBy=function(t){var e=this.viewport.getCTM();e.e+=t.x,e.f+=t.y,this.viewport.setCTM(e)};f.prototype.getPan=function(){var t=this.viewport.getState();return{x:t.x,y:t.y}};f.prototype.resize=function(){var t=L.getBoundingClientRectNormalized(this.svg);this.width=t.width,this.height=t.height;var e=this.viewport;e.options.width=this.width,e.options.height=this.height,e.processCTM(),this.options.controlIconsEnabled&&(this.getPublicInstance().disableControlIcons(),this.getPublicInstance().enableControlIcons())};f.prototype.destroy=function(){var t=this;this.beforeZoom=null,this.onZoom=null,this.beforePan=null,this.onPan=null,this.onUpdatedCTM=null,this.options.customEventsHandler!=null&&this.options.customEventsHandler.destroy({svgElement:this.svg,eventsListenerElement:this.options.eventsListenerElement,instance:this.getPublicInstance()});for(var e in this.eventListeners)(this.options.eventsListenerElement||this.svg).removeEventListener(e,this.eventListeners[e],this.options.preventMouseEventsDefault?!1:St);this.disableMouseWheelZoom(),this.getPublicInstance().disableControlIcons(),this.reset(),V=V.filter(function(o){return o.svg!==t.svg}),delete this.options,delete this.viewport,delete this.publicInstance,delete this.pi,this.getPublicInstance=function(){return null}};f.prototype.getPublicInstance=function(){var t=this;return this.publicInstance||(this.publicInstance=this.pi={enablePan:function(){return t.options.panEnabled=!0,t.pi},disablePan:function(){return t.options.panEnabled=!1,t.pi},isPanEnabled:function(){return!!t.options.panEnabled},pan:function(e){return t.pan(e),t.pi},panBy:function(e){return t.panBy(e),t.pi},getPan:function(){return t.getPan()},setBeforePan:function(e){return t.options.beforePan=e===null?null:T.proxy(e,t.publicInstance),t.pi},setOnPan:function(e){return t.options.onPan=e===null?null:T.proxy(e,t.publicInstance),t.pi},enableZoom:function(){return t.options.zoomEnabled=!0,t.pi},disableZoom:function(){return t.options.zoomEnabled=!1,t.pi},isZoomEnabled:function(){return!!t.options.zoomEnabled},enableControlIcons:function(){return t.options.controlIconsEnabled||(t.options.controlIconsEnabled=!0,J.enable(t)),t.pi},disableControlIcons:function(){return t.options.controlIconsEnabled&&(t.options.controlIconsEnabled=!1,J.disable(t)),t.pi},isControlIconsEnabled:function(){return!!t.options.controlIconsEnabled},enableDblClickZoom:function(){return t.options.dblClickZoomEnabled=!0,t.pi},disableDblClickZoom:function(){return t.options.dblClickZoomEnabled=!1,t.pi},isDblClickZoomEnabled:function(){return!!t.options.dblClickZoomEnabled},enableMouseWheelZoom:function(){return t.enableMouseWheelZoom(),t.pi},disableMouseWheelZoom:function(){return t.disableMouseWheelZoom(),t.pi},isMouseWheelZoomEnabled:function(){return!!t.options.mouseWheelZoomEnabled},setZoomScaleSensitivity:function(e){return t.options.zoomScaleSensitivity=e,t.pi},setMinZoom:function(e){return t.options.minZoom=e,t.pi},setMaxZoom:function(e){return t.options.maxZoom=e,t.pi},setBeforeZoom:function(e){return t.options.beforeZoom=e===null?null:T.proxy(e,t.publicInstance),t.pi},setOnZoom:function(e){return t.options.onZoom=e===null?null:T.proxy(e,t.publicInstance),t.pi},zoom:function(e){return t.publicZoom(e,!0),t.pi},zoomBy:function(e){return t.publicZoom(e,!1),t.pi},zoomAtPoint:function(e,o){return t.publicZoomAtPoint(e,o,!0),t.pi},zoomAtPointBy:function(e,o){return t.publicZoomAtPoint(e,o,!1),t.pi},zoomIn:function(){return this.zoomBy(1+t.options.zoomScaleSensitivity),t.pi},zoomOut:function(){return this.zoomBy(1/(1+t.options.zoomScaleSensitivity)),t.pi},getZoom:function(){return t.getRelativeZoom()},setOnUpdatedCTM:function(e){return t.options.onUpdatedCTM=e===null?null:T.proxy(e,t.publicInstance),t.pi},resetZoom:function(){return t.resetZoom(),t.pi},resetPan:function(){return t.resetPan(),t.pi},reset:function(){return t.reset(),t.pi},fit:function(){return t.fit(),t.pi},contain:function(){return t.contain(),t.pi},center:function(){return t.center(),t.pi},updateBBox:function(){return t.updateBBox(),t.pi},resize:function(){return t.resize(),t.pi},getSizes:function(){return{width:t.width,height:t.height,realZoom:t.getZoom(),viewBox:t.viewport.getViewBox()}},destroy:function(){return t.destroy(),t.pi}}),this.publicInstance};var V=[],oe=function(t,e){var o=T.getSvg(t);if(o===null)return null;for(var n=V.length-1;n>=0;n--)if(V[n].svg===o)return V[n].instance.getPublicInstance();return V.push({svg:o,instance:new f(o,e)}),V[V.length-1].instance.getPublicInstance()},ne=oe,Mt=(t,e)=>{const o=t.__vccOpts||t;for(const[n,i]of e)o[n]=i;return o};const ie=["x","y","width","height"],se=C({__name:"Scope",props:{mainSPZ:null,thumbnailSPZ:null},setup(t){const e=t,o=$(0),n=$(0),i=$(0),s=$(0),l=$(null),d=()=>{if(!e.mainSPZ||!e.thumbnailSPZ)return;const h=e.mainSPZ.getPan().x,m=e.mainSPZ.getPan().y,b=e.mainSPZ.getSizes().width,w=e.mainSPZ.getSizes().height,v=e.mainSPZ.getSizes().realZoom,u=e.thumbnailSPZ.getPan().x,y=e.thumbnailSPZ.getPan().y,g=e.thumbnailSPZ.getSizes().realZoom/v,S=u-h*g,X=y-m*g,W=b*g,G=w*g;o.value=S+1,n.value=X+1,i.value=W-2,s.value=G-2},a=h=>{if(h.which==0&&h.button==0||!l.value)return;let m=e.mainSPZ,b=e.thumbnailSPZ,w=l.value.getBoundingClientRect();m.getSizes().width,m.getSizes().height;let v=m.getSizes().realZoom,u=b.getSizes().width,y=b.getSizes().height,g=b.getSizes().realZoom;var S=h.clientX-w.left-u/2,X=h.clientY-w.top-y/2,W=-S*v/g,G=-X*v/g;m.pan({x:W,y:G})};return wt(()=>{d(),e.mainSPZ.setOnPan(()=>d()),e.mainSPZ.setOnZoom(()=>d())}),(h,m)=>(p(),c("svg",{class:"svg-pan-zoom__scope",onClick:a,onMousemove:a,ref_key:"scopeSVG",ref:l},[r("rect",{class:"scope",x:o.value,y:n.value,width:i.value,height:s.value},null,8,ie)],544))}});var re=Mt(se,[["__scopeId","data-v-169415fd"]]);const le=C({__name:"SvgPanZoomThumbnail",props:{mainSPZ:null},emits:["thumbnailCreated"],setup(t,{emit:e}){const o=t,n=$(null),i=l=>{o.mainSPZ[l.deltaY<0?"zoomIn":"zoomOut"]()},s=l=>{n.value=l,e("thumbnailCreated",l)};return(l,d)=>(p(),c("div",{class:"svg-pan-zoom__thumbnail",onWheel:i},[P(_t,{class:"thumbnail",zoomEnabled:!1,panEnabled:!1,controlIconsEnabled:!1,dblClickZoomEnabled:!1,preventMouseEventsDefault:!0,onCreated:s},{default:j(()=>[H(l.$slots,"default",{},void 0,!0)]),_:3}),n.value?(p(),O(re,{key:0,mainSPZ:t.mainSPZ,thumbnailSPZ:n.value},null,8,["mainSPZ","thumbnailSPZ"])):R("",!0)],32))}});var ae=Mt(le,[["__scopeId","data-v-093287c4"]]);const de={class:"svg-pan-zoom"},_t=C({__name:"SvgPanZoom",props:{viewportSelector:{type:[String,Object],default:".svg-pan-zoom"},panEnabled:{type:Boolean,default:!0},controlIconsEnabled:{type:Boolean,default:!1},zoomEnabled:{type:Boolean,default:!0},dblClickZoomEnabled:{type:Boolean,default:!0},mouseWheelZoomEnabled:{type:Boolean,default:!0},preventMouseEventsDefault:{type:Boolean,default:!0},zoomScaleSensitivity:{type:Number,default:.2},minZoom:{type:Number,default:.5},maxZoom:{type:Number,default:10},fit:{type:Boolean,default:!0},contain:{type:Boolean,default:!0},center:{type:Boolean,default:!0},refreshRate:{type:[Number,String],default:"auto"}},emits:["beforeZoom","onZoom","beforePan","onPan","onUpdatedCTM","created","thumbnailCreated"],setup(t,{emit:e}){const o=t,n=$(null),i=kt(),s=$({});Object.keys(o).filter(a=>o[a]!==void 0).forEach(a=>{s.value=Wt(Ft({},s.value),{[a]:o[a]})});const l=$(null),d=a=>{if(a&&a.tagName==="svg")return a;const h=Array.from(a.children);if(!h)return!1;for(const m of h){const b=d(m);if(b)return b}return!1};return wt(()=>{if(s.value.onZoom=h=>e("onZoom",h),s.value.onPan=h=>e("onPan",h),!(i.default&&n.value))return;const a=d(n.value);a&&(l.value=ne(a,s.value),e("created",l.value))}),(a,h)=>(p(),c("div",de,[r("div",{class:"svg-pan-zoom__default",ref_key:"defaultSlot",ref:n},[H(a.$slots,"default")],512),a.$slots.thumbnail&&l.value?(p(),O(ae,{key:0,onThumbnailCreated:h[0]||(h[0]=m=>a.$emit("thumbnailCreated",m)),mainSPZ:l.value},{default:j(()=>[H(a.$slots,"thumbnail")]),_:3},8,["mainSPZ"])):R("",!0)]))}}),he=C({data(){return{onContextMenu:t=>{t.preventDefault()},onMouseDown:t=>{const e=this,o=t==null?void 0:t.target.closest(".diagram-context-menu"),n=t==null?void 0:t.target.closest(".has-menu");this.menuX=t.pageX,this.menuY=t.pageY,o?(t.stopPropagation(),this.menuItemClick(t,this.showMenuComponent),e.showMenuComponent=void 0):n&&t.button===2?(this.showMenuComponent=n.vueComponent,t.stopPropagation()):e.showMenuComponent=void 0},menuX:0,menuY:0,showMenuComponent:void 0}},mounted(){this.$parent.$el.addEventListener("mousedown",this.onMouseDown,{capture:!0}),this.$parent.$el.addEventListener("contextmenu",this.onContextMenu)},beforeUnmount(){this.$parent.$el.removeEventListener("mousedown",this.onMouseDown),this.$parent.$el.addEventListener("contextmenu",this.onContextMenu)},methods:{menuItemClick(t,e){var o;const n=(o=t==null?void 0:t.target)==null?void 0:o.dataset;n!=null&&n.childItemKey?e.menu[n.menuItemKey].children[n.childItemKey].handler.call(e):e.menu[n.menuItemKey].handler.call(e)}}}),Z=(t,e)=>{const o=t.__vccOpts||t;for(const[n,i]of e)o[n]=i;return o},ue=["data-menu-item-key"],pe={key:0,style:{float:"right"}},ce={key:1,class:"menu-item-children-container"},me=["data-menu-item-key","data-child-item-key"];function ge(t,e,o,n,i,s){return p(),c("div",null,[t.showMenuComponent?(p(),c("div",{key:0,class:q("menu diagram-context-menu"),style:N(`left: ${t.menuX}px; top: ${t.menuY}px`)},[(p(!0),c(z,null,E(t.showMenuComponent.menu,(l,d)=>(p(),c("div",{key:d,class:q(`menu-item ${l.classes?l.classes.join(" "):""}`),"data-menu-item-key":d},[Ct(B(l.label)+" ",1),l.children?(p(),c("span",pe," > ")):R("",!0),l.children?(p(),c("div",ce,[(p(!0),c(z,null,E(l.children,(a,h)=>(p(),c("div",{key:h,class:q(`menu-item child-menu-item ${a.classes?a.classes.join(" "):""}`),"data-menu-item-key":d,"data-child-item-key":h},B(a.label),11,me))),128))])):R("",!0)],10,ue))),128))],4)):R("",!0)])}const ve=Z(he,[["render",ge],["__scopeId","data-v-f5726dff"]]),fe=C({data(){return{style:"display: none;",object:void 0,property:"",element:void 0}},computed:{value:{get(){if(this.object)return this.object[this.property]},set(t){this.object&&(this.object[this.property]=t,this.computeStyle())}}},watch:{element(t,e){e&&e.classList.remove("opacity-0"),t&&t.classList.add("opacity-0")}},methods:{computeStyle(){this.element?this.style=` top: ${this.element.getBoundingClientRect().top}px; left: ${this.element.getBoundingClientRect().left}px; width: ${this.element.getBoundingClientRect().width}px; diff --git a/pad/assets/index-PXc6VOLX.js b/pad/assets/index-BcaS_xbN.js similarity index 86% rename from pad/assets/index-PXc6VOLX.js rename to pad/assets/index-BcaS_xbN.js index bd3f00b..85f07c2 100644 --- a/pad/assets/index-PXc6VOLX.js +++ b/pad/assets/index-BcaS_xbN.js @@ -1,43 +1,43 @@ -const __vite__fileDeps=["./DashboardView-ByE6n5y7.js","./Term-mut0BvSr.js","./index-B9jj8Ydm.js","./InstanceList-Co90cV-T.js","./DashboardView-D39OJwqc.css","./VocPad-BbbB64ZC.js","./n3-compare-DZx0gfyH.js","./lodash-BSfnp1_F.js","./EditForm-ZP9PIVhz.js","./FormDemo-Dkmfdozh.js","./Kanban-DCPF8TrZ.js","./Kanban-BMdQQu_o.css","./Source-Bbt3wr0N.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -var _re=Object.defineProperty;var bre=(t,e,r)=>e in t?_re(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Cr=(t,e,r)=>(bre(t,typeof e!="symbol"?e+"":e,r),r),pE=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var me=(t,e,r)=>(pE(t,e,"read from private field"),r?r.call(t):e.get(t)),Lt=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},wt=(t,e,r,n)=>(pE(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);var tv=(t,e,r,n)=>({set _(a){wt(t,e,a,r)},get _(){return me(t,e,n)}}),pt=(t,e,r)=>(pE(t,e,"access private method"),r);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const s of a)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(a){if(a.ep)return;a.ep=!0;const s=r(a);fetch(a.href,s)}})();var ti="top",qi="bottom",$i="right",ri="left",MS="auto",rf=[ti,qi,$i,ri],Uc="start",xd="end",XQ="clippingParents",hN="viewport",Ql="popper",YQ="reference",TI=rf.reduce(function(t,e){return t.concat([e+"-"+Uc,e+"-"+xd])},[]),pN=[].concat(rf,[MS]).reduce(function(t,e){return t.concat([e,e+"-"+Uc,e+"-"+xd])},[]),ZQ="beforeRead",ez="read",tz="afterRead",rz="beforeMain",nz="main",iz="afterMain",az="beforeWrite",sz="write",oz="afterWrite",uz=[ZQ,ez,tz,rz,nz,iz,az,sz,oz];function hs(t){return t?(t.nodeName||"").toLowerCase():null}function Ui(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function kc(t){var e=Ui(t).Element;return t instanceof e||t instanceof Element}function ia(t){var e=Ui(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function yN(t){if(typeof ShadowRoot>"u")return!1;var e=Ui(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function vre(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var n=e.styles[r]||{},a=e.attributes[r]||{},s=e.elements[r];!ia(s)||!hs(s)||(Object.assign(s.style,n),Object.keys(a).forEach(function(o){var u=a[o];u===!1?s.removeAttribute(o):s.setAttribute(o,u===!0?"":u)}))})}function wre(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(n){var a=e.elements[n],s=e.attributes[n]||{},o=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:r[n]),u=o.reduce(function(c,l){return c[l]="",c},{});!ia(a)||!hs(a)||(Object.assign(a.style,u),Object.keys(s).forEach(function(c){a.removeAttribute(c)}))})}}const mN={name:"applyStyles",enabled:!0,phase:"write",fn:vre,effect:wre,requires:["computeStyles"]};function os(t){return t.split("-")[0]}var Cc=Math.max,Jw=Math.min,Id=Math.round;function EI(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function cz(){return!/^((?!chrome|android).)*safari/i.test(EI())}function Pd(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),a=1,s=1;e&&ia(t)&&(a=t.offsetWidth>0&&Id(n.width)/t.offsetWidth||1,s=t.offsetHeight>0&&Id(n.height)/t.offsetHeight||1);var o=kc(t)?Ui(t):window,u=o.visualViewport,c=!cz()&&r,l=(n.left+(c&&u?u.offsetLeft:0))/a,d=(n.top+(c&&u?u.offsetTop:0))/s,f=n.width/a,h=n.height/s;return{width:f,height:h,top:d,right:l+f,bottom:d+h,left:l,x:l,y:d}}function gN(t){var e=Pd(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function lz(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&yN(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function yo(t){return Ui(t).getComputedStyle(t)}function Sre(t){return["table","td","th"].indexOf(hs(t))>=0}function vu(t){return((kc(t)?t.ownerDocument:t.document)||window.document).documentElement}function FS(t){return hs(t)==="html"?t:t.assignedSlot||t.parentNode||(yN(t)?t.host:null)||vu(t)}function K4(t){return!ia(t)||yo(t).position==="fixed"?null:t.offsetParent}function Tre(t){var e=/firefox/i.test(EI()),r=/Trident/i.test(EI());if(r&&ia(t)){var n=yo(t);if(n.position==="fixed")return null}var a=FS(t);for(yN(a)&&(a=a.host);ia(a)&&["html","body"].indexOf(hs(a))<0;){var s=yo(a);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return a;a=a.parentNode}return null}function Pb(t){for(var e=Ui(t),r=K4(t);r&&Sre(r)&&yo(r).position==="static";)r=K4(r);return r&&(hs(r)==="html"||hs(r)==="body"&&yo(r).position==="static")?e:r||Tre(t)||e}function _N(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function F_(t,e,r){return Cc(t,Jw(e,r))}function Ere(t,e,r){var n=F_(t,e,r);return n>r?r:n}function dz(){return{top:0,right:0,bottom:0,left:0}}function fz(t){return Object.assign({},dz(),t)}function hz(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}var Are=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,fz(typeof e!="number"?e:hz(e,rf))};function Ore(t){var e,r=t.state,n=t.name,a=t.options,s=r.elements.arrow,o=r.modifiersData.popperOffsets,u=os(r.placement),c=_N(u),l=[ri,$i].indexOf(u)>=0,d=l?"height":"width";if(!(!s||!o)){var f=Are(a.padding,r),h=gN(s),p=c==="y"?ti:ri,m=c==="y"?qi:$i,y=r.rects.reference[d]+r.rects.reference[c]-o[c]-r.rects.popper[d],g=o[c]-r.rects.reference[c],b=Pb(s),v=b?c==="y"?b.clientHeight||0:b.clientWidth||0:0,_=y/2-g/2,w=f[p],E=v-h[d]-f[m],O=v/2-h[d]/2+_,L=F_(w,O,E),F=c;r.modifiersData[n]=(e={},e[F]=L,e.centerOffset=L-O,e)}}function Rre(t){var e=t.state,r=t.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=e.elements.popper.querySelector(a),!a)||lz(e.elements.popper,a)&&(e.elements.arrow=a))}const pz={name:"arrow",enabled:!0,phase:"main",fn:Ore,effect:Rre,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Nd(t){return t.split("-")[1]}var xre={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ire(t,e){var r=t.x,n=t.y,a=e.devicePixelRatio||1;return{x:Id(r*a)/a||0,y:Id(n*a)/a||0}}function J4(t){var e,r=t.popper,n=t.popperRect,a=t.placement,s=t.variation,o=t.offsets,u=t.position,c=t.gpuAcceleration,l=t.adaptive,d=t.roundOffsets,f=t.isFixed,h=o.x,p=h===void 0?0:h,m=o.y,y=m===void 0?0:m,g=typeof d=="function"?d({x:p,y}):{x:p,y};p=g.x,y=g.y;var b=o.hasOwnProperty("x"),v=o.hasOwnProperty("y"),_=ri,w=ti,E=window;if(l){var O=Pb(r),L="clientHeight",F="clientWidth";if(O===Ui(r)&&(O=vu(r),yo(O).position!=="static"&&u==="absolute"&&(L="scrollHeight",F="scrollWidth")),O=O,a===ti||(a===ri||a===$i)&&s===xd){w=qi;var x=f&&O===E&&E.visualViewport?E.visualViewport.height:O[L];y-=x-n.height,y*=c?1:-1}if(a===ri||(a===ti||a===qi)&&s===xd){_=$i;var P=f&&O===E&&E.visualViewport?E.visualViewport.width:O[F];p-=P-n.width,p*=c?1:-1}}var j=Object.assign({position:u},l&&xre),N=d===!0?Ire({x:p,y},Ui(r)):{x:p,y};if(p=N.x,y=N.y,c){var V;return Object.assign({},j,(V={},V[w]=v?"0":"",V[_]=b?"0":"",V.transform=(E.devicePixelRatio||1)<=1?"translate("+p+"px, "+y+"px)":"translate3d("+p+"px, "+y+"px, 0)",V))}return Object.assign({},j,(e={},e[w]=v?y+"px":"",e[_]=b?p+"px":"",e.transform="",e))}function Pre(t){var e=t.state,r=t.options,n=r.gpuAcceleration,a=n===void 0?!0:n,s=r.adaptive,o=s===void 0?!0:s,u=r.roundOffsets,c=u===void 0?!0:u,l={placement:os(e.placement),variation:Nd(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:a,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,J4(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,J4(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const bN={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Pre,data:{}};var rv={passive:!0};function Nre(t){var e=t.state,r=t.instance,n=t.options,a=n.scroll,s=a===void 0?!0:a,o=n.resize,u=o===void 0?!0:o,c=Ui(e.elements.popper),l=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&l.forEach(function(d){d.addEventListener("scroll",r.update,rv)}),u&&c.addEventListener("resize",r.update,rv),function(){s&&l.forEach(function(d){d.removeEventListener("scroll",r.update,rv)}),u&&c.removeEventListener("resize",r.update,rv)}}const vN={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Nre,data:{}};var Dre={left:"right",right:"left",bottom:"top",top:"bottom"};function pw(t){return t.replace(/left|right|bottom|top/g,function(e){return Dre[e]})}var Cre={start:"end",end:"start"};function X4(t){return t.replace(/start|end/g,function(e){return Cre[e]})}function wN(t){var e=Ui(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function SN(t){return Pd(vu(t)).left+wN(t).scrollLeft}function Lre(t,e){var r=Ui(t),n=vu(t),a=r.visualViewport,s=n.clientWidth,o=n.clientHeight,u=0,c=0;if(a){s=a.width,o=a.height;var l=cz();(l||!l&&e==="fixed")&&(u=a.offsetLeft,c=a.offsetTop)}return{width:s,height:o,x:u+SN(t),y:c}}function jre(t){var e,r=vu(t),n=wN(t),a=(e=t.ownerDocument)==null?void 0:e.body,s=Cc(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),o=Cc(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),u=-n.scrollLeft+SN(t),c=-n.scrollTop;return yo(a||r).direction==="rtl"&&(u+=Cc(r.clientWidth,a?a.clientWidth:0)-s),{width:s,height:o,x:u,y:c}}function TN(t){var e=yo(t),r=e.overflow,n=e.overflowX,a=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function yz(t){return["html","body","#document"].indexOf(hs(t))>=0?t.ownerDocument.body:ia(t)&&TN(t)?t:yz(FS(t))}function B_(t,e){var r;e===void 0&&(e=[]);var n=yz(t),a=n===((r=t.ownerDocument)==null?void 0:r.body),s=Ui(n),o=a?[s].concat(s.visualViewport||[],TN(n)?n:[]):n,u=e.concat(o);return a?u:u.concat(B_(FS(o)))}function AI(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Mre(t,e){var r=Pd(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function Y4(t,e,r){return e===hN?AI(Lre(t,r)):kc(e)?Mre(e,r):AI(jre(vu(t)))}function Fre(t){var e=B_(FS(t)),r=["absolute","fixed"].indexOf(yo(t).position)>=0,n=r&&ia(t)?Pb(t):t;return kc(n)?e.filter(function(a){return kc(a)&&lz(a,n)&&hs(a)!=="body"}):[]}function Bre(t,e,r,n){var a=e==="clippingParents"?Fre(t):[].concat(e),s=[].concat(a,[r]),o=s[0],u=s.reduce(function(c,l){var d=Y4(t,l,n);return c.top=Cc(d.top,c.top),c.right=Jw(d.right,c.right),c.bottom=Jw(d.bottom,c.bottom),c.left=Cc(d.left,c.left),c},Y4(t,o,n));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function mz(t){var e=t.reference,r=t.element,n=t.placement,a=n?os(n):null,s=n?Nd(n):null,o=e.x+e.width/2-r.width/2,u=e.y+e.height/2-r.height/2,c;switch(a){case ti:c={x:o,y:e.y-r.height};break;case qi:c={x:o,y:e.y+e.height};break;case $i:c={x:e.x+e.width,y:u};break;case ri:c={x:e.x-r.width,y:u};break;default:c={x:e.x,y:e.y}}var l=a?_N(a):null;if(l!=null){var d=l==="y"?"height":"width";switch(s){case Uc:c[l]=c[l]-(e[d]/2-r[d]/2);break;case xd:c[l]=c[l]+(e[d]/2-r[d]/2);break}}return c}function Dd(t,e){e===void 0&&(e={});var r=e,n=r.placement,a=n===void 0?t.placement:n,s=r.strategy,o=s===void 0?t.strategy:s,u=r.boundary,c=u===void 0?XQ:u,l=r.rootBoundary,d=l===void 0?hN:l,f=r.elementContext,h=f===void 0?Ql:f,p=r.altBoundary,m=p===void 0?!1:p,y=r.padding,g=y===void 0?0:y,b=fz(typeof g!="number"?g:hz(g,rf)),v=h===Ql?YQ:Ql,_=t.rects.popper,w=t.elements[m?v:h],E=Bre(kc(w)?w:w.contextElement||vu(t.elements.popper),c,d,o),O=Pd(t.elements.reference),L=mz({reference:O,element:_,strategy:"absolute",placement:a}),F=AI(Object.assign({},_,L)),x=h===Ql?F:O,P={top:E.top-x.top+b.top,bottom:x.bottom-E.bottom+b.bottom,left:E.left-x.left+b.left,right:x.right-E.right+b.right},j=t.modifiersData.offset;if(h===Ql&&j){var N=j[a];Object.keys(P).forEach(function(V){var $=[$i,qi].indexOf(V)>=0?1:-1,q=[ti,qi].indexOf(V)>=0?"y":"x";P[V]+=N[q]*$})}return P}function qre(t,e){e===void 0&&(e={});var r=e,n=r.placement,a=r.boundary,s=r.rootBoundary,o=r.padding,u=r.flipVariations,c=r.allowedAutoPlacements,l=c===void 0?pN:c,d=Nd(n),f=d?u?TI:TI.filter(function(m){return Nd(m)===d}):rf,h=f.filter(function(m){return l.indexOf(m)>=0});h.length===0&&(h=f);var p=h.reduce(function(m,y){return m[y]=Dd(t,{placement:y,boundary:a,rootBoundary:s,padding:o})[os(y)],m},{});return Object.keys(p).sort(function(m,y){return p[m]-p[y]})}function $re(t){if(os(t)===MS)return[];var e=pw(t);return[X4(t),e,X4(e)]}function Ure(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var a=r.mainAxis,s=a===void 0?!0:a,o=r.altAxis,u=o===void 0?!0:o,c=r.fallbackPlacements,l=r.padding,d=r.boundary,f=r.rootBoundary,h=r.altBoundary,p=r.flipVariations,m=p===void 0?!0:p,y=r.allowedAutoPlacements,g=e.options.placement,b=os(g),v=b===g,_=c||(v||!m?[pw(g)]:$re(g)),w=[g].concat(_).reduce(function(ce,xe){return ce.concat(os(xe)===MS?qre(e,{placement:xe,boundary:d,rootBoundary:f,padding:l,flipVariations:m,allowedAutoPlacements:y}):xe)},[]),E=e.rects.reference,O=e.rects.popper,L=new Map,F=!0,x=w[0],P=0;P=0,q=$?"width":"height",H=Dd(e,{placement:j,boundary:d,rootBoundary:f,altBoundary:h,padding:l}),X=$?V?$i:ri:V?qi:ti;E[q]>O[q]&&(X=pw(X));var Y=pw(X),he=[];if(s&&he.push(H[N]<=0),u&&he.push(H[X]<=0,H[Y]<=0),he.every(function(ce){return ce})){x=j,F=!1;break}L.set(j,he)}if(F)for(var Te=m?3:1,Ne=function(xe){var Pe=w.find(function(we){var Re=L.get(we);if(Re)return Re.slice(0,xe).every(function(Se){return Se})});if(Pe)return x=Pe,"break"},$e=Te;$e>0;$e--){var de=Ne($e);if(de==="break")break}e.placement!==x&&(e.modifiersData[n]._skip=!0,e.placement=x,e.reset=!0)}}const gz={name:"flip",enabled:!0,phase:"main",fn:Ure,requiresIfExists:["offset"],data:{_skip:!1}};function Z4(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function e6(t){return[ti,$i,qi,ri].some(function(e){return t[e]>=0})}function kre(t){var e=t.state,r=t.name,n=e.rects.reference,a=e.rects.popper,s=e.modifiersData.preventOverflow,o=Dd(e,{elementContext:"reference"}),u=Dd(e,{altBoundary:!0}),c=Z4(o,n),l=Z4(u,a,s),d=e6(c),f=e6(l);e.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:d,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const _z={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:kre};function Vre(t,e,r){var n=os(t),a=[ri,ti].indexOf(n)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,o=s[0],u=s[1];return o=o||0,u=(u||0)*a,[ri,$i].indexOf(n)>=0?{x:u,y:o}:{x:o,y:u}}function Hre(t){var e=t.state,r=t.options,n=t.name,a=r.offset,s=a===void 0?[0,0]:a,o=pN.reduce(function(d,f){return d[f]=Vre(f,e.rects,s),d},{}),u=o[e.placement],c=u.x,l=u.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=l),e.modifiersData[n]=o}const bz={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Hre};function Qre(t){var e=t.state,r=t.name;e.modifiersData[r]=mz({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const EN={name:"popperOffsets",enabled:!0,phase:"read",fn:Qre,data:{}};function zre(t){return t==="x"?"y":"x"}function Gre(t){var e=t.state,r=t.options,n=t.name,a=r.mainAxis,s=a===void 0?!0:a,o=r.altAxis,u=o===void 0?!1:o,c=r.boundary,l=r.rootBoundary,d=r.altBoundary,f=r.padding,h=r.tether,p=h===void 0?!0:h,m=r.tetherOffset,y=m===void 0?0:m,g=Dd(e,{boundary:c,rootBoundary:l,padding:f,altBoundary:d}),b=os(e.placement),v=Nd(e.placement),_=!v,w=_N(b),E=zre(w),O=e.modifiersData.popperOffsets,L=e.rects.reference,F=e.rects.popper,x=typeof y=="function"?y(Object.assign({},e.rects,{placement:e.placement})):y,P=typeof x=="number"?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),j=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,N={x:0,y:0};if(O){if(s){var V,$=w==="y"?ti:ri,q=w==="y"?qi:$i,H=w==="y"?"height":"width",X=O[w],Y=X+g[$],he=X-g[q],Te=p?-F[H]/2:0,Ne=v===Uc?L[H]:F[H],$e=v===Uc?-F[H]:-L[H],de=e.elements.arrow,ce=p&&de?gN(de):{width:0,height:0},xe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:dz(),Pe=xe[$],we=xe[q],Re=F_(0,L[H],ce[H]),Se=_?L[H]/2-Te-Re-Pe-P.mainAxis:Ne-Re-Pe-P.mainAxis,z=_?-L[H]/2+Te+Re+we+P.mainAxis:$e+Re+we+P.mainAxis,M=e.elements.arrow&&Pb(e.elements.arrow),k=M?w==="y"?M.clientTop||0:M.clientLeft||0:0,T=(V=j==null?void 0:j[w])!=null?V:0,R=X+Se-T-k,U=X+z-T,G=F_(p?Jw(Y,R):Y,X,p?Cc(he,U):he);O[w]=G,N[w]=G-X}if(u){var Q,Z=w==="x"?ti:ri,se=w==="x"?qi:$i,re=O[E],le=E==="y"?"height":"width",pe=re+g[Z],_e=re-g[se],Ie=[ti,ri].indexOf(b)!==-1,Ee=(Q=j==null?void 0:j[E])!=null?Q:0,Me=Ie?pe:re-L[le]-F[le]-Ee+P.altAxis,Ce=Ie?re+L[le]+F[le]-Ee-P.altAxis:_e,ke=p&&Ie?Ere(Me,re,Ce):F_(p?Me:pe,re,p?Ce:_e);O[E]=ke,N[E]=ke-re}e.modifiersData[n]=N}}const vz={name:"preventOverflow",enabled:!0,phase:"main",fn:Gre,requiresIfExists:["offset"]};function Wre(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Kre(t){return t===Ui(t)||!ia(t)?wN(t):Wre(t)}function Jre(t){var e=t.getBoundingClientRect(),r=Id(e.width)/t.offsetWidth||1,n=Id(e.height)/t.offsetHeight||1;return r!==1||n!==1}function Xre(t,e,r){r===void 0&&(r=!1);var n=ia(e),a=ia(e)&&Jre(e),s=vu(e),o=Pd(t,a,r),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((hs(e)!=="body"||TN(s))&&(u=Kre(e)),ia(e)?(c=Pd(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):s&&(c.x=SN(s))),{x:o.left+u.scrollLeft-c.x,y:o.top+u.scrollTop-c.y,width:o.width,height:o.height}}function Yre(t){var e=new Map,r=new Set,n=[];t.forEach(function(s){e.set(s.name,s)});function a(s){r.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(u){if(!r.has(u)){var c=e.get(u);c&&a(c)}}),n.push(s)}return t.forEach(function(s){r.has(s.name)||a(s)}),n}function Zre(t){var e=Yre(t);return uz.reduce(function(r,n){return r.concat(e.filter(function(a){return a.phase===n}))},[])}function ene(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function tne(t){var e=t.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}var t6={placement:"bottom",modifiers:[],strategy:"absolute"};function r6(){for(var t=arguments.length,e=new Array(t),r=0;ri.map(i=>__vite__fileDeps[i]); +var gre=Object.defineProperty;var _re=(t,e,r)=>e in t?gre(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Cr=(t,e,r)=>(_re(t,typeof e!="symbol"?e+"":e,r),r),hE=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var me=(t,e,r)=>(hE(t,e,"read from private field"),r?r.call(t):e.get(t)),Lt=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},wt=(t,e,r,n)=>(hE(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);var tv=(t,e,r,n)=>({set _(a){wt(t,e,a,r)},get _(){return me(t,e,n)}}),pt=(t,e,r)=>(hE(t,e,"access private method"),r);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const s of a)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(a){if(a.ep)return;a.ep=!0;const s=r(a);fetch(a.href,s)}})();var ti="top",qi="bottom",$i="right",ri="left",jS="auto",rf=[ti,qi,$i,ri],Uc="start",Rd="end",XQ="clippingParents",hN="viewport",Hl="popper",YQ="reference",SI=rf.reduce(function(t,e){return t.concat([e+"-"+Uc,e+"-"+Rd])},[]),pN=[].concat(rf,[jS]).reduce(function(t,e){return t.concat([e,e+"-"+Uc,e+"-"+Rd])},[]),ZQ="beforeRead",ez="read",tz="afterRead",rz="beforeMain",nz="main",iz="afterMain",az="beforeWrite",sz="write",oz="afterWrite",uz=[ZQ,ez,tz,rz,nz,iz,az,sz,oz];function hs(t){return t?(t.nodeName||"").toLowerCase():null}function Ui(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function kc(t){var e=Ui(t).Element;return t instanceof e||t instanceof Element}function ia(t){var e=Ui(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function yN(t){if(typeof ShadowRoot>"u")return!1;var e=Ui(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function bre(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var n=e.styles[r]||{},a=e.attributes[r]||{},s=e.elements[r];!ia(s)||!hs(s)||(Object.assign(s.style,n),Object.keys(a).forEach(function(o){var u=a[o];u===!1?s.removeAttribute(o):s.setAttribute(o,u===!0?"":u)}))})}function vre(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(n){var a=e.elements[n],s=e.attributes[n]||{},o=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:r[n]),u=o.reduce(function(c,l){return c[l]="",c},{});!ia(a)||!hs(a)||(Object.assign(a.style,u),Object.keys(s).forEach(function(c){a.removeAttribute(c)}))})}}const mN={name:"applyStyles",enabled:!0,phase:"write",fn:bre,effect:vre,requires:["computeStyles"]};function os(t){return t.split("-")[0]}var Cc=Math.max,Jw=Math.min,xd=Math.round;function TI(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function cz(){return!/^((?!chrome|android).)*safari/i.test(TI())}function Id(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),a=1,s=1;e&&ia(t)&&(a=t.offsetWidth>0&&xd(n.width)/t.offsetWidth||1,s=t.offsetHeight>0&&xd(n.height)/t.offsetHeight||1);var o=kc(t)?Ui(t):window,u=o.visualViewport,c=!cz()&&r,l=(n.left+(c&&u?u.offsetLeft:0))/a,d=(n.top+(c&&u?u.offsetTop:0))/s,f=n.width/a,h=n.height/s;return{width:f,height:h,top:d,right:l+f,bottom:d+h,left:l,x:l,y:d}}function gN(t){var e=Id(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function lz(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&yN(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function yo(t){return Ui(t).getComputedStyle(t)}function wre(t){return["table","td","th"].indexOf(hs(t))>=0}function vu(t){return((kc(t)?t.ownerDocument:t.document)||window.document).documentElement}function MS(t){return hs(t)==="html"?t:t.assignedSlot||t.parentNode||(yN(t)?t.host:null)||vu(t)}function K4(t){return!ia(t)||yo(t).position==="fixed"?null:t.offsetParent}function Sre(t){var e=/firefox/i.test(TI()),r=/Trident/i.test(TI());if(r&&ia(t)){var n=yo(t);if(n.position==="fixed")return null}var a=MS(t);for(yN(a)&&(a=a.host);ia(a)&&["html","body"].indexOf(hs(a))<0;){var s=yo(a);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return a;a=a.parentNode}return null}function Pb(t){for(var e=Ui(t),r=K4(t);r&&wre(r)&&yo(r).position==="static";)r=K4(r);return r&&(hs(r)==="html"||hs(r)==="body"&&yo(r).position==="static")?e:r||Sre(t)||e}function _N(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function F_(t,e,r){return Cc(t,Jw(e,r))}function Tre(t,e,r){var n=F_(t,e,r);return n>r?r:n}function dz(){return{top:0,right:0,bottom:0,left:0}}function fz(t){return Object.assign({},dz(),t)}function hz(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}var Ere=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,fz(typeof e!="number"?e:hz(e,rf))};function Are(t){var e,r=t.state,n=t.name,a=t.options,s=r.elements.arrow,o=r.modifiersData.popperOffsets,u=os(r.placement),c=_N(u),l=[ri,$i].indexOf(u)>=0,d=l?"height":"width";if(!(!s||!o)){var f=Ere(a.padding,r),h=gN(s),p=c==="y"?ti:ri,m=c==="y"?qi:$i,y=r.rects.reference[d]+r.rects.reference[c]-o[c]-r.rects.popper[d],g=o[c]-r.rects.reference[c],b=Pb(s),v=b?c==="y"?b.clientHeight||0:b.clientWidth||0:0,_=y/2-g/2,w=f[p],E=v-h[d]-f[m],O=v/2-h[d]/2+_,L=F_(w,O,E),F=c;r.modifiersData[n]=(e={},e[F]=L,e.centerOffset=L-O,e)}}function Ore(t){var e=t.state,r=t.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=e.elements.popper.querySelector(a),!a)||lz(e.elements.popper,a)&&(e.elements.arrow=a))}const pz={name:"arrow",enabled:!0,phase:"main",fn:Are,effect:Ore,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Pd(t){return t.split("-")[1]}var Rre={top:"auto",right:"auto",bottom:"auto",left:"auto"};function xre(t,e){var r=t.x,n=t.y,a=e.devicePixelRatio||1;return{x:xd(r*a)/a||0,y:xd(n*a)/a||0}}function J4(t){var e,r=t.popper,n=t.popperRect,a=t.placement,s=t.variation,o=t.offsets,u=t.position,c=t.gpuAcceleration,l=t.adaptive,d=t.roundOffsets,f=t.isFixed,h=o.x,p=h===void 0?0:h,m=o.y,y=m===void 0?0:m,g=typeof d=="function"?d({x:p,y}):{x:p,y};p=g.x,y=g.y;var b=o.hasOwnProperty("x"),v=o.hasOwnProperty("y"),_=ri,w=ti,E=window;if(l){var O=Pb(r),L="clientHeight",F="clientWidth";if(O===Ui(r)&&(O=vu(r),yo(O).position!=="static"&&u==="absolute"&&(L="scrollHeight",F="scrollWidth")),O=O,a===ti||(a===ri||a===$i)&&s===Rd){w=qi;var x=f&&O===E&&E.visualViewport?E.visualViewport.height:O[L];y-=x-n.height,y*=c?1:-1}if(a===ri||(a===ti||a===qi)&&s===Rd){_=$i;var P=f&&O===E&&E.visualViewport?E.visualViewport.width:O[F];p-=P-n.width,p*=c?1:-1}}var j=Object.assign({position:u},l&&Rre),N=d===!0?xre({x:p,y},Ui(r)):{x:p,y};if(p=N.x,y=N.y,c){var V;return Object.assign({},j,(V={},V[w]=v?"0":"",V[_]=b?"0":"",V.transform=(E.devicePixelRatio||1)<=1?"translate("+p+"px, "+y+"px)":"translate3d("+p+"px, "+y+"px, 0)",V))}return Object.assign({},j,(e={},e[w]=v?y+"px":"",e[_]=b?p+"px":"",e.transform="",e))}function Ire(t){var e=t.state,r=t.options,n=r.gpuAcceleration,a=n===void 0?!0:n,s=r.adaptive,o=s===void 0?!0:s,u=r.roundOffsets,c=u===void 0?!0:u,l={placement:os(e.placement),variation:Pd(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:a,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,J4(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,J4(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const bN={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ire,data:{}};var rv={passive:!0};function Pre(t){var e=t.state,r=t.instance,n=t.options,a=n.scroll,s=a===void 0?!0:a,o=n.resize,u=o===void 0?!0:o,c=Ui(e.elements.popper),l=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&l.forEach(function(d){d.addEventListener("scroll",r.update,rv)}),u&&c.addEventListener("resize",r.update,rv),function(){s&&l.forEach(function(d){d.removeEventListener("scroll",r.update,rv)}),u&&c.removeEventListener("resize",r.update,rv)}}const vN={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Pre,data:{}};var Nre={left:"right",right:"left",bottom:"top",top:"bottom"};function pw(t){return t.replace(/left|right|bottom|top/g,function(e){return Nre[e]})}var Dre={start:"end",end:"start"};function X4(t){return t.replace(/start|end/g,function(e){return Dre[e]})}function wN(t){var e=Ui(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function SN(t){return Id(vu(t)).left+wN(t).scrollLeft}function Cre(t,e){var r=Ui(t),n=vu(t),a=r.visualViewport,s=n.clientWidth,o=n.clientHeight,u=0,c=0;if(a){s=a.width,o=a.height;var l=cz();(l||!l&&e==="fixed")&&(u=a.offsetLeft,c=a.offsetTop)}return{width:s,height:o,x:u+SN(t),y:c}}function Lre(t){var e,r=vu(t),n=wN(t),a=(e=t.ownerDocument)==null?void 0:e.body,s=Cc(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),o=Cc(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),u=-n.scrollLeft+SN(t),c=-n.scrollTop;return yo(a||r).direction==="rtl"&&(u+=Cc(r.clientWidth,a?a.clientWidth:0)-s),{width:s,height:o,x:u,y:c}}function TN(t){var e=yo(t),r=e.overflow,n=e.overflowX,a=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function yz(t){return["html","body","#document"].indexOf(hs(t))>=0?t.ownerDocument.body:ia(t)&&TN(t)?t:yz(MS(t))}function B_(t,e){var r;e===void 0&&(e=[]);var n=yz(t),a=n===((r=t.ownerDocument)==null?void 0:r.body),s=Ui(n),o=a?[s].concat(s.visualViewport||[],TN(n)?n:[]):n,u=e.concat(o);return a?u:u.concat(B_(MS(o)))}function EI(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function jre(t,e){var r=Id(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function Y4(t,e,r){return e===hN?EI(Cre(t,r)):kc(e)?jre(e,r):EI(Lre(vu(t)))}function Mre(t){var e=B_(MS(t)),r=["absolute","fixed"].indexOf(yo(t).position)>=0,n=r&&ia(t)?Pb(t):t;return kc(n)?e.filter(function(a){return kc(a)&&lz(a,n)&&hs(a)!=="body"}):[]}function Fre(t,e,r,n){var a=e==="clippingParents"?Mre(t):[].concat(e),s=[].concat(a,[r]),o=s[0],u=s.reduce(function(c,l){var d=Y4(t,l,n);return c.top=Cc(d.top,c.top),c.right=Jw(d.right,c.right),c.bottom=Jw(d.bottom,c.bottom),c.left=Cc(d.left,c.left),c},Y4(t,o,n));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function mz(t){var e=t.reference,r=t.element,n=t.placement,a=n?os(n):null,s=n?Pd(n):null,o=e.x+e.width/2-r.width/2,u=e.y+e.height/2-r.height/2,c;switch(a){case ti:c={x:o,y:e.y-r.height};break;case qi:c={x:o,y:e.y+e.height};break;case $i:c={x:e.x+e.width,y:u};break;case ri:c={x:e.x-r.width,y:u};break;default:c={x:e.x,y:e.y}}var l=a?_N(a):null;if(l!=null){var d=l==="y"?"height":"width";switch(s){case Uc:c[l]=c[l]-(e[d]/2-r[d]/2);break;case Rd:c[l]=c[l]+(e[d]/2-r[d]/2);break}}return c}function Nd(t,e){e===void 0&&(e={});var r=e,n=r.placement,a=n===void 0?t.placement:n,s=r.strategy,o=s===void 0?t.strategy:s,u=r.boundary,c=u===void 0?XQ:u,l=r.rootBoundary,d=l===void 0?hN:l,f=r.elementContext,h=f===void 0?Hl:f,p=r.altBoundary,m=p===void 0?!1:p,y=r.padding,g=y===void 0?0:y,b=fz(typeof g!="number"?g:hz(g,rf)),v=h===Hl?YQ:Hl,_=t.rects.popper,w=t.elements[m?v:h],E=Fre(kc(w)?w:w.contextElement||vu(t.elements.popper),c,d,o),O=Id(t.elements.reference),L=mz({reference:O,element:_,strategy:"absolute",placement:a}),F=EI(Object.assign({},_,L)),x=h===Hl?F:O,P={top:E.top-x.top+b.top,bottom:x.bottom-E.bottom+b.bottom,left:E.left-x.left+b.left,right:x.right-E.right+b.right},j=t.modifiersData.offset;if(h===Hl&&j){var N=j[a];Object.keys(P).forEach(function(V){var $=[$i,qi].indexOf(V)>=0?1:-1,q=[ti,qi].indexOf(V)>=0?"y":"x";P[V]+=N[q]*$})}return P}function Bre(t,e){e===void 0&&(e={});var r=e,n=r.placement,a=r.boundary,s=r.rootBoundary,o=r.padding,u=r.flipVariations,c=r.allowedAutoPlacements,l=c===void 0?pN:c,d=Pd(n),f=d?u?SI:SI.filter(function(m){return Pd(m)===d}):rf,h=f.filter(function(m){return l.indexOf(m)>=0});h.length===0&&(h=f);var p=h.reduce(function(m,y){return m[y]=Nd(t,{placement:y,boundary:a,rootBoundary:s,padding:o})[os(y)],m},{});return Object.keys(p).sort(function(m,y){return p[m]-p[y]})}function qre(t){if(os(t)===jS)return[];var e=pw(t);return[X4(t),e,X4(e)]}function $re(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var a=r.mainAxis,s=a===void 0?!0:a,o=r.altAxis,u=o===void 0?!0:o,c=r.fallbackPlacements,l=r.padding,d=r.boundary,f=r.rootBoundary,h=r.altBoundary,p=r.flipVariations,m=p===void 0?!0:p,y=r.allowedAutoPlacements,g=e.options.placement,b=os(g),v=b===g,_=c||(v||!m?[pw(g)]:qre(g)),w=[g].concat(_).reduce(function(ce,xe){return ce.concat(os(xe)===jS?Bre(e,{placement:xe,boundary:d,rootBoundary:f,padding:l,flipVariations:m,allowedAutoPlacements:y}):xe)},[]),E=e.rects.reference,O=e.rects.popper,L=new Map,F=!0,x=w[0],P=0;P=0,q=$?"width":"height",H=Nd(e,{placement:j,boundary:d,rootBoundary:f,altBoundary:h,padding:l}),X=$?V?$i:ri:V?qi:ti;E[q]>O[q]&&(X=pw(X));var Y=pw(X),he=[];if(s&&he.push(H[N]<=0),u&&he.push(H[X]<=0,H[Y]<=0),he.every(function(ce){return ce})){x=j,F=!1;break}L.set(j,he)}if(F)for(var Te=m?3:1,Ne=function(xe){var Pe=w.find(function(we){var Re=L.get(we);if(Re)return Re.slice(0,xe).every(function(Se){return Se})});if(Pe)return x=Pe,"break"},$e=Te;$e>0;$e--){var de=Ne($e);if(de==="break")break}e.placement!==x&&(e.modifiersData[n]._skip=!0,e.placement=x,e.reset=!0)}}const gz={name:"flip",enabled:!0,phase:"main",fn:$re,requiresIfExists:["offset"],data:{_skip:!1}};function Z4(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function e6(t){return[ti,$i,qi,ri].some(function(e){return t[e]>=0})}function Ure(t){var e=t.state,r=t.name,n=e.rects.reference,a=e.rects.popper,s=e.modifiersData.preventOverflow,o=Nd(e,{elementContext:"reference"}),u=Nd(e,{altBoundary:!0}),c=Z4(o,n),l=Z4(u,a,s),d=e6(c),f=e6(l);e.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:d,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const _z={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ure};function kre(t,e,r){var n=os(t),a=[ri,ti].indexOf(n)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,o=s[0],u=s[1];return o=o||0,u=(u||0)*a,[ri,$i].indexOf(n)>=0?{x:u,y:o}:{x:o,y:u}}function Vre(t){var e=t.state,r=t.options,n=t.name,a=r.offset,s=a===void 0?[0,0]:a,o=pN.reduce(function(d,f){return d[f]=kre(f,e.rects,s),d},{}),u=o[e.placement],c=u.x,l=u.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=l),e.modifiersData[n]=o}const bz={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Vre};function Hre(t){var e=t.state,r=t.name;e.modifiersData[r]=mz({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const EN={name:"popperOffsets",enabled:!0,phase:"read",fn:Hre,data:{}};function Qre(t){return t==="x"?"y":"x"}function zre(t){var e=t.state,r=t.options,n=t.name,a=r.mainAxis,s=a===void 0?!0:a,o=r.altAxis,u=o===void 0?!1:o,c=r.boundary,l=r.rootBoundary,d=r.altBoundary,f=r.padding,h=r.tether,p=h===void 0?!0:h,m=r.tetherOffset,y=m===void 0?0:m,g=Nd(e,{boundary:c,rootBoundary:l,padding:f,altBoundary:d}),b=os(e.placement),v=Pd(e.placement),_=!v,w=_N(b),E=Qre(w),O=e.modifiersData.popperOffsets,L=e.rects.reference,F=e.rects.popper,x=typeof y=="function"?y(Object.assign({},e.rects,{placement:e.placement})):y,P=typeof x=="number"?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),j=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,N={x:0,y:0};if(O){if(s){var V,$=w==="y"?ti:ri,q=w==="y"?qi:$i,H=w==="y"?"height":"width",X=O[w],Y=X+g[$],he=X-g[q],Te=p?-F[H]/2:0,Ne=v===Uc?L[H]:F[H],$e=v===Uc?-F[H]:-L[H],de=e.elements.arrow,ce=p&&de?gN(de):{width:0,height:0},xe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:dz(),Pe=xe[$],we=xe[q],Re=F_(0,L[H],ce[H]),Se=_?L[H]/2-Te-Re-Pe-P.mainAxis:Ne-Re-Pe-P.mainAxis,z=_?-L[H]/2+Te+Re+we+P.mainAxis:$e+Re+we+P.mainAxis,M=e.elements.arrow&&Pb(e.elements.arrow),k=M?w==="y"?M.clientTop||0:M.clientLeft||0:0,T=(V=j==null?void 0:j[w])!=null?V:0,R=X+Se-T-k,U=X+z-T,G=F_(p?Jw(Y,R):Y,X,p?Cc(he,U):he);O[w]=G,N[w]=G-X}if(u){var Q,Z=w==="x"?ti:ri,se=w==="x"?qi:$i,re=O[E],le=E==="y"?"height":"width",pe=re+g[Z],_e=re-g[se],Ie=[ti,ri].indexOf(b)!==-1,Ee=(Q=j==null?void 0:j[E])!=null?Q:0,Me=Ie?pe:re-L[le]-F[le]-Ee+P.altAxis,Ce=Ie?re+L[le]+F[le]-Ee-P.altAxis:_e,ke=p&&Ie?Tre(Me,re,Ce):F_(p?Me:pe,re,p?Ce:_e);O[E]=ke,N[E]=ke-re}e.modifiersData[n]=N}}const vz={name:"preventOverflow",enabled:!0,phase:"main",fn:zre,requiresIfExists:["offset"]};function Gre(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Wre(t){return t===Ui(t)||!ia(t)?wN(t):Gre(t)}function Kre(t){var e=t.getBoundingClientRect(),r=xd(e.width)/t.offsetWidth||1,n=xd(e.height)/t.offsetHeight||1;return r!==1||n!==1}function Jre(t,e,r){r===void 0&&(r=!1);var n=ia(e),a=ia(e)&&Kre(e),s=vu(e),o=Id(t,a,r),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((hs(e)!=="body"||TN(s))&&(u=Wre(e)),ia(e)?(c=Id(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):s&&(c.x=SN(s))),{x:o.left+u.scrollLeft-c.x,y:o.top+u.scrollTop-c.y,width:o.width,height:o.height}}function Xre(t){var e=new Map,r=new Set,n=[];t.forEach(function(s){e.set(s.name,s)});function a(s){r.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(u){if(!r.has(u)){var c=e.get(u);c&&a(c)}}),n.push(s)}return t.forEach(function(s){r.has(s.name)||a(s)}),n}function Yre(t){var e=Xre(t);return uz.reduce(function(r,n){return r.concat(e.filter(function(a){return a.phase===n}))},[])}function Zre(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function ene(t){var e=t.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}var t6={placement:"bottom",modifiers:[],strategy:"absolute"};function r6(){for(var t=arguments.length,e=new Array(t),r=0;r(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(e,r)=>`#${CSS.escape(r)}`)),t),une=t=>t==null?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),cne=t=>{do t+=Math.floor(Math.random()*sne);while(document.getElementById(t));return t},lne=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:r}=window.getComputedStyle(t);const n=Number.parseFloat(e),a=Number.parseFloat(r);return!n&&!a?0:(e=e.split(",")[0],r=r.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(r))*one)},Tz=t=>{t.dispatchEvent(new Event(OI))},oo=t=>!t||typeof t!="object"?!1:(typeof t.jquery<"u"&&(t=t[0]),typeof t.nodeType<"u"),cu=t=>oo(t)?t.jquery?t[0]:t:typeof t=="string"&&t.length>0?document.querySelector(Sz(t)):null,nf=t=>{if(!oo(t)||t.getClientRects().length===0)return!1;const e=getComputedStyle(t).getPropertyValue("visibility")==="visible",r=t.closest("details:not([open])");if(!r)return e;if(r!==t){const n=t.closest("summary");if(n&&n.parentNode!==r||n===null)return!1}return e},lu=t=>!t||t.nodeType!==Node.ELEMENT_NODE||t.classList.contains("disabled")?!0:typeof t.disabled<"u"?t.disabled:t.hasAttribute("disabled")&&t.getAttribute("disabled")!=="false",Ez=t=>{if(!document.documentElement.attachShadow)return null;if(typeof t.getRootNode=="function"){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?Ez(t.parentNode):null},Xw=()=>{},Nb=t=>{t.offsetHeight},Az=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,mE=[],dne=t=>{document.readyState==="loading"?(mE.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of mE)e()}),mE.push(t)):t()},ca=()=>document.documentElement.dir==="rtl",ha=t=>{dne(()=>{const e=Az();if(e){const r=t.NAME,n=e.fn[r];e.fn[r]=t.jQueryInterface,e.fn[r].Constructor=t,e.fn[r].noConflict=()=>(e.fn[r]=n,t.jQueryInterface)}})},_i=(t,e=[],r=t)=>typeof t=="function"?t(...e):r,Oz=(t,e,r=!0)=>{if(!r){_i(t);return}const a=lne(e)+5;let s=!1;const o=({target:u})=>{u===e&&(s=!0,e.removeEventListener(OI,o),_i(t))};e.addEventListener(OI,o),setTimeout(()=>{s||Tz(e)},a)},ON=(t,e,r,n)=>{const a=t.length;let s=t.indexOf(e);return s===-1?!r&&n?t[a-1]:t[0]:(s+=r?1:-1,n&&(s=(s+a)%a),t[Math.max(0,Math.min(s,a-1))])},fne=/[^.]*(?=\..*)\.|.*/,hne=/\..*/,pne=/::\d+$/,gE={};let n6=1;const Rz={mouseenter:"mouseover",mouseleave:"mouseout"},yne=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function xz(t,e){return e&&`${e}::${n6++}`||t.uidEvent||n6++}function Iz(t){const e=xz(t);return t.uidEvent=e,gE[e]=gE[e]||{},gE[e]}function mne(t,e){return function r(n){return RN(n,{delegateTarget:t}),r.oneOff&&Ge.off(t,n.type,e),e.apply(t,[n])}}function gne(t,e,r){return function n(a){const s=t.querySelectorAll(e);for(let{target:o}=a;o&&o!==this;o=o.parentNode)for(const u of s)if(u===o)return RN(a,{delegateTarget:o}),n.oneOff&&Ge.off(t,a.type,e,r),r.apply(o,[a])}}function Pz(t,e,r=null){return Object.values(t).find(n=>n.callable===e&&n.delegationSelector===r)}function Nz(t,e,r){const n=typeof e=="string",a=n?r:e||r;let s=Dz(t);return yne.has(s)||(s=t),[n,a,s]}function i6(t,e,r,n,a){if(typeof e!="string"||!t)return;let[s,o,u]=Nz(e,r,n);e in Rz&&(o=(m=>function(y){if(!y.relatedTarget||y.relatedTarget!==y.delegateTarget&&!y.delegateTarget.contains(y.relatedTarget))return m.call(this,y)})(o));const c=Iz(t),l=c[u]||(c[u]={}),d=Pz(l,o,s?r:null);if(d){d.oneOff=d.oneOff&&a;return}const f=xz(o,e.replace(fne,"")),h=s?gne(t,r,o):mne(t,o);h.delegationSelector=s?r:null,h.callable=o,h.oneOff=a,h.uidEvent=f,l[f]=h,t.addEventListener(u,h,s)}function RI(t,e,r,n,a){const s=Pz(e[r],n,a);s&&(t.removeEventListener(r,s,!!a),delete e[r][s.uidEvent])}function _ne(t,e,r,n){const a=e[r]||{};for(const[s,o]of Object.entries(a))s.includes(n)&&RI(t,e,r,o.callable,o.delegationSelector)}function Dz(t){return t=t.replace(hne,""),Rz[t]||t}const Ge={on(t,e,r,n){i6(t,e,r,n,!1)},one(t,e,r,n){i6(t,e,r,n,!0)},off(t,e,r,n){if(typeof e!="string"||!t)return;const[a,s,o]=Nz(e,r,n),u=o!==e,c=Iz(t),l=c[o]||{},d=e.startsWith(".");if(typeof s<"u"){if(!Object.keys(l).length)return;RI(t,c,o,s,a?r:null);return}if(d)for(const f of Object.keys(c))_ne(t,c,f,e.slice(1));for(const[f,h]of Object.entries(l)){const p=f.replace(pne,"");(!u||e.includes(p))&&RI(t,c,o,h.callable,h.delegationSelector)}},trigger(t,e,r){if(typeof e!="string"||!t)return null;const n=Az(),a=Dz(e),s=e!==a;let o=null,u=!0,c=!0,l=!1;s&&n&&(o=n.Event(e,r),n(t).trigger(o),u=!o.isPropagationStopped(),c=!o.isImmediatePropagationStopped(),l=o.isDefaultPrevented());const d=RN(new Event(e,{bubbles:u,cancelable:!0}),r);return l&&d.preventDefault(),c&&t.dispatchEvent(d),d.defaultPrevented&&o&&o.preventDefault(),d}};function RN(t,e={}){for(const[r,n]of Object.entries(e))try{t[r]=n}catch{Object.defineProperty(t,r,{configurable:!0,get(){return n}})}return t}function a6(t){if(t==="true")return!0;if(t==="false")return!1;if(t===Number(t).toString())return Number(t);if(t===""||t==="null")return null;if(typeof t!="string")return t;try{return JSON.parse(decodeURIComponent(t))}catch{return t}}function _E(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const uo={setDataAttribute(t,e,r){t.setAttribute(`data-bs-${_E(e)}`,r)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${_E(e)}`)},getDataAttributes(t){if(!t)return{};const e={},r=Object.keys(t.dataset).filter(n=>n.startsWith("bs")&&!n.startsWith("bsConfig"));for(const n of r){let a=n.replace(/^bs/,"");a=a.charAt(0).toLowerCase()+a.slice(1,a.length),e[a]=a6(t.dataset[n])}return e},getDataAttribute(t,e){return a6(t.getAttribute(`data-bs-${_E(e)}`))}};class Db{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,r){const n=oo(r)?uo.getDataAttribute(r,"config"):{};return{...this.constructor.Default,...typeof n=="object"?n:{},...oo(r)?uo.getDataAttributes(r):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,r=this.constructor.DefaultType){for(const[n,a]of Object.entries(r)){const s=e[n],o=oo(s)?"element":une(s);if(!new RegExp(a).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${o}" but expected type "${a}".`)}}}const bne="5.3.3";class qa extends Db{constructor(e,r){super(),e=cu(e),e&&(this._element=e,this._config=this._getConfig(r),yE.set(this._element,this.constructor.DATA_KEY,this))}dispose(){yE.remove(this._element,this.constructor.DATA_KEY),Ge.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,r,n=!0){Oz(e,r,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return yE.get(cu(e),this.DATA_KEY)}static getOrCreateInstance(e,r={}){return this.getInstance(e)||new this(e,typeof r=="object"?r:null)}static get VERSION(){return bne}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const bE=t=>{let e=t.getAttribute("data-bs-target");if(!e||e==="#"){let r=t.getAttribute("href");if(!r||!r.includes("#")&&!r.startsWith("."))return null;r.includes("#")&&!r.startsWith("#")&&(r=`#${r.split("#")[1]}`),e=r&&r!=="#"?r.trim():null}return e?e.split(",").map(r=>Sz(r)).join(","):null},_t={find(t,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t,e=document.documentElement){return Element.prototype.querySelector.call(e,t)},children(t,e){return[].concat(...t.children).filter(r=>r.matches(e))},parents(t,e){const r=[];let n=t.parentNode.closest(e);for(;n;)r.push(n),n=n.parentNode.closest(e);return r},prev(t,e){let r=t.previousElementSibling;for(;r;){if(r.matches(e))return[r];r=r.previousElementSibling}return[]},next(t,e){let r=t.nextElementSibling;for(;r;){if(r.matches(e))return[r];r=r.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(r=>`${r}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(r=>!lu(r)&&nf(r))},getSelectorFromElement(t){const e=bE(t);return e&&_t.findOne(e)?e:null},getElementFromSelector(t){const e=bE(t);return e?_t.findOne(e):null},getMultipleElementsFromSelector(t){const e=bE(t);return e?_t.find(e):[]}},qS=(t,e="hide")=>{const r=`click.dismiss${t.EVENT_KEY}`,n=t.NAME;Ge.on(document,r,`[data-bs-dismiss="${n}"]`,function(a){if(["A","AREA"].includes(this.tagName)&&a.preventDefault(),lu(this))return;const s=_t.getElementFromSelector(this)||this.closest(`.${n}`);t.getOrCreateInstance(s)[e]()})},vne="alert",wne="bs.alert",Cz=`.${wne}`,Sne=`close${Cz}`,Tne=`closed${Cz}`,Ene="fade",Ane="show";class $S extends qa{static get NAME(){return vne}close(){if(Ge.trigger(this._element,Sne).defaultPrevented)return;this._element.classList.remove(Ane);const r=this._element.classList.contains(Ene);this._queueCallback(()=>this._destroyElement(),this._element,r)}_destroyElement(){this._element.remove(),Ge.trigger(this._element,Tne),this.dispose()}static jQueryInterface(e){return this.each(function(){const r=$S.getOrCreateInstance(this);if(typeof e=="string"){if(r[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);r[e](this)}})}}qS($S,"close");ha($S);const One="button",Rne="bs.button",xne=`.${Rne}`,Ine=".data-api",Pne="active",s6='[data-bs-toggle="button"]',Nne=`click${xne}${Ine}`;class US extends qa{static get NAME(){return One}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(Pne))}static jQueryInterface(e){return this.each(function(){const r=US.getOrCreateInstance(this);e==="toggle"&&r[e]()})}}Ge.on(document,Nne,s6,t=>{t.preventDefault();const e=t.target.closest(s6);US.getOrCreateInstance(e).toggle()});ha(US);const Dne="swipe",af=".bs.swipe",Cne=`touchstart${af}`,Lne=`touchmove${af}`,jne=`touchend${af}`,Mne=`pointerdown${af}`,Fne=`pointerup${af}`,Bne="touch",qne="pen",$ne="pointer-event",Une=40,kne={endCallback:null,leftCallback:null,rightCallback:null},Vne={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Yw extends Db{constructor(e,r){super(),this._element=e,!(!e||!Yw.isSupported())&&(this._config=this._getConfig(r),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return kne}static get DefaultType(){return Vne}static get NAME(){return Dne}dispose(){Ge.off(this._element,af)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),_i(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=Une)return;const r=e/this._deltaX;this._deltaX=0,r&&_i(r>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(Ge.on(this._element,Mne,e=>this._start(e)),Ge.on(this._element,Fne,e=>this._end(e)),this._element.classList.add($ne)):(Ge.on(this._element,Cne,e=>this._start(e)),Ge.on(this._element,Lne,e=>this._move(e)),Ge.on(this._element,jne,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===qne||e.pointerType===Bne)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Hne="carousel",Qne="bs.carousel",wu=`.${Qne}`,Lz=".data-api",zne="ArrowLeft",Gne="ArrowRight",Wne=500,Qf="next",Nl="prev",zl="left",yw="right",Kne=`slide${wu}`,vE=`slid${wu}`,Jne=`keydown${wu}`,Xne=`mouseenter${wu}`,Yne=`mouseleave${wu}`,Zne=`dragstart${wu}`,eie=`load${wu}${Lz}`,tie=`click${wu}${Lz}`,jz="carousel",nv="active",rie="slide",nie="carousel-item-end",iie="carousel-item-start",aie="carousel-item-next",sie="carousel-item-prev",Mz=".active",Fz=".carousel-item",oie=Mz+Fz,uie=".carousel-item img",cie=".carousel-indicators",lie="[data-bs-slide], [data-bs-slide-to]",die='[data-bs-ride="carousel"]',fie={[zne]:yw,[Gne]:zl},hie={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},pie={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Cb extends qa{constructor(e,r){super(e,r),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=_t.findOne(cie,this._element),this._addEventListeners(),this._config.ride===jz&&this.cycle()}static get Default(){return hie}static get DefaultType(){return pie}static get NAME(){return Hne}next(){this._slide(Qf)}nextWhenVisible(){!document.hidden&&nf(this._element)&&this.next()}prev(){this._slide(Nl)}pause(){this._isSliding&&Tz(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){Ge.one(this._element,vE,()=>this.cycle());return}this.cycle()}}to(e){const r=this._getItems();if(e>r.length-1||e<0)return;if(this._isSliding){Ge.one(this._element,vE,()=>this.to(e));return}const n=this._getItemIndex(this._getActive());if(n===e)return;const a=e>n?Qf:Nl;this._slide(a,r[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&Ge.on(this._element,Jne,e=>this._keydown(e)),this._config.pause==="hover"&&(Ge.on(this._element,Xne,()=>this.pause()),Ge.on(this._element,Yne,()=>this._maybeEnableCycle())),this._config.touch&&Yw.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const n of _t.find(uie,this._element))Ge.on(n,Zne,a=>a.preventDefault());const r={leftCallback:()=>this._slide(this._directionToOrder(zl)),rightCallback:()=>this._slide(this._directionToOrder(yw)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),Wne+this._config.interval))}};this._swipeHelper=new Yw(this._element,r)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const r=fie[e.key];r&&(e.preventDefault(),this._slide(this._directionToOrder(r)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const r=_t.findOne(Mz,this._indicatorsElement);r.classList.remove(nv),r.removeAttribute("aria-current");const n=_t.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(nv),n.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const r=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=r||this._config.defaultInterval}_slide(e,r=null){if(this._isSliding)return;const n=this._getActive(),a=e===Qf,s=r||ON(this._getItems(),n,a,this._config.wrap);if(s===n)return;const o=this._getItemIndex(s),u=p=>Ge.trigger(this._element,p,{relatedTarget:s,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:o});if(u(Kne).defaultPrevented||!n||!s)return;const l=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=s;const d=a?iie:nie,f=a?aie:sie;s.classList.add(f),Nb(s),n.classList.add(d),s.classList.add(d);const h=()=>{s.classList.remove(d,f),s.classList.add(nv),n.classList.remove(nv,f,d),this._isSliding=!1,u(vE)};this._queueCallback(h,n,this._isAnimated()),l&&this.cycle()}_isAnimated(){return this._element.classList.contains(rie)}_getActive(){return _t.findOne(oie,this._element)}_getItems(){return _t.find(Fz,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return ca()?e===zl?Nl:Qf:e===zl?Qf:Nl}_orderToDirection(e){return ca()?e===Nl?zl:yw:e===Nl?yw:zl}static jQueryInterface(e){return this.each(function(){const r=Cb.getOrCreateInstance(this,e);if(typeof e=="number"){r.to(e);return}if(typeof e=="string"){if(r[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);r[e]()}})}}Ge.on(document,tie,lie,function(t){const e=_t.getElementFromSelector(this);if(!e||!e.classList.contains(jz))return;t.preventDefault();const r=Cb.getOrCreateInstance(e),n=this.getAttribute("data-bs-slide-to");if(n){r.to(n),r._maybeEnableCycle();return}if(uo.getDataAttribute(this,"slide")==="next"){r.next(),r._maybeEnableCycle();return}r.prev(),r._maybeEnableCycle()});Ge.on(window,eie,()=>{const t=_t.find(die);for(const e of t)Cb.getOrCreateInstance(e)});ha(Cb);const yie="collapse",mie="bs.collapse",Lb=`.${mie}`,gie=".data-api",_ie=`show${Lb}`,bie=`shown${Lb}`,vie=`hide${Lb}`,wie=`hidden${Lb}`,Sie=`click${Lb}${gie}`,wE="show",td="collapse",iv="collapsing",Tie="collapsed",Eie=`:scope .${td} .${td}`,Aie="collapse-horizontal",Oie="width",Rie="height",xie=".collapse.show, .collapse.collapsing",xI='[data-bs-toggle="collapse"]',Iie={parent:null,toggle:!0},Pie={parent:"(null|element)",toggle:"boolean"};class tb extends qa{constructor(e,r){super(e,r),this._isTransitioning=!1,this._triggerArray=[];const n=_t.find(xI);for(const a of n){const s=_t.getSelectorFromElement(a),o=_t.find(s).filter(u=>u===this._element);s!==null&&o.length&&this._triggerArray.push(a)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Iie}static get DefaultType(){return Pie}static get NAME(){return yie}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(xie).filter(u=>u!==this._element).map(u=>tb.getOrCreateInstance(u,{toggle:!1}))),e.length&&e[0]._isTransitioning||Ge.trigger(this._element,_ie).defaultPrevented)return;for(const u of e)u.hide();const n=this._getDimension();this._element.classList.remove(td),this._element.classList.add(iv),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const a=()=>{this._isTransitioning=!1,this._element.classList.remove(iv),this._element.classList.add(td,wE),this._element.style[n]="",Ge.trigger(this._element,bie)},o=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(a,this._element,!0),this._element.style[n]=`${this._element[o]}px`}hide(){if(this._isTransitioning||!this._isShown()||Ge.trigger(this._element,vie).defaultPrevented)return;const r=this._getDimension();this._element.style[r]=`${this._element.getBoundingClientRect()[r]}px`,Nb(this._element),this._element.classList.add(iv),this._element.classList.remove(td,wE);for(const a of this._triggerArray){const s=_t.getElementFromSelector(a);s&&!this._isShown(s)&&this._addAriaAndCollapsedClass([a],!1)}this._isTransitioning=!0;const n=()=>{this._isTransitioning=!1,this._element.classList.remove(iv),this._element.classList.add(td),Ge.trigger(this._element,wie)};this._element.style[r]="",this._queueCallback(n,this._element,!0)}_isShown(e=this._element){return e.classList.contains(wE)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=cu(e.parent),e}_getDimension(){return this._element.classList.contains(Aie)?Oie:Rie}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(xI);for(const r of e){const n=_t.getElementFromSelector(r);n&&this._addAriaAndCollapsedClass([r],this._isShown(n))}}_getFirstLevelChildren(e){const r=_t.find(Eie,this._config.parent);return _t.find(e,this._config.parent).filter(n=>!r.includes(n))}_addAriaAndCollapsedClass(e,r){if(e.length)for(const n of e)n.classList.toggle(Tie,!r),n.setAttribute("aria-expanded",r)}static jQueryInterface(e){const r={};return typeof e=="string"&&/show|hide/.test(e)&&(r.toggle=!1),this.each(function(){const n=tb.getOrCreateInstance(this,r);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}Ge.on(document,Sie,xI,function(t){(t.target.tagName==="A"||t.delegateTarget&&t.delegateTarget.tagName==="A")&&t.preventDefault();for(const e of _t.getMultipleElementsFromSelector(this))tb.getOrCreateInstance(e,{toggle:!1}).toggle()});ha(tb);const o6="dropdown",Nie="bs.dropdown",il=`.${Nie}`,xN=".data-api",Die="Escape",u6="Tab",Cie="ArrowUp",c6="ArrowDown",Lie=2,jie=`hide${il}`,Mie=`hidden${il}`,Fie=`show${il}`,Bie=`shown${il}`,Bz=`click${il}${xN}`,qz=`keydown${il}${xN}`,qie=`keyup${il}${xN}`,Gl="show",$ie="dropup",Uie="dropend",kie="dropstart",Vie="dropup-center",Hie="dropdown-center",Ac='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Qie=`${Ac}.${Gl}`,mw=".dropdown-menu",zie=".navbar",Gie=".navbar-nav",Wie=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Kie=ca()?"top-end":"top-start",Jie=ca()?"top-start":"top-end",Xie=ca()?"bottom-end":"bottom-start",Yie=ca()?"bottom-start":"bottom-end",Zie=ca()?"left-start":"right-start",eae=ca()?"right-start":"left-start",tae="top",rae="bottom",nae={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},iae={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class us extends qa{constructor(e,r){super(e,r),this._popper=null,this._parent=this._element.parentNode,this._menu=_t.next(this._element,mw)[0]||_t.prev(this._element,mw)[0]||_t.findOne(mw,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return nae}static get DefaultType(){return iae}static get NAME(){return o6}toggle(){return this._isShown()?this.hide():this.show()}show(){if(lu(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!Ge.trigger(this._element,Fie,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(Gie))for(const n of[].concat(...document.body.children))Ge.on(n,"mouseover",Xw);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Gl),this._element.classList.add(Gl),Ge.trigger(this._element,Bie,e)}}hide(){if(lu(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!Ge.trigger(this._element,jie,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const n of[].concat(...document.body.children))Ge.off(n,"mouseover",Xw);this._popper&&this._popper.destroy(),this._menu.classList.remove(Gl),this._element.classList.remove(Gl),this._element.setAttribute("aria-expanded","false"),uo.removeDataAttribute(this._menu,"popper"),Ge.trigger(this._element,Mie,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!oo(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${o6.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof wz>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;this._config.reference==="parent"?e=this._parent:oo(this._config.reference)?e=cu(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const r=this._getPopperConfig();this._popper=AN(e,this._menu,r)}_isShown(){return this._menu.classList.contains(Gl)}_getPlacement(){const e=this._parent;if(e.classList.contains(Uie))return Zie;if(e.classList.contains(kie))return eae;if(e.classList.contains(Vie))return tae;if(e.classList.contains(Hie))return rae;const r=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains($ie)?r?Jie:Kie:r?Yie:Xie}_detectNavbar(){return this._element.closest(zie)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(r=>Number.parseInt(r,10)):typeof e=="function"?r=>e(r,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(uo.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,..._i(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:r}){const n=_t.find(Wie,this._menu).filter(a=>nf(a));n.length&&ON(n,r,e===c6,!n.includes(r)).focus()}static jQueryInterface(e){return this.each(function(){const r=us.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}static clearMenus(e){if(e.button===Lie||e.type==="keyup"&&e.key!==u6)return;const r=_t.find(Qie);for(const n of r){const a=us.getInstance(n);if(!a||a._config.autoClose===!1)continue;const s=e.composedPath(),o=s.includes(a._menu);if(s.includes(a._element)||a._config.autoClose==="inside"&&!o||a._config.autoClose==="outside"&&o||a._menu.contains(e.target)&&(e.type==="keyup"&&e.key===u6||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const u={relatedTarget:a._element};e.type==="click"&&(u.clickEvent=e),a._completeHide(u)}}static dataApiKeydownHandler(e){const r=/input|textarea/i.test(e.target.tagName),n=e.key===Die,a=[Cie,c6].includes(e.key);if(!a&&!n||r&&!n)return;e.preventDefault();const s=this.matches(Ac)?this:_t.prev(this,Ac)[0]||_t.next(this,Ac)[0]||_t.findOne(Ac,e.delegateTarget.parentNode),o=us.getOrCreateInstance(s);if(a){e.stopPropagation(),o.show(),o._selectMenuItem(e);return}o._isShown()&&(e.stopPropagation(),o.hide(),s.focus())}}Ge.on(document,qz,Ac,us.dataApiKeydownHandler);Ge.on(document,qz,mw,us.dataApiKeydownHandler);Ge.on(document,Bz,us.clearMenus);Ge.on(document,qie,us.clearMenus);Ge.on(document,Bz,Ac,function(t){t.preventDefault(),us.getOrCreateInstance(this).toggle()});ha(us);const $z="backdrop",aae="fade",l6="show",d6=`mousedown.bs.${$z}`,sae={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},oae={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Uz extends Db{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return sae}static get DefaultType(){return oae}static get NAME(){return $z}show(e){if(!this._config.isVisible){_i(e);return}this._append();const r=this._getElement();this._config.isAnimated&&Nb(r),r.classList.add(l6),this._emulateAnimation(()=>{_i(e)})}hide(e){if(!this._config.isVisible){_i(e);return}this._getElement().classList.remove(l6),this._emulateAnimation(()=>{this.dispose(),_i(e)})}dispose(){this._isAppended&&(Ge.off(this._element,d6),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(aae),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=cu(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),Ge.on(e,d6,()=>{_i(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){Oz(e,this._getElement(),this._config.isAnimated)}}const uae="focustrap",cae="bs.focustrap",Zw=`.${cae}`,lae=`focusin${Zw}`,dae=`keydown.tab${Zw}`,fae="Tab",hae="forward",f6="backward",pae={autofocus:!0,trapElement:null},yae={autofocus:"boolean",trapElement:"element"};class kz extends Db{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return pae}static get DefaultType(){return yae}static get NAME(){return uae}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),Ge.off(document,Zw),Ge.on(document,lae,e=>this._handleFocusin(e)),Ge.on(document,dae,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,Ge.off(document,Zw))}_handleFocusin(e){const{trapElement:r}=this._config;if(e.target===document||e.target===r||r.contains(e.target))return;const n=_t.focusableChildren(r);n.length===0?r.focus():this._lastTabNavDirection===f6?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){e.key===fae&&(this._lastTabNavDirection=e.shiftKey?f6:hae)}}const h6=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",p6=".sticky-top",av="padding-right",y6="margin-right";class II{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,av,r=>r+e),this._setElementAttributes(h6,av,r=>r+e),this._setElementAttributes(p6,y6,r=>r-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,av),this._resetElementAttributes(h6,av),this._resetElementAttributes(p6,y6)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,r,n){const a=this.getWidth(),s=o=>{if(o!==this._element&&window.innerWidth>o.clientWidth+a)return;this._saveInitialAttribute(o,r);const u=window.getComputedStyle(o).getPropertyValue(r);o.style.setProperty(r,`${n(Number.parseFloat(u))}px`)};this._applyManipulationCallback(e,s)}_saveInitialAttribute(e,r){const n=e.style.getPropertyValue(r);n&&uo.setDataAttribute(e,r,n)}_resetElementAttributes(e,r){const n=a=>{const s=uo.getDataAttribute(a,r);if(s===null){a.style.removeProperty(r);return}uo.removeDataAttribute(a,r),a.style.setProperty(r,s)};this._applyManipulationCallback(e,n)}_applyManipulationCallback(e,r){if(oo(e)){r(e);return}for(const n of _t.find(e,this._element))r(n)}}const mae="modal",gae="bs.modal",la=`.${gae}`,_ae=".data-api",bae="Escape",vae=`hide${la}`,wae=`hidePrevented${la}`,Vz=`hidden${la}`,Hz=`show${la}`,Sae=`shown${la}`,Tae=`resize${la}`,Eae=`click.dismiss${la}`,Aae=`mousedown.dismiss${la}`,Oae=`keydown.dismiss${la}`,Rae=`click${la}${_ae}`,m6="modal-open",xae="fade",g6="show",SE="modal-static",Iae=".modal.show",Pae=".modal-dialog",Nae=".modal-body",Dae='[data-bs-toggle="modal"]',Cae={backdrop:!0,focus:!0,keyboard:!0},Lae={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class du extends qa{constructor(e,r){super(e,r),this._dialog=_t.findOne(Pae,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new II,this._addEventListeners()}static get Default(){return Cae}static get DefaultType(){return Lae}static get NAME(){return mae}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||Ge.trigger(this._element,Hz,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(m6),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||Ge.trigger(this._element,vae).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(g6),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){Ge.off(window,la),Ge.off(this._dialog,la),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Uz({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new kz({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const r=_t.findOne(Nae,this._dialog);r&&(r.scrollTop=0),Nb(this._element),this._element.classList.add(g6);const n=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,Ge.trigger(this._element,Sae,{relatedTarget:e})};this._queueCallback(n,this._dialog,this._isAnimated())}_addEventListeners(){Ge.on(this._element,Oae,e=>{if(e.key===bae){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),Ge.on(window,Tae,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),Ge.on(this._element,Aae,e=>{Ge.one(this._element,Eae,r=>{if(!(this._element!==e.target||this._element!==r.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(m6),this._resetAdjustments(),this._scrollBar.reset(),Ge.trigger(this._element,Vz)})}_isAnimated(){return this._element.classList.contains(xae)}_triggerBackdropTransition(){if(Ge.trigger(this._element,wae).defaultPrevented)return;const r=this._element.scrollHeight>document.documentElement.clientHeight,n=this._element.style.overflowY;n==="hidden"||this._element.classList.contains(SE)||(r||(this._element.style.overflowY="hidden"),this._element.classList.add(SE),this._queueCallback(()=>{this._element.classList.remove(SE),this._queueCallback(()=>{this._element.style.overflowY=n},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,r=this._scrollBar.getWidth(),n=r>0;if(n&&!e){const a=ca()?"paddingLeft":"paddingRight";this._element.style[a]=`${r}px`}if(!n&&e){const a=ca()?"paddingRight":"paddingLeft";this._element.style[a]=`${r}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,r){return this.each(function(){const n=du.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e](r)}})}}Ge.on(document,Rae,Dae,function(t){const e=_t.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),Ge.one(e,Hz,a=>{a.defaultPrevented||Ge.one(e,Vz,()=>{nf(this)&&this.focus()})});const r=_t.findOne(Iae);r&&du.getInstance(r).hide(),du.getOrCreateInstance(e).toggle(this)});qS(du);ha(du);const jae="offcanvas",Mae="bs.offcanvas",So=`.${Mae}`,Qz=".data-api",Fae=`load${So}${Qz}`,Bae="Escape",_6="show",b6="showing",v6="hiding",qae="offcanvas-backdrop",zz=".offcanvas.show",$ae=`show${So}`,Uae=`shown${So}`,kae=`hide${So}`,w6=`hidePrevented${So}`,Gz=`hidden${So}`,Vae=`resize${So}`,Hae=`click${So}${Qz}`,Qae=`keydown.dismiss${So}`,zae='[data-bs-toggle="offcanvas"]',Gae={backdrop:!0,keyboard:!0,scroll:!1},Wae={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class fu extends qa{constructor(e,r){super(e,r),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Gae}static get DefaultType(){return Wae}static get NAME(){return jae}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||Ge.trigger(this._element,$ae,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new II().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(b6);const n=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(_6),this._element.classList.remove(b6),Ge.trigger(this._element,Uae,{relatedTarget:e})};this._queueCallback(n,this._element,!0)}hide(){if(!this._isShown||Ge.trigger(this._element,kae).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(v6),this._backdrop.hide();const r=()=>{this._element.classList.remove(_6,v6),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new II().reset(),Ge.trigger(this._element,Gz)};this._queueCallback(r,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){Ge.trigger(this._element,w6);return}this.hide()},r=!!this._config.backdrop;return new Uz({className:qae,isVisible:r,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:r?e:null})}_initializeFocusTrap(){return new kz({trapElement:this._element})}_addEventListeners(){Ge.on(this._element,Qae,e=>{if(e.key===Bae){if(this._config.keyboard){this.hide();return}Ge.trigger(this._element,w6)}})}static jQueryInterface(e){return this.each(function(){const r=fu.getOrCreateInstance(this,e);if(typeof e=="string"){if(r[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);r[e](this)}})}}Ge.on(document,Hae,zae,function(t){const e=_t.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),lu(this))return;Ge.one(e,Gz,()=>{nf(this)&&this.focus()});const r=_t.findOne(zz);r&&r!==e&&fu.getInstance(r).hide(),fu.getOrCreateInstance(e).toggle(this)});Ge.on(window,Fae,()=>{for(const t of _t.find(zz))fu.getOrCreateInstance(t).show()});Ge.on(window,Vae,()=>{for(const t of _t.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(t).position!=="fixed"&&fu.getOrCreateInstance(t).hide()});qS(fu);ha(fu);const Kae=/^aria-[\w-]*$/i,Wz={"*":["class","dir","id","lang","role",Kae],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Jae=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Xae=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Yae=(t,e)=>{const r=t.nodeName.toLowerCase();return e.includes(r)?Jae.has(r)?!!Xae.test(t.nodeValue):!0:e.filter(n=>n instanceof RegExp).some(n=>n.test(r))};function Zae(t,e,r){if(!t.length)return t;if(r&&typeof r=="function")return r(t);const a=new window.DOMParser().parseFromString(t,"text/html"),s=[].concat(...a.body.querySelectorAll("*"));for(const o of s){const u=o.nodeName.toLowerCase();if(!Object.keys(e).includes(u)){o.remove();continue}const c=[].concat(...o.attributes),l=[].concat(e["*"]||[],e[u]||[]);for(const d of c)Yae(d,l)||o.removeAttribute(d.nodeName)}return a.body.innerHTML}const ese="TemplateFactory",tse={allowList:Wz,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},rse={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},nse={entry:"(string|element|function|null)",selector:"(string|element)"};class ise extends Db{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return tse}static get DefaultType(){return rse}static get NAME(){return ese}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[a,s]of Object.entries(this._config.content))this._setContent(e,s,a);const r=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&r.classList.add(...n.split(" ")),r}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[r,n]of Object.entries(e))super._typeCheckConfig({selector:r,entry:n},nse)}_setContent(e,r,n){const a=_t.findOne(n,e);if(a){if(r=this._resolvePossibleFunction(r),!r){a.remove();return}if(oo(r)){this._putElementInTemplate(cu(r),a);return}if(this._config.html){a.innerHTML=this._maybeSanitize(r);return}a.textContent=r}}_maybeSanitize(e){return this._config.sanitize?Zae(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return _i(e,[this])}_putElementInTemplate(e,r){if(this._config.html){r.innerHTML="",r.append(e);return}r.textContent=e.textContent}}const ase="tooltip",sse=new Set(["sanitize","allowList","sanitizeFn"]),TE="fade",ose="modal",sv="show",use=".tooltip-inner",S6=`.${ose}`,T6="hide.bs.modal",zf="hover",EE="focus",cse="click",lse="manual",dse="hide",fse="hidden",hse="show",pse="shown",yse="inserted",mse="click",gse="focusin",_se="focusout",bse="mouseenter",vse="mouseleave",wse={AUTO:"auto",TOP:"top",RIGHT:ca()?"left":"right",BOTTOM:"bottom",LEFT:ca()?"right":"left"},Sse={allowList:Wz,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},Tse={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class sf extends qa{constructor(e,r){if(typeof wz>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,r),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Sse}static get DefaultType(){return Tse}static get NAME(){return ase}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),Ge.off(this._element.closest(S6),T6,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const e=Ge.trigger(this._element,this.constructor.eventName(hse)),n=(Ez(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!n)return;this._disposePopper();const a=this._getTipElement();this._element.setAttribute("aria-describedby",a.getAttribute("id"));const{container:s}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(s.append(a),Ge.trigger(this._element,this.constructor.eventName(yse))),this._popper=this._createPopper(a),a.classList.add(sv),"ontouchstart"in document.documentElement)for(const u of[].concat(...document.body.children))Ge.on(u,"mouseover",Xw);const o=()=>{Ge.trigger(this._element,this.constructor.eventName(pse)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(o,this.tip,this._isAnimated())}hide(){if(!this._isShown()||Ge.trigger(this._element,this.constructor.eventName(dse)).defaultPrevented)return;if(this._getTipElement().classList.remove(sv),"ontouchstart"in document.documentElement)for(const a of[].concat(...document.body.children))Ge.off(a,"mouseover",Xw);this._activeTrigger[cse]=!1,this._activeTrigger[EE]=!1,this._activeTrigger[zf]=!1,this._isHovered=null;const n=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),Ge.trigger(this._element,this.constructor.eventName(fse)))};this._queueCallback(n,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const r=this._getTemplateFactory(e).toHtml();if(!r)return null;r.classList.remove(TE,sv),r.classList.add(`bs-${this.constructor.NAME}-auto`);const n=cne(this.constructor.NAME).toString();return r.setAttribute("id",n),this._isAnimated()&&r.classList.add(TE),r}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new ise({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[use]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(TE)}_isShown(){return this.tip&&this.tip.classList.contains(sv)}_createPopper(e){const r=_i(this._config.placement,[this,e,this._element]),n=wse[r.toUpperCase()];return AN(this._element,e,this._getPopperConfig(n))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(r=>Number.parseInt(r,10)):typeof e=="function"?r=>e(r,this._element):e}_resolvePossibleFunction(e){return _i(e,[this._element])}_getPopperConfig(e){const r={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:n=>{this._getTipElement().setAttribute("data-popper-placement",n.state.placement)}}]};return{...r,..._i(this._config.popperConfig,[r])}}_setListeners(){const e=this._config.trigger.split(" ");for(const r of e)if(r==="click")Ge.on(this._element,this.constructor.eventName(mse),this._config.selector,n=>{this._initializeOnDelegatedTarget(n).toggle()});else if(r!==lse){const n=r===zf?this.constructor.eventName(bse):this.constructor.eventName(gse),a=r===zf?this.constructor.eventName(vse):this.constructor.eventName(_se);Ge.on(this._element,n,this._config.selector,s=>{const o=this._initializeOnDelegatedTarget(s);o._activeTrigger[s.type==="focusin"?EE:zf]=!0,o._enter()}),Ge.on(this._element,a,this._config.selector,s=>{const o=this._initializeOnDelegatedTarget(s);o._activeTrigger[s.type==="focusout"?EE:zf]=o._element.contains(s.relatedTarget),o._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},Ge.on(this._element.closest(S6),T6,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,r){clearTimeout(this._timeout),this._timeout=setTimeout(e,r)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const r=uo.getDataAttributes(this._element);for(const n of Object.keys(r))sse.has(n)&&delete r[n];return e={...r,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:cu(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[r,n]of Object.entries(this._config))this.constructor.Default[r]!==n&&(e[r]=n);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const r=sf.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}}ha(sf);const Ese="popover",Ase=".popover-header",Ose=".popover-body",Rse={...sf.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},xse={...sf.DefaultType,content:"(null|string|element|function)"};class IN extends sf{static get Default(){return Rse}static get DefaultType(){return xse}static get NAME(){return Ese}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Ase]:this._getTitle(),[Ose]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const r=IN.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}}ha(IN);const Ise="scrollspy",Pse="bs.scrollspy",PN=`.${Pse}`,Nse=".data-api",Dse=`activate${PN}`,E6=`click${PN}`,Cse=`load${PN}${Nse}`,Lse="dropdown-item",Dl="active",jse='[data-bs-spy="scroll"]',AE="[href]",Mse=".nav, .list-group",A6=".nav-link",Fse=".nav-item",Bse=".list-group-item",qse=`${A6}, ${Fse} > ${A6}, ${Bse}`,$se=".dropdown",Use=".dropdown-toggle",kse={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Vse={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class kS extends qa{constructor(e,r){super(e,r),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return kse}static get DefaultType(){return Vse}static get NAME(){return Ise}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=cu(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(r=>Number.parseFloat(r))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(Ge.off(this._config.target,E6),Ge.on(this._config.target,E6,AE,e=>{const r=this._observableSections.get(e.target.hash);if(r){e.preventDefault();const n=this._rootElement||window,a=r.offsetTop-this._element.offsetTop;if(n.scrollTo){n.scrollTo({top:a,behavior:"smooth"});return}n.scrollTop=a}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(r=>this._observerCallback(r),e)}_observerCallback(e){const r=o=>this._targetLinks.get(`#${o.target.id}`),n=o=>{this._previousScrollData.visibleEntryTop=o.target.offsetTop,this._process(r(o))},a=(this._rootElement||document.documentElement).scrollTop,s=a>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=a;for(const o of e){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(r(o));continue}const u=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&u){if(n(o),!a)return;continue}!s&&!u&&n(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=_t.find(AE,this._config.target);for(const r of e){if(!r.hash||lu(r))continue;const n=_t.findOne(decodeURI(r.hash),this._element);nf(n)&&(this._targetLinks.set(decodeURI(r.hash),r),this._observableSections.set(r.hash,n))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(Dl),this._activateParents(e),Ge.trigger(this._element,Dse,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(Lse)){_t.findOne(Use,e.closest($se)).classList.add(Dl);return}for(const r of _t.parents(e,Mse))for(const n of _t.prev(r,qse))n.classList.add(Dl)}_clearActiveClass(e){e.classList.remove(Dl);const r=_t.find(`${AE}.${Dl}`,e);for(const n of r)n.classList.remove(Dl)}static jQueryInterface(e){return this.each(function(){const r=kS.getOrCreateInstance(this,e);if(typeof e=="string"){if(r[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);r[e]()}})}}Ge.on(window,Cse,()=>{for(const t of _t.find(jse))kS.getOrCreateInstance(t)});ha(kS);const Hse="tab",Qse="bs.tab",al=`.${Qse}`,zse=`hide${al}`,Gse=`hidden${al}`,Wse=`show${al}`,Kse=`shown${al}`,Jse=`click${al}`,Xse=`keydown${al}`,Yse=`load${al}`,Zse="ArrowLeft",O6="ArrowRight",eoe="ArrowUp",R6="ArrowDown",OE="Home",x6="End",Oc="active",I6="fade",RE="show",toe="dropdown",Kz=".dropdown-toggle",roe=".dropdown-menu",xE=`:not(${Kz})`,noe='.list-group, .nav, [role="tablist"]',ioe=".nav-item, .list-group-item",aoe=`.nav-link${xE}, .list-group-item${xE}, [role="tab"]${xE}`,Jz='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',IE=`${aoe}, ${Jz}`,soe=`.${Oc}[data-bs-toggle="tab"], .${Oc}[data-bs-toggle="pill"], .${Oc}[data-bs-toggle="list"]`;class Cd extends qa{constructor(e){super(e),this._parent=this._element.closest(noe),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),Ge.on(this._element,Xse,r=>this._keydown(r)))}static get NAME(){return Hse}show(){const e=this._element;if(this._elemIsActive(e))return;const r=this._getActiveElem(),n=r?Ge.trigger(r,zse,{relatedTarget:e}):null;Ge.trigger(e,Wse,{relatedTarget:r}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(r,e),this._activate(e,r))}_activate(e,r){if(!e)return;e.classList.add(Oc),this._activate(_t.getElementFromSelector(e));const n=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(RE);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),Ge.trigger(e,Kse,{relatedTarget:r})};this._queueCallback(n,e,e.classList.contains(I6))}_deactivate(e,r){if(!e)return;e.classList.remove(Oc),e.blur(),this._deactivate(_t.getElementFromSelector(e));const n=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(RE);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),Ge.trigger(e,Gse,{relatedTarget:r})};this._queueCallback(n,e,e.classList.contains(I6))}_keydown(e){if(![Zse,O6,eoe,R6,OE,x6].includes(e.key))return;e.stopPropagation(),e.preventDefault();const r=this._getChildren().filter(a=>!lu(a));let n;if([OE,x6].includes(e.key))n=r[e.key===OE?0:r.length-1];else{const a=[O6,R6].includes(e.key);n=ON(r,e.target,a,!0)}n&&(n.focus({preventScroll:!0}),Cd.getOrCreateInstance(n).show())}_getChildren(){return _t.find(IE,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,r){this._setAttributeIfNotExists(e,"role","tablist");for(const n of r)this._setInitialAttributesOnChild(n)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const r=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute("aria-selected",r),n!==e&&this._setAttributeIfNotExists(n,"role","presentation"),r||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const r=_t.getElementFromSelector(e);r&&(this._setAttributeIfNotExists(r,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(r,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,r){const n=this._getOuterElement(e);if(!n.classList.contains(toe))return;const a=(s,o)=>{const u=_t.findOne(s,n);u&&u.classList.toggle(o,r)};a(Kz,Oc),a(roe,RE),n.setAttribute("aria-expanded",r)}_setAttributeIfNotExists(e,r,n){e.hasAttribute(r)||e.setAttribute(r,n)}_elemIsActive(e){return e.classList.contains(Oc)}_getInnerElement(e){return e.matches(IE)?e:_t.findOne(IE,e)}_getOuterElement(e){return e.closest(ioe)||e}static jQueryInterface(e){return this.each(function(){const r=Cd.getOrCreateInstance(this);if(typeof e=="string"){if(r[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);r[e]()}})}}Ge.on(document,Jse,Jz,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),!lu(this)&&Cd.getOrCreateInstance(this).show()});Ge.on(window,Yse,()=>{for(const t of _t.find(soe))Cd.getOrCreateInstance(t)});ha(Cd);const ooe="toast",uoe="bs.toast",Su=`.${uoe}`,coe=`mouseover${Su}`,loe=`mouseout${Su}`,doe=`focusin${Su}`,foe=`focusout${Su}`,hoe=`hide${Su}`,poe=`hidden${Su}`,yoe=`show${Su}`,moe=`shown${Su}`,goe="fade",P6="hide",ov="show",uv="showing",_oe={animation:"boolean",autohide:"boolean",delay:"number"},boe={animation:!0,autohide:!0,delay:5e3};class VS extends qa{constructor(e,r){super(e,r),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return boe}static get DefaultType(){return _oe}static get NAME(){return ooe}show(){if(Ge.trigger(this._element,yoe).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(goe);const r=()=>{this._element.classList.remove(uv),Ge.trigger(this._element,moe),this._maybeScheduleHide()};this._element.classList.remove(P6),Nb(this._element),this._element.classList.add(ov,uv),this._queueCallback(r,this._element,this._config.animation)}hide(){if(!this.isShown()||Ge.trigger(this._element,hoe).defaultPrevented)return;const r=()=>{this._element.classList.add(P6),this._element.classList.remove(uv,ov),Ge.trigger(this._element,poe)};this._element.classList.add(uv),this._queueCallback(r,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(ov),super.dispose()}isShown(){return this._element.classList.contains(ov)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,r){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=r;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=r;break}}if(r){this._clearTimeout();return}const n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){Ge.on(this._element,coe,e=>this._onInteraction(e,!0)),Ge.on(this._element,loe,e=>this._onInteraction(e,!1)),Ge.on(this._element,doe,e=>this._onInteraction(e,!0)),Ge.on(this._element,foe,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const r=VS.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e](this)}})}}qS(VS);ha(VS);const NN=Symbol.for("yaml.alias"),PI=Symbol.for("yaml.document"),nu=Symbol.for("yaml.map"),Xz=Symbol.for("yaml.pair"),mo=Symbol.for("yaml.scalar"),of=Symbol.for("yaml.seq"),da=Symbol.for("yaml.node.type"),uf=t=>!!t&&typeof t=="object"&&t[da]===NN,HS=t=>!!t&&typeof t=="object"&&t[da]===PI,jb=t=>!!t&&typeof t=="object"&&t[da]===nu,Jr=t=>!!t&&typeof t=="object"&&t[da]===Xz,xr=t=>!!t&&typeof t=="object"&&t[da]===mo,Mb=t=>!!t&&typeof t=="object"&&t[da]===of;function Kr(t){if(t&&typeof t=="object")switch(t[da]){case nu:case of:return!0}return!1}function tn(t){if(t&&typeof t=="object")switch(t[da]){case NN:case nu:case mo:case of:return!0}return!1}const voe=t=>(xr(t)||Kr(t))&&!!t.anchor,oc=Symbol("break visit"),woe=Symbol("skip children"),q_=Symbol("remove node");function Vc(t,e){const r=Soe(e);HS(t)?rd(null,t.contents,r,Object.freeze([t]))===q_&&(t.contents=null):rd(null,t,r,Object.freeze([]))}Vc.BREAK=oc;Vc.SKIP=woe;Vc.REMOVE=q_;function rd(t,e,r,n){const a=Toe(t,e,r,n);if(tn(a)||Jr(a))return Eoe(t,n,a),rd(t,a,r,n);if(typeof a!="symbol"){if(Kr(e)){n=Object.freeze(n.concat(e));for(let s=0;st.replace(/[!,[\]{}]/g,e=>Aoe[e]);class Xn{constructor(e,r){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},Xn.defaultYaml,e),this.tags=Object.assign({},Xn.defaultTags,r)}clone(){const e=new Xn(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new Xn(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:Xn.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},Xn.defaultTags);break}return e}add(e,r){this.atNextDocument&&(this.yaml={explicit:Xn.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},Xn.defaultTags),this.atNextDocument=!1);const n=e.trim().split(/[ \t]+/),a=n.shift();switch(a){case"%TAG":{if(n.length!==2&&(r(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;const[s,o]=n;return this.tags[s]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,n.length!==1)return r(0,"%YAML directive should contain exactly one part"),!1;const[s]=n;if(s==="1.1"||s==="1.2")return this.yaml.version=s,!0;{const o=/^\d+\.\d+$/.test(s);return r(6,`Unsupported YAML version ${s}`,o),!1}}default:return r(0,`Unknown directive ${a}`,!0),!1}}tagName(e,r){if(e==="!")return"!";if(e[0]!=="!")return r(`Not a valid tag: ${e}`),null;if(e[1]==="<"){const o=e.slice(2,-1);return o==="!"||o==="!!"?(r(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&r("Verbatim tags must end with a >"),o)}const[,n,a]=e.match(/^(.*!)([^!]*)$/s);a||r(`The ${e} tag has no suffix`);const s=this.tags[n];if(s)try{return s+decodeURIComponent(a)}catch(o){return r(String(o)),null}return n==="!"?e:(r(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[r,n]of Object.entries(this.tags))if(e.startsWith(n))return r+Ooe(e.substring(n.length));return e[0]==="!"?e:`!<${e}>`}toString(e){const r=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags);let a;if(e&&n.length>0&&tn(e.contents)){const s={};Vc(e.contents,(o,u)=>{tn(u)&&u.tag&&(s[u.tag]=!0)}),a=Object.keys(s)}else a=[];for(const[s,o]of n)s==="!!"&&o==="tag:yaml.org,2002:"||(!e||a.some(u=>u.startsWith(o)))&&r.push(`%TAG ${s} ${o}`);return r.join(` -`)}}Xn.defaultYaml={explicit:!1,version:"1.2"};Xn.defaultTags={"!!":"tag:yaml.org,2002:"};function Yz(t){if(/[\x00-\x19\s,[\]{}]/.test(t)){const r=`Anchor must not contain whitespace or control characters: ${JSON.stringify(t)}`;throw new Error(r)}return!0}function Zz(t){const e=new Set;return Vc(t,{Value(r,n){n.anchor&&e.add(n.anchor)}}),e}function eG(t,e){for(let r=1;;++r){const n=`${t}${r}`;if(!e.has(n))return n}}function Roe(t,e){const r=[],n=new Map;let a=null;return{onAnchor:s=>{r.push(s),a||(a=Zz(t));const o=eG(e,a);return a.add(o),o},setAnchors:()=>{for(const s of r){const o=n.get(s);if(typeof o=="object"&&o.anchor&&(xr(o.node)||Kr(o.node)))o.node.anchor=o.anchor;else{const u=new Error("Failed to resolve repeated object (this should not happen)");throw u.source=s,u}}},sourceObjects:n}}function nd(t,e,r,n){if(n&&typeof n=="object")if(Array.isArray(n))for(let a=0,s=n.length;aaa(n,String(a),r));if(t&&typeof t.toJSON=="function"){if(!r||!voe(t))return t.toJSON(e,r);const n={aliasCount:0,count:1,res:void 0};r.anchors.set(t,n),r.onCreate=s=>{n.res=s,delete r.onCreate};const a=t.toJSON(e,r);return r.onCreate&&r.onCreate(a),a}return typeof t=="bigint"&&!(r!=null&&r.keep)?Number(t):t}class DN{constructor(e){Object.defineProperty(this,da,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:r,maxAliasCount:n,onAnchor:a,reviver:s}={}){if(!HS(e))throw new TypeError("A document argument is required");const o={anchors:new Map,doc:e,keep:!0,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},u=aa(this,"",o);if(typeof a=="function")for(const{count:c,res:l}of o.anchors.values())a(l,c);return typeof s=="function"?nd(s,{"":u},"",u):u}}class CN extends DN{constructor(e){super(NN),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let r;return Vc(e,{Node:(n,a)=>{if(a===this)return Vc.BREAK;a.anchor===this.source&&(r=a)}}),r}toJSON(e,r){if(!r)return{source:this.source};const{anchors:n,doc:a,maxAliasCount:s}=r,o=this.resolve(a);if(!o){const c=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(c)}let u=n.get(o);if(u||(aa(o,null,r),u=n.get(o)),!u||u.res===void 0){const c="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(c)}if(s>=0&&(u.count+=1,u.aliasCount===0&&(u.aliasCount=gw(a,o,n)),u.count*u.aliasCount>s)){const c="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(c)}return u.res}toString(e,r,n){const a=`*${this.source}`;if(e){if(Yz(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const s=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(s)}if(e.implicitKey)return`${a} `}return a}}function gw(t,e,r){if(uf(e)){const n=e.resolve(t),a=r&&n&&r.get(n);return a?a.count*a.aliasCount:0}else if(Kr(e)){let n=0;for(const a of e.items){const s=gw(t,a,r);s>n&&(n=s)}return n}else if(Jr(e)){const n=gw(t,e.key,r),a=gw(t,e.value,r);return Math.max(n,a)}return 1}const tG=t=>!t||typeof t!="function"&&typeof t!="object";class jt extends DN{constructor(e){super(mo),this.value=e}toJSON(e,r){return r!=null&&r.keep?this.value:aa(this.value,e,r)}toString(){return String(this.value)}}jt.BLOCK_FOLDED="BLOCK_FOLDED";jt.BLOCK_LITERAL="BLOCK_LITERAL";jt.PLAIN="PLAIN";jt.QUOTE_DOUBLE="QUOTE_DOUBLE";jt.QUOTE_SINGLE="QUOTE_SINGLE";const xoe="tag:yaml.org,2002:";function Ioe(t,e,r){if(e){const n=r.filter(s=>s.tag===e),a=n.find(s=>!s.format)??n[0];if(!a)throw new Error(`Tag ${e} not found`);return a}return r.find(n=>{var a;return((a=n.identify)==null?void 0:a.call(n,t))&&!n.format})}function rb(t,e,r){var f,h,p;if(HS(t)&&(t=t.contents),tn(t))return t;if(Jr(t)){const m=(h=(f=r.schema[nu]).createNode)==null?void 0:h.call(f,r.schema,null,r);return m.items.push(t),m}(t instanceof String||t instanceof Number||t instanceof Boolean||typeof BigInt<"u"&&t instanceof BigInt)&&(t=t.valueOf());const{aliasDuplicateObjects:n,onAnchor:a,onTagObj:s,schema:o,sourceObjects:u}=r;let c;if(n&&t&&typeof t=="object"){if(c=u.get(t),c)return c.anchor||(c.anchor=a(t)),new CN(c.anchor);c={anchor:null,node:null},u.set(t,c)}e!=null&&e.startsWith("!!")&&(e=xoe+e.slice(2));let l=Ioe(t,e,o.tags);if(!l){if(t&&typeof t.toJSON=="function"&&(t=t.toJSON()),!t||typeof t!="object"){const m=new jt(t);return c&&(c.node=m),m}l=t instanceof Map?o[nu]:Symbol.iterator in Object(t)?o[of]:o[nu]}s&&(s(l),delete r.onTagObj);const d=l!=null&&l.createNode?l.createNode(r.schema,t,r):typeof((p=l==null?void 0:l.nodeClass)==null?void 0:p.from)=="function"?l.nodeClass.from(r.schema,t,r):new jt(t);return e?d.tag=e:l.default||(d.tag=l.tag),c&&(c.node=d),d}function eS(t,e,r){let n=r;for(let a=e.length-1;a>=0;--a){const s=e[a];if(typeof s=="number"&&Number.isInteger(s)&&s>=0){const o=[];o[s]=n,n=o}else n=new Map([[s,n]])}return rb(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:t,sourceObjects:new Map})}const g_=t=>t==null||typeof t=="object"&&!!t[Symbol.iterator]().next().done;let rG=class extends DN{constructor(e,r){super(e),Object.defineProperty(this,"schema",{value:r,configurable:!0,enumerable:!1,writable:!0})}clone(e){const r=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(r.schema=e),r.items=r.items.map(n=>tn(n)||Jr(n)?n.clone(e):n),this.range&&(r.range=this.range.slice()),r}addIn(e,r){if(g_(e))this.add(r);else{const[n,...a]=e,s=this.get(n,!0);if(Kr(s))s.addIn(a,r);else if(s===void 0&&this.schema)this.set(n,eS(this.schema,a,r));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${a}`)}}deleteIn(e){const[r,...n]=e;if(n.length===0)return this.delete(r);const a=this.get(r,!0);if(Kr(a))return a.deleteIn(n);throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}getIn(e,r){const[n,...a]=e,s=this.get(n,!0);return a.length===0?!r&&xr(s)?s.value:s:Kr(s)?s.getIn(a,r):void 0}hasAllNullValues(e){return this.items.every(r=>{if(!Jr(r))return!1;const n=r.value;return n==null||e&&xr(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){const[r,...n]=e;if(n.length===0)return this.has(r);const a=this.get(r,!0);return Kr(a)?a.hasIn(n):!1}setIn(e,r){const[n,...a]=e;if(a.length===0)this.set(n,r);else{const s=this.get(n,!0);if(Kr(s))s.setIn(a,r);else if(s===void 0&&this.schema)this.set(n,eS(this.schema,a,r));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${a}`)}}};const Poe=t=>t.replace(/^(?!$)(?: $)?/gm,"#");function ro(t,e){return/^\n+$/.test(t)?t.substring(1):e?t.replace(/^(?! *$)/gm,e):t}const Rc=(t,e,r)=>t.endsWith(` + */const Do=new Map,pE={set(t,e,r){Do.has(t)||Do.set(t,new Map);const n=Do.get(t);if(!n.has(e)&&n.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`);return}n.set(e,r)},get(t,e){return Do.has(t)&&Do.get(t).get(e)||null},remove(t,e){if(!Do.has(t))return;const r=Do.get(t);r.delete(e),r.size===0&&Do.delete(t)}},ane=1e6,sne=1e3,AI="transitionend",Sz=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(e,r)=>`#${CSS.escape(r)}`)),t),one=t=>t==null?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),une=t=>{do t+=Math.floor(Math.random()*ane);while(document.getElementById(t));return t},cne=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:r}=window.getComputedStyle(t);const n=Number.parseFloat(e),a=Number.parseFloat(r);return!n&&!a?0:(e=e.split(",")[0],r=r.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(r))*sne)},Tz=t=>{t.dispatchEvent(new Event(AI))},oo=t=>!t||typeof t!="object"?!1:(typeof t.jquery<"u"&&(t=t[0]),typeof t.nodeType<"u"),cu=t=>oo(t)?t.jquery?t[0]:t:typeof t=="string"&&t.length>0?document.querySelector(Sz(t)):null,nf=t=>{if(!oo(t)||t.getClientRects().length===0)return!1;const e=getComputedStyle(t).getPropertyValue("visibility")==="visible",r=t.closest("details:not([open])");if(!r)return e;if(r!==t){const n=t.closest("summary");if(n&&n.parentNode!==r||n===null)return!1}return e},lu=t=>!t||t.nodeType!==Node.ELEMENT_NODE||t.classList.contains("disabled")?!0:typeof t.disabled<"u"?t.disabled:t.hasAttribute("disabled")&&t.getAttribute("disabled")!=="false",Ez=t=>{if(!document.documentElement.attachShadow)return null;if(typeof t.getRootNode=="function"){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?Ez(t.parentNode):null},Xw=()=>{},Nb=t=>{t.offsetHeight},Az=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,yE=[],lne=t=>{document.readyState==="loading"?(yE.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of yE)e()}),yE.push(t)):t()},ca=()=>document.documentElement.dir==="rtl",ha=t=>{lne(()=>{const e=Az();if(e){const r=t.NAME,n=e.fn[r];e.fn[r]=t.jQueryInterface,e.fn[r].Constructor=t,e.fn[r].noConflict=()=>(e.fn[r]=n,t.jQueryInterface)}})},_i=(t,e=[],r=t)=>typeof t=="function"?t(...e):r,Oz=(t,e,r=!0)=>{if(!r){_i(t);return}const a=cne(e)+5;let s=!1;const o=({target:u})=>{u===e&&(s=!0,e.removeEventListener(AI,o),_i(t))};e.addEventListener(AI,o),setTimeout(()=>{s||Tz(e)},a)},ON=(t,e,r,n)=>{const a=t.length;let s=t.indexOf(e);return s===-1?!r&&n?t[a-1]:t[0]:(s+=r?1:-1,n&&(s=(s+a)%a),t[Math.max(0,Math.min(s,a-1))])},dne=/[^.]*(?=\..*)\.|.*/,fne=/\..*/,hne=/::\d+$/,mE={};let n6=1;const Rz={mouseenter:"mouseover",mouseleave:"mouseout"},pne=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function xz(t,e){return e&&`${e}::${n6++}`||t.uidEvent||n6++}function Iz(t){const e=xz(t);return t.uidEvent=e,mE[e]=mE[e]||{},mE[e]}function yne(t,e){return function r(n){return RN(n,{delegateTarget:t}),r.oneOff&&Ge.off(t,n.type,e),e.apply(t,[n])}}function mne(t,e,r){return function n(a){const s=t.querySelectorAll(e);for(let{target:o}=a;o&&o!==this;o=o.parentNode)for(const u of s)if(u===o)return RN(a,{delegateTarget:o}),n.oneOff&&Ge.off(t,a.type,e,r),r.apply(o,[a])}}function Pz(t,e,r=null){return Object.values(t).find(n=>n.callable===e&&n.delegationSelector===r)}function Nz(t,e,r){const n=typeof e=="string",a=n?r:e||r;let s=Dz(t);return pne.has(s)||(s=t),[n,a,s]}function i6(t,e,r,n,a){if(typeof e!="string"||!t)return;let[s,o,u]=Nz(e,r,n);e in Rz&&(o=(m=>function(y){if(!y.relatedTarget||y.relatedTarget!==y.delegateTarget&&!y.delegateTarget.contains(y.relatedTarget))return m.call(this,y)})(o));const c=Iz(t),l=c[u]||(c[u]={}),d=Pz(l,o,s?r:null);if(d){d.oneOff=d.oneOff&&a;return}const f=xz(o,e.replace(dne,"")),h=s?mne(t,r,o):yne(t,o);h.delegationSelector=s?r:null,h.callable=o,h.oneOff=a,h.uidEvent=f,l[f]=h,t.addEventListener(u,h,s)}function OI(t,e,r,n,a){const s=Pz(e[r],n,a);s&&(t.removeEventListener(r,s,!!a),delete e[r][s.uidEvent])}function gne(t,e,r,n){const a=e[r]||{};for(const[s,o]of Object.entries(a))s.includes(n)&&OI(t,e,r,o.callable,o.delegationSelector)}function Dz(t){return t=t.replace(fne,""),Rz[t]||t}const Ge={on(t,e,r,n){i6(t,e,r,n,!1)},one(t,e,r,n){i6(t,e,r,n,!0)},off(t,e,r,n){if(typeof e!="string"||!t)return;const[a,s,o]=Nz(e,r,n),u=o!==e,c=Iz(t),l=c[o]||{},d=e.startsWith(".");if(typeof s<"u"){if(!Object.keys(l).length)return;OI(t,c,o,s,a?r:null);return}if(d)for(const f of Object.keys(c))gne(t,c,f,e.slice(1));for(const[f,h]of Object.entries(l)){const p=f.replace(hne,"");(!u||e.includes(p))&&OI(t,c,o,h.callable,h.delegationSelector)}},trigger(t,e,r){if(typeof e!="string"||!t)return null;const n=Az(),a=Dz(e),s=e!==a;let o=null,u=!0,c=!0,l=!1;s&&n&&(o=n.Event(e,r),n(t).trigger(o),u=!o.isPropagationStopped(),c=!o.isImmediatePropagationStopped(),l=o.isDefaultPrevented());const d=RN(new Event(e,{bubbles:u,cancelable:!0}),r);return l&&d.preventDefault(),c&&t.dispatchEvent(d),d.defaultPrevented&&o&&o.preventDefault(),d}};function RN(t,e={}){for(const[r,n]of Object.entries(e))try{t[r]=n}catch{Object.defineProperty(t,r,{configurable:!0,get(){return n}})}return t}function a6(t){if(t==="true")return!0;if(t==="false")return!1;if(t===Number(t).toString())return Number(t);if(t===""||t==="null")return null;if(typeof t!="string")return t;try{return JSON.parse(decodeURIComponent(t))}catch{return t}}function gE(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const uo={setDataAttribute(t,e,r){t.setAttribute(`data-bs-${gE(e)}`,r)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${gE(e)}`)},getDataAttributes(t){if(!t)return{};const e={},r=Object.keys(t.dataset).filter(n=>n.startsWith("bs")&&!n.startsWith("bsConfig"));for(const n of r){let a=n.replace(/^bs/,"");a=a.charAt(0).toLowerCase()+a.slice(1,a.length),e[a]=a6(t.dataset[n])}return e},getDataAttribute(t,e){return a6(t.getAttribute(`data-bs-${gE(e)}`))}};class Db{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,r){const n=oo(r)?uo.getDataAttribute(r,"config"):{};return{...this.constructor.Default,...typeof n=="object"?n:{},...oo(r)?uo.getDataAttributes(r):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,r=this.constructor.DefaultType){for(const[n,a]of Object.entries(r)){const s=e[n],o=oo(s)?"element":one(s);if(!new RegExp(a).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${o}" but expected type "${a}".`)}}}const _ne="5.3.3";class qa extends Db{constructor(e,r){super(),e=cu(e),e&&(this._element=e,this._config=this._getConfig(r),pE.set(this._element,this.constructor.DATA_KEY,this))}dispose(){pE.remove(this._element,this.constructor.DATA_KEY),Ge.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,r,n=!0){Oz(e,r,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return pE.get(cu(e),this.DATA_KEY)}static getOrCreateInstance(e,r={}){return this.getInstance(e)||new this(e,typeof r=="object"?r:null)}static get VERSION(){return _ne}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const _E=t=>{let e=t.getAttribute("data-bs-target");if(!e||e==="#"){let r=t.getAttribute("href");if(!r||!r.includes("#")&&!r.startsWith("."))return null;r.includes("#")&&!r.startsWith("#")&&(r=`#${r.split("#")[1]}`),e=r&&r!=="#"?r.trim():null}return e?e.split(",").map(r=>Sz(r)).join(","):null},_t={find(t,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t,e=document.documentElement){return Element.prototype.querySelector.call(e,t)},children(t,e){return[].concat(...t.children).filter(r=>r.matches(e))},parents(t,e){const r=[];let n=t.parentNode.closest(e);for(;n;)r.push(n),n=n.parentNode.closest(e);return r},prev(t,e){let r=t.previousElementSibling;for(;r;){if(r.matches(e))return[r];r=r.previousElementSibling}return[]},next(t,e){let r=t.nextElementSibling;for(;r;){if(r.matches(e))return[r];r=r.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(r=>`${r}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(r=>!lu(r)&&nf(r))},getSelectorFromElement(t){const e=_E(t);return e&&_t.findOne(e)?e:null},getElementFromSelector(t){const e=_E(t);return e?_t.findOne(e):null},getMultipleElementsFromSelector(t){const e=_E(t);return e?_t.find(e):[]}},BS=(t,e="hide")=>{const r=`click.dismiss${t.EVENT_KEY}`,n=t.NAME;Ge.on(document,r,`[data-bs-dismiss="${n}"]`,function(a){if(["A","AREA"].includes(this.tagName)&&a.preventDefault(),lu(this))return;const s=_t.getElementFromSelector(this)||this.closest(`.${n}`);t.getOrCreateInstance(s)[e]()})},bne="alert",vne="bs.alert",Cz=`.${vne}`,wne=`close${Cz}`,Sne=`closed${Cz}`,Tne="fade",Ene="show";class qS extends qa{static get NAME(){return bne}close(){if(Ge.trigger(this._element,wne).defaultPrevented)return;this._element.classList.remove(Ene);const r=this._element.classList.contains(Tne);this._queueCallback(()=>this._destroyElement(),this._element,r)}_destroyElement(){this._element.remove(),Ge.trigger(this._element,Sne),this.dispose()}static jQueryInterface(e){return this.each(function(){const r=qS.getOrCreateInstance(this);if(typeof e=="string"){if(r[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);r[e](this)}})}}BS(qS,"close");ha(qS);const Ane="button",One="bs.button",Rne=`.${One}`,xne=".data-api",Ine="active",s6='[data-bs-toggle="button"]',Pne=`click${Rne}${xne}`;class $S extends qa{static get NAME(){return Ane}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(Ine))}static jQueryInterface(e){return this.each(function(){const r=$S.getOrCreateInstance(this);e==="toggle"&&r[e]()})}}Ge.on(document,Pne,s6,t=>{t.preventDefault();const e=t.target.closest(s6);$S.getOrCreateInstance(e).toggle()});ha($S);const Nne="swipe",af=".bs.swipe",Dne=`touchstart${af}`,Cne=`touchmove${af}`,Lne=`touchend${af}`,jne=`pointerdown${af}`,Mne=`pointerup${af}`,Fne="touch",Bne="pen",qne="pointer-event",$ne=40,Une={endCallback:null,leftCallback:null,rightCallback:null},kne={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Yw extends Db{constructor(e,r){super(),this._element=e,!(!e||!Yw.isSupported())&&(this._config=this._getConfig(r),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return Une}static get DefaultType(){return kne}static get NAME(){return Nne}dispose(){Ge.off(this._element,af)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),_i(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=$ne)return;const r=e/this._deltaX;this._deltaX=0,r&&_i(r>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(Ge.on(this._element,jne,e=>this._start(e)),Ge.on(this._element,Mne,e=>this._end(e)),this._element.classList.add(qne)):(Ge.on(this._element,Dne,e=>this._start(e)),Ge.on(this._element,Cne,e=>this._move(e)),Ge.on(this._element,Lne,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===Bne||e.pointerType===Fne)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Vne="carousel",Hne="bs.carousel",wu=`.${Hne}`,Lz=".data-api",Qne="ArrowLeft",zne="ArrowRight",Gne=500,Qf="next",Pl="prev",Ql="left",yw="right",Wne=`slide${wu}`,bE=`slid${wu}`,Kne=`keydown${wu}`,Jne=`mouseenter${wu}`,Xne=`mouseleave${wu}`,Yne=`dragstart${wu}`,Zne=`load${wu}${Lz}`,eie=`click${wu}${Lz}`,jz="carousel",nv="active",tie="slide",rie="carousel-item-end",nie="carousel-item-start",iie="carousel-item-next",aie="carousel-item-prev",Mz=".active",Fz=".carousel-item",sie=Mz+Fz,oie=".carousel-item img",uie=".carousel-indicators",cie="[data-bs-slide], [data-bs-slide-to]",lie='[data-bs-ride="carousel"]',die={[Qne]:yw,[zne]:Ql},fie={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},hie={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Cb extends qa{constructor(e,r){super(e,r),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=_t.findOne(uie,this._element),this._addEventListeners(),this._config.ride===jz&&this.cycle()}static get Default(){return fie}static get DefaultType(){return hie}static get NAME(){return Vne}next(){this._slide(Qf)}nextWhenVisible(){!document.hidden&&nf(this._element)&&this.next()}prev(){this._slide(Pl)}pause(){this._isSliding&&Tz(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){Ge.one(this._element,bE,()=>this.cycle());return}this.cycle()}}to(e){const r=this._getItems();if(e>r.length-1||e<0)return;if(this._isSliding){Ge.one(this._element,bE,()=>this.to(e));return}const n=this._getItemIndex(this._getActive());if(n===e)return;const a=e>n?Qf:Pl;this._slide(a,r[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&Ge.on(this._element,Kne,e=>this._keydown(e)),this._config.pause==="hover"&&(Ge.on(this._element,Jne,()=>this.pause()),Ge.on(this._element,Xne,()=>this._maybeEnableCycle())),this._config.touch&&Yw.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const n of _t.find(oie,this._element))Ge.on(n,Yne,a=>a.preventDefault());const r={leftCallback:()=>this._slide(this._directionToOrder(Ql)),rightCallback:()=>this._slide(this._directionToOrder(yw)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),Gne+this._config.interval))}};this._swipeHelper=new Yw(this._element,r)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const r=die[e.key];r&&(e.preventDefault(),this._slide(this._directionToOrder(r)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const r=_t.findOne(Mz,this._indicatorsElement);r.classList.remove(nv),r.removeAttribute("aria-current");const n=_t.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(nv),n.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const r=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=r||this._config.defaultInterval}_slide(e,r=null){if(this._isSliding)return;const n=this._getActive(),a=e===Qf,s=r||ON(this._getItems(),n,a,this._config.wrap);if(s===n)return;const o=this._getItemIndex(s),u=p=>Ge.trigger(this._element,p,{relatedTarget:s,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:o});if(u(Wne).defaultPrevented||!n||!s)return;const l=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=s;const d=a?nie:rie,f=a?iie:aie;s.classList.add(f),Nb(s),n.classList.add(d),s.classList.add(d);const h=()=>{s.classList.remove(d,f),s.classList.add(nv),n.classList.remove(nv,f,d),this._isSliding=!1,u(bE)};this._queueCallback(h,n,this._isAnimated()),l&&this.cycle()}_isAnimated(){return this._element.classList.contains(tie)}_getActive(){return _t.findOne(sie,this._element)}_getItems(){return _t.find(Fz,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return ca()?e===Ql?Pl:Qf:e===Ql?Qf:Pl}_orderToDirection(e){return ca()?e===Pl?Ql:yw:e===Pl?yw:Ql}static jQueryInterface(e){return this.each(function(){const r=Cb.getOrCreateInstance(this,e);if(typeof e=="number"){r.to(e);return}if(typeof e=="string"){if(r[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);r[e]()}})}}Ge.on(document,eie,cie,function(t){const e=_t.getElementFromSelector(this);if(!e||!e.classList.contains(jz))return;t.preventDefault();const r=Cb.getOrCreateInstance(e),n=this.getAttribute("data-bs-slide-to");if(n){r.to(n),r._maybeEnableCycle();return}if(uo.getDataAttribute(this,"slide")==="next"){r.next(),r._maybeEnableCycle();return}r.prev(),r._maybeEnableCycle()});Ge.on(window,Zne,()=>{const t=_t.find(lie);for(const e of t)Cb.getOrCreateInstance(e)});ha(Cb);const pie="collapse",yie="bs.collapse",Lb=`.${yie}`,mie=".data-api",gie=`show${Lb}`,_ie=`shown${Lb}`,bie=`hide${Lb}`,vie=`hidden${Lb}`,wie=`click${Lb}${mie}`,vE="show",ed="collapse",iv="collapsing",Sie="collapsed",Tie=`:scope .${ed} .${ed}`,Eie="collapse-horizontal",Aie="width",Oie="height",Rie=".collapse.show, .collapse.collapsing",RI='[data-bs-toggle="collapse"]',xie={parent:null,toggle:!0},Iie={parent:"(null|element)",toggle:"boolean"};class tb extends qa{constructor(e,r){super(e,r),this._isTransitioning=!1,this._triggerArray=[];const n=_t.find(RI);for(const a of n){const s=_t.getSelectorFromElement(a),o=_t.find(s).filter(u=>u===this._element);s!==null&&o.length&&this._triggerArray.push(a)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return xie}static get DefaultType(){return Iie}static get NAME(){return pie}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(Rie).filter(u=>u!==this._element).map(u=>tb.getOrCreateInstance(u,{toggle:!1}))),e.length&&e[0]._isTransitioning||Ge.trigger(this._element,gie).defaultPrevented)return;for(const u of e)u.hide();const n=this._getDimension();this._element.classList.remove(ed),this._element.classList.add(iv),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const a=()=>{this._isTransitioning=!1,this._element.classList.remove(iv),this._element.classList.add(ed,vE),this._element.style[n]="",Ge.trigger(this._element,_ie)},o=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(a,this._element,!0),this._element.style[n]=`${this._element[o]}px`}hide(){if(this._isTransitioning||!this._isShown()||Ge.trigger(this._element,bie).defaultPrevented)return;const r=this._getDimension();this._element.style[r]=`${this._element.getBoundingClientRect()[r]}px`,Nb(this._element),this._element.classList.add(iv),this._element.classList.remove(ed,vE);for(const a of this._triggerArray){const s=_t.getElementFromSelector(a);s&&!this._isShown(s)&&this._addAriaAndCollapsedClass([a],!1)}this._isTransitioning=!0;const n=()=>{this._isTransitioning=!1,this._element.classList.remove(iv),this._element.classList.add(ed),Ge.trigger(this._element,vie)};this._element.style[r]="",this._queueCallback(n,this._element,!0)}_isShown(e=this._element){return e.classList.contains(vE)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=cu(e.parent),e}_getDimension(){return this._element.classList.contains(Eie)?Aie:Oie}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(RI);for(const r of e){const n=_t.getElementFromSelector(r);n&&this._addAriaAndCollapsedClass([r],this._isShown(n))}}_getFirstLevelChildren(e){const r=_t.find(Tie,this._config.parent);return _t.find(e,this._config.parent).filter(n=>!r.includes(n))}_addAriaAndCollapsedClass(e,r){if(e.length)for(const n of e)n.classList.toggle(Sie,!r),n.setAttribute("aria-expanded",r)}static jQueryInterface(e){const r={};return typeof e=="string"&&/show|hide/.test(e)&&(r.toggle=!1),this.each(function(){const n=tb.getOrCreateInstance(this,r);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}Ge.on(document,wie,RI,function(t){(t.target.tagName==="A"||t.delegateTarget&&t.delegateTarget.tagName==="A")&&t.preventDefault();for(const e of _t.getMultipleElementsFromSelector(this))tb.getOrCreateInstance(e,{toggle:!1}).toggle()});ha(tb);const o6="dropdown",Pie="bs.dropdown",nl=`.${Pie}`,xN=".data-api",Nie="Escape",u6="Tab",Die="ArrowUp",c6="ArrowDown",Cie=2,Lie=`hide${nl}`,jie=`hidden${nl}`,Mie=`show${nl}`,Fie=`shown${nl}`,Bz=`click${nl}${xN}`,qz=`keydown${nl}${xN}`,Bie=`keyup${nl}${xN}`,zl="show",qie="dropup",$ie="dropend",Uie="dropstart",kie="dropup-center",Vie="dropdown-center",Ac='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Hie=`${Ac}.${zl}`,mw=".dropdown-menu",Qie=".navbar",zie=".navbar-nav",Gie=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Wie=ca()?"top-end":"top-start",Kie=ca()?"top-start":"top-end",Jie=ca()?"bottom-end":"bottom-start",Xie=ca()?"bottom-start":"bottom-end",Yie=ca()?"left-start":"right-start",Zie=ca()?"right-start":"left-start",eae="top",tae="bottom",rae={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},nae={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class us extends qa{constructor(e,r){super(e,r),this._popper=null,this._parent=this._element.parentNode,this._menu=_t.next(this._element,mw)[0]||_t.prev(this._element,mw)[0]||_t.findOne(mw,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return rae}static get DefaultType(){return nae}static get NAME(){return o6}toggle(){return this._isShown()?this.hide():this.show()}show(){if(lu(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!Ge.trigger(this._element,Mie,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(zie))for(const n of[].concat(...document.body.children))Ge.on(n,"mouseover",Xw);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(zl),this._element.classList.add(zl),Ge.trigger(this._element,Fie,e)}}hide(){if(lu(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!Ge.trigger(this._element,Lie,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const n of[].concat(...document.body.children))Ge.off(n,"mouseover",Xw);this._popper&&this._popper.destroy(),this._menu.classList.remove(zl),this._element.classList.remove(zl),this._element.setAttribute("aria-expanded","false"),uo.removeDataAttribute(this._menu,"popper"),Ge.trigger(this._element,jie,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!oo(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${o6.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof wz>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;this._config.reference==="parent"?e=this._parent:oo(this._config.reference)?e=cu(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const r=this._getPopperConfig();this._popper=AN(e,this._menu,r)}_isShown(){return this._menu.classList.contains(zl)}_getPlacement(){const e=this._parent;if(e.classList.contains($ie))return Yie;if(e.classList.contains(Uie))return Zie;if(e.classList.contains(kie))return eae;if(e.classList.contains(Vie))return tae;const r=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(qie)?r?Kie:Wie:r?Xie:Jie}_detectNavbar(){return this._element.closest(Qie)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(r=>Number.parseInt(r,10)):typeof e=="function"?r=>e(r,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(uo.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,..._i(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:r}){const n=_t.find(Gie,this._menu).filter(a=>nf(a));n.length&&ON(n,r,e===c6,!n.includes(r)).focus()}static jQueryInterface(e){return this.each(function(){const r=us.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}static clearMenus(e){if(e.button===Cie||e.type==="keyup"&&e.key!==u6)return;const r=_t.find(Hie);for(const n of r){const a=us.getInstance(n);if(!a||a._config.autoClose===!1)continue;const s=e.composedPath(),o=s.includes(a._menu);if(s.includes(a._element)||a._config.autoClose==="inside"&&!o||a._config.autoClose==="outside"&&o||a._menu.contains(e.target)&&(e.type==="keyup"&&e.key===u6||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const u={relatedTarget:a._element};e.type==="click"&&(u.clickEvent=e),a._completeHide(u)}}static dataApiKeydownHandler(e){const r=/input|textarea/i.test(e.target.tagName),n=e.key===Nie,a=[Die,c6].includes(e.key);if(!a&&!n||r&&!n)return;e.preventDefault();const s=this.matches(Ac)?this:_t.prev(this,Ac)[0]||_t.next(this,Ac)[0]||_t.findOne(Ac,e.delegateTarget.parentNode),o=us.getOrCreateInstance(s);if(a){e.stopPropagation(),o.show(),o._selectMenuItem(e);return}o._isShown()&&(e.stopPropagation(),o.hide(),s.focus())}}Ge.on(document,qz,Ac,us.dataApiKeydownHandler);Ge.on(document,qz,mw,us.dataApiKeydownHandler);Ge.on(document,Bz,us.clearMenus);Ge.on(document,Bie,us.clearMenus);Ge.on(document,Bz,Ac,function(t){t.preventDefault(),us.getOrCreateInstance(this).toggle()});ha(us);const $z="backdrop",iae="fade",l6="show",d6=`mousedown.bs.${$z}`,aae={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},sae={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Uz extends Db{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return aae}static get DefaultType(){return sae}static get NAME(){return $z}show(e){if(!this._config.isVisible){_i(e);return}this._append();const r=this._getElement();this._config.isAnimated&&Nb(r),r.classList.add(l6),this._emulateAnimation(()=>{_i(e)})}hide(e){if(!this._config.isVisible){_i(e);return}this._getElement().classList.remove(l6),this._emulateAnimation(()=>{this.dispose(),_i(e)})}dispose(){this._isAppended&&(Ge.off(this._element,d6),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(iae),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=cu(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),Ge.on(e,d6,()=>{_i(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){Oz(e,this._getElement(),this._config.isAnimated)}}const oae="focustrap",uae="bs.focustrap",Zw=`.${uae}`,cae=`focusin${Zw}`,lae=`keydown.tab${Zw}`,dae="Tab",fae="forward",f6="backward",hae={autofocus:!0,trapElement:null},pae={autofocus:"boolean",trapElement:"element"};class kz extends Db{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return hae}static get DefaultType(){return pae}static get NAME(){return oae}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),Ge.off(document,Zw),Ge.on(document,cae,e=>this._handleFocusin(e)),Ge.on(document,lae,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,Ge.off(document,Zw))}_handleFocusin(e){const{trapElement:r}=this._config;if(e.target===document||e.target===r||r.contains(e.target))return;const n=_t.focusableChildren(r);n.length===0?r.focus():this._lastTabNavDirection===f6?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){e.key===dae&&(this._lastTabNavDirection=e.shiftKey?f6:fae)}}const h6=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",p6=".sticky-top",av="padding-right",y6="margin-right";class xI{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,av,r=>r+e),this._setElementAttributes(h6,av,r=>r+e),this._setElementAttributes(p6,y6,r=>r-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,av),this._resetElementAttributes(h6,av),this._resetElementAttributes(p6,y6)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,r,n){const a=this.getWidth(),s=o=>{if(o!==this._element&&window.innerWidth>o.clientWidth+a)return;this._saveInitialAttribute(o,r);const u=window.getComputedStyle(o).getPropertyValue(r);o.style.setProperty(r,`${n(Number.parseFloat(u))}px`)};this._applyManipulationCallback(e,s)}_saveInitialAttribute(e,r){const n=e.style.getPropertyValue(r);n&&uo.setDataAttribute(e,r,n)}_resetElementAttributes(e,r){const n=a=>{const s=uo.getDataAttribute(a,r);if(s===null){a.style.removeProperty(r);return}uo.removeDataAttribute(a,r),a.style.setProperty(r,s)};this._applyManipulationCallback(e,n)}_applyManipulationCallback(e,r){if(oo(e)){r(e);return}for(const n of _t.find(e,this._element))r(n)}}const yae="modal",mae="bs.modal",la=`.${mae}`,gae=".data-api",_ae="Escape",bae=`hide${la}`,vae=`hidePrevented${la}`,Vz=`hidden${la}`,Hz=`show${la}`,wae=`shown${la}`,Sae=`resize${la}`,Tae=`click.dismiss${la}`,Eae=`mousedown.dismiss${la}`,Aae=`keydown.dismiss${la}`,Oae=`click${la}${gae}`,m6="modal-open",Rae="fade",g6="show",wE="modal-static",xae=".modal.show",Iae=".modal-dialog",Pae=".modal-body",Nae='[data-bs-toggle="modal"]',Dae={backdrop:!0,focus:!0,keyboard:!0},Cae={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class du extends qa{constructor(e,r){super(e,r),this._dialog=_t.findOne(Iae,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new xI,this._addEventListeners()}static get Default(){return Dae}static get DefaultType(){return Cae}static get NAME(){return yae}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||Ge.trigger(this._element,Hz,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(m6),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||Ge.trigger(this._element,bae).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(g6),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){Ge.off(window,la),Ge.off(this._dialog,la),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Uz({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new kz({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const r=_t.findOne(Pae,this._dialog);r&&(r.scrollTop=0),Nb(this._element),this._element.classList.add(g6);const n=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,Ge.trigger(this._element,wae,{relatedTarget:e})};this._queueCallback(n,this._dialog,this._isAnimated())}_addEventListeners(){Ge.on(this._element,Aae,e=>{if(e.key===_ae){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),Ge.on(window,Sae,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),Ge.on(this._element,Eae,e=>{Ge.one(this._element,Tae,r=>{if(!(this._element!==e.target||this._element!==r.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(m6),this._resetAdjustments(),this._scrollBar.reset(),Ge.trigger(this._element,Vz)})}_isAnimated(){return this._element.classList.contains(Rae)}_triggerBackdropTransition(){if(Ge.trigger(this._element,vae).defaultPrevented)return;const r=this._element.scrollHeight>document.documentElement.clientHeight,n=this._element.style.overflowY;n==="hidden"||this._element.classList.contains(wE)||(r||(this._element.style.overflowY="hidden"),this._element.classList.add(wE),this._queueCallback(()=>{this._element.classList.remove(wE),this._queueCallback(()=>{this._element.style.overflowY=n},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,r=this._scrollBar.getWidth(),n=r>0;if(n&&!e){const a=ca()?"paddingLeft":"paddingRight";this._element.style[a]=`${r}px`}if(!n&&e){const a=ca()?"paddingRight":"paddingLeft";this._element.style[a]=`${r}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,r){return this.each(function(){const n=du.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e](r)}})}}Ge.on(document,Oae,Nae,function(t){const e=_t.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),Ge.one(e,Hz,a=>{a.defaultPrevented||Ge.one(e,Vz,()=>{nf(this)&&this.focus()})});const r=_t.findOne(xae);r&&du.getInstance(r).hide(),du.getOrCreateInstance(e).toggle(this)});BS(du);ha(du);const Lae="offcanvas",jae="bs.offcanvas",So=`.${jae}`,Qz=".data-api",Mae=`load${So}${Qz}`,Fae="Escape",_6="show",b6="showing",v6="hiding",Bae="offcanvas-backdrop",zz=".offcanvas.show",qae=`show${So}`,$ae=`shown${So}`,Uae=`hide${So}`,w6=`hidePrevented${So}`,Gz=`hidden${So}`,kae=`resize${So}`,Vae=`click${So}${Qz}`,Hae=`keydown.dismiss${So}`,Qae='[data-bs-toggle="offcanvas"]',zae={backdrop:!0,keyboard:!0,scroll:!1},Gae={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class fu extends qa{constructor(e,r){super(e,r),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return zae}static get DefaultType(){return Gae}static get NAME(){return Lae}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||Ge.trigger(this._element,qae,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new xI().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(b6);const n=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(_6),this._element.classList.remove(b6),Ge.trigger(this._element,$ae,{relatedTarget:e})};this._queueCallback(n,this._element,!0)}hide(){if(!this._isShown||Ge.trigger(this._element,Uae).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(v6),this._backdrop.hide();const r=()=>{this._element.classList.remove(_6,v6),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new xI().reset(),Ge.trigger(this._element,Gz)};this._queueCallback(r,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){Ge.trigger(this._element,w6);return}this.hide()},r=!!this._config.backdrop;return new Uz({className:Bae,isVisible:r,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:r?e:null})}_initializeFocusTrap(){return new kz({trapElement:this._element})}_addEventListeners(){Ge.on(this._element,Hae,e=>{if(e.key===Fae){if(this._config.keyboard){this.hide();return}Ge.trigger(this._element,w6)}})}static jQueryInterface(e){return this.each(function(){const r=fu.getOrCreateInstance(this,e);if(typeof e=="string"){if(r[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);r[e](this)}})}}Ge.on(document,Vae,Qae,function(t){const e=_t.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),lu(this))return;Ge.one(e,Gz,()=>{nf(this)&&this.focus()});const r=_t.findOne(zz);r&&r!==e&&fu.getInstance(r).hide(),fu.getOrCreateInstance(e).toggle(this)});Ge.on(window,Mae,()=>{for(const t of _t.find(zz))fu.getOrCreateInstance(t).show()});Ge.on(window,kae,()=>{for(const t of _t.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(t).position!=="fixed"&&fu.getOrCreateInstance(t).hide()});BS(fu);ha(fu);const Wae=/^aria-[\w-]*$/i,Wz={"*":["class","dir","id","lang","role",Wae],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Kae=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Jae=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Xae=(t,e)=>{const r=t.nodeName.toLowerCase();return e.includes(r)?Kae.has(r)?!!Jae.test(t.nodeValue):!0:e.filter(n=>n instanceof RegExp).some(n=>n.test(r))};function Yae(t,e,r){if(!t.length)return t;if(r&&typeof r=="function")return r(t);const a=new window.DOMParser().parseFromString(t,"text/html"),s=[].concat(...a.body.querySelectorAll("*"));for(const o of s){const u=o.nodeName.toLowerCase();if(!Object.keys(e).includes(u)){o.remove();continue}const c=[].concat(...o.attributes),l=[].concat(e["*"]||[],e[u]||[]);for(const d of c)Xae(d,l)||o.removeAttribute(d.nodeName)}return a.body.innerHTML}const Zae="TemplateFactory",ese={allowList:Wz,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},tse={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},rse={entry:"(string|element|function|null)",selector:"(string|element)"};class nse extends Db{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return ese}static get DefaultType(){return tse}static get NAME(){return Zae}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[a,s]of Object.entries(this._config.content))this._setContent(e,s,a);const r=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&r.classList.add(...n.split(" ")),r}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[r,n]of Object.entries(e))super._typeCheckConfig({selector:r,entry:n},rse)}_setContent(e,r,n){const a=_t.findOne(n,e);if(a){if(r=this._resolvePossibleFunction(r),!r){a.remove();return}if(oo(r)){this._putElementInTemplate(cu(r),a);return}if(this._config.html){a.innerHTML=this._maybeSanitize(r);return}a.textContent=r}}_maybeSanitize(e){return this._config.sanitize?Yae(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return _i(e,[this])}_putElementInTemplate(e,r){if(this._config.html){r.innerHTML="",r.append(e);return}r.textContent=e.textContent}}const ise="tooltip",ase=new Set(["sanitize","allowList","sanitizeFn"]),SE="fade",sse="modal",sv="show",ose=".tooltip-inner",S6=`.${sse}`,T6="hide.bs.modal",zf="hover",TE="focus",use="click",cse="manual",lse="hide",dse="hidden",fse="show",hse="shown",pse="inserted",yse="click",mse="focusin",gse="focusout",_se="mouseenter",bse="mouseleave",vse={AUTO:"auto",TOP:"top",RIGHT:ca()?"left":"right",BOTTOM:"bottom",LEFT:ca()?"right":"left"},wse={allowList:Wz,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},Sse={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class sf extends qa{constructor(e,r){if(typeof wz>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,r),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return wse}static get DefaultType(){return Sse}static get NAME(){return ise}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),Ge.off(this._element.closest(S6),T6,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const e=Ge.trigger(this._element,this.constructor.eventName(fse)),n=(Ez(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!n)return;this._disposePopper();const a=this._getTipElement();this._element.setAttribute("aria-describedby",a.getAttribute("id"));const{container:s}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(s.append(a),Ge.trigger(this._element,this.constructor.eventName(pse))),this._popper=this._createPopper(a),a.classList.add(sv),"ontouchstart"in document.documentElement)for(const u of[].concat(...document.body.children))Ge.on(u,"mouseover",Xw);const o=()=>{Ge.trigger(this._element,this.constructor.eventName(hse)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(o,this.tip,this._isAnimated())}hide(){if(!this._isShown()||Ge.trigger(this._element,this.constructor.eventName(lse)).defaultPrevented)return;if(this._getTipElement().classList.remove(sv),"ontouchstart"in document.documentElement)for(const a of[].concat(...document.body.children))Ge.off(a,"mouseover",Xw);this._activeTrigger[use]=!1,this._activeTrigger[TE]=!1,this._activeTrigger[zf]=!1,this._isHovered=null;const n=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),Ge.trigger(this._element,this.constructor.eventName(dse)))};this._queueCallback(n,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const r=this._getTemplateFactory(e).toHtml();if(!r)return null;r.classList.remove(SE,sv),r.classList.add(`bs-${this.constructor.NAME}-auto`);const n=une(this.constructor.NAME).toString();return r.setAttribute("id",n),this._isAnimated()&&r.classList.add(SE),r}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new nse({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[ose]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(SE)}_isShown(){return this.tip&&this.tip.classList.contains(sv)}_createPopper(e){const r=_i(this._config.placement,[this,e,this._element]),n=vse[r.toUpperCase()];return AN(this._element,e,this._getPopperConfig(n))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(r=>Number.parseInt(r,10)):typeof e=="function"?r=>e(r,this._element):e}_resolvePossibleFunction(e){return _i(e,[this._element])}_getPopperConfig(e){const r={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:n=>{this._getTipElement().setAttribute("data-popper-placement",n.state.placement)}}]};return{...r,..._i(this._config.popperConfig,[r])}}_setListeners(){const e=this._config.trigger.split(" ");for(const r of e)if(r==="click")Ge.on(this._element,this.constructor.eventName(yse),this._config.selector,n=>{this._initializeOnDelegatedTarget(n).toggle()});else if(r!==cse){const n=r===zf?this.constructor.eventName(_se):this.constructor.eventName(mse),a=r===zf?this.constructor.eventName(bse):this.constructor.eventName(gse);Ge.on(this._element,n,this._config.selector,s=>{const o=this._initializeOnDelegatedTarget(s);o._activeTrigger[s.type==="focusin"?TE:zf]=!0,o._enter()}),Ge.on(this._element,a,this._config.selector,s=>{const o=this._initializeOnDelegatedTarget(s);o._activeTrigger[s.type==="focusout"?TE:zf]=o._element.contains(s.relatedTarget),o._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},Ge.on(this._element.closest(S6),T6,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,r){clearTimeout(this._timeout),this._timeout=setTimeout(e,r)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const r=uo.getDataAttributes(this._element);for(const n of Object.keys(r))ase.has(n)&&delete r[n];return e={...r,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:cu(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[r,n]of Object.entries(this._config))this.constructor.Default[r]!==n&&(e[r]=n);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const r=sf.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}}ha(sf);const Tse="popover",Ese=".popover-header",Ase=".popover-body",Ose={...sf.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},Rse={...sf.DefaultType,content:"(null|string|element|function)"};class IN extends sf{static get Default(){return Ose}static get DefaultType(){return Rse}static get NAME(){return Tse}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Ese]:this._getTitle(),[Ase]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const r=IN.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}}ha(IN);const xse="scrollspy",Ise="bs.scrollspy",PN=`.${Ise}`,Pse=".data-api",Nse=`activate${PN}`,E6=`click${PN}`,Dse=`load${PN}${Pse}`,Cse="dropdown-item",Nl="active",Lse='[data-bs-spy="scroll"]',EE="[href]",jse=".nav, .list-group",A6=".nav-link",Mse=".nav-item",Fse=".list-group-item",Bse=`${A6}, ${Mse} > ${A6}, ${Fse}`,qse=".dropdown",$se=".dropdown-toggle",Use={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},kse={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class US extends qa{constructor(e,r){super(e,r),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Use}static get DefaultType(){return kse}static get NAME(){return xse}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=cu(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(r=>Number.parseFloat(r))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(Ge.off(this._config.target,E6),Ge.on(this._config.target,E6,EE,e=>{const r=this._observableSections.get(e.target.hash);if(r){e.preventDefault();const n=this._rootElement||window,a=r.offsetTop-this._element.offsetTop;if(n.scrollTo){n.scrollTo({top:a,behavior:"smooth"});return}n.scrollTop=a}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(r=>this._observerCallback(r),e)}_observerCallback(e){const r=o=>this._targetLinks.get(`#${o.target.id}`),n=o=>{this._previousScrollData.visibleEntryTop=o.target.offsetTop,this._process(r(o))},a=(this._rootElement||document.documentElement).scrollTop,s=a>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=a;for(const o of e){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(r(o));continue}const u=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&u){if(n(o),!a)return;continue}!s&&!u&&n(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=_t.find(EE,this._config.target);for(const r of e){if(!r.hash||lu(r))continue;const n=_t.findOne(decodeURI(r.hash),this._element);nf(n)&&(this._targetLinks.set(decodeURI(r.hash),r),this._observableSections.set(r.hash,n))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(Nl),this._activateParents(e),Ge.trigger(this._element,Nse,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(Cse)){_t.findOne($se,e.closest(qse)).classList.add(Nl);return}for(const r of _t.parents(e,jse))for(const n of _t.prev(r,Bse))n.classList.add(Nl)}_clearActiveClass(e){e.classList.remove(Nl);const r=_t.find(`${EE}.${Nl}`,e);for(const n of r)n.classList.remove(Nl)}static jQueryInterface(e){return this.each(function(){const r=US.getOrCreateInstance(this,e);if(typeof e=="string"){if(r[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);r[e]()}})}}Ge.on(window,Dse,()=>{for(const t of _t.find(Lse))US.getOrCreateInstance(t)});ha(US);const Vse="tab",Hse="bs.tab",il=`.${Hse}`,Qse=`hide${il}`,zse=`hidden${il}`,Gse=`show${il}`,Wse=`shown${il}`,Kse=`click${il}`,Jse=`keydown${il}`,Xse=`load${il}`,Yse="ArrowLeft",O6="ArrowRight",Zse="ArrowUp",R6="ArrowDown",AE="Home",x6="End",Oc="active",I6="fade",OE="show",eoe="dropdown",Kz=".dropdown-toggle",toe=".dropdown-menu",RE=`:not(${Kz})`,roe='.list-group, .nav, [role="tablist"]',noe=".nav-item, .list-group-item",ioe=`.nav-link${RE}, .list-group-item${RE}, [role="tab"]${RE}`,Jz='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',xE=`${ioe}, ${Jz}`,aoe=`.${Oc}[data-bs-toggle="tab"], .${Oc}[data-bs-toggle="pill"], .${Oc}[data-bs-toggle="list"]`;class Dd extends qa{constructor(e){super(e),this._parent=this._element.closest(roe),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),Ge.on(this._element,Jse,r=>this._keydown(r)))}static get NAME(){return Vse}show(){const e=this._element;if(this._elemIsActive(e))return;const r=this._getActiveElem(),n=r?Ge.trigger(r,Qse,{relatedTarget:e}):null;Ge.trigger(e,Gse,{relatedTarget:r}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(r,e),this._activate(e,r))}_activate(e,r){if(!e)return;e.classList.add(Oc),this._activate(_t.getElementFromSelector(e));const n=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(OE);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),Ge.trigger(e,Wse,{relatedTarget:r})};this._queueCallback(n,e,e.classList.contains(I6))}_deactivate(e,r){if(!e)return;e.classList.remove(Oc),e.blur(),this._deactivate(_t.getElementFromSelector(e));const n=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(OE);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),Ge.trigger(e,zse,{relatedTarget:r})};this._queueCallback(n,e,e.classList.contains(I6))}_keydown(e){if(![Yse,O6,Zse,R6,AE,x6].includes(e.key))return;e.stopPropagation(),e.preventDefault();const r=this._getChildren().filter(a=>!lu(a));let n;if([AE,x6].includes(e.key))n=r[e.key===AE?0:r.length-1];else{const a=[O6,R6].includes(e.key);n=ON(r,e.target,a,!0)}n&&(n.focus({preventScroll:!0}),Dd.getOrCreateInstance(n).show())}_getChildren(){return _t.find(xE,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,r){this._setAttributeIfNotExists(e,"role","tablist");for(const n of r)this._setInitialAttributesOnChild(n)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const r=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute("aria-selected",r),n!==e&&this._setAttributeIfNotExists(n,"role","presentation"),r||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const r=_t.getElementFromSelector(e);r&&(this._setAttributeIfNotExists(r,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(r,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,r){const n=this._getOuterElement(e);if(!n.classList.contains(eoe))return;const a=(s,o)=>{const u=_t.findOne(s,n);u&&u.classList.toggle(o,r)};a(Kz,Oc),a(toe,OE),n.setAttribute("aria-expanded",r)}_setAttributeIfNotExists(e,r,n){e.hasAttribute(r)||e.setAttribute(r,n)}_elemIsActive(e){return e.classList.contains(Oc)}_getInnerElement(e){return e.matches(xE)?e:_t.findOne(xE,e)}_getOuterElement(e){return e.closest(noe)||e}static jQueryInterface(e){return this.each(function(){const r=Dd.getOrCreateInstance(this);if(typeof e=="string"){if(r[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);r[e]()}})}}Ge.on(document,Kse,Jz,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),!lu(this)&&Dd.getOrCreateInstance(this).show()});Ge.on(window,Xse,()=>{for(const t of _t.find(aoe))Dd.getOrCreateInstance(t)});ha(Dd);const soe="toast",ooe="bs.toast",Su=`.${ooe}`,uoe=`mouseover${Su}`,coe=`mouseout${Su}`,loe=`focusin${Su}`,doe=`focusout${Su}`,foe=`hide${Su}`,hoe=`hidden${Su}`,poe=`show${Su}`,yoe=`shown${Su}`,moe="fade",P6="hide",ov="show",uv="showing",goe={animation:"boolean",autohide:"boolean",delay:"number"},_oe={animation:!0,autohide:!0,delay:5e3};class kS extends qa{constructor(e,r){super(e,r),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return _oe}static get DefaultType(){return goe}static get NAME(){return soe}show(){if(Ge.trigger(this._element,poe).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(moe);const r=()=>{this._element.classList.remove(uv),Ge.trigger(this._element,yoe),this._maybeScheduleHide()};this._element.classList.remove(P6),Nb(this._element),this._element.classList.add(ov,uv),this._queueCallback(r,this._element,this._config.animation)}hide(){if(!this.isShown()||Ge.trigger(this._element,foe).defaultPrevented)return;const r=()=>{this._element.classList.add(P6),this._element.classList.remove(uv,ov),Ge.trigger(this._element,hoe)};this._element.classList.add(uv),this._queueCallback(r,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(ov),super.dispose()}isShown(){return this._element.classList.contains(ov)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,r){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=r;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=r;break}}if(r){this._clearTimeout();return}const n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){Ge.on(this._element,uoe,e=>this._onInteraction(e,!0)),Ge.on(this._element,coe,e=>this._onInteraction(e,!1)),Ge.on(this._element,loe,e=>this._onInteraction(e,!0)),Ge.on(this._element,doe,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const r=kS.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e](this)}})}}BS(kS);ha(kS);const NN=Symbol.for("yaml.alias"),II=Symbol.for("yaml.document"),nu=Symbol.for("yaml.map"),Xz=Symbol.for("yaml.pair"),mo=Symbol.for("yaml.scalar"),of=Symbol.for("yaml.seq"),da=Symbol.for("yaml.node.type"),uf=t=>!!t&&typeof t=="object"&&t[da]===NN,VS=t=>!!t&&typeof t=="object"&&t[da]===II,jb=t=>!!t&&typeof t=="object"&&t[da]===nu,Jr=t=>!!t&&typeof t=="object"&&t[da]===Xz,xr=t=>!!t&&typeof t=="object"&&t[da]===mo,Mb=t=>!!t&&typeof t=="object"&&t[da]===of;function Kr(t){if(t&&typeof t=="object")switch(t[da]){case nu:case of:return!0}return!1}function tn(t){if(t&&typeof t=="object")switch(t[da]){case NN:case nu:case mo:case of:return!0}return!1}const boe=t=>(xr(t)||Kr(t))&&!!t.anchor,oc=Symbol("break visit"),voe=Symbol("skip children"),q_=Symbol("remove node");function Vc(t,e){const r=woe(e);VS(t)?td(null,t.contents,r,Object.freeze([t]))===q_&&(t.contents=null):td(null,t,r,Object.freeze([]))}Vc.BREAK=oc;Vc.SKIP=voe;Vc.REMOVE=q_;function td(t,e,r,n){const a=Soe(t,e,r,n);if(tn(a)||Jr(a))return Toe(t,n,a),td(t,a,r,n);if(typeof a!="symbol"){if(Kr(e)){n=Object.freeze(n.concat(e));for(let s=0;st.replace(/[!,[\]{}]/g,e=>Eoe[e]);class Xn{constructor(e,r){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},Xn.defaultYaml,e),this.tags=Object.assign({},Xn.defaultTags,r)}clone(){const e=new Xn(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new Xn(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:Xn.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},Xn.defaultTags);break}return e}add(e,r){this.atNextDocument&&(this.yaml={explicit:Xn.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},Xn.defaultTags),this.atNextDocument=!1);const n=e.trim().split(/[ \t]+/),a=n.shift();switch(a){case"%TAG":{if(n.length!==2&&(r(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;const[s,o]=n;return this.tags[s]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,n.length!==1)return r(0,"%YAML directive should contain exactly one part"),!1;const[s]=n;if(s==="1.1"||s==="1.2")return this.yaml.version=s,!0;{const o=/^\d+\.\d+$/.test(s);return r(6,`Unsupported YAML version ${s}`,o),!1}}default:return r(0,`Unknown directive ${a}`,!0),!1}}tagName(e,r){if(e==="!")return"!";if(e[0]!=="!")return r(`Not a valid tag: ${e}`),null;if(e[1]==="<"){const o=e.slice(2,-1);return o==="!"||o==="!!"?(r(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&r("Verbatim tags must end with a >"),o)}const[,n,a]=e.match(/^(.*!)([^!]*)$/s);a||r(`The ${e} tag has no suffix`);const s=this.tags[n];if(s)try{return s+decodeURIComponent(a)}catch(o){return r(String(o)),null}return n==="!"?e:(r(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[r,n]of Object.entries(this.tags))if(e.startsWith(n))return r+Aoe(e.substring(n.length));return e[0]==="!"?e:`!<${e}>`}toString(e){const r=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags);let a;if(e&&n.length>0&&tn(e.contents)){const s={};Vc(e.contents,(o,u)=>{tn(u)&&u.tag&&(s[u.tag]=!0)}),a=Object.keys(s)}else a=[];for(const[s,o]of n)s==="!!"&&o==="tag:yaml.org,2002:"||(!e||a.some(u=>u.startsWith(o)))&&r.push(`%TAG ${s} ${o}`);return r.join(` +`)}}Xn.defaultYaml={explicit:!1,version:"1.2"};Xn.defaultTags={"!!":"tag:yaml.org,2002:"};function Yz(t){if(/[\x00-\x19\s,[\]{}]/.test(t)){const r=`Anchor must not contain whitespace or control characters: ${JSON.stringify(t)}`;throw new Error(r)}return!0}function Zz(t){const e=new Set;return Vc(t,{Value(r,n){n.anchor&&e.add(n.anchor)}}),e}function eG(t,e){for(let r=1;;++r){const n=`${t}${r}`;if(!e.has(n))return n}}function Ooe(t,e){const r=[],n=new Map;let a=null;return{onAnchor:s=>{r.push(s),a||(a=Zz(t));const o=eG(e,a);return a.add(o),o},setAnchors:()=>{for(const s of r){const o=n.get(s);if(typeof o=="object"&&o.anchor&&(xr(o.node)||Kr(o.node)))o.node.anchor=o.anchor;else{const u=new Error("Failed to resolve repeated object (this should not happen)");throw u.source=s,u}}},sourceObjects:n}}function rd(t,e,r,n){if(n&&typeof n=="object")if(Array.isArray(n))for(let a=0,s=n.length;aaa(n,String(a),r));if(t&&typeof t.toJSON=="function"){if(!r||!boe(t))return t.toJSON(e,r);const n={aliasCount:0,count:1,res:void 0};r.anchors.set(t,n),r.onCreate=s=>{n.res=s,delete r.onCreate};const a=t.toJSON(e,r);return r.onCreate&&r.onCreate(a),a}return typeof t=="bigint"&&!(r!=null&&r.keep)?Number(t):t}class DN{constructor(e){Object.defineProperty(this,da,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:r,maxAliasCount:n,onAnchor:a,reviver:s}={}){if(!VS(e))throw new TypeError("A document argument is required");const o={anchors:new Map,doc:e,keep:!0,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},u=aa(this,"",o);if(typeof a=="function")for(const{count:c,res:l}of o.anchors.values())a(l,c);return typeof s=="function"?rd(s,{"":u},"",u):u}}class CN extends DN{constructor(e){super(NN),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let r;return Vc(e,{Node:(n,a)=>{if(a===this)return Vc.BREAK;a.anchor===this.source&&(r=a)}}),r}toJSON(e,r){if(!r)return{source:this.source};const{anchors:n,doc:a,maxAliasCount:s}=r,o=this.resolve(a);if(!o){const c=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(c)}let u=n.get(o);if(u||(aa(o,null,r),u=n.get(o)),!u||u.res===void 0){const c="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(c)}if(s>=0&&(u.count+=1,u.aliasCount===0&&(u.aliasCount=gw(a,o,n)),u.count*u.aliasCount>s)){const c="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(c)}return u.res}toString(e,r,n){const a=`*${this.source}`;if(e){if(Yz(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const s=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(s)}if(e.implicitKey)return`${a} `}return a}}function gw(t,e,r){if(uf(e)){const n=e.resolve(t),a=r&&n&&r.get(n);return a?a.count*a.aliasCount:0}else if(Kr(e)){let n=0;for(const a of e.items){const s=gw(t,a,r);s>n&&(n=s)}return n}else if(Jr(e)){const n=gw(t,e.key,r),a=gw(t,e.value,r);return Math.max(n,a)}return 1}const tG=t=>!t||typeof t!="function"&&typeof t!="object";class jt extends DN{constructor(e){super(mo),this.value=e}toJSON(e,r){return r!=null&&r.keep?this.value:aa(this.value,e,r)}toString(){return String(this.value)}}jt.BLOCK_FOLDED="BLOCK_FOLDED";jt.BLOCK_LITERAL="BLOCK_LITERAL";jt.PLAIN="PLAIN";jt.QUOTE_DOUBLE="QUOTE_DOUBLE";jt.QUOTE_SINGLE="QUOTE_SINGLE";const Roe="tag:yaml.org,2002:";function xoe(t,e,r){if(e){const n=r.filter(s=>s.tag===e),a=n.find(s=>!s.format)??n[0];if(!a)throw new Error(`Tag ${e} not found`);return a}return r.find(n=>{var a;return((a=n.identify)==null?void 0:a.call(n,t))&&!n.format})}function rb(t,e,r){var f,h,p;if(VS(t)&&(t=t.contents),tn(t))return t;if(Jr(t)){const m=(h=(f=r.schema[nu]).createNode)==null?void 0:h.call(f,r.schema,null,r);return m.items.push(t),m}(t instanceof String||t instanceof Number||t instanceof Boolean||typeof BigInt<"u"&&t instanceof BigInt)&&(t=t.valueOf());const{aliasDuplicateObjects:n,onAnchor:a,onTagObj:s,schema:o,sourceObjects:u}=r;let c;if(n&&t&&typeof t=="object"){if(c=u.get(t),c)return c.anchor||(c.anchor=a(t)),new CN(c.anchor);c={anchor:null,node:null},u.set(t,c)}e!=null&&e.startsWith("!!")&&(e=Roe+e.slice(2));let l=xoe(t,e,o.tags);if(!l){if(t&&typeof t.toJSON=="function"&&(t=t.toJSON()),!t||typeof t!="object"){const m=new jt(t);return c&&(c.node=m),m}l=t instanceof Map?o[nu]:Symbol.iterator in Object(t)?o[of]:o[nu]}s&&(s(l),delete r.onTagObj);const d=l!=null&&l.createNode?l.createNode(r.schema,t,r):typeof((p=l==null?void 0:l.nodeClass)==null?void 0:p.from)=="function"?l.nodeClass.from(r.schema,t,r):new jt(t);return e?d.tag=e:l.default||(d.tag=l.tag),c&&(c.node=d),d}function eS(t,e,r){let n=r;for(let a=e.length-1;a>=0;--a){const s=e[a];if(typeof s=="number"&&Number.isInteger(s)&&s>=0){const o=[];o[s]=n,n=o}else n=new Map([[s,n]])}return rb(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:t,sourceObjects:new Map})}const g_=t=>t==null||typeof t=="object"&&!!t[Symbol.iterator]().next().done;let rG=class extends DN{constructor(e,r){super(e),Object.defineProperty(this,"schema",{value:r,configurable:!0,enumerable:!1,writable:!0})}clone(e){const r=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(r.schema=e),r.items=r.items.map(n=>tn(n)||Jr(n)?n.clone(e):n),this.range&&(r.range=this.range.slice()),r}addIn(e,r){if(g_(e))this.add(r);else{const[n,...a]=e,s=this.get(n,!0);if(Kr(s))s.addIn(a,r);else if(s===void 0&&this.schema)this.set(n,eS(this.schema,a,r));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${a}`)}}deleteIn(e){const[r,...n]=e;if(n.length===0)return this.delete(r);const a=this.get(r,!0);if(Kr(a))return a.deleteIn(n);throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}getIn(e,r){const[n,...a]=e,s=this.get(n,!0);return a.length===0?!r&&xr(s)?s.value:s:Kr(s)?s.getIn(a,r):void 0}hasAllNullValues(e){return this.items.every(r=>{if(!Jr(r))return!1;const n=r.value;return n==null||e&&xr(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){const[r,...n]=e;if(n.length===0)return this.has(r);const a=this.get(r,!0);return Kr(a)?a.hasIn(n):!1}setIn(e,r){const[n,...a]=e;if(a.length===0)this.set(n,r);else{const s=this.get(n,!0);if(Kr(s))s.setIn(a,r);else if(s===void 0&&this.schema)this.set(n,eS(this.schema,a,r));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${a}`)}}};const Ioe=t=>t.replace(/^(?!$)(?: $)?/gm,"#");function ro(t,e){return/^\n+$/.test(t)?t.substring(1):e?t.replace(/^(?! *$)/gm,e):t}const Rc=(t,e,r)=>t.endsWith(` `)?ro(r,e):r.includes(` `)?` -`+ro(r,e):(t.endsWith(" ")?"":" ")+r,nG="flow",NI="block",_w="quoted";function QS(t,e,r="flow",{indentAtStart:n,lineWidth:a=80,minContentWidth:s=20,onFold:o,onOverflow:u}={}){if(!a||a<0)return t;aa-Math.max(2,s)?l.push(0):f=a-n);let h,p,m=!1,y=-1,g=-1,b=-1;r===NI&&(y=N6(t,y,e.length),y!==-1&&(f=y+c));for(let _;_=t[y+=1];){if(r===_w&&_==="\\"){switch(g=y,t[y+1]){case"x":y+=3;break;case"u":y+=5;break;case"U":y+=9;break;default:y+=1}b=y}if(_===` -`)r===NI&&(y=N6(t,y,e.length)),f=y+e.length+c,h=void 0;else{if(_===" "&&p&&p!==" "&&p!==` +`+ro(r,e):(t.endsWith(" ")?"":" ")+r,nG="flow",PI="block",_w="quoted";function HS(t,e,r="flow",{indentAtStart:n,lineWidth:a=80,minContentWidth:s=20,onFold:o,onOverflow:u}={}){if(!a||a<0)return t;aa-Math.max(2,s)?l.push(0):f=a-n);let h,p,m=!1,y=-1,g=-1,b=-1;r===PI&&(y=N6(t,y,e.length),y!==-1&&(f=y+c));for(let _;_=t[y+=1];){if(r===_w&&_==="\\"){switch(g=y,t[y+1]){case"x":y+=3;break;case"u":y+=5;break;case"U":y+=9;break;default:y+=1}b=y}if(_===` +`)r===PI&&(y=N6(t,y,e.length)),f=y+e.length+c,h=void 0;else{if(_===" "&&p&&p!==" "&&p!==` `&&p!==" "){const w=t[y+1];w&&w!==" "&&w!==` `&&w!==" "&&(h=y)}if(y>=f)if(h)l.push(h),f=h+c,h=void 0;else if(r===_w){for(;p===" "||p===" ";)p=_,_=t[y+=1],m=!0;const w=y>b+1?y-2:g-1;if(d[w])return t;l.push(w),d[w]=!0,f=w+c,h=void 0}else m=!0}p=_}if(m&&u&&u(),l.length===0)return t;o&&o();let v=t.slice(0,l[0]);for(let _=0;_({indentAtStart:e?t.indent.length:t.indentAtStart,lineWidth:t.options.lineWidth,minContentWidth:t.options.minContentWidth}),GS=t=>/^(%|---|\.\.\.)/m.test(t);function Noe(t,e,r){if(!e||e<0)return!1;const n=e-r,a=t.length;if(a<=n)return!1;for(let s=0,o=0;sn)return!0;if(o=s+1,a-o<=n)return!1}return!0}function $_(t,e){const r=JSON.stringify(t);if(e.options.doubleQuotedAsJSON)return r;const{implicitKey:n}=e,a=e.options.doubleQuotedMinMultiLineLength,s=e.indent||(GS(t)?" ":"");let o="",u=0;for(let c=0,l=r[c];l;l=r[++c])if(l===" "&&r[c+1]==="\\"&&r[c+2]==="n"&&(o+=r.slice(u,c)+"\\ ",c+=1,u=c,l="\\"),l==="\\")switch(r[c+1]){case"u":{o+=r.slice(u,c);const d=r.substr(c+2,4);switch(d){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:d.substr(0,2)==="00"?o+="\\x"+d.substr(2):o+=r.substr(c,6)}c+=5,u=c+1}break;case"n":if(n||r[c+2]==='"'||r.length({indentAtStart:e?t.indent.length:t.indentAtStart,lineWidth:t.options.lineWidth,minContentWidth:t.options.minContentWidth}),zS=t=>/^(%|---|\.\.\.)/m.test(t);function Poe(t,e,r){if(!e||e<0)return!1;const n=e-r,a=t.length;if(a<=n)return!1;for(let s=0,o=0;sn)return!0;if(o=s+1,a-o<=n)return!1}return!0}function $_(t,e){const r=JSON.stringify(t);if(e.options.doubleQuotedAsJSON)return r;const{implicitKey:n}=e,a=e.options.doubleQuotedMinMultiLineLength,s=e.indent||(zS(t)?" ":"");let o="",u=0;for(let c=0,l=r[c];l;l=r[++c])if(l===" "&&r[c+1]==="\\"&&r[c+2]==="n"&&(o+=r.slice(u,c)+"\\ ",c+=1,u=c,l="\\"),l==="\\")switch(r[c+1]){case"u":{o+=r.slice(u,c);const d=r.substr(c+2,4);switch(d){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:d.substr(0,2)==="00"?o+="\\x"+d.substr(2):o+=r.substr(c,6)}c+=5,u=c+1}break;case"n":if(n||r[c+2]==='"'||r.length `;let f,h;for(h=r.length;h>0;--h){const O=r[h-1];if(O!==` `&&O!==" "&&O!==" ")break}let p=r.substring(h);const m=p.indexOf(` `);m===-1?f="-":r===p||m!==p.length-1?(f="+",s&&s()):f="",p&&(r=r.slice(0,-p.length),p[p.length-1]===` -`&&(p=p.slice(0,-1)),p=p.replace(CI,`$&${l}`));let y=!1,g,b=-1;for(g=0;g")+(y?l?"2":"1":"")+f;if(t&&(w+=" "+u(t.replace(/ ?[\r\n]+/g," ")),a&&a()),d)return r=r.replace(/\n+/g,`$&${l}`),`${w} ${l}${v}${r}${p}`;r=r.replace(/\n+/g,` -$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${l}`);const E=QS(`${v}${r}${p}`,l,NI,zS(n,!0));return`${w} -${l}${E}`}function Doe(t,e,r,n){const{type:a,value:s}=t,{actualString:o,implicitKey:u,indent:c,indentStep:l,inFlow:d}=e;if(u&&s.includes(` -`)||d&&/[[\]{},]/.test(s))return id(s,e);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return u||d||!s.includes(` -`)?id(s,e):bw(t,e,r,n);if(!u&&!d&&a!==jt.PLAIN&&s.includes(` -`))return bw(t,e,r,n);if(GS(s)){if(c==="")return e.forceBlockIndent=!0,bw(t,e,r,n);if(u&&c===l)return id(s,e)}const f=s.replace(/\n+/g,`$& -${c}`);if(o){const h=y=>{var g;return y.default&&y.tag!=="tag:yaml.org,2002:str"&&((g=y.test)==null?void 0:g.test(f))},{compat:p,tags:m}=e.doc.schema;if(m.some(h)||p!=null&&p.some(h))return id(s,e)}return u?f:QS(f,c,nG,zS(e,!1))}function LN(t,e,r,n){const{implicitKey:a,inFlow:s}=e,o=typeof t.value=="string"?t:Object.assign({},t,{value:String(t.value)});let{type:u}=t;u!==jt.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(u=jt.QUOTE_DOUBLE);const c=d=>{switch(d){case jt.BLOCK_FOLDED:case jt.BLOCK_LITERAL:return a||s?id(o.value,e):bw(o,e,r,n);case jt.QUOTE_DOUBLE:return $_(o.value,e);case jt.QUOTE_SINGLE:return DI(o.value,e);case jt.PLAIN:return Doe(o,e,r,n);default:return null}};let l=c(u);if(l===null){const{defaultKeyType:d,defaultStringType:f}=e.options,h=a&&d||f;if(l=c(h),l===null)throw new Error(`Unsupported default string type ${h}`)}return l}function iG(t,e){const r=Object.assign({blockQuote:!0,commentString:Poe,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},t.schema.toStringOptions,e);let n;switch(r.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:t,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:typeof r.indent=="number"?" ".repeat(r.indent):" ",inFlow:n,options:r}}function Coe(t,e){var a;if(e.tag){const s=t.filter(o=>o.tag===e.tag);if(s.length>0)return s.find(o=>o.format===e.format)??s[0]}let r,n;if(xr(e)){n=e.value;const s=t.filter(o=>{var u;return(u=o.identify)==null?void 0:u.call(o,n)});r=s.find(o=>o.format===e.format)??s.find(o=>!o.format)}else n=e,r=t.find(s=>s.nodeClass&&n instanceof s.nodeClass);if(!r){const s=((a=n==null?void 0:n.constructor)==null?void 0:a.name)??typeof n;throw new Error(`Tag not resolved for ${s} value`)}return r}function Loe(t,e,{anchors:r,doc:n}){if(!n.directives)return"";const a=[],s=(xr(t)||Kr(t))&&t.anchor;s&&Yz(s)&&(r.add(s),a.push(`&${s}`));const o=t.tag?t.tag:e.default?null:e.tag;return o&&a.push(n.directives.tagString(o)),a.join(" ")}function Ld(t,e,r,n){var c;if(Jr(t))return t.toString(e,r,n);if(uf(t)){if(e.doc.directives)return t.toString(e);if((c=e.resolvedAliases)!=null&&c.has(t))throw new TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(t):e.resolvedAliases=new Set([t]),t=t.resolve(e.doc)}let a;const s=tn(t)?t:e.doc.createNode(t,{onTagObj:l=>a=l});a||(a=Coe(e.doc.schema.tags,s));const o=Loe(s,a,e);o.length>0&&(e.indentAtStart=(e.indentAtStart??0)+o.length+1);const u=typeof a.stringify=="function"?a.stringify(s,e,r,n):xr(s)?LN(s,e,r,n):s.toString(e,r,n);return o?xr(s)||u[0]==="{"||u[0]==="["?`${o} ${u}`:`${o} -${e.indent}${u}`:u}function joe({key:t,value:e},r,n,a){const{allNullValues:s,doc:o,indent:u,indentStep:c,options:{commentString:l,indentSeq:d,simpleKeys:f}}=r;let h=tn(t)&&t.comment||null;if(f){if(h)throw new Error("With simple keys, key nodes cannot have comments");if(Kr(t)||!tn(t)&&typeof t=="object"){const L="With simple keys, collection cannot be used as a key value";throw new Error(L)}}let p=!f&&(!t||h&&e==null&&!r.inFlow||Kr(t)||(xr(t)?t.type===jt.BLOCK_FOLDED||t.type===jt.BLOCK_LITERAL:typeof t=="object"));r=Object.assign({},r,{allNullValues:!1,implicitKey:!p&&(f||!s),indent:u+c});let m=!1,y=!1,g=Ld(t,r,()=>m=!0,()=>y=!0);if(!p&&!r.inFlow&&g.length>1024){if(f)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");p=!0}if(r.inFlow){if(s||e==null)return m&&n&&n(),g===""?"?":p?`? ${g}`:g}else if(s&&!f||e==null&&p)return g=`? ${g}`,h&&!m?g+=Rc(g,r.indent,l(h)):y&&a&&a(),g;m&&(h=null),p?(h&&(g+=Rc(g,r.indent,l(h))),g=`? ${g} -${u}:`):(g=`${g}:`,h&&(g+=Rc(g,r.indent,l(h))));let b,v,_;tn(e)?(b=!!e.spaceBefore,v=e.commentBefore,_=e.comment):(b=!1,v=null,_=null,e&&typeof e=="object"&&(e=o.createNode(e))),r.implicitKey=!1,!p&&!h&&xr(e)&&(r.indentAtStart=g.length+1),y=!1,!d&&c.length>=2&&!r.inFlow&&!p&&Mb(e)&&!e.flow&&!e.tag&&!e.anchor&&(r.indent=r.indent.substring(2));let w=!1;const E=Ld(e,r,()=>w=!0,()=>y=!0);let O=" ";if(h||b||v){if(O=b?` +$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${l}`);const E=HS(`${v}${r}${p}`,l,PI,QS(n,!0));return`${w} +${l}${E}`}function Noe(t,e,r,n){const{type:a,value:s}=t,{actualString:o,implicitKey:u,indent:c,indentStep:l,inFlow:d}=e;if(u&&s.includes(` +`)||d&&/[[\]{},]/.test(s))return nd(s,e);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return u||d||!s.includes(` +`)?nd(s,e):bw(t,e,r,n);if(!u&&!d&&a!==jt.PLAIN&&s.includes(` +`))return bw(t,e,r,n);if(zS(s)){if(c==="")return e.forceBlockIndent=!0,bw(t,e,r,n);if(u&&c===l)return nd(s,e)}const f=s.replace(/\n+/g,`$& +${c}`);if(o){const h=y=>{var g;return y.default&&y.tag!=="tag:yaml.org,2002:str"&&((g=y.test)==null?void 0:g.test(f))},{compat:p,tags:m}=e.doc.schema;if(m.some(h)||p!=null&&p.some(h))return nd(s,e)}return u?f:HS(f,c,nG,QS(e,!1))}function LN(t,e,r,n){const{implicitKey:a,inFlow:s}=e,o=typeof t.value=="string"?t:Object.assign({},t,{value:String(t.value)});let{type:u}=t;u!==jt.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(u=jt.QUOTE_DOUBLE);const c=d=>{switch(d){case jt.BLOCK_FOLDED:case jt.BLOCK_LITERAL:return a||s?nd(o.value,e):bw(o,e,r,n);case jt.QUOTE_DOUBLE:return $_(o.value,e);case jt.QUOTE_SINGLE:return NI(o.value,e);case jt.PLAIN:return Noe(o,e,r,n);default:return null}};let l=c(u);if(l===null){const{defaultKeyType:d,defaultStringType:f}=e.options,h=a&&d||f;if(l=c(h),l===null)throw new Error(`Unsupported default string type ${h}`)}return l}function iG(t,e){const r=Object.assign({blockQuote:!0,commentString:Ioe,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},t.schema.toStringOptions,e);let n;switch(r.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:t,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:typeof r.indent=="number"?" ".repeat(r.indent):" ",inFlow:n,options:r}}function Doe(t,e){var a;if(e.tag){const s=t.filter(o=>o.tag===e.tag);if(s.length>0)return s.find(o=>o.format===e.format)??s[0]}let r,n;if(xr(e)){n=e.value;const s=t.filter(o=>{var u;return(u=o.identify)==null?void 0:u.call(o,n)});r=s.find(o=>o.format===e.format)??s.find(o=>!o.format)}else n=e,r=t.find(s=>s.nodeClass&&n instanceof s.nodeClass);if(!r){const s=((a=n==null?void 0:n.constructor)==null?void 0:a.name)??typeof n;throw new Error(`Tag not resolved for ${s} value`)}return r}function Coe(t,e,{anchors:r,doc:n}){if(!n.directives)return"";const a=[],s=(xr(t)||Kr(t))&&t.anchor;s&&Yz(s)&&(r.add(s),a.push(`&${s}`));const o=t.tag?t.tag:e.default?null:e.tag;return o&&a.push(n.directives.tagString(o)),a.join(" ")}function Cd(t,e,r,n){var c;if(Jr(t))return t.toString(e,r,n);if(uf(t)){if(e.doc.directives)return t.toString(e);if((c=e.resolvedAliases)!=null&&c.has(t))throw new TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(t):e.resolvedAliases=new Set([t]),t=t.resolve(e.doc)}let a;const s=tn(t)?t:e.doc.createNode(t,{onTagObj:l=>a=l});a||(a=Doe(e.doc.schema.tags,s));const o=Coe(s,a,e);o.length>0&&(e.indentAtStart=(e.indentAtStart??0)+o.length+1);const u=typeof a.stringify=="function"?a.stringify(s,e,r,n):xr(s)?LN(s,e,r,n):s.toString(e,r,n);return o?xr(s)||u[0]==="{"||u[0]==="["?`${o} ${u}`:`${o} +${e.indent}${u}`:u}function Loe({key:t,value:e},r,n,a){const{allNullValues:s,doc:o,indent:u,indentStep:c,options:{commentString:l,indentSeq:d,simpleKeys:f}}=r;let h=tn(t)&&t.comment||null;if(f){if(h)throw new Error("With simple keys, key nodes cannot have comments");if(Kr(t)||!tn(t)&&typeof t=="object"){const L="With simple keys, collection cannot be used as a key value";throw new Error(L)}}let p=!f&&(!t||h&&e==null&&!r.inFlow||Kr(t)||(xr(t)?t.type===jt.BLOCK_FOLDED||t.type===jt.BLOCK_LITERAL:typeof t=="object"));r=Object.assign({},r,{allNullValues:!1,implicitKey:!p&&(f||!s),indent:u+c});let m=!1,y=!1,g=Cd(t,r,()=>m=!0,()=>y=!0);if(!p&&!r.inFlow&&g.length>1024){if(f)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");p=!0}if(r.inFlow){if(s||e==null)return m&&n&&n(),g===""?"?":p?`? ${g}`:g}else if(s&&!f||e==null&&p)return g=`? ${g}`,h&&!m?g+=Rc(g,r.indent,l(h)):y&&a&&a(),g;m&&(h=null),p?(h&&(g+=Rc(g,r.indent,l(h))),g=`? ${g} +${u}:`):(g=`${g}:`,h&&(g+=Rc(g,r.indent,l(h))));let b,v,_;tn(e)?(b=!!e.spaceBefore,v=e.commentBefore,_=e.comment):(b=!1,v=null,_=null,e&&typeof e=="object"&&(e=o.createNode(e))),r.implicitKey=!1,!p&&!h&&xr(e)&&(r.indentAtStart=g.length+1),y=!1,!d&&c.length>=2&&!r.inFlow&&!p&&Mb(e)&&!e.flow&&!e.tag&&!e.anchor&&(r.indent=r.indent.substring(2));let w=!1;const E=Cd(e,r,()=>w=!0,()=>y=!0);let O=" ";if(h||b||v){if(O=b?` `:"",v){const L=l(v);O+=` ${ro(L,r.indent)}`}E===""&&!r.inFlow?O===` `&&(O=` @@ -46,37 +46,37 @@ ${ro(L,r.indent)}`}E===""&&!r.inFlow?O===` ${r.indent}`}else if(!p&&Kr(e)){const L=E[0],F=E.indexOf(` `),x=F!==-1,P=r.inFlow??e.flow??e.items.length===0;if(x||!P){let j=!1;if(x&&(L==="&"||L==="!")){let N=E.indexOf(" ");L==="&"&&N!==-1&&N1)for(var r=1;rt===D6||xr(t)&&t.value===D6&&(!t.type||t.type===jt.PLAIN);function PE(t,e,r){const n=t&&uf(r)?r.resolve(t.doc):r;if(!jb(n))throw new Error("Merge sources must be maps or map aliases");const a=n.toJSON(null,t,Map);for(const[s,o]of a)e instanceof Map?e.has(s)||e.set(s,o):e instanceof Set?e.add(s):Object.prototype.hasOwnProperty.call(e,s)||Object.defineProperty(e,s,{value:o,writable:!0,enumerable:!0,configurable:!0});return e}function Uoe(t,e,r){if(e===null)return"";if(typeof e!="object")return String(e);if(tn(t)&&(r!=null&&r.doc)){const n=iG(r.doc,{});n.anchors=new Set;for(const s of r.anchors.keys())n.anchors.add(s.anchor);n.inFlow=!0,n.inStringifyKey=!0;const a=t.toString(n);if(!r.mapKeyWarned){let s=JSON.stringify(a);s.length>40&&(s=s.substring(0,36)+'..."'),cG(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${s}. Set mapAsMap: true to use object keys.`),r.mapKeyWarned=!0}return a}return JSON.stringify(e)}function jN(t,e,r){const n=rb(t,void 0,r),a=rb(e,void 0,r);return new ni(n,a)}class ni{constructor(e,r=null){Object.defineProperty(this,da,{value:Xz}),this.key=e,this.value=r}clone(e){let{key:r,value:n}=this;return tn(r)&&(r=r.clone(e)),tn(n)&&(n=n.clone(e)),new ni(r,n)}toJSON(e,r){const n=r!=null&&r.mapAsMap?new Map:{};return lG(r,n,this)}toString(e,r,n){return e!=null&&e.doc?joe(this,e,r,n):JSON.stringify(this)}}function dG(t,e,r){return(e.inFlow??t.flow?Voe:koe)(t,e,r)}function koe({comment:t,items:e},r,{blockItemPrefix:n,flowChars:a,itemIndent:s,onChompKeep:o,onComment:u}){const{indent:c,options:{commentString:l}}=r,d=Object.assign({},r,{indent:s,type:null});let f=!1;const h=[];for(let m=0;mg=null,()=>f=!0);g&&(b+=Rc(b,s,l(g))),f&&g&&(f=!1),h.push(n+b)}let p;if(h.length===0)p=a.start+a.end;else{p=h[0];for(let m=1;m1)for(var r=1;rt===D6||xr(t)&&t.value===D6&&(!t.type||t.type===jt.PLAIN);function IE(t,e,r){const n=t&&uf(r)?r.resolve(t.doc):r;if(!jb(n))throw new Error("Merge sources must be maps or map aliases");const a=n.toJSON(null,t,Map);for(const[s,o]of a)e instanceof Map?e.has(s)||e.set(s,o):e instanceof Set?e.add(s):Object.prototype.hasOwnProperty.call(e,s)||Object.defineProperty(e,s,{value:o,writable:!0,enumerable:!0,configurable:!0});return e}function $oe(t,e,r){if(e===null)return"";if(typeof e!="object")return String(e);if(tn(t)&&(r!=null&&r.doc)){const n=iG(r.doc,{});n.anchors=new Set;for(const s of r.anchors.keys())n.anchors.add(s.anchor);n.inFlow=!0,n.inStringifyKey=!0;const a=t.toString(n);if(!r.mapKeyWarned){let s=JSON.stringify(a);s.length>40&&(s=s.substring(0,36)+'..."'),cG(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${s}. Set mapAsMap: true to use object keys.`),r.mapKeyWarned=!0}return a}return JSON.stringify(e)}function jN(t,e,r){const n=rb(t,void 0,r),a=rb(e,void 0,r);return new ni(n,a)}class ni{constructor(e,r=null){Object.defineProperty(this,da,{value:Xz}),this.key=e,this.value=r}clone(e){let{key:r,value:n}=this;return tn(r)&&(r=r.clone(e)),tn(n)&&(n=n.clone(e)),new ni(r,n)}toJSON(e,r){const n=r!=null&&r.mapAsMap?new Map:{};return lG(r,n,this)}toString(e,r,n){return e!=null&&e.doc?Loe(this,e,r,n):JSON.stringify(this)}}function dG(t,e,r){return(e.inFlow??t.flow?koe:Uoe)(t,e,r)}function Uoe({comment:t,items:e},r,{blockItemPrefix:n,flowChars:a,itemIndent:s,onChompKeep:o,onComment:u}){const{indent:c,options:{commentString:l}}=r,d=Object.assign({},r,{indent:s,type:null});let f=!1;const h=[];for(let m=0;mg=null,()=>f=!0);g&&(b+=Rc(b,s,l(g))),f&&g&&(f=!1),h.push(n+b)}let p;if(h.length===0)p=a.start+a.end;else{p=h[0];for(let m=1;mg=null);md||b.includes(` +`+ro(l(t),c),u&&u()):f&&o&&o(),p}function koe({items:t},e,{flowChars:r,itemIndent:n}){const{indent:a,indentStep:s,flowCollectionPadding:o,options:{commentString:u}}=e;n+=s;const c=Object.assign({},e,{indent:n,inFlow:!0,type:null});let l=!1,d=0;const f=[];for(let m=0;mg=null);md||b.includes(` `))&&(l=!0),f.push(b),d=f.length}const{start:h,end:p}=r;if(f.length===0)return h+p;if(!l){const m=f.reduce((y,g)=>y+g.length+2,2);l=e.options.lineWidth>0&&m>e.options.lineWidth}if(l){let m=h;for(const y of f)m+=y?` ${s}${a}${y}`:` `;return`${m} -${a}${p}`}else return`${h}${o}${f.join(" ")}${o}${p}`}function tS({indent:t,options:{commentString:e}},r,n,a){if(n&&a&&(n=n.replace(/^\n+/,"")),n){const s=ro(e(n),t);r.push(s.trimStart())}}function Ic(t,e){const r=xr(e)?e.value:e;for(const n of t)if(Jr(n)&&(n.key===e||n.key===r||xr(n.key)&&n.key.value===r))return n}class Yi extends rG{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(nu,e),this.items=[]}static from(e,r,n){const{keepUndefined:a,replacer:s}=n,o=new this(e),u=(c,l)=>{if(typeof s=="function")l=s.call(r,c,l);else if(Array.isArray(s)&&!s.includes(c))return;(l!==void 0||a)&&o.items.push(jN(c,l,n))};if(r instanceof Map)for(const[c,l]of r)u(c,l);else if(r&&typeof r=="object")for(const c of Object.keys(r))u(c,r[c]);return typeof e.sortMapEntries=="function"&&o.items.sort(e.sortMapEntries),o}add(e,r){var o;let n;Jr(e)?n=e:!e||typeof e!="object"||!("key"in e)?n=new ni(e,e==null?void 0:e.value):n=new ni(e.key,e.value);const a=Ic(this.items,n.key),s=(o=this.schema)==null?void 0:o.sortMapEntries;if(a){if(!r)throw new Error(`Key ${n.key} already set`);xr(a.value)&&tG(n.value)?a.value.value=n.value:a.value=n.value}else if(s){const u=this.items.findIndex(c=>s(n,c)<0);u===-1?this.items.push(n):this.items.splice(u,0,n)}else this.items.push(n)}delete(e){const r=Ic(this.items,e);return r?this.items.splice(this.items.indexOf(r),1).length>0:!1}get(e,r){const n=Ic(this.items,e),a=n==null?void 0:n.value;return(!r&&xr(a)?a.value:a)??void 0}has(e){return!!Ic(this.items,e)}set(e,r){this.add(new ni(e,r),!0)}toJSON(e,r,n){const a=n?new n:r!=null&&r.mapAsMap?new Map:{};r!=null&&r.onCreate&&r.onCreate(a);for(const s of this.items)lG(r,a,s);return a}toString(e,r,n){if(!e)return JSON.stringify(this);for(const a of this.items)if(!Jr(a))throw new Error(`Map items must all be pairs; found ${JSON.stringify(a)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),dG(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:r})}}const cf={collection:"map",default:!0,nodeClass:Yi,tag:"tag:yaml.org,2002:map",resolve(t,e){return jb(t)||e("Expected a mapping for this tag"),t},createNode:(t,e,r)=>Yi.from(t,e,r)};class Hc extends rG{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(of,e),this.items=[]}add(e){this.items.push(e)}delete(e){const r=cv(e);return typeof r!="number"?!1:this.items.splice(r,1).length>0}get(e,r){const n=cv(e);if(typeof n!="number")return;const a=this.items[n];return!r&&xr(a)?a.value:a}has(e){const r=cv(e);return typeof r=="number"&&r=0?e:null}const lf={collection:"seq",default:!0,nodeClass:Hc,tag:"tag:yaml.org,2002:seq",resolve(t,e){return Mb(t)||e("Expected a sequence for this tag"),t},createNode:(t,e,r)=>Hc.from(t,e,r)},WS={identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:t=>t,stringify(t,e,r,n){return e=Object.assign({actualString:!0},e),LN(t,e,r,n)}},KS={identify:t=>t==null,createNode:()=>new jt(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new jt(null),stringify:({source:t},e)=>typeof t=="string"&&KS.test.test(t)?t:e.options.nullStr},MN={identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:t=>new jt(t[0]==="t"||t[0]==="T"),stringify({source:t,value:e},r){if(t&&MN.test.test(t)){const n=t[0]==="t"||t[0]==="T";if(e===n)return t}return e?r.options.trueStr:r.options.falseStr}};function $a({format:t,minFractionDigits:e,tag:r,value:n}){if(typeof n=="bigint")return String(n);const a=typeof n=="number"?n:Number(n);if(!isFinite(a))return isNaN(a)?".nan":a<0?"-.inf":".inf";let s=JSON.stringify(n);if(!t&&e&&(!r||r==="tag:yaml.org,2002:float")&&/^\d/.test(s)){let o=s.indexOf(".");o<0&&(o=s.length,s+=".");let u=e-(s.length-o-1);for(;u-- >0;)s+="0"}return s}const fG={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:t=>t.slice(-3).toLowerCase()==="nan"?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:$a},hG={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t),stringify(t){const e=Number(t.value);return isFinite(e)?e.toExponential():$a(t)}},pG={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(t){const e=new jt(parseFloat(t)),r=t.indexOf(".");return r!==-1&&t[t.length-1]==="0"&&(e.minFractionDigits=t.length-r-1),e},stringify:$a},JS=t=>typeof t=="bigint"||Number.isInteger(t),FN=(t,e,r,{intAsBigInt:n})=>n?BigInt(t):parseInt(t.substring(e),r);function yG(t,e,r){const{value:n}=t;return JS(n)&&n>=0?r+n.toString(e):$a(t)}const mG={identify:t=>JS(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(t,e,r)=>FN(t,2,8,r),stringify:t=>yG(t,8,"0o")},gG={identify:JS,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(t,e,r)=>FN(t,0,10,r),stringify:$a},_G={identify:t=>JS(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(t,e,r)=>FN(t,2,16,r),stringify:t=>yG(t,16,"0x")},Hoe=[cf,lf,WS,KS,MN,mG,gG,_G,fG,hG,pG];function C6(t){return typeof t=="bigint"||Number.isInteger(t)}const lv=({value:t})=>JSON.stringify(t),Qoe=[{identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:t=>t,stringify:lv},{identify:t=>t==null,createNode:()=>new jt(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:lv},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:t=>t==="true",stringify:lv},{identify:C6,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(t,e,{intAsBigInt:r})=>r?BigInt(t):parseInt(t,10),stringify:({value:t})=>C6(t)?t.toString():JSON.stringify(t)},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:t=>parseFloat(t),stringify:lv}],zoe={default:!0,tag:"",test:/^/,resolve(t,e){return e(`Unresolved plain scalar ${JSON.stringify(t)}`),t}},Goe=[cf,lf].concat(Qoe,zoe);var BN={},XS={};XS.byteLength=Joe;XS.toByteArray=Yoe;XS.fromByteArray=tue;var ns=[],Ji=[],Woe=typeof Uint8Array<"u"?Uint8Array:Array,NE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Cl=0,Koe=NE.length;Cl0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function Joe(t){var e=bG(t),r=e[0],n=e[1];return(r+n)*3/4-n}function Xoe(t,e,r){return(e+r)*3/4-r}function Yoe(t){var e,r=bG(t),n=r[0],a=r[1],s=new Woe(Xoe(t,n,a)),o=0,u=a>0?n-4:n,c;for(c=0;c>16&255,s[o++]=e>>8&255,s[o++]=e&255;return a===2&&(e=Ji[t.charCodeAt(c)]<<2|Ji[t.charCodeAt(c+1)]>>4,s[o++]=e&255),a===1&&(e=Ji[t.charCodeAt(c)]<<10|Ji[t.charCodeAt(c+1)]<<4|Ji[t.charCodeAt(c+2)]>>2,s[o++]=e>>8&255,s[o++]=e&255),s}function Zoe(t){return ns[t>>18&63]+ns[t>>12&63]+ns[t>>6&63]+ns[t&63]}function eue(t,e,r){for(var n,a=[],s=e;su?u:o+s));return n===1?(e=t[r-1],a.push(ns[e>>2]+ns[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],a.push(ns[e>>10]+ns[e>>4&63]+ns[e<<2&63]+"=")),a.join("")}var qN={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */qN.read=function(t,e,r,n,a){var s,o,u=a*8-n-1,c=(1<>1,d=-7,f=r?a-1:0,h=r?-1:1,p=t[e+f];for(f+=h,s=p&(1<<-d)-1,p>>=-d,d+=u;d>0;s=s*256+t[e+f],f+=h,d-=8);for(o=s&(1<<-d)-1,s>>=-d,d+=n;d>0;o=o*256+t[e+f],f+=h,d-=8);if(s===0)s=1-l;else{if(s===c)return o?NaN:(p?-1:1)*(1/0);o=o+Math.pow(2,n),s=s-l}return(p?-1:1)*o*Math.pow(2,s-n)};qN.write=function(t,e,r,n,a,s){var o,u,c,l=s*8-a-1,d=(1<>1,h=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:s-1,m=n?1:-1,y=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(u=isNaN(e)?1:0,o=d):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),o+f>=1?e+=h/c:e+=h*Math.pow(2,1-f),e*c>=2&&(o++,c/=2),o+f>=d?(u=0,o=d):o+f>=1?(u=(e*c-1)*Math.pow(2,a),o=o+f):(u=e*Math.pow(2,f-1)*Math.pow(2,a),o=0));a>=8;t[r+p]=u&255,p+=m,u/=256,a-=8);for(o=o<0;t[r+p]=o&255,p+=m,o/=256,l-=8);t[r+p-m]|=y*128};/*! +${a}${p}`}else return`${h}${o}${f.join(" ")}${o}${p}`}function tS({indent:t,options:{commentString:e}},r,n,a){if(n&&a&&(n=n.replace(/^\n+/,"")),n){const s=ro(e(n),t);r.push(s.trimStart())}}function Ic(t,e){const r=xr(e)?e.value:e;for(const n of t)if(Jr(n)&&(n.key===e||n.key===r||xr(n.key)&&n.key.value===r))return n}class Yi extends rG{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(nu,e),this.items=[]}static from(e,r,n){const{keepUndefined:a,replacer:s}=n,o=new this(e),u=(c,l)=>{if(typeof s=="function")l=s.call(r,c,l);else if(Array.isArray(s)&&!s.includes(c))return;(l!==void 0||a)&&o.items.push(jN(c,l,n))};if(r instanceof Map)for(const[c,l]of r)u(c,l);else if(r&&typeof r=="object")for(const c of Object.keys(r))u(c,r[c]);return typeof e.sortMapEntries=="function"&&o.items.sort(e.sortMapEntries),o}add(e,r){var o;let n;Jr(e)?n=e:!e||typeof e!="object"||!("key"in e)?n=new ni(e,e==null?void 0:e.value):n=new ni(e.key,e.value);const a=Ic(this.items,n.key),s=(o=this.schema)==null?void 0:o.sortMapEntries;if(a){if(!r)throw new Error(`Key ${n.key} already set`);xr(a.value)&&tG(n.value)?a.value.value=n.value:a.value=n.value}else if(s){const u=this.items.findIndex(c=>s(n,c)<0);u===-1?this.items.push(n):this.items.splice(u,0,n)}else this.items.push(n)}delete(e){const r=Ic(this.items,e);return r?this.items.splice(this.items.indexOf(r),1).length>0:!1}get(e,r){const n=Ic(this.items,e),a=n==null?void 0:n.value;return(!r&&xr(a)?a.value:a)??void 0}has(e){return!!Ic(this.items,e)}set(e,r){this.add(new ni(e,r),!0)}toJSON(e,r,n){const a=n?new n:r!=null&&r.mapAsMap?new Map:{};r!=null&&r.onCreate&&r.onCreate(a);for(const s of this.items)lG(r,a,s);return a}toString(e,r,n){if(!e)return JSON.stringify(this);for(const a of this.items)if(!Jr(a))throw new Error(`Map items must all be pairs; found ${JSON.stringify(a)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),dG(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:r})}}const cf={collection:"map",default:!0,nodeClass:Yi,tag:"tag:yaml.org,2002:map",resolve(t,e){return jb(t)||e("Expected a mapping for this tag"),t},createNode:(t,e,r)=>Yi.from(t,e,r)};class Hc extends rG{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(of,e),this.items=[]}add(e){this.items.push(e)}delete(e){const r=cv(e);return typeof r!="number"?!1:this.items.splice(r,1).length>0}get(e,r){const n=cv(e);if(typeof n!="number")return;const a=this.items[n];return!r&&xr(a)?a.value:a}has(e){const r=cv(e);return typeof r=="number"&&r=0?e:null}const lf={collection:"seq",default:!0,nodeClass:Hc,tag:"tag:yaml.org,2002:seq",resolve(t,e){return Mb(t)||e("Expected a sequence for this tag"),t},createNode:(t,e,r)=>Hc.from(t,e,r)},GS={identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:t=>t,stringify(t,e,r,n){return e=Object.assign({actualString:!0},e),LN(t,e,r,n)}},WS={identify:t=>t==null,createNode:()=>new jt(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new jt(null),stringify:({source:t},e)=>typeof t=="string"&&WS.test.test(t)?t:e.options.nullStr},MN={identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:t=>new jt(t[0]==="t"||t[0]==="T"),stringify({source:t,value:e},r){if(t&&MN.test.test(t)){const n=t[0]==="t"||t[0]==="T";if(e===n)return t}return e?r.options.trueStr:r.options.falseStr}};function $a({format:t,minFractionDigits:e,tag:r,value:n}){if(typeof n=="bigint")return String(n);const a=typeof n=="number"?n:Number(n);if(!isFinite(a))return isNaN(a)?".nan":a<0?"-.inf":".inf";let s=JSON.stringify(n);if(!t&&e&&(!r||r==="tag:yaml.org,2002:float")&&/^\d/.test(s)){let o=s.indexOf(".");o<0&&(o=s.length,s+=".");let u=e-(s.length-o-1);for(;u-- >0;)s+="0"}return s}const fG={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:t=>t.slice(-3).toLowerCase()==="nan"?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:$a},hG={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t),stringify(t){const e=Number(t.value);return isFinite(e)?e.toExponential():$a(t)}},pG={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(t){const e=new jt(parseFloat(t)),r=t.indexOf(".");return r!==-1&&t[t.length-1]==="0"&&(e.minFractionDigits=t.length-r-1),e},stringify:$a},KS=t=>typeof t=="bigint"||Number.isInteger(t),FN=(t,e,r,{intAsBigInt:n})=>n?BigInt(t):parseInt(t.substring(e),r);function yG(t,e,r){const{value:n}=t;return KS(n)&&n>=0?r+n.toString(e):$a(t)}const mG={identify:t=>KS(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(t,e,r)=>FN(t,2,8,r),stringify:t=>yG(t,8,"0o")},gG={identify:KS,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(t,e,r)=>FN(t,0,10,r),stringify:$a},_G={identify:t=>KS(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(t,e,r)=>FN(t,2,16,r),stringify:t=>yG(t,16,"0x")},Voe=[cf,lf,GS,WS,MN,mG,gG,_G,fG,hG,pG];function C6(t){return typeof t=="bigint"||Number.isInteger(t)}const lv=({value:t})=>JSON.stringify(t),Hoe=[{identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:t=>t,stringify:lv},{identify:t=>t==null,createNode:()=>new jt(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:lv},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:t=>t==="true",stringify:lv},{identify:C6,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(t,e,{intAsBigInt:r})=>r?BigInt(t):parseInt(t,10),stringify:({value:t})=>C6(t)?t.toString():JSON.stringify(t)},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:t=>parseFloat(t),stringify:lv}],Qoe={default:!0,tag:"",test:/^/,resolve(t,e){return e(`Unresolved plain scalar ${JSON.stringify(t)}`),t}},zoe=[cf,lf].concat(Hoe,Qoe);var BN={},JS={};JS.byteLength=Koe;JS.toByteArray=Xoe;JS.fromByteArray=eue;var ns=[],Ji=[],Goe=typeof Uint8Array<"u"?Uint8Array:Array,PE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Dl=0,Woe=PE.length;Dl0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function Koe(t){var e=bG(t),r=e[0],n=e[1];return(r+n)*3/4-n}function Joe(t,e,r){return(e+r)*3/4-r}function Xoe(t){var e,r=bG(t),n=r[0],a=r[1],s=new Goe(Joe(t,n,a)),o=0,u=a>0?n-4:n,c;for(c=0;c>16&255,s[o++]=e>>8&255,s[o++]=e&255;return a===2&&(e=Ji[t.charCodeAt(c)]<<2|Ji[t.charCodeAt(c+1)]>>4,s[o++]=e&255),a===1&&(e=Ji[t.charCodeAt(c)]<<10|Ji[t.charCodeAt(c+1)]<<4|Ji[t.charCodeAt(c+2)]>>2,s[o++]=e>>8&255,s[o++]=e&255),s}function Yoe(t){return ns[t>>18&63]+ns[t>>12&63]+ns[t>>6&63]+ns[t&63]}function Zoe(t,e,r){for(var n,a=[],s=e;su?u:o+s));return n===1?(e=t[r-1],a.push(ns[e>>2]+ns[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],a.push(ns[e>>10]+ns[e>>4&63]+ns[e<<2&63]+"=")),a.join("")}var qN={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */qN.read=function(t,e,r,n,a){var s,o,u=a*8-n-1,c=(1<>1,d=-7,f=r?a-1:0,h=r?-1:1,p=t[e+f];for(f+=h,s=p&(1<<-d)-1,p>>=-d,d+=u;d>0;s=s*256+t[e+f],f+=h,d-=8);for(o=s&(1<<-d)-1,s>>=-d,d+=n;d>0;o=o*256+t[e+f],f+=h,d-=8);if(s===0)s=1-l;else{if(s===c)return o?NaN:(p?-1:1)*(1/0);o=o+Math.pow(2,n),s=s-l}return(p?-1:1)*o*Math.pow(2,s-n)};qN.write=function(t,e,r,n,a,s){var o,u,c,l=s*8-a-1,d=(1<>1,h=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:s-1,m=n?1:-1,y=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(u=isNaN(e)?1:0,o=d):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),o+f>=1?e+=h/c:e+=h*Math.pow(2,1-f),e*c>=2&&(o++,c/=2),o+f>=d?(u=0,o=d):o+f>=1?(u=(e*c-1)*Math.pow(2,a),o=o+f):(u=e*Math.pow(2,f-1)*Math.pow(2,a),o=0));a>=8;t[r+p]=u&255,p+=m,u/=256,a-=8);for(o=o<0;t[r+p]=o&255,p+=m,o/=256,l-=8);t[r+p-m]|=y*128};/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT - */(function(t){const e=XS,r=qN,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=d,t.SlowBuffer=E,t.INSPECT_MAX_BYTES=50;const a=2147483647;t.kMaxLength=a;const{Uint8Array:s,ArrayBuffer:o,SharedArrayBuffer:u}=globalThis;d.TYPED_ARRAY_SUPPORT=c(),!d.TYPED_ARRAY_SUPPORT&&typeof console<"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.");function c(){try{const W=new s(1),D={foo:function(){return 42}};return Object.setPrototypeOf(D,s.prototype),Object.setPrototypeOf(W,D),W.foo()===42}catch{return!1}}Object.defineProperty(d.prototype,"parent",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.buffer}}),Object.defineProperty(d.prototype,"offset",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.byteOffset}});function l(W){if(W>a)throw new RangeError('The value "'+W+'" is invalid for option "size"');const D=new s(W);return Object.setPrototypeOf(D,d.prototype),D}function d(W,D,B){if(typeof W=="number"){if(typeof D=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return m(W)}return f(W,D,B)}d.poolSize=8192;function f(W,D,B){if(typeof W=="string")return y(W,D);if(o.isView(W))return b(W);if(W==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof W);if(Ee(W,o)||W&&Ee(W.buffer,o)||typeof u<"u"&&(Ee(W,u)||W&&Ee(W.buffer,u)))return v(W,D,B);if(typeof W=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const K=W.valueOf&&W.valueOf();if(K!=null&&K!==W)return d.from(K,D,B);const ne=_(W);if(ne)return ne;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof W[Symbol.toPrimitive]=="function")return d.from(W[Symbol.toPrimitive]("string"),D,B);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof W)}d.from=function(W,D,B){return f(W,D,B)},Object.setPrototypeOf(d.prototype,s.prototype),Object.setPrototypeOf(d,s);function h(W){if(typeof W!="number")throw new TypeError('"size" argument must be of type number');if(W<0)throw new RangeError('The value "'+W+'" is invalid for option "size"')}function p(W,D,B){return h(W),W<=0?l(W):D!==void 0?typeof B=="string"?l(W).fill(D,B):l(W).fill(D):l(W)}d.alloc=function(W,D,B){return p(W,D,B)};function m(W){return h(W),l(W<0?0:w(W)|0)}d.allocUnsafe=function(W){return m(W)},d.allocUnsafeSlow=function(W){return m(W)};function y(W,D){if((typeof D!="string"||D==="")&&(D="utf8"),!d.isEncoding(D))throw new TypeError("Unknown encoding: "+D);const B=O(W,D)|0;let K=l(B);const ne=K.write(W,D);return ne!==B&&(K=K.slice(0,ne)),K}function g(W){const D=W.length<0?0:w(W.length)|0,B=l(D);for(let K=0;K=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return W|0}function E(W){return+W!=W&&(W=0),d.alloc(+W)}d.isBuffer=function(D){return D!=null&&D._isBuffer===!0&&D!==d.prototype},d.compare=function(D,B){if(Ee(D,s)&&(D=d.from(D,D.offset,D.byteLength)),Ee(B,s)&&(B=d.from(B,B.offset,B.byteLength)),!d.isBuffer(D)||!d.isBuffer(B))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(D===B)return 0;let K=D.length,ne=B.length;for(let fe=0,ge=Math.min(K,ne);fene.length?(d.isBuffer(ge)||(ge=d.from(ge)),ge.copy(ne,fe)):s.prototype.set.call(ne,ge,fe);else if(d.isBuffer(ge))ge.copy(ne,fe);else throw new TypeError('"list" argument must be an Array of Buffers');fe+=ge.length}return ne};function O(W,D){if(d.isBuffer(W))return W.length;if(o.isView(W)||Ee(W,o))return W.byteLength;if(typeof W!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof W);const B=W.length,K=arguments.length>2&&arguments[2]===!0;if(!K&&B===0)return 0;let ne=!1;for(;;)switch(D){case"ascii":case"latin1":case"binary":return B;case"utf8":case"utf-8":return re(W).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B*2;case"hex":return B>>>1;case"base64":return _e(W).length;default:if(ne)return K?-1:re(W).length;D=(""+D).toLowerCase(),ne=!0}}d.byteLength=O;function L(W,D,B){let K=!1;if((D===void 0||D<0)&&(D=0),D>this.length||((B===void 0||B>this.length)&&(B=this.length),B<=0)||(B>>>=0,D>>>=0,B<=D))return"";for(W||(W="utf8");;)switch(W){case"hex":return $e(this,D,B);case"utf8":case"utf-8":return X(this,D,B);case"ascii":return Te(this,D,B);case"latin1":case"binary":return Ne(this,D,B);case"base64":return H(this,D,B);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return de(this,D,B);default:if(K)throw new TypeError("Unknown encoding: "+W);W=(W+"").toLowerCase(),K=!0}}d.prototype._isBuffer=!0;function F(W,D,B){const K=W[D];W[D]=W[B],W[B]=K}d.prototype.swap16=function(){const D=this.length;if(D%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let B=0;BB&&(D+=" ... "),""},n&&(d.prototype[n]=d.prototype.inspect),d.prototype.compare=function(D,B,K,ne,fe){if(Ee(D,s)&&(D=d.from(D,D.offset,D.byteLength)),!d.isBuffer(D))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof D);if(B===void 0&&(B=0),K===void 0&&(K=D?D.length:0),ne===void 0&&(ne=0),fe===void 0&&(fe=this.length),B<0||K>D.length||ne<0||fe>this.length)throw new RangeError("out of range index");if(ne>=fe&&B>=K)return 0;if(ne>=fe)return-1;if(B>=K)return 1;if(B>>>=0,K>>>=0,ne>>>=0,fe>>>=0,this===D)return 0;let ge=fe-ne,Le=K-B;const ee=Math.min(ge,Le),Oe=this.slice(ne,fe),De=D.slice(B,K);for(let Ue=0;Ue2147483647?B=2147483647:B<-2147483648&&(B=-2147483648),B=+B,Me(B)&&(B=ne?0:W.length-1),B<0&&(B=W.length+B),B>=W.length){if(ne)return-1;B=W.length-1}else if(B<0)if(ne)B=0;else return-1;if(typeof D=="string"&&(D=d.from(D,K)),d.isBuffer(D))return D.length===0?-1:P(W,D,B,K,ne);if(typeof D=="number")return D=D&255,typeof s.prototype.indexOf=="function"?ne?s.prototype.indexOf.call(W,D,B):s.prototype.lastIndexOf.call(W,D,B):P(W,[D],B,K,ne);throw new TypeError("val must be string, number or Buffer")}function P(W,D,B,K,ne){let fe=1,ge=W.length,Le=D.length;if(K!==void 0&&(K=String(K).toLowerCase(),K==="ucs2"||K==="ucs-2"||K==="utf16le"||K==="utf-16le")){if(W.length<2||D.length<2)return-1;fe=2,ge/=2,Le/=2,B/=2}function ee(De,Ue){return fe===1?De[Ue]:De.readUInt16BE(Ue*fe)}let Oe;if(ne){let De=-1;for(Oe=B;Oege&&(B=ge-Le),Oe=B;Oe>=0;Oe--){let De=!0;for(let Ue=0;Uene&&(K=ne)):K=ne;const fe=D.length;K>fe/2&&(K=fe/2);let ge;for(ge=0;ge>>0,isFinite(K)?(K=K>>>0,ne===void 0&&(ne="utf8")):(ne=K,K=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const fe=this.length-B;if((K===void 0||K>fe)&&(K=fe),D.length>0&&(K<0||B<0)||B>this.length)throw new RangeError("Attempt to write outside buffer bounds");ne||(ne="utf8");let ge=!1;for(;;)switch(ne){case"hex":return j(this,D,B,K);case"utf8":case"utf-8":return N(this,D,B,K);case"ascii":case"latin1":case"binary":return V(this,D,B,K);case"base64":return $(this,D,B,K);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q(this,D,B,K);default:if(ge)throw new TypeError("Unknown encoding: "+ne);ne=(""+ne).toLowerCase(),ge=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function H(W,D,B){return D===0&&B===W.length?e.fromByteArray(W):e.fromByteArray(W.slice(D,B))}function X(W,D,B){B=Math.min(W.length,B);const K=[];let ne=D;for(;ne239?4:fe>223?3:fe>191?2:1;if(ne+Le<=B){let ee,Oe,De,Ue;switch(Le){case 1:fe<128&&(ge=fe);break;case 2:ee=W[ne+1],(ee&192)===128&&(Ue=(fe&31)<<6|ee&63,Ue>127&&(ge=Ue));break;case 3:ee=W[ne+1],Oe=W[ne+2],(ee&192)===128&&(Oe&192)===128&&(Ue=(fe&15)<<12|(ee&63)<<6|Oe&63,Ue>2047&&(Ue<55296||Ue>57343)&&(ge=Ue));break;case 4:ee=W[ne+1],Oe=W[ne+2],De=W[ne+3],(ee&192)===128&&(Oe&192)===128&&(De&192)===128&&(Ue=(fe&15)<<18|(ee&63)<<12|(Oe&63)<<6|De&63,Ue>65535&&Ue<1114112&&(ge=Ue))}}ge===null?(ge=65533,Le=1):ge>65535&&(ge-=65536,K.push(ge>>>10&1023|55296),ge=56320|ge&1023),K.push(ge),ne+=Le}return he(K)}const Y=4096;function he(W){const D=W.length;if(D<=Y)return String.fromCharCode.apply(String,W);let B="",K=0;for(;KK)&&(B=K);let ne="";for(let fe=D;feK&&(D=K),B<0?(B+=K,B<0&&(B=0)):B>K&&(B=K),BB)throw new RangeError("Trying to access beyond buffer length")}d.prototype.readUintLE=d.prototype.readUIntLE=function(D,B,K){D=D>>>0,B=B>>>0,K||ce(D,B,this.length);let ne=this[D],fe=1,ge=0;for(;++ge>>0,B=B>>>0,K||ce(D,B,this.length);let ne=this[D+--B],fe=1;for(;B>0&&(fe*=256);)ne+=this[D+--B]*fe;return ne},d.prototype.readUint8=d.prototype.readUInt8=function(D,B){return D=D>>>0,B||ce(D,1,this.length),this[D]},d.prototype.readUint16LE=d.prototype.readUInt16LE=function(D,B){return D=D>>>0,B||ce(D,2,this.length),this[D]|this[D+1]<<8},d.prototype.readUint16BE=d.prototype.readUInt16BE=function(D,B){return D=D>>>0,B||ce(D,2,this.length),this[D]<<8|this[D+1]},d.prototype.readUint32LE=d.prototype.readUInt32LE=function(D,B){return D=D>>>0,B||ce(D,4,this.length),(this[D]|this[D+1]<<8|this[D+2]<<16)+this[D+3]*16777216},d.prototype.readUint32BE=d.prototype.readUInt32BE=function(D,B){return D=D>>>0,B||ce(D,4,this.length),this[D]*16777216+(this[D+1]<<16|this[D+2]<<8|this[D+3])},d.prototype.readBigUInt64LE=ke(function(D){D=D>>>0,G(D,"offset");const B=this[D],K=this[D+7];(B===void 0||K===void 0)&&Q(D,this.length-8);const ne=B+this[++D]*2**8+this[++D]*2**16+this[++D]*2**24,fe=this[++D]+this[++D]*2**8+this[++D]*2**16+K*2**24;return BigInt(ne)+(BigInt(fe)<>>0,G(D,"offset");const B=this[D],K=this[D+7];(B===void 0||K===void 0)&&Q(D,this.length-8);const ne=B*2**24+this[++D]*2**16+this[++D]*2**8+this[++D],fe=this[++D]*2**24+this[++D]*2**16+this[++D]*2**8+K;return(BigInt(ne)<>>0,B=B>>>0,K||ce(D,B,this.length);let ne=this[D],fe=1,ge=0;for(;++ge=fe&&(ne-=Math.pow(2,8*B)),ne},d.prototype.readIntBE=function(D,B,K){D=D>>>0,B=B>>>0,K||ce(D,B,this.length);let ne=B,fe=1,ge=this[D+--ne];for(;ne>0&&(fe*=256);)ge+=this[D+--ne]*fe;return fe*=128,ge>=fe&&(ge-=Math.pow(2,8*B)),ge},d.prototype.readInt8=function(D,B){return D=D>>>0,B||ce(D,1,this.length),this[D]&128?(255-this[D]+1)*-1:this[D]},d.prototype.readInt16LE=function(D,B){D=D>>>0,B||ce(D,2,this.length);const K=this[D]|this[D+1]<<8;return K&32768?K|4294901760:K},d.prototype.readInt16BE=function(D,B){D=D>>>0,B||ce(D,2,this.length);const K=this[D+1]|this[D]<<8;return K&32768?K|4294901760:K},d.prototype.readInt32LE=function(D,B){return D=D>>>0,B||ce(D,4,this.length),this[D]|this[D+1]<<8|this[D+2]<<16|this[D+3]<<24},d.prototype.readInt32BE=function(D,B){return D=D>>>0,B||ce(D,4,this.length),this[D]<<24|this[D+1]<<16|this[D+2]<<8|this[D+3]},d.prototype.readBigInt64LE=ke(function(D){D=D>>>0,G(D,"offset");const B=this[D],K=this[D+7];(B===void 0||K===void 0)&&Q(D,this.length-8);const ne=this[D+4]+this[D+5]*2**8+this[D+6]*2**16+(K<<24);return(BigInt(ne)<>>0,G(D,"offset");const B=this[D],K=this[D+7];(B===void 0||K===void 0)&&Q(D,this.length-8);const ne=(B<<24)+this[++D]*2**16+this[++D]*2**8+this[++D];return(BigInt(ne)<>>0,B||ce(D,4,this.length),r.read(this,D,!0,23,4)},d.prototype.readFloatBE=function(D,B){return D=D>>>0,B||ce(D,4,this.length),r.read(this,D,!1,23,4)},d.prototype.readDoubleLE=function(D,B){return D=D>>>0,B||ce(D,8,this.length),r.read(this,D,!0,52,8)},d.prototype.readDoubleBE=function(D,B){return D=D>>>0,B||ce(D,8,this.length),r.read(this,D,!1,52,8)};function xe(W,D,B,K,ne,fe){if(!d.isBuffer(W))throw new TypeError('"buffer" argument must be a Buffer instance');if(D>ne||DW.length)throw new RangeError("Index out of range")}d.prototype.writeUintLE=d.prototype.writeUIntLE=function(D,B,K,ne){if(D=+D,B=B>>>0,K=K>>>0,!ne){const Le=Math.pow(2,8*K)-1;xe(this,D,B,K,Le,0)}let fe=1,ge=0;for(this[B]=D&255;++ge>>0,K=K>>>0,!ne){const Le=Math.pow(2,8*K)-1;xe(this,D,B,K,Le,0)}let fe=K-1,ge=1;for(this[B+fe]=D&255;--fe>=0&&(ge*=256);)this[B+fe]=D/ge&255;return B+K},d.prototype.writeUint8=d.prototype.writeUInt8=function(D,B,K){return D=+D,B=B>>>0,K||xe(this,D,B,1,255,0),this[B]=D&255,B+1},d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(D,B,K){return D=+D,B=B>>>0,K||xe(this,D,B,2,65535,0),this[B]=D&255,this[B+1]=D>>>8,B+2},d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(D,B,K){return D=+D,B=B>>>0,K||xe(this,D,B,2,65535,0),this[B]=D>>>8,this[B+1]=D&255,B+2},d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(D,B,K){return D=+D,B=B>>>0,K||xe(this,D,B,4,4294967295,0),this[B+3]=D>>>24,this[B+2]=D>>>16,this[B+1]=D>>>8,this[B]=D&255,B+4},d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(D,B,K){return D=+D,B=B>>>0,K||xe(this,D,B,4,4294967295,0),this[B]=D>>>24,this[B+1]=D>>>16,this[B+2]=D>>>8,this[B+3]=D&255,B+4};function Pe(W,D,B,K,ne){U(D,K,ne,W,B,7);let fe=Number(D&BigInt(4294967295));W[B++]=fe,fe=fe>>8,W[B++]=fe,fe=fe>>8,W[B++]=fe,fe=fe>>8,W[B++]=fe;let ge=Number(D>>BigInt(32)&BigInt(4294967295));return W[B++]=ge,ge=ge>>8,W[B++]=ge,ge=ge>>8,W[B++]=ge,ge=ge>>8,W[B++]=ge,B}function we(W,D,B,K,ne){U(D,K,ne,W,B,7);let fe=Number(D&BigInt(4294967295));W[B+7]=fe,fe=fe>>8,W[B+6]=fe,fe=fe>>8,W[B+5]=fe,fe=fe>>8,W[B+4]=fe;let ge=Number(D>>BigInt(32)&BigInt(4294967295));return W[B+3]=ge,ge=ge>>8,W[B+2]=ge,ge=ge>>8,W[B+1]=ge,ge=ge>>8,W[B]=ge,B+8}d.prototype.writeBigUInt64LE=ke(function(D,B=0){return Pe(this,D,B,BigInt(0),BigInt("0xffffffffffffffff"))}),d.prototype.writeBigUInt64BE=ke(function(D,B=0){return we(this,D,B,BigInt(0),BigInt("0xffffffffffffffff"))}),d.prototype.writeIntLE=function(D,B,K,ne){if(D=+D,B=B>>>0,!ne){const ee=Math.pow(2,8*K-1);xe(this,D,B,K,ee-1,-ee)}let fe=0,ge=1,Le=0;for(this[B]=D&255;++fe>0)-Le&255;return B+K},d.prototype.writeIntBE=function(D,B,K,ne){if(D=+D,B=B>>>0,!ne){const ee=Math.pow(2,8*K-1);xe(this,D,B,K,ee-1,-ee)}let fe=K-1,ge=1,Le=0;for(this[B+fe]=D&255;--fe>=0&&(ge*=256);)D<0&&Le===0&&this[B+fe+1]!==0&&(Le=1),this[B+fe]=(D/ge>>0)-Le&255;return B+K},d.prototype.writeInt8=function(D,B,K){return D=+D,B=B>>>0,K||xe(this,D,B,1,127,-128),D<0&&(D=255+D+1),this[B]=D&255,B+1},d.prototype.writeInt16LE=function(D,B,K){return D=+D,B=B>>>0,K||xe(this,D,B,2,32767,-32768),this[B]=D&255,this[B+1]=D>>>8,B+2},d.prototype.writeInt16BE=function(D,B,K){return D=+D,B=B>>>0,K||xe(this,D,B,2,32767,-32768),this[B]=D>>>8,this[B+1]=D&255,B+2},d.prototype.writeInt32LE=function(D,B,K){return D=+D,B=B>>>0,K||xe(this,D,B,4,2147483647,-2147483648),this[B]=D&255,this[B+1]=D>>>8,this[B+2]=D>>>16,this[B+3]=D>>>24,B+4},d.prototype.writeInt32BE=function(D,B,K){return D=+D,B=B>>>0,K||xe(this,D,B,4,2147483647,-2147483648),D<0&&(D=4294967295+D+1),this[B]=D>>>24,this[B+1]=D>>>16,this[B+2]=D>>>8,this[B+3]=D&255,B+4},d.prototype.writeBigInt64LE=ke(function(D,B=0){return Pe(this,D,B,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),d.prototype.writeBigInt64BE=ke(function(D,B=0){return we(this,D,B,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Re(W,D,B,K,ne,fe){if(B+K>W.length)throw new RangeError("Index out of range");if(B<0)throw new RangeError("Index out of range")}function Se(W,D,B,K,ne){return D=+D,B=B>>>0,ne||Re(W,D,B,4),r.write(W,D,B,K,23,4),B+4}d.prototype.writeFloatLE=function(D,B,K){return Se(this,D,B,!0,K)},d.prototype.writeFloatBE=function(D,B,K){return Se(this,D,B,!1,K)};function z(W,D,B,K,ne){return D=+D,B=B>>>0,ne||Re(W,D,B,8),r.write(W,D,B,K,52,8),B+8}d.prototype.writeDoubleLE=function(D,B,K){return z(this,D,B,!0,K)},d.prototype.writeDoubleBE=function(D,B,K){return z(this,D,B,!1,K)},d.prototype.copy=function(D,B,K,ne){if(!d.isBuffer(D))throw new TypeError("argument should be a Buffer");if(K||(K=0),!ne&&ne!==0&&(ne=this.length),B>=D.length&&(B=D.length),B||(B=0),ne>0&&ne=this.length)throw new RangeError("Index out of range");if(ne<0)throw new RangeError("sourceEnd out of bounds");ne>this.length&&(ne=this.length),D.length-B>>0,K=K===void 0?this.length:K>>>0,D||(D=0);let fe;if(typeof D=="number")for(fe=B;fe2**32?ne=T(String(B)):typeof B=="bigint"&&(ne=String(B),(B>BigInt(2)**BigInt(32)||B<-(BigInt(2)**BigInt(32)))&&(ne=T(ne)),ne+="n"),K+=` It must be ${D}. Received ${ne}`,K},RangeError);function T(W){let D="",B=W.length;const K=W[0]==="-"?1:0;for(;B>=K+4;B-=3)D=`_${W.slice(B-3,B)}${D}`;return`${W.slice(0,B)}${D}`}function R(W,D,B){G(D,"offset"),(W[D]===void 0||W[D+B]===void 0)&&Q(D,W.length-(B+1))}function U(W,D,B,K,ne,fe){if(W>B||W3?D===0||D===BigInt(0)?Le=`>= 0${ge} and < 2${ge} ** ${(fe+1)*8}${ge}`:Le=`>= -(2${ge} ** ${(fe+1)*8-1}${ge}) and < 2 ** ${(fe+1)*8-1}${ge}`:Le=`>= ${D}${ge} and <= ${B}${ge}`,new M.ERR_OUT_OF_RANGE("value",Le,W)}R(K,ne,fe)}function G(W,D){if(typeof W!="number")throw new M.ERR_INVALID_ARG_TYPE(D,"number",W)}function Q(W,D,B){throw Math.floor(W)!==W?(G(W,B),new M.ERR_OUT_OF_RANGE(B||"offset","an integer",W)):D<0?new M.ERR_BUFFER_OUT_OF_BOUNDS:new M.ERR_OUT_OF_RANGE(B||"offset",`>= ${B?1:0} and <= ${D}`,W)}const Z=/[^+/0-9A-Za-z-_]/g;function se(W){if(W=W.split("=")[0],W=W.trim().replace(Z,""),W.length<2)return"";for(;W.length%4!==0;)W=W+"=";return W}function re(W,D){D=D||1/0;let B;const K=W.length;let ne=null;const fe=[];for(let ge=0;ge55295&&B<57344){if(!ne){if(B>56319){(D-=3)>-1&&fe.push(239,191,189);continue}else if(ge+1===K){(D-=3)>-1&&fe.push(239,191,189);continue}ne=B;continue}if(B<56320){(D-=3)>-1&&fe.push(239,191,189),ne=B;continue}B=(ne-55296<<10|B-56320)+65536}else ne&&(D-=3)>-1&&fe.push(239,191,189);if(ne=null,B<128){if((D-=1)<0)break;fe.push(B)}else if(B<2048){if((D-=2)<0)break;fe.push(B>>6|192,B&63|128)}else if(B<65536){if((D-=3)<0)break;fe.push(B>>12|224,B>>6&63|128,B&63|128)}else if(B<1114112){if((D-=4)<0)break;fe.push(B>>18|240,B>>12&63|128,B>>6&63|128,B&63|128)}else throw new Error("Invalid code point")}return fe}function le(W){const D=[];for(let B=0;B>8,ne=B%256,fe.push(ne),fe.push(K);return fe}function _e(W){return e.toByteArray(se(W))}function Ie(W,D,B,K){let ne;for(ne=0;ne=D.length||ne>=W.length);++ne)D[ne+B]=W[ne];return ne}function Ee(W,D){return W instanceof D||W!=null&&W.constructor!=null&&W.constructor.name!=null&&W.constructor.name===D.name}function Me(W){return W!==W}const Ce=function(){const W="0123456789abcdef",D=new Array(256);for(let B=0;B<16;++B){const K=B*16;for(let ne=0;ne<16;++ne)D[K+ne]=W[B]+W[ne]}return D}();function ke(W){return typeof BigInt>"u"?qe:W}function qe(){throw new Error("BigInt not supported")}})(BN);const Zi=BN.Buffer,rue=BN.Buffer,$N={identify:t=>t instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(t,e){if(typeof Zi=="function")return Zi.from(t,"base64");if(typeof atob=="function"){const r=atob(t.replace(/[\n\r]/g,"")),n=new Uint8Array(r.length);for(let a=0;aa)throw new RangeError('The value "'+W+'" is invalid for option "size"');const D=new s(W);return Object.setPrototypeOf(D,d.prototype),D}function d(W,D,B){if(typeof W=="number"){if(typeof D=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return m(W)}return f(W,D,B)}d.poolSize=8192;function f(W,D,B){if(typeof W=="string")return y(W,D);if(o.isView(W))return b(W);if(W==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof W);if(Ee(W,o)||W&&Ee(W.buffer,o)||typeof u<"u"&&(Ee(W,u)||W&&Ee(W.buffer,u)))return v(W,D,B);if(typeof W=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const K=W.valueOf&&W.valueOf();if(K!=null&&K!==W)return d.from(K,D,B);const ne=_(W);if(ne)return ne;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof W[Symbol.toPrimitive]=="function")return d.from(W[Symbol.toPrimitive]("string"),D,B);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof W)}d.from=function(W,D,B){return f(W,D,B)},Object.setPrototypeOf(d.prototype,s.prototype),Object.setPrototypeOf(d,s);function h(W){if(typeof W!="number")throw new TypeError('"size" argument must be of type number');if(W<0)throw new RangeError('The value "'+W+'" is invalid for option "size"')}function p(W,D,B){return h(W),W<=0?l(W):D!==void 0?typeof B=="string"?l(W).fill(D,B):l(W).fill(D):l(W)}d.alloc=function(W,D,B){return p(W,D,B)};function m(W){return h(W),l(W<0?0:w(W)|0)}d.allocUnsafe=function(W){return m(W)},d.allocUnsafeSlow=function(W){return m(W)};function y(W,D){if((typeof D!="string"||D==="")&&(D="utf8"),!d.isEncoding(D))throw new TypeError("Unknown encoding: "+D);const B=O(W,D)|0;let K=l(B);const ne=K.write(W,D);return ne!==B&&(K=K.slice(0,ne)),K}function g(W){const D=W.length<0?0:w(W.length)|0,B=l(D);for(let K=0;K=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return W|0}function E(W){return+W!=W&&(W=0),d.alloc(+W)}d.isBuffer=function(D){return D!=null&&D._isBuffer===!0&&D!==d.prototype},d.compare=function(D,B){if(Ee(D,s)&&(D=d.from(D,D.offset,D.byteLength)),Ee(B,s)&&(B=d.from(B,B.offset,B.byteLength)),!d.isBuffer(D)||!d.isBuffer(B))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(D===B)return 0;let K=D.length,ne=B.length;for(let fe=0,ge=Math.min(K,ne);fene.length?(d.isBuffer(ge)||(ge=d.from(ge)),ge.copy(ne,fe)):s.prototype.set.call(ne,ge,fe);else if(d.isBuffer(ge))ge.copy(ne,fe);else throw new TypeError('"list" argument must be an Array of Buffers');fe+=ge.length}return ne};function O(W,D){if(d.isBuffer(W))return W.length;if(o.isView(W)||Ee(W,o))return W.byteLength;if(typeof W!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof W);const B=W.length,K=arguments.length>2&&arguments[2]===!0;if(!K&&B===0)return 0;let ne=!1;for(;;)switch(D){case"ascii":case"latin1":case"binary":return B;case"utf8":case"utf-8":return re(W).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B*2;case"hex":return B>>>1;case"base64":return _e(W).length;default:if(ne)return K?-1:re(W).length;D=(""+D).toLowerCase(),ne=!0}}d.byteLength=O;function L(W,D,B){let K=!1;if((D===void 0||D<0)&&(D=0),D>this.length||((B===void 0||B>this.length)&&(B=this.length),B<=0)||(B>>>=0,D>>>=0,B<=D))return"";for(W||(W="utf8");;)switch(W){case"hex":return $e(this,D,B);case"utf8":case"utf-8":return X(this,D,B);case"ascii":return Te(this,D,B);case"latin1":case"binary":return Ne(this,D,B);case"base64":return H(this,D,B);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return de(this,D,B);default:if(K)throw new TypeError("Unknown encoding: "+W);W=(W+"").toLowerCase(),K=!0}}d.prototype._isBuffer=!0;function F(W,D,B){const K=W[D];W[D]=W[B],W[B]=K}d.prototype.swap16=function(){const D=this.length;if(D%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let B=0;BB&&(D+=" ... "),""},n&&(d.prototype[n]=d.prototype.inspect),d.prototype.compare=function(D,B,K,ne,fe){if(Ee(D,s)&&(D=d.from(D,D.offset,D.byteLength)),!d.isBuffer(D))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof D);if(B===void 0&&(B=0),K===void 0&&(K=D?D.length:0),ne===void 0&&(ne=0),fe===void 0&&(fe=this.length),B<0||K>D.length||ne<0||fe>this.length)throw new RangeError("out of range index");if(ne>=fe&&B>=K)return 0;if(ne>=fe)return-1;if(B>=K)return 1;if(B>>>=0,K>>>=0,ne>>>=0,fe>>>=0,this===D)return 0;let ge=fe-ne,Le=K-B;const ee=Math.min(ge,Le),Oe=this.slice(ne,fe),De=D.slice(B,K);for(let Ue=0;Ue2147483647?B=2147483647:B<-2147483648&&(B=-2147483648),B=+B,Me(B)&&(B=ne?0:W.length-1),B<0&&(B=W.length+B),B>=W.length){if(ne)return-1;B=W.length-1}else if(B<0)if(ne)B=0;else return-1;if(typeof D=="string"&&(D=d.from(D,K)),d.isBuffer(D))return D.length===0?-1:P(W,D,B,K,ne);if(typeof D=="number")return D=D&255,typeof s.prototype.indexOf=="function"?ne?s.prototype.indexOf.call(W,D,B):s.prototype.lastIndexOf.call(W,D,B):P(W,[D],B,K,ne);throw new TypeError("val must be string, number or Buffer")}function P(W,D,B,K,ne){let fe=1,ge=W.length,Le=D.length;if(K!==void 0&&(K=String(K).toLowerCase(),K==="ucs2"||K==="ucs-2"||K==="utf16le"||K==="utf-16le")){if(W.length<2||D.length<2)return-1;fe=2,ge/=2,Le/=2,B/=2}function ee(De,Ue){return fe===1?De[Ue]:De.readUInt16BE(Ue*fe)}let Oe;if(ne){let De=-1;for(Oe=B;Oege&&(B=ge-Le),Oe=B;Oe>=0;Oe--){let De=!0;for(let Ue=0;Uene&&(K=ne)):K=ne;const fe=D.length;K>fe/2&&(K=fe/2);let ge;for(ge=0;ge>>0,isFinite(K)?(K=K>>>0,ne===void 0&&(ne="utf8")):(ne=K,K=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const fe=this.length-B;if((K===void 0||K>fe)&&(K=fe),D.length>0&&(K<0||B<0)||B>this.length)throw new RangeError("Attempt to write outside buffer bounds");ne||(ne="utf8");let ge=!1;for(;;)switch(ne){case"hex":return j(this,D,B,K);case"utf8":case"utf-8":return N(this,D,B,K);case"ascii":case"latin1":case"binary":return V(this,D,B,K);case"base64":return $(this,D,B,K);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q(this,D,B,K);default:if(ge)throw new TypeError("Unknown encoding: "+ne);ne=(""+ne).toLowerCase(),ge=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function H(W,D,B){return D===0&&B===W.length?e.fromByteArray(W):e.fromByteArray(W.slice(D,B))}function X(W,D,B){B=Math.min(W.length,B);const K=[];let ne=D;for(;ne239?4:fe>223?3:fe>191?2:1;if(ne+Le<=B){let ee,Oe,De,Ue;switch(Le){case 1:fe<128&&(ge=fe);break;case 2:ee=W[ne+1],(ee&192)===128&&(Ue=(fe&31)<<6|ee&63,Ue>127&&(ge=Ue));break;case 3:ee=W[ne+1],Oe=W[ne+2],(ee&192)===128&&(Oe&192)===128&&(Ue=(fe&15)<<12|(ee&63)<<6|Oe&63,Ue>2047&&(Ue<55296||Ue>57343)&&(ge=Ue));break;case 4:ee=W[ne+1],Oe=W[ne+2],De=W[ne+3],(ee&192)===128&&(Oe&192)===128&&(De&192)===128&&(Ue=(fe&15)<<18|(ee&63)<<12|(Oe&63)<<6|De&63,Ue>65535&&Ue<1114112&&(ge=Ue))}}ge===null?(ge=65533,Le=1):ge>65535&&(ge-=65536,K.push(ge>>>10&1023|55296),ge=56320|ge&1023),K.push(ge),ne+=Le}return he(K)}const Y=4096;function he(W){const D=W.length;if(D<=Y)return String.fromCharCode.apply(String,W);let B="",K=0;for(;KK)&&(B=K);let ne="";for(let fe=D;feK&&(D=K),B<0?(B+=K,B<0&&(B=0)):B>K&&(B=K),BB)throw new RangeError("Trying to access beyond buffer length")}d.prototype.readUintLE=d.prototype.readUIntLE=function(D,B,K){D=D>>>0,B=B>>>0,K||ce(D,B,this.length);let ne=this[D],fe=1,ge=0;for(;++ge>>0,B=B>>>0,K||ce(D,B,this.length);let ne=this[D+--B],fe=1;for(;B>0&&(fe*=256);)ne+=this[D+--B]*fe;return ne},d.prototype.readUint8=d.prototype.readUInt8=function(D,B){return D=D>>>0,B||ce(D,1,this.length),this[D]},d.prototype.readUint16LE=d.prototype.readUInt16LE=function(D,B){return D=D>>>0,B||ce(D,2,this.length),this[D]|this[D+1]<<8},d.prototype.readUint16BE=d.prototype.readUInt16BE=function(D,B){return D=D>>>0,B||ce(D,2,this.length),this[D]<<8|this[D+1]},d.prototype.readUint32LE=d.prototype.readUInt32LE=function(D,B){return D=D>>>0,B||ce(D,4,this.length),(this[D]|this[D+1]<<8|this[D+2]<<16)+this[D+3]*16777216},d.prototype.readUint32BE=d.prototype.readUInt32BE=function(D,B){return D=D>>>0,B||ce(D,4,this.length),this[D]*16777216+(this[D+1]<<16|this[D+2]<<8|this[D+3])},d.prototype.readBigUInt64LE=ke(function(D){D=D>>>0,G(D,"offset");const B=this[D],K=this[D+7];(B===void 0||K===void 0)&&Q(D,this.length-8);const ne=B+this[++D]*2**8+this[++D]*2**16+this[++D]*2**24,fe=this[++D]+this[++D]*2**8+this[++D]*2**16+K*2**24;return BigInt(ne)+(BigInt(fe)<>>0,G(D,"offset");const B=this[D],K=this[D+7];(B===void 0||K===void 0)&&Q(D,this.length-8);const ne=B*2**24+this[++D]*2**16+this[++D]*2**8+this[++D],fe=this[++D]*2**24+this[++D]*2**16+this[++D]*2**8+K;return(BigInt(ne)<>>0,B=B>>>0,K||ce(D,B,this.length);let ne=this[D],fe=1,ge=0;for(;++ge=fe&&(ne-=Math.pow(2,8*B)),ne},d.prototype.readIntBE=function(D,B,K){D=D>>>0,B=B>>>0,K||ce(D,B,this.length);let ne=B,fe=1,ge=this[D+--ne];for(;ne>0&&(fe*=256);)ge+=this[D+--ne]*fe;return fe*=128,ge>=fe&&(ge-=Math.pow(2,8*B)),ge},d.prototype.readInt8=function(D,B){return D=D>>>0,B||ce(D,1,this.length),this[D]&128?(255-this[D]+1)*-1:this[D]},d.prototype.readInt16LE=function(D,B){D=D>>>0,B||ce(D,2,this.length);const K=this[D]|this[D+1]<<8;return K&32768?K|4294901760:K},d.prototype.readInt16BE=function(D,B){D=D>>>0,B||ce(D,2,this.length);const K=this[D+1]|this[D]<<8;return K&32768?K|4294901760:K},d.prototype.readInt32LE=function(D,B){return D=D>>>0,B||ce(D,4,this.length),this[D]|this[D+1]<<8|this[D+2]<<16|this[D+3]<<24},d.prototype.readInt32BE=function(D,B){return D=D>>>0,B||ce(D,4,this.length),this[D]<<24|this[D+1]<<16|this[D+2]<<8|this[D+3]},d.prototype.readBigInt64LE=ke(function(D){D=D>>>0,G(D,"offset");const B=this[D],K=this[D+7];(B===void 0||K===void 0)&&Q(D,this.length-8);const ne=this[D+4]+this[D+5]*2**8+this[D+6]*2**16+(K<<24);return(BigInt(ne)<>>0,G(D,"offset");const B=this[D],K=this[D+7];(B===void 0||K===void 0)&&Q(D,this.length-8);const ne=(B<<24)+this[++D]*2**16+this[++D]*2**8+this[++D];return(BigInt(ne)<>>0,B||ce(D,4,this.length),r.read(this,D,!0,23,4)},d.prototype.readFloatBE=function(D,B){return D=D>>>0,B||ce(D,4,this.length),r.read(this,D,!1,23,4)},d.prototype.readDoubleLE=function(D,B){return D=D>>>0,B||ce(D,8,this.length),r.read(this,D,!0,52,8)},d.prototype.readDoubleBE=function(D,B){return D=D>>>0,B||ce(D,8,this.length),r.read(this,D,!1,52,8)};function xe(W,D,B,K,ne,fe){if(!d.isBuffer(W))throw new TypeError('"buffer" argument must be a Buffer instance');if(D>ne||DW.length)throw new RangeError("Index out of range")}d.prototype.writeUintLE=d.prototype.writeUIntLE=function(D,B,K,ne){if(D=+D,B=B>>>0,K=K>>>0,!ne){const Le=Math.pow(2,8*K)-1;xe(this,D,B,K,Le,0)}let fe=1,ge=0;for(this[B]=D&255;++ge>>0,K=K>>>0,!ne){const Le=Math.pow(2,8*K)-1;xe(this,D,B,K,Le,0)}let fe=K-1,ge=1;for(this[B+fe]=D&255;--fe>=0&&(ge*=256);)this[B+fe]=D/ge&255;return B+K},d.prototype.writeUint8=d.prototype.writeUInt8=function(D,B,K){return D=+D,B=B>>>0,K||xe(this,D,B,1,255,0),this[B]=D&255,B+1},d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(D,B,K){return D=+D,B=B>>>0,K||xe(this,D,B,2,65535,0),this[B]=D&255,this[B+1]=D>>>8,B+2},d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(D,B,K){return D=+D,B=B>>>0,K||xe(this,D,B,2,65535,0),this[B]=D>>>8,this[B+1]=D&255,B+2},d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(D,B,K){return D=+D,B=B>>>0,K||xe(this,D,B,4,4294967295,0),this[B+3]=D>>>24,this[B+2]=D>>>16,this[B+1]=D>>>8,this[B]=D&255,B+4},d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(D,B,K){return D=+D,B=B>>>0,K||xe(this,D,B,4,4294967295,0),this[B]=D>>>24,this[B+1]=D>>>16,this[B+2]=D>>>8,this[B+3]=D&255,B+4};function Pe(W,D,B,K,ne){U(D,K,ne,W,B,7);let fe=Number(D&BigInt(4294967295));W[B++]=fe,fe=fe>>8,W[B++]=fe,fe=fe>>8,W[B++]=fe,fe=fe>>8,W[B++]=fe;let ge=Number(D>>BigInt(32)&BigInt(4294967295));return W[B++]=ge,ge=ge>>8,W[B++]=ge,ge=ge>>8,W[B++]=ge,ge=ge>>8,W[B++]=ge,B}function we(W,D,B,K,ne){U(D,K,ne,W,B,7);let fe=Number(D&BigInt(4294967295));W[B+7]=fe,fe=fe>>8,W[B+6]=fe,fe=fe>>8,W[B+5]=fe,fe=fe>>8,W[B+4]=fe;let ge=Number(D>>BigInt(32)&BigInt(4294967295));return W[B+3]=ge,ge=ge>>8,W[B+2]=ge,ge=ge>>8,W[B+1]=ge,ge=ge>>8,W[B]=ge,B+8}d.prototype.writeBigUInt64LE=ke(function(D,B=0){return Pe(this,D,B,BigInt(0),BigInt("0xffffffffffffffff"))}),d.prototype.writeBigUInt64BE=ke(function(D,B=0){return we(this,D,B,BigInt(0),BigInt("0xffffffffffffffff"))}),d.prototype.writeIntLE=function(D,B,K,ne){if(D=+D,B=B>>>0,!ne){const ee=Math.pow(2,8*K-1);xe(this,D,B,K,ee-1,-ee)}let fe=0,ge=1,Le=0;for(this[B]=D&255;++fe>0)-Le&255;return B+K},d.prototype.writeIntBE=function(D,B,K,ne){if(D=+D,B=B>>>0,!ne){const ee=Math.pow(2,8*K-1);xe(this,D,B,K,ee-1,-ee)}let fe=K-1,ge=1,Le=0;for(this[B+fe]=D&255;--fe>=0&&(ge*=256);)D<0&&Le===0&&this[B+fe+1]!==0&&(Le=1),this[B+fe]=(D/ge>>0)-Le&255;return B+K},d.prototype.writeInt8=function(D,B,K){return D=+D,B=B>>>0,K||xe(this,D,B,1,127,-128),D<0&&(D=255+D+1),this[B]=D&255,B+1},d.prototype.writeInt16LE=function(D,B,K){return D=+D,B=B>>>0,K||xe(this,D,B,2,32767,-32768),this[B]=D&255,this[B+1]=D>>>8,B+2},d.prototype.writeInt16BE=function(D,B,K){return D=+D,B=B>>>0,K||xe(this,D,B,2,32767,-32768),this[B]=D>>>8,this[B+1]=D&255,B+2},d.prototype.writeInt32LE=function(D,B,K){return D=+D,B=B>>>0,K||xe(this,D,B,4,2147483647,-2147483648),this[B]=D&255,this[B+1]=D>>>8,this[B+2]=D>>>16,this[B+3]=D>>>24,B+4},d.prototype.writeInt32BE=function(D,B,K){return D=+D,B=B>>>0,K||xe(this,D,B,4,2147483647,-2147483648),D<0&&(D=4294967295+D+1),this[B]=D>>>24,this[B+1]=D>>>16,this[B+2]=D>>>8,this[B+3]=D&255,B+4},d.prototype.writeBigInt64LE=ke(function(D,B=0){return Pe(this,D,B,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),d.prototype.writeBigInt64BE=ke(function(D,B=0){return we(this,D,B,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Re(W,D,B,K,ne,fe){if(B+K>W.length)throw new RangeError("Index out of range");if(B<0)throw new RangeError("Index out of range")}function Se(W,D,B,K,ne){return D=+D,B=B>>>0,ne||Re(W,D,B,4),r.write(W,D,B,K,23,4),B+4}d.prototype.writeFloatLE=function(D,B,K){return Se(this,D,B,!0,K)},d.prototype.writeFloatBE=function(D,B,K){return Se(this,D,B,!1,K)};function z(W,D,B,K,ne){return D=+D,B=B>>>0,ne||Re(W,D,B,8),r.write(W,D,B,K,52,8),B+8}d.prototype.writeDoubleLE=function(D,B,K){return z(this,D,B,!0,K)},d.prototype.writeDoubleBE=function(D,B,K){return z(this,D,B,!1,K)},d.prototype.copy=function(D,B,K,ne){if(!d.isBuffer(D))throw new TypeError("argument should be a Buffer");if(K||(K=0),!ne&&ne!==0&&(ne=this.length),B>=D.length&&(B=D.length),B||(B=0),ne>0&&ne=this.length)throw new RangeError("Index out of range");if(ne<0)throw new RangeError("sourceEnd out of bounds");ne>this.length&&(ne=this.length),D.length-B>>0,K=K===void 0?this.length:K>>>0,D||(D=0);let fe;if(typeof D=="number")for(fe=B;fe2**32?ne=T(String(B)):typeof B=="bigint"&&(ne=String(B),(B>BigInt(2)**BigInt(32)||B<-(BigInt(2)**BigInt(32)))&&(ne=T(ne)),ne+="n"),K+=` It must be ${D}. Received ${ne}`,K},RangeError);function T(W){let D="",B=W.length;const K=W[0]==="-"?1:0;for(;B>=K+4;B-=3)D=`_${W.slice(B-3,B)}${D}`;return`${W.slice(0,B)}${D}`}function R(W,D,B){G(D,"offset"),(W[D]===void 0||W[D+B]===void 0)&&Q(D,W.length-(B+1))}function U(W,D,B,K,ne,fe){if(W>B||W3?D===0||D===BigInt(0)?Le=`>= 0${ge} and < 2${ge} ** ${(fe+1)*8}${ge}`:Le=`>= -(2${ge} ** ${(fe+1)*8-1}${ge}) and < 2 ** ${(fe+1)*8-1}${ge}`:Le=`>= ${D}${ge} and <= ${B}${ge}`,new M.ERR_OUT_OF_RANGE("value",Le,W)}R(K,ne,fe)}function G(W,D){if(typeof W!="number")throw new M.ERR_INVALID_ARG_TYPE(D,"number",W)}function Q(W,D,B){throw Math.floor(W)!==W?(G(W,B),new M.ERR_OUT_OF_RANGE(B||"offset","an integer",W)):D<0?new M.ERR_BUFFER_OUT_OF_BOUNDS:new M.ERR_OUT_OF_RANGE(B||"offset",`>= ${B?1:0} and <= ${D}`,W)}const Z=/[^+/0-9A-Za-z-_]/g;function se(W){if(W=W.split("=")[0],W=W.trim().replace(Z,""),W.length<2)return"";for(;W.length%4!==0;)W=W+"=";return W}function re(W,D){D=D||1/0;let B;const K=W.length;let ne=null;const fe=[];for(let ge=0;ge55295&&B<57344){if(!ne){if(B>56319){(D-=3)>-1&&fe.push(239,191,189);continue}else if(ge+1===K){(D-=3)>-1&&fe.push(239,191,189);continue}ne=B;continue}if(B<56320){(D-=3)>-1&&fe.push(239,191,189),ne=B;continue}B=(ne-55296<<10|B-56320)+65536}else ne&&(D-=3)>-1&&fe.push(239,191,189);if(ne=null,B<128){if((D-=1)<0)break;fe.push(B)}else if(B<2048){if((D-=2)<0)break;fe.push(B>>6|192,B&63|128)}else if(B<65536){if((D-=3)<0)break;fe.push(B>>12|224,B>>6&63|128,B&63|128)}else if(B<1114112){if((D-=4)<0)break;fe.push(B>>18|240,B>>12&63|128,B>>6&63|128,B&63|128)}else throw new Error("Invalid code point")}return fe}function le(W){const D=[];for(let B=0;B>8,ne=B%256,fe.push(ne),fe.push(K);return fe}function _e(W){return e.toByteArray(se(W))}function Ie(W,D,B,K){let ne;for(ne=0;ne=D.length||ne>=W.length);++ne)D[ne+B]=W[ne];return ne}function Ee(W,D){return W instanceof D||W!=null&&W.constructor!=null&&W.constructor.name!=null&&W.constructor.name===D.name}function Me(W){return W!==W}const Ce=function(){const W="0123456789abcdef",D=new Array(256);for(let B=0;B<16;++B){const K=B*16;for(let ne=0;ne<16;++ne)D[K+ne]=W[B]+W[ne]}return D}();function ke(W){return typeof BigInt>"u"?qe:W}function qe(){throw new Error("BigInt not supported")}})(BN);const Zi=BN.Buffer,tue=BN.Buffer,$N={identify:t=>t instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(t,e){if(typeof Zi=="function")return Zi.from(t,"base64");if(typeof atob=="function"){const r=atob(t.replace(/[\n\r]/g,"")),n=new Uint8Array(r.length);for(let a=0;a1&&e("Each pair must have its own sequence indicator");const a=n.items[0]||new ni(new jt(null));if(n.commentBefore&&(a.key.commentBefore=a.key.commentBefore?`${n.commentBefore} ${a.key.commentBefore}`:n.commentBefore),n.comment){const s=a.value??a.key;s.comment=s.comment?`${n.comment} -${s.comment}`:n.comment}n=a}t.items[r]=Jr(n)?n:new ni(n)}}else e("Expected a sequence for this tag");return t}function wG(t,e,r){const{replacer:n}=r,a=new Hc(t);a.tag="tag:yaml.org,2002:pairs";let s=0;if(e&&Symbol.iterator in Object(e))for(let o of e){typeof n=="function"&&(o=n.call(e,String(s++),o));let u,c;if(Array.isArray(o))if(o.length===2)u=o[0],c=o[1];else throw new TypeError(`Expected [key, value] tuple: ${o}`);else if(o&&o instanceof Object){const l=Object.keys(o);if(l.length===1)u=l[0],c=o[u];else throw new TypeError(`Expected tuple with one key, not ${l.length} keys`)}else u=o;a.items.push(jN(u,c,r))}return a}const UN={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:vG,createNode:wG};class dd extends Hc{constructor(){super(),this.add=Yi.prototype.add.bind(this),this.delete=Yi.prototype.delete.bind(this),this.get=Yi.prototype.get.bind(this),this.has=Yi.prototype.has.bind(this),this.set=Yi.prototype.set.bind(this),this.tag=dd.tag}toJSON(e,r){if(!r)return super.toJSON(e);const n=new Map;r!=null&&r.onCreate&&r.onCreate(n);for(const a of this.items){let s,o;if(Jr(a)?(s=aa(a.key,"",r),o=aa(a.value,s,r)):s=aa(a,"",r),n.has(s))throw new Error("Ordered maps must not include duplicate keys");n.set(s,o)}return n}static from(e,r,n){const a=wG(e,r,n),s=new this;return s.items=a.items,s}}dd.tag="tag:yaml.org,2002:omap";const kN={collection:"seq",identify:t=>t instanceof Map,nodeClass:dd,default:!1,tag:"tag:yaml.org,2002:omap",resolve(t,e){const r=vG(t,e),n=[];for(const{key:a}of r.items)xr(a)&&(n.includes(a.value)?e(`Ordered maps must not include duplicate keys: ${a.value}`):n.push(a.value));return Object.assign(new dd,r)},createNode:(t,e,r)=>dd.from(t,e,r)};function SG({value:t,source:e},r){return e&&(t?TG:EG).test.test(e)?e:t?r.options.trueStr:r.options.falseStr}const TG={identify:t=>t===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new jt(!0),stringify:SG},EG={identify:t=>t===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new jt(!1),stringify:SG},nue={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:t=>t.slice(-3).toLowerCase()==="nan"?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:$a},iue={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t.replace(/_/g,"")),stringify(t){const e=Number(t.value);return isFinite(e)?e.toExponential():$a(t)}},aue={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(t){const e=new jt(parseFloat(t.replace(/_/g,""))),r=t.indexOf(".");if(r!==-1){const n=t.substring(r+1).replace(/_/g,"");n[n.length-1]==="0"&&(e.minFractionDigits=n.length)}return e},stringify:$a},Fb=t=>typeof t=="bigint"||Number.isInteger(t);function YS(t,e,r,{intAsBigInt:n}){const a=t[0];if((a==="-"||a==="+")&&(e+=1),t=t.substring(e).replace(/_/g,""),n){switch(r){case 2:t=`0b${t}`;break;case 8:t=`0o${t}`;break;case 16:t=`0x${t}`;break}const o=BigInt(t);return a==="-"?BigInt(-1)*o:o}const s=parseInt(t,r);return a==="-"?-1*s:s}function VN(t,e,r){const{value:n}=t;if(Fb(n)){const a=n.toString(e);return n<0?"-"+r+a.substr(1):r+a}return $a(t)}const sue={identify:Fb,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(t,e,r)=>YS(t,2,2,r),stringify:t=>VN(t,2,"0b")},oue={identify:Fb,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(t,e,r)=>YS(t,1,8,r),stringify:t=>VN(t,8,"0")},uue={identify:Fb,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(t,e,r)=>YS(t,0,10,r),stringify:$a},cue={identify:Fb,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(t,e,r)=>YS(t,2,16,r),stringify:t=>VN(t,16,"0x")};class fd extends Yi{constructor(e){super(e),this.tag=fd.tag}add(e){let r;Jr(e)?r=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?r=new ni(e.key,null):r=new ni(e,null),Ic(this.items,r.key)||this.items.push(r)}get(e,r){const n=Ic(this.items,e);return!r&&Jr(n)?xr(n.key)?n.key.value:n.key:n}set(e,r){if(typeof r!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof r}`);const n=Ic(this.items,e);n&&!r?this.items.splice(this.items.indexOf(n),1):!n&&r&&this.items.push(new ni(e))}toJSON(e,r){return super.toJSON(e,r,Set)}toString(e,r,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),r,n);throw new Error("Set items must all have null values")}static from(e,r,n){const{replacer:a}=n,s=new this(e);if(r&&Symbol.iterator in Object(r))for(let o of r)typeof a=="function"&&(o=a.call(r,o,o)),s.items.push(jN(o,null,n));return s}}fd.tag="tag:yaml.org,2002:set";const HN={collection:"map",identify:t=>t instanceof Set,nodeClass:fd,default:!1,tag:"tag:yaml.org,2002:set",createNode:(t,e,r)=>fd.from(t,e,r),resolve(t,e){if(jb(t)){if(t.hasAllNullValues(!0))return Object.assign(new fd,t);e("Set items must all have null values")}else e("Expected a mapping for this tag");return t}};function QN(t,e){const r=t[0],n=r==="-"||r==="+"?t.substring(1):t,a=o=>e?BigInt(o):Number(o),s=n.replace(/_/g,"").split(":").reduce((o,u)=>o*a(60)+a(u),a(0));return r==="-"?a(-1)*s:s}function AG(t){let{value:e}=t,r=o=>o;if(typeof e=="bigint")r=o=>BigInt(o);else if(isNaN(e)||!isFinite(e))return $a(t);let n="";e<0&&(n="-",e*=r(-1));const a=r(60),s=[e%a];return e<60?s.unshift(0):(e=(e-s[0])/a,s.unshift(e%a),e>=60&&(e=(e-s[0])/a,s.unshift(e))),n+s.map(o=>String(o).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const OG={identify:t=>typeof t=="bigint"||Number.isInteger(t),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(t,e,{intAsBigInt:r})=>QN(t,r),stringify:AG},RG={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:t=>QN(t,!1),stringify:AG},ZS={identify:t=>t instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(t){const e=t.match(ZS.test);if(!e)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,r,n,a,s,o,u]=e.map(Number),c=e[7]?Number((e[7]+"00").substr(1,3)):0;let l=Date.UTC(r,n-1,a,s||0,o||0,u||0,c);const d=e[8];if(d&&d!=="Z"){let f=QN(d,!1);Math.abs(f)<30&&(f*=60),l-=6e4*f}return new Date(l)},stringify:({value:t})=>t.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},L6=[cf,lf,WS,KS,TG,EG,sue,oue,uue,cue,nue,iue,aue,$N,kN,UN,HN,OG,RG,ZS],j6=new Map([["core",Hoe],["failsafe",[cf,lf,WS]],["json",Goe],["yaml11",L6],["yaml-1.1",L6]]),M6={binary:$N,bool:MN,float:pG,floatExp:hG,floatNaN:fG,floatTime:RG,int:gG,intHex:_G,intOct:mG,intTime:OG,map:cf,null:KS,omap:kN,pairs:UN,seq:lf,set:HN,timestamp:ZS},lue={"tag:yaml.org,2002:binary":$N,"tag:yaml.org,2002:omap":kN,"tag:yaml.org,2002:pairs":UN,"tag:yaml.org,2002:set":HN,"tag:yaml.org,2002:timestamp":ZS};function DE(t,e){let r=j6.get(e);if(!r)if(Array.isArray(t))r=[];else{const n=Array.from(j6.keys()).filter(a=>a!=="yaml11").map(a=>JSON.stringify(a)).join(", ");throw new Error(`Unknown schema "${e}"; use one of ${n} or define customTags array`)}if(Array.isArray(t))for(const n of t)r=r.concat(n);else typeof t=="function"&&(r=t(r.slice()));return r.map(n=>{if(typeof n!="string")return n;const a=M6[n];if(a)return a;const s=Object.keys(M6).map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown custom tag "${n}"; use one of ${s}`)})}const due=(t,e)=>t.keye.key?1:0;class zN{constructor({compat:e,customTags:r,merge:n,resolveKnownTags:a,schema:s,sortMapEntries:o,toStringDefaults:u}){this.compat=Array.isArray(e)?DE(e,"compat"):e?DE(null,e):null,this.merge=!!n,this.name=typeof s=="string"&&s||"core",this.knownTags=a?lue:{},this.tags=DE(r,this.name),this.toStringOptions=u??null,Object.defineProperty(this,nu,{value:cf}),Object.defineProperty(this,mo,{value:WS}),Object.defineProperty(this,of,{value:lf}),this.sortMapEntries=typeof o=="function"?o:o===!0?due:null}clone(){const e=Object.create(zN.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}function fue(t,e){var c;const r=[];let n=e.directives===!0;if(e.directives!==!1&&t.directives){const l=t.directives.toString(t);l?(r.push(l),n=!0):t.directives.docStart&&(n=!0)}n&&r.push("---");const a=iG(t,e),{commentString:s}=a.options;if(t.commentBefore){r.length!==1&&r.unshift("");const l=s(t.commentBefore);r.unshift(ro(l,""))}let o=!1,u=null;if(t.contents){if(tn(t.contents)){if(t.contents.spaceBefore&&n&&r.push(""),t.contents.commentBefore){const f=s(t.contents.commentBefore);r.push(ro(f,""))}a.forceBlockIndent=!!t.comment,u=t.contents.comment}const l=u?void 0:()=>o=!0;let d=Ld(t.contents,a,()=>u=null,l);u&&(d+=Rc(d,"",s(u))),(d[0]==="|"||d[0]===">")&&r[r.length-1]==="---"?r[r.length-1]=`--- ${d}`:r.push(d)}else r.push(Ld(t.contents,a));if((c=t.directives)!=null&&c.docEnd)if(t.comment){const l=s(t.comment);l.includes(` +${s.comment}`:n.comment}n=a}t.items[r]=Jr(n)?n:new ni(n)}}else e("Expected a sequence for this tag");return t}function wG(t,e,r){const{replacer:n}=r,a=new Hc(t);a.tag="tag:yaml.org,2002:pairs";let s=0;if(e&&Symbol.iterator in Object(e))for(let o of e){typeof n=="function"&&(o=n.call(e,String(s++),o));let u,c;if(Array.isArray(o))if(o.length===2)u=o[0],c=o[1];else throw new TypeError(`Expected [key, value] tuple: ${o}`);else if(o&&o instanceof Object){const l=Object.keys(o);if(l.length===1)u=l[0],c=o[u];else throw new TypeError(`Expected tuple with one key, not ${l.length} keys`)}else u=o;a.items.push(jN(u,c,r))}return a}const UN={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:vG,createNode:wG};class ld extends Hc{constructor(){super(),this.add=Yi.prototype.add.bind(this),this.delete=Yi.prototype.delete.bind(this),this.get=Yi.prototype.get.bind(this),this.has=Yi.prototype.has.bind(this),this.set=Yi.prototype.set.bind(this),this.tag=ld.tag}toJSON(e,r){if(!r)return super.toJSON(e);const n=new Map;r!=null&&r.onCreate&&r.onCreate(n);for(const a of this.items){let s,o;if(Jr(a)?(s=aa(a.key,"",r),o=aa(a.value,s,r)):s=aa(a,"",r),n.has(s))throw new Error("Ordered maps must not include duplicate keys");n.set(s,o)}return n}static from(e,r,n){const a=wG(e,r,n),s=new this;return s.items=a.items,s}}ld.tag="tag:yaml.org,2002:omap";const kN={collection:"seq",identify:t=>t instanceof Map,nodeClass:ld,default:!1,tag:"tag:yaml.org,2002:omap",resolve(t,e){const r=vG(t,e),n=[];for(const{key:a}of r.items)xr(a)&&(n.includes(a.value)?e(`Ordered maps must not include duplicate keys: ${a.value}`):n.push(a.value));return Object.assign(new ld,r)},createNode:(t,e,r)=>ld.from(t,e,r)};function SG({value:t,source:e},r){return e&&(t?TG:EG).test.test(e)?e:t?r.options.trueStr:r.options.falseStr}const TG={identify:t=>t===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new jt(!0),stringify:SG},EG={identify:t=>t===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new jt(!1),stringify:SG},rue={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:t=>t.slice(-3).toLowerCase()==="nan"?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:$a},nue={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t.replace(/_/g,"")),stringify(t){const e=Number(t.value);return isFinite(e)?e.toExponential():$a(t)}},iue={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(t){const e=new jt(parseFloat(t.replace(/_/g,""))),r=t.indexOf(".");if(r!==-1){const n=t.substring(r+1).replace(/_/g,"");n[n.length-1]==="0"&&(e.minFractionDigits=n.length)}return e},stringify:$a},Fb=t=>typeof t=="bigint"||Number.isInteger(t);function XS(t,e,r,{intAsBigInt:n}){const a=t[0];if((a==="-"||a==="+")&&(e+=1),t=t.substring(e).replace(/_/g,""),n){switch(r){case 2:t=`0b${t}`;break;case 8:t=`0o${t}`;break;case 16:t=`0x${t}`;break}const o=BigInt(t);return a==="-"?BigInt(-1)*o:o}const s=parseInt(t,r);return a==="-"?-1*s:s}function VN(t,e,r){const{value:n}=t;if(Fb(n)){const a=n.toString(e);return n<0?"-"+r+a.substr(1):r+a}return $a(t)}const aue={identify:Fb,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(t,e,r)=>XS(t,2,2,r),stringify:t=>VN(t,2,"0b")},sue={identify:Fb,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(t,e,r)=>XS(t,1,8,r),stringify:t=>VN(t,8,"0")},oue={identify:Fb,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(t,e,r)=>XS(t,0,10,r),stringify:$a},uue={identify:Fb,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(t,e,r)=>XS(t,2,16,r),stringify:t=>VN(t,16,"0x")};class dd extends Yi{constructor(e){super(e),this.tag=dd.tag}add(e){let r;Jr(e)?r=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?r=new ni(e.key,null):r=new ni(e,null),Ic(this.items,r.key)||this.items.push(r)}get(e,r){const n=Ic(this.items,e);return!r&&Jr(n)?xr(n.key)?n.key.value:n.key:n}set(e,r){if(typeof r!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof r}`);const n=Ic(this.items,e);n&&!r?this.items.splice(this.items.indexOf(n),1):!n&&r&&this.items.push(new ni(e))}toJSON(e,r){return super.toJSON(e,r,Set)}toString(e,r,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),r,n);throw new Error("Set items must all have null values")}static from(e,r,n){const{replacer:a}=n,s=new this(e);if(r&&Symbol.iterator in Object(r))for(let o of r)typeof a=="function"&&(o=a.call(r,o,o)),s.items.push(jN(o,null,n));return s}}dd.tag="tag:yaml.org,2002:set";const HN={collection:"map",identify:t=>t instanceof Set,nodeClass:dd,default:!1,tag:"tag:yaml.org,2002:set",createNode:(t,e,r)=>dd.from(t,e,r),resolve(t,e){if(jb(t)){if(t.hasAllNullValues(!0))return Object.assign(new dd,t);e("Set items must all have null values")}else e("Expected a mapping for this tag");return t}};function QN(t,e){const r=t[0],n=r==="-"||r==="+"?t.substring(1):t,a=o=>e?BigInt(o):Number(o),s=n.replace(/_/g,"").split(":").reduce((o,u)=>o*a(60)+a(u),a(0));return r==="-"?a(-1)*s:s}function AG(t){let{value:e}=t,r=o=>o;if(typeof e=="bigint")r=o=>BigInt(o);else if(isNaN(e)||!isFinite(e))return $a(t);let n="";e<0&&(n="-",e*=r(-1));const a=r(60),s=[e%a];return e<60?s.unshift(0):(e=(e-s[0])/a,s.unshift(e%a),e>=60&&(e=(e-s[0])/a,s.unshift(e))),n+s.map(o=>String(o).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const OG={identify:t=>typeof t=="bigint"||Number.isInteger(t),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(t,e,{intAsBigInt:r})=>QN(t,r),stringify:AG},RG={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:t=>QN(t,!1),stringify:AG},YS={identify:t=>t instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(t){const e=t.match(YS.test);if(!e)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,r,n,a,s,o,u]=e.map(Number),c=e[7]?Number((e[7]+"00").substr(1,3)):0;let l=Date.UTC(r,n-1,a,s||0,o||0,u||0,c);const d=e[8];if(d&&d!=="Z"){let f=QN(d,!1);Math.abs(f)<30&&(f*=60),l-=6e4*f}return new Date(l)},stringify:({value:t})=>t.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},L6=[cf,lf,GS,WS,TG,EG,aue,sue,oue,uue,rue,nue,iue,$N,kN,UN,HN,OG,RG,YS],j6=new Map([["core",Voe],["failsafe",[cf,lf,GS]],["json",zoe],["yaml11",L6],["yaml-1.1",L6]]),M6={binary:$N,bool:MN,float:pG,floatExp:hG,floatNaN:fG,floatTime:RG,int:gG,intHex:_G,intOct:mG,intTime:OG,map:cf,null:WS,omap:kN,pairs:UN,seq:lf,set:HN,timestamp:YS},cue={"tag:yaml.org,2002:binary":$N,"tag:yaml.org,2002:omap":kN,"tag:yaml.org,2002:pairs":UN,"tag:yaml.org,2002:set":HN,"tag:yaml.org,2002:timestamp":YS};function NE(t,e){let r=j6.get(e);if(!r)if(Array.isArray(t))r=[];else{const n=Array.from(j6.keys()).filter(a=>a!=="yaml11").map(a=>JSON.stringify(a)).join(", ");throw new Error(`Unknown schema "${e}"; use one of ${n} or define customTags array`)}if(Array.isArray(t))for(const n of t)r=r.concat(n);else typeof t=="function"&&(r=t(r.slice()));return r.map(n=>{if(typeof n!="string")return n;const a=M6[n];if(a)return a;const s=Object.keys(M6).map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown custom tag "${n}"; use one of ${s}`)})}const lue=(t,e)=>t.keye.key?1:0;class zN{constructor({compat:e,customTags:r,merge:n,resolveKnownTags:a,schema:s,sortMapEntries:o,toStringDefaults:u}){this.compat=Array.isArray(e)?NE(e,"compat"):e?NE(null,e):null,this.merge=!!n,this.name=typeof s=="string"&&s||"core",this.knownTags=a?cue:{},this.tags=NE(r,this.name),this.toStringOptions=u??null,Object.defineProperty(this,nu,{value:cf}),Object.defineProperty(this,mo,{value:GS}),Object.defineProperty(this,of,{value:lf}),this.sortMapEntries=typeof o=="function"?o:o===!0?lue:null}clone(){const e=Object.create(zN.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}function due(t,e){var c;const r=[];let n=e.directives===!0;if(e.directives!==!1&&t.directives){const l=t.directives.toString(t);l?(r.push(l),n=!0):t.directives.docStart&&(n=!0)}n&&r.push("---");const a=iG(t,e),{commentString:s}=a.options;if(t.commentBefore){r.length!==1&&r.unshift("");const l=s(t.commentBefore);r.unshift(ro(l,""))}let o=!1,u=null;if(t.contents){if(tn(t.contents)){if(t.contents.spaceBefore&&n&&r.push(""),t.contents.commentBefore){const f=s(t.contents.commentBefore);r.push(ro(f,""))}a.forceBlockIndent=!!t.comment,u=t.contents.comment}const l=u?void 0:()=>o=!0;let d=Cd(t.contents,a,()=>u=null,l);u&&(d+=Rc(d,"",s(u))),(d[0]==="|"||d[0]===">")&&r[r.length-1]==="---"?r[r.length-1]=`--- ${d}`:r.push(d)}else r.push(Cd(t.contents,a));if((c=t.directives)!=null&&c.docEnd)if(t.comment){const l=s(t.comment);l.includes(` `)?(r.push("..."),r.push(ro(l,""))):r.push(`... ${l}`)}else r.push("...");else{let l=t.comment;l&&o&&(l=l.replace(/^\n+/,"")),l&&((!o||u)&&r[r.length-1]!==""&&r.push(""),r.push(ro(s(l),"")))}return r.join(` `)+` -`}let xG=class IG{constructor(e,r,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,da,{value:PI});let a=null;typeof r=="function"||Array.isArray(r)?a=r:n===void 0&&r&&(n=r,r=void 0);const s=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},n);this.options=s;let{version:o}=s;n!=null&&n._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new Xn({version:o}),this.setSchema(o,n),this.contents=e===void 0?null:this.createNode(e,a,n)}clone(){const e=Object.create(IG.prototype,{[da]:{value:PI}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=tn(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){Ll(this.contents)&&this.contents.add(e)}addIn(e,r){Ll(this.contents)&&this.contents.addIn(e,r)}createAlias(e,r){if(!e.anchor){const n=Zz(this);e.anchor=!r||n.has(r)?eG(r||"a",n):r}return new CN(e.anchor)}createNode(e,r,n){let a;if(typeof r=="function")e=r.call({"":e},"",e),a=r;else if(Array.isArray(r)){const g=v=>typeof v=="number"||v instanceof String||v instanceof Number,b=r.filter(g).map(String);b.length>0&&(r=r.concat(b)),a=r}else n===void 0&&r&&(n=r,r=void 0);const{aliasDuplicateObjects:s,anchorPrefix:o,flow:u,keepUndefined:c,onTagObj:l,tag:d}=n??{},{onAnchor:f,setAnchors:h,sourceObjects:p}=Roe(this,o||"a"),m={aliasDuplicateObjects:s??!0,keepUndefined:c??!1,onAnchor:f,onTagObj:l,replacer:a,schema:this.schema,sourceObjects:p},y=rb(e,d,m);return u&&Kr(y)&&(y.flow=!0),h(),y}createPair(e,r,n={}){const a=this.createNode(e,null,n),s=this.createNode(r,null,n);return new ni(a,s)}delete(e){return Ll(this.contents)?this.contents.delete(e):!1}deleteIn(e){return g_(e)?this.contents==null?!1:(this.contents=null,!0):Ll(this.contents)?this.contents.deleteIn(e):!1}get(e,r){return Kr(this.contents)?this.contents.get(e,r):void 0}getIn(e,r){return g_(e)?!r&&xr(this.contents)?this.contents.value:this.contents:Kr(this.contents)?this.contents.getIn(e,r):void 0}has(e){return Kr(this.contents)?this.contents.has(e):!1}hasIn(e){return g_(e)?this.contents!==void 0:Kr(this.contents)?this.contents.hasIn(e):!1}set(e,r){this.contents==null?this.contents=eS(this.schema,[e],r):Ll(this.contents)&&this.contents.set(e,r)}setIn(e,r){g_(e)?this.contents=r:this.contents==null?this.contents=eS(this.schema,Array.from(e),r):Ll(this.contents)&&this.contents.setIn(e,r)}setSchema(e,r={}){typeof e=="number"&&(e=String(e));let n;switch(e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new Xn({version:"1.1"}),n={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new Xn({version:e}),n={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{const a=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${a}`)}}if(r.schema instanceof Object)this.schema=r.schema;else if(n)this.schema=new zN(Object.assign(n,r));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:r,mapAsMap:n,maxAliasCount:a,onAnchor:s,reviver:o}={}){const u={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof a=="number"?a:100},c=aa(this.contents,r??"",u);if(typeof s=="function")for(const{count:l,res:d}of u.anchors.values())s(d,l);return typeof o=="function"?nd(o,{"":c},"",c):c}toJSON(e,r){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:r})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const r=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${r}`)}return fue(this,e)}};function Ll(t){if(Kr(t))return!0;throw new Error("Expected a YAML collection as document contents")}class PG extends Error{constructor(e,r,n,a){super(),this.name=e,this.code=n,this.message=a,this.pos=r}}class __ extends PG{constructor(e,r,n){super("YAMLParseError",e,r,n)}}class hue extends PG{constructor(e,r,n){super("YAMLWarning",e,r,n)}}const F6=(t,e)=>r=>{if(r.pos[0]===-1)return;r.linePos=r.pos.map(u=>e.linePos(u));const{line:n,col:a}=r.linePos[0];r.message+=` at line ${n}, column ${a}`;let s=a-1,o=t.substring(e.lineStarts[n-1],e.lineStarts[n]).replace(/[\n\r]+$/,"");if(s>=60&&o.length>80){const u=Math.min(s-39,o.length-79);o="…"+o.substring(u),s-=u-1}if(o.length>80&&(o=o.substring(0,79)+"…"),n>1&&/^ *$/.test(o.substring(0,s))){let u=t.substring(e.lineStarts[n-2],e.lineStarts[n-1]);u.length>80&&(u=u.substring(0,79)+`… +`}let xG=class IG{constructor(e,r,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,da,{value:II});let a=null;typeof r=="function"||Array.isArray(r)?a=r:n===void 0&&r&&(n=r,r=void 0);const s=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},n);this.options=s;let{version:o}=s;n!=null&&n._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new Xn({version:o}),this.setSchema(o,n),this.contents=e===void 0?null:this.createNode(e,a,n)}clone(){const e=Object.create(IG.prototype,{[da]:{value:II}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=tn(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){Cl(this.contents)&&this.contents.add(e)}addIn(e,r){Cl(this.contents)&&this.contents.addIn(e,r)}createAlias(e,r){if(!e.anchor){const n=Zz(this);e.anchor=!r||n.has(r)?eG(r||"a",n):r}return new CN(e.anchor)}createNode(e,r,n){let a;if(typeof r=="function")e=r.call({"":e},"",e),a=r;else if(Array.isArray(r)){const g=v=>typeof v=="number"||v instanceof String||v instanceof Number,b=r.filter(g).map(String);b.length>0&&(r=r.concat(b)),a=r}else n===void 0&&r&&(n=r,r=void 0);const{aliasDuplicateObjects:s,anchorPrefix:o,flow:u,keepUndefined:c,onTagObj:l,tag:d}=n??{},{onAnchor:f,setAnchors:h,sourceObjects:p}=Ooe(this,o||"a"),m={aliasDuplicateObjects:s??!0,keepUndefined:c??!1,onAnchor:f,onTagObj:l,replacer:a,schema:this.schema,sourceObjects:p},y=rb(e,d,m);return u&&Kr(y)&&(y.flow=!0),h(),y}createPair(e,r,n={}){const a=this.createNode(e,null,n),s=this.createNode(r,null,n);return new ni(a,s)}delete(e){return Cl(this.contents)?this.contents.delete(e):!1}deleteIn(e){return g_(e)?this.contents==null?!1:(this.contents=null,!0):Cl(this.contents)?this.contents.deleteIn(e):!1}get(e,r){return Kr(this.contents)?this.contents.get(e,r):void 0}getIn(e,r){return g_(e)?!r&&xr(this.contents)?this.contents.value:this.contents:Kr(this.contents)?this.contents.getIn(e,r):void 0}has(e){return Kr(this.contents)?this.contents.has(e):!1}hasIn(e){return g_(e)?this.contents!==void 0:Kr(this.contents)?this.contents.hasIn(e):!1}set(e,r){this.contents==null?this.contents=eS(this.schema,[e],r):Cl(this.contents)&&this.contents.set(e,r)}setIn(e,r){g_(e)?this.contents=r:this.contents==null?this.contents=eS(this.schema,Array.from(e),r):Cl(this.contents)&&this.contents.setIn(e,r)}setSchema(e,r={}){typeof e=="number"&&(e=String(e));let n;switch(e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new Xn({version:"1.1"}),n={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new Xn({version:e}),n={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{const a=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${a}`)}}if(r.schema instanceof Object)this.schema=r.schema;else if(n)this.schema=new zN(Object.assign(n,r));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:r,mapAsMap:n,maxAliasCount:a,onAnchor:s,reviver:o}={}){const u={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof a=="number"?a:100},c=aa(this.contents,r??"",u);if(typeof s=="function")for(const{count:l,res:d}of u.anchors.values())s(d,l);return typeof o=="function"?rd(o,{"":c},"",c):c}toJSON(e,r){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:r})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const r=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${r}`)}return due(this,e)}};function Cl(t){if(Kr(t))return!0;throw new Error("Expected a YAML collection as document contents")}class PG extends Error{constructor(e,r,n,a){super(),this.name=e,this.code=n,this.message=a,this.pos=r}}class __ extends PG{constructor(e,r,n){super("YAMLParseError",e,r,n)}}class fue extends PG{constructor(e,r,n){super("YAMLWarning",e,r,n)}}const F6=(t,e)=>r=>{if(r.pos[0]===-1)return;r.linePos=r.pos.map(u=>e.linePos(u));const{line:n,col:a}=r.linePos[0];r.message+=` at line ${n}, column ${a}`;let s=a-1,o=t.substring(e.lineStarts[n-1],e.lineStarts[n]).replace(/[\n\r]+$/,"");if(s>=60&&o.length>80){const u=Math.min(s-39,o.length-79);o="…"+o.substring(u),s-=u-1}if(o.length>80&&(o=o.substring(0,79)+"…"),n>1&&/^ *$/.test(o.substring(0,s))){let u=t.substring(e.lineStarts[n-2],e.lineStarts[n-1]);u.length>80&&(u=u.substring(0,79)+`… `),o=u+o}if(/[^ ]/.test(o)){let u=1;const c=r.linePos[1];c&&c.line===n&&c.col>a&&(u=Math.max(1,Math.min(c.col-a,80-s)));const l=" ".repeat(s)+"^".repeat(u);r.message+=`: ${o} ${l} -`}};function jd(t,{flow:e,indicator:r,next:n,offset:a,onError:s,parentIndent:o,startOnNewline:u}){let c=!1,l=u,d=u,f="",h="",p=!1,m=!1,y=null,g=null,b=null,v=null,_=null,w=null,E=null;for(const F of t)switch(m&&(F.type!=="space"&&F.type!=="newline"&&F.type!=="comma"&&s(F.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),m=!1),y&&(l&&F.type!=="comment"&&F.type!=="newline"&&s(y,"TAB_AS_INDENT","Tabs are not allowed as indentation"),y=null),F.type){case"space":!e&&(r!=="doc-start"||(n==null?void 0:n.type)!=="flow-collection")&&F.source.includes(" ")&&(y=F),d=!0;break;case"comment":{d||s(F,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const x=F.source.substring(1)||" ";f?f+=h+x:f=x,h="",l=!1;break}case"newline":l?f?f+=F.source:c=!0:h+=F.source,l=!0,p=!0,(g||b)&&(v=F),d=!0;break;case"anchor":g&&s(F,"MULTIPLE_ANCHORS","A node can have at most one anchor"),F.source.endsWith(":")&&s(F.offset+F.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),g=F,E===null&&(E=F.offset),l=!1,d=!1,m=!0;break;case"tag":{b&&s(F,"MULTIPLE_TAGS","A node can have at most one tag"),b=F,E===null&&(E=F.offset),l=!1,d=!1,m=!0;break}case r:(g||b)&&s(F,"BAD_PROP_ORDER",`Anchors and tags must be after the ${F.source} indicator`),w&&s(F,"UNEXPECTED_TOKEN",`Unexpected ${F.source} in ${e??"collection"}`),w=F,l=r==="seq-item-ind"||r==="explicit-key-ind",d=!1;break;case"comma":if(e){_&&s(F,"UNEXPECTED_TOKEN",`Unexpected , in ${e}`),_=F,l=!1,d=!1;break}default:s(F,"UNEXPECTED_TOKEN",`Unexpected ${F.type} token`),l=!1,d=!1}const O=t[t.length-1],L=O?O.offset+O.source.length:a;return m&&n&&n.type!=="space"&&n.type!=="newline"&&n.type!=="comma"&&(n.type!=="scalar"||n.source!=="")&&s(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),y&&(l&&y.indent<=o||(n==null?void 0:n.type)==="block-map"||(n==null?void 0:n.type)==="block-seq")&&s(y,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:_,found:w,spaceBefore:c,comment:f,hasNewline:p,anchor:g,tag:b,newlineAfterProp:v,end:L,start:E??L}}function nb(t){if(!t)return null;switch(t.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(t.source.includes(` -`))return!0;if(t.end){for(const e of t.end)if(e.type==="newline")return!0}return!1;case"flow-collection":for(const e of t.items){for(const r of e.start)if(r.type==="newline")return!0;if(e.sep){for(const r of e.sep)if(r.type==="newline")return!0}if(nb(e.key)||nb(e.value))return!0}return!1;default:return!0}}function MI(t,e,r){if((e==null?void 0:e.type)==="flow-collection"){const n=e.end[0];n.indent===t&&(n.source==="]"||n.source==="}")&&nb(e)&&r(n,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function NG(t,e,r){const{uniqueKeys:n}=t.options;if(n===!1)return!1;const a=typeof n=="function"?n:(s,o)=>s===o||xr(s)&&xr(o)&&s.value===o.value&&!(s.value==="<<"&&t.schema.merge);return e.some(s=>a(s.key,r))}const B6="All mapping items must start at the same column";function pue({composeNode:t,composeEmptyNode:e},r,n,a,s){var d;const o=(s==null?void 0:s.nodeClass)??Yi,u=new o(r.schema);r.atRoot&&(r.atRoot=!1);let c=n.offset,l=null;for(const f of n.items){const{start:h,key:p,sep:m,value:y}=f,g=jd(h,{indicator:"explicit-key-ind",next:p??(m==null?void 0:m[0]),offset:c,onError:a,parentIndent:n.indent,startOnNewline:!0}),b=!g.found;if(b){if(p&&(p.type==="block-seq"?a(c,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in p&&p.indent!==n.indent&&a(c,"BAD_INDENT",B6)),!g.anchor&&!g.tag&&!m){l=g.end,g.comment&&(u.comment?u.comment+=` -`+g.comment:u.comment=g.comment);continue}(g.newlineAfterProp||nb(p))&&a(p??h[h.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((d=g.found)==null?void 0:d.indent)!==n.indent&&a(c,"BAD_INDENT",B6);const v=g.end,_=p?t(r,p,g,a):e(r,v,h,null,g,a);r.schema.compat&&MI(n.indent,p,a),NG(r,u.items,_)&&a(v,"DUPLICATE_KEY","Map keys must be unique");const w=jd(m??[],{indicator:"map-value-ind",next:y,offset:_.range[2],onError:a,parentIndent:n.indent,startOnNewline:!p||p.type==="block-scalar"});if(c=w.end,w.found){b&&((y==null?void 0:y.type)==="block-map"&&!w.hasNewline&&a(c,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),r.options.strict&&g.startt&&(t.type==="block-map"||t.type==="block-seq");function mue({composeNode:t,composeEmptyNode:e},r,n,a,s){const o=n.start.source==="{",u=o?"flow map":"flow sequence",c=(s==null?void 0:s.nodeClass)??(o?Yi:Hc),l=new c(r.schema);l.flow=!0;const d=r.atRoot;d&&(r.atRoot=!1);let f=n.offset+n.start.source.length;for(let g=0;gs===o||xr(s)&&xr(o)&&s.value===o.value&&!(s.value==="<<"&&t.schema.merge);return e.some(s=>a(s.key,r))}const B6="All mapping items must start at the same column";function hue({composeNode:t,composeEmptyNode:e},r,n,a,s){var d;const o=(s==null?void 0:s.nodeClass)??Yi,u=new o(r.schema);r.atRoot&&(r.atRoot=!1);let c=n.offset,l=null;for(const f of n.items){const{start:h,key:p,sep:m,value:y}=f,g=Ld(h,{indicator:"explicit-key-ind",next:p??(m==null?void 0:m[0]),offset:c,onError:a,parentIndent:n.indent,startOnNewline:!0}),b=!g.found;if(b){if(p&&(p.type==="block-seq"?a(c,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in p&&p.indent!==n.indent&&a(c,"BAD_INDENT",B6)),!g.anchor&&!g.tag&&!m){l=g.end,g.comment&&(u.comment?u.comment+=` +`+g.comment:u.comment=g.comment);continue}(g.newlineAfterProp||nb(p))&&a(p??h[h.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((d=g.found)==null?void 0:d.indent)!==n.indent&&a(c,"BAD_INDENT",B6);const v=g.end,_=p?t(r,p,g,a):e(r,v,h,null,g,a);r.schema.compat&&jI(n.indent,p,a),NG(r,u.items,_)&&a(v,"DUPLICATE_KEY","Map keys must be unique");const w=Ld(m??[],{indicator:"map-value-ind",next:y,offset:_.range[2],onError:a,parentIndent:n.indent,startOnNewline:!p||p.type==="block-scalar"});if(c=w.end,w.found){b&&((y==null?void 0:y.type)==="block-map"&&!w.hasNewline&&a(c,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),r.options.strict&&g.startt&&(t.type==="block-map"||t.type==="block-seq");function yue({composeNode:t,composeEmptyNode:e},r,n,a,s){const o=n.start.source==="{",u=o?"flow map":"flow sequence",c=(s==null?void 0:s.nodeClass)??(o?Yi:Hc),l=new c(r.schema);l.flow=!0;const d=r.atRoot;d&&(r.atRoot=!1);let f=n.offset+n.start.source.length;for(let g=0;g0){const g=Bb(m,y,r.options.strict,a);g.comment&&(l.comment?l.comment+=` -`+g.comment:l.comment=g.comment),l.range=[n.offset,y,g.offset]}else l.range=[n.offset,y,y];return l}function jE(t,e,r,n,a,s){const o=r.type==="block-map"?pue(t,e,r,n,s):r.type==="block-seq"?yue(t,e,r,n,s):mue(t,e,r,n,s),u=o.constructor;return a==="!"||a===u.tagName?(o.tag=u.tagName,o):(a&&(o.tag=a),o)}function gue(t,e,r,n,a){var h;const s=n.tag,o=s?e.directives.tagName(s.source,p=>a(s,"TAG_RESOLVE_FAILED",p)):null;if(r.type==="block-seq"){const{anchor:p,newlineAfterProp:m}=n,y=p&&s?p.offset>s.offset?p:s:p??s;y&&(!m||m.offsetp.tag===o&&p.collection===u);if(!c){const p=e.schema.knownTags[o];if(p&&p.collection===u)e.schema.tags.push(Object.assign({},p,{default:!1})),c=p;else return p!=null&&p.collection?a(s,"BAD_COLLECTION_TYPE",`${p.tag} used for ${u} collection, but expects ${p.collection}`,!0):a(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${o}`,!0),jE(t,e,r,a,o)}const l=jE(t,e,r,a,o,c),d=((h=c.resolve)==null?void 0:h.call(c,l,p=>a(s,"TAG_RESOLVE_FAILED",p),e.options))??l,f=tn(d)?d:new jt(d);return f.range=l.range,f.tag=o,c!=null&&c.format&&(f.format=c.format),f}function _ue(t,e,r){const n=e.offset,a=bue(e,t.options.strict,r);if(!a)return{value:"",type:null,comment:"",range:[n,n,n]};const s=a.mode===">"?jt.BLOCK_FOLDED:jt.BLOCK_LITERAL,o=e.source?vue(e.source):[];let u=o.length;for(let y=o.length-1;y>=0;--y){const g=o[y][1];if(g===""||g==="\r")u=y;else break}if(u===0){const y=a.chomp==="+"&&o.length>0?` +`+g.comment:l.comment=g.comment),l.range=[n.offset,y,g.offset]}else l.range=[n.offset,y,y];return l}function LE(t,e,r,n,a,s){const o=r.type==="block-map"?hue(t,e,r,n,s):r.type==="block-seq"?pue(t,e,r,n,s):yue(t,e,r,n,s),u=o.constructor;return a==="!"||a===u.tagName?(o.tag=u.tagName,o):(a&&(o.tag=a),o)}function mue(t,e,r,n,a){var h;const s=n.tag,o=s?e.directives.tagName(s.source,p=>a(s,"TAG_RESOLVE_FAILED",p)):null;if(r.type==="block-seq"){const{anchor:p,newlineAfterProp:m}=n,y=p&&s?p.offset>s.offset?p:s:p??s;y&&(!m||m.offsetp.tag===o&&p.collection===u);if(!c){const p=e.schema.knownTags[o];if(p&&p.collection===u)e.schema.tags.push(Object.assign({},p,{default:!1})),c=p;else return p!=null&&p.collection?a(s,"BAD_COLLECTION_TYPE",`${p.tag} used for ${u} collection, but expects ${p.collection}`,!0):a(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${o}`,!0),LE(t,e,r,a,o)}const l=LE(t,e,r,a,o,c),d=((h=c.resolve)==null?void 0:h.call(c,l,p=>a(s,"TAG_RESOLVE_FAILED",p),e.options))??l,f=tn(d)?d:new jt(d);return f.range=l.range,f.tag=o,c!=null&&c.format&&(f.format=c.format),f}function gue(t,e,r){const n=e.offset,a=_ue(e,t.options.strict,r);if(!a)return{value:"",type:null,comment:"",range:[n,n,n]};const s=a.mode===">"?jt.BLOCK_FOLDED:jt.BLOCK_LITERAL,o=e.source?bue(e.source):[];let u=o.length;for(let y=o.length-1;y>=0;--y){const g=o[y][1];if(g===""||g==="\r")u=y;else break}if(u===0){const y=a.chomp==="+"&&o.length>0?` `.repeat(Math.max(1,o.length-1)):"";let g=n+a.length;return e.source&&(g+=e.source.length),{value:y,type:s,comment:a.comment,range:[n,g,g]}}let c=e.indent+a.indent,l=e.offset+a.length,d=0;for(let y=0;yc&&(c=g.length);else{g.length=u;--y)o[y][0].length>c&&(u=y+1);let f="",h="",p=!1;for(let y=0;yc||b[0]===" "?(h===" "?h=` @@ -91,116 +91,116 @@ ${l} `+o[y][0].slice(c);f[f.length-1]!==` `&&(f+=` `);break;default:f+=` -`}const m=n+a.length+e.source.length;return{value:f,type:s,comment:a.comment,range:[n,m,m]}}function bue({offset:t,props:e},r,n){if(e[0].type!=="block-scalar-header")return n(e[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:a}=e[0],s=a[0];let o=0,u="",c=-1;for(let h=1;hr(n+h,p,m);switch(a){case"scalar":u=jt.PLAIN,c=Sue(s,l);break;case"single-quoted-scalar":u=jt.QUOTE_SINGLE,c=Tue(s,l);break;case"double-quoted-scalar":u=jt.QUOTE_DOUBLE,c=Eue(s,l);break;default:return r(t,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${a}`),{value:"",type:null,comment:"",range:[n,n+s.length,n+s.length]}}const d=n+s.length,f=Bb(o,d,e,r);return{value:c,type:u,comment:f.comment,range:[n,d,f.offset]}}function Sue(t,e){let r="";switch(t[0]){case" ":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":{r=`block scalar indicator ${t[0]}`;break}case"@":case"`":{r=`reserved character ${t[0]}`;break}}return r&&e(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`),DG(t)}function Tue(t,e){return(t[t.length-1]!=="'"||t.length===1)&&e(t.length,"MISSING_CHAR","Missing closing 'quote"),DG(t.slice(1,-1)).replace(/''/g,"'")}function DG(t){let e,r;try{e=new RegExp(`(.*?)(?r(n+h,p,m);switch(a){case"scalar":u=jt.PLAIN,c=wue(s,l);break;case"single-quoted-scalar":u=jt.QUOTE_SINGLE,c=Sue(s,l);break;case"double-quoted-scalar":u=jt.QUOTE_DOUBLE,c=Tue(s,l);break;default:return r(t,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${a}`),{value:"",type:null,comment:"",range:[n,n+s.length,n+s.length]}}const d=n+s.length,f=Bb(o,d,e,r);return{value:c,type:u,comment:f.comment,range:[n,d,f.offset]}}function wue(t,e){let r="";switch(t[0]){case" ":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":{r=`block scalar indicator ${t[0]}`;break}case"@":case"`":{r=`reserved character ${t[0]}`;break}}return r&&e(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`),DG(t)}function Sue(t,e){return(t[t.length-1]!=="'"||t.length===1)&&e(t.length,"MISSING_CHAR","Missing closing 'quote"),DG(t.slice(1,-1)).replace(/''/g,"'")}function DG(t){let e,r;try{e=new RegExp(`(.*?)(?s?t.slice(s,n+1):a)}else r+=a}return(t[t.length-1]!=='"'||t.length===1)&&e(t.length,"MISSING_CHAR",'Missing closing "quote'),r}function Aue(t,e){let r="",n=t[e+1];for(;(n===" "||n===" "||n===` +`)&&(r+=n>s?t.slice(s,n+1):a)}else r+=a}return(t[t.length-1]!=='"'||t.length===1)&&e(t.length,"MISSING_CHAR",'Missing closing "quote'),r}function Eue(t,e){let r="",n=t[e+1];for(;(n===" "||n===" "||n===` `||n==="\r")&&!(n==="\r"&&t[e+2]!==` `);)n===` `&&(r+=` -`),e+=1,n=t[e+1];return r||(r=" "),{fold:r,offset:e}}const Oue={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:` -`,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function Rue(t,e,r,n){const a=t.substr(e,r),o=a.length===r&&/^[0-9a-fA-F]+$/.test(a)?parseInt(a,16):NaN;if(isNaN(o)){const u=t.substr(e-2,r+2);return n(e-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${u}`),u}return String.fromCodePoint(o)}function CG(t,e,r,n){const{value:a,type:s,comment:o,range:u}=e.type==="block-scalar"?_ue(t,e,n):wue(e,t.options.strict,n),c=r?t.directives.tagName(r.source,f=>n(r,"TAG_RESOLVE_FAILED",f)):null,l=r&&c?xue(t.schema,a,c,r,n):e.type==="scalar"?Iue(t,a,e,n):t.schema[mo];let d;try{const f=l.resolve(a,h=>n(r??e,"TAG_RESOLVE_FAILED",h),t.options);d=xr(f)?f:new jt(f)}catch(f){const h=f instanceof Error?f.message:String(f);n(r??e,"TAG_RESOLVE_FAILED",h),d=new jt(a)}return d.range=u,d.source=a,s&&(d.type=s),c&&(d.tag=c),l.format&&(d.format=l.format),o&&(d.comment=o),d}function xue(t,e,r,n,a){var u;if(r==="!")return t[mo];const s=[];for(const c of t.tags)if(!c.collection&&c.tag===r)if(c.default&&c.test)s.push(c);else return c;for(const c of s)if((u=c.test)!=null&&u.test(e))return c;const o=t.knownTags[r];return o&&!o.collection?(t.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(a(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,r!=="tag:yaml.org,2002:str"),t[mo])}function Iue({directives:t,schema:e},r,n,a){const s=e.tags.find(o=>{var u;return o.default&&((u=o.test)==null?void 0:u.test(r))})||e[mo];if(e.compat){const o=e.compat.find(u=>{var c;return u.default&&((c=u.test)==null?void 0:c.test(r))})??e[mo];if(s.tag!==o.tag){const u=t.tagString(s.tag),c=t.tagString(o.tag),l=`Value may be parsed as either ${u} or ${c}`;a(n,"TAG_RESOLVE_FAILED",l,!0)}}return s}function Pue(t,e,r){if(e){r===null&&(r=e.length);for(let n=r-1;n>=0;--n){let a=e[n];switch(a.type){case"space":case"comment":case"newline":t-=a.source.length;continue}for(a=e[++n];(a==null?void 0:a.type)==="space";)t+=a.source.length,a=e[++n];break}}return t}const Nue={composeNode:LG,composeEmptyNode:GN};function LG(t,e,r,n){const{spaceBefore:a,comment:s,anchor:o,tag:u}=r;let c,l=!0;switch(e.type){case"alias":c=Due(t,e,n),(o||u)&&n(e,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":c=CG(t,e,u,n),o&&(c.anchor=o.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":c=gue(Nue,t,e,r,n),o&&(c.anchor=o.source.substring(1));break;default:{const d=e.type==="error"?e.message:`Unsupported token (type: ${e.type})`;n(e,"UNEXPECTED_TOKEN",d),c=GN(t,e.offset,void 0,null,r,n),l=!1}}return o&&c.anchor===""&&n(o,"BAD_ALIAS","Anchor cannot be an empty string"),a&&(c.spaceBefore=!0),s&&(e.type==="scalar"&&e.source===""?c.comment=s:c.commentBefore=s),t.options.keepSourceTokens&&l&&(c.srcToken=e),c}function GN(t,e,r,n,{spaceBefore:a,comment:s,anchor:o,tag:u,end:c},l){const d={type:"scalar",offset:Pue(e,r,n),indent:-1,source:""},f=CG(t,d,u,l);return o&&(f.anchor=o.source.substring(1),f.anchor===""&&l(o,"BAD_ALIAS","Anchor cannot be an empty string")),a&&(f.spaceBefore=!0),s&&(f.comment=s,f.range[2]=c),f}function Due({options:t},{offset:e,source:r,end:n},a){const s=new CN(r.substring(1));s.source===""&&a(e,"BAD_ALIAS","Alias cannot be an empty string"),s.source.endsWith(":")&&a(e+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const o=e+r.length,u=Bb(n,o,t.strict,a);return s.range=[e,o,u.offset],u.comment&&(s.comment=u.comment),s}function Cue(t,e,{offset:r,start:n,value:a,end:s},o){const u=Object.assign({_directives:e},t),c=new xG(void 0,u),l={atRoot:!0,directives:c.directives,options:c.options,schema:c.schema},d=jd(n,{indicator:"doc-start",next:a??(s==null?void 0:s[0]),offset:r,onError:o,parentIndent:0,startOnNewline:!0});d.found&&(c.directives.docStart=!0,a&&(a.type==="block-map"||a.type==="block-seq")&&!d.hasNewline&&o(d.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),c.contents=a?LG(l,a,d,o):GN(l,d.end,n,null,d,o);const f=c.contents.range[2],h=Bb(s,f,!1,o);return h.comment&&(c.comment=h.comment),c.range=[r,f,h.offset],c}function Gf(t){if(typeof t=="number")return[t,t+1];if(Array.isArray(t))return t.length===2?t:[t[0],t[1]];const{offset:e,source:r}=t;return[e,e+(typeof r=="string"?r.length:1)]}function q6(t){var a;let e="",r=!1,n=!1;for(let s=0;sn(r,"TAG_RESOLVE_FAILED",f)):null,l=r&&c?Rue(t.schema,a,c,r,n):e.type==="scalar"?xue(t,a,e,n):t.schema[mo];let d;try{const f=l.resolve(a,h=>n(r??e,"TAG_RESOLVE_FAILED",h),t.options);d=xr(f)?f:new jt(f)}catch(f){const h=f instanceof Error?f.message:String(f);n(r??e,"TAG_RESOLVE_FAILED",h),d=new jt(a)}return d.range=u,d.source=a,s&&(d.type=s),c&&(d.tag=c),l.format&&(d.format=l.format),o&&(d.comment=o),d}function Rue(t,e,r,n,a){var u;if(r==="!")return t[mo];const s=[];for(const c of t.tags)if(!c.collection&&c.tag===r)if(c.default&&c.test)s.push(c);else return c;for(const c of s)if((u=c.test)!=null&&u.test(e))return c;const o=t.knownTags[r];return o&&!o.collection?(t.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(a(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,r!=="tag:yaml.org,2002:str"),t[mo])}function xue({directives:t,schema:e},r,n,a){const s=e.tags.find(o=>{var u;return o.default&&((u=o.test)==null?void 0:u.test(r))})||e[mo];if(e.compat){const o=e.compat.find(u=>{var c;return u.default&&((c=u.test)==null?void 0:c.test(r))})??e[mo];if(s.tag!==o.tag){const u=t.tagString(s.tag),c=t.tagString(o.tag),l=`Value may be parsed as either ${u} or ${c}`;a(n,"TAG_RESOLVE_FAILED",l,!0)}}return s}function Iue(t,e,r){if(e){r===null&&(r=e.length);for(let n=r-1;n>=0;--n){let a=e[n];switch(a.type){case"space":case"comment":case"newline":t-=a.source.length;continue}for(a=e[++n];(a==null?void 0:a.type)==="space";)t+=a.source.length,a=e[++n];break}}return t}const Pue={composeNode:LG,composeEmptyNode:GN};function LG(t,e,r,n){const{spaceBefore:a,comment:s,anchor:o,tag:u}=r;let c,l=!0;switch(e.type){case"alias":c=Nue(t,e,n),(o||u)&&n(e,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":c=CG(t,e,u,n),o&&(c.anchor=o.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":c=mue(Pue,t,e,r,n),o&&(c.anchor=o.source.substring(1));break;default:{const d=e.type==="error"?e.message:`Unsupported token (type: ${e.type})`;n(e,"UNEXPECTED_TOKEN",d),c=GN(t,e.offset,void 0,null,r,n),l=!1}}return o&&c.anchor===""&&n(o,"BAD_ALIAS","Anchor cannot be an empty string"),a&&(c.spaceBefore=!0),s&&(e.type==="scalar"&&e.source===""?c.comment=s:c.commentBefore=s),t.options.keepSourceTokens&&l&&(c.srcToken=e),c}function GN(t,e,r,n,{spaceBefore:a,comment:s,anchor:o,tag:u,end:c},l){const d={type:"scalar",offset:Iue(e,r,n),indent:-1,source:""},f=CG(t,d,u,l);return o&&(f.anchor=o.source.substring(1),f.anchor===""&&l(o,"BAD_ALIAS","Anchor cannot be an empty string")),a&&(f.spaceBefore=!0),s&&(f.comment=s,f.range[2]=c),f}function Nue({options:t},{offset:e,source:r,end:n},a){const s=new CN(r.substring(1));s.source===""&&a(e,"BAD_ALIAS","Alias cannot be an empty string"),s.source.endsWith(":")&&a(e+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const o=e+r.length,u=Bb(n,o,t.strict,a);return s.range=[e,o,u.offset],u.comment&&(s.comment=u.comment),s}function Due(t,e,{offset:r,start:n,value:a,end:s},o){const u=Object.assign({_directives:e},t),c=new xG(void 0,u),l={atRoot:!0,directives:c.directives,options:c.options,schema:c.schema},d=Ld(n,{indicator:"doc-start",next:a??(s==null?void 0:s[0]),offset:r,onError:o,parentIndent:0,startOnNewline:!0});d.found&&(c.directives.docStart=!0,a&&(a.type==="block-map"||a.type==="block-seq")&&!d.hasNewline&&o(d.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),c.contents=a?LG(l,a,d,o):GN(l,d.end,n,null,d,o);const f=c.contents.range[2],h=Bb(s,f,!1,o);return h.comment&&(c.comment=h.comment),c.range=[r,f,h.offset],c}function Gf(t){if(typeof t=="number")return[t,t+1];if(Array.isArray(t))return t.length===2?t:[t[0],t[1]];const{offset:e,source:r}=t;return[e,e+(typeof r=="string"?r.length:1)]}function q6(t){var a;let e="",r=!1,n=!1;for(let s=0;s{const o=Gf(r);s?this.warnings.push(new hue(o,n,a)):this.errors.push(new __(o,n,a))},this.directives=new Xn({version:e.version||"1.2"}),this.options=e}decorate(e,r){const{comment:n,afterEmptyLine:a}=q6(this.prelude);if(n){const s=e.contents;if(r)e.comment=e.comment?`${e.comment} +`)+(o.substring(1)||" "),r=!0,n=!1;break;case"%":((a=t[s+1])==null?void 0:a[0])!=="#"&&(s+=1),r=!1;break;default:r||(n=!0),r=!1}}return{comment:e,afterEmptyLine:n}}class Cue{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(r,n,a,s)=>{const o=Gf(r);s?this.warnings.push(new fue(o,n,a)):this.errors.push(new __(o,n,a))},this.directives=new Xn({version:e.version||"1.2"}),this.options=e}decorate(e,r){const{comment:n,afterEmptyLine:a}=q6(this.prelude);if(n){const s=e.contents;if(r)e.comment=e.comment?`${e.comment} ${n}`:n;else if(a||e.directives.docStart||!s)e.commentBefore=n;else if(Kr(s)&&!s.flow&&s.items.length>0){let o=s.items[0];Jr(o)&&(o=o.key);const u=o.commentBefore;o.commentBefore=u?`${n} ${u}`:n}else{const o=s.commentBefore;s.commentBefore=o?`${n} -${o}`:n}}r?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:q6(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,r=!1,n=-1){for(const a of e)yield*this.next(a);yield*this.end(r,n)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,(r,n,a)=>{const s=Gf(e);s[0]+=r,this.onError(s,"BAD_DIRECTIVE",n,a)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{const r=Cue(this.options,this.directives,e,this.onError);this.atDirectives&&!r.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(r,!1),this.doc&&(yield this.doc),this.doc=r,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const r=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new __(Gf(e),"UNEXPECTED_TOKEN",r);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){const n="Unexpected doc-end without preceding document";this.errors.push(new __(Gf(e),"UNEXPECTED_TOKEN",n));break}this.doc.directives.docEnd=!0;const r=Bb(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),r.comment){const n=this.doc.comment;this.doc.comment=n?`${n} -${r.comment}`:r.comment}this.doc.range[2]=r.offset;break}default:this.errors.push(new __(Gf(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,r=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){const n=Object.assign({_directives:this.directives},this.options),a=new xG(void 0,n);this.atDirectives&&this.onError(r,"MISSING_CHAR","Missing directives-end indicator line"),a.range=[0,r,r],this.decorate(a,!1),yield a}}}const jG="\uFEFF",MG="",FG="",FI="";function jue(t){switch(t){case jG:return"byte-order-mark";case MG:return"doc-mode";case FG:return"flow-error-end";case FI:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case` +${o}`:n}}r?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:q6(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,r=!1,n=-1){for(const a of e)yield*this.next(a);yield*this.end(r,n)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,(r,n,a)=>{const s=Gf(e);s[0]+=r,this.onError(s,"BAD_DIRECTIVE",n,a)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{const r=Due(this.options,this.directives,e,this.onError);this.atDirectives&&!r.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(r,!1),this.doc&&(yield this.doc),this.doc=r,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const r=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new __(Gf(e),"UNEXPECTED_TOKEN",r);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){const n="Unexpected doc-end without preceding document";this.errors.push(new __(Gf(e),"UNEXPECTED_TOKEN",n));break}this.doc.directives.docEnd=!0;const r=Bb(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),r.comment){const n=this.doc.comment;this.doc.comment=n?`${n} +${r.comment}`:r.comment}this.doc.range[2]=r.offset;break}default:this.errors.push(new __(Gf(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,r=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){const n=Object.assign({_directives:this.directives},this.options),a=new xG(void 0,n);this.atDirectives&&this.onError(r,"MISSING_CHAR","Missing directives-end indicator line"),a.range=[0,r,r],this.decorate(a,!1),yield a}}}const jG="\uFEFF",MG="",FG="",MI="";function Lue(t){switch(t){case jG:return"byte-order-mark";case MG:return"doc-mode";case FG:return"flow-error-end";case MI:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case` `:case`\r `:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(t[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function Sa(t){switch(t){case void 0:case" ":case` -`:case"\r":case" ":return!0;default:return!1}}const $6=new Set("0123456789ABCDEFabcdef"),Mue=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),dv=new Set(",[]{}"),Fue=new Set(` ,[]{} -\r `),ME=t=>!t||Fue.has(t);let Bue=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,r=!1){if(e){if(typeof e!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!r;let n=this.next??"stream";for(;n&&(r||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,r=this.buffer[e];for(;r===" "||r===" ";)r=this.buffer[++e];return!r||r==="#"||r===` +`:case"\r":case" ":return!0;default:return!1}}const $6=new Set("0123456789ABCDEFabcdef"),jue=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),dv=new Set(",[]{}"),Mue=new Set(` ,[]{} +\r `),jE=t=>!t||Mue.has(t);let Fue=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,r=!1){if(e){if(typeof e!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!r;let n=this.next??"stream";for(;n&&(r||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,r=this.buffer[e];for(;r===" "||r===" ";)r=this.buffer[++e];return!r||r==="#"||r===` `?!0:r==="\r"?this.buffer[e+1]===` `:!1}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let r=this.buffer[e];if(this.indentNext>0){let n=0;for(;r===" ";)r=this.buffer[++n+e];if(r==="\r"){const a=this.buffer[n+e+1];if(a===` `||!a&&!this.atEnd)return e+n+1}return r===` `||n>=this.indentNext||!r&&!this.atEnd?e+n:-1}if(r==="-"||r==="."){const n=this.buffer.substr(e,3);if((n==="---"||n==="...")&&Sa(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return(typeof e!="number"||e!==-1&&ethis.indentValue&&!Sa(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[e,r]=this.peek(2);if(!r&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&Sa(r)){const n=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=n,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const e=this.getLine();if(e===null)return this.setNext("doc");let r=yield*this.pushIndicators();switch(e[r]){case"#":yield*this.pushCount(e.length-r);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(ME),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return r+=yield*this.parseBlockScalarHeader(),r+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-r),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,r,n=-1;do e=yield*this.pushNewline(),e>0?(r=yield*this.pushSpaces(!1),this.indentValue=n=r):r=0,r+=yield*this.pushSpaces(!0);while(e+r>0);const a=this.getLine();if(a===null)return this.setNext("flow");if((n!==-1&&nthis.indentValue&&!Sa(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[e,r]=this.peek(2);if(!r&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&Sa(r)){const n=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=n,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const e=this.getLine();if(e===null)return this.setNext("doc");let r=yield*this.pushIndicators();switch(e[r]){case"#":yield*this.pushCount(e.length-r);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(jE),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return r+=yield*this.parseBlockScalarHeader(),r+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-r),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,r,n=-1;do e=yield*this.pushNewline(),e>0?(r=yield*this.pushSpaces(!1),this.indentValue=n=r):r=0,r+=yield*this.pushSpaces(!0);while(e+r>0);const a=this.getLine();if(a===null)return this.setNext("flow");if((n!==-1&&n"0"&&r<="9")this.blockScalarIndent=Number(r)-1;else if(r!=="-")break}return yield*this.pushUntil(r=>Sa(r)||r==="#")}*parseBlockScalar(){let e=this.pos-1,r=0,n;e:for(let s=this.pos;n=this.buffer[s];++s)switch(n){case" ":r+=1;break;case` `:e=s,r=0;break;case"\r":{const o=this.buffer[s+1];if(!o&&!this.atEnd)return this.setNext("block-scalar");if(o===` `)break}default:break e}if(!n&&!this.atEnd)return this.setNext("block-scalar");if(r>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=r:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{const s=this.continueScalar(e+1);if(s===-1)break;e=this.buffer.indexOf(` `,s)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let a=e+1;for(n=this.buffer[a];n===" ";)n=this.buffer[++a];if(n===" "){for(;n===" "||n===" "||n==="\r"||n===` `;)n=this.buffer[++a];e=a-1}else if(!this.blockScalarKeep)do{let s=e-1,o=this.buffer[s];o==="\r"&&(o=this.buffer[--s]);const u=s;for(;o===" ";)o=this.buffer[--s];if(o===` -`&&s>=this.pos&&s+1+r>u)e=s;else break}while(!0);return yield FI,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let r=this.pos-1,n=this.pos-1,a;for(;a=this.buffer[++n];)if(a===":"){const s=this.buffer[n+1];if(Sa(s)||e&&dv.has(s))break;r=n}else if(Sa(a)){let s=this.buffer[n+1];if(a==="\r"&&(s===` +`&&s>=this.pos&&s+1+r>u)e=s;else break}while(!0);return yield MI,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let r=this.pos-1,n=this.pos-1,a;for(;a=this.buffer[++n];)if(a===":"){const s=this.buffer[n+1];if(Sa(s)||e&&dv.has(s))break;r=n}else if(Sa(a)){let s=this.buffer[n+1];if(a==="\r"&&(s===` `?(n+=1,a=` `,s=this.buffer[n+1]):r=n),s==="#"||e&&dv.has(s))break;if(a===` -`){const o=this.continueScalar(n+1);if(o===-1)break;n=Math.max(n,o-2)}}else{if(e&&dv.has(a))break;r=n}return!a&&!this.atEnd?this.setNext("plain-scalar"):(yield FI,yield*this.pushToIndex(r+1,!0),e?"flow":"doc")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,r){const n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(r&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(ME))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0,r=this.charAt(1);if(Sa(r)||e&&dv.has(r))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2,r=this.buffer[e];for(;!Sa(r)&&r!==">";)r=this.buffer[++e];return yield*this.pushToIndex(r===">"?e+1:e,!1)}else{let e=this.pos+1,r=this.buffer[e];for(;r;)if(Mue.has(r))r=this.buffer[++e];else if(r==="%"&&$6.has(this.buffer[e+1])&&$6.has(this.buffer[e+2]))r=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){const e=this.buffer[this.pos];return e===` +`){const o=this.continueScalar(n+1);if(o===-1)break;n=Math.max(n,o-2)}}else{if(e&&dv.has(a))break;r=n}return!a&&!this.atEnd?this.setNext("plain-scalar"):(yield MI,yield*this.pushToIndex(r+1,!0),e?"flow":"doc")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,r){const n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(r&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(jE))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0,r=this.charAt(1);if(Sa(r)||e&&dv.has(r))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2,r=this.buffer[e];for(;!Sa(r)&&r!==">";)r=this.buffer[++e];return yield*this.pushToIndex(r===">"?e+1:e,!1)}else{let e=this.pos+1,r=this.buffer[e];for(;r;)if(jue.has(r))r=this.buffer[++e];else if(r==="%"&&$6.has(this.buffer[e+1])&&$6.has(this.buffer[e+2]))r=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){const e=this.buffer[this.pos];return e===` `?yield*this.pushCount(1):e==="\r"&&this.charAt(1)===` -`?yield*this.pushCount(2):0}*pushSpaces(e){let r=this.pos-1,n;do n=this.buffer[++r];while(n===" "||e&&n===" ");const a=r-this.pos;return a>0&&(yield this.buffer.substr(this.pos,a),this.pos=r),a}*pushUntil(e){let r=this.pos,n=this.buffer[r];for(;!e(n);)n=this.buffer[++r];return yield*this.pushToIndex(r,!1)}};class que{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let r=0,n=this.lineStarts.length;for(;r>1;this.lineStarts[s]=0;)switch(t[e].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;((r=t[++e])==null?void 0:r.type)==="space";);return t.splice(e,t.length)}function k6(t){if(t.start.type==="flow-seq-start")for(const e of t.items)e.sep&&!e.value&&!gc(e.start,"explicit-key-ind")&&!gc(e.sep,"map-value-ind")&&(e.key&&(e.value=e.key),delete e.key,BG(e.value)?e.value.end?Array.prototype.push.apply(e.value.end,e.sep):e.value.end=e.sep:Array.prototype.push.apply(e.start,e.sep),delete e.sep)}let $ue=class{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Bue,this.onNewLine=e}*parse(e,r=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const n of this.lexer.lex(e,r))yield*this.next(n);r||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}const r=jue(e);if(r)if(r==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=r,yield*this.step(),r){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&e[0]===" "&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{const n=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:n,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const e=this.peek(1);if(this.type==="doc-end"&&(!e||e.type!=="doc-end")){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){const r=e??this.stack.pop();if(!r)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield r;else{const n=this.peek(1);switch(r.type==="block-scalar"?r.indent="indent"in n?n.indent:0:r.type==="flow-collection"&&n.type==="document"&&(r.indent=0),r.type==="flow-collection"&&k6(r),n.type){case"document":n.value=r;break;case"block-scalar":n.props.push(r);break;case"block-map":{const a=n.items[n.items.length-1];if(a.value){n.items.push({start:[],key:r,sep:[]}),this.onKeyLine=!0;return}else if(a.sep)a.value=r;else{Object.assign(a,{key:r,sep:[]}),this.onKeyLine=!a.explicitKey;return}break}case"block-seq":{const a=n.items[n.items.length-1];a.value?n.items.push({start:[],value:r}):a.value=r;break}case"flow-collection":{const a=n.items[n.items.length-1];!a||a.value?n.items.push({start:[],key:r,sep:[]}):a.sep?a.value=r:Object.assign(a,{key:r,sep:[]});return}default:yield*this.pop(),yield*this.pop(r)}if((n.type==="document"||n.type==="block-map"||n.type==="block-seq")&&(r.type==="block-map"||r.type==="block-seq")){const a=r.items[r.items.length-1];a&&!a.sep&&!a.value&&a.start.length>0&&U6(a.start)===-1&&(r.indent===0||a.start.every(s=>s.type!=="comment"||s.indent0&&(yield this.buffer.substr(this.pos,a),this.pos=r),a}*pushUntil(e){let r=this.pos,n=this.buffer[r];for(;!e(n);)n=this.buffer[++r];return yield*this.pushToIndex(r,!1)}};class Bue{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let r=0,n=this.lineStarts.length;for(;r>1;this.lineStarts[s]=0;)switch(t[e].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;((r=t[++e])==null?void 0:r.type)==="space";);return t.splice(e,t.length)}function k6(t){if(t.start.type==="flow-seq-start")for(const e of t.items)e.sep&&!e.value&&!gc(e.start,"explicit-key-ind")&&!gc(e.sep,"map-value-ind")&&(e.key&&(e.value=e.key),delete e.key,BG(e.value)?e.value.end?Array.prototype.push.apply(e.value.end,e.sep):e.value.end=e.sep:Array.prototype.push.apply(e.start,e.sep),delete e.sep)}let que=class{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Fue,this.onNewLine=e}*parse(e,r=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const n of this.lexer.lex(e,r))yield*this.next(n);r||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}const r=Lue(e);if(r)if(r==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=r,yield*this.step(),r){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&e[0]===" "&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{const n=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:n,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const e=this.peek(1);if(this.type==="doc-end"&&(!e||e.type!=="doc-end")){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){const r=e??this.stack.pop();if(!r)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield r;else{const n=this.peek(1);switch(r.type==="block-scalar"?r.indent="indent"in n?n.indent:0:r.type==="flow-collection"&&n.type==="document"&&(r.indent=0),r.type==="flow-collection"&&k6(r),n.type){case"document":n.value=r;break;case"block-scalar":n.props.push(r);break;case"block-map":{const a=n.items[n.items.length-1];if(a.value){n.items.push({start:[],key:r,sep:[]}),this.onKeyLine=!0;return}else if(a.sep)a.value=r;else{Object.assign(a,{key:r,sep:[]}),this.onKeyLine=!a.explicitKey;return}break}case"block-seq":{const a=n.items[n.items.length-1];a.value?n.items.push({start:[],value:r}):a.value=r;break}case"flow-collection":{const a=n.items[n.items.length-1];!a||a.value?n.items.push({start:[],key:r,sep:[]}):a.sep?a.value=r:Object.assign(a,{key:r,sep:[]});return}default:yield*this.pop(),yield*this.pop(r)}if((n.type==="document"||n.type==="block-map"||n.type==="block-seq")&&(r.type==="block-map"||r.type==="block-seq")){const a=r.items[r.items.length-1];a&&!a.sep&&!a.value&&a.start.length>0&&U6(a.start)===-1&&(r.indent===0||a.start.every(s=>s.type!=="comment"||s.indent=e.indent){const a=!this.onKeyLine&&this.indent===e.indent,s=a&&(r.sep||r.explicitKey)&&this.type!=="seq-item-ind";let o=[];if(s&&r.sep&&!r.value){const u=[];for(let c=0;ce.indent&&(u.length=0);break;default:u.length=0}}u.length>=2&&(o=r.sep.splice(u[1]))}switch(this.type){case"anchor":case"tag":s||r.value?(o.push(this.sourceToken),e.items.push({start:o}),this.onKeyLine=!0):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"explicit-key-ind":!r.sep&&!r.explicitKey?(r.start.push(this.sourceToken),r.explicitKey=!0):s||r.value?(o.push(this.sourceToken),e.items.push({start:o,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(r.explicitKey)if(r.sep)if(r.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(gc(r.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]});else if(BG(r.key)&&!gc(r.sep,"newline")){const u=jl(r.start),c=r.key,l=r.sep;l.push(this.sourceToken),delete r.key,delete r.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:u,key:c,sep:l}]})}else o.length>0?r.sep=r.sep.concat(o,this.sourceToken):r.sep.push(this.sourceToken);else if(gc(r.start,"newline"))Object.assign(r,{key:null,sep:[this.sourceToken]});else{const u=jl(r.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:u,key:null,sep:[this.sourceToken]}]})}else r.sep?r.value||s?e.items.push({start:o,key:null,sep:[this.sourceToken]}):gc(r.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const u=this.flowScalar(this.type);s||r.value?(e.items.push({start:o,key:u,sep:[]}),this.onKeyLine=!0):r.sep?this.stack.push(u):(Object.assign(r,{key:u,sep:[]}),this.onKeyLine=!0);return}default:{const u=this.startBlockValue(e);if(u){a&&u.type!=="block-seq"&&e.items.push({start:o}),this.stack.push(u);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){var n;const r=e.items[e.items.length-1];switch(this.type){case"newline":if(r.value){const a="end"in r.value?r.value.end:void 0,s=Array.isArray(a)?a[a.length-1]:void 0;(s==null?void 0:s.type)==="comment"?a==null||a.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(r.start,e.indent)){const a=e.items[e.items.length-2],s=(n=a==null?void 0:a.value)==null?void 0:n.end;if(Array.isArray(s)){Array.prototype.push.apply(s,r.start),s.push(this.sourceToken),e.items.pop();return}}r.start.push(this.sourceToken)}return;case"anchor":case"tag":if(r.value||this.indent<=e.indent)break;r.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;r.value||gc(r.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return}if(this.indent>e.indent){const a=this.startBlockValue(e);if(a){this.stack.push(a);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){const r=e.items[e.items.length-1];if(this.type==="flow-error-end"){let n;do yield*this.pop(),n=this.peek(1);while(n&&n.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!r||r.sep?e.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return;case"map-value-ind":!r||r.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!r||r.value?e.items.push({start:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const a=this.flowScalar(this.type);!r||r.value?e.items.push({start:[],key:a,sep:[]}):r.sep?this.stack.push(a):Object.assign(r,{key:a,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{const n=this.peek(2);if(n.type==="block-map"&&(this.type==="map-value-ind"&&n.indent===e.indent||this.type==="newline"&&!n.items[n.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&n.type!=="flow-collection"){const a=fv(n),s=jl(a);k6(e);const o=e.end.splice(1,e.end.length);o.push(this.sourceToken);const u={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:s,key:e,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=u}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let r=this.source.indexOf(` +`,r)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){var n;const r=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,r.value){const a="end"in r.value?r.value.end:void 0,s=Array.isArray(a)?a[a.length-1]:void 0;(s==null?void 0:s.type)==="comment"?a==null||a.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)e.items.push({start:[this.sourceToken]});else if(r.sep)r.sep.push(this.sourceToken);else{if(this.atIndentedComment(r.start,e.indent)){const a=e.items[e.items.length-2],s=(n=a==null?void 0:a.value)==null?void 0:n.end;if(Array.isArray(s)){Array.prototype.push.apply(s,r.start),s.push(this.sourceToken),e.items.pop();return}}r.start.push(this.sourceToken)}return}if(this.indent>=e.indent){const a=!this.onKeyLine&&this.indent===e.indent,s=a&&(r.sep||r.explicitKey)&&this.type!=="seq-item-ind";let o=[];if(s&&r.sep&&!r.value){const u=[];for(let c=0;ce.indent&&(u.length=0);break;default:u.length=0}}u.length>=2&&(o=r.sep.splice(u[1]))}switch(this.type){case"anchor":case"tag":s||r.value?(o.push(this.sourceToken),e.items.push({start:o}),this.onKeyLine=!0):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"explicit-key-ind":!r.sep&&!r.explicitKey?(r.start.push(this.sourceToken),r.explicitKey=!0):s||r.value?(o.push(this.sourceToken),e.items.push({start:o,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(r.explicitKey)if(r.sep)if(r.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(gc(r.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]});else if(BG(r.key)&&!gc(r.sep,"newline")){const u=Ll(r.start),c=r.key,l=r.sep;l.push(this.sourceToken),delete r.key,delete r.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:u,key:c,sep:l}]})}else o.length>0?r.sep=r.sep.concat(o,this.sourceToken):r.sep.push(this.sourceToken);else if(gc(r.start,"newline"))Object.assign(r,{key:null,sep:[this.sourceToken]});else{const u=Ll(r.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:u,key:null,sep:[this.sourceToken]}]})}else r.sep?r.value||s?e.items.push({start:o,key:null,sep:[this.sourceToken]}):gc(r.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const u=this.flowScalar(this.type);s||r.value?(e.items.push({start:o,key:u,sep:[]}),this.onKeyLine=!0):r.sep?this.stack.push(u):(Object.assign(r,{key:u,sep:[]}),this.onKeyLine=!0);return}default:{const u=this.startBlockValue(e);if(u){a&&u.type!=="block-seq"&&e.items.push({start:o}),this.stack.push(u);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){var n;const r=e.items[e.items.length-1];switch(this.type){case"newline":if(r.value){const a="end"in r.value?r.value.end:void 0,s=Array.isArray(a)?a[a.length-1]:void 0;(s==null?void 0:s.type)==="comment"?a==null||a.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(r.start,e.indent)){const a=e.items[e.items.length-2],s=(n=a==null?void 0:a.value)==null?void 0:n.end;if(Array.isArray(s)){Array.prototype.push.apply(s,r.start),s.push(this.sourceToken),e.items.pop();return}}r.start.push(this.sourceToken)}return;case"anchor":case"tag":if(r.value||this.indent<=e.indent)break;r.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;r.value||gc(r.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return}if(this.indent>e.indent){const a=this.startBlockValue(e);if(a){this.stack.push(a);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){const r=e.items[e.items.length-1];if(this.type==="flow-error-end"){let n;do yield*this.pop(),n=this.peek(1);while(n&&n.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!r||r.sep?e.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return;case"map-value-ind":!r||r.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!r||r.value?e.items.push({start:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const a=this.flowScalar(this.type);!r||r.value?e.items.push({start:[],key:a,sep:[]}):r.sep?this.stack.push(a):Object.assign(r,{key:a,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{const n=this.peek(2);if(n.type==="block-map"&&(this.type==="map-value-ind"&&n.indent===e.indent||this.type==="newline"&&!n.items[n.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&n.type!=="flow-collection"){const a=fv(n),s=Ll(a);k6(e);const o=e.end.splice(1,e.end.length);o.push(this.sourceToken);const u={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:s,key:e,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=u}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let r=this.source.indexOf(` `)+1;for(;r!==0;)this.onNewLine(this.offset+r),r=this.source.indexOf(` -`,r)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const r=fv(e),n=jl(r);return n.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const r=fv(e),n=jl(r);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,r){return this.type!=="comment"||this.indent<=r?!1:e.every(n=>n.type==="newline"||n.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}};function Uue(t){const e=t.prettyErrors!==!1;return{lineCounter:t.lineCounter||e&&new que||null,prettyErrors:e}}function kue(t,e={}){const{lineCounter:r,prettyErrors:n}=Uue(e),a=new $ue(r==null?void 0:r.addNewLine),s=new Lue(e);let o=null;for(const u of s.compose(a.parse(t),!0,t.length))if(!o)o=u;else if(o.options.logLevel!=="silent"){o.errors.push(new __(u.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return n&&r&&(o.errors.forEach(F6(t,r)),o.warnings.forEach(F6(t,r))),o}function Vue(t,e,r){let n;typeof e=="function"?n=e:r===void 0&&e&&typeof e=="object"&&(r=e);const a=kue(t,r);if(!a)return null;if(a.warnings.forEach(s=>cG(a.options.logLevel,s)),a.errors.length>0){if(a.options.logLevel!=="silent")throw a.errors[0];a.errors=[]}return a.toJS(Object.assign({reviver:n},r))}const BI=globalThis||void 0||self;/** +`,r)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const r=fv(e),n=Ll(r);return n.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const r=fv(e),n=Ll(r);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,r){return this.type!=="comment"||this.indent<=r?!1:e.every(n=>n.type==="newline"||n.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}};function $ue(t){const e=t.prettyErrors!==!1;return{lineCounter:t.lineCounter||e&&new Bue||null,prettyErrors:e}}function Uue(t,e={}){const{lineCounter:r,prettyErrors:n}=$ue(e),a=new que(r==null?void 0:r.addNewLine),s=new Cue(e);let o=null;for(const u of s.compose(a.parse(t),!0,t.length))if(!o)o=u;else if(o.options.logLevel!=="silent"){o.errors.push(new __(u.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return n&&r&&(o.errors.forEach(F6(t,r)),o.warnings.forEach(F6(t,r))),o}function kue(t,e,r){let n;typeof e=="function"?n=e:r===void 0&&e&&typeof e=="object"&&(r=e);const a=Uue(t,r);if(!a)return null;if(a.warnings.forEach(s=>cG(a.options.logLevel,s)),a.errors.length>0){if(a.options.logLevel!=="silent")throw a.errors[0];a.errors=[]}return a.toJS(Object.assign({reviver:n},r))}const FI=globalThis||void 0||self;/** * @vue/shared v3.4.23 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function e2(t,e){const r=new Set(t.split(","));return e?n=>r.has(n.toLowerCase()):n=>r.has(n)}const sr={},hd=[],bi=()=>{},Hue=()=>!1,qb=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),WN=t=>t.startsWith("onUpdate:"),jr=Object.assign,KN=(t,e)=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)},Que=Object.prototype.hasOwnProperty,Kt=(t,e)=>Que.call(t,e),ft=Array.isArray,pd=t=>df(t)==="[object Map]",sl=t=>df(t)==="[object Set]",V6=t=>df(t)==="[object Date]",zue=t=>df(t)==="[object RegExp]",At=t=>typeof t=="function",Mr=t=>typeof t=="string",go=t=>typeof t=="symbol",fr=t=>t!==null&&typeof t=="object",JN=t=>(fr(t)||At(t))&&At(t.then)&&At(t.catch),qG=Object.prototype.toString,df=t=>qG.call(t),Gue=t=>df(t).slice(8,-1),$G=t=>df(t)==="[object Object]",XN=t=>Mr(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,yd=e2(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),t2=t=>{const e=Object.create(null);return r=>e[r]||(e[r]=t(r))},Wue=/-(\w)/g,wi=t2(t=>t.replace(Wue,(e,r)=>r?r.toUpperCase():"")),Kue=/\B([A-Z])/g,Di=t2(t=>t.replace(Kue,"-$1").toLowerCase()),r2=t2(t=>t.charAt(0).toUpperCase()+t.slice(1)),ww=t2(t=>t?`on${r2(t)}`:""),La=(t,e)=>!Object.is(t,e),md=(t,e)=>{for(let r=0;r{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:r})},rS=t=>{const e=parseFloat(t);return isNaN(e)?t:e},nS=t=>{const e=Mr(t)?Number(t):NaN;return isNaN(e)?t:e};let H6;const kG=()=>H6||(H6=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof BI<"u"?BI:{}),Jue="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error",Xue=e2(Jue);function $b(t){if(ft(t)){const e={};for(let r=0;r{if(r){const n=r.split(Zue);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function Qc(t){let e="";if(Mr(t))e=t;else if(ft(t))for(let r=0;rhu(r,e))}const iS=t=>Mr(t)?t:t==null?"":ft(t)||fr(t)&&(t.toString===qG||!At(t.toString))?JSON.stringify(t,HG,2):String(t),HG=(t,e)=>e&&e.__v_isRef?HG(t,e.value):pd(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((r,[n,a],s)=>(r[FE(n,s)+" =>"]=a,r),{})}:sl(e)?{[`Set(${e.size})`]:[...e.values()].map(r=>FE(r))}:go(e)?FE(e):fr(e)&&!ft(e)&&!$G(e)?String(e):e,FE=(t,e="")=>{var r;return go(t)?`Symbol(${(r=t.description)!=null?r:e})`:t};/** +**//*! #__NO_SIDE_EFFECTS__ */function ZS(t,e){const r=new Set(t.split(","));return e?n=>r.has(n.toLowerCase()):n=>r.has(n)}const sr={},fd=[],bi=()=>{},Vue=()=>!1,qb=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),WN=t=>t.startsWith("onUpdate:"),jr=Object.assign,KN=(t,e)=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)},Hue=Object.prototype.hasOwnProperty,Kt=(t,e)=>Hue.call(t,e),ft=Array.isArray,hd=t=>df(t)==="[object Map]",al=t=>df(t)==="[object Set]",V6=t=>df(t)==="[object Date]",Que=t=>df(t)==="[object RegExp]",At=t=>typeof t=="function",Mr=t=>typeof t=="string",go=t=>typeof t=="symbol",fr=t=>t!==null&&typeof t=="object",JN=t=>(fr(t)||At(t))&&At(t.then)&&At(t.catch),qG=Object.prototype.toString,df=t=>qG.call(t),zue=t=>df(t).slice(8,-1),$G=t=>df(t)==="[object Object]",XN=t=>Mr(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,pd=ZS(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),e2=t=>{const e=Object.create(null);return r=>e[r]||(e[r]=t(r))},Gue=/-(\w)/g,wi=e2(t=>t.replace(Gue,(e,r)=>r?r.toUpperCase():"")),Wue=/\B([A-Z])/g,Di=e2(t=>t.replace(Wue,"-$1").toLowerCase()),t2=e2(t=>t.charAt(0).toUpperCase()+t.slice(1)),ww=e2(t=>t?`on${t2(t)}`:""),La=(t,e)=>!Object.is(t,e),yd=(t,e)=>{for(let r=0;r{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:r})},rS=t=>{const e=parseFloat(t);return isNaN(e)?t:e},nS=t=>{const e=Mr(t)?Number(t):NaN;return isNaN(e)?t:e};let H6;const kG=()=>H6||(H6=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof FI<"u"?FI:{}),Kue="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error",Jue=ZS(Kue);function $b(t){if(ft(t)){const e={};for(let r=0;r{if(r){const n=r.split(Yue);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function Qc(t){let e="";if(Mr(t))e=t;else if(ft(t))for(let r=0;rhu(r,e))}const BI=t=>Mr(t)?t:t==null?"":ft(t)||fr(t)&&(t.toString===qG||!At(t.toString))?JSON.stringify(t,HG,2):String(t),HG=(t,e)=>e&&e.__v_isRef?HG(t,e.value):hd(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((r,[n,a],s)=>(r[ME(n,s)+" =>"]=a,r),{})}:al(e)?{[`Set(${e.size})`]:[...e.values()].map(r=>ME(r))}:go(e)?ME(e):fr(e)&&!ft(e)&&!$G(e)?String(e):e,ME=(t,e="")=>{var r;return go(t)?`Symbol(${(r=t.description)!=null?r:e})`:t};/** * @vue/reactivity v3.4.23 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let Ii;class QG{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ii,!e&&Ii&&(this.index=(Ii.scopes||(Ii.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const r=Ii;try{return Ii=this,e()}finally{Ii=r}}}on(){Ii=this}off(){Ii=this.parent}stop(e){if(this._active){let r,n;for(r=0,n=this.effects.length;r=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Eu()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=iu,r=Lc;try{return iu=!0,Lc=this,this._runnings++,Q6(this),this.fn()}finally{z6(this),this._runnings--,Lc=r,iu=e}}stop(){var e;this.active&&(Q6(this),z6(this),(e=this.onStop)==null||e.call(this),this.active=!1)}}function sce(t){return t.value}function Q6(t){t._trackId++,t._depsLength=0}function z6(t){if(t.deps.length>t._depsLength){for(let e=t._depsLength;e{r.dirty&&r.run()});e&&(jr(r,e),e.scope&&GG(r,e.scope)),(!e||!e.lazy)&&r.run();const n=r.run.bind(r);return n.effect=r,n}function RFe(t){t.effect.stop()}let iu=!0,qI=0;const JG=[];function Tu(){JG.push(iu),iu=!1}function Eu(){const t=JG.pop();iu=t===void 0?!0:t}function YN(){qI++}function ZN(){for(qI--;!qI&&$I.length;)$I.shift()()}function XG(t,e,r){if(e.get(t)!==t._trackId){e.set(t,t._trackId);const n=t.deps[t._depsLength];n!==e?(n&&KG(n,t),t.deps[t._depsLength++]=e):t._depsLength++}}const $I=[];function YG(t,e,r){YN();for(const n of t.keys()){let a;n._dirtyLevel{const r=new Map;return r.cleanup=t,r.computed=e,r},aS=new WeakMap,jc=Symbol(""),UI=Symbol("");function Ti(t,e,r){if(iu&&Lc){let n=aS.get(t);n||aS.set(t,n=new Map);let a=n.get(r);a||n.set(r,a=ZG(()=>n.delete(r))),XG(Lc,a)}}function lo(t,e,r,n,a,s){const o=aS.get(t);if(!o)return;let u=[];if(e==="clear")u=[...o.values()];else if(r==="length"&&ft(t)){const c=Number(n);o.forEach((l,d)=>{(d==="length"||!go(d)&&d>=c)&&u.push(l)})}else switch(r!==void 0&&u.push(o.get(r)),e){case"add":ft(t)?XN(r)&&u.push(o.get("length")):(u.push(o.get(jc)),pd(t)&&u.push(o.get(UI)));break;case"delete":ft(t)||(u.push(o.get(jc)),pd(t)&&u.push(o.get(UI)));break;case"set":pd(t)&&u.push(o.get(jc));break}YN();for(const c of u)c&&YG(c,4);ZN()}function oce(t,e){var r;return(r=aS.get(t))==null?void 0:r.get(e)}const uce=e2("__proto__,__v_isRef,__isVue"),eW=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(go)),G6=cce();function cce(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...r){const n=Qt(this);for(let s=0,o=this.length;s{t[e]=function(...r){Tu(),YN();const n=Qt(this)[e].apply(this,r);return ZN(),Eu(),n}}),t}function lce(t){go(t)||(t=String(t));const e=Qt(this);return Ti(e,"has",t),e.hasOwnProperty(t)}class tW{constructor(e=!1,r=!1){this._isReadonly=e,this._isShallow=r}get(e,r,n){const a=this._isReadonly,s=this._isShallow;if(r==="__v_isReactive")return!a;if(r==="__v_isReadonly")return a;if(r==="__v_isShallow")return s;if(r==="__v_raw")return n===(a?s?oW:sW:s?aW:iW).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const o=ft(e);if(!a){if(o&&Kt(G6,r))return Reflect.get(G6,r,n);if(r==="hasOwnProperty")return lce}const u=Reflect.get(e,r,n);return(go(r)?eW.has(r):uce(r))||(a||Ti(e,"get",r),s)?u:rn(u)?o&&XN(r)?u:u.value:fr(u)?a?cW(u):Ub(u):u}}class rW extends tW{constructor(e=!1){super(!1,e)}set(e,r,n,a){let s=e[r];if(!this._isShallow){const c=ab(s);if(!sS(n)&&!ab(n)&&(s=Qt(s),n=Qt(n)),!ft(e)&&rn(s)&&!rn(n))return c?!1:(s.value=n,!0)}const o=ft(e)&&XN(r)?Number(r)t,i2=t=>Reflect.getPrototypeOf(t);function hv(t,e,r=!1,n=!1){t=t.__v_raw;const a=Qt(t),s=Qt(e);r||(La(e,s)&&Ti(a,"get",e),Ti(a,"get",s));const{has:o}=i2(a),u=n?eD:r?rD:sb;if(o.call(a,e))return u(t.get(e));if(o.call(a,s))return u(t.get(s));t!==a&&t.get(e)}function pv(t,e=!1){const r=this.__v_raw,n=Qt(r),a=Qt(t);return e||(La(t,a)&&Ti(n,"has",t),Ti(n,"has",a)),t===a?r.has(t):r.has(t)||r.has(a)}function yv(t,e=!1){return t=t.__v_raw,!e&&Ti(Qt(t),"iterate",jc),Reflect.get(t,"size",t)}function W6(t){t=Qt(t);const e=Qt(this);return i2(e).has.call(e,t)||(e.add(t),lo(e,"add",t,t)),this}function K6(t,e){e=Qt(e);const r=Qt(this),{has:n,get:a}=i2(r);let s=n.call(r,t);s||(t=Qt(t),s=n.call(r,t));const o=a.call(r,t);return r.set(t,e),s?La(e,o)&&lo(r,"set",t,e):lo(r,"add",t,e),this}function J6(t){const e=Qt(this),{has:r,get:n}=i2(e);let a=r.call(e,t);a||(t=Qt(t),a=r.call(e,t)),n&&n.call(e,t);const s=e.delete(t);return a&&lo(e,"delete",t,void 0),s}function X6(){const t=Qt(this),e=t.size!==0,r=t.clear();return e&&lo(t,"clear",void 0,void 0),r}function mv(t,e){return function(n,a){const s=this,o=s.__v_raw,u=Qt(o),c=e?eD:t?rD:sb;return!t&&Ti(u,"iterate",jc),o.forEach((l,d)=>n.call(a,c(l),c(d),s))}}function gv(t,e,r){return function(...n){const a=this.__v_raw,s=Qt(a),o=pd(s),u=t==="entries"||t===Symbol.iterator&&o,c=t==="keys"&&o,l=a[t](...n),d=r?eD:e?rD:sb;return!e&&Ti(s,"iterate",c?UI:jc),{next(){const{value:f,done:h}=l.next();return h?{value:f,done:h}:{value:u?[d(f[0]),d(f[1])]:d(f),done:h}},[Symbol.iterator](){return this}}}}function Co(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function yce(){const t={get(s){return hv(this,s)},get size(){return yv(this)},has:pv,add:W6,set:K6,delete:J6,clear:X6,forEach:mv(!1,!1)},e={get(s){return hv(this,s,!1,!0)},get size(){return yv(this)},has:pv,add:W6,set:K6,delete:J6,clear:X6,forEach:mv(!1,!0)},r={get(s){return hv(this,s,!0)},get size(){return yv(this,!0)},has(s){return pv.call(this,s,!0)},add:Co("add"),set:Co("set"),delete:Co("delete"),clear:Co("clear"),forEach:mv(!0,!1)},n={get(s){return hv(this,s,!0,!0)},get size(){return yv(this,!0)},has(s){return pv.call(this,s,!0)},add:Co("add"),set:Co("set"),delete:Co("delete"),clear:Co("clear"),forEach:mv(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{t[s]=gv(s,!1,!1),r[s]=gv(s,!0,!1),e[s]=gv(s,!1,!0),n[s]=gv(s,!0,!0)}),[t,r,e,n]}const[mce,gce,_ce,bce]=yce();function a2(t,e){const r=e?t?bce:_ce:t?gce:mce;return(n,a,s)=>a==="__v_isReactive"?!t:a==="__v_isReadonly"?t:a==="__v_raw"?n:Reflect.get(Kt(r,a)&&a in n?r:n,a,s)}const vce={get:a2(!1,!1)},wce={get:a2(!1,!0)},Sce={get:a2(!0,!1)},Tce={get:a2(!0,!0)},iW=new WeakMap,aW=new WeakMap,sW=new WeakMap,oW=new WeakMap;function Ece(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ace(t){return t.__v_skip||!Object.isExtensible(t)?0:Ece(Gue(t))}function Ub(t){return ab(t)?t:s2(t,!1,dce,vce,iW)}function uW(t){return s2(t,!1,hce,wce,aW)}function cW(t){return s2(t,!0,fce,Sce,sW)}function xFe(t){return s2(t,!0,pce,Tce,oW)}function s2(t,e,r,n,a){if(!fr(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const s=a.get(t);if(s)return s;const o=Ace(t);if(o===0)return t;const u=new Proxy(t,o===2?n:r);return a.set(t,u),u}function Mc(t){return ab(t)?Mc(t.__v_raw):!!(t&&t.__v_isReactive)}function ab(t){return!!(t&&t.__v_isReadonly)}function sS(t){return!!(t&&t.__v_isShallow)}function lW(t){return t?!!t.__v_raw:!1}function Qt(t){const e=t&&t.__v_raw;return e?Qt(e):t}function tD(t){return Object.isExtensible(t)&&UG(t,"__v_skip",!0),t}const sb=t=>fr(t)?Ub(t):t,rD=t=>fr(t)?cW(t):t;class dW{constructor(e,r,n,a){this.getter=e,this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ib(()=>e(this._value),()=>gd(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=n}get value(){const e=Qt(this);return(!e._cacheable||e.effect.dirty)&&La(e._value,e._value=e.effect.run())&&gd(e,4),nD(e),e.effect._dirtyLevel>=2&&gd(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function Oce(t,e,r=!1){let n,a;const s=At(t);return s?(n=t,a=bi):(n=t.get,a=t.set),new dW(n,a,s||!a,r)}function nD(t){var e;iu&&Lc&&(t=Qt(t),XG(Lc,(e=t.dep)!=null?e:t.dep=ZG(()=>t.dep=void 0,t instanceof dW?t:void 0)))}function gd(t,e=4,r){t=Qt(t);const n=t.dep;n&&YG(n,e)}function rn(t){return!!(t&&t.__v_isRef===!0)}function fo(t){return fW(t,!1)}function Rce(t){return fW(t,!0)}function fW(t,e){return rn(t)?t:new xce(t,e)}class xce{constructor(e,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?e:Qt(e),this._value=r?e:sb(e)}get value(){return nD(this),this._value}set value(e){const r=this.__v_isShallow||sS(e)||ab(e);e=r?e:Qt(e),La(e,this._rawValue)&&(this._rawValue=e,this._value=r?e:sb(e),gd(this,4))}}function IFe(t){gd(t,4)}function Fc(t){return rn(t)?t.value:t}function PFe(t){return At(t)?t():Fc(t)}const Ice={get:(t,e,r)=>Fc(Reflect.get(t,e,r)),set:(t,e,r,n)=>{const a=t[e];return rn(a)&&!rn(r)?(a.value=r,!0):Reflect.set(t,e,r,n)}};function hW(t){return Mc(t)?t:new Proxy(t,Ice)}class Pce{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:r,set:n}=e(()=>nD(this),()=>gd(this));this._get=r,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function Nce(t){return new Pce(t)}function Dce(t){const e=ft(t)?new Array(t.length):{};for(const r in t)e[r]=pW(t,r);return e}class Cce{constructor(e,r,n){this._object=e,this._key=r,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return oce(Qt(this._object),this._key)}}class Lce{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function NFe(t,e,r){return rn(t)?t:At(t)?new Lce(t):fr(t)&&arguments.length>1?pW(t,e,r):fo(t)}function pW(t,e,r){const n=t[e];return rn(n)?n:new Cce(t,e,r)}const DFe={GET:"get",HAS:"has",ITERATE:"iterate"},CFe={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"};/** +**/let Ii;class QG{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ii,!e&&Ii&&(this.index=(Ii.scopes||(Ii.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const r=Ii;try{return Ii=this,e()}finally{Ii=r}}}on(){Ii=this}off(){Ii=this.parent}stop(e){if(this._active){let r,n;for(r=0,n=this.effects.length;r=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Eu()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=iu,r=Lc;try{return iu=!0,Lc=this,this._runnings++,Q6(this),this.fn()}finally{z6(this),this._runnings--,Lc=r,iu=e}}stop(){var e;this.active&&(Q6(this),z6(this),(e=this.onStop)==null||e.call(this),this.active=!1)}}function ace(t){return t.value}function Q6(t){t._trackId++,t._depsLength=0}function z6(t){if(t.deps.length>t._depsLength){for(let e=t._depsLength;e{r.dirty&&r.run()});e&&(jr(r,e),e.scope&&GG(r,e.scope)),(!e||!e.lazy)&&r.run();const n=r.run.bind(r);return n.effect=r,n}function RFe(t){t.effect.stop()}let iu=!0,qI=0;const JG=[];function Tu(){JG.push(iu),iu=!1}function Eu(){const t=JG.pop();iu=t===void 0?!0:t}function YN(){qI++}function ZN(){for(qI--;!qI&&$I.length;)$I.shift()()}function XG(t,e,r){if(e.get(t)!==t._trackId){e.set(t,t._trackId);const n=t.deps[t._depsLength];n!==e?(n&&KG(n,t),t.deps[t._depsLength++]=e):t._depsLength++}}const $I=[];function YG(t,e,r){YN();for(const n of t.keys()){let a;n._dirtyLevel{const r=new Map;return r.cleanup=t,r.computed=e,r},iS=new WeakMap,jc=Symbol(""),UI=Symbol("");function Ti(t,e,r){if(iu&&Lc){let n=iS.get(t);n||iS.set(t,n=new Map);let a=n.get(r);a||n.set(r,a=ZG(()=>n.delete(r))),XG(Lc,a)}}function lo(t,e,r,n,a,s){const o=iS.get(t);if(!o)return;let u=[];if(e==="clear")u=[...o.values()];else if(r==="length"&&ft(t)){const c=Number(n);o.forEach((l,d)=>{(d==="length"||!go(d)&&d>=c)&&u.push(l)})}else switch(r!==void 0&&u.push(o.get(r)),e){case"add":ft(t)?XN(r)&&u.push(o.get("length")):(u.push(o.get(jc)),hd(t)&&u.push(o.get(UI)));break;case"delete":ft(t)||(u.push(o.get(jc)),hd(t)&&u.push(o.get(UI)));break;case"set":hd(t)&&u.push(o.get(jc));break}YN();for(const c of u)c&&YG(c,4);ZN()}function sce(t,e){var r;return(r=iS.get(t))==null?void 0:r.get(e)}const oce=ZS("__proto__,__v_isRef,__isVue"),eW=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(go)),G6=uce();function uce(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...r){const n=Qt(this);for(let s=0,o=this.length;s{t[e]=function(...r){Tu(),YN();const n=Qt(this)[e].apply(this,r);return ZN(),Eu(),n}}),t}function cce(t){go(t)||(t=String(t));const e=Qt(this);return Ti(e,"has",t),e.hasOwnProperty(t)}class tW{constructor(e=!1,r=!1){this._isReadonly=e,this._isShallow=r}get(e,r,n){const a=this._isReadonly,s=this._isShallow;if(r==="__v_isReactive")return!a;if(r==="__v_isReadonly")return a;if(r==="__v_isShallow")return s;if(r==="__v_raw")return n===(a?s?oW:sW:s?aW:iW).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const o=ft(e);if(!a){if(o&&Kt(G6,r))return Reflect.get(G6,r,n);if(r==="hasOwnProperty")return cce}const u=Reflect.get(e,r,n);return(go(r)?eW.has(r):oce(r))||(a||Ti(e,"get",r),s)?u:rn(u)?o&&XN(r)?u:u.value:fr(u)?a?cW(u):Ub(u):u}}class rW extends tW{constructor(e=!1){super(!1,e)}set(e,r,n,a){let s=e[r];if(!this._isShallow){const c=ab(s);if(!aS(n)&&!ab(n)&&(s=Qt(s),n=Qt(n)),!ft(e)&&rn(s)&&!rn(n))return c?!1:(s.value=n,!0)}const o=ft(e)&&XN(r)?Number(r)t,n2=t=>Reflect.getPrototypeOf(t);function hv(t,e,r=!1,n=!1){t=t.__v_raw;const a=Qt(t),s=Qt(e);r||(La(e,s)&&Ti(a,"get",e),Ti(a,"get",s));const{has:o}=n2(a),u=n?eD:r?rD:sb;if(o.call(a,e))return u(t.get(e));if(o.call(a,s))return u(t.get(s));t!==a&&t.get(e)}function pv(t,e=!1){const r=this.__v_raw,n=Qt(r),a=Qt(t);return e||(La(t,a)&&Ti(n,"has",t),Ti(n,"has",a)),t===a?r.has(t):r.has(t)||r.has(a)}function yv(t,e=!1){return t=t.__v_raw,!e&&Ti(Qt(t),"iterate",jc),Reflect.get(t,"size",t)}function W6(t){t=Qt(t);const e=Qt(this);return n2(e).has.call(e,t)||(e.add(t),lo(e,"add",t,t)),this}function K6(t,e){e=Qt(e);const r=Qt(this),{has:n,get:a}=n2(r);let s=n.call(r,t);s||(t=Qt(t),s=n.call(r,t));const o=a.call(r,t);return r.set(t,e),s?La(e,o)&&lo(r,"set",t,e):lo(r,"add",t,e),this}function J6(t){const e=Qt(this),{has:r,get:n}=n2(e);let a=r.call(e,t);a||(t=Qt(t),a=r.call(e,t)),n&&n.call(e,t);const s=e.delete(t);return a&&lo(e,"delete",t,void 0),s}function X6(){const t=Qt(this),e=t.size!==0,r=t.clear();return e&&lo(t,"clear",void 0,void 0),r}function mv(t,e){return function(n,a){const s=this,o=s.__v_raw,u=Qt(o),c=e?eD:t?rD:sb;return!t&&Ti(u,"iterate",jc),o.forEach((l,d)=>n.call(a,c(l),c(d),s))}}function gv(t,e,r){return function(...n){const a=this.__v_raw,s=Qt(a),o=hd(s),u=t==="entries"||t===Symbol.iterator&&o,c=t==="keys"&&o,l=a[t](...n),d=r?eD:e?rD:sb;return!e&&Ti(s,"iterate",c?UI:jc),{next(){const{value:f,done:h}=l.next();return h?{value:f,done:h}:{value:u?[d(f[0]),d(f[1])]:d(f),done:h}},[Symbol.iterator](){return this}}}}function Co(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function pce(){const t={get(s){return hv(this,s)},get size(){return yv(this)},has:pv,add:W6,set:K6,delete:J6,clear:X6,forEach:mv(!1,!1)},e={get(s){return hv(this,s,!1,!0)},get size(){return yv(this)},has:pv,add:W6,set:K6,delete:J6,clear:X6,forEach:mv(!1,!0)},r={get(s){return hv(this,s,!0)},get size(){return yv(this,!0)},has(s){return pv.call(this,s,!0)},add:Co("add"),set:Co("set"),delete:Co("delete"),clear:Co("clear"),forEach:mv(!0,!1)},n={get(s){return hv(this,s,!0,!0)},get size(){return yv(this,!0)},has(s){return pv.call(this,s,!0)},add:Co("add"),set:Co("set"),delete:Co("delete"),clear:Co("clear"),forEach:mv(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{t[s]=gv(s,!1,!1),r[s]=gv(s,!0,!1),e[s]=gv(s,!1,!0),n[s]=gv(s,!0,!0)}),[t,r,e,n]}const[yce,mce,gce,_ce]=pce();function i2(t,e){const r=e?t?_ce:gce:t?mce:yce;return(n,a,s)=>a==="__v_isReactive"?!t:a==="__v_isReadonly"?t:a==="__v_raw"?n:Reflect.get(Kt(r,a)&&a in n?r:n,a,s)}const bce={get:i2(!1,!1)},vce={get:i2(!1,!0)},wce={get:i2(!0,!1)},Sce={get:i2(!0,!0)},iW=new WeakMap,aW=new WeakMap,sW=new WeakMap,oW=new WeakMap;function Tce(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ece(t){return t.__v_skip||!Object.isExtensible(t)?0:Tce(zue(t))}function Ub(t){return ab(t)?t:a2(t,!1,lce,bce,iW)}function uW(t){return a2(t,!1,fce,vce,aW)}function cW(t){return a2(t,!0,dce,wce,sW)}function xFe(t){return a2(t,!0,hce,Sce,oW)}function a2(t,e,r,n,a){if(!fr(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const s=a.get(t);if(s)return s;const o=Ece(t);if(o===0)return t;const u=new Proxy(t,o===2?n:r);return a.set(t,u),u}function Mc(t){return ab(t)?Mc(t.__v_raw):!!(t&&t.__v_isReactive)}function ab(t){return!!(t&&t.__v_isReadonly)}function aS(t){return!!(t&&t.__v_isShallow)}function lW(t){return t?!!t.__v_raw:!1}function Qt(t){const e=t&&t.__v_raw;return e?Qt(e):t}function tD(t){return Object.isExtensible(t)&&UG(t,"__v_skip",!0),t}const sb=t=>fr(t)?Ub(t):t,rD=t=>fr(t)?cW(t):t;class dW{constructor(e,r,n,a){this.getter=e,this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ib(()=>e(this._value),()=>md(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=n}get value(){const e=Qt(this);return(!e._cacheable||e.effect.dirty)&&La(e._value,e._value=e.effect.run())&&md(e,4),nD(e),e.effect._dirtyLevel>=2&&md(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function Ace(t,e,r=!1){let n,a;const s=At(t);return s?(n=t,a=bi):(n=t.get,a=t.set),new dW(n,a,s||!a,r)}function nD(t){var e;iu&&Lc&&(t=Qt(t),XG(Lc,(e=t.dep)!=null?e:t.dep=ZG(()=>t.dep=void 0,t instanceof dW?t:void 0)))}function md(t,e=4,r){t=Qt(t);const n=t.dep;n&&YG(n,e)}function rn(t){return!!(t&&t.__v_isRef===!0)}function fo(t){return fW(t,!1)}function Oce(t){return fW(t,!0)}function fW(t,e){return rn(t)?t:new Rce(t,e)}class Rce{constructor(e,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?e:Qt(e),this._value=r?e:sb(e)}get value(){return nD(this),this._value}set value(e){const r=this.__v_isShallow||aS(e)||ab(e);e=r?e:Qt(e),La(e,this._rawValue)&&(this._rawValue=e,this._value=r?e:sb(e),md(this,4))}}function IFe(t){md(t,4)}function Fc(t){return rn(t)?t.value:t}function PFe(t){return At(t)?t():Fc(t)}const xce={get:(t,e,r)=>Fc(Reflect.get(t,e,r)),set:(t,e,r,n)=>{const a=t[e];return rn(a)&&!rn(r)?(a.value=r,!0):Reflect.set(t,e,r,n)}};function hW(t){return Mc(t)?t:new Proxy(t,xce)}class Ice{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:r,set:n}=e(()=>nD(this),()=>md(this));this._get=r,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function Pce(t){return new Ice(t)}function Nce(t){const e=ft(t)?new Array(t.length):{};for(const r in t)e[r]=pW(t,r);return e}class Dce{constructor(e,r,n){this._object=e,this._key=r,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return sce(Qt(this._object),this._key)}}class Cce{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function NFe(t,e,r){return rn(t)?t:At(t)?new Cce(t):fr(t)&&arguments.length>1?pW(t,e,r):fo(t)}function pW(t,e,r){const n=t[e];return rn(n)?n:new Dce(t,e,r)}const DFe={GET:"get",HAS:"has",ITERATE:"iterate"},CFe={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"};/** * @vue/runtime-core v3.4.23 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function LFe(t,e){}const jFe={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER"},jce={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function au(t,e,r,n){try{return n?t(...n):t()}catch(a){ff(a,e,r)}}function sa(t,e,r,n){if(At(t)){const a=au(t,e,r,n);return a&&JN(a)&&a.catch(s=>{ff(s,e,r)}),a}if(ft(t)){const a=[];for(let s=0;s>>1,a=Mn[n],s=ub(a);sis&&Mn.splice(e,1)}function VI(t){ft(t)?_d.push(...t):(!zo||!zo.includes(t,t.allowRecurse?_c+1:_c))&&_d.push(t),mW()}function Y6(t,e,r=ob?is+1:0){for(;rub(r)-ub(n));if(_d.length=0,zo){zo.push(...e);return}for(zo=e,_c=0;_ct.id==null?1/0:t.id,qce=(t,e)=>{const r=ub(t)-ub(e);if(r===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return r};function gW(t){kI=!1,ob=!0,Mn.sort(qce);try{for(is=0;isWl.emit(a,...s)),_v=[]):typeof window<"u"&&window.HTMLElement&&!((n=(r=window.navigator)==null?void 0:r.userAgent)!=null&&n.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(s=>{_W(s,e)}),setTimeout(()=>{Wl||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,_v=[])},3e3)):_v=[]}function $ce(t,e,...r){if(t.isUnmounted)return;const n=t.vnode.props||sr;let a=r;const s=e.startsWith("update:"),o=s&&e.slice(7);if(o&&o in n){const d=`${o==="modelValue"?"model":o}Modifiers`,{number:f,trim:h}=n[d]||sr;h&&(a=r.map(p=>Mr(p)?p.trim():p)),f&&(a=r.map(rS))}let u,c=n[u=ww(e)]||n[u=ww(wi(e))];!c&&s&&(c=n[u=ww(Di(e))]),c&&sa(c,t,6,a);const l=n[u+"Once"];if(l){if(!t.emitted)t.emitted={};else if(t.emitted[u])return;t.emitted[u]=!0,sa(l,t,6,a)}}function bW(t,e,r=!1){const n=e.emitsCache,a=n.get(t);if(a!==void 0)return a;const s=t.emits;let o={},u=!1;if(!At(t)){const c=l=>{const d=bW(l,e,!0);d&&(u=!0,jr(o,d))};!r&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}return!s&&!u?(fr(t)&&n.set(t,null),null):(ft(s)?s.forEach(c=>o[c]=null):jr(o,s),fr(t)&&n.set(t,o),o)}function u2(t,e){return!t||!qb(e)?!1:(e=e.slice(2).replace(/Once$/,""),Kt(t,e[0].toLowerCase()+e.slice(1))||Kt(t,Di(e))||Kt(t,e))}let en=null,c2=null;function cb(t){const e=en;return en=t,c2=t&&t.type.__scopeId||null,e}function Uce(t){c2=t}function kce(){c2=null}const MFe=t=>Dn;function Dn(t,e=en,r){if(!e||t._n)return t;const n=(...a)=>{n._d&&fL(-1);const s=cb(e);let o;try{o=t(...a)}finally{cb(s),n._d&&fL(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function Sw(t){const{type:e,vnode:r,proxy:n,withProxy:a,props:s,propsOptions:[o],slots:u,attrs:c,emit:l,render:d,renderCache:f,data:h,setupState:p,ctx:m,inheritAttrs:y}=t;let g,b;const v=cb(t);try{if(r.shapeFlag&4){const w=a||n,E=w;g=Ni(d.call(E,w,f,s,p,h,m)),b=c}else{const w=e;g=Ni(w.length>1?w(s,{attrs:c,slots:u,emit:l}):w(s,null)),b=e.props?c:Hce(c)}}catch(w){V_.length=0,ff(w,t,1),g=It(ii)}let _=g;if(b&&y!==!1){const w=Object.keys(b),{shapeFlag:E}=_;w.length&&E&7&&(o&&w.some(WN)&&(b=Qce(b,o)),_=_o(_,b))}return r.dirs&&(_=_o(_),_.dirs=_.dirs?_.dirs.concat(r.dirs):r.dirs),r.transition&&(_.transition=r.transition),g=_,cb(v),g}function Vce(t,e=!0){let r;for(let n=0;n{let e;for(const r in t)(r==="class"||r==="style"||qb(r))&&((e||(e={}))[r]=t[r]);return e},Qce=(t,e)=>{const r={};for(const n in t)(!WN(n)||!(n.slice(9)in e))&&(r[n]=t[n]);return r};function zce(t,e,r){const{props:n,children:a,component:s}=t,{props:o,children:u,patchFlag:c}=e,l=s.emitsOptions;if(e.dirs||e.transition)return!0;if(r&&c>=0){if(c&1024)return!0;if(c&16)return n?Z6(n,o,l):!!o;if(c&8){const d=e.dynamicProps;for(let f=0;ft.__isSuspense;let HI=0;const Wce={name:"Suspense",__isSuspense:!0,process(t,e,r,n,a,s,o,u,c,l){if(t==null)Kce(e,r,n,a,s,o,u,c,l);else{if(s&&s.deps>0&&!t.suspense.isInFallback){e.suspense=t.suspense,e.suspense.vnode=e,e.el=t.el;return}Jce(t,e,r,n,a,o,u,c,l)}},hydrate:Xce,create:uD,normalize:Yce},qFe=Wce;function lb(t,e){const r=t.props&&t.props[e];At(r)&&r()}function Kce(t,e,r,n,a,s,o,u,c){const{p:l,o:{createElement:d}}=c,f=d("div"),h=t.suspense=uD(t,a,n,e,f,r,s,o,u,c);l(null,h.pendingBranch=t.ssContent,f,null,n,h,s,o),h.deps>0?(lb(t,"onPending"),lb(t,"onFallback"),l(null,t.ssFallback,e,r,n,null,s,o),bd(h,t.ssFallback)):h.resolve(!1,!0)}function Jce(t,e,r,n,a,s,o,u,{p:c,um:l,o:{createElement:d}}){const f=e.suspense=t.suspense;f.vnode=e,e.el=t.el;const h=e.ssContent,p=e.ssFallback,{activeBranch:m,pendingBranch:y,isInFallback:g,isHydrating:b}=f;if(y)f.pendingBranch=h,Da(h,y)?(c(y,h,f.hiddenContainer,null,a,f,s,o,u),f.deps<=0?f.resolve():g&&(b||(c(m,p,r,n,a,null,s,o,u),bd(f,p)))):(f.pendingId=HI++,b?(f.isHydrating=!1,f.activeBranch=y):l(y,a,f),f.deps=0,f.effects.length=0,f.hiddenContainer=d("div"),g?(c(null,h,f.hiddenContainer,null,a,f,s,o,u),f.deps<=0?f.resolve():(c(m,p,r,n,a,null,s,o,u),bd(f,p))):m&&Da(h,m)?(c(m,h,r,n,a,f,s,o,u),f.resolve(!0)):(c(null,h,f.hiddenContainer,null,a,f,s,o,u),f.deps<=0&&f.resolve()));else if(m&&Da(h,m))c(m,h,r,n,a,f,s,o,u),bd(f,h);else if(lb(e,"onPending"),f.pendingBranch=h,h.shapeFlag&512?f.pendingId=h.component.suspenseId:f.pendingId=HI++,c(null,h,f.hiddenContainer,null,a,f,s,o,u),f.deps<=0)f.resolve();else{const{timeout:v,pendingId:_}=f;v>0?setTimeout(()=>{f.pendingId===_&&f.fallback(p)},v):v===0&&f.fallback(p)}}function uD(t,e,r,n,a,s,o,u,c,l,d=!1){const{p:f,m:h,um:p,n:m,o:{parentNode:y,remove:g}}=l;let b;const v=Zce(t);v&&e!=null&&e.pendingBranch&&(b=e.pendingId,e.deps++);const _=t.props?nS(t.props.timeout):void 0,w=s,E={vnode:t,parent:e,parentComponent:r,namespace:o,container:n,hiddenContainer:a,deps:0,pendingId:HI++,timeout:typeof _=="number"?_:-1,activeBranch:null,pendingBranch:null,isInFallback:!d,isHydrating:d,isUnmounted:!1,effects:[],resolve(O=!1,L=!1){const{vnode:F,activeBranch:x,pendingBranch:P,pendingId:j,effects:N,parentComponent:V,container:$}=E;let q=!1;E.isHydrating?E.isHydrating=!1:O||(q=x&&P.transition&&P.transition.mode==="out-in",q&&(x.transition.afterLeave=()=>{j===E.pendingId&&(h(P,$,s===w?m(x):s,0),VI(N))}),x&&(y(x.el)!==E.hiddenContainer&&(s=m(x)),p(x,V,E,!0)),q||h(P,$,s,0)),bd(E,P),E.pendingBranch=null,E.isInFallback=!1;let H=E.parent,X=!1;for(;H;){if(H.pendingBranch){H.effects.push(...N),X=!0;break}H=H.parent}!X&&!q&&VI(N),E.effects=[],v&&e&&e.pendingBranch&&b===e.pendingId&&(e.deps--,e.deps===0&&!L&&e.resolve()),lb(F,"onResolve")},fallback(O){if(!E.pendingBranch)return;const{vnode:L,activeBranch:F,parentComponent:x,container:P,namespace:j}=E;lb(L,"onFallback");const N=m(F),V=()=>{E.isInFallback&&(f(null,O,P,N,x,null,j,u,c),bd(E,O))},$=O.transition&&O.transition.mode==="out-in";$&&(F.transition.afterLeave=V),E.isInFallback=!0,p(F,x,null,!0),$||V()},move(O,L,F){E.activeBranch&&h(E.activeBranch,O,L,F),E.container=O},next(){return E.activeBranch&&m(E.activeBranch)},registerDep(O,L){const F=!!E.pendingBranch;F&&E.deps++;const x=O.vnode.el;O.asyncDep.catch(P=>{ff(P,O,0)}).then(P=>{if(O.isUnmounted||E.isUnmounted||E.pendingId!==O.suspenseId)return;O.asyncResolved=!0;const{vnode:j}=O;eP(O,P,!1),x&&(j.el=x);const N=!x&&O.subTree.el;L(O,j,y(x||O.subTree.el),x?null:m(O.subTree),E,o,c),N&&g(N),aD(O,j.el),F&&--E.deps===0&&E.resolve()})},unmount(O,L){E.isUnmounted=!0,E.activeBranch&&p(E.activeBranch,r,O,L),E.pendingBranch&&p(E.pendingBranch,r,O,L)}};return E}function Xce(t,e,r,n,a,s,o,u,c){const l=e.suspense=uD(e,n,r,t.parentNode,document.createElement("div"),null,a,s,o,u,!0),d=c(t,l.pendingBranch=e.ssContent,r,l,s,o);return l.deps===0&&l.resolve(!1,!0),d}function Yce(t){const{shapeFlag:e,children:r}=t,n=e&32;t.ssContent=tL(n?r.default:r),t.ssFallback=n?tL(r.fallback):It(ii)}function tL(t){let e;if(At(t)){const r=zc&&t._c;r&&(t._d=!1,rr()),t=t(),r&&(t._d=!0,e=vi,VW())}return ft(t)&&(t=Vce(t)),t=Ni(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(r=>r!==t)),t}function SW(t,e){e&&e.pendingBranch?ft(t)?e.effects.push(...t):e.effects.push(t):VI(t)}function bd(t,e){t.activeBranch=e;const{vnode:r,parentComponent:n}=t;let a=e.el;for(;!a&&e.component;)e=e.component.subTree,a=e.el;r.el=a,n&&n.subTree===r&&(n.vnode.el=a,aD(n,a))}function Zce(t){var e;return((e=t.props)==null?void 0:e.suspensible)!=null&&t.props.suspensible!==!1}const ele=Symbol.for("v-scx"),tle=()=>cs(ele);function $Fe(t,e){return Vb(t,null,e)}function rle(t,e){return Vb(t,null,{flush:"post"})}function nle(t,e){return Vb(t,null,{flush:"sync"})}const bv={};function vd(t,e,r){return Vb(t,e,r)}function Vb(t,e,{immediate:r,deep:n,flush:a,once:s,onTrack:o,onTrigger:u}=sr){if(e&&s){const O=e;e=(...L)=>{O(...L),E()}}const c=dn,l=O=>n===!0?O:Pc(O,n===!1?1:void 0);let d,f=!1,h=!1;if(rn(t)?(d=()=>t.value,f=sS(t)):Mc(t)?(d=()=>l(t),f=!0):ft(t)?(h=!0,f=t.some(O=>Mc(O)||sS(O)),d=()=>t.map(O=>{if(rn(O))return O.value;if(Mc(O))return l(O);if(At(O))return au(O,c,2)})):At(t)?e?d=()=>au(t,c,2):d=()=>(p&&p(),sa(t,c,3,[m])):d=bi,e&&n){const O=d;d=()=>Pc(O())}let p,m=O=>{p=_.onStop=()=>{au(O,c,4),p=_.onStop=void 0}},y;if(Qb)if(m=bi,e?r&&sa(e,c,3,[d(),h?[]:void 0,m]):d(),a==="sync"){const O=tle();y=O.__watcherHandles||(O.__watcherHandles=[])}else return bi;let g=h?new Array(t.length).fill(bv):bv;const b=()=>{if(!(!_.active||!_.dirty))if(e){const O=_.run();(n||f||(h?O.some((L,F)=>La(L,g[F])):La(O,g)))&&(p&&p(),sa(e,c,3,[O,g===bv?void 0:h&&g[0]===bv?[]:g,m]),g=O)}else _.run()};b.allowRecurse=!!e;let v;a==="sync"?v=b:a==="post"?v=()=>En(b,c&&c.suspense):(b.pre=!0,c&&(b.id=c.uid),v=()=>o2(b));const _=new ib(d,bi,v),w=WG(),E=()=>{_.stop(),w&&KN(w.effects,_)};return e?r?b():g=_.run():a==="post"?En(_.run.bind(_),c&&c.suspense):_.run(),y&&y.push(E),E}function ile(t,e,r){const n=this.proxy,a=Mr(t)?t.includes(".")?TW(n,t):()=>n[t]:t.bind(n,n);let s;At(e)?s=e:(s=e.handler,r=e);const o=Wc(this),u=Vb(a,s.bind(n),r);return o(),u}function TW(t,e){const r=e.split(".");return()=>{let n=t;for(let a=0;a0){if(r>=e)return t;r++}if(n=n||new Set,n.has(t))return t;if(n.add(t),rn(t))Pc(t.value,e,r,n);else if(ft(t))for(let a=0;a{Pc(a,e,r,n)});else if($G(t))for(const a in t)Pc(t[a],e,r,n);return t}function Xi(t,e){if(en===null)return t;const r=h2(en)||en.proxy,n=t.dirs||(t.dirs=[]);for(let a=0;a{t.isMounted=!0}),dD(()=>{t.isUnmounting=!0}),t}const Gi=[Function,Array],AW={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Gi,onEnter:Gi,onAfterEnter:Gi,onEnterCancelled:Gi,onBeforeLeave:Gi,onLeave:Gi,onAfterLeave:Gi,onLeaveCancelled:Gi,onBeforeAppear:Gi,onAppear:Gi,onAfterAppear:Gi,onAppearCancelled:Gi},ale={name:"BaseTransition",props:AW,setup(t,{slots:e}){const r=Au(),n=EW();return()=>{const a=e.default&&cD(e.default(),!0);if(!a||!a.length)return;let s=a[0];if(a.length>1){for(const h of a)if(h.type!==ii){s=h;break}}const o=Qt(t),{mode:u}=o;if(n.isLeaving)return BE(s);const c=rL(s);if(!c)return BE(s);const l=db(c,o,n,r);Md(c,l);const d=r.subTree,f=d&&rL(d);if(f&&f.type!==ii&&!Da(c,f)){const h=db(f,o,n,r);if(Md(f,h),u==="out-in")return n.isLeaving=!0,h.afterLeave=()=>{n.isLeaving=!1,r.update.active!==!1&&(r.effect.dirty=!0,r.update())},BE(s);u==="in-out"&&c.type!==ii&&(h.delayLeave=(p,m,y)=>{const g=OW(n,f);g[String(f.key)]=f,p[Go]=()=>{m(),p[Go]=void 0,delete l.delayedLeave},l.delayedLeave=y})}return s}}},sle=ale;function OW(t,e){const{leavingVNodes:r}=t;let n=r.get(e.type);return n||(n=Object.create(null),r.set(e.type,n)),n}function db(t,e,r,n){const{appear:a,mode:s,persisted:o=!1,onBeforeEnter:u,onEnter:c,onAfterEnter:l,onEnterCancelled:d,onBeforeLeave:f,onLeave:h,onAfterLeave:p,onLeaveCancelled:m,onBeforeAppear:y,onAppear:g,onAfterAppear:b,onAppearCancelled:v}=e,_=String(t.key),w=OW(r,t),E=(F,x)=>{F&&sa(F,n,9,x)},O=(F,x)=>{const P=x[1];E(F,x),ft(F)?F.every(j=>j.length<=1)&&P():F.length<=1&&P()},L={mode:s,persisted:o,beforeEnter(F){let x=u;if(!r.isMounted)if(a)x=y||u;else return;F[Go]&&F[Go](!0);const P=w[_];P&&Da(t,P)&&P.el[Go]&&P.el[Go](),E(x,[F])},enter(F){let x=c,P=l,j=d;if(!r.isMounted)if(a)x=g||c,P=b||l,j=v||d;else return;let N=!1;const V=F[vv]=$=>{N||(N=!0,$?E(j,[F]):E(P,[F]),L.delayedLeave&&L.delayedLeave(),F[vv]=void 0)};x?O(x,[F,V]):V()},leave(F,x){const P=String(t.key);if(F[vv]&&F[vv](!0),r.isUnmounting)return x();E(f,[F]);let j=!1;const N=F[Go]=V=>{j||(j=!0,x(),V?E(m,[F]):E(p,[F]),F[Go]=void 0,w[P]===t&&delete w[P])};w[P]=t,h?O(h,[F,N]):N()},clone(F){return db(F,e,r,n)}};return L}function BE(t){if(Hb(t))return t=_o(t),t.children=null,t}function rL(t){return Hb(t)?t.children?t.children[0]:void 0:t}function Md(t,e){t.shapeFlag&6&&t.component?Md(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function cD(t,e=!1,r){let n=[],a=0;for(let s=0;s1)for(let s=0;s!!t.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function UFe(t){At(t)&&(t={loader:t});const{loader:e,loadingComponent:r,errorComponent:n,delay:a=200,timeout:s,suspensible:o=!0,onError:u}=t;let c=null,l,d=0;const f=()=>(d++,c=null,h()),h=()=>{let p;return c||(p=c=e().catch(m=>{if(m=m instanceof Error?m:new Error(String(m)),u)return new Promise((y,g)=>{u(m,()=>y(f()),()=>g(m),d+1)});throw m}).then(m=>p!==c&&c?c:(m&&(m.__esModule||m[Symbol.toStringTag]==="Module")&&(m=m.default),l=m,m)))};return l2({name:"AsyncComponentWrapper",__asyncLoader:h,get __asyncResolved(){return l},setup(){const p=dn;if(l)return()=>qE(l,p);const m=v=>{c=null,ff(v,p,13,!n)};if(o&&p.suspense||Qb)return h().then(v=>()=>qE(v,p)).catch(v=>(m(v),()=>n?It(n,{error:v}):null));const y=fo(!1),g=fo(),b=fo(!!a);return a&&setTimeout(()=>{b.value=!1},a),s!=null&&setTimeout(()=>{if(!y.value&&!g.value){const v=new Error(`Async component timed out after ${s}ms.`);m(v),g.value=v}},s),h().then(()=>{y.value=!0,p.parent&&Hb(p.parent.vnode)&&(p.parent.effect.dirty=!0,o2(p.parent.update))}).catch(v=>{m(v),g.value=v}),()=>{if(y.value&&l)return qE(l,p);if(g.value&&n)return It(n,{error:g.value});if(r&&!b.value)return It(r)}}})}function qE(t,e){const{ref:r,props:n,children:a,ce:s}=e.vnode,o=It(t,n,a);return o.ref=r,o.ce=s,delete e.vnode.ce,o}const Hb=t=>t.type.__isKeepAlive,ole={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const r=Au(),n=r.ctx;if(!n.renderer)return()=>{const v=e.default&&e.default();return v&&v.length===1?v[0]:v};const a=new Map,s=new Set;let o=null;const u=r.suspense,{renderer:{p:c,m:l,um:d,o:{createElement:f}}}=n,h=f("div");n.activate=(v,_,w,E,O)=>{const L=v.component;l(v,_,w,0,u),c(L.vnode,v,_,w,L,u,E,v.slotScopeIds,O),En(()=>{L.isDeactivated=!1,L.a&&md(L.a);const F=v.props&&v.props.onVnodeMounted;F&&yi(F,L.parent,v)},u)},n.deactivate=v=>{const _=v.component;l(v,h,null,1,u),En(()=>{_.da&&md(_.da);const w=v.props&&v.props.onVnodeUnmounted;w&&yi(w,_.parent,v),_.isDeactivated=!0},u)};function p(v){$E(v),d(v,r,u,!0)}function m(v){a.forEach((_,w)=>{const E=rP(_.type);E&&(!v||!v(E))&&y(w)})}function y(v){const _=a.get(v);!o||!Da(_,o)?p(_):o&&$E(o),a.delete(v),s.delete(v)}vd(()=>[t.include,t.exclude],([v,_])=>{v&&m(w=>b_(v,w)),_&&m(w=>!b_(_,w))},{flush:"post",deep:!0});let g=null;const b=()=>{g!=null&&a.set(g,UE(r.subTree))};return f2(b),lD(b),dD(()=>{a.forEach(v=>{const{subTree:_,suspense:w}=r,E=UE(_);if(v.type===E.type&&v.key===E.key){$E(E);const O=E.component.da;O&&En(O,w);return}p(v)})}),()=>{if(g=null,!e.default)return o=null;const v=e.default(),_=v[0];if(v.length>1)return o=null,v;if(!Gc(_)||!(_.shapeFlag&4)&&!(_.shapeFlag&128))return o=null,_;let w=UE(_);const E=w.type,O=rP(Bc(w)?w.type.__asyncResolved||{}:E),{include:L,exclude:F,max:x}=t;if(L&&(!O||!b_(L,O))||F&&O&&b_(F,O))return o=w,_;const P=w.key==null?E:w.key,j=a.get(P);return w.el&&(w=_o(w),_.shapeFlag&128&&(_.ssContent=w)),g=P,j?(w.el=j.el,w.component=j.component,w.transition&&Md(w,w.transition),w.shapeFlag|=512,s.delete(P),s.add(P)):(s.add(P),x&&s.size>parseInt(x,10)&&y(s.values().next().value)),w.shapeFlag|=256,o=w,wW(_.type)?_:w}}},kFe=ole;function b_(t,e){return ft(t)?t.some(r=>b_(r,e)):Mr(t)?t.split(",").includes(e):zue(t)?t.test(e):!1}function ule(t,e){RW(t,"a",e)}function cle(t,e){RW(t,"da",e)}function RW(t,e,r=dn){const n=t.__wdc||(t.__wdc=()=>{let a=r;for(;a;){if(a.isDeactivated)return;a=a.parent}return t()});if(d2(e,n,r),r){let a=r.parent;for(;a&&a.parent;)Hb(a.parent.vnode)&&lle(n,e,r,a),a=a.parent}}function lle(t,e,r,n){const a=d2(e,t,n,!0);fD(()=>{KN(n[e],a)},r)}function $E(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function UE(t){return t.shapeFlag&128?t.ssContent:t}function d2(t,e,r=dn,n=!1){if(r){const a=r[t]||(r[t]=[]),s=e.__weh||(e.__weh=(...o)=>{if(r.isUnmounted)return;Tu();const u=Wc(r),c=sa(e,r,t,o);return u(),Eu(),c});return n?a.unshift(s):a.push(s),s}}const Eo=t=>(e,r=dn)=>(!Qb||t==="sp")&&d2(t,(...n)=>e(...n),r),dle=Eo("bm"),f2=Eo("m"),fle=Eo("bu"),lD=Eo("u"),dD=Eo("bum"),fD=Eo("um"),hle=Eo("sp"),ple=Eo("rtg"),yle=Eo("rtc");function mle(t,e=dn){d2("ec",t,e)}function gle(t,e,r,n){let a;const s=r&&r[n];if(ft(t)||Mr(t)){a=new Array(t.length);for(let o=0,u=t.length;oe(o,u,void 0,s&&s[u]));else{const o=Object.keys(t);a=new Array(o.length);for(let u=0,c=o.length;u{const s=n.fn(...a);return s&&(s.key=n.key),s}:n.fn)}return t}function _le(t,e,r={},n,a){if(en.isCE||en.parent&&Bc(en.parent)&&en.parent.isCE)return e!=="default"&&(r.name=e),It("slot",r,n&&n());let s=t[e];s&&s._c&&(s._d=!1),rr();const o=s&&xW(s(r)),u=mD(Wr,{key:r.key||o&&o.key||`_${e}`},o||(n?n():[]),o&&t._===1?64:-2);return!a&&u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),s&&s._c&&(s._d=!0),u}function xW(t){return t.some(e=>Gc(e)?!(e.type===ii||e.type===Wr&&!xW(e.children)):!0)?t:null}function HFe(t,e){const r={};for(const n in t)r[e&&/[A-Z]/.test(n)?`on:${n}`:ww(n)]=t[n];return r}const QI=t=>t?GW(t)?h2(t)||t.proxy:QI(t.parent):null,U_=jr(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>QI(t.parent),$root:t=>QI(t.root),$emit:t=>t.emit,$options:t=>hD(t),$forceUpdate:t=>t.f||(t.f=()=>{t.effect.dirty=!0,o2(t.update)}),$nextTick:t=>t.n||(t.n=kb.bind(t.proxy)),$watch:t=>ile.bind(t)}),kE=(t,e)=>t!==sr&&!t.__isScriptSetup&&Kt(t,e),zI={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:r,setupState:n,data:a,props:s,accessCache:o,type:u,appContext:c}=t;let l;if(e[0]!=="$"){const p=o[e];if(p!==void 0)switch(p){case 1:return n[e];case 2:return a[e];case 4:return r[e];case 3:return s[e]}else{if(kE(n,e))return o[e]=1,n[e];if(a!==sr&&Kt(a,e))return o[e]=2,a[e];if((l=t.propsOptions[0])&&Kt(l,e))return o[e]=3,s[e];if(r!==sr&&Kt(r,e))return o[e]=4,r[e];GI&&(o[e]=0)}}const d=U_[e];let f,h;if(d)return e==="$attrs"&&Ti(t.attrs,"get",""),d(t);if((f=u.__cssModules)&&(f=f[e]))return f;if(r!==sr&&Kt(r,e))return o[e]=4,r[e];if(h=c.config.globalProperties,Kt(h,e))return h[e]},set({_:t},e,r){const{data:n,setupState:a,ctx:s}=t;return kE(a,e)?(a[e]=r,!0):n!==sr&&Kt(n,e)?(n[e]=r,!0):Kt(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(s[e]=r,!0)},has({_:{data:t,setupState:e,accessCache:r,ctx:n,appContext:a,propsOptions:s}},o){let u;return!!r[o]||t!==sr&&Kt(t,o)||kE(e,o)||(u=s[0])&&Kt(u,o)||Kt(n,o)||Kt(U_,o)||Kt(a.config.globalProperties,o)},defineProperty(t,e,r){return r.get!=null?t._.accessCache[e]=0:Kt(r,"value")&&this.set(t,e,r.value,null),Reflect.defineProperty(t,e,r)}},ble=jr({},zI,{get(t,e){if(e!==Symbol.unscopables)return zI.get(t,e,t)},has(t,e){return e[0]!=="_"&&!Xue(e)}});function QFe(){return null}function zFe(){return null}function GFe(t){}function WFe(t){}function KFe(){return null}function JFe(){}function XFe(t,e){return null}function YFe(){return IW().slots}function ZFe(){return IW().attrs}function IW(){const t=Au();return t.setupContext||(t.setupContext=JW(t))}function fb(t){return ft(t)?t.reduce((e,r)=>(e[r]=null,e),{}):t}function e5e(t,e){const r=fb(t);for(const n in e){if(n.startsWith("__skip"))continue;let a=r[n];a?ft(a)||At(a)?a=r[n]={type:a,default:e[n]}:a.default=e[n]:a===null&&(a=r[n]={default:e[n]}),a&&e[`__skip_${n}`]&&(a.skipFactory=!0)}return r}function t5e(t,e){return!t||!e?t||e:ft(t)&&ft(e)?t.concat(e):jr({},fb(t),fb(e))}function r5e(t,e){const r={};for(const n in t)e.includes(n)||Object.defineProperty(r,n,{enumerable:!0,get:()=>t[n]});return r}function n5e(t){const e=Au();let r=t();return ZI(),JN(r)&&(r=r.catch(n=>{throw Wc(e),n})),[r,()=>Wc(e)]}let GI=!0;function vle(t){const e=hD(t),r=t.proxy,n=t.ctx;GI=!1,e.beforeCreate&&nL(e.beforeCreate,t,"bc");const{data:a,computed:s,methods:o,watch:u,provide:c,inject:l,created:d,beforeMount:f,mounted:h,beforeUpdate:p,updated:m,activated:y,deactivated:g,beforeDestroy:b,beforeUnmount:v,destroyed:_,unmounted:w,render:E,renderTracked:O,renderTriggered:L,errorCaptured:F,serverPrefetch:x,expose:P,inheritAttrs:j,components:N,directives:V,filters:$}=e;if(l&&wle(l,n,null),o)for(const X in o){const Y=o[X];At(Y)&&(n[X]=Y.bind(r))}if(a){const X=a.call(r,r);fr(X)&&(t.data=Ub(X))}if(GI=!0,s)for(const X in s){const Y=s[X],he=At(Y)?Y.bind(r,r):At(Y.get)?Y.get.bind(r,r):bi,Te=!At(Y)&&At(Y.set)?Y.set.bind(r):bi,Ne=ea({get:he,set:Te});Object.defineProperty(n,X,{enumerable:!0,configurable:!0,get:()=>Ne.value,set:$e=>Ne.value=$e})}if(u)for(const X in u)PW(u[X],n,r,X);if(c){const X=At(c)?c.call(r):c;Reflect.ownKeys(X).forEach(Y=>{Tw(Y,X[Y])})}d&&nL(d,t,"c");function H(X,Y){ft(Y)?Y.forEach(he=>X(he.bind(r))):Y&&X(Y.bind(r))}if(H(dle,f),H(f2,h),H(fle,p),H(lD,m),H(ule,y),H(cle,g),H(mle,F),H(yle,O),H(ple,L),H(dD,v),H(fD,w),H(hle,x),ft(P))if(P.length){const X=t.exposed||(t.exposed={});P.forEach(Y=>{Object.defineProperty(X,Y,{get:()=>r[Y],set:he=>r[Y]=he})})}else t.exposed||(t.exposed={});E&&t.render===bi&&(t.render=E),j!=null&&(t.inheritAttrs=j),N&&(t.components=N),V&&(t.directives=V)}function wle(t,e,r=bi){ft(t)&&(t=WI(t));for(const n in t){const a=t[n];let s;fr(a)?"default"in a?s=cs(a.from||n,a.default,!0):s=cs(a.from||n):s=cs(a),rn(s)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>s.value,set:o=>s.value=o}):e[n]=s}}function nL(t,e,r){sa(ft(t)?t.map(n=>n.bind(e.proxy)):t.bind(e.proxy),e,r)}function PW(t,e,r,n){const a=n.includes(".")?TW(r,n):()=>r[n];if(Mr(t)){const s=e[t];At(s)&&vd(a,s)}else if(At(t))vd(a,t.bind(r));else if(fr(t))if(ft(t))t.forEach(s=>PW(s,e,r,n));else{const s=At(t.handler)?t.handler.bind(r):e[t.handler];At(s)&&vd(a,s,t)}}function hD(t){const e=t.type,{mixins:r,extends:n}=e,{mixins:a,optionsCache:s,config:{optionMergeStrategies:o}}=t.appContext,u=s.get(e);let c;return u?c=u:!a.length&&!r&&!n?c=e:(c={},a.length&&a.forEach(l=>uS(c,l,o,!0)),uS(c,e,o)),fr(e)&&s.set(e,c),c}function uS(t,e,r,n=!1){const{mixins:a,extends:s}=e;s&&uS(t,s,r,!0),a&&a.forEach(o=>uS(t,o,r,!0));for(const o in e)if(!(n&&o==="expose")){const u=Sle[o]||r&&r[o];t[o]=u?u(t[o],e[o]):e[o]}return t}const Sle={data:iL,props:aL,emits:aL,methods:v_,computed:v_,beforeCreate:Wn,created:Wn,beforeMount:Wn,mounted:Wn,beforeUpdate:Wn,updated:Wn,beforeDestroy:Wn,beforeUnmount:Wn,destroyed:Wn,unmounted:Wn,activated:Wn,deactivated:Wn,errorCaptured:Wn,serverPrefetch:Wn,components:v_,directives:v_,watch:Ele,provide:iL,inject:Tle};function iL(t,e){return e?t?function(){return jr(At(t)?t.call(this,this):t,At(e)?e.call(this,this):e)}:e:t}function Tle(t,e){return v_(WI(t),WI(e))}function WI(t){if(ft(t)){const e={};for(let r=0;r1)return r&&At(e)?e.call(n&&n.proxy):e}}function Rle(){return!!(dn||en||wd)}const DW=Object.create(null),KI=()=>Object.create(DW),CW=t=>Object.getPrototypeOf(t)===DW;function xle(t,e,r,n=!1){const a={},s=KI();t.propsDefaults=Object.create(null),LW(t,e,a,s);for(const o in t.propsOptions[0])o in a||(a[o]=void 0);r?t.props=n?a:uW(a):t.type.props?t.props=a:t.props=s,t.attrs=s}function Ile(t,e,r,n){const{props:a,attrs:s,vnode:{patchFlag:o}}=t,u=Qt(a),[c]=t.propsOptions;let l=!1;if((n||o>0)&&!(o&16)){if(o&8){const d=t.vnode.dynamicProps;for(let f=0;f{c=!0;const[h,p]=jW(f,e,!0);jr(o,h),p&&u.push(...p)};!r&&e.mixins.length&&e.mixins.forEach(d),t.extends&&d(t.extends),t.mixins&&t.mixins.forEach(d)}if(!s&&!c)return fr(t)&&n.set(t,hd),hd;if(ft(s))for(let d=0;d-1,p[1]=y<0||m-1||Kt(p,"default"))&&u.push(f)}}}const l=[o,u];return fr(t)&&n.set(t,l),l}function sL(t){return t[0]!=="$"&&!yd(t)}function oL(t){return t===null?"null":typeof t=="function"?t.name||"":typeof t=="object"&&t.constructor&&t.constructor.name||""}function uL(t,e){return oL(t)===oL(e)}function cL(t,e){return ft(e)?e.findIndex(r=>uL(r,t)):At(e)&&uL(e,t)?0:-1}const MW=t=>t[0]==="_"||t==="$stable",pD=t=>ft(t)?t.map(Ni):[Ni(t)],Ple=(t,e,r)=>{if(e._n)return e;const n=Dn((...a)=>pD(e(...a)),r);return n._c=!1,n},FW=(t,e,r)=>{const n=t._ctx;for(const a in t){if(MW(a))continue;const s=t[a];if(At(s))e[a]=Ple(a,s,n);else if(s!=null){const o=pD(s);e[a]=()=>o}}},BW=(t,e)=>{const r=pD(e);t.slots.default=()=>r},Nle=(t,e)=>{if(t.vnode.shapeFlag&32){const r=e._;r?(t.slots=Qt(e),UG(t.slots,"_",r)):FW(e,t.slots=KI())}else t.slots=KI(),e&&BW(t,e)},Dle=(t,e,r)=>{const{vnode:n,slots:a}=t;let s=!0,o=sr;if(n.shapeFlag&32){const u=e._;u?r&&u===1?s=!1:(jr(a,e),!r&&u===1&&delete a._):(s=!e.$stable,FW(e,a)),o=e}else e&&(BW(t,e),o={default:1});if(s)for(const u in a)!MW(u)&&o[u]==null&&delete a[u]};function cS(t,e,r,n,a=!1){if(ft(t)){t.forEach((h,p)=>cS(h,e&&(ft(e)?e[p]:e),r,n,a));return}if(Bc(n)&&!a)return;const s=n.shapeFlag&4?h2(n.component)||n.component.proxy:n.el,o=a?null:s,{i:u,r:c}=t,l=e&&e.r,d=u.refs===sr?u.refs={}:u.refs,f=u.setupState;if(l!=null&&l!==c&&(Mr(l)?(d[l]=null,Kt(f,l)&&(f[l]=null)):rn(l)&&(l.value=null)),At(c))au(c,u,12,[o,d]);else{const h=Mr(c),p=rn(c);if(h||p){const m=()=>{if(t.f){const y=h?Kt(f,c)?f[c]:d[c]:c.value;a?ft(y)&&KN(y,s):ft(y)?y.includes(s)||y.push(s):h?(d[c]=[s],Kt(f,c)&&(f[c]=d[c])):(c.value=[s],t.k&&(d[t.k]=c.value))}else h?(d[c]=o,Kt(f,c)&&(f[c]=o)):p&&(c.value=o,t.k&&(d[t.k]=o))};o?(m.id=-1,En(m,r)):m()}}}let Lo=!1;const Cle=t=>t.namespaceURI.includes("svg")&&t.tagName!=="foreignObject",Lle=t=>t.namespaceURI.includes("MathML"),wv=t=>{if(Cle(t))return"svg";if(Lle(t))return"mathml"},Sv=t=>t.nodeType===8;function jle(t){const{mt:e,p:r,o:{patchProp:n,createText:a,nextSibling:s,parentNode:o,remove:u,insert:c,createComment:l}}=t,d=(_,w)=>{if(!w.hasChildNodes()){r(null,_,w),oS(),w._vnode=_;return}Lo=!1,f(w.firstChild,_,null,null,null),oS(),w._vnode=_,Lo&&console.error("Hydration completed but contains mismatches.")},f=(_,w,E,O,L,F=!1)=>{F=F||!!w.dynamicChildren;const x=Sv(_)&&_.data==="[",P=()=>y(_,w,E,O,L,x),{type:j,ref:N,shapeFlag:V,patchFlag:$}=w;let q=_.nodeType;w.el=_,$===-2&&(F=!1,w.dynamicChildren=null);let H=null;switch(j){case Fd:q!==3?w.children===""?(c(w.el=a(""),o(_),_),H=_):H=P():(_.data!==w.children&&(Lo=!0,_.data=w.children),H=s(_));break;case ii:v(_)?(H=s(_),b(w.el=_.content.firstChild,_,E)):q!==8||x?H=P():H=s(_);break;case Sd:if(x&&(_=s(_),q=_.nodeType),q===1||q===3){H=_;const X=!w.children.length;for(let Y=0;Y{F=F||!!w.dynamicChildren;const{type:x,props:P,patchFlag:j,shapeFlag:N,dirs:V,transition:$}=w,q=x==="input"||x==="option";if(q||j!==-1){V&&es(w,null,E,"created");let H=!1;if(v(_)){H=$W(O,$)&&E&&E.vnode.props&&E.vnode.props.appear;const Y=_.content.firstChild;H&&$.beforeEnter(Y),b(Y,_,E),w.el=_=Y}if(N&16&&!(P&&(P.innerHTML||P.textContent))){let Y=p(_.firstChild,w,_,E,O,L,F);for(;Y;){Lo=!0;const he=Y;Y=Y.nextSibling,u(he)}}else N&8&&_.textContent!==w.children&&(Lo=!0,_.textContent=w.children);if(P)if(q||!F||j&48)for(const Y in P)(q&&(Y.endsWith("value")||Y==="indeterminate")||qb(Y)&&!yd(Y)||Y[0]===".")&&n(_,Y,null,P[Y],void 0,void 0,E);else P.onClick&&n(_,"onClick",null,P.onClick,void 0,void 0,E);let X;(X=P&&P.onVnodeBeforeMount)&&yi(X,E,w),V&&es(w,null,E,"beforeMount"),((X=P&&P.onVnodeMounted)||V||H)&&SW(()=>{X&&yi(X,E,w),H&&$.enter(_),V&&es(w,null,E,"mounted")},O)}return _.nextSibling},p=(_,w,E,O,L,F,x)=>{x=x||!!w.dynamicChildren;const P=w.children,j=P.length;for(let N=0;N{const{slotScopeIds:x}=w;x&&(L=L?L.concat(x):x);const P=o(_),j=p(s(_),w,P,E,O,L,F);return j&&Sv(j)&&j.data==="]"?s(w.anchor=j):(Lo=!0,c(w.anchor=l("]"),P,j),j)},y=(_,w,E,O,L,F)=>{if(Lo=!0,w.el=null,F){const j=g(_);for(;;){const N=s(_);if(N&&N!==j)u(N);else break}}const x=s(_),P=o(_);return u(_),r(null,w,P,x,E,O,wv(P),L),x},g=(_,w="[",E="]")=>{let O=0;for(;_;)if(_=s(_),_&&Sv(_)&&(_.data===w&&O++,_.data===E)){if(O===0)return s(_);O--}return _},b=(_,w,E)=>{const O=w.parentNode;O&&O.replaceChild(_,w);let L=E;for(;L;)L.vnode.el===w&&(L.vnode.el=L.subTree.el=_),L=L.parent},v=_=>_.nodeType===1&&_.tagName.toLowerCase()==="template";return[d,f]}const En=SW;function Mle(t){return qW(t)}function Fle(t){return qW(t,jle)}function qW(t,e){const r=kG();r.__VUE__=!0;const{insert:n,remove:a,patchProp:s,createElement:o,createText:u,createComment:c,setText:l,setElementText:d,parentNode:f,nextSibling:h,setScopeId:p=bi,insertStaticContent:m}=t,y=(T,R,U,G=null,Q=null,Z=null,se=void 0,re=null,le=!!R.dynamicChildren)=>{if(T===R)return;T&&!Da(T,R)&&(G=we(T),$e(T,Q,Z,!0),T=null),R.patchFlag===-2&&(le=!1,R.dynamicChildren=null);const{type:pe,ref:_e,shapeFlag:Ie}=R;switch(pe){case Fd:g(T,R,U,G);break;case ii:b(T,R,U,G);break;case Sd:T==null&&v(R,U,G,se);break;case Wr:N(T,R,U,G,Q,Z,se,re,le);break;default:Ie&1?E(T,R,U,G,Q,Z,se,re,le):Ie&6?V(T,R,U,G,Q,Z,se,re,le):(Ie&64||Ie&128)&&pe.process(T,R,U,G,Q,Z,se,re,le,z)}_e!=null&&Q&&cS(_e,T&&T.ref,Z,R||T,!R)},g=(T,R,U,G)=>{if(T==null)n(R.el=u(R.children),U,G);else{const Q=R.el=T.el;R.children!==T.children&&l(Q,R.children)}},b=(T,R,U,G)=>{T==null?n(R.el=c(R.children||""),U,G):R.el=T.el},v=(T,R,U,G)=>{[T.el,T.anchor]=m(T.children,R,U,G,T.el,T.anchor)},_=({el:T,anchor:R},U,G)=>{let Q;for(;T&&T!==R;)Q=h(T),n(T,U,G),T=Q;n(R,U,G)},w=({el:T,anchor:R})=>{let U;for(;T&&T!==R;)U=h(T),a(T),T=U;a(R)},E=(T,R,U,G,Q,Z,se,re,le)=>{R.type==="svg"?se="svg":R.type==="math"&&(se="mathml"),T==null?O(R,U,G,Q,Z,se,re,le):x(T,R,Q,Z,se,re,le)},O=(T,R,U,G,Q,Z,se,re)=>{let le,pe;const{props:_e,shapeFlag:Ie,transition:Ee,dirs:Me}=T;if(le=T.el=o(T.type,Z,_e&&_e.is,_e),Ie&8?d(le,T.children):Ie&16&&F(T.children,le,null,G,Q,VE(T,Z),se,re),Me&&es(T,null,G,"created"),L(le,T,T.scopeId,se,G),_e){for(const ke in _e)ke!=="value"&&!yd(ke)&&s(le,ke,null,_e[ke],Z,T.children,G,Q,Pe);"value"in _e&&s(le,"value",null,_e.value,Z),(pe=_e.onVnodeBeforeMount)&&yi(pe,G,T)}Me&&es(T,null,G,"beforeMount");const Ce=$W(Q,Ee);Ce&&Ee.beforeEnter(le),n(le,R,U),((pe=_e&&_e.onVnodeMounted)||Ce||Me)&&En(()=>{pe&&yi(pe,G,T),Ce&&Ee.enter(le),Me&&es(T,null,G,"mounted")},Q)},L=(T,R,U,G,Q)=>{if(U&&p(T,U),G)for(let Z=0;Z{for(let pe=le;pe{const re=R.el=T.el;let{patchFlag:le,dynamicChildren:pe,dirs:_e}=R;le|=T.patchFlag&16;const Ie=T.props||sr,Ee=R.props||sr;let Me;if(U&&Qu(U,!1),(Me=Ee.onVnodeBeforeUpdate)&&yi(Me,U,R,T),_e&&es(R,T,U,"beforeUpdate"),U&&Qu(U,!0),pe?P(T.dynamicChildren,pe,re,U,G,VE(R,Q),Z):se||Y(T,R,re,null,U,G,VE(R,Q),Z,!1),le>0){if(le&16)j(re,R,Ie,Ee,U,G,Q);else if(le&2&&Ie.class!==Ee.class&&s(re,"class",null,Ee.class,Q),le&4&&s(re,"style",Ie.style,Ee.style,Q),le&8){const Ce=R.dynamicProps;for(let ke=0;ke{Me&&yi(Me,U,R,T),_e&&es(R,T,U,"updated")},G)},P=(T,R,U,G,Q,Z,se)=>{for(let re=0;re{if(U!==G){if(U!==sr)for(const re in U)!yd(re)&&!(re in G)&&s(T,re,U[re],null,se,R.children,Q,Z,Pe);for(const re in G){if(yd(re))continue;const le=G[re],pe=U[re];le!==pe&&re!=="value"&&s(T,re,pe,le,se,R.children,Q,Z,Pe)}"value"in G&&s(T,"value",U.value,G.value,se)}},N=(T,R,U,G,Q,Z,se,re,le)=>{const pe=R.el=T?T.el:u(""),_e=R.anchor=T?T.anchor:u("");let{patchFlag:Ie,dynamicChildren:Ee,slotScopeIds:Me}=R;Me&&(re=re?re.concat(Me):Me),T==null?(n(pe,U,G),n(_e,U,G),F(R.children||[],U,_e,Q,Z,se,re,le)):Ie>0&&Ie&64&&Ee&&T.dynamicChildren?(P(T.dynamicChildren,Ee,U,Q,Z,se,re),(R.key!=null||Q&&R===Q.subTree)&&yD(T,R,!0)):Y(T,R,U,_e,Q,Z,se,re,le)},V=(T,R,U,G,Q,Z,se,re,le)=>{R.slotScopeIds=re,T==null?R.shapeFlag&512?Q.ctx.activate(R,U,G,se,le):$(R,U,G,Q,Z,se,le):q(T,R,le)},$=(T,R,U,G,Q,Z,se)=>{const re=T.component=zW(T,G,Q);if(Hb(T)&&(re.ctx.renderer=z),WW(re),re.asyncDep){if(Q&&Q.registerDep(re,H),!T.el){const le=re.subTree=It(ii);b(null,le,R,U)}}else H(re,T,R,U,Q,Z,se)},q=(T,R,U)=>{const G=R.component=T.component;if(zce(T,R,U))if(G.asyncDep&&!G.asyncResolved){X(G,R,U);return}else G.next=R,Bce(G.update),G.effect.dirty=!0,G.update();else R.el=T.el,G.vnode=R},H=(T,R,U,G,Q,Z,se)=>{const re=()=>{if(T.isMounted){let{next:_e,bu:Ie,u:Ee,parent:Me,vnode:Ce}=T;{const B=UW(T);if(B){_e&&(_e.el=Ce.el,X(T,_e,se)),B.asyncDep.then(()=>{T.isUnmounted||re()});return}}let ke=_e,qe;Qu(T,!1),_e?(_e.el=Ce.el,X(T,_e,se)):_e=Ce,Ie&&md(Ie),(qe=_e.props&&_e.props.onVnodeBeforeUpdate)&&yi(qe,Me,_e,Ce),Qu(T,!0);const W=Sw(T),D=T.subTree;T.subTree=W,y(D,W,f(D.el),we(D),T,Q,Z),_e.el=W.el,ke===null&&aD(T,W.el),Ee&&En(Ee,Q),(qe=_e.props&&_e.props.onVnodeUpdated)&&En(()=>yi(qe,Me,_e,Ce),Q)}else{let _e;const{el:Ie,props:Ee}=R,{bm:Me,m:Ce,parent:ke}=T,qe=Bc(R);if(Qu(T,!1),Me&&md(Me),!qe&&(_e=Ee&&Ee.onVnodeBeforeMount)&&yi(_e,ke,R),Qu(T,!0),Ie&&k){const W=()=>{T.subTree=Sw(T),k(Ie,T.subTree,T,Q,null)};qe?R.type.__asyncLoader().then(()=>!T.isUnmounted&&W()):W()}else{const W=T.subTree=Sw(T);y(null,W,U,G,T,Q,Z),R.el=W.el}if(Ce&&En(Ce,Q),!qe&&(_e=Ee&&Ee.onVnodeMounted)){const W=R;En(()=>yi(_e,ke,W),Q)}(R.shapeFlag&256||ke&&Bc(ke.vnode)&&ke.vnode.shapeFlag&256)&&T.a&&En(T.a,Q),T.isMounted=!0,R=U=G=null}},le=T.effect=new ib(re,bi,()=>o2(pe),T.scope),pe=T.update=()=>{le.dirty&&le.run()};pe.id=T.uid,Qu(T,!0),pe()},X=(T,R,U)=>{R.component=T;const G=T.vnode.props;T.vnode=R,T.next=null,Ile(T,R.props,G,U),Dle(T,R.children,U),Tu(),Y6(T),Eu()},Y=(T,R,U,G,Q,Z,se,re,le=!1)=>{const pe=T&&T.children,_e=T?T.shapeFlag:0,Ie=R.children,{patchFlag:Ee,shapeFlag:Me}=R;if(Ee>0){if(Ee&128){Te(pe,Ie,U,G,Q,Z,se,re,le);return}else if(Ee&256){he(pe,Ie,U,G,Q,Z,se,re,le);return}}Me&8?(_e&16&&Pe(pe,Q,Z),Ie!==pe&&d(U,Ie)):_e&16?Me&16?Te(pe,Ie,U,G,Q,Z,se,re,le):Pe(pe,Q,Z,!0):(_e&8&&d(U,""),Me&16&&F(Ie,U,G,Q,Z,se,re,le))},he=(T,R,U,G,Q,Z,se,re,le)=>{T=T||hd,R=R||hd;const pe=T.length,_e=R.length,Ie=Math.min(pe,_e);let Ee;for(Ee=0;Ee_e?Pe(T,Q,Z,!0,!1,Ie):F(R,U,G,Q,Z,se,re,le,Ie)},Te=(T,R,U,G,Q,Z,se,re,le)=>{let pe=0;const _e=R.length;let Ie=T.length-1,Ee=_e-1;for(;pe<=Ie&&pe<=Ee;){const Me=T[pe],Ce=R[pe]=le?Wo(R[pe]):Ni(R[pe]);if(Da(Me,Ce))y(Me,Ce,U,null,Q,Z,se,re,le);else break;pe++}for(;pe<=Ie&&pe<=Ee;){const Me=T[Ie],Ce=R[Ee]=le?Wo(R[Ee]):Ni(R[Ee]);if(Da(Me,Ce))y(Me,Ce,U,null,Q,Z,se,re,le);else break;Ie--,Ee--}if(pe>Ie){if(pe<=Ee){const Me=Ee+1,Ce=Me<_e?R[Me].el:G;for(;pe<=Ee;)y(null,R[pe]=le?Wo(R[pe]):Ni(R[pe]),U,Ce,Q,Z,se,re,le),pe++}}else if(pe>Ee)for(;pe<=Ie;)$e(T[pe],Q,Z,!0),pe++;else{const Me=pe,Ce=pe,ke=new Map;for(pe=Ce;pe<=Ee;pe++){const ge=R[pe]=le?Wo(R[pe]):Ni(R[pe]);ge.key!=null&&ke.set(ge.key,pe)}let qe,W=0;const D=Ee-Ce+1;let B=!1,K=0;const ne=new Array(D);for(pe=0;pe=D){$e(ge,Q,Z,!0);continue}let Le;if(ge.key!=null)Le=ke.get(ge.key);else for(qe=Ce;qe<=Ee;qe++)if(ne[qe-Ce]===0&&Da(ge,R[qe])){Le=qe;break}Le===void 0?$e(ge,Q,Z,!0):(ne[Le-Ce]=pe+1,Le>=K?K=Le:B=!0,y(ge,R[Le],U,null,Q,Z,se,re,le),W++)}const fe=B?Ble(ne):hd;for(qe=fe.length-1,pe=D-1;pe>=0;pe--){const ge=Ce+pe,Le=R[ge],ee=ge+1<_e?R[ge+1].el:G;ne[pe]===0?y(null,Le,U,ee,Q,Z,se,re,le):B&&(qe<0||pe!==fe[qe]?Ne(Le,U,ee,2):qe--)}}},Ne=(T,R,U,G,Q=null)=>{const{el:Z,type:se,transition:re,children:le,shapeFlag:pe}=T;if(pe&6){Ne(T.component.subTree,R,U,G);return}if(pe&128){T.suspense.move(R,U,G);return}if(pe&64){se.move(T,R,U,z);return}if(se===Wr){n(Z,R,U);for(let Ie=0;Iere.enter(Z),Q);else{const{leave:Ie,delayLeave:Ee,afterLeave:Me}=re,Ce=()=>n(Z,R,U),ke=()=>{Ie(Z,()=>{Ce(),Me&&Me()})};Ee?Ee(Z,Ce,ke):ke()}else n(Z,R,U)},$e=(T,R,U,G=!1,Q=!1)=>{const{type:Z,props:se,ref:re,children:le,dynamicChildren:pe,shapeFlag:_e,patchFlag:Ie,dirs:Ee}=T;if(re!=null&&cS(re,null,U,T,!0),_e&256){R.ctx.deactivate(T);return}const Me=_e&1&&Ee,Ce=!Bc(T);let ke;if(Ce&&(ke=se&&se.onVnodeBeforeUnmount)&&yi(ke,R,T),_e&6)xe(T.component,U,G);else{if(_e&128){T.suspense.unmount(U,G);return}Me&&es(T,null,R,"beforeUnmount"),_e&64?T.type.remove(T,R,U,Q,z,G):pe&&(Z!==Wr||Ie>0&&Ie&64)?Pe(pe,R,U,!1,!0):(Z===Wr&&Ie&384||!Q&&_e&16)&&Pe(le,R,U),G&&de(T)}(Ce&&(ke=se&&se.onVnodeUnmounted)||Me)&&En(()=>{ke&&yi(ke,R,T),Me&&es(T,null,R,"unmounted")},U)},de=T=>{const{type:R,el:U,anchor:G,transition:Q}=T;if(R===Wr){ce(U,G);return}if(R===Sd){w(T);return}const Z=()=>{a(U),Q&&!Q.persisted&&Q.afterLeave&&Q.afterLeave()};if(T.shapeFlag&1&&Q&&!Q.persisted){const{leave:se,delayLeave:re}=Q,le=()=>se(U,Z);re?re(T.el,Z,le):le()}else Z()},ce=(T,R)=>{let U;for(;T!==R;)U=h(T),a(T),T=U;a(R)},xe=(T,R,U)=>{const{bum:G,scope:Q,update:Z,subTree:se,um:re}=T;G&&md(G),Q.stop(),Z&&(Z.active=!1,$e(se,T,R,U)),re&&En(re,R),En(()=>{T.isUnmounted=!0},R),R&&R.pendingBranch&&!R.isUnmounted&&T.asyncDep&&!T.asyncResolved&&T.suspenseId===R.pendingId&&(R.deps--,R.deps===0&&R.resolve())},Pe=(T,R,U,G=!1,Q=!1,Z=0)=>{for(let se=Z;seT.shapeFlag&6?we(T.component.subTree):T.shapeFlag&128?T.suspense.next():h(T.anchor||T.el);let Re=!1;const Se=(T,R,U)=>{T==null?R._vnode&&$e(R._vnode,null,null,!0):y(R._vnode||null,T,R,null,null,null,U),Re||(Re=!0,Y6(),oS(),Re=!1),R._vnode=T},z={p:y,um:$e,m:Ne,r:de,mt:$,mc:F,pc:Y,pbc:P,n:we,o:t};let M,k;return e&&([M,k]=e(z)),{render:Se,hydrate:M,createApp:Ole(Se,M)}}function VE({type:t,props:e},r){return r==="svg"&&t==="foreignObject"||r==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:r}function Qu({effect:t,update:e},r){t.allowRecurse=e.allowRecurse=r}function $W(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function yD(t,e,r=!1){const n=t.children,a=e.children;if(ft(n)&&ft(a))for(let s=0;s>1,t[r[u]]0&&(e[n]=r[s-1]),r[s]=n)}}for(s=r.length,o=r[s-1];s-- >0;)r[s]=o,o=e[o];return r}function UW(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:UW(e)}const qle=t=>t.__isTeleport,k_=t=>t&&(t.disabled||t.disabled===""),lL=t=>typeof SVGElement<"u"&&t instanceof SVGElement,dL=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,XI=(t,e)=>{const r=t&&t.to;return Mr(r)?e?e(r):null:r},$le={name:"Teleport",__isTeleport:!0,process(t,e,r,n,a,s,o,u,c,l){const{mc:d,pc:f,pbc:h,o:{insert:p,querySelector:m,createText:y,createComment:g}}=l,b=k_(e.props);let{shapeFlag:v,children:_,dynamicChildren:w}=e;if(t==null){const E=e.el=y(""),O=e.anchor=y("");p(E,r,n),p(O,r,n);const L=e.target=XI(e.props,m),F=e.targetAnchor=y("");L&&(p(F,L),o==="svg"||lL(L)?o="svg":(o==="mathml"||dL(L))&&(o="mathml"));const x=(P,j)=>{v&16&&d(_,P,j,a,s,o,u,c)};b?x(r,O):L&&x(L,F)}else{e.el=t.el;const E=e.anchor=t.anchor,O=e.target=t.target,L=e.targetAnchor=t.targetAnchor,F=k_(t.props),x=F?r:O,P=F?E:L;if(o==="svg"||lL(O)?o="svg":(o==="mathml"||dL(O))&&(o="mathml"),w?(h(t.dynamicChildren,w,x,a,s,o,u),yD(t,e,!0)):c||f(t,e,x,P,a,s,o,u,!1),b)F?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):Tv(e,r,E,l,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const j=e.target=XI(e.props,m);j&&Tv(e,j,null,l,0)}else F&&Tv(e,O,L,l,1)}kW(e)},remove(t,e,r,n,{um:a,o:{remove:s}},o){const{shapeFlag:u,children:c,anchor:l,targetAnchor:d,target:f,props:h}=t;if(f&&s(d),o&&s(l),u&16){const p=o||!k_(h);for(let m=0;m0?vi||hd:null,VW(),zc>0&&vi&&vi.push(t),t}function gr(t,e,r,n,a,s){return HW(et(t,e,r,n,a,s,!0))}function mD(t,e,r,n,a){return HW(It(t,e,r,n,a,!0))}function Gc(t){return t?t.__v_isVNode===!0:!1}function Da(t,e){return t.type===e.type&&t.key===e.key}function a5e(t){}const QW=({key:t})=>t??null,Ew=({ref:t,ref_key:e,ref_for:r})=>(typeof t=="number"&&(t=""+t),t!=null?Mr(t)||rn(t)||At(t)?{i:en,r:t,k:e,f:!!r}:t:null);function et(t,e=null,r=null,n=0,a=null,s=t===Wr?0:1,o=!1,u=!1){const c={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&QW(e),ref:e&&Ew(e),scopeId:c2,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:n,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:en};return u?(gD(c,r),s&128&&t.normalize(c)):r&&(c.shapeFlag|=Mr(r)?8:16),zc>0&&!o&&vi&&(c.patchFlag>0||s&6)&&c.patchFlag!==32&&vi.push(c),c}const It=kle;function kle(t,e=null,r=null,n=0,a=null,s=!1){if((!t||t===vW)&&(t=ii),Gc(t)){const u=_o(t,e,!0);return r&&gD(u,r),zc>0&&!s&&vi&&(u.shapeFlag&6?vi[vi.indexOf(t)]=u:vi.push(u)),u.patchFlag|=-2,u}if(Kle(t)&&(t=t.__vccOpts),e){e=Vle(e);let{class:u,style:c}=e;u&&!Mr(u)&&(e.class=Qc(u)),fr(c)&&(lW(c)&&!ft(c)&&(c=jr({},c)),e.style=$b(c))}const o=Mr(t)?1:wW(t)?128:qle(t)?64:fr(t)?4:At(t)?2:0;return et(t,e,r,n,a,o,s,!0)}function Vle(t){return t?lW(t)||CW(t)?jr({},t):t:null}function _o(t,e,r=!1){const{props:n,ref:a,patchFlag:s,children:o}=t,u=e?Hle(n||{},e):n;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:u,key:u&&QW(u),ref:e&&e.ref?r&&a?ft(a)?a.concat(Ew(e)):[a,Ew(e)]:Ew(e):a,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Wr?s===-1?16:s|16:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&_o(t.ssContent),ssFallback:t.ssFallback&&_o(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function Xa(t=" ",e=0){return It(Fd,null,t,e)}function s5e(t,e){const r=It(Sd,null,t);return r.staticCount=e,r}function Na(t="",e=!1){return e?(rr(),mD(ii,null,t)):It(ii,null,t)}function Ni(t){return t==null||typeof t=="boolean"?It(ii):ft(t)?It(Wr,null,t.slice()):typeof t=="object"?Wo(t):It(Fd,null,String(t))}function Wo(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:_o(t)}function gD(t,e){let r=0;const{shapeFlag:n}=t;if(e==null)e=null;else if(ft(e))r=16;else if(typeof e=="object")if(n&65){const a=e.default;a&&(a._c&&(a._d=!1),gD(t,a()),a._c&&(a._d=!0));return}else{r=32;const a=e._;!a&&!CW(e)?e._ctx=en:a===3&&en&&(en.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else At(e)?(e={default:e,_ctx:en},r=32):(e=String(e),n&64?(r=16,e=[Xa(e)]):r=8);t.children=e,t.shapeFlag|=r}function Hle(...t){const e={};for(let r=0;rdn||en;let lS,YI;{const t=kG(),e=(r,n)=>{let a;return(a=t[r])||(a=t[r]=[]),a.push(n),s=>{a.length>1?a.forEach(o=>o(s)):a[0](s)}};lS=e("__VUE_INSTANCE_SETTERS__",r=>dn=r),YI=e("__VUE_SSR_SETTERS__",r=>Qb=r)}const Wc=t=>{const e=dn;return lS(t),t.scope.on(),()=>{t.scope.off(),lS(e)}},ZI=()=>{dn&&dn.scope.off(),lS(null)};function GW(t){return t.vnode.shapeFlag&4}let Qb=!1;function WW(t,e=!1){e&&YI(e);const{props:r,children:n}=t.vnode,a=GW(t);xle(t,r,a,e),Nle(t,n);const s=a?Gle(t,e):void 0;return e&&YI(!1),s}function Gle(t,e){const r=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,zI);const{setup:n}=r;if(n){const a=t.setupContext=n.length>1?JW(t):null,s=Wc(t);Tu();const o=au(n,t,0,[t.props,a]);if(Eu(),s(),JN(o)){if(o.then(ZI,ZI),e)return o.then(u=>{eP(t,u,e)}).catch(u=>{ff(u,t,0)});t.asyncDep=o}else eP(t,o,e)}else KW(t,e)}function eP(t,e,r){At(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:fr(e)&&(t.setupState=hW(e)),KW(t,r)}let dS,tP;function o5e(t){dS=t,tP=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,ble))}}const u5e=()=>!dS;function KW(t,e,r){const n=t.type;if(!t.render){if(!e&&dS&&!n.render){const a=n.template||hD(t).template;if(a){const{isCustomElement:s,compilerOptions:o}=t.appContext.config,{delimiters:u,compilerOptions:c}=n,l=jr(jr({isCustomElement:s,delimiters:u},o),c);n.render=dS(a,l)}}t.render=n.render||bi,tP&&tP(t)}{const a=Wc(t);Tu();try{vle(t)}finally{Eu(),a()}}}const Wle={get(t,e){return Ti(t,"get",""),t[e]}};function JW(t){const e=r=>{t.exposed=r||{}};return{attrs:new Proxy(t.attrs,Wle),slots:t.slots,emit:t.emit,expose:e}}function h2(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(hW(tD(t.exposed)),{get(e,r){if(r in e)return e[r];if(r in U_)return U_[r](t)},has(e,r){return r in e||r in U_}}))}function rP(t,e=!0){return At(t)?t.displayName||t.name:t.name||e&&t.__name}function Kle(t){return At(t)&&"__vccOpts"in t}const ea=(t,e)=>Oce(t,e,Qb);function c5e(t,e,r=sr){const n=Au(),a=wi(e),s=Di(e),o=Nce((c,l)=>{let d;return nle(()=>{const f=t[e];La(d,f)&&(d=f,l())}),{get(){return c(),r.get?r.get(d):d},set(f){const h=n.vnode.props;!(h&&(e in h||a in h||s in h)&&(`onUpdate:${e}`in h||`onUpdate:${a}`in h||`onUpdate:${s}`in h))&&La(f,d)&&(d=f,l()),n.emit(`update:${e}`,r.set?r.set(f):f)}}}),u=e==="modelValue"?"modelModifiers":`${e}Modifiers`;return o[Symbol.iterator]=()=>{let c=0;return{next(){return c<2?{value:c++?t[u]||{}:o,done:!1}:{done:!0}}}},o}function p2(t,e,r){const n=arguments.length;return n===2?fr(e)&&!ft(e)?Gc(e)?It(t,null,[e]):It(t,e):It(t,null,e):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&Gc(r)&&(r=[r]),It(t,e,r))}function l5e(){}function d5e(t,e,r,n){const a=r[n];if(a&&Jle(a,t))return a;const s=e();return s.memo=t.slice(),r[n]=s}function Jle(t,e){const r=t.memo;if(r.length!=e.length)return!1;for(let n=0;n0&&vi&&vi.push(t),!0}const Xle="3.4.23",f5e=bi,h5e=jce,p5e=Wl,y5e=_W,Yle={createComponentInstance:zW,setupComponent:WW,renderComponentRoot:Sw,setCurrentRenderingInstance:cb,isVNode:Gc,normalizeVNode:Ni},m5e=Yle,g5e=null,_5e=null,b5e=null;/** +**/function LFe(t,e){}const jFe={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER"},Lce={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function au(t,e,r,n){try{return n?t(...n):t()}catch(a){ff(a,e,r)}}function sa(t,e,r,n){if(At(t)){const a=au(t,e,r,n);return a&&JN(a)&&a.catch(s=>{ff(s,e,r)}),a}if(ft(t)){const a=[];for(let s=0;s>>1,a=Mn[n],s=ub(a);sis&&Mn.splice(e,1)}function VI(t){ft(t)?gd.push(...t):(!zo||!zo.includes(t,t.allowRecurse?_c+1:_c))&&gd.push(t),mW()}function Y6(t,e,r=ob?is+1:0){for(;rub(r)-ub(n));if(gd.length=0,zo){zo.push(...e);return}for(zo=e,_c=0;_ct.id==null?1/0:t.id,Bce=(t,e)=>{const r=ub(t)-ub(e);if(r===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return r};function gW(t){kI=!1,ob=!0,Mn.sort(Bce);try{for(is=0;isGl.emit(a,...s)),_v=[]):typeof window<"u"&&window.HTMLElement&&!((n=(r=window.navigator)==null?void 0:r.userAgent)!=null&&n.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(s=>{_W(s,e)}),setTimeout(()=>{Gl||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,_v=[])},3e3)):_v=[]}function qce(t,e,...r){if(t.isUnmounted)return;const n=t.vnode.props||sr;let a=r;const s=e.startsWith("update:"),o=s&&e.slice(7);if(o&&o in n){const d=`${o==="modelValue"?"model":o}Modifiers`,{number:f,trim:h}=n[d]||sr;h&&(a=r.map(p=>Mr(p)?p.trim():p)),f&&(a=r.map(rS))}let u,c=n[u=ww(e)]||n[u=ww(wi(e))];!c&&s&&(c=n[u=ww(Di(e))]),c&&sa(c,t,6,a);const l=n[u+"Once"];if(l){if(!t.emitted)t.emitted={};else if(t.emitted[u])return;t.emitted[u]=!0,sa(l,t,6,a)}}function bW(t,e,r=!1){const n=e.emitsCache,a=n.get(t);if(a!==void 0)return a;const s=t.emits;let o={},u=!1;if(!At(t)){const c=l=>{const d=bW(l,e,!0);d&&(u=!0,jr(o,d))};!r&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}return!s&&!u?(fr(t)&&n.set(t,null),null):(ft(s)?s.forEach(c=>o[c]=null):jr(o,s),fr(t)&&n.set(t,o),o)}function o2(t,e){return!t||!qb(e)?!1:(e=e.slice(2).replace(/Once$/,""),Kt(t,e[0].toLowerCase()+e.slice(1))||Kt(t,Di(e))||Kt(t,e))}let en=null,u2=null;function cb(t){const e=en;return en=t,u2=t&&t.type.__scopeId||null,e}function $ce(t){u2=t}function Uce(){u2=null}const MFe=t=>Dn;function Dn(t,e=en,r){if(!e||t._n)return t;const n=(...a)=>{n._d&&fL(-1);const s=cb(e);let o;try{o=t(...a)}finally{cb(s),n._d&&fL(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function Sw(t){const{type:e,vnode:r,proxy:n,withProxy:a,props:s,propsOptions:[o],slots:u,attrs:c,emit:l,render:d,renderCache:f,data:h,setupState:p,ctx:m,inheritAttrs:y}=t;let g,b;const v=cb(t);try{if(r.shapeFlag&4){const w=a||n,E=w;g=Ni(d.call(E,w,f,s,p,h,m)),b=c}else{const w=e;g=Ni(w.length>1?w(s,{attrs:c,slots:u,emit:l}):w(s,null)),b=e.props?c:Vce(c)}}catch(w){V_.length=0,ff(w,t,1),g=It(ii)}let _=g;if(b&&y!==!1){const w=Object.keys(b),{shapeFlag:E}=_;w.length&&E&7&&(o&&w.some(WN)&&(b=Hce(b,o)),_=_o(_,b))}return r.dirs&&(_=_o(_),_.dirs=_.dirs?_.dirs.concat(r.dirs):r.dirs),r.transition&&(_.transition=r.transition),g=_,cb(v),g}function kce(t,e=!0){let r;for(let n=0;n{let e;for(const r in t)(r==="class"||r==="style"||qb(r))&&((e||(e={}))[r]=t[r]);return e},Hce=(t,e)=>{const r={};for(const n in t)(!WN(n)||!(n.slice(9)in e))&&(r[n]=t[n]);return r};function Qce(t,e,r){const{props:n,children:a,component:s}=t,{props:o,children:u,patchFlag:c}=e,l=s.emitsOptions;if(e.dirs||e.transition)return!0;if(r&&c>=0){if(c&1024)return!0;if(c&16)return n?Z6(n,o,l):!!o;if(c&8){const d=e.dynamicProps;for(let f=0;ft.__isSuspense;let HI=0;const Gce={name:"Suspense",__isSuspense:!0,process(t,e,r,n,a,s,o,u,c,l){if(t==null)Wce(e,r,n,a,s,o,u,c,l);else{if(s&&s.deps>0&&!t.suspense.isInFallback){e.suspense=t.suspense,e.suspense.vnode=e,e.el=t.el;return}Kce(t,e,r,n,a,o,u,c,l)}},hydrate:Jce,create:uD,normalize:Xce},qFe=Gce;function lb(t,e){const r=t.props&&t.props[e];At(r)&&r()}function Wce(t,e,r,n,a,s,o,u,c){const{p:l,o:{createElement:d}}=c,f=d("div"),h=t.suspense=uD(t,a,n,e,f,r,s,o,u,c);l(null,h.pendingBranch=t.ssContent,f,null,n,h,s,o),h.deps>0?(lb(t,"onPending"),lb(t,"onFallback"),l(null,t.ssFallback,e,r,n,null,s,o),_d(h,t.ssFallback)):h.resolve(!1,!0)}function Kce(t,e,r,n,a,s,o,u,{p:c,um:l,o:{createElement:d}}){const f=e.suspense=t.suspense;f.vnode=e,e.el=t.el;const h=e.ssContent,p=e.ssFallback,{activeBranch:m,pendingBranch:y,isInFallback:g,isHydrating:b}=f;if(y)f.pendingBranch=h,Da(h,y)?(c(y,h,f.hiddenContainer,null,a,f,s,o,u),f.deps<=0?f.resolve():g&&(b||(c(m,p,r,n,a,null,s,o,u),_d(f,p)))):(f.pendingId=HI++,b?(f.isHydrating=!1,f.activeBranch=y):l(y,a,f),f.deps=0,f.effects.length=0,f.hiddenContainer=d("div"),g?(c(null,h,f.hiddenContainer,null,a,f,s,o,u),f.deps<=0?f.resolve():(c(m,p,r,n,a,null,s,o,u),_d(f,p))):m&&Da(h,m)?(c(m,h,r,n,a,f,s,o,u),f.resolve(!0)):(c(null,h,f.hiddenContainer,null,a,f,s,o,u),f.deps<=0&&f.resolve()));else if(m&&Da(h,m))c(m,h,r,n,a,f,s,o,u),_d(f,h);else if(lb(e,"onPending"),f.pendingBranch=h,h.shapeFlag&512?f.pendingId=h.component.suspenseId:f.pendingId=HI++,c(null,h,f.hiddenContainer,null,a,f,s,o,u),f.deps<=0)f.resolve();else{const{timeout:v,pendingId:_}=f;v>0?setTimeout(()=>{f.pendingId===_&&f.fallback(p)},v):v===0&&f.fallback(p)}}function uD(t,e,r,n,a,s,o,u,c,l,d=!1){const{p:f,m:h,um:p,n:m,o:{parentNode:y,remove:g}}=l;let b;const v=Yce(t);v&&e!=null&&e.pendingBranch&&(b=e.pendingId,e.deps++);const _=t.props?nS(t.props.timeout):void 0,w=s,E={vnode:t,parent:e,parentComponent:r,namespace:o,container:n,hiddenContainer:a,deps:0,pendingId:HI++,timeout:typeof _=="number"?_:-1,activeBranch:null,pendingBranch:null,isInFallback:!d,isHydrating:d,isUnmounted:!1,effects:[],resolve(O=!1,L=!1){const{vnode:F,activeBranch:x,pendingBranch:P,pendingId:j,effects:N,parentComponent:V,container:$}=E;let q=!1;E.isHydrating?E.isHydrating=!1:O||(q=x&&P.transition&&P.transition.mode==="out-in",q&&(x.transition.afterLeave=()=>{j===E.pendingId&&(h(P,$,s===w?m(x):s,0),VI(N))}),x&&(y(x.el)!==E.hiddenContainer&&(s=m(x)),p(x,V,E,!0)),q||h(P,$,s,0)),_d(E,P),E.pendingBranch=null,E.isInFallback=!1;let H=E.parent,X=!1;for(;H;){if(H.pendingBranch){H.effects.push(...N),X=!0;break}H=H.parent}!X&&!q&&VI(N),E.effects=[],v&&e&&e.pendingBranch&&b===e.pendingId&&(e.deps--,e.deps===0&&!L&&e.resolve()),lb(F,"onResolve")},fallback(O){if(!E.pendingBranch)return;const{vnode:L,activeBranch:F,parentComponent:x,container:P,namespace:j}=E;lb(L,"onFallback");const N=m(F),V=()=>{E.isInFallback&&(f(null,O,P,N,x,null,j,u,c),_d(E,O))},$=O.transition&&O.transition.mode==="out-in";$&&(F.transition.afterLeave=V),E.isInFallback=!0,p(F,x,null,!0),$||V()},move(O,L,F){E.activeBranch&&h(E.activeBranch,O,L,F),E.container=O},next(){return E.activeBranch&&m(E.activeBranch)},registerDep(O,L){const F=!!E.pendingBranch;F&&E.deps++;const x=O.vnode.el;O.asyncDep.catch(P=>{ff(P,O,0)}).then(P=>{if(O.isUnmounted||E.isUnmounted||E.pendingId!==O.suspenseId)return;O.asyncResolved=!0;const{vnode:j}=O;eP(O,P,!1),x&&(j.el=x);const N=!x&&O.subTree.el;L(O,j,y(x||O.subTree.el),x?null:m(O.subTree),E,o,c),N&&g(N),aD(O,j.el),F&&--E.deps===0&&E.resolve()})},unmount(O,L){E.isUnmounted=!0,E.activeBranch&&p(E.activeBranch,r,O,L),E.pendingBranch&&p(E.pendingBranch,r,O,L)}};return E}function Jce(t,e,r,n,a,s,o,u,c){const l=e.suspense=uD(e,n,r,t.parentNode,document.createElement("div"),null,a,s,o,u,!0),d=c(t,l.pendingBranch=e.ssContent,r,l,s,o);return l.deps===0&&l.resolve(!1,!0),d}function Xce(t){const{shapeFlag:e,children:r}=t,n=e&32;t.ssContent=tL(n?r.default:r),t.ssFallback=n?tL(r.fallback):It(ii)}function tL(t){let e;if(At(t)){const r=zc&&t._c;r&&(t._d=!1,rr()),t=t(),r&&(t._d=!0,e=vi,VW())}return ft(t)&&(t=kce(t)),t=Ni(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(r=>r!==t)),t}function SW(t,e){e&&e.pendingBranch?ft(t)?e.effects.push(...t):e.effects.push(t):VI(t)}function _d(t,e){t.activeBranch=e;const{vnode:r,parentComponent:n}=t;let a=e.el;for(;!a&&e.component;)e=e.component.subTree,a=e.el;r.el=a,n&&n.subTree===r&&(n.vnode.el=a,aD(n,a))}function Yce(t){var e;return((e=t.props)==null?void 0:e.suspensible)!=null&&t.props.suspensible!==!1}const Zce=Symbol.for("v-scx"),ele=()=>cs(Zce);function $Fe(t,e){return Vb(t,null,e)}function tle(t,e){return Vb(t,null,{flush:"post"})}function rle(t,e){return Vb(t,null,{flush:"sync"})}const bv={};function bd(t,e,r){return Vb(t,e,r)}function Vb(t,e,{immediate:r,deep:n,flush:a,once:s,onTrack:o,onTrigger:u}=sr){if(e&&s){const O=e;e=(...L)=>{O(...L),E()}}const c=dn,l=O=>n===!0?O:Pc(O,n===!1?1:void 0);let d,f=!1,h=!1;if(rn(t)?(d=()=>t.value,f=aS(t)):Mc(t)?(d=()=>l(t),f=!0):ft(t)?(h=!0,f=t.some(O=>Mc(O)||aS(O)),d=()=>t.map(O=>{if(rn(O))return O.value;if(Mc(O))return l(O);if(At(O))return au(O,c,2)})):At(t)?e?d=()=>au(t,c,2):d=()=>(p&&p(),sa(t,c,3,[m])):d=bi,e&&n){const O=d;d=()=>Pc(O())}let p,m=O=>{p=_.onStop=()=>{au(O,c,4),p=_.onStop=void 0}},y;if(Qb)if(m=bi,e?r&&sa(e,c,3,[d(),h?[]:void 0,m]):d(),a==="sync"){const O=ele();y=O.__watcherHandles||(O.__watcherHandles=[])}else return bi;let g=h?new Array(t.length).fill(bv):bv;const b=()=>{if(!(!_.active||!_.dirty))if(e){const O=_.run();(n||f||(h?O.some((L,F)=>La(L,g[F])):La(O,g)))&&(p&&p(),sa(e,c,3,[O,g===bv?void 0:h&&g[0]===bv?[]:g,m]),g=O)}else _.run()};b.allowRecurse=!!e;let v;a==="sync"?v=b:a==="post"?v=()=>En(b,c&&c.suspense):(b.pre=!0,c&&(b.id=c.uid),v=()=>s2(b));const _=new ib(d,bi,v),w=WG(),E=()=>{_.stop(),w&&KN(w.effects,_)};return e?r?b():g=_.run():a==="post"?En(_.run.bind(_),c&&c.suspense):_.run(),y&&y.push(E),E}function nle(t,e,r){const n=this.proxy,a=Mr(t)?t.includes(".")?TW(n,t):()=>n[t]:t.bind(n,n);let s;At(e)?s=e:(s=e.handler,r=e);const o=Wc(this),u=Vb(a,s.bind(n),r);return o(),u}function TW(t,e){const r=e.split(".");return()=>{let n=t;for(let a=0;a0){if(r>=e)return t;r++}if(n=n||new Set,n.has(t))return t;if(n.add(t),rn(t))Pc(t.value,e,r,n);else if(ft(t))for(let a=0;a{Pc(a,e,r,n)});else if($G(t))for(const a in t)Pc(t[a],e,r,n);return t}function Xi(t,e){if(en===null)return t;const r=f2(en)||en.proxy,n=t.dirs||(t.dirs=[]);for(let a=0;a{t.isMounted=!0}),dD(()=>{t.isUnmounting=!0}),t}const Gi=[Function,Array],AW={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Gi,onEnter:Gi,onAfterEnter:Gi,onEnterCancelled:Gi,onBeforeLeave:Gi,onLeave:Gi,onAfterLeave:Gi,onLeaveCancelled:Gi,onBeforeAppear:Gi,onAppear:Gi,onAfterAppear:Gi,onAppearCancelled:Gi},ile={name:"BaseTransition",props:AW,setup(t,{slots:e}){const r=Au(),n=EW();return()=>{const a=e.default&&cD(e.default(),!0);if(!a||!a.length)return;let s=a[0];if(a.length>1){for(const h of a)if(h.type!==ii){s=h;break}}const o=Qt(t),{mode:u}=o;if(n.isLeaving)return FE(s);const c=rL(s);if(!c)return FE(s);const l=db(c,o,n,r);jd(c,l);const d=r.subTree,f=d&&rL(d);if(f&&f.type!==ii&&!Da(c,f)){const h=db(f,o,n,r);if(jd(f,h),u==="out-in")return n.isLeaving=!0,h.afterLeave=()=>{n.isLeaving=!1,r.update.active!==!1&&(r.effect.dirty=!0,r.update())},FE(s);u==="in-out"&&c.type!==ii&&(h.delayLeave=(p,m,y)=>{const g=OW(n,f);g[String(f.key)]=f,p[Go]=()=>{m(),p[Go]=void 0,delete l.delayedLeave},l.delayedLeave=y})}return s}}},ale=ile;function OW(t,e){const{leavingVNodes:r}=t;let n=r.get(e.type);return n||(n=Object.create(null),r.set(e.type,n)),n}function db(t,e,r,n){const{appear:a,mode:s,persisted:o=!1,onBeforeEnter:u,onEnter:c,onAfterEnter:l,onEnterCancelled:d,onBeforeLeave:f,onLeave:h,onAfterLeave:p,onLeaveCancelled:m,onBeforeAppear:y,onAppear:g,onAfterAppear:b,onAppearCancelled:v}=e,_=String(t.key),w=OW(r,t),E=(F,x)=>{F&&sa(F,n,9,x)},O=(F,x)=>{const P=x[1];E(F,x),ft(F)?F.every(j=>j.length<=1)&&P():F.length<=1&&P()},L={mode:s,persisted:o,beforeEnter(F){let x=u;if(!r.isMounted)if(a)x=y||u;else return;F[Go]&&F[Go](!0);const P=w[_];P&&Da(t,P)&&P.el[Go]&&P.el[Go](),E(x,[F])},enter(F){let x=c,P=l,j=d;if(!r.isMounted)if(a)x=g||c,P=b||l,j=v||d;else return;let N=!1;const V=F[vv]=$=>{N||(N=!0,$?E(j,[F]):E(P,[F]),L.delayedLeave&&L.delayedLeave(),F[vv]=void 0)};x?O(x,[F,V]):V()},leave(F,x){const P=String(t.key);if(F[vv]&&F[vv](!0),r.isUnmounting)return x();E(f,[F]);let j=!1;const N=F[Go]=V=>{j||(j=!0,x(),V?E(m,[F]):E(p,[F]),F[Go]=void 0,w[P]===t&&delete w[P])};w[P]=t,h?O(h,[F,N]):N()},clone(F){return db(F,e,r,n)}};return L}function FE(t){if(Hb(t))return t=_o(t),t.children=null,t}function rL(t){return Hb(t)?t.children?t.children[0]:void 0:t}function jd(t,e){t.shapeFlag&6&&t.component?jd(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function cD(t,e=!1,r){let n=[],a=0;for(let s=0;s1)for(let s=0;s!!t.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function UFe(t){At(t)&&(t={loader:t});const{loader:e,loadingComponent:r,errorComponent:n,delay:a=200,timeout:s,suspensible:o=!0,onError:u}=t;let c=null,l,d=0;const f=()=>(d++,c=null,h()),h=()=>{let p;return c||(p=c=e().catch(m=>{if(m=m instanceof Error?m:new Error(String(m)),u)return new Promise((y,g)=>{u(m,()=>y(f()),()=>g(m),d+1)});throw m}).then(m=>p!==c&&c?c:(m&&(m.__esModule||m[Symbol.toStringTag]==="Module")&&(m=m.default),l=m,m)))};return c2({name:"AsyncComponentWrapper",__asyncLoader:h,get __asyncResolved(){return l},setup(){const p=dn;if(l)return()=>BE(l,p);const m=v=>{c=null,ff(v,p,13,!n)};if(o&&p.suspense||Qb)return h().then(v=>()=>BE(v,p)).catch(v=>(m(v),()=>n?It(n,{error:v}):null));const y=fo(!1),g=fo(),b=fo(!!a);return a&&setTimeout(()=>{b.value=!1},a),s!=null&&setTimeout(()=>{if(!y.value&&!g.value){const v=new Error(`Async component timed out after ${s}ms.`);m(v),g.value=v}},s),h().then(()=>{y.value=!0,p.parent&&Hb(p.parent.vnode)&&(p.parent.effect.dirty=!0,s2(p.parent.update))}).catch(v=>{m(v),g.value=v}),()=>{if(y.value&&l)return BE(l,p);if(g.value&&n)return It(n,{error:g.value});if(r&&!b.value)return It(r)}}})}function BE(t,e){const{ref:r,props:n,children:a,ce:s}=e.vnode,o=It(t,n,a);return o.ref=r,o.ce=s,delete e.vnode.ce,o}const Hb=t=>t.type.__isKeepAlive,sle={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const r=Au(),n=r.ctx;if(!n.renderer)return()=>{const v=e.default&&e.default();return v&&v.length===1?v[0]:v};const a=new Map,s=new Set;let o=null;const u=r.suspense,{renderer:{p:c,m:l,um:d,o:{createElement:f}}}=n,h=f("div");n.activate=(v,_,w,E,O)=>{const L=v.component;l(v,_,w,0,u),c(L.vnode,v,_,w,L,u,E,v.slotScopeIds,O),En(()=>{L.isDeactivated=!1,L.a&&yd(L.a);const F=v.props&&v.props.onVnodeMounted;F&&yi(F,L.parent,v)},u)},n.deactivate=v=>{const _=v.component;l(v,h,null,1,u),En(()=>{_.da&&yd(_.da);const w=v.props&&v.props.onVnodeUnmounted;w&&yi(w,_.parent,v),_.isDeactivated=!0},u)};function p(v){qE(v),d(v,r,u,!0)}function m(v){a.forEach((_,w)=>{const E=rP(_.type);E&&(!v||!v(E))&&y(w)})}function y(v){const _=a.get(v);!o||!Da(_,o)?p(_):o&&qE(o),a.delete(v),s.delete(v)}bd(()=>[t.include,t.exclude],([v,_])=>{v&&m(w=>b_(v,w)),_&&m(w=>!b_(_,w))},{flush:"post",deep:!0});let g=null;const b=()=>{g!=null&&a.set(g,$E(r.subTree))};return d2(b),lD(b),dD(()=>{a.forEach(v=>{const{subTree:_,suspense:w}=r,E=$E(_);if(v.type===E.type&&v.key===E.key){qE(E);const O=E.component.da;O&&En(O,w);return}p(v)})}),()=>{if(g=null,!e.default)return o=null;const v=e.default(),_=v[0];if(v.length>1)return o=null,v;if(!Gc(_)||!(_.shapeFlag&4)&&!(_.shapeFlag&128))return o=null,_;let w=$E(_);const E=w.type,O=rP(Bc(w)?w.type.__asyncResolved||{}:E),{include:L,exclude:F,max:x}=t;if(L&&(!O||!b_(L,O))||F&&O&&b_(F,O))return o=w,_;const P=w.key==null?E:w.key,j=a.get(P);return w.el&&(w=_o(w),_.shapeFlag&128&&(_.ssContent=w)),g=P,j?(w.el=j.el,w.component=j.component,w.transition&&jd(w,w.transition),w.shapeFlag|=512,s.delete(P),s.add(P)):(s.add(P),x&&s.size>parseInt(x,10)&&y(s.values().next().value)),w.shapeFlag|=256,o=w,wW(_.type)?_:w}}},kFe=sle;function b_(t,e){return ft(t)?t.some(r=>b_(r,e)):Mr(t)?t.split(",").includes(e):Que(t)?t.test(e):!1}function ole(t,e){RW(t,"a",e)}function ule(t,e){RW(t,"da",e)}function RW(t,e,r=dn){const n=t.__wdc||(t.__wdc=()=>{let a=r;for(;a;){if(a.isDeactivated)return;a=a.parent}return t()});if(l2(e,n,r),r){let a=r.parent;for(;a&&a.parent;)Hb(a.parent.vnode)&&cle(n,e,r,a),a=a.parent}}function cle(t,e,r,n){const a=l2(e,t,n,!0);fD(()=>{KN(n[e],a)},r)}function qE(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function $E(t){return t.shapeFlag&128?t.ssContent:t}function l2(t,e,r=dn,n=!1){if(r){const a=r[t]||(r[t]=[]),s=e.__weh||(e.__weh=(...o)=>{if(r.isUnmounted)return;Tu();const u=Wc(r),c=sa(e,r,t,o);return u(),Eu(),c});return n?a.unshift(s):a.push(s),s}}const Eo=t=>(e,r=dn)=>(!Qb||t==="sp")&&l2(t,(...n)=>e(...n),r),lle=Eo("bm"),d2=Eo("m"),dle=Eo("bu"),lD=Eo("u"),dD=Eo("bum"),fD=Eo("um"),fle=Eo("sp"),hle=Eo("rtg"),ple=Eo("rtc");function yle(t,e=dn){l2("ec",t,e)}function mle(t,e,r,n){let a;const s=r&&r[n];if(ft(t)||Mr(t)){a=new Array(t.length);for(let o=0,u=t.length;oe(o,u,void 0,s&&s[u]));else{const o=Object.keys(t);a=new Array(o.length);for(let u=0,c=o.length;u{const s=n.fn(...a);return s&&(s.key=n.key),s}:n.fn)}return t}function gle(t,e,r={},n,a){if(en.isCE||en.parent&&Bc(en.parent)&&en.parent.isCE)return e!=="default"&&(r.name=e),It("slot",r,n&&n());let s=t[e];s&&s._c&&(s._d=!1),rr();const o=s&&xW(s(r)),u=mD(Wr,{key:r.key||o&&o.key||`_${e}`},o||(n?n():[]),o&&t._===1?64:-2);return!a&&u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),s&&s._c&&(s._d=!0),u}function xW(t){return t.some(e=>Gc(e)?!(e.type===ii||e.type===Wr&&!xW(e.children)):!0)?t:null}function HFe(t,e){const r={};for(const n in t)r[e&&/[A-Z]/.test(n)?`on:${n}`:ww(n)]=t[n];return r}const QI=t=>t?GW(t)?f2(t)||t.proxy:QI(t.parent):null,U_=jr(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>QI(t.parent),$root:t=>QI(t.root),$emit:t=>t.emit,$options:t=>hD(t),$forceUpdate:t=>t.f||(t.f=()=>{t.effect.dirty=!0,s2(t.update)}),$nextTick:t=>t.n||(t.n=kb.bind(t.proxy)),$watch:t=>nle.bind(t)}),UE=(t,e)=>t!==sr&&!t.__isScriptSetup&&Kt(t,e),zI={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:r,setupState:n,data:a,props:s,accessCache:o,type:u,appContext:c}=t;let l;if(e[0]!=="$"){const p=o[e];if(p!==void 0)switch(p){case 1:return n[e];case 2:return a[e];case 4:return r[e];case 3:return s[e]}else{if(UE(n,e))return o[e]=1,n[e];if(a!==sr&&Kt(a,e))return o[e]=2,a[e];if((l=t.propsOptions[0])&&Kt(l,e))return o[e]=3,s[e];if(r!==sr&&Kt(r,e))return o[e]=4,r[e];GI&&(o[e]=0)}}const d=U_[e];let f,h;if(d)return e==="$attrs"&&Ti(t.attrs,"get",""),d(t);if((f=u.__cssModules)&&(f=f[e]))return f;if(r!==sr&&Kt(r,e))return o[e]=4,r[e];if(h=c.config.globalProperties,Kt(h,e))return h[e]},set({_:t},e,r){const{data:n,setupState:a,ctx:s}=t;return UE(a,e)?(a[e]=r,!0):n!==sr&&Kt(n,e)?(n[e]=r,!0):Kt(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(s[e]=r,!0)},has({_:{data:t,setupState:e,accessCache:r,ctx:n,appContext:a,propsOptions:s}},o){let u;return!!r[o]||t!==sr&&Kt(t,o)||UE(e,o)||(u=s[0])&&Kt(u,o)||Kt(n,o)||Kt(U_,o)||Kt(a.config.globalProperties,o)},defineProperty(t,e,r){return r.get!=null?t._.accessCache[e]=0:Kt(r,"value")&&this.set(t,e,r.value,null),Reflect.defineProperty(t,e,r)}},_le=jr({},zI,{get(t,e){if(e!==Symbol.unscopables)return zI.get(t,e,t)},has(t,e){return e[0]!=="_"&&!Jue(e)}});function QFe(){return null}function zFe(){return null}function GFe(t){}function WFe(t){}function KFe(){return null}function JFe(){}function XFe(t,e){return null}function YFe(){return IW().slots}function ZFe(){return IW().attrs}function IW(){const t=Au();return t.setupContext||(t.setupContext=JW(t))}function fb(t){return ft(t)?t.reduce((e,r)=>(e[r]=null,e),{}):t}function e5e(t,e){const r=fb(t);for(const n in e){if(n.startsWith("__skip"))continue;let a=r[n];a?ft(a)||At(a)?a=r[n]={type:a,default:e[n]}:a.default=e[n]:a===null&&(a=r[n]={default:e[n]}),a&&e[`__skip_${n}`]&&(a.skipFactory=!0)}return r}function t5e(t,e){return!t||!e?t||e:ft(t)&&ft(e)?t.concat(e):jr({},fb(t),fb(e))}function r5e(t,e){const r={};for(const n in t)e.includes(n)||Object.defineProperty(r,n,{enumerable:!0,get:()=>t[n]});return r}function n5e(t){const e=Au();let r=t();return ZI(),JN(r)&&(r=r.catch(n=>{throw Wc(e),n})),[r,()=>Wc(e)]}let GI=!0;function ble(t){const e=hD(t),r=t.proxy,n=t.ctx;GI=!1,e.beforeCreate&&nL(e.beforeCreate,t,"bc");const{data:a,computed:s,methods:o,watch:u,provide:c,inject:l,created:d,beforeMount:f,mounted:h,beforeUpdate:p,updated:m,activated:y,deactivated:g,beforeDestroy:b,beforeUnmount:v,destroyed:_,unmounted:w,render:E,renderTracked:O,renderTriggered:L,errorCaptured:F,serverPrefetch:x,expose:P,inheritAttrs:j,components:N,directives:V,filters:$}=e;if(l&&vle(l,n,null),o)for(const X in o){const Y=o[X];At(Y)&&(n[X]=Y.bind(r))}if(a){const X=a.call(r,r);fr(X)&&(t.data=Ub(X))}if(GI=!0,s)for(const X in s){const Y=s[X],he=At(Y)?Y.bind(r,r):At(Y.get)?Y.get.bind(r,r):bi,Te=!At(Y)&&At(Y.set)?Y.set.bind(r):bi,Ne=ea({get:he,set:Te});Object.defineProperty(n,X,{enumerable:!0,configurable:!0,get:()=>Ne.value,set:$e=>Ne.value=$e})}if(u)for(const X in u)PW(u[X],n,r,X);if(c){const X=At(c)?c.call(r):c;Reflect.ownKeys(X).forEach(Y=>{Tw(Y,X[Y])})}d&&nL(d,t,"c");function H(X,Y){ft(Y)?Y.forEach(he=>X(he.bind(r))):Y&&X(Y.bind(r))}if(H(lle,f),H(d2,h),H(dle,p),H(lD,m),H(ole,y),H(ule,g),H(yle,F),H(ple,O),H(hle,L),H(dD,v),H(fD,w),H(fle,x),ft(P))if(P.length){const X=t.exposed||(t.exposed={});P.forEach(Y=>{Object.defineProperty(X,Y,{get:()=>r[Y],set:he=>r[Y]=he})})}else t.exposed||(t.exposed={});E&&t.render===bi&&(t.render=E),j!=null&&(t.inheritAttrs=j),N&&(t.components=N),V&&(t.directives=V)}function vle(t,e,r=bi){ft(t)&&(t=WI(t));for(const n in t){const a=t[n];let s;fr(a)?"default"in a?s=cs(a.from||n,a.default,!0):s=cs(a.from||n):s=cs(a),rn(s)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>s.value,set:o=>s.value=o}):e[n]=s}}function nL(t,e,r){sa(ft(t)?t.map(n=>n.bind(e.proxy)):t.bind(e.proxy),e,r)}function PW(t,e,r,n){const a=n.includes(".")?TW(r,n):()=>r[n];if(Mr(t)){const s=e[t];At(s)&&bd(a,s)}else if(At(t))bd(a,t.bind(r));else if(fr(t))if(ft(t))t.forEach(s=>PW(s,e,r,n));else{const s=At(t.handler)?t.handler.bind(r):e[t.handler];At(s)&&bd(a,s,t)}}function hD(t){const e=t.type,{mixins:r,extends:n}=e,{mixins:a,optionsCache:s,config:{optionMergeStrategies:o}}=t.appContext,u=s.get(e);let c;return u?c=u:!a.length&&!r&&!n?c=e:(c={},a.length&&a.forEach(l=>oS(c,l,o,!0)),oS(c,e,o)),fr(e)&&s.set(e,c),c}function oS(t,e,r,n=!1){const{mixins:a,extends:s}=e;s&&oS(t,s,r,!0),a&&a.forEach(o=>oS(t,o,r,!0));for(const o in e)if(!(n&&o==="expose")){const u=wle[o]||r&&r[o];t[o]=u?u(t[o],e[o]):e[o]}return t}const wle={data:iL,props:aL,emits:aL,methods:v_,computed:v_,beforeCreate:Wn,created:Wn,beforeMount:Wn,mounted:Wn,beforeUpdate:Wn,updated:Wn,beforeDestroy:Wn,beforeUnmount:Wn,destroyed:Wn,unmounted:Wn,activated:Wn,deactivated:Wn,errorCaptured:Wn,serverPrefetch:Wn,components:v_,directives:v_,watch:Tle,provide:iL,inject:Sle};function iL(t,e){return e?t?function(){return jr(At(t)?t.call(this,this):t,At(e)?e.call(this,this):e)}:e:t}function Sle(t,e){return v_(WI(t),WI(e))}function WI(t){if(ft(t)){const e={};for(let r=0;r1)return r&&At(e)?e.call(n&&n.proxy):e}}function Ole(){return!!(dn||en||vd)}const DW=Object.create(null),KI=()=>Object.create(DW),CW=t=>Object.getPrototypeOf(t)===DW;function Rle(t,e,r,n=!1){const a={},s=KI();t.propsDefaults=Object.create(null),LW(t,e,a,s);for(const o in t.propsOptions[0])o in a||(a[o]=void 0);r?t.props=n?a:uW(a):t.type.props?t.props=a:t.props=s,t.attrs=s}function xle(t,e,r,n){const{props:a,attrs:s,vnode:{patchFlag:o}}=t,u=Qt(a),[c]=t.propsOptions;let l=!1;if((n||o>0)&&!(o&16)){if(o&8){const d=t.vnode.dynamicProps;for(let f=0;f{c=!0;const[h,p]=jW(f,e,!0);jr(o,h),p&&u.push(...p)};!r&&e.mixins.length&&e.mixins.forEach(d),t.extends&&d(t.extends),t.mixins&&t.mixins.forEach(d)}if(!s&&!c)return fr(t)&&n.set(t,fd),fd;if(ft(s))for(let d=0;d-1,p[1]=y<0||m-1||Kt(p,"default"))&&u.push(f)}}}const l=[o,u];return fr(t)&&n.set(t,l),l}function sL(t){return t[0]!=="$"&&!pd(t)}function oL(t){return t===null?"null":typeof t=="function"?t.name||"":typeof t=="object"&&t.constructor&&t.constructor.name||""}function uL(t,e){return oL(t)===oL(e)}function cL(t,e){return ft(e)?e.findIndex(r=>uL(r,t)):At(e)&&uL(e,t)?0:-1}const MW=t=>t[0]==="_"||t==="$stable",pD=t=>ft(t)?t.map(Ni):[Ni(t)],Ile=(t,e,r)=>{if(e._n)return e;const n=Dn((...a)=>pD(e(...a)),r);return n._c=!1,n},FW=(t,e,r)=>{const n=t._ctx;for(const a in t){if(MW(a))continue;const s=t[a];if(At(s))e[a]=Ile(a,s,n);else if(s!=null){const o=pD(s);e[a]=()=>o}}},BW=(t,e)=>{const r=pD(e);t.slots.default=()=>r},Ple=(t,e)=>{if(t.vnode.shapeFlag&32){const r=e._;r?(t.slots=Qt(e),UG(t.slots,"_",r)):FW(e,t.slots=KI())}else t.slots=KI(),e&&BW(t,e)},Nle=(t,e,r)=>{const{vnode:n,slots:a}=t;let s=!0,o=sr;if(n.shapeFlag&32){const u=e._;u?r&&u===1?s=!1:(jr(a,e),!r&&u===1&&delete a._):(s=!e.$stable,FW(e,a)),o=e}else e&&(BW(t,e),o={default:1});if(s)for(const u in a)!MW(u)&&o[u]==null&&delete a[u]};function uS(t,e,r,n,a=!1){if(ft(t)){t.forEach((h,p)=>uS(h,e&&(ft(e)?e[p]:e),r,n,a));return}if(Bc(n)&&!a)return;const s=n.shapeFlag&4?f2(n.component)||n.component.proxy:n.el,o=a?null:s,{i:u,r:c}=t,l=e&&e.r,d=u.refs===sr?u.refs={}:u.refs,f=u.setupState;if(l!=null&&l!==c&&(Mr(l)?(d[l]=null,Kt(f,l)&&(f[l]=null)):rn(l)&&(l.value=null)),At(c))au(c,u,12,[o,d]);else{const h=Mr(c),p=rn(c);if(h||p){const m=()=>{if(t.f){const y=h?Kt(f,c)?f[c]:d[c]:c.value;a?ft(y)&&KN(y,s):ft(y)?y.includes(s)||y.push(s):h?(d[c]=[s],Kt(f,c)&&(f[c]=d[c])):(c.value=[s],t.k&&(d[t.k]=c.value))}else h?(d[c]=o,Kt(f,c)&&(f[c]=o)):p&&(c.value=o,t.k&&(d[t.k]=o))};o?(m.id=-1,En(m,r)):m()}}}let Lo=!1;const Dle=t=>t.namespaceURI.includes("svg")&&t.tagName!=="foreignObject",Cle=t=>t.namespaceURI.includes("MathML"),wv=t=>{if(Dle(t))return"svg";if(Cle(t))return"mathml"},Sv=t=>t.nodeType===8;function Lle(t){const{mt:e,p:r,o:{patchProp:n,createText:a,nextSibling:s,parentNode:o,remove:u,insert:c,createComment:l}}=t,d=(_,w)=>{if(!w.hasChildNodes()){r(null,_,w),sS(),w._vnode=_;return}Lo=!1,f(w.firstChild,_,null,null,null),sS(),w._vnode=_,Lo&&console.error("Hydration completed but contains mismatches.")},f=(_,w,E,O,L,F=!1)=>{F=F||!!w.dynamicChildren;const x=Sv(_)&&_.data==="[",P=()=>y(_,w,E,O,L,x),{type:j,ref:N,shapeFlag:V,patchFlag:$}=w;let q=_.nodeType;w.el=_,$===-2&&(F=!1,w.dynamicChildren=null);let H=null;switch(j){case Md:q!==3?w.children===""?(c(w.el=a(""),o(_),_),H=_):H=P():(_.data!==w.children&&(Lo=!0,_.data=w.children),H=s(_));break;case ii:v(_)?(H=s(_),b(w.el=_.content.firstChild,_,E)):q!==8||x?H=P():H=s(_);break;case wd:if(x&&(_=s(_),q=_.nodeType),q===1||q===3){H=_;const X=!w.children.length;for(let Y=0;Y{F=F||!!w.dynamicChildren;const{type:x,props:P,patchFlag:j,shapeFlag:N,dirs:V,transition:$}=w,q=x==="input"||x==="option";if(q||j!==-1){V&&es(w,null,E,"created");let H=!1;if(v(_)){H=$W(O,$)&&E&&E.vnode.props&&E.vnode.props.appear;const Y=_.content.firstChild;H&&$.beforeEnter(Y),b(Y,_,E),w.el=_=Y}if(N&16&&!(P&&(P.innerHTML||P.textContent))){let Y=p(_.firstChild,w,_,E,O,L,F);for(;Y;){Lo=!0;const he=Y;Y=Y.nextSibling,u(he)}}else N&8&&_.textContent!==w.children&&(Lo=!0,_.textContent=w.children);if(P)if(q||!F||j&48)for(const Y in P)(q&&(Y.endsWith("value")||Y==="indeterminate")||qb(Y)&&!pd(Y)||Y[0]===".")&&n(_,Y,null,P[Y],void 0,void 0,E);else P.onClick&&n(_,"onClick",null,P.onClick,void 0,void 0,E);let X;(X=P&&P.onVnodeBeforeMount)&&yi(X,E,w),V&&es(w,null,E,"beforeMount"),((X=P&&P.onVnodeMounted)||V||H)&&SW(()=>{X&&yi(X,E,w),H&&$.enter(_),V&&es(w,null,E,"mounted")},O)}return _.nextSibling},p=(_,w,E,O,L,F,x)=>{x=x||!!w.dynamicChildren;const P=w.children,j=P.length;for(let N=0;N{const{slotScopeIds:x}=w;x&&(L=L?L.concat(x):x);const P=o(_),j=p(s(_),w,P,E,O,L,F);return j&&Sv(j)&&j.data==="]"?s(w.anchor=j):(Lo=!0,c(w.anchor=l("]"),P,j),j)},y=(_,w,E,O,L,F)=>{if(Lo=!0,w.el=null,F){const j=g(_);for(;;){const N=s(_);if(N&&N!==j)u(N);else break}}const x=s(_),P=o(_);return u(_),r(null,w,P,x,E,O,wv(P),L),x},g=(_,w="[",E="]")=>{let O=0;for(;_;)if(_=s(_),_&&Sv(_)&&(_.data===w&&O++,_.data===E)){if(O===0)return s(_);O--}return _},b=(_,w,E)=>{const O=w.parentNode;O&&O.replaceChild(_,w);let L=E;for(;L;)L.vnode.el===w&&(L.vnode.el=L.subTree.el=_),L=L.parent},v=_=>_.nodeType===1&&_.tagName.toLowerCase()==="template";return[d,f]}const En=SW;function jle(t){return qW(t)}function Mle(t){return qW(t,Lle)}function qW(t,e){const r=kG();r.__VUE__=!0;const{insert:n,remove:a,patchProp:s,createElement:o,createText:u,createComment:c,setText:l,setElementText:d,parentNode:f,nextSibling:h,setScopeId:p=bi,insertStaticContent:m}=t,y=(T,R,U,G=null,Q=null,Z=null,se=void 0,re=null,le=!!R.dynamicChildren)=>{if(T===R)return;T&&!Da(T,R)&&(G=we(T),$e(T,Q,Z,!0),T=null),R.patchFlag===-2&&(le=!1,R.dynamicChildren=null);const{type:pe,ref:_e,shapeFlag:Ie}=R;switch(pe){case Md:g(T,R,U,G);break;case ii:b(T,R,U,G);break;case wd:T==null&&v(R,U,G,se);break;case Wr:N(T,R,U,G,Q,Z,se,re,le);break;default:Ie&1?E(T,R,U,G,Q,Z,se,re,le):Ie&6?V(T,R,U,G,Q,Z,se,re,le):(Ie&64||Ie&128)&&pe.process(T,R,U,G,Q,Z,se,re,le,z)}_e!=null&&Q&&uS(_e,T&&T.ref,Z,R||T,!R)},g=(T,R,U,G)=>{if(T==null)n(R.el=u(R.children),U,G);else{const Q=R.el=T.el;R.children!==T.children&&l(Q,R.children)}},b=(T,R,U,G)=>{T==null?n(R.el=c(R.children||""),U,G):R.el=T.el},v=(T,R,U,G)=>{[T.el,T.anchor]=m(T.children,R,U,G,T.el,T.anchor)},_=({el:T,anchor:R},U,G)=>{let Q;for(;T&&T!==R;)Q=h(T),n(T,U,G),T=Q;n(R,U,G)},w=({el:T,anchor:R})=>{let U;for(;T&&T!==R;)U=h(T),a(T),T=U;a(R)},E=(T,R,U,G,Q,Z,se,re,le)=>{R.type==="svg"?se="svg":R.type==="math"&&(se="mathml"),T==null?O(R,U,G,Q,Z,se,re,le):x(T,R,Q,Z,se,re,le)},O=(T,R,U,G,Q,Z,se,re)=>{let le,pe;const{props:_e,shapeFlag:Ie,transition:Ee,dirs:Me}=T;if(le=T.el=o(T.type,Z,_e&&_e.is,_e),Ie&8?d(le,T.children):Ie&16&&F(T.children,le,null,G,Q,kE(T,Z),se,re),Me&&es(T,null,G,"created"),L(le,T,T.scopeId,se,G),_e){for(const ke in _e)ke!=="value"&&!pd(ke)&&s(le,ke,null,_e[ke],Z,T.children,G,Q,Pe);"value"in _e&&s(le,"value",null,_e.value,Z),(pe=_e.onVnodeBeforeMount)&&yi(pe,G,T)}Me&&es(T,null,G,"beforeMount");const Ce=$W(Q,Ee);Ce&&Ee.beforeEnter(le),n(le,R,U),((pe=_e&&_e.onVnodeMounted)||Ce||Me)&&En(()=>{pe&&yi(pe,G,T),Ce&&Ee.enter(le),Me&&es(T,null,G,"mounted")},Q)},L=(T,R,U,G,Q)=>{if(U&&p(T,U),G)for(let Z=0;Z{for(let pe=le;pe{const re=R.el=T.el;let{patchFlag:le,dynamicChildren:pe,dirs:_e}=R;le|=T.patchFlag&16;const Ie=T.props||sr,Ee=R.props||sr;let Me;if(U&&Qu(U,!1),(Me=Ee.onVnodeBeforeUpdate)&&yi(Me,U,R,T),_e&&es(R,T,U,"beforeUpdate"),U&&Qu(U,!0),pe?P(T.dynamicChildren,pe,re,U,G,kE(R,Q),Z):se||Y(T,R,re,null,U,G,kE(R,Q),Z,!1),le>0){if(le&16)j(re,R,Ie,Ee,U,G,Q);else if(le&2&&Ie.class!==Ee.class&&s(re,"class",null,Ee.class,Q),le&4&&s(re,"style",Ie.style,Ee.style,Q),le&8){const Ce=R.dynamicProps;for(let ke=0;ke{Me&&yi(Me,U,R,T),_e&&es(R,T,U,"updated")},G)},P=(T,R,U,G,Q,Z,se)=>{for(let re=0;re{if(U!==G){if(U!==sr)for(const re in U)!pd(re)&&!(re in G)&&s(T,re,U[re],null,se,R.children,Q,Z,Pe);for(const re in G){if(pd(re))continue;const le=G[re],pe=U[re];le!==pe&&re!=="value"&&s(T,re,pe,le,se,R.children,Q,Z,Pe)}"value"in G&&s(T,"value",U.value,G.value,se)}},N=(T,R,U,G,Q,Z,se,re,le)=>{const pe=R.el=T?T.el:u(""),_e=R.anchor=T?T.anchor:u("");let{patchFlag:Ie,dynamicChildren:Ee,slotScopeIds:Me}=R;Me&&(re=re?re.concat(Me):Me),T==null?(n(pe,U,G),n(_e,U,G),F(R.children||[],U,_e,Q,Z,se,re,le)):Ie>0&&Ie&64&&Ee&&T.dynamicChildren?(P(T.dynamicChildren,Ee,U,Q,Z,se,re),(R.key!=null||Q&&R===Q.subTree)&&yD(T,R,!0)):Y(T,R,U,_e,Q,Z,se,re,le)},V=(T,R,U,G,Q,Z,se,re,le)=>{R.slotScopeIds=re,T==null?R.shapeFlag&512?Q.ctx.activate(R,U,G,se,le):$(R,U,G,Q,Z,se,le):q(T,R,le)},$=(T,R,U,G,Q,Z,se)=>{const re=T.component=zW(T,G,Q);if(Hb(T)&&(re.ctx.renderer=z),WW(re),re.asyncDep){if(Q&&Q.registerDep(re,H),!T.el){const le=re.subTree=It(ii);b(null,le,R,U)}}else H(re,T,R,U,Q,Z,se)},q=(T,R,U)=>{const G=R.component=T.component;if(Qce(T,R,U))if(G.asyncDep&&!G.asyncResolved){X(G,R,U);return}else G.next=R,Fce(G.update),G.effect.dirty=!0,G.update();else R.el=T.el,G.vnode=R},H=(T,R,U,G,Q,Z,se)=>{const re=()=>{if(T.isMounted){let{next:_e,bu:Ie,u:Ee,parent:Me,vnode:Ce}=T;{const B=UW(T);if(B){_e&&(_e.el=Ce.el,X(T,_e,se)),B.asyncDep.then(()=>{T.isUnmounted||re()});return}}let ke=_e,qe;Qu(T,!1),_e?(_e.el=Ce.el,X(T,_e,se)):_e=Ce,Ie&&yd(Ie),(qe=_e.props&&_e.props.onVnodeBeforeUpdate)&&yi(qe,Me,_e,Ce),Qu(T,!0);const W=Sw(T),D=T.subTree;T.subTree=W,y(D,W,f(D.el),we(D),T,Q,Z),_e.el=W.el,ke===null&&aD(T,W.el),Ee&&En(Ee,Q),(qe=_e.props&&_e.props.onVnodeUpdated)&&En(()=>yi(qe,Me,_e,Ce),Q)}else{let _e;const{el:Ie,props:Ee}=R,{bm:Me,m:Ce,parent:ke}=T,qe=Bc(R);if(Qu(T,!1),Me&&yd(Me),!qe&&(_e=Ee&&Ee.onVnodeBeforeMount)&&yi(_e,ke,R),Qu(T,!0),Ie&&k){const W=()=>{T.subTree=Sw(T),k(Ie,T.subTree,T,Q,null)};qe?R.type.__asyncLoader().then(()=>!T.isUnmounted&&W()):W()}else{const W=T.subTree=Sw(T);y(null,W,U,G,T,Q,Z),R.el=W.el}if(Ce&&En(Ce,Q),!qe&&(_e=Ee&&Ee.onVnodeMounted)){const W=R;En(()=>yi(_e,ke,W),Q)}(R.shapeFlag&256||ke&&Bc(ke.vnode)&&ke.vnode.shapeFlag&256)&&T.a&&En(T.a,Q),T.isMounted=!0,R=U=G=null}},le=T.effect=new ib(re,bi,()=>s2(pe),T.scope),pe=T.update=()=>{le.dirty&&le.run()};pe.id=T.uid,Qu(T,!0),pe()},X=(T,R,U)=>{R.component=T;const G=T.vnode.props;T.vnode=R,T.next=null,xle(T,R.props,G,U),Nle(T,R.children,U),Tu(),Y6(T),Eu()},Y=(T,R,U,G,Q,Z,se,re,le=!1)=>{const pe=T&&T.children,_e=T?T.shapeFlag:0,Ie=R.children,{patchFlag:Ee,shapeFlag:Me}=R;if(Ee>0){if(Ee&128){Te(pe,Ie,U,G,Q,Z,se,re,le);return}else if(Ee&256){he(pe,Ie,U,G,Q,Z,se,re,le);return}}Me&8?(_e&16&&Pe(pe,Q,Z),Ie!==pe&&d(U,Ie)):_e&16?Me&16?Te(pe,Ie,U,G,Q,Z,se,re,le):Pe(pe,Q,Z,!0):(_e&8&&d(U,""),Me&16&&F(Ie,U,G,Q,Z,se,re,le))},he=(T,R,U,G,Q,Z,se,re,le)=>{T=T||fd,R=R||fd;const pe=T.length,_e=R.length,Ie=Math.min(pe,_e);let Ee;for(Ee=0;Ee_e?Pe(T,Q,Z,!0,!1,Ie):F(R,U,G,Q,Z,se,re,le,Ie)},Te=(T,R,U,G,Q,Z,se,re,le)=>{let pe=0;const _e=R.length;let Ie=T.length-1,Ee=_e-1;for(;pe<=Ie&&pe<=Ee;){const Me=T[pe],Ce=R[pe]=le?Wo(R[pe]):Ni(R[pe]);if(Da(Me,Ce))y(Me,Ce,U,null,Q,Z,se,re,le);else break;pe++}for(;pe<=Ie&&pe<=Ee;){const Me=T[Ie],Ce=R[Ee]=le?Wo(R[Ee]):Ni(R[Ee]);if(Da(Me,Ce))y(Me,Ce,U,null,Q,Z,se,re,le);else break;Ie--,Ee--}if(pe>Ie){if(pe<=Ee){const Me=Ee+1,Ce=Me<_e?R[Me].el:G;for(;pe<=Ee;)y(null,R[pe]=le?Wo(R[pe]):Ni(R[pe]),U,Ce,Q,Z,se,re,le),pe++}}else if(pe>Ee)for(;pe<=Ie;)$e(T[pe],Q,Z,!0),pe++;else{const Me=pe,Ce=pe,ke=new Map;for(pe=Ce;pe<=Ee;pe++){const ge=R[pe]=le?Wo(R[pe]):Ni(R[pe]);ge.key!=null&&ke.set(ge.key,pe)}let qe,W=0;const D=Ee-Ce+1;let B=!1,K=0;const ne=new Array(D);for(pe=0;pe=D){$e(ge,Q,Z,!0);continue}let Le;if(ge.key!=null)Le=ke.get(ge.key);else for(qe=Ce;qe<=Ee;qe++)if(ne[qe-Ce]===0&&Da(ge,R[qe])){Le=qe;break}Le===void 0?$e(ge,Q,Z,!0):(ne[Le-Ce]=pe+1,Le>=K?K=Le:B=!0,y(ge,R[Le],U,null,Q,Z,se,re,le),W++)}const fe=B?Fle(ne):fd;for(qe=fe.length-1,pe=D-1;pe>=0;pe--){const ge=Ce+pe,Le=R[ge],ee=ge+1<_e?R[ge+1].el:G;ne[pe]===0?y(null,Le,U,ee,Q,Z,se,re,le):B&&(qe<0||pe!==fe[qe]?Ne(Le,U,ee,2):qe--)}}},Ne=(T,R,U,G,Q=null)=>{const{el:Z,type:se,transition:re,children:le,shapeFlag:pe}=T;if(pe&6){Ne(T.component.subTree,R,U,G);return}if(pe&128){T.suspense.move(R,U,G);return}if(pe&64){se.move(T,R,U,z);return}if(se===Wr){n(Z,R,U);for(let Ie=0;Iere.enter(Z),Q);else{const{leave:Ie,delayLeave:Ee,afterLeave:Me}=re,Ce=()=>n(Z,R,U),ke=()=>{Ie(Z,()=>{Ce(),Me&&Me()})};Ee?Ee(Z,Ce,ke):ke()}else n(Z,R,U)},$e=(T,R,U,G=!1,Q=!1)=>{const{type:Z,props:se,ref:re,children:le,dynamicChildren:pe,shapeFlag:_e,patchFlag:Ie,dirs:Ee}=T;if(re!=null&&uS(re,null,U,T,!0),_e&256){R.ctx.deactivate(T);return}const Me=_e&1&&Ee,Ce=!Bc(T);let ke;if(Ce&&(ke=se&&se.onVnodeBeforeUnmount)&&yi(ke,R,T),_e&6)xe(T.component,U,G);else{if(_e&128){T.suspense.unmount(U,G);return}Me&&es(T,null,R,"beforeUnmount"),_e&64?T.type.remove(T,R,U,Q,z,G):pe&&(Z!==Wr||Ie>0&&Ie&64)?Pe(pe,R,U,!1,!0):(Z===Wr&&Ie&384||!Q&&_e&16)&&Pe(le,R,U),G&&de(T)}(Ce&&(ke=se&&se.onVnodeUnmounted)||Me)&&En(()=>{ke&&yi(ke,R,T),Me&&es(T,null,R,"unmounted")},U)},de=T=>{const{type:R,el:U,anchor:G,transition:Q}=T;if(R===Wr){ce(U,G);return}if(R===wd){w(T);return}const Z=()=>{a(U),Q&&!Q.persisted&&Q.afterLeave&&Q.afterLeave()};if(T.shapeFlag&1&&Q&&!Q.persisted){const{leave:se,delayLeave:re}=Q,le=()=>se(U,Z);re?re(T.el,Z,le):le()}else Z()},ce=(T,R)=>{let U;for(;T!==R;)U=h(T),a(T),T=U;a(R)},xe=(T,R,U)=>{const{bum:G,scope:Q,update:Z,subTree:se,um:re}=T;G&&yd(G),Q.stop(),Z&&(Z.active=!1,$e(se,T,R,U)),re&&En(re,R),En(()=>{T.isUnmounted=!0},R),R&&R.pendingBranch&&!R.isUnmounted&&T.asyncDep&&!T.asyncResolved&&T.suspenseId===R.pendingId&&(R.deps--,R.deps===0&&R.resolve())},Pe=(T,R,U,G=!1,Q=!1,Z=0)=>{for(let se=Z;seT.shapeFlag&6?we(T.component.subTree):T.shapeFlag&128?T.suspense.next():h(T.anchor||T.el);let Re=!1;const Se=(T,R,U)=>{T==null?R._vnode&&$e(R._vnode,null,null,!0):y(R._vnode||null,T,R,null,null,null,U),Re||(Re=!0,Y6(),sS(),Re=!1),R._vnode=T},z={p:y,um:$e,m:Ne,r:de,mt:$,mc:F,pc:Y,pbc:P,n:we,o:t};let M,k;return e&&([M,k]=e(z)),{render:Se,hydrate:M,createApp:Ale(Se,M)}}function kE({type:t,props:e},r){return r==="svg"&&t==="foreignObject"||r==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:r}function Qu({effect:t,update:e},r){t.allowRecurse=e.allowRecurse=r}function $W(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function yD(t,e,r=!1){const n=t.children,a=e.children;if(ft(n)&&ft(a))for(let s=0;s>1,t[r[u]]0&&(e[n]=r[s-1]),r[s]=n)}}for(s=r.length,o=r[s-1];s-- >0;)r[s]=o,o=e[o];return r}function UW(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:UW(e)}const Ble=t=>t.__isTeleport,k_=t=>t&&(t.disabled||t.disabled===""),lL=t=>typeof SVGElement<"u"&&t instanceof SVGElement,dL=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,XI=(t,e)=>{const r=t&&t.to;return Mr(r)?e?e(r):null:r},qle={name:"Teleport",__isTeleport:!0,process(t,e,r,n,a,s,o,u,c,l){const{mc:d,pc:f,pbc:h,o:{insert:p,querySelector:m,createText:y,createComment:g}}=l,b=k_(e.props);let{shapeFlag:v,children:_,dynamicChildren:w}=e;if(t==null){const E=e.el=y(""),O=e.anchor=y("");p(E,r,n),p(O,r,n);const L=e.target=XI(e.props,m),F=e.targetAnchor=y("");L&&(p(F,L),o==="svg"||lL(L)?o="svg":(o==="mathml"||dL(L))&&(o="mathml"));const x=(P,j)=>{v&16&&d(_,P,j,a,s,o,u,c)};b?x(r,O):L&&x(L,F)}else{e.el=t.el;const E=e.anchor=t.anchor,O=e.target=t.target,L=e.targetAnchor=t.targetAnchor,F=k_(t.props),x=F?r:O,P=F?E:L;if(o==="svg"||lL(O)?o="svg":(o==="mathml"||dL(O))&&(o="mathml"),w?(h(t.dynamicChildren,w,x,a,s,o,u),yD(t,e,!0)):c||f(t,e,x,P,a,s,o,u,!1),b)F?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):Tv(e,r,E,l,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const j=e.target=XI(e.props,m);j&&Tv(e,j,null,l,0)}else F&&Tv(e,O,L,l,1)}kW(e)},remove(t,e,r,n,{um:a,o:{remove:s}},o){const{shapeFlag:u,children:c,anchor:l,targetAnchor:d,target:f,props:h}=t;if(f&&s(d),o&&s(l),u&16){const p=o||!k_(h);for(let m=0;m0?vi||fd:null,VW(),zc>0&&vi&&vi.push(t),t}function gr(t,e,r,n,a,s){return HW(tt(t,e,r,n,a,s,!0))}function mD(t,e,r,n,a){return HW(It(t,e,r,n,a,!0))}function Gc(t){return t?t.__v_isVNode===!0:!1}function Da(t,e){return t.type===e.type&&t.key===e.key}function a5e(t){}const QW=({key:t})=>t??null,Ew=({ref:t,ref_key:e,ref_for:r})=>(typeof t=="number"&&(t=""+t),t!=null?Mr(t)||rn(t)||At(t)?{i:en,r:t,k:e,f:!!r}:t:null);function tt(t,e=null,r=null,n=0,a=null,s=t===Wr?0:1,o=!1,u=!1){const c={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&QW(e),ref:e&&Ew(e),scopeId:u2,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:n,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:en};return u?(gD(c,r),s&128&&t.normalize(c)):r&&(c.shapeFlag|=Mr(r)?8:16),zc>0&&!o&&vi&&(c.patchFlag>0||s&6)&&c.patchFlag!==32&&vi.push(c),c}const It=Ule;function Ule(t,e=null,r=null,n=0,a=null,s=!1){if((!t||t===vW)&&(t=ii),Gc(t)){const u=_o(t,e,!0);return r&&gD(u,r),zc>0&&!s&&vi&&(u.shapeFlag&6?vi[vi.indexOf(t)]=u:vi.push(u)),u.patchFlag|=-2,u}if(Wle(t)&&(t=t.__vccOpts),e){e=kle(e);let{class:u,style:c}=e;u&&!Mr(u)&&(e.class=Qc(u)),fr(c)&&(lW(c)&&!ft(c)&&(c=jr({},c)),e.style=$b(c))}const o=Mr(t)?1:wW(t)?128:Ble(t)?64:fr(t)?4:At(t)?2:0;return tt(t,e,r,n,a,o,s,!0)}function kle(t){return t?lW(t)||CW(t)?jr({},t):t:null}function _o(t,e,r=!1){const{props:n,ref:a,patchFlag:s,children:o}=t,u=e?Vle(n||{},e):n;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:u,key:u&&QW(u),ref:e&&e.ref?r&&a?ft(a)?a.concat(Ew(e)):[a,Ew(e)]:Ew(e):a,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Wr?s===-1?16:s|16:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&_o(t.ssContent),ssFallback:t.ssFallback&&_o(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function Xa(t=" ",e=0){return It(Md,null,t,e)}function s5e(t,e){const r=It(wd,null,t);return r.staticCount=e,r}function Na(t="",e=!1){return e?(rr(),mD(ii,null,t)):It(ii,null,t)}function Ni(t){return t==null||typeof t=="boolean"?It(ii):ft(t)?It(Wr,null,t.slice()):typeof t=="object"?Wo(t):It(Md,null,String(t))}function Wo(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:_o(t)}function gD(t,e){let r=0;const{shapeFlag:n}=t;if(e==null)e=null;else if(ft(e))r=16;else if(typeof e=="object")if(n&65){const a=e.default;a&&(a._c&&(a._d=!1),gD(t,a()),a._c&&(a._d=!0));return}else{r=32;const a=e._;!a&&!CW(e)?e._ctx=en:a===3&&en&&(en.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else At(e)?(e={default:e,_ctx:en},r=32):(e=String(e),n&64?(r=16,e=[Xa(e)]):r=8);t.children=e,t.shapeFlag|=r}function Vle(...t){const e={};for(let r=0;rdn||en;let cS,YI;{const t=kG(),e=(r,n)=>{let a;return(a=t[r])||(a=t[r]=[]),a.push(n),s=>{a.length>1?a.forEach(o=>o(s)):a[0](s)}};cS=e("__VUE_INSTANCE_SETTERS__",r=>dn=r),YI=e("__VUE_SSR_SETTERS__",r=>Qb=r)}const Wc=t=>{const e=dn;return cS(t),t.scope.on(),()=>{t.scope.off(),cS(e)}},ZI=()=>{dn&&dn.scope.off(),cS(null)};function GW(t){return t.vnode.shapeFlag&4}let Qb=!1;function WW(t,e=!1){e&&YI(e);const{props:r,children:n}=t.vnode,a=GW(t);Rle(t,r,a,e),Ple(t,n);const s=a?zle(t,e):void 0;return e&&YI(!1),s}function zle(t,e){const r=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,zI);const{setup:n}=r;if(n){const a=t.setupContext=n.length>1?JW(t):null,s=Wc(t);Tu();const o=au(n,t,0,[t.props,a]);if(Eu(),s(),JN(o)){if(o.then(ZI,ZI),e)return o.then(u=>{eP(t,u,e)}).catch(u=>{ff(u,t,0)});t.asyncDep=o}else eP(t,o,e)}else KW(t,e)}function eP(t,e,r){At(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:fr(e)&&(t.setupState=hW(e)),KW(t,r)}let lS,tP;function o5e(t){lS=t,tP=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,_le))}}const u5e=()=>!lS;function KW(t,e,r){const n=t.type;if(!t.render){if(!e&&lS&&!n.render){const a=n.template||hD(t).template;if(a){const{isCustomElement:s,compilerOptions:o}=t.appContext.config,{delimiters:u,compilerOptions:c}=n,l=jr(jr({isCustomElement:s,delimiters:u},o),c);n.render=lS(a,l)}}t.render=n.render||bi,tP&&tP(t)}{const a=Wc(t);Tu();try{ble(t)}finally{Eu(),a()}}}const Gle={get(t,e){return Ti(t,"get",""),t[e]}};function JW(t){const e=r=>{t.exposed=r||{}};return{attrs:new Proxy(t.attrs,Gle),slots:t.slots,emit:t.emit,expose:e}}function f2(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(hW(tD(t.exposed)),{get(e,r){if(r in e)return e[r];if(r in U_)return U_[r](t)},has(e,r){return r in e||r in U_}}))}function rP(t,e=!0){return At(t)?t.displayName||t.name:t.name||e&&t.__name}function Wle(t){return At(t)&&"__vccOpts"in t}const ea=(t,e)=>Ace(t,e,Qb);function c5e(t,e,r=sr){const n=Au(),a=wi(e),s=Di(e),o=Pce((c,l)=>{let d;return rle(()=>{const f=t[e];La(d,f)&&(d=f,l())}),{get(){return c(),r.get?r.get(d):d},set(f){const h=n.vnode.props;!(h&&(e in h||a in h||s in h)&&(`onUpdate:${e}`in h||`onUpdate:${a}`in h||`onUpdate:${s}`in h))&&La(f,d)&&(d=f,l()),n.emit(`update:${e}`,r.set?r.set(f):f)}}}),u=e==="modelValue"?"modelModifiers":`${e}Modifiers`;return o[Symbol.iterator]=()=>{let c=0;return{next(){return c<2?{value:c++?t[u]||{}:o,done:!1}:{done:!0}}}},o}function h2(t,e,r){const n=arguments.length;return n===2?fr(e)&&!ft(e)?Gc(e)?It(t,null,[e]):It(t,e):It(t,null,e):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&Gc(r)&&(r=[r]),It(t,e,r))}function l5e(){}function d5e(t,e,r,n){const a=r[n];if(a&&Kle(a,t))return a;const s=e();return s.memo=t.slice(),r[n]=s}function Kle(t,e){const r=t.memo;if(r.length!=e.length)return!1;for(let n=0;n0&&vi&&vi.push(t),!0}const Jle="3.4.23",f5e=bi,h5e=Lce,p5e=Gl,y5e=_W,Xle={createComponentInstance:zW,setupComponent:WW,renderComponentRoot:Sw,setCurrentRenderingInstance:cb,isVNode:Gc,normalizeVNode:Ni},m5e=Xle,g5e=null,_5e=null,b5e=null;/** * @vue/runtime-dom v3.4.23 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/const Zle="http://www.w3.org/2000/svg",ede="http://www.w3.org/1998/Math/MathML",Ko=typeof document<"u"?document:null,hL=Ko&&Ko.createElement("template"),tde={insert:(t,e,r)=>{e.insertBefore(t,r||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,r,n)=>{const a=e==="svg"?Ko.createElementNS(Zle,t):e==="mathml"?Ko.createElementNS(ede,t):Ko.createElement(t,r?{is:r}:void 0);return t==="select"&&n&&n.multiple!=null&&a.setAttribute("multiple",n.multiple),a},createText:t=>Ko.createTextNode(t),createComment:t=>Ko.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Ko.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,r,n,a,s){const o=r?r.previousSibling:e.lastChild;if(a&&(a===s||a.nextSibling))for(;e.insertBefore(a.cloneNode(!0),r),!(a===s||!(a=a.nextSibling)););else{hL.innerHTML=n==="svg"?`${t}`:n==="mathml"?`${t}`:t;const u=hL.content;if(n==="svg"||n==="mathml"){const c=u.firstChild;for(;c.firstChild;)u.appendChild(c.firstChild);u.removeChild(c)}e.insertBefore(u,r)}return[o?o.nextSibling:e.firstChild,r?r.previousSibling:e.lastChild]}},jo="transition",Wf="animation",Bd=Symbol("_vtc"),XW=(t,{slots:e})=>p2(sle,ZW(t),e);XW.displayName="Transition";const YW={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},rde=XW.props=jr({},AW,YW),zu=(t,e=[])=>{ft(t)?t.forEach(r=>r(...e)):t&&t(...e)},pL=t=>t?ft(t)?t.some(e=>e.length>1):t.length>1:!1;function ZW(t){const e={};for(const N in t)N in YW||(e[N]=t[N]);if(t.css===!1)return e;const{name:r="v",type:n,duration:a,enterFromClass:s=`${r}-enter-from`,enterActiveClass:o=`${r}-enter-active`,enterToClass:u=`${r}-enter-to`,appearFromClass:c=s,appearActiveClass:l=o,appearToClass:d=u,leaveFromClass:f=`${r}-leave-from`,leaveActiveClass:h=`${r}-leave-active`,leaveToClass:p=`${r}-leave-to`}=t,m=nde(a),y=m&&m[0],g=m&&m[1],{onBeforeEnter:b,onEnter:v,onEnterCancelled:_,onLeave:w,onLeaveCancelled:E,onBeforeAppear:O=b,onAppear:L=v,onAppearCancelled:F=_}=e,x=(N,V,$)=>{$o(N,V?d:u),$o(N,V?l:o),$&&$()},P=(N,V)=>{N._isLeaving=!1,$o(N,f),$o(N,p),$o(N,h),V&&V()},j=N=>(V,$)=>{const q=N?L:v,H=()=>x(V,N,$);zu(q,[V,H]),yL(()=>{$o(V,N?c:s),Qs(V,N?d:u),pL(q)||mL(V,n,y,H)})};return jr(e,{onBeforeEnter(N){zu(b,[N]),Qs(N,s),Qs(N,o)},onBeforeAppear(N){zu(O,[N]),Qs(N,c),Qs(N,l)},onEnter:j(!1),onAppear:j(!0),onLeave(N,V){N._isLeaving=!0;const $=()=>P(N,V);Qs(N,f),tK(),Qs(N,h),yL(()=>{N._isLeaving&&($o(N,f),Qs(N,p),pL(w)||mL(N,n,g,$))}),zu(w,[N,$])},onEnterCancelled(N){x(N,!1),zu(_,[N])},onAppearCancelled(N){x(N,!0),zu(F,[N])},onLeaveCancelled(N){P(N),zu(E,[N])}})}function nde(t){if(t==null)return null;if(fr(t))return[HE(t.enter),HE(t.leave)];{const e=HE(t);return[e,e]}}function HE(t){return nS(t)}function Qs(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.add(r)),(t[Bd]||(t[Bd]=new Set)).add(e)}function $o(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.remove(n));const r=t[Bd];r&&(r.delete(e),r.size||(t[Bd]=void 0))}function yL(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let ide=0;function mL(t,e,r,n){const a=t._endId=++ide,s=()=>{a===t._endId&&n()};if(r)return setTimeout(s,r);const{type:o,timeout:u,propCount:c}=eK(t,e);if(!o)return n();const l=o+"end";let d=0;const f=()=>{t.removeEventListener(l,h),s()},h=p=>{p.target===t&&++d>=c&&f()};setTimeout(()=>{d(r[m]||"").split(", "),a=n(`${jo}Delay`),s=n(`${jo}Duration`),o=gL(a,s),u=n(`${Wf}Delay`),c=n(`${Wf}Duration`),l=gL(u,c);let d=null,f=0,h=0;e===jo?o>0&&(d=jo,f=o,h=s.length):e===Wf?l>0&&(d=Wf,f=l,h=c.length):(f=Math.max(o,l),d=f>0?o>l?jo:Wf:null,h=d?d===jo?s.length:c.length:0);const p=d===jo&&/\b(transform|all)(,|$)/.test(n(`${jo}Property`).toString());return{type:d,timeout:f,propCount:h,hasTransform:p}}function gL(t,e){for(;t.length_L(r)+_L(t[n])))}function _L(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function tK(){return document.body.offsetHeight}function ade(t,e,r){const n=t[Bd];n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?t.removeAttribute("class"):r?t.setAttribute("class",e):t.className=e}const fS=Symbol("_vod"),rK=Symbol("_vsh"),sde={beforeMount(t,{value:e},{transition:r}){t[fS]=t.style.display==="none"?"":t.style.display,r&&e?r.beforeEnter(t):Kf(t,e)},mounted(t,{value:e},{transition:r}){r&&e&&r.enter(t)},updated(t,{value:e,oldValue:r},{transition:n}){!e!=!r&&(n?e?(n.beforeEnter(t),Kf(t,!0),n.enter(t)):n.leave(t,()=>{Kf(t,!1)}):Kf(t,e))},beforeUnmount(t,{value:e}){Kf(t,e)}};function Kf(t,e){t.style.display=e?t[fS]:"none",t[rK]=!e}function ode(){sde.getSSRProps=({value:t})=>{if(!t)return{style:{display:"none"}}}}const nK=Symbol("");function v5e(t){const e=Au();if(!e)return;const r=e.ut=(a=t(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}"]`)).forEach(s=>iP(s,a))},n=()=>{const a=t(e.proxy);nP(e.subTree,a),r(a)};f2(()=>{rle(n);const a=new MutationObserver(n);a.observe(e.subTree.el.parentNode,{childList:!0}),fD(()=>a.disconnect())})}function nP(t,e){if(t.shapeFlag&128){const r=t.suspense;t=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{nP(r.activeBranch,e)})}for(;t.component;)t=t.component.subTree;if(t.shapeFlag&1&&t.el)iP(t.el,e);else if(t.type===Wr)t.children.forEach(r=>nP(r,e));else if(t.type===Sd){let{el:r,anchor:n}=t;for(;r&&(iP(r,e),r!==n);)r=r.nextSibling}}function iP(t,e){if(t.nodeType===1){const r=t.style;let n="";for(const a in e)r.setProperty(`--${a}`,e[a]),n+=`--${a}: ${e[a]};`;r[nK]=n}}const ude=/(^|;)\s*display\s*:/;function cde(t,e,r){const n=t.style,a=Mr(r);let s=!1;if(r&&!a){if(e)if(Mr(e))for(const o of e.split(";")){const u=o.slice(0,o.indexOf(":")).trim();r[u]==null&&Aw(n,u,"")}else for(const o in e)r[o]==null&&Aw(n,o,"");for(const o in r)o==="display"&&(s=!0),Aw(n,o,r[o])}else if(a){if(e!==r){const o=n[nK];o&&(r+=";"+o),n.cssText=r,s=ude.test(r)}}else e&&t.removeAttribute("style");fS in t&&(t[fS]=s?n.display:"",t[rK]&&(n.display="none"))}const bL=/\s*!important$/;function Aw(t,e,r){if(ft(r))r.forEach(n=>Aw(t,e,n));else if(r==null&&(r=""),e.startsWith("--"))t.setProperty(e,r);else{const n=lde(t,e);bL.test(r)?t.setProperty(Di(n),r.replace(bL,""),"important"):t[n]=r}}const vL=["Webkit","Moz","ms"],QE={};function lde(t,e){const r=QE[e];if(r)return r;let n=wi(e);if(n!=="filter"&&n in t)return QE[e]=n;n=r2(n);for(let a=0;azE||(mde.then(()=>zE=0),zE=Date.now());function _de(t,e){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;sa(bde(n,r.value),e,5,[n])};return r.value=t,r.attached=gde(),r}function bde(t,e){if(ft(e)){const r=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{r.call(t),t._stopped=!0},e.map(n=>a=>!a._stopped&&n&&n(a))}else return e}const EL=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,vde=(t,e,r,n,a,s,o,u,c)=>{const l=a==="svg";e==="class"?ade(t,n,l):e==="style"?cde(t,r,n):qb(e)?WN(e)||pde(t,e,r,n,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):wde(t,e,n,l))?fde(t,e,n,s,o,u,c):(e==="true-value"?t._trueValue=n:e==="false-value"&&(t._falseValue=n),dde(t,e,n,l))};function wde(t,e,r,n){if(n)return!!(e==="innerHTML"||e==="textContent"||e in t&&EL(e)&&At(r));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const a=t.tagName;if(a==="IMG"||a==="VIDEO"||a==="CANVAS"||a==="SOURCE")return!1}return EL(e)&&Mr(r)?!1:e in t}/*! #__NO_SIDE_EFFECTS__ */function Sde(t,e){const r=l2(t);class n extends _D{constructor(s){super(r,s,e)}}return n.def=r,n}/*! #__NO_SIDE_EFFECTS__ */const w5e=t=>Sde(t,Mde),Tde=typeof HTMLElement<"u"?HTMLElement:class{};class _D extends Tde{constructor(e,r={},n){super(),this._def=e,this._props=r,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),kb(()=>{this._connected||(PL(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let n=0;n{for(const a of n)this._setAttr(a.attributeName)}),this._ob.observe(this,{attributes:!0});const e=(n,a=!1)=>{const{props:s,styles:o}=n;let u;if(s&&!ft(s))for(const c in s){const l=s[c];(l===Number||l&&l.type===Number)&&(c in this._props&&(this._props[c]=nS(this._props[c])),(u||(u=Object.create(null)))[wi(c)]=!0)}this._numberProps=u,a&&this._resolveProps(n),this._applyStyles(o),this._update()},r=this._def.__asyncLoader;r?r().then(n=>e(n,!0)):e(this._def)}_resolveProps(e){const{props:r}=e,n=ft(r)?r:Object.keys(r||{});for(const a of Object.keys(this))a[0]!=="_"&&n.includes(a)&&this._setProp(a,this[a],!0,!1);for(const a of n.map(wi))Object.defineProperty(this,a,{get(){return this._getProp(a)},set(s){this._setProp(a,s)}})}_setAttr(e){let r=this.hasAttribute(e)?this.getAttribute(e):void 0;const n=wi(e);this._numberProps&&this._numberProps[n]&&(r=nS(r)),this._setProp(n,r,!1)}_getProp(e){return this._props[e]}_setProp(e,r,n=!0,a=!0){r!==this._props[e]&&(this._props[e]=r,a&&this._instance&&this._update(),n&&(r===!0?this.setAttribute(Di(e),""):typeof r=="string"||typeof r=="number"?this.setAttribute(Di(e),r+""):r||this.removeAttribute(Di(e))))}_update(){PL(this._createVNode(),this.shadowRoot)}_createVNode(){const e=It(this._def,jr({},this._props));return this._instance||(e.ce=r=>{this._instance=r,r.isCE=!0;const n=(s,o)=>{this.dispatchEvent(new CustomEvent(s,{detail:o}))};r.emit=(s,...o)=>{n(s,o),Di(s)!==s&&n(Di(s),o)};let a=this;for(;a=a&&(a.parentNode||a.host);)if(a instanceof _D){r.parent=a._instance,r.provides=a._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach(r=>{const n=document.createElement("style");n.textContent=r,this.shadowRoot.appendChild(n)})}}function S5e(t="$style"){{const e=Au();if(!e)return sr;const r=e.type.__cssModules;if(!r)return sr;const n=r[t];return n||sr}}const iK=new WeakMap,aK=new WeakMap,hS=Symbol("_moveCb"),AL=Symbol("_enterCb"),sK={name:"TransitionGroup",props:jr({},rde,{tag:String,moveClass:String}),setup(t,{slots:e}){const r=Au(),n=EW();let a,s;return lD(()=>{if(!a.length)return;const o=t.moveClass||`${t.name||"v"}-move`;if(!xde(a[0].el,r.vnode.el,o))return;a.forEach(Ade),a.forEach(Ode);const u=a.filter(Rde);tK(),u.forEach(c=>{const l=c.el,d=l.style;Qs(l,o),d.transform=d.webkitTransform=d.transitionDuration="";const f=l[hS]=h=>{h&&h.target!==l||(!h||/transform$/.test(h.propertyName))&&(l.removeEventListener("transitionend",f),l[hS]=null,$o(l,o))};l.addEventListener("transitionend",f)})}),()=>{const o=Qt(t),u=ZW(o);let c=o.tag||Wr;if(a=[],s)for(let l=0;ldelete t.mode;sK.props;const T5e=sK;function Ade(t){const e=t.el;e[hS]&&e[hS](),e[AL]&&e[AL]()}function Ode(t){aK.set(t,t.el.getBoundingClientRect())}function Rde(t){const e=iK.get(t),r=aK.get(t),n=e.left-r.left,a=e.top-r.top;if(n||a){const s=t.el.style;return s.transform=s.webkitTransform=`translate(${n}px,${a}px)`,s.transitionDuration="0s",t}}function xde(t,e,r){const n=t.cloneNode(),a=t[Bd];a&&a.forEach(u=>{u.split(/\s+/).forEach(c=>c&&n.classList.remove(c))}),r.split(/\s+/).forEach(u=>u&&n.classList.add(u)),n.style.display="none";const s=e.nodeType===1?e:e.parentNode;s.appendChild(n);const{hasTransform:o}=eK(n);return s.removeChild(n),o}const pu=t=>{const e=t.props["onUpdate:modelValue"]||!1;return ft(e)?r=>md(e,r):e};function Ide(t){t.target.composing=!0}function OL(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const oa=Symbol("_assign"),ta={created(t,{modifiers:{lazy:e,trim:r,number:n}},a){t[oa]=pu(a);const s=n||a.props&&a.props.type==="number";to(t,e?"change":"input",o=>{if(o.target.composing)return;let u=t.value;r&&(u=u.trim()),s&&(u=rS(u)),t[oa](u)}),r&&to(t,"change",()=>{t.value=t.value.trim()}),e||(to(t,"compositionstart",Ide),to(t,"compositionend",OL),to(t,"change",OL))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:r,trim:n,number:a}},s){if(t[oa]=pu(s),t.composing)return;const o=(a||t.type==="number")&&!/^0\d/.test(t.value)?rS(t.value):t.value,u=e??"";o!==u&&(document.activeElement===t&&t.type!=="range"&&(r||n&&t.value.trim()===u)||(t.value=u))}},oK={deep:!0,created(t,e,r){t[oa]=pu(r),to(t,"change",()=>{const n=t._modelValue,a=qd(t),s=t.checked,o=t[oa];if(ft(n)){const u=n2(n,a),c=u!==-1;if(s&&!c)o(n.concat(a));else if(!s&&c){const l=[...n];l.splice(u,1),o(l)}}else if(sl(n)){const u=new Set(n);s?u.add(a):u.delete(a),o(u)}else o(uK(t,s))})},mounted:RL,beforeUpdate(t,e,r){t[oa]=pu(r),RL(t,e,r)}};function RL(t,{value:e,oldValue:r},n){t._modelValue=e,ft(e)?t.checked=n2(e,n.props.value)>-1:sl(e)?t.checked=e.has(n.props.value):e!==r&&(t.checked=hu(e,uK(t,!0)))}const H_={created(t,{value:e},r){t.checked=hu(e,r.props.value),t[oa]=pu(r),to(t,"change",()=>{t[oa](qd(t))})},beforeUpdate(t,{value:e,oldValue:r},n){t[oa]=pu(n),e!==r&&(t.checked=hu(e,n.props.value))}},Pde={deep:!0,created(t,{value:e,modifiers:{number:r}},n){const a=sl(e);to(t,"change",()=>{const s=Array.prototype.filter.call(t.options,o=>o.selected).map(o=>r?rS(qd(o)):qd(o));t[oa](t.multiple?a?new Set(s):s:s[0]),t._assigning=!0,kb(()=>{t._assigning=!1})}),t[oa]=pu(n)},mounted(t,{value:e,modifiers:{number:r}}){xL(t,e)},beforeUpdate(t,e,r){t[oa]=pu(r)},updated(t,{value:e,modifiers:{number:r}}){t._assigning||xL(t,e)}};function xL(t,e,r){const n=t.multiple,a=ft(e);if(!(n&&!a&&!sl(e))){for(let s=0,o=t.options.length;sString(d)===String(c)):u.selected=n2(e,c)>-1}else u.selected=e.has(c);else if(hu(qd(u),e)){t.selectedIndex!==s&&(t.selectedIndex=s);return}}!n&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function qd(t){return"_value"in t?t._value:t.value}function uK(t,e){const r=e?"_trueValue":"_falseValue";return r in t?t[r]:e}const Nde={created(t,e,r){Ev(t,e,r,null,"created")},mounted(t,e,r){Ev(t,e,r,null,"mounted")},beforeUpdate(t,e,r,n){Ev(t,e,r,n,"beforeUpdate")},updated(t,e,r,n){Ev(t,e,r,n,"updated")}};function cK(t,e){switch(t){case"SELECT":return Pde;case"TEXTAREA":return ta;default:switch(e){case"checkbox":return oK;case"radio":return H_;default:return ta}}}function Ev(t,e,r,n,a){const o=cK(t.tagName,r.props&&r.props.type)[a];o&&o(t,e,r,n)}function Dde(){ta.getSSRProps=({value:t})=>({value:t}),H_.getSSRProps=({value:t},e)=>{if(e.props&&hu(e.props.value,t))return{checked:!0}},oK.getSSRProps=({value:t},e)=>{if(ft(t)){if(e.props&&n2(t,e.props.value)>-1)return{checked:!0}}else if(sl(t)){if(e.props&&t.has(e.props.value))return{checked:!0}}else if(t)return{checked:!0}},Nde.getSSRProps=(t,e)=>{if(typeof e.type!="string")return;const r=cK(e.type.toUpperCase(),e.props&&e.props.type);if(r.getSSRProps)return r.getSSRProps(t,e)}}const Cde=["ctrl","shift","alt","meta"],Lde={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>Cde.some(r=>t[`${r}Key`]&&!e.includes(r))},E5e=(t,e)=>{const r=t._withMods||(t._withMods={}),n=e.join(".");return r[n]||(r[n]=(a,...s)=>{for(let o=0;o{const r=t._withKeys||(t._withKeys={}),n=e.join(".");return r[n]||(r[n]=a=>{if(!("key"in a))return;const s=Di(a.key);if(e.some(o=>o===s||jde[o]===s))return t(a)})},lK=jr({patchProp:vde},tde);let Q_,IL=!1;function dK(){return Q_||(Q_=Mle(lK))}function fK(){return Q_=IL?Q_:Fle(lK),IL=!0,Q_}const PL=(...t)=>{dK().render(...t)},Mde=(...t)=>{fK().hydrate(...t)},Fde=(...t)=>{const e=dK().createApp(...t),{mount:r}=e;return e.mount=n=>{const a=pK(n);if(!a)return;const s=e._component;!At(s)&&!s.render&&!s.template&&(s.template=a.innerHTML),a.innerHTML="";const o=r(a,!1,hK(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),o},e},O5e=(...t)=>{const e=fK().createApp(...t),{mount:r}=e;return e.mount=n=>{const a=pK(n);if(a)return r(a,!0,hK(a))},e};function hK(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function pK(t){return Mr(t)?document.querySelector(t):t}let NL=!1;const R5e=()=>{NL||(NL=!0,Dde(),ode())};var Bde=!1;let yK;const y2=t=>yK=t,mK=Symbol();function aP(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var z_;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(z_||(z_={}));function qde(){const t=zG(!0),e=t.run(()=>fo({}));let r=[],n=[];const a=tD({install(s){y2(a),a._a=s,s.provide(mK,a),s.config.globalProperties.$pinia=a,n.forEach(o=>r.push(o)),n=[]},use(s){return!this._a&&!Bde?n.push(s):r.push(s),this},_p:r,_a:null,_e:t,_s:new Map,state:e});return a}const gK=()=>{};function DL(t,e,r,n=gK){t.push(e);const a=()=>{const s=t.indexOf(e);s>-1&&(t.splice(s,1),n())};return!r&&WG()&&ace(a),a}function Ml(t,...e){t.slice().forEach(r=>{r(...e)})}const $de=t=>t();function sP(t,e){t instanceof Map&&e instanceof Map&&e.forEach((r,n)=>t.set(n,r)),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const r in e){if(!e.hasOwnProperty(r))continue;const n=e[r],a=t[r];aP(a)&&aP(n)&&t.hasOwnProperty(r)&&!rn(n)&&!Mc(n)?t[r]=sP(a,n):t[r]=n}return t}const Ude=Symbol();function kde(t){return!aP(t)||!t.hasOwnProperty(Ude)}const{assign:Uo}=Object;function Vde(t){return!!(rn(t)&&t.effect)}function Hde(t,e,r,n){const{state:a,actions:s,getters:o}=e,u=r.state.value[t];let c;function l(){u||(r.state.value[t]=a?a():{});const d=Dce(r.state.value[t]);return Uo(d,s,Object.keys(o||{}).reduce((f,h)=>(f[h]=tD(ea(()=>{y2(r);const p=r._s.get(t);return o[h].call(p,p)})),f),{}))}return c=_K(t,l,e,r,n,!0),c}function _K(t,e,r={},n,a,s){let o;const u=Uo({actions:{}},r),c={deep:!0};let l,d,f=[],h=[],p;const m=n.state.value[t];!s&&!m&&(n.state.value[t]={}),fo({});let y;function g(F){let x;l=d=!1,typeof F=="function"?(F(n.state.value[t]),x={type:z_.patchFunction,storeId:t,events:p}):(sP(n.state.value[t],F),x={type:z_.patchObject,payload:F,storeId:t,events:p});const P=y=Symbol();kb().then(()=>{y===P&&(l=!0)}),d=!0,Ml(f,x,n.state.value[t])}const b=s?function(){const{state:x}=r,P=x?x():{};this.$patch(j=>{Uo(j,P)})}:gK;function v(){o.stop(),f=[],h=[],n._s.delete(t)}function _(F,x){return function(){y2(n);const P=Array.from(arguments),j=[],N=[];function V(H){j.push(H)}function $(H){N.push(H)}Ml(h,{args:P,name:F,store:E,after:V,onError:$});let q;try{q=x.apply(this&&this.$id===t?this:E,P)}catch(H){throw Ml(N,H),H}return q instanceof Promise?q.then(H=>(Ml(j,H),H)).catch(H=>(Ml(N,H),Promise.reject(H))):(Ml(j,q),q)}}const w={_p:n,$id:t,$onAction:DL.bind(null,h),$patch:g,$reset:b,$subscribe(F,x={}){const P=DL(f,F,x.detached,()=>j()),j=o.run(()=>vd(()=>n.state.value[t],N=>{(x.flush==="sync"?d:l)&&F({storeId:t,type:z_.direct,events:p},N)},Uo({},c,x)));return P},$dispose:v},E=Ub(w);n._s.set(t,E);const L=(n._a&&n._a.runWithContext||$de)(()=>n._e.run(()=>(o=zG()).run(e)));for(const F in L){const x=L[F];if(rn(x)&&!Vde(x)||Mc(x))s||(m&&kde(x)&&(rn(x)?x.value=m[F]:sP(x,m[F])),n.state.value[t][F]=x);else if(typeof x=="function"){const P=_(F,x);L[F]=P,u.actions[F]=x}}return Uo(E,L),Uo(Qt(E),L),Object.defineProperty(E,"$state",{get:()=>n.state.value[t],set:F=>{g(x=>{Uo(x,F)})}}),n._p.forEach(F=>{Uo(E,o.run(()=>F({store:E,app:n._a,pinia:n,options:u})))}),m&&s&&r.hydrate&&r.hydrate(E.$state,m),l=!0,d=!0,E}function bD(t,e,r){let n,a;const s=typeof e=="function";typeof t=="string"?(n=t,a=s?r:e):(a=t,n=t.id);function o(u,c){const l=Rle();return u=u||(l?cs(mK,null):null),u&&y2(u),u=yK,u._s.has(n)||(s?_K(n,e,a,u):Hde(n,a,u)),u._s.get(n)}return o.$id=n,o}function pS(t,e){return Array.isArray(e)?e.reduce((r,n)=>(r[n]=function(){return t(this.$pinia)[n]},r),{}):Object.keys(e).reduce((r,n)=>(r[n]=function(){const a=t(this.$pinia),s=e[n];return typeof s=="function"?s.call(this,a):a[s]},r),{})}var I=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bK(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function vD(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var a=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return t[n]}})}),r}var wD={};let m2=class{constructor(){return Qde||this}equals(e){return e&&this.termType===e.termType}};Object.defineProperty(m2.prototype,"value",{enumerable:!0,value:"*"});Object.defineProperty(m2.prototype,"termType",{enumerable:!0,value:"Wildcard"});var Qde=new m2;wD.Wildcard=m2;var zde=function(){var t=function(Be,je,He,Xe){for(He=He||{},Xe=Be.length;Xe--;He[Be[Xe]]=je);return He},e=[6,12,13,15,16,24,32,36,41,45,100,110,113,115,116,123,126,131,197,224,229,308,329,330,331,332,333],r=[2,247],n=[100,110,113,115,116,123,126,131,329,330,331,332,333],a=[2,409],s=[1,18],o=[1,27],u=[13,16,45,197,224,229,308],c=[28,29,53],l=[28,53],d=[1,42],f=[1,45],h=[1,41],p=[1,44],m=[123,126],y=[1,67],g=[39,45,87],b=[13,16,45,197,224,308],v=[1,87],_=[2,281],w=[1,86],E=[13,16,45,82,87,89,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312],O=[6,28,29,53,63,70,73,81,83,85],L=[6,13,16,28,29,53,63,70,73,81,83,85,87,308],F=[6,13,16,28,29,45,53,63,70,73,81,82,83,85,87,89,197,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314],x=[6,13,16,28,29,31,39,45,47,48,53,63,70,73,81,82,83,85,87,89,109,112,121,123,126,128,159,160,161,163,164,174,193,197,224,229,231,232,242,246,250,263,265,272,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314,317,318,335,337,338,340,341,342,343,344,345,346],P=[13,16,308],j=[112,132,327,334],N=[13,16,112,132,308],V=[1,111],$=[1,117],q=[112,132,327,328,334],H=[13,16,112,132,308,328],X=[28,29,45,53,87],Y=[1,138],he=[1,151],Te=[1,128],Ne=[1,127],$e=[1,129],de=[1,140],ce=[1,141],xe=[1,142],Pe=[1,143],we=[1,144],Re=[1,145],Se=[1,147],z=[1,148],M=[2,457],k=[1,158],T=[1,159],R=[1,160],U=[1,152],G=[1,153],Q=[1,156],Z=[1,171],se=[1,172],re=[1,173],le=[1,174],pe=[1,175],_e=[1,176],Ie=[1,167],Ee=[1,168],Me=[1,169],Ce=[1,170],ke=[1,157],qe=[1,166],W=[1,161],D=[1,162],B=[1,163],K=[1,164],ne=[1,165],fe=[6,13,16,29,31,45,82,85,87,89,112,159,160,161,163,164,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335],ge=[1,195],Le=[6,31,73,81,83,85],ee=[2,285],Oe=[1,199],De=[1,201],Ue=[6,31,70,73,81,83,85],Ye=[2,283],ut=[1,207],at=[1,218],ct=[1,223],ht=[1,219],te=[1,225],S=[1,226],A=[1,224],C=[6,63,70,73,81,83,85],J=[1,236],ie=[2,334],be=[1,243],ve=[1,241],Fe=[6,193],Je=[2,349],lt=[2,339],rt=[28,128],Qe=[47,48,193,272],di=[47,48,193,242,272],tt=[47,48,193,242,246,272],$r=[47,48,193,242,246,250,263,265,272,290,297,298,299,300,301,302,341,342,343,344,345,346],Xt=[39,47,48,193,242,246,250,263,265,272,290,297,298,299,300,301,302,338,341,342,343,344,345,346],Gt=[1,271],Nr=[1,270],Ct=[6,13,16,29,31,39,45,47,48,70,73,76,78,81,82,83,85,87,89,112,159,160,161,163,164,193,231,242,246,250,263,265,268,269,270,271,272,273,274,276,277,279,280,283,285,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335,338,341,342,343,344,345,346,347,348,349,350,351],zi=[1,281],Ai=[1,280],or=[13,16,29,31,39,45,47,48,82,85,87,89,112,159,160,161,163,164,174,193,197,224,229,231,232,242,246,250,263,265,272,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314,317,318,335,338,341,342,343,344,345,346],xs=[45,89],xo=[13,16,29,31,39,45,47,48,82,85,87,89,112,159,160,161,163,164,174,193,197,224,229,231,232,242,246,250,263,265,272,290,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314,317,318,335,338,341,342,343,344,345,346],Vr=[13,16,31,82,174,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312],fi=[31,89],on=[48,87],Oi=[6,13,16,45,48,82,87,89,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,337,338],un=[6,13,16,39,45,48,82,87,89,231,263,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,337,338,340],_a=[1,313],Zr=[6,85],Va=[6,31,81,83,85],ba=[2,361],Un=[2,353],Pn=[1,343],Io=[31,112,335],va=[13,16,29,31,45,48,82,85,87,89,112,159,160,161,163,164,193,197,224,229,231,232,272,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,317,318,335],wl=[13,16,29,31,45,48,82,85,87,89,112,159,160,161,163,164,193,197,224,229,231,232,272,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314,317,318,335],ue=[6,109,193],ye=[31,112],Ae=[13,16,45,82,87,224,263,265,268,269,270,271,273,274,276,277,279,280,283,285,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312,346,347,348,349,350,351],Ze=[1,390],it=[1,391],ot=[13,16,87,197,308,314],Nt=[13,16,39,45,82,87,224,263,265,268,269,270,271,273,274,276,277,279,280,283,285,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312,346,347,348,349,350,351],Vt=[1,417],ir=[1,418],Dr=[13,16,48,197,229,308],Zt=[6,31,85],br=[6,13,16,31,45,73,81,83,85,268,269,270,271,273,274,276,277,279,280,283,285,308,346,347,348,349,350,351],kn=[6,13,16,29,31,45,73,76,78,81,82,83,85,87,89,112,159,160,161,163,164,231,268,269,270,271,273,274,276,277,279,280,283,285,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335,346,347,348,349,350,351],Nn=[29,31,85,112,159,160,161,163,164],gn=[1,443],Vn=[1,444],wa=[1,449],pn=[31,112,193,232,318,335],Is=[13,16,45,48,82,87,89,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312],Bu=[13,16,31,45,48,82,87,89,112,193,231,232,272,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,317,318,335],qu=[13,16,29,31,45,48,82,85,87,89,112,159,160,161,163,164,193,231,232,272,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,317,318,335],Yt=[13,16,31,48,82,174,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312],yn=[31,45],Ps=[1,507],Po=[1,508],k1=[6,13,16,29,31,39,45,47,48,63,70,73,76,78,81,82,83,85,87,89,112,159,160,161,163,164,193,231,242,246,250,263,265,268,269,270,271,272,273,274,276,277,279,280,283,285,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335,336,338,341,342,343,344,345,346,347,348,349,350,351],V1=[29,31,85,112,159,160,161,163,164,335],$u=[6,13,16,31,45,70,73,81,83,85,87,268,269,270,271,273,274,276,277,279,280,283,285,308,346,347,348,349,350,351],I4=[13,16,31,45,48,82,87,89,112,193,197,231,232,272,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,317,318,335],P4=[2,352],ZT=[13,16,197,308,314],N4=[1,565],Sl=[6,13,16,31,45,76,78,81,83,85,87,268,269,270,271,273,274,276,277,279,280,283,285,308,346,347,348,349,350,351],D4=[13,16,29,31,45,82,85,87,89,112,159,160,161,163,164,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312],Ns=[13,16,29,31,45,82,85,87,89,112,159,160,161,163,164,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335],C4=[13,16,87,308],Ds=[2,364],Tl=[29,31,85,112,159,160,161,163,164,193,232,318,335],H1=[31,112,193,232,272,318,335],Cs=[2,359],L4=[13,16,48,82,174,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312],Q1=[29,31,85,112,159,160,161,163,164,193,232,272,318,335],j4=[13,16,31,45,82,87,89,112,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312],M4=[2,347],eE={trace:function(){},yy:{},symbols_:{error:2,QueryOrUpdate:3,Prologue:4,QueryOrUpdate_group0:5,EOF:6,Query:7,Qry:8,Query_option0:9,Prologue_repetition0:10,BaseDecl:11,BASE:12,IRIREF:13,PrefixDecl:14,PREFIX:15,PNAME_NS:16,SelectClauseWildcard:17,Qry_repetition0:18,WhereClause:19,SolutionModifierNoGroup:20,SelectClauseVars:21,Qry_repetition1:22,SolutionModifier:23,CONSTRUCT:24,ConstructTemplate:25,Qry_repetition2:26,Qry_repetition3:27,WHERE:28,"{":29,Qry_option0:30,"}":31,DESCRIBE:32,Qry_group0:33,Qry_repetition4:34,Qry_option1:35,ASK:36,Qry_repetition5:37,SelectClauseBase:38,"*":39,SelectClauseVars_repetition_plus0:40,SELECT:41,SelectClauseBase_option0:42,SelectClauseItem:43,Var:44,"(":45,Expression:46,AS:47,")":48,SubSelect:49,SubSelect_option0:50,SubSelect_option1:51,DatasetClause:52,FROM:53,DatasetClause_option0:54,iri:55,WhereClause_option0:56,GroupGraphPattern:57,SolutionModifier_option0:58,SolutionModifierNoGroup_option0:59,SolutionModifierNoGroup_option1:60,SolutionModifierNoGroup_option2:61,GroupClause:62,GROUP:63,BY:64,GroupClause_repetition_plus0:65,GroupCondition:66,BuiltInCall:67,FunctionCall:68,HavingClause:69,HAVING:70,HavingClause_repetition_plus0:71,OrderClause:72,ORDER:73,OrderClause_repetition_plus0:74,OrderCondition:75,ASC:76,BrackettedExpression:77,DESC:78,Constraint:79,LimitOffsetClauses:80,LIMIT:81,INTEGER:82,OFFSET:83,ValuesClause:84,VALUES:85,InlineData:86,VAR:87,InlineData_repetition0:88,NIL:89,InlineData_repetition1:90,InlineData_repetition_plus2:91,InlineData_repetition3:92,DataBlock:93,DataBlockValueList:94,DataBlockValueList_repetition_plus0:95,Update:96,Update_repetition0:97,Update1:98,Update_option0:99,LOAD:100,Update1_option0:101,Update1_option1:102,Update1_group0:103,Update1_option2:104,GraphRefAll:105,Update1_group1:106,Update1_option3:107,GraphOrDefault:108,TO:109,CREATE:110,Update1_option4:111,GRAPH:112,INSERTDATA:113,QuadPattern:114,DELETEDATA:115,DELETEWHERE:116,Update1_option5:117,InsertDeleteClause:118,Update1_repetition0:119,IntoGraphClause:120,INTO:121,GraphRef:122,DELETE:123,InsertDeleteClause_option0:124,InsertClause:125,INSERT:126,UsingClause:127,USING:128,UsingClause_option0:129,WithClause:130,WITH:131,DEFAULT:132,GraphOrDefault_option0:133,GraphRefAll_group0:134,Quads:135,Quads_option0:136,Quads_repetition0:137,QuadsNotTriples:138,VarOrIri:139,QuadsNotTriples_option0:140,QuadsNotTriples_option1:141,QuadsNotTriples_option2:142,TriplesTemplate:143,TriplesTemplate_repetition0:144,TriplesSameSubject:145,TriplesTemplate_option0:146,GroupGraphPatternSub:147,GroupGraphPatternSub_option0:148,GroupGraphPatternSub_repetition0:149,GroupGraphPatternSubTail:150,GraphPatternNotTriples:151,GroupGraphPatternSubTail_option0:152,GroupGraphPatternSubTail_option1:153,TriplesBlock:154,TriplesBlock_repetition0:155,TriplesSameSubjectPath:156,TriplesBlock_option0:157,GroupOrUnionGraphPattern:158,OPTIONAL:159,MINUS:160,SERVICE:161,GraphPatternNotTriples_option0:162,FILTER:163,BIND:164,InlineDataOneVar:165,InlineDataFull:166,InlineDataOneVar_repetition0:167,InlineDataFull_repetition0:168,InlineDataFull_repetition_plus1:169,InlineDataFull_repetition2:170,DataBlockValue:171,Literal:172,QuotedTriple:173,UNDEF:174,GroupOrUnionGraphPattern_repetition0:175,ArgList:176,ArgList_option0:177,ArgList_repetition0:178,ExpressionList:179,ExpressionList_repetition0:180,ConstructTemplate_option0:181,ConstructTriples:182,ConstructTriples_repetition0:183,ConstructTriples_option0:184,VarOrTermOrQuotedTP:185,PropertyListNotEmpty:186,TriplesNode:187,PropertyList:188,PropertyList_option0:189,VerbObjectList:190,PropertyListNotEmpty_repetition0:191,SemiOptionalVerbObjectList:192,";":193,SemiOptionalVerbObjectList_option0:194,Verb:195,ObjectList:196,a:197,ObjectList_repetition0:198,Object:199,GraphNode:200,Object_option0:201,PropertyListPathNotEmpty:202,TriplesNodePath:203,TriplesSameSubjectPath_option0:204,O:205,PropertyListPathNotEmpty_repetition0:206,PropertyListPathNotEmptyTail:207,O_group0:208,ObjectListPath:209,ObjectListPath_repetition0:210,ObjectPath:211,GraphNodePath:212,ObjectPath_option0:213,Path:214,Path_repetition0:215,PathSequence:216,PathSequence_repetition0:217,PathEltOrInverse:218,PathElt:219,PathPrimary:220,PathElt_option0:221,PathEltOrInverse_option0:222,IriOrA:223,"!":224,PathNegatedPropertySet:225,PathOneInPropertySet:226,PathNegatedPropertySet_repetition0:227,PathNegatedPropertySet_option0:228,"^":229,TriplesNode_repetition_plus0:230,"[":231,"]":232,TriplesNodePath_repetition_plus0:233,VarOrTermOrQuotedTPExpr:234,VarOrTerm:235,GraphTerm:236,BlankNode:237,ConditionalOrExpression:238,ConditionalAndExpression:239,ConditionalOrExpression_repetition0:240,ConditionalOrExpressionTail:241,"||":242,RelationalExpression:243,ConditionalAndExpression_repetition0:244,ConditionalAndExpressionTail:245,"&&":246,NumericExpression:247,RelationalExpression_group0:248,RelationalExpression_option0:249,IN:250,MultiplicativeExpression:251,NumericExpression_repetition0:252,AdditiveExpressionTail:253,AdditiveExpressionTail_group0:254,NumericLiteralPositive:255,AdditiveExpressionTail_repetition0:256,NumericLiteralNegative:257,AdditiveExpressionTail_repetition1:258,UnaryExpression:259,MultiplicativeExpression_repetition0:260,MultiplicativeExpressionTail:261,MultiplicativeExpressionTail_group0:262,"+":263,PrimaryExpression:264,"-":265,ExprQuotedTP:266,Aggregate:267,FUNC_ARITY0:268,FUNC_ARITY1:269,FUNC_ARITY1_SPARQL_STAR:270,FUNC_ARITY2:271,",":272,FUNC_ARITY3:273,FUNC_ARITY3_SPARQL_STAR:274,BuiltInCall_group0:275,BOUND:276,BNODE:277,BuiltInCall_option0:278,EXISTS:279,COUNT:280,Aggregate_option0:281,Aggregate_group0:282,FUNC_AGGREGATE:283,Aggregate_option1:284,GROUP_CONCAT:285,Aggregate_option2:286,Aggregate_option3:287,GroupConcatSeparator:288,SEPARATOR:289,"=":290,String:291,LANGTAG:292,"^^":293,DECIMAL:294,DOUBLE:295,BOOLEAN:296,INTEGER_POSITIVE:297,DECIMAL_POSITIVE:298,DOUBLE_POSITIVE:299,INTEGER_NEGATIVE:300,DECIMAL_NEGATIVE:301,DOUBLE_NEGATIVE:302,STRING_LITERAL1:303,STRING_LITERAL2:304,STRING_LITERAL_LONG1:305,STRING_LITERAL_LONG2:306,PrefixedName:307,PNAME_LN:308,BLANK_NODE_LABEL:309,ANON:310,QuotedTP:311,"<<":312,qtSubjectOrObject:313,">>":314,DataValueTerm:315,AnnotationPattern:316,"{|":317,"|}":318,AnnotationPatternPath:319,ExprVarOrTerm:320,QueryOrUpdate_group0_option0:321,Prologue_repetition0_group0:322,Qry_group0_repetition_plus0:323,SelectClauseBase_option0_group0:324,DISTINCT:325,REDUCED:326,NAMED:327,SILENT:328,CLEAR:329,DROP:330,ADD:331,MOVE:332,COPY:333,ALL:334,".":335,UNION:336,"|":337,"/":338,PathElt_option0_group0:339,"?":340,"!=":341,"<":342,">":343,"<=":344,">=":345,NOT:346,CONCAT:347,COALESCE:348,SUBSTR:349,REGEX:350,REPLACE:351,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",12:"BASE",13:"IRIREF",15:"PREFIX",16:"PNAME_NS",24:"CONSTRUCT",28:"WHERE",29:"{",31:"}",32:"DESCRIBE",36:"ASK",39:"*",41:"SELECT",45:"(",47:"AS",48:")",53:"FROM",63:"GROUP",64:"BY",70:"HAVING",73:"ORDER",76:"ASC",78:"DESC",81:"LIMIT",82:"INTEGER",83:"OFFSET",85:"VALUES",87:"VAR",89:"NIL",100:"LOAD",109:"TO",110:"CREATE",112:"GRAPH",113:"INSERTDATA",115:"DELETEDATA",116:"DELETEWHERE",121:"INTO",123:"DELETE",126:"INSERT",128:"USING",131:"WITH",132:"DEFAULT",159:"OPTIONAL",160:"MINUS",161:"SERVICE",163:"FILTER",164:"BIND",174:"UNDEF",193:";",197:"a",224:"!",229:"^",231:"[",232:"]",242:"||",246:"&&",250:"IN",263:"+",265:"-",268:"FUNC_ARITY0",269:"FUNC_ARITY1",270:"FUNC_ARITY1_SPARQL_STAR",271:"FUNC_ARITY2",272:",",273:"FUNC_ARITY3",274:"FUNC_ARITY3_SPARQL_STAR",276:"BOUND",277:"BNODE",279:"EXISTS",280:"COUNT",283:"FUNC_AGGREGATE",285:"GROUP_CONCAT",289:"SEPARATOR",290:"=",292:"LANGTAG",293:"^^",294:"DECIMAL",295:"DOUBLE",296:"BOOLEAN",297:"INTEGER_POSITIVE",298:"DECIMAL_POSITIVE",299:"DOUBLE_POSITIVE",300:"INTEGER_NEGATIVE",301:"DECIMAL_NEGATIVE",302:"DOUBLE_NEGATIVE",303:"STRING_LITERAL1",304:"STRING_LITERAL2",305:"STRING_LITERAL_LONG1",306:"STRING_LITERAL_LONG2",308:"PNAME_LN",309:"BLANK_NODE_LABEL",310:"ANON",312:"<<",314:">>",317:"{|",318:"|}",325:"DISTINCT",326:"REDUCED",327:"NAMED",328:"SILENT",329:"CLEAR",330:"DROP",331:"ADD",332:"MOVE",333:"COPY",334:"ALL",335:".",336:"UNION",337:"|",338:"/",340:"?",341:"!=",342:"<",343:">",344:"<=",345:">=",346:"NOT",347:"CONCAT",348:"COALESCE",349:"SUBSTR",350:"REGEX",351:"REPLACE"},productions_:[0,[3,3],[7,2],[4,1],[11,2],[14,3],[8,4],[8,4],[8,5],[8,7],[8,5],[8,4],[17,2],[21,2],[38,2],[43,1],[43,5],[49,4],[49,4],[52,3],[19,2],[23,2],[20,3],[62,3],[66,1],[66,1],[66,3],[66,5],[66,1],[69,2],[72,3],[75,2],[75,2],[75,1],[75,1],[80,2],[80,2],[80,4],[80,4],[84,2],[86,4],[86,4],[86,6],[86,2],[94,3],[96,3],[98,4],[98,3],[98,5],[98,4],[98,2],[98,2],[98,2],[98,5],[120,2],[118,3],[118,1],[125,2],[127,3],[130,2],[108,1],[108,2],[122,2],[105,1],[105,1],[114,3],[135,2],[138,7],[143,3],[57,3],[57,3],[147,2],[150,3],[154,3],[151,1],[151,2],[151,2],[151,3],[151,4],[151,2],[151,6],[151,1],[93,1],[93,1],[165,4],[166,4],[166,6],[171,1],[171,1],[171,1],[171,1],[158,2],[79,1],[79,1],[79,1],[68,2],[176,1],[176,5],[179,1],[179,4],[25,3],[182,3],[145,2],[145,2],[188,1],[186,2],[192,2],[190,2],[195,1],[195,1],[196,2],[199,2],[156,2],[156,2],[202,2],[207,1],[207,2],[205,2],[209,2],[211,2],[214,2],[216,2],[219,2],[218,2],[220,1],[220,2],[220,3],[225,1],[225,1],[225,4],[226,1],[226,2],[187,3],[187,3],[203,3],[203,3],[200,1],[200,1],[212,1],[212,1],[234,1],[235,1],[235,1],[139,1],[139,1],[44,1],[236,1],[236,1],[236,1],[236,1],[46,1],[238,2],[241,2],[239,2],[245,2],[243,1],[243,3],[243,4],[247,2],[253,2],[253,2],[253,2],[251,2],[261,2],[259,2],[259,2],[259,2],[259,1],[264,1],[264,1],[264,1],[264,1],[264,1],[264,1],[264,1],[77,3],[67,1],[67,2],[67,4],[67,4],[67,6],[67,8],[67,8],[67,2],[67,4],[67,2],[67,4],[67,3],[267,5],[267,5],[267,6],[288,4],[172,1],[172,2],[172,3],[172,1],[172,1],[172,1],[172,1],[172,1],[172,1],[255,1],[255,1],[255,1],[257,1],[257,1],[257,1],[291,1],[291,1],[291,1],[291,1],[55,1],[55,1],[307,1],[307,1],[237,1],[237,1],[311,5],[173,5],[313,1],[313,1],[313,1],[313,1],[313,1],[315,1],[315,1],[315,1],[185,1],[185,1],[185,1],[316,3],[319,3],[266,5],[320,1],[320,1],[320,1],[223,1],[223,1],[321,0],[321,1],[5,1],[5,1],[5,1],[9,0],[9,1],[322,1],[322,1],[10,0],[10,2],[18,0],[18,2],[22,0],[22,2],[26,0],[26,2],[27,0],[27,2],[30,0],[30,1],[323,1],[323,2],[33,1],[33,1],[34,0],[34,2],[35,0],[35,1],[37,0],[37,2],[40,1],[40,2],[324,1],[324,1],[42,0],[42,1],[50,0],[50,1],[51,0],[51,1],[54,0],[54,1],[56,0],[56,1],[58,0],[58,1],[59,0],[59,1],[60,0],[60,1],[61,0],[61,1],[65,1],[65,2],[71,1],[71,2],[74,1],[74,2],[88,0],[88,2],[90,0],[90,2],[91,1],[91,2],[92,0],[92,2],[95,1],[95,2],[97,0],[97,4],[99,0],[99,2],[101,0],[101,1],[102,0],[102,1],[103,1],[103,1],[104,0],[104,1],[106,1],[106,1],[106,1],[107,0],[107,1],[111,0],[111,1],[117,0],[117,1],[119,0],[119,2],[124,0],[124,1],[129,0],[129,1],[133,0],[133,1],[134,1],[134,1],[134,1],[136,0],[136,1],[137,0],[137,2],[140,0],[140,1],[141,0],[141,1],[142,0],[142,1],[144,0],[144,3],[146,0],[146,1],[148,0],[148,1],[149,0],[149,2],[152,0],[152,1],[153,0],[153,1],[155,0],[155,3],[157,0],[157,1],[162,0],[162,1],[167,0],[167,2],[168,0],[168,2],[169,1],[169,2],[170,0],[170,2],[175,0],[175,3],[177,0],[177,1],[178,0],[178,3],[180,0],[180,3],[181,0],[181,1],[183,0],[183,3],[184,0],[184,1],[189,0],[189,1],[191,0],[191,2],[194,0],[194,1],[198,0],[198,3],[201,0],[201,1],[204,0],[204,1],[206,0],[206,2],[208,1],[208,1],[210,0],[210,3],[213,0],[213,1],[215,0],[215,3],[217,0],[217,3],[339,1],[339,1],[339,1],[221,0],[221,1],[222,0],[222,1],[227,0],[227,3],[228,0],[228,1],[230,1],[230,2],[233,1],[233,2],[240,0],[240,2],[244,0],[244,2],[248,1],[248,1],[248,1],[248,1],[248,1],[248,1],[249,0],[249,1],[252,0],[252,2],[254,1],[254,1],[256,0],[256,2],[258,0],[258,2],[260,0],[260,2],[262,1],[262,1],[275,1],[275,1],[275,1],[275,1],[275,1],[278,0],[278,1],[281,0],[281,1],[282,1],[282,1],[284,0],[284,1],[286,0],[286,1],[287,0],[287,1]],performAction:function(je,He,Xe,yt,bt,ae,Ri){var oe=ae.length-1;switch(bt){case 1:if(ae[oe-1]=ae[oe-1]||{},Bt.base&&(ae[oe-1].base=Bt.base),Bt.base="",ae[oe-1].prefixes=Bt.prefixes,Bt.prefixes=null,Bt.pathOnly){if(ae[oe-1].type==="path"||"termType"in ae[oe-1])return ae[oe-1];throw new Error("Received full SPARQL query in path only mode")}else if(ae[oe-1].type==="path"||"termType"in ae[oe-1])throw new Error("Received only path in full SPARQL mode");if(ae[oe-1].type==="update"){const Ft={};for(const er of ae[oe-1].updates)if(er.updateType==="insert"){const Dt={};for(const bn of er.insert)if(bn.type==="bgp"||bn.type==="graph")for(const vn of bn.triples)vn.subject.termType==="BlankNode"&&(Dt[vn.subject.value]=!0),vn.predicate.termType==="BlankNode"&&(Dt[vn.predicate.value]=!0),vn.object.termType==="BlankNode"&&(Dt[vn.object.value]=!0);for(const bn of Object.keys(Dt)){if(Ft[bn])throw new Error("Detected reuse blank node across different INSERT DATA clauses");Ft[bn]=!0}}}return ae[oe-1];case 2:this.$={...ae[oe-1],...ae[oe],type:"query"};break;case 4:Bt.base=kf(ae[oe]);break;case 5:Bt.prefixes||(Bt.prefixes={}),ae[oe-1]=ae[oe-1].substr(0,ae[oe-1].length-1),ae[oe]=kf(ae[oe]),Bt.prefixes[ae[oe-1]]=ae[oe];break;case 6:this.$={...ae[oe-3],...Vu(ae[oe-2]),...ae[oe-1],...ae[oe]};break;case 7:if(!Bt.skipValidation&&(uE(ae[oe-3].variables.map(er=>oE(er.expression))).some(er=>er.aggregation==="count"&&!(er.expression instanceof z1))||ae[oe].group)){for(const er of ae[oe-3].variables)if(er.termType==="Variable"){if(!ae[oe].group||!ae[oe].group.map(Dt=>xl(Dt)).includes(xl(er)))throw Error("Projection of ungrouped variable (?"+xl(er)+")")}else if(oE(er.expression).length===0){const Dt=yre(er.expression);for(const bn of Dt)if(!ae[oe].group||!ae[oe].group.map||!ae[oe].group.map(vn=>xl(vn)).includes(xl(bn)))throw Error("Use of ungrouped variable in projection of operation (?"+xl(bn)+")")}}const Il=ae[oe-1].where.filter(Ft=>Ft.type==="query");if(Il.length>0){const Ft=ae[oe-3].variables.filter(Dt=>Dt.variable&&Dt.variable.value).map(Dt=>Dt.variable.value),er=uE(Il.map(Dt=>Dt.variables)).map(Dt=>Dt.value||Dt.variable.value);for(const Dt of Ft)if(er.indexOf(Dt)>=0)throw Error("Target id of 'AS' (?"+Dt+") already used in subquery")}this.$=Hr(ae[oe-3],Vu(ae[oe-2]),ae[oe-1],ae[oe]);break;case 8:this.$=Hr({queryType:"CONSTRUCT",template:ae[oe-3]},Vu(ae[oe-2]),ae[oe-1],ae[oe]);break;case 9:this.$=Hr({queryType:"CONSTRUCT",template:ae[oe-2]=ae[oe-2]?ae[oe-2].triples:[]},Vu(ae[oe-5]),{where:[{type:"bgp",triples:El([],ae[oe-2])}]},ae[oe]);break;case 10:this.$=Hr({queryType:"DESCRIBE",variables:ae[oe-3]==="*"?[new z1]:ae[oe-3]},Vu(ae[oe-2]),ae[oe-1],ae[oe]);break;case 11:this.$=Hr({queryType:"ASK"},Vu(ae[oe-2]),ae[oe-1],ae[oe]);break;case 12:this.$=Hr(ae[oe-1],{variables:[new z1]});break;case 13:const fE=ae[oe].map(Ft=>Ft.value||Ft.variable.value),Y1=mre(fE);if(Y1.length>0)throw Error("Two or more of the resulting columns have the same name (?"+Y1[0]+")");this.$=Hr(ae[oe-1],{variables:ae[oe]});break;case 14:this.$=Hr({queryType:"SELECT"},ae[oe]&&(ae[oe-1]=Hn(ae[oe]),ae[oe]={},ae[oe][ae[oe-1]]=!0,ae[oe]));break;case 16:case 27:this.$=Al(ae[oe-3],{variable:ae[oe-1]});break;case 17:case 18:this.$=Hr(ae[oe-3],ae[oe-2],ae[oe-1],ae[oe],{type:"query"});break;case 19:case 58:this.$={iri:ae[oe],named:!!ae[oe-1]};break;case 20:this.$={where:ae[oe].patterns};break;case 21:this.$=Hr(ae[oe-1],ae[oe]);break;case 22:this.$=Hr(ae[oe-2],ae[oe-1],ae[oe]);break;case 23:this.$={group:ae[oe]};break;case 24:case 25:case 28:case 31:case 33:case 34:this.$=Al(ae[oe]);break;case 26:this.$=Al(ae[oe-1]);break;case 29:this.$={having:ae[oe]};break;case 30:this.$={order:ae[oe]};break;case 32:this.$=Al(ae[oe],{descending:!0});break;case 35:this.$={limit:Rl(ae[oe])};break;case 36:this.$={offset:Rl(ae[oe])};break;case 37:this.$={limit:Rl(ae[oe-2]),offset:Rl(ae[oe])};break;case 38:this.$={limit:Rl(ae[oe]),offset:Rl(ae[oe-2])};break;case 39:case 43:this.$={type:"values",values:ae[oe]};break;case 40:case 84:this.$=ae[oe-1].map(Ft=>({[ae[oe-3]]:Ft}));break;case 41:case 85:this.$=ae[oe-1].map(()=>({}));break;case 42:case 86:var No=ae[oe-4].length;ae[oe-4]=ae[oe-4].map(tE),this.$=ae[oe-1].map(function(Ft){if(Ft.length!==No)throw Error("Inconsistent VALUES length");for(var er={},Dt=0;Dter.type==="bind")){const er=ae[oe-1].indexOf(Ft),Dt=new Set;for(const bn of ae[oe-1].slice(0,er))(bn.type==="group"||bn.type==="bgp")&&Q4(bn).forEach(vn=>Dt.add(vn));if(Dt.has(Ft.variable.value))throw Error("Variable used to bind is already bound (?"+Ft.variable.value+")")}this.$={type:"group",patterns:ae[oe-1]};break;case 71:this.$=ae[oe-1]?Ha([ae[oe-1]],ae[oe]):Ha(ae[oe]);break;case 72:this.$=ae[oe]?[ae[oe-2],ae[oe]]:ae[oe-2];break;case 75:this.$=Hr(ae[oe],{type:"optional"});break;case 76:this.$=Hr(ae[oe],{type:"minus"});break;case 77:this.$=Hr(ae[oe],{type:"graph",name:ae[oe-1]});break;case 78:this.$=Hr(ae[oe],{type:"service",name:ae[oe-1],silent:!!ae[oe-2]});break;case 79:this.$={type:"filter",expression:ae[oe]};break;case 80:this.$={type:"bind",variable:ae[oe-1],expression:ae[oe-3]};break;case 89:this.$=Hf(ae[oe]);break;case 90:this.$=void 0;break;case 91:this.$=ae[oe-1].length?{type:"union",patterns:Ha(ae[oe-1].map(nE),[nE(ae[oe])])}:ae[oe];break;case 95:this.$={...ae[oe],function:ae[oe-1]};break;case 96:this.$={type:"functionCall",args:[]};break;case 97:this.$={type:"functionCall",args:ku(ae[oe-2],ae[oe-1]),distinct:!!ae[oe-3]};break;case 98:case 115:case 128:case 247:case 249:case 251:case 253:case 255:case 263:case 267:case 297:case 299:case 303:case 307:case 328:case 341:case 349:case 355:case 361:case 367:case 369:case 373:case 375:case 379:case 381:case 385:case 391:case 395:case 401:case 405:case 409:case 411:case 420:case 428:case 430:case 440:case 444:case 446:case 448:this.$=[];break;case 99:this.$=ku(ae[oe-2],ae[oe-1]);break;case 101:this.$=Ha(ae[oe-2],[ae[oe-1]]);break;case 102:case 112:this.$=lE(ae[oe].map(Ft=>Hr(Ls(ae[oe-1]),Ft)));break;case 103:this.$=lE(El(ae[oe].map(Ft=>Hr(Ls(ae[oe-1].entity),Ft)),ae[oe-1].triples));break;case 105:this.$=Ha([ae[oe-1]],ae[oe]);break;case 106:this.$=Ha(ae[oe]);break;case 107:this.$=sE(ae[oe-1],ae[oe]);break;case 109:case 237:this.$=Bt.factory.namedNode(are);break;case 110:case 118:this.$=ku(ae[oe-1],ae[oe]);break;case 111:this.$=ae[oe]?{annotation:ae[oe],object:ae[oe-1]}:ae[oe-1];break;case 113:this.$=ae[oe]?lE(El(ae[oe].map(Ft=>Hr(Ls(ae[oe-1].entity),Ft)),ae[oe-1].triples)):ae[oe-1].triples;break;case 114:this.$=sE(...ae[oe-1],ae[oe]);break;case 116:this.$=sE(...ae[oe]);break;case 117:case 159:case 163:this.$=[ae[oe-1],ae[oe]];break;case 119:this.$=ae[oe]?{object:ae[oe-1],annotation:ae[oe]}:ae[oe-1];break;case 120:this.$=ae[oe-1].length?Ol("|",ku(ae[oe-1],ae[oe])):ae[oe];break;case 121:this.$=ae[oe-1].length?Ol("/",ku(ae[oe-1],ae[oe])):ae[oe];break;case 122:this.$=ae[oe]?Ol(ae[oe],[ae[oe-1]]):ae[oe-1];break;case 123:this.$=ae[oe-1]?Ol(ae[oe-1],[ae[oe]]):ae[oe];break;case 125:case 131:this.$=Ol(ae[oe-1],[ae[oe]]);break;case 129:this.$=Ol("|",ku(ae[oe-2],ae[oe-1]));break;case 132:case 134:this.$=hre(ae[oe-1]);break;case 133:case 135:this.$=pre(ae[oe-1]);break;case 140:this.$={entity:ae[oe],triples:[]};break;case 145:this.$=tE(ae[oe]);break;case 149:this.$=Bt.factory.namedNode(F4);break;case 151:case 153:case 158:case 162:this.$=rE(ae[oe-1],ae[oe]);break;case 152:this.$=["||",ae[oe]];break;case 154:this.$=["&&",ae[oe]];break;case 156:this.$=_n(ae[oe-1],[ae[oe-2],ae[oe]]);break;case 157:this.$=_n(ae[oe-2]?"notin":"in",[ae[oe-3],ae[oe]]);break;case 160:this.$=["+",rE(ae[oe-1],ae[oe])];break;case 161:var J1=Qa(ae[oe-1].value.replace("-",""),ae[oe-1].datatype);this.$=["-",rE(J1,ae[oe])];break;case 164:this.$=_n("UPLUS",[ae[oe]]);break;case 165:this.$=_n(ae[oe-1],[ae[oe]]);break;case 166:this.$=_n("UMINUS",[ae[oe]]);break;case 177:this.$=_n(Hn(ae[oe-1]));break;case 178:this.$=_n(Hn(ae[oe-3]),[ae[oe-1]]);break;case 179:this.$=Hf(_n(Hn(ae[oe-3]),[ae[oe-1]]));break;case 180:this.$=_n(Hn(ae[oe-5]),[ae[oe-3],ae[oe-1]]);break;case 181:this.$=_n(Hn(ae[oe-7]),[ae[oe-5],ae[oe-3],ae[oe-1]]);break;case 182:this.$=Hf(_n(Hn(ae[oe-7]),[ae[oe-5],ae[oe-3],ae[oe-1]]));break;case 183:this.$=_n(Hn(ae[oe-1]),ae[oe]);break;case 184:this.$=_n("bound",[tE(ae[oe-1])]);break;case 185:this.$=_n(ae[oe-1],[]);break;case 186:this.$=_n(ae[oe-3],[ae[oe-1]]);break;case 187:this.$=_n(ae[oe-2]?"notexists":"exists",[nE(ae[oe])]);break;case 188:case 189:this.$=Al(ae[oe-1],{type:"aggregate",aggregation:Hn(ae[oe-4]),distinct:!!ae[oe-2]});break;case 190:this.$=Al(ae[oe-2],{type:"aggregate",aggregation:Hn(ae[oe-5]),distinct:!!ae[oe-3],separator:typeof ae[oe-1]=="string"?ae[oe-1]:" "});break;case 192:this.$=Qa(ae[oe]);break;case 193:this.$=cre(ae[oe-1],Hn(ae[oe].substr(1)));break;case 194:this.$=Qa(ae[oe-2],ae[oe]);break;case 195:case 204:this.$=Qa(ae[oe],B4);break;case 196:case 205:this.$=Qa(ae[oe],q4);break;case 197:case 206:this.$=Qa(Hn(ae[oe]),$4);break;case 200:this.$=Qa(ae[oe].toLowerCase(),ure);break;case 201:this.$=Qa(ae[oe].substr(1),B4);break;case 202:this.$=Qa(ae[oe].substr(1),q4);break;case 203:this.$=Qa(ae[oe].substr(1).toLowerCase(),$4);break;case 207:case 208:this.$=H4(ae[oe],1);break;case 209:case 210:this.$=H4(ae[oe],3);break;case 211:this.$=Bt.factory.namedNode(kf(ae[oe]));break;case 213:var X1=ae[oe].indexOf(":"),Qr=ae[oe].substr(0,X1),za=Bt.prefixes[Qr];if(!za)throw new Error("Unknown prefix: "+Qr);var Hu=kf(za+ae[oe].substr(X1+1));this.$=Bt.factory.namedNode(Hu);break;case 214:if(ae[oe]=ae[oe].substr(0,ae[oe].length-1),!(ae[oe]in Bt.prefixes))throw new Error("Unknown prefix: "+ae[oe]);var Hu=kf(Bt.prefixes[ae[oe]]);this.$=Bt.factory.namedNode(Hu);break;case 215:this.$=Vf(ae[oe].replace(/^(_:)/,""));break;case 216:this.$=Vf();break;case 217:case 218:case 232:this.$=Hf(iE(ae[oe-3],ae[oe-2],ae[oe-1]));break;case 230:case 231:this.$=Hf(ae[oe-1]);break;case 248:case 250:case 252:case 254:case 256:case 260:case 264:case 268:case 270:case 292:case 294:case 296:case 298:case 300:case 302:case 304:case 306:case 329:case 342:case 356:case 368:case 370:case 372:case 374:case 392:case 402:case 425:case 427:case 429:case 431:case 441:case 445:case 447:case 449:ae[oe-1].push(ae[oe]);break;case 259:case 269:case 291:case 293:case 295:case 301:case 305:case 371:case 424:case 426:this.$=[ae[oe]];break;case 308:ae[oe-3].push(ae[oe-2]);break;case 350:case 362:case 376:case 380:case 382:case 386:case 396:case 406:case 410:case 412:case 421:ae[oe-2].push(ae[oe-1]);break}},table:[t(e,r,{3:1,4:2,10:3}),{1:[3]},t(n,[2,307],{5:4,7:5,321:6,214:7,8:8,96:9,215:10,17:11,21:12,97:16,38:17,6:[2,238],13:a,16:a,45:a,197:a,224:a,229:a,308:a,24:[1,13],32:[1,14],36:[1,15],41:s}),t([6,13,16,24,32,36,41,45,100,110,113,115,116,123,126,131,197,224,229,308,329,330,331,332,333],[2,3],{322:19,11:20,14:21,12:[1,22],15:[1,23]}),{6:[1,24]},{6:[2,240]},{6:[2,241]},{6:[2,242]},{6:[2,243],9:25,84:26,85:o},{6:[2,239]},t(u,[2,411],{216:28,217:29}),t(c,[2,249],{18:30}),t(c,[2,251],{22:31}),t(l,[2,255],{25:32,27:33,29:[1,34]}),{13:d,16:f,33:35,39:[1,37],44:39,55:40,87:h,139:38,307:43,308:p,323:36},t(c,[2,267],{37:46}),t(m,[2,326],{98:47,103:49,106:50,117:55,130:61,100:[1,48],110:[1,51],113:[1,52],115:[1,53],116:[1,54],131:[1,62],329:[1,56],330:[1,57],331:[1,58],332:[1,59],333:[1,60]}),{39:[1,63],40:64,43:65,44:66,45:y,87:h},t(g,[2,273],{42:68,324:69,325:[1,70],326:[1,71]}),t(e,[2,248]),t(e,[2,245]),t(e,[2,246]),{13:[1,72]},{16:[1,73]},{1:[2,1]},{6:[2,2]},{6:[2,244]},{45:[1,77],85:[1,78],86:74,87:[1,75],89:[1,76]},t([6,13,16,45,48,82,87,89,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312],[2,120],{337:[1,79]}),t(b,[2,418],{218:80,222:81,229:[1,82]}),{19:83,28:v,29:_,52:84,53:w,56:85},{19:88,28:v,29:_,52:89,53:w,56:85},t(c,[2,253],{26:90}),{28:[1,91],52:92,53:w},t(E,[2,385],{181:93,182:94,183:95,31:[2,383]}),t(O,[2,263],{34:96}),t(O,[2,261],{44:39,55:40,307:43,139:97,13:d,16:f,87:h,308:p}),t(O,[2,262]),t(L,[2,259]),t(F,[2,143]),t(F,[2,144]),t([6,13,16,28,29,31,39,45,47,48,53,63,70,73,76,78,81,82,83,85,87,89,112,159,160,161,163,164,193,197,224,229,231,232,242,246,250,263,265,268,269,270,271,272,273,274,276,277,279,280,283,285,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314,317,318,335,338,341,342,343,344,345,346,347,348,349,350,351],[2,145]),t(x,[2,211]),t(x,[2,212]),t(x,[2,213]),t(x,[2,214]),{19:98,28:v,29:_,52:99,53:w,56:85},{6:[2,309],99:100,193:[1,101]},t(P,[2,311],{101:102,328:[1,103]}),t(j,[2,317],{104:104,328:[1,105]}),t(N,[2,322],{107:106,328:[1,107]}),{111:108,112:[2,324],328:[1,109]},{29:V,114:110},{29:V,114:112},{29:V,114:113},{118:114,123:[1,115],125:116,126:$},t(q,[2,315]),t(q,[2,316]),t(H,[2,319]),t(H,[2,320]),t(H,[2,321]),t(m,[2,327]),{13:d,16:f,55:118,307:43,308:p},t(c,[2,12]),t(c,[2,13],{44:66,43:119,45:y,87:h}),t(X,[2,269]),t(X,[2,15]),{13:d,16:f,44:136,45:Y,46:120,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},t(g,[2,14]),t(g,[2,274]),t(g,[2,271]),t(g,[2,272]),t(e,[2,4]),{13:[1,177]},t(fe,[2,39]),{29:[1,178]},{29:[1,179]},{87:[1,181],91:180},{45:[1,187],87:[1,185],89:[1,186],93:182,165:183,166:184},t(u,[2,410]),t([6,13,16,45,48,82,87,89,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,337],[2,121],{338:[1,188]}),{13:d,16:f,45:[1,193],55:194,197:ge,219:189,220:190,223:191,224:[1,192],307:43,308:p},t(b,[2,419]),t(Le,ee,{20:196,59:197,69:198,70:Oe}),t(c,[2,250]),{29:De,57:200},t(P,[2,279],{54:202,327:[1,203]}),{29:[2,282]},t(Ue,Ye,{23:204,58:205,62:206,63:ut}),t(c,[2,252]),{19:208,28:v,29:_,52:209,53:w,56:85},{29:[1,210]},t(l,[2,256]),{31:[1,211]},{31:[2,384]},{13:d,16:f,44:215,45:at,55:220,82:he,87:h,89:ct,145:212,172:221,185:213,187:214,231:ht,236:216,237:222,255:154,257:155,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,309:te,310:S,311:217,312:A},t(C,[2,265],{56:85,35:227,52:228,19:229,28:v,29:_,53:w}),t(L,[2,260]),t(Ue,Ye,{58:205,62:206,23:230,63:ut}),t(c,[2,268]),{6:[2,45]},t(e,r,{10:3,4:231}),{13:d,16:f,55:232,307:43,308:p},t(P,[2,312]),{105:233,112:J,122:234,132:[1,237],134:235,327:[1,238],334:[1,239]},t(j,[2,318]),t(P,ie,{108:240,133:242,112:be,132:ve}),t(N,[2,323]),{112:[1,244]},{112:[2,325]},t(Fe,[2,50]),t(E,Je,{135:245,136:246,143:247,144:248,31:lt,112:lt}),t(Fe,[2,51]),t(Fe,[2,52]),t(rt,[2,328],{119:249}),{29:V,114:250},t(rt,[2,56]),{29:V,114:251},t(m,[2,59]),t(X,[2,270]),{47:[1,252]},t(Qe,[2,150]),t(di,[2,428],{240:253}),t(tt,[2,430],{244:254}),t(tt,[2,155],{248:255,249:256,250:[2,438],290:[1,257],341:[1,258],342:[1,259],343:[1,260],344:[1,261],345:[1,262],346:[1,263]}),t($r,[2,440],{252:264}),t(Xt,[2,448],{260:265}),{13:d,16:f,44:136,45:Y,55:133,67:132,68:134,77:131,82:he,87:h,172:135,255:154,257:155,264:266,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},{13:d,16:f,44:136,45:Y,55:133,67:132,68:134,77:131,82:he,87:h,172:135,255:154,257:155,264:267,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},{13:d,16:f,44:136,45:Y,55:133,67:132,68:134,77:131,82:he,87:h,172:135,255:154,257:155,264:268,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},t(Xt,[2,167]),t(Xt,[2,168]),t(Xt,[2,169]),t(Xt,[2,170],{176:269,45:Gt,89:Nr}),t(Xt,[2,171]),t(Xt,[2,172]),t(Xt,[2,173]),t(Xt,[2,174]),{13:d,16:f,44:136,45:Y,46:272,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},t(Ct,[2,176]),{89:[1,273]},{45:[1,274]},{45:[1,275]},{45:[1,276]},{45:[1,277]},{45:[1,278]},{45:zi,89:Ai,179:279},{45:[1,282]},{45:[1,284],89:[1,283]},{279:[1,285]},t(or,[2,192],{292:[1,286],293:[1,287]}),t(or,[2,195]),t(or,[2,196]),t(or,[2,197]),t(or,[2,198]),t(or,[2,199]),t(or,[2,200]),{13:d,16:f,44:39,55:40,82:he,87:h,139:289,172:291,255:154,257:155,266:290,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,320:288},{45:[1,292]},{45:[1,293]},{45:[1,294]},t(xs,[2,452]),t(xs,[2,453]),t(xs,[2,454]),t(xs,[2,455]),t(xs,[2,456]),{279:[2,458]},t(xo,[2,207]),t(xo,[2,208]),t(xo,[2,209]),t(xo,[2,210]),t(or,[2,201]),t(or,[2,202]),t(or,[2,203]),t(or,[2,204]),t(or,[2,205]),t(or,[2,206]),t(e,[2,5]),t(Vr,[2,297],{88:295}),t(fi,[2,299],{90:296}),{48:[1,297],87:[1,298]},t(on,[2,301]),t(fe,[2,43]),t(fe,[2,82]),t(fe,[2,83]),{29:[1,299]},{29:[1,300]},{87:[1,302],169:301},t(u,[2,412]),t(Oi,[2,123]),t(Oi,[2,416],{221:303,339:304,39:[1,306],263:[1,307],340:[1,305]}),t(un,[2,124]),{13:d,16:f,45:[1,311],55:194,89:[1,310],197:ge,223:312,225:308,226:309,229:_a,307:43,308:p},t(u,a,{215:10,214:314}),t(un,[2,236]),t(un,[2,237]),t(Zr,[2,6]),t(Va,[2,287],{60:315,72:316,73:[1,317]}),t(Le,[2,286]),{13:d,16:f,45:Y,55:323,67:321,68:322,71:318,77:320,79:319,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,307:43,308:p,346:qe,347:W,348:D,349:B,350:K,351:ne},t([6,31,63,70,73,81,83,85],[2,20]),t(E,ba,{38:17,49:324,147:325,17:326,21:327,148:328,154:329,155:330,29:Un,31:Un,85:Un,112:Un,159:Un,160:Un,161:Un,163:Un,164:Un,41:s}),{13:d,16:f,55:331,307:43,308:p},t(P,[2,280]),t(Zr,[2,7]),t(Le,ee,{59:197,69:198,20:332,70:Oe}),t(Ue,[2,284]),{64:[1,333]},t(Ue,Ye,{58:205,62:206,23:334,63:ut}),t(c,[2,254]),t(E,Je,{144:248,30:335,143:336,31:[2,257]}),t(c,[2,100]),{31:[2,387],184:337,335:[1,338]},{13:d,16:f,44:39,55:40,87:h,139:342,186:339,190:340,195:341,197:Pn,307:43,308:p},t(Io,[2,389],{44:39,55:40,307:43,190:340,195:341,139:342,188:344,189:345,186:346,13:d,16:f,87:h,197:Pn,308:p}),t(va,[2,227]),t(va,[2,228]),t(va,[2,229]),{13:d,16:f,44:215,45:at,55:220,82:he,87:h,89:ct,172:221,185:351,187:350,200:348,230:347,231:ht,234:349,236:216,237:222,255:154,257:155,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,309:te,310:S,311:217,312:A},{13:d,16:f,44:39,55:40,87:h,139:342,186:352,190:340,195:341,197:Pn,307:43,308:p},t(va,[2,146]),t(va,[2,147]),t(va,[2,148]),t(va,[2,149]),{13:d,16:f,44:354,55:355,82:he,87:h,172:357,237:356,255:154,257:155,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,309:te,310:S,311:358,312:A,313:353},t(wl,[2,215]),t(wl,[2,216]),t(Ue,Ye,{58:205,62:206,23:359,63:ut}),t(O,[2,264]),t(C,[2,266]),t(Zr,[2,11]),t(n,[2,308],{6:[2,310]}),t(Fe,[2,313],{102:360,120:361,121:[1,362]}),t(Fe,[2,47]),t(Fe,[2,63]),t(Fe,[2,64]),{13:d,16:f,55:363,307:43,308:p},t(Fe,[2,336]),t(Fe,[2,337]),t(Fe,[2,338]),{109:[1,364]},t(ue,[2,60]),{13:d,16:f,55:365,307:43,308:p},t(P,[2,335]),{13:d,16:f,55:366,307:43,308:p},{31:[1,367]},t(ye,[2,341],{137:368}),t(ye,[2,340]),{13:d,16:f,44:215,45:at,55:220,82:he,87:h,89:ct,145:369,172:221,185:213,187:214,231:ht,236:216,237:222,255:154,257:155,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,309:te,310:S,311:217,312:A},{28:[1,370],127:371,128:[1,372]},t(rt,[2,330],{124:373,125:374,126:$}),t(rt,[2,57]),{44:375,87:h},t(Qe,[2,151],{241:376,242:[1,377]}),t(di,[2,153],{245:378,246:[1,379]}),{13:d,16:f,44:136,45:Y,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,247:380,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},{250:[1,381]},t(Ae,[2,432]),t(Ae,[2,433]),t(Ae,[2,434]),t(Ae,[2,435]),t(Ae,[2,436]),t(Ae,[2,437]),{250:[2,439]},t([47,48,193,242,246,250,272,290,341,342,343,344,345,346],[2,158],{253:382,254:383,255:384,257:385,263:[1,386],265:[1,387],297:Z,298:se,299:re,300:le,301:pe,302:_e}),t($r,[2,162],{261:388,262:389,39:Ze,338:it}),t(Xt,[2,164]),t(Xt,[2,165]),t(Xt,[2,166]),t(Ct,[2,95]),t(Ct,[2,96]),t(Ae,[2,377],{177:392,325:[1,393]}),{48:[1,394]},t(Ct,[2,177]),{13:d,16:f,44:136,45:Y,46:395,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},{13:d,16:f,44:136,45:Y,46:396,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},{13:d,16:f,44:136,45:Y,46:397,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},{13:d,16:f,44:136,45:Y,46:398,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},{13:d,16:f,44:136,45:Y,46:399,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},t(Ct,[2,183]),t(Ct,[2,98]),t(Ae,[2,381],{180:400}),{87:[1,401]},t(Ct,[2,185]),{13:d,16:f,44:136,45:Y,46:402,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},{29:De,57:403},t(or,[2,193]),{13:d,16:f,55:404,307:43,308:p},{13:d,16:f,44:39,55:40,87:h,139:342,195:405,197:Pn,307:43,308:p},t(ot,[2,233]),t(ot,[2,234]),t(ot,[2,235]),t(Nt,[2,459],{281:406,325:[1,407]}),t(Ae,[2,463],{284:408,325:[1,409]}),t(Ae,[2,465],{286:410,325:[1,411]}),{13:d,16:f,31:[1,412],55:414,82:he,171:413,172:415,173:416,174:Vt,255:154,257:155,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ir},{31:[1,419],89:[1,420]},{29:[1,421]},t(on,[2,302]),t(Vr,[2,367],{167:422}),t(fi,[2,369],{168:423}),{48:[1,424],87:[1,425]},t(on,[2,371]),t(Oi,[2,122]),t(Oi,[2,417]),t(Oi,[2,413]),t(Oi,[2,414]),t(Oi,[2,415]),t(un,[2,125]),t(un,[2,127]),t(un,[2,128]),t(Dr,[2,420],{227:426}),t(un,[2,130]),{13:d,16:f,55:194,197:ge,223:427,307:43,308:p},{48:[1,428]},t(Zt,[2,289],{61:429,80:430,81:[1,431],83:[1,432]}),t(Va,[2,288]),{64:[1,433]},t(Le,[2,29],{307:43,267:139,275:146,278:149,77:320,67:321,68:322,55:323,79:434,13:d,16:f,45:Y,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,276:Se,277:z,279:M,280:k,283:T,285:R,308:p,346:qe,347:W,348:D,349:B,350:K,351:ne}),t(br,[2,293]),t(kn,[2,92]),t(kn,[2,93]),t(kn,[2,94]),{45:Gt,89:Nr,176:269},{31:[1,435]},{31:[1,436]},{19:437,28:v,29:_,56:85},{19:438,28:v,29:_,56:85},t(Nn,[2,355],{149:439}),t(Nn,[2,354]),{13:d,16:f,44:215,45:gn,55:220,82:he,87:h,89:ct,156:440,172:221,185:441,203:442,231:Vn,236:216,237:222,255:154,257:155,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,309:te,310:S,311:217,312:A},t(O,[2,19]),t(Zt,[2,21]),{13:d,16:f,44:450,45:wa,55:323,65:445,66:446,67:447,68:448,87:h,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,307:43,308:p,346:qe,347:W,348:D,349:B,350:K,351:ne},t(Zr,[2,8]),{31:[1,451]},{31:[2,258]},{31:[2,101]},t(E,[2,386],{31:[2,388]}),t(Io,[2,102]),t(pn,[2,391],{191:452}),t(E,[2,395],{196:453,198:454}),t(E,[2,108]),t(E,[2,109]),t(Io,[2,103]),t(Io,[2,104]),t(Io,[2,390]),{13:d,16:f,44:215,45:at,48:[1,455],55:220,82:he,87:h,89:ct,172:221,185:351,187:350,200:456,231:ht,234:349,236:216,237:222,255:154,257:155,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,309:te,310:S,311:217,312:A},t(Is,[2,424]),t(Bu,[2,136]),t(Bu,[2,137]),t(qu,[2,140]),{232:[1,457]},{13:d,16:f,44:39,55:40,87:h,139:342,195:458,197:Pn,307:43,308:p},t(ot,[2,219]),t(ot,[2,220]),t(ot,[2,221]),t(ot,[2,222]),t(ot,[2,223]),t(Zr,[2,10]),t(Fe,[2,46]),t(Fe,[2,314]),{112:J,122:459},t(Fe,[2,62]),t(P,ie,{133:242,108:460,112:be,132:ve}),t(ue,[2,61]),t(Fe,[2,49]),t([6,28,126,128,193],[2,65]),{31:[2,66],112:[1,462],138:461},t(ye,[2,351],{146:463,335:[1,464]}),{29:De,57:465},t(rt,[2,329]),t(P,[2,332],{129:466,327:[1,467]}),t(rt,[2,55]),t(rt,[2,331]),{48:[1,468]},t(di,[2,429]),{13:d,16:f,44:136,45:Y,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,239:469,243:123,247:124,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},t(tt,[2,431]),{13:d,16:f,44:136,45:Y,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,243:470,247:124,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},t(tt,[2,156]),{45:zi,89:Ai,179:471},t($r,[2,441]),{13:d,16:f,44:136,45:Y,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,251:472,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},t(Xt,[2,444],{256:473}),t(Xt,[2,446],{258:474}),t(Ae,[2,442]),t(Ae,[2,443]),t(Xt,[2,449]),{13:d,16:f,44:136,45:Y,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,255:154,257:155,259:475,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},t(Ae,[2,450]),t(Ae,[2,451]),t(Ae,[2,379],{178:476}),t(Ae,[2,378]),t([6,13,16,29,31,39,45,47,48,73,76,78,81,82,83,85,87,89,112,159,160,161,163,164,193,231,242,246,250,263,265,268,269,270,271,272,273,274,276,277,279,280,283,285,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335,338,341,342,343,344,345,346,347,348,349,350,351],[2,175]),{48:[1,477]},{48:[1,478]},{272:[1,479]},{272:[1,480]},{272:[1,481]},{13:d,16:f,44:136,45:Y,46:482,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},{48:[1,483]},{48:[1,484]},t(Ct,[2,187]),t(or,[2,194]),{13:d,16:f,44:39,55:40,82:he,87:h,139:289,172:291,255:154,257:155,266:290,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,320:485},{13:d,16:f,39:[1,487],44:136,45:Y,46:488,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,282:486,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},t(Nt,[2,460]),{13:d,16:f,44:136,45:Y,46:489,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},t(Ae,[2,464]),{13:d,16:f,44:136,45:Y,46:490,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},t(Ae,[2,466]),t(fe,[2,40]),t(Vr,[2,298]),t(Yt,[2,87]),t(Yt,[2,88]),t(Yt,[2,89]),t(Yt,[2,90]),{13:d,16:f,55:492,82:he,172:493,255:154,257:155,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,311:494,312:A,315:491},t(fe,[2,41]),t(fi,[2,300]),t(yn,[2,303],{92:495}),{13:d,16:f,31:[1,496],55:414,82:he,171:497,172:415,173:416,174:Vt,255:154,257:155,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ir},{31:[1,498],89:[1,499]},{29:[1,500]},t(on,[2,372]),{13:d,16:f,48:[2,422],55:194,197:ge,223:312,226:502,228:501,229:_a,307:43,308:p},t(un,[2,131]),t(un,[2,126]),t(Zt,[2,22]),t(Zt,[2,290]),{82:[1,503]},{82:[1,504]},{13:d,16:f,44:510,45:Y,55:323,67:321,68:322,74:505,75:506,76:Ps,77:320,78:Po,79:509,87:h,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,307:43,308:p,346:qe,347:W,348:D,349:B,350:K,351:ne},t(br,[2,294]),t(k1,[2,69]),t(k1,[2,70]),t(Le,ee,{59:197,69:198,20:511,70:Oe}),t(Ue,Ye,{58:205,62:206,23:512,63:ut}),{29:[2,375],31:[2,71],84:522,85:o,112:[1,518],150:513,151:514,158:515,159:[1,516],160:[1,517],161:[1,519],163:[1,520],164:[1,521],175:523},t(Nn,[2,363],{157:524,335:[1,525]}),t(u,a,{215:10,202:526,205:527,208:528,214:529,44:530,87:h}),t(V1,[2,399],{215:10,205:527,208:528,214:529,44:530,204:531,202:532,13:a,16:a,45:a,197:a,224:a,229:a,308:a,87:h}),{13:d,16:f,44:215,45:gn,55:220,82:he,87:h,89:ct,172:221,185:351,203:536,212:534,231:Vn,233:533,234:535,236:216,237:222,255:154,257:155,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,309:te,310:S,311:217,312:A},t(u,a,{215:10,205:527,208:528,214:529,44:530,202:537,87:h}),t(Ue,[2,23],{307:43,267:139,275:146,278:149,55:323,67:447,68:448,44:450,66:538,13:d,16:f,45:wa,87:h,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,276:Se,277:z,279:M,280:k,283:T,285:R,308:p,346:qe,347:W,348:D,349:B,350:K,351:ne}),t($u,[2,291]),t($u,[2,24]),t($u,[2,25]),{13:d,16:f,44:136,45:Y,46:539,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},t($u,[2,28]),t(Ue,Ye,{58:205,62:206,23:540,63:ut}),t([31,112,232,318,335],[2,105],{192:541,193:[1,542]}),t(pn,[2,107]),{13:d,16:f,44:215,45:at,55:220,82:he,87:h,89:ct,172:221,185:351,187:350,199:543,200:544,231:ht,234:349,236:216,237:222,255:154,257:155,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,309:te,310:S,311:217,312:A},t(I4,[2,132]),t(Is,[2,425]),t(I4,[2,133]),{13:d,16:f,44:354,55:355,82:he,87:h,172:357,237:356,255:154,257:155,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,309:te,310:S,311:358,312:A,313:545},t(Fe,[2,54]),t(Fe,[2,48]),t(ye,[2,342]),{13:d,16:f,44:39,55:40,87:h,139:546,307:43,308:p},t(ye,[2,68]),t(E,[2,350],{31:P4,112:P4}),t(Fe,[2,53]),{13:d,16:f,55:547,307:43,308:p},t(P,[2,333]),t(X,[2,16]),t(di,[2,152]),t(tt,[2,154]),t(tt,[2,157]),t($r,[2,159]),t($r,[2,160],{262:389,261:548,39:Ze,338:it}),t($r,[2,161],{262:389,261:549,39:Ze,338:it}),t(Xt,[2,163]),{13:d,16:f,44:136,45:Y,46:550,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},t(Ct,[2,178]),t(Ct,[2,179]),{13:d,16:f,44:136,45:Y,46:551,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},{13:d,16:f,44:136,45:Y,46:552,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},{13:d,16:f,44:136,45:Y,46:553,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},{48:[1,554],272:[1,555]},t(Ct,[2,184]),t(Ct,[2,186]),{314:[1,556]},{48:[1,557]},{48:[2,461]},{48:[2,462]},{48:[1,558]},{48:[2,467],193:[1,561],287:559,288:560},{13:d,16:f,55:194,197:ge,223:562,307:43,308:p},t(ZT,[2,224]),t(ZT,[2,225]),t(ZT,[2,226]),{31:[1,563],45:N4,94:564},t(fe,[2,84]),t(Vr,[2,368]),t(fe,[2,85]),t(fi,[2,370]),t(yn,[2,373],{170:566}),{48:[1,567]},{48:[2,423],337:[1,568]},t(Zt,[2,35],{83:[1,569]}),t(Zt,[2,36],{81:[1,570]}),t(Va,[2,30],{307:43,267:139,275:146,278:149,77:320,67:321,68:322,55:323,79:509,44:510,75:571,13:d,16:f,45:Y,76:Ps,78:Po,87:h,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,276:Se,277:z,279:M,280:k,283:T,285:R,308:p,346:qe,347:W,348:D,349:B,350:K,351:ne}),t(Sl,[2,295]),{45:Y,77:572},{45:Y,77:573},t(Sl,[2,33]),t(Sl,[2,34]),{31:[2,275],50:574,84:575,85:o},{31:[2,277],51:576,84:577,85:o},t(Nn,[2,356]),t(D4,[2,357],{152:578,335:[1,579]}),t(Ns,[2,74]),{29:De,57:580},{29:De,57:581},{13:d,16:f,44:39,55:40,87:h,139:582,307:43,308:p},t(C4,[2,365],{162:583,328:[1,584]}),{13:d,16:f,45:Y,55:323,67:321,68:322,77:320,79:585,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,307:43,308:p,346:qe,347:W,348:D,349:B,350:K,351:ne},{45:[1,586]},t(Ns,[2,81]),{29:De,57:587},t(Nn,[2,73]),t(E,[2,362],{29:Ds,31:Ds,85:Ds,112:Ds,159:Ds,160:Ds,161:Ds,163:Ds,164:Ds}),t(V1,[2,112]),t(Tl,[2,401],{206:588}),t(E,[2,405],{209:589,210:590}),t(E,[2,403]),t(E,[2,404]),t(V1,[2,113]),t(V1,[2,400]),{13:d,16:f,44:215,45:gn,48:[1,591],55:220,82:he,87:h,89:ct,172:221,185:351,203:536,212:592,231:Vn,234:535,236:216,237:222,255:154,257:155,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,309:te,310:S,311:217,312:A},t(Is,[2,426]),t(qu,[2,138]),t(qu,[2,139]),{232:[1,593]},t($u,[2,292]),{47:[1,595],48:[1,594]},t(Zr,[2,9]),t(pn,[2,392]),t(pn,[2,393],{44:39,55:40,307:43,195:341,139:342,194:596,190:597,13:d,16:f,87:h,197:Pn,308:p}),t(pn,[2,110],{272:[1,598]}),t(H1,[2,397],{201:599,316:600,317:[1,601]}),{314:[1,602]},{29:[1,603]},t(rt,[2,58]),t(Xt,[2,445]),t(Xt,[2,447]),{48:[1,604],272:[1,605]},{48:[1,606]},{272:[1,607]},{272:[1,608]},t(Ct,[2,99]),t(Ae,[2,382]),t([13,16,39,47,48,87,193,197,242,246,250,263,265,272,290,297,298,299,300,301,302,308,314,338,341,342,343,344,345,346],[2,232]),t(Ct,[2,188]),t(Ct,[2,189]),{48:[1,609]},{48:[2,468]},{289:[1,610]},{13:d,16:f,55:492,82:he,172:493,255:154,257:155,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,311:494,312:A,315:611},t(fe,[2,42]),t(yn,[2,304]),{13:d,16:f,55:414,82:he,95:612,171:613,172:415,173:416,174:Vt,255:154,257:155,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ir},{31:[1,614],45:N4,94:615},t(un,[2,129]),t(Dr,[2,421]),{82:[1,616]},{82:[1,617]},t(Sl,[2,296]),t(Sl,[2,31]),t(Sl,[2,32]),{31:[2,17]},{31:[2,276]},{31:[2,18]},{31:[2,278]},t(E,ba,{155:330,153:618,154:619,29:Cs,31:Cs,85:Cs,112:Cs,159:Cs,160:Cs,161:Cs,163:Cs,164:Cs}),t(D4,[2,358]),t(Ns,[2,75]),t(Ns,[2,76]),{29:De,57:620},{13:d,16:f,44:39,55:40,87:h,139:621,307:43,308:p},t(C4,[2,366]),t(Ns,[2,79]),{13:d,16:f,44:136,45:Y,46:622,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},t(Ns,[2,91],{336:[1,623]}),t([29,31,85,112,159,160,161,163,164,232,318,335],[2,114],{207:624,193:[1,625]}),t(Tl,[2,117]),{13:d,16:f,44:215,45:gn,55:220,82:he,87:h,89:ct,172:221,185:351,203:536,211:626,212:627,231:Vn,234:535,236:216,237:222,255:154,257:155,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,309:te,310:S,311:217,312:A},t(va,[2,134]),t(Is,[2,427]),t(va,[2,135]),t($u,[2,26]),{44:628,87:h},t(pn,[2,106]),t(pn,[2,394]),t(E,[2,396]),t(H1,[2,111]),t(H1,[2,398]),{13:d,16:f,44:39,55:40,87:h,139:342,186:629,190:340,195:341,197:Pn,307:43,308:p},t(wl,[2,217]),t(E,Je,{144:248,140:630,143:631,31:[2,343]}),t(Ct,[2,97]),t(Ae,[2,380]),t(Ct,[2,180]),{13:d,16:f,44:136,45:Y,46:632,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},{13:d,16:f,44:136,45:Y,46:633,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},t(Ct,[2,190]),{290:[1,634]},{314:[1,635]},{13:d,16:f,48:[1,636],55:414,82:he,171:637,172:415,173:416,174:Vt,255:154,257:155,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ir},t(L4,[2,305]),t(fe,[2,86]),t(yn,[2,374]),t(Zt,[2,37]),t(Zt,[2,38]),t(Nn,[2,72]),t(Nn,[2,360]),t(Ns,[2,77]),{29:De,57:638},{47:[1,639]},{29:[2,376]},t(Tl,[2,402]),t(Tl,[2,115],{215:10,208:528,214:529,44:530,205:640,13:a,16:a,45:a,197:a,224:a,229:a,308:a,87:h}),t(Tl,[2,118],{272:[1,641]}),t(Q1,[2,407],{213:642,319:643,317:[1,644]}),{48:[1,645]},{318:[1,646]},{31:[1,647]},{31:[2,344]},{48:[1,648]},{48:[1,649]},{291:650,303:Ie,304:Ee,305:Me,306:Ce},t(Yt,[2,218]),t(yn,[2,44]),t(L4,[2,306]),t(Ns,[2,78]),{44:651,87:h},t(Tl,[2,116]),t(E,[2,406]),t(Q1,[2,119]),t(Q1,[2,408]),t(u,a,{215:10,205:527,208:528,214:529,44:530,202:652,87:h}),t($u,[2,27]),t(H1,[2,230]),t(j4,[2,345],{141:653,335:[1,654]}),t(Ct,[2,181]),t(Ct,[2,182]),{48:[2,191]},{48:[1,655]},{318:[1,656]},t(E,Je,{144:248,142:657,143:658,31:M4,112:M4}),t(j4,[2,346]),t(Ns,[2,80]),t(Q1,[2,231]),t(ye,[2,67]),t(ye,[2,348])],defaultActions:{5:[2,240],6:[2,241],7:[2,242],9:[2,239],24:[2,1],25:[2,2],26:[2,244],87:[2,282],94:[2,384],100:[2,45],109:[2,325],166:[2,458],263:[2,439],336:[2,258],337:[2,101],487:[2,461],488:[2,462],560:[2,468],574:[2,17],575:[2,276],576:[2,18],577:[2,278],623:[2,376],631:[2,344],650:[2,191]},parseError:function(je,He){if(He.recoverable)this.trace(je);else{var Xe=new Error(je);throw Xe.hash=He,Xe}},parse:function(je){var He=this,Xe=[0],yt=[null],bt=[],ae=this.table,Ri="",oe=0,No=0,K1=2,J1=1,X1=bt.slice.call(arguments,1),Qr=Object.create(this.lexer),za={yy:{}};for(var Hu in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Hu)&&(za.yy[Hu]=this.yy[Hu]);Qr.setInput(je,za.yy),za.yy.lexer=Qr,za.yy.parser=this,typeof Qr.yylloc>"u"&&(Qr.yylloc={});var Il=Qr.yylloc;bt.push(Il);var fE=Qr.options&&Qr.options.ranges;typeof za.yy.parseError=="function"?this.parseError=za.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Y1=function(){var Pl;return Pl=Qr.lex()||J1,typeof Pl!="number"&&(Pl=He.symbols_[Pl]||Pl),Pl},Ft,er,Dt,bn,vn={},Z1,js,W4,ev;;){if(er=Xe[Xe.length-1],this.defaultActions[er]?Dt=this.defaultActions[er]:((Ft===null||typeof Ft>"u")&&(Ft=Y1()),Dt=ae[er]&&ae[er][Ft]),typeof Dt>"u"||!Dt.length||!Dt[0]){var hE="";ev=[];for(Z1 in ae[er])this.terminals_[Z1]&&Z1>K1&&ev.push("'"+this.terminals_[Z1]+"'");Qr.showPosition?hE="Parse error on line "+(oe+1)+`: +**/const Yle="http://www.w3.org/2000/svg",Zle="http://www.w3.org/1998/Math/MathML",Ko=typeof document<"u"?document:null,hL=Ko&&Ko.createElement("template"),ede={insert:(t,e,r)=>{e.insertBefore(t,r||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,r,n)=>{const a=e==="svg"?Ko.createElementNS(Yle,t):e==="mathml"?Ko.createElementNS(Zle,t):Ko.createElement(t,r?{is:r}:void 0);return t==="select"&&n&&n.multiple!=null&&a.setAttribute("multiple",n.multiple),a},createText:t=>Ko.createTextNode(t),createComment:t=>Ko.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Ko.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,r,n,a,s){const o=r?r.previousSibling:e.lastChild;if(a&&(a===s||a.nextSibling))for(;e.insertBefore(a.cloneNode(!0),r),!(a===s||!(a=a.nextSibling)););else{hL.innerHTML=n==="svg"?`${t}`:n==="mathml"?`${t}`:t;const u=hL.content;if(n==="svg"||n==="mathml"){const c=u.firstChild;for(;c.firstChild;)u.appendChild(c.firstChild);u.removeChild(c)}e.insertBefore(u,r)}return[o?o.nextSibling:e.firstChild,r?r.previousSibling:e.lastChild]}},jo="transition",Wf="animation",Fd=Symbol("_vtc"),XW=(t,{slots:e})=>h2(ale,ZW(t),e);XW.displayName="Transition";const YW={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},tde=XW.props=jr({},AW,YW),zu=(t,e=[])=>{ft(t)?t.forEach(r=>r(...e)):t&&t(...e)},pL=t=>t?ft(t)?t.some(e=>e.length>1):t.length>1:!1;function ZW(t){const e={};for(const N in t)N in YW||(e[N]=t[N]);if(t.css===!1)return e;const{name:r="v",type:n,duration:a,enterFromClass:s=`${r}-enter-from`,enterActiveClass:o=`${r}-enter-active`,enterToClass:u=`${r}-enter-to`,appearFromClass:c=s,appearActiveClass:l=o,appearToClass:d=u,leaveFromClass:f=`${r}-leave-from`,leaveActiveClass:h=`${r}-leave-active`,leaveToClass:p=`${r}-leave-to`}=t,m=rde(a),y=m&&m[0],g=m&&m[1],{onBeforeEnter:b,onEnter:v,onEnterCancelled:_,onLeave:w,onLeaveCancelled:E,onBeforeAppear:O=b,onAppear:L=v,onAppearCancelled:F=_}=e,x=(N,V,$)=>{$o(N,V?d:u),$o(N,V?l:o),$&&$()},P=(N,V)=>{N._isLeaving=!1,$o(N,f),$o(N,p),$o(N,h),V&&V()},j=N=>(V,$)=>{const q=N?L:v,H=()=>x(V,N,$);zu(q,[V,H]),yL(()=>{$o(V,N?c:s),Qs(V,N?d:u),pL(q)||mL(V,n,y,H)})};return jr(e,{onBeforeEnter(N){zu(b,[N]),Qs(N,s),Qs(N,o)},onBeforeAppear(N){zu(O,[N]),Qs(N,c),Qs(N,l)},onEnter:j(!1),onAppear:j(!0),onLeave(N,V){N._isLeaving=!0;const $=()=>P(N,V);Qs(N,f),tK(),Qs(N,h),yL(()=>{N._isLeaving&&($o(N,f),Qs(N,p),pL(w)||mL(N,n,g,$))}),zu(w,[N,$])},onEnterCancelled(N){x(N,!1),zu(_,[N])},onAppearCancelled(N){x(N,!0),zu(F,[N])},onLeaveCancelled(N){P(N),zu(E,[N])}})}function rde(t){if(t==null)return null;if(fr(t))return[VE(t.enter),VE(t.leave)];{const e=VE(t);return[e,e]}}function VE(t){return nS(t)}function Qs(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.add(r)),(t[Fd]||(t[Fd]=new Set)).add(e)}function $o(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.remove(n));const r=t[Fd];r&&(r.delete(e),r.size||(t[Fd]=void 0))}function yL(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let nde=0;function mL(t,e,r,n){const a=t._endId=++nde,s=()=>{a===t._endId&&n()};if(r)return setTimeout(s,r);const{type:o,timeout:u,propCount:c}=eK(t,e);if(!o)return n();const l=o+"end";let d=0;const f=()=>{t.removeEventListener(l,h),s()},h=p=>{p.target===t&&++d>=c&&f()};setTimeout(()=>{d(r[m]||"").split(", "),a=n(`${jo}Delay`),s=n(`${jo}Duration`),o=gL(a,s),u=n(`${Wf}Delay`),c=n(`${Wf}Duration`),l=gL(u,c);let d=null,f=0,h=0;e===jo?o>0&&(d=jo,f=o,h=s.length):e===Wf?l>0&&(d=Wf,f=l,h=c.length):(f=Math.max(o,l),d=f>0?o>l?jo:Wf:null,h=d?d===jo?s.length:c.length:0);const p=d===jo&&/\b(transform|all)(,|$)/.test(n(`${jo}Property`).toString());return{type:d,timeout:f,propCount:h,hasTransform:p}}function gL(t,e){for(;t.length_L(r)+_L(t[n])))}function _L(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function tK(){return document.body.offsetHeight}function ide(t,e,r){const n=t[Fd];n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?t.removeAttribute("class"):r?t.setAttribute("class",e):t.className=e}const dS=Symbol("_vod"),rK=Symbol("_vsh"),ade={beforeMount(t,{value:e},{transition:r}){t[dS]=t.style.display==="none"?"":t.style.display,r&&e?r.beforeEnter(t):Kf(t,e)},mounted(t,{value:e},{transition:r}){r&&e&&r.enter(t)},updated(t,{value:e,oldValue:r},{transition:n}){!e!=!r&&(n?e?(n.beforeEnter(t),Kf(t,!0),n.enter(t)):n.leave(t,()=>{Kf(t,!1)}):Kf(t,e))},beforeUnmount(t,{value:e}){Kf(t,e)}};function Kf(t,e){t.style.display=e?t[dS]:"none",t[rK]=!e}function sde(){ade.getSSRProps=({value:t})=>{if(!t)return{style:{display:"none"}}}}const nK=Symbol("");function v5e(t){const e=Au();if(!e)return;const r=e.ut=(a=t(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}"]`)).forEach(s=>iP(s,a))},n=()=>{const a=t(e.proxy);nP(e.subTree,a),r(a)};d2(()=>{tle(n);const a=new MutationObserver(n);a.observe(e.subTree.el.parentNode,{childList:!0}),fD(()=>a.disconnect())})}function nP(t,e){if(t.shapeFlag&128){const r=t.suspense;t=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{nP(r.activeBranch,e)})}for(;t.component;)t=t.component.subTree;if(t.shapeFlag&1&&t.el)iP(t.el,e);else if(t.type===Wr)t.children.forEach(r=>nP(r,e));else if(t.type===wd){let{el:r,anchor:n}=t;for(;r&&(iP(r,e),r!==n);)r=r.nextSibling}}function iP(t,e){if(t.nodeType===1){const r=t.style;let n="";for(const a in e)r.setProperty(`--${a}`,e[a]),n+=`--${a}: ${e[a]};`;r[nK]=n}}const ode=/(^|;)\s*display\s*:/;function ude(t,e,r){const n=t.style,a=Mr(r);let s=!1;if(r&&!a){if(e)if(Mr(e))for(const o of e.split(";")){const u=o.slice(0,o.indexOf(":")).trim();r[u]==null&&Aw(n,u,"")}else for(const o in e)r[o]==null&&Aw(n,o,"");for(const o in r)o==="display"&&(s=!0),Aw(n,o,r[o])}else if(a){if(e!==r){const o=n[nK];o&&(r+=";"+o),n.cssText=r,s=ode.test(r)}}else e&&t.removeAttribute("style");dS in t&&(t[dS]=s?n.display:"",t[rK]&&(n.display="none"))}const bL=/\s*!important$/;function Aw(t,e,r){if(ft(r))r.forEach(n=>Aw(t,e,n));else if(r==null&&(r=""),e.startsWith("--"))t.setProperty(e,r);else{const n=cde(t,e);bL.test(r)?t.setProperty(Di(n),r.replace(bL,""),"important"):t[n]=r}}const vL=["Webkit","Moz","ms"],HE={};function cde(t,e){const r=HE[e];if(r)return r;let n=wi(e);if(n!=="filter"&&n in t)return HE[e]=n;n=t2(n);for(let a=0;aQE||(yde.then(()=>QE=0),QE=Date.now());function gde(t,e){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;sa(_de(n,r.value),e,5,[n])};return r.value=t,r.attached=mde(),r}function _de(t,e){if(ft(e)){const r=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{r.call(t),t._stopped=!0},e.map(n=>a=>!a._stopped&&n&&n(a))}else return e}const EL=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,bde=(t,e,r,n,a,s,o,u,c)=>{const l=a==="svg";e==="class"?ide(t,n,l):e==="style"?ude(t,r,n):qb(e)?WN(e)||hde(t,e,r,n,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):vde(t,e,n,l))?dde(t,e,n,s,o,u,c):(e==="true-value"?t._trueValue=n:e==="false-value"&&(t._falseValue=n),lde(t,e,n,l))};function vde(t,e,r,n){if(n)return!!(e==="innerHTML"||e==="textContent"||e in t&&EL(e)&&At(r));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const a=t.tagName;if(a==="IMG"||a==="VIDEO"||a==="CANVAS"||a==="SOURCE")return!1}return EL(e)&&Mr(r)?!1:e in t}/*! #__NO_SIDE_EFFECTS__ */function wde(t,e){const r=c2(t);class n extends _D{constructor(s){super(r,s,e)}}return n.def=r,n}/*! #__NO_SIDE_EFFECTS__ */const w5e=t=>wde(t,jde),Sde=typeof HTMLElement<"u"?HTMLElement:class{};class _D extends Sde{constructor(e,r={},n){super(),this._def=e,this._props=r,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),kb(()=>{this._connected||(PL(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let n=0;n{for(const a of n)this._setAttr(a.attributeName)}),this._ob.observe(this,{attributes:!0});const e=(n,a=!1)=>{const{props:s,styles:o}=n;let u;if(s&&!ft(s))for(const c in s){const l=s[c];(l===Number||l&&l.type===Number)&&(c in this._props&&(this._props[c]=nS(this._props[c])),(u||(u=Object.create(null)))[wi(c)]=!0)}this._numberProps=u,a&&this._resolveProps(n),this._applyStyles(o),this._update()},r=this._def.__asyncLoader;r?r().then(n=>e(n,!0)):e(this._def)}_resolveProps(e){const{props:r}=e,n=ft(r)?r:Object.keys(r||{});for(const a of Object.keys(this))a[0]!=="_"&&n.includes(a)&&this._setProp(a,this[a],!0,!1);for(const a of n.map(wi))Object.defineProperty(this,a,{get(){return this._getProp(a)},set(s){this._setProp(a,s)}})}_setAttr(e){let r=this.hasAttribute(e)?this.getAttribute(e):void 0;const n=wi(e);this._numberProps&&this._numberProps[n]&&(r=nS(r)),this._setProp(n,r,!1)}_getProp(e){return this._props[e]}_setProp(e,r,n=!0,a=!0){r!==this._props[e]&&(this._props[e]=r,a&&this._instance&&this._update(),n&&(r===!0?this.setAttribute(Di(e),""):typeof r=="string"||typeof r=="number"?this.setAttribute(Di(e),r+""):r||this.removeAttribute(Di(e))))}_update(){PL(this._createVNode(),this.shadowRoot)}_createVNode(){const e=It(this._def,jr({},this._props));return this._instance||(e.ce=r=>{this._instance=r,r.isCE=!0;const n=(s,o)=>{this.dispatchEvent(new CustomEvent(s,{detail:o}))};r.emit=(s,...o)=>{n(s,o),Di(s)!==s&&n(Di(s),o)};let a=this;for(;a=a&&(a.parentNode||a.host);)if(a instanceof _D){r.parent=a._instance,r.provides=a._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach(r=>{const n=document.createElement("style");n.textContent=r,this.shadowRoot.appendChild(n)})}}function S5e(t="$style"){{const e=Au();if(!e)return sr;const r=e.type.__cssModules;if(!r)return sr;const n=r[t];return n||sr}}const iK=new WeakMap,aK=new WeakMap,fS=Symbol("_moveCb"),AL=Symbol("_enterCb"),sK={name:"TransitionGroup",props:jr({},tde,{tag:String,moveClass:String}),setup(t,{slots:e}){const r=Au(),n=EW();let a,s;return lD(()=>{if(!a.length)return;const o=t.moveClass||`${t.name||"v"}-move`;if(!Rde(a[0].el,r.vnode.el,o))return;a.forEach(Ede),a.forEach(Ade);const u=a.filter(Ode);tK(),u.forEach(c=>{const l=c.el,d=l.style;Qs(l,o),d.transform=d.webkitTransform=d.transitionDuration="";const f=l[fS]=h=>{h&&h.target!==l||(!h||/transform$/.test(h.propertyName))&&(l.removeEventListener("transitionend",f),l[fS]=null,$o(l,o))};l.addEventListener("transitionend",f)})}),()=>{const o=Qt(t),u=ZW(o);let c=o.tag||Wr;if(a=[],s)for(let l=0;ldelete t.mode;sK.props;const T5e=sK;function Ede(t){const e=t.el;e[fS]&&e[fS](),e[AL]&&e[AL]()}function Ade(t){aK.set(t,t.el.getBoundingClientRect())}function Ode(t){const e=iK.get(t),r=aK.get(t),n=e.left-r.left,a=e.top-r.top;if(n||a){const s=t.el.style;return s.transform=s.webkitTransform=`translate(${n}px,${a}px)`,s.transitionDuration="0s",t}}function Rde(t,e,r){const n=t.cloneNode(),a=t[Fd];a&&a.forEach(u=>{u.split(/\s+/).forEach(c=>c&&n.classList.remove(c))}),r.split(/\s+/).forEach(u=>u&&n.classList.add(u)),n.style.display="none";const s=e.nodeType===1?e:e.parentNode;s.appendChild(n);const{hasTransform:o}=eK(n);return s.removeChild(n),o}const pu=t=>{const e=t.props["onUpdate:modelValue"]||!1;return ft(e)?r=>yd(e,r):e};function xde(t){t.target.composing=!0}function OL(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const oa=Symbol("_assign"),ta={created(t,{modifiers:{lazy:e,trim:r,number:n}},a){t[oa]=pu(a);const s=n||a.props&&a.props.type==="number";to(t,e?"change":"input",o=>{if(o.target.composing)return;let u=t.value;r&&(u=u.trim()),s&&(u=rS(u)),t[oa](u)}),r&&to(t,"change",()=>{t.value=t.value.trim()}),e||(to(t,"compositionstart",xde),to(t,"compositionend",OL),to(t,"change",OL))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:r,trim:n,number:a}},s){if(t[oa]=pu(s),t.composing)return;const o=(a||t.type==="number")&&!/^0\d/.test(t.value)?rS(t.value):t.value,u=e??"";o!==u&&(document.activeElement===t&&t.type!=="range"&&(r||n&&t.value.trim()===u)||(t.value=u))}},oK={deep:!0,created(t,e,r){t[oa]=pu(r),to(t,"change",()=>{const n=t._modelValue,a=Bd(t),s=t.checked,o=t[oa];if(ft(n)){const u=r2(n,a),c=u!==-1;if(s&&!c)o(n.concat(a));else if(!s&&c){const l=[...n];l.splice(u,1),o(l)}}else if(al(n)){const u=new Set(n);s?u.add(a):u.delete(a),o(u)}else o(uK(t,s))})},mounted:RL,beforeUpdate(t,e,r){t[oa]=pu(r),RL(t,e,r)}};function RL(t,{value:e,oldValue:r},n){t._modelValue=e,ft(e)?t.checked=r2(e,n.props.value)>-1:al(e)?t.checked=e.has(n.props.value):e!==r&&(t.checked=hu(e,uK(t,!0)))}const H_={created(t,{value:e},r){t.checked=hu(e,r.props.value),t[oa]=pu(r),to(t,"change",()=>{t[oa](Bd(t))})},beforeUpdate(t,{value:e,oldValue:r},n){t[oa]=pu(n),e!==r&&(t.checked=hu(e,n.props.value))}},Ide={deep:!0,created(t,{value:e,modifiers:{number:r}},n){const a=al(e);to(t,"change",()=>{const s=Array.prototype.filter.call(t.options,o=>o.selected).map(o=>r?rS(Bd(o)):Bd(o));t[oa](t.multiple?a?new Set(s):s:s[0]),t._assigning=!0,kb(()=>{t._assigning=!1})}),t[oa]=pu(n)},mounted(t,{value:e,modifiers:{number:r}}){xL(t,e)},beforeUpdate(t,e,r){t[oa]=pu(r)},updated(t,{value:e,modifiers:{number:r}}){t._assigning||xL(t,e)}};function xL(t,e,r){const n=t.multiple,a=ft(e);if(!(n&&!a&&!al(e))){for(let s=0,o=t.options.length;sString(d)===String(c)):u.selected=r2(e,c)>-1}else u.selected=e.has(c);else if(hu(Bd(u),e)){t.selectedIndex!==s&&(t.selectedIndex=s);return}}!n&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function Bd(t){return"_value"in t?t._value:t.value}function uK(t,e){const r=e?"_trueValue":"_falseValue";return r in t?t[r]:e}const Pde={created(t,e,r){Ev(t,e,r,null,"created")},mounted(t,e,r){Ev(t,e,r,null,"mounted")},beforeUpdate(t,e,r,n){Ev(t,e,r,n,"beforeUpdate")},updated(t,e,r,n){Ev(t,e,r,n,"updated")}};function cK(t,e){switch(t){case"SELECT":return Ide;case"TEXTAREA":return ta;default:switch(e){case"checkbox":return oK;case"radio":return H_;default:return ta}}}function Ev(t,e,r,n,a){const o=cK(t.tagName,r.props&&r.props.type)[a];o&&o(t,e,r,n)}function Nde(){ta.getSSRProps=({value:t})=>({value:t}),H_.getSSRProps=({value:t},e)=>{if(e.props&&hu(e.props.value,t))return{checked:!0}},oK.getSSRProps=({value:t},e)=>{if(ft(t)){if(e.props&&r2(t,e.props.value)>-1)return{checked:!0}}else if(al(t)){if(e.props&&t.has(e.props.value))return{checked:!0}}else if(t)return{checked:!0}},Pde.getSSRProps=(t,e)=>{if(typeof e.type!="string")return;const r=cK(e.type.toUpperCase(),e.props&&e.props.type);if(r.getSSRProps)return r.getSSRProps(t,e)}}const Dde=["ctrl","shift","alt","meta"],Cde={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>Dde.some(r=>t[`${r}Key`]&&!e.includes(r))},E5e=(t,e)=>{const r=t._withMods||(t._withMods={}),n=e.join(".");return r[n]||(r[n]=(a,...s)=>{for(let o=0;o{const r=t._withKeys||(t._withKeys={}),n=e.join(".");return r[n]||(r[n]=a=>{if(!("key"in a))return;const s=Di(a.key);if(e.some(o=>o===s||Lde[o]===s))return t(a)})},lK=jr({patchProp:bde},ede);let Q_,IL=!1;function dK(){return Q_||(Q_=jle(lK))}function fK(){return Q_=IL?Q_:Mle(lK),IL=!0,Q_}const PL=(...t)=>{dK().render(...t)},jde=(...t)=>{fK().hydrate(...t)},Mde=(...t)=>{const e=dK().createApp(...t),{mount:r}=e;return e.mount=n=>{const a=pK(n);if(!a)return;const s=e._component;!At(s)&&!s.render&&!s.template&&(s.template=a.innerHTML),a.innerHTML="";const o=r(a,!1,hK(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),o},e},O5e=(...t)=>{const e=fK().createApp(...t),{mount:r}=e;return e.mount=n=>{const a=pK(n);if(a)return r(a,!0,hK(a))},e};function hK(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function pK(t){return Mr(t)?document.querySelector(t):t}let NL=!1;const R5e=()=>{NL||(NL=!0,Nde(),sde())};var Fde=!1;let yK;const p2=t=>yK=t,mK=Symbol();function aP(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var z_;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(z_||(z_={}));function Bde(){const t=zG(!0),e=t.run(()=>fo({}));let r=[],n=[];const a=tD({install(s){p2(a),a._a=s,s.provide(mK,a),s.config.globalProperties.$pinia=a,n.forEach(o=>r.push(o)),n=[]},use(s){return!this._a&&!Fde?n.push(s):r.push(s),this},_p:r,_a:null,_e:t,_s:new Map,state:e});return a}const gK=()=>{};function DL(t,e,r,n=gK){t.push(e);const a=()=>{const s=t.indexOf(e);s>-1&&(t.splice(s,1),n())};return!r&&WG()&&ice(a),a}function jl(t,...e){t.slice().forEach(r=>{r(...e)})}const qde=t=>t();function sP(t,e){t instanceof Map&&e instanceof Map&&e.forEach((r,n)=>t.set(n,r)),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const r in e){if(!e.hasOwnProperty(r))continue;const n=e[r],a=t[r];aP(a)&&aP(n)&&t.hasOwnProperty(r)&&!rn(n)&&!Mc(n)?t[r]=sP(a,n):t[r]=n}return t}const $de=Symbol();function Ude(t){return!aP(t)||!t.hasOwnProperty($de)}const{assign:Uo}=Object;function kde(t){return!!(rn(t)&&t.effect)}function Vde(t,e,r,n){const{state:a,actions:s,getters:o}=e,u=r.state.value[t];let c;function l(){u||(r.state.value[t]=a?a():{});const d=Nce(r.state.value[t]);return Uo(d,s,Object.keys(o||{}).reduce((f,h)=>(f[h]=tD(ea(()=>{p2(r);const p=r._s.get(t);return o[h].call(p,p)})),f),{}))}return c=_K(t,l,e,r,n,!0),c}function _K(t,e,r={},n,a,s){let o;const u=Uo({actions:{}},r),c={deep:!0};let l,d,f=[],h=[],p;const m=n.state.value[t];!s&&!m&&(n.state.value[t]={}),fo({});let y;function g(F){let x;l=d=!1,typeof F=="function"?(F(n.state.value[t]),x={type:z_.patchFunction,storeId:t,events:p}):(sP(n.state.value[t],F),x={type:z_.patchObject,payload:F,storeId:t,events:p});const P=y=Symbol();kb().then(()=>{y===P&&(l=!0)}),d=!0,jl(f,x,n.state.value[t])}const b=s?function(){const{state:x}=r,P=x?x():{};this.$patch(j=>{Uo(j,P)})}:gK;function v(){o.stop(),f=[],h=[],n._s.delete(t)}function _(F,x){return function(){p2(n);const P=Array.from(arguments),j=[],N=[];function V(H){j.push(H)}function $(H){N.push(H)}jl(h,{args:P,name:F,store:E,after:V,onError:$});let q;try{q=x.apply(this&&this.$id===t?this:E,P)}catch(H){throw jl(N,H),H}return q instanceof Promise?q.then(H=>(jl(j,H),H)).catch(H=>(jl(N,H),Promise.reject(H))):(jl(j,q),q)}}const w={_p:n,$id:t,$onAction:DL.bind(null,h),$patch:g,$reset:b,$subscribe(F,x={}){const P=DL(f,F,x.detached,()=>j()),j=o.run(()=>bd(()=>n.state.value[t],N=>{(x.flush==="sync"?d:l)&&F({storeId:t,type:z_.direct,events:p},N)},Uo({},c,x)));return P},$dispose:v},E=Ub(w);n._s.set(t,E);const L=(n._a&&n._a.runWithContext||qde)(()=>n._e.run(()=>(o=zG()).run(e)));for(const F in L){const x=L[F];if(rn(x)&&!kde(x)||Mc(x))s||(m&&Ude(x)&&(rn(x)?x.value=m[F]:sP(x,m[F])),n.state.value[t][F]=x);else if(typeof x=="function"){const P=_(F,x);L[F]=P,u.actions[F]=x}}return Uo(E,L),Uo(Qt(E),L),Object.defineProperty(E,"$state",{get:()=>n.state.value[t],set:F=>{g(x=>{Uo(x,F)})}}),n._p.forEach(F=>{Uo(E,o.run(()=>F({store:E,app:n._a,pinia:n,options:u})))}),m&&s&&r.hydrate&&r.hydrate(E.$state,m),l=!0,d=!0,E}function bD(t,e,r){let n,a;const s=typeof e=="function";typeof t=="string"?(n=t,a=s?r:e):(a=t,n=t.id);function o(u,c){const l=Ole();return u=u||(l?cs(mK,null):null),u&&p2(u),u=yK,u._s.has(n)||(s?_K(n,e,a,u):Vde(n,a,u)),u._s.get(n)}return o.$id=n,o}function hS(t,e){return Array.isArray(e)?e.reduce((r,n)=>(r[n]=function(){return t(this.$pinia)[n]},r),{}):Object.keys(e).reduce((r,n)=>(r[n]=function(){const a=t(this.$pinia),s=e[n];return typeof s=="function"?s.call(this,a):a[s]},r),{})}var I=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bK(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function vD(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var a=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return t[n]}})}),r}var wD={};let y2=class{constructor(){return Hde||this}equals(e){return e&&this.termType===e.termType}};Object.defineProperty(y2.prototype,"value",{enumerable:!0,value:"*"});Object.defineProperty(y2.prototype,"termType",{enumerable:!0,value:"Wildcard"});var Hde=new y2;wD.Wildcard=y2;var Qde=function(){var t=function(Be,je,He,Xe){for(He=He||{},Xe=Be.length;Xe--;He[Be[Xe]]=je);return He},e=[6,12,13,15,16,24,32,36,41,45,100,110,113,115,116,123,126,131,197,224,229,308,329,330,331,332,333],r=[2,247],n=[100,110,113,115,116,123,126,131,329,330,331,332,333],a=[2,409],s=[1,18],o=[1,27],u=[13,16,45,197,224,229,308],c=[28,29,53],l=[28,53],d=[1,42],f=[1,45],h=[1,41],p=[1,44],m=[123,126],y=[1,67],g=[39,45,87],b=[13,16,45,197,224,308],v=[1,87],_=[2,281],w=[1,86],E=[13,16,45,82,87,89,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312],O=[6,28,29,53,63,70,73,81,83,85],L=[6,13,16,28,29,53,63,70,73,81,83,85,87,308],F=[6,13,16,28,29,45,53,63,70,73,81,82,83,85,87,89,197,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314],x=[6,13,16,28,29,31,39,45,47,48,53,63,70,73,81,82,83,85,87,89,109,112,121,123,126,128,159,160,161,163,164,174,193,197,224,229,231,232,242,246,250,263,265,272,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314,317,318,335,337,338,340,341,342,343,344,345,346],P=[13,16,308],j=[112,132,327,334],N=[13,16,112,132,308],V=[1,111],$=[1,117],q=[112,132,327,328,334],H=[13,16,112,132,308,328],X=[28,29,45,53,87],Y=[1,138],he=[1,151],Te=[1,128],Ne=[1,127],$e=[1,129],de=[1,140],ce=[1,141],xe=[1,142],Pe=[1,143],we=[1,144],Re=[1,145],Se=[1,147],z=[1,148],M=[2,457],k=[1,158],T=[1,159],R=[1,160],U=[1,152],G=[1,153],Q=[1,156],Z=[1,171],se=[1,172],re=[1,173],le=[1,174],pe=[1,175],_e=[1,176],Ie=[1,167],Ee=[1,168],Me=[1,169],Ce=[1,170],ke=[1,157],qe=[1,166],W=[1,161],D=[1,162],B=[1,163],K=[1,164],ne=[1,165],fe=[6,13,16,29,31,45,82,85,87,89,112,159,160,161,163,164,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335],ge=[1,195],Le=[6,31,73,81,83,85],ee=[2,285],Oe=[1,199],De=[1,201],Ue=[6,31,70,73,81,83,85],Ye=[2,283],ut=[1,207],at=[1,218],ct=[1,223],ht=[1,219],te=[1,225],S=[1,226],A=[1,224],C=[6,63,70,73,81,83,85],J=[1,236],ie=[2,334],be=[1,243],ve=[1,241],Fe=[6,193],Je=[2,349],lt=[2,339],rt=[28,128],Qe=[47,48,193,272],di=[47,48,193,242,272],et=[47,48,193,242,246,272],$r=[47,48,193,242,246,250,263,265,272,290,297,298,299,300,301,302,341,342,343,344,345,346],Xt=[39,47,48,193,242,246,250,263,265,272,290,297,298,299,300,301,302,338,341,342,343,344,345,346],Gt=[1,271],Nr=[1,270],Ct=[6,13,16,29,31,39,45,47,48,70,73,76,78,81,82,83,85,87,89,112,159,160,161,163,164,193,231,242,246,250,263,265,268,269,270,271,272,273,274,276,277,279,280,283,285,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335,338,341,342,343,344,345,346,347,348,349,350,351],zi=[1,281],Ai=[1,280],or=[13,16,29,31,39,45,47,48,82,85,87,89,112,159,160,161,163,164,174,193,197,224,229,231,232,242,246,250,263,265,272,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314,317,318,335,338,341,342,343,344,345,346],xs=[45,89],xo=[13,16,29,31,39,45,47,48,82,85,87,89,112,159,160,161,163,164,174,193,197,224,229,231,232,242,246,250,263,265,272,290,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314,317,318,335,338,341,342,343,344,345,346],Vr=[13,16,31,82,174,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312],fi=[31,89],on=[48,87],Oi=[6,13,16,45,48,82,87,89,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,337,338],un=[6,13,16,39,45,48,82,87,89,231,263,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,337,338,340],_a=[1,313],Zr=[6,85],Va=[6,31,81,83,85],ba=[2,361],Un=[2,353],Pn=[1,343],Io=[31,112,335],va=[13,16,29,31,45,48,82,85,87,89,112,159,160,161,163,164,193,197,224,229,231,232,272,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,317,318,335],vl=[13,16,29,31,45,48,82,85,87,89,112,159,160,161,163,164,193,197,224,229,231,232,272,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314,317,318,335],ue=[6,109,193],ye=[31,112],Ae=[13,16,45,82,87,224,263,265,268,269,270,271,273,274,276,277,279,280,283,285,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312,346,347,348,349,350,351],Ze=[1,390],it=[1,391],ot=[13,16,87,197,308,314],Nt=[13,16,39,45,82,87,224,263,265,268,269,270,271,273,274,276,277,279,280,283,285,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312,346,347,348,349,350,351],Vt=[1,417],ir=[1,418],Dr=[13,16,48,197,229,308],Zt=[6,31,85],br=[6,13,16,31,45,73,81,83,85,268,269,270,271,273,274,276,277,279,280,283,285,308,346,347,348,349,350,351],kn=[6,13,16,29,31,45,73,76,78,81,82,83,85,87,89,112,159,160,161,163,164,231,268,269,270,271,273,274,276,277,279,280,283,285,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335,346,347,348,349,350,351],Nn=[29,31,85,112,159,160,161,163,164],gn=[1,443],Vn=[1,444],wa=[1,449],pn=[31,112,193,232,318,335],Is=[13,16,45,48,82,87,89,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312],Bu=[13,16,31,45,48,82,87,89,112,193,231,232,272,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,317,318,335],qu=[13,16,29,31,45,48,82,85,87,89,112,159,160,161,163,164,193,231,232,272,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,317,318,335],Yt=[13,16,31,48,82,174,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312],yn=[31,45],Ps=[1,507],Po=[1,508],k1=[6,13,16,29,31,39,45,47,48,63,70,73,76,78,81,82,83,85,87,89,112,159,160,161,163,164,193,231,242,246,250,263,265,268,269,270,271,272,273,274,276,277,279,280,283,285,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335,336,338,341,342,343,344,345,346,347,348,349,350,351],V1=[29,31,85,112,159,160,161,163,164,335],$u=[6,13,16,31,45,70,73,81,83,85,87,268,269,270,271,273,274,276,277,279,280,283,285,308,346,347,348,349,350,351],I4=[13,16,31,45,48,82,87,89,112,193,197,231,232,272,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,317,318,335],P4=[2,352],YT=[13,16,197,308,314],N4=[1,565],wl=[6,13,16,31,45,76,78,81,83,85,87,268,269,270,271,273,274,276,277,279,280,283,285,308,346,347,348,349,350,351],D4=[13,16,29,31,45,82,85,87,89,112,159,160,161,163,164,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312],Ns=[13,16,29,31,45,82,85,87,89,112,159,160,161,163,164,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335],C4=[13,16,87,308],Ds=[2,364],Sl=[29,31,85,112,159,160,161,163,164,193,232,318,335],H1=[31,112,193,232,272,318,335],Cs=[2,359],L4=[13,16,48,82,174,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312],Q1=[29,31,85,112,159,160,161,163,164,193,232,272,318,335],j4=[13,16,31,45,82,87,89,112,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312],M4=[2,347],ZT={trace:function(){},yy:{},symbols_:{error:2,QueryOrUpdate:3,Prologue:4,QueryOrUpdate_group0:5,EOF:6,Query:7,Qry:8,Query_option0:9,Prologue_repetition0:10,BaseDecl:11,BASE:12,IRIREF:13,PrefixDecl:14,PREFIX:15,PNAME_NS:16,SelectClauseWildcard:17,Qry_repetition0:18,WhereClause:19,SolutionModifierNoGroup:20,SelectClauseVars:21,Qry_repetition1:22,SolutionModifier:23,CONSTRUCT:24,ConstructTemplate:25,Qry_repetition2:26,Qry_repetition3:27,WHERE:28,"{":29,Qry_option0:30,"}":31,DESCRIBE:32,Qry_group0:33,Qry_repetition4:34,Qry_option1:35,ASK:36,Qry_repetition5:37,SelectClauseBase:38,"*":39,SelectClauseVars_repetition_plus0:40,SELECT:41,SelectClauseBase_option0:42,SelectClauseItem:43,Var:44,"(":45,Expression:46,AS:47,")":48,SubSelect:49,SubSelect_option0:50,SubSelect_option1:51,DatasetClause:52,FROM:53,DatasetClause_option0:54,iri:55,WhereClause_option0:56,GroupGraphPattern:57,SolutionModifier_option0:58,SolutionModifierNoGroup_option0:59,SolutionModifierNoGroup_option1:60,SolutionModifierNoGroup_option2:61,GroupClause:62,GROUP:63,BY:64,GroupClause_repetition_plus0:65,GroupCondition:66,BuiltInCall:67,FunctionCall:68,HavingClause:69,HAVING:70,HavingClause_repetition_plus0:71,OrderClause:72,ORDER:73,OrderClause_repetition_plus0:74,OrderCondition:75,ASC:76,BrackettedExpression:77,DESC:78,Constraint:79,LimitOffsetClauses:80,LIMIT:81,INTEGER:82,OFFSET:83,ValuesClause:84,VALUES:85,InlineData:86,VAR:87,InlineData_repetition0:88,NIL:89,InlineData_repetition1:90,InlineData_repetition_plus2:91,InlineData_repetition3:92,DataBlock:93,DataBlockValueList:94,DataBlockValueList_repetition_plus0:95,Update:96,Update_repetition0:97,Update1:98,Update_option0:99,LOAD:100,Update1_option0:101,Update1_option1:102,Update1_group0:103,Update1_option2:104,GraphRefAll:105,Update1_group1:106,Update1_option3:107,GraphOrDefault:108,TO:109,CREATE:110,Update1_option4:111,GRAPH:112,INSERTDATA:113,QuadPattern:114,DELETEDATA:115,DELETEWHERE:116,Update1_option5:117,InsertDeleteClause:118,Update1_repetition0:119,IntoGraphClause:120,INTO:121,GraphRef:122,DELETE:123,InsertDeleteClause_option0:124,InsertClause:125,INSERT:126,UsingClause:127,USING:128,UsingClause_option0:129,WithClause:130,WITH:131,DEFAULT:132,GraphOrDefault_option0:133,GraphRefAll_group0:134,Quads:135,Quads_option0:136,Quads_repetition0:137,QuadsNotTriples:138,VarOrIri:139,QuadsNotTriples_option0:140,QuadsNotTriples_option1:141,QuadsNotTriples_option2:142,TriplesTemplate:143,TriplesTemplate_repetition0:144,TriplesSameSubject:145,TriplesTemplate_option0:146,GroupGraphPatternSub:147,GroupGraphPatternSub_option0:148,GroupGraphPatternSub_repetition0:149,GroupGraphPatternSubTail:150,GraphPatternNotTriples:151,GroupGraphPatternSubTail_option0:152,GroupGraphPatternSubTail_option1:153,TriplesBlock:154,TriplesBlock_repetition0:155,TriplesSameSubjectPath:156,TriplesBlock_option0:157,GroupOrUnionGraphPattern:158,OPTIONAL:159,MINUS:160,SERVICE:161,GraphPatternNotTriples_option0:162,FILTER:163,BIND:164,InlineDataOneVar:165,InlineDataFull:166,InlineDataOneVar_repetition0:167,InlineDataFull_repetition0:168,InlineDataFull_repetition_plus1:169,InlineDataFull_repetition2:170,DataBlockValue:171,Literal:172,QuotedTriple:173,UNDEF:174,GroupOrUnionGraphPattern_repetition0:175,ArgList:176,ArgList_option0:177,ArgList_repetition0:178,ExpressionList:179,ExpressionList_repetition0:180,ConstructTemplate_option0:181,ConstructTriples:182,ConstructTriples_repetition0:183,ConstructTriples_option0:184,VarOrTermOrQuotedTP:185,PropertyListNotEmpty:186,TriplesNode:187,PropertyList:188,PropertyList_option0:189,VerbObjectList:190,PropertyListNotEmpty_repetition0:191,SemiOptionalVerbObjectList:192,";":193,SemiOptionalVerbObjectList_option0:194,Verb:195,ObjectList:196,a:197,ObjectList_repetition0:198,Object:199,GraphNode:200,Object_option0:201,PropertyListPathNotEmpty:202,TriplesNodePath:203,TriplesSameSubjectPath_option0:204,O:205,PropertyListPathNotEmpty_repetition0:206,PropertyListPathNotEmptyTail:207,O_group0:208,ObjectListPath:209,ObjectListPath_repetition0:210,ObjectPath:211,GraphNodePath:212,ObjectPath_option0:213,Path:214,Path_repetition0:215,PathSequence:216,PathSequence_repetition0:217,PathEltOrInverse:218,PathElt:219,PathPrimary:220,PathElt_option0:221,PathEltOrInverse_option0:222,IriOrA:223,"!":224,PathNegatedPropertySet:225,PathOneInPropertySet:226,PathNegatedPropertySet_repetition0:227,PathNegatedPropertySet_option0:228,"^":229,TriplesNode_repetition_plus0:230,"[":231,"]":232,TriplesNodePath_repetition_plus0:233,VarOrTermOrQuotedTPExpr:234,VarOrTerm:235,GraphTerm:236,BlankNode:237,ConditionalOrExpression:238,ConditionalAndExpression:239,ConditionalOrExpression_repetition0:240,ConditionalOrExpressionTail:241,"||":242,RelationalExpression:243,ConditionalAndExpression_repetition0:244,ConditionalAndExpressionTail:245,"&&":246,NumericExpression:247,RelationalExpression_group0:248,RelationalExpression_option0:249,IN:250,MultiplicativeExpression:251,NumericExpression_repetition0:252,AdditiveExpressionTail:253,AdditiveExpressionTail_group0:254,NumericLiteralPositive:255,AdditiveExpressionTail_repetition0:256,NumericLiteralNegative:257,AdditiveExpressionTail_repetition1:258,UnaryExpression:259,MultiplicativeExpression_repetition0:260,MultiplicativeExpressionTail:261,MultiplicativeExpressionTail_group0:262,"+":263,PrimaryExpression:264,"-":265,ExprQuotedTP:266,Aggregate:267,FUNC_ARITY0:268,FUNC_ARITY1:269,FUNC_ARITY1_SPARQL_STAR:270,FUNC_ARITY2:271,",":272,FUNC_ARITY3:273,FUNC_ARITY3_SPARQL_STAR:274,BuiltInCall_group0:275,BOUND:276,BNODE:277,BuiltInCall_option0:278,EXISTS:279,COUNT:280,Aggregate_option0:281,Aggregate_group0:282,FUNC_AGGREGATE:283,Aggregate_option1:284,GROUP_CONCAT:285,Aggregate_option2:286,Aggregate_option3:287,GroupConcatSeparator:288,SEPARATOR:289,"=":290,String:291,LANGTAG:292,"^^":293,DECIMAL:294,DOUBLE:295,BOOLEAN:296,INTEGER_POSITIVE:297,DECIMAL_POSITIVE:298,DOUBLE_POSITIVE:299,INTEGER_NEGATIVE:300,DECIMAL_NEGATIVE:301,DOUBLE_NEGATIVE:302,STRING_LITERAL1:303,STRING_LITERAL2:304,STRING_LITERAL_LONG1:305,STRING_LITERAL_LONG2:306,PrefixedName:307,PNAME_LN:308,BLANK_NODE_LABEL:309,ANON:310,QuotedTP:311,"<<":312,qtSubjectOrObject:313,">>":314,DataValueTerm:315,AnnotationPattern:316,"{|":317,"|}":318,AnnotationPatternPath:319,ExprVarOrTerm:320,QueryOrUpdate_group0_option0:321,Prologue_repetition0_group0:322,Qry_group0_repetition_plus0:323,SelectClauseBase_option0_group0:324,DISTINCT:325,REDUCED:326,NAMED:327,SILENT:328,CLEAR:329,DROP:330,ADD:331,MOVE:332,COPY:333,ALL:334,".":335,UNION:336,"|":337,"/":338,PathElt_option0_group0:339,"?":340,"!=":341,"<":342,">":343,"<=":344,">=":345,NOT:346,CONCAT:347,COALESCE:348,SUBSTR:349,REGEX:350,REPLACE:351,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",12:"BASE",13:"IRIREF",15:"PREFIX",16:"PNAME_NS",24:"CONSTRUCT",28:"WHERE",29:"{",31:"}",32:"DESCRIBE",36:"ASK",39:"*",41:"SELECT",45:"(",47:"AS",48:")",53:"FROM",63:"GROUP",64:"BY",70:"HAVING",73:"ORDER",76:"ASC",78:"DESC",81:"LIMIT",82:"INTEGER",83:"OFFSET",85:"VALUES",87:"VAR",89:"NIL",100:"LOAD",109:"TO",110:"CREATE",112:"GRAPH",113:"INSERTDATA",115:"DELETEDATA",116:"DELETEWHERE",121:"INTO",123:"DELETE",126:"INSERT",128:"USING",131:"WITH",132:"DEFAULT",159:"OPTIONAL",160:"MINUS",161:"SERVICE",163:"FILTER",164:"BIND",174:"UNDEF",193:";",197:"a",224:"!",229:"^",231:"[",232:"]",242:"||",246:"&&",250:"IN",263:"+",265:"-",268:"FUNC_ARITY0",269:"FUNC_ARITY1",270:"FUNC_ARITY1_SPARQL_STAR",271:"FUNC_ARITY2",272:",",273:"FUNC_ARITY3",274:"FUNC_ARITY3_SPARQL_STAR",276:"BOUND",277:"BNODE",279:"EXISTS",280:"COUNT",283:"FUNC_AGGREGATE",285:"GROUP_CONCAT",289:"SEPARATOR",290:"=",292:"LANGTAG",293:"^^",294:"DECIMAL",295:"DOUBLE",296:"BOOLEAN",297:"INTEGER_POSITIVE",298:"DECIMAL_POSITIVE",299:"DOUBLE_POSITIVE",300:"INTEGER_NEGATIVE",301:"DECIMAL_NEGATIVE",302:"DOUBLE_NEGATIVE",303:"STRING_LITERAL1",304:"STRING_LITERAL2",305:"STRING_LITERAL_LONG1",306:"STRING_LITERAL_LONG2",308:"PNAME_LN",309:"BLANK_NODE_LABEL",310:"ANON",312:"<<",314:">>",317:"{|",318:"|}",325:"DISTINCT",326:"REDUCED",327:"NAMED",328:"SILENT",329:"CLEAR",330:"DROP",331:"ADD",332:"MOVE",333:"COPY",334:"ALL",335:".",336:"UNION",337:"|",338:"/",340:"?",341:"!=",342:"<",343:">",344:"<=",345:">=",346:"NOT",347:"CONCAT",348:"COALESCE",349:"SUBSTR",350:"REGEX",351:"REPLACE"},productions_:[0,[3,3],[7,2],[4,1],[11,2],[14,3],[8,4],[8,4],[8,5],[8,7],[8,5],[8,4],[17,2],[21,2],[38,2],[43,1],[43,5],[49,4],[49,4],[52,3],[19,2],[23,2],[20,3],[62,3],[66,1],[66,1],[66,3],[66,5],[66,1],[69,2],[72,3],[75,2],[75,2],[75,1],[75,1],[80,2],[80,2],[80,4],[80,4],[84,2],[86,4],[86,4],[86,6],[86,2],[94,3],[96,3],[98,4],[98,3],[98,5],[98,4],[98,2],[98,2],[98,2],[98,5],[120,2],[118,3],[118,1],[125,2],[127,3],[130,2],[108,1],[108,2],[122,2],[105,1],[105,1],[114,3],[135,2],[138,7],[143,3],[57,3],[57,3],[147,2],[150,3],[154,3],[151,1],[151,2],[151,2],[151,3],[151,4],[151,2],[151,6],[151,1],[93,1],[93,1],[165,4],[166,4],[166,6],[171,1],[171,1],[171,1],[171,1],[158,2],[79,1],[79,1],[79,1],[68,2],[176,1],[176,5],[179,1],[179,4],[25,3],[182,3],[145,2],[145,2],[188,1],[186,2],[192,2],[190,2],[195,1],[195,1],[196,2],[199,2],[156,2],[156,2],[202,2],[207,1],[207,2],[205,2],[209,2],[211,2],[214,2],[216,2],[219,2],[218,2],[220,1],[220,2],[220,3],[225,1],[225,1],[225,4],[226,1],[226,2],[187,3],[187,3],[203,3],[203,3],[200,1],[200,1],[212,1],[212,1],[234,1],[235,1],[235,1],[139,1],[139,1],[44,1],[236,1],[236,1],[236,1],[236,1],[46,1],[238,2],[241,2],[239,2],[245,2],[243,1],[243,3],[243,4],[247,2],[253,2],[253,2],[253,2],[251,2],[261,2],[259,2],[259,2],[259,2],[259,1],[264,1],[264,1],[264,1],[264,1],[264,1],[264,1],[264,1],[77,3],[67,1],[67,2],[67,4],[67,4],[67,6],[67,8],[67,8],[67,2],[67,4],[67,2],[67,4],[67,3],[267,5],[267,5],[267,6],[288,4],[172,1],[172,2],[172,3],[172,1],[172,1],[172,1],[172,1],[172,1],[172,1],[255,1],[255,1],[255,1],[257,1],[257,1],[257,1],[291,1],[291,1],[291,1],[291,1],[55,1],[55,1],[307,1],[307,1],[237,1],[237,1],[311,5],[173,5],[313,1],[313,1],[313,1],[313,1],[313,1],[315,1],[315,1],[315,1],[185,1],[185,1],[185,1],[316,3],[319,3],[266,5],[320,1],[320,1],[320,1],[223,1],[223,1],[321,0],[321,1],[5,1],[5,1],[5,1],[9,0],[9,1],[322,1],[322,1],[10,0],[10,2],[18,0],[18,2],[22,0],[22,2],[26,0],[26,2],[27,0],[27,2],[30,0],[30,1],[323,1],[323,2],[33,1],[33,1],[34,0],[34,2],[35,0],[35,1],[37,0],[37,2],[40,1],[40,2],[324,1],[324,1],[42,0],[42,1],[50,0],[50,1],[51,0],[51,1],[54,0],[54,1],[56,0],[56,1],[58,0],[58,1],[59,0],[59,1],[60,0],[60,1],[61,0],[61,1],[65,1],[65,2],[71,1],[71,2],[74,1],[74,2],[88,0],[88,2],[90,0],[90,2],[91,1],[91,2],[92,0],[92,2],[95,1],[95,2],[97,0],[97,4],[99,0],[99,2],[101,0],[101,1],[102,0],[102,1],[103,1],[103,1],[104,0],[104,1],[106,1],[106,1],[106,1],[107,0],[107,1],[111,0],[111,1],[117,0],[117,1],[119,0],[119,2],[124,0],[124,1],[129,0],[129,1],[133,0],[133,1],[134,1],[134,1],[134,1],[136,0],[136,1],[137,0],[137,2],[140,0],[140,1],[141,0],[141,1],[142,0],[142,1],[144,0],[144,3],[146,0],[146,1],[148,0],[148,1],[149,0],[149,2],[152,0],[152,1],[153,0],[153,1],[155,0],[155,3],[157,0],[157,1],[162,0],[162,1],[167,0],[167,2],[168,0],[168,2],[169,1],[169,2],[170,0],[170,2],[175,0],[175,3],[177,0],[177,1],[178,0],[178,3],[180,0],[180,3],[181,0],[181,1],[183,0],[183,3],[184,0],[184,1],[189,0],[189,1],[191,0],[191,2],[194,0],[194,1],[198,0],[198,3],[201,0],[201,1],[204,0],[204,1],[206,0],[206,2],[208,1],[208,1],[210,0],[210,3],[213,0],[213,1],[215,0],[215,3],[217,0],[217,3],[339,1],[339,1],[339,1],[221,0],[221,1],[222,0],[222,1],[227,0],[227,3],[228,0],[228,1],[230,1],[230,2],[233,1],[233,2],[240,0],[240,2],[244,0],[244,2],[248,1],[248,1],[248,1],[248,1],[248,1],[248,1],[249,0],[249,1],[252,0],[252,2],[254,1],[254,1],[256,0],[256,2],[258,0],[258,2],[260,0],[260,2],[262,1],[262,1],[275,1],[275,1],[275,1],[275,1],[275,1],[278,0],[278,1],[281,0],[281,1],[282,1],[282,1],[284,0],[284,1],[286,0],[286,1],[287,0],[287,1]],performAction:function(je,He,Xe,yt,bt,ae,Ri){var oe=ae.length-1;switch(bt){case 1:if(ae[oe-1]=ae[oe-1]||{},Bt.base&&(ae[oe-1].base=Bt.base),Bt.base="",ae[oe-1].prefixes=Bt.prefixes,Bt.prefixes=null,Bt.pathOnly){if(ae[oe-1].type==="path"||"termType"in ae[oe-1])return ae[oe-1];throw new Error("Received full SPARQL query in path only mode")}else if(ae[oe-1].type==="path"||"termType"in ae[oe-1])throw new Error("Received only path in full SPARQL mode");if(ae[oe-1].type==="update"){const Ft={};for(const er of ae[oe-1].updates)if(er.updateType==="insert"){const Dt={};for(const bn of er.insert)if(bn.type==="bgp"||bn.type==="graph")for(const vn of bn.triples)vn.subject.termType==="BlankNode"&&(Dt[vn.subject.value]=!0),vn.predicate.termType==="BlankNode"&&(Dt[vn.predicate.value]=!0),vn.object.termType==="BlankNode"&&(Dt[vn.object.value]=!0);for(const bn of Object.keys(Dt)){if(Ft[bn])throw new Error("Detected reuse blank node across different INSERT DATA clauses");Ft[bn]=!0}}}return ae[oe-1];case 2:this.$={...ae[oe-1],...ae[oe],type:"query"};break;case 4:Bt.base=kf(ae[oe]);break;case 5:Bt.prefixes||(Bt.prefixes={}),ae[oe-1]=ae[oe-1].substr(0,ae[oe-1].length-1),ae[oe]=kf(ae[oe]),Bt.prefixes[ae[oe-1]]=ae[oe];break;case 6:this.$={...ae[oe-3],...Vu(ae[oe-2]),...ae[oe-1],...ae[oe]};break;case 7:if(!Bt.skipValidation&&(oE(ae[oe-3].variables.map(er=>sE(er.expression))).some(er=>er.aggregation==="count"&&!(er.expression instanceof z1))||ae[oe].group)){for(const er of ae[oe-3].variables)if(er.termType==="Variable"){if(!ae[oe].group||!ae[oe].group.map(Dt=>Rl(Dt)).includes(Rl(er)))throw Error("Projection of ungrouped variable (?"+Rl(er)+")")}else if(sE(er.expression).length===0){const Dt=pre(er.expression);for(const bn of Dt)if(!ae[oe].group||!ae[oe].group.map||!ae[oe].group.map(vn=>Rl(vn)).includes(Rl(bn)))throw Error("Use of ungrouped variable in projection of operation (?"+Rl(bn)+")")}}const xl=ae[oe-1].where.filter(Ft=>Ft.type==="query");if(xl.length>0){const Ft=ae[oe-3].variables.filter(Dt=>Dt.variable&&Dt.variable.value).map(Dt=>Dt.variable.value),er=oE(xl.map(Dt=>Dt.variables)).map(Dt=>Dt.value||Dt.variable.value);for(const Dt of Ft)if(er.indexOf(Dt)>=0)throw Error("Target id of 'AS' (?"+Dt+") already used in subquery")}this.$=Hr(ae[oe-3],Vu(ae[oe-2]),ae[oe-1],ae[oe]);break;case 8:this.$=Hr({queryType:"CONSTRUCT",template:ae[oe-3]},Vu(ae[oe-2]),ae[oe-1],ae[oe]);break;case 9:this.$=Hr({queryType:"CONSTRUCT",template:ae[oe-2]=ae[oe-2]?ae[oe-2].triples:[]},Vu(ae[oe-5]),{where:[{type:"bgp",triples:Tl([],ae[oe-2])}]},ae[oe]);break;case 10:this.$=Hr({queryType:"DESCRIBE",variables:ae[oe-3]==="*"?[new z1]:ae[oe-3]},Vu(ae[oe-2]),ae[oe-1],ae[oe]);break;case 11:this.$=Hr({queryType:"ASK"},Vu(ae[oe-2]),ae[oe-1],ae[oe]);break;case 12:this.$=Hr(ae[oe-1],{variables:[new z1]});break;case 13:const dE=ae[oe].map(Ft=>Ft.value||Ft.variable.value),Y1=yre(dE);if(Y1.length>0)throw Error("Two or more of the resulting columns have the same name (?"+Y1[0]+")");this.$=Hr(ae[oe-1],{variables:ae[oe]});break;case 14:this.$=Hr({queryType:"SELECT"},ae[oe]&&(ae[oe-1]=Hn(ae[oe]),ae[oe]={},ae[oe][ae[oe-1]]=!0,ae[oe]));break;case 16:case 27:this.$=El(ae[oe-3],{variable:ae[oe-1]});break;case 17:case 18:this.$=Hr(ae[oe-3],ae[oe-2],ae[oe-1],ae[oe],{type:"query"});break;case 19:case 58:this.$={iri:ae[oe],named:!!ae[oe-1]};break;case 20:this.$={where:ae[oe].patterns};break;case 21:this.$=Hr(ae[oe-1],ae[oe]);break;case 22:this.$=Hr(ae[oe-2],ae[oe-1],ae[oe]);break;case 23:this.$={group:ae[oe]};break;case 24:case 25:case 28:case 31:case 33:case 34:this.$=El(ae[oe]);break;case 26:this.$=El(ae[oe-1]);break;case 29:this.$={having:ae[oe]};break;case 30:this.$={order:ae[oe]};break;case 32:this.$=El(ae[oe],{descending:!0});break;case 35:this.$={limit:Ol(ae[oe])};break;case 36:this.$={offset:Ol(ae[oe])};break;case 37:this.$={limit:Ol(ae[oe-2]),offset:Ol(ae[oe])};break;case 38:this.$={limit:Ol(ae[oe]),offset:Ol(ae[oe-2])};break;case 39:case 43:this.$={type:"values",values:ae[oe]};break;case 40:case 84:this.$=ae[oe-1].map(Ft=>({[ae[oe-3]]:Ft}));break;case 41:case 85:this.$=ae[oe-1].map(()=>({}));break;case 42:case 86:var No=ae[oe-4].length;ae[oe-4]=ae[oe-4].map(eE),this.$=ae[oe-1].map(function(Ft){if(Ft.length!==No)throw Error("Inconsistent VALUES length");for(var er={},Dt=0;Dter.type==="bind")){const er=ae[oe-1].indexOf(Ft),Dt=new Set;for(const bn of ae[oe-1].slice(0,er))(bn.type==="group"||bn.type==="bgp")&&Q4(bn).forEach(vn=>Dt.add(vn));if(Dt.has(Ft.variable.value))throw Error("Variable used to bind is already bound (?"+Ft.variable.value+")")}this.$={type:"group",patterns:ae[oe-1]};break;case 71:this.$=ae[oe-1]?Ha([ae[oe-1]],ae[oe]):Ha(ae[oe]);break;case 72:this.$=ae[oe]?[ae[oe-2],ae[oe]]:ae[oe-2];break;case 75:this.$=Hr(ae[oe],{type:"optional"});break;case 76:this.$=Hr(ae[oe],{type:"minus"});break;case 77:this.$=Hr(ae[oe],{type:"graph",name:ae[oe-1]});break;case 78:this.$=Hr(ae[oe],{type:"service",name:ae[oe-1],silent:!!ae[oe-2]});break;case 79:this.$={type:"filter",expression:ae[oe]};break;case 80:this.$={type:"bind",variable:ae[oe-1],expression:ae[oe-3]};break;case 89:this.$=Hf(ae[oe]);break;case 90:this.$=void 0;break;case 91:this.$=ae[oe-1].length?{type:"union",patterns:Ha(ae[oe-1].map(rE),[rE(ae[oe])])}:ae[oe];break;case 95:this.$={...ae[oe],function:ae[oe-1]};break;case 96:this.$={type:"functionCall",args:[]};break;case 97:this.$={type:"functionCall",args:ku(ae[oe-2],ae[oe-1]),distinct:!!ae[oe-3]};break;case 98:case 115:case 128:case 247:case 249:case 251:case 253:case 255:case 263:case 267:case 297:case 299:case 303:case 307:case 328:case 341:case 349:case 355:case 361:case 367:case 369:case 373:case 375:case 379:case 381:case 385:case 391:case 395:case 401:case 405:case 409:case 411:case 420:case 428:case 430:case 440:case 444:case 446:case 448:this.$=[];break;case 99:this.$=ku(ae[oe-2],ae[oe-1]);break;case 101:this.$=Ha(ae[oe-2],[ae[oe-1]]);break;case 102:case 112:this.$=cE(ae[oe].map(Ft=>Hr(Ls(ae[oe-1]),Ft)));break;case 103:this.$=cE(Tl(ae[oe].map(Ft=>Hr(Ls(ae[oe-1].entity),Ft)),ae[oe-1].triples));break;case 105:this.$=Ha([ae[oe-1]],ae[oe]);break;case 106:this.$=Ha(ae[oe]);break;case 107:this.$=aE(ae[oe-1],ae[oe]);break;case 109:case 237:this.$=Bt.factory.namedNode(ire);break;case 110:case 118:this.$=ku(ae[oe-1],ae[oe]);break;case 111:this.$=ae[oe]?{annotation:ae[oe],object:ae[oe-1]}:ae[oe-1];break;case 113:this.$=ae[oe]?cE(Tl(ae[oe].map(Ft=>Hr(Ls(ae[oe-1].entity),Ft)),ae[oe-1].triples)):ae[oe-1].triples;break;case 114:this.$=aE(...ae[oe-1],ae[oe]);break;case 116:this.$=aE(...ae[oe]);break;case 117:case 159:case 163:this.$=[ae[oe-1],ae[oe]];break;case 119:this.$=ae[oe]?{object:ae[oe-1],annotation:ae[oe]}:ae[oe-1];break;case 120:this.$=ae[oe-1].length?Al("|",ku(ae[oe-1],ae[oe])):ae[oe];break;case 121:this.$=ae[oe-1].length?Al("/",ku(ae[oe-1],ae[oe])):ae[oe];break;case 122:this.$=ae[oe]?Al(ae[oe],[ae[oe-1]]):ae[oe-1];break;case 123:this.$=ae[oe-1]?Al(ae[oe-1],[ae[oe]]):ae[oe];break;case 125:case 131:this.$=Al(ae[oe-1],[ae[oe]]);break;case 129:this.$=Al("|",ku(ae[oe-2],ae[oe-1]));break;case 132:case 134:this.$=fre(ae[oe-1]);break;case 133:case 135:this.$=hre(ae[oe-1]);break;case 140:this.$={entity:ae[oe],triples:[]};break;case 145:this.$=eE(ae[oe]);break;case 149:this.$=Bt.factory.namedNode(F4);break;case 151:case 153:case 158:case 162:this.$=tE(ae[oe-1],ae[oe]);break;case 152:this.$=["||",ae[oe]];break;case 154:this.$=["&&",ae[oe]];break;case 156:this.$=_n(ae[oe-1],[ae[oe-2],ae[oe]]);break;case 157:this.$=_n(ae[oe-2]?"notin":"in",[ae[oe-3],ae[oe]]);break;case 160:this.$=["+",tE(ae[oe-1],ae[oe])];break;case 161:var J1=Qa(ae[oe-1].value.replace("-",""),ae[oe-1].datatype);this.$=["-",tE(J1,ae[oe])];break;case 164:this.$=_n("UPLUS",[ae[oe]]);break;case 165:this.$=_n(ae[oe-1],[ae[oe]]);break;case 166:this.$=_n("UMINUS",[ae[oe]]);break;case 177:this.$=_n(Hn(ae[oe-1]));break;case 178:this.$=_n(Hn(ae[oe-3]),[ae[oe-1]]);break;case 179:this.$=Hf(_n(Hn(ae[oe-3]),[ae[oe-1]]));break;case 180:this.$=_n(Hn(ae[oe-5]),[ae[oe-3],ae[oe-1]]);break;case 181:this.$=_n(Hn(ae[oe-7]),[ae[oe-5],ae[oe-3],ae[oe-1]]);break;case 182:this.$=Hf(_n(Hn(ae[oe-7]),[ae[oe-5],ae[oe-3],ae[oe-1]]));break;case 183:this.$=_n(Hn(ae[oe-1]),ae[oe]);break;case 184:this.$=_n("bound",[eE(ae[oe-1])]);break;case 185:this.$=_n(ae[oe-1],[]);break;case 186:this.$=_n(ae[oe-3],[ae[oe-1]]);break;case 187:this.$=_n(ae[oe-2]?"notexists":"exists",[rE(ae[oe])]);break;case 188:case 189:this.$=El(ae[oe-1],{type:"aggregate",aggregation:Hn(ae[oe-4]),distinct:!!ae[oe-2]});break;case 190:this.$=El(ae[oe-2],{type:"aggregate",aggregation:Hn(ae[oe-5]),distinct:!!ae[oe-3],separator:typeof ae[oe-1]=="string"?ae[oe-1]:" "});break;case 192:this.$=Qa(ae[oe]);break;case 193:this.$=ure(ae[oe-1],Hn(ae[oe].substr(1)));break;case 194:this.$=Qa(ae[oe-2],ae[oe]);break;case 195:case 204:this.$=Qa(ae[oe],B4);break;case 196:case 205:this.$=Qa(ae[oe],q4);break;case 197:case 206:this.$=Qa(Hn(ae[oe]),$4);break;case 200:this.$=Qa(ae[oe].toLowerCase(),ore);break;case 201:this.$=Qa(ae[oe].substr(1),B4);break;case 202:this.$=Qa(ae[oe].substr(1),q4);break;case 203:this.$=Qa(ae[oe].substr(1).toLowerCase(),$4);break;case 207:case 208:this.$=H4(ae[oe],1);break;case 209:case 210:this.$=H4(ae[oe],3);break;case 211:this.$=Bt.factory.namedNode(kf(ae[oe]));break;case 213:var X1=ae[oe].indexOf(":"),Qr=ae[oe].substr(0,X1),za=Bt.prefixes[Qr];if(!za)throw new Error("Unknown prefix: "+Qr);var Hu=kf(za+ae[oe].substr(X1+1));this.$=Bt.factory.namedNode(Hu);break;case 214:if(ae[oe]=ae[oe].substr(0,ae[oe].length-1),!(ae[oe]in Bt.prefixes))throw new Error("Unknown prefix: "+ae[oe]);var Hu=kf(Bt.prefixes[ae[oe]]);this.$=Bt.factory.namedNode(Hu);break;case 215:this.$=Vf(ae[oe].replace(/^(_:)/,""));break;case 216:this.$=Vf();break;case 217:case 218:case 232:this.$=Hf(nE(ae[oe-3],ae[oe-2],ae[oe-1]));break;case 230:case 231:this.$=Hf(ae[oe-1]);break;case 248:case 250:case 252:case 254:case 256:case 260:case 264:case 268:case 270:case 292:case 294:case 296:case 298:case 300:case 302:case 304:case 306:case 329:case 342:case 356:case 368:case 370:case 372:case 374:case 392:case 402:case 425:case 427:case 429:case 431:case 441:case 445:case 447:case 449:ae[oe-1].push(ae[oe]);break;case 259:case 269:case 291:case 293:case 295:case 301:case 305:case 371:case 424:case 426:this.$=[ae[oe]];break;case 308:ae[oe-3].push(ae[oe-2]);break;case 350:case 362:case 376:case 380:case 382:case 386:case 396:case 406:case 410:case 412:case 421:ae[oe-2].push(ae[oe-1]);break}},table:[t(e,r,{3:1,4:2,10:3}),{1:[3]},t(n,[2,307],{5:4,7:5,321:6,214:7,8:8,96:9,215:10,17:11,21:12,97:16,38:17,6:[2,238],13:a,16:a,45:a,197:a,224:a,229:a,308:a,24:[1,13],32:[1,14],36:[1,15],41:s}),t([6,13,16,24,32,36,41,45,100,110,113,115,116,123,126,131,197,224,229,308,329,330,331,332,333],[2,3],{322:19,11:20,14:21,12:[1,22],15:[1,23]}),{6:[1,24]},{6:[2,240]},{6:[2,241]},{6:[2,242]},{6:[2,243],9:25,84:26,85:o},{6:[2,239]},t(u,[2,411],{216:28,217:29}),t(c,[2,249],{18:30}),t(c,[2,251],{22:31}),t(l,[2,255],{25:32,27:33,29:[1,34]}),{13:d,16:f,33:35,39:[1,37],44:39,55:40,87:h,139:38,307:43,308:p,323:36},t(c,[2,267],{37:46}),t(m,[2,326],{98:47,103:49,106:50,117:55,130:61,100:[1,48],110:[1,51],113:[1,52],115:[1,53],116:[1,54],131:[1,62],329:[1,56],330:[1,57],331:[1,58],332:[1,59],333:[1,60]}),{39:[1,63],40:64,43:65,44:66,45:y,87:h},t(g,[2,273],{42:68,324:69,325:[1,70],326:[1,71]}),t(e,[2,248]),t(e,[2,245]),t(e,[2,246]),{13:[1,72]},{16:[1,73]},{1:[2,1]},{6:[2,2]},{6:[2,244]},{45:[1,77],85:[1,78],86:74,87:[1,75],89:[1,76]},t([6,13,16,45,48,82,87,89,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312],[2,120],{337:[1,79]}),t(b,[2,418],{218:80,222:81,229:[1,82]}),{19:83,28:v,29:_,52:84,53:w,56:85},{19:88,28:v,29:_,52:89,53:w,56:85},t(c,[2,253],{26:90}),{28:[1,91],52:92,53:w},t(E,[2,385],{181:93,182:94,183:95,31:[2,383]}),t(O,[2,263],{34:96}),t(O,[2,261],{44:39,55:40,307:43,139:97,13:d,16:f,87:h,308:p}),t(O,[2,262]),t(L,[2,259]),t(F,[2,143]),t(F,[2,144]),t([6,13,16,28,29,31,39,45,47,48,53,63,70,73,76,78,81,82,83,85,87,89,112,159,160,161,163,164,193,197,224,229,231,232,242,246,250,263,265,268,269,270,271,272,273,274,276,277,279,280,283,285,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314,317,318,335,338,341,342,343,344,345,346,347,348,349,350,351],[2,145]),t(x,[2,211]),t(x,[2,212]),t(x,[2,213]),t(x,[2,214]),{19:98,28:v,29:_,52:99,53:w,56:85},{6:[2,309],99:100,193:[1,101]},t(P,[2,311],{101:102,328:[1,103]}),t(j,[2,317],{104:104,328:[1,105]}),t(N,[2,322],{107:106,328:[1,107]}),{111:108,112:[2,324],328:[1,109]},{29:V,114:110},{29:V,114:112},{29:V,114:113},{118:114,123:[1,115],125:116,126:$},t(q,[2,315]),t(q,[2,316]),t(H,[2,319]),t(H,[2,320]),t(H,[2,321]),t(m,[2,327]),{13:d,16:f,55:118,307:43,308:p},t(c,[2,12]),t(c,[2,13],{44:66,43:119,45:y,87:h}),t(X,[2,269]),t(X,[2,15]),{13:d,16:f,44:136,45:Y,46:120,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},t(g,[2,14]),t(g,[2,274]),t(g,[2,271]),t(g,[2,272]),t(e,[2,4]),{13:[1,177]},t(fe,[2,39]),{29:[1,178]},{29:[1,179]},{87:[1,181],91:180},{45:[1,187],87:[1,185],89:[1,186],93:182,165:183,166:184},t(u,[2,410]),t([6,13,16,45,48,82,87,89,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,337],[2,121],{338:[1,188]}),{13:d,16:f,45:[1,193],55:194,197:ge,219:189,220:190,223:191,224:[1,192],307:43,308:p},t(b,[2,419]),t(Le,ee,{20:196,59:197,69:198,70:Oe}),t(c,[2,250]),{29:De,57:200},t(P,[2,279],{54:202,327:[1,203]}),{29:[2,282]},t(Ue,Ye,{23:204,58:205,62:206,63:ut}),t(c,[2,252]),{19:208,28:v,29:_,52:209,53:w,56:85},{29:[1,210]},t(l,[2,256]),{31:[1,211]},{31:[2,384]},{13:d,16:f,44:215,45:at,55:220,82:he,87:h,89:ct,145:212,172:221,185:213,187:214,231:ht,236:216,237:222,255:154,257:155,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,309:te,310:S,311:217,312:A},t(C,[2,265],{56:85,35:227,52:228,19:229,28:v,29:_,53:w}),t(L,[2,260]),t(Ue,Ye,{58:205,62:206,23:230,63:ut}),t(c,[2,268]),{6:[2,45]},t(e,r,{10:3,4:231}),{13:d,16:f,55:232,307:43,308:p},t(P,[2,312]),{105:233,112:J,122:234,132:[1,237],134:235,327:[1,238],334:[1,239]},t(j,[2,318]),t(P,ie,{108:240,133:242,112:be,132:ve}),t(N,[2,323]),{112:[1,244]},{112:[2,325]},t(Fe,[2,50]),t(E,Je,{135:245,136:246,143:247,144:248,31:lt,112:lt}),t(Fe,[2,51]),t(Fe,[2,52]),t(rt,[2,328],{119:249}),{29:V,114:250},t(rt,[2,56]),{29:V,114:251},t(m,[2,59]),t(X,[2,270]),{47:[1,252]},t(Qe,[2,150]),t(di,[2,428],{240:253}),t(et,[2,430],{244:254}),t(et,[2,155],{248:255,249:256,250:[2,438],290:[1,257],341:[1,258],342:[1,259],343:[1,260],344:[1,261],345:[1,262],346:[1,263]}),t($r,[2,440],{252:264}),t(Xt,[2,448],{260:265}),{13:d,16:f,44:136,45:Y,55:133,67:132,68:134,77:131,82:he,87:h,172:135,255:154,257:155,264:266,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},{13:d,16:f,44:136,45:Y,55:133,67:132,68:134,77:131,82:he,87:h,172:135,255:154,257:155,264:267,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},{13:d,16:f,44:136,45:Y,55:133,67:132,68:134,77:131,82:he,87:h,172:135,255:154,257:155,264:268,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},t(Xt,[2,167]),t(Xt,[2,168]),t(Xt,[2,169]),t(Xt,[2,170],{176:269,45:Gt,89:Nr}),t(Xt,[2,171]),t(Xt,[2,172]),t(Xt,[2,173]),t(Xt,[2,174]),{13:d,16:f,44:136,45:Y,46:272,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},t(Ct,[2,176]),{89:[1,273]},{45:[1,274]},{45:[1,275]},{45:[1,276]},{45:[1,277]},{45:[1,278]},{45:zi,89:Ai,179:279},{45:[1,282]},{45:[1,284],89:[1,283]},{279:[1,285]},t(or,[2,192],{292:[1,286],293:[1,287]}),t(or,[2,195]),t(or,[2,196]),t(or,[2,197]),t(or,[2,198]),t(or,[2,199]),t(or,[2,200]),{13:d,16:f,44:39,55:40,82:he,87:h,139:289,172:291,255:154,257:155,266:290,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,320:288},{45:[1,292]},{45:[1,293]},{45:[1,294]},t(xs,[2,452]),t(xs,[2,453]),t(xs,[2,454]),t(xs,[2,455]),t(xs,[2,456]),{279:[2,458]},t(xo,[2,207]),t(xo,[2,208]),t(xo,[2,209]),t(xo,[2,210]),t(or,[2,201]),t(or,[2,202]),t(or,[2,203]),t(or,[2,204]),t(or,[2,205]),t(or,[2,206]),t(e,[2,5]),t(Vr,[2,297],{88:295}),t(fi,[2,299],{90:296}),{48:[1,297],87:[1,298]},t(on,[2,301]),t(fe,[2,43]),t(fe,[2,82]),t(fe,[2,83]),{29:[1,299]},{29:[1,300]},{87:[1,302],169:301},t(u,[2,412]),t(Oi,[2,123]),t(Oi,[2,416],{221:303,339:304,39:[1,306],263:[1,307],340:[1,305]}),t(un,[2,124]),{13:d,16:f,45:[1,311],55:194,89:[1,310],197:ge,223:312,225:308,226:309,229:_a,307:43,308:p},t(u,a,{215:10,214:314}),t(un,[2,236]),t(un,[2,237]),t(Zr,[2,6]),t(Va,[2,287],{60:315,72:316,73:[1,317]}),t(Le,[2,286]),{13:d,16:f,45:Y,55:323,67:321,68:322,71:318,77:320,79:319,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,307:43,308:p,346:qe,347:W,348:D,349:B,350:K,351:ne},t([6,31,63,70,73,81,83,85],[2,20]),t(E,ba,{38:17,49:324,147:325,17:326,21:327,148:328,154:329,155:330,29:Un,31:Un,85:Un,112:Un,159:Un,160:Un,161:Un,163:Un,164:Un,41:s}),{13:d,16:f,55:331,307:43,308:p},t(P,[2,280]),t(Zr,[2,7]),t(Le,ee,{59:197,69:198,20:332,70:Oe}),t(Ue,[2,284]),{64:[1,333]},t(Ue,Ye,{58:205,62:206,23:334,63:ut}),t(c,[2,254]),t(E,Je,{144:248,30:335,143:336,31:[2,257]}),t(c,[2,100]),{31:[2,387],184:337,335:[1,338]},{13:d,16:f,44:39,55:40,87:h,139:342,186:339,190:340,195:341,197:Pn,307:43,308:p},t(Io,[2,389],{44:39,55:40,307:43,190:340,195:341,139:342,188:344,189:345,186:346,13:d,16:f,87:h,197:Pn,308:p}),t(va,[2,227]),t(va,[2,228]),t(va,[2,229]),{13:d,16:f,44:215,45:at,55:220,82:he,87:h,89:ct,172:221,185:351,187:350,200:348,230:347,231:ht,234:349,236:216,237:222,255:154,257:155,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,309:te,310:S,311:217,312:A},{13:d,16:f,44:39,55:40,87:h,139:342,186:352,190:340,195:341,197:Pn,307:43,308:p},t(va,[2,146]),t(va,[2,147]),t(va,[2,148]),t(va,[2,149]),{13:d,16:f,44:354,55:355,82:he,87:h,172:357,237:356,255:154,257:155,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,309:te,310:S,311:358,312:A,313:353},t(vl,[2,215]),t(vl,[2,216]),t(Ue,Ye,{58:205,62:206,23:359,63:ut}),t(O,[2,264]),t(C,[2,266]),t(Zr,[2,11]),t(n,[2,308],{6:[2,310]}),t(Fe,[2,313],{102:360,120:361,121:[1,362]}),t(Fe,[2,47]),t(Fe,[2,63]),t(Fe,[2,64]),{13:d,16:f,55:363,307:43,308:p},t(Fe,[2,336]),t(Fe,[2,337]),t(Fe,[2,338]),{109:[1,364]},t(ue,[2,60]),{13:d,16:f,55:365,307:43,308:p},t(P,[2,335]),{13:d,16:f,55:366,307:43,308:p},{31:[1,367]},t(ye,[2,341],{137:368}),t(ye,[2,340]),{13:d,16:f,44:215,45:at,55:220,82:he,87:h,89:ct,145:369,172:221,185:213,187:214,231:ht,236:216,237:222,255:154,257:155,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,309:te,310:S,311:217,312:A},{28:[1,370],127:371,128:[1,372]},t(rt,[2,330],{124:373,125:374,126:$}),t(rt,[2,57]),{44:375,87:h},t(Qe,[2,151],{241:376,242:[1,377]}),t(di,[2,153],{245:378,246:[1,379]}),{13:d,16:f,44:136,45:Y,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,247:380,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},{250:[1,381]},t(Ae,[2,432]),t(Ae,[2,433]),t(Ae,[2,434]),t(Ae,[2,435]),t(Ae,[2,436]),t(Ae,[2,437]),{250:[2,439]},t([47,48,193,242,246,250,272,290,341,342,343,344,345,346],[2,158],{253:382,254:383,255:384,257:385,263:[1,386],265:[1,387],297:Z,298:se,299:re,300:le,301:pe,302:_e}),t($r,[2,162],{261:388,262:389,39:Ze,338:it}),t(Xt,[2,164]),t(Xt,[2,165]),t(Xt,[2,166]),t(Ct,[2,95]),t(Ct,[2,96]),t(Ae,[2,377],{177:392,325:[1,393]}),{48:[1,394]},t(Ct,[2,177]),{13:d,16:f,44:136,45:Y,46:395,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},{13:d,16:f,44:136,45:Y,46:396,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},{13:d,16:f,44:136,45:Y,46:397,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},{13:d,16:f,44:136,45:Y,46:398,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},{13:d,16:f,44:136,45:Y,46:399,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},t(Ct,[2,183]),t(Ct,[2,98]),t(Ae,[2,381],{180:400}),{87:[1,401]},t(Ct,[2,185]),{13:d,16:f,44:136,45:Y,46:402,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},{29:De,57:403},t(or,[2,193]),{13:d,16:f,55:404,307:43,308:p},{13:d,16:f,44:39,55:40,87:h,139:342,195:405,197:Pn,307:43,308:p},t(ot,[2,233]),t(ot,[2,234]),t(ot,[2,235]),t(Nt,[2,459],{281:406,325:[1,407]}),t(Ae,[2,463],{284:408,325:[1,409]}),t(Ae,[2,465],{286:410,325:[1,411]}),{13:d,16:f,31:[1,412],55:414,82:he,171:413,172:415,173:416,174:Vt,255:154,257:155,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ir},{31:[1,419],89:[1,420]},{29:[1,421]},t(on,[2,302]),t(Vr,[2,367],{167:422}),t(fi,[2,369],{168:423}),{48:[1,424],87:[1,425]},t(on,[2,371]),t(Oi,[2,122]),t(Oi,[2,417]),t(Oi,[2,413]),t(Oi,[2,414]),t(Oi,[2,415]),t(un,[2,125]),t(un,[2,127]),t(un,[2,128]),t(Dr,[2,420],{227:426}),t(un,[2,130]),{13:d,16:f,55:194,197:ge,223:427,307:43,308:p},{48:[1,428]},t(Zt,[2,289],{61:429,80:430,81:[1,431],83:[1,432]}),t(Va,[2,288]),{64:[1,433]},t(Le,[2,29],{307:43,267:139,275:146,278:149,77:320,67:321,68:322,55:323,79:434,13:d,16:f,45:Y,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,276:Se,277:z,279:M,280:k,283:T,285:R,308:p,346:qe,347:W,348:D,349:B,350:K,351:ne}),t(br,[2,293]),t(kn,[2,92]),t(kn,[2,93]),t(kn,[2,94]),{45:Gt,89:Nr,176:269},{31:[1,435]},{31:[1,436]},{19:437,28:v,29:_,56:85},{19:438,28:v,29:_,56:85},t(Nn,[2,355],{149:439}),t(Nn,[2,354]),{13:d,16:f,44:215,45:gn,55:220,82:he,87:h,89:ct,156:440,172:221,185:441,203:442,231:Vn,236:216,237:222,255:154,257:155,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,309:te,310:S,311:217,312:A},t(O,[2,19]),t(Zt,[2,21]),{13:d,16:f,44:450,45:wa,55:323,65:445,66:446,67:447,68:448,87:h,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,307:43,308:p,346:qe,347:W,348:D,349:B,350:K,351:ne},t(Zr,[2,8]),{31:[1,451]},{31:[2,258]},{31:[2,101]},t(E,[2,386],{31:[2,388]}),t(Io,[2,102]),t(pn,[2,391],{191:452}),t(E,[2,395],{196:453,198:454}),t(E,[2,108]),t(E,[2,109]),t(Io,[2,103]),t(Io,[2,104]),t(Io,[2,390]),{13:d,16:f,44:215,45:at,48:[1,455],55:220,82:he,87:h,89:ct,172:221,185:351,187:350,200:456,231:ht,234:349,236:216,237:222,255:154,257:155,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,309:te,310:S,311:217,312:A},t(Is,[2,424]),t(Bu,[2,136]),t(Bu,[2,137]),t(qu,[2,140]),{232:[1,457]},{13:d,16:f,44:39,55:40,87:h,139:342,195:458,197:Pn,307:43,308:p},t(ot,[2,219]),t(ot,[2,220]),t(ot,[2,221]),t(ot,[2,222]),t(ot,[2,223]),t(Zr,[2,10]),t(Fe,[2,46]),t(Fe,[2,314]),{112:J,122:459},t(Fe,[2,62]),t(P,ie,{133:242,108:460,112:be,132:ve}),t(ue,[2,61]),t(Fe,[2,49]),t([6,28,126,128,193],[2,65]),{31:[2,66],112:[1,462],138:461},t(ye,[2,351],{146:463,335:[1,464]}),{29:De,57:465},t(rt,[2,329]),t(P,[2,332],{129:466,327:[1,467]}),t(rt,[2,55]),t(rt,[2,331]),{48:[1,468]},t(di,[2,429]),{13:d,16:f,44:136,45:Y,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,239:469,243:123,247:124,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},t(et,[2,431]),{13:d,16:f,44:136,45:Y,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,243:470,247:124,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},t(et,[2,156]),{45:zi,89:Ai,179:471},t($r,[2,441]),{13:d,16:f,44:136,45:Y,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,251:472,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},t(Xt,[2,444],{256:473}),t(Xt,[2,446],{258:474}),t(Ae,[2,442]),t(Ae,[2,443]),t(Xt,[2,449]),{13:d,16:f,44:136,45:Y,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,255:154,257:155,259:475,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},t(Ae,[2,450]),t(Ae,[2,451]),t(Ae,[2,379],{178:476}),t(Ae,[2,378]),t([6,13,16,29,31,39,45,47,48,73,76,78,81,82,83,85,87,89,112,159,160,161,163,164,193,231,242,246,250,263,265,268,269,270,271,272,273,274,276,277,279,280,283,285,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335,338,341,342,343,344,345,346,347,348,349,350,351],[2,175]),{48:[1,477]},{48:[1,478]},{272:[1,479]},{272:[1,480]},{272:[1,481]},{13:d,16:f,44:136,45:Y,46:482,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},{48:[1,483]},{48:[1,484]},t(Ct,[2,187]),t(or,[2,194]),{13:d,16:f,44:39,55:40,82:he,87:h,139:289,172:291,255:154,257:155,266:290,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,320:485},{13:d,16:f,39:[1,487],44:136,45:Y,46:488,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,282:486,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},t(Nt,[2,460]),{13:d,16:f,44:136,45:Y,46:489,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},t(Ae,[2,464]),{13:d,16:f,44:136,45:Y,46:490,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},t(Ae,[2,466]),t(fe,[2,40]),t(Vr,[2,298]),t(Yt,[2,87]),t(Yt,[2,88]),t(Yt,[2,89]),t(Yt,[2,90]),{13:d,16:f,55:492,82:he,172:493,255:154,257:155,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,311:494,312:A,315:491},t(fe,[2,41]),t(fi,[2,300]),t(yn,[2,303],{92:495}),{13:d,16:f,31:[1,496],55:414,82:he,171:497,172:415,173:416,174:Vt,255:154,257:155,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ir},{31:[1,498],89:[1,499]},{29:[1,500]},t(on,[2,372]),{13:d,16:f,48:[2,422],55:194,197:ge,223:312,226:502,228:501,229:_a,307:43,308:p},t(un,[2,131]),t(un,[2,126]),t(Zt,[2,22]),t(Zt,[2,290]),{82:[1,503]},{82:[1,504]},{13:d,16:f,44:510,45:Y,55:323,67:321,68:322,74:505,75:506,76:Ps,77:320,78:Po,79:509,87:h,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,307:43,308:p,346:qe,347:W,348:D,349:B,350:K,351:ne},t(br,[2,294]),t(k1,[2,69]),t(k1,[2,70]),t(Le,ee,{59:197,69:198,20:511,70:Oe}),t(Ue,Ye,{58:205,62:206,23:512,63:ut}),{29:[2,375],31:[2,71],84:522,85:o,112:[1,518],150:513,151:514,158:515,159:[1,516],160:[1,517],161:[1,519],163:[1,520],164:[1,521],175:523},t(Nn,[2,363],{157:524,335:[1,525]}),t(u,a,{215:10,202:526,205:527,208:528,214:529,44:530,87:h}),t(V1,[2,399],{215:10,205:527,208:528,214:529,44:530,204:531,202:532,13:a,16:a,45:a,197:a,224:a,229:a,308:a,87:h}),{13:d,16:f,44:215,45:gn,55:220,82:he,87:h,89:ct,172:221,185:351,203:536,212:534,231:Vn,233:533,234:535,236:216,237:222,255:154,257:155,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,309:te,310:S,311:217,312:A},t(u,a,{215:10,205:527,208:528,214:529,44:530,202:537,87:h}),t(Ue,[2,23],{307:43,267:139,275:146,278:149,55:323,67:447,68:448,44:450,66:538,13:d,16:f,45:wa,87:h,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,276:Se,277:z,279:M,280:k,283:T,285:R,308:p,346:qe,347:W,348:D,349:B,350:K,351:ne}),t($u,[2,291]),t($u,[2,24]),t($u,[2,25]),{13:d,16:f,44:136,45:Y,46:539,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},t($u,[2,28]),t(Ue,Ye,{58:205,62:206,23:540,63:ut}),t([31,112,232,318,335],[2,105],{192:541,193:[1,542]}),t(pn,[2,107]),{13:d,16:f,44:215,45:at,55:220,82:he,87:h,89:ct,172:221,185:351,187:350,199:543,200:544,231:ht,234:349,236:216,237:222,255:154,257:155,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,309:te,310:S,311:217,312:A},t(I4,[2,132]),t(Is,[2,425]),t(I4,[2,133]),{13:d,16:f,44:354,55:355,82:he,87:h,172:357,237:356,255:154,257:155,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,309:te,310:S,311:358,312:A,313:545},t(Fe,[2,54]),t(Fe,[2,48]),t(ye,[2,342]),{13:d,16:f,44:39,55:40,87:h,139:546,307:43,308:p},t(ye,[2,68]),t(E,[2,350],{31:P4,112:P4}),t(Fe,[2,53]),{13:d,16:f,55:547,307:43,308:p},t(P,[2,333]),t(X,[2,16]),t(di,[2,152]),t(et,[2,154]),t(et,[2,157]),t($r,[2,159]),t($r,[2,160],{262:389,261:548,39:Ze,338:it}),t($r,[2,161],{262:389,261:549,39:Ze,338:it}),t(Xt,[2,163]),{13:d,16:f,44:136,45:Y,46:550,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},t(Ct,[2,178]),t(Ct,[2,179]),{13:d,16:f,44:136,45:Y,46:551,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},{13:d,16:f,44:136,45:Y,46:552,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},{13:d,16:f,44:136,45:Y,46:553,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},{48:[1,554],272:[1,555]},t(Ct,[2,184]),t(Ct,[2,186]),{314:[1,556]},{48:[1,557]},{48:[2,461]},{48:[2,462]},{48:[1,558]},{48:[2,467],193:[1,561],287:559,288:560},{13:d,16:f,55:194,197:ge,223:562,307:43,308:p},t(YT,[2,224]),t(YT,[2,225]),t(YT,[2,226]),{31:[1,563],45:N4,94:564},t(fe,[2,84]),t(Vr,[2,368]),t(fe,[2,85]),t(fi,[2,370]),t(yn,[2,373],{170:566}),{48:[1,567]},{48:[2,423],337:[1,568]},t(Zt,[2,35],{83:[1,569]}),t(Zt,[2,36],{81:[1,570]}),t(Va,[2,30],{307:43,267:139,275:146,278:149,77:320,67:321,68:322,55:323,79:509,44:510,75:571,13:d,16:f,45:Y,76:Ps,78:Po,87:h,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,276:Se,277:z,279:M,280:k,283:T,285:R,308:p,346:qe,347:W,348:D,349:B,350:K,351:ne}),t(wl,[2,295]),{45:Y,77:572},{45:Y,77:573},t(wl,[2,33]),t(wl,[2,34]),{31:[2,275],50:574,84:575,85:o},{31:[2,277],51:576,84:577,85:o},t(Nn,[2,356]),t(D4,[2,357],{152:578,335:[1,579]}),t(Ns,[2,74]),{29:De,57:580},{29:De,57:581},{13:d,16:f,44:39,55:40,87:h,139:582,307:43,308:p},t(C4,[2,365],{162:583,328:[1,584]}),{13:d,16:f,45:Y,55:323,67:321,68:322,77:320,79:585,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,307:43,308:p,346:qe,347:W,348:D,349:B,350:K,351:ne},{45:[1,586]},t(Ns,[2,81]),{29:De,57:587},t(Nn,[2,73]),t(E,[2,362],{29:Ds,31:Ds,85:Ds,112:Ds,159:Ds,160:Ds,161:Ds,163:Ds,164:Ds}),t(V1,[2,112]),t(Sl,[2,401],{206:588}),t(E,[2,405],{209:589,210:590}),t(E,[2,403]),t(E,[2,404]),t(V1,[2,113]),t(V1,[2,400]),{13:d,16:f,44:215,45:gn,48:[1,591],55:220,82:he,87:h,89:ct,172:221,185:351,203:536,212:592,231:Vn,234:535,236:216,237:222,255:154,257:155,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,309:te,310:S,311:217,312:A},t(Is,[2,426]),t(qu,[2,138]),t(qu,[2,139]),{232:[1,593]},t($u,[2,292]),{47:[1,595],48:[1,594]},t(Zr,[2,9]),t(pn,[2,392]),t(pn,[2,393],{44:39,55:40,307:43,195:341,139:342,194:596,190:597,13:d,16:f,87:h,197:Pn,308:p}),t(pn,[2,110],{272:[1,598]}),t(H1,[2,397],{201:599,316:600,317:[1,601]}),{314:[1,602]},{29:[1,603]},t(rt,[2,58]),t(Xt,[2,445]),t(Xt,[2,447]),{48:[1,604],272:[1,605]},{48:[1,606]},{272:[1,607]},{272:[1,608]},t(Ct,[2,99]),t(Ae,[2,382]),t([13,16,39,47,48,87,193,197,242,246,250,263,265,272,290,297,298,299,300,301,302,308,314,338,341,342,343,344,345,346],[2,232]),t(Ct,[2,188]),t(Ct,[2,189]),{48:[1,609]},{48:[2,468]},{289:[1,610]},{13:d,16:f,55:492,82:he,172:493,255:154,257:155,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,311:494,312:A,315:611},t(fe,[2,42]),t(yn,[2,304]),{13:d,16:f,55:414,82:he,95:612,171:613,172:415,173:416,174:Vt,255:154,257:155,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ir},{31:[1,614],45:N4,94:615},t(un,[2,129]),t(Dr,[2,421]),{82:[1,616]},{82:[1,617]},t(wl,[2,296]),t(wl,[2,31]),t(wl,[2,32]),{31:[2,17]},{31:[2,276]},{31:[2,18]},{31:[2,278]},t(E,ba,{155:330,153:618,154:619,29:Cs,31:Cs,85:Cs,112:Cs,159:Cs,160:Cs,161:Cs,163:Cs,164:Cs}),t(D4,[2,358]),t(Ns,[2,75]),t(Ns,[2,76]),{29:De,57:620},{13:d,16:f,44:39,55:40,87:h,139:621,307:43,308:p},t(C4,[2,366]),t(Ns,[2,79]),{13:d,16:f,44:136,45:Y,46:622,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},t(Ns,[2,91],{336:[1,623]}),t([29,31,85,112,159,160,161,163,164,232,318,335],[2,114],{207:624,193:[1,625]}),t(Sl,[2,117]),{13:d,16:f,44:215,45:gn,55:220,82:he,87:h,89:ct,172:221,185:351,203:536,211:626,212:627,231:Vn,234:535,236:216,237:222,255:154,257:155,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,309:te,310:S,311:217,312:A},t(va,[2,134]),t(Is,[2,427]),t(va,[2,135]),t($u,[2,26]),{44:628,87:h},t(pn,[2,106]),t(pn,[2,394]),t(E,[2,396]),t(H1,[2,111]),t(H1,[2,398]),{13:d,16:f,44:39,55:40,87:h,139:342,186:629,190:340,195:341,197:Pn,307:43,308:p},t(vl,[2,217]),t(E,Je,{144:248,140:630,143:631,31:[2,343]}),t(Ct,[2,97]),t(Ae,[2,380]),t(Ct,[2,180]),{13:d,16:f,44:136,45:Y,46:632,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},{13:d,16:f,44:136,45:Y,46:633,55:133,67:132,68:134,77:131,82:he,87:h,172:135,224:Te,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:Ne,264:130,265:$e,266:137,267:139,268:de,269:ce,270:xe,271:Pe,273:we,274:Re,275:146,276:Se,277:z,278:149,279:M,280:k,283:T,285:R,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ke,346:qe,347:W,348:D,349:B,350:K,351:ne},t(Ct,[2,190]),{290:[1,634]},{314:[1,635]},{13:d,16:f,48:[1,636],55:414,82:he,171:637,172:415,173:416,174:Vt,255:154,257:155,291:150,294:U,295:G,296:Q,297:Z,298:se,299:re,300:le,301:pe,302:_e,303:Ie,304:Ee,305:Me,306:Ce,307:43,308:p,312:ir},t(L4,[2,305]),t(fe,[2,86]),t(yn,[2,374]),t(Zt,[2,37]),t(Zt,[2,38]),t(Nn,[2,72]),t(Nn,[2,360]),t(Ns,[2,77]),{29:De,57:638},{47:[1,639]},{29:[2,376]},t(Sl,[2,402]),t(Sl,[2,115],{215:10,208:528,214:529,44:530,205:640,13:a,16:a,45:a,197:a,224:a,229:a,308:a,87:h}),t(Sl,[2,118],{272:[1,641]}),t(Q1,[2,407],{213:642,319:643,317:[1,644]}),{48:[1,645]},{318:[1,646]},{31:[1,647]},{31:[2,344]},{48:[1,648]},{48:[1,649]},{291:650,303:Ie,304:Ee,305:Me,306:Ce},t(Yt,[2,218]),t(yn,[2,44]),t(L4,[2,306]),t(Ns,[2,78]),{44:651,87:h},t(Sl,[2,116]),t(E,[2,406]),t(Q1,[2,119]),t(Q1,[2,408]),t(u,a,{215:10,205:527,208:528,214:529,44:530,202:652,87:h}),t($u,[2,27]),t(H1,[2,230]),t(j4,[2,345],{141:653,335:[1,654]}),t(Ct,[2,181]),t(Ct,[2,182]),{48:[2,191]},{48:[1,655]},{318:[1,656]},t(E,Je,{144:248,142:657,143:658,31:M4,112:M4}),t(j4,[2,346]),t(Ns,[2,80]),t(Q1,[2,231]),t(ye,[2,67]),t(ye,[2,348])],defaultActions:{5:[2,240],6:[2,241],7:[2,242],9:[2,239],24:[2,1],25:[2,2],26:[2,244],87:[2,282],94:[2,384],100:[2,45],109:[2,325],166:[2,458],263:[2,439],336:[2,258],337:[2,101],487:[2,461],488:[2,462],560:[2,468],574:[2,17],575:[2,276],576:[2,18],577:[2,278],623:[2,376],631:[2,344],650:[2,191]},parseError:function(je,He){if(He.recoverable)this.trace(je);else{var Xe=new Error(je);throw Xe.hash=He,Xe}},parse:function(je){var He=this,Xe=[0],yt=[null],bt=[],ae=this.table,Ri="",oe=0,No=0,K1=2,J1=1,X1=bt.slice.call(arguments,1),Qr=Object.create(this.lexer),za={yy:{}};for(var Hu in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Hu)&&(za.yy[Hu]=this.yy[Hu]);Qr.setInput(je,za.yy),za.yy.lexer=Qr,za.yy.parser=this,typeof Qr.yylloc>"u"&&(Qr.yylloc={});var xl=Qr.yylloc;bt.push(xl);var dE=Qr.options&&Qr.options.ranges;typeof za.yy.parseError=="function"?this.parseError=za.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Y1=function(){var Il;return Il=Qr.lex()||J1,typeof Il!="number"&&(Il=He.symbols_[Il]||Il),Il},Ft,er,Dt,bn,vn={},Z1,js,W4,ev;;){if(er=Xe[Xe.length-1],this.defaultActions[er]?Dt=this.defaultActions[er]:((Ft===null||typeof Ft>"u")&&(Ft=Y1()),Dt=ae[er]&&ae[er][Ft]),typeof Dt>"u"||!Dt.length||!Dt[0]){var fE="";ev=[];for(Z1 in ae[er])this.terminals_[Z1]&&Z1>K1&&ev.push("'"+this.terminals_[Z1]+"'");Qr.showPosition?fE="Parse error on line "+(oe+1)+`: `+Qr.showPosition()+` -Expecting `+ev.join(", ")+", got '"+(this.terminals_[Ft]||Ft)+"'":hE="Parse error on line "+(oe+1)+": Unexpected "+(Ft==J1?"end of input":"'"+(this.terminals_[Ft]||Ft)+"'"),this.parseError(hE,{text:Qr.match,token:this.terminals_[Ft]||Ft,line:Qr.yylineno,loc:Il,expected:ev})}if(Dt[0]instanceof Array&&Dt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+er+", token: "+Ft);switch(Dt[0]){case 1:Xe.push(Ft),yt.push(Qr.yytext),bt.push(Qr.yylloc),Xe.push(Dt[1]),Ft=null,No=Qr.yyleng,Ri=Qr.yytext,oe=Qr.yylineno,Il=Qr.yylloc;break;case 2:if(js=this.productions_[Dt[1]][1],vn.$=yt[yt.length-js],vn._$={first_line:bt[bt.length-(js||1)].first_line,last_line:bt[bt.length-1].last_line,first_column:bt[bt.length-(js||1)].first_column,last_column:bt[bt.length-1].last_column},fE&&(vn._$.range=[bt[bt.length-(js||1)].range[0],bt[bt.length-1].range[1]]),bn=this.performAction.apply(vn,[Ri,No,oe,za.yy,Dt[1],yt,bt].concat(X1)),typeof bn<"u")return bn;js&&(Xe=Xe.slice(0,-1*js*2),yt=yt.slice(0,-1*js),bt=bt.slice(0,-1*js)),Xe.push(this.productions_[Dt[1]][0]),yt.push(vn.$),bt.push(vn._$),W4=ae[Xe[Xe.length-2]][Xe[Xe.length-1]],Xe.push(W4);break;case 3:return!0}}return!0}},z1=wD.Wildcard,G1="http://www.w3.org/1999/02/22-rdf-syntax-ns#",are=G1+"type",sre=G1+"first",ore=G1+"rest",F4=G1+"nil",W1="http://www.w3.org/2001/XMLSchema#",B4=W1+"integer",q4=W1+"decimal",$4=W1+"double",ure=W1+"boolean",Uu="",U4="",k4="";function Hn(Be){return Be.toLowerCase()}function ku(Be,je){return Be.push(je),Be}function El(Be,je){return Be.push.apply(Be,je),Be}function Hr(Be){Be||(Be={});for(var je=1,He=arguments.length,Xe;je>10),56320+(ae&1023))}else{var Ri=dre[bt];if(!Ri)throw new Error;return Ri}})}catch{return""}if(fre.exec(Be))throw new Error("Invalid unicode codepoint of surrogate pair without corresponding codepoint in "+Be);return Be}function hre(Be){var je=Vf(),He=je,Xe=[],yt,bt=[];Be.forEach(function(No){Xe.push(No.entity),El(bt,No.triples)});for(var ae=0,Ri=0,oe=Xe.length,yt=Array(oe*2);ae0&&Xe instanceof Array?uE(Xe,je-1,He):He.push(Xe);return He}function cE(Be){return Be.termType==="Variable"}function Q4(Be){if(Be.triples){const je=[];for(const He of Be.triples)cE(He.subject)&&je.push(He.subject.value),cE(He.predicate)&&je.push(He.predicate.value),cE(He.object)&&je.push(He.object.value);return je}else if(Be.patterns){const je=[];for(const He of Be.patterns)je.push(...Q4(He));return je}return[]}function mre(Be){const je=Be.slice().sort(),He=[];for(let Xe=0;Xe{const Xe=Ls(He.subject,He.predicate,He.object);je.push(Xe),He.annotations&&z4(iE(He.subject,He.predicate,He.object),He.annotations,je)}),je}return Be}function G4(Be){for(const je of Be){if(je.type==="graph"&&je.name.termType==="Variable")throw new Error("Detected illegal variable in GRAPH");if(je.type==="bgp"||je.type==="graph"){for(const He of je.triples)if(He.subject.termType==="Variable"||He.predicate.termType==="Variable"||He.object.termType==="Variable")throw new Error("Detected illegal variable in BGP")}}return Be}function dE(Be){for(const je of Be)if(je.type==="bgp"){for(const He of je.triples)if(He.subject.termType==="BlankNode"||He.predicate.termType==="BlankNode"||He.object.termType==="BlankNode")throw new Error("Detected illegal blank node in BGP")}return Be}var gre=function(){var Be={EOF:1,parseError:function(He,Xe){if(this.yy.parser)this.yy.parser.parseError(He,Xe);else throw new Error(He)},setInput:function(je,He){return this.yy=He||this.yy||{},this._input=je,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var je=this._input[0];this.yytext+=je,this.yyleng++,this.offset++,this.match+=je,this.matched+=je;var He=je.match(/(?:\r\n?|\n).*/g);return He?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),je},unput:function(je){var He=je.length,Xe=je.split(/(?:\r\n?|\n)/g);this._input=je+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-He),this.offset-=He;var yt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Xe.length-1&&(this.yylineno-=Xe.length-1);var bt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Xe?(Xe.length===yt.length?this.yylloc.first_column:0)+yt[yt.length-Xe.length].length-Xe[0].length:this.yylloc.first_column-He},this.options.ranges&&(this.yylloc.range=[bt[0],bt[0]+this.yyleng-He]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +Expecting `+ev.join(", ")+", got '"+(this.terminals_[Ft]||Ft)+"'":fE="Parse error on line "+(oe+1)+": Unexpected "+(Ft==J1?"end of input":"'"+(this.terminals_[Ft]||Ft)+"'"),this.parseError(fE,{text:Qr.match,token:this.terminals_[Ft]||Ft,line:Qr.yylineno,loc:xl,expected:ev})}if(Dt[0]instanceof Array&&Dt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+er+", token: "+Ft);switch(Dt[0]){case 1:Xe.push(Ft),yt.push(Qr.yytext),bt.push(Qr.yylloc),Xe.push(Dt[1]),Ft=null,No=Qr.yyleng,Ri=Qr.yytext,oe=Qr.yylineno,xl=Qr.yylloc;break;case 2:if(js=this.productions_[Dt[1]][1],vn.$=yt[yt.length-js],vn._$={first_line:bt[bt.length-(js||1)].first_line,last_line:bt[bt.length-1].last_line,first_column:bt[bt.length-(js||1)].first_column,last_column:bt[bt.length-1].last_column},dE&&(vn._$.range=[bt[bt.length-(js||1)].range[0],bt[bt.length-1].range[1]]),bn=this.performAction.apply(vn,[Ri,No,oe,za.yy,Dt[1],yt,bt].concat(X1)),typeof bn<"u")return bn;js&&(Xe=Xe.slice(0,-1*js*2),yt=yt.slice(0,-1*js),bt=bt.slice(0,-1*js)),Xe.push(this.productions_[Dt[1]][0]),yt.push(vn.$),bt.push(vn._$),W4=ae[Xe[Xe.length-2]][Xe[Xe.length-1]],Xe.push(W4);break;case 3:return!0}}return!0}},z1=wD.Wildcard,G1="http://www.w3.org/1999/02/22-rdf-syntax-ns#",ire=G1+"type",are=G1+"first",sre=G1+"rest",F4=G1+"nil",W1="http://www.w3.org/2001/XMLSchema#",B4=W1+"integer",q4=W1+"decimal",$4=W1+"double",ore=W1+"boolean",Uu="",U4="",k4="";function Hn(Be){return Be.toLowerCase()}function ku(Be,je){return Be.push(je),Be}function Tl(Be,je){return Be.push.apply(Be,je),Be}function Hr(Be){Be||(Be={});for(var je=1,He=arguments.length,Xe;je>10),56320+(ae&1023))}else{var Ri=lre[bt];if(!Ri)throw new Error;return Ri}})}catch{return""}if(dre.exec(Be))throw new Error("Invalid unicode codepoint of surrogate pair without corresponding codepoint in "+Be);return Be}function fre(Be){var je=Vf(),He=je,Xe=[],yt,bt=[];Be.forEach(function(No){Xe.push(No.entity),Tl(bt,No.triples)});for(var ae=0,Ri=0,oe=Xe.length,yt=Array(oe*2);ae0&&Xe instanceof Array?oE(Xe,je-1,He):He.push(Xe);return He}function uE(Be){return Be.termType==="Variable"}function Q4(Be){if(Be.triples){const je=[];for(const He of Be.triples)uE(He.subject)&&je.push(He.subject.value),uE(He.predicate)&&je.push(He.predicate.value),uE(He.object)&&je.push(He.object.value);return je}else if(Be.patterns){const je=[];for(const He of Be.patterns)je.push(...Q4(He));return je}return[]}function yre(Be){const je=Be.slice().sort(),He=[];for(let Xe=0;Xe{const Xe=Ls(He.subject,He.predicate,He.object);je.push(Xe),He.annotations&&z4(nE(He.subject,He.predicate,He.object),He.annotations,je)}),je}return Be}function G4(Be){for(const je of Be){if(je.type==="graph"&&je.name.termType==="Variable")throw new Error("Detected illegal variable in GRAPH");if(je.type==="bgp"||je.type==="graph"){for(const He of je.triples)if(He.subject.termType==="Variable"||He.predicate.termType==="Variable"||He.object.termType==="Variable")throw new Error("Detected illegal variable in BGP")}}return Be}function lE(Be){for(const je of Be)if(je.type==="bgp"){for(const He of je.triples)if(He.subject.termType==="BlankNode"||He.predicate.termType==="BlankNode"||He.object.termType==="BlankNode")throw new Error("Detected illegal blank node in BGP")}return Be}var mre=function(){var Be={EOF:1,parseError:function(He,Xe){if(this.yy.parser)this.yy.parser.parseError(He,Xe);else throw new Error(He)},setInput:function(je,He){return this.yy=He||this.yy||{},this._input=je,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var je=this._input[0];this.yytext+=je,this.yyleng++,this.offset++,this.match+=je,this.matched+=je;var He=je.match(/(?:\r\n?|\n).*/g);return He?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),je},unput:function(je){var He=je.length,Xe=je.split(/(?:\r\n?|\n)/g);this._input=je+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-He),this.offset-=He;var yt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Xe.length-1&&(this.yylineno-=Xe.length-1);var bt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Xe?(Xe.length===yt.length?this.yylloc.first_column:0)+yt[yt.length-Xe.length].length-Xe[0].length:this.yylloc.first_column-He},this.options.ranges&&(this.yylloc.range=[bt[0],bt[0]+this.yyleng-He]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(je){this.unput(this.match.slice(je))},pastInput:function(){var je=this.matched.substr(0,this.matched.length-this.match.length);return(je.length>20?"...":"")+je.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var je=this.match;return je.length<20&&(je+=this._input.substr(0,20-je.length)),(je.substr(0,20)+(je.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var je=this.pastInput(),He=new Array(je.length+1).join("-");return je+this.upcomingInput()+` `+He+"^"},test_match:function(je,He){var Xe,yt,bt;if(this.options.backtrack_lexer&&(bt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(bt.yylloc.range=this.yylloc.range.slice(0))),yt=je[0].match(/(?:\r\n?|\n).*/g),yt&&(this.yylineno+=yt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:yt?yt[yt.length-1].length-yt[yt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+je[0].length},this.yytext+=je[0],this.match+=je[0],this.matches=je,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(je[0].length),this.matched+=je[0],Xe=this.performAction.call(this,this.yy,this,He,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Xe)return Xe;if(this._backtrack){for(var ae in bt)this[ae]=bt[ae];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var je,He,Xe,yt;this._more||(this.yytext="",this.match="");for(var bt=this._currentRules(),ae=0;aeHe[0].length)){if(He=Xe,yt=ae,this.options.backtrack_lexer){if(je=this.test_match(Xe,bt[ae]),je!==!1)return je;if(this._backtrack){He=!1;continue}else return!1}else if(!this.options.flex)break}return He?(je=this.test_match(He,bt[yt]),je!==!1?je:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var He=this.next();return He||this.lex()},begin:function(He){this.conditionStack.push(He)},popState:function(){var He=this.conditionStack.length-1;return He>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(He){return He=this.conditionStack.length-1-Math.abs(He||0),He>=0?this.conditionStack[He]:"INITIAL"},pushState:function(He){this.begin(He)},stateStackSize:function(){return this.conditionStack.length},options:{flex:!0,"case-insensitive":!0},performAction:function(He,Xe,yt,bt){switch(yt){case 0:break;case 1:return 12;case 2:return 15;case 3:return 41;case 4:return 325;case 5:return 326;case 6:return 45;case 7:return 47;case 8:return 48;case 9:return 39;case 10:return 24;case 11:return 28;case 12:return 29;case 13:return 31;case 14:return 32;case 15:return 36;case 16:return 53;case 17:return 327;case 18:return 63;case 19:return 64;case 20:return 70;case 21:return 73;case 22:return 76;case 23:return 78;case 24:return 81;case 25:return 83;case 26:return 85;case 27:return 193;case 28:return 100;case 29:return 328;case 30:return 121;case 31:return 329;case 32:return 330;case 33:return 110;case 34:return 331;case 35:return 109;case 36:return 332;case 37:return 333;case 38:return 113;case 39:return 115;case 40:return 116;case 41:return 131;case 42:return 123;case 43:return 126;case 44:return 128;case 45:return 132;case 46:return 112;case 47:return 334;case 48:return 335;case 49:return 159;case 50:return 161;case 51:return 164;case 52:return 174;case 53:return 160;case 54:return 336;case 55:return 163;case 56:return 312;case 57:return 314;case 58:return 317;case 59:return 318;case 60:return 272;case 61:return 197;case 62:return 337;case 63:return 338;case 64:return 229;case 65:return 340;case 66:return 263;case 67:return 224;case 68:return 231;case 69:return 232;case 70:return 242;case 71:return 246;case 72:return 290;case 73:return 341;case 74:return 342;case 75:return 343;case 76:return 344;case 77:return 345;case 78:return 250;case 79:return 346;case 80:return 265;case 81:return 276;case 82:return 277;case 83:return 268;case 84:return 269;case 85:return 270;case 86:return 271;case 87:return 347;case 88:return 348;case 89:return 273;case 90:return 274;case 91:return 350;case 92:return 349;case 93:return 351;case 94:return 279;case 95:return 280;case 96:return 283;case 97:return 285;case 98:return 289;case 99:return 293;case 100:return 296;case 101:return 13;case 102:return 16;case 103:return 308;case 104:return 309;case 105:return 87;case 106:return 292;case 107:return 82;case 108:return 294;case 109:return 295;case 110:return 297;case 111:return 298;case 112:return 299;case 113:return 300;case 114:return 301;case 115:return 302;case 116:return"EXPONENT";case 117:return 303;case 118:return 304;case 119:return 305;case 120:return 306;case 121:return 89;case 122:return 310;case 123:return 6;case 124:return"INVALID";case 125:console.log(Xe.yytext);break}},rules:[/^(?:\s+|(#[^\n\r]*))/i,/^(?:BASE)/i,/^(?:PREFIX)/i,/^(?:SELECT)/i,/^(?:DISTINCT)/i,/^(?:REDUCED)/i,/^(?:\()/i,/^(?:AS)/i,/^(?:\))/i,/^(?:\*)/i,/^(?:CONSTRUCT)/i,/^(?:WHERE)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:DESCRIBE)/i,/^(?:ASK)/i,/^(?:FROM)/i,/^(?:NAMED)/i,/^(?:GROUP)/i,/^(?:BY)/i,/^(?:HAVING)/i,/^(?:ORDER)/i,/^(?:ASC)/i,/^(?:DESC)/i,/^(?:LIMIT)/i,/^(?:OFFSET)/i,/^(?:VALUES)/i,/^(?:;)/i,/^(?:LOAD)/i,/^(?:SILENT)/i,/^(?:INTO)/i,/^(?:CLEAR)/i,/^(?:DROP)/i,/^(?:CREATE)/i,/^(?:ADD)/i,/^(?:TO)/i,/^(?:MOVE)/i,/^(?:COPY)/i,/^(?:INSERT((\s+|(#[^\n\r]*)\n\r?)+)DATA)/i,/^(?:DELETE((\s+|(#[^\n\r]*)\n\r?)+)DATA)/i,/^(?:DELETE((\s+|(#[^\n\r]*)\n\r?)+)WHERE)/i,/^(?:WITH)/i,/^(?:DELETE)/i,/^(?:INSERT)/i,/^(?:USING)/i,/^(?:DEFAULT)/i,/^(?:GRAPH)/i,/^(?:ALL)/i,/^(?:\.)/i,/^(?:OPTIONAL)/i,/^(?:SERVICE)/i,/^(?:BIND)/i,/^(?:UNDEF)/i,/^(?:MINUS)/i,/^(?:UNION)/i,/^(?:FILTER)/i,/^(?:<<)/i,/^(?:>>)/i,/^(?:\{\|)/i,/^(?:\|\})/i,/^(?:,)/i,/^(?:a)/i,/^(?:\|)/i,/^(?:\/)/i,/^(?:\^)/i,/^(?:\?)/i,/^(?:\+)/i,/^(?:!)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:\|\|)/i,/^(?:&&)/i,/^(?:=)/i,/^(?:!=)/i,/^(?:<)/i,/^(?:>)/i,/^(?:<=)/i,/^(?:>=)/i,/^(?:IN)/i,/^(?:NOT)/i,/^(?:-)/i,/^(?:BOUND)/i,/^(?:BNODE)/i,/^(?:(RAND|NOW|UUID|STRUUID))/i,/^(?:(LANG|DATATYPE|IRI|URI|ABS|CEIL|FLOOR|ROUND|STRLEN|STR|UCASE|LCASE|ENCODE_FOR_URI|YEAR|MONTH|DAY|HOURS|MINUTES|SECONDS|TIMEZONE|TZ|MD5|SHA1|SHA256|SHA384|SHA512|isIRI|isURI|isBLANK|isLITERAL|isNUMERIC))/i,/^(?:(SUBJECT|PREDICATE|OBJECT|isTRIPLE))/i,/^(?:(LANGMATCHES|CONTAINS|STRSTARTS|STRENDS|STRBEFORE|STRAFTER|STRLANG|STRDT|sameTerm))/i,/^(?:CONCAT)/i,/^(?:COALESCE)/i,/^(?:IF)/i,/^(?:TRIPLE)/i,/^(?:REGEX)/i,/^(?:SUBSTR)/i,/^(?:REPLACE)/i,/^(?:EXISTS)/i,/^(?:COUNT)/i,/^(?:SUM|MIN|MAX|AVG|SAMPLE)/i,/^(?:GROUP_CONCAT)/i,/^(?:SEPARATOR)/i,/^(?:\^\^)/i,/^(?:true|false)/i,/^(?:(<(?:[^<>\"\{\}\|\^`\\\u0000-\u0020])*>))/i,/^(?:((([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])(?:(?:(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040])|\.)*(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040]))?)?:))/i,/^(?:(((([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])(?:(?:(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040])|\.)*(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040]))?)?:)((?:((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|:|[0-9]|((%([0-9A-Fa-f])([0-9A-Fa-f]))|(\\(_|~|\.|-|!|\$|&|'|\(|\)|\*|\+|,|;|=|\/|\?|#|@|%))))(?:(?:(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040])|\.|:|((%([0-9A-Fa-f])([0-9A-Fa-f]))|(\\(_|~|\.|-|!|\$|&|'|\(|\)|\*|\+|,|;|=|\/|\?|#|@|%))))*(?:(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040])|:|((%([0-9A-Fa-f])([0-9A-Fa-f]))|(\\(_|~|\.|-|!|\$|&|'|\(|\)|\*|\+|,|;|=|\/|\?|#|@|%)))))?)))/i,/^(?:(_:(?:((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|[0-9])(?:(?:(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040])|\.)*(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040]))?))/i,/^(?:([\?\$]((?:((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|[0-9])(?:((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040])*)))/i,/^(?:(@[a-zA-Z]+(?:-[a-zA-Z0-9]+)*))/i,/^(?:([0-9]+))/i,/^(?:([0-9]*\.[0-9]+))/i,/^(?:([0-9]+\.[0-9]*([eE][+-]?[0-9]+)|\.([0-9])+([eE][+-]?[0-9]+)|([0-9])+([eE][+-]?[0-9]+)))/i,/^(?:(\+([0-9]+)))/i,/^(?:(\+([0-9]*\.[0-9]+)))/i,/^(?:(\+([0-9]+\.[0-9]*([eE][+-]?[0-9]+)|\.([0-9])+([eE][+-]?[0-9]+)|([0-9])+([eE][+-]?[0-9]+))))/i,/^(?:(-([0-9]+)))/i,/^(?:(-([0-9]*\.[0-9]+)))/i,/^(?:(-([0-9]+\.[0-9]*([eE][+-]?[0-9]+)|\.([0-9])+([eE][+-]?[0-9]+)|([0-9])+([eE][+-]?[0-9]+))))/i,/^(?:([eE][+-]?[0-9]+))/i,/^(?:('(?:(?:[^\u0027\u005C\u000A\u000D])|(\\[tbnrf\\\"']|\\u([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])|\\U([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])))*'))/i,/^(?:("(?:(?:[^\u0022\u005C\u000A\u000D])|(\\[tbnrf\\\"']|\\u([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])|\\U([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])))*"))/i,/^(?:('''(?:(?:'|'')?(?:[^'\\]|(\\[tbnrf\\\"']|\\u([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])|\\U([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f]))))*'''))/i,/^(?:("""(?:(?:"|"")?(?:[^\"\\]|(\\[tbnrf\\\"']|\\u([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])|\\U([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f]))))*"""))/i,/^(?:(\((\u0020|\u0009|\u000D|\u000A)*\)))/i,/^(?:(\[(\u0020|\u0009|\u000D|\u000A)*\]))/i,/^(?:$)/i,/^(?:.)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125],inclusive:!0}}};return Be}();eE.lexer=gre;function Bt(){this.yy={}}return Bt.prototype=eE,eE.Parser=Bt,new Bt}(),Gde=zde,Wde="http://www.w3.org/2001/XMLSchema#integer",Kde="http://www.w3.org/2001/XMLSchema#string";function Ir(t){this._options=t=t||{};var e=t.prefixes||{};this._prefixByIri={};var r=[];for(var n in e){var a=e[n];G_(a)&&(this._prefixByIri[a]=n,r.push(a))}var s=r.join("|").replace(/[\]\/\(\)\*\+\?\.\\\$]/g,"\\$&");this._prefixRegex=new RegExp("^("+s+")([a-zA-Z][\\-_a-zA-Z0-9]*)$"),this._usedPrefixes={},this._sparqlStar=t.sparqlStar,this._indent=G_(t.indent)?t.indent:" ",this._newline=G_(t.newline)?t.newline:` -`,this._explicitDatatype=!!t.explicitDatatype}Ir.prototype.toQuery=function(t){var e="";return t.queryType&&(e+=t.queryType.toUpperCase()+" "),t.reduced&&(e+="REDUCED "),t.distinct&&(e+="DISTINCT "),t.variables?e+=Ci(t.variables,void 0,function(r){return su(r)?this.toEntity(r):"("+this.toExpression(r.expression)+" AS "+yS(r.variable)+")"},this)+" ":t.template&&(e+=this.group(t.template,!0)+this._newline),t.from&&(e+=this.graphs("FROM ",t.from.default)+this.graphs("FROM NAMED ",t.from.named)),t.where&&(e+="WHERE "+this.group(t.where,!0)+this._newline),t.updates&&(e+=Ci(t.updates,";"+this._newline,this.toUpdate,this)),t.group&&(e+="GROUP BY "+Ci(t.group,void 0,function(r){var n=su(r.expression)?this.toEntity(r.expression):"("+this.toExpression(r.expression)+")";return r.variable?"("+n+" AS "+yS(r.variable)+")":n},this)+this._newline),t.having&&(e+="HAVING ("+Ci(t.having,void 0,this.toExpression,this)+")"+this._newline),t.order&&(e+="ORDER BY "+Ci(t.order,void 0,function(r){var n="("+this.toExpression(r.expression)+")";return r.descending?"DESC "+n:n},this)+this._newline),t.offset&&(e+="OFFSET "+t.offset+this._newline),t.limit&&(e+="LIMIT "+t.limit+this._newline),t.values&&(e+=this.values(t)),e=this.baseAndPrefixes(t)+e,e.trim()};Ir.prototype.baseAndPrefixes=function(t){var e=t.base?"BASE <"+t.base+">"+this._newline:"",r="";for(var n in t.prefixes)(this._options.allPrefixes||this._usedPrefixes[n])&&(r+="PREFIX "+n+": <"+t.prefixes[n]+">"+this._newline);return e+r};Ir.prototype.toPattern=function(t){var e=t.type||t instanceof Array&&"array"||(t.subject&&t.predicate&&t.object?"triple":"");if(!(e in this))throw new Error("Unknown entry type: "+e);return this[e](t)};Ir.prototype.triple=function(t){return this.toEntity(t.subject)+" "+this.toEntity(t.predicate)+" "+this.toEntity(t.object)+"."};Ir.prototype.array=function(t){return Ci(t,this._newline,this.toPattern,this)};Ir.prototype.bgp=function(t){return this.encodeTriples(t.triples)};Ir.prototype.encodeTriples=function(t){if(!t.length)return"";for(var e=[],r=void 0,n=void 0,a=0;a":case">=":case"<=":case"&&":case"||":case"=":case"!=":case"+":case"-":case"*":case"/":return(su(r[0])?this.toEntity(r[0]):"("+this.toExpression(r[0])+")")+" "+e+" "+(su(r[1])?this.toEntity(r[1]):"("+this.toExpression(r[1])+")");case"!":return"!("+this.toExpression(r[0])+")";case"uplus":return"+("+this.toExpression(r[0])+")";case"uminus":return"-("+this.toExpression(r[0])+")";case"notin":e="NOT IN";case"in":return this.toExpression(r[0])+" "+e+"("+(G_(r[1])?r[1]:Ci(r[1],", ",this.toExpression,this))+")";case"notexists":e="NOT EXISTS";case"exists":return e+" "+this.group(r[0],!0);default:return e+"("+Ci(r,", ",this.toExpression,this)+")"}default:throw new Error("Unknown expression type: "+t.type)}};Ir.prototype.toEntity=function(t){if(su(t))switch(t.termType){case"Wildcard":return"*";case"Variable":return yS(t);case"BlankNode":return"_:"+t.value;case"Literal":var e=t.value||"",r=t.language||"",n=t.datatype;if(t='"'+e.replace(vK,wK)+'"',r)t+="@"+r;else if(n){if(!this._explicitDatatype)switch(n.value){case Kde:return t;case Wde:if(/^\d+$/.test(e))return e+" "}t+="^^"+this.encodeIRI(n.value)}return t;case"Quad":if(!this._sparqlStar)throw new Error("SPARQL* support is not enabled");return t.graph&&t.graph.termType!=="DefaultGraph"?"<< GRAPH "+this.toEntity(t.graph)+" { "+this.toEntity(t.subject)+" "+this.toEntity(t.predicate)+" "+this.toEntity(t.object)+" } >>":"<< "+this.toEntity(t.subject)+" "+this.toEntity(t.predicate)+" "+this.toEntity(t.object)+" >>";default:return this.encodeIRI(t.value)}else{var a=t.items.map(this.toEntity,this),s=t.pathType;switch(s){case"^":case"!":return s+a[0];case"*":case"+":case"?":return"("+a[0]+s+")";default:return"("+a.join(s)+")"}}};var vK=/["\\\t\n\r\b\f]/g,wK=function(t){return Jde[t]},Jde={"\\":"\\\\",'"':'\\"'," ":"\\t","\n":"\\n","\r":"\\r","\b":"\\b","\f":"\\f"};Ir.prototype.encodeIRI=function(t){var e=this._prefixRegex.exec(t);if(e){var r=this._prefixByIri[e[1]];return this._usedPrefixes[r]=!0,r+":"+e[2]}return"<"+t+">"};Ir.prototype.toUpdate=function(t){switch(t.type||t.updateType){case"load":return"LOAD"+(t.source?" "+this.toEntity(t.source):"")+(t.destination?" INTO GRAPH "+this.toEntity(t.destination):"");case"insert":return"INSERT DATA "+this.group(t.insert,!0);case"delete":return"DELETE DATA "+this.group(t.delete,!0);case"deletewhere":return"DELETE WHERE "+this.group(t.delete,!0);case"insertdelete":return(t.graph?"WITH "+this.toEntity(t.graph)+this._newline:"")+(t.delete.length?"DELETE "+this.group(t.delete,!0)+this._newline:"")+(t.insert.length?"INSERT "+this.group(t.insert,!0)+this._newline:"")+(t.using?this.graphs("USING ",t.using.default):"")+(t.using?this.graphs("USING NAMED ",t.using.named):"")+"WHERE "+this.group(t.where,!0);case"add":case"copy":case"move":return t.type.toUpperCase()+" "+(t.silent?"SILENT ":"")+(t.source.default?"DEFAULT":this.toEntity(t.source.name))+" TO "+this.toEntity(t.destination.name);case"create":case"clear":case"drop":return t.type.toUpperCase()+(t.silent?" SILENT ":" ")+(t.graph.default?"DEFAULT":t.graph.named?"NAMED":t.graph.all?"ALL":"GRAPH "+this.toEntity(t.graph.name));default:throw new Error("Unknown update query type: "+t.type)}};Ir.prototype.indent=function(t){return t.replace(/^/gm,this._indent)};function yS(t){return"?"+t.value}function G_(t){return typeof t=="string"}function su(t){return typeof t.termType=="string"}function bc(t,e){if(!t||!su(t)||!e||!su(e)||t.termType!==e.termType)return!1;switch(t.termType){case"Literal":return t.value===e.value&&t.language===e.language&&bc(t.datatype,e.datatype);case"Quad":return bc(t.subject,e.subject)&&bc(t.predicate,e.predicate)&&bc(t.object,e.object)&&bc(t.graph,e.graph);default:return t.value===e.value}}function Ci(t,e,r,n){return t.map(r,n).join(G_(e)?e:" ")}var Xde=function(e={}){return{stringify:function(r){var n=Object.create(e);return n.prefixes=r.prefixes,new Ir(n).toQuery(r)},createGenerator:function(){return new Ir(e)}}},Ot={},zb={};Object.defineProperty(zb,"__esModule",{value:!0});zb.BlankNode=void 0;let Yde=class{constructor(e){this.termType="BlankNode",this.value=e}equals(e){return!!e&&e.termType==="BlankNode"&&e.value===this.value}};zb.BlankNode=Yde;var g2={},Gb={};Object.defineProperty(Gb,"__esModule",{value:!0});Gb.DefaultGraph=void 0;let oP=class{constructor(){this.termType="DefaultGraph",this.value=""}equals(e){return!!e&&e.termType==="DefaultGraph"}};Gb.DefaultGraph=oP;oP.INSTANCE=new oP;var Wb={},hf={};Object.defineProperty(hf,"__esModule",{value:!0});hf.NamedNode=void 0;let Zde=class{constructor(e){this.termType="NamedNode",this.value=e}equals(e){return!!e&&e.termType==="NamedNode"&&e.value===this.value}};hf.NamedNode=Zde;Object.defineProperty(Wb,"__esModule",{value:!0});Wb.Literal=void 0;const SK=hf;let SD=class uP{constructor(e,r){this.termType="Literal",this.value=e,typeof r=="string"?(this.language=r,this.datatype=uP.RDF_LANGUAGE_STRING):r?(this.language="",this.datatype=r):(this.language="",this.datatype=uP.XSD_STRING)}equals(e){return!!e&&e.termType==="Literal"&&e.value===this.value&&e.language===this.language&&this.datatype.equals(e.datatype)}};Wb.Literal=SD;SD.RDF_LANGUAGE_STRING=new SK.NamedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString");SD.XSD_STRING=new SK.NamedNode("http://www.w3.org/2001/XMLSchema#string");var Kb={};Object.defineProperty(Kb,"__esModule",{value:!0});Kb.Quad=void 0;let efe=class{constructor(e,r,n,a){this.termType="Quad",this.value="",this.subject=e,this.predicate=r,this.object=n,this.graph=a}equals(e){return!!e&&(e.termType==="Quad"||!e.termType)&&this.subject.equals(e.subject)&&this.predicate.equals(e.predicate)&&this.object.equals(e.object)&&this.graph.equals(e.graph)}};Kb.Quad=efe;var Jb={};Object.defineProperty(Jb,"__esModule",{value:!0});Jb.Variable=void 0;let tfe=class{constructor(e){this.termType="Variable",this.value=e}equals(e){return!!e&&e.termType==="Variable"&&e.value===this.value}};Jb.Variable=tfe;Object.defineProperty(g2,"__esModule",{value:!0});g2.DataFactory=void 0;const rfe=zb,nfe=Gb,CL=Wb,ife=hf,afe=Kb,sfe=Jb;let ofe=0,ufe=class{constructor(e){this.blankNodeCounter=0,e=e||{},this.blankNodePrefix=e.blankNodePrefix||`df_${ofe++}_`}namedNode(e){return new ife.NamedNode(e)}blankNode(e){return new rfe.BlankNode(e||`${this.blankNodePrefix}${this.blankNodeCounter++}`)}literal(e,r){return new CL.Literal(e,r)}variable(e){return new sfe.Variable(e)}defaultGraph(){return nfe.DefaultGraph.INSTANCE}quad(e,r,n,a){return new afe.Quad(e,r,n,a||this.defaultGraph())}fromTerm(e){switch(e.termType){case"NamedNode":return this.namedNode(e.value);case"BlankNode":return this.blankNode(e.value);case"Literal":return e.language?this.literal(e.value,e.language):e.datatype.equals(CL.Literal.XSD_STRING)?this.literal(e.value):this.literal(e.value,this.fromTerm(e.datatype));case"Variable":return this.variable(e.value);case"DefaultGraph":return this.defaultGraph();case"Quad":return this.quad(this.fromTerm(e.subject),this.fromTerm(e.predicate),this.fromTerm(e.object),this.fromTerm(e.graph))}}fromQuad(e){return this.fromTerm(e)}resetBlankNodeCounter(){this.blankNodeCounter=0}};g2.DataFactory=ufe;(function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s),Object.defineProperty(n,o,{enumerable:!0,get:function(){return a[s]}})}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(zb,t),r(g2,t),r(Gb,t),r(Wb,t),r(hf,t),r(Kb,t),r(Jb,t)})(Ot);var Ms=Gde.Parser,cfe=Xde,lfe=wD.Wildcard,{DataFactory:dfe}=Ot,ol={Parser:function({prefixes:t,baseIRI:e,factory:r,sparqlStar:n,skipValidation:a,skipUngroupedVariableCheck:s,pathOnly:o}={}){var u={};for(var c in t||{})u[c]=t[c];var l=new Ms;return l.parse=function(){return Ms.base=e||"",Ms.prefixes=Object.create(u),Ms.factory=r||new dfe,Ms.sparqlStar=!!n,Ms.pathOnly=!!o,Ms.skipValidation=!!a||!!s,Ms.prototype.parse.apply(l,arguments)},l._resetBlanks=Ms._resetBlanks,l},Generator:cfe,Wildcard:lfe},TK={exports:{}},GE={exports:{}},ys={};(function(t){Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var e={},r={};r.byteLength=d,r.toByteArray=h,r.fromByteArray=y;for(var n=[],a=[],s=typeof Uint8Array<"u"?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,c=o.length;u0)throw new Error("Invalid string. Length must be a multiple of 4");var w=v.indexOf("=");w===-1&&(w=_);var E=w===_?0:4-w%4;return[w,E]}function d(v){var _=l(v),w=_[0],E=_[1];return(w+E)*3/4-E}function f(v,_,w){return(_+w)*3/4-w}function h(v){var _,w=l(v),E=w[0],O=w[1],L=new s(f(v,E,O)),F=0,x=O>0?E-4:E,P;for(P=0;P>16&255,L[F++]=_>>8&255,L[F++]=_&255;return O===2&&(_=a[v.charCodeAt(P)]<<2|a[v.charCodeAt(P+1)]>>4,L[F++]=_&255),O===1&&(_=a[v.charCodeAt(P)]<<10|a[v.charCodeAt(P+1)]<<4|a[v.charCodeAt(P+2)]>>2,L[F++]=_>>8&255,L[F++]=_&255),L}function p(v){return n[v>>18&63]+n[v>>12&63]+n[v>>6&63]+n[v&63]}function m(v,_,w){for(var E,O=[],L=_;Lx?x:F+L));return E===1?(_=v[w-1],O.push(n[_>>2]+n[_<<4&63]+"==")):E===2&&(_=(v[w-2]<<8)+v[w-1],O.push(n[_>>10]+n[_>>4&63]+n[_<<2&63]+"=")),O.join("")}var g={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */g.read=function(v,_,w,E,O){var L,F,x=O*8-E-1,P=(1<>1,N=-7,V=w?O-1:0,$=w?-1:1,q=v[_+V];for(V+=$,L=q&(1<<-N)-1,q>>=-N,N+=x;N>0;L=L*256+v[_+V],V+=$,N-=8);for(F=L&(1<<-N)-1,L>>=-N,N+=E;N>0;F=F*256+v[_+V],V+=$,N-=8);if(L===0)L=1-j;else{if(L===P)return F?NaN:(q?-1:1)*(1/0);F=F+Math.pow(2,E),L=L-j}return(q?-1:1)*F*Math.pow(2,L-E)},g.write=function(v,_,w,E,O,L){var F,x,P,j=L*8-O-1,N=(1<>1,$=O===23?Math.pow(2,-24)-Math.pow(2,-77):0,q=E?0:L-1,H=E?1:-1,X=_<0||_===0&&1/_<0?1:0;for(_=Math.abs(_),isNaN(_)||_===1/0?(x=isNaN(_)?1:0,F=N):(F=Math.floor(Math.log(_)/Math.LN2),_*(P=Math.pow(2,-F))<1&&(F--,P*=2),F+V>=1?_+=$/P:_+=$*Math.pow(2,1-V),_*P>=2&&(F++,P/=2),F+V>=N?(x=0,F=N):F+V>=1?(x=(_*P-1)*Math.pow(2,O),F=F+V):(x=_*Math.pow(2,V-1)*Math.pow(2,O),F=0));O>=8;v[w+q]=x&255,q+=H,x/=256,O-=8);for(F=F<0;v[w+q]=F&255,q+=H,F/=256,j-=8);v[w+q-H]|=X*128};/*! +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var He=this.next();return He||this.lex()},begin:function(He){this.conditionStack.push(He)},popState:function(){var He=this.conditionStack.length-1;return He>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(He){return He=this.conditionStack.length-1-Math.abs(He||0),He>=0?this.conditionStack[He]:"INITIAL"},pushState:function(He){this.begin(He)},stateStackSize:function(){return this.conditionStack.length},options:{flex:!0,"case-insensitive":!0},performAction:function(He,Xe,yt,bt){switch(yt){case 0:break;case 1:return 12;case 2:return 15;case 3:return 41;case 4:return 325;case 5:return 326;case 6:return 45;case 7:return 47;case 8:return 48;case 9:return 39;case 10:return 24;case 11:return 28;case 12:return 29;case 13:return 31;case 14:return 32;case 15:return 36;case 16:return 53;case 17:return 327;case 18:return 63;case 19:return 64;case 20:return 70;case 21:return 73;case 22:return 76;case 23:return 78;case 24:return 81;case 25:return 83;case 26:return 85;case 27:return 193;case 28:return 100;case 29:return 328;case 30:return 121;case 31:return 329;case 32:return 330;case 33:return 110;case 34:return 331;case 35:return 109;case 36:return 332;case 37:return 333;case 38:return 113;case 39:return 115;case 40:return 116;case 41:return 131;case 42:return 123;case 43:return 126;case 44:return 128;case 45:return 132;case 46:return 112;case 47:return 334;case 48:return 335;case 49:return 159;case 50:return 161;case 51:return 164;case 52:return 174;case 53:return 160;case 54:return 336;case 55:return 163;case 56:return 312;case 57:return 314;case 58:return 317;case 59:return 318;case 60:return 272;case 61:return 197;case 62:return 337;case 63:return 338;case 64:return 229;case 65:return 340;case 66:return 263;case 67:return 224;case 68:return 231;case 69:return 232;case 70:return 242;case 71:return 246;case 72:return 290;case 73:return 341;case 74:return 342;case 75:return 343;case 76:return 344;case 77:return 345;case 78:return 250;case 79:return 346;case 80:return 265;case 81:return 276;case 82:return 277;case 83:return 268;case 84:return 269;case 85:return 270;case 86:return 271;case 87:return 347;case 88:return 348;case 89:return 273;case 90:return 274;case 91:return 350;case 92:return 349;case 93:return 351;case 94:return 279;case 95:return 280;case 96:return 283;case 97:return 285;case 98:return 289;case 99:return 293;case 100:return 296;case 101:return 13;case 102:return 16;case 103:return 308;case 104:return 309;case 105:return 87;case 106:return 292;case 107:return 82;case 108:return 294;case 109:return 295;case 110:return 297;case 111:return 298;case 112:return 299;case 113:return 300;case 114:return 301;case 115:return 302;case 116:return"EXPONENT";case 117:return 303;case 118:return 304;case 119:return 305;case 120:return 306;case 121:return 89;case 122:return 310;case 123:return 6;case 124:return"INVALID";case 125:console.log(Xe.yytext);break}},rules:[/^(?:\s+|(#[^\n\r]*))/i,/^(?:BASE)/i,/^(?:PREFIX)/i,/^(?:SELECT)/i,/^(?:DISTINCT)/i,/^(?:REDUCED)/i,/^(?:\()/i,/^(?:AS)/i,/^(?:\))/i,/^(?:\*)/i,/^(?:CONSTRUCT)/i,/^(?:WHERE)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:DESCRIBE)/i,/^(?:ASK)/i,/^(?:FROM)/i,/^(?:NAMED)/i,/^(?:GROUP)/i,/^(?:BY)/i,/^(?:HAVING)/i,/^(?:ORDER)/i,/^(?:ASC)/i,/^(?:DESC)/i,/^(?:LIMIT)/i,/^(?:OFFSET)/i,/^(?:VALUES)/i,/^(?:;)/i,/^(?:LOAD)/i,/^(?:SILENT)/i,/^(?:INTO)/i,/^(?:CLEAR)/i,/^(?:DROP)/i,/^(?:CREATE)/i,/^(?:ADD)/i,/^(?:TO)/i,/^(?:MOVE)/i,/^(?:COPY)/i,/^(?:INSERT((\s+|(#[^\n\r]*)\n\r?)+)DATA)/i,/^(?:DELETE((\s+|(#[^\n\r]*)\n\r?)+)DATA)/i,/^(?:DELETE((\s+|(#[^\n\r]*)\n\r?)+)WHERE)/i,/^(?:WITH)/i,/^(?:DELETE)/i,/^(?:INSERT)/i,/^(?:USING)/i,/^(?:DEFAULT)/i,/^(?:GRAPH)/i,/^(?:ALL)/i,/^(?:\.)/i,/^(?:OPTIONAL)/i,/^(?:SERVICE)/i,/^(?:BIND)/i,/^(?:UNDEF)/i,/^(?:MINUS)/i,/^(?:UNION)/i,/^(?:FILTER)/i,/^(?:<<)/i,/^(?:>>)/i,/^(?:\{\|)/i,/^(?:\|\})/i,/^(?:,)/i,/^(?:a)/i,/^(?:\|)/i,/^(?:\/)/i,/^(?:\^)/i,/^(?:\?)/i,/^(?:\+)/i,/^(?:!)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:\|\|)/i,/^(?:&&)/i,/^(?:=)/i,/^(?:!=)/i,/^(?:<)/i,/^(?:>)/i,/^(?:<=)/i,/^(?:>=)/i,/^(?:IN)/i,/^(?:NOT)/i,/^(?:-)/i,/^(?:BOUND)/i,/^(?:BNODE)/i,/^(?:(RAND|NOW|UUID|STRUUID))/i,/^(?:(LANG|DATATYPE|IRI|URI|ABS|CEIL|FLOOR|ROUND|STRLEN|STR|UCASE|LCASE|ENCODE_FOR_URI|YEAR|MONTH|DAY|HOURS|MINUTES|SECONDS|TIMEZONE|TZ|MD5|SHA1|SHA256|SHA384|SHA512|isIRI|isURI|isBLANK|isLITERAL|isNUMERIC))/i,/^(?:(SUBJECT|PREDICATE|OBJECT|isTRIPLE))/i,/^(?:(LANGMATCHES|CONTAINS|STRSTARTS|STRENDS|STRBEFORE|STRAFTER|STRLANG|STRDT|sameTerm))/i,/^(?:CONCAT)/i,/^(?:COALESCE)/i,/^(?:IF)/i,/^(?:TRIPLE)/i,/^(?:REGEX)/i,/^(?:SUBSTR)/i,/^(?:REPLACE)/i,/^(?:EXISTS)/i,/^(?:COUNT)/i,/^(?:SUM|MIN|MAX|AVG|SAMPLE)/i,/^(?:GROUP_CONCAT)/i,/^(?:SEPARATOR)/i,/^(?:\^\^)/i,/^(?:true|false)/i,/^(?:(<(?:[^<>\"\{\}\|\^`\\\u0000-\u0020])*>))/i,/^(?:((([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])(?:(?:(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040])|\.)*(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040]))?)?:))/i,/^(?:(((([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])(?:(?:(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040])|\.)*(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040]))?)?:)((?:((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|:|[0-9]|((%([0-9A-Fa-f])([0-9A-Fa-f]))|(\\(_|~|\.|-|!|\$|&|'|\(|\)|\*|\+|,|;|=|\/|\?|#|@|%))))(?:(?:(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040])|\.|:|((%([0-9A-Fa-f])([0-9A-Fa-f]))|(\\(_|~|\.|-|!|\$|&|'|\(|\)|\*|\+|,|;|=|\/|\?|#|@|%))))*(?:(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040])|:|((%([0-9A-Fa-f])([0-9A-Fa-f]))|(\\(_|~|\.|-|!|\$|&|'|\(|\)|\*|\+|,|;|=|\/|\?|#|@|%)))))?)))/i,/^(?:(_:(?:((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|[0-9])(?:(?:(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040])|\.)*(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040]))?))/i,/^(?:([\?\$]((?:((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|[0-9])(?:((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040])*)))/i,/^(?:(@[a-zA-Z]+(?:-[a-zA-Z0-9]+)*))/i,/^(?:([0-9]+))/i,/^(?:([0-9]*\.[0-9]+))/i,/^(?:([0-9]+\.[0-9]*([eE][+-]?[0-9]+)|\.([0-9])+([eE][+-]?[0-9]+)|([0-9])+([eE][+-]?[0-9]+)))/i,/^(?:(\+([0-9]+)))/i,/^(?:(\+([0-9]*\.[0-9]+)))/i,/^(?:(\+([0-9]+\.[0-9]*([eE][+-]?[0-9]+)|\.([0-9])+([eE][+-]?[0-9]+)|([0-9])+([eE][+-]?[0-9]+))))/i,/^(?:(-([0-9]+)))/i,/^(?:(-([0-9]*\.[0-9]+)))/i,/^(?:(-([0-9]+\.[0-9]*([eE][+-]?[0-9]+)|\.([0-9])+([eE][+-]?[0-9]+)|([0-9])+([eE][+-]?[0-9]+))))/i,/^(?:([eE][+-]?[0-9]+))/i,/^(?:('(?:(?:[^\u0027\u005C\u000A\u000D])|(\\[tbnrf\\\"']|\\u([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])|\\U([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])))*'))/i,/^(?:("(?:(?:[^\u0022\u005C\u000A\u000D])|(\\[tbnrf\\\"']|\\u([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])|\\U([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])))*"))/i,/^(?:('''(?:(?:'|'')?(?:[^'\\]|(\\[tbnrf\\\"']|\\u([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])|\\U([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f]))))*'''))/i,/^(?:("""(?:(?:"|"")?(?:[^\"\\]|(\\[tbnrf\\\"']|\\u([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])|\\U([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f]))))*"""))/i,/^(?:(\((\u0020|\u0009|\u000D|\u000A)*\)))/i,/^(?:(\[(\u0020|\u0009|\u000D|\u000A)*\]))/i,/^(?:$)/i,/^(?:.)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125],inclusive:!0}}};return Be}();ZT.lexer=mre;function Bt(){this.yy={}}return Bt.prototype=ZT,ZT.Parser=Bt,new Bt}(),zde=Qde,Gde="http://www.w3.org/2001/XMLSchema#integer",Wde="http://www.w3.org/2001/XMLSchema#string";function Ir(t){this._options=t=t||{};var e=t.prefixes||{};this._prefixByIri={};var r=[];for(var n in e){var a=e[n];G_(a)&&(this._prefixByIri[a]=n,r.push(a))}var s=r.join("|").replace(/[\]\/\(\)\*\+\?\.\\\$]/g,"\\$&");this._prefixRegex=new RegExp("^("+s+")([a-zA-Z][\\-_a-zA-Z0-9]*)$"),this._usedPrefixes={},this._sparqlStar=t.sparqlStar,this._indent=G_(t.indent)?t.indent:" ",this._newline=G_(t.newline)?t.newline:` +`,this._explicitDatatype=!!t.explicitDatatype}Ir.prototype.toQuery=function(t){var e="";return t.queryType&&(e+=t.queryType.toUpperCase()+" "),t.reduced&&(e+="REDUCED "),t.distinct&&(e+="DISTINCT "),t.variables?e+=Ci(t.variables,void 0,function(r){return su(r)?this.toEntity(r):"("+this.toExpression(r.expression)+" AS "+pS(r.variable)+")"},this)+" ":t.template&&(e+=this.group(t.template,!0)+this._newline),t.from&&(e+=this.graphs("FROM ",t.from.default)+this.graphs("FROM NAMED ",t.from.named)),t.where&&(e+="WHERE "+this.group(t.where,!0)+this._newline),t.updates&&(e+=Ci(t.updates,";"+this._newline,this.toUpdate,this)),t.group&&(e+="GROUP BY "+Ci(t.group,void 0,function(r){var n=su(r.expression)?this.toEntity(r.expression):"("+this.toExpression(r.expression)+")";return r.variable?"("+n+" AS "+pS(r.variable)+")":n},this)+this._newline),t.having&&(e+="HAVING ("+Ci(t.having,void 0,this.toExpression,this)+")"+this._newline),t.order&&(e+="ORDER BY "+Ci(t.order,void 0,function(r){var n="("+this.toExpression(r.expression)+")";return r.descending?"DESC "+n:n},this)+this._newline),t.offset&&(e+="OFFSET "+t.offset+this._newline),t.limit&&(e+="LIMIT "+t.limit+this._newline),t.values&&(e+=this.values(t)),e=this.baseAndPrefixes(t)+e,e.trim()};Ir.prototype.baseAndPrefixes=function(t){var e=t.base?"BASE <"+t.base+">"+this._newline:"",r="";for(var n in t.prefixes)(this._options.allPrefixes||this._usedPrefixes[n])&&(r+="PREFIX "+n+": <"+t.prefixes[n]+">"+this._newline);return e+r};Ir.prototype.toPattern=function(t){var e=t.type||t instanceof Array&&"array"||(t.subject&&t.predicate&&t.object?"triple":"");if(!(e in this))throw new Error("Unknown entry type: "+e);return this[e](t)};Ir.prototype.triple=function(t){return this.toEntity(t.subject)+" "+this.toEntity(t.predicate)+" "+this.toEntity(t.object)+"."};Ir.prototype.array=function(t){return Ci(t,this._newline,this.toPattern,this)};Ir.prototype.bgp=function(t){return this.encodeTriples(t.triples)};Ir.prototype.encodeTriples=function(t){if(!t.length)return"";for(var e=[],r=void 0,n=void 0,a=0;a":case">=":case"<=":case"&&":case"||":case"=":case"!=":case"+":case"-":case"*":case"/":return(su(r[0])?this.toEntity(r[0]):"("+this.toExpression(r[0])+")")+" "+e+" "+(su(r[1])?this.toEntity(r[1]):"("+this.toExpression(r[1])+")");case"!":return"!("+this.toExpression(r[0])+")";case"uplus":return"+("+this.toExpression(r[0])+")";case"uminus":return"-("+this.toExpression(r[0])+")";case"notin":e="NOT IN";case"in":return this.toExpression(r[0])+" "+e+"("+(G_(r[1])?r[1]:Ci(r[1],", ",this.toExpression,this))+")";case"notexists":e="NOT EXISTS";case"exists":return e+" "+this.group(r[0],!0);default:return e+"("+Ci(r,", ",this.toExpression,this)+")"}default:throw new Error("Unknown expression type: "+t.type)}};Ir.prototype.toEntity=function(t){if(su(t))switch(t.termType){case"Wildcard":return"*";case"Variable":return pS(t);case"BlankNode":return"_:"+t.value;case"Literal":var e=t.value||"",r=t.language||"",n=t.datatype;if(t='"'+e.replace(vK,wK)+'"',r)t+="@"+r;else if(n){if(!this._explicitDatatype)switch(n.value){case Wde:return t;case Gde:if(/^\d+$/.test(e))return e+" "}t+="^^"+this.encodeIRI(n.value)}return t;case"Quad":if(!this._sparqlStar)throw new Error("SPARQL* support is not enabled");return t.graph&&t.graph.termType!=="DefaultGraph"?"<< GRAPH "+this.toEntity(t.graph)+" { "+this.toEntity(t.subject)+" "+this.toEntity(t.predicate)+" "+this.toEntity(t.object)+" } >>":"<< "+this.toEntity(t.subject)+" "+this.toEntity(t.predicate)+" "+this.toEntity(t.object)+" >>";default:return this.encodeIRI(t.value)}else{var a=t.items.map(this.toEntity,this),s=t.pathType;switch(s){case"^":case"!":return s+a[0];case"*":case"+":case"?":return"("+a[0]+s+")";default:return"("+a.join(s)+")"}}};var vK=/["\\\t\n\r\b\f]/g,wK=function(t){return Kde[t]},Kde={"\\":"\\\\",'"':'\\"'," ":"\\t","\n":"\\n","\r":"\\r","\b":"\\b","\f":"\\f"};Ir.prototype.encodeIRI=function(t){var e=this._prefixRegex.exec(t);if(e){var r=this._prefixByIri[e[1]];return this._usedPrefixes[r]=!0,r+":"+e[2]}return"<"+t+">"};Ir.prototype.toUpdate=function(t){switch(t.type||t.updateType){case"load":return"LOAD"+(t.source?" "+this.toEntity(t.source):"")+(t.destination?" INTO GRAPH "+this.toEntity(t.destination):"");case"insert":return"INSERT DATA "+this.group(t.insert,!0);case"delete":return"DELETE DATA "+this.group(t.delete,!0);case"deletewhere":return"DELETE WHERE "+this.group(t.delete,!0);case"insertdelete":return(t.graph?"WITH "+this.toEntity(t.graph)+this._newline:"")+(t.delete.length?"DELETE "+this.group(t.delete,!0)+this._newline:"")+(t.insert.length?"INSERT "+this.group(t.insert,!0)+this._newline:"")+(t.using?this.graphs("USING ",t.using.default):"")+(t.using?this.graphs("USING NAMED ",t.using.named):"")+"WHERE "+this.group(t.where,!0);case"add":case"copy":case"move":return t.type.toUpperCase()+" "+(t.silent?"SILENT ":"")+(t.source.default?"DEFAULT":this.toEntity(t.source.name))+" TO "+this.toEntity(t.destination.name);case"create":case"clear":case"drop":return t.type.toUpperCase()+(t.silent?" SILENT ":" ")+(t.graph.default?"DEFAULT":t.graph.named?"NAMED":t.graph.all?"ALL":"GRAPH "+this.toEntity(t.graph.name));default:throw new Error("Unknown update query type: "+t.type)}};Ir.prototype.indent=function(t){return t.replace(/^/gm,this._indent)};function pS(t){return"?"+t.value}function G_(t){return typeof t=="string"}function su(t){return typeof t.termType=="string"}function bc(t,e){if(!t||!su(t)||!e||!su(e)||t.termType!==e.termType)return!1;switch(t.termType){case"Literal":return t.value===e.value&&t.language===e.language&&bc(t.datatype,e.datatype);case"Quad":return bc(t.subject,e.subject)&&bc(t.predicate,e.predicate)&&bc(t.object,e.object)&&bc(t.graph,e.graph);default:return t.value===e.value}}function Ci(t,e,r,n){return t.map(r,n).join(G_(e)?e:" ")}var Jde=function(e={}){return{stringify:function(r){var n=Object.create(e);return n.prefixes=r.prefixes,new Ir(n).toQuery(r)},createGenerator:function(){return new Ir(e)}}},Ot={},zb={};Object.defineProperty(zb,"__esModule",{value:!0});zb.BlankNode=void 0;let Xde=class{constructor(e){this.termType="BlankNode",this.value=e}equals(e){return!!e&&e.termType==="BlankNode"&&e.value===this.value}};zb.BlankNode=Xde;var m2={},Gb={};Object.defineProperty(Gb,"__esModule",{value:!0});Gb.DefaultGraph=void 0;let oP=class{constructor(){this.termType="DefaultGraph",this.value=""}equals(e){return!!e&&e.termType==="DefaultGraph"}};Gb.DefaultGraph=oP;oP.INSTANCE=new oP;var Wb={},hf={};Object.defineProperty(hf,"__esModule",{value:!0});hf.NamedNode=void 0;let Yde=class{constructor(e){this.termType="NamedNode",this.value=e}equals(e){return!!e&&e.termType==="NamedNode"&&e.value===this.value}};hf.NamedNode=Yde;Object.defineProperty(Wb,"__esModule",{value:!0});Wb.Literal=void 0;const SK=hf;let SD=class uP{constructor(e,r){this.termType="Literal",this.value=e,typeof r=="string"?(this.language=r,this.datatype=uP.RDF_LANGUAGE_STRING):r?(this.language="",this.datatype=r):(this.language="",this.datatype=uP.XSD_STRING)}equals(e){return!!e&&e.termType==="Literal"&&e.value===this.value&&e.language===this.language&&this.datatype.equals(e.datatype)}};Wb.Literal=SD;SD.RDF_LANGUAGE_STRING=new SK.NamedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString");SD.XSD_STRING=new SK.NamedNode("http://www.w3.org/2001/XMLSchema#string");var Kb={};Object.defineProperty(Kb,"__esModule",{value:!0});Kb.Quad=void 0;let Zde=class{constructor(e,r,n,a){this.termType="Quad",this.value="",this.subject=e,this.predicate=r,this.object=n,this.graph=a}equals(e){return!!e&&(e.termType==="Quad"||!e.termType)&&this.subject.equals(e.subject)&&this.predicate.equals(e.predicate)&&this.object.equals(e.object)&&this.graph.equals(e.graph)}};Kb.Quad=Zde;var Jb={};Object.defineProperty(Jb,"__esModule",{value:!0});Jb.Variable=void 0;let efe=class{constructor(e){this.termType="Variable",this.value=e}equals(e){return!!e&&e.termType==="Variable"&&e.value===this.value}};Jb.Variable=efe;Object.defineProperty(m2,"__esModule",{value:!0});m2.DataFactory=void 0;const tfe=zb,rfe=Gb,CL=Wb,nfe=hf,ife=Kb,afe=Jb;let sfe=0,ofe=class{constructor(e){this.blankNodeCounter=0,e=e||{},this.blankNodePrefix=e.blankNodePrefix||`df_${sfe++}_`}namedNode(e){return new nfe.NamedNode(e)}blankNode(e){return new tfe.BlankNode(e||`${this.blankNodePrefix}${this.blankNodeCounter++}`)}literal(e,r){return new CL.Literal(e,r)}variable(e){return new afe.Variable(e)}defaultGraph(){return rfe.DefaultGraph.INSTANCE}quad(e,r,n,a){return new ife.Quad(e,r,n,a||this.defaultGraph())}fromTerm(e){switch(e.termType){case"NamedNode":return this.namedNode(e.value);case"BlankNode":return this.blankNode(e.value);case"Literal":return e.language?this.literal(e.value,e.language):e.datatype.equals(CL.Literal.XSD_STRING)?this.literal(e.value):this.literal(e.value,this.fromTerm(e.datatype));case"Variable":return this.variable(e.value);case"DefaultGraph":return this.defaultGraph();case"Quad":return this.quad(this.fromTerm(e.subject),this.fromTerm(e.predicate),this.fromTerm(e.object),this.fromTerm(e.graph))}}fromQuad(e){return this.fromTerm(e)}resetBlankNodeCounter(){this.blankNodeCounter=0}};m2.DataFactory=ofe;(function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s),Object.defineProperty(n,o,{enumerable:!0,get:function(){return a[s]}})}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(zb,t),r(m2,t),r(Gb,t),r(Wb,t),r(hf,t),r(Kb,t),r(Jb,t)})(Ot);var Ms=zde.Parser,ufe=Jde,cfe=wD.Wildcard,{DataFactory:lfe}=Ot,sl={Parser:function({prefixes:t,baseIRI:e,factory:r,sparqlStar:n,skipValidation:a,skipUngroupedVariableCheck:s,pathOnly:o}={}){var u={};for(var c in t||{})u[c]=t[c];var l=new Ms;return l.parse=function(){return Ms.base=e||"",Ms.prefixes=Object.create(u),Ms.factory=r||new lfe,Ms.sparqlStar=!!n,Ms.pathOnly=!!o,Ms.skipValidation=!!a||!!s,Ms.prototype.parse.apply(l,arguments)},l._resetBlanks=Ms._resetBlanks,l},Generator:ufe,Wildcard:cfe},TK={exports:{}},zE={exports:{}},ys={};(function(t){Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var e={},r={};r.byteLength=d,r.toByteArray=h,r.fromByteArray=y;for(var n=[],a=[],s=typeof Uint8Array<"u"?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,c=o.length;u0)throw new Error("Invalid string. Length must be a multiple of 4");var w=v.indexOf("=");w===-1&&(w=_);var E=w===_?0:4-w%4;return[w,E]}function d(v){var _=l(v),w=_[0],E=_[1];return(w+E)*3/4-E}function f(v,_,w){return(_+w)*3/4-w}function h(v){var _,w=l(v),E=w[0],O=w[1],L=new s(f(v,E,O)),F=0,x=O>0?E-4:E,P;for(P=0;P>16&255,L[F++]=_>>8&255,L[F++]=_&255;return O===2&&(_=a[v.charCodeAt(P)]<<2|a[v.charCodeAt(P+1)]>>4,L[F++]=_&255),O===1&&(_=a[v.charCodeAt(P)]<<10|a[v.charCodeAt(P+1)]<<4|a[v.charCodeAt(P+2)]>>2,L[F++]=_>>8&255,L[F++]=_&255),L}function p(v){return n[v>>18&63]+n[v>>12&63]+n[v>>6&63]+n[v&63]}function m(v,_,w){for(var E,O=[],L=_;Lx?x:F+L));return E===1?(_=v[w-1],O.push(n[_>>2]+n[_<<4&63]+"==")):E===2&&(_=(v[w-2]<<8)+v[w-1],O.push(n[_>>10]+n[_>>4&63]+n[_<<2&63]+"=")),O.join("")}var g={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */g.read=function(v,_,w,E,O){var L,F,x=O*8-E-1,P=(1<>1,N=-7,V=w?O-1:0,$=w?-1:1,q=v[_+V];for(V+=$,L=q&(1<<-N)-1,q>>=-N,N+=x;N>0;L=L*256+v[_+V],V+=$,N-=8);for(F=L&(1<<-N)-1,L>>=-N,N+=E;N>0;F=F*256+v[_+V],V+=$,N-=8);if(L===0)L=1-j;else{if(L===P)return F?NaN:(q?-1:1)*(1/0);F=F+Math.pow(2,E),L=L-j}return(q?-1:1)*F*Math.pow(2,L-E)},g.write=function(v,_,w,E,O,L){var F,x,P,j=L*8-O-1,N=(1<>1,$=O===23?Math.pow(2,-24)-Math.pow(2,-77):0,q=E?0:L-1,H=E?1:-1,X=_<0||_===0&&1/_<0?1:0;for(_=Math.abs(_),isNaN(_)||_===1/0?(x=isNaN(_)?1:0,F=N):(F=Math.floor(Math.log(_)/Math.LN2),_*(P=Math.pow(2,-F))<1&&(F--,P*=2),F+V>=1?_+=$/P:_+=$*Math.pow(2,1-V),_*P>=2&&(F++,P/=2),F+V>=N?(x=0,F=N):F+V>=1?(x=(_*P-1)*Math.pow(2,O),F=F+V):(x=_*Math.pow(2,V-1)*Math.pow(2,O),F=0));O>=8;v[w+q]=x&255,q+=H,x/=256,O-=8);for(F=F<0;v[w+q]=F&255,q+=H,F/=256,j-=8);v[w+q-H]|=X*128};/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT - */(function(v){const _=r,w=g,E=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;v.Buffer=N,v.SlowBuffer=de,v.INSPECT_MAX_BYTES=50;const O=2147483647;v.kMaxLength=O;const{Uint8Array:L,ArrayBuffer:F,SharedArrayBuffer:x}=globalThis;N.TYPED_ARRAY_SUPPORT=P(),!N.TYPED_ARRAY_SUPPORT&&typeof console<"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.");function P(){try{const S=new L(1),A={foo:function(){return 42}};return Object.setPrototypeOf(A,L.prototype),Object.setPrototypeOf(S,A),S.foo()===42}catch{return!1}}Object.defineProperty(N.prototype,"parent",{enumerable:!0,get:function(){if(N.isBuffer(this))return this.buffer}}),Object.defineProperty(N.prototype,"offset",{enumerable:!0,get:function(){if(N.isBuffer(this))return this.byteOffset}});function j(S){if(S>O)throw new RangeError('The value "'+S+'" is invalid for option "size"');const A=new L(S);return Object.setPrototypeOf(A,N.prototype),A}function N(S,A,C){if(typeof S=="number"){if(typeof A=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return H(S)}return V(S,A,C)}N.poolSize=8192;function V(S,A,C){if(typeof S=="string")return X(S,A);if(F.isView(S))return he(S);if(S==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof S);if(ut(S,F)||S&&ut(S.buffer,F)||typeof x<"u"&&(ut(S,x)||S&&ut(S.buffer,x)))return Te(S,A,C);if(typeof S=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const J=S.valueOf&&S.valueOf();if(J!=null&&J!==S)return N.from(J,A,C);const ie=Ne(S);if(ie)return ie;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof S[Symbol.toPrimitive]=="function")return N.from(S[Symbol.toPrimitive]("string"),A,C);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof S)}N.from=function(S,A,C){return V(S,A,C)},Object.setPrototypeOf(N.prototype,L.prototype),Object.setPrototypeOf(N,L);function $(S){if(typeof S!="number")throw new TypeError('"size" argument must be of type number');if(S<0)throw new RangeError('The value "'+S+'" is invalid for option "size"')}function q(S,A,C){return $(S),S<=0?j(S):A!==void 0?typeof C=="string"?j(S).fill(A,C):j(S).fill(A):j(S)}N.alloc=function(S,A,C){return q(S,A,C)};function H(S){return $(S),j(S<0?0:$e(S)|0)}N.allocUnsafe=function(S){return H(S)},N.allocUnsafeSlow=function(S){return H(S)};function X(S,A){if((typeof A!="string"||A==="")&&(A="utf8"),!N.isEncoding(A))throw new TypeError("Unknown encoding: "+A);const C=ce(S,A)|0;let J=j(C);const ie=J.write(S,A);return ie!==C&&(J=J.slice(0,ie)),J}function Y(S){const A=S.length<0?0:$e(S.length)|0,C=j(A);for(let J=0;J=O)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+O.toString(16)+" bytes");return S|0}function de(S){return+S!=S&&(S=0),N.alloc(+S)}N.isBuffer=function(A){return A!=null&&A._isBuffer===!0&&A!==N.prototype},N.compare=function(A,C){if(ut(A,L)&&(A=N.from(A,A.offset,A.byteLength)),ut(C,L)&&(C=N.from(C,C.offset,C.byteLength)),!N.isBuffer(A)||!N.isBuffer(C))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(A===C)return 0;let J=A.length,ie=C.length;for(let be=0,ve=Math.min(J,ie);beie.length?(N.isBuffer(ve)||(ve=N.from(ve)),ve.copy(ie,be)):L.prototype.set.call(ie,ve,be);else if(N.isBuffer(ve))ve.copy(ie,be);else throw new TypeError('"list" argument must be an Array of Buffers');be+=ve.length}return ie};function ce(S,A){if(N.isBuffer(S))return S.length;if(F.isView(S)||ut(S,F))return S.byteLength;if(typeof S!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof S);const C=S.length,J=arguments.length>2&&arguments[2]===!0;if(!J&&C===0)return 0;let ie=!1;for(;;)switch(A){case"ascii":case"latin1":case"binary":return C;case"utf8":case"utf-8":return ee(S).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C*2;case"hex":return C>>>1;case"base64":return Ue(S).length;default:if(ie)return J?-1:ee(S).length;A=(""+A).toLowerCase(),ie=!0}}N.byteLength=ce;function xe(S,A,C){let J=!1;if((A===void 0||A<0)&&(A=0),A>this.length||((C===void 0||C>this.length)&&(C=this.length),C<=0)||(C>>>=0,A>>>=0,C<=A))return"";for(S||(S="utf8");;)switch(S){case"hex":return re(this,A,C);case"utf8":case"utf-8":return U(this,A,C);case"ascii":return Z(this,A,C);case"latin1":case"binary":return se(this,A,C);case"base64":return R(this,A,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return le(this,A,C);default:if(J)throw new TypeError("Unknown encoding: "+S);S=(S+"").toLowerCase(),J=!0}}N.prototype._isBuffer=!0;function Pe(S,A,C){const J=S[A];S[A]=S[C],S[C]=J}N.prototype.swap16=function(){const A=this.length;if(A%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let C=0;CC&&(A+=" ... "),""},E&&(N.prototype[E]=N.prototype.inspect),N.prototype.compare=function(A,C,J,ie,be){if(ut(A,L)&&(A=N.from(A,A.offset,A.byteLength)),!N.isBuffer(A))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof A);if(C===void 0&&(C=0),J===void 0&&(J=A?A.length:0),ie===void 0&&(ie=0),be===void 0&&(be=this.length),C<0||J>A.length||ie<0||be>this.length)throw new RangeError("out of range index");if(ie>=be&&C>=J)return 0;if(ie>=be)return-1;if(C>=J)return 1;if(C>>>=0,J>>>=0,ie>>>=0,be>>>=0,this===A)return 0;let ve=be-ie,Fe=J-C;const Je=Math.min(ve,Fe),lt=this.slice(ie,be),rt=A.slice(C,J);for(let Qe=0;Qe2147483647?C=2147483647:C<-2147483648&&(C=-2147483648),C=+C,at(C)&&(C=ie?0:S.length-1),C<0&&(C=S.length+C),C>=S.length){if(ie)return-1;C=S.length-1}else if(C<0)if(ie)C=0;else return-1;if(typeof A=="string"&&(A=N.from(A,J)),N.isBuffer(A))return A.length===0?-1:Re(S,A,C,J,ie);if(typeof A=="number")return A=A&255,typeof L.prototype.indexOf=="function"?ie?L.prototype.indexOf.call(S,A,C):L.prototype.lastIndexOf.call(S,A,C):Re(S,[A],C,J,ie);throw new TypeError("val must be string, number or Buffer")}function Re(S,A,C,J,ie){let be=1,ve=S.length,Fe=A.length;if(J!==void 0&&(J=String(J).toLowerCase(),J==="ucs2"||J==="ucs-2"||J==="utf16le"||J==="utf-16le")){if(S.length<2||A.length<2)return-1;be=2,ve/=2,Fe/=2,C/=2}function Je(rt,Qe){return be===1?rt[Qe]:rt.readUInt16BE(Qe*be)}let lt;if(ie){let rt=-1;for(lt=C;ltve&&(C=ve-Fe),lt=C;lt>=0;lt--){let rt=!0;for(let Qe=0;Qeie&&(J=ie)):J=ie;const be=A.length;J>be/2&&(J=be/2);let ve;for(ve=0;ve>>0,isFinite(J)?(J=J>>>0,ie===void 0&&(ie="utf8")):(ie=J,J=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const be=this.length-C;if((J===void 0||J>be)&&(J=be),A.length>0&&(J<0||C<0)||C>this.length)throw new RangeError("Attempt to write outside buffer bounds");ie||(ie="utf8");let ve=!1;for(;;)switch(ie){case"hex":return Se(this,A,C,J);case"utf8":case"utf-8":return z(this,A,C,J);case"ascii":case"latin1":case"binary":return M(this,A,C,J);case"base64":return k(this,A,C,J);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,A,C,J);default:if(ve)throw new TypeError("Unknown encoding: "+ie);ie=(""+ie).toLowerCase(),ve=!0}},N.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function R(S,A,C){return A===0&&C===S.length?_.fromByteArray(S):_.fromByteArray(S.slice(A,C))}function U(S,A,C){C=Math.min(S.length,C);const J=[];let ie=A;for(;ie239?4:be>223?3:be>191?2:1;if(ie+Fe<=C){let Je,lt,rt,Qe;switch(Fe){case 1:be<128&&(ve=be);break;case 2:Je=S[ie+1],(Je&192)===128&&(Qe=(be&31)<<6|Je&63,Qe>127&&(ve=Qe));break;case 3:Je=S[ie+1],lt=S[ie+2],(Je&192)===128&&(lt&192)===128&&(Qe=(be&15)<<12|(Je&63)<<6|lt&63,Qe>2047&&(Qe<55296||Qe>57343)&&(ve=Qe));break;case 4:Je=S[ie+1],lt=S[ie+2],rt=S[ie+3],(Je&192)===128&&(lt&192)===128&&(rt&192)===128&&(Qe=(be&15)<<18|(Je&63)<<12|(lt&63)<<6|rt&63,Qe>65535&&Qe<1114112&&(ve=Qe))}}ve===null?(ve=65533,Fe=1):ve>65535&&(ve-=65536,J.push(ve>>>10&1023|55296),ve=56320|ve&1023),J.push(ve),ie+=Fe}return Q(J)}const G=4096;function Q(S){const A=S.length;if(A<=G)return String.fromCharCode.apply(String,S);let C="",J=0;for(;JJ)&&(C=J);let ie="";for(let be=A;beJ&&(A=J),C<0?(C+=J,C<0&&(C=0)):C>J&&(C=J),CC)throw new RangeError("Trying to access beyond buffer length")}N.prototype.readUintLE=N.prototype.readUIntLE=function(A,C,J){A=A>>>0,C=C>>>0,J||pe(A,C,this.length);let ie=this[A],be=1,ve=0;for(;++ve>>0,C=C>>>0,J||pe(A,C,this.length);let ie=this[A+--C],be=1;for(;C>0&&(be*=256);)ie+=this[A+--C]*be;return ie},N.prototype.readUint8=N.prototype.readUInt8=function(A,C){return A=A>>>0,C||pe(A,1,this.length),this[A]},N.prototype.readUint16LE=N.prototype.readUInt16LE=function(A,C){return A=A>>>0,C||pe(A,2,this.length),this[A]|this[A+1]<<8},N.prototype.readUint16BE=N.prototype.readUInt16BE=function(A,C){return A=A>>>0,C||pe(A,2,this.length),this[A]<<8|this[A+1]},N.prototype.readUint32LE=N.prototype.readUInt32LE=function(A,C){return A=A>>>0,C||pe(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+this[A+3]*16777216},N.prototype.readUint32BE=N.prototype.readUInt32BE=function(A,C){return A=A>>>0,C||pe(A,4,this.length),this[A]*16777216+(this[A+1]<<16|this[A+2]<<8|this[A+3])},N.prototype.readBigUInt64LE=ht(function(A){A=A>>>0,ne(A,"offset");const C=this[A],J=this[A+7];(C===void 0||J===void 0)&&fe(A,this.length-8);const ie=C+this[++A]*2**8+this[++A]*2**16+this[++A]*2**24,be=this[++A]+this[++A]*2**8+this[++A]*2**16+J*2**24;return BigInt(ie)+(BigInt(be)<>>0,ne(A,"offset");const C=this[A],J=this[A+7];(C===void 0||J===void 0)&&fe(A,this.length-8);const ie=C*2**24+this[++A]*2**16+this[++A]*2**8+this[++A],be=this[++A]*2**24+this[++A]*2**16+this[++A]*2**8+J;return(BigInt(ie)<>>0,C=C>>>0,J||pe(A,C,this.length);let ie=this[A],be=1,ve=0;for(;++ve=be&&(ie-=Math.pow(2,8*C)),ie},N.prototype.readIntBE=function(A,C,J){A=A>>>0,C=C>>>0,J||pe(A,C,this.length);let ie=C,be=1,ve=this[A+--ie];for(;ie>0&&(be*=256);)ve+=this[A+--ie]*be;return be*=128,ve>=be&&(ve-=Math.pow(2,8*C)),ve},N.prototype.readInt8=function(A,C){return A=A>>>0,C||pe(A,1,this.length),this[A]&128?(255-this[A]+1)*-1:this[A]},N.prototype.readInt16LE=function(A,C){A=A>>>0,C||pe(A,2,this.length);const J=this[A]|this[A+1]<<8;return J&32768?J|4294901760:J},N.prototype.readInt16BE=function(A,C){A=A>>>0,C||pe(A,2,this.length);const J=this[A+1]|this[A]<<8;return J&32768?J|4294901760:J},N.prototype.readInt32LE=function(A,C){return A=A>>>0,C||pe(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},N.prototype.readInt32BE=function(A,C){return A=A>>>0,C||pe(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},N.prototype.readBigInt64LE=ht(function(A){A=A>>>0,ne(A,"offset");const C=this[A],J=this[A+7];(C===void 0||J===void 0)&&fe(A,this.length-8);const ie=this[A+4]+this[A+5]*2**8+this[A+6]*2**16+(J<<24);return(BigInt(ie)<>>0,ne(A,"offset");const C=this[A],J=this[A+7];(C===void 0||J===void 0)&&fe(A,this.length-8);const ie=(C<<24)+this[++A]*2**16+this[++A]*2**8+this[++A];return(BigInt(ie)<>>0,C||pe(A,4,this.length),w.read(this,A,!0,23,4)},N.prototype.readFloatBE=function(A,C){return A=A>>>0,C||pe(A,4,this.length),w.read(this,A,!1,23,4)},N.prototype.readDoubleLE=function(A,C){return A=A>>>0,C||pe(A,8,this.length),w.read(this,A,!0,52,8)},N.prototype.readDoubleBE=function(A,C){return A=A>>>0,C||pe(A,8,this.length),w.read(this,A,!1,52,8)};function _e(S,A,C,J,ie,be){if(!N.isBuffer(S))throw new TypeError('"buffer" argument must be a Buffer instance');if(A>ie||AS.length)throw new RangeError("Index out of range")}N.prototype.writeUintLE=N.prototype.writeUIntLE=function(A,C,J,ie){if(A=+A,C=C>>>0,J=J>>>0,!ie){const Fe=Math.pow(2,8*J)-1;_e(this,A,C,J,Fe,0)}let be=1,ve=0;for(this[C]=A&255;++ve>>0,J=J>>>0,!ie){const Fe=Math.pow(2,8*J)-1;_e(this,A,C,J,Fe,0)}let be=J-1,ve=1;for(this[C+be]=A&255;--be>=0&&(ve*=256);)this[C+be]=A/ve&255;return C+J},N.prototype.writeUint8=N.prototype.writeUInt8=function(A,C,J){return A=+A,C=C>>>0,J||_e(this,A,C,1,255,0),this[C]=A&255,C+1},N.prototype.writeUint16LE=N.prototype.writeUInt16LE=function(A,C,J){return A=+A,C=C>>>0,J||_e(this,A,C,2,65535,0),this[C]=A&255,this[C+1]=A>>>8,C+2},N.prototype.writeUint16BE=N.prototype.writeUInt16BE=function(A,C,J){return A=+A,C=C>>>0,J||_e(this,A,C,2,65535,0),this[C]=A>>>8,this[C+1]=A&255,C+2},N.prototype.writeUint32LE=N.prototype.writeUInt32LE=function(A,C,J){return A=+A,C=C>>>0,J||_e(this,A,C,4,4294967295,0),this[C+3]=A>>>24,this[C+2]=A>>>16,this[C+1]=A>>>8,this[C]=A&255,C+4},N.prototype.writeUint32BE=N.prototype.writeUInt32BE=function(A,C,J){return A=+A,C=C>>>0,J||_e(this,A,C,4,4294967295,0),this[C]=A>>>24,this[C+1]=A>>>16,this[C+2]=A>>>8,this[C+3]=A&255,C+4};function Ie(S,A,C,J,ie){K(A,J,ie,S,C,7);let be=Number(A&BigInt(4294967295));S[C++]=be,be=be>>8,S[C++]=be,be=be>>8,S[C++]=be,be=be>>8,S[C++]=be;let ve=Number(A>>BigInt(32)&BigInt(4294967295));return S[C++]=ve,ve=ve>>8,S[C++]=ve,ve=ve>>8,S[C++]=ve,ve=ve>>8,S[C++]=ve,C}function Ee(S,A,C,J,ie){K(A,J,ie,S,C,7);let be=Number(A&BigInt(4294967295));S[C+7]=be,be=be>>8,S[C+6]=be,be=be>>8,S[C+5]=be,be=be>>8,S[C+4]=be;let ve=Number(A>>BigInt(32)&BigInt(4294967295));return S[C+3]=ve,ve=ve>>8,S[C+2]=ve,ve=ve>>8,S[C+1]=ve,ve=ve>>8,S[C]=ve,C+8}N.prototype.writeBigUInt64LE=ht(function(A,C=0){return Ie(this,A,C,BigInt(0),BigInt("0xffffffffffffffff"))}),N.prototype.writeBigUInt64BE=ht(function(A,C=0){return Ee(this,A,C,BigInt(0),BigInt("0xffffffffffffffff"))}),N.prototype.writeIntLE=function(A,C,J,ie){if(A=+A,C=C>>>0,!ie){const Je=Math.pow(2,8*J-1);_e(this,A,C,J,Je-1,-Je)}let be=0,ve=1,Fe=0;for(this[C]=A&255;++be>0)-Fe&255;return C+J},N.prototype.writeIntBE=function(A,C,J,ie){if(A=+A,C=C>>>0,!ie){const Je=Math.pow(2,8*J-1);_e(this,A,C,J,Je-1,-Je)}let be=J-1,ve=1,Fe=0;for(this[C+be]=A&255;--be>=0&&(ve*=256);)A<0&&Fe===0&&this[C+be+1]!==0&&(Fe=1),this[C+be]=(A/ve>>0)-Fe&255;return C+J},N.prototype.writeInt8=function(A,C,J){return A=+A,C=C>>>0,J||_e(this,A,C,1,127,-128),A<0&&(A=255+A+1),this[C]=A&255,C+1},N.prototype.writeInt16LE=function(A,C,J){return A=+A,C=C>>>0,J||_e(this,A,C,2,32767,-32768),this[C]=A&255,this[C+1]=A>>>8,C+2},N.prototype.writeInt16BE=function(A,C,J){return A=+A,C=C>>>0,J||_e(this,A,C,2,32767,-32768),this[C]=A>>>8,this[C+1]=A&255,C+2},N.prototype.writeInt32LE=function(A,C,J){return A=+A,C=C>>>0,J||_e(this,A,C,4,2147483647,-2147483648),this[C]=A&255,this[C+1]=A>>>8,this[C+2]=A>>>16,this[C+3]=A>>>24,C+4},N.prototype.writeInt32BE=function(A,C,J){return A=+A,C=C>>>0,J||_e(this,A,C,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),this[C]=A>>>24,this[C+1]=A>>>16,this[C+2]=A>>>8,this[C+3]=A&255,C+4},N.prototype.writeBigInt64LE=ht(function(A,C=0){return Ie(this,A,C,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),N.prototype.writeBigInt64BE=ht(function(A,C=0){return Ee(this,A,C,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Me(S,A,C,J,ie,be){if(C+J>S.length)throw new RangeError("Index out of range");if(C<0)throw new RangeError("Index out of range")}function Ce(S,A,C,J,ie){return A=+A,C=C>>>0,ie||Me(S,A,C,4),w.write(S,A,C,J,23,4),C+4}N.prototype.writeFloatLE=function(A,C,J){return Ce(this,A,C,!0,J)},N.prototype.writeFloatBE=function(A,C,J){return Ce(this,A,C,!1,J)};function ke(S,A,C,J,ie){return A=+A,C=C>>>0,ie||Me(S,A,C,8),w.write(S,A,C,J,52,8),C+8}N.prototype.writeDoubleLE=function(A,C,J){return ke(this,A,C,!0,J)},N.prototype.writeDoubleBE=function(A,C,J){return ke(this,A,C,!1,J)},N.prototype.copy=function(A,C,J,ie){if(!N.isBuffer(A))throw new TypeError("argument should be a Buffer");if(J||(J=0),!ie&&ie!==0&&(ie=this.length),C>=A.length&&(C=A.length),C||(C=0),ie>0&&ie=this.length)throw new RangeError("Index out of range");if(ie<0)throw new RangeError("sourceEnd out of bounds");ie>this.length&&(ie=this.length),A.length-C>>0,J=J===void 0?this.length:J>>>0,A||(A=0);let be;if(typeof A=="number")for(be=C;be2**32?ie=D(String(C)):typeof C=="bigint"&&(ie=String(C),(C>BigInt(2)**BigInt(32)||C<-(BigInt(2)**BigInt(32)))&&(ie=D(ie)),ie+="n"),J+=` It must be ${A}. Received ${ie}`,J},RangeError);function D(S){let A="",C=S.length;const J=S[0]==="-"?1:0;for(;C>=J+4;C-=3)A=`_${S.slice(C-3,C)}${A}`;return`${S.slice(0,C)}${A}`}function B(S,A,C){ne(A,"offset"),(S[A]===void 0||S[A+C]===void 0)&&fe(A,S.length-(C+1))}function K(S,A,C,J,ie,be){if(S>C||S3?A===0||A===BigInt(0)?Fe=`>= 0${ve} and < 2${ve} ** ${(be+1)*8}${ve}`:Fe=`>= -(2${ve} ** ${(be+1)*8-1}${ve}) and < 2 ** ${(be+1)*8-1}${ve}`:Fe=`>= ${A}${ve} and <= ${C}${ve}`,new qe.ERR_OUT_OF_RANGE("value",Fe,S)}B(J,ie,be)}function ne(S,A){if(typeof S!="number")throw new qe.ERR_INVALID_ARG_TYPE(A,"number",S)}function fe(S,A,C){throw Math.floor(S)!==S?(ne(S,C),new qe.ERR_OUT_OF_RANGE(C||"offset","an integer",S)):A<0?new qe.ERR_BUFFER_OUT_OF_BOUNDS:new qe.ERR_OUT_OF_RANGE(C||"offset",`>= ${C?1:0} and <= ${A}`,S)}const ge=/[^+/0-9A-Za-z-_]/g;function Le(S){if(S=S.split("=")[0],S=S.trim().replace(ge,""),S.length<2)return"";for(;S.length%4!==0;)S=S+"=";return S}function ee(S,A){A=A||1/0;let C;const J=S.length;let ie=null;const be=[];for(let ve=0;ve55295&&C<57344){if(!ie){if(C>56319){(A-=3)>-1&&be.push(239,191,189);continue}else if(ve+1===J){(A-=3)>-1&&be.push(239,191,189);continue}ie=C;continue}if(C<56320){(A-=3)>-1&&be.push(239,191,189),ie=C;continue}C=(ie-55296<<10|C-56320)+65536}else ie&&(A-=3)>-1&&be.push(239,191,189);if(ie=null,C<128){if((A-=1)<0)break;be.push(C)}else if(C<2048){if((A-=2)<0)break;be.push(C>>6|192,C&63|128)}else if(C<65536){if((A-=3)<0)break;be.push(C>>12|224,C>>6&63|128,C&63|128)}else if(C<1114112){if((A-=4)<0)break;be.push(C>>18|240,C>>12&63|128,C>>6&63|128,C&63|128)}else throw new Error("Invalid code point")}return be}function Oe(S){const A=[];for(let C=0;C>8,ie=C%256,be.push(ie),be.push(J);return be}function Ue(S){return _.toByteArray(Le(S))}function Ye(S,A,C,J){let ie;for(ie=0;ie=A.length||ie>=S.length);++ie)A[ie+C]=S[ie];return ie}function ut(S,A){return S instanceof A||S!=null&&S.constructor!=null&&S.constructor.name!=null&&S.constructor.name===A.name}function at(S){return S!==S}const ct=function(){const S="0123456789abcdef",A=new Array(256);for(let C=0;C<16;++C){const J=C*16;for(let ie=0;ie<16;++ie)A[J+ie]=S[C]+S[ie]}return A}();function ht(S){return typeof BigInt>"u"?te:S}function te(){throw new Error("BigInt not supported")}})(e);const b=e.Buffer;t.Blob=e.Blob,t.BlobOptions=e.BlobOptions,t.Buffer=e.Buffer,t.File=e.File,t.FileOptions=e.FileOptions,t.INSPECT_MAX_BYTES=e.INSPECT_MAX_BYTES,t.SlowBuffer=e.SlowBuffer,t.TranscodeEncoding=e.TranscodeEncoding,t.atob=e.atob,t.btoa=e.btoa,t.constants=e.constants,t.default=b,t.isAscii=e.isAscii,t.isUtf8=e.isUtf8,t.kMaxLength=e.kMaxLength,t.kStringMaxLength=e.kStringMaxLength,t.resolveObjectURL=e.resolveObjectURL,t.transcode=e.transcode})(ys);var Ur={ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},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(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.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(t,e,r){return t.set(e,r)},Boolean,Uint8Array},EK={exports:{}},Jf={exports:{}},LL;function $d(){if(LL)return Jf.exports;LL=1;const{AbortController:t,AbortSignal:e}=typeof self<"u"?self:typeof window<"u"?window:void 0;return Jf.exports=t,Jf.exports.AbortSignal=e,Jf.exports.default=t,Jf.exports}var TD={exports:{}},Td=typeof Reflect=="object"?Reflect:null,jL=Td&&typeof Td.apply=="function"?Td.apply:function(e,r,n){return Function.prototype.apply.call(e,r,n)},Ow;Td&&typeof Td.ownKeys=="function"?Ow=Td.ownKeys:Object.getOwnPropertySymbols?Ow=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Ow=function(e){return Object.getOwnPropertyNames(e)};function ffe(t){console&&console.warn&&console.warn(t)}var AK=Number.isNaN||function(e){return e!==e};function hr(){hr.init.call(this)}TD.exports=hr;TD.exports.once=mfe;hr.EventEmitter=hr;hr.prototype._events=void 0;hr.prototype._eventsCount=0;hr.prototype._maxListeners=void 0;var ML=10;function _2(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(hr,"defaultMaxListeners",{enumerable:!0,get:function(){return ML},set:function(t){if(typeof t!="number"||t<0||AK(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");ML=t}});hr.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};hr.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||AK(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function OK(t){return t._maxListeners===void 0?hr.defaultMaxListeners:t._maxListeners}hr.prototype.getMaxListeners=function(){return OK(this)};hr.prototype.emit=function(e){for(var r=[],n=1;n0&&(o=r[0]),o instanceof Error)throw o;var u=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw u.context=o,u}var c=s[e];if(c===void 0)return!1;if(typeof c=="function")jL(c,this,r);else for(var l=c.length,d=NK(c,l),n=0;n0&&o.length>a&&!o.warned){o.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=o.length,ffe(u)}return t}hr.prototype.addListener=function(e,r){return RK(this,e,r,!1)};hr.prototype.on=hr.prototype.addListener;hr.prototype.prependListener=function(e,r){return RK(this,e,r,!0)};function hfe(){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 xK(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},a=hfe.bind(n);return a.listener=r,n.wrapFn=a,a}hr.prototype.once=function(e,r){return _2(r),this.on(e,xK(this,e,r)),this};hr.prototype.prependOnceListener=function(e,r){return _2(r),this.prependListener(e,xK(this,e,r)),this};hr.prototype.removeListener=function(e,r){var n,a,s,o,u;if(_2(r),a=this._events,a===void 0)return this;if(n=a[e],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete a[e],a.removeListener&&this.emit("removeListener",e,n.listener||r));else if(typeof n!="function"){for(s=-1,o=n.length-1;o>=0;o--)if(n[o]===r||n[o].listener===r){u=n[o].listener,s=o;break}if(s<0)return this;s===0?n.shift():pfe(n,s),n.length===1&&(a[e]=n[0]),a.removeListener!==void 0&&this.emit("removeListener",e,u||r)}return this};hr.prototype.off=hr.prototype.removeListener;hr.prototype.removeAllListeners=function(e){var r,n,a;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var s=Object.keys(n),o;for(a=0;a=0;a--)this.removeListener(e,r[a]);return this};function IK(t,e,r){var n=t._events;if(n===void 0)return[];var a=n[e];return a===void 0?[]:typeof a=="function"?r?[a.listener||a]:[a]:r?yfe(a):NK(a,a.length)}hr.prototype.listeners=function(e){return IK(this,e,!0)};hr.prototype.rawListeners=function(e){return IK(this,e,!1)};hr.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):PK.call(t,e)};hr.prototype.listenerCount=PK;function PK(t){var e=this._events;if(e!==void 0){var r=e[t];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}hr.prototype.eventNames=function(){return this._eventsCount>0?Ow(this._events):[]};function NK(t,e){for(var r=new Array(e),n=0;n{if(h!==void 0&&(h===null||typeof h!="object"||!("aborted"in h)))throw new ERR_INVALID_ARG_TYPE(p,"AbortSignal",h)},d=(h,p)=>{if(typeof h!="function")throw new ERR_INVALID_ARG_TYPE(p,"Function",h)};class f extends Error{constructor(p){if(!Array.isArray(p))throw new TypeError(`Expected input to be an Array, got ${typeof p}`);let m="";for(let y=0;y{h=y,p=g}),resolve:h,reject:p}},promisify(h){return new Promise((p,m)=>{h((y,...g)=>y?m(y):p(...g))})},debuglog(){return function(){}},format(h,...p){return h.replace(/%([sdifj])/g,function(...[m,y]){const g=p.shift();return y==="f"?g.toFixed(6):y==="j"?JSON.stringify(g):y==="s"&&typeof g=="object"?`${g.constructor!==Object?g.constructor.name:""} {}`.trim():g.toString()})},inspect(h){switch(typeof h){case"string":if(h.includes("'"))if(h.includes('"')){if(!h.includes("`")&&!h.includes("${"))return`\`${h}\``}else return`"${h}"`;return`'${h}'`;case"number":return isNaN(h)?"NaN":Object.is(h,-0)?String(h):h;case"bigint":return`${String(h)}n`;case"boolean":case"undefined":return String(h);case"object":return"{}"}},types:{isAsyncFunction(h){return h instanceof o},isArrayBufferView(h){return ArrayBuffer.isView(h)}},isBlob:c,deprecate(h,p){return h},addAbortListener:Xb.addAbortListener||function(p,m){if(p===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",p);l(p,"signal"),d(m,"listener");let y;return p.aborted?queueMicrotask(()=>m()):(p.addEventListener("abort",m,{__proto__:null,once:!0,[r]:!0}),y=()=>{p.removeEventListener("abort",m)}),{__proto__:null,[n](){var g;(g=y)===null||g===void 0||g()}}},AbortSignalAny:a.any||function(p){if(p.length===1)return p[0];const m=new s,y=()=>m.abort();return p.forEach(g=>{l(g,"signals"),g.addEventListener("abort",y,{once:!0})}),m.signal.addEventListener("abort",()=>{p.forEach(g=>g.removeEventListener("abort",y))},{once:!0}),m.signal}},t.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(EK);var ui=EK.exports,ED={};const{format:_fe,inspect:mS,AggregateError:bfe}=ui,vfe=globalThis.AggregateError||bfe,wfe=Symbol("kIsNodeError"),Sfe=["string","function","number","object","Function","Object","boolean","bigint","symbol"],Tfe=/^([A-Z][a-z0-9]*)+$/,Efe="__node_internal_",b2={};function qc(t,e){if(!t)throw new b2.ERR_INTERNAL_ASSERTION(e)}function FL(t){let e="",r=t.length;const n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function Afe(t,e,r){if(typeof e=="function")return qc(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);const n=(e.match(/%[dfijoOs]/g)||[]).length;return qc(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:_fe(e,...r)}function xn(t,e,r){r||(r=Error);class n extends r{constructor(...s){super(Afe(t,e,s))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[wfe]=!0,b2[t]=n}function BL(t){const e=Efe+t.name;return Object.defineProperty(t,"name",{value:e}),t}function Ofe(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;const r=new vfe([e,t],e.message);return r.code=e.code,r}return t||e}let Rfe=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new b2.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};xn("ERR_ASSERTION","%s",Error);xn("ERR_INVALID_ARG_TYPE",(t,e,r)=>{qc(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";const a=[],s=[],o=[];for(const c of e)qc(typeof c=="string","All expected entries have to be of type string"),Sfe.includes(c)?a.push(c.toLowerCase()):Tfe.test(c)?s.push(c):(qc(c!=="object",'The value "object" should be written as "Object"'),o.push(c));if(s.length>0){const c=a.indexOf("object");c!==-1&&(a.splice(a,c,1),s.push("Object"))}if(a.length>0){switch(a.length){case 1:n+=`of type ${a[0]}`;break;case 2:n+=`one of type ${a[0]} or ${a[1]}`;break;default:{const c=a.pop();n+=`one of type ${a.join(", ")}, or ${c}`}}(s.length>0||o.length>0)&&(n+=" or ")}if(s.length>0){switch(s.length){case 1:n+=`an instance of ${s[0]}`;break;case 2:n+=`an instance of ${s[0]} or ${s[1]}`;break;default:{const c=s.pop();n+=`an instance of ${s.join(", ")}, or ${c}`}}o.length>0&&(n+=" or ")}switch(o.length){case 0:break;case 1:o[0].toLowerCase()!==o[0]&&(n+="an "),n+=`${o[0]}`;break;case 2:n+=`one of ${o[0]} or ${o[1]}`;break;default:{const c=o.pop();n+=`one of ${o.join(", ")}, or ${c}`}}if(r==null)n+=`. Received ${r}`;else if(typeof r=="function"&&r.name)n+=`. Received function ${r.name}`;else if(typeof r=="object"){var u;if((u=r.constructor)!==null&&u!==void 0&&u.name)n+=`. Received an instance of ${r.constructor.name}`;else{const c=mS(r,{depth:-1});n+=`. Received ${c}`}}else{let c=mS(r,{colors:!1});c.length>25&&(c=`${c.slice(0,25)}...`),n+=`. Received type ${typeof r} (${c})`}return n},TypeError);xn("ERR_INVALID_ARG_VALUE",(t,e,r="is invalid")=>{let n=mS(e);return n.length>128&&(n=n.slice(0,128)+"..."),`The ${t.includes(".")?"property":"argument"} '${t}' ${r}. Received ${n}`},TypeError);xn("ERR_INVALID_RETURN_VALUE",(t,e,r)=>{var n;const a=r!=null&&(n=r.constructor)!==null&&n!==void 0&&n.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${t} to be returned from the "${e}" function but got ${a}.`},TypeError);xn("ERR_MISSING_ARGS",(...t)=>{qc(t.length>0,"At least one arg needs to be specified");let e;const r=t.length;switch(t=(Array.isArray(t)?t:[t]).map(n=>`"${n}"`).join(" or "),r){case 1:e+=`The ${t[0]} argument`;break;case 2:e+=`The ${t[0]} and ${t[1]} arguments`;break;default:{const n=t.pop();e+=`The ${t.join(", ")}, and ${n} arguments`}break}return`${e} must be specified`},TypeError);xn("ERR_OUT_OF_RANGE",(t,e,r)=>{qc(e,'Missing "range" argument');let n;return Number.isInteger(r)&&Math.abs(r)>2**32?n=FL(String(r)):typeof r=="bigint"?(n=String(r),(r>2n**32n||r<-(2n**32n))&&(n=FL(n)),n+="n"):n=mS(r),`The value of "${t}" is out of range. It must be ${e}. Received ${n}`},RangeError);xn("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);xn("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);xn("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);xn("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);xn("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);xn("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);xn("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);xn("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);xn("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);xn("ERR_STREAM_WRITE_AFTER_END","write after end",Error);xn("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var Ei={AbortError:Rfe,aggregateTwoErrors:BL(Ofe),hideStackFrames:BL,codes:b2};const{ArrayIsArray:AD,ArrayPrototypeIncludes:CK,ArrayPrototypeJoin:LK,ArrayPrototypeMap:xfe,NumberIsInteger:OD,NumberIsNaN:Ife,NumberMAX_SAFE_INTEGER:Pfe,NumberMIN_SAFE_INTEGER:Nfe,NumberParseInt:Dfe,ObjectPrototypeHasOwnProperty:Cfe,RegExpPrototypeExec:jK,String:Lfe,StringPrototypeToUpperCase:jfe,StringPrototypeTrim:Mfe}=Ur,{hideStackFrames:pa,codes:{ERR_SOCKET_BAD_PORT:Ffe,ERR_INVALID_ARG_TYPE:$n,ERR_INVALID_ARG_VALUE:pf,ERR_OUT_OF_RANGE:Kc,ERR_UNKNOWN_SIGNAL:qL}}=Ei,{normalizeEncoding:Bfe}=ui,{isAsyncFunction:qfe,isArrayBufferView:$fe}=ui.types,$L={};function Ufe(t){return t===(t|0)}function kfe(t){return t===t>>>0}const Vfe=/^[0-7]+$/,Hfe="must be a 32-bit unsigned integer or an octal string";function Qfe(t,e,r){if(typeof t>"u"&&(t=r),typeof t=="string"){if(jK(Vfe,t)===null)throw new pf(e,t,Hfe);t=Dfe(t,8)}return MK(t,e),t}const zfe=pa((t,e,r=Nfe,n=Pfe)=>{if(typeof t!="number")throw new $n(e,"number",t);if(!OD(t))throw new Kc(e,"an integer",t);if(tn)throw new Kc(e,`>= ${r} && <= ${n}`,t)}),Gfe=pa((t,e,r=-2147483648,n=2147483647)=>{if(typeof t!="number")throw new $n(e,"number",t);if(!OD(t))throw new Kc(e,"an integer",t);if(tn)throw new Kc(e,`>= ${r} && <= ${n}`,t)}),MK=pa((t,e,r=!1)=>{if(typeof t!="number")throw new $n(e,"number",t);if(!OD(t))throw new Kc(e,"an integer",t);const n=r?1:0,a=4294967295;if(ta)throw new Kc(e,`>= ${n} && <= ${a}`,t)});function RD(t,e){if(typeof t!="string")throw new $n(e,"string",t)}function Wfe(t,e,r=void 0,n){if(typeof t!="number")throw new $n(e,"number",t);if(r!=null&&tn||(r!=null||n!=null)&&Ife(t))throw new Kc(e,`${r!=null?`>= ${r}`:""}${r!=null&&n!=null?" && ":""}${n!=null?`<= ${n}`:""}`,t)}const Kfe=pa((t,e,r)=>{if(!CK(r,t)){const a="must be one of: "+LK(xfe(r,s=>typeof s=="string"?`'${s}'`:Lfe(s)),", ");throw new pf(e,t,a)}});function FK(t,e){if(typeof t!="boolean")throw new $n(e,"boolean",t)}function WE(t,e,r){return t==null||!Cfe(t,e)?r:t[e]}const Jfe=pa((t,e,r=null)=>{const n=WE(r,"allowArray",!1),a=WE(r,"allowFunction",!1);if(!WE(r,"nullable",!1)&&t===null||!n&&AD(t)||typeof t!="object"&&(!a||typeof t!="function"))throw new $n(e,"Object",t)}),Xfe=pa((t,e)=>{if(t!=null&&typeof t!="object"&&typeof t!="function")throw new $n(e,"a dictionary",t)}),v2=pa((t,e,r=0)=>{if(!AD(t))throw new $n(e,"Array",t);if(t.length{if(!$fe(t))throw new $n(e,["Buffer","TypedArray","DataView"],t)});function nhe(t,e){const r=Bfe(e),n=t.length;if(r==="hex"&&n%2!==0)throw new pf("encoding",e,`is invalid for data of length ${n}`)}function ihe(t,e="Port",r=!0){if(typeof t!="number"&&typeof t!="string"||typeof t=="string"&&Mfe(t).length===0||+t!==+t>>>0||t>65535||t===0&&!r)throw new Ffe(e,t,r);return t|0}const BK=pa((t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new $n(e,"AbortSignal",t)}),ahe=pa((t,e)=>{if(typeof t!="function")throw new $n(e,"Function",t)}),she=pa((t,e)=>{if(typeof t!="function"||qfe(t))throw new $n(e,"Function",t)}),ohe=pa((t,e)=>{if(t!==void 0)throw new $n(e,"undefined",t)});function uhe(t,e,r){if(!CK(r,t))throw new $n(e,`('${LK(r,"|")}')`,t)}const che=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function UL(t,e){if(typeof t>"u"||!jK(che,t))throw new pf(e,t,'must be an array or string of format "; rel=preload; as=style"')}function lhe(t){if(typeof t=="string")return UL(t,"hints"),t;if(AD(t)){const e=t.length;let r="";if(e===0)return r;for(let n=0;n; rel=preload; as=style"')}var Yb={isInt32:Ufe,isUint32:kfe,parseFileMode:Qfe,validateArray:v2,validateStringArray:Yfe,validateBooleanArray:Zfe,validateAbortSignalArray:ehe,validateBoolean:FK,validateBuffer:rhe,validateDictionary:Xfe,validateEncoding:nhe,validateFunction:ahe,validateInt32:Gfe,validateInteger:zfe,validateNumber:Wfe,validateObject:Jfe,validateOneOf:Kfe,validatePlainFunction:she,validatePort:ihe,validateSignalName:the,validateString:RD,validateUint32:MK,validateUndefined:ohe,validateUnion:uhe,validateAbortSignal:BK,validateLinkHeaderValue:lhe},xD={exports:{}},qK={exports:{}},Yr=qK.exports={},ts,rs;function cP(){throw new Error("setTimeout has not been defined")}function lP(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?ts=setTimeout:ts=cP}catch{ts=cP}try{typeof clearTimeout=="function"?rs=clearTimeout:rs=lP}catch{rs=lP}})();function $K(t){if(ts===setTimeout)return setTimeout(t,0);if((ts===cP||!ts)&&setTimeout)return ts=setTimeout,setTimeout(t,0);try{return ts(t,0)}catch{try{return ts.call(null,t,0)}catch{return ts.call(this,t,0)}}}function dhe(t){if(rs===clearTimeout)return clearTimeout(t);if((rs===lP||!rs)&&clearTimeout)return rs=clearTimeout,clearTimeout(t);try{return rs(t)}catch{try{return rs.call(null,t)}catch{return rs.call(this,t)}}}var io=[],Ed=!1,Nc,Rw=-1;function fhe(){!Ed||!Nc||(Ed=!1,Nc.length?io=Nc.concat(io):Rw=-1,io.length&&UK())}function UK(){if(!Ed){var t=$K(fhe);Ed=!0;for(var e=io.length;e;){for(Nc=io,io=[];++Rw1)for(var r=1;r{};function nJ(t,e,r){var n,a;if(arguments.length===2?(r=e,e=hP):e==null?e=hP:Dhe(e,"options"),Nhe(r,"callback"),Phe(e.signal,"options.signal"),r=pP(r),Fhe(t)||Bhe(t))return Vhe(t,e,r);if(!qhe(t))throw new Ihe("stream",["ReadableStream","WritableStream","Stream"],t);const s=(n=e.readable)!==null&&n!==void 0?n:KE(t),o=(a=e.writable)!==null&&a!==void 0?a:KL(t),u=t._writableState,c=t._readableState,l=()=>{t.writable||h()};let d=$he(t)&&KE(t)===s&&KL(t)===o,f=JL(t,!1);const h=()=>{f=!0,t.destroyed&&(d=!1),!(d&&(!t.readable||s))&&(!s||p)&&r.call(t)};let p=zL(t,!1);const m=()=>{p=!0,t.destroyed&&(d=!1),!(d&&(!t.writable||o))&&(!o||f)&&r.call(t)},y=E=>{r.call(t,E)};let g=Mhe(t);const b=()=>{g=!0;const E=XL(t)||GL(t);if(E&&typeof E!="boolean")return r.call(t,E);if(s&&!p&&KE(t,!0)&&!zL(t,!1))return r.call(t,new HL);if(o&&!f&&!JL(t,!1))return r.call(t,new HL);r.call(t)},v=()=>{g=!0;const E=XL(t)||GL(t);if(E&&typeof E!="boolean")return r.call(t,E);r.call(t)},_=()=>{t.req.on("finish",h)};khe(t)?(t.on("complete",h),d||t.on("abort",b),t.req?_():t.on("request",_)):o&&!u&&(t.on("end",l),t.on("close",l)),!d&&typeof t.aborted=="boolean"&&t.on("aborted",b),t.on("end",m),t.on("finish",h),e.error!==!1&&t.on("error",y),t.on("close",b),g?Jo.nextTick(b):u!=null&&u.errorEmitted||c!=null&&c.errorEmitted?d||Jo.nextTick(v):(!s&&(!d||QL(t))&&(f||WL(t)===!1)||!o&&(!d||WL(t))&&(p||QL(t)===!1)||c&&t.req&&t.aborted)&&Jo.nextTick(v);const w=()=>{r=yP,t.removeListener("aborted",b),t.removeListener("complete",h),t.removeListener("abort",b),t.removeListener("request",_),t.req&&t.req.removeListener("finish",h),t.removeListener("end",l),t.removeListener("close",l),t.removeListener("finish",h),t.removeListener("end",m),t.removeListener("error",y),t.removeListener("close",b)};if(e.signal&&!g){const E=()=>{const O=r;w(),O.call(t,new tJ(void 0,{cause:e.signal.reason}))};if(e.signal.aborted)Jo.nextTick(E);else{Ad=Ad||ui.addAbortListener;const O=Ad(e.signal,E),L=r;r=pP((...F)=>{O[rJ](),L.apply(t,F)})}}return w}function Vhe(t,e,r){let n=!1,a=yP;if(e.signal)if(a=()=>{n=!0,r.call(t,new tJ(void 0,{cause:e.signal.reason}))},e.signal.aborted)Jo.nextTick(a);else{Ad=Ad||ui.addAbortListener;const o=Ad(e.signal,a),u=r;r=pP((...c)=>{o[rJ](),u.apply(t,c)})}const s=(...o)=>{n||Jo.nextTick(()=>r.apply(t,o))};return jhe(t[Uhe].promise,s,s),yP}function Hhe(t,e){var r;let n=!1;return e===null&&(e=hP),(r=e)!==null&&r!==void 0&&r.cleanup&&(Che(e.cleanup,"cleanup"),n=e.cleanup),new Lhe((a,s)=>{const o=nJ(t,e,u=>{n&&o(),u?s(u):a()})})}xD.exports=nJ;xD.exports.finished=Hhe;var Ou=xD.exports;const ls=Oo,{aggregateTwoErrors:Qhe,codes:{ERR_MULTIPLE_CALLBACK:zhe},AbortError:Ghe}=Ei,{Symbol:iJ}=Ur,{kIsDestroyed:Whe,isDestroyed:Khe,isFinished:Jhe,isServerRequest:Xhe}=Ro,aJ=iJ("kDestroy"),mP=iJ("kConstruct");function sJ(t,e,r){t&&(t.stack,e&&!e.errored&&(e.errored=t),r&&!r.errored&&(r.errored=t))}function Yhe(t,e){const r=this._readableState,n=this._writableState,a=n||r;return n!=null&&n.destroyed||r!=null&&r.destroyed?(typeof e=="function"&&e(),this):(sJ(t,n,r),n&&(n.destroyed=!0),r&&(r.destroyed=!0),a.constructed?YL(this,t,e):this.once(aJ,function(s){YL(this,Qhe(s,t),e)}),this)}function YL(t,e,r){let n=!1;function a(s){if(n)return;n=!0;const o=t._readableState,u=t._writableState;sJ(s,u,o),u&&(u.closed=!0),o&&(o.closed=!0),typeof r=="function"&&r(s),s?ls.nextTick(Zhe,t,s):ls.nextTick(oJ,t)}try{t._destroy(e||null,a)}catch(s){a(s)}}function Zhe(t,e){gP(t,e),oJ(t)}function oJ(t){const e=t._readableState,r=t._writableState;r&&(r.closeEmitted=!0),e&&(e.closeEmitted=!0),(r!=null&&r.emitClose||e!=null&&e.emitClose)&&t.emit("close")}function gP(t,e){const r=t._readableState,n=t._writableState;n!=null&&n.errorEmitted||r!=null&&r.errorEmitted||(n&&(n.errorEmitted=!0),r&&(r.errorEmitted=!0),t.emit("error",e))}function epe(){const t=this._readableState,e=this._writableState;t&&(t.constructed=!0,t.closed=!1,t.closeEmitted=!1,t.destroyed=!1,t.errored=null,t.errorEmitted=!1,t.reading=!1,t.ended=t.readable===!1,t.endEmitted=t.readable===!1),e&&(e.constructed=!0,e.destroyed=!1,e.closed=!1,e.closeEmitted=!1,e.errored=null,e.errorEmitted=!1,e.finalCalled=!1,e.prefinished=!1,e.ended=e.writable===!1,e.ending=e.writable===!1,e.finished=e.writable===!1)}function _P(t,e,r){const n=t._readableState,a=t._writableState;if(a!=null&&a.destroyed||n!=null&&n.destroyed)return this;n!=null&&n.autoDestroy||a!=null&&a.autoDestroy?t.destroy(e):e&&(e.stack,a&&!a.errored&&(a.errored=e),n&&!n.errored&&(n.errored=e),r?ls.nextTick(gP,t,e):gP(t,e))}function tpe(t,e){if(typeof t._construct!="function")return;const r=t._readableState,n=t._writableState;r&&(r.constructed=!1),n&&(n.constructed=!1),t.once(mP,e),!(t.listenerCount(mP)>1)&&ls.nextTick(rpe,t)}function rpe(t){let e=!1;function r(n){if(e){_P(t,n??new zhe);return}e=!0;const a=t._readableState,s=t._writableState,o=s||a;a&&(a.constructed=!0),s&&(s.constructed=!0),o.destroyed?t.emit(aJ,n):n?_P(t,n,!0):ls.nextTick(npe,t)}try{t._construct(n=>{ls.nextTick(r,n)})}catch(n){ls.nextTick(r,n)}}function npe(t){t.emit(mP)}function ZL(t){return(t==null?void 0:t.setHeader)&&typeof t.abort=="function"}function uJ(t){t.emit("close")}function ipe(t,e){t.emit("error",e),ls.nextTick(uJ,t)}function ape(t,e){!t||Khe(t)||(!e&&!Jhe(t)&&(e=new Ghe),Xhe(t)?(t.socket=null,t.destroy(e)):ZL(t)?t.abort():ZL(t.req)?t.req.abort():typeof t.destroy=="function"?t.destroy(e):typeof t.close=="function"?t.close():e?ls.nextTick(ipe,t,e):ls.nextTick(uJ,t),t.destroyed||(t[Whe]=!0))}var yf={construct:tpe,destroyer:ape,destroy:Yhe,undestroy:epe,errorOrDestroy:_P};const{ArrayIsArray:spe,ObjectSetPrototypeOf:cJ}=Ur,{EventEmitter:E2}=Xb;function A2(t){E2.call(this,t)}cJ(A2.prototype,E2.prototype);cJ(A2,E2);A2.prototype.pipe=function(t,e){const r=this;function n(d){t.writable&&t.write(d)===!1&&r.pause&&r.pause()}r.on("data",n);function a(){r.readable&&r.resume&&r.resume()}t.on("drain",a),!t._isStdio&&(!e||e.end!==!1)&&(r.on("end",o),r.on("close",u));let s=!1;function o(){s||(s=!0,t.end())}function u(){s||(s=!0,typeof t.destroy=="function"&&t.destroy())}function c(d){l(),E2.listenerCount(this,"error")===0&&this.emit("error",d)}bP(r,"error",c),bP(t,"error",c);function l(){r.removeListener("data",n),t.removeListener("drain",a),r.removeListener("end",o),r.removeListener("close",u),r.removeListener("error",c),t.removeListener("error",c),r.removeListener("end",l),r.removeListener("close",l),t.removeListener("close",l)}return r.on("end",l),r.on("close",l),t.on("close",l),t.emit("pipe",r),t};function bP(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):spe(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}var ID={Stream:A2,prependListener:bP},lJ={exports:{}};(function(t){const{SymbolDispose:e}=Ur,{AbortError:r,codes:n}=Ei,{isNodeStream:a,isWebStream:s,kControllerErrorFunction:o}=Ro,u=Ou,{ERR_INVALID_ARG_TYPE:c}=n;let l;const d=(f,h)=>{if(typeof f!="object"||!("aborted"in f))throw new c(h,"AbortSignal",f)};t.exports.addAbortSignal=function(h,p){if(d(h,"signal"),!a(p)&&!s(p))throw new c("stream",["ReadableStream","WritableStream","Stream"],p);return t.exports.addAbortSignalNoValidate(h,p)},t.exports.addAbortSignalNoValidate=function(f,h){if(typeof f!="object"||!("aborted"in f))return h;const p=a(h)?()=>{h.destroy(new r(void 0,{cause:f.reason}))}:()=>{h[o](new r(void 0,{cause:f.reason}))};if(f.aborted)p();else{l=l||ui.addAbortListener;const m=l(f,p);u(h,m[e])}return h}})(lJ);var O2=lJ.exports;const{StringPrototypeSlice:ej,SymbolIterator:ope,TypedArrayPrototypeSet:Av,Uint8Array:upe}=Ur,{Buffer:JE}=ys,{inspect:cpe}=ui;var lpe=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){const r={data:e,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length}unshift(e){const r={data:e,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length}shift(){if(this.length===0)return;const e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(this.length===0)return"";let r=this.head,n=""+r.data;for(;(r=r.next)!==null;)n+=e+r.data;return n}concat(e){if(this.length===0)return JE.alloc(0);const r=JE.allocUnsafe(e>>>0);let n=this.head,a=0;for(;n;)Av(r,n.data,a),a+=n.data.length,n=n.next;return r}consume(e,r){const n=this.head.data;if(es.length)r+=s,e-=s.length;else{e===s.length?(r+=s,++a,n.next?this.head=n.next:this.head=this.tail=null):(r+=ej(s,0,e),this.head=n,n.data=ej(s,e));break}++a}while((n=n.next)!==null);return this.length-=a,r}_getBuffer(e){const r=JE.allocUnsafe(e),n=e;let a=this.head,s=0;do{const o=a.data;if(e>o.length)Av(r,o,n-e),e-=o.length;else{e===o.length?(Av(r,o,n-e),++s,a.next?this.head=a.next:this.head=this.tail=null):(Av(r,new upe(o.buffer,o.byteOffset,e),n-e),this.head=a,a.data=o.slice(e));break}++s}while((a=a.next)!==null);return this.length-=s,r}[Symbol.for("nodejs.util.inspect.custom")](e,r){return cpe(this,{...r,depth:0,customInspect:!1})}};const{MathFloor:dpe,NumberIsInteger:fpe}=Ur,{validateInteger:hpe}=Yb,{ERR_INVALID_ARG_VALUE:ppe}=Ei.codes;let dJ=16*1024,fJ=16;function ype(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function hJ(t){return t?fJ:dJ}function mpe(t,e){hpe(e,"value",0),t?fJ=e:dJ=e}function gpe(t,e,r,n){const a=ype(e,n,r);if(a!=null){if(!fpe(a)||a<0){const s=n?`options.${r}`:"options.highWaterMark";throw new ppe(s,a)}return dpe(a)}return hJ(t.objectMode)}var R2={getHighWaterMark:gpe,getDefaultHighWaterMark:hJ,setDefaultHighWaterMark:mpe},pJ={},vP={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh */(function(t,e){var r=ys,n=r.Buffer;function a(o,u){for(var c in o)u[c]=o[c]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=r:(a(r,e),e.Buffer=s);function s(o,u,c){return n(o,u,c)}s.prototype=Object.create(n.prototype),a(n,s),s.from=function(o,u,c){if(typeof o=="number")throw new TypeError("Argument must not be a number");return n(o,u,c)},s.alloc=function(o,u,c){if(typeof o!="number")throw new TypeError("Argument must be a number");var l=n(o);return u!==void 0?typeof c=="string"?l.fill(u,c):l.fill(u):l.fill(0),l},s.allocUnsafe=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return n(o)},s.allocUnsafeSlow=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(o)}})(vP,vP.exports);var _pe=vP.exports,PD=_pe.Buffer,tj=PD.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function bpe(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function vpe(t){var e=bpe(t);if(typeof e!="string"&&(PD.isEncoding===tj||!tj(t)))throw new Error("Unknown encoding: "+t);return e||t}pJ.StringDecoder=Zb;function Zb(t){this.encoding=vpe(t);var e;switch(this.encoding){case"utf16le":this.text=Ope,this.end=Rpe,e=4;break;case"utf8":this.fillLast=Tpe,e=4;break;case"base64":this.text=xpe,this.end=Ipe,e=3;break;default:this.write=Ppe,this.end=Npe;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=PD.allocUnsafe(e)}Zb.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function wpe(t,e,r){var n=e.length-1;if(n=0?(a>0&&(t.lastNeed=a-1),a):--n=0?(a>0&&(t.lastNeed=a-2),a):--n=0?(a>0&&(a===2?a=0:t.lastNeed=a-3),a):0))}function Spe(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"�"}}function Tpe(t){var e=this.lastTotal-this.lastNeed,r=Spe(this,t);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function Epe(t,e){var r=wpe(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)}function Ape(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e}function Ope(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function Rpe(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function xpe(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function Ipe(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function Ppe(t){return t.toString(this.encoding)}function Npe(t){return t&&t.length?this.write(t):""}const rj=Oo,{PromisePrototypeThen:Dpe,SymbolAsyncIterator:nj,SymbolIterator:ij}=Ur,{Buffer:Cpe}=ys,{ERR_INVALID_ARG_TYPE:Lpe,ERR_STREAM_NULL_VALUES:jpe}=Ei.codes;function Mpe(t,e,r){let n;if(typeof e=="string"||e instanceof Cpe)return new t({objectMode:!0,...r,read(){this.push(e),this.push(null)}});let a;if(e&&e[nj])a=!0,n=e[nj]();else if(e&&e[ij])a=!1,n=e[ij]();else throw new Lpe("iterable",["Iterable"],e);const s=new t({objectMode:!0,highWaterMark:1,...r});let o=!1;s._read=function(){o||(o=!0,c())},s._destroy=function(l,d){Dpe(u(l),()=>rj.nextTick(d,l),f=>rj.nextTick(d,f||l))};async function u(l){const d=l!=null,f=typeof n.throw=="function";if(d&&f){const{value:h,done:p}=await n.throw(l);if(await h,p)return}if(typeof n.return=="function"){const{value:h}=await n.return();await h}}async function c(){for(;;){try{const{value:l,done:d}=a?await n.next():n.next();if(d)s.push(null);else{const f=l&&typeof l.then=="function"?await l:l;if(f===null)throw o=!1,new jpe;if(s.push(f))continue;o=!1}}catch(l){s.destroy(l)}break}}return s}var yJ=Mpe,YE,aj;function x2(){if(aj)return YE;aj=1;const t=Oo,{ArrayPrototypeIndexOf:e,NumberIsInteger:r,NumberIsNaN:n,NumberParseInt:a,ObjectDefineProperties:s,ObjectKeys:o,ObjectSetPrototypeOf:u,Promise:c,SafeSet:l,SymbolAsyncDispose:d,SymbolAsyncIterator:f,Symbol:h}=Ur;YE=pe,pe.ReadableState=le;const{EventEmitter:p}=Xb,{Stream:m,prependListener:y}=ID,{Buffer:g}=ys,{addAbortSignal:b}=O2,v=Ou;let _=ui.debuglog("stream",te=>{_=te});const w=lpe,E=yf,{getHighWaterMark:O,getDefaultHighWaterMark:L}=R2,{aggregateTwoErrors:F,codes:{ERR_INVALID_ARG_TYPE:x,ERR_METHOD_NOT_IMPLEMENTED:P,ERR_OUT_OF_RANGE:j,ERR_STREAM_PUSH_AFTER_EOF:N,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:V},AbortError:$}=Ei,{validateObject:q}=Yb,H=h("kPaused"),{StringDecoder:X}=pJ,Y=yJ;u(pe.prototype,m.prototype),u(pe,m);const he=()=>{},{errorOrDestroy:Te}=E,Ne=1,$e=2,de=4,ce=8,xe=16,Pe=32,we=64,Re=128,Se=256,z=512,M=1024,k=2048,T=4096,R=8192,U=16384,G=32768,Q=65536,Z=1<<17,se=1<<18;function re(te){return{enumerable:!1,get(){return(this.state&te)!==0},set(S){S?this.state|=te:this.state&=~te}}}s(le.prototype,{objectMode:re(Ne),ended:re($e),endEmitted:re(de),reading:re(ce),constructed:re(xe),sync:re(Pe),needReadable:re(we),emittedReadable:re(Re),readableListening:re(Se),resumeScheduled:re(z),errorEmitted:re(M),emitClose:re(k),autoDestroy:re(T),destroyed:re(R),closed:re(U),closeEmitted:re(G),multiAwaitDrain:re(Q),readingMore:re(Z),dataEmitted:re(se)});function le(te,S,A){typeof A!="boolean"&&(A=S instanceof bo()),this.state=k|T|xe|Pe,te&&te.objectMode&&(this.state|=Ne),A&&te&&te.readableObjectMode&&(this.state|=Ne),this.highWaterMark=te?O(this,te,"readableHighWaterMark",A):L(!1),this.buffer=new w,this.length=0,this.pipes=[],this.flowing=null,this[H]=null,te&&te.emitClose===!1&&(this.state&=~k),te&&te.autoDestroy===!1&&(this.state&=~T),this.errored=null,this.defaultEncoding=te&&te.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,te&&te.encoding&&(this.decoder=new X(te.encoding),this.encoding=te.encoding)}function pe(te){if(!(this instanceof pe))return new pe(te);const S=this instanceof bo();this._readableState=new le(te,this,S),te&&(typeof te.read=="function"&&(this._read=te.read),typeof te.destroy=="function"&&(this._destroy=te.destroy),typeof te.construct=="function"&&(this._construct=te.construct),te.signal&&!S&&b(te.signal,this)),m.call(this,te),E.construct(this,()=>{this._readableState.needReadable&&D(this,this._readableState)})}pe.prototype.destroy=E.destroy,pe.prototype._undestroy=E.undestroy,pe.prototype._destroy=function(te,S){S(te)},pe.prototype[p.captureRejectionSymbol]=function(te){this.destroy(te)},pe.prototype[d]=function(){let te;return this.destroyed||(te=this.readableEnded?null:new $,this.destroy(te)),new c((S,A)=>v(this,C=>C&&C!==te?A(C):S(null)))},pe.prototype.push=function(te,S){return _e(this,te,S,!1)},pe.prototype.unshift=function(te,S){return _e(this,te,S,!0)};function _e(te,S,A,C){_("readableAddChunk",S);const J=te._readableState;let ie;if(J.state&Ne||(typeof S=="string"?(A=A||J.defaultEncoding,J.encoding!==A&&(C&&J.encoding?S=g.from(S,A).toString(J.encoding):(S=g.from(S,A),A=""))):S instanceof g?A="":m._isUint8Array(S)?(S=m._uint8ArrayToBuffer(S),A=""):S!=null&&(ie=new x("chunk",["string","Buffer","Uint8Array"],S))),ie)Te(te,ie);else if(S===null)J.state&=~ce,ke(te,J);else if(J.state&Ne||S&&S.length>0)if(C)if(J.state&de)Te(te,new V);else{if(J.destroyed||J.errored)return!1;Ie(te,J,S,!0)}else if(J.ended)Te(te,new N);else{if(J.destroyed||J.errored)return!1;J.state&=~ce,J.decoder&&!A?(S=J.decoder.write(S),J.objectMode||S.length!==0?Ie(te,J,S,!1):D(te,J)):Ie(te,J,S,!1)}else C||(J.state&=~ce,D(te,J));return!J.ended&&(J.length0?(S.state&Q?S.awaitDrainWriters.clear():S.awaitDrainWriters=null,S.dataEmitted=!0,te.emit("data",A)):(S.length+=S.objectMode?1:A.length,C?S.buffer.unshift(A):S.buffer.push(A),S.state&we&&qe(te)),D(te,S)}pe.prototype.isPaused=function(){const te=this._readableState;return te[H]===!0||te.flowing===!1},pe.prototype.setEncoding=function(te){const S=new X(te);this._readableState.decoder=S,this._readableState.encoding=this._readableState.decoder.encoding;const A=this._readableState.buffer;let C="";for(const J of A)C+=S.write(J);return A.clear(),C!==""&&A.push(C),this._readableState.length=C.length,this};const Ee=1073741824;function Me(te){if(te>Ee)throw new j("size","<= 1GiB",te);return te--,te|=te>>>1,te|=te>>>2,te|=te>>>4,te|=te>>>8,te|=te>>>16,te++,te}function Ce(te,S){return te<=0||S.length===0&&S.ended?0:S.state&Ne?1:n(te)?S.flowing&&S.length?S.buffer.first().length:S.length:te<=S.length?te:S.ended?S.length:0}pe.prototype.read=function(te){_("read",te),te===void 0?te=NaN:r(te)||(te=a(te,10));const S=this._readableState,A=te;if(te>S.highWaterMark&&(S.highWaterMark=Me(te)),te!==0&&(S.state&=~Re),te===0&&S.needReadable&&((S.highWaterMark!==0?S.length>=S.highWaterMark:S.length>0)||S.ended))return _("read: emitReadable",S.length,S.ended),S.length===0&&S.ended?Ye(this):qe(this),null;if(te=Ce(te,S),te===0&&S.ended)return S.length===0&&Ye(this),null;let C=(S.state&we)!==0;if(_("need readable",C),(S.length===0||S.length-te0?J=Ue(te,S):J=null,J===null?(S.needReadable=S.length<=S.highWaterMark,te=0):(S.length-=te,S.multiAwaitDrain?S.awaitDrainWriters.clear():S.awaitDrainWriters=null),S.length===0&&(S.ended||(S.needReadable=!0),A!==te&&S.ended&&Ye(this)),J!==null&&!S.errorEmitted&&!S.closeEmitted&&(S.dataEmitted=!0,this.emit("data",J)),J};function ke(te,S){if(_("onEofChunk"),!S.ended){if(S.decoder){const A=S.decoder.end();A&&A.length&&(S.buffer.push(A),S.length+=S.objectMode?1:A.length)}S.ended=!0,S.sync?qe(te):(S.needReadable=!1,S.emittedReadable=!0,W(te))}}function qe(te){const S=te._readableState;_("emitReadable",S.needReadable,S.emittedReadable),S.needReadable=!1,S.emittedReadable||(_("emitReadable",S.flowing),S.emittedReadable=!0,t.nextTick(W,te))}function W(te){const S=te._readableState;_("emitReadable_",S.destroyed,S.length,S.ended),!S.destroyed&&!S.errored&&(S.length||S.ended)&&(te.emit("readable"),S.emittedReadable=!1),S.needReadable=!S.flowing&&!S.ended&&S.length<=S.highWaterMark,ee(te)}function D(te,S){!S.readingMore&&S.constructed&&(S.readingMore=!0,t.nextTick(B,te,S))}function B(te,S){for(;!S.reading&&!S.ended&&(S.length1&&C.pipes.includes(te)&&(_("false write response, pause",C.awaitDrainWriters.size),C.awaitDrainWriters.add(te)),A.pause()),Fe||(Fe=K(A,te),te.on("drain",Fe))}A.on("data",Qe);function Qe(Gt){_("ondata");const Nr=te.write(Gt);_("dest.write",Nr),Nr===!1&&rt()}function di(Gt){if(_("onerror",Gt),Xt(),te.removeListener("error",di),te.listenerCount("error")===0){const Nr=te._writableState||te._readableState;Nr&&!Nr.errorEmitted?Te(te,Gt):te.emit("error",Gt)}}y(te,"error",di);function tt(){te.removeListener("finish",$r),Xt()}te.once("close",tt);function $r(){_("onfinish"),te.removeListener("close",tt),Xt()}te.once("finish",$r);function Xt(){_("unpipe"),A.unpipe(te)}return te.emit("pipe",A),te.writableNeedDrain===!0?rt():C.flowing||(_("pipe resume"),A.resume()),te};function K(te,S){return function(){const C=te._readableState;C.awaitDrainWriters===S?(_("pipeOnDrain",1),C.awaitDrainWriters=null):C.multiAwaitDrain&&(_("pipeOnDrain",C.awaitDrainWriters.size),C.awaitDrainWriters.delete(S)),(!C.awaitDrainWriters||C.awaitDrainWriters.size===0)&&te.listenerCount("data")&&te.resume()}}pe.prototype.unpipe=function(te){const S=this._readableState,A={hasUnpiped:!1};if(S.pipes.length===0)return this;if(!te){const J=S.pipes;S.pipes=[],this.pause();for(let ie=0;ie0,C.flowing!==!1&&this.resume()):te==="readable"&&!C.endEmitted&&!C.readableListening&&(C.readableListening=C.needReadable=!0,C.flowing=!1,C.emittedReadable=!1,_("on readable",C.length,C.reading),C.length?qe(this):C.reading||t.nextTick(fe,this)),A},pe.prototype.addListener=pe.prototype.on,pe.prototype.removeListener=function(te,S){const A=m.prototype.removeListener.call(this,te,S);return te==="readable"&&t.nextTick(ne,this),A},pe.prototype.off=pe.prototype.removeListener,pe.prototype.removeAllListeners=function(te){const S=m.prototype.removeAllListeners.apply(this,arguments);return(te==="readable"||te===void 0)&&t.nextTick(ne,this),S};function ne(te){const S=te._readableState;S.readableListening=te.listenerCount("readable")>0,S.resumeScheduled&&S[H]===!1?S.flowing=!0:te.listenerCount("data")>0?te.resume():S.readableListening||(S.flowing=null)}function fe(te){_("readable nexttick read 0"),te.read(0)}pe.prototype.resume=function(){const te=this._readableState;return te.flowing||(_("resume"),te.flowing=!te.readableListening,ge(this,te)),te[H]=!1,this};function ge(te,S){S.resumeScheduled||(S.resumeScheduled=!0,t.nextTick(Le,te,S))}function Le(te,S){_("resume",S.reading),S.reading||te.read(0),S.resumeScheduled=!1,te.emit("resume"),ee(te),S.flowing&&!S.reading&&te.read(0)}pe.prototype.pause=function(){return _("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(_("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[H]=!0,this};function ee(te){const S=te._readableState;for(_("flow",S.flowing);S.flowing&&te.read()!==null;);}pe.prototype.wrap=function(te){let S=!1;te.on("data",C=>{!this.push(C)&&te.pause&&(S=!0,te.pause())}),te.on("end",()=>{this.push(null)}),te.on("error",C=>{Te(this,C)}),te.on("close",()=>{this.destroy()}),te.on("destroy",()=>{this.destroy()}),this._read=()=>{S&&te.resume&&(S=!1,te.resume())};const A=o(te);for(let C=1;C{J=be?F(J,be):null,A(),A=he});try{for(;;){const be=te.destroyed?null:te.read();if(be!==null)yield be;else{if(J)throw J;if(J===null)return;await new c(C)}}}catch(be){throw J=F(J,be),J}finally{(J||(S==null?void 0:S.destroyOnReturn)!==!1)&&(J===void 0||te._readableState.autoDestroy)?E.destroyer(te,null):(te.off("readable",C),ie())}}s(pe.prototype,{readable:{__proto__:null,get(){const te=this._readableState;return!!te&&te.readable!==!1&&!te.destroyed&&!te.errorEmitted&&!te.endEmitted},set(te){this._readableState&&(this._readableState.readable=!!te)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(te){this._readableState&&(this._readableState.flowing=te)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(te){this._readableState&&(this._readableState.destroyed=te)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),s(le.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[H]!==!1},set(te){this[H]=!!te}}}),pe._fromList=Ue;function Ue(te,S){if(S.length===0)return null;let A;return S.objectMode?A=S.buffer.shift():!te||te>=S.length?(S.decoder?A=S.buffer.join(""):S.buffer.length===1?A=S.buffer.first():A=S.buffer.concat(S.length),S.buffer.clear()):A=S.buffer.consume(te,S.decoder),A}function Ye(te){const S=te._readableState;_("endReadable",S.endEmitted),S.endEmitted||(S.ended=!0,t.nextTick(ut,S,te))}function ut(te,S){if(_("endReadableNT",te.endEmitted,te.length),!te.errored&&!te.closeEmitted&&!te.endEmitted&&te.length===0){if(te.endEmitted=!0,S.emit("end"),S.writable&&S.allowHalfOpen===!1)t.nextTick(at,S);else if(te.autoDestroy){const A=S._writableState;(!A||A.autoDestroy&&(A.finished||A.writable===!1))&&S.destroy()}}}function at(te){te.writable&&!te.writableEnded&&!te.destroyed&&te.end()}pe.from=function(te,S){return Y(pe,te,S)};let ct;function ht(){return ct===void 0&&(ct={}),ct}return pe.fromWeb=function(te,S){return ht().newStreamReadableFromReadableStream(te,S)},pe.toWeb=function(te,S){return ht().newReadableStreamFromStreamReadable(te,S)},pe.wrap=function(te,S){var A,C;return new pe({objectMode:(A=(C=te.readableObjectMode)!==null&&C!==void 0?C:te.objectMode)!==null&&A!==void 0?A:!0,...S,destroy(J,ie){E.destroyer(te,J),ie(J)}}).wrap(te)},YE}var ZE,sj;function ND(){if(sj)return ZE;sj=1;const t=Oo,{ArrayPrototypeSlice:e,Error:r,FunctionPrototypeSymbolHasInstance:n,ObjectDefineProperty:a,ObjectDefineProperties:s,ObjectSetPrototypeOf:o,StringPrototypeToLowerCase:u,Symbol:c,SymbolHasInstance:l}=Ur;ZE=q,q.WritableState=V;const{EventEmitter:d}=Xb,f=ID.Stream,{Buffer:h}=ys,p=yf,{addAbortSignal:m}=O2,{getHighWaterMark:y,getDefaultHighWaterMark:g}=R2,{ERR_INVALID_ARG_TYPE:b,ERR_METHOD_NOT_IMPLEMENTED:v,ERR_MULTIPLE_CALLBACK:_,ERR_STREAM_CANNOT_PIPE:w,ERR_STREAM_DESTROYED:E,ERR_STREAM_ALREADY_FINISHED:O,ERR_STREAM_NULL_VALUES:L,ERR_STREAM_WRITE_AFTER_END:F,ERR_UNKNOWN_ENCODING:x}=Ei.codes,{errorOrDestroy:P}=p;o(q.prototype,f.prototype),o(q,f);function j(){}const N=c("kOnFinished");function V(T,R,U){typeof U!="boolean"&&(U=R instanceof bo()),this.objectMode=!!(T&&T.objectMode),U&&(this.objectMode=this.objectMode||!!(T&&T.writableObjectMode)),this.highWaterMark=T?y(this,T,"writableHighWaterMark",U):g(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const G=!!(T&&T.decodeStrings===!1);this.decodeStrings=!G,this.defaultEncoding=T&&T.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=Te.bind(void 0,R),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,$(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!T||T.emitClose!==!1,this.autoDestroy=!T||T.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[N]=[]}function $(T){T.buffered=[],T.bufferedIndex=0,T.allBuffers=!0,T.allNoop=!0}V.prototype.getBuffer=function(){return e(this.buffered,this.bufferedIndex)},a(V.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function q(T){const R=this instanceof bo();if(!R&&!n(q,this))return new q(T);this._writableState=new V(T,this,R),T&&(typeof T.write=="function"&&(this._write=T.write),typeof T.writev=="function"&&(this._writev=T.writev),typeof T.destroy=="function"&&(this._destroy=T.destroy),typeof T.final=="function"&&(this._final=T.final),typeof T.construct=="function"&&(this._construct=T.construct),T.signal&&m(T.signal,this)),f.call(this,T),p.construct(this,()=>{const U=this._writableState;U.writing||ce(this,U),Re(this,U)})}a(q,l,{__proto__:null,value:function(T){return n(this,T)?!0:this!==q?!1:T&&T._writableState instanceof V}}),q.prototype.pipe=function(){P(this,new w)};function H(T,R,U,G){const Q=T._writableState;if(typeof U=="function")G=U,U=Q.defaultEncoding;else{if(!U)U=Q.defaultEncoding;else if(U!=="buffer"&&!h.isEncoding(U))throw new x(U);typeof G!="function"&&(G=j)}if(R===null)throw new L;if(!Q.objectMode)if(typeof R=="string")Q.decodeStrings!==!1&&(R=h.from(R,U),U="buffer");else if(R instanceof h)U="buffer";else if(f._isUint8Array(R))R=f._uint8ArrayToBuffer(R),U="buffer";else throw new b("chunk",["string","Buffer","Uint8Array"],R);let Z;return Q.ending?Z=new F:Q.destroyed&&(Z=new E("write")),Z?(t.nextTick(G,Z),P(T,Z,!0),Z):(Q.pendingcb++,X(T,Q,R,U,G))}q.prototype.write=function(T,R,U){return H(this,T,R,U)===!0},q.prototype.cork=function(){this._writableState.corked++},q.prototype.uncork=function(){const T=this._writableState;T.corked&&(T.corked--,T.writing||ce(this,T))},q.prototype.setDefaultEncoding=function(R){if(typeof R=="string"&&(R=u(R)),!h.isEncoding(R))throw new x(R);return this._writableState.defaultEncoding=R,this};function X(T,R,U,G,Q){const Z=R.objectMode?1:U.length;R.length+=Z;const se=R.lengthU.bufferedIndex&&ce(T,U),G?U.afterWriteTickInfo!==null&&U.afterWriteTickInfo.cb===Q?U.afterWriteTickInfo.count++:(U.afterWriteTickInfo={count:1,cb:Q,stream:T,state:U},t.nextTick(Ne,U.afterWriteTickInfo)):$e(T,U,1,Q))}function Ne({stream:T,state:R,count:U,cb:G}){return R.afterWriteTickInfo=null,$e(T,R,U,G)}function $e(T,R,U,G){for(!R.ending&&!T.destroyed&&R.length===0&&R.needDrain&&(R.needDrain=!1,T.emit("drain"));U-- >0;)R.pendingcb--,G();R.destroyed&&de(R),Re(T,R)}function de(T){if(T.writing)return;for(let Q=T.bufferedIndex;Q1&&T._writev){R.pendingcb-=Z-1;const re=R.allNoop?j:pe=>{for(let _e=se;_e256?(U.splice(0,se),R.bufferedIndex=0):R.bufferedIndex=se}R.bufferProcessing=!1}q.prototype._write=function(T,R,U){if(this._writev)this._writev([{chunk:T,encoding:R}],U);else throw new v("_write()")},q.prototype._writev=null,q.prototype.end=function(T,R,U){const G=this._writableState;typeof T=="function"?(U=T,T=null,R=null):typeof R=="function"&&(U=R,R=null);let Q;if(T!=null){const Z=H(this,T,R);Z instanceof r&&(Q=Z)}return G.corked&&(G.corked=1,this.uncork()),Q||(!G.errored&&!G.ending?(G.ending=!0,Re(this,G,!0),G.ended=!0):G.finished?Q=new O("end"):G.destroyed&&(Q=new E("end"))),typeof U=="function"&&(Q||G.finished?t.nextTick(U,Q):G[N].push(U)),this};function xe(T){return T.ending&&!T.destroyed&&T.constructed&&T.length===0&&!T.errored&&T.buffered.length===0&&!T.finished&&!T.writing&&!T.errorEmitted&&!T.closeEmitted}function Pe(T,R){let U=!1;function G(Q){if(U){P(T,Q??_());return}if(U=!0,R.pendingcb--,Q){const Z=R[N].splice(0);for(let se=0;se{xe(Q)?Se(G,Q):Q.pendingcb--},T,R)):xe(R)&&(R.pendingcb++,Se(T,R))))}function Se(T,R){R.pendingcb--,R.finished=!0;const U=R[N].splice(0);for(let G=0;G{if(de!=null)throw new m("nully","body",de)},de=>{y(Ne,de)});return Ne=new x({objectMode:!0,readable:!1,write:X,final(de){Y(async()=>{try{await $e,t.nextTick(de,null)}catch(ce){t.nextTick(de,ce)}})},destroy:he})}throw new m("Iterable, AsyncIterable or AsyncFunction",$,H)}if(O(V))return N(V.arrayBuffer());if(a(V))return w(x,V,{objectMode:!0,writable:!1});if(l(V==null?void 0:V.readable)&&d(V==null?void 0:V.writable))return x.fromWeb(V);if(typeof(V==null?void 0:V.writable)=="object"||typeof(V==null?void 0:V.readable)=="object"){const H=V!=null&&V.readable?o(V==null?void 0:V.readable)?V==null?void 0:V.readable:N(V.readable):void 0,X=V!=null&&V.writable?u(V==null?void 0:V.writable)?V==null?void 0:V.writable:N(V.writable):void 0;return j({readable:H,writable:X})}const q=V==null?void 0:V.then;if(typeof q=="function"){let H;return F(q,V,X=>{X!=null&&H.push(X),H.push(null)},X=>{y(H,X)}),H=new x({objectMode:!0,writable:!1,read(){}})}throw new p($,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],V)};function P(N){let{promise:V,resolve:$}=_();const q=new L,H=q.signal;return{value:N(async function*(){for(;;){const Y=V;V=null;const{chunk:he,done:Te,cb:Ne}=await Y;if(t.nextTick(Ne),Te)return;if(H.aborted)throw new h(void 0,{cause:H.reason});({promise:V,resolve:$}=_()),yield he}}(),{signal:H}),write(Y,he,Te){const Ne=$;$=null,Ne({chunk:Y,done:!1,cb:Te})},final(Y){const he=$;$=null,he({done:!0,cb:Y})},destroy(Y,he){q.abort(),he(Y)}}}function j(N){const V=N.readable&&typeof N.readable.read!="function"?b.wrap(N.readable):N.readable,$=N.writable;let q=!!r(V),H=!!n($),X,Y,he,Te,Ne;function $e(de){const ce=Te;Te=null,ce?ce(de):de&&Ne.destroy(de)}return Ne=new x({readableObjectMode:!!(V!=null&&V.readableObjectMode),writableObjectMode:!!($!=null&&$.writableObjectMode),readable:q,writable:H}),H&&(f($,de=>{H=!1,de&&y(V,de),$e(de)}),Ne._write=function(de,ce,xe){$.write(de,ce)?xe():X=xe},Ne._final=function(de){$.end(),Y=de},$.on("drain",function(){if(X){const de=X;X=null,de()}}),$.on("finish",function(){if(Y){const de=Y;Y=null,de()}})),q&&(f(V,de=>{q=!1,de&&y(V,de),$e(de)}),V.on("readable",function(){if(he){const de=he;he=null,de()}}),V.on("end",function(){Ne.push(null)}),Ne._read=function(){for(;;){const de=V.read();if(de===null){he=Ne._read;return}if(!Ne.push(de))return}}),Ne._destroy=function(de,ce){!de&&Te!==null&&(de=new h),he=null,X=null,Y=null,Te===null?ce(de):(Te=ce,y($,de),y(V,de))},Ne}return eA}var tA,uj;function bo(){if(uj)return tA;uj=1;const{ObjectDefineProperties:t,ObjectGetOwnPropertyDescriptor:e,ObjectKeys:r,ObjectSetPrototypeOf:n}=Ur;tA=o;const a=x2(),s=ND();n(o.prototype,a.prototype),n(o,a);{const d=r(s.prototype);for(let f=0;f{if(e){t?t(e):this.destroy(e);return}r!=null&&this.push(r),this.push(null),t&&t()}):(this.push(null),t&&t())}function Upe(){this._final!==wP&&wP.call(this)}vo.prototype._final=wP;vo.prototype._transform=function(t,e,r){throw new qpe("_transform()")};vo.prototype._write=function(t,e,r){const n=this._readableState,a=this._writableState,s=n.length;this._transform(t,e,(o,u)=>{if(o){r(o);return}u!=null&&this.push(u),a.ended||s===n.length||n.length{n=!0});const a=gS(t,{readable:e,writable:r},s=>{n=!s});return{destroy:s=>{n||(n=!0,Gpe.destroyer(t,s||new Jpe("pipe")))},cleanup:a}}function i0e(t){return Zpe(t[t.length-1],"streams[stream.length - 1]"),t.pop()}function uA(t){if(uc(t))return t;if(xw(t))return a0e(t);throw new SP("val",["Readable","Iterable","AsyncIterable"],t)}async function*a0e(t){sA||(sA=x2()),yield*sA.prototype[Hpe].call(t)}async function Ov(t,e,r,{end:n}){let a,s=null;const o=l=>{if(l&&(a=l),s){const d=s;s=null,d()}},u=()=>new Vpe((l,d)=>{a?d(a):s=()=>{a?d(a):l()}});e.on("drain",o);const c=gS(e,{readable:!1},o);try{e.writableNeedDrain&&await u();for await(const l of t)e.write(l)||await u();n&&(e.end(),await u()),r()}catch(l){r(a!==l?Wpe(a,l):l)}finally{c(),e.off("drain",o)}}async function cA(t,e,r,{end:n}){Kl(e)&&(e=e.writable);const a=e.getWriter();try{for await(const s of t)await a.ready,a.write(s).catch(()=>{});await a.ready,n&&await a.close(),r()}catch(s){try{await a.abort(s),r(s)}catch(o){r(o)}}}function s0e(...t){return vJ(t,zpe(i0e(t)))}function vJ(t,e,r){if(t.length===1&&kpe(t[0])&&(t=t[0]),t.length<2)throw new Kpe("streams");const n=new n0e,a=n.signal,s=r==null?void 0:r.signal,o=[];e0e(s,"options.signal");function u(){m(new Ype)}oA=oA||ui.addAbortListener;let c;s&&(c=oA(s,u));let l,d;const f=[];let h=0;function p(v){m(v,--h===0)}function m(v,_){var w;if(v&&(!l||l.code==="ERR_STREAM_PREMATURE_CLOSE")&&(l=v),!(!l&&!_)){for(;f.length;)f.shift()(l);(w=c)===null||w===void 0||w[Qpe](),n.abort(),_&&(l||o.forEach(E=>E()),w_.nextTick(e,l,d))}}let y;for(let v=0;v0,O=w||(r==null?void 0:r.end)!==!1,L=v===t.length-1;if(lj(_)){let F=function(x){x&&x.name!=="AbortError"&&x.code!=="ERR_STREAM_PREMATURE_CLOSE"&&p(x)};if(O){const{destroy:x,cleanup:P}=dj(_,w,E);f.push(x),nA(_)&&L&&o.push(P)}_.on("error",F),nA(_)&&L&&o.push(()=>{_.removeListener("error",F)})}if(v===0)if(typeof _=="function"){if(y=_({signal:a}),!uc(y))throw new rA("Iterable, AsyncIterable or Stream","source",y)}else uc(_)||xw(_)||Kl(_)?y=_:y=cj.from(_);else if(typeof _=="function"){if(Kl(y)){var g;y=uA((g=y)===null||g===void 0?void 0:g.readable)}else y=uA(y);if(y=_(y,{signal:a}),w){if(!uc(y,!0))throw new rA("AsyncIterable",`transform[${v-1}]`,y)}else{var b;aA||(aA=bJ);const F=new aA({objectMode:!0}),x=(b=y)===null||b===void 0?void 0:b.then;if(typeof x=="function")h++,x.call(y,N=>{d=N,N!=null&&F.write(N),O&&F.end(),w_.nextTick(p)},N=>{F.destroy(N),w_.nextTick(p,N)});else if(uc(y,!0))h++,Ov(y,F,p,{end:O});else if(iA(y)||Kl(y)){const N=y.readable||y;h++,Ov(N,F,p,{end:O})}else throw new rA("AsyncIterable or Promise","destination",y);y=F;const{destroy:P,cleanup:j}=dj(y,!1,!0);f.push(P),L&&o.push(j)}}else if(lj(_)){if(xw(y)){h+=2;const F=o0e(y,_,p,{end:O});nA(_)&&L&&o.push(F)}else if(Kl(y)||iA(y)){const F=y.readable||y;h++,Ov(F,_,p,{end:O})}else if(uc(y))h++,Ov(y,_,p,{end:O});else throw new SP("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],y);y=_}else if(t0e(_)){if(xw(y))h++,cA(uA(y),_,p,{end:O});else if(iA(y)||uc(y))h++,cA(y,_,p,{end:O});else if(Kl(y))h++,cA(y.readable,_,p,{end:O});else throw new SP("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],y);y=_}else y=cj.from(_)}return(a!=null&&a.aborted||s!=null&&s.aborted)&&w_.nextTick(u),y}function o0e(t,e,r,{end:n}){let a=!1;if(e.on("close",()=>{a||r(new Xpe)}),t.pipe(e,{end:!1}),n){let s=function(){a=!0,e.end()};r0e(t)?w_.nextTick(s):t.once("end",s)}else r();return gS(t,{readable:!0,writable:!1},s=>{const o=t._readableState;s&&s.code==="ERR_STREAM_PREMATURE_CLOSE"&&o&&o.ended&&!o.errored&&!o.errorEmitted?t.once("end",r).once("error",r):r(s)}),gS(e,{readable:!1,writable:!0},r)}var LD={pipelineImpl:vJ,pipeline:s0e};const{pipeline:u0e}=LD,Rv=bo(),{destroyer:c0e}=yf,{isNodeStream:xv,isReadable:fj,isWritable:hj,isWebStream:lA,isTransformStream:Gu,isWritableStream:pj,isReadableStream:yj}=Ro,{AbortError:l0e,codes:{ERR_INVALID_ARG_VALUE:mj,ERR_MISSING_ARGS:d0e}}=Ei,f0e=Ou;var wJ=function(...e){if(e.length===0)throw new d0e("streams");if(e.length===1)return Rv.from(e[0]);const r=[...e];if(typeof e[0]=="function"&&(e[0]=Rv.from(e[0])),typeof e[e.length-1]=="function"){const p=e.length-1;e[p]=Rv.from(e[p])}for(let p=0;p0&&!(hj(e[p])||pj(e[p])||Gu(e[p])))throw new mj(`streams[${p}]`,r[p],"must be writable")}let n,a,s,o,u;function c(p){const m=o;o=null,m?m(p):p?u.destroy(p):!h&&!f&&u.destroy()}const l=e[0],d=u0e(e,c),f=!!(hj(l)||pj(l)||Gu(l)),h=!!(fj(d)||yj(d)||Gu(d));if(u=new Rv({writableObjectMode:!!(l!=null&&l.writableObjectMode),readableObjectMode:!!(d!=null&&d.readableObjectMode),writable:f,readable:h}),f){if(xv(l))u._write=function(m,y,g){l.write(m,y)?g():n=g},u._final=function(m){l.end(),a=m},l.on("drain",function(){if(n){const m=n;n=null,m()}});else if(lA(l)){const y=(Gu(l)?l.writable:l).getWriter();u._write=async function(g,b,v){try{await y.ready,y.write(g).catch(()=>{}),v()}catch(_){v(_)}},u._final=async function(g){try{await y.ready,y.close().catch(()=>{}),a=g}catch(b){g(b)}}}const p=Gu(d)?d.readable:d;f0e(p,()=>{if(a){const m=a;a=null,m()}})}if(h){if(xv(d))d.on("readable",function(){if(s){const p=s;s=null,p()}}),d.on("end",function(){u.push(null)}),u._read=function(){for(;;){const p=d.read();if(p===null){s=u._read;return}if(!u.push(p))return}};else if(lA(d)){const m=(Gu(d)?d.readable:d).getReader();u._read=async function(){for(;;)try{const{value:y,done:g}=await m.read();if(!u.push(y))return;if(g){u.push(null);return}}catch{return}}}}return u._destroy=function(p,m){!p&&o!==null&&(p=new l0e),s=null,n=null,a=null,o===null?m(p):(o=m,xv(d)&&c0e(d,p))},u};const h0e=globalThis.AbortController||$d().AbortController,{codes:{ERR_INVALID_ARG_VALUE:p0e,ERR_INVALID_ARG_TYPE:e1,ERR_MISSING_ARGS:y0e,ERR_OUT_OF_RANGE:m0e},AbortError:ps}=Ei,{validateAbortSignal:cl,validateInteger:gj,validateObject:ll}=Yb,g0e=Ur.Symbol("kWeak"),_0e=Ur.Symbol("kResistStopPropagation"),{finished:b0e}=Ou,v0e=wJ,{addAbortSignalNoValidate:w0e}=O2,{isWritable:S0e,isNodeStream:T0e}=Ro,{deprecate:E0e}=ui,{ArrayPrototypePush:A0e,Boolean:O0e,MathFloor:_j,Number:R0e,NumberIsNaN:x0e,Promise:bj,PromiseReject:vj,PromiseResolve:I0e,PromisePrototypeThen:wj,Symbol:SJ}=Ur,_S=SJ("kEmpty"),Sj=SJ("kEof");function P0e(t,e){if(e!=null&&ll(e,"options"),(e==null?void 0:e.signal)!=null&&cl(e.signal,"options.signal"),T0e(t)&&!S0e(t))throw new p0e("stream",t,"must be writable");const r=v0e(this,t);return e!=null&&e.signal&&w0e(e.signal,r),r}function I2(t,e){if(typeof t!="function")throw new e1("fn",["Function","AsyncFunction"],t);e!=null&&ll(e,"options"),(e==null?void 0:e.signal)!=null&&cl(e.signal,"options.signal");let r=1;(e==null?void 0:e.concurrency)!=null&&(r=_j(e.concurrency));let n=r-1;return(e==null?void 0:e.highWaterMark)!=null&&(n=_j(e.highWaterMark)),gj(r,"options.concurrency",1),gj(n,"options.highWaterMark",0),n+=r,(async function*(){const s=ui.AbortSignalAny([e==null?void 0:e.signal].filter(O0e)),o=this,u=[],c={signal:s};let l,d,f=!1,h=0;function p(){f=!0,m()}function m(){h-=1,y()}function y(){d&&!f&&h=n||h>=r)&&await new bj(v=>{d=v})}u.push(Sj)}catch(b){const v=vj(b);wj(v,m,p),u.push(v)}finally{f=!0,l&&(l(),l=null)}}g();try{for(;;){for(;u.length>0;){const b=await u[0];if(b===Sj)return;if(s.aborted)throw new ps;b!==_S&&(yield b),u.shift(),y()}await new bj(b=>{l=b})}}finally{f=!0,d&&(d(),d=null)}}).call(this)}function N0e(t=void 0){return t!=null&&ll(t,"options"),(t==null?void 0:t.signal)!=null&&cl(t.signal,"options.signal"),(async function*(){let r=0;for await(const a of this){var n;if(t!=null&&(n=t.signal)!==null&&n!==void 0&&n.aborted)throw new ps({cause:t.signal.reason});yield[r++,a]}}).call(this)}async function TJ(t,e=void 0){for await(const r of jD.call(this,t,e))return!0;return!1}async function D0e(t,e=void 0){if(typeof t!="function")throw new e1("fn",["Function","AsyncFunction"],t);return!await TJ.call(this,async(...r)=>!await t(...r),e)}async function C0e(t,e){for await(const r of jD.call(this,t,e))return r}async function L0e(t,e){if(typeof t!="function")throw new e1("fn",["Function","AsyncFunction"],t);async function r(n,a){return await t(n,a),_S}for await(const n of I2.call(this,r,e));}function jD(t,e){if(typeof t!="function")throw new e1("fn",["Function","AsyncFunction"],t);async function r(n,a){return await t(n,a)?n:_S}return I2.call(this,r,e)}class j0e extends y0e{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}async function M0e(t,e,r){var n;if(typeof t!="function")throw new e1("reducer",["Function","AsyncFunction"],t);r!=null&&ll(r,"options"),(r==null?void 0:r.signal)!=null&&cl(r.signal,"options.signal");let a=arguments.length>1;if(r!=null&&(n=r.signal)!==null&&n!==void 0&&n.aborted){const l=new ps(void 0,{cause:r.signal.reason});throw this.once("error",()=>{}),await b0e(this.destroy(l)),l}const s=new h0e,o=s.signal;if(r!=null&&r.signal){const l={once:!0,[g0e]:this,[_0e]:!0};r.signal.addEventListener("abort",()=>s.abort(),l)}let u=!1;try{for await(const l of this){var c;if(u=!0,r!=null&&(c=r.signal)!==null&&c!==void 0&&c.aborted)throw new ps;a?e=await t(e,l,{signal:o}):(e=l,a=!0)}if(!u&&!a)throw new j0e}finally{s.abort()}return e}async function F0e(t){t!=null&&ll(t,"options"),(t==null?void 0:t.signal)!=null&&cl(t.signal,"options.signal");const e=[];for await(const n of this){var r;if(t!=null&&(r=t.signal)!==null&&r!==void 0&&r.aborted)throw new ps(void 0,{cause:t.signal.reason});A0e(e,n)}return e}function B0e(t,e){const r=I2.call(this,t,e);return(async function*(){for await(const a of r)yield*a}).call(this)}function EJ(t){if(t=R0e(t),x0e(t))return 0;if(t<0)throw new m0e("number",">= 0",t);return t}function q0e(t,e=void 0){return e!=null&&ll(e,"options"),(e==null?void 0:e.signal)!=null&&cl(e.signal,"options.signal"),t=EJ(t),(async function*(){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new ps;for await(const s of this){var a;if(e!=null&&(a=e.signal)!==null&&a!==void 0&&a.aborted)throw new ps;t--<=0&&(yield s)}}).call(this)}function $0e(t,e=void 0){return e!=null&&ll(e,"options"),(e==null?void 0:e.signal)!=null&&cl(e.signal,"options.signal"),t=EJ(t),(async function*(){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new ps;for await(const s of this){var a;if(e!=null&&(a=e.signal)!==null&&a!==void 0&&a.aborted)throw new ps;if(t-- >0&&(yield s),t<=0)return}}).call(this)}ED.streamReturningOperators={asIndexedPairs:E0e(N0e,"readable.asIndexedPairs will be removed in a future version."),drop:q0e,filter:jD,flatMap:B0e,map:I2,take:$0e,compose:P0e};ED.promiseReturningOperators={every:D0e,forEach:L0e,reduce:M0e,toArray:F0e,some:TJ,find:C0e};var dA,Tj;function AJ(){if(Tj)return dA;Tj=1;const{ArrayPrototypePop:t,Promise:e}=Ur,{isIterable:r,isNodeStream:n,isWebStream:a}=Ro,{pipelineImpl:s}=LD,{finished:o}=Ou;OJ();function u(...c){return new e((l,d)=>{let f,h;const p=c[c.length-1];if(p&&typeof p=="object"&&!n(p)&&!r(p)&&!a(p)){const m=t(c);f=m.signal,h=m.end}s(c,(m,y)=>{m?d(m):l(y)},{signal:f,end:h})})}return dA={finished:o,pipeline:u},dA}var Ej;function OJ(){if(Ej)return GE.exports;Ej=1;const{Buffer:t}=ys,{ObjectDefineProperty:e,ObjectKeys:r,ReflectApply:n}=Ur,{promisify:{custom:a}}=ui,{streamReturningOperators:s,promiseReturningOperators:o}=ED,{codes:{ERR_ILLEGAL_CONSTRUCTOR:u}}=Ei,c=wJ,{setDefaultHighWaterMark:l,getDefaultHighWaterMark:d}=R2,{pipeline:f}=LD,{destroyer:h}=yf,p=Ou,m=AJ(),y=Ro,g=GE.exports=ID.Stream;g.isDestroyed=y.isDestroyed,g.isDisturbed=y.isDisturbed,g.isErrored=y.isErrored,g.isReadable=y.isReadable,g.isWritable=y.isWritable,g.Readable=x2();for(const v of r(s)){let w=function(...E){if(new.target)throw u();return g.Readable.from(n(_,this,E))};const _=s[v];e(w,"name",{__proto__:null,value:_.name}),e(w,"length",{__proto__:null,value:_.length}),e(g.Readable.prototype,v,{__proto__:null,value:w,enumerable:!1,configurable:!0,writable:!0})}for(const v of r(o)){let w=function(...E){if(new.target)throw u();return n(_,this,E)};const _=o[v];e(w,"name",{__proto__:null,value:_.name}),e(w,"length",{__proto__:null,value:_.length}),e(g.Readable.prototype,v,{__proto__:null,value:w,enumerable:!1,configurable:!0,writable:!0})}g.Writable=ND(),g.Duplex=bo(),g.Transform=gJ,g.PassThrough=bJ,g.pipeline=f;const{addAbortSignal:b}=O2;return g.addAbortSignal=b,g.finished=p,g.destroy=h,g.compose=c,g.setDefaultHighWaterMark=l,g.getDefaultHighWaterMark=d,e(g,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return m}}),e(f,a,{__proto__:null,enumerable:!0,get(){return m.pipeline}}),e(p,a,{__proto__:null,enumerable:!0,get(){return m.finished}}),g.Stream=g,g._isUint8Array=function(_){return _ instanceof Uint8Array},g._uint8ArrayToBuffer=function(_){return t.from(_.buffer,_.byteOffset,_.byteLength)},GE.exports}(function(t){const e=OJ(),r=AJ(),n=e.Readable.destroy;t.exports=e.Readable,t.exports._uint8ArrayToBuffer=e._uint8ArrayToBuffer,t.exports._isUint8Array=e._isUint8Array,t.exports.isDisturbed=e.isDisturbed,t.exports.isErrored=e.isErrored,t.exports.isReadable=e.isReadable,t.exports.Readable=e.Readable,t.exports.Writable=e.Writable,t.exports.Duplex=e.Duplex,t.exports.Transform=e.Transform,t.exports.PassThrough=e.PassThrough,t.exports.addAbortSignal=e.addAbortSignal,t.exports.finished=e.finished,t.exports.destroy=e.destroy,t.exports.destroy=n,t.exports.pipeline=e.pipeline,t.exports.compose=e.compose,Object.defineProperty(e,"promises",{configurable:!0,enumerable:!0,get(){return r}}),t.exports.Stream=e.Stream,t.exports.default=t.exports})(TK);var Pt=TK.exports;let RJ=class{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}};RJ.prototype.termType="BlankNode";let MD=class{equals(e){return!!e&&e.termType===this.termType}};MD.prototype.termType="DefaultGraph";MD.prototype.value="";function Aj(t,e){if(!e)return null;if(e.termType==="BlankNode")return t.blankNode(e.value);if(e.termType==="DefaultGraph")return t.defaultGraph();if(e.termType==="Literal")return t.literal(e.value,e.language||t.namedNode(e.datatype.value));if(e.termType==="NamedNode")return t.namedNode(e.value);if(e.termType==="Quad"){const r=t.fromTerm(e.subject),n=t.fromTerm(e.predicate),a=t.fromTerm(e.object),s=t.fromTerm(e.graph);return t.quad(r,n,a,s)}if(e.termType==="Variable")return t.variable(e.value);throw new Error(`unknown termType ${e.termType}`)}let TP=class{constructor(e,r,n){this.value=e,this.language=r,this.datatype=n}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value&&e.language===this.language&&e.datatype.equals(this.datatype)}};TP.prototype.termType="Literal";let P2=class{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}};P2.prototype.termType="NamedNode";let FD=class{constructor(e,r,n,a){this.subject=e,this.predicate=r,this.object=n,this.graph=a}equals(e){return!!e&&(e.termType==="Quad"||!e.termType)&&e.subject.equals(this.subject)&&e.predicate.equals(this.predicate)&&e.object.equals(this.object)&&e.graph.equals(this.graph)}};FD.prototype.termType="Quad";FD.prototype.value="";let xJ=class{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}};xJ.prototype.termType="Variable";const U0e=new P2("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"),k0e=new P2("http://www.w3.org/2001/XMLSchema#string");let IJ=class{constructor(){this.init()}init(){this._data={blankNodeCounter:0,defaultGraph:new MD}}namedNode(e){return new P2(e)}blankNode(e){return e=e||"b"+ ++this._data.blankNodeCounter,new RJ(e)}literal(e,r){return typeof r=="string"?new TP(e,r,U0e):new TP(e,"",r||k0e)}variable(e){return new xJ(e)}defaultGraph(){return this._data.defaultGraph}quad(e,r,n,a=this.defaultGraph()){return new FD(e,r,n,a)}fromTerm(e){return Aj(this,e)}fromQuad(e){return Aj(this,e)}};IJ.exports=["blankNode","defaultGraph","fromQuad","fromTerm","literal","namedNode","quad","variable"];const qr=new IJ;class fA extends Pt.Transform{constructor(e,{factory:r=qr}={}){super({objectMode:!0}),this.factory=r,this.graph=e||this.factory.defaultGraph(),this.on("pipe",n=>{n.on("error",a=>{this.emit("error",a)})})}_transform(e,r,n){const a=this.factory.quad(e.subject,e.predicate,e.object,this.graph);n(null,a)}}function V0e(){this.__data__=[],this.size=0}var H0e=V0e;function Q0e(t,e){return t===e||t!==t&&e!==e}var PJ=Q0e,z0e=PJ;function G0e(t,e){for(var r=t.length;r--;)if(z0e(t[r][0],e))return r;return-1}var N2=G0e,W0e=N2,K0e=Array.prototype,J0e=K0e.splice;function X0e(t){var e=this.__data__,r=W0e(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():J0e.call(e,r,1),--this.size,!0}var Y0e=X0e,Z0e=N2;function eye(t){var e=this.__data__,r=Z0e(e,t);return r<0?void 0:e[r][1]}var tye=eye,rye=N2;function nye(t){return rye(this.__data__,t)>-1}var iye=nye,aye=N2;function sye(t,e){var r=this.__data__,n=aye(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}var oye=sye,uye=H0e,cye=Y0e,lye=tye,dye=iye,fye=oye;function mf(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t-1&&t%1==0&&t<=m_e}var qJ=g_e,__e=C2,b_e=qJ,v_e=r1,w_e="[object Arguments]",S_e="[object Array]",T_e="[object Boolean]",E_e="[object Date]",A_e="[object Error]",O_e="[object Function]",R_e="[object Map]",x_e="[object Number]",I_e="[object Object]",P_e="[object RegExp]",N_e="[object Set]",D_e="[object String]",C_e="[object WeakMap]",L_e="[object ArrayBuffer]",j_e="[object DataView]",M_e="[object Float32Array]",F_e="[object Float64Array]",B_e="[object Int8Array]",q_e="[object Int16Array]",$_e="[object Int32Array]",U_e="[object Uint8Array]",k_e="[object Uint8ClampedArray]",V_e="[object Uint16Array]",H_e="[object Uint32Array]",Tr={};Tr[M_e]=Tr[F_e]=Tr[B_e]=Tr[q_e]=Tr[$_e]=Tr[U_e]=Tr[k_e]=Tr[V_e]=Tr[H_e]=!0;Tr[w_e]=Tr[S_e]=Tr[L_e]=Tr[T_e]=Tr[j_e]=Tr[E_e]=Tr[A_e]=Tr[O_e]=Tr[R_e]=Tr[x_e]=Tr[I_e]=Tr[P_e]=Tr[N_e]=Tr[D_e]=Tr[C_e]=!1;function Q_e(t){return v_e(t)&&b_e(t.length)&&!!Tr[__e(t)]}var z_e=Q_e;function G_e(t){return function(e){return t(e)}}var UD=G_e,vS={exports:{}};vS.exports;(function(t,e){var r=NJ,n=e&&!e.nodeType&&e,a=n&&!0&&t&&!t.nodeType&&t,s=a&&a.exports===n,o=s&&r.process,u=function(){try{var c=a&&a.require&&a.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}}();t.exports=u})(vS,vS.exports);var kD=vS.exports,W_e=z_e,K_e=UD,Lj=kD,jj=Lj&&Lj.isTypedArray,J_e=jj?K_e(jj):W_e,X_e=J_e,Y_e=Xge,Z_e=u_e,ebe=$D,tbe=BJ,rbe=y_e,nbe=X_e,ibe=Object.prototype,abe=ibe.hasOwnProperty;function sbe(t,e){var r=ebe(t),n=!r&&Z_e(t),a=!r&&!n&&tbe(t),s=!r&&!n&&!a&&nbe(t),o=r||n||a||s,u=o?Y_e(t.length,String):[],c=u.length;for(var l in t)(e||abe.call(t,l))&&!(o&&(l=="length"||a&&(l=="offset"||l=="parent")||s&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||rbe(l,c)))&&u.push(l);return u}var $J=sbe,obe=Object.prototype;function ube(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||obe;return t===r}var VD=ube;function cbe(t,e){return function(r){return t(e(r))}}var UJ=cbe,lbe=UJ,dbe=lbe(Object.keys,Object),fbe=dbe,hbe=VD,pbe=fbe,ybe=Object.prototype,mbe=ybe.hasOwnProperty;function gbe(t){if(!hbe(t))return pbe(t);var e=[];for(var r in Object(t))mbe.call(t,r)&&r!="constructor"&&e.push(r);return e}var _be=gbe,bbe=CJ,vbe=qJ;function wbe(t){return t!=null&&vbe(t.length)&&!bbe(t)}var kJ=wbe,Sbe=$J,Tbe=_be,Ebe=kJ;function Abe(t){return Ebe(t)?Sbe(t):Tbe(t)}var HD=Abe,Obe=M2,Rbe=HD;function xbe(t,e){return t&&Obe(e,Rbe(e),t)}var Ibe=xbe;function Pbe(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}var Nbe=Pbe,Dbe=t1,Cbe=VD,Lbe=Nbe,jbe=Object.prototype,Mbe=jbe.hasOwnProperty;function Fbe(t){if(!Dbe(t))return Lbe(t);var e=Cbe(t),r=[];for(var n in t)n=="constructor"&&(e||!Mbe.call(t,n))||r.push(n);return r}var Bbe=Fbe,qbe=$J,$be=Bbe,Ube=kJ;function kbe(t){return Ube(t)?qbe(t,!0):$be(t)}var QD=kbe,Vbe=M2,Hbe=QD;function Qbe(t,e){return t&&Vbe(e,Hbe(e),t)}var zbe=Qbe,wS={exports:{}};wS.exports;(function(t,e){var r=gs,n=e&&!e.nodeType&&e,a=n&&!0&&t&&!t.nodeType&&t,s=a&&a.exports===n,o=s?r.Buffer:void 0,u=o?o.allocUnsafe:void 0;function c(l,d){if(d)return l.slice();var f=l.length,h=u?u(f):new l.constructor(f);return l.copy(h),h}t.exports=c})(wS,wS.exports);var Gbe=wS.exports;function Wbe(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++rtypeof n.clone=="function"?n.clone():n),e&&e(r),r}toStringStart(){return null}toStringChildren({multiline:e=!1,indent:r=!1}={}){const n=e?` + */(function(v){const _=r,w=g,E=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;v.Buffer=N,v.SlowBuffer=de,v.INSPECT_MAX_BYTES=50;const O=2147483647;v.kMaxLength=O;const{Uint8Array:L,ArrayBuffer:F,SharedArrayBuffer:x}=globalThis;N.TYPED_ARRAY_SUPPORT=P(),!N.TYPED_ARRAY_SUPPORT&&typeof console<"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.");function P(){try{const S=new L(1),A={foo:function(){return 42}};return Object.setPrototypeOf(A,L.prototype),Object.setPrototypeOf(S,A),S.foo()===42}catch{return!1}}Object.defineProperty(N.prototype,"parent",{enumerable:!0,get:function(){if(N.isBuffer(this))return this.buffer}}),Object.defineProperty(N.prototype,"offset",{enumerable:!0,get:function(){if(N.isBuffer(this))return this.byteOffset}});function j(S){if(S>O)throw new RangeError('The value "'+S+'" is invalid for option "size"');const A=new L(S);return Object.setPrototypeOf(A,N.prototype),A}function N(S,A,C){if(typeof S=="number"){if(typeof A=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return H(S)}return V(S,A,C)}N.poolSize=8192;function V(S,A,C){if(typeof S=="string")return X(S,A);if(F.isView(S))return he(S);if(S==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof S);if(ut(S,F)||S&&ut(S.buffer,F)||typeof x<"u"&&(ut(S,x)||S&&ut(S.buffer,x)))return Te(S,A,C);if(typeof S=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const J=S.valueOf&&S.valueOf();if(J!=null&&J!==S)return N.from(J,A,C);const ie=Ne(S);if(ie)return ie;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof S[Symbol.toPrimitive]=="function")return N.from(S[Symbol.toPrimitive]("string"),A,C);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof S)}N.from=function(S,A,C){return V(S,A,C)},Object.setPrototypeOf(N.prototype,L.prototype),Object.setPrototypeOf(N,L);function $(S){if(typeof S!="number")throw new TypeError('"size" argument must be of type number');if(S<0)throw new RangeError('The value "'+S+'" is invalid for option "size"')}function q(S,A,C){return $(S),S<=0?j(S):A!==void 0?typeof C=="string"?j(S).fill(A,C):j(S).fill(A):j(S)}N.alloc=function(S,A,C){return q(S,A,C)};function H(S){return $(S),j(S<0?0:$e(S)|0)}N.allocUnsafe=function(S){return H(S)},N.allocUnsafeSlow=function(S){return H(S)};function X(S,A){if((typeof A!="string"||A==="")&&(A="utf8"),!N.isEncoding(A))throw new TypeError("Unknown encoding: "+A);const C=ce(S,A)|0;let J=j(C);const ie=J.write(S,A);return ie!==C&&(J=J.slice(0,ie)),J}function Y(S){const A=S.length<0?0:$e(S.length)|0,C=j(A);for(let J=0;J=O)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+O.toString(16)+" bytes");return S|0}function de(S){return+S!=S&&(S=0),N.alloc(+S)}N.isBuffer=function(A){return A!=null&&A._isBuffer===!0&&A!==N.prototype},N.compare=function(A,C){if(ut(A,L)&&(A=N.from(A,A.offset,A.byteLength)),ut(C,L)&&(C=N.from(C,C.offset,C.byteLength)),!N.isBuffer(A)||!N.isBuffer(C))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(A===C)return 0;let J=A.length,ie=C.length;for(let be=0,ve=Math.min(J,ie);beie.length?(N.isBuffer(ve)||(ve=N.from(ve)),ve.copy(ie,be)):L.prototype.set.call(ie,ve,be);else if(N.isBuffer(ve))ve.copy(ie,be);else throw new TypeError('"list" argument must be an Array of Buffers');be+=ve.length}return ie};function ce(S,A){if(N.isBuffer(S))return S.length;if(F.isView(S)||ut(S,F))return S.byteLength;if(typeof S!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof S);const C=S.length,J=arguments.length>2&&arguments[2]===!0;if(!J&&C===0)return 0;let ie=!1;for(;;)switch(A){case"ascii":case"latin1":case"binary":return C;case"utf8":case"utf-8":return ee(S).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C*2;case"hex":return C>>>1;case"base64":return Ue(S).length;default:if(ie)return J?-1:ee(S).length;A=(""+A).toLowerCase(),ie=!0}}N.byteLength=ce;function xe(S,A,C){let J=!1;if((A===void 0||A<0)&&(A=0),A>this.length||((C===void 0||C>this.length)&&(C=this.length),C<=0)||(C>>>=0,A>>>=0,C<=A))return"";for(S||(S="utf8");;)switch(S){case"hex":return re(this,A,C);case"utf8":case"utf-8":return U(this,A,C);case"ascii":return Z(this,A,C);case"latin1":case"binary":return se(this,A,C);case"base64":return R(this,A,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return le(this,A,C);default:if(J)throw new TypeError("Unknown encoding: "+S);S=(S+"").toLowerCase(),J=!0}}N.prototype._isBuffer=!0;function Pe(S,A,C){const J=S[A];S[A]=S[C],S[C]=J}N.prototype.swap16=function(){const A=this.length;if(A%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let C=0;CC&&(A+=" ... "),""},E&&(N.prototype[E]=N.prototype.inspect),N.prototype.compare=function(A,C,J,ie,be){if(ut(A,L)&&(A=N.from(A,A.offset,A.byteLength)),!N.isBuffer(A))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof A);if(C===void 0&&(C=0),J===void 0&&(J=A?A.length:0),ie===void 0&&(ie=0),be===void 0&&(be=this.length),C<0||J>A.length||ie<0||be>this.length)throw new RangeError("out of range index");if(ie>=be&&C>=J)return 0;if(ie>=be)return-1;if(C>=J)return 1;if(C>>>=0,J>>>=0,ie>>>=0,be>>>=0,this===A)return 0;let ve=be-ie,Fe=J-C;const Je=Math.min(ve,Fe),lt=this.slice(ie,be),rt=A.slice(C,J);for(let Qe=0;Qe2147483647?C=2147483647:C<-2147483648&&(C=-2147483648),C=+C,at(C)&&(C=ie?0:S.length-1),C<0&&(C=S.length+C),C>=S.length){if(ie)return-1;C=S.length-1}else if(C<0)if(ie)C=0;else return-1;if(typeof A=="string"&&(A=N.from(A,J)),N.isBuffer(A))return A.length===0?-1:Re(S,A,C,J,ie);if(typeof A=="number")return A=A&255,typeof L.prototype.indexOf=="function"?ie?L.prototype.indexOf.call(S,A,C):L.prototype.lastIndexOf.call(S,A,C):Re(S,[A],C,J,ie);throw new TypeError("val must be string, number or Buffer")}function Re(S,A,C,J,ie){let be=1,ve=S.length,Fe=A.length;if(J!==void 0&&(J=String(J).toLowerCase(),J==="ucs2"||J==="ucs-2"||J==="utf16le"||J==="utf-16le")){if(S.length<2||A.length<2)return-1;be=2,ve/=2,Fe/=2,C/=2}function Je(rt,Qe){return be===1?rt[Qe]:rt.readUInt16BE(Qe*be)}let lt;if(ie){let rt=-1;for(lt=C;ltve&&(C=ve-Fe),lt=C;lt>=0;lt--){let rt=!0;for(let Qe=0;Qeie&&(J=ie)):J=ie;const be=A.length;J>be/2&&(J=be/2);let ve;for(ve=0;ve>>0,isFinite(J)?(J=J>>>0,ie===void 0&&(ie="utf8")):(ie=J,J=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const be=this.length-C;if((J===void 0||J>be)&&(J=be),A.length>0&&(J<0||C<0)||C>this.length)throw new RangeError("Attempt to write outside buffer bounds");ie||(ie="utf8");let ve=!1;for(;;)switch(ie){case"hex":return Se(this,A,C,J);case"utf8":case"utf-8":return z(this,A,C,J);case"ascii":case"latin1":case"binary":return M(this,A,C,J);case"base64":return k(this,A,C,J);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,A,C,J);default:if(ve)throw new TypeError("Unknown encoding: "+ie);ie=(""+ie).toLowerCase(),ve=!0}},N.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function R(S,A,C){return A===0&&C===S.length?_.fromByteArray(S):_.fromByteArray(S.slice(A,C))}function U(S,A,C){C=Math.min(S.length,C);const J=[];let ie=A;for(;ie239?4:be>223?3:be>191?2:1;if(ie+Fe<=C){let Je,lt,rt,Qe;switch(Fe){case 1:be<128&&(ve=be);break;case 2:Je=S[ie+1],(Je&192)===128&&(Qe=(be&31)<<6|Je&63,Qe>127&&(ve=Qe));break;case 3:Je=S[ie+1],lt=S[ie+2],(Je&192)===128&&(lt&192)===128&&(Qe=(be&15)<<12|(Je&63)<<6|lt&63,Qe>2047&&(Qe<55296||Qe>57343)&&(ve=Qe));break;case 4:Je=S[ie+1],lt=S[ie+2],rt=S[ie+3],(Je&192)===128&&(lt&192)===128&&(rt&192)===128&&(Qe=(be&15)<<18|(Je&63)<<12|(lt&63)<<6|rt&63,Qe>65535&&Qe<1114112&&(ve=Qe))}}ve===null?(ve=65533,Fe=1):ve>65535&&(ve-=65536,J.push(ve>>>10&1023|55296),ve=56320|ve&1023),J.push(ve),ie+=Fe}return Q(J)}const G=4096;function Q(S){const A=S.length;if(A<=G)return String.fromCharCode.apply(String,S);let C="",J=0;for(;JJ)&&(C=J);let ie="";for(let be=A;beJ&&(A=J),C<0?(C+=J,C<0&&(C=0)):C>J&&(C=J),CC)throw new RangeError("Trying to access beyond buffer length")}N.prototype.readUintLE=N.prototype.readUIntLE=function(A,C,J){A=A>>>0,C=C>>>0,J||pe(A,C,this.length);let ie=this[A],be=1,ve=0;for(;++ve>>0,C=C>>>0,J||pe(A,C,this.length);let ie=this[A+--C],be=1;for(;C>0&&(be*=256);)ie+=this[A+--C]*be;return ie},N.prototype.readUint8=N.prototype.readUInt8=function(A,C){return A=A>>>0,C||pe(A,1,this.length),this[A]},N.prototype.readUint16LE=N.prototype.readUInt16LE=function(A,C){return A=A>>>0,C||pe(A,2,this.length),this[A]|this[A+1]<<8},N.prototype.readUint16BE=N.prototype.readUInt16BE=function(A,C){return A=A>>>0,C||pe(A,2,this.length),this[A]<<8|this[A+1]},N.prototype.readUint32LE=N.prototype.readUInt32LE=function(A,C){return A=A>>>0,C||pe(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+this[A+3]*16777216},N.prototype.readUint32BE=N.prototype.readUInt32BE=function(A,C){return A=A>>>0,C||pe(A,4,this.length),this[A]*16777216+(this[A+1]<<16|this[A+2]<<8|this[A+3])},N.prototype.readBigUInt64LE=ht(function(A){A=A>>>0,ne(A,"offset");const C=this[A],J=this[A+7];(C===void 0||J===void 0)&&fe(A,this.length-8);const ie=C+this[++A]*2**8+this[++A]*2**16+this[++A]*2**24,be=this[++A]+this[++A]*2**8+this[++A]*2**16+J*2**24;return BigInt(ie)+(BigInt(be)<>>0,ne(A,"offset");const C=this[A],J=this[A+7];(C===void 0||J===void 0)&&fe(A,this.length-8);const ie=C*2**24+this[++A]*2**16+this[++A]*2**8+this[++A],be=this[++A]*2**24+this[++A]*2**16+this[++A]*2**8+J;return(BigInt(ie)<>>0,C=C>>>0,J||pe(A,C,this.length);let ie=this[A],be=1,ve=0;for(;++ve=be&&(ie-=Math.pow(2,8*C)),ie},N.prototype.readIntBE=function(A,C,J){A=A>>>0,C=C>>>0,J||pe(A,C,this.length);let ie=C,be=1,ve=this[A+--ie];for(;ie>0&&(be*=256);)ve+=this[A+--ie]*be;return be*=128,ve>=be&&(ve-=Math.pow(2,8*C)),ve},N.prototype.readInt8=function(A,C){return A=A>>>0,C||pe(A,1,this.length),this[A]&128?(255-this[A]+1)*-1:this[A]},N.prototype.readInt16LE=function(A,C){A=A>>>0,C||pe(A,2,this.length);const J=this[A]|this[A+1]<<8;return J&32768?J|4294901760:J},N.prototype.readInt16BE=function(A,C){A=A>>>0,C||pe(A,2,this.length);const J=this[A+1]|this[A]<<8;return J&32768?J|4294901760:J},N.prototype.readInt32LE=function(A,C){return A=A>>>0,C||pe(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},N.prototype.readInt32BE=function(A,C){return A=A>>>0,C||pe(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},N.prototype.readBigInt64LE=ht(function(A){A=A>>>0,ne(A,"offset");const C=this[A],J=this[A+7];(C===void 0||J===void 0)&&fe(A,this.length-8);const ie=this[A+4]+this[A+5]*2**8+this[A+6]*2**16+(J<<24);return(BigInt(ie)<>>0,ne(A,"offset");const C=this[A],J=this[A+7];(C===void 0||J===void 0)&&fe(A,this.length-8);const ie=(C<<24)+this[++A]*2**16+this[++A]*2**8+this[++A];return(BigInt(ie)<>>0,C||pe(A,4,this.length),w.read(this,A,!0,23,4)},N.prototype.readFloatBE=function(A,C){return A=A>>>0,C||pe(A,4,this.length),w.read(this,A,!1,23,4)},N.prototype.readDoubleLE=function(A,C){return A=A>>>0,C||pe(A,8,this.length),w.read(this,A,!0,52,8)},N.prototype.readDoubleBE=function(A,C){return A=A>>>0,C||pe(A,8,this.length),w.read(this,A,!1,52,8)};function _e(S,A,C,J,ie,be){if(!N.isBuffer(S))throw new TypeError('"buffer" argument must be a Buffer instance');if(A>ie||AS.length)throw new RangeError("Index out of range")}N.prototype.writeUintLE=N.prototype.writeUIntLE=function(A,C,J,ie){if(A=+A,C=C>>>0,J=J>>>0,!ie){const Fe=Math.pow(2,8*J)-1;_e(this,A,C,J,Fe,0)}let be=1,ve=0;for(this[C]=A&255;++ve>>0,J=J>>>0,!ie){const Fe=Math.pow(2,8*J)-1;_e(this,A,C,J,Fe,0)}let be=J-1,ve=1;for(this[C+be]=A&255;--be>=0&&(ve*=256);)this[C+be]=A/ve&255;return C+J},N.prototype.writeUint8=N.prototype.writeUInt8=function(A,C,J){return A=+A,C=C>>>0,J||_e(this,A,C,1,255,0),this[C]=A&255,C+1},N.prototype.writeUint16LE=N.prototype.writeUInt16LE=function(A,C,J){return A=+A,C=C>>>0,J||_e(this,A,C,2,65535,0),this[C]=A&255,this[C+1]=A>>>8,C+2},N.prototype.writeUint16BE=N.prototype.writeUInt16BE=function(A,C,J){return A=+A,C=C>>>0,J||_e(this,A,C,2,65535,0),this[C]=A>>>8,this[C+1]=A&255,C+2},N.prototype.writeUint32LE=N.prototype.writeUInt32LE=function(A,C,J){return A=+A,C=C>>>0,J||_e(this,A,C,4,4294967295,0),this[C+3]=A>>>24,this[C+2]=A>>>16,this[C+1]=A>>>8,this[C]=A&255,C+4},N.prototype.writeUint32BE=N.prototype.writeUInt32BE=function(A,C,J){return A=+A,C=C>>>0,J||_e(this,A,C,4,4294967295,0),this[C]=A>>>24,this[C+1]=A>>>16,this[C+2]=A>>>8,this[C+3]=A&255,C+4};function Ie(S,A,C,J,ie){K(A,J,ie,S,C,7);let be=Number(A&BigInt(4294967295));S[C++]=be,be=be>>8,S[C++]=be,be=be>>8,S[C++]=be,be=be>>8,S[C++]=be;let ve=Number(A>>BigInt(32)&BigInt(4294967295));return S[C++]=ve,ve=ve>>8,S[C++]=ve,ve=ve>>8,S[C++]=ve,ve=ve>>8,S[C++]=ve,C}function Ee(S,A,C,J,ie){K(A,J,ie,S,C,7);let be=Number(A&BigInt(4294967295));S[C+7]=be,be=be>>8,S[C+6]=be,be=be>>8,S[C+5]=be,be=be>>8,S[C+4]=be;let ve=Number(A>>BigInt(32)&BigInt(4294967295));return S[C+3]=ve,ve=ve>>8,S[C+2]=ve,ve=ve>>8,S[C+1]=ve,ve=ve>>8,S[C]=ve,C+8}N.prototype.writeBigUInt64LE=ht(function(A,C=0){return Ie(this,A,C,BigInt(0),BigInt("0xffffffffffffffff"))}),N.prototype.writeBigUInt64BE=ht(function(A,C=0){return Ee(this,A,C,BigInt(0),BigInt("0xffffffffffffffff"))}),N.prototype.writeIntLE=function(A,C,J,ie){if(A=+A,C=C>>>0,!ie){const Je=Math.pow(2,8*J-1);_e(this,A,C,J,Je-1,-Je)}let be=0,ve=1,Fe=0;for(this[C]=A&255;++be>0)-Fe&255;return C+J},N.prototype.writeIntBE=function(A,C,J,ie){if(A=+A,C=C>>>0,!ie){const Je=Math.pow(2,8*J-1);_e(this,A,C,J,Je-1,-Je)}let be=J-1,ve=1,Fe=0;for(this[C+be]=A&255;--be>=0&&(ve*=256);)A<0&&Fe===0&&this[C+be+1]!==0&&(Fe=1),this[C+be]=(A/ve>>0)-Fe&255;return C+J},N.prototype.writeInt8=function(A,C,J){return A=+A,C=C>>>0,J||_e(this,A,C,1,127,-128),A<0&&(A=255+A+1),this[C]=A&255,C+1},N.prototype.writeInt16LE=function(A,C,J){return A=+A,C=C>>>0,J||_e(this,A,C,2,32767,-32768),this[C]=A&255,this[C+1]=A>>>8,C+2},N.prototype.writeInt16BE=function(A,C,J){return A=+A,C=C>>>0,J||_e(this,A,C,2,32767,-32768),this[C]=A>>>8,this[C+1]=A&255,C+2},N.prototype.writeInt32LE=function(A,C,J){return A=+A,C=C>>>0,J||_e(this,A,C,4,2147483647,-2147483648),this[C]=A&255,this[C+1]=A>>>8,this[C+2]=A>>>16,this[C+3]=A>>>24,C+4},N.prototype.writeInt32BE=function(A,C,J){return A=+A,C=C>>>0,J||_e(this,A,C,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),this[C]=A>>>24,this[C+1]=A>>>16,this[C+2]=A>>>8,this[C+3]=A&255,C+4},N.prototype.writeBigInt64LE=ht(function(A,C=0){return Ie(this,A,C,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),N.prototype.writeBigInt64BE=ht(function(A,C=0){return Ee(this,A,C,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Me(S,A,C,J,ie,be){if(C+J>S.length)throw new RangeError("Index out of range");if(C<0)throw new RangeError("Index out of range")}function Ce(S,A,C,J,ie){return A=+A,C=C>>>0,ie||Me(S,A,C,4),w.write(S,A,C,J,23,4),C+4}N.prototype.writeFloatLE=function(A,C,J){return Ce(this,A,C,!0,J)},N.prototype.writeFloatBE=function(A,C,J){return Ce(this,A,C,!1,J)};function ke(S,A,C,J,ie){return A=+A,C=C>>>0,ie||Me(S,A,C,8),w.write(S,A,C,J,52,8),C+8}N.prototype.writeDoubleLE=function(A,C,J){return ke(this,A,C,!0,J)},N.prototype.writeDoubleBE=function(A,C,J){return ke(this,A,C,!1,J)},N.prototype.copy=function(A,C,J,ie){if(!N.isBuffer(A))throw new TypeError("argument should be a Buffer");if(J||(J=0),!ie&&ie!==0&&(ie=this.length),C>=A.length&&(C=A.length),C||(C=0),ie>0&&ie=this.length)throw new RangeError("Index out of range");if(ie<0)throw new RangeError("sourceEnd out of bounds");ie>this.length&&(ie=this.length),A.length-C>>0,J=J===void 0?this.length:J>>>0,A||(A=0);let be;if(typeof A=="number")for(be=C;be2**32?ie=D(String(C)):typeof C=="bigint"&&(ie=String(C),(C>BigInt(2)**BigInt(32)||C<-(BigInt(2)**BigInt(32)))&&(ie=D(ie)),ie+="n"),J+=` It must be ${A}. Received ${ie}`,J},RangeError);function D(S){let A="",C=S.length;const J=S[0]==="-"?1:0;for(;C>=J+4;C-=3)A=`_${S.slice(C-3,C)}${A}`;return`${S.slice(0,C)}${A}`}function B(S,A,C){ne(A,"offset"),(S[A]===void 0||S[A+C]===void 0)&&fe(A,S.length-(C+1))}function K(S,A,C,J,ie,be){if(S>C||S3?A===0||A===BigInt(0)?Fe=`>= 0${ve} and < 2${ve} ** ${(be+1)*8}${ve}`:Fe=`>= -(2${ve} ** ${(be+1)*8-1}${ve}) and < 2 ** ${(be+1)*8-1}${ve}`:Fe=`>= ${A}${ve} and <= ${C}${ve}`,new qe.ERR_OUT_OF_RANGE("value",Fe,S)}B(J,ie,be)}function ne(S,A){if(typeof S!="number")throw new qe.ERR_INVALID_ARG_TYPE(A,"number",S)}function fe(S,A,C){throw Math.floor(S)!==S?(ne(S,C),new qe.ERR_OUT_OF_RANGE(C||"offset","an integer",S)):A<0?new qe.ERR_BUFFER_OUT_OF_BOUNDS:new qe.ERR_OUT_OF_RANGE(C||"offset",`>= ${C?1:0} and <= ${A}`,S)}const ge=/[^+/0-9A-Za-z-_]/g;function Le(S){if(S=S.split("=")[0],S=S.trim().replace(ge,""),S.length<2)return"";for(;S.length%4!==0;)S=S+"=";return S}function ee(S,A){A=A||1/0;let C;const J=S.length;let ie=null;const be=[];for(let ve=0;ve55295&&C<57344){if(!ie){if(C>56319){(A-=3)>-1&&be.push(239,191,189);continue}else if(ve+1===J){(A-=3)>-1&&be.push(239,191,189);continue}ie=C;continue}if(C<56320){(A-=3)>-1&&be.push(239,191,189),ie=C;continue}C=(ie-55296<<10|C-56320)+65536}else ie&&(A-=3)>-1&&be.push(239,191,189);if(ie=null,C<128){if((A-=1)<0)break;be.push(C)}else if(C<2048){if((A-=2)<0)break;be.push(C>>6|192,C&63|128)}else if(C<65536){if((A-=3)<0)break;be.push(C>>12|224,C>>6&63|128,C&63|128)}else if(C<1114112){if((A-=4)<0)break;be.push(C>>18|240,C>>12&63|128,C>>6&63|128,C&63|128)}else throw new Error("Invalid code point")}return be}function Oe(S){const A=[];for(let C=0;C>8,ie=C%256,be.push(ie),be.push(J);return be}function Ue(S){return _.toByteArray(Le(S))}function Ye(S,A,C,J){let ie;for(ie=0;ie=A.length||ie>=S.length);++ie)A[ie+C]=S[ie];return ie}function ut(S,A){return S instanceof A||S!=null&&S.constructor!=null&&S.constructor.name!=null&&S.constructor.name===A.name}function at(S){return S!==S}const ct=function(){const S="0123456789abcdef",A=new Array(256);for(let C=0;C<16;++C){const J=C*16;for(let ie=0;ie<16;++ie)A[J+ie]=S[C]+S[ie]}return A}();function ht(S){return typeof BigInt>"u"?te:S}function te(){throw new Error("BigInt not supported")}})(e);const b=e.Buffer;t.Blob=e.Blob,t.BlobOptions=e.BlobOptions,t.Buffer=e.Buffer,t.File=e.File,t.FileOptions=e.FileOptions,t.INSPECT_MAX_BYTES=e.INSPECT_MAX_BYTES,t.SlowBuffer=e.SlowBuffer,t.TranscodeEncoding=e.TranscodeEncoding,t.atob=e.atob,t.btoa=e.btoa,t.constants=e.constants,t.default=b,t.isAscii=e.isAscii,t.isUtf8=e.isUtf8,t.kMaxLength=e.kMaxLength,t.kStringMaxLength=e.kStringMaxLength,t.resolveObjectURL=e.resolveObjectURL,t.transcode=e.transcode})(ys);var Ur={ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},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(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.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(t,e,r){return t.set(e,r)},Boolean,Uint8Array},EK={exports:{}},Jf={exports:{}},LL;function qd(){if(LL)return Jf.exports;LL=1;const{AbortController:t,AbortSignal:e}=typeof self<"u"?self:typeof window<"u"?window:void 0;return Jf.exports=t,Jf.exports.AbortSignal=e,Jf.exports.default=t,Jf.exports}var TD={exports:{}},Sd=typeof Reflect=="object"?Reflect:null,jL=Sd&&typeof Sd.apply=="function"?Sd.apply:function(e,r,n){return Function.prototype.apply.call(e,r,n)},Ow;Sd&&typeof Sd.ownKeys=="function"?Ow=Sd.ownKeys:Object.getOwnPropertySymbols?Ow=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Ow=function(e){return Object.getOwnPropertyNames(e)};function dfe(t){console&&console.warn&&console.warn(t)}var AK=Number.isNaN||function(e){return e!==e};function hr(){hr.init.call(this)}TD.exports=hr;TD.exports.once=yfe;hr.EventEmitter=hr;hr.prototype._events=void 0;hr.prototype._eventsCount=0;hr.prototype._maxListeners=void 0;var ML=10;function g2(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(hr,"defaultMaxListeners",{enumerable:!0,get:function(){return ML},set:function(t){if(typeof t!="number"||t<0||AK(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");ML=t}});hr.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};hr.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||AK(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function OK(t){return t._maxListeners===void 0?hr.defaultMaxListeners:t._maxListeners}hr.prototype.getMaxListeners=function(){return OK(this)};hr.prototype.emit=function(e){for(var r=[],n=1;n0&&(o=r[0]),o instanceof Error)throw o;var u=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw u.context=o,u}var c=s[e];if(c===void 0)return!1;if(typeof c=="function")jL(c,this,r);else for(var l=c.length,d=NK(c,l),n=0;n0&&o.length>a&&!o.warned){o.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=o.length,dfe(u)}return t}hr.prototype.addListener=function(e,r){return RK(this,e,r,!1)};hr.prototype.on=hr.prototype.addListener;hr.prototype.prependListener=function(e,r){return RK(this,e,r,!0)};function ffe(){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 xK(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},a=ffe.bind(n);return a.listener=r,n.wrapFn=a,a}hr.prototype.once=function(e,r){return g2(r),this.on(e,xK(this,e,r)),this};hr.prototype.prependOnceListener=function(e,r){return g2(r),this.prependListener(e,xK(this,e,r)),this};hr.prototype.removeListener=function(e,r){var n,a,s,o,u;if(g2(r),a=this._events,a===void 0)return this;if(n=a[e],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete a[e],a.removeListener&&this.emit("removeListener",e,n.listener||r));else if(typeof n!="function"){for(s=-1,o=n.length-1;o>=0;o--)if(n[o]===r||n[o].listener===r){u=n[o].listener,s=o;break}if(s<0)return this;s===0?n.shift():hfe(n,s),n.length===1&&(a[e]=n[0]),a.removeListener!==void 0&&this.emit("removeListener",e,u||r)}return this};hr.prototype.off=hr.prototype.removeListener;hr.prototype.removeAllListeners=function(e){var r,n,a;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var s=Object.keys(n),o;for(a=0;a=0;a--)this.removeListener(e,r[a]);return this};function IK(t,e,r){var n=t._events;if(n===void 0)return[];var a=n[e];return a===void 0?[]:typeof a=="function"?r?[a.listener||a]:[a]:r?pfe(a):NK(a,a.length)}hr.prototype.listeners=function(e){return IK(this,e,!0)};hr.prototype.rawListeners=function(e){return IK(this,e,!1)};hr.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):PK.call(t,e)};hr.prototype.listenerCount=PK;function PK(t){var e=this._events;if(e!==void 0){var r=e[t];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}hr.prototype.eventNames=function(){return this._eventsCount>0?Ow(this._events):[]};function NK(t,e){for(var r=new Array(e),n=0;n{if(h!==void 0&&(h===null||typeof h!="object"||!("aborted"in h)))throw new ERR_INVALID_ARG_TYPE(p,"AbortSignal",h)},d=(h,p)=>{if(typeof h!="function")throw new ERR_INVALID_ARG_TYPE(p,"Function",h)};class f extends Error{constructor(p){if(!Array.isArray(p))throw new TypeError(`Expected input to be an Array, got ${typeof p}`);let m="";for(let y=0;y{h=y,p=g}),resolve:h,reject:p}},promisify(h){return new Promise((p,m)=>{h((y,...g)=>y?m(y):p(...g))})},debuglog(){return function(){}},format(h,...p){return h.replace(/%([sdifj])/g,function(...[m,y]){const g=p.shift();return y==="f"?g.toFixed(6):y==="j"?JSON.stringify(g):y==="s"&&typeof g=="object"?`${g.constructor!==Object?g.constructor.name:""} {}`.trim():g.toString()})},inspect(h){switch(typeof h){case"string":if(h.includes("'"))if(h.includes('"')){if(!h.includes("`")&&!h.includes("${"))return`\`${h}\``}else return`"${h}"`;return`'${h}'`;case"number":return isNaN(h)?"NaN":Object.is(h,-0)?String(h):h;case"bigint":return`${String(h)}n`;case"boolean":case"undefined":return String(h);case"object":return"{}"}},types:{isAsyncFunction(h){return h instanceof o},isArrayBufferView(h){return ArrayBuffer.isView(h)}},isBlob:c,deprecate(h,p){return h},addAbortListener:Xb.addAbortListener||function(p,m){if(p===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",p);l(p,"signal"),d(m,"listener");let y;return p.aborted?queueMicrotask(()=>m()):(p.addEventListener("abort",m,{__proto__:null,once:!0,[r]:!0}),y=()=>{p.removeEventListener("abort",m)}),{__proto__:null,[n](){var g;(g=y)===null||g===void 0||g()}}},AbortSignalAny:a.any||function(p){if(p.length===1)return p[0];const m=new s,y=()=>m.abort();return p.forEach(g=>{l(g,"signals"),g.addEventListener("abort",y,{once:!0})}),m.signal.addEventListener("abort",()=>{p.forEach(g=>g.removeEventListener("abort",y))},{once:!0}),m.signal}},t.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(EK);var ui=EK.exports,ED={};const{format:gfe,inspect:yS,AggregateError:_fe}=ui,bfe=globalThis.AggregateError||_fe,vfe=Symbol("kIsNodeError"),wfe=["string","function","number","object","Function","Object","boolean","bigint","symbol"],Sfe=/^([A-Z][a-z0-9]*)+$/,Tfe="__node_internal_",_2={};function qc(t,e){if(!t)throw new _2.ERR_INTERNAL_ASSERTION(e)}function FL(t){let e="",r=t.length;const n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function Efe(t,e,r){if(typeof e=="function")return qc(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);const n=(e.match(/%[dfijoOs]/g)||[]).length;return qc(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:gfe(e,...r)}function xn(t,e,r){r||(r=Error);class n extends r{constructor(...s){super(Efe(t,e,s))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[vfe]=!0,_2[t]=n}function BL(t){const e=Tfe+t.name;return Object.defineProperty(t,"name",{value:e}),t}function Afe(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;const r=new bfe([e,t],e.message);return r.code=e.code,r}return t||e}let Ofe=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new _2.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};xn("ERR_ASSERTION","%s",Error);xn("ERR_INVALID_ARG_TYPE",(t,e,r)=>{qc(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";const a=[],s=[],o=[];for(const c of e)qc(typeof c=="string","All expected entries have to be of type string"),wfe.includes(c)?a.push(c.toLowerCase()):Sfe.test(c)?s.push(c):(qc(c!=="object",'The value "object" should be written as "Object"'),o.push(c));if(s.length>0){const c=a.indexOf("object");c!==-1&&(a.splice(a,c,1),s.push("Object"))}if(a.length>0){switch(a.length){case 1:n+=`of type ${a[0]}`;break;case 2:n+=`one of type ${a[0]} or ${a[1]}`;break;default:{const c=a.pop();n+=`one of type ${a.join(", ")}, or ${c}`}}(s.length>0||o.length>0)&&(n+=" or ")}if(s.length>0){switch(s.length){case 1:n+=`an instance of ${s[0]}`;break;case 2:n+=`an instance of ${s[0]} or ${s[1]}`;break;default:{const c=s.pop();n+=`an instance of ${s.join(", ")}, or ${c}`}}o.length>0&&(n+=" or ")}switch(o.length){case 0:break;case 1:o[0].toLowerCase()!==o[0]&&(n+="an "),n+=`${o[0]}`;break;case 2:n+=`one of ${o[0]} or ${o[1]}`;break;default:{const c=o.pop();n+=`one of ${o.join(", ")}, or ${c}`}}if(r==null)n+=`. Received ${r}`;else if(typeof r=="function"&&r.name)n+=`. Received function ${r.name}`;else if(typeof r=="object"){var u;if((u=r.constructor)!==null&&u!==void 0&&u.name)n+=`. Received an instance of ${r.constructor.name}`;else{const c=yS(r,{depth:-1});n+=`. Received ${c}`}}else{let c=yS(r,{colors:!1});c.length>25&&(c=`${c.slice(0,25)}...`),n+=`. Received type ${typeof r} (${c})`}return n},TypeError);xn("ERR_INVALID_ARG_VALUE",(t,e,r="is invalid")=>{let n=yS(e);return n.length>128&&(n=n.slice(0,128)+"..."),`The ${t.includes(".")?"property":"argument"} '${t}' ${r}. Received ${n}`},TypeError);xn("ERR_INVALID_RETURN_VALUE",(t,e,r)=>{var n;const a=r!=null&&(n=r.constructor)!==null&&n!==void 0&&n.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${t} to be returned from the "${e}" function but got ${a}.`},TypeError);xn("ERR_MISSING_ARGS",(...t)=>{qc(t.length>0,"At least one arg needs to be specified");let e;const r=t.length;switch(t=(Array.isArray(t)?t:[t]).map(n=>`"${n}"`).join(" or "),r){case 1:e+=`The ${t[0]} argument`;break;case 2:e+=`The ${t[0]} and ${t[1]} arguments`;break;default:{const n=t.pop();e+=`The ${t.join(", ")}, and ${n} arguments`}break}return`${e} must be specified`},TypeError);xn("ERR_OUT_OF_RANGE",(t,e,r)=>{qc(e,'Missing "range" argument');let n;return Number.isInteger(r)&&Math.abs(r)>2**32?n=FL(String(r)):typeof r=="bigint"?(n=String(r),(r>2n**32n||r<-(2n**32n))&&(n=FL(n)),n+="n"):n=yS(r),`The value of "${t}" is out of range. It must be ${e}. Received ${n}`},RangeError);xn("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);xn("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);xn("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);xn("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);xn("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);xn("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);xn("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);xn("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);xn("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);xn("ERR_STREAM_WRITE_AFTER_END","write after end",Error);xn("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var Ei={AbortError:Ofe,aggregateTwoErrors:BL(Afe),hideStackFrames:BL,codes:_2};const{ArrayIsArray:AD,ArrayPrototypeIncludes:CK,ArrayPrototypeJoin:LK,ArrayPrototypeMap:Rfe,NumberIsInteger:OD,NumberIsNaN:xfe,NumberMAX_SAFE_INTEGER:Ife,NumberMIN_SAFE_INTEGER:Pfe,NumberParseInt:Nfe,ObjectPrototypeHasOwnProperty:Dfe,RegExpPrototypeExec:jK,String:Cfe,StringPrototypeToUpperCase:Lfe,StringPrototypeTrim:jfe}=Ur,{hideStackFrames:pa,codes:{ERR_SOCKET_BAD_PORT:Mfe,ERR_INVALID_ARG_TYPE:$n,ERR_INVALID_ARG_VALUE:pf,ERR_OUT_OF_RANGE:Kc,ERR_UNKNOWN_SIGNAL:qL}}=Ei,{normalizeEncoding:Ffe}=ui,{isAsyncFunction:Bfe,isArrayBufferView:qfe}=ui.types,$L={};function $fe(t){return t===(t|0)}function Ufe(t){return t===t>>>0}const kfe=/^[0-7]+$/,Vfe="must be a 32-bit unsigned integer or an octal string";function Hfe(t,e,r){if(typeof t>"u"&&(t=r),typeof t=="string"){if(jK(kfe,t)===null)throw new pf(e,t,Vfe);t=Nfe(t,8)}return MK(t,e),t}const Qfe=pa((t,e,r=Pfe,n=Ife)=>{if(typeof t!="number")throw new $n(e,"number",t);if(!OD(t))throw new Kc(e,"an integer",t);if(tn)throw new Kc(e,`>= ${r} && <= ${n}`,t)}),zfe=pa((t,e,r=-2147483648,n=2147483647)=>{if(typeof t!="number")throw new $n(e,"number",t);if(!OD(t))throw new Kc(e,"an integer",t);if(tn)throw new Kc(e,`>= ${r} && <= ${n}`,t)}),MK=pa((t,e,r=!1)=>{if(typeof t!="number")throw new $n(e,"number",t);if(!OD(t))throw new Kc(e,"an integer",t);const n=r?1:0,a=4294967295;if(ta)throw new Kc(e,`>= ${n} && <= ${a}`,t)});function RD(t,e){if(typeof t!="string")throw new $n(e,"string",t)}function Gfe(t,e,r=void 0,n){if(typeof t!="number")throw new $n(e,"number",t);if(r!=null&&tn||(r!=null||n!=null)&&xfe(t))throw new Kc(e,`${r!=null?`>= ${r}`:""}${r!=null&&n!=null?" && ":""}${n!=null?`<= ${n}`:""}`,t)}const Wfe=pa((t,e,r)=>{if(!CK(r,t)){const a="must be one of: "+LK(Rfe(r,s=>typeof s=="string"?`'${s}'`:Cfe(s)),", ");throw new pf(e,t,a)}});function FK(t,e){if(typeof t!="boolean")throw new $n(e,"boolean",t)}function GE(t,e,r){return t==null||!Dfe(t,e)?r:t[e]}const Kfe=pa((t,e,r=null)=>{const n=GE(r,"allowArray",!1),a=GE(r,"allowFunction",!1);if(!GE(r,"nullable",!1)&&t===null||!n&&AD(t)||typeof t!="object"&&(!a||typeof t!="function"))throw new $n(e,"Object",t)}),Jfe=pa((t,e)=>{if(t!=null&&typeof t!="object"&&typeof t!="function")throw new $n(e,"a dictionary",t)}),b2=pa((t,e,r=0)=>{if(!AD(t))throw new $n(e,"Array",t);if(t.length{if(!qfe(t))throw new $n(e,["Buffer","TypedArray","DataView"],t)});function rhe(t,e){const r=Ffe(e),n=t.length;if(r==="hex"&&n%2!==0)throw new pf("encoding",e,`is invalid for data of length ${n}`)}function nhe(t,e="Port",r=!0){if(typeof t!="number"&&typeof t!="string"||typeof t=="string"&&jfe(t).length===0||+t!==+t>>>0||t>65535||t===0&&!r)throw new Mfe(e,t,r);return t|0}const BK=pa((t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new $n(e,"AbortSignal",t)}),ihe=pa((t,e)=>{if(typeof t!="function")throw new $n(e,"Function",t)}),ahe=pa((t,e)=>{if(typeof t!="function"||Bfe(t))throw new $n(e,"Function",t)}),she=pa((t,e)=>{if(t!==void 0)throw new $n(e,"undefined",t)});function ohe(t,e,r){if(!CK(r,t))throw new $n(e,`('${LK(r,"|")}')`,t)}const uhe=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function UL(t,e){if(typeof t>"u"||!jK(uhe,t))throw new pf(e,t,'must be an array or string of format "; rel=preload; as=style"')}function che(t){if(typeof t=="string")return UL(t,"hints"),t;if(AD(t)){const e=t.length;let r="";if(e===0)return r;for(let n=0;n; rel=preload; as=style"')}var Yb={isInt32:$fe,isUint32:Ufe,parseFileMode:Hfe,validateArray:b2,validateStringArray:Xfe,validateBooleanArray:Yfe,validateAbortSignalArray:Zfe,validateBoolean:FK,validateBuffer:the,validateDictionary:Jfe,validateEncoding:rhe,validateFunction:ihe,validateInt32:zfe,validateInteger:Qfe,validateNumber:Gfe,validateObject:Kfe,validateOneOf:Wfe,validatePlainFunction:ahe,validatePort:nhe,validateSignalName:ehe,validateString:RD,validateUint32:MK,validateUndefined:she,validateUnion:ohe,validateAbortSignal:BK,validateLinkHeaderValue:che},xD={exports:{}},qK={exports:{}},Yr=qK.exports={},ts,rs;function cP(){throw new Error("setTimeout has not been defined")}function lP(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?ts=setTimeout:ts=cP}catch{ts=cP}try{typeof clearTimeout=="function"?rs=clearTimeout:rs=lP}catch{rs=lP}})();function $K(t){if(ts===setTimeout)return setTimeout(t,0);if((ts===cP||!ts)&&setTimeout)return ts=setTimeout,setTimeout(t,0);try{return ts(t,0)}catch{try{return ts.call(null,t,0)}catch{return ts.call(this,t,0)}}}function lhe(t){if(rs===clearTimeout)return clearTimeout(t);if((rs===lP||!rs)&&clearTimeout)return rs=clearTimeout,clearTimeout(t);try{return rs(t)}catch{try{return rs.call(null,t)}catch{return rs.call(this,t)}}}var io=[],Td=!1,Nc,Rw=-1;function dhe(){!Td||!Nc||(Td=!1,Nc.length?io=Nc.concat(io):Rw=-1,io.length&&UK())}function UK(){if(!Td){var t=$K(dhe);Td=!0;for(var e=io.length;e;){for(Nc=io,io=[];++Rw1)for(var r=1;r{};function nJ(t,e,r){var n,a;if(arguments.length===2?(r=e,e=hP):e==null?e=hP:Nhe(e,"options"),Phe(r,"callback"),Ihe(e.signal,"options.signal"),r=pP(r),Mhe(t)||Fhe(t))return khe(t,e,r);if(!Bhe(t))throw new xhe("stream",["ReadableStream","WritableStream","Stream"],t);const s=(n=e.readable)!==null&&n!==void 0?n:WE(t),o=(a=e.writable)!==null&&a!==void 0?a:KL(t),u=t._writableState,c=t._readableState,l=()=>{t.writable||h()};let d=qhe(t)&&WE(t)===s&&KL(t)===o,f=JL(t,!1);const h=()=>{f=!0,t.destroyed&&(d=!1),!(d&&(!t.readable||s))&&(!s||p)&&r.call(t)};let p=zL(t,!1);const m=()=>{p=!0,t.destroyed&&(d=!1),!(d&&(!t.writable||o))&&(!o||f)&&r.call(t)},y=E=>{r.call(t,E)};let g=jhe(t);const b=()=>{g=!0;const E=XL(t)||GL(t);if(E&&typeof E!="boolean")return r.call(t,E);if(s&&!p&&WE(t,!0)&&!zL(t,!1))return r.call(t,new HL);if(o&&!f&&!JL(t,!1))return r.call(t,new HL);r.call(t)},v=()=>{g=!0;const E=XL(t)||GL(t);if(E&&typeof E!="boolean")return r.call(t,E);r.call(t)},_=()=>{t.req.on("finish",h)};Uhe(t)?(t.on("complete",h),d||t.on("abort",b),t.req?_():t.on("request",_)):o&&!u&&(t.on("end",l),t.on("close",l)),!d&&typeof t.aborted=="boolean"&&t.on("aborted",b),t.on("end",m),t.on("finish",h),e.error!==!1&&t.on("error",y),t.on("close",b),g?Jo.nextTick(b):u!=null&&u.errorEmitted||c!=null&&c.errorEmitted?d||Jo.nextTick(v):(!s&&(!d||QL(t))&&(f||WL(t)===!1)||!o&&(!d||WL(t))&&(p||QL(t)===!1)||c&&t.req&&t.aborted)&&Jo.nextTick(v);const w=()=>{r=yP,t.removeListener("aborted",b),t.removeListener("complete",h),t.removeListener("abort",b),t.removeListener("request",_),t.req&&t.req.removeListener("finish",h),t.removeListener("end",l),t.removeListener("close",l),t.removeListener("finish",h),t.removeListener("end",m),t.removeListener("error",y),t.removeListener("close",b)};if(e.signal&&!g){const E=()=>{const O=r;w(),O.call(t,new tJ(void 0,{cause:e.signal.reason}))};if(e.signal.aborted)Jo.nextTick(E);else{Ed=Ed||ui.addAbortListener;const O=Ed(e.signal,E),L=r;r=pP((...F)=>{O[rJ](),L.apply(t,F)})}}return w}function khe(t,e,r){let n=!1,a=yP;if(e.signal)if(a=()=>{n=!0,r.call(t,new tJ(void 0,{cause:e.signal.reason}))},e.signal.aborted)Jo.nextTick(a);else{Ed=Ed||ui.addAbortListener;const o=Ed(e.signal,a),u=r;r=pP((...c)=>{o[rJ](),u.apply(t,c)})}const s=(...o)=>{n||Jo.nextTick(()=>r.apply(t,o))};return Lhe(t[$he].promise,s,s),yP}function Vhe(t,e){var r;let n=!1;return e===null&&(e=hP),(r=e)!==null&&r!==void 0&&r.cleanup&&(Dhe(e.cleanup,"cleanup"),n=e.cleanup),new Che((a,s)=>{const o=nJ(t,e,u=>{n&&o(),u?s(u):a()})})}xD.exports=nJ;xD.exports.finished=Vhe;var Ou=xD.exports;const ls=Oo,{aggregateTwoErrors:Hhe,codes:{ERR_MULTIPLE_CALLBACK:Qhe},AbortError:zhe}=Ei,{Symbol:iJ}=Ur,{kIsDestroyed:Ghe,isDestroyed:Whe,isFinished:Khe,isServerRequest:Jhe}=Ro,aJ=iJ("kDestroy"),mP=iJ("kConstruct");function sJ(t,e,r){t&&(t.stack,e&&!e.errored&&(e.errored=t),r&&!r.errored&&(r.errored=t))}function Xhe(t,e){const r=this._readableState,n=this._writableState,a=n||r;return n!=null&&n.destroyed||r!=null&&r.destroyed?(typeof e=="function"&&e(),this):(sJ(t,n,r),n&&(n.destroyed=!0),r&&(r.destroyed=!0),a.constructed?YL(this,t,e):this.once(aJ,function(s){YL(this,Hhe(s,t),e)}),this)}function YL(t,e,r){let n=!1;function a(s){if(n)return;n=!0;const o=t._readableState,u=t._writableState;sJ(s,u,o),u&&(u.closed=!0),o&&(o.closed=!0),typeof r=="function"&&r(s),s?ls.nextTick(Yhe,t,s):ls.nextTick(oJ,t)}try{t._destroy(e||null,a)}catch(s){a(s)}}function Yhe(t,e){gP(t,e),oJ(t)}function oJ(t){const e=t._readableState,r=t._writableState;r&&(r.closeEmitted=!0),e&&(e.closeEmitted=!0),(r!=null&&r.emitClose||e!=null&&e.emitClose)&&t.emit("close")}function gP(t,e){const r=t._readableState,n=t._writableState;n!=null&&n.errorEmitted||r!=null&&r.errorEmitted||(n&&(n.errorEmitted=!0),r&&(r.errorEmitted=!0),t.emit("error",e))}function Zhe(){const t=this._readableState,e=this._writableState;t&&(t.constructed=!0,t.closed=!1,t.closeEmitted=!1,t.destroyed=!1,t.errored=null,t.errorEmitted=!1,t.reading=!1,t.ended=t.readable===!1,t.endEmitted=t.readable===!1),e&&(e.constructed=!0,e.destroyed=!1,e.closed=!1,e.closeEmitted=!1,e.errored=null,e.errorEmitted=!1,e.finalCalled=!1,e.prefinished=!1,e.ended=e.writable===!1,e.ending=e.writable===!1,e.finished=e.writable===!1)}function _P(t,e,r){const n=t._readableState,a=t._writableState;if(a!=null&&a.destroyed||n!=null&&n.destroyed)return this;n!=null&&n.autoDestroy||a!=null&&a.autoDestroy?t.destroy(e):e&&(e.stack,a&&!a.errored&&(a.errored=e),n&&!n.errored&&(n.errored=e),r?ls.nextTick(gP,t,e):gP(t,e))}function epe(t,e){if(typeof t._construct!="function")return;const r=t._readableState,n=t._writableState;r&&(r.constructed=!1),n&&(n.constructed=!1),t.once(mP,e),!(t.listenerCount(mP)>1)&&ls.nextTick(tpe,t)}function tpe(t){let e=!1;function r(n){if(e){_P(t,n??new Qhe);return}e=!0;const a=t._readableState,s=t._writableState,o=s||a;a&&(a.constructed=!0),s&&(s.constructed=!0),o.destroyed?t.emit(aJ,n):n?_P(t,n,!0):ls.nextTick(rpe,t)}try{t._construct(n=>{ls.nextTick(r,n)})}catch(n){ls.nextTick(r,n)}}function rpe(t){t.emit(mP)}function ZL(t){return(t==null?void 0:t.setHeader)&&typeof t.abort=="function"}function uJ(t){t.emit("close")}function npe(t,e){t.emit("error",e),ls.nextTick(uJ,t)}function ipe(t,e){!t||Whe(t)||(!e&&!Khe(t)&&(e=new zhe),Jhe(t)?(t.socket=null,t.destroy(e)):ZL(t)?t.abort():ZL(t.req)?t.req.abort():typeof t.destroy=="function"?t.destroy(e):typeof t.close=="function"?t.close():e?ls.nextTick(npe,t,e):ls.nextTick(uJ,t),t.destroyed||(t[Ghe]=!0))}var yf={construct:epe,destroyer:ipe,destroy:Xhe,undestroy:Zhe,errorOrDestroy:_P};const{ArrayIsArray:ape,ObjectSetPrototypeOf:cJ}=Ur,{EventEmitter:T2}=Xb;function E2(t){T2.call(this,t)}cJ(E2.prototype,T2.prototype);cJ(E2,T2);E2.prototype.pipe=function(t,e){const r=this;function n(d){t.writable&&t.write(d)===!1&&r.pause&&r.pause()}r.on("data",n);function a(){r.readable&&r.resume&&r.resume()}t.on("drain",a),!t._isStdio&&(!e||e.end!==!1)&&(r.on("end",o),r.on("close",u));let s=!1;function o(){s||(s=!0,t.end())}function u(){s||(s=!0,typeof t.destroy=="function"&&t.destroy())}function c(d){l(),T2.listenerCount(this,"error")===0&&this.emit("error",d)}bP(r,"error",c),bP(t,"error",c);function l(){r.removeListener("data",n),t.removeListener("drain",a),r.removeListener("end",o),r.removeListener("close",u),r.removeListener("error",c),t.removeListener("error",c),r.removeListener("end",l),r.removeListener("close",l),t.removeListener("close",l)}return r.on("end",l),r.on("close",l),t.on("close",l),t.emit("pipe",r),t};function bP(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):ape(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}var ID={Stream:E2,prependListener:bP},lJ={exports:{}};(function(t){const{SymbolDispose:e}=Ur,{AbortError:r,codes:n}=Ei,{isNodeStream:a,isWebStream:s,kControllerErrorFunction:o}=Ro,u=Ou,{ERR_INVALID_ARG_TYPE:c}=n;let l;const d=(f,h)=>{if(typeof f!="object"||!("aborted"in f))throw new c(h,"AbortSignal",f)};t.exports.addAbortSignal=function(h,p){if(d(h,"signal"),!a(p)&&!s(p))throw new c("stream",["ReadableStream","WritableStream","Stream"],p);return t.exports.addAbortSignalNoValidate(h,p)},t.exports.addAbortSignalNoValidate=function(f,h){if(typeof f!="object"||!("aborted"in f))return h;const p=a(h)?()=>{h.destroy(new r(void 0,{cause:f.reason}))}:()=>{h[o](new r(void 0,{cause:f.reason}))};if(f.aborted)p();else{l=l||ui.addAbortListener;const m=l(f,p);u(h,m[e])}return h}})(lJ);var A2=lJ.exports;const{StringPrototypeSlice:ej,SymbolIterator:spe,TypedArrayPrototypeSet:Av,Uint8Array:ope}=Ur,{Buffer:KE}=ys,{inspect:upe}=ui;var cpe=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){const r={data:e,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length}unshift(e){const r={data:e,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length}shift(){if(this.length===0)return;const e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(this.length===0)return"";let r=this.head,n=""+r.data;for(;(r=r.next)!==null;)n+=e+r.data;return n}concat(e){if(this.length===0)return KE.alloc(0);const r=KE.allocUnsafe(e>>>0);let n=this.head,a=0;for(;n;)Av(r,n.data,a),a+=n.data.length,n=n.next;return r}consume(e,r){const n=this.head.data;if(es.length)r+=s,e-=s.length;else{e===s.length?(r+=s,++a,n.next?this.head=n.next:this.head=this.tail=null):(r+=ej(s,0,e),this.head=n,n.data=ej(s,e));break}++a}while((n=n.next)!==null);return this.length-=a,r}_getBuffer(e){const r=KE.allocUnsafe(e),n=e;let a=this.head,s=0;do{const o=a.data;if(e>o.length)Av(r,o,n-e),e-=o.length;else{e===o.length?(Av(r,o,n-e),++s,a.next?this.head=a.next:this.head=this.tail=null):(Av(r,new ope(o.buffer,o.byteOffset,e),n-e),this.head=a,a.data=o.slice(e));break}++s}while((a=a.next)!==null);return this.length-=s,r}[Symbol.for("nodejs.util.inspect.custom")](e,r){return upe(this,{...r,depth:0,customInspect:!1})}};const{MathFloor:lpe,NumberIsInteger:dpe}=Ur,{validateInteger:fpe}=Yb,{ERR_INVALID_ARG_VALUE:hpe}=Ei.codes;let dJ=16*1024,fJ=16;function ppe(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function hJ(t){return t?fJ:dJ}function ype(t,e){fpe(e,"value",0),t?fJ=e:dJ=e}function mpe(t,e,r,n){const a=ppe(e,n,r);if(a!=null){if(!dpe(a)||a<0){const s=n?`options.${r}`:"options.highWaterMark";throw new hpe(s,a)}return lpe(a)}return hJ(t.objectMode)}var O2={getHighWaterMark:mpe,getDefaultHighWaterMark:hJ,setDefaultHighWaterMark:ype},pJ={},vP={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh */(function(t,e){var r=ys,n=r.Buffer;function a(o,u){for(var c in o)u[c]=o[c]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=r:(a(r,e),e.Buffer=s);function s(o,u,c){return n(o,u,c)}s.prototype=Object.create(n.prototype),a(n,s),s.from=function(o,u,c){if(typeof o=="number")throw new TypeError("Argument must not be a number");return n(o,u,c)},s.alloc=function(o,u,c){if(typeof o!="number")throw new TypeError("Argument must be a number");var l=n(o);return u!==void 0?typeof c=="string"?l.fill(u,c):l.fill(u):l.fill(0),l},s.allocUnsafe=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return n(o)},s.allocUnsafeSlow=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(o)}})(vP,vP.exports);var gpe=vP.exports,PD=gpe.Buffer,tj=PD.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function _pe(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function bpe(t){var e=_pe(t);if(typeof e!="string"&&(PD.isEncoding===tj||!tj(t)))throw new Error("Unknown encoding: "+t);return e||t}pJ.StringDecoder=Zb;function Zb(t){this.encoding=bpe(t);var e;switch(this.encoding){case"utf16le":this.text=Ape,this.end=Ope,e=4;break;case"utf8":this.fillLast=Spe,e=4;break;case"base64":this.text=Rpe,this.end=xpe,e=3;break;default:this.write=Ipe,this.end=Ppe;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=PD.allocUnsafe(e)}Zb.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function vpe(t,e,r){var n=e.length-1;if(n=0?(a>0&&(t.lastNeed=a-1),a):--n=0?(a>0&&(t.lastNeed=a-2),a):--n=0?(a>0&&(a===2?a=0:t.lastNeed=a-3),a):0))}function wpe(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"�"}}function Spe(t){var e=this.lastTotal-this.lastNeed,r=wpe(this,t);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function Tpe(t,e){var r=vpe(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)}function Epe(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e}function Ape(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function Ope(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function Rpe(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function xpe(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function Ipe(t){return t.toString(this.encoding)}function Ppe(t){return t&&t.length?this.write(t):""}const rj=Oo,{PromisePrototypeThen:Npe,SymbolAsyncIterator:nj,SymbolIterator:ij}=Ur,{Buffer:Dpe}=ys,{ERR_INVALID_ARG_TYPE:Cpe,ERR_STREAM_NULL_VALUES:Lpe}=Ei.codes;function jpe(t,e,r){let n;if(typeof e=="string"||e instanceof Dpe)return new t({objectMode:!0,...r,read(){this.push(e),this.push(null)}});let a;if(e&&e[nj])a=!0,n=e[nj]();else if(e&&e[ij])a=!1,n=e[ij]();else throw new Cpe("iterable",["Iterable"],e);const s=new t({objectMode:!0,highWaterMark:1,...r});let o=!1;s._read=function(){o||(o=!0,c())},s._destroy=function(l,d){Npe(u(l),()=>rj.nextTick(d,l),f=>rj.nextTick(d,f||l))};async function u(l){const d=l!=null,f=typeof n.throw=="function";if(d&&f){const{value:h,done:p}=await n.throw(l);if(await h,p)return}if(typeof n.return=="function"){const{value:h}=await n.return();await h}}async function c(){for(;;){try{const{value:l,done:d}=a?await n.next():n.next();if(d)s.push(null);else{const f=l&&typeof l.then=="function"?await l:l;if(f===null)throw o=!1,new Lpe;if(s.push(f))continue;o=!1}}catch(l){s.destroy(l)}break}}return s}var yJ=jpe,XE,aj;function R2(){if(aj)return XE;aj=1;const t=Oo,{ArrayPrototypeIndexOf:e,NumberIsInteger:r,NumberIsNaN:n,NumberParseInt:a,ObjectDefineProperties:s,ObjectKeys:o,ObjectSetPrototypeOf:u,Promise:c,SafeSet:l,SymbolAsyncDispose:d,SymbolAsyncIterator:f,Symbol:h}=Ur;XE=pe,pe.ReadableState=le;const{EventEmitter:p}=Xb,{Stream:m,prependListener:y}=ID,{Buffer:g}=ys,{addAbortSignal:b}=A2,v=Ou;let _=ui.debuglog("stream",te=>{_=te});const w=cpe,E=yf,{getHighWaterMark:O,getDefaultHighWaterMark:L}=O2,{aggregateTwoErrors:F,codes:{ERR_INVALID_ARG_TYPE:x,ERR_METHOD_NOT_IMPLEMENTED:P,ERR_OUT_OF_RANGE:j,ERR_STREAM_PUSH_AFTER_EOF:N,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:V},AbortError:$}=Ei,{validateObject:q}=Yb,H=h("kPaused"),{StringDecoder:X}=pJ,Y=yJ;u(pe.prototype,m.prototype),u(pe,m);const he=()=>{},{errorOrDestroy:Te}=E,Ne=1,$e=2,de=4,ce=8,xe=16,Pe=32,we=64,Re=128,Se=256,z=512,M=1024,k=2048,T=4096,R=8192,U=16384,G=32768,Q=65536,Z=1<<17,se=1<<18;function re(te){return{enumerable:!1,get(){return(this.state&te)!==0},set(S){S?this.state|=te:this.state&=~te}}}s(le.prototype,{objectMode:re(Ne),ended:re($e),endEmitted:re(de),reading:re(ce),constructed:re(xe),sync:re(Pe),needReadable:re(we),emittedReadable:re(Re),readableListening:re(Se),resumeScheduled:re(z),errorEmitted:re(M),emitClose:re(k),autoDestroy:re(T),destroyed:re(R),closed:re(U),closeEmitted:re(G),multiAwaitDrain:re(Q),readingMore:re(Z),dataEmitted:re(se)});function le(te,S,A){typeof A!="boolean"&&(A=S instanceof bo()),this.state=k|T|xe|Pe,te&&te.objectMode&&(this.state|=Ne),A&&te&&te.readableObjectMode&&(this.state|=Ne),this.highWaterMark=te?O(this,te,"readableHighWaterMark",A):L(!1),this.buffer=new w,this.length=0,this.pipes=[],this.flowing=null,this[H]=null,te&&te.emitClose===!1&&(this.state&=~k),te&&te.autoDestroy===!1&&(this.state&=~T),this.errored=null,this.defaultEncoding=te&&te.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,te&&te.encoding&&(this.decoder=new X(te.encoding),this.encoding=te.encoding)}function pe(te){if(!(this instanceof pe))return new pe(te);const S=this instanceof bo();this._readableState=new le(te,this,S),te&&(typeof te.read=="function"&&(this._read=te.read),typeof te.destroy=="function"&&(this._destroy=te.destroy),typeof te.construct=="function"&&(this._construct=te.construct),te.signal&&!S&&b(te.signal,this)),m.call(this,te),E.construct(this,()=>{this._readableState.needReadable&&D(this,this._readableState)})}pe.prototype.destroy=E.destroy,pe.prototype._undestroy=E.undestroy,pe.prototype._destroy=function(te,S){S(te)},pe.prototype[p.captureRejectionSymbol]=function(te){this.destroy(te)},pe.prototype[d]=function(){let te;return this.destroyed||(te=this.readableEnded?null:new $,this.destroy(te)),new c((S,A)=>v(this,C=>C&&C!==te?A(C):S(null)))},pe.prototype.push=function(te,S){return _e(this,te,S,!1)},pe.prototype.unshift=function(te,S){return _e(this,te,S,!0)};function _e(te,S,A,C){_("readableAddChunk",S);const J=te._readableState;let ie;if(J.state&Ne||(typeof S=="string"?(A=A||J.defaultEncoding,J.encoding!==A&&(C&&J.encoding?S=g.from(S,A).toString(J.encoding):(S=g.from(S,A),A=""))):S instanceof g?A="":m._isUint8Array(S)?(S=m._uint8ArrayToBuffer(S),A=""):S!=null&&(ie=new x("chunk",["string","Buffer","Uint8Array"],S))),ie)Te(te,ie);else if(S===null)J.state&=~ce,ke(te,J);else if(J.state&Ne||S&&S.length>0)if(C)if(J.state&de)Te(te,new V);else{if(J.destroyed||J.errored)return!1;Ie(te,J,S,!0)}else if(J.ended)Te(te,new N);else{if(J.destroyed||J.errored)return!1;J.state&=~ce,J.decoder&&!A?(S=J.decoder.write(S),J.objectMode||S.length!==0?Ie(te,J,S,!1):D(te,J)):Ie(te,J,S,!1)}else C||(J.state&=~ce,D(te,J));return!J.ended&&(J.length0?(S.state&Q?S.awaitDrainWriters.clear():S.awaitDrainWriters=null,S.dataEmitted=!0,te.emit("data",A)):(S.length+=S.objectMode?1:A.length,C?S.buffer.unshift(A):S.buffer.push(A),S.state&we&&qe(te)),D(te,S)}pe.prototype.isPaused=function(){const te=this._readableState;return te[H]===!0||te.flowing===!1},pe.prototype.setEncoding=function(te){const S=new X(te);this._readableState.decoder=S,this._readableState.encoding=this._readableState.decoder.encoding;const A=this._readableState.buffer;let C="";for(const J of A)C+=S.write(J);return A.clear(),C!==""&&A.push(C),this._readableState.length=C.length,this};const Ee=1073741824;function Me(te){if(te>Ee)throw new j("size","<= 1GiB",te);return te--,te|=te>>>1,te|=te>>>2,te|=te>>>4,te|=te>>>8,te|=te>>>16,te++,te}function Ce(te,S){return te<=0||S.length===0&&S.ended?0:S.state&Ne?1:n(te)?S.flowing&&S.length?S.buffer.first().length:S.length:te<=S.length?te:S.ended?S.length:0}pe.prototype.read=function(te){_("read",te),te===void 0?te=NaN:r(te)||(te=a(te,10));const S=this._readableState,A=te;if(te>S.highWaterMark&&(S.highWaterMark=Me(te)),te!==0&&(S.state&=~Re),te===0&&S.needReadable&&((S.highWaterMark!==0?S.length>=S.highWaterMark:S.length>0)||S.ended))return _("read: emitReadable",S.length,S.ended),S.length===0&&S.ended?Ye(this):qe(this),null;if(te=Ce(te,S),te===0&&S.ended)return S.length===0&&Ye(this),null;let C=(S.state&we)!==0;if(_("need readable",C),(S.length===0||S.length-te0?J=Ue(te,S):J=null,J===null?(S.needReadable=S.length<=S.highWaterMark,te=0):(S.length-=te,S.multiAwaitDrain?S.awaitDrainWriters.clear():S.awaitDrainWriters=null),S.length===0&&(S.ended||(S.needReadable=!0),A!==te&&S.ended&&Ye(this)),J!==null&&!S.errorEmitted&&!S.closeEmitted&&(S.dataEmitted=!0,this.emit("data",J)),J};function ke(te,S){if(_("onEofChunk"),!S.ended){if(S.decoder){const A=S.decoder.end();A&&A.length&&(S.buffer.push(A),S.length+=S.objectMode?1:A.length)}S.ended=!0,S.sync?qe(te):(S.needReadable=!1,S.emittedReadable=!0,W(te))}}function qe(te){const S=te._readableState;_("emitReadable",S.needReadable,S.emittedReadable),S.needReadable=!1,S.emittedReadable||(_("emitReadable",S.flowing),S.emittedReadable=!0,t.nextTick(W,te))}function W(te){const S=te._readableState;_("emitReadable_",S.destroyed,S.length,S.ended),!S.destroyed&&!S.errored&&(S.length||S.ended)&&(te.emit("readable"),S.emittedReadable=!1),S.needReadable=!S.flowing&&!S.ended&&S.length<=S.highWaterMark,ee(te)}function D(te,S){!S.readingMore&&S.constructed&&(S.readingMore=!0,t.nextTick(B,te,S))}function B(te,S){for(;!S.reading&&!S.ended&&(S.length1&&C.pipes.includes(te)&&(_("false write response, pause",C.awaitDrainWriters.size),C.awaitDrainWriters.add(te)),A.pause()),Fe||(Fe=K(A,te),te.on("drain",Fe))}A.on("data",Qe);function Qe(Gt){_("ondata");const Nr=te.write(Gt);_("dest.write",Nr),Nr===!1&&rt()}function di(Gt){if(_("onerror",Gt),Xt(),te.removeListener("error",di),te.listenerCount("error")===0){const Nr=te._writableState||te._readableState;Nr&&!Nr.errorEmitted?Te(te,Gt):te.emit("error",Gt)}}y(te,"error",di);function et(){te.removeListener("finish",$r),Xt()}te.once("close",et);function $r(){_("onfinish"),te.removeListener("close",et),Xt()}te.once("finish",$r);function Xt(){_("unpipe"),A.unpipe(te)}return te.emit("pipe",A),te.writableNeedDrain===!0?rt():C.flowing||(_("pipe resume"),A.resume()),te};function K(te,S){return function(){const C=te._readableState;C.awaitDrainWriters===S?(_("pipeOnDrain",1),C.awaitDrainWriters=null):C.multiAwaitDrain&&(_("pipeOnDrain",C.awaitDrainWriters.size),C.awaitDrainWriters.delete(S)),(!C.awaitDrainWriters||C.awaitDrainWriters.size===0)&&te.listenerCount("data")&&te.resume()}}pe.prototype.unpipe=function(te){const S=this._readableState,A={hasUnpiped:!1};if(S.pipes.length===0)return this;if(!te){const J=S.pipes;S.pipes=[],this.pause();for(let ie=0;ie0,C.flowing!==!1&&this.resume()):te==="readable"&&!C.endEmitted&&!C.readableListening&&(C.readableListening=C.needReadable=!0,C.flowing=!1,C.emittedReadable=!1,_("on readable",C.length,C.reading),C.length?qe(this):C.reading||t.nextTick(fe,this)),A},pe.prototype.addListener=pe.prototype.on,pe.prototype.removeListener=function(te,S){const A=m.prototype.removeListener.call(this,te,S);return te==="readable"&&t.nextTick(ne,this),A},pe.prototype.off=pe.prototype.removeListener,pe.prototype.removeAllListeners=function(te){const S=m.prototype.removeAllListeners.apply(this,arguments);return(te==="readable"||te===void 0)&&t.nextTick(ne,this),S};function ne(te){const S=te._readableState;S.readableListening=te.listenerCount("readable")>0,S.resumeScheduled&&S[H]===!1?S.flowing=!0:te.listenerCount("data")>0?te.resume():S.readableListening||(S.flowing=null)}function fe(te){_("readable nexttick read 0"),te.read(0)}pe.prototype.resume=function(){const te=this._readableState;return te.flowing||(_("resume"),te.flowing=!te.readableListening,ge(this,te)),te[H]=!1,this};function ge(te,S){S.resumeScheduled||(S.resumeScheduled=!0,t.nextTick(Le,te,S))}function Le(te,S){_("resume",S.reading),S.reading||te.read(0),S.resumeScheduled=!1,te.emit("resume"),ee(te),S.flowing&&!S.reading&&te.read(0)}pe.prototype.pause=function(){return _("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(_("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[H]=!0,this};function ee(te){const S=te._readableState;for(_("flow",S.flowing);S.flowing&&te.read()!==null;);}pe.prototype.wrap=function(te){let S=!1;te.on("data",C=>{!this.push(C)&&te.pause&&(S=!0,te.pause())}),te.on("end",()=>{this.push(null)}),te.on("error",C=>{Te(this,C)}),te.on("close",()=>{this.destroy()}),te.on("destroy",()=>{this.destroy()}),this._read=()=>{S&&te.resume&&(S=!1,te.resume())};const A=o(te);for(let C=1;C{J=be?F(J,be):null,A(),A=he});try{for(;;){const be=te.destroyed?null:te.read();if(be!==null)yield be;else{if(J)throw J;if(J===null)return;await new c(C)}}}catch(be){throw J=F(J,be),J}finally{(J||(S==null?void 0:S.destroyOnReturn)!==!1)&&(J===void 0||te._readableState.autoDestroy)?E.destroyer(te,null):(te.off("readable",C),ie())}}s(pe.prototype,{readable:{__proto__:null,get(){const te=this._readableState;return!!te&&te.readable!==!1&&!te.destroyed&&!te.errorEmitted&&!te.endEmitted},set(te){this._readableState&&(this._readableState.readable=!!te)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(te){this._readableState&&(this._readableState.flowing=te)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(te){this._readableState&&(this._readableState.destroyed=te)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),s(le.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[H]!==!1},set(te){this[H]=!!te}}}),pe._fromList=Ue;function Ue(te,S){if(S.length===0)return null;let A;return S.objectMode?A=S.buffer.shift():!te||te>=S.length?(S.decoder?A=S.buffer.join(""):S.buffer.length===1?A=S.buffer.first():A=S.buffer.concat(S.length),S.buffer.clear()):A=S.buffer.consume(te,S.decoder),A}function Ye(te){const S=te._readableState;_("endReadable",S.endEmitted),S.endEmitted||(S.ended=!0,t.nextTick(ut,S,te))}function ut(te,S){if(_("endReadableNT",te.endEmitted,te.length),!te.errored&&!te.closeEmitted&&!te.endEmitted&&te.length===0){if(te.endEmitted=!0,S.emit("end"),S.writable&&S.allowHalfOpen===!1)t.nextTick(at,S);else if(te.autoDestroy){const A=S._writableState;(!A||A.autoDestroy&&(A.finished||A.writable===!1))&&S.destroy()}}}function at(te){te.writable&&!te.writableEnded&&!te.destroyed&&te.end()}pe.from=function(te,S){return Y(pe,te,S)};let ct;function ht(){return ct===void 0&&(ct={}),ct}return pe.fromWeb=function(te,S){return ht().newStreamReadableFromReadableStream(te,S)},pe.toWeb=function(te,S){return ht().newReadableStreamFromStreamReadable(te,S)},pe.wrap=function(te,S){var A,C;return new pe({objectMode:(A=(C=te.readableObjectMode)!==null&&C!==void 0?C:te.objectMode)!==null&&A!==void 0?A:!0,...S,destroy(J,ie){E.destroyer(te,J),ie(J)}}).wrap(te)},XE}var YE,sj;function ND(){if(sj)return YE;sj=1;const t=Oo,{ArrayPrototypeSlice:e,Error:r,FunctionPrototypeSymbolHasInstance:n,ObjectDefineProperty:a,ObjectDefineProperties:s,ObjectSetPrototypeOf:o,StringPrototypeToLowerCase:u,Symbol:c,SymbolHasInstance:l}=Ur;YE=q,q.WritableState=V;const{EventEmitter:d}=Xb,f=ID.Stream,{Buffer:h}=ys,p=yf,{addAbortSignal:m}=A2,{getHighWaterMark:y,getDefaultHighWaterMark:g}=O2,{ERR_INVALID_ARG_TYPE:b,ERR_METHOD_NOT_IMPLEMENTED:v,ERR_MULTIPLE_CALLBACK:_,ERR_STREAM_CANNOT_PIPE:w,ERR_STREAM_DESTROYED:E,ERR_STREAM_ALREADY_FINISHED:O,ERR_STREAM_NULL_VALUES:L,ERR_STREAM_WRITE_AFTER_END:F,ERR_UNKNOWN_ENCODING:x}=Ei.codes,{errorOrDestroy:P}=p;o(q.prototype,f.prototype),o(q,f);function j(){}const N=c("kOnFinished");function V(T,R,U){typeof U!="boolean"&&(U=R instanceof bo()),this.objectMode=!!(T&&T.objectMode),U&&(this.objectMode=this.objectMode||!!(T&&T.writableObjectMode)),this.highWaterMark=T?y(this,T,"writableHighWaterMark",U):g(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const G=!!(T&&T.decodeStrings===!1);this.decodeStrings=!G,this.defaultEncoding=T&&T.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=Te.bind(void 0,R),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,$(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!T||T.emitClose!==!1,this.autoDestroy=!T||T.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[N]=[]}function $(T){T.buffered=[],T.bufferedIndex=0,T.allBuffers=!0,T.allNoop=!0}V.prototype.getBuffer=function(){return e(this.buffered,this.bufferedIndex)},a(V.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function q(T){const R=this instanceof bo();if(!R&&!n(q,this))return new q(T);this._writableState=new V(T,this,R),T&&(typeof T.write=="function"&&(this._write=T.write),typeof T.writev=="function"&&(this._writev=T.writev),typeof T.destroy=="function"&&(this._destroy=T.destroy),typeof T.final=="function"&&(this._final=T.final),typeof T.construct=="function"&&(this._construct=T.construct),T.signal&&m(T.signal,this)),f.call(this,T),p.construct(this,()=>{const U=this._writableState;U.writing||ce(this,U),Re(this,U)})}a(q,l,{__proto__:null,value:function(T){return n(this,T)?!0:this!==q?!1:T&&T._writableState instanceof V}}),q.prototype.pipe=function(){P(this,new w)};function H(T,R,U,G){const Q=T._writableState;if(typeof U=="function")G=U,U=Q.defaultEncoding;else{if(!U)U=Q.defaultEncoding;else if(U!=="buffer"&&!h.isEncoding(U))throw new x(U);typeof G!="function"&&(G=j)}if(R===null)throw new L;if(!Q.objectMode)if(typeof R=="string")Q.decodeStrings!==!1&&(R=h.from(R,U),U="buffer");else if(R instanceof h)U="buffer";else if(f._isUint8Array(R))R=f._uint8ArrayToBuffer(R),U="buffer";else throw new b("chunk",["string","Buffer","Uint8Array"],R);let Z;return Q.ending?Z=new F:Q.destroyed&&(Z=new E("write")),Z?(t.nextTick(G,Z),P(T,Z,!0),Z):(Q.pendingcb++,X(T,Q,R,U,G))}q.prototype.write=function(T,R,U){return H(this,T,R,U)===!0},q.prototype.cork=function(){this._writableState.corked++},q.prototype.uncork=function(){const T=this._writableState;T.corked&&(T.corked--,T.writing||ce(this,T))},q.prototype.setDefaultEncoding=function(R){if(typeof R=="string"&&(R=u(R)),!h.isEncoding(R))throw new x(R);return this._writableState.defaultEncoding=R,this};function X(T,R,U,G,Q){const Z=R.objectMode?1:U.length;R.length+=Z;const se=R.lengthU.bufferedIndex&&ce(T,U),G?U.afterWriteTickInfo!==null&&U.afterWriteTickInfo.cb===Q?U.afterWriteTickInfo.count++:(U.afterWriteTickInfo={count:1,cb:Q,stream:T,state:U},t.nextTick(Ne,U.afterWriteTickInfo)):$e(T,U,1,Q))}function Ne({stream:T,state:R,count:U,cb:G}){return R.afterWriteTickInfo=null,$e(T,R,U,G)}function $e(T,R,U,G){for(!R.ending&&!T.destroyed&&R.length===0&&R.needDrain&&(R.needDrain=!1,T.emit("drain"));U-- >0;)R.pendingcb--,G();R.destroyed&&de(R),Re(T,R)}function de(T){if(T.writing)return;for(let Q=T.bufferedIndex;Q1&&T._writev){R.pendingcb-=Z-1;const re=R.allNoop?j:pe=>{for(let _e=se;_e256?(U.splice(0,se),R.bufferedIndex=0):R.bufferedIndex=se}R.bufferProcessing=!1}q.prototype._write=function(T,R,U){if(this._writev)this._writev([{chunk:T,encoding:R}],U);else throw new v("_write()")},q.prototype._writev=null,q.prototype.end=function(T,R,U){const G=this._writableState;typeof T=="function"?(U=T,T=null,R=null):typeof R=="function"&&(U=R,R=null);let Q;if(T!=null){const Z=H(this,T,R);Z instanceof r&&(Q=Z)}return G.corked&&(G.corked=1,this.uncork()),Q||(!G.errored&&!G.ending?(G.ending=!0,Re(this,G,!0),G.ended=!0):G.finished?Q=new O("end"):G.destroyed&&(Q=new E("end"))),typeof U=="function"&&(Q||G.finished?t.nextTick(U,Q):G[N].push(U)),this};function xe(T){return T.ending&&!T.destroyed&&T.constructed&&T.length===0&&!T.errored&&T.buffered.length===0&&!T.finished&&!T.writing&&!T.errorEmitted&&!T.closeEmitted}function Pe(T,R){let U=!1;function G(Q){if(U){P(T,Q??_());return}if(U=!0,R.pendingcb--,Q){const Z=R[N].splice(0);for(let se=0;se{xe(Q)?Se(G,Q):Q.pendingcb--},T,R)):xe(R)&&(R.pendingcb++,Se(T,R))))}function Se(T,R){R.pendingcb--,R.finished=!0;const U=R[N].splice(0);for(let G=0;G{if(de!=null)throw new m("nully","body",de)},de=>{y(Ne,de)});return Ne=new x({objectMode:!0,readable:!1,write:X,final(de){Y(async()=>{try{await $e,t.nextTick(de,null)}catch(ce){t.nextTick(de,ce)}})},destroy:he})}throw new m("Iterable, AsyncIterable or AsyncFunction",$,H)}if(O(V))return N(V.arrayBuffer());if(a(V))return w(x,V,{objectMode:!0,writable:!1});if(l(V==null?void 0:V.readable)&&d(V==null?void 0:V.writable))return x.fromWeb(V);if(typeof(V==null?void 0:V.writable)=="object"||typeof(V==null?void 0:V.readable)=="object"){const H=V!=null&&V.readable?o(V==null?void 0:V.readable)?V==null?void 0:V.readable:N(V.readable):void 0,X=V!=null&&V.writable?u(V==null?void 0:V.writable)?V==null?void 0:V.writable:N(V.writable):void 0;return j({readable:H,writable:X})}const q=V==null?void 0:V.then;if(typeof q=="function"){let H;return F(q,V,X=>{X!=null&&H.push(X),H.push(null)},X=>{y(H,X)}),H=new x({objectMode:!0,writable:!1,read(){}})}throw new p($,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],V)};function P(N){let{promise:V,resolve:$}=_();const q=new L,H=q.signal;return{value:N(async function*(){for(;;){const Y=V;V=null;const{chunk:he,done:Te,cb:Ne}=await Y;if(t.nextTick(Ne),Te)return;if(H.aborted)throw new h(void 0,{cause:H.reason});({promise:V,resolve:$}=_()),yield he}}(),{signal:H}),write(Y,he,Te){const Ne=$;$=null,Ne({chunk:Y,done:!1,cb:Te})},final(Y){const he=$;$=null,he({done:!0,cb:Y})},destroy(Y,he){q.abort(),he(Y)}}}function j(N){const V=N.readable&&typeof N.readable.read!="function"?b.wrap(N.readable):N.readable,$=N.writable;let q=!!r(V),H=!!n($),X,Y,he,Te,Ne;function $e(de){const ce=Te;Te=null,ce?ce(de):de&&Ne.destroy(de)}return Ne=new x({readableObjectMode:!!(V!=null&&V.readableObjectMode),writableObjectMode:!!($!=null&&$.writableObjectMode),readable:q,writable:H}),H&&(f($,de=>{H=!1,de&&y(V,de),$e(de)}),Ne._write=function(de,ce,xe){$.write(de,ce)?xe():X=xe},Ne._final=function(de){$.end(),Y=de},$.on("drain",function(){if(X){const de=X;X=null,de()}}),$.on("finish",function(){if(Y){const de=Y;Y=null,de()}})),q&&(f(V,de=>{q=!1,de&&y(V,de),$e(de)}),V.on("readable",function(){if(he){const de=he;he=null,de()}}),V.on("end",function(){Ne.push(null)}),Ne._read=function(){for(;;){const de=V.read();if(de===null){he=Ne._read;return}if(!Ne.push(de))return}}),Ne._destroy=function(de,ce){!de&&Te!==null&&(de=new h),he=null,X=null,Y=null,Te===null?ce(de):(Te=ce,y($,de),y(V,de))},Ne}return ZE}var eA,uj;function bo(){if(uj)return eA;uj=1;const{ObjectDefineProperties:t,ObjectGetOwnPropertyDescriptor:e,ObjectKeys:r,ObjectSetPrototypeOf:n}=Ur;eA=o;const a=R2(),s=ND();n(o.prototype,a.prototype),n(o,a);{const d=r(s.prototype);for(let f=0;f{if(e){t?t(e):this.destroy(e);return}r!=null&&this.push(r),this.push(null),t&&t()}):(this.push(null),t&&t())}function $pe(){this._final!==wP&&wP.call(this)}vo.prototype._final=wP;vo.prototype._transform=function(t,e,r){throw new Bpe("_transform()")};vo.prototype._write=function(t,e,r){const n=this._readableState,a=this._writableState,s=n.length;this._transform(t,e,(o,u)=>{if(o){r(o);return}u!=null&&this.push(u),a.ended||s===n.length||n.length{n=!0});const a=mS(t,{readable:e,writable:r},s=>{n=!s});return{destroy:s=>{n||(n=!0,zpe.destroyer(t,s||new Kpe("pipe")))},cleanup:a}}function n0e(t){return Ype(t[t.length-1],"streams[stream.length - 1]"),t.pop()}function oA(t){if(uc(t))return t;if(xw(t))return i0e(t);throw new SP("val",["Readable","Iterable","AsyncIterable"],t)}async function*i0e(t){aA||(aA=R2()),yield*aA.prototype[Vpe].call(t)}async function Ov(t,e,r,{end:n}){let a,s=null;const o=l=>{if(l&&(a=l),s){const d=s;s=null,d()}},u=()=>new kpe((l,d)=>{a?d(a):s=()=>{a?d(a):l()}});e.on("drain",o);const c=mS(e,{readable:!1},o);try{e.writableNeedDrain&&await u();for await(const l of t)e.write(l)||await u();n&&(e.end(),await u()),r()}catch(l){r(a!==l?Gpe(a,l):l)}finally{c(),e.off("drain",o)}}async function uA(t,e,r,{end:n}){Wl(e)&&(e=e.writable);const a=e.getWriter();try{for await(const s of t)await a.ready,a.write(s).catch(()=>{});await a.ready,n&&await a.close(),r()}catch(s){try{await a.abort(s),r(s)}catch(o){r(o)}}}function a0e(...t){return vJ(t,Qpe(n0e(t)))}function vJ(t,e,r){if(t.length===1&&Upe(t[0])&&(t=t[0]),t.length<2)throw new Wpe("streams");const n=new r0e,a=n.signal,s=r==null?void 0:r.signal,o=[];Zpe(s,"options.signal");function u(){m(new Xpe)}sA=sA||ui.addAbortListener;let c;s&&(c=sA(s,u));let l,d;const f=[];let h=0;function p(v){m(v,--h===0)}function m(v,_){var w;if(v&&(!l||l.code==="ERR_STREAM_PREMATURE_CLOSE")&&(l=v),!(!l&&!_)){for(;f.length;)f.shift()(l);(w=c)===null||w===void 0||w[Hpe](),n.abort(),_&&(l||o.forEach(E=>E()),w_.nextTick(e,l,d))}}let y;for(let v=0;v0,O=w||(r==null?void 0:r.end)!==!1,L=v===t.length-1;if(lj(_)){let F=function(x){x&&x.name!=="AbortError"&&x.code!=="ERR_STREAM_PREMATURE_CLOSE"&&p(x)};if(O){const{destroy:x,cleanup:P}=dj(_,w,E);f.push(x),rA(_)&&L&&o.push(P)}_.on("error",F),rA(_)&&L&&o.push(()=>{_.removeListener("error",F)})}if(v===0)if(typeof _=="function"){if(y=_({signal:a}),!uc(y))throw new tA("Iterable, AsyncIterable or Stream","source",y)}else uc(_)||xw(_)||Wl(_)?y=_:y=cj.from(_);else if(typeof _=="function"){if(Wl(y)){var g;y=oA((g=y)===null||g===void 0?void 0:g.readable)}else y=oA(y);if(y=_(y,{signal:a}),w){if(!uc(y,!0))throw new tA("AsyncIterable",`transform[${v-1}]`,y)}else{var b;iA||(iA=bJ);const F=new iA({objectMode:!0}),x=(b=y)===null||b===void 0?void 0:b.then;if(typeof x=="function")h++,x.call(y,N=>{d=N,N!=null&&F.write(N),O&&F.end(),w_.nextTick(p)},N=>{F.destroy(N),w_.nextTick(p,N)});else if(uc(y,!0))h++,Ov(y,F,p,{end:O});else if(nA(y)||Wl(y)){const N=y.readable||y;h++,Ov(N,F,p,{end:O})}else throw new tA("AsyncIterable or Promise","destination",y);y=F;const{destroy:P,cleanup:j}=dj(y,!1,!0);f.push(P),L&&o.push(j)}}else if(lj(_)){if(xw(y)){h+=2;const F=s0e(y,_,p,{end:O});rA(_)&&L&&o.push(F)}else if(Wl(y)||nA(y)){const F=y.readable||y;h++,Ov(F,_,p,{end:O})}else if(uc(y))h++,Ov(y,_,p,{end:O});else throw new SP("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],y);y=_}else if(e0e(_)){if(xw(y))h++,uA(oA(y),_,p,{end:O});else if(nA(y)||uc(y))h++,uA(y,_,p,{end:O});else if(Wl(y))h++,uA(y.readable,_,p,{end:O});else throw new SP("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],y);y=_}else y=cj.from(_)}return(a!=null&&a.aborted||s!=null&&s.aborted)&&w_.nextTick(u),y}function s0e(t,e,r,{end:n}){let a=!1;if(e.on("close",()=>{a||r(new Jpe)}),t.pipe(e,{end:!1}),n){let s=function(){a=!0,e.end()};t0e(t)?w_.nextTick(s):t.once("end",s)}else r();return mS(t,{readable:!0,writable:!1},s=>{const o=t._readableState;s&&s.code==="ERR_STREAM_PREMATURE_CLOSE"&&o&&o.ended&&!o.errored&&!o.errorEmitted?t.once("end",r).once("error",r):r(s)}),mS(e,{readable:!1,writable:!0},r)}var LD={pipelineImpl:vJ,pipeline:a0e};const{pipeline:o0e}=LD,Rv=bo(),{destroyer:u0e}=yf,{isNodeStream:xv,isReadable:fj,isWritable:hj,isWebStream:cA,isTransformStream:Gu,isWritableStream:pj,isReadableStream:yj}=Ro,{AbortError:c0e,codes:{ERR_INVALID_ARG_VALUE:mj,ERR_MISSING_ARGS:l0e}}=Ei,d0e=Ou;var wJ=function(...e){if(e.length===0)throw new l0e("streams");if(e.length===1)return Rv.from(e[0]);const r=[...e];if(typeof e[0]=="function"&&(e[0]=Rv.from(e[0])),typeof e[e.length-1]=="function"){const p=e.length-1;e[p]=Rv.from(e[p])}for(let p=0;p0&&!(hj(e[p])||pj(e[p])||Gu(e[p])))throw new mj(`streams[${p}]`,r[p],"must be writable")}let n,a,s,o,u;function c(p){const m=o;o=null,m?m(p):p?u.destroy(p):!h&&!f&&u.destroy()}const l=e[0],d=o0e(e,c),f=!!(hj(l)||pj(l)||Gu(l)),h=!!(fj(d)||yj(d)||Gu(d));if(u=new Rv({writableObjectMode:!!(l!=null&&l.writableObjectMode),readableObjectMode:!!(d!=null&&d.readableObjectMode),writable:f,readable:h}),f){if(xv(l))u._write=function(m,y,g){l.write(m,y)?g():n=g},u._final=function(m){l.end(),a=m},l.on("drain",function(){if(n){const m=n;n=null,m()}});else if(cA(l)){const y=(Gu(l)?l.writable:l).getWriter();u._write=async function(g,b,v){try{await y.ready,y.write(g).catch(()=>{}),v()}catch(_){v(_)}},u._final=async function(g){try{await y.ready,y.close().catch(()=>{}),a=g}catch(b){g(b)}}}const p=Gu(d)?d.readable:d;d0e(p,()=>{if(a){const m=a;a=null,m()}})}if(h){if(xv(d))d.on("readable",function(){if(s){const p=s;s=null,p()}}),d.on("end",function(){u.push(null)}),u._read=function(){for(;;){const p=d.read();if(p===null){s=u._read;return}if(!u.push(p))return}};else if(cA(d)){const m=(Gu(d)?d.readable:d).getReader();u._read=async function(){for(;;)try{const{value:y,done:g}=await m.read();if(!u.push(y))return;if(g){u.push(null);return}}catch{return}}}}return u._destroy=function(p,m){!p&&o!==null&&(p=new c0e),s=null,n=null,a=null,o===null?m(p):(o=m,xv(d)&&u0e(d,p))},u};const f0e=globalThis.AbortController||qd().AbortController,{codes:{ERR_INVALID_ARG_VALUE:h0e,ERR_INVALID_ARG_TYPE:e1,ERR_MISSING_ARGS:p0e,ERR_OUT_OF_RANGE:y0e},AbortError:ps}=Ei,{validateAbortSignal:ul,validateInteger:gj,validateObject:cl}=Yb,m0e=Ur.Symbol("kWeak"),g0e=Ur.Symbol("kResistStopPropagation"),{finished:_0e}=Ou,b0e=wJ,{addAbortSignalNoValidate:v0e}=A2,{isWritable:w0e,isNodeStream:S0e}=Ro,{deprecate:T0e}=ui,{ArrayPrototypePush:E0e,Boolean:A0e,MathFloor:_j,Number:O0e,NumberIsNaN:R0e,Promise:bj,PromiseReject:vj,PromiseResolve:x0e,PromisePrototypeThen:wj,Symbol:SJ}=Ur,gS=SJ("kEmpty"),Sj=SJ("kEof");function I0e(t,e){if(e!=null&&cl(e,"options"),(e==null?void 0:e.signal)!=null&&ul(e.signal,"options.signal"),S0e(t)&&!w0e(t))throw new h0e("stream",t,"must be writable");const r=b0e(this,t);return e!=null&&e.signal&&v0e(e.signal,r),r}function x2(t,e){if(typeof t!="function")throw new e1("fn",["Function","AsyncFunction"],t);e!=null&&cl(e,"options"),(e==null?void 0:e.signal)!=null&&ul(e.signal,"options.signal");let r=1;(e==null?void 0:e.concurrency)!=null&&(r=_j(e.concurrency));let n=r-1;return(e==null?void 0:e.highWaterMark)!=null&&(n=_j(e.highWaterMark)),gj(r,"options.concurrency",1),gj(n,"options.highWaterMark",0),n+=r,(async function*(){const s=ui.AbortSignalAny([e==null?void 0:e.signal].filter(A0e)),o=this,u=[],c={signal:s};let l,d,f=!1,h=0;function p(){f=!0,m()}function m(){h-=1,y()}function y(){d&&!f&&h=n||h>=r)&&await new bj(v=>{d=v})}u.push(Sj)}catch(b){const v=vj(b);wj(v,m,p),u.push(v)}finally{f=!0,l&&(l(),l=null)}}g();try{for(;;){for(;u.length>0;){const b=await u[0];if(b===Sj)return;if(s.aborted)throw new ps;b!==gS&&(yield b),u.shift(),y()}await new bj(b=>{l=b})}}finally{f=!0,d&&(d(),d=null)}}).call(this)}function P0e(t=void 0){return t!=null&&cl(t,"options"),(t==null?void 0:t.signal)!=null&&ul(t.signal,"options.signal"),(async function*(){let r=0;for await(const a of this){var n;if(t!=null&&(n=t.signal)!==null&&n!==void 0&&n.aborted)throw new ps({cause:t.signal.reason});yield[r++,a]}}).call(this)}async function TJ(t,e=void 0){for await(const r of jD.call(this,t,e))return!0;return!1}async function N0e(t,e=void 0){if(typeof t!="function")throw new e1("fn",["Function","AsyncFunction"],t);return!await TJ.call(this,async(...r)=>!await t(...r),e)}async function D0e(t,e){for await(const r of jD.call(this,t,e))return r}async function C0e(t,e){if(typeof t!="function")throw new e1("fn",["Function","AsyncFunction"],t);async function r(n,a){return await t(n,a),gS}for await(const n of x2.call(this,r,e));}function jD(t,e){if(typeof t!="function")throw new e1("fn",["Function","AsyncFunction"],t);async function r(n,a){return await t(n,a)?n:gS}return x2.call(this,r,e)}class L0e extends p0e{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}async function j0e(t,e,r){var n;if(typeof t!="function")throw new e1("reducer",["Function","AsyncFunction"],t);r!=null&&cl(r,"options"),(r==null?void 0:r.signal)!=null&&ul(r.signal,"options.signal");let a=arguments.length>1;if(r!=null&&(n=r.signal)!==null&&n!==void 0&&n.aborted){const l=new ps(void 0,{cause:r.signal.reason});throw this.once("error",()=>{}),await _0e(this.destroy(l)),l}const s=new f0e,o=s.signal;if(r!=null&&r.signal){const l={once:!0,[m0e]:this,[g0e]:!0};r.signal.addEventListener("abort",()=>s.abort(),l)}let u=!1;try{for await(const l of this){var c;if(u=!0,r!=null&&(c=r.signal)!==null&&c!==void 0&&c.aborted)throw new ps;a?e=await t(e,l,{signal:o}):(e=l,a=!0)}if(!u&&!a)throw new L0e}finally{s.abort()}return e}async function M0e(t){t!=null&&cl(t,"options"),(t==null?void 0:t.signal)!=null&&ul(t.signal,"options.signal");const e=[];for await(const n of this){var r;if(t!=null&&(r=t.signal)!==null&&r!==void 0&&r.aborted)throw new ps(void 0,{cause:t.signal.reason});E0e(e,n)}return e}function F0e(t,e){const r=x2.call(this,t,e);return(async function*(){for await(const a of r)yield*a}).call(this)}function EJ(t){if(t=O0e(t),R0e(t))return 0;if(t<0)throw new y0e("number",">= 0",t);return t}function B0e(t,e=void 0){return e!=null&&cl(e,"options"),(e==null?void 0:e.signal)!=null&&ul(e.signal,"options.signal"),t=EJ(t),(async function*(){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new ps;for await(const s of this){var a;if(e!=null&&(a=e.signal)!==null&&a!==void 0&&a.aborted)throw new ps;t--<=0&&(yield s)}}).call(this)}function q0e(t,e=void 0){return e!=null&&cl(e,"options"),(e==null?void 0:e.signal)!=null&&ul(e.signal,"options.signal"),t=EJ(t),(async function*(){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new ps;for await(const s of this){var a;if(e!=null&&(a=e.signal)!==null&&a!==void 0&&a.aborted)throw new ps;if(t-- >0&&(yield s),t<=0)return}}).call(this)}ED.streamReturningOperators={asIndexedPairs:T0e(P0e,"readable.asIndexedPairs will be removed in a future version."),drop:B0e,filter:jD,flatMap:F0e,map:x2,take:q0e,compose:I0e};ED.promiseReturningOperators={every:N0e,forEach:C0e,reduce:j0e,toArray:M0e,some:TJ,find:D0e};var lA,Tj;function AJ(){if(Tj)return lA;Tj=1;const{ArrayPrototypePop:t,Promise:e}=Ur,{isIterable:r,isNodeStream:n,isWebStream:a}=Ro,{pipelineImpl:s}=LD,{finished:o}=Ou;OJ();function u(...c){return new e((l,d)=>{let f,h;const p=c[c.length-1];if(p&&typeof p=="object"&&!n(p)&&!r(p)&&!a(p)){const m=t(c);f=m.signal,h=m.end}s(c,(m,y)=>{m?d(m):l(y)},{signal:f,end:h})})}return lA={finished:o,pipeline:u},lA}var Ej;function OJ(){if(Ej)return zE.exports;Ej=1;const{Buffer:t}=ys,{ObjectDefineProperty:e,ObjectKeys:r,ReflectApply:n}=Ur,{promisify:{custom:a}}=ui,{streamReturningOperators:s,promiseReturningOperators:o}=ED,{codes:{ERR_ILLEGAL_CONSTRUCTOR:u}}=Ei,c=wJ,{setDefaultHighWaterMark:l,getDefaultHighWaterMark:d}=O2,{pipeline:f}=LD,{destroyer:h}=yf,p=Ou,m=AJ(),y=Ro,g=zE.exports=ID.Stream;g.isDestroyed=y.isDestroyed,g.isDisturbed=y.isDisturbed,g.isErrored=y.isErrored,g.isReadable=y.isReadable,g.isWritable=y.isWritable,g.Readable=R2();for(const v of r(s)){let w=function(...E){if(new.target)throw u();return g.Readable.from(n(_,this,E))};const _=s[v];e(w,"name",{__proto__:null,value:_.name}),e(w,"length",{__proto__:null,value:_.length}),e(g.Readable.prototype,v,{__proto__:null,value:w,enumerable:!1,configurable:!0,writable:!0})}for(const v of r(o)){let w=function(...E){if(new.target)throw u();return n(_,this,E)};const _=o[v];e(w,"name",{__proto__:null,value:_.name}),e(w,"length",{__proto__:null,value:_.length}),e(g.Readable.prototype,v,{__proto__:null,value:w,enumerable:!1,configurable:!0,writable:!0})}g.Writable=ND(),g.Duplex=bo(),g.Transform=gJ,g.PassThrough=bJ,g.pipeline=f;const{addAbortSignal:b}=A2;return g.addAbortSignal=b,g.finished=p,g.destroy=h,g.compose=c,g.setDefaultHighWaterMark=l,g.getDefaultHighWaterMark=d,e(g,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return m}}),e(f,a,{__proto__:null,enumerable:!0,get(){return m.pipeline}}),e(p,a,{__proto__:null,enumerable:!0,get(){return m.finished}}),g.Stream=g,g._isUint8Array=function(_){return _ instanceof Uint8Array},g._uint8ArrayToBuffer=function(_){return t.from(_.buffer,_.byteOffset,_.byteLength)},zE.exports}(function(t){const e=OJ(),r=AJ(),n=e.Readable.destroy;t.exports=e.Readable,t.exports._uint8ArrayToBuffer=e._uint8ArrayToBuffer,t.exports._isUint8Array=e._isUint8Array,t.exports.isDisturbed=e.isDisturbed,t.exports.isErrored=e.isErrored,t.exports.isReadable=e.isReadable,t.exports.Readable=e.Readable,t.exports.Writable=e.Writable,t.exports.Duplex=e.Duplex,t.exports.Transform=e.Transform,t.exports.PassThrough=e.PassThrough,t.exports.addAbortSignal=e.addAbortSignal,t.exports.finished=e.finished,t.exports.destroy=e.destroy,t.exports.destroy=n,t.exports.pipeline=e.pipeline,t.exports.compose=e.compose,Object.defineProperty(e,"promises",{configurable:!0,enumerable:!0,get(){return r}}),t.exports.Stream=e.Stream,t.exports.default=t.exports})(TK);var Pt=TK.exports;let RJ=class{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}};RJ.prototype.termType="BlankNode";let MD=class{equals(e){return!!e&&e.termType===this.termType}};MD.prototype.termType="DefaultGraph";MD.prototype.value="";function Aj(t,e){if(!e)return null;if(e.termType==="BlankNode")return t.blankNode(e.value);if(e.termType==="DefaultGraph")return t.defaultGraph();if(e.termType==="Literal")return t.literal(e.value,e.language||t.namedNode(e.datatype.value));if(e.termType==="NamedNode")return t.namedNode(e.value);if(e.termType==="Quad"){const r=t.fromTerm(e.subject),n=t.fromTerm(e.predicate),a=t.fromTerm(e.object),s=t.fromTerm(e.graph);return t.quad(r,n,a,s)}if(e.termType==="Variable")return t.variable(e.value);throw new Error(`unknown termType ${e.termType}`)}let TP=class{constructor(e,r,n){this.value=e,this.language=r,this.datatype=n}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value&&e.language===this.language&&e.datatype.equals(this.datatype)}};TP.prototype.termType="Literal";let I2=class{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}};I2.prototype.termType="NamedNode";let FD=class{constructor(e,r,n,a){this.subject=e,this.predicate=r,this.object=n,this.graph=a}equals(e){return!!e&&(e.termType==="Quad"||!e.termType)&&e.subject.equals(this.subject)&&e.predicate.equals(this.predicate)&&e.object.equals(this.object)&&e.graph.equals(this.graph)}};FD.prototype.termType="Quad";FD.prototype.value="";let xJ=class{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}};xJ.prototype.termType="Variable";const $0e=new I2("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"),U0e=new I2("http://www.w3.org/2001/XMLSchema#string");let IJ=class{constructor(){this.init()}init(){this._data={blankNodeCounter:0,defaultGraph:new MD}}namedNode(e){return new I2(e)}blankNode(e){return e=e||"b"+ ++this._data.blankNodeCounter,new RJ(e)}literal(e,r){return typeof r=="string"?new TP(e,r,$0e):new TP(e,"",r||U0e)}variable(e){return new xJ(e)}defaultGraph(){return this._data.defaultGraph}quad(e,r,n,a=this.defaultGraph()){return new FD(e,r,n,a)}fromTerm(e){return Aj(this,e)}fromQuad(e){return Aj(this,e)}};IJ.exports=["blankNode","defaultGraph","fromQuad","fromTerm","literal","namedNode","quad","variable"];const qr=new IJ;class dA extends Pt.Transform{constructor(e,{factory:r=qr}={}){super({objectMode:!0}),this.factory=r,this.graph=e||this.factory.defaultGraph(),this.on("pipe",n=>{n.on("error",a=>{this.emit("error",a)})})}_transform(e,r,n){const a=this.factory.quad(e.subject,e.predicate,e.object,this.graph);n(null,a)}}function k0e(){this.__data__=[],this.size=0}var V0e=k0e;function H0e(t,e){return t===e||t!==t&&e!==e}var PJ=H0e,Q0e=PJ;function z0e(t,e){for(var r=t.length;r--;)if(Q0e(t[r][0],e))return r;return-1}var P2=z0e,G0e=P2,W0e=Array.prototype,K0e=W0e.splice;function J0e(t){var e=this.__data__,r=G0e(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():K0e.call(e,r,1),--this.size,!0}var X0e=J0e,Y0e=P2;function Z0e(t){var e=this.__data__,r=Y0e(e,t);return r<0?void 0:e[r][1]}var eye=Z0e,tye=P2;function rye(t){return tye(this.__data__,t)>-1}var nye=rye,iye=P2;function aye(t,e){var r=this.__data__,n=iye(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}var sye=aye,oye=V0e,uye=X0e,cye=eye,lye=nye,dye=sye;function mf(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t-1&&t%1==0&&t<=y_e}var qJ=m_e,g_e=D2,__e=qJ,b_e=r1,v_e="[object Arguments]",w_e="[object Array]",S_e="[object Boolean]",T_e="[object Date]",E_e="[object Error]",A_e="[object Function]",O_e="[object Map]",R_e="[object Number]",x_e="[object Object]",I_e="[object RegExp]",P_e="[object Set]",N_e="[object String]",D_e="[object WeakMap]",C_e="[object ArrayBuffer]",L_e="[object DataView]",j_e="[object Float32Array]",M_e="[object Float64Array]",F_e="[object Int8Array]",B_e="[object Int16Array]",q_e="[object Int32Array]",$_e="[object Uint8Array]",U_e="[object Uint8ClampedArray]",k_e="[object Uint16Array]",V_e="[object Uint32Array]",Tr={};Tr[j_e]=Tr[M_e]=Tr[F_e]=Tr[B_e]=Tr[q_e]=Tr[$_e]=Tr[U_e]=Tr[k_e]=Tr[V_e]=!0;Tr[v_e]=Tr[w_e]=Tr[C_e]=Tr[S_e]=Tr[L_e]=Tr[T_e]=Tr[E_e]=Tr[A_e]=Tr[O_e]=Tr[R_e]=Tr[x_e]=Tr[I_e]=Tr[P_e]=Tr[N_e]=Tr[D_e]=!1;function H_e(t){return b_e(t)&&__e(t.length)&&!!Tr[g_e(t)]}var Q_e=H_e;function z_e(t){return function(e){return t(e)}}var UD=z_e,bS={exports:{}};bS.exports;(function(t,e){var r=NJ,n=e&&!e.nodeType&&e,a=n&&!0&&t&&!t.nodeType&&t,s=a&&a.exports===n,o=s&&r.process,u=function(){try{var c=a&&a.require&&a.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}}();t.exports=u})(bS,bS.exports);var kD=bS.exports,G_e=Q_e,W_e=UD,Lj=kD,jj=Lj&&Lj.isTypedArray,K_e=jj?W_e(jj):G_e,J_e=K_e,X_e=Jge,Y_e=o_e,Z_e=$D,ebe=BJ,tbe=p_e,rbe=J_e,nbe=Object.prototype,ibe=nbe.hasOwnProperty;function abe(t,e){var r=Z_e(t),n=!r&&Y_e(t),a=!r&&!n&&ebe(t),s=!r&&!n&&!a&&rbe(t),o=r||n||a||s,u=o?X_e(t.length,String):[],c=u.length;for(var l in t)(e||ibe.call(t,l))&&!(o&&(l=="length"||a&&(l=="offset"||l=="parent")||s&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||tbe(l,c)))&&u.push(l);return u}var $J=abe,sbe=Object.prototype;function obe(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||sbe;return t===r}var VD=obe;function ube(t,e){return function(r){return t(e(r))}}var UJ=ube,cbe=UJ,lbe=cbe(Object.keys,Object),dbe=lbe,fbe=VD,hbe=dbe,pbe=Object.prototype,ybe=pbe.hasOwnProperty;function mbe(t){if(!fbe(t))return hbe(t);var e=[];for(var r in Object(t))ybe.call(t,r)&&r!="constructor"&&e.push(r);return e}var gbe=mbe,_be=CJ,bbe=qJ;function vbe(t){return t!=null&&bbe(t.length)&&!_be(t)}var kJ=vbe,wbe=$J,Sbe=gbe,Tbe=kJ;function Ebe(t){return Tbe(t)?wbe(t):Sbe(t)}var HD=Ebe,Abe=j2,Obe=HD;function Rbe(t,e){return t&&Abe(e,Obe(e),t)}var xbe=Rbe;function Ibe(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}var Pbe=Ibe,Nbe=t1,Dbe=VD,Cbe=Pbe,Lbe=Object.prototype,jbe=Lbe.hasOwnProperty;function Mbe(t){if(!Nbe(t))return Cbe(t);var e=Dbe(t),r=[];for(var n in t)n=="constructor"&&(e||!jbe.call(t,n))||r.push(n);return r}var Fbe=Mbe,Bbe=$J,qbe=Fbe,$be=kJ;function Ube(t){return $be(t)?Bbe(t,!0):qbe(t)}var QD=Ube,kbe=j2,Vbe=QD;function Hbe(t,e){return t&&kbe(e,Vbe(e),t)}var Qbe=Hbe,vS={exports:{}};vS.exports;(function(t,e){var r=gs,n=e&&!e.nodeType&&e,a=n&&!0&&t&&!t.nodeType&&t,s=a&&a.exports===n,o=s?r.Buffer:void 0,u=o?o.allocUnsafe:void 0;function c(l,d){if(d)return l.slice();var f=l.length,h=u?u(f):new l.constructor(f);return l.copy(h),h}t.exports=c})(vS,vS.exports);var zbe=vS.exports;function Gbe(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++rtypeof n.clone=="function"?n.clone():n),e&&e(r),r}toStringStart(){return null}toStringChildren({multiline:e=!1,indent:r=!1}={}){const n=e?` `:" ";let a=this.children.map(s=>s.toString()).filter(Boolean).join(n);return r&&(a=a.split(` -`).map(s=>bSe(2)+s).join(` +`).map(s=>_Se(2)+s).join(` `)),a}toStringEnd(){return null}toString({multiline:e=!1}={}){const r=e?` -`:" ";return[this.toStringStart(),this.toStringChildren(),this.toStringEnd()].filter(Boolean).join(r)}};function vSe(t){return"_:"+t.value}function wSe(t,e){return[...t].map(r=>e(r)).join(` +`:" ";return[this.toStringStart(),this.toStringChildren(),this.toStringEnd()].filter(Boolean).join(r)}};function bSe(t){return"_:"+t.value}function vSe(t,e){return[...t].map(r=>e(r)).join(` `)+` -`}function SSe(){return""}function YJ(t){return"<"+t.value+">"}const TSe=/["\\\\\n\r]/,ESe=/["\\\\\n\r]/g,ASe={'"':'\\"',"\\":"\\\\","\n":"\\n","\r":"\\r"};function OSe(t){return ASe[t]}function RSe(t){return TSe.test(t)?t.replace(ESe,OSe):t}function xSe(t){const e=RSe(t.value);return t.datatype.value==="http://www.w3.org/2001/XMLSchema#string"?'"'+e+'"':t.datatype.value==="http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"?'"'+e+'"@'+t.language:'"'+e+'"^^'+YJ(t.datatype)}function ISe(t,e){const r=e(t.subject),n=e(t.predicate),a=e(t.object),s=e(t.graph);return`${r} ${n} ${a} ${s?s+" ":""}.`}function PSe(t){return"?"+t.value}function IP(t){if(!t)return null;if(t.termType==="BlankNode")return vSe(t);if(t.termType==="DefaultGraph")return SSe();if(t.termType==="Literal")return xSe(t);if(t.termType==="NamedNode")return YJ(t);if(t.termType==="Quad"||t.subject&&t.predicate&&t.object&&t.graph)return ISe(t,IP);if(t.termType==="Variable")return PSe(t);if(t[Symbol.iterator])return wSe(t,IP);throw new Error(`unknown termType ${t.termType}`)}function K_(t){return t.termType&&IP(t)||t.toString()}class KD extends wf{constructor({type:e="Patterns"}={}){super({type:e})}add(e){this.children.push(e)}addAll(e=[]){e.forEach(r=>{this.add(r)})}}class JD extends wf{constructor(e){super({type:"SubQuery"}),this.children=e?[e]:[]}toStringStart(){return this.children.length!==0&&"{"}toStringChildren(){return super.toStringChildren({indent:!0})}toStringEnd(){return this.children.length!==0&&"}"}toString(){return super.toString({multiline:!0})}}class NSe extends KD{constructor(e=[]){super({type:"GraphPattern"}),this.addAll(e)}get graph(){const e=this.children.filter(r=>r.type==="TriplePattern")[0];return e&&e.attr.graph}add(e){if(e.type==="TriplePattern"&&this.graph&&!this.graph.equals(e.attr.graph))throw new Error(`graph of new pattern ${e.attr.graph.value} doesn't match existing graph ${this.graph.value}`);super.add(e)}toStringStart(){if(!(!this.graph||this.graph.termType==="DefaultGraph"))return`GRAPH ${K_(this.graph)} { +`}function wSe(){return""}function YJ(t){return"<"+t.value+">"}const SSe=/["\\\\\n\r]/,TSe=/["\\\\\n\r]/g,ESe={'"':'\\"',"\\":"\\\\","\n":"\\n","\r":"\\r"};function ASe(t){return ESe[t]}function OSe(t){return SSe.test(t)?t.replace(TSe,ASe):t}function RSe(t){const e=OSe(t.value);return t.datatype.value==="http://www.w3.org/2001/XMLSchema#string"?'"'+e+'"':t.datatype.value==="http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"?'"'+e+'"@'+t.language:'"'+e+'"^^'+YJ(t.datatype)}function xSe(t,e){const r=e(t.subject),n=e(t.predicate),a=e(t.object),s=e(t.graph);return`${r} ${n} ${a} ${s?s+" ":""}.`}function ISe(t){return"?"+t.value}function IP(t){if(!t)return null;if(t.termType==="BlankNode")return bSe(t);if(t.termType==="DefaultGraph")return wSe();if(t.termType==="Literal")return RSe(t);if(t.termType==="NamedNode")return YJ(t);if(t.termType==="Quad"||t.subject&&t.predicate&&t.object&&t.graph)return xSe(t,IP);if(t.termType==="Variable")return ISe(t);if(t[Symbol.iterator])return vSe(t,IP);throw new Error(`unknown termType ${t.termType}`)}function K_(t){return t.termType&&IP(t)||t.toString()}class KD extends wf{constructor({type:e="Patterns"}={}){super({type:e})}add(e){this.children.push(e)}addAll(e=[]){e.forEach(r=>{this.add(r)})}}class JD extends wf{constructor(e){super({type:"SubQuery"}),this.children=e?[e]:[]}toStringStart(){return this.children.length!==0&&"{"}toStringChildren(){return super.toStringChildren({indent:!0})}toStringEnd(){return this.children.length!==0&&"}"}toString(){return super.toString({multiline:!0})}}class PSe extends KD{constructor(e=[]){super({type:"GraphPattern"}),this.addAll(e)}get graph(){const e=this.children.filter(r=>r.type==="TriplePattern")[0];return e&&e.attr.graph}add(e){if(e.type==="TriplePattern"&&this.graph&&!this.graph.equals(e.attr.graph))throw new Error(`graph of new pattern ${e.attr.graph.value} doesn't match existing graph ${this.graph.value}`);super.add(e)}toStringStart(){if(!(!this.graph||this.graph.termType==="DefaultGraph"))return`GRAPH ${K_(this.graph)} { `}toStringChildren(){if(this.graph)return this.graph.termType==="DefaultGraph"?super.toStringChildren({multiline:!0}):super.toStringChildren({multiline:!0,indent:!0})}toStringEnd(){if(!(!this.graph||this.graph.termType==="DefaultGraph"))return` -}`}}class Iv extends wf{constructor(e){super({type:"Path"}),this.attr.elements=e}toStringStart(){return this.attr.elements.map(e=>K_(e)).join("/")}}class Xj extends wf{constructor(e,r,n,a){super({type:"TriplePattern"}),this.attr.subject=Array.isArray(e)?new Iv(e):e,this.attr.predicate=Array.isArray(r)?new Iv(r):r,this.attr.object=Array.isArray(n)?new Iv(n):n,this.attr.graph=Array.isArray(a)?new Iv(a):a||qr.defaultGraph()}toStringStart(){return[K_(this.attr.subject),K_(this.attr.predicate),K_(this.attr.object),"."].join(" ")}}function DSe(t,e){if(Array.isArray(e)&&(e=new Xj(...e)),e.termType==="Quad"&&(e=new Xj(e.subject,e.predicate,e.object,e.graph)),e.type==="Select")return t.children.push(new JD(e));if(e.type==="TriplePattern"&&t){const r=t.children.slice(-1)[0];return r&&r.type==="GraphPattern"&&r.graph.equals(e.attr.graph)?r.add(e):t.children.push(new NSe([e]))}return t.children.push(e)}function ZJ(t,e){return e.forEach(r=>{DSe(t,r)}),t}class CSe extends wf{constructor(e=[],{queryPrefix:r}={}){super({type:"DeleteData"}),this.attr={queryPrefix:r},e.length===0?this.children=[""]:(this.children=[new JD(new KD)],ZJ(this._patterns,e))}get _patterns(){return this.children[0].children[0]}toStringStart(){return[this.attr.queryPrefix,"DELETE DATA"].filter(Boolean).join("")}}class LSe extends wf{constructor(e=[],{queryPrefix:r}={}){super({type:"InsertData"}),this.attr={queryPrefix:r},e.length===0?this.children=[""]:(this.children=[new JD(new KD)],ZJ(this._patterns,e))}get _patterns(){return this.children[0].children[0]}toStringStart(){return[this.attr.queryPrefix,"INSERT DATA"].filter(Boolean).join("")}}const jSe=(t,e)=>new CSe(t,e),MSe=(t,e)=>new LSe(t,e);function eX(t,e){return function(){return t.apply(e,arguments)}}const{toString:FSe}=Object.prototype,{getPrototypeOf:XD}=Object,F2=(t=>e=>{const r=FSe.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),_s=t=>(t=t.toLowerCase(),e=>F2(e)===t),B2=t=>e=>typeof e===t,{isArray:Sf}=Array,hb=B2("undefined");function BSe(t){return t!==null&&!hb(t)&&t.constructor!==null&&!hb(t.constructor)&&ua(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const tX=_s("ArrayBuffer");function qSe(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&tX(t.buffer),e}const $Se=B2("string"),ua=B2("function"),rX=B2("number"),q2=t=>t!==null&&typeof t=="object",USe=t=>t===!0||t===!1,Pw=t=>{if(F2(t)!=="object")return!1;const e=XD(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},kSe=_s("Date"),VSe=_s("File"),HSe=_s("Blob"),QSe=_s("FileList"),zSe=t=>q2(t)&&ua(t.pipe),GSe=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||ua(t.append)&&((e=F2(t))==="formdata"||e==="object"&&ua(t.toString)&&t.toString()==="[object FormData]"))},WSe=_s("URLSearchParams"),KSe=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function n1(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,a;if(typeof t!="object"&&(t=[t]),Sf(t))for(n=0,a=t.length;n0;)if(a=r[n],e===a.toLowerCase())return a;return null}const iX=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:BI,aX=t=>!hb(t)&&t!==iX;function PP(){const{caseless:t}=aX(this)&&this||{},e={},r=(n,a)=>{const s=t&&nX(e,a)||a;Pw(e[s])&&Pw(n)?e[s]=PP(e[s],n):Pw(n)?e[s]=PP({},n):Sf(n)?e[s]=n.slice():e[s]=n};for(let n=0,a=arguments.length;n(n1(e,(a,s)=>{r&&ua(a)?t[s]=eX(a,r):t[s]=a},{allOwnKeys:n}),t),XSe=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),YSe=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},ZSe=(t,e,r,n)=>{let a,s,o;const u={};if(e=e||{},t==null)return e;do{for(a=Object.getOwnPropertyNames(t),s=a.length;s-- >0;)o=a[s],(!n||n(o,t,e))&&!u[o]&&(e[o]=t[o],u[o]=!0);t=r!==!1&&XD(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},e2e=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},t2e=t=>{if(!t)return null;if(Sf(t))return t;let e=t.length;if(!rX(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},r2e=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&XD(Uint8Array)),n2e=(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let a;for(;(a=n.next())&&!a.done;){const s=a.value;e.call(t,s[0],s[1])}},i2e=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},a2e=_s("HTMLFormElement"),s2e=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,a){return n.toUpperCase()+a}),Yj=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),o2e=_s("RegExp"),sX=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};n1(r,(a,s)=>{let o;(o=e(a,s,t))!==!1&&(n[s]=o||a)}),Object.defineProperties(t,n)},u2e=t=>{sX(t,(e,r)=>{if(ua(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=t[r];if(ua(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},c2e=(t,e)=>{const r={},n=a=>{a.forEach(s=>{r[s]=!0})};return Sf(t)?n(t):n(String(t).split(e)),r},l2e=()=>{},d2e=(t,e)=>(t=+t,Number.isFinite(t)?t:e),pA="abcdefghijklmnopqrstuvwxyz",Zj="0123456789",oX={DIGIT:Zj,ALPHA:pA,ALPHA_DIGIT:pA+pA.toUpperCase()+Zj},f2e=(t=16,e=oX.ALPHA_DIGIT)=>{let r="";const{length:n}=e;for(;t--;)r+=e[Math.random()*n|0];return r};function h2e(t){return!!(t&&ua(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const p2e=t=>{const e=new Array(10),r=(n,a)=>{if(q2(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[a]=n;const s=Sf(n)?[]:{};return n1(n,(o,u)=>{const c=r(o,a+1);!hb(c)&&(s[u]=c)}),e[a]=void 0,s}}return n};return r(t,0)},y2e=_s("AsyncFunction"),m2e=t=>t&&(q2(t)||ua(t))&&ua(t.then)&&ua(t.catch),ze={isArray:Sf,isArrayBuffer:tX,isBuffer:BSe,isFormData:GSe,isArrayBufferView:qSe,isString:$Se,isNumber:rX,isBoolean:USe,isObject:q2,isPlainObject:Pw,isUndefined:hb,isDate:kSe,isFile:VSe,isBlob:HSe,isRegExp:o2e,isFunction:ua,isStream:zSe,isURLSearchParams:WSe,isTypedArray:r2e,isFileList:QSe,forEach:n1,merge:PP,extend:JSe,trim:KSe,stripBOM:XSe,inherits:YSe,toFlatObject:ZSe,kindOf:F2,kindOfTest:_s,endsWith:e2e,toArray:t2e,forEachEntry:n2e,matchAll:i2e,isHTMLForm:a2e,hasOwnProperty:Yj,hasOwnProp:Yj,reduceDescriptors:sX,freezeMethods:u2e,toObjectSet:c2e,toCamelCase:s2e,noop:l2e,toFiniteNumber:d2e,findKey:nX,global:iX,isContextDefined:aX,ALPHABET:oX,generateString:f2e,isSpecCompliantForm:h2e,toJSONObject:p2e,isAsyncFn:y2e,isThenable:m2e};function zt(t,e,r,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a)}ze.inherits(zt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ze.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const uX=zt.prototype,cX={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{cX[t]={value:t}});Object.defineProperties(zt,cX);Object.defineProperty(uX,"isAxiosError",{value:!0});zt.from=(t,e,r,n,a,s)=>{const o=Object.create(uX);return ze.toFlatObject(t,o,function(c){return c!==Error.prototype},u=>u!=="isAxiosError"),zt.call(o,t.message,e,r,n,a),o.cause=t,o.name=t.name,s&&Object.assign(o,s),o};const g2e=null;function NP(t){return ze.isPlainObject(t)||ze.isArray(t)}function lX(t){return ze.endsWith(t,"[]")?t.slice(0,-2):t}function eM(t,e,r){return t?t.concat(e).map(function(a,s){return a=lX(a),!r&&s?"["+a+"]":a}).join(r?".":""):e}function _2e(t){return ze.isArray(t)&&!t.some(NP)}const b2e=ze.toFlatObject(ze,{},null,function(e){return/^is[A-Z]/.test(e)});function $2(t,e,r){if(!ze.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=ze.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,g){return!ze.isUndefined(g[y])});const n=r.metaTokens,a=r.visitor||d,s=r.dots,o=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&ze.isSpecCompliantForm(e);if(!ze.isFunction(a))throw new TypeError("visitor must be a function");function l(m){if(m===null)return"";if(ze.isDate(m))return m.toISOString();if(!c&&ze.isBlob(m))throw new zt("Blob is not supported. Use a Buffer instead.");return ze.isArrayBuffer(m)||ze.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Zi.from(m):m}function d(m,y,g){let b=m;if(m&&!g&&typeof m=="object"){if(ze.endsWith(y,"{}"))y=n?y:y.slice(0,-2),m=JSON.stringify(m);else if(ze.isArray(m)&&_2e(m)||(ze.isFileList(m)||ze.endsWith(y,"[]"))&&(b=ze.toArray(m)))return y=lX(y),b.forEach(function(_,w){!(ze.isUndefined(_)||_===null)&&e.append(o===!0?eM([y],w,s):o===null?y:y+"[]",l(_))}),!1}return NP(m)?!0:(e.append(eM(g,y,s),l(m)),!1)}const f=[],h=Object.assign(b2e,{defaultVisitor:d,convertValue:l,isVisitable:NP});function p(m,y){if(!ze.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+y.join("."));f.push(m),ze.forEach(m,function(b,v){(!(ze.isUndefined(b)||b===null)&&a.call(e,b,ze.isString(v)?v.trim():v,y,h))===!0&&p(b,y?y.concat(v):[v])}),f.pop()}}if(!ze.isObject(t))throw new TypeError("data must be an object");return p(t),e}function tM(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function YD(t,e){this._pairs=[],t&&$2(t,this,e)}const dX=YD.prototype;dX.append=function(e,r){this._pairs.push([e,r])};dX.toString=function(e){const r=e?function(n){return e.call(this,n,tM)}:tM;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function v2e(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function fX(t,e,r){if(!e)return t;const n=r&&r.encode||v2e,a=r&&r.serialize;let s;if(a?s=a(e,r):s=ze.isURLSearchParams(e)?e.toString():new YD(e,r).toString(n),s){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class rM{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ze.forEach(this.handlers,function(n){n!==null&&e(n)})}}const hX={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},w2e=typeof URLSearchParams<"u"?URLSearchParams:YD,S2e=typeof FormData<"u"?FormData:null,T2e=typeof Blob<"u"?Blob:null,E2e={isBrowser:!0,classes:{URLSearchParams:w2e,FormData:S2e,Blob:T2e},protocols:["http","https","file","blob","url","data"]},pX=typeof window<"u"&&typeof document<"u",A2e=(t=>pX&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),O2e=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",R2e=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:pX,hasStandardBrowserEnv:A2e,hasStandardBrowserWebWorkerEnv:O2e},Symbol.toStringTag,{value:"Module"})),ss={...R2e,...E2e};function x2e(t,e){return $2(t,new ss.classes.URLSearchParams,Object.assign({visitor:function(r,n,a,s){return ss.isNode&&ze.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function I2e(t){return ze.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function P2e(t){const e={},r=Object.keys(t);let n;const a=r.length;let s;for(n=0;n=r.length;return o=!o&&ze.isArray(a)?a.length:o,c?(ze.hasOwnProp(a,o)?a[o]=[a[o],n]:a[o]=n,!u):((!a[o]||!ze.isObject(a[o]))&&(a[o]=[]),e(r,n,a[o],s)&&ze.isArray(a[o])&&(a[o]=P2e(a[o])),!u)}if(ze.isFormData(t)&&ze.isFunction(t.entries)){const r={};return ze.forEachEntry(t,(n,a)=>{e(I2e(n),a,r,0)}),r}return null}function N2e(t,e,r){if(ze.isString(t))try{return(e||JSON.parse)(t),ze.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const ZD={transitional:hX,adapter:["xhr","http"],transformRequest:[function(e,r){const n=r.getContentType()||"",a=n.indexOf("application/json")>-1,s=ze.isObject(e);if(s&&ze.isHTMLForm(e)&&(e=new FormData(e)),ze.isFormData(e))return a?JSON.stringify(yX(e)):e;if(ze.isArrayBuffer(e)||ze.isBuffer(e)||ze.isStream(e)||ze.isFile(e)||ze.isBlob(e))return e;if(ze.isArrayBufferView(e))return e.buffer;if(ze.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let u;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return x2e(e,this.formSerializer).toString();if((u=ze.isFileList(e))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return $2(u?{"files[]":e}:e,c&&new c,this.formSerializer)}}return s||a?(r.setContentType("application/json",!1),N2e(e)):e}],transformResponse:[function(e){const r=this.transitional||ZD.transitional,n=r&&r.forcedJSONParsing,a=this.responseType==="json";if(e&&ze.isString(e)&&(n&&!this.responseType||a)){const o=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(e)}catch(u){if(o)throw u.name==="SyntaxError"?zt.from(u,zt.ERR_BAD_RESPONSE,this,null,this.response):u}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ss.classes.FormData,Blob:ss.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ze.forEach(["delete","get","head","post","put","patch"],t=>{ZD.headers[t]={}});const eC=ZD,D2e=ze.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),C2e=t=>{const e={};let r,n,a;return t&&t.split(` -`).forEach(function(o){a=o.indexOf(":"),r=o.substring(0,a).trim().toLowerCase(),n=o.substring(a+1).trim(),!(!r||e[r]&&D2e[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e},nM=Symbol("internals");function Yf(t){return t&&String(t).trim().toLowerCase()}function Nw(t){return t===!1||t==null?t:ze.isArray(t)?t.map(Nw):String(t)}function L2e(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}const j2e=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function yA(t,e,r,n,a){if(ze.isFunction(n))return n.call(this,e,r);if(a&&(e=r),!!ze.isString(e)){if(ze.isString(n))return e.indexOf(n)!==-1;if(ze.isRegExp(n))return n.test(e)}}function M2e(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function F2e(t,e){const r=ze.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(a,s,o){return this[n].call(this,e,a,s,o)},configurable:!0})})}class U2{constructor(e){e&&this.set(e)}set(e,r,n){const a=this;function s(u,c,l){const d=Yf(c);if(!d)throw new Error("header name must be a non-empty string");const f=ze.findKey(a,d);(!f||a[f]===void 0||l===!0||l===void 0&&a[f]!==!1)&&(a[f||c]=Nw(u))}const o=(u,c)=>ze.forEach(u,(l,d)=>s(l,d,c));return ze.isPlainObject(e)||e instanceof this.constructor?o(e,r):ze.isString(e)&&(e=e.trim())&&!j2e(e)?o(C2e(e),r):e!=null&&s(r,e,n),this}get(e,r){if(e=Yf(e),e){const n=ze.findKey(this,e);if(n){const a=this[n];if(!r)return a;if(r===!0)return L2e(a);if(ze.isFunction(r))return r.call(this,a,n);if(ze.isRegExp(r))return r.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=Yf(e),e){const n=ze.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||yA(this,this[n],n,r)))}return!1}delete(e,r){const n=this;let a=!1;function s(o){if(o=Yf(o),o){const u=ze.findKey(n,o);u&&(!r||yA(n,n[u],u,r))&&(delete n[u],a=!0)}}return ze.isArray(e)?e.forEach(s):s(e),a}clear(e){const r=Object.keys(this);let n=r.length,a=!1;for(;n--;){const s=r[n];(!e||yA(this,this[s],s,e,!0))&&(delete this[s],a=!0)}return a}normalize(e){const r=this,n={};return ze.forEach(this,(a,s)=>{const o=ze.findKey(n,s);if(o){r[o]=Nw(a),delete r[s];return}const u=e?M2e(s):String(s).trim();u!==s&&delete r[s],r[u]=Nw(a),n[u]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return ze.forEach(this,(n,a)=>{n!=null&&n!==!1&&(r[a]=e&&ze.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const n=new this(e);return r.forEach(a=>n.set(a)),n}static accessor(e){const n=(this[nM]=this[nM]={accessors:{}}).accessors,a=this.prototype;function s(o){const u=Yf(o);n[u]||(F2e(a,o),n[u]=!0)}return ze.isArray(e)?e.forEach(s):s(e),this}}U2.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ze.reduceDescriptors(U2.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}});ze.freezeMethods(U2);const ho=U2;function mA(t,e){const r=this||eC,n=e||r,a=ho.from(n.headers);let s=n.data;return ze.forEach(t,function(u){s=u.call(r,s,a.normalize(),e?e.status:void 0)}),a.normalize(),s}function mX(t){return!!(t&&t.__CANCEL__)}function i1(t,e,r){zt.call(this,t??"canceled",zt.ERR_CANCELED,e,r),this.name="CanceledError"}ze.inherits(i1,zt,{__CANCEL__:!0});function B2e(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new zt("Request failed with status code "+r.status,[zt.ERR_BAD_REQUEST,zt.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const q2e=ss.hasStandardBrowserEnv?{write(t,e,r,n,a,s){const o=[t+"="+encodeURIComponent(e)];ze.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),ze.isString(n)&&o.push("path="+n),ze.isString(a)&&o.push("domain="+a),s===!0&&o.push("secure"),document.cookie=o.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function $2e(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function U2e(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function gX(t,e){return t&&!$2e(e)?U2e(t,e):e}const k2e=ss.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function a(s){let o=s;return e&&(r.setAttribute("href",o),o=r.href),r.setAttribute("href",o),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=a(window.location.href),function(o){const u=ze.isString(o)?a(o):o;return u.protocol===n.protocol&&u.host===n.host}}():function(){return function(){return!0}}();function V2e(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function H2e(t,e){t=t||10;const r=new Array(t),n=new Array(t);let a=0,s=0,o;return e=e!==void 0?e:1e3,function(c){const l=Date.now(),d=n[s];o||(o=l),r[a]=c,n[a]=l;let f=s,h=0;for(;f!==a;)h+=r[f++],f=f%t;if(a=(a+1)%t,a===s&&(s=(s+1)%t),l-o{const s=a.loaded,o=a.lengthComputable?a.total:void 0,u=s-r,c=n(u),l=s<=o;r=s;const d={loaded:s,total:o,progress:o?s/o:void 0,bytes:u,rate:c||void 0,estimated:c&&o&&l?(o-s)/c:void 0,event:a};d[e?"download":"upload"]=!0,t(d)}}const Q2e=typeof XMLHttpRequest<"u",z2e=Q2e&&function(t){return new Promise(function(r,n){let a=t.data;const s=ho.from(t.headers).normalize();let{responseType:o,withXSRFToken:u}=t,c;function l(){t.cancelToken&&t.cancelToken.unsubscribe(c),t.signal&&t.signal.removeEventListener("abort",c)}let d;if(ze.isFormData(a)){if(ss.hasStandardBrowserEnv||ss.hasStandardBrowserWebWorkerEnv)s.setContentType(!1);else if((d=s.getContentType())!==!1){const[y,...g]=d?d.split(";").map(b=>b.trim()).filter(Boolean):[];s.setContentType([y||"multipart/form-data",...g].join("; "))}}let f=new XMLHttpRequest;if(t.auth){const y=t.auth.username||"",g=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";s.set("Authorization","Basic "+btoa(y+":"+g))}const h=gX(t.baseURL,t.url);f.open(t.method.toUpperCase(),fX(h,t.params,t.paramsSerializer),!0),f.timeout=t.timeout;function p(){if(!f)return;const y=ho.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),b={data:!o||o==="text"||o==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:y,config:t,request:f};B2e(function(_){r(_),l()},function(_){n(_),l()},b),f=null}if("onloadend"in f?f.onloadend=p:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(p)},f.onabort=function(){f&&(n(new zt("Request aborted",zt.ECONNABORTED,t,f)),f=null)},f.onerror=function(){n(new zt("Network Error",zt.ERR_NETWORK,t,f)),f=null},f.ontimeout=function(){let g=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const b=t.transitional||hX;t.timeoutErrorMessage&&(g=t.timeoutErrorMessage),n(new zt(g,b.clarifyTimeoutError?zt.ETIMEDOUT:zt.ECONNABORTED,t,f)),f=null},ss.hasStandardBrowserEnv&&(u&&ze.isFunction(u)&&(u=u(t)),u||u!==!1&&k2e(h))){const y=t.xsrfHeaderName&&t.xsrfCookieName&&q2e.read(t.xsrfCookieName);y&&s.set(t.xsrfHeaderName,y)}a===void 0&&s.setContentType(null),"setRequestHeader"in f&&ze.forEach(s.toJSON(),function(g,b){f.setRequestHeader(b,g)}),ze.isUndefined(t.withCredentials)||(f.withCredentials=!!t.withCredentials),o&&o!=="json"&&(f.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&f.addEventListener("progress",iM(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",iM(t.onUploadProgress)),(t.cancelToken||t.signal)&&(c=y=>{f&&(n(!y||y.type?new i1(null,t,f):y),f.abort(),f=null)},t.cancelToken&&t.cancelToken.subscribe(c),t.signal&&(t.signal.aborted?c():t.signal.addEventListener("abort",c)));const m=V2e(h);if(m&&ss.protocols.indexOf(m)===-1){n(new zt("Unsupported protocol "+m+":",zt.ERR_BAD_REQUEST,t));return}f.send(a||null)})},DP={http:g2e,xhr:z2e};ze.forEach(DP,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const aM=t=>`- ${t}`,G2e=t=>ze.isFunction(t)||t===null||t===!1,_X={getAdapter:t=>{t=ze.isArray(t)?t:[t];const{length:e}=t;let r,n;const a={};for(let s=0;s`adapter ${u} `+(c===!1?"is not supported by the environment":"is not available in the build"));let o=e?s.length>1?`since : +}`}}class Iv extends wf{constructor(e){super({type:"Path"}),this.attr.elements=e}toStringStart(){return this.attr.elements.map(e=>K_(e)).join("/")}}class Xj extends wf{constructor(e,r,n,a){super({type:"TriplePattern"}),this.attr.subject=Array.isArray(e)?new Iv(e):e,this.attr.predicate=Array.isArray(r)?new Iv(r):r,this.attr.object=Array.isArray(n)?new Iv(n):n,this.attr.graph=Array.isArray(a)?new Iv(a):a||qr.defaultGraph()}toStringStart(){return[K_(this.attr.subject),K_(this.attr.predicate),K_(this.attr.object),"."].join(" ")}}function NSe(t,e){if(Array.isArray(e)&&(e=new Xj(...e)),e.termType==="Quad"&&(e=new Xj(e.subject,e.predicate,e.object,e.graph)),e.type==="Select")return t.children.push(new JD(e));if(e.type==="TriplePattern"&&t){const r=t.children.slice(-1)[0];return r&&r.type==="GraphPattern"&&r.graph.equals(e.attr.graph)?r.add(e):t.children.push(new PSe([e]))}return t.children.push(e)}function ZJ(t,e){return e.forEach(r=>{NSe(t,r)}),t}class DSe extends wf{constructor(e=[],{queryPrefix:r}={}){super({type:"DeleteData"}),this.attr={queryPrefix:r},e.length===0?this.children=[""]:(this.children=[new JD(new KD)],ZJ(this._patterns,e))}get _patterns(){return this.children[0].children[0]}toStringStart(){return[this.attr.queryPrefix,"DELETE DATA"].filter(Boolean).join("")}}class CSe extends wf{constructor(e=[],{queryPrefix:r}={}){super({type:"InsertData"}),this.attr={queryPrefix:r},e.length===0?this.children=[""]:(this.children=[new JD(new KD)],ZJ(this._patterns,e))}get _patterns(){return this.children[0].children[0]}toStringStart(){return[this.attr.queryPrefix,"INSERT DATA"].filter(Boolean).join("")}}const LSe=(t,e)=>new DSe(t,e),jSe=(t,e)=>new CSe(t,e);function eX(t,e){return function(){return t.apply(e,arguments)}}const{toString:MSe}=Object.prototype,{getPrototypeOf:XD}=Object,M2=(t=>e=>{const r=MSe.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),_s=t=>(t=t.toLowerCase(),e=>M2(e)===t),F2=t=>e=>typeof e===t,{isArray:Sf}=Array,hb=F2("undefined");function FSe(t){return t!==null&&!hb(t)&&t.constructor!==null&&!hb(t.constructor)&&ua(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const tX=_s("ArrayBuffer");function BSe(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&tX(t.buffer),e}const qSe=F2("string"),ua=F2("function"),rX=F2("number"),B2=t=>t!==null&&typeof t=="object",$Se=t=>t===!0||t===!1,Pw=t=>{if(M2(t)!=="object")return!1;const e=XD(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},USe=_s("Date"),kSe=_s("File"),VSe=_s("Blob"),HSe=_s("FileList"),QSe=t=>B2(t)&&ua(t.pipe),zSe=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||ua(t.append)&&((e=M2(t))==="formdata"||e==="object"&&ua(t.toString)&&t.toString()==="[object FormData]"))},GSe=_s("URLSearchParams"),WSe=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function n1(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,a;if(typeof t!="object"&&(t=[t]),Sf(t))for(n=0,a=t.length;n0;)if(a=r[n],e===a.toLowerCase())return a;return null}const iX=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:FI,aX=t=>!hb(t)&&t!==iX;function PP(){const{caseless:t}=aX(this)&&this||{},e={},r=(n,a)=>{const s=t&&nX(e,a)||a;Pw(e[s])&&Pw(n)?e[s]=PP(e[s],n):Pw(n)?e[s]=PP({},n):Sf(n)?e[s]=n.slice():e[s]=n};for(let n=0,a=arguments.length;n(n1(e,(a,s)=>{r&&ua(a)?t[s]=eX(a,r):t[s]=a},{allOwnKeys:n}),t),JSe=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),XSe=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},YSe=(t,e,r,n)=>{let a,s,o;const u={};if(e=e||{},t==null)return e;do{for(a=Object.getOwnPropertyNames(t),s=a.length;s-- >0;)o=a[s],(!n||n(o,t,e))&&!u[o]&&(e[o]=t[o],u[o]=!0);t=r!==!1&&XD(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},ZSe=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},e2e=t=>{if(!t)return null;if(Sf(t))return t;let e=t.length;if(!rX(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},t2e=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&XD(Uint8Array)),r2e=(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let a;for(;(a=n.next())&&!a.done;){const s=a.value;e.call(t,s[0],s[1])}},n2e=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},i2e=_s("HTMLFormElement"),a2e=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,a){return n.toUpperCase()+a}),Yj=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),s2e=_s("RegExp"),sX=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};n1(r,(a,s)=>{let o;(o=e(a,s,t))!==!1&&(n[s]=o||a)}),Object.defineProperties(t,n)},o2e=t=>{sX(t,(e,r)=>{if(ua(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=t[r];if(ua(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},u2e=(t,e)=>{const r={},n=a=>{a.forEach(s=>{r[s]=!0})};return Sf(t)?n(t):n(String(t).split(e)),r},c2e=()=>{},l2e=(t,e)=>(t=+t,Number.isFinite(t)?t:e),hA="abcdefghijklmnopqrstuvwxyz",Zj="0123456789",oX={DIGIT:Zj,ALPHA:hA,ALPHA_DIGIT:hA+hA.toUpperCase()+Zj},d2e=(t=16,e=oX.ALPHA_DIGIT)=>{let r="";const{length:n}=e;for(;t--;)r+=e[Math.random()*n|0];return r};function f2e(t){return!!(t&&ua(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const h2e=t=>{const e=new Array(10),r=(n,a)=>{if(B2(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[a]=n;const s=Sf(n)?[]:{};return n1(n,(o,u)=>{const c=r(o,a+1);!hb(c)&&(s[u]=c)}),e[a]=void 0,s}}return n};return r(t,0)},p2e=_s("AsyncFunction"),y2e=t=>t&&(B2(t)||ua(t))&&ua(t.then)&&ua(t.catch),ze={isArray:Sf,isArrayBuffer:tX,isBuffer:FSe,isFormData:zSe,isArrayBufferView:BSe,isString:qSe,isNumber:rX,isBoolean:$Se,isObject:B2,isPlainObject:Pw,isUndefined:hb,isDate:USe,isFile:kSe,isBlob:VSe,isRegExp:s2e,isFunction:ua,isStream:QSe,isURLSearchParams:GSe,isTypedArray:t2e,isFileList:HSe,forEach:n1,merge:PP,extend:KSe,trim:WSe,stripBOM:JSe,inherits:XSe,toFlatObject:YSe,kindOf:M2,kindOfTest:_s,endsWith:ZSe,toArray:e2e,forEachEntry:r2e,matchAll:n2e,isHTMLForm:i2e,hasOwnProperty:Yj,hasOwnProp:Yj,reduceDescriptors:sX,freezeMethods:o2e,toObjectSet:u2e,toCamelCase:a2e,noop:c2e,toFiniteNumber:l2e,findKey:nX,global:iX,isContextDefined:aX,ALPHABET:oX,generateString:d2e,isSpecCompliantForm:f2e,toJSONObject:h2e,isAsyncFn:p2e,isThenable:y2e};function zt(t,e,r,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a)}ze.inherits(zt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ze.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const uX=zt.prototype,cX={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{cX[t]={value:t}});Object.defineProperties(zt,cX);Object.defineProperty(uX,"isAxiosError",{value:!0});zt.from=(t,e,r,n,a,s)=>{const o=Object.create(uX);return ze.toFlatObject(t,o,function(c){return c!==Error.prototype},u=>u!=="isAxiosError"),zt.call(o,t.message,e,r,n,a),o.cause=t,o.name=t.name,s&&Object.assign(o,s),o};const m2e=null;function NP(t){return ze.isPlainObject(t)||ze.isArray(t)}function lX(t){return ze.endsWith(t,"[]")?t.slice(0,-2):t}function eM(t,e,r){return t?t.concat(e).map(function(a,s){return a=lX(a),!r&&s?"["+a+"]":a}).join(r?".":""):e}function g2e(t){return ze.isArray(t)&&!t.some(NP)}const _2e=ze.toFlatObject(ze,{},null,function(e){return/^is[A-Z]/.test(e)});function q2(t,e,r){if(!ze.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=ze.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,g){return!ze.isUndefined(g[y])});const n=r.metaTokens,a=r.visitor||d,s=r.dots,o=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&ze.isSpecCompliantForm(e);if(!ze.isFunction(a))throw new TypeError("visitor must be a function");function l(m){if(m===null)return"";if(ze.isDate(m))return m.toISOString();if(!c&&ze.isBlob(m))throw new zt("Blob is not supported. Use a Buffer instead.");return ze.isArrayBuffer(m)||ze.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Zi.from(m):m}function d(m,y,g){let b=m;if(m&&!g&&typeof m=="object"){if(ze.endsWith(y,"{}"))y=n?y:y.slice(0,-2),m=JSON.stringify(m);else if(ze.isArray(m)&&g2e(m)||(ze.isFileList(m)||ze.endsWith(y,"[]"))&&(b=ze.toArray(m)))return y=lX(y),b.forEach(function(_,w){!(ze.isUndefined(_)||_===null)&&e.append(o===!0?eM([y],w,s):o===null?y:y+"[]",l(_))}),!1}return NP(m)?!0:(e.append(eM(g,y,s),l(m)),!1)}const f=[],h=Object.assign(_2e,{defaultVisitor:d,convertValue:l,isVisitable:NP});function p(m,y){if(!ze.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+y.join("."));f.push(m),ze.forEach(m,function(b,v){(!(ze.isUndefined(b)||b===null)&&a.call(e,b,ze.isString(v)?v.trim():v,y,h))===!0&&p(b,y?y.concat(v):[v])}),f.pop()}}if(!ze.isObject(t))throw new TypeError("data must be an object");return p(t),e}function tM(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function YD(t,e){this._pairs=[],t&&q2(t,this,e)}const dX=YD.prototype;dX.append=function(e,r){this._pairs.push([e,r])};dX.toString=function(e){const r=e?function(n){return e.call(this,n,tM)}:tM;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function b2e(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function fX(t,e,r){if(!e)return t;const n=r&&r.encode||b2e,a=r&&r.serialize;let s;if(a?s=a(e,r):s=ze.isURLSearchParams(e)?e.toString():new YD(e,r).toString(n),s){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class rM{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ze.forEach(this.handlers,function(n){n!==null&&e(n)})}}const hX={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},v2e=typeof URLSearchParams<"u"?URLSearchParams:YD,w2e=typeof FormData<"u"?FormData:null,S2e=typeof Blob<"u"?Blob:null,T2e={isBrowser:!0,classes:{URLSearchParams:v2e,FormData:w2e,Blob:S2e},protocols:["http","https","file","blob","url","data"]},pX=typeof window<"u"&&typeof document<"u",E2e=(t=>pX&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),A2e=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",O2e=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:pX,hasStandardBrowserEnv:E2e,hasStandardBrowserWebWorkerEnv:A2e},Symbol.toStringTag,{value:"Module"})),ss={...O2e,...T2e};function R2e(t,e){return q2(t,new ss.classes.URLSearchParams,Object.assign({visitor:function(r,n,a,s){return ss.isNode&&ze.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function x2e(t){return ze.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function I2e(t){const e={},r=Object.keys(t);let n;const a=r.length;let s;for(n=0;n=r.length;return o=!o&&ze.isArray(a)?a.length:o,c?(ze.hasOwnProp(a,o)?a[o]=[a[o],n]:a[o]=n,!u):((!a[o]||!ze.isObject(a[o]))&&(a[o]=[]),e(r,n,a[o],s)&&ze.isArray(a[o])&&(a[o]=I2e(a[o])),!u)}if(ze.isFormData(t)&&ze.isFunction(t.entries)){const r={};return ze.forEachEntry(t,(n,a)=>{e(x2e(n),a,r,0)}),r}return null}function P2e(t,e,r){if(ze.isString(t))try{return(e||JSON.parse)(t),ze.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const ZD={transitional:hX,adapter:["xhr","http"],transformRequest:[function(e,r){const n=r.getContentType()||"",a=n.indexOf("application/json")>-1,s=ze.isObject(e);if(s&&ze.isHTMLForm(e)&&(e=new FormData(e)),ze.isFormData(e))return a?JSON.stringify(yX(e)):e;if(ze.isArrayBuffer(e)||ze.isBuffer(e)||ze.isStream(e)||ze.isFile(e)||ze.isBlob(e))return e;if(ze.isArrayBufferView(e))return e.buffer;if(ze.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let u;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return R2e(e,this.formSerializer).toString();if((u=ze.isFileList(e))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return q2(u?{"files[]":e}:e,c&&new c,this.formSerializer)}}return s||a?(r.setContentType("application/json",!1),P2e(e)):e}],transformResponse:[function(e){const r=this.transitional||ZD.transitional,n=r&&r.forcedJSONParsing,a=this.responseType==="json";if(e&&ze.isString(e)&&(n&&!this.responseType||a)){const o=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(e)}catch(u){if(o)throw u.name==="SyntaxError"?zt.from(u,zt.ERR_BAD_RESPONSE,this,null,this.response):u}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ss.classes.FormData,Blob:ss.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ze.forEach(["delete","get","head","post","put","patch"],t=>{ZD.headers[t]={}});const eC=ZD,N2e=ze.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),D2e=t=>{const e={};let r,n,a;return t&&t.split(` +`).forEach(function(o){a=o.indexOf(":"),r=o.substring(0,a).trim().toLowerCase(),n=o.substring(a+1).trim(),!(!r||e[r]&&N2e[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e},nM=Symbol("internals");function Yf(t){return t&&String(t).trim().toLowerCase()}function Nw(t){return t===!1||t==null?t:ze.isArray(t)?t.map(Nw):String(t)}function C2e(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}const L2e=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function pA(t,e,r,n,a){if(ze.isFunction(n))return n.call(this,e,r);if(a&&(e=r),!!ze.isString(e)){if(ze.isString(n))return e.indexOf(n)!==-1;if(ze.isRegExp(n))return n.test(e)}}function j2e(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function M2e(t,e){const r=ze.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(a,s,o){return this[n].call(this,e,a,s,o)},configurable:!0})})}class $2{constructor(e){e&&this.set(e)}set(e,r,n){const a=this;function s(u,c,l){const d=Yf(c);if(!d)throw new Error("header name must be a non-empty string");const f=ze.findKey(a,d);(!f||a[f]===void 0||l===!0||l===void 0&&a[f]!==!1)&&(a[f||c]=Nw(u))}const o=(u,c)=>ze.forEach(u,(l,d)=>s(l,d,c));return ze.isPlainObject(e)||e instanceof this.constructor?o(e,r):ze.isString(e)&&(e=e.trim())&&!L2e(e)?o(D2e(e),r):e!=null&&s(r,e,n),this}get(e,r){if(e=Yf(e),e){const n=ze.findKey(this,e);if(n){const a=this[n];if(!r)return a;if(r===!0)return C2e(a);if(ze.isFunction(r))return r.call(this,a,n);if(ze.isRegExp(r))return r.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=Yf(e),e){const n=ze.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||pA(this,this[n],n,r)))}return!1}delete(e,r){const n=this;let a=!1;function s(o){if(o=Yf(o),o){const u=ze.findKey(n,o);u&&(!r||pA(n,n[u],u,r))&&(delete n[u],a=!0)}}return ze.isArray(e)?e.forEach(s):s(e),a}clear(e){const r=Object.keys(this);let n=r.length,a=!1;for(;n--;){const s=r[n];(!e||pA(this,this[s],s,e,!0))&&(delete this[s],a=!0)}return a}normalize(e){const r=this,n={};return ze.forEach(this,(a,s)=>{const o=ze.findKey(n,s);if(o){r[o]=Nw(a),delete r[s];return}const u=e?j2e(s):String(s).trim();u!==s&&delete r[s],r[u]=Nw(a),n[u]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return ze.forEach(this,(n,a)=>{n!=null&&n!==!1&&(r[a]=e&&ze.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const n=new this(e);return r.forEach(a=>n.set(a)),n}static accessor(e){const n=(this[nM]=this[nM]={accessors:{}}).accessors,a=this.prototype;function s(o){const u=Yf(o);n[u]||(M2e(a,o),n[u]=!0)}return ze.isArray(e)?e.forEach(s):s(e),this}}$2.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ze.reduceDescriptors($2.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}});ze.freezeMethods($2);const ho=$2;function yA(t,e){const r=this||eC,n=e||r,a=ho.from(n.headers);let s=n.data;return ze.forEach(t,function(u){s=u.call(r,s,a.normalize(),e?e.status:void 0)}),a.normalize(),s}function mX(t){return!!(t&&t.__CANCEL__)}function i1(t,e,r){zt.call(this,t??"canceled",zt.ERR_CANCELED,e,r),this.name="CanceledError"}ze.inherits(i1,zt,{__CANCEL__:!0});function F2e(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new zt("Request failed with status code "+r.status,[zt.ERR_BAD_REQUEST,zt.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const B2e=ss.hasStandardBrowserEnv?{write(t,e,r,n,a,s){const o=[t+"="+encodeURIComponent(e)];ze.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),ze.isString(n)&&o.push("path="+n),ze.isString(a)&&o.push("domain="+a),s===!0&&o.push("secure"),document.cookie=o.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function q2e(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function $2e(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function gX(t,e){return t&&!q2e(e)?$2e(t,e):e}const U2e=ss.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function a(s){let o=s;return e&&(r.setAttribute("href",o),o=r.href),r.setAttribute("href",o),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=a(window.location.href),function(o){const u=ze.isString(o)?a(o):o;return u.protocol===n.protocol&&u.host===n.host}}():function(){return function(){return!0}}();function k2e(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function V2e(t,e){t=t||10;const r=new Array(t),n=new Array(t);let a=0,s=0,o;return e=e!==void 0?e:1e3,function(c){const l=Date.now(),d=n[s];o||(o=l),r[a]=c,n[a]=l;let f=s,h=0;for(;f!==a;)h+=r[f++],f=f%t;if(a=(a+1)%t,a===s&&(s=(s+1)%t),l-o{const s=a.loaded,o=a.lengthComputable?a.total:void 0,u=s-r,c=n(u),l=s<=o;r=s;const d={loaded:s,total:o,progress:o?s/o:void 0,bytes:u,rate:c||void 0,estimated:c&&o&&l?(o-s)/c:void 0,event:a};d[e?"download":"upload"]=!0,t(d)}}const H2e=typeof XMLHttpRequest<"u",Q2e=H2e&&function(t){return new Promise(function(r,n){let a=t.data;const s=ho.from(t.headers).normalize();let{responseType:o,withXSRFToken:u}=t,c;function l(){t.cancelToken&&t.cancelToken.unsubscribe(c),t.signal&&t.signal.removeEventListener("abort",c)}let d;if(ze.isFormData(a)){if(ss.hasStandardBrowserEnv||ss.hasStandardBrowserWebWorkerEnv)s.setContentType(!1);else if((d=s.getContentType())!==!1){const[y,...g]=d?d.split(";").map(b=>b.trim()).filter(Boolean):[];s.setContentType([y||"multipart/form-data",...g].join("; "))}}let f=new XMLHttpRequest;if(t.auth){const y=t.auth.username||"",g=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";s.set("Authorization","Basic "+btoa(y+":"+g))}const h=gX(t.baseURL,t.url);f.open(t.method.toUpperCase(),fX(h,t.params,t.paramsSerializer),!0),f.timeout=t.timeout;function p(){if(!f)return;const y=ho.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),b={data:!o||o==="text"||o==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:y,config:t,request:f};F2e(function(_){r(_),l()},function(_){n(_),l()},b),f=null}if("onloadend"in f?f.onloadend=p:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(p)},f.onabort=function(){f&&(n(new zt("Request aborted",zt.ECONNABORTED,t,f)),f=null)},f.onerror=function(){n(new zt("Network Error",zt.ERR_NETWORK,t,f)),f=null},f.ontimeout=function(){let g=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const b=t.transitional||hX;t.timeoutErrorMessage&&(g=t.timeoutErrorMessage),n(new zt(g,b.clarifyTimeoutError?zt.ETIMEDOUT:zt.ECONNABORTED,t,f)),f=null},ss.hasStandardBrowserEnv&&(u&&ze.isFunction(u)&&(u=u(t)),u||u!==!1&&U2e(h))){const y=t.xsrfHeaderName&&t.xsrfCookieName&&B2e.read(t.xsrfCookieName);y&&s.set(t.xsrfHeaderName,y)}a===void 0&&s.setContentType(null),"setRequestHeader"in f&&ze.forEach(s.toJSON(),function(g,b){f.setRequestHeader(b,g)}),ze.isUndefined(t.withCredentials)||(f.withCredentials=!!t.withCredentials),o&&o!=="json"&&(f.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&f.addEventListener("progress",iM(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",iM(t.onUploadProgress)),(t.cancelToken||t.signal)&&(c=y=>{f&&(n(!y||y.type?new i1(null,t,f):y),f.abort(),f=null)},t.cancelToken&&t.cancelToken.subscribe(c),t.signal&&(t.signal.aborted?c():t.signal.addEventListener("abort",c)));const m=k2e(h);if(m&&ss.protocols.indexOf(m)===-1){n(new zt("Unsupported protocol "+m+":",zt.ERR_BAD_REQUEST,t));return}f.send(a||null)})},DP={http:m2e,xhr:Q2e};ze.forEach(DP,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const aM=t=>`- ${t}`,z2e=t=>ze.isFunction(t)||t===null||t===!1,_X={getAdapter:t=>{t=ze.isArray(t)?t:[t];const{length:e}=t;let r,n;const a={};for(let s=0;s`adapter ${u} `+(c===!1?"is not supported by the environment":"is not available in the build"));let o=e?s.length>1?`since : `+s.map(aM).join(` -`):" "+aM(s[0]):"as no adapter specified";throw new zt("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:DP};function gA(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new i1(null,t)}function sM(t){return gA(t),t.headers=ho.from(t.headers),t.data=mA.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),_X.getAdapter(t.adapter||eC.adapter)(t).then(function(n){return gA(t),n.data=mA.call(t,t.transformResponse,n),n.headers=ho.from(n.headers),n},function(n){return mX(n)||(gA(t),n&&n.response&&(n.response.data=mA.call(t,t.transformResponse,n.response),n.response.headers=ho.from(n.response.headers))),Promise.reject(n)})}const oM=t=>t instanceof ho?{...t}:t;function kd(t,e){e=e||{};const r={};function n(l,d,f){return ze.isPlainObject(l)&&ze.isPlainObject(d)?ze.merge.call({caseless:f},l,d):ze.isPlainObject(d)?ze.merge({},d):ze.isArray(d)?d.slice():d}function a(l,d,f){if(ze.isUndefined(d)){if(!ze.isUndefined(l))return n(void 0,l,f)}else return n(l,d,f)}function s(l,d){if(!ze.isUndefined(d))return n(void 0,d)}function o(l,d){if(ze.isUndefined(d)){if(!ze.isUndefined(l))return n(void 0,l)}else return n(void 0,d)}function u(l,d,f){if(f in e)return n(l,d);if(f in t)return n(void 0,l)}const c={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:u,headers:(l,d)=>a(oM(l),oM(d),!0)};return ze.forEach(Object.keys(Object.assign({},t,e)),function(d){const f=c[d]||a,h=f(t[d],e[d],d);ze.isUndefined(h)&&f!==u||(r[d]=h)}),r}const bX="1.6.8",tC={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{tC[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const uM={};tC.transitional=function(e,r,n){function a(s,o){return"[Axios v"+bX+"] Transitional option '"+s+"'"+o+(n?". "+n:"")}return(s,o,u)=>{if(e===!1)throw new zt(a(o," has been removed"+(r?" in "+r:"")),zt.ERR_DEPRECATED);return r&&!uM[o]&&(uM[o]=!0,console.warn(a(o," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(s,o,u):!0}};function W2e(t,e,r){if(typeof t!="object")throw new zt("options must be an object",zt.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let a=n.length;for(;a-- >0;){const s=n[a],o=e[s];if(o){const u=t[s],c=u===void 0||o(u,s,t);if(c!==!0)throw new zt("option "+s+" must be "+c,zt.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new zt("Unknown option "+s,zt.ERR_BAD_OPTION)}}const CP={assertOptions:W2e,validators:tC},Mo=CP.validators;class SS{constructor(e){this.defaults=e,this.interceptors={request:new rM,response:new rM}}async request(e,r){try{return await this._request(e,r)}catch(n){if(n instanceof Error){let a;Error.captureStackTrace?Error.captureStackTrace(a={}):a=new Error;const s=a.stack?a.stack.replace(/^.+\n/,""):"";n.stack?s&&!String(n.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(n.stack+=` -`+s):n.stack=s}throw n}}_request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=kd(this.defaults,r);const{transitional:n,paramsSerializer:a,headers:s}=r;n!==void 0&&CP.assertOptions(n,{silentJSONParsing:Mo.transitional(Mo.boolean),forcedJSONParsing:Mo.transitional(Mo.boolean),clarifyTimeoutError:Mo.transitional(Mo.boolean)},!1),a!=null&&(ze.isFunction(a)?r.paramsSerializer={serialize:a}:CP.assertOptions(a,{encode:Mo.function,serialize:Mo.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=s&&ze.merge(s.common,s[r.method]);s&&ze.forEach(["delete","get","head","post","put","patch","common"],m=>{delete s[m]}),r.headers=ho.concat(o,s);const u=[];let c=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(r)===!1||(c=c&&y.synchronous,u.unshift(y.fulfilled,y.rejected))});const l=[];this.interceptors.response.forEach(function(y){l.push(y.fulfilled,y.rejected)});let d,f=0,h;if(!c){const m=[sM.bind(this),void 0];for(m.unshift.apply(m,u),m.push.apply(m,l),h=m.length,d=Promise.resolve(r);f{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](a);n._listeners=null}),this.promise.then=a=>{let s;const o=new Promise(u=>{n.subscribe(u),s=u}).then(a);return o.cancel=function(){n.unsubscribe(s)},o},e(function(s,o,u){n.reason||(n.reason=new i1(s,o,u),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}static source(){let e;return{token:new rC(function(a){e=a}),cancel:e}}}const K2e=rC;function J2e(t){return function(r){return t.apply(null,r)}}function X2e(t){return ze.isObject(t)&&t.isAxiosError===!0}const LP={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(LP).forEach(([t,e])=>{LP[e]=t});const Y2e=LP;function vX(t){const e=new Dw(t),r=eX(Dw.prototype.request,e);return ze.extend(r,Dw.prototype,e,{allOwnKeys:!0}),ze.extend(r,e,null,{allOwnKeys:!0}),r.create=function(a){return vX(kd(t,a))},r}const nn=vX(eC);nn.Axios=Dw;nn.CanceledError=i1;nn.CancelToken=K2e;nn.isCancel=mX;nn.VERSION=bX;nn.toFormData=$2;nn.AxiosError=zt;nn.Cancel=nn.CanceledError;nn.all=function(e){return Promise.all(e)};nn.spread=J2e;nn.isAxiosError=X2e;nn.mergeConfig=kd;nn.AxiosHeaders=ho;nn.formToJSON=t=>yX(ze.isHTMLForm(t)?new FormData(t):t);nn.getAdapter=_X.getAdapter;nn.HttpStatusCode=Y2e;nn.default=nn;var nC={},k2={},iC={},a1={},wX={},V2={},st={},Jc={},s1="delete",Er=5,ra=1<>>0;if(""+r!==e||r===4294967295)return NaN;e=r}return e<0?Vd(t)+e:e}function SX(){return!0}function o1(t,e,r){return(t===0&&!EX(t)||r!==void 0&&t<=-r)&&(e===void 0||r!==void 0&&e>=r)}function Tf(t,e){return TX(t,e,0)}function u1(t,e){return TX(t,e,e)}function TX(t,e,r){return t===void 0?r:EX(t)?e===1/0?e:Math.max(0,e+t)|0:e===void 0||e===t?t:Math.min(e,t)|0}function EX(t){return t<0||t===0&&1/t===-1/0}var AX="@@__IMMUTABLE_ITERABLE__@@";function Fn(t){return!!(t&&t[AX])}var OX="@@__IMMUTABLE_KEYED__@@";function yr(t){return!!(t&&t[OX])}var RX="@@__IMMUTABLE_INDEXED__@@";function An(t){return!!(t&&t[RX])}function Ef(t){return yr(t)||An(t)}var Or=function(e){return Fn(e)?e:Bn(e)},ya=function(t){function e(r){return yr(r)?r:xu(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Or),fl=function(t){function e(r){return An(r)?r:ma(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Or),Af=function(t){function e(r){return Fn(r)&&!Ef(r)?r:xf(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Or);Or.Keyed=ya;Or.Indexed=fl;Or.Set=Af;var xX="@@__IMMUTABLE_SEQ__@@";function c1(t){return!!(t&&t[xX])}var IX="@@__IMMUTABLE_RECORD__@@";function Ru(t){return!!(t&&t[IX])}function Vi(t){return Fn(t)||Ru(t)}var Of="@@__IMMUTABLE_ORDERED__@@";function Bi(t){return!!(t&&t[Of])}var l1=0,ja=1,fa=2,MP=typeof Symbol=="function"&&Symbol.iterator,PX="@@iterator",H2=MP||PX,Jt=function(e){this.next=e};Jt.prototype.toString=function(){return"[Iterator]"};Jt.KEYS=l1;Jt.VALUES=ja;Jt.ENTRIES=fa;Jt.prototype.inspect=Jt.prototype.toSource=function(){return this.toString()};Jt.prototype[H2]=function(){return this};function Rr(t,e,r,n){var a=t===0?e:t===1?r:[e,r];return n?n.value=a:n={value:a,done:!1},n}function ai(){return{value:void 0,done:!0}}function sC(t){return Array.isArray(t)?!0:!!Q2(t)}function cM(t){return t&&typeof t.next=="function"}function FP(t){var e=Q2(t);return e&&e.call(t)}function Q2(t){var e=t&&(MP&&t[MP]||t[PX]);if(typeof e=="function")return e}function Z2e(t){var e=Q2(t);return e&&e===t.entries}function eTe(t){var e=Q2(t);return e&&e===t.keys}var Rf=Object.prototype.hasOwnProperty;function oC(t){return Array.isArray(t)||typeof t=="string"?!0:t&&typeof t=="object"&&Number.isInteger(t.length)&&t.length>=0&&(t.length===0?Object.keys(t).length===1:t.hasOwnProperty(t.length-1))}var Bn=function(t){function e(r){return r==null?cC():Vi(r)?r.toSeq():rTe(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq {","}")},e.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},e.prototype.__iterate=function(n,a){var s=this._cache;if(s){for(var o=s.length,u=0;u!==o;){var c=s[a?o-++u:u++];if(n(c[1],c[0],this)===!1)break}return u}return this.__iterateUncached(n,a)},e.prototype.__iterator=function(n,a){var s=this._cache;if(s){var o=s.length,u=0;return new Jt(function(){if(u===o)return ai();var c=s[a?o-++u:u++];return Rr(n,c[0],c[1])})}return this.__iteratorUncached(n,a)},e}(Or),xu=function(t){function e(r){return r==null?cC().toKeyedSeq():Fn(r)?yr(r)?r.toSeq():r.fromEntrySeq():Ru(r)?r.toSeq():lC(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toKeyedSeq=function(){return this},e}(Bn),ma=function(t){function e(r){return r==null?cC():Fn(r)?yr(r)?r.entrySeq():r.toIndexedSeq():Ru(r)?r.toSeq().entrySeq():NX(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toIndexedSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq [","]")},e}(Bn),xf=function(t){function e(r){return(Fn(r)&&!Ef(r)?r:ma(r)).toSetSeq()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toSetSeq=function(){return this},e}(Bn);Bn.isSeq=c1;Bn.Keyed=xu;Bn.Set=xf;Bn.Indexed=ma;Bn.prototype[xX]=!0;var Xc=function(t){function e(r){this._array=r,this.size=r.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(n,a){return this.has(n)?this._array[yu(this,n)]:a},e.prototype.__iterate=function(n,a){for(var s=this._array,o=s.length,u=0;u!==o;){var c=a?o-++u:u++;if(n(s[c],c,this)===!1)break}return u},e.prototype.__iterator=function(n,a){var s=this._array,o=s.length,u=0;return new Jt(function(){if(u===o)return ai();var c=a?o-++u:u++;return Rr(n,c,s[c])})},e}(ma),uC=function(t){function e(r){var n=Object.keys(r).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(r):[]);this._object=r,this._keys=n,this.size=n.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(n,a){return a!==void 0&&!this.has(n)?a:this._object[n]},e.prototype.has=function(n){return Rf.call(this._object,n)},e.prototype.__iterate=function(n,a){for(var s=this._object,o=this._keys,u=o.length,c=0;c!==u;){var l=o[a?u-++c:c++];if(n(s[l],l,this)===!1)break}return c},e.prototype.__iterator=function(n,a){var s=this._object,o=this._keys,u=o.length,c=0;return new Jt(function(){if(c===u)return ai();var l=o[a?u-++c:c++];return Rr(n,l,s[l])})},e}(xu);uC.prototype[Of]=!0;var tTe=function(t){function e(r){this._collection=r,this.size=r.length||r.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__iterateUncached=function(n,a){if(a)return this.cacheResult().__iterate(n,a);var s=this._collection,o=FP(s),u=0;if(cM(o))for(var c;!(c=o.next()).done&&n(c.value,u++,this)!==!1;);return u},e.prototype.__iteratorUncached=function(n,a){if(a)return this.cacheResult().__iterator(n,a);var s=this._collection,o=FP(s);if(!cM(o))return new Jt(ai);var u=0;return new Jt(function(){var c=o.next();return c.done?c:Rr(n,u++,c.value)})},e}(ma),lM;function cC(){return lM||(lM=new Xc([]))}function lC(t){var e=dC(t);if(e)return e.fromEntrySeq();if(typeof t=="object")return new uC(t);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+t)}function NX(t){var e=dC(t);if(e)return e;throw new TypeError("Expected Array or collection object of values: "+t)}function rTe(t){var e=dC(t);if(e)return Z2e(t)?e.fromEntrySeq():eTe(t)?e.toSetSeq():e;if(typeof t=="object")return new uC(t);throw new TypeError("Expected Array or collection object of values, or keyed object: "+t)}function dC(t){return oC(t)?new Xc(t):sC(t)?new tTe(t):void 0}var DX="@@__IMMUTABLE_MAP__@@";function d1(t){return!!(t&&t[DX])}function z2(t){return d1(t)&&Bi(t)}function TS(t){return!!(t&&typeof t.equals=="function"&&typeof t.hashCode=="function")}function fn(t,e){if(t===e||t!==t&&e!==e)return!0;if(!t||!e)return!1;if(typeof t.valueOf=="function"&&typeof e.valueOf=="function"){if(t=t.valueOf(),e=e.valueOf(),t===e||t!==t&&e!==e)return!0;if(!t||!e)return!1}return!!(TS(t)&&TS(e)&&t.equals(e))}var Zf=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(e,r){e|=0,r|=0;var n=e&65535,a=r&65535;return n*a+((e>>>16)*a+n*(r>>>16)<<16>>>0)|0};function G2(t){return t>>>1&1073741824|t&3221225471}var nTe=Object.prototype.valueOf;function Yn(t){if(t==null)return dM(t);if(typeof t.hashCode=="function")return G2(t.hashCode(t));var e=cTe(t);if(e==null)return dM(e);switch(typeof e){case"boolean":return e?1108378657:1108378656;case"number":return iTe(e);case"string":return e.length>lTe?aTe(e):BP(e);case"object":case"function":return oTe(e);case"symbol":return sTe(e);default:if(typeof e.toString=="function")return BP(e.toString());throw new Error("Value type "+typeof e+" cannot be hashed.")}}function dM(t){return t===null?1108378658:1108378659}function iTe(t){if(t!==t||t===1/0)return 0;var e=t|0;for(e!==t&&(e^=t*4294967295);t>4294967295;)t/=4294967295,e^=t;return G2(e)}function aTe(t){var e=vA[t];return e===void 0&&(e=BP(t),bA===dTe&&(bA=0,vA={}),bA++,vA[t]=e),e}function BP(t){for(var e=0,r=0;r0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}function cTe(t){return t.valueOf!==nTe&&typeof t.valueOf=="function"?t.valueOf(t):t}function CX(){var t=++_A;return _A&1073741824&&(_A=0),t}var qP=typeof WeakMap=="function",$P;qP&&($P=new WeakMap);var pM=Object.create(null),_A=0,vc="__immutablehash__";typeof Symbol=="function"&&(vc=Symbol(vc));var lTe=16,dTe=255,bA=0,vA={},W2=function(t){function e(r,n){this._iter=r,this._useKeys=n,this.size=r.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(n,a){return this._iter.get(n,a)},e.prototype.has=function(n){return this._iter.has(n)},e.prototype.valueSeq=function(){return this._iter.valueSeq()},e.prototype.reverse=function(){var n=this,a=fC(this,!0);return this._useKeys||(a.valueSeq=function(){return n._iter.toSeq().reverse()}),a},e.prototype.map=function(n,a){var s=this,o=BX(this,n,a);return this._useKeys||(o.valueSeq=function(){return s._iter.toSeq().map(n,a)}),o},e.prototype.__iterate=function(n,a){var s=this;return this._iter.__iterate(function(o,u){return n(o,u,s)},a)},e.prototype.__iterator=function(n,a){return this._iter.__iterator(n,a)},e}(xu);W2.prototype[Of]=!0;var LX=function(t){function e(r){this._iter=r,this.size=r.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.includes=function(n){return this._iter.includes(n)},e.prototype.__iterate=function(n,a){var s=this,o=0;return a&&Vd(this),this._iter.__iterate(function(u){return n(u,a?s.size-++o:o++,s)},a)},e.prototype.__iterator=function(n,a){var s=this,o=this._iter.__iterator(ja,a),u=0;return a&&Vd(this),new Jt(function(){var c=o.next();return c.done?c:Rr(n,a?s.size-++u:u++,c.value,c)})},e}(ma),jX=function(t){function e(r){this._iter=r,this.size=r.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.has=function(n){return this._iter.includes(n)},e.prototype.__iterate=function(n,a){var s=this;return this._iter.__iterate(function(o){return n(o,o,s)},a)},e.prototype.__iterator=function(n,a){var s=this._iter.__iterator(ja,a);return new Jt(function(){var o=s.next();return o.done?o:Rr(n,o.value,o.value,o)})},e}(xf),MX=function(t){function e(r){this._iter=r,this.size=r.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.entrySeq=function(){return this._iter.toSeq()},e.prototype.__iterate=function(n,a){var s=this;return this._iter.__iterate(function(o){if(o){mM(o);var u=Fn(o);return n(u?o.get(1):o[1],u?o.get(0):o[0],s)}},a)},e.prototype.__iterator=function(n,a){var s=this._iter.__iterator(ja,a);return new Jt(function(){for(;;){var o=s.next();if(o.done)return o;var u=o.value;if(u){mM(u);var c=Fn(u);return Rr(n,c?u.get(0):u[0],c?u.get(1):u[1],o)}}})},e}(xu);LX.prototype.cacheResult=W2.prototype.cacheResult=jX.prototype.cacheResult=MX.prototype.cacheResult=yC;function FX(t){var e=bs(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var r=t.reverse.apply(this);return r.flip=function(){return t.reverse()},r},e.has=function(r){return t.includes(r)},e.includes=function(r){return t.has(r)},e.cacheResult=yC,e.__iterateUncached=function(r,n){var a=this;return t.__iterate(function(s,o){return r(o,s,a)!==!1},n)},e.__iteratorUncached=function(r,n){if(r===fa){var a=t.__iterator(r,n);return new Jt(function(){var s=a.next();if(!s.done){var o=s.value[0];s.value[0]=s.value[1],s.value[1]=o}return s})}return t.__iterator(r===ja?l1:ja,n)},e}function BX(t,e,r){var n=bs(t);return n.size=t.size,n.has=function(a){return t.has(a)},n.get=function(a,s){var o=t.get(a,Ht);return o===Ht?s:e.call(r,o,a,t)},n.__iterateUncached=function(a,s){var o=this;return t.__iterate(function(u,c,l){return a(e.call(r,u,c,l),c,o)!==!1},s)},n.__iteratorUncached=function(a,s){var o=t.__iterator(fa,s);return new Jt(function(){var u=o.next();if(u.done)return u;var c=u.value,l=c[0];return Rr(a,l,e.call(r,c[1],l,t),u)})},n}function fC(t,e){var r=this,n=bs(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var a=FX(t);return a.reverse=function(){return t.flip()},a}),n.get=function(a,s){return t.get(e?a:-1-a,s)},n.has=function(a){return t.has(e?a:-1-a)},n.includes=function(a){return t.includes(a)},n.cacheResult=yC,n.__iterate=function(a,s){var o=this,u=0;return s&&Vd(t),t.__iterate(function(c,l){return a(c,e?l:s?o.size-++u:u++,o)},!s)},n.__iterator=function(a,s){var o=0;s&&Vd(t);var u=t.__iterator(fa,!s);return new Jt(function(){var c=u.next();if(c.done)return c;var l=c.value;return Rr(a,e?l[0]:s?r.size-++o:o++,l[1],c)})},n}function qX(t,e,r,n){var a=bs(t);return n&&(a.has=function(s){var o=t.get(s,Ht);return o!==Ht&&!!e.call(r,o,s,t)},a.get=function(s,o){var u=t.get(s,Ht);return u!==Ht&&e.call(r,u,s,t)?u:o}),a.__iterateUncached=function(s,o){var u=this,c=0;return t.__iterate(function(l,d,f){if(e.call(r,l,d,f))return c++,s(l,n?d:c-1,u)},o),c},a.__iteratorUncached=function(s,o){var u=t.__iterator(fa,o),c=0;return new Jt(function(){for(;;){var l=u.next();if(l.done)return l;var d=l.value,f=d[0],h=d[1];if(e.call(r,h,f,t))return Rr(s,n?f:c++,h,l)}})},a}function fTe(t,e,r){var n=Pu().asMutable();return t.__iterate(function(a,s){n.update(e.call(r,a,s,t),0,function(o){return o+1})}),n.asImmutable()}function hTe(t,e,r){var n=yr(t),a=(Bi(t)?Ma():Pu()).asMutable();t.__iterate(function(o,u){a.update(e.call(r,o,u,t),function(c){return c=c||[],c.push(n?[u,o]:o),c})});var s=pC(t);return a.map(function(o){return pr(t,s(o))}).asImmutable()}function pTe(t,e,r){var n=yr(t),a=[[],[]];t.__iterate(function(o,u){a[e.call(r,o,u,t)?1:0].push(n?[u,o]:o)});var s=pC(t);return a.map(function(o){return pr(t,s(o))})}function hC(t,e,r,n){var a=t.size;if(o1(e,r,a))return t;var s=Tf(e,a),o=u1(r,a);if(s!==s||o!==o)return hC(t.toSeq().cacheResult(),e,r,n);var u=o-s,c;u===u&&(c=u<0?0:u);var l=bs(t);return l.size=c===0?c:t.size&&c||void 0,!n&&c1(t)&&c>=0&&(l.get=function(d,f){return d=yu(this,d),d>=0&&dc)return ai();var y=h.next();return n||d===ja||y.done?y:d===l1?Rr(d,m-1,void 0,y):Rr(d,m-1,y.value[1],y)})},l}function yTe(t,e,r){var n=bs(t);return n.__iterateUncached=function(a,s){var o=this;if(s)return this.cacheResult().__iterate(a,s);var u=0;return t.__iterate(function(c,l,d){return e.call(r,c,l,d)&&++u&&a(c,l,o)}),u},n.__iteratorUncached=function(a,s){var o=this;if(s)return this.cacheResult().__iterator(a,s);var u=t.__iterator(fa,s),c=!0;return new Jt(function(){if(!c)return ai();var l=u.next();if(l.done)return l;var d=l.value,f=d[0],h=d[1];return e.call(r,h,f,o)?a===fa?l:Rr(a,f,h,l):(c=!1,ai())})},n}function $X(t,e,r,n){var a=bs(t);return a.__iterateUncached=function(s,o){var u=this;if(o)return this.cacheResult().__iterate(s,o);var c=!0,l=0;return t.__iterate(function(d,f,h){if(!(c&&(c=e.call(r,d,f,h))))return l++,s(d,n?f:l-1,u)}),l},a.__iteratorUncached=function(s,o){var u=this;if(o)return this.cacheResult().__iterator(s,o);var c=t.__iterator(fa,o),l=!0,d=0;return new Jt(function(){var f,h,p;do{if(f=c.next(),f.done)return n||s===ja?f:s===l1?Rr(s,d++,void 0,f):Rr(s,d++,f.value[1],f);var m=f.value;h=m[0],p=m[1],l&&(l=e.call(r,p,h,u))}while(l);return s===fa?f:Rr(s,h,p,f)})},a}function mTe(t,e){var r=yr(t),n=[t].concat(e).map(function(o){return Fn(o)?r&&(o=ya(o)):o=r?lC(o):NX(Array.isArray(o)?o:[o]),o}).filter(function(o){return o.size!==0});if(n.length===0)return t;if(n.length===1){var a=n[0];if(a===t||r&&yr(a)||An(t)&&An(a))return a}var s=new Xc(n);return r?s=s.toKeyedSeq():An(t)||(s=s.toSetSeq()),s=s.flatten(!0),s.size=n.reduce(function(o,u){if(o!==void 0){var c=u.size;if(c!==void 0)return o+c}},0),s}function UX(t,e,r){var n=bs(t);return n.__iterateUncached=function(a,s){if(s)return this.cacheResult().__iterate(a,s);var o=0,u=!1;function c(l,d){l.__iterate(function(f,h){return(!e||d0}function Nv(t,e,r,n){var a=bs(t),s=new Xc(r).map(function(o){return o.size});return a.size=n?s.max():s.min(),a.__iterate=function(o,u){for(var c=this.__iterator(ja,u),l,d=0;!(l=c.next()).done&&o(l.value,d++,this)!==!1;);return d},a.__iteratorUncached=function(o,u){var c=r.map(function(f){return f=Or(f),FP(u?f.reverse():f)}),l=0,d=!1;return new Jt(function(){var f;return d||(f=c.map(function(h){return h.next()}),d=n?f.every(function(h){return h.done}):f.some(function(h){return h.done})),d?ai():Rr(o,l++,e.apply(null,f.map(function(h){return h.value})))})},a}function pr(t,e){return t===e?t:c1(t)?e:t.constructor(e)}function mM(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function pC(t){return yr(t)?ya:An(t)?fl:Af}function bs(t){return Object.create((yr(t)?xu:An(t)?ma:xf).prototype)}function yC(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Bn.prototype.cacheResult.call(this)}function kX(t,e){return t===void 0&&e===void 0?0:t===void 0?1:e===void 0?-1:t>e?1:t0;)e[r]=arguments[r+1];if(typeof t!="function")throw new TypeError("Invalid merger function: "+t);return GX(this,e,t)}function GX(t,e,r){for(var n=[],a=0;a0;)e[r]=arguments[r+1];return h1(t,e)}function KX(t,e){for(var r=[],n=arguments.length-2;n-- >0;)r[n]=arguments[n+2];return h1(e,r,t)}function JX(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return f1(t,e)}function XX(t,e){for(var r=[],n=arguments.length-2;n-- >0;)r[n]=arguments[n+2];return f1(e,r,t)}function f1(t,e,r){return h1(t,e,vTe(r))}function h1(t,e,r){if(!mu(t))throw new TypeError("Cannot merge into non-data-structure value: "+t);if(Vi(t))return typeof r=="function"&&t.mergeWith?t.mergeWith.apply(t,[r].concat(e)):t.merge?t.merge.apply(t,e):t.concat.apply(t,e);for(var n=Array.isArray(t),a=t,s=n?fl:ya,o=n?function(c){a===t&&(a=ES(a)),a.push(c)}:function(c,l){var d=Rf.call(a,l),f=d&&r?r(a[l],c,l):c;(!d||f!==a[l])&&(a===t&&(a=ES(a)),a[l]=f)},u=0;u0;)e[r]=arguments[r+1];return f1(this,e,t)}function OC(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return Iu(this,t,Ca(),function(n){return h1(n,e)})}function RC(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return Iu(this,t,Ca(),function(n){return f1(n,e)})}function p1(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this}function y1(){return this.__ownerID?this:this.__ensureOwner(new aC)}function m1(){return this.__ensureOwner()}function xC(){return this.__altered}var Pu=function(t){function e(r){return r==null?Ca():d1(r)&&!Bi(r)?r:Ca().withMutations(function(n){var a=t(r);Li(a.size),a.forEach(function(s,o){return n.set(o,s)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return Ca().withMutations(function(s){for(var o=0;o=n.length)throw new Error("Missing value for key: "+n[o]);s.set(n[o],n[o+1])}})},e.prototype.toString=function(){return this.__toString("Map {","}")},e.prototype.get=function(n,a){return this._root?this._root.get(0,void 0,n,a):a},e.prototype.set=function(n,a){return bM(this,n,a)},e.prototype.remove=function(n){return bM(this,n,Ht)},e.prototype.deleteAll=function(n){var a=Or(n);return a.size===0?this:this.withMutations(function(s){a.forEach(function(o){return s.remove(o)})})},e.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Ca()},e.prototype.sort=function(n){return Ma(Hd(this,n))},e.prototype.sortBy=function(n,a){return Ma(Hd(this,a,n))},e.prototype.map=function(n,a){var s=this;return this.withMutations(function(o){o.forEach(function(u,c){o.set(c,n.call(a,u,c,s))})})},e.prototype.__iterator=function(n,a){return new STe(this,n,a)},e.prototype.__iterate=function(n,a){var s=this,o=0;return this._root&&this._root.iterate(function(u){return o++,n(u[1],u[0],s)},a),o},e.prototype.__ensureOwner=function(n){return n===this.__ownerID?this:n?IC(this.size,this._root,n,this.__hash):this.size===0?Ca():(this.__ownerID=n,this.__altered=!1,this)},e}(ya);Pu.isMap=d1;var Pr=Pu.prototype;Pr[DX]=!0;Pr[s1]=Pr.remove;Pr.removeAll=Pr.deleteAll;Pr.setIn=wC;Pr.removeIn=Pr.deleteIn=TC;Pr.update=EC;Pr.updateIn=AC;Pr.merge=Pr.concat=QX;Pr.mergeWith=zX;Pr.mergeDeep=YX;Pr.mergeDeepWith=ZX;Pr.mergeIn=OC;Pr.mergeDeepIn=RC;Pr.withMutations=p1;Pr.wasAltered=xC;Pr.asImmutable=m1;Pr["@@transducer/init"]=Pr.asMutable=y1;Pr["@@transducer/step"]=function(t,e){return t.set(e[0],e[1])};Pr["@@transducer/result"]=function(t){return t.asImmutable()};var yb=function(e,r){this.ownerID=e,this.entries=r};yb.prototype.get=function(e,r,n,a){for(var s=this.entries,o=0,u=s.length;o=xTe)return TTe(e,l,a,s);var p=e&&e===this.ownerID,m=p?l:as(l);return h?c?d===f-1?m.pop():m[d]=m.pop():m[d]=[a,s]:m.push([a,s]),p?(this.entries=m,this):new yb(e,m)}};var Qd=function(e,r,n){this.ownerID=e,this.bitmap=r,this.nodes=n};Qd.prototype.get=function(e,r,n,a){r===void 0&&(r=Yn(n));var s=1<<((e===0?r:r>>>e)&ei),o=this.bitmap;return o&s?this.nodes[eY(o&s-1)].get(e+Er,r,n,a):a};Qd.prototype.update=function(e,r,n,a,s,o,u){n===void 0&&(n=Yn(a));var c=(r===0?n:n>>>r)&ei,l=1<=ITe)return ATe(e,p,d,c,y);if(f&&!y&&p.length===2&&vM(p[h^1]))return p[h^1];if(f&&y&&p.length===1&&vM(y))return y;var g=e&&e===this.ownerID,b=f?y?d:d^l:d|l,v=f?y?tY(p,h,y,g):RTe(p,h,g):OTe(p,h,y,g);return g?(this.bitmap=b,this.nodes=v,this):new Qd(e,b,v)};var mb=function(e,r,n){this.ownerID=e,this.count=r,this.nodes=n};mb.prototype.get=function(e,r,n,a){r===void 0&&(r=Yn(n));var s=(e===0?r:r>>>e)&ei,o=this.nodes[s];return o?o.get(e+Er,r,n,a):a};mb.prototype.update=function(e,r,n,a,s,o,u){n===void 0&&(n=Yn(a));var c=(r===0?n:n>>>r)&ei,l=s===Ht,d=this.nodes,f=d[c];if(l&&!f)return this;var h=PC(f,e,r+Er,n,a,s,o,u);if(h===f)return this;var p=this.count;if(!f)p++;else if(!h&&(p--,p>>r)&ei,o=(r===0?n:n>>>r)&ei,u,c=s===o?[NC(t,e,r+Er,n,a)]:(u=new wo(e,n,a),s>>=1)o[u]=r&1?e[s++]:void 0;return o[n]=a,new mb(t,s+1,o)}function eY(t){return t-=t>>1&1431655765,t=(t&858993459)+(t>>2&858993459),t=t+(t>>4)&252645135,t+=t>>8,t+=t>>16,t&127}function tY(t,e,r,n){var a=n?t:as(t);return a[e]=r,a}function OTe(t,e,r,n){var a=t.length+1;if(n&&e+1===a)return t[e]=r,t;for(var s=new Array(a),o=0,u=0;u0&&s=0&&n>>r&ei;if(a>=this.array.length)return new ou([],e);var s=a===0,o;if(r>0){var u=this.array[a];if(o=u&&u.removeBefore(e,r-Er,n),o===u&&s)return this}if(s&&!o)return this;var c=Gd(this,e);if(!s)for(var l=0;l>>r&ei;if(a>=this.array.length)return this;var s;if(r>0){var o=this.array[a];if(s=o&&o.removeAfter(e,r-Er,n),s===o&&a===this.array.length-1)return this}var u=Gd(this,e);return u.array.splice(a+1),s&&(u.array[a]=s),u};var J_={};function wM(t,e){var r=t._origin,n=t._capacity,a=_b(n),s=t._tail;return o(t._root,t._level,0);function o(l,d,f){return d===0?u(l,f):c(l,d,f)}function u(l,d){var f=d===a?s&&s.array:l&&l.array,h=d>r?0:r-d,p=n-d;return p>ra&&(p=ra),function(){if(h===p)return J_;var m=e?--p:h++;return f&&f[m]}}function c(l,d,f){var h,p=l&&l.array,m=f>r?0:r-f>>d,y=(n-f>>d)+1;return y>ra&&(y=ra),function(){for(;;){if(h){var g=h();if(g!==J_)return g;h=null}if(m===y)return J_;var b=e?--y:m++;h=o(p&&p[b],d-Er,f+(b<=t.size||e<0)return t.withMutations(function(o){e<0?Xo(o,e).set(0,r):Xo(o,0,e+1).set(e,r)});e+=t._origin;var n=t._tail,a=t._root,s=jP();return e>=_b(t._capacity)?n=UP(n,t.__ownerID,0,e,r,s):a=UP(a,t.__ownerID,t._level,e,r,s),s.value?t.__ownerID?(t._root=a,t._tail=n,t.__hash=void 0,t.__altered=!0,t):gb(t._origin,t._capacity,t._level,a,n):t}function UP(t,e,r,n,a,s){var o=n>>>r&ei,u=t&&o0){var l=t&&t.array[o],d=UP(l,e,r-Er,n,a,s);return d===l?t:(c=Gd(t,e),c.array[o]=d,c)}return u&&t.array[o]===a?t:(s&&na(s),c=Gd(t,e),a===void 0&&o===c.array.length-1?c.array.pop():c.array[o]=a,c)}function Gd(t,e){return e&&t&&e===t.ownerID?t:new ou(t?t.array.slice():[],e)}function nY(t,e){if(e>=_b(t._capacity))return t._tail;if(e<1<0;)r=r.array[e>>>n&ei],n-=Er;return r}}function Xo(t,e,r){e!==void 0&&(e|=0),r!==void 0&&(r|=0);var n=t.__ownerID||new aC,a=t._origin,s=t._capacity,o=a+e,u=r===void 0?s:r<0?s+r:a+r;if(o===a&&u===s)return t;if(o>=u)return t.clear();for(var c=t._level,l=t._root,d=0;o+d<0;)l=new ou(l&&l.array.length?[void 0,l]:[],n),c+=Er,d+=1<=1<f?new ou([],n):p;if(p&&h>f&&oEr;g-=Er){var b=f>>>g&ei;y=y.array[b]=Gd(y.array[b],n)}y.array[f>>>Er&ei]=p}if(u=h)o-=h,u-=h,c=Er,l=null,m=m&&m.removeBefore(n,0,o);else if(o>a||h>>c&ei;if(v!==h>>>c&ei)break;v&&(d+=(1<a&&(l=l.removeBefore(n,c,o-d)),l&&h>>Er<=ra&&a.size>=n.size*2?(c=a.filter(function(l,d){return l!==void 0&&s!==d}),u=c.toKeyedSeq().map(function(l){return l[0]}).flip().toMap(),t.__ownerID&&(u.__ownerID=c.__ownerID=t.__ownerID)):(u=n.remove(e),c=s===a.size-1?a.pop():a.set(s,void 0))}else if(o){if(r===a.get(s)[1])return t;u=n,c=a.set(s,[e,r])}else u=n.set(e,a.size),c=a.set(a.size,[e,r]);return t.__ownerID?(t.size=u.size,t._map=u,t._list=c,t.__hash=void 0,t.__altered=!0,t):DC(u,c)}var iY="@@__IMMUTABLE_STACK__@@";function bb(t){return!!(t&&t[iY])}var g1=function(t){function e(r){return r==null?Dv():bb(r)?r:Dv().pushAll(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("Stack [","]")},e.prototype.get=function(n,a){var s=this._head;for(n=yu(this,n);s&&n--;)s=s.next;return s?s.value:a},e.prototype.peek=function(){return this._head&&this._head.value},e.prototype.push=function(){var n=arguments;if(arguments.length===0)return this;for(var a=this.size+arguments.length,s=this._head,o=arguments.length-1;o>=0;o--)s={value:n[o],next:s};return this.__ownerID?(this.size=a,this._head=s,this.__hash=void 0,this.__altered=!0,this):T_(a,s)},e.prototype.pushAll=function(n){if(n=t(n),n.size===0)return this;if(this.size===0&&bb(n))return n;Li(n.size);var a=this.size,s=this._head;return n.__iterate(function(o){a++,s={value:o,next:s}},!0),this.__ownerID?(this.size=a,this._head=s,this.__hash=void 0,this.__altered=!0,this):T_(a,s)},e.prototype.pop=function(){return this.slice(1)},e.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Dv()},e.prototype.slice=function(n,a){if(o1(n,a,this.size))return this;var s=Tf(n,this.size),o=u1(a,this.size);if(o!==this.size)return t.prototype.slice.call(this,n,a);for(var u=this.size-s,c=this._head;s--;)c=c.next;return this.__ownerID?(this.size=u,this._head=c,this.__hash=void 0,this.__altered=!0,this):T_(u,c)},e.prototype.__ensureOwner=function(n){return n===this.__ownerID?this:n?T_(this.size,this._head,n,this.__hash):this.size===0?Dv():(this.__ownerID=n,this.__altered=!1,this)},e.prototype.__iterate=function(n,a){var s=this;if(a)return new Xc(this.toArray()).__iterate(function(c,l){return n(c,l,s)},a);for(var o=0,u=this._head;u&&n(u.value,o++,this)!==!1;)u=u.next;return o},e.prototype.__iterator=function(n,a){if(a)return new Xc(this.toArray()).__iterator(n,a);var s=0,o=this._head;return new Jt(function(){if(o){var u=o.value;return o=o.next,Rr(n,s++,u)}return ai()})},e}(fl);g1.isStack=bb;var si=g1.prototype;si[iY]=!0;si.shift=si.pop;si.unshift=si.push;si.unshiftAll=si.pushAll;si.withMutations=p1;si.wasAltered=xC;si.asImmutable=m1;si["@@transducer/init"]=si.asMutable=y1;si["@@transducer/step"]=function(t,e){return t.unshift(e)};si["@@transducer/result"]=function(t){return t.asImmutable()};function T_(t,e,r,n){var a=Object.create(si);return a.size=t,a._head=e,a.__ownerID=r,a.__hash=n,a.__altered=!1,a}var AM;function Dv(){return AM||(AM=T_(0))}var aY="@@__IMMUTABLE_SET__@@";function _1(t){return!!(t&&t[aY])}function Z2(t){return _1(t)&&Bi(t)}function CC(t,e){if(t===e)return!0;if(!Fn(e)||t.size!==void 0&&e.size!==void 0&&t.size!==e.size||t.__hash!==void 0&&e.__hash!==void 0&&t.__hash!==e.__hash||yr(t)!==yr(e)||An(t)!==An(e)||Bi(t)!==Bi(e))return!1;if(t.size===0&&e.size===0)return!0;var r=!Ef(t);if(Bi(t)){var n=t.entries();return e.every(function(c,l){var d=n.next().value;return d&&fn(d[1],c)&&(r||fn(d[0],l))})&&n.next().done}var a=!1;if(t.size===void 0)if(e.size===void 0)typeof t.cacheResult=="function"&&t.cacheResult();else{a=!0;var s=t;t=e,e=s}var o=!0,u=e.__iterate(function(c,l){if(r?!t.has(c):a?!fn(c,t.get(l,Ht)):!fn(t.get(l,Ht),c))return o=!1,!1});return o&&t.size===u}function hl(t,e){var r=function(n){t.prototype[n]=e[n]};return Object.keys(e).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(r),t}function AS(t){if(!t||typeof t!="object")return t;if(!Fn(t)){if(!mu(t))return t;t=Bn(t)}if(yr(t)){var e={};return t.__iterate(function(n,a){e[a]=AS(n)}),e}var r=[];return t.__iterate(function(n){r.push(AS(n))}),r}var Pf=function(t){function e(r){return r==null?E_():_1(r)&&!Bi(r)?r:E_().withMutations(function(n){var a=t(r);Li(a.size),a.forEach(function(s){return n.add(s)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.fromKeys=function(n){return this(ya(n).keySeq())},e.intersect=function(n){return n=Or(n).toArray(),n.length?On.intersect.apply(e(n.pop()),n):E_()},e.union=function(n){return n=Or(n).toArray(),n.length?On.union.apply(e(n.pop()),n):E_()},e.prototype.toString=function(){return this.__toString("Set {","}")},e.prototype.has=function(n){return this._map.has(n)},e.prototype.add=function(n){return Cv(this,this._map.set(n,n))},e.prototype.remove=function(n){return Cv(this,this._map.remove(n))},e.prototype.clear=function(){return Cv(this,this._map.clear())},e.prototype.map=function(n,a){var s=this,o=!1,u=Cv(this,this._map.mapEntries(function(c){var l=c[1],d=n.call(a,l,l,s);return d!==l&&(o=!0),[d,d]},a));return o?u:this},e.prototype.union=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return n=n.filter(function(s){return s.size!==0}),n.length===0?this:this.size===0&&!this.__ownerID&&n.length===1?this.constructor(n[0]):this.withMutations(function(s){for(var o=0;o=0&&a=0&&sthis.size?r:this.find(function(n,a){return a===e},void 0,r)},has:function(e){return e=yu(this,e),e>=0&&(this.size!==void 0?this.size===1/0||ee?-1:0}function jTe(t){if(t.size===1/0)return 0;var e=Bi(t),r=yr(t),n=e?1:0,a=t.__iterate(r?e?function(s,o){n=31*n+NM(Yn(s),Yn(o))|0}:function(s,o){n=n+NM(Yn(s),Yn(o))|0}:e?function(s){n=31*n+Yn(s)|0}:function(s){n=n+Yn(s)|0});return MTe(a,n)}function MTe(t,e){return e=Zf(e,3432918353),e=Zf(e<<15|e>>>-15,461845907),e=Zf(e<<13|e>>>-13,5),e=(e+3864292196|0)^t,e=Zf(e^e>>>16,2246822507),e=Zf(e^e>>>13,3266489909),e=G2(e^e>>>16),e}function NM(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}var Yc=function(t){function e(r){return r==null?kP():Z2(r)?r:kP().withMutations(function(n){var a=Af(r);Li(a.size),a.forEach(function(s){return n.add(s)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.fromKeys=function(n){return this(ya(n).keySeq())},e.prototype.toString=function(){return this.__toString("OrderedSet {","}")},e}(Pf);Yc.isOrderedSet=Z2;var pl=Yc.prototype;pl[Of]=!0;pl.zip=Nf.zip;pl.zipWith=Nf.zipWith;pl.zipAll=Nf.zipAll;pl.__empty=kP;pl.__make=cY;function cY(t,e){var r=Object.create(pl);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}var DM;function kP(){return DM||(DM=cY(S_()))}var lY={LeftThenRight:-1,RightThenLeft:1};function FTe(t){if(Ru(t))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(Vi(t))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(t===null||typeof t!="object")throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}var sn=function(e,r){var n;FTe(e);var a=function(u){var c=this;if(u instanceof a)return u;if(!(this instanceof a))return new a(u);if(!n){n=!0;var l=Object.keys(e),d=s._indices={};s._name=r,s._keys=l,s._defaultValues=e;for(var f=0;f2?[]:void 0,{"":t})}function hY(t,e,r,n,a,s){if(typeof r!="string"&&!Vi(r)&&(oC(r)||sC(r)||K2(r))){if(~t.indexOf(r))throw new TypeError("Cannot convert circular structure to Immutable");t.push(r),a&&n!==""&&a.push(n);var o=e.call(s,n,Bn(r).map(function(u,c){return hY(t,e,u,c,a,r)}),a&&a.slice());return t.pop(),a&&a.pop(),o}return r}function qTe(t,e){return An(e)?e.toList():yr(e)?e.toMap():e.toSet()}var pY="4.3.6",$Te={version:pY,Collection:Or,Iterable:Or,Seq:Bn,Map:Pu,OrderedMap:Ma,List:If,Stack:g1,Set:Pf,OrderedSet:Yc,PairSorting:lY,Record:sn,Range:LC,Repeat:dY,is:fn,fromJS:fY,hash:Yn,isImmutable:Vi,isCollection:Fn,isKeyed:yr,isIndexed:An,isAssociative:Ef,isOrdered:Bi,isValueObject:TS,isPlainObject:K2,isSeq:c1,isList:Y2,isMap:d1,isOrderedMap:z2,isStack:bb,isSet:_1,isOrderedSet:Z2,isRecord:Ru,get:J2,getIn:eT,has:gC,hasIn:jC,merge:WX,mergeDeep:JX,mergeWith:KX,mergeDeepWith:XX,remove:_C,removeIn:SC,set:bC,setIn:vC,update:X2,updateIn:Iu},UTe=Or;const kTe=Object.freeze(Object.defineProperty({__proto__:null,Collection:Or,Iterable:UTe,List:If,Map:Pu,OrderedMap:Ma,OrderedSet:Yc,PairSorting:lY,Range:LC,Record:sn,Repeat:dY,Seq:Bn,Set:Pf,Stack:g1,default:$Te,fromJS:fY,get:J2,getIn:eT,has:gC,hasIn:jC,hash:Yn,is:fn,isAssociative:Ef,isCollection:Fn,isImmutable:Vi,isIndexed:An,isKeyed:yr,isList:Y2,isMap:d1,isOrdered:Bi,isOrderedMap:z2,isOrderedSet:Z2,isPlainObject:K2,isRecord:Ru,isSeq:c1,isSet:_1,isStack:bb,isValueObject:TS,merge:WX,mergeDeep:JX,mergeDeepWith:XX,mergeWith:KX,remove:_C,removeIn:SC,set:bC,setIn:vC,update:X2,updateIn:Iu,version:pY},Symbol.toStringTag,{value:"Module"})),BC=vD(kTe);Object.defineProperty(Jc,"__esModule",{value:!0});Jc.ActionContextKey=Jc.ActionContext=void 0;const CM=BC;class ad{constructor(e={}){this.map=(0,CM.Map)(e)}setDefault(e,r){return this.has(e)?this:this.set(e,r)}set(e,r){return this.setRaw(e.name,r)}setRaw(e,r){return new ad(this.map.set(e,r))}delete(e){return new ad(this.map.delete(e.name))}get(e){return this.getRaw(e.name)}getRaw(e){return this.map.get(e)}getSafe(e){if(!this.has(e))throw new Error(`Context entry ${e.name} is required but not available`);return this.get(e)}has(e){return this.hasRaw(e.name)}hasRaw(e){return this.map.has(e)}merge(...e){let r=this;for(const n of e)for(const a of n.keys())r=r.set(a,n.get(a));return r}keys(){return[...this.map.keys()].map(e=>new yY(e))}toJS(){return this.map.toJS()}toString(){return`ActionContext(${JSON.stringify(this.map.toJS())})`}[Symbol.for("nodejs.util.inspect.custom")](){return`ActionContext(${JSON.stringify(this.map.toJS(),null," ")})`}static ensureActionContext(e){return e instanceof ad?e:new ad((0,CM.Map)(e??{}))}}Jc.ActionContext=ad;class yY{constructor(e){this.name=e}}Jc.ActionContextKey=yY;var v1={};Object.defineProperty(v1,"__esModule",{value:!0});v1.Bus=void 0;class VTe{constructor(e){this.actors=[],this.observers=[],this.dependencyLinks=new Map,Object.assign(this,e)}subscribe(e){this.actors.push(e),this.reorderForDependencies()}subscribeObserver(e){this.observers.push(e)}unsubscribe(e){const r=this.actors.indexOf(e);return r>=0?(this.actors.splice(r,1),!0):!1}unsubscribeObserver(e){const r=this.observers.indexOf(e);return r>=0?(this.observers.splice(r,1),!0):!1}publish(e){return this.actors.map(r=>({actor:r,reply:r.test(e)}))}onRun(e,r,n){for(const a of this.observers)a.onRun(e,r,n)}addDependencies(e,r){for(const n of r){let a=this.dependencyLinks.get(n);a||(a=[],this.dependencyLinks.set(n,a)),a.push(e)}this.reorderForDependencies()}reorderForDependencies(){if(this.dependencyLinks.size>0){const e=[];for(const r of this.dependencyLinks.keys()){const n=this.actors.indexOf(r);n>=0&&(this.actors.splice(n,1),e.push(r))}for(;e.length>0;){let r=-1;for(let a=0;a=0&&n.splice(a,1),n.length===0&&delete this.actorsIndex[r]}return super.unsubscribe(e)}publish(e){const r=this.getActionIdentifier(e);return r?[...this.actorsIndex[r]||[],...this.actorsIndex._undefined_||[]].map(a=>({actor:a,reply:a.test(e)})):super.publish(e)}getActorIdentifier(e){return this.actorIdentifierFields.reduce((r,n)=>r[n],e)}getActionIdentifier(e){return this.actionIdentifierFields.reduce((r,n)=>r[n],e)}}tT.BusIndexed=QTe;var w1={};Object.defineProperty(w1,"__esModule",{value:!0});w1.CONTEXT_KEY_LOGGER=void 0;const zTe=Jc;w1.CONTEXT_KEY_LOGGER=new zTe.ActionContextKey("@comunica/core:log");var rT={};Object.defineProperty(rT,"__esModule",{value:!0});rT.ActionObserver=void 0;class GTe{constructor(e){Object.assign(this,e)}}rT.ActionObserver=GTe;var nT={};Object.defineProperty(nT,"__esModule",{value:!0});nT.Actor=void 0;const WTe=w1;class Yo{constructor(e){this.beforeActors=[],Object.assign(this,e),this.bus.subscribe(this),this.beforeActors.length>0&&this.bus.addDependencies(this,this.beforeActors)}static getContextLogger(e){return e.get(WTe.CONTEXT_KEY_LOGGER)}runObservable(e){const r=this.run(e);return this.bus.onRun(this,e,r),r}async initialize(){return!0}async deinitialize(){return!0}getDefaultLogData(e,r){const n=r?r():{};return n.actor=this.name,n}logTrace(e,r,n){const a=Yo.getContextLogger(e);a&&a.trace(r,this.getDefaultLogData(e,n))}logDebug(e,r,n){const a=Yo.getContextLogger(e);a&&a.debug(r,this.getDefaultLogData(e,n))}logInfo(e,r,n){const a=Yo.getContextLogger(e);a&&a.info(r,this.getDefaultLogData(e,n))}logWarn(e,r,n){const a=Yo.getContextLogger(e);a&&a.warn(r,this.getDefaultLogData(e,n))}logError(e,r,n){const a=Yo.getContextLogger(e);a&&a.error(r,this.getDefaultLogData(e,n))}logFatal(e,r,n){const a=Yo.getContextLogger(e);a&&a.fatal(r,this.getDefaultLogData(e,n))}}nT.Actor=Yo;var iT={};Object.defineProperty(iT,"__esModule",{value:!0});iT.Mediator=void 0;class KTe{constructor(e){Object.assign(this,e)}publish(e){const r=this.bus.publish(e);if(r.length===0)throw new Error(`No actors are able to reply to a message in the bus ${this.bus.name}`);return r}async mediateActor(e){return await this.mediateWith(e,this.publish(e))}async mediate(e){return(await this.mediateActor(e)).runObservable(e)}}iT.Mediator=KTe;(function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Jc,t),r(v1,t),r(tT,t),r(w1,t),r(rT,t),r(nT,t),r(iT,t)})(st);Object.defineProperty(V2,"__esModule",{value:!0});V2.ActorInit=void 0;const JTe=st;class XTe extends JTe.Actor{constructor(e){super(e)}}V2.ActorInit=XTe;(function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(V2,t)})(wX);Object.defineProperty(a1,"__esModule",{value:!0});a1.ActorInitQueryBase=void 0;const YTe=wX;class ZTe extends YTe.ActorInit{async test(e){return!0}async run(e){throw new Error("ActorInitSparql#run is not supported in the browser.")}}a1.ActorInitQueryBase=ZTe;var aT={};Object.defineProperty(aT,"__esModule",{value:!0});aT.ActorInitQuery=void 0;const eEe=a1;typeof co>"u"&&(globalThis.process=Oo);class tEe extends eEe.ActorInitQueryBase{}aT.ActorInitQuery=tEe;var sT={},qt={},dr={};Object.defineProperty(dr,"__esModule",{value:!0});dr.KeysRdfJoin=dr.KeysMergeBindingsContext=dr.KeysRdfUpdateQuads=dr.KeysQuerySourceIdentify=dr.KeysRdfParseHtmlScript=dr.KeysRdfParseJsonLd=dr.KeysQueryOperation=dr.KeysInitQuery=dr.KeysHttpProxy=dr.KeysHttpMemento=dr.KeysHttpWayback=dr.KeysHttp=dr.KeysCore=void 0;const St=st;dr.KeysCore={log:St.CONTEXT_KEY_LOGGER};dr.KeysHttp={includeCredentials:new St.ActionContextKey("@comunica/bus-http:include-credentials"),auth:new St.ActionContextKey("@comunica/bus-http:auth"),fetch:new St.ActionContextKey("@comunica/bus-http:fetch"),httpTimeout:new St.ActionContextKey("@comunica/bus-http:http-timeout"),httpBodyTimeout:new St.ActionContextKey("@comunica/bus-http:http-body-timeout"),httpRetryCount:new St.ActionContextKey("@comunica/bus-http:http-retry-count"),httpRetryDelay:new St.ActionContextKey("@comunica/bus-http:http-retry-delay"),httpRetryOnServerError:new St.ActionContextKey("@comunica/bus-http:http-retry-on-server-error")};dr.KeysHttpWayback={recoverBrokenLinks:new St.ActionContextKey("@comunica/bus-http:recover-broken-links")};dr.KeysHttpMemento={datetime:new St.ActionContextKey("@comunica/actor-http-memento:datetime")};dr.KeysHttpProxy={httpProxyHandler:new St.ActionContextKey("@comunica/actor-http-proxy:httpProxyHandler")};dr.KeysInitQuery={querySourcesUnidentified:new St.ActionContextKey("@comunica/actor-init-query:querySourcesUnidentified"),initialBindings:new St.ActionContextKey("@comunica/actor-init-query:initialBindings"),queryFormat:new St.ActionContextKey("@comunica/actor-init-query:queryFormat"),graphqlSingularizeVariables:new St.ActionContextKey("@comunica/actor-init-query:singularizeVariables"),lenient:new St.ActionContextKey("@comunica/actor-init-query:lenient"),queryString:new St.ActionContextKey("@comunica/actor-init-query:queryString"),query:new St.ActionContextKey("@comunica/actor-init-query:query"),baseIRI:new St.ActionContextKey("@comunica/actor-init-query:baseIRI"),functionArgumentsCache:new St.ActionContextKey("@comunica/actor-init-query:functionArgumentsCache"),queryTimestamp:new St.ActionContextKey("@comunica/actor-init-query:queryTimestamp"),extensionFunctionCreator:new St.ActionContextKey("@comunica/actor-init-query:extensionFunctionCreator"),extensionFunctions:new St.ActionContextKey("@comunica/actor-init-query:extensionFunctions"),cliArgsHandlers:new St.ActionContextKey("@comunica/actor-init-query:cliArgsHandlers"),explain:new St.ActionContextKey("@comunica/actor-init-query:explain"),physicalQueryPlanLogger:new St.ActionContextKey("@comunica/actor-init-query:physicalQueryPlanLogger"),physicalQueryPlanNode:new St.ActionContextKey("@comunica/actor-init-query:physicalQueryPlanNode"),jsonLdContext:new St.ActionContextKey("@context"),noCache:new St.ActionContextKey("@comunica/actor-init-query:noCache")};dr.KeysQueryOperation={operation:new St.ActionContextKey("@comunica/bus-query-operation:operation"),joinLeftMetadata:new St.ActionContextKey("@comunica/bus-query-operation:joinLeftMetadata"),joinRightMetadatas:new St.ActionContextKey("@comunica/bus-query-operation:joinRightMetadatas"),joinBindings:new St.ActionContextKey("@comunica/bus-query-operation:joinBindings"),readOnly:new St.ActionContextKey("@comunica/bus-query-operation:readOnly"),isPathArbitraryLengthDistinctKey:new St.ActionContextKey("@comunica/bus-query-operation:isPathArbitraryLengthDistinct"),limitIndicator:new St.ActionContextKey("@comunica/bus-query-operation:limitIndicator"),unionDefaultGraph:new St.ActionContextKey("@comunica/bus-query-operation:unionDefaultGraph"),querySources:new St.ActionContextKey("@comunica/bus-query-operation:querySources")};dr.KeysRdfParseJsonLd={documentLoader:new St.ActionContextKey("@comunica/actor-rdf-parse-jsonld:documentLoader"),strictValues:new St.ActionContextKey("@comunica/actor-rdf-parse-jsonld:strictValues"),parserOptions:new St.ActionContextKey("@comunica/actor-rdf-parse-jsonld:parserOptions")};dr.KeysRdfParseHtmlScript={processingHtmlScript:new St.ActionContextKey("@comunica/actor-rdf-parse-html-script:processingHtmlScript"),extractAllScripts:new St.ActionContextKey("extractAllScripts")};dr.KeysQuerySourceIdentify={sourceIds:new St.ActionContextKey("@comunica/bus-query-source-identify:sourceIds"),hypermediaSourcesAggregatedStores:new St.ActionContextKey("@comunica/bus-query-source-identify:hypermediaSourcesAggregatedStores"),traverse:new St.ActionContextKey("@comunica/bus-query-source-identify:traverse")};dr.KeysRdfUpdateQuads={destination:new St.ActionContextKey("@comunica/bus-rdf-update-quads:destination")};dr.KeysMergeBindingsContext={sourcesBinding:new St.ActionContextKey("@comunica/bus-merge-bindings-context:sourcesBinding")};dr.KeysRdfJoin={lastPhysicalJoin:new St.ActionContextKey("@comunica/bus-rdf-join:lastPhysicalJoin")};(function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(dr,t)})(qt);Object.defineProperty(sT,"__esModule",{value:!0});sT.QueryEngineBase=void 0;const rEe=qt,eh=st;class OS{constructor(e){this.actorInitQuery=e}async queryBindings(e,r){return this.queryOfType(e,r,"bindings")}async queryQuads(e,r){return this.queryOfType(e,r,"quads")}async queryBoolean(e,r){return this.queryOfType(e,r,"boolean")}async queryVoid(e,r){return this.queryOfType(e,r,"void")}async queryOfType(e,r,n){const a=await this.query(e,r);if(a.resultType===n)return await a.execute();throw new Error(`Query result type '${n}' was expected, while '${a.resultType}' was found.`)}async query(e,r){const n=await this.queryOrExplain(e,r);if("explain"in n)throw new Error("Tried to explain a query when in query-only mode");return n}async explain(e,r,n){return r.explain=n,await this.queryOrExplain(e,r)}async queryOrExplain(e,r){const n=eh.ActionContext.ensureActionContext(r);n.get(rEe.KeysInitQuery.noCache)&&await this.invalidateHttpCache();const{result:a}=await this.actorInitQuery.mediatorQueryProcess.mediate({query:e,context:n});return"explain"in a?a:OS.internalToFinalResult(a)}async getResultMediaTypes(e){return e=eh.ActionContext.ensureActionContext(e),(await this.actorInitQuery.mediatorQueryResultSerializeMediaTypeCombiner.mediate({context:e,mediaTypes:!0})).mediaTypes}async getResultMediaTypeFormats(e){return e=eh.ActionContext.ensureActionContext(e),(await this.actorInitQuery.mediatorQueryResultSerializeMediaTypeFormatCombiner.mediate({context:e,mediaTypeFormats:!0})).mediaTypeFormats}async resultToString(e,r,n){if(n=eh.ActionContext.ensureActionContext(n),!r)switch(e.resultType){case"bindings":r="application/json";break;case"quads":r="application/trig";break;default:r="simple";break}const a={...await OS.finalToInternalResult(e),context:n};return(await this.actorInitQuery.mediatorQueryResultSerialize.mediate({context:n,handle:a,handleMediaType:r})).handle}invalidateHttpCache(e,r){return r=eh.ActionContext.ensureActionContext(r),this.actorInitQuery.mediatorHttpInvalidate.mediate({url:e,context:r})}static internalToFinalResult(e){switch(e.type){case"bindings":return{resultType:"bindings",execute:async()=>e.bindingsStream,metadata:async()=>await e.metadata(),context:e.context};case"quads":return{resultType:"quads",execute:async()=>e.quadStream,metadata:async()=>await e.metadata(),context:e.context};case"boolean":return{resultType:"boolean",execute:async()=>e.execute(),context:e.context};case"void":return{resultType:"void",execute:async()=>e.execute(),context:e.context}}}static async finalToInternalResult(e){switch(e.resultType){case"bindings":return{type:"bindings",bindingsStream:await e.execute(),metadata:async()=>await e.metadata()};case"quads":return{type:"quads",quadStream:await e.execute(),metadata:async()=>await e.metadata()};case"boolean":return{type:"boolean",execute:()=>e.execute()};case"void":return{type:"void",execute:()=>e.execute()}}}}sT.QueryEngineBase=OS;(function(t){var e=I&&I.__createBinding||(Object.create?function(a,s,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(s,o);(!c||("get"in c?!s.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return s[o]}}),Object.defineProperty(a,u,c)}:function(a,s,o,u){u===void 0&&(u=o),a[u]=s[o]}),r=I&&I.__exportStar||function(a,s){for(var o in a)o!=="default"&&!Object.prototype.hasOwnProperty.call(s,o)&&e(s,a,o)};Object.defineProperty(t,"__esModule",{value:!0}),t.QueryEngineBase=void 0,r(a1,t),r(aT,t);var n=sT;Object.defineProperty(t,"QueryEngineBase",{enumerable:!0,get:function(){return n.QueryEngineBase}})})(iC);var AA={},th={},OA={},RA={},LM;function nEe(){return LM||(LM=1,Object.defineProperty(RA,"__esModule",{value:!0})),RA}var xA={},jM;function iEe(){return jM||(jM=1,Object.defineProperty(xA,"__esModule",{value:!0})),xA}var IA={},MM;function aEe(){return MM||(MM=1,Object.defineProperty(IA,"__esModule",{value:!0})),IA}var PA={},FM;function sEe(){return FM||(FM=1,Object.defineProperty(PA,"__esModule",{value:!0})),PA}var NA={},BM;function oEe(){return BM||(BM=1,Object.defineProperty(NA,"__esModule",{value:!0})),NA}var DA={},qM;function uEe(){return qM||(qM=1,Object.defineProperty(DA,"__esModule",{value:!0})),DA}var CA={},$M;function cEe(){return $M||($M=1,Object.defineProperty(CA,"__esModule",{value:!0})),CA}var LA={},UM;function lEe(){return UM||(UM=1,Object.defineProperty(LA,"__esModule",{value:!0})),LA}var jA={},kM;function dEe(){return kM||(kM=1,Object.defineProperty(jA,"__esModule",{value:!0})),jA}var MA={},VM;function fEe(){return VM||(VM=1,Object.defineProperty(MA,"__esModule",{value:!0})),MA}var FA={},HM;function hEe(){return HM||(HM=1,Object.defineProperty(FA,"__esModule",{value:!0})),FA}var BA={},QM;function pEe(){return QM||(QM=1,Object.defineProperty(BA,"__esModule",{value:!0})),BA}var qA={},zM;function yEe(){return zM||(zM=1,Object.defineProperty(qA,"__esModule",{value:!0})),qA}var rh={},GM;function mEe(){if(GM)return rh;GM=1,Object.defineProperty(rh,"__esModule",{value:!0}),rh.Logger=void 0;let t=class mY{static getLevelOrdinal(r){return mY.LEVELS[r]}};return rh.Logger=t,t.LEVELS={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},rh}var WM;function gEe(){return WM||(WM=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(nEe(),t),r(iEe(),t),r(aEe(),t),r(sEe(),t),r(oEe(),t),r(uEe(),t),r(cEe(),t),r(lEe(),t),r(dEe(),t),r(fEe(),t),r(hEe(),t),r(pEe(),t),r(yEe(),t),r(mEe(),t)}(OA)),OA}var KM;function _Ee(){if(KM)return th;KM=1,Object.defineProperty(th,"__esModule",{value:!0}),th.LoggerVoid=void 0;const t=gEe();let e=class extends t.Logger{debug(){}error(){}fatal(){}info(){}trace(){}warn(){}};return th.LoggerVoid=e,th}var JM;function bEe(){return JM||(JM=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(_Ee(),t)}(AA)),AA}var $A={},nh={},UA={},ih={},XM;function vEe(){if(XM)return ih;XM=1,Object.defineProperty(ih,"__esModule",{value:!0}),ih.BlankNodeScoped=void 0;let t=class{constructor(r,n){this.termType="BlankNode",this.value=r,this.skolemized=n}equals(r){return!!r&&r.termType==="BlankNode"&&r.value===this.value}};return ih.BlankNodeScoped=t,ih}var ah={},YM;function wEe(){if(YM)return ah;YM=1,Object.defineProperty(ah,"__esModule",{value:!0}),ah.BlankNodeBindingsScoped=void 0;let t=class{constructor(r){this.termType="BlankNode",this.singleBindingsScope=!0,this.value=r}equals(r){return!!r&&r.termType==="BlankNode"&&r.value===this.value}};return ah.BlankNodeBindingsScoped=t,ah}var ZM;function qC(){return ZM||(ZM=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(vEe(),t),r(wEe(),t)}(UA)),UA}var Wu={},nr={},jn={};Object.defineProperty(jn,"__esModule",{value:!0});jn.stringQuadToQuad=jn.quadToStringQuad=jn.stringToTerm=jn.getLiteralLanguage=jn.getLiteralType=jn.getLiteralValue=jn.termToString=void 0;const SEe=Ot,gY=new SEe.DataFactory;function ao(t){if(t)switch(t.termType){case"NamedNode":return t.value;case"BlankNode":return"_:"+t.value;case"Literal":const e=t;return'"'+e.value+'"'+(e.datatype&&e.datatype.value!=="http://www.w3.org/2001/XMLSchema#string"&&e.datatype.value!=="http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"?"^^"+e.datatype.value:"")+(e.language?"@"+e.language:"");case"Quad":return`<<${ao(t.subject)} ${ao(t.predicate)} ${ao(t.object)}${t.graph.termType==="DefaultGraph"?"":" "+ao(t.graph)}>>`;case"Variable":return"?"+t.value;case"DefaultGraph":return t.value}}jn.termToString=ao;function _Y(t){const e=/^"([^]*)"/.exec(t);if(!e)throw new Error(t+" is not a literal");return e[1]}jn.getLiteralValue=_Y;function bY(t){const e=/^"[^]*"(?:\^\^([^"]+)|(@)[^@"]+)?$/.exec(t);if(!e)throw new Error(t+" is not a literal");return e[1]||(e[2]?"http://www.w3.org/1999/02/22-rdf-syntax-ns#langString":"http://www.w3.org/2001/XMLSchema#string")}jn.getLiteralType=bY;function vY(t){const e=/^"[^]*"(?:@([^@"]+)|\^\^[^"]+)?$/.exec(t);if(!e)throw new Error(t+" is not a literal");return e[1]?e[1].toLowerCase():""}jn.getLiteralLanguage=vY;function so(t,e){if(e=e||gY,!t||!t.length)return e.defaultGraph();switch(t[0]){case"_":return e.blankNode(t.substr(2));case"?":if(!e.variable)throw new Error("Missing 'variable()' method on the given DataFactory");return e.variable(t.substr(1));case'"':const r=vY(t),n=e.namedNode(bY(t));return e.literal(_Y(t),r||n);case"<":default:if(t[0]==="<"&&t.length>4&&t[1]==="<"&&t[t.length-1]===">"&&t[t.length-2]===">"){const a=t.slice(2,-2).trim();let s=[],o=0,u=0,c=!1;for(let l=0;l"){if(o===0)throw new Error("Found closing tag without opening tag in "+t);o--}if(d==='"'){let f=!1,h=l;for(;h-- >0&&a[h]==="\\";)f=!f;f||(c=!c)}if(d===" "&&!c&&o===0){for(s.push(a.slice(u,l));a[l+1]===" ";)l+=1;u=l+1}}if(o!==0)throw new Error("Found opening tag without closing tag in "+t);if(s.push(a.slice(u,a.length)),s.length!==3&&s.length!==4)throw new Error("Nested quad syntax error "+t);return s=s.map(l=>l.startsWith("<")&&!l.includes(" ")?l.slice(1,-1):l),e.quad(so(s[0]),so(s[1]),so(s[2]),s[3]?so(s[3]):void 0)}return e.namedNode(t)}}jn.stringToTerm=so;function TEe(t){return{subject:ao(t.subject),predicate:ao(t.predicate),object:ao(t.object),graph:ao(t.graph)}}jn.quadToStringQuad=TEe;function EEe(t,e){return e=e||gY,e.quad(so(t.subject,e),so(t.predicate,e),so(t.object,e),so(t.graph,e))}jn.stringQuadToQuad=EEe;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.termToString=t.stringToTerm=t.stringQuadToQuad=t.quadToStringQuad=t.getLiteralValue=t.getLiteralType=t.getLiteralLanguage=void 0;const e=jn;Object.defineProperty(t,"getLiteralLanguage",{enumerable:!0,get:function(){return e.getLiteralLanguage}}),Object.defineProperty(t,"getLiteralType",{enumerable:!0,get:function(){return e.getLiteralType}}),Object.defineProperty(t,"getLiteralValue",{enumerable:!0,get:function(){return e.getLiteralValue}}),Object.defineProperty(t,"quadToStringQuad",{enumerable:!0,get:function(){return e.quadToStringQuad}}),Object.defineProperty(t,"stringQuadToQuad",{enumerable:!0,get:function(){return e.stringQuadToQuad}}),Object.defineProperty(t,"stringToTerm",{enumerable:!0,get:function(){return e.stringToTerm}}),Object.defineProperty(t,"termToString",{enumerable:!0,get:function(){return e.termToString}})})(nr);var kA={},mt={},e8;function wY(){if(e8)return mt;e8=1,Object.defineProperty(mt,"__esModule",{value:!0}),mt.matchPatternMappings=mt.matchPatternComplete=mt.matchPattern=mt.matchTerm=mt.getValueNestedPath=mt.someTermsNested=mt.someTerms=mt.everyTermsNested=mt.everyTerms=mt.reduceTermsNested=mt.reduceTerms=mt.mapTermsNested=mt.mapTerms=mt.filterQuadTermNamesNested=mt.filterQuadTermNames=mt.filterTermsNested=mt.filterTerms=mt.forEachTermsNested=mt.forEachTerms=mt.collectNamedTerms=mt.getNamedTerms=mt.getTermsNested=mt.getTerms=mt.TRIPLE_TERM_NAMES=mt.QUAD_TERM_NAMES=void 0;const t=Ot,e=new t.DataFactory;mt.QUAD_TERM_NAMES=["subject","predicate","object","graph"],mt.TRIPLE_TERM_NAMES=["subject","predicate","object"];function r(x,P){return P&&x.graph.termType==="DefaultGraph"?[x.subject,x.predicate,x.object]:[x.subject,x.predicate,x.object,x.graph]}mt.getTerms=r;function n(x,P){const j=[];for(const N of r(x,P))N.termType==="Quad"?n(N,P).forEach(V=>j.push(V)):j.push(N);return j}mt.getTermsNested=n;function a(x){return[{key:"subject",value:x.subject},{key:"predicate",value:x.predicate},{key:"object",value:x.object},{key:"graph",value:x.graph}]}mt.getNamedTerms=a;function s(x,P,j){const N={};return x.forEach(V=>N[V.key]=V.value),P&&(N.subject=N.subject||P("subject"),N.predicate=N.predicate||P("predicate"),N.object=N.object||P("object"),N.graph=N.graph||P("graph")),(j||e).quad(N.subject,N.predicate,N.object,N.graph)}mt.collectNamedTerms=s;function o(x,P){P(x.subject,"subject"),P(x.predicate,"predicate"),P(x.object,"object"),P(x.graph,"graph")}mt.forEachTerms=o;function u(x,P,j=[]){x.subject.termType==="Quad"?u(x.subject,P,[...j,"subject"]):P(x.subject,[...j,"subject"]),x.predicate.termType==="Quad"?u(x.predicate,P,[...j,"predicate"]):P(x.predicate,[...j,"predicate"]),x.object.termType==="Quad"?u(x.object,P,[...j,"object"]):P(x.object,[...j,"object"]),x.graph.termType==="Quad"?u(x.graph,P,[...j,"graph"]):P(x.graph,[...j,"graph"])}mt.forEachTermsNested=u;function c(x,P){const j=[];return P(x.subject,"subject")&&j.push(x.subject),P(x.predicate,"predicate")&&j.push(x.predicate),P(x.object,"object")&&j.push(x.object),P(x.graph,"graph")&&j.push(x.graph),j}mt.filterTerms=c;function l(x,P,j=[]){let N=[];return x.subject.termType==="Quad"?N=[...N,...l(x.subject,P,[...j,"subject"])]:P(x.subject,[...j,"subject"])&&N.push(x.subject),x.predicate.termType==="Quad"?N=[...N,...l(x.predicate,P,[...j,"predicate"])]:P(x.predicate,[...j,"predicate"])&&N.push(x.predicate),x.object.termType==="Quad"?N=[...N,...l(x.object,P,[...j,"object"])]:P(x.object,[...j,"object"])&&N.push(x.object),x.graph.termType==="Quad"?N=[...N,...l(x.graph,P,[...j,"graph"])]:P(x.graph,[...j,"graph"])&&N.push(x.graph),N}mt.filterTermsNested=l;function d(x,P){const j=[];return P(x.subject,"subject")&&j.push("subject"),P(x.predicate,"predicate")&&j.push("predicate"),P(x.object,"object")&&j.push("object"),P(x.graph,"graph")&&j.push("graph"),j}mt.filterQuadTermNames=d;function f(x,P,j=[]){let N=[];const V=[...j,"subject"];x.subject.termType==="Quad"?N=[...N,...f(x.subject,P,V)]:P(x.subject,V)&&N.push(V);const $=[...j,"predicate"];x.predicate.termType==="Quad"?N=[...N,...f(x.predicate,P,$)]:P(x.predicate,$)&&N.push($);const q=[...j,"object"];x.object.termType==="Quad"?N=[...N,...f(x.object,P,q)]:P(x.object,q)&&N.push(q);const H=[...j,"graph"];return x.graph.termType==="Quad"?N=[...N,...f(x.graph,P,H)]:P(x.graph,H)&&N.push(H),N}mt.filterQuadTermNamesNested=f;function h(x,P,j){return(j||e).quad(P(x.subject,"subject"),P(x.predicate,"predicate"),P(x.object,"object"),P(x.graph,"graph"))}mt.mapTerms=h;function p(x,P,j,N=[]){return(j||e).quad(x.subject.termType==="Quad"?p(x.subject,P,j,[...N,"subject"]):P(x.subject,[...N,"subject"]),x.predicate.termType==="Quad"?p(x.predicate,P,j,[...N,"predicate"]):P(x.predicate,[...N,"predicate"]),x.object.termType==="Quad"?p(x.object,P,j,[...N,"object"]):P(x.object,[...N,"object"]),x.graph.termType==="Quad"?p(x.graph,P,j,[...N,"graph"]):P(x.graph,[...N,"graph"]))}mt.mapTermsNested=p;function m(x,P,j){let N=j;return N=P(N,x.subject,"subject"),N=P(N,x.predicate,"predicate"),N=P(N,x.object,"object"),P(N,x.graph,"graph")}mt.reduceTerms=m;function y(x,P,j,N=[]){let V=j;return x.subject.termType==="Quad"?V=y(x.subject,P,V,[...N,"subject"]):V=P(V,x.subject,[...N,"subject"]),x.predicate.termType==="Quad"?V=y(x.predicate,P,V,[...N,"predicate"]):V=P(V,x.predicate,[...N,"predicate"]),x.object.termType==="Quad"?V=y(x.object,P,V,[...N,"object"]):V=P(V,x.object,[...N,"object"]),x.graph.termType==="Quad"?V=y(x.graph,P,V,[...N,"graph"]):V=P(V,x.graph,[...N,"graph"]),V}mt.reduceTermsNested=y;function g(x,P){return P(x.subject,"subject")&&P(x.predicate,"predicate")&&P(x.object,"object")&&P(x.graph,"graph")}mt.everyTerms=g;function b(x,P,j=[]){return(x.subject.termType==="Quad"?b(x.subject,P,[...j,"subject"]):P(x.subject,[...j,"subject"]))&&(x.predicate.termType==="Quad"?b(x.predicate,P,[...j,"predicate"]):P(x.predicate,[...j,"predicate"]))&&(x.object.termType==="Quad"?b(x.object,P,[...j,"object"]):P(x.object,[...j,"object"]))&&(x.graph.termType==="Quad"?b(x.graph,P,[...j,"graph"]):P(x.graph,[...j,"graph"]))}mt.everyTermsNested=b;function v(x,P){return P(x.subject,"subject")||P(x.predicate,"predicate")||P(x.object,"object")||P(x.graph,"graph")}mt.someTerms=v;function _(x,P,j=[]){return(x.subject.termType==="Quad"?_(x.subject,P,[...j,"subject"]):P(x.subject,[...j,"subject"]))||(x.predicate.termType==="Quad"?_(x.predicate,P,[...j,"predicate"]):P(x.predicate,[...j,"predicate"]))||(x.object.termType==="Quad"?_(x.object,P,[...j,"object"]):P(x.object,[...j,"object"]))||(x.graph.termType==="Quad"?_(x.graph,P,[...j,"graph"]):P(x.graph,[...j,"graph"]))}mt.someTermsNested=_;function w(x,P){if(P.length===0)return x;if(x.termType==="Quad")return w(x[P[0]],P.slice(1));throw new Error(`Tried to get ${P[0]} from term of type ${x.termType}`)}mt.getValueNestedPath=w;function E(x,P){return!P||P.termType==="Variable"||P.termType==="Quad"&&x.termType==="Quad"&&L(x,P)||P.equals(x)}mt.matchTerm=E;function O(x,P,j,N,V){return E(x.subject,P)&&E(x.predicate,j)&&E(x.object,N)&&E(x.graph,V)}mt.matchPattern=O;function L(x,P){return O(x,P.subject,P.predicate,P.object,P.graph)}mt.matchPatternComplete=L;function F(x,P,j={}){const N={};function V($,q){return g($,(H,X)=>{var Y,he;const Te=q[X];switch(H.termType){case"Variable":return j.skipVarMapping&&Te.termType==="Variable"||((he=(Y=N[H.value])===null||Y===void 0?void 0:Y.equals(Te))!==null&&he!==void 0?he:(N[H.value]=Te,!0));case"Quad":return Te.termType==="Quad"&&V(H,Te);default:return H.equals(Te)}})}return V(P,x)&&(j.returnMappings?N:!0)}return mt.matchPatternMappings=F,mt}var zr={},t8;function AEe(){if(t8)return zr;t8=1,Object.defineProperty(zr,"__esModule",{value:!0}),zr.getQuads=zr.getDefaultGraphs=zr.getVariables=zr.getLiterals=zr.getBlankNodes=zr.getNamedNodes=zr.getTermsOfType=zr.uniqTerms=zr.TERM_TYPES=void 0;const t=nr;zr.TERM_TYPES=["NamedNode","BlankNode","Literal","Variable","DefaultGraph","Quad"];function e(l){const d={};return l.filter(f=>{const h=(0,t.termToString)(f);return!(h in d)&&(d[h]=!0)})}zr.uniqTerms=e;function r(l,d){return l.filter(f=>f.termType===d)}zr.getTermsOfType=r;function n(l){return r(l,"NamedNode")}zr.getNamedNodes=n;function a(l){return r(l,"BlankNode")}zr.getBlankNodes=a;function s(l){return r(l,"Literal")}zr.getLiterals=s;function o(l){return r(l,"Variable")}zr.getVariables=o;function u(l){return r(l,"DefaultGraph")}zr.getDefaultGraphs=u;function c(l){return r(l,"Quad")}return zr.getQuads=c,zr}var r8;function In(){return r8||(r8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(wY(),t),r(AEe(),t)}(kA)),kA}var VA={},Lv={},HA,n8;function OEe(){return n8||(n8=1,HA=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,a,s;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(a=n;a--!==0;)if(!t(e[a],r[a]))return!1;return!0}if(e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(a of e.entries())if(!r.has(a[0]))return!1;for(a of e.entries())if(!t(a[1],r.get(a[0])))return!1;return!0}if(e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(a of e.entries())if(!r.has(a[0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(r)){if(n=e.length,n!=r.length)return!1;for(a=n;a--!==0;)if(e[a]!==r[a])return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(s=Object.keys(e),n=s.length,n!==Object.keys(r).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[a]))return!1;for(a=n;a--!==0;){var o=s[a];if(!t(e[o],r[o]))return!1}return!0}return e!==e&&r!==r}),HA}var QA={},i8;function S1(){return i8||(i8=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.expressionTypes=t.types=void 0,function(e){e.ALT="alt",e.ASK="ask",e.BGP="bgp",e.CONSTRUCT="construct",e.DESCRIBE="describe",e.DISTINCT="distinct",e.EXPRESSION="expression",e.EXTEND="extend",e.FILTER="filter",e.FROM="from",e.GRAPH="graph",e.GROUP="group",e.INV="inv",e.JOIN="join",e.LEFT_JOIN="leftjoin",e.LINK="link",e.MINUS="minus",e.NOP="nop",e.NPS="nps",e.ONE_OR_MORE_PATH="OneOrMorePath",e.ORDER_BY="orderby",e.PATH="path",e.PATTERN="pattern",e.PROJECT="project",e.REDUCED="reduced",e.SEQ="seq",e.SERVICE="service",e.SLICE="slice",e.UNION="union",e.VALUES="values",e.ZERO_OR_MORE_PATH="ZeroOrMorePath",e.ZERO_OR_ONE_PATH="ZeroOrOnePath",e.COMPOSITE_UPDATE="compositeupdate",e.DELETE_INSERT="deleteinsert",e.LOAD="load",e.CLEAR="clear",e.CREATE="create",e.DROP="drop",e.ADD="add",e.MOVE="move",e.COPY="copy"}(t.types||(t.types={})),function(e){e.AGGREGATE="aggregate",e.EXISTENCE="existence",e.NAMED="named",e.OPERATOR="operator",e.TERM="term",e.WILDCARD="wildcard"}(t.expressionTypes||(t.expressionTypes={}))}(QA)),QA}var jv={},a8;function oT(){if(a8)return jv;a8=1;var t=I&&I.__createBinding||(Object.create?function(c,l,d,f){f===void 0&&(f=d);var h=Object.getOwnPropertyDescriptor(l,d);(!h||("get"in h?!l.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return l[d]}}),Object.defineProperty(c,f,h)}:function(c,l,d,f){f===void 0&&(f=d),c[f]=l[d]}),e=I&&I.__setModuleDefault||(Object.create?function(c,l){Object.defineProperty(c,"default",{enumerable:!0,value:l})}:function(c,l){c.default=l}),r=I&&I.__importStar||function(c){if(c&&c.__esModule)return c;var l={};if(c!=null)for(var d in c)d!=="default"&&Object.prototype.hasOwnProperty.call(c,d)&&t(l,c,d);return e(l,c),l};Object.defineProperty(jv,"__esModule",{value:!0});const n=r(S1()),a=Ot,s=nr,o=ol;class u{constructor(l){this.dataFactory=l||new a.DataFactory,this.stringType=this.createTerm("http://www.w3.org/2001/XMLSchema#string")}createAlt(l,d=!0){return this.flattenMulti({type:n.types.ALT,input:l},d)}createAsk(l){return{type:n.types.ASK,input:l}}createBoundAggregate(l,d,f,h,p){const m=this.createAggregateExpression(d,f,h,p);return m.variable=l,m}createBgp(l){return{type:n.types.BGP,patterns:l}}createConstruct(l,d){return{type:n.types.CONSTRUCT,input:l,template:d}}createDescribe(l,d){return{type:n.types.DESCRIBE,input:l,terms:d}}createDistinct(l){return{type:n.types.DISTINCT,input:l}}createExtend(l,d,f){return{type:n.types.EXTEND,input:l,variable:d,expression:f}}createFrom(l,d,f){return{type:n.types.FROM,input:l,default:d,named:f}}createFilter(l,d){return{type:n.types.FILTER,input:l,expression:d}}createGraph(l,d){return{type:n.types.GRAPH,input:l,name:d}}createGroup(l,d,f){return{type:n.types.GROUP,input:l,variables:d,aggregates:f}}createInv(l){return{type:n.types.INV,path:l}}createJoin(l,d=!0){return this.flattenMulti({type:n.types.JOIN,input:l},d)}createLeftJoin(l,d,f){return f?{type:n.types.LEFT_JOIN,input:[l,d],expression:f}:{type:n.types.LEFT_JOIN,input:[l,d]}}createLink(l){return{type:n.types.LINK,iri:l}}createMinus(l,d){return{type:n.types.MINUS,input:[l,d]}}createNop(){return{type:n.types.NOP}}createNps(l){return{type:n.types.NPS,iris:l}}createOneOrMorePath(l){return{type:n.types.ONE_OR_MORE_PATH,path:l}}createOrderBy(l,d){return{type:n.types.ORDER_BY,input:l,expressions:d}}createPath(l,d,f,h){return h?{type:n.types.PATH,subject:l,predicate:d,object:f,graph:h}:{type:n.types.PATH,subject:l,predicate:d,object:f,graph:this.dataFactory.defaultGraph()}}createPattern(l,d,f,h){const p=this.dataFactory.quad(l,d,f,h);return p.type=n.types.PATTERN,p}createProject(l,d){return{type:n.types.PROJECT,input:l,variables:d}}createReduced(l){return{type:n.types.REDUCED,input:l}}createSeq(l,d=!0){return this.flattenMulti({type:n.types.SEQ,input:l},d)}createService(l,d,f){return{type:n.types.SERVICE,input:l,name:d,silent:!!f}}createSlice(l,d,f){return d=d||0,f!==void 0?{type:n.types.SLICE,input:l,start:d,length:f}:{type:n.types.SLICE,input:l,start:d}}createUnion(l,d=!0){return this.flattenMulti({type:n.types.UNION,input:l},d)}createValues(l,d){return{type:n.types.VALUES,variables:l,bindings:d}}createZeroOrMorePath(l){return{type:n.types.ZERO_OR_MORE_PATH,path:l}}createZeroOrOnePath(l){return{type:n.types.ZERO_OR_ONE_PATH,path:l}}createAggregateExpression(l,d,f,h){return h?{type:n.types.EXPRESSION,expressionType:n.expressionTypes.AGGREGATE,aggregator:l,expression:d,separator:h,distinct:f}:{type:n.types.EXPRESSION,expressionType:n.expressionTypes.AGGREGATE,aggregator:l,expression:d,distinct:f}}createExistenceExpression(l,d){return{type:n.types.EXPRESSION,expressionType:n.expressionTypes.EXISTENCE,not:l,input:d}}createNamedExpression(l,d){return{type:n.types.EXPRESSION,expressionType:n.expressionTypes.NAMED,name:l,args:d}}createOperatorExpression(l,d){return{type:n.types.EXPRESSION,expressionType:n.expressionTypes.OPERATOR,operator:l,args:d}}createTermExpression(l){return{type:n.types.EXPRESSION,expressionType:n.expressionTypes.TERM,term:l}}createWildcardExpression(){return{type:n.types.EXPRESSION,expressionType:n.expressionTypes.WILDCARD,wildcard:new o.Wildcard}}createTerm(l){return l[0]==="$"&&(l=l.replace("$","?")),(0,s.stringToTerm)(l,this.dataFactory)}createCompositeUpdate(l){return{type:n.types.COMPOSITE_UPDATE,updates:l}}createDeleteInsert(l,d,f){const h={type:n.types.DELETE_INSERT};return l&&(h.delete=l),d&&(h.insert=d),f&&(h.where=f),h}createLoad(l,d,f){const h={type:n.types.LOAD,source:l};return d&&(h.destination=d),this.addSilent(h,!!f)}createClear(l,d){return this.addSilent({type:n.types.CLEAR,source:l},!!d)}createCreate(l,d){return this.addSilent({type:n.types.CREATE,source:l},!!d)}createDrop(l,d){return this.addSilent({type:n.types.DROP,source:l},!!d)}createAdd(l,d,f){return this.addSilent({type:n.types.ADD,source:l,destination:d},!!f)}createMove(l,d,f){return this.addSilent({type:n.types.MOVE,source:l,destination:d},!!f)}createCopy(l,d,f){return this.addSilent({type:n.types.COPY,source:l,destination:d},!!f)}addSilent(l,d){return d&&(l.silent=d),l}flattenMulti(l,d){if(!d)return l;const f=l.type,h=l.input;let p=[];for(const m of h)m.type===f?p.push(...m.input):p.push(m);return l.input=p,l}}return jv.default=u,jv}var Mv={},s8;function $C(){if(s8)return Mv;s8=1;var t=I&&I.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Mv,"__esModule",{value:!0});const e=S1(),r=t(oT()),n=In();class a{static flatten(o){return Array.prototype.concat(...o).filter(u=>u)}static objectify(o){if(o.termType){if(o.termType==="Quad")return{type:"pattern",termType:"Quad",subject:a.objectify(o.subject),predicate:a.objectify(o.predicate),object:a.objectify(o.object),graph:a.objectify(o.graph)};{let u={termType:o.termType,value:o.value};return o.language&&(u.language=o.language),o.datatype&&(u.datatype=a.objectify(o.datatype)),u}}if(Array.isArray(o))return o.map(u=>a.objectify(u));if(o===Object(o)){let u={};for(let c of Object.keys(o))u[c]=a.objectify(o[c]);return u}return o}static inScopeVariables(o){const u=[];function c(d){u.find(f=>d.value===f.value)||u.push(d)}function l(d){d.subject.termType==="Variable"&&c(d.subject),d.predicate.termType==="Variable"&&c(d.predicate),d.object.termType==="Variable"&&c(d.object),d.graph.termType==="Variable"&&c(d.graph),d.subject.termType==="Quad"&&l(d.subject),d.predicate.termType==="Quad"&&l(d.predicate),d.object.termType==="Quad"&&l(d.object),d.graph.termType==="Quad"&&l(d.graph)}return a.recurseOperation(o,{[e.types.EXPRESSION]:d=>(d.expressionType===e.expressionTypes.AGGREGATE&&d.variable&&c(d.variable),!0),[e.types.EXTEND]:d=>(c(d.variable),!0),[e.types.GRAPH]:d=>(d.name.termType==="Variable"&&c(d.name),!0),[e.types.GROUP]:d=>(d.variables.forEach(c),!0),[e.types.PATH]:d=>(d.subject.termType==="Variable"&&c(d.subject),d.object.termType==="Variable"&&c(d.object),d.graph.termType==="Variable"&&c(d.graph),d.subject.termType==="Quad"&&l(d.subject),d.object.termType==="Quad"&&l(d.object),d.graph.termType==="Quad"&&l(d.graph),!0),[e.types.PATTERN]:d=>(l(d),!0),[e.types.PROJECT]:d=>(d.variables.forEach(c),!1),[e.types.SERVICE]:d=>(d.name.termType==="Variable"&&c(d.name),!0),[e.types.VALUES]:d=>(d.variables.forEach(c),!0)}),u}static recurseOperation(o,u){let c=o,l=!0;const d=u[o.type];if(d&&(l=d(o)),!l)return;let f=h=>a.recurseOperation(h,u);switch(c.type){case e.types.ALT:c.input.map(f);break;case e.types.ASK:f(c.input);break;case e.types.BGP:c.patterns.forEach(f);break;case e.types.CONSTRUCT:f(c.input),c.template.map(f);break;case e.types.DESCRIBE:f(c.input);break;case e.types.DISTINCT:f(c.input);break;case e.types.EXPRESSION:c.expressionType===e.expressionTypes.EXISTENCE&&f(c.input);break;case e.types.EXTEND:f(c.input),f(c.expression);break;case e.types.FILTER:f(c.input),f(c.expression);break;case e.types.FROM:f(c.input);break;case e.types.GRAPH:f(c.input);break;case e.types.GROUP:f(c.input),c.aggregates.forEach(f);break;case e.types.INV:f(c.path);break;case e.types.JOIN:c.input.map(f);break;case e.types.LEFT_JOIN:c.input.map(f),c.expression&&f(c.expression);break;case e.types.LINK:break;case e.types.MINUS:c.input.map(f);break;case e.types.NOP:break;case e.types.NPS:break;case e.types.ONE_OR_MORE_PATH:f(c.path);break;case e.types.ORDER_BY:f(c.input),c.expressions.forEach(f);break;case e.types.PATH:f(c.predicate);break;case e.types.PATTERN:break;case e.types.PROJECT:f(c.input);break;case e.types.REDUCED:f(c.input);break;case e.types.SEQ:c.input.map(f);break;case e.types.SERVICE:f(c.input);break;case e.types.SLICE:f(c.input);break;case e.types.UNION:c.input.map(f);break;case e.types.VALUES:break;case e.types.ZERO_OR_MORE_PATH:f(c.path);break;case e.types.ZERO_OR_ONE_PATH:f(c.path);break;case e.types.COMPOSITE_UPDATE:c.updates.forEach(h=>f(h));break;case e.types.DELETE_INSERT:c.delete&&c.delete.forEach(h=>f(h)),c.insert&&c.insert.forEach(h=>f(h)),c.where&&f(c.where);break;case e.types.LOAD:break;case e.types.CLEAR:break;case e.types.CREATE:break;case e.types.DROP:break;case e.types.ADD:break;case e.types.MOVE:break;case e.types.COPY:break;default:throw new Error(`Unknown Operation type ${c.type}`)}}static mapOperation(o,u,c){let l=o,d=!0,f=!0;c=c||new r.default;const h=u[o.type];if(h){const y=h(o,c);l=y.result,d=y.recurse,f=y.copyMetadata!==!1}let p;if(f&&(l.metadata||o.metadata)&&(p={...l.metadata,...o.metadata}),!d)return p&&(l.metadata=p),l;let m=y=>a.mapOperation(y,u,c);switch(l.type){case e.types.ALT:l=c.createAlt(l.input.map(m));break;case e.types.ASK:l=c.createAsk(m(l.input));break;case e.types.BGP:l=c.createBgp(l.patterns.map(m));break;case e.types.CONSTRUCT:l=c.createConstruct(m(l.input),l.template.map(m));break;case e.types.DESCRIBE:l=c.createDescribe(m(l.input),l.terms);break;case e.types.DISTINCT:l=c.createDistinct(m(l.input));break;case e.types.EXPRESSION:l=a.mapExpression(l,u,c);break;case e.types.EXTEND:l=c.createExtend(m(l.input),l.variable,m(l.expression));break;case e.types.FILTER:l=c.createFilter(m(l.input),m(l.expression));break;case e.types.FROM:l=c.createFrom(m(l.input),[...l.default],[...l.named]);break;case e.types.GRAPH:l=c.createGraph(m(l.input),l.name);break;case e.types.GROUP:l=c.createGroup(m(l.input),[].concat(l.variables),l.aggregates.map(m));break;case e.types.INV:l=c.createInv(m(l.path));break;case e.types.JOIN:l=c.createJoin(l.input.map(m));break;case e.types.LEFT_JOIN:l=c.createLeftJoin(m(l.input[0]),m(l.input[1]),l.expression?m(l.expression):void 0);break;case e.types.LINK:l=c.createLink(l.iri);break;case e.types.MINUS:l=c.createMinus(m(l.input[0]),m(l.input[1]));break;case e.types.NOP:l=c.createNop();break;case e.types.NPS:l=c.createNps([].concat(l.iris));break;case e.types.ONE_OR_MORE_PATH:l=c.createOneOrMorePath(m(l.path));break;case e.types.ORDER_BY:l=c.createOrderBy(m(l.input),l.expressions.map(m));break;case e.types.PATH:l=c.createPath(l.subject,m(l.predicate),l.object,l.graph);break;case e.types.PATTERN:l=c.createPattern(l.subject,l.predicate,l.object,l.graph);break;case e.types.PROJECT:l=c.createProject(m(l.input),[...l.variables]);break;case e.types.REDUCED:l=c.createReduced(m(l.input));break;case e.types.SEQ:l=c.createSeq(l.input.map(m));break;case e.types.SERVICE:l=c.createService(m(l.input),l.name,l.silent);break;case e.types.SLICE:l=c.createSlice(m(l.input),l.start,l.length);break;case e.types.UNION:l=c.createUnion(l.input.map(m));break;case e.types.VALUES:l=c.createValues([].concat(l.variables),l.bindings.map(y=>Object.assign({},y)));break;case e.types.ZERO_OR_MORE_PATH:l=c.createZeroOrMorePath(m(l.path));break;case e.types.ZERO_OR_ONE_PATH:l=c.createZeroOrOnePath(m(l.path));break;case e.types.COMPOSITE_UPDATE:l=c.createCompositeUpdate(l.updates.map(m));break;case e.types.DELETE_INSERT:l=c.createDeleteInsert(l.delete?l.delete.map(m):void 0,l.insert?l.insert.map(m):void 0,l.where?m(l.where):void 0);break;case e.types.LOAD:l=c.createLoad(l.source,l.destination,l.silent);break;case e.types.CLEAR:l=c.createClear(l.source,l.silent);break;case e.types.CREATE:l=c.createCreate(l.source,l.silent);break;case e.types.DROP:l=c.createDrop(l.source,l.silent);break;case e.types.ADD:l=c.createAdd(l.source,l.destination);break;case e.types.MOVE:l=c.createMove(l.source,l.destination);break;case e.types.COPY:l=c.createCopy(l.source,l.destination);break;default:throw new Error(`Unknown Operation type ${l.type}`)}return p&&(l.metadata=p),l}static mapExpression(o,u,c){let l=o,d=!0;c=c||new r.default;const f=u[o.expressionType];if(f&&({result:l,recurse:d}=f(o,c)),!d)return l;let h=p=>a.mapOperation(p,u,c);switch(o.expressionType){case e.expressionTypes.AGGREGATE:return o.variable?c.createBoundAggregate(o.variable,o.aggregator,h(o.expression),o.distinct,o.separator):c.createAggregateExpression(o.aggregator,h(o.expression),o.distinct,o.separator);case e.expressionTypes.EXISTENCE:return c.createExistenceExpression(o.not,h(o.input));case e.expressionTypes.NAMED:return c.createNamedExpression(o.name,o.args.map(h));case e.expressionTypes.OPERATOR:return c.createOperatorExpression(o.operator,o.args.map(h));case e.expressionTypes.TERM:return c.createTermExpression(o.term);case e.expressionTypes.WILDCARD:return c.createWildcardExpression();default:throw new Error(`Unknown Expression type ${o.expressionType}`)}}static cloneOperation(o){return a.mapOperation(o,{})}static cloneExpression(o){return a.mapExpression(o,{})}static createUniqueVariable(o,u,c){let l=0,d=o;for(;u[d];)d=`${o}${l++}`;return c.variable(d)}static isSimpleTerm(o){return o.termType!==void 0&&o.termType!=="Quad"&&o.termType!=="Wildcard"}static isQuad(o){return o.termType==="Quad"}static hasQuadVariables(o){return(0,n.someTermsNested)(o,u=>u.termType==="Variable")}static isWildcard(o){return o.termType==="Wildcard"}}return Mv.default=a,Mv}var o8;function REe(){if(o8)return Lv;o8=1;var t=I&&I.__createBinding||(Object.create?function(M,k,T,R){R===void 0&&(R=T);var U=Object.getOwnPropertyDescriptor(k,T);(!U||("get"in U?!k.__esModule:U.writable||U.configurable))&&(U={enumerable:!0,get:function(){return k[T]}}),Object.defineProperty(M,R,U)}:function(M,k,T,R){R===void 0&&(R=T),M[R]=k[T]}),e=I&&I.__setModuleDefault||(Object.create?function(M,k){Object.defineProperty(M,"default",{enumerable:!0,value:k})}:function(M,k){M.default=k}),r=I&&I.__importStar||function(M){if(M&&M.__esModule)return M;var k={};if(M!=null)for(var T in M)T!=="default"&&Object.prototype.hasOwnProperty.call(M,T)&&t(k,M,T);return e(k,M),k},n=I&&I.__importDefault||function(M){return M&&M.__esModule?M:{default:M}};Object.defineProperty(Lv,"__esModule",{value:!0});const a=OEe(),s=nr,o=r(S1()),u=n(oT()),c=n($C()),l=ol.Parser,d=o.types;let f=new Set,h=0,p=!1,m;function y(M,k){k=k||{},m=new u.default(k.dataFactory);let T;if(b(M)){let R=new l(k);R._resetBlanks(),T=R.parse(M)}else T=M;return g(T,k.quads,k.blankToVariable)}Lv.default=y;function g(M,k,T){if(f=new Set,h=0,p=!!k,!M.type)return m.createNop();if(M.type!=="query"&&M.type!=="update")throw new Error("Translate only works on complete query or update objects.");let R;if(E(M),M.type==="query"){const U={type:"group",patterns:M.where||[]};R=L(U),R=Te(M,R)}else M.type==="update"&&(R=de(M));return T&&(R=z(R)),R}function b(M){return typeof M=="string"}function v(M){return!!(M!=null&&M.termType)}function _(M){return M.subject&&M.predicate&&M.object}function w(M){return(M==null?void 0:M.termType)==="Variable"}function E(M){if(v(M))w(M)&&f.add(`?${M.value}`);else if(Array.isArray(M))for(const k of M)E(k);else if(M&&typeof M=="object")for(let k of Object.keys(M))k.startsWith("?")?f.add(k):k.startsWith("$")&&f.add(`?${k.slice(1)}`),E(M[k])}function O(M){let k={};if(_(M)){const T=[O(M.subject),O(M.predicate),O(M.object),M.graph?O(M.graph):{}];Object.assign(k,...T)}else if(v(M))w(M)&&(k[M.value]=M);else if(M.type==="bgp"){const T=M.triples;Object.assign(k,...T.map(O))}else if(M.type==="path")Object.assign(k,...M.items.map(O));else if(M.type==="group"||M.type==="union"||M.type==="optional")Object.assign(k,...M.patterns.map(O));else if(M.type==="service"||M.type==="graph")Object.assign(k,O(M.name)),Object.assign(k,...M.patterns.map(O));else if(M.type==="bind")Object.assign(k,O(M.variable));else if(M.type==="values"){if(M.values.length>0){const T=Object.keys(M.values[0]).map(R=>m.createTerm(R));Object.assign(k,...T.map(O))}}else if(M.type==="query"&&(M.queryType==="SELECT"||M.queryType==="DESCRIBE")){M.where&&M.variables.some(c.default.isWildcard)&&Object.assign(k,...M.where.map(O));for(const T of M.variables)w(T)?Object.assign(k,O(T)):T.variable&&Object.assign(k,O(T.variable));if(M.queryType==="SELECT"){if(M.group)for(const T of M.group)T.variable&&Object.assign(k,O(T.variable));if(M.values){const T={type:"values",values:M.values};Object.assign(k,O(T))}}}return k}function L(M){if(M.type==="bgp")return x(M);if(M.type==="union")return m.createUnion(M.patterns.map(k=>(k.type!=="group"&&(k={type:"group",patterns:[k]}),L(k))));if(M.type==="graph"){const k={type:"group",patterns:M.patterns};let T=L(k);return p?T=H(T,M.name):T=m.createGraph(T,M.name),T}if(M.type==="values")return he(M);if(M.type==="query")return g(M,p,!1);if(M.type==="group"){let k=[],T=[];for(let G of M.patterns)(G.type==="filter"?k:T).push(G);let R=T.reduce(X,m.createBgp([])),U=k.map(G=>F(G.expression));return U.length>0&&(R=m.createFilter(R,U.reduce((G,Q)=>m.createOperatorExpression("&&",[G,Q])))),R}throw new Error(`Unexpected type: ${M.type}`)}function F(M){if(c.default.isSimpleTerm(M))return m.createTermExpression(M);if(c.default.isQuad(M))return c.default.hasQuadVariables(M)?m.createOperatorExpression("triple",[F(M.subject),F(M.predicate),F(M.object)]):m.createTermExpression(M);if(c.default.isWildcard(M))return m.createWildcardExpression();if("aggregation"in M)return m.createAggregateExpression(M.aggregation,F(M.expression),!!M.distinct,M.separator);if("function"in M)return m.createNamedExpression(M.function,M.args.map(F));if("operator"in M)return M.operator==="exists"||M.operator==="notexists"?m.createExistenceExpression(M.operator==="notexists",L(M.args[0])):((M.operator==="in"||M.operator==="notin")&&(M.args=[M.args[0]].concat(M.args[1])),m.createOperatorExpression(M.operator,M.args.map(F)));throw new Error(`Unknown expression: ${JSON.stringify(M)}`)}function x(M){let k=[],T=[];for(let R of M.triples)if("pathType"in R.predicate){let U=P(R);for(let G of U)G.type===d.PATH?(k.length>0&&T.push(m.createBgp(k)),k=[],T.push(G)):k.push(G)}else k.push($(R));return k.length>0&&T.push(m.createBgp(k)),T.length===1?T[0]:m.createJoin(T)}function P(M){let k=M.subject,T=j(M.predicate),R=M.object;return N(k,T,R)}function j(M){if(c.default.isSimpleTerm(M)){if(M.termType==="NamedNode")return m.createLink(M);throw new Error(`Path predicate should be a NamedNode, got ${JSON.stringify(M)}`)}if(M.pathType==="^")return m.createInv(j(M.items[0]));if(M.pathType==="!"){let k=[],T=[],R;"pathType"in M.items[0]&&M.items[0].pathType==="|"?R=M.items[0].items:R=M.items;for(let Q of R)if(c.default.isSimpleTerm(Q))k.push(Q);else if(Q.pathType==="^")T.push(Q.items[0]);else throw new Error(`Unexpected item: ${JSON.stringify(Q)}`);let U=m.createNps(k),G=m.createInv(m.createNps(T));return T.length===0?U:k.length===0?G:m.createAlt([U,G])}if(M.pathType==="/")return m.createSeq(M.items.map(j));if(M.pathType==="|")return m.createAlt(M.items.map(j));if(M.pathType==="*")return m.createZeroOrMorePath(j(M.items[0]));if(M.pathType==="+")return m.createOneOrMorePath(j(M.items[0]));if(M.pathType==="?")return m.createZeroOrOnePath(j(M.items[0]));throw new Error(`Unable to translate path expression ${JSON.stringify(M)}`)}function N(M,k,T){if(k.type===d.LINK)return[m.createPattern(M,k.iri,T)];if(k.type===d.INV)return N(T,k.path,M);if(k.type===d.SEQ){let R=M;return c.default.flatten(k.input.map((U,G)=>{const Q=G===k.input.length-1?T:V(),Z=N(R,U,Q);return Q.termType==="Variable"&&(R=Q),Z}))}return[m.createPath(M,k,T)]}function V(){let M=`?var${h++}`;return f.has(M)?V():(f.add(M),m.createTerm(M))}function $(M){if("pathType"in M.predicate)throw new Error("Trying to translate property path to quad.");return m.createPattern(M.subject,M.predicate,M.object,M.graph)}let q=Object.values(d);function H(M,k,T){if(M.type===d.GRAPH){if(T)throw new Error("Recursing through nested GRAPH statements with a replacement is impossible.");M=H(M.input,M.name)}else if(M.type!==d.SERVICE)if(M.type===d.BGP)M.patterns=M.patterns.map(R=>(T&&(R.subject.equals(k)&&(R.subject=T),R.predicate.equals(k)&&(R.predicate=T),R.object.equals(k)&&(R.object=T)),R.graph.termType==="DefaultGraph"&&(R.graph=k),R));else if(M.type===d.PATH)T&&(M.subject.equals(k)&&(M.subject=T),M.object.equals(k)&&(M.object=T)),M.graph.termType==="DefaultGraph"&&(M.graph=k);else if(M.type===d.PROJECT&&!T)M.variables.some(R=>R.equals(k))||(T=V()),M.input=H(M.input,k,T);else if(M.type===d.EXTEND&&!T)M.variable.equals(k)&&(T=V()),M.input=H(M.input,k,T);else for(let R of Object.keys(M))Array.isArray(M[R])?M[R]=M[R].map(U=>H(U,k,T)):q.indexOf(M[R].type)>=0?M[R]=H(M[R],k,T):T&&w(M[R])&&M[R].equals(k)&&(M[R]=T);return M}function X(M,k){if(k.type==="optional"){const T=L({type:"group",patterns:k.patterns});T.type===d.FILTER?M=m.createLeftJoin(M,T.input,T.expression):M=m.createLeftJoin(M,T)}else if(k.type==="minus"){const T=L({type:"group",patterns:k.patterns});M=m.createMinus(M,T)}else if(k.type==="bind")M=m.createExtend(M,k.variable,F(k.expression));else if(k.type==="service"){const T={type:"group",patterns:k.patterns},R=m.createService(L(T),k.name,k.silent);M=Y(M,R)}else{const T=L(k);M=Y(M,T)}return M}function Y(M,k){return M.type===d.BGP&&k.type===d.BGP?M=m.createBgp([...M.patterns,...k.patterns]):M.type===d.BGP&&M.patterns.length===0?M=k:k.type===d.BGP&&k.patterns.length===0||(M=m.createJoin([M,k])),M}function he(M){let k=(M.values.length===0?[]:Object.keys(M.values[0])).map(m.createTerm.bind(m)),T=M.values.map(R=>{let U=Object.keys(R);U=U.filter(Q=>R[Q]!==void 0);let G={};for(let Q of U)G[Q]=R[Q];return G});return m.createValues(k,T)}function Te(M,k){const T=M,R=[],U={};if(T.variables=T.variables&&T.variables.map(Q=>Ne(Q,U)),T.having=T.having&&T.having.map(Q=>Ne(Q,U)),T.order=T.order&&T.order.map(Q=>Ne(Q,U)),T.group||Object.keys(U).length>0){const Q=Object.keys(U).map(se=>$e(U[se],m.createTerm(se))),Z=[];if(T.group)for(const se of T.group)if(c.default.isSimpleTerm(se.expression))Z.push(se.expression);else{const re="variable"in se?se.variable:V();k=m.createExtend(k,re,F(se.expression)),Z.push(re)}k=m.createGroup(k,Z,Q)}if(T.having)for(let Q of T.having)k=m.createFilter(k,F(Q));M.values&&(k=m.createJoin([k,he(M)]));let G=[];if(M.queryType==="SELECT"||M.queryType==="DESCRIBE")if(M.variables.some(Q=>Q&&c.default.isWildcard(Q)))G=Object.values(O(M)).sort((Q,Z)=>Q.value.localeCompare(Z.value));else for(let Q of M.variables)w(Q)||!("variable"in Q)?G.push(Q):Q.variable&&(G.push(Q.variable),R.push(Q));for(let Q of R)k=m.createExtend(k,Q.variable,F(Q.expression));return T.order&&(k=m.createOrderBy(k,T.order.map(Q=>{let Z=F(Q.expression);return Q.descending&&(Z=m.createOperatorExpression("desc",[Z])),Z}))),M.queryType==="SELECT"&&(k=m.createProject(k,G)),T.distinct&&(k=m.createDistinct(k)),T.reduced&&(k=m.createReduced(k)),M.queryType==="CONSTRUCT"?k=m.createConstruct(k,(M.template||[]).map($)):M.queryType==="ASK"?k=m.createAsk(k):M.queryType==="DESCRIBE"&&(k=m.createDescribe(k,G)),(T.offset||T.limit)&&(k=m.createSlice(k,T.offset||0,T.limit)),T.from&&(k=m.createFrom(k,T.from.default,T.from.named)),k}function Ne(M,k){if("type"in M&&M.type==="aggregate"){let T=!1,R;for(let U of Object.keys(k))if(a(k[U],M)){R=m.createTerm(U),T=!0;break}return T||(R=V(),k[(0,s.termToString)(R)]=M),R}return"expression"in M&&M.expression?{...M,expression:Ne(M.expression,k)}:"args"in M&&M.args?{...M,args:M.args.map(T=>Ne(T,k))}:M}function $e(M,k){if(M.type!=="aggregate"||!M.aggregation)throw new Error(`Unexpected input: ${JSON.stringify(M)}`);const T=F(M);return T.variable=k,T}function de(M){return M.updates.length===1?ce(M.updates[0]):m.createCompositeUpdate(M.updates.map(ce))}function ce(M){if("type"in M){if(M.type==="load")return Re(M);if(M.type==="clear"||M.type==="create"||M.type==="drop")return we(M);if(M.type==="add"||M.type==="copy"||M.type==="move")return Se(M)}else if(M.updateType==="insertdelete"||M.updateType==="deletewhere"||M.updateType==="delete"||M.updateType==="insert")return xe(M);throw new Error(`Unknown update type ${JSON.stringify(M)}`)}function xe(M){if(!p)throw new Error("INSERT/DELETE operations are only supported with quads option enabled");let k=[],T=[],R;if(M.delete&&(k=c.default.flatten(M.delete.map(U=>Pe(U,M.graph)))),M.insert&&(T=c.default.flatten(M.insert.map(U=>Pe(U,M.graph)))),M.where&&M.where.length>0){R=L({type:"group",patterns:M.where});const U=M.using;U?R=m.createFrom(R,U.default,U.named):M.graph&&(R=H(R,M.graph))}else M.updateType==="deletewhere"&&k.length>0&&(R=m.createBgp(k));return m.createDeleteInsert(k.length>0?k:void 0,T.length>0?T:void 0,R)}function Pe(M,k){let T=k;M.type==="graph"&&(T=M.name);let R=M.triples;return T&&(R=R.map(U=>Object.assign(U,{graph:T}))),R.map($)}function we(M){let k;switch(c.default.isSimpleTerm(M.graph)?k=M.graph:M.graph.all?k="ALL":M.graph.default?k="DEFAULT":M.graph.named?k="NAMED":k=M.graph.name,M.type){case"clear":return m.createClear(k,M.silent);case"create":return m.createCreate(k,M.silent);case"drop":return m.createDrop(k,M.silent)}}function Re(M){return m.createLoad(M.source,M.destination,M.silent)}function Se(M){const k=M.source.default?"DEFAULT":M.source.name,T=M.destination.default?"DEFAULT":M.destination.name;switch(M.type){case"copy":return m.createCopy(k,T,M.silent);case"move":return m.createMove(k,T,M.silent);case"add":return m.createAdd(k,T,M.silent)}}function z(M){const k={},T=Array.from(f).reduce((U,G)=>(U[G]=!0,U),{});return c.default.mapOperation(M,{[o.types.DELETE_INSERT]:U=>({result:m.createDeleteInsert(U.delete,U.insert,U.where&&z(U.where)),recurse:!1}),[o.types.PATH]:(U,G)=>({result:G.createPath(R(U.subject),U.predicate,R(U.object),R(U.graph)),recurse:!1}),[o.types.PATTERN]:(U,G)=>({result:G.createPattern(R(U.subject),R(U.predicate),R(U.object),R(U.graph)),recurse:!1}),[o.types.CONSTRUCT]:U=>({result:m.createConstruct(z(U.input),U.template),recurse:!1})});function R(U){if(U.termType==="BlankNode"){let G=k[U.value];return G||(G=c.default.createUniqueVariable(U.value,T,m.dataFactory),T[G.value]=!0,k[U.value]=G),G}return U}}return Lv}var Ku={},zA={},Ut={},GA={},ur={},WA,u8;function T1(){if(u8)return WA;u8=1,WA=t;function t(e,r){if(!e)throw new Error(r||"Assertion failed")}return t.equal=function(r,n,a){if(r!=n)throw new Error(a||"Assertion failed: "+r+" != "+n)},WA}var Fv={exports:{}},c8;function xEe(){return c8||(c8=1,typeof Object.create=="function"?Fv.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Fv.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}}),Fv.exports}var l8;function vs(){if(l8)return ur;l8=1;var t=T1(),e=xEe();ur.inherits=e;function r(N,V){return(N.charCodeAt(V)&64512)!==55296||V<0||V+1>=N.length?!1:(N.charCodeAt(V+1)&64512)===56320}function n(N,V){if(Array.isArray(N))return N.slice();if(!N)return[];var $=[];if(typeof N=="string")if(V){if(V==="hex")for(N=N.replace(/[^a-z0-9]+/ig,""),N.length%2!==0&&(N="0"+N),H=0;H>6|192,$[q++]=X&63|128):r(N,H)?(X=65536+((X&1023)<<10)+(N.charCodeAt(++H)&1023),$[q++]=X>>18|240,$[q++]=X>>12&63|128,$[q++]=X>>6&63|128,$[q++]=X&63|128):($[q++]=X>>12|224,$[q++]=X>>6&63|128,$[q++]=X&63|128)}else for(H=0;H>>24|N>>>8&65280|N<<8&16711680|(N&255)<<24;return V>>>0}ur.htonl=s;function o(N,V){for(var $="",q=0;q>>0}return X}ur.join32=l;function d(N,V){for(var $=new Array(N.length*4),q=0,H=0;q>>24,$[H+1]=X>>>16&255,$[H+2]=X>>>8&255,$[H+3]=X&255):($[H+3]=X>>>24,$[H+2]=X>>>16&255,$[H+1]=X>>>8&255,$[H]=X&255)}return $}ur.split32=d;function f(N,V){return N>>>V|N<<32-V}ur.rotr32=f;function h(N,V){return N<>>32-V}ur.rotl32=h;function p(N,V){return N+V>>>0}ur.sum32=p;function m(N,V,$){return N+V+$>>>0}ur.sum32_3=m;function y(N,V,$,q){return N+V+$+q>>>0}ur.sum32_4=y;function g(N,V,$,q,H){return N+V+$+q+H>>>0}ur.sum32_5=g;function b(N,V,$,q){var H=N[V],X=N[V+1],Y=q+X>>>0,he=(Y>>0,N[V+1]=Y}ur.sum64=b;function v(N,V,$,q){var H=V+q>>>0,X=(H>>0}ur.sum64_hi=v;function _(N,V,$,q){var H=V+q;return H>>>0}ur.sum64_lo=_;function w(N,V,$,q,H,X,Y,he){var Te=0,Ne=V;Ne=Ne+q>>>0,Te+=Ne>>0,Te+=Ne>>0,Te+=Ne>>0}ur.sum64_4_hi=w;function E(N,V,$,q,H,X,Y,he){var Te=V+q+X+he;return Te>>>0}ur.sum64_4_lo=E;function O(N,V,$,q,H,X,Y,he,Te,Ne){var $e=0,de=V;de=de+q>>>0,$e+=de>>0,$e+=de>>0,$e+=de>>0,$e+=de>>0}ur.sum64_5_hi=O;function L(N,V,$,q,H,X,Y,he,Te,Ne){var $e=V+q+X+he+Ne;return $e>>>0}ur.sum64_5_lo=L;function F(N,V,$){var q=V<<32-$|N>>>$;return q>>>0}ur.rotr64_hi=F;function x(N,V,$){var q=N<<32-$|V>>>$;return q>>>0}ur.rotr64_lo=x;function P(N,V,$){return N>>>$}ur.shr64_hi=P;function j(N,V,$){var q=N<<32-$|V>>>$;return q>>>0}return ur.shr64_lo=j,ur}var KA={},d8;function E1(){if(d8)return KA;d8=1;var t=vs(),e=T1();function r(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}return KA.BlockHash=r,r.prototype.update=function(a,s){if(a=t.toArray(a,s),this.pending?this.pending=this.pending.concat(a):this.pending=a,this.pendingTotal+=a.length,this.pending.length>=this._delta8){a=this.pending;var o=a.length%this._delta8;this.pending=a.slice(a.length-o,a.length),this.pending.length===0&&(this.pending=null),a=t.join32(a,0,a.length-o,this.endian);for(var u=0;u>>24&255,u[c++]=a>>>16&255,u[c++]=a>>>8&255,u[c++]=a&255}else for(u[c++]=a&255,u[c++]=a>>>8&255,u[c++]=a>>>16&255,u[c++]=a>>>24&255,u[c++]=0,u[c++]=0,u[c++]=0,u[c++]=0,l=8;l>>3}Ga.g0_256=c;function l(d){return e(d,17)^e(d,19)^d>>>10}return Ga.g1_256=l,Ga}var JA,h8;function IEe(){if(h8)return JA;h8=1;var t=vs(),e=E1(),r=SY(),n=t.rotl32,a=t.sum32,s=t.sum32_5,o=r.ft_1,u=e.BlockHash,c=[1518500249,1859775393,2400959708,3395469782];function l(){if(!(this instanceof l))return new l;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}return t.inherits(l,u),JA=l,l.blockSize=512,l.outSize=160,l.hmacStrength=80,l.padLength=64,l.prototype._update=function(f,h){for(var p=this.W,m=0;m<16;m++)p[m]=f[h+m];for(;mthis.blockSize&&(a=new this.Hash().update(a).digest()),e(a.length<=this.blockSize);for(var s=a.length;sr.someTerms(O,L=>L.termType==="BlankNode"||L.termType==="Quad"&&r.getTermsNested(L).some(F=>F.termType==="BlankNode")))}Ut.getQuadsWithBlankNodes=l;function d(E){return E.filter(O=>r.everyTerms(O,L=>L.termType!=="BlankNode"&&!(L.termType==="Quad"&&r.getTermsNested(L).some(F=>F.termType==="BlankNode"))))}Ut.getQuadsWithoutBlankNodes=d;function f(E){const O={};for(const L of E)O[JSON.stringify(e.quadToStringQuad(L))]=!0;return O}Ut.indexGraph=f;function h(E){return Object.keys(E).map(O=>e.stringQuadToQuad(JSON.parse(O)))}Ut.deindexGraph=h;function p(E){return h(f(E))}Ut.uniqGraph=p;function m(E){return r.uniqTerms(E.map(O=>r.getBlankNodes(r.getTermsNested(O))).reduce((O,L)=>O.concat(L),[]))}Ut.getGraphBlankNodes=m;function y(E,O,L){const F=Object.assign({},L),x={};let P=!0;for(;P;){const j=Object.keys(F).length;for(const V of O){const $=e.termToString(V);if(!F[$]){const[q,H]=g(V,E,F);q&&(F[$]=H),x[$]=H}}const N={};for(const V in x){const $=x[V];N[$]===void 0?N[$]=V:N[$]=!1}for(const V in N){const $=N[V];$&&(F[$]=V)}P=j!==Object.keys(F).length}return[F,x]}Ut.hashTerms=y;function g(E,O,L){const F=[];let x=!0;for(const j of O){const N=r.getTermsNested(j);if(N.some(V=>V.equals(E))){F.push(v(j,L,E));for(const V of N)!w(V,L)&&!V.equals(E)&&(x=!1)}}const P=b(F.sort().join(""));return[x,P]}Ut.hashTerm=g;function b(E){return t.sha1().update(E).digest("hex")}Ut.sha1hex=b;function v(E,O,L){return r.getTerms(E).map(F=>_(F,O,L)).join("|")}Ut.quadToSignature=v;function _(E,O,L){return E.equals(L)?"@self":E.termType==="BlankNode"?O[e.termToString(E)]||"@blank":E.termType==="Quad"?`<${v(E,O,L)}>`:e.termToString(E)}Ut.termToSignature=_;function w(E,O){return E.termType!=="BlankNode"&&!(E.termType==="Quad"&&r.getTermsNested(E).some(L=>!w(L,O)))||!!O[e.termToString(E)]}return Ut.isTermGrounded=w,Ut}var T8;function MEe(){return T8||(T8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s),Object.defineProperty(n,o,{enumerable:!0,get:function(){return a[s]}})}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(jEe(),t)}(zA)),zA}var E8;function FEe(){if(E8)return Ku;E8=1;var t=I&&I.__createBinding||(Object.create?function(ee,Oe,De,Ue){Ue===void 0&&(Ue=De);var Ye=Object.getOwnPropertyDescriptor(Oe,De);(!Ye||("get"in Ye?!Oe.__esModule:Ye.writable||Ye.configurable))&&(Ye={enumerable:!0,get:function(){return Oe[De]}}),Object.defineProperty(ee,Ue,Ye)}:function(ee,Oe,De,Ue){Ue===void 0&&(Ue=De),ee[Ue]=Oe[De]}),e=I&&I.__setModuleDefault||(Object.create?function(ee,Oe){Object.defineProperty(ee,"default",{enumerable:!0,value:Oe})}:function(ee,Oe){ee.default=Oe}),r=I&&I.__importStar||function(ee){if(ee&&ee.__esModule)return ee;var Oe={};if(ee!=null)for(var De in ee)De!=="default"&&Object.prototype.hasOwnProperty.call(ee,De)&&t(Oe,ee,De);return e(Oe,ee),Oe},n=I&&I.__importDefault||function(ee){return ee&&ee.__esModule?ee:{default:ee}};Object.defineProperty(Ku,"__esModule",{value:!0}),Ku.toSparqlJs=Ku.toSparql=void 0;const a=MEe(),s=nr,o=ol,u=r(S1()),c=n(oT()),l=n($C()),d=u.types,f=u.expressionTypes;let h;const p=new c.default;function m(ee,Oe={}){return new o.Generator(Oe).stringify(y(ee))}Ku.toSparql=m;function y(ee){g(),ee=fe(ee);let Oe=b(ee);return Oe.type==="group"?Oe.patterns[0]:Oe}Ku.toSparqlJs=y;function g(){h={project:!1,extend:[],group:[],aggregates:[],order:[]}}function b(ee){switch(ee.type!==d.EXTEND&&ee.type!==d.ORDER_BY&&ee.type!==d.GRAPH&&(h.project=!1),ee.type){case d.EXPRESSION:return v(ee);case d.ASK:return Re(ee,d.ASK);case d.BGP:return V(ee);case d.CONSTRUCT:return $(ee);case d.DESCRIBE:return Re(ee,d.DESCRIBE);case d.DISTINCT:return q(ee);case d.EXTEND:return H(ee);case d.FROM:return X(ee);case d.FILTER:return Y(ee);case d.GRAPH:return he(ee);case d.GROUP:return Te(ee);case d.JOIN:return Ne(ee);case d.LEFT_JOIN:return $e(ee);case d.MINUS:return de(ee);case d.NOP:return{};case d.ORDER_BY:return ce(ee);case d.PATH:return xe(ee);case d.PATTERN:return Pe(ee);case d.PROJECT:return Re(ee,d.PROJECT);case d.REDUCED:return z(ee);case d.SERVICE:return M(ee);case d.SLICE:return k(ee);case d.UNION:return T(ee);case d.VALUES:return R(ee);case d.COMPOSITE_UPDATE:return _e(ee);case d.DELETE_INSERT:return Ie(ee);case d.LOAD:return Ee(ee);case d.CLEAR:return Me(ee);case d.CREATE:return Ce(ee);case d.DROP:return ke(ee);case d.ADD:return W(ee);case d.MOVE:return D(ee);case d.COPY:return B(ee)}throw new Error(`Unknown Operation type ${ee.type}`)}function v(ee){switch(ee.expressionType){case f.AGGREGATE:return E(ee);case f.EXISTENCE:return O(ee);case f.NAMED:return L(ee);case f.OPERATOR:return F(ee);case f.TERM:return x(ee);case f.WILDCARD:return P(ee)}throw new Error(`Unknown Expression Operation type ${ee.expressionType}`)}function _(ee){switch(ee.type){case d.ALT:return U(ee);case d.INV:return G(ee);case d.LINK:return Q(ee);case d.NPS:return Z(ee);case d.ONE_OR_MORE_PATH:return se(ee);case d.SEQ:return re(ee);case d.ZERO_OR_MORE_PATH:return le(ee);case d.ZERO_OR_ONE_PATH:return pe(ee)}throw new Error(`Unknown Path type ${ee.type}`)}function w(ee){return(0,s.termToString)(ee)}function E(ee){const Oe={expression:v(ee.expression),type:"aggregate",aggregation:ee.aggregator,distinct:ee.distinct};return ee.separator&&(Oe.separator=ee.separator),Oe}function O(ee){return{type:"operation",operator:ee.not?"notexists":"exists",args:[{type:"group",patterns:l.default.flatten([b(ee.input)])}]}}function L(ee){return{type:"functionCall",function:ee.name,args:ee.args.map(v)}}function F(ee){if(ee.operator==="desc"){const De={expression:v(ee.args[0])};return De.descending=!0,De}const Oe={type:"operation",operator:ee.operator,args:ee.args.map(v)};return(Oe.operator==="in"||Oe.operator==="notin")&&(Oe.args=[Oe.args[0]].concat([Oe.args.slice(1)])),Oe}function x(ee){return ee.term}function P(ee){return ee.wildcard}function j(ee){return Array.isArray(ee)?ee.length===1?ee[0]:{type:"group",patterns:ee}:ee}function N(ee){return ee}function V(ee){let Oe=ee.patterns.map(Pe);return Oe.length===0?null:{type:"bgp",triples:Oe}}function $(ee){return{type:"query",prefixes:{},queryType:"CONSTRUCT",template:ee.template.map(Pe),where:l.default.flatten([b(ee.input)])}}function q(ee){let Oe=b(ee.input);return Oe.patterns[0].distinct=!0,Oe}function H(ee){return h.project?(h.extend.push(ee),b(ee.input)):l.default.flatten([b(ee.input),{type:"bind",variable:ee.variable,expression:v(ee.expression)}])}function X(ee){const Oe=b(ee.input);let De=Oe;return Oe.type==="group"&&(De=Oe.patterns[0]),De.from={default:ee.default,named:ee.named},Oe}function Y(ee){return{type:"group",patterns:l.default.flatten([b(ee.input),{type:"filter",expression:v(ee.expression)}])}}function he(ee){return{type:"graph",patterns:l.default.flatten([b(ee.input)]),name:ee.name}}function Te(ee){const Oe=b(ee.input),De=ee.aggregates.map(N);return h.aggregates.push(...De),h.group.push(...ee.variables),Oe}function Ne(ee){return l.default.flatten(ee.input.map(b)).reduce((De,Ue)=>(Ue.type!=="bgp"||De.length==0||De[De.length-1].type!=="bgp"?De.push(Ue):De[De.length-1].triples.push(...Ue.triples),De),[])}function $e(ee){const Oe={type:"optional",patterns:[b(ee.input[1])]};return ee.expression&&Oe.patterns.push({type:"filter",expression:v(ee.expression)}),Oe.patterns=l.default.flatten(Oe.patterns),l.default.flatten([b(ee.input[0]),Oe])}function de(ee){let Oe=b(ee.input[1]);return Oe.type==="group"&&(Oe=Oe.patterns),Array.isArray(Oe)||(Oe=[Oe]),l.default.flatten([b(ee.input[0]),{type:"minus",patterns:Oe}])}function ce(ee){return h.order.push(...ee.expressions),b(ee.input)}function xe(ee){return{type:"bgp",triples:[{subject:ee.subject,predicate:_(ee.predicate),object:ee.object}]}}function Pe(ee){return{subject:ee.subject,predicate:ee.predicate,object:ee.object}}function we(ee,Oe){let De=l.default.isSimpleTerm(ee)?w(ee):ee;if(typeof De=="string"){if(Oe[De])return Oe[De]}else if(Array.isArray(ee))ee=ee.map(Ue=>we(Ue,Oe));else for(let Ue of Object.keys(ee))ee[Ue]=we(ee[Ue],Oe);return ee}function Re(ee,Oe){const De={type:"query",prefixes:{}},Ue=De;let Ye;Oe===d.PROJECT?(De.queryType="SELECT",Ye=ee.variables):Oe===d.ASK?De.queryType="ASK":Oe===d.DESCRIBE&&(De.queryType="DESCRIBE",Ye=ee.terms);const ut=h.extend,at=h.group,ct=h.aggregates,ht=h.order;g(),h.project=!0;let te=l.default.flatten([b(ee.input)]);te.length===1&&te[0].type==="group"&&(te=te[0].patterns),De.where=te;let S={};for(let C of h.aggregates)S[w(C.variable)]=v(C);let A={};for(let C=h.extend.length-1;C>=0;--C){let J=h.extend[C];A[w(J.variable)]=we(v(J.expression),S)}if(h.group.length>0&&(Ue.group=h.group.map(C=>{let J=w(C);if(A[J]){let ie=A[J];return delete A[J],{variable:C,expression:ie}}return{expression:C}})),h.order.length>0&&(Ue.order=h.order.map(b).map(C=>C.descending?C:{expression:C})),Ye&&(Ue.variables=Ye.map(C=>{let J=w(C);return A[J]?{variable:C,expression:A[J]}:C}),Ue.variables.length===0&&(Ue.variables=[new o.Wildcard])),De.where.length>0&&De.where[De.where.length-1].type==="filter"){const C=De.where[De.where.length-1];Se(C,Object.keys(S))&&(Ue.having=l.default.flatten([we(C.expression,S)]),De.where.splice(-1))}return h.extend=ut,h.group=at,h.aggregates=ct,h.order=ht,{type:"group",patterns:[Ue]}}function Se(ee,Oe){return l.default.isSimpleTerm(ee)?Oe.indexOf(w(ee))>=0:Array.isArray(ee)?ee.some(De=>Se(De,Oe)):ee===Object(ee)?Object.keys(ee).some(De=>Se(ee[De],Oe)):Oe.indexOf(ee)>=0}function z(ee){let Oe=b(ee.input);return Oe.patterns[0].reduced=!0,Oe}function M(ee){let Oe=b(ee.input);return Oe.type==="group"&&(Oe=Oe.patterns),Array.isArray(Oe)||(Oe=[Oe]),{type:"service",name:ee.name,silent:ee.silent,patterns:Oe}}function k(ee){let Oe=b(ee.input),De=Oe;return Oe.type&&Oe.type==="group"&&(De=Oe.patterns[0]),ee.start!==0&&(De.offset=ee.start),ee.length!==void 0&&(De.limit=ee.length),Oe}function T(ee){return{type:"union",patterns:ee.input.map(b).map(j)}}function R(ee){return{type:"values",values:ee.bindings.map(Oe=>{let De={};for(let Ue of ee.variables){let Ye=`?${Ue.value}`;Oe[Ye]?De[Ye]=Oe[Ye]:De[Ye]=void 0}return De})}}function U(ee){const Oe=ee.input.map(_);return Oe.every(De=>"pathType"in De&&De.pathType==="!")?{type:"path",pathType:"!",items:[{type:"path",pathType:"|",items:l.default.flatten(Oe.map(De=>De.items))}]}:{type:"path",pathType:"|",items:Oe}}function G(ee){if(ee.path.type===d.NPS){const Oe=ee.path.iris.map(De=>({type:"path",pathType:"^",items:[De]}));return Oe.length<=1?{type:"path",pathType:"!",items:Oe}:{type:"path",pathType:"!",items:[{type:"path",pathType:"|",items:Oe}]}}return{type:"path",pathType:"^",items:[_(ee.path)]}}function Q(ee){return ee.iri}function Z(ee){return ee.iris.length<=1?{type:"path",pathType:"!",items:ee.iris}:{type:"path",pathType:"!",items:[{type:"path",pathType:"|",items:ee.iris}]}}function se(ee){return{type:"path",pathType:"+",items:[_(ee.path)]}}function re(ee){return{type:"path",pathType:"/",items:ee.input.map(_)}}function le(ee){return{type:"path",pathType:"*",items:[_(ee.path)]}}function pe(ee){return{type:"path",pathType:"?",items:[_(ee.path)]}}function _e(ee){const Oe=ee.updates.map(De=>b(De).updates[0]);return{prefixes:{},type:"update",updates:Oe}}function Ie(ee){var Oe;let De=ee.where,Ue;if(De&&De.type===d.FROM){let ut=De;De=ut.input,Ue={default:ut.default,named:ut.named}}const Ye=[{updateType:"insertdelete",delete:ne(ee.delete||[]),insert:ne(ee.insert||[])}];if(Ue&&(Ye[0].using=Ue),!De||De.type===d.BGP&&De.patterns.length===0)Ye[0].where=[];else{const ut=[];let at=b(ge(De,ut));if(at.type==="group"?Ye[0].where=at.patterns:Ye[0].where=[at],ut.length>0){if(ut.length!==1)throw new Error("This is unexpected and might indicate an error in graph handling for updates.");((Oe=ut[0])===null||Oe===void 0?void 0:Oe.value)!==""&&(Ye[0].where=[{type:"graph",patterns:Ye[0].where,name:ut[0]}])}}return!ee.delete&&!ee.where?(Ye[0].updateType="insert",delete Ye[0].delete,delete Ye[0].where):!ee.insert&&!ee.where?(delete Ye[0].insert,delete Ye[0].where,ee.delete.some(ut=>ut.subject.termType==="Variable"||ut.predicate.termType==="Variable"||ut.object.termType==="Variable")?Ye[0].updateType="deletewhere":Ye[0].updateType="delete"):!ee.insert&&ee.where&&ee.where.type==="bgp"&&(0,a.isomorphic)(ee.delete,ee.where.patterns)&&(delete Ye[0].where,Ye[0].updateType="deletewhere"),{prefixes:{},type:"update",updates:Ye}}function Ee(ee){const Oe=[{type:"load",silent:!!ee.silent,source:ee.source}];return ee.destination&&(Oe[0].destination=ee.destination),{prefixes:{},type:"update",updates:Oe}}function Me(ee){return qe(ee,"clear")}function Ce(ee){return qe(ee,"create")}function ke(ee){return qe(ee,"drop")}function qe(ee,Oe){const De=[{type:Oe,silent:!!ee.silent}];return ee.source==="DEFAULT"?De[0].graph={default:!0}:ee.source==="NAMED"?De[0].graph={named:!0}:ee.source==="ALL"?De[0].graph={all:!0}:De[0].graph={type:"graph",name:ee.source},{prefixes:{},type:"update",updates:De}}function W(ee){return K(ee,"add")}function D(ee){return K(ee,"move")}function B(ee){return K(ee,"copy")}function K(ee,Oe){const De=[{type:Oe,silent:!!ee.silent}];return De[0].source=ee.source==="DEFAULT"?{type:"graph",default:!0}:{type:"graph",name:ee.source},De[0].destination=ee.destination==="DEFAULT"?{type:"graph",default:!0}:{type:"graph",name:ee.destination},{prefixes:{},type:"update",updates:De}}function ne(ee){if(!ee)return[];const Oe={};return ee.forEach(De=>{const Ue=De.graph.value;Oe[Ue]||(Oe[Ue]=[]),Oe[Ue].push(De)}),Object.keys(Oe).map(De=>De===""?{type:"bgp",triples:Oe[De].map(Pe)}:{type:"graph",triples:Oe[De].map(Pe),name:Oe[De][0].graph})}function fe(ee){return ge(ee,[])}function ge(ee,Oe){if(Array.isArray(ee))return ee.map(at=>ge(at,Oe));if(!ee.type||ee.type===d.DELETE_INSERT)return ee;if((ee.type===d.PATTERN||ee.type===d.PATH)&&ee.graph)return Oe.push(ee.graph),ee.graph.name!==""?ee.type===d.PATTERN?p.createPattern(ee.subject,ee.predicate,ee.object):p.createPath(ee.subject,ee.predicate,ee.object):ee;const De={},Ue={},Ye={};for(let at of Object.keys(ee)){const ct=[];if(De[at]=ge(ee[at],ct),ct.length>0){Ue[at]=ct;for(const ht of ct)Ye[ht.value]=ht}}const ut=Object.keys(Ye);if(ut.length>0)if(ut.length===1&&![d.PROJECT,d.SERVICE].includes(ee.type))Oe.push(Ye[ut[0]]);else{if(ee.type===d.BGP)return Le(ee,Ue.patterns);for(let at of Object.keys(Ue)){const ct=De[at];Array.isArray(ct)?De[at]=ct.map((ht,te)=>Ue[at][0].value===""?ht:p.createGraph(ht,Ue[at][te])):Ue[at][0].value!==""&&(De[at]=p.createGraph(ct,Ue[at][0]))}}return De}function Le(ee,Oe){var De;const Ue={};for(let at=0;atd.termType==="Variable")?(0,r.mapTermsNested)(c,d=>o(d,l)):c}Wu.materializeTerm=o;function u(c,l,d,f={}){return f={strictTargetVariables:"strictTargetVariables"in f?f.strictTargetVariables:!1,bindFilter:"bindFilter"in f?f.bindFilter:!0},n.Util.mapOperation(c,{path(h,p){return{recurse:!1,result:Object.assign(p.createPath(o(h.subject,l),h.predicate,o(h.object,l),o(h.graph,l)),{metadata:h.metadata})}},pattern(h,p){return{recurse:!1,result:Object.assign(p.createPattern(o(h.subject,l),o(h.predicate,l),o(h.object,l),o(h.graph,l)),{metadata:h.metadata})}},extend(h){if(l.has(h.variable)){if(f.strictTargetVariables)throw new Error(`Tried to bind variable ${(0,e.termToString)(h.variable)} in a BIND operator.`);return{recurse:!0,result:u(h.input,l,d,f)}}return{recurse:!0,result:h}},group(h,p){if(f.strictTargetVariables){for(const y of h.variables)if(l.has(y))throw new Error(`Tried to bind variable ${(0,e.termToString)(y)} in a GROUP BY operator.`);return{recurse:!0,result:h}}const m=h.variables.filter(y=>!l.has(y));return{recurse:!0,result:p.createGroup(h.input,m,h.aggregates)}},project(h,p){if(f.strictTargetVariables){for(const g of h.variables)if(l.has(g))throw new Error(`Tried to bind variable ${(0,e.termToString)(g)} in a SELECT operator.`);return{recurse:!0,result:h}}const m=h.variables.filter(g=>!l.has(g)),y=d.bindings(h.variables.map(g=>{const b=l.get(g);if(b)return[g,b]}).filter(Boolean));return{recurse:!1,result:p.createProject(u(h.input,y,d,f),m)}},values(h,p){if(f.strictTargetVariables){for(const m of h.variables)if(l.has(m))throw new Error(`Tried to bind variable ${(0,e.termToString)(m)} in a VALUES operator.`)}else{const m=h.variables.filter(g=>!l.has(g)),y=h.bindings.map(g=>{const b={...g};let v=!0;return l.forEach((_,w)=>{const E=(0,e.termToString)(w);E in b&&(_.equals(b[E])||(v=!1),delete b[E])}),v?b:void 0}).filter(Boolean);return{recurse:!0,result:p.createValues(m,y)}}return{recurse:!1,result:h}},expression(h,p){if(!f.bindFilter)return{recurse:!1,result:h};if(h.expressionType==="term")return{recurse:!1,result:p.createTermExpression(o(h.term,l))};if(h.expressionType==="operator")return h.operator==="bound"&&h.args.length===1&&h.args[0].expressionType==="term"&&[...l.keys()].some(m=>h.args[0].term.equals(m))?{recurse:!1,result:p.createTermExpression(s)}:{recurse:!0,result:h};if(h.expressionType==="aggregate"&&"variable"in h&&l.has(h.variable)){if(f.strictTargetVariables)throw new Error(`Tried to bind ${(0,e.termToString)(h.variable)} in a ${h.aggregator} aggregate.`);return{recurse:!0,result:h}}return{recurse:!0,result:h}}})}return Wu.materializeOperation=u,Wu}var R8;function OY(){if(R8)return nh;R8=1,Object.defineProperty(nh,"__esModule",{value:!0}),nh.ActorQueryOperation=void 0;const t=qt,e=st,r=qC(),n=AY();let a=0,s=class Ja extends e.Actor{constructor(u){super(u)}static getSafeBindings(u){return Ja.validateQueryOutput(u,"bindings"),u}static getSafeQuads(u){return Ja.validateQueryOutput(u,"quads"),u}static getSafeBoolean(u){return Ja.validateQueryOutput(u,"boolean"),u}static getSafeVoid(u){return Ja.validateQueryOutput(u,"void"),u}static validateQueryOutput(u,c){if(u.type!==c)throw new Error(`Invalid query output type: Expected '${c}' but got '${u.type}'`)}static getBaseExpressionContext(u){const c=u.get(t.KeysInitQuery.queryTimestamp),l=u.get(t.KeysInitQuery.baseIRI),d=u.get(t.KeysInitQuery.functionArgumentsCache)??{};if(u.has(t.KeysInitQuery.extensionFunctionCreator)&&u.has(t.KeysInitQuery.extensionFunctions))throw new Error("Illegal simultaneous usage of extensionFunctionCreator and extensionFunctions in context");let f=u.get(t.KeysInitQuery.extensionFunctionCreator);const h=u.get(t.KeysInitQuery.extensionFunctions);return h&&(f=p=>h[p.value]),{now:c,baseIRI:l,extensionFunctionCreator:f,functionArgumentsCache:d}}static getExpressionContext(u,c){return{...this.getBaseExpressionContext(u),bnode:l=>new r.BlankNodeBindingsScoped(l??`BNODE_${a++}`)}}static getAsyncExpressionContext(u,c,l){return{...this.getBaseExpressionContext(u),bnode:d=>Promise.resolve(new r.BlankNodeBindingsScoped(d??`BNODE_${a++}`)),exists:Ja.createExistenceResolver(u,c,l)}}static createExistenceResolver(u,c,l){return async(d,f)=>{const h=(0,n.materializeOperation)(d.input,f,l),p=await c.mediate({operation:h,context:u}),m=Ja.getSafeBindings(p);return d.not!==((await m.bindingsStream.take(1).toArray()).length===1)}}static throwOnReadOnly(u){if(u.get(t.KeysQueryOperation.readOnly))throw new Error("Attempted a write operation in read-only mode")}static getOperationSource(u){var c;return(c=u.metadata)==null?void 0:c.scopedSource}static assignOperationSource(u,c){return u={...u},u.metadata=u.metadata?{...u.metadata}:{},u.metadata.scopedSource=c,u}static removeOperationSource(u){var c;(c=u.metadata)==null||delete c.scopedSource,u.metadata&&Object.keys(u.metadata).length===0&&delete u.metadata}static doesShapeAcceptOperation(u,c,l){return u.type==="conjunction"?u.children.every(d=>Ja.doesShapeAcceptOperation(d,c,l)):u.type==="disjunction"?u.children.some(d=>Ja.doesShapeAcceptOperation(d,c,l)):u.type==="arity"?Ja.doesShapeAcceptOperation(u.child,c,l):((l==null?void 0:l.joinBindings)&&!u.joinBindings)??((l==null?void 0:l.filterBindings)&&!u.filterBindings)?!1:u.operation.operationType==="type"?u.operation.type==="project"||u.operation.type===c.type:u.operation.pattern.type===c.type}};return nh.ActorQueryOperation=s,nh}var sh={},n3={},oh={},x8;function BEe(){if(x8)return oh;x8=1,Object.defineProperty(oh,"__esModule",{value:!0}),oh.MetadataValidationState=void 0;let t=class{constructor(){this.invalidateListeners=[],this.valid=!0}addInvalidateListener(r){this.invalidateListeners.push(r)}invalidate(){if(this.valid){this.valid=!1;for(const r of this.invalidateListeners)r()}}};return oh.MetadataValidationState=t,oh}var xi={},I8;function qEe(){if(I8)return xi;I8=1,Object.defineProperty(xi,"__esModule",{value:!0}),xi.cachifyMetadata=xi.validateMetadataBindings=xi.validateMetadataQuads=xi.getMetadataBindings=xi.getMetadataQuads=void 0;function t(s){return a(()=>new Promise((o,u)=>{s.getProperty("metadata",c=>o(c)),s.on("error",u)}).then(o=>r(o)))}xi.getMetadataQuads=t;function e(s){return a(()=>new Promise((o,u)=>{s.getProperty("metadata",c=>o(c)),s.on("error",u)}).then(o=>("canContainUndefs"in o||(o.canContainUndefs=!1),n(o))))}xi.getMetadataBindings=e;function r(s){for(const o of["cardinality"])if(!(o in s))throw new Error(`Invalid metadata: missing ${o} in ${JSON.stringify(s)}`);return s}xi.validateMetadataQuads=r;function n(s){for(const o of["cardinality","canContainUndefs","variables"])if(!(o in s))throw new Error(`Invalid metadata: missing ${o} in ${JSON.stringify(s)}`);return s}xi.validateMetadataBindings=n;function a(s){let o;return()=>(o||(o=s(),o.then(u=>u.state.addInvalidateListener(()=>{o=void 0})).catch(()=>{})),o)}return xi.cachifyMetadata=a,xi}var P8;function ci(){return P8||(P8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(BEe(),t),r(qEe(),t)}(n3)),n3}var N8;function RY(){if(N8)return sh;N8=1,Object.defineProperty(sh,"__esModule",{value:!0}),sh.ActorQueryOperationTyped=void 0;const t=qt,e=ci(),r=OY();let n=class extends r.ActorQueryOperation{constructor(s,o){if(super({...s,operationName:o}),!this.operationName)throw new Error('A valid "operationName" argument must be provided.')}async test(s){if(!s.operation)throw new Error("Missing field 'operation' in a query operation action.");if(s.operation.type!==this.operationName)throw new Error(`Actor ${this.name} only supports ${this.operationName} operations, but got ${s.operation.type}`);const o=s.operation;return this.testOperation(o,s.context)}async run(s){const o=s.context.get(t.KeysInitQuery.physicalQueryPlanLogger);o&&(o.logOperation(s.operation.type,void 0,s.operation,s.context.get(t.KeysInitQuery.physicalQueryPlanNode),this.name,{}),s.context=s.context.set(t.KeysInitQuery.physicalQueryPlanNode,s.operation));const u=s.operation,c=s.context.set(t.KeysQueryOperation.operation,u),l=await this.runOperation(u,c);return"metadata"in l&&(l.metadata=(0,e.cachifyMetadata)(l.metadata)),l}};return sh.ActorQueryOperationTyped=n,sh}var uh={},D8;function $Ee(){if(D8)return uh;D8=1,Object.defineProperty(uh,"__esModule",{value:!0}),uh.ActorQueryOperationTypedMediated=void 0;const t=RY();let e=class extends t.ActorQueryOperationTyped{constructor(n,a){super(n,a)}};return uh.ActorQueryOperationTypedMediated=e,uh}var ch={},C8;function UEe(){if(C8)return ch;C8=1,Object.defineProperty(ch,"__esModule",{value:!0}),ch.BusQueryOperation=void 0;const t=st;let e=class extends t.BusIndexed{constructor(n){super({...n,actorIdentifierFields:["operationName"],actionIdentifierFields:["operation","type"]})}};return ch.BusQueryOperation=e,ch}var lh={},Mt={},uT={};Object.defineProperty(uT,"__esModule",{value:!0});uT.LinkedList=void 0;class kEe{constructor(){this._length=0,this._head=null,this._tail=null}get length(){return this._length}get first(){var e;return(e=this._head)===null||e===void 0?void 0:e.value}get last(){var e;return(e=this._tail)===null||e===void 0?void 0:e.value}get empty(){return this._head===null}push(e){const r={value:e,next:null};this._tail===null?this._head=this._tail=r:this._tail.next=this._tail=r,this._length++}shift(){if(this._head===null)return;const{value:e,next:r}=this._head;return this._head=r,r===null&&(this._tail=null),this._length--,e}clear(){this._length=0,this._head=this._tail=null}}uT.LinkedList=kEe;var cT={};Object.defineProperty(cT,"__esModule",{value:!0});cT.createTaskScheduler=void 0;const VEe=Promise.resolve(void 0);function HEe(){const t=typeof queueMicrotask=="function"?queueMicrotask:a=>VEe.then(a),e=typeof setImmediate=="function"?setImmediate:a=>setTimeout(a,0);let r=0,n=null;return a=>{n!==null?n.push(a):++r<100?t(a):(n=[a],e(()=>{for(const s of n)t(s);n=null,r=0}))}}cT.createTaskScheduler=HEe;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.isIterator=t.isIterable=t.isSourceExpression=t.isPromise=t.isEventEmitter=t.isFunction=t.range=t.union=t.fromIterable=t.fromIterator=t.fromArray=t.single=t.empty=t.wrap=t.WrappingIterator=t.ClonedIterator=t.UnionIterator=t.MultiTransformIterator=t.SimpleTransformIterator=t.TransformIterator=t.BufferedIterator=t.MappingIterator=t.DESTINATION=t.identity=t.IntegerIterator=t.ArrayIterator=t.SingletonIterator=t.EmptyIterator=t.AsyncIterator=t.DESTROYED=t.ENDED=t.CLOSED=t.CLOSING=t.OPEN=t.INIT=t.setTaskScheduler=t.getTaskScheduler=t.scheduleTask=t.LinkedList=void 0;const e=Xb,r=uT;Object.defineProperty(t,"LinkedList",{enumerable:!0,get:function(){return r.LinkedList}});let a=cT.createTaskScheduler();function s(k){a(k)}t.scheduleTask=s;function o(){return a}t.getTaskScheduler=o;function u(k){a=k}t.setTaskScheduler=u,t.INIT=1,t.OPEN=2,t.CLOSING=4,t.CLOSED=8,t.ENDED=16,t.DESTROYED=32;class c extends e.EventEmitter{constructor(T=t.OPEN){super(),this._readable=!1,this._state=T,this.on("newListener",l)}_changeState(T,R=!1){const U=T>this._state&&this._statethis.emit("end")):this.emit("end"))),U}read(){return null}forEach(T,R){this.on("data",xe(T,R))}close(){this._changeState(t.CLOSED)&&this._endAsync()}destroy(T){this.done||this._destroy(T,R=>{T=T||R,T&&this.emit("error",T),this._end(!0)})}_destroy(T,R){R()}_end(T=!1){this._changeState(T?t.DESTROYED:t.ENDED)&&(this._readable=!1,this.removeAllListeners("readable"),this.removeAllListeners("data"),this.removeAllListeners("end"))}_endAsync(){a(()=>this._end())}get readable(){return this._readable}set readable(T){T=!!T&&!this.done,this._readable!==T&&(this._readable=T,T&&a(()=>this.emit("readable")))}get closed(){return this._state>=t.CLOSING}get ended(){return this._state===t.ENDED}get destroyed(){return this._state===t.DESTROYED}get done(){return this._state>=t.ENDED}toString(){const T=this._toStringDetails();return`[${this.constructor.name}${T?` ${T}`:""}]`}_toStringDetails(){return""}toArray(T){const R=[],U=typeof(T==null?void 0:T.limit)=="number"?T.limit:1/0;return this.ended||U<=0?Promise.resolve(R):new Promise((G,Q)=>{const Z=()=>G(R),se=re=>{R.push(re),R.length>=U&&(this.removeListener("error",Q),this.removeListener("data",se),this.removeListener("end",Z),G(R))};this.on("error",Q),this.on("data",se),this.on("end",Z)})}getProperty(T,R){const U=this._properties;if(!R)return U&&U[T];if(U&&T in U)a(()=>R(U[T]));else{let G;(G=this._propertyCallbacks)||(this._propertyCallbacks=G=Object.create(null)),T in G?G[T].push(R):G[T]=[R]}}setProperty(T,R){const U=this._properties||(this._properties=Object.create(null));U[T]=R;const G=this._propertyCallbacks||{},Q=G[T];if(Q){delete G[T],a(()=>{for(const Z of Q)Z(R)});for(T in G)return;delete this._propertyCallbacks}}getProperties(){const T=this._properties,R={};for(const U in T)R[U]=T[U];return R}setProperties(T){for(const R in T)this.setProperty(R,T[R])}copyProperties(T,R){for(const U of R)T.getProperty(U,G=>this.setProperty(U,G))}transform(T){return new P(this,T)}map(T,R){return new b(this,xe(T,R))}filter(T,R){return this.map(function(U){return T.call(R||this,U)?U:null})}uniq(T=g){const R=new Set;return this.filter(function(U){const G=T.call(this,U);return R.has(G)?!1:(R.add(G),!0)})}prepend(T){return this.transform({prepend:T})}append(T){return this.transform({append:T})}surround(T,R){return this.transform({prepend:T,append:R})}skip(T){return this.map(R=>T-- >0?null:R)}take(T){return this.transform({limit:T})}range(T,R){return this.transform({offset:T,limit:Math.max(R-T+1,0)})}clone(){return new $(this)}[Symbol.asyncIterator](){const T=this;let R=null,U=null,G=null;T.addListener("readable",Q),T.addListener("end",Q),T.addListener("error",Z);function Q(){if(R!==null)if(G!==null)Z(G);else if(T.done)R({done:!0,value:void 0}),R=U=null,se();else{const re=T.read();re!==null&&(R({done:!1,value:re}),R=U=null)}}function Z(re){U!==null?(U(re),R=U=G=null,se()):G===null&&(G=re)}function se(){T.removeListener("readable",Q),T.removeListener("end",Q),T.removeListener("error",Z)}return{next(){return new Promise((re,le)=>{R=re,U=le,Q()})}}}}t.AsyncIterator=c;function l(k){k==="data"&&(this.removeListener("newListener",l),f(this,"readable",d),this.readable&&a(()=>d.call(this)))}function d(){let k;for(;this.listenerCount("data")!==0&&(k=this.read())!==null;)this.emit("data",k);this.listenerCount("data")===0&&!this.done&&(this.removeListener("readable",d),f(this,"newListener",l))}function f(k,T,R){k.listeners(T).includes(R)||k.on(T,R)}class h extends c{constructor(){super(),this._changeState(t.ENDED,!0)}}t.EmptyIterator=h;class p extends c{constructor(T){super(),this._item=T,T===null?this.close():this.readable=!0}read(){const T=this._item;return this._item=null,this.close(),T}_toStringDetails(){return this._item===null?"":`(${this._item})`}}t.SingletonIterator=p;class m extends c{constructor(T=[],{autoStart:R=!0,preserve:U=!0}={}){super();const G=U||!Array.isArray(T)?[...T]:T;this._index=0,this._sourceStarted=R!==!1,this._truncateThreshold=U?-1:64,this._sourceStarted&&G.length===0?this.close():this._buffer=G,this.readable=!0}read(){this._sourceStarted||(this._sourceStarted=!0);let T=null;return this._buffer&&(this._index=R&&this.close(),Promise.resolve(Q)}}t.ArrayIterator=m;class y extends c{constructor({start:T=0,step:R=1,end:U}={}){super(),Number.isFinite(T)&&(T=Math.trunc(T)),this._next=T,Number.isFinite(R)&&(R=Math.trunc(R)),this._step=R;const G=R>=0,Q=G?1/0:-1/0;Number.isFinite(U)?U=Math.trunc(U):U!==-Q&&(U=Q),this._last=U,!Number.isFinite(T)||(G?T>U:T=0?G>U:Gthis._init(R)),this._sourceStarted=R!==!1}get maxBufferSize(){return this._maxBufferSize}set maxBufferSize(T){T!==1/0&&(T=Number.isFinite(T)?Math.max(Math.trunc(T),1):4),this._maxBufferSize!==T&&(this._maxBufferSize=T,this._state===t.OPEN&&this._fillBuffer())}_init(T){let R=!1;this._reading=!0,this._begin(()=>{if(R)throw new Error("done callback called multiple times");R=!0,this._reading=!1,this._changeState(t.OPEN),T?this._fillBufferAsync():this.readable=!0})}_begin(T){T()}read(){if(this.done)return null;this._sourceStarted||(this._sourceStarted=!0);const T=this._buffer;let R;return T.empty?(R=null,this.readable=!1):R=T.shift(),!this._reading&&T.length0&&(this._pushedCount=0,this._reading=!0,this._read(T,()=>{if(!T)throw new Error("done callback called multiple times");T=0,this._reading=!1,this.closed?this._completeClose():this._pushedCount&&(this.readable=!0,this._buffer.length{this._reading=!1,this._fillBuffer()}))}close(){this._reading?this._changeState(t.CLOSING):this._completeClose()}_completeClose(){this._changeState(t.CLOSED)&&(this._reading=!0,this._flush(()=>{if(!this._reading)throw new Error("done callback called multiple times");this._reading=!1,this._buffer.empty&&this._endAsync()}))}_destroy(T,R){this._buffer.clear(),R()}_flush(T){T()}_toStringDetails(){const T=this._buffer;return`{${T.empty?"":`next: ${T.first}, `}buffer: ${T.length}}`}}t.BufferedIterator=_;class w extends _{constructor(T,R=T||{}){super(R),this._boundPush=U=>this._push(U),Se(T)||(T=R.source),we(T)?this.source=T:T&&(this._createSource=Re(T)?()=>T:T,this._sourceStarted&&this._loadSourceAsync()),this._optional=!!R.optional,this._destroySource=R.destroySource!==!1}get source(){return Pe(this._createSource)&&this._loadSourceAsync(),this._source}set source(T){const R=this._source=this._validateSource(T);R[t.DESTINATION]=this,this.done?this._destroySource&&R.destroy():R.done?this.close():(R.on("end",F),R.on("readable",x),R.on("error",O))}_loadSourceAsync(){Pe(this._createSource)&&(Promise.resolve(this._createSource()).then(T=>{delete this._createSource,this.source=T,this._fillBuffer()},T=>this.emit("error",T)),this._createSource=null)}_validateSource(T,R=!1){if(this._source||typeof this._createSource<"u")throw new Error("The source cannot be changed after it has been set");return v(T,R)}_read(T,R){const U=()=>{this._pushedCountthis._readAndTransform(U,R)):R()};this._readAndTransform(U,R)}_readAndTransform(T,R){let U;const G=this.source;!G||G.done||(U=G.read())===null?R():this._optional?this._optionalTransform(U,T):this._transform(U,T,this._boundPush)}_optionalTransform(T,R){const U=this._pushedCount;this._transform(T,()=>{U===this._pushedCount&&this._push(T),R()},this._boundPush)}_transform(T,R,U){U(T),R()}_closeWhenDone(){this.close()}_end(T){const R=this._source;R&&(R.removeListener("end",F),R.removeListener("error",O),R.removeListener("readable",x),delete R[t.DESTINATION],this._destroySource&&R.destroy()),super._end(T)}}t.TransformIterator=w;function E(){this[t.DESTINATION].readable=!0}function O(k){this[t.DESTINATION].emit("error",k)}function L(){this[t.DESTINATION].close()}function F(){this[t.DESTINATION]._closeWhenDone()}function x(){this[t.DESTINATION]._sourceStarted!==!1&&this[t.DESTINATION]._fillBuffer()}class P extends w{constructor(T,R){if(super(T,R),this._offset=0,this._limit=1/0,this._filter=U=>!0,R=R||(Se(T)?null:T),R){const U=Pe(R)?R:R.transform,{limit:G,offset:Q,filter:Z,map:se,prepend:re,append:le}=R;Q===1/0||G===-1/0?this._limit=0:(Number.isFinite(Q)&&(this._offset=Math.max(Math.trunc(Q),0)),Number.isFinite(G)&&(this._limit=Math.max(Math.trunc(G),0)),Pe(Z)&&(this._filter=Z),Pe(se)&&(this._map=se),this._transform=Pe(U)?U:null),re&&(this._prepender=we(re)?re:Te(re)),le&&(this._appender=we(le)?le:Te(le))}}_read(T,R){const U=()=>this._readAndTransformSimple(T,G,R);this._readAndTransformSimple(T,G,R);function G(){a(U)}}_readAndTransformSimple(T,R,U){let G;const{source:Q}=this;if(!Q||Q.done){U();return}for(this._limit===0&&this.close();!this.closed&&this._pushedCount"u"?G:this._map(G);if(Z===null)this._optional&&this._push(G);else if(!Pe(this._transform))this._push(Z);else{this._optional?this._optionalTransform(Z,R):this._transform(Z,R,this._boundPush);return}--this._limit===0&&this.close()}U()}_begin(T){this._insert(this._prepender,T),delete this._prepender}_flush(T){this._insert(this._appender,T),delete this._appender}_insert(T,R){const U=Q=>this._push(Q);!T||T.done?R():(T.on("data",U),T.on("end",G));function G(){T.removeListener("data",U),T.removeListener("end",G),R()}}}t.SimpleTransformIterator=P;class j extends w{constructor(T,R){if(super(T,R),this._transformerQueue=[],R){const U=Pe(R)?R:R.multiTransform;U&&(this._createTransformer=U)}}_read(T,R){const U=this._transformerQueue,G=this._optional;let Q,Z;for(;(Q=U[0])&&Q.transformer.done;){G&&Q.item!==null&&(T--,this._push(Q.item)),U.shift();const{transformer:re}=Q;re.removeListener("end",x),re.removeListener("readable",x),re.removeListener("error",O)}const{source:se}=this;for(;se&&!se.done&&U.length0&&(Z=re.read())!==null;)this._push(Z),G&&(Q.item=null)}else se&&se.done&&this.close();R()}_createTransformer(T){return new p(T)}_closeWhenDone(){this._transformerQueue.length||this.close()}_end(T){if(super._end(T),this._destroySource)for(const R of this._transformerQueue)R.transformer.destroy()}}t.MultiTransformIterator=j;class N extends _{constructor(T,R={}){super(R),this._sources=[],this._currentSource=-1;const U=R.autoStart!==!1;if(we(T))T.on("error",G=>this.emit("error",G)),this._pending={loading:!1,sources:T},U&&this._loadSources();else if(Array.isArray(T)&&T.length>0)for(const G of T)this._addSource(G);else U&&this.close();this._destroySources=R.destroySources!==!1}_loadSources(){const T=this._pending.sources;this._pending.loading=!0,T.done?(delete this._pending,this.close()):(T.on("data",R=>{this._addSource(R),this._fillBufferAsync()}),T.on("end",()=>{delete this._pending,this._fillBuffer()}))}_addSource(T){Re(T)&&(T=X(T)),T.done||(this._sources.push(T),T[t.DESTINATION]=this,T.on("error",O),T.on("readable",x),T.on("end",V))}_removeEmptySources(){this._sources=this._sources.filter((T,R)=>(T.done&&R<=this._currentSource&&this._currentSource--,!T.done)),this._fillBuffer()}_read(T,R){var U;((U=this._pending)===null||U===void 0?void 0:U.loading)===!1&&this._loadSources();let G=0,Q;for(;G!==(G=T);)for(let Z=0;Z0;Z++)this._currentSource=(this._currentSource+1)%this._sources.length,(Q=this._sources[this._currentSource].read())!==null&&(T--,this._push(Q));!this._pending&&this._sources.length===0&&this.close(),R()}_end(T=!1){if(super._end(T),this._destroySources){for(const R of this._sources)R.destroy();this._pending&&(this._pending.sources.destroy(),delete this._pending)}}}t.UnionIterator=N;function V(){this[t.DESTINATION]._removeEmptySources()}class $ extends w{constructor(T){super(T,{autoStart:!1}),this._readPosition=0,this._reading=!1,T&&(this.readable=!0)}_init(){}close(){c.prototype.close.call(this)}get source(){return super.source}set source(T){const R=this._source=this._validateSource(T),U=R&&R[t.DESTINATION]||(R[t.DESTINATION]=new q(R));this.done?this._destroySource&&R.destroy():U.endsAt(0)?this.close():(U.register(this),(R._sourceStarted===!1||U.readAt(0)!==null)&&(this.readable=!0));const G=this._propertyCallbacks;for(const Q in G){const Z=G[Q];for(const se of Z)this._getSourceProperty(Q,se)}}_validateSource(T,R=!1){const U=T&&T[t.DESTINATION];return super._validateSource(T,!U||U instanceof q)}getProperty(T,R){const{source:U}=this,G=this._properties,Q=G&&T in G;if(!R)return Q?G&&G[T]:U&&U.getProperty(T);super.getProperty(T,R),U&&!Q&&this._getSourceProperty(T,R)}_getSourceProperty(T,R){this.source.getProperty(T,U=>{(!this._properties||!(T in this._properties))&&R(U)})}getProperties(){const T=this.source?this.source.getProperties():{},R=this._properties;for(const U in R)T[U]=R[U];return T}_toStringDetails(){return`{source: ${this.source?this.source.toString():"none"}}`}read(){this._sourceStarted||(this._sourceStarted=!0);const T=this.source;let R=null;if(!this.done&&T){const U=T[t.DESTINATION];(R=U.readAt(this._readPosition))!==null?this._readPosition++:this.readable=!1,U.endsAt(this._readPosition)&&this.close()}return R}_end(T){const R=this.source,U=R==null?void 0:R[t.DESTINATION];U&&U.unregister(this),_.prototype._end.call(this,T)}}t.ClonedIterator=$;class q{constructor(T){if(this._history=[],this._trackers=new Set,this._source=T,!T.done){const R=()=>{for(const Q of this._trackers)Q.readable=!0},U=Q=>{for(const Z of this._trackers)Z.emit("error",Q)},G=()=>{for(const Q of this._trackers)Q._sourceStarted!==!1&&Q._readPosition===this._history.length&&Q.close();this._trackers.clear(),T.removeListener("end",G),T.removeListener("error",U),T.removeListener("readable",R)};T.on("end",G),T.on("error",U),T.on("readable",R)}}register(T){this._source.done||this._trackers.add(T)}unregister(T){this._trackers.delete(T)}readAt(T){let R=null;return T{this._source=null,this.source=U}).catch(U=>this.emit("error",U))):T&&(this.source=T)}set source(T){let R=T;if(this._source!==null)throw new Error("The source cannot be changed after it has been set");if(z(R)&&(R=R[Symbol.iterator]()),M(R)){let U=R;R=new e.EventEmitter,R.read=()=>{if(U!==null){let G;for(;!(G=U.next()).done;)if(G.value!==null)return G.value;U=null,this.close()}return null}}else R=v(R);if(this.done){this._destroySource&&Pe(R.destroy)&&R.destroy();return}R[t.DESTINATION]=this,R.on("end",L),R.on("error",O),R.on("readable",E),this._source=R,this.readable=R.readable!==!1}read(){if(this._source!==null&&this._source.readable!==!1){const T=this._source.read();if(T!==null)return T;this.readable=!1}return null}_end(T=!1){this._source!==null&&(this._source.removeListener("end",L),this._source.removeListener("error",O),this._source.removeListener("readable",E),delete this._source[t.DESTINATION],this._destroySource&&Pe(this._source.destroy)&&this._source.destroy(),this._source=null),super._end(T)}}t.WrappingIterator=H;function X(k,T){if(T&&("autoStart"in T||"optional"in T||"source"in T||"maxBufferSize"in T))return k&&!we(k)&&(k=new H(k)),new w(k,T);if(!k)return Y();if(Re(k))return new H(k,T);if(k instanceof c)return k;if(Array.isArray(k))return Te(k);if(z(k)||M(k)||we(k))return new H(k,T);throw new TypeError(`Invalid source: ${k}`)}t.wrap=X;function Y(){return new h}t.empty=Y;function he(k){return new p(k)}t.single=he;function Te(k){return new m(k)}t.fromArray=Te;function Ne(k){return new H(k)}t.fromIterator=Ne;function $e(k){return new H(k)}t.fromIterable=$e;function de(k){return new N(k)}t.union=de;function ce(k,T,R){return new y({start:k,end:T,step:R})}t.range=ce;function xe(k,T){return T?k.bind(T):k}function Pe(k){return typeof k=="function"}t.isFunction=Pe;function we(k){return Pe(k==null?void 0:k.on)}t.isEventEmitter=we;function Re(k){return Pe(k==null?void 0:k.then)}t.isPromise=Re;function Se(k){return k&&(we(k)||Re(k)||Pe(k))}t.isSourceExpression=Se;function z(k){return k&&Symbol.iterator in k}t.isIterable=z;function M(k){return Pe(k==null?void 0:k.next)}t.isIterator=M})(Mt);var L8;function QEe(){if(L8)return lh;L8=1,Object.defineProperty(lh,"__esModule",{value:!0}),lh.ClosableTransformIterator=void 0;const t=Mt;let e=class extends t.TransformIterator{constructor(n,a){super(n,a),this.onClose=a.onClose}_end(n){this.onClose(),super._end(n)}};return lh.ClosableTransformIterator=e,lh}var j8;function Tt(){return j8||(j8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(OY(),t),r(RY(),t),r($Ee(),t),r(AY(),t),r(UEe(),t),r(QEe(),t)}($A)),$A}var i3={},dh={},a3={},fh={},M8;function zEe(){if(M8)return fh;M8=1,Object.defineProperty(fh,"__esModule",{value:!0}),fh.ActorContextPreprocess=void 0;const t=st;let e=class extends t.Actor{constructor(n){super(n)}};return fh.ActorContextPreprocess=e,fh}var F8;function A1(){return F8||(F8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(zEe(),t)}(a3)),a3}var B8;function GEe(){if(B8)return dh;B8=1,Object.defineProperty(dh,"__esModule",{value:!0}),dh.ActorContextPreprocessConvertShortcuts=void 0;const t=A1(),e=st;let r=class xY extends t.ActorContextPreprocess{constructor(a){super(a)}async test(a){return!0}async run(a){return{context:xY.expandShortcuts(a.context,this.contextKeyShortcuts)}}static expandShortcuts(a,s){for(const o of a.keys())s[o.name]&&(a=a.set(new e.ActionContextKey(s[o.name]),a.get(o)).delete(o));return a}};return dh.ActorContextPreprocessConvertShortcuts=r,dh}var q8;function WEe(){return q8||(q8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(GEe(),t)}(i3)),i3}var s3={},hh={},$8;function KEe(){if($8)return hh;$8=1,Object.defineProperty(hh,"__esModule",{value:!0}),hh.ActorContextPreprocessSetDefaults=void 0;const t=A1(),e=qt;let r=class extends t.ActorContextPreprocess{constructor(a){super(a),this.defaultFunctionArgumentsCache={}}async test(a){return!0}async run(a){let s=a.context;if(a.initialize){s=s.setDefault(e.KeysInitQuery.queryTimestamp,new Date).setDefault(e.KeysQuerySourceIdentify.sourceIds,new Map).setDefault(e.KeysCore.log,this.logger).setDefault(e.KeysInitQuery.functionArgumentsCache,this.defaultFunctionArgumentsCache).setDefault(e.KeysQuerySourceIdentify.hypermediaSourcesAggregatedStores,new Map);let o={language:"sparql",version:"1.1"};s.has(e.KeysInitQuery.queryFormat)?(o=s.get(e.KeysInitQuery.queryFormat),o.language==="graphql"&&(s=s.setDefault(e.KeysInitQuery.graphqlSingularizeVariables,{}))):s=s.set(e.KeysInitQuery.queryFormat,o)}return{context:s}}};return hh.ActorContextPreprocessSetDefaults=r,hh}var U8;function JEe(){return U8||(U8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(KEe(),t)}(s3)),s3}var o3={},ph={},k8;function XEe(){if(k8)return ph;k8=1,Object.defineProperty(ph,"__esModule",{value:!0}),ph.ActorContextPreprocessSourceToDestination=void 0;const t=A1(),e=qt;let r=class extends t.ActorContextPreprocess{constructor(a){super(a)}async test(a){return!0}async run(a){if(a.context.get(e.KeysInitQuery.querySourcesUnidentified)&&!a.context.get(e.KeysRdfUpdateQuads.destination)){const s=a.context.get(e.KeysInitQuery.querySourcesUnidentified);if(s.length===1)return{context:a.context.set(e.KeysRdfUpdateQuads.destination,s[0])}}return a}};return ph.ActorContextPreprocessSourceToDestination=r,ph}var V8;function YEe(){return V8||(V8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(XEe(),t)}(o3)),o3}var u3={},yh={},mh={},c3={},H8;function kC(){return H8||(H8=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.deskolemizeOperation=t.deskolemizeQuad=t.deskolemizeTermNestedThrowing=t.deskolemizeTerm=t.skolemizeBindingsStream=t.skolemizeQuadStream=t.skolemizeBindings=t.skolemizeQuad=t.skolemizeTerm=t.getSourceId=t.SKOLEM_PREFIX=void 0;const e=qC(),r=Ot,n=In(),a=xt(),s=new r.DataFactory;t.SKOLEM_PREFIX="urn:comunica_skolem:source_";function o(g,b){let v=g.get(b.referenceValue);return v===void 0&&(v=`${g.size}`,g.set(b.referenceValue,v)),v}t.getSourceId=o;function u(g,b){return g.termType==="BlankNode"?new e.BlankNodeScoped(`bc_${b}_${g.value}`,s.namedNode(`${t.SKOLEM_PREFIX}${b}:${g.value}`)):g}t.skolemizeTerm=u;function c(g,b){return(0,n.mapTermsNested)(g,v=>u(v,b))}t.skolemizeQuad=c;function l(g,b){return g.map(v=>v.termType==="Quad"?c(v,b):u(v,b))}t.skolemizeBindings=l;function d(g,b){const v=g.map(w=>c(w,b));function _(){g.getProperty("metadata",w=>{v.setProperty("metadata",w),w.state.addInvalidateListener(_)})}return _(),v}t.skolemizeQuadStream=d;function f(g,b){const v=g.map(w=>l(w,b));function _(){g.getProperty("metadata",w=>{v.setProperty("metadata",w),w.state.addInvalidateListener(_)})}return _(),v}t.skolemizeBindingsStream=f;function h(g,b){if(g.termType==="BlankNode"&&"skolemized"in g&&(g=g.skolemized),g.termType==="NamedNode"&&g.value.startsWith(t.SKOLEM_PREFIX)){const v=g.value.indexOf(":",t.SKOLEM_PREFIX.length);if(g.value.slice(t.SKOLEM_PREFIX.length,v)===b){const w=g.value.slice(v+1,g.value.length);return s.blankNode(w)}return null}return g}t.deskolemizeTerm=h;function p(g,b){if(g.termType==="Quad")return(0,n.mapTermsNested)(g,_=>{const w=h(_,b);if(!w)throw new Error("Skolemized term is not in scope for this source");return w});const v=h(g,b);if(v===null)throw new Error("Skolemized term is not in scope for this source");return v}t.deskolemizeTermNestedThrowing=p;function m(g,b){return(0,n.mapTermsNested)(g,v=>h(v,b)??v)}t.deskolemizeQuad=m;function y(g,b){try{return a.Util.mapOperation(g,{[a.Algebra.types.PATTERN](v,_){return{result:Object.assign(_.createPattern(p(v.subject,b),p(v.predicate,b),p(v.object,b),p(v.graph,b)),{metadata:v.metadata}),recurse:!1}},[a.Algebra.types.PATH](v,_){return{result:Object.assign(_.createPath(p(v.subject,b),v.predicate,p(v.object,b),p(v.graph,b)),{metadata:v.metadata}),recurse:!1}}})}catch{}}t.deskolemizeOperation=y}(c3)),c3}var Q8;function IY(){if(Q8)return mh;Q8=1,Object.defineProperty(mh,"__esModule",{value:!0}),mh.QuerySourceSkolemized=void 0;const t=ci(),e=Mt,r=kC();let n=class{constructor(s,o){this.innerSource=s,this.sourceId=o}async getSelectorShape(s){return this.innerSource.getSelectorShape(s)}queryBindings(s,o,u){const c=(0,r.deskolemizeOperation)(s,this.sourceId);if(!c){const l=new e.ArrayIterator([],{autoStart:!1});return l.setProperty("metadata",{state:new t.MetadataValidationState,cardinality:{type:"exact",value:0},canContainUndefs:!1,variables:[]}),l}return(0,r.skolemizeBindingsStream)(this.innerSource.queryBindings(c,o,u),this.sourceId)}queryBoolean(s,o){return this.innerSource.queryBoolean(s,o)}queryQuads(s,o){const u=(0,r.deskolemizeOperation)(s,this.sourceId);if(!u){const c=new e.ArrayIterator([],{autoStart:!1});return c.setProperty("metadata",{state:new t.MetadataValidationState,cardinality:{type:"exact",value:0}}),c}return(0,r.skolemizeQuadStream)(this.innerSource.queryQuads(u,o),this.sourceId)}queryVoid(s,o){return this.innerSource.queryVoid(s,o)}get referenceValue(){return this.innerSource.referenceValue}toString(){return`${this.innerSource.toString()}(SkolemID:${this.sourceId})`}};return mh.QuerySourceSkolemized=n,mh}var z8;function ZEe(){if(z8)return yh;z8=1,Object.defineProperty(yh,"__esModule",{value:!0}),yh.ActorContextPreprocessQuerySourceSkolemize=void 0;const t=A1(),e=qt,r=IY(),n=kC();let a=class extends t.ActorContextPreprocess{constructor(o){super(o)}async test(o){return!0}async run(o){let u=o.context;if(u.has(e.KeysQueryOperation.querySources)){u.has(e.KeysQuerySourceIdentify.sourceIds)||(u=u.set(e.KeysQuerySourceIdentify.sourceIds,new Map));const c=u.getSafe(e.KeysQuerySourceIdentify.sourceIds);let l=u.getSafe(e.KeysQueryOperation.querySources);l=l.map(d=>({source:new r.QuerySourceSkolemized(d.source,(0,n.getSourceId)(c,d.source)),context:d.context})),u=u.set(e.KeysQueryOperation.querySources,l)}return{context:u}}};return yh.ActorContextPreprocessQuerySourceSkolemize=a,yh}var G8;function PY(){return G8||(G8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(ZEe(),t),r(IY(),t),r(kC(),t)}(u3)),u3}var l3={},gh={},W8;function eAe(){if(W8)return gh;W8=1,Object.defineProperty(gh,"__esModule",{value:!0}),gh.MediatorCombinePipeline=void 0;const t=st;let e=class extends t.Mediator{constructor(n){super(n)}async mediate(n){let a;try{a=this.publish(n)}catch{return n}if(this.filterErrors){const o=[];for(const u of a)try{await u.reply,o.push(u)}catch{}a=o}if(a=await Promise.all(a.map(async({actor:o,reply:u})=>({actor:o,reply:await u}))),this.order){const o=u=>{const c=this.field?u[this.field]:u;if(typeof c!="number")throw new TypeError("Cannot order elements that are not numbers.");return c};a=a.sort((u,c)=>(this.order==="increasing"?1:-1)*(o(u.reply)-o(c.reply)))}let s=n;for(const{actor:o}of a)s={...s,...await o.runObservable(s)};return s}mediateWith(){throw new Error("Method not supported.")}};return gh.MediatorCombinePipeline=e,gh}var K8;function J8(){return K8||(K8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(eAe(),t)}(l3)),l3}var d3={},_h={},f3={},bh={},X8;function tAe(){if(X8)return bh;X8=1,Object.defineProperty(bh,"__esModule",{value:!0}),bh.ActorHashBindings=void 0;const t=st;let e=class extends t.Actor{constructor(n){super(n)}};return bh.ActorHashBindings=e,bh}var Y8;function rAe(){return Y8||(Y8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(tAe(),t)}(f3)),f3}var h3,Z8;function nAe(){return Z8||(Z8=1,h3=function t(e){if(typeof e=="number"&&isNaN(e))throw new Error("NaN is not allowed");if(typeof e=="number"&&!isFinite(e))throw new Error("Infinity is not allowed");return e===null||typeof e!="object"?JSON.stringify(e):e.toJSON instanceof Function?t(e.toJSON()):Array.isArray(e)?`[${e.reduce((a,s,o)=>`${a}${o===0?"":","}${t(s===void 0||typeof s=="symbol"?null:s)}`,"")}]`:`{${Object.keys(e).sort().reduce((n,a)=>{if(e[a]===void 0||typeof e[a]=="symbol")return n;const s=n.length===0?"":",";return`${n}${s}${t(a)}:${t(e[a])}`},"")}}`}),h3}var eF;function iAe(){if(eF)return _h;eF=1,Object.defineProperty(_h,"__esModule",{value:!0}),_h.ActorHashBindingsSha1=void 0;const t=rAe(),e=UC(),r=nr,n=nAe();let a=class extends t.ActorHashBindings{async test(o){if(!o.allowHashCollisions)throw new Error(`Actor ${this.name} can not provide hash functions without hash collisions`);return!0}async run(o){return{hashFunction:u=>(0,e.sha1)().update(n(Object.fromEntries([...u].map(([c,l])=>[(0,r.termToString)(c),(0,r.termToString)(l)])))).digest("hex"),hashCollisions:!0}}};return _h.ActorHashBindingsSha1=a,_h}var tF;function aAe(){return tF||(tF=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(iAe(),t)}(d3)),d3}var p3={},vh={},rF;function sAe(){if(rF)return vh;rF=1,Object.defineProperty(vh,"__esModule",{value:!0}),vh.MediatorRace=void 0;const t=st;let e=class extends t.Mediator{constructor(n){super(n)}mediateWith(n,a){return new Promise((s,o)=>{const u=[];for(const c of a)c.reply.then(()=>{s(c.actor)}).catch(l=>{u.push(l),u.length===a.length&&o(new Error(`${this.name} mediated over all rejecting actors: +`):" "+aM(s[0]):"as no adapter specified";throw new zt("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:DP};function mA(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new i1(null,t)}function sM(t){return mA(t),t.headers=ho.from(t.headers),t.data=yA.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),_X.getAdapter(t.adapter||eC.adapter)(t).then(function(n){return mA(t),n.data=yA.call(t,t.transformResponse,n),n.headers=ho.from(n.headers),n},function(n){return mX(n)||(mA(t),n&&n.response&&(n.response.data=yA.call(t,t.transformResponse,n.response),n.response.headers=ho.from(n.response.headers))),Promise.reject(n)})}const oM=t=>t instanceof ho?{...t}:t;function Ud(t,e){e=e||{};const r={};function n(l,d,f){return ze.isPlainObject(l)&&ze.isPlainObject(d)?ze.merge.call({caseless:f},l,d):ze.isPlainObject(d)?ze.merge({},d):ze.isArray(d)?d.slice():d}function a(l,d,f){if(ze.isUndefined(d)){if(!ze.isUndefined(l))return n(void 0,l,f)}else return n(l,d,f)}function s(l,d){if(!ze.isUndefined(d))return n(void 0,d)}function o(l,d){if(ze.isUndefined(d)){if(!ze.isUndefined(l))return n(void 0,l)}else return n(void 0,d)}function u(l,d,f){if(f in e)return n(l,d);if(f in t)return n(void 0,l)}const c={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:u,headers:(l,d)=>a(oM(l),oM(d),!0)};return ze.forEach(Object.keys(Object.assign({},t,e)),function(d){const f=c[d]||a,h=f(t[d],e[d],d);ze.isUndefined(h)&&f!==u||(r[d]=h)}),r}const bX="1.6.8",tC={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{tC[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const uM={};tC.transitional=function(e,r,n){function a(s,o){return"[Axios v"+bX+"] Transitional option '"+s+"'"+o+(n?". "+n:"")}return(s,o,u)=>{if(e===!1)throw new zt(a(o," has been removed"+(r?" in "+r:"")),zt.ERR_DEPRECATED);return r&&!uM[o]&&(uM[o]=!0,console.warn(a(o," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(s,o,u):!0}};function G2e(t,e,r){if(typeof t!="object")throw new zt("options must be an object",zt.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let a=n.length;for(;a-- >0;){const s=n[a],o=e[s];if(o){const u=t[s],c=u===void 0||o(u,s,t);if(c!==!0)throw new zt("option "+s+" must be "+c,zt.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new zt("Unknown option "+s,zt.ERR_BAD_OPTION)}}const CP={assertOptions:G2e,validators:tC},Mo=CP.validators;class wS{constructor(e){this.defaults=e,this.interceptors={request:new rM,response:new rM}}async request(e,r){try{return await this._request(e,r)}catch(n){if(n instanceof Error){let a;Error.captureStackTrace?Error.captureStackTrace(a={}):a=new Error;const s=a.stack?a.stack.replace(/^.+\n/,""):"";n.stack?s&&!String(n.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(n.stack+=` +`+s):n.stack=s}throw n}}_request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=Ud(this.defaults,r);const{transitional:n,paramsSerializer:a,headers:s}=r;n!==void 0&&CP.assertOptions(n,{silentJSONParsing:Mo.transitional(Mo.boolean),forcedJSONParsing:Mo.transitional(Mo.boolean),clarifyTimeoutError:Mo.transitional(Mo.boolean)},!1),a!=null&&(ze.isFunction(a)?r.paramsSerializer={serialize:a}:CP.assertOptions(a,{encode:Mo.function,serialize:Mo.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=s&&ze.merge(s.common,s[r.method]);s&&ze.forEach(["delete","get","head","post","put","patch","common"],m=>{delete s[m]}),r.headers=ho.concat(o,s);const u=[];let c=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(r)===!1||(c=c&&y.synchronous,u.unshift(y.fulfilled,y.rejected))});const l=[];this.interceptors.response.forEach(function(y){l.push(y.fulfilled,y.rejected)});let d,f=0,h;if(!c){const m=[sM.bind(this),void 0];for(m.unshift.apply(m,u),m.push.apply(m,l),h=m.length,d=Promise.resolve(r);f{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](a);n._listeners=null}),this.promise.then=a=>{let s;const o=new Promise(u=>{n.subscribe(u),s=u}).then(a);return o.cancel=function(){n.unsubscribe(s)},o},e(function(s,o,u){n.reason||(n.reason=new i1(s,o,u),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}static source(){let e;return{token:new rC(function(a){e=a}),cancel:e}}}const W2e=rC;function K2e(t){return function(r){return t.apply(null,r)}}function J2e(t){return ze.isObject(t)&&t.isAxiosError===!0}const LP={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(LP).forEach(([t,e])=>{LP[e]=t});const X2e=LP;function vX(t){const e=new Dw(t),r=eX(Dw.prototype.request,e);return ze.extend(r,Dw.prototype,e,{allOwnKeys:!0}),ze.extend(r,e,null,{allOwnKeys:!0}),r.create=function(a){return vX(Ud(t,a))},r}const nn=vX(eC);nn.Axios=Dw;nn.CanceledError=i1;nn.CancelToken=W2e;nn.isCancel=mX;nn.VERSION=bX;nn.toFormData=q2;nn.AxiosError=zt;nn.Cancel=nn.CanceledError;nn.all=function(e){return Promise.all(e)};nn.spread=K2e;nn.isAxiosError=J2e;nn.mergeConfig=Ud;nn.AxiosHeaders=ho;nn.formToJSON=t=>yX(ze.isHTMLForm(t)?new FormData(t):t);nn.getAdapter=_X.getAdapter;nn.HttpStatusCode=X2e;nn.default=nn;var nC={},U2={},iC={},a1={},wX={},k2={},st={},Jc={},s1="delete",Er=5,ra=1<>>0;if(""+r!==e||r===4294967295)return NaN;e=r}return e<0?kd(t)+e:e}function SX(){return!0}function o1(t,e,r){return(t===0&&!EX(t)||r!==void 0&&t<=-r)&&(e===void 0||r!==void 0&&e>=r)}function Tf(t,e){return TX(t,e,0)}function u1(t,e){return TX(t,e,e)}function TX(t,e,r){return t===void 0?r:EX(t)?e===1/0?e:Math.max(0,e+t)|0:e===void 0||e===t?t:Math.min(e,t)|0}function EX(t){return t<0||t===0&&1/t===-1/0}var AX="@@__IMMUTABLE_ITERABLE__@@";function Fn(t){return!!(t&&t[AX])}var OX="@@__IMMUTABLE_KEYED__@@";function yr(t){return!!(t&&t[OX])}var RX="@@__IMMUTABLE_INDEXED__@@";function An(t){return!!(t&&t[RX])}function Ef(t){return yr(t)||An(t)}var Or=function(e){return Fn(e)?e:Bn(e)},ya=function(t){function e(r){return yr(r)?r:xu(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Or),dl=function(t){function e(r){return An(r)?r:ma(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Or),Af=function(t){function e(r){return Fn(r)&&!Ef(r)?r:xf(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Or);Or.Keyed=ya;Or.Indexed=dl;Or.Set=Af;var xX="@@__IMMUTABLE_SEQ__@@";function c1(t){return!!(t&&t[xX])}var IX="@@__IMMUTABLE_RECORD__@@";function Ru(t){return!!(t&&t[IX])}function Vi(t){return Fn(t)||Ru(t)}var Of="@@__IMMUTABLE_ORDERED__@@";function Bi(t){return!!(t&&t[Of])}var l1=0,ja=1,fa=2,MP=typeof Symbol=="function"&&Symbol.iterator,PX="@@iterator",V2=MP||PX,Jt=function(e){this.next=e};Jt.prototype.toString=function(){return"[Iterator]"};Jt.KEYS=l1;Jt.VALUES=ja;Jt.ENTRIES=fa;Jt.prototype.inspect=Jt.prototype.toSource=function(){return this.toString()};Jt.prototype[V2]=function(){return this};function Rr(t,e,r,n){var a=t===0?e:t===1?r:[e,r];return n?n.value=a:n={value:a,done:!1},n}function ai(){return{value:void 0,done:!0}}function sC(t){return Array.isArray(t)?!0:!!H2(t)}function cM(t){return t&&typeof t.next=="function"}function FP(t){var e=H2(t);return e&&e.call(t)}function H2(t){var e=t&&(MP&&t[MP]||t[PX]);if(typeof e=="function")return e}function Y2e(t){var e=H2(t);return e&&e===t.entries}function Z2e(t){var e=H2(t);return e&&e===t.keys}var Rf=Object.prototype.hasOwnProperty;function oC(t){return Array.isArray(t)||typeof t=="string"?!0:t&&typeof t=="object"&&Number.isInteger(t.length)&&t.length>=0&&(t.length===0?Object.keys(t).length===1:t.hasOwnProperty(t.length-1))}var Bn=function(t){function e(r){return r==null?cC():Vi(r)?r.toSeq():tTe(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq {","}")},e.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},e.prototype.__iterate=function(n,a){var s=this._cache;if(s){for(var o=s.length,u=0;u!==o;){var c=s[a?o-++u:u++];if(n(c[1],c[0],this)===!1)break}return u}return this.__iterateUncached(n,a)},e.prototype.__iterator=function(n,a){var s=this._cache;if(s){var o=s.length,u=0;return new Jt(function(){if(u===o)return ai();var c=s[a?o-++u:u++];return Rr(n,c[0],c[1])})}return this.__iteratorUncached(n,a)},e}(Or),xu=function(t){function e(r){return r==null?cC().toKeyedSeq():Fn(r)?yr(r)?r.toSeq():r.fromEntrySeq():Ru(r)?r.toSeq():lC(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toKeyedSeq=function(){return this},e}(Bn),ma=function(t){function e(r){return r==null?cC():Fn(r)?yr(r)?r.entrySeq():r.toIndexedSeq():Ru(r)?r.toSeq().entrySeq():NX(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toIndexedSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq [","]")},e}(Bn),xf=function(t){function e(r){return(Fn(r)&&!Ef(r)?r:ma(r)).toSetSeq()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toSetSeq=function(){return this},e}(Bn);Bn.isSeq=c1;Bn.Keyed=xu;Bn.Set=xf;Bn.Indexed=ma;Bn.prototype[xX]=!0;var Xc=function(t){function e(r){this._array=r,this.size=r.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(n,a){return this.has(n)?this._array[yu(this,n)]:a},e.prototype.__iterate=function(n,a){for(var s=this._array,o=s.length,u=0;u!==o;){var c=a?o-++u:u++;if(n(s[c],c,this)===!1)break}return u},e.prototype.__iterator=function(n,a){var s=this._array,o=s.length,u=0;return new Jt(function(){if(u===o)return ai();var c=a?o-++u:u++;return Rr(n,c,s[c])})},e}(ma),uC=function(t){function e(r){var n=Object.keys(r).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(r):[]);this._object=r,this._keys=n,this.size=n.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(n,a){return a!==void 0&&!this.has(n)?a:this._object[n]},e.prototype.has=function(n){return Rf.call(this._object,n)},e.prototype.__iterate=function(n,a){for(var s=this._object,o=this._keys,u=o.length,c=0;c!==u;){var l=o[a?u-++c:c++];if(n(s[l],l,this)===!1)break}return c},e.prototype.__iterator=function(n,a){var s=this._object,o=this._keys,u=o.length,c=0;return new Jt(function(){if(c===u)return ai();var l=o[a?u-++c:c++];return Rr(n,l,s[l])})},e}(xu);uC.prototype[Of]=!0;var eTe=function(t){function e(r){this._collection=r,this.size=r.length||r.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__iterateUncached=function(n,a){if(a)return this.cacheResult().__iterate(n,a);var s=this._collection,o=FP(s),u=0;if(cM(o))for(var c;!(c=o.next()).done&&n(c.value,u++,this)!==!1;);return u},e.prototype.__iteratorUncached=function(n,a){if(a)return this.cacheResult().__iterator(n,a);var s=this._collection,o=FP(s);if(!cM(o))return new Jt(ai);var u=0;return new Jt(function(){var c=o.next();return c.done?c:Rr(n,u++,c.value)})},e}(ma),lM;function cC(){return lM||(lM=new Xc([]))}function lC(t){var e=dC(t);if(e)return e.fromEntrySeq();if(typeof t=="object")return new uC(t);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+t)}function NX(t){var e=dC(t);if(e)return e;throw new TypeError("Expected Array or collection object of values: "+t)}function tTe(t){var e=dC(t);if(e)return Y2e(t)?e.fromEntrySeq():Z2e(t)?e.toSetSeq():e;if(typeof t=="object")return new uC(t);throw new TypeError("Expected Array or collection object of values, or keyed object: "+t)}function dC(t){return oC(t)?new Xc(t):sC(t)?new eTe(t):void 0}var DX="@@__IMMUTABLE_MAP__@@";function d1(t){return!!(t&&t[DX])}function Q2(t){return d1(t)&&Bi(t)}function SS(t){return!!(t&&typeof t.equals=="function"&&typeof t.hashCode=="function")}function fn(t,e){if(t===e||t!==t&&e!==e)return!0;if(!t||!e)return!1;if(typeof t.valueOf=="function"&&typeof e.valueOf=="function"){if(t=t.valueOf(),e=e.valueOf(),t===e||t!==t&&e!==e)return!0;if(!t||!e)return!1}return!!(SS(t)&&SS(e)&&t.equals(e))}var Zf=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(e,r){e|=0,r|=0;var n=e&65535,a=r&65535;return n*a+((e>>>16)*a+n*(r>>>16)<<16>>>0)|0};function z2(t){return t>>>1&1073741824|t&3221225471}var rTe=Object.prototype.valueOf;function Yn(t){if(t==null)return dM(t);if(typeof t.hashCode=="function")return z2(t.hashCode(t));var e=uTe(t);if(e==null)return dM(e);switch(typeof e){case"boolean":return e?1108378657:1108378656;case"number":return nTe(e);case"string":return e.length>cTe?iTe(e):BP(e);case"object":case"function":return sTe(e);case"symbol":return aTe(e);default:if(typeof e.toString=="function")return BP(e.toString());throw new Error("Value type "+typeof e+" cannot be hashed.")}}function dM(t){return t===null?1108378658:1108378659}function nTe(t){if(t!==t||t===1/0)return 0;var e=t|0;for(e!==t&&(e^=t*4294967295);t>4294967295;)t/=4294967295,e^=t;return z2(e)}function iTe(t){var e=bA[t];return e===void 0&&(e=BP(t),_A===lTe&&(_A=0,bA={}),_A++,bA[t]=e),e}function BP(t){for(var e=0,r=0;r0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}function uTe(t){return t.valueOf!==rTe&&typeof t.valueOf=="function"?t.valueOf(t):t}function CX(){var t=++gA;return gA&1073741824&&(gA=0),t}var qP=typeof WeakMap=="function",$P;qP&&($P=new WeakMap);var pM=Object.create(null),gA=0,vc="__immutablehash__";typeof Symbol=="function"&&(vc=Symbol(vc));var cTe=16,lTe=255,_A=0,bA={},G2=function(t){function e(r,n){this._iter=r,this._useKeys=n,this.size=r.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(n,a){return this._iter.get(n,a)},e.prototype.has=function(n){return this._iter.has(n)},e.prototype.valueSeq=function(){return this._iter.valueSeq()},e.prototype.reverse=function(){var n=this,a=fC(this,!0);return this._useKeys||(a.valueSeq=function(){return n._iter.toSeq().reverse()}),a},e.prototype.map=function(n,a){var s=this,o=BX(this,n,a);return this._useKeys||(o.valueSeq=function(){return s._iter.toSeq().map(n,a)}),o},e.prototype.__iterate=function(n,a){var s=this;return this._iter.__iterate(function(o,u){return n(o,u,s)},a)},e.prototype.__iterator=function(n,a){return this._iter.__iterator(n,a)},e}(xu);G2.prototype[Of]=!0;var LX=function(t){function e(r){this._iter=r,this.size=r.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.includes=function(n){return this._iter.includes(n)},e.prototype.__iterate=function(n,a){var s=this,o=0;return a&&kd(this),this._iter.__iterate(function(u){return n(u,a?s.size-++o:o++,s)},a)},e.prototype.__iterator=function(n,a){var s=this,o=this._iter.__iterator(ja,a),u=0;return a&&kd(this),new Jt(function(){var c=o.next();return c.done?c:Rr(n,a?s.size-++u:u++,c.value,c)})},e}(ma),jX=function(t){function e(r){this._iter=r,this.size=r.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.has=function(n){return this._iter.includes(n)},e.prototype.__iterate=function(n,a){var s=this;return this._iter.__iterate(function(o){return n(o,o,s)},a)},e.prototype.__iterator=function(n,a){var s=this._iter.__iterator(ja,a);return new Jt(function(){var o=s.next();return o.done?o:Rr(n,o.value,o.value,o)})},e}(xf),MX=function(t){function e(r){this._iter=r,this.size=r.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.entrySeq=function(){return this._iter.toSeq()},e.prototype.__iterate=function(n,a){var s=this;return this._iter.__iterate(function(o){if(o){mM(o);var u=Fn(o);return n(u?o.get(1):o[1],u?o.get(0):o[0],s)}},a)},e.prototype.__iterator=function(n,a){var s=this._iter.__iterator(ja,a);return new Jt(function(){for(;;){var o=s.next();if(o.done)return o;var u=o.value;if(u){mM(u);var c=Fn(u);return Rr(n,c?u.get(0):u[0],c?u.get(1):u[1],o)}}})},e}(xu);LX.prototype.cacheResult=G2.prototype.cacheResult=jX.prototype.cacheResult=MX.prototype.cacheResult=yC;function FX(t){var e=bs(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var r=t.reverse.apply(this);return r.flip=function(){return t.reverse()},r},e.has=function(r){return t.includes(r)},e.includes=function(r){return t.has(r)},e.cacheResult=yC,e.__iterateUncached=function(r,n){var a=this;return t.__iterate(function(s,o){return r(o,s,a)!==!1},n)},e.__iteratorUncached=function(r,n){if(r===fa){var a=t.__iterator(r,n);return new Jt(function(){var s=a.next();if(!s.done){var o=s.value[0];s.value[0]=s.value[1],s.value[1]=o}return s})}return t.__iterator(r===ja?l1:ja,n)},e}function BX(t,e,r){var n=bs(t);return n.size=t.size,n.has=function(a){return t.has(a)},n.get=function(a,s){var o=t.get(a,Ht);return o===Ht?s:e.call(r,o,a,t)},n.__iterateUncached=function(a,s){var o=this;return t.__iterate(function(u,c,l){return a(e.call(r,u,c,l),c,o)!==!1},s)},n.__iteratorUncached=function(a,s){var o=t.__iterator(fa,s);return new Jt(function(){var u=o.next();if(u.done)return u;var c=u.value,l=c[0];return Rr(a,l,e.call(r,c[1],l,t),u)})},n}function fC(t,e){var r=this,n=bs(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var a=FX(t);return a.reverse=function(){return t.flip()},a}),n.get=function(a,s){return t.get(e?a:-1-a,s)},n.has=function(a){return t.has(e?a:-1-a)},n.includes=function(a){return t.includes(a)},n.cacheResult=yC,n.__iterate=function(a,s){var o=this,u=0;return s&&kd(t),t.__iterate(function(c,l){return a(c,e?l:s?o.size-++u:u++,o)},!s)},n.__iterator=function(a,s){var o=0;s&&kd(t);var u=t.__iterator(fa,!s);return new Jt(function(){var c=u.next();if(c.done)return c;var l=c.value;return Rr(a,e?l[0]:s?r.size-++o:o++,l[1],c)})},n}function qX(t,e,r,n){var a=bs(t);return n&&(a.has=function(s){var o=t.get(s,Ht);return o!==Ht&&!!e.call(r,o,s,t)},a.get=function(s,o){var u=t.get(s,Ht);return u!==Ht&&e.call(r,u,s,t)?u:o}),a.__iterateUncached=function(s,o){var u=this,c=0;return t.__iterate(function(l,d,f){if(e.call(r,l,d,f))return c++,s(l,n?d:c-1,u)},o),c},a.__iteratorUncached=function(s,o){var u=t.__iterator(fa,o),c=0;return new Jt(function(){for(;;){var l=u.next();if(l.done)return l;var d=l.value,f=d[0],h=d[1];if(e.call(r,h,f,t))return Rr(s,n?f:c++,h,l)}})},a}function dTe(t,e,r){var n=Pu().asMutable();return t.__iterate(function(a,s){n.update(e.call(r,a,s,t),0,function(o){return o+1})}),n.asImmutable()}function fTe(t,e,r){var n=yr(t),a=(Bi(t)?Ma():Pu()).asMutable();t.__iterate(function(o,u){a.update(e.call(r,o,u,t),function(c){return c=c||[],c.push(n?[u,o]:o),c})});var s=pC(t);return a.map(function(o){return pr(t,s(o))}).asImmutable()}function hTe(t,e,r){var n=yr(t),a=[[],[]];t.__iterate(function(o,u){a[e.call(r,o,u,t)?1:0].push(n?[u,o]:o)});var s=pC(t);return a.map(function(o){return pr(t,s(o))})}function hC(t,e,r,n){var a=t.size;if(o1(e,r,a))return t;var s=Tf(e,a),o=u1(r,a);if(s!==s||o!==o)return hC(t.toSeq().cacheResult(),e,r,n);var u=o-s,c;u===u&&(c=u<0?0:u);var l=bs(t);return l.size=c===0?c:t.size&&c||void 0,!n&&c1(t)&&c>=0&&(l.get=function(d,f){return d=yu(this,d),d>=0&&dc)return ai();var y=h.next();return n||d===ja||y.done?y:d===l1?Rr(d,m-1,void 0,y):Rr(d,m-1,y.value[1],y)})},l}function pTe(t,e,r){var n=bs(t);return n.__iterateUncached=function(a,s){var o=this;if(s)return this.cacheResult().__iterate(a,s);var u=0;return t.__iterate(function(c,l,d){return e.call(r,c,l,d)&&++u&&a(c,l,o)}),u},n.__iteratorUncached=function(a,s){var o=this;if(s)return this.cacheResult().__iterator(a,s);var u=t.__iterator(fa,s),c=!0;return new Jt(function(){if(!c)return ai();var l=u.next();if(l.done)return l;var d=l.value,f=d[0],h=d[1];return e.call(r,h,f,o)?a===fa?l:Rr(a,f,h,l):(c=!1,ai())})},n}function $X(t,e,r,n){var a=bs(t);return a.__iterateUncached=function(s,o){var u=this;if(o)return this.cacheResult().__iterate(s,o);var c=!0,l=0;return t.__iterate(function(d,f,h){if(!(c&&(c=e.call(r,d,f,h))))return l++,s(d,n?f:l-1,u)}),l},a.__iteratorUncached=function(s,o){var u=this;if(o)return this.cacheResult().__iterator(s,o);var c=t.__iterator(fa,o),l=!0,d=0;return new Jt(function(){var f,h,p;do{if(f=c.next(),f.done)return n||s===ja?f:s===l1?Rr(s,d++,void 0,f):Rr(s,d++,f.value[1],f);var m=f.value;h=m[0],p=m[1],l&&(l=e.call(r,p,h,u))}while(l);return s===fa?f:Rr(s,h,p,f)})},a}function yTe(t,e){var r=yr(t),n=[t].concat(e).map(function(o){return Fn(o)?r&&(o=ya(o)):o=r?lC(o):NX(Array.isArray(o)?o:[o]),o}).filter(function(o){return o.size!==0});if(n.length===0)return t;if(n.length===1){var a=n[0];if(a===t||r&&yr(a)||An(t)&&An(a))return a}var s=new Xc(n);return r?s=s.toKeyedSeq():An(t)||(s=s.toSetSeq()),s=s.flatten(!0),s.size=n.reduce(function(o,u){if(o!==void 0){var c=u.size;if(c!==void 0)return o+c}},0),s}function UX(t,e,r){var n=bs(t);return n.__iterateUncached=function(a,s){if(s)return this.cacheResult().__iterate(a,s);var o=0,u=!1;function c(l,d){l.__iterate(function(f,h){return(!e||d0}function Nv(t,e,r,n){var a=bs(t),s=new Xc(r).map(function(o){return o.size});return a.size=n?s.max():s.min(),a.__iterate=function(o,u){for(var c=this.__iterator(ja,u),l,d=0;!(l=c.next()).done&&o(l.value,d++,this)!==!1;);return d},a.__iteratorUncached=function(o,u){var c=r.map(function(f){return f=Or(f),FP(u?f.reverse():f)}),l=0,d=!1;return new Jt(function(){var f;return d||(f=c.map(function(h){return h.next()}),d=n?f.every(function(h){return h.done}):f.some(function(h){return h.done})),d?ai():Rr(o,l++,e.apply(null,f.map(function(h){return h.value})))})},a}function pr(t,e){return t===e?t:c1(t)?e:t.constructor(e)}function mM(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function pC(t){return yr(t)?ya:An(t)?dl:Af}function bs(t){return Object.create((yr(t)?xu:An(t)?ma:xf).prototype)}function yC(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Bn.prototype.cacheResult.call(this)}function kX(t,e){return t===void 0&&e===void 0?0:t===void 0?1:e===void 0?-1:t>e?1:t0;)e[r]=arguments[r+1];if(typeof t!="function")throw new TypeError("Invalid merger function: "+t);return GX(this,e,t)}function GX(t,e,r){for(var n=[],a=0;a0;)e[r]=arguments[r+1];return h1(t,e)}function KX(t,e){for(var r=[],n=arguments.length-2;n-- >0;)r[n]=arguments[n+2];return h1(e,r,t)}function JX(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return f1(t,e)}function XX(t,e){for(var r=[],n=arguments.length-2;n-- >0;)r[n]=arguments[n+2];return f1(e,r,t)}function f1(t,e,r){return h1(t,e,bTe(r))}function h1(t,e,r){if(!mu(t))throw new TypeError("Cannot merge into non-data-structure value: "+t);if(Vi(t))return typeof r=="function"&&t.mergeWith?t.mergeWith.apply(t,[r].concat(e)):t.merge?t.merge.apply(t,e):t.concat.apply(t,e);for(var n=Array.isArray(t),a=t,s=n?dl:ya,o=n?function(c){a===t&&(a=TS(a)),a.push(c)}:function(c,l){var d=Rf.call(a,l),f=d&&r?r(a[l],c,l):c;(!d||f!==a[l])&&(a===t&&(a=TS(a)),a[l]=f)},u=0;u0;)e[r]=arguments[r+1];return f1(this,e,t)}function OC(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return Iu(this,t,Ca(),function(n){return h1(n,e)})}function RC(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return Iu(this,t,Ca(),function(n){return f1(n,e)})}function p1(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this}function y1(){return this.__ownerID?this:this.__ensureOwner(new aC)}function m1(){return this.__ensureOwner()}function xC(){return this.__altered}var Pu=function(t){function e(r){return r==null?Ca():d1(r)&&!Bi(r)?r:Ca().withMutations(function(n){var a=t(r);Li(a.size),a.forEach(function(s,o){return n.set(o,s)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return Ca().withMutations(function(s){for(var o=0;o=n.length)throw new Error("Missing value for key: "+n[o]);s.set(n[o],n[o+1])}})},e.prototype.toString=function(){return this.__toString("Map {","}")},e.prototype.get=function(n,a){return this._root?this._root.get(0,void 0,n,a):a},e.prototype.set=function(n,a){return bM(this,n,a)},e.prototype.remove=function(n){return bM(this,n,Ht)},e.prototype.deleteAll=function(n){var a=Or(n);return a.size===0?this:this.withMutations(function(s){a.forEach(function(o){return s.remove(o)})})},e.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Ca()},e.prototype.sort=function(n){return Ma(Vd(this,n))},e.prototype.sortBy=function(n,a){return Ma(Vd(this,a,n))},e.prototype.map=function(n,a){var s=this;return this.withMutations(function(o){o.forEach(function(u,c){o.set(c,n.call(a,u,c,s))})})},e.prototype.__iterator=function(n,a){return new wTe(this,n,a)},e.prototype.__iterate=function(n,a){var s=this,o=0;return this._root&&this._root.iterate(function(u){return o++,n(u[1],u[0],s)},a),o},e.prototype.__ensureOwner=function(n){return n===this.__ownerID?this:n?IC(this.size,this._root,n,this.__hash):this.size===0?Ca():(this.__ownerID=n,this.__altered=!1,this)},e}(ya);Pu.isMap=d1;var Pr=Pu.prototype;Pr[DX]=!0;Pr[s1]=Pr.remove;Pr.removeAll=Pr.deleteAll;Pr.setIn=wC;Pr.removeIn=Pr.deleteIn=TC;Pr.update=EC;Pr.updateIn=AC;Pr.merge=Pr.concat=QX;Pr.mergeWith=zX;Pr.mergeDeep=YX;Pr.mergeDeepWith=ZX;Pr.mergeIn=OC;Pr.mergeDeepIn=RC;Pr.withMutations=p1;Pr.wasAltered=xC;Pr.asImmutable=m1;Pr["@@transducer/init"]=Pr.asMutable=y1;Pr["@@transducer/step"]=function(t,e){return t.set(e[0],e[1])};Pr["@@transducer/result"]=function(t){return t.asImmutable()};var yb=function(e,r){this.ownerID=e,this.entries=r};yb.prototype.get=function(e,r,n,a){for(var s=this.entries,o=0,u=s.length;o=RTe)return STe(e,l,a,s);var p=e&&e===this.ownerID,m=p?l:as(l);return h?c?d===f-1?m.pop():m[d]=m.pop():m[d]=[a,s]:m.push([a,s]),p?(this.entries=m,this):new yb(e,m)}};var Hd=function(e,r,n){this.ownerID=e,this.bitmap=r,this.nodes=n};Hd.prototype.get=function(e,r,n,a){r===void 0&&(r=Yn(n));var s=1<<((e===0?r:r>>>e)&ei),o=this.bitmap;return o&s?this.nodes[eY(o&s-1)].get(e+Er,r,n,a):a};Hd.prototype.update=function(e,r,n,a,s,o,u){n===void 0&&(n=Yn(a));var c=(r===0?n:n>>>r)&ei,l=1<=xTe)return ETe(e,p,d,c,y);if(f&&!y&&p.length===2&&vM(p[h^1]))return p[h^1];if(f&&y&&p.length===1&&vM(y))return y;var g=e&&e===this.ownerID,b=f?y?d:d^l:d|l,v=f?y?tY(p,h,y,g):OTe(p,h,g):ATe(p,h,y,g);return g?(this.bitmap=b,this.nodes=v,this):new Hd(e,b,v)};var mb=function(e,r,n){this.ownerID=e,this.count=r,this.nodes=n};mb.prototype.get=function(e,r,n,a){r===void 0&&(r=Yn(n));var s=(e===0?r:r>>>e)&ei,o=this.nodes[s];return o?o.get(e+Er,r,n,a):a};mb.prototype.update=function(e,r,n,a,s,o,u){n===void 0&&(n=Yn(a));var c=(r===0?n:n>>>r)&ei,l=s===Ht,d=this.nodes,f=d[c];if(l&&!f)return this;var h=PC(f,e,r+Er,n,a,s,o,u);if(h===f)return this;var p=this.count;if(!f)p++;else if(!h&&(p--,p>>r)&ei,o=(r===0?n:n>>>r)&ei,u,c=s===o?[NC(t,e,r+Er,n,a)]:(u=new wo(e,n,a),s>>=1)o[u]=r&1?e[s++]:void 0;return o[n]=a,new mb(t,s+1,o)}function eY(t){return t-=t>>1&1431655765,t=(t&858993459)+(t>>2&858993459),t=t+(t>>4)&252645135,t+=t>>8,t+=t>>16,t&127}function tY(t,e,r,n){var a=n?t:as(t);return a[e]=r,a}function ATe(t,e,r,n){var a=t.length+1;if(n&&e+1===a)return t[e]=r,t;for(var s=new Array(a),o=0,u=0;u0&&s=0&&n>>r&ei;if(a>=this.array.length)return new ou([],e);var s=a===0,o;if(r>0){var u=this.array[a];if(o=u&&u.removeBefore(e,r-Er,n),o===u&&s)return this}if(s&&!o)return this;var c=zd(this,e);if(!s)for(var l=0;l>>r&ei;if(a>=this.array.length)return this;var s;if(r>0){var o=this.array[a];if(s=o&&o.removeAfter(e,r-Er,n),s===o&&a===this.array.length-1)return this}var u=zd(this,e);return u.array.splice(a+1),s&&(u.array[a]=s),u};var J_={};function wM(t,e){var r=t._origin,n=t._capacity,a=_b(n),s=t._tail;return o(t._root,t._level,0);function o(l,d,f){return d===0?u(l,f):c(l,d,f)}function u(l,d){var f=d===a?s&&s.array:l&&l.array,h=d>r?0:r-d,p=n-d;return p>ra&&(p=ra),function(){if(h===p)return J_;var m=e?--p:h++;return f&&f[m]}}function c(l,d,f){var h,p=l&&l.array,m=f>r?0:r-f>>d,y=(n-f>>d)+1;return y>ra&&(y=ra),function(){for(;;){if(h){var g=h();if(g!==J_)return g;h=null}if(m===y)return J_;var b=e?--y:m++;h=o(p&&p[b],d-Er,f+(b<=t.size||e<0)return t.withMutations(function(o){e<0?Xo(o,e).set(0,r):Xo(o,0,e+1).set(e,r)});e+=t._origin;var n=t._tail,a=t._root,s=jP();return e>=_b(t._capacity)?n=UP(n,t.__ownerID,0,e,r,s):a=UP(a,t.__ownerID,t._level,e,r,s),s.value?t.__ownerID?(t._root=a,t._tail=n,t.__hash=void 0,t.__altered=!0,t):gb(t._origin,t._capacity,t._level,a,n):t}function UP(t,e,r,n,a,s){var o=n>>>r&ei,u=t&&o0){var l=t&&t.array[o],d=UP(l,e,r-Er,n,a,s);return d===l?t:(c=zd(t,e),c.array[o]=d,c)}return u&&t.array[o]===a?t:(s&&na(s),c=zd(t,e),a===void 0&&o===c.array.length-1?c.array.pop():c.array[o]=a,c)}function zd(t,e){return e&&t&&e===t.ownerID?t:new ou(t?t.array.slice():[],e)}function nY(t,e){if(e>=_b(t._capacity))return t._tail;if(e<1<0;)r=r.array[e>>>n&ei],n-=Er;return r}}function Xo(t,e,r){e!==void 0&&(e|=0),r!==void 0&&(r|=0);var n=t.__ownerID||new aC,a=t._origin,s=t._capacity,o=a+e,u=r===void 0?s:r<0?s+r:a+r;if(o===a&&u===s)return t;if(o>=u)return t.clear();for(var c=t._level,l=t._root,d=0;o+d<0;)l=new ou(l&&l.array.length?[void 0,l]:[],n),c+=Er,d+=1<=1<f?new ou([],n):p;if(p&&h>f&&oEr;g-=Er){var b=f>>>g&ei;y=y.array[b]=zd(y.array[b],n)}y.array[f>>>Er&ei]=p}if(u=h)o-=h,u-=h,c=Er,l=null,m=m&&m.removeBefore(n,0,o);else if(o>a||h>>c&ei;if(v!==h>>>c&ei)break;v&&(d+=(1<a&&(l=l.removeBefore(n,c,o-d)),l&&h>>Er<=ra&&a.size>=n.size*2?(c=a.filter(function(l,d){return l!==void 0&&s!==d}),u=c.toKeyedSeq().map(function(l){return l[0]}).flip().toMap(),t.__ownerID&&(u.__ownerID=c.__ownerID=t.__ownerID)):(u=n.remove(e),c=s===a.size-1?a.pop():a.set(s,void 0))}else if(o){if(r===a.get(s)[1])return t;u=n,c=a.set(s,[e,r])}else u=n.set(e,a.size),c=a.set(a.size,[e,r]);return t.__ownerID?(t.size=u.size,t._map=u,t._list=c,t.__hash=void 0,t.__altered=!0,t):DC(u,c)}var iY="@@__IMMUTABLE_STACK__@@";function bb(t){return!!(t&&t[iY])}var g1=function(t){function e(r){return r==null?Dv():bb(r)?r:Dv().pushAll(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("Stack [","]")},e.prototype.get=function(n,a){var s=this._head;for(n=yu(this,n);s&&n--;)s=s.next;return s?s.value:a},e.prototype.peek=function(){return this._head&&this._head.value},e.prototype.push=function(){var n=arguments;if(arguments.length===0)return this;for(var a=this.size+arguments.length,s=this._head,o=arguments.length-1;o>=0;o--)s={value:n[o],next:s};return this.__ownerID?(this.size=a,this._head=s,this.__hash=void 0,this.__altered=!0,this):T_(a,s)},e.prototype.pushAll=function(n){if(n=t(n),n.size===0)return this;if(this.size===0&&bb(n))return n;Li(n.size);var a=this.size,s=this._head;return n.__iterate(function(o){a++,s={value:o,next:s}},!0),this.__ownerID?(this.size=a,this._head=s,this.__hash=void 0,this.__altered=!0,this):T_(a,s)},e.prototype.pop=function(){return this.slice(1)},e.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Dv()},e.prototype.slice=function(n,a){if(o1(n,a,this.size))return this;var s=Tf(n,this.size),o=u1(a,this.size);if(o!==this.size)return t.prototype.slice.call(this,n,a);for(var u=this.size-s,c=this._head;s--;)c=c.next;return this.__ownerID?(this.size=u,this._head=c,this.__hash=void 0,this.__altered=!0,this):T_(u,c)},e.prototype.__ensureOwner=function(n){return n===this.__ownerID?this:n?T_(this.size,this._head,n,this.__hash):this.size===0?Dv():(this.__ownerID=n,this.__altered=!1,this)},e.prototype.__iterate=function(n,a){var s=this;if(a)return new Xc(this.toArray()).__iterate(function(c,l){return n(c,l,s)},a);for(var o=0,u=this._head;u&&n(u.value,o++,this)!==!1;)u=u.next;return o},e.prototype.__iterator=function(n,a){if(a)return new Xc(this.toArray()).__iterator(n,a);var s=0,o=this._head;return new Jt(function(){if(o){var u=o.value;return o=o.next,Rr(n,s++,u)}return ai()})},e}(dl);g1.isStack=bb;var si=g1.prototype;si[iY]=!0;si.shift=si.pop;si.unshift=si.push;si.unshiftAll=si.pushAll;si.withMutations=p1;si.wasAltered=xC;si.asImmutable=m1;si["@@transducer/init"]=si.asMutable=y1;si["@@transducer/step"]=function(t,e){return t.unshift(e)};si["@@transducer/result"]=function(t){return t.asImmutable()};function T_(t,e,r,n){var a=Object.create(si);return a.size=t,a._head=e,a.__ownerID=r,a.__hash=n,a.__altered=!1,a}var AM;function Dv(){return AM||(AM=T_(0))}var aY="@@__IMMUTABLE_SET__@@";function _1(t){return!!(t&&t[aY])}function Y2(t){return _1(t)&&Bi(t)}function CC(t,e){if(t===e)return!0;if(!Fn(e)||t.size!==void 0&&e.size!==void 0&&t.size!==e.size||t.__hash!==void 0&&e.__hash!==void 0&&t.__hash!==e.__hash||yr(t)!==yr(e)||An(t)!==An(e)||Bi(t)!==Bi(e))return!1;if(t.size===0&&e.size===0)return!0;var r=!Ef(t);if(Bi(t)){var n=t.entries();return e.every(function(c,l){var d=n.next().value;return d&&fn(d[1],c)&&(r||fn(d[0],l))})&&n.next().done}var a=!1;if(t.size===void 0)if(e.size===void 0)typeof t.cacheResult=="function"&&t.cacheResult();else{a=!0;var s=t;t=e,e=s}var o=!0,u=e.__iterate(function(c,l){if(r?!t.has(c):a?!fn(c,t.get(l,Ht)):!fn(t.get(l,Ht),c))return o=!1,!1});return o&&t.size===u}function fl(t,e){var r=function(n){t.prototype[n]=e[n]};return Object.keys(e).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(r),t}function ES(t){if(!t||typeof t!="object")return t;if(!Fn(t)){if(!mu(t))return t;t=Bn(t)}if(yr(t)){var e={};return t.__iterate(function(n,a){e[a]=ES(n)}),e}var r=[];return t.__iterate(function(n){r.push(ES(n))}),r}var Pf=function(t){function e(r){return r==null?E_():_1(r)&&!Bi(r)?r:E_().withMutations(function(n){var a=t(r);Li(a.size),a.forEach(function(s){return n.add(s)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.fromKeys=function(n){return this(ya(n).keySeq())},e.intersect=function(n){return n=Or(n).toArray(),n.length?On.intersect.apply(e(n.pop()),n):E_()},e.union=function(n){return n=Or(n).toArray(),n.length?On.union.apply(e(n.pop()),n):E_()},e.prototype.toString=function(){return this.__toString("Set {","}")},e.prototype.has=function(n){return this._map.has(n)},e.prototype.add=function(n){return Cv(this,this._map.set(n,n))},e.prototype.remove=function(n){return Cv(this,this._map.remove(n))},e.prototype.clear=function(){return Cv(this,this._map.clear())},e.prototype.map=function(n,a){var s=this,o=!1,u=Cv(this,this._map.mapEntries(function(c){var l=c[1],d=n.call(a,l,l,s);return d!==l&&(o=!0),[d,d]},a));return o?u:this},e.prototype.union=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return n=n.filter(function(s){return s.size!==0}),n.length===0?this:this.size===0&&!this.__ownerID&&n.length===1?this.constructor(n[0]):this.withMutations(function(s){for(var o=0;o=0&&a=0&&sthis.size?r:this.find(function(n,a){return a===e},void 0,r)},has:function(e){return e=yu(this,e),e>=0&&(this.size!==void 0?this.size===1/0||ee?-1:0}function LTe(t){if(t.size===1/0)return 0;var e=Bi(t),r=yr(t),n=e?1:0,a=t.__iterate(r?e?function(s,o){n=31*n+NM(Yn(s),Yn(o))|0}:function(s,o){n=n+NM(Yn(s),Yn(o))|0}:e?function(s){n=31*n+Yn(s)|0}:function(s){n=n+Yn(s)|0});return jTe(a,n)}function jTe(t,e){return e=Zf(e,3432918353),e=Zf(e<<15|e>>>-15,461845907),e=Zf(e<<13|e>>>-13,5),e=(e+3864292196|0)^t,e=Zf(e^e>>>16,2246822507),e=Zf(e^e>>>13,3266489909),e=z2(e^e>>>16),e}function NM(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}var Yc=function(t){function e(r){return r==null?kP():Y2(r)?r:kP().withMutations(function(n){var a=Af(r);Li(a.size),a.forEach(function(s){return n.add(s)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.fromKeys=function(n){return this(ya(n).keySeq())},e.prototype.toString=function(){return this.__toString("OrderedSet {","}")},e}(Pf);Yc.isOrderedSet=Y2;var hl=Yc.prototype;hl[Of]=!0;hl.zip=Nf.zip;hl.zipWith=Nf.zipWith;hl.zipAll=Nf.zipAll;hl.__empty=kP;hl.__make=cY;function cY(t,e){var r=Object.create(hl);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}var DM;function kP(){return DM||(DM=cY(S_()))}var lY={LeftThenRight:-1,RightThenLeft:1};function MTe(t){if(Ru(t))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(Vi(t))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(t===null||typeof t!="object")throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}var sn=function(e,r){var n;MTe(e);var a=function(u){var c=this;if(u instanceof a)return u;if(!(this instanceof a))return new a(u);if(!n){n=!0;var l=Object.keys(e),d=s._indices={};s._name=r,s._keys=l,s._defaultValues=e;for(var f=0;f2?[]:void 0,{"":t})}function hY(t,e,r,n,a,s){if(typeof r!="string"&&!Vi(r)&&(oC(r)||sC(r)||W2(r))){if(~t.indexOf(r))throw new TypeError("Cannot convert circular structure to Immutable");t.push(r),a&&n!==""&&a.push(n);var o=e.call(s,n,Bn(r).map(function(u,c){return hY(t,e,u,c,a,r)}),a&&a.slice());return t.pop(),a&&a.pop(),o}return r}function BTe(t,e){return An(e)?e.toList():yr(e)?e.toMap():e.toSet()}var pY="4.3.6",qTe={version:pY,Collection:Or,Iterable:Or,Seq:Bn,Map:Pu,OrderedMap:Ma,List:If,Stack:g1,Set:Pf,OrderedSet:Yc,PairSorting:lY,Record:sn,Range:LC,Repeat:dY,is:fn,fromJS:fY,hash:Yn,isImmutable:Vi,isCollection:Fn,isKeyed:yr,isIndexed:An,isAssociative:Ef,isOrdered:Bi,isValueObject:SS,isPlainObject:W2,isSeq:c1,isList:X2,isMap:d1,isOrderedMap:Q2,isStack:bb,isSet:_1,isOrderedSet:Y2,isRecord:Ru,get:K2,getIn:Z2,has:gC,hasIn:jC,merge:WX,mergeDeep:JX,mergeWith:KX,mergeDeepWith:XX,remove:_C,removeIn:SC,set:bC,setIn:vC,update:J2,updateIn:Iu},$Te=Or;const UTe=Object.freeze(Object.defineProperty({__proto__:null,Collection:Or,Iterable:$Te,List:If,Map:Pu,OrderedMap:Ma,OrderedSet:Yc,PairSorting:lY,Range:LC,Record:sn,Repeat:dY,Seq:Bn,Set:Pf,Stack:g1,default:qTe,fromJS:fY,get:K2,getIn:Z2,has:gC,hasIn:jC,hash:Yn,is:fn,isAssociative:Ef,isCollection:Fn,isImmutable:Vi,isIndexed:An,isKeyed:yr,isList:X2,isMap:d1,isOrdered:Bi,isOrderedMap:Q2,isOrderedSet:Y2,isPlainObject:W2,isRecord:Ru,isSeq:c1,isSet:_1,isStack:bb,isValueObject:SS,merge:WX,mergeDeep:JX,mergeDeepWith:XX,mergeWith:KX,remove:_C,removeIn:SC,set:bC,setIn:vC,update:J2,updateIn:Iu,version:pY},Symbol.toStringTag,{value:"Module"})),BC=vD(UTe);Object.defineProperty(Jc,"__esModule",{value:!0});Jc.ActionContextKey=Jc.ActionContext=void 0;const CM=BC;class id{constructor(e={}){this.map=(0,CM.Map)(e)}setDefault(e,r){return this.has(e)?this:this.set(e,r)}set(e,r){return this.setRaw(e.name,r)}setRaw(e,r){return new id(this.map.set(e,r))}delete(e){return new id(this.map.delete(e.name))}get(e){return this.getRaw(e.name)}getRaw(e){return this.map.get(e)}getSafe(e){if(!this.has(e))throw new Error(`Context entry ${e.name} is required but not available`);return this.get(e)}has(e){return this.hasRaw(e.name)}hasRaw(e){return this.map.has(e)}merge(...e){let r=this;for(const n of e)for(const a of n.keys())r=r.set(a,n.get(a));return r}keys(){return[...this.map.keys()].map(e=>new yY(e))}toJS(){return this.map.toJS()}toString(){return`ActionContext(${JSON.stringify(this.map.toJS())})`}[Symbol.for("nodejs.util.inspect.custom")](){return`ActionContext(${JSON.stringify(this.map.toJS(),null," ")})`}static ensureActionContext(e){return e instanceof id?e:new id((0,CM.Map)(e??{}))}}Jc.ActionContext=id;class yY{constructor(e){this.name=e}}Jc.ActionContextKey=yY;var v1={};Object.defineProperty(v1,"__esModule",{value:!0});v1.Bus=void 0;class kTe{constructor(e){this.actors=[],this.observers=[],this.dependencyLinks=new Map,Object.assign(this,e)}subscribe(e){this.actors.push(e),this.reorderForDependencies()}subscribeObserver(e){this.observers.push(e)}unsubscribe(e){const r=this.actors.indexOf(e);return r>=0?(this.actors.splice(r,1),!0):!1}unsubscribeObserver(e){const r=this.observers.indexOf(e);return r>=0?(this.observers.splice(r,1),!0):!1}publish(e){return this.actors.map(r=>({actor:r,reply:r.test(e)}))}onRun(e,r,n){for(const a of this.observers)a.onRun(e,r,n)}addDependencies(e,r){for(const n of r){let a=this.dependencyLinks.get(n);a||(a=[],this.dependencyLinks.set(n,a)),a.push(e)}this.reorderForDependencies()}reorderForDependencies(){if(this.dependencyLinks.size>0){const e=[];for(const r of this.dependencyLinks.keys()){const n=this.actors.indexOf(r);n>=0&&(this.actors.splice(n,1),e.push(r))}for(;e.length>0;){let r=-1;for(let a=0;a=0&&n.splice(a,1),n.length===0&&delete this.actorsIndex[r]}return super.unsubscribe(e)}publish(e){const r=this.getActionIdentifier(e);return r?[...this.actorsIndex[r]||[],...this.actorsIndex._undefined_||[]].map(a=>({actor:a,reply:a.test(e)})):super.publish(e)}getActorIdentifier(e){return this.actorIdentifierFields.reduce((r,n)=>r[n],e)}getActionIdentifier(e){return this.actionIdentifierFields.reduce((r,n)=>r[n],e)}}eT.BusIndexed=HTe;var w1={};Object.defineProperty(w1,"__esModule",{value:!0});w1.CONTEXT_KEY_LOGGER=void 0;const QTe=Jc;w1.CONTEXT_KEY_LOGGER=new QTe.ActionContextKey("@comunica/core:log");var tT={};Object.defineProperty(tT,"__esModule",{value:!0});tT.ActionObserver=void 0;class zTe{constructor(e){Object.assign(this,e)}}tT.ActionObserver=zTe;var rT={};Object.defineProperty(rT,"__esModule",{value:!0});rT.Actor=void 0;const GTe=w1;class Yo{constructor(e){this.beforeActors=[],Object.assign(this,e),this.bus.subscribe(this),this.beforeActors.length>0&&this.bus.addDependencies(this,this.beforeActors)}static getContextLogger(e){return e.get(GTe.CONTEXT_KEY_LOGGER)}runObservable(e){const r=this.run(e);return this.bus.onRun(this,e,r),r}async initialize(){return!0}async deinitialize(){return!0}getDefaultLogData(e,r){const n=r?r():{};return n.actor=this.name,n}logTrace(e,r,n){const a=Yo.getContextLogger(e);a&&a.trace(r,this.getDefaultLogData(e,n))}logDebug(e,r,n){const a=Yo.getContextLogger(e);a&&a.debug(r,this.getDefaultLogData(e,n))}logInfo(e,r,n){const a=Yo.getContextLogger(e);a&&a.info(r,this.getDefaultLogData(e,n))}logWarn(e,r,n){const a=Yo.getContextLogger(e);a&&a.warn(r,this.getDefaultLogData(e,n))}logError(e,r,n){const a=Yo.getContextLogger(e);a&&a.error(r,this.getDefaultLogData(e,n))}logFatal(e,r,n){const a=Yo.getContextLogger(e);a&&a.fatal(r,this.getDefaultLogData(e,n))}}rT.Actor=Yo;var nT={};Object.defineProperty(nT,"__esModule",{value:!0});nT.Mediator=void 0;class WTe{constructor(e){Object.assign(this,e)}publish(e){const r=this.bus.publish(e);if(r.length===0)throw new Error(`No actors are able to reply to a message in the bus ${this.bus.name}`);return r}async mediateActor(e){return await this.mediateWith(e,this.publish(e))}async mediate(e){return(await this.mediateActor(e)).runObservable(e)}}nT.Mediator=WTe;(function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Jc,t),r(v1,t),r(eT,t),r(w1,t),r(tT,t),r(rT,t),r(nT,t)})(st);Object.defineProperty(k2,"__esModule",{value:!0});k2.ActorInit=void 0;const KTe=st;class JTe extends KTe.Actor{constructor(e){super(e)}}k2.ActorInit=JTe;(function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(k2,t)})(wX);Object.defineProperty(a1,"__esModule",{value:!0});a1.ActorInitQueryBase=void 0;const XTe=wX;class YTe extends XTe.ActorInit{async test(e){return!0}async run(e){throw new Error("ActorInitSparql#run is not supported in the browser.")}}a1.ActorInitQueryBase=YTe;var iT={};Object.defineProperty(iT,"__esModule",{value:!0});iT.ActorInitQuery=void 0;const ZTe=a1;typeof co>"u"&&(globalThis.process=Oo);class eEe extends ZTe.ActorInitQueryBase{}iT.ActorInitQuery=eEe;var aT={},qt={},dr={};Object.defineProperty(dr,"__esModule",{value:!0});dr.KeysRdfJoin=dr.KeysMergeBindingsContext=dr.KeysRdfUpdateQuads=dr.KeysQuerySourceIdentify=dr.KeysRdfParseHtmlScript=dr.KeysRdfParseJsonLd=dr.KeysQueryOperation=dr.KeysInitQuery=dr.KeysHttpProxy=dr.KeysHttpMemento=dr.KeysHttpWayback=dr.KeysHttp=dr.KeysCore=void 0;const St=st;dr.KeysCore={log:St.CONTEXT_KEY_LOGGER};dr.KeysHttp={includeCredentials:new St.ActionContextKey("@comunica/bus-http:include-credentials"),auth:new St.ActionContextKey("@comunica/bus-http:auth"),fetch:new St.ActionContextKey("@comunica/bus-http:fetch"),httpTimeout:new St.ActionContextKey("@comunica/bus-http:http-timeout"),httpBodyTimeout:new St.ActionContextKey("@comunica/bus-http:http-body-timeout"),httpRetryCount:new St.ActionContextKey("@comunica/bus-http:http-retry-count"),httpRetryDelay:new St.ActionContextKey("@comunica/bus-http:http-retry-delay"),httpRetryOnServerError:new St.ActionContextKey("@comunica/bus-http:http-retry-on-server-error")};dr.KeysHttpWayback={recoverBrokenLinks:new St.ActionContextKey("@comunica/bus-http:recover-broken-links")};dr.KeysHttpMemento={datetime:new St.ActionContextKey("@comunica/actor-http-memento:datetime")};dr.KeysHttpProxy={httpProxyHandler:new St.ActionContextKey("@comunica/actor-http-proxy:httpProxyHandler")};dr.KeysInitQuery={querySourcesUnidentified:new St.ActionContextKey("@comunica/actor-init-query:querySourcesUnidentified"),initialBindings:new St.ActionContextKey("@comunica/actor-init-query:initialBindings"),queryFormat:new St.ActionContextKey("@comunica/actor-init-query:queryFormat"),graphqlSingularizeVariables:new St.ActionContextKey("@comunica/actor-init-query:singularizeVariables"),lenient:new St.ActionContextKey("@comunica/actor-init-query:lenient"),queryString:new St.ActionContextKey("@comunica/actor-init-query:queryString"),query:new St.ActionContextKey("@comunica/actor-init-query:query"),baseIRI:new St.ActionContextKey("@comunica/actor-init-query:baseIRI"),functionArgumentsCache:new St.ActionContextKey("@comunica/actor-init-query:functionArgumentsCache"),queryTimestamp:new St.ActionContextKey("@comunica/actor-init-query:queryTimestamp"),extensionFunctionCreator:new St.ActionContextKey("@comunica/actor-init-query:extensionFunctionCreator"),extensionFunctions:new St.ActionContextKey("@comunica/actor-init-query:extensionFunctions"),cliArgsHandlers:new St.ActionContextKey("@comunica/actor-init-query:cliArgsHandlers"),explain:new St.ActionContextKey("@comunica/actor-init-query:explain"),physicalQueryPlanLogger:new St.ActionContextKey("@comunica/actor-init-query:physicalQueryPlanLogger"),physicalQueryPlanNode:new St.ActionContextKey("@comunica/actor-init-query:physicalQueryPlanNode"),jsonLdContext:new St.ActionContextKey("@context"),noCache:new St.ActionContextKey("@comunica/actor-init-query:noCache")};dr.KeysQueryOperation={operation:new St.ActionContextKey("@comunica/bus-query-operation:operation"),joinLeftMetadata:new St.ActionContextKey("@comunica/bus-query-operation:joinLeftMetadata"),joinRightMetadatas:new St.ActionContextKey("@comunica/bus-query-operation:joinRightMetadatas"),joinBindings:new St.ActionContextKey("@comunica/bus-query-operation:joinBindings"),readOnly:new St.ActionContextKey("@comunica/bus-query-operation:readOnly"),isPathArbitraryLengthDistinctKey:new St.ActionContextKey("@comunica/bus-query-operation:isPathArbitraryLengthDistinct"),limitIndicator:new St.ActionContextKey("@comunica/bus-query-operation:limitIndicator"),unionDefaultGraph:new St.ActionContextKey("@comunica/bus-query-operation:unionDefaultGraph"),querySources:new St.ActionContextKey("@comunica/bus-query-operation:querySources")};dr.KeysRdfParseJsonLd={documentLoader:new St.ActionContextKey("@comunica/actor-rdf-parse-jsonld:documentLoader"),strictValues:new St.ActionContextKey("@comunica/actor-rdf-parse-jsonld:strictValues"),parserOptions:new St.ActionContextKey("@comunica/actor-rdf-parse-jsonld:parserOptions")};dr.KeysRdfParseHtmlScript={processingHtmlScript:new St.ActionContextKey("@comunica/actor-rdf-parse-html-script:processingHtmlScript"),extractAllScripts:new St.ActionContextKey("extractAllScripts")};dr.KeysQuerySourceIdentify={sourceIds:new St.ActionContextKey("@comunica/bus-query-source-identify:sourceIds"),hypermediaSourcesAggregatedStores:new St.ActionContextKey("@comunica/bus-query-source-identify:hypermediaSourcesAggregatedStores"),traverse:new St.ActionContextKey("@comunica/bus-query-source-identify:traverse")};dr.KeysRdfUpdateQuads={destination:new St.ActionContextKey("@comunica/bus-rdf-update-quads:destination")};dr.KeysMergeBindingsContext={sourcesBinding:new St.ActionContextKey("@comunica/bus-merge-bindings-context:sourcesBinding")};dr.KeysRdfJoin={lastPhysicalJoin:new St.ActionContextKey("@comunica/bus-rdf-join:lastPhysicalJoin")};(function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(dr,t)})(qt);Object.defineProperty(aT,"__esModule",{value:!0});aT.QueryEngineBase=void 0;const tEe=qt,eh=st;class AS{constructor(e){this.actorInitQuery=e}async queryBindings(e,r){return this.queryOfType(e,r,"bindings")}async queryQuads(e,r){return this.queryOfType(e,r,"quads")}async queryBoolean(e,r){return this.queryOfType(e,r,"boolean")}async queryVoid(e,r){return this.queryOfType(e,r,"void")}async queryOfType(e,r,n){const a=await this.query(e,r);if(a.resultType===n)return await a.execute();throw new Error(`Query result type '${n}' was expected, while '${a.resultType}' was found.`)}async query(e,r){const n=await this.queryOrExplain(e,r);if("explain"in n)throw new Error("Tried to explain a query when in query-only mode");return n}async explain(e,r,n){return r.explain=n,await this.queryOrExplain(e,r)}async queryOrExplain(e,r){const n=eh.ActionContext.ensureActionContext(r);n.get(tEe.KeysInitQuery.noCache)&&await this.invalidateHttpCache();const{result:a}=await this.actorInitQuery.mediatorQueryProcess.mediate({query:e,context:n});return"explain"in a?a:AS.internalToFinalResult(a)}async getResultMediaTypes(e){return e=eh.ActionContext.ensureActionContext(e),(await this.actorInitQuery.mediatorQueryResultSerializeMediaTypeCombiner.mediate({context:e,mediaTypes:!0})).mediaTypes}async getResultMediaTypeFormats(e){return e=eh.ActionContext.ensureActionContext(e),(await this.actorInitQuery.mediatorQueryResultSerializeMediaTypeFormatCombiner.mediate({context:e,mediaTypeFormats:!0})).mediaTypeFormats}async resultToString(e,r,n){if(n=eh.ActionContext.ensureActionContext(n),!r)switch(e.resultType){case"bindings":r="application/json";break;case"quads":r="application/trig";break;default:r="simple";break}const a={...await AS.finalToInternalResult(e),context:n};return(await this.actorInitQuery.mediatorQueryResultSerialize.mediate({context:n,handle:a,handleMediaType:r})).handle}invalidateHttpCache(e,r){return r=eh.ActionContext.ensureActionContext(r),this.actorInitQuery.mediatorHttpInvalidate.mediate({url:e,context:r})}static internalToFinalResult(e){switch(e.type){case"bindings":return{resultType:"bindings",execute:async()=>e.bindingsStream,metadata:async()=>await e.metadata(),context:e.context};case"quads":return{resultType:"quads",execute:async()=>e.quadStream,metadata:async()=>await e.metadata(),context:e.context};case"boolean":return{resultType:"boolean",execute:async()=>e.execute(),context:e.context};case"void":return{resultType:"void",execute:async()=>e.execute(),context:e.context}}}static async finalToInternalResult(e){switch(e.resultType){case"bindings":return{type:"bindings",bindingsStream:await e.execute(),metadata:async()=>await e.metadata()};case"quads":return{type:"quads",quadStream:await e.execute(),metadata:async()=>await e.metadata()};case"boolean":return{type:"boolean",execute:()=>e.execute()};case"void":return{type:"void",execute:()=>e.execute()}}}}aT.QueryEngineBase=AS;(function(t){var e=I&&I.__createBinding||(Object.create?function(a,s,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(s,o);(!c||("get"in c?!s.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return s[o]}}),Object.defineProperty(a,u,c)}:function(a,s,o,u){u===void 0&&(u=o),a[u]=s[o]}),r=I&&I.__exportStar||function(a,s){for(var o in a)o!=="default"&&!Object.prototype.hasOwnProperty.call(s,o)&&e(s,a,o)};Object.defineProperty(t,"__esModule",{value:!0}),t.QueryEngineBase=void 0,r(a1,t),r(iT,t);var n=aT;Object.defineProperty(t,"QueryEngineBase",{enumerable:!0,get:function(){return n.QueryEngineBase}})})(iC);var EA={},th={},AA={},OA={},LM;function rEe(){return LM||(LM=1,Object.defineProperty(OA,"__esModule",{value:!0})),OA}var RA={},jM;function nEe(){return jM||(jM=1,Object.defineProperty(RA,"__esModule",{value:!0})),RA}var xA={},MM;function iEe(){return MM||(MM=1,Object.defineProperty(xA,"__esModule",{value:!0})),xA}var IA={},FM;function aEe(){return FM||(FM=1,Object.defineProperty(IA,"__esModule",{value:!0})),IA}var PA={},BM;function sEe(){return BM||(BM=1,Object.defineProperty(PA,"__esModule",{value:!0})),PA}var NA={},qM;function oEe(){return qM||(qM=1,Object.defineProperty(NA,"__esModule",{value:!0})),NA}var DA={},$M;function uEe(){return $M||($M=1,Object.defineProperty(DA,"__esModule",{value:!0})),DA}var CA={},UM;function cEe(){return UM||(UM=1,Object.defineProperty(CA,"__esModule",{value:!0})),CA}var LA={},kM;function lEe(){return kM||(kM=1,Object.defineProperty(LA,"__esModule",{value:!0})),LA}var jA={},VM;function dEe(){return VM||(VM=1,Object.defineProperty(jA,"__esModule",{value:!0})),jA}var MA={},HM;function fEe(){return HM||(HM=1,Object.defineProperty(MA,"__esModule",{value:!0})),MA}var FA={},QM;function hEe(){return QM||(QM=1,Object.defineProperty(FA,"__esModule",{value:!0})),FA}var BA={},zM;function pEe(){return zM||(zM=1,Object.defineProperty(BA,"__esModule",{value:!0})),BA}var rh={},GM;function yEe(){if(GM)return rh;GM=1,Object.defineProperty(rh,"__esModule",{value:!0}),rh.Logger=void 0;let t=class mY{static getLevelOrdinal(r){return mY.LEVELS[r]}};return rh.Logger=t,t.LEVELS={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},rh}var WM;function mEe(){return WM||(WM=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(rEe(),t),r(nEe(),t),r(iEe(),t),r(aEe(),t),r(sEe(),t),r(oEe(),t),r(uEe(),t),r(cEe(),t),r(lEe(),t),r(dEe(),t),r(fEe(),t),r(hEe(),t),r(pEe(),t),r(yEe(),t)}(AA)),AA}var KM;function gEe(){if(KM)return th;KM=1,Object.defineProperty(th,"__esModule",{value:!0}),th.LoggerVoid=void 0;const t=mEe();let e=class extends t.Logger{debug(){}error(){}fatal(){}info(){}trace(){}warn(){}};return th.LoggerVoid=e,th}var JM;function _Ee(){return JM||(JM=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(gEe(),t)}(EA)),EA}var qA={},nh={},$A={},ih={},XM;function bEe(){if(XM)return ih;XM=1,Object.defineProperty(ih,"__esModule",{value:!0}),ih.BlankNodeScoped=void 0;let t=class{constructor(r,n){this.termType="BlankNode",this.value=r,this.skolemized=n}equals(r){return!!r&&r.termType==="BlankNode"&&r.value===this.value}};return ih.BlankNodeScoped=t,ih}var ah={},YM;function vEe(){if(YM)return ah;YM=1,Object.defineProperty(ah,"__esModule",{value:!0}),ah.BlankNodeBindingsScoped=void 0;let t=class{constructor(r){this.termType="BlankNode",this.singleBindingsScope=!0,this.value=r}equals(r){return!!r&&r.termType==="BlankNode"&&r.value===this.value}};return ah.BlankNodeBindingsScoped=t,ah}var ZM;function qC(){return ZM||(ZM=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(bEe(),t),r(vEe(),t)}($A)),$A}var Wu={},nr={},jn={};Object.defineProperty(jn,"__esModule",{value:!0});jn.stringQuadToQuad=jn.quadToStringQuad=jn.stringToTerm=jn.getLiteralLanguage=jn.getLiteralType=jn.getLiteralValue=jn.termToString=void 0;const wEe=Ot,gY=new wEe.DataFactory;function ao(t){if(t)switch(t.termType){case"NamedNode":return t.value;case"BlankNode":return"_:"+t.value;case"Literal":const e=t;return'"'+e.value+'"'+(e.datatype&&e.datatype.value!=="http://www.w3.org/2001/XMLSchema#string"&&e.datatype.value!=="http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"?"^^"+e.datatype.value:"")+(e.language?"@"+e.language:"");case"Quad":return`<<${ao(t.subject)} ${ao(t.predicate)} ${ao(t.object)}${t.graph.termType==="DefaultGraph"?"":" "+ao(t.graph)}>>`;case"Variable":return"?"+t.value;case"DefaultGraph":return t.value}}jn.termToString=ao;function _Y(t){const e=/^"([^]*)"/.exec(t);if(!e)throw new Error(t+" is not a literal");return e[1]}jn.getLiteralValue=_Y;function bY(t){const e=/^"[^]*"(?:\^\^([^"]+)|(@)[^@"]+)?$/.exec(t);if(!e)throw new Error(t+" is not a literal");return e[1]||(e[2]?"http://www.w3.org/1999/02/22-rdf-syntax-ns#langString":"http://www.w3.org/2001/XMLSchema#string")}jn.getLiteralType=bY;function vY(t){const e=/^"[^]*"(?:@([^@"]+)|\^\^[^"]+)?$/.exec(t);if(!e)throw new Error(t+" is not a literal");return e[1]?e[1].toLowerCase():""}jn.getLiteralLanguage=vY;function so(t,e){if(e=e||gY,!t||!t.length)return e.defaultGraph();switch(t[0]){case"_":return e.blankNode(t.substr(2));case"?":if(!e.variable)throw new Error("Missing 'variable()' method on the given DataFactory");return e.variable(t.substr(1));case'"':const r=vY(t),n=e.namedNode(bY(t));return e.literal(_Y(t),r||n);case"<":default:if(t[0]==="<"&&t.length>4&&t[1]==="<"&&t[t.length-1]===">"&&t[t.length-2]===">"){const a=t.slice(2,-2).trim();let s=[],o=0,u=0,c=!1;for(let l=0;l"){if(o===0)throw new Error("Found closing tag without opening tag in "+t);o--}if(d==='"'){let f=!1,h=l;for(;h-- >0&&a[h]==="\\";)f=!f;f||(c=!c)}if(d===" "&&!c&&o===0){for(s.push(a.slice(u,l));a[l+1]===" ";)l+=1;u=l+1}}if(o!==0)throw new Error("Found opening tag without closing tag in "+t);if(s.push(a.slice(u,a.length)),s.length!==3&&s.length!==4)throw new Error("Nested quad syntax error "+t);return s=s.map(l=>l.startsWith("<")&&!l.includes(" ")?l.slice(1,-1):l),e.quad(so(s[0]),so(s[1]),so(s[2]),s[3]?so(s[3]):void 0)}return e.namedNode(t)}}jn.stringToTerm=so;function SEe(t){return{subject:ao(t.subject),predicate:ao(t.predicate),object:ao(t.object),graph:ao(t.graph)}}jn.quadToStringQuad=SEe;function TEe(t,e){return e=e||gY,e.quad(so(t.subject,e),so(t.predicate,e),so(t.object,e),so(t.graph,e))}jn.stringQuadToQuad=TEe;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.termToString=t.stringToTerm=t.stringQuadToQuad=t.quadToStringQuad=t.getLiteralValue=t.getLiteralType=t.getLiteralLanguage=void 0;const e=jn;Object.defineProperty(t,"getLiteralLanguage",{enumerable:!0,get:function(){return e.getLiteralLanguage}}),Object.defineProperty(t,"getLiteralType",{enumerable:!0,get:function(){return e.getLiteralType}}),Object.defineProperty(t,"getLiteralValue",{enumerable:!0,get:function(){return e.getLiteralValue}}),Object.defineProperty(t,"quadToStringQuad",{enumerable:!0,get:function(){return e.quadToStringQuad}}),Object.defineProperty(t,"stringQuadToQuad",{enumerable:!0,get:function(){return e.stringQuadToQuad}}),Object.defineProperty(t,"stringToTerm",{enumerable:!0,get:function(){return e.stringToTerm}}),Object.defineProperty(t,"termToString",{enumerable:!0,get:function(){return e.termToString}})})(nr);var UA={},mt={},e8;function wY(){if(e8)return mt;e8=1,Object.defineProperty(mt,"__esModule",{value:!0}),mt.matchPatternMappings=mt.matchPatternComplete=mt.matchPattern=mt.matchTerm=mt.getValueNestedPath=mt.someTermsNested=mt.someTerms=mt.everyTermsNested=mt.everyTerms=mt.reduceTermsNested=mt.reduceTerms=mt.mapTermsNested=mt.mapTerms=mt.filterQuadTermNamesNested=mt.filterQuadTermNames=mt.filterTermsNested=mt.filterTerms=mt.forEachTermsNested=mt.forEachTerms=mt.collectNamedTerms=mt.getNamedTerms=mt.getTermsNested=mt.getTerms=mt.TRIPLE_TERM_NAMES=mt.QUAD_TERM_NAMES=void 0;const t=Ot,e=new t.DataFactory;mt.QUAD_TERM_NAMES=["subject","predicate","object","graph"],mt.TRIPLE_TERM_NAMES=["subject","predicate","object"];function r(x,P){return P&&x.graph.termType==="DefaultGraph"?[x.subject,x.predicate,x.object]:[x.subject,x.predicate,x.object,x.graph]}mt.getTerms=r;function n(x,P){const j=[];for(const N of r(x,P))N.termType==="Quad"?n(N,P).forEach(V=>j.push(V)):j.push(N);return j}mt.getTermsNested=n;function a(x){return[{key:"subject",value:x.subject},{key:"predicate",value:x.predicate},{key:"object",value:x.object},{key:"graph",value:x.graph}]}mt.getNamedTerms=a;function s(x,P,j){const N={};return x.forEach(V=>N[V.key]=V.value),P&&(N.subject=N.subject||P("subject"),N.predicate=N.predicate||P("predicate"),N.object=N.object||P("object"),N.graph=N.graph||P("graph")),(j||e).quad(N.subject,N.predicate,N.object,N.graph)}mt.collectNamedTerms=s;function o(x,P){P(x.subject,"subject"),P(x.predicate,"predicate"),P(x.object,"object"),P(x.graph,"graph")}mt.forEachTerms=o;function u(x,P,j=[]){x.subject.termType==="Quad"?u(x.subject,P,[...j,"subject"]):P(x.subject,[...j,"subject"]),x.predicate.termType==="Quad"?u(x.predicate,P,[...j,"predicate"]):P(x.predicate,[...j,"predicate"]),x.object.termType==="Quad"?u(x.object,P,[...j,"object"]):P(x.object,[...j,"object"]),x.graph.termType==="Quad"?u(x.graph,P,[...j,"graph"]):P(x.graph,[...j,"graph"])}mt.forEachTermsNested=u;function c(x,P){const j=[];return P(x.subject,"subject")&&j.push(x.subject),P(x.predicate,"predicate")&&j.push(x.predicate),P(x.object,"object")&&j.push(x.object),P(x.graph,"graph")&&j.push(x.graph),j}mt.filterTerms=c;function l(x,P,j=[]){let N=[];return x.subject.termType==="Quad"?N=[...N,...l(x.subject,P,[...j,"subject"])]:P(x.subject,[...j,"subject"])&&N.push(x.subject),x.predicate.termType==="Quad"?N=[...N,...l(x.predicate,P,[...j,"predicate"])]:P(x.predicate,[...j,"predicate"])&&N.push(x.predicate),x.object.termType==="Quad"?N=[...N,...l(x.object,P,[...j,"object"])]:P(x.object,[...j,"object"])&&N.push(x.object),x.graph.termType==="Quad"?N=[...N,...l(x.graph,P,[...j,"graph"])]:P(x.graph,[...j,"graph"])&&N.push(x.graph),N}mt.filterTermsNested=l;function d(x,P){const j=[];return P(x.subject,"subject")&&j.push("subject"),P(x.predicate,"predicate")&&j.push("predicate"),P(x.object,"object")&&j.push("object"),P(x.graph,"graph")&&j.push("graph"),j}mt.filterQuadTermNames=d;function f(x,P,j=[]){let N=[];const V=[...j,"subject"];x.subject.termType==="Quad"?N=[...N,...f(x.subject,P,V)]:P(x.subject,V)&&N.push(V);const $=[...j,"predicate"];x.predicate.termType==="Quad"?N=[...N,...f(x.predicate,P,$)]:P(x.predicate,$)&&N.push($);const q=[...j,"object"];x.object.termType==="Quad"?N=[...N,...f(x.object,P,q)]:P(x.object,q)&&N.push(q);const H=[...j,"graph"];return x.graph.termType==="Quad"?N=[...N,...f(x.graph,P,H)]:P(x.graph,H)&&N.push(H),N}mt.filterQuadTermNamesNested=f;function h(x,P,j){return(j||e).quad(P(x.subject,"subject"),P(x.predicate,"predicate"),P(x.object,"object"),P(x.graph,"graph"))}mt.mapTerms=h;function p(x,P,j,N=[]){return(j||e).quad(x.subject.termType==="Quad"?p(x.subject,P,j,[...N,"subject"]):P(x.subject,[...N,"subject"]),x.predicate.termType==="Quad"?p(x.predicate,P,j,[...N,"predicate"]):P(x.predicate,[...N,"predicate"]),x.object.termType==="Quad"?p(x.object,P,j,[...N,"object"]):P(x.object,[...N,"object"]),x.graph.termType==="Quad"?p(x.graph,P,j,[...N,"graph"]):P(x.graph,[...N,"graph"]))}mt.mapTermsNested=p;function m(x,P,j){let N=j;return N=P(N,x.subject,"subject"),N=P(N,x.predicate,"predicate"),N=P(N,x.object,"object"),P(N,x.graph,"graph")}mt.reduceTerms=m;function y(x,P,j,N=[]){let V=j;return x.subject.termType==="Quad"?V=y(x.subject,P,V,[...N,"subject"]):V=P(V,x.subject,[...N,"subject"]),x.predicate.termType==="Quad"?V=y(x.predicate,P,V,[...N,"predicate"]):V=P(V,x.predicate,[...N,"predicate"]),x.object.termType==="Quad"?V=y(x.object,P,V,[...N,"object"]):V=P(V,x.object,[...N,"object"]),x.graph.termType==="Quad"?V=y(x.graph,P,V,[...N,"graph"]):V=P(V,x.graph,[...N,"graph"]),V}mt.reduceTermsNested=y;function g(x,P){return P(x.subject,"subject")&&P(x.predicate,"predicate")&&P(x.object,"object")&&P(x.graph,"graph")}mt.everyTerms=g;function b(x,P,j=[]){return(x.subject.termType==="Quad"?b(x.subject,P,[...j,"subject"]):P(x.subject,[...j,"subject"]))&&(x.predicate.termType==="Quad"?b(x.predicate,P,[...j,"predicate"]):P(x.predicate,[...j,"predicate"]))&&(x.object.termType==="Quad"?b(x.object,P,[...j,"object"]):P(x.object,[...j,"object"]))&&(x.graph.termType==="Quad"?b(x.graph,P,[...j,"graph"]):P(x.graph,[...j,"graph"]))}mt.everyTermsNested=b;function v(x,P){return P(x.subject,"subject")||P(x.predicate,"predicate")||P(x.object,"object")||P(x.graph,"graph")}mt.someTerms=v;function _(x,P,j=[]){return(x.subject.termType==="Quad"?_(x.subject,P,[...j,"subject"]):P(x.subject,[...j,"subject"]))||(x.predicate.termType==="Quad"?_(x.predicate,P,[...j,"predicate"]):P(x.predicate,[...j,"predicate"]))||(x.object.termType==="Quad"?_(x.object,P,[...j,"object"]):P(x.object,[...j,"object"]))||(x.graph.termType==="Quad"?_(x.graph,P,[...j,"graph"]):P(x.graph,[...j,"graph"]))}mt.someTermsNested=_;function w(x,P){if(P.length===0)return x;if(x.termType==="Quad")return w(x[P[0]],P.slice(1));throw new Error(`Tried to get ${P[0]} from term of type ${x.termType}`)}mt.getValueNestedPath=w;function E(x,P){return!P||P.termType==="Variable"||P.termType==="Quad"&&x.termType==="Quad"&&L(x,P)||P.equals(x)}mt.matchTerm=E;function O(x,P,j,N,V){return E(x.subject,P)&&E(x.predicate,j)&&E(x.object,N)&&E(x.graph,V)}mt.matchPattern=O;function L(x,P){return O(x,P.subject,P.predicate,P.object,P.graph)}mt.matchPatternComplete=L;function F(x,P,j={}){const N={};function V($,q){return g($,(H,X)=>{var Y,he;const Te=q[X];switch(H.termType){case"Variable":return j.skipVarMapping&&Te.termType==="Variable"||((he=(Y=N[H.value])===null||Y===void 0?void 0:Y.equals(Te))!==null&&he!==void 0?he:(N[H.value]=Te,!0));case"Quad":return Te.termType==="Quad"&&V(H,Te);default:return H.equals(Te)}})}return V(P,x)&&(j.returnMappings?N:!0)}return mt.matchPatternMappings=F,mt}var zr={},t8;function EEe(){if(t8)return zr;t8=1,Object.defineProperty(zr,"__esModule",{value:!0}),zr.getQuads=zr.getDefaultGraphs=zr.getVariables=zr.getLiterals=zr.getBlankNodes=zr.getNamedNodes=zr.getTermsOfType=zr.uniqTerms=zr.TERM_TYPES=void 0;const t=nr;zr.TERM_TYPES=["NamedNode","BlankNode","Literal","Variable","DefaultGraph","Quad"];function e(l){const d={};return l.filter(f=>{const h=(0,t.termToString)(f);return!(h in d)&&(d[h]=!0)})}zr.uniqTerms=e;function r(l,d){return l.filter(f=>f.termType===d)}zr.getTermsOfType=r;function n(l){return r(l,"NamedNode")}zr.getNamedNodes=n;function a(l){return r(l,"BlankNode")}zr.getBlankNodes=a;function s(l){return r(l,"Literal")}zr.getLiterals=s;function o(l){return r(l,"Variable")}zr.getVariables=o;function u(l){return r(l,"DefaultGraph")}zr.getDefaultGraphs=u;function c(l){return r(l,"Quad")}return zr.getQuads=c,zr}var r8;function In(){return r8||(r8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(wY(),t),r(EEe(),t)}(UA)),UA}var kA={},Lv={},VA,n8;function AEe(){return n8||(n8=1,VA=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,a,s;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(a=n;a--!==0;)if(!t(e[a],r[a]))return!1;return!0}if(e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(a of e.entries())if(!r.has(a[0]))return!1;for(a of e.entries())if(!t(a[1],r.get(a[0])))return!1;return!0}if(e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(a of e.entries())if(!r.has(a[0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(r)){if(n=e.length,n!=r.length)return!1;for(a=n;a--!==0;)if(e[a]!==r[a])return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(s=Object.keys(e),n=s.length,n!==Object.keys(r).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[a]))return!1;for(a=n;a--!==0;){var o=s[a];if(!t(e[o],r[o]))return!1}return!0}return e!==e&&r!==r}),VA}var HA={},i8;function S1(){return i8||(i8=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.expressionTypes=t.types=void 0,function(e){e.ALT="alt",e.ASK="ask",e.BGP="bgp",e.CONSTRUCT="construct",e.DESCRIBE="describe",e.DISTINCT="distinct",e.EXPRESSION="expression",e.EXTEND="extend",e.FILTER="filter",e.FROM="from",e.GRAPH="graph",e.GROUP="group",e.INV="inv",e.JOIN="join",e.LEFT_JOIN="leftjoin",e.LINK="link",e.MINUS="minus",e.NOP="nop",e.NPS="nps",e.ONE_OR_MORE_PATH="OneOrMorePath",e.ORDER_BY="orderby",e.PATH="path",e.PATTERN="pattern",e.PROJECT="project",e.REDUCED="reduced",e.SEQ="seq",e.SERVICE="service",e.SLICE="slice",e.UNION="union",e.VALUES="values",e.ZERO_OR_MORE_PATH="ZeroOrMorePath",e.ZERO_OR_ONE_PATH="ZeroOrOnePath",e.COMPOSITE_UPDATE="compositeupdate",e.DELETE_INSERT="deleteinsert",e.LOAD="load",e.CLEAR="clear",e.CREATE="create",e.DROP="drop",e.ADD="add",e.MOVE="move",e.COPY="copy"}(t.types||(t.types={})),function(e){e.AGGREGATE="aggregate",e.EXISTENCE="existence",e.NAMED="named",e.OPERATOR="operator",e.TERM="term",e.WILDCARD="wildcard"}(t.expressionTypes||(t.expressionTypes={}))}(HA)),HA}var jv={},a8;function sT(){if(a8)return jv;a8=1;var t=I&&I.__createBinding||(Object.create?function(c,l,d,f){f===void 0&&(f=d);var h=Object.getOwnPropertyDescriptor(l,d);(!h||("get"in h?!l.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return l[d]}}),Object.defineProperty(c,f,h)}:function(c,l,d,f){f===void 0&&(f=d),c[f]=l[d]}),e=I&&I.__setModuleDefault||(Object.create?function(c,l){Object.defineProperty(c,"default",{enumerable:!0,value:l})}:function(c,l){c.default=l}),r=I&&I.__importStar||function(c){if(c&&c.__esModule)return c;var l={};if(c!=null)for(var d in c)d!=="default"&&Object.prototype.hasOwnProperty.call(c,d)&&t(l,c,d);return e(l,c),l};Object.defineProperty(jv,"__esModule",{value:!0});const n=r(S1()),a=Ot,s=nr,o=sl;class u{constructor(l){this.dataFactory=l||new a.DataFactory,this.stringType=this.createTerm("http://www.w3.org/2001/XMLSchema#string")}createAlt(l,d=!0){return this.flattenMulti({type:n.types.ALT,input:l},d)}createAsk(l){return{type:n.types.ASK,input:l}}createBoundAggregate(l,d,f,h,p){const m=this.createAggregateExpression(d,f,h,p);return m.variable=l,m}createBgp(l){return{type:n.types.BGP,patterns:l}}createConstruct(l,d){return{type:n.types.CONSTRUCT,input:l,template:d}}createDescribe(l,d){return{type:n.types.DESCRIBE,input:l,terms:d}}createDistinct(l){return{type:n.types.DISTINCT,input:l}}createExtend(l,d,f){return{type:n.types.EXTEND,input:l,variable:d,expression:f}}createFrom(l,d,f){return{type:n.types.FROM,input:l,default:d,named:f}}createFilter(l,d){return{type:n.types.FILTER,input:l,expression:d}}createGraph(l,d){return{type:n.types.GRAPH,input:l,name:d}}createGroup(l,d,f){return{type:n.types.GROUP,input:l,variables:d,aggregates:f}}createInv(l){return{type:n.types.INV,path:l}}createJoin(l,d=!0){return this.flattenMulti({type:n.types.JOIN,input:l},d)}createLeftJoin(l,d,f){return f?{type:n.types.LEFT_JOIN,input:[l,d],expression:f}:{type:n.types.LEFT_JOIN,input:[l,d]}}createLink(l){return{type:n.types.LINK,iri:l}}createMinus(l,d){return{type:n.types.MINUS,input:[l,d]}}createNop(){return{type:n.types.NOP}}createNps(l){return{type:n.types.NPS,iris:l}}createOneOrMorePath(l){return{type:n.types.ONE_OR_MORE_PATH,path:l}}createOrderBy(l,d){return{type:n.types.ORDER_BY,input:l,expressions:d}}createPath(l,d,f,h){return h?{type:n.types.PATH,subject:l,predicate:d,object:f,graph:h}:{type:n.types.PATH,subject:l,predicate:d,object:f,graph:this.dataFactory.defaultGraph()}}createPattern(l,d,f,h){const p=this.dataFactory.quad(l,d,f,h);return p.type=n.types.PATTERN,p}createProject(l,d){return{type:n.types.PROJECT,input:l,variables:d}}createReduced(l){return{type:n.types.REDUCED,input:l}}createSeq(l,d=!0){return this.flattenMulti({type:n.types.SEQ,input:l},d)}createService(l,d,f){return{type:n.types.SERVICE,input:l,name:d,silent:!!f}}createSlice(l,d,f){return d=d||0,f!==void 0?{type:n.types.SLICE,input:l,start:d,length:f}:{type:n.types.SLICE,input:l,start:d}}createUnion(l,d=!0){return this.flattenMulti({type:n.types.UNION,input:l},d)}createValues(l,d){return{type:n.types.VALUES,variables:l,bindings:d}}createZeroOrMorePath(l){return{type:n.types.ZERO_OR_MORE_PATH,path:l}}createZeroOrOnePath(l){return{type:n.types.ZERO_OR_ONE_PATH,path:l}}createAggregateExpression(l,d,f,h){return h?{type:n.types.EXPRESSION,expressionType:n.expressionTypes.AGGREGATE,aggregator:l,expression:d,separator:h,distinct:f}:{type:n.types.EXPRESSION,expressionType:n.expressionTypes.AGGREGATE,aggregator:l,expression:d,distinct:f}}createExistenceExpression(l,d){return{type:n.types.EXPRESSION,expressionType:n.expressionTypes.EXISTENCE,not:l,input:d}}createNamedExpression(l,d){return{type:n.types.EXPRESSION,expressionType:n.expressionTypes.NAMED,name:l,args:d}}createOperatorExpression(l,d){return{type:n.types.EXPRESSION,expressionType:n.expressionTypes.OPERATOR,operator:l,args:d}}createTermExpression(l){return{type:n.types.EXPRESSION,expressionType:n.expressionTypes.TERM,term:l}}createWildcardExpression(){return{type:n.types.EXPRESSION,expressionType:n.expressionTypes.WILDCARD,wildcard:new o.Wildcard}}createTerm(l){return l[0]==="$"&&(l=l.replace("$","?")),(0,s.stringToTerm)(l,this.dataFactory)}createCompositeUpdate(l){return{type:n.types.COMPOSITE_UPDATE,updates:l}}createDeleteInsert(l,d,f){const h={type:n.types.DELETE_INSERT};return l&&(h.delete=l),d&&(h.insert=d),f&&(h.where=f),h}createLoad(l,d,f){const h={type:n.types.LOAD,source:l};return d&&(h.destination=d),this.addSilent(h,!!f)}createClear(l,d){return this.addSilent({type:n.types.CLEAR,source:l},!!d)}createCreate(l,d){return this.addSilent({type:n.types.CREATE,source:l},!!d)}createDrop(l,d){return this.addSilent({type:n.types.DROP,source:l},!!d)}createAdd(l,d,f){return this.addSilent({type:n.types.ADD,source:l,destination:d},!!f)}createMove(l,d,f){return this.addSilent({type:n.types.MOVE,source:l,destination:d},!!f)}createCopy(l,d,f){return this.addSilent({type:n.types.COPY,source:l,destination:d},!!f)}addSilent(l,d){return d&&(l.silent=d),l}flattenMulti(l,d){if(!d)return l;const f=l.type,h=l.input;let p=[];for(const m of h)m.type===f?p.push(...m.input):p.push(m);return l.input=p,l}}return jv.default=u,jv}var Mv={},s8;function $C(){if(s8)return Mv;s8=1;var t=I&&I.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Mv,"__esModule",{value:!0});const e=S1(),r=t(sT()),n=In();class a{static flatten(o){return Array.prototype.concat(...o).filter(u=>u)}static objectify(o){if(o.termType){if(o.termType==="Quad")return{type:"pattern",termType:"Quad",subject:a.objectify(o.subject),predicate:a.objectify(o.predicate),object:a.objectify(o.object),graph:a.objectify(o.graph)};{let u={termType:o.termType,value:o.value};return o.language&&(u.language=o.language),o.datatype&&(u.datatype=a.objectify(o.datatype)),u}}if(Array.isArray(o))return o.map(u=>a.objectify(u));if(o===Object(o)){let u={};for(let c of Object.keys(o))u[c]=a.objectify(o[c]);return u}return o}static inScopeVariables(o){const u=[];function c(d){u.find(f=>d.value===f.value)||u.push(d)}function l(d){d.subject.termType==="Variable"&&c(d.subject),d.predicate.termType==="Variable"&&c(d.predicate),d.object.termType==="Variable"&&c(d.object),d.graph.termType==="Variable"&&c(d.graph),d.subject.termType==="Quad"&&l(d.subject),d.predicate.termType==="Quad"&&l(d.predicate),d.object.termType==="Quad"&&l(d.object),d.graph.termType==="Quad"&&l(d.graph)}return a.recurseOperation(o,{[e.types.EXPRESSION]:d=>(d.expressionType===e.expressionTypes.AGGREGATE&&d.variable&&c(d.variable),!0),[e.types.EXTEND]:d=>(c(d.variable),!0),[e.types.GRAPH]:d=>(d.name.termType==="Variable"&&c(d.name),!0),[e.types.GROUP]:d=>(d.variables.forEach(c),!0),[e.types.PATH]:d=>(d.subject.termType==="Variable"&&c(d.subject),d.object.termType==="Variable"&&c(d.object),d.graph.termType==="Variable"&&c(d.graph),d.subject.termType==="Quad"&&l(d.subject),d.object.termType==="Quad"&&l(d.object),d.graph.termType==="Quad"&&l(d.graph),!0),[e.types.PATTERN]:d=>(l(d),!0),[e.types.PROJECT]:d=>(d.variables.forEach(c),!1),[e.types.SERVICE]:d=>(d.name.termType==="Variable"&&c(d.name),!0),[e.types.VALUES]:d=>(d.variables.forEach(c),!0)}),u}static recurseOperation(o,u){let c=o,l=!0;const d=u[o.type];if(d&&(l=d(o)),!l)return;let f=h=>a.recurseOperation(h,u);switch(c.type){case e.types.ALT:c.input.map(f);break;case e.types.ASK:f(c.input);break;case e.types.BGP:c.patterns.forEach(f);break;case e.types.CONSTRUCT:f(c.input),c.template.map(f);break;case e.types.DESCRIBE:f(c.input);break;case e.types.DISTINCT:f(c.input);break;case e.types.EXPRESSION:c.expressionType===e.expressionTypes.EXISTENCE&&f(c.input);break;case e.types.EXTEND:f(c.input),f(c.expression);break;case e.types.FILTER:f(c.input),f(c.expression);break;case e.types.FROM:f(c.input);break;case e.types.GRAPH:f(c.input);break;case e.types.GROUP:f(c.input),c.aggregates.forEach(f);break;case e.types.INV:f(c.path);break;case e.types.JOIN:c.input.map(f);break;case e.types.LEFT_JOIN:c.input.map(f),c.expression&&f(c.expression);break;case e.types.LINK:break;case e.types.MINUS:c.input.map(f);break;case e.types.NOP:break;case e.types.NPS:break;case e.types.ONE_OR_MORE_PATH:f(c.path);break;case e.types.ORDER_BY:f(c.input),c.expressions.forEach(f);break;case e.types.PATH:f(c.predicate);break;case e.types.PATTERN:break;case e.types.PROJECT:f(c.input);break;case e.types.REDUCED:f(c.input);break;case e.types.SEQ:c.input.map(f);break;case e.types.SERVICE:f(c.input);break;case e.types.SLICE:f(c.input);break;case e.types.UNION:c.input.map(f);break;case e.types.VALUES:break;case e.types.ZERO_OR_MORE_PATH:f(c.path);break;case e.types.ZERO_OR_ONE_PATH:f(c.path);break;case e.types.COMPOSITE_UPDATE:c.updates.forEach(h=>f(h));break;case e.types.DELETE_INSERT:c.delete&&c.delete.forEach(h=>f(h)),c.insert&&c.insert.forEach(h=>f(h)),c.where&&f(c.where);break;case e.types.LOAD:break;case e.types.CLEAR:break;case e.types.CREATE:break;case e.types.DROP:break;case e.types.ADD:break;case e.types.MOVE:break;case e.types.COPY:break;default:throw new Error(`Unknown Operation type ${c.type}`)}}static mapOperation(o,u,c){let l=o,d=!0,f=!0;c=c||new r.default;const h=u[o.type];if(h){const y=h(o,c);l=y.result,d=y.recurse,f=y.copyMetadata!==!1}let p;if(f&&(l.metadata||o.metadata)&&(p={...l.metadata,...o.metadata}),!d)return p&&(l.metadata=p),l;let m=y=>a.mapOperation(y,u,c);switch(l.type){case e.types.ALT:l=c.createAlt(l.input.map(m));break;case e.types.ASK:l=c.createAsk(m(l.input));break;case e.types.BGP:l=c.createBgp(l.patterns.map(m));break;case e.types.CONSTRUCT:l=c.createConstruct(m(l.input),l.template.map(m));break;case e.types.DESCRIBE:l=c.createDescribe(m(l.input),l.terms);break;case e.types.DISTINCT:l=c.createDistinct(m(l.input));break;case e.types.EXPRESSION:l=a.mapExpression(l,u,c);break;case e.types.EXTEND:l=c.createExtend(m(l.input),l.variable,m(l.expression));break;case e.types.FILTER:l=c.createFilter(m(l.input),m(l.expression));break;case e.types.FROM:l=c.createFrom(m(l.input),[...l.default],[...l.named]);break;case e.types.GRAPH:l=c.createGraph(m(l.input),l.name);break;case e.types.GROUP:l=c.createGroup(m(l.input),[].concat(l.variables),l.aggregates.map(m));break;case e.types.INV:l=c.createInv(m(l.path));break;case e.types.JOIN:l=c.createJoin(l.input.map(m));break;case e.types.LEFT_JOIN:l=c.createLeftJoin(m(l.input[0]),m(l.input[1]),l.expression?m(l.expression):void 0);break;case e.types.LINK:l=c.createLink(l.iri);break;case e.types.MINUS:l=c.createMinus(m(l.input[0]),m(l.input[1]));break;case e.types.NOP:l=c.createNop();break;case e.types.NPS:l=c.createNps([].concat(l.iris));break;case e.types.ONE_OR_MORE_PATH:l=c.createOneOrMorePath(m(l.path));break;case e.types.ORDER_BY:l=c.createOrderBy(m(l.input),l.expressions.map(m));break;case e.types.PATH:l=c.createPath(l.subject,m(l.predicate),l.object,l.graph);break;case e.types.PATTERN:l=c.createPattern(l.subject,l.predicate,l.object,l.graph);break;case e.types.PROJECT:l=c.createProject(m(l.input),[...l.variables]);break;case e.types.REDUCED:l=c.createReduced(m(l.input));break;case e.types.SEQ:l=c.createSeq(l.input.map(m));break;case e.types.SERVICE:l=c.createService(m(l.input),l.name,l.silent);break;case e.types.SLICE:l=c.createSlice(m(l.input),l.start,l.length);break;case e.types.UNION:l=c.createUnion(l.input.map(m));break;case e.types.VALUES:l=c.createValues([].concat(l.variables),l.bindings.map(y=>Object.assign({},y)));break;case e.types.ZERO_OR_MORE_PATH:l=c.createZeroOrMorePath(m(l.path));break;case e.types.ZERO_OR_ONE_PATH:l=c.createZeroOrOnePath(m(l.path));break;case e.types.COMPOSITE_UPDATE:l=c.createCompositeUpdate(l.updates.map(m));break;case e.types.DELETE_INSERT:l=c.createDeleteInsert(l.delete?l.delete.map(m):void 0,l.insert?l.insert.map(m):void 0,l.where?m(l.where):void 0);break;case e.types.LOAD:l=c.createLoad(l.source,l.destination,l.silent);break;case e.types.CLEAR:l=c.createClear(l.source,l.silent);break;case e.types.CREATE:l=c.createCreate(l.source,l.silent);break;case e.types.DROP:l=c.createDrop(l.source,l.silent);break;case e.types.ADD:l=c.createAdd(l.source,l.destination);break;case e.types.MOVE:l=c.createMove(l.source,l.destination);break;case e.types.COPY:l=c.createCopy(l.source,l.destination);break;default:throw new Error(`Unknown Operation type ${l.type}`)}return p&&(l.metadata=p),l}static mapExpression(o,u,c){let l=o,d=!0;c=c||new r.default;const f=u[o.expressionType];if(f&&({result:l,recurse:d}=f(o,c)),!d)return l;let h=p=>a.mapOperation(p,u,c);switch(o.expressionType){case e.expressionTypes.AGGREGATE:return o.variable?c.createBoundAggregate(o.variable,o.aggregator,h(o.expression),o.distinct,o.separator):c.createAggregateExpression(o.aggregator,h(o.expression),o.distinct,o.separator);case e.expressionTypes.EXISTENCE:return c.createExistenceExpression(o.not,h(o.input));case e.expressionTypes.NAMED:return c.createNamedExpression(o.name,o.args.map(h));case e.expressionTypes.OPERATOR:return c.createOperatorExpression(o.operator,o.args.map(h));case e.expressionTypes.TERM:return c.createTermExpression(o.term);case e.expressionTypes.WILDCARD:return c.createWildcardExpression();default:throw new Error(`Unknown Expression type ${o.expressionType}`)}}static cloneOperation(o){return a.mapOperation(o,{})}static cloneExpression(o){return a.mapExpression(o,{})}static createUniqueVariable(o,u,c){let l=0,d=o;for(;u[d];)d=`${o}${l++}`;return c.variable(d)}static isSimpleTerm(o){return o.termType!==void 0&&o.termType!=="Quad"&&o.termType!=="Wildcard"}static isQuad(o){return o.termType==="Quad"}static hasQuadVariables(o){return(0,n.someTermsNested)(o,u=>u.termType==="Variable")}static isWildcard(o){return o.termType==="Wildcard"}}return Mv.default=a,Mv}var o8;function OEe(){if(o8)return Lv;o8=1;var t=I&&I.__createBinding||(Object.create?function(M,k,T,R){R===void 0&&(R=T);var U=Object.getOwnPropertyDescriptor(k,T);(!U||("get"in U?!k.__esModule:U.writable||U.configurable))&&(U={enumerable:!0,get:function(){return k[T]}}),Object.defineProperty(M,R,U)}:function(M,k,T,R){R===void 0&&(R=T),M[R]=k[T]}),e=I&&I.__setModuleDefault||(Object.create?function(M,k){Object.defineProperty(M,"default",{enumerable:!0,value:k})}:function(M,k){M.default=k}),r=I&&I.__importStar||function(M){if(M&&M.__esModule)return M;var k={};if(M!=null)for(var T in M)T!=="default"&&Object.prototype.hasOwnProperty.call(M,T)&&t(k,M,T);return e(k,M),k},n=I&&I.__importDefault||function(M){return M&&M.__esModule?M:{default:M}};Object.defineProperty(Lv,"__esModule",{value:!0});const a=AEe(),s=nr,o=r(S1()),u=n(sT()),c=n($C()),l=sl.Parser,d=o.types;let f=new Set,h=0,p=!1,m;function y(M,k){k=k||{},m=new u.default(k.dataFactory);let T;if(b(M)){let R=new l(k);R._resetBlanks(),T=R.parse(M)}else T=M;return g(T,k.quads,k.blankToVariable)}Lv.default=y;function g(M,k,T){if(f=new Set,h=0,p=!!k,!M.type)return m.createNop();if(M.type!=="query"&&M.type!=="update")throw new Error("Translate only works on complete query or update objects.");let R;if(E(M),M.type==="query"){const U={type:"group",patterns:M.where||[]};R=L(U),R=Te(M,R)}else M.type==="update"&&(R=de(M));return T&&(R=z(R)),R}function b(M){return typeof M=="string"}function v(M){return!!(M!=null&&M.termType)}function _(M){return M.subject&&M.predicate&&M.object}function w(M){return(M==null?void 0:M.termType)==="Variable"}function E(M){if(v(M))w(M)&&f.add(`?${M.value}`);else if(Array.isArray(M))for(const k of M)E(k);else if(M&&typeof M=="object")for(let k of Object.keys(M))k.startsWith("?")?f.add(k):k.startsWith("$")&&f.add(`?${k.slice(1)}`),E(M[k])}function O(M){let k={};if(_(M)){const T=[O(M.subject),O(M.predicate),O(M.object),M.graph?O(M.graph):{}];Object.assign(k,...T)}else if(v(M))w(M)&&(k[M.value]=M);else if(M.type==="bgp"){const T=M.triples;Object.assign(k,...T.map(O))}else if(M.type==="path")Object.assign(k,...M.items.map(O));else if(M.type==="group"||M.type==="union"||M.type==="optional")Object.assign(k,...M.patterns.map(O));else if(M.type==="service"||M.type==="graph")Object.assign(k,O(M.name)),Object.assign(k,...M.patterns.map(O));else if(M.type==="bind")Object.assign(k,O(M.variable));else if(M.type==="values"){if(M.values.length>0){const T=Object.keys(M.values[0]).map(R=>m.createTerm(R));Object.assign(k,...T.map(O))}}else if(M.type==="query"&&(M.queryType==="SELECT"||M.queryType==="DESCRIBE")){M.where&&M.variables.some(c.default.isWildcard)&&Object.assign(k,...M.where.map(O));for(const T of M.variables)w(T)?Object.assign(k,O(T)):T.variable&&Object.assign(k,O(T.variable));if(M.queryType==="SELECT"){if(M.group)for(const T of M.group)T.variable&&Object.assign(k,O(T.variable));if(M.values){const T={type:"values",values:M.values};Object.assign(k,O(T))}}}return k}function L(M){if(M.type==="bgp")return x(M);if(M.type==="union")return m.createUnion(M.patterns.map(k=>(k.type!=="group"&&(k={type:"group",patterns:[k]}),L(k))));if(M.type==="graph"){const k={type:"group",patterns:M.patterns};let T=L(k);return p?T=H(T,M.name):T=m.createGraph(T,M.name),T}if(M.type==="values")return he(M);if(M.type==="query")return g(M,p,!1);if(M.type==="group"){let k=[],T=[];for(let G of M.patterns)(G.type==="filter"?k:T).push(G);let R=T.reduce(X,m.createBgp([])),U=k.map(G=>F(G.expression));return U.length>0&&(R=m.createFilter(R,U.reduce((G,Q)=>m.createOperatorExpression("&&",[G,Q])))),R}throw new Error(`Unexpected type: ${M.type}`)}function F(M){if(c.default.isSimpleTerm(M))return m.createTermExpression(M);if(c.default.isQuad(M))return c.default.hasQuadVariables(M)?m.createOperatorExpression("triple",[F(M.subject),F(M.predicate),F(M.object)]):m.createTermExpression(M);if(c.default.isWildcard(M))return m.createWildcardExpression();if("aggregation"in M)return m.createAggregateExpression(M.aggregation,F(M.expression),!!M.distinct,M.separator);if("function"in M)return m.createNamedExpression(M.function,M.args.map(F));if("operator"in M)return M.operator==="exists"||M.operator==="notexists"?m.createExistenceExpression(M.operator==="notexists",L(M.args[0])):((M.operator==="in"||M.operator==="notin")&&(M.args=[M.args[0]].concat(M.args[1])),m.createOperatorExpression(M.operator,M.args.map(F)));throw new Error(`Unknown expression: ${JSON.stringify(M)}`)}function x(M){let k=[],T=[];for(let R of M.triples)if("pathType"in R.predicate){let U=P(R);for(let G of U)G.type===d.PATH?(k.length>0&&T.push(m.createBgp(k)),k=[],T.push(G)):k.push(G)}else k.push($(R));return k.length>0&&T.push(m.createBgp(k)),T.length===1?T[0]:m.createJoin(T)}function P(M){let k=M.subject,T=j(M.predicate),R=M.object;return N(k,T,R)}function j(M){if(c.default.isSimpleTerm(M)){if(M.termType==="NamedNode")return m.createLink(M);throw new Error(`Path predicate should be a NamedNode, got ${JSON.stringify(M)}`)}if(M.pathType==="^")return m.createInv(j(M.items[0]));if(M.pathType==="!"){let k=[],T=[],R;"pathType"in M.items[0]&&M.items[0].pathType==="|"?R=M.items[0].items:R=M.items;for(let Q of R)if(c.default.isSimpleTerm(Q))k.push(Q);else if(Q.pathType==="^")T.push(Q.items[0]);else throw new Error(`Unexpected item: ${JSON.stringify(Q)}`);let U=m.createNps(k),G=m.createInv(m.createNps(T));return T.length===0?U:k.length===0?G:m.createAlt([U,G])}if(M.pathType==="/")return m.createSeq(M.items.map(j));if(M.pathType==="|")return m.createAlt(M.items.map(j));if(M.pathType==="*")return m.createZeroOrMorePath(j(M.items[0]));if(M.pathType==="+")return m.createOneOrMorePath(j(M.items[0]));if(M.pathType==="?")return m.createZeroOrOnePath(j(M.items[0]));throw new Error(`Unable to translate path expression ${JSON.stringify(M)}`)}function N(M,k,T){if(k.type===d.LINK)return[m.createPattern(M,k.iri,T)];if(k.type===d.INV)return N(T,k.path,M);if(k.type===d.SEQ){let R=M;return c.default.flatten(k.input.map((U,G)=>{const Q=G===k.input.length-1?T:V(),Z=N(R,U,Q);return Q.termType==="Variable"&&(R=Q),Z}))}return[m.createPath(M,k,T)]}function V(){let M=`?var${h++}`;return f.has(M)?V():(f.add(M),m.createTerm(M))}function $(M){if("pathType"in M.predicate)throw new Error("Trying to translate property path to quad.");return m.createPattern(M.subject,M.predicate,M.object,M.graph)}let q=Object.values(d);function H(M,k,T){if(M.type===d.GRAPH){if(T)throw new Error("Recursing through nested GRAPH statements with a replacement is impossible.");M=H(M.input,M.name)}else if(M.type!==d.SERVICE)if(M.type===d.BGP)M.patterns=M.patterns.map(R=>(T&&(R.subject.equals(k)&&(R.subject=T),R.predicate.equals(k)&&(R.predicate=T),R.object.equals(k)&&(R.object=T)),R.graph.termType==="DefaultGraph"&&(R.graph=k),R));else if(M.type===d.PATH)T&&(M.subject.equals(k)&&(M.subject=T),M.object.equals(k)&&(M.object=T)),M.graph.termType==="DefaultGraph"&&(M.graph=k);else if(M.type===d.PROJECT&&!T)M.variables.some(R=>R.equals(k))||(T=V()),M.input=H(M.input,k,T);else if(M.type===d.EXTEND&&!T)M.variable.equals(k)&&(T=V()),M.input=H(M.input,k,T);else for(let R of Object.keys(M))Array.isArray(M[R])?M[R]=M[R].map(U=>H(U,k,T)):q.indexOf(M[R].type)>=0?M[R]=H(M[R],k,T):T&&w(M[R])&&M[R].equals(k)&&(M[R]=T);return M}function X(M,k){if(k.type==="optional"){const T=L({type:"group",patterns:k.patterns});T.type===d.FILTER?M=m.createLeftJoin(M,T.input,T.expression):M=m.createLeftJoin(M,T)}else if(k.type==="minus"){const T=L({type:"group",patterns:k.patterns});M=m.createMinus(M,T)}else if(k.type==="bind")M=m.createExtend(M,k.variable,F(k.expression));else if(k.type==="service"){const T={type:"group",patterns:k.patterns},R=m.createService(L(T),k.name,k.silent);M=Y(M,R)}else{const T=L(k);M=Y(M,T)}return M}function Y(M,k){return M.type===d.BGP&&k.type===d.BGP?M=m.createBgp([...M.patterns,...k.patterns]):M.type===d.BGP&&M.patterns.length===0?M=k:k.type===d.BGP&&k.patterns.length===0||(M=m.createJoin([M,k])),M}function he(M){let k=(M.values.length===0?[]:Object.keys(M.values[0])).map(m.createTerm.bind(m)),T=M.values.map(R=>{let U=Object.keys(R);U=U.filter(Q=>R[Q]!==void 0);let G={};for(let Q of U)G[Q]=R[Q];return G});return m.createValues(k,T)}function Te(M,k){const T=M,R=[],U={};if(T.variables=T.variables&&T.variables.map(Q=>Ne(Q,U)),T.having=T.having&&T.having.map(Q=>Ne(Q,U)),T.order=T.order&&T.order.map(Q=>Ne(Q,U)),T.group||Object.keys(U).length>0){const Q=Object.keys(U).map(se=>$e(U[se],m.createTerm(se))),Z=[];if(T.group)for(const se of T.group)if(c.default.isSimpleTerm(se.expression))Z.push(se.expression);else{const re="variable"in se?se.variable:V();k=m.createExtend(k,re,F(se.expression)),Z.push(re)}k=m.createGroup(k,Z,Q)}if(T.having)for(let Q of T.having)k=m.createFilter(k,F(Q));M.values&&(k=m.createJoin([k,he(M)]));let G=[];if(M.queryType==="SELECT"||M.queryType==="DESCRIBE")if(M.variables.some(Q=>Q&&c.default.isWildcard(Q)))G=Object.values(O(M)).sort((Q,Z)=>Q.value.localeCompare(Z.value));else for(let Q of M.variables)w(Q)||!("variable"in Q)?G.push(Q):Q.variable&&(G.push(Q.variable),R.push(Q));for(let Q of R)k=m.createExtend(k,Q.variable,F(Q.expression));return T.order&&(k=m.createOrderBy(k,T.order.map(Q=>{let Z=F(Q.expression);return Q.descending&&(Z=m.createOperatorExpression("desc",[Z])),Z}))),M.queryType==="SELECT"&&(k=m.createProject(k,G)),T.distinct&&(k=m.createDistinct(k)),T.reduced&&(k=m.createReduced(k)),M.queryType==="CONSTRUCT"?k=m.createConstruct(k,(M.template||[]).map($)):M.queryType==="ASK"?k=m.createAsk(k):M.queryType==="DESCRIBE"&&(k=m.createDescribe(k,G)),(T.offset||T.limit)&&(k=m.createSlice(k,T.offset||0,T.limit)),T.from&&(k=m.createFrom(k,T.from.default,T.from.named)),k}function Ne(M,k){if("type"in M&&M.type==="aggregate"){let T=!1,R;for(let U of Object.keys(k))if(a(k[U],M)){R=m.createTerm(U),T=!0;break}return T||(R=V(),k[(0,s.termToString)(R)]=M),R}return"expression"in M&&M.expression?{...M,expression:Ne(M.expression,k)}:"args"in M&&M.args?{...M,args:M.args.map(T=>Ne(T,k))}:M}function $e(M,k){if(M.type!=="aggregate"||!M.aggregation)throw new Error(`Unexpected input: ${JSON.stringify(M)}`);const T=F(M);return T.variable=k,T}function de(M){return M.updates.length===1?ce(M.updates[0]):m.createCompositeUpdate(M.updates.map(ce))}function ce(M){if("type"in M){if(M.type==="load")return Re(M);if(M.type==="clear"||M.type==="create"||M.type==="drop")return we(M);if(M.type==="add"||M.type==="copy"||M.type==="move")return Se(M)}else if(M.updateType==="insertdelete"||M.updateType==="deletewhere"||M.updateType==="delete"||M.updateType==="insert")return xe(M);throw new Error(`Unknown update type ${JSON.stringify(M)}`)}function xe(M){if(!p)throw new Error("INSERT/DELETE operations are only supported with quads option enabled");let k=[],T=[],R;if(M.delete&&(k=c.default.flatten(M.delete.map(U=>Pe(U,M.graph)))),M.insert&&(T=c.default.flatten(M.insert.map(U=>Pe(U,M.graph)))),M.where&&M.where.length>0){R=L({type:"group",patterns:M.where});const U=M.using;U?R=m.createFrom(R,U.default,U.named):M.graph&&(R=H(R,M.graph))}else M.updateType==="deletewhere"&&k.length>0&&(R=m.createBgp(k));return m.createDeleteInsert(k.length>0?k:void 0,T.length>0?T:void 0,R)}function Pe(M,k){let T=k;M.type==="graph"&&(T=M.name);let R=M.triples;return T&&(R=R.map(U=>Object.assign(U,{graph:T}))),R.map($)}function we(M){let k;switch(c.default.isSimpleTerm(M.graph)?k=M.graph:M.graph.all?k="ALL":M.graph.default?k="DEFAULT":M.graph.named?k="NAMED":k=M.graph.name,M.type){case"clear":return m.createClear(k,M.silent);case"create":return m.createCreate(k,M.silent);case"drop":return m.createDrop(k,M.silent)}}function Re(M){return m.createLoad(M.source,M.destination,M.silent)}function Se(M){const k=M.source.default?"DEFAULT":M.source.name,T=M.destination.default?"DEFAULT":M.destination.name;switch(M.type){case"copy":return m.createCopy(k,T,M.silent);case"move":return m.createMove(k,T,M.silent);case"add":return m.createAdd(k,T,M.silent)}}function z(M){const k={},T=Array.from(f).reduce((U,G)=>(U[G]=!0,U),{});return c.default.mapOperation(M,{[o.types.DELETE_INSERT]:U=>({result:m.createDeleteInsert(U.delete,U.insert,U.where&&z(U.where)),recurse:!1}),[o.types.PATH]:(U,G)=>({result:G.createPath(R(U.subject),U.predicate,R(U.object),R(U.graph)),recurse:!1}),[o.types.PATTERN]:(U,G)=>({result:G.createPattern(R(U.subject),R(U.predicate),R(U.object),R(U.graph)),recurse:!1}),[o.types.CONSTRUCT]:U=>({result:m.createConstruct(z(U.input),U.template),recurse:!1})});function R(U){if(U.termType==="BlankNode"){let G=k[U.value];return G||(G=c.default.createUniqueVariable(U.value,T,m.dataFactory),T[G.value]=!0,k[U.value]=G),G}return U}}return Lv}var Ku={},QA={},Ut={},zA={},ur={},GA,u8;function T1(){if(u8)return GA;u8=1,GA=t;function t(e,r){if(!e)throw new Error(r||"Assertion failed")}return t.equal=function(r,n,a){if(r!=n)throw new Error(a||"Assertion failed: "+r+" != "+n)},GA}var Fv={exports:{}},c8;function REe(){return c8||(c8=1,typeof Object.create=="function"?Fv.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Fv.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}}),Fv.exports}var l8;function vs(){if(l8)return ur;l8=1;var t=T1(),e=REe();ur.inherits=e;function r(N,V){return(N.charCodeAt(V)&64512)!==55296||V<0||V+1>=N.length?!1:(N.charCodeAt(V+1)&64512)===56320}function n(N,V){if(Array.isArray(N))return N.slice();if(!N)return[];var $=[];if(typeof N=="string")if(V){if(V==="hex")for(N=N.replace(/[^a-z0-9]+/ig,""),N.length%2!==0&&(N="0"+N),H=0;H>6|192,$[q++]=X&63|128):r(N,H)?(X=65536+((X&1023)<<10)+(N.charCodeAt(++H)&1023),$[q++]=X>>18|240,$[q++]=X>>12&63|128,$[q++]=X>>6&63|128,$[q++]=X&63|128):($[q++]=X>>12|224,$[q++]=X>>6&63|128,$[q++]=X&63|128)}else for(H=0;H>>24|N>>>8&65280|N<<8&16711680|(N&255)<<24;return V>>>0}ur.htonl=s;function o(N,V){for(var $="",q=0;q>>0}return X}ur.join32=l;function d(N,V){for(var $=new Array(N.length*4),q=0,H=0;q>>24,$[H+1]=X>>>16&255,$[H+2]=X>>>8&255,$[H+3]=X&255):($[H+3]=X>>>24,$[H+2]=X>>>16&255,$[H+1]=X>>>8&255,$[H]=X&255)}return $}ur.split32=d;function f(N,V){return N>>>V|N<<32-V}ur.rotr32=f;function h(N,V){return N<>>32-V}ur.rotl32=h;function p(N,V){return N+V>>>0}ur.sum32=p;function m(N,V,$){return N+V+$>>>0}ur.sum32_3=m;function y(N,V,$,q){return N+V+$+q>>>0}ur.sum32_4=y;function g(N,V,$,q,H){return N+V+$+q+H>>>0}ur.sum32_5=g;function b(N,V,$,q){var H=N[V],X=N[V+1],Y=q+X>>>0,he=(Y>>0,N[V+1]=Y}ur.sum64=b;function v(N,V,$,q){var H=V+q>>>0,X=(H>>0}ur.sum64_hi=v;function _(N,V,$,q){var H=V+q;return H>>>0}ur.sum64_lo=_;function w(N,V,$,q,H,X,Y,he){var Te=0,Ne=V;Ne=Ne+q>>>0,Te+=Ne>>0,Te+=Ne>>0,Te+=Ne>>0}ur.sum64_4_hi=w;function E(N,V,$,q,H,X,Y,he){var Te=V+q+X+he;return Te>>>0}ur.sum64_4_lo=E;function O(N,V,$,q,H,X,Y,he,Te,Ne){var $e=0,de=V;de=de+q>>>0,$e+=de>>0,$e+=de>>0,$e+=de>>0,$e+=de>>0}ur.sum64_5_hi=O;function L(N,V,$,q,H,X,Y,he,Te,Ne){var $e=V+q+X+he+Ne;return $e>>>0}ur.sum64_5_lo=L;function F(N,V,$){var q=V<<32-$|N>>>$;return q>>>0}ur.rotr64_hi=F;function x(N,V,$){var q=N<<32-$|V>>>$;return q>>>0}ur.rotr64_lo=x;function P(N,V,$){return N>>>$}ur.shr64_hi=P;function j(N,V,$){var q=N<<32-$|V>>>$;return q>>>0}return ur.shr64_lo=j,ur}var WA={},d8;function E1(){if(d8)return WA;d8=1;var t=vs(),e=T1();function r(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}return WA.BlockHash=r,r.prototype.update=function(a,s){if(a=t.toArray(a,s),this.pending?this.pending=this.pending.concat(a):this.pending=a,this.pendingTotal+=a.length,this.pending.length>=this._delta8){a=this.pending;var o=a.length%this._delta8;this.pending=a.slice(a.length-o,a.length),this.pending.length===0&&(this.pending=null),a=t.join32(a,0,a.length-o,this.endian);for(var u=0;u>>24&255,u[c++]=a>>>16&255,u[c++]=a>>>8&255,u[c++]=a&255}else for(u[c++]=a&255,u[c++]=a>>>8&255,u[c++]=a>>>16&255,u[c++]=a>>>24&255,u[c++]=0,u[c++]=0,u[c++]=0,u[c++]=0,l=8;l>>3}Ga.g0_256=c;function l(d){return e(d,17)^e(d,19)^d>>>10}return Ga.g1_256=l,Ga}var KA,h8;function xEe(){if(h8)return KA;h8=1;var t=vs(),e=E1(),r=SY(),n=t.rotl32,a=t.sum32,s=t.sum32_5,o=r.ft_1,u=e.BlockHash,c=[1518500249,1859775393,2400959708,3395469782];function l(){if(!(this instanceof l))return new l;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}return t.inherits(l,u),KA=l,l.blockSize=512,l.outSize=160,l.hmacStrength=80,l.padLength=64,l.prototype._update=function(f,h){for(var p=this.W,m=0;m<16;m++)p[m]=f[h+m];for(;mthis.blockSize&&(a=new this.Hash().update(a).digest()),e(a.length<=this.blockSize);for(var s=a.length;sr.someTerms(O,L=>L.termType==="BlankNode"||L.termType==="Quad"&&r.getTermsNested(L).some(F=>F.termType==="BlankNode")))}Ut.getQuadsWithBlankNodes=l;function d(E){return E.filter(O=>r.everyTerms(O,L=>L.termType!=="BlankNode"&&!(L.termType==="Quad"&&r.getTermsNested(L).some(F=>F.termType==="BlankNode"))))}Ut.getQuadsWithoutBlankNodes=d;function f(E){const O={};for(const L of E)O[JSON.stringify(e.quadToStringQuad(L))]=!0;return O}Ut.indexGraph=f;function h(E){return Object.keys(E).map(O=>e.stringQuadToQuad(JSON.parse(O)))}Ut.deindexGraph=h;function p(E){return h(f(E))}Ut.uniqGraph=p;function m(E){return r.uniqTerms(E.map(O=>r.getBlankNodes(r.getTermsNested(O))).reduce((O,L)=>O.concat(L),[]))}Ut.getGraphBlankNodes=m;function y(E,O,L){const F=Object.assign({},L),x={};let P=!0;for(;P;){const j=Object.keys(F).length;for(const V of O){const $=e.termToString(V);if(!F[$]){const[q,H]=g(V,E,F);q&&(F[$]=H),x[$]=H}}const N={};for(const V in x){const $=x[V];N[$]===void 0?N[$]=V:N[$]=!1}for(const V in N){const $=N[V];$&&(F[$]=V)}P=j!==Object.keys(F).length}return[F,x]}Ut.hashTerms=y;function g(E,O,L){const F=[];let x=!0;for(const j of O){const N=r.getTermsNested(j);if(N.some(V=>V.equals(E))){F.push(v(j,L,E));for(const V of N)!w(V,L)&&!V.equals(E)&&(x=!1)}}const P=b(F.sort().join(""));return[x,P]}Ut.hashTerm=g;function b(E){return t.sha1().update(E).digest("hex")}Ut.sha1hex=b;function v(E,O,L){return r.getTerms(E).map(F=>_(F,O,L)).join("|")}Ut.quadToSignature=v;function _(E,O,L){return E.equals(L)?"@self":E.termType==="BlankNode"?O[e.termToString(E)]||"@blank":E.termType==="Quad"?`<${v(E,O,L)}>`:e.termToString(E)}Ut.termToSignature=_;function w(E,O){return E.termType!=="BlankNode"&&!(E.termType==="Quad"&&r.getTermsNested(E).some(L=>!w(L,O)))||!!O[e.termToString(E)]}return Ut.isTermGrounded=w,Ut}var T8;function jEe(){return T8||(T8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s),Object.defineProperty(n,o,{enumerable:!0,get:function(){return a[s]}})}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(LEe(),t)}(QA)),QA}var E8;function MEe(){if(E8)return Ku;E8=1;var t=I&&I.__createBinding||(Object.create?function(ee,Oe,De,Ue){Ue===void 0&&(Ue=De);var Ye=Object.getOwnPropertyDescriptor(Oe,De);(!Ye||("get"in Ye?!Oe.__esModule:Ye.writable||Ye.configurable))&&(Ye={enumerable:!0,get:function(){return Oe[De]}}),Object.defineProperty(ee,Ue,Ye)}:function(ee,Oe,De,Ue){Ue===void 0&&(Ue=De),ee[Ue]=Oe[De]}),e=I&&I.__setModuleDefault||(Object.create?function(ee,Oe){Object.defineProperty(ee,"default",{enumerable:!0,value:Oe})}:function(ee,Oe){ee.default=Oe}),r=I&&I.__importStar||function(ee){if(ee&&ee.__esModule)return ee;var Oe={};if(ee!=null)for(var De in ee)De!=="default"&&Object.prototype.hasOwnProperty.call(ee,De)&&t(Oe,ee,De);return e(Oe,ee),Oe},n=I&&I.__importDefault||function(ee){return ee&&ee.__esModule?ee:{default:ee}};Object.defineProperty(Ku,"__esModule",{value:!0}),Ku.toSparqlJs=Ku.toSparql=void 0;const a=jEe(),s=nr,o=sl,u=r(S1()),c=n(sT()),l=n($C()),d=u.types,f=u.expressionTypes;let h;const p=new c.default;function m(ee,Oe={}){return new o.Generator(Oe).stringify(y(ee))}Ku.toSparql=m;function y(ee){g(),ee=fe(ee);let Oe=b(ee);return Oe.type==="group"?Oe.patterns[0]:Oe}Ku.toSparqlJs=y;function g(){h={project:!1,extend:[],group:[],aggregates:[],order:[]}}function b(ee){switch(ee.type!==d.EXTEND&&ee.type!==d.ORDER_BY&&ee.type!==d.GRAPH&&(h.project=!1),ee.type){case d.EXPRESSION:return v(ee);case d.ASK:return Re(ee,d.ASK);case d.BGP:return V(ee);case d.CONSTRUCT:return $(ee);case d.DESCRIBE:return Re(ee,d.DESCRIBE);case d.DISTINCT:return q(ee);case d.EXTEND:return H(ee);case d.FROM:return X(ee);case d.FILTER:return Y(ee);case d.GRAPH:return he(ee);case d.GROUP:return Te(ee);case d.JOIN:return Ne(ee);case d.LEFT_JOIN:return $e(ee);case d.MINUS:return de(ee);case d.NOP:return{};case d.ORDER_BY:return ce(ee);case d.PATH:return xe(ee);case d.PATTERN:return Pe(ee);case d.PROJECT:return Re(ee,d.PROJECT);case d.REDUCED:return z(ee);case d.SERVICE:return M(ee);case d.SLICE:return k(ee);case d.UNION:return T(ee);case d.VALUES:return R(ee);case d.COMPOSITE_UPDATE:return _e(ee);case d.DELETE_INSERT:return Ie(ee);case d.LOAD:return Ee(ee);case d.CLEAR:return Me(ee);case d.CREATE:return Ce(ee);case d.DROP:return ke(ee);case d.ADD:return W(ee);case d.MOVE:return D(ee);case d.COPY:return B(ee)}throw new Error(`Unknown Operation type ${ee.type}`)}function v(ee){switch(ee.expressionType){case f.AGGREGATE:return E(ee);case f.EXISTENCE:return O(ee);case f.NAMED:return L(ee);case f.OPERATOR:return F(ee);case f.TERM:return x(ee);case f.WILDCARD:return P(ee)}throw new Error(`Unknown Expression Operation type ${ee.expressionType}`)}function _(ee){switch(ee.type){case d.ALT:return U(ee);case d.INV:return G(ee);case d.LINK:return Q(ee);case d.NPS:return Z(ee);case d.ONE_OR_MORE_PATH:return se(ee);case d.SEQ:return re(ee);case d.ZERO_OR_MORE_PATH:return le(ee);case d.ZERO_OR_ONE_PATH:return pe(ee)}throw new Error(`Unknown Path type ${ee.type}`)}function w(ee){return(0,s.termToString)(ee)}function E(ee){const Oe={expression:v(ee.expression),type:"aggregate",aggregation:ee.aggregator,distinct:ee.distinct};return ee.separator&&(Oe.separator=ee.separator),Oe}function O(ee){return{type:"operation",operator:ee.not?"notexists":"exists",args:[{type:"group",patterns:l.default.flatten([b(ee.input)])}]}}function L(ee){return{type:"functionCall",function:ee.name,args:ee.args.map(v)}}function F(ee){if(ee.operator==="desc"){const De={expression:v(ee.args[0])};return De.descending=!0,De}const Oe={type:"operation",operator:ee.operator,args:ee.args.map(v)};return(Oe.operator==="in"||Oe.operator==="notin")&&(Oe.args=[Oe.args[0]].concat([Oe.args.slice(1)])),Oe}function x(ee){return ee.term}function P(ee){return ee.wildcard}function j(ee){return Array.isArray(ee)?ee.length===1?ee[0]:{type:"group",patterns:ee}:ee}function N(ee){return ee}function V(ee){let Oe=ee.patterns.map(Pe);return Oe.length===0?null:{type:"bgp",triples:Oe}}function $(ee){return{type:"query",prefixes:{},queryType:"CONSTRUCT",template:ee.template.map(Pe),where:l.default.flatten([b(ee.input)])}}function q(ee){let Oe=b(ee.input);return Oe.patterns[0].distinct=!0,Oe}function H(ee){return h.project?(h.extend.push(ee),b(ee.input)):l.default.flatten([b(ee.input),{type:"bind",variable:ee.variable,expression:v(ee.expression)}])}function X(ee){const Oe=b(ee.input);let De=Oe;return Oe.type==="group"&&(De=Oe.patterns[0]),De.from={default:ee.default,named:ee.named},Oe}function Y(ee){return{type:"group",patterns:l.default.flatten([b(ee.input),{type:"filter",expression:v(ee.expression)}])}}function he(ee){return{type:"graph",patterns:l.default.flatten([b(ee.input)]),name:ee.name}}function Te(ee){const Oe=b(ee.input),De=ee.aggregates.map(N);return h.aggregates.push(...De),h.group.push(...ee.variables),Oe}function Ne(ee){return l.default.flatten(ee.input.map(b)).reduce((De,Ue)=>(Ue.type!=="bgp"||De.length==0||De[De.length-1].type!=="bgp"?De.push(Ue):De[De.length-1].triples.push(...Ue.triples),De),[])}function $e(ee){const Oe={type:"optional",patterns:[b(ee.input[1])]};return ee.expression&&Oe.patterns.push({type:"filter",expression:v(ee.expression)}),Oe.patterns=l.default.flatten(Oe.patterns),l.default.flatten([b(ee.input[0]),Oe])}function de(ee){let Oe=b(ee.input[1]);return Oe.type==="group"&&(Oe=Oe.patterns),Array.isArray(Oe)||(Oe=[Oe]),l.default.flatten([b(ee.input[0]),{type:"minus",patterns:Oe}])}function ce(ee){return h.order.push(...ee.expressions),b(ee.input)}function xe(ee){return{type:"bgp",triples:[{subject:ee.subject,predicate:_(ee.predicate),object:ee.object}]}}function Pe(ee){return{subject:ee.subject,predicate:ee.predicate,object:ee.object}}function we(ee,Oe){let De=l.default.isSimpleTerm(ee)?w(ee):ee;if(typeof De=="string"){if(Oe[De])return Oe[De]}else if(Array.isArray(ee))ee=ee.map(Ue=>we(Ue,Oe));else for(let Ue of Object.keys(ee))ee[Ue]=we(ee[Ue],Oe);return ee}function Re(ee,Oe){const De={type:"query",prefixes:{}},Ue=De;let Ye;Oe===d.PROJECT?(De.queryType="SELECT",Ye=ee.variables):Oe===d.ASK?De.queryType="ASK":Oe===d.DESCRIBE&&(De.queryType="DESCRIBE",Ye=ee.terms);const ut=h.extend,at=h.group,ct=h.aggregates,ht=h.order;g(),h.project=!0;let te=l.default.flatten([b(ee.input)]);te.length===1&&te[0].type==="group"&&(te=te[0].patterns),De.where=te;let S={};for(let C of h.aggregates)S[w(C.variable)]=v(C);let A={};for(let C=h.extend.length-1;C>=0;--C){let J=h.extend[C];A[w(J.variable)]=we(v(J.expression),S)}if(h.group.length>0&&(Ue.group=h.group.map(C=>{let J=w(C);if(A[J]){let ie=A[J];return delete A[J],{variable:C,expression:ie}}return{expression:C}})),h.order.length>0&&(Ue.order=h.order.map(b).map(C=>C.descending?C:{expression:C})),Ye&&(Ue.variables=Ye.map(C=>{let J=w(C);return A[J]?{variable:C,expression:A[J]}:C}),Ue.variables.length===0&&(Ue.variables=[new o.Wildcard])),De.where.length>0&&De.where[De.where.length-1].type==="filter"){const C=De.where[De.where.length-1];Se(C,Object.keys(S))&&(Ue.having=l.default.flatten([we(C.expression,S)]),De.where.splice(-1))}return h.extend=ut,h.group=at,h.aggregates=ct,h.order=ht,{type:"group",patterns:[Ue]}}function Se(ee,Oe){return l.default.isSimpleTerm(ee)?Oe.indexOf(w(ee))>=0:Array.isArray(ee)?ee.some(De=>Se(De,Oe)):ee===Object(ee)?Object.keys(ee).some(De=>Se(ee[De],Oe)):Oe.indexOf(ee)>=0}function z(ee){let Oe=b(ee.input);return Oe.patterns[0].reduced=!0,Oe}function M(ee){let Oe=b(ee.input);return Oe.type==="group"&&(Oe=Oe.patterns),Array.isArray(Oe)||(Oe=[Oe]),{type:"service",name:ee.name,silent:ee.silent,patterns:Oe}}function k(ee){let Oe=b(ee.input),De=Oe;return Oe.type&&Oe.type==="group"&&(De=Oe.patterns[0]),ee.start!==0&&(De.offset=ee.start),ee.length!==void 0&&(De.limit=ee.length),Oe}function T(ee){return{type:"union",patterns:ee.input.map(b).map(j)}}function R(ee){return{type:"values",values:ee.bindings.map(Oe=>{let De={};for(let Ue of ee.variables){let Ye=`?${Ue.value}`;Oe[Ye]?De[Ye]=Oe[Ye]:De[Ye]=void 0}return De})}}function U(ee){const Oe=ee.input.map(_);return Oe.every(De=>"pathType"in De&&De.pathType==="!")?{type:"path",pathType:"!",items:[{type:"path",pathType:"|",items:l.default.flatten(Oe.map(De=>De.items))}]}:{type:"path",pathType:"|",items:Oe}}function G(ee){if(ee.path.type===d.NPS){const Oe=ee.path.iris.map(De=>({type:"path",pathType:"^",items:[De]}));return Oe.length<=1?{type:"path",pathType:"!",items:Oe}:{type:"path",pathType:"!",items:[{type:"path",pathType:"|",items:Oe}]}}return{type:"path",pathType:"^",items:[_(ee.path)]}}function Q(ee){return ee.iri}function Z(ee){return ee.iris.length<=1?{type:"path",pathType:"!",items:ee.iris}:{type:"path",pathType:"!",items:[{type:"path",pathType:"|",items:ee.iris}]}}function se(ee){return{type:"path",pathType:"+",items:[_(ee.path)]}}function re(ee){return{type:"path",pathType:"/",items:ee.input.map(_)}}function le(ee){return{type:"path",pathType:"*",items:[_(ee.path)]}}function pe(ee){return{type:"path",pathType:"?",items:[_(ee.path)]}}function _e(ee){const Oe=ee.updates.map(De=>b(De).updates[0]);return{prefixes:{},type:"update",updates:Oe}}function Ie(ee){var Oe;let De=ee.where,Ue;if(De&&De.type===d.FROM){let ut=De;De=ut.input,Ue={default:ut.default,named:ut.named}}const Ye=[{updateType:"insertdelete",delete:ne(ee.delete||[]),insert:ne(ee.insert||[])}];if(Ue&&(Ye[0].using=Ue),!De||De.type===d.BGP&&De.patterns.length===0)Ye[0].where=[];else{const ut=[];let at=b(ge(De,ut));if(at.type==="group"?Ye[0].where=at.patterns:Ye[0].where=[at],ut.length>0){if(ut.length!==1)throw new Error("This is unexpected and might indicate an error in graph handling for updates.");((Oe=ut[0])===null||Oe===void 0?void 0:Oe.value)!==""&&(Ye[0].where=[{type:"graph",patterns:Ye[0].where,name:ut[0]}])}}return!ee.delete&&!ee.where?(Ye[0].updateType="insert",delete Ye[0].delete,delete Ye[0].where):!ee.insert&&!ee.where?(delete Ye[0].insert,delete Ye[0].where,ee.delete.some(ut=>ut.subject.termType==="Variable"||ut.predicate.termType==="Variable"||ut.object.termType==="Variable")?Ye[0].updateType="deletewhere":Ye[0].updateType="delete"):!ee.insert&&ee.where&&ee.where.type==="bgp"&&(0,a.isomorphic)(ee.delete,ee.where.patterns)&&(delete Ye[0].where,Ye[0].updateType="deletewhere"),{prefixes:{},type:"update",updates:Ye}}function Ee(ee){const Oe=[{type:"load",silent:!!ee.silent,source:ee.source}];return ee.destination&&(Oe[0].destination=ee.destination),{prefixes:{},type:"update",updates:Oe}}function Me(ee){return qe(ee,"clear")}function Ce(ee){return qe(ee,"create")}function ke(ee){return qe(ee,"drop")}function qe(ee,Oe){const De=[{type:Oe,silent:!!ee.silent}];return ee.source==="DEFAULT"?De[0].graph={default:!0}:ee.source==="NAMED"?De[0].graph={named:!0}:ee.source==="ALL"?De[0].graph={all:!0}:De[0].graph={type:"graph",name:ee.source},{prefixes:{},type:"update",updates:De}}function W(ee){return K(ee,"add")}function D(ee){return K(ee,"move")}function B(ee){return K(ee,"copy")}function K(ee,Oe){const De=[{type:Oe,silent:!!ee.silent}];return De[0].source=ee.source==="DEFAULT"?{type:"graph",default:!0}:{type:"graph",name:ee.source},De[0].destination=ee.destination==="DEFAULT"?{type:"graph",default:!0}:{type:"graph",name:ee.destination},{prefixes:{},type:"update",updates:De}}function ne(ee){if(!ee)return[];const Oe={};return ee.forEach(De=>{const Ue=De.graph.value;Oe[Ue]||(Oe[Ue]=[]),Oe[Ue].push(De)}),Object.keys(Oe).map(De=>De===""?{type:"bgp",triples:Oe[De].map(Pe)}:{type:"graph",triples:Oe[De].map(Pe),name:Oe[De][0].graph})}function fe(ee){return ge(ee,[])}function ge(ee,Oe){if(Array.isArray(ee))return ee.map(at=>ge(at,Oe));if(!ee.type||ee.type===d.DELETE_INSERT)return ee;if((ee.type===d.PATTERN||ee.type===d.PATH)&&ee.graph)return Oe.push(ee.graph),ee.graph.name!==""?ee.type===d.PATTERN?p.createPattern(ee.subject,ee.predicate,ee.object):p.createPath(ee.subject,ee.predicate,ee.object):ee;const De={},Ue={},Ye={};for(let at of Object.keys(ee)){const ct=[];if(De[at]=ge(ee[at],ct),ct.length>0){Ue[at]=ct;for(const ht of ct)Ye[ht.value]=ht}}const ut=Object.keys(Ye);if(ut.length>0)if(ut.length===1&&![d.PROJECT,d.SERVICE].includes(ee.type))Oe.push(Ye[ut[0]]);else{if(ee.type===d.BGP)return Le(ee,Ue.patterns);for(let at of Object.keys(Ue)){const ct=De[at];Array.isArray(ct)?De[at]=ct.map((ht,te)=>Ue[at][0].value===""?ht:p.createGraph(ht,Ue[at][te])):Ue[at][0].value!==""&&(De[at]=p.createGraph(ct,Ue[at][0]))}}return De}function Le(ee,Oe){var De;const Ue={};for(let at=0;atd.termType==="Variable")?(0,r.mapTermsNested)(c,d=>o(d,l)):c}Wu.materializeTerm=o;function u(c,l,d,f={}){return f={strictTargetVariables:"strictTargetVariables"in f?f.strictTargetVariables:!1,bindFilter:"bindFilter"in f?f.bindFilter:!0},n.Util.mapOperation(c,{path(h,p){return{recurse:!1,result:Object.assign(p.createPath(o(h.subject,l),h.predicate,o(h.object,l),o(h.graph,l)),{metadata:h.metadata})}},pattern(h,p){return{recurse:!1,result:Object.assign(p.createPattern(o(h.subject,l),o(h.predicate,l),o(h.object,l),o(h.graph,l)),{metadata:h.metadata})}},extend(h){if(l.has(h.variable)){if(f.strictTargetVariables)throw new Error(`Tried to bind variable ${(0,e.termToString)(h.variable)} in a BIND operator.`);return{recurse:!0,result:u(h.input,l,d,f)}}return{recurse:!0,result:h}},group(h,p){if(f.strictTargetVariables){for(const y of h.variables)if(l.has(y))throw new Error(`Tried to bind variable ${(0,e.termToString)(y)} in a GROUP BY operator.`);return{recurse:!0,result:h}}const m=h.variables.filter(y=>!l.has(y));return{recurse:!0,result:p.createGroup(h.input,m,h.aggregates)}},project(h,p){if(f.strictTargetVariables){for(const g of h.variables)if(l.has(g))throw new Error(`Tried to bind variable ${(0,e.termToString)(g)} in a SELECT operator.`);return{recurse:!0,result:h}}const m=h.variables.filter(g=>!l.has(g)),y=d.bindings(h.variables.map(g=>{const b=l.get(g);if(b)return[g,b]}).filter(Boolean));return{recurse:!1,result:p.createProject(u(h.input,y,d,f),m)}},values(h,p){if(f.strictTargetVariables){for(const m of h.variables)if(l.has(m))throw new Error(`Tried to bind variable ${(0,e.termToString)(m)} in a VALUES operator.`)}else{const m=h.variables.filter(g=>!l.has(g)),y=h.bindings.map(g=>{const b={...g};let v=!0;return l.forEach((_,w)=>{const E=(0,e.termToString)(w);E in b&&(_.equals(b[E])||(v=!1),delete b[E])}),v?b:void 0}).filter(Boolean);return{recurse:!0,result:p.createValues(m,y)}}return{recurse:!1,result:h}},expression(h,p){if(!f.bindFilter)return{recurse:!1,result:h};if(h.expressionType==="term")return{recurse:!1,result:p.createTermExpression(o(h.term,l))};if(h.expressionType==="operator")return h.operator==="bound"&&h.args.length===1&&h.args[0].expressionType==="term"&&[...l.keys()].some(m=>h.args[0].term.equals(m))?{recurse:!1,result:p.createTermExpression(s)}:{recurse:!0,result:h};if(h.expressionType==="aggregate"&&"variable"in h&&l.has(h.variable)){if(f.strictTargetVariables)throw new Error(`Tried to bind ${(0,e.termToString)(h.variable)} in a ${h.aggregator} aggregate.`);return{recurse:!0,result:h}}return{recurse:!0,result:h}}})}return Wu.materializeOperation=u,Wu}var R8;function OY(){if(R8)return nh;R8=1,Object.defineProperty(nh,"__esModule",{value:!0}),nh.ActorQueryOperation=void 0;const t=qt,e=st,r=qC(),n=AY();let a=0,s=class Ja extends e.Actor{constructor(u){super(u)}static getSafeBindings(u){return Ja.validateQueryOutput(u,"bindings"),u}static getSafeQuads(u){return Ja.validateQueryOutput(u,"quads"),u}static getSafeBoolean(u){return Ja.validateQueryOutput(u,"boolean"),u}static getSafeVoid(u){return Ja.validateQueryOutput(u,"void"),u}static validateQueryOutput(u,c){if(u.type!==c)throw new Error(`Invalid query output type: Expected '${c}' but got '${u.type}'`)}static getBaseExpressionContext(u){const c=u.get(t.KeysInitQuery.queryTimestamp),l=u.get(t.KeysInitQuery.baseIRI),d=u.get(t.KeysInitQuery.functionArgumentsCache)??{};if(u.has(t.KeysInitQuery.extensionFunctionCreator)&&u.has(t.KeysInitQuery.extensionFunctions))throw new Error("Illegal simultaneous usage of extensionFunctionCreator and extensionFunctions in context");let f=u.get(t.KeysInitQuery.extensionFunctionCreator);const h=u.get(t.KeysInitQuery.extensionFunctions);return h&&(f=p=>h[p.value]),{now:c,baseIRI:l,extensionFunctionCreator:f,functionArgumentsCache:d}}static getExpressionContext(u,c){return{...this.getBaseExpressionContext(u),bnode:l=>new r.BlankNodeBindingsScoped(l??`BNODE_${a++}`)}}static getAsyncExpressionContext(u,c,l){return{...this.getBaseExpressionContext(u),bnode:d=>Promise.resolve(new r.BlankNodeBindingsScoped(d??`BNODE_${a++}`)),exists:Ja.createExistenceResolver(u,c,l)}}static createExistenceResolver(u,c,l){return async(d,f)=>{const h=(0,n.materializeOperation)(d.input,f,l),p=await c.mediate({operation:h,context:u}),m=Ja.getSafeBindings(p);return d.not!==((await m.bindingsStream.take(1).toArray()).length===1)}}static throwOnReadOnly(u){if(u.get(t.KeysQueryOperation.readOnly))throw new Error("Attempted a write operation in read-only mode")}static getOperationSource(u){var c;return(c=u.metadata)==null?void 0:c.scopedSource}static assignOperationSource(u,c){return u={...u},u.metadata=u.metadata?{...u.metadata}:{},u.metadata.scopedSource=c,u}static removeOperationSource(u){var c;(c=u.metadata)==null||delete c.scopedSource,u.metadata&&Object.keys(u.metadata).length===0&&delete u.metadata}static doesShapeAcceptOperation(u,c,l){return u.type==="conjunction"?u.children.every(d=>Ja.doesShapeAcceptOperation(d,c,l)):u.type==="disjunction"?u.children.some(d=>Ja.doesShapeAcceptOperation(d,c,l)):u.type==="arity"?Ja.doesShapeAcceptOperation(u.child,c,l):((l==null?void 0:l.joinBindings)&&!u.joinBindings)??((l==null?void 0:l.filterBindings)&&!u.filterBindings)?!1:u.operation.operationType==="type"?u.operation.type==="project"||u.operation.type===c.type:u.operation.pattern.type===c.type}};return nh.ActorQueryOperation=s,nh}var sh={},r3={},oh={},x8;function FEe(){if(x8)return oh;x8=1,Object.defineProperty(oh,"__esModule",{value:!0}),oh.MetadataValidationState=void 0;let t=class{constructor(){this.invalidateListeners=[],this.valid=!0}addInvalidateListener(r){this.invalidateListeners.push(r)}invalidate(){if(this.valid){this.valid=!1;for(const r of this.invalidateListeners)r()}}};return oh.MetadataValidationState=t,oh}var xi={},I8;function BEe(){if(I8)return xi;I8=1,Object.defineProperty(xi,"__esModule",{value:!0}),xi.cachifyMetadata=xi.validateMetadataBindings=xi.validateMetadataQuads=xi.getMetadataBindings=xi.getMetadataQuads=void 0;function t(s){return a(()=>new Promise((o,u)=>{s.getProperty("metadata",c=>o(c)),s.on("error",u)}).then(o=>r(o)))}xi.getMetadataQuads=t;function e(s){return a(()=>new Promise((o,u)=>{s.getProperty("metadata",c=>o(c)),s.on("error",u)}).then(o=>("canContainUndefs"in o||(o.canContainUndefs=!1),n(o))))}xi.getMetadataBindings=e;function r(s){for(const o of["cardinality"])if(!(o in s))throw new Error(`Invalid metadata: missing ${o} in ${JSON.stringify(s)}`);return s}xi.validateMetadataQuads=r;function n(s){for(const o of["cardinality","canContainUndefs","variables"])if(!(o in s))throw new Error(`Invalid metadata: missing ${o} in ${JSON.stringify(s)}`);return s}xi.validateMetadataBindings=n;function a(s){let o;return()=>(o||(o=s(),o.then(u=>u.state.addInvalidateListener(()=>{o=void 0})).catch(()=>{})),o)}return xi.cachifyMetadata=a,xi}var P8;function ci(){return P8||(P8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(FEe(),t),r(BEe(),t)}(r3)),r3}var N8;function RY(){if(N8)return sh;N8=1,Object.defineProperty(sh,"__esModule",{value:!0}),sh.ActorQueryOperationTyped=void 0;const t=qt,e=ci(),r=OY();let n=class extends r.ActorQueryOperation{constructor(s,o){if(super({...s,operationName:o}),!this.operationName)throw new Error('A valid "operationName" argument must be provided.')}async test(s){if(!s.operation)throw new Error("Missing field 'operation' in a query operation action.");if(s.operation.type!==this.operationName)throw new Error(`Actor ${this.name} only supports ${this.operationName} operations, but got ${s.operation.type}`);const o=s.operation;return this.testOperation(o,s.context)}async run(s){const o=s.context.get(t.KeysInitQuery.physicalQueryPlanLogger);o&&(o.logOperation(s.operation.type,void 0,s.operation,s.context.get(t.KeysInitQuery.physicalQueryPlanNode),this.name,{}),s.context=s.context.set(t.KeysInitQuery.physicalQueryPlanNode,s.operation));const u=s.operation,c=s.context.set(t.KeysQueryOperation.operation,u),l=await this.runOperation(u,c);return"metadata"in l&&(l.metadata=(0,e.cachifyMetadata)(l.metadata)),l}};return sh.ActorQueryOperationTyped=n,sh}var uh={},D8;function qEe(){if(D8)return uh;D8=1,Object.defineProperty(uh,"__esModule",{value:!0}),uh.ActorQueryOperationTypedMediated=void 0;const t=RY();let e=class extends t.ActorQueryOperationTyped{constructor(n,a){super(n,a)}};return uh.ActorQueryOperationTypedMediated=e,uh}var ch={},C8;function $Ee(){if(C8)return ch;C8=1,Object.defineProperty(ch,"__esModule",{value:!0}),ch.BusQueryOperation=void 0;const t=st;let e=class extends t.BusIndexed{constructor(n){super({...n,actorIdentifierFields:["operationName"],actionIdentifierFields:["operation","type"]})}};return ch.BusQueryOperation=e,ch}var lh={},Mt={},oT={};Object.defineProperty(oT,"__esModule",{value:!0});oT.LinkedList=void 0;class UEe{constructor(){this._length=0,this._head=null,this._tail=null}get length(){return this._length}get first(){var e;return(e=this._head)===null||e===void 0?void 0:e.value}get last(){var e;return(e=this._tail)===null||e===void 0?void 0:e.value}get empty(){return this._head===null}push(e){const r={value:e,next:null};this._tail===null?this._head=this._tail=r:this._tail.next=this._tail=r,this._length++}shift(){if(this._head===null)return;const{value:e,next:r}=this._head;return this._head=r,r===null&&(this._tail=null),this._length--,e}clear(){this._length=0,this._head=this._tail=null}}oT.LinkedList=UEe;var uT={};Object.defineProperty(uT,"__esModule",{value:!0});uT.createTaskScheduler=void 0;const kEe=Promise.resolve(void 0);function VEe(){const t=typeof queueMicrotask=="function"?queueMicrotask:a=>kEe.then(a),e=typeof setImmediate=="function"?setImmediate:a=>setTimeout(a,0);let r=0,n=null;return a=>{n!==null?n.push(a):++r<100?t(a):(n=[a],e(()=>{for(const s of n)t(s);n=null,r=0}))}}uT.createTaskScheduler=VEe;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.isIterator=t.isIterable=t.isSourceExpression=t.isPromise=t.isEventEmitter=t.isFunction=t.range=t.union=t.fromIterable=t.fromIterator=t.fromArray=t.single=t.empty=t.wrap=t.WrappingIterator=t.ClonedIterator=t.UnionIterator=t.MultiTransformIterator=t.SimpleTransformIterator=t.TransformIterator=t.BufferedIterator=t.MappingIterator=t.DESTINATION=t.identity=t.IntegerIterator=t.ArrayIterator=t.SingletonIterator=t.EmptyIterator=t.AsyncIterator=t.DESTROYED=t.ENDED=t.CLOSED=t.CLOSING=t.OPEN=t.INIT=t.setTaskScheduler=t.getTaskScheduler=t.scheduleTask=t.LinkedList=void 0;const e=Xb,r=oT;Object.defineProperty(t,"LinkedList",{enumerable:!0,get:function(){return r.LinkedList}});let a=uT.createTaskScheduler();function s(k){a(k)}t.scheduleTask=s;function o(){return a}t.getTaskScheduler=o;function u(k){a=k}t.setTaskScheduler=u,t.INIT=1,t.OPEN=2,t.CLOSING=4,t.CLOSED=8,t.ENDED=16,t.DESTROYED=32;class c extends e.EventEmitter{constructor(T=t.OPEN){super(),this._readable=!1,this._state=T,this.on("newListener",l)}_changeState(T,R=!1){const U=T>this._state&&this._statethis.emit("end")):this.emit("end"))),U}read(){return null}forEach(T,R){this.on("data",xe(T,R))}close(){this._changeState(t.CLOSED)&&this._endAsync()}destroy(T){this.done||this._destroy(T,R=>{T=T||R,T&&this.emit("error",T),this._end(!0)})}_destroy(T,R){R()}_end(T=!1){this._changeState(T?t.DESTROYED:t.ENDED)&&(this._readable=!1,this.removeAllListeners("readable"),this.removeAllListeners("data"),this.removeAllListeners("end"))}_endAsync(){a(()=>this._end())}get readable(){return this._readable}set readable(T){T=!!T&&!this.done,this._readable!==T&&(this._readable=T,T&&a(()=>this.emit("readable")))}get closed(){return this._state>=t.CLOSING}get ended(){return this._state===t.ENDED}get destroyed(){return this._state===t.DESTROYED}get done(){return this._state>=t.ENDED}toString(){const T=this._toStringDetails();return`[${this.constructor.name}${T?` ${T}`:""}]`}_toStringDetails(){return""}toArray(T){const R=[],U=typeof(T==null?void 0:T.limit)=="number"?T.limit:1/0;return this.ended||U<=0?Promise.resolve(R):new Promise((G,Q)=>{const Z=()=>G(R),se=re=>{R.push(re),R.length>=U&&(this.removeListener("error",Q),this.removeListener("data",se),this.removeListener("end",Z),G(R))};this.on("error",Q),this.on("data",se),this.on("end",Z)})}getProperty(T,R){const U=this._properties;if(!R)return U&&U[T];if(U&&T in U)a(()=>R(U[T]));else{let G;(G=this._propertyCallbacks)||(this._propertyCallbacks=G=Object.create(null)),T in G?G[T].push(R):G[T]=[R]}}setProperty(T,R){const U=this._properties||(this._properties=Object.create(null));U[T]=R;const G=this._propertyCallbacks||{},Q=G[T];if(Q){delete G[T],a(()=>{for(const Z of Q)Z(R)});for(T in G)return;delete this._propertyCallbacks}}getProperties(){const T=this._properties,R={};for(const U in T)R[U]=T[U];return R}setProperties(T){for(const R in T)this.setProperty(R,T[R])}copyProperties(T,R){for(const U of R)T.getProperty(U,G=>this.setProperty(U,G))}transform(T){return new P(this,T)}map(T,R){return new b(this,xe(T,R))}filter(T,R){return this.map(function(U){return T.call(R||this,U)?U:null})}uniq(T=g){const R=new Set;return this.filter(function(U){const G=T.call(this,U);return R.has(G)?!1:(R.add(G),!0)})}prepend(T){return this.transform({prepend:T})}append(T){return this.transform({append:T})}surround(T,R){return this.transform({prepend:T,append:R})}skip(T){return this.map(R=>T-- >0?null:R)}take(T){return this.transform({limit:T})}range(T,R){return this.transform({offset:T,limit:Math.max(R-T+1,0)})}clone(){return new $(this)}[Symbol.asyncIterator](){const T=this;let R=null,U=null,G=null;T.addListener("readable",Q),T.addListener("end",Q),T.addListener("error",Z);function Q(){if(R!==null)if(G!==null)Z(G);else if(T.done)R({done:!0,value:void 0}),R=U=null,se();else{const re=T.read();re!==null&&(R({done:!1,value:re}),R=U=null)}}function Z(re){U!==null?(U(re),R=U=G=null,se()):G===null&&(G=re)}function se(){T.removeListener("readable",Q),T.removeListener("end",Q),T.removeListener("error",Z)}return{next(){return new Promise((re,le)=>{R=re,U=le,Q()})}}}}t.AsyncIterator=c;function l(k){k==="data"&&(this.removeListener("newListener",l),f(this,"readable",d),this.readable&&a(()=>d.call(this)))}function d(){let k;for(;this.listenerCount("data")!==0&&(k=this.read())!==null;)this.emit("data",k);this.listenerCount("data")===0&&!this.done&&(this.removeListener("readable",d),f(this,"newListener",l))}function f(k,T,R){k.listeners(T).includes(R)||k.on(T,R)}class h extends c{constructor(){super(),this._changeState(t.ENDED,!0)}}t.EmptyIterator=h;class p extends c{constructor(T){super(),this._item=T,T===null?this.close():this.readable=!0}read(){const T=this._item;return this._item=null,this.close(),T}_toStringDetails(){return this._item===null?"":`(${this._item})`}}t.SingletonIterator=p;class m extends c{constructor(T=[],{autoStart:R=!0,preserve:U=!0}={}){super();const G=U||!Array.isArray(T)?[...T]:T;this._index=0,this._sourceStarted=R!==!1,this._truncateThreshold=U?-1:64,this._sourceStarted&&G.length===0?this.close():this._buffer=G,this.readable=!0}read(){this._sourceStarted||(this._sourceStarted=!0);let T=null;return this._buffer&&(this._index=R&&this.close(),Promise.resolve(Q)}}t.ArrayIterator=m;class y extends c{constructor({start:T=0,step:R=1,end:U}={}){super(),Number.isFinite(T)&&(T=Math.trunc(T)),this._next=T,Number.isFinite(R)&&(R=Math.trunc(R)),this._step=R;const G=R>=0,Q=G?1/0:-1/0;Number.isFinite(U)?U=Math.trunc(U):U!==-Q&&(U=Q),this._last=U,!Number.isFinite(T)||(G?T>U:T=0?G>U:Gthis._init(R)),this._sourceStarted=R!==!1}get maxBufferSize(){return this._maxBufferSize}set maxBufferSize(T){T!==1/0&&(T=Number.isFinite(T)?Math.max(Math.trunc(T),1):4),this._maxBufferSize!==T&&(this._maxBufferSize=T,this._state===t.OPEN&&this._fillBuffer())}_init(T){let R=!1;this._reading=!0,this._begin(()=>{if(R)throw new Error("done callback called multiple times");R=!0,this._reading=!1,this._changeState(t.OPEN),T?this._fillBufferAsync():this.readable=!0})}_begin(T){T()}read(){if(this.done)return null;this._sourceStarted||(this._sourceStarted=!0);const T=this._buffer;let R;return T.empty?(R=null,this.readable=!1):R=T.shift(),!this._reading&&T.length0&&(this._pushedCount=0,this._reading=!0,this._read(T,()=>{if(!T)throw new Error("done callback called multiple times");T=0,this._reading=!1,this.closed?this._completeClose():this._pushedCount&&(this.readable=!0,this._buffer.length{this._reading=!1,this._fillBuffer()}))}close(){this._reading?this._changeState(t.CLOSING):this._completeClose()}_completeClose(){this._changeState(t.CLOSED)&&(this._reading=!0,this._flush(()=>{if(!this._reading)throw new Error("done callback called multiple times");this._reading=!1,this._buffer.empty&&this._endAsync()}))}_destroy(T,R){this._buffer.clear(),R()}_flush(T){T()}_toStringDetails(){const T=this._buffer;return`{${T.empty?"":`next: ${T.first}, `}buffer: ${T.length}}`}}t.BufferedIterator=_;class w extends _{constructor(T,R=T||{}){super(R),this._boundPush=U=>this._push(U),Se(T)||(T=R.source),we(T)?this.source=T:T&&(this._createSource=Re(T)?()=>T:T,this._sourceStarted&&this._loadSourceAsync()),this._optional=!!R.optional,this._destroySource=R.destroySource!==!1}get source(){return Pe(this._createSource)&&this._loadSourceAsync(),this._source}set source(T){const R=this._source=this._validateSource(T);R[t.DESTINATION]=this,this.done?this._destroySource&&R.destroy():R.done?this.close():(R.on("end",F),R.on("readable",x),R.on("error",O))}_loadSourceAsync(){Pe(this._createSource)&&(Promise.resolve(this._createSource()).then(T=>{delete this._createSource,this.source=T,this._fillBuffer()},T=>this.emit("error",T)),this._createSource=null)}_validateSource(T,R=!1){if(this._source||typeof this._createSource<"u")throw new Error("The source cannot be changed after it has been set");return v(T,R)}_read(T,R){const U=()=>{this._pushedCountthis._readAndTransform(U,R)):R()};this._readAndTransform(U,R)}_readAndTransform(T,R){let U;const G=this.source;!G||G.done||(U=G.read())===null?R():this._optional?this._optionalTransform(U,T):this._transform(U,T,this._boundPush)}_optionalTransform(T,R){const U=this._pushedCount;this._transform(T,()=>{U===this._pushedCount&&this._push(T),R()},this._boundPush)}_transform(T,R,U){U(T),R()}_closeWhenDone(){this.close()}_end(T){const R=this._source;R&&(R.removeListener("end",F),R.removeListener("error",O),R.removeListener("readable",x),delete R[t.DESTINATION],this._destroySource&&R.destroy()),super._end(T)}}t.TransformIterator=w;function E(){this[t.DESTINATION].readable=!0}function O(k){this[t.DESTINATION].emit("error",k)}function L(){this[t.DESTINATION].close()}function F(){this[t.DESTINATION]._closeWhenDone()}function x(){this[t.DESTINATION]._sourceStarted!==!1&&this[t.DESTINATION]._fillBuffer()}class P extends w{constructor(T,R){if(super(T,R),this._offset=0,this._limit=1/0,this._filter=U=>!0,R=R||(Se(T)?null:T),R){const U=Pe(R)?R:R.transform,{limit:G,offset:Q,filter:Z,map:se,prepend:re,append:le}=R;Q===1/0||G===-1/0?this._limit=0:(Number.isFinite(Q)&&(this._offset=Math.max(Math.trunc(Q),0)),Number.isFinite(G)&&(this._limit=Math.max(Math.trunc(G),0)),Pe(Z)&&(this._filter=Z),Pe(se)&&(this._map=se),this._transform=Pe(U)?U:null),re&&(this._prepender=we(re)?re:Te(re)),le&&(this._appender=we(le)?le:Te(le))}}_read(T,R){const U=()=>this._readAndTransformSimple(T,G,R);this._readAndTransformSimple(T,G,R);function G(){a(U)}}_readAndTransformSimple(T,R,U){let G;const{source:Q}=this;if(!Q||Q.done){U();return}for(this._limit===0&&this.close();!this.closed&&this._pushedCount"u"?G:this._map(G);if(Z===null)this._optional&&this._push(G);else if(!Pe(this._transform))this._push(Z);else{this._optional?this._optionalTransform(Z,R):this._transform(Z,R,this._boundPush);return}--this._limit===0&&this.close()}U()}_begin(T){this._insert(this._prepender,T),delete this._prepender}_flush(T){this._insert(this._appender,T),delete this._appender}_insert(T,R){const U=Q=>this._push(Q);!T||T.done?R():(T.on("data",U),T.on("end",G));function G(){T.removeListener("data",U),T.removeListener("end",G),R()}}}t.SimpleTransformIterator=P;class j extends w{constructor(T,R){if(super(T,R),this._transformerQueue=[],R){const U=Pe(R)?R:R.multiTransform;U&&(this._createTransformer=U)}}_read(T,R){const U=this._transformerQueue,G=this._optional;let Q,Z;for(;(Q=U[0])&&Q.transformer.done;){G&&Q.item!==null&&(T--,this._push(Q.item)),U.shift();const{transformer:re}=Q;re.removeListener("end",x),re.removeListener("readable",x),re.removeListener("error",O)}const{source:se}=this;for(;se&&!se.done&&U.length0&&(Z=re.read())!==null;)this._push(Z),G&&(Q.item=null)}else se&&se.done&&this.close();R()}_createTransformer(T){return new p(T)}_closeWhenDone(){this._transformerQueue.length||this.close()}_end(T){if(super._end(T),this._destroySource)for(const R of this._transformerQueue)R.transformer.destroy()}}t.MultiTransformIterator=j;class N extends _{constructor(T,R={}){super(R),this._sources=[],this._currentSource=-1;const U=R.autoStart!==!1;if(we(T))T.on("error",G=>this.emit("error",G)),this._pending={loading:!1,sources:T},U&&this._loadSources();else if(Array.isArray(T)&&T.length>0)for(const G of T)this._addSource(G);else U&&this.close();this._destroySources=R.destroySources!==!1}_loadSources(){const T=this._pending.sources;this._pending.loading=!0,T.done?(delete this._pending,this.close()):(T.on("data",R=>{this._addSource(R),this._fillBufferAsync()}),T.on("end",()=>{delete this._pending,this._fillBuffer()}))}_addSource(T){Re(T)&&(T=X(T)),T.done||(this._sources.push(T),T[t.DESTINATION]=this,T.on("error",O),T.on("readable",x),T.on("end",V))}_removeEmptySources(){this._sources=this._sources.filter((T,R)=>(T.done&&R<=this._currentSource&&this._currentSource--,!T.done)),this._fillBuffer()}_read(T,R){var U;((U=this._pending)===null||U===void 0?void 0:U.loading)===!1&&this._loadSources();let G=0,Q;for(;G!==(G=T);)for(let Z=0;Z0;Z++)this._currentSource=(this._currentSource+1)%this._sources.length,(Q=this._sources[this._currentSource].read())!==null&&(T--,this._push(Q));!this._pending&&this._sources.length===0&&this.close(),R()}_end(T=!1){if(super._end(T),this._destroySources){for(const R of this._sources)R.destroy();this._pending&&(this._pending.sources.destroy(),delete this._pending)}}}t.UnionIterator=N;function V(){this[t.DESTINATION]._removeEmptySources()}class $ extends w{constructor(T){super(T,{autoStart:!1}),this._readPosition=0,this._reading=!1,T&&(this.readable=!0)}_init(){}close(){c.prototype.close.call(this)}get source(){return super.source}set source(T){const R=this._source=this._validateSource(T),U=R&&R[t.DESTINATION]||(R[t.DESTINATION]=new q(R));this.done?this._destroySource&&R.destroy():U.endsAt(0)?this.close():(U.register(this),(R._sourceStarted===!1||U.readAt(0)!==null)&&(this.readable=!0));const G=this._propertyCallbacks;for(const Q in G){const Z=G[Q];for(const se of Z)this._getSourceProperty(Q,se)}}_validateSource(T,R=!1){const U=T&&T[t.DESTINATION];return super._validateSource(T,!U||U instanceof q)}getProperty(T,R){const{source:U}=this,G=this._properties,Q=G&&T in G;if(!R)return Q?G&&G[T]:U&&U.getProperty(T);super.getProperty(T,R),U&&!Q&&this._getSourceProperty(T,R)}_getSourceProperty(T,R){this.source.getProperty(T,U=>{(!this._properties||!(T in this._properties))&&R(U)})}getProperties(){const T=this.source?this.source.getProperties():{},R=this._properties;for(const U in R)T[U]=R[U];return T}_toStringDetails(){return`{source: ${this.source?this.source.toString():"none"}}`}read(){this._sourceStarted||(this._sourceStarted=!0);const T=this.source;let R=null;if(!this.done&&T){const U=T[t.DESTINATION];(R=U.readAt(this._readPosition))!==null?this._readPosition++:this.readable=!1,U.endsAt(this._readPosition)&&this.close()}return R}_end(T){const R=this.source,U=R==null?void 0:R[t.DESTINATION];U&&U.unregister(this),_.prototype._end.call(this,T)}}t.ClonedIterator=$;class q{constructor(T){if(this._history=[],this._trackers=new Set,this._source=T,!T.done){const R=()=>{for(const Q of this._trackers)Q.readable=!0},U=Q=>{for(const Z of this._trackers)Z.emit("error",Q)},G=()=>{for(const Q of this._trackers)Q._sourceStarted!==!1&&Q._readPosition===this._history.length&&Q.close();this._trackers.clear(),T.removeListener("end",G),T.removeListener("error",U),T.removeListener("readable",R)};T.on("end",G),T.on("error",U),T.on("readable",R)}}register(T){this._source.done||this._trackers.add(T)}unregister(T){this._trackers.delete(T)}readAt(T){let R=null;return T{this._source=null,this.source=U}).catch(U=>this.emit("error",U))):T&&(this.source=T)}set source(T){let R=T;if(this._source!==null)throw new Error("The source cannot be changed after it has been set");if(z(R)&&(R=R[Symbol.iterator]()),M(R)){let U=R;R=new e.EventEmitter,R.read=()=>{if(U!==null){let G;for(;!(G=U.next()).done;)if(G.value!==null)return G.value;U=null,this.close()}return null}}else R=v(R);if(this.done){this._destroySource&&Pe(R.destroy)&&R.destroy();return}R[t.DESTINATION]=this,R.on("end",L),R.on("error",O),R.on("readable",E),this._source=R,this.readable=R.readable!==!1}read(){if(this._source!==null&&this._source.readable!==!1){const T=this._source.read();if(T!==null)return T;this.readable=!1}return null}_end(T=!1){this._source!==null&&(this._source.removeListener("end",L),this._source.removeListener("error",O),this._source.removeListener("readable",E),delete this._source[t.DESTINATION],this._destroySource&&Pe(this._source.destroy)&&this._source.destroy(),this._source=null),super._end(T)}}t.WrappingIterator=H;function X(k,T){if(T&&("autoStart"in T||"optional"in T||"source"in T||"maxBufferSize"in T))return k&&!we(k)&&(k=new H(k)),new w(k,T);if(!k)return Y();if(Re(k))return new H(k,T);if(k instanceof c)return k;if(Array.isArray(k))return Te(k);if(z(k)||M(k)||we(k))return new H(k,T);throw new TypeError(`Invalid source: ${k}`)}t.wrap=X;function Y(){return new h}t.empty=Y;function he(k){return new p(k)}t.single=he;function Te(k){return new m(k)}t.fromArray=Te;function Ne(k){return new H(k)}t.fromIterator=Ne;function $e(k){return new H(k)}t.fromIterable=$e;function de(k){return new N(k)}t.union=de;function ce(k,T,R){return new y({start:k,end:T,step:R})}t.range=ce;function xe(k,T){return T?k.bind(T):k}function Pe(k){return typeof k=="function"}t.isFunction=Pe;function we(k){return Pe(k==null?void 0:k.on)}t.isEventEmitter=we;function Re(k){return Pe(k==null?void 0:k.then)}t.isPromise=Re;function Se(k){return k&&(we(k)||Re(k)||Pe(k))}t.isSourceExpression=Se;function z(k){return k&&Symbol.iterator in k}t.isIterable=z;function M(k){return Pe(k==null?void 0:k.next)}t.isIterator=M})(Mt);var L8;function HEe(){if(L8)return lh;L8=1,Object.defineProperty(lh,"__esModule",{value:!0}),lh.ClosableTransformIterator=void 0;const t=Mt;let e=class extends t.TransformIterator{constructor(n,a){super(n,a),this.onClose=a.onClose}_end(n){this.onClose(),super._end(n)}};return lh.ClosableTransformIterator=e,lh}var j8;function Tt(){return j8||(j8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(OY(),t),r(RY(),t),r(qEe(),t),r(AY(),t),r($Ee(),t),r(HEe(),t)}(qA)),qA}var n3={},dh={},i3={},fh={},M8;function QEe(){if(M8)return fh;M8=1,Object.defineProperty(fh,"__esModule",{value:!0}),fh.ActorContextPreprocess=void 0;const t=st;let e=class extends t.Actor{constructor(n){super(n)}};return fh.ActorContextPreprocess=e,fh}var F8;function A1(){return F8||(F8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(QEe(),t)}(i3)),i3}var B8;function zEe(){if(B8)return dh;B8=1,Object.defineProperty(dh,"__esModule",{value:!0}),dh.ActorContextPreprocessConvertShortcuts=void 0;const t=A1(),e=st;let r=class xY extends t.ActorContextPreprocess{constructor(a){super(a)}async test(a){return!0}async run(a){return{context:xY.expandShortcuts(a.context,this.contextKeyShortcuts)}}static expandShortcuts(a,s){for(const o of a.keys())s[o.name]&&(a=a.set(new e.ActionContextKey(s[o.name]),a.get(o)).delete(o));return a}};return dh.ActorContextPreprocessConvertShortcuts=r,dh}var q8;function GEe(){return q8||(q8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(zEe(),t)}(n3)),n3}var a3={},hh={},$8;function WEe(){if($8)return hh;$8=1,Object.defineProperty(hh,"__esModule",{value:!0}),hh.ActorContextPreprocessSetDefaults=void 0;const t=A1(),e=qt;let r=class extends t.ActorContextPreprocess{constructor(a){super(a),this.defaultFunctionArgumentsCache={}}async test(a){return!0}async run(a){let s=a.context;if(a.initialize){s=s.setDefault(e.KeysInitQuery.queryTimestamp,new Date).setDefault(e.KeysQuerySourceIdentify.sourceIds,new Map).setDefault(e.KeysCore.log,this.logger).setDefault(e.KeysInitQuery.functionArgumentsCache,this.defaultFunctionArgumentsCache).setDefault(e.KeysQuerySourceIdentify.hypermediaSourcesAggregatedStores,new Map);let o={language:"sparql",version:"1.1"};s.has(e.KeysInitQuery.queryFormat)?(o=s.get(e.KeysInitQuery.queryFormat),o.language==="graphql"&&(s=s.setDefault(e.KeysInitQuery.graphqlSingularizeVariables,{}))):s=s.set(e.KeysInitQuery.queryFormat,o)}return{context:s}}};return hh.ActorContextPreprocessSetDefaults=r,hh}var U8;function KEe(){return U8||(U8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(WEe(),t)}(a3)),a3}var s3={},ph={},k8;function JEe(){if(k8)return ph;k8=1,Object.defineProperty(ph,"__esModule",{value:!0}),ph.ActorContextPreprocessSourceToDestination=void 0;const t=A1(),e=qt;let r=class extends t.ActorContextPreprocess{constructor(a){super(a)}async test(a){return!0}async run(a){if(a.context.get(e.KeysInitQuery.querySourcesUnidentified)&&!a.context.get(e.KeysRdfUpdateQuads.destination)){const s=a.context.get(e.KeysInitQuery.querySourcesUnidentified);if(s.length===1)return{context:a.context.set(e.KeysRdfUpdateQuads.destination,s[0])}}return a}};return ph.ActorContextPreprocessSourceToDestination=r,ph}var V8;function XEe(){return V8||(V8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(JEe(),t)}(s3)),s3}var o3={},yh={},mh={},u3={},H8;function kC(){return H8||(H8=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.deskolemizeOperation=t.deskolemizeQuad=t.deskolemizeTermNestedThrowing=t.deskolemizeTerm=t.skolemizeBindingsStream=t.skolemizeQuadStream=t.skolemizeBindings=t.skolemizeQuad=t.skolemizeTerm=t.getSourceId=t.SKOLEM_PREFIX=void 0;const e=qC(),r=Ot,n=In(),a=xt(),s=new r.DataFactory;t.SKOLEM_PREFIX="urn:comunica_skolem:source_";function o(g,b){let v=g.get(b.referenceValue);return v===void 0&&(v=`${g.size}`,g.set(b.referenceValue,v)),v}t.getSourceId=o;function u(g,b){return g.termType==="BlankNode"?new e.BlankNodeScoped(`bc_${b}_${g.value}`,s.namedNode(`${t.SKOLEM_PREFIX}${b}:${g.value}`)):g}t.skolemizeTerm=u;function c(g,b){return(0,n.mapTermsNested)(g,v=>u(v,b))}t.skolemizeQuad=c;function l(g,b){return g.map(v=>v.termType==="Quad"?c(v,b):u(v,b))}t.skolemizeBindings=l;function d(g,b){const v=g.map(w=>c(w,b));function _(){g.getProperty("metadata",w=>{v.setProperty("metadata",w),w.state.addInvalidateListener(_)})}return _(),v}t.skolemizeQuadStream=d;function f(g,b){const v=g.map(w=>l(w,b));function _(){g.getProperty("metadata",w=>{v.setProperty("metadata",w),w.state.addInvalidateListener(_)})}return _(),v}t.skolemizeBindingsStream=f;function h(g,b){if(g.termType==="BlankNode"&&"skolemized"in g&&(g=g.skolemized),g.termType==="NamedNode"&&g.value.startsWith(t.SKOLEM_PREFIX)){const v=g.value.indexOf(":",t.SKOLEM_PREFIX.length);if(g.value.slice(t.SKOLEM_PREFIX.length,v)===b){const w=g.value.slice(v+1,g.value.length);return s.blankNode(w)}return null}return g}t.deskolemizeTerm=h;function p(g,b){if(g.termType==="Quad")return(0,n.mapTermsNested)(g,_=>{const w=h(_,b);if(!w)throw new Error("Skolemized term is not in scope for this source");return w});const v=h(g,b);if(v===null)throw new Error("Skolemized term is not in scope for this source");return v}t.deskolemizeTermNestedThrowing=p;function m(g,b){return(0,n.mapTermsNested)(g,v=>h(v,b)??v)}t.deskolemizeQuad=m;function y(g,b){try{return a.Util.mapOperation(g,{[a.Algebra.types.PATTERN](v,_){return{result:Object.assign(_.createPattern(p(v.subject,b),p(v.predicate,b),p(v.object,b),p(v.graph,b)),{metadata:v.metadata}),recurse:!1}},[a.Algebra.types.PATH](v,_){return{result:Object.assign(_.createPath(p(v.subject,b),v.predicate,p(v.object,b),p(v.graph,b)),{metadata:v.metadata}),recurse:!1}}})}catch{}}t.deskolemizeOperation=y}(u3)),u3}var Q8;function IY(){if(Q8)return mh;Q8=1,Object.defineProperty(mh,"__esModule",{value:!0}),mh.QuerySourceSkolemized=void 0;const t=ci(),e=Mt,r=kC();let n=class{constructor(s,o){this.innerSource=s,this.sourceId=o}async getSelectorShape(s){return this.innerSource.getSelectorShape(s)}queryBindings(s,o,u){const c=(0,r.deskolemizeOperation)(s,this.sourceId);if(!c){const l=new e.ArrayIterator([],{autoStart:!1});return l.setProperty("metadata",{state:new t.MetadataValidationState,cardinality:{type:"exact",value:0},canContainUndefs:!1,variables:[]}),l}return(0,r.skolemizeBindingsStream)(this.innerSource.queryBindings(c,o,u),this.sourceId)}queryBoolean(s,o){return this.innerSource.queryBoolean(s,o)}queryQuads(s,o){const u=(0,r.deskolemizeOperation)(s,this.sourceId);if(!u){const c=new e.ArrayIterator([],{autoStart:!1});return c.setProperty("metadata",{state:new t.MetadataValidationState,cardinality:{type:"exact",value:0}}),c}return(0,r.skolemizeQuadStream)(this.innerSource.queryQuads(u,o),this.sourceId)}queryVoid(s,o){return this.innerSource.queryVoid(s,o)}get referenceValue(){return this.innerSource.referenceValue}toString(){return`${this.innerSource.toString()}(SkolemID:${this.sourceId})`}};return mh.QuerySourceSkolemized=n,mh}var z8;function YEe(){if(z8)return yh;z8=1,Object.defineProperty(yh,"__esModule",{value:!0}),yh.ActorContextPreprocessQuerySourceSkolemize=void 0;const t=A1(),e=qt,r=IY(),n=kC();let a=class extends t.ActorContextPreprocess{constructor(o){super(o)}async test(o){return!0}async run(o){let u=o.context;if(u.has(e.KeysQueryOperation.querySources)){u.has(e.KeysQuerySourceIdentify.sourceIds)||(u=u.set(e.KeysQuerySourceIdentify.sourceIds,new Map));const c=u.getSafe(e.KeysQuerySourceIdentify.sourceIds);let l=u.getSafe(e.KeysQueryOperation.querySources);l=l.map(d=>({source:new r.QuerySourceSkolemized(d.source,(0,n.getSourceId)(c,d.source)),context:d.context})),u=u.set(e.KeysQueryOperation.querySources,l)}return{context:u}}};return yh.ActorContextPreprocessQuerySourceSkolemize=a,yh}var G8;function PY(){return G8||(G8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(YEe(),t),r(IY(),t),r(kC(),t)}(o3)),o3}var c3={},gh={},W8;function ZEe(){if(W8)return gh;W8=1,Object.defineProperty(gh,"__esModule",{value:!0}),gh.MediatorCombinePipeline=void 0;const t=st;let e=class extends t.Mediator{constructor(n){super(n)}async mediate(n){let a;try{a=this.publish(n)}catch{return n}if(this.filterErrors){const o=[];for(const u of a)try{await u.reply,o.push(u)}catch{}a=o}if(a=await Promise.all(a.map(async({actor:o,reply:u})=>({actor:o,reply:await u}))),this.order){const o=u=>{const c=this.field?u[this.field]:u;if(typeof c!="number")throw new TypeError("Cannot order elements that are not numbers.");return c};a=a.sort((u,c)=>(this.order==="increasing"?1:-1)*(o(u.reply)-o(c.reply)))}let s=n;for(const{actor:o}of a)s={...s,...await o.runObservable(s)};return s}mediateWith(){throw new Error("Method not supported.")}};return gh.MediatorCombinePipeline=e,gh}var K8;function J8(){return K8||(K8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(ZEe(),t)}(c3)),c3}var l3={},_h={},d3={},bh={},X8;function eAe(){if(X8)return bh;X8=1,Object.defineProperty(bh,"__esModule",{value:!0}),bh.ActorHashBindings=void 0;const t=st;let e=class extends t.Actor{constructor(n){super(n)}};return bh.ActorHashBindings=e,bh}var Y8;function tAe(){return Y8||(Y8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(eAe(),t)}(d3)),d3}var f3,Z8;function rAe(){return Z8||(Z8=1,f3=function t(e){if(typeof e=="number"&&isNaN(e))throw new Error("NaN is not allowed");if(typeof e=="number"&&!isFinite(e))throw new Error("Infinity is not allowed");return e===null||typeof e!="object"?JSON.stringify(e):e.toJSON instanceof Function?t(e.toJSON()):Array.isArray(e)?`[${e.reduce((a,s,o)=>`${a}${o===0?"":","}${t(s===void 0||typeof s=="symbol"?null:s)}`,"")}]`:`{${Object.keys(e).sort().reduce((n,a)=>{if(e[a]===void 0||typeof e[a]=="symbol")return n;const s=n.length===0?"":",";return`${n}${s}${t(a)}:${t(e[a])}`},"")}}`}),f3}var eF;function nAe(){if(eF)return _h;eF=1,Object.defineProperty(_h,"__esModule",{value:!0}),_h.ActorHashBindingsSha1=void 0;const t=tAe(),e=UC(),r=nr,n=rAe();let a=class extends t.ActorHashBindings{async test(o){if(!o.allowHashCollisions)throw new Error(`Actor ${this.name} can not provide hash functions without hash collisions`);return!0}async run(o){return{hashFunction:u=>(0,e.sha1)().update(n(Object.fromEntries([...u].map(([c,l])=>[(0,r.termToString)(c),(0,r.termToString)(l)])))).digest("hex"),hashCollisions:!0}}};return _h.ActorHashBindingsSha1=a,_h}var tF;function iAe(){return tF||(tF=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(nAe(),t)}(l3)),l3}var h3={},vh={},rF;function aAe(){if(rF)return vh;rF=1,Object.defineProperty(vh,"__esModule",{value:!0}),vh.MediatorRace=void 0;const t=st;let e=class extends t.Mediator{constructor(n){super(n)}mediateWith(n,a){return new Promise((s,o)=>{const u=[];for(const c of a)c.reply.then(()=>{s(c.actor)}).catch(l=>{u.push(l),u.length===a.length&&o(new Error(`${this.name} mediated over all rejecting actors: ${u.map(d=>d.message).join(` -`)}`))})})}};return vh.MediatorRace=e,vh}var nF;function Qn(){return nF||(nF=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(sAe(),t)}(p3)),p3}var y3={},wh={},m3={},Sh={},iF;function oAe(){if(iF)return Sh;iF=1,Object.defineProperty(Sh,"__esModule",{value:!0}),Sh.ActorOptimizeQueryOperation=void 0;const t=st;let e=class extends t.Actor{constructor(n){super(n)}};return Sh.ActorOptimizeQueryOperation=e,Sh}var aF;function Ua(){return aF||(aF=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(oAe(),t)}(m3)),m3}var sF;function uAe(){if(sF)return wh;sF=1,Object.defineProperty(wh,"__esModule",{value:!0}),wh.ActorOptimizeQueryOperationRewriteCopy=void 0;const t=Ua(),e=xt();let r=class extends t.ActorOptimizeQueryOperation{constructor(a){super(a)}async test(a){return!0}async run(a){return{operation:e.Util.mapOperation(a.operation,{[e.Algebra.types.COPY](o,u){let c;return typeof o.destination=="string"&&typeof o.source=="string"&&o.destination===o.source||typeof o.destination!="string"&&typeof o.source!="string"&&o.destination.equals(o.source)?c=u.createCompositeUpdate([]):c=u.createCompositeUpdate([u.createDrop(o.destination,!0),u.createAdd(o.source,o.destination,o.silent)]),{result:c,recurse:!1}}}),context:a.context}}};return wh.ActorOptimizeQueryOperationRewriteCopy=r,wh}var oF;function cAe(){return oF||(oF=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(uAe(),t)}(y3)),y3}var g3={},Th={},uF;function lAe(){if(uF)return Th;uF=1,Object.defineProperty(Th,"__esModule",{value:!0}),Th.ActorOptimizeQueryOperationRewriteMove=void 0;const t=Ua(),e=xt();let r=class extends t.ActorOptimizeQueryOperation{constructor(a){super(a)}async test(a){return!0}async run(a){return{operation:e.Util.mapOperation(a.operation,{[e.Algebra.types.MOVE](o,u){let c;if(typeof o.destination=="string"&&typeof o.source=="string"&&o.destination===o.source||typeof o.destination!="string"&&typeof o.source!="string"&&o.destination.equals(o.source))c=u.createCompositeUpdate([]);else{const l=[u.createDrop(o.destination,!0),u.createAdd(o.source,o.destination,o.silent),u.createDrop(o.source)];c=u.createCompositeUpdate(l)}return{result:c,recurse:!1}}}),context:a.context}}};return Th.ActorOptimizeQueryOperationRewriteMove=r,Th}var cF;function dAe(){return cF||(cF=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(lAe(),t)}(g3)),g3}var _3={},Eh={},lF;function fAe(){if(lF)return Eh;lF=1,Object.defineProperty(Eh,"__esModule",{value:!0}),Eh.ActorOptimizeQueryOperationRewriteAdd=void 0;const t=Ua(),e=Ot,r=xt(),n=new e.DataFactory;let a=class extends t.ActorOptimizeQueryOperation{constructor(o){super(o)}async test(o){return!0}async run(o){return{operation:r.Util.mapOperation(o.operation,{[r.Algebra.types.ADD](c,l){const d=c.destination==="DEFAULT"?n.defaultGraph():c.destination,f=c.source==="DEFAULT"?n.defaultGraph():c.source;return{result:l.createDeleteInsert(void 0,[l.createPattern(n.variable("s"),n.variable("p"),n.variable("o"),d)],l.createPattern(n.variable("s"),n.variable("p"),n.variable("o"),f)),recurse:!1}}}),context:o.context}}};return Eh.ActorOptimizeQueryOperationRewriteAdd=a,Eh}var dF;function hAe(){return dF||(dF=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(fAe(),t)}(_3)),_3}var b3={},Ah={},fF;function pAe(){if(fF)return Ah;fF=1,Object.defineProperty(Ah,"__esModule",{value:!0}),Ah.ActorOptimizeQueryOperationGroupSources=void 0;const t=Ua(),e=Tt(),r=xt(),n=new r.Factory;let a=class extends t.ActorOptimizeQueryOperation{constructor(o){super(o)}async test(o){if(e.ActorQueryOperation.getOperationSource(o.operation))throw new Error(`Actor ${this.name} does not work with top-level operation sources.`);return!0}async run(o){return{operation:await this.groupOperation(o.operation,o.context),context:o.context}}async groupOperation(o,u){var f;if(e.ActorQueryOperation.getOperationSource(o)??!("input"in o))return o;if(!Array.isArray(o.input)){const h=await this.groupOperation(o.input,u);if((f=h.metadata)!=null&&f.scopedSource){const p=e.ActorQueryOperation.getOperationSource(h);e.ActorQueryOperation.doesShapeAcceptOperation(await p.source.getSelectorShape(u),o)&&(this.logDebug(u,`Hoist 1 source-specific operation into a single ${o.type} operation for ${p.source.toString()}`),e.ActorQueryOperation.removeOperationSource(h),o=e.ActorQueryOperation.assignOperationSource(o,p))}return{...o,input:h}}const c=await Promise.all(o.input.map(h=>this.groupOperation(h,u))),l=this.clusterOperationsWithEqualSources(c);if(l.length===1){const h=l[0],p=e.ActorQueryOperation.getOperationSource(l[0][0]);return{...await this.moveSourceAnnotationUpwardsIfPossible(o,h,p,u),input:h}}if(l.length===c.length)return{...o,input:c};let d;switch(o.type){case r.Algebra.types.JOIN:d=n.createJoin.bind(n);break;case r.Algebra.types.UNION:d=n.createUnion.bind(n);break;case r.Algebra.types.ALT:d=n.createAlt.bind(n);break;case r.Algebra.types.SEQ:d=n.createSeq.bind(n);break;default:throw new Error(`Unsupported operation '${o.type}' detected while grouping sources`)}return await this.groupOperationMulti(l,d,u)}async groupOperationMulti(o,u,c){let l=!0;const d=await Promise.all(o.map(async f=>{const h=e.ActorQueryOperation.getOperationSource(f[0]),p=await this.moveSourceAnnotationUpwardsIfPossible(u(f,!0),f,h,c);return e.ActorQueryOperation.getOperationSource(p)&&(l=!1),p}));return u(d,l)}clusterOperationsWithEqualSources(o){const u=new Map,c=[];for(const d of o){const f=e.ActorQueryOperation.getOperationSource(d);f?(u.has(f)||u.set(f,[]),u.get(f).push(d)):c.push(d)}const l=[];c.length>0&&l.push(c);for(const[d,f]of u.entries())l.push(f.map(h=>e.ActorQueryOperation.assignOperationSource(h,d)));return l}async moveSourceAnnotationUpwardsIfPossible(o,u,c,l){if(c&&e.ActorQueryOperation.doesShapeAcceptOperation(await c.source.getSelectorShape(l),o)){this.logDebug(l,`Hoist ${u.length} source-specific operations into a single ${o.type} operation for ${c.source.toString()}`),o=e.ActorQueryOperation.assignOperationSource(o,c);for(const d of u)e.ActorQueryOperation.removeOperationSource(d)}return o}};return Ah.ActorOptimizeQueryOperationGroupSources=a,Ah}var hF;function yAe(){return hF||(hF=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(pAe(),t)}(b3)),b3}var v3={},Oh={},w3={},Rh={},pF;function mAe(){if(pF)return Rh;pF=1,Object.defineProperty(Rh,"__esModule",{value:!0}),Rh.ActorQueryParse=void 0;const t=st;let e=class extends t.Actor{constructor(n){super(n)}};return Rh.ActorQueryParse=e,Rh}var yF;function NY(){return yF||(yF=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(mAe(),t)}(w3)),w3}var mF;function gAe(){if(mF)return Oh;mF=1,Object.defineProperty(Oh,"__esModule",{value:!0}),Oh.ActorQueryParseSparql=void 0;const t=NY(),e=xt(),r=ol;let n=class extends t.ActorQueryParse{constructor(s){super(s),this.prefixes=Object.freeze(this.prefixes)}async test(s){if(s.queryFormat&&s.queryFormat.language!=="sparql")throw new Error("This actor can only parse SPARQL queries");return!0}async run(s){const u=new r.Parser({prefixes:this.prefixes,baseIRI:s.baseIRI,sparqlStar:!0}).parse(s.query);return{baseIRI:u.type==="query"?u.base:void 0,operation:(0,e.translate)(u,{quads:!0,prefixes:this.prefixes,blankToVariable:!0,baseIRI:s.baseIRI})}}};return Oh.ActorQueryParseSparql=n,Oh}var gF;function _Ae(){return gF||(gF=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(gAe(),t)}(v3)),v3}var S3={},xh={},T3={},E3={},A3={},Ih={},_F;function Df(){if(_F)return Ih;_F=1,Object.defineProperty(Ih,"__esModule",{value:!0}),Ih.DirectiveNodeHandlerAdapter=void 0;let t=class{constructor(r,n,a){this.targetKind=r,this.util=n,this.settings=a}getDirectiveConditionalValue(r,n){const a=this.util.getArgument(r.arguments,"if");if(!a)throw new Error(`The directive ${r.name.value} is missing an if-argument.`);const s=this.util.handleNodeValue(a.value,a.name.value,n);if(s.terms.length!==1)throw new Error(`Can not apply the directive ${r.name.value} with a list.`);return s.terms[0]}isDirectiveScopeAll(r){const n=this.util.getArgument(r.arguments,"scope");return n&&n.value.kind==="EnumValue"&&n.value.value==="all"}};return Ih.DirectiveNodeHandlerAdapter=t,Ih}var Ph={},bF;function bAe(){if(bF)return Ph;bF=1,Object.defineProperty(Ph,"__esModule",{value:!0}),Ph.DirectiveNodeHandlerInclude=void 0;const t=Df();let e=class extends t.DirectiveNodeHandlerAdapter{constructor(n,a){super("include",n,a)}handle(n,a){const s=this.getDirectiveConditionalValue(n.directive,a);return s.termType==="Literal"&&s.value==="false"?{ignore:!0}:{}}};return Ph.DirectiveNodeHandlerInclude=e,Ph}var Nh={},vF;function vAe(){if(vF)return Nh;vF=1,Object.defineProperty(Nh,"__esModule",{value:!0}),Nh.DirectiveNodeHandlerOptional=void 0;const t=Df();let e=class extends t.DirectiveNodeHandlerAdapter{constructor(n,a){super("optional",n,a)}handle(n,a){return{operationOverrider:s=>this.util.operationFactory.createLeftJoin(this.util.operationFactory.createBgp([]),s)}}};return Nh.DirectiveNodeHandlerOptional=e,Nh}var Dh={},O3={},wF;function O1(){return wF||(wF=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.SingularizeState=void 0,function(e){e[e.SINGLE=0]="SINGLE",e[e.PLURAL=1]="PLURAL"}(t.SingularizeState||(t.SingularizeState={}))}(O3)),O3}var SF;function wAe(){if(SF)return Dh;SF=1,Object.defineProperty(Dh,"__esModule",{value:!0}),Dh.DirectiveNodeHandlerPlural=void 0;const t=O1(),e=Df();let r=class extends e.DirectiveNodeHandlerAdapter{constructor(a,s){super("plural",a,s)}handle(a,s){return this.isDirectiveScopeAll(a.directive)&&(s.singularizeState=t.SingularizeState.PLURAL),delete s.singularizeVariables[this.util.nameToVariable(a.fieldLabel,s).value],{}}};return Dh.DirectiveNodeHandlerPlural=r,Dh}var Ch={},TF;function SAe(){if(TF)return Ch;TF=1,Object.defineProperty(Ch,"__esModule",{value:!0}),Ch.DirectiveNodeHandlerSingle=void 0;const t=O1(),e=Df();let r=class extends e.DirectiveNodeHandlerAdapter{constructor(a,s){super("single",a,s)}handle(a,s){return this.isDirectiveScopeAll(a.directive)&&(s.singularizeState=t.SingularizeState.SINGLE),s.singularizeVariables[this.util.nameToVariable(a.fieldLabel,s).value]=!0,{}}};return Ch.DirectiveNodeHandlerSingle=r,Ch}var Lh={},EF;function TAe(){if(EF)return Lh;EF=1,Object.defineProperty(Lh,"__esModule",{value:!0}),Lh.DirectiveNodeHandlerSkip=void 0;const t=Df();let e=class extends t.DirectiveNodeHandlerAdapter{constructor(n,a){super("skip",n,a)}handle(n,a){const s=this.getDirectiveConditionalValue(n.directive,a);return s.termType==="Literal"&&s.value==="true"?{ignore:!0}:{}}};return Lh.DirectiveNodeHandlerSkip=e,Lh}var AF;function DY(){return AF||(AF=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s),Object.defineProperty(n,o,{enumerable:!0,get:function(){return a[s]}})}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Df(),t),r(bAe(),t),r(vAe(),t),r(wAe(),t),r(SAe(),t),r(TAe(),t)}(A3)),A3}var R3={},jh={},OF;function ws(){if(OF)return jh;OF=1,Object.defineProperty(jh,"__esModule",{value:!0}),jh.NodeValueHandlerAdapter=void 0;let t=class{constructor(r,n,a){this.targetKind=r,this.util=n,this.settings=a}};return jh.NodeValueHandlerAdapter=t,jh}var Mh={},RF;function EAe(){if(RF)return Mh;RF=1,Object.defineProperty(Mh,"__esModule",{value:!0}),Mh.NodeValueHandlerBoolean=void 0;const t=ws();let e=class extends t.NodeValueHandlerAdapter{constructor(n,a){super("BooleanValue",n,a),this.datatype=this.util.dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#boolean")}handle(n,a,s){return{terms:[this.util.dataFactory.literal(n.value?"true":"false",this.datatype)]}}};return Mh.NodeValueHandlerBoolean=e,Mh}var Fh={},xF;function AAe(){if(xF)return Fh;xF=1,Object.defineProperty(Fh,"__esModule",{value:!0}),Fh.NodeValueHandlerEnum=void 0;const t=ws();let e=class extends t.NodeValueHandlerAdapter{constructor(n,a){super("EnumValue",n,a)}handle(n,a,s){return{terms:[this.util.valueToNamedNode(n.value,s.context)]}}};return Fh.NodeValueHandlerEnum=e,Fh}var Bh={},IF;function OAe(){if(IF)return Bh;IF=1,Object.defineProperty(Bh,"__esModule",{value:!0}),Bh.NodeValueHandlerFloat=void 0;const t=ws();let e=class extends t.NodeValueHandlerAdapter{constructor(n,a){super("FloatValue",n,a),this.datatype=this.util.dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#float")}handle(n,a,s){return{terms:[this.util.dataFactory.literal(n.value,this.datatype)]}}};return Bh.NodeValueHandlerFloat=e,Bh}var qh={},PF;function RAe(){if(PF)return qh;PF=1,Object.defineProperty(qh,"__esModule",{value:!0}),qh.NodeValueHandlerInt=void 0;const t=ws();let e=class extends t.NodeValueHandlerAdapter{constructor(n,a){super("IntValue",n,a),this.datatype=this.util.dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#integer")}handle(n,a,s){return{terms:[this.util.dataFactory.literal(n.value,this.datatype)]}}};return qh.NodeValueHandlerInt=e,qh}var $h={},NF;function xAe(){if(NF)return $h;NF=1,Object.defineProperty($h,"__esModule",{value:!0}),$h.NodeValueHandlerList=void 0;const t=ws();let e=class extends t.NodeValueHandlerAdapter{constructor(n,a){super("ListValue",n,a),this.nodeFirst=this.util.dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#first"),this.nodeRest=this.util.dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#rest"),this.nodeNil=this.util.dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#nil")}handle(n,a,s){const o=[];let u=[];for(const c of n.values){const l=this.util.handleNodeValue(c,a,s);for(const d of l.terms)o.push(d);l.auxiliaryPatterns&&(u=u.concat(l.auxiliaryPatterns))}if(this.settings.arraysToRdfLists){const c=this.util.dataFactory.blankNode();let l=c,d=o.length;for(const f of o){u.push(this.util.operationFactory.createPattern(l,this.nodeFirst,f,s.graph));const h=--d===0?this.nodeNil:this.util.dataFactory.blankNode();u.push(this.util.operationFactory.createPattern(l,this.nodeRest,h,s.graph)),l=h}return{terms:[c],auxiliaryPatterns:u}}else return{terms:o,auxiliaryPatterns:u}}};return $h.NodeValueHandlerList=e,$h}var Uh={},DF;function IAe(){if(DF)return Uh;DF=1,Object.defineProperty(Uh,"__esModule",{value:!0}),Uh.NodeValueHandlerNull=void 0;const t=ws();let e=class extends t.NodeValueHandlerAdapter{constructor(n,a){super("NullValue",n,a),this.nil=this.util.dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#nil")}handle(n,a,s){return{terms:[this.nil]}}};return Uh.NodeValueHandlerNull=e,Uh}var kh={},CF;function PAe(){if(CF)return kh;CF=1,Object.defineProperty(kh,"__esModule",{value:!0}),kh.NodeValueHandlerObject=void 0;const t=ws();let e=class extends t.NodeValueHandlerAdapter{constructor(n,a){super("ObjectValue",n,a)}handle(n,a,s){const o=this.util.dataFactory.blankNode();let u=[];for(const c of n.fields){const l=this.util.handleNodeValue(c.value,a,s);for(const d of l.terms)u.push(this.util.createQuadPattern(o,c.name,d,s.graph,s.context));l.auxiliaryPatterns&&(u=u.concat(l.auxiliaryPatterns))}return{terms:[o],auxiliaryPatterns:u}}};return kh.NodeValueHandlerObject=e,kh}var Vh={},LF;function NAe(){if(LF)return Vh;LF=1,Object.defineProperty(Vh,"__esModule",{value:!0}),Vh.NodeValueHandlerString=void 0;const t=ws();let e=class extends t.NodeValueHandlerAdapter{constructor(n,a){super("StringValue",n,a)}handle(n,a,s){const o=s.context.getContextRaw()[a];let u,c;return o&&typeof o!="string"&&(o["@language"]?u=o["@language"]:o["@type"]&&(c=this.util.dataFactory.namedNode(o["@type"]))),{terms:[this.util.dataFactory.literal(n.value,u||c)]}}};return Vh.NodeValueHandlerString=e,Vh}var Hh={},jF;function DAe(){if(jF)return Hh;jF=1,Object.defineProperty(Hh,"__esModule",{value:!0}),Hh.NodeValueHandlerVariable=void 0;const t=ws();let e=class extends t.NodeValueHandlerAdapter{constructor(n,a){super("Variable",n,a)}handle(n,a,s){const o=n.name.value,u=s.variablesDict[o],c=s.variablesMetaDict[o];if(!u){if(!s.ignoreUnknownVariables&&(!c||c.mandatory))throw new Error(`Undefined variable: ${o}`);{const l=this.util.dataFactory.variable(o);return s.terminalVariables.map(d=>d.value).indexOf(o)<0&&s.terminalVariables.push(l),{terms:[l]}}}if(u.kind==="Variable")throw new Error(`Variable refers to another variable: ${o}`);if(c)if(c.list){if(u.kind!=="ListValue")throw new Error(`Expected a list, but got ${u.kind} for ${o}`);if(c.type){const l=u;for(const d of l.values)if(d.kind!==c.type)throw new Error(`Expected ${c.type}, but got ${d.kind} for ${o}`)}}else c.type;return this.util.handleNodeValue(u,a,s)}};return Hh.NodeValueHandlerVariable=e,Hh}var MF;function CAe(){return MF||(MF=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s),Object.defineProperty(n,o,{enumerable:!0,get:function(){return a[s]}})}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(ws(),t),r(EAe(),t),r(AAe(),t),r(OAe(),t),r(RAe(),t),r(xAe(),t),r(IAe(),t),r(PAe(),t),r(NAe(),t),r(DAe(),t)}(R3)),R3}var Qh={},FF;function lT(){if(FF)return Qh;FF=1,Object.defineProperty(Qh,"__esModule",{value:!0}),Qh.NodeHandlerAdapter=void 0;let t=class{constructor(r,n,a){this.targetKind=r,this.util=n,this.settings=a}getNodeQuadContextSelectionSet(r,n,a){const s={};if(r){for(const o of r.selections)if(o.kind==="Field"){const u=o;this.handleNodeQuadContextField(u,a,s,"id","subject"),this.handleNodeQuadContextField(u,a,s,"graph","graph")}}return s}handleNodeQuadContextField(r,n,a,s,o){if(!a[o]&&r.name.value===s){if(!a[o]){const u=this.util.getArgument(r.arguments,"_");if(u){const c=this.util.handleNodeValue(u.value,r.name.value,n);if(c.terms.length!==1)throw new Error(`Only single values can be set as ${s}, but got ${c.terms.length} at ${r.name.value}`);a[o]=c.terms[0],c.auxiliaryPatterns&&(a.auxiliaryPatterns||(a.auxiliaryPatterns=[]),a.auxiliaryPatterns.concat(c.auxiliaryPatterns))}}if(!a[o]){const u=this.util.nameToVariable(this.util.getFieldLabel(r),n);n.terminalVariables.push(u),a[o]=u}}}getDirectiveOutputs(r,n,a){const s=[];if(r)for(const o of r){const u=this.util.handleDirectiveNode({directive:o,fieldLabel:n},a);if(u){if(u.ignore)return null;s.push(u)}}return s}handleDirectiveOutputs(r,n){for(const a of r){if(a.ignore)return this.util.operationFactory.createBgp([]);a.operationOverrider&&(n=a.operationOverrider(n))}return n}};return Qh.NodeHandlerAdapter=t,Qh}var zh={},BF;function VC(){if(BF)return zh;BF=1,Object.defineProperty(zh,"__esModule",{value:!0}),zh.NodeHandlerDefinitionAdapter=void 0;const t=lT();let e=class extends t.NodeHandlerAdapter{constructor(n,a,s){super(n,a,s)}};return zh.NodeHandlerDefinitionAdapter=e,zh}var Gh={},qF;function LAe(){if(qF)return Gh;qF=1,Object.defineProperty(Gh,"__esModule",{value:!0}),Gh.NodeHandlerDefinitionFragment=void 0;const t=VC();let e=class extends t.NodeHandlerDefinitionAdapter{constructor(n,a){super("FragmentDefinition",n,a)}handle(n,a){throw new Error("Illegal state: fragment definitions must be indexed and removed before processing")}};return Gh.NodeHandlerDefinitionFragment=e,Gh}var Wh={},$F;function jAe(){if($F)return Wh;$F=1,Object.defineProperty(Wh,"__esModule",{value:!0}),Wh.NodeHandlerDefinitionOperation=void 0;const t=VC();let e=class extends t.NodeHandlerDefinitionAdapter{constructor(n,a){super("OperationDefinition",n,a)}handle(n,a){if(n.operation!=="query")throw new Error("Unsupported definition operation: "+n.operation);if(n.variableDefinitions)for(const u of n.variableDefinitions){const c=u.variable.name.value;u.defaultValue&&(a.variablesDict[c]||(a.variablesDict[c]=u.defaultValue));let l=u.type;const d=l.kind==="NonNullType";d&&(l=l.type);const f=l.kind==="ListType";f&&(l=l.type);const h=l.name.value;a.variablesMetaDict[c]={mandatory:d,list:f,type:h}}const s=this.getDirectiveOutputs(n.directives,n.name?n.name.value:"",a);if(!s)return this.util.operationFactory.createBgp([]);const o=this.util.joinOperations(n.selectionSet.selections.map(u=>this.util.handleNode(u,a)));return this.handleDirectiveOutputs(s,o)}};return Wh.NodeHandlerDefinitionOperation=e,Wh}var Kh={},UF;function MAe(){if(UF)return Kh;UF=1,Object.defineProperty(Kh,"__esModule",{value:!0}),Kh.NodeHandlerDocument=void 0;const t=xt(),e=lT();let r=class extends e.NodeHandlerAdapter{constructor(a,s){super("Document",a,s)}handle(a,s){const o=a.definitions.map(c=>{const l=this.getNodeQuadContextDefinitionNode(c,Object.assign(Object.assign({},s),{ignoreUnknownVariables:!0})),d=Object.assign(Object.assign({},s),{graph:l.graph||s.graph,subject:l.subject||this.util.dataFactory.blankNode()});let f=this.util.handleNode(c,d);return l&&l.auxiliaryPatterns&&(f=this.util.joinOperations([f,this.util.operationFactory.createBgp(l.auxiliaryPatterns)])),f}),u=this.util.operationFactory.createProject(o.length===1?o[0]:this.util.operationFactory.createUnion(o),s.terminalVariables);return this.translateBlankNodesToVariables(u)}getNodeQuadContextDefinitionNode(a,s){if(a.kind==="OperationDefinition")return this.getNodeQuadContextSelectionSet(a.selectionSet,a.name?a.name.value:"",s);throw new Error(`Unsupported definition: ${a.kind}`)}translateBlankNodesToVariables(a){const s=this,o={},u=Array.from(a.variables).reduce((l,d)=>(l[d.value]=!0,l),{});return t.Util.mapOperation(a,{path:(l,d)=>({recurse:!1,result:d.createPath(c(l.subject),l.predicate,c(l.object),c(l.graph))}),pattern:(l,d)=>({recurse:!1,result:d.createPattern(c(l.subject),c(l.predicate),c(l.object),c(l.graph))})});function c(l){if(l.termType==="BlankNode"){let d=o[l.value];return d||(d=t.Util.createUniqueVariable(l.value,u,s.util.dataFactory),u[d.value]=!0,o[l.value]=d),d}return l}}};return Kh.NodeHandlerDocument=r,Kh}var Jh={},kF;function dT(){if(kF)return Jh;kF=1,Object.defineProperty(Jh,"__esModule",{value:!0}),Jh.NodeHandlerSelectionAdapter=void 0;const t=xt(),e=O1(),r=lT();let n=class extends r.NodeHandlerAdapter{constructor(s,o,u){super(s,o,u)}getNodeQuadContextFieldNode(s,o,u){return this.getNodeQuadContextSelectionSet(s.selectionSet,o,Object.assign(Object.assign({},u),{path:this.util.appendFieldToPath(u.path,o)}))}fieldToOperation(s,o,u,c){const l=u;let d=0,f;if((o.name.value==="id"||o.name.value==="graph")&&(u=!1,o.arguments))for(const E of o.arguments)E.name.value==="_"&&this.util.handleNodeValue(E.value,o.name.value,s);const h=this.util.getFieldLabel(o);if(s.singularizeState===e.SingularizeState.SINGLE&&(s.singularizeVariables[this.util.nameToVariable(h,s).value]=!0),u){const E=this.handleMetaField(s,h,c);if(E)return E}const p=c?[this.util.operationFactory.createBgp(c)]:[],m=this.getNodeQuadContextFieldNode(o,h,s);let y=m.subject||this.util.nameToVariable(h,s),g=m.graph||s.graph;m.auxiliaryPatterns&&p.push(this.util.operationFactory.createBgp(m.auxiliaryPatterns));let b=!0,v=null;if(u&&o.arguments&&o.arguments.length){for(const E of o.arguments)if(E.name.value==="_"){const O=this.util.handleNodeValue(E.value,o.name.value,s);v=O.terms,p.push(this.util.operationFactory.createBgp(O.terms.map(L=>this.util.createQuadPattern(s.subject,o.name,L,s.graph,s.context)))),O.auxiliaryPatterns&&p.push(this.util.operationFactory.createBgp(O.auxiliaryPatterns)),u=!1;break}else if(E.name.value==="graph"){const O=this.util.handleNodeValue(E.value,o.name.value,s);if(O.terms.length!==1)throw new Error(`Only single values can be set as graph, but got ${O.terms.length} at ${o.name.value}`);g=O.terms[0],s=Object.assign(Object.assign({},s),{graph:g}),O.auxiliaryPatterns&&p.push(this.util.operationFactory.createBgp(O.auxiliaryPatterns));break}else if(E.name.value==="alt"){let O=E.value;O.kind!=="ListValue"&&(O={kind:"ListValue",values:[O]}),p.push(this.util.createQuadPath(s.subject,o.name,O,y,s.graph,s.context)),b=!1;break}}if(u&&b&&p.push(this.util.operationFactory.createBgp([this.util.createQuadPattern(s.subject,o.name,y,s.graph,s.context)])),o.arguments&&o.arguments.length){for(const E of o.arguments)if(!(E.name.value==="_"||E.name.value==="graph"||E.name.value==="alt"))if(E.name.value==="first"){if(E.value.kind!=="IntValue")throw new Error("Invalid value type for 'first' argument: "+E.value.kind);f=parseInt(E.value.value,10)}else if(E.name.value==="offset"){if(E.value.kind!=="IntValue")throw new Error("Invalid value type for 'offset' argument: "+E.value.kind);d=parseInt(E.value.value,10)}else{const O=this.util.handleNodeValue(E.value,E.name.value,s);p.push(this.util.operationFactory.createBgp(O.terms.map(L=>this.util.createQuadPattern(y,E.name,L,s.graph,s.context)))),O.auxiliaryPatterns&&p.push(this.util.operationFactory.createBgp(O.auxiliaryPatterns))}}const _=this.getDirectiveOutputs(o.directives,h,s);if(!_)return this.util.operationFactory.createBgp([]);let w=this.util.joinOperations(p);if(o.selectionSet&&o.selectionSet.selections.length){if(v){if(v.length!==1)throw new Error(`Only single values can be set as id, but got ${v.length} at ${o.name.value}`);y=v[0]}const E=Object.assign(Object.assign(Object.assign({},s),l?{path:this.util.appendFieldToPath(s.path,h)}:{}),{graph:g,subject:l?y:s.subject});let O=!1;const L=o.selectionSet.selections.filter(x=>x.kind==="Field"&&x.name.value==="totalCount"?(O=!0,!1):!0);let F=this.util.joinOperations(p.concat(L.map(x=>this.util.handleNode(x,E))));if(O){const x=this.util.dataFactory.variable("var"+this.settings.expressionVariableCounter++),P=this.util.dataFactory.variable(y.value+this.settings.variableDelimiter+"totalCount"),j=this.util.operationFactory.createBoundAggregate(x,"count",this.util.operationFactory.createTermExpression(y),!1),N=this.util.operationFactory.createProject(this.util.operationFactory.createExtend(this.util.operationFactory.createGroup(w,[],[j]),P,this.util.operationFactory.createTermExpression(x)),[P]);s.terminalVariables.push(P),L.length?F=this.util.operationFactory.createJoin([this.util.operationFactory.createProject(F,[]),N]):F=N}w=F}else u&&y.termType==="Variable"&&s.terminalVariables.push(y);return(d||f)&&(w=this.util.operationFactory.createSlice(this.util.operationFactory.createProject(w,t.Util.inScopeVariables(w)),d,f)),this.handleDirectiveOutputs(_,w)}handleMetaField(s,o,u){if(o==="__typename"){const c=this.util.nameToVariable(o,s);return s.terminalVariables.push(c),this.util.operationFactory.createBgp([this.util.operationFactory.createPattern(s.subject,this.util.dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"),this.util.nameToVariable(o,s),s.graph)].concat(u||[]))}}};return Jh.NodeHandlerSelectionAdapter=n,Jh}var Xh={},VF;function FAe(){if(VF)return Xh;VF=1,Object.defineProperty(Xh,"__esModule",{value:!0}),Xh.NodeHandlerSelectionField=void 0;const t=dT();let e=class extends t.NodeHandlerSelectionAdapter{constructor(n,a){super("Field",n,a)}handle(n,a){return this.fieldToOperation(a,n,!0)}};return Xh.NodeHandlerSelectionField=e,Xh}var Yh={},HF;function BAe(){if(HF)return Yh;HF=1,Object.defineProperty(Yh,"__esModule",{value:!0}),Yh.NodeHandlerSelectionFragmentSpread=void 0;const t=dT();let e=class extends t.NodeHandlerSelectionAdapter{constructor(n,a){super("FragmentSpread",n,a)}handle(n,a){const s=a.fragmentDefinitions[n.name.value];if(!s)throw new Error("Undefined fragment definition: "+n.name.value);const o={alias:void 0,arguments:void 0,directives:s.directives,kind:"Field",name:n.name,selectionSet:s.selectionSet},u=[this.util.newTypePattern(a.subject,s.typeCondition,a)];return this.util.operationFactory.createLeftJoin(this.util.operationFactory.createBgp([]),this.fieldToOperation(a,o,!1,u))}};return Yh.NodeHandlerSelectionFragmentSpread=e,Yh}var Zh={},QF;function qAe(){if(QF)return Zh;QF=1,Object.defineProperty(Zh,"__esModule",{value:!0}),Zh.NodeHandlerSelectionInlineFragment=void 0;const t=dT();let e=class extends t.NodeHandlerSelectionAdapter{constructor(n,a){super("InlineFragment",n,a)}handle(n,a){const s={alias:void 0,arguments:void 0,directives:n.directives,kind:"Field",name:{kind:"Name",value:a.subject.value},selectionSet:n.selectionSet},o=n.typeCondition?[this.util.newTypePattern(a.subject,n.typeCondition,a)]:[];return this.util.operationFactory.createLeftJoin(this.util.operationFactory.createBgp([]),this.fieldToOperation(a,s,!1,o))}};return Zh.NodeHandlerSelectionInlineFragment=e,Zh}var zF;function CY(){return zF||(zF=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s),Object.defineProperty(n,o,{enumerable:!0,get:function(){return a[s]}})}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(DY(),t),r(CAe(),t),r(lT(),t),r(VC(),t),r(LAe(),t),r(jAe(),t),r(MAe(),t),r(dT(),t),r(FAe(),t),r(BAe(),t),r(qAe(),t)}(E3)),E3}var ep={},LY=typeof Symbol=="function"&&Symbol.toStringTag!=null?Symbol.toStringTag:"@@toStringTag",VP=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):void 0;function Lw(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Lw=function(r){return typeof r}:Lw=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Lw(t)}var $Ae=10,jY=2;function MY(t){return fT(t,[])}function fT(t,e){switch(Lw(t)){case"string":return JSON.stringify(t);case"function":return t.name?"[function ".concat(t.name,"]"):"[function]";case"object":return t===null?"null":UAe(t,e);default:return String(t)}}function UAe(t,e){if(e.indexOf(t)!==-1)return"[Circular]";var r=[].concat(e,[t]),n=HAe(t);if(n!==void 0){var a=n.call(t);if(a!==t)return typeof a=="string"?a:fT(a,r)}else if(Array.isArray(t))return VAe(t,r);return kAe(t,r)}function kAe(t,e){var r=Object.keys(t);if(r.length===0)return"{}";if(e.length>jY)return"["+QAe(t)+"]";var n=r.map(function(a){var s=fT(t[a],e);return a+": "+s});return"{ "+n.join(", ")+" }"}function VAe(t,e){if(t.length===0)return"[]";if(e.length>jY)return"[Array]";for(var r=Math.min($Ae,t.length),n=t.length-r,a=[],s=0;s1&&a.push("... ".concat(n," more items")),"["+a.join(", ")+"]"}function HAe(t){var e=t[String(VP)];if(typeof e=="function")return e;if(typeof t.inspect=="function")return t.inspect}function QAe(t){var e=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if(e==="Object"&&typeof t.constructor=="function"){var r=t.constructor.name;if(typeof r=="string"&&r!=="")return r}return e}function x3(t,e){var r=!!t;if(!r)throw new Error(e)}const zAe=function(e,r){return e instanceof r};function GF(t,e){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:"GraphQL request",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{line:1,column:1};typeof e=="string"||x3(0,"Body must be a string. Received: ".concat(MY(e),".")),this.body=e,this.name=r,this.locationOffset=n,this.locationOffset.line>0||x3(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||x3(0,"column in locationOffset is 1-indexed and must be positive.")}return GAe(t,[{key:LY,get:function(){return"Source"}}]),t}();function WAe(t){return zAe(t,HC)}function RS(t,e){for(var r=/\r\n|[\n\r]/g,n=1,a=e+1,s;(s=r.exec(t.body))&&s.index120){for(var h=Math.floor(c/80),p=c%80,m=[],y=0;y",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function Mw(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Mw=function(r){return typeof r}:Mw=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Mw(t)}function JAe(t){return Mw(t)=="object"&&t!==null}function Fw(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fw=function(r){return typeof r}:Fw=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Fw(t)}function KF(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function XAe(t){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function n3e(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function vb(t,e){return vb=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},vb(t,e)}function wb(t){return wb=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},wb(t)}var i3e=function(t){t3e(r,t);var e=r3e(r);function r(n,a,s,o,u,c,l){var d,f,h,p;ZAe(this,r),p=e.call(this,n),p.name="GraphQLError",p.originalError=c??void 0,p.nodes=XF(Array.isArray(a)?a:a?[a]:void 0);for(var m=[],y=0,g=(b=p.nodes)!==null&&b!==void 0?b:[];y0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),c!=null&&c.stack?(Object.defineProperty(A_(p),"stack",{value:c.stack,writable:!0,configurable:!0}),BY(p)):(Error.captureStackTrace?Error.captureStackTrace(A_(p),r):Object.defineProperty(A_(p),"stack",{value:Error().stack,writable:!0,configurable:!0}),p)}return e3e(r,[{key:"toString",value:function(){return a3e(this)}},{key:LY,get:function(){return"Object"}}]),r}(HP(Error));function XF(t){return t===void 0||t.length===0?void 0:t}function a3e(t){var e=t.message;if(t.nodes)for(var r=0,n=t.nodes;rthis.groupOperation(h,u))),l=this.clusterOperationsWithEqualSources(c);if(l.length===1){const h=l[0],p=e.ActorQueryOperation.getOperationSource(l[0][0]);return{...await this.moveSourceAnnotationUpwardsIfPossible(o,h,p,u),input:h}}if(l.length===c.length)return{...o,input:c};let d;switch(o.type){case r.Algebra.types.JOIN:d=n.createJoin.bind(n);break;case r.Algebra.types.UNION:d=n.createUnion.bind(n);break;case r.Algebra.types.ALT:d=n.createAlt.bind(n);break;case r.Algebra.types.SEQ:d=n.createSeq.bind(n);break;default:throw new Error(`Unsupported operation '${o.type}' detected while grouping sources`)}return await this.groupOperationMulti(l,d,u)}async groupOperationMulti(o,u,c){let l=!0;const d=await Promise.all(o.map(async f=>{const h=e.ActorQueryOperation.getOperationSource(f[0]),p=await this.moveSourceAnnotationUpwardsIfPossible(u(f,!0),f,h,c);return e.ActorQueryOperation.getOperationSource(p)&&(l=!1),p}));return u(d,l)}clusterOperationsWithEqualSources(o){const u=new Map,c=[];for(const d of o){const f=e.ActorQueryOperation.getOperationSource(d);f?(u.has(f)||u.set(f,[]),u.get(f).push(d)):c.push(d)}const l=[];c.length>0&&l.push(c);for(const[d,f]of u.entries())l.push(f.map(h=>e.ActorQueryOperation.assignOperationSource(h,d)));return l}async moveSourceAnnotationUpwardsIfPossible(o,u,c,l){if(c&&e.ActorQueryOperation.doesShapeAcceptOperation(await c.source.getSelectorShape(l),o)){this.logDebug(l,`Hoist ${u.length} source-specific operations into a single ${o.type} operation for ${c.source.toString()}`),o=e.ActorQueryOperation.assignOperationSource(o,c);for(const d of u)e.ActorQueryOperation.removeOperationSource(d)}return o}};return Ah.ActorOptimizeQueryOperationGroupSources=a,Ah}var hF;function pAe(){return hF||(hF=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(hAe(),t)}(_3)),_3}var b3={},Oh={},v3={},Rh={},pF;function yAe(){if(pF)return Rh;pF=1,Object.defineProperty(Rh,"__esModule",{value:!0}),Rh.ActorQueryParse=void 0;const t=st;let e=class extends t.Actor{constructor(n){super(n)}};return Rh.ActorQueryParse=e,Rh}var yF;function NY(){return yF||(yF=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(yAe(),t)}(v3)),v3}var mF;function mAe(){if(mF)return Oh;mF=1,Object.defineProperty(Oh,"__esModule",{value:!0}),Oh.ActorQueryParseSparql=void 0;const t=NY(),e=xt(),r=sl;let n=class extends t.ActorQueryParse{constructor(s){super(s),this.prefixes=Object.freeze(this.prefixes)}async test(s){if(s.queryFormat&&s.queryFormat.language!=="sparql")throw new Error("This actor can only parse SPARQL queries");return!0}async run(s){const u=new r.Parser({prefixes:this.prefixes,baseIRI:s.baseIRI,sparqlStar:!0}).parse(s.query);return{baseIRI:u.type==="query"?u.base:void 0,operation:(0,e.translate)(u,{quads:!0,prefixes:this.prefixes,blankToVariable:!0,baseIRI:s.baseIRI})}}};return Oh.ActorQueryParseSparql=n,Oh}var gF;function gAe(){return gF||(gF=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(mAe(),t)}(b3)),b3}var w3={},xh={},S3={},T3={},E3={},Ih={},_F;function Df(){if(_F)return Ih;_F=1,Object.defineProperty(Ih,"__esModule",{value:!0}),Ih.DirectiveNodeHandlerAdapter=void 0;let t=class{constructor(r,n,a){this.targetKind=r,this.util=n,this.settings=a}getDirectiveConditionalValue(r,n){const a=this.util.getArgument(r.arguments,"if");if(!a)throw new Error(`The directive ${r.name.value} is missing an if-argument.`);const s=this.util.handleNodeValue(a.value,a.name.value,n);if(s.terms.length!==1)throw new Error(`Can not apply the directive ${r.name.value} with a list.`);return s.terms[0]}isDirectiveScopeAll(r){const n=this.util.getArgument(r.arguments,"scope");return n&&n.value.kind==="EnumValue"&&n.value.value==="all"}};return Ih.DirectiveNodeHandlerAdapter=t,Ih}var Ph={},bF;function _Ae(){if(bF)return Ph;bF=1,Object.defineProperty(Ph,"__esModule",{value:!0}),Ph.DirectiveNodeHandlerInclude=void 0;const t=Df();let e=class extends t.DirectiveNodeHandlerAdapter{constructor(n,a){super("include",n,a)}handle(n,a){const s=this.getDirectiveConditionalValue(n.directive,a);return s.termType==="Literal"&&s.value==="false"?{ignore:!0}:{}}};return Ph.DirectiveNodeHandlerInclude=e,Ph}var Nh={},vF;function bAe(){if(vF)return Nh;vF=1,Object.defineProperty(Nh,"__esModule",{value:!0}),Nh.DirectiveNodeHandlerOptional=void 0;const t=Df();let e=class extends t.DirectiveNodeHandlerAdapter{constructor(n,a){super("optional",n,a)}handle(n,a){return{operationOverrider:s=>this.util.operationFactory.createLeftJoin(this.util.operationFactory.createBgp([]),s)}}};return Nh.DirectiveNodeHandlerOptional=e,Nh}var Dh={},A3={},wF;function O1(){return wF||(wF=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.SingularizeState=void 0,function(e){e[e.SINGLE=0]="SINGLE",e[e.PLURAL=1]="PLURAL"}(t.SingularizeState||(t.SingularizeState={}))}(A3)),A3}var SF;function vAe(){if(SF)return Dh;SF=1,Object.defineProperty(Dh,"__esModule",{value:!0}),Dh.DirectiveNodeHandlerPlural=void 0;const t=O1(),e=Df();let r=class extends e.DirectiveNodeHandlerAdapter{constructor(a,s){super("plural",a,s)}handle(a,s){return this.isDirectiveScopeAll(a.directive)&&(s.singularizeState=t.SingularizeState.PLURAL),delete s.singularizeVariables[this.util.nameToVariable(a.fieldLabel,s).value],{}}};return Dh.DirectiveNodeHandlerPlural=r,Dh}var Ch={},TF;function wAe(){if(TF)return Ch;TF=1,Object.defineProperty(Ch,"__esModule",{value:!0}),Ch.DirectiveNodeHandlerSingle=void 0;const t=O1(),e=Df();let r=class extends e.DirectiveNodeHandlerAdapter{constructor(a,s){super("single",a,s)}handle(a,s){return this.isDirectiveScopeAll(a.directive)&&(s.singularizeState=t.SingularizeState.SINGLE),s.singularizeVariables[this.util.nameToVariable(a.fieldLabel,s).value]=!0,{}}};return Ch.DirectiveNodeHandlerSingle=r,Ch}var Lh={},EF;function SAe(){if(EF)return Lh;EF=1,Object.defineProperty(Lh,"__esModule",{value:!0}),Lh.DirectiveNodeHandlerSkip=void 0;const t=Df();let e=class extends t.DirectiveNodeHandlerAdapter{constructor(n,a){super("skip",n,a)}handle(n,a){const s=this.getDirectiveConditionalValue(n.directive,a);return s.termType==="Literal"&&s.value==="true"?{ignore:!0}:{}}};return Lh.DirectiveNodeHandlerSkip=e,Lh}var AF;function DY(){return AF||(AF=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s),Object.defineProperty(n,o,{enumerable:!0,get:function(){return a[s]}})}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Df(),t),r(_Ae(),t),r(bAe(),t),r(vAe(),t),r(wAe(),t),r(SAe(),t)}(E3)),E3}var O3={},jh={},OF;function ws(){if(OF)return jh;OF=1,Object.defineProperty(jh,"__esModule",{value:!0}),jh.NodeValueHandlerAdapter=void 0;let t=class{constructor(r,n,a){this.targetKind=r,this.util=n,this.settings=a}};return jh.NodeValueHandlerAdapter=t,jh}var Mh={},RF;function TAe(){if(RF)return Mh;RF=1,Object.defineProperty(Mh,"__esModule",{value:!0}),Mh.NodeValueHandlerBoolean=void 0;const t=ws();let e=class extends t.NodeValueHandlerAdapter{constructor(n,a){super("BooleanValue",n,a),this.datatype=this.util.dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#boolean")}handle(n,a,s){return{terms:[this.util.dataFactory.literal(n.value?"true":"false",this.datatype)]}}};return Mh.NodeValueHandlerBoolean=e,Mh}var Fh={},xF;function EAe(){if(xF)return Fh;xF=1,Object.defineProperty(Fh,"__esModule",{value:!0}),Fh.NodeValueHandlerEnum=void 0;const t=ws();let e=class extends t.NodeValueHandlerAdapter{constructor(n,a){super("EnumValue",n,a)}handle(n,a,s){return{terms:[this.util.valueToNamedNode(n.value,s.context)]}}};return Fh.NodeValueHandlerEnum=e,Fh}var Bh={},IF;function AAe(){if(IF)return Bh;IF=1,Object.defineProperty(Bh,"__esModule",{value:!0}),Bh.NodeValueHandlerFloat=void 0;const t=ws();let e=class extends t.NodeValueHandlerAdapter{constructor(n,a){super("FloatValue",n,a),this.datatype=this.util.dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#float")}handle(n,a,s){return{terms:[this.util.dataFactory.literal(n.value,this.datatype)]}}};return Bh.NodeValueHandlerFloat=e,Bh}var qh={},PF;function OAe(){if(PF)return qh;PF=1,Object.defineProperty(qh,"__esModule",{value:!0}),qh.NodeValueHandlerInt=void 0;const t=ws();let e=class extends t.NodeValueHandlerAdapter{constructor(n,a){super("IntValue",n,a),this.datatype=this.util.dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#integer")}handle(n,a,s){return{terms:[this.util.dataFactory.literal(n.value,this.datatype)]}}};return qh.NodeValueHandlerInt=e,qh}var $h={},NF;function RAe(){if(NF)return $h;NF=1,Object.defineProperty($h,"__esModule",{value:!0}),$h.NodeValueHandlerList=void 0;const t=ws();let e=class extends t.NodeValueHandlerAdapter{constructor(n,a){super("ListValue",n,a),this.nodeFirst=this.util.dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#first"),this.nodeRest=this.util.dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#rest"),this.nodeNil=this.util.dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#nil")}handle(n,a,s){const o=[];let u=[];for(const c of n.values){const l=this.util.handleNodeValue(c,a,s);for(const d of l.terms)o.push(d);l.auxiliaryPatterns&&(u=u.concat(l.auxiliaryPatterns))}if(this.settings.arraysToRdfLists){const c=this.util.dataFactory.blankNode();let l=c,d=o.length;for(const f of o){u.push(this.util.operationFactory.createPattern(l,this.nodeFirst,f,s.graph));const h=--d===0?this.nodeNil:this.util.dataFactory.blankNode();u.push(this.util.operationFactory.createPattern(l,this.nodeRest,h,s.graph)),l=h}return{terms:[c],auxiliaryPatterns:u}}else return{terms:o,auxiliaryPatterns:u}}};return $h.NodeValueHandlerList=e,$h}var Uh={},DF;function xAe(){if(DF)return Uh;DF=1,Object.defineProperty(Uh,"__esModule",{value:!0}),Uh.NodeValueHandlerNull=void 0;const t=ws();let e=class extends t.NodeValueHandlerAdapter{constructor(n,a){super("NullValue",n,a),this.nil=this.util.dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#nil")}handle(n,a,s){return{terms:[this.nil]}}};return Uh.NodeValueHandlerNull=e,Uh}var kh={},CF;function IAe(){if(CF)return kh;CF=1,Object.defineProperty(kh,"__esModule",{value:!0}),kh.NodeValueHandlerObject=void 0;const t=ws();let e=class extends t.NodeValueHandlerAdapter{constructor(n,a){super("ObjectValue",n,a)}handle(n,a,s){const o=this.util.dataFactory.blankNode();let u=[];for(const c of n.fields){const l=this.util.handleNodeValue(c.value,a,s);for(const d of l.terms)u.push(this.util.createQuadPattern(o,c.name,d,s.graph,s.context));l.auxiliaryPatterns&&(u=u.concat(l.auxiliaryPatterns))}return{terms:[o],auxiliaryPatterns:u}}};return kh.NodeValueHandlerObject=e,kh}var Vh={},LF;function PAe(){if(LF)return Vh;LF=1,Object.defineProperty(Vh,"__esModule",{value:!0}),Vh.NodeValueHandlerString=void 0;const t=ws();let e=class extends t.NodeValueHandlerAdapter{constructor(n,a){super("StringValue",n,a)}handle(n,a,s){const o=s.context.getContextRaw()[a];let u,c;return o&&typeof o!="string"&&(o["@language"]?u=o["@language"]:o["@type"]&&(c=this.util.dataFactory.namedNode(o["@type"]))),{terms:[this.util.dataFactory.literal(n.value,u||c)]}}};return Vh.NodeValueHandlerString=e,Vh}var Hh={},jF;function NAe(){if(jF)return Hh;jF=1,Object.defineProperty(Hh,"__esModule",{value:!0}),Hh.NodeValueHandlerVariable=void 0;const t=ws();let e=class extends t.NodeValueHandlerAdapter{constructor(n,a){super("Variable",n,a)}handle(n,a,s){const o=n.name.value,u=s.variablesDict[o],c=s.variablesMetaDict[o];if(!u){if(!s.ignoreUnknownVariables&&(!c||c.mandatory))throw new Error(`Undefined variable: ${o}`);{const l=this.util.dataFactory.variable(o);return s.terminalVariables.map(d=>d.value).indexOf(o)<0&&s.terminalVariables.push(l),{terms:[l]}}}if(u.kind==="Variable")throw new Error(`Variable refers to another variable: ${o}`);if(c)if(c.list){if(u.kind!=="ListValue")throw new Error(`Expected a list, but got ${u.kind} for ${o}`);if(c.type){const l=u;for(const d of l.values)if(d.kind!==c.type)throw new Error(`Expected ${c.type}, but got ${d.kind} for ${o}`)}}else c.type;return this.util.handleNodeValue(u,a,s)}};return Hh.NodeValueHandlerVariable=e,Hh}var MF;function DAe(){return MF||(MF=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s),Object.defineProperty(n,o,{enumerable:!0,get:function(){return a[s]}})}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(ws(),t),r(TAe(),t),r(EAe(),t),r(AAe(),t),r(OAe(),t),r(RAe(),t),r(xAe(),t),r(IAe(),t),r(PAe(),t),r(NAe(),t)}(O3)),O3}var Qh={},FF;function cT(){if(FF)return Qh;FF=1,Object.defineProperty(Qh,"__esModule",{value:!0}),Qh.NodeHandlerAdapter=void 0;let t=class{constructor(r,n,a){this.targetKind=r,this.util=n,this.settings=a}getNodeQuadContextSelectionSet(r,n,a){const s={};if(r){for(const o of r.selections)if(o.kind==="Field"){const u=o;this.handleNodeQuadContextField(u,a,s,"id","subject"),this.handleNodeQuadContextField(u,a,s,"graph","graph")}}return s}handleNodeQuadContextField(r,n,a,s,o){if(!a[o]&&r.name.value===s){if(!a[o]){const u=this.util.getArgument(r.arguments,"_");if(u){const c=this.util.handleNodeValue(u.value,r.name.value,n);if(c.terms.length!==1)throw new Error(`Only single values can be set as ${s}, but got ${c.terms.length} at ${r.name.value}`);a[o]=c.terms[0],c.auxiliaryPatterns&&(a.auxiliaryPatterns||(a.auxiliaryPatterns=[]),a.auxiliaryPatterns.concat(c.auxiliaryPatterns))}}if(!a[o]){const u=this.util.nameToVariable(this.util.getFieldLabel(r),n);n.terminalVariables.push(u),a[o]=u}}}getDirectiveOutputs(r,n,a){const s=[];if(r)for(const o of r){const u=this.util.handleDirectiveNode({directive:o,fieldLabel:n},a);if(u){if(u.ignore)return null;s.push(u)}}return s}handleDirectiveOutputs(r,n){for(const a of r){if(a.ignore)return this.util.operationFactory.createBgp([]);a.operationOverrider&&(n=a.operationOverrider(n))}return n}};return Qh.NodeHandlerAdapter=t,Qh}var zh={},BF;function VC(){if(BF)return zh;BF=1,Object.defineProperty(zh,"__esModule",{value:!0}),zh.NodeHandlerDefinitionAdapter=void 0;const t=cT();let e=class extends t.NodeHandlerAdapter{constructor(n,a,s){super(n,a,s)}};return zh.NodeHandlerDefinitionAdapter=e,zh}var Gh={},qF;function CAe(){if(qF)return Gh;qF=1,Object.defineProperty(Gh,"__esModule",{value:!0}),Gh.NodeHandlerDefinitionFragment=void 0;const t=VC();let e=class extends t.NodeHandlerDefinitionAdapter{constructor(n,a){super("FragmentDefinition",n,a)}handle(n,a){throw new Error("Illegal state: fragment definitions must be indexed and removed before processing")}};return Gh.NodeHandlerDefinitionFragment=e,Gh}var Wh={},$F;function LAe(){if($F)return Wh;$F=1,Object.defineProperty(Wh,"__esModule",{value:!0}),Wh.NodeHandlerDefinitionOperation=void 0;const t=VC();let e=class extends t.NodeHandlerDefinitionAdapter{constructor(n,a){super("OperationDefinition",n,a)}handle(n,a){if(n.operation!=="query")throw new Error("Unsupported definition operation: "+n.operation);if(n.variableDefinitions)for(const u of n.variableDefinitions){const c=u.variable.name.value;u.defaultValue&&(a.variablesDict[c]||(a.variablesDict[c]=u.defaultValue));let l=u.type;const d=l.kind==="NonNullType";d&&(l=l.type);const f=l.kind==="ListType";f&&(l=l.type);const h=l.name.value;a.variablesMetaDict[c]={mandatory:d,list:f,type:h}}const s=this.getDirectiveOutputs(n.directives,n.name?n.name.value:"",a);if(!s)return this.util.operationFactory.createBgp([]);const o=this.util.joinOperations(n.selectionSet.selections.map(u=>this.util.handleNode(u,a)));return this.handleDirectiveOutputs(s,o)}};return Wh.NodeHandlerDefinitionOperation=e,Wh}var Kh={},UF;function jAe(){if(UF)return Kh;UF=1,Object.defineProperty(Kh,"__esModule",{value:!0}),Kh.NodeHandlerDocument=void 0;const t=xt(),e=cT();let r=class extends e.NodeHandlerAdapter{constructor(a,s){super("Document",a,s)}handle(a,s){const o=a.definitions.map(c=>{const l=this.getNodeQuadContextDefinitionNode(c,Object.assign(Object.assign({},s),{ignoreUnknownVariables:!0})),d=Object.assign(Object.assign({},s),{graph:l.graph||s.graph,subject:l.subject||this.util.dataFactory.blankNode()});let f=this.util.handleNode(c,d);return l&&l.auxiliaryPatterns&&(f=this.util.joinOperations([f,this.util.operationFactory.createBgp(l.auxiliaryPatterns)])),f}),u=this.util.operationFactory.createProject(o.length===1?o[0]:this.util.operationFactory.createUnion(o),s.terminalVariables);return this.translateBlankNodesToVariables(u)}getNodeQuadContextDefinitionNode(a,s){if(a.kind==="OperationDefinition")return this.getNodeQuadContextSelectionSet(a.selectionSet,a.name?a.name.value:"",s);throw new Error(`Unsupported definition: ${a.kind}`)}translateBlankNodesToVariables(a){const s=this,o={},u=Array.from(a.variables).reduce((l,d)=>(l[d.value]=!0,l),{});return t.Util.mapOperation(a,{path:(l,d)=>({recurse:!1,result:d.createPath(c(l.subject),l.predicate,c(l.object),c(l.graph))}),pattern:(l,d)=>({recurse:!1,result:d.createPattern(c(l.subject),c(l.predicate),c(l.object),c(l.graph))})});function c(l){if(l.termType==="BlankNode"){let d=o[l.value];return d||(d=t.Util.createUniqueVariable(l.value,u,s.util.dataFactory),u[d.value]=!0,o[l.value]=d),d}return l}}};return Kh.NodeHandlerDocument=r,Kh}var Jh={},kF;function lT(){if(kF)return Jh;kF=1,Object.defineProperty(Jh,"__esModule",{value:!0}),Jh.NodeHandlerSelectionAdapter=void 0;const t=xt(),e=O1(),r=cT();let n=class extends r.NodeHandlerAdapter{constructor(s,o,u){super(s,o,u)}getNodeQuadContextFieldNode(s,o,u){return this.getNodeQuadContextSelectionSet(s.selectionSet,o,Object.assign(Object.assign({},u),{path:this.util.appendFieldToPath(u.path,o)}))}fieldToOperation(s,o,u,c){const l=u;let d=0,f;if((o.name.value==="id"||o.name.value==="graph")&&(u=!1,o.arguments))for(const E of o.arguments)E.name.value==="_"&&this.util.handleNodeValue(E.value,o.name.value,s);const h=this.util.getFieldLabel(o);if(s.singularizeState===e.SingularizeState.SINGLE&&(s.singularizeVariables[this.util.nameToVariable(h,s).value]=!0),u){const E=this.handleMetaField(s,h,c);if(E)return E}const p=c?[this.util.operationFactory.createBgp(c)]:[],m=this.getNodeQuadContextFieldNode(o,h,s);let y=m.subject||this.util.nameToVariable(h,s),g=m.graph||s.graph;m.auxiliaryPatterns&&p.push(this.util.operationFactory.createBgp(m.auxiliaryPatterns));let b=!0,v=null;if(u&&o.arguments&&o.arguments.length){for(const E of o.arguments)if(E.name.value==="_"){const O=this.util.handleNodeValue(E.value,o.name.value,s);v=O.terms,p.push(this.util.operationFactory.createBgp(O.terms.map(L=>this.util.createQuadPattern(s.subject,o.name,L,s.graph,s.context)))),O.auxiliaryPatterns&&p.push(this.util.operationFactory.createBgp(O.auxiliaryPatterns)),u=!1;break}else if(E.name.value==="graph"){const O=this.util.handleNodeValue(E.value,o.name.value,s);if(O.terms.length!==1)throw new Error(`Only single values can be set as graph, but got ${O.terms.length} at ${o.name.value}`);g=O.terms[0],s=Object.assign(Object.assign({},s),{graph:g}),O.auxiliaryPatterns&&p.push(this.util.operationFactory.createBgp(O.auxiliaryPatterns));break}else if(E.name.value==="alt"){let O=E.value;O.kind!=="ListValue"&&(O={kind:"ListValue",values:[O]}),p.push(this.util.createQuadPath(s.subject,o.name,O,y,s.graph,s.context)),b=!1;break}}if(u&&b&&p.push(this.util.operationFactory.createBgp([this.util.createQuadPattern(s.subject,o.name,y,s.graph,s.context)])),o.arguments&&o.arguments.length){for(const E of o.arguments)if(!(E.name.value==="_"||E.name.value==="graph"||E.name.value==="alt"))if(E.name.value==="first"){if(E.value.kind!=="IntValue")throw new Error("Invalid value type for 'first' argument: "+E.value.kind);f=parseInt(E.value.value,10)}else if(E.name.value==="offset"){if(E.value.kind!=="IntValue")throw new Error("Invalid value type for 'offset' argument: "+E.value.kind);d=parseInt(E.value.value,10)}else{const O=this.util.handleNodeValue(E.value,E.name.value,s);p.push(this.util.operationFactory.createBgp(O.terms.map(L=>this.util.createQuadPattern(y,E.name,L,s.graph,s.context)))),O.auxiliaryPatterns&&p.push(this.util.operationFactory.createBgp(O.auxiliaryPatterns))}}const _=this.getDirectiveOutputs(o.directives,h,s);if(!_)return this.util.operationFactory.createBgp([]);let w=this.util.joinOperations(p);if(o.selectionSet&&o.selectionSet.selections.length){if(v){if(v.length!==1)throw new Error(`Only single values can be set as id, but got ${v.length} at ${o.name.value}`);y=v[0]}const E=Object.assign(Object.assign(Object.assign({},s),l?{path:this.util.appendFieldToPath(s.path,h)}:{}),{graph:g,subject:l?y:s.subject});let O=!1;const L=o.selectionSet.selections.filter(x=>x.kind==="Field"&&x.name.value==="totalCount"?(O=!0,!1):!0);let F=this.util.joinOperations(p.concat(L.map(x=>this.util.handleNode(x,E))));if(O){const x=this.util.dataFactory.variable("var"+this.settings.expressionVariableCounter++),P=this.util.dataFactory.variable(y.value+this.settings.variableDelimiter+"totalCount"),j=this.util.operationFactory.createBoundAggregate(x,"count",this.util.operationFactory.createTermExpression(y),!1),N=this.util.operationFactory.createProject(this.util.operationFactory.createExtend(this.util.operationFactory.createGroup(w,[],[j]),P,this.util.operationFactory.createTermExpression(x)),[P]);s.terminalVariables.push(P),L.length?F=this.util.operationFactory.createJoin([this.util.operationFactory.createProject(F,[]),N]):F=N}w=F}else u&&y.termType==="Variable"&&s.terminalVariables.push(y);return(d||f)&&(w=this.util.operationFactory.createSlice(this.util.operationFactory.createProject(w,t.Util.inScopeVariables(w)),d,f)),this.handleDirectiveOutputs(_,w)}handleMetaField(s,o,u){if(o==="__typename"){const c=this.util.nameToVariable(o,s);return s.terminalVariables.push(c),this.util.operationFactory.createBgp([this.util.operationFactory.createPattern(s.subject,this.util.dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"),this.util.nameToVariable(o,s),s.graph)].concat(u||[]))}}};return Jh.NodeHandlerSelectionAdapter=n,Jh}var Xh={},VF;function MAe(){if(VF)return Xh;VF=1,Object.defineProperty(Xh,"__esModule",{value:!0}),Xh.NodeHandlerSelectionField=void 0;const t=lT();let e=class extends t.NodeHandlerSelectionAdapter{constructor(n,a){super("Field",n,a)}handle(n,a){return this.fieldToOperation(a,n,!0)}};return Xh.NodeHandlerSelectionField=e,Xh}var Yh={},HF;function FAe(){if(HF)return Yh;HF=1,Object.defineProperty(Yh,"__esModule",{value:!0}),Yh.NodeHandlerSelectionFragmentSpread=void 0;const t=lT();let e=class extends t.NodeHandlerSelectionAdapter{constructor(n,a){super("FragmentSpread",n,a)}handle(n,a){const s=a.fragmentDefinitions[n.name.value];if(!s)throw new Error("Undefined fragment definition: "+n.name.value);const o={alias:void 0,arguments:void 0,directives:s.directives,kind:"Field",name:n.name,selectionSet:s.selectionSet},u=[this.util.newTypePattern(a.subject,s.typeCondition,a)];return this.util.operationFactory.createLeftJoin(this.util.operationFactory.createBgp([]),this.fieldToOperation(a,o,!1,u))}};return Yh.NodeHandlerSelectionFragmentSpread=e,Yh}var Zh={},QF;function BAe(){if(QF)return Zh;QF=1,Object.defineProperty(Zh,"__esModule",{value:!0}),Zh.NodeHandlerSelectionInlineFragment=void 0;const t=lT();let e=class extends t.NodeHandlerSelectionAdapter{constructor(n,a){super("InlineFragment",n,a)}handle(n,a){const s={alias:void 0,arguments:void 0,directives:n.directives,kind:"Field",name:{kind:"Name",value:a.subject.value},selectionSet:n.selectionSet},o=n.typeCondition?[this.util.newTypePattern(a.subject,n.typeCondition,a)]:[];return this.util.operationFactory.createLeftJoin(this.util.operationFactory.createBgp([]),this.fieldToOperation(a,s,!1,o))}};return Zh.NodeHandlerSelectionInlineFragment=e,Zh}var zF;function CY(){return zF||(zF=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s),Object.defineProperty(n,o,{enumerable:!0,get:function(){return a[s]}})}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(DY(),t),r(DAe(),t),r(cT(),t),r(VC(),t),r(CAe(),t),r(LAe(),t),r(jAe(),t),r(lT(),t),r(MAe(),t),r(FAe(),t),r(BAe(),t)}(T3)),T3}var ep={},LY=typeof Symbol=="function"&&Symbol.toStringTag!=null?Symbol.toStringTag:"@@toStringTag",VP=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):void 0;function Lw(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Lw=function(r){return typeof r}:Lw=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Lw(t)}var qAe=10,jY=2;function MY(t){return dT(t,[])}function dT(t,e){switch(Lw(t)){case"string":return JSON.stringify(t);case"function":return t.name?"[function ".concat(t.name,"]"):"[function]";case"object":return t===null?"null":$Ae(t,e);default:return String(t)}}function $Ae(t,e){if(e.indexOf(t)!==-1)return"[Circular]";var r=[].concat(e,[t]),n=VAe(t);if(n!==void 0){var a=n.call(t);if(a!==t)return typeof a=="string"?a:dT(a,r)}else if(Array.isArray(t))return kAe(t,r);return UAe(t,r)}function UAe(t,e){var r=Object.keys(t);if(r.length===0)return"{}";if(e.length>jY)return"["+HAe(t)+"]";var n=r.map(function(a){var s=dT(t[a],e);return a+": "+s});return"{ "+n.join(", ")+" }"}function kAe(t,e){if(t.length===0)return"[]";if(e.length>jY)return"[Array]";for(var r=Math.min(qAe,t.length),n=t.length-r,a=[],s=0;s1&&a.push("... ".concat(n," more items")),"["+a.join(", ")+"]"}function VAe(t){var e=t[String(VP)];if(typeof e=="function")return e;if(typeof t.inspect=="function")return t.inspect}function HAe(t){var e=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if(e==="Object"&&typeof t.constructor=="function"){var r=t.constructor.name;if(typeof r=="string"&&r!=="")return r}return e}function R3(t,e){var r=!!t;if(!r)throw new Error(e)}const QAe=function(e,r){return e instanceof r};function GF(t,e){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:"GraphQL request",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{line:1,column:1};typeof e=="string"||R3(0,"Body must be a string. Received: ".concat(MY(e),".")),this.body=e,this.name=r,this.locationOffset=n,this.locationOffset.line>0||R3(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||R3(0,"column in locationOffset is 1-indexed and must be positive.")}return zAe(t,[{key:LY,get:function(){return"Source"}}]),t}();function GAe(t){return QAe(t,HC)}function OS(t,e){for(var r=/\r\n|[\n\r]/g,n=1,a=e+1,s;(s=r.exec(t.body))&&s.index120){for(var h=Math.floor(c/80),p=c%80,m=[],y=0;y",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function Mw(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Mw=function(r){return typeof r}:Mw=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Mw(t)}function KAe(t){return Mw(t)=="object"&&t!==null}function Fw(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fw=function(r){return typeof r}:Fw=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Fw(t)}function KF(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function JAe(t){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function r3e(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function vb(t,e){return vb=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},vb(t,e)}function wb(t){return wb=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},wb(t)}var n3e=function(t){e3e(r,t);var e=t3e(r);function r(n,a,s,o,u,c,l){var d,f,h,p;YAe(this,r),p=e.call(this,n),p.name="GraphQLError",p.originalError=c??void 0,p.nodes=XF(Array.isArray(a)?a:a?[a]:void 0);for(var m=[],y=0,g=(b=p.nodes)!==null&&b!==void 0?b:[];y0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),c!=null&&c.stack?(Object.defineProperty(A_(p),"stack",{value:c.stack,writable:!0,configurable:!0}),BY(p)):(Error.captureStackTrace?Error.captureStackTrace(A_(p),r):Object.defineProperty(A_(p),"stack",{value:Error().stack,writable:!0,configurable:!0}),p)}return ZAe(r,[{key:"toString",value:function(){return i3e(this)}},{key:LY,get:function(){return"Object"}}]),r}(HP(Error));function XF(t){return t===void 0||t.length===0?void 0:t}function i3e(t){var e=t.message;if(t.nodes)for(var r=0,n=t.nodes;ra&&ZF(e[s-1]);)--s;return e.slice(a,s).join(` -`)}function ZF(t){for(var e=0;e1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=t.indexOf(` +`+QC(t.source,u)}return e}function Fi(t,e,r){return new n3e("Syntax Error: ".concat(r),void 0,t,[e])}function a3e(t,e){var r=!!t;if(!r)throw new Error(e??"Unexpected invariant triggered.")}function $Y(t){var e=t.prototype.toJSON;typeof e=="function"||a3e(0),t.prototype.inspect=e,VP&&(t.prototype[VP]=e)}var zC=function(){function t(r,n,a){this.start=r.start,this.end=n.end,this.startToken=r,this.endToken=n,this.source=a}var e=t.prototype;return e.toJSON=function(){return{start:this.start,end:this.end}},t}();$Y(zC);var Br=function(){function t(r,n,a,s,o,u,c){this.kind=r,this.start=n,this.end=a,this.line=s,this.column=o,this.value=c,this.prev=u,this.next=null}var e=t.prototype;return e.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},t}();$Y(Br);function YF(t){return t!=null&&typeof t.kind=="string"}function s3e(t){var e=t.split(/\r\n|[\n\r]/g),r=o3e(t);if(r!==0)for(var n=1;na&&ZF(e[s-1]);)--s;return e.slice(a,s).join(` +`)}function ZF(t){for(var e=0;e1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=t.indexOf(` `)===-1,a=t[0]===" "||t[0]===" ",s=t[t.length-1]==='"',o=t[t.length-1]==="\\",u=!n||s||o||r,c="";return u&&!(n&&a)&&(c+=` `+e),c+=e?t.replace(/\n/g,` `+e):t,u&&(c+=` -`),'"""'+c.replace(/"""/g,'\\"""')+'"""'}var UY=function(){function t(r){var n=new Br(Ve.SOF,0,0,0,0,null);this.source=r,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}var e=t.prototype;return e.advance=function(){this.lastToken=this.token;var n=this.token=this.lookahead();return n},e.lookahead=function(){var n=this.token;if(n.kind!==Ve.EOF)do{var a;n=(a=n.next)!==null&&a!==void 0?a:n.next=d3e(this,n)}while(n.kind===Ve.COMMENT);return n},t}();function l3e(t){return t===Ve.BANG||t===Ve.DOLLAR||t===Ve.AMP||t===Ve.PAREN_L||t===Ve.PAREN_R||t===Ve.SPREAD||t===Ve.COLON||t===Ve.EQUALS||t===Ve.AT||t===Ve.BRACKET_L||t===Ve.BRACKET_R||t===Ve.BRACE_L||t===Ve.PIPE||t===Ve.BRACE_R}function Zc(t){return isNaN(t)?Ve.EOF:t<127?JSON.stringify(String.fromCharCode(t)):'"\\u'.concat(("00"+t.toString(16).toUpperCase()).slice(-4),'"')}function d3e(t,e){for(var r=t.source,n=r.body,a=n.length,s=e.end;s31||o===9));return new Br(Ve.COMMENT,e,u,r,n,a,s.slice(e+1,u))}function p3e(t,e,r,n,a,s){var o=t.body,u=r,c=e,l=!1;if(u===45&&(u=o.charCodeAt(++c)),u===48){if(u=o.charCodeAt(++c),u>=48&&u<=57)throw Fi(t,c,"Invalid number, unexpected digit after 0: ".concat(Zc(u),"."))}else c=I3(t,c,u),u=o.charCodeAt(c);if(u===46&&(l=!0,u=o.charCodeAt(++c),c=I3(t,c,u),u=o.charCodeAt(c)),(u===69||u===101)&&(l=!0,u=o.charCodeAt(++c),(u===43||u===45)&&(u=o.charCodeAt(++c)),c=I3(t,c,u),u=o.charCodeAt(c)),u===46||b3e(u))throw Fi(t,c,"Invalid number, expected digit but got: ".concat(Zc(u),"."));return new Br(l?Ve.FLOAT:Ve.INT,e,c,n,a,s,o.slice(e,c))}function I3(t,e,r){var n=t.body,a=e,s=r;if(s>=48&&s<=57){do s=n.charCodeAt(++a);while(s>=48&&s<=57);return a}throw Fi(t,a,"Invalid number, expected digit but got: ".concat(Zc(s),"."))}function y3e(t,e,r,n,a){for(var s=t.body,o=e+1,u=o,c=0,l="";o=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:-1}function _3e(t,e,r,n,a){for(var s=t.body,o=s.length,u=e+1,c=0;u!==o&&!isNaN(c=s.charCodeAt(u))&&(c===95||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122);)++u;return new Br(Ve.NAME,e,u,r,n,a,s.slice(e,u))}function b3e(t){return t===95||t>=65&&t<=90||t>=97&&t<=122}var kY=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function v3e(t,e){var r=new GC(t,e);return r.parseDocument()}function w3e(t,e){var r=new GC(t,e);r.expectToken(Ve.SOF);var n=r.parseValueLiteral(!1);return r.expectToken(Ve.EOF),n}function S3e(t,e){var r=new GC(t,e);r.expectToken(Ve.SOF);var n=r.parseTypeReference();return r.expectToken(Ve.EOF),n}var GC=function(){function t(r,n){var a=WAe(r)?r:new HC(r);this._lexer=new UY(a),this._options=n}var e=t.prototype;return e.parseName=function(){var n=this.expectToken(Ve.NAME);return{kind:nt.NAME,value:n.value,loc:this.loc(n)}},e.parseDocument=function(){var n=this._lexer.token;return{kind:nt.DOCUMENT,definitions:this.many(Ve.SOF,this.parseDefinition,Ve.EOF),loc:this.loc(n)}},e.parseDefinition=function(){if(this.peek(Ve.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(Ve.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},e.parseOperationDefinition=function(){var n=this._lexer.token;if(this.peek(Ve.BRACE_L))return{kind:nt.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(n)};var a=this.parseOperationType(),s;return this.peek(Ve.NAME)&&(s=this.parseName()),{kind:nt.OPERATION_DEFINITION,operation:a,name:s,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}},e.parseOperationType=function(){var n=this.expectToken(Ve.NAME);switch(n.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(n)},e.parseVariableDefinitions=function(){return this.optionalMany(Ve.PAREN_L,this.parseVariableDefinition,Ve.PAREN_R)},e.parseVariableDefinition=function(){var n=this._lexer.token;return{kind:nt.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Ve.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Ve.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(n)}},e.parseVariable=function(){var n=this._lexer.token;return this.expectToken(Ve.DOLLAR),{kind:nt.VARIABLE,name:this.parseName(),loc:this.loc(n)}},e.parseSelectionSet=function(){var n=this._lexer.token;return{kind:nt.SELECTION_SET,selections:this.many(Ve.BRACE_L,this.parseSelection,Ve.BRACE_R),loc:this.loc(n)}},e.parseSelection=function(){return this.peek(Ve.SPREAD)?this.parseFragment():this.parseField()},e.parseField=function(){var n=this._lexer.token,a=this.parseName(),s,o;return this.expectOptionalToken(Ve.COLON)?(s=a,o=this.parseName()):o=a,{kind:nt.FIELD,alias:s,name:o,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Ve.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},e.parseArguments=function(n){var a=n?this.parseConstArgument:this.parseArgument;return this.optionalMany(Ve.PAREN_L,a,Ve.PAREN_R)},e.parseArgument=function(){var n=this._lexer.token,a=this.parseName();return this.expectToken(Ve.COLON),{kind:nt.ARGUMENT,name:a,value:this.parseValueLiteral(!1),loc:this.loc(n)}},e.parseConstArgument=function(){var n=this._lexer.token;return{kind:nt.ARGUMENT,name:this.parseName(),value:(this.expectToken(Ve.COLON),this.parseValueLiteral(!0)),loc:this.loc(n)}},e.parseFragment=function(){var n=this._lexer.token;this.expectToken(Ve.SPREAD);var a=this.expectOptionalKeyword("on");return!a&&this.peek(Ve.NAME)?{kind:nt.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(n)}:{kind:nt.INLINE_FRAGMENT,typeCondition:a?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}},e.parseFragmentDefinition=function(){var n,a=this._lexer.token;return this.expectKeyword("fragment"),((n=this._options)===null||n===void 0?void 0:n.experimentalFragmentVariables)===!0?{kind:nt.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(a)}:{kind:nt.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(a)}},e.parseFragmentName=function(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()},e.parseValueLiteral=function(n){var a=this._lexer.token;switch(a.kind){case Ve.BRACKET_L:return this.parseList(n);case Ve.BRACE_L:return this.parseObject(n);case Ve.INT:return this._lexer.advance(),{kind:nt.INT,value:a.value,loc:this.loc(a)};case Ve.FLOAT:return this._lexer.advance(),{kind:nt.FLOAT,value:a.value,loc:this.loc(a)};case Ve.STRING:case Ve.BLOCK_STRING:return this.parseStringLiteral();case Ve.NAME:switch(this._lexer.advance(),a.value){case"true":return{kind:nt.BOOLEAN,value:!0,loc:this.loc(a)};case"false":return{kind:nt.BOOLEAN,value:!1,loc:this.loc(a)};case"null":return{kind:nt.NULL,loc:this.loc(a)};default:return{kind:nt.ENUM,value:a.value,loc:this.loc(a)}}case Ve.DOLLAR:if(!n)return this.parseVariable();break}throw this.unexpected()},e.parseStringLiteral=function(){var n=this._lexer.token;return this._lexer.advance(),{kind:nt.STRING,value:n.value,block:n.kind===Ve.BLOCK_STRING,loc:this.loc(n)}},e.parseList=function(n){var a=this,s=this._lexer.token,o=function(){return a.parseValueLiteral(n)};return{kind:nt.LIST,values:this.any(Ve.BRACKET_L,o,Ve.BRACKET_R),loc:this.loc(s)}},e.parseObject=function(n){var a=this,s=this._lexer.token,o=function(){return a.parseObjectField(n)};return{kind:nt.OBJECT,fields:this.any(Ve.BRACE_L,o,Ve.BRACE_R),loc:this.loc(s)}},e.parseObjectField=function(n){var a=this._lexer.token,s=this.parseName();return this.expectToken(Ve.COLON),{kind:nt.OBJECT_FIELD,name:s,value:this.parseValueLiteral(n),loc:this.loc(a)}},e.parseDirectives=function(n){for(var a=[];this.peek(Ve.AT);)a.push(this.parseDirective(n));return a},e.parseDirective=function(n){var a=this._lexer.token;return this.expectToken(Ve.AT),{kind:nt.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(n),loc:this.loc(a)}},e.parseTypeReference=function(){var n=this._lexer.token,a;return this.expectOptionalToken(Ve.BRACKET_L)?(a=this.parseTypeReference(),this.expectToken(Ve.BRACKET_R),a={kind:nt.LIST_TYPE,type:a,loc:this.loc(n)}):a=this.parseNamedType(),this.expectOptionalToken(Ve.BANG)?{kind:nt.NON_NULL_TYPE,type:a,loc:this.loc(n)}:a},e.parseNamedType=function(){var n=this._lexer.token;return{kind:nt.NAMED_TYPE,name:this.parseName(),loc:this.loc(n)}},e.parseTypeSystemDefinition=function(){var n=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(n.kind===Ve.NAME)switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(n)},e.peekDescription=function(){return this.peek(Ve.STRING)||this.peek(Ve.BLOCK_STRING)},e.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},e.parseSchemaDefinition=function(){var n=this._lexer.token,a=this.parseDescription();this.expectKeyword("schema");var s=this.parseDirectives(!0),o=this.many(Ve.BRACE_L,this.parseOperationTypeDefinition,Ve.BRACE_R);return{kind:nt.SCHEMA_DEFINITION,description:a,directives:s,operationTypes:o,loc:this.loc(n)}},e.parseOperationTypeDefinition=function(){var n=this._lexer.token,a=this.parseOperationType();this.expectToken(Ve.COLON);var s=this.parseNamedType();return{kind:nt.OPERATION_TYPE_DEFINITION,operation:a,type:s,loc:this.loc(n)}},e.parseScalarTypeDefinition=function(){var n=this._lexer.token,a=this.parseDescription();this.expectKeyword("scalar");var s=this.parseName(),o=this.parseDirectives(!0);return{kind:nt.SCALAR_TYPE_DEFINITION,description:a,name:s,directives:o,loc:this.loc(n)}},e.parseObjectTypeDefinition=function(){var n=this._lexer.token,a=this.parseDescription();this.expectKeyword("type");var s=this.parseName(),o=this.parseImplementsInterfaces(),u=this.parseDirectives(!0),c=this.parseFieldsDefinition();return{kind:nt.OBJECT_TYPE_DEFINITION,description:a,name:s,interfaces:o,directives:u,fields:c,loc:this.loc(n)}},e.parseImplementsInterfaces=function(){var n;if(!this.expectOptionalKeyword("implements"))return[];if(((n=this._options)===null||n===void 0?void 0:n.allowLegacySDLImplementsInterfaces)===!0){var a=[];this.expectOptionalToken(Ve.AMP);do a.push(this.parseNamedType());while(this.expectOptionalToken(Ve.AMP)||this.peek(Ve.NAME));return a}return this.delimitedMany(Ve.AMP,this.parseNamedType)},e.parseFieldsDefinition=function(){var n;return((n=this._options)===null||n===void 0?void 0:n.allowLegacySDLEmptyFields)===!0&&this.peek(Ve.BRACE_L)&&this._lexer.lookahead().kind===Ve.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(Ve.BRACE_L,this.parseFieldDefinition,Ve.BRACE_R)},e.parseFieldDefinition=function(){var n=this._lexer.token,a=this.parseDescription(),s=this.parseName(),o=this.parseArgumentDefs();this.expectToken(Ve.COLON);var u=this.parseTypeReference(),c=this.parseDirectives(!0);return{kind:nt.FIELD_DEFINITION,description:a,name:s,arguments:o,type:u,directives:c,loc:this.loc(n)}},e.parseArgumentDefs=function(){return this.optionalMany(Ve.PAREN_L,this.parseInputValueDef,Ve.PAREN_R)},e.parseInputValueDef=function(){var n=this._lexer.token,a=this.parseDescription(),s=this.parseName();this.expectToken(Ve.COLON);var o=this.parseTypeReference(),u;this.expectOptionalToken(Ve.EQUALS)&&(u=this.parseValueLiteral(!0));var c=this.parseDirectives(!0);return{kind:nt.INPUT_VALUE_DEFINITION,description:a,name:s,type:o,defaultValue:u,directives:c,loc:this.loc(n)}},e.parseInterfaceTypeDefinition=function(){var n=this._lexer.token,a=this.parseDescription();this.expectKeyword("interface");var s=this.parseName(),o=this.parseImplementsInterfaces(),u=this.parseDirectives(!0),c=this.parseFieldsDefinition();return{kind:nt.INTERFACE_TYPE_DEFINITION,description:a,name:s,interfaces:o,directives:u,fields:c,loc:this.loc(n)}},e.parseUnionTypeDefinition=function(){var n=this._lexer.token,a=this.parseDescription();this.expectKeyword("union");var s=this.parseName(),o=this.parseDirectives(!0),u=this.parseUnionMemberTypes();return{kind:nt.UNION_TYPE_DEFINITION,description:a,name:s,directives:o,types:u,loc:this.loc(n)}},e.parseUnionMemberTypes=function(){return this.expectOptionalToken(Ve.EQUALS)?this.delimitedMany(Ve.PIPE,this.parseNamedType):[]},e.parseEnumTypeDefinition=function(){var n=this._lexer.token,a=this.parseDescription();this.expectKeyword("enum");var s=this.parseName(),o=this.parseDirectives(!0),u=this.parseEnumValuesDefinition();return{kind:nt.ENUM_TYPE_DEFINITION,description:a,name:s,directives:o,values:u,loc:this.loc(n)}},e.parseEnumValuesDefinition=function(){return this.optionalMany(Ve.BRACE_L,this.parseEnumValueDefinition,Ve.BRACE_R)},e.parseEnumValueDefinition=function(){var n=this._lexer.token,a=this.parseDescription(),s=this.parseName(),o=this.parseDirectives(!0);return{kind:nt.ENUM_VALUE_DEFINITION,description:a,name:s,directives:o,loc:this.loc(n)}},e.parseInputObjectTypeDefinition=function(){var n=this._lexer.token,a=this.parseDescription();this.expectKeyword("input");var s=this.parseName(),o=this.parseDirectives(!0),u=this.parseInputFieldsDefinition();return{kind:nt.INPUT_OBJECT_TYPE_DEFINITION,description:a,name:s,directives:o,fields:u,loc:this.loc(n)}},e.parseInputFieldsDefinition=function(){return this.optionalMany(Ve.BRACE_L,this.parseInputValueDef,Ve.BRACE_R)},e.parseTypeSystemExtension=function(){var n=this._lexer.lookahead();if(n.kind===Ve.NAME)switch(n.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(n)},e.parseSchemaExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var a=this.parseDirectives(!0),s=this.optionalMany(Ve.BRACE_L,this.parseOperationTypeDefinition,Ve.BRACE_R);if(a.length===0&&s.length===0)throw this.unexpected();return{kind:nt.SCHEMA_EXTENSION,directives:a,operationTypes:s,loc:this.loc(n)}},e.parseScalarTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var a=this.parseName(),s=this.parseDirectives(!0);if(s.length===0)throw this.unexpected();return{kind:nt.SCALAR_TYPE_EXTENSION,name:a,directives:s,loc:this.loc(n)}},e.parseObjectTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var a=this.parseName(),s=this.parseImplementsInterfaces(),o=this.parseDirectives(!0),u=this.parseFieldsDefinition();if(s.length===0&&o.length===0&&u.length===0)throw this.unexpected();return{kind:nt.OBJECT_TYPE_EXTENSION,name:a,interfaces:s,directives:o,fields:u,loc:this.loc(n)}},e.parseInterfaceTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var a=this.parseName(),s=this.parseImplementsInterfaces(),o=this.parseDirectives(!0),u=this.parseFieldsDefinition();if(s.length===0&&o.length===0&&u.length===0)throw this.unexpected();return{kind:nt.INTERFACE_TYPE_EXTENSION,name:a,interfaces:s,directives:o,fields:u,loc:this.loc(n)}},e.parseUnionTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var a=this.parseName(),s=this.parseDirectives(!0),o=this.parseUnionMemberTypes();if(s.length===0&&o.length===0)throw this.unexpected();return{kind:nt.UNION_TYPE_EXTENSION,name:a,directives:s,types:o,loc:this.loc(n)}},e.parseEnumTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var a=this.parseName(),s=this.parseDirectives(!0),o=this.parseEnumValuesDefinition();if(s.length===0&&o.length===0)throw this.unexpected();return{kind:nt.ENUM_TYPE_EXTENSION,name:a,directives:s,values:o,loc:this.loc(n)}},e.parseInputObjectTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var a=this.parseName(),s=this.parseDirectives(!0),o=this.parseInputFieldsDefinition();if(s.length===0&&o.length===0)throw this.unexpected();return{kind:nt.INPUT_OBJECT_TYPE_EXTENSION,name:a,directives:s,fields:o,loc:this.loc(n)}},e.parseDirectiveDefinition=function(){var n=this._lexer.token,a=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Ve.AT);var s=this.parseName(),o=this.parseArgumentDefs(),u=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var c=this.parseDirectiveLocations();return{kind:nt.DIRECTIVE_DEFINITION,description:a,name:s,arguments:o,repeatable:u,locations:c,loc:this.loc(n)}},e.parseDirectiveLocations=function(){return this.delimitedMany(Ve.PIPE,this.parseDirectiveLocation)},e.parseDirectiveLocation=function(){var n=this._lexer.token,a=this.parseName();if(kY[a.value]!==void 0)return a;throw this.unexpected(n)},e.loc=function(n){var a;if(((a=this._options)===null||a===void 0?void 0:a.noLocation)!==!0)return new zC(n,this._lexer.lastToken,this._lexer.source)},e.peek=function(n){return this._lexer.token.kind===n},e.expectToken=function(n){var a=this._lexer.token;if(a.kind===n)return this._lexer.advance(),a;throw Fi(this._lexer.source,a.start,"Expected ".concat(VY(n),", found ").concat(P3(a),"."))},e.expectOptionalToken=function(n){var a=this._lexer.token;if(a.kind===n)return this._lexer.advance(),a},e.expectKeyword=function(n){var a=this._lexer.token;if(a.kind===Ve.NAME&&a.value===n)this._lexer.advance();else throw Fi(this._lexer.source,a.start,'Expected "'.concat(n,'", found ').concat(P3(a),"."))},e.expectOptionalKeyword=function(n){var a=this._lexer.token;return a.kind===Ve.NAME&&a.value===n?(this._lexer.advance(),!0):!1},e.unexpected=function(n){var a=n??this._lexer.token;return Fi(this._lexer.source,a.start,"Unexpected ".concat(P3(a),"."))},e.any=function(n,a,s){this.expectToken(n);for(var o=[];!this.expectOptionalToken(s);)o.push(a.call(this));return o},e.optionalMany=function(n,a,s){if(this.expectOptionalToken(n)){var o=[];do o.push(a.call(this));while(!this.expectOptionalToken(s));return o}return[]},e.many=function(n,a,s){this.expectToken(n);var o=[];do o.push(a.call(this));while(!this.expectOptionalToken(s));return o},e.delimitedMany=function(n,a){this.expectOptionalToken(n);var s=[];do s.push(a.call(this));while(this.expectOptionalToken(n));return s},t}();function P3(t){var e=t.value;return VY(t.kind)+(e!=null?' "'.concat(e,'"'):"")}function VY(t){return l3e(t)?'"'.concat(t,'"'):t}var T3e={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},sd=Object.freeze({});function HY(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:T3e,n=void 0,a=Array.isArray(t),s=[t],o=-1,u=[],c=void 0,l=void 0,d=void 0,f=[],h=[],p=t;do{o++;var m=o===s.length,y=m&&u.length!==0;if(m){if(l=h.length===0?void 0:f[f.length-1],c=d,d=h.pop(),y){if(a)c=c.slice();else{for(var g={},b=0,v=Object.keys(c);b31||o===9));return new Br(Ve.COMMENT,e,u,r,n,a,s.slice(e+1,u))}function h3e(t,e,r,n,a,s){var o=t.body,u=r,c=e,l=!1;if(u===45&&(u=o.charCodeAt(++c)),u===48){if(u=o.charCodeAt(++c),u>=48&&u<=57)throw Fi(t,c,"Invalid number, unexpected digit after 0: ".concat(Zc(u),"."))}else c=x3(t,c,u),u=o.charCodeAt(c);if(u===46&&(l=!0,u=o.charCodeAt(++c),c=x3(t,c,u),u=o.charCodeAt(c)),(u===69||u===101)&&(l=!0,u=o.charCodeAt(++c),(u===43||u===45)&&(u=o.charCodeAt(++c)),c=x3(t,c,u),u=o.charCodeAt(c)),u===46||_3e(u))throw Fi(t,c,"Invalid number, expected digit but got: ".concat(Zc(u),"."));return new Br(l?Ve.FLOAT:Ve.INT,e,c,n,a,s,o.slice(e,c))}function x3(t,e,r){var n=t.body,a=e,s=r;if(s>=48&&s<=57){do s=n.charCodeAt(++a);while(s>=48&&s<=57);return a}throw Fi(t,a,"Invalid number, expected digit but got: ".concat(Zc(s),"."))}function p3e(t,e,r,n,a){for(var s=t.body,o=e+1,u=o,c=0,l="";o=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:-1}function g3e(t,e,r,n,a){for(var s=t.body,o=s.length,u=e+1,c=0;u!==o&&!isNaN(c=s.charCodeAt(u))&&(c===95||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122);)++u;return new Br(Ve.NAME,e,u,r,n,a,s.slice(e,u))}function _3e(t){return t===95||t>=65&&t<=90||t>=97&&t<=122}var kY=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function b3e(t,e){var r=new GC(t,e);return r.parseDocument()}function v3e(t,e){var r=new GC(t,e);r.expectToken(Ve.SOF);var n=r.parseValueLiteral(!1);return r.expectToken(Ve.EOF),n}function w3e(t,e){var r=new GC(t,e);r.expectToken(Ve.SOF);var n=r.parseTypeReference();return r.expectToken(Ve.EOF),n}var GC=function(){function t(r,n){var a=GAe(r)?r:new HC(r);this._lexer=new UY(a),this._options=n}var e=t.prototype;return e.parseName=function(){var n=this.expectToken(Ve.NAME);return{kind:nt.NAME,value:n.value,loc:this.loc(n)}},e.parseDocument=function(){var n=this._lexer.token;return{kind:nt.DOCUMENT,definitions:this.many(Ve.SOF,this.parseDefinition,Ve.EOF),loc:this.loc(n)}},e.parseDefinition=function(){if(this.peek(Ve.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(Ve.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},e.parseOperationDefinition=function(){var n=this._lexer.token;if(this.peek(Ve.BRACE_L))return{kind:nt.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(n)};var a=this.parseOperationType(),s;return this.peek(Ve.NAME)&&(s=this.parseName()),{kind:nt.OPERATION_DEFINITION,operation:a,name:s,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}},e.parseOperationType=function(){var n=this.expectToken(Ve.NAME);switch(n.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(n)},e.parseVariableDefinitions=function(){return this.optionalMany(Ve.PAREN_L,this.parseVariableDefinition,Ve.PAREN_R)},e.parseVariableDefinition=function(){var n=this._lexer.token;return{kind:nt.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Ve.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Ve.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(n)}},e.parseVariable=function(){var n=this._lexer.token;return this.expectToken(Ve.DOLLAR),{kind:nt.VARIABLE,name:this.parseName(),loc:this.loc(n)}},e.parseSelectionSet=function(){var n=this._lexer.token;return{kind:nt.SELECTION_SET,selections:this.many(Ve.BRACE_L,this.parseSelection,Ve.BRACE_R),loc:this.loc(n)}},e.parseSelection=function(){return this.peek(Ve.SPREAD)?this.parseFragment():this.parseField()},e.parseField=function(){var n=this._lexer.token,a=this.parseName(),s,o;return this.expectOptionalToken(Ve.COLON)?(s=a,o=this.parseName()):o=a,{kind:nt.FIELD,alias:s,name:o,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Ve.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},e.parseArguments=function(n){var a=n?this.parseConstArgument:this.parseArgument;return this.optionalMany(Ve.PAREN_L,a,Ve.PAREN_R)},e.parseArgument=function(){var n=this._lexer.token,a=this.parseName();return this.expectToken(Ve.COLON),{kind:nt.ARGUMENT,name:a,value:this.parseValueLiteral(!1),loc:this.loc(n)}},e.parseConstArgument=function(){var n=this._lexer.token;return{kind:nt.ARGUMENT,name:this.parseName(),value:(this.expectToken(Ve.COLON),this.parseValueLiteral(!0)),loc:this.loc(n)}},e.parseFragment=function(){var n=this._lexer.token;this.expectToken(Ve.SPREAD);var a=this.expectOptionalKeyword("on");return!a&&this.peek(Ve.NAME)?{kind:nt.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(n)}:{kind:nt.INLINE_FRAGMENT,typeCondition:a?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}},e.parseFragmentDefinition=function(){var n,a=this._lexer.token;return this.expectKeyword("fragment"),((n=this._options)===null||n===void 0?void 0:n.experimentalFragmentVariables)===!0?{kind:nt.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(a)}:{kind:nt.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(a)}},e.parseFragmentName=function(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()},e.parseValueLiteral=function(n){var a=this._lexer.token;switch(a.kind){case Ve.BRACKET_L:return this.parseList(n);case Ve.BRACE_L:return this.parseObject(n);case Ve.INT:return this._lexer.advance(),{kind:nt.INT,value:a.value,loc:this.loc(a)};case Ve.FLOAT:return this._lexer.advance(),{kind:nt.FLOAT,value:a.value,loc:this.loc(a)};case Ve.STRING:case Ve.BLOCK_STRING:return this.parseStringLiteral();case Ve.NAME:switch(this._lexer.advance(),a.value){case"true":return{kind:nt.BOOLEAN,value:!0,loc:this.loc(a)};case"false":return{kind:nt.BOOLEAN,value:!1,loc:this.loc(a)};case"null":return{kind:nt.NULL,loc:this.loc(a)};default:return{kind:nt.ENUM,value:a.value,loc:this.loc(a)}}case Ve.DOLLAR:if(!n)return this.parseVariable();break}throw this.unexpected()},e.parseStringLiteral=function(){var n=this._lexer.token;return this._lexer.advance(),{kind:nt.STRING,value:n.value,block:n.kind===Ve.BLOCK_STRING,loc:this.loc(n)}},e.parseList=function(n){var a=this,s=this._lexer.token,o=function(){return a.parseValueLiteral(n)};return{kind:nt.LIST,values:this.any(Ve.BRACKET_L,o,Ve.BRACKET_R),loc:this.loc(s)}},e.parseObject=function(n){var a=this,s=this._lexer.token,o=function(){return a.parseObjectField(n)};return{kind:nt.OBJECT,fields:this.any(Ve.BRACE_L,o,Ve.BRACE_R),loc:this.loc(s)}},e.parseObjectField=function(n){var a=this._lexer.token,s=this.parseName();return this.expectToken(Ve.COLON),{kind:nt.OBJECT_FIELD,name:s,value:this.parseValueLiteral(n),loc:this.loc(a)}},e.parseDirectives=function(n){for(var a=[];this.peek(Ve.AT);)a.push(this.parseDirective(n));return a},e.parseDirective=function(n){var a=this._lexer.token;return this.expectToken(Ve.AT),{kind:nt.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(n),loc:this.loc(a)}},e.parseTypeReference=function(){var n=this._lexer.token,a;return this.expectOptionalToken(Ve.BRACKET_L)?(a=this.parseTypeReference(),this.expectToken(Ve.BRACKET_R),a={kind:nt.LIST_TYPE,type:a,loc:this.loc(n)}):a=this.parseNamedType(),this.expectOptionalToken(Ve.BANG)?{kind:nt.NON_NULL_TYPE,type:a,loc:this.loc(n)}:a},e.parseNamedType=function(){var n=this._lexer.token;return{kind:nt.NAMED_TYPE,name:this.parseName(),loc:this.loc(n)}},e.parseTypeSystemDefinition=function(){var n=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(n.kind===Ve.NAME)switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(n)},e.peekDescription=function(){return this.peek(Ve.STRING)||this.peek(Ve.BLOCK_STRING)},e.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},e.parseSchemaDefinition=function(){var n=this._lexer.token,a=this.parseDescription();this.expectKeyword("schema");var s=this.parseDirectives(!0),o=this.many(Ve.BRACE_L,this.parseOperationTypeDefinition,Ve.BRACE_R);return{kind:nt.SCHEMA_DEFINITION,description:a,directives:s,operationTypes:o,loc:this.loc(n)}},e.parseOperationTypeDefinition=function(){var n=this._lexer.token,a=this.parseOperationType();this.expectToken(Ve.COLON);var s=this.parseNamedType();return{kind:nt.OPERATION_TYPE_DEFINITION,operation:a,type:s,loc:this.loc(n)}},e.parseScalarTypeDefinition=function(){var n=this._lexer.token,a=this.parseDescription();this.expectKeyword("scalar");var s=this.parseName(),o=this.parseDirectives(!0);return{kind:nt.SCALAR_TYPE_DEFINITION,description:a,name:s,directives:o,loc:this.loc(n)}},e.parseObjectTypeDefinition=function(){var n=this._lexer.token,a=this.parseDescription();this.expectKeyword("type");var s=this.parseName(),o=this.parseImplementsInterfaces(),u=this.parseDirectives(!0),c=this.parseFieldsDefinition();return{kind:nt.OBJECT_TYPE_DEFINITION,description:a,name:s,interfaces:o,directives:u,fields:c,loc:this.loc(n)}},e.parseImplementsInterfaces=function(){var n;if(!this.expectOptionalKeyword("implements"))return[];if(((n=this._options)===null||n===void 0?void 0:n.allowLegacySDLImplementsInterfaces)===!0){var a=[];this.expectOptionalToken(Ve.AMP);do a.push(this.parseNamedType());while(this.expectOptionalToken(Ve.AMP)||this.peek(Ve.NAME));return a}return this.delimitedMany(Ve.AMP,this.parseNamedType)},e.parseFieldsDefinition=function(){var n;return((n=this._options)===null||n===void 0?void 0:n.allowLegacySDLEmptyFields)===!0&&this.peek(Ve.BRACE_L)&&this._lexer.lookahead().kind===Ve.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(Ve.BRACE_L,this.parseFieldDefinition,Ve.BRACE_R)},e.parseFieldDefinition=function(){var n=this._lexer.token,a=this.parseDescription(),s=this.parseName(),o=this.parseArgumentDefs();this.expectToken(Ve.COLON);var u=this.parseTypeReference(),c=this.parseDirectives(!0);return{kind:nt.FIELD_DEFINITION,description:a,name:s,arguments:o,type:u,directives:c,loc:this.loc(n)}},e.parseArgumentDefs=function(){return this.optionalMany(Ve.PAREN_L,this.parseInputValueDef,Ve.PAREN_R)},e.parseInputValueDef=function(){var n=this._lexer.token,a=this.parseDescription(),s=this.parseName();this.expectToken(Ve.COLON);var o=this.parseTypeReference(),u;this.expectOptionalToken(Ve.EQUALS)&&(u=this.parseValueLiteral(!0));var c=this.parseDirectives(!0);return{kind:nt.INPUT_VALUE_DEFINITION,description:a,name:s,type:o,defaultValue:u,directives:c,loc:this.loc(n)}},e.parseInterfaceTypeDefinition=function(){var n=this._lexer.token,a=this.parseDescription();this.expectKeyword("interface");var s=this.parseName(),o=this.parseImplementsInterfaces(),u=this.parseDirectives(!0),c=this.parseFieldsDefinition();return{kind:nt.INTERFACE_TYPE_DEFINITION,description:a,name:s,interfaces:o,directives:u,fields:c,loc:this.loc(n)}},e.parseUnionTypeDefinition=function(){var n=this._lexer.token,a=this.parseDescription();this.expectKeyword("union");var s=this.parseName(),o=this.parseDirectives(!0),u=this.parseUnionMemberTypes();return{kind:nt.UNION_TYPE_DEFINITION,description:a,name:s,directives:o,types:u,loc:this.loc(n)}},e.parseUnionMemberTypes=function(){return this.expectOptionalToken(Ve.EQUALS)?this.delimitedMany(Ve.PIPE,this.parseNamedType):[]},e.parseEnumTypeDefinition=function(){var n=this._lexer.token,a=this.parseDescription();this.expectKeyword("enum");var s=this.parseName(),o=this.parseDirectives(!0),u=this.parseEnumValuesDefinition();return{kind:nt.ENUM_TYPE_DEFINITION,description:a,name:s,directives:o,values:u,loc:this.loc(n)}},e.parseEnumValuesDefinition=function(){return this.optionalMany(Ve.BRACE_L,this.parseEnumValueDefinition,Ve.BRACE_R)},e.parseEnumValueDefinition=function(){var n=this._lexer.token,a=this.parseDescription(),s=this.parseName(),o=this.parseDirectives(!0);return{kind:nt.ENUM_VALUE_DEFINITION,description:a,name:s,directives:o,loc:this.loc(n)}},e.parseInputObjectTypeDefinition=function(){var n=this._lexer.token,a=this.parseDescription();this.expectKeyword("input");var s=this.parseName(),o=this.parseDirectives(!0),u=this.parseInputFieldsDefinition();return{kind:nt.INPUT_OBJECT_TYPE_DEFINITION,description:a,name:s,directives:o,fields:u,loc:this.loc(n)}},e.parseInputFieldsDefinition=function(){return this.optionalMany(Ve.BRACE_L,this.parseInputValueDef,Ve.BRACE_R)},e.parseTypeSystemExtension=function(){var n=this._lexer.lookahead();if(n.kind===Ve.NAME)switch(n.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(n)},e.parseSchemaExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var a=this.parseDirectives(!0),s=this.optionalMany(Ve.BRACE_L,this.parseOperationTypeDefinition,Ve.BRACE_R);if(a.length===0&&s.length===0)throw this.unexpected();return{kind:nt.SCHEMA_EXTENSION,directives:a,operationTypes:s,loc:this.loc(n)}},e.parseScalarTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var a=this.parseName(),s=this.parseDirectives(!0);if(s.length===0)throw this.unexpected();return{kind:nt.SCALAR_TYPE_EXTENSION,name:a,directives:s,loc:this.loc(n)}},e.parseObjectTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var a=this.parseName(),s=this.parseImplementsInterfaces(),o=this.parseDirectives(!0),u=this.parseFieldsDefinition();if(s.length===0&&o.length===0&&u.length===0)throw this.unexpected();return{kind:nt.OBJECT_TYPE_EXTENSION,name:a,interfaces:s,directives:o,fields:u,loc:this.loc(n)}},e.parseInterfaceTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var a=this.parseName(),s=this.parseImplementsInterfaces(),o=this.parseDirectives(!0),u=this.parseFieldsDefinition();if(s.length===0&&o.length===0&&u.length===0)throw this.unexpected();return{kind:nt.INTERFACE_TYPE_EXTENSION,name:a,interfaces:s,directives:o,fields:u,loc:this.loc(n)}},e.parseUnionTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var a=this.parseName(),s=this.parseDirectives(!0),o=this.parseUnionMemberTypes();if(s.length===0&&o.length===0)throw this.unexpected();return{kind:nt.UNION_TYPE_EXTENSION,name:a,directives:s,types:o,loc:this.loc(n)}},e.parseEnumTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var a=this.parseName(),s=this.parseDirectives(!0),o=this.parseEnumValuesDefinition();if(s.length===0&&o.length===0)throw this.unexpected();return{kind:nt.ENUM_TYPE_EXTENSION,name:a,directives:s,values:o,loc:this.loc(n)}},e.parseInputObjectTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var a=this.parseName(),s=this.parseDirectives(!0),o=this.parseInputFieldsDefinition();if(s.length===0&&o.length===0)throw this.unexpected();return{kind:nt.INPUT_OBJECT_TYPE_EXTENSION,name:a,directives:s,fields:o,loc:this.loc(n)}},e.parseDirectiveDefinition=function(){var n=this._lexer.token,a=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Ve.AT);var s=this.parseName(),o=this.parseArgumentDefs(),u=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var c=this.parseDirectiveLocations();return{kind:nt.DIRECTIVE_DEFINITION,description:a,name:s,arguments:o,repeatable:u,locations:c,loc:this.loc(n)}},e.parseDirectiveLocations=function(){return this.delimitedMany(Ve.PIPE,this.parseDirectiveLocation)},e.parseDirectiveLocation=function(){var n=this._lexer.token,a=this.parseName();if(kY[a.value]!==void 0)return a;throw this.unexpected(n)},e.loc=function(n){var a;if(((a=this._options)===null||a===void 0?void 0:a.noLocation)!==!0)return new zC(n,this._lexer.lastToken,this._lexer.source)},e.peek=function(n){return this._lexer.token.kind===n},e.expectToken=function(n){var a=this._lexer.token;if(a.kind===n)return this._lexer.advance(),a;throw Fi(this._lexer.source,a.start,"Expected ".concat(VY(n),", found ").concat(I3(a),"."))},e.expectOptionalToken=function(n){var a=this._lexer.token;if(a.kind===n)return this._lexer.advance(),a},e.expectKeyword=function(n){var a=this._lexer.token;if(a.kind===Ve.NAME&&a.value===n)this._lexer.advance();else throw Fi(this._lexer.source,a.start,'Expected "'.concat(n,'", found ').concat(I3(a),"."))},e.expectOptionalKeyword=function(n){var a=this._lexer.token;return a.kind===Ve.NAME&&a.value===n?(this._lexer.advance(),!0):!1},e.unexpected=function(n){var a=n??this._lexer.token;return Fi(this._lexer.source,a.start,"Unexpected ".concat(I3(a),"."))},e.any=function(n,a,s){this.expectToken(n);for(var o=[];!this.expectOptionalToken(s);)o.push(a.call(this));return o},e.optionalMany=function(n,a,s){if(this.expectOptionalToken(n)){var o=[];do o.push(a.call(this));while(!this.expectOptionalToken(s));return o}return[]},e.many=function(n,a,s){this.expectToken(n);var o=[];do o.push(a.call(this));while(!this.expectOptionalToken(s));return o},e.delimitedMany=function(n,a){this.expectOptionalToken(n);var s=[];do s.push(a.call(this));while(this.expectOptionalToken(n));return s},t}();function I3(t){var e=t.value;return VY(t.kind)+(e!=null?' "'.concat(e,'"'):"")}function VY(t){return c3e(t)?'"'.concat(t,'"'):t}var S3e={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},ad=Object.freeze({});function HY(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:S3e,n=void 0,a=Array.isArray(t),s=[t],o=-1,u=[],c=void 0,l=void 0,d=void 0,f=[],h=[],p=t;do{o++;var m=o===s.length,y=m&&u.length!==0;if(m){if(l=h.length===0?void 0:f[f.length-1],c=d,d=h.pop(),y){if(a)c=c.slice();else{for(var g={},b=0,v=Object.keys(c);bO3e&&(c=u+Fr(`( +`},OperationDefinition:function(e){var r=e.operation,n=e.name,a=Fr("(",dt(e.variableDefinitions,", "),")"),s=dt(e.directives," "),o=e.selectionSet;return!n&&!s&&!a&&r==="query"?o:dt([r,dt([n,a]),s,o]," ")},VariableDefinition:function(e){var r=e.variable,n=e.type,a=e.defaultValue,s=e.directives;return r+": "+n+Fr(" = ",a)+Fr(" ",dt(s," "))},SelectionSet:function(e){var r=e.selections;return Ea(r)},Field:function(e){var r=e.alias,n=e.name,a=e.arguments,s=e.directives,o=e.selectionSet,u=Fr("",r,": ")+n,c=u+Fr("(",dt(a,", "),")");return c.length>A3e&&(c=u+Fr(`( `,qw(dt(a,` `)),` -)`)),dt([c,dt(s," "),o]," ")},Argument:function(e){var r=e.name,n=e.value;return r+": "+n},FragmentSpread:function(e){var r=e.name,n=e.directives;return"..."+r+Fr(" ",dt(n," "))},InlineFragment:function(e){var r=e.typeCondition,n=e.directives,a=e.selectionSet;return dt(["...",Fr("on ",r),dt(n," "),a]," ")},FragmentDefinition:function(e){var r=e.name,n=e.typeCondition,a=e.variableDefinitions,s=e.directives,o=e.selectionSet;return"fragment ".concat(r).concat(Fr("(",dt(a,", "),")")," ")+"on ".concat(n," ").concat(Fr("",dt(s," ")," "))+o},IntValue:function(e){var r=e.value;return r},FloatValue:function(e){var r=e.value;return r},StringValue:function(e,r){var n=e.value,a=e.block;return a?c3e(n,r==="description"?"":" "):JSON.stringify(n)},BooleanValue:function(e){var r=e.value;return r?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){var r=e.value;return r},ListValue:function(e){var r=e.values;return"["+dt(r,", ")+"]"},ObjectValue:function(e){var r=e.fields;return"{"+dt(r,", ")+"}"},ObjectField:function(e){var r=e.name,n=e.value;return r+": "+n},Directive:function(e){var r=e.name,n=e.arguments;return"@"+r+Fr("(",dt(n,", "),")")},NamedType:function(e){var r=e.name;return r},ListType:function(e){var r=e.type;return"["+r+"]"},NonNullType:function(e){var r=e.type;return r+"!"},SchemaDefinition:Ta(function(t){var e=t.directives,r=t.operationTypes;return dt(["schema",dt(e," "),Ea(r)]," ")}),OperationTypeDefinition:function(e){var r=e.operation,n=e.type;return r+": "+n},ScalarTypeDefinition:Ta(function(t){var e=t.name,r=t.directives;return dt(["scalar",e,dt(r," ")]," ")}),ObjectTypeDefinition:Ta(function(t){var e=t.name,r=t.interfaces,n=t.directives,a=t.fields;return dt(["type",e,Fr("implements ",dt(r," & ")),dt(n," "),Ea(a)]," ")}),FieldDefinition:Ta(function(t){var e=t.name,r=t.arguments,n=t.type,a=t.directives;return e+(e5(r)?Fr(`( +)`)),dt([c,dt(s," "),o]," ")},Argument:function(e){var r=e.name,n=e.value;return r+": "+n},FragmentSpread:function(e){var r=e.name,n=e.directives;return"..."+r+Fr(" ",dt(n," "))},InlineFragment:function(e){var r=e.typeCondition,n=e.directives,a=e.selectionSet;return dt(["...",Fr("on ",r),dt(n," "),a]," ")},FragmentDefinition:function(e){var r=e.name,n=e.typeCondition,a=e.variableDefinitions,s=e.directives,o=e.selectionSet;return"fragment ".concat(r).concat(Fr("(",dt(a,", "),")")," ")+"on ".concat(n," ").concat(Fr("",dt(s," ")," "))+o},IntValue:function(e){var r=e.value;return r},FloatValue:function(e){var r=e.value;return r},StringValue:function(e,r){var n=e.value,a=e.block;return a?u3e(n,r==="description"?"":" "):JSON.stringify(n)},BooleanValue:function(e){var r=e.value;return r?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){var r=e.value;return r},ListValue:function(e){var r=e.values;return"["+dt(r,", ")+"]"},ObjectValue:function(e){var r=e.fields;return"{"+dt(r,", ")+"}"},ObjectField:function(e){var r=e.name,n=e.value;return r+": "+n},Directive:function(e){var r=e.name,n=e.arguments;return"@"+r+Fr("(",dt(n,", "),")")},NamedType:function(e){var r=e.name;return r},ListType:function(e){var r=e.type;return"["+r+"]"},NonNullType:function(e){var r=e.type;return r+"!"},SchemaDefinition:Ta(function(t){var e=t.directives,r=t.operationTypes;return dt(["schema",dt(e," "),Ea(r)]," ")}),OperationTypeDefinition:function(e){var r=e.operation,n=e.type;return r+": "+n},ScalarTypeDefinition:Ta(function(t){var e=t.name,r=t.directives;return dt(["scalar",e,dt(r," ")]," ")}),ObjectTypeDefinition:Ta(function(t){var e=t.name,r=t.interfaces,n=t.directives,a=t.fields;return dt(["type",e,Fr("implements ",dt(r," & ")),dt(n," "),Ea(a)]," ")}),FieldDefinition:Ta(function(t){var e=t.name,r=t.arguments,n=t.type,a=t.directives;return e+(e5(r)?Fr(`( `,qw(dt(r,` `)),` )`):Fr("(",dt(r,", "),")"))+": "+n+Fr(" ",dt(a," "))}),InputValueDefinition:Ta(function(t){var e=t.name,r=t.type,n=t.defaultValue,a=t.directives;return dt([e+": "+r,Fr("= ",n),dt(a," ")]," ")}),InterfaceTypeDefinition:Ta(function(t){var e=t.name,r=t.interfaces,n=t.directives,a=t.fields;return dt(["interface",e,Fr("implements ",dt(r," & ")),dt(n," "),Ea(a)]," ")}),UnionTypeDefinition:Ta(function(t){var e=t.name,r=t.directives,n=t.types;return dt(["union",e,dt(r," "),n&&n.length!==0?"= "+dt(n," | "):""]," ")}),EnumTypeDefinition:Ta(function(t){var e=t.name,r=t.directives,n=t.values;return dt(["enum",e,dt(r," "),Ea(n)]," ")}),EnumValueDefinition:Ta(function(t){var e=t.name,r=t.directives;return dt([e,dt(r," ")]," ")}),InputObjectTypeDefinition:Ta(function(t){var e=t.name,r=t.directives,n=t.fields;return dt(["input",e,dt(r," "),Ea(n)]," ")}),DirectiveDefinition:Ta(function(t){var e=t.name,r=t.arguments,n=t.repeatable,a=t.locations;return"directive @"+e+(e5(r)?Fr(`( @@ -211,44 +211,44 @@ ${u.map(d=>d.message).join(` `,qw(dt(t,` `)),` }`)}function Fr(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return e!=null&&e!==""?t+e+r:""}function qw(t){return Fr(" ",t.replace(/\n/g,` - `))}function x3e(t){return t.indexOf(` -`)!==-1}function e5(t){return t!=null&&t.some(x3e)}function I3e(t){return QY(t)||zY(t)||WY(t)}function QY(t){return t.kind===nt.OPERATION_DEFINITION||t.kind===nt.FRAGMENT_DEFINITION}function P3e(t){return t.kind===nt.FIELD||t.kind===nt.FRAGMENT_SPREAD||t.kind===nt.INLINE_FRAGMENT}function N3e(t){return t.kind===nt.VARIABLE||t.kind===nt.INT||t.kind===nt.FLOAT||t.kind===nt.STRING||t.kind===nt.BOOLEAN||t.kind===nt.NULL||t.kind===nt.ENUM||t.kind===nt.LIST||t.kind===nt.OBJECT}function D3e(t){return t.kind===nt.NAMED_TYPE||t.kind===nt.LIST_TYPE||t.kind===nt.NON_NULL_TYPE}function zY(t){return t.kind===nt.SCHEMA_DEFINITION||GY(t)||t.kind===nt.DIRECTIVE_DEFINITION}function GY(t){return t.kind===nt.SCALAR_TYPE_DEFINITION||t.kind===nt.OBJECT_TYPE_DEFINITION||t.kind===nt.INTERFACE_TYPE_DEFINITION||t.kind===nt.UNION_TYPE_DEFINITION||t.kind===nt.ENUM_TYPE_DEFINITION||t.kind===nt.INPUT_OBJECT_TYPE_DEFINITION}function WY(t){return t.kind===nt.SCHEMA_EXTENSION||KY(t)}function KY(t){return t.kind===nt.SCALAR_TYPE_EXTENSION||t.kind===nt.OBJECT_TYPE_EXTENSION||t.kind===nt.INTERFACE_TYPE_EXTENSION||t.kind===nt.UNION_TYPE_EXTENSION||t.kind===nt.ENUM_TYPE_EXTENSION||t.kind===nt.INPUT_OBJECT_TYPE_EXTENSION}const C3e=Object.freeze(Object.defineProperty({__proto__:null,BREAK:sd,DirectiveLocation:kY,Kind:nt,Lexer:UY,Location:zC,Source:HC,Token:Br,TokenKind:Ve,getLocation:RS,getVisitFn:xS,isDefinitionNode:I3e,isExecutableDefinitionNode:QY,isSelectionNode:P3e,isTypeDefinitionNode:GY,isTypeExtensionNode:KY,isTypeNode:D3e,isTypeSystemDefinitionNode:zY,isTypeSystemExtensionNode:WY,isValueNode:N3e,parse:v3e,parseType:S3e,parseValue:w3e,print:A3e,printLocation:FY,printSourceLocation:QC,visit:HY,visitInParallel:E3e},Symbol.toStringTag,{value:"Module"})),L3e=vD(C3e);var tp={},hn={},hT={};(function(){(function(t){(function(e){var r={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};function n(x){return x&&DataView.prototype.isPrototypeOf(x)}if(r.arrayBuffer)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(x){return x&&a.indexOf(Object.prototype.toString.call(x))>-1};function o(x){if(typeof x!="string"&&(x=String(x)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(x))throw new TypeError("Invalid character in header field name");return x.toLowerCase()}function u(x){return typeof x!="string"&&(x=String(x)),x}function c(x){var P={next:function(){var j=x.shift();return{done:j===void 0,value:j}}};return r.iterable&&(P[Symbol.iterator]=function(){return P}),P}function l(x){this.map={},x instanceof l?x.forEach(function(P,j){this.append(j,P)},this):Array.isArray(x)?x.forEach(function(P){this.append(P[0],P[1])},this):x&&Object.getOwnPropertyNames(x).forEach(function(P){this.append(P,x[P])},this)}l.prototype.append=function(x,P){x=o(x),P=u(P);var j=this.map[x];this.map[x]=j?j+", "+P:P},l.prototype.delete=function(x){delete this.map[o(x)]},l.prototype.get=function(x){return x=o(x),this.has(x)?this.map[x]:null},l.prototype.has=function(x){return this.map.hasOwnProperty(o(x))},l.prototype.set=function(x,P){this.map[o(x)]=u(P)},l.prototype.forEach=function(x,P){for(var j in this.map)this.map.hasOwnProperty(j)&&x.call(P,this.map[j],j,this)},l.prototype.keys=function(){var x=[];return this.forEach(function(P,j){x.push(j)}),c(x)},l.prototype.values=function(){var x=[];return this.forEach(function(P){x.push(P)}),c(x)},l.prototype.entries=function(){var x=[];return this.forEach(function(P,j){x.push([j,P])}),c(x)},r.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);function d(x){if(x.bodyUsed)return Promise.reject(new TypeError("Already read"));x.bodyUsed=!0}function f(x){return new Promise(function(P,j){x.onload=function(){P(x.result)},x.onerror=function(){j(x.error)}})}function h(x){var P=new FileReader,j=f(P);return P.readAsArrayBuffer(x),j}function p(x){var P=new FileReader,j=f(P);return P.readAsText(x),j}function m(x){for(var P=new Uint8Array(x),j=new Array(P.length),N=0;N-1?P:x}function _(x,P){P=P||{};var j=P.body;if(x instanceof _){if(x.bodyUsed)throw new TypeError("Already read");this.url=x.url,this.credentials=x.credentials,P.headers||(this.headers=new l(x.headers)),this.method=x.method,this.mode=x.mode,this.signal=x.signal,!j&&x._bodyInit!=null&&(j=x._bodyInit,x.bodyUsed=!0)}else this.url=String(x);if(this.credentials=P.credentials||this.credentials||"same-origin",(P.headers||!this.headers)&&(this.headers=new l(P.headers)),this.method=v(P.method||this.method||"GET"),this.mode=P.mode||this.mode||null,this.signal=P.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&j)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(j)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})};function w(x){var P=new FormData;return x.trim().split("&").forEach(function(j){if(j){var N=j.split("="),V=N.shift().replace(/\+/g," "),$=N.join("=").replace(/\+/g," ");P.append(decodeURIComponent(V),decodeURIComponent($))}}),P}function E(x){var P=new l,j=x.replace(/\r?\n[\t ]+/g," ");return j.split(/\r?\n/).forEach(function(N){var V=N.split(":"),$=V.shift().trim();if($){var q=V.join(":").trim();P.append($,q)}}),P}g.call(_.prototype);function O(x,P){P||(P={}),this.type="default",this.status=P.status===void 0?200:P.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in P?P.statusText:"OK",this.headers=new l(P.headers),this.url=P.url||"",this._initBody(x)}g.call(O.prototype),O.prototype.clone=function(){return new O(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},O.error=function(){var x=new O(null,{status:0,statusText:""});return x.type="error",x};var L=[301,302,303,307,308];O.redirect=function(x,P){if(L.indexOf(P)===-1)throw new RangeError("Invalid status code");return new O(null,{status:P,headers:{location:x}})},e.DOMException=t.DOMException;try{new e.DOMException}catch{e.DOMException=function(P,j){this.message=P,this.name=j;var N=Error(P);this.stack=N.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function F(x,P){return new Promise(function(j,N){var V=new _(x,P);if(V.signal&&V.signal.aborted)return N(new e.DOMException("Aborted","AbortError"));var $=new XMLHttpRequest;function q(){$.abort()}$.onload=function(){var H={status:$.status,statusText:$.statusText,headers:E($.getAllResponseHeaders()||"")};H.url="responseURL"in $?$.responseURL:H.headers.get("X-Request-URL");var X="response"in $?$.response:$.responseText;j(new O(X,H))},$.onerror=function(){N(new TypeError("Network request failed"))},$.ontimeout=function(){N(new TypeError("Network request failed"))},$.onabort=function(){N(new e.DOMException("Aborted","AbortError"))},$.open(V.method,V.url,!0),V.credentials==="include"?$.withCredentials=!0:V.credentials==="omit"&&($.withCredentials=!1),"responseType"in $&&r.blob&&($.responseType="blob"),V.headers.forEach(function(H,X){$.setRequestHeader(X,H)}),V.signal&&(V.signal.addEventListener("abort",q),$.onreadystatechange=function(){$.readyState===4&&V.signal.removeEventListener("abort",q)}),$.send(typeof V._bodyInit>"u"?null:V._bodyInit)})}return F.polyfill=!0,t.fetch||(t.fetch=F,t.Headers=l,t.Request=_,t.Response=O),e.Headers=l,e.Request=_,e.Response=O,e.fetch=F,Object.defineProperty(e,"__esModule",{value:!0}),e})({})})(typeof self<"u"?self:I)})();var ga={},uu={};Object.defineProperty(uu,"__esModule",{value:!0});uu.removeDotSegmentsOfPath=uu.removeDotSegments=uu.resolve=void 0;function j3e(t,e){e=e||"";const r=e.indexOf("#");if(r>0&&(e=e.substr(0,r)),!t.length){if(e.indexOf(":")<0)throw new Error(`Found invalid baseIRI '${e}' for value '${t}'`);return e}if(t.startsWith("?")){const l=e.indexOf("?");return l>0&&(e=e.substr(0,l)),e+t}if(t.startsWith("#"))return e+t;if(!e.length){const l=t.indexOf(":");if(l<0)throw new Error(`Found invalid relative IRI '${t}' for a missing baseIRI`);return lc(t,l)}const n=t.indexOf(":");if(n>=0)return lc(t,n);const a=e.indexOf(":");if(a<0)throw new Error(`Found invalid baseIRI '${e}' for value '${t}'`);const s=e.substr(0,a+1);if(t.indexOf("//")===0)return s+lc(t,n);let o;if(e.indexOf("//",a)===a+1){if(o=e.indexOf("/",a+3),o<0)return e.length>a+3?e+"/"+lc(t,n):s+lc(t,n)}else if(o=e.indexOf("/",a+1),o<0)return s+lc(t,n);if(t.indexOf("/")===0)return e.substr(0,o)+IS(t);let u=e.substr(o);const c=u.lastIndexOf("/");return c>=0&&cn.join("")).join("/")}uu.removeDotSegments=IS;function lc(t,e){let r=e+1;e>=0?t[e+1]==="/"&&t[e+2]==="/"&&(r=e+3):t[0]==="/"&&t[1]==="/"&&(r=2);const n=t.indexOf("/",r);if(n<0)return t;const a=t.substr(0,n),s=t.substr(n);return a+IS(s)}uu.removeDotSegmentsOfPath=lc;function t5(t){return!t||t==="#"||t==="?"||t==="/"}(function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s),Object.defineProperty(n,o,{enumerable:!0,get:function(){return a[s]}})}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(uu,t)})(ga);var Cf={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ERROR_CODES=t.ErrorCoded=void 0;class e extends Error{constructor(n,a){super(n),this.code=a}}t.ErrorCoded=e,function(r){r.COLLIDING_KEYWORDS="colliding keywords",r.CONFLICTING_INDEXES="conflicting indexes",r.CYCLIC_IRI_MAPPING="cyclic IRI mapping",r.INVALID_ID_VALUE="invalid @id value",r.INVALID_INDEX_VALUE="invalid @index value",r.INVALID_NEST_VALUE="invalid @nest value",r.INVALID_PREFIX_VALUE="invalid @prefix value",r.INVALID_PROPAGATE_VALUE="invalid @propagate value",r.INVALID_REVERSE_VALUE="invalid @reverse value",r.INVALID_IMPORT_VALUE="invalid @import value",r.INVALID_VERSION_VALUE="invalid @version value",r.INVALID_BASE_IRI="invalid base IRI",r.INVALID_CONTAINER_MAPPING="invalid container mapping",r.INVALID_CONTEXT_ENTRY="invalid context entry",r.INVALID_CONTEXT_NULLIFICATION="invalid context nullification",r.INVALID_DEFAULT_LANGUAGE="invalid default language",r.INVALID_INCLUDED_VALUE="invalid @included value",r.INVALID_IRI_MAPPING="invalid IRI mapping",r.INVALID_JSON_LITERAL="invalid JSON literal",r.INVALID_KEYWORD_ALIAS="invalid keyword alias",r.INVALID_LANGUAGE_MAP_VALUE="invalid language map value",r.INVALID_LANGUAGE_MAPPING="invalid language mapping",r.INVALID_LANGUAGE_TAGGED_STRING="invalid language-tagged string",r.INVALID_LANGUAGE_TAGGED_VALUE="invalid language-tagged value",r.INVALID_LOCAL_CONTEXT="invalid local context",r.INVALID_REMOTE_CONTEXT="invalid remote context",r.INVALID_REVERSE_PROPERTY="invalid reverse property",r.INVALID_REVERSE_PROPERTY_MAP="invalid reverse property map",r.INVALID_REVERSE_PROPERTY_VALUE="invalid reverse property value",r.INVALID_SCOPED_CONTEXT="invalid scoped context",r.INVALID_SCRIPT_ELEMENT="invalid script element",r.INVALID_SET_OR_LIST_OBJECT="invalid set or list object",r.INVALID_TERM_DEFINITION="invalid term definition",r.INVALID_TYPE_MAPPING="invalid type mapping",r.INVALID_TYPE_VALUE="invalid type value",r.INVALID_TYPED_VALUE="invalid typed value",r.INVALID_VALUE_OBJECT="invalid value object",r.INVALID_VALUE_OBJECT_VALUE="invalid value object value",r.INVALID_VOCAB_MAPPING="invalid vocab mapping",r.IRI_CONFUSED_WITH_PREFIX="IRI confused with prefix",r.KEYWORD_REDEFINITION="keyword redefinition",r.LOADING_DOCUMENT_FAILED="loading document failed",r.LOADING_REMOTE_CONTEXT_FAILED="loading remote context failed",r.MULTIPLE_CONTEXT_LINK_HEADERS="multiple context link headers",r.PROCESSING_MODE_CONFLICT="processing mode conflict",r.PROTECTED_TERM_REDEFINITION="protected term redefinition",r.CONTEXT_OVERFLOW="context overflow",r.INVALID_BASE_DIRECTION="invalid base direction",r.RECURSIVE_CONTEXT_INCLUSION="recursive context inclusion",r.INVALID_STREAMING_KEY_ORDER="invalid streaming key order",r.INVALID_EMBEDDED_NODE="invalid embedded node",r.INVALID_ANNOTATION="invalid annotation"}(t.ERROR_CODES||(t.ERROR_CODES={}))})(Cf);var R1={},M3e=/^utf-?8|ascii|utf-?16-?le|ucs-?2|base-?64|latin-?1$/i,F3e=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,B3e=/\s|\uFEFF|\xA0/,q3e=/\r?\n[\x20\x09]+/g,$3e=/[;,"]/,U3e=/[;,"]|\s/,k3e=/^[!#$%&'*+\-\.^_`|~\da-zA-Z]+$/,Fs={IDLE:1,URI:2,ATTR:4};function r5(t){return t.replace(F3e,"")}function $w(t){return B3e.test(t)}function V3e(t,e){for(;$w(t[e]);)e++;return e}function n5(t){return U3e.test(t)||!k3e.test(t)}function H3e(t,e){return Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(r=>r in e&&t[r]===e[r])}class Ar{constructor(e){this.refs=[],e&&this.parse(e)}rel(e){for(var r=[],n=e.toLowerCase(),a=0;aH3e(r,e))||this.refs.push(e),this}has(e,r){e=e.toLowerCase(),r=r.toLowerCase();for(var n=0;n",s);if(u===-1)throw new Error("Expected end of URI delimiter at offset "+s);o={uri:e.slice(s+1,u)},s=u,n=Fs.URI}else throw new Error('Unexpected character "'+e[s]+'" at offset '+s);s++}else if(n===Fs.URI)if($w(e[s])){s++;continue}else if(e[s]===";")n=Fs.ATTR,s++;else if(e[s]===",")n=Fs.IDLE,s++;else throw new Error('Unexpected character "'+e[s]+'" at offset '+s);else if(n===Fs.ATTR){if(e[s]===";"||$w(e[s])){s++;continue}var u=e.indexOf("=",s);u===-1&&(u=e.indexOf(";",s)),u===-1&&(u=e.length);var c=r5(e.slice(s,u)).toLowerCase(),l="";if(s=u+1,s=V3e(e,s),e[s]==='"')for(s++;s"),e.push(r);return e.join(", ")}}Ar.isCompatibleEncoding=function(t){return M3e.test(t)};Ar.parse=function(t,e){return new Ar().parse(t,e)};Ar.isSingleOccurenceAttr=function(t){return t==="rel"||t==="type"||t==="media"||t==="title"||t==="title*"};Ar.isTokenAttr=function(t){return t==="rel"||t==="type"||t==="anchor"};Ar.escapeQuotes=function(t){return t.replace(/"/g,'\\"')};Ar.expandRelations=function(t){var e=t.rel.split(" ");return e.map(function(r){var n=Object.assign({},t);return n.rel=r,n})};Ar.parseExtendedValue=function(t){var e=/([^']+)?(?:'([^']*)')?(.+)/.exec(t);return{language:e[2].toLowerCase(),encoding:Ar.isCompatibleEncoding(e[1])?null:e[1].toLowerCase(),value:Ar.isCompatibleEncoding(e[1])?decodeURIComponent(e[3]):e[3]}};Ar.formatExtendedAttribute=function(t,e){var r=(e.encoding||"utf-8").toUpperCase(),n=e.language||"en",a="";return Zi.isBuffer(e.value)&&Ar.isCompatibleEncoding(r)?a=e.value.toString(r):Zi.isBuffer(e.value)?a=e.value.toString("hex").replace(/[0-9a-f]{2}/gi,"%$1"):a=encodeURIComponent(e.value),t+"="+r+"'"+n+"'"+a};Ar.formatAttribute=function(t,e){return Array.isArray(e)?e.map(r=>Ar.formatAttribute(t,r)).join("; "):t[t.length-1]==="*"||typeof e!="string"?Ar.formatExtendedAttribute(t,e):(Ar.isTokenAttr(t)?e=n5(e)?'"'+Ar.escapeQuotes(e)+'"':Ar.escapeQuotes(e):n5(e)&&(e=encodeURIComponent(e),e=e.replace(/%20/g," ").replace(/%2C/g,",").replace(/%3B/g,";"),e='"'+e+'"'),t+"="+e)};var JY=Ar;Object.defineProperty(R1,"__esModule",{value:!0});R1.FetchDocumentLoader=void 0;const i5=Cf,Q3e=JY,z3e=ga;class G3e{constructor(e){this.fetcher=e}async load(e){const r=await(this.fetcher||fetch)(e,{headers:new Headers({accept:"application/ld+json"})});if(r.ok&&r.headers){let n=r.headers.get("Content-Type");if(n){const a=n.indexOf(";");a>0&&(n=n.substr(0,a))}if(n==="application/ld+json")return await r.json();if(r.headers.has("Link")){let a;if(r.headers.forEach((s,o)=>{if(o==="link"){const u=(0,Q3e.parse)(s);for(const c of u.get("type","application/ld+json"))if(c.rel==="alternate"){if(a)throw new Error("Multiple JSON-LD alternate links were found on "+e);a=(0,z3e.resolve)(c.uri,e)}}}),a)return this.load(a)}throw new i5.ErrorCoded(`Unsupported JSON-LD media type ${n}`,i5.ERROR_CODES.LOADING_DOCUMENT_FAILED)}else throw new Error(r.statusText||`Status code: ${r.status}`)}}R1.FetchDocumentLoader=G3e;var WC={},Lf={};Object.defineProperty(Lf,"__esModule",{value:!0});Lf.Util=void 0;let Hi=class zs{static isCompactIri(e){return e.indexOf(":")>0&&!(e&&e[0]==="#")}static getPrefix(e,r){if(e&&e[0]==="#")return null;const n=e.indexOf(":");if(n>=0){if(e.length>n+1&&e.charAt(n+1)==="/"&&e.charAt(n+2)==="/")return null;const a=e.substr(0,n);if(a==="_")return null;if(r[a])return a}return null}static getContextValueId(e){if(e===null||typeof e=="string")return e;const r=e["@id"];return r||null}static isSimpleTermDefinitionPrefix(e,r){return!zs.isPotentialKeyword(e)&&(r.allowPrefixNonGenDelims||typeof e=="string"&&(e[0]==="_"||zs.isPrefixIriEndingWithGenDelim(e)))}static isPotentialKeyword(e){return typeof e=="string"&&zs.KEYWORD_REGEX.test(e)}static isPrefixIriEndingWithGenDelim(e){return zs.ENDS_WITH_GEN_DELIM.test(e)}static isPrefixValue(e){return e&&(typeof e=="string"||e&&typeof e=="object")}static isValidIri(e){return!!(e&&zs.IRI_REGEX.test(e))}static isValidIriWeak(e){return!!e&&e[0]!==":"&&zs.IRI_REGEX_WEAK.test(e)}static isValidKeyword(e){return zs.VALID_KEYWORDS[e]}static isTermProtected(e,r){const n=e[r];return typeof n!="string"&&n&&n["@protected"]}static hasProtectedTerms(e){for(const r of Object.keys(e))if(zs.isTermProtected(e,r))return!0;return!1}static isReservedInternalKeyword(e){return e.startsWith("@__")}static deepEqual(e,r){const n=Object.keys(e),a=Object.keys(r);return n.length!==a.length?!1:n.every(s=>{const o=e[s],u=r[s];return o===u||o!==null&&u!==null&&typeof o=="object"&&typeof u=="object"&&this.deepEqual(o,u)})}};Hi.IRI_REGEX=/^([A-Za-z][A-Za-z0-9+-.]*|_):[^ "<>{}|\\\[\]`#]*(#[^#]*)?$/;Hi.IRI_REGEX_WEAK=/(?::[^:])|\//;Hi.KEYWORD_REGEX=/^@[a-z]+$/i;Hi.ENDS_WITH_GEN_DELIM=/[:/?#\[\]@]$/;Hi.REGEX_LANGUAGE_TAG=/^[a-zA-Z]+(-[a-zA-Z0-9]+)*$/;Hi.REGEX_DIRECTION_TAG=/^(ltr)|(rtl)$/;Hi.VALID_KEYWORDS={"@annotation":!0,"@base":!0,"@container":!0,"@context":!0,"@direction":!0,"@graph":!0,"@id":!0,"@import":!0,"@included":!0,"@index":!0,"@json":!0,"@language":!0,"@list":!0,"@nest":!0,"@none":!0,"@prefix":!0,"@propagate":!0,"@protected":!0,"@reverse":!0,"@set":!0,"@type":!0,"@value":!0,"@version":!0,"@vocab":!0};Hi.EXPAND_KEYS_BLACKLIST=["@base","@vocab","@language","@version","@direction"];Hi.ALIAS_DOMAIN_BLACKLIST=["@container","@graph","@id","@index","@list","@nest","@none","@prefix","@reverse","@set","@type","@value","@version"];Hi.ALIAS_RANGE_BLACKLIST=["@context","@preserve"];Hi.CONTAINERS=["@list","@set","@index","@language","@graph","@id","@type"];Hi.CONTAINERS_1_0=["@list","@set","@index"];Lf.Util=Hi;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultExpandOptions=t.JsonLdContextNormalized=void 0;const e=ga,r=Cf,n=Lf;class a{constructor(o){this.contextRaw=o}getContextRaw(){return this.contextRaw}expandTerm(o,u,c=t.defaultExpandOptions){const l=this.contextRaw[o];if(l===null||l&&l["@id"]===null)return null;let d=!0;if(l&&u){const g=n.Util.getContextValueId(l);if(g&&g!==o)if(typeof g!="string"||!n.Util.isValidIri(g)&&!n.Util.isValidKeyword(g))n.Util.isPotentialKeyword(g)||(d=!1);else return g}const f=n.Util.getPrefix(o,this.contextRaw),h=this.contextRaw["@vocab"],p=(!!h||h==="")&&h.indexOf(":")<0,m=this.contextRaw["@base"],y=n.Util.isPotentialKeyword(o);if(f){const g=this.contextRaw[f],b=n.Util.getContextValueId(g);if(b){if(typeof g=="string"||!c.allowPrefixForcing){if(!n.Util.isSimpleTermDefinitionPrefix(b,c))return o}else if(b[0]!=="_"&&!y&&!g["@prefix"]&&!(o in this.contextRaw))return o;return b+o.substr(f.length+1)}}else if(u&&(h||h===""||c.allowVocabRelativeToBase&&m&&p)&&!y&&!n.Util.isCompactIri(o))if(p){if(c.allowVocabRelativeToBase)return(h||m?(0,e.resolve)(h,m):"")+o;throw new r.ErrorCoded(`Relative vocab expansion for term '${o}' with vocab '${h}' is not allowed.`,r.ERROR_CODES.INVALID_VOCAB_MAPPING)}else return h+o;else if(!u&&m&&!y&&!n.Util.isCompactIri(o))return(0,e.resolve)(o,m);if(d)return o;throw new r.ErrorCoded(`Invalid IRI mapping found for context entry '${o}': '${JSON.stringify(l)}'`,r.ERROR_CODES.INVALID_IRI_MAPPING)}compactIri(o,u){if(u&&this.contextRaw["@vocab"]&&o.startsWith(this.contextRaw["@vocab"]))return o.substr(this.contextRaw["@vocab"].length);if(!u&&this.contextRaw["@base"]&&o.startsWith(this.contextRaw["@base"]))return o.substr(this.contextRaw["@base"].length);const c={prefix:"",suffix:o};for(const l in this.contextRaw){const d=this.contextRaw[l];if(d&&!n.Util.isPotentialKeyword(l)){const f=n.Util.getContextValueId(d);if(o.startsWith(f)){const h=o.substr(f.length);if(h)h.length=0&&(s!=="@type"||typeof a[s]=="object"&&!(a[s]["@protected"]||a[s]["@container"]==="@set")))throw new We.ErrorCoded(`Keywords can not be aliased to something else. + `))}function R3e(t){return t.indexOf(` +`)!==-1}function e5(t){return t!=null&&t.some(R3e)}function x3e(t){return QY(t)||zY(t)||WY(t)}function QY(t){return t.kind===nt.OPERATION_DEFINITION||t.kind===nt.FRAGMENT_DEFINITION}function I3e(t){return t.kind===nt.FIELD||t.kind===nt.FRAGMENT_SPREAD||t.kind===nt.INLINE_FRAGMENT}function P3e(t){return t.kind===nt.VARIABLE||t.kind===nt.INT||t.kind===nt.FLOAT||t.kind===nt.STRING||t.kind===nt.BOOLEAN||t.kind===nt.NULL||t.kind===nt.ENUM||t.kind===nt.LIST||t.kind===nt.OBJECT}function N3e(t){return t.kind===nt.NAMED_TYPE||t.kind===nt.LIST_TYPE||t.kind===nt.NON_NULL_TYPE}function zY(t){return t.kind===nt.SCHEMA_DEFINITION||GY(t)||t.kind===nt.DIRECTIVE_DEFINITION}function GY(t){return t.kind===nt.SCALAR_TYPE_DEFINITION||t.kind===nt.OBJECT_TYPE_DEFINITION||t.kind===nt.INTERFACE_TYPE_DEFINITION||t.kind===nt.UNION_TYPE_DEFINITION||t.kind===nt.ENUM_TYPE_DEFINITION||t.kind===nt.INPUT_OBJECT_TYPE_DEFINITION}function WY(t){return t.kind===nt.SCHEMA_EXTENSION||KY(t)}function KY(t){return t.kind===nt.SCALAR_TYPE_EXTENSION||t.kind===nt.OBJECT_TYPE_EXTENSION||t.kind===nt.INTERFACE_TYPE_EXTENSION||t.kind===nt.UNION_TYPE_EXTENSION||t.kind===nt.ENUM_TYPE_EXTENSION||t.kind===nt.INPUT_OBJECT_TYPE_EXTENSION}const D3e=Object.freeze(Object.defineProperty({__proto__:null,BREAK:ad,DirectiveLocation:kY,Kind:nt,Lexer:UY,Location:zC,Source:HC,Token:Br,TokenKind:Ve,getLocation:OS,getVisitFn:RS,isDefinitionNode:x3e,isExecutableDefinitionNode:QY,isSelectionNode:I3e,isTypeDefinitionNode:GY,isTypeExtensionNode:KY,isTypeNode:N3e,isTypeSystemDefinitionNode:zY,isTypeSystemExtensionNode:WY,isValueNode:P3e,parse:b3e,parseType:w3e,parseValue:v3e,print:E3e,printLocation:FY,printSourceLocation:QC,visit:HY,visitInParallel:T3e},Symbol.toStringTag,{value:"Module"})),C3e=vD(D3e);var tp={},hn={},fT={};(function(){(function(t){(function(e){var r={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};function n(x){return x&&DataView.prototype.isPrototypeOf(x)}if(r.arrayBuffer)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(x){return x&&a.indexOf(Object.prototype.toString.call(x))>-1};function o(x){if(typeof x!="string"&&(x=String(x)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(x))throw new TypeError("Invalid character in header field name");return x.toLowerCase()}function u(x){return typeof x!="string"&&(x=String(x)),x}function c(x){var P={next:function(){var j=x.shift();return{done:j===void 0,value:j}}};return r.iterable&&(P[Symbol.iterator]=function(){return P}),P}function l(x){this.map={},x instanceof l?x.forEach(function(P,j){this.append(j,P)},this):Array.isArray(x)?x.forEach(function(P){this.append(P[0],P[1])},this):x&&Object.getOwnPropertyNames(x).forEach(function(P){this.append(P,x[P])},this)}l.prototype.append=function(x,P){x=o(x),P=u(P);var j=this.map[x];this.map[x]=j?j+", "+P:P},l.prototype.delete=function(x){delete this.map[o(x)]},l.prototype.get=function(x){return x=o(x),this.has(x)?this.map[x]:null},l.prototype.has=function(x){return this.map.hasOwnProperty(o(x))},l.prototype.set=function(x,P){this.map[o(x)]=u(P)},l.prototype.forEach=function(x,P){for(var j in this.map)this.map.hasOwnProperty(j)&&x.call(P,this.map[j],j,this)},l.prototype.keys=function(){var x=[];return this.forEach(function(P,j){x.push(j)}),c(x)},l.prototype.values=function(){var x=[];return this.forEach(function(P){x.push(P)}),c(x)},l.prototype.entries=function(){var x=[];return this.forEach(function(P,j){x.push([j,P])}),c(x)},r.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);function d(x){if(x.bodyUsed)return Promise.reject(new TypeError("Already read"));x.bodyUsed=!0}function f(x){return new Promise(function(P,j){x.onload=function(){P(x.result)},x.onerror=function(){j(x.error)}})}function h(x){var P=new FileReader,j=f(P);return P.readAsArrayBuffer(x),j}function p(x){var P=new FileReader,j=f(P);return P.readAsText(x),j}function m(x){for(var P=new Uint8Array(x),j=new Array(P.length),N=0;N-1?P:x}function _(x,P){P=P||{};var j=P.body;if(x instanceof _){if(x.bodyUsed)throw new TypeError("Already read");this.url=x.url,this.credentials=x.credentials,P.headers||(this.headers=new l(x.headers)),this.method=x.method,this.mode=x.mode,this.signal=x.signal,!j&&x._bodyInit!=null&&(j=x._bodyInit,x.bodyUsed=!0)}else this.url=String(x);if(this.credentials=P.credentials||this.credentials||"same-origin",(P.headers||!this.headers)&&(this.headers=new l(P.headers)),this.method=v(P.method||this.method||"GET"),this.mode=P.mode||this.mode||null,this.signal=P.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&j)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(j)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})};function w(x){var P=new FormData;return x.trim().split("&").forEach(function(j){if(j){var N=j.split("="),V=N.shift().replace(/\+/g," "),$=N.join("=").replace(/\+/g," ");P.append(decodeURIComponent(V),decodeURIComponent($))}}),P}function E(x){var P=new l,j=x.replace(/\r?\n[\t ]+/g," ");return j.split(/\r?\n/).forEach(function(N){var V=N.split(":"),$=V.shift().trim();if($){var q=V.join(":").trim();P.append($,q)}}),P}g.call(_.prototype);function O(x,P){P||(P={}),this.type="default",this.status=P.status===void 0?200:P.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in P?P.statusText:"OK",this.headers=new l(P.headers),this.url=P.url||"",this._initBody(x)}g.call(O.prototype),O.prototype.clone=function(){return new O(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},O.error=function(){var x=new O(null,{status:0,statusText:""});return x.type="error",x};var L=[301,302,303,307,308];O.redirect=function(x,P){if(L.indexOf(P)===-1)throw new RangeError("Invalid status code");return new O(null,{status:P,headers:{location:x}})},e.DOMException=t.DOMException;try{new e.DOMException}catch{e.DOMException=function(P,j){this.message=P,this.name=j;var N=Error(P);this.stack=N.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function F(x,P){return new Promise(function(j,N){var V=new _(x,P);if(V.signal&&V.signal.aborted)return N(new e.DOMException("Aborted","AbortError"));var $=new XMLHttpRequest;function q(){$.abort()}$.onload=function(){var H={status:$.status,statusText:$.statusText,headers:E($.getAllResponseHeaders()||"")};H.url="responseURL"in $?$.responseURL:H.headers.get("X-Request-URL");var X="response"in $?$.response:$.responseText;j(new O(X,H))},$.onerror=function(){N(new TypeError("Network request failed"))},$.ontimeout=function(){N(new TypeError("Network request failed"))},$.onabort=function(){N(new e.DOMException("Aborted","AbortError"))},$.open(V.method,V.url,!0),V.credentials==="include"?$.withCredentials=!0:V.credentials==="omit"&&($.withCredentials=!1),"responseType"in $&&r.blob&&($.responseType="blob"),V.headers.forEach(function(H,X){$.setRequestHeader(X,H)}),V.signal&&(V.signal.addEventListener("abort",q),$.onreadystatechange=function(){$.readyState===4&&V.signal.removeEventListener("abort",q)}),$.send(typeof V._bodyInit>"u"?null:V._bodyInit)})}return F.polyfill=!0,t.fetch||(t.fetch=F,t.Headers=l,t.Request=_,t.Response=O),e.Headers=l,e.Request=_,e.Response=O,e.fetch=F,Object.defineProperty(e,"__esModule",{value:!0}),e})({})})(typeof self<"u"?self:I)})();var ga={},uu={};Object.defineProperty(uu,"__esModule",{value:!0});uu.removeDotSegmentsOfPath=uu.removeDotSegments=uu.resolve=void 0;function L3e(t,e){e=e||"";const r=e.indexOf("#");if(r>0&&(e=e.substr(0,r)),!t.length){if(e.indexOf(":")<0)throw new Error(`Found invalid baseIRI '${e}' for value '${t}'`);return e}if(t.startsWith("?")){const l=e.indexOf("?");return l>0&&(e=e.substr(0,l)),e+t}if(t.startsWith("#"))return e+t;if(!e.length){const l=t.indexOf(":");if(l<0)throw new Error(`Found invalid relative IRI '${t}' for a missing baseIRI`);return lc(t,l)}const n=t.indexOf(":");if(n>=0)return lc(t,n);const a=e.indexOf(":");if(a<0)throw new Error(`Found invalid baseIRI '${e}' for value '${t}'`);const s=e.substr(0,a+1);if(t.indexOf("//")===0)return s+lc(t,n);let o;if(e.indexOf("//",a)===a+1){if(o=e.indexOf("/",a+3),o<0)return e.length>a+3?e+"/"+lc(t,n):s+lc(t,n)}else if(o=e.indexOf("/",a+1),o<0)return s+lc(t,n);if(t.indexOf("/")===0)return e.substr(0,o)+xS(t);let u=e.substr(o);const c=u.lastIndexOf("/");return c>=0&&cn.join("")).join("/")}uu.removeDotSegments=xS;function lc(t,e){let r=e+1;e>=0?t[e+1]==="/"&&t[e+2]==="/"&&(r=e+3):t[0]==="/"&&t[1]==="/"&&(r=2);const n=t.indexOf("/",r);if(n<0)return t;const a=t.substr(0,n),s=t.substr(n);return a+xS(s)}uu.removeDotSegmentsOfPath=lc;function t5(t){return!t||t==="#"||t==="?"||t==="/"}(function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s),Object.defineProperty(n,o,{enumerable:!0,get:function(){return a[s]}})}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(uu,t)})(ga);var Cf={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ERROR_CODES=t.ErrorCoded=void 0;class e extends Error{constructor(n,a){super(n),this.code=a}}t.ErrorCoded=e,function(r){r.COLLIDING_KEYWORDS="colliding keywords",r.CONFLICTING_INDEXES="conflicting indexes",r.CYCLIC_IRI_MAPPING="cyclic IRI mapping",r.INVALID_ID_VALUE="invalid @id value",r.INVALID_INDEX_VALUE="invalid @index value",r.INVALID_NEST_VALUE="invalid @nest value",r.INVALID_PREFIX_VALUE="invalid @prefix value",r.INVALID_PROPAGATE_VALUE="invalid @propagate value",r.INVALID_REVERSE_VALUE="invalid @reverse value",r.INVALID_IMPORT_VALUE="invalid @import value",r.INVALID_VERSION_VALUE="invalid @version value",r.INVALID_BASE_IRI="invalid base IRI",r.INVALID_CONTAINER_MAPPING="invalid container mapping",r.INVALID_CONTEXT_ENTRY="invalid context entry",r.INVALID_CONTEXT_NULLIFICATION="invalid context nullification",r.INVALID_DEFAULT_LANGUAGE="invalid default language",r.INVALID_INCLUDED_VALUE="invalid @included value",r.INVALID_IRI_MAPPING="invalid IRI mapping",r.INVALID_JSON_LITERAL="invalid JSON literal",r.INVALID_KEYWORD_ALIAS="invalid keyword alias",r.INVALID_LANGUAGE_MAP_VALUE="invalid language map value",r.INVALID_LANGUAGE_MAPPING="invalid language mapping",r.INVALID_LANGUAGE_TAGGED_STRING="invalid language-tagged string",r.INVALID_LANGUAGE_TAGGED_VALUE="invalid language-tagged value",r.INVALID_LOCAL_CONTEXT="invalid local context",r.INVALID_REMOTE_CONTEXT="invalid remote context",r.INVALID_REVERSE_PROPERTY="invalid reverse property",r.INVALID_REVERSE_PROPERTY_MAP="invalid reverse property map",r.INVALID_REVERSE_PROPERTY_VALUE="invalid reverse property value",r.INVALID_SCOPED_CONTEXT="invalid scoped context",r.INVALID_SCRIPT_ELEMENT="invalid script element",r.INVALID_SET_OR_LIST_OBJECT="invalid set or list object",r.INVALID_TERM_DEFINITION="invalid term definition",r.INVALID_TYPE_MAPPING="invalid type mapping",r.INVALID_TYPE_VALUE="invalid type value",r.INVALID_TYPED_VALUE="invalid typed value",r.INVALID_VALUE_OBJECT="invalid value object",r.INVALID_VALUE_OBJECT_VALUE="invalid value object value",r.INVALID_VOCAB_MAPPING="invalid vocab mapping",r.IRI_CONFUSED_WITH_PREFIX="IRI confused with prefix",r.KEYWORD_REDEFINITION="keyword redefinition",r.LOADING_DOCUMENT_FAILED="loading document failed",r.LOADING_REMOTE_CONTEXT_FAILED="loading remote context failed",r.MULTIPLE_CONTEXT_LINK_HEADERS="multiple context link headers",r.PROCESSING_MODE_CONFLICT="processing mode conflict",r.PROTECTED_TERM_REDEFINITION="protected term redefinition",r.CONTEXT_OVERFLOW="context overflow",r.INVALID_BASE_DIRECTION="invalid base direction",r.RECURSIVE_CONTEXT_INCLUSION="recursive context inclusion",r.INVALID_STREAMING_KEY_ORDER="invalid streaming key order",r.INVALID_EMBEDDED_NODE="invalid embedded node",r.INVALID_ANNOTATION="invalid annotation"}(t.ERROR_CODES||(t.ERROR_CODES={}))})(Cf);var R1={},j3e=/^utf-?8|ascii|utf-?16-?le|ucs-?2|base-?64|latin-?1$/i,M3e=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,F3e=/\s|\uFEFF|\xA0/,B3e=/\r?\n[\x20\x09]+/g,q3e=/[;,"]/,$3e=/[;,"]|\s/,U3e=/^[!#$%&'*+\-\.^_`|~\da-zA-Z]+$/,Fs={IDLE:1,URI:2,ATTR:4};function r5(t){return t.replace(M3e,"")}function $w(t){return F3e.test(t)}function k3e(t,e){for(;$w(t[e]);)e++;return e}function n5(t){return $3e.test(t)||!U3e.test(t)}function V3e(t,e){return Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(r=>r in e&&t[r]===e[r])}class Ar{constructor(e){this.refs=[],e&&this.parse(e)}rel(e){for(var r=[],n=e.toLowerCase(),a=0;aV3e(r,e))||this.refs.push(e),this}has(e,r){e=e.toLowerCase(),r=r.toLowerCase();for(var n=0;n",s);if(u===-1)throw new Error("Expected end of URI delimiter at offset "+s);o={uri:e.slice(s+1,u)},s=u,n=Fs.URI}else throw new Error('Unexpected character "'+e[s]+'" at offset '+s);s++}else if(n===Fs.URI)if($w(e[s])){s++;continue}else if(e[s]===";")n=Fs.ATTR,s++;else if(e[s]===",")n=Fs.IDLE,s++;else throw new Error('Unexpected character "'+e[s]+'" at offset '+s);else if(n===Fs.ATTR){if(e[s]===";"||$w(e[s])){s++;continue}var u=e.indexOf("=",s);u===-1&&(u=e.indexOf(";",s)),u===-1&&(u=e.length);var c=r5(e.slice(s,u)).toLowerCase(),l="";if(s=u+1,s=k3e(e,s),e[s]==='"')for(s++;s"),e.push(r);return e.join(", ")}}Ar.isCompatibleEncoding=function(t){return j3e.test(t)};Ar.parse=function(t,e){return new Ar().parse(t,e)};Ar.isSingleOccurenceAttr=function(t){return t==="rel"||t==="type"||t==="media"||t==="title"||t==="title*"};Ar.isTokenAttr=function(t){return t==="rel"||t==="type"||t==="anchor"};Ar.escapeQuotes=function(t){return t.replace(/"/g,'\\"')};Ar.expandRelations=function(t){var e=t.rel.split(" ");return e.map(function(r){var n=Object.assign({},t);return n.rel=r,n})};Ar.parseExtendedValue=function(t){var e=/([^']+)?(?:'([^']*)')?(.+)/.exec(t);return{language:e[2].toLowerCase(),encoding:Ar.isCompatibleEncoding(e[1])?null:e[1].toLowerCase(),value:Ar.isCompatibleEncoding(e[1])?decodeURIComponent(e[3]):e[3]}};Ar.formatExtendedAttribute=function(t,e){var r=(e.encoding||"utf-8").toUpperCase(),n=e.language||"en",a="";return Zi.isBuffer(e.value)&&Ar.isCompatibleEncoding(r)?a=e.value.toString(r):Zi.isBuffer(e.value)?a=e.value.toString("hex").replace(/[0-9a-f]{2}/gi,"%$1"):a=encodeURIComponent(e.value),t+"="+r+"'"+n+"'"+a};Ar.formatAttribute=function(t,e){return Array.isArray(e)?e.map(r=>Ar.formatAttribute(t,r)).join("; "):t[t.length-1]==="*"||typeof e!="string"?Ar.formatExtendedAttribute(t,e):(Ar.isTokenAttr(t)?e=n5(e)?'"'+Ar.escapeQuotes(e)+'"':Ar.escapeQuotes(e):n5(e)&&(e=encodeURIComponent(e),e=e.replace(/%20/g," ").replace(/%2C/g,",").replace(/%3B/g,";"),e='"'+e+'"'),t+"="+e)};var JY=Ar;Object.defineProperty(R1,"__esModule",{value:!0});R1.FetchDocumentLoader=void 0;const i5=Cf,H3e=JY,Q3e=ga;class z3e{constructor(e){this.fetcher=e}async load(e){const r=await(this.fetcher||fetch)(e,{headers:new Headers({accept:"application/ld+json"})});if(r.ok&&r.headers){let n=r.headers.get("Content-Type");if(n){const a=n.indexOf(";");a>0&&(n=n.substr(0,a))}if(n==="application/ld+json")return await r.json();if(r.headers.has("Link")){let a;if(r.headers.forEach((s,o)=>{if(o==="link"){const u=(0,H3e.parse)(s);for(const c of u.get("type","application/ld+json"))if(c.rel==="alternate"){if(a)throw new Error("Multiple JSON-LD alternate links were found on "+e);a=(0,Q3e.resolve)(c.uri,e)}}}),a)return this.load(a)}throw new i5.ErrorCoded(`Unsupported JSON-LD media type ${n}`,i5.ERROR_CODES.LOADING_DOCUMENT_FAILED)}else throw new Error(r.statusText||`Status code: ${r.status}`)}}R1.FetchDocumentLoader=z3e;var WC={},Lf={};Object.defineProperty(Lf,"__esModule",{value:!0});Lf.Util=void 0;let Hi=class zs{static isCompactIri(e){return e.indexOf(":")>0&&!(e&&e[0]==="#")}static getPrefix(e,r){if(e&&e[0]==="#")return null;const n=e.indexOf(":");if(n>=0){if(e.length>n+1&&e.charAt(n+1)==="/"&&e.charAt(n+2)==="/")return null;const a=e.substr(0,n);if(a==="_")return null;if(r[a])return a}return null}static getContextValueId(e){if(e===null||typeof e=="string")return e;const r=e["@id"];return r||null}static isSimpleTermDefinitionPrefix(e,r){return!zs.isPotentialKeyword(e)&&(r.allowPrefixNonGenDelims||typeof e=="string"&&(e[0]==="_"||zs.isPrefixIriEndingWithGenDelim(e)))}static isPotentialKeyword(e){return typeof e=="string"&&zs.KEYWORD_REGEX.test(e)}static isPrefixIriEndingWithGenDelim(e){return zs.ENDS_WITH_GEN_DELIM.test(e)}static isPrefixValue(e){return e&&(typeof e=="string"||e&&typeof e=="object")}static isValidIri(e){return!!(e&&zs.IRI_REGEX.test(e))}static isValidIriWeak(e){return!!e&&e[0]!==":"&&zs.IRI_REGEX_WEAK.test(e)}static isValidKeyword(e){return zs.VALID_KEYWORDS[e]}static isTermProtected(e,r){const n=e[r];return typeof n!="string"&&n&&n["@protected"]}static hasProtectedTerms(e){for(const r of Object.keys(e))if(zs.isTermProtected(e,r))return!0;return!1}static isReservedInternalKeyword(e){return e.startsWith("@__")}static deepEqual(e,r){const n=Object.keys(e),a=Object.keys(r);return n.length!==a.length?!1:n.every(s=>{const o=e[s],u=r[s];return o===u||o!==null&&u!==null&&typeof o=="object"&&typeof u=="object"&&this.deepEqual(o,u)})}};Hi.IRI_REGEX=/^([A-Za-z][A-Za-z0-9+-.]*|_):[^ "<>{}|\\\[\]`#]*(#[^#]*)?$/;Hi.IRI_REGEX_WEAK=/(?::[^:])|\//;Hi.KEYWORD_REGEX=/^@[a-z]+$/i;Hi.ENDS_WITH_GEN_DELIM=/[:/?#\[\]@]$/;Hi.REGEX_LANGUAGE_TAG=/^[a-zA-Z]+(-[a-zA-Z0-9]+)*$/;Hi.REGEX_DIRECTION_TAG=/^(ltr)|(rtl)$/;Hi.VALID_KEYWORDS={"@annotation":!0,"@base":!0,"@container":!0,"@context":!0,"@direction":!0,"@graph":!0,"@id":!0,"@import":!0,"@included":!0,"@index":!0,"@json":!0,"@language":!0,"@list":!0,"@nest":!0,"@none":!0,"@prefix":!0,"@propagate":!0,"@protected":!0,"@reverse":!0,"@set":!0,"@type":!0,"@value":!0,"@version":!0,"@vocab":!0};Hi.EXPAND_KEYS_BLACKLIST=["@base","@vocab","@language","@version","@direction"];Hi.ALIAS_DOMAIN_BLACKLIST=["@container","@graph","@id","@index","@list","@nest","@none","@prefix","@reverse","@set","@type","@value","@version"];Hi.ALIAS_RANGE_BLACKLIST=["@context","@preserve"];Hi.CONTAINERS=["@list","@set","@index","@language","@graph","@id","@type"];Hi.CONTAINERS_1_0=["@list","@set","@index"];Lf.Util=Hi;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultExpandOptions=t.JsonLdContextNormalized=void 0;const e=ga,r=Cf,n=Lf;class a{constructor(o){this.contextRaw=o}getContextRaw(){return this.contextRaw}expandTerm(o,u,c=t.defaultExpandOptions){const l=this.contextRaw[o];if(l===null||l&&l["@id"]===null)return null;let d=!0;if(l&&u){const g=n.Util.getContextValueId(l);if(g&&g!==o)if(typeof g!="string"||!n.Util.isValidIri(g)&&!n.Util.isValidKeyword(g))n.Util.isPotentialKeyword(g)||(d=!1);else return g}const f=n.Util.getPrefix(o,this.contextRaw),h=this.contextRaw["@vocab"],p=(!!h||h==="")&&h.indexOf(":")<0,m=this.contextRaw["@base"],y=n.Util.isPotentialKeyword(o);if(f){const g=this.contextRaw[f],b=n.Util.getContextValueId(g);if(b){if(typeof g=="string"||!c.allowPrefixForcing){if(!n.Util.isSimpleTermDefinitionPrefix(b,c))return o}else if(b[0]!=="_"&&!y&&!g["@prefix"]&&!(o in this.contextRaw))return o;return b+o.substr(f.length+1)}}else if(u&&(h||h===""||c.allowVocabRelativeToBase&&m&&p)&&!y&&!n.Util.isCompactIri(o))if(p){if(c.allowVocabRelativeToBase)return(h||m?(0,e.resolve)(h,m):"")+o;throw new r.ErrorCoded(`Relative vocab expansion for term '${o}' with vocab '${h}' is not allowed.`,r.ERROR_CODES.INVALID_VOCAB_MAPPING)}else return h+o;else if(!u&&m&&!y&&!n.Util.isCompactIri(o))return(0,e.resolve)(o,m);if(d)return o;throw new r.ErrorCoded(`Invalid IRI mapping found for context entry '${o}': '${JSON.stringify(l)}'`,r.ERROR_CODES.INVALID_IRI_MAPPING)}compactIri(o,u){if(u&&this.contextRaw["@vocab"]&&o.startsWith(this.contextRaw["@vocab"]))return o.substr(this.contextRaw["@vocab"].length);if(!u&&this.contextRaw["@base"]&&o.startsWith(this.contextRaw["@base"]))return o.substr(this.contextRaw["@base"].length);const c={prefix:"",suffix:o};for(const l in this.contextRaw){const d=this.contextRaw[l];if(d&&!n.Util.isPotentialKeyword(l)){const f=n.Util.getContextValueId(d);if(o.startsWith(f)){const h=o.substr(f.length);if(h)h.length=0&&(s!=="@type"||typeof a[s]=="object"&&!(a[s]["@protected"]||a[s]["@container"]==="@set")))throw new We.ErrorCoded(`Keywords can not be aliased to something else. Tried mapping ${s} to ${JSON.stringify(o)}`,We.ERROR_CODES.KEYWORD_REDEFINITION);if(Et.Util.ALIAS_RANGE_BLACKLIST.indexOf(Et.Util.getContextValueId(o))>=0)throw new We.ErrorCoded(`Aliasing to certain keywords is not allowed. -Tried mapping ${s} to ${JSON.stringify(o)}`,We.ERROR_CODES.INVALID_KEYWORD_ALIAS);if(o&&Et.Util.isPotentialKeyword(Et.Util.getContextValueId(o))&&o["@prefix"]===!0)throw new We.ErrorCoded(`Tried to use keyword aliases as prefix: '${s}': '${JSON.stringify(o)}'`,We.ERROR_CODES.INVALID_TERM_DEFINITION);for(;Et.Util.isPrefixValue(a[s]);){const u=a[s];let c=!1;if(typeof u=="string")a[s]=e.expandTerm(u,!0),c=c||u!==a[s];else{const l=u["@id"],d=u["@type"],f=!("@prefix"in u)||Et.Util.isValidIri(s);if("@id"in u)l!=null&&typeof l=="string"&&(a[s]=Object.assign(Object.assign({},a[s]),{"@id":e.expandTerm(l,!0)}),c=c||l!==a[s]["@id"]);else if(!Et.Util.isPotentialKeyword(s)&&f){const h=e.expandTerm(s,!0);h!==s&&(a[s]=Object.assign(Object.assign({},a[s]),{"@id":h}),c=!0)}if(d&&typeof d=="string"&&d!=="@vocab"&&(!u["@container"]||!u["@container"]["@type"])&&f){let h=e.expandTerm(d,!0);r&&d===h&&(h=e.expandTerm(d,!1)),h!==d&&(c=!0,a[s]=Object.assign(Object.assign({},a[s]),{"@type":h}))}}if(!c)break}}}normalize(e,{processingMode:r,normalizeLanguageTags:n}){if(n||r===1)for(const a of Object.keys(e))if(a==="@language"&&typeof e[a]=="string")e[a]=e[a].toLowerCase();else{const s=e[a];if(s&&typeof s=="object"&&typeof s["@language"]=="string"){const o=s["@language"].toLowerCase();o!==s["@language"]&&(e[a]=Object.assign(Object.assign({},s),{"@language":o}))}}}containersToHash(e){for(const r of Object.keys(e)){const n=e[r];if(n&&typeof n=="object"){if(typeof n["@container"]=="string")e[r]=Object.assign(Object.assign({},n),{"@container":{[n["@container"]]:!0}});else if(Array.isArray(n["@container"])){const a={};for(const s of n["@container"])a[s]=!0;e[r]=Object.assign(Object.assign({},n),{"@container":a})}}}}applyScopedProtected(e,{processingMode:r},n){if(r&&r>=1.1&&e["@protected"]){for(const a of Object.keys(e))if(!Et.Util.isReservedInternalKeyword(a)&&!Et.Util.isPotentialKeyword(a)&&!Et.Util.isTermProtected(e,a)){const s=e[a];s&&typeof s=="object"?"@protected"in e[a]||(e[a]=Object.assign(Object.assign({},e[a]),{"@protected":!0})):(e[a]={"@id":s,"@protected":!0},Et.Util.isSimpleTermDefinitionPrefix(s,n)&&(e[a]=Object.assign(Object.assign({},e[a]),{"@prefix":!0})))}delete e["@protected"]}}validateKeywordRedefinitions(e,r,n,a){for(const s of a??Object.keys(r))if(Et.Util.isTermProtected(e,s)&&(typeof r[s]=="string"?r[s]={"@id":r[s],"@protected":!0}:r[s]=Object.assign(Object.assign({},r[s]),{"@protected":!0}),!Et.Util.deepEqual(e[s],r[s])))throw new We.ErrorCoded(`Attempted to override the protected keyword ${s} from ${JSON.stringify(Et.Util.getContextValueId(e[s]))} to ${JSON.stringify(Et.Util.getContextValueId(r[s]))}`,We.ERROR_CODES.PROTECTED_TERM_REDEFINITION)}validate(e,{processingMode:r}){for(const n of Object.keys(e)){if(Et.Util.isReservedInternalKeyword(n))continue;if(n==="")throw new We.ErrorCoded(`The empty term is not allowed, got: '${n}': '${JSON.stringify(e[n])}'`,We.ERROR_CODES.INVALID_TERM_DEFINITION);const a=e[n],s=typeof a;if(Et.Util.isPotentialKeyword(n)){switch(n.substr(1)){case"vocab":if(a!==null&&s!=="string")throw new We.ErrorCoded(`Found an invalid @vocab IRI: ${a}`,We.ERROR_CODES.INVALID_VOCAB_MAPPING);break;case"base":if(a!==null&&s!=="string")throw new We.ErrorCoded(`Found an invalid @base IRI: ${e[n]}`,We.ERROR_CODES.INVALID_BASE_IRI);break;case"language":a!==null&&eo.validateLanguage(a,!0,We.ERROR_CODES.INVALID_DEFAULT_LANGUAGE);break;case"version":if(a!==null&&s!=="number")throw new We.ErrorCoded(`Found an invalid @version number: ${a}`,We.ERROR_CODES.INVALID_VERSION_VALUE);break;case"direction":a!==null&&eo.validateDirection(a,!0);break;case"propagate":if(r===1)throw new We.ErrorCoded(`Found an illegal @propagate keyword: ${a}`,We.ERROR_CODES.INVALID_CONTEXT_ENTRY);if(a!==null&&s!=="boolean")throw new We.ErrorCoded(`Found an invalid @propagate value: ${a}`,We.ERROR_CODES.INVALID_PROPAGATE_VALUE);break}if(Et.Util.isValidKeyword(n)&&Et.Util.isValidKeyword(Et.Util.getContextValueId(a)))throw new We.ErrorCoded(`Illegal keyword alias in term value, found: '${n}': '${Et.Util.getContextValueId(a)}'`,We.ERROR_CODES.KEYWORD_REDEFINITION);continue}if(a!==null)switch(s){case"string":if(Et.Util.getPrefix(a,e)===n)throw new We.ErrorCoded(`Detected cyclical IRI mapping in context entry: '${n}': '${JSON.stringify(a)}'`,We.ERROR_CODES.CYCLIC_IRI_MAPPING);if(Et.Util.isValidIriWeak(n)){if(a==="@type")throw new We.ErrorCoded(`IRIs can not be mapped to @type, found: '${n}': '${a}'`,We.ERROR_CODES.INVALID_IRI_MAPPING);if(Et.Util.isValidIri(a)&&a!==new Aa.JsonLdContextNormalized(e).expandTerm(n))throw new We.ErrorCoded(`IRIs can not be mapped to other IRIs, found: '${n}': '${a}'`,We.ERROR_CODES.INVALID_IRI_MAPPING)}break;case"object":if(!Et.Util.isCompactIri(n)&&!("@id"in a)&&(a["@type"]==="@id"?!e["@base"]:!e["@vocab"]))throw new We.ErrorCoded(`Missing @id in context entry: '${n}': '${JSON.stringify(a)}'`,We.ERROR_CODES.INVALID_IRI_MAPPING);for(const o of Object.keys(a)){const u=a[o];if(u)switch(o){case"@id":if(Et.Util.isValidKeyword(u)&&u!=="@type"&&u!=="@id"&&u!=="@graph"&&u!=="@nest")throw new We.ErrorCoded(`Illegal keyword alias in term value, found: '${n}': '${JSON.stringify(a)}'`,We.ERROR_CODES.INVALID_IRI_MAPPING);if(Et.Util.isValidIriWeak(n)){if(u==="@type")throw new We.ErrorCoded(`IRIs can not be mapped to @type, found: '${n}': '${JSON.stringify(a)}'`,We.ERROR_CODES.INVALID_IRI_MAPPING);if(Et.Util.isValidIri(u)&&u!==new Aa.JsonLdContextNormalized(e).expandTerm(n))throw new We.ErrorCoded(`IRIs can not be mapped to other IRIs, found: '${n}': '${JSON.stringify(a)}'`,We.ERROR_CODES.INVALID_IRI_MAPPING)}if(typeof u!="string")throw new We.ErrorCoded(`Detected non-string @id in context entry: '${n}': '${JSON.stringify(a)}'`,We.ERROR_CODES.INVALID_IRI_MAPPING);if(Et.Util.getPrefix(u,e)===n)throw new We.ErrorCoded(`Detected cyclical IRI mapping in context entry: '${n}': '${JSON.stringify(a)}'`,We.ERROR_CODES.CYCLIC_IRI_MAPPING);break;case"@type":if(a["@container"]==="@type"&&u!=="@id"&&u!=="@vocab")throw new We.ErrorCoded(`@container: @type only allows @type: @id or @vocab, but got: '${n}': '${u}'`,We.ERROR_CODES.INVALID_TYPE_MAPPING);if(typeof u!="string")throw new We.ErrorCoded(`The value of an '@type' must be a string, got '${JSON.stringify(s)}'`,We.ERROR_CODES.INVALID_TYPE_MAPPING);if(u!=="@id"&&u!=="@vocab"&&(r===1||u!=="@json")&&(r===1||u!=="@none")&&(u[0]==="_"||!Et.Util.isValidIri(u)))throw new We.ErrorCoded(`A context @type must be an absolute IRI, found: '${n}': '${u}'`,We.ERROR_CODES.INVALID_TYPE_MAPPING);break;case"@reverse":if(typeof u=="string"&&a["@id"]&&a["@id"]!==u)throw new We.ErrorCoded(`Found non-matching @id and @reverse term values in '${n}':'${u}' and '${a["@id"]}'`,We.ERROR_CODES.INVALID_REVERSE_PROPERTY);if("@nest"in a)throw new We.ErrorCoded(`@nest is not allowed in the reverse property '${n}'`,We.ERROR_CODES.INVALID_REVERSE_PROPERTY);break;case"@container":if(r===1&&(Object.keys(u).length>1||Et.Util.CONTAINERS_1_0.indexOf(Object.keys(u)[0])<0))throw new We.ErrorCoded(`Invalid term @container for '${n}' ('${Object.keys(u)}') in 1.0, must be only one of ${Et.Util.CONTAINERS_1_0.join(", ")}`,We.ERROR_CODES.INVALID_CONTAINER_MAPPING);for(const c of Object.keys(u)){if(c==="@list"&&a["@reverse"])throw new We.ErrorCoded(`Term value can not be @container: @list and @reverse at the same time on '${n}'`,We.ERROR_CODES.INVALID_REVERSE_PROPERTY);if(Et.Util.CONTAINERS.indexOf(c)<0)throw new We.ErrorCoded(`Invalid term @container for '${n}' ('${c}'), must be one of ${Et.Util.CONTAINERS.join(", ")}`,We.ERROR_CODES.INVALID_CONTAINER_MAPPING)}break;case"@language":eo.validateLanguage(u,!0,We.ERROR_CODES.INVALID_LANGUAGE_MAPPING);break;case"@direction":eo.validateDirection(u,!0);break;case"@prefix":if(u!==null&&typeof u!="boolean")throw new We.ErrorCoded(`Found an invalid term @prefix boolean in: '${n}': '${JSON.stringify(a)}'`,We.ERROR_CODES.INVALID_PREFIX_VALUE);if(!("@id"in a)&&!Et.Util.isValidIri(n))throw new We.ErrorCoded(`Invalid @prefix definition for '${n}' ('${JSON.stringify(a)}'`,We.ERROR_CODES.INVALID_TERM_DEFINITION);break;case"@index":if(r===1||!a["@container"]||!a["@container"]["@index"])throw new We.ErrorCoded(`Attempt to add illegal key to value object: '${n}': '${JSON.stringify(a)}'`,We.ERROR_CODES.INVALID_TERM_DEFINITION);break;case"@nest":if(Et.Util.isPotentialKeyword(u)&&u!=="@nest")throw new We.ErrorCoded(`Found an invalid term @nest value in: '${n}': '${JSON.stringify(a)}'`,We.ERROR_CODES.INVALID_NEST_VALUE)}}break;default:throw new We.ErrorCoded(`Found an invalid term value: '${n}': '${a}'`,We.ERROR_CODES.INVALID_TERM_DEFINITION)}}}applyBaseEntry(e,r,n){return typeof e=="string"||(n&&!("@base"in e)&&r.parentContext&&typeof r.parentContext=="object"&&"@base"in r.parentContext&&(e["@base"]=r.parentContext["@base"],r.parentContext["@__baseDocument"]&&(e["@__baseDocument"]=!0)),r.baseIRI&&!r.external&&("@base"in e?e["@base"]!==null&&typeof e["@base"]=="string"&&!Et.Util.isValidIri(e["@base"])&&(e["@base"]=(0,a5.resolve)(e["@base"],r.parentContext&&r.parentContext["@base"]||r.baseIRI)):(e["@base"]=r.baseIRI,e["@__baseDocument"]=!0))),e}normalizeContextIri(e,r){if(!Et.Util.isValidIri(e))try{e=(0,a5.resolve)(e,r)}catch{throw new Error(`Invalid context IRI: ${e}`)}return this.redirectSchemaOrgHttps&&e.startsWith("http://schema.org")&&(e="https://schema.org/"),e}async parseInnerContexts(e,r,n){for(const a of n??Object.keys(e)){const s=e[a];if(s&&typeof s=="object"&&"@context"in s&&s["@context"]!==null&&!r.ignoreScopedContexts){if(this.validateContext)try{const o=Object.assign(Object.assign({},e),{[a]:Object.assign({},e[a])});delete o[a]["@context"],await this.parse(s["@context"],Object.assign(Object.assign({},r),{external:!1,parentContext:o,ignoreProtection:!0,ignoreRemoteScopedContexts:!0,ignoreScopedContexts:!0}))}catch(o){throw new We.ErrorCoded(o.message,We.ERROR_CODES.INVALID_SCOPED_CONTEXT)}e[a]=Object.assign(Object.assign({},s),{"@context":(await this.parse(s["@context"],Object.assign(Object.assign({},r),{external:!1,minimalProcessing:!0,ignoreRemoteScopedContexts:!0,parentContext:e}))).getContextRaw()})}}return e}async parse(e,r={},n={}){const{baseIRI:a,parentContext:s,external:o,processingMode:u=eo.DEFAULT_PROCESSING_MODE,normalizeLanguageTags:c,ignoreProtection:l,minimalProcessing:d}=r,f=r.remoteContexts||{};if(Object.keys(f).length>=this.remoteContextsDepthLimit)throw new We.ErrorCoded("Detected an overflow in remote context inclusions: "+Object.keys(f),We.ERROR_CODES.CONTEXT_OVERFLOW);if(e==null){if(!l&&s&&Et.Util.hasProtectedTerms(s))throw new We.ErrorCoded("Illegal context nullification when terms are protected",We.ERROR_CODES.INVALID_CONTEXT_NULLIFICATION);return new Aa.JsonLdContextNormalized(this.applyBaseEntry({},r,!1))}else if(typeof e=="string"){const h=this.normalizeContextIri(e,a),p=this.getOverriddenLoad(h,r);if(p)return new Aa.JsonLdContextNormalized(p);const m=await this.parse(await this.load(h),Object.assign(Object.assign({},r),{baseIRI:h,external:!0,remoteContexts:Object.assign(Object.assign({},f),{[h]:!0})}));return this.applyBaseEntry(m.getContextRaw(),r,!0),m}else if(Array.isArray(e)){const h=[],p=await Promise.all(e.map((y,g)=>{if(typeof y=="string"){const b=this.normalizeContextIri(y,a);h[g]=b;const v=this.getOverriddenLoad(b,r);return v||this.load(b)}else return y}));if(d)return new Aa.JsonLdContextNormalized(p);const m=await p.reduce((y,g,b)=>y.then(v=>this.parse(g,Object.assign(Object.assign({},r),{baseIRI:h[b]||r.baseIRI,external:!!h[b]||r.external,parentContext:v.getContextRaw(),remoteContexts:h[b]?Object.assign(Object.assign({},f),{[h[b]]:!0}):f}),{skipValidation:b=1.1){if(typeof e["@import"]!="string")throw new We.ErrorCoded("An @import value must be a string, but got "+typeof e["@import"],We.ERROR_CODES.INVALID_IMPORT_VALUE);h=await this.loadImportContext(this.normalizeContextIri(e["@import"],a)),delete e["@import"]}else throw new We.ErrorCoded("Context importing is not supported in JSON-LD 1.0",We.ERROR_CODES.INVALID_CONTEXT_ENTRY);this.applyScopedProtected(h,{processingMode:u},Aa.defaultExpandOptions);const p=Object.assign(h,e);this.idifyReverseTerms(p),this.normalize(p,{processingMode:u,normalizeLanguageTags:c}),this.applyScopedProtected(p,{processingMode:u},Aa.defaultExpandOptions);const m=Object.keys(p),y=[];if(typeof s=="object")for(const b in s)b in p?y.push(b):p[b]=s[b];await this.parseInnerContexts(p,r,m);const g=new Aa.JsonLdContextNormalized(p);return(p&&p["@version"]||eo.DEFAULT_PROCESSING_MODE)>=1.1&&(e["@vocab"]&&typeof e["@vocab"]=="string"||e["@vocab"]==="")&&(s&&"@vocab"in s&&e["@vocab"].indexOf(":")<0?p["@vocab"]=s["@vocab"]+e["@vocab"]:(Et.Util.isCompactIri(e["@vocab"])||e["@vocab"]in p)&&(p["@vocab"]=g.expandTerm(e["@vocab"],!0))),this.expandPrefixedTerms(g,this.expandContentTypeToBase,m),!l&&s&&u>=1.1&&this.validateKeywordRedefinitions(s,p,Aa.defaultExpandOptions,y),this.validateContext&&!n.skipValidation&&this.validate(p,{processingMode:u}),g}else throw new We.ErrorCoded(`Tried parsing a context that is not a string, array or object, but got ${e}`,We.ERROR_CODES.INVALID_LOCAL_CONTEXT)}async load(e){const r=this.documentCache[e];if(r)return r;let n;try{n=await this.documentLoader.load(e)}catch(a){throw new We.ErrorCoded(`Failed to load remote context ${e}: ${a.message}`,We.ERROR_CODES.LOADING_REMOTE_CONTEXT_FAILED)}if(!("@context"in n))throw new We.ErrorCoded(`Missing @context in remote context at ${e}`,We.ERROR_CODES.INVALID_REMOTE_CONTEXT);return this.documentCache[e]=n["@context"]}getOverriddenLoad(e,r){if(e in(r.remoteContexts||{})){if(r.ignoreRemoteScopedContexts)return e;throw new We.ErrorCoded("Detected a cyclic context inclusion of "+e,We.ERROR_CODES.RECURSIVE_CONTEXT_INCLUSION)}return null}async loadImportContext(e){let r=await this.load(e);if(typeof r!="object"||Array.isArray(r))throw new We.ErrorCoded("An imported context must be a single object: "+e,We.ERROR_CODES.INVALID_REMOTE_CONTEXT);if("@import"in r)throw new We.ErrorCoded("An imported context can not import another context: "+e,We.ERROR_CODES.INVALID_CONTEXT_ENTRY);return r=Object.assign({},r),this.containersToHash(r),r}}eo.DEFAULT_PROCESSING_MODE=1.1;hT.ContextParser=eo;var XY={};Object.defineProperty(XY,"__esModule",{value:!0});var YY={};Object.defineProperty(YY,"__esModule",{value:!0});(function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(hT,t),r(Cf,t),r(R1,t),r(XY,t),r(YY,t),r(WC,t),r(Lf,t)})(hn);var s5;function ZY(){if(s5)return tp;s5=1,Object.defineProperty(tp,"__esModule",{value:!0}),tp.Util=void 0;const t=Ot,e=hn,r=xt();class n{constructor(s){this.nodeHandlers={},this.nodeValueHandlers={},this.directiveNodeHandlers={},this.settings=s,this.dataFactory=s.dataFactory||new t.DataFactory,this.operationFactory=new r.Factory(this.dataFactory),this.contextParser=new e.ContextParser}registerNodeHandler(s){this.nodeHandlers[s.targetKind]=s}registerNodeValueHandler(s){this.nodeValueHandlers[s.targetKind]=s}registerDirectiveNodeHandler(s){this.directiveNodeHandlers[s.targetKind]=s}handleNode(s,o){const u=this.nodeHandlers[s.kind];if(!u)throw new Error(`Unsupported GraphQL node '${s.kind}'`);return u.handle(s,o)}handleNodeValue(s,o,u){const c=this.nodeValueHandlers[s.kind];if(!c)throw new Error(`Unsupported GraphQL value node '${s.kind}'`);return c.handle(s,o,u)}handleDirectiveNode(s,o){const u=this.directiveNodeHandlers[s.directive.name.value];return u?u.handle(s,o):null}joinOperations(s){if(s.length===1)return s[0];const o=[],u=[];for(const c of s)c.type==="bgp"?o.push(c):u.push(c);if(o.length===s.length)return this.joinOperationsAsBgp(o);if(o.length===s.length-1&&u[0].type==="leftjoin"&&u[0].input[0].type==="bgp"){const c=u[0];return o.push(c.input[0]),this.operationFactory.createLeftJoin(this.joinOperationsAsBgp(o),c.input[1])}else return u.length===s.length?this.joinOperationsAsNestedJoin(u):this.joinOperationsAsNestedJoin([this.joinOperationsAsBgp(o),this.joinOperationsAsNestedJoin(u)])}joinOperationsAsBgp(s){return this.operationFactory.createBgp([].concat.apply([],s.map(o=>o.patterns)))}joinOperationsAsNestedJoin(s){return this.operationFactory.createJoin(s)}appendFieldToPath(s,o){return s.concat([o])}getFieldLabel(s){return(s.alias?s.alias:s.name).value}nameToVariable(s,o){return this.dataFactory.variable((o.path.length?o.path.join(this.settings.variableDelimiter)+this.settings.variableDelimiter:"")+s)}valueToNamedNode(s,o){const u=o.expandTerm(s,!0);if(this.settings.requireContext&&!u)throw new Error("No context entry was found for "+s);return this.dataFactory.namedNode(u||s)}getArgument(s,o){if(s){for(const u of s)if(u.name.value===o)return u}}newTypePattern(s,o,u){return this.operationFactory.createPattern(s,this.dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"),this.valueToNamedNode(o.name.value,u.context),u.graph)}createQuadPattern(s,o,u,c,l){const d=this.valueToNamedNode(o.value,l);return l&&l.getContextRaw()[o.value]&&l.getContextRaw()[o.value]["@reverse"]?this.operationFactory.createPattern(u,d,s,c):this.operationFactory.createPattern(s,d,u,c)}createQuadPath(s,o,u,c,l,d){const f=this.valueToNamedNode(o.value,d);let h=this.operationFactory.createLink(f);for(const p of u.values){if(p.kind!=="EnumValue")throw new Error("Invalid value type for 'alt' argument, must be EnumValue, but got "+p.kind);h=this.operationFactory.createAlt([h,this.operationFactory.createLink(this.valueToNamedNode(p.value,d))])}return d&&d.getContextRaw()[o.value]&&d.getContextRaw()[o.value]["@reverse"]?this.operationFactory.createPath(c,h,s,l):this.operationFactory.createPath(s,h,c,l)}}return tp.Util=n,tp}var o5;function K3e(){if(o5)return ep;o5=1;var t=I&&I.__awaiter||function(u,c,l,d){function f(h){return h instanceof l?h:new l(function(p){p(h)})}return new(l||(l=Promise))(function(h,p){function m(b){try{g(d.next(b))}catch(v){p(v)}}function y(b){try{g(d.throw(b))}catch(v){p(v)}}function g(b){b.done?h(b.value):f(b.value).then(m,y)}g((d=d.apply(u,c||[])).next())})};Object.defineProperty(ep,"__esModule",{value:!0}),ep.Converter=void 0;const e=L3e,r=CY(),n=DY(),a=O1(),s=ZY();class o{constructor(c){c=c||{},c.variableDelimiter=c.variableDelimiter||"_",c.expressionVariableCounter=c.expressionVariableCounter||0,this.util=new s.Util(c),this.initializeNodeHandlers(c)}static registerNodeHandlers(c,l){c.registerNodeHandler(new r.NodeHandlerDocument(c,l)),c.registerNodeHandler(new r.NodeHandlerDefinitionOperation(c,l)),c.registerNodeHandler(new r.NodeHandlerDefinitionFragment(c,l)),c.registerNodeHandler(new r.NodeHandlerSelectionFragmentSpread(c,l)),c.registerNodeHandler(new r.NodeHandlerSelectionInlineFragment(c,l)),c.registerNodeHandler(new r.NodeHandlerSelectionField(c,l))}static registerNodeValueHandlers(c,l){c.registerNodeValueHandler(new r.NodeValueHandlerVariable(c,l)),c.registerNodeValueHandler(new r.NodeValueHandlerInt(c,l)),c.registerNodeValueHandler(new r.NodeValueHandlerFloat(c,l)),c.registerNodeValueHandler(new r.NodeValueHandlerString(c,l)),c.registerNodeValueHandler(new r.NodeValueHandlerBoolean(c,l)),c.registerNodeValueHandler(new r.NodeValueHandlerNull(c,l)),c.registerNodeValueHandler(new r.NodeValueHandlerEnum(c,l)),c.registerNodeValueHandler(new r.NodeValueHandlerList(c,l)),c.registerNodeValueHandler(new r.NodeValueHandlerObject(c,l))}static registerDirectiveNodeHandlers(c,l){c.registerDirectiveNodeHandler(new n.DirectiveNodeHandlerInclude(c,l)),c.registerDirectiveNodeHandler(new n.DirectiveNodeHandlerOptional(c,l)),c.registerDirectiveNodeHandler(new n.DirectiveNodeHandlerPlural(c,l)),c.registerDirectiveNodeHandler(new n.DirectiveNodeHandlerSingle(c,l)),c.registerDirectiveNodeHandler(new n.DirectiveNodeHandlerSkip(c,l))}graphqlToSparqlAlgebra(c,l,d){return t(this,void 0,void 0,function*(){return this.graphqlToSparqlAlgebraRawContext(c,yield this.util.contextParser.parse(l),d)})}graphqlToSparqlAlgebraRawContext(c,l,d){d=d||{};const f=typeof c=="string"?(0,e.parse)(c):c,h=this.indexFragments(f),p={context:l,fragmentDefinitions:h,graph:this.util.dataFactory.defaultGraph(),path:[],singularizeState:a.SingularizeState.PLURAL,singularizeVariables:d.singularizeVariables||{},subject:null,terminalVariables:[],variablesDict:d.variablesDict||{},variablesMetaDict:{}};return this.util.handleNode(f,p)}indexFragments(c){const l={},d=[];for(const f of c.definitions)f.kind==="FragmentDefinition"?l[f.name.value]=f:d.push(f);return c.definitions=d,l}initializeNodeHandlers(c){o.registerNodeHandlers(this.util,c),o.registerNodeValueHandlers(this.util,c),o.registerDirectiveNodeHandlers(this.util,c)}}return ep.Converter=o,ep}var N3={},u5;function J3e(){return u5||(u5=1,Object.defineProperty(N3,"__esModule",{value:!0})),N3}var c5;function X3e(){return c5||(c5=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s),Object.defineProperty(n,o,{enumerable:!0,get:function(){return a[s]}})}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(CY(),t),r(K3e(),t),r(O1(),t),r(J3e(),t),r(ZY(),t)}(T3)),T3}var l5;function Y3e(){if(l5)return xh;l5=1,Object.defineProperty(xh,"__esModule",{value:!0}),xh.ActorQueryParseGraphql=void 0;const t=NY(),e=qt,r=X3e();let n=class extends t.ActorQueryParse{constructor(s){super(s),this.graphqlToSparql=new r.Converter({requireContext:!0})}async test(s){var o;if(((o=s.queryFormat)==null?void 0:o.language)!=="graphql")throw new Error("This actor can only parse GraphQL queries");return!0}async run(s){const o=s.context.get(e.KeysInitQuery.jsonLdContext)||{},u={singularizeVariables:s.context.get(e.KeysInitQuery.graphqlSingularizeVariables)};return{operation:await this.graphqlToSparql.graphqlToSparqlAlgebra(s.query,o,u)}}};return xh.ActorQueryParseGraphql=n,xh}var d5;function Z3e(){return d5||(d5=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Y3e(),t)}(S3)),S3}var D3={},rp={},C3={},np={},L3={},ip={},f5;function eZ(){if(f5)return ip;f5=1,Object.defineProperty(ip,"__esModule",{value:!0}),ip.ActorAbstractMediaTyped=void 0;const t=st;let e=class extends t.Actor{constructor(n){super(n)}async run(n){if("handle"in n){const a=n;return{handle:await this.runHandle(a.handle,a.handleMediaType,n.context)}}if("mediaTypes"in n)return{mediaTypes:await this.getMediaTypes(n.context)};if("mediaTypeFormats"in n)return{mediaTypeFormats:await this.getMediaTypeFormats(n.context)};throw new Error("Either a handle, mediaTypes or mediaTypeFormats action needs to be provided")}async test(n){if("handle"in n){const a=n;return{handle:await this.testHandle(a.handle,a.handleMediaType,n.context)}}if("mediaTypes"in n)return{mediaTypes:await this.testMediaType(n.context)};if("mediaTypeFormats"in n)return{mediaTypeFormats:await this.testMediaTypeFormats(n.context)};throw new Error("Either a handle, mediaTypes or mediaTypeFormats action needs to be provided")}};return ip.ActorAbstractMediaTyped=e,ip}var ap={},h5;function eOe(){if(h5)return ap;h5=1,Object.defineProperty(ap,"__esModule",{value:!0}),ap.ActorAbstractMediaTypedFixed=void 0;const t=eZ();let e=class extends t.ActorAbstractMediaTyped{constructor(n){super(n);const a=this.priorityScale||this.priorityScale===0?this.priorityScale:1;if(this.mediaTypePriorities)for(const[s,[o,u]]of Object.entries(this.mediaTypePriorities).entries())this.mediaTypePriorities[o]=a*u;this.mediaTypePriorities=Object.freeze(this.mediaTypePriorities),this.mediaTypeFormats=Object.freeze(this.mediaTypeFormats)}async testHandle(n,a,s){if(!a||!(a in this.mediaTypePriorities))throw new Error(`Unrecognized media type: ${a}`);return await this.testHandleChecked(n,s)}async testMediaType(n){return!0}async getMediaTypes(n){return this.mediaTypePriorities}async testMediaTypeFormats(n){return!0}async getMediaTypeFormats(n){return this.mediaTypeFormats}};return ap.ActorAbstractMediaTypedFixed=e,ap}var p5;function jf(){return p5||(p5=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(eZ(),t),r(eOe(),t)}(L3)),L3}var y5;function tOe(){if(y5)return np;y5=1,Object.defineProperty(np,"__esModule",{value:!0}),np.ActorQueryResultSerialize=void 0;const t=jf();let e=class extends t.ActorAbstractMediaTyped{constructor(n){super(n)}};return np.ActorQueryResultSerialize=e,np}var sp={},m5;function rOe(){if(m5)return sp;m5=1,Object.defineProperty(sp,"__esModule",{value:!0}),sp.ActorQueryResultSerializeFixedMediaTypes=void 0;const t=jf();let e=class extends t.ActorAbstractMediaTypedFixed{constructor(n){super(n)}async testHandleChecked(n,a){return!0}};return sp.ActorQueryResultSerializeFixedMediaTypes=e,sp}var g5;function Ss(){return g5||(g5=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(tOe(),t),r(rOe(),t)}(C3)),C3}var _5;function nOe(){if(_5)return rp;_5=1,Object.defineProperty(rp,"__esModule",{value:!0}),rp.ActorQueryResultSerializeJson=void 0;const t=Ss(),e=Mt,r=nr,n=Pt;let a=class extends t.ActorQueryResultSerializeFixedMediaTypes{constructor(o){super(o)}async testHandleChecked(o,u){if(!["bindings","quads","boolean"].includes(o.type))throw new Error("This actor can only handle bindings or quad streams.");return!0}async runHandle(o,u,c){const l=new n.Readable;if(l._read=()=>{},o.type==="bindings"||o.type==="quads"){let d=o.type==="bindings"?(0,e.wrap)(o.bindingsStream).map(h=>JSON.stringify(Object.fromEntries([...h].map(([p,m])=>[p.value,r.termToString(m)])))):(0,e.wrap)(o.quadStream).map(h=>JSON.stringify(r.quadToStringQuad(h))),f=!0;d=d.map(h=>{const p=`${f?"":","} +Tried mapping ${s} to ${JSON.stringify(o)}`,We.ERROR_CODES.INVALID_KEYWORD_ALIAS);if(o&&Et.Util.isPotentialKeyword(Et.Util.getContextValueId(o))&&o["@prefix"]===!0)throw new We.ErrorCoded(`Tried to use keyword aliases as prefix: '${s}': '${JSON.stringify(o)}'`,We.ERROR_CODES.INVALID_TERM_DEFINITION);for(;Et.Util.isPrefixValue(a[s]);){const u=a[s];let c=!1;if(typeof u=="string")a[s]=e.expandTerm(u,!0),c=c||u!==a[s];else{const l=u["@id"],d=u["@type"],f=!("@prefix"in u)||Et.Util.isValidIri(s);if("@id"in u)l!=null&&typeof l=="string"&&(a[s]=Object.assign(Object.assign({},a[s]),{"@id":e.expandTerm(l,!0)}),c=c||l!==a[s]["@id"]);else if(!Et.Util.isPotentialKeyword(s)&&f){const h=e.expandTerm(s,!0);h!==s&&(a[s]=Object.assign(Object.assign({},a[s]),{"@id":h}),c=!0)}if(d&&typeof d=="string"&&d!=="@vocab"&&(!u["@container"]||!u["@container"]["@type"])&&f){let h=e.expandTerm(d,!0);r&&d===h&&(h=e.expandTerm(d,!1)),h!==d&&(c=!0,a[s]=Object.assign(Object.assign({},a[s]),{"@type":h}))}}if(!c)break}}}normalize(e,{processingMode:r,normalizeLanguageTags:n}){if(n||r===1)for(const a of Object.keys(e))if(a==="@language"&&typeof e[a]=="string")e[a]=e[a].toLowerCase();else{const s=e[a];if(s&&typeof s=="object"&&typeof s["@language"]=="string"){const o=s["@language"].toLowerCase();o!==s["@language"]&&(e[a]=Object.assign(Object.assign({},s),{"@language":o}))}}}containersToHash(e){for(const r of Object.keys(e)){const n=e[r];if(n&&typeof n=="object"){if(typeof n["@container"]=="string")e[r]=Object.assign(Object.assign({},n),{"@container":{[n["@container"]]:!0}});else if(Array.isArray(n["@container"])){const a={};for(const s of n["@container"])a[s]=!0;e[r]=Object.assign(Object.assign({},n),{"@container":a})}}}}applyScopedProtected(e,{processingMode:r},n){if(r&&r>=1.1&&e["@protected"]){for(const a of Object.keys(e))if(!Et.Util.isReservedInternalKeyword(a)&&!Et.Util.isPotentialKeyword(a)&&!Et.Util.isTermProtected(e,a)){const s=e[a];s&&typeof s=="object"?"@protected"in e[a]||(e[a]=Object.assign(Object.assign({},e[a]),{"@protected":!0})):(e[a]={"@id":s,"@protected":!0},Et.Util.isSimpleTermDefinitionPrefix(s,n)&&(e[a]=Object.assign(Object.assign({},e[a]),{"@prefix":!0})))}delete e["@protected"]}}validateKeywordRedefinitions(e,r,n,a){for(const s of a??Object.keys(r))if(Et.Util.isTermProtected(e,s)&&(typeof r[s]=="string"?r[s]={"@id":r[s],"@protected":!0}:r[s]=Object.assign(Object.assign({},r[s]),{"@protected":!0}),!Et.Util.deepEqual(e[s],r[s])))throw new We.ErrorCoded(`Attempted to override the protected keyword ${s} from ${JSON.stringify(Et.Util.getContextValueId(e[s]))} to ${JSON.stringify(Et.Util.getContextValueId(r[s]))}`,We.ERROR_CODES.PROTECTED_TERM_REDEFINITION)}validate(e,{processingMode:r}){for(const n of Object.keys(e)){if(Et.Util.isReservedInternalKeyword(n))continue;if(n==="")throw new We.ErrorCoded(`The empty term is not allowed, got: '${n}': '${JSON.stringify(e[n])}'`,We.ERROR_CODES.INVALID_TERM_DEFINITION);const a=e[n],s=typeof a;if(Et.Util.isPotentialKeyword(n)){switch(n.substr(1)){case"vocab":if(a!==null&&s!=="string")throw new We.ErrorCoded(`Found an invalid @vocab IRI: ${a}`,We.ERROR_CODES.INVALID_VOCAB_MAPPING);break;case"base":if(a!==null&&s!=="string")throw new We.ErrorCoded(`Found an invalid @base IRI: ${e[n]}`,We.ERROR_CODES.INVALID_BASE_IRI);break;case"language":a!==null&&eo.validateLanguage(a,!0,We.ERROR_CODES.INVALID_DEFAULT_LANGUAGE);break;case"version":if(a!==null&&s!=="number")throw new We.ErrorCoded(`Found an invalid @version number: ${a}`,We.ERROR_CODES.INVALID_VERSION_VALUE);break;case"direction":a!==null&&eo.validateDirection(a,!0);break;case"propagate":if(r===1)throw new We.ErrorCoded(`Found an illegal @propagate keyword: ${a}`,We.ERROR_CODES.INVALID_CONTEXT_ENTRY);if(a!==null&&s!=="boolean")throw new We.ErrorCoded(`Found an invalid @propagate value: ${a}`,We.ERROR_CODES.INVALID_PROPAGATE_VALUE);break}if(Et.Util.isValidKeyword(n)&&Et.Util.isValidKeyword(Et.Util.getContextValueId(a)))throw new We.ErrorCoded(`Illegal keyword alias in term value, found: '${n}': '${Et.Util.getContextValueId(a)}'`,We.ERROR_CODES.KEYWORD_REDEFINITION);continue}if(a!==null)switch(s){case"string":if(Et.Util.getPrefix(a,e)===n)throw new We.ErrorCoded(`Detected cyclical IRI mapping in context entry: '${n}': '${JSON.stringify(a)}'`,We.ERROR_CODES.CYCLIC_IRI_MAPPING);if(Et.Util.isValidIriWeak(n)){if(a==="@type")throw new We.ErrorCoded(`IRIs can not be mapped to @type, found: '${n}': '${a}'`,We.ERROR_CODES.INVALID_IRI_MAPPING);if(Et.Util.isValidIri(a)&&a!==new Aa.JsonLdContextNormalized(e).expandTerm(n))throw new We.ErrorCoded(`IRIs can not be mapped to other IRIs, found: '${n}': '${a}'`,We.ERROR_CODES.INVALID_IRI_MAPPING)}break;case"object":if(!Et.Util.isCompactIri(n)&&!("@id"in a)&&(a["@type"]==="@id"?!e["@base"]:!e["@vocab"]))throw new We.ErrorCoded(`Missing @id in context entry: '${n}': '${JSON.stringify(a)}'`,We.ERROR_CODES.INVALID_IRI_MAPPING);for(const o of Object.keys(a)){const u=a[o];if(u)switch(o){case"@id":if(Et.Util.isValidKeyword(u)&&u!=="@type"&&u!=="@id"&&u!=="@graph"&&u!=="@nest")throw new We.ErrorCoded(`Illegal keyword alias in term value, found: '${n}': '${JSON.stringify(a)}'`,We.ERROR_CODES.INVALID_IRI_MAPPING);if(Et.Util.isValidIriWeak(n)){if(u==="@type")throw new We.ErrorCoded(`IRIs can not be mapped to @type, found: '${n}': '${JSON.stringify(a)}'`,We.ERROR_CODES.INVALID_IRI_MAPPING);if(Et.Util.isValidIri(u)&&u!==new Aa.JsonLdContextNormalized(e).expandTerm(n))throw new We.ErrorCoded(`IRIs can not be mapped to other IRIs, found: '${n}': '${JSON.stringify(a)}'`,We.ERROR_CODES.INVALID_IRI_MAPPING)}if(typeof u!="string")throw new We.ErrorCoded(`Detected non-string @id in context entry: '${n}': '${JSON.stringify(a)}'`,We.ERROR_CODES.INVALID_IRI_MAPPING);if(Et.Util.getPrefix(u,e)===n)throw new We.ErrorCoded(`Detected cyclical IRI mapping in context entry: '${n}': '${JSON.stringify(a)}'`,We.ERROR_CODES.CYCLIC_IRI_MAPPING);break;case"@type":if(a["@container"]==="@type"&&u!=="@id"&&u!=="@vocab")throw new We.ErrorCoded(`@container: @type only allows @type: @id or @vocab, but got: '${n}': '${u}'`,We.ERROR_CODES.INVALID_TYPE_MAPPING);if(typeof u!="string")throw new We.ErrorCoded(`The value of an '@type' must be a string, got '${JSON.stringify(s)}'`,We.ERROR_CODES.INVALID_TYPE_MAPPING);if(u!=="@id"&&u!=="@vocab"&&(r===1||u!=="@json")&&(r===1||u!=="@none")&&(u[0]==="_"||!Et.Util.isValidIri(u)))throw new We.ErrorCoded(`A context @type must be an absolute IRI, found: '${n}': '${u}'`,We.ERROR_CODES.INVALID_TYPE_MAPPING);break;case"@reverse":if(typeof u=="string"&&a["@id"]&&a["@id"]!==u)throw new We.ErrorCoded(`Found non-matching @id and @reverse term values in '${n}':'${u}' and '${a["@id"]}'`,We.ERROR_CODES.INVALID_REVERSE_PROPERTY);if("@nest"in a)throw new We.ErrorCoded(`@nest is not allowed in the reverse property '${n}'`,We.ERROR_CODES.INVALID_REVERSE_PROPERTY);break;case"@container":if(r===1&&(Object.keys(u).length>1||Et.Util.CONTAINERS_1_0.indexOf(Object.keys(u)[0])<0))throw new We.ErrorCoded(`Invalid term @container for '${n}' ('${Object.keys(u)}') in 1.0, must be only one of ${Et.Util.CONTAINERS_1_0.join(", ")}`,We.ERROR_CODES.INVALID_CONTAINER_MAPPING);for(const c of Object.keys(u)){if(c==="@list"&&a["@reverse"])throw new We.ErrorCoded(`Term value can not be @container: @list and @reverse at the same time on '${n}'`,We.ERROR_CODES.INVALID_REVERSE_PROPERTY);if(Et.Util.CONTAINERS.indexOf(c)<0)throw new We.ErrorCoded(`Invalid term @container for '${n}' ('${c}'), must be one of ${Et.Util.CONTAINERS.join(", ")}`,We.ERROR_CODES.INVALID_CONTAINER_MAPPING)}break;case"@language":eo.validateLanguage(u,!0,We.ERROR_CODES.INVALID_LANGUAGE_MAPPING);break;case"@direction":eo.validateDirection(u,!0);break;case"@prefix":if(u!==null&&typeof u!="boolean")throw new We.ErrorCoded(`Found an invalid term @prefix boolean in: '${n}': '${JSON.stringify(a)}'`,We.ERROR_CODES.INVALID_PREFIX_VALUE);if(!("@id"in a)&&!Et.Util.isValidIri(n))throw new We.ErrorCoded(`Invalid @prefix definition for '${n}' ('${JSON.stringify(a)}'`,We.ERROR_CODES.INVALID_TERM_DEFINITION);break;case"@index":if(r===1||!a["@container"]||!a["@container"]["@index"])throw new We.ErrorCoded(`Attempt to add illegal key to value object: '${n}': '${JSON.stringify(a)}'`,We.ERROR_CODES.INVALID_TERM_DEFINITION);break;case"@nest":if(Et.Util.isPotentialKeyword(u)&&u!=="@nest")throw new We.ErrorCoded(`Found an invalid term @nest value in: '${n}': '${JSON.stringify(a)}'`,We.ERROR_CODES.INVALID_NEST_VALUE)}}break;default:throw new We.ErrorCoded(`Found an invalid term value: '${n}': '${a}'`,We.ERROR_CODES.INVALID_TERM_DEFINITION)}}}applyBaseEntry(e,r,n){return typeof e=="string"||(n&&!("@base"in e)&&r.parentContext&&typeof r.parentContext=="object"&&"@base"in r.parentContext&&(e["@base"]=r.parentContext["@base"],r.parentContext["@__baseDocument"]&&(e["@__baseDocument"]=!0)),r.baseIRI&&!r.external&&("@base"in e?e["@base"]!==null&&typeof e["@base"]=="string"&&!Et.Util.isValidIri(e["@base"])&&(e["@base"]=(0,a5.resolve)(e["@base"],r.parentContext&&r.parentContext["@base"]||r.baseIRI)):(e["@base"]=r.baseIRI,e["@__baseDocument"]=!0))),e}normalizeContextIri(e,r){if(!Et.Util.isValidIri(e))try{e=(0,a5.resolve)(e,r)}catch{throw new Error(`Invalid context IRI: ${e}`)}return this.redirectSchemaOrgHttps&&e.startsWith("http://schema.org")&&(e="https://schema.org/"),e}async parseInnerContexts(e,r,n){for(const a of n??Object.keys(e)){const s=e[a];if(s&&typeof s=="object"&&"@context"in s&&s["@context"]!==null&&!r.ignoreScopedContexts){if(this.validateContext)try{const o=Object.assign(Object.assign({},e),{[a]:Object.assign({},e[a])});delete o[a]["@context"],await this.parse(s["@context"],Object.assign(Object.assign({},r),{external:!1,parentContext:o,ignoreProtection:!0,ignoreRemoteScopedContexts:!0,ignoreScopedContexts:!0}))}catch(o){throw new We.ErrorCoded(o.message,We.ERROR_CODES.INVALID_SCOPED_CONTEXT)}e[a]=Object.assign(Object.assign({},s),{"@context":(await this.parse(s["@context"],Object.assign(Object.assign({},r),{external:!1,minimalProcessing:!0,ignoreRemoteScopedContexts:!0,parentContext:e}))).getContextRaw()})}}return e}async parse(e,r={},n={}){const{baseIRI:a,parentContext:s,external:o,processingMode:u=eo.DEFAULT_PROCESSING_MODE,normalizeLanguageTags:c,ignoreProtection:l,minimalProcessing:d}=r,f=r.remoteContexts||{};if(Object.keys(f).length>=this.remoteContextsDepthLimit)throw new We.ErrorCoded("Detected an overflow in remote context inclusions: "+Object.keys(f),We.ERROR_CODES.CONTEXT_OVERFLOW);if(e==null){if(!l&&s&&Et.Util.hasProtectedTerms(s))throw new We.ErrorCoded("Illegal context nullification when terms are protected",We.ERROR_CODES.INVALID_CONTEXT_NULLIFICATION);return new Aa.JsonLdContextNormalized(this.applyBaseEntry({},r,!1))}else if(typeof e=="string"){const h=this.normalizeContextIri(e,a),p=this.getOverriddenLoad(h,r);if(p)return new Aa.JsonLdContextNormalized(p);const m=await this.parse(await this.load(h),Object.assign(Object.assign({},r),{baseIRI:h,external:!0,remoteContexts:Object.assign(Object.assign({},f),{[h]:!0})}));return this.applyBaseEntry(m.getContextRaw(),r,!0),m}else if(Array.isArray(e)){const h=[],p=await Promise.all(e.map((y,g)=>{if(typeof y=="string"){const b=this.normalizeContextIri(y,a);h[g]=b;const v=this.getOverriddenLoad(b,r);return v||this.load(b)}else return y}));if(d)return new Aa.JsonLdContextNormalized(p);const m=await p.reduce((y,g,b)=>y.then(v=>this.parse(g,Object.assign(Object.assign({},r),{baseIRI:h[b]||r.baseIRI,external:!!h[b]||r.external,parentContext:v.getContextRaw(),remoteContexts:h[b]?Object.assign(Object.assign({},f),{[h[b]]:!0}):f}),{skipValidation:b=1.1){if(typeof e["@import"]!="string")throw new We.ErrorCoded("An @import value must be a string, but got "+typeof e["@import"],We.ERROR_CODES.INVALID_IMPORT_VALUE);h=await this.loadImportContext(this.normalizeContextIri(e["@import"],a)),delete e["@import"]}else throw new We.ErrorCoded("Context importing is not supported in JSON-LD 1.0",We.ERROR_CODES.INVALID_CONTEXT_ENTRY);this.applyScopedProtected(h,{processingMode:u},Aa.defaultExpandOptions);const p=Object.assign(h,e);this.idifyReverseTerms(p),this.normalize(p,{processingMode:u,normalizeLanguageTags:c}),this.applyScopedProtected(p,{processingMode:u},Aa.defaultExpandOptions);const m=Object.keys(p),y=[];if(typeof s=="object")for(const b in s)b in p?y.push(b):p[b]=s[b];await this.parseInnerContexts(p,r,m);const g=new Aa.JsonLdContextNormalized(p);return(p&&p["@version"]||eo.DEFAULT_PROCESSING_MODE)>=1.1&&(e["@vocab"]&&typeof e["@vocab"]=="string"||e["@vocab"]==="")&&(s&&"@vocab"in s&&e["@vocab"].indexOf(":")<0?p["@vocab"]=s["@vocab"]+e["@vocab"]:(Et.Util.isCompactIri(e["@vocab"])||e["@vocab"]in p)&&(p["@vocab"]=g.expandTerm(e["@vocab"],!0))),this.expandPrefixedTerms(g,this.expandContentTypeToBase,m),!l&&s&&u>=1.1&&this.validateKeywordRedefinitions(s,p,Aa.defaultExpandOptions,y),this.validateContext&&!n.skipValidation&&this.validate(p,{processingMode:u}),g}else throw new We.ErrorCoded(`Tried parsing a context that is not a string, array or object, but got ${e}`,We.ERROR_CODES.INVALID_LOCAL_CONTEXT)}async load(e){const r=this.documentCache[e];if(r)return r;let n;try{n=await this.documentLoader.load(e)}catch(a){throw new We.ErrorCoded(`Failed to load remote context ${e}: ${a.message}`,We.ERROR_CODES.LOADING_REMOTE_CONTEXT_FAILED)}if(!("@context"in n))throw new We.ErrorCoded(`Missing @context in remote context at ${e}`,We.ERROR_CODES.INVALID_REMOTE_CONTEXT);return this.documentCache[e]=n["@context"]}getOverriddenLoad(e,r){if(e in(r.remoteContexts||{})){if(r.ignoreRemoteScopedContexts)return e;throw new We.ErrorCoded("Detected a cyclic context inclusion of "+e,We.ERROR_CODES.RECURSIVE_CONTEXT_INCLUSION)}return null}async loadImportContext(e){let r=await this.load(e);if(typeof r!="object"||Array.isArray(r))throw new We.ErrorCoded("An imported context must be a single object: "+e,We.ERROR_CODES.INVALID_REMOTE_CONTEXT);if("@import"in r)throw new We.ErrorCoded("An imported context can not import another context: "+e,We.ERROR_CODES.INVALID_CONTEXT_ENTRY);return r=Object.assign({},r),this.containersToHash(r),r}}eo.DEFAULT_PROCESSING_MODE=1.1;fT.ContextParser=eo;var XY={};Object.defineProperty(XY,"__esModule",{value:!0});var YY={};Object.defineProperty(YY,"__esModule",{value:!0});(function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(fT,t),r(Cf,t),r(R1,t),r(XY,t),r(YY,t),r(WC,t),r(Lf,t)})(hn);var s5;function ZY(){if(s5)return tp;s5=1,Object.defineProperty(tp,"__esModule",{value:!0}),tp.Util=void 0;const t=Ot,e=hn,r=xt();class n{constructor(s){this.nodeHandlers={},this.nodeValueHandlers={},this.directiveNodeHandlers={},this.settings=s,this.dataFactory=s.dataFactory||new t.DataFactory,this.operationFactory=new r.Factory(this.dataFactory),this.contextParser=new e.ContextParser}registerNodeHandler(s){this.nodeHandlers[s.targetKind]=s}registerNodeValueHandler(s){this.nodeValueHandlers[s.targetKind]=s}registerDirectiveNodeHandler(s){this.directiveNodeHandlers[s.targetKind]=s}handleNode(s,o){const u=this.nodeHandlers[s.kind];if(!u)throw new Error(`Unsupported GraphQL node '${s.kind}'`);return u.handle(s,o)}handleNodeValue(s,o,u){const c=this.nodeValueHandlers[s.kind];if(!c)throw new Error(`Unsupported GraphQL value node '${s.kind}'`);return c.handle(s,o,u)}handleDirectiveNode(s,o){const u=this.directiveNodeHandlers[s.directive.name.value];return u?u.handle(s,o):null}joinOperations(s){if(s.length===1)return s[0];const o=[],u=[];for(const c of s)c.type==="bgp"?o.push(c):u.push(c);if(o.length===s.length)return this.joinOperationsAsBgp(o);if(o.length===s.length-1&&u[0].type==="leftjoin"&&u[0].input[0].type==="bgp"){const c=u[0];return o.push(c.input[0]),this.operationFactory.createLeftJoin(this.joinOperationsAsBgp(o),c.input[1])}else return u.length===s.length?this.joinOperationsAsNestedJoin(u):this.joinOperationsAsNestedJoin([this.joinOperationsAsBgp(o),this.joinOperationsAsNestedJoin(u)])}joinOperationsAsBgp(s){return this.operationFactory.createBgp([].concat.apply([],s.map(o=>o.patterns)))}joinOperationsAsNestedJoin(s){return this.operationFactory.createJoin(s)}appendFieldToPath(s,o){return s.concat([o])}getFieldLabel(s){return(s.alias?s.alias:s.name).value}nameToVariable(s,o){return this.dataFactory.variable((o.path.length?o.path.join(this.settings.variableDelimiter)+this.settings.variableDelimiter:"")+s)}valueToNamedNode(s,o){const u=o.expandTerm(s,!0);if(this.settings.requireContext&&!u)throw new Error("No context entry was found for "+s);return this.dataFactory.namedNode(u||s)}getArgument(s,o){if(s){for(const u of s)if(u.name.value===o)return u}}newTypePattern(s,o,u){return this.operationFactory.createPattern(s,this.dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"),this.valueToNamedNode(o.name.value,u.context),u.graph)}createQuadPattern(s,o,u,c,l){const d=this.valueToNamedNode(o.value,l);return l&&l.getContextRaw()[o.value]&&l.getContextRaw()[o.value]["@reverse"]?this.operationFactory.createPattern(u,d,s,c):this.operationFactory.createPattern(s,d,u,c)}createQuadPath(s,o,u,c,l,d){const f=this.valueToNamedNode(o.value,d);let h=this.operationFactory.createLink(f);for(const p of u.values){if(p.kind!=="EnumValue")throw new Error("Invalid value type for 'alt' argument, must be EnumValue, but got "+p.kind);h=this.operationFactory.createAlt([h,this.operationFactory.createLink(this.valueToNamedNode(p.value,d))])}return d&&d.getContextRaw()[o.value]&&d.getContextRaw()[o.value]["@reverse"]?this.operationFactory.createPath(c,h,s,l):this.operationFactory.createPath(s,h,c,l)}}return tp.Util=n,tp}var o5;function W3e(){if(o5)return ep;o5=1;var t=I&&I.__awaiter||function(u,c,l,d){function f(h){return h instanceof l?h:new l(function(p){p(h)})}return new(l||(l=Promise))(function(h,p){function m(b){try{g(d.next(b))}catch(v){p(v)}}function y(b){try{g(d.throw(b))}catch(v){p(v)}}function g(b){b.done?h(b.value):f(b.value).then(m,y)}g((d=d.apply(u,c||[])).next())})};Object.defineProperty(ep,"__esModule",{value:!0}),ep.Converter=void 0;const e=C3e,r=CY(),n=DY(),a=O1(),s=ZY();class o{constructor(c){c=c||{},c.variableDelimiter=c.variableDelimiter||"_",c.expressionVariableCounter=c.expressionVariableCounter||0,this.util=new s.Util(c),this.initializeNodeHandlers(c)}static registerNodeHandlers(c,l){c.registerNodeHandler(new r.NodeHandlerDocument(c,l)),c.registerNodeHandler(new r.NodeHandlerDefinitionOperation(c,l)),c.registerNodeHandler(new r.NodeHandlerDefinitionFragment(c,l)),c.registerNodeHandler(new r.NodeHandlerSelectionFragmentSpread(c,l)),c.registerNodeHandler(new r.NodeHandlerSelectionInlineFragment(c,l)),c.registerNodeHandler(new r.NodeHandlerSelectionField(c,l))}static registerNodeValueHandlers(c,l){c.registerNodeValueHandler(new r.NodeValueHandlerVariable(c,l)),c.registerNodeValueHandler(new r.NodeValueHandlerInt(c,l)),c.registerNodeValueHandler(new r.NodeValueHandlerFloat(c,l)),c.registerNodeValueHandler(new r.NodeValueHandlerString(c,l)),c.registerNodeValueHandler(new r.NodeValueHandlerBoolean(c,l)),c.registerNodeValueHandler(new r.NodeValueHandlerNull(c,l)),c.registerNodeValueHandler(new r.NodeValueHandlerEnum(c,l)),c.registerNodeValueHandler(new r.NodeValueHandlerList(c,l)),c.registerNodeValueHandler(new r.NodeValueHandlerObject(c,l))}static registerDirectiveNodeHandlers(c,l){c.registerDirectiveNodeHandler(new n.DirectiveNodeHandlerInclude(c,l)),c.registerDirectiveNodeHandler(new n.DirectiveNodeHandlerOptional(c,l)),c.registerDirectiveNodeHandler(new n.DirectiveNodeHandlerPlural(c,l)),c.registerDirectiveNodeHandler(new n.DirectiveNodeHandlerSingle(c,l)),c.registerDirectiveNodeHandler(new n.DirectiveNodeHandlerSkip(c,l))}graphqlToSparqlAlgebra(c,l,d){return t(this,void 0,void 0,function*(){return this.graphqlToSparqlAlgebraRawContext(c,yield this.util.contextParser.parse(l),d)})}graphqlToSparqlAlgebraRawContext(c,l,d){d=d||{};const f=typeof c=="string"?(0,e.parse)(c):c,h=this.indexFragments(f),p={context:l,fragmentDefinitions:h,graph:this.util.dataFactory.defaultGraph(),path:[],singularizeState:a.SingularizeState.PLURAL,singularizeVariables:d.singularizeVariables||{},subject:null,terminalVariables:[],variablesDict:d.variablesDict||{},variablesMetaDict:{}};return this.util.handleNode(f,p)}indexFragments(c){const l={},d=[];for(const f of c.definitions)f.kind==="FragmentDefinition"?l[f.name.value]=f:d.push(f);return c.definitions=d,l}initializeNodeHandlers(c){o.registerNodeHandlers(this.util,c),o.registerNodeValueHandlers(this.util,c),o.registerDirectiveNodeHandlers(this.util,c)}}return ep.Converter=o,ep}var P3={},u5;function K3e(){return u5||(u5=1,Object.defineProperty(P3,"__esModule",{value:!0})),P3}var c5;function J3e(){return c5||(c5=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s),Object.defineProperty(n,o,{enumerable:!0,get:function(){return a[s]}})}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(CY(),t),r(W3e(),t),r(O1(),t),r(K3e(),t),r(ZY(),t)}(S3)),S3}var l5;function X3e(){if(l5)return xh;l5=1,Object.defineProperty(xh,"__esModule",{value:!0}),xh.ActorQueryParseGraphql=void 0;const t=NY(),e=qt,r=J3e();let n=class extends t.ActorQueryParse{constructor(s){super(s),this.graphqlToSparql=new r.Converter({requireContext:!0})}async test(s){var o;if(((o=s.queryFormat)==null?void 0:o.language)!=="graphql")throw new Error("This actor can only parse GraphQL queries");return!0}async run(s){const o=s.context.get(e.KeysInitQuery.jsonLdContext)||{},u={singularizeVariables:s.context.get(e.KeysInitQuery.graphqlSingularizeVariables)};return{operation:await this.graphqlToSparql.graphqlToSparqlAlgebra(s.query,o,u)}}};return xh.ActorQueryParseGraphql=n,xh}var d5;function Y3e(){return d5||(d5=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(X3e(),t)}(w3)),w3}var N3={},rp={},D3={},np={},C3={},ip={},f5;function eZ(){if(f5)return ip;f5=1,Object.defineProperty(ip,"__esModule",{value:!0}),ip.ActorAbstractMediaTyped=void 0;const t=st;let e=class extends t.Actor{constructor(n){super(n)}async run(n){if("handle"in n){const a=n;return{handle:await this.runHandle(a.handle,a.handleMediaType,n.context)}}if("mediaTypes"in n)return{mediaTypes:await this.getMediaTypes(n.context)};if("mediaTypeFormats"in n)return{mediaTypeFormats:await this.getMediaTypeFormats(n.context)};throw new Error("Either a handle, mediaTypes or mediaTypeFormats action needs to be provided")}async test(n){if("handle"in n){const a=n;return{handle:await this.testHandle(a.handle,a.handleMediaType,n.context)}}if("mediaTypes"in n)return{mediaTypes:await this.testMediaType(n.context)};if("mediaTypeFormats"in n)return{mediaTypeFormats:await this.testMediaTypeFormats(n.context)};throw new Error("Either a handle, mediaTypes or mediaTypeFormats action needs to be provided")}};return ip.ActorAbstractMediaTyped=e,ip}var ap={},h5;function Z3e(){if(h5)return ap;h5=1,Object.defineProperty(ap,"__esModule",{value:!0}),ap.ActorAbstractMediaTypedFixed=void 0;const t=eZ();let e=class extends t.ActorAbstractMediaTyped{constructor(n){super(n);const a=this.priorityScale||this.priorityScale===0?this.priorityScale:1;if(this.mediaTypePriorities)for(const[s,[o,u]]of Object.entries(this.mediaTypePriorities).entries())this.mediaTypePriorities[o]=a*u;this.mediaTypePriorities=Object.freeze(this.mediaTypePriorities),this.mediaTypeFormats=Object.freeze(this.mediaTypeFormats)}async testHandle(n,a,s){if(!a||!(a in this.mediaTypePriorities))throw new Error(`Unrecognized media type: ${a}`);return await this.testHandleChecked(n,s)}async testMediaType(n){return!0}async getMediaTypes(n){return this.mediaTypePriorities}async testMediaTypeFormats(n){return!0}async getMediaTypeFormats(n){return this.mediaTypeFormats}};return ap.ActorAbstractMediaTypedFixed=e,ap}var p5;function jf(){return p5||(p5=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(eZ(),t),r(Z3e(),t)}(C3)),C3}var y5;function eOe(){if(y5)return np;y5=1,Object.defineProperty(np,"__esModule",{value:!0}),np.ActorQueryResultSerialize=void 0;const t=jf();let e=class extends t.ActorAbstractMediaTyped{constructor(n){super(n)}};return np.ActorQueryResultSerialize=e,np}var sp={},m5;function tOe(){if(m5)return sp;m5=1,Object.defineProperty(sp,"__esModule",{value:!0}),sp.ActorQueryResultSerializeFixedMediaTypes=void 0;const t=jf();let e=class extends t.ActorAbstractMediaTypedFixed{constructor(n){super(n)}async testHandleChecked(n,a){return!0}};return sp.ActorQueryResultSerializeFixedMediaTypes=e,sp}var g5;function Ss(){return g5||(g5=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(eOe(),t),r(tOe(),t)}(D3)),D3}var _5;function rOe(){if(_5)return rp;_5=1,Object.defineProperty(rp,"__esModule",{value:!0}),rp.ActorQueryResultSerializeJson=void 0;const t=Ss(),e=Mt,r=nr,n=Pt;let a=class extends t.ActorQueryResultSerializeFixedMediaTypes{constructor(o){super(o)}async testHandleChecked(o,u){if(!["bindings","quads","boolean"].includes(o.type))throw new Error("This actor can only handle bindings or quad streams.");return!0}async runHandle(o,u,c){const l=new n.Readable;if(l._read=()=>{},o.type==="bindings"||o.type==="quads"){let d=o.type==="bindings"?(0,e.wrap)(o.bindingsStream).map(h=>JSON.stringify(Object.fromEntries([...h].map(([p,m])=>[p.value,r.termToString(m)])))):(0,e.wrap)(o.quadStream).map(h=>JSON.stringify(r.quadToStringQuad(h))),f=!0;d=d.map(h=>{const p=`${f?"":","} ${h}`;return f=!1,p}).prepend(["["]).append([` ] `]),l.wrap(d)}else try{l.push(`${JSON.stringify(await o.execute())} -`),l.push(null)}catch(d){setTimeout(()=>l.emit("error",d))}return{data:l}}};return rp.ActorQueryResultSerializeJson=a,rp}var b5;function iOe(){return b5||(b5=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(nOe(),t)}(D3)),D3}var j3={},op={},v5;function aOe(){if(v5)return op;v5=1,Object.defineProperty(op,"__esModule",{value:!0}),op.ActorQueryResultSerializeSimple=void 0;const t=Ss(),e=Mt,r=nr,n=Pt;let a=class Jl extends t.ActorQueryResultSerializeFixedMediaTypes{constructor(o){super(o)}async testHandleChecked(o,u){if(!["bindings","quads","boolean","void"].includes(o.type))throw new Error("This actor can only handle bindings streams, quad streams, booleans, or updates.");return!0}static termToString(o){return o.termType==="Quad"?(0,r.termToString)(o):o.value}async runHandle(o,u,c){const l=new n.Readable;return o.type==="bindings"?l.wrap(o.bindingsStream.map(d=>`${[...d].map(([f,h])=>`?${f.value}: ${Jl.termToString(h)}`).join(` +`),l.push(null)}catch(d){setTimeout(()=>l.emit("error",d))}return{data:l}}};return rp.ActorQueryResultSerializeJson=a,rp}var b5;function nOe(){return b5||(b5=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(rOe(),t)}(N3)),N3}var L3={},op={},v5;function iOe(){if(v5)return op;v5=1,Object.defineProperty(op,"__esModule",{value:!0}),op.ActorQueryResultSerializeSimple=void 0;const t=Ss(),e=Mt,r=nr,n=Pt;let a=class Kl extends t.ActorQueryResultSerializeFixedMediaTypes{constructor(o){super(o)}async testHandleChecked(o,u){if(!["bindings","quads","boolean","void"].includes(o.type))throw new Error("This actor can only handle bindings streams, quad streams, booleans, or updates.");return!0}static termToString(o){return o.termType==="Quad"?(0,r.termToString)(o):o.value}async runHandle(o,u,c){const l=new n.Readable;return o.type==="bindings"?l.wrap(o.bindingsStream.map(d=>`${[...d].map(([f,h])=>`?${f.value}: ${Kl.termToString(h)}`).join(` `)} -`)):o.type==="quads"?l.wrap(o.quadStream.map(d=>`subject: ${Jl.termToString(d.subject)} -predicate: ${Jl.termToString(d.predicate)} -object: ${Jl.termToString(d.object)} -graph: ${Jl.termToString(d.graph)} +`)):o.type==="quads"?l.wrap(o.quadStream.map(d=>`subject: ${Kl.termToString(d.subject)} +predicate: ${Kl.termToString(d.predicate)} +object: ${Kl.termToString(d.object)} +graph: ${Kl.termToString(d.graph)} `)):l.wrap((0,e.wrap)(o.type==="boolean"?o.execute().then(d=>[`${d} `]):o.execute().then(()=>[`ok -`]))),{data:l}}};return op.ActorQueryResultSerializeSimple=a,op}var w5;function sOe(){return w5||(w5=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(aOe(),t)}(j3)),j3}var M3={},up={},S5;function oOe(){if(S5)return up;S5=1,Object.defineProperty(up,"__esModule",{value:!0}),up.ActorQueryResultSerializeSparqlCsv=void 0;const t=Ss(),e=Pt;let r=class O_ extends t.ActorQueryResultSerializeFixedMediaTypes{constructor(a){super(a)}static bindingToCsvBindings(a){if(!a)return"";let s=a.value;if(a.termType==="Literal")s=`${s}`;else if(a.termType==="BlankNode")s=`_:${s}`;else if(a.termType==="Quad"){let o=O_.bindingToCsvBindings(a.object);a.object.termType==="Literal"&&(o=`"${o.replaceAll('"','""')}"`),s=`<< ${O_.bindingToCsvBindings(a.subject)} ${O_.bindingToCsvBindings(a.predicate)} ${o} >>`}else s=`<${s}>`;return/[",\n\r]/u.test(s)&&(s=`"${s.replaceAll('"','""')}"`),s}async testHandleChecked(a,s){if(a.type!=="bindings")throw new Error("This actor can only handle bindings streams.");return!0}async runHandle(a,s,o){const u=a,c=new e.Readable,l=await u.metadata();return c.push(`${l.variables.map(d=>d.value).join(",")}\r +`]))),{data:l}}};return op.ActorQueryResultSerializeSimple=a,op}var w5;function aOe(){return w5||(w5=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(iOe(),t)}(L3)),L3}var j3={},up={},S5;function sOe(){if(S5)return up;S5=1,Object.defineProperty(up,"__esModule",{value:!0}),up.ActorQueryResultSerializeSparqlCsv=void 0;const t=Ss(),e=Pt;let r=class O_ extends t.ActorQueryResultSerializeFixedMediaTypes{constructor(a){super(a)}static bindingToCsvBindings(a){if(!a)return"";let s=a.value;if(a.termType==="Literal")s=`${s}`;else if(a.termType==="BlankNode")s=`_:${s}`;else if(a.termType==="Quad"){let o=O_.bindingToCsvBindings(a.object);a.object.termType==="Literal"&&(o=`"${o.replaceAll('"','""')}"`),s=`<< ${O_.bindingToCsvBindings(a.subject)} ${O_.bindingToCsvBindings(a.predicate)} ${o} >>`}else s=`<${s}>`;return/[",\n\r]/u.test(s)&&(s=`"${s.replaceAll('"','""')}"`),s}async testHandleChecked(a,s){if(a.type!=="bindings")throw new Error("This actor can only handle bindings streams.");return!0}async runHandle(a,s,o){const u=a,c=new e.Readable,l=await u.metadata();return c.push(`${l.variables.map(d=>d.value).join(",")}\r `),c.wrap(u.bindingsStream.map(d=>`${l.variables.map(f=>O_.bindingToCsvBindings(d.get(f))).join(",")}\r -`)),{data:c}}};return up.ActorQueryResultSerializeSparqlCsv=r,up}var T5;function uOe(){return T5||(T5=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(oOe(),t)}(M3)),M3}var F3={},cp={},B3={},wn={},E5;function cOe(){if(E5)return wn;E5=1,Object.defineProperty(wn,"__esModule",{value:!0}),wn.stringQuadToQuad=wn.quadToStringQuad=wn.stringToTerm=wn.getLiteralLanguage=wn.getLiteralType=wn.getLiteralValue=wn.termToString=void 0;const t=Ot,e=new t.DataFactory;function r(m){if(m)switch(m.termType){case"NamedNode":return`<${l(m.value)}>`;case"BlankNode":return`_:${m.value}`;case"Literal":{const y=m;return`"${d(y.value)}"${y.datatype&&y.datatype.value!=="http://www.w3.org/2001/XMLSchema#string"&&y.datatype.value!=="http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"?`^^<${y.datatype.value}>`:""}${y.language?`@${y.language}`:""}`}case"Quad":return`<<${r(m.subject)} ${r(m.predicate)} ${r(m.object)}${m.graph.termType==="DefaultGraph"?"":` ${r(m.graph)}`}>>`;case"Variable":return`?${m.value}`;case"DefaultGraph":return m.value}}wn.termToString=r;function n(m){const y=/^"([^]*)"((\^\^.*)|(@.*))?$/u.exec(m);if(!y)throw new Error(`${m} is not a literal`);return y[1].replace(/\\"/ug,'"')}wn.getLiteralValue=n;function a(m){const y=/^"[^]*"(?:\^\^<([^"]+)>|(@)[^@"]+)?$/u.exec(m);if(!y)throw new Error(`${m} is not a literal`);return y[1]||(y[2]?"http://www.w3.org/1999/02/22-rdf-syntax-ns#langString":"http://www.w3.org/2001/XMLSchema#string")}wn.getLiteralType=a;function s(m){const y=/^"[^]*"(?:@([^@"]+)|\^\^[^"]+)?$/u.exec(m);if(!y)throw new Error(`${m} is not a literal`);return y[1]?y[1].toLowerCase():""}wn.getLiteralLanguage=s;function o(m,y){if(y=y||e,!m||m.length===0)return y.defaultGraph();switch(m[0]){case"_":return y.blankNode(m.slice(2));case"?":if(!y.variable)throw new Error("Missing 'variable()' method on the given DataFactory");return y.variable(m.slice(1));case'"':{const g=s(m),b=y.namedNode(a(m));return y.literal(n(m),g||b)}case"<":default:if(m.startsWith("<<")&&m.endsWith(">>")){const g=m.slice(2,-2),b=[];let v=0,_=0;for(let w=0;w"){if(v===0)throw new Error(`Found closing tag without opening tag in ${m}`);v--}E===" "&&v===0&&(b.push(g.slice(_,w)),_=w+1)}if(v!==0)throw new Error(`Found opening tag without closing tag in ${m}`);if(b.push(g.slice(_,g.length)),b.length!==3&&b.length!==4)throw new Error(`Nested quad syntax error ${m}`);return y.quad(o(b[0]),o(b[1]),o(b[2]),b[3]?o(b[3]):void 0)}if(!m.startsWith("<")||!m.endsWith(">"))throw new Error(`Detected invalid iri for named node (must be wrapped in <>): ${m}`);return y.namedNode(m.slice(1,-1))}}wn.stringToTerm=o;function u(m){return{subject:r(m.subject),predicate:r(m.predicate),object:r(m.object),graph:r(m.graph)}}wn.quadToStringQuad=u;function c(m,y){return y=y||e,y.quad(o(m.subject,y),o(m.predicate,y),o(m.object,y),o(m.graph,y))}wn.stringQuadToQuad=c;function l(m){return m.replace(f,p)}function d(m){return f.test(m)&&(m=m.replace(f,p)),m}const f=/["\\\t\n\r\b\f\u0000-\u0019]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,h=new Map([["\\","\\\\"],['"','\\"'],[" ","\\t"],[` -`,"\\n"],["\r","\\r"],["\b","\\b"],["\f","\\f"]]);function p(m){const y=h.get(m);if(!y){if(m.length===1){const b=m.charCodeAt(0).toString(16);return`${"\\u0000".slice(0,-b.length)}${b}`}const g=((m.charCodeAt(0)-55296)*1024+m.charCodeAt(1)+9216).toString(16);return`${"\\U00000000".slice(0,-g.length)}${g}`}return y}return wn}var A5;function x1(){return A5||(A5=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.termToString=t.stringToTerm=t.stringQuadToQuad=t.quadToStringQuad=t.getLiteralValue=t.getLiteralType=t.getLiteralLanguage=void 0;const e=cOe();Object.defineProperty(t,"getLiteralLanguage",{enumerable:!0,get:function(){return e.getLiteralLanguage}}),Object.defineProperty(t,"getLiteralType",{enumerable:!0,get:function(){return e.getLiteralType}}),Object.defineProperty(t,"getLiteralValue",{enumerable:!0,get:function(){return e.getLiteralValue}}),Object.defineProperty(t,"quadToStringQuad",{enumerable:!0,get:function(){return e.quadToStringQuad}}),Object.defineProperty(t,"stringQuadToQuad",{enumerable:!0,get:function(){return e.stringQuadToQuad}}),Object.defineProperty(t,"stringToTerm",{enumerable:!0,get:function(){return e.stringToTerm}}),Object.defineProperty(t,"termToString",{enumerable:!0,get:function(){return e.termToString}})}(B3)),B3}var O5;function lOe(){if(O5)return cp;O5=1,Object.defineProperty(cp,"__esModule",{value:!0}),cp.ActorQueryResultSerializeSparqlTsv=void 0;const t=Ss(),e=x1(),r=Pt;let n=class tZ extends t.ActorQueryResultSerializeFixedMediaTypes{constructor(s){super(s)}static bindingToTsvBindings(s){return s?(0,e.termToString)(s).replaceAll(" ","\\t").replaceAll(` +`)),{data:c}}};return up.ActorQueryResultSerializeSparqlCsv=r,up}var T5;function oOe(){return T5||(T5=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(sOe(),t)}(j3)),j3}var M3={},cp={},F3={},wn={},E5;function uOe(){if(E5)return wn;E5=1,Object.defineProperty(wn,"__esModule",{value:!0}),wn.stringQuadToQuad=wn.quadToStringQuad=wn.stringToTerm=wn.getLiteralLanguage=wn.getLiteralType=wn.getLiteralValue=wn.termToString=void 0;const t=Ot,e=new t.DataFactory;function r(m){if(m)switch(m.termType){case"NamedNode":return`<${l(m.value)}>`;case"BlankNode":return`_:${m.value}`;case"Literal":{const y=m;return`"${d(y.value)}"${y.datatype&&y.datatype.value!=="http://www.w3.org/2001/XMLSchema#string"&&y.datatype.value!=="http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"?`^^<${y.datatype.value}>`:""}${y.language?`@${y.language}`:""}`}case"Quad":return`<<${r(m.subject)} ${r(m.predicate)} ${r(m.object)}${m.graph.termType==="DefaultGraph"?"":` ${r(m.graph)}`}>>`;case"Variable":return`?${m.value}`;case"DefaultGraph":return m.value}}wn.termToString=r;function n(m){const y=/^"([^]*)"((\^\^.*)|(@.*))?$/u.exec(m);if(!y)throw new Error(`${m} is not a literal`);return y[1].replace(/\\"/ug,'"')}wn.getLiteralValue=n;function a(m){const y=/^"[^]*"(?:\^\^<([^"]+)>|(@)[^@"]+)?$/u.exec(m);if(!y)throw new Error(`${m} is not a literal`);return y[1]||(y[2]?"http://www.w3.org/1999/02/22-rdf-syntax-ns#langString":"http://www.w3.org/2001/XMLSchema#string")}wn.getLiteralType=a;function s(m){const y=/^"[^]*"(?:@([^@"]+)|\^\^[^"]+)?$/u.exec(m);if(!y)throw new Error(`${m} is not a literal`);return y[1]?y[1].toLowerCase():""}wn.getLiteralLanguage=s;function o(m,y){if(y=y||e,!m||m.length===0)return y.defaultGraph();switch(m[0]){case"_":return y.blankNode(m.slice(2));case"?":if(!y.variable)throw new Error("Missing 'variable()' method on the given DataFactory");return y.variable(m.slice(1));case'"':{const g=s(m),b=y.namedNode(a(m));return y.literal(n(m),g||b)}case"<":default:if(m.startsWith("<<")&&m.endsWith(">>")){const g=m.slice(2,-2),b=[];let v=0,_=0;for(let w=0;w"){if(v===0)throw new Error(`Found closing tag without opening tag in ${m}`);v--}E===" "&&v===0&&(b.push(g.slice(_,w)),_=w+1)}if(v!==0)throw new Error(`Found opening tag without closing tag in ${m}`);if(b.push(g.slice(_,g.length)),b.length!==3&&b.length!==4)throw new Error(`Nested quad syntax error ${m}`);return y.quad(o(b[0]),o(b[1]),o(b[2]),b[3]?o(b[3]):void 0)}if(!m.startsWith("<")||!m.endsWith(">"))throw new Error(`Detected invalid iri for named node (must be wrapped in <>): ${m}`);return y.namedNode(m.slice(1,-1))}}wn.stringToTerm=o;function u(m){return{subject:r(m.subject),predicate:r(m.predicate),object:r(m.object),graph:r(m.graph)}}wn.quadToStringQuad=u;function c(m,y){return y=y||e,y.quad(o(m.subject,y),o(m.predicate,y),o(m.object,y),o(m.graph,y))}wn.stringQuadToQuad=c;function l(m){return m.replace(f,p)}function d(m){return f.test(m)&&(m=m.replace(f,p)),m}const f=/["\\\t\n\r\b\f\u0000-\u0019]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,h=new Map([["\\","\\\\"],['"','\\"'],[" ","\\t"],[` +`,"\\n"],["\r","\\r"],["\b","\\b"],["\f","\\f"]]);function p(m){const y=h.get(m);if(!y){if(m.length===1){const b=m.charCodeAt(0).toString(16);return`${"\\u0000".slice(0,-b.length)}${b}`}const g=((m.charCodeAt(0)-55296)*1024+m.charCodeAt(1)+9216).toString(16);return`${"\\U00000000".slice(0,-g.length)}${g}`}return y}return wn}var A5;function x1(){return A5||(A5=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.termToString=t.stringToTerm=t.stringQuadToQuad=t.quadToStringQuad=t.getLiteralValue=t.getLiteralType=t.getLiteralLanguage=void 0;const e=uOe();Object.defineProperty(t,"getLiteralLanguage",{enumerable:!0,get:function(){return e.getLiteralLanguage}}),Object.defineProperty(t,"getLiteralType",{enumerable:!0,get:function(){return e.getLiteralType}}),Object.defineProperty(t,"getLiteralValue",{enumerable:!0,get:function(){return e.getLiteralValue}}),Object.defineProperty(t,"quadToStringQuad",{enumerable:!0,get:function(){return e.quadToStringQuad}}),Object.defineProperty(t,"stringQuadToQuad",{enumerable:!0,get:function(){return e.stringQuadToQuad}}),Object.defineProperty(t,"stringToTerm",{enumerable:!0,get:function(){return e.stringToTerm}}),Object.defineProperty(t,"termToString",{enumerable:!0,get:function(){return e.termToString}})}(F3)),F3}var O5;function cOe(){if(O5)return cp;O5=1,Object.defineProperty(cp,"__esModule",{value:!0}),cp.ActorQueryResultSerializeSparqlTsv=void 0;const t=Ss(),e=x1(),r=Pt;let n=class tZ extends t.ActorQueryResultSerializeFixedMediaTypes{constructor(s){super(s)}static bindingToTsvBindings(s){return s?(0,e.termToString)(s).replaceAll(" ","\\t").replaceAll(` `,"\\n").replaceAll("\r","\\r"):""}async testHandleChecked(s,o){if(s.type!=="bindings")throw new Error("This actor can only handle bindings streams.");return!0}async runHandle(s,o,u){const c=s,l=new r.Readable,d=await c.metadata();return l.push(`${d.variables.map(f=>f.value).join(" ")} `),l.wrap(c.bindingsStream.map(f=>`${d.variables.map(h=>tZ.bindingToTsvBindings(f.get(h))).join(" ")} -`)),{data:l}}};return cp.ActorQueryResultSerializeSparqlTsv=n,cp}var R5;function dOe(){return R5||(R5=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(lOe(),t)}(F3)),F3}var q3={},lp={},dp={},x5;function fOe(){if(x5)return dp;x5=1,Object.defineProperty(dp,"__esModule",{value:!0}),dp.XmlSerializer=void 0;let t=class{constructor(){this.stack=[]}open(r,n){const a=`${this.identation()+this.formatTag(r,n,"open")} +`)),{data:l}}};return cp.ActorQueryResultSerializeSparqlTsv=n,cp}var R5;function lOe(){return R5||(R5=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(cOe(),t)}(M3)),M3}var B3={},lp={},dp={},x5;function dOe(){if(x5)return dp;x5=1,Object.defineProperty(dp,"__esModule",{value:!0}),dp.XmlSerializer=void 0;let t=class{constructor(){this.stack=[]}open(r,n){const a=`${this.identation()+this.formatTag(r,n,"open")} `;return this.stack.push(r),a}close(){const r=this.stack.pop();if(r===void 0)throw new Error("There is no tag left to close");return`${this.identation()+this.formatTag(r,{},"close")} `}serializeNode(r){if(r.children===void 0)return`${this.identation()+this.formatTag(r.name,r.attributes,"self-closing")} `;if(typeof r.children=="string")return`${this.identation()+this.formatTag(r.name,r.attributes,"open")+this.escape(r.children)+this.formatTag(r.name,{},"close")} `;const n=[];n.push(`${this.identation()+this.formatTag(r.name,r.attributes,"open")} `),this.stack.push(r.name);for(const a of r.children)n.push(this.serializeNode(a));return this.stack.pop(),n.push(`${this.identation()+this.formatTag(r.name,{},"close")} `),n.join("")}identation(){return this.stack.map(r=>" ").join("")}formatTag(r,n,a){return`<${a==="close"?"/":""}${r}${Object.entries(n??{}).map(s=>` ${s[0]}="${this.escape(s[1])}"`)}${a==="self-closing"?"/":""}>`}escape(r){return r.replaceAll(/["&'<>]/gu,n=>{switch(n){case"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case'"':return"""}})}};return dp.XmlSerializer=t,t.header=` -`,dp}var I5;function hOe(){if(I5)return lp;I5=1,Object.defineProperty(lp,"__esModule",{value:!0}),lp.ActorQueryResultSerializeSparqlXml=void 0;const t=Ss(),e=Mt,r=Pt,n=fOe();let a=class rZ extends t.ActorQueryResultSerializeFixedMediaTypes{constructor(o){super(o)}static bindingToXmlBindings(o,u){return{name:"binding",attributes:{name:u.value},children:[this.valueToXmlValue(o)]}}static valueToXmlValue(o){let u;switch(o.termType){case"Literal":return o.language?u={"xml:lang":o.language}:o.datatype&&o.datatype.value!=="http://www.w3.org/2001/XMLSchema#string"?u={datatype:o.datatype.value}:u={},{name:"literal",attributes:u,children:o.value};case"BlankNode":return{name:"bnode",children:o.value};case"Quad":return{name:"triple",children:[{name:"subject",children:[this.valueToXmlValue(o.subject)]},{name:"predicate",children:[this.valueToXmlValue(o.predicate)]},{name:"object",children:[this.valueToXmlValue(o.object)]}]};default:return{name:"uri",children:o.value}}}async testHandleChecked(o,u){if(!["bindings","boolean"].includes(o.type))throw new Error("This actor can only handle bindings streams or booleans.");return!0}async runHandle(o,u,c){const l=new r.Readable;l._read=()=>{};const d=new n.XmlSerializer,f=await o.metadata();if(l.push(n.XmlSerializer.header),l.push(d.open("sparql",{xmlns:"http://www.w3.org/2005/sparql-results#"})),l.push(d.serializeNode({name:"head",children:f.variables.map(h=>({name:"variable",attributes:{name:h.value}}))})),o.type==="bindings"){function*h(){yield d.close(),yield d.close()}l.push(d.open("results"));const p=(0,e.wrap)(o.bindingsStream).map(m=>d.serializeNode({name:"result",children:[...m].map(([y,g])=>rZ.bindingToXmlBindings(g,y))})).append((0,e.wrap)(h()));l.wrap(p)}else try{const h=await o.execute();l.push(d.serializeNode({name:"boolean",children:h.toString()})),l.push(d.close()),setTimeout(()=>l.push(null))}catch(h){setTimeout(()=>l.emit("error",h))}return{data:l}}};return lp.ActorQueryResultSerializeSparqlXml=a,lp}var P5;function pOe(){return P5||(P5=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(hOe(),t)}(q3)),q3}var $3={},fp={},N5;function yOe(){if(N5)return fp;N5=1,Object.defineProperty(fp,"__esModule",{value:!0}),fp.ActorQueryResultSerializeTable=void 0;const t=Ss(),e=Ot,r=nr,n=In(),a=Pt,s=new e.DataFactory,o=n.QUAD_TERM_NAMES.map(c=>s.variable(c));let u=class QP extends t.ActorQueryResultSerializeFixedMediaTypes{constructor(l){super(l),this.padding=QP.repeat(" ",this.columnWidth)}static repeat(l,d){return l.repeat(d)}async testHandleChecked(l,d){if(!["bindings","quads"].includes(l.type))throw new Error("This actor can only handle bindings or quad streams.");return!0}termToString(l){return l.termType==="Quad"?(0,r.termToString)(l):l.value}pad(l){return l.length<=this.columnWidth?l+this.padding.slice(l.length):`${l.slice(0,this.columnWidth-1)}…`}pushHeader(l,d){const f=d.map(h=>this.pad(h.value)).join(" ");l.push(`${f} +`,dp}var I5;function fOe(){if(I5)return lp;I5=1,Object.defineProperty(lp,"__esModule",{value:!0}),lp.ActorQueryResultSerializeSparqlXml=void 0;const t=Ss(),e=Mt,r=Pt,n=dOe();let a=class rZ extends t.ActorQueryResultSerializeFixedMediaTypes{constructor(o){super(o)}static bindingToXmlBindings(o,u){return{name:"binding",attributes:{name:u.value},children:[this.valueToXmlValue(o)]}}static valueToXmlValue(o){let u;switch(o.termType){case"Literal":return o.language?u={"xml:lang":o.language}:o.datatype&&o.datatype.value!=="http://www.w3.org/2001/XMLSchema#string"?u={datatype:o.datatype.value}:u={},{name:"literal",attributes:u,children:o.value};case"BlankNode":return{name:"bnode",children:o.value};case"Quad":return{name:"triple",children:[{name:"subject",children:[this.valueToXmlValue(o.subject)]},{name:"predicate",children:[this.valueToXmlValue(o.predicate)]},{name:"object",children:[this.valueToXmlValue(o.object)]}]};default:return{name:"uri",children:o.value}}}async testHandleChecked(o,u){if(!["bindings","boolean"].includes(o.type))throw new Error("This actor can only handle bindings streams or booleans.");return!0}async runHandle(o,u,c){const l=new r.Readable;l._read=()=>{};const d=new n.XmlSerializer,f=await o.metadata();if(l.push(n.XmlSerializer.header),l.push(d.open("sparql",{xmlns:"http://www.w3.org/2005/sparql-results#"})),l.push(d.serializeNode({name:"head",children:f.variables.map(h=>({name:"variable",attributes:{name:h.value}}))})),o.type==="bindings"){function*h(){yield d.close(),yield d.close()}l.push(d.open("results"));const p=(0,e.wrap)(o.bindingsStream).map(m=>d.serializeNode({name:"result",children:[...m].map(([y,g])=>rZ.bindingToXmlBindings(g,y))})).append((0,e.wrap)(h()));l.wrap(p)}else try{const h=await o.execute();l.push(d.serializeNode({name:"boolean",children:h.toString()})),l.push(d.close()),setTimeout(()=>l.push(null))}catch(h){setTimeout(()=>l.emit("error",h))}return{data:l}}};return lp.ActorQueryResultSerializeSparqlXml=a,lp}var P5;function hOe(){return P5||(P5=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(fOe(),t)}(B3)),B3}var q3={},fp={},N5;function pOe(){if(N5)return fp;N5=1,Object.defineProperty(fp,"__esModule",{value:!0}),fp.ActorQueryResultSerializeTable=void 0;const t=Ss(),e=Ot,r=nr,n=In(),a=Pt,s=new e.DataFactory,o=n.QUAD_TERM_NAMES.map(c=>s.variable(c));let u=class QP extends t.ActorQueryResultSerializeFixedMediaTypes{constructor(l){super(l),this.padding=QP.repeat(" ",this.columnWidth)}static repeat(l,d){return l.repeat(d)}async testHandleChecked(l,d){if(!["bindings","quads"].includes(l.type))throw new Error("This actor can only handle bindings or quad streams.");return!0}termToString(l){return l.termType==="Quad"?(0,r.termToString)(l):l.value}pad(l){return l.length<=this.columnWidth?l+this.padding.slice(l.length):`${l.slice(0,this.columnWidth-1)}…`}pushHeader(l,d){const f=d.map(h=>this.pad(h.value)).join(" ");l.push(`${f} ${QP.repeat("-",f.length)} `)}createRow(l,d){return`${l.map(f=>d.has(f)?this.termToString(d.get(f)):"").map(f=>this.pad(f)).join(" ")} `}async runHandle(l,d,f){const h=new a.Readable;let p;if(l.type==="bindings"){p=l.bindingsStream.map(y=>this.createRow(m,y));const m=(await l.metadata()).variables;this.pushHeader(h,m)}else p=l.quadStream.map(m=>`${(0,n.getTerms)(m).map(y=>this.pad(this.termToString(y))).join(" ")} -`),this.pushHeader(h,o);return h.wrap(p),{data:h}}};return fp.ActorQueryResultSerializeTable=u,fp}var D5;function mOe(){return D5||(D5=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(yOe(),t)}($3)),$3}var U3={},hp={},k3={},pp={},V3={},H3={},yp={},mp={},C5;function Jd(){if(C5)return mp;C5=1,Object.defineProperty(mp,"__esModule",{value:!0}),mp.Translator=void 0;let t=class{constructor(){this.supportedRdfDatatypes=[],this.fromRdfHandlers={},this.toRdfHandlers={}}static incorrectRdfDataType(r){throw new Error(`Invalid RDF ${r.datatype.value} value: '${r.value}'`)}registerHandler(r,n,a){for(const s of n)this.supportedRdfDatatypes.push(s),this.fromRdfHandlers[s.value]=r;for(const s of a){let o=this.toRdfHandlers[s];o||(this.toRdfHandlers[s]=o=[]),o.push(r)}}fromRdf(r,n){const a=this.fromRdfHandlers[r.datatype.value];return a?a.fromRdf(r,n):r.value}toRdf(r,n){const a=this.toRdfHandlers[typeof r];if(a)for(const s of a){const o=s.toRdf(r,n);if(o)return o}throw new Error(`Invalid JavaScript value: '${r}'`)}getSupportedRdfDatatypes(){return this.supportedRdfDatatypes}getSupportedJavaScriptPrimitives(){return Object.keys(this.toRdfHandlers)}};return mp.Translator=t,mp}var L5;function gOe(){if(L5)return yp;L5=1,Object.defineProperty(yp,"__esModule",{value:!0}),yp.TypeHandlerBoolean=void 0;const t=Jd();let e=class nZ{fromRdf(n,a){switch(n.value){case"true":return!0;case"false":return!1;case"1":return!0;case"0":return!1}return a&&t.Translator.incorrectRdfDataType(n),!1}toRdf(n,{datatype:a,dataFactory:s}){return s.literal(n?"true":"false",a||s.namedNode(nZ.TYPE))}};return e.TYPE="http://www.w3.org/2001/XMLSchema#boolean",yp.TypeHandlerBoolean=e,yp}var gp={},j5;function _Oe(){if(j5)return gp;j5=1,Object.defineProperty(gp,"__esModule",{value:!0}),gp.TypeHandlerDate=void 0;const t=Jd();let e=class zP{fromRdf(n,a){switch(a&&!n.value.match(zP.VALIDATORS[n.datatype.value.substr(33,n.datatype.value.length)])&&t.Translator.incorrectRdfDataType(n),n.datatype.value){case"http://www.w3.org/2001/XMLSchema#gDay":return new Date(0,0,parseInt(n.value,10));case"http://www.w3.org/2001/XMLSchema#gMonthDay":const s=n.value.split("-");return new Date(0,parseInt(s[0],10)-1,parseInt(s[1],10));case"http://www.w3.org/2001/XMLSchema#gYear":return new Date(n.value+"-01-01");case"http://www.w3.org/2001/XMLSchema#gYearMonth":return new Date(n.value+"-01");default:return new Date(n.value)}}toRdf(n,{datatype:a,dataFactory:s}){if(a=a||s.namedNode(zP.TYPES[0]),!(n instanceof Date))return null;const o=n;let u;switch(a.value){case"http://www.w3.org/2001/XMLSchema#gDay":u=String(o.getUTCDate());break;case"http://www.w3.org/2001/XMLSchema#gMonthDay":u=o.getUTCMonth()+1+"-"+o.getUTCDate();break;case"http://www.w3.org/2001/XMLSchema#gYear":u=String(o.getUTCFullYear());break;case"http://www.w3.org/2001/XMLSchema#gYearMonth":u=o.getUTCFullYear()+"-"+(o.getUTCMonth()+1);break;case"http://www.w3.org/2001/XMLSchema#date":u=o.toISOString().replace(/T.*$/,"");break;default:u=o.toISOString()}return s.literal(u,a)}};return e.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"],e.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]$/},gp.TypeHandlerDate=e,gp}var _p={},M5;function bOe(){if(M5)return _p;M5=1,Object.defineProperty(_p,"__esModule",{value:!0}),_p.TypeHandlerNumberDouble=void 0;const t=Jd();let e=class iZ{fromRdf(n,a){const s=parseFloat(n.value);return a&&isNaN(s)&&t.Translator.incorrectRdfDataType(n),s}toRdf(n,{datatype:a,dataFactory:s}){return a=a||s.namedNode(iZ.TYPES[0]),isNaN(n)?s.literal("NaN",a):isFinite(n)?n%1===0?null:s.literal(n.toExponential(15).replace(/(\d)0*e\+?/,"$1E"),a):s.literal(n>0?"INF":"-INF",a)}};return e.TYPES=["http://www.w3.org/2001/XMLSchema#double","http://www.w3.org/2001/XMLSchema#decimal","http://www.w3.org/2001/XMLSchema#float"],_p.TypeHandlerNumberDouble=e,_p}var bp={},F5;function vOe(){if(F5)return bp;F5=1,Object.defineProperty(bp,"__esModule",{value:!0}),bp.TypeHandlerNumberInteger=void 0;const t=Jd();let e=class R_{fromRdf(n,a){const s=parseInt(n.value,10);return a&&(isNaN(s)||n.value.indexOf(".")>=0)&&t.Translator.incorrectRdfDataType(n),s}toRdf(n,{datatype:a,dataFactory:s}){return s.literal(String(n),a||(n<=R_.MAX_INT&&n>=R_.MIN_INT?s.namedNode(R_.TYPES[0]):s.namedNode(R_.TYPES[1])))}};return e.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"],e.MAX_INT=2147483647,e.MIN_INT=-2147483648,bp.TypeHandlerNumberInteger=e,bp}var vp={},B5;function wOe(){if(B5)return vp;B5=1,Object.defineProperty(vp,"__esModule",{value:!0}),vp.TypeHandlerString=void 0;let t=class{fromRdf(r){return r.value}toRdf(r,{datatype:n,dataFactory:a}){return a.literal(r,n)}};return 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"],vp.TypeHandlerString=t,vp}var q5;function $5(){return q5||(q5=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(gOe(),t),r(_Oe(),t),r(bOe(),t),r(vOe(),t),r(wOe(),t)}(H3)),H3}var Q3={},U5;function SOe(){return U5||(U5=1,Object.defineProperty(Q3,"__esModule",{value:!0})),Q3}var k5;function TOe(){return k5||(k5=1,function(t){var e=I&&I.__createBinding||(Object.create?function(p,m,y,g){g===void 0&&(g=y);var b=Object.getOwnPropertyDescriptor(m,y);(!b||("get"in b?!m.__esModule:b.writable||b.configurable))&&(b={enumerable:!0,get:function(){return m[y]}}),Object.defineProperty(p,g,b)}:function(p,m,y,g){g===void 0&&(g=y),p[g]=m[y]}),r=I&&I.__exportStar||function(p,m){for(var y in p)y!=="default"&&!Object.prototype.hasOwnProperty.call(m,y)&&e(m,p,y)};Object.defineProperty(t,"__esModule",{value:!0}),t.getSupportedJavaScriptPrimitives=t.getSupportedRdfDatatypes=t.getTermRaw=t.toRdf=t.fromRdf=void 0;const n=Ot,a=$5(),s=Jd();r($5(),t),r(SOe(),t),r(Jd(),t);const o=new n.DataFactory,u=new s.Translator;u.registerHandler(new a.TypeHandlerString,a.TypeHandlerString.TYPES.map(p=>o.namedNode(p)),["string"]),u.registerHandler(new a.TypeHandlerBoolean,[a.TypeHandlerBoolean.TYPE].map(p=>o.namedNode(p)),["boolean"]),u.registerHandler(new a.TypeHandlerNumberDouble,a.TypeHandlerNumberDouble.TYPES.map(p=>o.namedNode(p)),["number"]),u.registerHandler(new a.TypeHandlerNumberInteger,a.TypeHandlerNumberInteger.TYPES.map(p=>o.namedNode(p)),["number"]),u.registerHandler(new a.TypeHandlerDate,a.TypeHandlerDate.TYPES.map(p=>o.namedNode(p)),["object"]);function c(p,m){return u.fromRdf(p,m)}t.fromRdf=c;function l(p,m){return m&&"namedNode"in m&&(m={dataFactory:m}),m=m||{},m&&!m.dataFactory&&(m.dataFactory=o),u.toRdf(p,m)}t.toRdf=l;function d(p,m){return p.termType==="Literal"?c(p,m):p.value}t.getTermRaw=d;function f(){return u.getSupportedRdfDatatypes()}t.getSupportedRdfDatatypes=f;function h(){return u.getSupportedJavaScriptPrimitives()}t.getSupportedJavaScriptPrimitives=h}(V3)),V3}var z3={},wp={},{Buffer:tu}=ys,$t={},aZ=$t.LEFT_BRACE=1,Uw=$t.RIGHT_BRACE=2,sZ=$t.LEFT_BRACKET=3,GP=$t.RIGHT_BRACKET=4,kw=$t.COLON=5,PS=$t.COMMA=6,oZ=$t.TRUE=7,uZ=$t.FALSE=8,cZ=$t.NULL=9,NS=$t.STRING=10,lZ=$t.NUMBER=11,dc=$t.START=17,dZ=$t.STOP=18,V5=$t.TRUE1=33,H5=$t.TRUE2=34,Q5=$t.TRUE3=35,z5=$t.FALSE1=49,G5=$t.FALSE2=50,W5=$t.FALSE3=51,K5=$t.FALSE4=52,J5=$t.NULL1=65,X5=$t.NULL2=66,Y5=$t.NULL3=67,Z5=$t.NUMBER1=81,G3=$t.NUMBER3=83,Oa=$t.STRING1=97,e9=$t.STRING2=98,t9=$t.STRING3=99,EOe=$t.STRING4=100,AOe=$t.STRING5=101,r9=$t.STRING6=102,od=$t.VALUE=113,W3=$t.KEY=114,qv=$t.OBJECT=129,$v=$t.ARRAY=130,OOe=92,ROe=47,xOe=8,IOe=12,POe=10,NOe=13,DOe=9,KC=64*1024;function Uv(t){return tu.alloc?tu.alloc(t):new tu(t)}function gu(){this.tState=dc,this.value=void 0,this.string=void 0,this.stringBuffer=Uv(KC),this.stringBufferOffset=0,this.unicode=void 0,this.highSurrogate=void 0,this.key=void 0,this.mode=void 0,this.stack=[],this.state=od,this.bytes_remaining=0,this.bytes_in_sequence=0,this.temp_buffs={2:Uv(2),3:Uv(3),4:Uv(4)},this.offset=-1}gu.toknam=function(t){for(var e=Object.keys($t),r=0,n=e.length;r=KC&&(this.string+=this.stringBuffer.toString("utf8"),this.stringBufferOffset=0),this.stringBuffer[this.stringBufferOffset++]=t};Qi.appendStringBuf=function(t,e,r){var n=t.length;typeof e=="number"&&(typeof r=="number"?r<0?n=t.length-e+r:n=r-e:n=t.length-e),n<0&&(n=0),this.stringBufferOffset+n>KC&&(this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0),t.copy(this.stringBuffer,this.stringBufferOffset,e,r),this.stringBufferOffset+=n};Qi.write=function(t){typeof t=="string"&&(t=new tu(t));for(var e,r=0,n=t.length;r=48&&e<64)this.string=String.fromCharCode(e),this.tState=G3;else if(!(e===32||e===9||e===10||e===13))return this.charError(t,r)}else if(this.tState===Oa)if(e=t[r],this.bytes_remaining>0){for(var a=0;a=128){if(e<=193||e>244)return this.onError(new Error("Invalid UTF-8 character at position "+r+" in state "+gu.toknam(this.tState)));if(e>=194&&e<=223&&(this.bytes_in_sequence=2),e>=224&&e<=239&&(this.bytes_in_sequence=3),e>=240&&e<=244&&(this.bytes_in_sequence=4),this.bytes_in_sequence+r>t.length){for(var s=0;s<=t.length-1-r;s++)this.temp_buffs[this.bytes_in_sequence][s]=t[r+s];this.bytes_remaining=r+this.bytes_in_sequence-t.length,r=t.length-1}else this.appendStringBuf(t,r,r+this.bytes_in_sequence),r=r+this.bytes_in_sequence-1}else if(e===34)this.tState=dc,this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0,this.onToken(NS,this.string),this.offset+=tu.byteLength(this.string,"utf8")+1,this.string=void 0;else if(e===92)this.tState=e9;else if(e>=32)this.appendStringChar(e);else return this.charError(t,r);else if(this.tState===e9)if(e=t[r],e===34)this.appendStringChar(e),this.tState=Oa;else if(e===92)this.appendStringChar(OOe),this.tState=Oa;else if(e===47)this.appendStringChar(ROe),this.tState=Oa;else if(e===98)this.appendStringChar(xOe),this.tState=Oa;else if(e===102)this.appendStringChar(IOe),this.tState=Oa;else if(e===110)this.appendStringChar(POe),this.tState=Oa;else if(e===114)this.appendStringChar(NOe),this.tState=Oa;else if(e===116)this.appendStringChar(DOe),this.tState=Oa;else if(e===117)this.unicode="",this.tState=t9;else return this.charError(t,r);else if(this.tState===t9||this.tState===EOe||this.tState===AOe||this.tState===r9)if(e=t[r],e>=48&&e<64||e>64&&e<=70||e>96&&e<=102){if(this.unicode+=String.fromCharCode(e),this.tState++===r9){var o=parseInt(this.unicode,16);this.unicode=void 0,this.highSurrogate!==void 0&&o>=56320&&o<57344?(this.appendStringBuf(new tu(String.fromCharCode(this.highSurrogate,o))),this.highSurrogate=void 0):this.highSurrogate===void 0&&o>=55296&&o<56320?this.highSurrogate=o:(this.highSurrogate!==void 0&&(this.appendStringBuf(new tu(String.fromCharCode(this.highSurrogate))),this.highSurrogate=void 0),this.appendStringBuf(new tu(String.fromCharCode(o)))),this.tState=Oa}}else return this.charError(t,r);else if(this.tState===Z5||this.tState===G3)switch(e=t[r],e){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 46:case 101:case 69:case 43:case 45:this.string+=String.fromCharCode(e),this.tState=G3;break;default:this.tState=dc;var u=this.numberReviver(this.string);if(u)return u;this.offset+=this.string.length-1,this.string=void 0,r--;break}else if(this.tState===V5)if(t[r]===114)this.tState=H5;else return this.charError(t,r);else if(this.tState===H5)if(t[r]===117)this.tState=Q5;else return this.charError(t,r);else if(this.tState===Q5)if(t[r]===101)this.tState=dc,this.onToken(oZ,!0),this.offset+=3;else return this.charError(t,r);else if(this.tState===z5)if(t[r]===97)this.tState=G5;else return this.charError(t,r);else if(this.tState===G5)if(t[r]===108)this.tState=W5;else return this.charError(t,r);else if(this.tState===W5)if(t[r]===115)this.tState=K5;else return this.charError(t,r);else if(this.tState===K5)if(t[r]===101)this.tState=dc,this.onToken(uZ,!1),this.offset+=4;else return this.charError(t,r);else if(this.tState===J5)if(t[r]===117)this.tState=X5;else return this.charError(t,r);else if(this.tState===X5)if(t[r]===108)this.tState=Y5;else return this.charError(t,r);else if(this.tState===Y5)if(t[r]===108)this.tState=dc,this.onToken(cZ,null),this.offset+=3;else return this.charError(t,r)};Qi.onToken=function(t,e){};Qi.parseError=function(t,e){this.tState=dZ,this.onError(new Error("Unexpected "+gu.toknam(t)+(e?"("+JSON.stringify(e)+")":"")+" in state "+gu.toknam(this.state)))};Qi.push=function(){this.stack.push({value:this.value,key:this.key,mode:this.mode})};Qi.pop=function(){var t=this.value,e=this.stack.pop();this.value=e.value,this.key=e.key,this.mode=e.mode,this.emit(t),this.mode||(this.state=od)};Qi.emit=function(t){this.mode&&(this.state=PS),this.onValue(t)};Qi.onValue=function(t){};Qi.onToken=function(t,e){if(this.state===od)if(t===NS||t===lZ||t===oZ||t===uZ||t===cZ)this.value&&(this.value[this.key]=e),this.emit(e);else if(t===aZ)this.push(),this.value?this.value=this.value[this.key]={}:this.value={},this.key=void 0,this.state=W3,this.mode=qv;else if(t===sZ)this.push(),this.value?this.value=this.value[this.key]=[]:this.value=[],this.key=0,this.mode=$v,this.state=od;else if(t===Uw)if(this.mode===qv)this.pop();else return this.parseError(t,e);else if(t===GP)if(this.mode===$v)this.pop();else return this.parseError(t,e);else return this.parseError(t,e);else if(this.state===W3)if(t===NS)this.key=e,this.state=kw;else if(t===Uw)this.pop();else return this.parseError(t,e);else if(this.state===kw)if(t===kw)this.state=od;else return this.parseError(t,e);else if(this.state===PS)if(t===PS)this.mode===$v?(this.key++,this.state=od):this.mode===qv&&(this.state=W3);else if(t===GP&&this.mode===$v||t===Uw&&this.mode===qv)this.pop();else return this.parseError(t,e);else return this.parseError(t,e)};Qi.numberReviver=function(t){var e=Number(t);if(isNaN(e))return this.charError(buffer,i);t.match(/[0-9]+/)==t&&e.toString()!=t?this.onToken(NS,t):this.onToken(lZ,e)};gu.C=$t;var fZ=gu,n9;function COe(){if(n9)return wp;n9=1,Object.defineProperty(wp,"__esModule",{value:!0}),wp.SparqlJsonParser=void 0;const t=Ot,e=Pt,r=fZ;let n=class{constructor(s){var o;s=s||{},this.dataFactory=s.dataFactory||new t.DataFactory,this.prefixVariableQuestionMark=!!s.prefixVariableQuestionMark,this.suppressMissingStreamResultsError=(o=s.suppressMissingStreamResultsError)!==null&&o!==void 0?o:!0}parseJsonResults(s){return s.results.bindings.map(o=>this.parseJsonBindings(o))}parseJsonResultsStream(s){const o=f=>d.emit("error",f);s.on("error",o);const u=new r;u.onError=o;let c=!1,l=!1;u.onValue=f=>{if(u.key==="vars"&&u.stack.length===2&&u.stack[1].key==="head")d.emit("variables",f.map(h=>this.dataFactory.variable(h))),c=!0;else if(u.key==="results"&&u.stack.length===1)l=!0;else if(typeof u.key=="number"&&u.stack.length===3&&u.stack[1].key==="results"&&u.stack[2].key==="bindings")try{d.push(this.parseJsonBindings(f))}catch(h){d.emit("error",h)}else u.key==="metadata"&&u.stack.length===1&&d.emit("metadata",f)};const d=s.on("end",f=>{!l&&!this.suppressMissingStreamResultsError?d.emit("error",new Error("No valid SPARQL query results were found.")):c||d.emit("variables",[])}).pipe(new e.Transform({objectMode:!0,transform(f,h,p){u.write(f),p()}}));return d}parseJsonBindings(s){const o={};for(const u in s){const c=s[u];o[this.prefixVariableQuestionMark?"?"+u:u]=this.parseJsonValue(c)}return o}parseJsonValue(s){let o;switch(s.type){case"bnode":o=this.dataFactory.blankNode(s.value);break;case"literal":s["xml:lang"]?o=this.dataFactory.literal(s.value,s["xml:lang"]):s.datatype?o=this.dataFactory.literal(s.value,this.dataFactory.namedNode(s.datatype)):o=this.dataFactory.literal(s.value);break;case"typed-literal":o=this.dataFactory.literal(s.value,this.dataFactory.namedNode(s.datatype));break;case"triple":const u=s.value;if(!u||!u.subject||!u.predicate||!u.object)throw new Error("Invalid quoted triple: "+JSON.stringify(s));o=this.dataFactory.quad(this.parseJsonValue(u.subject),this.parseJsonValue(u.predicate),this.parseJsonValue(u.object));break;default:o=this.dataFactory.namedNode(s.value);break}return o}parseJsonBoolean(s){if("boolean"in s)return s.boolean;throw new Error("No valid ASK response was found.")}parseJsonBooleanStream(s){return new Promise((o,u)=>{const c=new r;c.onError=u,c.onValue=l=>{c.key==="boolean"&&typeof l=="boolean"&&c.stack.length===1&&o(l)},s.on("error",u).on("data",l=>c.write(l)).on("end",()=>u(new Error("No valid ASK response was found.")))})}};return wp.SparqlJsonParser=n,wp}var i9;function hZ(){return i9||(i9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(COe(),t)}(z3)),z3}var a9;function LOe(){if(a9)return pp;a9=1,Object.defineProperty(pp,"__esModule",{value:!0}),pp.Converter=void 0;const t=TOe(),e=hZ();let r=class Gs{constructor(a){a=a||{delimiter:"_"},a.prefixVariableQuestionMark=!1,this.delimiter=a.delimiter||"_",this.parser=new e.SparqlJsonParser(a),this.materializeRdfJsTerms=a.materializeRdfJsTerms}static addValueToTree(a,s,o,u,c,l){const d=s[0],f=u?u+l+d:d,h=c.singularizeVariables[f];if(s.length===1)h?a[d]||(a[d]=o):(a[d]||(a[d]=[]),a[d].push(o));else{let p;h?(a[d]||(a[d]={}),p=a[d]):(a[d]||(a[d]=[{}]),p=a[d][0]),Gs.addValueToTree(p,s.slice(1),o,f,c,l)}}static mergeTrees(a,s){if(typeof a!=typeof s)throw new Error(`Two incompatible tree nodes were found: ${typeof a} and ${typeof s}`);if(Array.isArray(a)!==Array.isArray(s))throw new Error(`Two incompatible tree nodes were found: Array?${Array.isArray(a)} and Array?${Array.isArray(s)}`);if(typeof a=="object"&&typeof s=="object"){if(a.termType&&s.termType)return a.equals(s)?{valid:!0,result:a}:{valid:!1,result:a};if(Array.isArray(a)&&Array.isArray(s)){if(a.length>0){const o=[];let u=!1;for(const c of a){const l=Gs.mergeTrees(c,s[0]);l.valid?(u=!0,o.push(l.result)):o.push(c)}if(u)return{valid:!0,result:o}}return{valid:!0,result:a.concat(s)}}else{const o={};for(const u in s)o[u]=s[u];for(const u in a)if(o[u]){const c=Gs.mergeTrees(a[u],o[u]);if(c.valid)o[u]=c.result;else return{valid:!1,result:a}}else o[u]=a[u];return{valid:!0,result:o}}}else throw new Error(`Unmergable tree types: ${typeof a} and ${typeof s}`)}static materializeTree(a){if(a.termType)return(0,t.getTermRaw)(a);if(Array.isArray(a))return a.map(Gs.materializeTree);{const s={};for(const o in a)s[o]=Gs.materializeTree(a[o]);return s}}sparqlJsonResultsToTree(a,s){return this.bindingsToTree(this.parser.parseJsonResults(a),s||{singularizeVariables:{}})}bindingsToTree(a,s){const o=s&&s.singularizeVariables[""];let u=o?{}:[];for(const c of a){const l=o?{}:[{}];for(const d in c){const f=d.split(this.delimiter),h=c[d];Gs.addValueToTree(o?l:l[0],f,h,"",s,this.delimiter)}u=Gs.mergeTrees(u,l).result}return this.materializeRdfJsTerms&&(u=Gs.materializeTree(u)),u}};return pp.Converter=r,pp}var s9;function jOe(){return s9||(s9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(LOe(),t)}(k3)),k3}var o9;function u9(){if(o9)return hp;o9=1,Object.defineProperty(hp,"__esModule",{value:!0}),hp.ActorQueryResultSerializeTree=void 0;const t=Ss(),e=qt,r=st,n=Pt,a=jOe();let s=class pZ extends t.ActorQueryResultSerializeFixedMediaTypes{constructor(u){super(u)}static async bindingsStreamToGraphQl(u,c,l){const d=r.ActionContext.ensureActionContext(c),f=new a.Converter(l),h={singularizeVariables:d.get(e.KeysInitQuery.graphqlSingularizeVariables)??{}};return f.bindingsToTree(await u.map(p=>Object.fromEntries([...p].map(([m,y])=>[m.value,y]))).toArray(),h)}async testHandleChecked(u){if(u.type!=="bindings")throw new Error("This actor can only handle bindings streams.");return!0}async runHandle(u,c){const l=new n.Readable;return l._read=()=>{l._read=()=>{},pZ.bindingsStreamToGraphQl(u.bindingsStream,u.context,{materializeRdfJsTerms:!0}).then(d=>{l.push(JSON.stringify(d,null," ")),l.push(null)}).catch(d=>l.emit("error",d))},{data:l}}};return hp.ActorQueryResultSerializeTree=s,hp}var c9;function MOe(){return c9||(c9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,o,u,c){c===void 0&&(c=u);var l=Object.getOwnPropertyDescriptor(o,u);(!l||("get"in l?!o.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return o[u]}}),Object.defineProperty(s,c,l)}:function(s,o,u,c){c===void 0&&(c=u),s[c]=o[u]}),r=I&&I.__exportStar||function(s,o){for(var u in s)u!=="default"&&!Object.prototype.hasOwnProperty.call(o,u)&&e(o,s,u)};Object.defineProperty(t,"__esModule",{value:!0}),t.bindingsStreamToGraphQl=void 0;const n=u9(),{bindingsStreamToGraphQl:a}=n.ActorQueryResultSerializeTree;t.bindingsStreamToGraphQl=a,r(u9(),t)}(U3)),U3}var K3={},Sp={},l9;function FOe(){if(l9)return Sp;l9=1,Object.defineProperty(Sp,"__esModule",{value:!0}),Sp.MediatorCombineUnion=void 0;const t=st;let e=class extends t.Mediator{constructor(n){super(n),this.combiner=this.createCombiner()}async mediate(n){let a;try{a=this.publish(n)}catch{a=[]}if(this.filterErrors){const o=[];for(const u of a)try{await u.reply,o.push(u)}catch{}a=o}await Promise.all(a.map(({reply:o})=>o));const s=await Promise.all(a.map(o=>o.actor.runObservable(n)));return this.combiner(s)}mediateWith(){throw new Error("Method not supported.")}createCombiner(){return n=>{const a={};return a[this.field]={},[{}].concat(n.map(s=>s[this.field])).forEach(s=>{a[this.field]={...s,...a[this.field]}}),a}}};return Sp.MediatorCombineUnion=e,Sp}var d9;function Fo(){return d9||(d9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(FOe(),t)}(K3)),K3}var J3={},Tp={},f9;function BOe(){if(f9)return Tp;f9=1,Object.defineProperty(Tp,"__esModule",{value:!0}),Tp.MediatorNumber=void 0;const t=st;let e=class extends t.Mediator{constructor(n){super(n),this.indexPicker=this.createIndexPicker()}createIndexPicker(){switch(this.type){case"min":return n=>n.reduce((a,s,o)=>{const u=this.getOrDefault(s[this.field],Number.POSITIVE_INFINITY);return u!==null&&(Number.isNaN(a[0])||a[0]>u)?[u,o]:a},[Number.NaN,-1])[1];case"max":return n=>n.reduce((a,s,o)=>{const u=this.getOrDefault(s[this.field],Number.NEGATIVE_INFINITY);return u!==null&&(Number.isNaN(a[0])||a[0]l);const o=[];if(this.ignoreErrors){const l={};l[this.field]=null,s=s.map(d=>d.catch(f=>(o.push(f),l)))}const u=await Promise.all(s),c=this.indexPicker(u);if(c<0)throw new Error(`All actors rejected their test in ${this.name} +`),this.pushHeader(h,o);return h.wrap(p),{data:h}}};return fp.ActorQueryResultSerializeTable=u,fp}var D5;function yOe(){return D5||(D5=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(pOe(),t)}(q3)),q3}var $3={},hp={},U3={},pp={},k3={},V3={},yp={},mp={},C5;function Kd(){if(C5)return mp;C5=1,Object.defineProperty(mp,"__esModule",{value:!0}),mp.Translator=void 0;let t=class{constructor(){this.supportedRdfDatatypes=[],this.fromRdfHandlers={},this.toRdfHandlers={}}static incorrectRdfDataType(r){throw new Error(`Invalid RDF ${r.datatype.value} value: '${r.value}'`)}registerHandler(r,n,a){for(const s of n)this.supportedRdfDatatypes.push(s),this.fromRdfHandlers[s.value]=r;for(const s of a){let o=this.toRdfHandlers[s];o||(this.toRdfHandlers[s]=o=[]),o.push(r)}}fromRdf(r,n){const a=this.fromRdfHandlers[r.datatype.value];return a?a.fromRdf(r,n):r.value}toRdf(r,n){const a=this.toRdfHandlers[typeof r];if(a)for(const s of a){const o=s.toRdf(r,n);if(o)return o}throw new Error(`Invalid JavaScript value: '${r}'`)}getSupportedRdfDatatypes(){return this.supportedRdfDatatypes}getSupportedJavaScriptPrimitives(){return Object.keys(this.toRdfHandlers)}};return mp.Translator=t,mp}var L5;function mOe(){if(L5)return yp;L5=1,Object.defineProperty(yp,"__esModule",{value:!0}),yp.TypeHandlerBoolean=void 0;const t=Kd();let e=class nZ{fromRdf(n,a){switch(n.value){case"true":return!0;case"false":return!1;case"1":return!0;case"0":return!1}return a&&t.Translator.incorrectRdfDataType(n),!1}toRdf(n,{datatype:a,dataFactory:s}){return s.literal(n?"true":"false",a||s.namedNode(nZ.TYPE))}};return e.TYPE="http://www.w3.org/2001/XMLSchema#boolean",yp.TypeHandlerBoolean=e,yp}var gp={},j5;function gOe(){if(j5)return gp;j5=1,Object.defineProperty(gp,"__esModule",{value:!0}),gp.TypeHandlerDate=void 0;const t=Kd();let e=class zP{fromRdf(n,a){switch(a&&!n.value.match(zP.VALIDATORS[n.datatype.value.substr(33,n.datatype.value.length)])&&t.Translator.incorrectRdfDataType(n),n.datatype.value){case"http://www.w3.org/2001/XMLSchema#gDay":return new Date(0,0,parseInt(n.value,10));case"http://www.w3.org/2001/XMLSchema#gMonthDay":const s=n.value.split("-");return new Date(0,parseInt(s[0],10)-1,parseInt(s[1],10));case"http://www.w3.org/2001/XMLSchema#gYear":return new Date(n.value+"-01-01");case"http://www.w3.org/2001/XMLSchema#gYearMonth":return new Date(n.value+"-01");default:return new Date(n.value)}}toRdf(n,{datatype:a,dataFactory:s}){if(a=a||s.namedNode(zP.TYPES[0]),!(n instanceof Date))return null;const o=n;let u;switch(a.value){case"http://www.w3.org/2001/XMLSchema#gDay":u=String(o.getUTCDate());break;case"http://www.w3.org/2001/XMLSchema#gMonthDay":u=o.getUTCMonth()+1+"-"+o.getUTCDate();break;case"http://www.w3.org/2001/XMLSchema#gYear":u=String(o.getUTCFullYear());break;case"http://www.w3.org/2001/XMLSchema#gYearMonth":u=o.getUTCFullYear()+"-"+(o.getUTCMonth()+1);break;case"http://www.w3.org/2001/XMLSchema#date":u=o.toISOString().replace(/T.*$/,"");break;default:u=o.toISOString()}return s.literal(u,a)}};return e.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"],e.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]$/},gp.TypeHandlerDate=e,gp}var _p={},M5;function _Oe(){if(M5)return _p;M5=1,Object.defineProperty(_p,"__esModule",{value:!0}),_p.TypeHandlerNumberDouble=void 0;const t=Kd();let e=class iZ{fromRdf(n,a){const s=parseFloat(n.value);return a&&isNaN(s)&&t.Translator.incorrectRdfDataType(n),s}toRdf(n,{datatype:a,dataFactory:s}){return a=a||s.namedNode(iZ.TYPES[0]),isNaN(n)?s.literal("NaN",a):isFinite(n)?n%1===0?null:s.literal(n.toExponential(15).replace(/(\d)0*e\+?/,"$1E"),a):s.literal(n>0?"INF":"-INF",a)}};return e.TYPES=["http://www.w3.org/2001/XMLSchema#double","http://www.w3.org/2001/XMLSchema#decimal","http://www.w3.org/2001/XMLSchema#float"],_p.TypeHandlerNumberDouble=e,_p}var bp={},F5;function bOe(){if(F5)return bp;F5=1,Object.defineProperty(bp,"__esModule",{value:!0}),bp.TypeHandlerNumberInteger=void 0;const t=Kd();let e=class R_{fromRdf(n,a){const s=parseInt(n.value,10);return a&&(isNaN(s)||n.value.indexOf(".")>=0)&&t.Translator.incorrectRdfDataType(n),s}toRdf(n,{datatype:a,dataFactory:s}){return s.literal(String(n),a||(n<=R_.MAX_INT&&n>=R_.MIN_INT?s.namedNode(R_.TYPES[0]):s.namedNode(R_.TYPES[1])))}};return e.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"],e.MAX_INT=2147483647,e.MIN_INT=-2147483648,bp.TypeHandlerNumberInteger=e,bp}var vp={},B5;function vOe(){if(B5)return vp;B5=1,Object.defineProperty(vp,"__esModule",{value:!0}),vp.TypeHandlerString=void 0;let t=class{fromRdf(r){return r.value}toRdf(r,{datatype:n,dataFactory:a}){return a.literal(r,n)}};return 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"],vp.TypeHandlerString=t,vp}var q5;function $5(){return q5||(q5=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(mOe(),t),r(gOe(),t),r(_Oe(),t),r(bOe(),t),r(vOe(),t)}(V3)),V3}var H3={},U5;function wOe(){return U5||(U5=1,Object.defineProperty(H3,"__esModule",{value:!0})),H3}var k5;function SOe(){return k5||(k5=1,function(t){var e=I&&I.__createBinding||(Object.create?function(p,m,y,g){g===void 0&&(g=y);var b=Object.getOwnPropertyDescriptor(m,y);(!b||("get"in b?!m.__esModule:b.writable||b.configurable))&&(b={enumerable:!0,get:function(){return m[y]}}),Object.defineProperty(p,g,b)}:function(p,m,y,g){g===void 0&&(g=y),p[g]=m[y]}),r=I&&I.__exportStar||function(p,m){for(var y in p)y!=="default"&&!Object.prototype.hasOwnProperty.call(m,y)&&e(m,p,y)};Object.defineProperty(t,"__esModule",{value:!0}),t.getSupportedJavaScriptPrimitives=t.getSupportedRdfDatatypes=t.getTermRaw=t.toRdf=t.fromRdf=void 0;const n=Ot,a=$5(),s=Kd();r($5(),t),r(wOe(),t),r(Kd(),t);const o=new n.DataFactory,u=new s.Translator;u.registerHandler(new a.TypeHandlerString,a.TypeHandlerString.TYPES.map(p=>o.namedNode(p)),["string"]),u.registerHandler(new a.TypeHandlerBoolean,[a.TypeHandlerBoolean.TYPE].map(p=>o.namedNode(p)),["boolean"]),u.registerHandler(new a.TypeHandlerNumberDouble,a.TypeHandlerNumberDouble.TYPES.map(p=>o.namedNode(p)),["number"]),u.registerHandler(new a.TypeHandlerNumberInteger,a.TypeHandlerNumberInteger.TYPES.map(p=>o.namedNode(p)),["number"]),u.registerHandler(new a.TypeHandlerDate,a.TypeHandlerDate.TYPES.map(p=>o.namedNode(p)),["object"]);function c(p,m){return u.fromRdf(p,m)}t.fromRdf=c;function l(p,m){return m&&"namedNode"in m&&(m={dataFactory:m}),m=m||{},m&&!m.dataFactory&&(m.dataFactory=o),u.toRdf(p,m)}t.toRdf=l;function d(p,m){return p.termType==="Literal"?c(p,m):p.value}t.getTermRaw=d;function f(){return u.getSupportedRdfDatatypes()}t.getSupportedRdfDatatypes=f;function h(){return u.getSupportedJavaScriptPrimitives()}t.getSupportedJavaScriptPrimitives=h}(k3)),k3}var Q3={},wp={},{Buffer:tu}=ys,$t={},aZ=$t.LEFT_BRACE=1,Uw=$t.RIGHT_BRACE=2,sZ=$t.LEFT_BRACKET=3,GP=$t.RIGHT_BRACKET=4,kw=$t.COLON=5,IS=$t.COMMA=6,oZ=$t.TRUE=7,uZ=$t.FALSE=8,cZ=$t.NULL=9,PS=$t.STRING=10,lZ=$t.NUMBER=11,dc=$t.START=17,dZ=$t.STOP=18,V5=$t.TRUE1=33,H5=$t.TRUE2=34,Q5=$t.TRUE3=35,z5=$t.FALSE1=49,G5=$t.FALSE2=50,W5=$t.FALSE3=51,K5=$t.FALSE4=52,J5=$t.NULL1=65,X5=$t.NULL2=66,Y5=$t.NULL3=67,Z5=$t.NUMBER1=81,z3=$t.NUMBER3=83,Oa=$t.STRING1=97,e9=$t.STRING2=98,t9=$t.STRING3=99,TOe=$t.STRING4=100,EOe=$t.STRING5=101,r9=$t.STRING6=102,sd=$t.VALUE=113,G3=$t.KEY=114,qv=$t.OBJECT=129,$v=$t.ARRAY=130,AOe=92,OOe=47,ROe=8,xOe=12,IOe=10,POe=13,NOe=9,KC=64*1024;function Uv(t){return tu.alloc?tu.alloc(t):new tu(t)}function gu(){this.tState=dc,this.value=void 0,this.string=void 0,this.stringBuffer=Uv(KC),this.stringBufferOffset=0,this.unicode=void 0,this.highSurrogate=void 0,this.key=void 0,this.mode=void 0,this.stack=[],this.state=sd,this.bytes_remaining=0,this.bytes_in_sequence=0,this.temp_buffs={2:Uv(2),3:Uv(3),4:Uv(4)},this.offset=-1}gu.toknam=function(t){for(var e=Object.keys($t),r=0,n=e.length;r=KC&&(this.string+=this.stringBuffer.toString("utf8"),this.stringBufferOffset=0),this.stringBuffer[this.stringBufferOffset++]=t};Qi.appendStringBuf=function(t,e,r){var n=t.length;typeof e=="number"&&(typeof r=="number"?r<0?n=t.length-e+r:n=r-e:n=t.length-e),n<0&&(n=0),this.stringBufferOffset+n>KC&&(this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0),t.copy(this.stringBuffer,this.stringBufferOffset,e,r),this.stringBufferOffset+=n};Qi.write=function(t){typeof t=="string"&&(t=new tu(t));for(var e,r=0,n=t.length;r=48&&e<64)this.string=String.fromCharCode(e),this.tState=z3;else if(!(e===32||e===9||e===10||e===13))return this.charError(t,r)}else if(this.tState===Oa)if(e=t[r],this.bytes_remaining>0){for(var a=0;a=128){if(e<=193||e>244)return this.onError(new Error("Invalid UTF-8 character at position "+r+" in state "+gu.toknam(this.tState)));if(e>=194&&e<=223&&(this.bytes_in_sequence=2),e>=224&&e<=239&&(this.bytes_in_sequence=3),e>=240&&e<=244&&(this.bytes_in_sequence=4),this.bytes_in_sequence+r>t.length){for(var s=0;s<=t.length-1-r;s++)this.temp_buffs[this.bytes_in_sequence][s]=t[r+s];this.bytes_remaining=r+this.bytes_in_sequence-t.length,r=t.length-1}else this.appendStringBuf(t,r,r+this.bytes_in_sequence),r=r+this.bytes_in_sequence-1}else if(e===34)this.tState=dc,this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0,this.onToken(PS,this.string),this.offset+=tu.byteLength(this.string,"utf8")+1,this.string=void 0;else if(e===92)this.tState=e9;else if(e>=32)this.appendStringChar(e);else return this.charError(t,r);else if(this.tState===e9)if(e=t[r],e===34)this.appendStringChar(e),this.tState=Oa;else if(e===92)this.appendStringChar(AOe),this.tState=Oa;else if(e===47)this.appendStringChar(OOe),this.tState=Oa;else if(e===98)this.appendStringChar(ROe),this.tState=Oa;else if(e===102)this.appendStringChar(xOe),this.tState=Oa;else if(e===110)this.appendStringChar(IOe),this.tState=Oa;else if(e===114)this.appendStringChar(POe),this.tState=Oa;else if(e===116)this.appendStringChar(NOe),this.tState=Oa;else if(e===117)this.unicode="",this.tState=t9;else return this.charError(t,r);else if(this.tState===t9||this.tState===TOe||this.tState===EOe||this.tState===r9)if(e=t[r],e>=48&&e<64||e>64&&e<=70||e>96&&e<=102){if(this.unicode+=String.fromCharCode(e),this.tState++===r9){var o=parseInt(this.unicode,16);this.unicode=void 0,this.highSurrogate!==void 0&&o>=56320&&o<57344?(this.appendStringBuf(new tu(String.fromCharCode(this.highSurrogate,o))),this.highSurrogate=void 0):this.highSurrogate===void 0&&o>=55296&&o<56320?this.highSurrogate=o:(this.highSurrogate!==void 0&&(this.appendStringBuf(new tu(String.fromCharCode(this.highSurrogate))),this.highSurrogate=void 0),this.appendStringBuf(new tu(String.fromCharCode(o)))),this.tState=Oa}}else return this.charError(t,r);else if(this.tState===Z5||this.tState===z3)switch(e=t[r],e){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 46:case 101:case 69:case 43:case 45:this.string+=String.fromCharCode(e),this.tState=z3;break;default:this.tState=dc;var u=this.numberReviver(this.string);if(u)return u;this.offset+=this.string.length-1,this.string=void 0,r--;break}else if(this.tState===V5)if(t[r]===114)this.tState=H5;else return this.charError(t,r);else if(this.tState===H5)if(t[r]===117)this.tState=Q5;else return this.charError(t,r);else if(this.tState===Q5)if(t[r]===101)this.tState=dc,this.onToken(oZ,!0),this.offset+=3;else return this.charError(t,r);else if(this.tState===z5)if(t[r]===97)this.tState=G5;else return this.charError(t,r);else if(this.tState===G5)if(t[r]===108)this.tState=W5;else return this.charError(t,r);else if(this.tState===W5)if(t[r]===115)this.tState=K5;else return this.charError(t,r);else if(this.tState===K5)if(t[r]===101)this.tState=dc,this.onToken(uZ,!1),this.offset+=4;else return this.charError(t,r);else if(this.tState===J5)if(t[r]===117)this.tState=X5;else return this.charError(t,r);else if(this.tState===X5)if(t[r]===108)this.tState=Y5;else return this.charError(t,r);else if(this.tState===Y5)if(t[r]===108)this.tState=dc,this.onToken(cZ,null),this.offset+=3;else return this.charError(t,r)};Qi.onToken=function(t,e){};Qi.parseError=function(t,e){this.tState=dZ,this.onError(new Error("Unexpected "+gu.toknam(t)+(e?"("+JSON.stringify(e)+")":"")+" in state "+gu.toknam(this.state)))};Qi.push=function(){this.stack.push({value:this.value,key:this.key,mode:this.mode})};Qi.pop=function(){var t=this.value,e=this.stack.pop();this.value=e.value,this.key=e.key,this.mode=e.mode,this.emit(t),this.mode||(this.state=sd)};Qi.emit=function(t){this.mode&&(this.state=IS),this.onValue(t)};Qi.onValue=function(t){};Qi.onToken=function(t,e){if(this.state===sd)if(t===PS||t===lZ||t===oZ||t===uZ||t===cZ)this.value&&(this.value[this.key]=e),this.emit(e);else if(t===aZ)this.push(),this.value?this.value=this.value[this.key]={}:this.value={},this.key=void 0,this.state=G3,this.mode=qv;else if(t===sZ)this.push(),this.value?this.value=this.value[this.key]=[]:this.value=[],this.key=0,this.mode=$v,this.state=sd;else if(t===Uw)if(this.mode===qv)this.pop();else return this.parseError(t,e);else if(t===GP)if(this.mode===$v)this.pop();else return this.parseError(t,e);else return this.parseError(t,e);else if(this.state===G3)if(t===PS)this.key=e,this.state=kw;else if(t===Uw)this.pop();else return this.parseError(t,e);else if(this.state===kw)if(t===kw)this.state=sd;else return this.parseError(t,e);else if(this.state===IS)if(t===IS)this.mode===$v?(this.key++,this.state=sd):this.mode===qv&&(this.state=G3);else if(t===GP&&this.mode===$v||t===Uw&&this.mode===qv)this.pop();else return this.parseError(t,e);else return this.parseError(t,e)};Qi.numberReviver=function(t){var e=Number(t);if(isNaN(e))return this.charError(buffer,i);t.match(/[0-9]+/)==t&&e.toString()!=t?this.onToken(PS,t):this.onToken(lZ,e)};gu.C=$t;var fZ=gu,n9;function DOe(){if(n9)return wp;n9=1,Object.defineProperty(wp,"__esModule",{value:!0}),wp.SparqlJsonParser=void 0;const t=Ot,e=Pt,r=fZ;let n=class{constructor(s){var o;s=s||{},this.dataFactory=s.dataFactory||new t.DataFactory,this.prefixVariableQuestionMark=!!s.prefixVariableQuestionMark,this.suppressMissingStreamResultsError=(o=s.suppressMissingStreamResultsError)!==null&&o!==void 0?o:!0}parseJsonResults(s){return s.results.bindings.map(o=>this.parseJsonBindings(o))}parseJsonResultsStream(s){const o=f=>d.emit("error",f);s.on("error",o);const u=new r;u.onError=o;let c=!1,l=!1;u.onValue=f=>{if(u.key==="vars"&&u.stack.length===2&&u.stack[1].key==="head")d.emit("variables",f.map(h=>this.dataFactory.variable(h))),c=!0;else if(u.key==="results"&&u.stack.length===1)l=!0;else if(typeof u.key=="number"&&u.stack.length===3&&u.stack[1].key==="results"&&u.stack[2].key==="bindings")try{d.push(this.parseJsonBindings(f))}catch(h){d.emit("error",h)}else u.key==="metadata"&&u.stack.length===1&&d.emit("metadata",f)};const d=s.on("end",f=>{!l&&!this.suppressMissingStreamResultsError?d.emit("error",new Error("No valid SPARQL query results were found.")):c||d.emit("variables",[])}).pipe(new e.Transform({objectMode:!0,transform(f,h,p){u.write(f),p()}}));return d}parseJsonBindings(s){const o={};for(const u in s){const c=s[u];o[this.prefixVariableQuestionMark?"?"+u:u]=this.parseJsonValue(c)}return o}parseJsonValue(s){let o;switch(s.type){case"bnode":o=this.dataFactory.blankNode(s.value);break;case"literal":s["xml:lang"]?o=this.dataFactory.literal(s.value,s["xml:lang"]):s.datatype?o=this.dataFactory.literal(s.value,this.dataFactory.namedNode(s.datatype)):o=this.dataFactory.literal(s.value);break;case"typed-literal":o=this.dataFactory.literal(s.value,this.dataFactory.namedNode(s.datatype));break;case"triple":const u=s.value;if(!u||!u.subject||!u.predicate||!u.object)throw new Error("Invalid quoted triple: "+JSON.stringify(s));o=this.dataFactory.quad(this.parseJsonValue(u.subject),this.parseJsonValue(u.predicate),this.parseJsonValue(u.object));break;default:o=this.dataFactory.namedNode(s.value);break}return o}parseJsonBoolean(s){if("boolean"in s)return s.boolean;throw new Error("No valid ASK response was found.")}parseJsonBooleanStream(s){return new Promise((o,u)=>{const c=new r;c.onError=u,c.onValue=l=>{c.key==="boolean"&&typeof l=="boolean"&&c.stack.length===1&&o(l)},s.on("error",u).on("data",l=>c.write(l)).on("end",()=>u(new Error("No valid ASK response was found.")))})}};return wp.SparqlJsonParser=n,wp}var i9;function hZ(){return i9||(i9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(DOe(),t)}(Q3)),Q3}var a9;function COe(){if(a9)return pp;a9=1,Object.defineProperty(pp,"__esModule",{value:!0}),pp.Converter=void 0;const t=SOe(),e=hZ();let r=class Gs{constructor(a){a=a||{delimiter:"_"},a.prefixVariableQuestionMark=!1,this.delimiter=a.delimiter||"_",this.parser=new e.SparqlJsonParser(a),this.materializeRdfJsTerms=a.materializeRdfJsTerms}static addValueToTree(a,s,o,u,c,l){const d=s[0],f=u?u+l+d:d,h=c.singularizeVariables[f];if(s.length===1)h?a[d]||(a[d]=o):(a[d]||(a[d]=[]),a[d].push(o));else{let p;h?(a[d]||(a[d]={}),p=a[d]):(a[d]||(a[d]=[{}]),p=a[d][0]),Gs.addValueToTree(p,s.slice(1),o,f,c,l)}}static mergeTrees(a,s){if(typeof a!=typeof s)throw new Error(`Two incompatible tree nodes were found: ${typeof a} and ${typeof s}`);if(Array.isArray(a)!==Array.isArray(s))throw new Error(`Two incompatible tree nodes were found: Array?${Array.isArray(a)} and Array?${Array.isArray(s)}`);if(typeof a=="object"&&typeof s=="object"){if(a.termType&&s.termType)return a.equals(s)?{valid:!0,result:a}:{valid:!1,result:a};if(Array.isArray(a)&&Array.isArray(s)){if(a.length>0){const o=[];let u=!1;for(const c of a){const l=Gs.mergeTrees(c,s[0]);l.valid?(u=!0,o.push(l.result)):o.push(c)}if(u)return{valid:!0,result:o}}return{valid:!0,result:a.concat(s)}}else{const o={};for(const u in s)o[u]=s[u];for(const u in a)if(o[u]){const c=Gs.mergeTrees(a[u],o[u]);if(c.valid)o[u]=c.result;else return{valid:!1,result:a}}else o[u]=a[u];return{valid:!0,result:o}}}else throw new Error(`Unmergable tree types: ${typeof a} and ${typeof s}`)}static materializeTree(a){if(a.termType)return(0,t.getTermRaw)(a);if(Array.isArray(a))return a.map(Gs.materializeTree);{const s={};for(const o in a)s[o]=Gs.materializeTree(a[o]);return s}}sparqlJsonResultsToTree(a,s){return this.bindingsToTree(this.parser.parseJsonResults(a),s||{singularizeVariables:{}})}bindingsToTree(a,s){const o=s&&s.singularizeVariables[""];let u=o?{}:[];for(const c of a){const l=o?{}:[{}];for(const d in c){const f=d.split(this.delimiter),h=c[d];Gs.addValueToTree(o?l:l[0],f,h,"",s,this.delimiter)}u=Gs.mergeTrees(u,l).result}return this.materializeRdfJsTerms&&(u=Gs.materializeTree(u)),u}};return pp.Converter=r,pp}var s9;function LOe(){return s9||(s9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(COe(),t)}(U3)),U3}var o9;function u9(){if(o9)return hp;o9=1,Object.defineProperty(hp,"__esModule",{value:!0}),hp.ActorQueryResultSerializeTree=void 0;const t=Ss(),e=qt,r=st,n=Pt,a=LOe();let s=class pZ extends t.ActorQueryResultSerializeFixedMediaTypes{constructor(u){super(u)}static async bindingsStreamToGraphQl(u,c,l){const d=r.ActionContext.ensureActionContext(c),f=new a.Converter(l),h={singularizeVariables:d.get(e.KeysInitQuery.graphqlSingularizeVariables)??{}};return f.bindingsToTree(await u.map(p=>Object.fromEntries([...p].map(([m,y])=>[m.value,y]))).toArray(),h)}async testHandleChecked(u){if(u.type!=="bindings")throw new Error("This actor can only handle bindings streams.");return!0}async runHandle(u,c){const l=new n.Readable;return l._read=()=>{l._read=()=>{},pZ.bindingsStreamToGraphQl(u.bindingsStream,u.context,{materializeRdfJsTerms:!0}).then(d=>{l.push(JSON.stringify(d,null," ")),l.push(null)}).catch(d=>l.emit("error",d))},{data:l}}};return hp.ActorQueryResultSerializeTree=s,hp}var c9;function jOe(){return c9||(c9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,o,u,c){c===void 0&&(c=u);var l=Object.getOwnPropertyDescriptor(o,u);(!l||("get"in l?!o.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return o[u]}}),Object.defineProperty(s,c,l)}:function(s,o,u,c){c===void 0&&(c=u),s[c]=o[u]}),r=I&&I.__exportStar||function(s,o){for(var u in s)u!=="default"&&!Object.prototype.hasOwnProperty.call(o,u)&&e(o,s,u)};Object.defineProperty(t,"__esModule",{value:!0}),t.bindingsStreamToGraphQl=void 0;const n=u9(),{bindingsStreamToGraphQl:a}=n.ActorQueryResultSerializeTree;t.bindingsStreamToGraphQl=a,r(u9(),t)}($3)),$3}var W3={},Sp={},l9;function MOe(){if(l9)return Sp;l9=1,Object.defineProperty(Sp,"__esModule",{value:!0}),Sp.MediatorCombineUnion=void 0;const t=st;let e=class extends t.Mediator{constructor(n){super(n),this.combiner=this.createCombiner()}async mediate(n){let a;try{a=this.publish(n)}catch{a=[]}if(this.filterErrors){const o=[];for(const u of a)try{await u.reply,o.push(u)}catch{}a=o}await Promise.all(a.map(({reply:o})=>o));const s=await Promise.all(a.map(o=>o.actor.runObservable(n)));return this.combiner(s)}mediateWith(){throw new Error("Method not supported.")}createCombiner(){return n=>{const a={};return a[this.field]={},[{}].concat(n.map(s=>s[this.field])).forEach(s=>{a[this.field]={...s,...a[this.field]}}),a}}};return Sp.MediatorCombineUnion=e,Sp}var d9;function Fo(){return d9||(d9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(MOe(),t)}(W3)),W3}var K3={},Tp={},f9;function FOe(){if(f9)return Tp;f9=1,Object.defineProperty(Tp,"__esModule",{value:!0}),Tp.MediatorNumber=void 0;const t=st;let e=class extends t.Mediator{constructor(n){super(n),this.indexPicker=this.createIndexPicker()}createIndexPicker(){switch(this.type){case"min":return n=>n.reduce((a,s,o)=>{const u=this.getOrDefault(s[this.field],Number.POSITIVE_INFINITY);return u!==null&&(Number.isNaN(a[0])||a[0]>u)?[u,o]:a},[Number.NaN,-1])[1];case"max":return n=>n.reduce((a,s,o)=>{const u=this.getOrDefault(s[this.field],Number.NEGATIVE_INFINITY);return u!==null&&(Number.isNaN(a[0])||a[0]l);const o=[];if(this.ignoreErrors){const l={};l[this.field]=null,s=s.map(d=>d.catch(f=>(o.push(f),l)))}const u=await Promise.all(s),c=this.indexPicker(u);if(c<0)throw new Error(`All actors rejected their test in ${this.name} ${o.map(l=>l.message).join(` -`)}`);return a[c].actor}};return Tp.MediatorNumber=e,Tp}var h9;function Ep(){return h9||(h9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(BOe(),t)}(J3)),J3}var X3={},Ap={},Y3={},Op={},Bs={},p9;function JC(){if(p9)return Bs;p9=1,Object.defineProperty(Bs,"__esModule",{value:!0}),Bs.ActorDereferenceBase=Bs.isHardError=Bs.emptyReadable=void 0;const t=qt,e=st,r=Pt;function n(){const o=new r.Readable;return o.push(null),o}Bs.emptyReadable=n;function a(o){return!o.get(t.KeysInitQuery.lenient)}Bs.isHardError=a;let s=class extends e.Actor{constructor(u){super(u)}async dereferenceErrorHandler(u,c,l){if(a(u.context))throw c;return this.logWarn(u.context,c.message),{...l,data:n()}}};return Bs.ActorDereferenceBase=s,Bs}var y9;function qOe(){if(y9)return Op;y9=1,Object.defineProperty(Op,"__esModule",{value:!0}),Op.ActorDereference=void 0;const t=JC();let e=class extends t.ActorDereferenceBase{constructor(n){super(n)}async handleDereferenceErrors(n,a,s,o=0){return this.dereferenceErrorHandler(n,a,{url:n.url,exists:!1,headers:s,requestTime:o})}};return Op.ActorDereference=e,Op}var Xu={},m9;function $Oe(){if(m9)return Xu;m9=1,Object.defineProperty(Xu,"__esModule",{value:!0}),Xu.ActorDereferenceParse=Xu.getMediaTypeFromExtension=void 0;const t=Pt,e=JC();function r(a,s){const o=a.lastIndexOf(".");return o>=0&&(s==null?void 0:s[a.slice(o+1)])||""}Xu.getMediaTypeFromExtension=r;let n=class extends e.ActorDereferenceBase{constructor(s){super(s)}async test(s){return!0}handleDereferenceStreamErrors(s,o){return(0,e.isHardError)(s.context)||(o.on("error",u=>{this.logWarn(s.context,u.message,()=>({url:s.url})),o.push(null)}),o=o.pipe(new t.PassThrough({objectMode:!0}))),o}async run(s){var l,d;const{context:o}=s,u=await this.mediatorDereference.mediate({...s,mediaTypes:async()=>{var f,h;return(h=await((f=this.mediatorParseMediatypes)==null?void 0:f.mediate({context:o,mediaTypes:!0})))==null?void 0:h.mediaTypes}});let c;try{c=(await this.mediatorParse.mediate({context:o,handle:{context:o,...u,metadata:await this.getMetadata(u)},handleMediaType:u.mediaType||r(u.url,this.mediaMappings)||s.mediaType})).handle,c.data=this.handleDereferenceStreamErrors(s,c.data)}catch(f){await((d=(l=u.data).close)==null?void 0:d.call(l)),c=await this.dereferenceErrorHandler(s,f,{})}return{...u,...c}}};return Xu.ActorDereferenceParse=n,Xu}var g9;function XC(){return g9||(g9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(qOe(),t),r($Oe(),t),r(JC(),t)}(Y3)),Y3}var _9;function UOe(){if(_9)return Ap;_9=1,Object.defineProperty(Ap,"__esModule",{value:!0}),Ap.ActorDereferenceFallback=void 0;const t=XC();let e=class extends t.ActorDereference{constructor(n){super(n)}async test(n){return!0}async run(n){return this.handleDereferenceErrors(n,new Error(`Could not dereference '${n.url}'`))}};return Ap.ActorDereferenceFallback=e,Ap}var b9;function kOe(){return b9||(b9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(UOe(),t)}(X3)),X3}var Z3={},Rp={},eO={},xp={},v9;function VOe(){if(v9)return xp;v9=1,Object.defineProperty(xp,"__esModule",{value:!0}),xp.ActorRdfJoinEntriesSort=void 0;const t=st;let e=class extends t.Actor{constructor(n){super(n)}};return xp.ActorRdfJoinEntriesSort=e,xp}var w9;function HOe(){return w9||(w9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(VOe(),t)}(eO)),eO}var S9;function QOe(){if(S9)return Rp;S9=1,Object.defineProperty(Rp,"__esModule",{value:!0}),Rp.ActorRdfJoinEntriesSortCardinality=void 0;const t=HOe();let e=class extends t.ActorRdfJoinEntriesSort{constructor(n){super(n)}async test(n){return!0}async run(n){return{entries:[...n.entries].sort((s,o)=>s.metadata.cardinality.value-o.metadata.cardinality.value)}}};return Rp.ActorRdfJoinEntriesSortCardinality=e,Rp}var T9;function zOe(){return T9||(T9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(QOe(),t)}(Z3)),Z3}var tO={},Yu={},rO={},Ip={},E9;function GOe(){if(E9)return Ip;E9=1,Object.defineProperty(Ip,"__esModule",{value:!0}),Ip.ActorRdfJoinSelectivity=void 0;const t=st;let e=class extends t.Actor{constructor(n){super(n)}};return Ip.ActorRdfJoinSelectivity=e,Ip}var A9;function WOe(){return A9||(A9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(GOe(),t)}(rO)),rO}var O9;function KOe(){if(O9)return Yu;O9=1,Object.defineProperty(Yu,"__esModule",{value:!0}),Yu.JoinTypes=Yu.ActorRdfJoinSelectivityVariableCounting=void 0;const t=WOe(),e=xt();let r=class fc extends t.ActorRdfJoinSelectivity{constructor(s){super(s)}async test(s){return{accuracy:.5}}static getPatternCost(s){let o=1;return s.subject.termType==="Variable"&&(o+=4),(s.predicate.termType==="Variable"||s.type===e.Algebra.types.PATH)&&(o+=1),s.object.termType==="Variable"&&(o+=2),s.graph.termType==="Variable"&&(o+=1),o/9}static getJoinTypes(s,o){const u=[];return s.subject.termType==="Variable"?(s.subject.equals(o.subject)&&u.push(n.unboundSS),o.type==="pattern"&&s.subject.equals(o.predicate)&&u.push(n.unboundSP),s.subject.equals(o.object)&&u.push(n.unboundSO),s.subject.equals(o.graph)&&u.push(n.unboundSG)):(s.subject.equals(o.subject)&&u.push(n.boundSS),o.type==="pattern"&&s.subject.equals(o.predicate)&&u.push(n.boundSP),s.subject.equals(o.object)&&u.push(n.boundSO),s.subject.equals(o.graph)&&u.push(n.boundSG)),s.type==="pattern"&&(s.predicate.termType==="Variable"?(s.predicate.equals(o.subject)&&u.push(n.unboundPS),o.type==="pattern"&&s.predicate.equals(o.predicate)&&u.push(n.unboundPP),s.predicate.equals(o.object)&&u.push(n.unboundPO),s.predicate.equals(o.graph)&&u.push(n.unboundPG)):(s.predicate.equals(o.subject)&&u.push(n.boundPS),o.type==="pattern"&&s.predicate.equals(o.predicate)&&u.push(n.boundPP),s.predicate.equals(o.object)&&u.push(n.boundPO),s.predicate.equals(o.graph)&&u.push(n.boundPG))),s.object.termType==="Variable"?(s.object.equals(o.subject)&&u.push(n.unboundOS),o.type==="pattern"&&s.object.equals(o.predicate)&&u.push(n.unboundOP),s.object.equals(o.object)&&u.push(n.unboundOO),s.object.equals(o.graph)&&u.push(n.unboundOG)):(s.object.equals(o.subject)&&u.push(n.boundOS),o.type==="pattern"&&s.object.equals(o.predicate)&&u.push(n.boundOP),s.object.equals(o.object)&&u.push(n.boundOO),s.object.equals(o.graph)&&u.push(n.boundOG)),s.graph.termType==="Variable"?(s.graph.equals(o.subject)&&u.push(n.unboundGS),o.type==="pattern"&&s.graph.equals(o.predicate)&&u.push(n.unboundGP),s.graph.equals(o.object)&&u.push(n.unboundGO),s.graph.equals(o.graph)&&u.push(n.unboundGG)):(s.graph.equals(o.subject)&&u.push(n.boundGS),o.type==="pattern"&&s.graph.equals(o.predicate)&&u.push(n.boundGP),s.graph.equals(o.object)&&u.push(n.boundGO),s.graph.equals(o.graph)&&u.push(n.boundGG)),u}static getOperationsPairwiseJoinCost(s,o){let u=fc.MAX_PAIRWISE_COST;for(const c of fc.getJoinTypes(s,o))switch(c){case n.boundSS:u-=2*2;break;case n.boundSP:u-=3*2;break;case n.boundSO:u-=1*2;break;case n.boundSG:u-=3*2;break;case n.boundPS:u-=3*2;break;case n.boundPP:return 1;case n.boundPO:u-=3*2;break;case n.boundPG:u-=3*2;break;case n.boundOS:u-=1*2;break;case n.boundOP:u-=3*2;break;case n.boundOO:u-=1*2;break;case n.boundOG:u-=3*2;break;case n.boundGS:u-=3*2;break;case n.boundGP:u-=3*2;break;case n.boundGO:u-=3*2;break;case n.boundGG:u-=3*2;break;case n.unboundSS:u-=2;break;case n.unboundSP:u-=3;break;case n.unboundSO:u-=1;break;case n.unboundSG:u-=3;break;case n.unboundPS:u-=3;break;case n.unboundPP:u-=3;break;case n.unboundPO:u-=3;break;case n.unboundPG:u-=3;break;case n.unboundOS:u-=1;break;case n.unboundOP:u-=3;break;case n.unboundOO:u-=1;break;case n.unboundOG:u-=3;break;case n.unboundGS:u-=3;break;case n.unboundGP:u-=3;break;case n.unboundGO:u-=3;break;case n.unboundGG:u-=3;break}return u/fc.MAX_PAIRWISE_COST}static getOperationsJoinCost(s){const o=[];for(const l of s)e.Util.recurseOperation(l,{[e.Algebra.types.PATTERN](d){return o.push(d),!1},[e.Algebra.types.PATH](d){return o.push(d),!1}});let u=0,c=0;for(const l of o)for(const d of o)l!==d&&(u+=fc.getOperationsPairwiseJoinCost(l,d),c++);return c===0?1:u/c*o.reduce((l,d)=>l*fc.getPatternCost(d),1)}async run(s){return s.entries.length<=1?{selectivity:1}:{selectivity:fc.getOperationsJoinCost(s.entries.map(o=>o.operation))}}};Yu.ActorRdfJoinSelectivityVariableCounting=r,r.MAX_PAIRWISE_COST=41*2;var n;return function(a){a[a.boundSS=0]="boundSS",a[a.boundSP=1]="boundSP",a[a.boundSO=2]="boundSO",a[a.boundSG=3]="boundSG",a[a.boundPS=4]="boundPS",a[a.boundPP=5]="boundPP",a[a.boundPO=6]="boundPO",a[a.boundPG=7]="boundPG",a[a.boundOS=8]="boundOS",a[a.boundOP=9]="boundOP",a[a.boundOO=10]="boundOO",a[a.boundOG=11]="boundOG",a[a.boundGS=12]="boundGS",a[a.boundGP=13]="boundGP",a[a.boundGO=14]="boundGO",a[a.boundGG=15]="boundGG",a[a.unboundSS=16]="unboundSS",a[a.unboundSP=17]="unboundSP",a[a.unboundSO=18]="unboundSO",a[a.unboundSG=19]="unboundSG",a[a.unboundPS=20]="unboundPS",a[a.unboundPP=21]="unboundPP",a[a.unboundPO=22]="unboundPO",a[a.unboundPG=23]="unboundPG",a[a.unboundOS=24]="unboundOS",a[a.unboundOP=25]="unboundOP",a[a.unboundOO=26]="unboundOO",a[a.unboundOG=27]="unboundOG",a[a.unboundGS=28]="unboundGS",a[a.unboundGP=29]="unboundGP",a[a.unboundGO=30]="unboundGO",a[a.unboundGG=31]="unboundGG"}(n||(Yu.JoinTypes=n={})),Yu}var R9;function JOe(){return R9||(R9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(KOe(),t)}(tO)),tO}var nO={},Pp={},iO={},Np={},x9;function XOe(){if(x9)return Np;x9=1,Object.defineProperty(Np,"__esModule",{value:!0}),Np.ActorRdfMetadata=void 0;const t=st;let e=class extends t.Actor{constructor(n){super(n)}};return Np.ActorRdfMetadata=e,Np}var I9;function yZ(){return I9||(I9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(XOe(),t)}(iO)),iO}var P9;function YOe(){if(P9)return Pp;P9=1,Object.defineProperty(Pp,"__esModule",{value:!0}),Pp.ActorRdfMetadataPrimaryTopic=void 0;const t=yZ(),e=Pt;let r=class extends t.ActorRdfMetadata{constructor(a){super(a)}async test(a){if(a.triples)throw new Error("This actor only supports non-triple quad streams.");return!0}async run(a){const s=new e.Readable({objectMode:!0}),o=new e.Readable({objectMode:!0}),u=()=>{s._read=o._read=()=>{},a.quads.on("error",f=>{s.emit("error",f),o.emit("error",f)});const c={};let l;const d={};a.quads.on("data",f=>{f.predicate.value==="http://rdfs.org/ns/void#subset"&&f.object.value===a.url?l=f.subject.value:f.predicate.value==="http://xmlns.com/foaf/0.1/primaryTopic"&&(d[f.object.value]=f.subject.value);let h=c[f.graph.value];h||(h=c[f.graph.value]=[]),h.push(f)}),a.quads.on("end",()=>{const f=l?d[l]:void 0;for(const h in c)if(h===f){for(const p of c[h])o.push(p);if(this.metadataToData)for(const p of c[h])s.push(p)}else{for(const p of c[h])s.push(p);if(!f&&this.dataToMetadataOnInvalidMetadataGraph)for(const p of c[h])o.push(p)}s.push(null),o.push(null)})};return s._read=o._read=()=>{u()},{data:s,metadata:o}}};return Pp.ActorRdfMetadataPrimaryTopic=r,Pp}var N9;function ZOe(){return N9||(N9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(YOe(),t)}(nO)),nO}var aO={},Dp={},D9;function eRe(){if(D9)return Dp;D9=1,Object.defineProperty(Dp,"__esModule",{value:!0}),Dp.ActorRdfMetadataAll=void 0;const t=yZ(),e=Pt;let r=class extends t.ActorRdfMetadata{constructor(a){super(a)}async test(a){return!0}async run(a){const s=new e.Readable({objectMode:!0}),o=new e.Readable({objectMode:!0});a.quads.on("error",c=>{s.emit("error",c),o.emit("error",c)}),a.quads.on("end",()=>{s.push(null),o.push(null)});const u=s._read=o._read=c=>{for(;c>0;){const l=a.quads.read();if(l===null)return a.quads.once("readable",()=>u(c));c--,s.push(l),o.push(l)}};return{data:s,metadata:o}}};return Dp.ActorRdfMetadataAll=r,Dp}var C9;function tRe(){return C9||(C9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(eRe(),t)}(aO)),aO}var sO={},Cp={},oO={},Lp={},L9;function rRe(){if(L9)return Lp;L9=1,Object.defineProperty(Lp,"__esModule",{value:!0}),Lp.ActorRdfMetadataAccumulate=void 0;const t=st;let e=class extends t.Actor{constructor(n){super(n)}};return Lp.ActorRdfMetadataAccumulate=e,Lp}var j9;function pT(){return j9||(j9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(rRe(),t)}(oO)),oO}var M9;function nRe(){if(M9)return Cp;M9=1,Object.defineProperty(Cp,"__esModule",{value:!0}),Cp.ActorRdfMetadataAccumulateCanContainUndefs=void 0;const t=pT();let e=class extends t.ActorRdfMetadataAccumulate{constructor(n){super(n)}async test(n){return!0}async run(n){if(n.mode==="initialize")return{metadata:{canContainUndefs:!1}};let a=n.accumulatedMetadata.canContainUndefs;return n.appendingMetadata.canContainUndefs&&(a=!0),{metadata:{canContainUndefs:a}}}};return Cp.ActorRdfMetadataAccumulateCanContainUndefs=e,Cp}var F9;function iRe(){return F9||(F9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(nRe(),t)}(sO)),sO}var uO={},jp={},B9;function aRe(){if(B9)return jp;B9=1,Object.defineProperty(jp,"__esModule",{value:!0}),jp.ActorRdfMetadataAccumulateCardinality=void 0;const t=pT();let e=class extends t.ActorRdfMetadataAccumulate{constructor(n){super(n)}async test(n){return!0}async run(n){if(n.mode==="initialize")return{metadata:{cardinality:{type:"exact",value:0}}};const a={...n.accumulatedMetadata.cardinality};if(a.dataset)if(n.appendingMetadata.cardinality.dataset){if(a.dataset!==n.appendingMetadata.cardinality.dataset&&n.appendingMetadata.subsetOf===a.dataset)return{metadata:{cardinality:n.appendingMetadata.cardinality}};if(a.dataset===n.appendingMetadata.cardinality.dataset)return{metadata:{cardinality:a}};delete a.dataset}else return{metadata:{cardinality:a}};return!n.appendingMetadata.cardinality||!Number.isFinite(n.appendingMetadata.cardinality.value)?(a.type="estimate",a.value=Number.POSITIVE_INFINITY):(n.appendingMetadata.cardinality.type==="estimate"&&(a.type="estimate"),a.value+=n.appendingMetadata.cardinality.value),{metadata:{cardinality:a}}}};return jp.ActorRdfMetadataAccumulateCardinality=e,jp}var q9;function sRe(){return q9||(q9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(aRe(),t)}(uO)),uO}var cO={},Mp={},$9;function oRe(){if($9)return Mp;$9=1,Object.defineProperty(Mp,"__esModule",{value:!0}),Mp.ActorRdfMetadataAccumulatePageSize=void 0;const t=pT();let e=class extends t.ActorRdfMetadataAccumulate{constructor(n){super(n)}async test(n){return!0}async run(n){return n.mode==="initialize"?{metadata:{}}:{metadata:{..."pageSize"in n.accumulatedMetadata||"pageSize"in n.appendingMetadata?{pageSize:(n.accumulatedMetadata.pageSize??0)+(n.appendingMetadata.pageSize??0)}:{}}}}};return Mp.ActorRdfMetadataAccumulatePageSize=e,Mp}var U9;function uRe(){return U9||(U9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(oRe(),t)}(cO)),cO}var lO={},Fp={},k9;function cRe(){if(k9)return Fp;k9=1,Object.defineProperty(Fp,"__esModule",{value:!0}),Fp.ActorRdfMetadataAccumulateRequestTime=void 0;const t=pT();let e=class extends t.ActorRdfMetadataAccumulate{constructor(n){super(n)}async test(n){return!0}async run(n){return n.mode==="initialize"?{metadata:{}}:{metadata:{..."requestTime"in n.accumulatedMetadata||"requestTime"in n.appendingMetadata?{requestTime:(n.accumulatedMetadata.requestTime??0)+(n.appendingMetadata.requestTime??0)}:{}}}}};return Fp.ActorRdfMetadataAccumulateRequestTime=e,Fp}var V9;function lRe(){return V9||(V9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(cRe(),t)}(lO)),lO}var dO={},Bp={},fO={},qp={},H9;function dRe(){if(H9)return qp;H9=1,Object.defineProperty(qp,"__esModule",{value:!0}),qp.ActorRdfMetadataExtract=void 0;const t=st;let e=class extends t.Actor{constructor(n){super(n)}};return qp.ActorRdfMetadataExtract=e,qp}var Q9;function Nu(){return Q9||(Q9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(dRe(),t)}(fO)),fO}var hO={exports:{}},z9;function fRe(){return z9||(z9=1,function(t){(function(e){var r=function(){function m(y){this.options=y}return m.prototype.toString=function(){return JSON&&JSON.stringify?JSON.stringify(this.options):this.options},m}(),n=function(){function m(L){return Object.prototype.toString.apply(L)==="[object Array]"}function y(L){return Object.prototype.toString.apply(L)==="[object String]"}function g(L){return Object.prototype.toString.apply(L)==="[object Number]"}function b(L){return Object.prototype.toString.apply(L)==="[object Boolean]"}function v(L,F){var x="",P=!0,j;for(j=0;j="a"&&b<="z"||b>="A"&&b<="Z"}function y(b){return b>="0"&&b<="9"}function g(b){return y(b)||b>="a"&&b<="f"||b>="A"&&b<="F"}return{isAlpha:m,isDigit:y,isHexDigit:g}}(),s=function(){var m={encode:function(w){return unescape(encodeURIComponent(w))},numBytes:function(w){return w<=127?1:194<=w&&w<=223?2:224<=w&&w<=239?3:240<=w&&w<=244?4:0},isValidFollowingCharCode:function(w){return 128<=w&&w<=191}};function y(w){var E="",O=m.encode(w),L,F;for(F=0;F1||o.isReserved(w)||o.isUnreserved(w)?w:s.encodeCharacter(w)}function b(v){var _="",w,E="";for(w=0;w1?_+=E:_+=o.isReserved(E)||o.isUnreserved(E)?E:s.encodeCharacter(E);return _}return{encode:m,encodePassReserved:y,encodeLiteral:b,encodeLiteralCharacter:g}}(),c=function(){var m={};function y(g){m[g]={symbol:g,separator:g==="?"?"&":g===""||g==="+"||g==="#"?",":g,named:g===";"||g==="&"||g==="?",ifEmpty:g==="&"||g==="?"?"=":"",first:g==="+"?"":g,encode:g==="+"||g==="#"?u.encodePassReserved:u.encode,toString:function(){return this.symbol}}}return y(""),y("+"),y("#"),y("."),y("/"),y(";"),y("?"),y("&"),{valueOf:function(g){return m[g]?m[g]:"=,!@|".indexOf(g)>=0?null:m[""]}}}();function l(m){var y;if(m==null)return!1;if(n.isArray(m))return m.length>0;if(typeof m=="string"||typeof m=="number"||typeof m=="boolean")return!0;for(y in m)if(m.hasOwnProperty(y)&&l(m[y]))return!0;return!1}var d=function(){function m(y){this.literal=u.encodeLiteral(y)}return m.prototype.expand=function(){return this.literal},m.prototype.toString=m.prototype.expand,m}(),f=function(){function m(g){var b,v=[],_=null,w=null,E=null,O,L="";function F(){var P=g.substring(w,O);if(P.length===0)throw new r({expressionText:g,message:"a varname must be specified",position:O});_={varname:P,exploded:!1,maxLength:null},w=null}function x(){if(E===O)throw new r({expressionText:g,message:"after a ':' you have to specify the length",position:O});_.maxLength=parseInt(g.substring(E,O),10),E=null}for(b=function(P){var j=c.valueOf(P);if(j===null)throw new r({expressionText:g,message:"illegal use of reserved operator",position:O,operator:P});return j}(g.charAt(0)),O=b.symbol.length,w=O;O=4)throw new r({expressionText:g,message:"A :prefix must have max 4 digits",position:O});continue}x()}if(L===":"){if(_.maxLength!==null)throw new r({expressionText:g,message:"only one :maxLength is allowed per varspec",position:O});if(_.exploded)throw new r({expressionText:g,message:"an exploeded varspec MUST NOT be varspeced",position:O});E=O+1;continue}if(L==="*"){if(_===null)throw new r({expressionText:g,message:"exploded without varspec",position:O});if(_.exploded)throw new r({expressionText:g,message:"exploded twice",position:O});if(_.maxLength)throw new r({expressionText:g,message:"an explode (*) MUST NOT follow to a prefix",position:O});_.exploded=!0;continue}if(L===","){v.push(_),_=null,w=O+1;continue}throw new r({expressionText:g,message:"illegal character",character:L,position:O})}return w!==null&&F(),E!==null&&x(),v.push(_),new h(g,b,v)}function y(g){var b,v,_=[],w=null,E=0;for(b=0;b{const u=s[o]||s[`${o}Page`],c=u&&u[a];return[o,c&&c.length>0?[c[0]]:[]]}))}parseUriTemplateCached(a){const s=this.parsedUriTemplateCache[a];return s||(this.parsedUriTemplateCache[a]=(0,e.parse)(a))}getSearchForms(a){const s=a.search,o=[];if(s)for(const u in s)for(const c of s[u]){const l=(a.template||{})[c]||[];if(l.length!==1)throw new Error(`Expected 1 hydra:template for ${c}`);const d=l[0],f=this.parseUriTemplateCached(d),h=Object.fromEntries(((a.mapping||{})[c]||[]).map(m=>{const y=((a.variable||{})[m]||[])[0],g=((a.property||{})[m]||[])[0];if(!y)throw new Error(`Expected a hydra:variable for ${m}`);if(!g)throw new Error(`Expected a hydra:property for ${m}`);return[g,y]})),p=m=>f.expand(Object.fromEntries(Object.keys(m).map(y=>[h[y],m[y]])));o.push({dataset:u,template:d,mappings:h,getUri:p})}return{values:o}}getHydraProperties(a){return new Promise((s,o)=>{a.on("error",o);const u={};a.on("data",c=>{if(c.predicate.value.startsWith(Vw.HYDRA)){const l=c.predicate.value.slice(Vw.HYDRA.length),d=u[l]||(u[l]={});(d[c.subject.value]||(d[c.subject.value]=[])).push(c.object.value)}}),a.on("end",()=>s(u))})}async run(a){const s={},o=await this.getHydraProperties(a.metadata);return Object.assign(s,this.getLinks(a.url,o)),s.searchForms=this.getSearchForms(o),{metadata:s}}};return Bp.ActorRdfMetadataExtractHydraControls=r,r.HYDRA="http://www.w3.org/ns/hydra/core#",r.LINK_TYPES=["first","next","previous","last"],Bp}var W9;function pRe(){return W9||(W9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(hRe(),t)}(dO)),dO}var pO={},$p={},K9;function yRe(){if(K9)return $p;K9=1,Object.defineProperty($p,"__esModule",{value:!0}),$p.ActorRdfMetadataExtractHydraCount=void 0;const t=Nu();let e=class extends t.ActorRdfMetadataExtract{constructor(n){super(n)}async test(n){return!0}run(n){return new Promise((a,s)=>{n.metadata.on("error",s),n.metadata.on("data",o=>{this.predicates.includes(o.predicate.value)&&a({metadata:{cardinality:{type:"estimate",value:Number.parseInt(o.object.value,10),dataset:o.subject.value}}})}),n.metadata.on("end",()=>{a({metadata:{cardinality:{type:"estimate",value:0}}})})})}};return $p.ActorRdfMetadataExtractHydraCount=e,$p}var J9;function mRe(){return J9||(J9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(yRe(),t)}(pO)),pO}var yO={},Up={},X9;function gRe(){if(X9)return Up;X9=1,Object.defineProperty(Up,"__esModule",{value:!0}),Up.ActorRdfMetadataExtractHydraPagesize=void 0;const t=Nu();let e=class extends t.ActorRdfMetadataExtract{constructor(n){super(n)}async test(n){return!0}async run(n){return new Promise((a,s)=>{n.metadata.on("error",s),n.metadata.on("data",o=>{this.predicates.includes(o.predicate.value)&&a({metadata:{pageSize:Number.parseInt(o.object.value,10)}})}),n.metadata.on("end",()=>{a({metadata:{}})})})}};return Up.ActorRdfMetadataExtractHydraPagesize=e,Up}var Y9;function _Re(){return Y9||(Y9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(gRe(),t)}(yO)),yO}var mO={},kp={},Z9;function bRe(){if(Z9)return kp;Z9=1,Object.defineProperty(kp,"__esModule",{value:!0}),kp.ActorRdfMetadataExtractRequestTime=void 0;const t=Nu();let e=class extends t.ActorRdfMetadataExtract{constructor(n){super(n)}async test(n){return!0}async run(n){return{metadata:{requestTime:n.requestTime}}}};return kp.ActorRdfMetadataExtractRequestTime=e,kp}var e7;function vRe(){return e7||(e7=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(bRe(),t)}(mO)),mO}var gO={},Vp={},t7;function wRe(){if(t7)return Vp;t7=1,Object.defineProperty(Vp,"__esModule",{value:!0}),Vp.ActorRdfMetadataExtractAllowHttpMethods=void 0;const t=Nu();let e=class extends t.ActorRdfMetadataExtract{constructor(n){super(n)}async test(n){return!0}async run(n){var s,o;const a={};return(s=n.headers)!=null&&s.get("allow")&&(a.allowHttpMethods=(o=n.headers.get("allow"))==null?void 0:o.split(/, */u)),{metadata:a}}};return Vp.ActorRdfMetadataExtractAllowHttpMethods=e,Vp}var r7;function SRe(){return r7||(r7=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(wRe(),t)}(gO)),gO}var _O={},Hp={},n7;function TRe(){if(n7)return Hp;n7=1,Object.defineProperty(Hp,"__esModule",{value:!0}),Hp.ActorRdfMetadataExtractPutAccepted=void 0;const t=Nu();let e=class extends t.ActorRdfMetadataExtract{constructor(n){super(n)}async test(n){return!0}async run(n){var s,o;const a={};return(s=n.headers)!=null&&s.get("accept-put")&&(a.putAccepted=(o=n.headers.get("accept-put"))==null?void 0:o.split(/, */u)),{metadata:a}}};return Hp.ActorRdfMetadataExtractPutAccepted=e,Hp}var i7;function ERe(){return i7||(i7=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(TRe(),t)}(_O)),_O}var bO={},Qp={},a7;function ARe(){if(a7)return Qp;a7=1,Object.defineProperty(Qp,"__esModule",{value:!0}),Qp.ActorRdfMetadataExtractPatchSparqlUpdate=void 0;const t=Nu();let e=class extends t.ActorRdfMetadataExtract{constructor(n){super(n)}async test(n){return!0}async run(n){var s,o,u,c;const a={};return(((o=(s=n.headers)==null?void 0:s.get("accept-patch"))==null?void 0:o.includes("application/sparql-update"))??((c=(u=n.headers)==null?void 0:u.get("ms-author-via"))==null?void 0:c.includes("SPARQL")))&&(a.patchSparqlUpdate=!0),{metadata:a}}};return Qp.ActorRdfMetadataExtractPatchSparqlUpdate=e,Qp}var s7;function ORe(){return s7||(s7=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(ARe(),t)}(bO)),bO}var vO={},zp={},o7;function RRe(){if(o7)return zp;o7=1,Object.defineProperty(zp,"__esModule",{value:!0}),zp.ActorRdfMetadataExtractSparqlService=void 0;const t=Nu(),e=ga;let r=class extends t.ActorRdfMetadataExtract{constructor(a){super(a)}async test(a){return!0}async run(a){return new Promise((s,o)=>{a.metadata.on("error",o);const u={};a.metadata.on("data",c=>{c.predicate.value==="http://www.w3.org/ns/sparql-service-description#endpoint"&&(c.subject.termType==="BlankNode"||c.subject.value===a.url)?(u.sparqlService=c.object.termType==="Literal"?(0,e.resolve)(c.object.value,a.url):c.object.value,this.inferHttpsEndpoint&&a.url.startsWith("https")&&!u.sparqlService.startsWith("https")&&(u.sparqlService=u.sparqlService.replace("http:","https:"))):c.predicate.value==="http://www.w3.org/ns/sparql-service-description#defaultGraph"&&(u.defaultGraph=c.object.value)}),a.metadata.on("end",()=>{s({metadata:u})})})}};return zp.ActorRdfMetadataExtractSparqlService=r,zp}var u7;function xRe(){return u7||(u7=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(RRe(),t)}(vO)),vO}var wO={},Gp={},SO={},Wp={},c7;function IRe(){if(c7)return Wp;c7=1,Object.defineProperty(Wp,"__esModule",{value:!0}),Wp.ActorRdfParse=void 0;const t=jf();let e=class extends t.ActorAbstractMediaTyped{constructor(n){super(n)}};return Wp.ActorRdfParse=e,Wp}var Kp={},l7;function PRe(){if(l7)return Kp;l7=1,Object.defineProperty(Kp,"__esModule",{value:!0}),Kp.ActorRdfParseFixedMediaTypes=void 0;const t=jf();let e=class extends t.ActorAbstractMediaTypedFixed{constructor(n){super(n)}async testHandleChecked(n){return!0}};return Kp.ActorRdfParseFixedMediaTypes=e,Kp}var d7;function Mf(){return d7||(d7=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(IRe(),t),r(PRe(),t)}(SO)),SO}/*! queue-microtask. MIT License. Feross Aboukhadijeh */let f7;var NRe=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:I):t=>(f7||(f7=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0));const mZ=bK(NRe),Jp="http://www.w3.org/1999/02/22-rdf-syntax-ns#",Xp="http://www.w3.org/2001/XMLSchema#",TO="http://www.w3.org/2000/10/swap/",Cn={xsd:{decimal:`${Xp}decimal`,boolean:`${Xp}boolean`,double:`${Xp}double`,integer:`${Xp}integer`,string:`${Xp}string`},rdf:{type:`${Jp}type`,nil:`${Jp}nil`,first:`${Jp}first`,rest:`${Jp}rest`,langString:`${Jp}langString`},owl:{sameAs:"http://www.w3.org/2002/07/owl#sameAs"},r:{forSome:`${TO}reify#forSome`,forAll:`${TO}reify#forAll`},log:{implies:`${TO}log#implies`}},{xsd:kv}=Cn,DRe=/\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{8})|\\([^])/g,h7={"\\":"\\","'":"'",'"':'"',n:` -`,r:"\r",t:" ",f:"\f",b:"\b",_:"_","~":"~",".":".","-":"-","!":"!",$:"$","&":"&","(":"(",")":")","*":"*","+":"+",",":",",";":";","=":"=","/":"/","?":"?","#":"#","@":"@","%":"%"},CRe=/[\x00-\x20<>\\"\{\}\|\^\`]/,LRe={_iri:!0,_unescapedIri:!0,_simpleQuotedString:!0,_langcode:!0,_blank:!0,_newline:!0,_comment:!0,_whitespace:!0,_endOfFile:!0},jRe=/$0^/;let YC=class{constructor(e){if(this._iri=/^<((?:[^ <>{}\\]|\\[uU])+)>[ \t]*/,this._unescapedIri=/^<([^\x00-\x20<>\\"\{\}\|\^\`]*)>[ \t]*/,this._simpleQuotedString=/^"([^"\\\r\n]*)"(?=[^"])/,this._simpleApostropheString=/^'([^'\\\r\n]*)'(?=[^'])/,this._langcode=/^@([a-z]+(?:-[a-z0-9]+)*)(?=[^a-z0-9\-])/i,this._prefix=/^((?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)?:(?=[#\s<])/,this._prefixed=/^((?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)?:((?:(?:[0-:A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])(?:(?:[\.\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])*(?:[\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~]))?)?)(?:[ \t]+|(?=\.?[,;!\^\s#()\[\]\{\}"'<>]))/,this._variable=/^\?(?:(?:[A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:[\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)(?=[.,;!\^\s#()\[\]\{\}"'<>])/,this._blank=/^_:((?:[0-9A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)(?:[ \t]+|(?=\.?[,;:\s#()\[\]\{\}"'<>]))/,this._number=/^[\-+]?(?:(\d+\.\d*|\.?\d+)[eE][\-+]?|\d*(\.)?)\d+(?=\.?[,;:\s#()\[\]\{\}"'<>])/,this._boolean=/^(?:true|false)(?=[.,;\s#()\[\]\{\}"'<>])/,this._keyword=/^@[a-z]+(?=[\s#<:])/i,this._sparqlKeyword=/^(?:PREFIX|BASE|GRAPH)(?=[\s#<])/i,this._shortPredicates=/^a(?=[\s#()\[\]\{\}"'<>])/,this._newline=/^[ \t]*(?:#[^\n\r]*)?(?:\r\n|\n|\r)[ \t]*/,this._comment=/#([^\n\r]*)/,this._whitespace=/^[ \t]+/,this._endOfFile=/^(?:#[^\n\r]*)?$/,e=e||{},this._lineMode=!!e.lineMode){this._n3Mode=!1;for(const r in this)!(r in LRe)&&this[r]instanceof RegExp&&(this[r]=jRe)}else this._n3Mode=e.n3!==!1;this._comments=!!e.comments,this._literalClosingPos=0}_tokenizeToEnd(e,r){let n=this._input,a=n.length;for(;;){let u,c;for(;u=this._newline.exec(n);)this._comments&&(c=this._comment.exec(u[0]))&&s("comment",c[1],"",this._line,u[0].length),n=n.substr(u[0].length,n.length),a=n.length,this._line++;if(!u&&(u=this._whitespace.exec(n))&&(n=n.substr(u[0].length,n.length)),this._endOfFile.test(n))return r&&(this._comments&&(c=this._comment.exec(n))&&s("comment",c[1],"",this._line,n.length),n=null,s("eof","","",this._line,0)),this._input=n;const l=this._line,d=n[0];let f="",h="",p="",m=null,y=0,g=!1;switch(d){case"^":if(n.length<3)break;if(n[1]==="^"){if(this._previousMarker="^^",n=n.substr(2),n[0]!=="<"){g=!0;break}}else{this._n3Mode&&(y=1,f="^");break}case"<":if(m=this._unescapedIri.exec(n))f="IRI",h=m[1];else if(m=this._iri.exec(n)){if(h=this._unescape(m[1]),h===null||CRe.test(h))return o(this);f="IRI"}else n.length>1&&n[1]==="<"?(f="<<",y=2):this._n3Mode&&n.length>1&&n[1]==="="&&(f="inverse",y=2,h=">");break;case">":n.length>1&&n[1]===">"&&(f=">>",y=2);break;case"_":((m=this._blank.exec(n))||r&&(m=this._blank.exec(`${n} `)))&&(f="blank",p="_",h=m[1]);break;case'"':if(m=this._simpleQuotedString.exec(n))h=m[1];else if({value:h,matchLength:y}=this._parseLiteral(n),h===null)return o(this);(m!==null||y!==0)&&(f="literal",this._literalClosingPos=0);break;case"'":if(!this._lineMode){if(m=this._simpleApostropheString.exec(n))h=m[1];else if({value:h,matchLength:y}=this._parseLiteral(n),h===null)return o(this);(m!==null||y!==0)&&(f="literal",this._literalClosingPos=0)}break;case"?":this._n3Mode&&(m=this._variable.exec(n))&&(f="var",h=m[0]);break;case"@":this._previousMarker==="literal"&&(m=this._langcode.exec(n))?(f="langcode",h=m[1]):(m=this._keyword.exec(n))&&(f=m[0]);break;case".":if(n.length===1?r:n[1]<"0"||n[1]>"9"){f=".",y=1;break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"+":case"-":(m=this._number.exec(n)||r&&(m=this._number.exec(`${n} `)))&&(f="literal",h=m[0],p=typeof m[1]=="string"?kv.double:typeof m[2]=="string"?kv.decimal:kv.integer);break;case"B":case"b":case"p":case"P":case"G":case"g":(m=this._sparqlKeyword.exec(n))?f=m[0].toUpperCase():g=!0;break;case"f":case"t":(m=this._boolean.exec(n))?(f="literal",h=m[0],p=kv.boolean):g=!0;break;case"a":(m=this._shortPredicates.exec(n))?(f="abbreviation",h="a"):g=!0;break;case"=":this._n3Mode&&n.length>1&&(f="abbreviation",n[1]!==">"?(y=1,h="="):(y=2,h=">"));break;case"!":if(!this._n3Mode)break;case",":case";":case"[":case"]":case"(":case")":case"}":this._lineMode||(y=1,f=d);break;case"{":!this._lineMode&&n.length>=2&&(n[1]==="|"?(f="{|",y=2):(f=d,y=1));break;case"|":n.length>=2&&n[1]==="}"&&(f="|}",y=2);break;default:g=!0}if(g&&((this._previousMarker==="@prefix"||this._previousMarker==="PREFIX")&&(m=this._prefix.exec(n))?(f="prefix",h=m[1]||""):((m=this._prefixed.exec(n))||r&&(m=this._prefixed.exec(`${n} `)))&&(f="prefixed",p=m[1]||"",h=this._unescape(m[2]))),this._previousMarker==="^^")switch(f){case"prefixed":f="type";break;case"IRI":f="typeIRI";break;default:f=""}if(!f)return r||!/^'''|^"""/.test(n)&&/\n|\r/.test(n)?o(this):this._input=n;const b=y||m[0].length,v=s(f,h,p,l,b);this.previousToken=v,this._previousMarker=f,n=n.substr(b,n.length)}function s(u,c,l,d,f){const h=n?a-n.length:a,p=h+f,m={type:u,value:c,prefix:l,line:d,start:h,end:p};return e(null,m),m}function o(u){e(u._syntaxError(/^\S*/.exec(n)[0]))}}_unescape(e){let r=!1;const n=e.replace(DRe,(a,s,o,u)=>{if(typeof s=="string")return String.fromCharCode(Number.parseInt(s,16));if(typeof o=="string"){let c=Number.parseInt(o,16);return c<=65535?String.fromCharCode(Number.parseInt(o,16)):String.fromCharCode(55296+((c-=65536)>>10),56320+(c&1023))}return u in h7?h7[u]:(r=!0,"")});return r?null:n}_parseLiteral(e){if(e.length>=3){const r=e.match(/^(?:"""|"|'''|'|)/)[0],n=r.length;let a=Math.max(this._literalClosingPos,n);for(;(a=e.indexOf(r,a))>0;){let s=0;for(;e[a-s-1]==="\\";)s++;if(s%2===0){const o=e.substring(n,a),u=o.split(/\r\n|\r|\n/).length-1,c=a+n;if(n===1&&u!==0||n===3&&this._lineMode)break;return this._line+=u,{value:this._unescape(o),matchLength:c}}a++}this._literalClosingPos=e.length-n+1}return{value:"",matchLength:0}}_syntaxError(e){this._input=null;const r=new Error(`Unexpected "${e}" on line ${this._line}.`);return r.context={token:void 0,line:this._line,previousToken:this.previousToken},r}_readStartingBom(e){return e.startsWith("\uFEFF")?e.substr(1):e}tokenize(e,r){if(this._line=1,typeof e=="string")if(this._input=this._readStartingBom(e),typeof r=="function")mZ(()=>this._tokenizeToEnd(r,!0));else{const n=[];let a;if(this._tokenizeToEnd((s,o)=>s?a=s:n.push(o),!0),a)throw a;return n}else this._pendingBuffer=null,typeof e.setEncoding=="function"&&e.setEncoding("utf8"),e.on("data",n=>{this._input!==null&&n.length!==0&&(this._pendingBuffer&&(n=rue.concat([this._pendingBuffer,n]),this._pendingBuffer=null),n[n.length-1]&128?this._pendingBuffer=n:(typeof this._input>"u"?this._input=this._readStartingBom(typeof n=="string"?n:n.toString()):this._input+=n,this._tokenizeToEnd(r,!1)))}),e.on("end",()=>{typeof this._input=="string"&&this._tokenizeToEnd(r,!0)}),e.on("error",r)}};const{rdf:MRe,xsd:wc}=Cn;let I1,FRe=0;const _u={namedNode:BRe,blankNode:qRe,variable:URe,literal:$Re,defaultGraph:kRe,quad:p7,triple:p7};let Ts=class gZ{constructor(e){this.id=e}get value(){return this.id}equals(e){return e instanceof gZ?this.id===e.id:!!e&&this.termType===e.termType&&this.value===e.value}hashCode(){return 0}toJSON(){return{termType:this.termType,value:this.value}}},yT=class extends Ts{get termType(){return"NamedNode"}},Od=class _Z extends Ts{get termType(){return"Literal"}get value(){return this.id.substring(1,this.id.lastIndexOf('"'))}get language(){const e=this.id;let r=e.lastIndexOf('"')+1;return r0?"INF":"-INF")))),r===""||r===wc.string?new Od(`"${t}"`):new Od(`"${t}"^^${r}`)}function URe(t){return new e4(t)}function kRe(){return I1}function p7(t,e,r,n){return new Sb(t,e,r,n)}let y7=0,mT=class{constructor(e){this._contextStack=[],this._graph=null,e=e||{},this._setBase(e.baseIRI),e.factory&&bZ(this,e.factory);const r=typeof e.format=="string"?e.format.match(/\w*$/)[0].toLowerCase():"",n=/turtle/.test(r),a=/trig/.test(r),s=/triple/.test(r),o=/quad/.test(r),u=this._n3Mode=/n3/.test(r),c=s||o;(this._supportsNamedGraphs=!(n||u))||(this._readPredicateOrNamedGraph=this._readPredicate),this._supportsQuads=!(n||a||s||u),this._supportsRDFStar=r===""||/star|\*$/.test(r),c&&(this._resolveRelativeIRI=l=>null),this._blankNodePrefix=typeof e.blankNodePrefix!="string"?"":e.blankNodePrefix.replace(/^(?!_:)/,"_:"),this._lexer=e.lexer||new YC({lineMode:c,n3:u}),this._explicitQuantifiers=!!e.explicitQuantifiers}static _resetBlankNodePrefix(){y7=0}_setBase(e){if(!e)this._base="",this._basePath="";else{const r=e.indexOf("#");r>=0&&(e=e.substr(0,r)),this._base=e,this._basePath=e.indexOf("/")<0?e:e.replace(/[^\/?]*(?:\?.*)?$/,""),e=e.match(/^(?:([a-z][a-z0-9+.-]*:))?(?:\/\/[^\/]*)?/i),this._baseRoot=e[0],this._baseScheme=e[1]}}_saveContext(e,r,n,a,s){const o=this._n3Mode;this._contextStack.push({type:e,subject:n,predicate:a,object:s,graph:r,inverse:o?this._inversePredicate:!1,blankPrefix:o?this._prefixes._:"",quantified:o?this._quantified:null}),o&&(this._inversePredicate=!1,this._prefixes._=this._graph?`${this._graph.value}.`:".",this._quantified=Object.create(this._quantified))}_restoreContext(e,r){const n=this._contextStack.pop();if(!n||n.type!==e)return this._error(`Unexpected ${r.type}`,r);this._subject=n.subject,this._predicate=n.predicate,this._object=n.object,this._graph=n.graph,this._n3Mode&&(this._inversePredicate=n.inverse,this._prefixes._=n.blankPrefix,this._quantified=n.quantified)}_readInTopContext(e){switch(e.type){case"eof":return this._graph!==null?this._error("Unclosed graph",e):(delete this._prefixes._,this._callback(null,null,this._prefixes));case"PREFIX":this._sparqlStyle=!0;case"@prefix":return this._readPrefix;case"BASE":this._sparqlStyle=!0;case"@base":return this._readBaseIRI;case"{":if(this._supportsNamedGraphs)return this._graph="",this._subject=null,this._readSubject;case"GRAPH":if(this._supportsNamedGraphs)return this._readNamedGraphLabel;default:return this._readSubject(e)}}_readEntity(e,r){let n;switch(e.type){case"IRI":case"typeIRI":const a=this._resolveIRI(e.value);if(a===null)return this._error("Invalid IRI",e);n=this._namedNode(a);break;case"type":case"prefixed":const s=this._prefixes[e.prefix];if(s===void 0)return this._error(`Undefined prefix "${e.prefix}:"`,e);n=this._namedNode(s+e.value);break;case"blank":n=this._blankNode(this._prefixes[e.prefix]+e.value);break;case"var":n=this._variable(e.value.substr(1));break;default:return this._error(`Expected entity but got ${e.type}`,e)}return!r&&this._n3Mode&&n.id in this._quantified&&(n=this._quantified[n.id]),n}_readSubject(e){switch(this._predicate=null,e.type){case"[":return this._saveContext("blank",this._graph,this._subject=this._blankNode(),null,null),this._readBlankNodeHead;case"(":return this._saveContext("list",this._graph,this.RDF_NIL,null,null),this._subject=null,this._readListItem;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._graph=this._blankNode(),null,null),this._readSubject):this._error("Unexpected graph",e);case"}":return this._readPunctuation(e);case"@forSome":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORSOME,this._quantifier=this._blankNode,this._readQuantifierList):this._error('Unexpected "@forSome"',e);case"@forAll":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORALL,this._quantifier=this._variable,this._readQuantifierList):this._error('Unexpected "@forAll"',e);case"literal":if(!this._n3Mode)return this._error("Unexpected literal",e);if(e.prefix.length===0)return this._literalValue=e.value,this._completeSubjectLiteral;this._subject=this._literal(e.value,this._namedNode(e.prefix));break;case"<<":return this._supportsRDFStar?(this._saveContext("<<",this._graph,null,null,null),this._graph=null,this._readSubject):this._error("Unexpected RDF* syntax",e);default:if((this._subject=this._readEntity(e))===void 0)return;if(this._n3Mode)return this._getPathReader(this._readPredicateOrNamedGraph)}return this._readPredicateOrNamedGraph}_readPredicate(e){const r=e.type;switch(r){case"inverse":this._inversePredicate=!0;case"abbreviation":this._predicate=this.ABBREVIATIONS[e.value];break;case".":case"]":case"}":return this._predicate===null?this._error(`Unexpected ${r}`,e):(this._subject=null,r==="]"?this._readBlankNodeTail(e):this._readPunctuation(e));case";":return this._predicate!==null?this._readPredicate:this._error("Expected predicate but got ;",e);case"[":if(this._n3Mode)return this._saveContext("blank",this._graph,this._subject,this._subject=this._blankNode(),null),this._readBlankNodeHead;case"blank":if(!this._n3Mode)return this._error("Disallowed blank node as predicate",e);default:if((this._predicate=this._readEntity(e))===void 0)return}return this._readObject}_readObject(e){switch(e.type){case"literal":if(e.prefix.length===0)return this._literalValue=e.value,this._readDataTypeOrLang;this._object=this._literal(e.value,this._namedNode(e.prefix));break;case"[":return this._saveContext("blank",this._graph,this._subject,this._predicate,this._subject=this._blankNode()),this._readBlankNodeHead;case"(":return this._saveContext("list",this._graph,this._subject,this._predicate,this.RDF_NIL),this._subject=null,this._readListItem;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._subject,this._predicate,this._graph=this._blankNode()),this._readSubject):this._error("Unexpected graph",e);case"<<":return this._supportsRDFStar?(this._saveContext("<<",this._graph,this._subject,this._predicate,null),this._graph=null,this._readSubject):this._error("Unexpected RDF* syntax",e);default:if((this._object=this._readEntity(e))===void 0)return;if(this._n3Mode)return this._getPathReader(this._getContextEndReader())}return this._getContextEndReader()}_readPredicateOrNamedGraph(e){return e.type==="{"?this._readGraph(e):this._readPredicate(e)}_readGraph(e){return e.type!=="{"?this._error(`Expected graph but got ${e.type}`,e):(this._graph=this._subject,this._subject=null,this._readSubject)}_readBlankNodeHead(e){return e.type==="]"?(this._subject=null,this._readBlankNodeTail(e)):(this._predicate=null,this._readPredicate(e))}_readBlankNodeTail(e){if(e.type!=="]")return this._readBlankNodePunctuation(e);this._subject!==null&&this._emit(this._subject,this._predicate,this._object,this._graph);const r=this._predicate===null;return this._restoreContext("blank",e),this._object!==null?this._getContextEndReader():this._predicate!==null?this._readObject:r?this._readPredicateOrNamedGraph:this._readPredicateAfterBlank}_readPredicateAfterBlank(e){switch(e.type){case".":case"}":return this._subject=null,this._readPunctuation(e);default:return this._readPredicate(e)}}_readListItem(e){let r=null,n=null,a=this._readListItem;const s=this._subject,o=this._contextStack,u=o[o.length-1];switch(e.type){case"[":this._saveContext("blank",this._graph,n=this._blankNode(),this.RDF_FIRST,this._subject=r=this._blankNode()),a=this._readBlankNodeHead;break;case"(":this._saveContext("list",this._graph,n=this._blankNode(),this.RDF_FIRST,this.RDF_NIL),this._subject=null;break;case")":if(this._restoreContext("list",e),o.length!==0&&o[o.length-1].type==="list"&&this._emit(this._subject,this._predicate,this._object,this._graph),this._predicate===null){if(a=this._readPredicate,this._subject===this.RDF_NIL)return a}else if(a=this._getContextEndReader(),this._object===this.RDF_NIL)return a;n=this.RDF_NIL;break;case"literal":e.prefix.length===0?(this._literalValue=e.value,a=this._readListItemDataTypeOrLang):(r=this._literal(e.value,this._namedNode(e.prefix)),a=this._getContextEndReader());break;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._subject,this._predicate,this._graph=this._blankNode()),this._readSubject):this._error("Unexpected graph",e);default:if((r=this._readEntity(e))===void 0)return}if(n===null&&(this._subject=n=this._blankNode()),s===null?u.predicate===null?u.subject=n:u.object=n:this._emit(s,this.RDF_REST,n,this._graph),r!==null){if(this._n3Mode&&(e.type==="IRI"||e.type==="prefixed"))return this._saveContext("item",this._graph,n,this.RDF_FIRST,r),this._subject=r,this._predicate=null,this._getPathReader(this._readListItem);this._emit(n,this.RDF_FIRST,r,this._graph)}return a}_readDataTypeOrLang(e){return this._completeObjectLiteral(e,!1)}_readListItemDataTypeOrLang(e){return this._completeObjectLiteral(e,!0)}_completeLiteral(e){let r=this._literal(this._literalValue);switch(e.type){case"type":case"typeIRI":const n=this._readEntity(e);if(n===void 0)return;r=this._literal(this._literalValue,n),e=null;break;case"langcode":r=this._literal(this._literalValue,e.value),e=null;break}return{token:e,literal:r}}_completeSubjectLiteral(e){return this._subject=this._completeLiteral(e).literal,this._readPredicateOrNamedGraph}_completeObjectLiteral(e,r){const n=this._completeLiteral(e);if(n)return this._object=n.literal,r&&this._emit(this._subject,this.RDF_FIRST,this._object,this._graph),n.token===null?this._getContextEndReader():(this._readCallback=this._getContextEndReader(),this._readCallback(n.token))}_readFormulaTail(e){return e.type!=="}"?this._readPunctuation(e):(this._subject!==null&&this._emit(this._subject,this._predicate,this._object,this._graph),this._restoreContext("formula",e),this._object===null?this._readPredicate:this._getContextEndReader())}_readPunctuation(e){let r,n=this._graph;const a=this._subject,s=this._inversePredicate;switch(e.type){case"}":if(this._graph===null)return this._error("Unexpected graph closing",e);if(this._n3Mode)return this._readFormulaTail(e);this._graph=null;case".":this._subject=null,r=this._contextStack.length?this._readSubject:this._readInTopContext,s&&(this._inversePredicate=!1);break;case";":r=this._readPredicate;break;case",":r=this._readObject;break;case"{|":if(!this._supportsRDFStar)return this._error("Unexpected RDF* syntax",e);const o=this._predicate,u=this._object;this._subject=this._quad(a,o,u,this.DEFAULTGRAPH),r=this._readPredicate;break;case"|}":if(this._subject.termType!=="Quad")return this._error("Unexpected asserted triple closing",e);this._subject=null,r=this._readPunctuation;break;default:if(this._supportsQuads&&this._graph===null&&(n=this._readEntity(e))!==void 0){r=this._readQuadPunctuation;break}return this._error(`Expected punctuation to follow "${this._object.id}"`,e)}if(a!==null){const o=this._predicate,u=this._object;s?this._emit(u,o,a,n):this._emit(a,o,u,n)}return r}_readBlankNodePunctuation(e){let r;switch(e.type){case";":r=this._readPredicate;break;case",":r=this._readObject;break;default:return this._error(`Expected punctuation to follow "${this._object.id}"`,e)}return this._emit(this._subject,this._predicate,this._object,this._graph),r}_readQuadPunctuation(e){return e.type!=="."?this._error("Expected dot to follow quad",e):this._readInTopContext}_readPrefix(e){return e.type!=="prefix"?this._error("Expected prefix to follow @prefix",e):(this._prefix=e.value,this._readPrefixIRI)}_readPrefixIRI(e){if(e.type!=="IRI")return this._error(`Expected IRI to follow prefix "${this._prefix}:"`,e);const r=this._readEntity(e);return this._prefixes[this._prefix]=r.value,this._prefixCallback(this._prefix,r),this._readDeclarationPunctuation}_readBaseIRI(e){const r=e.type==="IRI"&&this._resolveIRI(e.value);return r?(this._setBase(r),this._readDeclarationPunctuation):this._error("Expected valid IRI to follow base declaration",e)}_readNamedGraphLabel(e){switch(e.type){case"IRI":case"blank":case"prefixed":return this._readSubject(e),this._readGraph;case"[":return this._readNamedGraphBlankLabel;default:return this._error("Invalid graph label",e)}}_readNamedGraphBlankLabel(e){return e.type!=="]"?this._error("Invalid graph label",e):(this._subject=this._blankNode(),this._readGraph)}_readDeclarationPunctuation(e){return this._sparqlStyle?(this._sparqlStyle=!1,this._readInTopContext(e)):e.type!=="."?this._error("Expected declaration to end with a dot",e):this._readInTopContext}_readQuantifierList(e){let r;switch(e.type){case"IRI":case"prefixed":if((r=this._readEntity(e,!0))!==void 0)break;default:return this._error(`Unexpected ${e.type}`,e)}return this._explicitQuantifiers?(this._subject===null?this._emit(this._graph||this.DEFAULTGRAPH,this._predicate,this._subject=this._blankNode(),this.QUANTIFIERS_GRAPH):this._emit(this._subject,this.RDF_REST,this._subject=this._blankNode(),this.QUANTIFIERS_GRAPH),this._emit(this._subject,this.RDF_FIRST,r,this.QUANTIFIERS_GRAPH)):this._quantified[r.id]=this._quantifier(this._blankNode().value),this._readQuantifierPunctuation}_readQuantifierPunctuation(e){return e.type===","?this._readQuantifierList:(this._explicitQuantifiers&&(this._emit(this._subject,this.RDF_REST,this.RDF_NIL,this.QUANTIFIERS_GRAPH),this._subject=null),this._readCallback=this._getContextEndReader(),this._readCallback(e))}_getPathReader(e){return this._afterPath=e,this._readPath}_readPath(e){switch(e.type){case"!":return this._readForwardPath;case"^":return this._readBackwardPath;default:const r=this._contextStack,n=r.length&&r[r.length-1];if(n&&n.type==="item"){const a=this._subject;this._restoreContext("item",e),this._emit(this._subject,this.RDF_FIRST,a,this._graph)}return this._afterPath(e)}}_readForwardPath(e){let r,n;const a=this._blankNode();if((n=this._readEntity(e))!==void 0)return this._predicate===null?(r=this._subject,this._subject=a):(r=this._object,this._object=a),this._emit(r,n,a,this._graph),this._readPath}_readBackwardPath(e){const r=this._blankNode();let n,a;if((n=this._readEntity(e))!==void 0)return this._predicate===null?(a=this._subject,this._subject=r):(a=this._object,this._object=r),this._emit(r,n,a,this._graph),this._readPath}_readRDFStarTailOrGraph(e){return e.type!==">>"?this._supportsQuads&&this._graph===null&&(this._graph=this._readEntity(e))!==void 0?this._readRDFStarTail:this._error(`Expected >> to follow "${this._object.id}"`,e):this._readRDFStarTail(e)}_readRDFStarTail(e){if(e.type!==">>")return this._error(`Expected >> but got ${e.type}`,e);const r=this._quad(this._subject,this._predicate,this._object,this._graph||this.DEFAULTGRAPH);return this._restoreContext("<<",e),this._subject===null?(this._subject=r,this._readPredicate):(this._object=r,this._getContextEndReader())}_getContextEndReader(){const e=this._contextStack;if(!e.length)return this._readPunctuation;switch(e[e.length-1].type){case"blank":return this._readBlankNodeTail;case"list":return this._readListItem;case"formula":return this._readFormulaTail;case"<<":return this._readRDFStarTailOrGraph}}_emit(e,r,n,a){this._callback(null,this._quad(e,r,n,a||this.DEFAULTGRAPH))}_error(e,r){const n=new Error(`${e} on line ${r.line}.`);n.context={token:r,line:r.line,previousToken:this._lexer.previousToken},this._callback(n),this._callback=EO}_resolveIRI(e){return/^[a-z][a-z0-9+.-]*:/i.test(e)?e:this._resolveRelativeIRI(e)}_resolveRelativeIRI(e){if(!e.length)return this._base;switch(e[0]){case"#":return this._base+e;case"?":return this._base.replace(/(?:\?.*)?$/,e);case"/":return(e[1]==="/"?this._baseScheme:this._baseRoot)+this._removeDotSegments(e);default:return/^[^/:]*:/.test(e)?null:this._removeDotSegments(this._basePath+e)}}_removeDotSegments(e){if(!/(^|\/)\.\.?($|[/#?])/.test(e))return e;const r=e.length;let n="",a=-1,s=-1,o=0,u="/";for(;a=s&&(n=n.substr(0,o)),u!=="/")return`${n}/${e.substr(a+1)}`;o=a+1}}}u=e[++a]}return n+e.substring(o)}parse(e,r,n){if(this._readCallback=this._readInTopContext,this._sparqlStyle=!1,this._prefixes=Object.create(null),this._prefixes._=this._blankNodePrefix?this._blankNodePrefix.substr(2):`b${y7++}_`,this._prefixCallback=n||EO,this._inversePredicate=!1,this._quantified=Object.create(null),!r){const a=[];let s;if(this._callback=(o,u)=>{o?s=o:u&&a.push(u)},this._lexer.tokenize(e).every(o=>this._readCallback=this._readCallback(o)),s)throw s;return a}this._callback=r,this._lexer.tokenize(e,(a,s)=>{a!==null?(this._callback(a),this._callback=EO):this._readCallback&&(this._readCallback=this._readCallback(s))})}};function EO(){}function bZ(t,e){const r=e.namedNode;t._namedNode=r,t._blankNode=e.blankNode,t._literal=e.literal,t._variable=e.variable,t._quad=e.quad,t.DEFAULTGRAPH=e.defaultGraph(),t.RDF_FIRST=r(Cn.rdf.first),t.RDF_REST=r(Cn.rdf.rest),t.RDF_NIL=r(Cn.rdf.nil),t.N3_FORALL=r(Cn.r.forAll),t.N3_FORSOME=r(Cn.r.forSome),t.ABBREVIATIONS={a:r(Cn.rdf.type),"=":r(Cn.owl.sameAs),">":r(Cn.log.implies)},t.QUANTIFIERS_GRAPH=r("urn:n3:quantifiers")}bZ(mT.prototype,_u);function VRe(t){return!!t&&t.termType==="NamedNode"}function HRe(t){return!!t&&t.termType==="BlankNode"}function QRe(t){return!!t&&t.termType==="Literal"}function zRe(t){return!!t&&t.termType==="Variable"}function Tb(t){return!!t&&t.termType==="DefaultGraph"}function GRe(t){return Tb(t.graph)}function WRe(t,e){return vZ({"":t.value||t},e)("")}function vZ(t,e){const r=Object.create(null);for(const a in t)n(a,t[a]);e=e||_u;function n(a,s){if(typeof s=="string"){const o=Object.create(null);r[a]=u=>o[u]||(o[u]=e.namedNode(s+u))}else if(!(a in r))throw new Error(`Unknown prefix: ${a}`);return r[a]}return n}const wZ=Object.freeze(Object.defineProperty({__proto__:null,inDefaultGraph:GRe,isBlankNode:HRe,isDefaultGraph:Tb,isLiteral:QRe,isNamedNode:VRe,isVariable:zRe,prefix:WRe,prefixes:vZ},Symbol.toStringTag,{value:"Module"})),Yp=_u.defaultGraph(),{rdf:KRe,xsd:Fl}=Cn,m7=/["\\\t\n\r\b\f\u0000-\u0019\ud800-\udbff]/,g7=/["\\\t\n\r\b\f\u0000-\u0019]|[\ud800-\udbff][\udc00-\udfff]/g,JRe={"\\":"\\\\",'"':'\\"'," ":"\\t","\n":"\\n","\r":"\\r","\b":"\\b","\f":"\\f"};let Zp=class extends Ts{equals(e){return e===this}},r4=class{constructor(e,r){if(this._prefixRegex=/$0^/,e&&typeof e.write!="function"&&(r=e,e=null),r=r||{},this._lists=r.lists,e)this._outputStream=e,this._endStream=r.end===void 0?!0:!!r.end;else{let n="";this._outputStream={write(a,s,o){n+=a,o&&o()},end:a=>{a&&a(null,n)}},this._endStream=!0}this._subject=null,/triple|quad/i.test(r.format)?(this._lineMode=!0,this._writeQuad=this._writeQuadLine):(this._lineMode=!1,this._graph=Yp,this._prefixIRIs=Object.create(null),r.prefixes&&this.addPrefixes(r.prefixes),r.baseIRI&&(this._baseMatcher=new RegExp(`^${b7(r.baseIRI)}${r.baseIRI.endsWith("/")?"":"[#?]"}`),this._baseLength=r.baseIRI.length))}get _inDefaultGraph(){return Yp.equals(this._graph)}_write(e,r){this._outputStream.write(e,"utf8",r)}_writeQuad(e,r,n,a,s){try{a.equals(this._graph)||(this._write((this._subject===null?"":this._inDefaultGraph?`. +`)}`);return a[c].actor}};return Tp.MediatorNumber=e,Tp}var h9;function Ep(){return h9||(h9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(FOe(),t)}(K3)),K3}var J3={},Ap={},X3={},Op={},Bs={},p9;function JC(){if(p9)return Bs;p9=1,Object.defineProperty(Bs,"__esModule",{value:!0}),Bs.ActorDereferenceBase=Bs.isHardError=Bs.emptyReadable=void 0;const t=qt,e=st,r=Pt;function n(){const o=new r.Readable;return o.push(null),o}Bs.emptyReadable=n;function a(o){return!o.get(t.KeysInitQuery.lenient)}Bs.isHardError=a;let s=class extends e.Actor{constructor(u){super(u)}async dereferenceErrorHandler(u,c,l){if(a(u.context))throw c;return this.logWarn(u.context,c.message),{...l,data:n()}}};return Bs.ActorDereferenceBase=s,Bs}var y9;function BOe(){if(y9)return Op;y9=1,Object.defineProperty(Op,"__esModule",{value:!0}),Op.ActorDereference=void 0;const t=JC();let e=class extends t.ActorDereferenceBase{constructor(n){super(n)}async handleDereferenceErrors(n,a,s,o=0){return this.dereferenceErrorHandler(n,a,{url:n.url,exists:!1,headers:s,requestTime:o})}};return Op.ActorDereference=e,Op}var Xu={},m9;function qOe(){if(m9)return Xu;m9=1,Object.defineProperty(Xu,"__esModule",{value:!0}),Xu.ActorDereferenceParse=Xu.getMediaTypeFromExtension=void 0;const t=Pt,e=JC();function r(a,s){const o=a.lastIndexOf(".");return o>=0&&(s==null?void 0:s[a.slice(o+1)])||""}Xu.getMediaTypeFromExtension=r;let n=class extends e.ActorDereferenceBase{constructor(s){super(s)}async test(s){return!0}handleDereferenceStreamErrors(s,o){return(0,e.isHardError)(s.context)||(o.on("error",u=>{this.logWarn(s.context,u.message,()=>({url:s.url})),o.push(null)}),o=o.pipe(new t.PassThrough({objectMode:!0}))),o}async run(s){var l,d;const{context:o}=s,u=await this.mediatorDereference.mediate({...s,mediaTypes:async()=>{var f,h;return(h=await((f=this.mediatorParseMediatypes)==null?void 0:f.mediate({context:o,mediaTypes:!0})))==null?void 0:h.mediaTypes}});let c;try{c=(await this.mediatorParse.mediate({context:o,handle:{context:o,...u,metadata:await this.getMetadata(u)},handleMediaType:u.mediaType||r(u.url,this.mediaMappings)||s.mediaType})).handle,c.data=this.handleDereferenceStreamErrors(s,c.data)}catch(f){await((d=(l=u.data).close)==null?void 0:d.call(l)),c=await this.dereferenceErrorHandler(s,f,{})}return{...u,...c}}};return Xu.ActorDereferenceParse=n,Xu}var g9;function XC(){return g9||(g9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(BOe(),t),r(qOe(),t),r(JC(),t)}(X3)),X3}var _9;function $Oe(){if(_9)return Ap;_9=1,Object.defineProperty(Ap,"__esModule",{value:!0}),Ap.ActorDereferenceFallback=void 0;const t=XC();let e=class extends t.ActorDereference{constructor(n){super(n)}async test(n){return!0}async run(n){return this.handleDereferenceErrors(n,new Error(`Could not dereference '${n.url}'`))}};return Ap.ActorDereferenceFallback=e,Ap}var b9;function UOe(){return b9||(b9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r($Oe(),t)}(J3)),J3}var Y3={},Rp={},Z3={},xp={},v9;function kOe(){if(v9)return xp;v9=1,Object.defineProperty(xp,"__esModule",{value:!0}),xp.ActorRdfJoinEntriesSort=void 0;const t=st;let e=class extends t.Actor{constructor(n){super(n)}};return xp.ActorRdfJoinEntriesSort=e,xp}var w9;function VOe(){return w9||(w9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(kOe(),t)}(Z3)),Z3}var S9;function HOe(){if(S9)return Rp;S9=1,Object.defineProperty(Rp,"__esModule",{value:!0}),Rp.ActorRdfJoinEntriesSortCardinality=void 0;const t=VOe();let e=class extends t.ActorRdfJoinEntriesSort{constructor(n){super(n)}async test(n){return!0}async run(n){return{entries:[...n.entries].sort((s,o)=>s.metadata.cardinality.value-o.metadata.cardinality.value)}}};return Rp.ActorRdfJoinEntriesSortCardinality=e,Rp}var T9;function QOe(){return T9||(T9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(HOe(),t)}(Y3)),Y3}var eO={},Yu={},tO={},Ip={},E9;function zOe(){if(E9)return Ip;E9=1,Object.defineProperty(Ip,"__esModule",{value:!0}),Ip.ActorRdfJoinSelectivity=void 0;const t=st;let e=class extends t.Actor{constructor(n){super(n)}};return Ip.ActorRdfJoinSelectivity=e,Ip}var A9;function GOe(){return A9||(A9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(zOe(),t)}(tO)),tO}var O9;function WOe(){if(O9)return Yu;O9=1,Object.defineProperty(Yu,"__esModule",{value:!0}),Yu.JoinTypes=Yu.ActorRdfJoinSelectivityVariableCounting=void 0;const t=GOe(),e=xt();let r=class fc extends t.ActorRdfJoinSelectivity{constructor(s){super(s)}async test(s){return{accuracy:.5}}static getPatternCost(s){let o=1;return s.subject.termType==="Variable"&&(o+=4),(s.predicate.termType==="Variable"||s.type===e.Algebra.types.PATH)&&(o+=1),s.object.termType==="Variable"&&(o+=2),s.graph.termType==="Variable"&&(o+=1),o/9}static getJoinTypes(s,o){const u=[];return s.subject.termType==="Variable"?(s.subject.equals(o.subject)&&u.push(n.unboundSS),o.type==="pattern"&&s.subject.equals(o.predicate)&&u.push(n.unboundSP),s.subject.equals(o.object)&&u.push(n.unboundSO),s.subject.equals(o.graph)&&u.push(n.unboundSG)):(s.subject.equals(o.subject)&&u.push(n.boundSS),o.type==="pattern"&&s.subject.equals(o.predicate)&&u.push(n.boundSP),s.subject.equals(o.object)&&u.push(n.boundSO),s.subject.equals(o.graph)&&u.push(n.boundSG)),s.type==="pattern"&&(s.predicate.termType==="Variable"?(s.predicate.equals(o.subject)&&u.push(n.unboundPS),o.type==="pattern"&&s.predicate.equals(o.predicate)&&u.push(n.unboundPP),s.predicate.equals(o.object)&&u.push(n.unboundPO),s.predicate.equals(o.graph)&&u.push(n.unboundPG)):(s.predicate.equals(o.subject)&&u.push(n.boundPS),o.type==="pattern"&&s.predicate.equals(o.predicate)&&u.push(n.boundPP),s.predicate.equals(o.object)&&u.push(n.boundPO),s.predicate.equals(o.graph)&&u.push(n.boundPG))),s.object.termType==="Variable"?(s.object.equals(o.subject)&&u.push(n.unboundOS),o.type==="pattern"&&s.object.equals(o.predicate)&&u.push(n.unboundOP),s.object.equals(o.object)&&u.push(n.unboundOO),s.object.equals(o.graph)&&u.push(n.unboundOG)):(s.object.equals(o.subject)&&u.push(n.boundOS),o.type==="pattern"&&s.object.equals(o.predicate)&&u.push(n.boundOP),s.object.equals(o.object)&&u.push(n.boundOO),s.object.equals(o.graph)&&u.push(n.boundOG)),s.graph.termType==="Variable"?(s.graph.equals(o.subject)&&u.push(n.unboundGS),o.type==="pattern"&&s.graph.equals(o.predicate)&&u.push(n.unboundGP),s.graph.equals(o.object)&&u.push(n.unboundGO),s.graph.equals(o.graph)&&u.push(n.unboundGG)):(s.graph.equals(o.subject)&&u.push(n.boundGS),o.type==="pattern"&&s.graph.equals(o.predicate)&&u.push(n.boundGP),s.graph.equals(o.object)&&u.push(n.boundGO),s.graph.equals(o.graph)&&u.push(n.boundGG)),u}static getOperationsPairwiseJoinCost(s,o){let u=fc.MAX_PAIRWISE_COST;for(const c of fc.getJoinTypes(s,o))switch(c){case n.boundSS:u-=2*2;break;case n.boundSP:u-=3*2;break;case n.boundSO:u-=1*2;break;case n.boundSG:u-=3*2;break;case n.boundPS:u-=3*2;break;case n.boundPP:return 1;case n.boundPO:u-=3*2;break;case n.boundPG:u-=3*2;break;case n.boundOS:u-=1*2;break;case n.boundOP:u-=3*2;break;case n.boundOO:u-=1*2;break;case n.boundOG:u-=3*2;break;case n.boundGS:u-=3*2;break;case n.boundGP:u-=3*2;break;case n.boundGO:u-=3*2;break;case n.boundGG:u-=3*2;break;case n.unboundSS:u-=2;break;case n.unboundSP:u-=3;break;case n.unboundSO:u-=1;break;case n.unboundSG:u-=3;break;case n.unboundPS:u-=3;break;case n.unboundPP:u-=3;break;case n.unboundPO:u-=3;break;case n.unboundPG:u-=3;break;case n.unboundOS:u-=1;break;case n.unboundOP:u-=3;break;case n.unboundOO:u-=1;break;case n.unboundOG:u-=3;break;case n.unboundGS:u-=3;break;case n.unboundGP:u-=3;break;case n.unboundGO:u-=3;break;case n.unboundGG:u-=3;break}return u/fc.MAX_PAIRWISE_COST}static getOperationsJoinCost(s){const o=[];for(const l of s)e.Util.recurseOperation(l,{[e.Algebra.types.PATTERN](d){return o.push(d),!1},[e.Algebra.types.PATH](d){return o.push(d),!1}});let u=0,c=0;for(const l of o)for(const d of o)l!==d&&(u+=fc.getOperationsPairwiseJoinCost(l,d),c++);return c===0?1:u/c*o.reduce((l,d)=>l*fc.getPatternCost(d),1)}async run(s){return s.entries.length<=1?{selectivity:1}:{selectivity:fc.getOperationsJoinCost(s.entries.map(o=>o.operation))}}};Yu.ActorRdfJoinSelectivityVariableCounting=r,r.MAX_PAIRWISE_COST=41*2;var n;return function(a){a[a.boundSS=0]="boundSS",a[a.boundSP=1]="boundSP",a[a.boundSO=2]="boundSO",a[a.boundSG=3]="boundSG",a[a.boundPS=4]="boundPS",a[a.boundPP=5]="boundPP",a[a.boundPO=6]="boundPO",a[a.boundPG=7]="boundPG",a[a.boundOS=8]="boundOS",a[a.boundOP=9]="boundOP",a[a.boundOO=10]="boundOO",a[a.boundOG=11]="boundOG",a[a.boundGS=12]="boundGS",a[a.boundGP=13]="boundGP",a[a.boundGO=14]="boundGO",a[a.boundGG=15]="boundGG",a[a.unboundSS=16]="unboundSS",a[a.unboundSP=17]="unboundSP",a[a.unboundSO=18]="unboundSO",a[a.unboundSG=19]="unboundSG",a[a.unboundPS=20]="unboundPS",a[a.unboundPP=21]="unboundPP",a[a.unboundPO=22]="unboundPO",a[a.unboundPG=23]="unboundPG",a[a.unboundOS=24]="unboundOS",a[a.unboundOP=25]="unboundOP",a[a.unboundOO=26]="unboundOO",a[a.unboundOG=27]="unboundOG",a[a.unboundGS=28]="unboundGS",a[a.unboundGP=29]="unboundGP",a[a.unboundGO=30]="unboundGO",a[a.unboundGG=31]="unboundGG"}(n||(Yu.JoinTypes=n={})),Yu}var R9;function KOe(){return R9||(R9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(WOe(),t)}(eO)),eO}var rO={},Pp={},nO={},Np={},x9;function JOe(){if(x9)return Np;x9=1,Object.defineProperty(Np,"__esModule",{value:!0}),Np.ActorRdfMetadata=void 0;const t=st;let e=class extends t.Actor{constructor(n){super(n)}};return Np.ActorRdfMetadata=e,Np}var I9;function yZ(){return I9||(I9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(JOe(),t)}(nO)),nO}var P9;function XOe(){if(P9)return Pp;P9=1,Object.defineProperty(Pp,"__esModule",{value:!0}),Pp.ActorRdfMetadataPrimaryTopic=void 0;const t=yZ(),e=Pt;let r=class extends t.ActorRdfMetadata{constructor(a){super(a)}async test(a){if(a.triples)throw new Error("This actor only supports non-triple quad streams.");return!0}async run(a){const s=new e.Readable({objectMode:!0}),o=new e.Readable({objectMode:!0}),u=()=>{s._read=o._read=()=>{},a.quads.on("error",f=>{s.emit("error",f),o.emit("error",f)});const c={};let l;const d={};a.quads.on("data",f=>{f.predicate.value==="http://rdfs.org/ns/void#subset"&&f.object.value===a.url?l=f.subject.value:f.predicate.value==="http://xmlns.com/foaf/0.1/primaryTopic"&&(d[f.object.value]=f.subject.value);let h=c[f.graph.value];h||(h=c[f.graph.value]=[]),h.push(f)}),a.quads.on("end",()=>{const f=l?d[l]:void 0;for(const h in c)if(h===f){for(const p of c[h])o.push(p);if(this.metadataToData)for(const p of c[h])s.push(p)}else{for(const p of c[h])s.push(p);if(!f&&this.dataToMetadataOnInvalidMetadataGraph)for(const p of c[h])o.push(p)}s.push(null),o.push(null)})};return s._read=o._read=()=>{u()},{data:s,metadata:o}}};return Pp.ActorRdfMetadataPrimaryTopic=r,Pp}var N9;function YOe(){return N9||(N9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(XOe(),t)}(rO)),rO}var iO={},Dp={},D9;function ZOe(){if(D9)return Dp;D9=1,Object.defineProperty(Dp,"__esModule",{value:!0}),Dp.ActorRdfMetadataAll=void 0;const t=yZ(),e=Pt;let r=class extends t.ActorRdfMetadata{constructor(a){super(a)}async test(a){return!0}async run(a){const s=new e.Readable({objectMode:!0}),o=new e.Readable({objectMode:!0});a.quads.on("error",c=>{s.emit("error",c),o.emit("error",c)}),a.quads.on("end",()=>{s.push(null),o.push(null)});const u=s._read=o._read=c=>{for(;c>0;){const l=a.quads.read();if(l===null)return a.quads.once("readable",()=>u(c));c--,s.push(l),o.push(l)}};return{data:s,metadata:o}}};return Dp.ActorRdfMetadataAll=r,Dp}var C9;function eRe(){return C9||(C9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(ZOe(),t)}(iO)),iO}var aO={},Cp={},sO={},Lp={},L9;function tRe(){if(L9)return Lp;L9=1,Object.defineProperty(Lp,"__esModule",{value:!0}),Lp.ActorRdfMetadataAccumulate=void 0;const t=st;let e=class extends t.Actor{constructor(n){super(n)}};return Lp.ActorRdfMetadataAccumulate=e,Lp}var j9;function hT(){return j9||(j9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(tRe(),t)}(sO)),sO}var M9;function rRe(){if(M9)return Cp;M9=1,Object.defineProperty(Cp,"__esModule",{value:!0}),Cp.ActorRdfMetadataAccumulateCanContainUndefs=void 0;const t=hT();let e=class extends t.ActorRdfMetadataAccumulate{constructor(n){super(n)}async test(n){return!0}async run(n){if(n.mode==="initialize")return{metadata:{canContainUndefs:!1}};let a=n.accumulatedMetadata.canContainUndefs;return n.appendingMetadata.canContainUndefs&&(a=!0),{metadata:{canContainUndefs:a}}}};return Cp.ActorRdfMetadataAccumulateCanContainUndefs=e,Cp}var F9;function nRe(){return F9||(F9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(rRe(),t)}(aO)),aO}var oO={},jp={},B9;function iRe(){if(B9)return jp;B9=1,Object.defineProperty(jp,"__esModule",{value:!0}),jp.ActorRdfMetadataAccumulateCardinality=void 0;const t=hT();let e=class extends t.ActorRdfMetadataAccumulate{constructor(n){super(n)}async test(n){return!0}async run(n){if(n.mode==="initialize")return{metadata:{cardinality:{type:"exact",value:0}}};const a={...n.accumulatedMetadata.cardinality};if(a.dataset)if(n.appendingMetadata.cardinality.dataset){if(a.dataset!==n.appendingMetadata.cardinality.dataset&&n.appendingMetadata.subsetOf===a.dataset)return{metadata:{cardinality:n.appendingMetadata.cardinality}};if(a.dataset===n.appendingMetadata.cardinality.dataset)return{metadata:{cardinality:a}};delete a.dataset}else return{metadata:{cardinality:a}};return!n.appendingMetadata.cardinality||!Number.isFinite(n.appendingMetadata.cardinality.value)?(a.type="estimate",a.value=Number.POSITIVE_INFINITY):(n.appendingMetadata.cardinality.type==="estimate"&&(a.type="estimate"),a.value+=n.appendingMetadata.cardinality.value),{metadata:{cardinality:a}}}};return jp.ActorRdfMetadataAccumulateCardinality=e,jp}var q9;function aRe(){return q9||(q9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(iRe(),t)}(oO)),oO}var uO={},Mp={},$9;function sRe(){if($9)return Mp;$9=1,Object.defineProperty(Mp,"__esModule",{value:!0}),Mp.ActorRdfMetadataAccumulatePageSize=void 0;const t=hT();let e=class extends t.ActorRdfMetadataAccumulate{constructor(n){super(n)}async test(n){return!0}async run(n){return n.mode==="initialize"?{metadata:{}}:{metadata:{..."pageSize"in n.accumulatedMetadata||"pageSize"in n.appendingMetadata?{pageSize:(n.accumulatedMetadata.pageSize??0)+(n.appendingMetadata.pageSize??0)}:{}}}}};return Mp.ActorRdfMetadataAccumulatePageSize=e,Mp}var U9;function oRe(){return U9||(U9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(sRe(),t)}(uO)),uO}var cO={},Fp={},k9;function uRe(){if(k9)return Fp;k9=1,Object.defineProperty(Fp,"__esModule",{value:!0}),Fp.ActorRdfMetadataAccumulateRequestTime=void 0;const t=hT();let e=class extends t.ActorRdfMetadataAccumulate{constructor(n){super(n)}async test(n){return!0}async run(n){return n.mode==="initialize"?{metadata:{}}:{metadata:{..."requestTime"in n.accumulatedMetadata||"requestTime"in n.appendingMetadata?{requestTime:(n.accumulatedMetadata.requestTime??0)+(n.appendingMetadata.requestTime??0)}:{}}}}};return Fp.ActorRdfMetadataAccumulateRequestTime=e,Fp}var V9;function cRe(){return V9||(V9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(uRe(),t)}(cO)),cO}var lO={},Bp={},dO={},qp={},H9;function lRe(){if(H9)return qp;H9=1,Object.defineProperty(qp,"__esModule",{value:!0}),qp.ActorRdfMetadataExtract=void 0;const t=st;let e=class extends t.Actor{constructor(n){super(n)}};return qp.ActorRdfMetadataExtract=e,qp}var Q9;function Nu(){return Q9||(Q9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(lRe(),t)}(dO)),dO}var fO={exports:{}},z9;function dRe(){return z9||(z9=1,function(t){(function(e){var r=function(){function m(y){this.options=y}return m.prototype.toString=function(){return JSON&&JSON.stringify?JSON.stringify(this.options):this.options},m}(),n=function(){function m(L){return Object.prototype.toString.apply(L)==="[object Array]"}function y(L){return Object.prototype.toString.apply(L)==="[object String]"}function g(L){return Object.prototype.toString.apply(L)==="[object Number]"}function b(L){return Object.prototype.toString.apply(L)==="[object Boolean]"}function v(L,F){var x="",P=!0,j;for(j=0;j="a"&&b<="z"||b>="A"&&b<="Z"}function y(b){return b>="0"&&b<="9"}function g(b){return y(b)||b>="a"&&b<="f"||b>="A"&&b<="F"}return{isAlpha:m,isDigit:y,isHexDigit:g}}(),s=function(){var m={encode:function(w){return unescape(encodeURIComponent(w))},numBytes:function(w){return w<=127?1:194<=w&&w<=223?2:224<=w&&w<=239?3:240<=w&&w<=244?4:0},isValidFollowingCharCode:function(w){return 128<=w&&w<=191}};function y(w){var E="",O=m.encode(w),L,F;for(F=0;F1||o.isReserved(w)||o.isUnreserved(w)?w:s.encodeCharacter(w)}function b(v){var _="",w,E="";for(w=0;w1?_+=E:_+=o.isReserved(E)||o.isUnreserved(E)?E:s.encodeCharacter(E);return _}return{encode:m,encodePassReserved:y,encodeLiteral:b,encodeLiteralCharacter:g}}(),c=function(){var m={};function y(g){m[g]={symbol:g,separator:g==="?"?"&":g===""||g==="+"||g==="#"?",":g,named:g===";"||g==="&"||g==="?",ifEmpty:g==="&"||g==="?"?"=":"",first:g==="+"?"":g,encode:g==="+"||g==="#"?u.encodePassReserved:u.encode,toString:function(){return this.symbol}}}return y(""),y("+"),y("#"),y("."),y("/"),y(";"),y("?"),y("&"),{valueOf:function(g){return m[g]?m[g]:"=,!@|".indexOf(g)>=0?null:m[""]}}}();function l(m){var y;if(m==null)return!1;if(n.isArray(m))return m.length>0;if(typeof m=="string"||typeof m=="number"||typeof m=="boolean")return!0;for(y in m)if(m.hasOwnProperty(y)&&l(m[y]))return!0;return!1}var d=function(){function m(y){this.literal=u.encodeLiteral(y)}return m.prototype.expand=function(){return this.literal},m.prototype.toString=m.prototype.expand,m}(),f=function(){function m(g){var b,v=[],_=null,w=null,E=null,O,L="";function F(){var P=g.substring(w,O);if(P.length===0)throw new r({expressionText:g,message:"a varname must be specified",position:O});_={varname:P,exploded:!1,maxLength:null},w=null}function x(){if(E===O)throw new r({expressionText:g,message:"after a ':' you have to specify the length",position:O});_.maxLength=parseInt(g.substring(E,O),10),E=null}for(b=function(P){var j=c.valueOf(P);if(j===null)throw new r({expressionText:g,message:"illegal use of reserved operator",position:O,operator:P});return j}(g.charAt(0)),O=b.symbol.length,w=O;O=4)throw new r({expressionText:g,message:"A :prefix must have max 4 digits",position:O});continue}x()}if(L===":"){if(_.maxLength!==null)throw new r({expressionText:g,message:"only one :maxLength is allowed per varspec",position:O});if(_.exploded)throw new r({expressionText:g,message:"an exploeded varspec MUST NOT be varspeced",position:O});E=O+1;continue}if(L==="*"){if(_===null)throw new r({expressionText:g,message:"exploded without varspec",position:O});if(_.exploded)throw new r({expressionText:g,message:"exploded twice",position:O});if(_.maxLength)throw new r({expressionText:g,message:"an explode (*) MUST NOT follow to a prefix",position:O});_.exploded=!0;continue}if(L===","){v.push(_),_=null,w=O+1;continue}throw new r({expressionText:g,message:"illegal character",character:L,position:O})}return w!==null&&F(),E!==null&&x(),v.push(_),new h(g,b,v)}function y(g){var b,v,_=[],w=null,E=0;for(b=0;b{const u=s[o]||s[`${o}Page`],c=u&&u[a];return[o,c&&c.length>0?[c[0]]:[]]}))}parseUriTemplateCached(a){const s=this.parsedUriTemplateCache[a];return s||(this.parsedUriTemplateCache[a]=(0,e.parse)(a))}getSearchForms(a){const s=a.search,o=[];if(s)for(const u in s)for(const c of s[u]){const l=(a.template||{})[c]||[];if(l.length!==1)throw new Error(`Expected 1 hydra:template for ${c}`);const d=l[0],f=this.parseUriTemplateCached(d),h=Object.fromEntries(((a.mapping||{})[c]||[]).map(m=>{const y=((a.variable||{})[m]||[])[0],g=((a.property||{})[m]||[])[0];if(!y)throw new Error(`Expected a hydra:variable for ${m}`);if(!g)throw new Error(`Expected a hydra:property for ${m}`);return[g,y]})),p=m=>f.expand(Object.fromEntries(Object.keys(m).map(y=>[h[y],m[y]])));o.push({dataset:u,template:d,mappings:h,getUri:p})}return{values:o}}getHydraProperties(a){return new Promise((s,o)=>{a.on("error",o);const u={};a.on("data",c=>{if(c.predicate.value.startsWith(Vw.HYDRA)){const l=c.predicate.value.slice(Vw.HYDRA.length),d=u[l]||(u[l]={});(d[c.subject.value]||(d[c.subject.value]=[])).push(c.object.value)}}),a.on("end",()=>s(u))})}async run(a){const s={},o=await this.getHydraProperties(a.metadata);return Object.assign(s,this.getLinks(a.url,o)),s.searchForms=this.getSearchForms(o),{metadata:s}}};return Bp.ActorRdfMetadataExtractHydraControls=r,r.HYDRA="http://www.w3.org/ns/hydra/core#",r.LINK_TYPES=["first","next","previous","last"],Bp}var W9;function hRe(){return W9||(W9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(fRe(),t)}(lO)),lO}var hO={},$p={},K9;function pRe(){if(K9)return $p;K9=1,Object.defineProperty($p,"__esModule",{value:!0}),$p.ActorRdfMetadataExtractHydraCount=void 0;const t=Nu();let e=class extends t.ActorRdfMetadataExtract{constructor(n){super(n)}async test(n){return!0}run(n){return new Promise((a,s)=>{n.metadata.on("error",s),n.metadata.on("data",o=>{this.predicates.includes(o.predicate.value)&&a({metadata:{cardinality:{type:"estimate",value:Number.parseInt(o.object.value,10),dataset:o.subject.value}}})}),n.metadata.on("end",()=>{a({metadata:{cardinality:{type:"estimate",value:0}}})})})}};return $p.ActorRdfMetadataExtractHydraCount=e,$p}var J9;function yRe(){return J9||(J9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(pRe(),t)}(hO)),hO}var pO={},Up={},X9;function mRe(){if(X9)return Up;X9=1,Object.defineProperty(Up,"__esModule",{value:!0}),Up.ActorRdfMetadataExtractHydraPagesize=void 0;const t=Nu();let e=class extends t.ActorRdfMetadataExtract{constructor(n){super(n)}async test(n){return!0}async run(n){return new Promise((a,s)=>{n.metadata.on("error",s),n.metadata.on("data",o=>{this.predicates.includes(o.predicate.value)&&a({metadata:{pageSize:Number.parseInt(o.object.value,10)}})}),n.metadata.on("end",()=>{a({metadata:{}})})})}};return Up.ActorRdfMetadataExtractHydraPagesize=e,Up}var Y9;function gRe(){return Y9||(Y9=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(mRe(),t)}(pO)),pO}var yO={},kp={},Z9;function _Re(){if(Z9)return kp;Z9=1,Object.defineProperty(kp,"__esModule",{value:!0}),kp.ActorRdfMetadataExtractRequestTime=void 0;const t=Nu();let e=class extends t.ActorRdfMetadataExtract{constructor(n){super(n)}async test(n){return!0}async run(n){return{metadata:{requestTime:n.requestTime}}}};return kp.ActorRdfMetadataExtractRequestTime=e,kp}var e7;function bRe(){return e7||(e7=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(_Re(),t)}(yO)),yO}var mO={},Vp={},t7;function vRe(){if(t7)return Vp;t7=1,Object.defineProperty(Vp,"__esModule",{value:!0}),Vp.ActorRdfMetadataExtractAllowHttpMethods=void 0;const t=Nu();let e=class extends t.ActorRdfMetadataExtract{constructor(n){super(n)}async test(n){return!0}async run(n){var s,o;const a={};return(s=n.headers)!=null&&s.get("allow")&&(a.allowHttpMethods=(o=n.headers.get("allow"))==null?void 0:o.split(/, */u)),{metadata:a}}};return Vp.ActorRdfMetadataExtractAllowHttpMethods=e,Vp}var r7;function wRe(){return r7||(r7=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(vRe(),t)}(mO)),mO}var gO={},Hp={},n7;function SRe(){if(n7)return Hp;n7=1,Object.defineProperty(Hp,"__esModule",{value:!0}),Hp.ActorRdfMetadataExtractPutAccepted=void 0;const t=Nu();let e=class extends t.ActorRdfMetadataExtract{constructor(n){super(n)}async test(n){return!0}async run(n){var s,o;const a={};return(s=n.headers)!=null&&s.get("accept-put")&&(a.putAccepted=(o=n.headers.get("accept-put"))==null?void 0:o.split(/, */u)),{metadata:a}}};return Hp.ActorRdfMetadataExtractPutAccepted=e,Hp}var i7;function TRe(){return i7||(i7=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(SRe(),t)}(gO)),gO}var _O={},Qp={},a7;function ERe(){if(a7)return Qp;a7=1,Object.defineProperty(Qp,"__esModule",{value:!0}),Qp.ActorRdfMetadataExtractPatchSparqlUpdate=void 0;const t=Nu();let e=class extends t.ActorRdfMetadataExtract{constructor(n){super(n)}async test(n){return!0}async run(n){var s,o,u,c;const a={};return(((o=(s=n.headers)==null?void 0:s.get("accept-patch"))==null?void 0:o.includes("application/sparql-update"))??((c=(u=n.headers)==null?void 0:u.get("ms-author-via"))==null?void 0:c.includes("SPARQL")))&&(a.patchSparqlUpdate=!0),{metadata:a}}};return Qp.ActorRdfMetadataExtractPatchSparqlUpdate=e,Qp}var s7;function ARe(){return s7||(s7=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(ERe(),t)}(_O)),_O}var bO={},zp={},o7;function ORe(){if(o7)return zp;o7=1,Object.defineProperty(zp,"__esModule",{value:!0}),zp.ActorRdfMetadataExtractSparqlService=void 0;const t=Nu(),e=ga;let r=class extends t.ActorRdfMetadataExtract{constructor(a){super(a)}async test(a){return!0}async run(a){return new Promise((s,o)=>{a.metadata.on("error",o);const u={};a.metadata.on("data",c=>{c.predicate.value==="http://www.w3.org/ns/sparql-service-description#endpoint"&&(c.subject.termType==="BlankNode"||c.subject.value===a.url)?(u.sparqlService=c.object.termType==="Literal"?(0,e.resolve)(c.object.value,a.url):c.object.value,this.inferHttpsEndpoint&&a.url.startsWith("https")&&!u.sparqlService.startsWith("https")&&(u.sparqlService=u.sparqlService.replace("http:","https:"))):c.predicate.value==="http://www.w3.org/ns/sparql-service-description#defaultGraph"&&(u.defaultGraph=c.object.value)}),a.metadata.on("end",()=>{s({metadata:u})})})}};return zp.ActorRdfMetadataExtractSparqlService=r,zp}var u7;function RRe(){return u7||(u7=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(ORe(),t)}(bO)),bO}var vO={},Gp={},wO={},Wp={},c7;function xRe(){if(c7)return Wp;c7=1,Object.defineProperty(Wp,"__esModule",{value:!0}),Wp.ActorRdfParse=void 0;const t=jf();let e=class extends t.ActorAbstractMediaTyped{constructor(n){super(n)}};return Wp.ActorRdfParse=e,Wp}var Kp={},l7;function IRe(){if(l7)return Kp;l7=1,Object.defineProperty(Kp,"__esModule",{value:!0}),Kp.ActorRdfParseFixedMediaTypes=void 0;const t=jf();let e=class extends t.ActorAbstractMediaTypedFixed{constructor(n){super(n)}async testHandleChecked(n){return!0}};return Kp.ActorRdfParseFixedMediaTypes=e,Kp}var d7;function Mf(){return d7||(d7=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(xRe(),t),r(IRe(),t)}(wO)),wO}/*! queue-microtask. MIT License. Feross Aboukhadijeh */let f7;var PRe=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:I):t=>(f7||(f7=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0));const mZ=bK(PRe),Jp="http://www.w3.org/1999/02/22-rdf-syntax-ns#",Xp="http://www.w3.org/2001/XMLSchema#",SO="http://www.w3.org/2000/10/swap/",Cn={xsd:{decimal:`${Xp}decimal`,boolean:`${Xp}boolean`,double:`${Xp}double`,integer:`${Xp}integer`,string:`${Xp}string`},rdf:{type:`${Jp}type`,nil:`${Jp}nil`,first:`${Jp}first`,rest:`${Jp}rest`,langString:`${Jp}langString`},owl:{sameAs:"http://www.w3.org/2002/07/owl#sameAs"},r:{forSome:`${SO}reify#forSome`,forAll:`${SO}reify#forAll`},log:{implies:`${SO}log#implies`}},{xsd:kv}=Cn,NRe=/\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{8})|\\([^])/g,h7={"\\":"\\","'":"'",'"':'"',n:` +`,r:"\r",t:" ",f:"\f",b:"\b",_:"_","~":"~",".":".","-":"-","!":"!",$:"$","&":"&","(":"(",")":")","*":"*","+":"+",",":",",";":";","=":"=","/":"/","?":"?","#":"#","@":"@","%":"%"},DRe=/[\x00-\x20<>\\"\{\}\|\^\`]/,CRe={_iri:!0,_unescapedIri:!0,_simpleQuotedString:!0,_langcode:!0,_blank:!0,_newline:!0,_comment:!0,_whitespace:!0,_endOfFile:!0},LRe=/$0^/;let YC=class{constructor(e){if(this._iri=/^<((?:[^ <>{}\\]|\\[uU])+)>[ \t]*/,this._unescapedIri=/^<([^\x00-\x20<>\\"\{\}\|\^\`]*)>[ \t]*/,this._simpleQuotedString=/^"([^"\\\r\n]*)"(?=[^"])/,this._simpleApostropheString=/^'([^'\\\r\n]*)'(?=[^'])/,this._langcode=/^@([a-z]+(?:-[a-z0-9]+)*)(?=[^a-z0-9\-])/i,this._prefix=/^((?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)?:(?=[#\s<])/,this._prefixed=/^((?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)?:((?:(?:[0-:A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])(?:(?:[\.\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])*(?:[\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~]))?)?)(?:[ \t]+|(?=\.?[,;!\^\s#()\[\]\{\}"'<>]))/,this._variable=/^\?(?:(?:[A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:[\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)(?=[.,;!\^\s#()\[\]\{\}"'<>])/,this._blank=/^_:((?:[0-9A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)(?:[ \t]+|(?=\.?[,;:\s#()\[\]\{\}"'<>]))/,this._number=/^[\-+]?(?:(\d+\.\d*|\.?\d+)[eE][\-+]?|\d*(\.)?)\d+(?=\.?[,;:\s#()\[\]\{\}"'<>])/,this._boolean=/^(?:true|false)(?=[.,;\s#()\[\]\{\}"'<>])/,this._keyword=/^@[a-z]+(?=[\s#<:])/i,this._sparqlKeyword=/^(?:PREFIX|BASE|GRAPH)(?=[\s#<])/i,this._shortPredicates=/^a(?=[\s#()\[\]\{\}"'<>])/,this._newline=/^[ \t]*(?:#[^\n\r]*)?(?:\r\n|\n|\r)[ \t]*/,this._comment=/#([^\n\r]*)/,this._whitespace=/^[ \t]+/,this._endOfFile=/^(?:#[^\n\r]*)?$/,e=e||{},this._lineMode=!!e.lineMode){this._n3Mode=!1;for(const r in this)!(r in CRe)&&this[r]instanceof RegExp&&(this[r]=LRe)}else this._n3Mode=e.n3!==!1;this._comments=!!e.comments,this._literalClosingPos=0}_tokenizeToEnd(e,r){let n=this._input,a=n.length;for(;;){let u,c;for(;u=this._newline.exec(n);)this._comments&&(c=this._comment.exec(u[0]))&&s("comment",c[1],"",this._line,u[0].length),n=n.substr(u[0].length,n.length),a=n.length,this._line++;if(!u&&(u=this._whitespace.exec(n))&&(n=n.substr(u[0].length,n.length)),this._endOfFile.test(n))return r&&(this._comments&&(c=this._comment.exec(n))&&s("comment",c[1],"",this._line,n.length),n=null,s("eof","","",this._line,0)),this._input=n;const l=this._line,d=n[0];let f="",h="",p="",m=null,y=0,g=!1;switch(d){case"^":if(n.length<3)break;if(n[1]==="^"){if(this._previousMarker="^^",n=n.substr(2),n[0]!=="<"){g=!0;break}}else{this._n3Mode&&(y=1,f="^");break}case"<":if(m=this._unescapedIri.exec(n))f="IRI",h=m[1];else if(m=this._iri.exec(n)){if(h=this._unescape(m[1]),h===null||DRe.test(h))return o(this);f="IRI"}else n.length>1&&n[1]==="<"?(f="<<",y=2):this._n3Mode&&n.length>1&&n[1]==="="&&(f="inverse",y=2,h=">");break;case">":n.length>1&&n[1]===">"&&(f=">>",y=2);break;case"_":((m=this._blank.exec(n))||r&&(m=this._blank.exec(`${n} `)))&&(f="blank",p="_",h=m[1]);break;case'"':if(m=this._simpleQuotedString.exec(n))h=m[1];else if({value:h,matchLength:y}=this._parseLiteral(n),h===null)return o(this);(m!==null||y!==0)&&(f="literal",this._literalClosingPos=0);break;case"'":if(!this._lineMode){if(m=this._simpleApostropheString.exec(n))h=m[1];else if({value:h,matchLength:y}=this._parseLiteral(n),h===null)return o(this);(m!==null||y!==0)&&(f="literal",this._literalClosingPos=0)}break;case"?":this._n3Mode&&(m=this._variable.exec(n))&&(f="var",h=m[0]);break;case"@":this._previousMarker==="literal"&&(m=this._langcode.exec(n))?(f="langcode",h=m[1]):(m=this._keyword.exec(n))&&(f=m[0]);break;case".":if(n.length===1?r:n[1]<"0"||n[1]>"9"){f=".",y=1;break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"+":case"-":(m=this._number.exec(n)||r&&(m=this._number.exec(`${n} `)))&&(f="literal",h=m[0],p=typeof m[1]=="string"?kv.double:typeof m[2]=="string"?kv.decimal:kv.integer);break;case"B":case"b":case"p":case"P":case"G":case"g":(m=this._sparqlKeyword.exec(n))?f=m[0].toUpperCase():g=!0;break;case"f":case"t":(m=this._boolean.exec(n))?(f="literal",h=m[0],p=kv.boolean):g=!0;break;case"a":(m=this._shortPredicates.exec(n))?(f="abbreviation",h="a"):g=!0;break;case"=":this._n3Mode&&n.length>1&&(f="abbreviation",n[1]!==">"?(y=1,h="="):(y=2,h=">"));break;case"!":if(!this._n3Mode)break;case",":case";":case"[":case"]":case"(":case")":case"}":this._lineMode||(y=1,f=d);break;case"{":!this._lineMode&&n.length>=2&&(n[1]==="|"?(f="{|",y=2):(f=d,y=1));break;case"|":n.length>=2&&n[1]==="}"&&(f="|}",y=2);break;default:g=!0}if(g&&((this._previousMarker==="@prefix"||this._previousMarker==="PREFIX")&&(m=this._prefix.exec(n))?(f="prefix",h=m[1]||""):((m=this._prefixed.exec(n))||r&&(m=this._prefixed.exec(`${n} `)))&&(f="prefixed",p=m[1]||"",h=this._unescape(m[2]))),this._previousMarker==="^^")switch(f){case"prefixed":f="type";break;case"IRI":f="typeIRI";break;default:f=""}if(!f)return r||!/^'''|^"""/.test(n)&&/\n|\r/.test(n)?o(this):this._input=n;const b=y||m[0].length,v=s(f,h,p,l,b);this.previousToken=v,this._previousMarker=f,n=n.substr(b,n.length)}function s(u,c,l,d,f){const h=n?a-n.length:a,p=h+f,m={type:u,value:c,prefix:l,line:d,start:h,end:p};return e(null,m),m}function o(u){e(u._syntaxError(/^\S*/.exec(n)[0]))}}_unescape(e){let r=!1;const n=e.replace(NRe,(a,s,o,u)=>{if(typeof s=="string")return String.fromCharCode(Number.parseInt(s,16));if(typeof o=="string"){let c=Number.parseInt(o,16);return c<=65535?String.fromCharCode(Number.parseInt(o,16)):String.fromCharCode(55296+((c-=65536)>>10),56320+(c&1023))}return u in h7?h7[u]:(r=!0,"")});return r?null:n}_parseLiteral(e){if(e.length>=3){const r=e.match(/^(?:"""|"|'''|'|)/)[0],n=r.length;let a=Math.max(this._literalClosingPos,n);for(;(a=e.indexOf(r,a))>0;){let s=0;for(;e[a-s-1]==="\\";)s++;if(s%2===0){const o=e.substring(n,a),u=o.split(/\r\n|\r|\n/).length-1,c=a+n;if(n===1&&u!==0||n===3&&this._lineMode)break;return this._line+=u,{value:this._unescape(o),matchLength:c}}a++}this._literalClosingPos=e.length-n+1}return{value:"",matchLength:0}}_syntaxError(e){this._input=null;const r=new Error(`Unexpected "${e}" on line ${this._line}.`);return r.context={token:void 0,line:this._line,previousToken:this.previousToken},r}_readStartingBom(e){return e.startsWith("\uFEFF")?e.substr(1):e}tokenize(e,r){if(this._line=1,typeof e=="string")if(this._input=this._readStartingBom(e),typeof r=="function")mZ(()=>this._tokenizeToEnd(r,!0));else{const n=[];let a;if(this._tokenizeToEnd((s,o)=>s?a=s:n.push(o),!0),a)throw a;return n}else this._pendingBuffer=null,typeof e.setEncoding=="function"&&e.setEncoding("utf8"),e.on("data",n=>{this._input!==null&&n.length!==0&&(this._pendingBuffer&&(n=tue.concat([this._pendingBuffer,n]),this._pendingBuffer=null),n[n.length-1]&128?this._pendingBuffer=n:(typeof this._input>"u"?this._input=this._readStartingBom(typeof n=="string"?n:n.toString()):this._input+=n,this._tokenizeToEnd(r,!1)))}),e.on("end",()=>{typeof this._input=="string"&&this._tokenizeToEnd(r,!0)}),e.on("error",r)}};const{rdf:jRe,xsd:wc}=Cn;let I1,MRe=0;const _u={namedNode:FRe,blankNode:BRe,variable:$Re,literal:qRe,defaultGraph:URe,quad:p7,triple:p7};let Ts=class gZ{constructor(e){this.id=e}get value(){return this.id}equals(e){return e instanceof gZ?this.id===e.id:!!e&&this.termType===e.termType&&this.value===e.value}hashCode(){return 0}toJSON(){return{termType:this.termType,value:this.value}}},pT=class extends Ts{get termType(){return"NamedNode"}},Ad=class _Z extends Ts{get termType(){return"Literal"}get value(){return this.id.substring(1,this.id.lastIndexOf('"'))}get language(){const e=this.id;let r=e.lastIndexOf('"')+1;return r0?"INF":"-INF")))),r===""||r===wc.string?new Ad(`"${t}"`):new Ad(`"${t}"^^${r}`)}function $Re(t){return new e4(t)}function URe(){return I1}function p7(t,e,r,n){return new Sb(t,e,r,n)}let y7=0,yT=class{constructor(e){this._contextStack=[],this._graph=null,e=e||{},this._setBase(e.baseIRI),e.factory&&bZ(this,e.factory);const r=typeof e.format=="string"?e.format.match(/\w*$/)[0].toLowerCase():"",n=/turtle/.test(r),a=/trig/.test(r),s=/triple/.test(r),o=/quad/.test(r),u=this._n3Mode=/n3/.test(r),c=s||o;(this._supportsNamedGraphs=!(n||u))||(this._readPredicateOrNamedGraph=this._readPredicate),this._supportsQuads=!(n||a||s||u),this._supportsRDFStar=r===""||/star|\*$/.test(r),c&&(this._resolveRelativeIRI=l=>null),this._blankNodePrefix=typeof e.blankNodePrefix!="string"?"":e.blankNodePrefix.replace(/^(?!_:)/,"_:"),this._lexer=e.lexer||new YC({lineMode:c,n3:u}),this._explicitQuantifiers=!!e.explicitQuantifiers}static _resetBlankNodePrefix(){y7=0}_setBase(e){if(!e)this._base="",this._basePath="";else{const r=e.indexOf("#");r>=0&&(e=e.substr(0,r)),this._base=e,this._basePath=e.indexOf("/")<0?e:e.replace(/[^\/?]*(?:\?.*)?$/,""),e=e.match(/^(?:([a-z][a-z0-9+.-]*:))?(?:\/\/[^\/]*)?/i),this._baseRoot=e[0],this._baseScheme=e[1]}}_saveContext(e,r,n,a,s){const o=this._n3Mode;this._contextStack.push({type:e,subject:n,predicate:a,object:s,graph:r,inverse:o?this._inversePredicate:!1,blankPrefix:o?this._prefixes._:"",quantified:o?this._quantified:null}),o&&(this._inversePredicate=!1,this._prefixes._=this._graph?`${this._graph.value}.`:".",this._quantified=Object.create(this._quantified))}_restoreContext(e,r){const n=this._contextStack.pop();if(!n||n.type!==e)return this._error(`Unexpected ${r.type}`,r);this._subject=n.subject,this._predicate=n.predicate,this._object=n.object,this._graph=n.graph,this._n3Mode&&(this._inversePredicate=n.inverse,this._prefixes._=n.blankPrefix,this._quantified=n.quantified)}_readInTopContext(e){switch(e.type){case"eof":return this._graph!==null?this._error("Unclosed graph",e):(delete this._prefixes._,this._callback(null,null,this._prefixes));case"PREFIX":this._sparqlStyle=!0;case"@prefix":return this._readPrefix;case"BASE":this._sparqlStyle=!0;case"@base":return this._readBaseIRI;case"{":if(this._supportsNamedGraphs)return this._graph="",this._subject=null,this._readSubject;case"GRAPH":if(this._supportsNamedGraphs)return this._readNamedGraphLabel;default:return this._readSubject(e)}}_readEntity(e,r){let n;switch(e.type){case"IRI":case"typeIRI":const a=this._resolveIRI(e.value);if(a===null)return this._error("Invalid IRI",e);n=this._namedNode(a);break;case"type":case"prefixed":const s=this._prefixes[e.prefix];if(s===void 0)return this._error(`Undefined prefix "${e.prefix}:"`,e);n=this._namedNode(s+e.value);break;case"blank":n=this._blankNode(this._prefixes[e.prefix]+e.value);break;case"var":n=this._variable(e.value.substr(1));break;default:return this._error(`Expected entity but got ${e.type}`,e)}return!r&&this._n3Mode&&n.id in this._quantified&&(n=this._quantified[n.id]),n}_readSubject(e){switch(this._predicate=null,e.type){case"[":return this._saveContext("blank",this._graph,this._subject=this._blankNode(),null,null),this._readBlankNodeHead;case"(":return this._saveContext("list",this._graph,this.RDF_NIL,null,null),this._subject=null,this._readListItem;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._graph=this._blankNode(),null,null),this._readSubject):this._error("Unexpected graph",e);case"}":return this._readPunctuation(e);case"@forSome":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORSOME,this._quantifier=this._blankNode,this._readQuantifierList):this._error('Unexpected "@forSome"',e);case"@forAll":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORALL,this._quantifier=this._variable,this._readQuantifierList):this._error('Unexpected "@forAll"',e);case"literal":if(!this._n3Mode)return this._error("Unexpected literal",e);if(e.prefix.length===0)return this._literalValue=e.value,this._completeSubjectLiteral;this._subject=this._literal(e.value,this._namedNode(e.prefix));break;case"<<":return this._supportsRDFStar?(this._saveContext("<<",this._graph,null,null,null),this._graph=null,this._readSubject):this._error("Unexpected RDF* syntax",e);default:if((this._subject=this._readEntity(e))===void 0)return;if(this._n3Mode)return this._getPathReader(this._readPredicateOrNamedGraph)}return this._readPredicateOrNamedGraph}_readPredicate(e){const r=e.type;switch(r){case"inverse":this._inversePredicate=!0;case"abbreviation":this._predicate=this.ABBREVIATIONS[e.value];break;case".":case"]":case"}":return this._predicate===null?this._error(`Unexpected ${r}`,e):(this._subject=null,r==="]"?this._readBlankNodeTail(e):this._readPunctuation(e));case";":return this._predicate!==null?this._readPredicate:this._error("Expected predicate but got ;",e);case"[":if(this._n3Mode)return this._saveContext("blank",this._graph,this._subject,this._subject=this._blankNode(),null),this._readBlankNodeHead;case"blank":if(!this._n3Mode)return this._error("Disallowed blank node as predicate",e);default:if((this._predicate=this._readEntity(e))===void 0)return}return this._readObject}_readObject(e){switch(e.type){case"literal":if(e.prefix.length===0)return this._literalValue=e.value,this._readDataTypeOrLang;this._object=this._literal(e.value,this._namedNode(e.prefix));break;case"[":return this._saveContext("blank",this._graph,this._subject,this._predicate,this._subject=this._blankNode()),this._readBlankNodeHead;case"(":return this._saveContext("list",this._graph,this._subject,this._predicate,this.RDF_NIL),this._subject=null,this._readListItem;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._subject,this._predicate,this._graph=this._blankNode()),this._readSubject):this._error("Unexpected graph",e);case"<<":return this._supportsRDFStar?(this._saveContext("<<",this._graph,this._subject,this._predicate,null),this._graph=null,this._readSubject):this._error("Unexpected RDF* syntax",e);default:if((this._object=this._readEntity(e))===void 0)return;if(this._n3Mode)return this._getPathReader(this._getContextEndReader())}return this._getContextEndReader()}_readPredicateOrNamedGraph(e){return e.type==="{"?this._readGraph(e):this._readPredicate(e)}_readGraph(e){return e.type!=="{"?this._error(`Expected graph but got ${e.type}`,e):(this._graph=this._subject,this._subject=null,this._readSubject)}_readBlankNodeHead(e){return e.type==="]"?(this._subject=null,this._readBlankNodeTail(e)):(this._predicate=null,this._readPredicate(e))}_readBlankNodeTail(e){if(e.type!=="]")return this._readBlankNodePunctuation(e);this._subject!==null&&this._emit(this._subject,this._predicate,this._object,this._graph);const r=this._predicate===null;return this._restoreContext("blank",e),this._object!==null?this._getContextEndReader():this._predicate!==null?this._readObject:r?this._readPredicateOrNamedGraph:this._readPredicateAfterBlank}_readPredicateAfterBlank(e){switch(e.type){case".":case"}":return this._subject=null,this._readPunctuation(e);default:return this._readPredicate(e)}}_readListItem(e){let r=null,n=null,a=this._readListItem;const s=this._subject,o=this._contextStack,u=o[o.length-1];switch(e.type){case"[":this._saveContext("blank",this._graph,n=this._blankNode(),this.RDF_FIRST,this._subject=r=this._blankNode()),a=this._readBlankNodeHead;break;case"(":this._saveContext("list",this._graph,n=this._blankNode(),this.RDF_FIRST,this.RDF_NIL),this._subject=null;break;case")":if(this._restoreContext("list",e),o.length!==0&&o[o.length-1].type==="list"&&this._emit(this._subject,this._predicate,this._object,this._graph),this._predicate===null){if(a=this._readPredicate,this._subject===this.RDF_NIL)return a}else if(a=this._getContextEndReader(),this._object===this.RDF_NIL)return a;n=this.RDF_NIL;break;case"literal":e.prefix.length===0?(this._literalValue=e.value,a=this._readListItemDataTypeOrLang):(r=this._literal(e.value,this._namedNode(e.prefix)),a=this._getContextEndReader());break;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._subject,this._predicate,this._graph=this._blankNode()),this._readSubject):this._error("Unexpected graph",e);default:if((r=this._readEntity(e))===void 0)return}if(n===null&&(this._subject=n=this._blankNode()),s===null?u.predicate===null?u.subject=n:u.object=n:this._emit(s,this.RDF_REST,n,this._graph),r!==null){if(this._n3Mode&&(e.type==="IRI"||e.type==="prefixed"))return this._saveContext("item",this._graph,n,this.RDF_FIRST,r),this._subject=r,this._predicate=null,this._getPathReader(this._readListItem);this._emit(n,this.RDF_FIRST,r,this._graph)}return a}_readDataTypeOrLang(e){return this._completeObjectLiteral(e,!1)}_readListItemDataTypeOrLang(e){return this._completeObjectLiteral(e,!0)}_completeLiteral(e){let r=this._literal(this._literalValue);switch(e.type){case"type":case"typeIRI":const n=this._readEntity(e);if(n===void 0)return;r=this._literal(this._literalValue,n),e=null;break;case"langcode":r=this._literal(this._literalValue,e.value),e=null;break}return{token:e,literal:r}}_completeSubjectLiteral(e){return this._subject=this._completeLiteral(e).literal,this._readPredicateOrNamedGraph}_completeObjectLiteral(e,r){const n=this._completeLiteral(e);if(n)return this._object=n.literal,r&&this._emit(this._subject,this.RDF_FIRST,this._object,this._graph),n.token===null?this._getContextEndReader():(this._readCallback=this._getContextEndReader(),this._readCallback(n.token))}_readFormulaTail(e){return e.type!=="}"?this._readPunctuation(e):(this._subject!==null&&this._emit(this._subject,this._predicate,this._object,this._graph),this._restoreContext("formula",e),this._object===null?this._readPredicate:this._getContextEndReader())}_readPunctuation(e){let r,n=this._graph;const a=this._subject,s=this._inversePredicate;switch(e.type){case"}":if(this._graph===null)return this._error("Unexpected graph closing",e);if(this._n3Mode)return this._readFormulaTail(e);this._graph=null;case".":this._subject=null,r=this._contextStack.length?this._readSubject:this._readInTopContext,s&&(this._inversePredicate=!1);break;case";":r=this._readPredicate;break;case",":r=this._readObject;break;case"{|":if(!this._supportsRDFStar)return this._error("Unexpected RDF* syntax",e);const o=this._predicate,u=this._object;this._subject=this._quad(a,o,u,this.DEFAULTGRAPH),r=this._readPredicate;break;case"|}":if(this._subject.termType!=="Quad")return this._error("Unexpected asserted triple closing",e);this._subject=null,r=this._readPunctuation;break;default:if(this._supportsQuads&&this._graph===null&&(n=this._readEntity(e))!==void 0){r=this._readQuadPunctuation;break}return this._error(`Expected punctuation to follow "${this._object.id}"`,e)}if(a!==null){const o=this._predicate,u=this._object;s?this._emit(u,o,a,n):this._emit(a,o,u,n)}return r}_readBlankNodePunctuation(e){let r;switch(e.type){case";":r=this._readPredicate;break;case",":r=this._readObject;break;default:return this._error(`Expected punctuation to follow "${this._object.id}"`,e)}return this._emit(this._subject,this._predicate,this._object,this._graph),r}_readQuadPunctuation(e){return e.type!=="."?this._error("Expected dot to follow quad",e):this._readInTopContext}_readPrefix(e){return e.type!=="prefix"?this._error("Expected prefix to follow @prefix",e):(this._prefix=e.value,this._readPrefixIRI)}_readPrefixIRI(e){if(e.type!=="IRI")return this._error(`Expected IRI to follow prefix "${this._prefix}:"`,e);const r=this._readEntity(e);return this._prefixes[this._prefix]=r.value,this._prefixCallback(this._prefix,r),this._readDeclarationPunctuation}_readBaseIRI(e){const r=e.type==="IRI"&&this._resolveIRI(e.value);return r?(this._setBase(r),this._readDeclarationPunctuation):this._error("Expected valid IRI to follow base declaration",e)}_readNamedGraphLabel(e){switch(e.type){case"IRI":case"blank":case"prefixed":return this._readSubject(e),this._readGraph;case"[":return this._readNamedGraphBlankLabel;default:return this._error("Invalid graph label",e)}}_readNamedGraphBlankLabel(e){return e.type!=="]"?this._error("Invalid graph label",e):(this._subject=this._blankNode(),this._readGraph)}_readDeclarationPunctuation(e){return this._sparqlStyle?(this._sparqlStyle=!1,this._readInTopContext(e)):e.type!=="."?this._error("Expected declaration to end with a dot",e):this._readInTopContext}_readQuantifierList(e){let r;switch(e.type){case"IRI":case"prefixed":if((r=this._readEntity(e,!0))!==void 0)break;default:return this._error(`Unexpected ${e.type}`,e)}return this._explicitQuantifiers?(this._subject===null?this._emit(this._graph||this.DEFAULTGRAPH,this._predicate,this._subject=this._blankNode(),this.QUANTIFIERS_GRAPH):this._emit(this._subject,this.RDF_REST,this._subject=this._blankNode(),this.QUANTIFIERS_GRAPH),this._emit(this._subject,this.RDF_FIRST,r,this.QUANTIFIERS_GRAPH)):this._quantified[r.id]=this._quantifier(this._blankNode().value),this._readQuantifierPunctuation}_readQuantifierPunctuation(e){return e.type===","?this._readQuantifierList:(this._explicitQuantifiers&&(this._emit(this._subject,this.RDF_REST,this.RDF_NIL,this.QUANTIFIERS_GRAPH),this._subject=null),this._readCallback=this._getContextEndReader(),this._readCallback(e))}_getPathReader(e){return this._afterPath=e,this._readPath}_readPath(e){switch(e.type){case"!":return this._readForwardPath;case"^":return this._readBackwardPath;default:const r=this._contextStack,n=r.length&&r[r.length-1];if(n&&n.type==="item"){const a=this._subject;this._restoreContext("item",e),this._emit(this._subject,this.RDF_FIRST,a,this._graph)}return this._afterPath(e)}}_readForwardPath(e){let r,n;const a=this._blankNode();if((n=this._readEntity(e))!==void 0)return this._predicate===null?(r=this._subject,this._subject=a):(r=this._object,this._object=a),this._emit(r,n,a,this._graph),this._readPath}_readBackwardPath(e){const r=this._blankNode();let n,a;if((n=this._readEntity(e))!==void 0)return this._predicate===null?(a=this._subject,this._subject=r):(a=this._object,this._object=r),this._emit(r,n,a,this._graph),this._readPath}_readRDFStarTailOrGraph(e){return e.type!==">>"?this._supportsQuads&&this._graph===null&&(this._graph=this._readEntity(e))!==void 0?this._readRDFStarTail:this._error(`Expected >> to follow "${this._object.id}"`,e):this._readRDFStarTail(e)}_readRDFStarTail(e){if(e.type!==">>")return this._error(`Expected >> but got ${e.type}`,e);const r=this._quad(this._subject,this._predicate,this._object,this._graph||this.DEFAULTGRAPH);return this._restoreContext("<<",e),this._subject===null?(this._subject=r,this._readPredicate):(this._object=r,this._getContextEndReader())}_getContextEndReader(){const e=this._contextStack;if(!e.length)return this._readPunctuation;switch(e[e.length-1].type){case"blank":return this._readBlankNodeTail;case"list":return this._readListItem;case"formula":return this._readFormulaTail;case"<<":return this._readRDFStarTailOrGraph}}_emit(e,r,n,a){this._callback(null,this._quad(e,r,n,a||this.DEFAULTGRAPH))}_error(e,r){const n=new Error(`${e} on line ${r.line}.`);n.context={token:r,line:r.line,previousToken:this._lexer.previousToken},this._callback(n),this._callback=TO}_resolveIRI(e){return/^[a-z][a-z0-9+.-]*:/i.test(e)?e:this._resolveRelativeIRI(e)}_resolveRelativeIRI(e){if(!e.length)return this._base;switch(e[0]){case"#":return this._base+e;case"?":return this._base.replace(/(?:\?.*)?$/,e);case"/":return(e[1]==="/"?this._baseScheme:this._baseRoot)+this._removeDotSegments(e);default:return/^[^/:]*:/.test(e)?null:this._removeDotSegments(this._basePath+e)}}_removeDotSegments(e){if(!/(^|\/)\.\.?($|[/#?])/.test(e))return e;const r=e.length;let n="",a=-1,s=-1,o=0,u="/";for(;a=s&&(n=n.substr(0,o)),u!=="/")return`${n}/${e.substr(a+1)}`;o=a+1}}}u=e[++a]}return n+e.substring(o)}parse(e,r,n){if(this._readCallback=this._readInTopContext,this._sparqlStyle=!1,this._prefixes=Object.create(null),this._prefixes._=this._blankNodePrefix?this._blankNodePrefix.substr(2):`b${y7++}_`,this._prefixCallback=n||TO,this._inversePredicate=!1,this._quantified=Object.create(null),!r){const a=[];let s;if(this._callback=(o,u)=>{o?s=o:u&&a.push(u)},this._lexer.tokenize(e).every(o=>this._readCallback=this._readCallback(o)),s)throw s;return a}this._callback=r,this._lexer.tokenize(e,(a,s)=>{a!==null?(this._callback(a),this._callback=TO):this._readCallback&&(this._readCallback=this._readCallback(s))})}};function TO(){}function bZ(t,e){const r=e.namedNode;t._namedNode=r,t._blankNode=e.blankNode,t._literal=e.literal,t._variable=e.variable,t._quad=e.quad,t.DEFAULTGRAPH=e.defaultGraph(),t.RDF_FIRST=r(Cn.rdf.first),t.RDF_REST=r(Cn.rdf.rest),t.RDF_NIL=r(Cn.rdf.nil),t.N3_FORALL=r(Cn.r.forAll),t.N3_FORSOME=r(Cn.r.forSome),t.ABBREVIATIONS={a:r(Cn.rdf.type),"=":r(Cn.owl.sameAs),">":r(Cn.log.implies)},t.QUANTIFIERS_GRAPH=r("urn:n3:quantifiers")}bZ(yT.prototype,_u);function kRe(t){return!!t&&t.termType==="NamedNode"}function VRe(t){return!!t&&t.termType==="BlankNode"}function HRe(t){return!!t&&t.termType==="Literal"}function QRe(t){return!!t&&t.termType==="Variable"}function Tb(t){return!!t&&t.termType==="DefaultGraph"}function zRe(t){return Tb(t.graph)}function GRe(t,e){return vZ({"":t.value||t},e)("")}function vZ(t,e){const r=Object.create(null);for(const a in t)n(a,t[a]);e=e||_u;function n(a,s){if(typeof s=="string"){const o=Object.create(null);r[a]=u=>o[u]||(o[u]=e.namedNode(s+u))}else if(!(a in r))throw new Error(`Unknown prefix: ${a}`);return r[a]}return n}const wZ=Object.freeze(Object.defineProperty({__proto__:null,inDefaultGraph:zRe,isBlankNode:VRe,isDefaultGraph:Tb,isLiteral:HRe,isNamedNode:kRe,isVariable:QRe,prefix:GRe,prefixes:vZ},Symbol.toStringTag,{value:"Module"})),Yp=_u.defaultGraph(),{rdf:WRe,xsd:Ml}=Cn,m7=/["\\\t\n\r\b\f\u0000-\u0019\ud800-\udbff]/,g7=/["\\\t\n\r\b\f\u0000-\u0019]|[\ud800-\udbff][\udc00-\udfff]/g,KRe={"\\":"\\\\",'"':'\\"'," ":"\\t","\n":"\\n","\r":"\\r","\b":"\\b","\f":"\\f"};let Zp=class extends Ts{equals(e){return e===this}},r4=class{constructor(e,r){if(this._prefixRegex=/$0^/,e&&typeof e.write!="function"&&(r=e,e=null),r=r||{},this._lists=r.lists,e)this._outputStream=e,this._endStream=r.end===void 0?!0:!!r.end;else{let n="";this._outputStream={write(a,s,o){n+=a,o&&o()},end:a=>{a&&a(null,n)}},this._endStream=!0}this._subject=null,/triple|quad/i.test(r.format)?(this._lineMode=!0,this._writeQuad=this._writeQuadLine):(this._lineMode=!1,this._graph=Yp,this._prefixIRIs=Object.create(null),r.prefixes&&this.addPrefixes(r.prefixes),r.baseIRI&&(this._baseMatcher=new RegExp(`^${b7(r.baseIRI)}${r.baseIRI.endsWith("/")?"":"[#?]"}`),this._baseLength=r.baseIRI.length))}get _inDefaultGraph(){return Yp.equals(this._graph)}_write(e,r){this._outputStream.write(e,"utf8",r)}_writeQuad(e,r,n,a,s){try{a.equals(this._graph)||(this._write((this._subject===null?"":this._inDefaultGraph?`. `:` } `)+(Yp.equals(a)?"":`${this._encodeIriOrBlank(a)} { @@ -256,7 +256,7 @@ ${o.map(l=>l.message).join(` ${this._encodePredicate(this._predicate=r)} ${this._encodeObject(n)}`,s):this._write(`${(this._subject===null?"":`. `)+this._encodeSubject(this._subject=e)} ${this._encodePredicate(this._predicate=r)} ${this._encodeObject(n)}`,s)}catch(o){s&&s(o)}}_writeQuadLine(e,r,n,a,s){delete this._prefixMatch,this._write(this.quadToString(e,r,n,a),s)}quadToString(e,r,n,a){return`${this._encodeSubject(e)} ${this._encodeIriOrBlank(r)} ${this._encodeObject(n)}${a&&a.value?` ${this._encodeIriOrBlank(a)} . `:` . -`}`}quadsToString(e){return e.map(r=>this.quadToString(r.subject,r.predicate,r.object,r.graph)).join("")}_encodeSubject(e){return e.termType==="Quad"?this._encodeQuad(e):this._encodeIriOrBlank(e)}_encodeIriOrBlank(e){if(e.termType!=="NamedNode")return this._lists&&e.value in this._lists&&(e=this.list(this._lists[e.value])),"id"in e?e.id:`_:${e.value}`;let r=e.value;this._baseMatcher&&this._baseMatcher.test(r)&&(r=r.substr(this._baseLength)),m7.test(r)&&(r=r.replace(g7,_7));const n=this._prefixRegex.exec(r);return n?n[1]?this._prefixIRIs[n[1]]+n[2]:r:`<${r}>`}_encodeLiteral(e){let r=e.value;if(m7.test(r)&&(r=r.replace(g7,_7)),e.language)return`"${r}"@${e.language}`;if(this._lineMode){if(e.datatype.value===Fl.string)return`"${r}"`}else switch(e.datatype.value){case Fl.string:return`"${r}"`;case Fl.boolean:if(r==="true"||r==="false")return r;break;case Fl.integer:if(/^[+-]?\d+$/.test(r))return r;break;case Fl.decimal:if(/^[+-]?\d*\.\d+$/.test(r))return r;break;case Fl.double:if(/^[+-]?(?:\d+\.\d*|\.?\d+)[eE][+-]?\d+$/.test(r))return r;break}return`"${r}"^^${this._encodeIriOrBlank(e.datatype)}`}_encodePredicate(e){return e.value===KRe.type?"a":this._encodeIriOrBlank(e)}_encodeObject(e){switch(e.termType){case"Quad":return this._encodeQuad(e);case"Literal":return this._encodeLiteral(e);default:return this._encodeIriOrBlank(e)}}_encodeQuad({subject:e,predicate:r,object:n,graph:a}){return`<<${this._encodeSubject(e)} ${this._encodePredicate(r)} ${this._encodeObject(n)}${Tb(a)?"":` ${this._encodeIriOrBlank(a)}`}>>`}_blockedWrite(){throw new Error("Cannot write because the writer has been closed.")}addQuad(e,r,n,a,s){n===void 0?this._writeQuad(e.subject,e.predicate,e.object,e.graph,r):typeof a=="function"?this._writeQuad(e,r,n,Yp,a):this._writeQuad(e,r,n,a||Yp,s)}addQuads(e){for(let r=0;rthis.quadToString(r.subject,r.predicate,r.object,r.graph)).join("")}_encodeSubject(e){return e.termType==="Quad"?this._encodeQuad(e):this._encodeIriOrBlank(e)}_encodeIriOrBlank(e){if(e.termType!=="NamedNode")return this._lists&&e.value in this._lists&&(e=this.list(this._lists[e.value])),"id"in e?e.id:`_:${e.value}`;let r=e.value;this._baseMatcher&&this._baseMatcher.test(r)&&(r=r.substr(this._baseLength)),m7.test(r)&&(r=r.replace(g7,_7));const n=this._prefixRegex.exec(r);return n?n[1]?this._prefixIRIs[n[1]]+n[2]:r:`<${r}>`}_encodeLiteral(e){let r=e.value;if(m7.test(r)&&(r=r.replace(g7,_7)),e.language)return`"${r}"@${e.language}`;if(this._lineMode){if(e.datatype.value===Ml.string)return`"${r}"`}else switch(e.datatype.value){case Ml.string:return`"${r}"`;case Ml.boolean:if(r==="true"||r==="false")return r;break;case Ml.integer:if(/^[+-]?\d+$/.test(r))return r;break;case Ml.decimal:if(/^[+-]?\d*\.\d+$/.test(r))return r;break;case Ml.double:if(/^[+-]?(?:\d+\.\d*|\.?\d+)[eE][+-]?\d+$/.test(r))return r;break}return`"${r}"^^${this._encodeIriOrBlank(e.datatype)}`}_encodePredicate(e){return e.value===WRe.type?"a":this._encodeIriOrBlank(e)}_encodeObject(e){switch(e.termType){case"Quad":return this._encodeQuad(e);case"Literal":return this._encodeLiteral(e);default:return this._encodeIriOrBlank(e)}}_encodeQuad({subject:e,predicate:r,object:n,graph:a}){return`<<${this._encodeSubject(e)} ${this._encodePredicate(r)} ${this._encodeObject(n)}${Tb(a)?"":` ${this._encodeIriOrBlank(a)}`}>>`}_blockedWrite(){throw new Error("Cannot write because the writer has been closed.")}addQuad(e,r,n,a,s){n===void 0?this._writeQuad(e.subject,e.predicate,e.object,e.graph,r):typeof a=="function"?this._writeQuad(e,r,n,Yp,a):this._writeQuad(e,r,n,a||Yp,s)}addQuads(e){for(let r=0;r. @@ -267,7 +267,7 @@ ${o.map(l=>l.message).join(` ]`)}}list(e){const r=e&&e.length||0,n=new Array(r);for(let a=0;a{r=null,e(n,a)});if(this._endStream)try{return this._outputStream.end(r)}catch{}r&&r()}};function _7(t){let e=JRe[t];return e===void 0&&(t.length===1?(e=t.charCodeAt(0).toString(16),e="\\u0000".substr(0,6-e.length)+e):(e=((t.charCodeAt(0)-55296)*1024+t.charCodeAt(1)+9216).toString(16),e="\\U00000000".substr(0,10-e.length)+e)),e}function b7(t){return t.replace(/[\]\/\(\)\*\+\?\.\\\$]/g,"\\$&")}let n4=class{constructor(e,r){this._size=0,this._graphs=Object.create(null),this._id=0,this._ids=Object.create(null),this._entities=Object.create(null),this._blankNodeIndex=0,!r&&e&&!e[0]&&(r=e,e=null),r=r||{},this._factory=r.factory||_u,e&&this.addQuads(e)}_termFromId(e,r){if(e[0]==="."){const n=this._entities,a=e.split(".");return this._factory.quad(this._termFromId(n[a[1]]),this._termFromId(n[a[2]]),this._termFromId(n[a[3]]),a[4]&&this._termFromId(n[a[4]]))}return Dc(e,r)}_termToNumericId(e){if(e.termType==="Quad"){const r=this._termToNumericId(e.subject),n=this._termToNumericId(e.predicate),a=this._termToNumericId(e.object);let s;return r&&n&&a&&(Tb(e.graph)||(s=this._termToNumericId(e.graph)))&&this._ids[s?`.${r}.${n}.${a}.${s}`:`.${r}.${n}.${a}`]}return this._ids[Jn(e)]}_termToNewNumericId(e){const r=e&&e.termType==="Quad"?`.${this._termToNewNumericId(e.subject)}.${this._termToNewNumericId(e.predicate)}.${this._termToNewNumericId(e.object)}${Tb(e.graph)?"":`.${this._termToNewNumericId(e.graph)}`}`:Jn(e);return this._ids[r]||(this._ids[this._entities[++this._id]=r]=this._id)}get size(){let e=this._size;if(e!==null)return e;e=0;const r=this._graphs;let n,a;for(const s in r)for(const o in n=r[s].subjects)for(const u in a=n[o])e+=Object.keys(a[u]).length;return this._size=e}_addToIndex(e,r,n,a){const s=e[r]||(e[r]={}),o=s[n]||(s[n]={}),u=a in o;return u||(o[a]=null),!u}_removeFromIndex(e,r,n,a){const s=e[r],o=s[n];delete o[a];for(const u in o)return;delete s[n];for(const u in s)return;delete e[r]}*_findInIndex(e,r,n,a,s,o,u,c){let l,d,f;const h=this._entities,p=this._termFromId(c,this._factory),m={subject:null,predicate:null,object:null};r&&((l=e,e={})[r]=l[r]);for(const y in e)if(d=e[y]){m[s]=this._termFromId(h[y],this._factory),n&&((l=d,d={})[n]=l[n]);for(const g in d)if(f=d[g]){m[o]=this._termFromId(h[g],this._factory);const b=a?a in f?[a]:[]:Object.keys(f);for(let v=0;v{n in r||(r[n]=!0,e(this._termFromId(this._entities[n],this._factory)))}}add(e){return this.addQuad(e),this}addQuad(e,r,n,a){r||(a=e.graph,n=e.object,r=e.predicate,e=e.subject),a=Jn(a);let s=this._graphs[a];s||(s=this._graphs[a]={subjects:{},predicates:{},objects:{}},Object.freeze(s)),e=this._termToNewNumericId(e),r=this._termToNewNumericId(r),n=this._termToNewNumericId(n);const o=this._addToIndex(s.subjects,e,r,n);return this._addToIndex(s.predicates,r,n,e),this._addToIndex(s.objects,n,e,r),this._size=null,o}addQuads(e){for(let r=0;r{this.addQuad(r)}),e}removeQuad(e,r,n,a){r||(a=e.graph,n=e.object,r=e.predicate,e=e.subject),a=Jn(a);const s=this._graphs;let o,u,c;if(!(e=e&&this._termToNumericId(e))||!(r=r&&this._termToNumericId(r))||!(n=n&&this._termToNumericId(n))||!(o=s[a])||!(u=o.subjects[e])||!(c=u[r])||!(n in c))return!1;this._removeFromIndex(o.subjects,e,r,n),this._removeFromIndex(o.predicates,r,n,e),this._removeFromIndex(o.objects,n,e,r),this._size!==null&&this._size--;for(e in o.subjects)return!0;return delete s[a],!0}removeQuads(e){for(let r=0;r{this.removeQuad(r)}),e}removeMatches(e,r,n,a){const s=new Pt.Readable({objectMode:!0});return s._read=()=>{for(const o of this.readQuads(e,r,n,a))s.push(o);s.push(null)},this.remove(s)}deleteGraph(e){return this.removeMatches(null,null,null,e)}getQuads(e,r,n,a){return[...this.readQuads(e,r,n,a)]}*readQuads(e,r,n,a){a=a&&Jn(a);const s=this._getGraphs(a);let o,u,c,l;if(!(e&&!(u=this._termToNumericId(e))||r&&!(c=this._termToNumericId(r))||n&&!(l=this._termToNumericId(n))))for(const d in s)(o=s[d])&&(u?l?yield*this._findInIndex(o.objects,l,u,c,"object","subject","predicate",d):yield*this._findInIndex(o.subjects,u,c,null,"subject","predicate","object",d):c?yield*this._findInIndex(o.predicates,c,l,null,"predicate","object","subject",d):l?yield*this._findInIndex(o.objects,l,null,null,"object","subject","predicate",d):yield*this._findInIndex(o.subjects,null,null,null,"subject","predicate","object",d))}match(e,r,n,a){return new YRe(this,e,r,n,a)}countQuads(e,r,n,a){a=a&&Jn(a);const s=this._getGraphs(a);let o=0,u,c,l,d;if(e&&!(c=this._termToNumericId(e))||r&&!(l=this._termToNumericId(r))||n&&!(d=this._termToNumericId(n)))return 0;for(const f in s)(u=s[f])&&(e?n?o+=this._countInIndex(u.objects,d,c,l):o+=this._countInIndex(u.subjects,c,l,d):r?o+=this._countInIndex(u.predicates,l,d,c):o+=this._countInIndex(u.objects,d,c,l));return o}forEach(e,r,n,a,s){this.some(o=>(e(o),!1),r,n,a,s)}every(e,r,n,a,s){let o=!1;const u=!this.some(c=>(o=!0,!e(c)),r,n,a,s);return o&&u}some(e,r,n,a,s){for(const o of this.readQuads(r,n,a,s))if(e(o))return!0;return!1}getSubjects(e,r,n){const a=[];return this.forSubjects(s=>{a.push(s)},e,r,n),a}forSubjects(e,r,n,a){a=a&&Jn(a);const s=this._getGraphs(a);let o,u,c;if(e=this._uniqueEntities(e),!(r&&!(u=this._termToNumericId(r))||n&&!(c=this._termToNumericId(n))))for(a in s)(o=s[a])&&(u?c?this._loopBy2Keys(o.predicates,u,c,e):this._loopByKey1(o.subjects,u,e):c?this._loopByKey0(o.objects,c,e):this._loop(o.subjects,e))}getPredicates(e,r,n){const a=[];return this.forPredicates(s=>{a.push(s)},e,r,n),a}forPredicates(e,r,n,a){a=a&&Jn(a);const s=this._getGraphs(a);let o,u,c;if(e=this._uniqueEntities(e),!(r&&!(u=this._termToNumericId(r))||n&&!(c=this._termToNumericId(n))))for(a in s)(o=s[a])&&(u?c?this._loopBy2Keys(o.objects,c,u,e):this._loopByKey0(o.subjects,u,e):c?this._loopByKey1(o.predicates,c,e):this._loop(o.predicates,e))}getObjects(e,r,n){const a=[];return this.forObjects(s=>{a.push(s)},e,r,n),a}forObjects(e,r,n,a){a=a&&Jn(a);const s=this._getGraphs(a);let o,u,c;if(e=this._uniqueEntities(e),!(r&&!(u=this._termToNumericId(r))||n&&!(c=this._termToNumericId(n))))for(a in s)(o=s[a])&&(u?c?this._loopBy2Keys(o.subjects,u,c,e):this._loopByKey1(o.objects,u,e):c?this._loopByKey0(o.predicates,c,e):this._loop(o.objects,e))}getGraphs(e,r,n){const a=[];return this.forGraphs(s=>{a.push(s)},e,r,n),a}forGraphs(e,r,n,a){for(const s in this._graphs)this.some(o=>(e(o.graph),!0),r,n,a,s)}createBlankNode(e){let r,n;if(e)for(r=e=`_:${e}`,n=1;this._ids[r];)r=e+n++;else do r=`_:b${this._blankNodeIndex++}`;while(this._ids[r]);return this._ids[r]=++this._id,this._entities[this._id]=r,this._factory.blankNode(r.substr(2))}extractLists({remove:e=!1,ignoreErrors:r=!1}={}){const n={},a=r?()=>!0:(u,c)=>{throw new Error(`${u.value} ${c}`)},s=this.getQuads(null,Cn.rdf.rest,Cn.rdf.nil,null),o=e?[...s]:[];return s.forEach(u=>{const c=[];let l=!1,d,f;const h=u.graph;let p=u.subject;for(;p&&!l;){const m=this.getQuads(null,null,p,null),y=this.getQuads(p,null,null,null);let g,b=null,v=null,_=null;for(let w=0;w{switch(s){case"data":n=o;break;case"end":a=o;break}}},(s,o)=>{s&&this.emit("error",s)||o&&this.push(o)},(s,o)=>{this.emit("prefix",s,o)}),this._transform=(s,o,u)=>{n(s),u()},this._flush=s=>{a(),s()}}import(e){return e.on("data",r=>{this.write(r)}),e.on("end",()=>{this.end()}),e.on("error",r=>{this.emit("error",r)}),this}},EZ=class extends Pt.Transform{constructor(e){super({encoding:"utf8",writableObjectMode:!0});const r=this._writer=new r4({write:(n,a,s)=>{this.push(n),s&&s()},end:n=>{this.push(null),n&&n()}},e);this._transform=(n,a,s)=>{r.addQuad(n,s)},this._flush=n=>{r.end(n)}}import(e){return e.on("data",r=>{this.write(r)}),e.on("end",()=>{this.end()}),e.on("error",r=>{this.emit("error",r)}),e.on("prefix",(r,n)=>{this._writer.addPrefix(r,n)}),this}};const ZRe={Lexer:YC,Parser:mT,Writer:r4,Store:n4,StreamParser:TZ,StreamWriter:EZ,Util:wZ,DataFactory:_u,Term:Ts,NamedNode:yT,Literal:Od,BlankNode:ZC,Variable:e4,DefaultGraph:t4,Quad:Sb,Triple:Sb,termFromId:Dc,termToId:Jn},exe=Object.freeze(Object.defineProperty({__proto__:null,BlankNode:ZC,DataFactory:_u,DefaultGraph:t4,Lexer:YC,Literal:Od,NamedNode:yT,Parser:mT,Quad:Sb,Store:n4,StreamParser:TZ,StreamWriter:EZ,Term:Ts,Triple:Sb,Util:wZ,Variable:e4,Writer:r4,default:ZRe,termFromId:Dc,termToId:Jn},Symbol.toStringTag,{value:"Module"})),Du=vD(exe);var v7;function txe(){if(v7)return Gp;v7=1,Object.defineProperty(Gp,"__esModule",{value:!0}),Gp.ActorRdfParseN3=void 0;const t=Mf(),e=Du;let r=class extends t.ActorRdfParseFixedMediaTypes{constructor(a){super(a)}async runHandle(a,s,o){var c;a.data.on("error",l=>u.emit("error",l));const u=a.data.pipe(new e.StreamParser({baseIRI:(c=a.metadata)==null?void 0:c.baseIRI,format:s.endsWith("n3")?s:`${s}*`}));return{data:u,metadata:{triples:s==="text/turtle"||s==="application/n-triples"||s==="text/n3"}}}};return Gp.ActorRdfParseN3=r,Gp}var w7;function rxe(){return w7||(w7=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(txe(),t)}(wO)),wO}var AO={},e0={},AZ={},Xd={},el={},OZ={};(function(t){/** +`),this._subject=null),this._write=this._blockedWrite;let r=e&&((n,a)=>{r=null,e(n,a)});if(this._endStream)try{return this._outputStream.end(r)}catch{}r&&r()}};function _7(t){let e=KRe[t];return e===void 0&&(t.length===1?(e=t.charCodeAt(0).toString(16),e="\\u0000".substr(0,6-e.length)+e):(e=((t.charCodeAt(0)-55296)*1024+t.charCodeAt(1)+9216).toString(16),e="\\U00000000".substr(0,10-e.length)+e)),e}function b7(t){return t.replace(/[\]\/\(\)\*\+\?\.\\\$]/g,"\\$&")}let n4=class{constructor(e,r){this._size=0,this._graphs=Object.create(null),this._id=0,this._ids=Object.create(null),this._entities=Object.create(null),this._blankNodeIndex=0,!r&&e&&!e[0]&&(r=e,e=null),r=r||{},this._factory=r.factory||_u,e&&this.addQuads(e)}_termFromId(e,r){if(e[0]==="."){const n=this._entities,a=e.split(".");return this._factory.quad(this._termFromId(n[a[1]]),this._termFromId(n[a[2]]),this._termFromId(n[a[3]]),a[4]&&this._termFromId(n[a[4]]))}return Dc(e,r)}_termToNumericId(e){if(e.termType==="Quad"){const r=this._termToNumericId(e.subject),n=this._termToNumericId(e.predicate),a=this._termToNumericId(e.object);let s;return r&&n&&a&&(Tb(e.graph)||(s=this._termToNumericId(e.graph)))&&this._ids[s?`.${r}.${n}.${a}.${s}`:`.${r}.${n}.${a}`]}return this._ids[Jn(e)]}_termToNewNumericId(e){const r=e&&e.termType==="Quad"?`.${this._termToNewNumericId(e.subject)}.${this._termToNewNumericId(e.predicate)}.${this._termToNewNumericId(e.object)}${Tb(e.graph)?"":`.${this._termToNewNumericId(e.graph)}`}`:Jn(e);return this._ids[r]||(this._ids[this._entities[++this._id]=r]=this._id)}get size(){let e=this._size;if(e!==null)return e;e=0;const r=this._graphs;let n,a;for(const s in r)for(const o in n=r[s].subjects)for(const u in a=n[o])e+=Object.keys(a[u]).length;return this._size=e}_addToIndex(e,r,n,a){const s=e[r]||(e[r]={}),o=s[n]||(s[n]={}),u=a in o;return u||(o[a]=null),!u}_removeFromIndex(e,r,n,a){const s=e[r],o=s[n];delete o[a];for(const u in o)return;delete s[n];for(const u in s)return;delete e[r]}*_findInIndex(e,r,n,a,s,o,u,c){let l,d,f;const h=this._entities,p=this._termFromId(c,this._factory),m={subject:null,predicate:null,object:null};r&&((l=e,e={})[r]=l[r]);for(const y in e)if(d=e[y]){m[s]=this._termFromId(h[y],this._factory),n&&((l=d,d={})[n]=l[n]);for(const g in d)if(f=d[g]){m[o]=this._termFromId(h[g],this._factory);const b=a?a in f?[a]:[]:Object.keys(f);for(let v=0;v{n in r||(r[n]=!0,e(this._termFromId(this._entities[n],this._factory)))}}add(e){return this.addQuad(e),this}addQuad(e,r,n,a){r||(a=e.graph,n=e.object,r=e.predicate,e=e.subject),a=Jn(a);let s=this._graphs[a];s||(s=this._graphs[a]={subjects:{},predicates:{},objects:{}},Object.freeze(s)),e=this._termToNewNumericId(e),r=this._termToNewNumericId(r),n=this._termToNewNumericId(n);const o=this._addToIndex(s.subjects,e,r,n);return this._addToIndex(s.predicates,r,n,e),this._addToIndex(s.objects,n,e,r),this._size=null,o}addQuads(e){for(let r=0;r{this.addQuad(r)}),e}removeQuad(e,r,n,a){r||(a=e.graph,n=e.object,r=e.predicate,e=e.subject),a=Jn(a);const s=this._graphs;let o,u,c;if(!(e=e&&this._termToNumericId(e))||!(r=r&&this._termToNumericId(r))||!(n=n&&this._termToNumericId(n))||!(o=s[a])||!(u=o.subjects[e])||!(c=u[r])||!(n in c))return!1;this._removeFromIndex(o.subjects,e,r,n),this._removeFromIndex(o.predicates,r,n,e),this._removeFromIndex(o.objects,n,e,r),this._size!==null&&this._size--;for(e in o.subjects)return!0;return delete s[a],!0}removeQuads(e){for(let r=0;r{this.removeQuad(r)}),e}removeMatches(e,r,n,a){const s=new Pt.Readable({objectMode:!0});return s._read=()=>{for(const o of this.readQuads(e,r,n,a))s.push(o);s.push(null)},this.remove(s)}deleteGraph(e){return this.removeMatches(null,null,null,e)}getQuads(e,r,n,a){return[...this.readQuads(e,r,n,a)]}*readQuads(e,r,n,a){a=a&&Jn(a);const s=this._getGraphs(a);let o,u,c,l;if(!(e&&!(u=this._termToNumericId(e))||r&&!(c=this._termToNumericId(r))||n&&!(l=this._termToNumericId(n))))for(const d in s)(o=s[d])&&(u?l?yield*this._findInIndex(o.objects,l,u,c,"object","subject","predicate",d):yield*this._findInIndex(o.subjects,u,c,null,"subject","predicate","object",d):c?yield*this._findInIndex(o.predicates,c,l,null,"predicate","object","subject",d):l?yield*this._findInIndex(o.objects,l,null,null,"object","subject","predicate",d):yield*this._findInIndex(o.subjects,null,null,null,"subject","predicate","object",d))}match(e,r,n,a){return new XRe(this,e,r,n,a)}countQuads(e,r,n,a){a=a&&Jn(a);const s=this._getGraphs(a);let o=0,u,c,l,d;if(e&&!(c=this._termToNumericId(e))||r&&!(l=this._termToNumericId(r))||n&&!(d=this._termToNumericId(n)))return 0;for(const f in s)(u=s[f])&&(e?n?o+=this._countInIndex(u.objects,d,c,l):o+=this._countInIndex(u.subjects,c,l,d):r?o+=this._countInIndex(u.predicates,l,d,c):o+=this._countInIndex(u.objects,d,c,l));return o}forEach(e,r,n,a,s){this.some(o=>(e(o),!1),r,n,a,s)}every(e,r,n,a,s){let o=!1;const u=!this.some(c=>(o=!0,!e(c)),r,n,a,s);return o&&u}some(e,r,n,a,s){for(const o of this.readQuads(r,n,a,s))if(e(o))return!0;return!1}getSubjects(e,r,n){const a=[];return this.forSubjects(s=>{a.push(s)},e,r,n),a}forSubjects(e,r,n,a){a=a&&Jn(a);const s=this._getGraphs(a);let o,u,c;if(e=this._uniqueEntities(e),!(r&&!(u=this._termToNumericId(r))||n&&!(c=this._termToNumericId(n))))for(a in s)(o=s[a])&&(u?c?this._loopBy2Keys(o.predicates,u,c,e):this._loopByKey1(o.subjects,u,e):c?this._loopByKey0(o.objects,c,e):this._loop(o.subjects,e))}getPredicates(e,r,n){const a=[];return this.forPredicates(s=>{a.push(s)},e,r,n),a}forPredicates(e,r,n,a){a=a&&Jn(a);const s=this._getGraphs(a);let o,u,c;if(e=this._uniqueEntities(e),!(r&&!(u=this._termToNumericId(r))||n&&!(c=this._termToNumericId(n))))for(a in s)(o=s[a])&&(u?c?this._loopBy2Keys(o.objects,c,u,e):this._loopByKey0(o.subjects,u,e):c?this._loopByKey1(o.predicates,c,e):this._loop(o.predicates,e))}getObjects(e,r,n){const a=[];return this.forObjects(s=>{a.push(s)},e,r,n),a}forObjects(e,r,n,a){a=a&&Jn(a);const s=this._getGraphs(a);let o,u,c;if(e=this._uniqueEntities(e),!(r&&!(u=this._termToNumericId(r))||n&&!(c=this._termToNumericId(n))))for(a in s)(o=s[a])&&(u?c?this._loopBy2Keys(o.subjects,u,c,e):this._loopByKey1(o.objects,u,e):c?this._loopByKey0(o.predicates,c,e):this._loop(o.objects,e))}getGraphs(e,r,n){const a=[];return this.forGraphs(s=>{a.push(s)},e,r,n),a}forGraphs(e,r,n,a){for(const s in this._graphs)this.some(o=>(e(o.graph),!0),r,n,a,s)}createBlankNode(e){let r,n;if(e)for(r=e=`_:${e}`,n=1;this._ids[r];)r=e+n++;else do r=`_:b${this._blankNodeIndex++}`;while(this._ids[r]);return this._ids[r]=++this._id,this._entities[this._id]=r,this._factory.blankNode(r.substr(2))}extractLists({remove:e=!1,ignoreErrors:r=!1}={}){const n={},a=r?()=>!0:(u,c)=>{throw new Error(`${u.value} ${c}`)},s=this.getQuads(null,Cn.rdf.rest,Cn.rdf.nil,null),o=e?[...s]:[];return s.forEach(u=>{const c=[];let l=!1,d,f;const h=u.graph;let p=u.subject;for(;p&&!l;){const m=this.getQuads(null,null,p,null),y=this.getQuads(p,null,null,null);let g,b=null,v=null,_=null;for(let w=0;w{switch(s){case"data":n=o;break;case"end":a=o;break}}},(s,o)=>{s&&this.emit("error",s)||o&&this.push(o)},(s,o)=>{this.emit("prefix",s,o)}),this._transform=(s,o,u)=>{n(s),u()},this._flush=s=>{a(),s()}}import(e){return e.on("data",r=>{this.write(r)}),e.on("end",()=>{this.end()}),e.on("error",r=>{this.emit("error",r)}),this}},EZ=class extends Pt.Transform{constructor(e){super({encoding:"utf8",writableObjectMode:!0});const r=this._writer=new r4({write:(n,a,s)=>{this.push(n),s&&s()},end:n=>{this.push(null),n&&n()}},e);this._transform=(n,a,s)=>{r.addQuad(n,s)},this._flush=n=>{r.end(n)}}import(e){return e.on("data",r=>{this.write(r)}),e.on("end",()=>{this.end()}),e.on("error",r=>{this.emit("error",r)}),e.on("prefix",(r,n)=>{this._writer.addPrefix(r,n)}),this}};const YRe={Lexer:YC,Parser:yT,Writer:r4,Store:n4,StreamParser:TZ,StreamWriter:EZ,Util:wZ,DataFactory:_u,Term:Ts,NamedNode:pT,Literal:Ad,BlankNode:ZC,Variable:e4,DefaultGraph:t4,Quad:Sb,Triple:Sb,termFromId:Dc,termToId:Jn},ZRe=Object.freeze(Object.defineProperty({__proto__:null,BlankNode:ZC,DataFactory:_u,DefaultGraph:t4,Lexer:YC,Literal:Ad,NamedNode:pT,Parser:yT,Quad:Sb,Store:n4,StreamParser:TZ,StreamWriter:EZ,Term:Ts,Triple:Sb,Util:wZ,Variable:e4,Writer:r4,default:YRe,termFromId:Dc,termToId:Jn},Symbol.toStringTag,{value:"Module"})),Du=vD(ZRe);var v7;function exe(){if(v7)return Gp;v7=1,Object.defineProperty(Gp,"__esModule",{value:!0}),Gp.ActorRdfParseN3=void 0;const t=Mf(),e=Du;let r=class extends t.ActorRdfParseFixedMediaTypes{constructor(a){super(a)}async runHandle(a,s,o){var c;a.data.on("error",l=>u.emit("error",l));const u=a.data.pipe(new e.StreamParser({baseIRI:(c=a.metadata)==null?void 0:c.baseIRI,format:s.endsWith("n3")?s:`${s}*`}));return{data:u,metadata:{triples:s==="text/turtle"||s==="application/n-triples"||s==="text/n3"}}}};return Gp.ActorRdfParseN3=r,Gp}var w7;function txe(){return w7||(w7=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(exe(),t)}(vO)),vO}var EO={},e0={},AZ={},Jd={},el={},OZ={};(function(t){/** * Character classes and associated utilities for the 5th edition of XML 1.0. * * @author Louis-Dominique Dubeau @@ -288,25 +288,25 @@ ${o.map(l=>l.message).join(` * @author Louis-Dominique Dubeau * @license MIT * @copyright Louis-Dominique Dubeau - */Object.defineProperty(t,"__esModule",{value:!0}),t.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",t.NC_NAME_CHAR="-"+t.NC_NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",t.NC_NAME_START_CHAR_RE=new RegExp("^["+t.NC_NAME_START_CHAR+"]$","u"),t.NC_NAME_CHAR_RE=new RegExp("^["+t.NC_NAME_CHAR+"]$","u"),t.NC_NAME_RE=new RegExp("^["+t.NC_NAME_START_CHAR+"]["+t.NC_NAME_CHAR+"]*$","u");function e(n){return n>=65&&n<=90||n===95||n>=97&&n<=122||n>=192&&n<=214||n>=216&&n<=246||n>=248&&n<=767||n>=880&&n<=893||n>=895&&n<=8191||n>=8204&&n<=8205||n>=8304&&n<=8591||n>=11264&&n<=12271||n>=12289&&n<=55295||n>=63744&&n<=64975||n>=65008&&n<=65533||n>=65536&&n<=983039}t.isNCNameStartChar=e;function r(n){return e(n)||n===45||n===46||n>=48&&n<=57||n===183||n>=768&&n<=879||n>=8255&&n<=8256}t.isNCNameChar=r})(xZ);Object.defineProperty(el,"__esModule",{value:!0});el.SaxesParser=el.EVENTS=void 0;const Ff=OZ,nxe=RZ,i4=xZ;var hi=Ff.isS,ixe=Ff.isChar,t0=Ff.isNameStartChar,S7=Ff.isNameChar,IZ=Ff.S_LIST,axe=Ff.NAME_RE,sxe=nxe.isChar,oxe=i4.isNCNameStartChar,uxe=i4.isNCNameChar,cxe=i4.NC_NAME_RE;const Hw="http://www.w3.org/XML/1998/namespace",ud="http://www.w3.org/2000/xmlns/",lxe={__proto__:null,xml:Hw,xmlns:ud},dxe={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},Lr=-1,Wa=-2,T7=0,fxe=1,OO=2,hxe=3,Bl=4,pxe=5,yxe=6,mxe=7,RO=8,gxe=9,_xe=10,bxe=11,vxe=12,zn=13,Vv=14,xO=15,wxe=16,IO=17,Sxe=18,Txe=19,PO=20,Exe=21,Axe=22,Oxe=23,E7=24,NO=25,Hv=26,A7=27,Rxe=28,xxe=29,O7=30,Ixe=31,Pxe=32,Zu=33,Nxe=34,DO=35,r0=36,CO=37,Dxe=38,R7=39,x7=40,Cxe=41,I7=42,Lxe=43,jxe=44,LO=9,Ra=10,jO=13,P7=32,N7=33,PZ=34,x_=38,NZ=39,Qv=45,zv=47,Mxe=59,Zo=60,Xl=61,ln=62,Tn=63,DZ=91,Yl=93,D7=133,C7=8232,Gv=t=>t===PZ||t===NZ,CZ=[PZ,NZ],Fxe=[...CZ,DZ,ln],Bxe=[...CZ,Zo,Yl],qxe=[Xl,Tn,...IZ],$xe=[...IZ,ln,x_,Zo];function WP(t,e,r){switch(e){case"xml":r!==Hw&&t.fail(`xml prefix must be bound to ${Hw}.`);break;case"xmlns":r!==ud&&t.fail(`xmlns prefix must be bound to ${ud}.`);break}switch(r){case ud:t.fail(e===""?`the default namespace may not be set to ${r}.`:`may not assign a prefix (even "xmlns") to the URI ${ud}.`);break;case Hw:switch(e){case"xml":break;case"":t.fail(`the default namespace may not be set to ${r}.`);break;default:t.fail("may not assign the xml namespace to another prefix.")}break}}function Uxe(t,e){for(const r of Object.keys(e))WP(t,r,e[r])}const kxe=t=>cxe.test(t),Vxe=t=>axe.test(t),ec=0,L7=1,MO=2;el.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"];const j7={xmldecl:"xmldeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"};class Hxe{get closed(){return this._closed}constructor(e){this.opt=e??{},this.fragmentOpt=!!this.opt.fragment;const r=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,r){this.nameStartCheck=oxe,this.nameCheck=uxe,this.isName=kxe,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},lxe);const n=this.opt.additionalNamespaces;n!=null&&(Uxe(this,n),Object.assign(this.ns,n))}else this.nameStartCheck=t0,this.nameCheck=S7,this.isName=Vxe,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}_init(){var e;this.openWakaBang="",this.text="",this.name="",this.piTarget="",this.entity="",this.q=null,this.tags=[],this.tag=null,this.topNS=null,this.chunk="",this.chunkPosition=0,this.i=0,this.prevI=0,this.carriedFromPrevious=void 0,this.forbiddenState=ec,this.attribList=[];const{fragmentOpt:r}=this;this.state=r?zn:T7,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=r,this.xmlDeclPossible=!r,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:n}=this.opt;if(n===void 0){if(this.opt.forceXMLVersion===!0)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");n="1.0"}this.setXMLVersion(n),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(dxe),(e=this.readyHandler)===null||e===void 0||e.call(this)}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(e,r){this[j7[e]]=r}off(e){this[j7[e]]=void 0}makeError(e){var r;let n=(r=this.fileName)!==null&&r!==void 0?r:"";return this.trackPosition&&(n.length>0&&(n+=":"),n+=`${this.line}:${this.column}`),n.length>0&&(n+=": "),new Error(n+e)}fail(e){const r=this.makeError(e),n=this.errorHandler;if(n===void 0)throw r;return n(r),this}write(e){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");let r=!1;e===null?(r=!0,e=""):typeof e=="object"&&(e=e.toString()),this.carriedFromPrevious!==void 0&&(e=`${this.carriedFromPrevious}${e}`,this.carriedFromPrevious=void 0);let n=e.length;const a=e.charCodeAt(n-1);!r&&(a===jO||a>=55296&&a<=56319)&&(this.carriedFromPrevious=e[n-1],n--,e=e.slice(0,n));const{stateTable:s}=this;for(this.chunk=e,this.i=0;this.i=e.length)return Lr;const n=e.charCodeAt(r);if(this.column++,n<55296){if(n>=P7||n===LO)return n;switch(n){case Ra:return this.line++,this.column=0,this.positionAtNewLine=this.position,Ra;case jO:return e.charCodeAt(r+1)===Ra&&(this.i=r+2),this.line++,this.column=0,this.positionAtNewLine=this.position,Wa;default:return this.fail("disallowed character."),n}}if(n>56319)return n>=57344&&n<=65533||this.fail("disallowed character."),n;const a=65536+(n-55296)*1024+(e.charCodeAt(r+1)-56320);return this.i=r+2,a>1114111&&this.fail("disallowed character."),a}getCode11(){const{chunk:e,i:r}=this;if(this.prevI=r,this.i=r+1,r>=e.length)return Lr;const n=e.charCodeAt(r);if(this.column++,n<55296){if(n>31&&n<127||n>159&&n!==C7||n===LO)return n;switch(n){case Ra:return this.line++,this.column=0,this.positionAtNewLine=this.position,Ra;case jO:{const s=e.charCodeAt(r+1);(s===Ra||s===D7)&&(this.i=r+2)}case D7:case C7:return this.line++,this.column=0,this.positionAtNewLine=this.position,Wa;default:return this.fail("disallowed character."),n}}if(n>56319)return n>=57344&&n<=65533||this.fail("disallowed character."),n;const a=65536+(n-55296)*1024+(e.charCodeAt(r+1)-56320);return this.i=r+2,a>1114111&&this.fail("disallowed character."),a}getCodeNorm(){const e=this.getCode();return e===Wa?Ra:e}unget(){this.i=this.prevI,this.column--}captureTo(e){let{i:r}=this;const{chunk:n}=this;for(;;){const a=this.getCode(),s=a===Wa,o=s?Ra:a;if(o===Lr||e.includes(o))return this.text+=n.slice(r,this.prevI),o;s&&(this.text+=`${n.slice(r,this.prevI)} + */Object.defineProperty(t,"__esModule",{value:!0}),t.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",t.NC_NAME_CHAR="-"+t.NC_NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",t.NC_NAME_START_CHAR_RE=new RegExp("^["+t.NC_NAME_START_CHAR+"]$","u"),t.NC_NAME_CHAR_RE=new RegExp("^["+t.NC_NAME_CHAR+"]$","u"),t.NC_NAME_RE=new RegExp("^["+t.NC_NAME_START_CHAR+"]["+t.NC_NAME_CHAR+"]*$","u");function e(n){return n>=65&&n<=90||n===95||n>=97&&n<=122||n>=192&&n<=214||n>=216&&n<=246||n>=248&&n<=767||n>=880&&n<=893||n>=895&&n<=8191||n>=8204&&n<=8205||n>=8304&&n<=8591||n>=11264&&n<=12271||n>=12289&&n<=55295||n>=63744&&n<=64975||n>=65008&&n<=65533||n>=65536&&n<=983039}t.isNCNameStartChar=e;function r(n){return e(n)||n===45||n===46||n>=48&&n<=57||n===183||n>=768&&n<=879||n>=8255&&n<=8256}t.isNCNameChar=r})(xZ);Object.defineProperty(el,"__esModule",{value:!0});el.SaxesParser=el.EVENTS=void 0;const Ff=OZ,rxe=RZ,i4=xZ;var hi=Ff.isS,nxe=Ff.isChar,t0=Ff.isNameStartChar,S7=Ff.isNameChar,IZ=Ff.S_LIST,ixe=Ff.NAME_RE,axe=rxe.isChar,sxe=i4.isNCNameStartChar,oxe=i4.isNCNameChar,uxe=i4.NC_NAME_RE;const Hw="http://www.w3.org/XML/1998/namespace",od="http://www.w3.org/2000/xmlns/",cxe={__proto__:null,xml:Hw,xmlns:od},lxe={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},Lr=-1,Wa=-2,T7=0,dxe=1,AO=2,fxe=3,Fl=4,hxe=5,pxe=6,yxe=7,OO=8,mxe=9,gxe=10,_xe=11,bxe=12,zn=13,Vv=14,RO=15,vxe=16,xO=17,wxe=18,Sxe=19,IO=20,Txe=21,Exe=22,Axe=23,E7=24,PO=25,Hv=26,A7=27,Oxe=28,Rxe=29,O7=30,xxe=31,Ixe=32,Zu=33,Pxe=34,NO=35,r0=36,DO=37,Nxe=38,R7=39,x7=40,Dxe=41,I7=42,Cxe=43,Lxe=44,CO=9,Ra=10,LO=13,P7=32,N7=33,PZ=34,x_=38,NZ=39,Qv=45,zv=47,jxe=59,Zo=60,Jl=61,ln=62,Tn=63,DZ=91,Xl=93,D7=133,C7=8232,Gv=t=>t===PZ||t===NZ,CZ=[PZ,NZ],Mxe=[...CZ,DZ,ln],Fxe=[...CZ,Zo,Xl],Bxe=[Jl,Tn,...IZ],qxe=[...IZ,ln,x_,Zo];function WP(t,e,r){switch(e){case"xml":r!==Hw&&t.fail(`xml prefix must be bound to ${Hw}.`);break;case"xmlns":r!==od&&t.fail(`xmlns prefix must be bound to ${od}.`);break}switch(r){case od:t.fail(e===""?`the default namespace may not be set to ${r}.`:`may not assign a prefix (even "xmlns") to the URI ${od}.`);break;case Hw:switch(e){case"xml":break;case"":t.fail(`the default namespace may not be set to ${r}.`);break;default:t.fail("may not assign the xml namespace to another prefix.")}break}}function $xe(t,e){for(const r of Object.keys(e))WP(t,r,e[r])}const Uxe=t=>uxe.test(t),kxe=t=>ixe.test(t),ec=0,L7=1,jO=2;el.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"];const j7={xmldecl:"xmldeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"};class Vxe{get closed(){return this._closed}constructor(e){this.opt=e??{},this.fragmentOpt=!!this.opt.fragment;const r=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,r){this.nameStartCheck=sxe,this.nameCheck=oxe,this.isName=Uxe,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},cxe);const n=this.opt.additionalNamespaces;n!=null&&($xe(this,n),Object.assign(this.ns,n))}else this.nameStartCheck=t0,this.nameCheck=S7,this.isName=kxe,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}_init(){var e;this.openWakaBang="",this.text="",this.name="",this.piTarget="",this.entity="",this.q=null,this.tags=[],this.tag=null,this.topNS=null,this.chunk="",this.chunkPosition=0,this.i=0,this.prevI=0,this.carriedFromPrevious=void 0,this.forbiddenState=ec,this.attribList=[];const{fragmentOpt:r}=this;this.state=r?zn:T7,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=r,this.xmlDeclPossible=!r,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:n}=this.opt;if(n===void 0){if(this.opt.forceXMLVersion===!0)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");n="1.0"}this.setXMLVersion(n),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(lxe),(e=this.readyHandler)===null||e===void 0||e.call(this)}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(e,r){this[j7[e]]=r}off(e){this[j7[e]]=void 0}makeError(e){var r;let n=(r=this.fileName)!==null&&r!==void 0?r:"";return this.trackPosition&&(n.length>0&&(n+=":"),n+=`${this.line}:${this.column}`),n.length>0&&(n+=": "),new Error(n+e)}fail(e){const r=this.makeError(e),n=this.errorHandler;if(n===void 0)throw r;return n(r),this}write(e){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");let r=!1;e===null?(r=!0,e=""):typeof e=="object"&&(e=e.toString()),this.carriedFromPrevious!==void 0&&(e=`${this.carriedFromPrevious}${e}`,this.carriedFromPrevious=void 0);let n=e.length;const a=e.charCodeAt(n-1);!r&&(a===LO||a>=55296&&a<=56319)&&(this.carriedFromPrevious=e[n-1],n--,e=e.slice(0,n));const{stateTable:s}=this;for(this.chunk=e,this.i=0;this.i=e.length)return Lr;const n=e.charCodeAt(r);if(this.column++,n<55296){if(n>=P7||n===CO)return n;switch(n){case Ra:return this.line++,this.column=0,this.positionAtNewLine=this.position,Ra;case LO:return e.charCodeAt(r+1)===Ra&&(this.i=r+2),this.line++,this.column=0,this.positionAtNewLine=this.position,Wa;default:return this.fail("disallowed character."),n}}if(n>56319)return n>=57344&&n<=65533||this.fail("disallowed character."),n;const a=65536+(n-55296)*1024+(e.charCodeAt(r+1)-56320);return this.i=r+2,a>1114111&&this.fail("disallowed character."),a}getCode11(){const{chunk:e,i:r}=this;if(this.prevI=r,this.i=r+1,r>=e.length)return Lr;const n=e.charCodeAt(r);if(this.column++,n<55296){if(n>31&&n<127||n>159&&n!==C7||n===CO)return n;switch(n){case Ra:return this.line++,this.column=0,this.positionAtNewLine=this.position,Ra;case LO:{const s=e.charCodeAt(r+1);(s===Ra||s===D7)&&(this.i=r+2)}case D7:case C7:return this.line++,this.column=0,this.positionAtNewLine=this.position,Wa;default:return this.fail("disallowed character."),n}}if(n>56319)return n>=57344&&n<=65533||this.fail("disallowed character."),n;const a=65536+(n-55296)*1024+(e.charCodeAt(r+1)-56320);return this.i=r+2,a>1114111&&this.fail("disallowed character."),a}getCodeNorm(){const e=this.getCode();return e===Wa?Ra:e}unget(){this.i=this.prevI,this.column--}captureTo(e){let{i:r}=this;const{chunk:n}=this;for(;;){const a=this.getCode(),s=a===Wa,o=s?Ra:a;if(o===Lr||e.includes(o))return this.text+=n.slice(r,this.prevI),o;s&&(this.text+=`${n.slice(r,this.prevI)} `,r=this.i)}}captureToChar(e){let{i:r}=this;const{chunk:n}=this;for(;;){let a=this.getCode();switch(a){case Wa:this.text+=`${n.slice(r,this.prevI)} -`,r=this.i,a=Ra;break;case Lr:return this.text+=n.slice(r),!1}if(a===e)return this.text+=n.slice(r,this.prevI),!0}}captureNameChars(){const{chunk:e,i:r}=this;for(;;){const n=this.getCode();if(n===Lr)return this.name+=e.slice(r),Lr;if(!S7(n))return this.name+=e.slice(r,this.prevI),n===Wa?Ra:n}}skipSpaces(){for(;;){const e=this.getCodeNorm();if(e===Lr||!hi(e))return e}}setXMLVersion(e){this.currentXMLVersion=e,e==="1.0"?(this.isChar=ixe,this.getCode=this.getCode10):(this.isChar=sxe,this.getCode=this.getCode11)}sBegin(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=fxe}sBeginWhitespace(){const e=this.i,r=this.skipSpaces();switch(this.prevI!==e&&(this.xmlDeclPossible=!1),r){case Zo:if(this.state=xO,this.text.length!==0)throw new Error("no-empty text at start");break;case Lr:break;default:this.unget(),this.state=zn,this.xmlDeclPossible=!1}}sDoctype(){var e;const r=this.captureTo(Fxe);switch(r){case ln:{(e=this.doctypeHandler)===null||e===void 0||e.call(this,this.text),this.text="",this.state=zn,this.doctype=!0;break}case Lr:break;default:this.text+=String.fromCodePoint(r),r===DZ?this.state=Bl:Gv(r)&&(this.state=hxe,this.q=r)}}sDoctypeQuote(){const e=this.q;this.captureToChar(e)&&(this.text+=String.fromCodePoint(e),this.q=null,this.state=OO)}sDTD(){const e=this.captureTo(Bxe);e!==Lr&&(this.text+=String.fromCodePoint(e),e===Yl?this.state=OO:e===Zo?this.state=yxe:Gv(e)&&(this.state=pxe,this.q=e))}sDTDQuoted(){const e=this.q;this.captureToChar(e)&&(this.text+=String.fromCodePoint(e),this.state=Bl,this.q=null)}sDTDOpenWaka(){const e=this.getCodeNorm();switch(this.text+=String.fromCodePoint(e),e){case N7:this.state=mxe,this.openWakaBang="";break;case Tn:this.state=bxe;break;default:this.state=Bl}}sDTDOpenWakaBang(){const e=String.fromCodePoint(this.getCodeNorm()),r=this.openWakaBang+=e;this.text+=e,r!=="-"&&(this.state=r==="--"?RO:Bl,this.openWakaBang="")}sDTDComment(){this.captureToChar(Qv)&&(this.text+="-",this.state=gxe)}sDTDCommentEnding(){const e=this.getCodeNorm();this.text+=String.fromCodePoint(e),this.state=e===Qv?_xe:RO}sDTDCommentEnded(){const e=this.getCodeNorm();this.text+=String.fromCodePoint(e),e===ln?this.state=Bl:(this.fail("malformed comment."),this.state=RO)}sDTDPI(){this.captureToChar(Tn)&&(this.text+="?",this.state=vxe)}sDTDPIEnding(){const e=this.getCodeNorm();this.text+=String.fromCodePoint(e),e===ln&&(this.state=Bl)}sText(){this.tags.length!==0?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let{i:e}=this;const{chunk:r}=this;e:for(;;)switch(this.getCode()){case Wa:this.entity+=`${r.slice(e,this.prevI)} -`,e=this.i;break;case Mxe:{const{entityReturnState:n}=this,a=this.entity+r.slice(e,this.prevI);this.state=n;let s;a===""?(this.fail("empty entity name."),s="&;"):(s=this.parseEntity(a),this.entity=""),(n!==zn||this.textHandler!==void 0)&&(this.text+=s);break e}case Lr:this.entity+=r.slice(e);break e}}sOpenWaka(){const e=this.getCode();if(t0(e))this.state=Nxe,this.unget(),this.xmlDeclPossible=!1;else switch(e){case zv:this.state=Lxe,this.xmlDeclPossible=!1;break;case N7:this.state=wxe,this.openWakaBang="",this.xmlDeclPossible=!1;break;case Tn:this.state=Oxe;break;default:this.fail("disallowed character in tag name"),this.state=zn,this.xmlDeclPossible=!1}}sOpenWakaBang(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":!this.sawRoot&&!this.reportedTextBeforeRoot&&(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0),this.state=PO,this.openWakaBang="";break;case"--":this.state=IO,this.openWakaBang="";break;case"DOCTYPE":this.state=OO,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}sComment(){this.captureToChar(Qv)&&(this.state=Sxe)}sCommentEnding(){var e;const r=this.getCodeNorm();r===Qv?(this.state=Txe,(e=this.commentHandler)===null||e===void 0||e.call(this,this.text),this.text=""):(this.text+=`-${String.fromCodePoint(r)}`,this.state=IO)}sCommentEnded(){const e=this.getCodeNorm();e!==ln?(this.fail("malformed comment."),this.text+=`--${String.fromCodePoint(e)}`,this.state=IO):this.state=zn}sCData(){this.captureToChar(Yl)&&(this.state=Exe)}sCDataEnding(){const e=this.getCodeNorm();e===Yl?this.state=Axe:(this.text+=`]${String.fromCodePoint(e)}`,this.state=PO)}sCDataEnding2(){var e;const r=this.getCodeNorm();switch(r){case ln:{(e=this.cdataHandler)===null||e===void 0||e.call(this,this.text),this.text="",this.state=zn;break}case Yl:this.text+="]";break;default:this.text+=`]]${String.fromCodePoint(r)}`,this.state=PO}}sPIFirstChar(){const e=this.getCodeNorm();this.nameStartCheck(e)?(this.piTarget+=String.fromCodePoint(e),this.state=E7):e===Tn||hi(e)?(this.fail("processing instruction without a target."),this.state=e===Tn?Hv:NO):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(e),this.state=E7)}sPIRest(){const{chunk:e,i:r}=this;for(;;){const n=this.getCodeNorm();if(n===Lr){this.piTarget+=e.slice(r);return}if(!this.nameCheck(n)){this.piTarget+=e.slice(r,this.prevI);const a=n===Tn;a||hi(n)?this.piTarget==="xml"?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=a?Zu:A7):this.state=a?Hv:NO:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(n));break}}}sPIBody(){if(this.text.length===0){const e=this.getCodeNorm();e===Tn?this.state=Hv:hi(e)||(this.text=String.fromCodePoint(e))}else this.captureToChar(Tn)&&(this.state=Hv)}sPIEnding(){var e;const r=this.getCodeNorm();if(r===ln){const{piTarget:n}=this;n.toLowerCase()==="xml"&&this.fail("the XML declaration must appear at the start of the document."),(e=this.piHandler)===null||e===void 0||e.call(this,{target:n,body:this.text}),this.piTarget=this.text="",this.state=zn}else r===Tn?this.text+="?":(this.text+=`?${String.fromCodePoint(r)}`,this.state=NO);this.xmlDeclPossible=!1}sXMLDeclNameStart(){const e=this.skipSpaces();if(e===Tn){this.state=Zu;return}e!==Lr&&(this.state=Rxe,this.name=String.fromCodePoint(e))}sXMLDeclName(){const e=this.captureTo(qxe);if(e===Tn){this.state=Zu,this.name+=this.text,this.text="",this.fail("XML declaration is incomplete.");return}if(hi(e)||e===Xl){if(this.name+=this.text,this.text="",!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);break;default:this.fail(`expected one of ${this.xmlDeclExpects.join(", ")}`)}this.state=e===Xl?O7:xxe}}sXMLDeclEq(){const e=this.getCodeNorm();if(e===Tn){this.state=Zu,this.fail("XML declaration is incomplete.");return}hi(e)||(e!==Xl&&this.fail("value required."),this.state=O7)}sXMLDeclValueStart(){const e=this.getCodeNorm();if(e===Tn){this.state=Zu,this.fail("XML declaration is incomplete.");return}hi(e)||(Gv(e)?this.q=e:(this.fail("value must be quoted."),this.q=P7),this.state=Ixe)}sXMLDeclValue(){const e=this.captureTo([this.q,Tn]);if(e===Tn){this.state=Zu,this.text="",this.fail("XML declaration is incomplete.");return}if(e===Lr)return;const r=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];const n=r;this.xmlDecl.version=n,/^1\.[0-9]+$/.test(n)?this.opt.forceXMLVersion||this.setXMLVersion(n):this.fail("version number must match /^1\\.[0-9]+$/.");break}case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(r)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=r;break;case"standalone":r!=="yes"&&r!=="no"&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=r;break}this.name="",this.state=Pxe}sXMLDeclSeparator(){const e=this.getCodeNorm();if(e===Tn){this.state=Zu;return}hi(e)||(this.fail("whitespace required."),this.unget()),this.state=A7}sXMLDeclEnding(){var e;this.getCodeNorm()===ln?(this.piTarget!=="xml"?this.fail("processing instructions are not allowed before root."):this.name!=="version"&&this.xmlDeclExpects.includes("version")&&this.fail("XML declaration must contain a version."),(e=this.xmldeclHandler)===null||e===void 0||e.call(this,this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=zn):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}sOpenTag(){var e;const r=this.captureNameChars();if(r===Lr)return;const n=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=n.ns=Object.create(null)),(e=this.openTagStartHandler)===null||e===void 0||e.call(this,n),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),r){case ln:this.openTag();break;case zv:this.state=DO;break;default:hi(r)||this.fail("disallowed character in tag name."),this.state=r0}}sOpenTagSlash(){this.getCode()===ln?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=r0)}sAttrib(){const e=this.skipSpaces();e!==Lr&&(t0(e)?(this.unget(),this.state=CO):e===ln?this.openTag():e===zv?this.state=DO:this.fail("disallowed character in attribute name."))}sAttribName(){const e=this.captureNameChars();e===Xl?this.state=R7:hi(e)?this.state=Dxe:e===ln?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):e!==Lr&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){const e=this.skipSpaces();switch(e){case Lr:return;case Xl:this.state=R7;break;default:this.fail("attribute without value."),this.text="",this.name="",e===ln?this.openTag():t0(e)?(this.unget(),this.state=CO):(this.fail("disallowed character in attribute name."),this.state=r0)}}sAttribValue(){const e=this.getCodeNorm();Gv(e)?(this.q=e,this.state=x7):hi(e)||(this.fail("unquoted attribute value."),this.state=I7,this.unget())}sAttribValueQuoted(){const{q:e,chunk:r}=this;let{i:n}=this;for(;;)switch(this.getCode()){case e:this.pushAttrib(this.name,this.text+r.slice(n,this.prevI)),this.name=this.text="",this.q=null,this.state=Cxe;return;case x_:this.text+=r.slice(n,this.prevI),this.state=Vv,this.entityReturnState=x7;return;case Ra:case Wa:case LO:this.text+=`${r.slice(n,this.prevI)} `,n=this.i;break;case Zo:this.text+=r.slice(n,this.prevI),this.fail("disallowed character.");return;case Lr:this.text+=r.slice(n);return}}sAttribValueClosed(){const e=this.getCodeNorm();hi(e)?this.state=r0:e===ln?this.openTag():e===zv?this.state=DO:t0(e)?(this.fail("no whitespace between attributes."),this.unget(),this.state=CO):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){const e=this.captureTo($xe);switch(e){case x_:this.state=Vv,this.entityReturnState=I7;break;case Zo:this.fail("disallowed character.");break;case Lr:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",e===ln?this.openTag():this.state=r0}}sCloseTag(){const e=this.captureNameChars();e===ln?this.closeTag():hi(e)?this.state=jxe:e!==Lr&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case ln:this.closeTag();break;case Lr:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:e,forbiddenState:r}=this;const{chunk:n,textHandler:a}=this;e:for(;;)switch(this.getCode()){case Zo:{if(this.state=xO,a!==void 0){const{text:s}=this,o=n.slice(e,this.prevI);s.length!==0?(a(s+o),this.text=""):o.length!==0&&a(o)}r=ec;break e}case x_:this.state=Vv,this.entityReturnState=zn,a!==void 0&&(this.text+=n.slice(e,this.prevI)),r=ec;break e;case Yl:switch(r){case ec:r=L7;break;case L7:r=MO;break;case MO:break;default:throw new Error("impossible state")}break;case ln:r===MO&&this.fail('the string "]]>" is disallowed in char data.'),r=ec;break;case Wa:a!==void 0&&(this.text+=`${n.slice(e,this.prevI)} -`),e=this.i,r=ec;break;case Lr:a!==void 0&&(this.text+=n.slice(e));break e;default:r=ec}this.forbiddenState=r}handleTextOutsideRoot(){let{i:e}=this;const{chunk:r,textHandler:n}=this;let a=!1;e:for(;;){const s=this.getCode();switch(s){case Zo:{if(this.state=xO,n!==void 0){const{text:o}=this,u=r.slice(e,this.prevI);o.length!==0?(n(o+u),this.text=""):u.length!==0&&n(u)}break e}case x_:this.state=Vv,this.entityReturnState=zn,n!==void 0&&(this.text+=r.slice(e,this.prevI)),a=!0;break e;case Wa:n!==void 0&&(this.text+=`${r.slice(e,this.prevI)} -`),e=this.i;break;case Lr:n!==void 0&&(this.text+=r.slice(e));break e;default:hi(s)||(a=!0)}}a&&(!this.sawRoot&&!this.reportedTextBeforeRoot&&(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0))}pushAttribNS(e,r){var n;const{prefix:a,local:s}=this.qname(e),o={name:e,prefix:a,local:s,value:r};if(this.attribList.push(o),(n=this.attributeHandler)===null||n===void 0||n.call(this,o),a==="xmlns"){const u=r.trim();this.currentXMLVersion==="1.0"&&u===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[s]=u,WP(this,s,u)}else if(e==="xmlns"){const u=r.trim();this.topNS[""]=u,WP(this,"",u)}}pushAttribPlain(e,r){var n;const a={name:e,value:r};this.attribList.push(a),(n=this.attributeHandler)===null||n===void 0||n.call(this,a)}end(){var e,r;this.sawRoot||this.fail("document must contain a root element.");const{tags:n}=this;for(;n.length>0;){const s=n.pop();this.fail(`unclosed tag: ${s.name}`)}this.state!==T7&&this.state!==zn&&this.fail("unexpected end.");const{text:a}=this;return a.length!==0&&((e=this.textHandler)===null||e===void 0||e.call(this,a),this.text=""),this._closed=!0,(r=this.endHandler)===null||r===void 0||r.call(this),this._init(),this}resolve(e){var r,n;let a=this.topNS[e];if(a!==void 0)return a;const{tags:s}=this;for(let o=s.length-1;o>=0;o--)if(a=s[o].ns[e],a!==void 0)return a;return a=this.ns[e],a!==void 0?a:(n=(r=this.opt).resolvePrefix)===null||n===void 0?void 0:n.call(r,e)}qname(e){const r=e.indexOf(":");if(r===-1)return{prefix:"",local:e};const n=e.slice(r+1),a=e.slice(0,r);return(a===""||n===""||n.includes(":"))&&this.fail(`malformed name: ${e}.`),{prefix:a,local:n}}processAttribsNS(){var e;const{attribList:r}=this,n=this.tag;{const{prefix:o,local:u}=this.qname(n.name);n.prefix=o,n.local=u;const c=n.uri=(e=this.resolve(o))!==null&&e!==void 0?e:"";o!==""&&(o==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),c===""&&(this.fail(`unbound namespace prefix: ${JSON.stringify(o)}.`),n.uri=o))}if(r.length===0)return;const{attributes:a}=n,s=new Set;for(const o of r){const{name:u,prefix:c,local:l}=o;let d,f;c===""?(d=u==="xmlns"?ud:"",f=u):(d=this.resolve(c),d===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(c)}.`),d=c),f=`{${d}}${l}`),s.has(f)&&this.fail(`duplicate attribute: ${f}.`),s.add(f),o.uri=d,a[u]=o}this.attribList=[]}processAttribsPlain(){const{attribList:e}=this,r=this.tag.attributes;for(const{name:n,value:a}of e)r[n]!==void 0&&this.fail(`duplicate attribute: ${n}.`),r[n]=a;this.attribList=[]}openTag(){var e;this.processAttribs();const{tags:r}=this,n=this.tag;n.isSelfClosing=!1,(e=this.openTagHandler)===null||e===void 0||e.call(this,n),r.push(n),this.state=zn,this.name=""}openSelfClosingTag(){var e,r,n;this.processAttribs();const{tags:a}=this,s=this.tag;s.isSelfClosing=!0,(e=this.openTagHandler)===null||e===void 0||e.call(this,s),(r=this.closeTagHandler)===null||r===void 0||r.call(this,s),(this.tag=(n=a[a.length-1])!==null&&n!==void 0?n:null)===null&&(this.closedRoot=!0),this.state=zn,this.name=""}closeTag(){const{tags:e,name:r}=this;if(this.state=zn,this.name="",r===""){this.fail("weird empty close tag."),this.text+="";return}const n=this.closeTagHandler;let a=e.length;for(;a-- >0;){const s=this.tag=e.pop();if(this.topNS=s.ns,n==null||n(s),s.name===r)break;this.fail("unexpected close tag.")}a===0?this.closedRoot=!0:a<0&&(this.fail(`unmatched closing tag: ${r}.`),this.text+=``)}parseEntity(e){if(e[0]!=="#"){const n=this.ENTITIES[e];return n!==void 0?n:(this.fail(this.isName(e)?"undefined entity.":"disallowed character in entity name."),`&${e};`)}let r=NaN;return e[1]==="x"&&/^#x[0-9a-f]+$/i.test(e)?r=parseInt(e.slice(2),16):/^#[0-9]+$/.test(e)&&(r=parseInt(e.slice(1),10)),this.isChar(r)?String.fromCodePoint(r):(this.fail("malformed character entity."),`&${e};`)}}el.SaxesParser=Hxe;var gT={};Object.defineProperty(gT,"__esModule",{value:!0});gT.ParseError=void 0;class Qxe extends Error{constructor(e,r){const n=e.saxParser;super(e.trackPosition?`Line ${n.line} column ${n.column+1}: ${r}`:r)}}gT.ParseError=Qxe;var LZ={},jZ={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.validateIri=t.IriValidationStrategy=void 0;function e(){const u="[!$&'()*+,;=]",c="%[a-fA-F0-9]{2}",l="([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",d=`${l}\\.${l}\\.${l}\\.${l}`,f="[a-fA-F0-9]{1,4}",h=`(${f}:${f}|${d})`,p=`((${f}:){6}${h}|::(${f}:){5}${h}|(${f})?::(${f}:){4}${h}|((${f}:){0,1}${f})?::(${f}:){3}${h}|((${f}:){0,2}${f})?::(${f}:){2}${h}|((${f}:){0,3}${f})?::${f}:${h}|((${f}:){0,4}${f})?::${h}|((${f}:){0,5}${f})?::${f}|((${f}:){0,6}${f})?::)`,m=`v[a-fA-F0-9]+\\.(${u}|${u}|":)+`,y=`\\[(${p}|${m})\\]`,g="[0-9]*",b="[a-zA-Z][a-zA-Z0-9+\\-.]*",_="[-󰀀-󿿽􀀀-􏿽]",O="[a-zA-Z0-9\\-._~ -퟿豈-﷏ﷰ-￯𐀀-🿽𠀀-𯿽𰀀-𿿽񀀀-񏿽񐀀-񟿽񠀀-񯿽񰀀-񿿽򀀀-򏿽򐀀-򟿽򠀀-򯿽򰀀-򿿽󀀀-󏿽󐀀-󟿽󡀀-󯿽]",L=`(${O}|${c}|${u}|[:@])*`,F=`(${L}|[\\/?])*`,x=`(${L}|${_}|[\\/?])*`,P=`(${L})+`,j=`(${L})*`,N="",V=`${P}(\\/${j})*`,$=`\\/(${P}(\\/${j})*)?`,q=`(\\/${j})*`,H=`(${O}|${c}|${u})*`,X=`(${y}|${d}|${H})`,Te=`(\\/\\/${`(${`(${O}|${c}|${u}|:)*`}@)?${X}(:${g})?`}${q}|${$}|${V}|${N})`,Ne=`^${b}:${Te}(\\?${x})?(#${F})?$`;return new RegExp(Ne,"u")}const r=e(),n=/^[A-Za-z][\d+-.A-Za-z]*:[^\u0000-\u0020"<>\\^`{|}]*$/u;var a;(function(o){o.Strict="strict",o.Pragmatic="pragmatic",o.None="none"})(a=t.IriValidationStrategy||(t.IriValidationStrategy={}));function s(o,u=a.Strict){switch(u){case a.Strict:return r.test(o)?void 0:new Error(`Invalid IRI according to RFC 3987: '${o}'`);case a.Pragmatic:return n.test(o)?void 0:new Error(`Invalid IRI according to RDF Turtle: '${o}'`);case a.None:return;default:return new Error(`Not supported validation strategy "${u}"`)}}t.validateIri=s})(jZ);(function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(jZ,t)})(LZ);Object.defineProperty(Xd,"__esModule",{value:!0});Xd.ParseType=Xd.RdfXmlParser=void 0;const M7=ga,zxe=el,F7=Pt,Gxe=gT,Wxe=Ot,FO=LZ;class tr extends F7.Transform{constructor(e){super({readableObjectMode:!0}),this.activeTagStack=[],this.nodeIds={},e&&(Object.assign(this,e),this.options=e),this.dataFactory||(this.dataFactory=new Wxe.DataFactory),this.baseIRI||(this.baseIRI=""),this.defaultGraph||(this.defaultGraph=this.dataFactory.defaultGraph()),this.validateUri!==!1&&(this.validateUri=!0),this.iriValidationStrategy||(this.iriValidationStrategy=this.validateUri?FO.IriValidationStrategy.Pragmatic:FO.IriValidationStrategy.None),this.saxParser=new zxe.SaxesParser({xmlns:!0,position:this.trackPosition}),this.attachSaxListeners()}import(e){const r=new F7.PassThrough({readableObjectMode:!0});e.on("error",a=>n.emit("error",a)),e.on("data",a=>r.push(a)),e.on("end",()=>r.push(null));const n=r.pipe(new tr(this.options));return n}_transform(e,r,n){try{this.saxParser.write(e)}catch(a){return n(a)}n()}newParseError(e){return new Gxe.ParseError(this,e)}valueToUri(e,r){return this.uriToNamedNode((0,M7.resolve)(e,r.baseIRI))}uriToNamedNode(e){const r=(0,FO.validateIri)(e,this.iriValidationStrategy);if(r instanceof Error)throw this.newParseError(r.message);return this.dataFactory.namedNode(e)}validateNcname(e){if(!tr.NCNAME_MATCHER.test(e))throw this.newParseError(`Not a valid NCName: ${e}`)}attachSaxListeners(){this.saxParser.on("error",e=>this.emit("error",e)),this.saxParser.on("opentag",this.onTag.bind(this)),this.saxParser.on("text",this.onText.bind(this)),this.saxParser.on("cdata",this.onText.bind(this)),this.saxParser.on("closetag",this.onCloseTag.bind(this)),this.saxParser.on("doctype",this.onDoctype.bind(this))}onTag(e){const r=this.activeTagStack.length?this.activeTagStack[this.activeTagStack.length-1]:null;let n=Zs.RESOURCE;if(r&&(r.hadChildren=!0,n=r.childrenParseType),r&&r.childrenStringTags){const s=e.name;let o="";for(const d in e.attributes)o+=` ${d}="${e.attributes[d].value}"`;const c=`<${`${s}${o}`}>`;r.childrenStringTags.push(c);const l={childrenStringTags:r.childrenStringTags};l.childrenStringEmitClosingTag=``,this.activeTagStack.push(l);return}const a={};r?(a.language=r.language,a.baseIRI=r.baseIRI):a.baseIRI=this.baseIRI,this.activeTagStack.push(a),n===Zs.RESOURCE?this.onTagResource(e,a,r,!r):this.onTagProperty(e,a,r)}onTagResource(e,r,n,a){r.childrenParseType=Zs.PROPERTY;let s=!0;if(e.uri===tr.RDF){if(!a&&tr.FORBIDDEN_NODE_ELEMENTS.indexOf(e.local)>=0)throw this.newParseError(`Illegal node element name: ${e.local}`);switch(e.local){case"RDF":r.childrenParseType=Zs.RESOURCE;case"Description":s=!1}}const o=[],u=[];let c=null,l=!1,d=!1,f=null;for(const h in e.attributes){const p=e.attributes[h];if(n&&p.uri===tr.RDF)switch(p.local){case"about":if(c)throw this.newParseError(`Only one of rdf:about, rdf:nodeID and rdf:ID can be present, while ${p.value} and ${c} where found.`);c=p.value;continue;case"ID":if(c)throw this.newParseError(`Only one of rdf:about, rdf:nodeID and rdf:ID can be present, while ${p.value} and ${c} where found.`);this.validateNcname(p.value),c="#"+p.value,l=!0;continue;case"nodeID":if(c)throw this.newParseError(`Only one of rdf:about, rdf:nodeID and rdf:ID can be present, while ${p.value} and ${c} where found.`);this.validateNcname(p.value),c=p.value,d=!0;continue;case"bagID":throw this.newParseError("rdf:bagID is not supported.");case"type":f=p.value;continue;case"aboutEach":throw this.newParseError("rdf:aboutEach is not supported.");case"aboutEachPrefix":throw this.newParseError("rdf:aboutEachPrefix is not supported.");case"li":throw this.newParseError("rdf:li on node elements are not supported.")}else if(p.uri===tr.XML){if(p.local==="lang"){r.language=p.value===""?null:p.value.toLowerCase();continue}else if(p.local==="base"){r.baseIRI=(0,M7.resolve)(p.value,r.baseIRI);continue}}p.prefix!=="xml"&&p.prefix!=="xmlns"&&(p.prefix!==""||p.local!=="xmlns")&&p.uri&&(o.push(this.uriToNamedNode(p.uri+p.local)),u.push(p.value))}if(c!==null&&(r.subject=d?this.dataFactory.blankNode(c):this.valueToUri(c,r),l&&this.claimNodeId(r.subject)),r.subject||(r.subject=this.dataFactory.blankNode()),s){const h=this.uriToNamedNode(e.uri+e.local);this.emitTriple(r.subject,this.dataFactory.namedNode(tr.RDF+"type"),h,n?n.reifiedStatementId:null)}if(n){if(n.predicate)if(n.childrenCollectionSubject){const h=this.dataFactory.blankNode();this.emitTriple(n.childrenCollectionSubject,n.childrenCollectionPredicate,h,n.reifiedStatementId),this.emitTriple(h,this.dataFactory.namedNode(tr.RDF+"first"),r.subject,r.reifiedStatementId),n.childrenCollectionSubject=h,n.childrenCollectionPredicate=this.dataFactory.namedNode(tr.RDF+"rest")}else{this.emitTriple(n.subject,n.predicate,r.subject,n.reifiedStatementId);for(let h=0;h=0)throw this.newParseError(`Illegal property element name: ${e.local}`);r.predicateSubPredicates=[],r.predicateSubObjects=[];let a=!1,s=!1,o=null,u=!0;const c=[],l=[];for(const d in e.attributes){const f=e.attributes[d];if(f.uri===tr.RDF)switch(f.local){case"resource":if(o)throw this.newParseError(`Found both rdf:resource (${f.value}) and rdf:nodeID (${o}).`);if(a)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:resource (${f.value})`);r.hadChildren=!0,o=f.value,u=!1;continue;case"datatype":if(s)throw this.newParseError(`Found both non-rdf:* property attributes and rdf:datatype (${f.value}).`);if(a)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:datatype (${f.value})`);r.datatype=this.valueToUri(f.value,r);continue;case"nodeID":if(s)throw this.newParseError(`Found both non-rdf:* property attributes and rdf:nodeID (${f.value}).`);if(r.hadChildren)throw this.newParseError(`Found both rdf:resource and rdf:nodeID (${f.value}).`);if(a)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:nodeID (${f.value})`);this.validateNcname(f.value),r.hadChildren=!0,o=f.value,u=!0;continue;case"bagID":throw this.newParseError("rdf:bagID is not supported.");case"parseType":if(s)throw this.newParseError("rdf:parseType is not allowed when non-rdf:* property attributes are present");if(r.datatype)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:datatype (${r.datatype.value})`);if(o)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:nodeID or rdf:resource (${o})`);if(f.value==="Resource"){a=!0,r.childrenParseType=Zs.PROPERTY;const h=this.dataFactory.blankNode();this.emitTriple(r.subject,r.predicate,h,r.reifiedStatementId),r.subject=h,r.predicate=null}else f.value==="Collection"?(a=!0,r.hadChildren=!0,r.childrenCollectionSubject=r.subject,r.childrenCollectionPredicate=r.predicate,u=!1):f.value==="Literal"&&(a=!0,r.childrenTagsToString=!0,r.childrenStringTags=[]);continue;case"ID":this.validateNcname(f.value),r.reifiedStatementId=this.valueToUri("#"+f.value,r),this.claimNodeId(r.reifiedStatementId);continue}else if(f.uri===tr.XML&&f.local==="lang"){r.language=f.value===""?null:f.value.toLowerCase();continue}if(f.prefix!=="xml"&&f.prefix!=="xmlns"&&(f.prefix!==""||f.local!=="xmlns")&&f.uri){if(a||r.datatype)throw this.newParseError(`Found illegal rdf:* properties on property element with attribute: ${f.value}`);r.hadChildren=!0,s=!0,c.push(this.uriToNamedNode(f.uri+f.local)),l.push(this.dataFactory.literal(f.value,r.datatype||r.language))}}if(o!==null){const d=r.subject;r.subject=u?this.dataFactory.blankNode(o):this.valueToUri(o,r),this.emitTriple(d,r.predicate,r.subject,r.reifiedStatementId);for(let f=0;f/g,(r,n,a)=>(this.saxParser.ENTITIES[n]=a,""))}}Xd.RdfXmlParser=tr;tr.MIME_TYPE="application/rdf+xml";tr.RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#";tr.XML="http://www.w3.org/XML/1998/namespace";tr.FORBIDDEN_NODE_ELEMENTS=["RDF","ID","about","bagID","parseType","resource","nodeID","li","aboutEach","aboutEachPrefix"];tr.FORBIDDEN_PROPERTY_ELEMENTS=["Description","RDF","ID","about","bagID","parseType","resource","nodeID","aboutEach","aboutEachPrefix"];tr.NCNAME_MATCHER=/^([A-Za-z\xC0-\xD6\xD8-\xF6\u{F8}-\u{2FF}\u{370}-\u{37D}\u{37F}-\u{1FFF}\u{200C}-\u{200D}\u{2070}-\u{218F}\u{2C00}-\u{2FEF}\u{3001}-\u{D7FF}\u{F900}-\u{FDCF}\u{FDF0}-\u{FFFD}\u{10000}-\u{EFFFF}_])([A-Za-z\xC0-\xD6\xD8-\xF6\u{F8}-\u{2FF}\u{370}-\u{37D}\u{37F}-\u{1FFF}\u{200C}-\u{200D}\u{2070}-\u{218F}\u{2C00}-\u{2FEF}\u{3001}-\u{D7FF}\u{F900}-\u{FDCF}\u{FDF0}-\u{FFFD}\u{10000}-\u{EFFFF}_\-.0-9#xB7\u{0300}-\u{036F}\u{203F}-\u{2040}])*$/u;var Zs;(function(t){t[t.RESOURCE=0]="RESOURCE",t[t.PROPERTY=1]="PROPERTY"})(Zs||(Xd.ParseType=Zs={}));(function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Xd,t)})(AZ);var B7;function Kxe(){if(B7)return e0;B7=1,Object.defineProperty(e0,"__esModule",{value:!0}),e0.ActorRdfParseRdfXml=void 0;const t=Mf(),e=AZ;let r=class extends t.ActorRdfParseFixedMediaTypes{constructor(a){super(a)}async runHandle(a){var o;a.data.on("error",u=>s.emit("error",u));const s=a.data.pipe(new e.RdfXmlParser({baseIRI:(o=a.metadata)==null?void 0:o.baseIRI}));return{data:s,metadata:{triples:!0}}}};return e0.ActorRdfParseRdfXml=r,e0}var q7;function Jxe(){return q7||(q7=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Kxe(),t)}(AO)),AO}var BO={},n0={},a4={},MZ={};Object.defineProperty(MZ,"__esModule",{value:!0});var FZ={};Object.defineProperty(FZ,"__esModule",{value:!0});var BZ={};Object.defineProperty(BZ,"__esModule",{value:!0});var _T={},s4={},Eb={},o4={},tl={},u4={};Object.defineProperty(u4,"__esModule",{value:!0});u4.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(t){return t.charCodeAt(0)}));var c4={};Object.defineProperty(c4,"__esModule",{value:!0});c4.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(t){return t.charCodeAt(0)}));var KP={};(function(t){var e;Object.defineProperty(t,"__esModule",{value:!0}),t.replaceCodePoint=t.fromCodePoint=void 0;var r=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);t.fromCodePoint=(e=String.fromCodePoint)!==null&&e!==void 0?e:function(s){var o="";return s>65535&&(s-=65536,o+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),o+=String.fromCharCode(s),o};function n(s){var o;return s>=55296&&s<=57343||s>1114111?65533:(o=r.get(s))!==null&&o!==void 0?o:s}t.replaceCodePoint=n;function a(s){return(0,t.fromCodePoint)(n(s))}t.default=a})(KP);(function(t){var e=I&&I.__createBinding||(Object.create?function(j,N,V,$){$===void 0&&($=V);var q=Object.getOwnPropertyDescriptor(N,V);(!q||("get"in q?!N.__esModule:q.writable||q.configurable))&&(q={enumerable:!0,get:function(){return N[V]}}),Object.defineProperty(j,$,q)}:function(j,N,V,$){$===void 0&&($=V),j[$]=N[V]}),r=I&&I.__setModuleDefault||(Object.create?function(j,N){Object.defineProperty(j,"default",{enumerable:!0,value:N})}:function(j,N){j.default=N}),n=I&&I.__importStar||function(j){if(j&&j.__esModule)return j;var N={};if(j!=null)for(var V in j)V!=="default"&&Object.prototype.hasOwnProperty.call(j,V)&&e(N,j,V);return r(N,j),N},a=I&&I.__importDefault||function(j){return j&&j.__esModule?j:{default:j}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXML=t.decodeHTMLStrict=t.decodeHTMLAttribute=t.decodeHTML=t.determineBranch=t.EntityDecoder=t.DecodingMode=t.BinTrieFlags=t.fromCodePoint=t.replaceCodePoint=t.decodeCodePoint=t.xmlDecodeTree=t.htmlDecodeTree=void 0;var s=a(u4);t.htmlDecodeTree=s.default;var o=a(c4);t.xmlDecodeTree=o.default;var u=n(KP);t.decodeCodePoint=u.default;var c=KP;Object.defineProperty(t,"replaceCodePoint",{enumerable:!0,get:function(){return c.replaceCodePoint}}),Object.defineProperty(t,"fromCodePoint",{enumerable:!0,get:function(){return c.fromCodePoint}});var l;(function(j){j[j.NUM=35]="NUM",j[j.SEMI=59]="SEMI",j[j.EQUALS=61]="EQUALS",j[j.ZERO=48]="ZERO",j[j.NINE=57]="NINE",j[j.LOWER_A=97]="LOWER_A",j[j.LOWER_F=102]="LOWER_F",j[j.LOWER_X=120]="LOWER_X",j[j.LOWER_Z=122]="LOWER_Z",j[j.UPPER_A=65]="UPPER_A",j[j.UPPER_F=70]="UPPER_F",j[j.UPPER_Z=90]="UPPER_Z"})(l||(l={}));var d=32,f;(function(j){j[j.VALUE_LENGTH=49152]="VALUE_LENGTH",j[j.BRANCH_LENGTH=16256]="BRANCH_LENGTH",j[j.JUMP_TABLE=127]="JUMP_TABLE"})(f=t.BinTrieFlags||(t.BinTrieFlags={}));function h(j){return j>=l.ZERO&&j<=l.NINE}function p(j){return j>=l.UPPER_A&&j<=l.UPPER_F||j>=l.LOWER_A&&j<=l.LOWER_F}function m(j){return j>=l.UPPER_A&&j<=l.UPPER_Z||j>=l.LOWER_A&&j<=l.LOWER_Z||h(j)}function y(j){return j===l.EQUALS||m(j)}var g;(function(j){j[j.EntityStart=0]="EntityStart",j[j.NumericStart=1]="NumericStart",j[j.NumericDecimal=2]="NumericDecimal",j[j.NumericHex=3]="NumericHex",j[j.NamedEntity=4]="NamedEntity"})(g||(g={}));var b;(function(j){j[j.Legacy=0]="Legacy",j[j.Strict=1]="Strict",j[j.Attribute=2]="Attribute"})(b=t.DecodingMode||(t.DecodingMode={}));var v=function(){function j(N,V,$){this.decodeTree=N,this.emitCodePoint=V,this.errors=$,this.state=g.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=b.Strict}return j.prototype.startEntity=function(N){this.decodeMode=N,this.state=g.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},j.prototype.write=function(N,V){switch(this.state){case g.EntityStart:return N.charCodeAt(V)===l.NUM?(this.state=g.NumericStart,this.consumed+=1,this.stateNumericStart(N,V+1)):(this.state=g.NamedEntity,this.stateNamedEntity(N,V));case g.NumericStart:return this.stateNumericStart(N,V);case g.NumericDecimal:return this.stateNumericDecimal(N,V);case g.NumericHex:return this.stateNumericHex(N,V);case g.NamedEntity:return this.stateNamedEntity(N,V)}},j.prototype.stateNumericStart=function(N,V){return V>=N.length?-1:(N.charCodeAt(V)|d)===l.LOWER_X?(this.state=g.NumericHex,this.consumed+=1,this.stateNumericHex(N,V+1)):(this.state=g.NumericDecimal,this.stateNumericDecimal(N,V))},j.prototype.addToNumericResult=function(N,V,$,q){if(V!==$){var H=$-V;this.result=this.result*Math.pow(q,H)+parseInt(N.substr(V,H),q),this.consumed+=H}},j.prototype.stateNumericHex=function(N,V){for(var $=V;V>14;V>14,H!==0){if(X===l.SEMI)return this.emitNamedEntityData(this.treeIndex,H,this.consumed+this.excess);this.decodeMode!==b.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},j.prototype.emitNotTerminatedNamedEntity=function(){var N,V=this,$=V.result,q=V.decodeTree,H=(q[$]&f.VALUE_LENGTH)>>14;return this.emitNamedEntityData($,H,this.consumed),(N=this.errors)===null||N===void 0||N.missingSemicolonAfterCharacterReference(),this.consumed},j.prototype.emitNamedEntityData=function(N,V,$){var q=this.decodeTree;return this.emitCodePoint(V===1?q[N]&~f.VALUE_LENGTH:q[N+1],$),V===3&&this.emitCodePoint(q[N+2],$),$},j.prototype.end=function(){var N;switch(this.state){case g.NamedEntity:return this.result!==0&&(this.decodeMode!==b.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case g.NumericDecimal:return this.emitNumericEntity(0,2);case g.NumericHex:return this.emitNumericEntity(0,3);case g.NumericStart:return(N=this.errors)===null||N===void 0||N.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case g.EntityStart:return 0}},j}();t.EntityDecoder=v;function _(j){var N="",V=new v(j,function($){return N+=(0,u.fromCodePoint)($)});return function(q,H){for(var X=0,Y=0;(Y=q.indexOf("&",Y))>=0;){N+=q.slice(X,Y),V.startEntity(H);var he=V.write(q,Y+1);if(he<0){X=Y+V.end();break}X=Y+he,Y=he===0?X+1:X}var Te=N+q.slice(X);return N="",Te}}function w(j,N,V,$){var q=(N&f.BRANCH_LENGTH)>>7,H=N&f.JUMP_TABLE;if(q===0)return H!==0&&$===H?V:-1;if(H){var X=$-H;return X<0||X>=q?-1:j[V+X]-1}for(var Y=V,he=Y+q-1;Y<=he;){var Te=Y+he>>>1,Ne=j[Te];if(Ne<$)Y=Te+1;else if(Ne>$)he=Te-1;else return j[Te+q]}return-1}t.determineBranch=w;var E=_(s.default),O=_(o.default);function L(j,N){return N===void 0&&(N=b.Legacy),E(j,N)}t.decodeHTML=L;function F(j){return E(j,b.Attribute)}t.decodeHTMLAttribute=F;function x(j){return E(j,b.Strict)}t.decodeHTMLStrict=x;function P(j){return O(j,b.Strict)}t.decodeXML=P})(tl);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.QuoteType=void 0;var e=tl,r;(function(h){h[h.Tab=9]="Tab",h[h.NewLine=10]="NewLine",h[h.FormFeed=12]="FormFeed",h[h.CarriageReturn=13]="CarriageReturn",h[h.Space=32]="Space",h[h.ExclamationMark=33]="ExclamationMark",h[h.Number=35]="Number",h[h.Amp=38]="Amp",h[h.SingleQuote=39]="SingleQuote",h[h.DoubleQuote=34]="DoubleQuote",h[h.Dash=45]="Dash",h[h.Slash=47]="Slash",h[h.Zero=48]="Zero",h[h.Nine=57]="Nine",h[h.Semi=59]="Semi",h[h.Lt=60]="Lt",h[h.Eq=61]="Eq",h[h.Gt=62]="Gt",h[h.Questionmark=63]="Questionmark",h[h.UpperA=65]="UpperA",h[h.LowerA=97]="LowerA",h[h.UpperF=70]="UpperF",h[h.LowerF=102]="LowerF",h[h.UpperZ=90]="UpperZ",h[h.LowerZ=122]="LowerZ",h[h.LowerX=120]="LowerX",h[h.OpeningSquareBracket=91]="OpeningSquareBracket"})(r||(r={}));var n;(function(h){h[h.Text=1]="Text",h[h.BeforeTagName=2]="BeforeTagName",h[h.InTagName=3]="InTagName",h[h.InSelfClosingTag=4]="InSelfClosingTag",h[h.BeforeClosingTagName=5]="BeforeClosingTagName",h[h.InClosingTagName=6]="InClosingTagName",h[h.AfterClosingTagName=7]="AfterClosingTagName",h[h.BeforeAttributeName=8]="BeforeAttributeName",h[h.InAttributeName=9]="InAttributeName",h[h.AfterAttributeName=10]="AfterAttributeName",h[h.BeforeAttributeValue=11]="BeforeAttributeValue",h[h.InAttributeValueDq=12]="InAttributeValueDq",h[h.InAttributeValueSq=13]="InAttributeValueSq",h[h.InAttributeValueNq=14]="InAttributeValueNq",h[h.BeforeDeclaration=15]="BeforeDeclaration",h[h.InDeclaration=16]="InDeclaration",h[h.InProcessingInstruction=17]="InProcessingInstruction",h[h.BeforeComment=18]="BeforeComment",h[h.CDATASequence=19]="CDATASequence",h[h.InSpecialComment=20]="InSpecialComment",h[h.InCommentLike=21]="InCommentLike",h[h.BeforeSpecialS=22]="BeforeSpecialS",h[h.SpecialStartSequence=23]="SpecialStartSequence",h[h.InSpecialTag=24]="InSpecialTag",h[h.BeforeEntity=25]="BeforeEntity",h[h.BeforeNumericEntity=26]="BeforeNumericEntity",h[h.InNamedEntity=27]="InNamedEntity",h[h.InNumericEntity=28]="InNumericEntity",h[h.InHexEntity=29]="InHexEntity"})(n||(n={}));function a(h){return h===r.Space||h===r.NewLine||h===r.Tab||h===r.FormFeed||h===r.CarriageReturn}function s(h){return h===r.Slash||h===r.Gt||a(h)}function o(h){return h>=r.Zero&&h<=r.Nine}function u(h){return h>=r.LowerA&&h<=r.LowerZ||h>=r.UpperA&&h<=r.UpperZ}function c(h){return h>=r.UpperA&&h<=r.UpperF||h>=r.LowerA&&h<=r.LowerF}var l;(function(h){h[h.NoValue=0]="NoValue",h[h.Unquoted=1]="Unquoted",h[h.Single=2]="Single",h[h.Double=3]="Double"})(l=t.QuoteType||(t.QuoteType={}));var d={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},f=function(){function h(p,m){var y=p.xmlMode,g=y===void 0?!1:y,b=p.decodeEntities,v=b===void 0?!0:b;this.cbs=m,this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=g,this.decodeEntities=v,this.entityTrie=g?e.xmlDecodeTree:e.htmlDecodeTree}return h.prototype.reset=function(){this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},h.prototype.write=function(p){this.offset+=this.buffer.length,this.buffer=p,this.parse()},h.prototype.end=function(){this.running&&this.finish()},h.prototype.pause=function(){this.running=!1},h.prototype.resume=function(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=n.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&p===r.Amp&&(this.state=n.BeforeEntity)},h.prototype.stateSpecialStartSequence=function(p){var m=this.sequenceIndex===this.currentSequence.length,y=m?s(p):(p|32)===this.currentSequence[this.sequenceIndex];if(!y)this.isSpecial=!1;else if(!m){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=n.InTagName,this.stateInTagName(p)},h.prototype.stateInSpecialTag=function(p){if(this.sequenceIndex===this.currentSequence.length){if(p===r.Gt||a(p)){var m=this.index-this.currentSequence.length;if(this.sectionStart>14)-1;if(!this.allowLegacyEntity()&&p!==r.Semi)this.trieIndex+=y;else{var g=this.index-this.entityExcess+1;g>this.sectionStart&&this.emitPartial(this.sectionStart,g),this.entityResult=this.trieIndex,this.trieIndex+=y,this.entityExcess=0,this.sectionStart=this.index+1,y===0&&this.emitNamedEntity()}}},h.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var p=(this.entityTrie[this.entityResult]&e.BinTrieFlags.VALUE_LENGTH)>>14;switch(p){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~e.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},h.prototype.stateBeforeNumericEntity=function(p){(p|32)===r.LowerX?(this.entityExcess++,this.state=n.InHexEntity):(this.state=n.InNumericEntity,this.stateInNumericEntity(p))},h.prototype.emitNumericEntity=function(p){var m=this.index-this.entityExcess-1,y=m+2+ +(this.state===n.InHexEntity);y!==this.index&&(m>this.sectionStart&&this.emitPartial(this.sectionStart,m),this.sectionStart=this.index+Number(p),this.emitCodePoint((0,e.replaceCodePoint)(this.entityResult))),this.state=this.baseState},h.prototype.stateInNumericEntity=function(p){p===r.Semi?this.emitNumericEntity(!0):o(p)?(this.entityResult=this.entityResult*10+(p-r.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},h.prototype.stateInHexEntity=function(p){p===r.Semi?this.emitNumericEntity(!0):o(p)?(this.entityResult=this.entityResult*16+(p-r.Zero),this.entityExcess++):c(p)?(this.entityResult=this.entityResult*16+((p|32)-r.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},h.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===n.Text||this.baseState===n.InSpecialTag)},h.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===n.Text||this.state===n.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===n.InAttributeValueDq||this.state===n.InAttributeValueSq||this.state===n.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},h.prototype.shouldContinue=function(){return this.index0&&o.has(this.stack[this.stack.length-1]);){var u=this.stack.pop();(n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,u,!0)}this.isVoidElement(e)||(this.stack.push(e),H7.has(e)?this.foreignContext.push(!0):Q7.has(e)&&this.foreignContext.push(!1)),(s=(a=this.cbs).onopentagname)===null||s===void 0||s.call(a,e),this.cbs.onopentag&&(this.attribs={})},t.prototype.endOpenTag=function(e){var r,n;this.startIndex=this.openTagStart,this.attribs&&((n=(r=this.cbs).onopentag)===null||n===void 0||n.call(r,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},t.prototype.onopentagend=function(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1},t.prototype.onclosetag=function(e,r){var n,a,s,o,u,c;this.endIndex=r;var l=this.getSlice(e,r);if(this.lowerCaseTagNames&&(l=l.toLowerCase()),(H7.has(l)||Q7.has(l))&&this.foreignContext.pop(),this.isVoidElement(l))!this.options.xmlMode&&l==="br"&&((a=(n=this.cbs).onopentagname)===null||a===void 0||a.call(n,"br"),(o=(s=this.cbs).onopentag)===null||o===void 0||o.call(s,"br",{},!0),(c=(u=this.cbs).onclosetag)===null||c===void 0||c.call(u,"br",!1));else{var d=this.stack.lastIndexOf(l);if(d!==-1)if(this.cbs.onclosetag)for(var f=this.stack.length-d;f--;)this.cbs.onclosetag(this.stack.pop(),f!==0);else this.stack.length=d;else!this.options.xmlMode&&l==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=r+1},t.prototype.onselfclosingtag=function(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)},t.prototype.closeCurrentTag=function(e){var r,n,a=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===a&&((n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,a,!e),this.stack.pop())},t.prototype.onattribname=function(e,r){this.startIndex=e;var n=this.getSlice(e,r);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n},t.prototype.onattribdata=function(e,r){this.attribvalue+=this.getSlice(e,r)},t.prototype.onattribentity=function(e){this.attribvalue+=(0,$7.fromCodePoint)(e)},t.prototype.onattribend=function(e,r){var n,a;this.endIndex=r,(a=(n=this.cbs).onattribute)===null||a===void 0||a.call(n,this.attribname,this.attribvalue,e===Wv.QuoteType.Double?'"':e===Wv.QuoteType.Single?"'":e===Wv.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},t.prototype.getInstructionName=function(e){var r=e.search(rIe),n=r<0?e:e.substr(0,r);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},t.prototype.ondeclaration=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);if(this.cbs.onprocessinginstruction){var a=this.getInstructionName(n);this.cbs.onprocessinginstruction("!".concat(a),"!".concat(n))}this.startIndex=r+1},t.prototype.onprocessinginstruction=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);if(this.cbs.onprocessinginstruction){var a=this.getInstructionName(n);this.cbs.onprocessinginstruction("?".concat(a),"?".concat(n))}this.startIndex=r+1},t.prototype.oncomment=function(e,r,n){var a,s,o,u;this.endIndex=r,(s=(a=this.cbs).oncomment)===null||s===void 0||s.call(a,this.getSlice(e,r-n)),(u=(o=this.cbs).oncommentend)===null||u===void 0||u.call(o),this.startIndex=r+1},t.prototype.oncdata=function(e,r,n){var a,s,o,u,c,l,d,f,h,p;this.endIndex=r;var m=this.getSlice(e,r-n);this.options.xmlMode||this.options.recognizeCDATA?((s=(a=this.cbs).oncdatastart)===null||s===void 0||s.call(a),(u=(o=this.cbs).ontext)===null||u===void 0||u.call(o,m),(l=(c=this.cbs).oncdataend)===null||l===void 0||l.call(c)):((f=(d=this.cbs).oncomment)===null||f===void 0||f.call(d,"[CDATA[".concat(m,"]]")),(p=(h=this.cbs).oncommentend)===null||p===void 0||p.call(h)),this.startIndex=r+1},t.prototype.onend=function(){var e,r;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n],!0));}(r=(e=this.cbs).onend)===null||r===void 0||r.call(e)},t.prototype.reset=function(){var e,r,n,a;(r=(e=this.cbs).onreset)===null||r===void 0||r.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(a=(n=this.cbs).onparserinit)===null||a===void 0||a.call(n,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},t.prototype.parseComplete=function(e){this.reset(),this.end(e)},t.prototype.getSlice=function(e,r){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var n=this.buffers[0].slice(e-this.bufferOffset,r-this.bufferOffset);r-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,r-this.bufferOffset);return n},t.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},t.prototype.write=function(e){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".write() after done!"));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)},t.prototype.end=function(e){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".end() after done!"));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()},t.prototype.pause=function(){this.tokenizer.pause()},t.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childNodes",{get:function(){return this.children},set:function(r){this.children=r},enumerable:!1,configurable:!0}),e}(l4);kt.NodeWithChildren=vT;var kZ=function(t){Cu(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Si.ElementType.CDATA,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),e}(vT);kt.CDATA=kZ;var VZ=function(t){Cu(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Si.ElementType.Root,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),e}(vT);kt.Document=VZ;var HZ=function(t){Cu(e,t);function e(r,n,a,s){a===void 0&&(a=[]),s===void 0&&(s=r==="script"?Si.ElementType.Script:r==="style"?Si.ElementType.Style:Si.ElementType.Tag);var o=t.call(this,a)||this;return o.name=r,o.attribs=n,o.type=s,o}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(n){var a,s;return{name:n,value:r.attribs[n],namespace:(a=r["x-attribsNamespace"])===null||a===void 0?void 0:a[n],prefix:(s=r["x-attribsPrefix"])===null||s===void 0?void 0:s[n]}})},enumerable:!1,configurable:!0}),e}(vT);kt.Element=HZ;function QZ(t){return(0,Si.isTag)(t)}kt.isTag=QZ;function zZ(t){return t.type===Si.ElementType.CDATA}kt.isCDATA=zZ;function GZ(t){return t.type===Si.ElementType.Text}kt.isText=GZ;function WZ(t){return t.type===Si.ElementType.Comment}kt.isComment=WZ;function KZ(t){return t.type===Si.ElementType.Directive}kt.isDirective=KZ;function JZ(t){return t.type===Si.ElementType.Root}kt.isDocument=JZ;function iIe(t){return Object.prototype.hasOwnProperty.call(t,"children")}kt.hasChildren=iIe;function d4(t,e){e===void 0&&(e=!1);var r;if(GZ(t))r=new qZ(t.data);else if(WZ(t))r=new $Z(t.data);else if(QZ(t)){var n=e?qO(t.children):[],a=new HZ(t.name,X_({},t.attribs),n);n.forEach(function(c){return c.parent=a}),t.namespace!=null&&(a.namespace=t.namespace),t["x-attribsNamespace"]&&(a["x-attribsNamespace"]=X_({},t["x-attribsNamespace"])),t["x-attribsPrefix"]&&(a["x-attribsPrefix"]=X_({},t["x-attribsPrefix"])),r=a}else if(zZ(t)){var n=e?qO(t.children):[],s=new kZ(n);n.forEach(function(l){return l.parent=s}),r=s}else if(JZ(t)){var n=e?qO(t.children):[],o=new VZ(n);n.forEach(function(l){return l.parent=o}),t["x-mode"]&&(o["x-mode"]=t["x-mode"]),r=o}else if(KZ(t)){var u=new UZ(t.name,t.data);t["x-name"]!=null&&(u["x-name"]=t["x-name"],u["x-publicId"]=t["x-publicId"],u["x-systemId"]=t["x-systemId"]),r=u}else throw new Error("Not implemented yet: ".concat(t.type));return r.startIndex=t.startIndex,r.endIndex=t.endIndex,t.sourceCodeLocation!=null&&(r.sourceCodeLocation=t.sourceCodeLocation),r}kt.cloneNode=d4;function qO(t){for(var e=t.map(function(n){return d4(n,!0)}),r=1;r$\x80-\uFFFF]/g;var e=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);t.getCodePoint=String.prototype.codePointAt!=null?function(a,s){return a.codePointAt(s)}:function(a,s){return(a.charCodeAt(s)&64512)===55296?(a.charCodeAt(s)-55296)*1024+a.charCodeAt(s+1)-56320+65536:a.charCodeAt(s)};function r(a){for(var s="",o=0,u;(u=t.xmlReplacer.exec(a))!==null;){var c=u.index,l=a.charCodeAt(c),d=e.get(l);d!==void 0?(s+=a.substring(o,c)+d,o=c+1):(s+="".concat(a.substring(o,c),"&#x").concat((0,t.getCodePoint)(a,c).toString(16),";"),o=t.xmlReplacer.lastIndex+=+((l&64512)===55296))}return s+a.substr(o)}t.encodeXML=r,t.escape=r;function n(a,s){return function(u){for(var c,l=0,d="";c=a.exec(u);)l!==c.index&&(d+=u.substring(l,c.index)),d+=s.get(c[0].charCodeAt(0)),l=c.index+1;return d+u.substring(l)}}t.escapeUTF8=n(/[&<>'"]/g,e),t.escapeAttribute=n(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),t.escapeText=n(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))})(DS);var aIe=I&&I.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(rl,"__esModule",{value:!0});rl.encodeNonAsciiHTML=rl.encodeHTML=void 0;var sIe=aIe(f4),YZ=DS,oIe=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function uIe(t){return ZZ(oIe,t)}rl.encodeHTML=uIe;function cIe(t){return ZZ(YZ.xmlReplacer,t)}rl.encodeNonAsciiHTML=cIe;function ZZ(t,e){for(var r="",n=0,a;(a=t.exec(e))!==null;){var s=a.index;r+=e.substring(n,s);var o=e.charCodeAt(s),u=sIe.default.get(o);if(typeof u=="object"){if(s+10&&(n+=wT(t.children,e)),(e.xmlMode||!z7.has(t.name))&&(n+=""))),n}function vIe(t){return"<".concat(t.data,">")}function wIe(t,e){var r,n=t.data||"";return((r=e.encodeEntities)!==null&&r!==void 0?r:e.decodeEntities)!==!1&&!(!e.xmlMode&&t.parent&&hIe.has(t.parent.name))&&(n=e.xmlMode||e.encodeEntities!=="utf8"?(0,CS.encodeXML)(n):(0,CS.escapeText)(n)),n}function SIe(t){return"")}function TIe(t){return"")}var EIe=I&&I.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ji,"__esModule",{value:!0});ji.innerText=ji.textContent=ji.getText=ji.getInnerHTML=ji.getOuterHTML=void 0;var ds=Fa,AIe=EIe(P1),OIe=yl;function tee(t,e){return(0,AIe.default)(t,e)}ji.getOuterHTML=tee;function RIe(t,e){return(0,ds.hasChildren)(t)?t.children.map(function(r){return tee(r,e)}).join(""):""}ji.getInnerHTML=RIe;function Qw(t){return Array.isArray(t)?t.map(Qw).join(""):(0,ds.isTag)(t)?t.name==="br"?` -`:Qw(t.children):(0,ds.isCDATA)(t)?Qw(t.children):(0,ds.isText)(t)?t.data:""}ji.getText=Qw;function JP(t){return Array.isArray(t)?t.map(JP).join(""):(0,ds.hasChildren)(t)&&!(0,ds.isComment)(t)?JP(t.children):(0,ds.isText)(t)?t.data:""}ji.textContent=JP;function XP(t){return Array.isArray(t)?t.map(XP).join(""):(0,ds.hasChildren)(t)&&(t.type===OIe.ElementType.Tag||(0,ds.isCDATA)(t))?XP(t.children):(0,ds.isText)(t)?t.data:""}ji.innerText=XP;var mn={};Object.defineProperty(mn,"__esModule",{value:!0});mn.prevElementSibling=mn.nextElementSibling=mn.getName=mn.hasAttrib=mn.getAttributeValue=mn.getSiblings=mn.getParent=mn.getChildren=void 0;var h4=Fa;function ree(t){return(0,h4.hasChildren)(t)?t.children:[]}mn.getChildren=ree;function nee(t){return t.parent||null}mn.getParent=nee;function xIe(t){var e,r,n=nee(t);if(n!=null)return ree(n);for(var a=[t],s=t.prev,o=t.next;s!=null;)a.unshift(s),e=s,s=e.prev;for(;o!=null;)a.push(o),r=o,o=r.next;return a}mn.getSiblings=xIe;function IIe(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}mn.getAttributeValue=IIe;function PIe(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}mn.hasAttrib=PIe;function NIe(t){return t.name}mn.getName=NIe;function DIe(t){for(var e,r=t.next;r!==null&&!(0,h4.isTag)(r);)e=r,r=e.next;return r}mn.nextElementSibling=DIe;function CIe(t){for(var e,r=t.prev;r!==null&&!(0,h4.isTag)(r);)e=r,r=e.prev;return r}mn.prevElementSibling=CIe;var gi={};Object.defineProperty(gi,"__esModule",{value:!0});gi.prepend=gi.prependChild=gi.append=gi.appendChild=gi.replaceElement=gi.removeElement=void 0;function N1(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){var e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}gi.removeElement=N1;function LIe(t,e){var r=e.prev=t.prev;r&&(r.next=e);var n=e.next=t.next;n&&(n.prev=e);var a=e.parent=t.parent;if(a){var s=a.children;s[s.lastIndexOf(t)]=e,t.parent=null}}gi.replaceElement=LIe;function jIe(t,e){if(N1(e),e.next=null,e.parent=t,t.children.push(e)>1){var r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}gi.appendChild=jIe;function MIe(t,e){N1(e);var r=t.parent,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){var a=r.children;a.splice(a.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}gi.append=MIe;function FIe(t,e){if(N1(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){var r=t.children[1];r.prev=e,e.next=r}else e.next=null}gi.prependChild=FIe;function BIe(t,e){N1(e);var r=t.parent;if(r){var n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}gi.prepend=BIe;var Zn={};Object.defineProperty(Zn,"__esModule",{value:!0});Zn.findAll=Zn.existsOne=Zn.findOne=Zn.findOneChild=Zn.find=Zn.filter=void 0;var ST=Fa;function qIe(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),iee(t,Array.isArray(e)?e:[e],r,n)}Zn.filter=qIe;function iee(t,e,r,n){for(var a=[],s=[e],o=[0];;){if(o[0]>=s[0].length){if(o.length===1)return a;s.shift(),o.shift();continue}var u=s[0][o[0]++];if(t(u)&&(a.push(u),--n<=0))return a;r&&(0,ST.hasChildren)(u)&&u.children.length>0&&(o.unshift(0),s.unshift(u.children))}}Zn.find=iee;function $Ie(t,e){return e.find(t)}Zn.findOneChild=$Ie;function aee(t,e,r){r===void 0&&(r=!0);for(var n=null,a=0;a0&&(n=aee(t,s.children,!0));else continue}return n}Zn.findOne=aee;function see(t,e){return e.some(function(r){return(0,ST.isTag)(r)&&(t(r)||see(t,r.children))})}Zn.existsOne=see;function UIe(t,e){for(var r=[],n=[e],a=[0];;){if(a[0]>=n[0].length){if(n.length===1)return r;n.shift(),a.shift();continue}var s=n[0][a[0]++];(0,ST.isTag)(s)&&(t(s)&&r.push(s),s.children.length>0&&(a.unshift(0),n.unshift(s.children)))}}Zn.findAll=UIe;var Mi={};Object.defineProperty(Mi,"__esModule",{value:!0});Mi.getElementsByTagType=Mi.getElementsByTagName=Mi.getElementById=Mi.getElements=Mi.testElement=void 0;var Sc=Fa,TT=Zn,LS={tag_name:function(t){return typeof t=="function"?function(e){return(0,Sc.isTag)(e)&&t(e.name)}:t==="*"?Sc.isTag:function(e){return(0,Sc.isTag)(e)&&e.name===t}},tag_type:function(t){return typeof t=="function"?function(e){return t(e.type)}:function(e){return e.type===t}},tag_contains:function(t){return typeof t=="function"?function(e){return(0,Sc.isText)(e)&&t(e.data)}:function(e){return(0,Sc.isText)(e)&&e.data===t}}};function oee(t,e){return typeof e=="function"?function(r){return(0,Sc.isTag)(r)&&e(r.attribs[t])}:function(r){return(0,Sc.isTag)(r)&&r.attribs[t]===e}}function kIe(t,e){return function(r){return t(r)||e(r)}}function uee(t){var e=Object.keys(t).map(function(r){var n=t[r];return Object.prototype.hasOwnProperty.call(LS,r)?LS[r](n):oee(r,n)});return e.length===0?null:e.reduce(kIe)}function VIe(t,e){var r=uee(t);return r?r(e):!0}Mi.testElement=VIe;function HIe(t,e,r,n){n===void 0&&(n=1/0);var a=uee(t);return a?(0,TT.filter)(a,e,r,n):[]}Mi.getElements=HIe;function QIe(t,e,r){return r===void 0&&(r=!0),Array.isArray(e)||(e=[e]),(0,TT.findOne)(oee("id",t),e,r)}Mi.getElementById=QIe;function zIe(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,TT.filter)(LS.tag_name(t),e,r,n)}Mi.getElementsByTagName=zIe;function GIe(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,TT.filter)(LS.tag_type(t),e,r,n)}Mi.getElementsByTagType=GIe;var cee={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.uniqueSort=t.compareDocumentPosition=t.DocumentPosition=t.removeSubsets=void 0;var e=Fa;function r(o){for(var u=o.length;--u>=0;){var c=o[u];if(u>0&&o.lastIndexOf(c,u-1)>=0){o.splice(u,1);continue}for(var l=c.parent;l;l=l.parent)if(o.includes(l)){o.splice(u,1);break}}return o}t.removeSubsets=r;var n;(function(o){o[o.DISCONNECTED=1]="DISCONNECTED",o[o.PRECEDING=2]="PRECEDING",o[o.FOLLOWING=4]="FOLLOWING",o[o.CONTAINS=8]="CONTAINS",o[o.CONTAINED_BY=16]="CONTAINED_BY"})(n=t.DocumentPosition||(t.DocumentPosition={}));function a(o,u){var c=[],l=[];if(o===u)return 0;for(var d=(0,e.hasChildren)(o)?o:o.parent;d;)c.unshift(d),d=d.parent;for(d=(0,e.hasChildren)(u)?u:u.parent;d;)l.unshift(d),d=d.parent;for(var f=Math.min(c.length,l.length),h=0;hm.indexOf(g)?p===u?n.FOLLOWING|n.CONTAINED_BY:n.FOLLOWING:p===o?n.PRECEDING|n.CONTAINS:n.PRECEDING}t.compareDocumentPosition=a;function s(o){return o=o.filter(function(u,c,l){return!l.includes(u,c+1)}),o.sort(function(u,c){var l=a(u,c);return l&n.PRECEDING?-1:l&n.FOLLOWING?1:0}),o}t.uniqueSort=s})(cee);var ET={};Object.defineProperty(ET,"__esModule",{value:!0});ET.getFeed=void 0;var WIe=ji,D1=Mi;function KIe(t){var e=jS(ePe,t);return e?e.name==="feed"?JIe(e):XIe(e):null}ET.getFeed=KIe;function JIe(t){var e,r=t.children,n={type:"atom",items:(0,D1.getElementsByTagName)("entry",r).map(function(o){var u,c=o.children,l={media:lee(c)};mi(l,"id","id",c),mi(l,"title","title",c);var d=(u=jS("link",c))===null||u===void 0?void 0:u.attribs.href;d&&(l.link=d);var f=ru("summary",c)||ru("content",c);f&&(l.description=f);var h=ru("updated",c);return h&&(l.pubDate=new Date(h)),l})};mi(n,"id","id",r),mi(n,"title","title",r);var a=(e=jS("link",r))===null||e===void 0?void 0:e.attribs.href;a&&(n.link=a),mi(n,"description","subtitle",r);var s=ru("updated",r);return s&&(n.updated=new Date(s)),mi(n,"author","email",r,!0),n}function XIe(t){var e,r,n=(r=(e=jS("channel",t.children))===null||e===void 0?void 0:e.children)!==null&&r!==void 0?r:[],a={type:t.name.substr(0,3),id:"",items:(0,D1.getElementsByTagName)("item",t.children).map(function(o){var u=o.children,c={media:lee(u)};mi(c,"id","guid",u),mi(c,"title","title",u),mi(c,"link","link",u),mi(c,"description","description",u);var l=ru("pubDate",u)||ru("dc:date",u);return l&&(c.pubDate=new Date(l)),c})};mi(a,"title","title",n),mi(a,"link","link",n),mi(a,"description","description",n);var s=ru("lastBuildDate",n);return s&&(a.updated=new Date(s)),mi(a,"author","managingEditor",n,!0),a}var YIe=["url","type","lang"],ZIe=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function lee(t){return(0,D1.getElementsByTagName)("media:content",t).map(function(e){for(var r=e.attribs,n={medium:r.medium,isDefault:!!r.isDefault},a=0,s=YIe;a0){const s=Object.assign(Object.assign({},r),a);if(e.prefix){let o;for(;o=ko.PREFIX_REGEX.exec(e.prefix);)s[o[1]]=o[2]}return s}else return r}static expandPrefixedTerm(e,r){const n=e.indexOf(":");let a,s;if(n>=0&&(a=e.substr(0,n),s=e.substr(n+1)),a==="")return"http://www.w3.org/1999/xhtml/vocab#"+s;if(a){const o=r.prefixesAll[a];if(o)return o+s}if(e){const o=r.prefixesAll[e.toLocaleLowerCase()];if(o)return o}return e}static isValidIri(e){return ko.IRI_REGEX.test(e)}static contentTypeToProfile(e){return nPe.RDFA_CONTENTTYPES[e]||""}getBaseIRI(e){let r=e;const n=r.indexOf("#");return n>=0&&(r=r.substr(0,n)),this.dataFactory.namedNode((0,Jv.resolve)(r,this.baseIRI.value))}getResourceOrBaseIri(e,r){return e===!0?this.getBaseIriTerm(r):e}getBaseIriTerm(e){return e.localBaseIRI||this.baseIRI}createVocabIris(e,r,n,a){return e.split(/\s+/).filter(s=>s&&(n||s.indexOf(":")>=0)).map(s=>this.createIri(s,r,!0,!0,a)).filter(s=>s!=null)}createLiteral(e,r){if(r.interpretObjectAsTime&&!r.datatype){for(const n of ko.TIME_REGEXES)if(e.match(n.regex)){r.datatype=this.dataFactory.namedNode(ko.XSD+n.type);break}}return this.dataFactory.literal(e,r.datatype||r.language)}createBlankNode(){return this.blankNodeFactory?this.blankNodeFactory():this.dataFactory.blankNode()}createIri(e,r,n,a,s){if(e=e||"",!a)return n||(e=(0,Jv.resolve)(e,this.getBaseIriTerm(r).value)),ko.isValidIri(e)?this.dataFactory.namedNode(e):null;if(e.length>0&&e[0]==="["&&e[e.length-1]==="]"&&(e=e.substr(1,e.length-2),e.indexOf(":")<0))return null;if(e.startsWith("_:"))return s?this.dataFactory.blankNode(e.substr(2)||"b_identity"):null;if(n&&r.vocab&&e.indexOf(":")<0)return this.dataFactory.namedNode(r.vocab+e);let o=ko.expandPrefixedTerm(e,r);return n?e!==o&&(o=(0,Jv.resolve)(o,this.baseIRIDocument.value)):o=(0,Jv.resolve)(o,this.getBaseIriTerm(r).value),ko.isValidIri(o)?this.dataFactory.namedNode(o):null}};C1.Util=ml;ml.RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#";ml.XSD="http://www.w3.org/2001/XMLSchema#";ml.RDFA="http://www.w3.org/ns/rdfa#";ml.PREFIX_REGEX=/\s*([^:\s]*)*:\s*([^\s]*)*\s*/g;ml.TIME_REGEXES=[{regex:/^-?P([0-9]+Y)?([0-9]+M)?([0-9]+D)?(T([0-9]+H)?([0-9]+M)?([0-9]+(\.[0-9])?S)?)?$/,type:"duration"},{regex:/^[0-9]+-[0-9][0-9]-[0-9][0-9]T[0-9][0-9]:[0-9][0-9]:[0-9][0-9]((Z?)|([\+-][0-9][0-9]:[0-9][0-9]))$/,type:"dateTime"},{regex:/^[0-9]+-[0-9][0-9]-[0-9][0-9]Z?$/,type:"date"},{regex:/^[0-9][0-9]:[0-9][0-9]:[0-9][0-9]((Z?)|([\+-][0-9][0-9]:[0-9][0-9]))$/,type:"time"},{regex:/^[0-9]+-[0-9][0-9]$/,type:"gYearMonth"},{regex:/^[0-9]+$/,type:"gYear"}];ml.IRI_REGEX=/^([A-Za-z][A-Za-z0-9+-.]*|_):[^ "<>{}|\\\[\]`]*$/;Object.defineProperty(_T,"__esModule",{value:!0});_T.RdfaParser=void 0;const aPe=s4,G7=Pt,sPe=tPe,oPe=rPe,uPe=bu,pi=C1;class p4 extends G7.Transform{constructor(e){super({readableObjectMode:!0}),this.activeTagStack=[],e=e||{},this.options=e,this.util=new pi.Util(e.dataFactory,e.baseIRI),this.defaultGraph=e.defaultGraph||this.util.dataFactory.defaultGraph();const r=e.contentType?pi.Util.contentTypeToProfile(e.contentType):e.profile||"";this.features=e.features||uPe.RDFA_FEATURES[r],this.htmlParseListener=e.htmlParseListener,this.rdfaPatterns=this.features.copyRdfaPatterns?{}:null,this.pendingRdfaPatternCopies=this.features.copyRdfaPatterns?{}:null,this.parser=this.initializeParser(r==="xml"),this.activeTagStack.push({incompleteTriples:[],inlist:!1,language:e.language,listMapping:{},listMappingLocal:{},name:"",prefixesAll:Object.assign(Object.assign({},oPe["@context"]),this.features.xhtmlInitialContext?sPe["@context"]:{}),prefixesCustom:{},skipElement:!1,vocab:e.vocab})}import(e){const r=new G7.PassThrough({readableObjectMode:!0});e.on("error",a=>n.emit("error",a)),e.on("data",a=>r.push(a)),e.on("end",()=>r.push(null));const n=r.pipe(new p4(this.options));return n}_transform(e,r,n){this.parser.write(e.toString()),n()}_flush(e){this.parser.end(),e()}onTagOpen(e,r){let n=this.activeTagStack.length-1;for(;n>0&&this.activeTagStack[n].skipElement;)n--;let a=this.activeTagStack[n];n!==this.activeTagStack.length-1&&(a=Object.assign(Object.assign({},a),{language:this.activeTagStack[this.activeTagStack.length-1].language,prefixesAll:this.activeTagStack[this.activeTagStack.length-1].prefixesAll,prefixesCustom:this.activeTagStack[this.activeTagStack.length-1].prefixesCustom,vocab:this.activeTagStack[this.activeTagStack.length-1].vocab}));const s={collectChildTags:a.collectChildTags,incompleteTriples:[],inlist:"inlist"in r,listMapping:[],listMappingLocal:a.listMapping,localBaseIRI:a.localBaseIRI,name:e,prefixesAll:null,prefixesCustom:null,skipElement:!1};if(this.activeTagStack.push(s),s.collectChildTags){for(const m of Object.keys(a.prefixesCustom).sort()){const y=a.prefixesCustom[m],g=m===""?"xmlns":"xmlns:"+m;g in r||(r[g]=y)}const p=Object.keys(r).map(m=>`${m}="${r[m]}"`).join(" ");if(s.text=[`<${e}${p?" "+p:""}>`],this.features.skipHandlingXmlLiteralChildren)return}let o=!0,u=!0;if(this.features.onlyAllowUriRelRevIfProperty&&("property"in r&&"rel"in r&&(o=!1,r.rel.indexOf(":")<0&&delete r.rel),"property"in r&&"rev"in r&&(u=!1,r.rev.indexOf(":")<0&&delete r.rev)),this.features.copyRdfaPatterns){if(a.collectedPatternTag){const p={attributes:r,children:[],name:e,referenced:!1,rootPattern:!1,text:[]};a.collectedPatternTag.children.push(p),s.collectedPatternTag=p;return}if(r.typeof==="rdfa:Pattern"){s.collectedPatternTag={attributes:r,children:[],name:e,parentTag:a,referenced:!1,rootPattern:!0,text:[]};return}if(r.property==="rdfa:copy"){const p=r.resource||r.href||r.src;this.rdfaPatterns[p]?this.emitPatternCopy(a,this.rdfaPatterns[p],p):(this.pendingRdfaPatternCopies[p]||(this.pendingRdfaPatternCopies[p]=[]),this.pendingRdfaPatternCopies[p].push(a));return}}this.features.baseTag&&e==="base"&&r.href&&(this.util.baseIRI=this.util.getBaseIRI(r.href)),this.features.xmlBase&&r["xml:base"]&&(s.localBaseIRI=this.util.getBaseIRI(r["xml:base"])),this.features.timeTag&&e==="time"&&!r.datatype&&(s.interpretObjectAsTime=!0);let c,l,d;if("vocab"in r?r.vocab?(s.vocab=r.vocab,this.emitTriple(this.util.getBaseIriTerm(s),this.util.dataFactory.namedNode(pi.Util.RDFA+"usesVocabulary"),this.util.dataFactory.namedNode(s.vocab))):s.vocab=this.activeTagStack[0].vocab:s.vocab=a.vocab,s.prefixesCustom=pi.Util.parsePrefixes(r,a.prefixesCustom,this.features.xmlnsPrefixMappings),s.prefixesAll=Object.keys(s.prefixesCustom).length>0?Object.assign(Object.assign({},a.prefixesAll),s.prefixesCustom):a.prefixesAll,this.features.roleAttribute&&r.role){const p=r.id?this.util.createIri("#"+r.id,s,!1,!1,!1):this.util.createBlankNode(),m=s.vocab;s.vocab="http://www.w3.org/1999/xhtml/vocab#";for(const y of this.util.createVocabIris(r.role,s,!0,!1))this.emitTriple(p,this.util.dataFactory.namedNode("http://www.w3.org/1999/xhtml/vocab#role"),y);s.vocab=m}"xml:lang"in r||this.features.langAttribute&&"lang"in r?s.language=r["xml:lang"]||r.lang:s.language=a.language;const f=this.activeTagStack.length===2;if(!("rel"in r)&&!("rev"in r)?"property"in r&&!("content"in r)&&!("datatype"in r)?("about"in r?(c=this.util.createIri(r.about,s,!1,!0,!0),s.explicitNewSubject=!!c):f?c=!0:a.object&&(c=a.object),"typeof"in r&&("about"in r&&(d=this.util.createIri(r.about,s,!1,!0,!0)),!d&&f&&(d=!0),!d&&"resource"in r&&(d=this.util.createIri(r.resource,s,!1,!0,!0)),!d&&("href"in r||"src"in r)&&(d=this.util.createIri(r.href||r.src,s,!1,!1,!0)),!d&&this.isInheritSubjectInHeadBody(e)&&(d=c),d||(d=this.util.createBlankNode()),l=d)):(("about"in r||"resource"in r)&&(c=this.util.createIri(r.about||r.resource,s,!1,!0,!0),s.explicitNewSubject=!!c),!c&&("href"in r||"src"in r)&&(c=this.util.createIri(r.href||r.src,s,!1,!1,!0),s.explicitNewSubject=!!c),c||(f?c=!0:this.isInheritSubjectInHeadBody(e)?c=a.object:"typeof"in r?(c=this.util.createBlankNode(),s.explicitNewSubject=!0):a.object&&(c=a.object,"property"in r||(s.skipElement=!0))),"typeof"in r&&(d=c)):("about"in r?(c=this.util.createIri(r.about,s,!1,!0,!0),s.explicitNewSubject=!!c,"typeof"in r&&(d=c)):f?c=!0:a.object&&(c=a.object),"resource"in r&&(l=this.util.createIri(r.resource,s,!1,!0,!0)),l||("href"in r||"src"in r?l=this.util.createIri(r.href||r.src,s,!1,!1,!0):"typeof"in r&&!("about"in r)&&!this.isInheritSubjectInHeadBody(e)&&(l=this.util.createBlankNode())),"typeof"in r&&!("about"in r)&&(this.isInheritSubjectInHeadBody(e)?d=c:d=l)),d)for(const p of this.util.createVocabIris(r.typeof,s,!0,!0))this.emitTriple(this.util.getResourceOrBaseIri(d,s),this.util.dataFactory.namedNode(pi.Util.RDF+"type"),p);if(c&&(s.listMapping={}),l){if("rel"in r&&"inlist"in r)for(const p of this.util.createVocabIris(r.rel,s,o,!1))this.addListMapping(s,c,p,l);if(!("rel"in r&&"inlist"in r)){if("rel"in r)for(const p of this.util.createVocabIris(r.rel,s,o,!1))this.emitTriple(this.util.getResourceOrBaseIri(c,s),p,this.util.getResourceOrBaseIri(l,s));if("rev"in r)for(const p of this.util.createVocabIris(r.rev,s,u,!1))this.emitTriple(this.util.getResourceOrBaseIri(l,s),p,this.util.getResourceOrBaseIri(c,s))}}if(!l){if("rel"in r)if("inlist"in r)for(const p of this.util.createVocabIris(r.rel,s,o,!1))this.addListMapping(s,c,p,null),s.incompleteTriples.push({predicate:p,reverse:!1,list:!0});else for(const p of this.util.createVocabIris(r.rel,s,o,!1))s.incompleteTriples.push({predicate:p,reverse:!1});if("rev"in r)for(const p of this.util.createVocabIris(r.rev,s,u,!1))s.incompleteTriples.push({predicate:p,reverse:!0});s.incompleteTriples.length>0&&(l=this.util.createBlankNode())}if("property"in r){s.predicates=this.util.createVocabIris(r.property,s,!0,!1);let p;if("datatype"in r?(s.datatype=this.util.createIri(r.datatype,s,!0,!0,!1),s.datatype&&(s.datatype.value===pi.Util.RDF+"XMLLiteral"||this.features.htmlDatatype&&s.datatype.value===pi.Util.RDF+"HTML")&&(s.collectChildTags=!0)):(!("rev"in r)&&!("rel"in r)&&!("content"in r)&&("resource"in r&&(p=this.util.createIri(r.resource,s,!1,!0,!0)),!p&&"href"in r&&(p=this.util.createIri(r.href,s,!1,!1,!0)),!p&&"src"in r&&(p=this.util.createIri(r.src,s,!1,!1,!0))),"typeof"in r&&!("about"in r)&&(p=d)),"content"in r){const m=this.util.createLiteral(r.content,s);if("inlist"in r)for(const y of s.predicates)this.addListMapping(s,c,y,m);else{const y=this.util.getResourceOrBaseIri(c,s);for(const g of s.predicates)this.emitTriple(y,g,m)}s.predicates=null}else if(this.features.datetimeAttribute&&"datetime"in r){s.interpretObjectAsTime=!0;const m=this.util.createLiteral(r.datetime,s);if("inlist"in r)for(const y of s.predicates)this.addListMapping(s,c,y,m);else{const y=this.util.getResourceOrBaseIri(c,s);for(const g of s.predicates)this.emitTriple(y,g,m)}s.predicates=null}else if(p){const m=this.util.getResourceOrBaseIri(p,s);if("inlist"in r)for(const y of s.predicates)this.addListMapping(s,c,y,m);else{const y=this.util.getResourceOrBaseIri(c,s);for(const g of s.predicates)this.emitTriple(y,g,m)}s.predicates=null}}let h=!1;if(!s.skipElement&&c&&a.incompleteTriples.length>0){h=!0;const p=this.util.getResourceOrBaseIri(a.subject,s),m=this.util.getResourceOrBaseIri(c,s);for(const y of a.incompleteTriples)if(y.reverse)this.emitTriple(m,y.predicate,p);else if(y.list){let g=null;for(let b=this.activeTagStack.length-1;b>=0;b--)if(this.activeTagStack[b].inlist){g=this.activeTagStack[b];break}this.addListMapping(g,c,y.predicate,m)}else this.emitTriple(p,y.predicate,m)}!h&&a.incompleteTriples.length>0&&(s.incompleteTriples=s.incompleteTriples.concat(a.incompleteTriples)),s.subject=c||a.subject,s.object=l||c}onText(e){const r=this.activeTagStack[this.activeTagStack.length-1];if(this.features.copyRdfaPatterns&&r.collectedPatternTag){r.collectedPatternTag.text.push(e);return}r.text||(r.text=[]),r.text.push(e)}onTagClose(){const e=this.activeTagStack[this.activeTagStack.length-1],r=this.activeTagStack[this.activeTagStack.length-2];if(!(e.collectChildTags&&r.collectChildTags&&this.features.skipHandlingXmlLiteralChildren)){if(this.features.copyRdfaPatterns&&e.collectedPatternTag&&e.collectedPatternTag.rootPattern){const n=e.collectedPatternTag.attributes.resource;if(delete e.collectedPatternTag.attributes.resource,delete e.collectedPatternTag.attributes.typeof,this.rdfaPatterns[n]=e.collectedPatternTag,this.pendingRdfaPatternCopies[n]){for(const a of this.pendingRdfaPatternCopies[n])this.emitPatternCopy(a,e.collectedPatternTag,n);delete this.pendingRdfaPatternCopies[n]}this.activeTagStack.pop();return}if(e.predicates){const n=this.util.getResourceOrBaseIri(e.subject,e);let a=e.text||[];e.collectChildTags&&r.collectChildTags&&(a=a.slice(1));const s=this.util.createLiteral(a.join(""),e);if(e.inlist)for(const o of e.predicates)this.addListMapping(e,n,o,s);else for(const o of e.predicates)this.emitTriple(n,o,s);r.predicates||(e.text=null)}if(e.object&&Object.keys(e.listMapping).length>0){const n=this.util.getResourceOrBaseIri(e.object,e);for(const a in e.listMapping){const s=this.util.dataFactory.namedNode(a),o=e.listMapping[a];if(o.length>0){const u=o.map(()=>this.util.createBlankNode());for(let c=0;c`),e.text&&r&&(r.text?r.text=r.text.concat(e.text):r.text=e.text)}onEnd(){if(this.features.copyRdfaPatterns){this.features.copyRdfaPatterns=!1;for(const e in this.rdfaPatterns){const r=this.rdfaPatterns[e];r.referenced||(r.attributes.typeof="rdfa:Pattern",r.attributes.resource=e,this.emitPatternCopy(r.parentTag,r,e),r.referenced=!1,delete r.attributes.typeof,delete r.attributes.resource)}for(const e in this.pendingRdfaPatternCopies)for(const r of this.pendingRdfaPatternCopies[e])this.activeTagStack.push(r),this.onTagOpen("link",{property:"rdfa:copy",href:e}),this.onTagClose(),this.activeTagStack.pop();this.features.copyRdfaPatterns=!0}}isInheritSubjectInHeadBody(e){return this.features.inheritSubjectInHeadBody&&(e==="head"||e==="body")}addListMapping(e,r,n,a){if(e.explicitNewSubject){const s=this.util.createBlankNode();this.emitTriple(this.util.getResourceOrBaseIri(r,e),n,s),this.emitTriple(s,this.util.dataFactory.namedNode(pi.Util.RDF+"first"),this.util.getResourceOrBaseIri(a,e)),this.emitTriple(s,this.util.dataFactory.namedNode(pi.Util.RDF+"rest"),this.util.dataFactory.namedNode(pi.Util.RDF+"nil"))}else{let s=e.listMappingLocal[n.value];s||(e.listMappingLocal[n.value]=s=[]),a&&s.push(a)}}emitTriple(e,r,n){e.termType==="NamedNode"&&e.value.indexOf(":")<0||r.termType==="NamedNode"&&r.value.indexOf(":")<0||n.termType==="NamedNode"&&n.value.indexOf(":")<0||this.push(this.util.dataFactory.quad(e,r,n,this.defaultGraph))}emitPatternCopy(e,r,n){if(this.activeTagStack.push(e),r.referenced=!0,!r.constructedBlankNodes)r.constructedBlankNodes=[],this.util.blankNodeFactory=()=>{const a=this.util.dataFactory.blankNode();return r.constructedBlankNodes.push(a),a};else{let a=0;this.util.blankNodeFactory=()=>r.constructedBlankNodes[a++]}this.emitPatternCopyAbsolute(r,!0,n),this.util.blankNodeFactory=null,this.activeTagStack.pop()}emitPatternCopyAbsolute(e,r,n){if(!(!r&&e.attributes.property==="rdfa:copy"&&e.attributes.href===n)){this.onTagOpen(e.name,e.attributes);for(const a of e.text)this.onText(a);for(const a of e.children)this.emitPatternCopyAbsolute(a,!1,n);this.onTagClose()}}initializeParser(e){return new aPe.Parser({onclosetag:()=>{try{this.onTagClose(),this.htmlParseListener&&this.htmlParseListener.onTagClose()}catch(r){this.emit("error",r)}},onend:()=>{try{this.onEnd(),this.htmlParseListener&&this.htmlParseListener.onEnd()}catch(r){this.emit("error",r)}},onopentag:(r,n)=>{try{this.onTagOpen(r,n),this.htmlParseListener&&this.htmlParseListener.onTagOpen(r,n)}catch(a){this.emit("error",a)}},ontext:r=>{try{this.onText(r),this.htmlParseListener&&this.htmlParseListener.onText(r)}catch(n){this.emit("error",n)}}},{decodeEntities:!0,recognizeSelfClosing:!0,xmlMode:e})}}_T.RdfaParser=p4;(function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(MZ,t),r(FZ,t),r(BZ,t),r(_T,t),r(bu,t),r(C1,t)})(a4);var W7;function cPe(){if(W7)return n0;W7=1,Object.defineProperty(n0,"__esModule",{value:!0}),n0.ActorRdfParseXmlRdfa=void 0;const t=Mf(),e=a4;let r=class extends t.ActorRdfParseFixedMediaTypes{constructor(a){super(a)}async runHandle(a,s,o){var l;const u=(a.headers&&a.headers.get("content-language"))??void 0;a.data.on("error",d=>c.emit("error",d));const c=a.data.pipe(new e.RdfaParser({baseIRI:(l=a.metadata)==null?void 0:l.baseIRI,profile:"xml",language:u}));return{data:c,metadata:{triples:!0}}}};return n0.ActorRdfParseXmlRdfa=r,n0}var K7;function lPe(){return K7||(K7=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(cPe(),t)}(BO)),BO}var $O={},i0={},y4={},dPe=function(){var t=function(be,ve,Fe,Je){for(Fe=Fe||{},Je=be.length;Je--;Fe[be[Je]]=ve);return Fe},e=[7,12,13,14,15,16,20,25,115,130],r=[7,13,16,20,25,115,130],n=[7,13,16,115,130],a=[1,25],s=[1,29],o=[1,27],u=[1,28],c=[13,16,115,130],l=[13,16,28,38,40,42,44,46,48,53,56,61,67,85,87,92,93,95,96,102,110,111,115,119,120,126,128,129,130,131,132,133,134,135,136],d=[28,56],f=[1,42],h=[46,48,53,56],p=[1,54],m=[1,60],y=[1,56],g=[1,57],b=[1,58],v=[1,63],_=[1,64],w=[1,65],E=[1,66],O=[1,67],L=[1,68],F=[1,75],x=[28,46,48,53,56],P=[28,42,46,48,53,56],j=[13,16,28,38,40,42,44,46,48,53,56,92,115,119,120,130,131,132,133,134,135,136],N=[13,16,28,38,40,42,44,46,48,53,56,67,85,87,92,95,96,115,119,120,126,128,129,130,131,132,133,134,135,136],V=[13,16,38,40,44,92,115,119,120,130,131,132,133,134,135,136],$=[13,16,28,38,40,42,44,46,48,53,56,67,85,87,92,95,96,115,117,118,119,120,126,128,129,130,131,132,133,134,135,136],q=[13,16,28,56,115,130],H=[13,16,38,58,87,96,109,115,126,130],X=[1,116],Y=[1,112],he=[1,108],Te=[1,114],Ne=[1,111],$e=[7,13,16,20,25,44,48,53,56,67,85,87,95,96,115,128,129,130],de=[48,53],ce=[48,53,87,96,126],xe=[13,16,44,48,53,56,85,87,95,96,115,128,129,130],Pe=[1,126],we=[13,16,40,44,48,53,56,85,87,95,96,115,128,129,130],Re=[1,129],Se=[48,53,67,87,96,126],z=[13,16,40,44,48,53,56,67,85,87,95,96,115,128,129,130],M=[1,133],k=[13,16,40,44,48,53,56,67,85,87,95,96,102,115,128,129,130],T=[13,16,40,44,48,53,56,67,85,87,93,95,96,102,110,111,115,128,129,130],R=[1,151],U=[1,153],G=[1,156],Q=[1,157],Z=[1,158],se=[1,167],re=[1,175],le=[13,16,44,48,53,56,67,85,87,95,96,115,128,129,130],pe=[13,16,44,48,53,56,67,85,87,95,96,115,126,128,129,130],_e=[13,16,46,92,115,119,120,130,131,132,133,134,135,136],Ie={trace:function(){},yy:{},symbols_:{error:2,shaclDoc:3,shaclDoc_repetition0:4,shaclDoc_repetition1:5,ttlSection:6,EOF:7,directive:8,baseDecl:9,importsDecl:10,prefixDecl:11,KW_BASE:12,IRIREF:13,KW_IMPORTS:14,KW_PREFIX:15,PNAME_NS:16,nodeShapeIri:17,iri:18,nodeShape:19,KW_SHAPE:20,nodeShape_option0:21,nodeShape_option1:22,nodeShapeBody:23,shapeClass:24,KW_SHAPE_CLASS:25,shapeClass_option0:26,turtleAnnotation:27,";":28,turtleAnnotation2:29,predicate:30,turtleAnnotation2_option0:31,objectList:32,object:33,objectList_repetition0:34,iriOrLiteral:35,blankNodeSection:36,list:37,"(":38,list_repetition0:39,")":40,objectTail:41,",":42,LB:43,"[":44,RB:45,"]":46,LP:47,"%":48,RP:49,pcSection:50,iriHead:51,ttlStatement:52,".":53,ttlSection_repetition0:54,startNodeShape:55,"{":56,endNodeShape:57,"}":58,nodeShapeBody_repetition0:59,targetClass:60,"->":61,targetClass_repetition_plus0:62,constraint:63,constraint_group0:64,constraint_option0:65,orNotComponent:66,"|":67,nodeNot:68,nodeOrEmit:69,nodeOr:70,nodeOr_repetition_plus0:71,nodeValue:72,negation:73,nodeValue_group0:74,"=":75,iriOrLiteralOrArray:76,propertyShape:77,path:78,propertyShape_repetition0:79,propertyOrComponent:80,propertyNot:81,propertyOr:82,propertyOr_repetition_plus0:83,propertyAtom:84,NODEKIND:85,shapeRef:86,PARAM:87,propertyCount:88,propertyMinCount:89,"..":90,propertyMaxCount:91,INTEGER:92,"*":93,shapeRef_group0:94,"@":95,"!":96,pathAlternative:97,additionalAlternative:98,pathSequence:99,pathAlternative_repetition_plus0:100,additionalSequence:101,"/":102,pathEltOrInverse:103,pathSequence_repetition_plus0:104,pathElt:105,pathPrimary:106,pathMod:107,pathInverse:108,"^":109,"?":110,"+":111,iriOrLiteralOrArray_repetition0:112,literal:113,iri_group0:114,a:115,string:116,LANGTAG:117,"^^":118,DECIMAL:119,DOUBLE:120,literal_group0:121,string_group0:122,string_group1:123,shaclDoc_repetition1_group0:124,constraint_group0_repetition_plus0:125,TARGET:126,propertyShape_repetition0_group0:127,ATPNAME_LN:128,ATPNAME_NS:129,PNAME_LN:130,KW_TRUE:131,KW_FALSE:132,STRING_LITERAL1:133,STRING_LITERAL2:134,STRING_LITERAL_LONG1:135,STRING_LITERAL_LONG2:136,$accept:0,$end:1},terminals_:{2:"error",7:"EOF",12:"KW_BASE",13:"IRIREF",14:"KW_IMPORTS",15:"KW_PREFIX",16:"PNAME_NS",20:"KW_SHAPE",25:"KW_SHAPE_CLASS",28:";",38:"(",40:")",42:",",44:"[",46:"]",48:"%",53:".",56:"{",58:"}",61:"->",67:"|",75:"=",85:"NODEKIND",87:"PARAM",90:"..",92:"INTEGER",93:"*",95:"@",96:"!",102:"/",109:"^",110:"?",111:"+",115:"a",117:"LANGTAG",118:"^^",119:"DECIMAL",120:"DOUBLE",126:"TARGET",128:"ATPNAME_LN",129:"ATPNAME_NS",130:"PNAME_LN",131:"KW_TRUE",132:"KW_FALSE",133:"STRING_LITERAL1",134:"STRING_LITERAL2",135:"STRING_LITERAL_LONG1",136:"STRING_LITERAL_LONG2"},productions_:[0,[3,4],[8,1],[8,1],[8,1],[9,2],[10,2],[11,3],[17,1],[19,5],[24,4],[27,2],[29,2],[30,2],[32,2],[33,1],[33,1],[33,1],[37,3],[41,2],[43,1],[45,1],[36,3],[47,1],[49,1],[50,3],[51,1],[52,3],[6,1],[55,1],[57,1],[23,3],[60,2],[63,3],[66,2],[69,1],[70,1],[70,2],[68,1],[68,2],[72,3],[77,2],[80,2],[82,1],[82,2],[81,1],[81,2],[84,1],[84,1],[84,1],[84,3],[84,1],[88,5],[89,1],[91,1],[91,1],[86,1],[86,2],[73,1],[78,1],[98,2],[97,1],[97,2],[101,2],[99,1],[99,2],[105,1],[105,2],[103,1],[103,2],[108,1],[107,1],[107,1],[107,1],[106,1],[106,3],[76,1],[76,3],[35,1],[35,1],[18,1],[18,1],[18,1],[113,1],[113,2],[113,3],[113,1],[113,1],[113,1],[113,1],[116,1],[116,1],[4,0],[4,2],[124,1],[124,1],[5,0],[5,2],[21,0],[21,1],[22,0],[22,1],[26,0],[26,1],[31,0],[31,1],[34,0],[34,2],[39,0],[39,2],[54,0],[54,2],[59,0],[59,2],[62,1],[62,2],[125,1],[125,2],[64,1],[64,1],[65,0],[65,1],[71,1],[71,2],[74,1],[74,1],[127,1],[127,1],[79,0],[79,2],[83,1],[83,2],[94,1],[94,1],[100,1],[100,2],[104,1],[104,2],[112,0],[112,2],[114,1],[114,1],[121,1],[121,1],[122,1],[122,1],[123,1],[123,1]],performAction:function(ve,Fe,Je,lt,rt,Qe,di){var tt=Qe.length-1;switch(rt){case 1:this.$=te(ie.factory.namedNode(De("")),ie.factory.namedNode(Me),ie.factory.namedNode(ge+"Ontology"));break;case 5:ie.base=ie.factory.namedNode(Qe[tt].slice(1,-1)),ie.n3Parser._setBase(ie.base.value);break;case 6:this.$=te(ie.base,ie.factory.namedNode(ge+"imports"),ie.factory.namedNode(Qe[tt].slice(1,-1)));break;case 7:this.$=ie.prefixes[Qe[tt-1].substr(0,Qe[tt-1].length-1)]=De(Qe[tt]);break;case 8:ie.nodeShapeStack=!1,te(ie.currentNodeShape=Qe[tt],ie.factory.namedNode(Me),ie.factory.namedNode(fe+"NodeShape"));break;case 10:this.$=te(ie.currentNodeShape,ie.factory.namedNode(Me),ie.factory.namedNode(Le+"Class"));break;case 11:this.$=C();break;case 13:this.$=Qe[tt].forEach(Gt=>te(ie.currentNodeShape,Qe[tt-1],Gt));break;case 14:this.$=[Qe[tt-1],...Qe[tt]];break;case 18:this.$=Oe(Qe[tt-1],!0);break;case 19:case 34:case 42:case 60:case 63:this.$=Qe[tt];break;case 20:ie.tempCurrentNodeShape=ie.currentNodeShape,this.$=ie.currentNodeShape=at();break;case 21:ie.currentNodeShape=ie.tempCurrentNodeShape;break;case 22:case 31:this.$=Qe[tt-2];break;case 23:ie.tempCurrentNodeShape=ie.currentNodeShape,ie.currentNodeShape=ie.currentPropertyNode;break;case 24:ie.currentNodeShape=ie.tempCurrentNodeShape;break;case 26:ie.currentNodeShape=Qe[tt];break;case 29:ie.nodeShapeStack?(ie.nodeShapeStack.push(ie.currentNodeShape),te(ie.currentPropertyNode,ie.factory.namedNode(fe+"node"),ie.currentNodeShape=at())):ie.nodeShapeStack=[],this.$=ie.currentNodeShape;break;case 30:ie.nodeShapeStack.length>0&&(ie.currentNodeShape=ie.nodeShapeStack.pop());break;case 32:this.$=Qe[tt].forEach(Gt=>{te(ie.currentNodeShape,ie.factory.namedNode(fe+"targetClass"),Gt)});break;case 35:this.$=te(ie.currentNodeShape,ie.factory.namedNode(fe+Qe[tt][0]),Qe[tt][1]);break;case 36:break;case 37:const $r=Oe([Qe[tt-1],...Qe[tt]].map(Gt=>{const Nr=at();return te(Nr,ie.factory.namedNode(fe+Gt[0]),Gt[1]),Nr}));this.$=["or",$r];break;case 39:case 46:this.$=A("not",...Qe[tt]);break;case 40:case 50:this.$=[Qe[tt-2],Qe[tt]];break;case 43:this.$=Qe[tt]&&S(...Qe[tt]);break;case 44:this.$=S("or",Oe([Qe[tt-1],...Qe[tt]].map(Gt=>{const Nr=at();return te(Nr,ie.factory.namedNode(fe+Gt[0]),Gt[1]),Nr})));break;case 47:this.$=[ee[Qe[tt].value]?"datatype":"class",Qe[tt]];break;case 48:this.$=["nodeKind",ie.factory.namedNode(fe+Qe[tt])];break;case 49:this.$=["node",ie.factory.namedNode(Qe[tt])];break;case 51:this.$=void 0;break;case 53:this.$=Qe[tt]>0&&S("minCount",Ye(Qe[tt],D));break;case 54:this.$=S("maxCount",Ye(Qe[tt],D));break;case 56:this.$=Ue(Qe[tt].slice(1));break;case 57:this.$=De(Qe[tt]);break;case 59:te(ie.currentNodeShape,ie.factory.namedNode(fe+"property"),ie.currentPropertyNode=at()),S("path",Qe[tt]);break;case 62:const Xt=at();te(Xt,ie.factory.namedNode(fe+"alternativePath"),Oe([Qe[tt-1],...Qe[tt]])),this.$=Xt;break;case 65:this.$=Oe([Qe[tt-1],...Qe[tt]]);break;case 67:te(this.$=at(),ie.factory.namedNode(fe+Qe[tt]),Qe[tt-1]);break;case 69:te(this.$=at(),ie.factory.namedNode(fe+"inversePath"),Qe[tt]);break;case 71:this.$="zeroOrOnePath";break;case 72:this.$="zeroOrMorePath";break;case 73:this.$="oneOrMorePath";break;case 75:this.$=Qe[tt-1];break;case 77:this.$=Oe(Qe[tt-1]);break;case 80:this.$=ie.factory.namedNode(De(Qe[tt]));break;case 81:this.$=ie.factory.namedNode(Ue(Qe[tt]));break;case 82:this.$=C(ie.factory.namedNode(Me));break;case 83:this.$=Ye(Qe[tt]);break;case 84:this.$=ut(Qe[tt-1],lowercase(Qe[tt].substr(1)));break;case 85:this.$=Ye(Qe[tt-2],Qe[tt]);break;case 86:this.$=Ye(Qe[tt],D);break;case 87:this.$=Ye(Qe[tt],B);break;case 88:this.$=Ye(Qe[tt].toLowerCase(),K);break;case 89:this.$=Ye(Qe[tt].toLowerCase(),ne);break;case 90:this.$=ht(Qe[tt],1);break;case 91:this.$=ht(Qe[tt],3);break;case 92:case 96:case 106:case 108:case 110:case 112:case 128:case 138:this.$=[];break;case 93:case 97:case 107:case 109:case 111:case 113:case 115:case 117:case 123:case 129:case 131:case 135:case 137:case 139:Qe[tt-1].push(Qe[tt]);break;case 114:case 116:case 122:case 130:case 134:case 136:this.$=[Qe[tt]];break}},table:[t(e,[2,92],{3:1,4:2}),{1:[3]},t(r,[2,96],{5:3,8:4,9:5,10:6,11:7,12:[1,8],14:[1,9],15:[1,10]}),t(n,[2,110],{6:11,124:12,54:13,19:14,24:15,20:[1,16],25:[1,17]}),t(e,[2,93]),t(e,[2,2]),t(e,[2,3]),t(e,[2,4]),{13:[1,18]},{13:[1,19]},{16:[1,20]},{7:[1,21]},t(r,[2,97]),{7:[2,28],13:a,16:s,18:24,51:23,52:22,114:26,115:o,130:u},t(r,[2,94]),t(r,[2,95]),{13:a,16:s,17:30,18:31,114:26,115:o,130:u},{13:a,16:s,17:32,18:31,114:26,115:o,130:u},t(e,[2,5]),t(e,[2,6]),{13:[1,33]},{1:[2,1]},t(n,[2,111]),{13:a,16:s,18:36,29:34,30:35,114:26,115:o,130:u},t(c,[2,26]),t(l,[2,80]),t(l,[2,81]),t(l,[2,82]),t(l,[2,140]),t(l,[2,141]),t(d,[2,98],{21:37,60:38,61:[1,39]}),t([28,56,61],[2,8]),{26:40,27:41,28:f,56:[2,102]},t(e,[2,7]),{53:[1,43]},t(h,[2,104],{31:44,27:45,28:f}),{13:a,16:s,18:51,32:46,33:47,35:48,36:49,37:50,38:p,43:53,44:m,92:y,113:52,114:26,115:o,116:55,119:g,120:b,121:59,122:61,123:62,130:u,131:v,132:_,133:w,134:E,135:O,136:L},{22:69,27:70,28:f,56:[2,100]},t(d,[2,99]),{13:a,16:s,18:72,62:71,114:26,115:o,130:u},{23:73,55:74,56:F},{56:[2,103]},{13:a,16:s,18:36,29:76,30:35,114:26,115:o,130:u},t(n,[2,27]),t(h,[2,12]),t(h,[2,105]),t(x,[2,13]),t(P,[2,106],{34:77}),t(j,[2,15]),t(j,[2,16]),t(j,[2,17]),t(N,[2,78]),t(N,[2,79]),{13:a,16:s,18:36,29:78,30:35,114:26,115:o,130:u},t(V,[2,108],{39:79}),t(N,[2,83],{117:[1,80],118:[1,81]}),t(N,[2,86]),t(N,[2,87]),t(N,[2,88]),t(N,[2,89]),t(c,[2,20]),t($,[2,90]),t($,[2,91]),t(N,[2,142]),t(N,[2,143]),t($,[2,144]),t($,[2,145]),t($,[2,146]),t($,[2,147]),{23:82,55:74,56:F},{56:[2,101]},t(d,[2,32],{114:26,18:83,13:a,16:s,115:o,130:u}),t(q,[2,114]),t(r,[2,10]),t(H,[2,112],{59:84}),t(H,[2,29]),t(h,[2,11]),t(x,[2,14],{41:85,42:[1,86]}),{45:87,46:[1,88]},{13:a,16:s,18:51,33:90,35:48,36:49,37:50,38:p,40:[1,89],43:53,44:m,92:y,113:52,114:26,115:o,116:55,119:g,120:b,121:59,122:61,123:62,130:u,131:v,132:_,133:w,134:E,135:O,136:L},t(N,[2,84]),{13:a,16:s,18:91,114:26,115:o,130:u},t(r,[2,9]),t(q,[2,115]),{13:a,16:s,18:115,38:X,57:92,58:[1,94],63:93,64:95,68:102,69:98,70:100,72:104,73:105,74:107,77:97,78:99,87:Y,96:he,97:101,99:103,103:106,105:109,106:113,108:110,109:Te,114:26,115:o,125:96,126:Ne,130:u},t(P,[2,107]),{13:a,16:s,18:51,33:117,35:48,36:49,37:50,38:p,43:53,44:m,92:y,113:52,114:26,115:o,116:55,119:g,120:b,121:59,122:61,123:62,130:u,131:v,132:_,133:w,134:E,135:O,136:L},t(j,[2,22]),t(j,[2,21]),t(j,[2,18]),t(V,[2,109]),t(N,[2,85]),t($e,[2,31]),t(H,[2,113]),t($e,[2,30]),{47:120,48:[1,121],50:119,53:[2,120],65:118},t(de,[2,118],{70:100,68:102,72:104,73:105,74:107,69:122,87:Y,96:he,126:Ne}),t(de,[2,119]),t(ce,[2,116]),t(xe,[2,128],{79:123}),t(ce,[2,35]),t(xe,[2,59]),t(ce,[2,36],{71:124,66:125,67:Pe}),t(we,[2,61],{100:127,98:128,67:Re}),t(Se,[2,38]),{72:130,74:107,87:Y,126:Ne},t(z,[2,64],{104:131,101:132,102:M}),{75:[1,134]},t([13,16,56,85,87,95,115,126,128,129,130],[2,58]),t(k,[2,68]),{13:a,16:s,18:115,38:X,105:135,106:113,114:26,115:o,130:u},{75:[2,124]},{75:[2,125]},t(k,[2,66],{107:136,93:[1,138],110:[1,137],111:[1,139]}),t([13,16,38,115,130],[2,70]),t(T,[2,74]),{13:a,16:s,18:115,38:X,97:140,99:103,103:106,105:109,106:113,108:110,109:Te,114:26,115:o,130:u},t(P,[2,19]),{53:[1,141]},{53:[2,121]},{13:a,16:s,18:36,29:142,30:35,114:26,115:o,130:u},t(c,[2,23]),t(ce,[2,117]),t(de,[2,41],{114:26,55:74,127:143,88:144,82:145,81:147,84:148,73:149,18:150,86:152,23:154,94:155,13:a,16:s,44:[1,146],56:F,85:R,87:U,95:G,96:he,115:o,128:Q,129:Z,130:u}),t(ce,[2,37],{66:159,67:Pe}),t(Se,[2,122]),{68:160,72:104,73:105,74:107,87:Y,96:he,126:Ne},t(we,[2,62],{98:161,67:Re}),t(z,[2,134]),{13:a,16:s,18:115,38:X,99:162,103:106,105:109,106:113,108:110,109:Te,114:26,115:o,130:u},t(Se,[2,39]),t(z,[2,65],{101:163,102:M}),t(k,[2,136]),{13:a,16:s,18:115,38:X,103:164,105:109,106:113,108:110,109:Te,114:26,115:o,130:u},{13:a,16:s,18:51,35:166,44:se,76:165,92:y,113:52,114:26,115:o,116:55,119:g,120:b,121:59,122:61,123:62,130:u,131:v,132:_,133:w,134:E,135:O,136:L},t(k,[2,69]),t(k,[2,67]),t(k,[2,71]),t(k,[2,72]),t(k,[2,73]),{40:[1,168]},t(H,[2,33]),{48:[1,170],49:169},t(xe,[2,129]),t(xe,[2,126]),t(xe,[2,127]),{89:171,92:[1,172]},t(xe,[2,43],{83:173,80:174,67:re}),t(le,[2,45]),{13:a,16:s,18:150,23:154,55:74,56:F,84:176,85:R,86:152,87:U,94:155,95:G,114:26,115:o,128:Q,129:Z,130:u},t(le,[2,47]),t(le,[2,48]),t(le,[2,49]),{75:[1,177]},t(le,[2,51]),t(le,[2,56]),{13:[1,178]},t(le,[2,132]),t(le,[2,133]),t(Se,[2,123]),t(Se,[2,34]),t(z,[2,135]),t(z,[2,60]),t(k,[2,137]),t(k,[2,63]),t(Se,[2,40]),t(pe,[2,76]),t(_e,[2,138],{112:179}),t(T,[2,75]),{53:[2,25]},{53:[2,24]},{90:[1,180]},{90:[2,53]},t(xe,[2,44],{80:181,67:re}),t(le,[2,130]),{13:a,16:s,18:150,23:154,55:74,56:F,73:149,81:182,84:148,85:R,86:152,87:U,94:155,95:G,96:he,114:26,115:o,128:Q,129:Z,130:u},t(le,[2,46]),{13:a,16:s,18:51,35:166,44:se,76:183,92:y,113:52,114:26,115:o,116:55,119:g,120:b,121:59,122:61,123:62,130:u,131:v,132:_,133:w,134:E,135:O,136:L},t(le,[2,57]),{13:a,16:s,18:51,35:185,46:[1,184],92:y,113:52,114:26,115:o,116:55,119:g,120:b,121:59,122:61,123:62,130:u,131:v,132:_,133:w,134:E,135:O,136:L},{91:186,92:[1,187],93:[1,188]},t(le,[2,131]),t(le,[2,42]),t(le,[2,50]),t(pe,[2,77]),t(_e,[2,139]),{46:[1,189]},{46:[2,54]},{46:[2,55]},t(xe,[2,52])],defaultActions:{21:[2,1],41:[2,103],70:[2,101],111:[2,124],112:[2,125],119:[2,121],169:[2,25],170:[2,24],172:[2,53],187:[2,54],188:[2,55]},parseError:function(ve,Fe){if(Fe.recoverable)this.trace(ve);else{var Je=new Error(ve);throw Je.hash=Fe,Je}},parse:function(ve){var Fe=this,Je=[0],lt=[null],rt=[],Qe=this.table,di="",tt=0,$r=0,Xt=2,Gt=1,Nr=rt.slice.call(arguments,1),Ct=Object.create(this.lexer),zi={yy:{}};for(var Ai in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ai)&&(zi.yy[Ai]=this.yy[Ai]);Ct.setInput(ve,zi.yy),zi.yy.lexer=Ct,zi.yy.parser=this,typeof Ct.yylloc>"u"&&(Ct.yylloc={});var or=Ct.yylloc;rt.push(or);var xs=Ct.options&&Ct.options.ranges;typeof zi.yy.parseError=="function"?this.parseError=zi.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var xo=function(){var Pn;return Pn=Ct.lex()||Gt,typeof Pn!="number"&&(Pn=Fe.symbols_[Pn]||Pn),Pn},Vr,fi,on,Oi,un={},_a,Zr,Va,ba;;){if(fi=Je[Je.length-1],this.defaultActions[fi]?on=this.defaultActions[fi]:((Vr===null||typeof Vr>"u")&&(Vr=xo()),on=Qe[fi]&&Qe[fi][Vr]),typeof on>"u"||!on.length||!on[0]){var Un="";ba=[];for(_a in Qe[fi])this.terminals_[_a]&&_a>Xt&&ba.push("'"+this.terminals_[_a]+"'");Ct.showPosition?Un="Parse error on line "+(tt+1)+`: +`,r=this.i,a=Ra;break;case Lr:return this.text+=n.slice(r),!1}if(a===e)return this.text+=n.slice(r,this.prevI),!0}}captureNameChars(){const{chunk:e,i:r}=this;for(;;){const n=this.getCode();if(n===Lr)return this.name+=e.slice(r),Lr;if(!S7(n))return this.name+=e.slice(r,this.prevI),n===Wa?Ra:n}}skipSpaces(){for(;;){const e=this.getCodeNorm();if(e===Lr||!hi(e))return e}}setXMLVersion(e){this.currentXMLVersion=e,e==="1.0"?(this.isChar=nxe,this.getCode=this.getCode10):(this.isChar=axe,this.getCode=this.getCode11)}sBegin(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=dxe}sBeginWhitespace(){const e=this.i,r=this.skipSpaces();switch(this.prevI!==e&&(this.xmlDeclPossible=!1),r){case Zo:if(this.state=RO,this.text.length!==0)throw new Error("no-empty text at start");break;case Lr:break;default:this.unget(),this.state=zn,this.xmlDeclPossible=!1}}sDoctype(){var e;const r=this.captureTo(Mxe);switch(r){case ln:{(e=this.doctypeHandler)===null||e===void 0||e.call(this,this.text),this.text="",this.state=zn,this.doctype=!0;break}case Lr:break;default:this.text+=String.fromCodePoint(r),r===DZ?this.state=Fl:Gv(r)&&(this.state=fxe,this.q=r)}}sDoctypeQuote(){const e=this.q;this.captureToChar(e)&&(this.text+=String.fromCodePoint(e),this.q=null,this.state=AO)}sDTD(){const e=this.captureTo(Fxe);e!==Lr&&(this.text+=String.fromCodePoint(e),e===Xl?this.state=AO:e===Zo?this.state=pxe:Gv(e)&&(this.state=hxe,this.q=e))}sDTDQuoted(){const e=this.q;this.captureToChar(e)&&(this.text+=String.fromCodePoint(e),this.state=Fl,this.q=null)}sDTDOpenWaka(){const e=this.getCodeNorm();switch(this.text+=String.fromCodePoint(e),e){case N7:this.state=yxe,this.openWakaBang="";break;case Tn:this.state=_xe;break;default:this.state=Fl}}sDTDOpenWakaBang(){const e=String.fromCodePoint(this.getCodeNorm()),r=this.openWakaBang+=e;this.text+=e,r!=="-"&&(this.state=r==="--"?OO:Fl,this.openWakaBang="")}sDTDComment(){this.captureToChar(Qv)&&(this.text+="-",this.state=mxe)}sDTDCommentEnding(){const e=this.getCodeNorm();this.text+=String.fromCodePoint(e),this.state=e===Qv?gxe:OO}sDTDCommentEnded(){const e=this.getCodeNorm();this.text+=String.fromCodePoint(e),e===ln?this.state=Fl:(this.fail("malformed comment."),this.state=OO)}sDTDPI(){this.captureToChar(Tn)&&(this.text+="?",this.state=bxe)}sDTDPIEnding(){const e=this.getCodeNorm();this.text+=String.fromCodePoint(e),e===ln&&(this.state=Fl)}sText(){this.tags.length!==0?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let{i:e}=this;const{chunk:r}=this;e:for(;;)switch(this.getCode()){case Wa:this.entity+=`${r.slice(e,this.prevI)} +`,e=this.i;break;case jxe:{const{entityReturnState:n}=this,a=this.entity+r.slice(e,this.prevI);this.state=n;let s;a===""?(this.fail("empty entity name."),s="&;"):(s=this.parseEntity(a),this.entity=""),(n!==zn||this.textHandler!==void 0)&&(this.text+=s);break e}case Lr:this.entity+=r.slice(e);break e}}sOpenWaka(){const e=this.getCode();if(t0(e))this.state=Pxe,this.unget(),this.xmlDeclPossible=!1;else switch(e){case zv:this.state=Cxe,this.xmlDeclPossible=!1;break;case N7:this.state=vxe,this.openWakaBang="",this.xmlDeclPossible=!1;break;case Tn:this.state=Axe;break;default:this.fail("disallowed character in tag name"),this.state=zn,this.xmlDeclPossible=!1}}sOpenWakaBang(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":!this.sawRoot&&!this.reportedTextBeforeRoot&&(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0),this.state=IO,this.openWakaBang="";break;case"--":this.state=xO,this.openWakaBang="";break;case"DOCTYPE":this.state=AO,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}sComment(){this.captureToChar(Qv)&&(this.state=wxe)}sCommentEnding(){var e;const r=this.getCodeNorm();r===Qv?(this.state=Sxe,(e=this.commentHandler)===null||e===void 0||e.call(this,this.text),this.text=""):(this.text+=`-${String.fromCodePoint(r)}`,this.state=xO)}sCommentEnded(){const e=this.getCodeNorm();e!==ln?(this.fail("malformed comment."),this.text+=`--${String.fromCodePoint(e)}`,this.state=xO):this.state=zn}sCData(){this.captureToChar(Xl)&&(this.state=Txe)}sCDataEnding(){const e=this.getCodeNorm();e===Xl?this.state=Exe:(this.text+=`]${String.fromCodePoint(e)}`,this.state=IO)}sCDataEnding2(){var e;const r=this.getCodeNorm();switch(r){case ln:{(e=this.cdataHandler)===null||e===void 0||e.call(this,this.text),this.text="",this.state=zn;break}case Xl:this.text+="]";break;default:this.text+=`]]${String.fromCodePoint(r)}`,this.state=IO}}sPIFirstChar(){const e=this.getCodeNorm();this.nameStartCheck(e)?(this.piTarget+=String.fromCodePoint(e),this.state=E7):e===Tn||hi(e)?(this.fail("processing instruction without a target."),this.state=e===Tn?Hv:PO):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(e),this.state=E7)}sPIRest(){const{chunk:e,i:r}=this;for(;;){const n=this.getCodeNorm();if(n===Lr){this.piTarget+=e.slice(r);return}if(!this.nameCheck(n)){this.piTarget+=e.slice(r,this.prevI);const a=n===Tn;a||hi(n)?this.piTarget==="xml"?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=a?Zu:A7):this.state=a?Hv:PO:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(n));break}}}sPIBody(){if(this.text.length===0){const e=this.getCodeNorm();e===Tn?this.state=Hv:hi(e)||(this.text=String.fromCodePoint(e))}else this.captureToChar(Tn)&&(this.state=Hv)}sPIEnding(){var e;const r=this.getCodeNorm();if(r===ln){const{piTarget:n}=this;n.toLowerCase()==="xml"&&this.fail("the XML declaration must appear at the start of the document."),(e=this.piHandler)===null||e===void 0||e.call(this,{target:n,body:this.text}),this.piTarget=this.text="",this.state=zn}else r===Tn?this.text+="?":(this.text+=`?${String.fromCodePoint(r)}`,this.state=PO);this.xmlDeclPossible=!1}sXMLDeclNameStart(){const e=this.skipSpaces();if(e===Tn){this.state=Zu;return}e!==Lr&&(this.state=Oxe,this.name=String.fromCodePoint(e))}sXMLDeclName(){const e=this.captureTo(Bxe);if(e===Tn){this.state=Zu,this.name+=this.text,this.text="",this.fail("XML declaration is incomplete.");return}if(hi(e)||e===Jl){if(this.name+=this.text,this.text="",!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);break;default:this.fail(`expected one of ${this.xmlDeclExpects.join(", ")}`)}this.state=e===Jl?O7:Rxe}}sXMLDeclEq(){const e=this.getCodeNorm();if(e===Tn){this.state=Zu,this.fail("XML declaration is incomplete.");return}hi(e)||(e!==Jl&&this.fail("value required."),this.state=O7)}sXMLDeclValueStart(){const e=this.getCodeNorm();if(e===Tn){this.state=Zu,this.fail("XML declaration is incomplete.");return}hi(e)||(Gv(e)?this.q=e:(this.fail("value must be quoted."),this.q=P7),this.state=xxe)}sXMLDeclValue(){const e=this.captureTo([this.q,Tn]);if(e===Tn){this.state=Zu,this.text="",this.fail("XML declaration is incomplete.");return}if(e===Lr)return;const r=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];const n=r;this.xmlDecl.version=n,/^1\.[0-9]+$/.test(n)?this.opt.forceXMLVersion||this.setXMLVersion(n):this.fail("version number must match /^1\\.[0-9]+$/.");break}case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(r)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=r;break;case"standalone":r!=="yes"&&r!=="no"&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=r;break}this.name="",this.state=Ixe}sXMLDeclSeparator(){const e=this.getCodeNorm();if(e===Tn){this.state=Zu;return}hi(e)||(this.fail("whitespace required."),this.unget()),this.state=A7}sXMLDeclEnding(){var e;this.getCodeNorm()===ln?(this.piTarget!=="xml"?this.fail("processing instructions are not allowed before root."):this.name!=="version"&&this.xmlDeclExpects.includes("version")&&this.fail("XML declaration must contain a version."),(e=this.xmldeclHandler)===null||e===void 0||e.call(this,this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=zn):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}sOpenTag(){var e;const r=this.captureNameChars();if(r===Lr)return;const n=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=n.ns=Object.create(null)),(e=this.openTagStartHandler)===null||e===void 0||e.call(this,n),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),r){case ln:this.openTag();break;case zv:this.state=NO;break;default:hi(r)||this.fail("disallowed character in tag name."),this.state=r0}}sOpenTagSlash(){this.getCode()===ln?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=r0)}sAttrib(){const e=this.skipSpaces();e!==Lr&&(t0(e)?(this.unget(),this.state=DO):e===ln?this.openTag():e===zv?this.state=NO:this.fail("disallowed character in attribute name."))}sAttribName(){const e=this.captureNameChars();e===Jl?this.state=R7:hi(e)?this.state=Nxe:e===ln?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):e!==Lr&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){const e=this.skipSpaces();switch(e){case Lr:return;case Jl:this.state=R7;break;default:this.fail("attribute without value."),this.text="",this.name="",e===ln?this.openTag():t0(e)?(this.unget(),this.state=DO):(this.fail("disallowed character in attribute name."),this.state=r0)}}sAttribValue(){const e=this.getCodeNorm();Gv(e)?(this.q=e,this.state=x7):hi(e)||(this.fail("unquoted attribute value."),this.state=I7,this.unget())}sAttribValueQuoted(){const{q:e,chunk:r}=this;let{i:n}=this;for(;;)switch(this.getCode()){case e:this.pushAttrib(this.name,this.text+r.slice(n,this.prevI)),this.name=this.text="",this.q=null,this.state=Dxe;return;case x_:this.text+=r.slice(n,this.prevI),this.state=Vv,this.entityReturnState=x7;return;case Ra:case Wa:case CO:this.text+=`${r.slice(n,this.prevI)} `,n=this.i;break;case Zo:this.text+=r.slice(n,this.prevI),this.fail("disallowed character.");return;case Lr:this.text+=r.slice(n);return}}sAttribValueClosed(){const e=this.getCodeNorm();hi(e)?this.state=r0:e===ln?this.openTag():e===zv?this.state=NO:t0(e)?(this.fail("no whitespace between attributes."),this.unget(),this.state=DO):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){const e=this.captureTo(qxe);switch(e){case x_:this.state=Vv,this.entityReturnState=I7;break;case Zo:this.fail("disallowed character.");break;case Lr:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",e===ln?this.openTag():this.state=r0}}sCloseTag(){const e=this.captureNameChars();e===ln?this.closeTag():hi(e)?this.state=Lxe:e!==Lr&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case ln:this.closeTag();break;case Lr:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:e,forbiddenState:r}=this;const{chunk:n,textHandler:a}=this;e:for(;;)switch(this.getCode()){case Zo:{if(this.state=RO,a!==void 0){const{text:s}=this,o=n.slice(e,this.prevI);s.length!==0?(a(s+o),this.text=""):o.length!==0&&a(o)}r=ec;break e}case x_:this.state=Vv,this.entityReturnState=zn,a!==void 0&&(this.text+=n.slice(e,this.prevI)),r=ec;break e;case Xl:switch(r){case ec:r=L7;break;case L7:r=jO;break;case jO:break;default:throw new Error("impossible state")}break;case ln:r===jO&&this.fail('the string "]]>" is disallowed in char data.'),r=ec;break;case Wa:a!==void 0&&(this.text+=`${n.slice(e,this.prevI)} +`),e=this.i,r=ec;break;case Lr:a!==void 0&&(this.text+=n.slice(e));break e;default:r=ec}this.forbiddenState=r}handleTextOutsideRoot(){let{i:e}=this;const{chunk:r,textHandler:n}=this;let a=!1;e:for(;;){const s=this.getCode();switch(s){case Zo:{if(this.state=RO,n!==void 0){const{text:o}=this,u=r.slice(e,this.prevI);o.length!==0?(n(o+u),this.text=""):u.length!==0&&n(u)}break e}case x_:this.state=Vv,this.entityReturnState=zn,n!==void 0&&(this.text+=r.slice(e,this.prevI)),a=!0;break e;case Wa:n!==void 0&&(this.text+=`${r.slice(e,this.prevI)} +`),e=this.i;break;case Lr:n!==void 0&&(this.text+=r.slice(e));break e;default:hi(s)||(a=!0)}}a&&(!this.sawRoot&&!this.reportedTextBeforeRoot&&(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0))}pushAttribNS(e,r){var n;const{prefix:a,local:s}=this.qname(e),o={name:e,prefix:a,local:s,value:r};if(this.attribList.push(o),(n=this.attributeHandler)===null||n===void 0||n.call(this,o),a==="xmlns"){const u=r.trim();this.currentXMLVersion==="1.0"&&u===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[s]=u,WP(this,s,u)}else if(e==="xmlns"){const u=r.trim();this.topNS[""]=u,WP(this,"",u)}}pushAttribPlain(e,r){var n;const a={name:e,value:r};this.attribList.push(a),(n=this.attributeHandler)===null||n===void 0||n.call(this,a)}end(){var e,r;this.sawRoot||this.fail("document must contain a root element.");const{tags:n}=this;for(;n.length>0;){const s=n.pop();this.fail(`unclosed tag: ${s.name}`)}this.state!==T7&&this.state!==zn&&this.fail("unexpected end.");const{text:a}=this;return a.length!==0&&((e=this.textHandler)===null||e===void 0||e.call(this,a),this.text=""),this._closed=!0,(r=this.endHandler)===null||r===void 0||r.call(this),this._init(),this}resolve(e){var r,n;let a=this.topNS[e];if(a!==void 0)return a;const{tags:s}=this;for(let o=s.length-1;o>=0;o--)if(a=s[o].ns[e],a!==void 0)return a;return a=this.ns[e],a!==void 0?a:(n=(r=this.opt).resolvePrefix)===null||n===void 0?void 0:n.call(r,e)}qname(e){const r=e.indexOf(":");if(r===-1)return{prefix:"",local:e};const n=e.slice(r+1),a=e.slice(0,r);return(a===""||n===""||n.includes(":"))&&this.fail(`malformed name: ${e}.`),{prefix:a,local:n}}processAttribsNS(){var e;const{attribList:r}=this,n=this.tag;{const{prefix:o,local:u}=this.qname(n.name);n.prefix=o,n.local=u;const c=n.uri=(e=this.resolve(o))!==null&&e!==void 0?e:"";o!==""&&(o==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),c===""&&(this.fail(`unbound namespace prefix: ${JSON.stringify(o)}.`),n.uri=o))}if(r.length===0)return;const{attributes:a}=n,s=new Set;for(const o of r){const{name:u,prefix:c,local:l}=o;let d,f;c===""?(d=u==="xmlns"?od:"",f=u):(d=this.resolve(c),d===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(c)}.`),d=c),f=`{${d}}${l}`),s.has(f)&&this.fail(`duplicate attribute: ${f}.`),s.add(f),o.uri=d,a[u]=o}this.attribList=[]}processAttribsPlain(){const{attribList:e}=this,r=this.tag.attributes;for(const{name:n,value:a}of e)r[n]!==void 0&&this.fail(`duplicate attribute: ${n}.`),r[n]=a;this.attribList=[]}openTag(){var e;this.processAttribs();const{tags:r}=this,n=this.tag;n.isSelfClosing=!1,(e=this.openTagHandler)===null||e===void 0||e.call(this,n),r.push(n),this.state=zn,this.name=""}openSelfClosingTag(){var e,r,n;this.processAttribs();const{tags:a}=this,s=this.tag;s.isSelfClosing=!0,(e=this.openTagHandler)===null||e===void 0||e.call(this,s),(r=this.closeTagHandler)===null||r===void 0||r.call(this,s),(this.tag=(n=a[a.length-1])!==null&&n!==void 0?n:null)===null&&(this.closedRoot=!0),this.state=zn,this.name=""}closeTag(){const{tags:e,name:r}=this;if(this.state=zn,this.name="",r===""){this.fail("weird empty close tag."),this.text+="";return}const n=this.closeTagHandler;let a=e.length;for(;a-- >0;){const s=this.tag=e.pop();if(this.topNS=s.ns,n==null||n(s),s.name===r)break;this.fail("unexpected close tag.")}a===0?this.closedRoot=!0:a<0&&(this.fail(`unmatched closing tag: ${r}.`),this.text+=``)}parseEntity(e){if(e[0]!=="#"){const n=this.ENTITIES[e];return n!==void 0?n:(this.fail(this.isName(e)?"undefined entity.":"disallowed character in entity name."),`&${e};`)}let r=NaN;return e[1]==="x"&&/^#x[0-9a-f]+$/i.test(e)?r=parseInt(e.slice(2),16):/^#[0-9]+$/.test(e)&&(r=parseInt(e.slice(1),10)),this.isChar(r)?String.fromCodePoint(r):(this.fail("malformed character entity."),`&${e};`)}}el.SaxesParser=Vxe;var mT={};Object.defineProperty(mT,"__esModule",{value:!0});mT.ParseError=void 0;class Hxe extends Error{constructor(e,r){const n=e.saxParser;super(e.trackPosition?`Line ${n.line} column ${n.column+1}: ${r}`:r)}}mT.ParseError=Hxe;var LZ={},jZ={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.validateIri=t.IriValidationStrategy=void 0;function e(){const u="[!$&'()*+,;=]",c="%[a-fA-F0-9]{2}",l="([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",d=`${l}\\.${l}\\.${l}\\.${l}`,f="[a-fA-F0-9]{1,4}",h=`(${f}:${f}|${d})`,p=`((${f}:){6}${h}|::(${f}:){5}${h}|(${f})?::(${f}:){4}${h}|((${f}:){0,1}${f})?::(${f}:){3}${h}|((${f}:){0,2}${f})?::(${f}:){2}${h}|((${f}:){0,3}${f})?::${f}:${h}|((${f}:){0,4}${f})?::${h}|((${f}:){0,5}${f})?::${f}|((${f}:){0,6}${f})?::)`,m=`v[a-fA-F0-9]+\\.(${u}|${u}|":)+`,y=`\\[(${p}|${m})\\]`,g="[0-9]*",b="[a-zA-Z][a-zA-Z0-9+\\-.]*",_="[-󰀀-󿿽􀀀-􏿽]",O="[a-zA-Z0-9\\-._~ -퟿豈-﷏ﷰ-￯𐀀-🿽𠀀-𯿽𰀀-𿿽񀀀-񏿽񐀀-񟿽񠀀-񯿽񰀀-񿿽򀀀-򏿽򐀀-򟿽򠀀-򯿽򰀀-򿿽󀀀-󏿽󐀀-󟿽󡀀-󯿽]",L=`(${O}|${c}|${u}|[:@])*`,F=`(${L}|[\\/?])*`,x=`(${L}|${_}|[\\/?])*`,P=`(${L})+`,j=`(${L})*`,N="",V=`${P}(\\/${j})*`,$=`\\/(${P}(\\/${j})*)?`,q=`(\\/${j})*`,H=`(${O}|${c}|${u})*`,X=`(${y}|${d}|${H})`,Te=`(\\/\\/${`(${`(${O}|${c}|${u}|:)*`}@)?${X}(:${g})?`}${q}|${$}|${V}|${N})`,Ne=`^${b}:${Te}(\\?${x})?(#${F})?$`;return new RegExp(Ne,"u")}const r=e(),n=/^[A-Za-z][\d+-.A-Za-z]*:[^\u0000-\u0020"<>\\^`{|}]*$/u;var a;(function(o){o.Strict="strict",o.Pragmatic="pragmatic",o.None="none"})(a=t.IriValidationStrategy||(t.IriValidationStrategy={}));function s(o,u=a.Strict){switch(u){case a.Strict:return r.test(o)?void 0:new Error(`Invalid IRI according to RFC 3987: '${o}'`);case a.Pragmatic:return n.test(o)?void 0:new Error(`Invalid IRI according to RDF Turtle: '${o}'`);case a.None:return;default:return new Error(`Not supported validation strategy "${u}"`)}}t.validateIri=s})(jZ);(function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(jZ,t)})(LZ);Object.defineProperty(Jd,"__esModule",{value:!0});Jd.ParseType=Jd.RdfXmlParser=void 0;const M7=ga,Qxe=el,F7=Pt,zxe=mT,Gxe=Ot,MO=LZ;class tr extends F7.Transform{constructor(e){super({readableObjectMode:!0}),this.activeTagStack=[],this.nodeIds={},e&&(Object.assign(this,e),this.options=e),this.dataFactory||(this.dataFactory=new Gxe.DataFactory),this.baseIRI||(this.baseIRI=""),this.defaultGraph||(this.defaultGraph=this.dataFactory.defaultGraph()),this.validateUri!==!1&&(this.validateUri=!0),this.iriValidationStrategy||(this.iriValidationStrategy=this.validateUri?MO.IriValidationStrategy.Pragmatic:MO.IriValidationStrategy.None),this.saxParser=new Qxe.SaxesParser({xmlns:!0,position:this.trackPosition}),this.attachSaxListeners()}import(e){const r=new F7.PassThrough({readableObjectMode:!0});e.on("error",a=>n.emit("error",a)),e.on("data",a=>r.push(a)),e.on("end",()=>r.push(null));const n=r.pipe(new tr(this.options));return n}_transform(e,r,n){try{this.saxParser.write(e)}catch(a){return n(a)}n()}newParseError(e){return new zxe.ParseError(this,e)}valueToUri(e,r){return this.uriToNamedNode((0,M7.resolve)(e,r.baseIRI))}uriToNamedNode(e){const r=(0,MO.validateIri)(e,this.iriValidationStrategy);if(r instanceof Error)throw this.newParseError(r.message);return this.dataFactory.namedNode(e)}validateNcname(e){if(!tr.NCNAME_MATCHER.test(e))throw this.newParseError(`Not a valid NCName: ${e}`)}attachSaxListeners(){this.saxParser.on("error",e=>this.emit("error",e)),this.saxParser.on("opentag",this.onTag.bind(this)),this.saxParser.on("text",this.onText.bind(this)),this.saxParser.on("cdata",this.onText.bind(this)),this.saxParser.on("closetag",this.onCloseTag.bind(this)),this.saxParser.on("doctype",this.onDoctype.bind(this))}onTag(e){const r=this.activeTagStack.length?this.activeTagStack[this.activeTagStack.length-1]:null;let n=Zs.RESOURCE;if(r&&(r.hadChildren=!0,n=r.childrenParseType),r&&r.childrenStringTags){const s=e.name;let o="";for(const d in e.attributes)o+=` ${d}="${e.attributes[d].value}"`;const c=`<${`${s}${o}`}>`;r.childrenStringTags.push(c);const l={childrenStringTags:r.childrenStringTags};l.childrenStringEmitClosingTag=``,this.activeTagStack.push(l);return}const a={};r?(a.language=r.language,a.baseIRI=r.baseIRI):a.baseIRI=this.baseIRI,this.activeTagStack.push(a),n===Zs.RESOURCE?this.onTagResource(e,a,r,!r):this.onTagProperty(e,a,r)}onTagResource(e,r,n,a){r.childrenParseType=Zs.PROPERTY;let s=!0;if(e.uri===tr.RDF){if(!a&&tr.FORBIDDEN_NODE_ELEMENTS.indexOf(e.local)>=0)throw this.newParseError(`Illegal node element name: ${e.local}`);switch(e.local){case"RDF":r.childrenParseType=Zs.RESOURCE;case"Description":s=!1}}const o=[],u=[];let c=null,l=!1,d=!1,f=null;for(const h in e.attributes){const p=e.attributes[h];if(n&&p.uri===tr.RDF)switch(p.local){case"about":if(c)throw this.newParseError(`Only one of rdf:about, rdf:nodeID and rdf:ID can be present, while ${p.value} and ${c} where found.`);c=p.value;continue;case"ID":if(c)throw this.newParseError(`Only one of rdf:about, rdf:nodeID and rdf:ID can be present, while ${p.value} and ${c} where found.`);this.validateNcname(p.value),c="#"+p.value,l=!0;continue;case"nodeID":if(c)throw this.newParseError(`Only one of rdf:about, rdf:nodeID and rdf:ID can be present, while ${p.value} and ${c} where found.`);this.validateNcname(p.value),c=p.value,d=!0;continue;case"bagID":throw this.newParseError("rdf:bagID is not supported.");case"type":f=p.value;continue;case"aboutEach":throw this.newParseError("rdf:aboutEach is not supported.");case"aboutEachPrefix":throw this.newParseError("rdf:aboutEachPrefix is not supported.");case"li":throw this.newParseError("rdf:li on node elements are not supported.")}else if(p.uri===tr.XML){if(p.local==="lang"){r.language=p.value===""?null:p.value.toLowerCase();continue}else if(p.local==="base"){r.baseIRI=(0,M7.resolve)(p.value,r.baseIRI);continue}}p.prefix!=="xml"&&p.prefix!=="xmlns"&&(p.prefix!==""||p.local!=="xmlns")&&p.uri&&(o.push(this.uriToNamedNode(p.uri+p.local)),u.push(p.value))}if(c!==null&&(r.subject=d?this.dataFactory.blankNode(c):this.valueToUri(c,r),l&&this.claimNodeId(r.subject)),r.subject||(r.subject=this.dataFactory.blankNode()),s){const h=this.uriToNamedNode(e.uri+e.local);this.emitTriple(r.subject,this.dataFactory.namedNode(tr.RDF+"type"),h,n?n.reifiedStatementId:null)}if(n){if(n.predicate)if(n.childrenCollectionSubject){const h=this.dataFactory.blankNode();this.emitTriple(n.childrenCollectionSubject,n.childrenCollectionPredicate,h,n.reifiedStatementId),this.emitTriple(h,this.dataFactory.namedNode(tr.RDF+"first"),r.subject,r.reifiedStatementId),n.childrenCollectionSubject=h,n.childrenCollectionPredicate=this.dataFactory.namedNode(tr.RDF+"rest")}else{this.emitTriple(n.subject,n.predicate,r.subject,n.reifiedStatementId);for(let h=0;h=0)throw this.newParseError(`Illegal property element name: ${e.local}`);r.predicateSubPredicates=[],r.predicateSubObjects=[];let a=!1,s=!1,o=null,u=!0;const c=[],l=[];for(const d in e.attributes){const f=e.attributes[d];if(f.uri===tr.RDF)switch(f.local){case"resource":if(o)throw this.newParseError(`Found both rdf:resource (${f.value}) and rdf:nodeID (${o}).`);if(a)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:resource (${f.value})`);r.hadChildren=!0,o=f.value,u=!1;continue;case"datatype":if(s)throw this.newParseError(`Found both non-rdf:* property attributes and rdf:datatype (${f.value}).`);if(a)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:datatype (${f.value})`);r.datatype=this.valueToUri(f.value,r);continue;case"nodeID":if(s)throw this.newParseError(`Found both non-rdf:* property attributes and rdf:nodeID (${f.value}).`);if(r.hadChildren)throw this.newParseError(`Found both rdf:resource and rdf:nodeID (${f.value}).`);if(a)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:nodeID (${f.value})`);this.validateNcname(f.value),r.hadChildren=!0,o=f.value,u=!0;continue;case"bagID":throw this.newParseError("rdf:bagID is not supported.");case"parseType":if(s)throw this.newParseError("rdf:parseType is not allowed when non-rdf:* property attributes are present");if(r.datatype)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:datatype (${r.datatype.value})`);if(o)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:nodeID or rdf:resource (${o})`);if(f.value==="Resource"){a=!0,r.childrenParseType=Zs.PROPERTY;const h=this.dataFactory.blankNode();this.emitTriple(r.subject,r.predicate,h,r.reifiedStatementId),r.subject=h,r.predicate=null}else f.value==="Collection"?(a=!0,r.hadChildren=!0,r.childrenCollectionSubject=r.subject,r.childrenCollectionPredicate=r.predicate,u=!1):f.value==="Literal"&&(a=!0,r.childrenTagsToString=!0,r.childrenStringTags=[]);continue;case"ID":this.validateNcname(f.value),r.reifiedStatementId=this.valueToUri("#"+f.value,r),this.claimNodeId(r.reifiedStatementId);continue}else if(f.uri===tr.XML&&f.local==="lang"){r.language=f.value===""?null:f.value.toLowerCase();continue}if(f.prefix!=="xml"&&f.prefix!=="xmlns"&&(f.prefix!==""||f.local!=="xmlns")&&f.uri){if(a||r.datatype)throw this.newParseError(`Found illegal rdf:* properties on property element with attribute: ${f.value}`);r.hadChildren=!0,s=!0,c.push(this.uriToNamedNode(f.uri+f.local)),l.push(this.dataFactory.literal(f.value,r.datatype||r.language))}}if(o!==null){const d=r.subject;r.subject=u?this.dataFactory.blankNode(o):this.valueToUri(o,r),this.emitTriple(d,r.predicate,r.subject,r.reifiedStatementId);for(let f=0;f/g,(r,n,a)=>(this.saxParser.ENTITIES[n]=a,""))}}Jd.RdfXmlParser=tr;tr.MIME_TYPE="application/rdf+xml";tr.RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#";tr.XML="http://www.w3.org/XML/1998/namespace";tr.FORBIDDEN_NODE_ELEMENTS=["RDF","ID","about","bagID","parseType","resource","nodeID","li","aboutEach","aboutEachPrefix"];tr.FORBIDDEN_PROPERTY_ELEMENTS=["Description","RDF","ID","about","bagID","parseType","resource","nodeID","aboutEach","aboutEachPrefix"];tr.NCNAME_MATCHER=/^([A-Za-z\xC0-\xD6\xD8-\xF6\u{F8}-\u{2FF}\u{370}-\u{37D}\u{37F}-\u{1FFF}\u{200C}-\u{200D}\u{2070}-\u{218F}\u{2C00}-\u{2FEF}\u{3001}-\u{D7FF}\u{F900}-\u{FDCF}\u{FDF0}-\u{FFFD}\u{10000}-\u{EFFFF}_])([A-Za-z\xC0-\xD6\xD8-\xF6\u{F8}-\u{2FF}\u{370}-\u{37D}\u{37F}-\u{1FFF}\u{200C}-\u{200D}\u{2070}-\u{218F}\u{2C00}-\u{2FEF}\u{3001}-\u{D7FF}\u{F900}-\u{FDCF}\u{FDF0}-\u{FFFD}\u{10000}-\u{EFFFF}_\-.0-9#xB7\u{0300}-\u{036F}\u{203F}-\u{2040}])*$/u;var Zs;(function(t){t[t.RESOURCE=0]="RESOURCE",t[t.PROPERTY=1]="PROPERTY"})(Zs||(Jd.ParseType=Zs={}));(function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Jd,t)})(AZ);var B7;function Wxe(){if(B7)return e0;B7=1,Object.defineProperty(e0,"__esModule",{value:!0}),e0.ActorRdfParseRdfXml=void 0;const t=Mf(),e=AZ;let r=class extends t.ActorRdfParseFixedMediaTypes{constructor(a){super(a)}async runHandle(a){var o;a.data.on("error",u=>s.emit("error",u));const s=a.data.pipe(new e.RdfXmlParser({baseIRI:(o=a.metadata)==null?void 0:o.baseIRI}));return{data:s,metadata:{triples:!0}}}};return e0.ActorRdfParseRdfXml=r,e0}var q7;function Kxe(){return q7||(q7=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Wxe(),t)}(EO)),EO}var FO={},n0={},a4={},MZ={};Object.defineProperty(MZ,"__esModule",{value:!0});var FZ={};Object.defineProperty(FZ,"__esModule",{value:!0});var BZ={};Object.defineProperty(BZ,"__esModule",{value:!0});var gT={},s4={},Eb={},o4={},tl={},u4={};Object.defineProperty(u4,"__esModule",{value:!0});u4.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(t){return t.charCodeAt(0)}));var c4={};Object.defineProperty(c4,"__esModule",{value:!0});c4.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(t){return t.charCodeAt(0)}));var KP={};(function(t){var e;Object.defineProperty(t,"__esModule",{value:!0}),t.replaceCodePoint=t.fromCodePoint=void 0;var r=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);t.fromCodePoint=(e=String.fromCodePoint)!==null&&e!==void 0?e:function(s){var o="";return s>65535&&(s-=65536,o+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),o+=String.fromCharCode(s),o};function n(s){var o;return s>=55296&&s<=57343||s>1114111?65533:(o=r.get(s))!==null&&o!==void 0?o:s}t.replaceCodePoint=n;function a(s){return(0,t.fromCodePoint)(n(s))}t.default=a})(KP);(function(t){var e=I&&I.__createBinding||(Object.create?function(j,N,V,$){$===void 0&&($=V);var q=Object.getOwnPropertyDescriptor(N,V);(!q||("get"in q?!N.__esModule:q.writable||q.configurable))&&(q={enumerable:!0,get:function(){return N[V]}}),Object.defineProperty(j,$,q)}:function(j,N,V,$){$===void 0&&($=V),j[$]=N[V]}),r=I&&I.__setModuleDefault||(Object.create?function(j,N){Object.defineProperty(j,"default",{enumerable:!0,value:N})}:function(j,N){j.default=N}),n=I&&I.__importStar||function(j){if(j&&j.__esModule)return j;var N={};if(j!=null)for(var V in j)V!=="default"&&Object.prototype.hasOwnProperty.call(j,V)&&e(N,j,V);return r(N,j),N},a=I&&I.__importDefault||function(j){return j&&j.__esModule?j:{default:j}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXML=t.decodeHTMLStrict=t.decodeHTMLAttribute=t.decodeHTML=t.determineBranch=t.EntityDecoder=t.DecodingMode=t.BinTrieFlags=t.fromCodePoint=t.replaceCodePoint=t.decodeCodePoint=t.xmlDecodeTree=t.htmlDecodeTree=void 0;var s=a(u4);t.htmlDecodeTree=s.default;var o=a(c4);t.xmlDecodeTree=o.default;var u=n(KP);t.decodeCodePoint=u.default;var c=KP;Object.defineProperty(t,"replaceCodePoint",{enumerable:!0,get:function(){return c.replaceCodePoint}}),Object.defineProperty(t,"fromCodePoint",{enumerable:!0,get:function(){return c.fromCodePoint}});var l;(function(j){j[j.NUM=35]="NUM",j[j.SEMI=59]="SEMI",j[j.EQUALS=61]="EQUALS",j[j.ZERO=48]="ZERO",j[j.NINE=57]="NINE",j[j.LOWER_A=97]="LOWER_A",j[j.LOWER_F=102]="LOWER_F",j[j.LOWER_X=120]="LOWER_X",j[j.LOWER_Z=122]="LOWER_Z",j[j.UPPER_A=65]="UPPER_A",j[j.UPPER_F=70]="UPPER_F",j[j.UPPER_Z=90]="UPPER_Z"})(l||(l={}));var d=32,f;(function(j){j[j.VALUE_LENGTH=49152]="VALUE_LENGTH",j[j.BRANCH_LENGTH=16256]="BRANCH_LENGTH",j[j.JUMP_TABLE=127]="JUMP_TABLE"})(f=t.BinTrieFlags||(t.BinTrieFlags={}));function h(j){return j>=l.ZERO&&j<=l.NINE}function p(j){return j>=l.UPPER_A&&j<=l.UPPER_F||j>=l.LOWER_A&&j<=l.LOWER_F}function m(j){return j>=l.UPPER_A&&j<=l.UPPER_Z||j>=l.LOWER_A&&j<=l.LOWER_Z||h(j)}function y(j){return j===l.EQUALS||m(j)}var g;(function(j){j[j.EntityStart=0]="EntityStart",j[j.NumericStart=1]="NumericStart",j[j.NumericDecimal=2]="NumericDecimal",j[j.NumericHex=3]="NumericHex",j[j.NamedEntity=4]="NamedEntity"})(g||(g={}));var b;(function(j){j[j.Legacy=0]="Legacy",j[j.Strict=1]="Strict",j[j.Attribute=2]="Attribute"})(b=t.DecodingMode||(t.DecodingMode={}));var v=function(){function j(N,V,$){this.decodeTree=N,this.emitCodePoint=V,this.errors=$,this.state=g.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=b.Strict}return j.prototype.startEntity=function(N){this.decodeMode=N,this.state=g.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},j.prototype.write=function(N,V){switch(this.state){case g.EntityStart:return N.charCodeAt(V)===l.NUM?(this.state=g.NumericStart,this.consumed+=1,this.stateNumericStart(N,V+1)):(this.state=g.NamedEntity,this.stateNamedEntity(N,V));case g.NumericStart:return this.stateNumericStart(N,V);case g.NumericDecimal:return this.stateNumericDecimal(N,V);case g.NumericHex:return this.stateNumericHex(N,V);case g.NamedEntity:return this.stateNamedEntity(N,V)}},j.prototype.stateNumericStart=function(N,V){return V>=N.length?-1:(N.charCodeAt(V)|d)===l.LOWER_X?(this.state=g.NumericHex,this.consumed+=1,this.stateNumericHex(N,V+1)):(this.state=g.NumericDecimal,this.stateNumericDecimal(N,V))},j.prototype.addToNumericResult=function(N,V,$,q){if(V!==$){var H=$-V;this.result=this.result*Math.pow(q,H)+parseInt(N.substr(V,H),q),this.consumed+=H}},j.prototype.stateNumericHex=function(N,V){for(var $=V;V>14;V>14,H!==0){if(X===l.SEMI)return this.emitNamedEntityData(this.treeIndex,H,this.consumed+this.excess);this.decodeMode!==b.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},j.prototype.emitNotTerminatedNamedEntity=function(){var N,V=this,$=V.result,q=V.decodeTree,H=(q[$]&f.VALUE_LENGTH)>>14;return this.emitNamedEntityData($,H,this.consumed),(N=this.errors)===null||N===void 0||N.missingSemicolonAfterCharacterReference(),this.consumed},j.prototype.emitNamedEntityData=function(N,V,$){var q=this.decodeTree;return this.emitCodePoint(V===1?q[N]&~f.VALUE_LENGTH:q[N+1],$),V===3&&this.emitCodePoint(q[N+2],$),$},j.prototype.end=function(){var N;switch(this.state){case g.NamedEntity:return this.result!==0&&(this.decodeMode!==b.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case g.NumericDecimal:return this.emitNumericEntity(0,2);case g.NumericHex:return this.emitNumericEntity(0,3);case g.NumericStart:return(N=this.errors)===null||N===void 0||N.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case g.EntityStart:return 0}},j}();t.EntityDecoder=v;function _(j){var N="",V=new v(j,function($){return N+=(0,u.fromCodePoint)($)});return function(q,H){for(var X=0,Y=0;(Y=q.indexOf("&",Y))>=0;){N+=q.slice(X,Y),V.startEntity(H);var he=V.write(q,Y+1);if(he<0){X=Y+V.end();break}X=Y+he,Y=he===0?X+1:X}var Te=N+q.slice(X);return N="",Te}}function w(j,N,V,$){var q=(N&f.BRANCH_LENGTH)>>7,H=N&f.JUMP_TABLE;if(q===0)return H!==0&&$===H?V:-1;if(H){var X=$-H;return X<0||X>=q?-1:j[V+X]-1}for(var Y=V,he=Y+q-1;Y<=he;){var Te=Y+he>>>1,Ne=j[Te];if(Ne<$)Y=Te+1;else if(Ne>$)he=Te-1;else return j[Te+q]}return-1}t.determineBranch=w;var E=_(s.default),O=_(o.default);function L(j,N){return N===void 0&&(N=b.Legacy),E(j,N)}t.decodeHTML=L;function F(j){return E(j,b.Attribute)}t.decodeHTMLAttribute=F;function x(j){return E(j,b.Strict)}t.decodeHTMLStrict=x;function P(j){return O(j,b.Strict)}t.decodeXML=P})(tl);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.QuoteType=void 0;var e=tl,r;(function(h){h[h.Tab=9]="Tab",h[h.NewLine=10]="NewLine",h[h.FormFeed=12]="FormFeed",h[h.CarriageReturn=13]="CarriageReturn",h[h.Space=32]="Space",h[h.ExclamationMark=33]="ExclamationMark",h[h.Number=35]="Number",h[h.Amp=38]="Amp",h[h.SingleQuote=39]="SingleQuote",h[h.DoubleQuote=34]="DoubleQuote",h[h.Dash=45]="Dash",h[h.Slash=47]="Slash",h[h.Zero=48]="Zero",h[h.Nine=57]="Nine",h[h.Semi=59]="Semi",h[h.Lt=60]="Lt",h[h.Eq=61]="Eq",h[h.Gt=62]="Gt",h[h.Questionmark=63]="Questionmark",h[h.UpperA=65]="UpperA",h[h.LowerA=97]="LowerA",h[h.UpperF=70]="UpperF",h[h.LowerF=102]="LowerF",h[h.UpperZ=90]="UpperZ",h[h.LowerZ=122]="LowerZ",h[h.LowerX=120]="LowerX",h[h.OpeningSquareBracket=91]="OpeningSquareBracket"})(r||(r={}));var n;(function(h){h[h.Text=1]="Text",h[h.BeforeTagName=2]="BeforeTagName",h[h.InTagName=3]="InTagName",h[h.InSelfClosingTag=4]="InSelfClosingTag",h[h.BeforeClosingTagName=5]="BeforeClosingTagName",h[h.InClosingTagName=6]="InClosingTagName",h[h.AfterClosingTagName=7]="AfterClosingTagName",h[h.BeforeAttributeName=8]="BeforeAttributeName",h[h.InAttributeName=9]="InAttributeName",h[h.AfterAttributeName=10]="AfterAttributeName",h[h.BeforeAttributeValue=11]="BeforeAttributeValue",h[h.InAttributeValueDq=12]="InAttributeValueDq",h[h.InAttributeValueSq=13]="InAttributeValueSq",h[h.InAttributeValueNq=14]="InAttributeValueNq",h[h.BeforeDeclaration=15]="BeforeDeclaration",h[h.InDeclaration=16]="InDeclaration",h[h.InProcessingInstruction=17]="InProcessingInstruction",h[h.BeforeComment=18]="BeforeComment",h[h.CDATASequence=19]="CDATASequence",h[h.InSpecialComment=20]="InSpecialComment",h[h.InCommentLike=21]="InCommentLike",h[h.BeforeSpecialS=22]="BeforeSpecialS",h[h.SpecialStartSequence=23]="SpecialStartSequence",h[h.InSpecialTag=24]="InSpecialTag",h[h.BeforeEntity=25]="BeforeEntity",h[h.BeforeNumericEntity=26]="BeforeNumericEntity",h[h.InNamedEntity=27]="InNamedEntity",h[h.InNumericEntity=28]="InNumericEntity",h[h.InHexEntity=29]="InHexEntity"})(n||(n={}));function a(h){return h===r.Space||h===r.NewLine||h===r.Tab||h===r.FormFeed||h===r.CarriageReturn}function s(h){return h===r.Slash||h===r.Gt||a(h)}function o(h){return h>=r.Zero&&h<=r.Nine}function u(h){return h>=r.LowerA&&h<=r.LowerZ||h>=r.UpperA&&h<=r.UpperZ}function c(h){return h>=r.UpperA&&h<=r.UpperF||h>=r.LowerA&&h<=r.LowerF}var l;(function(h){h[h.NoValue=0]="NoValue",h[h.Unquoted=1]="Unquoted",h[h.Single=2]="Single",h[h.Double=3]="Double"})(l=t.QuoteType||(t.QuoteType={}));var d={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},f=function(){function h(p,m){var y=p.xmlMode,g=y===void 0?!1:y,b=p.decodeEntities,v=b===void 0?!0:b;this.cbs=m,this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=g,this.decodeEntities=v,this.entityTrie=g?e.xmlDecodeTree:e.htmlDecodeTree}return h.prototype.reset=function(){this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},h.prototype.write=function(p){this.offset+=this.buffer.length,this.buffer=p,this.parse()},h.prototype.end=function(){this.running&&this.finish()},h.prototype.pause=function(){this.running=!1},h.prototype.resume=function(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=n.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&p===r.Amp&&(this.state=n.BeforeEntity)},h.prototype.stateSpecialStartSequence=function(p){var m=this.sequenceIndex===this.currentSequence.length,y=m?s(p):(p|32)===this.currentSequence[this.sequenceIndex];if(!y)this.isSpecial=!1;else if(!m){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=n.InTagName,this.stateInTagName(p)},h.prototype.stateInSpecialTag=function(p){if(this.sequenceIndex===this.currentSequence.length){if(p===r.Gt||a(p)){var m=this.index-this.currentSequence.length;if(this.sectionStart>14)-1;if(!this.allowLegacyEntity()&&p!==r.Semi)this.trieIndex+=y;else{var g=this.index-this.entityExcess+1;g>this.sectionStart&&this.emitPartial(this.sectionStart,g),this.entityResult=this.trieIndex,this.trieIndex+=y,this.entityExcess=0,this.sectionStart=this.index+1,y===0&&this.emitNamedEntity()}}},h.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var p=(this.entityTrie[this.entityResult]&e.BinTrieFlags.VALUE_LENGTH)>>14;switch(p){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~e.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},h.prototype.stateBeforeNumericEntity=function(p){(p|32)===r.LowerX?(this.entityExcess++,this.state=n.InHexEntity):(this.state=n.InNumericEntity,this.stateInNumericEntity(p))},h.prototype.emitNumericEntity=function(p){var m=this.index-this.entityExcess-1,y=m+2+ +(this.state===n.InHexEntity);y!==this.index&&(m>this.sectionStart&&this.emitPartial(this.sectionStart,m),this.sectionStart=this.index+Number(p),this.emitCodePoint((0,e.replaceCodePoint)(this.entityResult))),this.state=this.baseState},h.prototype.stateInNumericEntity=function(p){p===r.Semi?this.emitNumericEntity(!0):o(p)?(this.entityResult=this.entityResult*10+(p-r.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},h.prototype.stateInHexEntity=function(p){p===r.Semi?this.emitNumericEntity(!0):o(p)?(this.entityResult=this.entityResult*16+(p-r.Zero),this.entityExcess++):c(p)?(this.entityResult=this.entityResult*16+((p|32)-r.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},h.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===n.Text||this.baseState===n.InSpecialTag)},h.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===n.Text||this.state===n.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===n.InAttributeValueDq||this.state===n.InAttributeValueSq||this.state===n.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},h.prototype.shouldContinue=function(){return this.index0&&o.has(this.stack[this.stack.length-1]);){var u=this.stack.pop();(n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,u,!0)}this.isVoidElement(e)||(this.stack.push(e),H7.has(e)?this.foreignContext.push(!0):Q7.has(e)&&this.foreignContext.push(!1)),(s=(a=this.cbs).onopentagname)===null||s===void 0||s.call(a,e),this.cbs.onopentag&&(this.attribs={})},t.prototype.endOpenTag=function(e){var r,n;this.startIndex=this.openTagStart,this.attribs&&((n=(r=this.cbs).onopentag)===null||n===void 0||n.call(r,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},t.prototype.onopentagend=function(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1},t.prototype.onclosetag=function(e,r){var n,a,s,o,u,c;this.endIndex=r;var l=this.getSlice(e,r);if(this.lowerCaseTagNames&&(l=l.toLowerCase()),(H7.has(l)||Q7.has(l))&&this.foreignContext.pop(),this.isVoidElement(l))!this.options.xmlMode&&l==="br"&&((a=(n=this.cbs).onopentagname)===null||a===void 0||a.call(n,"br"),(o=(s=this.cbs).onopentag)===null||o===void 0||o.call(s,"br",{},!0),(c=(u=this.cbs).onclosetag)===null||c===void 0||c.call(u,"br",!1));else{var d=this.stack.lastIndexOf(l);if(d!==-1)if(this.cbs.onclosetag)for(var f=this.stack.length-d;f--;)this.cbs.onclosetag(this.stack.pop(),f!==0);else this.stack.length=d;else!this.options.xmlMode&&l==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=r+1},t.prototype.onselfclosingtag=function(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)},t.prototype.closeCurrentTag=function(e){var r,n,a=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===a&&((n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,a,!e),this.stack.pop())},t.prototype.onattribname=function(e,r){this.startIndex=e;var n=this.getSlice(e,r);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n},t.prototype.onattribdata=function(e,r){this.attribvalue+=this.getSlice(e,r)},t.prototype.onattribentity=function(e){this.attribvalue+=(0,$7.fromCodePoint)(e)},t.prototype.onattribend=function(e,r){var n,a;this.endIndex=r,(a=(n=this.cbs).onattribute)===null||a===void 0||a.call(n,this.attribname,this.attribvalue,e===Wv.QuoteType.Double?'"':e===Wv.QuoteType.Single?"'":e===Wv.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},t.prototype.getInstructionName=function(e){var r=e.search(tIe),n=r<0?e:e.substr(0,r);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},t.prototype.ondeclaration=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);if(this.cbs.onprocessinginstruction){var a=this.getInstructionName(n);this.cbs.onprocessinginstruction("!".concat(a),"!".concat(n))}this.startIndex=r+1},t.prototype.onprocessinginstruction=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);if(this.cbs.onprocessinginstruction){var a=this.getInstructionName(n);this.cbs.onprocessinginstruction("?".concat(a),"?".concat(n))}this.startIndex=r+1},t.prototype.oncomment=function(e,r,n){var a,s,o,u;this.endIndex=r,(s=(a=this.cbs).oncomment)===null||s===void 0||s.call(a,this.getSlice(e,r-n)),(u=(o=this.cbs).oncommentend)===null||u===void 0||u.call(o),this.startIndex=r+1},t.prototype.oncdata=function(e,r,n){var a,s,o,u,c,l,d,f,h,p;this.endIndex=r;var m=this.getSlice(e,r-n);this.options.xmlMode||this.options.recognizeCDATA?((s=(a=this.cbs).oncdatastart)===null||s===void 0||s.call(a),(u=(o=this.cbs).ontext)===null||u===void 0||u.call(o,m),(l=(c=this.cbs).oncdataend)===null||l===void 0||l.call(c)):((f=(d=this.cbs).oncomment)===null||f===void 0||f.call(d,"[CDATA[".concat(m,"]]")),(p=(h=this.cbs).oncommentend)===null||p===void 0||p.call(h)),this.startIndex=r+1},t.prototype.onend=function(){var e,r;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n],!0));}(r=(e=this.cbs).onend)===null||r===void 0||r.call(e)},t.prototype.reset=function(){var e,r,n,a;(r=(e=this.cbs).onreset)===null||r===void 0||r.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(a=(n=this.cbs).onparserinit)===null||a===void 0||a.call(n,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},t.prototype.parseComplete=function(e){this.reset(),this.end(e)},t.prototype.getSlice=function(e,r){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var n=this.buffers[0].slice(e-this.bufferOffset,r-this.bufferOffset);r-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,r-this.bufferOffset);return n},t.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},t.prototype.write=function(e){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".write() after done!"));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)},t.prototype.end=function(e){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".end() after done!"));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()},t.prototype.pause=function(){this.tokenizer.pause()},t.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childNodes",{get:function(){return this.children},set:function(r){this.children=r},enumerable:!1,configurable:!0}),e}(l4);kt.NodeWithChildren=bT;var kZ=function(t){Cu(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Si.ElementType.CDATA,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),e}(bT);kt.CDATA=kZ;var VZ=function(t){Cu(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Si.ElementType.Root,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),e}(bT);kt.Document=VZ;var HZ=function(t){Cu(e,t);function e(r,n,a,s){a===void 0&&(a=[]),s===void 0&&(s=r==="script"?Si.ElementType.Script:r==="style"?Si.ElementType.Style:Si.ElementType.Tag);var o=t.call(this,a)||this;return o.name=r,o.attribs=n,o.type=s,o}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(n){var a,s;return{name:n,value:r.attribs[n],namespace:(a=r["x-attribsNamespace"])===null||a===void 0?void 0:a[n],prefix:(s=r["x-attribsPrefix"])===null||s===void 0?void 0:s[n]}})},enumerable:!1,configurable:!0}),e}(bT);kt.Element=HZ;function QZ(t){return(0,Si.isTag)(t)}kt.isTag=QZ;function zZ(t){return t.type===Si.ElementType.CDATA}kt.isCDATA=zZ;function GZ(t){return t.type===Si.ElementType.Text}kt.isText=GZ;function WZ(t){return t.type===Si.ElementType.Comment}kt.isComment=WZ;function KZ(t){return t.type===Si.ElementType.Directive}kt.isDirective=KZ;function JZ(t){return t.type===Si.ElementType.Root}kt.isDocument=JZ;function nIe(t){return Object.prototype.hasOwnProperty.call(t,"children")}kt.hasChildren=nIe;function d4(t,e){e===void 0&&(e=!1);var r;if(GZ(t))r=new qZ(t.data);else if(WZ(t))r=new $Z(t.data);else if(QZ(t)){var n=e?BO(t.children):[],a=new HZ(t.name,X_({},t.attribs),n);n.forEach(function(c){return c.parent=a}),t.namespace!=null&&(a.namespace=t.namespace),t["x-attribsNamespace"]&&(a["x-attribsNamespace"]=X_({},t["x-attribsNamespace"])),t["x-attribsPrefix"]&&(a["x-attribsPrefix"]=X_({},t["x-attribsPrefix"])),r=a}else if(zZ(t)){var n=e?BO(t.children):[],s=new kZ(n);n.forEach(function(l){return l.parent=s}),r=s}else if(JZ(t)){var n=e?BO(t.children):[],o=new VZ(n);n.forEach(function(l){return l.parent=o}),t["x-mode"]&&(o["x-mode"]=t["x-mode"]),r=o}else if(KZ(t)){var u=new UZ(t.name,t.data);t["x-name"]!=null&&(u["x-name"]=t["x-name"],u["x-publicId"]=t["x-publicId"],u["x-systemId"]=t["x-systemId"]),r=u}else throw new Error("Not implemented yet: ".concat(t.type));return r.startIndex=t.startIndex,r.endIndex=t.endIndex,t.sourceCodeLocation!=null&&(r.sourceCodeLocation=t.sourceCodeLocation),r}kt.cloneNode=d4;function BO(t){for(var e=t.map(function(n){return d4(n,!0)}),r=1;r$\x80-\uFFFF]/g;var e=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);t.getCodePoint=String.prototype.codePointAt!=null?function(a,s){return a.codePointAt(s)}:function(a,s){return(a.charCodeAt(s)&64512)===55296?(a.charCodeAt(s)-55296)*1024+a.charCodeAt(s+1)-56320+65536:a.charCodeAt(s)};function r(a){for(var s="",o=0,u;(u=t.xmlReplacer.exec(a))!==null;){var c=u.index,l=a.charCodeAt(c),d=e.get(l);d!==void 0?(s+=a.substring(o,c)+d,o=c+1):(s+="".concat(a.substring(o,c),"&#x").concat((0,t.getCodePoint)(a,c).toString(16),";"),o=t.xmlReplacer.lastIndex+=+((l&64512)===55296))}return s+a.substr(o)}t.encodeXML=r,t.escape=r;function n(a,s){return function(u){for(var c,l=0,d="";c=a.exec(u);)l!==c.index&&(d+=u.substring(l,c.index)),d+=s.get(c[0].charCodeAt(0)),l=c.index+1;return d+u.substring(l)}}t.escapeUTF8=n(/[&<>'"]/g,e),t.escapeAttribute=n(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),t.escapeText=n(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))})(NS);var iIe=I&&I.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(rl,"__esModule",{value:!0});rl.encodeNonAsciiHTML=rl.encodeHTML=void 0;var aIe=iIe(f4),YZ=NS,sIe=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function oIe(t){return ZZ(sIe,t)}rl.encodeHTML=oIe;function uIe(t){return ZZ(YZ.xmlReplacer,t)}rl.encodeNonAsciiHTML=uIe;function ZZ(t,e){for(var r="",n=0,a;(a=t.exec(e))!==null;){var s=a.index;r+=e.substring(n,s);var o=e.charCodeAt(s),u=aIe.default.get(o);if(typeof u=="object"){if(s+10&&(n+=vT(t.children,e)),(e.xmlMode||!z7.has(t.name))&&(n+=""))),n}function bIe(t){return"<".concat(t.data,">")}function vIe(t,e){var r,n=t.data||"";return((r=e.encodeEntities)!==null&&r!==void 0?r:e.decodeEntities)!==!1&&!(!e.xmlMode&&t.parent&&fIe.has(t.parent.name))&&(n=e.xmlMode||e.encodeEntities!=="utf8"?(0,DS.encodeXML)(n):(0,DS.escapeText)(n)),n}function wIe(t){return"")}function SIe(t){return"")}var TIe=I&&I.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ji,"__esModule",{value:!0});ji.innerText=ji.textContent=ji.getText=ji.getInnerHTML=ji.getOuterHTML=void 0;var ds=Fa,EIe=TIe(P1),AIe=pl;function tee(t,e){return(0,EIe.default)(t,e)}ji.getOuterHTML=tee;function OIe(t,e){return(0,ds.hasChildren)(t)?t.children.map(function(r){return tee(r,e)}).join(""):""}ji.getInnerHTML=OIe;function Qw(t){return Array.isArray(t)?t.map(Qw).join(""):(0,ds.isTag)(t)?t.name==="br"?` +`:Qw(t.children):(0,ds.isCDATA)(t)?Qw(t.children):(0,ds.isText)(t)?t.data:""}ji.getText=Qw;function JP(t){return Array.isArray(t)?t.map(JP).join(""):(0,ds.hasChildren)(t)&&!(0,ds.isComment)(t)?JP(t.children):(0,ds.isText)(t)?t.data:""}ji.textContent=JP;function XP(t){return Array.isArray(t)?t.map(XP).join(""):(0,ds.hasChildren)(t)&&(t.type===AIe.ElementType.Tag||(0,ds.isCDATA)(t))?XP(t.children):(0,ds.isText)(t)?t.data:""}ji.innerText=XP;var mn={};Object.defineProperty(mn,"__esModule",{value:!0});mn.prevElementSibling=mn.nextElementSibling=mn.getName=mn.hasAttrib=mn.getAttributeValue=mn.getSiblings=mn.getParent=mn.getChildren=void 0;var h4=Fa;function ree(t){return(0,h4.hasChildren)(t)?t.children:[]}mn.getChildren=ree;function nee(t){return t.parent||null}mn.getParent=nee;function RIe(t){var e,r,n=nee(t);if(n!=null)return ree(n);for(var a=[t],s=t.prev,o=t.next;s!=null;)a.unshift(s),e=s,s=e.prev;for(;o!=null;)a.push(o),r=o,o=r.next;return a}mn.getSiblings=RIe;function xIe(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}mn.getAttributeValue=xIe;function IIe(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}mn.hasAttrib=IIe;function PIe(t){return t.name}mn.getName=PIe;function NIe(t){for(var e,r=t.next;r!==null&&!(0,h4.isTag)(r);)e=r,r=e.next;return r}mn.nextElementSibling=NIe;function DIe(t){for(var e,r=t.prev;r!==null&&!(0,h4.isTag)(r);)e=r,r=e.prev;return r}mn.prevElementSibling=DIe;var gi={};Object.defineProperty(gi,"__esModule",{value:!0});gi.prepend=gi.prependChild=gi.append=gi.appendChild=gi.replaceElement=gi.removeElement=void 0;function N1(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){var e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}gi.removeElement=N1;function CIe(t,e){var r=e.prev=t.prev;r&&(r.next=e);var n=e.next=t.next;n&&(n.prev=e);var a=e.parent=t.parent;if(a){var s=a.children;s[s.lastIndexOf(t)]=e,t.parent=null}}gi.replaceElement=CIe;function LIe(t,e){if(N1(e),e.next=null,e.parent=t,t.children.push(e)>1){var r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}gi.appendChild=LIe;function jIe(t,e){N1(e);var r=t.parent,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){var a=r.children;a.splice(a.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}gi.append=jIe;function MIe(t,e){if(N1(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){var r=t.children[1];r.prev=e,e.next=r}else e.next=null}gi.prependChild=MIe;function FIe(t,e){N1(e);var r=t.parent;if(r){var n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}gi.prepend=FIe;var Zn={};Object.defineProperty(Zn,"__esModule",{value:!0});Zn.findAll=Zn.existsOne=Zn.findOne=Zn.findOneChild=Zn.find=Zn.filter=void 0;var wT=Fa;function BIe(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),iee(t,Array.isArray(e)?e:[e],r,n)}Zn.filter=BIe;function iee(t,e,r,n){for(var a=[],s=[e],o=[0];;){if(o[0]>=s[0].length){if(o.length===1)return a;s.shift(),o.shift();continue}var u=s[0][o[0]++];if(t(u)&&(a.push(u),--n<=0))return a;r&&(0,wT.hasChildren)(u)&&u.children.length>0&&(o.unshift(0),s.unshift(u.children))}}Zn.find=iee;function qIe(t,e){return e.find(t)}Zn.findOneChild=qIe;function aee(t,e,r){r===void 0&&(r=!0);for(var n=null,a=0;a0&&(n=aee(t,s.children,!0));else continue}return n}Zn.findOne=aee;function see(t,e){return e.some(function(r){return(0,wT.isTag)(r)&&(t(r)||see(t,r.children))})}Zn.existsOne=see;function $Ie(t,e){for(var r=[],n=[e],a=[0];;){if(a[0]>=n[0].length){if(n.length===1)return r;n.shift(),a.shift();continue}var s=n[0][a[0]++];(0,wT.isTag)(s)&&(t(s)&&r.push(s),s.children.length>0&&(a.unshift(0),n.unshift(s.children)))}}Zn.findAll=$Ie;var Mi={};Object.defineProperty(Mi,"__esModule",{value:!0});Mi.getElementsByTagType=Mi.getElementsByTagName=Mi.getElementById=Mi.getElements=Mi.testElement=void 0;var Sc=Fa,ST=Zn,CS={tag_name:function(t){return typeof t=="function"?function(e){return(0,Sc.isTag)(e)&&t(e.name)}:t==="*"?Sc.isTag:function(e){return(0,Sc.isTag)(e)&&e.name===t}},tag_type:function(t){return typeof t=="function"?function(e){return t(e.type)}:function(e){return e.type===t}},tag_contains:function(t){return typeof t=="function"?function(e){return(0,Sc.isText)(e)&&t(e.data)}:function(e){return(0,Sc.isText)(e)&&e.data===t}}};function oee(t,e){return typeof e=="function"?function(r){return(0,Sc.isTag)(r)&&e(r.attribs[t])}:function(r){return(0,Sc.isTag)(r)&&r.attribs[t]===e}}function UIe(t,e){return function(r){return t(r)||e(r)}}function uee(t){var e=Object.keys(t).map(function(r){var n=t[r];return Object.prototype.hasOwnProperty.call(CS,r)?CS[r](n):oee(r,n)});return e.length===0?null:e.reduce(UIe)}function kIe(t,e){var r=uee(t);return r?r(e):!0}Mi.testElement=kIe;function VIe(t,e,r,n){n===void 0&&(n=1/0);var a=uee(t);return a?(0,ST.filter)(a,e,r,n):[]}Mi.getElements=VIe;function HIe(t,e,r){return r===void 0&&(r=!0),Array.isArray(e)||(e=[e]),(0,ST.findOne)(oee("id",t),e,r)}Mi.getElementById=HIe;function QIe(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,ST.filter)(CS.tag_name(t),e,r,n)}Mi.getElementsByTagName=QIe;function zIe(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,ST.filter)(CS.tag_type(t),e,r,n)}Mi.getElementsByTagType=zIe;var cee={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.uniqueSort=t.compareDocumentPosition=t.DocumentPosition=t.removeSubsets=void 0;var e=Fa;function r(o){for(var u=o.length;--u>=0;){var c=o[u];if(u>0&&o.lastIndexOf(c,u-1)>=0){o.splice(u,1);continue}for(var l=c.parent;l;l=l.parent)if(o.includes(l)){o.splice(u,1);break}}return o}t.removeSubsets=r;var n;(function(o){o[o.DISCONNECTED=1]="DISCONNECTED",o[o.PRECEDING=2]="PRECEDING",o[o.FOLLOWING=4]="FOLLOWING",o[o.CONTAINS=8]="CONTAINS",o[o.CONTAINED_BY=16]="CONTAINED_BY"})(n=t.DocumentPosition||(t.DocumentPosition={}));function a(o,u){var c=[],l=[];if(o===u)return 0;for(var d=(0,e.hasChildren)(o)?o:o.parent;d;)c.unshift(d),d=d.parent;for(d=(0,e.hasChildren)(u)?u:u.parent;d;)l.unshift(d),d=d.parent;for(var f=Math.min(c.length,l.length),h=0;hm.indexOf(g)?p===u?n.FOLLOWING|n.CONTAINED_BY:n.FOLLOWING:p===o?n.PRECEDING|n.CONTAINS:n.PRECEDING}t.compareDocumentPosition=a;function s(o){return o=o.filter(function(u,c,l){return!l.includes(u,c+1)}),o.sort(function(u,c){var l=a(u,c);return l&n.PRECEDING?-1:l&n.FOLLOWING?1:0}),o}t.uniqueSort=s})(cee);var TT={};Object.defineProperty(TT,"__esModule",{value:!0});TT.getFeed=void 0;var GIe=ji,D1=Mi;function WIe(t){var e=LS(ZIe,t);return e?e.name==="feed"?KIe(e):JIe(e):null}TT.getFeed=WIe;function KIe(t){var e,r=t.children,n={type:"atom",items:(0,D1.getElementsByTagName)("entry",r).map(function(o){var u,c=o.children,l={media:lee(c)};mi(l,"id","id",c),mi(l,"title","title",c);var d=(u=LS("link",c))===null||u===void 0?void 0:u.attribs.href;d&&(l.link=d);var f=ru("summary",c)||ru("content",c);f&&(l.description=f);var h=ru("updated",c);return h&&(l.pubDate=new Date(h)),l})};mi(n,"id","id",r),mi(n,"title","title",r);var a=(e=LS("link",r))===null||e===void 0?void 0:e.attribs.href;a&&(n.link=a),mi(n,"description","subtitle",r);var s=ru("updated",r);return s&&(n.updated=new Date(s)),mi(n,"author","email",r,!0),n}function JIe(t){var e,r,n=(r=(e=LS("channel",t.children))===null||e===void 0?void 0:e.children)!==null&&r!==void 0?r:[],a={type:t.name.substr(0,3),id:"",items:(0,D1.getElementsByTagName)("item",t.children).map(function(o){var u=o.children,c={media:lee(u)};mi(c,"id","guid",u),mi(c,"title","title",u),mi(c,"link","link",u),mi(c,"description","description",u);var l=ru("pubDate",u)||ru("dc:date",u);return l&&(c.pubDate=new Date(l)),c})};mi(a,"title","title",n),mi(a,"link","link",n),mi(a,"description","description",n);var s=ru("lastBuildDate",n);return s&&(a.updated=new Date(s)),mi(a,"author","managingEditor",n,!0),a}var XIe=["url","type","lang"],YIe=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function lee(t){return(0,D1.getElementsByTagName)("media:content",t).map(function(e){for(var r=e.attribs,n={medium:r.medium,isDefault:!!r.isDefault},a=0,s=XIe;a0){const s=Object.assign(Object.assign({},r),a);if(e.prefix){let o;for(;o=ko.PREFIX_REGEX.exec(e.prefix);)s[o[1]]=o[2]}return s}else return r}static expandPrefixedTerm(e,r){const n=e.indexOf(":");let a,s;if(n>=0&&(a=e.substr(0,n),s=e.substr(n+1)),a==="")return"http://www.w3.org/1999/xhtml/vocab#"+s;if(a){const o=r.prefixesAll[a];if(o)return o+s}if(e){const o=r.prefixesAll[e.toLocaleLowerCase()];if(o)return o}return e}static isValidIri(e){return ko.IRI_REGEX.test(e)}static contentTypeToProfile(e){return rPe.RDFA_CONTENTTYPES[e]||""}getBaseIRI(e){let r=e;const n=r.indexOf("#");return n>=0&&(r=r.substr(0,n)),this.dataFactory.namedNode((0,Jv.resolve)(r,this.baseIRI.value))}getResourceOrBaseIri(e,r){return e===!0?this.getBaseIriTerm(r):e}getBaseIriTerm(e){return e.localBaseIRI||this.baseIRI}createVocabIris(e,r,n,a){return e.split(/\s+/).filter(s=>s&&(n||s.indexOf(":")>=0)).map(s=>this.createIri(s,r,!0,!0,a)).filter(s=>s!=null)}createLiteral(e,r){if(r.interpretObjectAsTime&&!r.datatype){for(const n of ko.TIME_REGEXES)if(e.match(n.regex)){r.datatype=this.dataFactory.namedNode(ko.XSD+n.type);break}}return this.dataFactory.literal(e,r.datatype||r.language)}createBlankNode(){return this.blankNodeFactory?this.blankNodeFactory():this.dataFactory.blankNode()}createIri(e,r,n,a,s){if(e=e||"",!a)return n||(e=(0,Jv.resolve)(e,this.getBaseIriTerm(r).value)),ko.isValidIri(e)?this.dataFactory.namedNode(e):null;if(e.length>0&&e[0]==="["&&e[e.length-1]==="]"&&(e=e.substr(1,e.length-2),e.indexOf(":")<0))return null;if(e.startsWith("_:"))return s?this.dataFactory.blankNode(e.substr(2)||"b_identity"):null;if(n&&r.vocab&&e.indexOf(":")<0)return this.dataFactory.namedNode(r.vocab+e);let o=ko.expandPrefixedTerm(e,r);return n?e!==o&&(o=(0,Jv.resolve)(o,this.baseIRIDocument.value)):o=(0,Jv.resolve)(o,this.getBaseIriTerm(r).value),ko.isValidIri(o)?this.dataFactory.namedNode(o):null}};C1.Util=yl;yl.RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#";yl.XSD="http://www.w3.org/2001/XMLSchema#";yl.RDFA="http://www.w3.org/ns/rdfa#";yl.PREFIX_REGEX=/\s*([^:\s]*)*:\s*([^\s]*)*\s*/g;yl.TIME_REGEXES=[{regex:/^-?P([0-9]+Y)?([0-9]+M)?([0-9]+D)?(T([0-9]+H)?([0-9]+M)?([0-9]+(\.[0-9])?S)?)?$/,type:"duration"},{regex:/^[0-9]+-[0-9][0-9]-[0-9][0-9]T[0-9][0-9]:[0-9][0-9]:[0-9][0-9]((Z?)|([\+-][0-9][0-9]:[0-9][0-9]))$/,type:"dateTime"},{regex:/^[0-9]+-[0-9][0-9]-[0-9][0-9]Z?$/,type:"date"},{regex:/^[0-9][0-9]:[0-9][0-9]:[0-9][0-9]((Z?)|([\+-][0-9][0-9]:[0-9][0-9]))$/,type:"time"},{regex:/^[0-9]+-[0-9][0-9]$/,type:"gYearMonth"},{regex:/^[0-9]+$/,type:"gYear"}];yl.IRI_REGEX=/^([A-Za-z][A-Za-z0-9+-.]*|_):[^ "<>{}|\\\[\]`]*$/;Object.defineProperty(gT,"__esModule",{value:!0});gT.RdfaParser=void 0;const iPe=s4,G7=Pt,aPe=ePe,sPe=tPe,oPe=bu,pi=C1;class p4 extends G7.Transform{constructor(e){super({readableObjectMode:!0}),this.activeTagStack=[],e=e||{},this.options=e,this.util=new pi.Util(e.dataFactory,e.baseIRI),this.defaultGraph=e.defaultGraph||this.util.dataFactory.defaultGraph();const r=e.contentType?pi.Util.contentTypeToProfile(e.contentType):e.profile||"";this.features=e.features||oPe.RDFA_FEATURES[r],this.htmlParseListener=e.htmlParseListener,this.rdfaPatterns=this.features.copyRdfaPatterns?{}:null,this.pendingRdfaPatternCopies=this.features.copyRdfaPatterns?{}:null,this.parser=this.initializeParser(r==="xml"),this.activeTagStack.push({incompleteTriples:[],inlist:!1,language:e.language,listMapping:{},listMappingLocal:{},name:"",prefixesAll:Object.assign(Object.assign({},sPe["@context"]),this.features.xhtmlInitialContext?aPe["@context"]:{}),prefixesCustom:{},skipElement:!1,vocab:e.vocab})}import(e){const r=new G7.PassThrough({readableObjectMode:!0});e.on("error",a=>n.emit("error",a)),e.on("data",a=>r.push(a)),e.on("end",()=>r.push(null));const n=r.pipe(new p4(this.options));return n}_transform(e,r,n){this.parser.write(e.toString()),n()}_flush(e){this.parser.end(),e()}onTagOpen(e,r){let n=this.activeTagStack.length-1;for(;n>0&&this.activeTagStack[n].skipElement;)n--;let a=this.activeTagStack[n];n!==this.activeTagStack.length-1&&(a=Object.assign(Object.assign({},a),{language:this.activeTagStack[this.activeTagStack.length-1].language,prefixesAll:this.activeTagStack[this.activeTagStack.length-1].prefixesAll,prefixesCustom:this.activeTagStack[this.activeTagStack.length-1].prefixesCustom,vocab:this.activeTagStack[this.activeTagStack.length-1].vocab}));const s={collectChildTags:a.collectChildTags,incompleteTriples:[],inlist:"inlist"in r,listMapping:[],listMappingLocal:a.listMapping,localBaseIRI:a.localBaseIRI,name:e,prefixesAll:null,prefixesCustom:null,skipElement:!1};if(this.activeTagStack.push(s),s.collectChildTags){for(const m of Object.keys(a.prefixesCustom).sort()){const y=a.prefixesCustom[m],g=m===""?"xmlns":"xmlns:"+m;g in r||(r[g]=y)}const p=Object.keys(r).map(m=>`${m}="${r[m]}"`).join(" ");if(s.text=[`<${e}${p?" "+p:""}>`],this.features.skipHandlingXmlLiteralChildren)return}let o=!0,u=!0;if(this.features.onlyAllowUriRelRevIfProperty&&("property"in r&&"rel"in r&&(o=!1,r.rel.indexOf(":")<0&&delete r.rel),"property"in r&&"rev"in r&&(u=!1,r.rev.indexOf(":")<0&&delete r.rev)),this.features.copyRdfaPatterns){if(a.collectedPatternTag){const p={attributes:r,children:[],name:e,referenced:!1,rootPattern:!1,text:[]};a.collectedPatternTag.children.push(p),s.collectedPatternTag=p;return}if(r.typeof==="rdfa:Pattern"){s.collectedPatternTag={attributes:r,children:[],name:e,parentTag:a,referenced:!1,rootPattern:!0,text:[]};return}if(r.property==="rdfa:copy"){const p=r.resource||r.href||r.src;this.rdfaPatterns[p]?this.emitPatternCopy(a,this.rdfaPatterns[p],p):(this.pendingRdfaPatternCopies[p]||(this.pendingRdfaPatternCopies[p]=[]),this.pendingRdfaPatternCopies[p].push(a));return}}this.features.baseTag&&e==="base"&&r.href&&(this.util.baseIRI=this.util.getBaseIRI(r.href)),this.features.xmlBase&&r["xml:base"]&&(s.localBaseIRI=this.util.getBaseIRI(r["xml:base"])),this.features.timeTag&&e==="time"&&!r.datatype&&(s.interpretObjectAsTime=!0);let c,l,d;if("vocab"in r?r.vocab?(s.vocab=r.vocab,this.emitTriple(this.util.getBaseIriTerm(s),this.util.dataFactory.namedNode(pi.Util.RDFA+"usesVocabulary"),this.util.dataFactory.namedNode(s.vocab))):s.vocab=this.activeTagStack[0].vocab:s.vocab=a.vocab,s.prefixesCustom=pi.Util.parsePrefixes(r,a.prefixesCustom,this.features.xmlnsPrefixMappings),s.prefixesAll=Object.keys(s.prefixesCustom).length>0?Object.assign(Object.assign({},a.prefixesAll),s.prefixesCustom):a.prefixesAll,this.features.roleAttribute&&r.role){const p=r.id?this.util.createIri("#"+r.id,s,!1,!1,!1):this.util.createBlankNode(),m=s.vocab;s.vocab="http://www.w3.org/1999/xhtml/vocab#";for(const y of this.util.createVocabIris(r.role,s,!0,!1))this.emitTriple(p,this.util.dataFactory.namedNode("http://www.w3.org/1999/xhtml/vocab#role"),y);s.vocab=m}"xml:lang"in r||this.features.langAttribute&&"lang"in r?s.language=r["xml:lang"]||r.lang:s.language=a.language;const f=this.activeTagStack.length===2;if(!("rel"in r)&&!("rev"in r)?"property"in r&&!("content"in r)&&!("datatype"in r)?("about"in r?(c=this.util.createIri(r.about,s,!1,!0,!0),s.explicitNewSubject=!!c):f?c=!0:a.object&&(c=a.object),"typeof"in r&&("about"in r&&(d=this.util.createIri(r.about,s,!1,!0,!0)),!d&&f&&(d=!0),!d&&"resource"in r&&(d=this.util.createIri(r.resource,s,!1,!0,!0)),!d&&("href"in r||"src"in r)&&(d=this.util.createIri(r.href||r.src,s,!1,!1,!0)),!d&&this.isInheritSubjectInHeadBody(e)&&(d=c),d||(d=this.util.createBlankNode()),l=d)):(("about"in r||"resource"in r)&&(c=this.util.createIri(r.about||r.resource,s,!1,!0,!0),s.explicitNewSubject=!!c),!c&&("href"in r||"src"in r)&&(c=this.util.createIri(r.href||r.src,s,!1,!1,!0),s.explicitNewSubject=!!c),c||(f?c=!0:this.isInheritSubjectInHeadBody(e)?c=a.object:"typeof"in r?(c=this.util.createBlankNode(),s.explicitNewSubject=!0):a.object&&(c=a.object,"property"in r||(s.skipElement=!0))),"typeof"in r&&(d=c)):("about"in r?(c=this.util.createIri(r.about,s,!1,!0,!0),s.explicitNewSubject=!!c,"typeof"in r&&(d=c)):f?c=!0:a.object&&(c=a.object),"resource"in r&&(l=this.util.createIri(r.resource,s,!1,!0,!0)),l||("href"in r||"src"in r?l=this.util.createIri(r.href||r.src,s,!1,!1,!0):"typeof"in r&&!("about"in r)&&!this.isInheritSubjectInHeadBody(e)&&(l=this.util.createBlankNode())),"typeof"in r&&!("about"in r)&&(this.isInheritSubjectInHeadBody(e)?d=c:d=l)),d)for(const p of this.util.createVocabIris(r.typeof,s,!0,!0))this.emitTriple(this.util.getResourceOrBaseIri(d,s),this.util.dataFactory.namedNode(pi.Util.RDF+"type"),p);if(c&&(s.listMapping={}),l){if("rel"in r&&"inlist"in r)for(const p of this.util.createVocabIris(r.rel,s,o,!1))this.addListMapping(s,c,p,l);if(!("rel"in r&&"inlist"in r)){if("rel"in r)for(const p of this.util.createVocabIris(r.rel,s,o,!1))this.emitTriple(this.util.getResourceOrBaseIri(c,s),p,this.util.getResourceOrBaseIri(l,s));if("rev"in r)for(const p of this.util.createVocabIris(r.rev,s,u,!1))this.emitTriple(this.util.getResourceOrBaseIri(l,s),p,this.util.getResourceOrBaseIri(c,s))}}if(!l){if("rel"in r)if("inlist"in r)for(const p of this.util.createVocabIris(r.rel,s,o,!1))this.addListMapping(s,c,p,null),s.incompleteTriples.push({predicate:p,reverse:!1,list:!0});else for(const p of this.util.createVocabIris(r.rel,s,o,!1))s.incompleteTriples.push({predicate:p,reverse:!1});if("rev"in r)for(const p of this.util.createVocabIris(r.rev,s,u,!1))s.incompleteTriples.push({predicate:p,reverse:!0});s.incompleteTriples.length>0&&(l=this.util.createBlankNode())}if("property"in r){s.predicates=this.util.createVocabIris(r.property,s,!0,!1);let p;if("datatype"in r?(s.datatype=this.util.createIri(r.datatype,s,!0,!0,!1),s.datatype&&(s.datatype.value===pi.Util.RDF+"XMLLiteral"||this.features.htmlDatatype&&s.datatype.value===pi.Util.RDF+"HTML")&&(s.collectChildTags=!0)):(!("rev"in r)&&!("rel"in r)&&!("content"in r)&&("resource"in r&&(p=this.util.createIri(r.resource,s,!1,!0,!0)),!p&&"href"in r&&(p=this.util.createIri(r.href,s,!1,!1,!0)),!p&&"src"in r&&(p=this.util.createIri(r.src,s,!1,!1,!0))),"typeof"in r&&!("about"in r)&&(p=d)),"content"in r){const m=this.util.createLiteral(r.content,s);if("inlist"in r)for(const y of s.predicates)this.addListMapping(s,c,y,m);else{const y=this.util.getResourceOrBaseIri(c,s);for(const g of s.predicates)this.emitTriple(y,g,m)}s.predicates=null}else if(this.features.datetimeAttribute&&"datetime"in r){s.interpretObjectAsTime=!0;const m=this.util.createLiteral(r.datetime,s);if("inlist"in r)for(const y of s.predicates)this.addListMapping(s,c,y,m);else{const y=this.util.getResourceOrBaseIri(c,s);for(const g of s.predicates)this.emitTriple(y,g,m)}s.predicates=null}else if(p){const m=this.util.getResourceOrBaseIri(p,s);if("inlist"in r)for(const y of s.predicates)this.addListMapping(s,c,y,m);else{const y=this.util.getResourceOrBaseIri(c,s);for(const g of s.predicates)this.emitTriple(y,g,m)}s.predicates=null}}let h=!1;if(!s.skipElement&&c&&a.incompleteTriples.length>0){h=!0;const p=this.util.getResourceOrBaseIri(a.subject,s),m=this.util.getResourceOrBaseIri(c,s);for(const y of a.incompleteTriples)if(y.reverse)this.emitTriple(m,y.predicate,p);else if(y.list){let g=null;for(let b=this.activeTagStack.length-1;b>=0;b--)if(this.activeTagStack[b].inlist){g=this.activeTagStack[b];break}this.addListMapping(g,c,y.predicate,m)}else this.emitTriple(p,y.predicate,m)}!h&&a.incompleteTriples.length>0&&(s.incompleteTriples=s.incompleteTriples.concat(a.incompleteTriples)),s.subject=c||a.subject,s.object=l||c}onText(e){const r=this.activeTagStack[this.activeTagStack.length-1];if(this.features.copyRdfaPatterns&&r.collectedPatternTag){r.collectedPatternTag.text.push(e);return}r.text||(r.text=[]),r.text.push(e)}onTagClose(){const e=this.activeTagStack[this.activeTagStack.length-1],r=this.activeTagStack[this.activeTagStack.length-2];if(!(e.collectChildTags&&r.collectChildTags&&this.features.skipHandlingXmlLiteralChildren)){if(this.features.copyRdfaPatterns&&e.collectedPatternTag&&e.collectedPatternTag.rootPattern){const n=e.collectedPatternTag.attributes.resource;if(delete e.collectedPatternTag.attributes.resource,delete e.collectedPatternTag.attributes.typeof,this.rdfaPatterns[n]=e.collectedPatternTag,this.pendingRdfaPatternCopies[n]){for(const a of this.pendingRdfaPatternCopies[n])this.emitPatternCopy(a,e.collectedPatternTag,n);delete this.pendingRdfaPatternCopies[n]}this.activeTagStack.pop();return}if(e.predicates){const n=this.util.getResourceOrBaseIri(e.subject,e);let a=e.text||[];e.collectChildTags&&r.collectChildTags&&(a=a.slice(1));const s=this.util.createLiteral(a.join(""),e);if(e.inlist)for(const o of e.predicates)this.addListMapping(e,n,o,s);else for(const o of e.predicates)this.emitTriple(n,o,s);r.predicates||(e.text=null)}if(e.object&&Object.keys(e.listMapping).length>0){const n=this.util.getResourceOrBaseIri(e.object,e);for(const a in e.listMapping){const s=this.util.dataFactory.namedNode(a),o=e.listMapping[a];if(o.length>0){const u=o.map(()=>this.util.createBlankNode());for(let c=0;c`),e.text&&r&&(r.text?r.text=r.text.concat(e.text):r.text=e.text)}onEnd(){if(this.features.copyRdfaPatterns){this.features.copyRdfaPatterns=!1;for(const e in this.rdfaPatterns){const r=this.rdfaPatterns[e];r.referenced||(r.attributes.typeof="rdfa:Pattern",r.attributes.resource=e,this.emitPatternCopy(r.parentTag,r,e),r.referenced=!1,delete r.attributes.typeof,delete r.attributes.resource)}for(const e in this.pendingRdfaPatternCopies)for(const r of this.pendingRdfaPatternCopies[e])this.activeTagStack.push(r),this.onTagOpen("link",{property:"rdfa:copy",href:e}),this.onTagClose(),this.activeTagStack.pop();this.features.copyRdfaPatterns=!0}}isInheritSubjectInHeadBody(e){return this.features.inheritSubjectInHeadBody&&(e==="head"||e==="body")}addListMapping(e,r,n,a){if(e.explicitNewSubject){const s=this.util.createBlankNode();this.emitTriple(this.util.getResourceOrBaseIri(r,e),n,s),this.emitTriple(s,this.util.dataFactory.namedNode(pi.Util.RDF+"first"),this.util.getResourceOrBaseIri(a,e)),this.emitTriple(s,this.util.dataFactory.namedNode(pi.Util.RDF+"rest"),this.util.dataFactory.namedNode(pi.Util.RDF+"nil"))}else{let s=e.listMappingLocal[n.value];s||(e.listMappingLocal[n.value]=s=[]),a&&s.push(a)}}emitTriple(e,r,n){e.termType==="NamedNode"&&e.value.indexOf(":")<0||r.termType==="NamedNode"&&r.value.indexOf(":")<0||n.termType==="NamedNode"&&n.value.indexOf(":")<0||this.push(this.util.dataFactory.quad(e,r,n,this.defaultGraph))}emitPatternCopy(e,r,n){if(this.activeTagStack.push(e),r.referenced=!0,!r.constructedBlankNodes)r.constructedBlankNodes=[],this.util.blankNodeFactory=()=>{const a=this.util.dataFactory.blankNode();return r.constructedBlankNodes.push(a),a};else{let a=0;this.util.blankNodeFactory=()=>r.constructedBlankNodes[a++]}this.emitPatternCopyAbsolute(r,!0,n),this.util.blankNodeFactory=null,this.activeTagStack.pop()}emitPatternCopyAbsolute(e,r,n){if(!(!r&&e.attributes.property==="rdfa:copy"&&e.attributes.href===n)){this.onTagOpen(e.name,e.attributes);for(const a of e.text)this.onText(a);for(const a of e.children)this.emitPatternCopyAbsolute(a,!1,n);this.onTagClose()}}initializeParser(e){return new iPe.Parser({onclosetag:()=>{try{this.onTagClose(),this.htmlParseListener&&this.htmlParseListener.onTagClose()}catch(r){this.emit("error",r)}},onend:()=>{try{this.onEnd(),this.htmlParseListener&&this.htmlParseListener.onEnd()}catch(r){this.emit("error",r)}},onopentag:(r,n)=>{try{this.onTagOpen(r,n),this.htmlParseListener&&this.htmlParseListener.onTagOpen(r,n)}catch(a){this.emit("error",a)}},ontext:r=>{try{this.onText(r),this.htmlParseListener&&this.htmlParseListener.onText(r)}catch(n){this.emit("error",n)}}},{decodeEntities:!0,recognizeSelfClosing:!0,xmlMode:e})}}gT.RdfaParser=p4;(function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(MZ,t),r(FZ,t),r(BZ,t),r(gT,t),r(bu,t),r(C1,t)})(a4);var W7;function uPe(){if(W7)return n0;W7=1,Object.defineProperty(n0,"__esModule",{value:!0}),n0.ActorRdfParseXmlRdfa=void 0;const t=Mf(),e=a4;let r=class extends t.ActorRdfParseFixedMediaTypes{constructor(a){super(a)}async runHandle(a,s,o){var l;const u=(a.headers&&a.headers.get("content-language"))??void 0;a.data.on("error",d=>c.emit("error",d));const c=a.data.pipe(new e.RdfaParser({baseIRI:(l=a.metadata)==null?void 0:l.baseIRI,profile:"xml",language:u}));return{data:c,metadata:{triples:!0}}}};return n0.ActorRdfParseXmlRdfa=r,n0}var K7;function cPe(){return K7||(K7=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(uPe(),t)}(FO)),FO}var qO={},i0={},y4={},lPe=function(){var t=function(be,ve,Fe,Je){for(Fe=Fe||{},Je=be.length;Je--;Fe[be[Je]]=ve);return Fe},e=[7,12,13,14,15,16,20,25,115,130],r=[7,13,16,20,25,115,130],n=[7,13,16,115,130],a=[1,25],s=[1,29],o=[1,27],u=[1,28],c=[13,16,115,130],l=[13,16,28,38,40,42,44,46,48,53,56,61,67,85,87,92,93,95,96,102,110,111,115,119,120,126,128,129,130,131,132,133,134,135,136],d=[28,56],f=[1,42],h=[46,48,53,56],p=[1,54],m=[1,60],y=[1,56],g=[1,57],b=[1,58],v=[1,63],_=[1,64],w=[1,65],E=[1,66],O=[1,67],L=[1,68],F=[1,75],x=[28,46,48,53,56],P=[28,42,46,48,53,56],j=[13,16,28,38,40,42,44,46,48,53,56,92,115,119,120,130,131,132,133,134,135,136],N=[13,16,28,38,40,42,44,46,48,53,56,67,85,87,92,95,96,115,119,120,126,128,129,130,131,132,133,134,135,136],V=[13,16,38,40,44,92,115,119,120,130,131,132,133,134,135,136],$=[13,16,28,38,40,42,44,46,48,53,56,67,85,87,92,95,96,115,117,118,119,120,126,128,129,130,131,132,133,134,135,136],q=[13,16,28,56,115,130],H=[13,16,38,58,87,96,109,115,126,130],X=[1,116],Y=[1,112],he=[1,108],Te=[1,114],Ne=[1,111],$e=[7,13,16,20,25,44,48,53,56,67,85,87,95,96,115,128,129,130],de=[48,53],ce=[48,53,87,96,126],xe=[13,16,44,48,53,56,85,87,95,96,115,128,129,130],Pe=[1,126],we=[13,16,40,44,48,53,56,85,87,95,96,115,128,129,130],Re=[1,129],Se=[48,53,67,87,96,126],z=[13,16,40,44,48,53,56,67,85,87,95,96,115,128,129,130],M=[1,133],k=[13,16,40,44,48,53,56,67,85,87,95,96,102,115,128,129,130],T=[13,16,40,44,48,53,56,67,85,87,93,95,96,102,110,111,115,128,129,130],R=[1,151],U=[1,153],G=[1,156],Q=[1,157],Z=[1,158],se=[1,167],re=[1,175],le=[13,16,44,48,53,56,67,85,87,95,96,115,128,129,130],pe=[13,16,44,48,53,56,67,85,87,95,96,115,126,128,129,130],_e=[13,16,46,92,115,119,120,130,131,132,133,134,135,136],Ie={trace:function(){},yy:{},symbols_:{error:2,shaclDoc:3,shaclDoc_repetition0:4,shaclDoc_repetition1:5,ttlSection:6,EOF:7,directive:8,baseDecl:9,importsDecl:10,prefixDecl:11,KW_BASE:12,IRIREF:13,KW_IMPORTS:14,KW_PREFIX:15,PNAME_NS:16,nodeShapeIri:17,iri:18,nodeShape:19,KW_SHAPE:20,nodeShape_option0:21,nodeShape_option1:22,nodeShapeBody:23,shapeClass:24,KW_SHAPE_CLASS:25,shapeClass_option0:26,turtleAnnotation:27,";":28,turtleAnnotation2:29,predicate:30,turtleAnnotation2_option0:31,objectList:32,object:33,objectList_repetition0:34,iriOrLiteral:35,blankNodeSection:36,list:37,"(":38,list_repetition0:39,")":40,objectTail:41,",":42,LB:43,"[":44,RB:45,"]":46,LP:47,"%":48,RP:49,pcSection:50,iriHead:51,ttlStatement:52,".":53,ttlSection_repetition0:54,startNodeShape:55,"{":56,endNodeShape:57,"}":58,nodeShapeBody_repetition0:59,targetClass:60,"->":61,targetClass_repetition_plus0:62,constraint:63,constraint_group0:64,constraint_option0:65,orNotComponent:66,"|":67,nodeNot:68,nodeOrEmit:69,nodeOr:70,nodeOr_repetition_plus0:71,nodeValue:72,negation:73,nodeValue_group0:74,"=":75,iriOrLiteralOrArray:76,propertyShape:77,path:78,propertyShape_repetition0:79,propertyOrComponent:80,propertyNot:81,propertyOr:82,propertyOr_repetition_plus0:83,propertyAtom:84,NODEKIND:85,shapeRef:86,PARAM:87,propertyCount:88,propertyMinCount:89,"..":90,propertyMaxCount:91,INTEGER:92,"*":93,shapeRef_group0:94,"@":95,"!":96,pathAlternative:97,additionalAlternative:98,pathSequence:99,pathAlternative_repetition_plus0:100,additionalSequence:101,"/":102,pathEltOrInverse:103,pathSequence_repetition_plus0:104,pathElt:105,pathPrimary:106,pathMod:107,pathInverse:108,"^":109,"?":110,"+":111,iriOrLiteralOrArray_repetition0:112,literal:113,iri_group0:114,a:115,string:116,LANGTAG:117,"^^":118,DECIMAL:119,DOUBLE:120,literal_group0:121,string_group0:122,string_group1:123,shaclDoc_repetition1_group0:124,constraint_group0_repetition_plus0:125,TARGET:126,propertyShape_repetition0_group0:127,ATPNAME_LN:128,ATPNAME_NS:129,PNAME_LN:130,KW_TRUE:131,KW_FALSE:132,STRING_LITERAL1:133,STRING_LITERAL2:134,STRING_LITERAL_LONG1:135,STRING_LITERAL_LONG2:136,$accept:0,$end:1},terminals_:{2:"error",7:"EOF",12:"KW_BASE",13:"IRIREF",14:"KW_IMPORTS",15:"KW_PREFIX",16:"PNAME_NS",20:"KW_SHAPE",25:"KW_SHAPE_CLASS",28:";",38:"(",40:")",42:",",44:"[",46:"]",48:"%",53:".",56:"{",58:"}",61:"->",67:"|",75:"=",85:"NODEKIND",87:"PARAM",90:"..",92:"INTEGER",93:"*",95:"@",96:"!",102:"/",109:"^",110:"?",111:"+",115:"a",117:"LANGTAG",118:"^^",119:"DECIMAL",120:"DOUBLE",126:"TARGET",128:"ATPNAME_LN",129:"ATPNAME_NS",130:"PNAME_LN",131:"KW_TRUE",132:"KW_FALSE",133:"STRING_LITERAL1",134:"STRING_LITERAL2",135:"STRING_LITERAL_LONG1",136:"STRING_LITERAL_LONG2"},productions_:[0,[3,4],[8,1],[8,1],[8,1],[9,2],[10,2],[11,3],[17,1],[19,5],[24,4],[27,2],[29,2],[30,2],[32,2],[33,1],[33,1],[33,1],[37,3],[41,2],[43,1],[45,1],[36,3],[47,1],[49,1],[50,3],[51,1],[52,3],[6,1],[55,1],[57,1],[23,3],[60,2],[63,3],[66,2],[69,1],[70,1],[70,2],[68,1],[68,2],[72,3],[77,2],[80,2],[82,1],[82,2],[81,1],[81,2],[84,1],[84,1],[84,1],[84,3],[84,1],[88,5],[89,1],[91,1],[91,1],[86,1],[86,2],[73,1],[78,1],[98,2],[97,1],[97,2],[101,2],[99,1],[99,2],[105,1],[105,2],[103,1],[103,2],[108,1],[107,1],[107,1],[107,1],[106,1],[106,3],[76,1],[76,3],[35,1],[35,1],[18,1],[18,1],[18,1],[113,1],[113,2],[113,3],[113,1],[113,1],[113,1],[113,1],[116,1],[116,1],[4,0],[4,2],[124,1],[124,1],[5,0],[5,2],[21,0],[21,1],[22,0],[22,1],[26,0],[26,1],[31,0],[31,1],[34,0],[34,2],[39,0],[39,2],[54,0],[54,2],[59,0],[59,2],[62,1],[62,2],[125,1],[125,2],[64,1],[64,1],[65,0],[65,1],[71,1],[71,2],[74,1],[74,1],[127,1],[127,1],[79,0],[79,2],[83,1],[83,2],[94,1],[94,1],[100,1],[100,2],[104,1],[104,2],[112,0],[112,2],[114,1],[114,1],[121,1],[121,1],[122,1],[122,1],[123,1],[123,1]],performAction:function(ve,Fe,Je,lt,rt,Qe,di){var et=Qe.length-1;switch(rt){case 1:this.$=te(ie.factory.namedNode(De("")),ie.factory.namedNode(Me),ie.factory.namedNode(ge+"Ontology"));break;case 5:ie.base=ie.factory.namedNode(Qe[et].slice(1,-1)),ie.n3Parser._setBase(ie.base.value);break;case 6:this.$=te(ie.base,ie.factory.namedNode(ge+"imports"),ie.factory.namedNode(Qe[et].slice(1,-1)));break;case 7:this.$=ie.prefixes[Qe[et-1].substr(0,Qe[et-1].length-1)]=De(Qe[et]);break;case 8:ie.nodeShapeStack=!1,te(ie.currentNodeShape=Qe[et],ie.factory.namedNode(Me),ie.factory.namedNode(fe+"NodeShape"));break;case 10:this.$=te(ie.currentNodeShape,ie.factory.namedNode(Me),ie.factory.namedNode(Le+"Class"));break;case 11:this.$=C();break;case 13:this.$=Qe[et].forEach(Gt=>te(ie.currentNodeShape,Qe[et-1],Gt));break;case 14:this.$=[Qe[et-1],...Qe[et]];break;case 18:this.$=Oe(Qe[et-1],!0);break;case 19:case 34:case 42:case 60:case 63:this.$=Qe[et];break;case 20:ie.tempCurrentNodeShape=ie.currentNodeShape,this.$=ie.currentNodeShape=at();break;case 21:ie.currentNodeShape=ie.tempCurrentNodeShape;break;case 22:case 31:this.$=Qe[et-2];break;case 23:ie.tempCurrentNodeShape=ie.currentNodeShape,ie.currentNodeShape=ie.currentPropertyNode;break;case 24:ie.currentNodeShape=ie.tempCurrentNodeShape;break;case 26:ie.currentNodeShape=Qe[et];break;case 29:ie.nodeShapeStack?(ie.nodeShapeStack.push(ie.currentNodeShape),te(ie.currentPropertyNode,ie.factory.namedNode(fe+"node"),ie.currentNodeShape=at())):ie.nodeShapeStack=[],this.$=ie.currentNodeShape;break;case 30:ie.nodeShapeStack.length>0&&(ie.currentNodeShape=ie.nodeShapeStack.pop());break;case 32:this.$=Qe[et].forEach(Gt=>{te(ie.currentNodeShape,ie.factory.namedNode(fe+"targetClass"),Gt)});break;case 35:this.$=te(ie.currentNodeShape,ie.factory.namedNode(fe+Qe[et][0]),Qe[et][1]);break;case 36:break;case 37:const $r=Oe([Qe[et-1],...Qe[et]].map(Gt=>{const Nr=at();return te(Nr,ie.factory.namedNode(fe+Gt[0]),Gt[1]),Nr}));this.$=["or",$r];break;case 39:case 46:this.$=A("not",...Qe[et]);break;case 40:case 50:this.$=[Qe[et-2],Qe[et]];break;case 43:this.$=Qe[et]&&S(...Qe[et]);break;case 44:this.$=S("or",Oe([Qe[et-1],...Qe[et]].map(Gt=>{const Nr=at();return te(Nr,ie.factory.namedNode(fe+Gt[0]),Gt[1]),Nr})));break;case 47:this.$=[ee[Qe[et].value]?"datatype":"class",Qe[et]];break;case 48:this.$=["nodeKind",ie.factory.namedNode(fe+Qe[et])];break;case 49:this.$=["node",ie.factory.namedNode(Qe[et])];break;case 51:this.$=void 0;break;case 53:this.$=Qe[et]>0&&S("minCount",Ye(Qe[et],D));break;case 54:this.$=S("maxCount",Ye(Qe[et],D));break;case 56:this.$=Ue(Qe[et].slice(1));break;case 57:this.$=De(Qe[et]);break;case 59:te(ie.currentNodeShape,ie.factory.namedNode(fe+"property"),ie.currentPropertyNode=at()),S("path",Qe[et]);break;case 62:const Xt=at();te(Xt,ie.factory.namedNode(fe+"alternativePath"),Oe([Qe[et-1],...Qe[et]])),this.$=Xt;break;case 65:this.$=Oe([Qe[et-1],...Qe[et]]);break;case 67:te(this.$=at(),ie.factory.namedNode(fe+Qe[et]),Qe[et-1]);break;case 69:te(this.$=at(),ie.factory.namedNode(fe+"inversePath"),Qe[et]);break;case 71:this.$="zeroOrOnePath";break;case 72:this.$="zeroOrMorePath";break;case 73:this.$="oneOrMorePath";break;case 75:this.$=Qe[et-1];break;case 77:this.$=Oe(Qe[et-1]);break;case 80:this.$=ie.factory.namedNode(De(Qe[et]));break;case 81:this.$=ie.factory.namedNode(Ue(Qe[et]));break;case 82:this.$=C(ie.factory.namedNode(Me));break;case 83:this.$=Ye(Qe[et]);break;case 84:this.$=ut(Qe[et-1],lowercase(Qe[et].substr(1)));break;case 85:this.$=Ye(Qe[et-2],Qe[et]);break;case 86:this.$=Ye(Qe[et],D);break;case 87:this.$=Ye(Qe[et],B);break;case 88:this.$=Ye(Qe[et].toLowerCase(),K);break;case 89:this.$=Ye(Qe[et].toLowerCase(),ne);break;case 90:this.$=ht(Qe[et],1);break;case 91:this.$=ht(Qe[et],3);break;case 92:case 96:case 106:case 108:case 110:case 112:case 128:case 138:this.$=[];break;case 93:case 97:case 107:case 109:case 111:case 113:case 115:case 117:case 123:case 129:case 131:case 135:case 137:case 139:Qe[et-1].push(Qe[et]);break;case 114:case 116:case 122:case 130:case 134:case 136:this.$=[Qe[et]];break}},table:[t(e,[2,92],{3:1,4:2}),{1:[3]},t(r,[2,96],{5:3,8:4,9:5,10:6,11:7,12:[1,8],14:[1,9],15:[1,10]}),t(n,[2,110],{6:11,124:12,54:13,19:14,24:15,20:[1,16],25:[1,17]}),t(e,[2,93]),t(e,[2,2]),t(e,[2,3]),t(e,[2,4]),{13:[1,18]},{13:[1,19]},{16:[1,20]},{7:[1,21]},t(r,[2,97]),{7:[2,28],13:a,16:s,18:24,51:23,52:22,114:26,115:o,130:u},t(r,[2,94]),t(r,[2,95]),{13:a,16:s,17:30,18:31,114:26,115:o,130:u},{13:a,16:s,17:32,18:31,114:26,115:o,130:u},t(e,[2,5]),t(e,[2,6]),{13:[1,33]},{1:[2,1]},t(n,[2,111]),{13:a,16:s,18:36,29:34,30:35,114:26,115:o,130:u},t(c,[2,26]),t(l,[2,80]),t(l,[2,81]),t(l,[2,82]),t(l,[2,140]),t(l,[2,141]),t(d,[2,98],{21:37,60:38,61:[1,39]}),t([28,56,61],[2,8]),{26:40,27:41,28:f,56:[2,102]},t(e,[2,7]),{53:[1,43]},t(h,[2,104],{31:44,27:45,28:f}),{13:a,16:s,18:51,32:46,33:47,35:48,36:49,37:50,38:p,43:53,44:m,92:y,113:52,114:26,115:o,116:55,119:g,120:b,121:59,122:61,123:62,130:u,131:v,132:_,133:w,134:E,135:O,136:L},{22:69,27:70,28:f,56:[2,100]},t(d,[2,99]),{13:a,16:s,18:72,62:71,114:26,115:o,130:u},{23:73,55:74,56:F},{56:[2,103]},{13:a,16:s,18:36,29:76,30:35,114:26,115:o,130:u},t(n,[2,27]),t(h,[2,12]),t(h,[2,105]),t(x,[2,13]),t(P,[2,106],{34:77}),t(j,[2,15]),t(j,[2,16]),t(j,[2,17]),t(N,[2,78]),t(N,[2,79]),{13:a,16:s,18:36,29:78,30:35,114:26,115:o,130:u},t(V,[2,108],{39:79}),t(N,[2,83],{117:[1,80],118:[1,81]}),t(N,[2,86]),t(N,[2,87]),t(N,[2,88]),t(N,[2,89]),t(c,[2,20]),t($,[2,90]),t($,[2,91]),t(N,[2,142]),t(N,[2,143]),t($,[2,144]),t($,[2,145]),t($,[2,146]),t($,[2,147]),{23:82,55:74,56:F},{56:[2,101]},t(d,[2,32],{114:26,18:83,13:a,16:s,115:o,130:u}),t(q,[2,114]),t(r,[2,10]),t(H,[2,112],{59:84}),t(H,[2,29]),t(h,[2,11]),t(x,[2,14],{41:85,42:[1,86]}),{45:87,46:[1,88]},{13:a,16:s,18:51,33:90,35:48,36:49,37:50,38:p,40:[1,89],43:53,44:m,92:y,113:52,114:26,115:o,116:55,119:g,120:b,121:59,122:61,123:62,130:u,131:v,132:_,133:w,134:E,135:O,136:L},t(N,[2,84]),{13:a,16:s,18:91,114:26,115:o,130:u},t(r,[2,9]),t(q,[2,115]),{13:a,16:s,18:115,38:X,57:92,58:[1,94],63:93,64:95,68:102,69:98,70:100,72:104,73:105,74:107,77:97,78:99,87:Y,96:he,97:101,99:103,103:106,105:109,106:113,108:110,109:Te,114:26,115:o,125:96,126:Ne,130:u},t(P,[2,107]),{13:a,16:s,18:51,33:117,35:48,36:49,37:50,38:p,43:53,44:m,92:y,113:52,114:26,115:o,116:55,119:g,120:b,121:59,122:61,123:62,130:u,131:v,132:_,133:w,134:E,135:O,136:L},t(j,[2,22]),t(j,[2,21]),t(j,[2,18]),t(V,[2,109]),t(N,[2,85]),t($e,[2,31]),t(H,[2,113]),t($e,[2,30]),{47:120,48:[1,121],50:119,53:[2,120],65:118},t(de,[2,118],{70:100,68:102,72:104,73:105,74:107,69:122,87:Y,96:he,126:Ne}),t(de,[2,119]),t(ce,[2,116]),t(xe,[2,128],{79:123}),t(ce,[2,35]),t(xe,[2,59]),t(ce,[2,36],{71:124,66:125,67:Pe}),t(we,[2,61],{100:127,98:128,67:Re}),t(Se,[2,38]),{72:130,74:107,87:Y,126:Ne},t(z,[2,64],{104:131,101:132,102:M}),{75:[1,134]},t([13,16,56,85,87,95,115,126,128,129,130],[2,58]),t(k,[2,68]),{13:a,16:s,18:115,38:X,105:135,106:113,114:26,115:o,130:u},{75:[2,124]},{75:[2,125]},t(k,[2,66],{107:136,93:[1,138],110:[1,137],111:[1,139]}),t([13,16,38,115,130],[2,70]),t(T,[2,74]),{13:a,16:s,18:115,38:X,97:140,99:103,103:106,105:109,106:113,108:110,109:Te,114:26,115:o,130:u},t(P,[2,19]),{53:[1,141]},{53:[2,121]},{13:a,16:s,18:36,29:142,30:35,114:26,115:o,130:u},t(c,[2,23]),t(ce,[2,117]),t(de,[2,41],{114:26,55:74,127:143,88:144,82:145,81:147,84:148,73:149,18:150,86:152,23:154,94:155,13:a,16:s,44:[1,146],56:F,85:R,87:U,95:G,96:he,115:o,128:Q,129:Z,130:u}),t(ce,[2,37],{66:159,67:Pe}),t(Se,[2,122]),{68:160,72:104,73:105,74:107,87:Y,96:he,126:Ne},t(we,[2,62],{98:161,67:Re}),t(z,[2,134]),{13:a,16:s,18:115,38:X,99:162,103:106,105:109,106:113,108:110,109:Te,114:26,115:o,130:u},t(Se,[2,39]),t(z,[2,65],{101:163,102:M}),t(k,[2,136]),{13:a,16:s,18:115,38:X,103:164,105:109,106:113,108:110,109:Te,114:26,115:o,130:u},{13:a,16:s,18:51,35:166,44:se,76:165,92:y,113:52,114:26,115:o,116:55,119:g,120:b,121:59,122:61,123:62,130:u,131:v,132:_,133:w,134:E,135:O,136:L},t(k,[2,69]),t(k,[2,67]),t(k,[2,71]),t(k,[2,72]),t(k,[2,73]),{40:[1,168]},t(H,[2,33]),{48:[1,170],49:169},t(xe,[2,129]),t(xe,[2,126]),t(xe,[2,127]),{89:171,92:[1,172]},t(xe,[2,43],{83:173,80:174,67:re}),t(le,[2,45]),{13:a,16:s,18:150,23:154,55:74,56:F,84:176,85:R,86:152,87:U,94:155,95:G,114:26,115:o,128:Q,129:Z,130:u},t(le,[2,47]),t(le,[2,48]),t(le,[2,49]),{75:[1,177]},t(le,[2,51]),t(le,[2,56]),{13:[1,178]},t(le,[2,132]),t(le,[2,133]),t(Se,[2,123]),t(Se,[2,34]),t(z,[2,135]),t(z,[2,60]),t(k,[2,137]),t(k,[2,63]),t(Se,[2,40]),t(pe,[2,76]),t(_e,[2,138],{112:179}),t(T,[2,75]),{53:[2,25]},{53:[2,24]},{90:[1,180]},{90:[2,53]},t(xe,[2,44],{80:181,67:re}),t(le,[2,130]),{13:a,16:s,18:150,23:154,55:74,56:F,73:149,81:182,84:148,85:R,86:152,87:U,94:155,95:G,96:he,114:26,115:o,128:Q,129:Z,130:u},t(le,[2,46]),{13:a,16:s,18:51,35:166,44:se,76:183,92:y,113:52,114:26,115:o,116:55,119:g,120:b,121:59,122:61,123:62,130:u,131:v,132:_,133:w,134:E,135:O,136:L},t(le,[2,57]),{13:a,16:s,18:51,35:185,46:[1,184],92:y,113:52,114:26,115:o,116:55,119:g,120:b,121:59,122:61,123:62,130:u,131:v,132:_,133:w,134:E,135:O,136:L},{91:186,92:[1,187],93:[1,188]},t(le,[2,131]),t(le,[2,42]),t(le,[2,50]),t(pe,[2,77]),t(_e,[2,139]),{46:[1,189]},{46:[2,54]},{46:[2,55]},t(xe,[2,52])],defaultActions:{21:[2,1],41:[2,103],70:[2,101],111:[2,124],112:[2,125],119:[2,121],169:[2,25],170:[2,24],172:[2,53],187:[2,54],188:[2,55]},parseError:function(ve,Fe){if(Fe.recoverable)this.trace(ve);else{var Je=new Error(ve);throw Je.hash=Fe,Je}},parse:function(ve){var Fe=this,Je=[0],lt=[null],rt=[],Qe=this.table,di="",et=0,$r=0,Xt=2,Gt=1,Nr=rt.slice.call(arguments,1),Ct=Object.create(this.lexer),zi={yy:{}};for(var Ai in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ai)&&(zi.yy[Ai]=this.yy[Ai]);Ct.setInput(ve,zi.yy),zi.yy.lexer=Ct,zi.yy.parser=this,typeof Ct.yylloc>"u"&&(Ct.yylloc={});var or=Ct.yylloc;rt.push(or);var xs=Ct.options&&Ct.options.ranges;typeof zi.yy.parseError=="function"?this.parseError=zi.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var xo=function(){var Pn;return Pn=Ct.lex()||Gt,typeof Pn!="number"&&(Pn=Fe.symbols_[Pn]||Pn),Pn},Vr,fi,on,Oi,un={},_a,Zr,Va,ba;;){if(fi=Je[Je.length-1],this.defaultActions[fi]?on=this.defaultActions[fi]:((Vr===null||typeof Vr>"u")&&(Vr=xo()),on=Qe[fi]&&Qe[fi][Vr]),typeof on>"u"||!on.length||!on[0]){var Un="";ba=[];for(_a in Qe[fi])this.terminals_[_a]&&_a>Xt&&ba.push("'"+this.terminals_[_a]+"'");Ct.showPosition?Un="Parse error on line "+(et+1)+`: `+Ct.showPosition()+` -Expecting `+ba.join(", ")+", got '"+(this.terminals_[Vr]||Vr)+"'":Un="Parse error on line "+(tt+1)+": Unexpected "+(Vr==Gt?"end of input":"'"+(this.terminals_[Vr]||Vr)+"'"),this.parseError(Un,{text:Ct.match,token:this.terminals_[Vr]||Vr,line:Ct.yylineno,loc:or,expected:ba})}if(on[0]instanceof Array&&on.length>1)throw new Error("Parse Error: multiple actions possible at state: "+fi+", token: "+Vr);switch(on[0]){case 1:Je.push(Vr),lt.push(Ct.yytext),rt.push(Ct.yylloc),Je.push(on[1]),Vr=null,$r=Ct.yyleng,di=Ct.yytext,tt=Ct.yylineno,or=Ct.yylloc;break;case 2:if(Zr=this.productions_[on[1]][1],un.$=lt[lt.length-Zr],un._$={first_line:rt[rt.length-(Zr||1)].first_line,last_line:rt[rt.length-1].last_line,first_column:rt[rt.length-(Zr||1)].first_column,last_column:rt[rt.length-1].last_column},xs&&(un._$.range=[rt[rt.length-(Zr||1)].range[0],rt[rt.length-1].range[1]]),Oi=this.performAction.apply(un,[di,$r,tt,zi.yy,on[1],lt,rt].concat(Nr)),typeof Oi<"u")return Oi;Zr&&(Je=Je.slice(0,-1*Zr*2),lt=lt.slice(0,-1*Zr),rt=rt.slice(0,-1*Zr)),Je.push(this.productions_[on[1]][0]),lt.push(un.$),rt.push(un._$),Va=Qe[Je[Je.length-2]][Je[Je.length-1]],Je.push(Va);break;case 3:return!0}}return!0}};const Ee="http://www.w3.org/1999/02/22-rdf-syntax-ns#",Me=Ee+"type",Ce=Ee+"first",ke=Ee+"rest",qe=Ee+"nil",W="http://www.w3.org/2001/XMLSchema#",D=W+"integer",B=W+"decimal",K=W+"double",ne=W+"boolean",fe="http://www.w3.org/ns/shacl#",ge="http://www.w3.org/2002/07/owl#",Le="http://www.w3.org/2000/01/rdf-schema#",ee={[D]:!0,[B]:!0,[W+"float"]:!0,[K]:!0,[W+"string"]:!0,[ne]:!0,[W+"dateTime"]:!0,[W+"nonPositiveInteger"]:!0,[W+"negativeInteger"]:!0,[W+"long"]:!0,[W+"int"]:!0,[W+"short"]:!0,[W+"byte"]:!0,[W+"nonNegativeInteger"]:!0,[W+"unsignedLong"]:!0,[W+"unsignedShort"]:!0,[W+"unsignedByte"]:!0,[W+"positiveInteger"]:!0,[Ee+"langString"]:!0};function Oe(be,ve=!1){let Fe=0,Je=be.length;if(ve&&Je===0)return ie.factory.namedNode(qe);const lt=head=at();return Je===0&&te(head,ie.factory.namedNode(ke),ie.factory.namedNode(qe)),be.forEach(rt=>{if(rt===void 0)throw new Error("b");te(head,ie.factory.namedNode(Ce),rt),te(head,ie.factory.namedNode(ke),head=++Fe1)throw new Error("Parse Error: multiple actions possible at state: "+fi+", token: "+Vr);switch(on[0]){case 1:Je.push(Vr),lt.push(Ct.yytext),rt.push(Ct.yylloc),Je.push(on[1]),Vr=null,$r=Ct.yyleng,di=Ct.yytext,et=Ct.yylineno,or=Ct.yylloc;break;case 2:if(Zr=this.productions_[on[1]][1],un.$=lt[lt.length-Zr],un._$={first_line:rt[rt.length-(Zr||1)].first_line,last_line:rt[rt.length-1].last_line,first_column:rt[rt.length-(Zr||1)].first_column,last_column:rt[rt.length-1].last_column},xs&&(un._$.range=[rt[rt.length-(Zr||1)].range[0],rt[rt.length-1].range[1]]),Oi=this.performAction.apply(un,[di,$r,et,zi.yy,on[1],lt,rt].concat(Nr)),typeof Oi<"u")return Oi;Zr&&(Je=Je.slice(0,-1*Zr*2),lt=lt.slice(0,-1*Zr),rt=rt.slice(0,-1*Zr)),Je.push(this.productions_[on[1]][0]),lt.push(un.$),rt.push(un._$),Va=Qe[Je[Je.length-2]][Je[Je.length-1]],Je.push(Va);break;case 3:return!0}}return!0}};const Ee="http://www.w3.org/1999/02/22-rdf-syntax-ns#",Me=Ee+"type",Ce=Ee+"first",ke=Ee+"rest",qe=Ee+"nil",W="http://www.w3.org/2001/XMLSchema#",D=W+"integer",B=W+"decimal",K=W+"double",ne=W+"boolean",fe="http://www.w3.org/ns/shacl#",ge="http://www.w3.org/2002/07/owl#",Le="http://www.w3.org/2000/01/rdf-schema#",ee={[D]:!0,[B]:!0,[W+"float"]:!0,[K]:!0,[W+"string"]:!0,[ne]:!0,[W+"dateTime"]:!0,[W+"nonPositiveInteger"]:!0,[W+"negativeInteger"]:!0,[W+"long"]:!0,[W+"int"]:!0,[W+"short"]:!0,[W+"byte"]:!0,[W+"nonNegativeInteger"]:!0,[W+"unsignedLong"]:!0,[W+"unsignedShort"]:!0,[W+"unsignedByte"]:!0,[W+"positiveInteger"]:!0,[Ee+"langString"]:!0};function Oe(be,ve=!1){let Fe=0,Je=be.length;if(ve&&Je===0)return ie.factory.namedNode(qe);const lt=head=at();return Je===0&&te(head,ie.factory.namedNode(ke),ie.factory.namedNode(qe)),be.forEach(rt=>{if(rt===void 0)throw new Error("b");te(head,ie.factory.namedNode(Ce),rt),te(head,ie.factory.namedNode(ke),head=++Fe20?"...":"")+ve.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var ve=this.match;return ve.length<20&&(ve+=this._input.substr(0,20-ve.length)),(ve.substr(0,20)+(ve.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var ve=this.pastInput(),Fe=new Array(ve.length+1).join("-");return ve+this.upcomingInput()+` `+Fe+"^"},test_match:function(ve,Fe){var Je,lt,rt;if(this.options.backtrack_lexer&&(rt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(rt.yylloc.range=this.yylloc.range.slice(0))),lt=ve[0].match(/(?:\r\n?|\n).*/g),lt&&(this.yylineno+=lt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:lt?lt[lt.length-1].length-lt[lt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ve[0].length},this.yytext+=ve[0],this.match+=ve[0],this.matches=ve,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(ve[0].length),this.matched+=ve[0],Je=this.performAction.call(this,this.yy,this,Fe,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Je)return Je;if(this._backtrack){for(var Qe in rt)this[Qe]=rt[Qe];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var ve,Fe,Je,lt;this._more||(this.yytext="",this.match="");for(var rt=this._currentRules(),Qe=0;QeFe[0].length)){if(Fe=Je,lt=Qe,this.options.backtrack_lexer){if(ve=this.test_match(Je,rt[Qe]),ve!==!1)return ve;if(this._backtrack){Fe=!1;continue}else return!1}else if(!this.options.flex)break}return Fe?(ve=this.test_match(Fe,rt[lt]),ve!==!1?ve:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Fe=this.next();return Fe||this.lex()},begin:function(Fe){this.conditionStack.push(Fe)},popState:function(){var Fe=this.conditionStack.length-1;return Fe>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Fe){return Fe=this.conditionStack.length-1-Math.abs(Fe||0),Fe>=0?this.conditionStack[Fe]:"INITIAL"},pushState:function(Fe){this.begin(Fe)},stateStackSize:function(){return this.conditionStack.length},options:{flex:!0,"case-insensitive":!0},performAction:function(Fe,Je,lt,rt){switch(lt){case 0:break;case 1:return 12;case 2:return 14;case 3:return 15;case 4:return 25;case 5:return 20;case 6:return 131;case 7:return 132;case 8:return 85;case 9:return 126;case 10:return 87;case 11:return"PASS";case 12:return"COMMENT";case 13:return 13;case 14:return 16;case 15:return 130;case 16:return 129;case 17:return 128;case 18:return 117;case 19:return 92;case 20:return 119;case 21:return 120;case 22:return"EXPONENT";case 23:return 133;case 24:return 134;case 25:return 135;case 26:return 136;case 27:return 61;case 28:return 90;case 29:return 58;case 30:return 56;case 31:return 38;case 32:return 40;case 33:return 44;case 34:return 46;case 35:return 110;case 36:return 93;case 37:return 111;case 38:return 67;case 39:return 118;case 40:return 53;case 41:return 96;case 42:return 102;case 43:return 75;case 44:return 95;case 45:return 109;case 46:return 28;case 47:return 42;case 48:return 48;case 49:return 115;case 50:return 7;case 51:console.log(Je.yytext);break}},rules:[/^(?:\s+|#[^\n\r]*)/i,/^(?:BASE)/i,/^(?:IMPORTS)/i,/^(?:PREFIX)/i,/^(?:shapeClass)/i,/^(?:shape)/i,/^(?:true)/i,/^(?:false)/i,/^(?:(BlankNode|IRI|Literal|BlankNodeOrIRI|BlankNodeOrLiteral|IRIOrLiteral\b))/i,/^(?:(targetNode|targetObjectsOf|targetSubjectsOf\b))/i,/^(?:(deactivated|severity|message|class|datatype|nodeKind|minExclusive|minInclusive|maxExclusive|maxInclusive|minLength|maxLength|pattern|flags|languageIn|uniqueLang|equals|disjoint|lessThan|lessThanOrEquals|qualifiedValueShape|qualifiedMinCount|qualifiedMaxCount|qualifiedValueShapesDisjoint|closed|ignoredProperties|hasValue|in))/i,/^(?:([ \t\r\n]+))/i,/^(?:(#[\r\n]*))/i,/^(?:(<([^=<>\"\{\}\|\^`\\\u0000-\u0020]|(\\u([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])|\\U([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])))*>))/i,/^(?:((([A-Z]|[a-z]|[\u00C0-\u00D6]|[\u00D8-\u00F6]|[\u00F8-\u02FF]|[\u0370-\u037D]|[\u037F-\u1FFF]|[\u200C-\u200D]|[\u2070-\u218F]|[\u2C00-\u2FEF]|[\u3001-\uD7FF]|[\uF900-\uFDCF]|[\uFDF0-\uFFFD])((((([A-Z]|[a-z]|[\u00C0-\u00D6]|[\u00D8-\u00F6]|[\u00F8-\u02FF]|[\u0370-\u037D]|[\u037F-\u1FFF]|[\u200C-\u200D]|[\u2070-\u218F]|[\u2C00-\u2FEF]|[\u3001-\uD7FF]|[\uF900-\uFDCF]|[\uFDF0-\uFFFD])|_\b)|-|[0-9]|[\u00B7]|[\u0300-\u036F]|[\u203F-\u2040])|\.)*((([A-Z]|[a-z]|[\u00C0-\u00D6]|[\u00D8-\u00F6]|[\u00F8-\u02FF]|[\u0370-\u037D]|[\u037F-\u1FFF]|[\u200C-\u200D]|[\u2070-\u218F]|[\u2C00-\u2FEF]|[\u3001-\uD7FF]|[\uF900-\uFDCF]|[\uFDF0-\uFFFD])|_\b)|-|[0-9]|[\u00B7]|[\u0300-\u036F]|[\u203F-\u2040]))?)?:))/i,/^(?:(((([A-Z]|[a-z]|[\u00C0-\u00D6]|[\u00D8-\u00F6]|[\u00F8-\u02FF]|[\u0370-\u037D]|[\u037F-\u1FFF]|[\u200C-\u200D]|[\u2070-\u218F]|[\u2C00-\u2FEF]|[\u3001-\uD7FF]|[\uF900-\uFDCF]|[\uFDF0-\uFFFD])((((([A-Z]|[a-z]|[\u00C0-\u00D6]|[\u00D8-\u00F6]|[\u00F8-\u02FF]|[\u0370-\u037D]|[\u037F-\u1FFF]|[\u200C-\u200D]|[\u2070-\u218F]|[\u2C00-\u2FEF]|[\u3001-\uD7FF]|[\uF900-\uFDCF]|[\uFDF0-\uFFFD])|_\b)|-|[0-9]|[\u00B7]|[\u0300-\u036F]|[\u203F-\u2040])|\.)*((([A-Z]|[a-z]|[\u00C0-\u00D6]|[\u00D8-\u00F6]|[\u00F8-\u02FF]|[\u0370-\u037D]|[\u037F-\u1FFF]|[\u200C-\u200D]|[\u2070-\u218F]|[\u2C00-\u2FEF]|[\u3001-\uD7FF]|[\uF900-\uFDCF]|[\uFDF0-\uFFFD])|_\b)|-|[0-9]|[\u00B7]|[\u0300-\u036F]|[\u203F-\u2040]))?)?:)(((([A-Z]|[a-z]|[\u00C0-\u00D6]|[\u00D8-\u00F6]|[\u00F8-\u02FF]|[\u0370-\u037D]|[\u037F-\u1FFF]|[\u200C-\u200D]|[\u2070-\u218F]|[\u2C00-\u2FEF]|[\u3001-\uD7FF]|[\uF900-\uFDCF]|[\uFDF0-\uFFFD])|_\b)|:|[0-9]|((%([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f]))|(\\(_|~|\.|-|!|\$|&|'|\(|\)|\*|\+|,|;|=|\/|\?|#|@|%))))((((([A-Z]|[a-z]|[\u00C0-\u00D6]|[\u00D8-\u00F6]|[\u00F8-\u02FF]|[\u0370-\u037D]|[\u037F-\u1FFF]|[\u200C-\u200D]|[\u2070-\u218F]|[\u2C00-\u2FEF]|[\u3001-\uD7FF]|[\uF900-\uFDCF]|[\uFDF0-\uFFFD])|_\b)|-|[0-9]|[\u00B7]|[\u0300-\u036F]|[\u203F-\u2040])|\.|:|((%([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f]))|(\\(_|~|\.|-|!|\$|&|'|\(|\)|\*|\+|,|;|=|\/|\?|#|@|%))))*(((([A-Z]|[a-z]|[\u00C0-\u00D6]|[\u00D8-\u00F6]|[\u00F8-\u02FF]|[\u0370-\u037D]|[\u037F-\u1FFF]|[\u200C-\u200D]|[\u2070-\u218F]|[\u2C00-\u2FEF]|[\u3001-\uD7FF]|[\uF900-\uFDCF]|[\uFDF0-\uFFFD])|_\b)|-|[0-9]|[\u00B7]|[\u0300-\u036F]|[\u203F-\u2040])|:|((%([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f]))|(\\(_|~|\.|-|!|\$|&|'|\(|\)|\*|\+|,|;|=|\/|\?|#|@|%)))))?)))/i,/^(?:(@(([A-Z]|[a-z]|[\u00C0-\u00D6]|[\u00D8-\u00F6]|[\u00F8-\u02FF]|[\u0370-\u037D]|[\u037F-\u1FFF]|[\u200C-\u200D]|[\u2070-\u218F]|[\u2C00-\u2FEF]|[\u3001-\uD7FF]|[\uF900-\uFDCF]|[\uFDF0-\uFFFD])((((([A-Z]|[a-z]|[\u00C0-\u00D6]|[\u00D8-\u00F6]|[\u00F8-\u02FF]|[\u0370-\u037D]|[\u037F-\u1FFF]|[\u200C-\u200D]|[\u2070-\u218F]|[\u2C00-\u2FEF]|[\u3001-\uD7FF]|[\uF900-\uFDCF]|[\uFDF0-\uFFFD])|_\b)|-|[0-9]|[\u00B7]|[\u0300-\u036F]|[\u203F-\u2040])|\.)*((([A-Z]|[a-z]|[\u00C0-\u00D6]|[\u00D8-\u00F6]|[\u00F8-\u02FF]|[\u0370-\u037D]|[\u037F-\u1FFF]|[\u200C-\u200D]|[\u2070-\u218F]|[\u2C00-\u2FEF]|[\u3001-\uD7FF]|[\uF900-\uFDCF]|[\uFDF0-\uFFFD])|_\b)|-|[0-9]|[\u00B7]|[\u0300-\u036F]|[\u203F-\u2040]))?)?:))/i,/^(?:(@((([A-Z]|[a-z]|[\u00C0-\u00D6]|[\u00D8-\u00F6]|[\u00F8-\u02FF]|[\u0370-\u037D]|[\u037F-\u1FFF]|[\u200C-\u200D]|[\u2070-\u218F]|[\u2C00-\u2FEF]|[\u3001-\uD7FF]|[\uF900-\uFDCF]|[\uFDF0-\uFFFD])((((([A-Z]|[a-z]|[\u00C0-\u00D6]|[\u00D8-\u00F6]|[\u00F8-\u02FF]|[\u0370-\u037D]|[\u037F-\u1FFF]|[\u200C-\u200D]|[\u2070-\u218F]|[\u2C00-\u2FEF]|[\u3001-\uD7FF]|[\uF900-\uFDCF]|[\uFDF0-\uFFFD])|_\b)|-|[0-9]|[\u00B7]|[\u0300-\u036F]|[\u203F-\u2040])|\.)*((([A-Z]|[a-z]|[\u00C0-\u00D6]|[\u00D8-\u00F6]|[\u00F8-\u02FF]|[\u0370-\u037D]|[\u037F-\u1FFF]|[\u200C-\u200D]|[\u2070-\u218F]|[\u2C00-\u2FEF]|[\u3001-\uD7FF]|[\uF900-\uFDCF]|[\uFDF0-\uFFFD])|_\b)|-|[0-9]|[\u00B7]|[\u0300-\u036F]|[\u203F-\u2040]))?)?:)(((([A-Z]|[a-z]|[\u00C0-\u00D6]|[\u00D8-\u00F6]|[\u00F8-\u02FF]|[\u0370-\u037D]|[\u037F-\u1FFF]|[\u200C-\u200D]|[\u2070-\u218F]|[\u2C00-\u2FEF]|[\u3001-\uD7FF]|[\uF900-\uFDCF]|[\uFDF0-\uFFFD])|_\b)|:|[0-9]|((%([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f]))|(\\(_|~|\.|-|!|\$|&|'|\(|\)|\*|\+|,|;|=|\/|\?|#|@|%))))((((([A-Z]|[a-z]|[\u00C0-\u00D6]|[\u00D8-\u00F6]|[\u00F8-\u02FF]|[\u0370-\u037D]|[\u037F-\u1FFF]|[\u200C-\u200D]|[\u2070-\u218F]|[\u2C00-\u2FEF]|[\u3001-\uD7FF]|[\uF900-\uFDCF]|[\uFDF0-\uFFFD])|_\b)|-|[0-9]|[\u00B7]|[\u0300-\u036F]|[\u203F-\u2040])|\.|:|((%([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f]))|(\\(_|~|\.|-|!|\$|&|'|\(|\)|\*|\+|,|;|=|\/|\?|#|@|%))))*(((([A-Z]|[a-z]|[\u00C0-\u00D6]|[\u00D8-\u00F6]|[\u00F8-\u02FF]|[\u0370-\u037D]|[\u037F-\u1FFF]|[\u200C-\u200D]|[\u2070-\u218F]|[\u2C00-\u2FEF]|[\u3001-\uD7FF]|[\uF900-\uFDCF]|[\uFDF0-\uFFFD])|_\b)|-|[0-9]|[\u00B7]|[\u0300-\u036F]|[\u203F-\u2040])|:|((%([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f]))|(\\(_|~|\.|-|!|\$|&|'|\(|\)|\*|\+|,|;|=|\/|\?|#|@|%)))))?)))/i,/^(?:(@[a-zA-Z]+(-[a-zA-Z0-9]+)*))/i,/^(?:([+-]?[0-9]+))/i,/^(?:([+-]?[0-9]*\.[0-9]+))/i,/^(?:([+-]?([0-9]+\.[0-9]*([eE][+-]?[0-9]+)|\.?[0-9]+([eE][+-]?[0-9]+))))/i,/^(?:([eE][+-]?[0-9]+))/i,/^(?:('(?:(?:[^\u0027\u005C\u000A\u000D])|(\\[tbnrf\\\"\']))*'))/i,/^(?:("(?:(?:[^\u0022\u005C\u000A\u000D])|(\\[tbnrf\\\"\']))*"))/i,/^(?:('''(?:(?:'|'')?(?:[^'\\]|(\\[tbnrf\\\"\'])))*'''))/i,/^(?:("""(?:(?:"|"")?(?:[^\"\\]|(\\[tbnrf\\\"\'])))*"""))/i,/^(?:->)/i,/^(?:\.\.)/i,/^(?:\})/i,/^(?:\{)/i,/^(?:\()/i,/^(?:\))/i,/^(?:\[)/i,/^(?:\])/i,/^(?:\?)/i,/^(?:\*)/i,/^(?:\+)/i,/^(?:\|)/i,/^(?:\^\^)/i,/^(?:\.)/i,/^(?:!)/i,/^(?:\/)/i,/^(?:=)/i,/^(?:@)/i,/^(?:\^)/i,/^(?:;)/i,/^(?:,)/i,/^(?:%)/i,/^(?:a)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],inclusive:!0}}};return be}();Ie.lexer=J;function ie(){this.yy={}}return ie.prototype=Ie,Ie.Parser=ie,new ie}(),fPe=dPe;const hPe=fPe.Parser,UO=Du;let dee=class{constructor(){}parse(e,{extendedSyntax:r,baseIRI:n}={}){this._parser=new hPe,this._parser.Parser.factory=UO.DataFactory,this._parser.Parser.base=UO.DataFactory.namedNode(n||"urn:x-base:default"),this._parser.Parser.extended=r===!0,this._parser.Parser.prefixes={rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",sh:"http://www.w3.org/ns/shacl#",xsd:"http://www.w3.org/2001/XMLSchema#"},this._parser.Parser.currentNodeShape=void 0,this._parser.Parser.currentPropertyNode=void 0,this._parser.Parser.nodeShapeStack=[],this._parser.Parser.tempCurrentNodeShape=void 0,this._parser.Parser.n3Parser=new UO.Parser({baseIRI:n||"urn:x-base:default"});const a=[];return this._parser.Parser.onQuad=s=>{a.push(s)},this._parser.parse(e),a.prefixes=this._parser.Parser.prefixes,a}};y4.Parser=dee;y4.parse=function(e,r){return new dee().parse(e,r)};var fee={exports:{}};(function(t){(function(){var e;typeof window=="object"&&window?e=window:e=I,t.exports?t.exports=e.Promise?e.Promise:s:e.Promise||(e.Promise=s);var r=e.setImmediate||function(h){setTimeout(h,1)};function n(h,p){return function(){h.apply(p,arguments)}}var a=Array.isArray||function(h){return Object.prototype.toString.call(h)==="[object Array]"};function s(h){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");if(typeof h!="function")throw new TypeError("not a function");this._state=null,this._value=null,this._deferreds=[],f(h,n(u,this),n(c,this))}function o(h){var p=this;if(this._state===null){this._deferreds.push(h);return}r(function(){var m=p._state?h.onFulfilled:h.onRejected;if(m===null){(p._state?h.resolve:h.reject)(p._value);return}var y;try{y=m(p._value)}catch(g){h.reject(g);return}h.resolve(y)})}function u(h){try{if(h===this)throw new TypeError("A promise cannot be resolved with itself.");if(h&&(typeof h=="object"||typeof h=="function")){var p=h.then;if(typeof p=="function"){f(n(p,h),n(u,this),n(c,this));return}}this._state=!0,this._value=h,l.call(this)}catch(m){c.call(this,m)}}function c(h){this._state=!1,this._value=h,l.call(this)}function l(){for(var h=0,p=this._deferreds.length;h(this.prefixes=a.prefixes,a)))}read(){if(this.prefixes){for(const n of Object.entries(this.prefixes))this.emit("prefix",...n);delete this.prefixes}return super.read()}};return a0.PrefixWrappingIterator=e,a0}var X7;function gPe(){if(X7)return i0;X7=1,Object.defineProperty(i0,"__esModule",{value:!0}),i0.ActorRdfParseShaclc=void 0;const t=Mf(),e=Pt,r=y4,n=gl,a=mPe();let s=class extends t.ActorRdfParseFixedMediaTypes{constructor(u){super(u)}async runHandle(u,c,l){const d=new a.PrefixWrappingIterator(n(u.data).then(h=>{var p;return(0,r.parse)(h,{extendedSyntax:c==="text/shaclc-ext",baseIRI:(p=u.metadata)==null?void 0:p.baseIRI})})),f=new e.Readable({objectMode:!0});return d.on("prefix",(...h)=>f.emit("prefix",...h)),{data:f.wrap(d),metadata:{triples:!0}}}};return i0.ActorRdfParseShaclc=s,i0}var Y7;function _Pe(){return Y7||(Y7=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(gPe(),t)}($O)),$O}var kO={},s0={},hee={},Ab={},Bf={};Object.defineProperty(Bf,"__esModule",{value:!0});Bf.QuoteType=void 0;var $l=tl,vt;(function(t){t[t.Tab=9]="Tab",t[t.NewLine=10]="NewLine",t[t.FormFeed=12]="FormFeed",t[t.CarriageReturn=13]="CarriageReturn",t[t.Space=32]="Space",t[t.ExclamationMark=33]="ExclamationMark",t[t.Number=35]="Number",t[t.Amp=38]="Amp",t[t.SingleQuote=39]="SingleQuote",t[t.DoubleQuote=34]="DoubleQuote",t[t.Dash=45]="Dash",t[t.Slash=47]="Slash",t[t.Zero=48]="Zero",t[t.Nine=57]="Nine",t[t.Semi=59]="Semi",t[t.Lt=60]="Lt",t[t.Eq=61]="Eq",t[t.Gt=62]="Gt",t[t.Questionmark=63]="Questionmark",t[t.UpperA=65]="UpperA",t[t.LowerA=97]="LowerA",t[t.UpperF=70]="UpperF",t[t.LowerF=102]="LowerF",t[t.UpperZ=90]="UpperZ",t[t.LowerZ=122]="LowerZ",t[t.LowerX=120]="LowerX",t[t.OpeningSquareBracket=91]="OpeningSquareBracket"})(vt||(vt={}));var Ke;(function(t){t[t.Text=1]="Text",t[t.BeforeTagName=2]="BeforeTagName",t[t.InTagName=3]="InTagName",t[t.InSelfClosingTag=4]="InSelfClosingTag",t[t.BeforeClosingTagName=5]="BeforeClosingTagName",t[t.InClosingTagName=6]="InClosingTagName",t[t.AfterClosingTagName=7]="AfterClosingTagName",t[t.BeforeAttributeName=8]="BeforeAttributeName",t[t.InAttributeName=9]="InAttributeName",t[t.AfterAttributeName=10]="AfterAttributeName",t[t.BeforeAttributeValue=11]="BeforeAttributeValue",t[t.InAttributeValueDq=12]="InAttributeValueDq",t[t.InAttributeValueSq=13]="InAttributeValueSq",t[t.InAttributeValueNq=14]="InAttributeValueNq",t[t.BeforeDeclaration=15]="BeforeDeclaration",t[t.InDeclaration=16]="InDeclaration",t[t.InProcessingInstruction=17]="InProcessingInstruction",t[t.BeforeComment=18]="BeforeComment",t[t.CDATASequence=19]="CDATASequence",t[t.InSpecialComment=20]="InSpecialComment",t[t.InCommentLike=21]="InCommentLike",t[t.BeforeSpecialS=22]="BeforeSpecialS",t[t.BeforeSpecialT=23]="BeforeSpecialT",t[t.SpecialStartSequence=24]="SpecialStartSequence",t[t.InSpecialTag=25]="InSpecialTag",t[t.InEntity=26]="InEntity"})(Ke||(Ke={}));function Ws(t){return t===vt.Space||t===vt.NewLine||t===vt.Tab||t===vt.FormFeed||t===vt.CarriageReturn}function Xv(t){return t===vt.Slash||t===vt.Gt||Ws(t)}function bPe(t){return t>=vt.LowerA&&t<=vt.LowerZ||t>=vt.UpperA&&t<=vt.UpperZ}var Tc;(function(t){t[t.NoValue=0]="NoValue",t[t.Unquoted=1]="Unquoted",t[t.Single=2]="Single",t[t.Double=3]="Double"})(Tc||(Bf.QuoteType=Tc={}));var Sn={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])},vPe=function(){function t(e,r){var n=e.xmlMode,a=n===void 0?!1:n,s=e.decodeEntities,o=s===void 0?!0:s,u=this;this.cbs=r,this.state=Ke.Text,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=Ke.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.xmlMode=a,this.decodeEntities=o,this.entityDecoder=new $l.EntityDecoder(a?$l.xmlDecodeTree:$l.htmlDecodeTree,function(c,l){return u.emitCodePoint(c,l)})}return t.prototype.reset=function(){this.state=Ke.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=Ke.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},t.prototype.write=function(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()},t.prototype.end=function(){this.running&&this.finish()},t.prototype.pause=function(){this.running=!1},t.prototype.resume=function(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=Ke.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===vt.Amp&&this.startEntity()},t.prototype.stateSpecialStartSequence=function(e){var r=this.sequenceIndex===this.currentSequence.length,n=r?Xv(e):(e|32)===this.currentSequence[this.sequenceIndex];if(!n)this.isSpecial=!1;else if(!r){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=Ke.InTagName,this.stateInTagName(e)},t.prototype.stateInSpecialTag=function(e){if(this.sequenceIndex===this.currentSequence.length){if(e===vt.Gt||Ws(e)){var r=this.index-this.currentSequence.length;if(this.sectionStart=0?(this.state=this.baseState,e===0&&(this.index=this.entityStart)):this.index=this.offset+this.buffer.length-1},t.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===Ke.Text||this.state===Ke.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===Ke.InAttributeValueDq||this.state===Ke.InAttributeValueSq||this.state===Ke.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},t.prototype.shouldContinue=function(){return this.index=e||(this.state===Ke.InCommentLike?this.currentSequence===Sn.CdataEnd?this.cbs.oncdata(this.sectionStart,e,0):this.cbs.oncomment(this.sectionStart,e,0):this.state===Ke.InTagName||this.state===Ke.BeforeAttributeName||this.state===Ke.BeforeAttributeValue||this.state===Ke.AfterAttributeName||this.state===Ke.InAttributeName||this.state===Ke.InAttributeValueSq||this.state===Ke.InAttributeValueDq||this.state===Ke.InAttributeValueNq||this.state===Ke.InClosingTagName||this.cbs.ontext(this.sectionStart,e))},t.prototype.emitCodePoint=function(e,r){this.baseState!==Ke.Text&&this.baseState!==Ke.InSpecialTag?(this.sectionStart0&&o.has(this.stack[0]);){var u=this.stack.shift();(n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,u,!0)}this.isVoidElement(e)||(this.stack.unshift(e),this.htmlMode&&(nB.has(e)?this.foreignContext.unshift(!0):iB.has(e)&&this.foreignContext.unshift(!1))),(s=(a=this.cbs).onopentagname)===null||s===void 0||s.call(a,e),this.cbs.onopentag&&(this.attribs={})},t.prototype.endOpenTag=function(e){var r,n;this.startIndex=this.openTagStart,this.attribs&&((n=(r=this.cbs).onopentag)===null||n===void 0||n.call(r,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},t.prototype.onopentagend=function(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1},t.prototype.onclosetag=function(e,r){var n,a,s,o,u,c,l,d;this.endIndex=r;var f=this.getSlice(e,r);if(this.lowerCaseTagNames&&(f=f.toLowerCase()),this.htmlMode&&(nB.has(f)||iB.has(f))&&this.foreignContext.shift(),this.isVoidElement(f))this.htmlMode&&f==="br"&&((o=(s=this.cbs).onopentagname)===null||o===void 0||o.call(s,"br"),(c=(u=this.cbs).onopentag)===null||c===void 0||c.call(u,"br",{},!0),(d=(l=this.cbs).onclosetag)===null||d===void 0||d.call(l,"br",!1));else{var h=this.stack.indexOf(f);if(h!==-1)for(var p=0;p<=h;p++){var m=this.stack.shift();(a=(n=this.cbs).onclosetag)===null||a===void 0||a.call(n,m,p!==h)}else this.htmlMode&&f==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=r+1},t.prototype.onselfclosingtag=function(e){this.endIndex=e,this.recognizeSelfClosing||this.foreignContext[0]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)},t.prototype.closeCurrentTag=function(e){var r,n,a=this.tagname;this.endOpenTag(e),this.stack[0]===a&&((n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,a,!e),this.stack.shift())},t.prototype.onattribname=function(e,r){this.startIndex=e;var n=this.getSlice(e,r);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n},t.prototype.onattribdata=function(e,r){this.attribvalue+=this.getSlice(e,r)},t.prototype.onattribentity=function(e){this.attribvalue+=(0,Z7.fromCodePoint)(e)},t.prototype.onattribend=function(e,r){var n,a;this.endIndex=r,(a=(n=this.cbs).onattribute)===null||a===void 0||a.call(n,this.attribname,this.attribvalue,e===Yv.QuoteType.Double?'"':e===Yv.QuoteType.Single?"'":e===Yv.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},t.prototype.getInstructionName=function(e){var r=e.search(OPe),n=r<0?e:e.substr(0,r);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},t.prototype.ondeclaration=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);if(this.cbs.onprocessinginstruction){var a=this.getInstructionName(n);this.cbs.onprocessinginstruction("!".concat(a),"!".concat(n))}this.startIndex=r+1},t.prototype.onprocessinginstruction=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);if(this.cbs.onprocessinginstruction){var a=this.getInstructionName(n);this.cbs.onprocessinginstruction("?".concat(a),"?".concat(n))}this.startIndex=r+1},t.prototype.oncomment=function(e,r,n){var a,s,o,u;this.endIndex=r,(s=(a=this.cbs).oncomment)===null||s===void 0||s.call(a,this.getSlice(e,r-n)),(u=(o=this.cbs).oncommentend)===null||u===void 0||u.call(o),this.startIndex=r+1},t.prototype.oncdata=function(e,r,n){var a,s,o,u,c,l,d,f,h,p;this.endIndex=r;var m=this.getSlice(e,r-n);!this.htmlMode||this.options.recognizeCDATA?((s=(a=this.cbs).oncdatastart)===null||s===void 0||s.call(a),(u=(o=this.cbs).ontext)===null||u===void 0||u.call(o,m),(l=(c=this.cbs).oncdataend)===null||l===void 0||l.call(c)):((f=(d=this.cbs).oncomment)===null||f===void 0||f.call(d,"[CDATA[".concat(m,"]]")),(p=(h=this.cbs).oncommentend)===null||p===void 0||p.call(h)),this.startIndex=r+1},t.prototype.onend=function(){var e,r;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var n=0;n=this.buffers[0].length;)this.shiftBuffer();for(var n=this.buffers[0].slice(e-this.bufferOffset,r-this.bufferOffset);r-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,r-this.bufferOffset);return n},t.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},t.prototype.write=function(e){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".write() after done!"));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)},t.prototype.end=function(e){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".end() after done!"));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()},t.prototype.pause=function(){this.tokenizer.pause()},t.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex{};let l=0,d=1;function f(y){c.emit("error",y)}function h(){--d===0&&c.push(null)}const p={baseIRI:((m=s.metadata)==null?void 0:m.baseIRI)??"",context:u,emit:y=>{l--,c.push(y)},end:h,error:f,headers:s.headers};try{const y=await Promise.all(this.busRdfParseHtml.publish(p));d+=y.length;const g=[];for(const _ of y){const{htmlParseListener:w}=await _.actor.run(p);g.push(w)}const b=new e.Parser({onclosetag(){try{for(const _ of g)_.onTagClose()}catch(_){f(_)}},onend(){try{for(const _ of g)_.onEnd()}catch(_){f(_)}h()},onopentag(_,w){try{for(const E of g)E.onTagOpen(_,w)}catch(E){f(E)}},ontext(_){try{for(const w of g)w.onText(_)}catch(w){f(w)}}},{decodeEntities:!0,recognizeSelfClosing:!0,xmlMode:!1}),v=c._read=_=>{for(l=Math.max(_,l);l>0;){const w=s.data.read();if(w===null){s.data.once("readable",()=>v(0));return}b.write(w.toString())}};s.data.on("error",f).on("end",()=>b.end())}catch(y){setTimeout(()=>{c.emit("error",y)})}return{data:c}}}return s0.ActorRdfParseHtml=n,s0}var sB;function IPe(){return sB||(sB=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(xPe(),t)}(kO)),kO}var VO={},o0={},HO={},u0={},oB;function PPe(){if(oB)return u0;oB=1,Object.defineProperty(u0,"__esModule",{value:!0}),u0.ActorRdfParseHtml=void 0;const t=st;let e=class extends t.Actor{constructor(n){super(n)}};return u0.ActorRdfParseHtml=e,u0}var uB;function m4(){return uB||(uB=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(PPe(),t)}(HO)),HO}var pee={},yee={};Object.defineProperty(yee,"__esModule",{value:!0});var L1={};Object.defineProperty(L1,"__esModule",{value:!0});L1.ItemPropertyHandlerContent=void 0;class NPe{canHandle(e,r){return"content"in r}getObject(e,r,n){return r.createLiteral(e.content,n)}}L1.ItemPropertyHandlerContent=NPe;var j1={},_l={};Object.defineProperty(_l,"__esModule",{value:!0});_l.Util=void 0;const DPe=Ot,cB=ga;let M1=class I_{constructor(e,r){this.dataFactory=e||new DPe.DataFactory,this.baseIRI=r||""}static isValidIri(e){return I_.IRI_REGEX.test(e)}createVocabIris(e,r,n){return e.split(/\s+/u).filter(a=>!!a).map(a=>{if(!I_.isValidIri(a)){if(!n)return;a=`${r.vocab||`${this.baseIRI}#`}${a}`}return this.dataFactory.namedNode(a)}).filter(a=>!!a)}getVocabularyExpansionType(e,r,n){const a=e.split(/\s+/u);if(a.includes("subPropertyOf")||a.includes("equivalentProperty"))return[this.dataFactory.namedNode(`${I_.RDF}type`)];if(r.vocab&&r.vocab in n&&n[r.vocab].properties){let s=[];for(const[o,u]of Object.entries(n[r.vocab].properties))a.includes(o)&&(s=[...Object.values(u).map(c=>this.dataFactory.namedNode(c))]);return s}return[]}createSubject(e){if(!I_.isValidIri(e))try{e=(0,cB.resolve)(e,this.baseIRI)}catch{return}return this.dataFactory.namedNode(e)}createLiteral(e,r){return this.dataFactory.literal(e,r.language)}deriveVocab(e,r){let n;for(const a in r)if(e.startsWith(a)){n=a,n.endsWith("/")||(n+="#");break}if(!n){const a=e.indexOf("#");a>0?n=e.slice(0,a+1):n=(0,cB.resolve)(".",e)}return n}};_l.Util=M1;M1.RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#";M1.XSD="http://www.w3.org/2001/XMLSchema#";M1.RDFA="http://www.w3.org/ns/rdfa#";M1.IRI_REGEX=/^([A-Za-z][\d+-.A-Za-z]*|_):[^ "<>[\\\]`{|}]*$/u;Object.defineProperty(j1,"__esModule",{value:!0});j1.ItemPropertyHandlerNumber=void 0;const lB=_l;class CPe{constructor(e,r){this.tagName=e,this.attributeName=r}canHandle(e,r){return this.tagName===e&&this.attributeName in r}getObject(e,r,n){const a=e[this.attributeName];let s;return!Number.isNaN(Number.parseInt(a,10))&&!a.includes(".")?s=`${lB.Util.XSD}integer`:Number.isNaN(Number.parseFloat(a))||(s=`${lB.Util.XSD}double`),r.dataFactory.literal(a,s&&r.dataFactory.namedNode(s))}}j1.ItemPropertyHandlerNumber=CPe;var F1={};Object.defineProperty(F1,"__esModule",{value:!0});F1.ItemPropertyHandlerTime=void 0;const LPe=_l;class AT{canHandle(e,r){return e==="time"&&"datetime"in r}getObject(e,r,n){const a=e.datetime;let s;for(const o of AT.TIME_REGEXES)if(o.regex.test(a)){s=r.dataFactory.namedNode(LPe.Util.XSD+o.type);break}return r.dataFactory.literal(a,s)}}F1.ItemPropertyHandlerTime=AT;AT.TIME_REGEXES=[{regex:/^-?P(\d+Y)?(\d+M)?(\d+D)?(T(\d+H)?(\d+M)?(\d+(\.\d)?S)?)?$/u,type:"duration"},{regex:/^\d+-\d\d-\d\dT\d\d:\d\d:\d\d((Z?)|([+-]\d\d:\d\d))$/u,type:"dateTime"},{regex:/^\d+-\d\d-\d\dZ?$/u,type:"date"},{regex:/^\d\d:\d\d:\d\d((Z?)|([+-]\d\d:\d\d))$/u,type:"time"},{regex:/^\d+-\d\d$/u,type:"gYearMonth"},{regex:/^\d+$/u,type:"gYear"}];var B1={};Object.defineProperty(B1,"__esModule",{value:!0});B1.ItemPropertyHandlerUrl=void 0;const jPe=ga;class MPe{constructor(e,r){this.tagName=e,this.attributeName=r}canHandle(e,r){return this.tagName===e&&this.attributeName in r}getObject(e,r,n){return r.dataFactory.namedNode((0,jPe.resolve)(e[this.attributeName],r.baseIRI))}}B1.ItemPropertyHandlerUrl=MPe;var mee={};Object.defineProperty(mee,"__esModule",{value:!0});var gee={};Object.defineProperty(gee,"__esModule",{value:!0});var _ee={};Object.defineProperty(_ee,"__esModule",{value:!0});var OT={};const FPe={"http://schema.org/":{properties:{additionalType:{subPropertyOf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#type"}}},"http://microformats.org/profile/hcard":{}};Object.defineProperty(OT,"__esModule",{value:!0});OT.MicrodataRdfParser=void 0;const BPe=s4,dB=Pt,qPe=L1,fB=j1,$Pe=F1,xa=B1,hB=_l,UPe=FPe;class Ob extends dB.Transform{constructor(e){super({readableObjectMode:!0}),this.itemScopeStack=[],this.textBufferStack=[],this.isEmittingReferences=!1,this.pendingItemRefsDomain={},this.pendingItemRefsRangeFinalized={},this.pendingItemRefsRangeCollecting={},e=e||{},this.options=e,this.util=new hB.Util(e.dataFactory,e.baseIRI),this.defaultGraph=e.defaultGraph||this.util.dataFactory.defaultGraph(),this.htmlParseListener=e.htmlParseListener,this.vocabRegistry=e.vocabRegistry||UPe,this.parser=this.initializeParser(!!e.xmlMode)}import(e){const r=new dB.PassThrough({readableObjectMode:!0});e.on("error",a=>n.emit("error",a)),e.on("data",a=>r.push(a)),e.on("end",()=>r.push(null));const n=r.pipe(new Ob(this.options));return n}_transform(e,r,n){this.parser.write(e.toString()),n()}_flush(e){this.parser.end(),e()}getItemScope(e){let r=this.itemScopeStack.length-(e?2:1);for(;r>0&&!this.itemScopeStack[r];)r--;return this.itemScopeStack[r]}getDepth(){return this.itemScopeStack.length}onTagOpen(e,r){if(!this.isEmittingReferences){if("id"in r){const a=r.id;this.pendingItemRefsRangeCollecting[a]={events:[],counter:0,ids:[]}}for(const a of Object.values(this.pendingItemRefsRangeCollecting))a.counter++,a.events.push({type:"open",name:e,attributes:r})}this.textBufferStack.push(void 0);let n;if("itemscope"in r){let a;if(this.emittingReferencesItemScopeIdGenerator)a=this.emittingReferencesItemScopeIdGenerator();else{a="itemid"in r&&this.util.createSubject(r.itemid)||this.util.dataFactory.blankNode();for(const o of Object.values(this.pendingItemRefsRangeCollecting))o.ids.push(a)}n={subject:a},this.isEmittingReferences&&(n.blockEmission=!0);const s=this.getItemScope();s&&s.vocab&&(n.vocab=s.vocab),this.itemScopeStack.push(n)}else n=this.getItemScope(),this.itemScopeStack.push(void 0);if(n){if("itemtype"in r)for(const a of this.util.createVocabIris(r.itemtype,n,!1))n.vocab||(n.vocab=this.util.deriveVocab(a.value,this.vocabRegistry)),n.blockEmission||this.emitTriple(n.subject,this.util.dataFactory.namedNode(`${hB.Util.RDF}type`),a);if("lang"in r&&(n.language=r.lang),"xml:lang"in r&&(n.language=r["xml:lang"]),"itemscope"in r&&!this.isEmittingReferences&&"itemref"in r)for(const a of r.itemref.split(/\s+/u))a in this.pendingItemRefsDomain||(this.pendingItemRefsDomain[a]=[]),this.pendingItemRefsDomain[a].push(n),this.tryToEmitReferences(a,n)}"itemprop"in r&&this.handleItemProperties(r.itemprop,!1,n,e,r),"itemprop-reverse"in r&&this.handleItemProperties(r["itemprop-reverse"],!0,n,e,r)}onText(e){if(!this.isEmittingReferences)for(const r of Object.values(this.pendingItemRefsRangeCollecting))r.events.push({type:"text",data:e});for(const r of this.textBufferStack)r&&r.push(e)}onTagClose(){if(!this.isEmittingReferences)for(const[r,n]of Object.entries(this.pendingItemRefsRangeCollecting))n.counter--,n.events.push({type:"close"}),n.counter===0&&(this.pendingItemRefsRangeFinalized[r]=n,delete this.pendingItemRefsRangeCollecting[r],this.tryToEmitReferences(r));const e=this.getItemScope(!0);if(e){const r=this.getDepth();if(e.predicates&&r in e.predicates)for(const[n,a]of Object.entries(e.predicates[r])){const s=this.util.createLiteral(this.textBufferStack[r].join(""),e);this.emitPredicateTriples(e,a,s,n==="reverse"),delete e.predicates[r][n]}}this.itemScopeStack.pop(),this.textBufferStack.pop()}onEnd(){}initializeParser(e){return new BPe.Parser({onclosetag:()=>{try{this.onTagClose(),this.htmlParseListener&&this.htmlParseListener.onTagClose()}catch(r){this.emit("error",r)}},onend:()=>{try{this.onEnd(),this.htmlParseListener&&this.htmlParseListener.onEnd()}catch(r){this.emit("error",r)}},onopentag:(r,n)=>{try{this.onTagOpen(r,n),this.htmlParseListener&&this.htmlParseListener.onTagOpen(r,n)}catch(a){this.emit("error",a)}},ontext:r=>{try{this.onText(r),this.htmlParseListener&&this.htmlParseListener.onText(r)}catch(n){this.emit("error",n)}}},{decodeEntities:!0,recognizeSelfClosing:!0,xmlMode:e})}handleItemProperties(e,r,n,a,s){const o=this.getItemScope(!0);if(o){const u=this.getDepth(),c=this.util.createVocabIris(e,o,!0);o.predicates||(o.predicates={}),o.predicates[u]||(o.predicates[u]={});const l=r?"reverse":"forward";o.predicates[u][l]=c;for(const d of this.util.getVocabularyExpansionType(e,o,this.vocabRegistry))c.push(d);if(n&&"itemscope"in s)this.emitPredicateTriples(o,c,n.subject,r),delete o.predicates[u][l];else for(const d of Ob.ITEM_PROPERTY_HANDLERS)if(d.canHandle(a,s)){const f=d.getObject(s,this.util,o);this.emitPredicateTriples(o,c,f,r),delete o.predicates[u][l]}o.predicates[u][l]&&(this.textBufferStack[u]=[])}}emitPredicateTriples(e,r,n,a){if(!e.blockEmission)for(const s of r)a?n.termType!=="Literal"&&this.emitTriple(n,s,e.subject):this.emitTriple(e.subject,s,n)}emitTriple(e,r,n){this.push(this.util.dataFactory.quad(e,r,n,this.defaultGraph))}tryToEmitReferences(e,r){const n=this.pendingItemRefsRangeFinalized[e];if(n){let a;if(r){a=[r];const s=this.pendingItemRefsDomain[e].indexOf(r);this.pendingItemRefsDomain[e].splice(s,1)}else a=this.pendingItemRefsDomain[e],delete this.pendingItemRefsDomain[e];if(a){const s=this.itemScopeStack,o=this.textBufferStack;this.isEmittingReferences=!0;for(const u of a){this.itemScopeStack=[u],this.textBufferStack=[void 0];const c=[...n.ids];this.emittingReferencesItemScopeIdGenerator=()=>c.shift();for(const l of n.events)switch(l.type){case"open":this.onTagOpen(l.name,l.attributes);break;case"text":this.onText(l.data);break;case"close":this.onTagClose();break}}this.emittingReferencesItemScopeIdGenerator=void 0,this.itemScopeStack=s,this.textBufferStack=o,this.isEmittingReferences=!1}}}}OT.MicrodataRdfParser=Ob;Ob.ITEM_PROPERTY_HANDLERS=[new qPe.ItemPropertyHandlerContent,new xa.ItemPropertyHandlerUrl("a","href"),new xa.ItemPropertyHandlerUrl("area","href"),new xa.ItemPropertyHandlerUrl("audio","src"),new xa.ItemPropertyHandlerUrl("embed","src"),new xa.ItemPropertyHandlerUrl("iframe","src"),new xa.ItemPropertyHandlerUrl("img","src"),new xa.ItemPropertyHandlerUrl("link","href"),new xa.ItemPropertyHandlerUrl("object","data"),new xa.ItemPropertyHandlerUrl("source","src"),new xa.ItemPropertyHandlerUrl("track","src"),new xa.ItemPropertyHandlerUrl("video","src"),new fB.ItemPropertyHandlerNumber("data","value"),new fB.ItemPropertyHandlerNumber("meter","value"),new $Pe.ItemPropertyHandlerTime];(function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(yee,t),r(L1,t),r(j1,t),r(F1,t),r(B1,t),r(mee,t),r(gee,t),r(_ee,t),r(OT,t),r(_l,t)})(pee);var pB;function kPe(){if(pB)return o0;pB=1,Object.defineProperty(o0,"__esModule",{value:!0}),o0.ActorRdfParseHtmlMicrodata=void 0;const t=m4(),e=pee;let r=class extends t.ActorRdfParseHtml{constructor(a){super(a)}async test(a){return!0}async run(a){const s=a.headers?a.headers.get("content-type"):null,o=s==null?void 0:s.includes("xml"),u=new e.MicrodataRdfParser({baseIRI:a.baseIRI,xmlMode:o});u.on("error",a.error),u.on("data",a.emit);const c=u.onEnd;return u.onEnd=()=>{c.call(u),a.end()},{htmlParseListener:u}}};return o0.ActorRdfParseHtmlMicrodata=r,o0}var yB;function VPe(){return yB||(yB=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(kPe(),t)}(VO)),VO}var QO={},c0={},mB;function HPe(){if(mB)return c0;mB=1,Object.defineProperty(c0,"__esModule",{value:!0}),c0.ActorRdfParseHtmlRdfa=void 0;const t=m4(),e=a4;let r=class extends t.ActorRdfParseHtml{constructor(a){super(a)}async test(a){return!0}async run(a){const s=a.headers?a.headers.get("content-type"):null,o=(a.headers&&a.headers.get("content-language"))??void 0,u=s&&s.includes("xml")?"xhtml":"html",c=new e.RdfaParser({baseIRI:a.baseIRI,profile:u,language:o});c.on("error",a.error),c.on("data",a.emit);const l=c.onEnd;return c.onEnd=()=>{l.call(c),a.end()},{htmlParseListener:c}}};return c0.ActorRdfParseHtmlRdfa=r,c0}var gB;function QPe(){return gB||(gB=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(HPe(),t)}(QO)),QO}var zO={},l0={},GO={},d0={},_B;function zPe(){if(_B)return d0;_B=1,Object.defineProperty(d0,"__esModule",{value:!0}),d0.ActorRdfResolveHypermediaLinksQueue=void 0;const t=st;let e=class extends t.Actor{constructor(n){super(n)}};return d0.ActorRdfResolveHypermediaLinksQueue=e,d0}var WO={},bB;function GPe(){return bB||(bB=1,Object.defineProperty(WO,"__esModule",{value:!0})),WO}var f0={},vB;function WPe(){if(vB)return f0;vB=1,Object.defineProperty(f0,"__esModule",{value:!0}),f0.LinkQueueWrapper=void 0;let t=class{constructor(r){this.linkQueue=r}push(r,n){return this.linkQueue.push(r,n)}getSize(){return this.linkQueue.getSize()}isEmpty(){return this.linkQueue.isEmpty()}pop(){return this.linkQueue.pop()}peek(){return this.linkQueue.peek()}};return f0.LinkQueueWrapper=t,f0}var wB;function KPe(){return wB||(wB=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(zPe(),t),r(GPe(),t),r(WPe(),t)}(GO)),GO}var h0={},SB;function bee(){if(SB)return h0;SB=1,Object.defineProperty(h0,"__esModule",{value:!0}),h0.LinkQueueFifo=void 0;let t=class{constructor(){this.links=[]}push(r){return this.links.push(r),!0}getSize(){return this.links.length}isEmpty(){return this.links.length===0}pop(){return this.links.shift()}peek(){return this.links[0]}};return h0.LinkQueueFifo=t,h0}var TB;function JPe(){if(TB)return l0;TB=1,Object.defineProperty(l0,"__esModule",{value:!0}),l0.ActorRdfResolveHypermediaLinksQueueFifo=void 0;const t=KPe(),e=bee();let r=class extends t.ActorRdfResolveHypermediaLinksQueue{constructor(a){super(a)}async test(a){return!0}async run(a){return{linkQueue:new e.LinkQueueFifo}}};return l0.ActorRdfResolveHypermediaLinksQueueFifo=r,l0}var EB;function XPe(){return EB||(EB=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(JPe(),t),r(bee(),t)}(zO)),zO}var KO={},p0={},JO={},y0={},AB;function YPe(){if(AB)return y0;AB=1,Object.defineProperty(y0,"__esModule",{value:!0}),y0.ActorRdfResolveHypermediaLinks=void 0;const t=st;let e=class extends t.Actor{constructor(n){super(n)}};return y0.ActorRdfResolveHypermediaLinks=e,y0}var OB;function ZPe(){return OB||(OB=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(YPe(),t)}(JO)),JO}var RB;function eNe(){if(RB)return p0;RB=1,Object.defineProperty(p0,"__esModule",{value:!0}),p0.ActorRdfResolveHypermediaLinksNext=void 0;const t=ZPe();let e=class extends t.ActorRdfResolveHypermediaLinks{constructor(n){super(n)}async test(n){if(!n.metadata.next||n.metadata.next.length===0)throw new Error(`Actor ${this.name} requires a 'next' metadata entry.`);return!0}async run(n){return{links:n.metadata.next.map(a=>({url:a}))}}};return p0.ActorRdfResolveHypermediaLinksNext=e,p0}var xB;function tNe(){return xB||(xB=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(eNe(),t)}(KO)),KO}var XO={},m0={},YO={},g0={},IB;function rNe(){if(IB)return g0;IB=1,Object.defineProperty(g0,"__esModule",{value:!0}),g0.ActorRdfSerialize=void 0;const t=jf();let e=class extends t.ActorAbstractMediaTyped{constructor(n){super(n)}};return g0.ActorRdfSerialize=e,g0}var _0={},PB;function nNe(){if(PB)return _0;PB=1,Object.defineProperty(_0,"__esModule",{value:!0}),_0.ActorRdfSerializeFixedMediaTypes=void 0;const t=jf();let e=class extends t.ActorAbstractMediaTypedFixed{constructor(n){super(n)}async testHandleChecked(){return!0}};return _0.ActorRdfSerializeFixedMediaTypes=e,_0}var NB;function g4(){return NB||(NB=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(rNe(),t),r(nNe(),t)}(YO)),YO}var DB;function iNe(){if(DB)return m0;DB=1,Object.defineProperty(m0,"__esModule",{value:!0}),m0.ActorRdfSerializeN3=void 0;const t=g4(),e=Du;let r=class extends t.ActorRdfSerializeFixedMediaTypes{constructor(a){super(a)}async runHandle(a,s){const o=new e.StreamWriter({format:s});let u;return"pipe"in a.quadStream?(a.quadStream.on("error",c=>o.emit("error",c)),u=a.quadStream.pipe(o)):u=o.import(a.quadStream),{data:u,triples:s==="text/turtle"||s==="application/n-triples"||s==="text/n3"}}};return m0.ActorRdfSerializeN3=r,m0}var CB;function aNe(){return CB||(CB=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(iNe(),t)}(XO)),XO}var ZO={},b0={},eR={},v0={},w0={},LB;function sNe(){if(LB)return w0;LB=1,Object.defineProperty(w0,"__esModule",{value:!0}),w0.SeparatorType=void 0;let t=class{constructor(r){this.label=r}};return w0.SeparatorType=t,t.COMMA=new t(","),t.OBJECT_START=new t("{"),t.OBJECT_END=new t("}"),t.OBJECT_END_COMMA=new t("},"),t.ARRAY_START=new t("["),t.ARRAY_END=new t("]"),t.ARRAY_END_COMMA=new t("],"),t.GRAPH_FIELD_NONCOMPACT=new t('"@graph": ['),t.GRAPH_FIELD_COMPACT=new t('"@graph":['),t.CONTEXT_FIELD=new t('"@context":'),w0}var S0={},jB;function vee(){if(jB)return S0;jB=1,Object.defineProperty(S0,"__esModule",{value:!0}),S0.Util=void 0;const t=hn;class e{static termToValue(n,a,s={compactIds:!1,useNativeTypes:!1}){switch(n.termType){case"NamedNode":const o=a.compactIri(n.value,s.vocab);return s.compactIds?o:{"@id":o};case"DefaultGraph":return s.compactIds?n.value:{"@id":n.value};case"BlankNode":const u=`_:${n.value}`;return s.compactIds?u:{"@id":u};case"Literal":if(n.datatype.value===e.RDF_JSON){let d;try{d=JSON.parse(n.value)}catch(f){throw new t.ErrorCoded("Invalid JSON literal: "+f.message,t.ERROR_CODES.INVALID_JSON_LITERAL)}return{"@value":d,"@type":"@json"}}if(s.rdfDirection==="i18n-datatype"&&n.datatype.value.startsWith(e.I18N)){const[d,f]=n.datatype.value.substr(e.I18N.length,n.datatype.value.length).split("_");return Object.assign(Object.assign({"@value":n.value},d?{"@language":d}:{}),f?{"@direction":f}:{})}const c=n.datatype.value===e.XSD_STRING,l={"@value":!c&&s.useNativeTypes?e.stringToNativeType(n.value,n.datatype.value):n.value};return n.language?Object.assign(Object.assign({},l),{"@language":n.language}):!c&&typeof l["@value"]=="string"?Object.assign(Object.assign({},l),{"@type":n.datatype.value}):l}}static stringToNativeType(n,a){if(a.startsWith(e.XSD))switch(a.substr(e.XSD.length)){case"boolean":if(n==="true")return!0;if(n==="false")return!1;throw new Error(`Invalid xsd:boolean value '${n}'`);case"integer":case"number":case"int":case"byte":case"long":const o=parseInt(n,10);if(isNaN(o))throw new Error(`Invalid xsd:integer value '${n}'`);return o;case"float":case"double":const u=parseFloat(n);if(isNaN(u))throw new Error(`Invalid xsd:float value '${n}'`);return u}return n}}return S0.Util=e,e.XSD="http://www.w3.org/2001/XMLSchema#",e.XSD_STRING=e.XSD+"string",e.RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#",e.RDF_TYPE=e.RDF+"type",e.RDF_JSON=e.RDF+"JSON",e.I18N="https://www.w3.org/ns/i18n#",S0}var MB;function oNe(){if(MB)return v0;MB=1,Object.defineProperty(v0,"__esModule",{value:!0}),v0.JsonLdSerializer=void 0;const t=hn,e=sNe(),r=vee(),n=Pt;let a=class wee extends n.Transform{constructor(o={}){super({objectMode:!0}),this.indentation=0,this.options=o,this.options.baseIRI&&!this.options.context&&(this.options.context={"@base":this.options.baseIRI}),this.options.context?(this.originalContext=this.options.context,this.context=new t.ContextParser().parse(this.options.context,{baseIRI:this.options.baseIRI})):this.context=Promise.resolve(new t.JsonLdContextNormalized({}))}import(o){const u=new n.PassThrough({objectMode:!0});o.on("error",l=>c.emit("error",l)),o.on("data",l=>u.push(l)),o.on("end",()=>u.push(null));const c=u.pipe(new wee(this.options));return c}_transform(o,u,c){this.context.then(l=>{this.transformQuad(o,l),c()}).catch(c)}async list(o){const u=await this.context;return{"@list":o.map(c=>r.Util.termToValue(c,u,this.options))}}_flush(o){return this.opened||this.pushDocumentStart(),this.lastPredicate&&this.endPredicate(),this.lastSubject&&this.endSubject(),this.lastGraph&&this.lastGraph.termType!=="DefaultGraph"&&this.endGraph(),this.endDocument(),o(null,null)}transformQuad(o,u){this.opened||this.pushDocumentStart();const c=this.lastGraph&&this.lastGraph.termType!=="DefaultGraph"&&this.lastGraph.equals(o.subject);if(!c&&(!this.lastGraph||!o.graph.equals(this.lastGraph))){let l=o.graph.termType!=="DefaultGraph"&&this.lastSubject&&this.lastSubject.equals(o.graph);this.lastGraph&&(this.lastGraph.termType!=="DefaultGraph"?(this.endPredicate(),this.endSubject(),this.endGraph(!0),l=!1):l?(this.endPredicate(!0),this.lastSubject=null):(this.endPredicate(),this.endSubject(!0))),o.graph.termType!=="DefaultGraph"&&(l||this.pushId(o.graph,!0,u),this.pushSeparator(this.options.space?e.SeparatorType.GRAPH_FIELD_NONCOMPACT:e.SeparatorType.GRAPH_FIELD_COMPACT),this.indentation++),this.lastGraph=o.graph}(!this.lastSubject||!o.subject.equals(this.lastSubject))&&(c?(this.endPredicate(),this.endSubject(),this.indentation--,this.pushSeparator(e.SeparatorType.ARRAY_END_COMMA),this.lastGraph=o.graph):(this.lastSubject&&(this.endPredicate(),this.endSubject(!0)),this.pushId(o.subject,!0,u)),this.lastSubject=o.subject),(!this.lastPredicate||!o.predicate.equals(this.lastPredicate))&&(this.lastPredicate&&this.endPredicate(!0),this.pushPredicate(o.predicate,u)),this.pushObject(o.object,u)}pushDocumentStart(){this.opened=!0,this.originalContext&&!this.options.excludeContext?(this.pushSeparator(e.SeparatorType.OBJECT_START),this.indentation++,this.pushSeparator(e.SeparatorType.CONTEXT_FIELD),this.pushIndented(JSON.stringify(this.originalContext,null,this.options.space)+","),this.pushSeparator(this.options.space?e.SeparatorType.GRAPH_FIELD_NONCOMPACT:e.SeparatorType.GRAPH_FIELD_COMPACT),this.indentation++):(this.pushSeparator(e.SeparatorType.ARRAY_START),this.indentation++)}pushId(o,u,c){if(o.termType==="Quad")this.pushNestedQuad(o,!0,c);else{const l=o.termType==="BlankNode"?"_:"+o.value:c.compactIri(o.value,!1);u?this.pushSeparator(e.SeparatorType.OBJECT_START):(this.push(e.SeparatorType.OBJECT_START.label),this.options.space&&this.push(` +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Fe=this.next();return Fe||this.lex()},begin:function(Fe){this.conditionStack.push(Fe)},popState:function(){var Fe=this.conditionStack.length-1;return Fe>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Fe){return Fe=this.conditionStack.length-1-Math.abs(Fe||0),Fe>=0?this.conditionStack[Fe]:"INITIAL"},pushState:function(Fe){this.begin(Fe)},stateStackSize:function(){return this.conditionStack.length},options:{flex:!0,"case-insensitive":!0},performAction:function(Fe,Je,lt,rt){switch(lt){case 0:break;case 1:return 12;case 2:return 14;case 3:return 15;case 4:return 25;case 5:return 20;case 6:return 131;case 7:return 132;case 8:return 85;case 9:return 126;case 10:return 87;case 11:return"PASS";case 12:return"COMMENT";case 13:return 13;case 14:return 16;case 15:return 130;case 16:return 129;case 17:return 128;case 18:return 117;case 19:return 92;case 20:return 119;case 21:return 120;case 22:return"EXPONENT";case 23:return 133;case 24:return 134;case 25:return 135;case 26:return 136;case 27:return 61;case 28:return 90;case 29:return 58;case 30:return 56;case 31:return 38;case 32:return 40;case 33:return 44;case 34:return 46;case 35:return 110;case 36:return 93;case 37:return 111;case 38:return 67;case 39:return 118;case 40:return 53;case 41:return 96;case 42:return 102;case 43:return 75;case 44:return 95;case 45:return 109;case 46:return 28;case 47:return 42;case 48:return 48;case 49:return 115;case 50:return 7;case 51:console.log(Je.yytext);break}},rules:[/^(?:\s+|#[^\n\r]*)/i,/^(?:BASE)/i,/^(?:IMPORTS)/i,/^(?:PREFIX)/i,/^(?:shapeClass)/i,/^(?:shape)/i,/^(?:true)/i,/^(?:false)/i,/^(?:(BlankNode|IRI|Literal|BlankNodeOrIRI|BlankNodeOrLiteral|IRIOrLiteral\b))/i,/^(?:(targetNode|targetObjectsOf|targetSubjectsOf\b))/i,/^(?:(deactivated|severity|message|class|datatype|nodeKind|minExclusive|minInclusive|maxExclusive|maxInclusive|minLength|maxLength|pattern|flags|languageIn|uniqueLang|equals|disjoint|lessThan|lessThanOrEquals|qualifiedValueShape|qualifiedMinCount|qualifiedMaxCount|qualifiedValueShapesDisjoint|closed|ignoredProperties|hasValue|in))/i,/^(?:([ \t\r\n]+))/i,/^(?:(#[\r\n]*))/i,/^(?:(<([^=<>\"\{\}\|\^`\\\u0000-\u0020]|(\\u([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])|\\U([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])))*>))/i,/^(?:((([A-Z]|[a-z]|[\u00C0-\u00D6]|[\u00D8-\u00F6]|[\u00F8-\u02FF]|[\u0370-\u037D]|[\u037F-\u1FFF]|[\u200C-\u200D]|[\u2070-\u218F]|[\u2C00-\u2FEF]|[\u3001-\uD7FF]|[\uF900-\uFDCF]|[\uFDF0-\uFFFD])((((([A-Z]|[a-z]|[\u00C0-\u00D6]|[\u00D8-\u00F6]|[\u00F8-\u02FF]|[\u0370-\u037D]|[\u037F-\u1FFF]|[\u200C-\u200D]|[\u2070-\u218F]|[\u2C00-\u2FEF]|[\u3001-\uD7FF]|[\uF900-\uFDCF]|[\uFDF0-\uFFFD])|_\b)|-|[0-9]|[\u00B7]|[\u0300-\u036F]|[\u203F-\u2040])|\.)*((([A-Z]|[a-z]|[\u00C0-\u00D6]|[\u00D8-\u00F6]|[\u00F8-\u02FF]|[\u0370-\u037D]|[\u037F-\u1FFF]|[\u200C-\u200D]|[\u2070-\u218F]|[\u2C00-\u2FEF]|[\u3001-\uD7FF]|[\uF900-\uFDCF]|[\uFDF0-\uFFFD])|_\b)|-|[0-9]|[\u00B7]|[\u0300-\u036F]|[\u203F-\u2040]))?)?:))/i,/^(?:(((([A-Z]|[a-z]|[\u00C0-\u00D6]|[\u00D8-\u00F6]|[\u00F8-\u02FF]|[\u0370-\u037D]|[\u037F-\u1FFF]|[\u200C-\u200D]|[\u2070-\u218F]|[\u2C00-\u2FEF]|[\u3001-\uD7FF]|[\uF900-\uFDCF]|[\uFDF0-\uFFFD])((((([A-Z]|[a-z]|[\u00C0-\u00D6]|[\u00D8-\u00F6]|[\u00F8-\u02FF]|[\u0370-\u037D]|[\u037F-\u1FFF]|[\u200C-\u200D]|[\u2070-\u218F]|[\u2C00-\u2FEF]|[\u3001-\uD7FF]|[\uF900-\uFDCF]|[\uFDF0-\uFFFD])|_\b)|-|[0-9]|[\u00B7]|[\u0300-\u036F]|[\u203F-\u2040])|\.)*((([A-Z]|[a-z]|[\u00C0-\u00D6]|[\u00D8-\u00F6]|[\u00F8-\u02FF]|[\u0370-\u037D]|[\u037F-\u1FFF]|[\u200C-\u200D]|[\u2070-\u218F]|[\u2C00-\u2FEF]|[\u3001-\uD7FF]|[\uF900-\uFDCF]|[\uFDF0-\uFFFD])|_\b)|-|[0-9]|[\u00B7]|[\u0300-\u036F]|[\u203F-\u2040]))?)?:)(((([A-Z]|[a-z]|[\u00C0-\u00D6]|[\u00D8-\u00F6]|[\u00F8-\u02FF]|[\u0370-\u037D]|[\u037F-\u1FFF]|[\u200C-\u200D]|[\u2070-\u218F]|[\u2C00-\u2FEF]|[\u3001-\uD7FF]|[\uF900-\uFDCF]|[\uFDF0-\uFFFD])|_\b)|:|[0-9]|((%([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f]))|(\\(_|~|\.|-|!|\$|&|'|\(|\)|\*|\+|,|;|=|\/|\?|#|@|%))))((((([A-Z]|[a-z]|[\u00C0-\u00D6]|[\u00D8-\u00F6]|[\u00F8-\u02FF]|[\u0370-\u037D]|[\u037F-\u1FFF]|[\u200C-\u200D]|[\u2070-\u218F]|[\u2C00-\u2FEF]|[\u3001-\uD7FF]|[\uF900-\uFDCF]|[\uFDF0-\uFFFD])|_\b)|-|[0-9]|[\u00B7]|[\u0300-\u036F]|[\u203F-\u2040])|\.|:|((%([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f]))|(\\(_|~|\.|-|!|\$|&|'|\(|\)|\*|\+|,|;|=|\/|\?|#|@|%))))*(((([A-Z]|[a-z]|[\u00C0-\u00D6]|[\u00D8-\u00F6]|[\u00F8-\u02FF]|[\u0370-\u037D]|[\u037F-\u1FFF]|[\u200C-\u200D]|[\u2070-\u218F]|[\u2C00-\u2FEF]|[\u3001-\uD7FF]|[\uF900-\uFDCF]|[\uFDF0-\uFFFD])|_\b)|-|[0-9]|[\u00B7]|[\u0300-\u036F]|[\u203F-\u2040])|:|((%([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f]))|(\\(_|~|\.|-|!|\$|&|'|\(|\)|\*|\+|,|;|=|\/|\?|#|@|%)))))?)))/i,/^(?:(@(([A-Z]|[a-z]|[\u00C0-\u00D6]|[\u00D8-\u00F6]|[\u00F8-\u02FF]|[\u0370-\u037D]|[\u037F-\u1FFF]|[\u200C-\u200D]|[\u2070-\u218F]|[\u2C00-\u2FEF]|[\u3001-\uD7FF]|[\uF900-\uFDCF]|[\uFDF0-\uFFFD])((((([A-Z]|[a-z]|[\u00C0-\u00D6]|[\u00D8-\u00F6]|[\u00F8-\u02FF]|[\u0370-\u037D]|[\u037F-\u1FFF]|[\u200C-\u200D]|[\u2070-\u218F]|[\u2C00-\u2FEF]|[\u3001-\uD7FF]|[\uF900-\uFDCF]|[\uFDF0-\uFFFD])|_\b)|-|[0-9]|[\u00B7]|[\u0300-\u036F]|[\u203F-\u2040])|\.)*((([A-Z]|[a-z]|[\u00C0-\u00D6]|[\u00D8-\u00F6]|[\u00F8-\u02FF]|[\u0370-\u037D]|[\u037F-\u1FFF]|[\u200C-\u200D]|[\u2070-\u218F]|[\u2C00-\u2FEF]|[\u3001-\uD7FF]|[\uF900-\uFDCF]|[\uFDF0-\uFFFD])|_\b)|-|[0-9]|[\u00B7]|[\u0300-\u036F]|[\u203F-\u2040]))?)?:))/i,/^(?:(@((([A-Z]|[a-z]|[\u00C0-\u00D6]|[\u00D8-\u00F6]|[\u00F8-\u02FF]|[\u0370-\u037D]|[\u037F-\u1FFF]|[\u200C-\u200D]|[\u2070-\u218F]|[\u2C00-\u2FEF]|[\u3001-\uD7FF]|[\uF900-\uFDCF]|[\uFDF0-\uFFFD])((((([A-Z]|[a-z]|[\u00C0-\u00D6]|[\u00D8-\u00F6]|[\u00F8-\u02FF]|[\u0370-\u037D]|[\u037F-\u1FFF]|[\u200C-\u200D]|[\u2070-\u218F]|[\u2C00-\u2FEF]|[\u3001-\uD7FF]|[\uF900-\uFDCF]|[\uFDF0-\uFFFD])|_\b)|-|[0-9]|[\u00B7]|[\u0300-\u036F]|[\u203F-\u2040])|\.)*((([A-Z]|[a-z]|[\u00C0-\u00D6]|[\u00D8-\u00F6]|[\u00F8-\u02FF]|[\u0370-\u037D]|[\u037F-\u1FFF]|[\u200C-\u200D]|[\u2070-\u218F]|[\u2C00-\u2FEF]|[\u3001-\uD7FF]|[\uF900-\uFDCF]|[\uFDF0-\uFFFD])|_\b)|-|[0-9]|[\u00B7]|[\u0300-\u036F]|[\u203F-\u2040]))?)?:)(((([A-Z]|[a-z]|[\u00C0-\u00D6]|[\u00D8-\u00F6]|[\u00F8-\u02FF]|[\u0370-\u037D]|[\u037F-\u1FFF]|[\u200C-\u200D]|[\u2070-\u218F]|[\u2C00-\u2FEF]|[\u3001-\uD7FF]|[\uF900-\uFDCF]|[\uFDF0-\uFFFD])|_\b)|:|[0-9]|((%([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f]))|(\\(_|~|\.|-|!|\$|&|'|\(|\)|\*|\+|,|;|=|\/|\?|#|@|%))))((((([A-Z]|[a-z]|[\u00C0-\u00D6]|[\u00D8-\u00F6]|[\u00F8-\u02FF]|[\u0370-\u037D]|[\u037F-\u1FFF]|[\u200C-\u200D]|[\u2070-\u218F]|[\u2C00-\u2FEF]|[\u3001-\uD7FF]|[\uF900-\uFDCF]|[\uFDF0-\uFFFD])|_\b)|-|[0-9]|[\u00B7]|[\u0300-\u036F]|[\u203F-\u2040])|\.|:|((%([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f]))|(\\(_|~|\.|-|!|\$|&|'|\(|\)|\*|\+|,|;|=|\/|\?|#|@|%))))*(((([A-Z]|[a-z]|[\u00C0-\u00D6]|[\u00D8-\u00F6]|[\u00F8-\u02FF]|[\u0370-\u037D]|[\u037F-\u1FFF]|[\u200C-\u200D]|[\u2070-\u218F]|[\u2C00-\u2FEF]|[\u3001-\uD7FF]|[\uF900-\uFDCF]|[\uFDF0-\uFFFD])|_\b)|-|[0-9]|[\u00B7]|[\u0300-\u036F]|[\u203F-\u2040])|:|((%([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f]))|(\\(_|~|\.|-|!|\$|&|'|\(|\)|\*|\+|,|;|=|\/|\?|#|@|%)))))?)))/i,/^(?:(@[a-zA-Z]+(-[a-zA-Z0-9]+)*))/i,/^(?:([+-]?[0-9]+))/i,/^(?:([+-]?[0-9]*\.[0-9]+))/i,/^(?:([+-]?([0-9]+\.[0-9]*([eE][+-]?[0-9]+)|\.?[0-9]+([eE][+-]?[0-9]+))))/i,/^(?:([eE][+-]?[0-9]+))/i,/^(?:('(?:(?:[^\u0027\u005C\u000A\u000D])|(\\[tbnrf\\\"\']))*'))/i,/^(?:("(?:(?:[^\u0022\u005C\u000A\u000D])|(\\[tbnrf\\\"\']))*"))/i,/^(?:('''(?:(?:'|'')?(?:[^'\\]|(\\[tbnrf\\\"\'])))*'''))/i,/^(?:("""(?:(?:"|"")?(?:[^\"\\]|(\\[tbnrf\\\"\'])))*"""))/i,/^(?:->)/i,/^(?:\.\.)/i,/^(?:\})/i,/^(?:\{)/i,/^(?:\()/i,/^(?:\))/i,/^(?:\[)/i,/^(?:\])/i,/^(?:\?)/i,/^(?:\*)/i,/^(?:\+)/i,/^(?:\|)/i,/^(?:\^\^)/i,/^(?:\.)/i,/^(?:!)/i,/^(?:\/)/i,/^(?:=)/i,/^(?:@)/i,/^(?:\^)/i,/^(?:;)/i,/^(?:,)/i,/^(?:%)/i,/^(?:a)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],inclusive:!0}}};return be}();Ie.lexer=J;function ie(){this.yy={}}return ie.prototype=Ie,Ie.Parser=ie,new ie}(),dPe=lPe;const fPe=dPe.Parser,$O=Du;let dee=class{constructor(){}parse(e,{extendedSyntax:r,baseIRI:n}={}){this._parser=new fPe,this._parser.Parser.factory=$O.DataFactory,this._parser.Parser.base=$O.DataFactory.namedNode(n||"urn:x-base:default"),this._parser.Parser.extended=r===!0,this._parser.Parser.prefixes={rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",sh:"http://www.w3.org/ns/shacl#",xsd:"http://www.w3.org/2001/XMLSchema#"},this._parser.Parser.currentNodeShape=void 0,this._parser.Parser.currentPropertyNode=void 0,this._parser.Parser.nodeShapeStack=[],this._parser.Parser.tempCurrentNodeShape=void 0,this._parser.Parser.n3Parser=new $O.Parser({baseIRI:n||"urn:x-base:default"});const a=[];return this._parser.Parser.onQuad=s=>{a.push(s)},this._parser.parse(e),a.prefixes=this._parser.Parser.prefixes,a}};y4.Parser=dee;y4.parse=function(e,r){return new dee().parse(e,r)};var fee={exports:{}};(function(t){(function(){var e;typeof window=="object"&&window?e=window:e=I,t.exports?t.exports=e.Promise?e.Promise:s:e.Promise||(e.Promise=s);var r=e.setImmediate||function(h){setTimeout(h,1)};function n(h,p){return function(){h.apply(p,arguments)}}var a=Array.isArray||function(h){return Object.prototype.toString.call(h)==="[object Array]"};function s(h){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");if(typeof h!="function")throw new TypeError("not a function");this._state=null,this._value=null,this._deferreds=[],f(h,n(u,this),n(c,this))}function o(h){var p=this;if(this._state===null){this._deferreds.push(h);return}r(function(){var m=p._state?h.onFulfilled:h.onRejected;if(m===null){(p._state?h.resolve:h.reject)(p._value);return}var y;try{y=m(p._value)}catch(g){h.reject(g);return}h.resolve(y)})}function u(h){try{if(h===this)throw new TypeError("A promise cannot be resolved with itself.");if(h&&(typeof h=="object"||typeof h=="function")){var p=h.then;if(typeof p=="function"){f(n(p,h),n(u,this),n(c,this));return}}this._state=!0,this._value=h,l.call(this)}catch(m){c.call(this,m)}}function c(h){this._state=!1,this._value=h,l.call(this)}function l(){for(var h=0,p=this._deferreds.length;h(this.prefixes=a.prefixes,a)))}read(){if(this.prefixes){for(const n of Object.entries(this.prefixes))this.emit("prefix",...n);delete this.prefixes}return super.read()}};return a0.PrefixWrappingIterator=e,a0}var X7;function mPe(){if(X7)return i0;X7=1,Object.defineProperty(i0,"__esModule",{value:!0}),i0.ActorRdfParseShaclc=void 0;const t=Mf(),e=Pt,r=y4,n=ml,a=yPe();let s=class extends t.ActorRdfParseFixedMediaTypes{constructor(u){super(u)}async runHandle(u,c,l){const d=new a.PrefixWrappingIterator(n(u.data).then(h=>{var p;return(0,r.parse)(h,{extendedSyntax:c==="text/shaclc-ext",baseIRI:(p=u.metadata)==null?void 0:p.baseIRI})})),f=new e.Readable({objectMode:!0});return d.on("prefix",(...h)=>f.emit("prefix",...h)),{data:f.wrap(d),metadata:{triples:!0}}}};return i0.ActorRdfParseShaclc=s,i0}var Y7;function gPe(){return Y7||(Y7=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(mPe(),t)}(qO)),qO}var UO={},s0={},hee={},Ab={},Bf={};Object.defineProperty(Bf,"__esModule",{value:!0});Bf.QuoteType=void 0;var ql=tl,vt;(function(t){t[t.Tab=9]="Tab",t[t.NewLine=10]="NewLine",t[t.FormFeed=12]="FormFeed",t[t.CarriageReturn=13]="CarriageReturn",t[t.Space=32]="Space",t[t.ExclamationMark=33]="ExclamationMark",t[t.Number=35]="Number",t[t.Amp=38]="Amp",t[t.SingleQuote=39]="SingleQuote",t[t.DoubleQuote=34]="DoubleQuote",t[t.Dash=45]="Dash",t[t.Slash=47]="Slash",t[t.Zero=48]="Zero",t[t.Nine=57]="Nine",t[t.Semi=59]="Semi",t[t.Lt=60]="Lt",t[t.Eq=61]="Eq",t[t.Gt=62]="Gt",t[t.Questionmark=63]="Questionmark",t[t.UpperA=65]="UpperA",t[t.LowerA=97]="LowerA",t[t.UpperF=70]="UpperF",t[t.LowerF=102]="LowerF",t[t.UpperZ=90]="UpperZ",t[t.LowerZ=122]="LowerZ",t[t.LowerX=120]="LowerX",t[t.OpeningSquareBracket=91]="OpeningSquareBracket"})(vt||(vt={}));var Ke;(function(t){t[t.Text=1]="Text",t[t.BeforeTagName=2]="BeforeTagName",t[t.InTagName=3]="InTagName",t[t.InSelfClosingTag=4]="InSelfClosingTag",t[t.BeforeClosingTagName=5]="BeforeClosingTagName",t[t.InClosingTagName=6]="InClosingTagName",t[t.AfterClosingTagName=7]="AfterClosingTagName",t[t.BeforeAttributeName=8]="BeforeAttributeName",t[t.InAttributeName=9]="InAttributeName",t[t.AfterAttributeName=10]="AfterAttributeName",t[t.BeforeAttributeValue=11]="BeforeAttributeValue",t[t.InAttributeValueDq=12]="InAttributeValueDq",t[t.InAttributeValueSq=13]="InAttributeValueSq",t[t.InAttributeValueNq=14]="InAttributeValueNq",t[t.BeforeDeclaration=15]="BeforeDeclaration",t[t.InDeclaration=16]="InDeclaration",t[t.InProcessingInstruction=17]="InProcessingInstruction",t[t.BeforeComment=18]="BeforeComment",t[t.CDATASequence=19]="CDATASequence",t[t.InSpecialComment=20]="InSpecialComment",t[t.InCommentLike=21]="InCommentLike",t[t.BeforeSpecialS=22]="BeforeSpecialS",t[t.BeforeSpecialT=23]="BeforeSpecialT",t[t.SpecialStartSequence=24]="SpecialStartSequence",t[t.InSpecialTag=25]="InSpecialTag",t[t.InEntity=26]="InEntity"})(Ke||(Ke={}));function Ws(t){return t===vt.Space||t===vt.NewLine||t===vt.Tab||t===vt.FormFeed||t===vt.CarriageReturn}function Xv(t){return t===vt.Slash||t===vt.Gt||Ws(t)}function _Pe(t){return t>=vt.LowerA&&t<=vt.LowerZ||t>=vt.UpperA&&t<=vt.UpperZ}var Tc;(function(t){t[t.NoValue=0]="NoValue",t[t.Unquoted=1]="Unquoted",t[t.Single=2]="Single",t[t.Double=3]="Double"})(Tc||(Bf.QuoteType=Tc={}));var Sn={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])},bPe=function(){function t(e,r){var n=e.xmlMode,a=n===void 0?!1:n,s=e.decodeEntities,o=s===void 0?!0:s,u=this;this.cbs=r,this.state=Ke.Text,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=Ke.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.xmlMode=a,this.decodeEntities=o,this.entityDecoder=new ql.EntityDecoder(a?ql.xmlDecodeTree:ql.htmlDecodeTree,function(c,l){return u.emitCodePoint(c,l)})}return t.prototype.reset=function(){this.state=Ke.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=Ke.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},t.prototype.write=function(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()},t.prototype.end=function(){this.running&&this.finish()},t.prototype.pause=function(){this.running=!1},t.prototype.resume=function(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=Ke.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===vt.Amp&&this.startEntity()},t.prototype.stateSpecialStartSequence=function(e){var r=this.sequenceIndex===this.currentSequence.length,n=r?Xv(e):(e|32)===this.currentSequence[this.sequenceIndex];if(!n)this.isSpecial=!1;else if(!r){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=Ke.InTagName,this.stateInTagName(e)},t.prototype.stateInSpecialTag=function(e){if(this.sequenceIndex===this.currentSequence.length){if(e===vt.Gt||Ws(e)){var r=this.index-this.currentSequence.length;if(this.sectionStart=0?(this.state=this.baseState,e===0&&(this.index=this.entityStart)):this.index=this.offset+this.buffer.length-1},t.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===Ke.Text||this.state===Ke.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===Ke.InAttributeValueDq||this.state===Ke.InAttributeValueSq||this.state===Ke.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},t.prototype.shouldContinue=function(){return this.index=e||(this.state===Ke.InCommentLike?this.currentSequence===Sn.CdataEnd?this.cbs.oncdata(this.sectionStart,e,0):this.cbs.oncomment(this.sectionStart,e,0):this.state===Ke.InTagName||this.state===Ke.BeforeAttributeName||this.state===Ke.BeforeAttributeValue||this.state===Ke.AfterAttributeName||this.state===Ke.InAttributeName||this.state===Ke.InAttributeValueSq||this.state===Ke.InAttributeValueDq||this.state===Ke.InAttributeValueNq||this.state===Ke.InClosingTagName||this.cbs.ontext(this.sectionStart,e))},t.prototype.emitCodePoint=function(e,r){this.baseState!==Ke.Text&&this.baseState!==Ke.InSpecialTag?(this.sectionStart0&&o.has(this.stack[0]);){var u=this.stack.shift();(n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,u,!0)}this.isVoidElement(e)||(this.stack.unshift(e),this.htmlMode&&(nB.has(e)?this.foreignContext.unshift(!0):iB.has(e)&&this.foreignContext.unshift(!1))),(s=(a=this.cbs).onopentagname)===null||s===void 0||s.call(a,e),this.cbs.onopentag&&(this.attribs={})},t.prototype.endOpenTag=function(e){var r,n;this.startIndex=this.openTagStart,this.attribs&&((n=(r=this.cbs).onopentag)===null||n===void 0||n.call(r,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},t.prototype.onopentagend=function(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1},t.prototype.onclosetag=function(e,r){var n,a,s,o,u,c,l,d;this.endIndex=r;var f=this.getSlice(e,r);if(this.lowerCaseTagNames&&(f=f.toLowerCase()),this.htmlMode&&(nB.has(f)||iB.has(f))&&this.foreignContext.shift(),this.isVoidElement(f))this.htmlMode&&f==="br"&&((o=(s=this.cbs).onopentagname)===null||o===void 0||o.call(s,"br"),(c=(u=this.cbs).onopentag)===null||c===void 0||c.call(u,"br",{},!0),(d=(l=this.cbs).onclosetag)===null||d===void 0||d.call(l,"br",!1));else{var h=this.stack.indexOf(f);if(h!==-1)for(var p=0;p<=h;p++){var m=this.stack.shift();(a=(n=this.cbs).onclosetag)===null||a===void 0||a.call(n,m,p!==h)}else this.htmlMode&&f==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=r+1},t.prototype.onselfclosingtag=function(e){this.endIndex=e,this.recognizeSelfClosing||this.foreignContext[0]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)},t.prototype.closeCurrentTag=function(e){var r,n,a=this.tagname;this.endOpenTag(e),this.stack[0]===a&&((n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,a,!e),this.stack.shift())},t.prototype.onattribname=function(e,r){this.startIndex=e;var n=this.getSlice(e,r);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n},t.prototype.onattribdata=function(e,r){this.attribvalue+=this.getSlice(e,r)},t.prototype.onattribentity=function(e){this.attribvalue+=(0,Z7.fromCodePoint)(e)},t.prototype.onattribend=function(e,r){var n,a;this.endIndex=r,(a=(n=this.cbs).onattribute)===null||a===void 0||a.call(n,this.attribname,this.attribvalue,e===Yv.QuoteType.Double?'"':e===Yv.QuoteType.Single?"'":e===Yv.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},t.prototype.getInstructionName=function(e){var r=e.search(APe),n=r<0?e:e.substr(0,r);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},t.prototype.ondeclaration=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);if(this.cbs.onprocessinginstruction){var a=this.getInstructionName(n);this.cbs.onprocessinginstruction("!".concat(a),"!".concat(n))}this.startIndex=r+1},t.prototype.onprocessinginstruction=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);if(this.cbs.onprocessinginstruction){var a=this.getInstructionName(n);this.cbs.onprocessinginstruction("?".concat(a),"?".concat(n))}this.startIndex=r+1},t.prototype.oncomment=function(e,r,n){var a,s,o,u;this.endIndex=r,(s=(a=this.cbs).oncomment)===null||s===void 0||s.call(a,this.getSlice(e,r-n)),(u=(o=this.cbs).oncommentend)===null||u===void 0||u.call(o),this.startIndex=r+1},t.prototype.oncdata=function(e,r,n){var a,s,o,u,c,l,d,f,h,p;this.endIndex=r;var m=this.getSlice(e,r-n);!this.htmlMode||this.options.recognizeCDATA?((s=(a=this.cbs).oncdatastart)===null||s===void 0||s.call(a),(u=(o=this.cbs).ontext)===null||u===void 0||u.call(o,m),(l=(c=this.cbs).oncdataend)===null||l===void 0||l.call(c)):((f=(d=this.cbs).oncomment)===null||f===void 0||f.call(d,"[CDATA[".concat(m,"]]")),(p=(h=this.cbs).oncommentend)===null||p===void 0||p.call(h)),this.startIndex=r+1},t.prototype.onend=function(){var e,r;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var n=0;n=this.buffers[0].length;)this.shiftBuffer();for(var n=this.buffers[0].slice(e-this.bufferOffset,r-this.bufferOffset);r-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,r-this.bufferOffset);return n},t.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},t.prototype.write=function(e){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".write() after done!"));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)},t.prototype.end=function(e){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".end() after done!"));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()},t.prototype.pause=function(){this.tokenizer.pause()},t.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex{};let l=0,d=1;function f(y){c.emit("error",y)}function h(){--d===0&&c.push(null)}const p={baseIRI:((m=s.metadata)==null?void 0:m.baseIRI)??"",context:u,emit:y=>{l--,c.push(y)},end:h,error:f,headers:s.headers};try{const y=await Promise.all(this.busRdfParseHtml.publish(p));d+=y.length;const g=[];for(const _ of y){const{htmlParseListener:w}=await _.actor.run(p);g.push(w)}const b=new e.Parser({onclosetag(){try{for(const _ of g)_.onTagClose()}catch(_){f(_)}},onend(){try{for(const _ of g)_.onEnd()}catch(_){f(_)}h()},onopentag(_,w){try{for(const E of g)E.onTagOpen(_,w)}catch(E){f(E)}},ontext(_){try{for(const w of g)w.onText(_)}catch(w){f(w)}}},{decodeEntities:!0,recognizeSelfClosing:!0,xmlMode:!1}),v=c._read=_=>{for(l=Math.max(_,l);l>0;){const w=s.data.read();if(w===null){s.data.once("readable",()=>v(0));return}b.write(w.toString())}};s.data.on("error",f).on("end",()=>b.end())}catch(y){setTimeout(()=>{c.emit("error",y)})}return{data:c}}}return s0.ActorRdfParseHtml=n,s0}var sB;function xPe(){return sB||(sB=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(RPe(),t)}(UO)),UO}var kO={},o0={},VO={},u0={},oB;function IPe(){if(oB)return u0;oB=1,Object.defineProperty(u0,"__esModule",{value:!0}),u0.ActorRdfParseHtml=void 0;const t=st;let e=class extends t.Actor{constructor(n){super(n)}};return u0.ActorRdfParseHtml=e,u0}var uB;function m4(){return uB||(uB=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(IPe(),t)}(VO)),VO}var pee={},yee={};Object.defineProperty(yee,"__esModule",{value:!0});var L1={};Object.defineProperty(L1,"__esModule",{value:!0});L1.ItemPropertyHandlerContent=void 0;class PPe{canHandle(e,r){return"content"in r}getObject(e,r,n){return r.createLiteral(e.content,n)}}L1.ItemPropertyHandlerContent=PPe;var j1={},gl={};Object.defineProperty(gl,"__esModule",{value:!0});gl.Util=void 0;const NPe=Ot,cB=ga;let M1=class I_{constructor(e,r){this.dataFactory=e||new NPe.DataFactory,this.baseIRI=r||""}static isValidIri(e){return I_.IRI_REGEX.test(e)}createVocabIris(e,r,n){return e.split(/\s+/u).filter(a=>!!a).map(a=>{if(!I_.isValidIri(a)){if(!n)return;a=`${r.vocab||`${this.baseIRI}#`}${a}`}return this.dataFactory.namedNode(a)}).filter(a=>!!a)}getVocabularyExpansionType(e,r,n){const a=e.split(/\s+/u);if(a.includes("subPropertyOf")||a.includes("equivalentProperty"))return[this.dataFactory.namedNode(`${I_.RDF}type`)];if(r.vocab&&r.vocab in n&&n[r.vocab].properties){let s=[];for(const[o,u]of Object.entries(n[r.vocab].properties))a.includes(o)&&(s=[...Object.values(u).map(c=>this.dataFactory.namedNode(c))]);return s}return[]}createSubject(e){if(!I_.isValidIri(e))try{e=(0,cB.resolve)(e,this.baseIRI)}catch{return}return this.dataFactory.namedNode(e)}createLiteral(e,r){return this.dataFactory.literal(e,r.language)}deriveVocab(e,r){let n;for(const a in r)if(e.startsWith(a)){n=a,n.endsWith("/")||(n+="#");break}if(!n){const a=e.indexOf("#");a>0?n=e.slice(0,a+1):n=(0,cB.resolve)(".",e)}return n}};gl.Util=M1;M1.RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#";M1.XSD="http://www.w3.org/2001/XMLSchema#";M1.RDFA="http://www.w3.org/ns/rdfa#";M1.IRI_REGEX=/^([A-Za-z][\d+-.A-Za-z]*|_):[^ "<>[\\\]`{|}]*$/u;Object.defineProperty(j1,"__esModule",{value:!0});j1.ItemPropertyHandlerNumber=void 0;const lB=gl;class DPe{constructor(e,r){this.tagName=e,this.attributeName=r}canHandle(e,r){return this.tagName===e&&this.attributeName in r}getObject(e,r,n){const a=e[this.attributeName];let s;return!Number.isNaN(Number.parseInt(a,10))&&!a.includes(".")?s=`${lB.Util.XSD}integer`:Number.isNaN(Number.parseFloat(a))||(s=`${lB.Util.XSD}double`),r.dataFactory.literal(a,s&&r.dataFactory.namedNode(s))}}j1.ItemPropertyHandlerNumber=DPe;var F1={};Object.defineProperty(F1,"__esModule",{value:!0});F1.ItemPropertyHandlerTime=void 0;const CPe=gl;class ET{canHandle(e,r){return e==="time"&&"datetime"in r}getObject(e,r,n){const a=e.datetime;let s;for(const o of ET.TIME_REGEXES)if(o.regex.test(a)){s=r.dataFactory.namedNode(CPe.Util.XSD+o.type);break}return r.dataFactory.literal(a,s)}}F1.ItemPropertyHandlerTime=ET;ET.TIME_REGEXES=[{regex:/^-?P(\d+Y)?(\d+M)?(\d+D)?(T(\d+H)?(\d+M)?(\d+(\.\d)?S)?)?$/u,type:"duration"},{regex:/^\d+-\d\d-\d\dT\d\d:\d\d:\d\d((Z?)|([+-]\d\d:\d\d))$/u,type:"dateTime"},{regex:/^\d+-\d\d-\d\dZ?$/u,type:"date"},{regex:/^\d\d:\d\d:\d\d((Z?)|([+-]\d\d:\d\d))$/u,type:"time"},{regex:/^\d+-\d\d$/u,type:"gYearMonth"},{regex:/^\d+$/u,type:"gYear"}];var B1={};Object.defineProperty(B1,"__esModule",{value:!0});B1.ItemPropertyHandlerUrl=void 0;const LPe=ga;class jPe{constructor(e,r){this.tagName=e,this.attributeName=r}canHandle(e,r){return this.tagName===e&&this.attributeName in r}getObject(e,r,n){return r.dataFactory.namedNode((0,LPe.resolve)(e[this.attributeName],r.baseIRI))}}B1.ItemPropertyHandlerUrl=jPe;var mee={};Object.defineProperty(mee,"__esModule",{value:!0});var gee={};Object.defineProperty(gee,"__esModule",{value:!0});var _ee={};Object.defineProperty(_ee,"__esModule",{value:!0});var AT={};const MPe={"http://schema.org/":{properties:{additionalType:{subPropertyOf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#type"}}},"http://microformats.org/profile/hcard":{}};Object.defineProperty(AT,"__esModule",{value:!0});AT.MicrodataRdfParser=void 0;const FPe=s4,dB=Pt,BPe=L1,fB=j1,qPe=F1,xa=B1,hB=gl,$Pe=MPe;class Ob extends dB.Transform{constructor(e){super({readableObjectMode:!0}),this.itemScopeStack=[],this.textBufferStack=[],this.isEmittingReferences=!1,this.pendingItemRefsDomain={},this.pendingItemRefsRangeFinalized={},this.pendingItemRefsRangeCollecting={},e=e||{},this.options=e,this.util=new hB.Util(e.dataFactory,e.baseIRI),this.defaultGraph=e.defaultGraph||this.util.dataFactory.defaultGraph(),this.htmlParseListener=e.htmlParseListener,this.vocabRegistry=e.vocabRegistry||$Pe,this.parser=this.initializeParser(!!e.xmlMode)}import(e){const r=new dB.PassThrough({readableObjectMode:!0});e.on("error",a=>n.emit("error",a)),e.on("data",a=>r.push(a)),e.on("end",()=>r.push(null));const n=r.pipe(new Ob(this.options));return n}_transform(e,r,n){this.parser.write(e.toString()),n()}_flush(e){this.parser.end(),e()}getItemScope(e){let r=this.itemScopeStack.length-(e?2:1);for(;r>0&&!this.itemScopeStack[r];)r--;return this.itemScopeStack[r]}getDepth(){return this.itemScopeStack.length}onTagOpen(e,r){if(!this.isEmittingReferences){if("id"in r){const a=r.id;this.pendingItemRefsRangeCollecting[a]={events:[],counter:0,ids:[]}}for(const a of Object.values(this.pendingItemRefsRangeCollecting))a.counter++,a.events.push({type:"open",name:e,attributes:r})}this.textBufferStack.push(void 0);let n;if("itemscope"in r){let a;if(this.emittingReferencesItemScopeIdGenerator)a=this.emittingReferencesItemScopeIdGenerator();else{a="itemid"in r&&this.util.createSubject(r.itemid)||this.util.dataFactory.blankNode();for(const o of Object.values(this.pendingItemRefsRangeCollecting))o.ids.push(a)}n={subject:a},this.isEmittingReferences&&(n.blockEmission=!0);const s=this.getItemScope();s&&s.vocab&&(n.vocab=s.vocab),this.itemScopeStack.push(n)}else n=this.getItemScope(),this.itemScopeStack.push(void 0);if(n){if("itemtype"in r)for(const a of this.util.createVocabIris(r.itemtype,n,!1))n.vocab||(n.vocab=this.util.deriveVocab(a.value,this.vocabRegistry)),n.blockEmission||this.emitTriple(n.subject,this.util.dataFactory.namedNode(`${hB.Util.RDF}type`),a);if("lang"in r&&(n.language=r.lang),"xml:lang"in r&&(n.language=r["xml:lang"]),"itemscope"in r&&!this.isEmittingReferences&&"itemref"in r)for(const a of r.itemref.split(/\s+/u))a in this.pendingItemRefsDomain||(this.pendingItemRefsDomain[a]=[]),this.pendingItemRefsDomain[a].push(n),this.tryToEmitReferences(a,n)}"itemprop"in r&&this.handleItemProperties(r.itemprop,!1,n,e,r),"itemprop-reverse"in r&&this.handleItemProperties(r["itemprop-reverse"],!0,n,e,r)}onText(e){if(!this.isEmittingReferences)for(const r of Object.values(this.pendingItemRefsRangeCollecting))r.events.push({type:"text",data:e});for(const r of this.textBufferStack)r&&r.push(e)}onTagClose(){if(!this.isEmittingReferences)for(const[r,n]of Object.entries(this.pendingItemRefsRangeCollecting))n.counter--,n.events.push({type:"close"}),n.counter===0&&(this.pendingItemRefsRangeFinalized[r]=n,delete this.pendingItemRefsRangeCollecting[r],this.tryToEmitReferences(r));const e=this.getItemScope(!0);if(e){const r=this.getDepth();if(e.predicates&&r in e.predicates)for(const[n,a]of Object.entries(e.predicates[r])){const s=this.util.createLiteral(this.textBufferStack[r].join(""),e);this.emitPredicateTriples(e,a,s,n==="reverse"),delete e.predicates[r][n]}}this.itemScopeStack.pop(),this.textBufferStack.pop()}onEnd(){}initializeParser(e){return new FPe.Parser({onclosetag:()=>{try{this.onTagClose(),this.htmlParseListener&&this.htmlParseListener.onTagClose()}catch(r){this.emit("error",r)}},onend:()=>{try{this.onEnd(),this.htmlParseListener&&this.htmlParseListener.onEnd()}catch(r){this.emit("error",r)}},onopentag:(r,n)=>{try{this.onTagOpen(r,n),this.htmlParseListener&&this.htmlParseListener.onTagOpen(r,n)}catch(a){this.emit("error",a)}},ontext:r=>{try{this.onText(r),this.htmlParseListener&&this.htmlParseListener.onText(r)}catch(n){this.emit("error",n)}}},{decodeEntities:!0,recognizeSelfClosing:!0,xmlMode:e})}handleItemProperties(e,r,n,a,s){const o=this.getItemScope(!0);if(o){const u=this.getDepth(),c=this.util.createVocabIris(e,o,!0);o.predicates||(o.predicates={}),o.predicates[u]||(o.predicates[u]={});const l=r?"reverse":"forward";o.predicates[u][l]=c;for(const d of this.util.getVocabularyExpansionType(e,o,this.vocabRegistry))c.push(d);if(n&&"itemscope"in s)this.emitPredicateTriples(o,c,n.subject,r),delete o.predicates[u][l];else for(const d of Ob.ITEM_PROPERTY_HANDLERS)if(d.canHandle(a,s)){const f=d.getObject(s,this.util,o);this.emitPredicateTriples(o,c,f,r),delete o.predicates[u][l]}o.predicates[u][l]&&(this.textBufferStack[u]=[])}}emitPredicateTriples(e,r,n,a){if(!e.blockEmission)for(const s of r)a?n.termType!=="Literal"&&this.emitTriple(n,s,e.subject):this.emitTriple(e.subject,s,n)}emitTriple(e,r,n){this.push(this.util.dataFactory.quad(e,r,n,this.defaultGraph))}tryToEmitReferences(e,r){const n=this.pendingItemRefsRangeFinalized[e];if(n){let a;if(r){a=[r];const s=this.pendingItemRefsDomain[e].indexOf(r);this.pendingItemRefsDomain[e].splice(s,1)}else a=this.pendingItemRefsDomain[e],delete this.pendingItemRefsDomain[e];if(a){const s=this.itemScopeStack,o=this.textBufferStack;this.isEmittingReferences=!0;for(const u of a){this.itemScopeStack=[u],this.textBufferStack=[void 0];const c=[...n.ids];this.emittingReferencesItemScopeIdGenerator=()=>c.shift();for(const l of n.events)switch(l.type){case"open":this.onTagOpen(l.name,l.attributes);break;case"text":this.onText(l.data);break;case"close":this.onTagClose();break}}this.emittingReferencesItemScopeIdGenerator=void 0,this.itemScopeStack=s,this.textBufferStack=o,this.isEmittingReferences=!1}}}}AT.MicrodataRdfParser=Ob;Ob.ITEM_PROPERTY_HANDLERS=[new BPe.ItemPropertyHandlerContent,new xa.ItemPropertyHandlerUrl("a","href"),new xa.ItemPropertyHandlerUrl("area","href"),new xa.ItemPropertyHandlerUrl("audio","src"),new xa.ItemPropertyHandlerUrl("embed","src"),new xa.ItemPropertyHandlerUrl("iframe","src"),new xa.ItemPropertyHandlerUrl("img","src"),new xa.ItemPropertyHandlerUrl("link","href"),new xa.ItemPropertyHandlerUrl("object","data"),new xa.ItemPropertyHandlerUrl("source","src"),new xa.ItemPropertyHandlerUrl("track","src"),new xa.ItemPropertyHandlerUrl("video","src"),new fB.ItemPropertyHandlerNumber("data","value"),new fB.ItemPropertyHandlerNumber("meter","value"),new qPe.ItemPropertyHandlerTime];(function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(yee,t),r(L1,t),r(j1,t),r(F1,t),r(B1,t),r(mee,t),r(gee,t),r(_ee,t),r(AT,t),r(gl,t)})(pee);var pB;function UPe(){if(pB)return o0;pB=1,Object.defineProperty(o0,"__esModule",{value:!0}),o0.ActorRdfParseHtmlMicrodata=void 0;const t=m4(),e=pee;let r=class extends t.ActorRdfParseHtml{constructor(a){super(a)}async test(a){return!0}async run(a){const s=a.headers?a.headers.get("content-type"):null,o=s==null?void 0:s.includes("xml"),u=new e.MicrodataRdfParser({baseIRI:a.baseIRI,xmlMode:o});u.on("error",a.error),u.on("data",a.emit);const c=u.onEnd;return u.onEnd=()=>{c.call(u),a.end()},{htmlParseListener:u}}};return o0.ActorRdfParseHtmlMicrodata=r,o0}var yB;function kPe(){return yB||(yB=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(UPe(),t)}(kO)),kO}var HO={},c0={},mB;function VPe(){if(mB)return c0;mB=1,Object.defineProperty(c0,"__esModule",{value:!0}),c0.ActorRdfParseHtmlRdfa=void 0;const t=m4(),e=a4;let r=class extends t.ActorRdfParseHtml{constructor(a){super(a)}async test(a){return!0}async run(a){const s=a.headers?a.headers.get("content-type"):null,o=(a.headers&&a.headers.get("content-language"))??void 0,u=s&&s.includes("xml")?"xhtml":"html",c=new e.RdfaParser({baseIRI:a.baseIRI,profile:u,language:o});c.on("error",a.error),c.on("data",a.emit);const l=c.onEnd;return c.onEnd=()=>{l.call(c),a.end()},{htmlParseListener:c}}};return c0.ActorRdfParseHtmlRdfa=r,c0}var gB;function HPe(){return gB||(gB=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(VPe(),t)}(HO)),HO}var QO={},l0={},zO={},d0={},_B;function QPe(){if(_B)return d0;_B=1,Object.defineProperty(d0,"__esModule",{value:!0}),d0.ActorRdfResolveHypermediaLinksQueue=void 0;const t=st;let e=class extends t.Actor{constructor(n){super(n)}};return d0.ActorRdfResolveHypermediaLinksQueue=e,d0}var GO={},bB;function zPe(){return bB||(bB=1,Object.defineProperty(GO,"__esModule",{value:!0})),GO}var f0={},vB;function GPe(){if(vB)return f0;vB=1,Object.defineProperty(f0,"__esModule",{value:!0}),f0.LinkQueueWrapper=void 0;let t=class{constructor(r){this.linkQueue=r}push(r,n){return this.linkQueue.push(r,n)}getSize(){return this.linkQueue.getSize()}isEmpty(){return this.linkQueue.isEmpty()}pop(){return this.linkQueue.pop()}peek(){return this.linkQueue.peek()}};return f0.LinkQueueWrapper=t,f0}var wB;function WPe(){return wB||(wB=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(QPe(),t),r(zPe(),t),r(GPe(),t)}(zO)),zO}var h0={},SB;function bee(){if(SB)return h0;SB=1,Object.defineProperty(h0,"__esModule",{value:!0}),h0.LinkQueueFifo=void 0;let t=class{constructor(){this.links=[]}push(r){return this.links.push(r),!0}getSize(){return this.links.length}isEmpty(){return this.links.length===0}pop(){return this.links.shift()}peek(){return this.links[0]}};return h0.LinkQueueFifo=t,h0}var TB;function KPe(){if(TB)return l0;TB=1,Object.defineProperty(l0,"__esModule",{value:!0}),l0.ActorRdfResolveHypermediaLinksQueueFifo=void 0;const t=WPe(),e=bee();let r=class extends t.ActorRdfResolveHypermediaLinksQueue{constructor(a){super(a)}async test(a){return!0}async run(a){return{linkQueue:new e.LinkQueueFifo}}};return l0.ActorRdfResolveHypermediaLinksQueueFifo=r,l0}var EB;function JPe(){return EB||(EB=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(KPe(),t),r(bee(),t)}(QO)),QO}var WO={},p0={},KO={},y0={},AB;function XPe(){if(AB)return y0;AB=1,Object.defineProperty(y0,"__esModule",{value:!0}),y0.ActorRdfResolveHypermediaLinks=void 0;const t=st;let e=class extends t.Actor{constructor(n){super(n)}};return y0.ActorRdfResolveHypermediaLinks=e,y0}var OB;function YPe(){return OB||(OB=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(XPe(),t)}(KO)),KO}var RB;function ZPe(){if(RB)return p0;RB=1,Object.defineProperty(p0,"__esModule",{value:!0}),p0.ActorRdfResolveHypermediaLinksNext=void 0;const t=YPe();let e=class extends t.ActorRdfResolveHypermediaLinks{constructor(n){super(n)}async test(n){if(!n.metadata.next||n.metadata.next.length===0)throw new Error(`Actor ${this.name} requires a 'next' metadata entry.`);return!0}async run(n){return{links:n.metadata.next.map(a=>({url:a}))}}};return p0.ActorRdfResolveHypermediaLinksNext=e,p0}var xB;function eNe(){return xB||(xB=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(ZPe(),t)}(WO)),WO}var JO={},m0={},XO={},g0={},IB;function tNe(){if(IB)return g0;IB=1,Object.defineProperty(g0,"__esModule",{value:!0}),g0.ActorRdfSerialize=void 0;const t=jf();let e=class extends t.ActorAbstractMediaTyped{constructor(n){super(n)}};return g0.ActorRdfSerialize=e,g0}var _0={},PB;function rNe(){if(PB)return _0;PB=1,Object.defineProperty(_0,"__esModule",{value:!0}),_0.ActorRdfSerializeFixedMediaTypes=void 0;const t=jf();let e=class extends t.ActorAbstractMediaTypedFixed{constructor(n){super(n)}async testHandleChecked(){return!0}};return _0.ActorRdfSerializeFixedMediaTypes=e,_0}var NB;function g4(){return NB||(NB=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(tNe(),t),r(rNe(),t)}(XO)),XO}var DB;function nNe(){if(DB)return m0;DB=1,Object.defineProperty(m0,"__esModule",{value:!0}),m0.ActorRdfSerializeN3=void 0;const t=g4(),e=Du;let r=class extends t.ActorRdfSerializeFixedMediaTypes{constructor(a){super(a)}async runHandle(a,s){const o=new e.StreamWriter({format:s});let u;return"pipe"in a.quadStream?(a.quadStream.on("error",c=>o.emit("error",c)),u=a.quadStream.pipe(o)):u=o.import(a.quadStream),{data:u,triples:s==="text/turtle"||s==="application/n-triples"||s==="text/n3"}}};return m0.ActorRdfSerializeN3=r,m0}var CB;function iNe(){return CB||(CB=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(nNe(),t)}(JO)),JO}var YO={},b0={},ZO={},v0={},w0={},LB;function aNe(){if(LB)return w0;LB=1,Object.defineProperty(w0,"__esModule",{value:!0}),w0.SeparatorType=void 0;let t=class{constructor(r){this.label=r}};return w0.SeparatorType=t,t.COMMA=new t(","),t.OBJECT_START=new t("{"),t.OBJECT_END=new t("}"),t.OBJECT_END_COMMA=new t("},"),t.ARRAY_START=new t("["),t.ARRAY_END=new t("]"),t.ARRAY_END_COMMA=new t("],"),t.GRAPH_FIELD_NONCOMPACT=new t('"@graph": ['),t.GRAPH_FIELD_COMPACT=new t('"@graph":['),t.CONTEXT_FIELD=new t('"@context":'),w0}var S0={},jB;function vee(){if(jB)return S0;jB=1,Object.defineProperty(S0,"__esModule",{value:!0}),S0.Util=void 0;const t=hn;class e{static termToValue(n,a,s={compactIds:!1,useNativeTypes:!1}){switch(n.termType){case"NamedNode":const o=a.compactIri(n.value,s.vocab);return s.compactIds?o:{"@id":o};case"DefaultGraph":return s.compactIds?n.value:{"@id":n.value};case"BlankNode":const u=`_:${n.value}`;return s.compactIds?u:{"@id":u};case"Literal":if(n.datatype.value===e.RDF_JSON){let d;try{d=JSON.parse(n.value)}catch(f){throw new t.ErrorCoded("Invalid JSON literal: "+f.message,t.ERROR_CODES.INVALID_JSON_LITERAL)}return{"@value":d,"@type":"@json"}}if(s.rdfDirection==="i18n-datatype"&&n.datatype.value.startsWith(e.I18N)){const[d,f]=n.datatype.value.substr(e.I18N.length,n.datatype.value.length).split("_");return Object.assign(Object.assign({"@value":n.value},d?{"@language":d}:{}),f?{"@direction":f}:{})}const c=n.datatype.value===e.XSD_STRING,l={"@value":!c&&s.useNativeTypes?e.stringToNativeType(n.value,n.datatype.value):n.value};return n.language?Object.assign(Object.assign({},l),{"@language":n.language}):!c&&typeof l["@value"]=="string"?Object.assign(Object.assign({},l),{"@type":n.datatype.value}):l}}static stringToNativeType(n,a){if(a.startsWith(e.XSD))switch(a.substr(e.XSD.length)){case"boolean":if(n==="true")return!0;if(n==="false")return!1;throw new Error(`Invalid xsd:boolean value '${n}'`);case"integer":case"number":case"int":case"byte":case"long":const o=parseInt(n,10);if(isNaN(o))throw new Error(`Invalid xsd:integer value '${n}'`);return o;case"float":case"double":const u=parseFloat(n);if(isNaN(u))throw new Error(`Invalid xsd:float value '${n}'`);return u}return n}}return S0.Util=e,e.XSD="http://www.w3.org/2001/XMLSchema#",e.XSD_STRING=e.XSD+"string",e.RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#",e.RDF_TYPE=e.RDF+"type",e.RDF_JSON=e.RDF+"JSON",e.I18N="https://www.w3.org/ns/i18n#",S0}var MB;function sNe(){if(MB)return v0;MB=1,Object.defineProperty(v0,"__esModule",{value:!0}),v0.JsonLdSerializer=void 0;const t=hn,e=aNe(),r=vee(),n=Pt;let a=class wee extends n.Transform{constructor(o={}){super({objectMode:!0}),this.indentation=0,this.options=o,this.options.baseIRI&&!this.options.context&&(this.options.context={"@base":this.options.baseIRI}),this.options.context?(this.originalContext=this.options.context,this.context=new t.ContextParser().parse(this.options.context,{baseIRI:this.options.baseIRI})):this.context=Promise.resolve(new t.JsonLdContextNormalized({}))}import(o){const u=new n.PassThrough({objectMode:!0});o.on("error",l=>c.emit("error",l)),o.on("data",l=>u.push(l)),o.on("end",()=>u.push(null));const c=u.pipe(new wee(this.options));return c}_transform(o,u,c){this.context.then(l=>{this.transformQuad(o,l),c()}).catch(c)}async list(o){const u=await this.context;return{"@list":o.map(c=>r.Util.termToValue(c,u,this.options))}}_flush(o){return this.opened||this.pushDocumentStart(),this.lastPredicate&&this.endPredicate(),this.lastSubject&&this.endSubject(),this.lastGraph&&this.lastGraph.termType!=="DefaultGraph"&&this.endGraph(),this.endDocument(),o(null,null)}transformQuad(o,u){this.opened||this.pushDocumentStart();const c=this.lastGraph&&this.lastGraph.termType!=="DefaultGraph"&&this.lastGraph.equals(o.subject);if(!c&&(!this.lastGraph||!o.graph.equals(this.lastGraph))){let l=o.graph.termType!=="DefaultGraph"&&this.lastSubject&&this.lastSubject.equals(o.graph);this.lastGraph&&(this.lastGraph.termType!=="DefaultGraph"?(this.endPredicate(),this.endSubject(),this.endGraph(!0),l=!1):l?(this.endPredicate(!0),this.lastSubject=null):(this.endPredicate(),this.endSubject(!0))),o.graph.termType!=="DefaultGraph"&&(l||this.pushId(o.graph,!0,u),this.pushSeparator(this.options.space?e.SeparatorType.GRAPH_FIELD_NONCOMPACT:e.SeparatorType.GRAPH_FIELD_COMPACT),this.indentation++),this.lastGraph=o.graph}(!this.lastSubject||!o.subject.equals(this.lastSubject))&&(c?(this.endPredicate(),this.endSubject(),this.indentation--,this.pushSeparator(e.SeparatorType.ARRAY_END_COMMA),this.lastGraph=o.graph):(this.lastSubject&&(this.endPredicate(),this.endSubject(!0)),this.pushId(o.subject,!0,u)),this.lastSubject=o.subject),(!this.lastPredicate||!o.predicate.equals(this.lastPredicate))&&(this.lastPredicate&&this.endPredicate(!0),this.pushPredicate(o.predicate,u)),this.pushObject(o.object,u)}pushDocumentStart(){this.opened=!0,this.originalContext&&!this.options.excludeContext?(this.pushSeparator(e.SeparatorType.OBJECT_START),this.indentation++,this.pushSeparator(e.SeparatorType.CONTEXT_FIELD),this.pushIndented(JSON.stringify(this.originalContext,null,this.options.space)+","),this.pushSeparator(this.options.space?e.SeparatorType.GRAPH_FIELD_NONCOMPACT:e.SeparatorType.GRAPH_FIELD_COMPACT),this.indentation++):(this.pushSeparator(e.SeparatorType.ARRAY_START),this.indentation++)}pushId(o,u,c){if(o.termType==="Quad")this.pushNestedQuad(o,!0,c);else{const l=o.termType==="BlankNode"?"_:"+o.value:c.compactIri(o.value,!1);u?this.pushSeparator(e.SeparatorType.OBJECT_START):(this.push(e.SeparatorType.OBJECT_START.label),this.options.space&&this.push(` `)),this.indentation++,this.pushIndented(this.options.space?`"@id": "${l}",`:`"@id":"${l}",`)}}pushPredicate(o,u){let c=o.value;!this.options.useRdfType&&c===r.Util.RDF_TYPE&&(c="@type",this.objectOptions=Object.assign(Object.assign({},this.options),{compactIds:!0,vocab:!0}));const l=u.compactIri(c,!0);this.pushIndented(this.options.space?`"${l}": [`:`"${l}":[`),this.indentation++,this.lastPredicate=o}pushObject(o,u){if(this.hadObjectForPredicate?this.pushSeparator(e.SeparatorType.COMMA):this.hadObjectForPredicate=!0,o.termType==="Quad"){const l=this.lastSubject,d=this.lastPredicate;this.hadObjectForPredicate=!1,this.pushNestedQuad(o,!1,u),this.endSubject(!1),this.hadObjectForPredicate=!0,this.lastPredicate=d,this.lastSubject=l;return}let c;try{o["@list"]?c=o:c=r.Util.termToValue(o,u,this.objectOptions||this.options)}catch(l){return this.emit("error",l)}this.pushIndented(JSON.stringify(c,null,this.options.space))}pushNestedQuad(o,u,c){this.pushSeparator(e.SeparatorType.OBJECT_START),this.indentation++,this.pushIndented(this.options.space?'"@id": ':'"@id":',!1),o.graph.termType!=="DefaultGraph"&&this.emit("error",new Error(`Found a nested quad with the non-default graph: ${o.graph.value}`)),this.pushId(o.subject,!1,c),this.pushPredicate(o.predicate,c),this.pushObject(o.object,c),this.endPredicate(!1),this.endSubject(u)}endDocument(){this.opened=!1,this.originalContext&&!this.options.excludeContext?(this.indentation--,this.pushSeparator(e.SeparatorType.ARRAY_END),this.indentation--,this.pushSeparator(e.SeparatorType.OBJECT_END)):(this.indentation--,this.pushSeparator(e.SeparatorType.ARRAY_END))}endPredicate(o){this.indentation--,this.pushSeparator(o?e.SeparatorType.ARRAY_END_COMMA:e.SeparatorType.ARRAY_END),this.hadObjectForPredicate=!1,this.objectOptions=null,this.lastPredicate=null}endSubject(o){this.indentation--,this.pushSeparator(o?e.SeparatorType.OBJECT_END_COMMA:e.SeparatorType.OBJECT_END),this.lastSubject=null}endGraph(o){this.indentation--,this.pushSeparator(e.SeparatorType.ARRAY_END),this.indentation--,this.pushSeparator(o?e.SeparatorType.OBJECT_END_COMMA:e.SeparatorType.OBJECT_END),this.lastGraph=null}pushSeparator(o){this.pushIndented(o.label)}pushIndented(o,u=!0){const c=this.getIndentPrefix(),l=o.split(` `).map(d=>c+d).join(` `);this.push(l),this.options.space&&u&&this.push(` -`)}getIndentPrefix(){return this.options.space?this.options.space.repeat(this.indentation):""}};return v0.JsonLdSerializer=a,v0}var FB;function uNe(){return FB||(FB=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s),Object.defineProperty(n,o,{enumerable:!0,get:function(){return a[s]}})}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(oNe(),t),r(vee(),t)}(eR)),eR}var BB;function cNe(){if(BB)return b0;BB=1,Object.defineProperty(b0,"__esModule",{value:!0}),b0.ActorRdfSerializeJsonLd=void 0;const t=g4(),e=uNe();let r=class extends t.ActorRdfSerializeFixedMediaTypes{constructor(a){super(a)}async runHandle(a,s,o){const u=new e.JsonLdSerializer({space:" ".repeat(this.jsonStringifyIndentSpaces)});let c;return"pipe"in a.quadStream?(a.quadStream.on("error",l=>u.emit("error",l)),c=a.quadStream.pipe(u)):c=u.import(a.quadStream),{data:c}}};return b0.ActorRdfSerializeJsonLd=r,b0}var qB;function lNe(){return qB||(qB=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(cNe(),t)}(ZO)),ZO}var tR={},T0={},Zv={},$B;function dNe(){if($B)return Zv;$B=1,Object.defineProperty(Zv,"__esModule",{value:!0});function t(r,n){return new Promise((a,s)=>{r.on("end",()=>a(n)),r.on("error",s)})}function e(r){const n=[];return t(r.on("data",a=>n.push(a)),n)}return Zv.default=e,Zv}var E0={},ew={},rR={},A0={},UB;function fNe(){if(UB)return A0;UB=1,Object.defineProperty(A0,"__esModule",{value:!0}),A0.fragment=void 0;function t(n){let a=n;(a.endsWith("/")||a.endsWith("#"))&&(a=a.slice(0,a.length-1));const s=[];a.lastIndexOf("/")>0&&s.push(a.lastIndexOf("/")),a.lastIndexOf("#")>0&&s.push(a.lastIndexOf("#"));const o=Math.max(...s);return a.slice(o+1)}function e(n){var a;const s=(a=n.split(/[^a-z0-9]+/ig).filter(o=>o!=="").map(o=>o[0].toUpperCase()+o.slice(1)).join("").match(/[a-z][a-z0-9]+/ig))===null||a===void 0?void 0:a[0];return typeof s>"u"?void 0:s[0].toLowerCase()+s.slice(1)}function r(n){let a=t(n);return a=a?e(a):void 0,a||"v"}return A0.fragment=r,A0}var nR={},O0={},tc={},tw={exports:{}},kB;function hNe(){return kB||(kB=1,function(t,e){var r=typeof self<"u"?self:I,n=function(){function s(){this.fetch=!1,this.DOMException=r.DOMException}return s.prototype=r,new s}();(function(s){(function(o){var u={searchParams:"URLSearchParams"in s,iterable:"Symbol"in s&&"iterator"in Symbol,blob:"FileReader"in s&&"Blob"in s&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in s,arrayBuffer:"ArrayBuffer"in s};function c($){return $&&DataView.prototype.isPrototypeOf($)}if(u.arrayBuffer)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function($){return $&&l.indexOf(Object.prototype.toString.call($))>-1};function f($){if(typeof $!="string"&&($=String($)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test($))throw new TypeError("Invalid character in header field name");return $.toLowerCase()}function h($){return typeof $!="string"&&($=String($)),$}function p($){var q={next:function(){var H=$.shift();return{done:H===void 0,value:H}}};return u.iterable&&(q[Symbol.iterator]=function(){return q}),q}function m($){this.map={},$ instanceof m?$.forEach(function(q,H){this.append(H,q)},this):Array.isArray($)?$.forEach(function(q){this.append(q[0],q[1])},this):$&&Object.getOwnPropertyNames($).forEach(function(q){this.append(q,$[q])},this)}m.prototype.append=function($,q){$=f($),q=h(q);var H=this.map[$];this.map[$]=H?H+", "+q:q},m.prototype.delete=function($){delete this.map[f($)]},m.prototype.get=function($){return $=f($),this.has($)?this.map[$]:null},m.prototype.has=function($){return this.map.hasOwnProperty(f($))},m.prototype.set=function($,q){this.map[f($)]=h(q)},m.prototype.forEach=function($,q){for(var H in this.map)this.map.hasOwnProperty(H)&&$.call(q,this.map[H],H,this)},m.prototype.keys=function(){var $=[];return this.forEach(function(q,H){$.push(H)}),p($)},m.prototype.values=function(){var $=[];return this.forEach(function(q){$.push(q)}),p($)},m.prototype.entries=function(){var $=[];return this.forEach(function(q,H){$.push([H,q])}),p($)},u.iterable&&(m.prototype[Symbol.iterator]=m.prototype.entries);function y($){if($.bodyUsed)return Promise.reject(new TypeError("Already read"));$.bodyUsed=!0}function g($){return new Promise(function(q,H){$.onload=function(){q($.result)},$.onerror=function(){H($.error)}})}function b($){var q=new FileReader,H=g(q);return q.readAsArrayBuffer($),H}function v($){var q=new FileReader,H=g(q);return q.readAsText($),H}function _($){for(var q=new Uint8Array($),H=new Array(q.length),X=0;X-1?q:$}function F($,q){q=q||{};var H=q.body;if($ instanceof F){if($.bodyUsed)throw new TypeError("Already read");this.url=$.url,this.credentials=$.credentials,q.headers||(this.headers=new m($.headers)),this.method=$.method,this.mode=$.mode,this.signal=$.signal,!H&&$._bodyInit!=null&&(H=$._bodyInit,$.bodyUsed=!0)}else this.url=String($);if(this.credentials=q.credentials||this.credentials||"same-origin",(q.headers||!this.headers)&&(this.headers=new m(q.headers)),this.method=L(q.method||this.method||"GET"),this.mode=q.mode||this.mode||null,this.signal=q.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&H)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(H)}F.prototype.clone=function(){return new F(this,{body:this._bodyInit})};function x($){var q=new FormData;return $.trim().split("&").forEach(function(H){if(H){var X=H.split("="),Y=X.shift().replace(/\+/g," "),he=X.join("=").replace(/\+/g," ");q.append(decodeURIComponent(Y),decodeURIComponent(he))}}),q}function P($){var q=new m,H=$.replace(/\r?\n[\t ]+/g," ");return H.split(/\r?\n/).forEach(function(X){var Y=X.split(":"),he=Y.shift().trim();if(he){var Te=Y.join(":").trim();q.append(he,Te)}}),q}E.call(F.prototype);function j($,q){q||(q={}),this.type="default",this.status=q.status===void 0?200:q.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in q?q.statusText:"OK",this.headers=new m(q.headers),this.url=q.url||"",this._initBody($)}E.call(j.prototype),j.prototype.clone=function(){return new j(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},j.error=function(){var $=new j(null,{status:0,statusText:""});return $.type="error",$};var N=[301,302,303,307,308];j.redirect=function($,q){if(N.indexOf(q)===-1)throw new RangeError("Invalid status code");return new j(null,{status:q,headers:{location:$}})},o.DOMException=s.DOMException;try{new o.DOMException}catch{o.DOMException=function(q,H){this.message=q,this.name=H;var X=Error(q);this.stack=X.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function V($,q){return new Promise(function(H,X){var Y=new F($,q);if(Y.signal&&Y.signal.aborted)return X(new o.DOMException("Aborted","AbortError"));var he=new XMLHttpRequest;function Te(){he.abort()}he.onload=function(){var Ne={status:he.status,statusText:he.statusText,headers:P(he.getAllResponseHeaders()||"")};Ne.url="responseURL"in he?he.responseURL:Ne.headers.get("X-Request-URL");var $e="response"in he?he.response:he.responseText;H(new j($e,Ne))},he.onerror=function(){X(new TypeError("Network request failed"))},he.ontimeout=function(){X(new TypeError("Network request failed"))},he.onabort=function(){X(new o.DOMException("Aborted","AbortError"))},he.open(Y.method,Y.url,!0),Y.credentials==="include"?he.withCredentials=!0:Y.credentials==="omit"&&(he.withCredentials=!1),"responseType"in he&&u.blob&&(he.responseType="blob"),Y.headers.forEach(function(Ne,$e){he.setRequestHeader($e,Ne)}),Y.signal&&(Y.signal.addEventListener("abort",Te),he.onreadystatechange=function(){he.readyState===4&&Y.signal.removeEventListener("abort",Te)}),he.send(typeof Y._bodyInit>"u"?null:Y._bodyInit)})}return V.polyfill=!0,s.fetch||(s.fetch=V,s.Headers=m,s.Request=F,s.Response=j),o.Headers=m,o.Request=F,o.Response=j,o.fetch=V,Object.defineProperty(o,"__esModule",{value:!0}),o})({})})(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var a=n;e=a.fetch,e.default=a.fetch,e.fetch=a.fetch,e.Headers=a.Headers,e.Request=a.Request,e.Response=a.Response,t.exports=e}(tw,tw.exports)),tw.exports}var VB;function _4(){if(VB)return tc;VB=1;var t=I&&I.__awaiter||function(a,s,o,u){function c(l){return l instanceof o?l:new o(function(d){d(l)})}return new(o||(o=Promise))(function(l,d){function f(m){try{p(u.next(m))}catch(y){d(y)}}function h(m){try{p(u.throw(m))}catch(y){d(y)}}function p(m){m.done?l(m.value):c(m.value).then(f,h)}p((u=u.apply(a,s||[])).next())})};Object.defineProperty(tc,"__esModule",{value:!0}),tc.fetchContext=tc.fetchJson=void 0;const e=hNe();function r(a,s){var o;return t(this,void 0,void 0,function*(){return(yield((o=s==null?void 0:s.fetch)!==null&&o!==void 0?o:e.fetch)(a)).json()})}tc.fetchJson=r;function n(a,s){return t(this,void 0,void 0,function*(){return(yield r(a,s))["@context"]})}return tc.fetchContext=n,tc}var HB;function pNe(){if(HB)return O0;HB=1;var t=I&&I.__awaiter||function(n,a,s,o){function u(c){return c instanceof s?c:new s(function(l){l(c)})}return new(s||(s=Promise))(function(c,l){function d(p){try{h(o.next(p))}catch(m){l(m)}}function f(p){try{h(o.throw(p))}catch(m){l(m)}}function h(p){p.done?c(p.value):u(p.value).then(d,f)}h((o=o.apply(n,a||[])).next())})};Object.defineProperty(O0,"__esModule",{value:!0}),O0.lookupUri=void 0;const e=_4();function r(n,a){return t(this,void 0,void 0,function*(){const s=(yield(0,e.fetchContext)(`https://prefix.cc/${n}.file.jsonld`,a))[n];if(typeof s!="string")throw new Error(`Expected uri to be a string, received: ${s} of type ${typeof s}`);return s})}return O0.lookupUri=r,O0}var R0={},QB;function yNe(){if(QB)return R0;QB=1;var t=I&&I.__awaiter||function(n,a,s,o){function u(c){return c instanceof s?c:new s(function(l){l(c)})}return new(s||(s=Promise))(function(c,l){function d(p){try{h(o.next(p))}catch(m){l(m)}}function f(p){try{h(o.throw(p))}catch(m){l(m)}}function h(p){p.done?c(p.value):u(p.value).then(d,f)}h((o=o.apply(n,a||[])).next())})};Object.defineProperty(R0,"__esModule",{value:!0}),R0.lookupPrefix=void 0;const e=_4();function r(n,a){return t(this,void 0,void 0,function*(){const s=new URL("https://prefix.cc/reverse");s.searchParams.append("uri",n),s.searchParams.append("format","jsonld");const o=Object.keys(yield(0,e.fetchContext)(s,a));if(o.length===0)throw new Error("No prefixes returned");return o[0]})}return R0.lookupPrefix=r,R0}var x0={},zB;function mNe(){if(zB)return x0;zB=1;var t=I&&I.__awaiter||function(n,a,s,o){function u(c){return c instanceof s?c:new s(function(l){l(c)})}return new(s||(s=Promise))(function(c,l){function d(p){try{h(o.next(p))}catch(m){l(m)}}function f(p){try{h(o.throw(p))}catch(m){l(m)}}function h(p){p.done?c(p.value):u(p.value).then(d,f)}h((o=o.apply(n,a||[])).next())})};Object.defineProperty(x0,"__esModule",{value:!0}),x0.lookupAllPrefixes=void 0;const e=_4();function r(n){return t(this,void 0,void 0,function*(){return(0,e.fetchContext)("https://prefix.cc/context",n)})}return x0.lookupAllPrefixes=r,x0}var GB;function WB(){return GB||(GB=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(pNe(),t),r(yNe(),t),r(mNe(),t)}(nR)),nR}var KB;function gNe(){return KB||(KB=1,function(t){var e=I&&I.__awaiter||function(u,c,l,d){function f(h){return h instanceof l?h:new l(function(p){p(h)})}return new(l||(l=Promise))(function(h,p){function m(b){try{g(d.next(b))}catch(v){p(v)}}function y(b){try{g(d.throw(b))}catch(v){p(v)}}function g(b){b.done?h(b.value):f(b.value).then(m,y)}g((d=d.apply(u,c||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.lookupAllPrefixes=t.prefixToUri=t.uriToPrefix=void 0;const r=fNe(),n=WB();function a(u,c){return e(this,void 0,void 0,function*(){let l;try{l=yield(0,n.lookupPrefix)(u,c)}catch{c!=null&&c.mintOnUnknown&&(l=(0,r.fragment)(u).slice(0,4))}if(typeof l<"u"&&typeof(c==null?void 0:c.existingPrefixes)=="object"&&l in c.existingPrefixes){let d=0;for(;`${l}${d}`in c.existingPrefixes;)d+=1;l=`${l}${d}`}return l})}t.uriToPrefix=a;function s(u,c){return e(this,void 0,void 0,function*(){try{return yield(0,n.lookupUri)(u,c)}catch{return}})}t.prefixToUri=s;var o=WB();Object.defineProperty(t,"lookupAllPrefixes",{enumerable:!0,get:function(){return o.lookupAllPrefixes}})}(rR)),rR}var I0={},JB;function _Ne(){if(JB)return I0;JB=1,Object.defineProperty(I0,"__esModule",{value:!0}),I0.getShaclName=void 0;function t(e){if(e.termType!=="NamedNode"||!e.value.startsWith("http://www.w3.org/ns/shacl#"))throw new Error(`Term ${e.value} is not part of the SHACL namespace`);return e.value.slice(27)}return I0.getShaclName=t,I0}var rw={},XB;function bNe(){return XB||(XB=1,Object.defineProperty(rw,"__esModule",{value:!0}),rw.default={deactivated:!0,severity:!0,message:!0,class:!0,datatype:!0,nodeKind:!0,minExclusive:!0,minInclusive:!0,maxExclusive:!0,maxInclusive:!0,minLength:!0,maxLength:!0,pattern:!0,flags:!0,languageIn:!0,uniqueLang:!0,equals:!0,disjoint:!0,lessThan:!0,lessThanOrEquals:!0,qualifiedValueShape:!0,qualifiedMinCount:!0,qualifiedMaxCount:!0,qualifiedValueShapesDisjoint:!0,closed:!0,ignoredProperties:!0,hasValue:!0,in:!0,node:!0}),rw}var nw={},YB;function vNe(){return YB||(YB=1,Object.defineProperty(nw,"__esModule",{value:!0}),nw.default={owl:"http://www.w3.org/2002/07/owl#",rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",sh:"http://www.w3.org/ns/shacl#",xsd:"http://www.w3.org/2001/XMLSchema#"}),nw}var iw={},ZB;function wNe(){return ZB||(ZB=1,Object.defineProperty(iw,"__esModule",{value:!0}),iw.default={targetNode:!0,targetObjectsOf:!0,targetSubjectsOf:!0,deactivated:!0,severity:!0,message:!0,class:!0,datatype:!0,nodeKind:!0,minExclusive:!0,minInclusive:!0,maxExclusive:!0,maxInclusive:!0,minLength:!0,maxLength:!0,pattern:!0,flags:!0,languageIn:!0,equals:!0,disjoint:!0,closed:!0,ignoredProperties:!0,hasValue:!0,in:!0}),iw}var eq;function SNe(){if(eq)return ew;eq=1;var t=I&&I.__awaiter||function(p,m,y,g){function b(v){return v instanceof y?v:new y(function(_){_(v)})}return new(y||(y=Promise))(function(v,_){function w(L){try{O(g.next(L))}catch(F){_(F)}}function E(L){try{O(g.throw(L))}catch(F){_(F)}}function O(L){L.done?v(L.value):b(L.value).then(w,E)}O((g=g.apply(p,m||[])).next())})},e=I&&I.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(ew,"__esModule",{value:!0});const r=Du,n=gNe(),a=x1(),s=_Ne(),o=e(bNe()),u=e(vNe()),c=e(wNe());function l(p){var m;return(m=/^[^]*[#/]/.exec(p))===null||m===void 0?void 0:m[0]}const d={"http://www.w3.org/1999/02/22-rdf-syntax-ns#":"rdf","http://www.w3.org/2000/01/rdf-schema#":"rdfs","http://www.w3.org/ns/shacl#":"sh","http://www.w3.org/2001/XMLSchema#":"xsd"},f={rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",sh:"http://www.w3.org/ns/shacl#",xsd:"http://www.w3.org/2001/XMLSchema#"};class h{constructor(m,y,g={},b=void 0,v=!0,_=!1,w,E=!1){this.store=m,this.base=b,this.errorOnExtraQuads=v,this.mintUnspecifiedPrefixes=_,this.fetch=w,this.extendedSyntax=E,this.prefixes={},this.prefixRev={};for(const O of Object.keys(g)){const L=g[O],F=typeof L=="string"?L:L.value;!(F in d)&&!(O in f)&&(this.prefixRev[F]=O,this.prefixes[O]=F)}this.writer=y}write(){return t(this,void 0,void 0,function*(){const m=this.store.getQuads(null,"http://www.w3.org/1999/02/22-rdf-syntax-ns#type","http://www.w3.org/2002/07/owl#Ontology",null);if(m.length===1&&m[0].subject.termType==="NamedNode"){const g=m[0].subject;this.store.removeQuads(m),g.equals(new r.NamedNode("urn:x-base:default"))||this.writer.add(`BASE ${(0,a.termToString)(g)}`),yield this.writeImports(g)}else throw new Error("Base expected");if(this.mintUnspecifiedPrefixes){const g=new Set;for(const v of[...this.store.getSubjects(null,null,null),...this.store.getPredicates(null,null,null),...this.store.getObjects(null,null,null)])if(v.termType==="NamedNode"){const _=l(v.value);_&&!(_ in this.prefixRev)&&!(_ in d)&&g.add(_)}const b=Object.assign(Object.assign({},this.prefixes),f);yield Promise.all([...g].map(v=>(0,n.uriToPrefix)(v,{fetch:this.fetch,mintOnUnknown:!0,existingPrefixes:b}).then(_=>{this.prefixes[_]=v,b[_]=v,this.prefixRev[v]=_})))}const y=new Set([...this.store.getSubjects(null,null,null),...this.store.getPredicates(null,null,null),...this.store.getObjects(null,null,null)].filter(g=>g.termType==="NamedNode").map(g=>l(g.value)).filter(g=>typeof g=="string"));for(const g in this.prefixRev)y.has(g)||(delete this.prefixes[this.prefixRev[g]],delete this.prefixRev[g]);if(yield this.writePrefixes(),this.prefixes=Object.assign(Object.assign({},this.prefixes),f),this.prefixRev=Object.assign(Object.assign({},this.prefixRev),d),this.writer.newLine(),yield this.writeShapes(),this.extendedSyntax){const g=this.store.getSubjects(null,null,null);g.length>0&&this.writer.newLine(1);for(const b of g)this.writer.add(yield this.termToString(b,!0,!0)),this.writer.add(" "),this.writer.indent(),yield this.writeTurtlePredicates(b),this.writer.deindent();g.length>0&&(this.writer.add(" ."),this.writer.newLine())}if(this.errorOnExtraQuads&&this.store.size>0)throw new Error(`Dataset contains quads that cannot be written in SHACLC [ -${new r.Writer({prefixes:this.prefixes}).quadsToString(this.store.getQuads(null,null,null,null))}]`);this.writer.end()})}writeImports(m){return t(this,void 0,void 0,function*(){const y=this.store.getObjectsOnce(m,new r.NamedNode("http://www.w3.org/2002/07/owl#imports"),null);if(y.length>0)for(const g of y)this.writer.add(`IMPORTS <${g.value}>`,!0)})}writePrefixes(){return t(this,void 0,void 0,function*(){const m=Object.keys(this.prefixes).filter(y=>!(y in u.default)).sort();if(m.length>0)for(const y of m)this.writer.add(`PREFIX ${y}: <${this.prefixes[y]}>`,!0)})}termToString(m,y=!1,g=!1){return t(this,void 0,void 0,function*(){try{if(y)throw new Error("Shacl name disabled");return(0,s.getShaclName)(m)}catch{}if(m.termType==="NamedNode"){const b=l(m.value);return b&&b in this.prefixRev&&b in this.prefixRev?`${this.prefixRev[b]}:${m.value.slice(b.length)}`:(0,a.termToString)(m)}if(m.termType==="Literal")return m.datatypeString==="http://www.w3.org/2001/XMLSchema#integer"||m.datatypeString==="http://www.w3.org/2001/XMLSchema#boolean"?m.value:(0,a.termToString)(m);throw m.termType==="BlankNode"&&g&&(0,a.termToString)(m),new Error(`Invalid term type for extra statement ${m.value} (${m.termType})`)})}writeShapes(){return t(this,void 0,void 0,function*(){for(const m of this.store.getSubjectsOnce(new r.NamedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"),new r.NamedNode("http://www.w3.org/ns/shacl#NodeShape"),null)){this.store.getQuadsOnce(m,new r.NamedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"),new r.NamedNode("http://www.w3.org/2000/01/rdf-schema#Class"),null).length>0?this.writer.add("shapeClass "):this.writer.add("shape "),this.writer.add(yield this.termToString(m)),this.writer.add(" ");const y=this.store.getObjectsOnce(m,new r.NamedNode("http://www.w3.org/ns/shacl#targetClass"),null);if(y.length>0){this.writer.add("-> ");for(const b of y)b.termType==="NamedNode"?this.writer.add(yield this.termToString(b)):(this.writer.add("!"),this.writer.add(yield this.termToString(this.singleObject(b,new r.NamedNode("http://www.w3.org/ns/shacl#not"),!0)))),this.writer.add(" ")}const g=this.store.getPredicates(m,null,null).filter(b=>[new r.NamedNode("http://www.w3.org/ns/shacl#targetClass"),new r.NamedNode("http://www.w3.org/ns/shacl#property"),new r.NamedNode("http://www.w3.org/ns/shacl#or"),...Object.keys(c.default).map(v=>new r.NamedNode("http://www.w3.org/ns/shacl#"+v))].every(v=>!b.equals(v)));g.length>0&&(this.writer.add(";"),this.writer.indent(),this.writer.newLine(1)),this.extendedSyntax&&(yield this.writeGivenTurtlePredicates(m,g)),g.length>0&&(this.writer.add(" "),this.writer.deindent()),yield this.writeShapeBody(m,!1)}})}getSingleProperty(m,y){let g=[m];try{let b=(0,s.getShaclName)(m.predicate),v="pred";if(b==="not"){const _=this.store.getQuadsOnce(m.object,null,null,null);if(g=g.concat(_),_.length!==1)throw new Error("Can only handle having one predicate of 'not'");[m]=_,b=(0,s.getShaclName)(m.predicate),v="not"}if(!(b in y))throw new Error(`${b} is not allowed`);return{name:b,type:v,object:m.object}}catch{this.store.addQuads(g)}}singleLayerPropertiesList(m,y){const g=[];for(const b of this.store.getQuadsOnce(m,null,null,null)){const v=this.getSingleProperty(b,y);v&&g.push(v)}return g}expectOneProperty(m,y){const g=this.store.getQuadsOnce(m,null,null,null);if(g.length===1){const b=this.getSingleProperty(g[0],y);if(b)return b}this.store.addQuads(g)}orProperties(m,y){const g=[];for(const b of this.store.getQuadsOnce(m,new r.NamedNode("http://www.w3.org/ns/shacl#or"),null,null)){const v=[];for(const _ of this.getList(b.object)){const w=this.expectOneProperty(_,y);if(!w)throw this.store.addQuad(b),new Error("Each entry of the 'or' statement must declare exactly one property");v.push(w)}g.push(v)}return g}getList(m){let y=m;const g=[];for(;!y.equals(new r.NamedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"));)g.push(this.singleObject(y,new r.NamedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#first"),!0)),y=this.singleObject(y,new r.NamedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#rest"),!0);return g}writeIriLiteralOrArray(m){return t(this,void 0,void 0,function*(){if(m.termType==="BlankNode"){this.writer.add("[");let y=!0;for(const g of this.getList(m))y?y=!1:this.writer.add(" "),this.writer.add(yield this.termToString(g));this.writer.add("]")}else this.writer.add(yield this.termToString(m))})}singleObject(m,y,g){var b;return(b=this.singleQuad(m,y,g))===null||b===void 0?void 0:b.object}singleQuad(m,y,g=!1){const b=this.store.getQuadsOnce(m,y,null,null);if(g&&b.length!==1)throw this.store.addQuads(b),new Error(`The subject and predicate ${m==null?void 0:m.value} ${y==null?void 0:y.value} must have exactly one object. Instead has ${b.length}`);if(b.length>1)throw this.store.addQuads(b),new Error(`The subject and predicate ${m==null?void 0:m.value} ${y==null?void 0:y.value} can have at most one object. Instead has ${b.length}`);return b.length===1?b[0]:void 0}writeAssigment({name:m,type:y,object:g}){return t(this,void 0,void 0,function*(){y==="not"&&this.writer.add("!"),this.writer.add(m),this.writer.add("="),yield this.writeIriLiteralOrArray(g)})}writeAtom({name:m,type:y,object:g}){return t(this,void 0,void 0,function*(){switch(y==="not"&&this.writer.add("!"),m){case"node":{if(g.termType==="NamedNode")this.writer.add(`@${yield this.termToString(g)}`);else if(g.termType==="BlankNode")yield this.writeShapeBody(g);else throw new Error("Invalid nested shape, must be blank node or IRI");return}case"nodeKind":{this.writer.add((0,s.getShaclName)(g));return}case"class":{this.writer.add(yield this.termToString(g));return}case"datatype":{this.writer.add(yield this.termToString(g));return}default:this.writer.add(m),this.writer.add("="),yield this.writeIriLiteralOrArray(g)}})}writeAssigments(m,y=" ",g=!0,b){return t(this,void 0,void 0,function*(){for(const v of m)g?g=!1:this.writer.add(y),b?yield this.writeAtom(v):yield this.writeAssigment(v)})}writeParams(m,y=!0,g,b=!1,v=!1){return t(this,void 0,void 0,function*(){const _=this.orProperties(m,g),w=this.singleLayerPropertiesList(m,g);v&&(_.length>0||w.length>0)&&this.writer.newLine(1);for(const E of _)y?y=!1:this.writer.add(" "),yield this.writeAssigments(E,"|",!0,b);yield this.writeAssigments(w," ",y,b),v&&(_.length>0||w.length>0)&&this.writer.add(" .")})}writeShapeBody(m,y=!0){return t(this,void 0,void 0,function*(){this.writer.add("{").indent();const g=this.store.getObjectsOnce(m,new r.NamedNode("http://www.w3.org/ns/shacl#property"),null);yield this.writeParams(m,!0,c.default,!1,!0);for(const b of g)this.writer.newLine(1),yield this.writeProperty(b);this.writer.deindent().newLine(1),y?this.writer.add("} ."):this.writer.add("}").newLine(1)})}writeProperty(m){return t(this,void 0,void 0,function*(){yield this.writePath(this.singleObject(m,new r.NamedNode("http://www.w3.org/ns/shacl#path"),!0));const y=this.singleObject(m,new r.NamedNode("http://www.w3.org/ns/shacl#minCount")),g=this.singleObject(m,new r.NamedNode("http://www.w3.org/ns/shacl#maxCount")),b=this.singleObject(m,new r.NamedNode("http://www.w3.org/ns/shacl#nodeKind")),v=this.singleObject(m,new r.NamedNode("http://www.w3.org/ns/shacl#class")),_=this.singleObject(m,new r.NamedNode("http://www.w3.org/ns/shacl#datatype")),w=this.store.getObjectsOnce(m,new r.NamedNode("http://www.w3.org/ns/shacl#node"),null);if(b&&(this.writer.add(" "),this.writer.add((0,s.getShaclName)(b))),v&&(this.writer.add(" "),this.writer.add(yield this.termToString(v))),_&&(this.writer.add(" "),this.writer.add(yield this.termToString(_))),y!==void 0||g!==void 0){if(this.writer.add(" ["),y){if(y.termType!=="Literal"||y.datatypeString!=="http://www.w3.org/2001/XMLSchema#integer")throw new Error("Invalid min value, must me an integer literal");this.writer.add(y.value)}else this.writer.add("0");if(this.writer.add(".."),g){if(g.termType!=="Literal"||g.datatypeString!=="http://www.w3.org/2001/XMLSchema#integer")throw new Error("Invalid max value, must me an integer literal");this.store.removeMatches(m,new r.NamedNode("http://www.w3.org/ns/shacl#maxCount"),void 0,void 0),this.writer.add(g.value)}else this.writer.add("*");this.writer.add("]")}yield this.writeParams(m,!1,o.default,!0);const E=[];for(const O of w)if(O.termType==="NamedNode")this.writer.add(" "),this.writer.add(`@${yield this.termToString(O)}`);else if(O.termType==="BlankNode")E.push(O);else throw new Error("Invalid nested shape, must be blank node or IRI");for(const O of E)this.writer.add(" "),yield this.writeShapeBody(O);this.extendedSyntax&&this.store.getQuads(m,null,null,null).length>0&&(this.writer.add(" %"),this.writer.indent(),this.writer.newLine(1),yield this.writeTurtlePredicates(m),this.writer.deindent(),this.writer.newLine(1),this.writer.add("%")),E.length===0&&this.writer.add(" .")})}writeTurtlePredicates(m){return t(this,void 0,void 0,function*(){return this.writeGivenTurtlePredicates(m,this.store.getPredicates(m,null,null))})}writeGivenTurtlePredicates(m,y){return t(this,void 0,void 0,function*(){let g=!1;if(y.some(b=>b.equals(r.DataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type")))){const b=this.store.getObjectsOnce(m,r.DataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"),null);b.length>0&&(g=!0,this.writer.add("a "),yield this.writeTurtleObjects(b))}for(const b of y)b.equals(r.DataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"))||(g?(this.writer.add(" ;"),this.writer.newLine(1)):g=!0,this.writer.add(yield this.termToString(b,!0)),this.writer.add(" "),yield this.writeTurtleObjects(this.store.getObjectsOnce(m,b,null)))})}writeTurtleObjects(m){return t(this,void 0,void 0,function*(){const y=[],g=[];for(const v of m)v.termType==="BlankNode"&&[...this.store.match(null,null,v),...this.store.match(null,v,null)].length===0?y.push(v):g.push(v);this.writer.add((yield Promise.all(g.map(v=>this.termToString(v,!0,!0)))).join(", "));let b=g.length>0;if(y.length>0)for(const v of y)b?this.writer.add(", "):b=!0,(yield this.writeList(v))||(this.writer.add("["),this.writer.indent(),this.writer.newLine(1),yield this.writeTurtlePredicates(v),this.writer.deindent(),this.writer.newLine(1),this.writer.add("]"))})}writeList(m){return t(this,void 0,void 0,function*(){let y=m;const g=[],b=[];for(;!y.equals(r.DataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"));){const _=this.store.getQuadsOnce(y,r.DataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#first"),null,null),w=this.store.getQuadsOnce(y,r.DataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#rest"),null,null);if(b.push(..._,...w),_.length!==1||w.length!==1||this.store.getQuads(y,null,null,null).length!==0)return this.store.addQuads(b),!1;g.push(_[0].object),y=w[0].object}let v=!1;this.writer.add("(");for(const _ of g)v?this.writer.add(" "):v=!0,yield this.writeTurtleObjects([_]);return this.writer.add(")"),!0})}writePath(m,y=!1){return t(this,void 0,void 0,function*(){if(m.termType==="NamedNode")this.writer.add(yield this.termToString(m));else if(m.termType==="BlankNode"){const g=this.store.getQuadsOnce(m,null,null,null);if(g.length===1){const{predicate:b,object:v}=g[0];switch(b.value){case"http://www.w3.org/ns/shacl#inversePath":this.writer.add("^"),yield this.writePath(v,!0);return;case"http://www.w3.org/ns/shacl#alternativePath":{const _=this.getList(v);if(_.length===0)throw new Error("Invalid Alternative Path - no options");if(_.length===1)yield this.writePath(_[0]);else{y&&this.writer.add("(");let w=!0;for(const E of _)w?w=!1:this.writer.add("|"),yield this.writePath(E,!0);y&&this.writer.add(")")}return}case"http://www.w3.org/ns/shacl#zeroOrMorePath":yield this.writePath(v,!0),this.writer.add("*");return;case"http://www.w3.org/ns/shacl#oneOrMorePath":yield this.writePath(v,!0),this.writer.add("+");return;case"http://www.w3.org/ns/shacl#zeroOrOnePath":yield this.writePath(v,!0),this.writer.add("?");return;default:throw new Error(`Invalid path type ${m.value}`)}}else{this.store.addQuads(g);const b=this.getList(m);if(b.length===0)throw new Error("Invalid Path");{y&&this.writer.add("(");let v=!0;for(const _ of b)v?v=!1:this.writer.add("/"),yield this.writePath(_,!0);y&&this.writer.add(")")}}}else throw new Error("Path should be named node or blank node")})}}return ew.default=h,ew}var aw={},tq;function TNe(){if(tq)return aw;tq=1,Object.defineProperty(aw,"__esModule",{value:!0});class t{constructor(r){this.indents=0,this.write=r.write,this.end=r.end}indent(){return this.indents+=1,this}deindent(){if(this.indents<1)throw new Error(`Trying to deindent when indent is only ${this.indents}`);return this.indents-=1,this}add(r,n=!1){return this.write(n?` +`)}getIndentPrefix(){return this.options.space?this.options.space.repeat(this.indentation):""}};return v0.JsonLdSerializer=a,v0}var FB;function oNe(){return FB||(FB=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s),Object.defineProperty(n,o,{enumerable:!0,get:function(){return a[s]}})}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(sNe(),t),r(vee(),t)}(ZO)),ZO}var BB;function uNe(){if(BB)return b0;BB=1,Object.defineProperty(b0,"__esModule",{value:!0}),b0.ActorRdfSerializeJsonLd=void 0;const t=g4(),e=oNe();let r=class extends t.ActorRdfSerializeFixedMediaTypes{constructor(a){super(a)}async runHandle(a,s,o){const u=new e.JsonLdSerializer({space:" ".repeat(this.jsonStringifyIndentSpaces)});let c;return"pipe"in a.quadStream?(a.quadStream.on("error",l=>u.emit("error",l)),c=a.quadStream.pipe(u)):c=u.import(a.quadStream),{data:c}}};return b0.ActorRdfSerializeJsonLd=r,b0}var qB;function cNe(){return qB||(qB=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(uNe(),t)}(YO)),YO}var eR={},T0={},Zv={},$B;function lNe(){if($B)return Zv;$B=1,Object.defineProperty(Zv,"__esModule",{value:!0});function t(r,n){return new Promise((a,s)=>{r.on("end",()=>a(n)),r.on("error",s)})}function e(r){const n=[];return t(r.on("data",a=>n.push(a)),n)}return Zv.default=e,Zv}var E0={},ew={},tR={},A0={},UB;function dNe(){if(UB)return A0;UB=1,Object.defineProperty(A0,"__esModule",{value:!0}),A0.fragment=void 0;function t(n){let a=n;(a.endsWith("/")||a.endsWith("#"))&&(a=a.slice(0,a.length-1));const s=[];a.lastIndexOf("/")>0&&s.push(a.lastIndexOf("/")),a.lastIndexOf("#")>0&&s.push(a.lastIndexOf("#"));const o=Math.max(...s);return a.slice(o+1)}function e(n){var a;const s=(a=n.split(/[^a-z0-9]+/ig).filter(o=>o!=="").map(o=>o[0].toUpperCase()+o.slice(1)).join("").match(/[a-z][a-z0-9]+/ig))===null||a===void 0?void 0:a[0];return typeof s>"u"?void 0:s[0].toLowerCase()+s.slice(1)}function r(n){let a=t(n);return a=a?e(a):void 0,a||"v"}return A0.fragment=r,A0}var rR={},O0={},tc={},tw={exports:{}},kB;function fNe(){return kB||(kB=1,function(t,e){var r=typeof self<"u"?self:I,n=function(){function s(){this.fetch=!1,this.DOMException=r.DOMException}return s.prototype=r,new s}();(function(s){(function(o){var u={searchParams:"URLSearchParams"in s,iterable:"Symbol"in s&&"iterator"in Symbol,blob:"FileReader"in s&&"Blob"in s&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in s,arrayBuffer:"ArrayBuffer"in s};function c($){return $&&DataView.prototype.isPrototypeOf($)}if(u.arrayBuffer)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function($){return $&&l.indexOf(Object.prototype.toString.call($))>-1};function f($){if(typeof $!="string"&&($=String($)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test($))throw new TypeError("Invalid character in header field name");return $.toLowerCase()}function h($){return typeof $!="string"&&($=String($)),$}function p($){var q={next:function(){var H=$.shift();return{done:H===void 0,value:H}}};return u.iterable&&(q[Symbol.iterator]=function(){return q}),q}function m($){this.map={},$ instanceof m?$.forEach(function(q,H){this.append(H,q)},this):Array.isArray($)?$.forEach(function(q){this.append(q[0],q[1])},this):$&&Object.getOwnPropertyNames($).forEach(function(q){this.append(q,$[q])},this)}m.prototype.append=function($,q){$=f($),q=h(q);var H=this.map[$];this.map[$]=H?H+", "+q:q},m.prototype.delete=function($){delete this.map[f($)]},m.prototype.get=function($){return $=f($),this.has($)?this.map[$]:null},m.prototype.has=function($){return this.map.hasOwnProperty(f($))},m.prototype.set=function($,q){this.map[f($)]=h(q)},m.prototype.forEach=function($,q){for(var H in this.map)this.map.hasOwnProperty(H)&&$.call(q,this.map[H],H,this)},m.prototype.keys=function(){var $=[];return this.forEach(function(q,H){$.push(H)}),p($)},m.prototype.values=function(){var $=[];return this.forEach(function(q){$.push(q)}),p($)},m.prototype.entries=function(){var $=[];return this.forEach(function(q,H){$.push([H,q])}),p($)},u.iterable&&(m.prototype[Symbol.iterator]=m.prototype.entries);function y($){if($.bodyUsed)return Promise.reject(new TypeError("Already read"));$.bodyUsed=!0}function g($){return new Promise(function(q,H){$.onload=function(){q($.result)},$.onerror=function(){H($.error)}})}function b($){var q=new FileReader,H=g(q);return q.readAsArrayBuffer($),H}function v($){var q=new FileReader,H=g(q);return q.readAsText($),H}function _($){for(var q=new Uint8Array($),H=new Array(q.length),X=0;X-1?q:$}function F($,q){q=q||{};var H=q.body;if($ instanceof F){if($.bodyUsed)throw new TypeError("Already read");this.url=$.url,this.credentials=$.credentials,q.headers||(this.headers=new m($.headers)),this.method=$.method,this.mode=$.mode,this.signal=$.signal,!H&&$._bodyInit!=null&&(H=$._bodyInit,$.bodyUsed=!0)}else this.url=String($);if(this.credentials=q.credentials||this.credentials||"same-origin",(q.headers||!this.headers)&&(this.headers=new m(q.headers)),this.method=L(q.method||this.method||"GET"),this.mode=q.mode||this.mode||null,this.signal=q.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&H)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(H)}F.prototype.clone=function(){return new F(this,{body:this._bodyInit})};function x($){var q=new FormData;return $.trim().split("&").forEach(function(H){if(H){var X=H.split("="),Y=X.shift().replace(/\+/g," "),he=X.join("=").replace(/\+/g," ");q.append(decodeURIComponent(Y),decodeURIComponent(he))}}),q}function P($){var q=new m,H=$.replace(/\r?\n[\t ]+/g," ");return H.split(/\r?\n/).forEach(function(X){var Y=X.split(":"),he=Y.shift().trim();if(he){var Te=Y.join(":").trim();q.append(he,Te)}}),q}E.call(F.prototype);function j($,q){q||(q={}),this.type="default",this.status=q.status===void 0?200:q.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in q?q.statusText:"OK",this.headers=new m(q.headers),this.url=q.url||"",this._initBody($)}E.call(j.prototype),j.prototype.clone=function(){return new j(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},j.error=function(){var $=new j(null,{status:0,statusText:""});return $.type="error",$};var N=[301,302,303,307,308];j.redirect=function($,q){if(N.indexOf(q)===-1)throw new RangeError("Invalid status code");return new j(null,{status:q,headers:{location:$}})},o.DOMException=s.DOMException;try{new o.DOMException}catch{o.DOMException=function(q,H){this.message=q,this.name=H;var X=Error(q);this.stack=X.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function V($,q){return new Promise(function(H,X){var Y=new F($,q);if(Y.signal&&Y.signal.aborted)return X(new o.DOMException("Aborted","AbortError"));var he=new XMLHttpRequest;function Te(){he.abort()}he.onload=function(){var Ne={status:he.status,statusText:he.statusText,headers:P(he.getAllResponseHeaders()||"")};Ne.url="responseURL"in he?he.responseURL:Ne.headers.get("X-Request-URL");var $e="response"in he?he.response:he.responseText;H(new j($e,Ne))},he.onerror=function(){X(new TypeError("Network request failed"))},he.ontimeout=function(){X(new TypeError("Network request failed"))},he.onabort=function(){X(new o.DOMException("Aborted","AbortError"))},he.open(Y.method,Y.url,!0),Y.credentials==="include"?he.withCredentials=!0:Y.credentials==="omit"&&(he.withCredentials=!1),"responseType"in he&&u.blob&&(he.responseType="blob"),Y.headers.forEach(function(Ne,$e){he.setRequestHeader($e,Ne)}),Y.signal&&(Y.signal.addEventListener("abort",Te),he.onreadystatechange=function(){he.readyState===4&&Y.signal.removeEventListener("abort",Te)}),he.send(typeof Y._bodyInit>"u"?null:Y._bodyInit)})}return V.polyfill=!0,s.fetch||(s.fetch=V,s.Headers=m,s.Request=F,s.Response=j),o.Headers=m,o.Request=F,o.Response=j,o.fetch=V,Object.defineProperty(o,"__esModule",{value:!0}),o})({})})(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var a=n;e=a.fetch,e.default=a.fetch,e.fetch=a.fetch,e.Headers=a.Headers,e.Request=a.Request,e.Response=a.Response,t.exports=e}(tw,tw.exports)),tw.exports}var VB;function _4(){if(VB)return tc;VB=1;var t=I&&I.__awaiter||function(a,s,o,u){function c(l){return l instanceof o?l:new o(function(d){d(l)})}return new(o||(o=Promise))(function(l,d){function f(m){try{p(u.next(m))}catch(y){d(y)}}function h(m){try{p(u.throw(m))}catch(y){d(y)}}function p(m){m.done?l(m.value):c(m.value).then(f,h)}p((u=u.apply(a,s||[])).next())})};Object.defineProperty(tc,"__esModule",{value:!0}),tc.fetchContext=tc.fetchJson=void 0;const e=fNe();function r(a,s){var o;return t(this,void 0,void 0,function*(){return(yield((o=s==null?void 0:s.fetch)!==null&&o!==void 0?o:e.fetch)(a)).json()})}tc.fetchJson=r;function n(a,s){return t(this,void 0,void 0,function*(){return(yield r(a,s))["@context"]})}return tc.fetchContext=n,tc}var HB;function hNe(){if(HB)return O0;HB=1;var t=I&&I.__awaiter||function(n,a,s,o){function u(c){return c instanceof s?c:new s(function(l){l(c)})}return new(s||(s=Promise))(function(c,l){function d(p){try{h(o.next(p))}catch(m){l(m)}}function f(p){try{h(o.throw(p))}catch(m){l(m)}}function h(p){p.done?c(p.value):u(p.value).then(d,f)}h((o=o.apply(n,a||[])).next())})};Object.defineProperty(O0,"__esModule",{value:!0}),O0.lookupUri=void 0;const e=_4();function r(n,a){return t(this,void 0,void 0,function*(){const s=(yield(0,e.fetchContext)(`https://prefix.cc/${n}.file.jsonld`,a))[n];if(typeof s!="string")throw new Error(`Expected uri to be a string, received: ${s} of type ${typeof s}`);return s})}return O0.lookupUri=r,O0}var R0={},QB;function pNe(){if(QB)return R0;QB=1;var t=I&&I.__awaiter||function(n,a,s,o){function u(c){return c instanceof s?c:new s(function(l){l(c)})}return new(s||(s=Promise))(function(c,l){function d(p){try{h(o.next(p))}catch(m){l(m)}}function f(p){try{h(o.throw(p))}catch(m){l(m)}}function h(p){p.done?c(p.value):u(p.value).then(d,f)}h((o=o.apply(n,a||[])).next())})};Object.defineProperty(R0,"__esModule",{value:!0}),R0.lookupPrefix=void 0;const e=_4();function r(n,a){return t(this,void 0,void 0,function*(){const s=new URL("https://prefix.cc/reverse");s.searchParams.append("uri",n),s.searchParams.append("format","jsonld");const o=Object.keys(yield(0,e.fetchContext)(s,a));if(o.length===0)throw new Error("No prefixes returned");return o[0]})}return R0.lookupPrefix=r,R0}var x0={},zB;function yNe(){if(zB)return x0;zB=1;var t=I&&I.__awaiter||function(n,a,s,o){function u(c){return c instanceof s?c:new s(function(l){l(c)})}return new(s||(s=Promise))(function(c,l){function d(p){try{h(o.next(p))}catch(m){l(m)}}function f(p){try{h(o.throw(p))}catch(m){l(m)}}function h(p){p.done?c(p.value):u(p.value).then(d,f)}h((o=o.apply(n,a||[])).next())})};Object.defineProperty(x0,"__esModule",{value:!0}),x0.lookupAllPrefixes=void 0;const e=_4();function r(n){return t(this,void 0,void 0,function*(){return(0,e.fetchContext)("https://prefix.cc/context",n)})}return x0.lookupAllPrefixes=r,x0}var GB;function WB(){return GB||(GB=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(hNe(),t),r(pNe(),t),r(yNe(),t)}(rR)),rR}var KB;function mNe(){return KB||(KB=1,function(t){var e=I&&I.__awaiter||function(u,c,l,d){function f(h){return h instanceof l?h:new l(function(p){p(h)})}return new(l||(l=Promise))(function(h,p){function m(b){try{g(d.next(b))}catch(v){p(v)}}function y(b){try{g(d.throw(b))}catch(v){p(v)}}function g(b){b.done?h(b.value):f(b.value).then(m,y)}g((d=d.apply(u,c||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.lookupAllPrefixes=t.prefixToUri=t.uriToPrefix=void 0;const r=dNe(),n=WB();function a(u,c){return e(this,void 0,void 0,function*(){let l;try{l=yield(0,n.lookupPrefix)(u,c)}catch{c!=null&&c.mintOnUnknown&&(l=(0,r.fragment)(u).slice(0,4))}if(typeof l<"u"&&typeof(c==null?void 0:c.existingPrefixes)=="object"&&l in c.existingPrefixes){let d=0;for(;`${l}${d}`in c.existingPrefixes;)d+=1;l=`${l}${d}`}return l})}t.uriToPrefix=a;function s(u,c){return e(this,void 0,void 0,function*(){try{return yield(0,n.lookupUri)(u,c)}catch{return}})}t.prefixToUri=s;var o=WB();Object.defineProperty(t,"lookupAllPrefixes",{enumerable:!0,get:function(){return o.lookupAllPrefixes}})}(tR)),tR}var I0={},JB;function gNe(){if(JB)return I0;JB=1,Object.defineProperty(I0,"__esModule",{value:!0}),I0.getShaclName=void 0;function t(e){if(e.termType!=="NamedNode"||!e.value.startsWith("http://www.w3.org/ns/shacl#"))throw new Error(`Term ${e.value} is not part of the SHACL namespace`);return e.value.slice(27)}return I0.getShaclName=t,I0}var rw={},XB;function _Ne(){return XB||(XB=1,Object.defineProperty(rw,"__esModule",{value:!0}),rw.default={deactivated:!0,severity:!0,message:!0,class:!0,datatype:!0,nodeKind:!0,minExclusive:!0,minInclusive:!0,maxExclusive:!0,maxInclusive:!0,minLength:!0,maxLength:!0,pattern:!0,flags:!0,languageIn:!0,uniqueLang:!0,equals:!0,disjoint:!0,lessThan:!0,lessThanOrEquals:!0,qualifiedValueShape:!0,qualifiedMinCount:!0,qualifiedMaxCount:!0,qualifiedValueShapesDisjoint:!0,closed:!0,ignoredProperties:!0,hasValue:!0,in:!0,node:!0}),rw}var nw={},YB;function bNe(){return YB||(YB=1,Object.defineProperty(nw,"__esModule",{value:!0}),nw.default={owl:"http://www.w3.org/2002/07/owl#",rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",sh:"http://www.w3.org/ns/shacl#",xsd:"http://www.w3.org/2001/XMLSchema#"}),nw}var iw={},ZB;function vNe(){return ZB||(ZB=1,Object.defineProperty(iw,"__esModule",{value:!0}),iw.default={targetNode:!0,targetObjectsOf:!0,targetSubjectsOf:!0,deactivated:!0,severity:!0,message:!0,class:!0,datatype:!0,nodeKind:!0,minExclusive:!0,minInclusive:!0,maxExclusive:!0,maxInclusive:!0,minLength:!0,maxLength:!0,pattern:!0,flags:!0,languageIn:!0,equals:!0,disjoint:!0,closed:!0,ignoredProperties:!0,hasValue:!0,in:!0}),iw}var eq;function wNe(){if(eq)return ew;eq=1;var t=I&&I.__awaiter||function(p,m,y,g){function b(v){return v instanceof y?v:new y(function(_){_(v)})}return new(y||(y=Promise))(function(v,_){function w(L){try{O(g.next(L))}catch(F){_(F)}}function E(L){try{O(g.throw(L))}catch(F){_(F)}}function O(L){L.done?v(L.value):b(L.value).then(w,E)}O((g=g.apply(p,m||[])).next())})},e=I&&I.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(ew,"__esModule",{value:!0});const r=Du,n=mNe(),a=x1(),s=gNe(),o=e(_Ne()),u=e(bNe()),c=e(vNe());function l(p){var m;return(m=/^[^]*[#/]/.exec(p))===null||m===void 0?void 0:m[0]}const d={"http://www.w3.org/1999/02/22-rdf-syntax-ns#":"rdf","http://www.w3.org/2000/01/rdf-schema#":"rdfs","http://www.w3.org/ns/shacl#":"sh","http://www.w3.org/2001/XMLSchema#":"xsd"},f={rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",sh:"http://www.w3.org/ns/shacl#",xsd:"http://www.w3.org/2001/XMLSchema#"};class h{constructor(m,y,g={},b=void 0,v=!0,_=!1,w,E=!1){this.store=m,this.base=b,this.errorOnExtraQuads=v,this.mintUnspecifiedPrefixes=_,this.fetch=w,this.extendedSyntax=E,this.prefixes={},this.prefixRev={};for(const O of Object.keys(g)){const L=g[O],F=typeof L=="string"?L:L.value;!(F in d)&&!(O in f)&&(this.prefixRev[F]=O,this.prefixes[O]=F)}this.writer=y}write(){return t(this,void 0,void 0,function*(){const m=this.store.getQuads(null,"http://www.w3.org/1999/02/22-rdf-syntax-ns#type","http://www.w3.org/2002/07/owl#Ontology",null);if(m.length===1&&m[0].subject.termType==="NamedNode"){const g=m[0].subject;this.store.removeQuads(m),g.equals(new r.NamedNode("urn:x-base:default"))||this.writer.add(`BASE ${(0,a.termToString)(g)}`),yield this.writeImports(g)}else throw new Error("Base expected");if(this.mintUnspecifiedPrefixes){const g=new Set;for(const v of[...this.store.getSubjects(null,null,null),...this.store.getPredicates(null,null,null),...this.store.getObjects(null,null,null)])if(v.termType==="NamedNode"){const _=l(v.value);_&&!(_ in this.prefixRev)&&!(_ in d)&&g.add(_)}const b=Object.assign(Object.assign({},this.prefixes),f);yield Promise.all([...g].map(v=>(0,n.uriToPrefix)(v,{fetch:this.fetch,mintOnUnknown:!0,existingPrefixes:b}).then(_=>{this.prefixes[_]=v,b[_]=v,this.prefixRev[v]=_})))}const y=new Set([...this.store.getSubjects(null,null,null),...this.store.getPredicates(null,null,null),...this.store.getObjects(null,null,null)].filter(g=>g.termType==="NamedNode").map(g=>l(g.value)).filter(g=>typeof g=="string"));for(const g in this.prefixRev)y.has(g)||(delete this.prefixes[this.prefixRev[g]],delete this.prefixRev[g]);if(yield this.writePrefixes(),this.prefixes=Object.assign(Object.assign({},this.prefixes),f),this.prefixRev=Object.assign(Object.assign({},this.prefixRev),d),this.writer.newLine(),yield this.writeShapes(),this.extendedSyntax){const g=this.store.getSubjects(null,null,null);g.length>0&&this.writer.newLine(1);for(const b of g)this.writer.add(yield this.termToString(b,!0,!0)),this.writer.add(" "),this.writer.indent(),yield this.writeTurtlePredicates(b),this.writer.deindent();g.length>0&&(this.writer.add(" ."),this.writer.newLine())}if(this.errorOnExtraQuads&&this.store.size>0)throw new Error(`Dataset contains quads that cannot be written in SHACLC [ +${new r.Writer({prefixes:this.prefixes}).quadsToString(this.store.getQuads(null,null,null,null))}]`);this.writer.end()})}writeImports(m){return t(this,void 0,void 0,function*(){const y=this.store.getObjectsOnce(m,new r.NamedNode("http://www.w3.org/2002/07/owl#imports"),null);if(y.length>0)for(const g of y)this.writer.add(`IMPORTS <${g.value}>`,!0)})}writePrefixes(){return t(this,void 0,void 0,function*(){const m=Object.keys(this.prefixes).filter(y=>!(y in u.default)).sort();if(m.length>0)for(const y of m)this.writer.add(`PREFIX ${y}: <${this.prefixes[y]}>`,!0)})}termToString(m,y=!1,g=!1){return t(this,void 0,void 0,function*(){try{if(y)throw new Error("Shacl name disabled");return(0,s.getShaclName)(m)}catch{}if(m.termType==="NamedNode"){const b=l(m.value);return b&&b in this.prefixRev&&b in this.prefixRev?`${this.prefixRev[b]}:${m.value.slice(b.length)}`:(0,a.termToString)(m)}if(m.termType==="Literal")return m.datatypeString==="http://www.w3.org/2001/XMLSchema#integer"||m.datatypeString==="http://www.w3.org/2001/XMLSchema#boolean"?m.value:(0,a.termToString)(m);throw m.termType==="BlankNode"&&g&&(0,a.termToString)(m),new Error(`Invalid term type for extra statement ${m.value} (${m.termType})`)})}writeShapes(){return t(this,void 0,void 0,function*(){for(const m of this.store.getSubjectsOnce(new r.NamedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"),new r.NamedNode("http://www.w3.org/ns/shacl#NodeShape"),null)){this.store.getQuadsOnce(m,new r.NamedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"),new r.NamedNode("http://www.w3.org/2000/01/rdf-schema#Class"),null).length>0?this.writer.add("shapeClass "):this.writer.add("shape "),this.writer.add(yield this.termToString(m)),this.writer.add(" ");const y=this.store.getObjectsOnce(m,new r.NamedNode("http://www.w3.org/ns/shacl#targetClass"),null);if(y.length>0){this.writer.add("-> ");for(const b of y)b.termType==="NamedNode"?this.writer.add(yield this.termToString(b)):(this.writer.add("!"),this.writer.add(yield this.termToString(this.singleObject(b,new r.NamedNode("http://www.w3.org/ns/shacl#not"),!0)))),this.writer.add(" ")}const g=this.store.getPredicates(m,null,null).filter(b=>[new r.NamedNode("http://www.w3.org/ns/shacl#targetClass"),new r.NamedNode("http://www.w3.org/ns/shacl#property"),new r.NamedNode("http://www.w3.org/ns/shacl#or"),...Object.keys(c.default).map(v=>new r.NamedNode("http://www.w3.org/ns/shacl#"+v))].every(v=>!b.equals(v)));g.length>0&&(this.writer.add(";"),this.writer.indent(),this.writer.newLine(1)),this.extendedSyntax&&(yield this.writeGivenTurtlePredicates(m,g)),g.length>0&&(this.writer.add(" "),this.writer.deindent()),yield this.writeShapeBody(m,!1)}})}getSingleProperty(m,y){let g=[m];try{let b=(0,s.getShaclName)(m.predicate),v="pred";if(b==="not"){const _=this.store.getQuadsOnce(m.object,null,null,null);if(g=g.concat(_),_.length!==1)throw new Error("Can only handle having one predicate of 'not'");[m]=_,b=(0,s.getShaclName)(m.predicate),v="not"}if(!(b in y))throw new Error(`${b} is not allowed`);return{name:b,type:v,object:m.object}}catch{this.store.addQuads(g)}}singleLayerPropertiesList(m,y){const g=[];for(const b of this.store.getQuadsOnce(m,null,null,null)){const v=this.getSingleProperty(b,y);v&&g.push(v)}return g}expectOneProperty(m,y){const g=this.store.getQuadsOnce(m,null,null,null);if(g.length===1){const b=this.getSingleProperty(g[0],y);if(b)return b}this.store.addQuads(g)}orProperties(m,y){const g=[];for(const b of this.store.getQuadsOnce(m,new r.NamedNode("http://www.w3.org/ns/shacl#or"),null,null)){const v=[];for(const _ of this.getList(b.object)){const w=this.expectOneProperty(_,y);if(!w)throw this.store.addQuad(b),new Error("Each entry of the 'or' statement must declare exactly one property");v.push(w)}g.push(v)}return g}getList(m){let y=m;const g=[];for(;!y.equals(new r.NamedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"));)g.push(this.singleObject(y,new r.NamedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#first"),!0)),y=this.singleObject(y,new r.NamedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#rest"),!0);return g}writeIriLiteralOrArray(m){return t(this,void 0,void 0,function*(){if(m.termType==="BlankNode"){this.writer.add("[");let y=!0;for(const g of this.getList(m))y?y=!1:this.writer.add(" "),this.writer.add(yield this.termToString(g));this.writer.add("]")}else this.writer.add(yield this.termToString(m))})}singleObject(m,y,g){var b;return(b=this.singleQuad(m,y,g))===null||b===void 0?void 0:b.object}singleQuad(m,y,g=!1){const b=this.store.getQuadsOnce(m,y,null,null);if(g&&b.length!==1)throw this.store.addQuads(b),new Error(`The subject and predicate ${m==null?void 0:m.value} ${y==null?void 0:y.value} must have exactly one object. Instead has ${b.length}`);if(b.length>1)throw this.store.addQuads(b),new Error(`The subject and predicate ${m==null?void 0:m.value} ${y==null?void 0:y.value} can have at most one object. Instead has ${b.length}`);return b.length===1?b[0]:void 0}writeAssigment({name:m,type:y,object:g}){return t(this,void 0,void 0,function*(){y==="not"&&this.writer.add("!"),this.writer.add(m),this.writer.add("="),yield this.writeIriLiteralOrArray(g)})}writeAtom({name:m,type:y,object:g}){return t(this,void 0,void 0,function*(){switch(y==="not"&&this.writer.add("!"),m){case"node":{if(g.termType==="NamedNode")this.writer.add(`@${yield this.termToString(g)}`);else if(g.termType==="BlankNode")yield this.writeShapeBody(g);else throw new Error("Invalid nested shape, must be blank node or IRI");return}case"nodeKind":{this.writer.add((0,s.getShaclName)(g));return}case"class":{this.writer.add(yield this.termToString(g));return}case"datatype":{this.writer.add(yield this.termToString(g));return}default:this.writer.add(m),this.writer.add("="),yield this.writeIriLiteralOrArray(g)}})}writeAssigments(m,y=" ",g=!0,b){return t(this,void 0,void 0,function*(){for(const v of m)g?g=!1:this.writer.add(y),b?yield this.writeAtom(v):yield this.writeAssigment(v)})}writeParams(m,y=!0,g,b=!1,v=!1){return t(this,void 0,void 0,function*(){const _=this.orProperties(m,g),w=this.singleLayerPropertiesList(m,g);v&&(_.length>0||w.length>0)&&this.writer.newLine(1);for(const E of _)y?y=!1:this.writer.add(" "),yield this.writeAssigments(E,"|",!0,b);yield this.writeAssigments(w," ",y,b),v&&(_.length>0||w.length>0)&&this.writer.add(" .")})}writeShapeBody(m,y=!0){return t(this,void 0,void 0,function*(){this.writer.add("{").indent();const g=this.store.getObjectsOnce(m,new r.NamedNode("http://www.w3.org/ns/shacl#property"),null);yield this.writeParams(m,!0,c.default,!1,!0);for(const b of g)this.writer.newLine(1),yield this.writeProperty(b);this.writer.deindent().newLine(1),y?this.writer.add("} ."):this.writer.add("}").newLine(1)})}writeProperty(m){return t(this,void 0,void 0,function*(){yield this.writePath(this.singleObject(m,new r.NamedNode("http://www.w3.org/ns/shacl#path"),!0));const y=this.singleObject(m,new r.NamedNode("http://www.w3.org/ns/shacl#minCount")),g=this.singleObject(m,new r.NamedNode("http://www.w3.org/ns/shacl#maxCount")),b=this.singleObject(m,new r.NamedNode("http://www.w3.org/ns/shacl#nodeKind")),v=this.singleObject(m,new r.NamedNode("http://www.w3.org/ns/shacl#class")),_=this.singleObject(m,new r.NamedNode("http://www.w3.org/ns/shacl#datatype")),w=this.store.getObjectsOnce(m,new r.NamedNode("http://www.w3.org/ns/shacl#node"),null);if(b&&(this.writer.add(" "),this.writer.add((0,s.getShaclName)(b))),v&&(this.writer.add(" "),this.writer.add(yield this.termToString(v))),_&&(this.writer.add(" "),this.writer.add(yield this.termToString(_))),y!==void 0||g!==void 0){if(this.writer.add(" ["),y){if(y.termType!=="Literal"||y.datatypeString!=="http://www.w3.org/2001/XMLSchema#integer")throw new Error("Invalid min value, must me an integer literal");this.writer.add(y.value)}else this.writer.add("0");if(this.writer.add(".."),g){if(g.termType!=="Literal"||g.datatypeString!=="http://www.w3.org/2001/XMLSchema#integer")throw new Error("Invalid max value, must me an integer literal");this.store.removeMatches(m,new r.NamedNode("http://www.w3.org/ns/shacl#maxCount"),void 0,void 0),this.writer.add(g.value)}else this.writer.add("*");this.writer.add("]")}yield this.writeParams(m,!1,o.default,!0);const E=[];for(const O of w)if(O.termType==="NamedNode")this.writer.add(" "),this.writer.add(`@${yield this.termToString(O)}`);else if(O.termType==="BlankNode")E.push(O);else throw new Error("Invalid nested shape, must be blank node or IRI");for(const O of E)this.writer.add(" "),yield this.writeShapeBody(O);this.extendedSyntax&&this.store.getQuads(m,null,null,null).length>0&&(this.writer.add(" %"),this.writer.indent(),this.writer.newLine(1),yield this.writeTurtlePredicates(m),this.writer.deindent(),this.writer.newLine(1),this.writer.add("%")),E.length===0&&this.writer.add(" .")})}writeTurtlePredicates(m){return t(this,void 0,void 0,function*(){return this.writeGivenTurtlePredicates(m,this.store.getPredicates(m,null,null))})}writeGivenTurtlePredicates(m,y){return t(this,void 0,void 0,function*(){let g=!1;if(y.some(b=>b.equals(r.DataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type")))){const b=this.store.getObjectsOnce(m,r.DataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"),null);b.length>0&&(g=!0,this.writer.add("a "),yield this.writeTurtleObjects(b))}for(const b of y)b.equals(r.DataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"))||(g?(this.writer.add(" ;"),this.writer.newLine(1)):g=!0,this.writer.add(yield this.termToString(b,!0)),this.writer.add(" "),yield this.writeTurtleObjects(this.store.getObjectsOnce(m,b,null)))})}writeTurtleObjects(m){return t(this,void 0,void 0,function*(){const y=[],g=[];for(const v of m)v.termType==="BlankNode"&&[...this.store.match(null,null,v),...this.store.match(null,v,null)].length===0?y.push(v):g.push(v);this.writer.add((yield Promise.all(g.map(v=>this.termToString(v,!0,!0)))).join(", "));let b=g.length>0;if(y.length>0)for(const v of y)b?this.writer.add(", "):b=!0,(yield this.writeList(v))||(this.writer.add("["),this.writer.indent(),this.writer.newLine(1),yield this.writeTurtlePredicates(v),this.writer.deindent(),this.writer.newLine(1),this.writer.add("]"))})}writeList(m){return t(this,void 0,void 0,function*(){let y=m;const g=[],b=[];for(;!y.equals(r.DataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"));){const _=this.store.getQuadsOnce(y,r.DataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#first"),null,null),w=this.store.getQuadsOnce(y,r.DataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#rest"),null,null);if(b.push(..._,...w),_.length!==1||w.length!==1||this.store.getQuads(y,null,null,null).length!==0)return this.store.addQuads(b),!1;g.push(_[0].object),y=w[0].object}let v=!1;this.writer.add("(");for(const _ of g)v?this.writer.add(" "):v=!0,yield this.writeTurtleObjects([_]);return this.writer.add(")"),!0})}writePath(m,y=!1){return t(this,void 0,void 0,function*(){if(m.termType==="NamedNode")this.writer.add(yield this.termToString(m));else if(m.termType==="BlankNode"){const g=this.store.getQuadsOnce(m,null,null,null);if(g.length===1){const{predicate:b,object:v}=g[0];switch(b.value){case"http://www.w3.org/ns/shacl#inversePath":this.writer.add("^"),yield this.writePath(v,!0);return;case"http://www.w3.org/ns/shacl#alternativePath":{const _=this.getList(v);if(_.length===0)throw new Error("Invalid Alternative Path - no options");if(_.length===1)yield this.writePath(_[0]);else{y&&this.writer.add("(");let w=!0;for(const E of _)w?w=!1:this.writer.add("|"),yield this.writePath(E,!0);y&&this.writer.add(")")}return}case"http://www.w3.org/ns/shacl#zeroOrMorePath":yield this.writePath(v,!0),this.writer.add("*");return;case"http://www.w3.org/ns/shacl#oneOrMorePath":yield this.writePath(v,!0),this.writer.add("+");return;case"http://www.w3.org/ns/shacl#zeroOrOnePath":yield this.writePath(v,!0),this.writer.add("?");return;default:throw new Error(`Invalid path type ${m.value}`)}}else{this.store.addQuads(g);const b=this.getList(m);if(b.length===0)throw new Error("Invalid Path");{y&&this.writer.add("(");let v=!0;for(const _ of b)v?v=!1:this.writer.add("/"),yield this.writePath(_,!0);y&&this.writer.add(")")}}}else throw new Error("Path should be named node or blank node")})}}return ew.default=h,ew}var aw={},tq;function SNe(){if(tq)return aw;tq=1,Object.defineProperty(aw,"__esModule",{value:!0});class t{constructor(r){this.indents=0,this.write=r.write,this.end=r.end}indent(){return this.indents+=1,this}deindent(){if(this.indents<1)throw new Error(`Trying to deindent when indent is only ${this.indents}`);return this.indents-=1,this}add(r,n=!1){return this.write(n?` ${" ".repeat(this.indents)}${r}`:r,"utf-8"),this}newLine(r=2){return this.write(` -`.repeat(r)+" ".repeat(this.indents),"utf-8"),this}}return aw.default=t,aw}var sw={},rq;function ENe(){if(rq)return sw;rq=1,Object.defineProperty(sw,"__esModule",{value:!0});const t=Du;class e extends t.Store{getQuadsOnce(n,a,s,o){const u=this.getQuads(n,a,s,o);return this.removeQuads(u),u}getSubjectsOnce(n,a,s){return this.getQuadsOnce(null,n,a,s).map(o=>o.subject)}getObjectsOnce(n,a,s){return this.getQuadsOnce(n,a,null,s).map(o=>o.object)}}return sw.default=e,sw}var nq;function ANe(){if(nq)return E0;nq=1;var t=I&&I.__awaiter||function(u,c,l,d){function f(h){return h instanceof l?h:new l(function(p){p(h)})}return new(l||(l=Promise))(function(h,p){function m(b){try{g(d.next(b))}catch(v){p(v)}}function y(b){try{g(d.throw(b))}catch(v){p(v)}}function g(b){b.done?h(b.value):f(b.value).then(m,y)}g((d=d.apply(u,c||[])).next())})},e=I&&I.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(E0,"__esModule",{value:!0}),E0.write=void 0;const r=Du,n=e(SNe()),a=e(TNe()),s=e(ENe());function o(u,c){return t(this,void 0,void 0,function*(){return new Promise((l,d)=>t(this,void 0,void 0,function*(){try{let f="";const h=new s.default(u),p=h.getGraphs(null,null,null);if(p.length>1)throw new Error("More than one graph found - can serialize in the default graph");if(p.length===1&&!p[0].equals(r.DataFactory.defaultGraph()))throw new Error(`Expected all triples to be in the default graph, instead triples were in ${p[0].value}`);const m=new a.default({write:g=>{f+=g},end:()=>{let g=h.getQuads(null,null,null,null);g.length===0&&(g=void 0),l({text:f,extraQuads:g})}});yield new n.default(h,m,c==null?void 0:c.prefixes,void 0,(c==null?void 0:c.errorOnUnused)!==!1,c==null?void 0:c.mintPrefixes,c==null?void 0:c.fetch,c==null?void 0:c.extendedSyntax).write()}catch(f){d(f)}}))})}return E0.write=o,E0}var iq;function ONe(){if(iq)return T0;iq=1,Object.defineProperty(T0,"__esModule",{value:!0}),T0.ActorRdfSerializeShaclc=void 0;const t=g4(),e=dNe(),r=Pt,n=ANe();let a=class extends t.ActorRdfSerializeFixedMediaTypes{constructor(o){super(o)}async runHandle(o,u){const c=new r.Readable;c._read=()=>{};try{const l={};o.quadStream.on("prefix",(f,h)=>{l[f]=h});const{text:d}=await(0,n.write)(await(0,e.default)(o.quadStream),{errorOnUnused:!0,extendedSyntax:u==="text/shaclc-ext",prefixes:l});c.push(d),c.push(null)}catch(l){c._read=()=>{c.emit("error",l)}}return{data:c,triples:!0}}};return T0.ActorRdfSerializeShaclc=a,T0}var aq;function RNe(){return aq||(aq=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(ONe(),t)}(tR)),tR}var iR={},P0={},aR={},N0={},sq;function See(){if(sq)return N0;sq=1,Object.defineProperty(N0,"__esModule",{value:!0}),N0.ActorRdfUpdateQuads=void 0;const t=st;let e=class extends t.Actor{constructor(n){super(n)}};return N0.ActorRdfUpdateQuads=e,N0}var $s={},oq;function xNe(){if(oq)return $s;oq=1,Object.defineProperty($s,"__esModule",{value:!0}),$s.ActorRdfUpdateQuadsDestination=$s.deskolemize=$s.deskolemizeStream=void 0;const t=PY(),e=qt,r=See();function n(o,u){return o==null?void 0:o.map(c=>(0,t.deskolemizeQuad)(c,u))}$s.deskolemizeStream=n;function a(o){var l;const u=o.context.get(e.KeysRdfUpdateQuads.destination),c=(l=o.context.get(e.KeysQuerySourceIdentify.sourceIds))==null?void 0:l.get(u);return c?{...o,quadStreamInsert:n(o.quadStreamInsert,c),quadStreamDelete:n(o.quadStreamDelete,c)}:o}$s.deskolemize=a;let s=class extends r.ActorRdfUpdateQuads{async test(u){return!0}async run(u){const c=await this.getDestination(u.context);return await this.getOutput(c,a(u))}async getOutput(u,c){return{execute:async()=>{await(c.quadStreamDelete?u.delete(c.quadStreamDelete):Promise.resolve()),await(c.deleteGraphs?u.deleteGraphs(c.deleteGraphs.graphs,c.deleteGraphs.requireExistence,c.deleteGraphs.dropGraphs):Promise.resolve()),await(c.createGraphs?u.createGraphs(c.createGraphs.graphs,c.createGraphs.requireNonExistence):Promise.resolve()),await(c.quadStreamInsert?u.insert(c.quadStreamInsert):Promise.resolve())}}}};return $s.ActorRdfUpdateQuadsDestination=s,$s}var sR={},uq;function INe(){return uq||(uq=1,Object.defineProperty(sR,"__esModule",{value:!0})),sR}var Gn={},cq;function PNe(){if(cq)return Gn;cq=1,Object.defineProperty(Gn,"__esModule",{value:!0}),Gn.getContextDestinationUrl=Gn.getContextDestination=Gn.getDataDestinationContext=Gn.getDataDestinationValue=Gn.getDataDestinationType=Gn.isDataDestinationRawType=void 0;const t=qt;function e(u){return typeof u=="string"||"remove"in u}Gn.isDataDestinationRawType=e;function r(u){return typeof u=="string"?"":"remove"in u?"rdfjsStore":u.type}Gn.getDataDestinationType=r;function n(u){return e(u)?u:u.value}Gn.getDataDestinationValue=n;function a(u,c){return typeof u=="string"||"remove"in u||!u.context?c:c.merge(u.context)}Gn.getDataDestinationContext=a;function s(u){return u.get(t.KeysRdfUpdateQuads.destination)}Gn.getContextDestination=s;function o(u){if(u){let c=n(u);if(typeof c=="string"){const l=c.indexOf("#");return l>=0&&(c=c.slice(0,l)),c}}}return Gn.getContextDestinationUrl=o,Gn}var lq;function b4(){return lq||(lq=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(See(),t),r(xNe(),t),r(INe(),t),r(PNe(),t)}(aR)),aR}var D0={},RT={};Object.defineProperty(RT,"__esModule",{value:!0});var Tee=RT.promisifyEventEmitter=void 0;function NNe(t,e){return new Promise((r,n)=>{t.on("end",()=>r(e)),t.on("error",n)})}Tee=RT.promisifyEventEmitter=NNe;var dq;function DNe(){if(dq)return D0;dq=1,Object.defineProperty(D0,"__esModule",{value:!0}),D0.RdfJsQuadDestination=void 0;const t=RT,e=Ot,r=nr,n=new e.DataFactory;let a=class{constructor(o){this.store=o}delete(o){return(0,t.promisifyEventEmitter)(this.store.remove(o))}insert(o){return(0,t.promisifyEventEmitter)(this.store.import(o))}async deleteGraphs(o,u,c){switch(o){case"ALL":await(0,t.promisifyEventEmitter)(this.store.deleteGraph(n.defaultGraph()));case"NAMED":const l=this.store.match(),d={};l.on("data",f=>{f.graph.termType!=="DefaultGraph"&&(d[(0,r.termToString)(f.graph)]=!0)}),await(0,t.promisifyEventEmitter)(l),await Promise.all(Object.keys(d).map(f=>(0,t.promisifyEventEmitter)(this.store.deleteGraph((0,r.stringToTerm)(f)))));break;default:for(const f of Array.isArray(o)?o:[o])await(0,t.promisifyEventEmitter)(this.store.deleteGraph(f))}}async createGraphs(o,u){if(u)for(const c of o){const l=this.store.match(void 0,void 0,void 0,c);await new Promise((d,f)=>{l.once("data",()=>{f(new Error(`Unable to create graph ${c.value} as it already exists`))}),l.on("end",d),l.on("error",f)})}}};return D0.RdfJsQuadDestination=a,D0}var fq;function CNe(){if(fq)return P0;fq=1,Object.defineProperty(P0,"__esModule",{value:!0}),P0.ActorRdfUpdateQuadsRdfJsStore=void 0;const t=b4(),e=DNe();let r=class extends t.ActorRdfUpdateQuadsDestination{constructor(a){super(a)}async test(a){const s=(0,t.getContextDestination)(a.context);if(!s||typeof s=="string"||!("remove"in s)&&"value"in s&&!s.value.remove)throw new Error(`${this.name} received an invalid rdfjsStore.`);return!0}async getDestination(a){const s=(0,t.getContextDestination)(a);return new e.RdfJsQuadDestination("remove"in s?s:s.value)}};return P0.ActorRdfUpdateQuadsRdfJsStore=r,P0}var hq;function LNe(){return hq||(hq=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(CNe(),t)}(iR)),iR}var oR={},C0={},uR={},L0={},cR={},rc={},pq;function jNe(){if(pq)return rc;pq=1,Object.defineProperty(rc,"__esModule",{value:!0}),rc.readableFromWeb=rc.ReadableFromWeb=void 0;const t=Pt;let e=class extends t.Readable{constructor(a,s){super(s),this.reader=a.getReader(),this.readerClosed=!1,this.reader.closed.then(()=>{this.readerClosed=!0}).catch(o=>{this.readerClosed=!0,this.destroy(o)})}_read(){this.reader.read().then(a=>this.push(a.done?null:a.value)).catch(a=>this.destroy(a))}destroy(a){return this.readerClosed||this.reader.cancel(a).then().catch(()=>{}),super.destroy(a)}};rc.ReadableFromWeb=e;function r(n,a){return new e(n,a)}return rc.readableFromWeb=r,rc}var yq;function MNe(){return yq||(yq=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.readableFromWeb=void 0;var e=jNe();Object.defineProperty(t,"readableFromWeb",{enumerable:!0,get:function(){return e.readableFromWeb}})}(cR)),cR}function ow(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var lR={exports:{}},mq;function FNe(){return mq||(mq=1,function(t,e){(function(r){t.exports=r()})(function(){return function r(n,a,s){function o(l,d){if(!a[l]){if(!n[l]){var f=typeof ow=="function"&&ow;if(!d&&f)return f(l,!0);if(u)return u(l,!0);var h=new Error("Cannot find module '"+l+"'");throw h.code="MODULE_NOT_FOUND",h}var p=a[l]={exports:{}};n[l][0].call(p.exports,function(m){var y=n[l][1][m];return o(y||m)},p,p.exports,r,n,a,s)}return a[l].exports}for(var u=typeof ow=="function"&&ow,c=0;c=0;Ne--)if($e[Ne]!==de[Ne])return!1;for(Ne=$e.length-1;Ne>=0;Ne--)if(Te=$e[Ne],!g($[Te],q[Te],H,X))return!1;return!0}function _($,q,H){g($,q,!0)&&m($,q,H,"notDeepStrictEqual",_)}function w($,q){if(!$||!q)return!1;if(Object.prototype.toString.call(q)=="[object RegExp]")return q.test($);try{if($ instanceof q)return!0}catch{}return!Error.isPrototypeOf(q)&&q.call({},$)===!0}function E($){var q;try{$()}catch(H){q=H}return q}function O($,q,H,X){var Y;if(typeof q!="function")throw new TypeError('"block" argument must be a function');typeof H=="string"&&(X=H,H=null),Y=E(q),X=(H&&H.name?" ("+H.name+").":".")+(X?" "+X:"."),$&&!Y&&m(Y,H,"Missing expected exception"+X);var he=typeof X=="string",Te=!$&&L.isError(Y),Ne=!$&&Y&&!H;if((Te&&he&&w(Y,H)||Ne)&&m(Y,H,"Got unwanted exception"+X),$&&Y&&H&&!w(Y,H)||!$&&Y)throw Y}var L=r("util/"),F=Object.prototype.hasOwnProperty,x=Array.prototype.slice,P=(function(){}).name==="foo",j=n.exports=y,N=/\s*function\s+([^\(\s]*)\s*/;j.AssertionError=function(q){this.name="AssertionError",this.actual=q.actual,this.expected=q.expected,this.operator=q.operator,q.message?(this.message=q.message,this.generatedMessage=!1):(this.message=p(this),this.generatedMessage=!0);var H=q.stackStartFunction||m;if(Error.captureStackTrace)Error.captureStackTrace(this,H);else{var X=new Error;if(X.stack){var Y=X.stack,he=d(H),Te=Y.indexOf(` +`.repeat(r)+" ".repeat(this.indents),"utf-8"),this}}return aw.default=t,aw}var sw={},rq;function TNe(){if(rq)return sw;rq=1,Object.defineProperty(sw,"__esModule",{value:!0});const t=Du;class e extends t.Store{getQuadsOnce(n,a,s,o){const u=this.getQuads(n,a,s,o);return this.removeQuads(u),u}getSubjectsOnce(n,a,s){return this.getQuadsOnce(null,n,a,s).map(o=>o.subject)}getObjectsOnce(n,a,s){return this.getQuadsOnce(n,a,null,s).map(o=>o.object)}}return sw.default=e,sw}var nq;function ENe(){if(nq)return E0;nq=1;var t=I&&I.__awaiter||function(u,c,l,d){function f(h){return h instanceof l?h:new l(function(p){p(h)})}return new(l||(l=Promise))(function(h,p){function m(b){try{g(d.next(b))}catch(v){p(v)}}function y(b){try{g(d.throw(b))}catch(v){p(v)}}function g(b){b.done?h(b.value):f(b.value).then(m,y)}g((d=d.apply(u,c||[])).next())})},e=I&&I.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(E0,"__esModule",{value:!0}),E0.write=void 0;const r=Du,n=e(wNe()),a=e(SNe()),s=e(TNe());function o(u,c){return t(this,void 0,void 0,function*(){return new Promise((l,d)=>t(this,void 0,void 0,function*(){try{let f="";const h=new s.default(u),p=h.getGraphs(null,null,null);if(p.length>1)throw new Error("More than one graph found - can serialize in the default graph");if(p.length===1&&!p[0].equals(r.DataFactory.defaultGraph()))throw new Error(`Expected all triples to be in the default graph, instead triples were in ${p[0].value}`);const m=new a.default({write:g=>{f+=g},end:()=>{let g=h.getQuads(null,null,null,null);g.length===0&&(g=void 0),l({text:f,extraQuads:g})}});yield new n.default(h,m,c==null?void 0:c.prefixes,void 0,(c==null?void 0:c.errorOnUnused)!==!1,c==null?void 0:c.mintPrefixes,c==null?void 0:c.fetch,c==null?void 0:c.extendedSyntax).write()}catch(f){d(f)}}))})}return E0.write=o,E0}var iq;function ANe(){if(iq)return T0;iq=1,Object.defineProperty(T0,"__esModule",{value:!0}),T0.ActorRdfSerializeShaclc=void 0;const t=g4(),e=lNe(),r=Pt,n=ENe();let a=class extends t.ActorRdfSerializeFixedMediaTypes{constructor(o){super(o)}async runHandle(o,u){const c=new r.Readable;c._read=()=>{};try{const l={};o.quadStream.on("prefix",(f,h)=>{l[f]=h});const{text:d}=await(0,n.write)(await(0,e.default)(o.quadStream),{errorOnUnused:!0,extendedSyntax:u==="text/shaclc-ext",prefixes:l});c.push(d),c.push(null)}catch(l){c._read=()=>{c.emit("error",l)}}return{data:c,triples:!0}}};return T0.ActorRdfSerializeShaclc=a,T0}var aq;function ONe(){return aq||(aq=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(ANe(),t)}(eR)),eR}var nR={},P0={},iR={},N0={},sq;function See(){if(sq)return N0;sq=1,Object.defineProperty(N0,"__esModule",{value:!0}),N0.ActorRdfUpdateQuads=void 0;const t=st;let e=class extends t.Actor{constructor(n){super(n)}};return N0.ActorRdfUpdateQuads=e,N0}var $s={},oq;function RNe(){if(oq)return $s;oq=1,Object.defineProperty($s,"__esModule",{value:!0}),$s.ActorRdfUpdateQuadsDestination=$s.deskolemize=$s.deskolemizeStream=void 0;const t=PY(),e=qt,r=See();function n(o,u){return o==null?void 0:o.map(c=>(0,t.deskolemizeQuad)(c,u))}$s.deskolemizeStream=n;function a(o){var l;const u=o.context.get(e.KeysRdfUpdateQuads.destination),c=(l=o.context.get(e.KeysQuerySourceIdentify.sourceIds))==null?void 0:l.get(u);return c?{...o,quadStreamInsert:n(o.quadStreamInsert,c),quadStreamDelete:n(o.quadStreamDelete,c)}:o}$s.deskolemize=a;let s=class extends r.ActorRdfUpdateQuads{async test(u){return!0}async run(u){const c=await this.getDestination(u.context);return await this.getOutput(c,a(u))}async getOutput(u,c){return{execute:async()=>{await(c.quadStreamDelete?u.delete(c.quadStreamDelete):Promise.resolve()),await(c.deleteGraphs?u.deleteGraphs(c.deleteGraphs.graphs,c.deleteGraphs.requireExistence,c.deleteGraphs.dropGraphs):Promise.resolve()),await(c.createGraphs?u.createGraphs(c.createGraphs.graphs,c.createGraphs.requireNonExistence):Promise.resolve()),await(c.quadStreamInsert?u.insert(c.quadStreamInsert):Promise.resolve())}}}};return $s.ActorRdfUpdateQuadsDestination=s,$s}var aR={},uq;function xNe(){return uq||(uq=1,Object.defineProperty(aR,"__esModule",{value:!0})),aR}var Gn={},cq;function INe(){if(cq)return Gn;cq=1,Object.defineProperty(Gn,"__esModule",{value:!0}),Gn.getContextDestinationUrl=Gn.getContextDestination=Gn.getDataDestinationContext=Gn.getDataDestinationValue=Gn.getDataDestinationType=Gn.isDataDestinationRawType=void 0;const t=qt;function e(u){return typeof u=="string"||"remove"in u}Gn.isDataDestinationRawType=e;function r(u){return typeof u=="string"?"":"remove"in u?"rdfjsStore":u.type}Gn.getDataDestinationType=r;function n(u){return e(u)?u:u.value}Gn.getDataDestinationValue=n;function a(u,c){return typeof u=="string"||"remove"in u||!u.context?c:c.merge(u.context)}Gn.getDataDestinationContext=a;function s(u){return u.get(t.KeysRdfUpdateQuads.destination)}Gn.getContextDestination=s;function o(u){if(u){let c=n(u);if(typeof c=="string"){const l=c.indexOf("#");return l>=0&&(c=c.slice(0,l)),c}}}return Gn.getContextDestinationUrl=o,Gn}var lq;function b4(){return lq||(lq=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(See(),t),r(RNe(),t),r(xNe(),t),r(INe(),t)}(iR)),iR}var D0={},OT={};Object.defineProperty(OT,"__esModule",{value:!0});var Tee=OT.promisifyEventEmitter=void 0;function PNe(t,e){return new Promise((r,n)=>{t.on("end",()=>r(e)),t.on("error",n)})}Tee=OT.promisifyEventEmitter=PNe;var dq;function NNe(){if(dq)return D0;dq=1,Object.defineProperty(D0,"__esModule",{value:!0}),D0.RdfJsQuadDestination=void 0;const t=OT,e=Ot,r=nr,n=new e.DataFactory;let a=class{constructor(o){this.store=o}delete(o){return(0,t.promisifyEventEmitter)(this.store.remove(o))}insert(o){return(0,t.promisifyEventEmitter)(this.store.import(o))}async deleteGraphs(o,u,c){switch(o){case"ALL":await(0,t.promisifyEventEmitter)(this.store.deleteGraph(n.defaultGraph()));case"NAMED":const l=this.store.match(),d={};l.on("data",f=>{f.graph.termType!=="DefaultGraph"&&(d[(0,r.termToString)(f.graph)]=!0)}),await(0,t.promisifyEventEmitter)(l),await Promise.all(Object.keys(d).map(f=>(0,t.promisifyEventEmitter)(this.store.deleteGraph((0,r.stringToTerm)(f)))));break;default:for(const f of Array.isArray(o)?o:[o])await(0,t.promisifyEventEmitter)(this.store.deleteGraph(f))}}async createGraphs(o,u){if(u)for(const c of o){const l=this.store.match(void 0,void 0,void 0,c);await new Promise((d,f)=>{l.once("data",()=>{f(new Error(`Unable to create graph ${c.value} as it already exists`))}),l.on("end",d),l.on("error",f)})}}};return D0.RdfJsQuadDestination=a,D0}var fq;function DNe(){if(fq)return P0;fq=1,Object.defineProperty(P0,"__esModule",{value:!0}),P0.ActorRdfUpdateQuadsRdfJsStore=void 0;const t=b4(),e=NNe();let r=class extends t.ActorRdfUpdateQuadsDestination{constructor(a){super(a)}async test(a){const s=(0,t.getContextDestination)(a.context);if(!s||typeof s=="string"||!("remove"in s)&&"value"in s&&!s.value.remove)throw new Error(`${this.name} received an invalid rdfjsStore.`);return!0}async getDestination(a){const s=(0,t.getContextDestination)(a);return new e.RdfJsQuadDestination("remove"in s?s:s.value)}};return P0.ActorRdfUpdateQuadsRdfJsStore=r,P0}var hq;function CNe(){return hq||(hq=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(DNe(),t)}(nR)),nR}var sR={},C0={},oR={},L0={},uR={},rc={},pq;function LNe(){if(pq)return rc;pq=1,Object.defineProperty(rc,"__esModule",{value:!0}),rc.readableFromWeb=rc.ReadableFromWeb=void 0;const t=Pt;let e=class extends t.Readable{constructor(a,s){super(s),this.reader=a.getReader(),this.readerClosed=!1,this.reader.closed.then(()=>{this.readerClosed=!0}).catch(o=>{this.readerClosed=!0,this.destroy(o)})}_read(){this.reader.read().then(a=>this.push(a.done?null:a.value)).catch(a=>this.destroy(a))}destroy(a){return this.readerClosed||this.reader.cancel(a).then().catch(()=>{}),super.destroy(a)}};rc.ReadableFromWeb=e;function r(n,a){return new e(n,a)}return rc.readableFromWeb=r,rc}var yq;function jNe(){return yq||(yq=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.readableFromWeb=void 0;var e=LNe();Object.defineProperty(t,"readableFromWeb",{enumerable:!0,get:function(){return e.readableFromWeb}})}(uR)),uR}function ow(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var cR={exports:{}},mq;function MNe(){return mq||(mq=1,function(t,e){(function(r){t.exports=r()})(function(){return function r(n,a,s){function o(l,d){if(!a[l]){if(!n[l]){var f=typeof ow=="function"&&ow;if(!d&&f)return f(l,!0);if(u)return u(l,!0);var h=new Error("Cannot find module '"+l+"'");throw h.code="MODULE_NOT_FOUND",h}var p=a[l]={exports:{}};n[l][0].call(p.exports,function(m){var y=n[l][1][m];return o(y||m)},p,p.exports,r,n,a,s)}return a[l].exports}for(var u=typeof ow=="function"&&ow,c=0;c=0;Ne--)if($e[Ne]!==de[Ne])return!1;for(Ne=$e.length-1;Ne>=0;Ne--)if(Te=$e[Ne],!g($[Te],q[Te],H,X))return!1;return!0}function _($,q,H){g($,q,!0)&&m($,q,H,"notDeepStrictEqual",_)}function w($,q){if(!$||!q)return!1;if(Object.prototype.toString.call(q)=="[object RegExp]")return q.test($);try{if($ instanceof q)return!0}catch{}return!Error.isPrototypeOf(q)&&q.call({},$)===!0}function E($){var q;try{$()}catch(H){q=H}return q}function O($,q,H,X){var Y;if(typeof q!="function")throw new TypeError('"block" argument must be a function');typeof H=="string"&&(X=H,H=null),Y=E(q),X=(H&&H.name?" ("+H.name+").":".")+(X?" "+X:"."),$&&!Y&&m(Y,H,"Missing expected exception"+X);var he=typeof X=="string",Te=!$&&L.isError(Y),Ne=!$&&Y&&!H;if((Te&&he&&w(Y,H)||Ne)&&m(Y,H,"Got unwanted exception"+X),$&&Y&&H&&!w(Y,H)||!$&&Y)throw Y}var L=r("util/"),F=Object.prototype.hasOwnProperty,x=Array.prototype.slice,P=(function(){}).name==="foo",j=n.exports=y,N=/\s*function\s+([^\(\s]*)\s*/;j.AssertionError=function(q){this.name="AssertionError",this.actual=q.actual,this.expected=q.expected,this.operator=q.operator,q.message?(this.message=q.message,this.generatedMessage=!1):(this.message=p(this),this.generatedMessage=!0);var H=q.stackStartFunction||m;if(Error.captureStackTrace)Error.captureStackTrace(this,H);else{var X=new Error;if(X.stack){var Y=X.stack,he=d(H),Te=Y.indexOf(` `+he);if(Te>=0){var Ne=Y.indexOf(` `,Te+1);Y=Y.substring(Ne+1)}this.stack=Y}}},L.inherits(j.AssertionError,Error),j.fail=m,j.ok=y,j.equal=function(q,H,X){q!=H&&m(q,H,X,"==",j.equal)},j.notEqual=function(q,H,X){q==H&&m(q,H,X,"!=",j.notEqual)},j.deepEqual=function(q,H,X){g(q,H,!1)||m(q,H,X,"deepEqual",j.deepEqual)},j.deepStrictEqual=function(q,H,X){g(q,H,!0)||m(q,H,X,"deepStrictEqual",j.deepStrictEqual)},j.notDeepEqual=function(q,H,X){g(q,H,!1)&&m(q,H,X,"notDeepEqual",j.notDeepEqual)},j.notDeepStrictEqual=_,j.strictEqual=function(q,H,X){q!==H&&m(q,H,X,"===",j.strictEqual)},j.notStrictEqual=function(q,H,X){q===H&&m(q,H,X,"!==",j.notStrictEqual)},j.throws=function($,q,H){O(!0,$,q,H)},j.doesNotThrow=function($,q,H){O(!1,$,q,H)},j.ifError=function($){if($)throw $};var V=Object.keys||function($){var q=[];for(var H in $)F.call($,H)&&q.push(H);return q}}).call(this,typeof I<"u"?I:typeof self<"u"?self:typeof window<"u"?window:{})},{"util/":7}],3:[function(r,n,a){},{}],4:[function(r,n,a){function s(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function u(w){if(p===setTimeout)return setTimeout(w,0);if((p===s||!p)&&setTimeout)return p=setTimeout,setTimeout(w,0);try{return p(w,0)}catch{try{return p.call(null,w,0)}catch{return p.call(this,w,0)}}}function c(w){if(m===clearTimeout)return clearTimeout(w);if((m===o||!m)&&clearTimeout)return m=clearTimeout,clearTimeout(w);try{return m(w)}catch{try{return m.call(null,w)}catch{return m.call(this,w)}}}function l(){v&&g&&(v=!1,g.length?b=g.concat(b):_=-1,b.length&&d())}function d(){if(!v){var w=u(l);v=!0;for(var E=b.length;E;){for(g=b,b=[];++_1)for(var O=1;O=3&&(xe.depth=arguments[2]),arguments.length>=4&&(xe.colors=arguments[3]),v(ce)?xe.showHidden=ce:ce&&a._extend(xe,ce),F(xe.showHidden)&&(xe.showHidden=!1),F(xe.depth)&&(xe.depth=2),F(xe.colors)&&(xe.colors=!1),F(xe.customInspect)&&(xe.customInspect=!0),xe.colors&&(xe.stylize=c),f(xe,de,xe.depth)}function c(de,ce){var xe=u.styles[ce];return xe?"\x1B["+u.colors[xe][0]+"m"+de+"\x1B["+u.colors[xe][1]+"m":de}function l(de,ce){return de}function d(de){var ce={};return de.forEach(function(xe,Pe){ce[xe]=!0}),ce}function f(de,ce,xe){if(de.customInspect&&ce&&V(ce.inspect)&&ce.inspect!==a.inspect&&(!ce.constructor||ce.constructor.prototype!==ce)){var Pe=ce.inspect(xe,de);return O(Pe)||(Pe=f(de,Pe,xe)),Pe}var we=h(de,ce);if(we)return we;var Re=Object.keys(ce),Se=d(Re);if(de.showHidden&&(Re=Object.getOwnPropertyNames(ce)),N(ce)&&(Re.indexOf("message")>=0||Re.indexOf("description")>=0))return p(ce);if(Re.length===0){if(V(ce)){var z=ce.name?": "+ce.name:"";return de.stylize("[Function"+z+"]","special")}if(x(ce))return de.stylize(RegExp.prototype.toString.call(ce),"regexp");if(j(ce))return de.stylize(Date.prototype.toString.call(ce),"date");if(N(ce))return p(ce)}var M="",k=!1,T=["{","}"];if(b(ce)&&(k=!0,T=["[","]"]),V(ce)&&(M=" [Function"+(ce.name?": "+ce.name:"")+"]"),x(ce)&&(M=" "+RegExp.prototype.toString.call(ce)),j(ce)&&(M=" "+Date.prototype.toUTCString.call(ce)),N(ce)&&(M=" "+p(ce)),Re.length===0&&(!k||ce.length==0))return T[0]+M+T[1];if(xe<0)return x(ce)?de.stylize(RegExp.prototype.toString.call(ce),"regexp"):de.stylize("[Object]","special");de.seen.push(ce);var R;return R=k?m(de,ce,xe,Se,Re):Re.map(function(U){return y(de,ce,xe,Se,U,k)}),de.seen.pop(),g(R,M,T)}function h(de,ce){if(F(ce))return de.stylize("undefined","undefined");if(O(ce)){var xe="'"+JSON.stringify(ce).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return de.stylize(xe,"string")}return E(ce)?de.stylize(""+ce,"number"):v(ce)?de.stylize(""+ce,"boolean"):_(ce)?de.stylize("null","null"):void 0}function p(de){return"["+Error.prototype.toString.call(de)+"]"}function m(de,ce,xe,Pe,we){for(var Re=[],Se=0,z=ce.length;Se-1&&(z=Re?z.split(` @@ -317,22 +317,22 @@ ${" ".repeat(this.indents)}${r}`:r,"utf-8"),this}newLine(r=2){return this.write( `)):z=de.stylize("[Circular]","special")),F(Se)){if(Re&&we.match(/^\d+$/))return z;(Se=JSON.stringify(""+we)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Se=Se.substr(1,Se.length-2),Se=de.stylize(Se,"name")):(Se=Se.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Se=de.stylize(Se,"string"))}return Se+": "+z}function g(de,ce,xe){var Pe=0;return de.reduce(function(we,Re){return Pe++,Re.indexOf(` `)>=0&&Pe++,we+Re.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?xe[0]+(ce===""?"":ce+` `)+" "+de.join(`, - `)+" "+xe[1]:xe[0]+ce+" "+de.join(", ")+" "+xe[1]}function b(de){return Array.isArray(de)}function v(de){return typeof de=="boolean"}function _(de){return de===null}function w(de){return de==null}function E(de){return typeof de=="number"}function O(de){return typeof de=="string"}function L(de){return typeof de=="symbol"}function F(de){return de===void 0}function x(de){return P(de)&&q(de)==="[object RegExp]"}function P(de){return typeof de=="object"&&de!==null}function j(de){return P(de)&&q(de)==="[object Date]"}function N(de){return P(de)&&(q(de)==="[object Error]"||de instanceof Error)}function V(de){return typeof de=="function"}function $(de){return de===null||typeof de=="boolean"||typeof de=="number"||typeof de=="string"||typeof de=="symbol"||de===void 0}function q(de){return Object.prototype.toString.call(de)}function H(de){return de<10?"0"+de.toString(10):de.toString(10)}function X(){var de=new Date,ce=[H(de.getHours()),H(de.getMinutes()),H(de.getSeconds())].join(":");return[de.getDate(),$e[de.getMonth()],ce].join(" ")}function Y(de,ce){return Object.prototype.hasOwnProperty.call(de,ce)}var he=/%[sdj%]/g;a.format=function(de){if(!O(de)){for(var ce=[],xe=0;xe=we)return M;switch(M){case"%s":return String(Pe[xe++]);case"%d":return Number(Pe[xe++]);case"%j":try{return JSON.stringify(Pe[xe++])}catch{return"[Circular]"}default:return M}}),Se=Pe[xe];xe3&&arguments[3]!==void 0?arguments[3]:1,it=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){return 1},ot=Object.create(ba.prototype);return d(ot),we(ot,Object.create(Io.prototype),ue,ye,Ae,Ze,it),ot}function l(ue,ye,Ae){var Ze=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,it=arguments.length>4&&arguments[4]!==void 0?arguments[4]:void 0,ot=Object.create(ba.prototype);return d(ot),K(ot,Object.create(wl.prototype),ue,ye,Ae,Ze,it),ot}function d(ue){ue._state="readable",ue._reader=void 0,ue._storedError=void 0,ue._disturbed=!1}function f(ue){return!!$r(ue)&&!!Object.prototype.hasOwnProperty.call(ue,"_readableStreamController")}function h(ue){return ue._disturbed}function p(ue){return ue._reader!==void 0}function m(ue,ye){function Ae(){return H(it).then(function(gn){var Vn=gn.value;if(gn.done===!0&&ot===!1&&(Nt===!1&&Te(Zt._readableStreamController),Vt===!1&&Te(br._readableStreamController),ot=!0),ot!==!0){var wa=Vn,pn=Vn;Nt===!1&&Ne(Zt._readableStreamController,wa),Vt===!1&&Ne(br._readableStreamController,pn)}})}function Ze(){}var it=u(ue),ot=!1,Nt=!1,Vt=!1,ir=void 0,Dr=void 0,Zt=void 0,br=void 0,kn=void 0,Nn=new Promise(function(gn){kn=gn});return Zt=c(Ze,Ae,function(Vn){if(Nt=!0,ir=Vn,Vt===!0){var wa=tt([ir,Dr]),pn=b(ue,wa);kn(pn)}return Nn}),br=c(Ze,Ae,function(Vn){if(Vt=!0,Dr=Vn,Nt===!0){var wa=tt([ir,Dr]),pn=b(ue,wa);kn(pn)}return Nn}),it._closedPromise.catch(function(gn){ot!==!0&&(de(Zt._readableStreamController,gn),de(br._readableStreamController,gn),ot=!0)}),[Zt,br]}function y(ue){return new Promise(function(ye,Ae){var Ze={_resolve:ye,_reject:Ae};ue._reader._readIntoRequests.push(Ze)})}function g(ue){return new Promise(function(ye,Ae){var Ze={_resolve:ye,_reject:Ae};ue._reader._readRequests.push(Ze)})}function b(ue,ye){return ue._disturbed=!0,ue._state==="closed"?Promise.resolve(void 0):ue._state==="errored"?Promise.reject(ue._storedError):(v(ue),ue._readableStreamController[Zr](ye).then(function(){}))}function v(ue){ue._state="closed";var ye=ue._reader;if(ye!==void 0){if(j(ye)===!0){var Ae=!0,Ze=!1,it=void 0;try{for(var ot,Nt=ye._readRequests[Symbol.iterator]();!(Ae=(ot=Nt.next()).done);Ae=!0)(0,ot.value._resolve)(ve(void 0,!0))}catch(Vt){Ze=!0,it=Vt}finally{try{!Ae&&Nt.return&&Nt.return()}finally{if(Ze)throw it}}ye._readRequests=[]}at(ye)}}function _(ue,ye){ue._state="errored",ue._storedError=ye;var Ae=ue._reader;if(Ae!==void 0){if(j(Ae)===!0){var Ze=!0,it=!1,ot=void 0;try{for(var Nt,Vt=Ae._readRequests[Symbol.iterator]();!(Ze=(Nt=Vt.next()).done);Ze=!0)Nt.value._reject(ye)}catch(Nn){it=!0,ot=Nn}finally{try{!Ze&&Vt.return&&Vt.return()}finally{if(it)throw ot}}Ae._readRequests=[]}else{var ir=!0,Dr=!1,Zt=void 0;try{for(var br,kn=Ae._readIntoRequests[Symbol.iterator]();!(ir=(br=kn.next()).done);ir=!0)br.value._reject(ye)}catch(Nn){Dr=!0,Zt=Nn}finally{try{!ir&&kn.return&&kn.return()}finally{if(Dr)throw Zt}}Ae._readIntoRequests=[]}Ye(Ae,ye),Ae._closedPromise.catch(function(){})}}function w(ue,ye,Ae){ue._reader._readIntoRequests.shift()._resolve(ve(ye,Ae))}function E(ue,ye,Ae){ue._reader._readRequests.shift()._resolve(ve(ye,Ae))}function O(ue){return ue._reader._readIntoRequests.length}function L(ue){return ue._reader._readRequests.length}function F(ue){var ye=ue._reader;return ye!==void 0&&P(ye)!==!1}function x(ue){var ye=ue._reader;return ye!==void 0&&j(ye)!==!1}function P(ue){return!!$r(ue)&&!!Object.prototype.hasOwnProperty.call(ue,"_readIntoRequests")}function j(ue){return!!$r(ue)&&!!Object.prototype.hasOwnProperty.call(ue,"_readRequests")}function N(ue,ye){ue._ownerReadableStream=ye,ye._reader=ue,ye._state==="readable"?Oe(ue):ye._state==="closed"?Ue(ue):(De(ue,ye._storedError),ue._closedPromise.catch(function(){}))}function V(ue,ye){return b(ue._ownerReadableStream,ye)}function $(ue){ue._ownerReadableStream._state==="readable"?Ye(ue,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):ut(ue,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),ue._closedPromise.catch(function(){}),ue._ownerReadableStream._reader=void 0,ue._ownerReadableStream=void 0}function q(ue,ye){var Ae=ue._ownerReadableStream;return Ae._disturbed=!0,Ae._state==="errored"?Promise.reject(Ae._storedError):le(Ae._readableStreamController,ye)}function H(ue){var ye=ue._ownerReadableStream;return ye._disturbed=!0,ye._state==="closed"?Promise.resolve(ve(void 0,!0)):ye._state==="errored"?Promise.reject(ye._storedError):ye._readableStreamController[Va]()}function X(ue){return!!$r(ue)&&!!Object.prototype.hasOwnProperty.call(ue,"_controlledReadableStream")}function Y(ue){he(ue)!==!1&&(ue._pulling!==!0?(ue._pulling=!0,ue._pullAlgorithm().then(function(){if(ue._pulling=!1,ue._pullAgain===!0)return ue._pullAgain=!1,Y(ue)},function(ye){de(ue,ye)}).catch(Gt)):ue._pullAgain=!0)}function he(ue){var ye=ue._controlledReadableStream;return Pe(ue)!==!1&&ue._started!==!1&&(p(ye)===!0&&L(ye)>0||ce(ue)>0)}function Te(ue){var ye=ue._controlledReadableStream;ue._closeRequested=!0,ue._queue.length===0&&v(ye)}function Ne(ue,ye){var Ae=ue._controlledReadableStream;if(p(Ae)===!0&&L(Ae)>0)E(Ae,ye,!1);else{var Ze=void 0;try{Ze=ue._strategySizeAlgorithm(ye)}catch(it){throw de(ue,it),it}try{zi(ue,ye,Ze)}catch(it){throw de(ue,it),it}}Y(ue)}function $e(ue,ye){var Ae=ue._controlledReadableStream;Ai(ue),_(Ae,ye)}function de(ue,ye){ue._controlledReadableStream._state==="readable"&&$e(ue,ye)}function ce(ue){var ye=ue._controlledReadableStream._state;return ye==="errored"?null:ye==="closed"?0:ue._strategyHWM-ue._queueTotalSize}function xe(ue){return he(ue)!==!0}function Pe(ue){var ye=ue._controlledReadableStream._state;return ue._closeRequested===!1&&ye==="readable"}function we(ue,ye,Ae,Ze,it,ot,Nt){ye._controlledReadableStream=ue,ye._queue=void 0,ye._queueTotalSize=void 0,Ai(ye),ye._started=!1,ye._closeRequested=!1,ye._pullAgain=!1,ye._pulling=!1,ye._strategySizeAlgorithm=Nt,ye._strategyHWM=ot,ye._pullAlgorithm=Ze,ye._cancelAlgorithm=it,ue._readableStreamController=ye;var Vt=Ae();Promise.resolve(Vt).then(function(){ye._started=!0,Y(ye)},function(ir){de(ye,ir)}).catch(Gt)}function Re(ue,ye,Ae,Ze){var it=Object.create(Io.prototype),ot=be(ye,"pull",0,[it]),Nt=be(ye,"cancel",1,[]);we(ue,it,function(){return Je(ye,"start",[it])},ot,Nt,Ae,Ze)}function Se(ue){return!!$r(ue)&&!!Object.prototype.hasOwnProperty.call(ue,"_controlledReadableByteStream")}function z(ue){return!!$r(ue)&&!!Object.prototype.hasOwnProperty.call(ue,"_associatedReadableByteStreamController")}function M(ue){Me(ue)!==!1&&(ue._pulling!==!0?(ue._pulling=!0,ue._pullAlgorithm().then(function(){ue._pulling=!1,ue._pullAgain===!0&&(ue._pullAgain=!1,M(ue))},function(ye){ue._controlledReadableByteStream._state==="readable"&&qe(ue,ye)}).catch(Gt)):ue._pullAgain=!0)}function k(ue){se(ue),ue._pendingPullIntos=[]}function T(ue,ye){var Ae=!1;ue._state==="closed"&&(Ae=!0);var Ze=R(ye);ye.readerType==="default"?E(ue,Ze,Ae):w(ue,Ze,Ae)}function R(ue){var ye=ue.bytesFilled,Ae=ue.elementSize;return new ue.ctor(ue.buffer,ue.byteOffset,ye/Ae)}function U(ue,ye,Ae,Ze){ue._queue.push({buffer:ye,byteOffset:Ae,byteLength:Ze}),ue._queueTotalSize+=Ze}function G(ue,ye){var Ae=ye.elementSize,Ze=ye.bytesFilled-ye.bytesFilled%Ae,it=Math.min(ue._queueTotalSize,ye.byteLength-ye.bytesFilled),ot=ye.bytesFilled+it,Nt=ot-ot%Ae,Vt=it,ir=!1;Nt>Ze&&(Vt=Nt-ye.bytesFilled,ir=!0);for(var Dr=ue._queue;Vt>0;){var Zt=Dr[0],br=Math.min(Vt,Zt.byteLength),kn=ye.byteOffset+ye.bytesFilled;ie(ye.buffer,kn,Zt.buffer,Zt.byteOffset,br),Zt.byteLength===br?Dr.shift():(Zt.byteOffset+=br,Zt.byteLength-=br),ue._queueTotalSize-=br,Q(ue,br,ye),Vt-=br}return ir}function Q(ue,ye,Ae){se(ue),Ae.bytesFilled+=ye}function Z(ue){ue._queueTotalSize===0&&ue._closeRequested===!0?v(ue._controlledReadableByteStream):M(ue)}function se(ue){ue._byobRequest!==void 0&&(ue._byobRequest._associatedReadableByteStreamController=void 0,ue._byobRequest._view=void 0,ue._byobRequest=void 0)}function re(ue){for(;ue._pendingPullIntos.length>0;){if(ue._queueTotalSize===0)return;var ye=ue._pendingPullIntos[0];G(ue,ye)===!0&&(Ee(ue),T(ue._controlledReadableByteStream,ye))}}function le(ue,ye){var Ae=ue._controlledReadableByteStream,Ze=1;ye.constructor!==DataView&&(Ze=ye.constructor.BYTES_PER_ELEMENT);var it=ye.constructor,ot={buffer:rt(ye.buffer),byteOffset:ye.byteOffset,byteLength:ye.byteLength,bytesFilled:0,elementSize:Ze,ctor:it,readerType:"byob"};if(ue._pendingPullIntos.length>0)return ue._pendingPullIntos.push(ot),y(Ae);if(Ae._state==="closed"){var Nt=new ye.constructor(ot.buffer,ot.byteOffset,0);return Promise.resolve(ve(Nt,!0))}if(ue._queueTotalSize>0){if(G(ue,ot)===!0){var Vt=R(ot);return Z(ue),Promise.resolve(ve(Vt,!1))}if(ue._closeRequested===!0){var ir=new TypeError("Insufficient bytes to fill elements in the given buffer");return qe(ue,ir),Promise.reject(ir)}}ue._pendingPullIntos.push(ot);var Dr=y(Ae);return M(ue),Dr}function pe(ue,ye){ye.buffer=rt(ye.buffer);var Ae=ue._controlledReadableByteStream;if(F(Ae)===!0)for(;O(Ae)>0;)T(Ae,Ee(ue))}function _e(ue,ye,Ae){if(Ae.bytesFilled+ye>Ae.byteLength)throw new RangeError("bytesWritten out of range");if(Q(ue,ye,Ae),!(Ae.bytesFilled0){var it=Ae.byteOffset+Ae.bytesFilled,ot=Ae.buffer.slice(it-Ze,it);U(ue,ot,0,ot.byteLength)}Ae.buffer=rt(Ae.buffer),Ae.bytesFilled-=Ze,T(ue._controlledReadableByteStream,Ae),re(ue)}}function Ie(ue,ye){var Ae=ue._pendingPullIntos[0];if(ue._controlledReadableByteStream._state==="closed"){if(ye!==0)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");pe(ue,Ae)}else _e(ue,ye,Ae)}function Ee(ue){var ye=ue._pendingPullIntos.shift();return se(ue),ye}function Me(ue){var ye=ue._controlledReadableByteStream;return ye._state==="readable"&&ue._closeRequested!==!0&&ue._started!==!1&&(x(ye)===!0&&L(ye)>0||F(ye)===!0&&O(ye)>0||W(ue)>0)}function Ce(ue){var ye=ue._controlledReadableByteStream;if(ue._queueTotalSize>0)ue._closeRequested=!0;else{if(ue._pendingPullIntos.length>0&&ue._pendingPullIntos[0].bytesFilled>0){var Ae=new TypeError("Insufficient bytes to fill elements in the given buffer");throw qe(ue,Ae),Ae}v(ye)}}function ke(ue,ye){var Ae=ue._controlledReadableByteStream,Ze=ye.buffer,it=ye.byteOffset,ot=ye.byteLength,Nt=rt(Ze);x(Ae)===!0?L(Ae)===0?U(ue,Nt,it,ot):E(Ae,new Uint8Array(Nt,it,ot),!1):F(Ae)===!0?(U(ue,Nt,it,ot),re(ue)):U(ue,Nt,it,ot)}function qe(ue,ye){var Ae=ue._controlledReadableByteStream;k(ue),Ai(ue),_(Ae,ye)}function W(ue){var ye=ue._controlledReadableByteStream._state;return ye==="errored"?null:ye==="closed"?0:ue._strategyHWM-ue._queueTotalSize}function D(ue,ye){if(ye=Number(ye),Fe(ye)===!1)throw new RangeError("bytesWritten must be a finite");Ie(ue,ye)}function B(ue,ye){var Ae=ue._pendingPullIntos[0];if(Ae.byteOffset+Ae.bytesFilled!==ye.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(Ae.byteLength!==ye.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");Ae.buffer=ye.buffer,Ie(ue,ye.byteLength)}function K(ue,ye,Ae,Ze,it,ot,Nt){ye._controlledReadableByteStream=ue,ye._pullAgain=!1,ye._pulling=!1,k(ye),ye._queue=ye._queueTotalSize=void 0,Ai(ye),ye._closeRequested=!1,ye._started=!1,ye._strategyHWM=Qe(ot),ye._pullAlgorithm=Ze,ye._cancelAlgorithm=it,ye._autoAllocateChunkSize=Nt,ye._pendingPullIntos=[],ue._readableStreamController=ye;var Vt=Ae();Promise.resolve(Vt).then(function(){ye._started=!0,M(ye)},function(ir){ue._state==="readable"&&qe(ye,ir)}).catch(Gt)}function ne(ue,ye,Ae){var Ze=Object.create(wl.prototype),it=be(ye,"pull",0,[Ze]),ot=be(ye,"cancel",1,[]),Nt=ye.autoAllocateChunkSize;if(Nt!==void 0&&(Number.isInteger(Nt)===!1||Nt<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");K(ue,Ze,function(){return Je(ye,"start",[Ze])},it,ot,Ae,Nt)}function fe(ue,ye,Ae){ue._associatedReadableByteStreamController=ye,ue._view=Ae}function ge(ue){return new TypeError("ReadableStream.prototype."+ue+" can only be used on a ReadableStream")}function Le(ue){return new TypeError("Cannot "+ue+" a stream using a released reader")}function ee(ue){return new TypeError("ReadableStreamDefaultReader.prototype."+ue+" can only be used on a ReadableStreamDefaultReader")}function Oe(ue){ue._closedPromise=new Promise(function(ye,Ae){ue._closedPromise_resolve=ye,ue._closedPromise_reject=Ae})}function De(ue,ye){ue._closedPromise=Promise.reject(ye),ue._closedPromise_resolve=void 0,ue._closedPromise_reject=void 0}function Ue(ue){ue._closedPromise=Promise.resolve(void 0),ue._closedPromise_resolve=void 0,ue._closedPromise_reject=void 0}function Ye(ue,ye){ue._closedPromise_reject(ye),ue._closedPromise_resolve=void 0,ue._closedPromise_reject=void 0}function ut(ue,ye){ue._closedPromise=Promise.reject(ye)}function at(ue){ue._closedPromise_resolve(void 0),ue._closedPromise_resolve=void 0,ue._closedPromise_reject=void 0}function ct(ue){return new TypeError("ReadableStreamBYOBReader.prototype."+ue+" can only be used on a ReadableStreamBYOBReader")}function ht(ue){return new TypeError("ReadableStreamDefaultController.prototype."+ue+" can only be used on a ReadableStreamDefaultController")}function te(ue){return new TypeError("ReadableStreamBYOBRequest.prototype."+ue+" can only be used on a ReadableStreamBYOBRequest")}function S(ue){return new TypeError("ReadableByteStreamController.prototype."+ue+" can only be used on a ReadableByteStreamController")}function A(ue){try{Promise.prototype.then.call(ue,void 0,function(){})}catch{}}var C=function(){function ue(ye,Ae){for(var Ze=0;Ze0&&arguments[0]!==void 0?arguments[0]:{},Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ze=Ae.size,it=Ae.highWaterMark;s(this,ue),d(this);var ot=ye.type;if(String(ot)==="bytes"){if(it===void 0&&(it=0),it=Qe(it),Ze!==void 0)throw new RangeError("The strategy for a byte stream cannot have a size function");ne(this,ye,it)}else{if(ot!==void 0)throw new RangeError("Invalid type is specified");it===void 0&&(it=1),Re(this,ye,it=Qe(it),di(Ze))}}return C(ue,[{key:"cancel",value:function(Ae){return f(this)===!1?Promise.reject(ge("cancel")):p(this)===!0?Promise.reject(new TypeError("Cannot cancel a stream that already has a reader")):b(this,Ae)}},{key:"getReader",value:function(){var Ae=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).mode;if(f(this)===!1)throw ge("getReader");if(Ae===void 0)return u(this);if((Ae=String(Ae))==="byob")return o(this);throw new RangeError("Invalid mode is specified")}},{key:"pipeThrough",value:function(Ae,Ze){var it=Ae.writable,ot=Ae.readable;if(it===void 0||ot===void 0)throw new TypeError("readable and writable arguments must be defined");return A(this.pipeTo(it,Ze)),ot}},{key:"pipeTo",value:function(Ae){var Ze=this,it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ot=it.preventClose,Nt=it.preventAbort,Vt=it.preventCancel;if(f(this)===!1)return Promise.reject(ge("pipeTo"));if(xo(Ae)===!1)return Promise.reject(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));if(ot=!!ot,Nt=!!Nt,Vt=!!Vt,p(this)===!0)return Promise.reject(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream"));if(Vr(Ae)===!0)return Promise.reject(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream"));var ir=u(this),Dr=xs(Ae),Zt=!1,br=Promise.resolve();return new Promise(function(kn,Nn){function gn(){return Zt===!0?Promise.resolve():Dr._readyPromise.then(function(){return H(ir).then(function(Yt){var yn=Yt.value;Yt.done!==!0&&(br=un(Dr,yn).catch(function(){}))})}).then(gn)}function Vn(){var Yt=br;return br.then(function(){return Yt!==br?Vn():void 0})}function wa(Yt,yn,Ps){Yt._state==="errored"?Ps(Yt._storedError):yn.catch(Ps).catch(Gt)}function pn(Yt,yn,Ps){function Po(){Yt().then(function(){return Bu(yn,Ps)},function(k1){return Bu(!0,k1)}).catch(Gt)}Zt!==!0&&(Zt=!0,Ae._state==="writable"&&_a(Ae)===!1?Vn().then(Po):Po())}function Is(Yt,yn){Zt!==!0&&(Zt=!0,Ae._state==="writable"&&_a(Ae)===!1?Vn().then(function(){return Bu(Yt,yn)}).catch(Gt):Bu(Yt,yn))}function Bu(Yt,yn){Oi(Dr),$(ir),Yt?Nn(yn):kn(void 0)}if(wa(Ze,ir._closedPromise,function(Yt){Nt===!1?pn(function(){return fi(Ae,Yt)},!0,Yt):Is(!0,Yt)}),wa(Ae,Dr._closedPromise,function(Yt){Vt===!1?pn(function(){return b(Ze,Yt)},!0,Yt):Is(!0,Yt)}),function(yn,Ps,Po){yn._state==="closed"?Po():Ps.then(Po).catch(Gt)}(Ze,ir._closedPromise,function(){ot===!1?pn(function(){return on(Dr)}):Is()}),_a(Ae)===!0||Ae._state==="closed"){var qu=new TypeError("the destination writable stream closed before all data could be piped to it");Vt===!1?pn(function(){return b(Ze,qu)},!0,qu):Is(!0,qu)}gn().catch(function(Yt){br=Promise.resolve(),Gt(Yt)})})}},{key:"tee",value:function(){if(f(this)===!1)throw ge("tee");var Ae=m(this);return tt(Ae)}},{key:"locked",get:function(){if(f(this)===!1)throw ge("locked");return p(this)}}]),ue}();n.exports={CreateReadableByteStream:l,CreateReadableStream:c,ReadableStream:ba,IsReadableStreamDisturbed:h,ReadableStreamDefaultControllerClose:Te,ReadableStreamDefaultControllerEnqueue:Ne,ReadableStreamDefaultControllerError:$e,ReadableStreamDefaultControllerGetDesiredSize:ce,ReadableStreamDefaultControllerHasBackpressure:xe,ReadableStreamDefaultControllerCanCloseOrEnqueue:Pe};var Un=function(){function ue(ye){if(s(this,ue),f(ye)===!1)throw new TypeError("ReadableStreamDefaultReader can only be constructed with a ReadableStream instance");if(p(ye)===!0)throw new TypeError("This stream has already been locked for exclusive reading by another reader");N(this,ye),this._readRequests=[]}return C(ue,[{key:"cancel",value:function(Ae){return j(this)===!1?Promise.reject(ee("cancel")):this._ownerReadableStream===void 0?Promise.reject(Le("cancel")):V(this,Ae)}},{key:"read",value:function(){return j(this)===!1?Promise.reject(ee("read")):this._ownerReadableStream===void 0?Promise.reject(Le("read from")):H(this)}},{key:"releaseLock",value:function(){if(j(this)===!1)throw ee("releaseLock");if(this._ownerReadableStream!==void 0){if(this._readRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");$(this)}}},{key:"closed",get:function(){return j(this)===!1?Promise.reject(ee("closed")):this._closedPromise}}]),ue}(),Pn=function(){function ue(ye){if(s(this,ue),!f(ye))throw new TypeError("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(Se(ye._readableStreamController)===!1)throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(p(ye))throw new TypeError("This stream has already been locked for exclusive reading by another reader");N(this,ye),this._readIntoRequests=[]}return C(ue,[{key:"cancel",value:function(Ae){return P(this)?this._ownerReadableStream===void 0?Promise.reject(Le("cancel")):V(this,Ae):Promise.reject(ct("cancel"))}},{key:"read",value:function(Ae){return P(this)?this._ownerReadableStream===void 0?Promise.reject(Le("read from")):ArrayBuffer.isView(Ae)?lt(Ae.buffer)===!0?Promise.reject(new TypeError("Cannot read into a view onto a detached ArrayBuffer")):Ae.byteLength===0?Promise.reject(new TypeError("view must have non-zero byteLength")):q(this,Ae):Promise.reject(new TypeError("view must be an array buffer view")):Promise.reject(ct("read"))}},{key:"releaseLock",value:function(){if(!P(this))throw ct("releaseLock");if(this._ownerReadableStream!==void 0){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");$(this)}}},{key:"closed",get:function(){return P(this)?this._closedPromise:Promise.reject(ct("closed"))}}]),ue}(),Io=function(){function ue(){throw s(this,ue),new TypeError}return C(ue,[{key:"close",value:function(){if(X(this)===!1)throw ht("close");if(Pe(this)===!1)throw new TypeError("The stream is not in a state that permits close");Te(this)}},{key:"enqueue",value:function(Ae){if(X(this)===!1)throw ht("enqueue");if(Pe(this)===!1)throw new TypeError("The stream is not in a state that permits enqueue");return Ne(this,Ae)}},{key:"error",value:function(Ae){if(X(this)===!1)throw ht("error");var Ze=this._controlledReadableStream;if(Ze._state!=="readable")throw new TypeError("The stream is "+Ze._state+" and so cannot be errored");$e(this,Ae)}},{key:Zr,value:function(Ae){return Ai(this),this._cancelAlgorithm(Ae)}},{key:Va,value:function(){var Ae=this._controlledReadableStream;if(this._queue.length>0){var Ze=Ct(this);return this._closeRequested===!0&&this._queue.length===0?v(Ae):Y(this),Promise.resolve(ve(Ze,!1))}var it=g(Ae);return Y(this),it}},{key:"desiredSize",get:function(){if(X(this)===!1)throw ht("desiredSize");return ce(this)}}]),ue}(),va=function(){function ue(){throw s(this,ue),new TypeError("ReadableStreamBYOBRequest cannot be used directly")}return C(ue,[{key:"respond",value:function(Ae){if(z(this)===!1)throw te("respond");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(lt(this._view.buffer)===!0)throw new TypeError("The BYOB request's buffer has been detached and so cannot be used as a response");D(this._associatedReadableByteStreamController,Ae)}},{key:"respondWithNewView",value:function(Ae){if(z(this)===!1)throw te("respond");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(!ArrayBuffer.isView(Ae))throw new TypeError("You can only respond with array buffer views");if(lt(Ae.buffer)===!0)throw new TypeError("The supplied view's buffer has been detached and so cannot be used as a response");B(this._associatedReadableByteStreamController,Ae)}},{key:"view",get:function(){if(z(this)===!1)throw te("view");return this._view}}]),ue}(),wl=function(){function ue(){throw s(this,ue),new TypeError("ReadableByteStreamController constructor cannot be used directly")}return C(ue,[{key:"close",value:function(){if(Se(this)===!1)throw S("close");if(this._closeRequested===!0)throw new TypeError("The stream has already been closed; do not close it again!");var Ae=this._controlledReadableByteStream._state;if(Ae!=="readable")throw new TypeError("The stream (in "+Ae+" state) is not in the readable state and cannot be closed");Ce(this)}},{key:"enqueue",value:function(Ae){if(Se(this)===!1)throw S("enqueue");if(this._closeRequested===!0)throw new TypeError("stream is closed or draining");var Ze=this._controlledReadableByteStream._state;if(Ze!=="readable")throw new TypeError("The stream (in "+Ze+" state) is not in the readable state and cannot be enqueued to");if(!ArrayBuffer.isView(Ae))throw new TypeError("You can only enqueue array buffer views when using a ReadableByteStreamController");if(lt(Ae.buffer)===!0)throw new TypeError("Cannot enqueue a view onto a detached ArrayBuffer");ke(this,Ae)}},{key:"error",value:function(Ae){if(Se(this)===!1)throw S("error");var Ze=this._controlledReadableByteStream;if(Ze._state!=="readable")throw new TypeError("The stream is "+Ze._state+" and so cannot be errored");qe(this,Ae)}},{key:Zr,value:function(Ae){return this._pendingPullIntos.length>0&&(this._pendingPullIntos[0].bytesFilled=0),Ai(this),this._cancelAlgorithm(Ae)}},{key:Va,value:function(){var Ae=this._controlledReadableByteStream;if(this._queueTotalSize>0){var Ze=this._queue.shift();this._queueTotalSize-=Ze.byteLength,Z(this);var it=void 0;try{it=new Uint8Array(Ze.buffer,Ze.byteOffset,Ze.byteLength)}catch(Dr){return Promise.reject(Dr)}return Promise.resolve(ve(it,!1))}var ot=this._autoAllocateChunkSize;if(ot!==void 0){var Nt=void 0;try{Nt=new ArrayBuffer(ot)}catch(Dr){return Promise.reject(Dr)}var Vt={buffer:Nt,byteOffset:0,byteLength:ot,bytesFilled:0,elementSize:1,ctor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(Vt)}var ir=g(Ae);return M(this),ir}},{key:"byobRequest",get:function(){if(Se(this)===!1)throw S("byobRequest");if(this._byobRequest===void 0&&this._pendingPullIntos.length>0){var Ae=this._pendingPullIntos[0],Ze=new Uint8Array(Ae.buffer,Ae.byteOffset+Ae.bytesFilled,Ae.byteLength-Ae.bytesFilled),it=Object.create(va.prototype);fe(it,this,Ze),this._byobRequest=it}return this._byobRequest}},{key:"desiredSize",get:function(){if(Se(this)===!1)throw S("desiredSize");return W(this)}}]),ue}()},{"./helpers.js":10,"./queue-with-sizes.js":11,"./utils.js":14,"./writable-stream.js":15,"better-assert":16}],13:[function(r,n,a){function s(z,M){if(!(z instanceof M))throw new TypeError("Cannot call a class as a function")}function o(z,M,k){var T=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,R=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){return 1},U=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,G=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){return 1},Q=Object.create(Re.prototype),Z=void 0;u(Q,new Promise(function(re){Z=re}),T,R,U,G),p(Q,Object.create(Se.prototype),M,k);var se=z();return Z(se),Q}function u(z,M,k,T,R,U){function G(){return M}z._writable=Pe(G,function(Z){return v(z,Z)},function(){return w(z)},function(){return _(z)},k,T),z._readable=Y(G,function(){return E(z)},function(Z){return d(z,Z),Promise.resolve()},R,U),z._backpressure=void 0,z._backpressureChangePromise=void 0,z._backpressureChangePromise_resolve=void 0,f(z,!0),z._transformStreamController=void 0}function c(z){return!!$(z)&&!!Object.prototype.hasOwnProperty.call(z,"_transformStreamController")}function l(z,M){x("TransformStreamError()"),z._readable._state==="readable"&&Ne(z._readable._readableStreamController,M),d(z,M)}function d(z,M){we(z._writable._writableStreamController,M),z._backpressure===!0&&f(z,!1)}function f(z,M){x("TransformStreamSetBackpressure() [backpressure = "+M+"]"),z._backpressureChangePromise!==void 0&&z._backpressureChangePromise_resolve(),z._backpressureChangePromise=new Promise(function(k){z._backpressureChangePromise_resolve=k}),z._backpressure=M}function h(z){return!!$(z)&&!!Object.prototype.hasOwnProperty.call(z,"_controlledTransformStream")}function p(z,M,k,T){M._controlledTransformStream=z,z._transformStreamController=M,M._transformAlgorithm=k,M._flushAlgorithm=T}function m(z,M){var k=Object.create(Se.prototype),T=function(Q){try{return y(k,Q),Promise.resolve()}catch(Z){return Promise.reject(Z)}},R=M.transform;if(R!==void 0){if(typeof R!="function")throw new TypeError("transform is not a method");T=function(Q){return V(R,M,[Q,k]).catch(function(Z){throw l(z,Z),Z})}}var U=N(M,"flush",0,[k]);p(z,k,T,U)}function y(z,M){x("TransformStreamDefaultControllerEnqueue()");var k=z._controlledTransformStream,T=k._readable._readableStreamController;if(ce(T)===!1)throw new TypeError("Readable side is not in a state that permits enqueue");try{Te(T,M)}catch(R){throw d(k,R),k._readable._storedError}de(T)!==k._backpressure&&f(k,!0)}function g(z,M){l(z._controlledTransformStream,M)}function b(z){x("TransformStreamDefaultControllerTerminate()");var M=z._controlledTransformStream,k=M._readable._readableStreamController;ce(k)===!0&&he(k),d(M,new TypeError("TransformStream terminated"))}function v(z,M){x("TransformStreamDefaultSinkWriteAlgorithm()");var k=z._transformStreamController;return z._backpressure===!0?z._backpressureChangePromise.then(function(){var T=z._writable;if(T._state==="erroring")throw T._storedError;return k._transformAlgorithm(M)}):k._transformAlgorithm(M)}function _(z){return l(z,new TypeError("Writable side aborted")),Promise.resolve()}function w(z){x("TransformStreamDefaultSinkCloseAlgorithm()");var M=z._readable;return z._transformStreamController._flushAlgorithm().then(function(){if(M._state==="errored")throw M._storedError;var k=M._readableStreamController;ce(k)===!0&&he(k)}).catch(function(k){throw l(z,k),M._storedError})}function E(z){return x("TransformStreamDefaultSourcePullAlgorithm()"),f(z,!1),z._backpressureChangePromise}function O(z){return new TypeError("TransformStreamDefaultController.prototype."+z+" can only be used on a TransformStreamDefaultController")}function L(z){return new TypeError("TransformStream.prototype."+z+" can only be used on a TransformStream")}var F=function(){function z(M,k){for(var T=0;T0&&arguments[0]!==void 0?arguments[0]:{},k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(s(this,z),M.readableType!==void 0)throw new RangeError("Invalid readable type specified");if(M.writableType!==void 0)throw new RangeError("Invalid writable type specified");var R=k.size,U=H(R),G=k.highWaterMark;G===void 0&&(G=1),G=q(G);var Q=T.size,Z=H(Q),se=T.highWaterMark;se===void 0&&(se=0),se=q(se);var re=void 0;u(this,new Promise(function(pe){re=pe}),G,U,se,Z),m(this,M);var le=j(M,"start",[this._transformStreamController]);re(le)}return F(z,[{key:"readable",get:function(){if(c(this)===!1)throw L("readable");return this._readable}},{key:"writable",get:function(){if(c(this)===!1)throw L("writable");return this._writable}}]),z}(),Se=function(){function z(){throw s(this,z),new TypeError("TransformStreamDefaultController instances cannot be created directly")}return F(z,[{key:"enqueue",value:function(k){if(h(this)===!1)throw O("enqueue");y(this,k)}},{key:"error",value:function(k){if(h(this)===!1)throw O("error");g(this,k)}},{key:"terminate",value:function(){if(h(this)===!1)throw O("terminate");b(this)}},{key:"desiredSize",get:function(){if(h(this)===!1)throw O("desiredSize");var k=this._controlledTransformStream._readable._readableStreamController;return $e(k)}}]),z}();n.exports={CreateTransformStream:o,TransformStream:Re}},{"./helpers.js":10,"./readable-stream.js":12,"./writable-stream.js":15,"better-assert":16,debug:18}],14:[function(r,n,a){var s=r("better-assert");a.rethrowAssertionErrorRejection=function(o){o&&o.constructor===s.AssertionError&&setTimeout(function(){throw o},0)}},{"better-assert":16}],15:[function(r,n,a){function s(S,A){if(!(S instanceof A))throw new TypeError("Cannot call a class as a function")}function o(S){return new ht(S)}function u(S,A,C,J){var ie=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1,be=arguments.length>5&&arguments[5]!==void 0?arguments[5]:function(){return 1},ve=Object.create(ct.prototype);return c(ve),Te(ve,Object.create(te.prototype),S,A,C,J,ie,be),ve}function c(S){S._state="writable",S._storedError=void 0,S._writer=void 0,S._writableStreamController=void 0,S._writeRequests=[],S._inFlightWriteRequest=void 0,S._closeRequest=void 0,S._inFlightCloseRequest=void 0,S._pendingAbortRequest=void 0,S._backpressure=!1}function l(S){return!!fe(S)&&!!Object.prototype.hasOwnProperty.call(S,"_writableStreamController")}function d(S){return S._writer!==void 0}function f(S,A){var C=S._state;if(C==="closed")return Promise.resolve(void 0);if(C==="errored")return Promise.reject(S._storedError);var J=new TypeError("Requested to abort");if(S._pendingAbortRequest!==void 0)return Promise.reject(J);var ie=!1;C==="erroring"&&(ie=!0,A=void 0);var be=new Promise(function(ve,Fe){S._pendingAbortRequest={_resolve:ve,_reject:Fe,_reason:A,_wasAlreadyErroring:ie}});return ie===!1&&m(S,J),be}function h(S){return new Promise(function(A,C){var J={_resolve:A,_reject:C};S._writeRequests.push(J)})}function p(S,A){qe("WritableStreamDealWithRejection(stream, %o)",A),S._state!=="writable"?y(S):m(S,A)}function m(S,A){qe("WritableStreamStartErroring(stream, %o)",A);var C=S._writableStreamController;S._state="erroring",S._storedError=A;var J=S._writer;J!==void 0&&q(J,A),E(S)===!1&&C._started===!0&&y(S)}function y(S){qe("WritableStreamFinishErroring()"),S._state="errored",S._writableStreamController[at]();var A=S._storedError,C=!0,J=!1,ie=void 0;try{for(var be,ve=S._writeRequests[Symbol.iterator]();!(C=(be=ve.next()).done);C=!0)be.value._reject(A)}catch(Je){J=!0,ie=Je}finally{try{!C&&ve.return&&ve.return()}finally{if(J)throw ie}}if(S._writeRequests=[],S._pendingAbortRequest!==void 0){var Fe=S._pendingAbortRequest;if(S._pendingAbortRequest=void 0,Fe._wasAlreadyErroring===!0)return Fe._reject(A),void F(S);S._writableStreamController[ut](Fe._reason).then(function(){Fe._resolve(),F(S)},function(Je){Fe._reject(Je),F(S)})}else F(S)}function g(S){S._inFlightWriteRequest._resolve(void 0),S._inFlightWriteRequest=void 0}function b(S,A){S._inFlightWriteRequest._reject(A),S._inFlightWriteRequest=void 0,p(S,A)}function v(S){S._inFlightCloseRequest._resolve(void 0),S._inFlightCloseRequest=void 0,S._state==="erroring"&&(S._storedError=void 0,S._pendingAbortRequest!==void 0&&(S._pendingAbortRequest._resolve(),S._pendingAbortRequest=void 0)),S._state="closed";var A=S._writer;A!==void 0&&re(A)}function _(S,A){S._inFlightCloseRequest._reject(A),S._inFlightCloseRequest=void 0,S._pendingAbortRequest!==void 0&&(S._pendingAbortRequest._reject(A),S._pendingAbortRequest=void 0),p(S,A)}function w(S){return S._closeRequest!==void 0||S._inFlightCloseRequest!==void 0}function E(S){return S._inFlightWriteRequest===void 0&&S._inFlightCloseRequest===void 0?(qe("WritableStreamHasOperationMarkedInFlight() is false"),!1):(qe("WritableStreamHasOperationMarkedInFlight() is true"),!0)}function O(S){S._inFlightCloseRequest=S._closeRequest,S._closeRequest=void 0}function L(S){S._inFlightWriteRequest=S._writeRequests.shift()}function F(S){qe("WritableStreamRejectCloseAndClosedPromiseIfNeeded()"),S._closeRequest!==void 0&&(S._closeRequest._reject(S._storedError),S._closeRequest=void 0);var A=S._writer;A!==void 0&&(Z(A,S._storedError),A._closedPromise.catch(function(){}))}function x(S,A){var C=S._writer;C!==void 0&&A!==S._backpressure&&(A===!0?Ee(C):Ce(C)),S._backpressure=A}function P(S){return!!fe(S)&&!!Object.prototype.hasOwnProperty.call(S,"_ownerWritableStream")}function j(S,A){return f(S._ownerWritableStream,A)}function N(S){var A=S._ownerWritableStream,C=A._state;if(C==="closed"||C==="errored")return Promise.reject(new TypeError("The stream (in "+C+" state) is not in the writable state and cannot be closed"));var J=new Promise(function(ie,be){var ve={_resolve:ie,_reject:be};A._closeRequest=ve});return A._backpressure===!0&&C==="writable"&&Ce(S),$e(A._writableStreamController),J}function V(S){var A=S._ownerWritableStream,C=A._state;return w(A)===!0||C==="closed"?Promise.resolve():C==="errored"?Promise.reject(A._storedError):N(S)}function $(S,A){S._closedPromiseState==="pending"?Z(S,A):se(S,A),S._closedPromise.catch(function(){})}function q(S,A){qe("WritableStreamDefaultWriterEnsureReadyPromiseRejected(writer, %o)",A),S._readyPromiseState==="pending"?Ie(S,A):Me(S,A),S._readyPromise.catch(function(){})}function H(S){var A=S._ownerWritableStream,C=A._state;return C==="errored"||C==="erroring"?null:C==="closed"?0:ce(A._writableStreamController)}function X(S){var A=S._ownerWritableStream,C=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");q(S,C),$(S,C),A._writer=void 0,S._ownerWritableStream=void 0}function Y(S,A){var C=S._ownerWritableStream,J=C._writableStreamController,ie=de(J,A);if(C!==S._ownerWritableStream)return Promise.reject(R("write to"));var be=C._state;if(be==="errored")return Promise.reject(C._storedError);if(w(C)===!0||be==="closed")return Promise.reject(new TypeError("The stream is closing or closed and cannot be written to"));if(be==="erroring")return Promise.reject(C._storedError);var ve=h(C);return xe(J,A,ie),ve}function he(S){return!!fe(S)&&!!Object.prototype.hasOwnProperty.call(S,"_controlledWritableStream")}function Te(S,A,C,J,ie,be,ve,Fe){A._controlledWritableStream=S,S._writableStreamController=A,A._queue=void 0,A._queueTotalSize=void 0,Ye(A),A._started=!1,A._strategySizeAlgorithm=Fe,A._strategyHWM=ve,A._writeAlgorithm=J,A._closeAlgorithm=ie,A._abortAlgorithm=be;var Je=z(A);x(S,Je);var lt=C();Promise.resolve(lt).then(function(){A._started=!0,Pe(A)},function(rt){A._started=!0,p(S,rt)}).catch(Le)}function Ne(S,A,C,J){var ie=Object.create(te.prototype),be=D(A,"write",1,[ie]),ve=D(A,"close",0,[]),Fe=D(A,"abort",1,[]);Te(S,ie,function(){return B(A,"start",[ie])},be,ve,Fe,C,J)}function $e(S){De(S,"close",0),Pe(S)}function de(S,A){try{return S._strategySizeAlgorithm(A)}catch(C){return we(S,C),1}}function ce(S){return S._strategyHWM-S._queueTotalSize}function xe(S,A,C){var J={chunk:A};try{De(S,J,C)}catch(be){return void we(S,be)}var ie=S._controlledWritableStream;w(ie)===!1&&ie._state==="writable"&&x(ie,z(S)),Pe(S)}function Pe(S){qe("WritableStreamDefaultControllerAdvanceQueueIfNeeded()");var A=S._controlledWritableStream;if(S._started!==!1&&A._inFlightWriteRequest===void 0){var C=A._state;if(C!=="closed"&&C!=="errored")if(C!=="erroring"){if(S._queue.length!==0){var J=Ue(S);J==="close"?Re(S):Se(S,J.chunk)}}else y(A)}}function we(S,A){S._controlledWritableStream._state==="writable"&&M(S,A)}function Re(S){var A=S._controlledWritableStream;O(A),Oe(S),S._closeAlgorithm().then(function(){v(A)},function(C){_(A,C)}).catch(Le)}function Se(S,A){var C=S._controlledWritableStream;L(C),S._writeAlgorithm(A).then(function(){g(C);var J=C._state;if(Oe(S),w(C)===!1&&J==="writable"){var ie=z(S);x(C,ie)}Pe(S)},function(J){b(C,J)}).catch(Le)}function z(S){return ce(S)<=0}function M(S,A){m(S._controlledWritableStream,A)}function k(S){return new TypeError("WritableStream.prototype."+S+" can only be used on a WritableStream")}function T(S){return new TypeError("WritableStreamDefaultWriter.prototype."+S+" can only be used on a WritableStreamDefaultWriter")}function R(S){return new TypeError("Cannot "+S+" a stream using a released writer")}function U(S){S._closedPromise=new Promise(function(A,C){S._closedPromise_resolve=A,S._closedPromise_reject=C,S._closedPromiseState="pending"})}function G(S,A){S._closedPromise=Promise.reject(A),S._closedPromise_resolve=void 0,S._closedPromise_reject=void 0,S._closedPromiseState="rejected"}function Q(S){S._closedPromise=Promise.resolve(void 0),S._closedPromise_resolve=void 0,S._closedPromise_reject=void 0,S._closedPromiseState="resolved"}function Z(S,A){S._closedPromise_reject(A),S._closedPromise_resolve=void 0,S._closedPromise_reject=void 0,S._closedPromiseState="rejected"}function se(S,A){S._closedPromise=Promise.reject(A),S._closedPromiseState="rejected"}function re(S){S._closedPromise_resolve(void 0),S._closedPromise_resolve=void 0,S._closedPromise_reject=void 0,S._closedPromiseState="resolved"}function le(S){qe("defaultWriterReadyPromiseInitialize()"),S._readyPromise=new Promise(function(A,C){S._readyPromise_resolve=A,S._readyPromise_reject=C}),S._readyPromiseState="pending"}function pe(S,A){qe("defaultWriterReadyPromiseInitializeAsRejected(writer, %o)",A),S._readyPromise=Promise.reject(A),S._readyPromise_resolve=void 0,S._readyPromise_reject=void 0,S._readyPromiseState="rejected"}function _e(S){qe("defaultWriterReadyPromiseInitializeAsResolved()"),S._readyPromise=Promise.resolve(void 0),S._readyPromise_resolve=void 0,S._readyPromise_reject=void 0,S._readyPromiseState="fulfilled"}function Ie(S,A){qe("defaultWriterReadyPromiseReject(writer, %o)",A),S._readyPromise_reject(A),S._readyPromise_resolve=void 0,S._readyPromise_reject=void 0,S._readyPromiseState="rejected"}function Ee(S){qe("defaultWriterReadyPromiseReset()"),S._readyPromise=new Promise(function(A,C){S._readyPromise_resolve=A,S._readyPromise_reject=C}),S._readyPromiseState="pending"}function Me(S,A){qe("defaultWriterReadyPromiseResetToRejected(writer, %o)",A),S._readyPromise=Promise.reject(A),S._readyPromiseState="rejected"}function Ce(S){qe("defaultWriterReadyPromiseResolve()"),S._readyPromise_resolve(void 0),S._readyPromise_resolve=void 0,S._readyPromise_reject=void 0,S._readyPromiseState="fulfilled"}var ke=function(){function S(A,C){for(var J=0;J0&&arguments[0]!==void 0?arguments[0]:{},C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},J=C.size,ie=C.highWaterMark,be=ie===void 0?1:ie;if(s(this,S),c(this),A.type!==void 0)throw new RangeError("Invalid type is specified");var ve=ne(J);Ne(this,A,be=K(be),ve)}return ke(S,[{key:"abort",value:function(C){return l(this)===!1?Promise.reject(k("abort")):d(this)===!0?Promise.reject(new TypeError("Cannot abort a stream that already has a writer")):f(this,C)}},{key:"getWriter",value:function(){if(l(this)===!1)throw k("getWriter");return o(this)}},{key:"locked",get:function(){if(l(this)===!1)throw k("locked");return d(this)}}]),S}();n.exports={AcquireWritableStreamDefaultWriter:o,CreateWritableStream:u,IsWritableStream:l,IsWritableStreamLocked:d,WritableStream:ct,WritableStreamAbort:f,WritableStreamDefaultControllerErrorIfNeeded:we,WritableStreamDefaultWriterCloseWithErrorPropagation:V,WritableStreamDefaultWriterRelease:X,WritableStreamDefaultWriterWrite:Y,WritableStreamCloseQueuedOrInFlight:w};var ht=function(){function S(A){if(s(this,S),l(A)===!1)throw new TypeError("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(d(A)===!0)throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=A,A._writer=this;var C=A._state;if(C==="writable")w(A)===!1&&A._backpressure===!0?le(this):_e(this),U(this);else if(C==="erroring")pe(this,A._storedError),this._readyPromise.catch(function(){}),U(this);else if(C==="closed")_e(this),Q(this);else{var J=A._storedError;pe(this,J),this._readyPromise.catch(function(){}),G(this,J),this._closedPromise.catch(function(){})}}return ke(S,[{key:"abort",value:function(C){return P(this)===!1?Promise.reject(T("abort")):this._ownerWritableStream===void 0?Promise.reject(R("abort")):j(this,C)}},{key:"close",value:function(){if(P(this)===!1)return Promise.reject(T("close"));var C=this._ownerWritableStream;return C===void 0?Promise.reject(R("close")):w(C)===!0?Promise.reject(new TypeError("cannot close an already-closing stream")):N(this)}},{key:"releaseLock",value:function(){if(P(this)===!1)throw T("releaseLock");this._ownerWritableStream!==void 0&&X(this)}},{key:"write",value:function(C){return P(this)===!1?Promise.reject(T("write")):this._ownerWritableStream===void 0?Promise.reject(R("write to")):Y(this,C)}},{key:"closed",get:function(){return P(this)===!1?Promise.reject(T("closed")):this._closedPromise}},{key:"desiredSize",get:function(){if(P(this)===!1)throw T("desiredSize");if(this._ownerWritableStream===void 0)throw R("desiredSize");return H(this)}},{key:"ready",get:function(){return P(this)===!1?Promise.reject(T("ready")):this._readyPromise}}]),S}(),te=function(){function S(){throw s(this,S),new TypeError("WritableStreamDefaultController cannot be constructed explicitly")}return ke(S,[{key:"error",value:function(C){if(he(this)===!1)throw new TypeError("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");this._controlledWritableStream._state==="writable"&&M(this,C)}},{key:ut,value:function(C){return this._abortAlgorithm(C)}},{key:at,value:function(){Ye(this)}}]),S}()},{"./helpers.js":10,"./queue-with-sizes.js":11,"./utils.js":14,"better-assert":16,debug:18}],16:[function(r,n,a){(function(s){function o(d){if(!d){var f=c(),h=f[1],p=h.getFileName(),m=h.getLineNumber(),y=(y=l.readFileSync(p,"utf8")).split(` -`)[m-1].match(/assert\((.*)\)/)[1];throw new u({message:y,stackStartFunction:f[0].getFunction()})}}var u=r("assert").AssertionError,c=r("callsite"),l=r("fs");n.exports=s.env.NO_ASSERT?function(){}:o}).call(this,r("_process"))},{_process:4,assert:2,callsite:17,fs:3}],17:[function(r,n,a){n.exports=function(){var s=Error.prepareStackTrace;Error.prepareStackTrace=function(c,l){return l};var o=new Error;Error.captureStackTrace(o,arguments.callee);var u=o.stack;return Error.prepareStackTrace=s,u}},{}],18:[function(r,n,a){(function(s){function o(){return!(typeof window>"u"||!window.process||window.process.type!=="renderer")||(typeof navigator>"u"||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&(typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function u(h){var p=this.useColors;if(h[0]=(p?"%c":"")+this.namespace+(p?" %c":" ")+h[0]+(p?"%c ":" ")+"+"+a.humanize(this.diff),p){var m="color: "+this.color;h.splice(1,0,m,"color: inherit");var y=0,g=0;h[0].replace(/%[a-zA-Z%]/g,function(b){b!=="%%"&&(y++,b==="%c"&&(g=y))}),h.splice(g,0,m)}}function c(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function l(h){try{h==null?a.storage.removeItem("debug"):a.storage.debug=h}catch{}}function d(){var h;try{h=a.storage.debug}catch{}return!h&&typeof s<"u"&&"env"in s&&(h=s.env.DEBUG),h}function f(){try{return window.localStorage}catch{}}a=n.exports=r("./debug"),a.log=c,a.formatArgs=u,a.save=l,a.load=d,a.useColors=o,a.storage=typeof chrome<"u"&&chrome.storage!==void 0?chrome.storage.local:f(),a.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],a.formatters.j=function(h){try{return JSON.stringify(h)}catch(p){return"[UnexpectedJSONParseError]: "+p.message}},a.enable(d())}).call(this,r("_process"))},{"./debug":19,_process:4}],19:[function(r,n,a){function s(h){var p,m=0;for(p in h)m=(m<<5)-m+h.charCodeAt(p),m|=0;return a.colors[Math.abs(m)%a.colors.length]}function o(h){function p(){if(p.enabled){var y=p,g=+new Date,b=g-(m||g);y.diff=b,y.prev=m,y.curr=g,m=g;for(var v=new Array(arguments.length),_=0;_100)){var y=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(m);if(y){var g=parseFloat(y[1]);switch((y[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return g*p;case"days":case"day":case"d":return g*h;case"hours":case"hour":case"hrs":case"hr":case"h":return g*f;case"minutes":case"minute":case"mins":case"min":case"m":return g*d;case"seconds":case"second":case"secs":case"sec":case"s":return g*l;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return g;default:return}}}}function o(m){return m>=h?Math.round(m/h)+"d":m>=f?Math.round(m/f)+"h":m>=d?Math.round(m/d)+"m":m>=l?Math.round(m/l)+"s":m+"ms"}function u(m){return c(m,h,"day")||c(m,f,"hour")||c(m,d,"minute")||c(m,l,"second")||m+" ms"}function c(m,y,g){if(!(m0)return s(m);if(g==="number"&&isNaN(m)===!1)return y.long?u(m):o(m);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(m))}},{}]},{},[1])(1)})}(lR)),lR.exports}const fs=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";fs.writable=t=>fs(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";fs.readable=t=>fs(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";fs.duplex=t=>fs.writable(t)&&fs.readable(t);fs.transform=t=>fs.duplex(t)&&typeof t._transform=="function";var Eee=fs,Aee={exports:{}};(function(t){t.exports=e,t.exports.WEBSTREAM_SUPPORT=typeof ReadableStream<"u";function e(r){if(!t.exports.WEBSTREAM_SUPPORT)throw new Error("No web ReadableStream support");var n=!1,a={};function s(c){a.data=d,a.end=d,a.end=f,a.close=f,a.error=f;for(var l in a)r.on(l,a[l]);r.pause();function d(h){n||(c.enqueue(h),r.pause())}function f(h){if(!n){n=!0;for(var p in a)r.removeListener(p,a[p]);h?c.error(h):c.close()}}}function o(){n||r.resume()}function u(){n=!0;for(var c in a)r.removeListener(c,a[c]);r.push(null),r.pause(),r.destroy?r.destroy():r.close&&r.close()}return new ReadableStream({start:s,pull:o,cancel:u})}})(Aee);var BNe=Aee.exports,gq;function Oee(){if(gq)return L0;gq=1,Object.defineProperty(L0,"__esModule",{value:!0}),L0.ActorHttp=void 0;const t=st,e=MNe();globalThis.ReadableStream||(globalThis.ReadableStream=FNe().ReadableStream);const r=Eee,n=BNe;let a=class extends t.Actor{constructor(o){super(o)}static toNodeReadable(o){return r(o)||o===null?o:(0,e.readableFromWeb)(o)}static toWebReadableStream(o){return n(o)}static headersToHash(o){const u={};return o.forEach((c,l)=>{u[l]=c}),u}};return L0.ActorHttp=a,L0}var j0={},_q;function qNe(){if(_q)return j0;_q=1,Object.defineProperty(j0,"__esModule",{value:!0}),j0.validateAndCloseHttpResponse=void 0;const t=gl,e=Oee();async function r(n,a){var s;if(a.status>=400){let o="empty response";if(a.body){const u=e.ActorHttp.toNodeReadable(a.body);o=await t(u)}throw new Error(`Could not update ${n} (HTTP status ${a.status}): -${o}`)}await((s=a.body)==null?void 0:s.cancel())}return j0.validateAndCloseHttpResponse=r,j0}var bq;function Lu(){return bq||(bq=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Oee(),t),r(qNe(),t)}(uR)),uR}(function(t){(function(e){var r=typeof globalThis<"u"&&globalThis||typeof t<"u"&&t||typeof r<"u"&&r,n={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};function a(P){return P&&DataView.prototype.isPrototypeOf(P)}if(n.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],o=ArrayBuffer.isView||function(P){return P&&s.indexOf(Object.prototype.toString.call(P))>-1};function u(P){if(typeof P!="string"&&(P=String(P)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(P)||P==="")throw new TypeError('Invalid character in header field name: "'+P+'"');return P.toLowerCase()}function c(P){return typeof P!="string"&&(P=String(P)),P}function l(P){var j={next:function(){var N=P.shift();return{done:N===void 0,value:N}}};return n.iterable&&(j[Symbol.iterator]=function(){return j}),j}function d(P){this.map={},P instanceof d?P.forEach(function(j,N){this.append(N,j)},this):Array.isArray(P)?P.forEach(function(j){this.append(j[0],j[1])},this):P&&Object.getOwnPropertyNames(P).forEach(function(j){this.append(j,P[j])},this)}d.prototype.append=function(P,j){P=u(P),j=c(j);var N=this.map[P];this.map[P]=N?N+", "+j:j},d.prototype.delete=function(P){delete this.map[u(P)]},d.prototype.get=function(P){return P=u(P),this.has(P)?this.map[P]:null},d.prototype.has=function(P){return this.map.hasOwnProperty(u(P))},d.prototype.set=function(P,j){this.map[u(P)]=c(j)},d.prototype.forEach=function(P,j){for(var N in this.map)this.map.hasOwnProperty(N)&&P.call(j,this.map[N],N,this)},d.prototype.keys=function(){var P=[];return this.forEach(function(j,N){P.push(N)}),l(P)},d.prototype.values=function(){var P=[];return this.forEach(function(j){P.push(j)}),l(P)},d.prototype.entries=function(){var P=[];return this.forEach(function(j,N){P.push([N,j])}),l(P)},n.iterable&&(d.prototype[Symbol.iterator]=d.prototype.entries);function f(P){if(P.bodyUsed)return Promise.reject(new TypeError("Already read"));P.bodyUsed=!0}function h(P){return new Promise(function(j,N){P.onload=function(){j(P.result)},P.onerror=function(){N(P.error)}})}function p(P){var j=new FileReader,N=h(j);return j.readAsArrayBuffer(P),N}function m(P){var j=new FileReader,N=h(j);return j.readAsText(P),N}function y(P){for(var j=new Uint8Array(P),N=new Array(j.length),V=0;V-1?j:P}function w(P,j){if(!(this instanceof w))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');j=j||{};var N=j.body;if(P instanceof w){if(P.bodyUsed)throw new TypeError("Already read");this.url=P.url,this.credentials=P.credentials,j.headers||(this.headers=new d(P.headers)),this.method=P.method,this.mode=P.mode,this.signal=P.signal,!N&&P._bodyInit!=null&&(N=P._bodyInit,P.bodyUsed=!0)}else this.url=String(P);if(this.credentials=j.credentials||this.credentials||"same-origin",(j.headers||!this.headers)&&(this.headers=new d(j.headers)),this.method=_(j.method||this.method||"GET"),this.mode=j.mode||this.mode||null,this.signal=j.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&N)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(N),(this.method==="GET"||this.method==="HEAD")&&(j.cache==="no-store"||j.cache==="no-cache")){var V=/([?&])_=[^&]*/;if(V.test(this.url))this.url=this.url.replace(V,"$1_="+new Date().getTime());else{var $=/\?/;this.url+=($.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})};function E(P){var j=new FormData;return P.trim().split("&").forEach(function(N){if(N){var V=N.split("="),$=V.shift().replace(/\+/g," "),q=V.join("=").replace(/\+/g," ");j.append(decodeURIComponent($),decodeURIComponent(q))}}),j}function O(P){var j=new d,N=P.replace(/\r?\n[\t ]+/g," ");return N.split("\r").map(function(V){return V.indexOf(` -`)===0?V.substr(1,V.length):V}).forEach(function(V){var $=V.split(":"),q=$.shift().trim();if(q){var H=$.join(":").trim();j.append(q,H)}}),j}b.call(w.prototype);function L(P,j){if(!(this instanceof L))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');j||(j={}),this.type="default",this.status=j.status===void 0?200:j.status,this.ok=this.status>=200&&this.status<300,this.statusText=j.statusText===void 0?"":""+j.statusText,this.headers=new d(j.headers),this.url=j.url||"",this._initBody(P)}b.call(L.prototype),L.prototype.clone=function(){return new L(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},L.error=function(){var P=new L(null,{status:0,statusText:""});return P.type="error",P};var F=[301,302,303,307,308];L.redirect=function(P,j){if(F.indexOf(j)===-1)throw new RangeError("Invalid status code");return new L(null,{status:j,headers:{location:P}})},e.DOMException=r.DOMException;try{new e.DOMException}catch{e.DOMException=function(j,N){this.message=j,this.name=N;var V=Error(j);this.stack=V.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function x(P,j){return new Promise(function(N,V){var $=new w(P,j);if($.signal&&$.signal.aborted)return V(new e.DOMException("Aborted","AbortError"));var q=new XMLHttpRequest;function H(){q.abort()}q.onload=function(){var Y={status:q.status,statusText:q.statusText,headers:O(q.getAllResponseHeaders()||"")};Y.url="responseURL"in q?q.responseURL:Y.headers.get("X-Request-URL");var he="response"in q?q.response:q.responseText;setTimeout(function(){N(new L(he,Y))},0)},q.onerror=function(){setTimeout(function(){V(new TypeError("Network request failed"))},0)},q.ontimeout=function(){setTimeout(function(){V(new TypeError("Network request failed"))},0)},q.onabort=function(){setTimeout(function(){V(new e.DOMException("Aborted","AbortError"))},0)};function X(Y){try{return Y===""&&r.location.href?r.location.href:Y}catch{return Y}}q.open($.method,X($.url),!0),$.credentials==="include"?q.withCredentials=!0:$.credentials==="omit"&&(q.withCredentials=!1),"responseType"in q&&(n.blob?q.responseType="blob":n.arrayBuffer&&$.headers.get("Content-Type")&&$.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(q.responseType="arraybuffer")),j&&typeof j.headers=="object"&&!(j.headers instanceof d)?Object.getOwnPropertyNames(j.headers).forEach(function(Y){q.setRequestHeader(Y,c(j.headers[Y]))}):$.headers.forEach(function(Y,he){q.setRequestHeader(he,Y)}),$.signal&&($.signal.addEventListener("abort",H),q.onreadystatechange=function(){q.readyState===4&&$.signal.removeEventListener("abort",H)}),q.send(typeof $._bodyInit>"u"?null:$._bodyInit)})}return x.polyfill=!0,r.fetch||(r.fetch=x,r.Headers=d,r.Request=w,r.Response=L),e.Headers=d,e.Request=w,e.Response=L,e.fetch=x,e})({})})(typeof self<"u"?self:I);var M0={},vq;function $Ne(){if(vq)return M0;vq=1,Object.defineProperty(M0,"__esModule",{value:!0}),M0.FetchInitPreprocessor=void 0;const t=Lu();class e{async handle(n){if(n.headers){const a=new Headers(n.headers);a.has("user-agent")&&a.delete("user-agent"),n.headers=a}if(n!=null&&n.headers&&"append"in n.headers&&(n.headers=t.ActorHttp.headersToHash(n.headers)),n.body&&typeof n.body!="string"&&"getReader"in n.body){const a=n.body.getReader(),s=[];for(;;){const{done:o,value:u}=await a.read();if(o)break;s.push(u)}n.body=s.join("")}return{keepalive:!n.body,...n}}async createAbortController(){return new AbortController}}return M0.FetchInitPreprocessor=e,M0}var wq;function UNe(){if(wq)return C0;wq=1,Object.defineProperty(C0,"__esModule",{value:!0}),C0.ActorHttpFetch=void 0;const t=Lu(),e=qt,r=$Ne();let n=class YP extends t.ActorHttp{constructor(s){super(s),this.userAgent=YP.createUserAgent(),this.fetchInitPreprocessor=new r.FetchInitPreprocessor(s.agentOptions)}static createUserAgent(){return`Comunica/actor-http-fetch (${typeof globalThis.navigator>"u"?`Node.js ${co.version}; ${co.platform}`:`Browser-${globalThis.navigator.userAgent}`})`}async test(s){return{time:Number.POSITIVE_INFINITY}}static async getResponse(s,o,u,c,l,d){var p;let f,h=c+1;for(;h-- >0;)try{const m=await s(o,u);if(d&&m.status>=500&&m.status<600)throw new Error(`Server replied with response code ${m.status}: ${m.statusText}`);return m}catch(m){if(f=m,(p=u.signal)!=null&&p.aborted)throw m;h>0&&await new Promise((y,g)=>{var b;setTimeout(y,l),(b=u.signal)==null||b.addEventListener("abort",()=>{g(new Error("Fetch aborted by timeout."))})})}throw c>0?new Error(`Number of fetch retries (${c}) exceeded. Last error: ${String(f)}`):f}async run(s){var h,p,m,y,g,b,v,_;const o=((h=s.init)==null?void 0:h.headers)??{};s.init=s.init??{},s.init.headers=new Headers(o),s.init.headers.has("user-agent")||s.init.headers.append("user-agent",this.userAgent);const u=s.context.get(e.KeysHttp.auth);u&&s.init.headers.append("Authorization",`Basic ${Zi.from(u).toString("base64")}`),this.logInfo(s.context,`Requesting ${typeof s.input=="string"?s.input:s.input.url}`,()=>({headers:t.ActorHttp.headersToHash(new Headers(s.init.headers)),method:s.init.method??"GET"})),(p=s.init)!=null&&p.headers&&"append"in s.init.headers&&s.context.has(e.KeysHttp.fetch)&&(s.init.headers=t.ActorHttp.headersToHash(s.init.headers));let c={...s.init};s.context.get(e.KeysHttp.includeCredentials)&&(c.credentials="include");const l=(m=s.context)==null?void 0:m.get(e.KeysHttp.httpTimeout);let d,f;if(l!==void 0){const w=await this.fetchInitPreprocessor.createAbortController();c.signal=w.signal,f=()=>w.abort(),d=setTimeout(()=>f(),l)}try{c=await this.fetchInitPreprocessor.handle(c);const w=((y=s.context)==null?void 0:y.get(e.KeysHttp.httpRetryCount))??0,E=((g=s.context)==null?void 0:g.get(e.KeysHttp.httpRetryDelay))??0,O=((b=s.context)==null?void 0:b.get(e.KeysHttp.httpRetryOnServerError))??!1,L=(v=s.context)==null?void 0:v.get(e.KeysHttp.fetch),F=await YP.getResponse(L??fetch,s.input,c,w,E,O);return d!==void 0&&((((_=s.context)==null?void 0:_.get(e.KeysHttp.httpBodyTimeout))||!1)&&F.body?(f=()=>{var P;return(P=F.body)==null?void 0:P.cancel(new Error(`HTTP timeout when reading the body of ${F.url}. -This error can be disabled by modifying the 'httpBodyTimeout' and/or 'httpTimeout' options.`))},F.body.on("close",()=>{clearTimeout(d)})):clearTimeout(d)),F.body&&!F.body.cancel&&(F.body.cancel=async x=>{F.body.destroy(x),d!==void 0&&clearTimeout(d)}),F}catch(w){throw d!==void 0&&clearTimeout(d),w}}};return C0.ActorHttpFetch=n,C0}var Sq;function kNe(){return Sq||(Sq=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(UNe(),t)}(oR)),oR}var dR={},F0={},Tq;function VNe(){if(Tq)return F0;Tq=1,Object.defineProperty(F0,"__esModule",{value:!0}),F0.ActorQueryOperationSource=void 0;const t=Tt(),e=qt,r=ci(),n=xt();let a=class extends t.ActorQueryOperation{constructor(o){super(o)}async test(o){if(!t.ActorQueryOperation.getOperationSource(o.operation))throw new Error(`Actor ${this.name} requires an operation with source annotation.`);return{httpRequests:1}}async run(o){const u=o.context.get(e.KeysInitQuery.physicalQueryPlanLogger);u&&(u.logOperation(o.operation.type,void 0,o.operation,o.context.get(e.KeysInitQuery.physicalQueryPlanNode),this.name,{}),o.context=o.context.set(e.KeysInitQuery.physicalQueryPlanNode,o.operation));const c=t.ActorQueryOperation.getOperationSource(o.operation),l=c.context?o.context.merge(c.context):o.context;let d=!1;if(n.Util.recurseOperation(o.operation,{construct(){return d=!0,!1}}),d){const p=c.source.queryQuads(o.operation,l),m=(0,r.getMetadataQuads)(p);return{type:"quads",quadStream:p,metadata:m}}switch(o.operation.type){case n.Algebra.types.ASK:return{type:"boolean",execute:()=>c.source.queryBoolean(o.operation,l)};case n.Algebra.types.COMPOSITE_UPDATE:case n.Algebra.types.DELETE_INSERT:case n.Algebra.types.LOAD:case n.Algebra.types.CLEAR:case n.Algebra.types.CREATE:case n.Algebra.types.DROP:case n.Algebra.types.ADD:case n.Algebra.types.MOVE:case n.Algebra.types.COPY:return{type:"void",execute:()=>c.source.queryVoid(o.operation,l)}}const f=c.source.queryBindings(o.operation,l),h=(0,r.getMetadataBindings)(f);return{type:"bindings",bindingsStream:f,metadata:h}}};return F0.ActorQueryOperationSource=a,F0}var Eq;function HNe(){return Eq||(Eq=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(VNe(),t)}(dR)),dR}var fR={},B0={},Aq;function QNe(){if(Aq)return B0;Aq=1,Object.defineProperty(B0,"__esModule",{value:!0}),B0.MediatorJoinCoefficientsFixed=void 0;const t=qt,e=st;let r=class extends e.Mediator{constructor(a){super(a)}async mediateWith(a,s){var y;const o=[],u=s.map(({reply:g})=>g).map(g=>g.catch(b=>{o.push(b)})),c=await Promise.all(u);let l=c.map(g=>{if(g)return g.iterations*this.cpuWeight+g.persistedItems*this.memoryWeight+g.blockingItems*this.timeWeight+g.requestTime*this.ioWeight});const d=Math.max(...l.filter(g=>g!==void 0)),f=a.context.get(t.KeysQueryOperation.limitIndicator);f&&(l=l.map((g,b)=>g!==void 0&&c[b].persistedItems>0&&c[b].iterations>f?g+d:g));let h=-1,p=Number.POSITIVE_INFINITY;for(const[g,b]of l.entries())b!==void 0&&(h===-1||b=we)return M;switch(M){case"%s":return String(Pe[xe++]);case"%d":return Number(Pe[xe++]);case"%j":try{return JSON.stringify(Pe[xe++])}catch{return"[Circular]"}default:return M}}),Se=Pe[xe];xe3&&arguments[3]!==void 0?arguments[3]:1,it=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){return 1},ot=Object.create(ba.prototype);return d(ot),we(ot,Object.create(Io.prototype),ue,ye,Ae,Ze,it),ot}function l(ue,ye,Ae){var Ze=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,it=arguments.length>4&&arguments[4]!==void 0?arguments[4]:void 0,ot=Object.create(ba.prototype);return d(ot),K(ot,Object.create(vl.prototype),ue,ye,Ae,Ze,it),ot}function d(ue){ue._state="readable",ue._reader=void 0,ue._storedError=void 0,ue._disturbed=!1}function f(ue){return!!$r(ue)&&!!Object.prototype.hasOwnProperty.call(ue,"_readableStreamController")}function h(ue){return ue._disturbed}function p(ue){return ue._reader!==void 0}function m(ue,ye){function Ae(){return H(it).then(function(gn){var Vn=gn.value;if(gn.done===!0&&ot===!1&&(Nt===!1&&Te(Zt._readableStreamController),Vt===!1&&Te(br._readableStreamController),ot=!0),ot!==!0){var wa=Vn,pn=Vn;Nt===!1&&Ne(Zt._readableStreamController,wa),Vt===!1&&Ne(br._readableStreamController,pn)}})}function Ze(){}var it=u(ue),ot=!1,Nt=!1,Vt=!1,ir=void 0,Dr=void 0,Zt=void 0,br=void 0,kn=void 0,Nn=new Promise(function(gn){kn=gn});return Zt=c(Ze,Ae,function(Vn){if(Nt=!0,ir=Vn,Vt===!0){var wa=et([ir,Dr]),pn=b(ue,wa);kn(pn)}return Nn}),br=c(Ze,Ae,function(Vn){if(Vt=!0,Dr=Vn,Nt===!0){var wa=et([ir,Dr]),pn=b(ue,wa);kn(pn)}return Nn}),it._closedPromise.catch(function(gn){ot!==!0&&(de(Zt._readableStreamController,gn),de(br._readableStreamController,gn),ot=!0)}),[Zt,br]}function y(ue){return new Promise(function(ye,Ae){var Ze={_resolve:ye,_reject:Ae};ue._reader._readIntoRequests.push(Ze)})}function g(ue){return new Promise(function(ye,Ae){var Ze={_resolve:ye,_reject:Ae};ue._reader._readRequests.push(Ze)})}function b(ue,ye){return ue._disturbed=!0,ue._state==="closed"?Promise.resolve(void 0):ue._state==="errored"?Promise.reject(ue._storedError):(v(ue),ue._readableStreamController[Zr](ye).then(function(){}))}function v(ue){ue._state="closed";var ye=ue._reader;if(ye!==void 0){if(j(ye)===!0){var Ae=!0,Ze=!1,it=void 0;try{for(var ot,Nt=ye._readRequests[Symbol.iterator]();!(Ae=(ot=Nt.next()).done);Ae=!0)(0,ot.value._resolve)(ve(void 0,!0))}catch(Vt){Ze=!0,it=Vt}finally{try{!Ae&&Nt.return&&Nt.return()}finally{if(Ze)throw it}}ye._readRequests=[]}at(ye)}}function _(ue,ye){ue._state="errored",ue._storedError=ye;var Ae=ue._reader;if(Ae!==void 0){if(j(Ae)===!0){var Ze=!0,it=!1,ot=void 0;try{for(var Nt,Vt=Ae._readRequests[Symbol.iterator]();!(Ze=(Nt=Vt.next()).done);Ze=!0)Nt.value._reject(ye)}catch(Nn){it=!0,ot=Nn}finally{try{!Ze&&Vt.return&&Vt.return()}finally{if(it)throw ot}}Ae._readRequests=[]}else{var ir=!0,Dr=!1,Zt=void 0;try{for(var br,kn=Ae._readIntoRequests[Symbol.iterator]();!(ir=(br=kn.next()).done);ir=!0)br.value._reject(ye)}catch(Nn){Dr=!0,Zt=Nn}finally{try{!ir&&kn.return&&kn.return()}finally{if(Dr)throw Zt}}Ae._readIntoRequests=[]}Ye(Ae,ye),Ae._closedPromise.catch(function(){})}}function w(ue,ye,Ae){ue._reader._readIntoRequests.shift()._resolve(ve(ye,Ae))}function E(ue,ye,Ae){ue._reader._readRequests.shift()._resolve(ve(ye,Ae))}function O(ue){return ue._reader._readIntoRequests.length}function L(ue){return ue._reader._readRequests.length}function F(ue){var ye=ue._reader;return ye!==void 0&&P(ye)!==!1}function x(ue){var ye=ue._reader;return ye!==void 0&&j(ye)!==!1}function P(ue){return!!$r(ue)&&!!Object.prototype.hasOwnProperty.call(ue,"_readIntoRequests")}function j(ue){return!!$r(ue)&&!!Object.prototype.hasOwnProperty.call(ue,"_readRequests")}function N(ue,ye){ue._ownerReadableStream=ye,ye._reader=ue,ye._state==="readable"?Oe(ue):ye._state==="closed"?Ue(ue):(De(ue,ye._storedError),ue._closedPromise.catch(function(){}))}function V(ue,ye){return b(ue._ownerReadableStream,ye)}function $(ue){ue._ownerReadableStream._state==="readable"?Ye(ue,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):ut(ue,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),ue._closedPromise.catch(function(){}),ue._ownerReadableStream._reader=void 0,ue._ownerReadableStream=void 0}function q(ue,ye){var Ae=ue._ownerReadableStream;return Ae._disturbed=!0,Ae._state==="errored"?Promise.reject(Ae._storedError):le(Ae._readableStreamController,ye)}function H(ue){var ye=ue._ownerReadableStream;return ye._disturbed=!0,ye._state==="closed"?Promise.resolve(ve(void 0,!0)):ye._state==="errored"?Promise.reject(ye._storedError):ye._readableStreamController[Va]()}function X(ue){return!!$r(ue)&&!!Object.prototype.hasOwnProperty.call(ue,"_controlledReadableStream")}function Y(ue){he(ue)!==!1&&(ue._pulling!==!0?(ue._pulling=!0,ue._pullAlgorithm().then(function(){if(ue._pulling=!1,ue._pullAgain===!0)return ue._pullAgain=!1,Y(ue)},function(ye){de(ue,ye)}).catch(Gt)):ue._pullAgain=!0)}function he(ue){var ye=ue._controlledReadableStream;return Pe(ue)!==!1&&ue._started!==!1&&(p(ye)===!0&&L(ye)>0||ce(ue)>0)}function Te(ue){var ye=ue._controlledReadableStream;ue._closeRequested=!0,ue._queue.length===0&&v(ye)}function Ne(ue,ye){var Ae=ue._controlledReadableStream;if(p(Ae)===!0&&L(Ae)>0)E(Ae,ye,!1);else{var Ze=void 0;try{Ze=ue._strategySizeAlgorithm(ye)}catch(it){throw de(ue,it),it}try{zi(ue,ye,Ze)}catch(it){throw de(ue,it),it}}Y(ue)}function $e(ue,ye){var Ae=ue._controlledReadableStream;Ai(ue),_(Ae,ye)}function de(ue,ye){ue._controlledReadableStream._state==="readable"&&$e(ue,ye)}function ce(ue){var ye=ue._controlledReadableStream._state;return ye==="errored"?null:ye==="closed"?0:ue._strategyHWM-ue._queueTotalSize}function xe(ue){return he(ue)!==!0}function Pe(ue){var ye=ue._controlledReadableStream._state;return ue._closeRequested===!1&&ye==="readable"}function we(ue,ye,Ae,Ze,it,ot,Nt){ye._controlledReadableStream=ue,ye._queue=void 0,ye._queueTotalSize=void 0,Ai(ye),ye._started=!1,ye._closeRequested=!1,ye._pullAgain=!1,ye._pulling=!1,ye._strategySizeAlgorithm=Nt,ye._strategyHWM=ot,ye._pullAlgorithm=Ze,ye._cancelAlgorithm=it,ue._readableStreamController=ye;var Vt=Ae();Promise.resolve(Vt).then(function(){ye._started=!0,Y(ye)},function(ir){de(ye,ir)}).catch(Gt)}function Re(ue,ye,Ae,Ze){var it=Object.create(Io.prototype),ot=be(ye,"pull",0,[it]),Nt=be(ye,"cancel",1,[]);we(ue,it,function(){return Je(ye,"start",[it])},ot,Nt,Ae,Ze)}function Se(ue){return!!$r(ue)&&!!Object.prototype.hasOwnProperty.call(ue,"_controlledReadableByteStream")}function z(ue){return!!$r(ue)&&!!Object.prototype.hasOwnProperty.call(ue,"_associatedReadableByteStreamController")}function M(ue){Me(ue)!==!1&&(ue._pulling!==!0?(ue._pulling=!0,ue._pullAlgorithm().then(function(){ue._pulling=!1,ue._pullAgain===!0&&(ue._pullAgain=!1,M(ue))},function(ye){ue._controlledReadableByteStream._state==="readable"&&qe(ue,ye)}).catch(Gt)):ue._pullAgain=!0)}function k(ue){se(ue),ue._pendingPullIntos=[]}function T(ue,ye){var Ae=!1;ue._state==="closed"&&(Ae=!0);var Ze=R(ye);ye.readerType==="default"?E(ue,Ze,Ae):w(ue,Ze,Ae)}function R(ue){var ye=ue.bytesFilled,Ae=ue.elementSize;return new ue.ctor(ue.buffer,ue.byteOffset,ye/Ae)}function U(ue,ye,Ae,Ze){ue._queue.push({buffer:ye,byteOffset:Ae,byteLength:Ze}),ue._queueTotalSize+=Ze}function G(ue,ye){var Ae=ye.elementSize,Ze=ye.bytesFilled-ye.bytesFilled%Ae,it=Math.min(ue._queueTotalSize,ye.byteLength-ye.bytesFilled),ot=ye.bytesFilled+it,Nt=ot-ot%Ae,Vt=it,ir=!1;Nt>Ze&&(Vt=Nt-ye.bytesFilled,ir=!0);for(var Dr=ue._queue;Vt>0;){var Zt=Dr[0],br=Math.min(Vt,Zt.byteLength),kn=ye.byteOffset+ye.bytesFilled;ie(ye.buffer,kn,Zt.buffer,Zt.byteOffset,br),Zt.byteLength===br?Dr.shift():(Zt.byteOffset+=br,Zt.byteLength-=br),ue._queueTotalSize-=br,Q(ue,br,ye),Vt-=br}return ir}function Q(ue,ye,Ae){se(ue),Ae.bytesFilled+=ye}function Z(ue){ue._queueTotalSize===0&&ue._closeRequested===!0?v(ue._controlledReadableByteStream):M(ue)}function se(ue){ue._byobRequest!==void 0&&(ue._byobRequest._associatedReadableByteStreamController=void 0,ue._byobRequest._view=void 0,ue._byobRequest=void 0)}function re(ue){for(;ue._pendingPullIntos.length>0;){if(ue._queueTotalSize===0)return;var ye=ue._pendingPullIntos[0];G(ue,ye)===!0&&(Ee(ue),T(ue._controlledReadableByteStream,ye))}}function le(ue,ye){var Ae=ue._controlledReadableByteStream,Ze=1;ye.constructor!==DataView&&(Ze=ye.constructor.BYTES_PER_ELEMENT);var it=ye.constructor,ot={buffer:rt(ye.buffer),byteOffset:ye.byteOffset,byteLength:ye.byteLength,bytesFilled:0,elementSize:Ze,ctor:it,readerType:"byob"};if(ue._pendingPullIntos.length>0)return ue._pendingPullIntos.push(ot),y(Ae);if(Ae._state==="closed"){var Nt=new ye.constructor(ot.buffer,ot.byteOffset,0);return Promise.resolve(ve(Nt,!0))}if(ue._queueTotalSize>0){if(G(ue,ot)===!0){var Vt=R(ot);return Z(ue),Promise.resolve(ve(Vt,!1))}if(ue._closeRequested===!0){var ir=new TypeError("Insufficient bytes to fill elements in the given buffer");return qe(ue,ir),Promise.reject(ir)}}ue._pendingPullIntos.push(ot);var Dr=y(Ae);return M(ue),Dr}function pe(ue,ye){ye.buffer=rt(ye.buffer);var Ae=ue._controlledReadableByteStream;if(F(Ae)===!0)for(;O(Ae)>0;)T(Ae,Ee(ue))}function _e(ue,ye,Ae){if(Ae.bytesFilled+ye>Ae.byteLength)throw new RangeError("bytesWritten out of range");if(Q(ue,ye,Ae),!(Ae.bytesFilled0){var it=Ae.byteOffset+Ae.bytesFilled,ot=Ae.buffer.slice(it-Ze,it);U(ue,ot,0,ot.byteLength)}Ae.buffer=rt(Ae.buffer),Ae.bytesFilled-=Ze,T(ue._controlledReadableByteStream,Ae),re(ue)}}function Ie(ue,ye){var Ae=ue._pendingPullIntos[0];if(ue._controlledReadableByteStream._state==="closed"){if(ye!==0)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");pe(ue,Ae)}else _e(ue,ye,Ae)}function Ee(ue){var ye=ue._pendingPullIntos.shift();return se(ue),ye}function Me(ue){var ye=ue._controlledReadableByteStream;return ye._state==="readable"&&ue._closeRequested!==!0&&ue._started!==!1&&(x(ye)===!0&&L(ye)>0||F(ye)===!0&&O(ye)>0||W(ue)>0)}function Ce(ue){var ye=ue._controlledReadableByteStream;if(ue._queueTotalSize>0)ue._closeRequested=!0;else{if(ue._pendingPullIntos.length>0&&ue._pendingPullIntos[0].bytesFilled>0){var Ae=new TypeError("Insufficient bytes to fill elements in the given buffer");throw qe(ue,Ae),Ae}v(ye)}}function ke(ue,ye){var Ae=ue._controlledReadableByteStream,Ze=ye.buffer,it=ye.byteOffset,ot=ye.byteLength,Nt=rt(Ze);x(Ae)===!0?L(Ae)===0?U(ue,Nt,it,ot):E(Ae,new Uint8Array(Nt,it,ot),!1):F(Ae)===!0?(U(ue,Nt,it,ot),re(ue)):U(ue,Nt,it,ot)}function qe(ue,ye){var Ae=ue._controlledReadableByteStream;k(ue),Ai(ue),_(Ae,ye)}function W(ue){var ye=ue._controlledReadableByteStream._state;return ye==="errored"?null:ye==="closed"?0:ue._strategyHWM-ue._queueTotalSize}function D(ue,ye){if(ye=Number(ye),Fe(ye)===!1)throw new RangeError("bytesWritten must be a finite");Ie(ue,ye)}function B(ue,ye){var Ae=ue._pendingPullIntos[0];if(Ae.byteOffset+Ae.bytesFilled!==ye.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(Ae.byteLength!==ye.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");Ae.buffer=ye.buffer,Ie(ue,ye.byteLength)}function K(ue,ye,Ae,Ze,it,ot,Nt){ye._controlledReadableByteStream=ue,ye._pullAgain=!1,ye._pulling=!1,k(ye),ye._queue=ye._queueTotalSize=void 0,Ai(ye),ye._closeRequested=!1,ye._started=!1,ye._strategyHWM=Qe(ot),ye._pullAlgorithm=Ze,ye._cancelAlgorithm=it,ye._autoAllocateChunkSize=Nt,ye._pendingPullIntos=[],ue._readableStreamController=ye;var Vt=Ae();Promise.resolve(Vt).then(function(){ye._started=!0,M(ye)},function(ir){ue._state==="readable"&&qe(ye,ir)}).catch(Gt)}function ne(ue,ye,Ae){var Ze=Object.create(vl.prototype),it=be(ye,"pull",0,[Ze]),ot=be(ye,"cancel",1,[]),Nt=ye.autoAllocateChunkSize;if(Nt!==void 0&&(Number.isInteger(Nt)===!1||Nt<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");K(ue,Ze,function(){return Je(ye,"start",[Ze])},it,ot,Ae,Nt)}function fe(ue,ye,Ae){ue._associatedReadableByteStreamController=ye,ue._view=Ae}function ge(ue){return new TypeError("ReadableStream.prototype."+ue+" can only be used on a ReadableStream")}function Le(ue){return new TypeError("Cannot "+ue+" a stream using a released reader")}function ee(ue){return new TypeError("ReadableStreamDefaultReader.prototype."+ue+" can only be used on a ReadableStreamDefaultReader")}function Oe(ue){ue._closedPromise=new Promise(function(ye,Ae){ue._closedPromise_resolve=ye,ue._closedPromise_reject=Ae})}function De(ue,ye){ue._closedPromise=Promise.reject(ye),ue._closedPromise_resolve=void 0,ue._closedPromise_reject=void 0}function Ue(ue){ue._closedPromise=Promise.resolve(void 0),ue._closedPromise_resolve=void 0,ue._closedPromise_reject=void 0}function Ye(ue,ye){ue._closedPromise_reject(ye),ue._closedPromise_resolve=void 0,ue._closedPromise_reject=void 0}function ut(ue,ye){ue._closedPromise=Promise.reject(ye)}function at(ue){ue._closedPromise_resolve(void 0),ue._closedPromise_resolve=void 0,ue._closedPromise_reject=void 0}function ct(ue){return new TypeError("ReadableStreamBYOBReader.prototype."+ue+" can only be used on a ReadableStreamBYOBReader")}function ht(ue){return new TypeError("ReadableStreamDefaultController.prototype."+ue+" can only be used on a ReadableStreamDefaultController")}function te(ue){return new TypeError("ReadableStreamBYOBRequest.prototype."+ue+" can only be used on a ReadableStreamBYOBRequest")}function S(ue){return new TypeError("ReadableByteStreamController.prototype."+ue+" can only be used on a ReadableByteStreamController")}function A(ue){try{Promise.prototype.then.call(ue,void 0,function(){})}catch{}}var C=function(){function ue(ye,Ae){for(var Ze=0;Ze0&&arguments[0]!==void 0?arguments[0]:{},Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ze=Ae.size,it=Ae.highWaterMark;s(this,ue),d(this);var ot=ye.type;if(String(ot)==="bytes"){if(it===void 0&&(it=0),it=Qe(it),Ze!==void 0)throw new RangeError("The strategy for a byte stream cannot have a size function");ne(this,ye,it)}else{if(ot!==void 0)throw new RangeError("Invalid type is specified");it===void 0&&(it=1),Re(this,ye,it=Qe(it),di(Ze))}}return C(ue,[{key:"cancel",value:function(Ae){return f(this)===!1?Promise.reject(ge("cancel")):p(this)===!0?Promise.reject(new TypeError("Cannot cancel a stream that already has a reader")):b(this,Ae)}},{key:"getReader",value:function(){var Ae=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).mode;if(f(this)===!1)throw ge("getReader");if(Ae===void 0)return u(this);if((Ae=String(Ae))==="byob")return o(this);throw new RangeError("Invalid mode is specified")}},{key:"pipeThrough",value:function(Ae,Ze){var it=Ae.writable,ot=Ae.readable;if(it===void 0||ot===void 0)throw new TypeError("readable and writable arguments must be defined");return A(this.pipeTo(it,Ze)),ot}},{key:"pipeTo",value:function(Ae){var Ze=this,it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ot=it.preventClose,Nt=it.preventAbort,Vt=it.preventCancel;if(f(this)===!1)return Promise.reject(ge("pipeTo"));if(xo(Ae)===!1)return Promise.reject(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));if(ot=!!ot,Nt=!!Nt,Vt=!!Vt,p(this)===!0)return Promise.reject(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream"));if(Vr(Ae)===!0)return Promise.reject(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream"));var ir=u(this),Dr=xs(Ae),Zt=!1,br=Promise.resolve();return new Promise(function(kn,Nn){function gn(){return Zt===!0?Promise.resolve():Dr._readyPromise.then(function(){return H(ir).then(function(Yt){var yn=Yt.value;Yt.done!==!0&&(br=un(Dr,yn).catch(function(){}))})}).then(gn)}function Vn(){var Yt=br;return br.then(function(){return Yt!==br?Vn():void 0})}function wa(Yt,yn,Ps){Yt._state==="errored"?Ps(Yt._storedError):yn.catch(Ps).catch(Gt)}function pn(Yt,yn,Ps){function Po(){Yt().then(function(){return Bu(yn,Ps)},function(k1){return Bu(!0,k1)}).catch(Gt)}Zt!==!0&&(Zt=!0,Ae._state==="writable"&&_a(Ae)===!1?Vn().then(Po):Po())}function Is(Yt,yn){Zt!==!0&&(Zt=!0,Ae._state==="writable"&&_a(Ae)===!1?Vn().then(function(){return Bu(Yt,yn)}).catch(Gt):Bu(Yt,yn))}function Bu(Yt,yn){Oi(Dr),$(ir),Yt?Nn(yn):kn(void 0)}if(wa(Ze,ir._closedPromise,function(Yt){Nt===!1?pn(function(){return fi(Ae,Yt)},!0,Yt):Is(!0,Yt)}),wa(Ae,Dr._closedPromise,function(Yt){Vt===!1?pn(function(){return b(Ze,Yt)},!0,Yt):Is(!0,Yt)}),function(yn,Ps,Po){yn._state==="closed"?Po():Ps.then(Po).catch(Gt)}(Ze,ir._closedPromise,function(){ot===!1?pn(function(){return on(Dr)}):Is()}),_a(Ae)===!0||Ae._state==="closed"){var qu=new TypeError("the destination writable stream closed before all data could be piped to it");Vt===!1?pn(function(){return b(Ze,qu)},!0,qu):Is(!0,qu)}gn().catch(function(Yt){br=Promise.resolve(),Gt(Yt)})})}},{key:"tee",value:function(){if(f(this)===!1)throw ge("tee");var Ae=m(this);return et(Ae)}},{key:"locked",get:function(){if(f(this)===!1)throw ge("locked");return p(this)}}]),ue}();n.exports={CreateReadableByteStream:l,CreateReadableStream:c,ReadableStream:ba,IsReadableStreamDisturbed:h,ReadableStreamDefaultControllerClose:Te,ReadableStreamDefaultControllerEnqueue:Ne,ReadableStreamDefaultControllerError:$e,ReadableStreamDefaultControllerGetDesiredSize:ce,ReadableStreamDefaultControllerHasBackpressure:xe,ReadableStreamDefaultControllerCanCloseOrEnqueue:Pe};var Un=function(){function ue(ye){if(s(this,ue),f(ye)===!1)throw new TypeError("ReadableStreamDefaultReader can only be constructed with a ReadableStream instance");if(p(ye)===!0)throw new TypeError("This stream has already been locked for exclusive reading by another reader");N(this,ye),this._readRequests=[]}return C(ue,[{key:"cancel",value:function(Ae){return j(this)===!1?Promise.reject(ee("cancel")):this._ownerReadableStream===void 0?Promise.reject(Le("cancel")):V(this,Ae)}},{key:"read",value:function(){return j(this)===!1?Promise.reject(ee("read")):this._ownerReadableStream===void 0?Promise.reject(Le("read from")):H(this)}},{key:"releaseLock",value:function(){if(j(this)===!1)throw ee("releaseLock");if(this._ownerReadableStream!==void 0){if(this._readRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");$(this)}}},{key:"closed",get:function(){return j(this)===!1?Promise.reject(ee("closed")):this._closedPromise}}]),ue}(),Pn=function(){function ue(ye){if(s(this,ue),!f(ye))throw new TypeError("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(Se(ye._readableStreamController)===!1)throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(p(ye))throw new TypeError("This stream has already been locked for exclusive reading by another reader");N(this,ye),this._readIntoRequests=[]}return C(ue,[{key:"cancel",value:function(Ae){return P(this)?this._ownerReadableStream===void 0?Promise.reject(Le("cancel")):V(this,Ae):Promise.reject(ct("cancel"))}},{key:"read",value:function(Ae){return P(this)?this._ownerReadableStream===void 0?Promise.reject(Le("read from")):ArrayBuffer.isView(Ae)?lt(Ae.buffer)===!0?Promise.reject(new TypeError("Cannot read into a view onto a detached ArrayBuffer")):Ae.byteLength===0?Promise.reject(new TypeError("view must have non-zero byteLength")):q(this,Ae):Promise.reject(new TypeError("view must be an array buffer view")):Promise.reject(ct("read"))}},{key:"releaseLock",value:function(){if(!P(this))throw ct("releaseLock");if(this._ownerReadableStream!==void 0){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");$(this)}}},{key:"closed",get:function(){return P(this)?this._closedPromise:Promise.reject(ct("closed"))}}]),ue}(),Io=function(){function ue(){throw s(this,ue),new TypeError}return C(ue,[{key:"close",value:function(){if(X(this)===!1)throw ht("close");if(Pe(this)===!1)throw new TypeError("The stream is not in a state that permits close");Te(this)}},{key:"enqueue",value:function(Ae){if(X(this)===!1)throw ht("enqueue");if(Pe(this)===!1)throw new TypeError("The stream is not in a state that permits enqueue");return Ne(this,Ae)}},{key:"error",value:function(Ae){if(X(this)===!1)throw ht("error");var Ze=this._controlledReadableStream;if(Ze._state!=="readable")throw new TypeError("The stream is "+Ze._state+" and so cannot be errored");$e(this,Ae)}},{key:Zr,value:function(Ae){return Ai(this),this._cancelAlgorithm(Ae)}},{key:Va,value:function(){var Ae=this._controlledReadableStream;if(this._queue.length>0){var Ze=Ct(this);return this._closeRequested===!0&&this._queue.length===0?v(Ae):Y(this),Promise.resolve(ve(Ze,!1))}var it=g(Ae);return Y(this),it}},{key:"desiredSize",get:function(){if(X(this)===!1)throw ht("desiredSize");return ce(this)}}]),ue}(),va=function(){function ue(){throw s(this,ue),new TypeError("ReadableStreamBYOBRequest cannot be used directly")}return C(ue,[{key:"respond",value:function(Ae){if(z(this)===!1)throw te("respond");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(lt(this._view.buffer)===!0)throw new TypeError("The BYOB request's buffer has been detached and so cannot be used as a response");D(this._associatedReadableByteStreamController,Ae)}},{key:"respondWithNewView",value:function(Ae){if(z(this)===!1)throw te("respond");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(!ArrayBuffer.isView(Ae))throw new TypeError("You can only respond with array buffer views");if(lt(Ae.buffer)===!0)throw new TypeError("The supplied view's buffer has been detached and so cannot be used as a response");B(this._associatedReadableByteStreamController,Ae)}},{key:"view",get:function(){if(z(this)===!1)throw te("view");return this._view}}]),ue}(),vl=function(){function ue(){throw s(this,ue),new TypeError("ReadableByteStreamController constructor cannot be used directly")}return C(ue,[{key:"close",value:function(){if(Se(this)===!1)throw S("close");if(this._closeRequested===!0)throw new TypeError("The stream has already been closed; do not close it again!");var Ae=this._controlledReadableByteStream._state;if(Ae!=="readable")throw new TypeError("The stream (in "+Ae+" state) is not in the readable state and cannot be closed");Ce(this)}},{key:"enqueue",value:function(Ae){if(Se(this)===!1)throw S("enqueue");if(this._closeRequested===!0)throw new TypeError("stream is closed or draining");var Ze=this._controlledReadableByteStream._state;if(Ze!=="readable")throw new TypeError("The stream (in "+Ze+" state) is not in the readable state and cannot be enqueued to");if(!ArrayBuffer.isView(Ae))throw new TypeError("You can only enqueue array buffer views when using a ReadableByteStreamController");if(lt(Ae.buffer)===!0)throw new TypeError("Cannot enqueue a view onto a detached ArrayBuffer");ke(this,Ae)}},{key:"error",value:function(Ae){if(Se(this)===!1)throw S("error");var Ze=this._controlledReadableByteStream;if(Ze._state!=="readable")throw new TypeError("The stream is "+Ze._state+" and so cannot be errored");qe(this,Ae)}},{key:Zr,value:function(Ae){return this._pendingPullIntos.length>0&&(this._pendingPullIntos[0].bytesFilled=0),Ai(this),this._cancelAlgorithm(Ae)}},{key:Va,value:function(){var Ae=this._controlledReadableByteStream;if(this._queueTotalSize>0){var Ze=this._queue.shift();this._queueTotalSize-=Ze.byteLength,Z(this);var it=void 0;try{it=new Uint8Array(Ze.buffer,Ze.byteOffset,Ze.byteLength)}catch(Dr){return Promise.reject(Dr)}return Promise.resolve(ve(it,!1))}var ot=this._autoAllocateChunkSize;if(ot!==void 0){var Nt=void 0;try{Nt=new ArrayBuffer(ot)}catch(Dr){return Promise.reject(Dr)}var Vt={buffer:Nt,byteOffset:0,byteLength:ot,bytesFilled:0,elementSize:1,ctor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(Vt)}var ir=g(Ae);return M(this),ir}},{key:"byobRequest",get:function(){if(Se(this)===!1)throw S("byobRequest");if(this._byobRequest===void 0&&this._pendingPullIntos.length>0){var Ae=this._pendingPullIntos[0],Ze=new Uint8Array(Ae.buffer,Ae.byteOffset+Ae.bytesFilled,Ae.byteLength-Ae.bytesFilled),it=Object.create(va.prototype);fe(it,this,Ze),this._byobRequest=it}return this._byobRequest}},{key:"desiredSize",get:function(){if(Se(this)===!1)throw S("desiredSize");return W(this)}}]),ue}()},{"./helpers.js":10,"./queue-with-sizes.js":11,"./utils.js":14,"./writable-stream.js":15,"better-assert":16}],13:[function(r,n,a){function s(z,M){if(!(z instanceof M))throw new TypeError("Cannot call a class as a function")}function o(z,M,k){var T=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,R=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){return 1},U=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,G=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){return 1},Q=Object.create(Re.prototype),Z=void 0;u(Q,new Promise(function(re){Z=re}),T,R,U,G),p(Q,Object.create(Se.prototype),M,k);var se=z();return Z(se),Q}function u(z,M,k,T,R,U){function G(){return M}z._writable=Pe(G,function(Z){return v(z,Z)},function(){return w(z)},function(){return _(z)},k,T),z._readable=Y(G,function(){return E(z)},function(Z){return d(z,Z),Promise.resolve()},R,U),z._backpressure=void 0,z._backpressureChangePromise=void 0,z._backpressureChangePromise_resolve=void 0,f(z,!0),z._transformStreamController=void 0}function c(z){return!!$(z)&&!!Object.prototype.hasOwnProperty.call(z,"_transformStreamController")}function l(z,M){x("TransformStreamError()"),z._readable._state==="readable"&&Ne(z._readable._readableStreamController,M),d(z,M)}function d(z,M){we(z._writable._writableStreamController,M),z._backpressure===!0&&f(z,!1)}function f(z,M){x("TransformStreamSetBackpressure() [backpressure = "+M+"]"),z._backpressureChangePromise!==void 0&&z._backpressureChangePromise_resolve(),z._backpressureChangePromise=new Promise(function(k){z._backpressureChangePromise_resolve=k}),z._backpressure=M}function h(z){return!!$(z)&&!!Object.prototype.hasOwnProperty.call(z,"_controlledTransformStream")}function p(z,M,k,T){M._controlledTransformStream=z,z._transformStreamController=M,M._transformAlgorithm=k,M._flushAlgorithm=T}function m(z,M){var k=Object.create(Se.prototype),T=function(Q){try{return y(k,Q),Promise.resolve()}catch(Z){return Promise.reject(Z)}},R=M.transform;if(R!==void 0){if(typeof R!="function")throw new TypeError("transform is not a method");T=function(Q){return V(R,M,[Q,k]).catch(function(Z){throw l(z,Z),Z})}}var U=N(M,"flush",0,[k]);p(z,k,T,U)}function y(z,M){x("TransformStreamDefaultControllerEnqueue()");var k=z._controlledTransformStream,T=k._readable._readableStreamController;if(ce(T)===!1)throw new TypeError("Readable side is not in a state that permits enqueue");try{Te(T,M)}catch(R){throw d(k,R),k._readable._storedError}de(T)!==k._backpressure&&f(k,!0)}function g(z,M){l(z._controlledTransformStream,M)}function b(z){x("TransformStreamDefaultControllerTerminate()");var M=z._controlledTransformStream,k=M._readable._readableStreamController;ce(k)===!0&&he(k),d(M,new TypeError("TransformStream terminated"))}function v(z,M){x("TransformStreamDefaultSinkWriteAlgorithm()");var k=z._transformStreamController;return z._backpressure===!0?z._backpressureChangePromise.then(function(){var T=z._writable;if(T._state==="erroring")throw T._storedError;return k._transformAlgorithm(M)}):k._transformAlgorithm(M)}function _(z){return l(z,new TypeError("Writable side aborted")),Promise.resolve()}function w(z){x("TransformStreamDefaultSinkCloseAlgorithm()");var M=z._readable;return z._transformStreamController._flushAlgorithm().then(function(){if(M._state==="errored")throw M._storedError;var k=M._readableStreamController;ce(k)===!0&&he(k)}).catch(function(k){throw l(z,k),M._storedError})}function E(z){return x("TransformStreamDefaultSourcePullAlgorithm()"),f(z,!1),z._backpressureChangePromise}function O(z){return new TypeError("TransformStreamDefaultController.prototype."+z+" can only be used on a TransformStreamDefaultController")}function L(z){return new TypeError("TransformStream.prototype."+z+" can only be used on a TransformStream")}var F=function(){function z(M,k){for(var T=0;T0&&arguments[0]!==void 0?arguments[0]:{},k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(s(this,z),M.readableType!==void 0)throw new RangeError("Invalid readable type specified");if(M.writableType!==void 0)throw new RangeError("Invalid writable type specified");var R=k.size,U=H(R),G=k.highWaterMark;G===void 0&&(G=1),G=q(G);var Q=T.size,Z=H(Q),se=T.highWaterMark;se===void 0&&(se=0),se=q(se);var re=void 0;u(this,new Promise(function(pe){re=pe}),G,U,se,Z),m(this,M);var le=j(M,"start",[this._transformStreamController]);re(le)}return F(z,[{key:"readable",get:function(){if(c(this)===!1)throw L("readable");return this._readable}},{key:"writable",get:function(){if(c(this)===!1)throw L("writable");return this._writable}}]),z}(),Se=function(){function z(){throw s(this,z),new TypeError("TransformStreamDefaultController instances cannot be created directly")}return F(z,[{key:"enqueue",value:function(k){if(h(this)===!1)throw O("enqueue");y(this,k)}},{key:"error",value:function(k){if(h(this)===!1)throw O("error");g(this,k)}},{key:"terminate",value:function(){if(h(this)===!1)throw O("terminate");b(this)}},{key:"desiredSize",get:function(){if(h(this)===!1)throw O("desiredSize");var k=this._controlledTransformStream._readable._readableStreamController;return $e(k)}}]),z}();n.exports={CreateTransformStream:o,TransformStream:Re}},{"./helpers.js":10,"./readable-stream.js":12,"./writable-stream.js":15,"better-assert":16,debug:18}],14:[function(r,n,a){var s=r("better-assert");a.rethrowAssertionErrorRejection=function(o){o&&o.constructor===s.AssertionError&&setTimeout(function(){throw o},0)}},{"better-assert":16}],15:[function(r,n,a){function s(S,A){if(!(S instanceof A))throw new TypeError("Cannot call a class as a function")}function o(S){return new ht(S)}function u(S,A,C,J){var ie=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1,be=arguments.length>5&&arguments[5]!==void 0?arguments[5]:function(){return 1},ve=Object.create(ct.prototype);return c(ve),Te(ve,Object.create(te.prototype),S,A,C,J,ie,be),ve}function c(S){S._state="writable",S._storedError=void 0,S._writer=void 0,S._writableStreamController=void 0,S._writeRequests=[],S._inFlightWriteRequest=void 0,S._closeRequest=void 0,S._inFlightCloseRequest=void 0,S._pendingAbortRequest=void 0,S._backpressure=!1}function l(S){return!!fe(S)&&!!Object.prototype.hasOwnProperty.call(S,"_writableStreamController")}function d(S){return S._writer!==void 0}function f(S,A){var C=S._state;if(C==="closed")return Promise.resolve(void 0);if(C==="errored")return Promise.reject(S._storedError);var J=new TypeError("Requested to abort");if(S._pendingAbortRequest!==void 0)return Promise.reject(J);var ie=!1;C==="erroring"&&(ie=!0,A=void 0);var be=new Promise(function(ve,Fe){S._pendingAbortRequest={_resolve:ve,_reject:Fe,_reason:A,_wasAlreadyErroring:ie}});return ie===!1&&m(S,J),be}function h(S){return new Promise(function(A,C){var J={_resolve:A,_reject:C};S._writeRequests.push(J)})}function p(S,A){qe("WritableStreamDealWithRejection(stream, %o)",A),S._state!=="writable"?y(S):m(S,A)}function m(S,A){qe("WritableStreamStartErroring(stream, %o)",A);var C=S._writableStreamController;S._state="erroring",S._storedError=A;var J=S._writer;J!==void 0&&q(J,A),E(S)===!1&&C._started===!0&&y(S)}function y(S){qe("WritableStreamFinishErroring()"),S._state="errored",S._writableStreamController[at]();var A=S._storedError,C=!0,J=!1,ie=void 0;try{for(var be,ve=S._writeRequests[Symbol.iterator]();!(C=(be=ve.next()).done);C=!0)be.value._reject(A)}catch(Je){J=!0,ie=Je}finally{try{!C&&ve.return&&ve.return()}finally{if(J)throw ie}}if(S._writeRequests=[],S._pendingAbortRequest!==void 0){var Fe=S._pendingAbortRequest;if(S._pendingAbortRequest=void 0,Fe._wasAlreadyErroring===!0)return Fe._reject(A),void F(S);S._writableStreamController[ut](Fe._reason).then(function(){Fe._resolve(),F(S)},function(Je){Fe._reject(Je),F(S)})}else F(S)}function g(S){S._inFlightWriteRequest._resolve(void 0),S._inFlightWriteRequest=void 0}function b(S,A){S._inFlightWriteRequest._reject(A),S._inFlightWriteRequest=void 0,p(S,A)}function v(S){S._inFlightCloseRequest._resolve(void 0),S._inFlightCloseRequest=void 0,S._state==="erroring"&&(S._storedError=void 0,S._pendingAbortRequest!==void 0&&(S._pendingAbortRequest._resolve(),S._pendingAbortRequest=void 0)),S._state="closed";var A=S._writer;A!==void 0&&re(A)}function _(S,A){S._inFlightCloseRequest._reject(A),S._inFlightCloseRequest=void 0,S._pendingAbortRequest!==void 0&&(S._pendingAbortRequest._reject(A),S._pendingAbortRequest=void 0),p(S,A)}function w(S){return S._closeRequest!==void 0||S._inFlightCloseRequest!==void 0}function E(S){return S._inFlightWriteRequest===void 0&&S._inFlightCloseRequest===void 0?(qe("WritableStreamHasOperationMarkedInFlight() is false"),!1):(qe("WritableStreamHasOperationMarkedInFlight() is true"),!0)}function O(S){S._inFlightCloseRequest=S._closeRequest,S._closeRequest=void 0}function L(S){S._inFlightWriteRequest=S._writeRequests.shift()}function F(S){qe("WritableStreamRejectCloseAndClosedPromiseIfNeeded()"),S._closeRequest!==void 0&&(S._closeRequest._reject(S._storedError),S._closeRequest=void 0);var A=S._writer;A!==void 0&&(Z(A,S._storedError),A._closedPromise.catch(function(){}))}function x(S,A){var C=S._writer;C!==void 0&&A!==S._backpressure&&(A===!0?Ee(C):Ce(C)),S._backpressure=A}function P(S){return!!fe(S)&&!!Object.prototype.hasOwnProperty.call(S,"_ownerWritableStream")}function j(S,A){return f(S._ownerWritableStream,A)}function N(S){var A=S._ownerWritableStream,C=A._state;if(C==="closed"||C==="errored")return Promise.reject(new TypeError("The stream (in "+C+" state) is not in the writable state and cannot be closed"));var J=new Promise(function(ie,be){var ve={_resolve:ie,_reject:be};A._closeRequest=ve});return A._backpressure===!0&&C==="writable"&&Ce(S),$e(A._writableStreamController),J}function V(S){var A=S._ownerWritableStream,C=A._state;return w(A)===!0||C==="closed"?Promise.resolve():C==="errored"?Promise.reject(A._storedError):N(S)}function $(S,A){S._closedPromiseState==="pending"?Z(S,A):se(S,A),S._closedPromise.catch(function(){})}function q(S,A){qe("WritableStreamDefaultWriterEnsureReadyPromiseRejected(writer, %o)",A),S._readyPromiseState==="pending"?Ie(S,A):Me(S,A),S._readyPromise.catch(function(){})}function H(S){var A=S._ownerWritableStream,C=A._state;return C==="errored"||C==="erroring"?null:C==="closed"?0:ce(A._writableStreamController)}function X(S){var A=S._ownerWritableStream,C=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");q(S,C),$(S,C),A._writer=void 0,S._ownerWritableStream=void 0}function Y(S,A){var C=S._ownerWritableStream,J=C._writableStreamController,ie=de(J,A);if(C!==S._ownerWritableStream)return Promise.reject(R("write to"));var be=C._state;if(be==="errored")return Promise.reject(C._storedError);if(w(C)===!0||be==="closed")return Promise.reject(new TypeError("The stream is closing or closed and cannot be written to"));if(be==="erroring")return Promise.reject(C._storedError);var ve=h(C);return xe(J,A,ie),ve}function he(S){return!!fe(S)&&!!Object.prototype.hasOwnProperty.call(S,"_controlledWritableStream")}function Te(S,A,C,J,ie,be,ve,Fe){A._controlledWritableStream=S,S._writableStreamController=A,A._queue=void 0,A._queueTotalSize=void 0,Ye(A),A._started=!1,A._strategySizeAlgorithm=Fe,A._strategyHWM=ve,A._writeAlgorithm=J,A._closeAlgorithm=ie,A._abortAlgorithm=be;var Je=z(A);x(S,Je);var lt=C();Promise.resolve(lt).then(function(){A._started=!0,Pe(A)},function(rt){A._started=!0,p(S,rt)}).catch(Le)}function Ne(S,A,C,J){var ie=Object.create(te.prototype),be=D(A,"write",1,[ie]),ve=D(A,"close",0,[]),Fe=D(A,"abort",1,[]);Te(S,ie,function(){return B(A,"start",[ie])},be,ve,Fe,C,J)}function $e(S){De(S,"close",0),Pe(S)}function de(S,A){try{return S._strategySizeAlgorithm(A)}catch(C){return we(S,C),1}}function ce(S){return S._strategyHWM-S._queueTotalSize}function xe(S,A,C){var J={chunk:A};try{De(S,J,C)}catch(be){return void we(S,be)}var ie=S._controlledWritableStream;w(ie)===!1&&ie._state==="writable"&&x(ie,z(S)),Pe(S)}function Pe(S){qe("WritableStreamDefaultControllerAdvanceQueueIfNeeded()");var A=S._controlledWritableStream;if(S._started!==!1&&A._inFlightWriteRequest===void 0){var C=A._state;if(C!=="closed"&&C!=="errored")if(C!=="erroring"){if(S._queue.length!==0){var J=Ue(S);J==="close"?Re(S):Se(S,J.chunk)}}else y(A)}}function we(S,A){S._controlledWritableStream._state==="writable"&&M(S,A)}function Re(S){var A=S._controlledWritableStream;O(A),Oe(S),S._closeAlgorithm().then(function(){v(A)},function(C){_(A,C)}).catch(Le)}function Se(S,A){var C=S._controlledWritableStream;L(C),S._writeAlgorithm(A).then(function(){g(C);var J=C._state;if(Oe(S),w(C)===!1&&J==="writable"){var ie=z(S);x(C,ie)}Pe(S)},function(J){b(C,J)}).catch(Le)}function z(S){return ce(S)<=0}function M(S,A){m(S._controlledWritableStream,A)}function k(S){return new TypeError("WritableStream.prototype."+S+" can only be used on a WritableStream")}function T(S){return new TypeError("WritableStreamDefaultWriter.prototype."+S+" can only be used on a WritableStreamDefaultWriter")}function R(S){return new TypeError("Cannot "+S+" a stream using a released writer")}function U(S){S._closedPromise=new Promise(function(A,C){S._closedPromise_resolve=A,S._closedPromise_reject=C,S._closedPromiseState="pending"})}function G(S,A){S._closedPromise=Promise.reject(A),S._closedPromise_resolve=void 0,S._closedPromise_reject=void 0,S._closedPromiseState="rejected"}function Q(S){S._closedPromise=Promise.resolve(void 0),S._closedPromise_resolve=void 0,S._closedPromise_reject=void 0,S._closedPromiseState="resolved"}function Z(S,A){S._closedPromise_reject(A),S._closedPromise_resolve=void 0,S._closedPromise_reject=void 0,S._closedPromiseState="rejected"}function se(S,A){S._closedPromise=Promise.reject(A),S._closedPromiseState="rejected"}function re(S){S._closedPromise_resolve(void 0),S._closedPromise_resolve=void 0,S._closedPromise_reject=void 0,S._closedPromiseState="resolved"}function le(S){qe("defaultWriterReadyPromiseInitialize()"),S._readyPromise=new Promise(function(A,C){S._readyPromise_resolve=A,S._readyPromise_reject=C}),S._readyPromiseState="pending"}function pe(S,A){qe("defaultWriterReadyPromiseInitializeAsRejected(writer, %o)",A),S._readyPromise=Promise.reject(A),S._readyPromise_resolve=void 0,S._readyPromise_reject=void 0,S._readyPromiseState="rejected"}function _e(S){qe("defaultWriterReadyPromiseInitializeAsResolved()"),S._readyPromise=Promise.resolve(void 0),S._readyPromise_resolve=void 0,S._readyPromise_reject=void 0,S._readyPromiseState="fulfilled"}function Ie(S,A){qe("defaultWriterReadyPromiseReject(writer, %o)",A),S._readyPromise_reject(A),S._readyPromise_resolve=void 0,S._readyPromise_reject=void 0,S._readyPromiseState="rejected"}function Ee(S){qe("defaultWriterReadyPromiseReset()"),S._readyPromise=new Promise(function(A,C){S._readyPromise_resolve=A,S._readyPromise_reject=C}),S._readyPromiseState="pending"}function Me(S,A){qe("defaultWriterReadyPromiseResetToRejected(writer, %o)",A),S._readyPromise=Promise.reject(A),S._readyPromiseState="rejected"}function Ce(S){qe("defaultWriterReadyPromiseResolve()"),S._readyPromise_resolve(void 0),S._readyPromise_resolve=void 0,S._readyPromise_reject=void 0,S._readyPromiseState="fulfilled"}var ke=function(){function S(A,C){for(var J=0;J0&&arguments[0]!==void 0?arguments[0]:{},C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},J=C.size,ie=C.highWaterMark,be=ie===void 0?1:ie;if(s(this,S),c(this),A.type!==void 0)throw new RangeError("Invalid type is specified");var ve=ne(J);Ne(this,A,be=K(be),ve)}return ke(S,[{key:"abort",value:function(C){return l(this)===!1?Promise.reject(k("abort")):d(this)===!0?Promise.reject(new TypeError("Cannot abort a stream that already has a writer")):f(this,C)}},{key:"getWriter",value:function(){if(l(this)===!1)throw k("getWriter");return o(this)}},{key:"locked",get:function(){if(l(this)===!1)throw k("locked");return d(this)}}]),S}();n.exports={AcquireWritableStreamDefaultWriter:o,CreateWritableStream:u,IsWritableStream:l,IsWritableStreamLocked:d,WritableStream:ct,WritableStreamAbort:f,WritableStreamDefaultControllerErrorIfNeeded:we,WritableStreamDefaultWriterCloseWithErrorPropagation:V,WritableStreamDefaultWriterRelease:X,WritableStreamDefaultWriterWrite:Y,WritableStreamCloseQueuedOrInFlight:w};var ht=function(){function S(A){if(s(this,S),l(A)===!1)throw new TypeError("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(d(A)===!0)throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=A,A._writer=this;var C=A._state;if(C==="writable")w(A)===!1&&A._backpressure===!0?le(this):_e(this),U(this);else if(C==="erroring")pe(this,A._storedError),this._readyPromise.catch(function(){}),U(this);else if(C==="closed")_e(this),Q(this);else{var J=A._storedError;pe(this,J),this._readyPromise.catch(function(){}),G(this,J),this._closedPromise.catch(function(){})}}return ke(S,[{key:"abort",value:function(C){return P(this)===!1?Promise.reject(T("abort")):this._ownerWritableStream===void 0?Promise.reject(R("abort")):j(this,C)}},{key:"close",value:function(){if(P(this)===!1)return Promise.reject(T("close"));var C=this._ownerWritableStream;return C===void 0?Promise.reject(R("close")):w(C)===!0?Promise.reject(new TypeError("cannot close an already-closing stream")):N(this)}},{key:"releaseLock",value:function(){if(P(this)===!1)throw T("releaseLock");this._ownerWritableStream!==void 0&&X(this)}},{key:"write",value:function(C){return P(this)===!1?Promise.reject(T("write")):this._ownerWritableStream===void 0?Promise.reject(R("write to")):Y(this,C)}},{key:"closed",get:function(){return P(this)===!1?Promise.reject(T("closed")):this._closedPromise}},{key:"desiredSize",get:function(){if(P(this)===!1)throw T("desiredSize");if(this._ownerWritableStream===void 0)throw R("desiredSize");return H(this)}},{key:"ready",get:function(){return P(this)===!1?Promise.reject(T("ready")):this._readyPromise}}]),S}(),te=function(){function S(){throw s(this,S),new TypeError("WritableStreamDefaultController cannot be constructed explicitly")}return ke(S,[{key:"error",value:function(C){if(he(this)===!1)throw new TypeError("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");this._controlledWritableStream._state==="writable"&&M(this,C)}},{key:ut,value:function(C){return this._abortAlgorithm(C)}},{key:at,value:function(){Ye(this)}}]),S}()},{"./helpers.js":10,"./queue-with-sizes.js":11,"./utils.js":14,"better-assert":16,debug:18}],16:[function(r,n,a){(function(s){function o(d){if(!d){var f=c(),h=f[1],p=h.getFileName(),m=h.getLineNumber(),y=(y=l.readFileSync(p,"utf8")).split(` +`)[m-1].match(/assert\((.*)\)/)[1];throw new u({message:y,stackStartFunction:f[0].getFunction()})}}var u=r("assert").AssertionError,c=r("callsite"),l=r("fs");n.exports=s.env.NO_ASSERT?function(){}:o}).call(this,r("_process"))},{_process:4,assert:2,callsite:17,fs:3}],17:[function(r,n,a){n.exports=function(){var s=Error.prepareStackTrace;Error.prepareStackTrace=function(c,l){return l};var o=new Error;Error.captureStackTrace(o,arguments.callee);var u=o.stack;return Error.prepareStackTrace=s,u}},{}],18:[function(r,n,a){(function(s){function o(){return!(typeof window>"u"||!window.process||window.process.type!=="renderer")||(typeof navigator>"u"||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&(typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function u(h){var p=this.useColors;if(h[0]=(p?"%c":"")+this.namespace+(p?" %c":" ")+h[0]+(p?"%c ":" ")+"+"+a.humanize(this.diff),p){var m="color: "+this.color;h.splice(1,0,m,"color: inherit");var y=0,g=0;h[0].replace(/%[a-zA-Z%]/g,function(b){b!=="%%"&&(y++,b==="%c"&&(g=y))}),h.splice(g,0,m)}}function c(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function l(h){try{h==null?a.storage.removeItem("debug"):a.storage.debug=h}catch{}}function d(){var h;try{h=a.storage.debug}catch{}return!h&&typeof s<"u"&&"env"in s&&(h=s.env.DEBUG),h}function f(){try{return window.localStorage}catch{}}a=n.exports=r("./debug"),a.log=c,a.formatArgs=u,a.save=l,a.load=d,a.useColors=o,a.storage=typeof chrome<"u"&&chrome.storage!==void 0?chrome.storage.local:f(),a.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],a.formatters.j=function(h){try{return JSON.stringify(h)}catch(p){return"[UnexpectedJSONParseError]: "+p.message}},a.enable(d())}).call(this,r("_process"))},{"./debug":19,_process:4}],19:[function(r,n,a){function s(h){var p,m=0;for(p in h)m=(m<<5)-m+h.charCodeAt(p),m|=0;return a.colors[Math.abs(m)%a.colors.length]}function o(h){function p(){if(p.enabled){var y=p,g=+new Date,b=g-(m||g);y.diff=b,y.prev=m,y.curr=g,m=g;for(var v=new Array(arguments.length),_=0;_100)){var y=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(m);if(y){var g=parseFloat(y[1]);switch((y[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return g*p;case"days":case"day":case"d":return g*h;case"hours":case"hour":case"hrs":case"hr":case"h":return g*f;case"minutes":case"minute":case"mins":case"min":case"m":return g*d;case"seconds":case"second":case"secs":case"sec":case"s":return g*l;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return g;default:return}}}}function o(m){return m>=h?Math.round(m/h)+"d":m>=f?Math.round(m/f)+"h":m>=d?Math.round(m/d)+"m":m>=l?Math.round(m/l)+"s":m+"ms"}function u(m){return c(m,h,"day")||c(m,f,"hour")||c(m,d,"minute")||c(m,l,"second")||m+" ms"}function c(m,y,g){if(!(m0)return s(m);if(g==="number"&&isNaN(m)===!1)return y.long?u(m):o(m);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(m))}},{}]},{},[1])(1)})}(cR)),cR.exports}const fs=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";fs.writable=t=>fs(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";fs.readable=t=>fs(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";fs.duplex=t=>fs.writable(t)&&fs.readable(t);fs.transform=t=>fs.duplex(t)&&typeof t._transform=="function";var Eee=fs,Aee={exports:{}};(function(t){t.exports=e,t.exports.WEBSTREAM_SUPPORT=typeof ReadableStream<"u";function e(r){if(!t.exports.WEBSTREAM_SUPPORT)throw new Error("No web ReadableStream support");var n=!1,a={};function s(c){a.data=d,a.end=d,a.end=f,a.close=f,a.error=f;for(var l in a)r.on(l,a[l]);r.pause();function d(h){n||(c.enqueue(h),r.pause())}function f(h){if(!n){n=!0;for(var p in a)r.removeListener(p,a[p]);h?c.error(h):c.close()}}}function o(){n||r.resume()}function u(){n=!0;for(var c in a)r.removeListener(c,a[c]);r.push(null),r.pause(),r.destroy?r.destroy():r.close&&r.close()}return new ReadableStream({start:s,pull:o,cancel:u})}})(Aee);var FNe=Aee.exports,gq;function Oee(){if(gq)return L0;gq=1,Object.defineProperty(L0,"__esModule",{value:!0}),L0.ActorHttp=void 0;const t=st,e=jNe();globalThis.ReadableStream||(globalThis.ReadableStream=MNe().ReadableStream);const r=Eee,n=FNe;let a=class extends t.Actor{constructor(o){super(o)}static toNodeReadable(o){return r(o)||o===null?o:(0,e.readableFromWeb)(o)}static toWebReadableStream(o){return n(o)}static headersToHash(o){const u={};return o.forEach((c,l)=>{u[l]=c}),u}};return L0.ActorHttp=a,L0}var j0={},_q;function BNe(){if(_q)return j0;_q=1,Object.defineProperty(j0,"__esModule",{value:!0}),j0.validateAndCloseHttpResponse=void 0;const t=ml,e=Oee();async function r(n,a){var s;if(a.status>=400){let o="empty response";if(a.body){const u=e.ActorHttp.toNodeReadable(a.body);o=await t(u)}throw new Error(`Could not update ${n} (HTTP status ${a.status}): +${o}`)}await((s=a.body)==null?void 0:s.cancel())}return j0.validateAndCloseHttpResponse=r,j0}var bq;function Lu(){return bq||(bq=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Oee(),t),r(BNe(),t)}(oR)),oR}(function(t){(function(e){var r=typeof globalThis<"u"&&globalThis||typeof t<"u"&&t||typeof r<"u"&&r,n={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};function a(P){return P&&DataView.prototype.isPrototypeOf(P)}if(n.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],o=ArrayBuffer.isView||function(P){return P&&s.indexOf(Object.prototype.toString.call(P))>-1};function u(P){if(typeof P!="string"&&(P=String(P)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(P)||P==="")throw new TypeError('Invalid character in header field name: "'+P+'"');return P.toLowerCase()}function c(P){return typeof P!="string"&&(P=String(P)),P}function l(P){var j={next:function(){var N=P.shift();return{done:N===void 0,value:N}}};return n.iterable&&(j[Symbol.iterator]=function(){return j}),j}function d(P){this.map={},P instanceof d?P.forEach(function(j,N){this.append(N,j)},this):Array.isArray(P)?P.forEach(function(j){this.append(j[0],j[1])},this):P&&Object.getOwnPropertyNames(P).forEach(function(j){this.append(j,P[j])},this)}d.prototype.append=function(P,j){P=u(P),j=c(j);var N=this.map[P];this.map[P]=N?N+", "+j:j},d.prototype.delete=function(P){delete this.map[u(P)]},d.prototype.get=function(P){return P=u(P),this.has(P)?this.map[P]:null},d.prototype.has=function(P){return this.map.hasOwnProperty(u(P))},d.prototype.set=function(P,j){this.map[u(P)]=c(j)},d.prototype.forEach=function(P,j){for(var N in this.map)this.map.hasOwnProperty(N)&&P.call(j,this.map[N],N,this)},d.prototype.keys=function(){var P=[];return this.forEach(function(j,N){P.push(N)}),l(P)},d.prototype.values=function(){var P=[];return this.forEach(function(j){P.push(j)}),l(P)},d.prototype.entries=function(){var P=[];return this.forEach(function(j,N){P.push([N,j])}),l(P)},n.iterable&&(d.prototype[Symbol.iterator]=d.prototype.entries);function f(P){if(P.bodyUsed)return Promise.reject(new TypeError("Already read"));P.bodyUsed=!0}function h(P){return new Promise(function(j,N){P.onload=function(){j(P.result)},P.onerror=function(){N(P.error)}})}function p(P){var j=new FileReader,N=h(j);return j.readAsArrayBuffer(P),N}function m(P){var j=new FileReader,N=h(j);return j.readAsText(P),N}function y(P){for(var j=new Uint8Array(P),N=new Array(j.length),V=0;V-1?j:P}function w(P,j){if(!(this instanceof w))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');j=j||{};var N=j.body;if(P instanceof w){if(P.bodyUsed)throw new TypeError("Already read");this.url=P.url,this.credentials=P.credentials,j.headers||(this.headers=new d(P.headers)),this.method=P.method,this.mode=P.mode,this.signal=P.signal,!N&&P._bodyInit!=null&&(N=P._bodyInit,P.bodyUsed=!0)}else this.url=String(P);if(this.credentials=j.credentials||this.credentials||"same-origin",(j.headers||!this.headers)&&(this.headers=new d(j.headers)),this.method=_(j.method||this.method||"GET"),this.mode=j.mode||this.mode||null,this.signal=j.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&N)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(N),(this.method==="GET"||this.method==="HEAD")&&(j.cache==="no-store"||j.cache==="no-cache")){var V=/([?&])_=[^&]*/;if(V.test(this.url))this.url=this.url.replace(V,"$1_="+new Date().getTime());else{var $=/\?/;this.url+=($.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})};function E(P){var j=new FormData;return P.trim().split("&").forEach(function(N){if(N){var V=N.split("="),$=V.shift().replace(/\+/g," "),q=V.join("=").replace(/\+/g," ");j.append(decodeURIComponent($),decodeURIComponent(q))}}),j}function O(P){var j=new d,N=P.replace(/\r?\n[\t ]+/g," ");return N.split("\r").map(function(V){return V.indexOf(` +`)===0?V.substr(1,V.length):V}).forEach(function(V){var $=V.split(":"),q=$.shift().trim();if(q){var H=$.join(":").trim();j.append(q,H)}}),j}b.call(w.prototype);function L(P,j){if(!(this instanceof L))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');j||(j={}),this.type="default",this.status=j.status===void 0?200:j.status,this.ok=this.status>=200&&this.status<300,this.statusText=j.statusText===void 0?"":""+j.statusText,this.headers=new d(j.headers),this.url=j.url||"",this._initBody(P)}b.call(L.prototype),L.prototype.clone=function(){return new L(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},L.error=function(){var P=new L(null,{status:0,statusText:""});return P.type="error",P};var F=[301,302,303,307,308];L.redirect=function(P,j){if(F.indexOf(j)===-1)throw new RangeError("Invalid status code");return new L(null,{status:j,headers:{location:P}})},e.DOMException=r.DOMException;try{new e.DOMException}catch{e.DOMException=function(j,N){this.message=j,this.name=N;var V=Error(j);this.stack=V.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function x(P,j){return new Promise(function(N,V){var $=new w(P,j);if($.signal&&$.signal.aborted)return V(new e.DOMException("Aborted","AbortError"));var q=new XMLHttpRequest;function H(){q.abort()}q.onload=function(){var Y={status:q.status,statusText:q.statusText,headers:O(q.getAllResponseHeaders()||"")};Y.url="responseURL"in q?q.responseURL:Y.headers.get("X-Request-URL");var he="response"in q?q.response:q.responseText;setTimeout(function(){N(new L(he,Y))},0)},q.onerror=function(){setTimeout(function(){V(new TypeError("Network request failed"))},0)},q.ontimeout=function(){setTimeout(function(){V(new TypeError("Network request failed"))},0)},q.onabort=function(){setTimeout(function(){V(new e.DOMException("Aborted","AbortError"))},0)};function X(Y){try{return Y===""&&r.location.href?r.location.href:Y}catch{return Y}}q.open($.method,X($.url),!0),$.credentials==="include"?q.withCredentials=!0:$.credentials==="omit"&&(q.withCredentials=!1),"responseType"in q&&(n.blob?q.responseType="blob":n.arrayBuffer&&$.headers.get("Content-Type")&&$.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(q.responseType="arraybuffer")),j&&typeof j.headers=="object"&&!(j.headers instanceof d)?Object.getOwnPropertyNames(j.headers).forEach(function(Y){q.setRequestHeader(Y,c(j.headers[Y]))}):$.headers.forEach(function(Y,he){q.setRequestHeader(he,Y)}),$.signal&&($.signal.addEventListener("abort",H),q.onreadystatechange=function(){q.readyState===4&&$.signal.removeEventListener("abort",H)}),q.send(typeof $._bodyInit>"u"?null:$._bodyInit)})}return x.polyfill=!0,r.fetch||(r.fetch=x,r.Headers=d,r.Request=w,r.Response=L),e.Headers=d,e.Request=w,e.Response=L,e.fetch=x,e})({})})(typeof self<"u"?self:I);var M0={},vq;function qNe(){if(vq)return M0;vq=1,Object.defineProperty(M0,"__esModule",{value:!0}),M0.FetchInitPreprocessor=void 0;const t=Lu();class e{async handle(n){if(n.headers){const a=new Headers(n.headers);a.has("user-agent")&&a.delete("user-agent"),n.headers=a}if(n!=null&&n.headers&&"append"in n.headers&&(n.headers=t.ActorHttp.headersToHash(n.headers)),n.body&&typeof n.body!="string"&&"getReader"in n.body){const a=n.body.getReader(),s=[];for(;;){const{done:o,value:u}=await a.read();if(o)break;s.push(u)}n.body=s.join("")}return{keepalive:!n.body,...n}}async createAbortController(){return new AbortController}}return M0.FetchInitPreprocessor=e,M0}var wq;function $Ne(){if(wq)return C0;wq=1,Object.defineProperty(C0,"__esModule",{value:!0}),C0.ActorHttpFetch=void 0;const t=Lu(),e=qt,r=qNe();let n=class YP extends t.ActorHttp{constructor(s){super(s),this.userAgent=YP.createUserAgent(),this.fetchInitPreprocessor=new r.FetchInitPreprocessor(s.agentOptions)}static createUserAgent(){return`Comunica/actor-http-fetch (${typeof globalThis.navigator>"u"?`Node.js ${co.version}; ${co.platform}`:`Browser-${globalThis.navigator.userAgent}`})`}async test(s){return{time:Number.POSITIVE_INFINITY}}static async getResponse(s,o,u,c,l,d){var p;let f,h=c+1;for(;h-- >0;)try{const m=await s(o,u);if(d&&m.status>=500&&m.status<600)throw new Error(`Server replied with response code ${m.status}: ${m.statusText}`);return m}catch(m){if(f=m,(p=u.signal)!=null&&p.aborted)throw m;h>0&&await new Promise((y,g)=>{var b;setTimeout(y,l),(b=u.signal)==null||b.addEventListener("abort",()=>{g(new Error("Fetch aborted by timeout."))})})}throw c>0?new Error(`Number of fetch retries (${c}) exceeded. Last error: ${String(f)}`):f}async run(s){var h,p,m,y,g,b,v,_;const o=((h=s.init)==null?void 0:h.headers)??{};s.init=s.init??{},s.init.headers=new Headers(o),s.init.headers.has("user-agent")||s.init.headers.append("user-agent",this.userAgent);const u=s.context.get(e.KeysHttp.auth);u&&s.init.headers.append("Authorization",`Basic ${Zi.from(u).toString("base64")}`),this.logInfo(s.context,`Requesting ${typeof s.input=="string"?s.input:s.input.url}`,()=>({headers:t.ActorHttp.headersToHash(new Headers(s.init.headers)),method:s.init.method??"GET"})),(p=s.init)!=null&&p.headers&&"append"in s.init.headers&&s.context.has(e.KeysHttp.fetch)&&(s.init.headers=t.ActorHttp.headersToHash(s.init.headers));let c={...s.init};s.context.get(e.KeysHttp.includeCredentials)&&(c.credentials="include");const l=(m=s.context)==null?void 0:m.get(e.KeysHttp.httpTimeout);let d,f;if(l!==void 0){const w=await this.fetchInitPreprocessor.createAbortController();c.signal=w.signal,f=()=>w.abort(),d=setTimeout(()=>f(),l)}try{c=await this.fetchInitPreprocessor.handle(c);const w=((y=s.context)==null?void 0:y.get(e.KeysHttp.httpRetryCount))??0,E=((g=s.context)==null?void 0:g.get(e.KeysHttp.httpRetryDelay))??0,O=((b=s.context)==null?void 0:b.get(e.KeysHttp.httpRetryOnServerError))??!1,L=(v=s.context)==null?void 0:v.get(e.KeysHttp.fetch),F=await YP.getResponse(L??fetch,s.input,c,w,E,O);return d!==void 0&&((((_=s.context)==null?void 0:_.get(e.KeysHttp.httpBodyTimeout))||!1)&&F.body?(f=()=>{var P;return(P=F.body)==null?void 0:P.cancel(new Error(`HTTP timeout when reading the body of ${F.url}. +This error can be disabled by modifying the 'httpBodyTimeout' and/or 'httpTimeout' options.`))},F.body.on("close",()=>{clearTimeout(d)})):clearTimeout(d)),F.body&&!F.body.cancel&&(F.body.cancel=async x=>{F.body.destroy(x),d!==void 0&&clearTimeout(d)}),F}catch(w){throw d!==void 0&&clearTimeout(d),w}}};return C0.ActorHttpFetch=n,C0}var Sq;function UNe(){return Sq||(Sq=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r($Ne(),t)}(sR)),sR}var lR={},F0={},Tq;function kNe(){if(Tq)return F0;Tq=1,Object.defineProperty(F0,"__esModule",{value:!0}),F0.ActorQueryOperationSource=void 0;const t=Tt(),e=qt,r=ci(),n=xt();let a=class extends t.ActorQueryOperation{constructor(o){super(o)}async test(o){if(!t.ActorQueryOperation.getOperationSource(o.operation))throw new Error(`Actor ${this.name} requires an operation with source annotation.`);return{httpRequests:1}}async run(o){const u=o.context.get(e.KeysInitQuery.physicalQueryPlanLogger);u&&(u.logOperation(o.operation.type,void 0,o.operation,o.context.get(e.KeysInitQuery.physicalQueryPlanNode),this.name,{}),o.context=o.context.set(e.KeysInitQuery.physicalQueryPlanNode,o.operation));const c=t.ActorQueryOperation.getOperationSource(o.operation),l=c.context?o.context.merge(c.context):o.context;let d=!1;if(n.Util.recurseOperation(o.operation,{construct(){return d=!0,!1}}),d){const p=c.source.queryQuads(o.operation,l),m=(0,r.getMetadataQuads)(p);return{type:"quads",quadStream:p,metadata:m}}switch(o.operation.type){case n.Algebra.types.ASK:return{type:"boolean",execute:()=>c.source.queryBoolean(o.operation,l)};case n.Algebra.types.COMPOSITE_UPDATE:case n.Algebra.types.DELETE_INSERT:case n.Algebra.types.LOAD:case n.Algebra.types.CLEAR:case n.Algebra.types.CREATE:case n.Algebra.types.DROP:case n.Algebra.types.ADD:case n.Algebra.types.MOVE:case n.Algebra.types.COPY:return{type:"void",execute:()=>c.source.queryVoid(o.operation,l)}}const f=c.source.queryBindings(o.operation,l),h=(0,r.getMetadataBindings)(f);return{type:"bindings",bindingsStream:f,metadata:h}}};return F0.ActorQueryOperationSource=a,F0}var Eq;function VNe(){return Eq||(Eq=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(kNe(),t)}(lR)),lR}var dR={},B0={},Aq;function HNe(){if(Aq)return B0;Aq=1,Object.defineProperty(B0,"__esModule",{value:!0}),B0.MediatorJoinCoefficientsFixed=void 0;const t=qt,e=st;let r=class extends e.Mediator{constructor(a){super(a)}async mediateWith(a,s){var y;const o=[],u=s.map(({reply:g})=>g).map(g=>g.catch(b=>{o.push(b)})),c=await Promise.all(u);let l=c.map(g=>{if(g)return g.iterations*this.cpuWeight+g.persistedItems*this.memoryWeight+g.blockingItems*this.timeWeight+g.requestTime*this.ioWeight});const d=Math.max(...l.filter(g=>g!==void 0)),f=a.context.get(t.KeysQueryOperation.limitIndicator);f&&(l=l.map((g,b)=>g!==void 0&&c[b].persistedItems>0&&c[b].iterations>f?g+d:g));let h=-1,p=Number.POSITIVE_INFINITY;for(const[g,b]of l.entries())b!==void 0&&(h===-1||bg.message).join(` -`)}`);const m=s[h].actor;return m.includeInLogs&&((y=e.Actor.getContextLogger(a.context))==null||y.debug(`Determined physical join operator '${m.logicalType}-${m.physicalName}'`,{entries:a.entries.length,variables:await Promise.all(a.entries.map(async g=>(await g.output.metadata()).variables.map(b=>b.value))),costs:Object.fromEntries(l.map((g,b)=>[`${s[b].actor.logicalType}-${s[b].actor.physicalName}`,g]).filter(g=>g[1]!==void 0)),coefficients:Object.fromEntries(c.map((g,b)=>[`${s[b].actor.logicalType}-${s[b].actor.physicalName}`,g]).filter(g=>g[1]!==void 0))})),m}};return B0.MediatorJoinCoefficientsFixed=r,B0}var Oq;function zNe(){return Oq||(Oq=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(QNe(),t)}(fR)),fR}var hR={},q0={},Rq;function Ree(){if(Rq)return q0;Rq=1,Object.defineProperty(q0,"__esModule",{value:!0}),q0.ActorHttpInvalidate=void 0;const t=st;let e=class extends t.Actor{constructor(n){super(n)}};return q0.ActorHttpInvalidate=e,q0}var $0={},xq;function GNe(){if(xq)return $0;xq=1,Object.defineProperty($0,"__esModule",{value:!0}),$0.ActorHttpInvalidateListenable=void 0;const t=Ree();let e=class extends t.ActorHttpInvalidate{constructor(n){super(n),this.invalidateListeners=[],this.invalidateListeners=[]}addInvalidateListener(n){this.invalidateListeners.push(n)}async test(n){return!0}async run(n){for(const a of this.invalidateListeners)a(n);return{}}};return $0.ActorHttpInvalidateListenable=e,$0}var Iq;function uw(){return Iq||(Iq=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Ree(),t),r(GNe(),t)}(hR)),hR}var pR={},U0={},Pq;function WNe(){if(Pq)return U0;Pq=1,Object.defineProperty(U0,"__esModule",{value:!0}),U0.MediatorAll=void 0;const t=st;let e=class extends t.Mediator{constructor(n){super(n)}async mediate(n){const a=[];let s;try{s=this.publish(n)}catch{s=[]}for(const u of s)try{await u.reply,a.push(u.actor)}catch{}return(await Promise.all(a.map(u=>u.runObservable(n))))[0]}async mediateWith(){throw new Error("Unsupported operation: MediatorAll#mediateWith")}};return U0.MediatorAll=e,U0}var Nq;function KNe(){return Nq||(Nq=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(WNe(),t)}(pR)),pR}var yR={},k0={},mR={},V0={},H0={},Dq;function JNe(){if(Dq)return H0;Dq=1,Object.defineProperty(H0,"__esModule",{value:!0}),H0.instrumentIterator=void 0;function t(r){const n={count:0,timeSelf:0,timeLife:0};return e(r,n,!0),new Promise(a=>{r.on("end",()=>{a(n)})})}H0.instrumentIterator=t;function e(r,n,a){if(!("_profileInstrumented"in r)){if(r._profileInstrumented=!0,"_read"in r){const s=r._read;r._read=(o,u)=>{const c=performance.now();s.call(r,o,()=>{n.timeSelf+=performance.now()-c,u()})}}if("read"in r){const s=r.read;r.read=()=>{const o=performance.now(),u=s.call(r);return a&&u&&n.count++,n.timeSelf+=performance.now()-o,u}}if(a){const s=performance.now();r.on("end",()=>{n.timeLife=performance.now()-s})}"_source"in r&&e(r._source,n,!1)}}return H0}var Cq;function XNe(){if(Cq)return V0;Cq=1,Object.defineProperty(V0,"__esModule",{value:!0}),V0.ActorRdfJoin=void 0;const t=qt,e=st,r=ci(),n=Ot,a=nr,s=JNe(),o=new n.DataFactory;let u=class hc extends e.Actor{constructor(l,d){super(l),this.includeInLogs=!0,this.logicalType=d.logicalType,this.physicalName=d.physicalName,this.limitEntries=d.limitEntries??Number.POSITIVE_INFINITY,this.limitEntriesMin=d.limitEntriesMin??!1,this.canHandleUndefs=d.canHandleUndefs??!1,this.isLeaf=d.isLeaf??!0}static hash(l,d){return d.map(f=>{const h=l.get(f);return h?h.value:""}).join("")}static hashNonClashing(l,d){return d.map(f=>{const h=l.get(f);return h?(0,a.termToString)(h):""}).join("")}static overlappingVariables(l){const d=l.map(h=>h.variables);let f=d[0];for(const h of d.slice(1))f=f.filter(p=>h.some(m=>m.value===p.value));return f}static joinVariables(l){return[...new Set(l.flatMap(d=>d.variables.map(f=>f.value)))].map(d=>o.variable(d))}static joinBindings(...l){if(l.length===0)return null;if(l.length===1)return l[0];let d=l[0];for(const f of l.slice(1)){const h=d.merge(f);if(!h)return null;d=h}return d}static getCardinality(l){return l.cardinality}static async getMetadatas(l){return await Promise.all(l.map(d=>d.output.metadata()))}static async getEntriesWithMetadatas(l){const d=await hc.getMetadatas(l);return l.map((f,h)=>({...f,metadata:d[h]}))}static getRequestInitialTimes(l){return l.map(d=>d.pageSize?0:d.requestTime??0)}static getRequestItemTimes(l){return l.map(d=>d.pageSize?(d.requestTime??0)/d.pageSize:0)}constructState(l){const d=new r.MetadataValidationState,f=()=>d.invalidate();for(const h of l)h.state.addInvalidateListener(f);return d}async constructResultMetadata(l,d,f,h={}){let p;return h.cardinality?p=h.cardinality:(p=d.reduce((m,y)=>{const g=hc.getCardinality(y);return{type:g.type==="estimate"?"estimate":m.type,value:m.value*g.value}},{type:"exact",value:1}),p.value*=(await this.mediatorJoinSelectivity.mediate({entries:l,context:f})).selectivity),{state:this.constructState(d),...h,cardinality:{type:p.type,value:p.value},canContainUndefs:h.canContainUndefs??d.some(m=>m.canContainUndefs),variables:hc.joinVariables(d)}}static async sortJoinEntries(l,d,f){if(d.some(g=>g.metadata.canContainUndefs))return d;const p={};for(const g of d)for(const b of g.metadata.variables){let v=p[b.value];v||(v=0),p[b.value]=++v}const m=[];for(const[g,b]of Object.entries(p))b>=2&&m.push(g);if(m.length===0)throw new Error("Bind join can only join entries with at least one common variable");const y=[];for(const g of d){let b=!1;for(const v of g.metadata.variables)if(m.includes(v.value)){b=!0;break}b||y.push(g)}return(await l.mediate({entries:d,context:f})).entries.sort((g,b)=>{const v=y.includes(g),_=y.includes(b);return v===_?0:v?1:-1})}async test(l){if(l.type!==this.logicalType)throw new Error(`${this.name} can only handle logical joins of type '${this.logicalType}', while '${l.type}' was given.`);if(l.entries.length<=1)throw new Error(`${this.name} requires at least two join entries.`);if(this.limitEntriesMin?l.entries.lengththis.limitEntries)throw new Error(`${this.name} requires ${this.limitEntries} join entries at ${this.limitEntriesMin?"least":"most"}. The input contained ${l.entries.length}.`);for(const f of l.entries)if(f.output.type!=="bindings")throw new Error(`Invalid type of a join entry: Expected 'bindings' but got '${f.output.type}'`);const d=await hc.getMetadatas(l.entries);if(!this.canHandleUndefs){for(const f of d)if(f.canContainUndefs)throw new Error(`Actor ${this.name} can not join streams containing undefs`)}return await this.getJoinCoefficients(l,d)}async run(l){let d;l.context.has(t.KeysInitQuery.physicalQueryPlanLogger)&&(d=l.context.get(t.KeysInitQuery.physicalQueryPlanNode),l.context=l.context.set(t.KeysInitQuery.physicalQueryPlanNode,l));const f=l.context.get(t.KeysInitQuery.physicalQueryPlanLogger);let h;this.includeInLogs&&f&&(h={},f.stashChildren(d,g=>g.logicalOperator.startsWith("join")),f.logOperation(`join-${this.logicalType}`,this.physicalName,l,d,this.name,h));const{result:p,physicalPlanMetadata:m}=await this.getOutput(l),y=await hc.getMetadatas(l.entries);if(h){(0,s.instrumentIterator)(p.bindingsStream).then(b=>{f.appendMetadata(l,{cardinalityReal:b.count,timeSelf:b.timeSelf,timeLife:b.timeLife})}),Object.assign(h,m);const g=y.map(hc.getCardinality);if(h.cardinalities=g,h.joinCoefficients=await this.getJoinCoefficients(l,y),this.isLeaf)for(let b=0;b=this.blockSize&&s(this.consumeChunkAsIterator()),a()}_flush(n){this.chunk.length>0&&this._push(this.consumeChunkAsIterator()),super._flush(n)}};return Q0.ChunkedIterator=e,Q0}var jq;function li(){return jq||(jq=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(XNe(),t),r(YNe(),t)}(mR)),mR}var Mq;function ZNe(){if(Mq)return k0;Mq=1,Object.defineProperty(k0,"__esModule",{value:!0}),k0.ActorRdfJoinSingle=void 0;const t=li();let e=class extends t.ActorRdfJoin{constructor(n){super(n,{logicalType:"inner",physicalName:"single",limitEntries:1}),this.includeInLogs=!1}async test(n){if(n.entries.length!==1)throw new Error(`Actor ${this.name} can only join a single entry`);return await this.getJoinCoefficients()}async getOutput(n){return{result:n.entries[0].output}}async getJoinCoefficients(){return{iterations:0,persistedItems:0,blockingItems:0,requestTime:0}}};return k0.ActorRdfJoinSingle=e,k0}var Fq;function eDe(){return Fq||(Fq=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(ZNe(),t)}(yR)),yR}var gR={},z0={},Bq;function tDe(){if(Bq)return z0;Bq=1,Object.defineProperty(z0,"__esModule",{value:!0}),z0.ActorRdfJoinMultiEmpty=void 0;const t=li(),e=ci(),r=Mt;let n=class extends t.ActorRdfJoin{constructor(s){super(s,{logicalType:"inner",physicalName:"multi-empty",canHandleUndefs:!0})}async test(s){if((await t.ActorRdfJoin.getMetadatas(s.entries)).every(o=>t.ActorRdfJoin.getCardinality(o).value>0))throw new Error(`Actor ${this.name} can only join entries where at least one is empty`);return super.test(s)}async getOutput(s){for(const o of s.entries)o.output.bindingsStream.close();return{result:{bindingsStream:new r.ArrayIterator([],{autoStart:!1}),metadata:async()=>({state:new e.MetadataValidationState,cardinality:{type:"exact",value:0},canContainUndefs:!1,variables:t.ActorRdfJoin.joinVariables(await t.ActorRdfJoin.getMetadatas(s.entries))}),type:"bindings"}}}async getJoinCoefficients(s,o){return{iterations:0,persistedItems:0,blockingItems:0,requestTime:0}}};return z0.ActorRdfJoinMultiEmpty=n,z0}var qq;function rDe(){return qq||(qq=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(tDe(),t)}(gR)),gR}var _R={},G0={},$q;function nDe(){if($q)return G0;$q=1,Object.defineProperty(G0,"__esModule",{value:!0}),G0.ActorRdfJoinMultiBindSource=void 0;const t=Tt(),e=li(),r=Mt,n=xt(),a=new n.Factory;let s=class extends e.ActorRdfJoin{constructor(u){super(u,{logicalType:"inner",physicalName:"bind-source",canHandleUndefs:!0})}async getOutput(u){const c=await e.ActorRdfJoin.getEntriesWithMetadatas(u.entries),l=await this.sortJoinEntries(c,u.context);this.logDebug(u.context,"First entry for Bind Join Source: ",()=>({entry:l[0].operation,metadata:l[0].metadata}));for(const[b,v]of l.entries())b!==0&&v.output.bindingsStream.close();const d=l[0].output,f=l[0].metadata,h=[...l];h.splice(0,1);const p=t.ActorQueryOperation.getOperationSource(h[0].operation),m=this.createOperationFromEntries(h),y=new e.ChunkedIterator(d.bindingsStream,this.blockSize,{autoStart:!1});return{result:{type:"bindings",bindingsStream:new r.UnionIterator(y.map(b=>p.source.queryBindings(m,p.context?u.context.merge(p.context):u.context,{joinBindings:{bindings:b,metadata:f}}))),metadata:()=>this.constructResultMetadata(l,l.map(b=>b.metadata),u.context)},physicalPlanMetadata:{bindIndex:c.indexOf(l[0])}}}async sortJoinEntries(u,c){return u=await e.ActorRdfJoin.sortJoinEntries(this.mediatorJoinEntriesSort,u,c),u=u.sort((l,d)=>l.operationModified&&!d.operationModified?-1:0),u}async getJoinCoefficients(u,c){const l=await this.sortJoinEntries(u.entries.map((_,w)=>({..._,metadata:c[w]})),u.context);c=l.map(_=>_.metadata);const d=e.ActorRdfJoin.getRequestInitialTimes(c),f=e.ActorRdfJoin.getRequestItemTimes(c),h=[...l];[...d],[...f],h.splice(0,1);const p=h.map(_=>t.ActorQueryOperation.getOperationSource(_.operation));if(p.some(_=>!_))throw new Error(`Actor ${this.name} can not bind on remaining operations without source annotation`);if(p.some(_=>_!==p[0]))throw new Error(`Actor ${this.name} can not bind on remaining operations with non-equal source annotation`);const m=p[0],y=this.createOperationFromEntries(h),g=await m.source.getSelectorShape(u.context);if(!t.ActorQueryOperation.doesShapeAcceptOperation(g,y,{joinBindings:!0}))throw new Error(`Actor ${this.name} detected a source that can not handle passing down join bindings`);const b=await Promise.all(h.map(async _=>(await this.mediatorJoinSelectivity.mediate({entries:[l[0],_],context:u.context})).selectivity*this.selectivityModifier)),v=h.map((_,w)=>_.metadata.cardinality.value*b[w]).reduce((_,w)=>_+w,0);return{iterations:1,persistedItems:c[0].cardinality.value,blockingItems:c[0].cardinality.value,requestTime:d[0]+c[0].cardinality.value*f[0]+d[1]+v*f[1]}}createOperationFromEntries(u){return u.length===1?u[0].operation:a.createJoin(u.map(c=>c.operation),!0)}};return G0.ActorRdfJoinMultiBindSource=s,G0}var Uq;function iDe(){return Uq||(Uq=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(nDe(),t)}(_R)),_R}var bR={},W0={},vR,kq;function aDe(){if(kq)return vR;kq=1;let t=Mt,e=t.MultiTransformIterator,r=t.SimpleTransformIterator;class n extends e{constructor(s,o,u,c){super(s,c),this.funRight=o,this.funJoin=u}_createTransformer(s){return new r(this.funRight(s),{transform:(o,u,c)=>{let l=this.funJoin(s,o);l!==null&&c(l),u()}})}}return vR=n,vR}var wR,Vq;function sDe(){if(Vq)return wR;Vq=1;let t=Mt.AsyncIterator;class e extends t{constructor(n,a,s,o){super(),this.addedDataListener=!1,this.left=n,this.right=a,this.funHash=s,this.funJoin=o,this.leftMap=new Map,this.match=null,this.matches=[],this.matchIdx=0,this.left.on("error",c=>this.destroy(c)),this.right.on("error",c=>this.destroy(c)),this.readable=!1,this.left.on("end",u.bind(this));function u(){this.readable=!0,this.right.on("readable",()=>this.readable=!0),this.right.on("end",()=>{this.hasResults()||this._end()})}this.on("newListener",c=>{c==="data"&&this._addDataListenerIfNeeded()}),this.left.readable&&this._addDataListenerIfNeeded(),this.left.on("readable",()=>this._addDataListenerIfNeeded())}hasResults(){return!this.right.ended||this.matchIdxthis.right.close())}_end(){super._end(),r(()=>this.right.destroy())}_createTransformer(s){return new e(this.right.clone(),{transform:(o,u,c)=>{let l=this.funJoin(s,o);l!==null&&c(l),u()}})}}return SR=n,SR}var TR,Qq;function uDe(){if(Qq)return TR;Qq=1;let t=Mt.AsyncIterator;class e extends t{constructor(n,a,s,o){super(),this.left=n,this.right=a,this.funHash=s,this.funJoin=o,this.usedLeft=!1,this.leftMap=new Map,this.rightMap=new Map,this.on("end",()=>this._cleanup()),this.match=null,this.matches=[],this.matchIdx=0,(this.left.readable||this.right.readable)&&(this.readable=!0),this.left.on("error",u=>this.destroy(u)),this.right.on("error",u=>this.destroy(u)),this.left.on("readable",()=>this.readable=!0),this.right.on("readable",()=>this.readable=!0),this.left.on("end",()=>{this.hasResults()||this._end()}),this.right.on("end",()=>{this.hasResults()||this._end()})}hasResults(){return!this.left.ended||!this.right.ended||!!this.matches&&this.matchIdxthis.emit("readable")),a.on("end",()=>this._removeStream(a));this.streams.length===0&&this.close(),this.idx=this.streams.length-1}_removeStream(n){let a=this.streams.indexOf(n);a<0||(this.streams.splice(a,1),this.idx>=this.streams.length&&--this.idx,this.streams.length===0&&this._end())}close(){super.close();for(let n of this.streams)n.close()}read(){for(let n=0;nt.ActorRdfJoin.hash(c,o),t.ActorRdfJoin.joinBindings),metadata:async()=>await this.constructResultMetadata(a.entries,s,a.context)}}}async getJoinCoefficients(a,s){const o=t.ActorRdfJoin.getRequestInitialTimes(s),u=t.ActorRdfJoin.getRequestItemTimes(s);return{iterations:s[0].cardinality.value+s[1].cardinality.value,persistedItems:s[0].cardinality.value,blockingItems:s[0].cardinality.value,requestTime:o[0]+s[0].cardinality.value*u[0]+o[1]+s[1].cardinality.value*u[1]}}};return W0.ActorRdfJoinHash=r,W0}var Kq;function dDe(){return Kq||(Kq=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(lDe(),t)}(bR)),bR}var OR={},K0={},Jq;function fDe(){if(Jq)return K0;Jq=1,Object.defineProperty(K0,"__esModule",{value:!0}),K0.ActorRdfJoinSymmetricHash=void 0;const t=li(),e=xT();let r=class xee extends t.ActorRdfJoin{constructor(a){super(a,{logicalType:"inner",physicalName:"symmetric-hash",limitEntries:2})}async getOutput(a){const s=await t.ActorRdfJoin.getMetadatas(a.entries),o=t.ActorRdfJoin.overlappingVariables(s);return{result:{type:"bindings",bindingsStream:new e.SymmetricHashJoin(a.entries[0].output.bindingsStream,a.entries[1].output.bindingsStream,c=>xee.hash(c,o),t.ActorRdfJoin.joinBindings),metadata:async()=>await this.constructResultMetadata(a.entries,s,a.context)}}}async getJoinCoefficients(a,s){const o=t.ActorRdfJoin.getRequestInitialTimes(s),u=t.ActorRdfJoin.getRequestItemTimes(s);return{iterations:s[0].cardinality.value+s[1].cardinality.value,persistedItems:s[0].cardinality.value+s[1].cardinality.value,blockingItems:0,requestTime:o[0]+s[0].cardinality.value*u[0]+o[1]+s[1].cardinality.value*u[1]}}};return K0.ActorRdfJoinSymmetricHash=r,K0}var Xq;function hDe(){return Xq||(Xq=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(fDe(),t)}(OR)),OR}var RR={},J0={},Yq;function pDe(){if(Yq)return J0;Yq=1,Object.defineProperty(J0,"__esModule",{value:!0}),J0.ActorRdfJoinNestedLoop=void 0;const t=li(),e=xT();let r=class extends t.ActorRdfJoin{constructor(a){super(a,{logicalType:"inner",physicalName:"nested-loop",limitEntries:2,canHandleUndefs:!0})}async getOutput(a){return{result:{type:"bindings",bindingsStream:new e.NestedLoopJoin(a.entries[0].output.bindingsStream,a.entries[1].output.bindingsStream,t.ActorRdfJoin.joinBindings,{autoStart:!1}),metadata:async()=>await this.constructResultMetadata(a.entries,await t.ActorRdfJoin.getMetadatas(a.entries),a.context)}}}async getJoinCoefficients(a,s){const o=t.ActorRdfJoin.getRequestInitialTimes(s),u=t.ActorRdfJoin.getRequestItemTimes(s);return{iterations:s[0].cardinality.value*s[1].cardinality.value,persistedItems:0,blockingItems:0,requestTime:o[0]+s[0].cardinality.value*u[0]+o[1]+s[1].cardinality.value*u[1]}}};return J0.ActorRdfJoinNestedLoop=r,J0}var Zq;function yDe(){return Zq||(Zq=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(pDe(),t)}(RR)),RR}var xR={},X0={},e$;function mDe(){if(e$)return X0;e$=1,Object.defineProperty(X0,"__esModule",{value:!0}),X0.ActorRdfJoinMinusHash=void 0;const t=Tt(),e=li();let r=class extends e.ActorRdfJoin{constructor(a){super(a,{logicalType:"minus",physicalName:"hash",limitEntries:2})}async getOutput(a){const s=a.entries[1].output,o=a.entries[0].output,u=await e.ActorRdfJoin.getMetadatas(a.entries),c=e.ActorRdfJoin.overlappingVariables(u);if(c.length>0){const l={},d=new t.ClosableTransformIterator(async()=>(await new Promise(f=>{s.bindingsStream.on("data",h=>{l[e.ActorRdfJoin.hashNonClashing(h,c)]=!0}),s.bindingsStream.on("end",f),s.bindingsStream.on("error",h=>{d.emit("error",h)})}),o.bindingsStream.filter(f=>!l[e.ActorRdfJoin.hashNonClashing(f,c)])),{autoStart:!1,onClose(){s.bindingsStream.destroy(),o.bindingsStream.destroy()}});return{result:{type:"bindings",bindingsStream:d,metadata:o.metadata}}}return s.bindingsStream.destroy(),{result:o}}async getJoinCoefficients(a,s){const o=e.ActorRdfJoin.getRequestInitialTimes(s),u=e.ActorRdfJoin.getRequestItemTimes(s);return{iterations:s[0].cardinality.value+s[1].cardinality.value,persistedItems:s[0].cardinality.value,blockingItems:s[0].cardinality.value,requestTime:o[0]+s[0].cardinality.value*u[0]+o[1]+s[1].cardinality.value*u[1]}}};return X0.ActorRdfJoinMinusHash=r,X0}var t$;function gDe(){return t$||(t$=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(mDe(),t)}(xR)),xR}var IR={},Y0={},Z0={},r$;function _De(){if(r$)return Z0;r$=1,Object.defineProperty(Z0,"__esModule",{value:!0}),Z0.BindingsIndex=void 0;const t=nr;let e=class ZP{constructor(n){this.data={},this.keys=n}static hashTerm(n){return n&&n.termType!=="Variable"?(0,t.termToString)(n):""}add(n){if(this.isBindingsValid(n)){let a=this.data;for(const s of this.keys){const o=ZP.hashTerm(n.get(s));let u=a[o];u||(u=a[o]={}),a=u}}}contains(n){return this.isBindingsValid(n)?this.containsRecursive(n,this.keys,[this.data]):!1}isBindingsValid(n){let a=!1;for(const s of this.keys)if(n.get(s)){a=!0;break}return a}containsRecursive(n,a,s){if(a.length===0)return!0;let o;[o,...a]=a;for(const u of s){const c=ZP.hashTerm(n.get(o));if(c){const l=[u[c],u[""]].filter(Boolean);if(l.length===0)continue;if(this.containsRecursive(n,a,l))return!0}else{let l=Object.keys(u).map(d=>u[d]);if(l.length===0&&(l=[{}]),this.containsRecursive(n,a,l))return!0}}return!1}};return Z0.BindingsIndex=e,Z0}var n$;function bDe(){if(n$)return Y0;n$=1,Object.defineProperty(Y0,"__esModule",{value:!0}),Y0.ActorRdfJoinMinusHashUndef=void 0;const t=Tt(),e=li(),r=_De();let n=class extends e.ActorRdfJoin{constructor(s){super(s,{logicalType:"minus",physicalName:"hash-undef",limitEntries:2,canHandleUndefs:!0})}async getOutput(s){const o=s.entries[1].output,u=s.entries[0].output,c=await e.ActorRdfJoin.getMetadatas(s.entries),l=e.ActorRdfJoin.overlappingVariables(c);if(l.length>0){const d=new r.BindingsIndex(l),f=new t.ClosableTransformIterator(async()=>(await new Promise(h=>{o.bindingsStream.on("data",p=>d.add(p)),o.bindingsStream.on("end",h),o.bindingsStream.on("error",p=>{f.emit("error",p)})}),u.bindingsStream.filter(h=>!d.contains(h))),{autoStart:!1,onClose(){o.bindingsStream.destroy(),u.bindingsStream.destroy()}});return{result:{type:"bindings",bindingsStream:f,async metadata(){const h=await u.metadata(),p=await u.metadata();return{...p,canContainUndefs:h.canContainUndefs||p.canContainUndefs}}}}}return o.bindingsStream.destroy(),{result:u}}async getJoinCoefficients(s,o){const u=e.ActorRdfJoin.getRequestInitialTimes(o),c=e.ActorRdfJoin.getRequestItemTimes(o);return{iterations:(o[0].cardinality.value+o[1].cardinality.value)*1.01,persistedItems:o[0].cardinality.value,blockingItems:o[0].cardinality.value,requestTime:u[0]+o[0].cardinality.value*c[0]+u[1]+o[1].cardinality.value*c[1]}}};return Y0.ActorRdfJoinMinusHashUndef=n,Y0}var i$;function vDe(){return i$||(i$=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(bDe(),t)}(IR)),IR}var PR={},ey={},ty={},a$;function wDe(){if(a$)return ty;a$=1,Object.defineProperty(ty,"__esModule",{value:!0}),ty.BindingsIndexDef=void 0;let t=class{constructor(r,n){this.keys=r,this.hashFn=n,this.index={}}put(r,n){return this.index[this.hashFn(r,this.keys)]=n}get(r){const n=this.getFirst(r);return n?[n]:[]}getFirst(r){return this.index[this.hashFn(r,this.keys)]}values(){return Object.values(this.index)}};return ty.BindingsIndexDef=t,ty}var ry={},s$;function SDe(){if(s$)return ry;s$=1,Object.defineProperty(ry,"__esModule",{value:!0}),ry.BindingsIndexUndef=void 0;let t=class{constructor(r,n){this.data={},this.keys=r,this.hashFn=n}put(r,n){if(this.isBindingsValid(r)){let a=this.data;for(let s=0;sd&&d.termType!=="Variable"?(0,n.termToString)(d):""):new a.BindingsIndexDef(l,e.ActorRdfJoin.hashNonClashing)}async getOutput(c){const l=c.entries[1].output,d=c.entries[0].output,f=await e.ActorRdfJoin.getMetadatas(c.entries),h=e.ActorRdfJoin.overlappingVariables(f);let p;return this.blocking?p=new t.ClosableTransformIterator(async()=>{const m=eN.constructIndex(this.canHandleUndefs,h);return await new Promise(y=>{l.bindingsStream.on("data",g=>{(m.getFirst(g)??m.put(g,[])).push(g)}),l.bindingsStream.on("end",y),l.bindingsStream.on("error",g=>{p.emit("error",g)})}),new r.MultiTransformIterator(d.bindingsStream,{multiTransform:y=>new r.ArrayIterator(m.get(y).flat().map(g=>e.ActorRdfJoin.joinBindings(y,g)).filter(g=>g!==null),{autoStart:!1}),optional:!0,autoStart:!1})},{autoStart:!1,onClose(){l.bindingsStream.destroy(),d.bindingsStream.destroy()}}):p=new t.ClosableTransformIterator(async()=>{const m=eN.constructIndex(this.canHandleUndefs,h);let y=!0;return l.bindingsStream.on("data",g=>{(m.getFirst(g)??m.put(g,new r.BufferedIterator({autoStart:!1})))._push(g)}),l.bindingsStream.on("end",()=>{for(const g of m.values())g.close();y=!1}),l.bindingsStream.on("error",g=>{p.emit("error",g)}),new r.MultiTransformIterator(d.bindingsStream,{multiTransform:g=>{let b=m.get(g);return b.length===0&&(y?b=[m.put(g,new r.BufferedIterator({autoStart:!1}))]:b=[]),new r.UnionIterator(b.map(_=>_.clone()),{autoStart:!1}).map(_=>e.ActorRdfJoin.joinBindings(g,_))},optional:!0,autoStart:!1})},{autoStart:!1,onClose(){l.bindingsStream.destroy(),d.bindingsStream.destroy()}}),{result:{type:"bindings",bindingsStream:p,metadata:async()=>await this.constructResultMetadata(c.entries,await e.ActorRdfJoin.getMetadatas(c.entries),c.context,{canContainUndefs:!0})}}}async getJoinCoefficients(c,l){if(e.ActorRdfJoin.overlappingVariables(l).length===0)throw new Error(`Actor ${this.name} only join entries with at least one common variable`);const d=e.ActorRdfJoin.getRequestInitialTimes(l),f=e.ActorRdfJoin.getRequestItemTimes(l);let h=l[0].cardinality.value+l[1].cardinality.value;return this.canHandleUndefs||(h*=.8),this.blocking&&(h*=.9),{iterations:h,persistedItems:l[0].cardinality.value,blockingItems:this.blocking?l[0].cardinality.value:0,requestTime:d[0]+l[0].cardinality.value*f[0]+d[1]+l[1].cardinality.value*f[1]}}};return ey.ActorRdfJoinOptionalHash=o,ey}var u$;function cw(){return u$||(u$=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(TDe(),t)}(PR)),PR}var NR={},ny={},c$;function EDe(){if(c$)return ny;c$=1,Object.defineProperty(ny,"__esModule",{value:!0}),ny.ActorRdfJoinOptionalNestedLoop=void 0;const t=li(),e=xT();let r=class extends t.ActorRdfJoin{constructor(a){super(a,{logicalType:"optional",physicalName:"nested-loop",limitEntries:2,canHandleUndefs:!0})}async getOutput(a){return{result:{type:"bindings",bindingsStream:new e.NestedLoopJoin(a.entries[0].output.bindingsStream,a.entries[1].output.bindingsStream,t.ActorRdfJoin.joinBindings,{optional:!0,autoStart:!1}),metadata:async()=>await this.constructResultMetadata(a.entries,await t.ActorRdfJoin.getMetadatas(a.entries),a.context,{canContainUndefs:!0})}}}async getJoinCoefficients(a,s){const o=t.ActorRdfJoin.getRequestInitialTimes(s),u=t.ActorRdfJoin.getRequestItemTimes(s);return{iterations:s[0].cardinality.value*s[1].cardinality.value,persistedItems:0,blockingItems:0,requestTime:o[0]+s[0].cardinality.value*u[0]+o[1]+s[1].cardinality.value*u[1]}}};return ny.ActorRdfJoinOptionalNestedLoop=r,ny}var l$;function ADe(){return l$||(l$=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(EDe(),t)}(NR)),NR}var DR={},iy={},CR={},ay={},d$;function ODe(){if(d$)return ay;d$=1,Object.defineProperty(ay,"__esModule",{value:!0}),ay.ActorDereferenceRdf=void 0;const t=XC();let e=class extends t.ActorDereferenceParse{constructor(n){super(n)}};return ay.ActorDereferenceRdf=e,ay}var f$;function RDe(){return f$||(f$=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(ODe(),t)}(CR)),CR}var h$;function xDe(){if(h$)return iy;h$=1,Object.defineProperty(iy,"__esModule",{value:!0}),iy.ActorDereferenceRdfParse=void 0;const t=RDe();let e=class extends t.ActorDereferenceRdf{constructor(n){super(n)}async getMetadata(n){return{baseIRI:n.url}}};return iy.ActorDereferenceRdfParse=e,iy}var p$;function IDe(){return p$||(p$=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(xDe(),t)}(DR)),DR}var LR={},sy={},oy={},y$;function PDe(){if(y$)return oy;y$=1,Object.defineProperty(oy,"__esModule",{value:!0}),oy.HtmlScriptListener=void 0;const t=qt,e=Pt,r=ga;let n=class P_{constructor(s,o,u,c,l,d,f,h){this.textChunksJsonLd=[],this.endBarrier=1,this.passedScripts=0,this.isFinalJsonLdProcessing=!1,this.mediatorRdfParseHandle=s,this.cbQuad=o,this.cbError=u,this.cbEnd=c,this.supportedTypes=l,this.context=d.set(t.KeysRdfParseHtmlScript.processingHtmlScript,!0),this.baseIRI=f,this.headers=h,this.onlyFirstScript=d.get(t.KeysRdfParseHtmlScript.extractAllScripts)===!1;const p=this.baseIRI.indexOf("#");this.targetScriptId=p>0?this.baseIRI.slice(p+1,this.baseIRI.length):null}static newErrorCoded(s,o){const u=new Error(s);return u.code=o,u}onEnd(){--this.endBarrier===0&&(this.textChunksJsonLd.length>0?(this.handleMediaType="application/ld+json",this.textChunks=this.textChunksJsonLd,this.textChunks.push("]"),this.textChunksJsonLd=[],this.isFinalJsonLdProcessing=!0,this.endBarrier++,this.onTagClose()):(this.passedScripts===0&&this.targetScriptId&&this.cbError(P_.newErrorCoded(`Failed to find targeted script id "${this.targetScriptId}"`,"loading document failed")),this.cbEnd()),this.isFinalJsonLdProcessing=!1)}onTagClose(){if(this.handleMediaType)if(this.requiresCustomJsonLdHandling(this.handleMediaType)&&!this.isFinalJsonLdProcessing)this.handleMediaType=void 0,this.textChunks=void 0,this.onEnd();else{const s=new e.Readable({objectMode:!0});s._read=()=>{};const o=this.textChunks,u={context:this.context,handle:{metadata:{baseIRI:this.baseIRI},data:s,headers:this.headers,context:this.context},handleMediaType:this.handleMediaType};this.mediatorRdfParseHandle.mediate(u).then(({handle:c})=>{c.data.on("error",l=>this.cbError(P_.newErrorCoded(l.message,"invalid script element"))).on("data",this.cbQuad).on("end",()=>this.onEnd());for(const l of o)s.push(l);s.push(null)}).catch(c=>{this.targetScriptId?this.cbError(P_.newErrorCoded(c.message,"loading document failed")):this.onEnd()}),this.handleMediaType=void 0,this.textChunks=void 0}}onTagOpen(s,o){s==="base"&&o.href&&(this.baseIRI=(0,r.resolve)(o.href,this.baseIRI)),s==="script"&&(!this.targetScriptId||o.id===this.targetScriptId)?this.supportedTypes[o.type]?this.onlyFirstScript&&this.passedScripts>0?this.handleMediaType=void 0:(this.passedScripts++,this.handleMediaType=o.type,this.endBarrier++,this.requiresCustomJsonLdHandling(this.handleMediaType)?(this.textChunks=this.textChunksJsonLd,this.textChunks.push(this.textChunks.length===0?"[":",")):this.textChunks=[]):this.targetScriptId&&this.cbError(P_.newErrorCoded(`Targeted script "${this.targetScriptId}" does not have a supported type`,"loading document failed")):this.handleMediaType=void 0}onText(s){this.handleMediaType&&this.textChunks.push(s)}requiresCustomJsonLdHandling(s){return!this.onlyFirstScript&&!this.targetScriptId&&s==="application/ld+json"}};return oy.HtmlScriptListener=n,oy}var m$;function NDe(){if(m$)return sy;m$=1,Object.defineProperty(sy,"__esModule",{value:!0}),sy.ActorRdfParseHtmlScript=void 0;const t=m4(),e=PDe();let r=class extends t.ActorRdfParseHtml{constructor(a){super(a)}async test(a){return!0}async run(a){const s=(await this.mediatorRdfParseMediatypes.mediate({context:a.context,mediaTypes:!0})).mediaTypes;return{htmlParseListener:new e.HtmlScriptListener(this.mediatorRdfParseHandle,a.emit,a.error,a.end,s,a.context,a.baseIRI,a.headers)}}};return sy.ActorRdfParseHtmlScript=r,sy}var g$;function DDe(){return g$||(g$=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(NDe(),t)}(LR)),LR}var jR={},uy={},_$;function CDe(){if(_$)return uy;_$=1,Object.defineProperty(uy,"__esModule",{value:!0}),uy.ActorQueryResultSerializeRdf=void 0;const t=Ss();let e=class extends t.ActorQueryResultSerialize{constructor(n){super(n)}async testHandle(n,a,s){if(n.type!=="quads")throw new Error(`Actor ${this.name} can only handle quad streams`);const{mediaTypes:o}=await this.mediatorMediaTypeCombiner.mediate({context:s,mediaTypes:!0});if(!(a in o))throw new Error(`Actor ${this.name} can not handle media type ${a}. All available types: ${Object.keys(o)}`);return!0}async runHandle(n,a,s){return(await this.mediatorRdfSerialize.mediate({context:s,handle:{context:s,quadStream:n.quadStream},handleMediaType:a})).handle}async testMediaType(n){return!0}async getMediaTypes(n){return(await this.mediatorMediaTypeCombiner.mediate({context:n,mediaTypes:!0})).mediaTypes}async testMediaTypeFormats(n){return!0}async getMediaTypeFormats(n){return(await this.mediatorMediaTypeFormatCombiner.mediate({context:n,mediaTypeFormats:!0})).mediaTypeFormats}};return uy.ActorQueryResultSerializeRdf=e,uy}var b$;function LDe(){return b$||(b$=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(CDe(),t)}(jR)),jR}var MR={},cy={},v$;function jDe(){if(v$)return cy;v$=1,Object.defineProperty(cy,"__esModule",{value:!0}),cy.ActorHttpWayback=void 0;const t=Lu(),e=qt,r=gl,n="http://wayback.archive-it.org/";function a(u){const c=new Request(u.input,u.init);return{input:new Request(new URL(`/${c.url}`,n),c)}}function s(u){const c=u.get(e.KeysHttpProxy.httpProxyHandler);return c?l=>c.getProxy(a(l)):l=>Promise.resolve(a(l))}let o=class extends t.ActorHttp{constructor(c){super(c)}async test(c){return!0}async run(c){let l=await this.mediatorHttp.mediate(c);if(l.status===404&&c.context.get(e.KeysHttpWayback.recoverBrokenLinks)){let d=await this.mediatorHttp.mediate({...c,context:c.context.set(e.KeysHttpWayback.recoverBrokenLinks,!1).set(e.KeysHttpProxy.httpProxyHandler,{getProxy:s(c.context)})});d.status===200&&([l,d]=[d,l]);const{body:f}=d;f&&("cancel"in f&&typeof f.cancel=="function"?await f.cancel():"destroy"in f&&typeof f.destroy=="function"?f.destroy():await r(t.ActorHttp.toNodeReadable(f)))}return l}};return cy.ActorHttpWayback=o,cy}var w$;function MDe(){return w$||(w$=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(jDe(),t)}(MR)),MR}var FR={},ly={},Iee={},dy={},IT={},fy={},hy={},PT={};Object.defineProperty(PT,"__esModule",{value:!0});PT.ContainerHandlerIdentifier=void 0;class FDe{canCombineWithGraph(){return!0}async handle(e,r,n,a,s,o){let u;if(r.emittedStack[o+1]&&r.idStack[o+1])u=r.idStack[o+1][0];else{const d=await n.getContainerKey(a[o],a,o)!==null?await n.resourceToTerm(await r.getContext(a),a[o]):n.dataFactory.blankNode();if(!d){r.emittedStack[o]=!1;return}u=d,r.idStack[o+1]=[u]}let c=r.idStack[o];c||(c=r.idStack[o]=[]),c.some(l=>l.equals(u))||c.push(u),await r.handlePendingContainerFlushBuffers()||(r.emittedStack[o]=!1)}}PT.ContainerHandlerIdentifier=FDe;var py={},yy={},S$;function NT(){if(S$)return yy;S$=1,Object.defineProperty(yy,"__esModule",{value:!0}),yy.EntryHandlerPredicate=void 0;const t=hn,e=bl();let r=class Pee{static async handlePredicateObject(a,s,o,u,c,l,d,f,h){const p=await s.getPropertiesDepth(o,u),m=await s.getDepthOffsetGraph(u,o),y=u-m,g=a.idStack[p];if(g&&!h)for(const b of g)if(m>=0){const _=a.idStack[y-1];if(_)for(const w of _)s.emitQuadChecked(u,b,c,l,w,d,f);else d?(s.validateReverseSubject(l),a.getUnidentifiedGraphBufferSafe(y-1).push({subject:l,predicate:c,object:b,isEmbedded:f})):a.getUnidentifiedGraphBufferSafe(y-1).push({subject:b,predicate:c,object:l,isEmbedded:f})}else{const _=await s.getGraphContainerValue(o,p);s.emitQuadChecked(u,b,c,l,_,d,f)}else if(d&&s.validateReverseSubject(l),h){if(a.rdfstar){a.idStack[u]&&a.emitError(new t.ErrorCoded(`Found an illegal @id inside an annotation: ${a.idStack[u][0].value}`,t.ERROR_CODES.INVALID_ANNOTATION));for(let _=0;_=0;_--){const w=b[_];w.depth>p&&(v.nestedAnnotations.push(w),b.splice(_,1))}}}else a.getUnidentifiedValueBufferSafe(p).push({predicate:c,object:l,reverse:d,isEmbedded:f})}isPropertyHandler(){return!0}isStackProcessor(){return!0}async validate(a,s,o,u,c){const l=o[u];if(l){const d=await a.getContext(o);if(!a.jsonLiteralStack[u]&&await s.predicateToTerm(d,o[u]))return e.Util.getContextValueType(d,l)==="@json"&&(a.jsonLiteralStack[u+1]=!0),!0}return!1}async test(a,s,o,u,c){return u[c]}async handle(a,s,o,u,c,l,d){const f=u[l],h=await a.getContext(u),p=await s.predicateToTerm(h,o);if(p){const m=await s.valueToTerm(h,o,c,l,u);if(m.length)for(let y of m){let g=await s.unaliasKeywordParent(u,l);const b=e.Util.isPropertyReverse(h,f,g);let v=0;for(;g==="@reverse"||typeof g=="number";)typeof g=="number"?v++:l--,g=await s.unaliasKeywordParent(u,l-v);const _=e.Util.isPropertyInEmbeddedNode(g);s.validateReverseInEmbeddedNode(o,b,_);const w=e.Util.isPropertyInAnnotationObject(g);if(c){const E="@list"in e.Util.getContextValueContainer(h,o);if(E||c["@list"]){if((E&&!Array.isArray(c)&&!c["@list"]||c["@list"]&&!Array.isArray(c["@list"]))&&y!==s.rdfNil){const O=s.dataFactory.blankNode();a.emitQuad(l,s.dataFactory.quad(O,s.rdfRest,s.rdfNil,s.getDefaultGraph())),a.emitQuad(l,s.dataFactory.quad(O,s.rdfFirst,y,s.getDefaultGraph())),y=O}if(b&&!a.allowSubjectList)throw new t.ErrorCoded(`Found illegal list value in subject position at ${o}`,t.ERROR_CODES.INVALID_REVERSE_PROPERTY_VALUE)}}await Pee.handlePredicateObject(a,s,u,l,p,y,b,_,w)}}}};return yy.EntryHandlerPredicate=r,yy}var T$;function BDe(){if(T$)return py;T$=1,Object.defineProperty(py,"__esModule",{value:!0}),py.ContainerHandlerIndex=void 0;const t=hn,e=NT(),r=bl();let n=class{canCombineWithGraph(){return!0}async handle(s,o,u,c,l,d){if(!Array.isArray(l)){const f="@graph"in s,h=await o.getContext(c),p=c[d-1],m=r.Util.getContextValueIndex(h,p);if(m){if(t.Util.isPotentialKeyword(m))throw new t.ErrorCoded(`Keywords can not be used as @index value, got: ${m}`,t.ERROR_CODES.INVALID_TERM_DEFINITION);if(typeof m!="string")throw new t.ErrorCoded(`@index values must be strings, got: ${m}`,t.ERROR_CODES.INVALID_TERM_DEFINITION);if(typeof l!="object"){if(r.Util.getContextValueType(h,p)!=="@id")throw new t.ErrorCoded(`Property-based index containers require nodes as values or strings with @type: @id, but got: ${l}`,t.ERROR_CODES.INVALID_VALUE_OBJECT);const b=u.resourceToTerm(h,l);b&&(o.idStack[d+1]=[b])}const g=u.createVocabOrBaseTerm(h,m);if(g){const b=await u.valueToTerm(h,m,await u.getContainerKey(c[d],c,d),d,c);if(f){const v=await u.getGraphContainerValue(c,d+1);for(const _ of b)o.emitQuad(d,u.dataFactory.quad(v,g,_,u.getDefaultGraph()))}else for(const v of b)await e.EntryHandlerPredicate.handlePredicateObject(o,u,c,d+1,g,v,!1,!1,!1)}}const y=f?2:1;await o.newOnValueJob(c.slice(0,c.length-y),l,d-y,!0),await o.handlePendingContainerFlushBuffers()}o.emittedStack[d]=!1}};return py.ContainerHandlerIndex=n,py}var DT={};Object.defineProperty(DT,"__esModule",{value:!0});DT.ContainerHandlerLanguage=void 0;const E$=hn;class qDe{canCombineWithGraph(){return!1}async handle(e,r,n,a,s,o){const u=await n.getContainerKey(a[o],a,o);if(Array.isArray(s))s=s.map(c=>({"@value":c,"@language":u}));else{if(typeof s!="string")throw new E$.ErrorCoded(`Got invalid language map value, got '${JSON.stringify(s)}', but expected string`,E$.ERROR_CODES.INVALID_LANGUAGE_MAP_VALUE);s={"@value":s,"@language":u}}await r.newOnValueJob(a.slice(0,a.length-1),s,o-1,!0),r.emittedStack[o]=!1}}DT.ContainerHandlerLanguage=qDe;var my={},A$;function $De(){if(A$)return my;A$=1,Object.defineProperty(my,"__esModule",{value:!0}),my.ContainerHandlerType=void 0;const t=NT(),e=bl();let r=class{canCombineWithGraph(){return!1}async handle(a,s,o,u,c,l){if(!Array.isArray(c)){if(typeof c=="string"){const h=await s.getContext(u),m=e.Util.getContextValueType(h,u[l-1])==="@vocab"?await o.createVocabOrBaseTerm(h,c):await o.resourceToTerm(h,c);if(m){const y={"@id":m.termType==="NamedNode"?m.value:c};await s.newOnValueJob(u.slice(0,u.length-1),y,l-1,!0),s.idStack[l+1]=[m]}}else{const h=!!s.idStack[l+1];h||delete s.idStack[l],await s.newOnValueJob(u.slice(0,u.length-1),c,l-1,!0),h||(s.idStack[l+1]=s.idStack[l])}const d=await o.getContainerKey(u[l],u,l),f=d!==null?o.createVocabOrBaseTerm(await s.getContext(u),d):null;f&&await t.EntryHandlerPredicate.handlePredicateObject(s,o,u,l+1,o.rdfType,f,!1,!1,!1),await s.handlePendingContainerFlushBuffers()}s.emittedStack[l]=!1}};return my.ContainerHandlerType=r,my}var O$;function Nee(){if(O$)return hy;O$=1,Object.defineProperty(hy,"__esModule",{value:!0}),hy.EntryHandlerContainer=void 0;const t=PT,e=BDe(),r=DT,n=$De(),a=bl();let s=class Vo{static isSimpleGraphContainer(u){return"@graph"in u&&("@set"in u&&Object.keys(u).length===2||Object.keys(u).length===1)}static isComplexGraphContainer(u){return"@graph"in u&&("@set"in u&&Object.keys(u).length>2||!("@set"in u)&&Object.keys(u).length>1)}static getContainerGraphIndex(u,c,l){let d=Vo.isSimpleGraphContainer(u),f="";for(let h=c;h=0;p--)if(typeof c[p]!="number"){const m=a.Util.getContextValue(h,"@container",c[p],!1);if(m&&Vo.isSimpleGraphContainer(m))return{containers:m,depth:p+1,fallback:!1};const y=a.Util.getContextValue(h,"@container",c[p-1],!1);if(y){const g="@graph"in y;for(const b in Vo.CONTAINER_HANDLERS)if(y[b])return g?Vo.CONTAINER_HANDLERS[b].canCombineWithGraph()?{containers:y,depth:p,fallback:!1}:d:f?d:{containers:y,depth:p,fallback:!1};return d}else{if(f)return d;f=!0}}return d}static async isBufferableContainerHandler(u,c,l){const d=await Vo.getContainerHandler(u,c,l);return!d.fallback&&!("@graph"in d.containers)}isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(u,c,l,d,f){return!!await this.test(u,c,null,l,d)}async test(u,c,l,d,f){const h=a.Util.getContextValueContainer(await u.getContext(d,2),d[f-1]);for(const p in Vo.CONTAINER_HANDLERS)if(h[p])return{containers:h,handler:Vo.CONTAINER_HANDLERS[p]};return null}async handle(u,c,l,d,f,h,p){return p.handler.handle(p.containers,u,c,d,f,h)}};return s.CONTAINER_HANDLERS={"@id":new t.ContainerHandlerIdentifier,"@index":new e.ContainerHandlerIndex,"@language":new r.ContainerHandlerLanguage,"@type":new n.ContainerHandlerType},hy.EntryHandlerContainer=s,hy}var UDe=function t(e){return e===null||typeof e!="object"||e.toJSON!=null?JSON.stringify(e):Array.isArray(e)?"["+e.reduce((r,n,a)=>{const s=a===0?"":",",o=n===void 0||typeof n=="symbol"?null:n;return r+s+t(o)},"")+"]":"{"+Object.keys(e).sort().reduce((r,n,a)=>{if(e[n]===void 0||typeof e[n]=="symbol")return r;const s=r.length===0?"":",";return r+s+t(n)+":"+t(e[n])},"")+"}"},R$;function bl(){if(R$)return fy;R$=1,Object.defineProperty(fy,"__esModule",{value:!0}),fy.Util=void 0;const t=hn,e=Ot,r=Nee(),n=UDe;class a{constructor(o){this.parsingContext=o.parsingContext,this.dataFactory=o.dataFactory||new e.DataFactory,this.rdfFirst=this.dataFactory.namedNode(a.RDF+"first"),this.rdfRest=this.dataFactory.namedNode(a.RDF+"rest"),this.rdfNil=this.dataFactory.namedNode(a.RDF+"nil"),this.rdfType=this.dataFactory.namedNode(a.RDF+"type"),this.rdfJson=this.dataFactory.namedNode(a.RDF+"JSON")}static getContextValue(o,u,c,l){const d=o.getContextRaw()[c];if(!d)return l;const f=d[u];return f===void 0?l:f}static getContextValueContainer(o,u){return a.getContextValue(o,"@container",u,{"@set":!0})}static getContextValueType(o,u){const c=a.getContextValue(o,"@type",u,null);return c==="@none"?null:c}static getContextValueLanguage(o,u){return a.getContextValue(o,"@language",u,o.getContextRaw()["@language"]||null)}static getContextValueDirection(o,u){return a.getContextValue(o,"@direction",u,o.getContextRaw()["@direction"]||null)}static isContextValueReverse(o,u){return!!a.getContextValue(o,"@reverse",u,null)}static getContextValueIndex(o,u){return a.getContextValue(o,"@index",u,o.getContextRaw()["@index"]||null)}static isPropertyReverse(o,u,c){return c==="@reverse"!==a.isContextValueReverse(o,u)}static isPropertyInEmbeddedNode(o){return o==="@id"}static isPropertyInAnnotationObject(o){return o==="@annotation"}static isValidIri(o){return o!==null&&t.Util.isValidIri(o)}static isPrefixArray(o,u){if(o.length>u.length)return!1;for(let c=0;c1)throw new t.ErrorCoded(`Found illegal neighbouring entries next to @set for key: '${u}'`,t.ERROR_CODES.INVALID_SET_OR_LIST_OBJECT);return[]}else if("@list"in c){if(Object.keys(c).length>1)throw new t.ErrorCoded(`Found illegal neighbouring entries next to @list for key: '${u}'`,t.ERROR_CODES.INVALID_SET_OR_LIST_OBJECT);const h=c["@list"];return Array.isArray(h)?h.length===0?[this.rdfNil]:this.parsingContext.idStack[l+1]||[]:await this.valueToTerm(await this.parsingContext.getContext(d),u,h,l-1,d.slice(0,-1))}else{if("@reverse"in c&&typeof c["@reverse"]=="boolean")return[];if("@graph"in a.getContextValueContainer(await this.parsingContext.getContext(d),u)){const h=this.parsingContext.graphContainerTermStack[l+1];return h?Object.values(h):[this.dataFactory.blankNode()]}else if("@id"in c){if(Object.keys(c).length>1&&(o=await this.parsingContext.getContext(d,0)),"@context"in c&&(o=await this.parsingContext.parseContext(c["@context"],o.getContextRaw())),c["@type"]==="@vocab")return this.nullableTermToArray(this.createVocabOrBaseTerm(o,c["@id"]));{const h=c["@id"];let p;if(typeof h=="object")if(this.parsingContext.rdfstar)p=this.parsingContext.idStack[l+1][0];else throw new t.ErrorCoded(`Found illegal @id '${c}'`,t.ERROR_CODES.INVALID_ID_VALUE);else p=this.resourceToTerm(o,h);return this.nullableTermToArray(p)}}else return this.parsingContext.emittedStack[l+1]||c&&typeof c=="object"&&Object.keys(c).length===0?this.parsingContext.idStack[l+1]||(this.parsingContext.idStack[l+1]=[this.dataFactory.blankNode()]):[]}case"string":return this.nullableTermToArray(this.stringValueToTerm(l,await this.getContextSelfOrPropertyScoped(o,u),u,c,null));case"boolean":return this.nullableTermToArray(this.stringValueToTerm(l,await this.getContextSelfOrPropertyScoped(o,u),u,(!!c).toString(),this.dataFactory.namedNode(a.XSD_BOOLEAN)));case"number":return this.nullableTermToArray(this.stringValueToTerm(l,await this.getContextSelfOrPropertyScoped(o,u),u,c,this.dataFactory.namedNode(c%1===0&&c<1e21?a.XSD_INTEGER:a.XSD_DOUBLE)));default:return this.parsingContext.emitError(new Error(`Could not determine the RDF type of a ${f}`)),[]}}async getContextSelfOrPropertyScoped(o,u){const c=o.getContextRaw()[u];return c&&typeof c=="object"&&"@context"in c&&(o=await this.parsingContext.parseContext(c,o.getContextRaw(),!0)),o}nullableTermToArray(o){return o?[o]:[]}predicateToTerm(o,u){const c=o.expandTerm(u,!0,this.parsingContext.getExpandOptions());if(!c)return null;if(c[0]==="_"&&c[1]===":")return this.parsingContext.produceGeneralizedRdf?this.dataFactory.blankNode(c.substr(2)):null;if(a.isValidIri(c))return this.dataFactory.namedNode(c);if(c&&this.parsingContext.strictValues)this.parsingContext.emitError(new t.ErrorCoded(`Invalid predicate IRI: ${c}`,t.ERROR_CODES.INVALID_IRI_MAPPING));else return null;return null}resourceToTerm(o,u){if(u.startsWith("_:"))return this.dataFactory.blankNode(u.substr(2));const c=o.expandTerm(u,!1,this.parsingContext.getExpandOptions());if(!a.isValidIri(c))if(c&&this.parsingContext.strictValues)this.parsingContext.emitError(new Error(`Invalid resource IRI: ${c}`));else return null;return this.dataFactory.namedNode(c)}createVocabOrBaseTerm(o,u){if(u.startsWith("_:"))return this.dataFactory.blankNode(u.substr(2));const c=this.parsingContext.getExpandOptions();let l=o.expandTerm(u,!0,c);if(l===u&&(l=o.expandTerm(u,!1,c)),!a.isValidIri(l))if(l&&this.parsingContext.strictValues&&!l.startsWith("@"))this.parsingContext.emitError(new Error(`Invalid term IRI: ${l}`));else return null;return this.dataFactory.namedNode(l)}intToString(o,u){return typeof o=="number"?Number.isFinite(o)?o%1===0&&(!u||u.value!==a.XSD_DOUBLE)?Number(o).toString():o.toExponential(15).replace(/(\d)0*e\+?/,"$1E"):o>0?"INF":"-INF":o}stringValueToTerm(o,u,c,l,d){const f=a.getContextValueType(u,c);if(f)if(f==="@id"){if(!d)return this.resourceToTerm(u,this.intToString(l,d))}else if(f==="@vocab"){if(!d)return this.createVocabOrBaseTerm(u,this.intToString(l,d))}else d=this.dataFactory.namedNode(f);if(!d){const h=a.getContextValueLanguage(u,c),p=a.getContextValueDirection(u,c);return p&&this.parsingContext.rdfDirection?this.createLanguageDirectionLiteral(o,this.intToString(l,d),h,p):this.dataFactory.literal(this.intToString(l,d),h)}return this.dataFactory.literal(this.intToString(l,d),d)}createLanguageDirectionLiteral(o,u,c,l){if(this.parsingContext.rdfDirection==="i18n-datatype")return c||(c=""),this.dataFactory.literal(u,this.dataFactory.namedNode(`https://www.w3.org/ns/i18n#${c}_${l}`));{const d=this.dataFactory.blankNode(),f=this.getDefaultGraph();return this.parsingContext.emitQuad(o,this.dataFactory.quad(d,this.dataFactory.namedNode(a.RDF+"value"),this.dataFactory.literal(u),f)),c&&this.parsingContext.emitQuad(o,this.dataFactory.quad(d,this.dataFactory.namedNode(a.RDF+"language"),this.dataFactory.literal(c),f)),this.parsingContext.emitQuad(o,this.dataFactory.quad(d,this.dataFactory.namedNode(a.RDF+"direction"),this.dataFactory.literal(l),f)),d}}valueToJsonString(o){return n(o)}async unaliasKeyword(o,u,c,l,d){if(Number.isInteger(o))return o;if(!l){const f=this.parsingContext.unaliasedKeywordCacheStack[c];if(f)return f}if(!t.Util.isPotentialKeyword(o)){d=d||await this.parsingContext.getContext(u);let f=d.getContextRaw()[o];f&&typeof f=="object"&&(f=f["@id"]),t.Util.isValidKeyword(f)&&(o=f)}return l?o:this.parsingContext.unaliasedKeywordCacheStack[c]=o}async unaliasKeywordParent(o,u){return await this.unaliasKeyword(u>0&&o[u-1],o,u-1)}async unaliasKeywords(o,u,c,l){const d={};for(const f in o)d[await this.unaliasKeyword(f,u,c+1,!0,l)]=o[f];return d}async isLiteral(o,u){for(let c=u;c>=0;c--){if(await this.unaliasKeyword(o[c],o,c)==="@annotation")return!1;if(this.parsingContext.literalStack[c]||this.parsingContext.jsonLiteralStack[c])return!0}return!1}async getDepthOffsetGraph(o,u){for(let c=o-1;c>0;c--)if(await this.unaliasKeyword(u[c],u,c)==="@graph"){const l=(await r.EntryHandlerContainer.getContainerHandler(this.parsingContext,u,c)).containers;return r.EntryHandlerContainer.isComplexGraphContainer(l)?-1:o-c-1}return-1}validateReverseSubject(o){if(o.termType==="Literal")throw new t.ErrorCoded(`Found illegal literal in subject position: ${o.value}`,t.ERROR_CODES.INVALID_REVERSE_PROPERTY_VALUE)}getDefaultGraph(){return this.parsingContext.defaultGraph||this.dataFactory.defaultGraph()}async getGraphContainerValue(o,u){let c=this.getDefaultGraph();const{containers:l,depth:d}=await r.EntryHandlerContainer.getContainerHandler(this.parsingContext,o,u);if("@graph"in l){const f=r.EntryHandlerContainer.getContainerGraphIndex(l,d,o),h=this.parsingContext.graphContainerTermStack[d];if(c=h?h[f]:null,!c){let p=null;if("@id"in l){const m=await this.getContainerKey(o[d],o,d);m!==null&&(p=await this.resourceToTerm(await this.parsingContext.getContext(o),m))}p||(p=this.dataFactory.blankNode()),this.parsingContext.graphContainerTermStack[d]||(this.parsingContext.graphContainerTermStack[d]={}),c=this.parsingContext.graphContainerTermStack[d][f]=p}}return c}async getPropertiesDepth(o,u){let c=u;for(let l=u-1;l>0;l--)if(typeof o[l]!="number"){const d=await this.unaliasKeyword(o[l],o,l);if(d==="@reverse")return l;if(d==="@nest")c=l;else return c}return c}async getContainerKey(o,u,c){const l=await this.unaliasKeyword(o,u,c);return l==="@none"?null:l}validateReverseInEmbeddedNode(o,u,c){if(c&&u&&!this.parsingContext.rdfstarReverseInEmbedded)throw new t.ErrorCoded(`Illegal reverse property in embedded node in ${o}`,t.ERROR_CODES.INVALID_EMBEDDED_NODE)}emitQuadChecked(o,u,c,l,d,f,h){let p;if(f?(this.validateReverseSubject(l),p=this.dataFactory.quad(l,c,u,d)):p=this.dataFactory.quad(u,c,l,d),h){if(p.graph.termType!=="DefaultGraph"&&(p=this.dataFactory.quad(p.subject,p.predicate,p.object)),this.parsingContext.idStack[o-1])throw new t.ErrorCoded("Illegal multiple properties in an embedded node",t.ERROR_CODES.INVALID_EMBEDDED_NODE);this.parsingContext.idStack[o-1]=[p]}else this.parsingContext.emitQuad(o,p);const m=this.parsingContext.annotationsBuffer[o];if(m){for(const y of m)this.emitAnnotation(o,p,y);delete this.parsingContext.annotationsBuffer[o]}}emitAnnotation(o,u,c){let l;c.reverse?(this.validateReverseSubject(c.object),l=this.dataFactory.quad(c.object,c.predicate,u)):l=this.dataFactory.quad(u,c.predicate,c.object),this.parsingContext.emitQuad(o,l);for(const d of c.nestedAnnotations)this.emitAnnotation(o,l,d)}}return a.XSD="http://www.w3.org/2001/XMLSchema#",a.XSD_BOOLEAN=a.XSD+"boolean",a.XSD_INTEGER=a.XSD+"integer",a.XSD_DOUBLE=a.XSD+"double",a.RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#",fy.Util=a,fy}Object.defineProperty(IT,"__esModule",{value:!0});IT.EntryHandlerArrayValue=void 0;const kDe=bl(),x$=hn;class VDe{isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(e,r,n,a,s){return this.test(e,r,null,n,a)}async test(e,r,n,a,s){return typeof a[s]=="number"}async handle(e,r,n,a,s,o){let u=await r.unaliasKeywordParent(a,o);if(u==="@list"){let c=null,l=0;for(let d=o-2;d>0;d--){const f=a[d];if(typeof f=="string"||typeof f=="number"){l=d,c=f;break}}if(c!==null){const d=await r.valueToTerm(await e.getContext(a),c,s,o,a);for(const f of d)await this.handleListElement(e,r,f,s,o,a.slice(0,l),l);d.length===0&&await this.handleListElement(e,r,null,s,o,a.slice(0,l),l)}}else if(u==="@set")await e.newOnValueJob(a.slice(0,-2),s,o-2,!1);else if(u!==void 0&&u!=="@type"){for(let l=o-1;l>0;l--)if(typeof a[l]!="number"){u=await r.unaliasKeyword(a[l],a,l);break}const c=await e.getContext(a.slice(0,-1));if("@list"in kDe.Util.getContextValueContainer(c,u)){e.emittedStack[o+1]=!0;const l=await r.valueToTerm(await e.getContext(a),u,s,o,a);for(const d of l)await this.handleListElement(e,r,d,s,o,a.slice(0,-1),o-1);l.length===0&&await this.handleListElement(e,r,null,s,o,a.slice(0,-1),o-1)}else e.shiftStack(o,1),await e.newOnValueJob(a.slice(0,-1),s,o-1,!1),e.contextTree.removeContext(a.slice(0,-1))}}async handleListElement(e,r,n,a,s,o,u){let c=e.listPointerStack[s];if(a!==null&&(await r.unaliasKeywords(a,o,s))["@value"]!==null){if(!c||!c.value){const l=r.dataFactory.blankNode();c={value:l,listRootDepth:u,listId:l}}else{const l=r.dataFactory.blankNode();e.emitQuad(s,r.dataFactory.quad(c.value,r.rdfRest,l,r.getDefaultGraph())),c.value=l}n&&e.emitQuad(s,r.dataFactory.quad(c.value,r.rdfFirst,n,r.getDefaultGraph()))}else c||(c={listRootDepth:u,listId:r.rdfNil});e.listPointerStack[s]=c,e.rdfstar&&e.annotationsBuffer[s]&&e.emitError(new x$.ErrorCoded("Found an illegal annotation inside a list",x$.ERROR_CODES.INVALID_ANNOTATION))}}IT.EntryHandlerArrayValue=VDe;var CT={};Object.defineProperty(CT,"__esModule",{value:!0});CT.EntryHandlerInvalidFallback=void 0;class HDe{isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(e,r,n,a,s){return!1}async test(e,r,n,a,s){return!0}async handle(e,r,n,a,s,o){e.emittedStack[o]=!1}}CT.EntryHandlerInvalidFallback=HDe;var LT={},ka={};Object.defineProperty(ka,"__esModule",{value:!0});ka.EntryHandlerKeyword=void 0;class QDe{constructor(e){this.keyword=e}isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(e,r,n,a,s){return!1}async test(e,r,n,a,s){return n===this.keyword}}ka.EntryHandlerKeyword=QDe;Object.defineProperty(LT,"__esModule",{value:!0});LT.EntryHandlerKeywordContext=void 0;const I$=hn,zDe=ka;class GDe extends zDe.EntryHandlerKeyword{constructor(){super("@context")}isStackProcessor(){return!1}async handle(e,r,n,a,s,o){e.streamingProfile&&(e.processingStack[o]||e.processingType[o]||e.idStack[o]!==void 0)&&e.emitError(new I$.ErrorCoded("Found an out-of-order context, while streaming is enabled.(disable `streamingProfile`)",I$.ERROR_CODES.INVALID_STREAMING_KEY_ORDER));const u=e.getContext(a),c=e.parseContext(s,(await u).getContextRaw());e.contextTree.setContext(a.slice(0,-1),c),e.emitContext(s),await e.validateContext(await c)}}LT.EntryHandlerKeywordContext=GDe;var jT={};Object.defineProperty(jT,"__esModule",{value:!0});jT.EntryHandlerKeywordGraph=void 0;const WDe=ka;class KDe extends WDe.EntryHandlerKeyword{constructor(){super("@graph")}async handle(e,r,n,a,s,o){e.graphStack[o+1]=!0}}jT.EntryHandlerKeywordGraph=KDe;var MT={};Object.defineProperty(MT,"__esModule",{value:!0});MT.EntryHandlerKeywordId=void 0;const Ka=hn,JDe=ka;class XDe extends JDe.EntryHandlerKeyword{constructor(){super("@id")}isStackProcessor(){return!1}async handle(e,r,n,a,s,o){if(typeof s!="string"){if(e.rdfstar&&typeof s=="object"){const c=Object.keys(s);c.length===1&&c[0]==="@id"&&e.emitError(new Ka.ErrorCoded(`Invalid embedded node without property with @id ${s["@id"]}`,Ka.ERROR_CODES.INVALID_EMBEDDED_NODE))}else e.emitError(new Ka.ErrorCoded(`Found illegal @id '${s}'`,Ka.ERROR_CODES.INVALID_ID_VALUE));return}const u=await r.getPropertiesDepth(a,o);if(e.idStack[u]!==void 0&&(e.idStack[u][0].listHead?e.emitError(new Ka.ErrorCoded(`Found illegal neighbouring entries next to @list for key: '${a[o-1]}'`,Ka.ERROR_CODES.INVALID_SET_OR_LIST_OBJECT)):e.emitError(new Ka.ErrorCoded(`Found duplicate @ids '${e.idStack[u][0].value}' and '${s}'`,Ka.ERROR_CODES.COLLIDING_KEYWORDS))),e.rdfstar&&e.annotationsBuffer[o])for(const c of e.annotationsBuffer[o])c.depth===o&&e.emitError(new Ka.ErrorCoded(`Found an illegal @id inside an annotation: ${s}`,Ka.ERROR_CODES.INVALID_ANNOTATION));e.idStack[u]=r.nullableTermToArray(await r.resourceToTerm(await e.getContext(a),s))}}MT.EntryHandlerKeywordId=XDe;var FT={};Object.defineProperty(FT,"__esModule",{value:!0});FT.EntryHandlerKeywordIncluded=void 0;const kl=hn,YDe=ka;class ZDe extends YDe.EntryHandlerKeyword{constructor(){super("@included")}async handle(e,r,n,a,s,o){typeof s!="object"&&e.emitError(new kl.ErrorCoded(`Found illegal @included '${s}'`,kl.ERROR_CODES.INVALID_INCLUDED_VALUE));const u=await r.unaliasKeywords(s,a,o,await e.getContext(a));"@value"in u&&e.emitError(new kl.ErrorCoded(`Found an illegal @included @value node '${JSON.stringify(s)}'`,kl.ERROR_CODES.INVALID_INCLUDED_VALUE)),"@list"in u&&e.emitError(new kl.ErrorCoded(`Found an illegal @included @list node '${JSON.stringify(s)}'`,kl.ERROR_CODES.INVALID_INCLUDED_VALUE)),e.emittedStack[o]=!1}}FT.EntryHandlerKeywordIncluded=ZDe;var BT={};Object.defineProperty(BT,"__esModule",{value:!0});BT.EntryHandlerKeywordNest=void 0;const lw=hn,eCe=ka;class tCe extends eCe.EntryHandlerKeyword{constructor(){super("@nest")}async handle(e,r,n,a,s,o){typeof s!="object"&&e.emitError(new lw.ErrorCoded(`Found invalid @nest entry for '${n}': '${s}'`,lw.ERROR_CODES.INVALID_NEST_VALUE)),"@value"in await r.unaliasKeywords(s,a,o,await e.getContext(a))&&e.emitError(new lw.ErrorCoded(`Found an invalid @value node for '${n}'`,lw.ERROR_CODES.INVALID_NEST_VALUE)),e.emittedStack[o]=!1}}BT.EntryHandlerKeywordNest=tCe;var qT={};Object.defineProperty(qT,"__esModule",{value:!0});qT.EntryHandlerKeywordType=void 0;const gy=hn,dw=bl(),rCe=NT(),nCe=ka;class iCe extends nCe.EntryHandlerKeyword{constructor(){super("@type")}isStackProcessor(){return!1}async handle(e,r,n,a,s,o){const u=a[o],c=await e.getContext(a),l=r.rdfType,d=await r.unaliasKeywordParent(a,o),f=dw.Util.isPropertyReverse(c,u,d),h=dw.Util.isPropertyInEmbeddedNode(d);r.validateReverseInEmbeddedNode(n,f,h);const p=dw.Util.isPropertyInAnnotationObject(d),m=Array.isArray(s)?s:[s];for(const b of m){typeof b!="string"&&e.emitError(new gy.ErrorCoded(`Found illegal @type '${b}'`,gy.ERROR_CODES.INVALID_TYPE_VALUE));const v=r.createVocabOrBaseTerm(c,b);v&&await rCe.EntryHandlerPredicate.handlePredicateObject(e,r,a,o,l,v,f,h,p)}let y=Promise.resolve(c),g=!1;for(const b of m.sort()){const v=dw.Util.getContextValue(c,"@context",b,null);v&&(g=!0,y=y.then(_=>e.parseContext(v,_.getContextRaw())))}e.streamingProfile&&(g||!e.streamingProfileAllowOutOfOrderPlainType)&&(e.processingStack[o]||e.idStack[o])&&e.emitError(new gy.ErrorCoded("Found an out-of-order type-scoped context, while streaming is enabled.(disable `streamingProfile`)",gy.ERROR_CODES.INVALID_STREAMING_KEY_ORDER)),g&&(y=y.then(b=>b.getContextRaw()["@propagate"]!==!0?new gy.JsonLdContextNormalized(Object.assign(Object.assign({},b.getContextRaw()),{"@propagate":!1,"@__propagateFallback":c.getContextRaw()})):b),e.contextTree.setContext(a.slice(0,a.length-1),y)),e.processingType[o]=!0}}qT.EntryHandlerKeywordType=iCe;var $T={};Object.defineProperty($T,"__esModule",{value:!0});$T.EntryHandlerKeywordUnknownFallback=void 0;const Y_=hn;class UT{isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(e,r,n,a,s){const o=await r.unaliasKeyword(n[a],n,a);return Y_.Util.isPotentialKeyword(o)?!(!s&&o==="@list"):!1}async test(e,r,n,a,s){return Y_.Util.isPotentialKeyword(n)}async handle(e,r,n,a,s,o){const u=UT.VALID_KEYWORDS_TYPES[n];u!==void 0?u&&typeof s!==u.type&&e.emitError(new Y_.ErrorCoded(`Invalid value type for '${n}' with value '${s}'`,u.errorCode)):e.strictValues&&e.emitError(new Error(`Unknown keyword '${n}' with value '${s}'`)),e.emittedStack[o]=!1}}UT.VALID_KEYWORDS_TYPES={"@index":{type:"string",errorCode:Y_.ERROR_CODES.INVALID_INDEX_VALUE},"@list":null,"@reverse":{type:"object",errorCode:Y_.ERROR_CODES.INVALID_REVERSE_VALUE},"@set":null,"@value":null};$T.EntryHandlerKeywordUnknownFallback=UT;var kT={};Object.defineProperty(kT,"__esModule",{value:!0});kT.EntryHandlerKeywordValue=void 0;const aCe=ka;class sCe extends aCe.EntryHandlerKeyword{constructor(){super("@value")}async validate(e,r,n,a,s){const o=n[a];return o&&!e.literalStack[a]&&await this.test(e,r,o,n,a)&&(e.literalStack[a]=!0),super.validate(e,r,n,a,s)}async test(e,r,n,a,s){return await r.unaliasKeyword(a[s],a.slice(0,a.length-1),s-1,!0)==="@value"}async handle(e,r,n,a,s,o){e.literalStack[o]=!0,delete e.unidentifiedValuesBuffer[o],delete e.unidentifiedGraphsBuffer[o],e.emittedStack[o]=!1}}kT.EntryHandlerKeywordValue=sCe;var _y={},VT={};Object.defineProperty(VT,"__esModule",{value:!0});VT.ContextTree=void 0;class v4{constructor(){this.subTrees={}}getContext(e){if(e.length>0){const[r,...n]=e,a=this.subTrees[r];if(a){const s=a.getContext(n);if(s)return s.then(({context:o,depth:u})=>({context:o,depth:u+1}))}}return this.context?this.context.then(r=>({context:r,depth:0})):null}setContext(e,r){if(e.length===0)this.context=r;else{const[n,...a]=e;let s=this.subTrees[n];s||(s=this.subTrees[n]=new v4),s.setContext(a,r)}}removeContext(e){this.setContext(e,null)}}VT.ContextTree=v4;var P$;function oCe(){if(P$)return _y;P$=1,Object.defineProperty(_y,"__esModule",{value:!0}),_y.ParsingContext=void 0;const t=hn,e=Cf,r=VT,n=Cee();let a=class Dee{constructor(o){this.contextParser=new t.ContextParser({documentLoader:o.documentLoader,skipValidation:o.skipContextValidation}),this.streamingProfile=!!o.streamingProfile,this.baseIRI=o.baseIRI,this.produceGeneralizedRdf=!!o.produceGeneralizedRdf,this.allowSubjectList=!!o.allowSubjectList,this.processingMode=o.processingMode||n.JsonLdParser.DEFAULT_PROCESSING_MODE,this.strictValues=!!o.strictValues,this.validateValueIndexes=!!o.validateValueIndexes,this.defaultGraph=o.defaultGraph,this.rdfDirection=o.rdfDirection,this.normalizeLanguageTags=o.normalizeLanguageTags,this.streamingProfileAllowOutOfOrderPlainType=o.streamingProfileAllowOutOfOrderPlainType,this.rdfstar=o.rdfstar!==!1,this.rdfstarReverseInEmbedded=o.rdfstarReverseInEmbedded,this.topLevelProperties=!1,this.activeProcessingMode=parseFloat(this.processingMode),this.processingStack=[],this.processingType=[],this.emittedStack=[],this.idStack=[],this.graphStack=[],this.graphContainerTermStack=[],this.listPointerStack=[],this.contextTree=new r.ContextTree,this.literalStack=[],this.validationStack=[],this.unaliasedKeywordCacheStack=[],this.jsonLiteralStack=[],this.unidentifiedValuesBuffer=[],this.unidentifiedGraphsBuffer=[],this.annotationsBuffer=[],this.pendingContainerFlushBuffers=[],this.parser=o.parser,o.context?(this.rootContext=this.parseContext(o.context),this.rootContext.then(u=>this.validateContext(u))):this.rootContext=Promise.resolve(new t.JsonLdContextNormalized(this.baseIRI?{"@base":this.baseIRI,"@__baseDocument":!0}:{}))}async parseContext(o,u,c){return this.contextParser.parse(o,{baseIRI:this.baseIRI,ignoreProtection:c,normalizeLanguageTags:this.normalizeLanguageTags,parentContext:u,processingMode:this.activeProcessingMode})}validateContext(o){const u=o.getContextRaw()["@version"];if(u){if(this.activeProcessingMode&&u>this.activeProcessingMode)throw new e.ErrorCoded(`Unsupported JSON-LD version '${u}' under active processing mode ${this.activeProcessingMode}.`,e.ERROR_CODES.PROCESSING_MODE_CONFLICT);if(this.activeProcessingMode&&u0&&c.context.getContextRaw()["@propagate"]===!1&&c.depth!==u&&!l);return c.depth===0&&c.context.getContextRaw()["@propagate"]===!1&&c.depth!==u&&(c.context=new t.JsonLdContextNormalized({})),c}async newOnValueJob(o,u,c,l){await this.parser.newOnValueJob(o,u,c,l)}async handlePendingContainerFlushBuffers(){if(this.pendingContainerFlushBuffers.length>0){for(const o of this.pendingContainerFlushBuffers)await this.parser.flushBuffer(o.depth,o.keys),this.parser.flushStacks(o.depth);return this.pendingContainerFlushBuffers.splice(0,this.pendingContainerFlushBuffers.length),!0}else return!1}emitQuad(o,u){o===1&&(this.topLevelProperties=!0),this.parser.push(u)}emitError(o){this.parser.emit("error",o)}emitContext(o){this.parser.emit("context",o)}getUnidentifiedValueBufferSafe(o){let u=this.unidentifiedValuesBuffer[o];return u||(u=[],this.unidentifiedValuesBuffer[o]=u),u}getUnidentifiedGraphBufferSafe(o){let u=this.unidentifiedGraphsBuffer[o];return u||(u=[],this.unidentifiedGraphsBuffer[o]=u),u}getAnnotationsBufferSafe(o){let u=this.annotationsBuffer[o];return u||(u=[],this.annotationsBuffer[o]=u),u}getExpandOptions(){return Dee.EXPAND_OPTIONS[this.activeProcessingMode]}shiftStack(o,u){const c=this.idStack[o+u];if(c&&(this.idStack[o]=c,this.emittedStack[o]=!0,delete this.idStack[o+u]),this.pendingContainerFlushBuffers.length)for(const l of this.pendingContainerFlushBuffers)l.depth>=o+u&&(l.depth-=u,l.keys.splice(o,u));this.unidentifiedValuesBuffer[o+u]&&(this.unidentifiedValuesBuffer[o]=this.unidentifiedValuesBuffer[o+u],delete this.unidentifiedValuesBuffer[o+u]),this.annotationsBuffer[o+u-1]&&(this.annotationsBuffer[o-1]||(this.annotationsBuffer[o-1]=[]),this.annotationsBuffer[o-1]=[...this.annotationsBuffer[o-1],...this.annotationsBuffer[o+u-1]],delete this.annotationsBuffer[o+u-1])}};return a.EXPAND_OPTIONS={1:{allowPrefixForcing:!1,allowPrefixNonGenDelims:!1,allowVocabRelativeToBase:!1},1.1:{allowPrefixForcing:!0,allowPrefixNonGenDelims:!1,allowVocabRelativeToBase:!0}},_y.ParsingContext=a,_y}var HT={};Object.defineProperty(HT,"__esModule",{value:!0});HT.EntryHandlerKeywordAnnotation=void 0;const uCe=ka,N$=hn;class cCe extends uCe.EntryHandlerKeyword{constructor(){super("@annotation")}async handle(e,r,n,a,s,o){(typeof s=="string"||typeof s=="object"&&s["@value"])&&e.emitError(new N$.ErrorCoded(`Found illegal annotation value: ${JSON.stringify(s)}`,N$.ERROR_CODES.INVALID_ANNOTATION))}}HT.EntryHandlerKeywordAnnotation=cCe;var D$;function Cee(){if(D$)return dy;D$=1,Object.defineProperty(dy,"__esModule",{value:!0}),dy.JsonLdParser=void 0;const t=fZ,e=hn,r=Pt,n=IT,a=Nee(),s=CT,o=NT(),u=LT,c=jT,l=MT,d=FT,f=BT,h=qT,p=$T,m=kT,y=oCe(),g=bl(),b=JY,v=HT;let _=class Zl extends r.Transform{constructor(E){super({readableObjectMode:!0}),E=E||{},this.options=E,this.parsingContext=new y.ParsingContext(Object.assign({parser:this},E)),this.util=new g.Util({dataFactory:E.dataFactory,parsingContext:this.parsingContext}),this.jsonParser=new t,this.contextJobs=[],this.typeJobs=[],this.contextAwaitingJobs=[],this.lastDepth=0,this.lastKeys=[],this.lastOnValueJob=Promise.resolve(),this.attachJsonParserListeners(),this.on("end",()=>{typeof this.jsonParser.mode<"u"&&this.emit("error",new Error("Unclosed document"))})}static fromHttpResponse(E,O,L,F){let x,P=["application/activity+json"];if(F&&F.wellKnownMediaTypes&&(P=F.wellKnownMediaTypes),O!=="application/ld+json"&&!P.includes(O)){if(O!=="application/json"&&!O.endsWith("+json"))throw new e.ErrorCoded(`Unsupported JSON-LD media type ${O}`,e.ERROR_CODES.LOADING_DOCUMENT_FAILED);if(L&&L.has("Link")&&L.forEach((N,V)=>{if(V==="link"){const $=(0,b.parse)(N);for(const q of $.get("rel","http://www.w3.org/ns/json-ld#context")){if(x)throw new e.ErrorCoded("Multiple JSON-LD context link headers were found on "+E,e.ERROR_CODES.MULTIPLE_CONTEXT_LINK_HEADERS);x=q.uri}}}),!x&&!(F!=null&&F.ignoreMissingContextLinkHeader))throw new e.ErrorCoded(`Missing context link header for media type ${O} on ${E}`,e.ERROR_CODES.LOADING_DOCUMENT_FAILED)}let j;if(L&&L.has("Content-Type")){const N=L.get("Content-Type"),V=/; *profile=([^"]*)/.exec(N);V&&V[1]==="http://www.w3.org/ns/json-ld#streaming"&&(j=!0)}return new Zl(Object.assign({baseIRI:E,context:x,streamingProfile:j},F||{}))}import(E){if("pipe"in E){E.on("error",L=>O.emit("error",L));const O=E.pipe(new Zl(this.options));return O}else{const O=new r.PassThrough({readableObjectMode:!0});E.on("error",F=>L.emit("error",F)),E.on("data",F=>O.push(F)),E.on("end",()=>O.push(null));const L=O.pipe(new Zl(this.options));return L}}_transform(E,O,L){this.jsonParser.write(E),this.lastOnValueJob.then(()=>L(),F=>L(F))}async newOnValueJob(E,O,L,F){let x=!0;if(F&&L1&&(V=this.parsingContext.validationStack[this.parsingContext.validationStack.length-1].property);for(let $=Math.max(1,this.parsingContext.validationStack.length-1);$=0?this.parsingContext.idStack[E-V-1]:[await this.util.getGraphContainerValue(O,E)];if($)for(const q of $){this.parsingContext.emittedStack[E]=!0;for(const H of x)this.util.emitQuadChecked(E,N,H.predicate,H.object,q,H.reverse,H.isEmbedded)}else{const q=this.parsingContext.getUnidentifiedGraphBufferSafe(E-await this.util.getDepthOffsetGraph(E,O)-1);for(const H of x)H.reverse?q.push({object:N,predicate:H.predicate,subject:H.object,isEmbedded:H.isEmbedded}):q.push({object:H.object,predicate:H.predicate,subject:N,isEmbedded:H.isEmbedded})}}this.parsingContext.unidentifiedValuesBuffer.splice(E,1),this.parsingContext.literalStack.splice(E,1),this.parsingContext.jsonLiteralStack.splice(E,1)}const P=this.parsingContext.unidentifiedGraphsBuffer[E];if(P){for(const N of L){const V=E===1&&N.termType==="BlankNode"&&!this.parsingContext.topLevelProperties?this.util.getDefaultGraph():N;this.parsingContext.emittedStack[E]=!0;for(const $ of P)this.parsingContext.emitQuad(E,this.util.dataFactory.quad($.subject,$.predicate,$.object,V))}this.parsingContext.unidentifiedGraphsBuffer.splice(E,1)}const j=this.parsingContext.annotationsBuffer[E];if(j){j.length>0&&E===1&&this.parsingContext.emitError(new e.ErrorCoded("Annotations can not be made on top-level nodes",e.ERROR_CODES.INVALID_ANNOTATION));const N=this.parsingContext.getAnnotationsBufferSafe(E-1);for(const V of j)N.push(V);delete this.parsingContext.annotationsBuffer[E]}}async validateKey(E,O,L){for(const F of Zl.ENTRY_HANDLERS)if(await F.validate(this.parsingContext,this.util,E,O,L))return{valid:!0,property:L||F.isPropertyHandler()};return{valid:!1,property:!1}}attachJsonParserListeners(){this.jsonParser.onValue=E=>{const O=this.jsonParser.stack.length,L=new Array(O+1).fill(0).map((F,x)=>x===O?this.jsonParser.key:this.jsonParser.stack[x].key);if(!this.isParsingContextInner(O)){const F=()=>this.newOnValueJob(L,E,O,!0);if(!this.parsingContext.streamingProfile&&!this.parsingContext.contextTree.getContext(L.slice(0,-1)))if(L[O]==="@context"){let x=this.contextJobs[O];x||(x=this.contextJobs[O]=[]),x.push(F)}else this.contextAwaitingJobs.push({job:F,keys:L,depth:O});else this.lastOnValueJob=this.lastOnValueJob.then(F);!this.parsingContext.streamingProfile&&O===0&&(this.lastOnValueJob=this.lastOnValueJob.then(()=>this.executeBufferedJobs()))}},this.jsonParser.onError=E=>{this.emit("error",E)}}isParsingContextInner(E){for(let O=E;O>0;O--)if(this.jsonParser.stack[O-1].key==="@context")return!0;return!1}async executeBufferedJobs(){for(const O of this.contextJobs)if(O)for(const L of O)await L();this.parsingContext.unaliasedKeywordCacheStack.splice(0);const E=[];for(const O of this.contextAwaitingJobs)await this.util.unaliasKeyword(O.keys[O.depth],O.keys,O.depth,!0)==="@type"||typeof O.keys[O.depth]=="number"&&await this.util.unaliasKeyword(O.keys[O.depth-1],O.keys,O.depth-1,!0)==="@type"?this.typeJobs.push({job:O.job,keys:O.keys.slice(0,O.keys.length-1)}):E.push(O);for(const O of E){if(this.typeJobs.length>0){const L=[],F=[];for(let j=0;jj.keys.length-N.keys.length);for(const j of x)await j.job();const P=F.sort().reverse();for(const j of P)this.typeJobs.splice(j,1)}await O.job()}}};return _.DEFAULT_PROCESSING_MODE="1.1",_.ENTRY_HANDLERS=[new n.EntryHandlerArrayValue,new u.EntryHandlerKeywordContext,new l.EntryHandlerKeywordId,new d.EntryHandlerKeywordIncluded,new c.EntryHandlerKeywordGraph,new f.EntryHandlerKeywordNest,new h.EntryHandlerKeywordType,new m.EntryHandlerKeywordValue,new v.EntryHandlerKeywordAnnotation,new a.EntryHandlerContainer,new p.EntryHandlerKeywordUnknownFallback,new o.EntryHandlerPredicate,new s.EntryHandlerInvalidFallback],dy.JsonLdParser=_,dy}(function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Cee(),t)})(Iee);var by={},C$;function jee(){if(C$)return by;C$=1,Object.defineProperty(by,"__esModule",{value:!0}),by.DocumentLoaderMediated=void 0;const t=Lu(),e=hn,r=gl;let n=class Lee extends e.FetchDocumentLoader{constructor(s,o){super(Lee.createFetcher(s,o)),this.mediatorHttp=s,this.context=o}static createFetcher(s,o){return async(u,c)=>{const l=await s.mediate({input:u,init:c,context:o});return l.json=async()=>JSON.parse(await r(t.ActorHttp.toNodeReadable(l.body))),l}}};return by.DocumentLoaderMediated=n,by}var L$;function lCe(){if(L$)return ly;L$=1,Object.defineProperty(ly,"__esModule",{value:!0}),ly.ActorRdfParseJsonLd=void 0;const t=Mf(),e=qt,r=Iee,n=jee();let a=class extends t.ActorRdfParseFixedMediaTypes{constructor(o){super(o)}async testHandle(o,u,c){if(c.has(e.KeysRdfParseHtmlScript.processingHtmlScript)&&u!=="application/ld+json")throw new Error("JSON-LD in script tags can only have media type 'application/ld+json'");if(!u||!(u in this.mediaTypePriorities||u.endsWith("+json")))throw new Error(`Unrecognized media type: ${u}`);return await this.testHandleChecked(o)}async runHandle(o,u,c){var f;return{data:r.JsonLdParser.fromHttpResponse(((f=o.metadata)==null?void 0:f.baseIRI)??"",u,o.headers,{documentLoader:c.get(e.KeysRdfParseJsonLd.documentLoader)??new n.DocumentLoaderMediated(this.mediatorHttp,c),strictValues:c.get(e.KeysRdfParseJsonLd.strictValues),...c.get(e.KeysRdfParseJsonLd.parserOptions)}).import(o.data)}}};return ly.ActorRdfParseJsonLd=a,ly}var j$;function dCe(){return j$||(j$=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(lCe(),t),r(jee(),t)}(FR)),FR}var BR={},vy={},qR={},wy={},M$;function fCe(){if(M$)return wy;M$=1,Object.defineProperty(wy,"__esModule",{value:!0}),wy.ActorRdfUpdateHypermedia=void 0;const t=st;let e=class extends t.Actor{constructor(n,a){super(n),this.destinationType=a}async test(n){if(n.forceDestinationType&&this.destinationType!==n.forceDestinationType)throw new Error(`Actor ${this.name} is not able to handle destination type ${n.forceDestinationType}.`);return this.testMetadata(n)}};return wy.ActorRdfUpdateHypermedia=e,wy}var F$;function w4(){return F$||(F$=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(fCe(),t)}(qR)),qR}var Sy={},tN={exports:{}};(function(t,e){var r=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof I<"u"&&I,n=function(){function s(){this.fetch=!1,this.DOMException=r.DOMException}return s.prototype=r,new s}();(function(s){(function(o){var u=typeof s<"u"&&s||typeof self<"u"&&self||typeof u<"u"&&u,c={searchParams:"URLSearchParams"in u,iterable:"Symbol"in u&&"iterator"in Symbol,blob:"FileReader"in u&&"Blob"in u&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in u,arrayBuffer:"ArrayBuffer"in u};function l(q){return q&&DataView.prototype.isPrototypeOf(q)}if(c.arrayBuffer)var d=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],f=ArrayBuffer.isView||function(q){return q&&d.indexOf(Object.prototype.toString.call(q))>-1};function h(q){if(typeof q!="string"&&(q=String(q)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(q)||q==="")throw new TypeError('Invalid character in header field name: "'+q+'"');return q.toLowerCase()}function p(q){return typeof q!="string"&&(q=String(q)),q}function m(q){var H={next:function(){var X=q.shift();return{done:X===void 0,value:X}}};return c.iterable&&(H[Symbol.iterator]=function(){return H}),H}function y(q){this.map={},q instanceof y?q.forEach(function(H,X){this.append(X,H)},this):Array.isArray(q)?q.forEach(function(H){this.append(H[0],H[1])},this):q&&Object.getOwnPropertyNames(q).forEach(function(H){this.append(H,q[H])},this)}y.prototype.append=function(q,H){q=h(q),H=p(H);var X=this.map[q];this.map[q]=X?X+", "+H:H},y.prototype.delete=function(q){delete this.map[h(q)]},y.prototype.get=function(q){return q=h(q),this.has(q)?this.map[q]:null},y.prototype.has=function(q){return this.map.hasOwnProperty(h(q))},y.prototype.set=function(q,H){this.map[h(q)]=p(H)},y.prototype.forEach=function(q,H){for(var X in this.map)this.map.hasOwnProperty(X)&&q.call(H,this.map[X],X,this)},y.prototype.keys=function(){var q=[];return this.forEach(function(H,X){q.push(X)}),m(q)},y.prototype.values=function(){var q=[];return this.forEach(function(H){q.push(H)}),m(q)},y.prototype.entries=function(){var q=[];return this.forEach(function(H,X){q.push([X,H])}),m(q)},c.iterable&&(y.prototype[Symbol.iterator]=y.prototype.entries);function g(q){if(q.bodyUsed)return Promise.reject(new TypeError("Already read"));q.bodyUsed=!0}function b(q){return new Promise(function(H,X){q.onload=function(){H(q.result)},q.onerror=function(){X(q.error)}})}function v(q){var H=new FileReader,X=b(H);return H.readAsArrayBuffer(q),X}function _(q){var H=new FileReader,X=b(H);return H.readAsText(q),X}function w(q){for(var H=new Uint8Array(q),X=new Array(H.length),Y=0;Y-1?H:q}function x(q,H){if(!(this instanceof x))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');H=H||{};var X=H.body;if(q instanceof x){if(q.bodyUsed)throw new TypeError("Already read");this.url=q.url,this.credentials=q.credentials,H.headers||(this.headers=new y(q.headers)),this.method=q.method,this.mode=q.mode,this.signal=q.signal,!X&&q._bodyInit!=null&&(X=q._bodyInit,q.bodyUsed=!0)}else this.url=String(q);if(this.credentials=H.credentials||this.credentials||"same-origin",(H.headers||!this.headers)&&(this.headers=new y(H.headers)),this.method=F(H.method||this.method||"GET"),this.mode=H.mode||this.mode||null,this.signal=H.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&X)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(X),(this.method==="GET"||this.method==="HEAD")&&(H.cache==="no-store"||H.cache==="no-cache")){var Y=/([?&])_=[^&]*/;if(Y.test(this.url))this.url=this.url.replace(Y,"$1_="+new Date().getTime());else{var he=/\?/;this.url+=(he.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}x.prototype.clone=function(){return new x(this,{body:this._bodyInit})};function P(q){var H=new FormData;return q.trim().split("&").forEach(function(X){if(X){var Y=X.split("="),he=Y.shift().replace(/\+/g," "),Te=Y.join("=").replace(/\+/g," ");H.append(decodeURIComponent(he),decodeURIComponent(Te))}}),H}function j(q){var H=new y,X=q.replace(/\r?\n[\t ]+/g," ");return X.split("\r").map(function(Y){return Y.indexOf(` +`)}`);const m=s[h].actor;return m.includeInLogs&&((y=e.Actor.getContextLogger(a.context))==null||y.debug(`Determined physical join operator '${m.logicalType}-${m.physicalName}'`,{entries:a.entries.length,variables:await Promise.all(a.entries.map(async g=>(await g.output.metadata()).variables.map(b=>b.value))),costs:Object.fromEntries(l.map((g,b)=>[`${s[b].actor.logicalType}-${s[b].actor.physicalName}`,g]).filter(g=>g[1]!==void 0)),coefficients:Object.fromEntries(c.map((g,b)=>[`${s[b].actor.logicalType}-${s[b].actor.physicalName}`,g]).filter(g=>g[1]!==void 0))})),m}};return B0.MediatorJoinCoefficientsFixed=r,B0}var Oq;function QNe(){return Oq||(Oq=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(HNe(),t)}(dR)),dR}var fR={},q0={},Rq;function Ree(){if(Rq)return q0;Rq=1,Object.defineProperty(q0,"__esModule",{value:!0}),q0.ActorHttpInvalidate=void 0;const t=st;let e=class extends t.Actor{constructor(n){super(n)}};return q0.ActorHttpInvalidate=e,q0}var $0={},xq;function zNe(){if(xq)return $0;xq=1,Object.defineProperty($0,"__esModule",{value:!0}),$0.ActorHttpInvalidateListenable=void 0;const t=Ree();let e=class extends t.ActorHttpInvalidate{constructor(n){super(n),this.invalidateListeners=[],this.invalidateListeners=[]}addInvalidateListener(n){this.invalidateListeners.push(n)}async test(n){return!0}async run(n){for(const a of this.invalidateListeners)a(n);return{}}};return $0.ActorHttpInvalidateListenable=e,$0}var Iq;function uw(){return Iq||(Iq=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Ree(),t),r(zNe(),t)}(fR)),fR}var hR={},U0={},Pq;function GNe(){if(Pq)return U0;Pq=1,Object.defineProperty(U0,"__esModule",{value:!0}),U0.MediatorAll=void 0;const t=st;let e=class extends t.Mediator{constructor(n){super(n)}async mediate(n){const a=[];let s;try{s=this.publish(n)}catch{s=[]}for(const u of s)try{await u.reply,a.push(u.actor)}catch{}return(await Promise.all(a.map(u=>u.runObservable(n))))[0]}async mediateWith(){throw new Error("Unsupported operation: MediatorAll#mediateWith")}};return U0.MediatorAll=e,U0}var Nq;function WNe(){return Nq||(Nq=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(GNe(),t)}(hR)),hR}var pR={},k0={},yR={},V0={},H0={},Dq;function KNe(){if(Dq)return H0;Dq=1,Object.defineProperty(H0,"__esModule",{value:!0}),H0.instrumentIterator=void 0;function t(r){const n={count:0,timeSelf:0,timeLife:0};return e(r,n,!0),new Promise(a=>{r.on("end",()=>{a(n)})})}H0.instrumentIterator=t;function e(r,n,a){if(!("_profileInstrumented"in r)){if(r._profileInstrumented=!0,"_read"in r){const s=r._read;r._read=(o,u)=>{const c=performance.now();s.call(r,o,()=>{n.timeSelf+=performance.now()-c,u()})}}if("read"in r){const s=r.read;r.read=()=>{const o=performance.now(),u=s.call(r);return a&&u&&n.count++,n.timeSelf+=performance.now()-o,u}}if(a){const s=performance.now();r.on("end",()=>{n.timeLife=performance.now()-s})}"_source"in r&&e(r._source,n,!1)}}return H0}var Cq;function JNe(){if(Cq)return V0;Cq=1,Object.defineProperty(V0,"__esModule",{value:!0}),V0.ActorRdfJoin=void 0;const t=qt,e=st,r=ci(),n=Ot,a=nr,s=KNe(),o=new n.DataFactory;let u=class hc extends e.Actor{constructor(l,d){super(l),this.includeInLogs=!0,this.logicalType=d.logicalType,this.physicalName=d.physicalName,this.limitEntries=d.limitEntries??Number.POSITIVE_INFINITY,this.limitEntriesMin=d.limitEntriesMin??!1,this.canHandleUndefs=d.canHandleUndefs??!1,this.isLeaf=d.isLeaf??!0}static hash(l,d){return d.map(f=>{const h=l.get(f);return h?h.value:""}).join("")}static hashNonClashing(l,d){return d.map(f=>{const h=l.get(f);return h?(0,a.termToString)(h):""}).join("")}static overlappingVariables(l){const d=l.map(h=>h.variables);let f=d[0];for(const h of d.slice(1))f=f.filter(p=>h.some(m=>m.value===p.value));return f}static joinVariables(l){return[...new Set(l.flatMap(d=>d.variables.map(f=>f.value)))].map(d=>o.variable(d))}static joinBindings(...l){if(l.length===0)return null;if(l.length===1)return l[0];let d=l[0];for(const f of l.slice(1)){const h=d.merge(f);if(!h)return null;d=h}return d}static getCardinality(l){return l.cardinality}static async getMetadatas(l){return await Promise.all(l.map(d=>d.output.metadata()))}static async getEntriesWithMetadatas(l){const d=await hc.getMetadatas(l);return l.map((f,h)=>({...f,metadata:d[h]}))}static getRequestInitialTimes(l){return l.map(d=>d.pageSize?0:d.requestTime??0)}static getRequestItemTimes(l){return l.map(d=>d.pageSize?(d.requestTime??0)/d.pageSize:0)}constructState(l){const d=new r.MetadataValidationState,f=()=>d.invalidate();for(const h of l)h.state.addInvalidateListener(f);return d}async constructResultMetadata(l,d,f,h={}){let p;return h.cardinality?p=h.cardinality:(p=d.reduce((m,y)=>{const g=hc.getCardinality(y);return{type:g.type==="estimate"?"estimate":m.type,value:m.value*g.value}},{type:"exact",value:1}),p.value*=(await this.mediatorJoinSelectivity.mediate({entries:l,context:f})).selectivity),{state:this.constructState(d),...h,cardinality:{type:p.type,value:p.value},canContainUndefs:h.canContainUndefs??d.some(m=>m.canContainUndefs),variables:hc.joinVariables(d)}}static async sortJoinEntries(l,d,f){if(d.some(g=>g.metadata.canContainUndefs))return d;const p={};for(const g of d)for(const b of g.metadata.variables){let v=p[b.value];v||(v=0),p[b.value]=++v}const m=[];for(const[g,b]of Object.entries(p))b>=2&&m.push(g);if(m.length===0)throw new Error("Bind join can only join entries with at least one common variable");const y=[];for(const g of d){let b=!1;for(const v of g.metadata.variables)if(m.includes(v.value)){b=!0;break}b||y.push(g)}return(await l.mediate({entries:d,context:f})).entries.sort((g,b)=>{const v=y.includes(g),_=y.includes(b);return v===_?0:v?1:-1})}async test(l){if(l.type!==this.logicalType)throw new Error(`${this.name} can only handle logical joins of type '${this.logicalType}', while '${l.type}' was given.`);if(l.entries.length<=1)throw new Error(`${this.name} requires at least two join entries.`);if(this.limitEntriesMin?l.entries.lengththis.limitEntries)throw new Error(`${this.name} requires ${this.limitEntries} join entries at ${this.limitEntriesMin?"least":"most"}. The input contained ${l.entries.length}.`);for(const f of l.entries)if(f.output.type!=="bindings")throw new Error(`Invalid type of a join entry: Expected 'bindings' but got '${f.output.type}'`);const d=await hc.getMetadatas(l.entries);if(!this.canHandleUndefs){for(const f of d)if(f.canContainUndefs)throw new Error(`Actor ${this.name} can not join streams containing undefs`)}return await this.getJoinCoefficients(l,d)}async run(l){let d;l.context.has(t.KeysInitQuery.physicalQueryPlanLogger)&&(d=l.context.get(t.KeysInitQuery.physicalQueryPlanNode),l.context=l.context.set(t.KeysInitQuery.physicalQueryPlanNode,l));const f=l.context.get(t.KeysInitQuery.physicalQueryPlanLogger);let h;this.includeInLogs&&f&&(h={},f.stashChildren(d,g=>g.logicalOperator.startsWith("join")),f.logOperation(`join-${this.logicalType}`,this.physicalName,l,d,this.name,h));const{result:p,physicalPlanMetadata:m}=await this.getOutput(l),y=await hc.getMetadatas(l.entries);if(h){(0,s.instrumentIterator)(p.bindingsStream).then(b=>{f.appendMetadata(l,{cardinalityReal:b.count,timeSelf:b.timeSelf,timeLife:b.timeLife})}),Object.assign(h,m);const g=y.map(hc.getCardinality);if(h.cardinalities=g,h.joinCoefficients=await this.getJoinCoefficients(l,y),this.isLeaf)for(let b=0;b=this.blockSize&&s(this.consumeChunkAsIterator()),a()}_flush(n){this.chunk.length>0&&this._push(this.consumeChunkAsIterator()),super._flush(n)}};return Q0.ChunkedIterator=e,Q0}var jq;function li(){return jq||(jq=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(JNe(),t),r(XNe(),t)}(yR)),yR}var Mq;function YNe(){if(Mq)return k0;Mq=1,Object.defineProperty(k0,"__esModule",{value:!0}),k0.ActorRdfJoinSingle=void 0;const t=li();let e=class extends t.ActorRdfJoin{constructor(n){super(n,{logicalType:"inner",physicalName:"single",limitEntries:1}),this.includeInLogs=!1}async test(n){if(n.entries.length!==1)throw new Error(`Actor ${this.name} can only join a single entry`);return await this.getJoinCoefficients()}async getOutput(n){return{result:n.entries[0].output}}async getJoinCoefficients(){return{iterations:0,persistedItems:0,blockingItems:0,requestTime:0}}};return k0.ActorRdfJoinSingle=e,k0}var Fq;function ZNe(){return Fq||(Fq=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(YNe(),t)}(pR)),pR}var mR={},z0={},Bq;function eDe(){if(Bq)return z0;Bq=1,Object.defineProperty(z0,"__esModule",{value:!0}),z0.ActorRdfJoinMultiEmpty=void 0;const t=li(),e=ci(),r=Mt;let n=class extends t.ActorRdfJoin{constructor(s){super(s,{logicalType:"inner",physicalName:"multi-empty",canHandleUndefs:!0})}async test(s){if((await t.ActorRdfJoin.getMetadatas(s.entries)).every(o=>t.ActorRdfJoin.getCardinality(o).value>0))throw new Error(`Actor ${this.name} can only join entries where at least one is empty`);return super.test(s)}async getOutput(s){for(const o of s.entries)o.output.bindingsStream.close();return{result:{bindingsStream:new r.ArrayIterator([],{autoStart:!1}),metadata:async()=>({state:new e.MetadataValidationState,cardinality:{type:"exact",value:0},canContainUndefs:!1,variables:t.ActorRdfJoin.joinVariables(await t.ActorRdfJoin.getMetadatas(s.entries))}),type:"bindings"}}}async getJoinCoefficients(s,o){return{iterations:0,persistedItems:0,blockingItems:0,requestTime:0}}};return z0.ActorRdfJoinMultiEmpty=n,z0}var qq;function tDe(){return qq||(qq=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(eDe(),t)}(mR)),mR}var gR={},G0={},$q;function rDe(){if($q)return G0;$q=1,Object.defineProperty(G0,"__esModule",{value:!0}),G0.ActorRdfJoinMultiBindSource=void 0;const t=Tt(),e=li(),r=Mt,n=xt(),a=new n.Factory;let s=class extends e.ActorRdfJoin{constructor(u){super(u,{logicalType:"inner",physicalName:"bind-source",canHandleUndefs:!0})}async getOutput(u){const c=await e.ActorRdfJoin.getEntriesWithMetadatas(u.entries),l=await this.sortJoinEntries(c,u.context);this.logDebug(u.context,"First entry for Bind Join Source: ",()=>({entry:l[0].operation,metadata:l[0].metadata}));for(const[b,v]of l.entries())b!==0&&v.output.bindingsStream.close();const d=l[0].output,f=l[0].metadata,h=[...l];h.splice(0,1);const p=t.ActorQueryOperation.getOperationSource(h[0].operation),m=this.createOperationFromEntries(h),y=new e.ChunkedIterator(d.bindingsStream,this.blockSize,{autoStart:!1});return{result:{type:"bindings",bindingsStream:new r.UnionIterator(y.map(b=>p.source.queryBindings(m,p.context?u.context.merge(p.context):u.context,{joinBindings:{bindings:b,metadata:f}}))),metadata:()=>this.constructResultMetadata(l,l.map(b=>b.metadata),u.context)},physicalPlanMetadata:{bindIndex:c.indexOf(l[0])}}}async sortJoinEntries(u,c){return u=await e.ActorRdfJoin.sortJoinEntries(this.mediatorJoinEntriesSort,u,c),u=u.sort((l,d)=>l.operationModified&&!d.operationModified?-1:0),u}async getJoinCoefficients(u,c){const l=await this.sortJoinEntries(u.entries.map((_,w)=>({..._,metadata:c[w]})),u.context);c=l.map(_=>_.metadata);const d=e.ActorRdfJoin.getRequestInitialTimes(c),f=e.ActorRdfJoin.getRequestItemTimes(c),h=[...l];[...d],[...f],h.splice(0,1);const p=h.map(_=>t.ActorQueryOperation.getOperationSource(_.operation));if(p.some(_=>!_))throw new Error(`Actor ${this.name} can not bind on remaining operations without source annotation`);if(p.some(_=>_!==p[0]))throw new Error(`Actor ${this.name} can not bind on remaining operations with non-equal source annotation`);const m=p[0],y=this.createOperationFromEntries(h),g=await m.source.getSelectorShape(u.context);if(!t.ActorQueryOperation.doesShapeAcceptOperation(g,y,{joinBindings:!0}))throw new Error(`Actor ${this.name} detected a source that can not handle passing down join bindings`);const b=await Promise.all(h.map(async _=>(await this.mediatorJoinSelectivity.mediate({entries:[l[0],_],context:u.context})).selectivity*this.selectivityModifier)),v=h.map((_,w)=>_.metadata.cardinality.value*b[w]).reduce((_,w)=>_+w,0);return{iterations:1,persistedItems:c[0].cardinality.value,blockingItems:c[0].cardinality.value,requestTime:d[0]+c[0].cardinality.value*f[0]+d[1]+v*f[1]}}createOperationFromEntries(u){return u.length===1?u[0].operation:a.createJoin(u.map(c=>c.operation),!0)}};return G0.ActorRdfJoinMultiBindSource=s,G0}var Uq;function nDe(){return Uq||(Uq=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(rDe(),t)}(gR)),gR}var _R={},W0={},bR,kq;function iDe(){if(kq)return bR;kq=1;let t=Mt,e=t.MultiTransformIterator,r=t.SimpleTransformIterator;class n extends e{constructor(s,o,u,c){super(s,c),this.funRight=o,this.funJoin=u}_createTransformer(s){return new r(this.funRight(s),{transform:(o,u,c)=>{let l=this.funJoin(s,o);l!==null&&c(l),u()}})}}return bR=n,bR}var vR,Vq;function aDe(){if(Vq)return vR;Vq=1;let t=Mt.AsyncIterator;class e extends t{constructor(n,a,s,o){super(),this.addedDataListener=!1,this.left=n,this.right=a,this.funHash=s,this.funJoin=o,this.leftMap=new Map,this.match=null,this.matches=[],this.matchIdx=0,this.left.on("error",c=>this.destroy(c)),this.right.on("error",c=>this.destroy(c)),this.readable=!1,this.left.on("end",u.bind(this));function u(){this.readable=!0,this.right.on("readable",()=>this.readable=!0),this.right.on("end",()=>{this.hasResults()||this._end()})}this.on("newListener",c=>{c==="data"&&this._addDataListenerIfNeeded()}),this.left.readable&&this._addDataListenerIfNeeded(),this.left.on("readable",()=>this._addDataListenerIfNeeded())}hasResults(){return!this.right.ended||this.matchIdxthis.right.close())}_end(){super._end(),r(()=>this.right.destroy())}_createTransformer(s){return new e(this.right.clone(),{transform:(o,u,c)=>{let l=this.funJoin(s,o);l!==null&&c(l),u()}})}}return wR=n,wR}var SR,Qq;function oDe(){if(Qq)return SR;Qq=1;let t=Mt.AsyncIterator;class e extends t{constructor(n,a,s,o){super(),this.left=n,this.right=a,this.funHash=s,this.funJoin=o,this.usedLeft=!1,this.leftMap=new Map,this.rightMap=new Map,this.on("end",()=>this._cleanup()),this.match=null,this.matches=[],this.matchIdx=0,(this.left.readable||this.right.readable)&&(this.readable=!0),this.left.on("error",u=>this.destroy(u)),this.right.on("error",u=>this.destroy(u)),this.left.on("readable",()=>this.readable=!0),this.right.on("readable",()=>this.readable=!0),this.left.on("end",()=>{this.hasResults()||this._end()}),this.right.on("end",()=>{this.hasResults()||this._end()})}hasResults(){return!this.left.ended||!this.right.ended||!!this.matches&&this.matchIdxthis.emit("readable")),a.on("end",()=>this._removeStream(a));this.streams.length===0&&this.close(),this.idx=this.streams.length-1}_removeStream(n){let a=this.streams.indexOf(n);a<0||(this.streams.splice(a,1),this.idx>=this.streams.length&&--this.idx,this.streams.length===0&&this._end())}close(){super.close();for(let n of this.streams)n.close()}read(){for(let n=0;nt.ActorRdfJoin.hash(c,o),t.ActorRdfJoin.joinBindings),metadata:async()=>await this.constructResultMetadata(a.entries,s,a.context)}}}async getJoinCoefficients(a,s){const o=t.ActorRdfJoin.getRequestInitialTimes(s),u=t.ActorRdfJoin.getRequestItemTimes(s);return{iterations:s[0].cardinality.value+s[1].cardinality.value,persistedItems:s[0].cardinality.value,blockingItems:s[0].cardinality.value,requestTime:o[0]+s[0].cardinality.value*u[0]+o[1]+s[1].cardinality.value*u[1]}}};return W0.ActorRdfJoinHash=r,W0}var Kq;function lDe(){return Kq||(Kq=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(cDe(),t)}(_R)),_R}var AR={},K0={},Jq;function dDe(){if(Jq)return K0;Jq=1,Object.defineProperty(K0,"__esModule",{value:!0}),K0.ActorRdfJoinSymmetricHash=void 0;const t=li(),e=RT();let r=class xee extends t.ActorRdfJoin{constructor(a){super(a,{logicalType:"inner",physicalName:"symmetric-hash",limitEntries:2})}async getOutput(a){const s=await t.ActorRdfJoin.getMetadatas(a.entries),o=t.ActorRdfJoin.overlappingVariables(s);return{result:{type:"bindings",bindingsStream:new e.SymmetricHashJoin(a.entries[0].output.bindingsStream,a.entries[1].output.bindingsStream,c=>xee.hash(c,o),t.ActorRdfJoin.joinBindings),metadata:async()=>await this.constructResultMetadata(a.entries,s,a.context)}}}async getJoinCoefficients(a,s){const o=t.ActorRdfJoin.getRequestInitialTimes(s),u=t.ActorRdfJoin.getRequestItemTimes(s);return{iterations:s[0].cardinality.value+s[1].cardinality.value,persistedItems:s[0].cardinality.value+s[1].cardinality.value,blockingItems:0,requestTime:o[0]+s[0].cardinality.value*u[0]+o[1]+s[1].cardinality.value*u[1]}}};return K0.ActorRdfJoinSymmetricHash=r,K0}var Xq;function fDe(){return Xq||(Xq=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(dDe(),t)}(AR)),AR}var OR={},J0={},Yq;function hDe(){if(Yq)return J0;Yq=1,Object.defineProperty(J0,"__esModule",{value:!0}),J0.ActorRdfJoinNestedLoop=void 0;const t=li(),e=RT();let r=class extends t.ActorRdfJoin{constructor(a){super(a,{logicalType:"inner",physicalName:"nested-loop",limitEntries:2,canHandleUndefs:!0})}async getOutput(a){return{result:{type:"bindings",bindingsStream:new e.NestedLoopJoin(a.entries[0].output.bindingsStream,a.entries[1].output.bindingsStream,t.ActorRdfJoin.joinBindings,{autoStart:!1}),metadata:async()=>await this.constructResultMetadata(a.entries,await t.ActorRdfJoin.getMetadatas(a.entries),a.context)}}}async getJoinCoefficients(a,s){const o=t.ActorRdfJoin.getRequestInitialTimes(s),u=t.ActorRdfJoin.getRequestItemTimes(s);return{iterations:s[0].cardinality.value*s[1].cardinality.value,persistedItems:0,blockingItems:0,requestTime:o[0]+s[0].cardinality.value*u[0]+o[1]+s[1].cardinality.value*u[1]}}};return J0.ActorRdfJoinNestedLoop=r,J0}var Zq;function pDe(){return Zq||(Zq=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(hDe(),t)}(OR)),OR}var RR={},X0={},e$;function yDe(){if(e$)return X0;e$=1,Object.defineProperty(X0,"__esModule",{value:!0}),X0.ActorRdfJoinMinusHash=void 0;const t=Tt(),e=li();let r=class extends e.ActorRdfJoin{constructor(a){super(a,{logicalType:"minus",physicalName:"hash",limitEntries:2})}async getOutput(a){const s=a.entries[1].output,o=a.entries[0].output,u=await e.ActorRdfJoin.getMetadatas(a.entries),c=e.ActorRdfJoin.overlappingVariables(u);if(c.length>0){const l={},d=new t.ClosableTransformIterator(async()=>(await new Promise(f=>{s.bindingsStream.on("data",h=>{l[e.ActorRdfJoin.hashNonClashing(h,c)]=!0}),s.bindingsStream.on("end",f),s.bindingsStream.on("error",h=>{d.emit("error",h)})}),o.bindingsStream.filter(f=>!l[e.ActorRdfJoin.hashNonClashing(f,c)])),{autoStart:!1,onClose(){s.bindingsStream.destroy(),o.bindingsStream.destroy()}});return{result:{type:"bindings",bindingsStream:d,metadata:o.metadata}}}return s.bindingsStream.destroy(),{result:o}}async getJoinCoefficients(a,s){const o=e.ActorRdfJoin.getRequestInitialTimes(s),u=e.ActorRdfJoin.getRequestItemTimes(s);return{iterations:s[0].cardinality.value+s[1].cardinality.value,persistedItems:s[0].cardinality.value,blockingItems:s[0].cardinality.value,requestTime:o[0]+s[0].cardinality.value*u[0]+o[1]+s[1].cardinality.value*u[1]}}};return X0.ActorRdfJoinMinusHash=r,X0}var t$;function mDe(){return t$||(t$=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(yDe(),t)}(RR)),RR}var xR={},Y0={},Z0={},r$;function gDe(){if(r$)return Z0;r$=1,Object.defineProperty(Z0,"__esModule",{value:!0}),Z0.BindingsIndex=void 0;const t=nr;let e=class ZP{constructor(n){this.data={},this.keys=n}static hashTerm(n){return n&&n.termType!=="Variable"?(0,t.termToString)(n):""}add(n){if(this.isBindingsValid(n)){let a=this.data;for(const s of this.keys){const o=ZP.hashTerm(n.get(s));let u=a[o];u||(u=a[o]={}),a=u}}}contains(n){return this.isBindingsValid(n)?this.containsRecursive(n,this.keys,[this.data]):!1}isBindingsValid(n){let a=!1;for(const s of this.keys)if(n.get(s)){a=!0;break}return a}containsRecursive(n,a,s){if(a.length===0)return!0;let o;[o,...a]=a;for(const u of s){const c=ZP.hashTerm(n.get(o));if(c){const l=[u[c],u[""]].filter(Boolean);if(l.length===0)continue;if(this.containsRecursive(n,a,l))return!0}else{let l=Object.keys(u).map(d=>u[d]);if(l.length===0&&(l=[{}]),this.containsRecursive(n,a,l))return!0}}return!1}};return Z0.BindingsIndex=e,Z0}var n$;function _De(){if(n$)return Y0;n$=1,Object.defineProperty(Y0,"__esModule",{value:!0}),Y0.ActorRdfJoinMinusHashUndef=void 0;const t=Tt(),e=li(),r=gDe();let n=class extends e.ActorRdfJoin{constructor(s){super(s,{logicalType:"minus",physicalName:"hash-undef",limitEntries:2,canHandleUndefs:!0})}async getOutput(s){const o=s.entries[1].output,u=s.entries[0].output,c=await e.ActorRdfJoin.getMetadatas(s.entries),l=e.ActorRdfJoin.overlappingVariables(c);if(l.length>0){const d=new r.BindingsIndex(l),f=new t.ClosableTransformIterator(async()=>(await new Promise(h=>{o.bindingsStream.on("data",p=>d.add(p)),o.bindingsStream.on("end",h),o.bindingsStream.on("error",p=>{f.emit("error",p)})}),u.bindingsStream.filter(h=>!d.contains(h))),{autoStart:!1,onClose(){o.bindingsStream.destroy(),u.bindingsStream.destroy()}});return{result:{type:"bindings",bindingsStream:f,async metadata(){const h=await u.metadata(),p=await u.metadata();return{...p,canContainUndefs:h.canContainUndefs||p.canContainUndefs}}}}}return o.bindingsStream.destroy(),{result:u}}async getJoinCoefficients(s,o){const u=e.ActorRdfJoin.getRequestInitialTimes(o),c=e.ActorRdfJoin.getRequestItemTimes(o);return{iterations:(o[0].cardinality.value+o[1].cardinality.value)*1.01,persistedItems:o[0].cardinality.value,blockingItems:o[0].cardinality.value,requestTime:u[0]+o[0].cardinality.value*c[0]+u[1]+o[1].cardinality.value*c[1]}}};return Y0.ActorRdfJoinMinusHashUndef=n,Y0}var i$;function bDe(){return i$||(i$=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(_De(),t)}(xR)),xR}var IR={},ey={},ty={},a$;function vDe(){if(a$)return ty;a$=1,Object.defineProperty(ty,"__esModule",{value:!0}),ty.BindingsIndexDef=void 0;let t=class{constructor(r,n){this.keys=r,this.hashFn=n,this.index={}}put(r,n){return this.index[this.hashFn(r,this.keys)]=n}get(r){const n=this.getFirst(r);return n?[n]:[]}getFirst(r){return this.index[this.hashFn(r,this.keys)]}values(){return Object.values(this.index)}};return ty.BindingsIndexDef=t,ty}var ry={},s$;function wDe(){if(s$)return ry;s$=1,Object.defineProperty(ry,"__esModule",{value:!0}),ry.BindingsIndexUndef=void 0;let t=class{constructor(r,n){this.data={},this.keys=r,this.hashFn=n}put(r,n){if(this.isBindingsValid(r)){let a=this.data;for(let s=0;sd&&d.termType!=="Variable"?(0,n.termToString)(d):""):new a.BindingsIndexDef(l,e.ActorRdfJoin.hashNonClashing)}async getOutput(c){const l=c.entries[1].output,d=c.entries[0].output,f=await e.ActorRdfJoin.getMetadatas(c.entries),h=e.ActorRdfJoin.overlappingVariables(f);let p;return this.blocking?p=new t.ClosableTransformIterator(async()=>{const m=eN.constructIndex(this.canHandleUndefs,h);return await new Promise(y=>{l.bindingsStream.on("data",g=>{(m.getFirst(g)??m.put(g,[])).push(g)}),l.bindingsStream.on("end",y),l.bindingsStream.on("error",g=>{p.emit("error",g)})}),new r.MultiTransformIterator(d.bindingsStream,{multiTransform:y=>new r.ArrayIterator(m.get(y).flat().map(g=>e.ActorRdfJoin.joinBindings(y,g)).filter(g=>g!==null),{autoStart:!1}),optional:!0,autoStart:!1})},{autoStart:!1,onClose(){l.bindingsStream.destroy(),d.bindingsStream.destroy()}}):p=new t.ClosableTransformIterator(async()=>{const m=eN.constructIndex(this.canHandleUndefs,h);let y=!0;return l.bindingsStream.on("data",g=>{(m.getFirst(g)??m.put(g,new r.BufferedIterator({autoStart:!1})))._push(g)}),l.bindingsStream.on("end",()=>{for(const g of m.values())g.close();y=!1}),l.bindingsStream.on("error",g=>{p.emit("error",g)}),new r.MultiTransformIterator(d.bindingsStream,{multiTransform:g=>{let b=m.get(g);return b.length===0&&(y?b=[m.put(g,new r.BufferedIterator({autoStart:!1}))]:b=[]),new r.UnionIterator(b.map(_=>_.clone()),{autoStart:!1}).map(_=>e.ActorRdfJoin.joinBindings(g,_))},optional:!0,autoStart:!1})},{autoStart:!1,onClose(){l.bindingsStream.destroy(),d.bindingsStream.destroy()}}),{result:{type:"bindings",bindingsStream:p,metadata:async()=>await this.constructResultMetadata(c.entries,await e.ActorRdfJoin.getMetadatas(c.entries),c.context,{canContainUndefs:!0})}}}async getJoinCoefficients(c,l){if(e.ActorRdfJoin.overlappingVariables(l).length===0)throw new Error(`Actor ${this.name} only join entries with at least one common variable`);const d=e.ActorRdfJoin.getRequestInitialTimes(l),f=e.ActorRdfJoin.getRequestItemTimes(l);let h=l[0].cardinality.value+l[1].cardinality.value;return this.canHandleUndefs||(h*=.8),this.blocking&&(h*=.9),{iterations:h,persistedItems:l[0].cardinality.value,blockingItems:this.blocking?l[0].cardinality.value:0,requestTime:d[0]+l[0].cardinality.value*f[0]+d[1]+l[1].cardinality.value*f[1]}}};return ey.ActorRdfJoinOptionalHash=o,ey}var u$;function cw(){return u$||(u$=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(SDe(),t)}(IR)),IR}var PR={},ny={},c$;function TDe(){if(c$)return ny;c$=1,Object.defineProperty(ny,"__esModule",{value:!0}),ny.ActorRdfJoinOptionalNestedLoop=void 0;const t=li(),e=RT();let r=class extends t.ActorRdfJoin{constructor(a){super(a,{logicalType:"optional",physicalName:"nested-loop",limitEntries:2,canHandleUndefs:!0})}async getOutput(a){return{result:{type:"bindings",bindingsStream:new e.NestedLoopJoin(a.entries[0].output.bindingsStream,a.entries[1].output.bindingsStream,t.ActorRdfJoin.joinBindings,{optional:!0,autoStart:!1}),metadata:async()=>await this.constructResultMetadata(a.entries,await t.ActorRdfJoin.getMetadatas(a.entries),a.context,{canContainUndefs:!0})}}}async getJoinCoefficients(a,s){const o=t.ActorRdfJoin.getRequestInitialTimes(s),u=t.ActorRdfJoin.getRequestItemTimes(s);return{iterations:s[0].cardinality.value*s[1].cardinality.value,persistedItems:0,blockingItems:0,requestTime:o[0]+s[0].cardinality.value*u[0]+o[1]+s[1].cardinality.value*u[1]}}};return ny.ActorRdfJoinOptionalNestedLoop=r,ny}var l$;function EDe(){return l$||(l$=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(TDe(),t)}(PR)),PR}var NR={},iy={},DR={},ay={},d$;function ADe(){if(d$)return ay;d$=1,Object.defineProperty(ay,"__esModule",{value:!0}),ay.ActorDereferenceRdf=void 0;const t=XC();let e=class extends t.ActorDereferenceParse{constructor(n){super(n)}};return ay.ActorDereferenceRdf=e,ay}var f$;function ODe(){return f$||(f$=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(ADe(),t)}(DR)),DR}var h$;function RDe(){if(h$)return iy;h$=1,Object.defineProperty(iy,"__esModule",{value:!0}),iy.ActorDereferenceRdfParse=void 0;const t=ODe();let e=class extends t.ActorDereferenceRdf{constructor(n){super(n)}async getMetadata(n){return{baseIRI:n.url}}};return iy.ActorDereferenceRdfParse=e,iy}var p$;function xDe(){return p$||(p$=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(RDe(),t)}(NR)),NR}var CR={},sy={},oy={},y$;function IDe(){if(y$)return oy;y$=1,Object.defineProperty(oy,"__esModule",{value:!0}),oy.HtmlScriptListener=void 0;const t=qt,e=Pt,r=ga;let n=class P_{constructor(s,o,u,c,l,d,f,h){this.textChunksJsonLd=[],this.endBarrier=1,this.passedScripts=0,this.isFinalJsonLdProcessing=!1,this.mediatorRdfParseHandle=s,this.cbQuad=o,this.cbError=u,this.cbEnd=c,this.supportedTypes=l,this.context=d.set(t.KeysRdfParseHtmlScript.processingHtmlScript,!0),this.baseIRI=f,this.headers=h,this.onlyFirstScript=d.get(t.KeysRdfParseHtmlScript.extractAllScripts)===!1;const p=this.baseIRI.indexOf("#");this.targetScriptId=p>0?this.baseIRI.slice(p+1,this.baseIRI.length):null}static newErrorCoded(s,o){const u=new Error(s);return u.code=o,u}onEnd(){--this.endBarrier===0&&(this.textChunksJsonLd.length>0?(this.handleMediaType="application/ld+json",this.textChunks=this.textChunksJsonLd,this.textChunks.push("]"),this.textChunksJsonLd=[],this.isFinalJsonLdProcessing=!0,this.endBarrier++,this.onTagClose()):(this.passedScripts===0&&this.targetScriptId&&this.cbError(P_.newErrorCoded(`Failed to find targeted script id "${this.targetScriptId}"`,"loading document failed")),this.cbEnd()),this.isFinalJsonLdProcessing=!1)}onTagClose(){if(this.handleMediaType)if(this.requiresCustomJsonLdHandling(this.handleMediaType)&&!this.isFinalJsonLdProcessing)this.handleMediaType=void 0,this.textChunks=void 0,this.onEnd();else{const s=new e.Readable({objectMode:!0});s._read=()=>{};const o=this.textChunks,u={context:this.context,handle:{metadata:{baseIRI:this.baseIRI},data:s,headers:this.headers,context:this.context},handleMediaType:this.handleMediaType};this.mediatorRdfParseHandle.mediate(u).then(({handle:c})=>{c.data.on("error",l=>this.cbError(P_.newErrorCoded(l.message,"invalid script element"))).on("data",this.cbQuad).on("end",()=>this.onEnd());for(const l of o)s.push(l);s.push(null)}).catch(c=>{this.targetScriptId?this.cbError(P_.newErrorCoded(c.message,"loading document failed")):this.onEnd()}),this.handleMediaType=void 0,this.textChunks=void 0}}onTagOpen(s,o){s==="base"&&o.href&&(this.baseIRI=(0,r.resolve)(o.href,this.baseIRI)),s==="script"&&(!this.targetScriptId||o.id===this.targetScriptId)?this.supportedTypes[o.type]?this.onlyFirstScript&&this.passedScripts>0?this.handleMediaType=void 0:(this.passedScripts++,this.handleMediaType=o.type,this.endBarrier++,this.requiresCustomJsonLdHandling(this.handleMediaType)?(this.textChunks=this.textChunksJsonLd,this.textChunks.push(this.textChunks.length===0?"[":",")):this.textChunks=[]):this.targetScriptId&&this.cbError(P_.newErrorCoded(`Targeted script "${this.targetScriptId}" does not have a supported type`,"loading document failed")):this.handleMediaType=void 0}onText(s){this.handleMediaType&&this.textChunks.push(s)}requiresCustomJsonLdHandling(s){return!this.onlyFirstScript&&!this.targetScriptId&&s==="application/ld+json"}};return oy.HtmlScriptListener=n,oy}var m$;function PDe(){if(m$)return sy;m$=1,Object.defineProperty(sy,"__esModule",{value:!0}),sy.ActorRdfParseHtmlScript=void 0;const t=m4(),e=IDe();let r=class extends t.ActorRdfParseHtml{constructor(a){super(a)}async test(a){return!0}async run(a){const s=(await this.mediatorRdfParseMediatypes.mediate({context:a.context,mediaTypes:!0})).mediaTypes;return{htmlParseListener:new e.HtmlScriptListener(this.mediatorRdfParseHandle,a.emit,a.error,a.end,s,a.context,a.baseIRI,a.headers)}}};return sy.ActorRdfParseHtmlScript=r,sy}var g$;function NDe(){return g$||(g$=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(PDe(),t)}(CR)),CR}var LR={},uy={},_$;function DDe(){if(_$)return uy;_$=1,Object.defineProperty(uy,"__esModule",{value:!0}),uy.ActorQueryResultSerializeRdf=void 0;const t=Ss();let e=class extends t.ActorQueryResultSerialize{constructor(n){super(n)}async testHandle(n,a,s){if(n.type!=="quads")throw new Error(`Actor ${this.name} can only handle quad streams`);const{mediaTypes:o}=await this.mediatorMediaTypeCombiner.mediate({context:s,mediaTypes:!0});if(!(a in o))throw new Error(`Actor ${this.name} can not handle media type ${a}. All available types: ${Object.keys(o)}`);return!0}async runHandle(n,a,s){return(await this.mediatorRdfSerialize.mediate({context:s,handle:{context:s,quadStream:n.quadStream},handleMediaType:a})).handle}async testMediaType(n){return!0}async getMediaTypes(n){return(await this.mediatorMediaTypeCombiner.mediate({context:n,mediaTypes:!0})).mediaTypes}async testMediaTypeFormats(n){return!0}async getMediaTypeFormats(n){return(await this.mediatorMediaTypeFormatCombiner.mediate({context:n,mediaTypeFormats:!0})).mediaTypeFormats}};return uy.ActorQueryResultSerializeRdf=e,uy}var b$;function CDe(){return b$||(b$=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(DDe(),t)}(LR)),LR}var jR={},cy={},v$;function LDe(){if(v$)return cy;v$=1,Object.defineProperty(cy,"__esModule",{value:!0}),cy.ActorHttpWayback=void 0;const t=Lu(),e=qt,r=ml,n="http://wayback.archive-it.org/";function a(u){const c=new Request(u.input,u.init);return{input:new Request(new URL(`/${c.url}`,n),c)}}function s(u){const c=u.get(e.KeysHttpProxy.httpProxyHandler);return c?l=>c.getProxy(a(l)):l=>Promise.resolve(a(l))}let o=class extends t.ActorHttp{constructor(c){super(c)}async test(c){return!0}async run(c){let l=await this.mediatorHttp.mediate(c);if(l.status===404&&c.context.get(e.KeysHttpWayback.recoverBrokenLinks)){let d=await this.mediatorHttp.mediate({...c,context:c.context.set(e.KeysHttpWayback.recoverBrokenLinks,!1).set(e.KeysHttpProxy.httpProxyHandler,{getProxy:s(c.context)})});d.status===200&&([l,d]=[d,l]);const{body:f}=d;f&&("cancel"in f&&typeof f.cancel=="function"?await f.cancel():"destroy"in f&&typeof f.destroy=="function"?f.destroy():await r(t.ActorHttp.toNodeReadable(f)))}return l}};return cy.ActorHttpWayback=o,cy}var w$;function jDe(){return w$||(w$=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(LDe(),t)}(jR)),jR}var MR={},ly={},Iee={},dy={},xT={},fy={},hy={},IT={};Object.defineProperty(IT,"__esModule",{value:!0});IT.ContainerHandlerIdentifier=void 0;class MDe{canCombineWithGraph(){return!0}async handle(e,r,n,a,s,o){let u;if(r.emittedStack[o+1]&&r.idStack[o+1])u=r.idStack[o+1][0];else{const d=await n.getContainerKey(a[o],a,o)!==null?await n.resourceToTerm(await r.getContext(a),a[o]):n.dataFactory.blankNode();if(!d){r.emittedStack[o]=!1;return}u=d,r.idStack[o+1]=[u]}let c=r.idStack[o];c||(c=r.idStack[o]=[]),c.some(l=>l.equals(u))||c.push(u),await r.handlePendingContainerFlushBuffers()||(r.emittedStack[o]=!1)}}IT.ContainerHandlerIdentifier=MDe;var py={},yy={},S$;function PT(){if(S$)return yy;S$=1,Object.defineProperty(yy,"__esModule",{value:!0}),yy.EntryHandlerPredicate=void 0;const t=hn,e=_l();let r=class Pee{static async handlePredicateObject(a,s,o,u,c,l,d,f,h){const p=await s.getPropertiesDepth(o,u),m=await s.getDepthOffsetGraph(u,o),y=u-m,g=a.idStack[p];if(g&&!h)for(const b of g)if(m>=0){const _=a.idStack[y-1];if(_)for(const w of _)s.emitQuadChecked(u,b,c,l,w,d,f);else d?(s.validateReverseSubject(l),a.getUnidentifiedGraphBufferSafe(y-1).push({subject:l,predicate:c,object:b,isEmbedded:f})):a.getUnidentifiedGraphBufferSafe(y-1).push({subject:b,predicate:c,object:l,isEmbedded:f})}else{const _=await s.getGraphContainerValue(o,p);s.emitQuadChecked(u,b,c,l,_,d,f)}else if(d&&s.validateReverseSubject(l),h){if(a.rdfstar){a.idStack[u]&&a.emitError(new t.ErrorCoded(`Found an illegal @id inside an annotation: ${a.idStack[u][0].value}`,t.ERROR_CODES.INVALID_ANNOTATION));for(let _=0;_=0;_--){const w=b[_];w.depth>p&&(v.nestedAnnotations.push(w),b.splice(_,1))}}}else a.getUnidentifiedValueBufferSafe(p).push({predicate:c,object:l,reverse:d,isEmbedded:f})}isPropertyHandler(){return!0}isStackProcessor(){return!0}async validate(a,s,o,u,c){const l=o[u];if(l){const d=await a.getContext(o);if(!a.jsonLiteralStack[u]&&await s.predicateToTerm(d,o[u]))return e.Util.getContextValueType(d,l)==="@json"&&(a.jsonLiteralStack[u+1]=!0),!0}return!1}async test(a,s,o,u,c){return u[c]}async handle(a,s,o,u,c,l,d){const f=u[l],h=await a.getContext(u),p=await s.predicateToTerm(h,o);if(p){const m=await s.valueToTerm(h,o,c,l,u);if(m.length)for(let y of m){let g=await s.unaliasKeywordParent(u,l);const b=e.Util.isPropertyReverse(h,f,g);let v=0;for(;g==="@reverse"||typeof g=="number";)typeof g=="number"?v++:l--,g=await s.unaliasKeywordParent(u,l-v);const _=e.Util.isPropertyInEmbeddedNode(g);s.validateReverseInEmbeddedNode(o,b,_);const w=e.Util.isPropertyInAnnotationObject(g);if(c){const E="@list"in e.Util.getContextValueContainer(h,o);if(E||c["@list"]){if((E&&!Array.isArray(c)&&!c["@list"]||c["@list"]&&!Array.isArray(c["@list"]))&&y!==s.rdfNil){const O=s.dataFactory.blankNode();a.emitQuad(l,s.dataFactory.quad(O,s.rdfRest,s.rdfNil,s.getDefaultGraph())),a.emitQuad(l,s.dataFactory.quad(O,s.rdfFirst,y,s.getDefaultGraph())),y=O}if(b&&!a.allowSubjectList)throw new t.ErrorCoded(`Found illegal list value in subject position at ${o}`,t.ERROR_CODES.INVALID_REVERSE_PROPERTY_VALUE)}}await Pee.handlePredicateObject(a,s,u,l,p,y,b,_,w)}}}};return yy.EntryHandlerPredicate=r,yy}var T$;function FDe(){if(T$)return py;T$=1,Object.defineProperty(py,"__esModule",{value:!0}),py.ContainerHandlerIndex=void 0;const t=hn,e=PT(),r=_l();let n=class{canCombineWithGraph(){return!0}async handle(s,o,u,c,l,d){if(!Array.isArray(l)){const f="@graph"in s,h=await o.getContext(c),p=c[d-1],m=r.Util.getContextValueIndex(h,p);if(m){if(t.Util.isPotentialKeyword(m))throw new t.ErrorCoded(`Keywords can not be used as @index value, got: ${m}`,t.ERROR_CODES.INVALID_TERM_DEFINITION);if(typeof m!="string")throw new t.ErrorCoded(`@index values must be strings, got: ${m}`,t.ERROR_CODES.INVALID_TERM_DEFINITION);if(typeof l!="object"){if(r.Util.getContextValueType(h,p)!=="@id")throw new t.ErrorCoded(`Property-based index containers require nodes as values or strings with @type: @id, but got: ${l}`,t.ERROR_CODES.INVALID_VALUE_OBJECT);const b=u.resourceToTerm(h,l);b&&(o.idStack[d+1]=[b])}const g=u.createVocabOrBaseTerm(h,m);if(g){const b=await u.valueToTerm(h,m,await u.getContainerKey(c[d],c,d),d,c);if(f){const v=await u.getGraphContainerValue(c,d+1);for(const _ of b)o.emitQuad(d,u.dataFactory.quad(v,g,_,u.getDefaultGraph()))}else for(const v of b)await e.EntryHandlerPredicate.handlePredicateObject(o,u,c,d+1,g,v,!1,!1,!1)}}const y=f?2:1;await o.newOnValueJob(c.slice(0,c.length-y),l,d-y,!0),await o.handlePendingContainerFlushBuffers()}o.emittedStack[d]=!1}};return py.ContainerHandlerIndex=n,py}var NT={};Object.defineProperty(NT,"__esModule",{value:!0});NT.ContainerHandlerLanguage=void 0;const E$=hn;class BDe{canCombineWithGraph(){return!1}async handle(e,r,n,a,s,o){const u=await n.getContainerKey(a[o],a,o);if(Array.isArray(s))s=s.map(c=>({"@value":c,"@language":u}));else{if(typeof s!="string")throw new E$.ErrorCoded(`Got invalid language map value, got '${JSON.stringify(s)}', but expected string`,E$.ERROR_CODES.INVALID_LANGUAGE_MAP_VALUE);s={"@value":s,"@language":u}}await r.newOnValueJob(a.slice(0,a.length-1),s,o-1,!0),r.emittedStack[o]=!1}}NT.ContainerHandlerLanguage=BDe;var my={},A$;function qDe(){if(A$)return my;A$=1,Object.defineProperty(my,"__esModule",{value:!0}),my.ContainerHandlerType=void 0;const t=PT(),e=_l();let r=class{canCombineWithGraph(){return!1}async handle(a,s,o,u,c,l){if(!Array.isArray(c)){if(typeof c=="string"){const h=await s.getContext(u),m=e.Util.getContextValueType(h,u[l-1])==="@vocab"?await o.createVocabOrBaseTerm(h,c):await o.resourceToTerm(h,c);if(m){const y={"@id":m.termType==="NamedNode"?m.value:c};await s.newOnValueJob(u.slice(0,u.length-1),y,l-1,!0),s.idStack[l+1]=[m]}}else{const h=!!s.idStack[l+1];h||delete s.idStack[l],await s.newOnValueJob(u.slice(0,u.length-1),c,l-1,!0),h||(s.idStack[l+1]=s.idStack[l])}const d=await o.getContainerKey(u[l],u,l),f=d!==null?o.createVocabOrBaseTerm(await s.getContext(u),d):null;f&&await t.EntryHandlerPredicate.handlePredicateObject(s,o,u,l+1,o.rdfType,f,!1,!1,!1),await s.handlePendingContainerFlushBuffers()}s.emittedStack[l]=!1}};return my.ContainerHandlerType=r,my}var O$;function Nee(){if(O$)return hy;O$=1,Object.defineProperty(hy,"__esModule",{value:!0}),hy.EntryHandlerContainer=void 0;const t=IT,e=FDe(),r=NT,n=qDe(),a=_l();let s=class Vo{static isSimpleGraphContainer(u){return"@graph"in u&&("@set"in u&&Object.keys(u).length===2||Object.keys(u).length===1)}static isComplexGraphContainer(u){return"@graph"in u&&("@set"in u&&Object.keys(u).length>2||!("@set"in u)&&Object.keys(u).length>1)}static getContainerGraphIndex(u,c,l){let d=Vo.isSimpleGraphContainer(u),f="";for(let h=c;h=0;p--)if(typeof c[p]!="number"){const m=a.Util.getContextValue(h,"@container",c[p],!1);if(m&&Vo.isSimpleGraphContainer(m))return{containers:m,depth:p+1,fallback:!1};const y=a.Util.getContextValue(h,"@container",c[p-1],!1);if(y){const g="@graph"in y;for(const b in Vo.CONTAINER_HANDLERS)if(y[b])return g?Vo.CONTAINER_HANDLERS[b].canCombineWithGraph()?{containers:y,depth:p,fallback:!1}:d:f?d:{containers:y,depth:p,fallback:!1};return d}else{if(f)return d;f=!0}}return d}static async isBufferableContainerHandler(u,c,l){const d=await Vo.getContainerHandler(u,c,l);return!d.fallback&&!("@graph"in d.containers)}isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(u,c,l,d,f){return!!await this.test(u,c,null,l,d)}async test(u,c,l,d,f){const h=a.Util.getContextValueContainer(await u.getContext(d,2),d[f-1]);for(const p in Vo.CONTAINER_HANDLERS)if(h[p])return{containers:h,handler:Vo.CONTAINER_HANDLERS[p]};return null}async handle(u,c,l,d,f,h,p){return p.handler.handle(p.containers,u,c,d,f,h)}};return s.CONTAINER_HANDLERS={"@id":new t.ContainerHandlerIdentifier,"@index":new e.ContainerHandlerIndex,"@language":new r.ContainerHandlerLanguage,"@type":new n.ContainerHandlerType},hy.EntryHandlerContainer=s,hy}var $De=function t(e){return e===null||typeof e!="object"||e.toJSON!=null?JSON.stringify(e):Array.isArray(e)?"["+e.reduce((r,n,a)=>{const s=a===0?"":",",o=n===void 0||typeof n=="symbol"?null:n;return r+s+t(o)},"")+"]":"{"+Object.keys(e).sort().reduce((r,n,a)=>{if(e[n]===void 0||typeof e[n]=="symbol")return r;const s=r.length===0?"":",";return r+s+t(n)+":"+t(e[n])},"")+"}"},R$;function _l(){if(R$)return fy;R$=1,Object.defineProperty(fy,"__esModule",{value:!0}),fy.Util=void 0;const t=hn,e=Ot,r=Nee(),n=$De;class a{constructor(o){this.parsingContext=o.parsingContext,this.dataFactory=o.dataFactory||new e.DataFactory,this.rdfFirst=this.dataFactory.namedNode(a.RDF+"first"),this.rdfRest=this.dataFactory.namedNode(a.RDF+"rest"),this.rdfNil=this.dataFactory.namedNode(a.RDF+"nil"),this.rdfType=this.dataFactory.namedNode(a.RDF+"type"),this.rdfJson=this.dataFactory.namedNode(a.RDF+"JSON")}static getContextValue(o,u,c,l){const d=o.getContextRaw()[c];if(!d)return l;const f=d[u];return f===void 0?l:f}static getContextValueContainer(o,u){return a.getContextValue(o,"@container",u,{"@set":!0})}static getContextValueType(o,u){const c=a.getContextValue(o,"@type",u,null);return c==="@none"?null:c}static getContextValueLanguage(o,u){return a.getContextValue(o,"@language",u,o.getContextRaw()["@language"]||null)}static getContextValueDirection(o,u){return a.getContextValue(o,"@direction",u,o.getContextRaw()["@direction"]||null)}static isContextValueReverse(o,u){return!!a.getContextValue(o,"@reverse",u,null)}static getContextValueIndex(o,u){return a.getContextValue(o,"@index",u,o.getContextRaw()["@index"]||null)}static isPropertyReverse(o,u,c){return c==="@reverse"!==a.isContextValueReverse(o,u)}static isPropertyInEmbeddedNode(o){return o==="@id"}static isPropertyInAnnotationObject(o){return o==="@annotation"}static isValidIri(o){return o!==null&&t.Util.isValidIri(o)}static isPrefixArray(o,u){if(o.length>u.length)return!1;for(let c=0;c1)throw new t.ErrorCoded(`Found illegal neighbouring entries next to @set for key: '${u}'`,t.ERROR_CODES.INVALID_SET_OR_LIST_OBJECT);return[]}else if("@list"in c){if(Object.keys(c).length>1)throw new t.ErrorCoded(`Found illegal neighbouring entries next to @list for key: '${u}'`,t.ERROR_CODES.INVALID_SET_OR_LIST_OBJECT);const h=c["@list"];return Array.isArray(h)?h.length===0?[this.rdfNil]:this.parsingContext.idStack[l+1]||[]:await this.valueToTerm(await this.parsingContext.getContext(d),u,h,l-1,d.slice(0,-1))}else{if("@reverse"in c&&typeof c["@reverse"]=="boolean")return[];if("@graph"in a.getContextValueContainer(await this.parsingContext.getContext(d),u)){const h=this.parsingContext.graphContainerTermStack[l+1];return h?Object.values(h):[this.dataFactory.blankNode()]}else if("@id"in c){if(Object.keys(c).length>1&&(o=await this.parsingContext.getContext(d,0)),"@context"in c&&(o=await this.parsingContext.parseContext(c["@context"],o.getContextRaw())),c["@type"]==="@vocab")return this.nullableTermToArray(this.createVocabOrBaseTerm(o,c["@id"]));{const h=c["@id"];let p;if(typeof h=="object")if(this.parsingContext.rdfstar)p=this.parsingContext.idStack[l+1][0];else throw new t.ErrorCoded(`Found illegal @id '${c}'`,t.ERROR_CODES.INVALID_ID_VALUE);else p=this.resourceToTerm(o,h);return this.nullableTermToArray(p)}}else return this.parsingContext.emittedStack[l+1]||c&&typeof c=="object"&&Object.keys(c).length===0?this.parsingContext.idStack[l+1]||(this.parsingContext.idStack[l+1]=[this.dataFactory.blankNode()]):[]}case"string":return this.nullableTermToArray(this.stringValueToTerm(l,await this.getContextSelfOrPropertyScoped(o,u),u,c,null));case"boolean":return this.nullableTermToArray(this.stringValueToTerm(l,await this.getContextSelfOrPropertyScoped(o,u),u,(!!c).toString(),this.dataFactory.namedNode(a.XSD_BOOLEAN)));case"number":return this.nullableTermToArray(this.stringValueToTerm(l,await this.getContextSelfOrPropertyScoped(o,u),u,c,this.dataFactory.namedNode(c%1===0&&c<1e21?a.XSD_INTEGER:a.XSD_DOUBLE)));default:return this.parsingContext.emitError(new Error(`Could not determine the RDF type of a ${f}`)),[]}}async getContextSelfOrPropertyScoped(o,u){const c=o.getContextRaw()[u];return c&&typeof c=="object"&&"@context"in c&&(o=await this.parsingContext.parseContext(c,o.getContextRaw(),!0)),o}nullableTermToArray(o){return o?[o]:[]}predicateToTerm(o,u){const c=o.expandTerm(u,!0,this.parsingContext.getExpandOptions());if(!c)return null;if(c[0]==="_"&&c[1]===":")return this.parsingContext.produceGeneralizedRdf?this.dataFactory.blankNode(c.substr(2)):null;if(a.isValidIri(c))return this.dataFactory.namedNode(c);if(c&&this.parsingContext.strictValues)this.parsingContext.emitError(new t.ErrorCoded(`Invalid predicate IRI: ${c}`,t.ERROR_CODES.INVALID_IRI_MAPPING));else return null;return null}resourceToTerm(o,u){if(u.startsWith("_:"))return this.dataFactory.blankNode(u.substr(2));const c=o.expandTerm(u,!1,this.parsingContext.getExpandOptions());if(!a.isValidIri(c))if(c&&this.parsingContext.strictValues)this.parsingContext.emitError(new Error(`Invalid resource IRI: ${c}`));else return null;return this.dataFactory.namedNode(c)}createVocabOrBaseTerm(o,u){if(u.startsWith("_:"))return this.dataFactory.blankNode(u.substr(2));const c=this.parsingContext.getExpandOptions();let l=o.expandTerm(u,!0,c);if(l===u&&(l=o.expandTerm(u,!1,c)),!a.isValidIri(l))if(l&&this.parsingContext.strictValues&&!l.startsWith("@"))this.parsingContext.emitError(new Error(`Invalid term IRI: ${l}`));else return null;return this.dataFactory.namedNode(l)}intToString(o,u){return typeof o=="number"?Number.isFinite(o)?o%1===0&&(!u||u.value!==a.XSD_DOUBLE)?Number(o).toString():o.toExponential(15).replace(/(\d)0*e\+?/,"$1E"):o>0?"INF":"-INF":o}stringValueToTerm(o,u,c,l,d){const f=a.getContextValueType(u,c);if(f)if(f==="@id"){if(!d)return this.resourceToTerm(u,this.intToString(l,d))}else if(f==="@vocab"){if(!d)return this.createVocabOrBaseTerm(u,this.intToString(l,d))}else d=this.dataFactory.namedNode(f);if(!d){const h=a.getContextValueLanguage(u,c),p=a.getContextValueDirection(u,c);return p&&this.parsingContext.rdfDirection?this.createLanguageDirectionLiteral(o,this.intToString(l,d),h,p):this.dataFactory.literal(this.intToString(l,d),h)}return this.dataFactory.literal(this.intToString(l,d),d)}createLanguageDirectionLiteral(o,u,c,l){if(this.parsingContext.rdfDirection==="i18n-datatype")return c||(c=""),this.dataFactory.literal(u,this.dataFactory.namedNode(`https://www.w3.org/ns/i18n#${c}_${l}`));{const d=this.dataFactory.blankNode(),f=this.getDefaultGraph();return this.parsingContext.emitQuad(o,this.dataFactory.quad(d,this.dataFactory.namedNode(a.RDF+"value"),this.dataFactory.literal(u),f)),c&&this.parsingContext.emitQuad(o,this.dataFactory.quad(d,this.dataFactory.namedNode(a.RDF+"language"),this.dataFactory.literal(c),f)),this.parsingContext.emitQuad(o,this.dataFactory.quad(d,this.dataFactory.namedNode(a.RDF+"direction"),this.dataFactory.literal(l),f)),d}}valueToJsonString(o){return n(o)}async unaliasKeyword(o,u,c,l,d){if(Number.isInteger(o))return o;if(!l){const f=this.parsingContext.unaliasedKeywordCacheStack[c];if(f)return f}if(!t.Util.isPotentialKeyword(o)){d=d||await this.parsingContext.getContext(u);let f=d.getContextRaw()[o];f&&typeof f=="object"&&(f=f["@id"]),t.Util.isValidKeyword(f)&&(o=f)}return l?o:this.parsingContext.unaliasedKeywordCacheStack[c]=o}async unaliasKeywordParent(o,u){return await this.unaliasKeyword(u>0&&o[u-1],o,u-1)}async unaliasKeywords(o,u,c,l){const d={};for(const f in o)d[await this.unaliasKeyword(f,u,c+1,!0,l)]=o[f];return d}async isLiteral(o,u){for(let c=u;c>=0;c--){if(await this.unaliasKeyword(o[c],o,c)==="@annotation")return!1;if(this.parsingContext.literalStack[c]||this.parsingContext.jsonLiteralStack[c])return!0}return!1}async getDepthOffsetGraph(o,u){for(let c=o-1;c>0;c--)if(await this.unaliasKeyword(u[c],u,c)==="@graph"){const l=(await r.EntryHandlerContainer.getContainerHandler(this.parsingContext,u,c)).containers;return r.EntryHandlerContainer.isComplexGraphContainer(l)?-1:o-c-1}return-1}validateReverseSubject(o){if(o.termType==="Literal")throw new t.ErrorCoded(`Found illegal literal in subject position: ${o.value}`,t.ERROR_CODES.INVALID_REVERSE_PROPERTY_VALUE)}getDefaultGraph(){return this.parsingContext.defaultGraph||this.dataFactory.defaultGraph()}async getGraphContainerValue(o,u){let c=this.getDefaultGraph();const{containers:l,depth:d}=await r.EntryHandlerContainer.getContainerHandler(this.parsingContext,o,u);if("@graph"in l){const f=r.EntryHandlerContainer.getContainerGraphIndex(l,d,o),h=this.parsingContext.graphContainerTermStack[d];if(c=h?h[f]:null,!c){let p=null;if("@id"in l){const m=await this.getContainerKey(o[d],o,d);m!==null&&(p=await this.resourceToTerm(await this.parsingContext.getContext(o),m))}p||(p=this.dataFactory.blankNode()),this.parsingContext.graphContainerTermStack[d]||(this.parsingContext.graphContainerTermStack[d]={}),c=this.parsingContext.graphContainerTermStack[d][f]=p}}return c}async getPropertiesDepth(o,u){let c=u;for(let l=u-1;l>0;l--)if(typeof o[l]!="number"){const d=await this.unaliasKeyword(o[l],o,l);if(d==="@reverse")return l;if(d==="@nest")c=l;else return c}return c}async getContainerKey(o,u,c){const l=await this.unaliasKeyword(o,u,c);return l==="@none"?null:l}validateReverseInEmbeddedNode(o,u,c){if(c&&u&&!this.parsingContext.rdfstarReverseInEmbedded)throw new t.ErrorCoded(`Illegal reverse property in embedded node in ${o}`,t.ERROR_CODES.INVALID_EMBEDDED_NODE)}emitQuadChecked(o,u,c,l,d,f,h){let p;if(f?(this.validateReverseSubject(l),p=this.dataFactory.quad(l,c,u,d)):p=this.dataFactory.quad(u,c,l,d),h){if(p.graph.termType!=="DefaultGraph"&&(p=this.dataFactory.quad(p.subject,p.predicate,p.object)),this.parsingContext.idStack[o-1])throw new t.ErrorCoded("Illegal multiple properties in an embedded node",t.ERROR_CODES.INVALID_EMBEDDED_NODE);this.parsingContext.idStack[o-1]=[p]}else this.parsingContext.emitQuad(o,p);const m=this.parsingContext.annotationsBuffer[o];if(m){for(const y of m)this.emitAnnotation(o,p,y);delete this.parsingContext.annotationsBuffer[o]}}emitAnnotation(o,u,c){let l;c.reverse?(this.validateReverseSubject(c.object),l=this.dataFactory.quad(c.object,c.predicate,u)):l=this.dataFactory.quad(u,c.predicate,c.object),this.parsingContext.emitQuad(o,l);for(const d of c.nestedAnnotations)this.emitAnnotation(o,l,d)}}return a.XSD="http://www.w3.org/2001/XMLSchema#",a.XSD_BOOLEAN=a.XSD+"boolean",a.XSD_INTEGER=a.XSD+"integer",a.XSD_DOUBLE=a.XSD+"double",a.RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#",fy.Util=a,fy}Object.defineProperty(xT,"__esModule",{value:!0});xT.EntryHandlerArrayValue=void 0;const UDe=_l(),x$=hn;class kDe{isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(e,r,n,a,s){return this.test(e,r,null,n,a)}async test(e,r,n,a,s){return typeof a[s]=="number"}async handle(e,r,n,a,s,o){let u=await r.unaliasKeywordParent(a,o);if(u==="@list"){let c=null,l=0;for(let d=o-2;d>0;d--){const f=a[d];if(typeof f=="string"||typeof f=="number"){l=d,c=f;break}}if(c!==null){const d=await r.valueToTerm(await e.getContext(a),c,s,o,a);for(const f of d)await this.handleListElement(e,r,f,s,o,a.slice(0,l),l);d.length===0&&await this.handleListElement(e,r,null,s,o,a.slice(0,l),l)}}else if(u==="@set")await e.newOnValueJob(a.slice(0,-2),s,o-2,!1);else if(u!==void 0&&u!=="@type"){for(let l=o-1;l>0;l--)if(typeof a[l]!="number"){u=await r.unaliasKeyword(a[l],a,l);break}const c=await e.getContext(a.slice(0,-1));if("@list"in UDe.Util.getContextValueContainer(c,u)){e.emittedStack[o+1]=!0;const l=await r.valueToTerm(await e.getContext(a),u,s,o,a);for(const d of l)await this.handleListElement(e,r,d,s,o,a.slice(0,-1),o-1);l.length===0&&await this.handleListElement(e,r,null,s,o,a.slice(0,-1),o-1)}else e.shiftStack(o,1),await e.newOnValueJob(a.slice(0,-1),s,o-1,!1),e.contextTree.removeContext(a.slice(0,-1))}}async handleListElement(e,r,n,a,s,o,u){let c=e.listPointerStack[s];if(a!==null&&(await r.unaliasKeywords(a,o,s))["@value"]!==null){if(!c||!c.value){const l=r.dataFactory.blankNode();c={value:l,listRootDepth:u,listId:l}}else{const l=r.dataFactory.blankNode();e.emitQuad(s,r.dataFactory.quad(c.value,r.rdfRest,l,r.getDefaultGraph())),c.value=l}n&&e.emitQuad(s,r.dataFactory.quad(c.value,r.rdfFirst,n,r.getDefaultGraph()))}else c||(c={listRootDepth:u,listId:r.rdfNil});e.listPointerStack[s]=c,e.rdfstar&&e.annotationsBuffer[s]&&e.emitError(new x$.ErrorCoded("Found an illegal annotation inside a list",x$.ERROR_CODES.INVALID_ANNOTATION))}}xT.EntryHandlerArrayValue=kDe;var DT={};Object.defineProperty(DT,"__esModule",{value:!0});DT.EntryHandlerInvalidFallback=void 0;class VDe{isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(e,r,n,a,s){return!1}async test(e,r,n,a,s){return!0}async handle(e,r,n,a,s,o){e.emittedStack[o]=!1}}DT.EntryHandlerInvalidFallback=VDe;var CT={},ka={};Object.defineProperty(ka,"__esModule",{value:!0});ka.EntryHandlerKeyword=void 0;class HDe{constructor(e){this.keyword=e}isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(e,r,n,a,s){return!1}async test(e,r,n,a,s){return n===this.keyword}}ka.EntryHandlerKeyword=HDe;Object.defineProperty(CT,"__esModule",{value:!0});CT.EntryHandlerKeywordContext=void 0;const I$=hn,QDe=ka;class zDe extends QDe.EntryHandlerKeyword{constructor(){super("@context")}isStackProcessor(){return!1}async handle(e,r,n,a,s,o){e.streamingProfile&&(e.processingStack[o]||e.processingType[o]||e.idStack[o]!==void 0)&&e.emitError(new I$.ErrorCoded("Found an out-of-order context, while streaming is enabled.(disable `streamingProfile`)",I$.ERROR_CODES.INVALID_STREAMING_KEY_ORDER));const u=e.getContext(a),c=e.parseContext(s,(await u).getContextRaw());e.contextTree.setContext(a.slice(0,-1),c),e.emitContext(s),await e.validateContext(await c)}}CT.EntryHandlerKeywordContext=zDe;var LT={};Object.defineProperty(LT,"__esModule",{value:!0});LT.EntryHandlerKeywordGraph=void 0;const GDe=ka;class WDe extends GDe.EntryHandlerKeyword{constructor(){super("@graph")}async handle(e,r,n,a,s,o){e.graphStack[o+1]=!0}}LT.EntryHandlerKeywordGraph=WDe;var jT={};Object.defineProperty(jT,"__esModule",{value:!0});jT.EntryHandlerKeywordId=void 0;const Ka=hn,KDe=ka;class JDe extends KDe.EntryHandlerKeyword{constructor(){super("@id")}isStackProcessor(){return!1}async handle(e,r,n,a,s,o){if(typeof s!="string"){if(e.rdfstar&&typeof s=="object"){const c=Object.keys(s);c.length===1&&c[0]==="@id"&&e.emitError(new Ka.ErrorCoded(`Invalid embedded node without property with @id ${s["@id"]}`,Ka.ERROR_CODES.INVALID_EMBEDDED_NODE))}else e.emitError(new Ka.ErrorCoded(`Found illegal @id '${s}'`,Ka.ERROR_CODES.INVALID_ID_VALUE));return}const u=await r.getPropertiesDepth(a,o);if(e.idStack[u]!==void 0&&(e.idStack[u][0].listHead?e.emitError(new Ka.ErrorCoded(`Found illegal neighbouring entries next to @list for key: '${a[o-1]}'`,Ka.ERROR_CODES.INVALID_SET_OR_LIST_OBJECT)):e.emitError(new Ka.ErrorCoded(`Found duplicate @ids '${e.idStack[u][0].value}' and '${s}'`,Ka.ERROR_CODES.COLLIDING_KEYWORDS))),e.rdfstar&&e.annotationsBuffer[o])for(const c of e.annotationsBuffer[o])c.depth===o&&e.emitError(new Ka.ErrorCoded(`Found an illegal @id inside an annotation: ${s}`,Ka.ERROR_CODES.INVALID_ANNOTATION));e.idStack[u]=r.nullableTermToArray(await r.resourceToTerm(await e.getContext(a),s))}}jT.EntryHandlerKeywordId=JDe;var MT={};Object.defineProperty(MT,"__esModule",{value:!0});MT.EntryHandlerKeywordIncluded=void 0;const Ul=hn,XDe=ka;class YDe extends XDe.EntryHandlerKeyword{constructor(){super("@included")}async handle(e,r,n,a,s,o){typeof s!="object"&&e.emitError(new Ul.ErrorCoded(`Found illegal @included '${s}'`,Ul.ERROR_CODES.INVALID_INCLUDED_VALUE));const u=await r.unaliasKeywords(s,a,o,await e.getContext(a));"@value"in u&&e.emitError(new Ul.ErrorCoded(`Found an illegal @included @value node '${JSON.stringify(s)}'`,Ul.ERROR_CODES.INVALID_INCLUDED_VALUE)),"@list"in u&&e.emitError(new Ul.ErrorCoded(`Found an illegal @included @list node '${JSON.stringify(s)}'`,Ul.ERROR_CODES.INVALID_INCLUDED_VALUE)),e.emittedStack[o]=!1}}MT.EntryHandlerKeywordIncluded=YDe;var FT={};Object.defineProperty(FT,"__esModule",{value:!0});FT.EntryHandlerKeywordNest=void 0;const lw=hn,ZDe=ka;class eCe extends ZDe.EntryHandlerKeyword{constructor(){super("@nest")}async handle(e,r,n,a,s,o){typeof s!="object"&&e.emitError(new lw.ErrorCoded(`Found invalid @nest entry for '${n}': '${s}'`,lw.ERROR_CODES.INVALID_NEST_VALUE)),"@value"in await r.unaliasKeywords(s,a,o,await e.getContext(a))&&e.emitError(new lw.ErrorCoded(`Found an invalid @value node for '${n}'`,lw.ERROR_CODES.INVALID_NEST_VALUE)),e.emittedStack[o]=!1}}FT.EntryHandlerKeywordNest=eCe;var BT={};Object.defineProperty(BT,"__esModule",{value:!0});BT.EntryHandlerKeywordType=void 0;const gy=hn,dw=_l(),tCe=PT(),rCe=ka;class nCe extends rCe.EntryHandlerKeyword{constructor(){super("@type")}isStackProcessor(){return!1}async handle(e,r,n,a,s,o){const u=a[o],c=await e.getContext(a),l=r.rdfType,d=await r.unaliasKeywordParent(a,o),f=dw.Util.isPropertyReverse(c,u,d),h=dw.Util.isPropertyInEmbeddedNode(d);r.validateReverseInEmbeddedNode(n,f,h);const p=dw.Util.isPropertyInAnnotationObject(d),m=Array.isArray(s)?s:[s];for(const b of m){typeof b!="string"&&e.emitError(new gy.ErrorCoded(`Found illegal @type '${b}'`,gy.ERROR_CODES.INVALID_TYPE_VALUE));const v=r.createVocabOrBaseTerm(c,b);v&&await tCe.EntryHandlerPredicate.handlePredicateObject(e,r,a,o,l,v,f,h,p)}let y=Promise.resolve(c),g=!1;for(const b of m.sort()){const v=dw.Util.getContextValue(c,"@context",b,null);v&&(g=!0,y=y.then(_=>e.parseContext(v,_.getContextRaw())))}e.streamingProfile&&(g||!e.streamingProfileAllowOutOfOrderPlainType)&&(e.processingStack[o]||e.idStack[o])&&e.emitError(new gy.ErrorCoded("Found an out-of-order type-scoped context, while streaming is enabled.(disable `streamingProfile`)",gy.ERROR_CODES.INVALID_STREAMING_KEY_ORDER)),g&&(y=y.then(b=>b.getContextRaw()["@propagate"]!==!0?new gy.JsonLdContextNormalized(Object.assign(Object.assign({},b.getContextRaw()),{"@propagate":!1,"@__propagateFallback":c.getContextRaw()})):b),e.contextTree.setContext(a.slice(0,a.length-1),y)),e.processingType[o]=!0}}BT.EntryHandlerKeywordType=nCe;var qT={};Object.defineProperty(qT,"__esModule",{value:!0});qT.EntryHandlerKeywordUnknownFallback=void 0;const Y_=hn;class $T{isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(e,r,n,a,s){const o=await r.unaliasKeyword(n[a],n,a);return Y_.Util.isPotentialKeyword(o)?!(!s&&o==="@list"):!1}async test(e,r,n,a,s){return Y_.Util.isPotentialKeyword(n)}async handle(e,r,n,a,s,o){const u=$T.VALID_KEYWORDS_TYPES[n];u!==void 0?u&&typeof s!==u.type&&e.emitError(new Y_.ErrorCoded(`Invalid value type for '${n}' with value '${s}'`,u.errorCode)):e.strictValues&&e.emitError(new Error(`Unknown keyword '${n}' with value '${s}'`)),e.emittedStack[o]=!1}}$T.VALID_KEYWORDS_TYPES={"@index":{type:"string",errorCode:Y_.ERROR_CODES.INVALID_INDEX_VALUE},"@list":null,"@reverse":{type:"object",errorCode:Y_.ERROR_CODES.INVALID_REVERSE_VALUE},"@set":null,"@value":null};qT.EntryHandlerKeywordUnknownFallback=$T;var UT={};Object.defineProperty(UT,"__esModule",{value:!0});UT.EntryHandlerKeywordValue=void 0;const iCe=ka;class aCe extends iCe.EntryHandlerKeyword{constructor(){super("@value")}async validate(e,r,n,a,s){const o=n[a];return o&&!e.literalStack[a]&&await this.test(e,r,o,n,a)&&(e.literalStack[a]=!0),super.validate(e,r,n,a,s)}async test(e,r,n,a,s){return await r.unaliasKeyword(a[s],a.slice(0,a.length-1),s-1,!0)==="@value"}async handle(e,r,n,a,s,o){e.literalStack[o]=!0,delete e.unidentifiedValuesBuffer[o],delete e.unidentifiedGraphsBuffer[o],e.emittedStack[o]=!1}}UT.EntryHandlerKeywordValue=aCe;var _y={},kT={};Object.defineProperty(kT,"__esModule",{value:!0});kT.ContextTree=void 0;class v4{constructor(){this.subTrees={}}getContext(e){if(e.length>0){const[r,...n]=e,a=this.subTrees[r];if(a){const s=a.getContext(n);if(s)return s.then(({context:o,depth:u})=>({context:o,depth:u+1}))}}return this.context?this.context.then(r=>({context:r,depth:0})):null}setContext(e,r){if(e.length===0)this.context=r;else{const[n,...a]=e;let s=this.subTrees[n];s||(s=this.subTrees[n]=new v4),s.setContext(a,r)}}removeContext(e){this.setContext(e,null)}}kT.ContextTree=v4;var P$;function sCe(){if(P$)return _y;P$=1,Object.defineProperty(_y,"__esModule",{value:!0}),_y.ParsingContext=void 0;const t=hn,e=Cf,r=kT,n=Cee();let a=class Dee{constructor(o){this.contextParser=new t.ContextParser({documentLoader:o.documentLoader,skipValidation:o.skipContextValidation}),this.streamingProfile=!!o.streamingProfile,this.baseIRI=o.baseIRI,this.produceGeneralizedRdf=!!o.produceGeneralizedRdf,this.allowSubjectList=!!o.allowSubjectList,this.processingMode=o.processingMode||n.JsonLdParser.DEFAULT_PROCESSING_MODE,this.strictValues=!!o.strictValues,this.validateValueIndexes=!!o.validateValueIndexes,this.defaultGraph=o.defaultGraph,this.rdfDirection=o.rdfDirection,this.normalizeLanguageTags=o.normalizeLanguageTags,this.streamingProfileAllowOutOfOrderPlainType=o.streamingProfileAllowOutOfOrderPlainType,this.rdfstar=o.rdfstar!==!1,this.rdfstarReverseInEmbedded=o.rdfstarReverseInEmbedded,this.topLevelProperties=!1,this.activeProcessingMode=parseFloat(this.processingMode),this.processingStack=[],this.processingType=[],this.emittedStack=[],this.idStack=[],this.graphStack=[],this.graphContainerTermStack=[],this.listPointerStack=[],this.contextTree=new r.ContextTree,this.literalStack=[],this.validationStack=[],this.unaliasedKeywordCacheStack=[],this.jsonLiteralStack=[],this.unidentifiedValuesBuffer=[],this.unidentifiedGraphsBuffer=[],this.annotationsBuffer=[],this.pendingContainerFlushBuffers=[],this.parser=o.parser,o.context?(this.rootContext=this.parseContext(o.context),this.rootContext.then(u=>this.validateContext(u))):this.rootContext=Promise.resolve(new t.JsonLdContextNormalized(this.baseIRI?{"@base":this.baseIRI,"@__baseDocument":!0}:{}))}async parseContext(o,u,c){return this.contextParser.parse(o,{baseIRI:this.baseIRI,ignoreProtection:c,normalizeLanguageTags:this.normalizeLanguageTags,parentContext:u,processingMode:this.activeProcessingMode})}validateContext(o){const u=o.getContextRaw()["@version"];if(u){if(this.activeProcessingMode&&u>this.activeProcessingMode)throw new e.ErrorCoded(`Unsupported JSON-LD version '${u}' under active processing mode ${this.activeProcessingMode}.`,e.ERROR_CODES.PROCESSING_MODE_CONFLICT);if(this.activeProcessingMode&&u0&&c.context.getContextRaw()["@propagate"]===!1&&c.depth!==u&&!l);return c.depth===0&&c.context.getContextRaw()["@propagate"]===!1&&c.depth!==u&&(c.context=new t.JsonLdContextNormalized({})),c}async newOnValueJob(o,u,c,l){await this.parser.newOnValueJob(o,u,c,l)}async handlePendingContainerFlushBuffers(){if(this.pendingContainerFlushBuffers.length>0){for(const o of this.pendingContainerFlushBuffers)await this.parser.flushBuffer(o.depth,o.keys),this.parser.flushStacks(o.depth);return this.pendingContainerFlushBuffers.splice(0,this.pendingContainerFlushBuffers.length),!0}else return!1}emitQuad(o,u){o===1&&(this.topLevelProperties=!0),this.parser.push(u)}emitError(o){this.parser.emit("error",o)}emitContext(o){this.parser.emit("context",o)}getUnidentifiedValueBufferSafe(o){let u=this.unidentifiedValuesBuffer[o];return u||(u=[],this.unidentifiedValuesBuffer[o]=u),u}getUnidentifiedGraphBufferSafe(o){let u=this.unidentifiedGraphsBuffer[o];return u||(u=[],this.unidentifiedGraphsBuffer[o]=u),u}getAnnotationsBufferSafe(o){let u=this.annotationsBuffer[o];return u||(u=[],this.annotationsBuffer[o]=u),u}getExpandOptions(){return Dee.EXPAND_OPTIONS[this.activeProcessingMode]}shiftStack(o,u){const c=this.idStack[o+u];if(c&&(this.idStack[o]=c,this.emittedStack[o]=!0,delete this.idStack[o+u]),this.pendingContainerFlushBuffers.length)for(const l of this.pendingContainerFlushBuffers)l.depth>=o+u&&(l.depth-=u,l.keys.splice(o,u));this.unidentifiedValuesBuffer[o+u]&&(this.unidentifiedValuesBuffer[o]=this.unidentifiedValuesBuffer[o+u],delete this.unidentifiedValuesBuffer[o+u]),this.annotationsBuffer[o+u-1]&&(this.annotationsBuffer[o-1]||(this.annotationsBuffer[o-1]=[]),this.annotationsBuffer[o-1]=[...this.annotationsBuffer[o-1],...this.annotationsBuffer[o+u-1]],delete this.annotationsBuffer[o+u-1])}};return a.EXPAND_OPTIONS={1:{allowPrefixForcing:!1,allowPrefixNonGenDelims:!1,allowVocabRelativeToBase:!1},1.1:{allowPrefixForcing:!0,allowPrefixNonGenDelims:!1,allowVocabRelativeToBase:!0}},_y.ParsingContext=a,_y}var VT={};Object.defineProperty(VT,"__esModule",{value:!0});VT.EntryHandlerKeywordAnnotation=void 0;const oCe=ka,N$=hn;class uCe extends oCe.EntryHandlerKeyword{constructor(){super("@annotation")}async handle(e,r,n,a,s,o){(typeof s=="string"||typeof s=="object"&&s["@value"])&&e.emitError(new N$.ErrorCoded(`Found illegal annotation value: ${JSON.stringify(s)}`,N$.ERROR_CODES.INVALID_ANNOTATION))}}VT.EntryHandlerKeywordAnnotation=uCe;var D$;function Cee(){if(D$)return dy;D$=1,Object.defineProperty(dy,"__esModule",{value:!0}),dy.JsonLdParser=void 0;const t=fZ,e=hn,r=Pt,n=xT,a=Nee(),s=DT,o=PT(),u=CT,c=LT,l=jT,d=MT,f=FT,h=BT,p=qT,m=UT,y=sCe(),g=_l(),b=JY,v=VT;let _=class Yl extends r.Transform{constructor(E){super({readableObjectMode:!0}),E=E||{},this.options=E,this.parsingContext=new y.ParsingContext(Object.assign({parser:this},E)),this.util=new g.Util({dataFactory:E.dataFactory,parsingContext:this.parsingContext}),this.jsonParser=new t,this.contextJobs=[],this.typeJobs=[],this.contextAwaitingJobs=[],this.lastDepth=0,this.lastKeys=[],this.lastOnValueJob=Promise.resolve(),this.attachJsonParserListeners(),this.on("end",()=>{typeof this.jsonParser.mode<"u"&&this.emit("error",new Error("Unclosed document"))})}static fromHttpResponse(E,O,L,F){let x,P=["application/activity+json"];if(F&&F.wellKnownMediaTypes&&(P=F.wellKnownMediaTypes),O!=="application/ld+json"&&!P.includes(O)){if(O!=="application/json"&&!O.endsWith("+json"))throw new e.ErrorCoded(`Unsupported JSON-LD media type ${O}`,e.ERROR_CODES.LOADING_DOCUMENT_FAILED);if(L&&L.has("Link")&&L.forEach((N,V)=>{if(V==="link"){const $=(0,b.parse)(N);for(const q of $.get("rel","http://www.w3.org/ns/json-ld#context")){if(x)throw new e.ErrorCoded("Multiple JSON-LD context link headers were found on "+E,e.ERROR_CODES.MULTIPLE_CONTEXT_LINK_HEADERS);x=q.uri}}}),!x&&!(F!=null&&F.ignoreMissingContextLinkHeader))throw new e.ErrorCoded(`Missing context link header for media type ${O} on ${E}`,e.ERROR_CODES.LOADING_DOCUMENT_FAILED)}let j;if(L&&L.has("Content-Type")){const N=L.get("Content-Type"),V=/; *profile=([^"]*)/.exec(N);V&&V[1]==="http://www.w3.org/ns/json-ld#streaming"&&(j=!0)}return new Yl(Object.assign({baseIRI:E,context:x,streamingProfile:j},F||{}))}import(E){if("pipe"in E){E.on("error",L=>O.emit("error",L));const O=E.pipe(new Yl(this.options));return O}else{const O=new r.PassThrough({readableObjectMode:!0});E.on("error",F=>L.emit("error",F)),E.on("data",F=>O.push(F)),E.on("end",()=>O.push(null));const L=O.pipe(new Yl(this.options));return L}}_transform(E,O,L){this.jsonParser.write(E),this.lastOnValueJob.then(()=>L(),F=>L(F))}async newOnValueJob(E,O,L,F){let x=!0;if(F&&L1&&(V=this.parsingContext.validationStack[this.parsingContext.validationStack.length-1].property);for(let $=Math.max(1,this.parsingContext.validationStack.length-1);$=0?this.parsingContext.idStack[E-V-1]:[await this.util.getGraphContainerValue(O,E)];if($)for(const q of $){this.parsingContext.emittedStack[E]=!0;for(const H of x)this.util.emitQuadChecked(E,N,H.predicate,H.object,q,H.reverse,H.isEmbedded)}else{const q=this.parsingContext.getUnidentifiedGraphBufferSafe(E-await this.util.getDepthOffsetGraph(E,O)-1);for(const H of x)H.reverse?q.push({object:N,predicate:H.predicate,subject:H.object,isEmbedded:H.isEmbedded}):q.push({object:H.object,predicate:H.predicate,subject:N,isEmbedded:H.isEmbedded})}}this.parsingContext.unidentifiedValuesBuffer.splice(E,1),this.parsingContext.literalStack.splice(E,1),this.parsingContext.jsonLiteralStack.splice(E,1)}const P=this.parsingContext.unidentifiedGraphsBuffer[E];if(P){for(const N of L){const V=E===1&&N.termType==="BlankNode"&&!this.parsingContext.topLevelProperties?this.util.getDefaultGraph():N;this.parsingContext.emittedStack[E]=!0;for(const $ of P)this.parsingContext.emitQuad(E,this.util.dataFactory.quad($.subject,$.predicate,$.object,V))}this.parsingContext.unidentifiedGraphsBuffer.splice(E,1)}const j=this.parsingContext.annotationsBuffer[E];if(j){j.length>0&&E===1&&this.parsingContext.emitError(new e.ErrorCoded("Annotations can not be made on top-level nodes",e.ERROR_CODES.INVALID_ANNOTATION));const N=this.parsingContext.getAnnotationsBufferSafe(E-1);for(const V of j)N.push(V);delete this.parsingContext.annotationsBuffer[E]}}async validateKey(E,O,L){for(const F of Yl.ENTRY_HANDLERS)if(await F.validate(this.parsingContext,this.util,E,O,L))return{valid:!0,property:L||F.isPropertyHandler()};return{valid:!1,property:!1}}attachJsonParserListeners(){this.jsonParser.onValue=E=>{const O=this.jsonParser.stack.length,L=new Array(O+1).fill(0).map((F,x)=>x===O?this.jsonParser.key:this.jsonParser.stack[x].key);if(!this.isParsingContextInner(O)){const F=()=>this.newOnValueJob(L,E,O,!0);if(!this.parsingContext.streamingProfile&&!this.parsingContext.contextTree.getContext(L.slice(0,-1)))if(L[O]==="@context"){let x=this.contextJobs[O];x||(x=this.contextJobs[O]=[]),x.push(F)}else this.contextAwaitingJobs.push({job:F,keys:L,depth:O});else this.lastOnValueJob=this.lastOnValueJob.then(F);!this.parsingContext.streamingProfile&&O===0&&(this.lastOnValueJob=this.lastOnValueJob.then(()=>this.executeBufferedJobs()))}},this.jsonParser.onError=E=>{this.emit("error",E)}}isParsingContextInner(E){for(let O=E;O>0;O--)if(this.jsonParser.stack[O-1].key==="@context")return!0;return!1}async executeBufferedJobs(){for(const O of this.contextJobs)if(O)for(const L of O)await L();this.parsingContext.unaliasedKeywordCacheStack.splice(0);const E=[];for(const O of this.contextAwaitingJobs)await this.util.unaliasKeyword(O.keys[O.depth],O.keys,O.depth,!0)==="@type"||typeof O.keys[O.depth]=="number"&&await this.util.unaliasKeyword(O.keys[O.depth-1],O.keys,O.depth-1,!0)==="@type"?this.typeJobs.push({job:O.job,keys:O.keys.slice(0,O.keys.length-1)}):E.push(O);for(const O of E){if(this.typeJobs.length>0){const L=[],F=[];for(let j=0;jj.keys.length-N.keys.length);for(const j of x)await j.job();const P=F.sort().reverse();for(const j of P)this.typeJobs.splice(j,1)}await O.job()}}};return _.DEFAULT_PROCESSING_MODE="1.1",_.ENTRY_HANDLERS=[new n.EntryHandlerArrayValue,new u.EntryHandlerKeywordContext,new l.EntryHandlerKeywordId,new d.EntryHandlerKeywordIncluded,new c.EntryHandlerKeywordGraph,new f.EntryHandlerKeywordNest,new h.EntryHandlerKeywordType,new m.EntryHandlerKeywordValue,new v.EntryHandlerKeywordAnnotation,new a.EntryHandlerContainer,new p.EntryHandlerKeywordUnknownFallback,new o.EntryHandlerPredicate,new s.EntryHandlerInvalidFallback],dy.JsonLdParser=_,dy}(function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Cee(),t)})(Iee);var by={},C$;function jee(){if(C$)return by;C$=1,Object.defineProperty(by,"__esModule",{value:!0}),by.DocumentLoaderMediated=void 0;const t=Lu(),e=hn,r=ml;let n=class Lee extends e.FetchDocumentLoader{constructor(s,o){super(Lee.createFetcher(s,o)),this.mediatorHttp=s,this.context=o}static createFetcher(s,o){return async(u,c)=>{const l=await s.mediate({input:u,init:c,context:o});return l.json=async()=>JSON.parse(await r(t.ActorHttp.toNodeReadable(l.body))),l}}};return by.DocumentLoaderMediated=n,by}var L$;function cCe(){if(L$)return ly;L$=1,Object.defineProperty(ly,"__esModule",{value:!0}),ly.ActorRdfParseJsonLd=void 0;const t=Mf(),e=qt,r=Iee,n=jee();let a=class extends t.ActorRdfParseFixedMediaTypes{constructor(o){super(o)}async testHandle(o,u,c){if(c.has(e.KeysRdfParseHtmlScript.processingHtmlScript)&&u!=="application/ld+json")throw new Error("JSON-LD in script tags can only have media type 'application/ld+json'");if(!u||!(u in this.mediaTypePriorities||u.endsWith("+json")))throw new Error(`Unrecognized media type: ${u}`);return await this.testHandleChecked(o)}async runHandle(o,u,c){var f;return{data:r.JsonLdParser.fromHttpResponse(((f=o.metadata)==null?void 0:f.baseIRI)??"",u,o.headers,{documentLoader:c.get(e.KeysRdfParseJsonLd.documentLoader)??new n.DocumentLoaderMediated(this.mediatorHttp,c),strictValues:c.get(e.KeysRdfParseJsonLd.strictValues),...c.get(e.KeysRdfParseJsonLd.parserOptions)}).import(o.data)}}};return ly.ActorRdfParseJsonLd=a,ly}var j$;function lCe(){return j$||(j$=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(cCe(),t),r(jee(),t)}(MR)),MR}var FR={},vy={},BR={},wy={},M$;function dCe(){if(M$)return wy;M$=1,Object.defineProperty(wy,"__esModule",{value:!0}),wy.ActorRdfUpdateHypermedia=void 0;const t=st;let e=class extends t.Actor{constructor(n,a){super(n),this.destinationType=a}async test(n){if(n.forceDestinationType&&this.destinationType!==n.forceDestinationType)throw new Error(`Actor ${this.name} is not able to handle destination type ${n.forceDestinationType}.`);return this.testMetadata(n)}};return wy.ActorRdfUpdateHypermedia=e,wy}var F$;function w4(){return F$||(F$=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(dCe(),t)}(BR)),BR}var Sy={},tN={exports:{}};(function(t,e){var r=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof I<"u"&&I,n=function(){function s(){this.fetch=!1,this.DOMException=r.DOMException}return s.prototype=r,new s}();(function(s){(function(o){var u=typeof s<"u"&&s||typeof self<"u"&&self||typeof u<"u"&&u,c={searchParams:"URLSearchParams"in u,iterable:"Symbol"in u&&"iterator"in Symbol,blob:"FileReader"in u&&"Blob"in u&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in u,arrayBuffer:"ArrayBuffer"in u};function l(q){return q&&DataView.prototype.isPrototypeOf(q)}if(c.arrayBuffer)var d=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],f=ArrayBuffer.isView||function(q){return q&&d.indexOf(Object.prototype.toString.call(q))>-1};function h(q){if(typeof q!="string"&&(q=String(q)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(q)||q==="")throw new TypeError('Invalid character in header field name: "'+q+'"');return q.toLowerCase()}function p(q){return typeof q!="string"&&(q=String(q)),q}function m(q){var H={next:function(){var X=q.shift();return{done:X===void 0,value:X}}};return c.iterable&&(H[Symbol.iterator]=function(){return H}),H}function y(q){this.map={},q instanceof y?q.forEach(function(H,X){this.append(X,H)},this):Array.isArray(q)?q.forEach(function(H){this.append(H[0],H[1])},this):q&&Object.getOwnPropertyNames(q).forEach(function(H){this.append(H,q[H])},this)}y.prototype.append=function(q,H){q=h(q),H=p(H);var X=this.map[q];this.map[q]=X?X+", "+H:H},y.prototype.delete=function(q){delete this.map[h(q)]},y.prototype.get=function(q){return q=h(q),this.has(q)?this.map[q]:null},y.prototype.has=function(q){return this.map.hasOwnProperty(h(q))},y.prototype.set=function(q,H){this.map[h(q)]=p(H)},y.prototype.forEach=function(q,H){for(var X in this.map)this.map.hasOwnProperty(X)&&q.call(H,this.map[X],X,this)},y.prototype.keys=function(){var q=[];return this.forEach(function(H,X){q.push(X)}),m(q)},y.prototype.values=function(){var q=[];return this.forEach(function(H){q.push(H)}),m(q)},y.prototype.entries=function(){var q=[];return this.forEach(function(H,X){q.push([X,H])}),m(q)},c.iterable&&(y.prototype[Symbol.iterator]=y.prototype.entries);function g(q){if(q.bodyUsed)return Promise.reject(new TypeError("Already read"));q.bodyUsed=!0}function b(q){return new Promise(function(H,X){q.onload=function(){H(q.result)},q.onerror=function(){X(q.error)}})}function v(q){var H=new FileReader,X=b(H);return H.readAsArrayBuffer(q),X}function _(q){var H=new FileReader,X=b(H);return H.readAsText(q),X}function w(q){for(var H=new Uint8Array(q),X=new Array(H.length),Y=0;Y-1?H:q}function x(q,H){if(!(this instanceof x))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');H=H||{};var X=H.body;if(q instanceof x){if(q.bodyUsed)throw new TypeError("Already read");this.url=q.url,this.credentials=q.credentials,H.headers||(this.headers=new y(q.headers)),this.method=q.method,this.mode=q.mode,this.signal=q.signal,!X&&q._bodyInit!=null&&(X=q._bodyInit,q.bodyUsed=!0)}else this.url=String(q);if(this.credentials=H.credentials||this.credentials||"same-origin",(H.headers||!this.headers)&&(this.headers=new y(H.headers)),this.method=F(H.method||this.method||"GET"),this.mode=H.mode||this.mode||null,this.signal=H.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&X)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(X),(this.method==="GET"||this.method==="HEAD")&&(H.cache==="no-store"||H.cache==="no-cache")){var Y=/([?&])_=[^&]*/;if(Y.test(this.url))this.url=this.url.replace(Y,"$1_="+new Date().getTime());else{var he=/\?/;this.url+=(he.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}x.prototype.clone=function(){return new x(this,{body:this._bodyInit})};function P(q){var H=new FormData;return q.trim().split("&").forEach(function(X){if(X){var Y=X.split("="),he=Y.shift().replace(/\+/g," "),Te=Y.join("=").replace(/\+/g," ");H.append(decodeURIComponent(he),decodeURIComponent(Te))}}),H}function j(q){var H=new y,X=q.replace(/\r?\n[\t ]+/g," ");return X.split("\r").map(function(Y){return Y.indexOf(` `)===0?Y.substr(1,Y.length):Y}).forEach(function(Y){var he=Y.split(":"),Te=he.shift().trim();if(Te){var Ne=he.join(":").trim();H.append(Te,Ne)}}),H}O.call(x.prototype);function N(q,H){if(!(this instanceof N))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');H||(H={}),this.type="default",this.status=H.status===void 0?200:H.status,this.ok=this.status>=200&&this.status<300,this.statusText=H.statusText===void 0?"":""+H.statusText,this.headers=new y(H.headers),this.url=H.url||"",this._initBody(q)}O.call(N.prototype),N.prototype.clone=function(){return new N(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},N.error=function(){var q=new N(null,{status:0,statusText:""});return q.type="error",q};var V=[301,302,303,307,308];N.redirect=function(q,H){if(V.indexOf(H)===-1)throw new RangeError("Invalid status code");return new N(null,{status:H,headers:{location:q}})},o.DOMException=u.DOMException;try{new o.DOMException}catch{o.DOMException=function(H,X){this.message=H,this.name=X;var Y=Error(H);this.stack=Y.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function $(q,H){return new Promise(function(X,Y){var he=new x(q,H);if(he.signal&&he.signal.aborted)return Y(new o.DOMException("Aborted","AbortError"));var Te=new XMLHttpRequest;function Ne(){Te.abort()}Te.onload=function(){var de={status:Te.status,statusText:Te.statusText,headers:j(Te.getAllResponseHeaders()||"")};de.url="responseURL"in Te?Te.responseURL:de.headers.get("X-Request-URL");var ce="response"in Te?Te.response:Te.responseText;setTimeout(function(){X(new N(ce,de))},0)},Te.onerror=function(){setTimeout(function(){Y(new TypeError("Network request failed"))},0)},Te.ontimeout=function(){setTimeout(function(){Y(new TypeError("Network request failed"))},0)},Te.onabort=function(){setTimeout(function(){Y(new o.DOMException("Aborted","AbortError"))},0)};function $e(de){try{return de===""&&u.location.href?u.location.href:de}catch{return de}}Te.open(he.method,$e(he.url),!0),he.credentials==="include"?Te.withCredentials=!0:he.credentials==="omit"&&(Te.withCredentials=!1),"responseType"in Te&&(c.blob?Te.responseType="blob":c.arrayBuffer&&he.headers.get("Content-Type")&&he.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(Te.responseType="arraybuffer")),H&&typeof H.headers=="object"&&!(H.headers instanceof y)?Object.getOwnPropertyNames(H.headers).forEach(function(de){Te.setRequestHeader(de,p(H.headers[de]))}):he.headers.forEach(function(de,ce){Te.setRequestHeader(ce,de)}),he.signal&&(he.signal.addEventListener("abort",Ne),Te.onreadystatechange=function(){Te.readyState===4&&he.signal.removeEventListener("abort",Ne)}),Te.send(typeof he._bodyInit>"u"?null:he._bodyInit)})}return $.polyfill=!0,u.fetch||(u.fetch=$,u.Headers=y,u.Request=x,u.Response=N),o.Headers=y,o.Request=x,o.Response=N,o.fetch=$,o})({})})(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var a=r.fetch?r:n;e=a.fetch,e.default=a.fetch,e.fetch=a.fetch,e.Headers=a.Headers,e.Request=a.Request,e.Response=a.Response,t.exports=e})(tN,tN.exports);var S4=tN.exports,B$;function Mee(){if(B$)return Sy;B$=1,Object.defineProperty(Sy,"__esModule",{value:!0}),Sy.QuadDestinationPatchSparqlUpdate=void 0;const t=Lu(),e=S4,r=x1(),n=Pt;let a=class{constructor(o,u,c){this.url=o,this.context=u,this.mediatorHttp=c}insert(o){return this.wrapSparqlUpdateRequest("INSERT",o)}async delete(o){return this.wrapSparqlUpdateRequest("DELETE",o)}async wrapSparqlUpdateRequest(o,u){const c=u.map(h=>{let p=`${(0,r.termToString)(h.subject)} ${(0,r.termToString)(h.predicate)} ${(0,r.termToString)(h.object)} .`;return h.graph.termType==="DefaultGraph"?p=` ${p} `:p=` GRAPH ${(0,r.termToString)(h.graph)} { ${p} } `,p}).prepend([`${o} DATA { -`]).append(["}"]),l=new n.Readable;l.wrap(c);const d=new e.Headers({"content-type":"application/sparql-update"}),f=await this.mediatorHttp.mediate({context:this.context,init:{headers:d,method:"PATCH",body:t.ActorHttp.toWebReadableStream(l)},input:this.url});await(0,t.validateAndCloseHttpResponse)(this.url,f)}async deleteGraphs(o,u,c){throw new Error("Patch-based SPARQL Update destinations don't support named graphs")}async createGraphs(o,u){throw new Error("Patch-based SPARQL Update destinations don't support named graphs")}};return Sy.QuadDestinationPatchSparqlUpdate=a,Sy}var q$;function hCe(){if(q$)return vy;q$=1,Object.defineProperty(vy,"__esModule",{value:!0}),vy.ActorRdfUpdateHypermediaPatchSparqlUpdate=void 0;const t=w4(),e=Mee();let r=class extends t.ActorRdfUpdateHypermedia{constructor(a){super(a,"patchSparqlUpdate")}async testMetadata(a){if(!a.forceDestinationType&&!a.metadata.patchSparqlUpdate)throw new Error(`Actor ${this.name} could not detect a destination with 'application/sparql-update' as 'Accept-Patch' header.`);if(!a.forceDestinationType&&!a.exists)throw new Error(`Actor ${this.name} can only patch a destination that already exists.`);return!0}async run(a){return this.logInfo(a.context,`Identified as patchSparqlUpdate destination: ${a.url}`),{destination:new e.QuadDestinationPatchSparqlUpdate(a.url,a.context,this.mediatorHttp)}}};return vy.ActorRdfUpdateHypermediaPatchSparqlUpdate=r,vy}var $$;function pCe(){return $$||($$=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(hCe(),t),r(Mee(),t)}(BR)),BR}var $R={},Ty={},Ey={},U$;function Fee(){if(U$)return Ey;U$=1,Object.defineProperty(Ey,"__esModule",{value:!0}),Ey.QuadDestinationPutLdp=void 0;const t=Lu(),e=S4;let r=class{constructor(a,s,o,u,c,l){this.url=a,this.context=s,this.mediaTypes=o,this.mediatorHttp=u,this.mediatorRdfSerializeMediatypes=c,this.mediatorRdfSerialize=l}insert(a){return this.wrapRdfUpdateRequest("INSERT",a)}async delete(a){throw new Error("Put-based LDP destinations don't support deletions")}async wrapRdfUpdateRequest(a,s){const{mediaTypes:o}=await this.mediatorRdfSerializeMediatypes.mediate({context:this.context,mediaTypes:!0}),u=this.mediaTypes.filter(h=>h in o),c=u.length>0?u[0]:Object.keys(o).sort((h,p)=>o[p]-o[h])[0],{handle:{data:l}}=await this.mediatorRdfSerialize.mediate({context:this.context,handle:{quadStream:s,context:this.context},handleMediaType:c}),d=new e.Headers({"content-type":c}),f=await this.mediatorHttp.mediate({context:this.context,init:{headers:d,method:"PUT",body:t.ActorHttp.toWebReadableStream(l)},input:this.url});await(0,t.validateAndCloseHttpResponse)(this.url,f)}async deleteGraphs(a,s,o){throw new Error("Put-based LDP destinations don't support named graphs")}async createGraphs(a,s){throw new Error("Put-based LDP destinations don't support named graphs")}};return Ey.QuadDestinationPutLdp=r,Ey}var k$;function yCe(){if(k$)return Ty;k$=1,Object.defineProperty(Ty,"__esModule",{value:!0}),Ty.ActorRdfUpdateHypermediaPutLdp=void 0;const t=w4(),e=Fee();let r=class extends t.ActorRdfUpdateHypermedia{constructor(a){super(a,"putLdp")}async testMetadata(a){if(!a.forceDestinationType){if(!a.metadata.allowHttpMethods||!a.metadata.allowHttpMethods.includes("PUT"))throw new Error(`Actor ${this.name} could not detect a destination with 'Allow: PUT' header.`);if(a.exists)throw new Error(`Actor ${this.name} can only put on a destination that does not already exists.`)}return!0}async run(a){return this.logInfo(a.context,`Identified as putLdp destination: ${a.url}`),{destination:new e.QuadDestinationPutLdp(a.url,a.context,a.metadata.putAccepted||[],this.mediatorHttp,this.mediatorRdfSerializeMediatypes,this.mediatorRdfSerialize)}}};return Ty.ActorRdfUpdateHypermediaPutLdp=r,Ty}var V$;function mCe(){return V$||(V$=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(yCe(),t),r(Fee(),t)}($R)),$R}var UR={},Ay={},Oy={},kR={},Ry={},VR={},xy={},H$;function gCe(){if(H$)return xy;H$=1,Object.defineProperty(xy,"__esModule",{value:!0}),xy.SparqlXmlParser=void 0;const t=Ot,e=el,r=Pt;let n=class{constructor(s){s=s||{},this.dataFactory=s.dataFactory||new t.DataFactory,this.prefixVariableQuestionMark=!!s.prefixVariableQuestionMark}parseXmlResultsStream(s){const o=_=>v.emit("error",_);s.on("error",o);const u=new e.SaxesParser,c=[];let l=!1,d=!1;const f=[];let h={},p="",m="",y,g="",b=[];u.on("error",o),u.on("opentag",_=>{_.name==="variable"&&this.stackEquals(c,["sparql","head"])?f.push(this.dataFactory.variable(_.attributes.name)):_.name==="results"&&this.stackEquals(c,["sparql"])?d=!0:_.name==="result"&&this.stackEquals(c,["sparql","results"])?h={}:_.name==="binding"&&this.stackEquals(c,["sparql","results","result"])?(p=_.attributes.name||"",m="",y="",g="",b=[]):_.name==="triple"&&this.stackBeginsWith(c,["sparql","results","result"])?b.push({components:{}}):c[c.length-1]==="triple"&&this.stackBeginsWith(c,["sparql","results","result","binding"])?(m="",y="",g="",["subject","predicate","object"].includes(_.name)?b[b.length-1].currentComponent=_.name:o(new Error(`Illegal quoted triple component '${_.name}' found on line ${u.line+1}`))):this.stackBeginsWith(c,["sparql","results","result","binding"])&&(m=_.name,"xml:lang"in _.attributes?y=_.attributes["xml:lang"]:"datatype"in _.attributes?y=this.dataFactory.namedNode(_.attributes.datatype):y=void 0),c.push(_.name)}),u.on("closetag",_=>{if(this.stackEquals(c,["sparql","head"])&&(v.emit("variables",f),l=!0),this.stackEquals(c,["sparql","results","result"])&&v.push(h),this.stackBeginsWith(c,["sparql","results","result","binding"])){let w;if(!p&&m)o(new Error(`Terms should have a name on line ${u.line+1}`));else if(m==="uri")w=this.dataFactory.namedNode(g);else if(m==="bnode")w=this.dataFactory.blankNode(g);else if(m==="literal")w=this.dataFactory.literal(g,y);else if(c[c.length-1]==="triple"){const E=b.pop();E&&E.components.subject&&E.components.predicate&&E.components.object?w=this.dataFactory.quad(E.components.subject,E.components.predicate,E.components.object):o(new Error(`Incomplete quoted triple on line ${u.line+1}`))}else m&&o(new Error(`Invalid term type '${m}' on line ${u.line+1}`));if(w)if(b.length>0){const E=b[b.length-1];E.components[E.currentComponent]&&o(new Error(`The ${E.currentComponent} in a quoted triple on line ${u.line+1} was already defined before`)),E.components[E.currentComponent]=w}else{const E=this.prefixVariableQuestionMark?"?"+p:p;h[E]=w}m=void 0}c.pop()}),u.on("text",_=>{this.stackBeginsWith(c,["sparql","results","result","binding"])&&c[c.length-1]===m&&(g=_)});const v=s.on("end",_=>{d?l||v.emit("variables",[]):v.emit("error",new Error("No valid SPARQL query results were found."))}).pipe(new r.Transform({objectMode:!0,transform(_,w,E){u.write(_),E()}}));return v}parseXmlBooleanStream(s){return new Promise((o,u)=>{const c=new e.SaxesParser,l=[];c.on("error",u),c.on("opentag",d=>{l.push(d.name)}),c.on("closetag",d=>{l.pop()}),c.on("text",d=>{this.stackEquals(l,["sparql","boolean"])&&o(d==="true")}),s.on("error",u).on("data",d=>c.write(d)).on("end",()=>u(new Error("No valid ASK response was found.")))})}stackEquals(s,o){return s.length===o.length&&s.every((u,c)=>o[c]===u)}stackBeginsWith(s,o){return s.length>=o.length&&o.every((u,c)=>s[c]===u)}};return xy.SparqlXmlParser=n,xy}var Q$;function _Ce(){return Q$||(Q$=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(gCe(),t)}(VR)),VR}var QT={};Object.defineProperty(QT,"__esModule",{value:!0});QT.ReadableWebToNodeStream=void 0;const bCe=Pt;class vCe extends bCe.Readable{constructor(e){super(),this.bytesRead=0,this.released=!1,this.reader=e.getReader()}async _read(){if(this.released){this.push(null);return}this.pendingRead=this.reader.read();const e=await this.pendingRead;delete this.pendingRead,e.done||this.released?this.push(null):(this.bytesRead+=e.value.length,this.push(e.value))}async waitForReadToComplete(){this.pendingRead&&await this.pendingRead}async close(){await this.syncAndRelease()}async syncAndRelease(){this.released=!0,await this.waitForReadToComplete(),await this.reader.releaseLock()}}QT.ReadableWebToNodeStream=vCe;var z$;function wCe(){if(z$)return Ry;z$=1,Object.defineProperty(Ry,"__esModule",{value:!0}),Ry.SparqlEndpointFetcher=void 0;const t=ol,e=hZ(),r=_Ce(),n=gl,a=QT,s=Du,o=Eee;let u=class pc{constructor(l){l=l||{},this.method=l.method||"POST",this.additionalUrlParams=l.additionalUrlParams||new URLSearchParams,this.defaultHeaders=l.defaultHeaders||new Headers,this.fetchCb=l.fetch,this.sparqlJsonParser=new e.SparqlJsonParser(l),this.sparqlXmlParser=new r.SparqlXmlParser(l),this.sparqlParsers={[pc.CONTENTTYPE_SPARQL_JSON]:{parseBooleanStream:d=>this.sparqlJsonParser.parseJsonBooleanStream(d),parseResultsStream:d=>this.sparqlJsonParser.parseJsonResultsStream(d)},[pc.CONTENTTYPE_SPARQL_XML]:{parseBooleanStream:d=>this.sparqlXmlParser.parseXmlBooleanStream(d),parseResultsStream:d=>this.sparqlXmlParser.parseXmlResultsStream(d)}},this.timeout=l.timeout}getQueryType(l){const d=new t.Parser({sparqlStar:!0}).parse(l);return d.type==="query"?d.queryType==="DESCRIBE"?"CONSTRUCT":d.queryType:"UNKNOWN"}getUpdateTypes(l){const d=new t.Parser({sparqlStar:!0}).parse(l);if(d.type==="update"){const f={};for(const h of d.updates)"type"in h?f[h.type]=!0:f[h.updateType]=!0;return f}else return"UNKNOWN"}async fetchBindings(l,d){const[f,h]=await this.fetchRawStream(l,d,pc.CONTENTTYPE_SPARQL),p=this.sparqlParsers[f];if(!p)throw new Error("Unknown SPARQL results content type: "+f);return p.parseResultsStream(h)}async fetchAsk(l,d){const[f,h]=await this.fetchRawStream(l,d,pc.CONTENTTYPE_SPARQL),p=this.sparqlParsers[f];if(!p)throw new Error("Unknown SPARQL results content type: "+f);return p.parseBooleanStream(h)}async fetchTriples(l,d){return(await this.fetchRawStream(l,d,pc.CONTENTTYPE_TURTLE))[1].pipe(new s.StreamParser({format:pc.CONTENTTYPE_TURTLE}))}async fetchUpdate(l,d){const f=globalThis.AbortController||await Promise.resolve().then(()=>$d()),h=new f,p={};this.defaultHeaders.forEach((y,g)=>{p[g]=y});const m={method:"POST",headers:Object.assign(Object.assign({},p),{"content-type":"application/sparql-update"}),body:d,signal:h.signal};await this.handleFetchCall(l,m,{ignoreBody:!0}),h.abort()}async fetchRawStream(l,d,f){let h=this.method==="POST"?l:l+"?query="+encodeURIComponent(d);const p=new Headers(this.defaultHeaders);let m;return p.append("Accept",f),this.method==="POST"?(p.append("Content-Type","application/x-www-form-urlencoded"),m=new URLSearchParams,m.set("query",d),this.additionalUrlParams.forEach((y,g)=>{m.set(g,y)}),p.append("Content-Length",m.toString().length.toString())):this.additionalUrlParams.toString()!==""&&(h+=`&${this.additionalUrlParams.toString()}`),this.handleFetchCall(h,{headers:p,method:this.method,body:m})}async handleFetchCall(l,d,f={}){let h;if(this.timeout){const g=new AbortController;d.signal=g.signal,h=setTimeout(()=>g.abort(),this.timeout)}const p=await(this.fetchCb||fetch)(l,d);clearTimeout(h);let m;f.ignoreBody||(m=o(p.body)?p.body:new a.ReadableWebToNodeStream(p.body));let y=p.headers.get("Content-Type")||"";if(y.indexOf(";")>0&&(y=y.substr(0,y.indexOf(";"))),!p.ok){const g=/^[^?]*/u.exec(l)[0];let b="empty response";throw m&&(b=await n(m)),new Error(`Invalid SPARQL endpoint response from ${g} (HTTP status ${p.status}): -${b}`)}return[y,m]}};return u.CONTENTTYPE_SPARQL_JSON="application/sparql-results+json",u.CONTENTTYPE_SPARQL_XML="application/sparql-results+xml",u.CONTENTTYPE_SPARQL=`${u.CONTENTTYPE_SPARQL_JSON};q=1.0,${u.CONTENTTYPE_SPARQL_XML};q=0.7`,u.CONTENTTYPE_TURTLE="text/turtle",Ry.SparqlEndpointFetcher=u,Ry}var G$;function Bee(){return G$||(G$=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(wCe(),t)}(kR)),kR}var W$;function qee(){if(W$)return Oy;W$=1,Object.defineProperty(Oy,"__esModule",{value:!0}),Oy.QuadDestinationSparql=void 0;const t=Bee(),e=x1(),r=gl;let n=class{constructor(s,o,u){this.url=s,this.context=o,this.mediatorHttp=u,this.endpointFetcher=new t.SparqlEndpointFetcher({fetch:(c,l)=>this.mediatorHttp.mediate({input:c,init:l,context:this.context}),prefixVariableQuestionMark:!0})}insert(s){return this.wrapSparqlUpdateRequest("INSERT",s)}async delete(s){return this.wrapSparqlUpdateRequest("DELETE",s)}async wrapSparqlUpdateRequest(s,o){const u=o.map(l=>{let d=`${(0,e.termToString)(l.subject)} ${(0,e.termToString)(l.predicate)} ${(0,e.termToString)(l.object)} .`;return l.graph.termType==="DefaultGraph"?d=` ${d} +`]).append(["}"]),l=new n.Readable;l.wrap(c);const d=new e.Headers({"content-type":"application/sparql-update"}),f=await this.mediatorHttp.mediate({context:this.context,init:{headers:d,method:"PATCH",body:t.ActorHttp.toWebReadableStream(l)},input:this.url});await(0,t.validateAndCloseHttpResponse)(this.url,f)}async deleteGraphs(o,u,c){throw new Error("Patch-based SPARQL Update destinations don't support named graphs")}async createGraphs(o,u){throw new Error("Patch-based SPARQL Update destinations don't support named graphs")}};return Sy.QuadDestinationPatchSparqlUpdate=a,Sy}var q$;function fCe(){if(q$)return vy;q$=1,Object.defineProperty(vy,"__esModule",{value:!0}),vy.ActorRdfUpdateHypermediaPatchSparqlUpdate=void 0;const t=w4(),e=Mee();let r=class extends t.ActorRdfUpdateHypermedia{constructor(a){super(a,"patchSparqlUpdate")}async testMetadata(a){if(!a.forceDestinationType&&!a.metadata.patchSparqlUpdate)throw new Error(`Actor ${this.name} could not detect a destination with 'application/sparql-update' as 'Accept-Patch' header.`);if(!a.forceDestinationType&&!a.exists)throw new Error(`Actor ${this.name} can only patch a destination that already exists.`);return!0}async run(a){return this.logInfo(a.context,`Identified as patchSparqlUpdate destination: ${a.url}`),{destination:new e.QuadDestinationPatchSparqlUpdate(a.url,a.context,this.mediatorHttp)}}};return vy.ActorRdfUpdateHypermediaPatchSparqlUpdate=r,vy}var $$;function hCe(){return $$||($$=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(fCe(),t),r(Mee(),t)}(FR)),FR}var qR={},Ty={},Ey={},U$;function Fee(){if(U$)return Ey;U$=1,Object.defineProperty(Ey,"__esModule",{value:!0}),Ey.QuadDestinationPutLdp=void 0;const t=Lu(),e=S4;let r=class{constructor(a,s,o,u,c,l){this.url=a,this.context=s,this.mediaTypes=o,this.mediatorHttp=u,this.mediatorRdfSerializeMediatypes=c,this.mediatorRdfSerialize=l}insert(a){return this.wrapRdfUpdateRequest("INSERT",a)}async delete(a){throw new Error("Put-based LDP destinations don't support deletions")}async wrapRdfUpdateRequest(a,s){const{mediaTypes:o}=await this.mediatorRdfSerializeMediatypes.mediate({context:this.context,mediaTypes:!0}),u=this.mediaTypes.filter(h=>h in o),c=u.length>0?u[0]:Object.keys(o).sort((h,p)=>o[p]-o[h])[0],{handle:{data:l}}=await this.mediatorRdfSerialize.mediate({context:this.context,handle:{quadStream:s,context:this.context},handleMediaType:c}),d=new e.Headers({"content-type":c}),f=await this.mediatorHttp.mediate({context:this.context,init:{headers:d,method:"PUT",body:t.ActorHttp.toWebReadableStream(l)},input:this.url});await(0,t.validateAndCloseHttpResponse)(this.url,f)}async deleteGraphs(a,s,o){throw new Error("Put-based LDP destinations don't support named graphs")}async createGraphs(a,s){throw new Error("Put-based LDP destinations don't support named graphs")}};return Ey.QuadDestinationPutLdp=r,Ey}var k$;function pCe(){if(k$)return Ty;k$=1,Object.defineProperty(Ty,"__esModule",{value:!0}),Ty.ActorRdfUpdateHypermediaPutLdp=void 0;const t=w4(),e=Fee();let r=class extends t.ActorRdfUpdateHypermedia{constructor(a){super(a,"putLdp")}async testMetadata(a){if(!a.forceDestinationType){if(!a.metadata.allowHttpMethods||!a.metadata.allowHttpMethods.includes("PUT"))throw new Error(`Actor ${this.name} could not detect a destination with 'Allow: PUT' header.`);if(a.exists)throw new Error(`Actor ${this.name} can only put on a destination that does not already exists.`)}return!0}async run(a){return this.logInfo(a.context,`Identified as putLdp destination: ${a.url}`),{destination:new e.QuadDestinationPutLdp(a.url,a.context,a.metadata.putAccepted||[],this.mediatorHttp,this.mediatorRdfSerializeMediatypes,this.mediatorRdfSerialize)}}};return Ty.ActorRdfUpdateHypermediaPutLdp=r,Ty}var V$;function yCe(){return V$||(V$=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(pCe(),t),r(Fee(),t)}(qR)),qR}var $R={},Ay={},Oy={},UR={},Ry={},kR={},xy={},H$;function mCe(){if(H$)return xy;H$=1,Object.defineProperty(xy,"__esModule",{value:!0}),xy.SparqlXmlParser=void 0;const t=Ot,e=el,r=Pt;let n=class{constructor(s){s=s||{},this.dataFactory=s.dataFactory||new t.DataFactory,this.prefixVariableQuestionMark=!!s.prefixVariableQuestionMark}parseXmlResultsStream(s){const o=_=>v.emit("error",_);s.on("error",o);const u=new e.SaxesParser,c=[];let l=!1,d=!1;const f=[];let h={},p="",m="",y,g="",b=[];u.on("error",o),u.on("opentag",_=>{_.name==="variable"&&this.stackEquals(c,["sparql","head"])?f.push(this.dataFactory.variable(_.attributes.name)):_.name==="results"&&this.stackEquals(c,["sparql"])?d=!0:_.name==="result"&&this.stackEquals(c,["sparql","results"])?h={}:_.name==="binding"&&this.stackEquals(c,["sparql","results","result"])?(p=_.attributes.name||"",m="",y="",g="",b=[]):_.name==="triple"&&this.stackBeginsWith(c,["sparql","results","result"])?b.push({components:{}}):c[c.length-1]==="triple"&&this.stackBeginsWith(c,["sparql","results","result","binding"])?(m="",y="",g="",["subject","predicate","object"].includes(_.name)?b[b.length-1].currentComponent=_.name:o(new Error(`Illegal quoted triple component '${_.name}' found on line ${u.line+1}`))):this.stackBeginsWith(c,["sparql","results","result","binding"])&&(m=_.name,"xml:lang"in _.attributes?y=_.attributes["xml:lang"]:"datatype"in _.attributes?y=this.dataFactory.namedNode(_.attributes.datatype):y=void 0),c.push(_.name)}),u.on("closetag",_=>{if(this.stackEquals(c,["sparql","head"])&&(v.emit("variables",f),l=!0),this.stackEquals(c,["sparql","results","result"])&&v.push(h),this.stackBeginsWith(c,["sparql","results","result","binding"])){let w;if(!p&&m)o(new Error(`Terms should have a name on line ${u.line+1}`));else if(m==="uri")w=this.dataFactory.namedNode(g);else if(m==="bnode")w=this.dataFactory.blankNode(g);else if(m==="literal")w=this.dataFactory.literal(g,y);else if(c[c.length-1]==="triple"){const E=b.pop();E&&E.components.subject&&E.components.predicate&&E.components.object?w=this.dataFactory.quad(E.components.subject,E.components.predicate,E.components.object):o(new Error(`Incomplete quoted triple on line ${u.line+1}`))}else m&&o(new Error(`Invalid term type '${m}' on line ${u.line+1}`));if(w)if(b.length>0){const E=b[b.length-1];E.components[E.currentComponent]&&o(new Error(`The ${E.currentComponent} in a quoted triple on line ${u.line+1} was already defined before`)),E.components[E.currentComponent]=w}else{const E=this.prefixVariableQuestionMark?"?"+p:p;h[E]=w}m=void 0}c.pop()}),u.on("text",_=>{this.stackBeginsWith(c,["sparql","results","result","binding"])&&c[c.length-1]===m&&(g=_)});const v=s.on("end",_=>{d?l||v.emit("variables",[]):v.emit("error",new Error("No valid SPARQL query results were found."))}).pipe(new r.Transform({objectMode:!0,transform(_,w,E){u.write(_),E()}}));return v}parseXmlBooleanStream(s){return new Promise((o,u)=>{const c=new e.SaxesParser,l=[];c.on("error",u),c.on("opentag",d=>{l.push(d.name)}),c.on("closetag",d=>{l.pop()}),c.on("text",d=>{this.stackEquals(l,["sparql","boolean"])&&o(d==="true")}),s.on("error",u).on("data",d=>c.write(d)).on("end",()=>u(new Error("No valid ASK response was found.")))})}stackEquals(s,o){return s.length===o.length&&s.every((u,c)=>o[c]===u)}stackBeginsWith(s,o){return s.length>=o.length&&o.every((u,c)=>s[c]===u)}};return xy.SparqlXmlParser=n,xy}var Q$;function gCe(){return Q$||(Q$=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(mCe(),t)}(kR)),kR}var HT={};Object.defineProperty(HT,"__esModule",{value:!0});HT.ReadableWebToNodeStream=void 0;const _Ce=Pt;class bCe extends _Ce.Readable{constructor(e){super(),this.bytesRead=0,this.released=!1,this.reader=e.getReader()}async _read(){if(this.released){this.push(null);return}this.pendingRead=this.reader.read();const e=await this.pendingRead;delete this.pendingRead,e.done||this.released?this.push(null):(this.bytesRead+=e.value.length,this.push(e.value))}async waitForReadToComplete(){this.pendingRead&&await this.pendingRead}async close(){await this.syncAndRelease()}async syncAndRelease(){this.released=!0,await this.waitForReadToComplete(),await this.reader.releaseLock()}}HT.ReadableWebToNodeStream=bCe;var z$;function vCe(){if(z$)return Ry;z$=1,Object.defineProperty(Ry,"__esModule",{value:!0}),Ry.SparqlEndpointFetcher=void 0;const t=sl,e=hZ(),r=gCe(),n=ml,a=HT,s=Du,o=Eee;let u=class pc{constructor(l){l=l||{},this.method=l.method||"POST",this.additionalUrlParams=l.additionalUrlParams||new URLSearchParams,this.defaultHeaders=l.defaultHeaders||new Headers,this.fetchCb=l.fetch,this.sparqlJsonParser=new e.SparqlJsonParser(l),this.sparqlXmlParser=new r.SparqlXmlParser(l),this.sparqlParsers={[pc.CONTENTTYPE_SPARQL_JSON]:{parseBooleanStream:d=>this.sparqlJsonParser.parseJsonBooleanStream(d),parseResultsStream:d=>this.sparqlJsonParser.parseJsonResultsStream(d)},[pc.CONTENTTYPE_SPARQL_XML]:{parseBooleanStream:d=>this.sparqlXmlParser.parseXmlBooleanStream(d),parseResultsStream:d=>this.sparqlXmlParser.parseXmlResultsStream(d)}},this.timeout=l.timeout}getQueryType(l){const d=new t.Parser({sparqlStar:!0}).parse(l);return d.type==="query"?d.queryType==="DESCRIBE"?"CONSTRUCT":d.queryType:"UNKNOWN"}getUpdateTypes(l){const d=new t.Parser({sparqlStar:!0}).parse(l);if(d.type==="update"){const f={};for(const h of d.updates)"type"in h?f[h.type]=!0:f[h.updateType]=!0;return f}else return"UNKNOWN"}async fetchBindings(l,d){const[f,h]=await this.fetchRawStream(l,d,pc.CONTENTTYPE_SPARQL),p=this.sparqlParsers[f];if(!p)throw new Error("Unknown SPARQL results content type: "+f);return p.parseResultsStream(h)}async fetchAsk(l,d){const[f,h]=await this.fetchRawStream(l,d,pc.CONTENTTYPE_SPARQL),p=this.sparqlParsers[f];if(!p)throw new Error("Unknown SPARQL results content type: "+f);return p.parseBooleanStream(h)}async fetchTriples(l,d){return(await this.fetchRawStream(l,d,pc.CONTENTTYPE_TURTLE))[1].pipe(new s.StreamParser({format:pc.CONTENTTYPE_TURTLE}))}async fetchUpdate(l,d){const f=globalThis.AbortController||await Promise.resolve().then(()=>qd()),h=new f,p={};this.defaultHeaders.forEach((y,g)=>{p[g]=y});const m={method:"POST",headers:Object.assign(Object.assign({},p),{"content-type":"application/sparql-update"}),body:d,signal:h.signal};await this.handleFetchCall(l,m,{ignoreBody:!0}),h.abort()}async fetchRawStream(l,d,f){let h=this.method==="POST"?l:l+"?query="+encodeURIComponent(d);const p=new Headers(this.defaultHeaders);let m;return p.append("Accept",f),this.method==="POST"?(p.append("Content-Type","application/x-www-form-urlencoded"),m=new URLSearchParams,m.set("query",d),this.additionalUrlParams.forEach((y,g)=>{m.set(g,y)}),p.append("Content-Length",m.toString().length.toString())):this.additionalUrlParams.toString()!==""&&(h+=`&${this.additionalUrlParams.toString()}`),this.handleFetchCall(h,{headers:p,method:this.method,body:m})}async handleFetchCall(l,d,f={}){let h;if(this.timeout){const g=new AbortController;d.signal=g.signal,h=setTimeout(()=>g.abort(),this.timeout)}const p=await(this.fetchCb||fetch)(l,d);clearTimeout(h);let m;f.ignoreBody||(m=o(p.body)?p.body:new a.ReadableWebToNodeStream(p.body));let y=p.headers.get("Content-Type")||"";if(y.indexOf(";")>0&&(y=y.substr(0,y.indexOf(";"))),!p.ok){const g=/^[^?]*/u.exec(l)[0];let b="empty response";throw m&&(b=await n(m)),new Error(`Invalid SPARQL endpoint response from ${g} (HTTP status ${p.status}): +${b}`)}return[y,m]}};return u.CONTENTTYPE_SPARQL_JSON="application/sparql-results+json",u.CONTENTTYPE_SPARQL_XML="application/sparql-results+xml",u.CONTENTTYPE_SPARQL=`${u.CONTENTTYPE_SPARQL_JSON};q=1.0,${u.CONTENTTYPE_SPARQL_XML};q=0.7`,u.CONTENTTYPE_TURTLE="text/turtle",Ry.SparqlEndpointFetcher=u,Ry}var G$;function Bee(){return G$||(G$=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(vCe(),t)}(UR)),UR}var W$;function qee(){if(W$)return Oy;W$=1,Object.defineProperty(Oy,"__esModule",{value:!0}),Oy.QuadDestinationSparql=void 0;const t=Bee(),e=x1(),r=ml;let n=class{constructor(s,o,u){this.url=s,this.context=o,this.mediatorHttp=u,this.endpointFetcher=new t.SparqlEndpointFetcher({fetch:(c,l)=>this.mediatorHttp.mediate({input:c,init:l,context:this.context}),prefixVariableQuestionMark:!0})}insert(s){return this.wrapSparqlUpdateRequest("INSERT",s)}async delete(s){return this.wrapSparqlUpdateRequest("DELETE",s)}async wrapSparqlUpdateRequest(s,o){const u=o.map(l=>{let d=`${(0,e.termToString)(l.subject)} ${(0,e.termToString)(l.predicate)} ${(0,e.termToString)(l.object)} .`;return l.graph.termType==="DefaultGraph"?d=` ${d} `:d=` GRAPH ${(0,e.termToString)(l.graph)} { ${d} } `,d}).prepend([`${s} DATA { -`]).append(["}"]),c=await r(u);await this.endpointFetcher.fetchUpdate(this.url,c)}async deleteGraphs(s,o,u){const c=Array.isArray(s)?s:[s],l=[];for(const d of c){let f;typeof d=="string"?f=d:d.termType==="DefaultGraph"?f="DEFAULT":f=`GRAPH <${d.value}>`,l.push(`${u?"DROP":"CLEAR"} ${o?"":"SILENT "}${f}`)}await this.endpointFetcher.fetchUpdate(this.url,l.join("; "))}async createGraphs(s,o){const u=[];for(const c of s)u.push(`CREATE${o?"":" SILENT"} GRAPH <${c.value}>`);await this.endpointFetcher.fetchUpdate(this.url,u.join("; "))}};return Oy.QuadDestinationSparql=n,Oy}var K$;function SCe(){if(K$)return Ay;K$=1,Object.defineProperty(Ay,"__esModule",{value:!0}),Ay.ActorRdfUpdateHypermediaSparql=void 0;const t=w4(),e=qee();let r=class extends t.ActorRdfUpdateHypermedia{constructor(a){super(a,"sparql")}async testMetadata(a){if(!a.forceDestinationType&&!a.metadata.sparqlService&&!(this.checkUrlSuffixSparql&&a.url.endsWith("/sparql"))&&!(this.checkUrlSuffixUpdate&&a.url.endsWith("/update")))throw new Error(`Actor ${this.name} could not detect a SPARQL service description or URL ending on /sparql or /update.`);return!0}async run(a){return this.logInfo(a.context,`Identified as sparql destination: ${a.url}`),{destination:new e.QuadDestinationSparql(a.metadata.sparqlService||a.url,a.context,this.mediatorHttp)}}};return Ay.ActorRdfUpdateHypermediaSparql=r,Ay}var J$;function TCe(){return J$||(J$=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(SCe(),t),r(qee(),t)}(UR)),UR}var HR={},Iy={},X$;function ECe(){if(X$)return Iy;X$=1,Object.defineProperty(Iy,"__esModule",{value:!0}),Iy.ActorQueryOperationAsk=void 0;const t=Tt();let e=class extends t.ActorQueryOperationTypedMediated{constructor(n){super(n,"ask")}async testOperation(n,a){return!0}async runOperation(n,a){const s=await this.mediatorQueryOperation.mediate({operation:n.input,context:a}),{bindingsStream:o}=t.ActorQueryOperation.getSafeBindings(s);return{type:"boolean",execute:async()=>(await o.take(1).toArray()).length===1}}};return Iy.ActorQueryOperationAsk=e,Iy}var Y$;function ACe(){return Y$||(Y$=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(ECe(),t)}(HR)),HR}var QR={},Py={},Z$;function OCe(){if(Z$)return Py;Z$=1,Object.defineProperty(Py,"__esModule",{value:!0}),Py.ActorQueryOperationBgpJoin=void 0;const t=Tt(),e=xt();let r=class $ee extends t.ActorQueryOperationTypedMediated{constructor(a){super(a,"bgp")}async testOperation(a,s){return!0}async runOperation(a,s){return this.mediatorQueryOperation.mediate({operation:$ee.FACTORY.createJoin(a.patterns),context:s})}};return Py.ActorQueryOperationBgpJoin=r,r.FACTORY=new e.Factory,Py}var eU;function RCe(){return eU||(eU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(OCe(),t)}(QR)),QR}var zR={},Ny={},tU;function xCe(){if(tU)return Ny;tU=1,Object.defineProperty(Ny,"__esModule",{value:!0}),Ny.ActorQueryOperationDistinctHash=void 0;const t=Tt();let e=class extends t.ActorQueryOperationTypedMediated{constructor(n){super(n,"distinct")}async testOperation(n,a){return!0}async runOperation(n,a){const s=t.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:n.input,context:a}));return{type:"bindings",bindingsStream:s.bindingsStream.filter(await this.newHashFilter(a)),metadata:s.metadata}}async newHashFilter(n){const{hashFunction:a}=await this.mediatorHashBindings.mediate({allowHashCollisions:!0,context:n}),s={};return o=>{const u=a(o);return!(u in s)&&(s[u]=!0)}}};return Ny.ActorQueryOperationDistinctHash=e,Ny}var rU;function ICe(){return rU||(rU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(xCe(),t)}(zR)),zR}var GR={},Dy={},Cy={},nU;function Uee(){if(nU)return Cy;nU=1,Object.defineProperty(Cy,"__esModule",{value:!0}),Cy.BindingsToQuadsIterator=void 0;const t=Mt,e=Ot,r=In(),n=new e.DataFactory;let a=class N_ extends t.MultiTransformIterator{constructor(o,u){super(u,{autoStart:!1}),this.template=o,this.blankNodeCounter=0}static bindTerm(o,u){return u.termType==="Variable"?o.get(u):u}static bindQuad(o,u){try{return(0,r.mapTermsNested)(u,c=>{const l=N_.bindTerm(o,c);if(!l)throw new Error("Unbound term");return l})}catch{}}static localizeBlankNode(o,u){return u.termType==="BlankNode"?n.blankNode(`${u.value}${o}`):u}static localizeQuad(o,u){return(0,r.mapTermsNested)(u,c=>N_.localizeBlankNode(o,c))}bindTemplate(o,u,c){return u.map(N_.localizeQuad.bind(null,c)).map(d=>N_.bindQuad.bind(null,o)(d)).filter(Boolean)}_createTransformer(o){return new t.ArrayIterator(this.bindTemplate(o,this.template,this.blankNodeCounter++),{autoStart:!1})}};return Cy.BindingsToQuadsIterator=a,Cy}var iU;function PCe(){if(iU)return Dy;iU=1,Object.defineProperty(Dy,"__esModule",{value:!0}),Dy.ActorQueryOperationConstruct=void 0;const t=Tt(),e=In(),r=xt(),n=Uee();let a=class kee extends t.ActorQueryOperationTypedMediated{constructor(o){super(o,"construct")}static getVariables(o){return(0,e.uniqTerms)([].concat.apply([],o.map(u=>(0,e.getVariables)((0,e.getTermsNested)(u)))))}async testOperation(o,u){return!0}async runOperation(o,u){const c=kee.getVariables(o.template),l={type:r.Algebra.types.PROJECT,input:o.input,variables:c},d=t.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:l,context:u})),f=new n.BindingsToQuadsIterator(o.template,d.bindingsStream);return{metadata:()=>d.metadata().then(p=>({...p,order:void 0,cardinality:{type:p.cardinality.type,value:p.cardinality.value*o.template.length},canContainUndefs:!1,availableOrders:void 0})),quadStream:f,type:"quads"}}};return Dy.ActorQueryOperationConstruct=a,Dy}var aU;function Vee(){return aU||(aU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(PCe(),t),r(Uee(),t)}(GR)),GR}var WR={},Ly={},sU;function NCe(){if(sU)return Ly;sU=1,Object.defineProperty(Ly,"__esModule",{value:!0}),Ly.ActorQueryOperationFromQuad=void 0;const t=Tt(),e=xt();let r=class wr extends t.ActorQueryOperationTypedMediated{constructor(a){super(a,"from")}static copyOperation(a,s){const o={};for(const u of Object.keys(a))Array.isArray(a[u])&&u!=="template"?u==="variables"?o[u]=a[u]:o[u]=a[u].map(s):wr.ALGEBRA_TYPES.includes(a[u].type)?o[u]=s(a[u]):o[u]=a[u];return o}static applyOperationDefaultGraph(a,s){if(a.type==="bgp"&&a.patterns.length>0||a.type==="path"||a.type==="pattern"){if(a.type==="bgp")return wr.joinOperations(a.patterns.map(u=>{if(u.graph.termType!=="DefaultGraph")return wr.FACTORY.createBgp([u]);const c=s.map(l=>wr.FACTORY.createBgp([Object.assign(wr.FACTORY.createPattern(u.subject,u.predicate,u.object,l),{metadata:u.metadata})]));return wr.unionOperations(c)}));if(a.graph.termType!=="DefaultGraph")return a;const o=s.map(u=>a.type==="path"?wr.FACTORY.createPath(a.subject,a.predicate,a.object,u):Object.assign(wr.FACTORY.createPattern(a.subject,a.predicate,a.object,u),{metadata:a.metadata}));return wr.unionOperations(o)}return wr.copyOperation(a,o=>this.applyOperationDefaultGraph(o,s))}static applyOperationNamedGraph(a,s,o){if(a.type==="bgp"&&a.patterns.length>0||a.type==="path"||a.type==="pattern"){const u=a.type==="bgp"?a.patterns[0].graph:a.graph;if(u.termType==="DefaultGraph")return{type:e.Algebra.types.BGP,patterns:[]};if(u.termType==="Variable"){if(s.length===1){const l=s[0],d={};d[`?${u.value}`]=l;const f=wr.FACTORY.createValues([u],[d]);let h;return a.type==="bgp"?h=wr.FACTORY.createBgp(a.patterns.map(p=>wr.FACTORY.createPattern(p.subject,p.predicate,p.object,l))):a.type==="path"?h=wr.FACTORY.createPath(a.subject,a.predicate,a.object,l):h=wr.FACTORY.createPattern(a.subject,a.predicate,a.object,l),wr.FACTORY.createJoin([f,h])}return wr.unionOperations(s.map(l=>wr.applyOperationNamedGraph(a,[l],o)))}return[...s,...o].some(l=>l.equals(u))?a:{type:e.Algebra.types.BGP,patterns:[]}}return wr.copyOperation(a,u=>this.applyOperationNamedGraph(u,s,o))}static joinOperations(a){if(a.length===1)return a[0];if(a.length>1)return wr.FACTORY.createJoin(a);throw new Error("A join can only be applied on at least one operation")}static unionOperations(a){if(a.length===1)return a[0];if(a.length>1)return wr.FACTORY.createUnion(a);throw new Error("A union can only be applied on at least one operation")}static createOperation(a){let s=a.input;return a.default.length>0&&(s=wr.applyOperationDefaultGraph(s,a.default)),(a.named.length>0||a.default.length>0)&&(s=wr.applyOperationNamedGraph(s,a.named,a.default)),s}async testOperation(a,s){return!0}async runOperation(a,s){const o=wr.createOperation(a);return this.mediatorQueryOperation.mediate({operation:o,context:s})}};return Ly.ActorQueryOperationFromQuad=r,r.FACTORY=new e.Factory,r.ALGEBRA_TYPES=Object.keys(e.Algebra.types).map(n=>e.Algebra.types[n]),Ly}var oU;function DCe(){return oU||(oU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(NCe(),t)}(WR)),WR}var KR={},jy={},uU;function CCe(){if(uU)return jy;uU=1,Object.defineProperty(jy,"__esModule",{value:!0}),jy.ActorQueryOperationProject=void 0;const t=Tt(),e=qC(),r=Ot,n=new r.DataFactory;let a=class extends t.ActorQueryOperationTypedMediated{constructor(o){super(o,"project")}async testOperation(o,u){return!0}async runOperation(o,u){const c=t.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:o.input,context:u})),l=await c.metadata(),d=o.variables,f=l.variables.filter(y=>!d.some(g=>y.value===g.value)),h=d.filter(y=>!l.variables.some(g=>y.value===g.value));if(h.length>0)throw new Error(`Variables '${h.map(y=>`?${y.value}`)}' are used in the projection result, but are not assigned.`);let p=f.length===0?c.bindingsStream:c.bindingsStream.map(y=>{for(const g of f)y=y.delete(g);return y}),m=0;return p=p.map(y=>{m++;const g=new Map;return y.map(b=>{if(b instanceof e.BlankNodeBindingsScoped){let v=g.get(b.value);return v||(v=n.blankNode(`${b.value}${m}`),g.set(b.value,v)),v}return b})}),{type:"bindings",bindingsStream:p,metadata:async()=>({...l,variables:d})}}};return jy.ActorQueryOperationProject=a,jy}var cU;function LCe(){return cU||(cU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(CCe(),t)}(KR)),KR}var JR={},My={},Fy={},lU;function ju(){var h,p,y,g,b,v,_,w,E,O,L,F,x,P,j,N,V,$,q,H,X,Y,he,Te,Ne,rN,de,ce,xe,Pe,we,Hee,Se,z,M,k,Ho,R,Qo,G,nN,Z,se,zw,le,Gw,_e,Sr,Ee,iN,Ce,D_;if(lU)return Fy;lU=1,Object.defineProperty(Fy,"__esModule",{value:!0}),Fy.LRUCache=void 0;const t=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,e=new Set,r=typeof co=="object"&&co?co:{},n=(W,D,B,K)=>{typeof r.emitWarning=="function"?r.emitWarning(W,D,B,K):console.error(`[${B}] ${D}: ${W}`)};let a=globalThis.AbortController,s=globalThis.AbortSignal;if(typeof a>"u"){s=class{constructor(){Cr(this,"onabort");Cr(this,"_onabort",[]);Cr(this,"reason");Cr(this,"aborted",!1)}addEventListener(K,ne){this._onabort.push(ne)}},a=class{constructor(){Cr(this,"signal",new s);D()}abort(K){var ne,fe;if(!this.signal.aborted){this.signal.reason=K,this.signal.aborted=!0;for(const ge of this.signal._onabort)ge(K);(fe=(ne=this.signal).onabort)==null||fe.call(ne,K)}}};let W=((h=r.env)==null?void 0:h.LRU_CACHE_IGNORE_AC_WARNING)!=="1";const D=()=>{W&&(W=!1,n("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",D))}}const o=W=>!e.has(W),u=W=>W&&W===Math.floor(W)&&W>0&&isFinite(W),c=W=>u(W)?W<=Math.pow(2,8)?Uint8Array:W<=Math.pow(2,16)?Uint16Array:W<=Math.pow(2,32)?Uint32Array:W<=Number.MAX_SAFE_INTEGER?l:null:null;class l extends Array{constructor(D){super(D),this.fill(0)}}const m=class m{constructor(D,B){Cr(this,"heap");Cr(this,"length");if(!me(m,p))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new B(D),this.length=0}static create(D){const B=c(D);if(!B)return[];wt(m,p,!0);const K=new m(D,B);return wt(m,p,!1),K}push(D){this.heap[this.length++]=D}pop(){return this.heap[--this.length]}};p=new WeakMap,Lt(m,p,!1);let d=m;const qe=class qe{constructor(D){Lt(this,Ne);Lt(this,we);Lt(this,k);Lt(this,R);Lt(this,G);Lt(this,se);Lt(this,le);Lt(this,_e);Lt(this,Ee);Lt(this,Ce);Lt(this,y,void 0);Lt(this,g,void 0);Lt(this,b,void 0);Lt(this,v,void 0);Lt(this,_,void 0);Cr(this,"ttl");Cr(this,"ttlResolution");Cr(this,"ttlAutopurge");Cr(this,"updateAgeOnGet");Cr(this,"updateAgeOnHas");Cr(this,"allowStale");Cr(this,"noDisposeOnSet");Cr(this,"noUpdateTTL");Cr(this,"maxEntrySize");Cr(this,"sizeCalculation");Cr(this,"noDeleteOnFetchRejection");Cr(this,"noDeleteOnStaleGet");Cr(this,"allowStaleOnFetchAbort");Cr(this,"allowStaleOnFetchRejection");Cr(this,"ignoreFetchAbort");Lt(this,w,void 0);Lt(this,E,void 0);Lt(this,O,void 0);Lt(this,L,void 0);Lt(this,F,void 0);Lt(this,x,void 0);Lt(this,P,void 0);Lt(this,j,void 0);Lt(this,N,void 0);Lt(this,V,void 0);Lt(this,$,void 0);Lt(this,q,void 0);Lt(this,H,void 0);Lt(this,X,void 0);Lt(this,Y,void 0);Lt(this,he,void 0);Lt(this,Te,void 0);Lt(this,de,()=>{});Lt(this,ce,()=>{});Lt(this,xe,()=>{});Lt(this,Pe,()=>!1);Lt(this,Se,D=>{});Lt(this,z,(D,B,K)=>{});Lt(this,M,(D,B,K,ne)=>{if(K||ne)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});Cr(this,Z,"LRUCache");const{max:B=0,ttl:K,ttlResolution:ne=1,ttlAutopurge:fe,updateAgeOnGet:ge,updateAgeOnHas:Le,allowStale:ee,dispose:Oe,disposeAfter:De,noDisposeOnSet:Ue,noUpdateTTL:Ye,maxSize:ut=0,maxEntrySize:at=0,sizeCalculation:ct,fetchMethod:ht,noDeleteOnFetchRejection:te,noDeleteOnStaleGet:S,allowStaleOnFetchRejection:A,allowStaleOnFetchAbort:C,ignoreFetchAbort:J}=D;if(B!==0&&!u(B))throw new TypeError("max option must be a nonnegative integer");const ie=B?c(B):Array;if(!ie)throw new Error("invalid max value: "+B);if(wt(this,y,B),wt(this,g,ut),this.maxEntrySize=at||me(this,g),this.sizeCalculation=ct,this.sizeCalculation){if(!me(this,g)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(ht!==void 0&&typeof ht!="function")throw new TypeError("fetchMethod must be a function if specified");if(wt(this,_,ht),wt(this,he,!!ht),wt(this,O,new Map),wt(this,L,new Array(B).fill(void 0)),wt(this,F,new Array(B).fill(void 0)),wt(this,x,new ie(B)),wt(this,P,new ie(B)),wt(this,j,0),wt(this,N,0),wt(this,V,d.create(B)),wt(this,w,0),wt(this,E,0),typeof Oe=="function"&&wt(this,b,Oe),typeof De=="function"?(wt(this,v,De),wt(this,$,[])):(wt(this,v,void 0),wt(this,$,void 0)),wt(this,Y,!!me(this,b)),wt(this,Te,!!me(this,v)),this.noDisposeOnSet=!!Ue,this.noUpdateTTL=!!Ye,this.noDeleteOnFetchRejection=!!te,this.allowStaleOnFetchRejection=!!A,this.allowStaleOnFetchAbort=!!C,this.ignoreFetchAbort=!!J,this.maxEntrySize!==0){if(me(this,g)!==0&&!u(me(this,g)))throw new TypeError("maxSize must be a positive integer if specified");if(!u(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");pt(this,we,Hee).call(this)}if(this.allowStale=!!ee,this.noDeleteOnStaleGet=!!S,this.updateAgeOnGet=!!ge,this.updateAgeOnHas=!!Le,this.ttlResolution=u(ne)||ne===0?ne:1,this.ttlAutopurge=!!fe,this.ttl=K||0,this.ttl){if(!u(this.ttl))throw new TypeError("ttl must be a positive integer if specified");pt(this,Ne,rN).call(this)}if(me(this,y)===0&&this.ttl===0&&me(this,g)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!me(this,y)&&!me(this,g)){const be="LRU_CACHE_UNBOUNDED";o(be)&&(e.add(be),n("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",be,qe))}}static unsafeExposeInternals(D){return{starts:me(D,H),ttls:me(D,X),sizes:me(D,q),keyMap:me(D,O),keyList:me(D,L),valList:me(D,F),next:me(D,x),prev:me(D,P),get head(){return me(D,j)},get tail(){return me(D,N)},free:me(D,V),isBackgroundFetch:B=>{var K;return pt(K=D,_e,Sr).call(K,B)},backgroundFetch:(B,K,ne,fe)=>{var ge;return pt(ge=D,le,Gw).call(ge,B,K,ne,fe)},moveToTail:B=>{var K;return pt(K=D,Ce,D_).call(K,B)},indexes:B=>{var K;return pt(K=D,k,Ho).call(K,B)},rindexes:B=>{var K;return pt(K=D,R,Qo).call(K,B)},isStale:B=>{var K;return me(K=D,Pe).call(K,B)}}}get max(){return me(this,y)}get maxSize(){return me(this,g)}get calculatedSize(){return me(this,E)}get size(){return me(this,w)}get fetchMethod(){return me(this,_)}get dispose(){return me(this,b)}get disposeAfter(){return me(this,v)}getRemainingTTL(D){return me(this,O).has(D)?1/0:0}*entries(){for(const D of pt(this,k,Ho).call(this))me(this,F)[D]!==void 0&&me(this,L)[D]!==void 0&&!pt(this,_e,Sr).call(this,me(this,F)[D])&&(yield[me(this,L)[D],me(this,F)[D]])}*rentries(){for(const D of pt(this,R,Qo).call(this))me(this,F)[D]!==void 0&&me(this,L)[D]!==void 0&&!pt(this,_e,Sr).call(this,me(this,F)[D])&&(yield[me(this,L)[D],me(this,F)[D]])}*keys(){for(const D of pt(this,k,Ho).call(this)){const B=me(this,L)[D];B!==void 0&&!pt(this,_e,Sr).call(this,me(this,F)[D])&&(yield B)}}*rkeys(){for(const D of pt(this,R,Qo).call(this)){const B=me(this,L)[D];B!==void 0&&!pt(this,_e,Sr).call(this,me(this,F)[D])&&(yield B)}}*values(){for(const D of pt(this,k,Ho).call(this))me(this,F)[D]!==void 0&&!pt(this,_e,Sr).call(this,me(this,F)[D])&&(yield me(this,F)[D])}*rvalues(){for(const D of pt(this,R,Qo).call(this))me(this,F)[D]!==void 0&&!pt(this,_e,Sr).call(this,me(this,F)[D])&&(yield me(this,F)[D])}[Symbol.iterator](){return this.entries()}find(D,B={}){for(const K of pt(this,k,Ho).call(this)){const ne=me(this,F)[K],fe=pt(this,_e,Sr).call(this,ne)?ne.__staleWhileFetching:ne;if(fe!==void 0&&D(fe,me(this,L)[K],this))return this.get(me(this,L)[K],B)}}forEach(D,B=this){for(const K of pt(this,k,Ho).call(this)){const ne=me(this,F)[K],fe=pt(this,_e,Sr).call(this,ne)?ne.__staleWhileFetching:ne;fe!==void 0&&D.call(B,fe,me(this,L)[K],this)}}rforEach(D,B=this){for(const K of pt(this,R,Qo).call(this)){const ne=me(this,F)[K],fe=pt(this,_e,Sr).call(this,ne)?ne.__staleWhileFetching:ne;fe!==void 0&&D.call(B,fe,me(this,L)[K],this)}}purgeStale(){let D=!1;for(const B of pt(this,R,Qo).call(this,{allowStale:!0}))me(this,Pe).call(this,B)&&(this.delete(me(this,L)[B]),D=!0);return D}info(D){const B=me(this,O).get(D);if(B===void 0)return;const K=me(this,F)[B],ne=pt(this,_e,Sr).call(this,K)?K.__staleWhileFetching:K;if(ne===void 0)return;const fe={value:ne};if(me(this,X)&&me(this,H)){const ge=me(this,X)[B],Le=me(this,H)[B];if(ge&&Le){const ee=ge-(t.now()-Le);fe.ttl=ee,fe.start=Date.now()}}return me(this,q)&&(fe.size=me(this,q)[B]),fe}dump(){const D=[];for(const B of pt(this,k,Ho).call(this,{allowStale:!0})){const K=me(this,L)[B],ne=me(this,F)[B],fe=pt(this,_e,Sr).call(this,ne)?ne.__staleWhileFetching:ne;if(fe===void 0||K===void 0)continue;const ge={value:fe};if(me(this,X)&&me(this,H)){ge.ttl=me(this,X)[B];const Le=t.now()-me(this,H)[B];ge.start=Math.floor(Date.now()-Le)}me(this,q)&&(ge.size=me(this,q)[B]),D.unshift([K,ge])}return D}load(D){this.clear();for(const[B,K]of D){if(K.start){const ne=Date.now()-K.start;K.start=t.now()-ne}this.set(B,K.value,K)}}set(D,B,K={}){var Ye,ut,at,ct,ht;if(B===void 0)return this.delete(D),this;const{ttl:ne=this.ttl,start:fe,noDisposeOnSet:ge=this.noDisposeOnSet,sizeCalculation:Le=this.sizeCalculation,status:ee}=K;let{noUpdateTTL:Oe=this.noUpdateTTL}=K;const De=me(this,M).call(this,D,B,K.size||0,Le);if(this.maxEntrySize&&De>this.maxEntrySize)return ee&&(ee.set="miss",ee.maxEntrySizeExceeded=!0),this.delete(D),this;let Ue=me(this,w)===0?void 0:me(this,O).get(D);if(Ue===void 0)Ue=me(this,w)===0?me(this,N):me(this,V).length!==0?me(this,V).pop():me(this,w)===me(this,y)?pt(this,se,zw).call(this,!1):me(this,w),me(this,L)[Ue]=D,me(this,F)[Ue]=B,me(this,O).set(D,Ue),me(this,x)[me(this,N)]=Ue,me(this,P)[Ue]=me(this,N),wt(this,N,Ue),tv(this,w)._++,me(this,z).call(this,Ue,De,ee),ee&&(ee.set="add"),Oe=!1;else{pt(this,Ce,D_).call(this,Ue);const te=me(this,F)[Ue];if(B!==te){if(me(this,he)&&pt(this,_e,Sr).call(this,te)){te.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:S}=te;S!==void 0&&!ge&&(me(this,Y)&&((Ye=me(this,b))==null||Ye.call(this,S,D,"set")),me(this,Te)&&((ut=me(this,$))==null||ut.push([S,D,"set"])))}else ge||(me(this,Y)&&((at=me(this,b))==null||at.call(this,te,D,"set")),me(this,Te)&&((ct=me(this,$))==null||ct.push([te,D,"set"])));if(me(this,Se).call(this,Ue),me(this,z).call(this,Ue,De,ee),me(this,F)[Ue]=B,ee){ee.set="replace";const S=te&&pt(this,_e,Sr).call(this,te)?te.__staleWhileFetching:te;S!==void 0&&(ee.oldValue=S)}}else ee&&(ee.set="update")}if(ne!==0&&!me(this,X)&&pt(this,Ne,rN).call(this),me(this,X)&&(Oe||me(this,xe).call(this,Ue,ne,fe),ee&&me(this,ce).call(this,ee,Ue)),!ge&&me(this,Te)&&me(this,$)){const te=me(this,$);let S;for(;S=te==null?void 0:te.shift();)(ht=me(this,v))==null||ht.call(this,...S)}return this}pop(){var D;try{for(;me(this,w);){const B=me(this,F)[me(this,j)];if(pt(this,se,zw).call(this,!0),pt(this,_e,Sr).call(this,B)){if(B.__staleWhileFetching)return B.__staleWhileFetching}else if(B!==void 0)return B}}finally{if(me(this,Te)&&me(this,$)){const B=me(this,$);let K;for(;K=B==null?void 0:B.shift();)(D=me(this,v))==null||D.call(this,...K)}}}has(D,B={}){const{updateAgeOnHas:K=this.updateAgeOnHas,status:ne}=B,fe=me(this,O).get(D);if(fe!==void 0){const ge=me(this,F)[fe];if(pt(this,_e,Sr).call(this,ge)&&ge.__staleWhileFetching===void 0)return!1;if(me(this,Pe).call(this,fe))ne&&(ne.has="stale",me(this,ce).call(this,ne,fe));else return K&&me(this,de).call(this,fe),ne&&(ne.has="hit",me(this,ce).call(this,ne,fe)),!0}else ne&&(ne.has="miss");return!1}peek(D,B={}){const{allowStale:K=this.allowStale}=B,ne=me(this,O).get(D);if(ne===void 0||!K&&me(this,Pe).call(this,ne))return;const fe=me(this,F)[ne];return pt(this,_e,Sr).call(this,fe)?fe.__staleWhileFetching:fe}async fetch(D,B={}){const{allowStale:K=this.allowStale,updateAgeOnGet:ne=this.updateAgeOnGet,noDeleteOnStaleGet:fe=this.noDeleteOnStaleGet,ttl:ge=this.ttl,noDisposeOnSet:Le=this.noDisposeOnSet,size:ee=0,sizeCalculation:Oe=this.sizeCalculation,noUpdateTTL:De=this.noUpdateTTL,noDeleteOnFetchRejection:Ue=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:Ye=this.allowStaleOnFetchRejection,ignoreFetchAbort:ut=this.ignoreFetchAbort,allowStaleOnFetchAbort:at=this.allowStaleOnFetchAbort,context:ct,forceRefresh:ht=!1,status:te,signal:S}=B;if(!me(this,he))return te&&(te.fetch="get"),this.get(D,{allowStale:K,updateAgeOnGet:ne,noDeleteOnStaleGet:fe,status:te});const A={allowStale:K,updateAgeOnGet:ne,noDeleteOnStaleGet:fe,ttl:ge,noDisposeOnSet:Le,size:ee,sizeCalculation:Oe,noUpdateTTL:De,noDeleteOnFetchRejection:Ue,allowStaleOnFetchRejection:Ye,allowStaleOnFetchAbort:at,ignoreFetchAbort:ut,status:te,signal:S};let C=me(this,O).get(D);if(C===void 0){te&&(te.fetch="miss");const J=pt(this,le,Gw).call(this,D,C,A,ct);return J.__returned=J}else{const J=me(this,F)[C];if(pt(this,_e,Sr).call(this,J)){const Je=K&&J.__staleWhileFetching!==void 0;return te&&(te.fetch="inflight",Je&&(te.returnedStale=!0)),Je?J.__staleWhileFetching:J.__returned=J}const ie=me(this,Pe).call(this,C);if(!ht&&!ie)return te&&(te.fetch="hit"),pt(this,Ce,D_).call(this,C),ne&&me(this,de).call(this,C),te&&me(this,ce).call(this,te,C),J;const be=pt(this,le,Gw).call(this,D,C,A,ct),Fe=be.__staleWhileFetching!==void 0&&K;return te&&(te.fetch=ie?"stale":"refresh",Fe&&ie&&(te.returnedStale=!0)),Fe?be.__staleWhileFetching:be.__returned=be}}get(D,B={}){const{allowStale:K=this.allowStale,updateAgeOnGet:ne=this.updateAgeOnGet,noDeleteOnStaleGet:fe=this.noDeleteOnStaleGet,status:ge}=B,Le=me(this,O).get(D);if(Le!==void 0){const ee=me(this,F)[Le],Oe=pt(this,_e,Sr).call(this,ee);return ge&&me(this,ce).call(this,ge,Le),me(this,Pe).call(this,Le)?(ge&&(ge.get="stale"),Oe?(ge&&K&&ee.__staleWhileFetching!==void 0&&(ge.returnedStale=!0),K?ee.__staleWhileFetching:void 0):(fe||this.delete(D),ge&&K&&(ge.returnedStale=!0),K?ee:void 0)):(ge&&(ge.get="hit"),Oe?ee.__staleWhileFetching:(pt(this,Ce,D_).call(this,Le),ne&&me(this,de).call(this,Le),ee))}else ge&&(ge.get="miss")}delete(D){var K,ne,fe,ge;let B=!1;if(me(this,w)!==0){const Le=me(this,O).get(D);if(Le!==void 0)if(B=!0,me(this,w)===1)this.clear();else{me(this,Se).call(this,Le);const ee=me(this,F)[Le];if(pt(this,_e,Sr).call(this,ee)?ee.__abortController.abort(new Error("deleted")):(me(this,Y)||me(this,Te))&&(me(this,Y)&&((K=me(this,b))==null||K.call(this,ee,D,"delete")),me(this,Te)&&((ne=me(this,$))==null||ne.push([ee,D,"delete"]))),me(this,O).delete(D),me(this,L)[Le]=void 0,me(this,F)[Le]=void 0,Le===me(this,N))wt(this,N,me(this,P)[Le]);else if(Le===me(this,j))wt(this,j,me(this,x)[Le]);else{const Oe=me(this,P)[Le];me(this,x)[Oe]=me(this,x)[Le];const De=me(this,x)[Le];me(this,P)[De]=me(this,P)[Le]}tv(this,w)._--,me(this,V).push(Le)}}if(me(this,Te)&&((fe=me(this,$))!=null&&fe.length)){const Le=me(this,$);let ee;for(;ee=Le==null?void 0:Le.shift();)(ge=me(this,v))==null||ge.call(this,...ee)}return B}clear(){var D,B,K;for(const ne of pt(this,R,Qo).call(this,{allowStale:!0})){const fe=me(this,F)[ne];if(pt(this,_e,Sr).call(this,fe))fe.__abortController.abort(new Error("deleted"));else{const ge=me(this,L)[ne];me(this,Y)&&((D=me(this,b))==null||D.call(this,fe,ge,"delete")),me(this,Te)&&((B=me(this,$))==null||B.push([fe,ge,"delete"]))}}if(me(this,O).clear(),me(this,F).fill(void 0),me(this,L).fill(void 0),me(this,X)&&me(this,H)&&(me(this,X).fill(0),me(this,H).fill(0)),me(this,q)&&me(this,q).fill(0),wt(this,j,0),wt(this,N,0),me(this,V).length=0,wt(this,E,0),wt(this,w,0),me(this,Te)&&me(this,$)){const ne=me(this,$);let fe;for(;fe=ne==null?void 0:ne.shift();)(K=me(this,v))==null||K.call(this,...fe)}}};Z=Symbol.toStringTag,y=new WeakMap,g=new WeakMap,b=new WeakMap,v=new WeakMap,_=new WeakMap,w=new WeakMap,E=new WeakMap,O=new WeakMap,L=new WeakMap,F=new WeakMap,x=new WeakMap,P=new WeakMap,j=new WeakMap,N=new WeakMap,V=new WeakMap,$=new WeakMap,q=new WeakMap,H=new WeakMap,X=new WeakMap,Y=new WeakMap,he=new WeakMap,Te=new WeakMap,Ne=new WeakSet,rN=function(){const D=new l(me(this,y)),B=new l(me(this,y));wt(this,X,D),wt(this,H,B),wt(this,xe,(fe,ge,Le=t.now())=>{if(B[fe]=ge!==0?Le:0,D[fe]=ge,ge!==0&&this.ttlAutopurge){const ee=setTimeout(()=>{me(this,Pe).call(this,fe)&&this.delete(me(this,L)[fe])},ge+1);ee.unref&&ee.unref()}}),wt(this,de,fe=>{B[fe]=D[fe]!==0?t.now():0}),wt(this,ce,(fe,ge)=>{if(D[ge]){const Le=D[ge],ee=B[ge];if(!Le||!ee)return;fe.ttl=Le,fe.start=ee,fe.now=K||ne();const Oe=fe.now-ee;fe.remainingTTL=Le-Oe}});let K=0;const ne=()=>{const fe=t.now();if(this.ttlResolution>0){K=fe;const ge=setTimeout(()=>K=0,this.ttlResolution);ge.unref&&ge.unref()}return fe};this.getRemainingTTL=fe=>{const ge=me(this,O).get(fe);if(ge===void 0)return 0;const Le=D[ge],ee=B[ge];if(!Le||!ee)return 1/0;const Oe=(K||ne())-ee;return Le-Oe},wt(this,Pe,fe=>{const ge=B[fe],Le=D[fe];return!!Le&&!!ge&&(K||ne())-ge>Le})},de=new WeakMap,ce=new WeakMap,xe=new WeakMap,Pe=new WeakMap,we=new WeakSet,Hee=function(){const D=new l(me(this,y));wt(this,E,0),wt(this,q,D),wt(this,Se,B=>{wt(this,E,me(this,E)-D[B]),D[B]=0}),wt(this,M,(B,K,ne,fe)=>{if(pt(this,_e,Sr).call(this,K))return 0;if(!u(ne))if(fe){if(typeof fe!="function")throw new TypeError("sizeCalculation must be a function");if(ne=fe(K,B),!u(ne))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return ne}),wt(this,z,(B,K,ne)=>{if(D[B]=K,me(this,g)){const fe=me(this,g)-D[B];for(;me(this,E)>fe;)pt(this,se,zw).call(this,!0)}wt(this,E,me(this,E)+D[B]),ne&&(ne.entrySize=K,ne.totalCalculatedSize=me(this,E))})},Se=new WeakMap,z=new WeakMap,M=new WeakMap,k=new WeakSet,Ho=function*({allowStale:D=this.allowStale}={}){if(me(this,w))for(let B=me(this,N);!(!pt(this,G,nN).call(this,B)||((D||!me(this,Pe).call(this,B))&&(yield B),B===me(this,j)));)B=me(this,P)[B]},R=new WeakSet,Qo=function*({allowStale:D=this.allowStale}={}){if(me(this,w))for(let B=me(this,j);!(!pt(this,G,nN).call(this,B)||((D||!me(this,Pe).call(this,B))&&(yield B),B===me(this,N)));)B=me(this,x)[B]},G=new WeakSet,nN=function(D){return D!==void 0&&me(this,O).get(me(this,L)[D])===D},se=new WeakSet,zw=function(D){var fe,ge;const B=me(this,j),K=me(this,L)[B],ne=me(this,F)[B];return me(this,he)&&pt(this,_e,Sr).call(this,ne)?ne.__abortController.abort(new Error("evicted")):(me(this,Y)||me(this,Te))&&(me(this,Y)&&((fe=me(this,b))==null||fe.call(this,ne,K,"evict")),me(this,Te)&&((ge=me(this,$))==null||ge.push([ne,K,"evict"]))),me(this,Se).call(this,B),D&&(me(this,L)[B]=void 0,me(this,F)[B]=void 0,me(this,V).push(B)),me(this,w)===1?(wt(this,j,wt(this,N,0)),me(this,V).length=0):wt(this,j,me(this,x)[B]),me(this,O).delete(K),tv(this,w)._--,B},le=new WeakSet,Gw=function(D,B,K,ne){const fe=B===void 0?void 0:me(this,F)[B];if(pt(this,_e,Sr).call(this,fe))return fe;const ge=new a,{signal:Le}=K;Le==null||Le.addEventListener("abort",()=>ge.abort(Le.reason),{signal:ge.signal});const ee={signal:ge.signal,options:K,context:ne},Oe=(ct,ht=!1)=>{const{aborted:te}=ge.signal,S=K.ignoreFetchAbort&&ct!==void 0;if(K.status&&(te&&!ht?(K.status.fetchAborted=!0,K.status.fetchError=ge.signal.reason,S&&(K.status.fetchAbortIgnored=!0)):K.status.fetchResolved=!0),te&&!S&&!ht)return Ue(ge.signal.reason);const A=ut;return me(this,F)[B]===ut&&(ct===void 0?A.__staleWhileFetching?me(this,F)[B]=A.__staleWhileFetching:this.delete(D):(K.status&&(K.status.fetchUpdated=!0),this.set(D,ct,ee.options))),ct},De=ct=>(K.status&&(K.status.fetchRejected=!0,K.status.fetchError=ct),Ue(ct)),Ue=ct=>{const{aborted:ht}=ge.signal,te=ht&&K.allowStaleOnFetchAbort,S=te||K.allowStaleOnFetchRejection,A=S||K.noDeleteOnFetchRejection,C=ut;if(me(this,F)[B]===ut&&(!A||C.__staleWhileFetching===void 0?this.delete(D):te||(me(this,F)[B]=C.__staleWhileFetching)),S)return K.status&&C.__staleWhileFetching!==void 0&&(K.status.returnedStale=!0),C.__staleWhileFetching;if(C.__returned===C)throw ct},Ye=(ct,ht)=>{var S;const te=(S=me(this,_))==null?void 0:S.call(this,D,fe,ee);te&&te instanceof Promise&&te.then(A=>ct(A===void 0?void 0:A),ht),ge.signal.addEventListener("abort",()=>{(!K.ignoreFetchAbort||K.allowStaleOnFetchAbort)&&(ct(void 0),K.allowStaleOnFetchAbort&&(ct=A=>Oe(A,!0)))})};K.status&&(K.status.fetchDispatched=!0);const ut=new Promise(Ye).then(Oe,De),at=Object.assign(ut,{__abortController:ge,__staleWhileFetching:fe,__returned:void 0});return B===void 0?(this.set(D,at,{...ee.options,status:void 0}),B=me(this,O).get(D)):me(this,F)[B]=at,at},_e=new WeakSet,Sr=function(D){if(!me(this,he))return!1;const B=D;return!!B&&B instanceof Promise&&B.hasOwnProperty("__staleWhileFetching")&&B.__abortController instanceof a},Ee=new WeakSet,iN=function(D,B){me(this,P)[B]=D,me(this,x)[D]=B},Ce=new WeakSet,D_=function(D){D!==me(this,N)&&(D===me(this,j)?wt(this,j,me(this,x)[D]):pt(this,Ee,iN).call(this,me(this,P)[D],me(this,x)[D]),pt(this,Ee,iN).call(this,me(this,N),D),wt(this,N,D))};let f=qe;return Fy.LRUCache=f,Fy}var dU;function jCe(){if(dU)return My;dU=1,Object.defineProperty(My,"__esModule",{value:!0}),My.ActorQueryOperationReducedHash=void 0;const t=Tt(),e=ju();let r=class extends t.ActorQueryOperationTypedMediated{constructor(a){super(a,"reduced")}async testOperation(a,s){return!0}async runOperation(a,s){const o=t.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:a.input,context:s}));return{type:"bindings",bindingsStream:o.bindingsStream.filter(await this.newHashFilter(s)),metadata:o.metadata}}async newHashFilter(a){const{hashFunction:s}=await this.mediatorHashBindings.mediate({allowHashCollisions:!0,context:a}),o=new e.LRUCache({max:this.cacheSize});return u=>{const c=s(u);return o.has(c)?!1:(o.set(c,!0),!0)}}};return My.ActorQueryOperationReducedHash=r,My}var fU;function MCe(){return fU||(fU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(jCe(),t)}(JR)),JR}var XR={},By={},hU;function FCe(){if(hU)return By;hU=1,Object.defineProperty(By,"__esModule",{value:!0}),By.ActorQueryOperationSlice=void 0;const t=Tt(),e=qt;let r=class extends t.ActorQueryOperationTypedMediated{constructor(a){super(a,"slice")}async testOperation(a,s){return!0}async runOperation(a,s){a.length&&(s=s.set(e.KeysQueryOperation.limitIndicator,a.length));const o=await this.mediatorQueryOperation.mediate({operation:a.input,context:s});if(o.type==="bindings")return{type:"bindings",bindingsStream:this.sliceStream(o.bindingsStream,a),metadata:this.sliceMetadata(o,a)};if(o.type==="quads")return{type:"quads",quadStream:this.sliceStream(o.quadStream,a),metadata:this.sliceMetadata(o,a)};throw new Error(`Invalid query output type: Expected 'bindings' or 'quads' but got '${o.type}'`)}sliceStream(a,s){const o=!!s.length||s.length===0,{start:u}=s,c=o?s.start+s.length-1:Number.POSITIVE_INFINITY;return a.transform({offset:u,limit:Math.max(c-u+1,0),autoStart:!1})}sliceMetadata(a,s){const o=!!s.length||s.length===0;return()=>a.metadata().then(u=>{const c={...u.cardinality};return Number.isFinite(c.value)&&(c.value=Math.max(0,c.value-s.start),o&&(c.value=Math.min(c.value,s.length))),{...u,cardinality:c}})}};return By.ActorQueryOperationSlice=r,By}var pU;function BCe(){return pU||(pU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(FCe(),t)}(XR)),XR}var YR={},qy={},yU;function qCe(){if(yU)return qy;yU=1,Object.defineProperty(qy,"__esModule",{value:!0}),qy.ActorQueryOperationUnion=void 0;const t=Tt(),e=ci(),r=Mt,n=In();let a=class Ww extends t.ActorQueryOperationTypedMediated{constructor(o){super(o,"union")}static unionVariables(o){return(0,n.uniqTerms)(o.flat())}static async unionMetadata(o,u,c,l){let d=(await l.mediate({mode:"initialize",context:c})).metadata;for(const h of o)d={...h,...(await l.mediate({mode:"append",accumulatedMetadata:d,appendingMetadata:h,context:c})).metadata};d.state=new e.MetadataValidationState;const f=()=>d.state.invalidate();for(const h of o)h.state.addInvalidateListener(f);return u&&(d.variables=Ww.unionVariables(o.map(h=>h.variables))),d}async testOperation(o,u){return!0}async runOperation(o,u){const c=await Promise.all(o.input.map(d=>this.mediatorQueryOperation.mediate({operation:d,context:u})));let l;for(const d of c)if(l===void 0)l=d.type;else if(l!==d.type)throw new Error(`Unable to union ${l} and ${d.type}`);if(l==="bindings"||o.input.length===0){const d=c.map(t.ActorQueryOperation.getSafeBindings);return{type:"bindings",bindingsStream:new r.UnionIterator(d.map(p=>p.bindingsStream),{autoStart:!1}),metadata:()=>Promise.all(d.map(p=>p.metadata())).then(p=>Ww.unionMetadata(p,!0,u,this.mediatorRdfMetadataAccumulate))}}if(l==="quads"){const d=c.map(t.ActorQueryOperation.getSafeQuads);return{type:"quads",quadStream:new r.UnionIterator(d.map(p=>p.quadStream),{autoStart:!1}),metadata:()=>Promise.all(d.map(p=>p.metadata())).then(p=>Ww.unionMetadata(p,!1,u,this.mediatorRdfMetadataAccumulate))}}throw new Error(`Unable to union ${l}`)}};return qy.ActorQueryOperationUnion=a,qy}var mU;function Qee(){return mU||(mU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(qCe(),t)}(YR)),YR}var ZR={},$y={},ex={},Uy={},ky={},gU;function zee(){if(gU)return ky;gU=1,Object.defineProperty(ky,"__esModule",{value:!0}),ky.PathVariableObjectIterator=void 0;const t=Tt(),e=Mt,r=Ot,n=nr,a=xt(),s=new r.DataFactory,o=new a.Factory;let u=class extends e.BufferedIterator{constructor(l,d,f,h,p,m,y=16){super({autoStart:!0}),this.subject=l,this.predicate=d,this.graph=f,this.context=h,this.mediatorQueryOperation=p,this.maxRunningOperations=y,this.termHashes=new Map,this.runningOperations=[],this.pendingOperations=[],this._push(this.subject,m)}_end(l){for(const d of this.runningOperations)d.destroy();super._end(l)}_push(l,d=!0){let f;if(d&&(f=(0,n.termToString)(l),this.termHashes.has(f)))return;const h=s.variable("b");this.pendingOperations.push({variable:h,operation:o.createPath(l,this.predicate,h,this.graph)}),f&&(this.termHashes.set(f,l),super._push(l))}_read(l,d){const f=this;(async function(){for(;f.runningOperations.lengthf.destroy(b)),g.on("readable",()=>{f.readable=!0,f._fillBufferAsync()}),g.on("end",()=>{f.runningOperations.splice(f.runningOperations.indexOf(g),1),f.readable=!0,f._fillBufferAsync()})),f.setProperty("metadata",y.metadata)}let h=0,p;for(;h!==(h=l);)for(let m=0;m0;m++)(p=f.runningOperations[m].read())!==null&&(l--,f._push(p));f.runningOperations.length===0&&f.pendingOperations.length===0&&f.close()})().then(()=>{d()},h=>this.destroy(h))}};return ky.PathVariableObjectIterator=u,ky}var _U;function $Ce(){if(_U)return Uy;_U=1,Object.defineProperty(Uy,"__esModule",{value:!0}),Uy.ActorAbstractPath=void 0;const t=Tt(),e=qt,r=Mt,n=Ot,a=nr,s=xt(),o=zee(),u=new n.DataFactory;let c=class Ks extends t.ActorQueryOperationTypedMediated{constructor(d,f){super(d,"path"),this.predicateType=f}async testOperation(d,f){if(d.predicate.type!==this.predicateType)throw new Error(`This Actor only supports ${this.predicateType} Path operations.`);return!0}generateVariable(d,f){return f?d&&(d.subject.value===f||d.object.value===f)?this.generateVariable(d,`${f}b`):u.variable(f):this.generateVariable(d,"b")}async isPathArbitraryLengthDistinct(d,f){return d.get(e.KeysQueryOperation.isPathArbitraryLengthDistinctKey)?(d=d.set(e.KeysQueryOperation.isPathArbitraryLengthDistinctKey,!1),{context:d,operation:void 0}):(d=d.set(e.KeysQueryOperation.isPathArbitraryLengthDistinctKey,!0),{context:d,operation:t.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:Ks.FACTORY.createDistinct(f),context:d}))})}async predicateStarGraphVariable(d,f,h,p,m,y){const g=this.getPathSources(h),b=this.generateVariable(Ks.FACTORY.createPath(d,h,f,p)),v=Ks.FACTORY.createUnion([this.assignPatternSources(Ks.FACTORY.createPattern(d,b,f,p),g),this.assignPatternSources(Ks.FACTORY.createPattern(f,b,d,p),g)]),_=t.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({context:m,operation:v})),w=new Set;return{bindingsStream:new r.MultiTransformIterator(_.bindingsStream,{multiTransform:O=>{const L=O.get(p);return w.has(L.value)?new r.EmptyIterator:(w.add(L.value),new r.TransformIterator(async()=>{const F=new r.BufferedIterator;return await this.getObjectsPredicateStar(d,h,L,m,{},F,{count:0}),F.transform({transform(x,P,j){j(y.bindings([[f,x],[p,L]])),P()}})},{maxBufferSize:128}))},autoStart:!1}),metadata:_.metadata}}async getObjectsPredicateStarEval(d,f,h,p,m,y,g){if(p.termType==="Variable")return this.predicateStarGraphVariable(d,h,f,p,m,g);const b=new o.PathVariableObjectIterator(d,f,p,m,this.mediatorQueryOperation,y);return{bindingsStream:b.transform({autoStart:!1,transform(_,w,E){E(g.bindings([[h,_]])),w()}}),async metadata(){const _=await new Promise(w=>{b.getProperty("metadata",E=>w(E()))});return _.cardinality.value++,_}}}async getObjectsPredicateStar(d,f,h,p,m,y,g){const b=(0,a.termToString)(d);if(m[b])return;y._push(d),m[b]=d,g.count++;const v=this.generateVariable(),_=Ks.FACTORY.createPath(d,f,v,h),w=t.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:_,context:p}));return w.bindingsStream.on("data",async E=>{const O=E.get(v);await this.getObjectsPredicateStar(O,f,h,p,m,y,g)}),w.bindingsStream.on("end",()=>{--g.count===0&&y.close()}),w.metadata}async getSubjectAndObjectBindingsPredicateStar(d,f,h,p,m,y,g,b,v,_,w,E){const O=(0,a.termToString)(p)+(0,a.termToString)(y);if(v[O])return;if(w.count++,v[O]=!0,_._push(E.bindings([[d,h],[f,p]])),O in b){const F=await b[O];for(const x of F)await this.getSubjectAndObjectBindingsPredicateStar(d,f,h,x,m,y,g,b,v,_,w,E);--w.count===0&&_.close();return}const L=new Promise(async(F,x)=>{const P=[],j=this.generateVariable(),N=Ks.FACTORY.createPath(p,m,j,y),V=t.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:N,context:g}));V.bindingsStream.on("data",async $=>{const q=$.get(j);P.push(q),await this.getSubjectAndObjectBindingsPredicateStar(d,f,h,q,m,y,g,b,v,_,w,E)}),V.bindingsStream.on("error",x),V.bindingsStream.on("end",()=>{--w.count===0&&_.close(),F(P)})});b[O]=L}getPathSources(d){switch(d.type){case s.Algebra.types.ALT:case s.Algebra.types.SEQ:return d.input.flatMap(f=>this.getPathSources(f));case s.Algebra.types.INV:case s.Algebra.types.ONE_OR_MORE_PATH:case s.Algebra.types.ZERO_OR_MORE_PATH:case s.Algebra.types.ZERO_OR_ONE_PATH:return this.getPathSources(d.path);case s.Algebra.types.LINK:case s.Algebra.types.NPS:{const f=t.ActorQueryOperation.getOperationSource(d);if(!f)throw new Error("Could not find a required source on a link path operation");return[f]}}}assignPatternSources(d,f){if(f.length===0)throw new Error("Attempted to assign zero sources to a pattern during property path handling");return f.length===1?t.ActorQueryOperation.assignOperationSource(d,f[0]):Ks.FACTORY.createUnion(f.map(h=>t.ActorQueryOperation.assignOperationSource(d,h)),!0)}};return Uy.ActorAbstractPath=c,c.FACTORY=new s.Factory,Uy}var bU;function Mu(){return bU||(bU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r($Ce(),t),r(zee(),t)}(ex)),ex}var vU;function UCe(){if(vU)return $y;vU=1,Object.defineProperty($y,"__esModule",{value:!0}),$y.ActorQueryOperationPathAlt=void 0;const t=Mu(),e=Qee(),r=Tt(),n=Mt,a=xt();let s=class extends t.ActorAbstractPath{constructor(u){super(u,a.Algebra.types.ALT)}async runOperation(u,c){const l=u.predicate,d=(await Promise.all(l.input.map(p=>this.mediatorQueryOperation.mediate({context:c,operation:t.ActorAbstractPath.FACTORY.createPath(u.subject,p,u.object,u.graph)})))).map(r.ActorQueryOperation.getSafeBindings);return{type:"bindings",bindingsStream:new n.UnionIterator(d.map(p=>p.bindingsStream),{autoStart:!1}),metadata:()=>Promise.all(d.map(p=>p.metadata())).then(p=>e.ActorQueryOperationUnion.unionMetadata(p,!0,c,this.mediatorRdfMetadataAccumulate))}}};return $y.ActorQueryOperationPathAlt=s,$y}var wU;function kCe(){return wU||(wU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(UCe(),t)}(ZR)),ZR}var tx={},Vy={},SU;function VCe(){if(SU)return Vy;SU=1,Object.defineProperty(Vy,"__esModule",{value:!0}),Vy.ActorQueryOperationPathInv=void 0;const t=Mu(),e=xt();let r=class extends t.ActorAbstractPath{constructor(a){super(a,e.Algebra.types.INV)}async runOperation(a,s){const o=a.predicate,u=t.ActorAbstractPath.FACTORY.createPath(a.object,o.path,a.subject,a.graph);return this.mediatorQueryOperation.mediate({operation:u,context:s})}};return Vy.ActorQueryOperationPathInv=r,Vy}var TU;function HCe(){return TU||(TU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(VCe(),t)}(tx)),tx}var rx={},Hy={},EU;function QCe(){if(EU)return Hy;EU=1,Object.defineProperty(Hy,"__esModule",{value:!0}),Hy.ActorQueryOperationPathLink=void 0;const t=Mu(),e=xt();let r=class extends t.ActorAbstractPath{constructor(a){super(a,e.Algebra.types.LINK)}async runOperation(a,s){const o=a.predicate,u=Object.assign(t.ActorAbstractPath.FACTORY.createPattern(a.subject,o.iri,a.object,a.graph),{metadata:o.metadata});return this.mediatorQueryOperation.mediate({operation:u,context:s})}};return Hy.ActorQueryOperationPathLink=r,Hy}var AU;function zCe(){return AU||(AU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(QCe(),t)}(rx)),rx}var nx={},Qy={},OU;function GCe(){if(OU)return Qy;OU=1,Object.defineProperty(Qy,"__esModule",{value:!0}),Qy.ActorQueryOperationPathNps=void 0;const t=Mu(),e=Tt(),r=xt();let n=class extends t.ActorAbstractPath{constructor(s){super(s,r.Algebra.types.NPS)}async runOperation(s,o){const u=s.predicate,c=this.generateVariable(s),l=Object.assign(t.ActorAbstractPath.FACTORY.createPattern(s.subject,c,s.object,s.graph),{metadata:u.metadata}),d=e.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:l,context:o}));return{type:"bindings",bindingsStream:d.bindingsStream.map(h=>u.iris.some(p=>p.equals(h.get(c)))?null:h.delete(c)),metadata:d.metadata}}};return Qy.ActorQueryOperationPathNps=n,Qy}var RU;function WCe(){return RU||(RU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(GCe(),t)}(nx)),nx}var ix={},zy={},xU;function KCe(){if(xU)return zy;xU=1,Object.defineProperty(zy,"__esModule",{value:!0}),zy.ActorQueryOperationClear=void 0;const t=Tt(),e=Ot,r=new e.DataFactory;let n=class extends t.ActorQueryOperationTypedMediated{constructor(s){super(s,"clear")}async testOperation(s,o){return t.ActorQueryOperation.throwOnReadOnly(o),!0}async runOperation(s,o){let u;s.source==="DEFAULT"?u=r.defaultGraph():typeof s.source=="string"?u=s.source:u=[s.source];const{execute:c}=await this.mediatorUpdateQuads.mediate({deleteGraphs:{graphs:u,requireExistence:!s.silent,dropGraphs:!1},context:o});return{type:"void",execute:c}}};return zy.ActorQueryOperationClear=n,zy}var IU;function JCe(){return IU||(IU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(KCe(),t)}(ix)),ix}var ax={},Gy={},PU;function XCe(){if(PU)return Gy;PU=1,Object.defineProperty(Gy,"__esModule",{value:!0}),Gy.ActorQueryOperationUpdateCompositeUpdate=void 0;const t=Tt();let e=class extends t.ActorQueryOperationTypedMediated{constructor(n){super(n,"compositeupdate")}async testOperation(n,a){return t.ActorQueryOperation.throwOnReadOnly(a),!0}async runOperation(n,a){return{type:"void",execute:()=>(async()=>{for(const o of n.updates)await t.ActorQueryOperation.getSafeVoid(await this.mediatorQueryOperation.mediate({operation:o,context:a})).execute()})()}}};return Gy.ActorQueryOperationUpdateCompositeUpdate=e,Gy}var NU;function YCe(){return NU||(NU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(XCe(),t)}(ax)),ax}var sx={},Wy={},DU;function ZCe(){if(DU)return Wy;DU=1,Object.defineProperty(Wy,"__esModule",{value:!0}),Wy.ActorQueryOperationCreate=void 0;const t=Tt();let e=class extends t.ActorQueryOperationTypedMediated{constructor(n){super(n,"create")}async testOperation(n,a){return t.ActorQueryOperation.throwOnReadOnly(a),!0}async runOperation(n,a){const{execute:s}=await this.mediatorUpdateQuads.mediate({createGraphs:{graphs:[n.source],requireNonExistence:!n.silent},context:a});return{type:"void",execute:s}}};return Wy.ActorQueryOperationCreate=e,Wy}var CU;function e4e(){return CU||(CU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(ZCe(),t)}(sx)),sx}var ox={},Ky={},LU;function t4e(){if(LU)return Ky;LU=1,Object.defineProperty(Ky,"__esModule",{value:!0}),Ky.ActorQueryOperationDrop=void 0;const t=Tt(),e=Ot,r=new e.DataFactory;let n=class extends t.ActorQueryOperationTypedMediated{constructor(s){super(s,"drop")}async testOperation(s,o){return t.ActorQueryOperation.throwOnReadOnly(o),!0}async runOperation(s,o){let u;s.source==="DEFAULT"?u=r.defaultGraph():typeof s.source=="string"?u=s.source:u=[s.source];const{execute:c}=await this.mediatorUpdateQuads.mediate({deleteGraphs:{graphs:u,requireExistence:!s.silent,dropGraphs:!0},context:o});return{type:"void",execute:c}}};return Ky.ActorQueryOperationDrop=n,Ky}var jU;function r4e(){return jU||(jU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(t4e(),t)}(ox)),ox}var ux={},Jy={},MU;function n4e(){if(MU)return Jy;MU=1,Object.defineProperty(Jy,"__esModule",{value:!0}),Jy.ActorQueryOperationLoad=void 0;const t=Tt(),e=qt,r=Ot,n=xt(),a=new r.DataFactory;let s=class Gee extends t.ActorQueryOperationTypedMediated{constructor(u){super(u,"load"),this.factory=new n.Factory}async testOperation(u,c){return t.ActorQueryOperation.throwOnReadOnly(c),!0}async runOperation(u,c){let l=c;u.silent&&(l=l.set(e.KeysInitQuery.lenient,!0));const{querySource:d}=await this.mediatorQuerySourceIdentify.mediate({querySourceUnidentified:{value:u.source.value},context:l});let h=Gee.getSafeQuads(await this.mediatorQueryOperation.mediate({operation:this.factory.createConstruct(t.ActorQueryOperation.assignOperationSource(this.factory.createPattern(a.variable("s"),a.variable("p"),a.variable("o")),d),[this.factory.createPattern(a.variable("s"),a.variable("p"),a.variable("o"))]),context:l})).quadStream;u.destination&&(h=h.map(m=>a.quad(m.subject,m.predicate,m.object,u.destination)));const{execute:p}=await this.mediatorUpdateQuads.mediate({quadStreamInsert:h,context:c});return{type:"void",execute:p}}};return Jy.ActorQueryOperationLoad=s,Jy}var FU;function i4e(){return FU||(FU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(n4e(),t)}(ux)),ux}var cx={},Xy={},BU;function a4e(){if(BU)return Xy;BU=1,Object.defineProperty(Xy,"__esModule",{value:!0}),Xy.ActorQueryOperationJoin=void 0;const t=Tt();let e=class extends t.ActorQueryOperationTypedMediated{constructor(n){super(n,"join")}async testOperation(n,a){return!0}async runOperation(n,a){const s=(await Promise.all(n.input.map(async o=>({output:await this.mediatorQueryOperation.mediate({operation:o,context:a}),operation:o})))).map(({output:o,operation:u})=>({output:t.ActorQueryOperation.getSafeBindings(o),operation:u}));return this.mediatorJoin.mediate({type:"inner",entries:s,context:a})}};return Xy.ActorQueryOperationJoin=e,Xy}var qU;function s4e(){return qU||(qU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(a4e(),t)}(cx)),cx}var lx={},Yy={},$U;function o4e(){if($U)return Yy;$U=1,Object.defineProperty(Yy,"__esModule",{value:!0}),Yy.ActorQueryOperationMinus=void 0;const t=Tt();let e=class extends t.ActorQueryOperationTypedMediated{constructor(n){super(n,"minus")}async testOperation(n,a){return!0}async runOperation(n,a){const s=(await Promise.all(n.input.map(async o=>({output:await this.mediatorQueryOperation.mediate({operation:o,context:a}),operation:o})))).map(({output:o,operation:u})=>({output:t.ActorQueryOperation.getSafeBindings(o),operation:u}));return this.mediatorJoin.mediate({type:"minus",entries:s,context:a})}};return Yy.ActorQueryOperationMinus=e,Yy}var UU;function u4e(){return UU||(UU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(o4e(),t)}(lx)),lx}var dx={},Zy={},kU;function c4e(){if(kU)return Zy;kU=1,Object.defineProperty(Zy,"__esModule",{value:!0}),Zy.ActorQueryOperationPathSeq=void 0;const t=Mu(),e=Tt(),r=xt();let n=class extends t.ActorAbstractPath{constructor(s){super(s,r.Algebra.types.SEQ)}async runOperation(s,o){const u=s.predicate;let c=s.subject;const l=[],d=await Promise.all(u.input.map((p,m)=>{const y=m===u.input.length-1?s.object:this.generateVariable(s,`b${m}`),g=t.ActorAbstractPath.FACTORY.createPath(c,p,y,s.graph),b=this.mediatorQueryOperation.mediate({context:o,operation:g});return c=y,m({output:e.ActorQueryOperation.getSafeBindings(await p),operation:m}))),f=e.ActorQueryOperation.getSafeBindings(await this.mediatorJoin.mediate({type:"inner",entries:d,context:o}));return{type:"bindings",bindingsStream:f.bindingsStream.transform({transform(p,m,y){for(const g of l)p=p.delete(g);y(p),m()}}),async metadata(){const p=await f.metadata(),m=p.variables.filter(y=>!l.some(g=>g.value===y.value));return{...p,variables:m}}}}};return Zy.ActorQueryOperationPathSeq=n,Zy}var VU;function l4e(){return VU||(VU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(c4e(),t)}(dx)),dx}var fx={},em={},HU;function d4e(){if(HU)return em;HU=1,Object.defineProperty(em,"__esModule",{value:!0}),em.ActorRdfJoinMultiSmallest=void 0;const t=Tt(),e=li(),r=xt();let n=class Wee extends e.ActorRdfJoin{constructor(s){super(s,{logicalType:"inner",physicalName:"multi-smallest",limitEntries:3,limitEntriesMin:!0,canHandleUndefs:!0,isLeaf:!1})}async sortJoinEntries(s,o){return(await this.mediatorJoinEntriesSort.mediate({entries:s,context:o})).entries}async getOutput(s){const o=await this.sortJoinEntries(await e.ActorRdfJoin.getEntriesWithMetadatas([...s.entries]),s.context),u=o[0],c=o[1];o.splice(0,2);const l={output:t.ActorQueryOperation.getSafeBindings(await this.mediatorJoin.mediate({type:s.type,entries:[u,c],context:s.context})),operation:Wee.FACTORY.createJoin([u.operation,c.operation],!1)};return o.push(l),{result:await this.mediatorJoin.mediate({type:s.type,entries:o,context:s.context})}}async getJoinCoefficients(s,o){o=[...o],o=(await this.sortJoinEntries(s.entries.map((d,f)=>({...d,metadata:o[f]})),s.context)).map(d=>d.metadata);const c=e.ActorRdfJoin.getRequestInitialTimes(o),l=e.ActorRdfJoin.getRequestItemTimes(o);return{iterations:o[0].cardinality.value*o[1].cardinality.value*o.slice(2).reduce((d,f)=>d*f.cardinality.value,1),persistedItems:0,blockingItems:0,requestTime:c[0]+o[0].cardinality.value*l[0]+c[1]+o[1].cardinality.value*l[1]+o.slice(2).reduce((d,f,h)=>d+c.slice(2)[h]+f.cardinality.value*l.slice(2)[h],0)}}};return em.ActorRdfJoinMultiSmallest=n,n.FACTORY=new r.Factory,em}var QU;function f4e(){return QU||(QU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(d4e(),t)}(fx)),fx}var hx={},tm={},px={},rm={},nm={},zU;function Kee(){if(zU)return nm;zU=1,Object.defineProperty(nm,"__esModule",{value:!0}),nm.bindingsToString=void 0;const t=nr;function e(r){const n={};for(const a of r.keys())n[a.value]=(0,t.termToString)(r.get(a));return JSON.stringify(n,null," ")}return nm.bindingsToString=e,nm}var GU;function Jee(){if(GU)return rm;GU=1,Object.defineProperty(rm,"__esModule",{value:!0}),rm.Bindings=void 0;const t=st,e=BC,r=Kee();let n=class Wi{constructor(s,o,u){this.type="bindings",this.dataFactory=s,this.entries=o,this.contextHolder=u}has(s){return this.entries.has(typeof s=="string"?s:s.value)}get(s){return this.entries.get(typeof s=="string"?s:s.value)}set(s,o){return new Wi(this.dataFactory,this.entries.set(typeof s=="string"?s:s.value,o),this.contextHolder)}delete(s){return new Wi(this.dataFactory,this.entries.delete(typeof s=="string"?s:s.value),this.contextHolder)}keys(){return this.mapIterable(this.iteratorToIterable(this.entries.keys()),s=>this.dataFactory.variable(s))}values(){return this.iteratorToIterable(this.entries.values())}forEach(s){for(const[o,u]of this.entries.entries())s(u,this.dataFactory.variable(o))}get size(){return this.entries.size}[Symbol.iterator](){return this.mapIterable(this.iteratorToIterable(this.entries.entries()),([s,o])=>[this.dataFactory.variable(s),o])[Symbol.iterator]()}equals(s){var o;if(!s)return!1;if(this===s)return!0;if(this.size!==s.size)return!1;for(const u of this.keys())if(!((o=this.get(u))!=null&&o.equals(s.get(u))))return!1;return!0}filter(s){return new Wi(this.dataFactory,(0,e.Map)(this.entries.filter((o,u)=>s(o,this.dataFactory.variable(u)))),this.contextHolder)}map(s){return new Wi(this.dataFactory,(0,e.Map)(this.entries.map((o,u)=>s(o,this.dataFactory.variable(u)))),this.contextHolder)}merge(s){const o=new Set([...this.iteratorToIterable(this.entries.keys()),...[...s.keys()].map(c=>c.value)]),u=[];for(const c of o){const l=this.entries.get(c),d=s.get(this.dataFactory.variable(c));if(l&&d&&!l.equals(d))return;const f=l||d;u.push([c,f])}return this.createBindingsWithContexts(u,s)}mergeWith(s,o){const u=new Set([...this.iteratorToIterable(this.entries.keys()),...[...o.keys()].map(l=>l.value)]),c=[];for(const l of u){const d=this.dataFactory.variable(l),f=this.entries.get(l),h=o.get(d);let p;f&&h&&!f.equals(h)?p=s(f,h,d):p=f||h,c.push([l,p])}return this.createBindingsWithContexts(c,o)}createBindingsWithContexts(s,o){if(this.contextHolder&&this.contextHolder.context){let u=this.contextHolder.context;return"contextHolder"in o&&o.contextHolder&&o.contextHolder.context&&(u=Wi.mergeContext(this.contextHolder.contextMergeHandlers,u,o.contextHolder.context)),new Wi(this.dataFactory,(0,e.Map)(s),{contextMergeHandlers:this.contextHolder.contextMergeHandlers,context:u})}return new Wi(this.dataFactory,(0,e.Map)(s),o.contextHolder)}static mergeContext(s,o,u){const c=[...o.keys(),...u.keys()],l={},d={},f=new Set(u.keys().map(p=>p.name)),h=o.keys().filter(p=>f.has(p.name));for(const p of c){if(d[p.name]===1)continue;d[p.name]=1;const m=h.some(y=>y.name===p.name);if(s[p.name]&&m){l[p.name]=s[p.name].run(o.get(p),u.get(p));continue}if(!(!s[p.name]&&m)){if(!o.get(p)){l[p.name]=u.get(p);continue}u.get(p)||(l[p.name]=o.get(p))}}return new t.ActionContext(l)}setContextEntry(s,o){return this.setContextEntryRaw(s,o)}setContextEntryRaw(s,o){var u;return this.contextHolder&&this.contextHolder.context?new Wi(this.dataFactory,this.entries,{contextMergeHandlers:this.contextHolder.contextMergeHandlers,context:this.contextHolder.context.set(s,o)}):new Wi(this.dataFactory,this.entries,{contextMergeHandlers:((u=this.contextHolder)==null?void 0:u.contextMergeHandlers)??{},context:new t.ActionContext().set(s,o)})}deleteContextEntry(s){return this.deleteContextEntryRaw(s)}deleteContextEntryRaw(s){var o;return this.contextHolder?new Wi(this.dataFactory,this.entries,{contextMergeHandlers:this.contextHolder.contextMergeHandlers,context:(o=this.contextHolder.context)==null?void 0:o.delete(s)}):new Wi(this.dataFactory,this.entries)}getContext(){var s;return(s=this.contextHolder)==null?void 0:s.context}getContextEntry(s){var o;return(o=this.getContext())==null?void 0:o.get(s)}toString(){return(0,r.bindingsToString)(this)}*mapIterable(s,o){for(const u of s)yield o(u)}iteratorToIterable(s){return{[Symbol.iterator]:()=>s}}};return rm.Bindings=n,rm}var im={},WU;function h4e(){if(WU)return im;WU=1,Object.defineProperty(im,"__esModule",{value:!0}),im.BindingsFactory=void 0;const t=BC,e=Ot,r=Jee();let n=class Xee{constructor(s=new e.DataFactory,o){this.dataFactory=s,this.contextMergeHandlers=o}static async create(s,o){return new Xee(new e.DataFactory,(await s.mediate({context:o})).mergeHandlers)}bindings(s=[]){return new r.Bindings(this.dataFactory,(0,t.Map)(s.map(([o,u])=>[o.value,u])),this.contextMergeHandlers?{contextMergeHandlers:this.contextMergeHandlers}:void 0)}fromBindings(s){return this.bindings([...s])}fromRecord(s){return this.bindings(Object.entries(s).map(([o,u])=>[this.dataFactory.variable(o),u]))}};return im.BindingsFactory=n,im}var KU;function kr(){return KU||(KU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Jee(),t),r(h4e(),t),r(Kee(),t)}(px)),px}var JU;function p4e(){if(JU)return tm;JU=1,Object.defineProperty(tm,"__esModule",{value:!0}),tm.ActorRdfJoinMultiSmallestFilterBindings=void 0;const t=kr(),e=Tt(),r=li(),n=qt,a=Mt,s=xt();let o=class Yee extends r.ActorRdfJoin{constructor(c){super(c,{logicalType:"inner",physicalName:"multi-smallest-filter-bindings",limitEntries:2,limitEntriesMin:!0,isLeaf:!1})}async sortJoinEntries(c,l){let{entries:d}=await this.mediatorJoinEntriesSort.mediate({entries:c,context:l});d=d.sort((g,b)=>g.operationModified&&!b.operationModified?-1:0);const f=d.splice(0,1)[0];let h,p=-1,m=0;for(const[g,b]of d.entries()){const v=f.metadata.variables.filter(_=>b.metadata.variables.some(w=>_.equals(w))).length;(!h||v>m||v===m&&(b.metadata.variables.lengthf.metadata.variables.some(F=>L.equals(F))),y={},g=p.clone().map(L=>L.filter((F,x)=>m.some(P=>P.equals(x)))).filter(L=>{const F=(0,t.bindingsToString)(L);return!(F in y)&&(y[F]=!0)}),b=new r.ChunkedIterator(g,this.blockSize,{autoStart:!1}),v=e.ActorQueryOperation.getOperationSource(f.operation),w={output:{type:"bindings",bindingsStream:new a.UnionIterator(b.map(L=>v.source.queryBindings(f.operation,v.context?c.context.merge(v.context):c.context,{filterBindings:{bindings:L,metadata:d.metadata}}))),metadata:f.output.metadata},operation:f.operation,operationModified:!0};f.output.bindingsStream.destroy();const E={output:e.ActorQueryOperation.getSafeBindings(await this.mediatorJoin.mediate({type:c.type,entries:[d,w],context:c.context.set(n.KeysRdfJoin.lastPhysicalJoin,this.physicalName)})),operation:Yee.FACTORY.createJoin([d.operation,w.operation],!1),operationModified:!0},O=h;return O.unshift(E),{result:await this.mediatorJoin.mediate({type:c.type,entries:O,context:c.context}),physicalPlanMetadata:{firstIndex:l.indexOf(d),secondIndex:l.indexOf(f)}}}async getJoinCoefficients(c,l){if(c.context.get(n.KeysRdfJoin.lastPhysicalJoin)===this.physicalName)throw new Error(`Actor ${this.name} can not be called recursively`);l=[...l];const{first:d,second:f,remaining:h}=await this.sortJoinEntries(c.entries.map((w,E)=>({...w,metadata:l[E]})),c.context),p=e.ActorQueryOperation.getOperationSource(f.operation);if(!p)throw new Error(`Actor ${this.name} can only process if entries[1] has a source`);const m=f.operation,y=await p.source.getSelectorShape(c.context);if(!e.ActorQueryOperation.doesShapeAcceptOperation(y,m,{filterBindings:!0}))throw new Error(`Actor ${this.name} can only process if entries[1] accept filterBindings`);l=[d.metadata,f.metadata,...h.map(w=>w.metadata)];const g=r.ActorRdfJoin.getRequestInitialTimes(l),b=r.ActorRdfJoin.getRequestItemTimes(l),{selectivity:v}=await this.mediatorJoinSelectivity.mediate({entries:[d,f],context:c.context}),_=h.reduce((w,E)=>w*E.metadata.cardinality.value*this.selectivityModifier,1);return{iterations:v*this.selectivityModifier*f.metadata.cardinality.value*_,persistedItems:d.metadata.cardinality.value,blockingItems:d.metadata.cardinality.value,requestTime:g[0]+l[0].cardinality.value*b[0]+g[1]+_*b[1]}}};return tm.ActorRdfJoinMultiSmallestFilterBindings=o,o.FACTORY=new s.Factory,tm}var XU;function y4e(){return XU||(XU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(p4e(),t)}(hx)),hx}var yx={},am={},YU;function m4e(){if(YU)return am;YU=1,Object.defineProperty(am,"__esModule",{value:!0}),am.ActorOptimizeQueryOperationFilterPushdown=void 0;const t=Ua(),e=In(),r=xt();let n=class extends t.ActorOptimizeQueryOperation{constructor(s){super(s)}async test(s){return!0}async run(s){const o=this;return{operation:r.Util.mapOperation(s.operation,{filter(c,l){const d=o.getExpressionVariables(c.expression);return{recurse:!0,result:o.filterPushdown(c.expression,d,c.input,l,s.context)}}}),context:s.context}}getExpressionVariables(s){switch(s.expressionType){case r.Algebra.expressionTypes.AGGREGATE:case r.Algebra.expressionTypes.WILDCARD:throw new Error(`Getting expression variables is not supported for ${s.expressionType}`);case r.Algebra.expressionTypes.EXISTENCE:return r.Util.inScopeVariables(s.input);case r.Algebra.expressionTypes.NAMED:return[];case r.Algebra.expressionTypes.OPERATOR:return(0,e.uniqTerms)(s.args.flatMap(o=>this.getExpressionVariables(o)));case r.Algebra.expressionTypes.TERM:return s.term.termType==="Variable"?[s.term]:[]}}getOverlappingOperations(s,o){const u=[],c=[],l=[];for(const d of s.input){const f=r.Util.inScopeVariables(d);this.variablesSubSetOf(o,f)?u.push(d):this.variablesIntersect(o,f)?c.push(d):l.push(d)}return{fullyOverlapping:u,partiallyOverlapping:c,notOverlapping:l}}filterPushdown(s,o,u,c,l){switch(u.type){case r.Algebra.types.EXTEND:return this.variablesIntersect([u.variable],o)?c.createFilter(u,s):c.createExtend(this.filterPushdown(s,o,u.input,c,l),u.variable,u.expression);case r.Algebra.types.FILTER:return c.createFilter(this.filterPushdown(s,o,u.input,c,l),u.expression);case r.Algebra.types.JOIN:{if(u.input.length===0)return c.createFilter(u,s);const{fullyOverlapping:d,partiallyOverlapping:f,notOverlapping:h}=this.getOverlappingOperations(u,o),p=[];return this.logDebug(l,`Push down filter across join entries with ${d.length} fully overlapping, ${f.length} partially overlapping, and ${h.length} not overlapping`),d.length>0&&p.push(c.createJoin(d.map(m=>this.filterPushdown(s,o,m,c,l)))),f.length>0&&p.push(c.createFilter(c.createJoin(f,!1),s)),h.length>0&&p.push(...h),p.length===1?p[0]:c.createJoin(p)}case r.Algebra.types.NOP:return u;case r.Algebra.types.PROJECT:return this.variablesIntersect(u.variables,o)?c.createProject(this.filterPushdown(s,o,u.input,c,l),u.variables):u;case r.Algebra.types.UNION:{const{fullyOverlapping:d,partiallyOverlapping:f,notOverlapping:h}=this.getOverlappingOperations(u,o),p=[];return this.logDebug(l,`Push down filter across union entries with ${d.length} fully overlapping, ${f.length} partially overlapping, and ${h.length} not overlapping`),d.length>0&&p.push(c.createUnion(d.map(m=>this.filterPushdown(s,o,m,c,l)))),f.length>0&&p.push(c.createFilter(c.createUnion(f,!1),s)),h.length>0&&p.push(...h),p.length===1?p[0]:c.createUnion(p)}case r.Algebra.types.VALUES:return this.variablesIntersect(u.variables,o)?c.createFilter(u,s):u;case r.Algebra.types.LEFT_JOIN:case r.Algebra.types.MINUS:case r.Algebra.types.ALT:case r.Algebra.types.ASK:case r.Algebra.types.BGP:case r.Algebra.types.CONSTRUCT:case r.Algebra.types.DESCRIBE:case r.Algebra.types.DISTINCT:case r.Algebra.types.EXPRESSION:case r.Algebra.types.FROM:case r.Algebra.types.GRAPH:case r.Algebra.types.GROUP:case r.Algebra.types.INV:case r.Algebra.types.LINK:case r.Algebra.types.NPS:case r.Algebra.types.ONE_OR_MORE_PATH:case r.Algebra.types.ORDER_BY:case r.Algebra.types.PATTERN:case r.Algebra.types.REDUCED:case r.Algebra.types.SEQ:case r.Algebra.types.SERVICE:case r.Algebra.types.SLICE:case r.Algebra.types.PATH:case r.Algebra.types.ZERO_OR_MORE_PATH:case r.Algebra.types.ZERO_OR_ONE_PATH:case r.Algebra.types.COMPOSITE_UPDATE:case r.Algebra.types.DELETE_INSERT:case r.Algebra.types.LOAD:case r.Algebra.types.CLEAR:case r.Algebra.types.CREATE:case r.Algebra.types.DROP:case r.Algebra.types.ADD:case r.Algebra.types.MOVE:case r.Algebra.types.COPY:return c.createFilter(u,s)}}variablesIntersect(s,o){return s.some(u=>o.some(c=>u.equals(c)))}variablesSubSetOf(s,o){return s.length<=o.length&&s.every(u=>o.some(c=>u.equals(c)))}};return am.ActorOptimizeQueryOperationFilterPushdown=n,am}var ZU;function g4e(){return ZU||(ZU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(m4e(),t)}(yx)),yx}var mx={},sm={},nc={},ek;function Zee(){if(ek)return nc;ek=1,Object.defineProperty(nc,"__esModule",{value:!0}),nc.ActorDereferenceHttpBase=nc.mediaTypesToAcceptString=void 0;const t=XC(),e=Lu(),r=S4,n=ga,a=gl,s=/^[^ ;]*/u;function o(c,l){const d="*/*;q=0.1",f=[],h=Object.entries(c).map(([m,y])=>({mediaType:m,priority:y})).sort((m,y)=>y.priority===m.priority?m.mediaType.localeCompare(y.mediaType):y.priority-m.priority);let p=h.length-1;for(const{mediaType:m,priority:y}of h){const g=m+(y===1?"":`;q=${y.toFixed(3).replace(/0*$/u,"")}`);if(p+g.length>l){for(;p+d.length>l;){const b=f.pop()??"";p-=b.length+1}f.push(d);break}f.push(g),p+=g.length}return f.length===0?"*/*":f.join(",")}nc.mediaTypesToAcceptString=o;let u=class extends t.ActorDereference{constructor(l){super(l)}async test({url:l}){if(!/^https?:/u.test(l))throw new Error(`Cannot retrieve ${l} because it is not an HTTP(S) URL.`);return!0}async run(l){var b,v;let d=!0;const f=new r.Headers(l.headers);f.append("Accept",o(await((b=l.mediaTypes)==null?void 0:b.call(l))??{},this.getMaxAcceptHeaderLength()));let h;const p=Date.now();try{h=await this.mediatorHttp.mediate({context:l.context,init:{headers:f,method:l.method},input:l.url})}catch(_){return this.handleDereferenceErrors(l,_)}const m=(0,n.resolve)(h.url,l.url),y=Date.now()-p;if(h.status!==200){d=!1;const _=h.body?await a(e.ActorHttp.toNodeReadable(h.body)):"empty response";if(!l.acceptErrors){const w=new Error(`Could not retrieve ${l.url} (HTTP status ${h.status}): -${_}`);return this.handleDereferenceErrors(l,w,h.headers,y)}}const g=(v=s.exec(h.headers.get("content-type")??""))==null?void 0:v[0];return{url:m,data:d?e.ActorHttp.toNodeReadable(h.body):(0,t.emptyReadable)(),exists:d,requestTime:y,headers:h.headers,mediaType:g==="text/plain"?void 0:g}}};return nc.ActorDereferenceHttpBase=u,nc}var tk;function _4e(){if(tk)return sm;tk=1,Object.defineProperty(sm,"__esModule",{value:!0}),sm.ActorDereferenceHttp=void 0;const t=Zee();class e extends t.ActorDereferenceHttpBase{getMaxAcceptHeaderLength(){return this.maxAcceptHeaderLengthBrowser}}return sm.ActorDereferenceHttp=e,sm}var rk;function b4e(){return rk||(rk=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(_4e(),t),r(Zee(),t)}(mx)),mx}var gx={},om={},nk;function v4e(){if(nk)return om;nk=1,Object.defineProperty(om,"__esModule",{value:!0}),om.ActorHttpProxy=void 0;const t=Lu(),e=qt;let r=class extends t.ActorHttp{constructor(a){super(a)}async test(a){const s=a.context.get(e.KeysHttpProxy.httpProxyHandler);if(!s)throw new Error(`Actor ${this.name} could not find a proxy handler in the context.`);if(!await s.getProxy(a))throw new Error(`Actor ${this.name} could not determine a proxy for the given request.`);return{time:Number.POSITIVE_INFINITY}}async run(a){const s=typeof a.input=="string"?a.input:a.input.url,o=a.context.get(e.KeysHttpProxy.httpProxyHandler),u=await this.mediatorHttp.mediate({...await o.getProxy(a),context:a.context.delete(e.KeysHttpProxy.httpProxyHandler)});return Object.defineProperty(u,"url",{configurable:!0,enumerable:!0,get:()=>u.headers.get("x-final-url")??s}),u}};return om.ActorHttpProxy=r,om}var um={},ik;function w4e(){if(ik)return um;ik=1,Object.defineProperty(um,"__esModule",{value:!0}),um.ProxyHandlerStatic=void 0;let t=class{constructor(r){this.prefixUrl=r}async getProxy(r){return{init:r.init,input:this.modifyInput(r.input)}}modifyInput(r){return typeof r=="string"?this.prefixUrl+r:new Request(this.prefixUrl+r.url,r)}};return um.ProxyHandlerStatic=t,um}var ak;function S4e(){return ak||(ak=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(v4e(),t),r(w4e(),t)}(gx)),gx}var _x={},cm={},sk;function T4e(){if(sk)return cm;sk=1,Object.defineProperty(cm,"__esModule",{value:!0}),cm.ActorContextPreprocessQuerySourceIdentify=void 0;const t=A1(),e=qt,r=st,n=ju();let a=class extends t.ActorContextPreprocess{constructor(o){super(o),this.cache=this.cacheSize?new n.LRUCache({max:this.cacheSize}):void 0;const u=this.cache;u&&this.httpInvalidator.addInvalidateListener(({url:c})=>c?u.delete(c):u.clear())}async test(o){return!0}async run(o){let u=o.context;if(u.has(e.KeysInitQuery.querySourcesUnidentified)){const c=o.context.get(e.KeysInitQuery.querySourcesUnidentified),l=await Promise.all(c.map(f=>this.expandSource(f))),d=await Promise.all(l.map(async f=>this.identifySource(f,o.context)));u=o.context.delete(e.KeysInitQuery.querySourcesUnidentified).set(e.KeysQueryOperation.querySources,d)}return{context:u}}async expandSource(o){return typeof o=="string"||"match"in o?{value:o}:{...o,context:(await this.mediatorContextPreprocess.mediate({context:r.ActionContext.ensureActionContext(o.context??{})})).context}}identifySource(o,u){let c;return typeof o.value=="string"&&this.cache&&(c=this.cache.get(o.value)),c||(c=this.mediatorQuerySourceIdentify.mediate({querySourceUnidentified:o,context:u}).then(({querySource:l})=>l),typeof o.value=="string"&&this.cache&&this.cache.set(o.value,c)),c}};return cm.ActorContextPreprocessQuerySourceIdentify=a,cm}var ok;function E4e(){return ok||(ok=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(T4e(),t)}(_x)),_x}var bx={},lm={},uk;function A4e(){if(uk)return lm;uk=1,Object.defineProperty(lm,"__esModule",{value:!0}),lm.ActorRdfUpdateQuadsHypermedia=void 0;const t=b4(),e=ju();let r=class extends t.ActorRdfUpdateQuadsDestination{constructor(a){super(a),this.cache=this.cacheSize?new e.LRUCache({max:this.cacheSize}):void 0;const s=this.cache;s&&this.httpInvalidator.addInvalidateListener(({url:o})=>o?s.delete(o):s.clear())}async test(a){if(!(0,t.getContextDestinationUrl)((0,t.getContextDestination)(a.context)))throw new Error(`Actor ${this.name} can only update quads against a single destination URL.`);return!0}getDestination(a){const s=(0,t.getContextDestination)(a);let o=(0,t.getContextDestinationUrl)(s);if(this.cache&&this.cache.has(o))return this.cache.get(o);const u=(async()=>{var f;let c,l;try{const h=await this.mediatorDereferenceRdf.mediate({context:a,url:o,acceptErrors:!0});l=h.exists,o=h.url;const p=await this.mediatorMetadata.mediate({context:a,url:o,quads:h.data,triples:(f=h.metadata)==null?void 0:f.triples});c=(await this.mediatorMetadataExtract.mediate({context:a,url:o,metadata:p.metadata,headers:h.headers,requestTime:h.requestTime})).metadata}catch{c={},l=!1}const{destination:d}=await this.mediatorRdfUpdateHypermedia.mediate({context:a,url:o,metadata:c,exists:l,forceDestinationType:(0,t.getDataDestinationType)(s)});return d})();return this.cache&&this.cache.set(o,u),u}};return lm.ActorRdfUpdateQuadsHypermedia=r,lm}var ck;function O4e(){return ck||(ck=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(A4e(),t)}(bx)),bx}var vx={},dm={},lk;function R4e(){if(lk)return dm;lk=1,Object.defineProperty(dm,"__esModule",{value:!0}),dm.ActionObserverHttp=void 0;const t=st;class e extends t.ActionObserver{constructor(n){super(n),this.requests=0,this.bus.subscribeObserver(this),this.httpInvalidator.addInvalidateListener(()=>{this.requests=0})}onRun(n,a,s){this.requests++}}return dm.ActionObserverHttp=e,dm}var fm={},dk;function x4e(){if(dk)return fm;dk=1,Object.defineProperty(fm,"__esModule",{value:!0}),fm.ActorQueryResultSerializeSparqlJson=void 0;const t=Ss(),e=Mt,r=Pt;let n=class C_ extends t.ActorQueryResultSerializeFixedMediaTypes{constructor(s){super(s)}static bindingToJsonBindings(s){if(s.termType==="Literal"){const o=s,u={value:o.value,type:"literal"},{language:c,datatype:l}=o;return c?u["xml:lang"]=c:l&&l.value!=="http://www.w3.org/2001/XMLSchema#string"&&(u.datatype=l.value),u}return s.termType==="BlankNode"?{value:s.value,type:"bnode"}:s.termType==="Quad"?{value:{subject:C_.bindingToJsonBindings(s.subject),predicate:C_.bindingToJsonBindings(s.predicate),object:C_.bindingToJsonBindings(s.object)},type:"triple"}:{value:s.value,type:"uri"}}async testHandleChecked(s,o){if(!["bindings","boolean"].includes(s.type))throw new Error("This actor can only handle bindings streams or booleans.");return!0}async runHandle(s,o,u){const c=new r.Readable,l={};if(s.type==="bindings"){const d=await s.metadata();d.variables.length>0&&(l.vars=d.variables.map(f=>f.value))}if(c.push(`{"head": ${JSON.stringify(l)}, +`]).append(["}"]),c=await r(u);await this.endpointFetcher.fetchUpdate(this.url,c)}async deleteGraphs(s,o,u){const c=Array.isArray(s)?s:[s],l=[];for(const d of c){let f;typeof d=="string"?f=d:d.termType==="DefaultGraph"?f="DEFAULT":f=`GRAPH <${d.value}>`,l.push(`${u?"DROP":"CLEAR"} ${o?"":"SILENT "}${f}`)}await this.endpointFetcher.fetchUpdate(this.url,l.join("; "))}async createGraphs(s,o){const u=[];for(const c of s)u.push(`CREATE${o?"":" SILENT"} GRAPH <${c.value}>`);await this.endpointFetcher.fetchUpdate(this.url,u.join("; "))}};return Oy.QuadDestinationSparql=n,Oy}var K$;function wCe(){if(K$)return Ay;K$=1,Object.defineProperty(Ay,"__esModule",{value:!0}),Ay.ActorRdfUpdateHypermediaSparql=void 0;const t=w4(),e=qee();let r=class extends t.ActorRdfUpdateHypermedia{constructor(a){super(a,"sparql")}async testMetadata(a){if(!a.forceDestinationType&&!a.metadata.sparqlService&&!(this.checkUrlSuffixSparql&&a.url.endsWith("/sparql"))&&!(this.checkUrlSuffixUpdate&&a.url.endsWith("/update")))throw new Error(`Actor ${this.name} could not detect a SPARQL service description or URL ending on /sparql or /update.`);return!0}async run(a){return this.logInfo(a.context,`Identified as sparql destination: ${a.url}`),{destination:new e.QuadDestinationSparql(a.metadata.sparqlService||a.url,a.context,this.mediatorHttp)}}};return Ay.ActorRdfUpdateHypermediaSparql=r,Ay}var J$;function SCe(){return J$||(J$=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(wCe(),t),r(qee(),t)}($R)),$R}var VR={},Iy={},X$;function TCe(){if(X$)return Iy;X$=1,Object.defineProperty(Iy,"__esModule",{value:!0}),Iy.ActorQueryOperationAsk=void 0;const t=Tt();let e=class extends t.ActorQueryOperationTypedMediated{constructor(n){super(n,"ask")}async testOperation(n,a){return!0}async runOperation(n,a){const s=await this.mediatorQueryOperation.mediate({operation:n.input,context:a}),{bindingsStream:o}=t.ActorQueryOperation.getSafeBindings(s);return{type:"boolean",execute:async()=>(await o.take(1).toArray()).length===1}}};return Iy.ActorQueryOperationAsk=e,Iy}var Y$;function ECe(){return Y$||(Y$=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(TCe(),t)}(VR)),VR}var HR={},Py={},Z$;function ACe(){if(Z$)return Py;Z$=1,Object.defineProperty(Py,"__esModule",{value:!0}),Py.ActorQueryOperationBgpJoin=void 0;const t=Tt(),e=xt();let r=class $ee extends t.ActorQueryOperationTypedMediated{constructor(a){super(a,"bgp")}async testOperation(a,s){return!0}async runOperation(a,s){return this.mediatorQueryOperation.mediate({operation:$ee.FACTORY.createJoin(a.patterns),context:s})}};return Py.ActorQueryOperationBgpJoin=r,r.FACTORY=new e.Factory,Py}var eU;function OCe(){return eU||(eU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(ACe(),t)}(HR)),HR}var QR={},Ny={},tU;function RCe(){if(tU)return Ny;tU=1,Object.defineProperty(Ny,"__esModule",{value:!0}),Ny.ActorQueryOperationDistinctHash=void 0;const t=Tt();let e=class extends t.ActorQueryOperationTypedMediated{constructor(n){super(n,"distinct")}async testOperation(n,a){return!0}async runOperation(n,a){const s=t.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:n.input,context:a}));return{type:"bindings",bindingsStream:s.bindingsStream.filter(await this.newHashFilter(a)),metadata:s.metadata}}async newHashFilter(n){const{hashFunction:a}=await this.mediatorHashBindings.mediate({allowHashCollisions:!0,context:n}),s={};return o=>{const u=a(o);return!(u in s)&&(s[u]=!0)}}};return Ny.ActorQueryOperationDistinctHash=e,Ny}var rU;function xCe(){return rU||(rU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(RCe(),t)}(QR)),QR}var zR={},Dy={},Cy={},nU;function Uee(){if(nU)return Cy;nU=1,Object.defineProperty(Cy,"__esModule",{value:!0}),Cy.BindingsToQuadsIterator=void 0;const t=Mt,e=Ot,r=In(),n=new e.DataFactory;let a=class N_ extends t.MultiTransformIterator{constructor(o,u){super(u,{autoStart:!1}),this.template=o,this.blankNodeCounter=0}static bindTerm(o,u){return u.termType==="Variable"?o.get(u):u}static bindQuad(o,u){try{return(0,r.mapTermsNested)(u,c=>{const l=N_.bindTerm(o,c);if(!l)throw new Error("Unbound term");return l})}catch{}}static localizeBlankNode(o,u){return u.termType==="BlankNode"?n.blankNode(`${u.value}${o}`):u}static localizeQuad(o,u){return(0,r.mapTermsNested)(u,c=>N_.localizeBlankNode(o,c))}bindTemplate(o,u,c){return u.map(N_.localizeQuad.bind(null,c)).map(d=>N_.bindQuad.bind(null,o)(d)).filter(Boolean)}_createTransformer(o){return new t.ArrayIterator(this.bindTemplate(o,this.template,this.blankNodeCounter++),{autoStart:!1})}};return Cy.BindingsToQuadsIterator=a,Cy}var iU;function ICe(){if(iU)return Dy;iU=1,Object.defineProperty(Dy,"__esModule",{value:!0}),Dy.ActorQueryOperationConstruct=void 0;const t=Tt(),e=In(),r=xt(),n=Uee();let a=class kee extends t.ActorQueryOperationTypedMediated{constructor(o){super(o,"construct")}static getVariables(o){return(0,e.uniqTerms)([].concat.apply([],o.map(u=>(0,e.getVariables)((0,e.getTermsNested)(u)))))}async testOperation(o,u){return!0}async runOperation(o,u){const c=kee.getVariables(o.template),l={type:r.Algebra.types.PROJECT,input:o.input,variables:c},d=t.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:l,context:u})),f=new n.BindingsToQuadsIterator(o.template,d.bindingsStream);return{metadata:()=>d.metadata().then(p=>({...p,order:void 0,cardinality:{type:p.cardinality.type,value:p.cardinality.value*o.template.length},canContainUndefs:!1,availableOrders:void 0})),quadStream:f,type:"quads"}}};return Dy.ActorQueryOperationConstruct=a,Dy}var aU;function Vee(){return aU||(aU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(ICe(),t),r(Uee(),t)}(zR)),zR}var GR={},Ly={},sU;function PCe(){if(sU)return Ly;sU=1,Object.defineProperty(Ly,"__esModule",{value:!0}),Ly.ActorQueryOperationFromQuad=void 0;const t=Tt(),e=xt();let r=class wr extends t.ActorQueryOperationTypedMediated{constructor(a){super(a,"from")}static copyOperation(a,s){const o={};for(const u of Object.keys(a))Array.isArray(a[u])&&u!=="template"?u==="variables"?o[u]=a[u]:o[u]=a[u].map(s):wr.ALGEBRA_TYPES.includes(a[u].type)?o[u]=s(a[u]):o[u]=a[u];return o}static applyOperationDefaultGraph(a,s){if(a.type==="bgp"&&a.patterns.length>0||a.type==="path"||a.type==="pattern"){if(a.type==="bgp")return wr.joinOperations(a.patterns.map(u=>{if(u.graph.termType!=="DefaultGraph")return wr.FACTORY.createBgp([u]);const c=s.map(l=>wr.FACTORY.createBgp([Object.assign(wr.FACTORY.createPattern(u.subject,u.predicate,u.object,l),{metadata:u.metadata})]));return wr.unionOperations(c)}));if(a.graph.termType!=="DefaultGraph")return a;const o=s.map(u=>a.type==="path"?wr.FACTORY.createPath(a.subject,a.predicate,a.object,u):Object.assign(wr.FACTORY.createPattern(a.subject,a.predicate,a.object,u),{metadata:a.metadata}));return wr.unionOperations(o)}return wr.copyOperation(a,o=>this.applyOperationDefaultGraph(o,s))}static applyOperationNamedGraph(a,s,o){if(a.type==="bgp"&&a.patterns.length>0||a.type==="path"||a.type==="pattern"){const u=a.type==="bgp"?a.patterns[0].graph:a.graph;if(u.termType==="DefaultGraph")return{type:e.Algebra.types.BGP,patterns:[]};if(u.termType==="Variable"){if(s.length===1){const l=s[0],d={};d[`?${u.value}`]=l;const f=wr.FACTORY.createValues([u],[d]);let h;return a.type==="bgp"?h=wr.FACTORY.createBgp(a.patterns.map(p=>wr.FACTORY.createPattern(p.subject,p.predicate,p.object,l))):a.type==="path"?h=wr.FACTORY.createPath(a.subject,a.predicate,a.object,l):h=wr.FACTORY.createPattern(a.subject,a.predicate,a.object,l),wr.FACTORY.createJoin([f,h])}return wr.unionOperations(s.map(l=>wr.applyOperationNamedGraph(a,[l],o)))}return[...s,...o].some(l=>l.equals(u))?a:{type:e.Algebra.types.BGP,patterns:[]}}return wr.copyOperation(a,u=>this.applyOperationNamedGraph(u,s,o))}static joinOperations(a){if(a.length===1)return a[0];if(a.length>1)return wr.FACTORY.createJoin(a);throw new Error("A join can only be applied on at least one operation")}static unionOperations(a){if(a.length===1)return a[0];if(a.length>1)return wr.FACTORY.createUnion(a);throw new Error("A union can only be applied on at least one operation")}static createOperation(a){let s=a.input;return a.default.length>0&&(s=wr.applyOperationDefaultGraph(s,a.default)),(a.named.length>0||a.default.length>0)&&(s=wr.applyOperationNamedGraph(s,a.named,a.default)),s}async testOperation(a,s){return!0}async runOperation(a,s){const o=wr.createOperation(a);return this.mediatorQueryOperation.mediate({operation:o,context:s})}};return Ly.ActorQueryOperationFromQuad=r,r.FACTORY=new e.Factory,r.ALGEBRA_TYPES=Object.keys(e.Algebra.types).map(n=>e.Algebra.types[n]),Ly}var oU;function NCe(){return oU||(oU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(PCe(),t)}(GR)),GR}var WR={},jy={},uU;function DCe(){if(uU)return jy;uU=1,Object.defineProperty(jy,"__esModule",{value:!0}),jy.ActorQueryOperationProject=void 0;const t=Tt(),e=qC(),r=Ot,n=new r.DataFactory;let a=class extends t.ActorQueryOperationTypedMediated{constructor(o){super(o,"project")}async testOperation(o,u){return!0}async runOperation(o,u){const c=t.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:o.input,context:u})),l=await c.metadata(),d=o.variables,f=l.variables.filter(y=>!d.some(g=>y.value===g.value)),h=d.filter(y=>!l.variables.some(g=>y.value===g.value));if(h.length>0)throw new Error(`Variables '${h.map(y=>`?${y.value}`)}' are used in the projection result, but are not assigned.`);let p=f.length===0?c.bindingsStream:c.bindingsStream.map(y=>{for(const g of f)y=y.delete(g);return y}),m=0;return p=p.map(y=>{m++;const g=new Map;return y.map(b=>{if(b instanceof e.BlankNodeBindingsScoped){let v=g.get(b.value);return v||(v=n.blankNode(`${b.value}${m}`),g.set(b.value,v)),v}return b})}),{type:"bindings",bindingsStream:p,metadata:async()=>({...l,variables:d})}}};return jy.ActorQueryOperationProject=a,jy}var cU;function CCe(){return cU||(cU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(DCe(),t)}(WR)),WR}var KR={},My={},Fy={},lU;function ju(){var h,p,y,g,b,v,_,w,E,O,L,F,x,P,j,N,V,$,q,H,X,Y,he,Te,Ne,rN,de,ce,xe,Pe,we,Hee,Se,z,M,k,Ho,R,Qo,G,nN,Z,se,zw,le,Gw,_e,Sr,Ee,iN,Ce,D_;if(lU)return Fy;lU=1,Object.defineProperty(Fy,"__esModule",{value:!0}),Fy.LRUCache=void 0;const t=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,e=new Set,r=typeof co=="object"&&co?co:{},n=(W,D,B,K)=>{typeof r.emitWarning=="function"?r.emitWarning(W,D,B,K):console.error(`[${B}] ${D}: ${W}`)};let a=globalThis.AbortController,s=globalThis.AbortSignal;if(typeof a>"u"){s=class{constructor(){Cr(this,"onabort");Cr(this,"_onabort",[]);Cr(this,"reason");Cr(this,"aborted",!1)}addEventListener(K,ne){this._onabort.push(ne)}},a=class{constructor(){Cr(this,"signal",new s);D()}abort(K){var ne,fe;if(!this.signal.aborted){this.signal.reason=K,this.signal.aborted=!0;for(const ge of this.signal._onabort)ge(K);(fe=(ne=this.signal).onabort)==null||fe.call(ne,K)}}};let W=((h=r.env)==null?void 0:h.LRU_CACHE_IGNORE_AC_WARNING)!=="1";const D=()=>{W&&(W=!1,n("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",D))}}const o=W=>!e.has(W),u=W=>W&&W===Math.floor(W)&&W>0&&isFinite(W),c=W=>u(W)?W<=Math.pow(2,8)?Uint8Array:W<=Math.pow(2,16)?Uint16Array:W<=Math.pow(2,32)?Uint32Array:W<=Number.MAX_SAFE_INTEGER?l:null:null;class l extends Array{constructor(D){super(D),this.fill(0)}}const m=class m{constructor(D,B){Cr(this,"heap");Cr(this,"length");if(!me(m,p))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new B(D),this.length=0}static create(D){const B=c(D);if(!B)return[];wt(m,p,!0);const K=new m(D,B);return wt(m,p,!1),K}push(D){this.heap[this.length++]=D}pop(){return this.heap[--this.length]}};p=new WeakMap,Lt(m,p,!1);let d=m;const qe=class qe{constructor(D){Lt(this,Ne);Lt(this,we);Lt(this,k);Lt(this,R);Lt(this,G);Lt(this,se);Lt(this,le);Lt(this,_e);Lt(this,Ee);Lt(this,Ce);Lt(this,y,void 0);Lt(this,g,void 0);Lt(this,b,void 0);Lt(this,v,void 0);Lt(this,_,void 0);Cr(this,"ttl");Cr(this,"ttlResolution");Cr(this,"ttlAutopurge");Cr(this,"updateAgeOnGet");Cr(this,"updateAgeOnHas");Cr(this,"allowStale");Cr(this,"noDisposeOnSet");Cr(this,"noUpdateTTL");Cr(this,"maxEntrySize");Cr(this,"sizeCalculation");Cr(this,"noDeleteOnFetchRejection");Cr(this,"noDeleteOnStaleGet");Cr(this,"allowStaleOnFetchAbort");Cr(this,"allowStaleOnFetchRejection");Cr(this,"ignoreFetchAbort");Lt(this,w,void 0);Lt(this,E,void 0);Lt(this,O,void 0);Lt(this,L,void 0);Lt(this,F,void 0);Lt(this,x,void 0);Lt(this,P,void 0);Lt(this,j,void 0);Lt(this,N,void 0);Lt(this,V,void 0);Lt(this,$,void 0);Lt(this,q,void 0);Lt(this,H,void 0);Lt(this,X,void 0);Lt(this,Y,void 0);Lt(this,he,void 0);Lt(this,Te,void 0);Lt(this,de,()=>{});Lt(this,ce,()=>{});Lt(this,xe,()=>{});Lt(this,Pe,()=>!1);Lt(this,Se,D=>{});Lt(this,z,(D,B,K)=>{});Lt(this,M,(D,B,K,ne)=>{if(K||ne)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});Cr(this,Z,"LRUCache");const{max:B=0,ttl:K,ttlResolution:ne=1,ttlAutopurge:fe,updateAgeOnGet:ge,updateAgeOnHas:Le,allowStale:ee,dispose:Oe,disposeAfter:De,noDisposeOnSet:Ue,noUpdateTTL:Ye,maxSize:ut=0,maxEntrySize:at=0,sizeCalculation:ct,fetchMethod:ht,noDeleteOnFetchRejection:te,noDeleteOnStaleGet:S,allowStaleOnFetchRejection:A,allowStaleOnFetchAbort:C,ignoreFetchAbort:J}=D;if(B!==0&&!u(B))throw new TypeError("max option must be a nonnegative integer");const ie=B?c(B):Array;if(!ie)throw new Error("invalid max value: "+B);if(wt(this,y,B),wt(this,g,ut),this.maxEntrySize=at||me(this,g),this.sizeCalculation=ct,this.sizeCalculation){if(!me(this,g)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(ht!==void 0&&typeof ht!="function")throw new TypeError("fetchMethod must be a function if specified");if(wt(this,_,ht),wt(this,he,!!ht),wt(this,O,new Map),wt(this,L,new Array(B).fill(void 0)),wt(this,F,new Array(B).fill(void 0)),wt(this,x,new ie(B)),wt(this,P,new ie(B)),wt(this,j,0),wt(this,N,0),wt(this,V,d.create(B)),wt(this,w,0),wt(this,E,0),typeof Oe=="function"&&wt(this,b,Oe),typeof De=="function"?(wt(this,v,De),wt(this,$,[])):(wt(this,v,void 0),wt(this,$,void 0)),wt(this,Y,!!me(this,b)),wt(this,Te,!!me(this,v)),this.noDisposeOnSet=!!Ue,this.noUpdateTTL=!!Ye,this.noDeleteOnFetchRejection=!!te,this.allowStaleOnFetchRejection=!!A,this.allowStaleOnFetchAbort=!!C,this.ignoreFetchAbort=!!J,this.maxEntrySize!==0){if(me(this,g)!==0&&!u(me(this,g)))throw new TypeError("maxSize must be a positive integer if specified");if(!u(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");pt(this,we,Hee).call(this)}if(this.allowStale=!!ee,this.noDeleteOnStaleGet=!!S,this.updateAgeOnGet=!!ge,this.updateAgeOnHas=!!Le,this.ttlResolution=u(ne)||ne===0?ne:1,this.ttlAutopurge=!!fe,this.ttl=K||0,this.ttl){if(!u(this.ttl))throw new TypeError("ttl must be a positive integer if specified");pt(this,Ne,rN).call(this)}if(me(this,y)===0&&this.ttl===0&&me(this,g)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!me(this,y)&&!me(this,g)){const be="LRU_CACHE_UNBOUNDED";o(be)&&(e.add(be),n("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",be,qe))}}static unsafeExposeInternals(D){return{starts:me(D,H),ttls:me(D,X),sizes:me(D,q),keyMap:me(D,O),keyList:me(D,L),valList:me(D,F),next:me(D,x),prev:me(D,P),get head(){return me(D,j)},get tail(){return me(D,N)},free:me(D,V),isBackgroundFetch:B=>{var K;return pt(K=D,_e,Sr).call(K,B)},backgroundFetch:(B,K,ne,fe)=>{var ge;return pt(ge=D,le,Gw).call(ge,B,K,ne,fe)},moveToTail:B=>{var K;return pt(K=D,Ce,D_).call(K,B)},indexes:B=>{var K;return pt(K=D,k,Ho).call(K,B)},rindexes:B=>{var K;return pt(K=D,R,Qo).call(K,B)},isStale:B=>{var K;return me(K=D,Pe).call(K,B)}}}get max(){return me(this,y)}get maxSize(){return me(this,g)}get calculatedSize(){return me(this,E)}get size(){return me(this,w)}get fetchMethod(){return me(this,_)}get dispose(){return me(this,b)}get disposeAfter(){return me(this,v)}getRemainingTTL(D){return me(this,O).has(D)?1/0:0}*entries(){for(const D of pt(this,k,Ho).call(this))me(this,F)[D]!==void 0&&me(this,L)[D]!==void 0&&!pt(this,_e,Sr).call(this,me(this,F)[D])&&(yield[me(this,L)[D],me(this,F)[D]])}*rentries(){for(const D of pt(this,R,Qo).call(this))me(this,F)[D]!==void 0&&me(this,L)[D]!==void 0&&!pt(this,_e,Sr).call(this,me(this,F)[D])&&(yield[me(this,L)[D],me(this,F)[D]])}*keys(){for(const D of pt(this,k,Ho).call(this)){const B=me(this,L)[D];B!==void 0&&!pt(this,_e,Sr).call(this,me(this,F)[D])&&(yield B)}}*rkeys(){for(const D of pt(this,R,Qo).call(this)){const B=me(this,L)[D];B!==void 0&&!pt(this,_e,Sr).call(this,me(this,F)[D])&&(yield B)}}*values(){for(const D of pt(this,k,Ho).call(this))me(this,F)[D]!==void 0&&!pt(this,_e,Sr).call(this,me(this,F)[D])&&(yield me(this,F)[D])}*rvalues(){for(const D of pt(this,R,Qo).call(this))me(this,F)[D]!==void 0&&!pt(this,_e,Sr).call(this,me(this,F)[D])&&(yield me(this,F)[D])}[Symbol.iterator](){return this.entries()}find(D,B={}){for(const K of pt(this,k,Ho).call(this)){const ne=me(this,F)[K],fe=pt(this,_e,Sr).call(this,ne)?ne.__staleWhileFetching:ne;if(fe!==void 0&&D(fe,me(this,L)[K],this))return this.get(me(this,L)[K],B)}}forEach(D,B=this){for(const K of pt(this,k,Ho).call(this)){const ne=me(this,F)[K],fe=pt(this,_e,Sr).call(this,ne)?ne.__staleWhileFetching:ne;fe!==void 0&&D.call(B,fe,me(this,L)[K],this)}}rforEach(D,B=this){for(const K of pt(this,R,Qo).call(this)){const ne=me(this,F)[K],fe=pt(this,_e,Sr).call(this,ne)?ne.__staleWhileFetching:ne;fe!==void 0&&D.call(B,fe,me(this,L)[K],this)}}purgeStale(){let D=!1;for(const B of pt(this,R,Qo).call(this,{allowStale:!0}))me(this,Pe).call(this,B)&&(this.delete(me(this,L)[B]),D=!0);return D}info(D){const B=me(this,O).get(D);if(B===void 0)return;const K=me(this,F)[B],ne=pt(this,_e,Sr).call(this,K)?K.__staleWhileFetching:K;if(ne===void 0)return;const fe={value:ne};if(me(this,X)&&me(this,H)){const ge=me(this,X)[B],Le=me(this,H)[B];if(ge&&Le){const ee=ge-(t.now()-Le);fe.ttl=ee,fe.start=Date.now()}}return me(this,q)&&(fe.size=me(this,q)[B]),fe}dump(){const D=[];for(const B of pt(this,k,Ho).call(this,{allowStale:!0})){const K=me(this,L)[B],ne=me(this,F)[B],fe=pt(this,_e,Sr).call(this,ne)?ne.__staleWhileFetching:ne;if(fe===void 0||K===void 0)continue;const ge={value:fe};if(me(this,X)&&me(this,H)){ge.ttl=me(this,X)[B];const Le=t.now()-me(this,H)[B];ge.start=Math.floor(Date.now()-Le)}me(this,q)&&(ge.size=me(this,q)[B]),D.unshift([K,ge])}return D}load(D){this.clear();for(const[B,K]of D){if(K.start){const ne=Date.now()-K.start;K.start=t.now()-ne}this.set(B,K.value,K)}}set(D,B,K={}){var Ye,ut,at,ct,ht;if(B===void 0)return this.delete(D),this;const{ttl:ne=this.ttl,start:fe,noDisposeOnSet:ge=this.noDisposeOnSet,sizeCalculation:Le=this.sizeCalculation,status:ee}=K;let{noUpdateTTL:Oe=this.noUpdateTTL}=K;const De=me(this,M).call(this,D,B,K.size||0,Le);if(this.maxEntrySize&&De>this.maxEntrySize)return ee&&(ee.set="miss",ee.maxEntrySizeExceeded=!0),this.delete(D),this;let Ue=me(this,w)===0?void 0:me(this,O).get(D);if(Ue===void 0)Ue=me(this,w)===0?me(this,N):me(this,V).length!==0?me(this,V).pop():me(this,w)===me(this,y)?pt(this,se,zw).call(this,!1):me(this,w),me(this,L)[Ue]=D,me(this,F)[Ue]=B,me(this,O).set(D,Ue),me(this,x)[me(this,N)]=Ue,me(this,P)[Ue]=me(this,N),wt(this,N,Ue),tv(this,w)._++,me(this,z).call(this,Ue,De,ee),ee&&(ee.set="add"),Oe=!1;else{pt(this,Ce,D_).call(this,Ue);const te=me(this,F)[Ue];if(B!==te){if(me(this,he)&&pt(this,_e,Sr).call(this,te)){te.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:S}=te;S!==void 0&&!ge&&(me(this,Y)&&((Ye=me(this,b))==null||Ye.call(this,S,D,"set")),me(this,Te)&&((ut=me(this,$))==null||ut.push([S,D,"set"])))}else ge||(me(this,Y)&&((at=me(this,b))==null||at.call(this,te,D,"set")),me(this,Te)&&((ct=me(this,$))==null||ct.push([te,D,"set"])));if(me(this,Se).call(this,Ue),me(this,z).call(this,Ue,De,ee),me(this,F)[Ue]=B,ee){ee.set="replace";const S=te&&pt(this,_e,Sr).call(this,te)?te.__staleWhileFetching:te;S!==void 0&&(ee.oldValue=S)}}else ee&&(ee.set="update")}if(ne!==0&&!me(this,X)&&pt(this,Ne,rN).call(this),me(this,X)&&(Oe||me(this,xe).call(this,Ue,ne,fe),ee&&me(this,ce).call(this,ee,Ue)),!ge&&me(this,Te)&&me(this,$)){const te=me(this,$);let S;for(;S=te==null?void 0:te.shift();)(ht=me(this,v))==null||ht.call(this,...S)}return this}pop(){var D;try{for(;me(this,w);){const B=me(this,F)[me(this,j)];if(pt(this,se,zw).call(this,!0),pt(this,_e,Sr).call(this,B)){if(B.__staleWhileFetching)return B.__staleWhileFetching}else if(B!==void 0)return B}}finally{if(me(this,Te)&&me(this,$)){const B=me(this,$);let K;for(;K=B==null?void 0:B.shift();)(D=me(this,v))==null||D.call(this,...K)}}}has(D,B={}){const{updateAgeOnHas:K=this.updateAgeOnHas,status:ne}=B,fe=me(this,O).get(D);if(fe!==void 0){const ge=me(this,F)[fe];if(pt(this,_e,Sr).call(this,ge)&&ge.__staleWhileFetching===void 0)return!1;if(me(this,Pe).call(this,fe))ne&&(ne.has="stale",me(this,ce).call(this,ne,fe));else return K&&me(this,de).call(this,fe),ne&&(ne.has="hit",me(this,ce).call(this,ne,fe)),!0}else ne&&(ne.has="miss");return!1}peek(D,B={}){const{allowStale:K=this.allowStale}=B,ne=me(this,O).get(D);if(ne===void 0||!K&&me(this,Pe).call(this,ne))return;const fe=me(this,F)[ne];return pt(this,_e,Sr).call(this,fe)?fe.__staleWhileFetching:fe}async fetch(D,B={}){const{allowStale:K=this.allowStale,updateAgeOnGet:ne=this.updateAgeOnGet,noDeleteOnStaleGet:fe=this.noDeleteOnStaleGet,ttl:ge=this.ttl,noDisposeOnSet:Le=this.noDisposeOnSet,size:ee=0,sizeCalculation:Oe=this.sizeCalculation,noUpdateTTL:De=this.noUpdateTTL,noDeleteOnFetchRejection:Ue=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:Ye=this.allowStaleOnFetchRejection,ignoreFetchAbort:ut=this.ignoreFetchAbort,allowStaleOnFetchAbort:at=this.allowStaleOnFetchAbort,context:ct,forceRefresh:ht=!1,status:te,signal:S}=B;if(!me(this,he))return te&&(te.fetch="get"),this.get(D,{allowStale:K,updateAgeOnGet:ne,noDeleteOnStaleGet:fe,status:te});const A={allowStale:K,updateAgeOnGet:ne,noDeleteOnStaleGet:fe,ttl:ge,noDisposeOnSet:Le,size:ee,sizeCalculation:Oe,noUpdateTTL:De,noDeleteOnFetchRejection:Ue,allowStaleOnFetchRejection:Ye,allowStaleOnFetchAbort:at,ignoreFetchAbort:ut,status:te,signal:S};let C=me(this,O).get(D);if(C===void 0){te&&(te.fetch="miss");const J=pt(this,le,Gw).call(this,D,C,A,ct);return J.__returned=J}else{const J=me(this,F)[C];if(pt(this,_e,Sr).call(this,J)){const Je=K&&J.__staleWhileFetching!==void 0;return te&&(te.fetch="inflight",Je&&(te.returnedStale=!0)),Je?J.__staleWhileFetching:J.__returned=J}const ie=me(this,Pe).call(this,C);if(!ht&&!ie)return te&&(te.fetch="hit"),pt(this,Ce,D_).call(this,C),ne&&me(this,de).call(this,C),te&&me(this,ce).call(this,te,C),J;const be=pt(this,le,Gw).call(this,D,C,A,ct),Fe=be.__staleWhileFetching!==void 0&&K;return te&&(te.fetch=ie?"stale":"refresh",Fe&&ie&&(te.returnedStale=!0)),Fe?be.__staleWhileFetching:be.__returned=be}}get(D,B={}){const{allowStale:K=this.allowStale,updateAgeOnGet:ne=this.updateAgeOnGet,noDeleteOnStaleGet:fe=this.noDeleteOnStaleGet,status:ge}=B,Le=me(this,O).get(D);if(Le!==void 0){const ee=me(this,F)[Le],Oe=pt(this,_e,Sr).call(this,ee);return ge&&me(this,ce).call(this,ge,Le),me(this,Pe).call(this,Le)?(ge&&(ge.get="stale"),Oe?(ge&&K&&ee.__staleWhileFetching!==void 0&&(ge.returnedStale=!0),K?ee.__staleWhileFetching:void 0):(fe||this.delete(D),ge&&K&&(ge.returnedStale=!0),K?ee:void 0)):(ge&&(ge.get="hit"),Oe?ee.__staleWhileFetching:(pt(this,Ce,D_).call(this,Le),ne&&me(this,de).call(this,Le),ee))}else ge&&(ge.get="miss")}delete(D){var K,ne,fe,ge;let B=!1;if(me(this,w)!==0){const Le=me(this,O).get(D);if(Le!==void 0)if(B=!0,me(this,w)===1)this.clear();else{me(this,Se).call(this,Le);const ee=me(this,F)[Le];if(pt(this,_e,Sr).call(this,ee)?ee.__abortController.abort(new Error("deleted")):(me(this,Y)||me(this,Te))&&(me(this,Y)&&((K=me(this,b))==null||K.call(this,ee,D,"delete")),me(this,Te)&&((ne=me(this,$))==null||ne.push([ee,D,"delete"]))),me(this,O).delete(D),me(this,L)[Le]=void 0,me(this,F)[Le]=void 0,Le===me(this,N))wt(this,N,me(this,P)[Le]);else if(Le===me(this,j))wt(this,j,me(this,x)[Le]);else{const Oe=me(this,P)[Le];me(this,x)[Oe]=me(this,x)[Le];const De=me(this,x)[Le];me(this,P)[De]=me(this,P)[Le]}tv(this,w)._--,me(this,V).push(Le)}}if(me(this,Te)&&((fe=me(this,$))!=null&&fe.length)){const Le=me(this,$);let ee;for(;ee=Le==null?void 0:Le.shift();)(ge=me(this,v))==null||ge.call(this,...ee)}return B}clear(){var D,B,K;for(const ne of pt(this,R,Qo).call(this,{allowStale:!0})){const fe=me(this,F)[ne];if(pt(this,_e,Sr).call(this,fe))fe.__abortController.abort(new Error("deleted"));else{const ge=me(this,L)[ne];me(this,Y)&&((D=me(this,b))==null||D.call(this,fe,ge,"delete")),me(this,Te)&&((B=me(this,$))==null||B.push([fe,ge,"delete"]))}}if(me(this,O).clear(),me(this,F).fill(void 0),me(this,L).fill(void 0),me(this,X)&&me(this,H)&&(me(this,X).fill(0),me(this,H).fill(0)),me(this,q)&&me(this,q).fill(0),wt(this,j,0),wt(this,N,0),me(this,V).length=0,wt(this,E,0),wt(this,w,0),me(this,Te)&&me(this,$)){const ne=me(this,$);let fe;for(;fe=ne==null?void 0:ne.shift();)(K=me(this,v))==null||K.call(this,...fe)}}};Z=Symbol.toStringTag,y=new WeakMap,g=new WeakMap,b=new WeakMap,v=new WeakMap,_=new WeakMap,w=new WeakMap,E=new WeakMap,O=new WeakMap,L=new WeakMap,F=new WeakMap,x=new WeakMap,P=new WeakMap,j=new WeakMap,N=new WeakMap,V=new WeakMap,$=new WeakMap,q=new WeakMap,H=new WeakMap,X=new WeakMap,Y=new WeakMap,he=new WeakMap,Te=new WeakMap,Ne=new WeakSet,rN=function(){const D=new l(me(this,y)),B=new l(me(this,y));wt(this,X,D),wt(this,H,B),wt(this,xe,(fe,ge,Le=t.now())=>{if(B[fe]=ge!==0?Le:0,D[fe]=ge,ge!==0&&this.ttlAutopurge){const ee=setTimeout(()=>{me(this,Pe).call(this,fe)&&this.delete(me(this,L)[fe])},ge+1);ee.unref&&ee.unref()}}),wt(this,de,fe=>{B[fe]=D[fe]!==0?t.now():0}),wt(this,ce,(fe,ge)=>{if(D[ge]){const Le=D[ge],ee=B[ge];if(!Le||!ee)return;fe.ttl=Le,fe.start=ee,fe.now=K||ne();const Oe=fe.now-ee;fe.remainingTTL=Le-Oe}});let K=0;const ne=()=>{const fe=t.now();if(this.ttlResolution>0){K=fe;const ge=setTimeout(()=>K=0,this.ttlResolution);ge.unref&&ge.unref()}return fe};this.getRemainingTTL=fe=>{const ge=me(this,O).get(fe);if(ge===void 0)return 0;const Le=D[ge],ee=B[ge];if(!Le||!ee)return 1/0;const Oe=(K||ne())-ee;return Le-Oe},wt(this,Pe,fe=>{const ge=B[fe],Le=D[fe];return!!Le&&!!ge&&(K||ne())-ge>Le})},de=new WeakMap,ce=new WeakMap,xe=new WeakMap,Pe=new WeakMap,we=new WeakSet,Hee=function(){const D=new l(me(this,y));wt(this,E,0),wt(this,q,D),wt(this,Se,B=>{wt(this,E,me(this,E)-D[B]),D[B]=0}),wt(this,M,(B,K,ne,fe)=>{if(pt(this,_e,Sr).call(this,K))return 0;if(!u(ne))if(fe){if(typeof fe!="function")throw new TypeError("sizeCalculation must be a function");if(ne=fe(K,B),!u(ne))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return ne}),wt(this,z,(B,K,ne)=>{if(D[B]=K,me(this,g)){const fe=me(this,g)-D[B];for(;me(this,E)>fe;)pt(this,se,zw).call(this,!0)}wt(this,E,me(this,E)+D[B]),ne&&(ne.entrySize=K,ne.totalCalculatedSize=me(this,E))})},Se=new WeakMap,z=new WeakMap,M=new WeakMap,k=new WeakSet,Ho=function*({allowStale:D=this.allowStale}={}){if(me(this,w))for(let B=me(this,N);!(!pt(this,G,nN).call(this,B)||((D||!me(this,Pe).call(this,B))&&(yield B),B===me(this,j)));)B=me(this,P)[B]},R=new WeakSet,Qo=function*({allowStale:D=this.allowStale}={}){if(me(this,w))for(let B=me(this,j);!(!pt(this,G,nN).call(this,B)||((D||!me(this,Pe).call(this,B))&&(yield B),B===me(this,N)));)B=me(this,x)[B]},G=new WeakSet,nN=function(D){return D!==void 0&&me(this,O).get(me(this,L)[D])===D},se=new WeakSet,zw=function(D){var fe,ge;const B=me(this,j),K=me(this,L)[B],ne=me(this,F)[B];return me(this,he)&&pt(this,_e,Sr).call(this,ne)?ne.__abortController.abort(new Error("evicted")):(me(this,Y)||me(this,Te))&&(me(this,Y)&&((fe=me(this,b))==null||fe.call(this,ne,K,"evict")),me(this,Te)&&((ge=me(this,$))==null||ge.push([ne,K,"evict"]))),me(this,Se).call(this,B),D&&(me(this,L)[B]=void 0,me(this,F)[B]=void 0,me(this,V).push(B)),me(this,w)===1?(wt(this,j,wt(this,N,0)),me(this,V).length=0):wt(this,j,me(this,x)[B]),me(this,O).delete(K),tv(this,w)._--,B},le=new WeakSet,Gw=function(D,B,K,ne){const fe=B===void 0?void 0:me(this,F)[B];if(pt(this,_e,Sr).call(this,fe))return fe;const ge=new a,{signal:Le}=K;Le==null||Le.addEventListener("abort",()=>ge.abort(Le.reason),{signal:ge.signal});const ee={signal:ge.signal,options:K,context:ne},Oe=(ct,ht=!1)=>{const{aborted:te}=ge.signal,S=K.ignoreFetchAbort&&ct!==void 0;if(K.status&&(te&&!ht?(K.status.fetchAborted=!0,K.status.fetchError=ge.signal.reason,S&&(K.status.fetchAbortIgnored=!0)):K.status.fetchResolved=!0),te&&!S&&!ht)return Ue(ge.signal.reason);const A=ut;return me(this,F)[B]===ut&&(ct===void 0?A.__staleWhileFetching?me(this,F)[B]=A.__staleWhileFetching:this.delete(D):(K.status&&(K.status.fetchUpdated=!0),this.set(D,ct,ee.options))),ct},De=ct=>(K.status&&(K.status.fetchRejected=!0,K.status.fetchError=ct),Ue(ct)),Ue=ct=>{const{aborted:ht}=ge.signal,te=ht&&K.allowStaleOnFetchAbort,S=te||K.allowStaleOnFetchRejection,A=S||K.noDeleteOnFetchRejection,C=ut;if(me(this,F)[B]===ut&&(!A||C.__staleWhileFetching===void 0?this.delete(D):te||(me(this,F)[B]=C.__staleWhileFetching)),S)return K.status&&C.__staleWhileFetching!==void 0&&(K.status.returnedStale=!0),C.__staleWhileFetching;if(C.__returned===C)throw ct},Ye=(ct,ht)=>{var S;const te=(S=me(this,_))==null?void 0:S.call(this,D,fe,ee);te&&te instanceof Promise&&te.then(A=>ct(A===void 0?void 0:A),ht),ge.signal.addEventListener("abort",()=>{(!K.ignoreFetchAbort||K.allowStaleOnFetchAbort)&&(ct(void 0),K.allowStaleOnFetchAbort&&(ct=A=>Oe(A,!0)))})};K.status&&(K.status.fetchDispatched=!0);const ut=new Promise(Ye).then(Oe,De),at=Object.assign(ut,{__abortController:ge,__staleWhileFetching:fe,__returned:void 0});return B===void 0?(this.set(D,at,{...ee.options,status:void 0}),B=me(this,O).get(D)):me(this,F)[B]=at,at},_e=new WeakSet,Sr=function(D){if(!me(this,he))return!1;const B=D;return!!B&&B instanceof Promise&&B.hasOwnProperty("__staleWhileFetching")&&B.__abortController instanceof a},Ee=new WeakSet,iN=function(D,B){me(this,P)[B]=D,me(this,x)[D]=B},Ce=new WeakSet,D_=function(D){D!==me(this,N)&&(D===me(this,j)?wt(this,j,me(this,x)[D]):pt(this,Ee,iN).call(this,me(this,P)[D],me(this,x)[D]),pt(this,Ee,iN).call(this,me(this,N),D),wt(this,N,D))};let f=qe;return Fy.LRUCache=f,Fy}var dU;function LCe(){if(dU)return My;dU=1,Object.defineProperty(My,"__esModule",{value:!0}),My.ActorQueryOperationReducedHash=void 0;const t=Tt(),e=ju();let r=class extends t.ActorQueryOperationTypedMediated{constructor(a){super(a,"reduced")}async testOperation(a,s){return!0}async runOperation(a,s){const o=t.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:a.input,context:s}));return{type:"bindings",bindingsStream:o.bindingsStream.filter(await this.newHashFilter(s)),metadata:o.metadata}}async newHashFilter(a){const{hashFunction:s}=await this.mediatorHashBindings.mediate({allowHashCollisions:!0,context:a}),o=new e.LRUCache({max:this.cacheSize});return u=>{const c=s(u);return o.has(c)?!1:(o.set(c,!0),!0)}}};return My.ActorQueryOperationReducedHash=r,My}var fU;function jCe(){return fU||(fU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(LCe(),t)}(KR)),KR}var JR={},By={},hU;function MCe(){if(hU)return By;hU=1,Object.defineProperty(By,"__esModule",{value:!0}),By.ActorQueryOperationSlice=void 0;const t=Tt(),e=qt;let r=class extends t.ActorQueryOperationTypedMediated{constructor(a){super(a,"slice")}async testOperation(a,s){return!0}async runOperation(a,s){a.length&&(s=s.set(e.KeysQueryOperation.limitIndicator,a.length));const o=await this.mediatorQueryOperation.mediate({operation:a.input,context:s});if(o.type==="bindings")return{type:"bindings",bindingsStream:this.sliceStream(o.bindingsStream,a),metadata:this.sliceMetadata(o,a)};if(o.type==="quads")return{type:"quads",quadStream:this.sliceStream(o.quadStream,a),metadata:this.sliceMetadata(o,a)};throw new Error(`Invalid query output type: Expected 'bindings' or 'quads' but got '${o.type}'`)}sliceStream(a,s){const o=!!s.length||s.length===0,{start:u}=s,c=o?s.start+s.length-1:Number.POSITIVE_INFINITY;return a.transform({offset:u,limit:Math.max(c-u+1,0),autoStart:!1})}sliceMetadata(a,s){const o=!!s.length||s.length===0;return()=>a.metadata().then(u=>{const c={...u.cardinality};return Number.isFinite(c.value)&&(c.value=Math.max(0,c.value-s.start),o&&(c.value=Math.min(c.value,s.length))),{...u,cardinality:c}})}};return By.ActorQueryOperationSlice=r,By}var pU;function FCe(){return pU||(pU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(MCe(),t)}(JR)),JR}var XR={},qy={},yU;function BCe(){if(yU)return qy;yU=1,Object.defineProperty(qy,"__esModule",{value:!0}),qy.ActorQueryOperationUnion=void 0;const t=Tt(),e=ci(),r=Mt,n=In();let a=class Ww extends t.ActorQueryOperationTypedMediated{constructor(o){super(o,"union")}static unionVariables(o){return(0,n.uniqTerms)(o.flat())}static async unionMetadata(o,u,c,l){let d=(await l.mediate({mode:"initialize",context:c})).metadata;for(const h of o)d={...h,...(await l.mediate({mode:"append",accumulatedMetadata:d,appendingMetadata:h,context:c})).metadata};d.state=new e.MetadataValidationState;const f=()=>d.state.invalidate();for(const h of o)h.state.addInvalidateListener(f);return u&&(d.variables=Ww.unionVariables(o.map(h=>h.variables))),d}async testOperation(o,u){return!0}async runOperation(o,u){const c=await Promise.all(o.input.map(d=>this.mediatorQueryOperation.mediate({operation:d,context:u})));let l;for(const d of c)if(l===void 0)l=d.type;else if(l!==d.type)throw new Error(`Unable to union ${l} and ${d.type}`);if(l==="bindings"||o.input.length===0){const d=c.map(t.ActorQueryOperation.getSafeBindings);return{type:"bindings",bindingsStream:new r.UnionIterator(d.map(p=>p.bindingsStream),{autoStart:!1}),metadata:()=>Promise.all(d.map(p=>p.metadata())).then(p=>Ww.unionMetadata(p,!0,u,this.mediatorRdfMetadataAccumulate))}}if(l==="quads"){const d=c.map(t.ActorQueryOperation.getSafeQuads);return{type:"quads",quadStream:new r.UnionIterator(d.map(p=>p.quadStream),{autoStart:!1}),metadata:()=>Promise.all(d.map(p=>p.metadata())).then(p=>Ww.unionMetadata(p,!1,u,this.mediatorRdfMetadataAccumulate))}}throw new Error(`Unable to union ${l}`)}};return qy.ActorQueryOperationUnion=a,qy}var mU;function Qee(){return mU||(mU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(BCe(),t)}(XR)),XR}var YR={},$y={},ZR={},Uy={},ky={},gU;function zee(){if(gU)return ky;gU=1,Object.defineProperty(ky,"__esModule",{value:!0}),ky.PathVariableObjectIterator=void 0;const t=Tt(),e=Mt,r=Ot,n=nr,a=xt(),s=new r.DataFactory,o=new a.Factory;let u=class extends e.BufferedIterator{constructor(l,d,f,h,p,m,y=16){super({autoStart:!0}),this.subject=l,this.predicate=d,this.graph=f,this.context=h,this.mediatorQueryOperation=p,this.maxRunningOperations=y,this.termHashes=new Map,this.runningOperations=[],this.pendingOperations=[],this._push(this.subject,m)}_end(l){for(const d of this.runningOperations)d.destroy();super._end(l)}_push(l,d=!0){let f;if(d&&(f=(0,n.termToString)(l),this.termHashes.has(f)))return;const h=s.variable("b");this.pendingOperations.push({variable:h,operation:o.createPath(l,this.predicate,h,this.graph)}),f&&(this.termHashes.set(f,l),super._push(l))}_read(l,d){const f=this;(async function(){for(;f.runningOperations.lengthf.destroy(b)),g.on("readable",()=>{f.readable=!0,f._fillBufferAsync()}),g.on("end",()=>{f.runningOperations.splice(f.runningOperations.indexOf(g),1),f.readable=!0,f._fillBufferAsync()})),f.setProperty("metadata",y.metadata)}let h=0,p;for(;h!==(h=l);)for(let m=0;m0;m++)(p=f.runningOperations[m].read())!==null&&(l--,f._push(p));f.runningOperations.length===0&&f.pendingOperations.length===0&&f.close()})().then(()=>{d()},h=>this.destroy(h))}};return ky.PathVariableObjectIterator=u,ky}var _U;function qCe(){if(_U)return Uy;_U=1,Object.defineProperty(Uy,"__esModule",{value:!0}),Uy.ActorAbstractPath=void 0;const t=Tt(),e=qt,r=Mt,n=Ot,a=nr,s=xt(),o=zee(),u=new n.DataFactory;let c=class Ks extends t.ActorQueryOperationTypedMediated{constructor(d,f){super(d,"path"),this.predicateType=f}async testOperation(d,f){if(d.predicate.type!==this.predicateType)throw new Error(`This Actor only supports ${this.predicateType} Path operations.`);return!0}generateVariable(d,f){return f?d&&(d.subject.value===f||d.object.value===f)?this.generateVariable(d,`${f}b`):u.variable(f):this.generateVariable(d,"b")}async isPathArbitraryLengthDistinct(d,f){return d.get(e.KeysQueryOperation.isPathArbitraryLengthDistinctKey)?(d=d.set(e.KeysQueryOperation.isPathArbitraryLengthDistinctKey,!1),{context:d,operation:void 0}):(d=d.set(e.KeysQueryOperation.isPathArbitraryLengthDistinctKey,!0),{context:d,operation:t.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:Ks.FACTORY.createDistinct(f),context:d}))})}async predicateStarGraphVariable(d,f,h,p,m,y){const g=this.getPathSources(h),b=this.generateVariable(Ks.FACTORY.createPath(d,h,f,p)),v=Ks.FACTORY.createUnion([this.assignPatternSources(Ks.FACTORY.createPattern(d,b,f,p),g),this.assignPatternSources(Ks.FACTORY.createPattern(f,b,d,p),g)]),_=t.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({context:m,operation:v})),w=new Set;return{bindingsStream:new r.MultiTransformIterator(_.bindingsStream,{multiTransform:O=>{const L=O.get(p);return w.has(L.value)?new r.EmptyIterator:(w.add(L.value),new r.TransformIterator(async()=>{const F=new r.BufferedIterator;return await this.getObjectsPredicateStar(d,h,L,m,{},F,{count:0}),F.transform({transform(x,P,j){j(y.bindings([[f,x],[p,L]])),P()}})},{maxBufferSize:128}))},autoStart:!1}),metadata:_.metadata}}async getObjectsPredicateStarEval(d,f,h,p,m,y,g){if(p.termType==="Variable")return this.predicateStarGraphVariable(d,h,f,p,m,g);const b=new o.PathVariableObjectIterator(d,f,p,m,this.mediatorQueryOperation,y);return{bindingsStream:b.transform({autoStart:!1,transform(_,w,E){E(g.bindings([[h,_]])),w()}}),async metadata(){const _=await new Promise(w=>{b.getProperty("metadata",E=>w(E()))});return _.cardinality.value++,_}}}async getObjectsPredicateStar(d,f,h,p,m,y,g){const b=(0,a.termToString)(d);if(m[b])return;y._push(d),m[b]=d,g.count++;const v=this.generateVariable(),_=Ks.FACTORY.createPath(d,f,v,h),w=t.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:_,context:p}));return w.bindingsStream.on("data",async E=>{const O=E.get(v);await this.getObjectsPredicateStar(O,f,h,p,m,y,g)}),w.bindingsStream.on("end",()=>{--g.count===0&&y.close()}),w.metadata}async getSubjectAndObjectBindingsPredicateStar(d,f,h,p,m,y,g,b,v,_,w,E){const O=(0,a.termToString)(p)+(0,a.termToString)(y);if(v[O])return;if(w.count++,v[O]=!0,_._push(E.bindings([[d,h],[f,p]])),O in b){const F=await b[O];for(const x of F)await this.getSubjectAndObjectBindingsPredicateStar(d,f,h,x,m,y,g,b,v,_,w,E);--w.count===0&&_.close();return}const L=new Promise(async(F,x)=>{const P=[],j=this.generateVariable(),N=Ks.FACTORY.createPath(p,m,j,y),V=t.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:N,context:g}));V.bindingsStream.on("data",async $=>{const q=$.get(j);P.push(q),await this.getSubjectAndObjectBindingsPredicateStar(d,f,h,q,m,y,g,b,v,_,w,E)}),V.bindingsStream.on("error",x),V.bindingsStream.on("end",()=>{--w.count===0&&_.close(),F(P)})});b[O]=L}getPathSources(d){switch(d.type){case s.Algebra.types.ALT:case s.Algebra.types.SEQ:return d.input.flatMap(f=>this.getPathSources(f));case s.Algebra.types.INV:case s.Algebra.types.ONE_OR_MORE_PATH:case s.Algebra.types.ZERO_OR_MORE_PATH:case s.Algebra.types.ZERO_OR_ONE_PATH:return this.getPathSources(d.path);case s.Algebra.types.LINK:case s.Algebra.types.NPS:{const f=t.ActorQueryOperation.getOperationSource(d);if(!f)throw new Error("Could not find a required source on a link path operation");return[f]}}}assignPatternSources(d,f){if(f.length===0)throw new Error("Attempted to assign zero sources to a pattern during property path handling");return f.length===1?t.ActorQueryOperation.assignOperationSource(d,f[0]):Ks.FACTORY.createUnion(f.map(h=>t.ActorQueryOperation.assignOperationSource(d,h)),!0)}};return Uy.ActorAbstractPath=c,c.FACTORY=new s.Factory,Uy}var bU;function Mu(){return bU||(bU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(qCe(),t),r(zee(),t)}(ZR)),ZR}var vU;function $Ce(){if(vU)return $y;vU=1,Object.defineProperty($y,"__esModule",{value:!0}),$y.ActorQueryOperationPathAlt=void 0;const t=Mu(),e=Qee(),r=Tt(),n=Mt,a=xt();let s=class extends t.ActorAbstractPath{constructor(u){super(u,a.Algebra.types.ALT)}async runOperation(u,c){const l=u.predicate,d=(await Promise.all(l.input.map(p=>this.mediatorQueryOperation.mediate({context:c,operation:t.ActorAbstractPath.FACTORY.createPath(u.subject,p,u.object,u.graph)})))).map(r.ActorQueryOperation.getSafeBindings);return{type:"bindings",bindingsStream:new n.UnionIterator(d.map(p=>p.bindingsStream),{autoStart:!1}),metadata:()=>Promise.all(d.map(p=>p.metadata())).then(p=>e.ActorQueryOperationUnion.unionMetadata(p,!0,c,this.mediatorRdfMetadataAccumulate))}}};return $y.ActorQueryOperationPathAlt=s,$y}var wU;function UCe(){return wU||(wU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r($Ce(),t)}(YR)),YR}var ex={},Vy={},SU;function kCe(){if(SU)return Vy;SU=1,Object.defineProperty(Vy,"__esModule",{value:!0}),Vy.ActorQueryOperationPathInv=void 0;const t=Mu(),e=xt();let r=class extends t.ActorAbstractPath{constructor(a){super(a,e.Algebra.types.INV)}async runOperation(a,s){const o=a.predicate,u=t.ActorAbstractPath.FACTORY.createPath(a.object,o.path,a.subject,a.graph);return this.mediatorQueryOperation.mediate({operation:u,context:s})}};return Vy.ActorQueryOperationPathInv=r,Vy}var TU;function VCe(){return TU||(TU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(kCe(),t)}(ex)),ex}var tx={},Hy={},EU;function HCe(){if(EU)return Hy;EU=1,Object.defineProperty(Hy,"__esModule",{value:!0}),Hy.ActorQueryOperationPathLink=void 0;const t=Mu(),e=xt();let r=class extends t.ActorAbstractPath{constructor(a){super(a,e.Algebra.types.LINK)}async runOperation(a,s){const o=a.predicate,u=Object.assign(t.ActorAbstractPath.FACTORY.createPattern(a.subject,o.iri,a.object,a.graph),{metadata:o.metadata});return this.mediatorQueryOperation.mediate({operation:u,context:s})}};return Hy.ActorQueryOperationPathLink=r,Hy}var AU;function QCe(){return AU||(AU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(HCe(),t)}(tx)),tx}var rx={},Qy={},OU;function zCe(){if(OU)return Qy;OU=1,Object.defineProperty(Qy,"__esModule",{value:!0}),Qy.ActorQueryOperationPathNps=void 0;const t=Mu(),e=Tt(),r=xt();let n=class extends t.ActorAbstractPath{constructor(s){super(s,r.Algebra.types.NPS)}async runOperation(s,o){const u=s.predicate,c=this.generateVariable(s),l=Object.assign(t.ActorAbstractPath.FACTORY.createPattern(s.subject,c,s.object,s.graph),{metadata:u.metadata}),d=e.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:l,context:o}));return{type:"bindings",bindingsStream:d.bindingsStream.map(h=>u.iris.some(p=>p.equals(h.get(c)))?null:h.delete(c)),metadata:d.metadata}}};return Qy.ActorQueryOperationPathNps=n,Qy}var RU;function GCe(){return RU||(RU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(zCe(),t)}(rx)),rx}var nx={},zy={},xU;function WCe(){if(xU)return zy;xU=1,Object.defineProperty(zy,"__esModule",{value:!0}),zy.ActorQueryOperationClear=void 0;const t=Tt(),e=Ot,r=new e.DataFactory;let n=class extends t.ActorQueryOperationTypedMediated{constructor(s){super(s,"clear")}async testOperation(s,o){return t.ActorQueryOperation.throwOnReadOnly(o),!0}async runOperation(s,o){let u;s.source==="DEFAULT"?u=r.defaultGraph():typeof s.source=="string"?u=s.source:u=[s.source];const{execute:c}=await this.mediatorUpdateQuads.mediate({deleteGraphs:{graphs:u,requireExistence:!s.silent,dropGraphs:!1},context:o});return{type:"void",execute:c}}};return zy.ActorQueryOperationClear=n,zy}var IU;function KCe(){return IU||(IU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(WCe(),t)}(nx)),nx}var ix={},Gy={},PU;function JCe(){if(PU)return Gy;PU=1,Object.defineProperty(Gy,"__esModule",{value:!0}),Gy.ActorQueryOperationUpdateCompositeUpdate=void 0;const t=Tt();let e=class extends t.ActorQueryOperationTypedMediated{constructor(n){super(n,"compositeupdate")}async testOperation(n,a){return t.ActorQueryOperation.throwOnReadOnly(a),!0}async runOperation(n,a){return{type:"void",execute:()=>(async()=>{for(const o of n.updates)await t.ActorQueryOperation.getSafeVoid(await this.mediatorQueryOperation.mediate({operation:o,context:a})).execute()})()}}};return Gy.ActorQueryOperationUpdateCompositeUpdate=e,Gy}var NU;function XCe(){return NU||(NU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(JCe(),t)}(ix)),ix}var ax={},Wy={},DU;function YCe(){if(DU)return Wy;DU=1,Object.defineProperty(Wy,"__esModule",{value:!0}),Wy.ActorQueryOperationCreate=void 0;const t=Tt();let e=class extends t.ActorQueryOperationTypedMediated{constructor(n){super(n,"create")}async testOperation(n,a){return t.ActorQueryOperation.throwOnReadOnly(a),!0}async runOperation(n,a){const{execute:s}=await this.mediatorUpdateQuads.mediate({createGraphs:{graphs:[n.source],requireNonExistence:!n.silent},context:a});return{type:"void",execute:s}}};return Wy.ActorQueryOperationCreate=e,Wy}var CU;function ZCe(){return CU||(CU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(YCe(),t)}(ax)),ax}var sx={},Ky={},LU;function e4e(){if(LU)return Ky;LU=1,Object.defineProperty(Ky,"__esModule",{value:!0}),Ky.ActorQueryOperationDrop=void 0;const t=Tt(),e=Ot,r=new e.DataFactory;let n=class extends t.ActorQueryOperationTypedMediated{constructor(s){super(s,"drop")}async testOperation(s,o){return t.ActorQueryOperation.throwOnReadOnly(o),!0}async runOperation(s,o){let u;s.source==="DEFAULT"?u=r.defaultGraph():typeof s.source=="string"?u=s.source:u=[s.source];const{execute:c}=await this.mediatorUpdateQuads.mediate({deleteGraphs:{graphs:u,requireExistence:!s.silent,dropGraphs:!0},context:o});return{type:"void",execute:c}}};return Ky.ActorQueryOperationDrop=n,Ky}var jU;function t4e(){return jU||(jU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(e4e(),t)}(sx)),sx}var ox={},Jy={},MU;function r4e(){if(MU)return Jy;MU=1,Object.defineProperty(Jy,"__esModule",{value:!0}),Jy.ActorQueryOperationLoad=void 0;const t=Tt(),e=qt,r=Ot,n=xt(),a=new r.DataFactory;let s=class Gee extends t.ActorQueryOperationTypedMediated{constructor(u){super(u,"load"),this.factory=new n.Factory}async testOperation(u,c){return t.ActorQueryOperation.throwOnReadOnly(c),!0}async runOperation(u,c){let l=c;u.silent&&(l=l.set(e.KeysInitQuery.lenient,!0));const{querySource:d}=await this.mediatorQuerySourceIdentify.mediate({querySourceUnidentified:{value:u.source.value},context:l});let h=Gee.getSafeQuads(await this.mediatorQueryOperation.mediate({operation:this.factory.createConstruct(t.ActorQueryOperation.assignOperationSource(this.factory.createPattern(a.variable("s"),a.variable("p"),a.variable("o")),d),[this.factory.createPattern(a.variable("s"),a.variable("p"),a.variable("o"))]),context:l})).quadStream;u.destination&&(h=h.map(m=>a.quad(m.subject,m.predicate,m.object,u.destination)));const{execute:p}=await this.mediatorUpdateQuads.mediate({quadStreamInsert:h,context:c});return{type:"void",execute:p}}};return Jy.ActorQueryOperationLoad=s,Jy}var FU;function n4e(){return FU||(FU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(r4e(),t)}(ox)),ox}var ux={},Xy={},BU;function i4e(){if(BU)return Xy;BU=1,Object.defineProperty(Xy,"__esModule",{value:!0}),Xy.ActorQueryOperationJoin=void 0;const t=Tt();let e=class extends t.ActorQueryOperationTypedMediated{constructor(n){super(n,"join")}async testOperation(n,a){return!0}async runOperation(n,a){const s=(await Promise.all(n.input.map(async o=>({output:await this.mediatorQueryOperation.mediate({operation:o,context:a}),operation:o})))).map(({output:o,operation:u})=>({output:t.ActorQueryOperation.getSafeBindings(o),operation:u}));return this.mediatorJoin.mediate({type:"inner",entries:s,context:a})}};return Xy.ActorQueryOperationJoin=e,Xy}var qU;function a4e(){return qU||(qU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(i4e(),t)}(ux)),ux}var cx={},Yy={},$U;function s4e(){if($U)return Yy;$U=1,Object.defineProperty(Yy,"__esModule",{value:!0}),Yy.ActorQueryOperationMinus=void 0;const t=Tt();let e=class extends t.ActorQueryOperationTypedMediated{constructor(n){super(n,"minus")}async testOperation(n,a){return!0}async runOperation(n,a){const s=(await Promise.all(n.input.map(async o=>({output:await this.mediatorQueryOperation.mediate({operation:o,context:a}),operation:o})))).map(({output:o,operation:u})=>({output:t.ActorQueryOperation.getSafeBindings(o),operation:u}));return this.mediatorJoin.mediate({type:"minus",entries:s,context:a})}};return Yy.ActorQueryOperationMinus=e,Yy}var UU;function o4e(){return UU||(UU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(s4e(),t)}(cx)),cx}var lx={},Zy={},kU;function u4e(){if(kU)return Zy;kU=1,Object.defineProperty(Zy,"__esModule",{value:!0}),Zy.ActorQueryOperationPathSeq=void 0;const t=Mu(),e=Tt(),r=xt();let n=class extends t.ActorAbstractPath{constructor(s){super(s,r.Algebra.types.SEQ)}async runOperation(s,o){const u=s.predicate;let c=s.subject;const l=[],d=await Promise.all(u.input.map((p,m)=>{const y=m===u.input.length-1?s.object:this.generateVariable(s,`b${m}`),g=t.ActorAbstractPath.FACTORY.createPath(c,p,y,s.graph),b=this.mediatorQueryOperation.mediate({context:o,operation:g});return c=y,m({output:e.ActorQueryOperation.getSafeBindings(await p),operation:m}))),f=e.ActorQueryOperation.getSafeBindings(await this.mediatorJoin.mediate({type:"inner",entries:d,context:o}));return{type:"bindings",bindingsStream:f.bindingsStream.transform({transform(p,m,y){for(const g of l)p=p.delete(g);y(p),m()}}),async metadata(){const p=await f.metadata(),m=p.variables.filter(y=>!l.some(g=>g.value===y.value));return{...p,variables:m}}}}};return Zy.ActorQueryOperationPathSeq=n,Zy}var VU;function c4e(){return VU||(VU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(u4e(),t)}(lx)),lx}var dx={},em={},HU;function l4e(){if(HU)return em;HU=1,Object.defineProperty(em,"__esModule",{value:!0}),em.ActorRdfJoinMultiSmallest=void 0;const t=Tt(),e=li(),r=xt();let n=class Wee extends e.ActorRdfJoin{constructor(s){super(s,{logicalType:"inner",physicalName:"multi-smallest",limitEntries:3,limitEntriesMin:!0,canHandleUndefs:!0,isLeaf:!1})}async sortJoinEntries(s,o){return(await this.mediatorJoinEntriesSort.mediate({entries:s,context:o})).entries}async getOutput(s){const o=await this.sortJoinEntries(await e.ActorRdfJoin.getEntriesWithMetadatas([...s.entries]),s.context),u=o[0],c=o[1];o.splice(0,2);const l={output:t.ActorQueryOperation.getSafeBindings(await this.mediatorJoin.mediate({type:s.type,entries:[u,c],context:s.context})),operation:Wee.FACTORY.createJoin([u.operation,c.operation],!1)};return o.push(l),{result:await this.mediatorJoin.mediate({type:s.type,entries:o,context:s.context})}}async getJoinCoefficients(s,o){o=[...o],o=(await this.sortJoinEntries(s.entries.map((d,f)=>({...d,metadata:o[f]})),s.context)).map(d=>d.metadata);const c=e.ActorRdfJoin.getRequestInitialTimes(o),l=e.ActorRdfJoin.getRequestItemTimes(o);return{iterations:o[0].cardinality.value*o[1].cardinality.value*o.slice(2).reduce((d,f)=>d*f.cardinality.value,1),persistedItems:0,blockingItems:0,requestTime:c[0]+o[0].cardinality.value*l[0]+c[1]+o[1].cardinality.value*l[1]+o.slice(2).reduce((d,f,h)=>d+c.slice(2)[h]+f.cardinality.value*l.slice(2)[h],0)}}};return em.ActorRdfJoinMultiSmallest=n,n.FACTORY=new r.Factory,em}var QU;function d4e(){return QU||(QU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(l4e(),t)}(dx)),dx}var fx={},tm={},hx={},rm={},nm={},zU;function Kee(){if(zU)return nm;zU=1,Object.defineProperty(nm,"__esModule",{value:!0}),nm.bindingsToString=void 0;const t=nr;function e(r){const n={};for(const a of r.keys())n[a.value]=(0,t.termToString)(r.get(a));return JSON.stringify(n,null," ")}return nm.bindingsToString=e,nm}var GU;function Jee(){if(GU)return rm;GU=1,Object.defineProperty(rm,"__esModule",{value:!0}),rm.Bindings=void 0;const t=st,e=BC,r=Kee();let n=class Wi{constructor(s,o,u){this.type="bindings",this.dataFactory=s,this.entries=o,this.contextHolder=u}has(s){return this.entries.has(typeof s=="string"?s:s.value)}get(s){return this.entries.get(typeof s=="string"?s:s.value)}set(s,o){return new Wi(this.dataFactory,this.entries.set(typeof s=="string"?s:s.value,o),this.contextHolder)}delete(s){return new Wi(this.dataFactory,this.entries.delete(typeof s=="string"?s:s.value),this.contextHolder)}keys(){return this.mapIterable(this.iteratorToIterable(this.entries.keys()),s=>this.dataFactory.variable(s))}values(){return this.iteratorToIterable(this.entries.values())}forEach(s){for(const[o,u]of this.entries.entries())s(u,this.dataFactory.variable(o))}get size(){return this.entries.size}[Symbol.iterator](){return this.mapIterable(this.iteratorToIterable(this.entries.entries()),([s,o])=>[this.dataFactory.variable(s),o])[Symbol.iterator]()}equals(s){var o;if(!s)return!1;if(this===s)return!0;if(this.size!==s.size)return!1;for(const u of this.keys())if(!((o=this.get(u))!=null&&o.equals(s.get(u))))return!1;return!0}filter(s){return new Wi(this.dataFactory,(0,e.Map)(this.entries.filter((o,u)=>s(o,this.dataFactory.variable(u)))),this.contextHolder)}map(s){return new Wi(this.dataFactory,(0,e.Map)(this.entries.map((o,u)=>s(o,this.dataFactory.variable(u)))),this.contextHolder)}merge(s){const o=new Set([...this.iteratorToIterable(this.entries.keys()),...[...s.keys()].map(c=>c.value)]),u=[];for(const c of o){const l=this.entries.get(c),d=s.get(this.dataFactory.variable(c));if(l&&d&&!l.equals(d))return;const f=l||d;u.push([c,f])}return this.createBindingsWithContexts(u,s)}mergeWith(s,o){const u=new Set([...this.iteratorToIterable(this.entries.keys()),...[...o.keys()].map(l=>l.value)]),c=[];for(const l of u){const d=this.dataFactory.variable(l),f=this.entries.get(l),h=o.get(d);let p;f&&h&&!f.equals(h)?p=s(f,h,d):p=f||h,c.push([l,p])}return this.createBindingsWithContexts(c,o)}createBindingsWithContexts(s,o){if(this.contextHolder&&this.contextHolder.context){let u=this.contextHolder.context;return"contextHolder"in o&&o.contextHolder&&o.contextHolder.context&&(u=Wi.mergeContext(this.contextHolder.contextMergeHandlers,u,o.contextHolder.context)),new Wi(this.dataFactory,(0,e.Map)(s),{contextMergeHandlers:this.contextHolder.contextMergeHandlers,context:u})}return new Wi(this.dataFactory,(0,e.Map)(s),o.contextHolder)}static mergeContext(s,o,u){const c=[...o.keys(),...u.keys()],l={},d={},f=new Set(u.keys().map(p=>p.name)),h=o.keys().filter(p=>f.has(p.name));for(const p of c){if(d[p.name]===1)continue;d[p.name]=1;const m=h.some(y=>y.name===p.name);if(s[p.name]&&m){l[p.name]=s[p.name].run(o.get(p),u.get(p));continue}if(!(!s[p.name]&&m)){if(!o.get(p)){l[p.name]=u.get(p);continue}u.get(p)||(l[p.name]=o.get(p))}}return new t.ActionContext(l)}setContextEntry(s,o){return this.setContextEntryRaw(s,o)}setContextEntryRaw(s,o){var u;return this.contextHolder&&this.contextHolder.context?new Wi(this.dataFactory,this.entries,{contextMergeHandlers:this.contextHolder.contextMergeHandlers,context:this.contextHolder.context.set(s,o)}):new Wi(this.dataFactory,this.entries,{contextMergeHandlers:((u=this.contextHolder)==null?void 0:u.contextMergeHandlers)??{},context:new t.ActionContext().set(s,o)})}deleteContextEntry(s){return this.deleteContextEntryRaw(s)}deleteContextEntryRaw(s){var o;return this.contextHolder?new Wi(this.dataFactory,this.entries,{contextMergeHandlers:this.contextHolder.contextMergeHandlers,context:(o=this.contextHolder.context)==null?void 0:o.delete(s)}):new Wi(this.dataFactory,this.entries)}getContext(){var s;return(s=this.contextHolder)==null?void 0:s.context}getContextEntry(s){var o;return(o=this.getContext())==null?void 0:o.get(s)}toString(){return(0,r.bindingsToString)(this)}*mapIterable(s,o){for(const u of s)yield o(u)}iteratorToIterable(s){return{[Symbol.iterator]:()=>s}}};return rm.Bindings=n,rm}var im={},WU;function f4e(){if(WU)return im;WU=1,Object.defineProperty(im,"__esModule",{value:!0}),im.BindingsFactory=void 0;const t=BC,e=Ot,r=Jee();let n=class Xee{constructor(s=new e.DataFactory,o){this.dataFactory=s,this.contextMergeHandlers=o}static async create(s,o){return new Xee(new e.DataFactory,(await s.mediate({context:o})).mergeHandlers)}bindings(s=[]){return new r.Bindings(this.dataFactory,(0,t.Map)(s.map(([o,u])=>[o.value,u])),this.contextMergeHandlers?{contextMergeHandlers:this.contextMergeHandlers}:void 0)}fromBindings(s){return this.bindings([...s])}fromRecord(s){return this.bindings(Object.entries(s).map(([o,u])=>[this.dataFactory.variable(o),u]))}};return im.BindingsFactory=n,im}var KU;function kr(){return KU||(KU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Jee(),t),r(f4e(),t),r(Kee(),t)}(hx)),hx}var JU;function h4e(){if(JU)return tm;JU=1,Object.defineProperty(tm,"__esModule",{value:!0}),tm.ActorRdfJoinMultiSmallestFilterBindings=void 0;const t=kr(),e=Tt(),r=li(),n=qt,a=Mt,s=xt();let o=class Yee extends r.ActorRdfJoin{constructor(c){super(c,{logicalType:"inner",physicalName:"multi-smallest-filter-bindings",limitEntries:2,limitEntriesMin:!0,isLeaf:!1})}async sortJoinEntries(c,l){let{entries:d}=await this.mediatorJoinEntriesSort.mediate({entries:c,context:l});d=d.sort((g,b)=>g.operationModified&&!b.operationModified?-1:0);const f=d.splice(0,1)[0];let h,p=-1,m=0;for(const[g,b]of d.entries()){const v=f.metadata.variables.filter(_=>b.metadata.variables.some(w=>_.equals(w))).length;(!h||v>m||v===m&&(b.metadata.variables.lengthf.metadata.variables.some(F=>L.equals(F))),y={},g=p.clone().map(L=>L.filter((F,x)=>m.some(P=>P.equals(x)))).filter(L=>{const F=(0,t.bindingsToString)(L);return!(F in y)&&(y[F]=!0)}),b=new r.ChunkedIterator(g,this.blockSize,{autoStart:!1}),v=e.ActorQueryOperation.getOperationSource(f.operation),w={output:{type:"bindings",bindingsStream:new a.UnionIterator(b.map(L=>v.source.queryBindings(f.operation,v.context?c.context.merge(v.context):c.context,{filterBindings:{bindings:L,metadata:d.metadata}}))),metadata:f.output.metadata},operation:f.operation,operationModified:!0};f.output.bindingsStream.destroy();const E={output:e.ActorQueryOperation.getSafeBindings(await this.mediatorJoin.mediate({type:c.type,entries:[d,w],context:c.context.set(n.KeysRdfJoin.lastPhysicalJoin,this.physicalName)})),operation:Yee.FACTORY.createJoin([d.operation,w.operation],!1),operationModified:!0},O=h;return O.unshift(E),{result:await this.mediatorJoin.mediate({type:c.type,entries:O,context:c.context}),physicalPlanMetadata:{firstIndex:l.indexOf(d),secondIndex:l.indexOf(f)}}}async getJoinCoefficients(c,l){if(c.context.get(n.KeysRdfJoin.lastPhysicalJoin)===this.physicalName)throw new Error(`Actor ${this.name} can not be called recursively`);l=[...l];const{first:d,second:f,remaining:h}=await this.sortJoinEntries(c.entries.map((w,E)=>({...w,metadata:l[E]})),c.context),p=e.ActorQueryOperation.getOperationSource(f.operation);if(!p)throw new Error(`Actor ${this.name} can only process if entries[1] has a source`);const m=f.operation,y=await p.source.getSelectorShape(c.context);if(!e.ActorQueryOperation.doesShapeAcceptOperation(y,m,{filterBindings:!0}))throw new Error(`Actor ${this.name} can only process if entries[1] accept filterBindings`);l=[d.metadata,f.metadata,...h.map(w=>w.metadata)];const g=r.ActorRdfJoin.getRequestInitialTimes(l),b=r.ActorRdfJoin.getRequestItemTimes(l),{selectivity:v}=await this.mediatorJoinSelectivity.mediate({entries:[d,f],context:c.context}),_=h.reduce((w,E)=>w*E.metadata.cardinality.value*this.selectivityModifier,1);return{iterations:v*this.selectivityModifier*f.metadata.cardinality.value*_,persistedItems:d.metadata.cardinality.value,blockingItems:d.metadata.cardinality.value,requestTime:g[0]+l[0].cardinality.value*b[0]+g[1]+_*b[1]}}};return tm.ActorRdfJoinMultiSmallestFilterBindings=o,o.FACTORY=new s.Factory,tm}var XU;function p4e(){return XU||(XU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(h4e(),t)}(fx)),fx}var px={},am={},YU;function y4e(){if(YU)return am;YU=1,Object.defineProperty(am,"__esModule",{value:!0}),am.ActorOptimizeQueryOperationFilterPushdown=void 0;const t=Ua(),e=In(),r=xt();let n=class extends t.ActorOptimizeQueryOperation{constructor(s){super(s)}async test(s){return!0}async run(s){const o=this;return{operation:r.Util.mapOperation(s.operation,{filter(c,l){const d=o.getExpressionVariables(c.expression);return{recurse:!0,result:o.filterPushdown(c.expression,d,c.input,l,s.context)}}}),context:s.context}}getExpressionVariables(s){switch(s.expressionType){case r.Algebra.expressionTypes.AGGREGATE:case r.Algebra.expressionTypes.WILDCARD:throw new Error(`Getting expression variables is not supported for ${s.expressionType}`);case r.Algebra.expressionTypes.EXISTENCE:return r.Util.inScopeVariables(s.input);case r.Algebra.expressionTypes.NAMED:return[];case r.Algebra.expressionTypes.OPERATOR:return(0,e.uniqTerms)(s.args.flatMap(o=>this.getExpressionVariables(o)));case r.Algebra.expressionTypes.TERM:return s.term.termType==="Variable"?[s.term]:[]}}getOverlappingOperations(s,o){const u=[],c=[],l=[];for(const d of s.input){const f=r.Util.inScopeVariables(d);this.variablesSubSetOf(o,f)?u.push(d):this.variablesIntersect(o,f)?c.push(d):l.push(d)}return{fullyOverlapping:u,partiallyOverlapping:c,notOverlapping:l}}filterPushdown(s,o,u,c,l){switch(u.type){case r.Algebra.types.EXTEND:return this.variablesIntersect([u.variable],o)?c.createFilter(u,s):c.createExtend(this.filterPushdown(s,o,u.input,c,l),u.variable,u.expression);case r.Algebra.types.FILTER:return c.createFilter(this.filterPushdown(s,o,u.input,c,l),u.expression);case r.Algebra.types.JOIN:{if(u.input.length===0)return c.createFilter(u,s);const{fullyOverlapping:d,partiallyOverlapping:f,notOverlapping:h}=this.getOverlappingOperations(u,o),p=[];return this.logDebug(l,`Push down filter across join entries with ${d.length} fully overlapping, ${f.length} partially overlapping, and ${h.length} not overlapping`),d.length>0&&p.push(c.createJoin(d.map(m=>this.filterPushdown(s,o,m,c,l)))),f.length>0&&p.push(c.createFilter(c.createJoin(f,!1),s)),h.length>0&&p.push(...h),p.length===1?p[0]:c.createJoin(p)}case r.Algebra.types.NOP:return u;case r.Algebra.types.PROJECT:return this.variablesIntersect(u.variables,o)?c.createProject(this.filterPushdown(s,o,u.input,c,l),u.variables):u;case r.Algebra.types.UNION:{const{fullyOverlapping:d,partiallyOverlapping:f,notOverlapping:h}=this.getOverlappingOperations(u,o),p=[];return this.logDebug(l,`Push down filter across union entries with ${d.length} fully overlapping, ${f.length} partially overlapping, and ${h.length} not overlapping`),d.length>0&&p.push(c.createUnion(d.map(m=>this.filterPushdown(s,o,m,c,l)))),f.length>0&&p.push(c.createFilter(c.createUnion(f,!1),s)),h.length>0&&p.push(...h),p.length===1?p[0]:c.createUnion(p)}case r.Algebra.types.VALUES:return this.variablesIntersect(u.variables,o)?c.createFilter(u,s):u;case r.Algebra.types.LEFT_JOIN:case r.Algebra.types.MINUS:case r.Algebra.types.ALT:case r.Algebra.types.ASK:case r.Algebra.types.BGP:case r.Algebra.types.CONSTRUCT:case r.Algebra.types.DESCRIBE:case r.Algebra.types.DISTINCT:case r.Algebra.types.EXPRESSION:case r.Algebra.types.FROM:case r.Algebra.types.GRAPH:case r.Algebra.types.GROUP:case r.Algebra.types.INV:case r.Algebra.types.LINK:case r.Algebra.types.NPS:case r.Algebra.types.ONE_OR_MORE_PATH:case r.Algebra.types.ORDER_BY:case r.Algebra.types.PATTERN:case r.Algebra.types.REDUCED:case r.Algebra.types.SEQ:case r.Algebra.types.SERVICE:case r.Algebra.types.SLICE:case r.Algebra.types.PATH:case r.Algebra.types.ZERO_OR_MORE_PATH:case r.Algebra.types.ZERO_OR_ONE_PATH:case r.Algebra.types.COMPOSITE_UPDATE:case r.Algebra.types.DELETE_INSERT:case r.Algebra.types.LOAD:case r.Algebra.types.CLEAR:case r.Algebra.types.CREATE:case r.Algebra.types.DROP:case r.Algebra.types.ADD:case r.Algebra.types.MOVE:case r.Algebra.types.COPY:return c.createFilter(u,s)}}variablesIntersect(s,o){return s.some(u=>o.some(c=>u.equals(c)))}variablesSubSetOf(s,o){return s.length<=o.length&&s.every(u=>o.some(c=>u.equals(c)))}};return am.ActorOptimizeQueryOperationFilterPushdown=n,am}var ZU;function m4e(){return ZU||(ZU=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(y4e(),t)}(px)),px}var yx={},sm={},nc={},ek;function Zee(){if(ek)return nc;ek=1,Object.defineProperty(nc,"__esModule",{value:!0}),nc.ActorDereferenceHttpBase=nc.mediaTypesToAcceptString=void 0;const t=XC(),e=Lu(),r=S4,n=ga,a=ml,s=/^[^ ;]*/u;function o(c,l){const d="*/*;q=0.1",f=[],h=Object.entries(c).map(([m,y])=>({mediaType:m,priority:y})).sort((m,y)=>y.priority===m.priority?m.mediaType.localeCompare(y.mediaType):y.priority-m.priority);let p=h.length-1;for(const{mediaType:m,priority:y}of h){const g=m+(y===1?"":`;q=${y.toFixed(3).replace(/0*$/u,"")}`);if(p+g.length>l){for(;p+d.length>l;){const b=f.pop()??"";p-=b.length+1}f.push(d);break}f.push(g),p+=g.length}return f.length===0?"*/*":f.join(",")}nc.mediaTypesToAcceptString=o;let u=class extends t.ActorDereference{constructor(l){super(l)}async test({url:l}){if(!/^https?:/u.test(l))throw new Error(`Cannot retrieve ${l} because it is not an HTTP(S) URL.`);return!0}async run(l){var b,v;let d=!0;const f=new r.Headers(l.headers);f.append("Accept",o(await((b=l.mediaTypes)==null?void 0:b.call(l))??{},this.getMaxAcceptHeaderLength()));let h;const p=Date.now();try{h=await this.mediatorHttp.mediate({context:l.context,init:{headers:f,method:l.method},input:l.url})}catch(_){return this.handleDereferenceErrors(l,_)}const m=(0,n.resolve)(h.url,l.url),y=Date.now()-p;if(h.status!==200){d=!1;const _=h.body?await a(e.ActorHttp.toNodeReadable(h.body)):"empty response";if(!l.acceptErrors){const w=new Error(`Could not retrieve ${l.url} (HTTP status ${h.status}): +${_}`);return this.handleDereferenceErrors(l,w,h.headers,y)}}const g=(v=s.exec(h.headers.get("content-type")??""))==null?void 0:v[0];return{url:m,data:d?e.ActorHttp.toNodeReadable(h.body):(0,t.emptyReadable)(),exists:d,requestTime:y,headers:h.headers,mediaType:g==="text/plain"?void 0:g}}};return nc.ActorDereferenceHttpBase=u,nc}var tk;function g4e(){if(tk)return sm;tk=1,Object.defineProperty(sm,"__esModule",{value:!0}),sm.ActorDereferenceHttp=void 0;const t=Zee();class e extends t.ActorDereferenceHttpBase{getMaxAcceptHeaderLength(){return this.maxAcceptHeaderLengthBrowser}}return sm.ActorDereferenceHttp=e,sm}var rk;function _4e(){return rk||(rk=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(g4e(),t),r(Zee(),t)}(yx)),yx}var mx={},om={},nk;function b4e(){if(nk)return om;nk=1,Object.defineProperty(om,"__esModule",{value:!0}),om.ActorHttpProxy=void 0;const t=Lu(),e=qt;let r=class extends t.ActorHttp{constructor(a){super(a)}async test(a){const s=a.context.get(e.KeysHttpProxy.httpProxyHandler);if(!s)throw new Error(`Actor ${this.name} could not find a proxy handler in the context.`);if(!await s.getProxy(a))throw new Error(`Actor ${this.name} could not determine a proxy for the given request.`);return{time:Number.POSITIVE_INFINITY}}async run(a){const s=typeof a.input=="string"?a.input:a.input.url,o=a.context.get(e.KeysHttpProxy.httpProxyHandler),u=await this.mediatorHttp.mediate({...await o.getProxy(a),context:a.context.delete(e.KeysHttpProxy.httpProxyHandler)});return Object.defineProperty(u,"url",{configurable:!0,enumerable:!0,get:()=>u.headers.get("x-final-url")??s}),u}};return om.ActorHttpProxy=r,om}var um={},ik;function v4e(){if(ik)return um;ik=1,Object.defineProperty(um,"__esModule",{value:!0}),um.ProxyHandlerStatic=void 0;let t=class{constructor(r){this.prefixUrl=r}async getProxy(r){return{init:r.init,input:this.modifyInput(r.input)}}modifyInput(r){return typeof r=="string"?this.prefixUrl+r:new Request(this.prefixUrl+r.url,r)}};return um.ProxyHandlerStatic=t,um}var ak;function w4e(){return ak||(ak=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(b4e(),t),r(v4e(),t)}(mx)),mx}var gx={},cm={},sk;function S4e(){if(sk)return cm;sk=1,Object.defineProperty(cm,"__esModule",{value:!0}),cm.ActorContextPreprocessQuerySourceIdentify=void 0;const t=A1(),e=qt,r=st,n=ju();let a=class extends t.ActorContextPreprocess{constructor(o){super(o),this.cache=this.cacheSize?new n.LRUCache({max:this.cacheSize}):void 0;const u=this.cache;u&&this.httpInvalidator.addInvalidateListener(({url:c})=>c?u.delete(c):u.clear())}async test(o){return!0}async run(o){let u=o.context;if(u.has(e.KeysInitQuery.querySourcesUnidentified)){const c=o.context.get(e.KeysInitQuery.querySourcesUnidentified),l=await Promise.all(c.map(f=>this.expandSource(f))),d=await Promise.all(l.map(async f=>this.identifySource(f,o.context)));u=o.context.delete(e.KeysInitQuery.querySourcesUnidentified).set(e.KeysQueryOperation.querySources,d)}return{context:u}}async expandSource(o){return typeof o=="string"||"match"in o?{value:o}:{...o,context:(await this.mediatorContextPreprocess.mediate({context:r.ActionContext.ensureActionContext(o.context??{})})).context}}identifySource(o,u){let c;return typeof o.value=="string"&&this.cache&&(c=this.cache.get(o.value)),c||(c=this.mediatorQuerySourceIdentify.mediate({querySourceUnidentified:o,context:u}).then(({querySource:l})=>l),typeof o.value=="string"&&this.cache&&this.cache.set(o.value,c)),c}};return cm.ActorContextPreprocessQuerySourceIdentify=a,cm}var ok;function T4e(){return ok||(ok=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(S4e(),t)}(gx)),gx}var _x={},lm={},uk;function E4e(){if(uk)return lm;uk=1,Object.defineProperty(lm,"__esModule",{value:!0}),lm.ActorRdfUpdateQuadsHypermedia=void 0;const t=b4(),e=ju();let r=class extends t.ActorRdfUpdateQuadsDestination{constructor(a){super(a),this.cache=this.cacheSize?new e.LRUCache({max:this.cacheSize}):void 0;const s=this.cache;s&&this.httpInvalidator.addInvalidateListener(({url:o})=>o?s.delete(o):s.clear())}async test(a){if(!(0,t.getContextDestinationUrl)((0,t.getContextDestination)(a.context)))throw new Error(`Actor ${this.name} can only update quads against a single destination URL.`);return!0}getDestination(a){const s=(0,t.getContextDestination)(a);let o=(0,t.getContextDestinationUrl)(s);if(this.cache&&this.cache.has(o))return this.cache.get(o);const u=(async()=>{var f;let c,l;try{const h=await this.mediatorDereferenceRdf.mediate({context:a,url:o,acceptErrors:!0});l=h.exists,o=h.url;const p=await this.mediatorMetadata.mediate({context:a,url:o,quads:h.data,triples:(f=h.metadata)==null?void 0:f.triples});c=(await this.mediatorMetadataExtract.mediate({context:a,url:o,metadata:p.metadata,headers:h.headers,requestTime:h.requestTime})).metadata}catch{c={},l=!1}const{destination:d}=await this.mediatorRdfUpdateHypermedia.mediate({context:a,url:o,metadata:c,exists:l,forceDestinationType:(0,t.getDataDestinationType)(s)});return d})();return this.cache&&this.cache.set(o,u),u}};return lm.ActorRdfUpdateQuadsHypermedia=r,lm}var ck;function A4e(){return ck||(ck=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(E4e(),t)}(_x)),_x}var bx={},dm={},lk;function O4e(){if(lk)return dm;lk=1,Object.defineProperty(dm,"__esModule",{value:!0}),dm.ActionObserverHttp=void 0;const t=st;class e extends t.ActionObserver{constructor(n){super(n),this.requests=0,this.bus.subscribeObserver(this),this.httpInvalidator.addInvalidateListener(()=>{this.requests=0})}onRun(n,a,s){this.requests++}}return dm.ActionObserverHttp=e,dm}var fm={},dk;function R4e(){if(dk)return fm;dk=1,Object.defineProperty(fm,"__esModule",{value:!0}),fm.ActorQueryResultSerializeSparqlJson=void 0;const t=Ss(),e=Mt,r=Pt;let n=class C_ extends t.ActorQueryResultSerializeFixedMediaTypes{constructor(s){super(s)}static bindingToJsonBindings(s){if(s.termType==="Literal"){const o=s,u={value:o.value,type:"literal"},{language:c,datatype:l}=o;return c?u["xml:lang"]=c:l&&l.value!=="http://www.w3.org/2001/XMLSchema#string"&&(u.datatype=l.value),u}return s.termType==="BlankNode"?{value:s.value,type:"bnode"}:s.termType==="Quad"?{value:{subject:C_.bindingToJsonBindings(s.subject),predicate:C_.bindingToJsonBindings(s.predicate),object:C_.bindingToJsonBindings(s.object)},type:"triple"}:{value:s.value,type:"uri"}}async testHandleChecked(s,o){if(!["bindings","boolean"].includes(s.type))throw new Error("This actor can only handle bindings streams or booleans.");return!0}async runHandle(s,o,u){const c=new r.Readable,l={};if(s.type==="bindings"){const d=await s.metadata();d.variables.length>0&&(l.vars=d.variables.map(f=>f.value))}if(c.push(`{"head": ${JSON.stringify(l)}, `),s.type==="bindings"){const d=s.bindingsStream;c.push(`"results": { "bindings": [ `);let f=!0;function*h(p){yield p()}c.wrap((0,e.wrap)(d).map(p=>{const m=`${f?"":`, `}${JSON.stringify(Object.fromEntries([...p].map(([y,g])=>[y.value,C_.bindingToJsonBindings(g)])))}`;return f=!1,m}).append((0,e.wrap)(h(()=>` @@ -340,13 +340,13 @@ ${_}`);return this.handleDereferenceErrors(l,w,h.headers,y)}}const g=(v=s.exec(h "metadata": { "httpRequests": ${this.httpObserver.requests} }`:""}} `))))}else c.wrap((0,e.wrap)(s.execute().then(d=>[`"boolean":${d} } -`])));return{data:c}}};return fm.ActorQueryResultSerializeSparqlJson=n,fm}var fk;function hk(){return fk||(fk=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(R4e(),t),r(x4e(),t)}(vx)),vx}var wx={},hm={},pk;function I4e(){if(pk)return hm;pk=1,Object.defineProperty(hm,"__esModule",{value:!0}),hm.ActionObserverHttp=void 0;const t=st;let e=class extends t.ActionObserver{constructor(n){super(n),this.requests=0,this.bus.subscribeObserver(this),this.httpInvalidator.addInvalidateListener(()=>{this.requests=0})}onRun(n,a,s){this.requests++}};return hm.ActionObserverHttp=e,hm}var pm={},yk;function P4e(){if(yk)return pm;yk=1,Object.defineProperty(pm,"__esModule",{value:!0}),pm.ActorQueryResultSerializeStats=void 0;const t=Ss(),e=Mt,r=Pt,n=Oo;let a=class extends t.ActorQueryResultSerializeFixedMediaTypes{constructor(o){super(o)}async testHandleChecked(o,u){if(!["bindings","quads"].includes(o.type))throw new Error("This actor can only handle bindings streams or quad streams.");return!0}pushHeader(o){const u=["Result","Delay (ms)","HTTP requests"].join(",");o.push(`${u} +`])));return{data:c}}};return fm.ActorQueryResultSerializeSparqlJson=n,fm}var fk;function hk(){return fk||(fk=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(O4e(),t),r(R4e(),t)}(bx)),bx}var vx={},hm={},pk;function x4e(){if(pk)return hm;pk=1,Object.defineProperty(hm,"__esModule",{value:!0}),hm.ActionObserverHttp=void 0;const t=st;let e=class extends t.ActionObserver{constructor(n){super(n),this.requests=0,this.bus.subscribeObserver(this),this.httpInvalidator.addInvalidateListener(()=>{this.requests=0})}onRun(n,a,s){this.requests++}};return hm.ActionObserverHttp=e,hm}var pm={},yk;function I4e(){if(yk)return pm;yk=1,Object.defineProperty(pm,"__esModule",{value:!0}),pm.ActorQueryResultSerializeStats=void 0;const t=Ss(),e=Mt,r=Pt,n=Oo;let a=class extends t.ActorQueryResultSerializeFixedMediaTypes{constructor(o){super(o)}async testHandleChecked(o,u){if(!["bindings","quads"].includes(o.type))throw new Error("This actor can only handle bindings streams or quad streams.");return!0}pushHeader(o){const u=["Result","Delay (ms)","HTTP requests"].join(",");o.push(`${u} `)}createStat(o,u){return`${[u,this.delay(o),this.httpObserver.requests].join(",")} `}createFooter(o){return`${["TOTAL",this.delay(o),this.httpObserver.requests].join(",")} -`}async runHandle(o,u,c){const l=new r.Readable,d=o.type==="bindings"?o.bindingsStream:o.quadStream,f=this.now();let h=1;function*p(y){yield y()}const m=(0,e.wrap)(d).map(()=>this.createStat(f,h++)).append((0,e.wrap)(p(()=>this.createFooter(f))));return this.pushHeader(l),l.wrap(m),{data:l}}now(){if(typeof performance>"u"){const o=n.hrtime();return o[0]*1e3+o[1]/1e6}return performance.now()}delay(o){return this.now()-o}};return pm.ActorQueryResultSerializeStats=a,pm}var mk;function gk(){return mk||(mk=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(I4e(),t),r(P4e(),t)}(wx)),wx}var Sx={},ym={},Tx={},mm={},_k;function N4e(){if(_k)return mm;_k=1,Object.defineProperty(mm,"__esModule",{value:!0}),mm.ActorQuerySourceIdentifyHypermedia=void 0;const t=st;class e extends t.Actor{constructor(n,a){super(n),this.sourceType=a}async test(n){if(n.forceSourceType&&this.sourceType!==n.forceSourceType)throw new Error(`Actor ${this.name} is not able to handle source type ${n.forceSourceType}.`);return this.testMetadata(n)}}return mm.ActorQuerySourceIdentifyHypermedia=e,mm}var bk;function T4(){return bk||(bk=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(N4e(),t)}(Tx)),Tx}var gm={},Ex={},_m={},vk;function D4e(){if(vk)return _m;vk=1,Object.defineProperty(_m,"__esModule",{value:!0}),_m.ActorQuerySourceIdentify=void 0;const t=st;let e=class extends t.Actor{constructor(n){super(n)}};return _m.ActorQuerySourceIdentify=e,_m}var cn={},wk;function C4e(){if(wk)return cn;wk=1,Object.defineProperty(cn,"__esModule",{value:!0}),cn.filterMatchingQuotedQuads=cn.quadsOrderToBindingsOrder=cn.quadsMetadataToBindingsMetadata=cn.setMetadata=cn.getDuplicateElementLinks=cn.getVariables=cn.isTermVariable=cn.quadsToBindings=void 0;const t=Tt(),e=ci(),r=Ot,n=nr,a=In(),s=wY(),o=new r.DataFactory;function u(y,g,b,v){const _=l(g),w=g.graph.termType==="Variable"&&!v,E=d(g),O=(0,a.reduceTermsNested)(g,(F,x,P)=>(x.termType==="Variable"&&(F[P.join("_")]=x.value),F),{}),L=new t.ClosableTransformIterator(async()=>{let F=y;return w&&(F=F.filter(x=>x.graph.termType!=="DefaultGraph")),E&&(F=F.filter(x=>{for(const P in E){const j=P.split("_"),N=(0,a.getValueNestedPath)(x,j);for(const V of E[P])if(!N.equals((0,a.getValueNestedPath)(x,V)))return!1}return!0})),F.map(x=>b.bindings(Object.keys(O).map(P=>{const j=P.split("_"),N=O[P],V=(0,a.getValueNestedPath)(x,j);return[o.variable(N),V]})))},{autoStart:!1,onClose:()=>y.destroy()});return f(L,y,O,_,w||!!E),L}cn.quadsToBindings=u;function c(y){return y.termType==="Variable"}cn.isTermVariable=c;function l(y){return(0,a.uniqTerms)((0,a.getTermsNested)(y).filter(c))}cn.getVariables=l;function d(y){const g={};let b=!1;if((0,a.forEachTermsNested)(y,(_,w)=>{if(_.termType==="Variable"){const E=(0,n.termToString)(_),O=(g[E]||(g[E]=[])).push(w);b=b||O>1}}),!b)return;const v={};for(const _ in g){const w=g[_],E=w.slice(1);E.length>0&&(v[w[0].join("_")]=E)}return v}cn.getDuplicateElementLinks=d;function f(y,g,b,v,_){const w=O=>{"canContainUndefs"in O||(O.canContainUndefs=!1),_&&(O.cardinality.type="estimate"),y.setProperty("metadata",h((0,e.validateMetadataQuads)(O),b,v)),O.state&&O.state.addInvalidateListener(()=>{f(y,g,b,v,_)})},E=g.getProperty("metadata");E?w(E):g.getProperty("metadata",w)}cn.setMetadata=f;function h(y,g,b){return{...y,canContainUndefs:!1,order:y.order?p(y.order,g):void 0,availableOrders:y.availableOrders?y.availableOrders.map(v=>({cost:v.cost,terms:p(v.terms,g)})):void 0,variables:b}}cn.quadsMetadataToBindingsMetadata=h;function p(y,g){const b={};return y.map(v=>{const _=g[v.term];if(_&&!b[_])return b[_]=!0,{term:o.variable(_),direction:v.direction}}).filter(Boolean)}cn.quadsOrderToBindingsOrder=p;function m(y,g){return(0,a.someTerms)(y,b=>b.termType==="Quad")&&(g=g.filter(b=>(0,s.matchPatternMappings)(b,y))),g}return cn.filterMatchingQuotedQuads=m,cn}var Sk;function q1(){return Sk||(Sk=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(D4e(),t),r(C4e(),t)}(Ex)),Ex}var Tk;function ete(){if(Tk)return gm;Tk=1,Object.defineProperty(gm,"__esModule",{value:!0}),gm.QuerySourceQpf=void 0;const t=q1(),e=qt,r=Mt,n=Ot,a=nr,s=x1(),o=In(),u=xt(),c=new u.Factory,l=new n.DataFactory;let d=class aN{constructor(p,m,y,g,b,v,_,w,E,O,L,F){this.referenceValue=E,this.mediatorMetadata=p,this.mediatorMetadataExtract=m,this.mediatorDereferenceRdf=y,this.bindingsFactory=g,this.subjectUri=b,this.predicateUri=v,this.objectUri=_,this.graphUri=w,this.url=E,this.bindingsRestricted=L,this.cachedQuads={};const x=this.getSearchForm(O);if(!x)throw new Error("Illegal state: found no TPF/QPF search form anymore in metadata.");if(this.searchForm=x,this.defaultGraph=O.defaultGraph?l.namedNode(O.defaultGraph):void 0,F){let P=(0,r.wrap)(F);this.defaultGraph&&(P=this.reverseMapQuadsToDefaultGraph(P)),P.setProperty("metadata",O),this.cacheQuads(P,l.variable(""),l.variable(""),l.variable(""),l.variable(""))}}async getSelectorShape(){return this.bindingsRestricted?aN.SELECTOR_SHAPE_BR:aN.SELECTOR_SHAPE}queryBindings(p,m,y){if(p.type!=="pattern")throw new Error(`Attempted to pass non-pattern operation '${p.type}' to QuerySourceQpf`);const g=!!m.get(e.KeysQueryOperation.unionDefaultGraph);let b=this.match(p.subject,p.predicate,p.object,p.graph,g,m,y);return b=(0,t.filterMatchingQuotedQuads)(p,b),(0,t.quadsToBindings)(b,p,this.bindingsFactory,g)}getSearchForm(p){if(!p.searchForms||!p.searchForms.values)return;const{searchForms:m}=p;for(const y of m.values)if(this.graphUri&&this.subjectUri in y.mappings&&this.predicateUri in y.mappings&&this.objectUri in y.mappings&&this.graphUri in y.mappings&&Object.keys(y.mappings).length===4||this.subjectUri in y.mappings&&this.predicateUri in y.mappings&&this.objectUri in y.mappings&&Object.keys(y.mappings).length===3)return y}createFragmentUri(p,m,y,g,b){const v={},_=[{uri:this.subjectUri,term:m},{uri:this.predicateUri,term:y},{uri:this.objectUri,term:g},{uri:this.graphUri,term:b}];for(const w of _)w.uri&&(this.bindingsRestricted||w.term.termType!=="Variable"&&(w.term.termType!=="Quad"||(0,o.everyTermsNested)(w.term,E=>E.termType!=="Variable")))&&(v[w.uri]=(0,a.termToString)(w.term));return p.getUri(v)}match(p,m,y,g,b,v,_){let w=!1;if(g.termType==="DefaultGraph")if(this.defaultGraph)w=!0,g=this.defaultGraph;else if(Object.keys(this.searchForm.mappings).length===4&&!this.defaultGraph)if(b)g=l.variable("g");else{const F=new r.ArrayIterator([],{autoStart:!1});return F.setProperty("metadata",{requestTime:0,cardinality:{type:"exact",value:0},first:null,next:null,last:null,canContainUndefs:!1}),F}else Object.keys(this.searchForm.mappings).length===3&&(g=l.variable("g"));if(!(_!=null&&_.filterBindings)){const F=this.getCachedQuads(p,m,y,g);if(F)return F}const E=this;let O;const L=async function(){var N;let F=E.createFragmentUri(E.searchForm,p,m,y,g);_!=null&&_.filterBindings&&(F=await E.getBindingsRestrictedLink(p,m,y,g,F,_.filterBindings));const x=await E.mediatorDereferenceRdf.mediate({context:v,url:F});F=x.url;const P=await E.mediatorMetadata.mediate({context:v,url:F,quads:x.data,triples:(N=x.metadata)==null?void 0:N.triples}),{metadata:j}=await E.mediatorMetadataExtract.mediate({context:v,url:F,metadata:P.metadata,requestTime:x.requestTime});return O.setProperty("metadata",{...j,canContainUndefs:!1,subsetOf:E.url}),P.data}();return O=new r.TransformIterator(async()=>{const F=await L,x=l.defaultGraph();let P=(0,r.wrap)(F).transform({filter(j){return(0,o.matchPattern)(j,p,m,y,g)?!0:w&&(0,o.matchPattern)(j,p,m,y,x)}});return(w||g.termType==="Variable")&&(P=this.reverseMapQuadsToDefaultGraph(P)),P},{autoStart:!1}),_!=null&&_.filterBindings?O:(this.cacheQuads(O,p,m,y,g),this.getCachedQuads(p,m,y,g))}async getBindingsRestrictedLink(p,m,y,g,b,v){const _=[];for(const E of await v.bindings.toArray()){const O=["("];for(const L of v.metadata.variables){const F=E.get(L);O.push(F?(0,s.termToString)(F):"UNDEF"),O.push(" ")}O.push(")"),_.push(O.join(""))}_.length===0&&_.push("()");const w=encodeURIComponent(`(${v.metadata.variables.map(E=>`?${E.value}`).join(" ")}) { ${_.join(" ")} }`);return`${b}&values=${w}`}reverseMapQuadsToDefaultGraph(p){const m=l.defaultGraph();return p.map(y=>(0,o.mapTerms)(y,(g,b)=>b==="graph"&&g.equals(this.defaultGraph)?m:g))}getPatternId(p,m,y,g){return JSON.stringify({s:p.termType==="Variable"?"":f(p),p:m.termType==="Variable"?"":f(m),o:y.termType==="Variable"?"":f(y),g:g.termType==="Variable"?"":f(g)})}cacheQuads(p,m,y,g,b){const v=this.getPatternId(m,y,g,b);this.cachedQuads[v]=p.clone()}getCachedQuads(p,m,y,g){const b=this.getPatternId(p,m,y,g),v=this.cachedQuads[b];if(v)return v.clone()}queryQuads(p,m){throw new Error("queryQuads is not implemented in QuerySourceQpf")}queryBoolean(p,m){throw new Error("queryBoolean is not implemented in QuerySourceQpf")}queryVoid(p,m){throw new Error("queryVoid is not implemented in QuerySourceQpf")}};gm.QuerySourceQpf=d,d.SELECTOR_SHAPE={type:"operation",operation:{operationType:"pattern",pattern:c.createPattern(l.variable("s"),l.variable("p"),l.variable("o"),l.variable("g"))},variablesOptional:[l.variable("s"),l.variable("p"),l.variable("o"),l.variable("g")]},d.SELECTOR_SHAPE_BR={type:"operation",operation:{operationType:"pattern",pattern:c.createPattern(l.variable("s"),l.variable("p"),l.variable("o"),l.variable("g"))},variablesOptional:[l.variable("s"),l.variable("p"),l.variable("o"),l.variable("g")],filterBindings:!0};function f(h){return h.termType==="DefaultGraph"?"|":(0,a.termToString)(h)}return gm}var Ek;function L4e(){if(Ek)return ym;Ek=1,Object.defineProperty(ym,"__esModule",{value:!0}),ym.ActorQuerySourceIdentifyHypermediaQpf=void 0;const t=kr(),e=T4(),r=ete();let n=class extends e.ActorQuerySourceIdentifyHypermedia{constructor(s){super(s,"qpf")}async test(s){if(s.forceSourceType&&s.forceSourceType!=="qpf"&&s.forceSourceType!=="brtpf")throw new Error(`Actor ${this.name} is not able to handle source type ${s.forceSourceType}.`);return this.testMetadata(s)}async testMetadata(s){const{searchForm:o}=await this.createSource(s.url,s.metadata,s.context,s.forceSourceType==="brtpf");if(s.handledDatasets&&s.handledDatasets[o.dataset])throw new Error(`Actor ${this.name} can only be applied for the first page of a QPF dataset.`);return{filterFactor:1}}async run(s){this.logInfo(s.context,`Identified as qpf source: ${s.url}`);const o=await this.createSource(s.url,s.metadata,s.context,s.forceSourceType==="brtpf",s.quads);return{source:o,dataset:o.searchForm.dataset}}async createSource(s,o,u,c,l){return new r.QuerySourceQpf(this.mediatorMetadata,this.mediatorMetadataExtract,this.mediatorDereferenceRdf,await t.BindingsFactory.create(this.mediatorMergeBindingsContext,u),this.subjectUri,this.predicateUri,this.objectUri,this.graphUri,s,o,c,l)}};return ym.ActorQuerySourceIdentifyHypermediaQpf=n,ym}var Ak;function j4e(){return Ak||(Ak=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(L4e(),t),r(ete(),t)}(Sx)),Sx}var Ax={},bm={},vm={},Ok;function tte(){if(Ok)return vm;Ok=1,Object.defineProperty(vm,"__esModule",{value:!0}),vm.QuerySourceSparql=void 0;const t=qt,e=Mt,r=Bee(),n=ju(),a=Ot,s=xt(),o=new s.Factory,u=new a.DataFactory,c=u.variable("count"),l={type:"estimate",value:Number.POSITIVE_INFINITY};let d=class Ki{constructor(h,p,m,y,g,b,v,_){this.referenceValue=h,this.url=h,this.context=p,this.mediatorHttp=m,this.bindMethod=y,this.bindingsFactory=g,this.endpointFetcher=new r.SparqlEndpointFetcher({method:b?"GET":"POST",fetch:(w,E)=>this.mediatorHttp.mediate({input:w,init:E,context:this.lastSourceContext}),prefixVariableQuestionMark:!0}),this.cache=v>0?new n.LRUCache({max:v}):void 0,this.countTimeout=_}async getSelectorShape(){return Ki.SELECTOR_SHAPE}queryBindings(h,p,m){let y;m!=null&&m.joinBindings?y=Ki.addBindingsToOperation(this.bindMethod,h,m.joinBindings):y=Promise.resolve(h);const g=new e.TransformIterator(async()=>{const b=await y,v=s.Util.inScopeVariables(b),_=p.get(t.KeysInitQuery.queryString),w=!(m!=null&&m.joinBindings)&&_?_:Ki.operationToSelectQuery(b,v),E=Ki.operationCanContainUndefs(b);return this.queryBindingsRemote(this.url,w,v,p,E)},{autoStart:!1});return this.attachMetadata(g,p,y),g}queryQuads(h,p){this.lastSourceContext=this.context.merge(p);const m=this.endpointFetcher.fetchTriples(this.url,p.get(t.KeysInitQuery.queryString)??Ki.operationToQuery(h));this.lastSourceContext=void 0;const y=(0,e.wrap)(m,{autoStart:!1,maxBufferSize:Number.POSITIVE_INFINITY});return this.attachMetadata(y,p,Promise.resolve(h.input)),y}queryBoolean(h,p){this.lastSourceContext=this.context.merge(p);const m=this.endpointFetcher.fetchAsk(this.url,p.get(t.KeysInitQuery.queryString)??Ki.operationToQuery(h));return this.lastSourceContext=void 0,m}queryVoid(h,p){this.lastSourceContext=this.context.merge(p);const m=this.endpointFetcher.fetchUpdate(this.url,p.get(t.KeysInitQuery.queryString)??Ki.operationToQuery(h));return this.lastSourceContext=void 0,m}attachMetadata(h,p,m){let y=[],g=!1;new Promise(async(b,v)=>{var w;let _;try{const E=await m;y=s.Util.inScopeVariables(E),_=Ki.operationToCountQuery(E),g=Ki.operationCanContainUndefs(E);const O=(w=this.cache)==null?void 0:w.get(_);if(O!==void 0)return b(O);const L=setTimeout(()=>b(l),this.countTimeout),F=await this.queryBindingsRemote(this.url,_,[c],p,!1);F.on("data",x=>{var N;clearTimeout(L);const P=x.get(c),j={type:"estimate",value:Number.POSITIVE_INFINITY};if(P){const V=Number.parseInt(P.value,10);Number.isNaN(V)||(j.type="exact",j.value=V,(N=this.cache)==null||N.set(_,j))}return b(j)}),F.on("error",()=>{clearTimeout(L),b(l)}),F.on("end",()=>{clearTimeout(L),b(l)})}catch(E){return v(E)}}).then(b=>h.setProperty("metadata",{cardinality:b,canContainUndefs:g,variables:y})).catch(()=>h.setProperty("metadata",{cardinality:l,canContainUndefs:g,variables:y}))}static async addBindingsToOperation(h,p,m){const y=await m.bindings.toArray();switch(h){case"values":return o.createJoin([o.createValues(m.metadata.variables,y.map(g=>Object.fromEntries([...g].map(([b,v])=>[`?${b.value}`,v])))),p],!1);case"union":throw new Error('Not implemented yet: "union" case');case"filter":throw new Error('Not implemented yet: "filter" case')}}static operationToSelectQuery(h,p){return Ki.operationToQuery(o.createProject(h,p))}static operationToCountQuery(h){return Ki.operationToQuery(o.createProject(o.createExtend(o.createGroup(h,[],[o.createBoundAggregate(u.variable("var0"),"count",o.createWildcardExpression(),!1)]),u.variable("count"),o.createTermExpression(u.variable("var0"))),[u.variable("count")]))}static operationToQuery(h){return(0,s.toSparql)(h,{sparqlStar:!0})}static operationCanContainUndefs(h){let p=!1;return s.Util.recurseOperation(h,{leftjoin(){return p=!0,!1},values(m){return p=m.bindings.some(y=>m.variables.some(g=>!(`?${g.value}`in y))),!1}}),p}async queryBindingsRemote(h,p,m,y,g){this.lastSourceContext=this.context.merge(y);const b=await this.endpointFetcher.fetchBindings(h,p);this.lastSourceContext=void 0;const v=(0,e.wrap)(b,{autoStart:!1,maxBufferSize:Number.POSITIVE_INFINITY}).map(_=>this.bindingsFactory.bindings(m.map(w=>{const E=_[`?${w.value}`];return!g&&!E&&v.emit("error",new Error(`The endpoint ${h} failed to provide a binding for ${w.value}.`)),[w,E]})));return v}toString(){return`QuerySourceSparql(${this.url})`}};return vm.QuerySourceSparql=d,d.SELECTOR_SHAPE={type:"disjunction",children:[{type:"operation",operation:{operationType:"type",type:s.Algebra.types.PROJECT},joinBindings:!0},{type:"operation",operation:{operationType:"type",type:s.Algebra.types.CONSTRUCT}},{type:"operation",operation:{operationType:"type",type:s.Algebra.types.DESCRIBE}},{type:"operation",operation:{operationType:"type",type:s.Algebra.types.ASK}},{type:"operation",operation:{operationType:"type",type:s.Algebra.types.COMPOSITE_UPDATE}}]},vm}var Rk;function M4e(){if(Rk)return bm;Rk=1,Object.defineProperty(bm,"__esModule",{value:!0}),bm.ActorQuerySourceIdentifyHypermediaSparql=void 0;const t=kr(),e=T4(),r=tte();let n=class extends e.ActorQuerySourceIdentifyHypermedia{constructor(s){super(s,"sparql")}async testMetadata(s){if(!s.forceSourceType&&!s.metadata.sparqlService&&!(this.checkUrlSuffix&&s.url.endsWith("/sparql")))throw new Error(`Actor ${this.name} could not detect a SPARQL service description or URL ending on /sparql.`);return{filterFactor:1}}async run(s){return this.logInfo(s.context,`Identified ${s.url} as sparql source with service URL: ${s.metadata.sparqlService||s.url}`),{source:new r.QuerySourceSparql(s.forceSourceType?s.url:s.metadata.sparqlService||s.url,s.context,this.mediatorHttp,this.bindMethod,await t.BindingsFactory.create(this.mediatorMergeBindingsContext,s.context),this.forceHttpGet,this.cacheSize,this.countTimeout)}}};return bm.ActorQuerySourceIdentifyHypermediaSparql=n,bm}var xk;function F4e(){return xk||(xk=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(M4e(),t),r(tte(),t)}(Ax)),Ax}var Ox={},wm={},Rx={},Sm={},Tm={},Ik;function rte(){if(Ik)return Tm;Ik=1,Object.defineProperty(Tm,"__esModule",{value:!0}),Tm.QuerySourceRdfJs=void 0;const t=q1(),e=qt,r=ci(),n=Mt,a=Ot,s=In(),o=xt(),u=new o.Factory,c=new a.DataFactory;let l=class Kn{constructor(f,h){this.source=f,this.referenceValue=f,this.bindingsFactory=h}static nullifyVariables(f,h){return!f||f.termType==="Variable"||!h&&f.termType==="Quad"&&(0,s.someTermsNested)(f,p=>p.termType==="Variable")?void 0:f}static hasDuplicateVariables(f){const h=(0,s.filterTermsNested)(f,p=>p.termType==="Variable");return h.length>1&&(0,s.uniqTerms)(h).lengthy.destroy(b)),(0,t.quadsToBindings)(y,f,this.bindingsFactory,!!h.get(e.KeysQueryOperation.unionDefaultGraph))}async setMetadata(f,h){var g;const p=!!((g=this.source.features)!=null&&g.quotedTripleFiltering);let m;if(this.source.countQuads)m=await this.source.countQuads(Kn.nullifyVariables(h.subject,p),Kn.nullifyVariables(h.predicate,p),Kn.nullifyVariables(h.object,p),Kn.nullifyVariables(h.graph,p));else{let b=0;m=await new Promise((v,_)=>{const w=this.source.match(Kn.nullifyVariables(h.subject,p),Kn.nullifyVariables(h.predicate,p),Kn.nullifyVariables(h.object,p),Kn.nullifyVariables(h.graph,p));w.on("error",_),w.on("end",()=>v(b)),w.on("data",()=>b++)})}const y=!p&&(0,s.someTerms)(h,b=>b.termType==="Quad")||Kn.hasDuplicateVariables(h);f.setProperty("metadata",{state:new r.MetadataValidationState,cardinality:{type:y?"estimate":"exact",value:m},canContainUndefs:!1})}queryQuads(f,h){throw new Error("queryQuads is not implemented in QuerySourceQpf")}queryBoolean(f,h){throw new Error("queryBoolean is not implemented in QuerySourceQpf")}queryVoid(f,h){throw new Error("queryVoid is not implemented in QuerySourceQpf")}toString(){return`QuerySourceRdfJs(${this.source.constructor.name})`}};return Tm.QuerySourceRdfJs=l,l.SELECTOR_SHAPE={type:"operation",operation:{operationType:"pattern",pattern:u.createPattern(c.variable("s"),c.variable("p"),c.variable("o"))},variablesOptional:[c.variable("s"),c.variable("p"),c.variable("o")]},Tm}var Pk;function B4e(){if(Pk)return Sm;Pk=1,Object.defineProperty(Sm,"__esModule",{value:!0}),Sm.ActorQuerySourceIdentifyRdfJs=void 0;const t=kr(),e=q1(),r=st,n=rte();let a=class extends e.ActorQuerySourceIdentify{constructor(o){super(o)}async test(o){const u=o.querySourceUnidentified;if(u.type!==void 0&&u.type!=="rdfjs")throw new Error(`${this.name} requires a single query source with rdfjs type to be present in the context.`);if(typeof u.value=="string"||!("match"in u.value))throw new Error(`${this.name} received an invalid rdfjs query source.`);return!0}async run(o){return{querySource:{source:new n.QuerySourceRdfJs(o.querySourceUnidentified.value,await t.BindingsFactory.create(this.mediatorMergeBindingsContext,o.context)),context:o.querySourceUnidentified.context??new r.ActionContext}}}};return Sm.ActorQuerySourceIdentifyRdfJs=a,Sm}var xx={},Nk;function q4e(){return Nk||(Nk=1,Object.defineProperty(xx,"__esModule",{value:!0})),xx}var Dk;function E4(){return Dk||(Dk=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(B4e(),t),r(q4e(),t),r(rte(),t)}(Rx)),Rx}var Em={},Ix={},Am={},Om={},Rm={},Ck;function nte(){if(Ck)return Rm;Ck=1,Object.defineProperty(Rm,"__esModule",{value:!0}),Rm.TermDictionaryNumberRecordFullTerms=void 0;const t=Ot,e=nr;let r=class{constructor(a=new t.DataFactory){this.lastId=0,this.dictionary={},this.reverseDictionary={},this.features={quotedTriples:!1},this.dataFactory=a}encode(a){const s=(0,e.termToString)(a);let o=this.dictionary[s];return o===void 0&&(o=this.lastId++,this.dictionary[s]=o,this.reverseDictionary[o]=a),o}encodeOptional(a){const s=(0,e.termToString)(a);return this.dictionary[s]}decode(a){const s=this.reverseDictionary[a];if(s===void 0)throw new Error(`The value ${a} is not present in this dictionary`);return s}*encodings(){for(const a of Object.keys(this.reverseDictionary))yield Number.parseInt(a,10)}findQuotedTriples(a){throw new Error("findQuotedTriples is not supported")}findQuotedTriplesEncoded(a){throw new Error("findQuotedTriplesEncoded is not supported")}};return Rm.TermDictionaryNumberRecordFullTerms=r,Rm}var xm={},Im={},Px={},Lk;function Es(){return Lk||(Lk=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.arePatternsQuoted=t.quadHasVariables=t.quadToPattern=t.encodeOptionalTerms=t.orderQuadComponents=t.getComponentOrderScore=t.getBestIndex=t.QUAD_TERM_NAMES_INVERSE=void 0;const e=In();t.QUAD_TERM_NAMES_INVERSE=Object.fromEntries(e.QUAD_TERM_NAMES.map((l,d)=>[l,d]));function r(l,d){if(l.length===1||d.every(p=>p!==void 0))return 0;const f=[];for(let p=0;p({score:n(p,f),index:m})).sort((p,m)=>m.score-p.score)[0].index}t.getBestIndex=r;function n(l,d){return l.map((f,h)=>d.includes(f)?l.length-h:0).reduce((f,h)=>f+h,0)}t.getComponentOrderScore=n;function a(l,d){return l.map(f=>{const h=t.QUAD_TERM_NAMES_INVERSE[f];return d[h]})}t.orderQuadComponents=a;function s(l,d){const f=l.map(h=>{if(h){if(h.termType==="Quad"&&u(h))return;const p=d.encodeOptional(h);return p===void 0?"none":p}return h});if(!f.includes("none"))return f}t.encodeOptionalTerms=s;function o(l,d,f,h,p){let m=!1;return[[l||void 0,d||void 0,f||void 0,h||void 0].map(g=>{if(g){if(g.termType==="Variable")return;if(g.termType==="Quad"){if(p)return g;m=!0;return}}return g}),m]}t.quadToPattern=o;function u(l){for(const d of e.QUAD_TERM_NAMES){const f=l[d];if(f.termType==="Variable"||f.termType==="Quad"&&u(f))return!0}return!1}t.quadHasVariables=u;function c(l){return l.map(d=>(d==null?void 0:d.termType)==="Quad"&&u(d))}t.arePatternsQuoted=c}(Px)),Px}var jk;function A4(){if(jk)return Im;jk=1,Object.defineProperty(Im,"__esModule",{value:!0}),Im.RdfStoreIndexNestedMap=void 0;const t=Es();let e=class{constructor(n){this.features={quotedTripleFiltering:!1},this.dictionary=n.dictionary,this.nestedMap=new Map}set(n,a){const s=this.nestedMap;let o=s.get(n[0]);o||(o=new Map,s.set(n[0],o));let u=o.get(n[1]);u||(u=new Map,o.set(n[1],u));let c=u.get(n[2]);c||(c=new Map,u.set(n[2],c));const l=c.has(n[3]);return l||c.set(n[3],a),!l}remove(n){const a=this.nestedMap,s=a.get(n[0]);if(!s)return!1;const o=s.get(n[1]);if(!o)return!1;const u=o.get(n[2]);if(!u)return!1;const c=u.delete(n[3]);return c&&u.size===0&&(o.delete(n[2]),o.size===0&&(s.delete(n[1]),s.size===0&&a.delete(n[0]))),c}get(n){const a=(0,t.encodeOptionalTerms)(n,this.dictionary);if(!(!a||a.includes(void 0)))return this.getEncoded(a)}getEncoded(n){const a=this.nestedMap.get(n[0]);if(!a)return;const s=a.get(n[1]);if(!s)return;const o=s.get(n[2]);if(o)return o.get(n[3])}*find(n){const a=(0,t.encodeOptionalTerms)(n,this.dictionary);if(!a)return;const[s,o,u,c]=a,[l,d,f,h]=n;let p,m,y,g,b,v,_;const w=this.nestedMap,E=s!==void 0?w.has(s)?[s]:[]:w.keys();for(const O of E){b=w.get(O),p=l||this.dictionary.decode(O);const L=o!==void 0?b.has(o)?[o]:[]:b.keys();for(const F of L){v=b.get(F),m=d||this.dictionary.decode(F);const x=u!==void 0?v.has(u)?[u]:[]:v.keys();for(const P of x){_=v.get(P),y=f||this.dictionary.decode(P);const j=c!==void 0?_.has(c)?[c]:[]:_.keys();for(const N of j)g=h||this.dictionary.decode(N),yield[p,m,y,g]}}}}*findEncoded(n,a){const[s,o,u,c]=n;let l,d,f;const h=this.nestedMap,p=s!==void 0?h.has(s)?[s]:[]:h.keys();for(const m of p){l=h.get(m);const y=o!==void 0?l.has(o)?[o]:[]:l.keys();for(const g of y){d=l.get(g);const b=u!==void 0?d.has(u)?[u]:[]:d.keys();for(const v of b){f=d.get(v);const _=c!==void 0?f.has(c)?[c]:[]:f.keys();for(const w of _)yield[m,g,v,w]}}}}count(n){let a=0;const s=(0,t.encodeOptionalTerms)(n,this.dictionary);if(!s)return 0;const o=s[0],u=s[1],c=s[2],l=s[3];let d,f,h;const p=this.nestedMap,m=o!==void 0?p.has(o)?[o]:[]:p.keys();for(const y of m){d=p.get(y);const g=u!==void 0?d.has(u)?[u]:[]:d.keys();for(const b of g){f=d.get(b);const v=c!==void 0?f.has(c)?[c]:[]:f.keys();for(const _ of v)h=f.get(_),l!==void 0?h.has(l)&&a++:a+=h.size}}return a}};return Im.RdfStoreIndexNestedMap=e,Im}var Mk;function ite(){if(Mk)return xm;Mk=1,Object.defineProperty(xm,"__esModule",{value:!0}),xm.TermDictionaryQuotedIndexed=void 0;const t=Ot,e=A4(),r=Es();let n=class Js{constructor(s,o=new t.DataFactory){this.quotedTriplesDictionary=[],this.features={quotedTriples:!0},this.plainTermDictionary=s;const u={indexCombinations:[],indexConstructor:void 0,dictionary:this,dataFactory:o};this.quotedTriplesReverseDictionaries=[new e.RdfStoreIndexNestedMap(u),new e.RdfStoreIndexNestedMap(u),new e.RdfStoreIndexNestedMap(u)],this.dataFactory=o}encode(s){return s.termType==="Quad"?this.encodeQuotedTriple(s,!1):this.plainTermDictionary.encode(s)}encodeQuotedTriple(s,o){if(s.graph.termType!=="DefaultGraph")throw new Error("Encoding of quoted quads outside of the default graph is not allowed");const u=(0,r.encodeOptionalTerms)([s.subject,s.predicate,s.object,s.graph],this),c=u&&u.every(h=>h!==void 0)?this.quotedTriplesReverseDictionaries[0].getEncoded(u):void 0;if(c!==void 0||o)return c===void 0?void 0:Js.BITMASK|c;const l=[this.encode(s.subject),this.encode(s.predicate),this.encode(s.object)],d=this.quotedTriplesDictionary.length+1;this.quotedTriplesDictionary.push(l);const f=this.encode(this.dataFactory.defaultGraph());return this.quotedTriplesReverseDictionaries[0].set([l[0],l[1],l[2],f],d),this.quotedTriplesReverseDictionaries[1].set([l[1],l[2],l[0],f],d),this.quotedTriplesReverseDictionaries[2].set([l[2],l[0],l[1],f],d),Js.BITMASK|d}encodeOptional(s){return s.termType==="Quad"?this.encodeQuotedTriple(s,!0):this.plainTermDictionary.encodeOptional(s)}decode(s){if(Js.BITMASK&s){const o=(~Js.BITMASK&s)-1;if(o>=this.quotedTriplesDictionary.length)throw new Error(`The value ${s} is not present in the quoted triples range of the dictionary`);const u=this.quotedTriplesDictionary[o];return this.dataFactory.quad(this.decode(u[0]),this.decode(u[1]),this.decode(u[2]))}return this.plainTermDictionary.decode(s)}*encodings(){for(const s of this.plainTermDictionary.encodings())yield s;for(const s of this.quotedTriplesDictionary.keys())yield Js.BITMASK|1+s}*findQuotedTriples(s){for(const o of this.findQuotedTriplesEncoded(s))yield this.decode(o)}*findQuotedTriplesEncoded(s){const[o,u]=(0,r.quadToPattern)(s.subject,s.predicate,s.object,s.graph,!0);for(const c of this.patternToIterable(o[0]))for(const l of this.patternToIterable(o[1]))for(const d of this.patternToIterable(o[2]))for(const f of this.patternToIterable(o[3]))if(c&&l||!l&&!d){const h=[c,l,d,f];for(const p of this.quotedTriplesReverseDictionaries[0].findEncoded(h,o))yield Js.BITMASK|this.quotedTriplesReverseDictionaries[0].getEncoded(p)}else if(!c&&l){const h=[l,d,c,f];for(const p of this.quotedTriplesReverseDictionaries[1].findEncoded(h,o))yield Js.BITMASK|this.quotedTriplesReverseDictionaries[1].getEncoded(p)}else{const h=[d,c,l,f];for(const p of this.quotedTriplesReverseDictionaries[2].findEncoded(h,o))yield Js.BITMASK|this.quotedTriplesReverseDictionaries[2].getEncoded(p)}}*patternToIterable(s){if((s==null?void 0:s.termType)==="Quad"){yield*this.findQuotedTriplesEncoded(s);return}if(s===void 0){yield void 0;return}const o=this.encodeOptional(s);o!==void 0&&(yield o)}};return n.BITMASK=1<<31,xm.TermDictionaryQuotedIndexed=n,xm}var Pm={},Fk;function ate(){if(Fk)return Pm;Fk=1,Object.defineProperty(Pm,"__esModule",{value:!0}),Pm.RdfStoreIndexNestedMapQuoted=void 0;const t=Es(),e=A4();let r=class extends e.RdfStoreIndexNestedMap{constructor(a){super(a),this.features={quotedTripleFiltering:!0}}*getQuotedPatternKeys(a,s){for(const o of this.dictionary.findQuotedTriplesEncoded(s))a.has(o)&&(yield o)}*find(a){const s=(0,t.encodeOptionalTerms)(a,this.dictionary);if(!s)return;const[o,u,c,l]=s,[d,f,h,p]=a,[m,y,g,b]=(0,t.arePatternsQuoted)(a);let v,_,w,E,O,L,F;const x=this.nestedMap,P=d!==void 0?m?this.getQuotedPatternKeys(x,d):x.has(o)?[o]:[]:x.keys();for(const j of P){O=x.get(j),v=!m&&d?d:this.dictionary.decode(j);const N=f!==void 0?y?this.getQuotedPatternKeys(O,f):O.has(u)?[u]:[]:O.keys();for(const V of N){L=O.get(V),_=!y&&f?f:this.dictionary.decode(V);const $=h!==void 0?g?this.getQuotedPatternKeys(L,h):L.has(c)?[c]:[]:L.keys();for(const q of $){F=L.get(q),w=!g&&h?h:this.dictionary.decode(q);const H=p!==void 0?b?this.getQuotedPatternKeys(F,p):F.has(l)?[l]:[]:F.keys();for(const X of H)E=!b&&p?p:this.dictionary.decode(X),yield[v,_,w,E]}}}}*findEncoded(a,s){const[o,u,c,l]=a,[d,f,h,p]=s,[m,y,g,b]=(0,t.arePatternsQuoted)(s);let v,_,w;const E=this.nestedMap,O=d!==void 0?m?this.getQuotedPatternKeys(E,d):E.has(o)?[o]:[]:E.keys();for(const L of O){v=E.get(L);const F=f!==void 0?y?this.getQuotedPatternKeys(v,f):v.has(u)?[u]:[]:v.keys();for(const x of F){_=v.get(x);const P=h!==void 0?g?this.getQuotedPatternKeys(_,h):_.has(c)?[c]:[]:_.keys();for(const j of P){w=_.get(j);const N=p!==void 0?b?this.getQuotedPatternKeys(w,p):w.has(l)?[l]:[]:w.keys();for(const V of N)yield[Number.parseInt(L,10),Number.parseInt(x,10),Number.parseInt(j,10),Number.parseInt(V,10)]}}}}count(a){let s=0;const o=(0,t.encodeOptionalTerms)(a,this.dictionary);if(!o)return 0;const[u,c,l,d]=o,[f,h,p,m]=a,[y,g,b,v]=(0,t.arePatternsQuoted)(a);let _,w,E;const O=this.nestedMap,L=f!==void 0?y?this.getQuotedPatternKeys(O,f):O.has(u)?[u]:[]:O.keys();for(const F of L){_=O.get(F);const x=h!==void 0?g?this.getQuotedPatternKeys(_,h):_.has(c)?[c]:[]:_.keys();for(const P of x){w=_.get(P);const j=p!==void 0?b?this.getQuotedPatternKeys(w,p):w.has(l)?[l]:[]:w.keys();for(const N of j)E=w.get(N),m!==void 0?v?s+=[...this.getQuotedPatternKeys(E,m)].length:E.has(d)&&s++:s+=E.size}}return s}};return Pm.RdfStoreIndexNestedMapQuoted=r,Pm}var Bk;function ste(){if(Bk)return Om;Bk=1,Object.defineProperty(Om,"__esModule",{value:!0}),Om.RdfStore=void 0;const t=Mt,e=Ot,r=In(),n=ute(),a=nte(),s=ite(),o=ate(),u=Es();let c=class L_{constructor(d){this.features={quotedTripleFiltering:!0},this._size=0,this.options=d,this.dataFactory=d.dataFactory,this.dictionary=d.dictionary,this.indexesWrapped=L_.constructIndexesWrapped(d),this.indexesWrappedComponentOrders=this.indexesWrapped.map(f=>f.componentOrder)}static createDefault(){return new L_({indexCombinations:L_.DEFAULT_INDEX_COMBINATIONS,indexConstructor:d=>new o.RdfStoreIndexNestedMapQuoted(d),dictionary:new s.TermDictionaryQuotedIndexed(new a.TermDictionaryNumberRecordFullTerms),dataFactory:new e.DataFactory})}static constructIndexesWrapped(d){const f=[];if(d.indexCombinations.length===0)throw new Error("At least one index combination is required");for(const h of d.indexCombinations){if(!L_.isCombinationValid(h))throw new Error(`Invalid index combination: ${h}`);f.push({index:d.indexConstructor(d),componentOrder:h,componentOrderInverse:Object.fromEntries(h.map((p,m)=>[p,m]))})}return f}static isCombinationValid(d){for(const f of r.QUAD_TERM_NAMES)if(!d.includes(f))return!1;return d.length===4}get size(){return this._size}addQuad(d){const f=[this.dictionary.encode(d.subject),this.dictionary.encode(d.predicate),this.dictionary.encode(d.object),this.dictionary.encode(d.graph)];let h=!1;for(const p of this.indexesWrapped)h=p.index.set((0,u.orderQuadComponents)(p.componentOrder,f),!0);return h?(this._size++,!0):!1}removeQuad(d){const f=[this.dictionary.encodeOptional(d.subject),this.dictionary.encodeOptional(d.predicate),this.dictionary.encodeOptional(d.object),this.dictionary.encodeOptional(d.graph)];if(f.includes(void 0))return!1;let h=!1;for(const p of this.indexesWrapped)if(h=p.index.remove((0,u.orderQuadComponents)(p.componentOrder,f)),!h)break;return h?(this._size--,!0):!1}remove(d){return d.on("data",f=>this.removeQuad(f)),d}removeMatches(d,f,h,p){return this.remove(this.match(d,f,h,p))}deleteGraph(d){return typeof d=="string"&&(d=this.dataFactory.namedNode(d)),this.removeMatches(void 0,void 0,void 0,d)}import(d){return d.on("data",f=>this.addQuad(f)),d}*readQuads(d,f,h,p){const m=!!this.dictionary.features.quotedTriples&&Object.values(this.indexesWrapped).every(_=>_.index.features.quotedTripleFiltering),[y,g]=(0,u.quadToPattern)(d,f,h,p,m),b=this.indexesWrapped[(0,u.getBestIndex)(this.indexesWrappedComponentOrders,y)],v=(0,u.orderQuadComponents)(b.componentOrder,y);for(const _ of b.index.find(v)){const w=this.dataFactory.quad(_[b.componentOrderInverse.subject],_[b.componentOrderInverse.predicate],_[b.componentOrderInverse.object],_[b.componentOrderInverse.graph]);g?(0,r.matchPattern)(w,d,f,h,p)&&(yield w):yield w}}getQuads(d,f,h,p){return[...this.readQuads(d,f,h,p)]}match(d,f,h,p){return(0,t.wrap)(this.readQuads(d,f,h,p))}countQuads(d,f,h,p){const m=!!this.dictionary.features.quotedTriples&&Object.values(this.indexesWrapped).every(v=>v.index.features.quotedTripleFiltering),[y]=(0,u.quadToPattern)(d,f,h,p,m);if(y.every(v=>v===void 0))return this.size;const g=this.indexesWrapped[(0,u.getBestIndex)(this.indexesWrappedComponentOrders,y)],b=(0,u.orderQuadComponents)(g.componentOrder,y);return g.index.count(b)}asDataset(){return new n.DatasetCoreWrapper(this)}};return c.DEFAULT_INDEX_COMBINATIONS=[["graph","subject","predicate","object"],["graph","predicate","object","subject"],["graph","object","subject","predicate"]],Om.RdfStore=c,Om}var qk;function ute(){if(qk)return Am;qk=1,Object.defineProperty(Am,"__esModule",{value:!0}),Am.DatasetCoreWrapper=void 0;const t=ste();let e=class ote{constructor(n){this.store=n}get size(){return this.store.size}add(n){return this.store.addQuad(n),this}delete(n){return this.store.removeQuad(n),this}has(n){for(const a of this.store.readQuads(n.subject,n.predicate,n.object,n.graph))return!0;return!1}match(n,a,s,o){const u=new t.RdfStore(this.store.options);for(const c of this.store.readQuads(n,a,s,o))u.addQuad(c);return new ote(u)}[Symbol.iterator](){return this.store.readQuads()}};return Am.DatasetCoreWrapper=e,Am}var Nx={},$k;function $4e(){return $k||($k=1,Object.defineProperty(Nx,"__esModule",{value:!0})),Nx}var Nm={},Uk;function U4e(){if(Uk)return Nm;Uk=1,Object.defineProperty(Nm,"__esModule",{value:!0}),Nm.TermDictionaryNumberMap=void 0;const t=Ot,e=nr;let r=class{constructor(a=new t.DataFactory){this.lastId=0,this.dictionary=new Map,this.reverseDictionary=new Map,this.features={quotedTriples:!1},this.dataFactory=a}encode(a){const s=(0,e.termToString)(a);let o=this.dictionary.get(s);return o===void 0&&(o=this.lastId++,this.dictionary.set(s,o),this.reverseDictionary.set(o,s)),o}encodeOptional(a){const s=(0,e.termToString)(a);return this.dictionary.get(s)}decode(a){const s=this.reverseDictionary.get(a);if(s===void 0)throw new Error(`The value ${a} is not present in this dictionary`);return(0,e.stringToTerm)(s,this.dataFactory)}encodings(){return this.reverseDictionary.keys()}findQuotedTriples(a){throw new Error("findQuotedTriples is not supported")}findQuotedTriplesEncoded(a){throw new Error("findQuotedTriplesEncoded is not supported")}};return Nm.TermDictionaryNumberMap=r,Nm}var Dm={},kk;function k4e(){if(kk)return Dm;kk=1,Object.defineProperty(Dm,"__esModule",{value:!0}),Dm.TermDictionaryNumberRecord=void 0;const t=Ot,e=nr;let r=class{constructor(a=new t.DataFactory){this.lastId=0,this.dictionary={},this.reverseDictionary={},this.features={quotedTriples:!1},this.dataFactory=a}encode(a){const s=(0,e.termToString)(a);let o=this.dictionary[s];return o===void 0&&(o=this.lastId++,this.dictionary[s]=o,this.reverseDictionary[o]=s),o}encodeOptional(a){const s=(0,e.termToString)(a);return this.dictionary[s]}decode(a){const s=this.reverseDictionary[a];if(s===void 0)throw new Error(`The value ${a} is not present in this dictionary`);return(0,e.stringToTerm)(s,this.dataFactory)}*encodings(){for(const a of Object.keys(this.reverseDictionary))yield Number.parseInt(a,10)}findQuotedTriples(a){throw new Error("findQuotedTriples is not supported")}findQuotedTriplesEncoded(a){throw new Error("findQuotedTriplesEncoded is not supported")}};return Dm.TermDictionaryNumberRecord=r,Dm}var Cm={},Vk;function V4e(){if(Vk)return Cm;Vk=1,Object.defineProperty(Cm,"__esModule",{value:!0}),Cm.TermDictionaryQuoted=void 0;const t=Ot,e=In();let r=class yc{constructor(a,s,o=new t.DataFactory){this.features={quotedTriples:!0},this.plainTermDictionary=a,this.quotedTriplesDictionary=s,this.dataFactory=o}encode(a){return a.termType==="Quad"?yc.BITMASK|1+this.quotedTriplesDictionary.encode(a):this.plainTermDictionary.encode(a)}encodeOptional(a){if(a.termType==="Quad"){const s=this.quotedTriplesDictionary.encodeOptional(a);return s===void 0?s:yc.BITMASK|1+s}return this.plainTermDictionary.encodeOptional(a)}decode(a){if(yc.BITMASK&a){const s=(~yc.BITMASK&a)-1;return this.quotedTriplesDictionary.decode(s)}return this.plainTermDictionary.decode(a)}*encodings(){for(const a of this.plainTermDictionary.encodings())yield a;for(const a of this.quotedTriplesDictionary.encodings())yield yc.BITMASK|1+a}*findQuotedTriples(a){for(const s of this.findQuotedTriplesEncoded(a))yield this.decode(s)}*findQuotedTriplesEncoded(a){for(let s of this.quotedTriplesDictionary.encodings()){s=yc.BITMASK|1+s;const o=this.decode(s);(0,e.matchPattern)(o,a.subject,a.predicate,a.object,a.graph)&&(yield s)}}};return r.BITMASK=1<<31,Cm.TermDictionaryQuoted=r,Cm}var Lm={},Hk;function H4e(){if(Hk)return Lm;Hk=1,Object.defineProperty(Lm,"__esModule",{value:!0}),Lm.TermDictionaryQuotedReferential=void 0;const t=Ot,e=In(),r=Es();let n=class Xs{constructor(s,o=new t.DataFactory){this.quotedTriplesDictionary=[],this.quotedTriplesReverseDictionary={},this.features={quotedTriples:!0},this.plainTermDictionary=s,this.dataFactory=o}encode(s){return s.termType==="Quad"?this.encodeQuotedTriple(s,!1):this.plainTermDictionary.encode(s)}encodeQuotedTriple(s,o){var u;if(s.graph.termType!=="DefaultGraph")throw new Error("Encoding of quoted quads outside of the default graph is not allowed");const c=(u=(0,r.encodeOptionalTerms)([s.subject,s.predicate,s.object,void 0],this))===null||u===void 0?void 0:u.slice(0,3),l=c&&c.every(h=>h!==void 0)?this.quotedTriplesReverseDictionary[c.join(Xs.SEPARATOR)]:void 0;if(l!==void 0||o)return l===void 0?void 0:Xs.BITMASK|l;const d=[this.encode(s.subject),this.encode(s.predicate),this.encode(s.object)],f=this.quotedTriplesDictionary.length+1;return this.quotedTriplesDictionary.push(d),this.quotedTriplesReverseDictionary[d.join(Xs.SEPARATOR)]=f,Xs.BITMASK|f}encodeOptional(s){return s.termType==="Quad"?this.encodeQuotedTriple(s,!0):this.plainTermDictionary.encodeOptional(s)}decode(s){if(Xs.BITMASK&s){const o=(~Xs.BITMASK&s)-1;if(o>=this.quotedTriplesDictionary.length)throw new Error(`The value ${s} is not present in the quoted triples range of the dictionary`);const u=this.quotedTriplesDictionary[o];return this.dataFactory.quad(this.decode(u[0]),this.decode(u[1]),this.decode(u[2]))}return this.plainTermDictionary.decode(s)}*encodings(){for(const s of this.plainTermDictionary.encodings())yield s;for(const s of this.quotedTriplesDictionary.keys())yield Xs.BITMASK|1+s}*findQuotedTriples(s){for(const o of this.findQuotedTriplesEncoded(s))yield this.decode(o)}*findQuotedTriplesEncoded(s){for(let o of this.quotedTriplesDictionary.keys()){o=Xs.BITMASK|1+o;const u=this.decode(o);(0,e.matchPattern)(u,s.subject,s.predicate,s.object,s.graph)&&(yield o)}}};return n.BITMASK=1<<31,n.SEPARATOR="_",Lm.TermDictionaryQuotedReferential=n,Lm}var jm={},Qk;function Q4e(){if(Qk)return jm;Qk=1,Object.defineProperty(jm,"__esModule",{value:!0}),jm.TermDictionarySymbol=void 0;const t=Ot,e=nr;let r=class{constructor(a=new t.DataFactory){this.features={quotedTriples:!1},this.dataFactory=a}encode(a){return Symbol.for(`rdf::${(0,e.termToString)(a)}`)}encodeOptional(a){return this.encode(a)}decode(a){const s=Symbol.keyFor(a);if(s===void 0)throw new Error(`The value ${String(a)} is not present in this dictionary`);return(0,e.stringToTerm)(s.slice(5),this.dataFactory)}encodings(){throw new Error("encodings is not supported")}findQuotedTriples(a){throw new Error("findQuotedTriples is not supported")}findQuotedTriplesEncoded(a){throw new Error("findQuotedTriplesEncoded is not supported")}};return jm.TermDictionarySymbol=r,jm}var Dx={},zk;function z4e(){return zk||(zk=1,Object.defineProperty(Dx,"__esModule",{value:!0})),Dx}var Mm={},Gk;function cte(){if(Gk)return Mm;Gk=1,Object.defineProperty(Mm,"__esModule",{value:!0}),Mm.RdfStoreIndexNestedMapRecursive=void 0;const t=Es();let e=class{constructor(n){this.features={quotedTripleFiltering:!1},this.dictionary=n.dictionary,this.nestedMap=new Map}set(n,a){let s=this.nestedMap,o=!1;for(const[u,c]of n.entries()){const l=s;let d=l.get(c);d?u===n.length-1&&(o=!0):(d=u===n.length-1?a:new Map,l.set(c,d)),s=d}return!o}remove(n){const a=this.nestedMap,s=a.get(n[0]);if(!s)return!1;const o=s.get(n[1]);if(!o)return!1;const u=o.get(n[2]);if(!u)return!1;const c=u.delete(n[3]);return c&&u.size===0&&(o.delete(n[2]),o.size===0&&(s.delete(n[1]),s.size===0&&a.delete(n[0]))),c}get(n){const a=(0,t.encodeOptionalTerms)(n,this.dictionary);if(!(!a||a.includes(void 0)))return this.getEncoded(a)}getEncoded(n){const a=this.nestedMap.get(n[0]);if(!a)return;const s=a.get(n[1]);if(!s)return;const o=s.get(n[2]);if(o)return o.get(n[3])}*find(n){const a=(0,t.encodeOptionalTerms)(n,this.dictionary);if(a)for(const s of this.findEncoded(a,n))yield[a[0]!==void 0?n[0]:this.dictionary.decode(s[0]),a[1]!==void 0?n[1]:this.dictionary.decode(s[1]),a[2]!==void 0?n[2]:this.dictionary.decode(s[2]),a[3]!==void 0?n[3]:this.dictionary.decode(s[3])]}*findEncoded(n,a){return yield*this.findEncodedInner(0,n,a,this.nestedMap,[])}*findEncodedInner(n,a,s,o,u){if(n===a.length)yield[...u];else{const c=a[n];if(s[n]){const d=c;if(d!==void 0){const f=o.get(d);f&&(u[n]=c,yield*this.findEncodedInner(n+1,a,s,f,u))}}else for(const[d,f]of o.entries())u[n]=d,yield*this.findEncodedInner(n+1,a,s,f,u)}}count(n){return this.countInner(0,n,this.nestedMap)}countInner(n,a,s){const o=a[n];let u=0;if(o){const c=this.dictionary.encodeOptional(o);if(c!==void 0){if(n===a.length-1)return s.has(c)?1:0;const l=s.get(c);l&&(u+=this.countInner(n+1,a,l))}}else{if(n===a.length-1)return s.size;for(const c of s.values())u+=this.countInner(n+1,a,c)}return u}};return Mm.RdfStoreIndexNestedMapRecursive=e,Mm}var Fm={},Wk;function G4e(){if(Wk)return Fm;Wk=1,Object.defineProperty(Fm,"__esModule",{value:!0}),Fm.RdfStoreIndexNestedMapRecursiveQuoted=void 0;const t=Es(),e=cte();let r=class extends e.RdfStoreIndexNestedMapRecursive{constructor(a){super(a),this.features={quotedTripleFiltering:!0}}*findEncoded(a,s){return yield*this.findEncodedInnerQuoted(0,a,s,(0,t.arePatternsQuoted)(s),this.nestedMap,[])}*findEncodedInnerQuoted(a,s,o,u,c,l){if(a===s.length)yield[...l];else{const d=s[a],f=o[a];if(f)if(u[a]){const h=this.dictionary.findQuotedTriplesEncoded(f);for(const p of h){const m=c.get(p);m&&(l[a]=p,yield*this.findEncodedInnerQuoted(a+1,s,o,u,m,l))}}else{const h=d;if(h!==void 0){const p=c.get(h);p&&(l[a]=d,yield*this.findEncodedInnerQuoted(a+1,s,o,u,p,l))}}else for(const[h,p]of c.entries())l[a]=h,yield*this.findEncodedInnerQuoted(a+1,s,o,u,p,l)}}countInner(a,s,o){const u=s[a];let c=0;if(u)if(u.termType==="Quad"&&(0,t.quadHasVariables)(u)){const l=this.dictionary.findQuotedTriplesEncoded(u);for(const d of l)if(a===s.length-1)o.has(d)&&c++;else{const f=o.get(d);f&&(c+=this.countInner(a+1,s,f))}}else{const l=this.dictionary.encodeOptional(u);if(l!==void 0){if(a===s.length-1)return o.has(l)?1:0;const d=o.get(l);d&&(c+=this.countInner(a+1,s,d))}}else{if(a===s.length-1)return o.size;for(const l of o.values())c+=this.countInner(a+1,s,l)}return c}};return Fm.RdfStoreIndexNestedMapRecursiveQuoted=r,Fm}var Bm={},Kk;function lte(){if(Kk)return Bm;Kk=1,Object.defineProperty(Bm,"__esModule",{value:!0}),Bm.RdfStoreIndexNestedRecord=void 0;const t=Es();let e=class{constructor(n){this.features={quotedTripleFiltering:!1},this.dictionary=n.dictionary,this.nestedRecords={}}set(n,a){const s=this.nestedRecords,o=s[n[0]]||(s[n[0]]={}),u=o[n[1]]||(o[n[1]]={}),c=u[n[2]]||(u[n[2]]={});return c[n[3]]?!1:(c[n[3]]=a,!0)}remove(n){const a=this.nestedRecords,s=a[n[0]];if(!s)return!1;const o=s[n[1]];if(!o)return!1;const u=o[n[2]];return!u||!u[n[3]]?!1:(delete u[n[3]],Object.keys(u).length===0&&(delete o[n[2]],Object.keys(o).length===0&&(delete s[n[1]],Object.keys(s).length===0&&delete a[n[0]])),!0)}get(n){const a=(0,t.encodeOptionalTerms)(n,this.dictionary);if(!(!a||a.includes(void 0)))return this.getEncoded(a)}getEncoded(n){var a,s,o;return(o=(s=(a=this.nestedRecords[n[0]])===null||a===void 0?void 0:a[n[1]])===null||s===void 0?void 0:s[n[2]])===null||o===void 0?void 0:o[n[3]]}*find(n){const a=(0,t.encodeOptionalTerms)(n,this.dictionary);if(!a)return;const[s,o,u,c]=a,[l,d,f,h]=n;let p,m,y,g,b,v,_;const w=this.nestedRecords,E=s!==void 0?s in w?[s]:[]:Object.keys(w);for(const O of E){b=w[O],p=l||this.dictionary.decode(Number.parseInt(O,10));const L=o!==void 0?o in b?[o]:[]:Object.keys(b);for(const F of L){v=b[F],m=d||this.dictionary.decode(Number.parseInt(F,10));const x=u!==void 0?u in v?[u]:[]:Object.keys(v);for(const P of x){_=v[P],y=f||this.dictionary.decode(Number.parseInt(P,10));const j=c!==void 0?c in _?[c]:[]:Object.keys(_);for(const N of j)g=h||this.dictionary.decode(Number.parseInt(N,10)),yield[p,m,y,g]}}}}*findEncoded(n,a){const[s,o,u,c]=n;let l,d,f;const h=this.nestedRecords,p=s!==void 0?s in h?[s]:[]:Object.keys(h);for(const m of p){l=h[m];const y=o!==void 0?o in l?[o]:[]:Object.keys(l);for(const g of y){d=l[g];const b=u!==void 0?u in d?[u]:[]:Object.keys(d);for(const v of b){f=d[v];const _=c!==void 0?c in f?[c]:[]:Object.keys(f);for(const w of _)yield[Number.parseInt(m,10),Number.parseInt(g,10),Number.parseInt(v,10),Number.parseInt(w,10)]}}}}count(n){let a=0;const s=(0,t.encodeOptionalTerms)(n,this.dictionary);if(!s)return 0;const o=s[0],u=s[1],c=s[2],l=s[3];let d,f,h;const p=this.nestedRecords,m=o!==void 0?o in p?[o]:[]:Object.keys(p);for(const y of m){d=p[y];const g=u!==void 0?u in d?[u]:[]:Object.keys(d);for(const b of g){f=d[b];const v=c!==void 0?c in f?[c]:[]:Object.keys(f);for(const _ of v)h=f[_],l!==void 0?l in h&&a++:a+=Object.keys(h).length}}return a}};return Bm.RdfStoreIndexNestedRecord=e,Bm}var qm={},Jk;function W4e(){if(Jk)return qm;Jk=1,Object.defineProperty(qm,"__esModule",{value:!0}),qm.RdfStoreIndexNestedRecordQuoted=void 0;const t=Es(),e=lte();let r=class extends e.RdfStoreIndexNestedRecord{constructor(a){super(a),this.features={quotedTripleFiltering:!0}}*getQuotedPatternKeys(a,s){for(const o of this.dictionary.findQuotedTriplesEncoded(s))o in a&&(yield o)}*find(a){const s=(0,t.encodeOptionalTerms)(a,this.dictionary);if(!s)return;const[o,u,c,l]=s,[d,f,h,p]=a,[m,y,g,b]=(0,t.arePatternsQuoted)(a);let v,_,w,E,O,L,F;const x=this.nestedRecords,P=d!==void 0?m?this.getQuotedPatternKeys(x,d):o in x?[o]:[]:Object.keys(x);for(const j of P){O=x[j],v=!m&&d?d:this.dictionary.decode(Number.parseInt(j,10));const N=f!==void 0?y?this.getQuotedPatternKeys(O,f):u in O?[u]:[]:Object.keys(O);for(const V of N){L=O[V],_=!y&&f?f:this.dictionary.decode(Number.parseInt(V,10));const $=h!==void 0?g?this.getQuotedPatternKeys(L,h):c in L?[c]:[]:Object.keys(L);for(const q of $){F=L[q],w=!g&&h?h:this.dictionary.decode(Number.parseInt(q,10));const H=p!==void 0?b?this.getQuotedPatternKeys(F,p):l in F?[l]:[]:Object.keys(F);for(const X of H)E=!b&&p?p:this.dictionary.decode(Number.parseInt(X,10)),yield[v,_,w,E]}}}}*findEncoded(a,s){const[o,u,c,l]=a,[d,f,h,p]=s,[m,y,g,b]=(0,t.arePatternsQuoted)(s);let v,_,w;const E=this.nestedRecords,O=d!==void 0?m?this.getQuotedPatternKeys(E,d):o in E?[o]:[]:Object.keys(E);for(const L of O){v=E[L];const F=f!==void 0?y?this.getQuotedPatternKeys(v,f):u in v?[u]:[]:Object.keys(v);for(const x of F){_=v[x];const P=h!==void 0?g?this.getQuotedPatternKeys(_,h):c in _?[c]:[]:Object.keys(_);for(const j of P){w=_[j];const N=p!==void 0?b?this.getQuotedPatternKeys(w,p):l in w?[l]:[]:Object.keys(w);for(const V of N)yield[Number.parseInt(L,10),Number.parseInt(x,10),Number.parseInt(j,10),Number.parseInt(V,10)]}}}}count(a){let s=0;const o=(0,t.encodeOptionalTerms)(a,this.dictionary);if(!o)return 0;const[u,c,l,d]=o,[f,h,p,m]=a,[y,g,b,v]=(0,t.arePatternsQuoted)(a);let _,w,E;const O=this.nestedRecords,L=f!==void 0?y?this.getQuotedPatternKeys(O,f):u in O?[u]:[]:Object.keys(O);for(const F of L){_=O[F];const x=h!==void 0?g?this.getQuotedPatternKeys(_,h):c in _?[c]:[]:Object.keys(_);for(const P of x){w=_[P];const j=p!==void 0?b?this.getQuotedPatternKeys(w,p):l in w?[l]:[]:Object.keys(w);for(const N of j)E=w[N],m!==void 0?v?s+=[...this.getQuotedPatternKeys(E,m)].length:d in E&&s++:s+=Object.keys(E).length}}return s}};return qm.RdfStoreIndexNestedRecordQuoted=r,qm}var Cx={},Xk;function K4e(){return Xk||(Xk=1,Object.defineProperty(Cx,"__esModule",{value:!0})),Cx}var Lx={},Yk;function J4e(){return Yk||(Yk=1,Object.defineProperty(Lx,"__esModule",{value:!0})),Lx}var Zk;function X4e(){return Zk||(Zk=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(ute(),t),r($4e(),t),r(U4e(),t),r(k4e(),t),r(nte(),t),r(V4e(),t),r(ite(),t),r(H4e(),t),r(Q4e(),t),r(z4e(),t),r(A4(),t),r(ate(),t),r(cte(),t),r(G4e(),t),r(lte(),t),r(W4e(),t),r(K4e(),t),r(Es(),t),r(J4e(),t),r(ste(),t)}(Ix)),Ix}var eV;function dte(){if(eV)return Em;eV=1,Object.defineProperty(Em,"__esModule",{value:!0}),Em.storeStream=void 0;const t=X4e();function e(r){const n=t.RdfStore.createDefault();return new Promise((a,s)=>n.import(r).on("error",s).once("end",()=>a(n)))}return Em.storeStream=e,Em}var tV;function Y4e(){if(tV)return wm;tV=1,Object.defineProperty(wm,"__esModule",{value:!0}),wm.ActorQuerySourceIdentifyHypermediaNone=void 0;const t=E4(),e=kr(),r=T4(),n=dte();let a=class extends r.ActorQuerySourceIdentifyHypermedia{constructor(o){super(o,"file")}async testMetadata(o){return{filterFactor:0}}async run(o){this.logInfo(o.context,`Identified as file source: ${o.url}`);const u=new t.QuerySourceRdfJs(await(0,n.storeStream)(o.quads),await e.BindingsFactory.create(this.mediatorMergeBindingsContext,o.context));return u.toString=()=>`QuerySourceRdfJs(${o.url})`,u.referenceValue=o.url,{source:u}}};return wm.ActorQuerySourceIdentifyHypermediaNone=a,wm}var rV;function Z4e(){return rV||(rV=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Y4e(),t)}(Ox)),Ox}var jx={},$m={},Mx={},Um={},km={},Fx={},ic={},nV;function As(){if(nV)return ic;nV=1,Object.defineProperty(ic,"__esModule",{value:!0}),ic.asTermType=ic.ExpressionType=void 0;var t;(function(r){r.Aggregate="aggregate",r.Existence="existence",r.Named="named",r.Operator="operator",r.SpecialOperator="specialOperator",r.Term="term",r.Variable="variable",r.AsyncExtension="asyncExtension",r.SyncExtension="syncExtension"})(t||(ic.ExpressionType=t={}));function e(r){if(r==="namedNode"||r==="literal"||r==="blankNode"||r==="quad")return r}return ic.asTermType=e,ic}var Vm={},iV;function e6e(){if(iV)return Vm;iV=1,Object.defineProperty(Vm,"__esModule",{value:!0}),Vm.Variable=void 0;const t=As();class e{constructor(n){this.expressionType=t.ExpressionType.Variable,this.name=n}}return Vm.Variable=e,Vm}var Rt={},Hm={},Bx={},aV;function oi(){return aV||(aV=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.NamedOperators=t.SetFunctions=t.SetFunction=t.Operators=t.SpecialOperators=t.RegularOperators=t.SpecialOperator=t.RegularOperator=t.TypeURL=t.TypeAlias=void 0;var e;(function(o){o.SPARQL_NUMERIC="SPARQL_NUMERIC",o.SPARQL_STRINGLY="SPARQL_STRINGLY"})(e||(t.TypeAlias=e={}));var r;(function(o){o.XSD_ANY_URI="http://www.w3.org/2001/XMLSchema#anyURI",o.XSD_STRING="http://www.w3.org/2001/XMLSchema#string",o.RDF_LANG_STRING="http://www.w3.org/1999/02/22-rdf-syntax-ns#langString",o.XSD_BOOLEAN="http://www.w3.org/2001/XMLSchema#boolean",o.XSD_DATE_TIME="http://www.w3.org/2001/XMLSchema#dateTime",o.XSD_DATE_TIME_STAMP="http://www.w3.org/2001/XMLSchema#dateTimeStamp",o.XSD_DATE="http://www.w3.org/2001/XMLSchema#date",o.XSD_G_MONTH="http://www.w3.org/2001/XMLSchema#gMonth",o.XSD_G_MONTHDAY="http://www.w3.org/2001/XMLSchema#gMonthDay",o.XSD_G_YEAR="http://www.w3.org/2001/XMLSchema#gYear",o.XSD_G_YEAR_MONTH="http://www.w3.org/2001/XMLSchema#gYearMonth",o.XSD_TIME="http://www.w3.org/2001/XMLSchema#time",o.XSD_G_DAY="http://www.w3.org/2001/XMLSchema#gDay",o.XSD_DECIMAL="http://www.w3.org/2001/XMLSchema#decimal",o.XSD_FLOAT="http://www.w3.org/2001/XMLSchema#float",o.XSD_DOUBLE="http://www.w3.org/2001/XMLSchema#double",o.XSD_INTEGER="http://www.w3.org/2001/XMLSchema#integer",o.XSD_NON_POSITIVE_INTEGER="http://www.w3.org/2001/XMLSchema#nonPositiveInteger",o.XSD_NEGATIVE_INTEGER="http://www.w3.org/2001/XMLSchema#negativeInteger",o.XSD_LONG="http://www.w3.org/2001/XMLSchema#long",o.XSD_INT="http://www.w3.org/2001/XMLSchema#int",o.XSD_SHORT="http://www.w3.org/2001/XMLSchema#short",o.XSD_BYTE="http://www.w3.org/2001/XMLSchema#byte",o.XSD_NON_NEGATIVE_INTEGER="http://www.w3.org/2001/XMLSchema#nonNegativeInteger",o.XSD_POSITIVE_INTEGER="http://www.w3.org/2001/XMLSchema#positiveInteger",o.XSD_UNSIGNED_LONG="http://www.w3.org/2001/XMLSchema#unsignedLong",o.XSD_UNSIGNED_INT="http://www.w3.org/2001/XMLSchema#unsignedInt",o.XSD_UNSIGNED_SHORT="http://www.w3.org/2001/XMLSchema#unsignedShort",o.XSD_UNSIGNED_BYTE="http://www.w3.org/2001/XMLSchema#unsignedByte",o.XSD_NORMALIZED_STRING="http://www.w3.org/2001/XMLSchema#normalizedString",o.XSD_TOKEN="http://www.w3.org/2001/XMLSchema#token",o.XSD_LANGUAGE="http://www.w3.org/2001/XMLSchema#language",o.XSD_NM_TOKEN="http://www.w3.org/2001/XMLSchema#NMTOKEN",o.XSD_NAME="http://www.w3.org/2001/XMLSchema#name",o.XSD_NC_NAME="http://www.w3.org/2001/XMLSchema#NCName",o.XSD_ENTITY="http://www.w3.org/2001/XMLSchema#ENTITY",o.XSD_ID="http://www.w3.org/2001/XMLSchema#ID",o.XSD_ID_REF="http://www.w3.org/2001/XMLSchema#IDREF",o.XSD_DURATION="http://www.w3.org/2001/XMLSchema#duration",o.XSD_YEAR_MONTH_DURATION="http://www.w3.org/2001/XMLSchema#yearMonthDuration",o.XSD_DAY_TIME_DURATION="http://www.w3.org/2001/XMLSchema#dayTimeDuration"})(r||(t.TypeURL=r={}));var n;(function(o){o.NOT="!",o.UMINUS="uminus",o.UPLUS="uplus",o.EQUAL="=",o.NOT_EQUAL="!=",o.LT="<",o.GT=">",o.LTE="<=",o.GTE=">=",o.MULTIPLICATION="*",o.DIVISION="/",o.ADDITION="+",o.SUBTRACTION="-",o.IS_IRI="isiri",o.IS_URI="isuri",o.IS_BLANK="isblank",o.IS_LITERAL="isliteral",o.IS_NUMERIC="isnumeric",o.STR="str",o.LANG="lang",o.DATATYPE="datatype",o.IRI="iri",o.URI="uri",o.STRDT="strdt",o.STRLANG="strlang",o.UUID="uuid",o.STRUUID="struuid",o.STRLEN="strlen",o.SUBSTR="substr",o.UCASE="ucase",o.LCASE="lcase",o.STRSTARTS="strstarts",o.STRENDS="strends",o.CONTAINS="contains",o.STRBEFORE="strbefore",o.STRAFTER="strafter",o.ENCODE_FOR_URI="encode_for_uri",o.LANG_MATCHES="langmatches",o.REGEX="regex",o.REPLACE="replace",o.ABS="abs",o.ROUND="round",o.CEIL="ceil",o.FLOOR="floor",o.RAND="rand",o.NOW="now",o.YEAR="year",o.MONTH="month",o.DAY="day",o.HOURS="hours",o.MINUTES="minutes",o.SECONDS="seconds",o.TIMEZONE="timezone",o.TZ="tz",o.MD5="md5",o.SHA1="sha1",o.SHA256="sha256",o.SHA384="sha384",o.SHA512="sha512",o.TRIPLE="triple",o.SUBJECT="subject",o.PREDICATE="predicate",o.OBJECT="object",o.IS_TRIPLE="istriple"})(n||(t.RegularOperator=n={}));var a;(function(o){o.BOUND="bound",o.IF="if",o.COALESCE="coalesce",o.LOGICAL_OR="||",o.LOGICAL_AND="&&",o.SAME_TERM="sameterm",o.IN="in",o.NOT_IN="notin",o.CONCAT="concat",o.BNODE="bnode"})(a||(t.SpecialOperator=a={})),t.RegularOperators=new Set(Object.values(n)),t.SpecialOperators=new Set(Object.values(a)),t.Operators=new Set([...t.RegularOperators,...t.SpecialOperators]);var s;(function(o){o.COUNT="count",o.SUM="sum",o.MIN="min",o.MAX="max",o.AVG="avg",o.GROUP_CONCAT="group_concat",o.SAMPLE="sample"})(s||(t.SetFunction=s={})),t.SetFunctions=new Set(Object.values(s)),t.NamedOperators=new Set([r.XSD_STRING,r.XSD_FLOAT,r.XSD_DOUBLE,r.XSD_DECIMAL,r.XSD_INTEGER,r.XSD_DATE_TIME,r.XSD_DATE,r.XSD_BOOLEAN,r.XSD_TIME,r.XSD_DURATION,r.XSD_DAY_TIME_DURATION,r.XSD_YEAR_MONTH_DURATION])}(Bx)),Bx}var gt={},sV;function Rn(){if(sV)return gt;sV=1,Object.defineProperty(gt,"__esModule",{value:!0}),gt.NoExistenceHook=gt.NoAggregator=gt.ExtensionFunctionError=gt.UnknownNamedOperator=gt.UnknownOperator=gt.InvalidTermType=gt.InvalidExpressionType=gt.InvalidExpression=gt.InvalidArity=gt.UnexpectedError=gt.ParseError=gt.EmptyAggregateError=gt.IncompatibleLanguageOperation=gt.InvalidTimezoneCall=gt.CastError=gt.InvalidCompareArgumentTypes=gt.InvalidArgumentTypes=gt.InError=gt.CoalesceError=gt.RDFEqualTypeError=gt.EBVCoercionError=gt.UnboundVariableError=gt.InvalidLexicalForm=gt.isExpressionError=gt.ExpressionError=void 0;class t extends Error{}gt.ExpressionError=t;function e(P){return P instanceof t}gt.isExpressionError=e;class r extends t{constructor(j){super(`Invalid lexical form '${x(j)}'`),this.arg=j}}gt.InvalidLexicalForm=r;class n extends t{constructor(j,N){super(`Unbound variable '${x(j)}'`),this.variable=j,this.bindings=N}}gt.UnboundVariableError=n;class a extends t{constructor(j){super(`Cannot coerce term to EBV '${x(j)}'`),this.arg=j}}gt.EBVCoercionError=a;class s extends t{constructor(j){super("Equality test for literals with unsupported datatypes"),this.args=j}}gt.RDFEqualTypeError=s;class o extends t{constructor(j){super("All COALESCE arguments threw errors"),this.errors=j}}gt.CoalesceError=o;class u extends t{constructor(j){super(`Some argument to IN errorred and none where equal. ${j.map(N=>`(${N.toString()}) `).join("and ")}`),this.errors=j}}gt.InError=u;class c extends t{constructor(j,N){super(`Argument types not valid for operator: '${x(N)}' with '${x(j)}`),this.args=j,this.op=N}}gt.InvalidArgumentTypes=c;class l extends t{constructor(j,N){super(`Compared argument types are supported: '${j.termType}' and '${N.termType}'`),this.arg0=j,this.arg1=N}}gt.InvalidCompareArgumentTypes=l;class d extends t{constructor(j,N){super(`Invalid cast: '${x(j)}' to '${x(N)}'`),this.arg=j}}gt.CastError=d;class f extends t{constructor(j){super(`TIMEZONE call on ${j} which has no timezone`),this.dateString=j}}gt.InvalidTimezoneCall=f;class h extends t{constructor(j,N){super(`Operation on incompatible language literals '${x(j)}' and '${x(N)}'`),this.arg1=j,this.arg2=N}}gt.IncompatibleLanguageOperation=h;class p extends t{constructor(){super("Empty aggregate expression")}}gt.EmptyAggregateError=p;class m extends t{constructor(j,N){super(`Failed to parse ${j} as ${N}.`)}}gt.ParseError=m;class y extends Error{constructor(j,N){super(`Programmer Error '${j}'`),this.payload=N}}gt.UnexpectedError=y;class g extends Error{constructor(j,N){super(`The number of args does not match the arity of the operator '${x(N)}'.`),this.args=j,this.op=N}}gt.InvalidArity=g;class b extends Error{constructor(j){super(`Invalid SPARQL Expression '${x(j)}'`)}}gt.InvalidExpression=b;class v extends Error{constructor(j){super(`Invalid expression type for SPARQL Expression '${x(j)}'`),this.expr=j}}gt.InvalidExpressionType=v;class _ extends Error{constructor(j){super(`Invalid term type for term '${x(j)}'`),this.term=j}}gt.InvalidTermType=_;class w extends Error{constructor(j){super(`Unknown operator: '${x(j)}`)}}gt.UnknownOperator=w;class E extends Error{constructor(j){super(`Unknown named operator: '${x(j)}'`)}}gt.UnknownNamedOperator=E;class O extends Error{constructor(j,N){N instanceof Error?super(`Error thrown in ${j}: ${N.message}${N.stack?` -${N.stack}`:""}`):super(`Error thrown in ${j}`)}}gt.ExtensionFunctionError=O;class L extends Error{constructor(j){super(`Aggregate expression ${x(j)} found, but no aggregate hook provided.`)}}gt.NoAggregator=L;class F extends Error{constructor(){super("EXISTS found, but no existence hook provided.")}}gt.NoExistenceHook=F;function x(P){return JSON.stringify(P)}return gt}var Gr={},Wt={},oV;function qf(){if(oV)return Wt;oV=1,Object.defineProperty(Wt,"__esModule",{value:!0}),Wt.extractTimeZone=Wt.extractRawTimeZone=Wt.dayTimeDurationsToSeconds=Wt.yearMonthDurationsToMonths=Wt.trimToDayTimeDuration=Wt.trimToYearMonthDuration=Wt.toUTCDate=Wt.toJSDate=Wt.negateDuration=Wt.toDateTimeRepresentation=Wt.defaultedDateTimeRepresentation=Wt.simplifyDurationRepresentation=Wt.defaultedDurationRepresentation=Wt.defaultedYearMonthDurationRepresentation=Wt.defaultedDayTimeDurationRepresentation=void 0;function t(y){return{day:y.day??0,hours:y.hours??0,minutes:y.minutes??0,seconds:y.seconds??0}}Wt.defaultedDayTimeDurationRepresentation=t;function e(y){return{year:y.year??0,month:y.month??0}}Wt.defaultedYearMonthDurationRepresentation=e;function r(y){return{...t(y),...e(y)}}Wt.defaultedDurationRepresentation=r;function n(y){const g=r(y),b={},v=g.year+Math.trunc(g.month/12);v&&(b.year=v,g.month%=12),g.month&&(b.month=g.month);const _=g.day+Math.trunc(g.hours/24)+Math.trunc(g.minutes/(24*60))+Math.trunc(g.seconds/(24*60*60));_&&(b.day=_,g.hours%=24,g.minutes%=24*60,g.seconds%=24*60*60);const w=g.hours+Math.trunc(g.minutes/60)+Math.trunc(g.seconds/(60*60));w&&(b.hours=w,g.minutes%=60,g.seconds%=60*60);const E=g.minutes+Math.trunc(g.seconds/60);return E&&(b.minutes=E,g.seconds%=60),g.seconds&&(b.seconds=g.seconds),b}Wt.simplifyDurationRepresentation=n;function a(y){return{...y,day:y.day??1,hours:y.hours??0,month:y.month??1,year:y.year??0,seconds:y.seconds??0,minutes:y.minutes??0}}Wt.defaultedDateTimeRepresentation=a;function s({date:y,timeZone:g}){return{year:y.getFullYear(),month:y.getMonth()+1,day:y.getDate(),hours:y.getHours(),minutes:y.getMinutes(),seconds:y.getSeconds(),zoneHours:g.zoneHours,zoneMinutes:g.zoneMinutes}}Wt.toDateTimeRepresentation=s;function o(y){return{year:y.year===void 0?void 0:-1*y.year,month:y.month===void 0?void 0:-1*y.month,day:y.day===void 0?void 0:-1*y.day,hours:y.hours===void 0?void 0:-1*y.hours,minutes:y.minutes===void 0?void 0:-1*y.minutes,seconds:y.seconds===void 0?void 0:-1*y.seconds}}Wt.negateDuration=o;function u(y){const g=new Date(y.year,y.month-1,y.day,y.hours,y.minutes,Math.trunc(y.seconds),y.seconds%1*1e3);return y.year>=0&&y.year<100&&g.setFullYear(g.getFullYear()-1900),g}Wt.toJSDate=u;function c(y,g){const b=u(a(y)),v=b.getTimezoneOffset(),_=y.zoneHours??g.zoneHours,w=y.zoneMinutes??g.zoneMinutes;return new Date(b.getTime()-(v+_*60+w)*60*1e3)}Wt.toUTCDate=c;function l(y){return{year:y.year,month:y.month}}Wt.trimToYearMonthDuration=l;function d(y){return{day:y.day,hours:y.hours,minutes:y.minutes,seconds:y.seconds}}Wt.trimToDayTimeDuration=d;function f(y){return y.year*12+y.month}Wt.yearMonthDurationsToMonths=f;function h(y){return((y.day*24+y.hours)*60+y.minutes)*60+y.seconds}Wt.dayTimeDurationsToSeconds=h;function p(y){return/(Z|([+-]\d\d:\d\d))?$/u.exec(y)[0]}Wt.extractRawTimeZone=p;function m(y){return{zoneHours:y.getTimezoneOffset()/60,zoneMinutes:y.getTimezoneOffset()%60}}return Wt.extractTimeZone=m,Wt}var Us={},uV;function fte(){if(uV)return Us;uV=1,Object.defineProperty(Us,"__esModule",{value:!0}),Us.elapsedDuration=Us.addDurationToDateTime=Us.maximumDayInMonthFor=void 0;const t=qf();function e(s,o,u=0){const c=s-u,l=o-u,d=Math.floor(c/l);return{intDiv:d,remainder:s-d*l}}function r(s,o){const{intDiv:u,remainder:c}=e(o,13,1),l=s+u;return[1,3,5,7,8,10,12].includes(c)?31:[4,6,9,11].includes(c)?30:c===2&&(e(l,400).remainder===0||e(l,100).remainder!==0&&e(l,4).remainder===0)?29:28}Us.maximumDayInMonthFor=r;function n(s,o){const u={...s};let c=e(s.month+o.month,13,1);for(u.month=c.remainder,u.year=s.year+o.year+c.intDiv,c=e(s.seconds+o.seconds,60),u.seconds=c.remainder,c=e(s.minutes+o.minutes+c.intDiv,60),u.minutes=c.remainder,c=e(s.hours+o.hours+c.intDiv,24),u.hours=c.remainder,u.day=s.day+o.day+c.intDiv;;){let l;if(u.day<1)u.day+=r(u.year,u.month-1),l=-1;else if(u.day>r(u.year,u.month))u.day-=r(u.year,u.month),l=1;else break;c=e(u.month+l,13,1),u.month=c.remainder,u.year+=c.intDiv}return u}Us.addDurationToDateTime=n;function a(s,o,u){const c=(0,t.toUTCDate)(s,u),l=(0,t.toUTCDate)(o,u),d=c.getTime()-l.getTime();return{day:Math.floor(d/(1e3*60*60*24)),hours:Math.floor(d%(1e3*60*60*24)/(1e3*60*60)),minutes:Math.floor(d%(1e3*60*60)/(1e3*60)),seconds:d%(1e3*60)}}return Us.elapsedDuration=a,Us}var cV;function sN(){if(cV)return Gr;cV=1,Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.parseDayTimeDuration=Gr.parseYearMonthDuration=Gr.parseDuration=Gr.parseTime=Gr.parseDate=Gr.parseDateTime=Gr.parseXSDInteger=Gr.parseXSDDecimal=Gr.parseXSDFloat=void 0;const t=qf(),e=Rn(),r=fte();function n(m){const y=Number(m);return Number.isNaN(y)?m==="NaN"?Number.NaN:m==="INF"||m==="+INF"?Number.POSITIVE_INFINITY:m==="-INF"?Number.NEGATIVE_INFINITY:void 0:y}Gr.parseXSDFloat=n;function a(m){const y=Number(m);return Number.isNaN(y)?void 0:y}Gr.parseXSDDecimal=a;function s(m){const y=Number.parseInt(m,10);return Number.isNaN(y)?void 0:y}Gr.parseXSDInteger=s;function o(m){const[y,g]=m.split("T");return{...c(y),...l(g)}}Gr.parseDateTime=o;function u(m){if(m==="")return{zoneHours:void 0,zoneMinutes:void 0};if(m==="Z")return{zoneHours:0,zoneMinutes:0};const g=m.replaceAll(/^([+|-])(\d\d):(\d\d)$/gu,"$11!$2!$3").split("!").map(Number);return{zoneHours:g[0]*g[1],zoneMinutes:g[0]*g[2]}}function c(m){const y=m.replaceAll(/^(-)?([123456789]*\d{4})-(\d\d)-(\d\d)(Z|([+-]\d\d:\d\d))?$/gu,"$11!$2!$3!$4!$5");if(y===m)throw new e.ParseError(m,"date");const g=y.split("!"),b=g.slice(0,-1).map(Number),v={year:b[0]*b[1],month:b[2],day:b[3],...u(g[4])};if(!(v.month>=1&&v.month<=12)||!(v.day>=1&&v.day<=(0,r.maximumDayInMonthFor)(v.year,v.month)))throw new e.ParseError(m,"date");return v}Gr.parseDate=c;function l(m){const y=m.replaceAll(/^(\d\d):(\d\d):(\d\d(\.\d+)?)(Z|([+-]\d\d:\d\d))?$/gu,"$1!$2!$3!$5");if(y===m)throw new e.ParseError(m,"time");const g=y.split("!"),b=g.slice(0,-1).map(Number),v={hours:b[0],minutes:b[1],seconds:b[2],...u(g[3])};if(v.seconds>=60||v.minutes>=60||v.hours>24||v.hours===24&&(v.minutes!==0||v.seconds!==0))throw new e.ParseError(m,"time");return v}function d(m){const y=l(m);return y.hours%=24,y}Gr.parseTime=d;function f(m){const[y,g]=m.split("T"),b=y.replaceAll(/^(-)?P(\d+Y)?(\d+M)?(\d+D)?$/gu,"$11S!$2!$3!$4");if(b===y)throw new e.ParseError(m,"duration");const v=b.split("!");if(g!==void 0){const E=g.replaceAll(/^(\d+H)?(\d+M)?(\d+(\.\d+)?S)?$/gu,"$1!$2!$3");if(g===""||g===E)throw new e.ParseError(m,"duration");v.push(...E.split("!"))}const _=v.map(E=>E.slice(0,-1));if(!_.slice(1).some(Boolean))throw new e.ParseError(m,"duration");const w=Number(_[0]);return(0,t.simplifyDurationRepresentation)({year:_[1]?w*Number(_[1]):void 0,month:_[2]?w*Number(_[2]):void 0,day:_[3]?w*Number(_[3]):void 0,hours:_[4]?w*Number(_[4]):void 0,minutes:_[5]?w*Number(_[5]):void 0,seconds:_[6]?w*Number(_[6]):void 0})}Gr.parseDuration=f;function h(m){const y=f(m);if(["hours","minutes","seconds","day"].some(g=>!!y[g]))throw new e.ParseError(m,"yearMonthDuration");return y}Gr.parseYearMonthDuration=h;function p(m){const y=f(m);if(["year","month"].some(g=>!!y[g]))throw new e.ParseError(m,"dayTimeDuration");return y}return Gr.parseDayTimeDuration=p,Gr}var qx={},vr={},Qm={},lV;function hte(){if(lV)return Qm;lV=1,Object.defineProperty(Qm,"__esModule",{value:!0}),Qm.OverloadTree=void 0;const t=ki(),e=zT();let r=class oN{constructor(a,s){this.identifier=a,this.implementation=void 0,this.generalOverloads=Object.create(null),this.literalOverLoads=[],this.depth=s??0,this.promotionCount=void 0}getSubtree(a){const s=(0,e.asGeneralType)(a);if(s)return this.generalOverloads[s];for(const[o,u]of this.literalOverLoads)if(a===o)return u}getImplementationExact(a){let s=this;for(const o of a)if(s=s.getSubtree(o),!s)return;return s.implementation}search(a,s,o){let u=o[this.identifier],c=0;for(;c({node:f,index:d+1})));l.length>0;){const{index:f,node:h}=l.pop();if(f===a.length&&h.implementation)return this.addToCache(o,a,h.implementation),h.implementation;l.push(...h.getSubTreeWithArg(a[f],s).map(p=>({node:p,index:f+1})))}}addToCache(a,s,o){function u(l,d){return d in l||(l[d]={}),l[d]}let c=u(a,this.identifier);for(const l of s){const d=(0,t.isLiteralTermExpression)(l),f=d?d.dataType:l.termType;c.cache=c.cache??{},c=u(c.cache,f)}c.func=o}addOverload(a,s){this._addOverload([...a],s,0)}_addOverload(a,s,o){const[u,...c]=a;if(!u){(this.promotionCount===void 0||o<=this.promotionCount)&&(this.promotionCount=o,this.implementation=s);return}let l=this.getSubtree(u);if(!l){const d=new oN(this.identifier,this.depth+1),f=(0,e.asGeneralType)(u);f&&(this.generalOverloads[f]=d);const h=(0,e.asOverrideType)(u);h&&this.literalOverLoads.push([h,d]),l=d}if(l._addOverload(c,s,o),e.typePromotion[u])for(const d of e.typePromotion[u])this.addPromotedOverload(d.typeToPromote,s,d.conversionFunction,c,o)}addPromotedOverload(a,s,o,u,c){let l=this.getSubtree(a);if(!l){const d=new oN(this.identifier,this.depth+1);this.literalOverLoads.push([a,d]),l=d}l._addOverload(u,d=>f=>s(d)([...f.slice(0,this.depth),o(f[this.depth]),...f.slice(this.depth+1,f.length)]),c+1)}getSubTreeWithArg(a,s){const o=[],u=(0,t.isLiteralTermExpression)(a);if(this.generalOverloads.term&&o.push(this.generalOverloads.term),this.generalOverloads[a.termType]&&o.push(this.generalOverloads[a.termType]),u){const c=(0,e.asKnownLiteralType)(u.dataType);let l;c?l=e.superTypeDictTable[c]:l=(0,e.getSuperTypes)(u.dataType,s);const d=this.literalOverLoads.filter(([f,h])=>f in l).map(([f,h])=>[l[f],h]);d.sort(([f,h],[p,m])=>f-p),o.push(...d.map(([f,h])=>h))}return o}};return Qm.OverloadTree=r,Qm}var dV;function Os(){if(dV)return vr;dV=1,Object.defineProperty(vr,"__esModule",{value:!0}),vr.expressionToVar=vr.dateTime=vr.langString=vr.string=vr.double=vr.float=vr.decimal=vr.integer=vr.bool=vr.Builder=vr.declare=void 0;const t=Ot,e=ki(),r=ki(),n=oi(),a=oi(),s=Rn(),o=hte(),u=new t.DataFactory;function c(_){return new l(_)}vr.declare=c;class l{constructor(w){this.overloadTree=new o.OverloadTree(w),this.collected=!1}collect(){if(this.collected)throw new Error("Builders can only be collected once!");return this.collected=!0,this.overloadTree}static wrapInvalidLexicalProtected(w){return E=>O=>{for(const[L,F]of O.entries())if(F instanceof r.NonLexicalLiteral)throw new s.InvalidLexicalForm(O[L].toRDF());return w(E)(O)}}set(w,E,O=!0){return this.overloadTree.addOverload(w,O?l.wrapInvalidLexicalProtected(E):E),this}copy({from:w,to:E}){const O=this.overloadTree.getImplementationExact(w);if(!O)throw new s.UnexpectedError("Tried to copy implementation, but types not found",{from:w,to:E});return this.set(E,O)}onUnary(w,E,O=!0){return this.set([w],L=>([F])=>E(L)(F),O)}onUnaryTyped(w,E,O=!0){return this.set([w],L=>([F])=>E(L)(F.typedValue),O)}onBinary(w,E,O=!0){return this.set(w,L=>([F,x])=>E(L)(F,x),O)}onBinaryTyped(w,E,O=!0){return this.set(w,L=>([F,x])=>E(L)(F.typedValue,x.typedValue),O)}onTernaryTyped(w,E,O=!0){return this.set(w,L=>([F,x,P])=>E(L)(F.typedValue,x.typedValue,P.typedValue),O)}onTernary(w,E,O=!0){return this.set(w,L=>([F,x,P])=>E(L)(F,x,P),O)}onQuaternaryTyped(w,E,O=!0){return this.set(w,L=>([F,x,P,j])=>E(L)(F.typedValue,x.typedValue,P.typedValue,j.typedValue),O)}onTerm1(w,E=!1){return this.set(["term"],O=>([L])=>w(O)(L),E)}onTerm3(w){return this.set(["term","term","term"],E=>([O,L,F])=>w(E)(O,L,F))}onQuad1(w){return this.set(["quad"],E=>([O])=>w(E)(O))}onLiteral1(w,E=!0){return this.set(["literal"],O=>([L])=>w(O)(L),E)}onBoolean1(w,E=!0){return this.set([n.TypeURL.XSD_BOOLEAN],O=>([L])=>w(O)(L),E)}onBoolean1Typed(w,E=!0){return this.set([n.TypeURL.XSD_BOOLEAN],O=>([L])=>w(O)(L.typedValue),E)}onString1(w,E=!0){return this.set([n.TypeURL.XSD_STRING],O=>([L])=>w(O)(L),E)}onString1Typed(w,E=!0){return this.set([n.TypeURL.XSD_STRING],O=>([L])=>w(O)(L.typedValue),E)}onLangString1(w,E=!0){return this.set([n.TypeURL.RDF_LANG_STRING],O=>([L])=>w(O)(L),E)}onStringly1(w,E=!0){return this.set([n.TypeAlias.SPARQL_STRINGLY],O=>([L])=>w(O)(L),E)}onStringly1Typed(w,E=!0){return this.set([n.TypeAlias.SPARQL_STRINGLY],O=>([L])=>w(O)(L.typedValue),E)}onNumeric1(w,E=!0){return this.set([n.TypeAlias.SPARQL_NUMERIC],O=>([L])=>w(O)(L),E)}onDateTime1(w,E=!0){return this.set([n.TypeURL.XSD_DATE_TIME],O=>([L])=>w(O)(L),E)}numericConverter(w,E=!0){const O=L=>F=>w(L)(F.typedValue);return this.onUnary(a.TypeURL.XSD_INTEGER,L=>F=>f(O(L)(F)),E).onUnary(a.TypeURL.XSD_DECIMAL,L=>F=>h(O(L)(F)),E).onUnary(a.TypeURL.XSD_FLOAT,L=>F=>p(O(L)(F)),E).onUnary(a.TypeURL.XSD_DOUBLE,L=>F=>m(O(L)(F)),E)}arithmetic(w,E=!0){const O=L=>(F,x)=>w(L)(F.typedValue,x.typedValue);return this.onBinary([a.TypeURL.XSD_INTEGER,a.TypeURL.XSD_INTEGER],L=>(F,x)=>f(O(L)(F,x)),E).onBinary([a.TypeURL.XSD_DECIMAL,a.TypeURL.XSD_DECIMAL],L=>(F,x)=>h(O(L)(F,x)),E).onBinary([a.TypeURL.XSD_FLOAT,a.TypeURL.XSD_FLOAT],L=>(F,x)=>p(O(L)(F,x)),E).onBinary([a.TypeURL.XSD_DOUBLE,a.TypeURL.XSD_DOUBLE],L=>(F,x)=>m(O(L)(F,x)),E)}numberTest(w){return this.numeric(E=>([O,L])=>{const F=w(E)(O.typedValue,L.typedValue);return d(F)})}stringTest(w,E=!0){return this.set([n.TypeURL.XSD_STRING,n.TypeURL.XSD_STRING],O=>([L,F])=>{const x=w(O)(L.typedValue,F.typedValue);return d(x)},E)}booleanTest(w,E=!0){return this.set([n.TypeURL.XSD_BOOLEAN,n.TypeURL.XSD_BOOLEAN],O=>([L,F])=>{const x=w(O)(L.typedValue,F.typedValue);return d(x)},E)}dateTimeTest(w,E=!0){return this.set([n.TypeURL.XSD_DATE_TIME,n.TypeURL.XSD_DATE_TIME],O=>([L,F])=>{const x=w(O)(L.typedValue,F.typedValue);return d(x)},E)}numeric(w){return this.set([n.TypeAlias.SPARQL_NUMERIC,n.TypeAlias.SPARQL_NUMERIC],w)}}vr.Builder=l;function d(_){return new e.BooleanLiteral(_)}vr.bool=d;function f(_){return new e.IntegerLiteral(_)}vr.integer=f;function h(_){return new e.DecimalLiteral(_)}vr.decimal=h;function p(_){return new e.FloatLiteral(_)}vr.float=p;function m(_){return new e.DoubleLiteral(_)}vr.double=m;function y(_){return new e.StringLiteral(_)}vr.string=y;function g(_,w){return new e.LangStringLiteral(_,w)}vr.langString=g;function b(_,w){return new e.DateTimeLiteral(_,w)}vr.dateTime=b;function v(_){return u.variable(_.name.slice(1))}return vr.expressionToVar=v,vr}var fV;function zT(){return fV||(fV=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.typePromotion=t.isSubTypeOf=t.getSuperTypeDict=t.isInternalSubType=t.asGeneralType=t.asOverrideType=t.asKnownLiteralType=t.asTypeAlias=t.typeAliasCheck=t.extensionTableInit=t.getSuperTypes=t.superTypeDictTable=t.extensionTableInput=void 0;const e=ki(),r=Os(),n=oi();t.extensionTableInput={[n.TypeURL.XSD_DATE_TIME_STAMP]:n.TypeURL.XSD_DATE_TIME,[n.TypeURL.XSD_DAY_TIME_DURATION]:n.TypeURL.XSD_DURATION,[n.TypeURL.XSD_YEAR_MONTH_DURATION]:n.TypeURL.XSD_DURATION,[n.TypeURL.RDF_LANG_STRING]:n.TypeAlias.SPARQL_STRINGLY,[n.TypeURL.XSD_STRING]:n.TypeAlias.SPARQL_STRINGLY,[n.TypeURL.XSD_NORMALIZED_STRING]:n.TypeURL.XSD_STRING,[n.TypeURL.XSD_TOKEN]:n.TypeURL.XSD_NORMALIZED_STRING,[n.TypeURL.XSD_LANGUAGE]:n.TypeURL.XSD_TOKEN,[n.TypeURL.XSD_NM_TOKEN]:n.TypeURL.XSD_TOKEN,[n.TypeURL.XSD_NAME]:n.TypeURL.XSD_TOKEN,[n.TypeURL.XSD_NC_NAME]:n.TypeURL.XSD_NAME,[n.TypeURL.XSD_ENTITY]:n.TypeURL.XSD_NC_NAME,[n.TypeURL.XSD_ID]:n.TypeURL.XSD_NC_NAME,[n.TypeURL.XSD_ID_REF]:n.TypeURL.XSD_NC_NAME,[n.TypeURL.XSD_DOUBLE]:n.TypeAlias.SPARQL_NUMERIC,[n.TypeURL.XSD_FLOAT]:n.TypeAlias.SPARQL_NUMERIC,[n.TypeURL.XSD_DECIMAL]:n.TypeAlias.SPARQL_NUMERIC,[n.TypeURL.XSD_INTEGER]:n.TypeURL.XSD_DECIMAL,[n.TypeURL.XSD_NON_POSITIVE_INTEGER]:n.TypeURL.XSD_INTEGER,[n.TypeURL.XSD_NEGATIVE_INTEGER]:n.TypeURL.XSD_NON_POSITIVE_INTEGER,[n.TypeURL.XSD_LONG]:n.TypeURL.XSD_INTEGER,[n.TypeURL.XSD_INT]:n.TypeURL.XSD_LONG,[n.TypeURL.XSD_SHORT]:n.TypeURL.XSD_INT,[n.TypeURL.XSD_BYTE]:n.TypeURL.XSD_SHORT,[n.TypeURL.XSD_NON_NEGATIVE_INTEGER]:n.TypeURL.XSD_INTEGER,[n.TypeURL.XSD_POSITIVE_INTEGER]:n.TypeURL.XSD_NON_NEGATIVE_INTEGER,[n.TypeURL.XSD_UNSIGNED_LONG]:n.TypeURL.XSD_NON_NEGATIVE_INTEGER,[n.TypeURL.XSD_UNSIGNED_INT]:n.TypeURL.XSD_UNSIGNED_LONG,[n.TypeURL.XSD_UNSIGNED_SHORT]:n.TypeURL.XSD_UNSIGNED_INT,[n.TypeURL.XSD_UNSIGNED_BYTE]:n.TypeURL.XSD_UNSIGNED_SHORT,[n.TypeURL.XSD_DATE_TIME]:"term",[n.TypeURL.XSD_BOOLEAN]:"term",[n.TypeURL.XSD_DATE]:"term",[n.TypeURL.XSD_G_MONTH]:"term",[n.TypeURL.XSD_G_MONTHDAY]:"term",[n.TypeURL.XSD_G_YEAR]:"term",[n.TypeURL.XSD_G_YEAR_MONTH]:"term",[n.TypeURL.XSD_TIME]:"term",[n.TypeURL.XSD_G_DAY]:"term",[n.TypeURL.XSD_DURATION]:"term",[n.TypeAlias.SPARQL_NUMERIC]:"term",[n.TypeAlias.SPARQL_STRINGLY]:"term",[n.TypeURL.XSD_ANY_URI]:"term"},t.superTypeDictTable=Object.create(null);function a(y,g){const b=g.cache.get(y);if(b)return b;const v=g.discoverer(y);if(v==="term"){const E=Object.create(null);return E.__depth=0,E[y]=0,g.cache.set(y,E),E}let _;const w=l(v);return w?_={...t.superTypeDictTable[w]}:_={...a(v,g)},_.__depth++,_[y]=_.__depth,g.cache.set(y,_),_}t.getSuperTypes=a;function s(){for(const[y,g]of Object.entries(t.extensionTableInput)){const b=y;t.superTypeDictTable[b]||o(b,g,t.superTypeDictTable)}}t.extensionTableInit=s,s();function o(y,g,b){if(g==="term"||g===void 0){const v=Object.create(null);v.__depth=0,v[y]=0,b[y]=v;return}b[g]||o(g,t.extensionTableInput[g],b),b[y]={...b[g],[y]:b[g].__depth+1,__depth:b[g].__depth+1}}t.typeAliasCheck=Object.create(null);function u(){for(const y of Object.values(n.TypeAlias))t.typeAliasCheck[y]=!0}u();function c(y){if(y in t.typeAliasCheck)return y}t.asTypeAlias=c;function l(y){if(y in t.superTypeDictTable)return y}t.asKnownLiteralType=l;function d(y){if(l(y)??y==="term")return y}t.asOverrideType=d;function f(y){if(y==="term"||(0,e.asTermType)(y))return y}t.asGeneralType=f;function h(y,g){return y!=="term"&&t.superTypeDictTable[y]&&t.superTypeDictTable[y][g]!==void 0}t.isInternalSubType=h;function p(y,g){const b=l(y);return b?t.superTypeDictTable[b]:a(y,g)}t.getSuperTypeDict=p;function m(y,g,b){return y==="term"?!1:p(y,b)[g]!==void 0}t.isSubTypeOf=m,t.typePromotion={[n.TypeURL.XSD_STRING]:[{typeToPromote:n.TypeURL.XSD_ANY_URI,conversionFunction:y=>(0,r.string)(y.str())}],[n.TypeURL.XSD_DOUBLE]:[{typeToPromote:n.TypeURL.XSD_FLOAT,conversionFunction:y=>(0,r.double)(y.typedValue)},{typeToPromote:n.TypeURL.XSD_DECIMAL,conversionFunction:y=>(0,r.double)(y.typedValue)}],[n.TypeURL.XSD_FLOAT]:[{typeToPromote:n.TypeURL.XSD_DECIMAL,conversionFunction:y=>(0,r.float)(y.typedValue)}]}}(qx)),qx}var hV;function vl(){if(hV)return Hm;hV=1,Object.defineProperty(Hm,"__esModule",{value:!0}),Hm.TermTransformer=void 0;const t=nr,e=xt(),r=ki(),n=oi(),a=Rn(),s=Rn(),o=sN(),u=sN(),c=zT();let l=class{constructor(f){this.superTypeProvider=f}transformRDFTermUnsafe(f){return this.transformTerm({term:f,type:e.Algebra.types.EXPRESSION,expressionType:e.Algebra.expressionTypes.TERM})}transformTerm(f){if(!f.term)throw new a.InvalidExpression(f);switch(f.term.termType){case"Variable":return new r.Variable(t.termToString(f.term));case"Literal":return this.transformLiteral(f.term);case"NamedNode":return new r.NamedNode(f.term.value);case"BlankNode":return new r.BlankNode(f.term.value);case"Quad":return new r.Quad(f.term,this.superTypeProvider);default:throw new a.InvalidTermType(f)}}transformLiteral(f){if(!f.datatype||[null,void 0,""].includes(f.datatype.value))return f.language?new r.LangStringLiteral(f.value,f.language):new r.StringLiteral(f.value);const h=f.datatype.value,p=(0,c.getSuperTypeDict)(h,this.superTypeProvider);try{if(n.TypeURL.XSD_STRING in p)return new r.StringLiteral(f.value,h);if(n.TypeURL.RDF_LANG_STRING in p)return new r.LangStringLiteral(f.value,f.language);if(n.TypeURL.XSD_YEAR_MONTH_DURATION in p)return new r.YearMonthDurationLiteral((0,o.parseYearMonthDuration)(f.value),f.value,h);if(n.TypeURL.XSD_DAY_TIME_DURATION in p)return new r.DayTimeDurationLiteral((0,o.parseDayTimeDuration)(f.value),f.value,h);if(n.TypeURL.XSD_DURATION in p)return new r.DurationLiteral((0,o.parseDuration)(f.value),f.value,h);if(n.TypeURL.XSD_DATE_TIME in p){const g=new Date(f.value);return Number.isNaN(g.getTime())?new r.NonLexicalLiteral(void 0,h,this.superTypeProvider,f.value):new r.DateTimeLiteral((0,o.parseDateTime)(f.value),f.value,h)}if(n.TypeURL.XSD_DATE in p)return new r.DateLiteral((0,o.parseDate)(f.value),f.value,h);if(n.TypeURL.XSD_TIME in p)return new r.TimeLiteral((0,o.parseTime)(f.value),f.value,h);if(n.TypeURL.XSD_BOOLEAN in p)return f.value!=="true"&&f.value!=="false"&&f.value!=="1"&&f.value!=="0"?new r.NonLexicalLiteral(void 0,h,this.superTypeProvider,f.value):new r.BooleanLiteral(f.value==="true"||f.value==="1",f.value);if(n.TypeURL.XSD_DECIMAL in p){const g=u.parseXSDDecimal(f.value);return g===void 0?new r.NonLexicalLiteral(void 0,h,this.superTypeProvider,f.value):n.TypeURL.XSD_INTEGER in p?new r.IntegerLiteral(g,h,f.value):new r.DecimalLiteral(g,h,f.value)}const m=n.TypeURL.XSD_FLOAT in p,y=n.TypeURL.XSD_DOUBLE in p;if(m||y){const g=u.parseXSDFloat(f.value);return g===void 0?new r.NonLexicalLiteral(void 0,h,this.superTypeProvider,f.value):m?new r.FloatLiteral(g,h,f.value):new r.DoubleLiteral(g,h,f.value)}return new r.Literal(f.value,h,f.value)}catch(m){if(m instanceof Error&&(0,s.isExpressionError)(m))return new r.NonLexicalLiteral(void 0,h,this.superTypeProvider,f.value);throw m}}};return Hm.TermTransformer=l,Hm}var Ia={},pV;function t6e(){if(pV)return Ia;pV=1,Object.defineProperty(Ia,"__esModule",{value:!0}),Ia.serializeDuration=Ia.serializeTime=Ia.serializeDate=Ia.serializeDateTime=void 0;function t(o,u=2){return o.toLocaleString(void 0,{minimumIntegerDigits:u,useGrouping:!1})}function e(o){return`${n({year:o.year,month:o.month,day:o.day})}T${a(o)}`}Ia.serializeDateTime=e;function r(o){return o.zoneHours===void 0||o.zoneMinutes===void 0?"":o.zoneHours===0&&o.zoneMinutes===0?"Z":`${o.zoneHours>=0?`+${t(o.zoneHours)}`:t(o.zoneHours)}:${t(Math.abs(o.zoneMinutes))}`}function n(o){return`${t(o.year,4)}-${t(o.month)}-${t(o.day)}${r(o)}`}Ia.serializeDate=n;function a(o){return`${t(o.hours)}:${t(o.minutes)}:${t(o.seconds)}${r(o)}`}Ia.serializeTime=a;function s(o,u="PT0S"){if(!Object.values(o).some(g=>(g||0)!==0))return u;const c=Object.values(o).some(g=>(g||0)<0)?"-":"",l=o.year?`${Math.abs(o.year)}Y`:"",d=o.month?`${Math.abs(o.month)}M`:"",f=o.day?`${Math.abs(o.day)}D`:"",h=`${c}P${l}${d}${f}`;if(!(o.hours||o.minutes||o.seconds))return h;const p=o.hours?`${Math.abs(o.hours)}H`:"",m=o.minutes?`${Math.abs(o.minutes)}M`:"",y=o.seconds?`${Math.abs(o.seconds)}S`:"";return`${h}T${p}${m}${y}`}return Ia.serializeDuration=s,Ia}var yV;function r6e(){if(yV)return Rt;yV=1,Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.isNonLexicalLiteral=Rt.NonLexicalLiteral=Rt.YearMonthDurationLiteral=Rt.DayTimeDurationLiteral=Rt.DurationLiteral=Rt.DateLiteral=Rt.TimeLiteral=Rt.DateTimeLiteral=Rt.StringLiteral=Rt.LangStringLiteral=Rt.BooleanLiteral=Rt.DoubleLiteral=Rt.FloatLiteral=Rt.DecimalLiteral=Rt.IntegerLiteral=Rt.NumericLiteral=Rt.Literal=Rt.isLiteralTermExpression=Rt.Quad=Rt.BlankNode=Rt.NamedNode=Rt.Term=void 0;const t=Ot,e=vl(),r=oi(),n=oi(),a=Rn(),s=t6e(),o=zT(),u=As(),c=new t.DataFactory;class l{constructor(){this.expressionType=u.ExpressionType.Term}str(){throw new a.InvalidArgumentTypes([this],r.RegularOperator.STR)}coerceEBV(){throw new a.EBVCoercionError(this)}}Rt.Term=l;class d extends l{constructor(H){super(),this.value=H,this.termType="namedNode"}toRDF(){return c.namedNode(this.value)}str(){return this.value}}Rt.NamedNode=d;class f extends l{constructor(H){super(),this.termType="blankNode",this.value=typeof H=="string"?c.blankNode(H):H}toRDF(){return this.value}}Rt.BlankNode=f;class h extends l{constructor(H,X){super(),this.termType="quad",this.transformer=new e.TermTransformer(X),this.valueTerm=H}toRDF(){return this.valueTerm}get subject(){return this.transformer.transformRDFTermUnsafe(this.RDFsubject)}get predicate(){return this.transformer.transformRDFTermUnsafe(this.RDFpredicate)}get object(){return this.transformer.transformRDFTermUnsafe(this.RDFobject)}get RDFsubject(){return this.toRDF().subject}get RDFpredicate(){return this.toRDF().predicate}get RDFobject(){return this.toRDF().object}}Rt.Quad=h;function p(q){if(q.termType==="literal")return q}Rt.isLiteralTermExpression=p;class m extends l{constructor(H,X,Y,he){super(),this.typedValue=H,this.dataType=X,this.strValue=Y,this.language=he,this.termType="literal"}toRDF(){return c.literal(this.strValue??this.str(),this.language??c.namedNode(this.dataType))}str(){return this.strValue??this.typedValue.toString()}}Rt.Literal=m;class y extends m{constructor(H,X,Y,he){super(H,X,Y,he),this.typedValue=H,this.strValue=Y,this.language=he}coerceEBV(){return!!this.typedValue}toRDF(){const H=super.toRDF();return Number.isFinite(this.typedValue)||(H.value=H.value.replace("Infinity","INF")),H}str(){return this.strValue??this.specificFormatter(this.typedValue)}}Rt.NumericLiteral=y;class g extends y{constructor(H,X,Y,he){super(H,X??n.TypeURL.XSD_INTEGER,Y,he),this.typedValue=H,this.strValue=Y,this.language=he}specificFormatter(H){return H.toFixed(0)}}Rt.IntegerLiteral=g;class b extends y{constructor(H,X,Y,he){super(H,X??n.TypeURL.XSD_DECIMAL,Y,he),this.typedValue=H,this.strValue=Y,this.language=he}specificFormatter(H){return H.toString()}}Rt.DecimalLiteral=b;class v extends y{constructor(H,X,Y,he){super(H,X??n.TypeURL.XSD_FLOAT,Y,he),this.typedValue=H,this.strValue=Y,this.language=he}specificFormatter(H){return H.toString()}}Rt.FloatLiteral=v;class _ extends y{constructor(H,X,Y,he){super(H,X??n.TypeURL.XSD_DOUBLE,Y,he),this.typedValue=H,this.strValue=Y,this.language=he}specificFormatter(H){if(!Number.isFinite(H))return H>0?"INF":H<0?"-INF":"NaN";const X=H.toExponential(),[Y,he]=X.split("e"),Te=he.replace(/\+/u,"");return`${Y.includes(".")?Y:`${Y}.0`}E${Te}`}}Rt.DoubleLiteral=_;class w extends m{constructor(H,X,Y){super(H,Y??n.TypeURL.XSD_BOOLEAN,X),this.typedValue=H,this.strValue=X}coerceEBV(){return this.typedValue}}Rt.BooleanLiteral=w;class E extends m{constructor(H,X,Y){super(H,Y??n.TypeURL.RDF_LANG_STRING,H,X),this.typedValue=H,this.language=X}coerceEBV(){return this.str().length>0}}Rt.LangStringLiteral=E;class O extends m{constructor(H,X){super(H,X??n.TypeURL.XSD_STRING,H),this.typedValue=H}coerceEBV(){return this.str().length>0}}Rt.StringLiteral=O;class L extends m{constructor(H,X,Y){super(H,Y??n.TypeURL.XSD_DATE_TIME,X),this.typedValue=H,this.strValue=X}str(){return(0,s.serializeDateTime)(this.typedValue)}}Rt.DateTimeLiteral=L;class F extends m{constructor(H,X,Y){super(H,Y??n.TypeURL.XSD_TIME,X),this.typedValue=H,this.strValue=X}str(){return(0,s.serializeTime)(this.typedValue)}}Rt.TimeLiteral=F;class x extends m{constructor(H,X,Y){super(H,Y??n.TypeURL.XSD_DATE,X),this.typedValue=H,this.strValue=X}str(){return(0,s.serializeDate)(this.typedValue)}}Rt.DateLiteral=x;class P extends m{constructor(H,X,Y){super(H,Y??n.TypeURL.XSD_DURATION,X),this.typedValue=H,this.strValue=X}str(){return(0,s.serializeDuration)(this.typedValue)}}Rt.DurationLiteral=P;class j extends P{constructor(H,X,Y){super(H,X,Y??n.TypeURL.XSD_DAY_TIME_DURATION),this.typedValue=H,this.strValue=X}}Rt.DayTimeDurationLiteral=j;class N extends m{constructor(H,X,Y){super(H,Y??n.TypeURL.XSD_YEAR_MONTH_DURATION,X),this.typedValue=H,this.strValue=X}str(){return(0,s.serializeDuration)(this.typedValue,"P0M")}}Rt.YearMonthDurationLiteral=N;class V extends m{constructor(H,X,Y,he,Te){super({toString:()=>"undefined"},X,he,Te),this.openWorldType=Y}coerceEBV(){if((0,o.isSubTypeOf)(this.dataType,n.TypeURL.XSD_BOOLEAN,this.openWorldType)||(0,o.isSubTypeOf)(this.dataType,n.TypeAlias.SPARQL_NUMERIC,this.openWorldType))return!1;throw new a.EBVCoercionError(this)}toRDF(){return c.literal(this.str(),this.language??c.namedNode(this.dataType))}str(){return this.strValue??""}}Rt.NonLexicalLiteral=V;function $(q){if(q instanceof V)return q}return Rt.isNonLexicalLiteral=$,Rt}var zm={},mV;function n6e(){if(mV)return zm;mV=1,Object.defineProperty(zm,"__esModule",{value:!0}),zm.Operator=void 0;const t=As();let e=class{constructor(n,a){this.args=n,this.apply=a,this.expressionType=t.ExpressionType.Operator}};return zm.Operator=e,zm}var Gm={},gV;function i6e(){if(gV)return Gm;gV=1,Object.defineProperty(Gm,"__esModule",{value:!0}),Gm.SpecialOperator=void 0;const t=As();let e=class{constructor(n,a,s){this.args=n,this.applyAsync=a,this.applySynchronously=s,this.expressionType=t.ExpressionType.SpecialOperator}};return Gm.SpecialOperator=e,Gm}var Wm={},_V;function a6e(){if(_V)return Wm;_V=1,Object.defineProperty(Wm,"__esModule",{value:!0}),Wm.Named=void 0;const t=As();let e=class{constructor(n,a,s){this.name=n,this.args=a,this.apply=s,this.expressionType=t.ExpressionType.Named}};return Wm.Named=e,Wm}var Km={},bV;function s6e(){if(bV)return Km;bV=1,Object.defineProperty(Km,"__esModule",{value:!0}),Km.Aggregate=void 0;const t=As();let e=class{constructor(n,a){this.name=n,this.expression=a,this.expressionType=t.ExpressionType.Aggregate}};return Km.Aggregate=e,Km}var Jm={},vV;function o6e(){if(vV)return Jm;vV=1,Object.defineProperty(Jm,"__esModule",{value:!0}),Jm.Existence=void 0;const t=As();let e=class{constructor(n){this.expression=n,this.expressionType=t.ExpressionType.Existence}};return Jm.Existence=e,Jm}var Xm={},wV;function u6e(){if(wV)return Xm;wV=1,Object.defineProperty(Xm,"__esModule",{value:!0}),Xm.AsyncExtension=void 0;const t=As();let e=class{constructor(n,a,s){this.name=n,this.args=a,this.apply=s,this.expressionType=t.ExpressionType.AsyncExtension}};return Xm.AsyncExtension=e,Xm}var Ym={},SV;function c6e(){if(SV)return Ym;SV=1,Object.defineProperty(Ym,"__esModule",{value:!0}),Ym.SyncExtension=void 0;const t=As();let e=class{constructor(n,a,s){this.name=n,this.args=a,this.apply=s,this.expressionType=t.ExpressionType.SyncExtension}};return Ym.SyncExtension=e,Ym}var TV;function ki(){return TV||(TV=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(As(),t),r(e6e(),t),r(r6e(),t),r(n6e(),t),r(i6e(),t),r(a6e(),t),r(s6e(),t),r(o6e(),t),r(u6e(),t),r(c6e(),t)}(Fx)),Fx}var $x={},Pa={},EV;function uN(){if(EV)return Pa;EV=1,Object.defineProperty(Pa,"__esModule",{value:!0}),Pa.SpecialFunction=Pa.NamedFunction=Pa.RegularFunction=Pa.BaseFunction=void 0;const t=Rn();class e{constructor(u,c){this.operator=u,this.apply=(l,d)=>(this.monomorph(l,d.superTypeProvider,d.functionArgumentsCache)??this.handleInvalidTypes(l))(d)(l),this.arity=c.arity,this.overloads=c.overloads}monomorph(u,c,l){return this.overloads.search(u,c,l)}}Pa.BaseFunction=e;class r extends e{constructor(u,c){super(u,c),this.functionClass="regular"}handleInvalidTypes(u){throw new t.InvalidArgumentTypes(u,this.operator)}}Pa.RegularFunction=r;class n extends e{constructor(u,c){super(u,c),this.functionClass="named"}handleInvalidTypes(u){throw new t.InvalidArgumentTypes(u,this.operator)}}Pa.NamedFunction=n;class a{constructor(u,c){this.operator=u,this.functionClass="special",this.arity=c.arity,this.applySynchronously=c.applySynchronously,this.applyAsync=c.applyAsync,this.checkArity=c.checkArity??s(this.arity)}}Pa.SpecialFunction=a;function s(o){return u=>o===Number.POSITIVE_INFINITY?!0:u.length===o}return Pa}var Zm={},AV;function l6e(){if(AV)return Zm;AV=1,Object.defineProperty(Zm,"__esModule",{value:!0}),Zm.namedDefinitions=void 0;const t=ki(),e=ki(),r=oi(),n=qf(),a=Rn(),s=sN(),o=Os(),u={arity:1,overloads:(0,o.declare)(r.TypeURL.XSD_STRING).onNumeric1(()=>_=>(0,o.string)((0,o.float)(_.typedValue).str())).onBoolean1Typed(()=>_=>(0,o.string)((0,o.bool)(_).str())).onTerm1(()=>_=>(0,o.string)(_.str())).collect()},c={arity:1,overloads:(0,o.declare)(r.TypeURL.XSD_FLOAT).onNumeric1(()=>_=>(0,o.float)(_.typedValue)).onBoolean1Typed(()=>_=>(0,o.float)(_?1:0)).onUnary(r.TypeURL.XSD_STRING,()=>_=>{const w=(0,s.parseXSDFloat)(_.str());if(w===void 0)throw new a.CastError(_,r.TypeURL.XSD_FLOAT);return(0,o.float)(w)},!1).collect()},l={arity:1,overloads:(0,o.declare)(r.TypeURL.XSD_DOUBLE).onNumeric1(()=>_=>(0,o.double)(_.typedValue)).onBoolean1Typed(()=>_=>(0,o.double)(_?1:0)).onUnary(r.TypeURL.XSD_STRING,()=>_=>{const w=(0,s.parseXSDFloat)(_.str());if(w===void 0)throw new a.CastError(_,r.TypeURL.XSD_DOUBLE);return(0,o.double)(w)},!1).collect()},d={arity:1,overloads:(0,o.declare)(r.TypeURL.XSD_DECIMAL).onNumeric1(()=>_=>{const w=(0,s.parseXSDDecimal)(_.str());if(w===void 0)throw new a.CastError(_,r.TypeURL.XSD_DECIMAL);return(0,o.decimal)(w)}).onString1(()=>_=>{const w=_.str(),E=/^([+-])?(\d+(\.\d+)?)$/u.test(w)?(0,s.parseXSDDecimal)(w):void 0;if(E===void 0)throw new a.CastError(_,r.TypeURL.XSD_DECIMAL);return(0,o.decimal)(E)},!1).onBoolean1Typed(()=>_=>(0,o.decimal)(_?1:0)).collect()},f={arity:1,overloads:(0,o.declare)(r.TypeURL.XSD_INTEGER).onBoolean1Typed(()=>_=>(0,o.integer)(_?1:0)).onNumeric1(()=>_=>{const w=(0,s.parseXSDInteger)(_.str());if(w===void 0)throw new a.CastError(_,r.TypeURL.XSD_INTEGER);return(0,o.integer)(w)},!1).onString1(()=>_=>{const w=_.str(),E=/^\d+$/u.test(w)?(0,s.parseXSDInteger)(w):void 0;if(E===void 0)throw new a.CastError(_,r.TypeURL.XSD_INTEGER);return(0,o.integer)(E)}).collect()},h={arity:1,overloads:(0,o.declare)(r.TypeURL.XSD_DATE_TIME).onUnary(r.TypeURL.XSD_DATE_TIME,()=>_=>_).onUnary(r.TypeURL.XSD_STRING,()=>_=>(0,o.dateTime)((0,s.parseDateTime)(_.str()),_.str()),!1).onUnary(r.TypeURL.XSD_DATE,()=>_=>new t.DateTimeLiteral({..._.typedValue,hours:0,minutes:0,seconds:0})).collect()},p={arity:1,overloads:(0,o.declare)(r.TypeURL.XSD_BOOLEAN).onNumeric1(()=>_=>(0,o.bool)(_.coerceEBV()),!0).onUnary(r.TypeURL.XSD_BOOLEAN,()=>_=>(0,o.bool)(_.coerceEBV()),!0).onUnary(r.TypeURL.XSD_STRING,()=>_=>{switch(_.str()){case"true":return(0,o.bool)(!0);case"false":return(0,o.bool)(!1);case"1":return(0,o.bool)(!0);case"0":return(0,o.bool)(!1);default:throw new a.CastError(_,r.TypeURL.XSD_BOOLEAN)}},!1).collect()},m={arity:1,overloads:(0,o.declare)(r.TypeURL.XSD_TIME).onUnary(r.TypeURL.XSD_TIME,()=>_=>new t.TimeLiteral(_.typedValue,_.strValue)).onUnary(r.TypeURL.XSD_DATE_TIME,()=>_=>new t.TimeLiteral(_.typedValue)).onStringly1(()=>_=>new t.TimeLiteral((0,s.parseTime)(_.str()))).collect()},y={arity:1,overloads:(0,o.declare)(r.TypeURL.XSD_DATE).onUnary(r.TypeURL.XSD_DATE,()=>_=>new t.DateLiteral(_.typedValue,_.strValue)).onUnary(r.TypeURL.XSD_DATE_TIME,()=>_=>new t.DateLiteral(_.typedValue)).onStringly1(()=>_=>new t.DateLiteral((0,s.parseDate)(_.str()))).collect()},g={arity:1,overloads:(0,o.declare)(r.TypeURL.XSD_DURATION).onUnary(r.TypeURL.XSD_DURATION,()=>_=>new t.DurationLiteral(_.typedValue,_.strValue)).onStringly1(()=>_=>new e.DurationLiteral((0,s.parseDuration)(_.str()))).collect()},b={arity:1,overloads:(0,o.declare)(r.TypeURL.XSD_DAY_TIME_DURATION).onUnary(r.TypeURL.XSD_DURATION,()=>_=>new t.DayTimeDurationLiteral((0,n.trimToDayTimeDuration)(_.typedValue))).onStringly1(()=>_=>new t.DayTimeDurationLiteral((0,s.parseDayTimeDuration)(_.str()))).collect()},v={arity:1,overloads:(0,o.declare)(r.TypeURL.XSD_YEAR_MONTH_DURATION).onUnary(r.TypeURL.XSD_DURATION,()=>_=>new t.YearMonthDurationLiteral((0,n.trimToYearMonthDuration)(_.typedValue))).onStringly1(()=>_=>new t.YearMonthDurationLiteral((0,s.parseYearMonthDuration)(_.str()))).collect()};return Zm.namedDefinitions={[r.TypeURL.XSD_STRING]:u,[r.TypeURL.XSD_FLOAT]:c,[r.TypeURL.XSD_DOUBLE]:l,[r.TypeURL.XSD_DECIMAL]:d,[r.TypeURL.XSD_INTEGER]:f,[r.TypeURL.XSD_DATE_TIME]:h,[r.TypeURL.XSD_DATE]:y,[r.TypeURL.XSD_BOOLEAN]:p,[r.TypeURL.XSD_TIME]:m,[r.TypeURL.XSD_DURATION]:g,[r.TypeURL.XSD_DAY_TIME_DURATION]:b,[r.TypeURL.XSD_YEAR_MONTH_DURATION]:v},Zm}var eg={},Ux={exports:{}},OV;function d6e(){return OV||(OV=1,function(t){(function(e){var r,n=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,a=Math.ceil,s=Math.floor,o="[BigNumber Error] ",u=o+"Number primitive has more than 15 significant digits: ",c=1e14,l=14,d=9007199254740991,f=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],h=1e7,p=1e9;function m(O){var L,F,x,P=ce.prototype={constructor:ce,toString:null,valueOf:null},j=new ce(1),N=20,V=4,$=-7,q=21,H=-1e7,X=1e7,Y=!1,he=1,Te=0,Ne={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},$e="0123456789abcdefghijklmnopqrstuvwxyz",de=!0;function ce(z,M){var k,T,R,U,G,Q,Z,se,re=this;if(!(re instanceof ce))return new ce(z,M);if(M==null){if(z&&z._isBigNumber===!0){re.s=z.s,!z.c||z.e>X?re.c=re.e=null:z.e=10;G/=10,U++);U>X?re.c=re.e=null:(re.e=U,re.c=[z]);return}se=String(z)}else{if(!n.test(se=String(z)))return x(re,se,Q);re.s=se.charCodeAt(0)==45?(se=se.slice(1),-1):1}(U=se.indexOf("."))>-1&&(se=se.replace(".","")),(G=se.search(/e/i))>0?(U<0&&(U=G),U+=+se.slice(G+1),se=se.substring(0,G)):U<0&&(U=se.length)}else{if(v(M,2,$e.length,"Base"),M==10&&de)return re=new ce(z),Re(re,N+re.e+1,V);if(se=String(z),Q=typeof z=="number"){if(z*0!=0)return x(re,se,Q,M);if(re.s=1/z<0?(se=se.slice(1),-1):1,ce.DEBUG&&se.replace(/^0\.0*|\./,"").length>15)throw Error(u+z)}else re.s=se.charCodeAt(0)===45?(se=se.slice(1),-1):1;for(k=$e.slice(0,M),U=G=0,Z=se.length;GU){U=Z;continue}}else if(!R&&(se==se.toUpperCase()&&(se=se.toLowerCase())||se==se.toLowerCase()&&(se=se.toUpperCase()))){R=!0,G=-1,U=0;continue}return x(re,String(z),Q,M)}Q=!1,se=F(se,M,10,re.s),(U=se.indexOf("."))>-1?se=se.replace(".",""):U=se.length}for(G=0;se.charCodeAt(G)===48;G++);for(Z=se.length;se.charCodeAt(--Z)===48;);if(se=se.slice(G,++Z)){if(Z-=G,Q&&ce.DEBUG&&Z>15&&(z>d||z!==s(z)))throw Error(u+re.s*z);if((U=U-G-1)>X)re.c=re.e=null;else if(U=-p&&R<=p&&R===s(R)){if(T[0]===0){if(R===0&&T.length===1)return!0;break e}if(M=(R+1)%l,M<1&&(M+=l),String(T[0]).length==M){for(M=0;M=c||k!==s(k))break e;if(k!==0)return!0}}}else if(T===null&&R===null&&(U===null||U===1||U===-1))return!0;throw Error(o+"Invalid BigNumber: "+z)},ce.maximum=ce.max=function(){return Pe(arguments,-1)},ce.minimum=ce.min=function(){return Pe(arguments,1)},ce.random=function(){var z=9007199254740992,M=Math.random()*z&2097151?function(){return s(Math.random()*z)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(k){var T,R,U,G,Q,Z=0,se=[],re=new ce(j);if(k==null?k=N:v(k,0,p),G=a(k/l),Y)if(crypto.getRandomValues){for(T=crypto.getRandomValues(new Uint32Array(G*=2));Z>>11),Q>=9e15?(R=crypto.getRandomValues(new Uint32Array(2)),T[Z]=R[0],T[Z+1]=R[1]):(se.push(Q%1e14),Z+=2);Z=G/2}else if(crypto.randomBytes){for(T=crypto.randomBytes(G*=7);Z=9e15?crypto.randomBytes(7).copy(T,Z):(se.push(Q%1e14),Z+=7);Z=G/7}else throw Y=!1,Error(o+"crypto unavailable");if(!Y)for(;Z=10;Q/=10,Z++);ZR-1&&(Q[G+1]==null&&(Q[G+1]=0),Q[G+1]+=Q[G]/R|0,Q[G]%=R)}return Q.reverse()}return function(k,T,R,U,G){var Q,Z,se,re,le,pe,_e,Ie,Ee=k.indexOf("."),Me=N,Ce=V;for(Ee>=0&&(re=Te,Te=0,k=k.replace(".",""),Ie=new ce(T),pe=Ie.pow(k.length-Ee),Te=re,Ie.c=M(E(g(pe.c),pe.e,"0"),10,R,z),Ie.e=Ie.c.length),_e=M(k,T,R,G?(Q=$e,z):(Q=z,$e)),se=re=_e.length;_e[--re]==0;_e.pop());if(!_e[0])return Q.charAt(0);if(Ee<0?--se:(pe.c=_e,pe.e=se,pe.s=U,pe=L(pe,Ie,Me,Ce,R),_e=pe.c,le=pe.r,se=pe.e),Z=se+Me+1,Ee=_e[Z],re=R/2,le=le||Z<0||_e[Z+1]!=null,le=Ce<4?(Ee!=null||le)&&(Ce==0||Ce==(pe.s<0?3:2)):Ee>re||Ee==re&&(Ce==4||le||Ce==6&&_e[Z-1]&1||Ce==(pe.s<0?8:7)),Z<1||!_e[0])k=le?E(Q.charAt(1),-Me,Q.charAt(0)):Q.charAt(0);else{if(_e.length=Z,le)for(--R;++_e[--Z]>R;)_e[Z]=0,Z||(++se,_e=[1].concat(_e));for(re=_e.length;!_e[--re];);for(Ee=0,k="";Ee<=re;k+=Q.charAt(_e[Ee++]));k=E(k,se,Q.charAt(0))}return k}}(),L=function(){function z(T,R,U){var G,Q,Z,se,re=0,le=T.length,pe=R%h,_e=R/h|0;for(T=T.slice();le--;)Z=T[le]%h,se=T[le]/h|0,G=_e*Z+se*pe,Q=pe*Z+G%h*h+re,re=(Q/U|0)+(G/h|0)+_e*se,T[le]=Q%U;return re&&(T=[re].concat(T)),T}function M(T,R,U,G){var Q,Z;if(U!=G)Z=U>G?1:-1;else for(Q=Z=0;QR[Q]?1:-1;break}return Z}function k(T,R,U,G){for(var Q=0;U--;)T[U]-=Q,Q=T[U]1;T.splice(0,1));}return function(T,R,U,G,Q){var Z,se,re,le,pe,_e,Ie,Ee,Me,Ce,ke,qe,W,D,B,K,ne,fe=T.s==R.s?1:-1,ge=T.c,Le=R.c;if(!ge||!ge[0]||!Le||!Le[0])return new ce(!T.s||!R.s||(ge?Le&&ge[0]==Le[0]:!Le)?NaN:ge&&ge[0]==0||!Le?fe*0:fe/0);for(Ee=new ce(fe),Me=Ee.c=[],se=T.e-R.e,fe=U+se+1,Q||(Q=c,se=y(T.e/l)-y(R.e/l),fe=fe/l|0),re=0;Le[re]==(ge[re]||0);re++);if(Le[re]>(ge[re]||0)&&se--,fe<0)Me.push(1),le=!0;else{for(D=ge.length,K=Le.length,re=0,fe+=2,pe=s(Q/(Le[0]+1)),pe>1&&(Le=z(Le,pe,Q),ge=z(ge,pe,Q),K=Le.length,D=ge.length),W=K,Ce=ge.slice(0,K),ke=Ce.length;ke=Q/2&&B++;do{if(pe=0,Z=M(Le,Ce,K,ke),Z<0){if(qe=Ce[0],K!=ke&&(qe=qe*Q+(Ce[1]||0)),pe=s(qe/B),pe>1)for(pe>=Q&&(pe=Q-1),_e=z(Le,pe,Q),Ie=_e.length,ke=Ce.length;M(_e,Ce,Ie,ke)==1;)pe--,k(_e,K=10;fe/=10,re++);Re(Ee,U+(Ee.e=re+se*l-1)+1,G,le)}else Ee.e=se,Ee.r=+le;return Ee}}();function xe(z,M,k,T){var R,U,G,Q,Z;if(k==null?k=V:v(k,0,8),!z.c)return z.toString();if(R=z.c[0],G=z.e,M==null)Z=g(z.c),Z=T==1||T==2&&(G<=$||G>=q)?w(Z,G):E(Z,G,"0");else if(z=Re(new ce(z),M,k),U=z.e,Z=g(z.c),Q=Z.length,T==1||T==2&&(M<=U||U<=$)){for(;QQ){if(--M>0)for(Z+=".";M--;Z+="0");}else if(M+=U-Q,M>0)for(U+1==Q&&(Z+=".");M--;Z+="0");return z.s<0&&R?"-"+Z:Z}function Pe(z,M){for(var k,T,R=1,U=new ce(z[0]);R=10;R/=10,T++);return(k=T+k*l-1)>X?z.c=z.e=null:k=10;Q/=10,R++);if(U=M-R,U<0)U+=l,G=M,Z=le[se=0],re=s(Z/pe[R-G-1]%10);else if(se=a((U+1)/l),se>=le.length)if(T){for(;le.length<=se;le.push(0));Z=re=0,R=1,U%=l,G=U-l+1}else break e;else{for(Z=Q=le[se],R=1;Q>=10;Q/=10,R++);U%=l,G=U-l+R,re=G<0?0:s(Z/pe[R-G-1]%10)}if(T=T||M<0||le[se+1]!=null||(G<0?Z:Z%pe[R-G-1]),T=k<4?(re||T)&&(k==0||k==(z.s<0?3:2)):re>5||re==5&&(k==4||T||k==6&&(U>0?G>0?Z/pe[R-G]:0:le[se-1])%10&1||k==(z.s<0?8:7)),M<1||!le[0])return le.length=0,T?(M-=z.e+1,le[0]=pe[(l-M%l)%l],z.e=-M||0):le[0]=z.e=0,z;if(U==0?(le.length=se,Q=1,se--):(le.length=se+1,Q=pe[l-U],le[se]=G>0?s(Z/pe[R-G]%pe[G])*Q:0),T)for(;;)if(se==0){for(U=1,G=le[0];G>=10;G/=10,U++);for(G=le[0]+=Q,Q=1;G>=10;G/=10,Q++);U!=Q&&(z.e++,le[0]==c&&(le[0]=1));break}else{if(le[se]+=Q,le[se]!=c)break;le[se--]=0,Q=1}for(U=le.length;le[--U]===0;le.pop());}z.e>X?z.c=z.e=null:z.e=q?w(M,k):E(M,k,"0"),z.s<0?"-"+M:M)}return P.absoluteValue=P.abs=function(){var z=new ce(this);return z.s<0&&(z.s=1),z},P.comparedTo=function(z,M){return b(this,new ce(z,M))},P.decimalPlaces=P.dp=function(z,M){var k,T,R,U=this;if(z!=null)return v(z,0,p),M==null?M=V:v(M,0,8),Re(new ce(U),z+U.e+1,M);if(!(k=U.c))return null;if(T=((R=k.length-1)-y(this.e/l))*l,R=k[R])for(;R%10==0;R/=10,T--);return T<0&&(T=0),T},P.dividedBy=P.div=function(z,M){return L(this,new ce(z,M),N,V)},P.dividedToIntegerBy=P.idiv=function(z,M){return L(this,new ce(z,M),0,1)},P.exponentiatedBy=P.pow=function(z,M){var k,T,R,U,G,Q,Z,se,re,le=this;if(z=new ce(z),z.c&&!z.isInteger())throw Error(o+"Exponent not an integer: "+Se(z));if(M!=null&&(M=new ce(M)),Q=z.e>14,!le.c||!le.c[0]||le.c[0]==1&&!le.e&&le.c.length==1||!z.c||!z.c[0])return re=new ce(Math.pow(+Se(le),Q?z.s*(2-_(z)):+Se(z))),M?re.mod(M):re;if(Z=z.s<0,M){if(M.c?!M.c[0]:!M.s)return new ce(NaN);T=!Z&&le.isInteger()&&M.isInteger(),T&&(le=le.mod(M))}else{if(z.e>9&&(le.e>0||le.e<-1||(le.e==0?le.c[0]>1||Q&&le.c[1]>=24e7:le.c[0]<8e13||Q&&le.c[0]<=9999975e7)))return U=le.s<0&&_(z)?-0:0,le.e>-1&&(U=1/U),new ce(Z?1/U:U);Te&&(U=a(Te/l+2))}for(Q?(k=new ce(.5),Z&&(z.s=1),se=_(z)):(R=Math.abs(+Se(z)),se=R%2),re=new ce(j);;){if(se){if(re=re.times(le),!re.c)break;U?re.c.length>U&&(re.c.length=U):T&&(re=re.mod(M))}if(R){if(R=s(R/2),R===0)break;se=R%2}else if(z=z.times(k),Re(z,z.e+1,1),z.e>14)se=_(z);else{if(R=+Se(z),R===0)break;se=R%2}le=le.times(le),U?le.c&&le.c.length>U&&(le.c.length=U):T&&(le=le.mod(M))}return T?re:(Z&&(re=j.div(re)),M?re.mod(M):U?Re(re,Te,V,G):re)},P.integerValue=function(z){var M=new ce(this);return z==null?z=V:v(z,0,8),Re(M,M.e+1,z)},P.isEqualTo=P.eq=function(z,M){return b(this,new ce(z,M))===0},P.isFinite=function(){return!!this.c},P.isGreaterThan=P.gt=function(z,M){return b(this,new ce(z,M))>0},P.isGreaterThanOrEqualTo=P.gte=function(z,M){return(M=b(this,new ce(z,M)))===1||M===0},P.isInteger=function(){return!!this.c&&y(this.e/l)>this.c.length-2},P.isLessThan=P.lt=function(z,M){return b(this,new ce(z,M))<0},P.isLessThanOrEqualTo=P.lte=function(z,M){return(M=b(this,new ce(z,M)))===-1||M===0},P.isNaN=function(){return!this.s},P.isNegative=function(){return this.s<0},P.isPositive=function(){return this.s>0},P.isZero=function(){return!!this.c&&this.c[0]==0},P.minus=function(z,M){var k,T,R,U,G=this,Q=G.s;if(z=new ce(z,M),M=z.s,!Q||!M)return new ce(NaN);if(Q!=M)return z.s=-M,G.plus(z);var Z=G.e/l,se=z.e/l,re=G.c,le=z.c;if(!Z||!se){if(!re||!le)return re?(z.s=-M,z):new ce(le?G:NaN);if(!re[0]||!le[0])return le[0]?(z.s=-M,z):new ce(re[0]?G:V==3?-0:0)}if(Z=y(Z),se=y(se),re=re.slice(),Q=Z-se){for((U=Q<0)?(Q=-Q,R=re):(se=Z,R=le),R.reverse(),M=Q;M--;R.push(0));R.reverse()}else for(T=(U=(Q=re.length)<(M=le.length))?Q:M,Q=M=0;M0)for(;M--;re[k++]=0);for(M=c-1;T>Q;){if(re[--T]=0;){for(k=0,pe=qe[R]%Me,_e=qe[R]/Me|0,G=Z,U=R+G;U>R;)se=ke[--G]%Me,re=ke[G]/Me|0,Q=_e*se+re*pe,se=pe*se+Q%Me*Me+Ie[U]+k,k=(se/Ee|0)+(Q/Me|0)+_e*re,Ie[U--]=se%Ee;Ie[U]=k}return k?++T:Ie.splice(0,1),we(z,Ie,T)},P.negated=function(){var z=new ce(this);return z.s=-z.s||null,z},P.plus=function(z,M){var k,T=this,R=T.s;if(z=new ce(z,M),M=z.s,!R||!M)return new ce(NaN);if(R!=M)return z.s=-M,T.minus(z);var U=T.e/l,G=z.e/l,Q=T.c,Z=z.c;if(!U||!G){if(!Q||!Z)return new ce(R/0);if(!Q[0]||!Z[0])return Z[0]?z:new ce(Q[0]?T:R*0)}if(U=y(U),G=y(G),Q=Q.slice(),R=U-G){for(R>0?(G=U,k=Z):(R=-R,k=Q),k.reverse();R--;k.push(0));k.reverse()}for(R=Q.length,M=Z.length,R-M<0&&(k=Z,Z=Q,Q=k,M=R),R=0;M;)R=(Q[--M]=Q[M]+Z[M]+R)/c|0,Q[M]=c===Q[M]?0:Q[M]%c;return R&&(Q=[R].concat(Q),++G),we(z,Q,G)},P.precision=P.sd=function(z,M){var k,T,R,U=this;if(z!=null&&z!==!!z)return v(z,1,p),M==null?M=V:v(M,0,8),Re(new ce(U),z,M);if(!(k=U.c))return null;if(R=k.length-1,T=R*l+1,R=k[R]){for(;R%10==0;R/=10,T--);for(R=k[0];R>=10;R/=10,T++);}return z&&U.e+1>T&&(T=U.e+1),T},P.shiftedBy=function(z){return v(z,-d,d),this.times("1e"+z)},P.squareRoot=P.sqrt=function(){var z,M,k,T,R,U=this,G=U.c,Q=U.s,Z=U.e,se=N+4,re=new ce("0.5");if(Q!==1||!G||!G[0])return new ce(!Q||Q<0&&(!G||G[0])?NaN:G?U:1/0);if(Q=Math.sqrt(+Se(U)),Q==0||Q==1/0?(M=g(G),(M.length+Z)%2==0&&(M+="0"),Q=Math.sqrt(+M),Z=y((Z+1)/2)-(Z<0||Z%2),Q==1/0?M="5e"+Z:(M=Q.toExponential(),M=M.slice(0,M.indexOf("e")+1)+Z),k=new ce(M)):k=new ce(Q+""),k.c[0]){for(Z=k.e,Q=Z+se,Q<3&&(Q=0);;)if(R=k,k=re.times(R.plus(L(U,R,se,1))),g(R.c).slice(0,Q)===(M=g(k.c)).slice(0,Q))if(k.e0&&Ie>0){for(U=Ie%Q||Q,re=_e.substr(0,U);U0&&(re+=se+_e.slice(U)),pe&&(re="-"+re)}T=le?re+(k.decimalSeparator||"")+((Z=+k.fractionGroupSize)?le.replace(new RegExp("\\d{"+Z+"}\\B","g"),"$&"+(k.fractionGroupSeparator||"")):le):re}return(k.prefix||"")+T+(k.suffix||"")},P.toFraction=function(z){var M,k,T,R,U,G,Q,Z,se,re,le,pe,_e=this,Ie=_e.c;if(z!=null&&(Q=new ce(z),!Q.isInteger()&&(Q.c||Q.s!==1)||Q.lt(j)))throw Error(o+"Argument "+(Q.isInteger()?"out of range: ":"not an integer: ")+Se(Q));if(!Ie)return new ce(_e);for(M=new ce(j),se=k=new ce(j),T=Z=new ce(j),pe=g(Ie),U=M.e=pe.length-_e.e-1,M.c[0]=f[(G=U%l)<0?l+G:G],z=!z||Q.comparedTo(M)>0?U>0?M:se:Q,G=X,X=1/0,Q=new ce(pe),Z.c[0]=0;re=L(Q,M,0,1),R=k.plus(re.times(T)),R.comparedTo(z)!=1;)k=T,T=R,se=Z.plus(re.times(R=se)),Z=R,M=Q.minus(re.times(R=M)),Q=R;return R=L(z.minus(k),T,0,1),Z=Z.plus(R.times(se)),k=k.plus(R.times(T)),Z.s=se.s=_e.s,U=U*2,le=L(se,T,U,V).minus(_e).abs().comparedTo(L(Z,k,U,V).minus(_e).abs())<1?[se,T]:[Z,k],X=G,le},P.toNumber=function(){return+Se(this)},P.toPrecision=function(z,M){return z!=null&&v(z,1,p),xe(this,z,M,2)},P.toString=function(z){var M,k=this,T=k.s,R=k.e;return R===null?T?(M="Infinity",T<0&&(M="-"+M)):M="NaN":(z==null?M=R<=$||R>=q?w(g(k.c),R):E(g(k.c),R,"0"):z===10&&de?(k=Re(new ce(k),N+R+1,V),M=E(g(k.c),k.e,"0")):(v(z,2,$e.length,"Base"),M=F(E(g(k.c),R,"0"),10,z,T,!0)),T<0&&k.c[0]&&(M="-"+M)),M},P.valueOf=P.toJSON=function(){return Se(this)},P._isBigNumber=!0,O!=null&&ce.set(O),ce}function y(O){var L=O|0;return O>0||O===L?L:L-1}function g(O){for(var L,F,x=1,P=O.length,j=O[0]+"";xq^F?1:-1;for(V=($=P.length)<(q=j.length)?$:q,N=0;Nj[N]^F?1:-1;return $==q?0:$>q^F?1:-1}function v(O,L,F,x){if(OF||O!==s(O))throw Error(o+(x||"Argument")+(typeof O=="number"?OF?" out of range: ":" not an integer: ":" not a primitive number: ")+String(O))}function _(O){var L=O.c.length-1;return y(O.e/l)==L&&O.c[L]%2!=0}function w(O,L){return(O.length>1?O.charAt(0)+"."+O.slice(1):O)+(L<0?"e":"e+")+L}function E(O,L,F){var x,P;if(L<0){for(P=F+".";++L;P+=F);O=P+O}else if(x=O.length,++L>x){for(P=F,L-=x;--L;P+=F);O+=P}else L>>25)+w|0,O+=(_&w|~_&E)+v[1]-389564586|0,O=(O<<12|O>>>20)+_|0,E+=(O&_|~O&w)+v[2]+606105819|0,E=(E<<17|E>>>15)+O|0,w+=(E&O|~E&_)+v[3]-1044525330|0,w=(w<<22|w>>>10)+E|0,_+=(w&E|~w&O)+v[4]-176418897|0,_=(_<<7|_>>>25)+w|0,O+=(_&w|~_&E)+v[5]+1200080426|0,O=(O<<12|O>>>20)+_|0,E+=(O&_|~O&w)+v[6]-1473231341|0,E=(E<<17|E>>>15)+O|0,w+=(E&O|~E&_)+v[7]-45705983|0,w=(w<<22|w>>>10)+E|0,_+=(w&E|~w&O)+v[8]+1770035416|0,_=(_<<7|_>>>25)+w|0,O+=(_&w|~_&E)+v[9]-1958414417|0,O=(O<<12|O>>>20)+_|0,E+=(O&_|~O&w)+v[10]-42063|0,E=(E<<17|E>>>15)+O|0,w+=(E&O|~E&_)+v[11]-1990404162|0,w=(w<<22|w>>>10)+E|0,_+=(w&E|~w&O)+v[12]+1804603682|0,_=(_<<7|_>>>25)+w|0,O+=(_&w|~_&E)+v[13]-40341101|0,O=(O<<12|O>>>20)+_|0,E+=(O&_|~O&w)+v[14]-1502002290|0,E=(E<<17|E>>>15)+O|0,w+=(E&O|~E&_)+v[15]+1236535329|0,w=(w<<22|w>>>10)+E|0,_+=(w&O|E&~O)+v[1]-165796510|0,_=(_<<5|_>>>27)+w|0,O+=(_&E|w&~E)+v[6]-1069501632|0,O=(O<<9|O>>>23)+_|0,E+=(O&w|_&~w)+v[11]+643717713|0,E=(E<<14|E>>>18)+O|0,w+=(E&_|O&~_)+v[0]-373897302|0,w=(w<<20|w>>>12)+E|0,_+=(w&O|E&~O)+v[5]-701558691|0,_=(_<<5|_>>>27)+w|0,O+=(_&E|w&~E)+v[10]+38016083|0,O=(O<<9|O>>>23)+_|0,E+=(O&w|_&~w)+v[15]-660478335|0,E=(E<<14|E>>>18)+O|0,w+=(E&_|O&~_)+v[4]-405537848|0,w=(w<<20|w>>>12)+E|0,_+=(w&O|E&~O)+v[9]+568446438|0,_=(_<<5|_>>>27)+w|0,O+=(_&E|w&~E)+v[14]-1019803690|0,O=(O<<9|O>>>23)+_|0,E+=(O&w|_&~w)+v[3]-187363961|0,E=(E<<14|E>>>18)+O|0,w+=(E&_|O&~_)+v[8]+1163531501|0,w=(w<<20|w>>>12)+E|0,_+=(w&O|E&~O)+v[13]-1444681467|0,_=(_<<5|_>>>27)+w|0,O+=(_&E|w&~E)+v[2]-51403784|0,O=(O<<9|O>>>23)+_|0,E+=(O&w|_&~w)+v[7]+1735328473|0,E=(E<<14|E>>>18)+O|0,w+=(E&_|O&~_)+v[12]-1926607734|0,w=(w<<20|w>>>12)+E|0,_+=(w^E^O)+v[5]-378558|0,_=(_<<4|_>>>28)+w|0,O+=(_^w^E)+v[8]-2022574463|0,O=(O<<11|O>>>21)+_|0,E+=(O^_^w)+v[11]+1839030562|0,E=(E<<16|E>>>16)+O|0,w+=(E^O^_)+v[14]-35309556|0,w=(w<<23|w>>>9)+E|0,_+=(w^E^O)+v[1]-1530992060|0,_=(_<<4|_>>>28)+w|0,O+=(_^w^E)+v[4]+1272893353|0,O=(O<<11|O>>>21)+_|0,E+=(O^_^w)+v[7]-155497632|0,E=(E<<16|E>>>16)+O|0,w+=(E^O^_)+v[10]-1094730640|0,w=(w<<23|w>>>9)+E|0,_+=(w^E^O)+v[13]+681279174|0,_=(_<<4|_>>>28)+w|0,O+=(_^w^E)+v[0]-358537222|0,O=(O<<11|O>>>21)+_|0,E+=(O^_^w)+v[3]-722521979|0,E=(E<<16|E>>>16)+O|0,w+=(E^O^_)+v[6]+76029189|0,w=(w<<23|w>>>9)+E|0,_+=(w^E^O)+v[9]-640364487|0,_=(_<<4|_>>>28)+w|0,O+=(_^w^E)+v[12]-421815835|0,O=(O<<11|O>>>21)+_|0,E+=(O^_^w)+v[15]+530742520|0,E=(E<<16|E>>>16)+O|0,w+=(E^O^_)+v[2]-995338651|0,w=(w<<23|w>>>9)+E|0,_+=(E^(w|~O))+v[0]-198630844|0,_=(_<<6|_>>>26)+w|0,O+=(w^(_|~E))+v[7]+1126891415|0,O=(O<<10|O>>>22)+_|0,E+=(_^(O|~w))+v[14]-1416354905|0,E=(E<<15|E>>>17)+O|0,w+=(O^(E|~_))+v[5]-57434055|0,w=(w<<21|w>>>11)+E|0,_+=(E^(w|~O))+v[12]+1700485571|0,_=(_<<6|_>>>26)+w|0,O+=(w^(_|~E))+v[3]-1894986606|0,O=(O<<10|O>>>22)+_|0,E+=(_^(O|~w))+v[10]-1051523|0,E=(E<<15|E>>>17)+O|0,w+=(O^(E|~_))+v[1]-2054922799|0,w=(w<<21|w>>>11)+E|0,_+=(E^(w|~O))+v[8]+1873313359|0,_=(_<<6|_>>>26)+w|0,O+=(w^(_|~E))+v[15]-30611744|0,O=(O<<10|O>>>22)+_|0,E+=(_^(O|~w))+v[6]-1560198380|0,E=(E<<15|E>>>17)+O|0,w+=(O^(E|~_))+v[13]+1309151649|0,w=(w<<21|w>>>11)+E|0,_+=(E^(w|~O))+v[4]-145523070|0,_=(_<<6|_>>>26)+w|0,O+=(w^(_|~E))+v[11]-1120210379|0,O=(O<<10|O>>>22)+_|0,E+=(_^(O|~w))+v[2]+718787259|0,E=(E<<15|E>>>17)+O|0,w+=(O^(E|~_))+v[9]-343485551|0,w=(w<<21|w>>>11)+E|0,b[0]=_+b[0]|0,b[1]=w+b[1]|0,b[2]=E+b[2]|0,b[3]=O+b[3]|0}function s(b){var v=[],_;for(_=0;_<64;_+=4)v[_>>2]=b.charCodeAt(_)+(b.charCodeAt(_+1)<<8)+(b.charCodeAt(_+2)<<16)+(b.charCodeAt(_+3)<<24);return v}function o(b){var v=[],_;for(_=0;_<64;_+=4)v[_>>2]=b[_]+(b[_+1]<<8)+(b[_+2]<<16)+(b[_+3]<<24);return v}function u(b){var v=b.length,_=[1732584193,-271733879,-1732584194,271733878],w,E,O,L,F,x;for(w=64;w<=v;w+=64)a(_,s(b.substring(w-64,w)));for(b=b.substring(w-64),E=b.length,O=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],w=0;w>2]|=b.charCodeAt(w)<<(w%4<<3);if(O[w>>2]|=128<<(w%4<<3),w>55)for(a(_,O),w=0;w<16;w+=1)O[w]=0;return L=v*8,L=L.toString(16).match(/(.*?)(.{0,8})$/),F=parseInt(L[2],16),x=parseInt(L[1],16)||0,O[14]=F,O[15]=x,a(_,O),_}function c(b){var v=b.length,_=[1732584193,-271733879,-1732584194,271733878],w,E,O,L,F,x;for(w=64;w<=v;w+=64)a(_,o(b.subarray(w-64,w)));for(b=w-64>2]|=b[w]<<(w%4<<3);if(O[w>>2]|=128<<(w%4<<3),w>55)for(a(_,O),w=0;w<16;w+=1)O[w]=0;return L=v*8,L=L.toString(16).match(/(.*?)(.{0,8})$/),F=parseInt(L[2],16),x=parseInt(L[1],16)||0,O[14]=F,O[15]=x,a(_,O),_}function l(b){var v="",_;for(_=0;_<4;_+=1)v+=n[b>>_*8+4&15]+n[b>>_*8&15];return v}function d(b){var v;for(v=0;vO?new ArrayBuffer(0):(L=O-E,F=new ArrayBuffer(L),x=new Uint8Array(F),P=new Uint8Array(this,E,L),x.set(P),F)}}();function f(b){return/[\u0080-\uFFFF]/.test(b)&&(b=unescape(encodeURIComponent(b))),b}function h(b,v){var _=b.length,w=new ArrayBuffer(_),E=new Uint8Array(w),O;for(O=0;O<_;O+=1)E[O]=b.charCodeAt(O);return v?E:w}function p(b){return String.fromCharCode.apply(null,new Uint8Array(b))}function m(b,v,_){var w=new Uint8Array(b.byteLength+v.byteLength);return w.set(new Uint8Array(b)),w.set(new Uint8Array(v),b.byteLength),_?w:w.buffer}function y(b){var v=[],_=b.length,w;for(w=0;w<_-1;w+=2)v.push(parseInt(b.substr(w,2),16));return String.fromCharCode.apply(String,v)}function g(){this.reset()}return g.prototype.append=function(b){return this.appendBinary(f(b)),this},g.prototype.appendBinary=function(b){this._buff+=b,this._length+=b.length;var v=this._buff.length,_;for(_=64;_<=v;_+=64)a(this._hash,s(this._buff.substring(_-64,_)));return this._buff=this._buff.substring(_-64),this},g.prototype.end=function(b){var v=this._buff,_=v.length,w,E=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],O;for(w=0;w<_;w+=1)E[w>>2]|=v.charCodeAt(w)<<(w%4<<3);return this._finish(E,_),O=d(this._hash),b&&(O=y(O)),this.reset(),O},g.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},g.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},g.prototype.setState=function(b){return this._buff=b.buff,this._length=b.length,this._hash=b.hash,this},g.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},g.prototype._finish=function(b,v){var _=v,w,E,O;if(b[_>>2]|=128<<(_%4<<3),_>55)for(a(this._hash,b),_=0;_<16;_+=1)b[_]=0;w=this._length*8,w=w.toString(16).match(/(.*?)(.{0,8})$/),E=parseInt(w[2],16),O=parseInt(w[1],16)||0,b[14]=E,b[15]=O,a(this._hash,b)},g.hash=function(b,v){return g.hashBinary(f(b),v)},g.hashBinary=function(b,v){var _=u(b),w=d(_);return v?y(w):w},g.ArrayBuffer=function(){this.reset()},g.ArrayBuffer.prototype.append=function(b){var v=m(this._buff.buffer,b,!0),_=v.length,w;for(this._length+=b.byteLength,w=64;w<=_;w+=64)a(this._hash,o(v.subarray(w-64,w)));return this._buff=w-64<_?new Uint8Array(v.buffer.slice(w-64)):new Uint8Array(0),this},g.ArrayBuffer.prototype.end=function(b){var v=this._buff,_=v.length,w=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],E,O;for(E=0;E<_;E+=1)w[E>>2]|=v[E]<<(E%4<<3);return this._finish(w,_),O=d(this._hash),b&&(O=y(O)),this.reset(),O},g.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},g.ArrayBuffer.prototype.getState=function(){var b=g.prototype.getState.call(this);return b.buff=p(b.buff),b},g.ArrayBuffer.prototype.setState=function(b){return b.buff=h(b.buff,!0),g.prototype.setState.call(this,b)},g.ArrayBuffer.prototype.destroy=g.prototype.destroy,g.ArrayBuffer.prototype._finish=g.prototype._finish,g.ArrayBuffer.hash=function(b,v){var _=c(new Uint8Array(b)),w=d(_);return v?y(w):w},g})}(kx)),kx.exports}var Vx={},tg={},fw={},xV;function pte(){if(xV)return fw;xV=1,Object.defineProperty(fw,"__esModule",{value:!0}),fw.default=r;let t;const e=new Uint8Array(16);function r(){if(!t&&(t=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!t))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return t(e)}return fw}var Vl={},rg={},ng={},IV;function h6e(){if(IV)return ng;IV=1,Object.defineProperty(ng,"__esModule",{value:!0}),ng.default=void 0;var t=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;return ng.default=t,ng}var PV;function GT(){if(PV)return rg;PV=1,Object.defineProperty(rg,"__esModule",{value:!0}),rg.default=void 0;var t=e(h6e());function e(a){return a&&a.__esModule?a:{default:a}}function r(a){return typeof a=="string"&&t.default.test(a)}var n=r;return rg.default=n,rg}var NV;function WT(){if(NV)return Vl;NV=1,Object.defineProperty(Vl,"__esModule",{value:!0}),Vl.default=void 0,Vl.unsafeStringify=n;var t=e(GT());function e(o){return o&&o.__esModule?o:{default:o}}const r=[];for(let o=0;o<256;++o)r.push((o+256).toString(16).slice(1));function n(o,u=0){return r[o[u+0]]+r[o[u+1]]+r[o[u+2]]+r[o[u+3]]+"-"+r[o[u+4]]+r[o[u+5]]+"-"+r[o[u+6]]+r[o[u+7]]+"-"+r[o[u+8]]+r[o[u+9]]+"-"+r[o[u+10]]+r[o[u+11]]+r[o[u+12]]+r[o[u+13]]+r[o[u+14]]+r[o[u+15]]}function a(o,u=0){const c=n(o,u);if(!(0,t.default)(c))throw TypeError("Stringified UUID is invalid");return c}var s=a;return Vl.default=s,Vl}var DV;function p6e(){if(DV)return tg;DV=1,Object.defineProperty(tg,"__esModule",{value:!0}),tg.default=void 0;var t=r(pte()),e=WT();function r(l){return l&&l.__esModule?l:{default:l}}let n,a,s=0,o=0;function u(l,d,f){let h=d&&f||0;const p=d||new Array(16);l=l||{};let m=l.node||n,y=l.clockseq!==void 0?l.clockseq:a;if(m==null||y==null){const E=l.random||(l.rng||t.default)();m==null&&(m=n=[E[0]|1,E[1],E[2],E[3],E[4],E[5]]),y==null&&(y=a=(E[6]<<8|E[7])&16383)}let g=l.msecs!==void 0?l.msecs:Date.now(),b=l.nsecs!==void 0?l.nsecs:o+1;const v=g-s+(b-o)/1e4;if(v<0&&l.clockseq===void 0&&(y=y+1&16383),(v<0||g>s)&&l.nsecs===void 0&&(b=0),b>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=g,o=b,a=y,g+=122192928e5;const _=((g&268435455)*1e4+b)%4294967296;p[h++]=_>>>24&255,p[h++]=_>>>16&255,p[h++]=_>>>8&255,p[h++]=_&255;const w=g/4294967296*1e4&268435455;p[h++]=w>>>8&255,p[h++]=w&255,p[h++]=w>>>24&15|16,p[h++]=w>>>16&255,p[h++]=y>>>8|128,p[h++]=y&255;for(let E=0;E<6;++E)p[h+E]=m[E];return d||(0,e.unsafeStringify)(p)}var c=u;return tg.default=c,tg}var ig={},Bo={},ag={},CV;function yte(){if(CV)return ag;CV=1,Object.defineProperty(ag,"__esModule",{value:!0}),ag.default=void 0;var t=e(GT());function e(a){return a&&a.__esModule?a:{default:a}}function r(a){if(!(0,t.default)(a))throw TypeError("Invalid UUID");let s;const o=new Uint8Array(16);return o[0]=(s=parseInt(a.slice(0,8),16))>>>24,o[1]=s>>>16&255,o[2]=s>>>8&255,o[3]=s&255,o[4]=(s=parseInt(a.slice(9,13),16))>>>8,o[5]=s&255,o[6]=(s=parseInt(a.slice(14,18),16))>>>8,o[7]=s&255,o[8]=(s=parseInt(a.slice(19,23),16))>>>8,o[9]=s&255,o[10]=(s=parseInt(a.slice(24,36),16))/1099511627776&255,o[11]=s/4294967296&255,o[12]=s>>>24&255,o[13]=s>>>16&255,o[14]=s>>>8&255,o[15]=s&255,o}var n=r;return ag.default=n,ag}var LV;function mte(){if(LV)return Bo;LV=1,Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.URL=Bo.DNS=void 0,Bo.default=o;var t=WT(),e=r(yte());function r(u){return u&&u.__esModule?u:{default:u}}function n(u){u=unescape(encodeURIComponent(u));const c=[];for(let l=0;l>5]>>>b%32&255,_=parseInt(g.charAt(v>>>4&15)+g.charAt(v&15),16);m.push(_)}return m}function r(p){return(p+64>>>9<<4)+14+1}function n(p,m){p[m>>5]|=128<>5]|=(p[g/8]&255)<>16)+(m>>16)+(y>>16)<<16|y&65535}function o(p,m){return p<>>32-m}function u(p,m,y,g,b,v){return s(o(s(s(m,p),s(g,v)),b),y)}function c(p,m,y,g,b,v,_){return u(m&y|~m&g,p,m,b,v,_)}function l(p,m,y,g,b,v,_){return u(m&g|y&~g,p,m,b,v,_)}function d(p,m,y,g,b,v,_){return u(m^y^g,p,m,b,v,_)}function f(p,m,y,g,b,v,_){return u(y^(m|~g),p,m,b,v,_)}var h=t;return sg.default=h,sg}var MV;function m6e(){if(MV)return ig;MV=1,Object.defineProperty(ig,"__esModule",{value:!0}),ig.default=void 0;var t=r(mte()),e=r(y6e());function r(s){return s&&s.__esModule?s:{default:s}}var a=(0,t.default)("v3",48,e.default);return ig.default=a,ig}var og={},ug={},FV;function g6e(){if(FV)return ug;FV=1,Object.defineProperty(ug,"__esModule",{value:!0}),ug.default=void 0;var e={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return ug.default=e,ug}var BV;function _6e(){if(BV)return og;BV=1,Object.defineProperty(og,"__esModule",{value:!0}),og.default=void 0;var t=n(g6e()),e=n(pte()),r=WT();function n(o){return o&&o.__esModule?o:{default:o}}function a(o,u,c){if(t.default.randomUUID&&!u&&!o)return t.default.randomUUID();o=o||{};const l=o.random||(o.rng||e.default)();if(l[6]=l[6]&15|64,l[8]=l[8]&63|128,u){c=c||0;for(let d=0;d<16;++d)u[c+d]=l[d];return u}return(0,r.unsafeStringify)(l)}var s=a;return og.default=s,og}var cg={},lg={},qV;function b6e(){if(qV)return lg;qV=1,Object.defineProperty(lg,"__esModule",{value:!0}),lg.default=void 0;function t(a,s,o,u){switch(a){case 0:return s&o^~s&u;case 1:return s^o^u;case 2:return s&o^s&u^o&u;case 3:return s^o^u}}function e(a,s){return a<>>32-s}function r(a){const s=[1518500249,1859775393,2400959708,3395469782],o=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof a=="string"){const d=unescape(encodeURIComponent(a));a=[];for(let f=0;f>>0;g=y,y=m,m=e(p,30)>>>0,p=h,h=_}o[0]=o[0]+h>>>0,o[1]=o[1]+p>>>0,o[2]=o[2]+m>>>0,o[3]=o[3]+y>>>0,o[4]=o[4]+g>>>0}return[o[0]>>24&255,o[0]>>16&255,o[0]>>8&255,o[0]&255,o[1]>>24&255,o[1]>>16&255,o[1]>>8&255,o[1]&255,o[2]>>24&255,o[2]>>16&255,o[2]>>8&255,o[2]&255,o[3]>>24&255,o[3]>>16&255,o[3]>>8&255,o[3]&255,o[4]>>24&255,o[4]>>16&255,o[4]>>8&255,o[4]&255]}var n=r;return lg.default=n,lg}var $V;function v6e(){if($V)return cg;$V=1,Object.defineProperty(cg,"__esModule",{value:!0}),cg.default=void 0;var t=r(mte()),e=r(b6e());function r(s){return s&&s.__esModule?s:{default:s}}var a=(0,t.default)("v5",80,e.default);return cg.default=a,cg}var dg={},UV;function w6e(){if(UV)return dg;UV=1,Object.defineProperty(dg,"__esModule",{value:!0}),dg.default=void 0;var t="00000000-0000-0000-0000-000000000000";return dg.default=t,dg}var fg={},kV;function S6e(){if(kV)return fg;kV=1,Object.defineProperty(fg,"__esModule",{value:!0}),fg.default=void 0;var t=e(GT());function e(a){return a&&a.__esModule?a:{default:a}}function r(a){if(!(0,t.default)(a))throw TypeError("Invalid UUID");return parseInt(a.slice(14,15),16)}var n=r;return fg.default=n,fg}var VV;function gte(){return VV||(VV=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return o.default}});var e=d(p6e()),r=d(m6e()),n=d(_6e()),a=d(v6e()),s=d(w6e()),o=d(S6e()),u=d(GT()),c=d(WT()),l=d(yte());function d(f){return f&&f.__esModule?f:{default:f}}}(Vx)),Vx}var hg={},HV;function KT(){if(HV)return hg;HV=1,Object.defineProperty(hg,"__esModule",{value:!0}),hg.orderTypes=void 0;const t=ju(),e=$f(),r=vl(),n=oi(),a=Rn();function s(l,d,f=!1,h,p){if(l===d)return 0;if(l===void 0)return-1;if(d===void 0)return 1;if(l.termType!==d.termType)return c[l.termType]"term"),cache:h??new t.LRUCache({max:1e3})},defaultTimeZone:{zoneHours:0,zoneMinutes:0}},g=new r.TermTransformer(y.superTypeProvider),b=g.transformLiteral(l),v=g.transformLiteral(d);try{return m.apply([b,v],y).typedValue?0:p.apply([b,v],y).typedValue?1:-1}catch{const _=u(b.dataType,v.dataType);return _!==0?_:u(b.str(),v.str())}}function u(l,d){return l===d?0:lS=>(0,y.bool)(!S.coerceEBV())).collect()},w={arity:1,overloads:(0,y.declare)(c.RegularOperator.UPLUS).numericConverter(()=>S=>S).collect()},E={arity:1,overloads:(0,y.declare)(c.RegularOperator.UMINUS).numericConverter(()=>S=>-S).collect()},O={arity:2,overloads:(0,y.declare)(c.RegularOperator.MULTIPLICATION).arithmetic(()=>(S,A)=>new t.BigNumber(S).times(A).toNumber()).collect()},L={arity:2,overloads:(0,y.declare)(c.RegularOperator.DIVISION).arithmetic(()=>(S,A)=>new t.BigNumber(S).div(A).toNumber()).onBinaryTyped([l.TypeURL.XSD_INTEGER,l.TypeURL.XSD_INTEGER],()=>(S,A)=>{if(A===0)throw new f.ExpressionError("Integer division by 0");return(0,y.decimal)(new t.BigNumber(S).div(A).toNumber())}).collect()},F={arity:2,overloads:(0,y.declare)(c.RegularOperator.ADDITION).arithmetic(()=>(S,A)=>new t.BigNumber(S).plus(A).toNumber()).set([l.TypeURL.XSD_DATE_TIME,l.TypeURL.XSD_DAY_TIME_DURATION],()=>([S,A])=>new o.DateTimeLiteral((0,p.addDurationToDateTime)(S.typedValue,(0,d.defaultedDurationRepresentation)(A.typedValue)))).copy({from:[l.TypeURL.XSD_DATE_TIME,l.TypeURL.XSD_DAY_TIME_DURATION],to:[l.TypeURL.XSD_DATE_TIME,l.TypeURL.XSD_YEAR_MONTH_DURATION]}).set([l.TypeURL.XSD_DATE,l.TypeURL.XSD_DAY_TIME_DURATION],()=>([S,A])=>new o.DateLiteral((0,p.addDurationToDateTime)((0,d.defaultedDateTimeRepresentation)(S.typedValue),(0,d.defaultedDurationRepresentation)(A.typedValue)))).copy({from:[l.TypeURL.XSD_DATE,l.TypeURL.XSD_DAY_TIME_DURATION],to:[l.TypeURL.XSD_DATE,l.TypeURL.XSD_YEAR_MONTH_DURATION]}).set([l.TypeURL.XSD_TIME,l.TypeURL.XSD_DAY_TIME_DURATION],()=>([S,A])=>new o.TimeLiteral((0,p.addDurationToDateTime)((0,d.defaultedDateTimeRepresentation)(S.typedValue),(0,d.defaultedDurationRepresentation)(A.typedValue)))).copy({from:[l.TypeURL.XSD_TIME,l.TypeURL.XSD_DAY_TIME_DURATION],to:[l.TypeURL.XSD_TIME,l.TypeURL.XSD_YEAR_MONTH_DURATION]}).collect()},x={arity:2,overloads:(0,y.declare)(c.RegularOperator.SUBTRACTION).arithmetic(()=>(S,A)=>new t.BigNumber(S).minus(A).toNumber()).set([l.TypeURL.XSD_DATE_TIME,l.TypeURL.XSD_DATE_TIME],({defaultTimeZone:S})=>([A,C])=>new o.DayTimeDurationLiteral((0,p.elapsedDuration)(A.typedValue,C.typedValue,S))).copy({from:[l.TypeURL.XSD_DATE_TIME,l.TypeURL.XSD_DATE_TIME],to:[l.TypeURL.XSD_DATE,l.TypeURL.XSD_DATE]}).copy({from:[l.TypeURL.XSD_DATE_TIME,l.TypeURL.XSD_DATE_TIME],to:[l.TypeURL.XSD_TIME,l.TypeURL.XSD_TIME]}).set([l.TypeURL.XSD_DATE_TIME,l.TypeURL.XSD_DAY_TIME_DURATION],()=>([S,A])=>new o.DateTimeLiteral((0,p.addDurationToDateTime)(S.typedValue,(0,d.defaultedDurationRepresentation)((0,d.negateDuration)(A.typedValue))))).copy({from:[l.TypeURL.XSD_DATE_TIME,l.TypeURL.XSD_DAY_TIME_DURATION],to:[l.TypeURL.XSD_DATE_TIME,l.TypeURL.XSD_YEAR_MONTH_DURATION]}).set([l.TypeURL.XSD_DATE,l.TypeURL.XSD_DAY_TIME_DURATION],()=>([S,A])=>new o.DateLiteral((0,p.addDurationToDateTime)((0,d.defaultedDateTimeRepresentation)(S.typedValue),(0,d.defaultedDurationRepresentation)((0,d.negateDuration)(A.typedValue))))).copy({from:[l.TypeURL.XSD_DATE,l.TypeURL.XSD_DAY_TIME_DURATION],to:[l.TypeURL.XSD_DATE,l.TypeURL.XSD_YEAR_MONTH_DURATION]}).set([l.TypeURL.XSD_TIME,l.TypeURL.XSD_DAY_TIME_DURATION],()=>([S,A])=>new o.TimeLiteral((0,p.addDurationToDateTime)((0,d.defaultedDateTimeRepresentation)(S.typedValue),(0,d.defaultedDurationRepresentation)((0,d.negateDuration)(A.typedValue))))).collect()},P={arity:2,overloads:(0,y.declare)(c.RegularOperator.EQUAL).numberTest(()=>(S,A)=>S===A).stringTest(()=>(S,A)=>S.localeCompare(A)===0).set([l.TypeURL.RDF_LANG_STRING,l.TypeURL.RDF_LANG_STRING],()=>([S,A])=>(0,y.bool)(S.str()===A.str()&&S.language===A.language)).set([l.TypeAlias.SPARQL_STRINGLY,l.TypeAlias.SPARQL_STRINGLY],()=>()=>(0,y.bool)(!1)).booleanTest(()=>(S,A)=>S===A).dateTimeTest(({defaultTimeZone:S})=>(A,C)=>(0,d.toUTCDate)(A,S).getTime()===(0,d.toUTCDate)(C,S).getTime()).copy({from:[l.TypeURL.XSD_DATE_TIME,l.TypeURL.XSD_DATE_TIME],to:[l.TypeURL.XSD_DATE,l.TypeURL.XSD_DATE]}).set(["quad","quad"],S=>([A,C])=>{const J=new m.RegularFunction(l.RegularOperator.EQUAL,P);return(0,y.bool)(J.apply([A.subject,C.subject],S).coerceEBV()&&J.apply([A.predicate,C.predicate],S).coerceEBV()&&J.apply([A.object,C.object],S).coerceEBV())},!1).set(["term","term"],()=>([S,A])=>(0,y.bool)(j(S,A)),!1).set([l.TypeURL.XSD_DURATION,l.TypeURL.XSD_DURATION],()=>([S,A])=>(0,y.bool)((0,d.yearMonthDurationsToMonths)((0,d.defaultedYearMonthDurationRepresentation)(S.typedValue))===(0,d.yearMonthDurationsToMonths)((0,d.defaultedYearMonthDurationRepresentation)(A.typedValue))&&(0,d.dayTimeDurationsToSeconds)((0,d.defaultedDayTimeDurationRepresentation)(S.typedValue))===(0,d.dayTimeDurationsToSeconds)((0,d.defaultedDayTimeDurationRepresentation)(A.typedValue)))).set([l.TypeURL.XSD_TIME,l.TypeURL.XSD_TIME],({defaultTimeZone:S})=>([A,C])=>(0,y.bool)((0,d.toUTCDate)((0,d.defaultedDateTimeRepresentation)(A.typedValue),S).getTime()===(0,d.toUTCDate)((0,d.defaultedDateTimeRepresentation)(C.typedValue),S).getTime())).collect()};function j(S,A){const C=S.toRDF(),J=A.toRDF(),ie=C.equals(J);if(!ie&&C.termType==="Literal"&&J.termType==="Literal")throw new f.RDFEqualTypeError([S,A]);return ie}const N={arity:2,overloads:(0,y.declare)(c.RegularOperator.NOT_EQUAL).set(["term","term"],S=>([A,C])=>(0,y.bool)(!b.regularFunctions[c.RegularOperator.EQUAL].apply([A,C],S).typedValue)).collect()},V={arity:2,overloads:(0,y.declare)(c.RegularOperator.LT).numberTest(()=>(S,A)=>S(S,A)=>S.localeCompare(A)===-1).booleanTest(()=>(S,A)=>S([S,A])=>(0,y.bool)((0,h.orderTypes)(S.toRDF(),A.toRDF(),!0)===-1),!1).dateTimeTest(({defaultTimeZone:S})=>(A,C)=>(0,d.toUTCDate)(A,S).getTime()<(0,d.toUTCDate)(C,S).getTime()).copy({from:[l.TypeURL.XSD_DATE_TIME,l.TypeURL.XSD_DATE_TIME],to:[l.TypeURL.XSD_DATE,l.TypeURL.XSD_DATE]}).set([l.TypeURL.XSD_YEAR_MONTH_DURATION,l.TypeURL.XSD_YEAR_MONTH_DURATION],()=>([S,A])=>(0,y.bool)((0,d.yearMonthDurationsToMonths)((0,d.defaultedYearMonthDurationRepresentation)(S.typedValue))<(0,d.yearMonthDurationsToMonths)((0,d.defaultedYearMonthDurationRepresentation)(A.typedValue)))).set([l.TypeURL.XSD_DAY_TIME_DURATION,l.TypeURL.XSD_DAY_TIME_DURATION],()=>([S,A])=>(0,y.bool)((0,d.dayTimeDurationsToSeconds)((0,d.defaultedDayTimeDurationRepresentation)(S.typedValue))<(0,d.dayTimeDurationsToSeconds)((0,d.defaultedDayTimeDurationRepresentation)(A.typedValue)))).set([l.TypeURL.XSD_TIME,l.TypeURL.XSD_TIME],({defaultTimeZone:S})=>([A,C])=>(0,y.bool)((0,d.toUTCDate)((0,d.defaultedDateTimeRepresentation)(A.typedValue),S).getTime()<(0,d.toUTCDate)((0,d.defaultedDateTimeRepresentation)(C.typedValue),S).getTime())).collect()},$={arity:2,overloads:(0,y.declare)(c.RegularOperator.GT).set(["term","term"],S=>([A,C])=>b.regularFunctions[c.RegularOperator.LT].apply([C,A],S)).collect()},q={arity:2,overloads:(0,y.declare)(c.RegularOperator.LTE).set(["term","term"],S=>([A,C])=>(0,y.bool)(b.regularFunctions[c.RegularOperator.LT].apply([A,C],S).typedValue||b.regularFunctions[c.RegularOperator.EQUAL].apply([A,C],S).typedValue)).collect()},H={arity:2,overloads:(0,y.declare)(c.RegularOperator.GTE).set(["term","term"],S=>([A,C])=>b.regularFunctions[c.RegularOperator.LTE].apply([C,A],S)).collect()},X={arity:1,overloads:(0,y.declare)(c.RegularOperator.IS_IRI).onTerm1(()=>S=>(0,y.bool)(S.termType==="namedNode")).collect()},Y={arity:1,overloads:(0,y.declare)(c.RegularOperator.IS_BLANK).onTerm1(()=>S=>(0,y.bool)(S.termType==="blankNode")).collect()},he={arity:1,overloads:(0,y.declare)(c.RegularOperator.IS_LITERAL).onTerm1(()=>S=>(0,y.bool)(S.termType==="literal")).collect()},Te={arity:1,overloads:(0,y.declare)(c.RegularOperator.IS_NUMERIC).onNumeric1(()=>()=>(0,y.bool)(!0)).onTerm1(()=>()=>(0,y.bool)(!1)).collect()},Ne={arity:1,overloads:(0,y.declare)(c.RegularOperator.STR).onTerm1(()=>S=>(0,y.string)(S.str())).collect()},$e={arity:1,overloads:(0,y.declare)(c.RegularOperator.LANG).onLiteral1(()=>S=>(0,y.string)(S.language??"")).collect()},de={arity:1,overloads:(0,y.declare)(c.RegularOperator.DATATYPE).onLiteral1(()=>S=>new o.NamedNode(S.dataType)).collect()},ce={arity:1,overloads:(0,y.declare)(c.RegularOperator.IRI).set(["namedNode"],S=>A=>{const C=A[0],J=(0,n.resolve)(C.str(),S.baseIRI??"");return new o.NamedNode(J)}).onString1(S=>A=>{const C=(0,n.resolve)(A.str(),S.baseIRI??"");return new o.NamedNode(C)}).collect()},xe={arity:2,overloads:(0,y.declare)(c.RegularOperator.STRDT).set([l.TypeURL.XSD_STRING,"namedNode"],({superTypeProvider:S})=>([A,C])=>{const J=v.literal(A.typedValue,v.namedNode(C.value));return new u.TermTransformer(S).transformLiteral(J)}).collect()},Pe={arity:2,overloads:(0,y.declare)(c.RegularOperator.STRLANG).onBinaryTyped([l.TypeURL.XSD_STRING,l.TypeURL.XSD_STRING],()=>(S,A)=>new o.LangStringLiteral(S,A.toLowerCase())).collect()},we={arity:0,overloads:(0,y.declare)(c.RegularOperator.UUID).set([],()=>()=>new o.NamedNode(`urn:uuid:${s.v4()}`)).collect()},Re={arity:0,overloads:(0,y.declare)(c.RegularOperator.STRUUID).set([],()=>()=>(0,y.string)(s.v4())).collect()},Se={arity:1,overloads:(0,y.declare)(c.RegularOperator.STRLEN).onStringly1(()=>S=>(0,y.integer)([...S.typedValue].length)).collect()},z={arity:[2,3],overloads:(0,y.declare)(c.RegularOperator.SUBSTR).onBinaryTyped([l.TypeURL.XSD_STRING,l.TypeURL.XSD_INTEGER],()=>(S,A)=>(0,y.string)([...S].slice(A-1).join(""))).onBinary([l.TypeURL.RDF_LANG_STRING,l.TypeURL.XSD_INTEGER],()=>(S,A)=>{const C=[...S.typedValue].slice(A.typedValue-1).join("");return(0,y.langString)(C,S.language)}).onTernaryTyped([l.TypeURL.XSD_STRING,l.TypeURL.XSD_INTEGER,l.TypeURL.XSD_INTEGER],()=>(S,A,C)=>(0,y.string)([...S].slice(A-1,C+A-1).join(""))).onTernary([l.TypeURL.RDF_LANG_STRING,l.TypeURL.XSD_INTEGER,l.TypeURL.XSD_INTEGER],()=>(S,A,C)=>{const J=[...S.typedValue].slice(A.typedValue-1,C.typedValue+A.typedValue-1).join("");return(0,y.langString)(J,S.language)}).collect()},M={arity:1,overloads:(0,y.declare)(c.RegularOperator.UCASE).onString1Typed(()=>S=>(0,y.string)(S.toUpperCase())).onLangString1(()=>S=>(0,y.langString)(S.typedValue.toUpperCase(),S.language)).collect()},k={arity:1,overloads:(0,y.declare)(c.RegularOperator.LCASE).onString1Typed(()=>S=>(0,y.string)(S.toLowerCase())).onLangString1(()=>S=>(0,y.langString)(S.typedValue.toLowerCase(),S.language)).collect()},T={arity:2,overloads:(0,y.declare)(c.RegularOperator.STRSTARTS).onBinaryTyped([l.TypeAlias.SPARQL_STRINGLY,l.TypeURL.XSD_STRING],()=>(S,A)=>(0,y.bool)(S.startsWith(A))).onBinary([l.TypeURL.RDF_LANG_STRING,l.TypeURL.RDF_LANG_STRING],()=>(S,A)=>{if(S.language!==A.language)throw new f.IncompatibleLanguageOperation(S,A);return(0,y.bool)(S.typedValue.startsWith(A.typedValue))}).collect()},R={arity:2,overloads:(0,y.declare)(c.RegularOperator.STRENDS).onBinaryTyped([l.TypeAlias.SPARQL_STRINGLY,l.TypeURL.XSD_STRING],()=>(S,A)=>(0,y.bool)(S.endsWith(A))).onBinary([l.TypeURL.RDF_LANG_STRING,l.TypeURL.RDF_LANG_STRING],()=>(S,A)=>{if(S.language!==A.language)throw new f.IncompatibleLanguageOperation(S,A);return(0,y.bool)(S.typedValue.endsWith(A.typedValue))}).collect()},U={arity:2,overloads:(0,y.declare)(c.RegularOperator.CONTAINS).onBinaryTyped([l.TypeAlias.SPARQL_STRINGLY,l.TypeURL.XSD_STRING],()=>(S,A)=>(0,y.bool)(S.includes(A))).onBinary([l.TypeURL.RDF_LANG_STRING,l.TypeURL.RDF_LANG_STRING],()=>(S,A)=>{if(S.language!==A.language)throw new f.IncompatibleLanguageOperation(S,A);return(0,y.bool)(S.typedValue.includes(A.typedValue))}).collect()},G={arity:2,overloads:(0,y.declare)(c.RegularOperator.STRBEFORE).onBinaryTyped([l.TypeURL.XSD_STRING,l.TypeURL.XSD_STRING],()=>(S,A)=>(0,y.string)(S.slice(0,Math.max(0,S.indexOf(A))))).onBinary([l.TypeURL.RDF_LANG_STRING,l.TypeURL.XSD_STRING],()=>(S,A)=>{const[C,J]=[S.typedValue,A.typedValue],ie=S.typedValue.slice(0,Math.max(0,C.indexOf(J)));return ie||!J?(0,y.langString)(ie,S.language):(0,y.string)(ie)}).onBinary([l.TypeURL.RDF_LANG_STRING,l.TypeURL.RDF_LANG_STRING],()=>(S,A)=>{if(S.language!==A.language)throw new f.IncompatibleLanguageOperation(S,A);const[C,J]=[S.typedValue,A.typedValue],ie=S.typedValue.slice(0,Math.max(0,C.indexOf(J)));return ie||!J?(0,y.langString)(ie,S.language):(0,y.string)(ie)}).collect()},Q={arity:2,overloads:(0,y.declare)(c.RegularOperator.STRAFTER).onBinaryTyped([l.TypeURL.XSD_STRING,l.TypeURL.XSD_STRING],()=>(S,A)=>(0,y.string)(S.slice(S.indexOf(A)).slice(A.length))).onBinary([l.TypeURL.RDF_LANG_STRING,l.TypeURL.XSD_STRING],()=>(S,A)=>{const[C,J]=[S.typedValue,A.typedValue],ie=C.slice(C.indexOf(J)).slice(J.length);return ie||!J?(0,y.langString)(ie,S.language):(0,y.string)(ie)}).onBinary([l.TypeURL.RDF_LANG_STRING,l.TypeURL.RDF_LANG_STRING],()=>(S,A)=>{if(S.language!==A.language)throw new f.IncompatibleLanguageOperation(S,A);const[C,J]=[S.typedValue,A.typedValue],ie=C.slice(C.indexOf(J)).slice(J.length);return ie||!J?(0,y.langString)(ie,S.language):(0,y.string)(ie)}).collect()},Z={arity:1,overloads:(0,y.declare)(c.RegularOperator.ENCODE_FOR_URI).onStringly1Typed(()=>S=>(0,y.string)(encodeURI(S))).collect()},se={arity:2,overloads:(0,y.declare)(c.RegularOperator.LANG_MATCHES).onBinaryTyped([l.TypeURL.XSD_STRING,l.TypeURL.XSD_STRING],()=>(S,A)=>(0,y.bool)(g.langMatches(S,A))).collect()};function re(){return(S,A)=>(0,y.bool)(g.matches(S,A))}function le(){return(S,A,C)=>(0,y.bool)(g.matches(S,A,C))}const pe={arity:[2,3],overloads:(0,y.declare)(c.RegularOperator.REGEX).onBinaryTyped([l.TypeAlias.SPARQL_STRINGLY,l.TypeURL.XSD_STRING],re).onTernaryTyped([l.TypeAlias.SPARQL_STRINGLY,l.TypeURL.XSD_STRING,l.TypeURL.XSD_STRING],le).collect()},_e={arity:[3,4],overloads:(0,y.declare)(c.RegularOperator.REPLACE).onTernaryTyped([l.TypeURL.XSD_STRING,l.TypeURL.XSD_STRING,l.TypeURL.XSD_STRING],()=>(S,A,C)=>(0,y.string)(g.replace(S,A,C))).set([l.TypeURL.RDF_LANG_STRING,l.TypeURL.XSD_STRING,l.TypeURL.XSD_STRING],()=>([S,A,C])=>{const J=g.replace(S.typedValue,A.typedValue,C.typedValue);return(0,y.langString)(J,S.language)}).onQuaternaryTyped([l.TypeURL.XSD_STRING,l.TypeURL.XSD_STRING,l.TypeURL.XSD_STRING,l.TypeURL.XSD_STRING],()=>(S,A,C,J)=>(0,y.string)(g.replace(S,A,C,J))).set([l.TypeURL.RDF_LANG_STRING,l.TypeURL.XSD_STRING,l.TypeURL.XSD_STRING,l.TypeURL.XSD_STRING],()=>([S,A,C,J])=>{const ie=g.replace(S.typedValue,A.typedValue,C.typedValue,J.typedValue);return(0,y.langString)(ie,S.language)}).collect()},Ie={arity:1,overloads:(0,y.declare)(c.RegularOperator.ABS).numericConverter(()=>S=>Math.abs(S)).collect()},Ee={arity:1,overloads:(0,y.declare)(c.RegularOperator.ROUND).numericConverter(()=>S=>Math.round(S)).collect()},Me={arity:1,overloads:(0,y.declare)(c.RegularOperator.CEIL).numericConverter(()=>S=>Math.ceil(S)).collect()},Ce={arity:1,overloads:(0,y.declare)(c.RegularOperator.FLOOR).numericConverter(()=>S=>Math.floor(S)).collect()},ke={arity:0,overloads:(0,y.declare)(c.RegularOperator.RAND).set([],()=>()=>(0,y.double)(Math.random())).collect()},qe={arity:0,overloads:(0,y.declare)(c.RegularOperator.NOW).set([],S=>()=>new o.DateTimeLiteral((0,d.toDateTimeRepresentation)({date:S.now,timeZone:S.defaultTimeZone}))).collect()},W={arity:1,overloads:(0,y.declare)(c.RegularOperator.YEAR).onDateTime1(()=>S=>(0,y.integer)(S.typedValue.year)).set([l.TypeURL.XSD_DATE],()=>([S])=>(0,y.integer)(S.typedValue.year)).collect()},D={arity:1,overloads:(0,y.declare)(c.RegularOperator.MONTH).onDateTime1(()=>S=>(0,y.integer)(S.typedValue.month)).set([l.TypeURL.XSD_DATE],()=>([S])=>(0,y.integer)(S.typedValue.month)).collect()},B={arity:1,overloads:(0,y.declare)(c.RegularOperator.DAY).onDateTime1(()=>S=>(0,y.integer)(S.typedValue.day)).set([l.TypeURL.XSD_DATE],()=>([S])=>(0,y.integer)(S.typedValue.day)).collect()},K={arity:1,overloads:(0,y.declare)(c.RegularOperator.HOURS).onDateTime1(()=>S=>(0,y.integer)(S.typedValue.hours)).set([l.TypeURL.XSD_TIME],()=>([S])=>(0,y.integer)(S.typedValue.hours)).collect()},ne={arity:1,overloads:(0,y.declare)(c.RegularOperator.MINUTES).onDateTime1(()=>S=>(0,y.integer)(S.typedValue.minutes)).set([l.TypeURL.XSD_TIME],()=>([S])=>(0,y.integer)(S.typedValue.minutes)).collect()},fe={arity:1,overloads:(0,y.declare)(c.RegularOperator.SECONDS).onDateTime1(()=>S=>(0,y.decimal)(S.typedValue.seconds)).set([l.TypeURL.XSD_TIME],()=>([S])=>(0,y.integer)(S.typedValue.seconds)).collect()},ge={arity:1,overloads:(0,y.declare)(c.RegularOperator.TIMEZONE).onDateTime1(()=>S=>{const A={hours:S.typedValue.zoneHours,minutes:S.typedValue.zoneMinutes};if(A.hours===void 0&&A.minutes===void 0)throw new f.InvalidTimezoneCall(S.str());return new o.DayTimeDurationLiteral(A)}).copy({from:[l.TypeURL.XSD_DATE_TIME],to:[l.TypeURL.XSD_DATE]}).copy({from:[l.TypeURL.XSD_DATE_TIME],to:[l.TypeURL.XSD_TIME]}).collect()},Le={arity:1,overloads:(0,y.declare)(c.RegularOperator.TZ).onDateTime1(()=>S=>(0,y.string)((0,d.extractRawTimeZone)(S.str()))).copy({from:[l.TypeURL.XSD_DATE_TIME],to:[l.TypeURL.XSD_DATE]}).copy({from:[l.TypeURL.XSD_DATE_TIME],to:[l.TypeURL.XSD_TIME]}).collect()},ee={arity:1,overloads:(0,y.declare)(c.RegularOperator.MD5).onString1Typed(()=>S=>(0,y.string)((0,a.hash)(S))).collect()},Oe={arity:1,overloads:(0,y.declare)(c.RegularOperator.SHA1).onString1Typed(()=>S=>(0,y.string)((0,e.sha1)().update(S).digest("hex"))).collect()},De={arity:1,overloads:(0,y.declare)(c.RegularOperator.SHA256).onString1Typed(()=>S=>(0,y.string)((0,e.sha256)().update(S).digest("hex"))).collect()},Ue={arity:1,overloads:(0,y.declare)(c.RegularOperator.SHA384).onString1Typed(()=>S=>(0,y.string)((0,e.sha384)().update(S).digest("hex"))).collect()},Ye={arity:1,overloads:(0,y.declare)(c.RegularOperator.SHA512).onString1Typed(()=>S=>(0,y.string)((0,e.sha512)().update(S).digest("hex"))).collect()},ut={arity:3,overloads:(0,y.declare)(c.RegularOperator.TRIPLE).onTerm3(S=>(...A)=>new o.Quad(v.quad(A[0].toRDF(),A[1].toRDF(),A[2].toRDF()),S.superTypeProvider)).collect()},at={arity:1,overloads:(0,y.declare)(c.RegularOperator.SUBJECT).onQuad1(()=>S=>S.subject).collect()},ct={arity:1,overloads:(0,y.declare)(c.RegularOperator.PREDICATE).onQuad1(()=>S=>S.predicate).collect()},ht={arity:1,overloads:(0,y.declare)(c.RegularOperator.OBJECT).onQuad1(()=>S=>S.object).collect()},te={arity:1,overloads:(0,y.declare)(c.RegularOperator.IS_TRIPLE).onTerm1(()=>S=>(0,y.bool)(S.termType==="quad")).collect()};return eg.definitions={"!":_,uplus:w,uminus:E,"*":O,"/":L,"+":F,"-":x,"=":P,"!=":N,"<":V,">":$,"<=":q,">=":H,isiri:X,isuri:X,isblank:Y,isliteral:he,isnumeric:Te,str:Ne,lang:$e,datatype:de,iri:ce,uri:ce,strdt:xe,strlang:Pe,uuid:we,struuid:Re,strlen:Se,substr:z,ucase:M,lcase:k,strstarts:T,strends:R,contains:U,strbefore:G,strafter:Q,encode_for_uri:Z,langmatches:se,regex:pe,replace:_e,abs:Ie,round:Ee,ceil:Me,floor:Ce,rand:ke,now:qe,year:W,month:D,day:B,hours:K,minutes:ne,seconds:fe,timezone:ge,tz:Le,md5:ee,sha1:Oe,sha256:De,sha384:Ue,sha512:Ye,triple:ut,subject:at,predicate:ct,object:ht,istriple:te},eg}var pg={},GV;function A6e(){if(GV)return pg;GV=1,Object.defineProperty(pg,"__esModule",{value:!0}),pg.specialDefinitions=void 0;const t=gte(),e=ki(),r=oi(),n=Rn(),a=Os(),s=$f(),o={arity:1,async applyAsync({args:L,mapping:F}){return u({args:L,mapping:F})},applySynchronously({args:L,mapping:F}){return u({args:L,mapping:F})}};function u({args:L,mapping:F}){const x=L[0];if(x.expressionType!==e.ExpressionType.Variable)throw new n.InvalidArgumentTypes(L,r.SpecialOperator.BOUND);const P=F.has((0,a.expressionToVar)(x));return(0,a.bool)(P)}const c={arity:3,async applyAsync({args:L,mapping:F,evaluate:x}){const j=(await x(L[0],F)).coerceEBV();return x(j?L[1]:L[2],F)},applySynchronously({args:L,mapping:F,evaluate:x}){const j=x(L[0],F).coerceEBV();return x(j?L[1]:L[2],F)}},l={arity:Number.POSITIVE_INFINITY,async applyAsync({args:L,mapping:F,evaluate:x}){const P=[];for(const j of L)try{return await x(j,F)}catch(N){P.push(N)}throw new n.CoalesceError(P)},applySynchronously({args:L,mapping:F,evaluate:x}){const P=[];for(const j of L)try{return x(j,F)}catch(N){P.push(N)}throw new n.CoalesceError(P)}},d={arity:2,async applyAsync({args:L,mapping:F,evaluate:x}){const[P,j]=L;try{if((await x(P,F)).coerceEBV())return(0,a.bool)(!0);const q=(await x(j,F)).coerceEBV();return(0,a.bool)(q)}catch(N){if(!(await x(j,F)).coerceEBV())throw N;return(0,a.bool)(!0)}},applySynchronously({args:L,mapping:F,evaluate:x}){const[P,j]=L;try{if(x(P,F).coerceEBV())return(0,a.bool)(!0);const q=x(j,F).coerceEBV();return(0,a.bool)(q)}catch(N){if(!x(j,F).coerceEBV())throw N;return(0,a.bool)(!0)}}},f={arity:2,async applyAsync({args:L,mapping:F,evaluate:x}){const[P,j]=L;try{if(!(await x(P,F)).coerceEBV())return(0,a.bool)(!1);const q=(await x(j,F)).coerceEBV();return(0,a.bool)(q)}catch(N){if((await x(j,F)).coerceEBV())throw N;return(0,a.bool)(!1)}},applySynchronously({args:L,mapping:F,evaluate:x}){const[P,j]=L;try{if(!x(P,F).coerceEBV())return(0,a.bool)(!1);const q=x(j,F).coerceEBV();return(0,a.bool)(q)}catch(N){if(x(j,F).coerceEBV())throw N;return(0,a.bool)(!1)}}},h={arity:2,async applyAsync({args:L,mapping:F,evaluate:x}){const[P,j]=L.map($=>x($,F)),[N,V]=await Promise.all([P,j]);return(0,a.bool)(N.toRDF().equals(V.toRDF()))},applySynchronously({args:L,mapping:F,evaluate:x}){const[P,j]=L.map(N=>x(N,F));return(0,a.bool)(P.toRDF().equals(j.toRDF()))}},p={arity:Number.POSITIVE_INFINITY,checkArity(L){return L.length>0},async applyAsync(L){const{args:F,mapping:x,evaluate:P}=L,[j,...N]=F,V=await P(j,x);return m(V,{...L,args:N},[])},applySynchronously(L){const{args:F,mapping:x,evaluate:P}=L,[j,...N]=F,V=P(j,x);return y(V,{...L,args:N},[])}};async function m(L,F,x){const{args:P,mapping:j,evaluate:N}=F;if(P.length===0)return x.every($=>!$)?(0,a.bool)(!1):Promise.reject(new n.InError(x));try{const V=P.shift(),$=await N(V,j);return s.regularFunctions[r.RegularOperator.EQUAL].apply([L,$],F).typedValue?(0,a.bool)(!0):m(L,F,[...x,!1])}catch(V){return m(L,F,[...x,V])}}function y(L,F,x){const{args:P,mapping:j,evaluate:N}=F;if(P.length===0){if(x.every($=>!$))return(0,a.bool)(!1);throw new n.InError(x)}try{const V=P.shift(),$=N(V,j);return s.regularFunctions[r.RegularOperator.EQUAL].apply([L,$],F).typedValue?(0,a.bool)(!0):y(L,F,[...x,!1])}catch(V){return y(L,F,[...x,V])}}const g={arity:Number.POSITIVE_INFINITY,checkArity(L){return L.length>0},async applyAsync(L){const x=await s.specialFunctions[r.SpecialOperator.IN].applyAsync(L);return(0,a.bool)(!x.typedValue)},applySynchronously(L){const x=s.specialFunctions[r.SpecialOperator.IN].applySynchronously(L);return(0,a.bool)(!x.typedValue)}},b=(0,a.declare)(r.SpecialOperator.CONCAT).onStringly1(()=>L=>L).collect(),v={arity:Number.POSITIVE_INFINITY,async applyAsync(L){const{args:F,mapping:x,evaluate:P,functionArgumentsCache:j,superTypeProvider:N}=L,V=F.map(async Y=>P(Y,x)).map(async Y=>{const he=b.search([await Y],N,j);if(!he)throw new n.InvalidArgumentTypes(F,r.SpecialOperator.CONCAT);return he(L)([await Y])}),$=await Promise.all(V),H=$.map(Y=>Y.typedValue).join(""),X=_($)?$[0].language:void 0;return X?(0,a.langString)(H,X):(0,a.string)(H)},applySynchronously(L){const{args:F,mapping:x,evaluate:P,superTypeProvider:j,functionArgumentsCache:N}=L,V=F.map(X=>P(X,x)).map(X=>{const Y=b.search([X],j,N);if(!Y)throw new n.InvalidArgumentTypes(F,r.SpecialOperator.CONCAT);return Y(L)([X])}),q=V.map(X=>X.typedValue).join(""),H=_(V)?V[0].language:void 0;return H?(0,a.langString)(q,H):(0,a.string)(q)}};function _(L){return L.length>0&&L.every(F=>F.language===L[0].language)}const w=(0,a.declare)(r.SpecialOperator.BNODE).onString1(()=>L=>L).collect(),E={arity:Number.POSITIVE_INFINITY,checkArity(L){return L.length===0||L.length===1},async applyAsync(L){const{args:F,mapping:x,evaluate:P,superTypeProvider:j,functionArgumentsCache:N}=L,V=F.length===1?await P(F[0],x):void 0;let $;if(V){const q=w.search([V],j,N);if(!q)throw new n.InvalidArgumentTypes(F,r.SpecialOperator.BNODE);$=q(L)([V]).str()}if(L.bnode){const q=await L.bnode($);return new e.BlankNode(q)}return O($)},applySynchronously(L){const{args:F,mapping:x,evaluate:P,superTypeProvider:j,functionArgumentsCache:N}=L,V=F.length===1?P(F[0],x):void 0;let $;if(V){const q=w.search([V],j,N);if(!q)throw new n.InvalidArgumentTypes(F,r.SpecialOperator.BNODE);$=q(L)([V]).str()}if(L.bnode){const q=L.bnode($);return new e.BlankNode(q)}return O($)}};function O(L){return new e.BlankNode(L??t.v4())}return pg.specialDefinitions={bound:o,if:c,coalesce:l,"&&":f,"||":d,sameterm:h,in:p,notin:g,concat:v,bnode:E},pg}var WV;function $f(){return WV||(WV=1,function(t){var e=I&&I.__createBinding||(Object.create?function(c,l,d,f){f===void 0&&(f=d);var h=Object.getOwnPropertyDescriptor(l,d);(!h||("get"in h?!l.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return l[d]}}),Object.defineProperty(c,f,h)}:function(c,l,d,f){f===void 0&&(f=d),c[f]=l[d]}),r=I&&I.__exportStar||function(c,l){for(var d in c)d!=="default"&&!Object.prototype.hasOwnProperty.call(l,d)&&e(l,c,d)};Object.defineProperty(t,"__esModule",{value:!0}),t.OverloadTree=t.namedFunctions=t.specialFunctions=t.regularFunctions=void 0;const n=uN(),a=l6e(),s=E6e(),o=A6e();r(uN(),t),t.regularFunctions=Object.fromEntries(Object.entries(s.definitions).map(([c,l])=>[c,new n.RegularFunction(c,l)])),t.specialFunctions=Object.fromEntries(Object.entries(o.specialDefinitions).map(([c,l])=>[c,new n.SpecialFunction(c,l)])),t.namedFunctions=Object.fromEntries(Object.entries(a.namedDefinitions).map(([c,l])=>[c,new n.NamedFunction(c,l)]));var u=hte();Object.defineProperty(t,"OverloadTree",{enumerable:!0,get:function(){return u.OverloadTree}})}($x)),$x}var KV;function _te(){if(KV)return km;KV=1,Object.defineProperty(km,"__esModule",{value:!0}),km.AlgebraTransformer=void 0;const t=xt(),e=ki(),r=$f(),n=oi(),a=Rn(),s=Rn(),o=vl();let u=class j_ extends o.TermTransformer{constructor(l){super(l.superTypeProvider),this.algebraConfig=l,this.creatorConfig={type:l.type,creator:l.creator}}transformAlgebra(l){const d=t.Algebra.expressionTypes;switch(l.expressionType){case d.TERM:return this.transformTerm(l);case d.OPERATOR:return this.transformOperator(l);case d.NAMED:return this.transformNamed(l);case d.EXISTENCE:return j_.transformExistence(l);case d.AGGREGATE:return j_.transformAggregate(l);case d.WILDCARD:return j_.transformWildcard(l)}}static transformWildcard(l){return new e.NamedNode(l.wildcard.value)}transformOperator(l){const d=l.operator.toLowerCase();if(n.SpecialOperators.has(d)){const m=d,y=l.args.map(b=>this.transformAlgebra(b)),g=r.specialFunctions[m];if(!g.checkArity(y))throw new a.InvalidArity(y,m);return new e.SpecialOperator(y,g.applyAsync,g.applySynchronously)}if(!n.Operators.has(d))throw new a.UnknownOperator(l.operator);const f=d,h=l.args.map(m=>this.transformAlgebra(m)),p=r.regularFunctions[f];if(!j_.hasCorrectArity(h,p.arity))throw new a.InvalidArity(h,f);return new e.Operator(h,m=>p.apply(m,this.algebraConfig))}wrapSyncFunction(l,d){return f=>{try{const h=l(f.map(p=>p.toRDF()));return this.transformRDFTermUnsafe(h)}catch(h){throw new s.ExtensionFunctionError(d,h)}}}wrapAsyncFunction(l,d){return async f=>{try{const h=await l(f.map(p=>p.toRDF()));return this.transformRDFTermUnsafe(h)}catch(h){throw new s.ExtensionFunctionError(d,h)}}}transformNamed(l){const d=l.name.value,f=l.args.map(h=>this.transformAlgebra(h));if(n.NamedOperators.has(d)){const h=l.name.value,p=r.namedFunctions[h];return new e.Named(l.name,f,m=>p.apply(m,this.algebraConfig))}if(this.creatorConfig.type==="sync"){const h=this.creatorConfig.creator(l.name);if(h){const p=this.wrapSyncFunction(h,l.name.value);return new e.SyncExtension(l.name,f,p)}}else{const h=this.creatorConfig.creator(l.name);if(h){const p=this.wrapAsyncFunction(h,l.name.value);return new e.AsyncExtension(l.name,f,p)}}throw new a.UnknownNamedOperator(l.name.value)}static hasCorrectArity(l,d){return Array.isArray(d)?d.includes(l.length):l.length===d}static transformAggregate(l){const d=l.aggregator;return new e.Aggregate(d,l)}static transformExistence(l){return new e.Existence(l)}};return km.AlgebraTransformer=u,km}var yg={},mg={},JV;function bte(){if(JV)return mg;JV=1,Object.defineProperty(mg,"__esModule",{value:!0}),mg.BaseExpressionEvaluator=void 0;const t=Os(),e=Rn();let r=class{constructor(a){this.termTransformer=a}term(a){return a}variable(a,s){const o=s.get((0,t.expressionToVar)(a));if(!o)throw new e.UnboundVariableError(a.name,s);return this.termTransformer.transformRDFTermUnsafe(o)}};return mg.BaseExpressionEvaluator=r,mg}var XV;function O6e(){if(XV)return yg;XV=1,Object.defineProperty(yg,"__esModule",{value:!0}),yg.AsyncRecursiveEvaluator=void 0;const t=ki(),e=vl(),r=Rn(),n=bte();let a=class extends n.BaseExpressionEvaluator{constructor(o,u){super(u??new e.TermTransformer(o.superTypeProvider)),this.context=o,this.subEvaluators={[t.ExpressionType.Term]:(c,l)=>this.term(c),[t.ExpressionType.Variable]:(c,l)=>this.variable(c,l),[t.ExpressionType.Operator]:(c,l)=>this.evalOperator(c,l),[t.ExpressionType.SpecialOperator]:(c,l)=>this.evalSpecialOperator(c,l),[t.ExpressionType.Named]:(c,l)=>this.evalNamed(c,l),[t.ExpressionType.Existence]:(c,l)=>this.evalExistence(c,l),[t.ExpressionType.Aggregate]:(c,l)=>this.evalAggregate(c),[t.ExpressionType.AsyncExtension]:(c,l)=>this.evalAsyncExtension(c,l)}}async evaluate(o,u){const c=this.subEvaluators[o.expressionType];if(!c)throw new r.InvalidExpressionType(o);return c.bind(this)(o,u)}async evalOperator(o,u){const c=o.args.map(d=>this.evaluate(d,u)),l=await Promise.all(c);return o.apply(l)}async evalSpecialOperator(o,u){const c=this.evaluate.bind(this),l={args:o.args,mapping:u,superTypeProvider:this.context.superTypeProvider,now:this.context.now,baseIRI:this.context.baseIRI,functionArgumentsCache:this.context.functionArgumentsCache,evaluate:c,bnode:this.context.bnode,defaultTimeZone:this.context.defaultTimeZone};return o.applyAsync(l)}async _evalAsyncArgs(o,u){const c=o.map(l=>this.evaluate(l,u));return await Promise.all(c)}async evalNamed(o,u){return o.apply(await this._evalAsyncArgs(o.args,u))}async evalAsyncExtension(o,u){return await o.apply(await this._evalAsyncArgs(o.args,u))}async evalExistence(o,u){if(!this.context.exists)throw new r.NoExistenceHook;return new t.BooleanLiteral(await this.context.exists(o.expression,u))}async evalAggregate(o){if(!this.context.aggregate)throw new r.NoAggregator;return this.termTransformer.transformRDFTermUnsafe(await this.context.aggregate(o.expression))}};return yg.AsyncRecursiveEvaluator=a,yg}var YV;function wte(){if(YV)return Um;YV=1,Object.defineProperty(Um,"__esModule",{value:!0}),Um.AsyncEvaluator=void 0;const t=ju(),e=_te(),r=qf(),n=O6e();let a=class vte{static completeContext(o){const u=o.now??new Date(Date.now());return{now:u,baseIRI:o.baseIRI??void 0,functionArgumentsCache:o.functionArgumentsCache??{},superTypeProvider:{cache:o.typeCache??new t.LRUCache({max:1e3}),discoverer:o.getSuperType??(()=>"term")},extensionFunctionCreator:o.extensionFunctionCreator,exists:o.exists,aggregate:o.aggregate,bnode:o.bnode,defaultTimeZone:o.defaultTimeZone??(0,r.extractTimeZone)(u)}}constructor(o,u={}){this.algExpr=o;const c=u.extensionFunctionCreator??(()=>{}),l=vte.completeContext(u),d=new e.AlgebraTransformer({type:"async",creator:c,...l});this.expr=d.transformAlgebra(o),this.evaluator=new n.AsyncRecursiveEvaluator(l,d)}async evaluate(o){return(await this.evaluator.evaluate(this.expr,o)).toRDF()}async evaluateAsEBV(o){return(await this.evaluator.evaluate(this.expr,o)).coerceEBV()}async evaluateAsInternal(o){return await this.evaluator.evaluate(this.expr,o)}};return Um.AsyncEvaluator=a,Um}var gg={},_g={},ZV;function R6e(){if(ZV)return _g;ZV=1,Object.defineProperty(_g,"__esModule",{value:!0}),_g.SyncRecursiveEvaluator=void 0;const t=ki(),e=vl(),r=Rn(),n=bte();let a=class extends n.BaseExpressionEvaluator{constructor(o,u){super(u??new e.TermTransformer(o.superTypeProvider)),this.context=o,this.subEvaluators={[t.ExpressionType.Term]:(c,l)=>this.term(c),[t.ExpressionType.Variable]:(c,l)=>this.variable(c,l),[t.ExpressionType.Operator]:(c,l)=>this.evalOperator(c,l),[t.ExpressionType.SpecialOperator]:(c,l)=>this.evalSpecialOperator(c,l),[t.ExpressionType.Named]:(c,l)=>this.evalNamed(c,l),[t.ExpressionType.Existence]:(c,l)=>this.evalExistence(c,l),[t.ExpressionType.Aggregate]:(c,l)=>this.evalAggregate(c),[t.ExpressionType.SyncExtension]:(c,l)=>this.evalSyncExtension(c,l)}}evaluate(o,u){const c=this.subEvaluators[o.expressionType];if(!c)throw new r.InvalidExpressionType(o);return c.bind(this)(o,u)}evalOperator(o,u){const c=o.args.map(l=>this.evaluate(l,u));return o.apply(c)}evalSpecialOperator(o,u){const c=this.evaluate.bind(this),l={args:o.args,mapping:u,superTypeProvider:this.context.superTypeProvider,now:this.context.now,baseIRI:this.context.baseIRI,functionArgumentsCache:this.context.functionArgumentsCache,evaluate:c,bnode:this.context.bnode,defaultTimeZone:this.context.defaultTimeZone};return o.applySynchronously(l)}evalNamed(o,u){const c=o.args.map(l=>this.evaluate(l,u));return o.apply(c)}evalSyncExtension(o,u){const c=o.args.map(l=>this.evaluate(l,u));return o.apply(c)}evalExistence(o,u){if(!this.context.exists)throw new r.NoExistenceHook;return new t.BooleanLiteral(this.context.exists(o.expression,u))}evalAggregate(o){if(!this.context.aggregate)throw new r.NoAggregator;return this.termTransformer.transformRDFTermUnsafe(this.context.aggregate(o.expression))}};return _g.SyncRecursiveEvaluator=a,_g}var eH;function Tte(){if(eH)return gg;eH=1,Object.defineProperty(gg,"__esModule",{value:!0}),gg.SyncEvaluator=void 0;const t=ju(),e=_te(),r=qf(),n=R6e();let a=class Ste{static completeContext(o){const u=o.now??new Date(Date.now());return{now:u,baseIRI:o.baseIRI??void 0,functionArgumentsCache:o.functionArgumentsCache??{},superTypeProvider:{cache:o.typeCache??new t.LRUCache({max:1e3}),discoverer:o.getSuperType??(()=>"term")},extensionFunctionCreator:o.extensionFunctionCreator,exists:o.exists,aggregate:o.aggregate,bnode:o.bnode,defaultTimeZone:o.defaultTimeZone??(0,r.extractTimeZone)(u)}}constructor(o,u={}){this.algExpr=o,this.context=u;const c=u.extensionFunctionCreator??(()=>{}),l=Ste.completeContext(u),d=new e.AlgebraTransformer({type:"sync",creator:c,...l});this.expr=d.transformAlgebra(o),this.evaluator=new n.SyncRecursiveEvaluator(l,d)}evaluate(o){return this.evaluator.evaluate(this.expr,o).toRDF()}evaluateAsEBV(o){return this.evaluator.evaluate(this.expr,o).coerceEBV()}evaluateAsInternal(o){return this.evaluator.evaluate(this.expr,o)}};return gg.SyncEvaluator=a,gg}var bg={},vg={},wg={},Sg={},ac={},tH;function Fu(){if(tH)return ac;tH=1,Object.defineProperty(ac,"__esModule",{value:!0}),ac.Aggregator=ac.AggregatorComponent=void 0;const t=nr,e=vl(),r=oi(),n=zT();class a{static emptyValue(){}constructor(u,c){this.sharedContext=c,this.separator=u.separator||" ",this.termTransformer=new e.TermTransformer(c.superTypeProvider)}termToNumericOrError(u){if(u.termType!=="Literal")throw new Error(`Term with value ${u.value} has type ${u.termType} and is not a numeric literal`);if(!(0,n.isSubTypeOf)(u.datatype.value,r.TypeAlias.SPARQL_NUMERIC,this.sharedContext.superTypeProvider))throw new Error(`Term datatype ${u.datatype.value} with value ${u.value} has type ${u.termType} and is not a numeric literal`);return this.termTransformer.transformLiteral(u)}}ac.AggregatorComponent=a;let s=class{constructor(u,c){this.aggregatorComponent=c,this.variableValues=new Map,this.distinct=u.distinct}static emptyValue(u){return u.emptyValue()}result(){return this.aggregatorComponent.result()}put(u,c=""){this.canSkip(u,c)||(this.aggregatorComponent.put(u),this.addSeen(u,c))}canSkip(u,c){const l=this.variableValues.get(c);return this.distinct&&l!==void 0&&l.has(t.termToString(u))}addSeen(u,c){this.distinct&&(this.variableValues.has(c)||this.variableValues.set(c,new Set),this.variableValues.get(c).add(t.termToString(u)))}};return ac.Aggregator=s,ac}var rH;function x6e(){if(rH)return Sg;rH=1,Object.defineProperty(Sg,"__esModule",{value:!0}),Sg.Average=void 0;const t=ki(),e=$f(),r=Os(),n=oi(),a=Fu();let s=class Ete extends a.AggregatorComponent{constructor(){super(...arguments),this.summer=e.regularFunctions[n.RegularOperator.ADDITION],this.divider=e.regularFunctions[n.RegularOperator.DIVISION],this.state=void 0}static emptyValue(){return(0,r.integer)(0).toRDF()}put(u){if(this.state===void 0){const c=this.termToNumericOrError(u);this.state={sum:c,count:1}}else{const c=this.termToNumericOrError(u);this.state.sum=this.summer.apply([this.state.sum,c],this.sharedContext),this.state.count++}}result(){if(this.state===void 0)return Ete.emptyValue();const u=new t.IntegerLiteral(this.state.count);return this.divider.apply([this.state.sum,u],this.sharedContext).toRDF()}};return Sg.Average=s,Sg}var Tg={},nH;function I6e(){if(nH)return Tg;nH=1,Object.defineProperty(Tg,"__esModule",{value:!0}),Tg.Count=void 0;const t=Os(),e=Fu();let r=class Ate extends e.AggregatorComponent{constructor(){super(...arguments),this.state=void 0}static emptyValue(){return(0,t.integer)(0).toRDF()}put(){this.state===void 0&&(this.state=0),this.state++}result(){return this.state===void 0?Ate.emptyValue():(0,t.integer)(this.state).toRDF()}};return Tg.Count=r,Tg}var Eg={},iH;function P6e(){if(iH)return Eg;iH=1,Object.defineProperty(Eg,"__esModule",{value:!0}),Eg.GroupConcat=void 0;const t=Os(),e=Fu();let r=class Ote extends e.AggregatorComponent{constructor(){super(...arguments),this.state=void 0,this.lastLanguageValid=!0,this.lastLanguage=void 0}static emptyValue(){return(0,t.string)("").toRDF()}put(a){this.state===void 0?(this.state=a.value,a.termType==="Literal"&&(this.lastLanguage=a.language)):(this.state+=this.separator+a.value,this.lastLanguageValid&&a.termType==="Literal"&&this.lastLanguage!==a.language&&(this.lastLanguageValid=!1,this.lastLanguage=void 0))}result(){return this.state===void 0?Ote.emptyValue():this.lastLanguageValid&&this.lastLanguage?(0,t.langString)(this.state,this.lastLanguage).toRDF():(0,t.string)(this.state).toRDF()}};return Eg.GroupConcat=r,Eg}var Ag={},aH;function N6e(){if(aH)return Ag;aH=1,Object.defineProperty(Ag,"__esModule",{value:!0}),Ag.Max=void 0;const t=KT(),e=Fu();let r=class Rte extends e.AggregatorComponent{constructor(){super(...arguments),this.state=void 0}put(a){if(a.termType!=="Literal")throw new Error(`Term with value ${a.value} has type ${a.termType} and is not a literal`);this.state===void 0?this.state=a:(0,t.orderTypes)(this.state,a)===-1&&(this.state=a)}result(){return this.state===void 0?Rte.emptyValue():this.state}};return Ag.Max=r,Ag}var Og={},sH;function D6e(){if(sH)return Og;sH=1,Object.defineProperty(Og,"__esModule",{value:!0}),Og.Min=void 0;const t=KT(),e=Fu();let r=class xte extends e.AggregatorComponent{constructor(){super(...arguments),this.state=void 0}put(a){if(a.termType!=="Literal")throw new Error(`Term with value ${a.value} has type ${a.termType} and is not a literal`);this.state===void 0?this.state=a:(0,t.orderTypes)(this.state,a)===1&&(this.state=a)}result(){return this.state===void 0?xte.emptyValue():this.state}};return Og.Min=r,Og}var Rg={},oH;function C6e(){if(oH)return Rg;oH=1,Object.defineProperty(Rg,"__esModule",{value:!0}),Rg.Sample=void 0;const t=Fu();let e=class Ite extends t.AggregatorComponent{constructor(){super(...arguments),this.state=void 0}put(n){this.state===void 0&&(this.state=n)}result(){return this.state===void 0?Ite.emptyValue():this.state}};return Rg.Sample=e,Rg}var xg={},uH;function L6e(){if(uH)return xg;uH=1,Object.defineProperty(xg,"__esModule",{value:!0}),xg.Sum=void 0;const t=$f(),e=Os(),r=oi(),n=Fu();let a=class Pte extends n.AggregatorComponent{constructor(){super(...arguments),this.state=void 0,this.summer=t.regularFunctions[r.RegularOperator.ADDITION]}static emptyValue(){return(0,e.integer)(0).toRDF()}put(o){if(this.state===void 0)this.state=this.termToNumericOrError(o);else{const u=this.termToNumericOrError(o);this.state=this.summer.apply([this.state,u],this.sharedContext)}}result(){return this.state===void 0?Pte.emptyValue():this.state.toRDF()}};return xg.Sum=a,xg}var cH;function j6e(){if(cH)return wg;cH=1,Object.defineProperty(wg,"__esModule",{value:!0}),wg.aggregators=void 0;const t=x6e(),e=I6e(),r=P6e(),n=N6e(),a=D6e(),s=C6e(),o=L6e();return wg.aggregators={count:e.Count,sum:o.Sum,min:a.Min,max:n.Max,avg:t.Average,group_concat:r.GroupConcat,sample:s.Sample},wg}var Ig={},lH;function M6e(){if(lH)return Ig;lH=1,Object.defineProperty(Ig,"__esModule",{value:!0}),Ig.WildcardCountAggregator=void 0;const t=nr,e=Os();let r=class{constructor(a){this.bindingValues=new Map,this.counter=0,this.distinct=a.distinct}putBindings(a){this.handleDistinct(a)||(this.counter+=1)}static emptyValue(){return(0,e.integer)(0).toRDF()}result(){return(0,e.integer)(this.counter).toRDF()}handleDistinct(a){if(this.distinct){const s=[...a];s.sort((d,f)=>d[0].value.localeCompare(f[0].value));const o=s.map(([d])=>d.value).join(","),u=s.map(([,d])=>t.termToString(d)).join(","),c=this.bindingValues.get(o),l=c!==void 0&&c.has(u);return c||this.bindingValues.set(o,new Set),this.bindingValues.get(o).add(u),l}return!1}};return Ig.WildcardCountAggregator=r,Ig}var dH;function Nte(){if(dH)return vg;dH=1,Object.defineProperty(vg,"__esModule",{value:!0}),vg.BaseAggregateEvaluator=void 0;const t=xt(),e=j6e(),r=Fu(),n=M6e(),a=Rn();let s=class{constructor(u,c,l){this.throwError=!1,this.isWildcard=!1,this.errorOccurred=!1,this.expression=u,this.aggregator=new r.Aggregator(u,new e.aggregators[u.aggregator](u,c)),this.throwError=l??!1,this.isWildcard=u.expression.expressionType===t.Algebra.expressionTypes.WILDCARD,this.isWildcard&&(this.wildcardAggregator=new n.WildcardCountAggregator(u))}static emptyValue(u,c=!1){let l;if(u.expression.expressionType===t.Algebra.expressionTypes.WILDCARD?l=n.WildcardCountAggregator.emptyValue():l=r.Aggregator.emptyValue(e.aggregators[u.aggregator]),l===void 0&&c)throw new a.EmptyAggregateError;return l}result(){if(!this.errorOccurred)return this.isWildcard?this.wildcardAggregator.result():this.aggregator.result()}};return vg.BaseAggregateEvaluator=s,vg}var fH;function F6e(){if(fH)return bg;fH=1,Object.defineProperty(bg,"__esModule",{value:!0}),bg.AggregateEvaluator=void 0;const t=Nte(),e=Tte();let r=class extends t.BaseAggregateEvaluator{constructor(a,s,o){super(a,e.SyncEvaluator.completeContext(s??{}),o),this.evaluator=new e.SyncEvaluator(a.expression,s)}put(a){if(!this.errorOccurred)if(this.isWildcard)this.wildcardAggregator.putBindings(a);else try{const s=this.evaluator.evaluate(a);this.aggregator.put(s)}catch(s){this.safeThrow(s)}}safeThrow(a){if(this.throwError)throw a;this.errorOccurred=!0}};return bg.AggregateEvaluator=r,bg}var Pg={},hH;function B6e(){if(hH)return Pg;hH=1,Object.defineProperty(Pg,"__esModule",{value:!0}),Pg.AsyncAggregateEvaluator=void 0;const t=wte(),e=Nte();let r=class extends e.BaseAggregateEvaluator{constructor(a,s,o){super(a,t.AsyncEvaluator.completeContext(s??{}),o),this.evaluator=new t.AsyncEvaluator(a.expression,s),this.errorOccurred=!1}async put(a){if(!this.errorOccurred)if(this.isWildcard)this.wildcardAggregator.putBindings(a);else try{const s=await this.evaluator.evaluate(a);if(!s||this.errorOccurred)return;this.aggregator.put(s)}catch(s){this.safeThrow(s)}}safeThrow(a){if(this.throwError)throw a;this.errorOccurred=!0}};return Pg.AsyncAggregateEvaluator=r,Pg}var pH;function Uf(){return pH||(pH=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncAggregateEvaluator=t.orderTypes=t.isExpressionError=t.ExpressionError=t.AggregateEvaluator=t.SyncEvaluator=t.AsyncEvaluator=void 0;var e=wte();Object.defineProperty(t,"AsyncEvaluator",{enumerable:!0,get:function(){return e.AsyncEvaluator}});var r=Tte();Object.defineProperty(t,"SyncEvaluator",{enumerable:!0,get:function(){return r.SyncEvaluator}});var n=F6e();Object.defineProperty(t,"AggregateEvaluator",{enumerable:!0,get:function(){return n.AggregateEvaluator}});var a=Rn();Object.defineProperty(t,"ExpressionError",{enumerable:!0,get:function(){return a.ExpressionError}}),Object.defineProperty(t,"isExpressionError",{enumerable:!0,get:function(){return a.isExpressionError}});var s=KT();Object.defineProperty(t,"orderTypes",{enumerable:!0,get:function(){return s.orderTypes}});var o=B6e();Object.defineProperty(t,"AsyncAggregateEvaluator",{enumerable:!0,get:function(){return o.AsyncAggregateEvaluator}})}(Mx)),Mx}var yH;function q6e(){if(yH)return $m;yH=1,Object.defineProperty($m,"__esModule",{value:!0}),$m.ActorQueryOperationExtend=void 0;const t=kr(),e=Tt(),r=Uf();let n=class extends e.ActorQueryOperationTypedMediated{constructor(s){super(s,"extend")}async testOperation(s,o){const u=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,o);return new r.AsyncEvaluator(s.expression,e.ActorQueryOperation.getAsyncExpressionContext(o,this.mediatorQueryOperation,u)),!0}async runOperation(s,o){const{expression:u,input:c,variable:l}=s,d=e.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:c,context:o}));if((await d.metadata()).variables.some(g=>g.equals(l)))throw new Error(`Illegal binding to variable '${l.value}' that has already been bound`);const f=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,o),h={...e.ActorQueryOperation.getAsyncExpressionContext(o,this.mediatorQueryOperation,f)},p=new r.AsyncEvaluator(u,h),m=async(g,b,v)=>{try{const _=await p.evaluate(g),w=g.set(l,_);v(w)}catch(_){(0,r.isExpressionError)(_)?(v(g),this.logWarn(o,`Expression error for extend operation (${_.message})with bindings '${(0,t.bindingsToString)(g)}'`)):y.emit("error",_)}b()},y=d.bindingsStream.transform({autoStart:!1,transform:m});return{type:"bindings",bindingsStream:y,async metadata(){const g=await d.metadata();return{...g,variables:[...g.variables,l]}}}}};return $m.ActorQueryOperationExtend=n,$m}var mH;function $6e(){return mH||(mH=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(q6e(),t)}(jx)),jx}var Hx={},Ng={},gH;function U6e(){if(gH)return Ng;gH=1,Object.defineProperty(Ng,"__esModule",{value:!0}),Ng.ActorQueryOperationFilter=void 0;const t=kr(),e=Tt(),r=Uf();let n=class extends e.ActorQueryOperationTypedMediated{constructor(s){super(s,"filter")}async testOperation(s,o){const u=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,o),c={...e.ActorQueryOperation.getAsyncExpressionContext(o,this.mediatorQueryOperation,u)};return new r.AsyncEvaluator(s.expression,c),!0}async runOperation(s,o){const u=await this.mediatorQueryOperation.mediate({operation:s.input,context:o}),c=e.ActorQueryOperation.getSafeBindings(u);e.ActorQueryOperation.validateQueryOutput(c,"bindings");const l=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,o),d={...e.ActorQueryOperation.getAsyncExpressionContext(o,this.mediatorQueryOperation,l)},f=new r.AsyncEvaluator(s.expression,d),h=async(m,y,g)=>{try{await f.evaluateAsEBV(m)&&g(m)}catch(b){(0,r.isExpressionError)(b)?this.logWarn(o,"Error occurred while filtering.",()=>({error:b,bindings:(0,t.bindingsToString)(m)})):p.emit("error",b)}y()},p=c.bindingsStream.transform({transform:h,autoStart:!1});return{type:"bindings",bindingsStream:p,metadata:c.metadata}}};return Ng.ActorQueryOperationFilter=n,Ng}var _H;function k6e(){return _H||(_H=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(U6e(),t)}(Hx)),Hx}var Qx={},Dg={},Cg={},bH;function V6e(){if(bH)return Cg;bH=1,Object.defineProperty(Cg,"__esModule",{value:!0}),Cg.GroupsState=void 0;const t=Uf(),e=Ot,r=new e.DataFactory;let n=class{constructor(s,o,u,c){this.hashFunction=s,this.pattern=o,this.sparqleeConfig=u,this.bindingsFactory=c,this.groups=new Map,this.groupsInitializer=new Map,this.groupVariables=new Set(this.pattern.variables.map(l=>l.value)),this.waitCounter=1,this.resultHasBeenCalled=!1}consumeBindings(s){const o=this.resultCheck();if(o)return o;this.waitCounter++;const u=s.filter((f,h)=>this.groupVariables.has(h.value)),c=this.hashBindings(u);let l=this.groupsInitializer.get(c),d;if(l){const f=l;d=(async()=>{const h=await f;await Promise.all(this.pattern.aggregates.map(async p=>{const m=p.variable.value;await h.aggregators[m].put(s)}))})().then(async()=>{this.subtractWaitCounterAndCollect()})}else l=(async()=>{const f={};await Promise.all(this.pattern.aggregates.map(async p=>{const m=p.variable.value;f[m]=new t.AsyncAggregateEvaluator(p,this.sparqleeConfig),await f[m].put(s)}));const h={aggregators:f,bindings:u};return this.groups.set(c,h),this.subtractWaitCounterAndCollect(),h})(),this.groupsInitializer.set(c,l),d=l;return d}subtractWaitCounterAndCollect(){--this.waitCounter===0&&this.handleResultCollection()}handleResultCollection(){let s=[...this.groups].map(([o,u])=>{const{bindings:c,aggregators:l}=u;let d=c;for(const f in l){const h=l[f].result();h&&(d=d.set(r.variable(f),h))}return d});if(s.length===0&&this.groupVariables.size===0){const o=[];for(const u of this.pattern.aggregates){const c=u.variable,l=t.AsyncAggregateEvaluator.emptyValue(u);l!==void 0&&o.push([c,l])}s=[this.bindingsFactory.bindings(o)]}this.waitResolver(s)}resultCheck(){if(this.resultHasBeenCalled)return Promise.reject(new Error("Calling any function after calling collectResult is invalid."))}collectResults(){const s=this.resultCheck();if(s)return s;this.resultHasBeenCalled=!0;const o=new Promise(u=>{this.waitResolver=u});return this.subtractWaitCounterAndCollect(),o}hashBindings(s){return this.hashFunction(s)}};return Cg.GroupsState=n,Cg}var vH;function H6e(){if(vH)return Dg;vH=1,Object.defineProperty(Dg,"__esModule",{value:!0}),Dg.ActorQueryOperationGroup=void 0;const t=kr(),e=Tt(),r=Uf(),n=Mt,a=V6e();let s=class extends e.ActorQueryOperationTypedMediated{constructor(u){super(u,"group")}async testOperation(u,c){const l=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,c);for(const d of u.aggregates)new r.AsyncEvaluator(d.expression,e.ActorQueryOperation.getAsyncExpressionContext(c,this.mediatorQueryOperation,l));return!0}async runOperation(u,c){const l=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,c),{hashFunction:d}=await this.mediatorHashBindings.mediate({allowHashCollisions:!0,context:c}),{input:f,aggregates:h}=u,p=await this.mediatorQueryOperation.mediate({operation:f,context:c}),m=e.ActorQueryOperation.getSafeBindings(p),y=[...u.variables,...h.map(v=>v.variable)],g=e.ActorQueryOperation.getAsyncExpressionContext(c,this.mediatorQueryOperation,l);return{type:"bindings",bindingsStream:new n.TransformIterator(()=>new Promise((v,_)=>{const w=new a.GroupsState(d,u,g,l);m.bindingsStream.on("end",async()=>{try{const E=new n.ArrayIterator(await w.collectResults(),{autoStart:!1});v(E)}catch(E){_(E)}}),m.bindingsStream.on("error",_),m.bindingsStream.on("data",E=>{w.consumeBindings(E).catch(_)})}),{autoStart:!1}),metadata:async()=>({...await m.metadata(),variables:y})}}};return Dg.ActorQueryOperationGroup=s,Dg}var wH;function Q6e(){return wH||(wH=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(H6e(),t)}(Qx)),Qx}var zx={},Lg={},SH;function z6e(){if(SH)return Lg;SH=1,Object.defineProperty(Lg,"__esModule",{value:!0}),Lg.ActorQueryOperationLeftJoin=void 0;const t=kr(),e=Tt(),r=Uf();let n=class extends e.ActorQueryOperationTypedMediated{constructor(s){super(s,"leftjoin")}async testOperation(s,o){return!0}async runOperation(s,o){const u=(await Promise.all(s.input.map(async l=>({output:await this.mediatorQueryOperation.mediate({operation:l,context:o}),operation:l})))).map(({output:l,operation:d})=>({output:e.ActorQueryOperation.getSafeBindings(l),operation:d})),c=await this.mediatorJoin.mediate({type:"optional",entries:u,context:o});if(s.expression){const d=(await u[1].output.metadata()).variables,f=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,o),h={...e.ActorQueryOperation.getAsyncExpressionContext(o,this.mediatorQueryOperation,f)},p=new r.AsyncEvaluator(s.expression,h),m=c.bindingsStream.transform({autoStart:!1,transform:async(y,g,b)=>{if(!d.every(v=>y.has(v.value)))return b(y),g();try{await p.evaluateAsEBV(y)&&b(y)}catch(v){(0,r.isExpressionError)(v)?this.logWarn(o,"Error occurred while filtering.",()=>({error:v,bindings:y})):m.emit("error",v)}g()}});c.bindingsStream=m}return c}};return Lg.ActorQueryOperationLeftJoin=n,Lg}var TH;function G6e(){return TH||(TH=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(z6e(),t)}(zx)),zx}var Gx={},jg={},EH;function W6e(){if(EH)return jg;EH=1,Object.defineProperty(jg,"__esModule",{value:!0}),jg.ActorQueryOperationNop=void 0;const t=kr(),e=Tt(),r=ci(),n=Mt;let a=class extends e.ActorQueryOperationTypedMediated{constructor(o){super(o,"nop")}async testOperation(o,u){return!0}async runOperation(o,u){const c=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,u);return{bindingsStream:new n.SingletonIterator(c.bindings()),metadata:()=>Promise.resolve({state:new r.MetadataValidationState,cardinality:{type:"exact",value:1},canContainUndefs:!1,variables:[]}),type:"bindings"}}};return jg.ActorQueryOperationNop=a,jg}var AH;function K6e(){return AH||(AH=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(W6e(),t)}(Gx)),Gx}var Wx={},Mg={},Fg={},OH;function J6e(){if(OH)return Fg;OH=1,Object.defineProperty(Fg,"__esModule",{value:!0}),Fg.SortIterator=void 0;const t=Mt;let e=class extends t.TransformIterator{constructor(n,a,s){super(n,s);const o=s&&s.window;this.windowLength=Number.isFinite(o)&&o>0?o:Number.POSITIVE_INFINITY,this.sort=a,this.sorted=[]}_read(n,a){let s,{length:o}=this.sorted;for(;o!==this.windowLength&&(s=this.source.read(),s!==null);){let u=0,c=o-1,l,d;for(;u<=c;)l=Math.trunc((u+c)/2),d=this.sort(s,this.sorted[l]),d<0?u=l+1:d>0?c=l-1:(u=l,c=-1);this.sorted.splice(u,0,s),o++}o===this.windowLength&&this._push(this.sorted.pop()),a()}_flush(n){let{length:a}=this.sorted;for(;a--;)this._push(this.sorted.pop());n()}};return Fg.SortIterator=e,Fg}var RH;function X6e(){if(RH)return Mg;RH=1,Object.defineProperty(Mg,"__esModule",{value:!0}),Mg.ActorQueryOperationOrderBy=void 0;const t=kr(),e=Tt(),r=Uf(),n=xt(),a=J6e();let s=class extends e.ActorQueryOperationTypedMediated{constructor(u){super(u,"orderby"),this.window=u.window??Number.POSITIVE_INFINITY}async testOperation(u,c){const l=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,c);for(let d of u.expressions)d=this.extractSortExpression(d),new r.AsyncEvaluator(d,e.ActorQueryOperation.getAsyncExpressionContext(c,this.mediatorQueryOperation,l));return!0}async runOperation(u,c){const l=await this.mediatorQueryOperation.mediate({operation:u.input,context:c}),d=e.ActorQueryOperation.getSafeBindings(l),f={window:this.window},h=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,c),p={...e.ActorQueryOperation.getAsyncExpressionContext(c,this.mediatorQueryOperation,h)};let{bindingsStream:m}=d;for(let y=u.expressions.length-1;y>=0;y--){let g=u.expressions[y];const b=this.isAscending(g);g=this.extractSortExpression(g);const v=new r.AsyncEvaluator(g,p),_=async(O,L,F)=>{try{const x=await v.evaluate(O);F({bindings:O,result:x})}catch(x){(0,r.isExpressionError)(x)||m.emit("error",x),F({bindings:O,result:void 0})}L()},w=m.transform({transform:_});m=new a.SortIterator(w,(O,L)=>{let F=(0,r.orderTypes)(O.result,L.result);return b||(F*=-1),F},f).map(({bindings:O})=>O)}return{type:"bindings",bindingsStream:m,metadata:d.metadata}}extractSortExpression(u){const{expressionType:c,operator:l}=u;return c!==n.Algebra.expressionTypes.OPERATOR?u:l==="desc"?u.args[0]:u}isAscending(u){const{expressionType:c,operator:l}=u;return c!==n.Algebra.expressionTypes.OPERATOR?!0:l!=="desc"}};return Mg.ActorQueryOperationOrderBy=s,Mg}var xH;function Y6e(){return xH||(xH=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(X6e(),t)}(Wx)),Wx}var Kx={},Bg={},IH;function Z6e(){if(IH)return Bg;IH=1,Object.defineProperty(Bg,"__esModule",{value:!0}),Bg.ActorQueryOperationService=void 0;const t=kr(),e=Tt(),r=ci(),n=Mt;let a=class extends e.ActorQueryOperationTypedMediated{constructor(o){super(o,"service")}async testOperation(o,u){if(o.name.termType!=="NamedNode")throw new Error(`${this.name} can only query services by IRI, while a ${o.name.termType} was given.`);return!0}async runOperation(o,u){const{querySource:c}=await this.mediatorQuerySourceIdentify.mediate({querySourceUnidentified:{value:o.name.value,type:this.forceSparqlEndpoint?"sparql":void 0},context:u});let l;try{l=e.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:e.ActorQueryOperation.assignOperationSource(o.input,c),context:u}))}catch(d){if(o.silent){const f=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,u);l={bindingsStream:new n.SingletonIterator(f.bindings()),type:"bindings",metadata:async()=>({state:new r.MetadataValidationState,cardinality:{type:"exact",value:1},canContainUndefs:!1,variables:[]})},this.logWarn(u,`An error occurred when executing a SERVICE clause: ${d.message}`)}else throw d}return l}};return Bg.ActorQueryOperationService=a,Bg}var PH;function eLe(){return PH||(PH=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Z6e(),t)}(Kx)),Kx}var Jx={},qg={},NH;function tLe(){if(NH)return qg;NH=1,Object.defineProperty(qg,"__esModule",{value:!0}),qg.ActorQueryOperationValues=void 0;const t=kr(),e=Tt(),r=ci(),n=Mt,a=Ot,s=new a.DataFactory;let o=class extends e.ActorQueryOperationTyped{constructor(c){super(c,"values")}async testOperation(c,l){return!0}async runOperation(c,l){const d=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,l),f=new n.ArrayIterator(c.bindings.map(m=>d.bindings(Object.entries(m).map(([y,g])=>[s.variable(y.slice(1)),g])))),h=c.variables;return{type:"bindings",bindingsStream:f,metadata:()=>Promise.resolve({state:new r.MetadataValidationState,cardinality:{type:"exact",value:c.bindings.length},canContainUndefs:c.bindings.some(m=>h.some(y=>!(`?${y.value}`in m))),variables:h})}}};return qg.ActorQueryOperationValues=o,qg}var DH;function rLe(){return DH||(DH=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(tLe(),t)}(Jx)),Jx}var Xx={},$g={},CH;function nLe(){if(CH)return $g;CH=1,Object.defineProperty($g,"__esModule",{value:!0}),$g.ActorQueryOperationPathOneOrMore=void 0;const t=Mu(),e=kr(),r=Tt(),n=Mt,a=xt();let s=class extends t.ActorAbstractPath{constructor(u){super(u,a.Algebra.types.ONE_OR_MORE_PATH)}async runOperation(u,c){const l=await e.BindingsFactory.create(this.mediatorMergeBindingsContext,c),d=await this.isPathArbitraryLengthDistinct(c,u);if(d.operation)return d.operation;c=d.context;const f=u.predicate;if(u.subject.termType!=="Variable"&&u.object.termType==="Variable"){const y=u.object,g=await this.getObjectsPredicateStarEval(u.subject,f.path,y,u.graph,c,!1,l),b=u.graph.termType==="Variable"?[y,u.graph]:[y];return{type:"bindings",bindingsStream:g.bindingsStream,metadata:async()=>({...await g.metadata(),variables:b})}}if(u.subject.termType==="Variable"&&u.object.termType==="Variable"){const y=t.ActorAbstractPath.FACTORY.createDistinct(t.ActorAbstractPath.FACTORY.createPath(u.subject,u.predicate.path,u.object,u.graph)),g=r.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({context:c,operation:y})),b=u.subject,v=u.object,_={},w=new n.MultiTransformIterator(g.bindingsStream,{multiTransform:O=>{const L=O.get(b),F=O.get(v),x=u.graph.termType==="Variable"?O.get(u.graph):u.graph;return new n.TransformIterator(async()=>{const P=new n.BufferedIterator;return await this.getSubjectAndObjectBindingsPredicateStar(b,v,L,F,f.path,x,c,_,{},P,{count:0},l),P.transform({transform(j,N,V){u.graph.termType==="Variable"&&(j=j.set(u.graph,x)),V(j),N()}})},{maxBufferSize:128})},autoStart:!1}),E=u.graph.termType==="Variable"?[b,v,u.graph]:[b,v];return{type:"bindings",bindingsStream:w,metadata:async()=>({...await g.metadata(),variables:E})}}if(u.subject.termType==="Variable"&&u.object.termType!=="Variable")return this.mediatorQueryOperation.mediate({context:c,operation:t.ActorAbstractPath.FACTORY.createPath(u.object,t.ActorAbstractPath.FACTORY.createOneOrMorePath(t.ActorAbstractPath.FACTORY.createInv(f.path)),u.subject,u.graph)});const h=this.generateVariable(),p=r.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({context:c,operation:t.ActorAbstractPath.FACTORY.createPath(u.subject,f,h,u.graph)}));return{type:"bindings",bindingsStream:p.bindingsStream.transform({filter:y=>u.object.equals(y.get(h)),transform(y,g,b){const v=u.graph.termType==="Variable"?l.bindings([[u.graph,y.get(u.graph)]]):l.bindings();b(v),g()}}),metadata:async()=>({...await p.metadata(),variables:u.graph.termType==="Variable"?[u.graph]:[]})}}};return $g.ActorQueryOperationPathOneOrMore=s,$g}var LH;function iLe(){return LH||(LH=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(nLe(),t)}(Xx)),Xx}var Yx={},Ug={},jH;function aLe(){if(jH)return Ug;jH=1,Object.defineProperty(Ug,"__esModule",{value:!0}),Ug.ActorQueryOperationPathZeroOrMore=void 0;const t=Mu(),e=kr(),r=Tt(),n=Mt,a=nr,s=xt();let o=class extends t.ActorAbstractPath{constructor(c){super(c,s.Algebra.types.ZERO_OR_MORE_PATH)}async runOperation(c,l){const d=await e.BindingsFactory.create(this.mediatorMergeBindingsContext,l),f=await this.isPathArbitraryLengthDistinct(l,c);if(f.operation)return f.operation;l=f.context;const h=c.predicate,p=this.getPathSources(h),m=c.subject.termType==="Variable",y=c.object.termType==="Variable";if(c.subject.termType==="Variable"&&c.object.termType==="Variable"){const E=this.generateVariable(c),O=this.assignPatternSources(t.ActorAbstractPath.FACTORY.createPattern(c.subject,E,c.object,c.graph),p),L=r.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({context:l,operation:O})),F=c.subject,x=c.object,P=new Set,j={},N=new n.MultiTransformIterator(L.bindingsStream,{multiTransform:$=>{const q=$.get(F),H=$.get(x),X=c.graph.termType==="Variable"?$.get(c.graph):c.graph,Y=(0,a.termToString)(q)+(0,a.termToString)(X),he=(0,a.termToString)(H)+(0,a.termToString)(X);return new n.TransformIterator(async()=>{if(P.has(Y)&&P.has(he))return new n.EmptyIterator;const Te=new n.BufferedIterator,Ne={count:0};return P.has(Y)||(P.add(Y),await this.getSubjectAndObjectBindingsPredicateStar(F,x,q,q,h.path,X,l,j,{},Te,Ne,d)),P.has(he)||(P.add(he),await this.getSubjectAndObjectBindingsPredicateStar(F,x,H,H,h.path,X,l,j,{},Te,Ne,d)),Te.transform({transform($e,de,ce){c.graph.termType==="Variable"&&($e=$e.set(c.graph,X)),ce($e),de()}})})}}),V=c.graph.termType==="Variable"?[F,c.object,c.graph]:[F,c.object];return{type:"bindings",bindingsStream:N,metadata:async()=>({...await L.metadata(),variables:V})}}if(!m&&!y){const E=this.generateVariable(),O=await this.getObjectsPredicateStarEval(c.subject,h.path,E,c.graph,l,!0,d);return{type:"bindings",bindingsStream:O.bindingsStream.transform({filter:F=>c.object.equals(F.get(E)),transform(F,x,P){const j=c.graph.termType==="Variable"?d.bindings([[c.graph,F.get(c.graph)]]):d.bindings();P(j),x()}}),metadata:async()=>({...await O.metadata(),variables:c.graph.termType==="Variable"?[c.graph]:[]})}}const g=m?c.object:c.subject,b=m?c.subject:c.object,v=m?t.ActorAbstractPath.FACTORY.createInv(h.path):h.path,_=await this.getObjectsPredicateStarEval(g,v,b,c.graph,l,!0,d),w=c.graph.termType==="Variable"?[b,c.graph]:[b];return{type:"bindings",bindingsStream:_.bindingsStream,metadata:async()=>({...await _.metadata(),variables:w})}}};return Ug.ActorQueryOperationPathZeroOrMore=o,Ug}var MH;function sLe(){return MH||(MH=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(aLe(),t)}(Yx)),Yx}var Zx={},kg={},FH;function oLe(){if(FH)return kg;FH=1,Object.defineProperty(kg,"__esModule",{value:!0}),kg.ActorQueryOperationPathZeroOrOne=void 0;const t=Mu(),e=kr(),r=Tt(),n=ci(),a=Mt,s=xt();let o=class extends t.ActorAbstractPath{constructor(c){super(c,s.Algebra.types.ZERO_OR_ONE_PATH)}async runOperation(c,l){const d=await e.BindingsFactory.create(this.mediatorMergeBindingsContext,l),f=c.predicate,h=this.getPathSources(f),p=[];if(c.subject.termType!=="Variable"&&c.object.termType!=="Variable"&&c.subject.equals(c.object))return{type:"bindings",bindingsStream:new a.SingletonIterator(d.bindings()),metadata:()=>Promise.resolve({state:new n.MetadataValidationState,cardinality:{type:"exact",value:1},canContainUndefs:!1,variables:[]})};const m=await this.isPathArbitraryLengthDistinct(l,c);if(m.operation)return m.operation;l=m.context;const y=r.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({context:l,operation:t.ActorAbstractPath.FACTORY.createPath(c.subject,f.path,c.object,c.graph)}));let g;if(c.subject.termType==="Variable"&&c.object.termType==="Variable"){const b=this.generateVariable(c),v=r.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({context:l,operation:t.ActorAbstractPath.FACTORY.createFilter(this.assignPatternSources(t.ActorAbstractPath.FACTORY.createPattern(c.subject,b,c.object,c.graph),h),t.ActorAbstractPath.FACTORY.createOperatorExpression("=",[t.ActorAbstractPath.FACTORY.createTermExpression(c.subject),t.ActorAbstractPath.FACTORY.createTermExpression(c.object)]))})).bindingsStream.map(_=>_.delete(b));g=new a.UnionIterator([v,y.bindingsStream],{autoStart:!1})}else c.subject.termType==="Variable"&&p.push(d.bindings([[c.subject,c.object]])),c.object.termType==="Variable"&&p.push(d.bindings([[c.object,c.subject]])),g=y.bindingsStream.prepend(p);return{type:"bindings",bindingsStream:g,metadata:y.metadata}}};return kg.ActorQueryOperationPathZeroOrOne=o,kg}var BH;function uLe(){return BH||(BH=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(oLe(),t)}(Zx)),Zx}var eI={},Vg={},qH;function cLe(){if(qH)return Vg;qH=1,Object.defineProperty(Vg,"__esModule",{value:!0}),Vg.ActorQueryOperationUpdateDeleteInsert=void 0;const t=Vee(),e=kr(),r=Tt(),n=Mt;let a=class extends r.ActorQueryOperationTypedMediated{constructor(o){super(o,"deleteinsert"),this.blankNodeCounter=0}async testOperation(o,u){return r.ActorQueryOperation.throwOnReadOnly(u),!0}async runOperation(o,u){const c=await e.BindingsFactory.create(this.mediatorMergeBindingsContext,u),l=o.where?r.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:o.where,context:u})).bindingsStream:new n.ArrayIterator([c.bindings()],{autoStart:!1});let d,f;o.insert&&(d=new t.BindingsToQuadsIterator(o.insert.map(t.BindingsToQuadsIterator.localizeQuad.bind(null,this.blankNodeCounter)),l.clone()),this.blankNodeCounter++),o.delete&&(f=new t.BindingsToQuadsIterator(o.delete.map(t.BindingsToQuadsIterator.localizeQuad.bind(null,this.blankNodeCounter)),l.clone()),this.blankNodeCounter++);const{execute:h}=await this.mediatorUpdateQuads.mediate({quadStreamInsert:d,quadStreamDelete:f,context:u});return{type:"void",execute:h}}};return Vg.ActorQueryOperationUpdateDeleteInsert=a,Vg}var $H;function lLe(){return $H||($H=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(cLe(),t)}(eI)),eI}var tI={},Hg={},rI={},Qg={},UH;function dLe(){if(UH)return Qg;UH=1,Object.defineProperty(Qg,"__esModule",{value:!0}),Qg.ActorQueryProcess=void 0;const t=st;let e=class extends t.Actor{constructor(n){super(n)}};return Qg.ActorQueryProcess=e,Qg}var kH;function JT(){return kH||(kH=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(dLe(),t)}(rI)),rI}var VH;function fLe(){if(VH)return Hg;VH=1,Object.defineProperty(Hg,"__esModule",{value:!0}),Hg.ActorQueryProcessSequential=void 0;const t=kr(),e=Tt(),r=JT(),n=qt,a=st;let s=class extends r.ActorQueryProcess{constructor(u){super(u)}async test(u){if(u.context.get(n.KeysInitQuery.explain)||u.context.get(new a.ActionContextKey("explain")))throw new Error(`${this.name} is not able to explain queries.`);return!0}async run(u){let{operation:c,context:l}=await this.parse(u.query,u.context);return{operation:c,context:l}=await this.optimize(c,l),{result:await this.evaluate(c,l)}}async parse(u,c){c=(await this.mediatorContextPreprocess.mediate({context:c,initialize:!0})).context;let l;if(typeof u=="string"){c=c.set(n.KeysInitQuery.queryString,u);const d=c.get(n.KeysInitQuery.baseIRI),f=c.get(n.KeysInitQuery.queryFormat),h=await this.mediatorQueryParse.mediate({context:c,query:u,queryFormat:f,baseIRI:d});l=h.operation,h.baseIRI&&(c=c.set(n.KeysInitQuery.baseIRI,h.baseIRI))}else l=u;if(c.has(n.KeysInitQuery.initialBindings)){const d=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,c);l=(0,e.materializeOperation)(l,c.get(n.KeysInitQuery.initialBindings),d),c=c.delete(n.KeysInitQuery.queryString)}return{operation:l,context:c}}async optimize(u,c){return c=c.set(n.KeysInitQuery.query,u),{operation:u,context:c}=await this.mediatorOptimizeQueryOperation.mediate({context:c,operation:u}),c=c.set(n.KeysInitQuery.query,u),{operation:u,context:c}}async evaluate(u,c){const l=await this.mediatorQueryOperation.mediate({context:c,operation:u});return l.context=c,l}};return Hg.ActorQueryProcessSequential=s,Hg}var HH;function hLe(){return HH||(HH=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(fLe(),t)}(tI)),tI}var nI={},zg={},Gg={},Wg={},Kg={},QH;function pLe(){if(QH)return Kg;QH=1,Object.defineProperty(Kg,"__esModule",{value:!0}),Kg.LinkedRdfSourcesAsyncRdfIterator=void 0;const t=ci(),e=Mt;let r=class extends e.BufferedIterator{constructor(a,s,o,u,c,l,d,f){if(super({autoStart:!1,...f}),this.started=!1,this.currentIterators=[],this.iteratorsPendingCreation=0,this.iteratorsPendingTermination=0,this.accumulatedMetadata=Promise.resolve(void 0),this._reading=!1,this.cacheSize=a,this.operation=s,this.queryBindingsOptions=o,this.context=u,this.firstUrl=c,this.maxIterators=l,this.sourceStateGetter=d,this.maxIterators<=0)throw new Error(`LinkedRdfSourcesAsyncRdfIterator.maxIterators must be larger than zero, but got ${this.maxIterators}`)}kickstart(){this.started||this._fillBufferAsync()}getProperty(a,s){return a==="metadata"&&!this.started&&(this.preflightMetadata||(this.preflightMetadata=new Promise((o,u)=>{this.sourceStateGetter({url:this.firstUrl},{}).then(c=>{const l=c.source.queryBindings(this.operation,this.context);l.getProperty("metadata",d=>{d.state=new t.MetadataValidationState,l.destroy(),this.accumulateMetadata(c.metadata,d).then(f=>{const h={...c.metadata,...d,...f};o(h)}).catch(()=>{o({...c.metadata,state:new t.MetadataValidationState})})})}).catch(u)})),this.preflightMetadata.then(o=>this.setProperty("metadata",o)).catch(()=>{})),super.getProperty(a,s)}_end(a){for(const s of this.currentIterators)s.destroy();super._end(a)}_read(a,s){if(this.started){for(const o of this.currentIterators){for(;a>0;){const u=o.read();if(u===null)break;a--,this._push(u)}if(a<=0)break}a>=0&&this.canStartNewIterator()?this.sourceStateGetter({url:this.firstUrl},{}).then(o=>{this.startIteratorsForNextUrls(o.handledDatasets,!1),s()}):s()}else this.started=!0,this.sourceStateGetter({url:this.firstUrl},{}).then(o=>{this.startIterator(o),s()}).catch(o=>setTimeout(()=>this.destroy(o)))}canStartNewIterator(){return this.currentIterators.length+this.iteratorsPendingCreation+this.iteratorsPendingTermination0}startIterator(a){try{const s=a.source.queryBindings(this.operation,this.context,this.queryBindingsOptions);this.currentIterators.push(s);let o=!1,u=!1;s._destination=this,s.on("error",c=>this.destroy(c)),s.on("readable",()=>this._fillBuffer()),s.on("end",()=>{this.currentIterators.splice(this.currentIterators.indexOf(s),1),o=!0,u||this.iteratorsPendingTermination++,u&&this.startIteratorsForNextUrls(a.handledDatasets,!0)}),s.getProperty("metadata",c=>{this.accumulatedMetadata=this.accumulatedMetadata.then(l=>(async()=>(l||(l=a.metadata),this.accumulateMetadata(l,c)))().then(d=>{const f={...a.metadata,...c,...d};return f.state=new t.MetadataValidationState,this.updateMetadata(f),this.preflightMetadata&&this.preflightMetadata.then(h=>h.state.invalidate()).catch(()=>{}),this.getSourceLinks(f).then(h=>Promise.all(h)).then(async h=>{const p=await this.getLinkQueue();for(const m of h)p.push(m,a.link);u=!0,o&&this.iteratorsPendingTermination--,this.startIteratorsForNextUrls(a.handledDatasets,!0)}).catch(h=>this.destroy(h)),f})).catch(l=>(this.destroy(l),{}))})}catch(s){this.destroy(s)}}updateMetadata(a){const s=this.getProperty("metadata");this.setProperty("metadata",a),s==null||s.state.invalidate()}isRunning(){return!this.done}startIteratorsForNextUrls(a,s){this.getLinkQueue().then(o=>{for(;this.canStartNewIterator()&&this.isRunning();){const u=o.pop();if(u)this.iteratorsPendingCreation++,this.sourceStateGetter(u,a).then(c=>{this.iteratorsPendingCreation--,this.startIterator(c)}).catch(c=>this.emit("error",c));else break}s&&this.isCloseable(o,!0)&&this.close()}).catch(o=>this.destroy(o))}isCloseable(a,s){return a.isEmpty()&&!this.areIteratorsRunning()}};return Kg.LinkedRdfSourcesAsyncRdfIterator=r,Kg}var zH;function yLe(){if(zH)return Wg;zH=1,Object.defineProperty(Wg,"__esModule",{value:!0}),Wg.MediatedLinkedRdfSourcesAsyncRdfIterator=void 0;const t=qt,e=Ot,r=xt(),n=pLe(),a=new e.DataFactory,s=new r.Factory;let o=class extends n.LinkedRdfSourcesAsyncRdfIterator{constructor(c,l,d,f,h,p,m,y,g,b,v,_){super(c,l,d,f,p,m,y,g?{maxBufferSize:Number.POSITIVE_INFINITY}:void 0),this.wasForcefullyClosed=!1,this.forceSourceType=h,this.mediatorMetadataAccumulate=b,this.mediatorRdfResolveHypermediaLinks=v,this.mediatorRdfResolveHypermediaLinksQueue=_,this.handledUrls={[p]:!0},this.aggregatedStore=g}close(){if(!this.aggregatedStore){super.close();return}this.getLinkQueue().then(c=>{this.isCloseable(c,!1)?(this.aggregatedStore&&setTimeout(()=>this.aggregatedStore.end()),super.close()):this.wasForcefullyClosed=!0}).catch(c=>super.destroy(c))}destroy(c){if(!this.aggregatedStore){super.destroy(c);return}this.getLinkQueue().then(l=>{c??this.isCloseable(l,!1)?(this.aggregatedStore&&setTimeout(()=>this.aggregatedStore.end()),super.destroy(c)):this.wasForcefullyClosed=!0}).catch(l=>super.destroy(l))}isCloseable(c,l){return(l?c.isEmpty():this.wasForcefullyClosed||c.isEmpty())&&!this.areIteratorsRunning()}canStartNewIterator(){return!this.wasForcefullyClosed&&this.aggregatedStore&&this.aggregatedStore.hasRunningIterators()||super.canStartNewIterator()}canStartNewIteratorConsiderReadable(){return!this.aggregatedStore}isRunning(){return this.aggregatedStore&&this.aggregatedStore.hasRunningIterators()||!this.done}getLinkQueue(){return this.linkQueue||(this.linkQueue=this.mediatorRdfResolveHypermediaLinksQueue.mediate({firstUrl:this.firstUrl,context:this.context}).then(c=>c.linkQueue)),this.linkQueue}async getSourceLinks(c){try{const{links:l}=await this.mediatorRdfResolveHypermediaLinks.mediate({context:this.context,metadata:c});return l.filter(d=>this.handledUrls[d.url]?!1:(this.handledUrls[d.url]=!0,!0))}catch{return[]}}startIterator(c){var l;if(this.aggregatedStore&&!this.aggregatedStore.containedSources.has(c.link.url)){(l=this.aggregatedStore)==null||l.containedSources.add(c.link.url);const d=c.source.queryBindings(s.createPattern(a.variable("s"),a.variable("p"),a.variable("o"),a.variable("g")),this.context.set(t.KeysQueryOperation.unionDefaultGraph,!0)).map(f=>a.quad(f.get("s"),f.get("p"),f.get("o"),f.get("g")));this.aggregatedStore.import(d).on("end",()=>{super.startIterator(c)})}else super.startIterator(c)}async accumulateMetadata(c,l){return(await this.mediatorMetadataAccumulate.mediate({mode:"append",accumulatedMetadata:c,appendingMetadata:l,context:this.context})).metadata}updateMetadata(c){var l;super.updateMetadata(c),(l=this.aggregatedStore)==null||l.setBaseMetadata(c,!0)}};return Wg.MediatedLinkedRdfSourcesAsyncRdfIterator=o,Wg}var Jg={},iI={},Xg={},GH;function Dte(){if(GH)return Xg;GH=1,Object.defineProperty(Xg,"__esModule",{value:!0}),Xg.PendingStreamsIndex=void 0;const t=nr,e=In();let r=class mc{constructor(){this.indexedStreams=new Map,this.allStreams=[]}termToString(a){return a&&a.termType!=="Variable"?(0,t.termToString)(a):mc.ID_VARIABLE}addPatternListener(a,s,o,u,c){this.allStreams.push(a);const l=`${this.termToString(s)}${mc.ID_SEPARATOR}${this.termToString(o)}${mc.ID_SEPARATOR}${this.termToString(u)}${mc.ID_SEPARATOR}${this.termToString(c)}`;let d=this.indexedStreams.get(l);d||(d=[],this.indexedStreams.set(l,d)),d.push(a)}getPendingStreamsForQuad(a){let s=[(0,e.getTerms)(a).map(u=>(0,t.termToString)(u))];for(let u=0;u{if(!this.ended&&!this.store.countQuads(o.subject,o.predicate,o.object,o.graph))for(const u of this.pendingStreams.getPendingStreamsForQuad(o))u.isInitialized&&(u.push(o),u.emit("quad",o))})}import(s){if(this.ended)throw new Error("Attempted to import into an ended StreamingStore");return this.importToListeners(s),this.store.import(s)}match(s,o,u,c){const l=this.store.match(s,o,u,c);let d=l;if(!this.ended){const f=new e.PassThrough({objectMode:!0});this.pendingStreams.addPatternListener(f,s,o,u,c),d=l.pipe(f,{end:!1}),d._pipeSource=l;const h=l._read;l._read=p=>{f.isInitialized=!0,h.call(l,p)}}return d}getStore(){return this.store}};return Yg.StreamingStore=n,Yg}var KH;function gLe(){return KH||(KH=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Dte(),t),r(mLe(),t)}(iI)),iI}var JH;function _Le(){if(JH)return Jg;JH=1,Object.defineProperty(Jg,"__esModule",{value:!0}),Jg.StreamingStoreMetadata=void 0;const t=Tt(),e=ci(),r=gLe();let n=class extends r.StreamingStore{constructor(s,o){super(s),this.started=!1,this.containedSources=new Set,this.runningIterators=new Set,this.iteratorCreatedListeners=new Set,this.baseMetadata={state:new e.MetadataValidationState,cardinality:{type:"exact",value:0},canContainUndefs:!1,variables:[]},this.metadataAccumulator=o}import(s){return this.ended||super.import(s),s}hasRunningIterators(){return this.runningIterators.size>0}match(s,o,u,c){const l=super.match(s,o,u,c),d=new t.ClosableTransformIterator(l,{autoStart:!1,onClose:()=>{this.runningIterators.delete(d)}});let f=this.getStore().countQuads(s,o,u,c);const h={state:new e.MetadataValidationState,cardinality:{type:"estimate",value:f},canContainUndefs:!1};d.setProperty("metadata",h),d.setProperty("lastCount",f),l.on("quad",()=>{d.setProperty("lastCount",++f),this.updateMetadataState(d,f)}),this.runningIterators.add(d);for(const p of this.iteratorCreatedListeners)p();return d}setBaseMetadata(s,o){if(this.baseMetadata={...s},this.baseMetadata.cardinality={type:"exact",value:0},o)for(const u of this.runningIterators){const c=u.getProperty("lastCount");this.updateMetadataState(u,c)}}updateMetadataState(s,o){const u={state:new e.MetadataValidationState,cardinality:{type:"estimate",value:o},canContainUndefs:!1,variables:[]};this.metadataAccumulator(this.baseMetadata,u).then(c=>{c.state=new e.MetadataValidationState;const l=s.getProperty("metadata");s.setProperty("metadata",c),l==null||l.state.invalidate()}).catch(()=>{})}addIteratorCreatedListener(s){this.iteratorCreatedListeners.add(s)}removeIteratorCreatedListener(s){this.iteratorCreatedListeners.delete(s)}};return Jg.StreamingStoreMetadata=n,Jg}var XH;function Cte(){if(XH)return Gg;XH=1,Object.defineProperty(Gg,"__esModule",{value:!0}),Gg.QuerySourceHypermedia=void 0;const t=E4(),e=qt,r=Mt,n=ju(),a=Pt,s=yLe(),o=_Le();let u=class{constructor(l,d,f,h,p,m,y,g){this.referenceValue=d,this.cacheSize=l,this.firstUrl=d,this.forceSourceType=f,this.maxIterators=h,this.mediators=m,this.aggregateStore=p,this.logWarning=y,this.bindingsFactory=g,this.sourcesState=new n.LRUCache({max:this.cacheSize})}async getSelectorShape(l){return(await this.getSourceCached({url:this.firstUrl},{},l,this.getAggregateStore(l))).source.getSelectorShape(l)}queryBindings(l,d,f){const h=this.getAggregateStore(d);if(h&&l.type==="pattern"&&h.started)return new t.QuerySourceRdfJs(h,this.bindingsFactory).queryBindings(l,d);this.sourcesState.size===0&&this.getSourceCached({url:this.firstUrl},{},d,h).catch(m=>p.destroy(m));const p=new s.MediatedLinkedRdfSourcesAsyncRdfIterator(this.cacheSize,l,f,d,this.forceSourceType,this.firstUrl,this.maxIterators,(m,y)=>this.getSourceCached(m,y,d,h),h,this.mediators.mediatorMetadataAccumulate,this.mediators.mediatorRdfResolveHypermediaLinks,this.mediators.mediatorRdfResolveHypermediaLinksQueue);if(h){h.started=!0;const m=()=>p.kickstart();h.addIteratorCreatedListener(m),p.on("end",()=>h.removeIteratorCreatedListener(m))}return p}queryQuads(l,d){return new r.TransformIterator(async()=>(await this.getSourceCached({url:this.firstUrl},{},d,this.getAggregateStore(d))).source.queryQuads(l,d))}async queryBoolean(l,d){return await(await this.getSourceCached({url:this.firstUrl},{},d,this.getAggregateStore(d))).source.queryBoolean(l,d)}async queryVoid(l,d){return await(await this.getSourceCached({url:this.firstUrl},{},d,this.getAggregateStore(d))).source.queryVoid(l,d)}async getSource(l,d,f,h){var v;l.context&&(f=f.merge(l.context));let p=l.url,m,y;try{const _=await this.mediators.mediatorDereferenceRdf.mediate({context:f,url:p});p=_.url;const w=await this.mediators.mediatorMetadata.mediate({context:f,url:p,quads:_.data,triples:(v=_.metadata)==null?void 0:v.triples});w.data.on("error",()=>{}),y=(await this.mediators.mediatorMetadataExtract.mediate({context:f,url:p,metadata:w.metadata,headers:_.headers,requestTime:_.requestTime})).metadata,m=w.data,l.transform&&(m=await l.transform(m))}catch(_){m=new a.Readable,m.read=()=>(setTimeout(()=>m.emit("error",_)),null),{metadata:y}=await this.mediators.mediatorMetadataAccumulate.mediate({context:f,mode:"initialize"}),this.logWarning(`Metadata extraction for ${p} failed: ${_.message}`)}h==null||h.setBaseMetadata(y,!1),h==null||h.containedSources.add(l.url),h==null||h.import(m);const{source:g,dataset:b}=await this.mediators.mediatorQuerySourceIdentifyHypermedia.mediate({context:f,forceSourceType:l.url===this.firstUrl?this.forceSourceType:void 0,handledDatasets:d,metadata:y,quads:m,url:p});return b&&(d[b]=!0),{link:l,source:g,metadata:y,handledDatasets:d}}getSourceCached(l,d,f,h){let p=this.sourcesState.get(l.url);return p||(p=this.getSource(l,d,f,h),(l.url===this.firstUrl||h===void 0)&&this.sourcesState.set(l.url,p),p)}getAggregateStore(l){let d;if(this.aggregateStore){const f=l.get(e.KeysQuerySourceIdentify.hypermediaSourcesAggregatedStores);if(f)return d=f.get(this.firstUrl),d||(d=new o.StreamingStoreMetadata(void 0,async(h,p)=>(await this.mediators.mediatorMetadataAccumulate.mediate({mode:"append",accumulatedMetadata:h,appendingMetadata:p,context:l})).metadata),f.set(this.firstUrl,d)),d}}toString(){return`QuerySourceHypermedia(${this.firstUrl})`}};return Gg.QuerySourceHypermedia=u,Gg}var YH;function bLe(){if(YH)return zg;YH=1,Object.defineProperty(zg,"__esModule",{value:!0}),zg.ActorQuerySourceIdentifyHypermedia=void 0;const t=kr(),e=q1(),r=qt,n=st,a=Cte();let s=class extends e.ActorQuerySourceIdentify{constructor(u){super(u)}async test(u){if(typeof u.querySourceUnidentified.value!="string")throw new TypeError(`${this.name} requires a single query source with a URL value to be present in the context.`);return!0}async run(u){var c;return{querySource:{source:new a.QuerySourceHypermedia(this.cacheSize,u.querySourceUnidentified.value,u.querySourceUnidentified.type,this.maxIterators,this.aggregateTraversalStore&&!!((c=u.querySourceUnidentified.context)!=null&&c.get(r.KeysQuerySourceIdentify.traverse)),{mediatorMetadata:this.mediatorMetadata,mediatorMetadataExtract:this.mediatorMetadataExtract,mediatorMetadataAccumulate:this.mediatorMetadataAccumulate,mediatorDereferenceRdf:this.mediatorDereferenceRdf,mediatorQuerySourceIdentifyHypermedia:this.mediatorQuerySourceIdentifyHypermedia,mediatorRdfResolveHypermediaLinks:this.mediatorRdfResolveHypermediaLinks,mediatorRdfResolveHypermediaLinksQueue:this.mediatorRdfResolveHypermediaLinksQueue},l=>this.logWarn(u.context,l),await t.BindingsFactory.create(this.mediatorMergeBindingsContext,u.context)),context:u.querySourceUnidentified.context??new n.ActionContext}}}};return zg.ActorQuerySourceIdentifyHypermedia=s,zg}var ZH;function vLe(){return ZH||(ZH=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(bLe(),t),r(Cte(),t)}(nI)),nI}var aI={},Zg={},eQ;function wLe(){if(eQ)return Zg;eQ=1,Object.defineProperty(Zg,"__esModule",{value:!0}),Zg.ActorRdfJoinNone=void 0;const t=kr(),e=li(),r=ci(),n=Mt;let a=class extends e.ActorRdfJoin{constructor(o){super(o,{logicalType:"inner",physicalName:"none",limitEntries:0})}async test(o){if(o.entries.length>0)throw new Error(`Actor ${this.name} can only join zero entries`);return await this.getJoinCoefficients()}async getOutput(o){const u=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,o.context);return{result:{bindingsStream:new n.ArrayIterator([u.bindings()],{autoStart:!1}),metadata:()=>Promise.resolve({state:new r.MetadataValidationState,cardinality:{type:"exact",value:1},canContainUndefs:!1,variables:[]}),type:"bindings"}}}async getJoinCoefficients(){return{iterations:0,persistedItems:0,blockingItems:0,requestTime:0}}};return Zg.ActorRdfJoinNone=a,Zg}var tQ;function SLe(){return tQ||(tQ=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(wLe(),t)}(aI)),aI}var sI={},e_={},rQ;function TLe(){if(rQ)return e_;rQ=1,Object.defineProperty(e_,"__esModule",{value:!0}),e_.ActorRdfJoinMultiBind=void 0;const t=kr(),e=Tt(),r=li(),n=qt,a=Mt,s=xt();let o=class cN extends r.ActorRdfJoin{constructor(c){super(c,{logicalType:"inner",physicalName:"bind",canHandleUndefs:!0,isLeaf:!1})}static createBindStream(c,l,d,f,h,p){const m=c==="depth-first",y=g=>{const b=d.map(_=>(0,e.materializeOperation)(_,g,p,{bindFilter:!0})),v=_=>_.merge(g);return new a.TransformIterator(async()=>(await f(b,g)).transform({map:v}),{maxBufferSize:128,autoStart:m})};switch(c){case"depth-first":return new a.MultiTransformIterator(l,{autoStart:!1,multiTransform:y,optional:h});case"breadth-first":return new a.UnionIterator(l.transform({map:y,optional:h}),{autoStart:!1});default:throw new Error(`Received request for unknown bind order: ${c}`)}}async getOutput(c){const l=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,c.context),d=await r.ActorRdfJoin.getEntriesWithMetadatas(c.entries),f=await r.ActorRdfJoin.sortJoinEntries(this.mediatorJoinEntriesSort,d,c.context);this.logDebug(c.context,"First entry for Bind Join: ",()=>({entry:f[0].operation,metadata:f[0].metadata}));for(const[g,b]of f.entries())g!==0&&b.output.bindingsStream.close();const h=f[0].output,p=[...f];p.splice(0,1);const m=c.context.set(n.KeysQueryOperation.joinLeftMetadata,f[0].metadata).set(n.KeysQueryOperation.joinRightMetadatas,p.map(g=>g.metadata));return{result:{type:"bindings",bindingsStream:cN.createBindStream(this.bindOrder,h.bindingsStream,p.map(g=>g.operation),async(g,b)=>{const v=g.length===1?g[0]:cN.FACTORY.createJoin(g);return e.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:v,context:m==null?void 0:m.set(n.KeysQueryOperation.joinBindings,b)})).bindingsStream},!1,l),metadata:()=>this.constructResultMetadata(f,f.map(g=>g.metadata),c.context)},physicalPlanMetadata:{bindIndex:d.indexOf(f[0]),bindOperation:f[0].operation,bindOperationCardinality:f[0].metadata.cardinality,bindOrder:this.bindOrder}}}canBindWithOperation(c){let l=!0;return s.Util.recurseOperation(c,{[s.Algebra.types.EXTEND](){return l=!1,!1},[s.Algebra.types.GROUP](){return l=!1,!1}}),l}async getJoinCoefficients(c,l){const d=await r.ActorRdfJoin.sortJoinEntries(this.mediatorJoinEntriesSort,c.entries.map((w,E)=>({...w,metadata:l[E]})),c.context);l=d.map(w=>w.metadata);const f=r.ActorRdfJoin.getRequestInitialTimes(l),h=r.ActorRdfJoin.getRequestItemTimes(l),p=[...d],m=[...f],y=[...h];if(p.splice(0,1),m.splice(0,1),y.splice(0,1),p.some(w=>!this.canBindWithOperation(w.operation)))throw new Error(`Actor ${this.name} can not bind on Extend and Group operations`);if(p.some(w=>w.operationModified))throw new Error(`Actor ${this.name} can not be used over remaining entries with modified operations`);const g=await Promise.all(p.map(async w=>(await this.mediatorJoinSelectivity.mediate({entries:[d[0],w],context:c.context})).selectivity*this.selectivityModifier)),b=p.map((w,E)=>w.metadata.cardinality.value*g[E]).reduce((w,E)=>w+E,0),v=m.reduce((w,E)=>w+E,0),_=y.reduce((w,E)=>w+E,0);return{iterations:l[0].cardinality.value*b,persistedItems:0,blockingItems:0,requestTime:f[0]+l[0].cardinality.value*(h[0]+v+b*_)}}};return e_.ActorRdfJoinMultiBind=o,o.FACTORY=new s.Factory,e_}var nQ;function Lte(){return nQ||(nQ=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(TLe(),t)}(sI)),sI}var oI={},t_={},iQ;function ELe(){if(iQ)return t_;iQ=1,Object.defineProperty(t_,"__esModule",{value:!0}),t_.ActorRdfJoinOptionalBind=void 0;const t=Lte(),e=kr(),r=Tt(),n=li(),a=qt,s=xt();let o=class extends n.ActorRdfJoin{constructor(c){super(c,{logicalType:"optional",physicalName:"bind",limitEntries:2,canHandleUndefs:!0,isLeaf:!1})}async getOutput(c){const l=await e.BindingsFactory.create(this.mediatorMergeBindingsContext,c.context);c.entries[1].output.bindingsStream.close();const d=c.context.set(a.KeysQueryOperation.joinLeftMetadata,await c.entries[0].output.metadata()).set(a.KeysQueryOperation.joinRightMetadatas,[await c.entries[1].output.metadata()]);return{result:{type:"bindings",bindingsStream:t.ActorRdfJoinMultiBind.createBindStream(this.bindOrder,c.entries[0].output.bindingsStream,[c.entries[1].operation],async(h,p)=>{const m=h[0];return r.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:m,context:d==null?void 0:d.set(a.KeysQueryOperation.joinBindings,p)})).bindingsStream},!0,l),metadata:async()=>await this.constructResultMetadata(c.entries,await n.ActorRdfJoin.getMetadatas(c.entries),c.context,{canContainUndefs:!0})}}}async getJoinCoefficients(c,l){if(n.ActorRdfJoin.overlappingVariables(l).length===0)throw new Error(`Actor ${this.name} only join entries with at least one common variable`);const d=n.ActorRdfJoin.getRequestInitialTimes(l),f=n.ActorRdfJoin.getRequestItemTimes(l);if(c.entries[1].operation.type===s.Algebra.types.EXTEND||c.entries[1].operation.type===s.Algebra.types.GROUP)throw new Error(`Actor ${this.name} can not bind on Extend and Group operations`);const h=(await this.mediatorJoinSelectivity.mediate({entries:c.entries,context:c.context})).selectivity*this.selectivityModifier;return{iterations:l[0].cardinality.value*l[1].cardinality.value*h,persistedItems:0,blockingItems:0,requestTime:d[0]+l[0].cardinality.value*(f[0]+d[1]+h*l[1].cardinality.value*f[1])}}};return t_.ActorRdfJoinOptionalBind=o,t_}var aQ;function ALe(){return aQ||(aQ=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(ELe(),t)}(oI)),oI}var uI={},r_={},sQ;function OLe(){if(sQ)return r_;sQ=1,Object.defineProperty(r_,"__esModule",{value:!0}),r_.ActorQueryProcessExplainParsed=void 0;const t=JT(),e=qt,r=st;let n=class extends t.ActorQueryProcess{constructor(s){super(s)}async test(s){if((s.context.get(e.KeysInitQuery.explain)||s.context.get(new r.ActionContextKey("explain")))!=="parsed")throw new Error(`${this.name} can only explain in 'parsed' mode.`);return!0}async run(s){const{operation:o}=await this.queryProcessor.parse(s.query,s.context);return{result:{explain:!0,type:"parsed",data:o}}}};return r_.ActorQueryProcessExplainParsed=n,r_}var oQ;function RLe(){return oQ||(oQ=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(OLe(),t)}(uI)),uI}var cI={},n_={},uQ;function xLe(){if(uQ)return n_;uQ=1,Object.defineProperty(n_,"__esModule",{value:!0}),n_.ActorQueryProcessExplainLogical=void 0;const t=JT(),e=qt,r=st;let n=class extends t.ActorQueryProcess{constructor(s){super(s)}async test(s){if((s.context.get(e.KeysInitQuery.explain)||s.context.get(new r.ActionContextKey("explain")))!=="logical")throw new Error(`${this.name} can only explain in 'logical' mode.`);return!0}async run(s){let{operation:o,context:u}=await this.queryProcessor.parse(s.query,s.context);return{operation:o,context:u}=await this.queryProcessor.optimize(o,u),{result:{explain:!0,type:"logical",data:o}}}};return n_.ActorQueryProcessExplainLogical=n,n_}var cQ;function ILe(){return cQ||(cQ=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(xLe(),t)}(cI)),cI}var lI={},i_={},sc={},lQ;function jte(){if(lQ)return sc;lQ=1,Object.defineProperty(sc,"__esModule",{value:!0}),sc.numberToString=sc.MemoryPhysicalQueryPlanLogger=void 0;const t=nr;let e=class{constructor(){this.planNodes=new Map}logOperation(a,s,o,u,c,l){const d={actor:c,logicalOperator:a,physicalOperator:s,rawNode:o,children:[],metadata:l};if(this.planNodes.set(o,d),this.rootNode){if(!u)throw new Error("Detected more than one parent-less node");const f=this.planNodes.get(u);if(!f)throw new Error("Could not find parent node");f.children.push(d)}else{if(u)throw new Error("No root node has been set yet, while a parent is being referenced");this.rootNode=d}}stashChildren(a,s){const o=this.planNodes.get(a);if(!o)throw new Error("Could not find plan node");o.children=s?o.children.filter(s):[]}unstashChild(a,s){const o=this.planNodes.get(a);if(o){const u=this.planNodes.get(s);if(!u)throw new Error("Could not find plan parent node");u.children.push(o)}}appendMetadata(a,s){const o=this.planNodes.get(a);o&&(o.metadata={...o.metadata,...s})}toJson(){return this.rootNode?this.planNodeToJson(this.rootNode):{}}planNodeToJson(a){var o;const s={logical:a.logicalOperator,physical:a.physicalOperator,...this.getLogicalMetadata(a.rawNode),...this.compactMetadata(a.metadata)};if(a.children.length>0&&(s.children=a.children.map(u=>this.planNodeToJson(u))),s.physical==="bind"&&s.children){const u={};for(const l of s.children){const d=((o=l.children)==null?void 0:o.at(-1))??l,f=this.getPlanHash(d).join(",");u[f]||(u[f]=[]),u[f].push(l)}const c=[];for(const l of Object.values(u))c.push({occurrences:l.length,firstOccurrence:l[0]});s.childrenCompact=c,delete s.children}return s}getPlanHash(a){let s=[`${a.logical}-${a.physical}`];return a.children?s=[...s,...a.children.flatMap(o=>this.getPlanHash(o))]:a.childrenCompact&&(s=[...s,...a.childrenCompact.flatMap(o=>this.getPlanHash(o.firstOccurrence))]),s}compactMetadata(a){return Object.fromEntries(Object.entries(a).map(([s,o])=>[s,this.compactMetadataValue(o)]))}compactMetadataValue(a){return a&&typeof a=="object"&&"termType"in a?this.getLogicalMetadata(a):a}getLogicalMetadata(a){var o;const s={};if("type"in a){const u=a;switch((o=u.metadata)!=null&&o.scopedSource&&(s.source=u.metadata.scopedSource.source.toString()),u.type){case"pattern":s.pattern=this.quadToString(u);break;case"project":s.variables=u.variables.map(c=>c.value);break}}return s}quadToString(a){return`${(0,t.termToString)(a.subject)} ${(0,t.termToString)(a.predicate)} ${(0,t.termToString)(a.object)}${a.graph.termType==="DefaultGraph"?"":` ${(0,t.termToString)(a.graph)}`}`}toCompactString(){const a=this.toJson(),s=[],o=new Map;if("logical"in a?this.nodeToCompactString(s,o,"",a):s.push("Empty"),o.size>0){s.push(""),s.push("sources:");for(const[u,c]of o.entries())s.push(` ${c}: ${u}`)}return s.join(` -`)}nodeToCompactString(a,s,o,u,c){let l;u.source&&(l=s.get(u.source),l===void 0&&(l=s.size,s.set(u.source,l))),a.push(`${o}${u.logical}${u.physical?`(${u.physical})`:""}${u.pattern?` (${u.pattern})`:""}${u.variables?` (${u.variables.join(",")})`:""}${u.bindOperation?` bindOperation:(${u.bindOperation.pattern}) bindCardEst:${u.bindOperationCardinality.type==="estimate"?"~":""}${r(u.bindOperationCardinality.value)}`:""}${u.cardinality?` cardEst:${u.cardinality.type==="estimate"?"~":""}${r(u.cardinality.value)}`:""}${u.source?` src:${l}`:""}${u.cardinalityReal?` cardReal:${u.cardinalityReal}`:""}${u.timeSelf?` timeSelf:${r(u.timeSelf)}ms`:""}${u.timeLife?` timeLife:${r(u.timeLife)}ms`:""}${c?` ${c}`:""}`);for(const d of u.children??[])this.nodeToCompactString(a,s,`${o} `,d);for(const d of u.childrenCompact??[])this.nodeToCompactString(a,s,`${o} `,d.firstOccurrence,`compacted-occurrences:${d.occurrences}`)}};sc.MemoryPhysicalQueryPlanLogger=e;function r(n){return n.toLocaleString("en-US",{minimumFractionDigits:0,maximumFractionDigits:3})}return sc.numberToString=r,sc}var dQ;function PLe(){if(dQ)return i_;dQ=1,Object.defineProperty(i_,"__esModule",{value:!0}),i_.ActorQueryProcessExplainPhysical=void 0;const t=JT(),e=qt,r=st,n=jte();let a=class extends t.ActorQueryProcess{constructor(o){super(o)}async test(o){const u=o.context.get(e.KeysInitQuery.explain)||o.context.get(new r.ActionContextKey("explain"));if(u!=="physical"&&u!=="physical-json")throw new Error(`${this.name} can only explain in 'physical' or 'physical-json' mode.`);return!0}async run(o){let{operation:u,context:c}=await this.queryProcessor.parse(o.query,o.context);({operation:u,context:c}=await this.queryProcessor.optimize(u,c));const l=new n.MemoryPhysicalQueryPlanLogger;c=c.set(e.KeysInitQuery.physicalQueryPlanLogger,l);const d=await this.queryProcessor.evaluate(u,c);switch(d.type){case"bindings":await d.bindingsStream.toArray();break;case"quads":await d.quadStream.toArray();break;case"boolean":await d.execute();break;case"void":await d.execute();break}const f=o.context.get(e.KeysInitQuery.explain)??o.context.getSafe(new r.ActionContextKey("explain"));return{result:{explain:!0,type:f,data:f==="physical"?l.toCompactString():l.toJson()}}}};return i_.ActorQueryProcessExplainPhysical=a,i_}var fQ;function NLe(){return fQ||(fQ=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(PLe(),t),r(jte(),t)}(lI)),lI}var dI={},a_={},hQ;function DLe(){if(hQ)return a_;hQ=1,Object.defineProperty(a_,"__esModule",{value:!0}),a_.ActorOptimizeQueryOperationPruneEmptySourceOperations=void 0;const t=Ua(),e=Tt(),r=qt,n=Ot,a=xt(),s=new a.Factory,o=new n.DataFactory;let u=class extends t.ActorOptimizeQueryOperation{constructor(l){super(l)}async test(l){if(e.ActorQueryOperation.getOperationSource(l.operation))throw new Error(`Actor ${this.name} does not work with top-level operation sources.`);return!0}async run(l){let d=l.operation;const f=[],h=this;a.Util.recurseOperation(d,{[a.Algebra.types.UNION](m){return h.collectMultiOperationInputs(m.input,f,a.Algebra.types.PATTERN),!0},[a.Algebra.types.ALT](m){return h.collectMultiOperationInputs(m.input,f,a.Algebra.types.LINK),!1},[a.Algebra.types.SERVICE](){return!1}});const p=new Set;return await Promise.all(f.map(async m=>{const y=m.type==="link"?s.createPattern(o.variable("?s"),m.iri,o.variable("?o")):m;await this.hasSourceResults(e.ActorQueryOperation.getOperationSource(m),y,l.context)||p.add(m)})),p.size>0&&(this.logDebug(l.context,`Pruning ${p.size} source-specific operations`),d=a.Util.mapOperation(d,{[a.Algebra.types.UNION](m,y){return h.mapMultiOperation(m,p,g=>y.createUnion(g))},[a.Algebra.types.ALT](m,y){return h.mapMultiOperation(m,p,g=>y.createAlt(g))}}),d=a.Util.mapOperation(d,{[a.Algebra.types.PROJECT](m,y){let g=!1;return a.Util.recurseOperation(m,{[a.Algebra.types.UNION](b){return b.input.length===0&&(g=!0),!0},[a.Algebra.types.ALT](b){return b.input.length===0&&(g=!0),!0}}),g?{recurse:!1,result:y.createUnion([])}:{recurse:!0,result:m}}})),{operation:d,context:l.context}}collectMultiOperationInputs(l,d,f){for(const h of l)e.ActorQueryOperation.getOperationSource(h)&&h.type===f&&d.push(h)}mapMultiOperation(l,d,f){const h=l.input.filter(p=>!d.has(p));return h.length===l.input.length?{result:l,recurse:!0}:h.length===0?{result:f([]),recurse:!1}:h.length===1?{result:h[0],recurse:!0}:{result:f(h),recurse:!0}}async hasSourceResults(l,d,f){var p;if((p=l.context)!=null&&p.get(r.KeysQuerySourceIdentify.traverse))return!0;if(this.useAskIfSupported){const m=s.createAsk(d);if(e.ActorQueryOperation.doesShapeAcceptOperation(await l.source.getSelectorShape(f),m))return l.source.queryBoolean(m,f)}const h=l.source.queryBindings(d,f);return new Promise((m,y)=>{h.on("error",y),h.getProperty("metadata",g=>{h.destroy(),m(g.cardinality.value>0)})})}};return a_.ActorOptimizeQueryOperationPruneEmptySourceOperations=u,a_}var pQ;function CLe(){return pQ||(pQ=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(DLe(),t)}(dI)),dI}var fI={},s_={},yQ;function LLe(){if(yQ)return s_;yQ=1,Object.defineProperty(s_,"__esModule",{value:!0}),s_.ActorQuerySourceIdentifySerialized=void 0;const t=q1(),e=dte(),r=Pt;let n=class extends t.ActorQuerySourceIdentify{constructor(s){super(s)}async test(s){if(!this.isStringSource(s.querySourceUnidentified))throw new Error(`${this.name} requires a single query source with serialized type to be present in the context.`);return!0}async run(s){return await this.mediatorQuerySourceIdentify.mediate({querySourceUnidentified:{type:"rdfjs",value:await this.getRdfSource(s.context,s.querySourceUnidentified),context:s.querySourceUnidentified.context},context:s.context})}async getRdfSource(s,o){const u=new r.Readable({objectMode:!0});u._read=()=>{},u.push(o.value),u.push(null);const c={context:s,handle:{metadata:{baseIRI:o.baseIRI},data:u,context:s},handleMediaType:o.mediaType},l=await this.mediatorRdfParse.mediate(c);return await(0,e.storeStream)(l.handle.data)}isStringSource(s){return"type"in s?s.type==="serialized":typeof s.value!="string"?!1:"mediaType"in s}};return s_.ActorQuerySourceIdentifySerialized=n,s_}var mQ;function jLe(){return mQ||(mQ=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(LLe(),t)}(fI)),fI}var hI={},o_={},gQ;function MLe(){if(gQ)return o_;gQ=1,Object.defineProperty(o_,"__esModule",{value:!0}),o_.ActorOptimizeQueryOperationJoinConnected=void 0;const t=Ua(),e=xt();let r=class Kw extends t.ActorOptimizeQueryOperation{async test(a){return!0}async run(a){return{operation:e.Util.mapOperation(a.operation,{join(o,u){return{recurse:!1,result:Kw.cluster(o,u)}}}),context:a.context}}static cluster(a,s){const o=a.input.map(d=>({inScopeVariables:Object.fromEntries(e.Util.inScopeVariables(d).map(f=>[f.value,!0])),entries:[d]}));let u,c=o;do u=c,c=Kw.clusterIteration(u);while(u.length!==c.length);const l=c.map(d=>s.createJoin(d.entries));return l.length===1?l[0]:s.createJoin(l,!1)}static clusterIteration(a){const s=[];for(const o of a){let u=!1;for(const c of s)if(Kw.haveOverlappingVariables(o.inScopeVariables,c.inScopeVariables)){c.entries=[...c.entries,...o.entries],c.inScopeVariables={...c.inScopeVariables,...o.inScopeVariables},u=!0;break}u||s.push({inScopeVariables:o.inScopeVariables,entries:o.entries})}return s}static haveOverlappingVariables(a,s){for(const o of Object.keys(a))if(s[o])return!0;return!1}};return o_.ActorOptimizeQueryOperationJoinConnected=r,o_}var _Q;function FLe(){return _Q||(_Q=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(MLe(),t)}(hI)),hI}var pI={},u_={},bQ;function BLe(){if(bQ)return u_;bQ=1,Object.defineProperty(u_,"__esModule",{value:!0}),u_.ActorOptimizeQueryOperationBgpToJoin=void 0;const t=Ua(),e=xt();let r=class extends t.ActorOptimizeQueryOperation{async test(a){return!0}async run(a){return{operation:e.Util.mapOperation(a.operation,{bgp(o,u){return{recurse:!1,result:u.createJoin(o.patterns)}}}),context:a.context}}};return u_.ActorOptimizeQueryOperationBgpToJoin=r,u_}var vQ;function qLe(){return vQ||(vQ=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(BLe(),t)}(pI)),pI}var yI={},c_={},wQ;function $Le(){if(wQ)return c_;wQ=1,Object.defineProperty(c_,"__esModule",{value:!0}),c_.ActorOptimizeQueryOperationJoinBgp=void 0;const t=Ua(),e=xt();let r=class extends t.ActorOptimizeQueryOperation{async test(a){return!0}async run(a){return{operation:e.Util.mapOperation(a.operation,{join(o,u){return o.input.every(c=>c.type==="bgp")?{recurse:!1,result:u.createBgp(o.input.flatMap(c=>c.patterns))}:{recurse:!1,result:o}}}),context:a.context}}};return c_.ActorOptimizeQueryOperationJoinBgp=r,c_}var SQ;function ULe(){return SQ||(SQ=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r($Le(),t)}(yI)),yI}var mI={},l_={},TQ;function kLe(){if(TQ)return l_;TQ=1,Object.defineProperty(l_,"__esModule",{value:!0}),l_.ActorOptimizeQueryOperationAssignSourcesExhaustive=void 0;const t=Ua(),e=Tt(),r=b4(),n=qt,a=xt();let s=class extends t.ActorOptimizeQueryOperation{constructor(u){super(u)}async test(u){return!0}async run(u){const c=u.context.get(n.KeysQueryOperation.querySources)??[];if(c.length===0)return{operation:u.operation,context:u.context};if(c.length===1){const l=c[0],d=u.context.get(n.KeysRdfUpdateQuads.destination);if(!d||l.source.referenceValue===(0,r.getDataDestinationValue)(d))try{const f=await l.source.getSelectorShape(u.context);if(e.ActorQueryOperation.doesShapeAcceptOperation(f,u.operation))return{operation:e.ActorQueryOperation.assignOperationSource(u.operation,l),context:u.context}}catch{}}return{operation:this.assignExhaustive(u.operation,c),context:u.context.delete(n.KeysInitQuery.queryString)}}assignExhaustive(u,c){const l=this;return a.Util.mapOperation(u,{[a.Algebra.types.PATTERN](d,f){return c.length===1?{result:e.ActorQueryOperation.assignOperationSource(d,c[0]),recurse:!1}:{result:f.createUnion(c.map(h=>e.ActorQueryOperation.assignOperationSource(d,h))),recurse:!1}},[a.Algebra.types.LINK](d,f){return c.length===1?{result:e.ActorQueryOperation.assignOperationSource(d,c[0]),recurse:!1}:{result:f.createAlt(c.map(h=>e.ActorQueryOperation.assignOperationSource(d,h))),recurse:!1}},[a.Algebra.types.NPS](d,f){return c.length===1?{result:e.ActorQueryOperation.assignOperationSource(d,c[0]),recurse:!1}:{result:f.createAlt(c.map(h=>e.ActorQueryOperation.assignOperationSource(d,h))),recurse:!1}},[a.Algebra.types.SERVICE](d){return{result:d,recurse:!1}},[a.Algebra.types.CONSTRUCT](d,f){return{result:f.createConstruct(l.assignExhaustive(d.input,c),d.template),recurse:!1}},[a.Algebra.types.DELETE_INSERT](d,f){return{result:f.createDeleteInsert(d.delete,d.insert,d.where?l.assignExhaustive(d.where,c):void 0),recurse:!1}}})}};return l_.ActorOptimizeQueryOperationAssignSourcesExhaustive=s,l_}var EQ;function VLe(){return EQ||(EQ=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(kLe(),t)}(mI)),mI}var gI={},d_={},AQ;function HLe(){if(AQ)return d_;AQ=1,Object.defineProperty(d_,"__esModule",{value:!0}),d_.ActorOptimizeQueryOperationDescribeToConstructsSubject=void 0;const t=Ua(),e=Ot,r=xt(),n=new e.DataFactory,a=new r.Factory;let s=class extends t.ActorOptimizeQueryOperation{constructor(u){super(u)}async test(u){if(u.operation.type!==r.Algebra.types.DESCRIBE)throw new Error(`Actor ${this.name} only supports describe operations, but got ${u.operation.type}`);return!0}async run(u){const c=u.operation,l=c.terms.filter(f=>f.termType!=="Variable").map(f=>{const h=[n.quad(f,n.variable("__predicate"),n.variable("__object"))];return h.forEach(m=>m.type="pattern"),{input:{type:r.Algebra.types.BGP,patterns:h},template:h,type:"construct"}});if(l.length!==c.terms.length){let f=[];c.terms.filter(h=>h.termType==="Variable").forEach((h,p)=>{const m=[n.quad(h,n.variable(`__predicate${p}`),n.variable(`__object${p}`))];m.forEach(y=>y.type="pattern"),f=[...f,...m]}),l.push({input:{type:r.Algebra.types.JOIN,input:[c.input,{type:r.Algebra.types.BGP,patterns:f}]},template:f,type:r.Algebra.types.CONSTRUCT})}return{operation:a.createUnion(l,!1),context:u.context}}};return d_.ActorOptimizeQueryOperationDescribeToConstructsSubject=s,d_}var OQ;function QLe(){return OQ||(OQ=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(HLe(),t)}(gI)),gI}var zLe=function(t){const e=new(bEe()).LoggerVoid,r=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-init/^3.0.0/components/ActorInit.jsonld#ActorInit_default_bus"}),n=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-context-preprocess/^3.0.0/components/ActorContextPreprocess.jsonld#ActorContextPreprocess_default_bus"}),a=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-hash-bindings/^3.0.0/components/ActorHashBindings.jsonld#ActorHashBindings_default_bus"}),s=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-optimize-query-operation/^3.0.0/components/ActorOptimizeQueryOperation.jsonld#ActorOptimizeQueryOperation_default_bus"}),o=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-query-parse/^3.0.0/components/ActorQueryParse.jsonld#ActorQueryParse_default_bus"}),u=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-query-result-serialize/^3.0.0/components/ActorQueryResultSerialize.jsonld#ActorQueryResultSerialize_default_bus"}),c=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-query-source-identify-hypermedia/^3.0.0/components/ActorQuerySourceIdentifyHypermedia.jsonld#ActorQuerySourceIdentifyHypermedia_default_bus"}),l=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-dereference/^3.0.0/components/ActorDereference.jsonld#ActorDereference_default_bus"}),d=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-dereference-rdf/^3.0.0/components/ActorDereferenceRdf.jsonld#ActorDereferenceRdf_default_bus"}),f=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-join-entries-sort/^3.0.0/components/ActorRdfJoinEntriesSort.jsonld#ActorRdfJoinEntriesSort_default_bus"}),h=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-join-selectivity/^3.0.0/components/ActorRdfJoinSelectivity.jsonld#ActorRdfJoinSelectivity_default_bus"}),p=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-metadata/^3.0.0/components/ActorRdfMetadata.jsonld#ActorRdfMetadata_default_bus"}),m=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-metadata-accumulate/^3.0.0/components/ActorRdfMetadataAccumulate.jsonld#ActorRdfMetadataAccumulate_default_bus"}),y=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-metadata-extract/^3.0.0/components/ActorRdfMetadataExtract.jsonld#ActorRdfMetadataExtract_default_bus"}),g=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-parse/^3.0.0/components/ActorRdfParse.jsonld#ActorRdfParse_default_bus"}),b=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-parse-html/^3.0.0/components/ActorRdfParseHtml.jsonld#ActorRdfParseHtml_default_bus"}),v=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-resolve-hypermedia-links-queue/^3.0.0/components/ActorRdfResolveHypermediaLinksQueue.jsonld#ActorRdfResolveHypermediaLinksQueue_default_bus"}),_=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-resolve-hypermedia-links/^3.0.0/components/ActorRdfResolveHypermediaLinks.jsonld#ActorRdfResolveHypermediaLinks_default_bus"}),w=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-serialize/^3.0.0/components/ActorRdfSerialize.jsonld#ActorRdfSerialize_default_bus"}),E=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-update-hypermedia/^3.0.0/components/ActorRdfUpdateHypermedia.jsonld#ActorRdfUpdateHypermedia_default_bus"}),O=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-update-quads/^3.0.0/components/ActorRdfUpdateQuads.jsonld#ActorRdfUpdateQuads_default_bus"}),L=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-http/^3.0.0/components/ActorHttp.jsonld#ActorHttp_default_bus"}),F=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-http/^3.0.0/components/ActorHttp.jsonld#ActorHttp_fallback_bus"}),x=new(Tt()).BusQueryOperation({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-query-operation/^3.0.0/components/ActorQueryOperation.jsonld#ActorQueryOperation_default_bus"}),P=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-query-process/^3.0.0/components/ActorQueryProcess.jsonld#ActorQueryProcess_default_bus"}),j=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-query-source-identify/^3.0.0/components/ActorQuerySourceIdentify.jsonld#ActorQuerySourceIdentify_default_bus"}),N=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-join/^3.0.0/components/ActorRdfJoin.jsonld#ActorRdfJoin_default_bus"}),V=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-http-invalidate/^3.0.0/components/ActorHttpInvalidate.jsonld#ActorHttpInvalidate_default_bus"}),$=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-merge-bindings-context/^3.0.0/components/ActorMergeBindingsContext.jsonld#ActorMergeBindingsContext_default_bus"});new(WEe()).ActorContextPreprocessConvertShortcuts({contextKeyShortcuts:{baseIRI:"@comunica/actor-init-query:baseIRI",datetime:"@comunica/actor-http-memento:datetime",destination:"@comunica/bus-rdf-update-quads:destination",explain:"@comunica/actor-init-query:explain",extensionFunctionCreator:"@comunica/actor-init-query:extensionFunctionCreator",extensionFunctions:"@comunica/actor-init-query:extensionFunctions",fetch:"@comunica/bus-http:fetch",functionArgumentsCache:"@comunica/actor-init-query:functionArgumentsCache",httpAuth:"@comunica/bus-http:auth",httpBodyTimeout:"@comunica/bus-http:http-body-timeout",httpIncludeCredentials:"@comunica/bus-http:include-credentials",httpProxyHandler:"@comunica/actor-http-proxy:httpProxyHandler",httpRetryCount:"@comunica/bus-http:http-retry-count",httpRetryDelay:"@comunica/bus-http:http-retry-delay",httpRetryOnServerError:"@comunica/bus-http:http-retry-on-server-error",httpTimeout:"@comunica/bus-http:http-timeout",initialBindings:"@comunica/actor-init-query:initialBindings",lenient:"@comunica/actor-init-query:lenient",log:"@comunica/core:log",noCache:"@comunica/actor-init-query:noCache",queryFormat:"@comunica/actor-init-query:queryFormat",queryTimestamp:"@comunica/actor-init-query:queryTimestamp",readOnly:"@comunica/bus-query-operation:readOnly",recoverBrokenLinks:"@comunica/bus-http-wayback:recover-broken-links",sources:"@comunica/actor-init-query:querySourcesUnidentified",traverse:"@comunica/bus-query-source-identify:traverse",unionDefaultGraph:"@comunica/bus-query-operation:unionDefaultGraph"},name:"urn:comunica:default:context-preprocess/actors#convert-shortcuts",bus:n}),new(JEe()).ActorContextPreprocessSetDefaults({logger:e,name:"urn:comunica:default:context-preprocess/actors#set-defaults",bus:n}),new(YEe()).ActorContextPreprocessSourceToDestination({name:"urn:comunica:default:context-preprocess/actors#source-to-destination",bus:n});const q=new(PY()).ActorContextPreprocessQuerySourceSkolemize({name:"urn:comunica:default:context-preprocess/actors#query-source-skolemize",bus:n}),H=new(J8()).MediatorCombinePipeline({name:"urn:comunica:default:context-preprocess/mediators#main",bus:n});new(aAe()).ActorHashBindingsSha1({name:"urn:comunica:default:hash-bindings/actors#sha1",bus:a});const X=new(Qn()).MediatorRace({name:"urn:comunica:default:hash-bindings/mediators#main",bus:a});new(cAe()).ActorOptimizeQueryOperationRewriteCopy({name:"urn:comunica:default:optimize-query-operation/actors#rewrite-copy",bus:s}),new(dAe()).ActorOptimizeQueryOperationRewriteMove({name:"urn:comunica:default:optimize-query-operation/actors#rewrite-move",bus:s}),new(hAe()).ActorOptimizeQueryOperationRewriteAdd({name:"urn:comunica:default:optimize-query-operation/actors#rewrite-add",bus:s});const Y=new(yAe()).ActorOptimizeQueryOperationGroupSources({name:"urn:comunica:default:optimize-query-operation/actors#group-sources",bus:s}),he=new(J8()).MediatorCombinePipeline({filterErrors:!0,name:"urn:comunica:default:optimize-query-operation/mediators#main",bus:s});new(_Ae()).ActorQueryParseSparql({prefixes:{dbpedia:"http://dbpedia.org/resource/","dbpedia-owl":"http://dbpedia.org/ontology/",dbpprop:"http://dbpedia.org/property/",dc:"http://purl.org/dc/terms/",dc11:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",foaf:"http://xmlns.com/foaf/0.1/",geo:"http://www.w3.org/2003/01/geo/wgs84_pos#",owl:"http://www.w3.org/2002/07/owl#",rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",schema:"http://schema.org/",skos:"http://www.w3.org/2008/05/skos#",xsd:"http://www.w3.org/2001/XMLSchema#"},name:"urn:comunica:default:query-parse/actors#sparql",bus:o}),new(Z3e()).ActorQueryParseGraphql({name:"urn:comunica:default:query-parse/actors#graphql",bus:o});const Te=new(Qn()).MediatorRace({name:"urn:comunica:default:query-parse/mediators#main",bus:o});new(iOe()).ActorQueryResultSerializeJson({mediaTypePriorities:{"application/json":1},mediaTypeFormats:{"application/json":"https://comunica.linkeddatafragments.org/#results_JSON"},name:"urn:comunica:default:query-result-serialize/actors#json",bus:u}),new(sOe()).ActorQueryResultSerializeSimple({mediaTypePriorities:{simple:.9},mediaTypeFormats:{simple:"https://comunica.linkeddatafragments.org/#results_simple"},name:"urn:comunica:default:query-result-serialize/actors#simple",bus:u}),new(uOe()).ActorQueryResultSerializeSparqlCsv({mediaTypePriorities:{"text/csv":.75},mediaTypeFormats:{"text/csv":"http://www.w3.org/ns/formats/SPARQL_Results_CSV"},name:"urn:comunica:default:query-result-serialize/actors#csv",bus:u}),new(dOe()).ActorQueryResultSerializeSparqlTsv({mediaTypePriorities:{"text/tab-separated-values":.75},mediaTypeFormats:{"text/tab-separated-values":"http://www.w3.org/ns/formats/SPARQL_Results_TSV"},name:"urn:comunica:default:query-result-serialize/actors#sparql-tsv",bus:u}),new(pOe()).ActorQueryResultSerializeSparqlXml({mediaTypePriorities:{"application/sparql-results+xml":.8},mediaTypeFormats:{"application/sparql-results+xml":"http://www.w3.org/ns/formats/SPARQL_Results_XML"},name:"urn:comunica:default:query-result-serialize/actors#sparql-xml",bus:u}),new(mOe()).ActorQueryResultSerializeTable({columnWidth:50,mediaTypePriorities:{table:.6},mediaTypeFormats:{table:"https://comunica.linkeddatafragments.org/#results_table"},name:"urn:comunica:default:query-result-serialize/actors#table",bus:u}),new(MOe()).ActorQueryResultSerializeTree({mediaTypePriorities:{tree:.5},mediaTypeFormats:{tree:"https://comunica.linkeddatafragments.org/#results_tree"},name:"urn:comunica:default:query-result-serialize/actors#tree",bus:u});const Ne=new(Qn()).MediatorRace({name:"urn:comunica:default:query-result-serialize/mediators#serialize",bus:u}),$e=new(Fo()).MediatorCombineUnion({field:"mediaTypes",name:"urn:comunica:default:query-result-serialize/mediators#mediaType",bus:u}),de=new(Fo()).MediatorCombineUnion({field:"mediaTypeFormats",name:"urn:comunica:default:query-result-serialize/mediators#mediaTypeFormat",bus:u}),ce=new(Ep()).MediatorNumber({field:"filterFactor",type:"max",ignoreErrors:!0,name:"urn:comunica:default:query-source-identify-hypermedia/mediators#main",bus:c}),xe=new(kOe()).ActorDereferenceFallback({name:"urn:comunica:default:dereference/actors#fallback",bus:l}),Pe=new(Qn()).MediatorRace({name:"urn:comunica:default:dereference/mediators#main",bus:l}),we=new(Qn()).MediatorRace({name:"urn:comunica:default:dereference-rdf/mediators#main",bus:d});new(zOe()).ActorRdfJoinEntriesSortCardinality({name:"urn:comunica:default:rdf-join-entries-sort/actors#cardinality",bus:f});const Re=new(Qn()).MediatorRace({name:"urn:comunica:default:rdf-join-entries-sort/mediators#main",bus:f});new(JOe()).ActorRdfJoinSelectivityVariableCounting({name:"urn:comunica:default:rdf-join-selectivity/actors#variable-counting",bus:h});const Se=new(Ep()).MediatorNumber({field:"accuracy",type:"max",ignoreErrors:!0,name:"urn:comunica:default:rdf-join-selectivity/mediators#main",bus:h});new(ZOe()).ActorRdfMetadataPrimaryTopic({metadataToData:!1,dataToMetadataOnInvalidMetadataGraph:!0,name:"urn:comunica:default:rdf-metadata/actors#primary-topic",bus:p}),new(tRe()).ActorRdfMetadataAll({name:"urn:comunica:default:rdf-metadata/actors#all",bus:p});const z=new(Qn()).MediatorRace({name:"urn:comunica:default:rdf-metadata/mediators#main",bus:p});new(iRe()).ActorRdfMetadataAccumulateCanContainUndefs({name:"urn:comunica:default:rdf-metadata-accumulate/actors#cancontainundefs",bus:m}),new(sRe()).ActorRdfMetadataAccumulateCardinality({name:"urn:comunica:default:rdf-metadata-accumulate/actors#cardinality",bus:m}),new(uRe()).ActorRdfMetadataAccumulatePageSize({name:"urn:comunica:default:rdf-metadata-accumulate/actors#pagesize",bus:m}),new(lRe()).ActorRdfMetadataAccumulateRequestTime({name:"urn:comunica:default:rdf-metadata-accumulate/actors#requesttime",bus:m});const M=new(Fo()).MediatorCombineUnion({field:"metadata",name:"urn:comunica:default:rdf-metadata-accumulate/mediators#main",bus:m});new(pRe()).ActorRdfMetadataExtractHydraControls({name:"urn:comunica:default:rdf-metadata-extract/actors#hydra-controls",bus:y}),new(mRe()).ActorRdfMetadataExtractHydraCount({predicates:["http://www.w3.org/ns/hydra/core#totalItems","http://rdfs.org/ns/void#triples"],name:"urn:comunica:default:rdf-metadata-extract/actors#hydra-count",bus:y}),new(_Re()).ActorRdfMetadataExtractHydraPagesize({predicates:["http://www.w3.org/ns/hydra/core#itemsPerPage"],name:"urn:comunica:default:rdf-metadata-extract/actors#hydra-pagesize",bus:y}),new(vRe()).ActorRdfMetadataExtractRequestTime({name:"urn:comunica:default:rdf-metadata-extract/actors#request-time",bus:y}),new(SRe()).ActorRdfMetadataExtractAllowHttpMethods({name:"urn:comunica:default:rdf-metadata-extract/actors#allow-http-methods",bus:y}),new(ERe()).ActorRdfMetadataExtractPutAccepted({name:"urn:comunica:default:rdf-metadata-extract/actors#put-accepted",bus:y}),new(ORe()).ActorRdfMetadataExtractPatchSparqlUpdate({name:"urn:comunica:default:rdf-metadata-extract/actors#patch-sparql-update",bus:y}),new(xRe()).ActorRdfMetadataExtractSparqlService({inferHttpsEndpoint:!0,name:"urn:comunica:default:rdf-metadata-extract/actors#sparql-service",bus:y});const k=new(Fo()).MediatorCombineUnion({filterErrors:!0,field:"metadata",name:"urn:comunica:default:rdf-metadata-extract/mediators#main",bus:y});new(rxe()).ActorRdfParseN3({mediaTypePriorities:{"application/n-quads":1,"application/n-triples":.8,"application/trig":.95,"text/n3":.35,"text/turtle":.6},mediaTypeFormats:{"application/n-quads":"http://www.w3.org/ns/formats/N-Quads","application/n-triples":"http://www.w3.org/ns/formats/N-Triples","application/trig":"http://www.w3.org/ns/formats/TriG","text/n3":"http://www.w3.org/ns/formats/N3","text/turtle":"http://www.w3.org/ns/formats/Turtle"},priorityScale:1,name:"urn:comunica:default:rdf-parse/actors#n3",bus:g}),new(Jxe()).ActorRdfParseRdfXml({mediaTypePriorities:{"application/rdf+xml":1},mediaTypeFormats:{"application/rdf+xml":"http://www.w3.org/ns/formats/RDF_XML"},priorityScale:.5,name:"urn:comunica:default:rdf-parse/actors#rdfxml",bus:g}),new(lPe()).ActorRdfParseXmlRdfa({mediaTypePriorities:{"application/xml":1,"image/svg+xml":1,"text/xml":1},mediaTypeFormats:{"application/xml":"http://www.w3.org/ns/formats/RDFa","image/svg+xml":"http://www.w3.org/ns/formats/RDFa","text/xml":"http://www.w3.org/ns/formats/RDFa"},priorityScale:.3,name:"urn:comunica:default:rdf-parse/actors#xmlrdfa",bus:g}),new(_Pe()).ActorRdfParseShaclc({mediaTypePriorities:{"text/shaclc":1,"text/shaclc-ext":.5},mediaTypeFormats:{"text/shaclc":"http://www.w3.org/ns/formats/Shaclc","text/shaclc-ext":"http://www.w3.org/ns/formats/ShaclcExtended"},priorityScale:.1,name:"urn:comunica:default:rdf-parse/actors#shaclc",bus:g});const T=new(Qn()).MediatorRace({name:"urn:comunica:default:rdf-parse/mediators#parse",bus:g}),R=new(Fo()).MediatorCombineUnion({field:"mediaTypes",name:"urn:comunica:default:rdf-parse/mediators#mediaType",bus:g});new(IPe()).ActorRdfParseHtml({busRdfParseHtml:b,mediaTypePriorities:{"application/xhtml+xml":.9,"text/html":1},mediaTypeFormats:{"application/xhtml+xml":"http://www.w3.org/ns/formats/HTML","text/html":"http://www.w3.org/ns/formats/HTML"},priorityScale:.2,name:"urn:comunica:default:rdf-parse/actors#html",bus:g}),new(VPe()).ActorRdfParseHtmlMicrodata({name:"urn:comunica:default:rdf-parse-html/actors#microdata",bus:b}),new(QPe()).ActorRdfParseHtmlRdfa({name:"urn:comunica:default:rdf-parse-html/actors#rdfa",bus:b}),new(XPe()).ActorRdfResolveHypermediaLinksQueueFifo({name:"urn:comunica:default:rdf-resolve-hypermedia-links-queue/actors#fifo",bus:v});const U=new(Qn()).MediatorRace({name:"urn:comunica:default:rdf-resolve-hypermedia-links-queue/mediators#main",bus:v});new(tNe()).ActorRdfResolveHypermediaLinksNext({name:"urn:comunica:default:rdf-resolve-hypermedia-links/actors#next",bus:_});const G=new(Qn()).MediatorRace({name:"urn:comunica:default:rdf-resolve-hypermedia-links/mediators#main",bus:_});new(aNe()).ActorRdfSerializeN3({mediaTypePriorities:{"application/n-quads":1,"application/n-triples":.8,"application/trig":.95,"text/n3":.35,"text/turtle":.6},mediaTypeFormats:{"application/n-quads":"http://www.w3.org/ns/formats/N-Quads","application/n-triples":"http://www.w3.org/ns/formats/N-Triples","application/trig":"http://www.w3.org/ns/formats/TriG","text/n3":"http://www.w3.org/ns/formats/N3","text/turtle":"http://www.w3.org/ns/formats/Turtle"},name:"urn:comunica:default:rdf-serialize/actors#n3",bus:w}),new(lNe()).ActorRdfSerializeJsonLd({jsonStringifyIndentSpaces:2,mediaTypePriorities:{"application/ld+json":1},mediaTypeFormats:{"application/ld+json":"http://www.w3.org/ns/formats/JSON-LD"},priorityScale:.9,name:"urn:comunica:default:rdf-serialize/actors#jsonld",bus:w}),new(RNe()).ActorRdfSerializeShaclc({mediaTypePriorities:{"text/shaclc":1,"text/shaclc-ext":.5},mediaTypeFormats:{"text/shaclc":"http://www.w3.org/ns/formats/Shaclc","text/shaclc-ext":"http://www.w3.org/ns/formats/ShaclcExtended"},priorityScale:.1,name:"urn:comunica:default:rdf-serialize/actors#shaclc",bus:w});const Q=new(Qn()).MediatorRace({name:"urn:comunica:default:rdf-serialize/mediators#serialize",bus:w}),Z=new(Fo()).MediatorCombineUnion({field:"mediaTypes",name:"urn:comunica:default:rdf-serialize/mediators#mediaType",bus:w}),se=new(Fo()).MediatorCombineUnion({field:"mediaTypeFormats",name:"urn:comunica:default:rdf-serialize/mediators#mediaTypeFormat",bus:w}),re=new(Qn()).MediatorRace({name:"urn:comunica:default:rdf-update-hypermedia/mediators#main",bus:E});new(LNe()).ActorRdfUpdateQuadsRdfJsStore({name:"urn:comunica:default:rdf-update-quads/actors#rdfjs-store",bus:O});const le=new(Qn()).MediatorRace({name:"urn:comunica:default:rdf-update-quads/mediators#main",bus:O}),pe=new(kNe()).ActorHttpFetch({agentOptions:{keepAlive:!0,maxSockets:5},name:"urn:comunica:default:http/actors#fetch",bus:L}),_e=new(Ep()).MediatorNumber({field:"time",type:"min",ignoreErrors:!0,name:"urn:comunica:default:http/mediators#no-fallback",bus:L}),Ie=new(Ep()).MediatorNumber({field:"time",type:"min",ignoreErrors:!0,name:"urn:comunica:default:http/mediators#main",bus:F});new(HNe()).ActorQueryOperationSource({name:"urn:comunica:default:query-operation/actors#source",bus:x});const Ee=new(Ep()).MediatorNumber({field:"httpRequests",type:"min",ignoreErrors:!0,name:"urn:comunica:default:query-operation/mediators#main",bus:x}),Me=new(Qn()).MediatorRace({name:"urn:comunica:default:query-process/mediators#main",bus:P}),Ce=new(Qn()).MediatorRace({name:"urn:comunica:default:query-source-identify/mediators#main",bus:j}),ke=new(zNe()).MediatorJoinCoefficientsFixed({cpuWeight:10,memoryWeight:1,timeWeight:2,ioWeight:10,name:"urn:comunica:default:rdf-join/mediators#main",bus:N}),qe=new(uw()).ActorHttpInvalidateListenable({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-context-preprocess-query-source-identify/^3.0.0/components/ActorContextPreprocessQuerySourceIdentify.jsonld#IActorContextPreprocessQuerySourceIdentifyArgs_default_invalidator",bus:V}),W=new(KNe()).MediatorAll({name:"urn:comunica:default:http-invalidate/mediators#main",bus:V}),D=new(uw()).ActorHttpInvalidateListenable({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-rdf-update-quads-hypermedia/^3.0.0/components/ActorRdfUpdateQuadsHypermedia.jsonld#IActorRdfUpdateQuadsHypermediaArgs_default_invalidator",bus:V}),B=new(uw()).ActorHttpInvalidateListenable({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-result-serialize-sparql-json/^3.0.0/components/ActionObserverHttp.jsonld#IActionObserverHttpArgs_default_invalidator",bus:V}),K=new(uw()).ActorHttpInvalidateListenable({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-result-serialize-stats/^3.0.0/components/ActionObserverHttp.jsonld#IActionObserverHttpArgs_default_invalidator",bus:V}),ne=new(Fo()).MediatorCombineUnion({field:"mergeHandlers",name:"urn:comunica:default:merge-bindings-context/mediators#main",bus:$});new(eDe()).ActorRdfJoinSingle({mediatorJoinSelectivity:Se,name:"urn:comunica:default:rdf-join/actors#inner-single",bus:N}),new(rDe()).ActorRdfJoinMultiEmpty({mediatorJoinSelectivity:Se,name:"urn:comunica:default:rdf-join/actors#inner-multi-empty",bus:N}),new(iDe()).ActorRdfJoinMultiBindSource({selectivityModifier:1e-4,blockSize:16,mediatorJoinEntriesSort:Re,mediatorJoinSelectivity:Se,name:"urn:comunica:default:rdf-join/actors#inner-multi-bind-source",bus:N}),new(dDe()).ActorRdfJoinHash({mediatorJoinSelectivity:Se,name:"urn:comunica:default:rdf-join/actors#inner-hash",bus:N}),new(hDe()).ActorRdfJoinSymmetricHash({mediatorJoinSelectivity:Se,name:"urn:comunica:default:rdf-join/actors#inner-symmetric-hash",bus:N}),new(yDe()).ActorRdfJoinNestedLoop({mediatorJoinSelectivity:Se,name:"urn:comunica:default:rdf-join/actors#inner-nested-loop",bus:N}),new(gDe()).ActorRdfJoinMinusHash({mediatorJoinSelectivity:Se,name:"urn:comunica:default:rdf-join/actors#minus-hash",bus:N}),new(vDe()).ActorRdfJoinMinusHashUndef({mediatorJoinSelectivity:Se,name:"urn:comunica:default:rdf-join/actors#minus-hash-undef",bus:N}),new(cw()).ActorRdfJoinOptionalHash({canHandleUndefs:!1,blocking:!1,mediatorJoinSelectivity:Se,name:"urn:comunica:default:rdf-join/actors#optional-hash-def-nonblocking",bus:N}),new(cw()).ActorRdfJoinOptionalHash({canHandleUndefs:!1,blocking:!0,mediatorJoinSelectivity:Se,name:"urn:comunica:default:rdf-join/actors#optional-hash-def-blocking",bus:N}),new(cw()).ActorRdfJoinOptionalHash({canHandleUndefs:!0,blocking:!1,mediatorJoinSelectivity:Se,name:"urn:comunica:default:rdf-join/actors#optional-hash-undef-nonblocking",bus:N}),new(cw()).ActorRdfJoinOptionalHash({canHandleUndefs:!0,blocking:!0,mediatorJoinSelectivity:Se,name:"urn:comunica:default:rdf-join/actors#optional-hash-undef-blocking",bus:N}),new(ADe()).ActorRdfJoinOptionalNestedLoop({mediatorJoinSelectivity:Se,name:"urn:comunica:default:rdf-join/actors#optional-nested-loop",bus:N}),new(IDe()).ActorDereferenceRdfParse({mediatorDereference:Pe,mediatorParse:T,mediatorParseMediatypes:R,mediaMappings:{htm:"text/html",html:"text/html",json:"application/json",jsonld:"application/ld+json",n3:"text/n3",nq:"application/n-quads",nquads:"application/n-quads",nt:"application/n-triples",ntriples:"application/n-triples",owl:"application/rdf+xml",rdf:"application/rdf+xml",rdfxml:"application/rdf+xml",shaclc:"text/shaclc",shaclce:"text/shaclc-ext",shc:"text/shaclc",shce:"text/shaclc-ext",svg:"image/svg+xml",svgz:"image/svg+xml",trig:"application/trig",ttl:"text/turtle",turtle:"text/turtle",xht:"application/xhtml+xml",xhtml:"application/xhtml+xml",xml:"application/xml"},name:"urn:comunica:default:dereference-rdf/actors#parse",bus:d}),new(DDe()).ActorRdfParseHtmlScript({mediatorRdfParseMediatypes:R,mediatorRdfParseHandle:T,name:"urn:comunica:default:rdf-parse-html/actors#script",bus:b}),new(LDe()).ActorQueryResultSerializeRdf({mediatorRdfSerialize:Q,mediatorMediaTypeCombiner:Z,mediatorMediaTypeFormatCombiner:se,name:"urn:comunica:default:query-result-serialize/actors#rdf",bus:u}),new(MDe()).ActorHttpWayback({mediatorHttp:_e,name:"urn:comunica:default:http/actors#wayback",bus:F}),new(dCe()).ActorRdfParseJsonLd({mediatorHttp:Ie,mediaTypePriorities:{"application/json":.15,"application/ld+json":1},mediaTypeFormats:{"application/json":"http://www.w3.org/ns/formats/JSON-LD","application/ld+json":"http://www.w3.org/ns/formats/JSON-LD"},priorityScale:.9,name:"urn:comunica:default:rdf-parse/actors#jsonld",bus:g}),new(pCe()).ActorRdfUpdateHypermediaPatchSparqlUpdate({mediatorHttp:Ie,name:"urn:comunica:default:rdf-update-hypermedia/actors#patch-sparql-update",bus:E}),new(mCe()).ActorRdfUpdateHypermediaPutLdp({mediatorHttp:Ie,mediatorRdfSerializeMediatypes:Z,mediatorRdfSerialize:Q,name:"urn:comunica:default:rdf-update-hypermedia/actors#put-ldp",bus:E}),new(TCe()).ActorRdfUpdateHypermediaSparql({mediatorHttp:Ie,checkUrlSuffixSparql:!0,checkUrlSuffixUpdate:!0,name:"urn:comunica:default:rdf-update-hypermedia/actors#sparql",bus:E}),new(ACe()).ActorQueryOperationAsk({mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#ask",bus:x}),new(RCe()).ActorQueryOperationBgpJoin({mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#bgp",bus:x}),new(ICe()).ActorQueryOperationDistinctHash({mediatorHashBindings:X,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#distinct",bus:x}),new(Vee()).ActorQueryOperationConstruct({mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#construct",bus:x}),new(DCe()).ActorQueryOperationFromQuad({mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#from",bus:x}),new(LCe()).ActorQueryOperationProject({mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#project",bus:x}),new(MCe()).ActorQueryOperationReducedHash({mediatorHashBindings:X,cacheSize:100,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#reduced",bus:x}),new(BCe()).ActorQueryOperationSlice({mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#slice",bus:x}),new(Qee()).ActorQueryOperationUnion({mediatorRdfMetadataAccumulate:M,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#union",bus:x}),new(kCe()).ActorQueryOperationPathAlt({mediatorRdfMetadataAccumulate:M,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#path-alt",bus:x}),new(HCe()).ActorQueryOperationPathInv({mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#path-inv",bus:x}),new(zCe()).ActorQueryOperationPathLink({mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#path-link",bus:x}),new(WCe()).ActorQueryOperationPathNps({mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#path-nps",bus:x}),new(JCe()).ActorQueryOperationClear({mediatorUpdateQuads:le,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#update-clear",bus:x}),new(YCe()).ActorQueryOperationUpdateCompositeUpdate({mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#update-composite",bus:x}),new(e4e()).ActorQueryOperationCreate({mediatorUpdateQuads:le,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#update-create",bus:x}),new(r4e()).ActorQueryOperationDrop({mediatorUpdateQuads:le,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#update-drop",bus:x}),new(i4e()).ActorQueryOperationLoad({mediatorUpdateQuads:le,mediatorQuerySourceIdentify:Ce,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#update-load",bus:x}),new(s4e()).ActorQueryOperationJoin({mediatorJoin:ke,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#join",bus:x}),new(u4e()).ActorQueryOperationMinus({mediatorJoin:ke,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#minus",bus:x}),new(l4e()).ActorQueryOperationPathSeq({mediatorJoin:ke,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#path-seq",bus:x}),new(f4e()).ActorRdfJoinMultiSmallest({mediatorJoinEntriesSort:Re,mediatorJoin:ke,mediatorJoinSelectivity:Se,name:"urn:comunica:default:rdf-join/actors#inner-multi-smallest",bus:N}),new(y4e()).ActorRdfJoinMultiSmallestFilterBindings({selectivityModifier:1e-4,blockSize:64,mediatorJoinEntriesSort:Re,mediatorJoin:ke,mediatorJoinSelectivity:Se,name:"urn:comunica:default:rdf-join/actors#inner-multi-smallest-filter-bindings",bus:N});const fe=new(g4e()).ActorOptimizeQueryOperationFilterPushdown({name:"urn:comunica:default:optimize-query-operation/actors#filter-pushdown",bus:s,beforeActors:[Y]});new(b4e()).ActorDereferenceHttp({mediatorHttp:Ie,maxAcceptHeaderLength:1024,maxAcceptHeaderLengthBrowser:128,name:"urn:comunica:default:dereference/actors#http",bus:l,beforeActors:[xe]}),new(S4e()).ActorHttpProxy({mediatorHttp:Ie,name:"urn:comunica:default:http/actors#proxy",bus:L,beforeActors:[pe]}),new(E4e()).ActorContextPreprocessQuerySourceIdentify({cacheSize:100,httpInvalidator:qe,mediatorQuerySourceIdentify:Ce,mediatorContextPreprocess:H,name:"urn:comunica:default:context-preprocess/actors#query-source-identify",bus:n,beforeActors:[q]});const ge=new iC.ActorInitQuery({mediatorQueryProcess:Me,mediatorQueryResultSerialize:Ne,mediatorQueryResultSerializeMediaTypeCombiner:$e,mediatorQueryResultSerializeMediaTypeFormatCombiner:de,mediatorHttpInvalidate:W,defaultQueryInputFormat:"sparql",allowNoSources:!1,name:"urn:comunica:default:init/actors#query",bus:r});new(O4e()).ActorRdfUpdateQuadsHypermedia({cacheSize:100,httpInvalidator:D,mediatorDereferenceRdf:we,mediatorMetadata:z,mediatorMetadataExtract:k,mediatorRdfUpdateHypermedia:re,name:"urn:comunica:default:rdf-update-quads/actors#hypermedia",bus:O});const Le=new(hk()).ActionObserverHttp({httpInvalidator:B,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-result-serialize-sparql-json/^3.0.0/components/ActorQueryResultSerializeSparqlJson.jsonld#ActorQueryResultSerializeSparqlJson_default_observer",bus:L}),ee=new(gk()).ActionObserverHttp({httpInvalidator:K,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-result-serialize-stats/^3.0.0/components/ActorQueryResultSerializeStats.jsonld#ActorQueryResultSerializeStats_default_observer",bus:L});new(j4e()).ActorQuerySourceIdentifyHypermediaQpf({mediatorMetadata:z,mediatorMetadataExtract:k,mediatorDereferenceRdf:we,mediatorMergeBindingsContext:ne,subjectUri:"http://www.w3.org/1999/02/22-rdf-syntax-ns#subject",predicateUri:"http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate",objectUri:"http://www.w3.org/1999/02/22-rdf-syntax-ns#object",graphUri:"http://www.w3.org/ns/sparql-service-description#graph",name:"urn:comunica:default:query-source-identify-hypermedia/actors#qpf",bus:c}),new(F4e()).ActorQuerySourceIdentifyHypermediaSparql({mediatorHttp:Ie,mediatorMergeBindingsContext:ne,checkUrlSuffix:!0,forceHttpGet:!1,cacheSize:1024,bindMethod:"values",countTimeout:3e3,name:"urn:comunica:default:rdf-resolve-quad-pattern/actors#sparql",bus:c}),new(Z4e()).ActorQuerySourceIdentifyHypermediaNone({mediatorMergeBindingsContext:ne,name:"urn:comunica:default:query-source-identify-hypermedia/actors#none",bus:c}),new($6e()).ActorQueryOperationExtend({mediatorMergeBindingsContext:ne,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#extend",bus:x}),new(k6e()).ActorQueryOperationFilter({mediatorMergeBindingsContext:ne,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#filter",bus:x}),new(Q6e()).ActorQueryOperationGroup({mediatorHashBindings:X,mediatorMergeBindingsContext:ne,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#group",bus:x}),new(G6e()).ActorQueryOperationLeftJoin({mediatorJoin:ke,mediatorMergeBindingsContext:ne,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#leftjoin",bus:x}),new(K6e()).ActorQueryOperationNop({mediatorMergeBindingsContext:ne,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#nop",bus:x}),new(Y6e()).ActorQueryOperationOrderBy({mediatorMergeBindingsContext:ne,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#orderby",bus:x}),new(eLe()).ActorQueryOperationService({forceSparqlEndpoint:!1,mediatorMergeBindingsContext:ne,mediatorQuerySourceIdentify:Ce,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#service",bus:x}),new(rLe()).ActorQueryOperationValues({mediatorMergeBindingsContext:ne,name:"urn:comunica:default:query-operation/actors#values",bus:x}),new(iLe()).ActorQueryOperationPathOneOrMore({mediatorMergeBindingsContext:ne,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#path-one-or-more",bus:x}),new(sLe()).ActorQueryOperationPathZeroOrMore({mediatorMergeBindingsContext:ne,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#path-zero-or-more",bus:x}),new(uLe()).ActorQueryOperationPathZeroOrOne({mediatorMergeBindingsContext:ne,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#path-zero-or-one",bus:x}),new(lLe()).ActorQueryOperationUpdateDeleteInsert({mediatorUpdateQuads:le,mediatorMergeBindingsContext:ne,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#update-delete-insert",bus:x});const Oe=new(hLe()).ActorQueryProcessSequential({mediatorContextPreprocess:H,mediatorQueryParse:Te,mediatorOptimizeQueryOperation:he,mediatorQueryOperation:Ee,mediatorMergeBindingsContext:ne,name:"urn:comunica:default:query-process/actors#sequential",bus:P}),De=new(vLe()).ActorQuerySourceIdentifyHypermedia({cacheSize:100,maxIterators:64,aggregateTraversalStore:!0,mediatorDereferenceRdf:we,mediatorMetadata:z,mediatorMetadataExtract:k,mediatorMetadataAccumulate:M,mediatorQuerySourceIdentifyHypermedia:ce,mediatorRdfResolveHypermediaLinks:G,mediatorRdfResolveHypermediaLinksQueue:U,mediatorMergeBindingsContext:ne,name:"urn:comunica:default:query-source-identify/actors#hypermedia",bus:j});new(SLe()).ActorRdfJoinNone({mediatorMergeBindingsContext:ne,mediatorJoinSelectivity:Se,name:"urn:comunica:default:rdf-join/actors#inner-none",bus:N}),new(Lte()).ActorRdfJoinMultiBind({bindOrder:"depth-first",selectivityModifier:1e-4,mediatorJoinEntriesSort:Re,mediatorQueryOperation:Ee,mediatorMergeBindingsContext:ne,mediatorJoinSelectivity:Se,name:"urn:comunica:default:rdf-join/actors#inner-multi-bind",bus:N}),new(ALe()).ActorRdfJoinOptionalBind({bindOrder:"depth-first",selectivityModifier:1e-6,mediatorQueryOperation:Ee,mediatorMergeBindingsContext:ne,mediatorJoinSelectivity:Se,name:"urn:comunica:default:rdf-join/actors#optional-bind",bus:N}),new(hk()).ActorQueryResultSerializeSparqlJson({emitMetadata:!0,httpObserver:Le,mediaTypePriorities:{"application/sparql-results+json":.8},mediaTypeFormats:{"application/sparql-results+json":"http://www.w3.org/ns/formats/SPARQL_Results_JSON"},name:"urn:comunica:default:query-result-serialize/actors#sparql-json",bus:u}),new(gk()).ActorQueryResultSerializeStats({httpObserver:ee,mediaTypePriorities:{stats:.5},mediaTypeFormats:{stats:"https://comunica.linkeddatafragments.org/#results_stats"},name:"urn:comunica:default:query-result-serialize/actors#stats",bus:u}),new(RLe()).ActorQueryProcessExplainParsed({queryProcessor:Oe,name:"urn:comunica:default:query-process/actors#explain-parsed",bus:P}),new(ILe()).ActorQueryProcessExplainLogical({queryProcessor:Oe,name:"urn:comunica:default:query-process/actors#explain-logical",bus:P}),new(NLe()).ActorQueryProcessExplainPhysical({queryProcessor:Oe,name:"urn:comunica:default:query-process/actors#explain-physical",bus:P});const Ue=new(CLe()).ActorOptimizeQueryOperationPruneEmptySourceOperations({useAskIfSupported:!1,name:"urn:comunica:default:optimize-query-operation/actors#prune-empty-source-operations",bus:s,beforeActors:[fe]});new(E4()).ActorQuerySourceIdentifyRdfJs({mediatorMergeBindingsContext:ne,name:"urn:comunica:default:query-source-identify/actors#rdfjs",bus:j,beforeActors:[De]}),new(jLe()).ActorQuerySourceIdentifySerialized({mediatorRdfParse:T,mediatorQuerySourceIdentify:Ce,name:"urn:comunica:default:query-source-identify/actors#serialized",bus:j,beforeActors:[De]});const Ye=new(FLe()).ActorOptimizeQueryOperationJoinConnected({name:"urn:comunica:default:optimize-query-operation/actors#join-connected",bus:s,beforeActors:[Ue]}),ut=new(qLe()).ActorOptimizeQueryOperationBgpToJoin({name:"urn:comunica:default:optimize-query-operation/actors#bgp-to-join",bus:s,beforeActors:[Ye]}),at=new(ULe()).ActorOptimizeQueryOperationJoinBgp({name:"urn:comunica:default:optimize-query-operation/actors#join-bgp",bus:s,beforeActors:[ut]}),ct=new(VLe()).ActorOptimizeQueryOperationAssignSourcesExhaustive({name:"urn:comunica:default:optimize-query-operation/actors#assign-sources-exhaustive",bus:s,beforeActors:[at]});return new(QLe()).ActorOptimizeQueryOperationDescribeToConstructsSubject({name:"urn:comunica:default:optimize-query-operation/actors#describe-to-constructs-subject",bus:s,beforeActors:[ct]}),ge};Object.defineProperty(k2,"__esModule",{value:!0});k2.QueryEngine=void 0;const GLe=iC,WLe=zLe;class KLe extends GLe.QueryEngineBase{constructor(e=WLe()){super(e)}}k2.QueryEngine=KLe;(function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(k2,t)})(nC);const f_="http://www.w3.org/1999/02/22-rdf-syntax-ns#",h_="http://www.w3.org/2001/XMLSchema#",_I="http://www.w3.org/2000/10/swap/",Ln={xsd:{decimal:`${h_}decimal`,boolean:`${h_}boolean`,double:`${h_}double`,integer:`${h_}integer`,string:`${h_}string`},rdf:{type:`${f_}type`,nil:`${f_}nil`,first:`${f_}first`,rest:`${f_}rest`,langString:`${f_}langString`},owl:{sameAs:"http://www.w3.org/2002/07/owl#sameAs"},r:{forSome:`${_I}reify#forSome`,forAll:`${_I}reify#forAll`},log:{implies:`${_I}log#implies`}},{xsd:hw}=Ln,JLe=/\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{8})|\\([^])/g,RQ={"\\":"\\","'":"'",'"':'"',n:` -`,r:"\r",t:" ",f:"\f",b:"\b",_:"_","~":"~",".":".","-":"-","!":"!",$:"$","&":"&","(":"(",")":")","*":"*","+":"+",",":",",";":";","=":"=","/":"/","?":"?","#":"#","@":"@","%":"%"},XLe=/[\x00-\x20<>\\"\{\}\|\^\`]/,YLe={_iri:!0,_unescapedIri:!0,_simpleQuotedString:!0,_langcode:!0,_blank:!0,_newline:!0,_comment:!0,_whitespace:!0,_endOfFile:!0},ZLe=/$0^/;class eje{constructor(e){if(this._iri=/^<((?:[^ <>{}\\]|\\[uU])+)>[ \t]*/,this._unescapedIri=/^<([^\x00-\x20<>\\"\{\}\|\^\`]*)>[ \t]*/,this._simpleQuotedString=/^"([^"\\\r\n]*)"(?=[^"])/,this._simpleApostropheString=/^'([^'\\\r\n]*)'(?=[^'])/,this._langcode=/^@([a-z]+(?:-[a-z0-9]+)*)(?=[^a-z0-9\-])/i,this._prefix=/^((?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)?:(?=[#\s<])/,this._prefixed=/^((?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)?:((?:(?:[0-:A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])(?:(?:[\.\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])*(?:[\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~]))?)?)(?:[ \t]+|(?=\.?[,;!\^\s#()\[\]\{\}"'<>]))/,this._variable=/^\?(?:(?:[A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:[\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)(?=[.,;!\^\s#()\[\]\{\}"'<>])/,this._blank=/^_:((?:[0-9A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)(?:[ \t]+|(?=\.?[,;:\s#()\[\]\{\}"'<>]))/,this._number=/^[\-+]?(?:(\d+\.\d*|\.?\d+)[eE][\-+]?|\d*(\.)?)\d+(?=\.?[,;:\s#()\[\]\{\}"'<>])/,this._boolean=/^(?:true|false)(?=[.,;\s#()\[\]\{\}"'<>])/,this._keyword=/^@[a-z]+(?=[\s#<:])/i,this._sparqlKeyword=/^(?:PREFIX|BASE|GRAPH)(?=[\s#<])/i,this._shortPredicates=/^a(?=[\s#()\[\]\{\}"'<>])/,this._newline=/^[ \t]*(?:#[^\n\r]*)?(?:\r\n|\n|\r)[ \t]*/,this._comment=/#([^\n\r]*)/,this._whitespace=/^[ \t]+/,this._endOfFile=/^(?:#[^\n\r]*)?$/,e=e||{},this._lineMode=!!e.lineMode){this._n3Mode=!1;for(const r in this)!(r in YLe)&&this[r]instanceof RegExp&&(this[r]=ZLe)}else this._n3Mode=e.n3!==!1;this._comments=!!e.comments,this._literalClosingPos=0}_tokenizeToEnd(e,r){let n=this._input,a=n.length;for(;;){let u,c;for(;u=this._newline.exec(n);)this._comments&&(c=this._comment.exec(u[0]))&&s("comment",c[1],"",this._line,u[0].length),n=n.substr(u[0].length,n.length),a=n.length,this._line++;if(!u&&(u=this._whitespace.exec(n))&&(n=n.substr(u[0].length,n.length)),this._endOfFile.test(n))return r&&(this._comments&&(c=this._comment.exec(n))&&s("comment",c[1],"",this._line,n.length),n=null,s("eof","","",this._line,0)),this._input=n;const l=this._line,d=n[0];let f="",h="",p="",m=null,y=0,g=!1;switch(d){case"^":if(n.length<3)break;if(n[1]==="^"){if(this._previousMarker="^^",n=n.substr(2),n[0]!=="<"){g=!0;break}}else{this._n3Mode&&(y=1,f="^");break}case"<":if(m=this._unescapedIri.exec(n))f="IRI",h=m[1];else if(m=this._iri.exec(n)){if(h=this._unescape(m[1]),h===null||XLe.test(h))return o(this);f="IRI"}else n.length>1&&n[1]==="<"?(f="<<",y=2):this._n3Mode&&n.length>1&&n[1]==="="&&(f="inverse",y=2,h=">");break;case">":n.length>1&&n[1]===">"&&(f=">>",y=2);break;case"_":((m=this._blank.exec(n))||r&&(m=this._blank.exec(`${n} `)))&&(f="blank",p="_",h=m[1]);break;case'"':if(m=this._simpleQuotedString.exec(n))h=m[1];else if({value:h,matchLength:y}=this._parseLiteral(n),h===null)return o(this);(m!==null||y!==0)&&(f="literal",this._literalClosingPos=0);break;case"'":if(!this._lineMode){if(m=this._simpleApostropheString.exec(n))h=m[1];else if({value:h,matchLength:y}=this._parseLiteral(n),h===null)return o(this);(m!==null||y!==0)&&(f="literal",this._literalClosingPos=0)}break;case"?":this._n3Mode&&(m=this._variable.exec(n))&&(f="var",h=m[0]);break;case"@":this._previousMarker==="literal"&&(m=this._langcode.exec(n))?(f="langcode",h=m[1]):(m=this._keyword.exec(n))&&(f=m[0]);break;case".":if(n.length===1?r:n[1]<"0"||n[1]>"9"){f=".",y=1;break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"+":case"-":(m=this._number.exec(n)||r&&(m=this._number.exec(`${n} `)))&&(f="literal",h=m[0],p=typeof m[1]=="string"?hw.double:typeof m[2]=="string"?hw.decimal:hw.integer);break;case"B":case"b":case"p":case"P":case"G":case"g":(m=this._sparqlKeyword.exec(n))?f=m[0].toUpperCase():g=!0;break;case"f":case"t":(m=this._boolean.exec(n))?(f="literal",h=m[0],p=hw.boolean):g=!0;break;case"a":(m=this._shortPredicates.exec(n))?(f="abbreviation",h="a"):g=!0;break;case"=":this._n3Mode&&n.length>1&&(f="abbreviation",n[1]!==">"?(y=1,h="="):(y=2,h=">"));break;case"!":if(!this._n3Mode)break;case",":case";":case"[":case"]":case"(":case")":case"}":this._lineMode||(y=1,f=d);break;case"{":!this._lineMode&&n.length>=2&&(n[1]==="|"?(f="{|",y=2):(f=d,y=1));break;case"|":n.length>=2&&n[1]==="}"&&(f="|}",y=2);break;default:g=!0}if(g&&((this._previousMarker==="@prefix"||this._previousMarker==="PREFIX")&&(m=this._prefix.exec(n))?(f="prefix",h=m[1]||""):((m=this._prefixed.exec(n))||r&&(m=this._prefixed.exec(`${n} `)))&&(f="prefixed",p=m[1]||"",h=this._unescape(m[2]))),this._previousMarker==="^^")switch(f){case"prefixed":f="type";break;case"IRI":f="typeIRI";break;default:f=""}if(!f)return r||!/^'''|^"""/.test(n)&&/\n|\r/.test(n)?o(this):this._input=n;const b=y||m[0].length,v=s(f,h,p,l,b);this.previousToken=v,this._previousMarker=f,n=n.substr(b,n.length)}function s(u,c,l,d,f){const h=n?a-n.length:a,p=h+f,m={type:u,value:c,prefix:l,line:d,start:h,end:p};return e(null,m),m}function o(u){e(u._syntaxError(/^\S*/.exec(n)[0]))}}_unescape(e){let r=!1;const n=e.replace(JLe,(a,s,o,u)=>{if(typeof s=="string")return String.fromCharCode(Number.parseInt(s,16));if(typeof o=="string"){let c=Number.parseInt(o,16);return c<=65535?String.fromCharCode(Number.parseInt(o,16)):String.fromCharCode(55296+((c-=65536)>>10),56320+(c&1023))}return u in RQ?RQ[u]:(r=!0,"")});return r?null:n}_parseLiteral(e){if(e.length>=3){const r=e.match(/^(?:"""|"|'''|'|)/)[0],n=r.length;let a=Math.max(this._literalClosingPos,n);for(;(a=e.indexOf(r,a))>0;){let s=0;for(;e[a-s-1]==="\\";)s++;if(s%2===0){const o=e.substring(n,a),u=o.split(/\r\n|\r|\n/).length-1,c=a+n;if(n===1&&u!==0||n===3&&this._lineMode)break;return this._line+=u,{value:this._unescape(o),matchLength:c}}a++}this._literalClosingPos=e.length-n+1}return{value:"",matchLength:0}}_syntaxError(e){this._input=null;const r=new Error(`Unexpected "${e}" on line ${this._line}.`);return r.context={token:void 0,line:this._line,previousToken:this.previousToken},r}_readStartingBom(e){return e.startsWith("\uFEFF")?e.substr(1):e}tokenize(e,r){if(this._line=1,typeof e=="string")if(this._input=this._readStartingBom(e),typeof r=="function")mZ(()=>this._tokenizeToEnd(r,!0));else{const n=[];let a;if(this._tokenizeToEnd((s,o)=>s?a=s:n.push(o),!0),a)throw a;return n}else this._pendingBuffer=null,typeof e.setEncoding=="function"&&e.setEncoding("utf8"),e.on("data",n=>{this._input!==null&&n.length!==0&&(this._pendingBuffer&&(n=Zi.concat([this._pendingBuffer,n]),this._pendingBuffer=null),n[n.length-1]&128?this._pendingBuffer=n:(typeof this._input>"u"?this._input=this._readStartingBom(typeof n=="string"?n:n.toString()):this._input+=n,this._tokenizeToEnd(r,!1)))}),e.on("end",()=>{typeof this._input=="string"&&this._tokenizeToEnd(r,!0)}),e.on("error",r)}}const{rdf:tje,xsd:Ec}=Ln;let $1,rje=0;const Zd={namedNode:oje,blankNode:uje,variable:lje,literal:cje,defaultGraph:dje,quad:xQ,triple:xQ};class Rs{constructor(e){this.id=e}get value(){return this.id}equals(e){return e instanceof Rs?this.id===e.id:!!e&&this.termType===e.termType&&this.value===e.value}hashCode(){return 0}toJSON(){return{termType:this.termType,value:this.value}}}class Mte extends Rs{get termType(){return"NamedNode"}}class Rd extends Rs{get termType(){return"Literal"}get value(){return this.id.substring(1,this.id.lastIndexOf('"'))}get language(){const e=this.id;let r=e.lastIndexOf('"')+1;return r0?"INF":"-INF")))),r===""||r===Ec.string?new Rd(`"${t}"`):new Rd(`"${t}"^^${r}`)}function lje(t){return new ije(t)}function dje(){return $1}function xQ(t,e,r,n){return new sje(t,e,r,n)}let IQ=0;class Fte{constructor(e){this._contextStack=[],this._graph=null,e=e||{},this._setBase(e.baseIRI),e.factory&&Bte(this,e.factory);const r=typeof e.format=="string"?e.format.match(/\w*$/)[0].toLowerCase():"",n=/turtle/.test(r),a=/trig/.test(r),s=/triple/.test(r),o=/quad/.test(r),u=this._n3Mode=/n3/.test(r),c=s||o;(this._supportsNamedGraphs=!(n||u))||(this._readPredicateOrNamedGraph=this._readPredicate),this._supportsQuads=!(n||a||s||u),this._supportsRDFStar=r===""||/star|\*$/.test(r),c&&(this._resolveRelativeIRI=l=>null),this._blankNodePrefix=typeof e.blankNodePrefix!="string"?"":e.blankNodePrefix.replace(/^(?!_:)/,"_:"),this._lexer=e.lexer||new eje({lineMode:c,n3:u}),this._explicitQuantifiers=!!e.explicitQuantifiers}static _resetBlankNodePrefix(){IQ=0}_setBase(e){if(!e)this._base="",this._basePath="";else{const r=e.indexOf("#");r>=0&&(e=e.substr(0,r)),this._base=e,this._basePath=e.indexOf("/")<0?e:e.replace(/[^\/?]*(?:\?.*)?$/,""),e=e.match(/^(?:([a-z][a-z0-9+.-]*:))?(?:\/\/[^\/]*)?/i),this._baseRoot=e[0],this._baseScheme=e[1]}}_saveContext(e,r,n,a,s){const o=this._n3Mode;this._contextStack.push({type:e,subject:n,predicate:a,object:s,graph:r,inverse:o?this._inversePredicate:!1,blankPrefix:o?this._prefixes._:"",quantified:o?this._quantified:null}),o&&(this._inversePredicate=!1,this._prefixes._=this._graph?`${this._graph.value}.`:".",this._quantified=Object.create(this._quantified))}_restoreContext(e,r){const n=this._contextStack.pop();if(!n||n.type!==e)return this._error(`Unexpected ${r.type}`,r);this._subject=n.subject,this._predicate=n.predicate,this._object=n.object,this._graph=n.graph,this._n3Mode&&(this._inversePredicate=n.inverse,this._prefixes._=n.blankPrefix,this._quantified=n.quantified)}_readInTopContext(e){switch(e.type){case"eof":return this._graph!==null?this._error("Unclosed graph",e):(delete this._prefixes._,this._callback(null,null,this._prefixes));case"PREFIX":this._sparqlStyle=!0;case"@prefix":return this._readPrefix;case"BASE":this._sparqlStyle=!0;case"@base":return this._readBaseIRI;case"{":if(this._supportsNamedGraphs)return this._graph="",this._subject=null,this._readSubject;case"GRAPH":if(this._supportsNamedGraphs)return this._readNamedGraphLabel;default:return this._readSubject(e)}}_readEntity(e,r){let n;switch(e.type){case"IRI":case"typeIRI":const a=this._resolveIRI(e.value);if(a===null)return this._error("Invalid IRI",e);n=this._namedNode(a);break;case"type":case"prefixed":const s=this._prefixes[e.prefix];if(s===void 0)return this._error(`Undefined prefix "${e.prefix}:"`,e);n=this._namedNode(s+e.value);break;case"blank":n=this._blankNode(this._prefixes[e.prefix]+e.value);break;case"var":n=this._variable(e.value.substr(1));break;default:return this._error(`Expected entity but got ${e.type}`,e)}return!r&&this._n3Mode&&n.id in this._quantified&&(n=this._quantified[n.id]),n}_readSubject(e){switch(this._predicate=null,e.type){case"[":return this._saveContext("blank",this._graph,this._subject=this._blankNode(),null,null),this._readBlankNodeHead;case"(":return this._saveContext("list",this._graph,this.RDF_NIL,null,null),this._subject=null,this._readListItem;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._graph=this._blankNode(),null,null),this._readSubject):this._error("Unexpected graph",e);case"}":return this._readPunctuation(e);case"@forSome":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORSOME,this._quantifier=this._blankNode,this._readQuantifierList):this._error('Unexpected "@forSome"',e);case"@forAll":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORALL,this._quantifier=this._variable,this._readQuantifierList):this._error('Unexpected "@forAll"',e);case"literal":if(!this._n3Mode)return this._error("Unexpected literal",e);if(e.prefix.length===0)return this._literalValue=e.value,this._completeSubjectLiteral;this._subject=this._literal(e.value,this._namedNode(e.prefix));break;case"<<":return this._supportsRDFStar?(this._saveContext("<<",this._graph,null,null,null),this._graph=null,this._readSubject):this._error("Unexpected RDF* syntax",e);default:if((this._subject=this._readEntity(e))===void 0)return;if(this._n3Mode)return this._getPathReader(this._readPredicateOrNamedGraph)}return this._readPredicateOrNamedGraph}_readPredicate(e){const r=e.type;switch(r){case"inverse":this._inversePredicate=!0;case"abbreviation":this._predicate=this.ABBREVIATIONS[e.value];break;case".":case"]":case"}":return this._predicate===null?this._error(`Unexpected ${r}`,e):(this._subject=null,r==="]"?this._readBlankNodeTail(e):this._readPunctuation(e));case";":return this._predicate!==null?this._readPredicate:this._error("Expected predicate but got ;",e);case"[":if(this._n3Mode)return this._saveContext("blank",this._graph,this._subject,this._subject=this._blankNode(),null),this._readBlankNodeHead;case"blank":if(!this._n3Mode)return this._error("Disallowed blank node as predicate",e);default:if((this._predicate=this._readEntity(e))===void 0)return}return this._readObject}_readObject(e){switch(e.type){case"literal":if(e.prefix.length===0)return this._literalValue=e.value,this._readDataTypeOrLang;this._object=this._literal(e.value,this._namedNode(e.prefix));break;case"[":return this._saveContext("blank",this._graph,this._subject,this._predicate,this._subject=this._blankNode()),this._readBlankNodeHead;case"(":return this._saveContext("list",this._graph,this._subject,this._predicate,this.RDF_NIL),this._subject=null,this._readListItem;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._subject,this._predicate,this._graph=this._blankNode()),this._readSubject):this._error("Unexpected graph",e);case"<<":return this._supportsRDFStar?(this._saveContext("<<",this._graph,this._subject,this._predicate,null),this._graph=null,this._readSubject):this._error("Unexpected RDF* syntax",e);default:if((this._object=this._readEntity(e))===void 0)return;if(this._n3Mode)return this._getPathReader(this._getContextEndReader())}return this._getContextEndReader()}_readPredicateOrNamedGraph(e){return e.type==="{"?this._readGraph(e):this._readPredicate(e)}_readGraph(e){return e.type!=="{"?this._error(`Expected graph but got ${e.type}`,e):(this._graph=this._subject,this._subject=null,this._readSubject)}_readBlankNodeHead(e){return e.type==="]"?(this._subject=null,this._readBlankNodeTail(e)):(this._predicate=null,this._readPredicate(e))}_readBlankNodeTail(e){if(e.type!=="]")return this._readBlankNodePunctuation(e);this._subject!==null&&this._emit(this._subject,this._predicate,this._object,this._graph);const r=this._predicate===null;return this._restoreContext("blank",e),this._object!==null?this._getContextEndReader():this._predicate!==null?this._readObject:r?this._readPredicateOrNamedGraph:this._readPredicateAfterBlank}_readPredicateAfterBlank(e){switch(e.type){case".":case"}":return this._subject=null,this._readPunctuation(e);default:return this._readPredicate(e)}}_readListItem(e){let r=null,n=null,a=this._readListItem;const s=this._subject,o=this._contextStack,u=o[o.length-1];switch(e.type){case"[":this._saveContext("blank",this._graph,n=this._blankNode(),this.RDF_FIRST,this._subject=r=this._blankNode()),a=this._readBlankNodeHead;break;case"(":this._saveContext("list",this._graph,n=this._blankNode(),this.RDF_FIRST,this.RDF_NIL),this._subject=null;break;case")":if(this._restoreContext("list",e),o.length!==0&&o[o.length-1].type==="list"&&this._emit(this._subject,this._predicate,this._object,this._graph),this._predicate===null){if(a=this._readPredicate,this._subject===this.RDF_NIL)return a}else if(a=this._getContextEndReader(),this._object===this.RDF_NIL)return a;n=this.RDF_NIL;break;case"literal":e.prefix.length===0?(this._literalValue=e.value,a=this._readListItemDataTypeOrLang):(r=this._literal(e.value,this._namedNode(e.prefix)),a=this._getContextEndReader());break;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._subject,this._predicate,this._graph=this._blankNode()),this._readSubject):this._error("Unexpected graph",e);default:if((r=this._readEntity(e))===void 0)return}if(n===null&&(this._subject=n=this._blankNode()),s===null?u.predicate===null?u.subject=n:u.object=n:this._emit(s,this.RDF_REST,n,this._graph),r!==null){if(this._n3Mode&&(e.type==="IRI"||e.type==="prefixed"))return this._saveContext("item",this._graph,n,this.RDF_FIRST,r),this._subject=r,this._predicate=null,this._getPathReader(this._readListItem);this._emit(n,this.RDF_FIRST,r,this._graph)}return a}_readDataTypeOrLang(e){return this._completeObjectLiteral(e,!1)}_readListItemDataTypeOrLang(e){return this._completeObjectLiteral(e,!0)}_completeLiteral(e){let r=this._literal(this._literalValue);switch(e.type){case"type":case"typeIRI":const n=this._readEntity(e);if(n===void 0)return;r=this._literal(this._literalValue,n),e=null;break;case"langcode":r=this._literal(this._literalValue,e.value),e=null;break}return{token:e,literal:r}}_completeSubjectLiteral(e){return this._subject=this._completeLiteral(e).literal,this._readPredicateOrNamedGraph}_completeObjectLiteral(e,r){const n=this._completeLiteral(e);if(n)return this._object=n.literal,r&&this._emit(this._subject,this.RDF_FIRST,this._object,this._graph),n.token===null?this._getContextEndReader():(this._readCallback=this._getContextEndReader(),this._readCallback(n.token))}_readFormulaTail(e){return e.type!=="}"?this._readPunctuation(e):(this._subject!==null&&this._emit(this._subject,this._predicate,this._object,this._graph),this._restoreContext("formula",e),this._object===null?this._readPredicate:this._getContextEndReader())}_readPunctuation(e){let r,n=this._graph;const a=this._subject,s=this._inversePredicate;switch(e.type){case"}":if(this._graph===null)return this._error("Unexpected graph closing",e);if(this._n3Mode)return this._readFormulaTail(e);this._graph=null;case".":this._subject=null,r=this._contextStack.length?this._readSubject:this._readInTopContext,s&&(this._inversePredicate=!1);break;case";":r=this._readPredicate;break;case",":r=this._readObject;break;case"{|":if(!this._supportsRDFStar)return this._error("Unexpected RDF* syntax",e);const o=this._predicate,u=this._object;this._subject=this._quad(a,o,u,this.DEFAULTGRAPH),r=this._readPredicate;break;case"|}":if(this._subject.termType!=="Quad")return this._error("Unexpected asserted triple closing",e);this._subject=null,r=this._readPunctuation;break;default:if(this._supportsQuads&&this._graph===null&&(n=this._readEntity(e))!==void 0){r=this._readQuadPunctuation;break}return this._error(`Expected punctuation to follow "${this._object.id}"`,e)}if(a!==null){const o=this._predicate,u=this._object;s?this._emit(u,o,a,n):this._emit(a,o,u,n)}return r}_readBlankNodePunctuation(e){let r;switch(e.type){case";":r=this._readPredicate;break;case",":r=this._readObject;break;default:return this._error(`Expected punctuation to follow "${this._object.id}"`,e)}return this._emit(this._subject,this._predicate,this._object,this._graph),r}_readQuadPunctuation(e){return e.type!=="."?this._error("Expected dot to follow quad",e):this._readInTopContext}_readPrefix(e){return e.type!=="prefix"?this._error("Expected prefix to follow @prefix",e):(this._prefix=e.value,this._readPrefixIRI)}_readPrefixIRI(e){if(e.type!=="IRI")return this._error(`Expected IRI to follow prefix "${this._prefix}:"`,e);const r=this._readEntity(e);return this._prefixes[this._prefix]=r.value,this._prefixCallback(this._prefix,r),this._readDeclarationPunctuation}_readBaseIRI(e){const r=e.type==="IRI"&&this._resolveIRI(e.value);return r?(this._setBase(r),this._readDeclarationPunctuation):this._error("Expected valid IRI to follow base declaration",e)}_readNamedGraphLabel(e){switch(e.type){case"IRI":case"blank":case"prefixed":return this._readSubject(e),this._readGraph;case"[":return this._readNamedGraphBlankLabel;default:return this._error("Invalid graph label",e)}}_readNamedGraphBlankLabel(e){return e.type!=="]"?this._error("Invalid graph label",e):(this._subject=this._blankNode(),this._readGraph)}_readDeclarationPunctuation(e){return this._sparqlStyle?(this._sparqlStyle=!1,this._readInTopContext(e)):e.type!=="."?this._error("Expected declaration to end with a dot",e):this._readInTopContext}_readQuantifierList(e){let r;switch(e.type){case"IRI":case"prefixed":if((r=this._readEntity(e,!0))!==void 0)break;default:return this._error(`Unexpected ${e.type}`,e)}return this._explicitQuantifiers?(this._subject===null?this._emit(this._graph||this.DEFAULTGRAPH,this._predicate,this._subject=this._blankNode(),this.QUANTIFIERS_GRAPH):this._emit(this._subject,this.RDF_REST,this._subject=this._blankNode(),this.QUANTIFIERS_GRAPH),this._emit(this._subject,this.RDF_FIRST,r,this.QUANTIFIERS_GRAPH)):this._quantified[r.id]=this._quantifier(this._blankNode().value),this._readQuantifierPunctuation}_readQuantifierPunctuation(e){return e.type===","?this._readQuantifierList:(this._explicitQuantifiers&&(this._emit(this._subject,this.RDF_REST,this.RDF_NIL,this.QUANTIFIERS_GRAPH),this._subject=null),this._readCallback=this._getContextEndReader(),this._readCallback(e))}_getPathReader(e){return this._afterPath=e,this._readPath}_readPath(e){switch(e.type){case"!":return this._readForwardPath;case"^":return this._readBackwardPath;default:const r=this._contextStack,n=r.length&&r[r.length-1];if(n&&n.type==="item"){const a=this._subject;this._restoreContext("item",e),this._emit(this._subject,this.RDF_FIRST,a,this._graph)}return this._afterPath(e)}}_readForwardPath(e){let r,n;const a=this._blankNode();if((n=this._readEntity(e))!==void 0)return this._predicate===null?(r=this._subject,this._subject=a):(r=this._object,this._object=a),this._emit(r,n,a,this._graph),this._readPath}_readBackwardPath(e){const r=this._blankNode();let n,a;if((n=this._readEntity(e))!==void 0)return this._predicate===null?(a=this._subject,this._subject=r):(a=this._object,this._object=r),this._emit(r,n,a,this._graph),this._readPath}_readRDFStarTailOrGraph(e){return e.type!==">>"?this._supportsQuads&&this._graph===null&&(this._graph=this._readEntity(e))!==void 0?this._readRDFStarTail:this._error(`Expected >> to follow "${this._object.id}"`,e):this._readRDFStarTail(e)}_readRDFStarTail(e){if(e.type!==">>")return this._error(`Expected >> but got ${e.type}`,e);const r=this._quad(this._subject,this._predicate,this._object,this._graph||this.DEFAULTGRAPH);return this._restoreContext("<<",e),this._subject===null?(this._subject=r,this._readPredicate):(this._object=r,this._getContextEndReader())}_getContextEndReader(){const e=this._contextStack;if(!e.length)return this._readPunctuation;switch(e[e.length-1].type){case"blank":return this._readBlankNodeTail;case"list":return this._readListItem;case"formula":return this._readFormulaTail;case"<<":return this._readRDFStarTailOrGraph}}_emit(e,r,n,a){this._callback(null,this._quad(e,r,n,a||this.DEFAULTGRAPH))}_error(e,r){const n=new Error(`${e} on line ${r.line}.`);n.context={token:r,line:r.line,previousToken:this._lexer.previousToken},this._callback(n),this._callback=bI}_resolveIRI(e){return/^[a-z][a-z0-9+.-]*:/i.test(e)?e:this._resolveRelativeIRI(e)}_resolveRelativeIRI(e){if(!e.length)return this._base;switch(e[0]){case"#":return this._base+e;case"?":return this._base.replace(/(?:\?.*)?$/,e);case"/":return(e[1]==="/"?this._baseScheme:this._baseRoot)+this._removeDotSegments(e);default:return/^[^/:]*:/.test(e)?null:this._removeDotSegments(this._basePath+e)}}_removeDotSegments(e){if(!/(^|\/)\.\.?($|[/#?])/.test(e))return e;const r=e.length;let n="",a=-1,s=-1,o=0,u="/";for(;a=s&&(n=n.substr(0,o)),u!=="/")return`${n}/${e.substr(a+1)}`;o=a+1}}}u=e[++a]}return n+e.substring(o)}parse(e,r,n){if(this._readCallback=this._readInTopContext,this._sparqlStyle=!1,this._prefixes=Object.create(null),this._prefixes._=this._blankNodePrefix?this._blankNodePrefix.substr(2):`b${IQ++}_`,this._prefixCallback=n||bI,this._inversePredicate=!1,this._quantified=Object.create(null),!r){const a=[];let s;if(this._callback=(o,u)=>{o?s=o:u&&a.push(u)},this._lexer.tokenize(e).every(o=>this._readCallback=this._readCallback(o)),s)throw s;return a}this._callback=r,this._lexer.tokenize(e,(a,s)=>{a!==null?(this._callback(a),this._callback=bI):this._readCallback&&(this._readCallback=this._readCallback(s))})}}function bI(){}function Bte(t,e){const r=e.namedNode;t._namedNode=r,t._blankNode=e.blankNode,t._literal=e.literal,t._variable=e.variable,t._quad=e.quad,t.DEFAULTGRAPH=e.defaultGraph(),t.RDF_FIRST=r(Ln.rdf.first),t.RDF_REST=r(Ln.rdf.rest),t.RDF_NIL=r(Ln.rdf.nil),t.N3_FORALL=r(Ln.r.forAll),t.N3_FORSOME=r(Ln.r.forSome),t.ABBREVIATIONS={a:r(Ln.rdf.type),"=":r(Ln.owl.sameAs),">":r(Ln.log.implies)},t.QUANTIFIERS_GRAPH=r("urn:n3:quantifiers")}Bte(Fte.prototype,Zd);function fje(t){return!!t&&t.termType==="NamedNode"}function hje(t){return!!t&&t.termType==="BlankNode"}function pje(t){return!!t&&t.termType==="Literal"}function yje(t){return!!t&&t.termType==="Variable"}function Rb(t){return!!t&&t.termType==="DefaultGraph"}function mje(t){return Rb(t.graph)}function gje(t,e){return qte({"":t.value||t},e)("")}function qte(t,e){const r=Object.create(null);for(const a in t)n(a,t[a]);e=e||Zd;function n(a,s){if(typeof s=="string"){const o=Object.create(null);r[a]=u=>o[u]||(o[u]=e.namedNode(s+u))}else if(!(a in r))throw new Error(`Unknown prefix: ${a}`);return r[a]}return n}const A$e=Object.freeze(Object.defineProperty({__proto__:null,inDefaultGraph:mje,isBlankNode:hje,isDefaultGraph:Rb,isLiteral:pje,isNamedNode:fje,isVariable:yje,prefix:gje,prefixes:qte},Symbol.toStringTag,{value:"Module"})),p_=Zd.defaultGraph(),{rdf:_je,xsd:Hl}=Ln,PQ=/["\\\t\n\r\b\f\u0000-\u0019\ud800-\udbff]/,NQ=/["\\\t\n\r\b\f\u0000-\u0019]|[\ud800-\udbff][\udc00-\udfff]/g,bje={"\\":"\\\\",'"':'\\"'," ":"\\t","\n":"\\n","\r":"\\r","\b":"\\b","\f":"\\f"};class y_ extends Rs{equals(e){return e===this}}class vje{constructor(e,r){if(this._prefixRegex=/$0^/,e&&typeof e.write!="function"&&(r=e,e=null),r=r||{},this._lists=r.lists,e)this._outputStream=e,this._endStream=r.end===void 0?!0:!!r.end;else{let n="";this._outputStream={write(a,s,o){n+=a,o&&o()},end:a=>{a&&a(null,n)}},this._endStream=!0}this._subject=null,/triple|quad/i.test(r.format)?(this._lineMode=!0,this._writeQuad=this._writeQuadLine):(this._lineMode=!1,this._graph=p_,this._prefixIRIs=Object.create(null),r.prefixes&&this.addPrefixes(r.prefixes),r.baseIRI&&(this._baseMatcher=new RegExp(`^${CQ(r.baseIRI)}${r.baseIRI.endsWith("/")?"":"[#?]"}`),this._baseLength=r.baseIRI.length))}get _inDefaultGraph(){return p_.equals(this._graph)}_write(e,r){this._outputStream.write(e,"utf8",r)}_writeQuad(e,r,n,a,s){try{a.equals(this._graph)||(this._write((this._subject===null?"":this._inDefaultGraph?`. +`}async runHandle(o,u,c){const l=new r.Readable,d=o.type==="bindings"?o.bindingsStream:o.quadStream,f=this.now();let h=1;function*p(y){yield y()}const m=(0,e.wrap)(d).map(()=>this.createStat(f,h++)).append((0,e.wrap)(p(()=>this.createFooter(f))));return this.pushHeader(l),l.wrap(m),{data:l}}now(){if(typeof performance>"u"){const o=n.hrtime();return o[0]*1e3+o[1]/1e6}return performance.now()}delay(o){return this.now()-o}};return pm.ActorQueryResultSerializeStats=a,pm}var mk;function gk(){return mk||(mk=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(x4e(),t),r(I4e(),t)}(vx)),vx}var wx={},ym={},Sx={},mm={},_k;function P4e(){if(_k)return mm;_k=1,Object.defineProperty(mm,"__esModule",{value:!0}),mm.ActorQuerySourceIdentifyHypermedia=void 0;const t=st;class e extends t.Actor{constructor(n,a){super(n),this.sourceType=a}async test(n){if(n.forceSourceType&&this.sourceType!==n.forceSourceType)throw new Error(`Actor ${this.name} is not able to handle source type ${n.forceSourceType}.`);return this.testMetadata(n)}}return mm.ActorQuerySourceIdentifyHypermedia=e,mm}var bk;function T4(){return bk||(bk=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(P4e(),t)}(Sx)),Sx}var gm={},Tx={},_m={},vk;function N4e(){if(vk)return _m;vk=1,Object.defineProperty(_m,"__esModule",{value:!0}),_m.ActorQuerySourceIdentify=void 0;const t=st;let e=class extends t.Actor{constructor(n){super(n)}};return _m.ActorQuerySourceIdentify=e,_m}var cn={},wk;function D4e(){if(wk)return cn;wk=1,Object.defineProperty(cn,"__esModule",{value:!0}),cn.filterMatchingQuotedQuads=cn.quadsOrderToBindingsOrder=cn.quadsMetadataToBindingsMetadata=cn.setMetadata=cn.getDuplicateElementLinks=cn.getVariables=cn.isTermVariable=cn.quadsToBindings=void 0;const t=Tt(),e=ci(),r=Ot,n=nr,a=In(),s=wY(),o=new r.DataFactory;function u(y,g,b,v){const _=l(g),w=g.graph.termType==="Variable"&&!v,E=d(g),O=(0,a.reduceTermsNested)(g,(F,x,P)=>(x.termType==="Variable"&&(F[P.join("_")]=x.value),F),{}),L=new t.ClosableTransformIterator(async()=>{let F=y;return w&&(F=F.filter(x=>x.graph.termType!=="DefaultGraph")),E&&(F=F.filter(x=>{for(const P in E){const j=P.split("_"),N=(0,a.getValueNestedPath)(x,j);for(const V of E[P])if(!N.equals((0,a.getValueNestedPath)(x,V)))return!1}return!0})),F.map(x=>b.bindings(Object.keys(O).map(P=>{const j=P.split("_"),N=O[P],V=(0,a.getValueNestedPath)(x,j);return[o.variable(N),V]})))},{autoStart:!1,onClose:()=>y.destroy()});return f(L,y,O,_,w||!!E),L}cn.quadsToBindings=u;function c(y){return y.termType==="Variable"}cn.isTermVariable=c;function l(y){return(0,a.uniqTerms)((0,a.getTermsNested)(y).filter(c))}cn.getVariables=l;function d(y){const g={};let b=!1;if((0,a.forEachTermsNested)(y,(_,w)=>{if(_.termType==="Variable"){const E=(0,n.termToString)(_),O=(g[E]||(g[E]=[])).push(w);b=b||O>1}}),!b)return;const v={};for(const _ in g){const w=g[_],E=w.slice(1);E.length>0&&(v[w[0].join("_")]=E)}return v}cn.getDuplicateElementLinks=d;function f(y,g,b,v,_){const w=O=>{"canContainUndefs"in O||(O.canContainUndefs=!1),_&&(O.cardinality.type="estimate"),y.setProperty("metadata",h((0,e.validateMetadataQuads)(O),b,v)),O.state&&O.state.addInvalidateListener(()=>{f(y,g,b,v,_)})},E=g.getProperty("metadata");E?w(E):g.getProperty("metadata",w)}cn.setMetadata=f;function h(y,g,b){return{...y,canContainUndefs:!1,order:y.order?p(y.order,g):void 0,availableOrders:y.availableOrders?y.availableOrders.map(v=>({cost:v.cost,terms:p(v.terms,g)})):void 0,variables:b}}cn.quadsMetadataToBindingsMetadata=h;function p(y,g){const b={};return y.map(v=>{const _=g[v.term];if(_&&!b[_])return b[_]=!0,{term:o.variable(_),direction:v.direction}}).filter(Boolean)}cn.quadsOrderToBindingsOrder=p;function m(y,g){return(0,a.someTerms)(y,b=>b.termType==="Quad")&&(g=g.filter(b=>(0,s.matchPatternMappings)(b,y))),g}return cn.filterMatchingQuotedQuads=m,cn}var Sk;function q1(){return Sk||(Sk=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(N4e(),t),r(D4e(),t)}(Tx)),Tx}var Tk;function ete(){if(Tk)return gm;Tk=1,Object.defineProperty(gm,"__esModule",{value:!0}),gm.QuerySourceQpf=void 0;const t=q1(),e=qt,r=Mt,n=Ot,a=nr,s=x1(),o=In(),u=xt(),c=new u.Factory,l=new n.DataFactory;let d=class aN{constructor(p,m,y,g,b,v,_,w,E,O,L,F){this.referenceValue=E,this.mediatorMetadata=p,this.mediatorMetadataExtract=m,this.mediatorDereferenceRdf=y,this.bindingsFactory=g,this.subjectUri=b,this.predicateUri=v,this.objectUri=_,this.graphUri=w,this.url=E,this.bindingsRestricted=L,this.cachedQuads={};const x=this.getSearchForm(O);if(!x)throw new Error("Illegal state: found no TPF/QPF search form anymore in metadata.");if(this.searchForm=x,this.defaultGraph=O.defaultGraph?l.namedNode(O.defaultGraph):void 0,F){let P=(0,r.wrap)(F);this.defaultGraph&&(P=this.reverseMapQuadsToDefaultGraph(P)),P.setProperty("metadata",O),this.cacheQuads(P,l.variable(""),l.variable(""),l.variable(""),l.variable(""))}}async getSelectorShape(){return this.bindingsRestricted?aN.SELECTOR_SHAPE_BR:aN.SELECTOR_SHAPE}queryBindings(p,m,y){if(p.type!=="pattern")throw new Error(`Attempted to pass non-pattern operation '${p.type}' to QuerySourceQpf`);const g=!!m.get(e.KeysQueryOperation.unionDefaultGraph);let b=this.match(p.subject,p.predicate,p.object,p.graph,g,m,y);return b=(0,t.filterMatchingQuotedQuads)(p,b),(0,t.quadsToBindings)(b,p,this.bindingsFactory,g)}getSearchForm(p){if(!p.searchForms||!p.searchForms.values)return;const{searchForms:m}=p;for(const y of m.values)if(this.graphUri&&this.subjectUri in y.mappings&&this.predicateUri in y.mappings&&this.objectUri in y.mappings&&this.graphUri in y.mappings&&Object.keys(y.mappings).length===4||this.subjectUri in y.mappings&&this.predicateUri in y.mappings&&this.objectUri in y.mappings&&Object.keys(y.mappings).length===3)return y}createFragmentUri(p,m,y,g,b){const v={},_=[{uri:this.subjectUri,term:m},{uri:this.predicateUri,term:y},{uri:this.objectUri,term:g},{uri:this.graphUri,term:b}];for(const w of _)w.uri&&(this.bindingsRestricted||w.term.termType!=="Variable"&&(w.term.termType!=="Quad"||(0,o.everyTermsNested)(w.term,E=>E.termType!=="Variable")))&&(v[w.uri]=(0,a.termToString)(w.term));return p.getUri(v)}match(p,m,y,g,b,v,_){let w=!1;if(g.termType==="DefaultGraph")if(this.defaultGraph)w=!0,g=this.defaultGraph;else if(Object.keys(this.searchForm.mappings).length===4&&!this.defaultGraph)if(b)g=l.variable("g");else{const F=new r.ArrayIterator([],{autoStart:!1});return F.setProperty("metadata",{requestTime:0,cardinality:{type:"exact",value:0},first:null,next:null,last:null,canContainUndefs:!1}),F}else Object.keys(this.searchForm.mappings).length===3&&(g=l.variable("g"));if(!(_!=null&&_.filterBindings)){const F=this.getCachedQuads(p,m,y,g);if(F)return F}const E=this;let O;const L=async function(){var N;let F=E.createFragmentUri(E.searchForm,p,m,y,g);_!=null&&_.filterBindings&&(F=await E.getBindingsRestrictedLink(p,m,y,g,F,_.filterBindings));const x=await E.mediatorDereferenceRdf.mediate({context:v,url:F});F=x.url;const P=await E.mediatorMetadata.mediate({context:v,url:F,quads:x.data,triples:(N=x.metadata)==null?void 0:N.triples}),{metadata:j}=await E.mediatorMetadataExtract.mediate({context:v,url:F,metadata:P.metadata,requestTime:x.requestTime});return O.setProperty("metadata",{...j,canContainUndefs:!1,subsetOf:E.url}),P.data}();return O=new r.TransformIterator(async()=>{const F=await L,x=l.defaultGraph();let P=(0,r.wrap)(F).transform({filter(j){return(0,o.matchPattern)(j,p,m,y,g)?!0:w&&(0,o.matchPattern)(j,p,m,y,x)}});return(w||g.termType==="Variable")&&(P=this.reverseMapQuadsToDefaultGraph(P)),P},{autoStart:!1}),_!=null&&_.filterBindings?O:(this.cacheQuads(O,p,m,y,g),this.getCachedQuads(p,m,y,g))}async getBindingsRestrictedLink(p,m,y,g,b,v){const _=[];for(const E of await v.bindings.toArray()){const O=["("];for(const L of v.metadata.variables){const F=E.get(L);O.push(F?(0,s.termToString)(F):"UNDEF"),O.push(" ")}O.push(")"),_.push(O.join(""))}_.length===0&&_.push("()");const w=encodeURIComponent(`(${v.metadata.variables.map(E=>`?${E.value}`).join(" ")}) { ${_.join(" ")} }`);return`${b}&values=${w}`}reverseMapQuadsToDefaultGraph(p){const m=l.defaultGraph();return p.map(y=>(0,o.mapTerms)(y,(g,b)=>b==="graph"&&g.equals(this.defaultGraph)?m:g))}getPatternId(p,m,y,g){return JSON.stringify({s:p.termType==="Variable"?"":f(p),p:m.termType==="Variable"?"":f(m),o:y.termType==="Variable"?"":f(y),g:g.termType==="Variable"?"":f(g)})}cacheQuads(p,m,y,g,b){const v=this.getPatternId(m,y,g,b);this.cachedQuads[v]=p.clone()}getCachedQuads(p,m,y,g){const b=this.getPatternId(p,m,y,g),v=this.cachedQuads[b];if(v)return v.clone()}queryQuads(p,m){throw new Error("queryQuads is not implemented in QuerySourceQpf")}queryBoolean(p,m){throw new Error("queryBoolean is not implemented in QuerySourceQpf")}queryVoid(p,m){throw new Error("queryVoid is not implemented in QuerySourceQpf")}};gm.QuerySourceQpf=d,d.SELECTOR_SHAPE={type:"operation",operation:{operationType:"pattern",pattern:c.createPattern(l.variable("s"),l.variable("p"),l.variable("o"),l.variable("g"))},variablesOptional:[l.variable("s"),l.variable("p"),l.variable("o"),l.variable("g")]},d.SELECTOR_SHAPE_BR={type:"operation",operation:{operationType:"pattern",pattern:c.createPattern(l.variable("s"),l.variable("p"),l.variable("o"),l.variable("g"))},variablesOptional:[l.variable("s"),l.variable("p"),l.variable("o"),l.variable("g")],filterBindings:!0};function f(h){return h.termType==="DefaultGraph"?"|":(0,a.termToString)(h)}return gm}var Ek;function C4e(){if(Ek)return ym;Ek=1,Object.defineProperty(ym,"__esModule",{value:!0}),ym.ActorQuerySourceIdentifyHypermediaQpf=void 0;const t=kr(),e=T4(),r=ete();let n=class extends e.ActorQuerySourceIdentifyHypermedia{constructor(s){super(s,"qpf")}async test(s){if(s.forceSourceType&&s.forceSourceType!=="qpf"&&s.forceSourceType!=="brtpf")throw new Error(`Actor ${this.name} is not able to handle source type ${s.forceSourceType}.`);return this.testMetadata(s)}async testMetadata(s){const{searchForm:o}=await this.createSource(s.url,s.metadata,s.context,s.forceSourceType==="brtpf");if(s.handledDatasets&&s.handledDatasets[o.dataset])throw new Error(`Actor ${this.name} can only be applied for the first page of a QPF dataset.`);return{filterFactor:1}}async run(s){this.logInfo(s.context,`Identified as qpf source: ${s.url}`);const o=await this.createSource(s.url,s.metadata,s.context,s.forceSourceType==="brtpf",s.quads);return{source:o,dataset:o.searchForm.dataset}}async createSource(s,o,u,c,l){return new r.QuerySourceQpf(this.mediatorMetadata,this.mediatorMetadataExtract,this.mediatorDereferenceRdf,await t.BindingsFactory.create(this.mediatorMergeBindingsContext,u),this.subjectUri,this.predicateUri,this.objectUri,this.graphUri,s,o,c,l)}};return ym.ActorQuerySourceIdentifyHypermediaQpf=n,ym}var Ak;function L4e(){return Ak||(Ak=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(C4e(),t),r(ete(),t)}(wx)),wx}var Ex={},bm={},vm={},Ok;function tte(){if(Ok)return vm;Ok=1,Object.defineProperty(vm,"__esModule",{value:!0}),vm.QuerySourceSparql=void 0;const t=qt,e=Mt,r=Bee(),n=ju(),a=Ot,s=xt(),o=new s.Factory,u=new a.DataFactory,c=u.variable("count"),l={type:"estimate",value:Number.POSITIVE_INFINITY};let d=class Ki{constructor(h,p,m,y,g,b,v,_){this.referenceValue=h,this.url=h,this.context=p,this.mediatorHttp=m,this.bindMethod=y,this.bindingsFactory=g,this.endpointFetcher=new r.SparqlEndpointFetcher({method:b?"GET":"POST",fetch:(w,E)=>this.mediatorHttp.mediate({input:w,init:E,context:this.lastSourceContext}),prefixVariableQuestionMark:!0}),this.cache=v>0?new n.LRUCache({max:v}):void 0,this.countTimeout=_}async getSelectorShape(){return Ki.SELECTOR_SHAPE}queryBindings(h,p,m){let y;m!=null&&m.joinBindings?y=Ki.addBindingsToOperation(this.bindMethod,h,m.joinBindings):y=Promise.resolve(h);const g=new e.TransformIterator(async()=>{const b=await y,v=s.Util.inScopeVariables(b),_=p.get(t.KeysInitQuery.queryString),w=!(m!=null&&m.joinBindings)&&_?_:Ki.operationToSelectQuery(b,v),E=Ki.operationCanContainUndefs(b);return this.queryBindingsRemote(this.url,w,v,p,E)},{autoStart:!1});return this.attachMetadata(g,p,y),g}queryQuads(h,p){this.lastSourceContext=this.context.merge(p);const m=this.endpointFetcher.fetchTriples(this.url,p.get(t.KeysInitQuery.queryString)??Ki.operationToQuery(h));this.lastSourceContext=void 0;const y=(0,e.wrap)(m,{autoStart:!1,maxBufferSize:Number.POSITIVE_INFINITY});return this.attachMetadata(y,p,Promise.resolve(h.input)),y}queryBoolean(h,p){this.lastSourceContext=this.context.merge(p);const m=this.endpointFetcher.fetchAsk(this.url,p.get(t.KeysInitQuery.queryString)??Ki.operationToQuery(h));return this.lastSourceContext=void 0,m}queryVoid(h,p){this.lastSourceContext=this.context.merge(p);const m=this.endpointFetcher.fetchUpdate(this.url,p.get(t.KeysInitQuery.queryString)??Ki.operationToQuery(h));return this.lastSourceContext=void 0,m}attachMetadata(h,p,m){let y=[],g=!1;new Promise(async(b,v)=>{var w;let _;try{const E=await m;y=s.Util.inScopeVariables(E),_=Ki.operationToCountQuery(E),g=Ki.operationCanContainUndefs(E);const O=(w=this.cache)==null?void 0:w.get(_);if(O!==void 0)return b(O);const L=setTimeout(()=>b(l),this.countTimeout),F=await this.queryBindingsRemote(this.url,_,[c],p,!1);F.on("data",x=>{var N;clearTimeout(L);const P=x.get(c),j={type:"estimate",value:Number.POSITIVE_INFINITY};if(P){const V=Number.parseInt(P.value,10);Number.isNaN(V)||(j.type="exact",j.value=V,(N=this.cache)==null||N.set(_,j))}return b(j)}),F.on("error",()=>{clearTimeout(L),b(l)}),F.on("end",()=>{clearTimeout(L),b(l)})}catch(E){return v(E)}}).then(b=>h.setProperty("metadata",{cardinality:b,canContainUndefs:g,variables:y})).catch(()=>h.setProperty("metadata",{cardinality:l,canContainUndefs:g,variables:y}))}static async addBindingsToOperation(h,p,m){const y=await m.bindings.toArray();switch(h){case"values":return o.createJoin([o.createValues(m.metadata.variables,y.map(g=>Object.fromEntries([...g].map(([b,v])=>[`?${b.value}`,v])))),p],!1);case"union":throw new Error('Not implemented yet: "union" case');case"filter":throw new Error('Not implemented yet: "filter" case')}}static operationToSelectQuery(h,p){return Ki.operationToQuery(o.createProject(h,p))}static operationToCountQuery(h){return Ki.operationToQuery(o.createProject(o.createExtend(o.createGroup(h,[],[o.createBoundAggregate(u.variable("var0"),"count",o.createWildcardExpression(),!1)]),u.variable("count"),o.createTermExpression(u.variable("var0"))),[u.variable("count")]))}static operationToQuery(h){return(0,s.toSparql)(h,{sparqlStar:!0})}static operationCanContainUndefs(h){let p=!1;return s.Util.recurseOperation(h,{leftjoin(){return p=!0,!1},values(m){return p=m.bindings.some(y=>m.variables.some(g=>!(`?${g.value}`in y))),!1}}),p}async queryBindingsRemote(h,p,m,y,g){this.lastSourceContext=this.context.merge(y);const b=await this.endpointFetcher.fetchBindings(h,p);this.lastSourceContext=void 0;const v=(0,e.wrap)(b,{autoStart:!1,maxBufferSize:Number.POSITIVE_INFINITY}).map(_=>this.bindingsFactory.bindings(m.map(w=>{const E=_[`?${w.value}`];return!g&&!E&&v.emit("error",new Error(`The endpoint ${h} failed to provide a binding for ${w.value}.`)),[w,E]})));return v}toString(){return`QuerySourceSparql(${this.url})`}};return vm.QuerySourceSparql=d,d.SELECTOR_SHAPE={type:"disjunction",children:[{type:"operation",operation:{operationType:"type",type:s.Algebra.types.PROJECT},joinBindings:!0},{type:"operation",operation:{operationType:"type",type:s.Algebra.types.CONSTRUCT}},{type:"operation",operation:{operationType:"type",type:s.Algebra.types.DESCRIBE}},{type:"operation",operation:{operationType:"type",type:s.Algebra.types.ASK}},{type:"operation",operation:{operationType:"type",type:s.Algebra.types.COMPOSITE_UPDATE}}]},vm}var Rk;function j4e(){if(Rk)return bm;Rk=1,Object.defineProperty(bm,"__esModule",{value:!0}),bm.ActorQuerySourceIdentifyHypermediaSparql=void 0;const t=kr(),e=T4(),r=tte();let n=class extends e.ActorQuerySourceIdentifyHypermedia{constructor(s){super(s,"sparql")}async testMetadata(s){if(!s.forceSourceType&&!s.metadata.sparqlService&&!(this.checkUrlSuffix&&s.url.endsWith("/sparql")))throw new Error(`Actor ${this.name} could not detect a SPARQL service description or URL ending on /sparql.`);return{filterFactor:1}}async run(s){return this.logInfo(s.context,`Identified ${s.url} as sparql source with service URL: ${s.metadata.sparqlService||s.url}`),{source:new r.QuerySourceSparql(s.forceSourceType?s.url:s.metadata.sparqlService||s.url,s.context,this.mediatorHttp,this.bindMethod,await t.BindingsFactory.create(this.mediatorMergeBindingsContext,s.context),this.forceHttpGet,this.cacheSize,this.countTimeout)}}};return bm.ActorQuerySourceIdentifyHypermediaSparql=n,bm}var xk;function M4e(){return xk||(xk=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(j4e(),t),r(tte(),t)}(Ex)),Ex}var Ax={},wm={},Ox={},Sm={},Tm={},Ik;function rte(){if(Ik)return Tm;Ik=1,Object.defineProperty(Tm,"__esModule",{value:!0}),Tm.QuerySourceRdfJs=void 0;const t=q1(),e=qt,r=ci(),n=Mt,a=Ot,s=In(),o=xt(),u=new o.Factory,c=new a.DataFactory;let l=class Kn{constructor(f,h){this.source=f,this.referenceValue=f,this.bindingsFactory=h}static nullifyVariables(f,h){return!f||f.termType==="Variable"||!h&&f.termType==="Quad"&&(0,s.someTermsNested)(f,p=>p.termType==="Variable")?void 0:f}static hasDuplicateVariables(f){const h=(0,s.filterTermsNested)(f,p=>p.termType==="Variable");return h.length>1&&(0,s.uniqTerms)(h).lengthy.destroy(b)),(0,t.quadsToBindings)(y,f,this.bindingsFactory,!!h.get(e.KeysQueryOperation.unionDefaultGraph))}async setMetadata(f,h){var g;const p=!!((g=this.source.features)!=null&&g.quotedTripleFiltering);let m;if(this.source.countQuads)m=await this.source.countQuads(Kn.nullifyVariables(h.subject,p),Kn.nullifyVariables(h.predicate,p),Kn.nullifyVariables(h.object,p),Kn.nullifyVariables(h.graph,p));else{let b=0;m=await new Promise((v,_)=>{const w=this.source.match(Kn.nullifyVariables(h.subject,p),Kn.nullifyVariables(h.predicate,p),Kn.nullifyVariables(h.object,p),Kn.nullifyVariables(h.graph,p));w.on("error",_),w.on("end",()=>v(b)),w.on("data",()=>b++)})}const y=!p&&(0,s.someTerms)(h,b=>b.termType==="Quad")||Kn.hasDuplicateVariables(h);f.setProperty("metadata",{state:new r.MetadataValidationState,cardinality:{type:y?"estimate":"exact",value:m},canContainUndefs:!1})}queryQuads(f,h){throw new Error("queryQuads is not implemented in QuerySourceQpf")}queryBoolean(f,h){throw new Error("queryBoolean is not implemented in QuerySourceQpf")}queryVoid(f,h){throw new Error("queryVoid is not implemented in QuerySourceQpf")}toString(){return`QuerySourceRdfJs(${this.source.constructor.name})`}};return Tm.QuerySourceRdfJs=l,l.SELECTOR_SHAPE={type:"operation",operation:{operationType:"pattern",pattern:u.createPattern(c.variable("s"),c.variable("p"),c.variable("o"))},variablesOptional:[c.variable("s"),c.variable("p"),c.variable("o")]},Tm}var Pk;function F4e(){if(Pk)return Sm;Pk=1,Object.defineProperty(Sm,"__esModule",{value:!0}),Sm.ActorQuerySourceIdentifyRdfJs=void 0;const t=kr(),e=q1(),r=st,n=rte();let a=class extends e.ActorQuerySourceIdentify{constructor(o){super(o)}async test(o){const u=o.querySourceUnidentified;if(u.type!==void 0&&u.type!=="rdfjs")throw new Error(`${this.name} requires a single query source with rdfjs type to be present in the context.`);if(typeof u.value=="string"||!("match"in u.value))throw new Error(`${this.name} received an invalid rdfjs query source.`);return!0}async run(o){return{querySource:{source:new n.QuerySourceRdfJs(o.querySourceUnidentified.value,await t.BindingsFactory.create(this.mediatorMergeBindingsContext,o.context)),context:o.querySourceUnidentified.context??new r.ActionContext}}}};return Sm.ActorQuerySourceIdentifyRdfJs=a,Sm}var Rx={},Nk;function B4e(){return Nk||(Nk=1,Object.defineProperty(Rx,"__esModule",{value:!0})),Rx}var Dk;function E4(){return Dk||(Dk=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(F4e(),t),r(B4e(),t),r(rte(),t)}(Ox)),Ox}var Em={},xx={},Am={},Om={},Rm={},Ck;function nte(){if(Ck)return Rm;Ck=1,Object.defineProperty(Rm,"__esModule",{value:!0}),Rm.TermDictionaryNumberRecordFullTerms=void 0;const t=Ot,e=nr;let r=class{constructor(a=new t.DataFactory){this.lastId=0,this.dictionary={},this.reverseDictionary={},this.features={quotedTriples:!1},this.dataFactory=a}encode(a){const s=(0,e.termToString)(a);let o=this.dictionary[s];return o===void 0&&(o=this.lastId++,this.dictionary[s]=o,this.reverseDictionary[o]=a),o}encodeOptional(a){const s=(0,e.termToString)(a);return this.dictionary[s]}decode(a){const s=this.reverseDictionary[a];if(s===void 0)throw new Error(`The value ${a} is not present in this dictionary`);return s}*encodings(){for(const a of Object.keys(this.reverseDictionary))yield Number.parseInt(a,10)}findQuotedTriples(a){throw new Error("findQuotedTriples is not supported")}findQuotedTriplesEncoded(a){throw new Error("findQuotedTriplesEncoded is not supported")}};return Rm.TermDictionaryNumberRecordFullTerms=r,Rm}var xm={},Im={},Ix={},Lk;function Es(){return Lk||(Lk=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.arePatternsQuoted=t.quadHasVariables=t.quadToPattern=t.encodeOptionalTerms=t.orderQuadComponents=t.getComponentOrderScore=t.getBestIndex=t.QUAD_TERM_NAMES_INVERSE=void 0;const e=In();t.QUAD_TERM_NAMES_INVERSE=Object.fromEntries(e.QUAD_TERM_NAMES.map((l,d)=>[l,d]));function r(l,d){if(l.length===1||d.every(p=>p!==void 0))return 0;const f=[];for(let p=0;p({score:n(p,f),index:m})).sort((p,m)=>m.score-p.score)[0].index}t.getBestIndex=r;function n(l,d){return l.map((f,h)=>d.includes(f)?l.length-h:0).reduce((f,h)=>f+h,0)}t.getComponentOrderScore=n;function a(l,d){return l.map(f=>{const h=t.QUAD_TERM_NAMES_INVERSE[f];return d[h]})}t.orderQuadComponents=a;function s(l,d){const f=l.map(h=>{if(h){if(h.termType==="Quad"&&u(h))return;const p=d.encodeOptional(h);return p===void 0?"none":p}return h});if(!f.includes("none"))return f}t.encodeOptionalTerms=s;function o(l,d,f,h,p){let m=!1;return[[l||void 0,d||void 0,f||void 0,h||void 0].map(g=>{if(g){if(g.termType==="Variable")return;if(g.termType==="Quad"){if(p)return g;m=!0;return}}return g}),m]}t.quadToPattern=o;function u(l){for(const d of e.QUAD_TERM_NAMES){const f=l[d];if(f.termType==="Variable"||f.termType==="Quad"&&u(f))return!0}return!1}t.quadHasVariables=u;function c(l){return l.map(d=>(d==null?void 0:d.termType)==="Quad"&&u(d))}t.arePatternsQuoted=c}(Ix)),Ix}var jk;function A4(){if(jk)return Im;jk=1,Object.defineProperty(Im,"__esModule",{value:!0}),Im.RdfStoreIndexNestedMap=void 0;const t=Es();let e=class{constructor(n){this.features={quotedTripleFiltering:!1},this.dictionary=n.dictionary,this.nestedMap=new Map}set(n,a){const s=this.nestedMap;let o=s.get(n[0]);o||(o=new Map,s.set(n[0],o));let u=o.get(n[1]);u||(u=new Map,o.set(n[1],u));let c=u.get(n[2]);c||(c=new Map,u.set(n[2],c));const l=c.has(n[3]);return l||c.set(n[3],a),!l}remove(n){const a=this.nestedMap,s=a.get(n[0]);if(!s)return!1;const o=s.get(n[1]);if(!o)return!1;const u=o.get(n[2]);if(!u)return!1;const c=u.delete(n[3]);return c&&u.size===0&&(o.delete(n[2]),o.size===0&&(s.delete(n[1]),s.size===0&&a.delete(n[0]))),c}get(n){const a=(0,t.encodeOptionalTerms)(n,this.dictionary);if(!(!a||a.includes(void 0)))return this.getEncoded(a)}getEncoded(n){const a=this.nestedMap.get(n[0]);if(!a)return;const s=a.get(n[1]);if(!s)return;const o=s.get(n[2]);if(o)return o.get(n[3])}*find(n){const a=(0,t.encodeOptionalTerms)(n,this.dictionary);if(!a)return;const[s,o,u,c]=a,[l,d,f,h]=n;let p,m,y,g,b,v,_;const w=this.nestedMap,E=s!==void 0?w.has(s)?[s]:[]:w.keys();for(const O of E){b=w.get(O),p=l||this.dictionary.decode(O);const L=o!==void 0?b.has(o)?[o]:[]:b.keys();for(const F of L){v=b.get(F),m=d||this.dictionary.decode(F);const x=u!==void 0?v.has(u)?[u]:[]:v.keys();for(const P of x){_=v.get(P),y=f||this.dictionary.decode(P);const j=c!==void 0?_.has(c)?[c]:[]:_.keys();for(const N of j)g=h||this.dictionary.decode(N),yield[p,m,y,g]}}}}*findEncoded(n,a){const[s,o,u,c]=n;let l,d,f;const h=this.nestedMap,p=s!==void 0?h.has(s)?[s]:[]:h.keys();for(const m of p){l=h.get(m);const y=o!==void 0?l.has(o)?[o]:[]:l.keys();for(const g of y){d=l.get(g);const b=u!==void 0?d.has(u)?[u]:[]:d.keys();for(const v of b){f=d.get(v);const _=c!==void 0?f.has(c)?[c]:[]:f.keys();for(const w of _)yield[m,g,v,w]}}}}count(n){let a=0;const s=(0,t.encodeOptionalTerms)(n,this.dictionary);if(!s)return 0;const o=s[0],u=s[1],c=s[2],l=s[3];let d,f,h;const p=this.nestedMap,m=o!==void 0?p.has(o)?[o]:[]:p.keys();for(const y of m){d=p.get(y);const g=u!==void 0?d.has(u)?[u]:[]:d.keys();for(const b of g){f=d.get(b);const v=c!==void 0?f.has(c)?[c]:[]:f.keys();for(const _ of v)h=f.get(_),l!==void 0?h.has(l)&&a++:a+=h.size}}return a}};return Im.RdfStoreIndexNestedMap=e,Im}var Mk;function ite(){if(Mk)return xm;Mk=1,Object.defineProperty(xm,"__esModule",{value:!0}),xm.TermDictionaryQuotedIndexed=void 0;const t=Ot,e=A4(),r=Es();let n=class Js{constructor(s,o=new t.DataFactory){this.quotedTriplesDictionary=[],this.features={quotedTriples:!0},this.plainTermDictionary=s;const u={indexCombinations:[],indexConstructor:void 0,dictionary:this,dataFactory:o};this.quotedTriplesReverseDictionaries=[new e.RdfStoreIndexNestedMap(u),new e.RdfStoreIndexNestedMap(u),new e.RdfStoreIndexNestedMap(u)],this.dataFactory=o}encode(s){return s.termType==="Quad"?this.encodeQuotedTriple(s,!1):this.plainTermDictionary.encode(s)}encodeQuotedTriple(s,o){if(s.graph.termType!=="DefaultGraph")throw new Error("Encoding of quoted quads outside of the default graph is not allowed");const u=(0,r.encodeOptionalTerms)([s.subject,s.predicate,s.object,s.graph],this),c=u&&u.every(h=>h!==void 0)?this.quotedTriplesReverseDictionaries[0].getEncoded(u):void 0;if(c!==void 0||o)return c===void 0?void 0:Js.BITMASK|c;const l=[this.encode(s.subject),this.encode(s.predicate),this.encode(s.object)],d=this.quotedTriplesDictionary.length+1;this.quotedTriplesDictionary.push(l);const f=this.encode(this.dataFactory.defaultGraph());return this.quotedTriplesReverseDictionaries[0].set([l[0],l[1],l[2],f],d),this.quotedTriplesReverseDictionaries[1].set([l[1],l[2],l[0],f],d),this.quotedTriplesReverseDictionaries[2].set([l[2],l[0],l[1],f],d),Js.BITMASK|d}encodeOptional(s){return s.termType==="Quad"?this.encodeQuotedTriple(s,!0):this.plainTermDictionary.encodeOptional(s)}decode(s){if(Js.BITMASK&s){const o=(~Js.BITMASK&s)-1;if(o>=this.quotedTriplesDictionary.length)throw new Error(`The value ${s} is not present in the quoted triples range of the dictionary`);const u=this.quotedTriplesDictionary[o];return this.dataFactory.quad(this.decode(u[0]),this.decode(u[1]),this.decode(u[2]))}return this.plainTermDictionary.decode(s)}*encodings(){for(const s of this.plainTermDictionary.encodings())yield s;for(const s of this.quotedTriplesDictionary.keys())yield Js.BITMASK|1+s}*findQuotedTriples(s){for(const o of this.findQuotedTriplesEncoded(s))yield this.decode(o)}*findQuotedTriplesEncoded(s){const[o,u]=(0,r.quadToPattern)(s.subject,s.predicate,s.object,s.graph,!0);for(const c of this.patternToIterable(o[0]))for(const l of this.patternToIterable(o[1]))for(const d of this.patternToIterable(o[2]))for(const f of this.patternToIterable(o[3]))if(c&&l||!l&&!d){const h=[c,l,d,f];for(const p of this.quotedTriplesReverseDictionaries[0].findEncoded(h,o))yield Js.BITMASK|this.quotedTriplesReverseDictionaries[0].getEncoded(p)}else if(!c&&l){const h=[l,d,c,f];for(const p of this.quotedTriplesReverseDictionaries[1].findEncoded(h,o))yield Js.BITMASK|this.quotedTriplesReverseDictionaries[1].getEncoded(p)}else{const h=[d,c,l,f];for(const p of this.quotedTriplesReverseDictionaries[2].findEncoded(h,o))yield Js.BITMASK|this.quotedTriplesReverseDictionaries[2].getEncoded(p)}}*patternToIterable(s){if((s==null?void 0:s.termType)==="Quad"){yield*this.findQuotedTriplesEncoded(s);return}if(s===void 0){yield void 0;return}const o=this.encodeOptional(s);o!==void 0&&(yield o)}};return n.BITMASK=1<<31,xm.TermDictionaryQuotedIndexed=n,xm}var Pm={},Fk;function ate(){if(Fk)return Pm;Fk=1,Object.defineProperty(Pm,"__esModule",{value:!0}),Pm.RdfStoreIndexNestedMapQuoted=void 0;const t=Es(),e=A4();let r=class extends e.RdfStoreIndexNestedMap{constructor(a){super(a),this.features={quotedTripleFiltering:!0}}*getQuotedPatternKeys(a,s){for(const o of this.dictionary.findQuotedTriplesEncoded(s))a.has(o)&&(yield o)}*find(a){const s=(0,t.encodeOptionalTerms)(a,this.dictionary);if(!s)return;const[o,u,c,l]=s,[d,f,h,p]=a,[m,y,g,b]=(0,t.arePatternsQuoted)(a);let v,_,w,E,O,L,F;const x=this.nestedMap,P=d!==void 0?m?this.getQuotedPatternKeys(x,d):x.has(o)?[o]:[]:x.keys();for(const j of P){O=x.get(j),v=!m&&d?d:this.dictionary.decode(j);const N=f!==void 0?y?this.getQuotedPatternKeys(O,f):O.has(u)?[u]:[]:O.keys();for(const V of N){L=O.get(V),_=!y&&f?f:this.dictionary.decode(V);const $=h!==void 0?g?this.getQuotedPatternKeys(L,h):L.has(c)?[c]:[]:L.keys();for(const q of $){F=L.get(q),w=!g&&h?h:this.dictionary.decode(q);const H=p!==void 0?b?this.getQuotedPatternKeys(F,p):F.has(l)?[l]:[]:F.keys();for(const X of H)E=!b&&p?p:this.dictionary.decode(X),yield[v,_,w,E]}}}}*findEncoded(a,s){const[o,u,c,l]=a,[d,f,h,p]=s,[m,y,g,b]=(0,t.arePatternsQuoted)(s);let v,_,w;const E=this.nestedMap,O=d!==void 0?m?this.getQuotedPatternKeys(E,d):E.has(o)?[o]:[]:E.keys();for(const L of O){v=E.get(L);const F=f!==void 0?y?this.getQuotedPatternKeys(v,f):v.has(u)?[u]:[]:v.keys();for(const x of F){_=v.get(x);const P=h!==void 0?g?this.getQuotedPatternKeys(_,h):_.has(c)?[c]:[]:_.keys();for(const j of P){w=_.get(j);const N=p!==void 0?b?this.getQuotedPatternKeys(w,p):w.has(l)?[l]:[]:w.keys();for(const V of N)yield[Number.parseInt(L,10),Number.parseInt(x,10),Number.parseInt(j,10),Number.parseInt(V,10)]}}}}count(a){let s=0;const o=(0,t.encodeOptionalTerms)(a,this.dictionary);if(!o)return 0;const[u,c,l,d]=o,[f,h,p,m]=a,[y,g,b,v]=(0,t.arePatternsQuoted)(a);let _,w,E;const O=this.nestedMap,L=f!==void 0?y?this.getQuotedPatternKeys(O,f):O.has(u)?[u]:[]:O.keys();for(const F of L){_=O.get(F);const x=h!==void 0?g?this.getQuotedPatternKeys(_,h):_.has(c)?[c]:[]:_.keys();for(const P of x){w=_.get(P);const j=p!==void 0?b?this.getQuotedPatternKeys(w,p):w.has(l)?[l]:[]:w.keys();for(const N of j)E=w.get(N),m!==void 0?v?s+=[...this.getQuotedPatternKeys(E,m)].length:E.has(d)&&s++:s+=E.size}}return s}};return Pm.RdfStoreIndexNestedMapQuoted=r,Pm}var Bk;function ste(){if(Bk)return Om;Bk=1,Object.defineProperty(Om,"__esModule",{value:!0}),Om.RdfStore=void 0;const t=Mt,e=Ot,r=In(),n=ute(),a=nte(),s=ite(),o=ate(),u=Es();let c=class L_{constructor(d){this.features={quotedTripleFiltering:!0},this._size=0,this.options=d,this.dataFactory=d.dataFactory,this.dictionary=d.dictionary,this.indexesWrapped=L_.constructIndexesWrapped(d),this.indexesWrappedComponentOrders=this.indexesWrapped.map(f=>f.componentOrder)}static createDefault(){return new L_({indexCombinations:L_.DEFAULT_INDEX_COMBINATIONS,indexConstructor:d=>new o.RdfStoreIndexNestedMapQuoted(d),dictionary:new s.TermDictionaryQuotedIndexed(new a.TermDictionaryNumberRecordFullTerms),dataFactory:new e.DataFactory})}static constructIndexesWrapped(d){const f=[];if(d.indexCombinations.length===0)throw new Error("At least one index combination is required");for(const h of d.indexCombinations){if(!L_.isCombinationValid(h))throw new Error(`Invalid index combination: ${h}`);f.push({index:d.indexConstructor(d),componentOrder:h,componentOrderInverse:Object.fromEntries(h.map((p,m)=>[p,m]))})}return f}static isCombinationValid(d){for(const f of r.QUAD_TERM_NAMES)if(!d.includes(f))return!1;return d.length===4}get size(){return this._size}addQuad(d){const f=[this.dictionary.encode(d.subject),this.dictionary.encode(d.predicate),this.dictionary.encode(d.object),this.dictionary.encode(d.graph)];let h=!1;for(const p of this.indexesWrapped)h=p.index.set((0,u.orderQuadComponents)(p.componentOrder,f),!0);return h?(this._size++,!0):!1}removeQuad(d){const f=[this.dictionary.encodeOptional(d.subject),this.dictionary.encodeOptional(d.predicate),this.dictionary.encodeOptional(d.object),this.dictionary.encodeOptional(d.graph)];if(f.includes(void 0))return!1;let h=!1;for(const p of this.indexesWrapped)if(h=p.index.remove((0,u.orderQuadComponents)(p.componentOrder,f)),!h)break;return h?(this._size--,!0):!1}remove(d){return d.on("data",f=>this.removeQuad(f)),d}removeMatches(d,f,h,p){return this.remove(this.match(d,f,h,p))}deleteGraph(d){return typeof d=="string"&&(d=this.dataFactory.namedNode(d)),this.removeMatches(void 0,void 0,void 0,d)}import(d){return d.on("data",f=>this.addQuad(f)),d}*readQuads(d,f,h,p){const m=!!this.dictionary.features.quotedTriples&&Object.values(this.indexesWrapped).every(_=>_.index.features.quotedTripleFiltering),[y,g]=(0,u.quadToPattern)(d,f,h,p,m),b=this.indexesWrapped[(0,u.getBestIndex)(this.indexesWrappedComponentOrders,y)],v=(0,u.orderQuadComponents)(b.componentOrder,y);for(const _ of b.index.find(v)){const w=this.dataFactory.quad(_[b.componentOrderInverse.subject],_[b.componentOrderInverse.predicate],_[b.componentOrderInverse.object],_[b.componentOrderInverse.graph]);g?(0,r.matchPattern)(w,d,f,h,p)&&(yield w):yield w}}getQuads(d,f,h,p){return[...this.readQuads(d,f,h,p)]}match(d,f,h,p){return(0,t.wrap)(this.readQuads(d,f,h,p))}countQuads(d,f,h,p){const m=!!this.dictionary.features.quotedTriples&&Object.values(this.indexesWrapped).every(v=>v.index.features.quotedTripleFiltering),[y]=(0,u.quadToPattern)(d,f,h,p,m);if(y.every(v=>v===void 0))return this.size;const g=this.indexesWrapped[(0,u.getBestIndex)(this.indexesWrappedComponentOrders,y)],b=(0,u.orderQuadComponents)(g.componentOrder,y);return g.index.count(b)}asDataset(){return new n.DatasetCoreWrapper(this)}};return c.DEFAULT_INDEX_COMBINATIONS=[["graph","subject","predicate","object"],["graph","predicate","object","subject"],["graph","object","subject","predicate"]],Om.RdfStore=c,Om}var qk;function ute(){if(qk)return Am;qk=1,Object.defineProperty(Am,"__esModule",{value:!0}),Am.DatasetCoreWrapper=void 0;const t=ste();let e=class ote{constructor(n){this.store=n}get size(){return this.store.size}add(n){return this.store.addQuad(n),this}delete(n){return this.store.removeQuad(n),this}has(n){for(const a of this.store.readQuads(n.subject,n.predicate,n.object,n.graph))return!0;return!1}match(n,a,s,o){const u=new t.RdfStore(this.store.options);for(const c of this.store.readQuads(n,a,s,o))u.addQuad(c);return new ote(u)}[Symbol.iterator](){return this.store.readQuads()}};return Am.DatasetCoreWrapper=e,Am}var Px={},$k;function q4e(){return $k||($k=1,Object.defineProperty(Px,"__esModule",{value:!0})),Px}var Nm={},Uk;function $4e(){if(Uk)return Nm;Uk=1,Object.defineProperty(Nm,"__esModule",{value:!0}),Nm.TermDictionaryNumberMap=void 0;const t=Ot,e=nr;let r=class{constructor(a=new t.DataFactory){this.lastId=0,this.dictionary=new Map,this.reverseDictionary=new Map,this.features={quotedTriples:!1},this.dataFactory=a}encode(a){const s=(0,e.termToString)(a);let o=this.dictionary.get(s);return o===void 0&&(o=this.lastId++,this.dictionary.set(s,o),this.reverseDictionary.set(o,s)),o}encodeOptional(a){const s=(0,e.termToString)(a);return this.dictionary.get(s)}decode(a){const s=this.reverseDictionary.get(a);if(s===void 0)throw new Error(`The value ${a} is not present in this dictionary`);return(0,e.stringToTerm)(s,this.dataFactory)}encodings(){return this.reverseDictionary.keys()}findQuotedTriples(a){throw new Error("findQuotedTriples is not supported")}findQuotedTriplesEncoded(a){throw new Error("findQuotedTriplesEncoded is not supported")}};return Nm.TermDictionaryNumberMap=r,Nm}var Dm={},kk;function U4e(){if(kk)return Dm;kk=1,Object.defineProperty(Dm,"__esModule",{value:!0}),Dm.TermDictionaryNumberRecord=void 0;const t=Ot,e=nr;let r=class{constructor(a=new t.DataFactory){this.lastId=0,this.dictionary={},this.reverseDictionary={},this.features={quotedTriples:!1},this.dataFactory=a}encode(a){const s=(0,e.termToString)(a);let o=this.dictionary[s];return o===void 0&&(o=this.lastId++,this.dictionary[s]=o,this.reverseDictionary[o]=s),o}encodeOptional(a){const s=(0,e.termToString)(a);return this.dictionary[s]}decode(a){const s=this.reverseDictionary[a];if(s===void 0)throw new Error(`The value ${a} is not present in this dictionary`);return(0,e.stringToTerm)(s,this.dataFactory)}*encodings(){for(const a of Object.keys(this.reverseDictionary))yield Number.parseInt(a,10)}findQuotedTriples(a){throw new Error("findQuotedTriples is not supported")}findQuotedTriplesEncoded(a){throw new Error("findQuotedTriplesEncoded is not supported")}};return Dm.TermDictionaryNumberRecord=r,Dm}var Cm={},Vk;function k4e(){if(Vk)return Cm;Vk=1,Object.defineProperty(Cm,"__esModule",{value:!0}),Cm.TermDictionaryQuoted=void 0;const t=Ot,e=In();let r=class yc{constructor(a,s,o=new t.DataFactory){this.features={quotedTriples:!0},this.plainTermDictionary=a,this.quotedTriplesDictionary=s,this.dataFactory=o}encode(a){return a.termType==="Quad"?yc.BITMASK|1+this.quotedTriplesDictionary.encode(a):this.plainTermDictionary.encode(a)}encodeOptional(a){if(a.termType==="Quad"){const s=this.quotedTriplesDictionary.encodeOptional(a);return s===void 0?s:yc.BITMASK|1+s}return this.plainTermDictionary.encodeOptional(a)}decode(a){if(yc.BITMASK&a){const s=(~yc.BITMASK&a)-1;return this.quotedTriplesDictionary.decode(s)}return this.plainTermDictionary.decode(a)}*encodings(){for(const a of this.plainTermDictionary.encodings())yield a;for(const a of this.quotedTriplesDictionary.encodings())yield yc.BITMASK|1+a}*findQuotedTriples(a){for(const s of this.findQuotedTriplesEncoded(a))yield this.decode(s)}*findQuotedTriplesEncoded(a){for(let s of this.quotedTriplesDictionary.encodings()){s=yc.BITMASK|1+s;const o=this.decode(s);(0,e.matchPattern)(o,a.subject,a.predicate,a.object,a.graph)&&(yield s)}}};return r.BITMASK=1<<31,Cm.TermDictionaryQuoted=r,Cm}var Lm={},Hk;function V4e(){if(Hk)return Lm;Hk=1,Object.defineProperty(Lm,"__esModule",{value:!0}),Lm.TermDictionaryQuotedReferential=void 0;const t=Ot,e=In(),r=Es();let n=class Xs{constructor(s,o=new t.DataFactory){this.quotedTriplesDictionary=[],this.quotedTriplesReverseDictionary={},this.features={quotedTriples:!0},this.plainTermDictionary=s,this.dataFactory=o}encode(s){return s.termType==="Quad"?this.encodeQuotedTriple(s,!1):this.plainTermDictionary.encode(s)}encodeQuotedTriple(s,o){var u;if(s.graph.termType!=="DefaultGraph")throw new Error("Encoding of quoted quads outside of the default graph is not allowed");const c=(u=(0,r.encodeOptionalTerms)([s.subject,s.predicate,s.object,void 0],this))===null||u===void 0?void 0:u.slice(0,3),l=c&&c.every(h=>h!==void 0)?this.quotedTriplesReverseDictionary[c.join(Xs.SEPARATOR)]:void 0;if(l!==void 0||o)return l===void 0?void 0:Xs.BITMASK|l;const d=[this.encode(s.subject),this.encode(s.predicate),this.encode(s.object)],f=this.quotedTriplesDictionary.length+1;return this.quotedTriplesDictionary.push(d),this.quotedTriplesReverseDictionary[d.join(Xs.SEPARATOR)]=f,Xs.BITMASK|f}encodeOptional(s){return s.termType==="Quad"?this.encodeQuotedTriple(s,!0):this.plainTermDictionary.encodeOptional(s)}decode(s){if(Xs.BITMASK&s){const o=(~Xs.BITMASK&s)-1;if(o>=this.quotedTriplesDictionary.length)throw new Error(`The value ${s} is not present in the quoted triples range of the dictionary`);const u=this.quotedTriplesDictionary[o];return this.dataFactory.quad(this.decode(u[0]),this.decode(u[1]),this.decode(u[2]))}return this.plainTermDictionary.decode(s)}*encodings(){for(const s of this.plainTermDictionary.encodings())yield s;for(const s of this.quotedTriplesDictionary.keys())yield Xs.BITMASK|1+s}*findQuotedTriples(s){for(const o of this.findQuotedTriplesEncoded(s))yield this.decode(o)}*findQuotedTriplesEncoded(s){for(let o of this.quotedTriplesDictionary.keys()){o=Xs.BITMASK|1+o;const u=this.decode(o);(0,e.matchPattern)(u,s.subject,s.predicate,s.object,s.graph)&&(yield o)}}};return n.BITMASK=1<<31,n.SEPARATOR="_",Lm.TermDictionaryQuotedReferential=n,Lm}var jm={},Qk;function H4e(){if(Qk)return jm;Qk=1,Object.defineProperty(jm,"__esModule",{value:!0}),jm.TermDictionarySymbol=void 0;const t=Ot,e=nr;let r=class{constructor(a=new t.DataFactory){this.features={quotedTriples:!1},this.dataFactory=a}encode(a){return Symbol.for(`rdf::${(0,e.termToString)(a)}`)}encodeOptional(a){return this.encode(a)}decode(a){const s=Symbol.keyFor(a);if(s===void 0)throw new Error(`The value ${String(a)} is not present in this dictionary`);return(0,e.stringToTerm)(s.slice(5),this.dataFactory)}encodings(){throw new Error("encodings is not supported")}findQuotedTriples(a){throw new Error("findQuotedTriples is not supported")}findQuotedTriplesEncoded(a){throw new Error("findQuotedTriplesEncoded is not supported")}};return jm.TermDictionarySymbol=r,jm}var Nx={},zk;function Q4e(){return zk||(zk=1,Object.defineProperty(Nx,"__esModule",{value:!0})),Nx}var Mm={},Gk;function cte(){if(Gk)return Mm;Gk=1,Object.defineProperty(Mm,"__esModule",{value:!0}),Mm.RdfStoreIndexNestedMapRecursive=void 0;const t=Es();let e=class{constructor(n){this.features={quotedTripleFiltering:!1},this.dictionary=n.dictionary,this.nestedMap=new Map}set(n,a){let s=this.nestedMap,o=!1;for(const[u,c]of n.entries()){const l=s;let d=l.get(c);d?u===n.length-1&&(o=!0):(d=u===n.length-1?a:new Map,l.set(c,d)),s=d}return!o}remove(n){const a=this.nestedMap,s=a.get(n[0]);if(!s)return!1;const o=s.get(n[1]);if(!o)return!1;const u=o.get(n[2]);if(!u)return!1;const c=u.delete(n[3]);return c&&u.size===0&&(o.delete(n[2]),o.size===0&&(s.delete(n[1]),s.size===0&&a.delete(n[0]))),c}get(n){const a=(0,t.encodeOptionalTerms)(n,this.dictionary);if(!(!a||a.includes(void 0)))return this.getEncoded(a)}getEncoded(n){const a=this.nestedMap.get(n[0]);if(!a)return;const s=a.get(n[1]);if(!s)return;const o=s.get(n[2]);if(o)return o.get(n[3])}*find(n){const a=(0,t.encodeOptionalTerms)(n,this.dictionary);if(a)for(const s of this.findEncoded(a,n))yield[a[0]!==void 0?n[0]:this.dictionary.decode(s[0]),a[1]!==void 0?n[1]:this.dictionary.decode(s[1]),a[2]!==void 0?n[2]:this.dictionary.decode(s[2]),a[3]!==void 0?n[3]:this.dictionary.decode(s[3])]}*findEncoded(n,a){return yield*this.findEncodedInner(0,n,a,this.nestedMap,[])}*findEncodedInner(n,a,s,o,u){if(n===a.length)yield[...u];else{const c=a[n];if(s[n]){const d=c;if(d!==void 0){const f=o.get(d);f&&(u[n]=c,yield*this.findEncodedInner(n+1,a,s,f,u))}}else for(const[d,f]of o.entries())u[n]=d,yield*this.findEncodedInner(n+1,a,s,f,u)}}count(n){return this.countInner(0,n,this.nestedMap)}countInner(n,a,s){const o=a[n];let u=0;if(o){const c=this.dictionary.encodeOptional(o);if(c!==void 0){if(n===a.length-1)return s.has(c)?1:0;const l=s.get(c);l&&(u+=this.countInner(n+1,a,l))}}else{if(n===a.length-1)return s.size;for(const c of s.values())u+=this.countInner(n+1,a,c)}return u}};return Mm.RdfStoreIndexNestedMapRecursive=e,Mm}var Fm={},Wk;function z4e(){if(Wk)return Fm;Wk=1,Object.defineProperty(Fm,"__esModule",{value:!0}),Fm.RdfStoreIndexNestedMapRecursiveQuoted=void 0;const t=Es(),e=cte();let r=class extends e.RdfStoreIndexNestedMapRecursive{constructor(a){super(a),this.features={quotedTripleFiltering:!0}}*findEncoded(a,s){return yield*this.findEncodedInnerQuoted(0,a,s,(0,t.arePatternsQuoted)(s),this.nestedMap,[])}*findEncodedInnerQuoted(a,s,o,u,c,l){if(a===s.length)yield[...l];else{const d=s[a],f=o[a];if(f)if(u[a]){const h=this.dictionary.findQuotedTriplesEncoded(f);for(const p of h){const m=c.get(p);m&&(l[a]=p,yield*this.findEncodedInnerQuoted(a+1,s,o,u,m,l))}}else{const h=d;if(h!==void 0){const p=c.get(h);p&&(l[a]=d,yield*this.findEncodedInnerQuoted(a+1,s,o,u,p,l))}}else for(const[h,p]of c.entries())l[a]=h,yield*this.findEncodedInnerQuoted(a+1,s,o,u,p,l)}}countInner(a,s,o){const u=s[a];let c=0;if(u)if(u.termType==="Quad"&&(0,t.quadHasVariables)(u)){const l=this.dictionary.findQuotedTriplesEncoded(u);for(const d of l)if(a===s.length-1)o.has(d)&&c++;else{const f=o.get(d);f&&(c+=this.countInner(a+1,s,f))}}else{const l=this.dictionary.encodeOptional(u);if(l!==void 0){if(a===s.length-1)return o.has(l)?1:0;const d=o.get(l);d&&(c+=this.countInner(a+1,s,d))}}else{if(a===s.length-1)return o.size;for(const l of o.values())c+=this.countInner(a+1,s,l)}return c}};return Fm.RdfStoreIndexNestedMapRecursiveQuoted=r,Fm}var Bm={},Kk;function lte(){if(Kk)return Bm;Kk=1,Object.defineProperty(Bm,"__esModule",{value:!0}),Bm.RdfStoreIndexNestedRecord=void 0;const t=Es();let e=class{constructor(n){this.features={quotedTripleFiltering:!1},this.dictionary=n.dictionary,this.nestedRecords={}}set(n,a){const s=this.nestedRecords,o=s[n[0]]||(s[n[0]]={}),u=o[n[1]]||(o[n[1]]={}),c=u[n[2]]||(u[n[2]]={});return c[n[3]]?!1:(c[n[3]]=a,!0)}remove(n){const a=this.nestedRecords,s=a[n[0]];if(!s)return!1;const o=s[n[1]];if(!o)return!1;const u=o[n[2]];return!u||!u[n[3]]?!1:(delete u[n[3]],Object.keys(u).length===0&&(delete o[n[2]],Object.keys(o).length===0&&(delete s[n[1]],Object.keys(s).length===0&&delete a[n[0]])),!0)}get(n){const a=(0,t.encodeOptionalTerms)(n,this.dictionary);if(!(!a||a.includes(void 0)))return this.getEncoded(a)}getEncoded(n){var a,s,o;return(o=(s=(a=this.nestedRecords[n[0]])===null||a===void 0?void 0:a[n[1]])===null||s===void 0?void 0:s[n[2]])===null||o===void 0?void 0:o[n[3]]}*find(n){const a=(0,t.encodeOptionalTerms)(n,this.dictionary);if(!a)return;const[s,o,u,c]=a,[l,d,f,h]=n;let p,m,y,g,b,v,_;const w=this.nestedRecords,E=s!==void 0?s in w?[s]:[]:Object.keys(w);for(const O of E){b=w[O],p=l||this.dictionary.decode(Number.parseInt(O,10));const L=o!==void 0?o in b?[o]:[]:Object.keys(b);for(const F of L){v=b[F],m=d||this.dictionary.decode(Number.parseInt(F,10));const x=u!==void 0?u in v?[u]:[]:Object.keys(v);for(const P of x){_=v[P],y=f||this.dictionary.decode(Number.parseInt(P,10));const j=c!==void 0?c in _?[c]:[]:Object.keys(_);for(const N of j)g=h||this.dictionary.decode(Number.parseInt(N,10)),yield[p,m,y,g]}}}}*findEncoded(n,a){const[s,o,u,c]=n;let l,d,f;const h=this.nestedRecords,p=s!==void 0?s in h?[s]:[]:Object.keys(h);for(const m of p){l=h[m];const y=o!==void 0?o in l?[o]:[]:Object.keys(l);for(const g of y){d=l[g];const b=u!==void 0?u in d?[u]:[]:Object.keys(d);for(const v of b){f=d[v];const _=c!==void 0?c in f?[c]:[]:Object.keys(f);for(const w of _)yield[Number.parseInt(m,10),Number.parseInt(g,10),Number.parseInt(v,10),Number.parseInt(w,10)]}}}}count(n){let a=0;const s=(0,t.encodeOptionalTerms)(n,this.dictionary);if(!s)return 0;const o=s[0],u=s[1],c=s[2],l=s[3];let d,f,h;const p=this.nestedRecords,m=o!==void 0?o in p?[o]:[]:Object.keys(p);for(const y of m){d=p[y];const g=u!==void 0?u in d?[u]:[]:Object.keys(d);for(const b of g){f=d[b];const v=c!==void 0?c in f?[c]:[]:Object.keys(f);for(const _ of v)h=f[_],l!==void 0?l in h&&a++:a+=Object.keys(h).length}}return a}};return Bm.RdfStoreIndexNestedRecord=e,Bm}var qm={},Jk;function G4e(){if(Jk)return qm;Jk=1,Object.defineProperty(qm,"__esModule",{value:!0}),qm.RdfStoreIndexNestedRecordQuoted=void 0;const t=Es(),e=lte();let r=class extends e.RdfStoreIndexNestedRecord{constructor(a){super(a),this.features={quotedTripleFiltering:!0}}*getQuotedPatternKeys(a,s){for(const o of this.dictionary.findQuotedTriplesEncoded(s))o in a&&(yield o)}*find(a){const s=(0,t.encodeOptionalTerms)(a,this.dictionary);if(!s)return;const[o,u,c,l]=s,[d,f,h,p]=a,[m,y,g,b]=(0,t.arePatternsQuoted)(a);let v,_,w,E,O,L,F;const x=this.nestedRecords,P=d!==void 0?m?this.getQuotedPatternKeys(x,d):o in x?[o]:[]:Object.keys(x);for(const j of P){O=x[j],v=!m&&d?d:this.dictionary.decode(Number.parseInt(j,10));const N=f!==void 0?y?this.getQuotedPatternKeys(O,f):u in O?[u]:[]:Object.keys(O);for(const V of N){L=O[V],_=!y&&f?f:this.dictionary.decode(Number.parseInt(V,10));const $=h!==void 0?g?this.getQuotedPatternKeys(L,h):c in L?[c]:[]:Object.keys(L);for(const q of $){F=L[q],w=!g&&h?h:this.dictionary.decode(Number.parseInt(q,10));const H=p!==void 0?b?this.getQuotedPatternKeys(F,p):l in F?[l]:[]:Object.keys(F);for(const X of H)E=!b&&p?p:this.dictionary.decode(Number.parseInt(X,10)),yield[v,_,w,E]}}}}*findEncoded(a,s){const[o,u,c,l]=a,[d,f,h,p]=s,[m,y,g,b]=(0,t.arePatternsQuoted)(s);let v,_,w;const E=this.nestedRecords,O=d!==void 0?m?this.getQuotedPatternKeys(E,d):o in E?[o]:[]:Object.keys(E);for(const L of O){v=E[L];const F=f!==void 0?y?this.getQuotedPatternKeys(v,f):u in v?[u]:[]:Object.keys(v);for(const x of F){_=v[x];const P=h!==void 0?g?this.getQuotedPatternKeys(_,h):c in _?[c]:[]:Object.keys(_);for(const j of P){w=_[j];const N=p!==void 0?b?this.getQuotedPatternKeys(w,p):l in w?[l]:[]:Object.keys(w);for(const V of N)yield[Number.parseInt(L,10),Number.parseInt(x,10),Number.parseInt(j,10),Number.parseInt(V,10)]}}}}count(a){let s=0;const o=(0,t.encodeOptionalTerms)(a,this.dictionary);if(!o)return 0;const[u,c,l,d]=o,[f,h,p,m]=a,[y,g,b,v]=(0,t.arePatternsQuoted)(a);let _,w,E;const O=this.nestedRecords,L=f!==void 0?y?this.getQuotedPatternKeys(O,f):u in O?[u]:[]:Object.keys(O);for(const F of L){_=O[F];const x=h!==void 0?g?this.getQuotedPatternKeys(_,h):c in _?[c]:[]:Object.keys(_);for(const P of x){w=_[P];const j=p!==void 0?b?this.getQuotedPatternKeys(w,p):l in w?[l]:[]:Object.keys(w);for(const N of j)E=w[N],m!==void 0?v?s+=[...this.getQuotedPatternKeys(E,m)].length:d in E&&s++:s+=Object.keys(E).length}}return s}};return qm.RdfStoreIndexNestedRecordQuoted=r,qm}var Dx={},Xk;function W4e(){return Xk||(Xk=1,Object.defineProperty(Dx,"__esModule",{value:!0})),Dx}var Cx={},Yk;function K4e(){return Yk||(Yk=1,Object.defineProperty(Cx,"__esModule",{value:!0})),Cx}var Zk;function J4e(){return Zk||(Zk=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(ute(),t),r(q4e(),t),r($4e(),t),r(U4e(),t),r(nte(),t),r(k4e(),t),r(ite(),t),r(V4e(),t),r(H4e(),t),r(Q4e(),t),r(A4(),t),r(ate(),t),r(cte(),t),r(z4e(),t),r(lte(),t),r(G4e(),t),r(W4e(),t),r(Es(),t),r(K4e(),t),r(ste(),t)}(xx)),xx}var eV;function dte(){if(eV)return Em;eV=1,Object.defineProperty(Em,"__esModule",{value:!0}),Em.storeStream=void 0;const t=J4e();function e(r){const n=t.RdfStore.createDefault();return new Promise((a,s)=>n.import(r).on("error",s).once("end",()=>a(n)))}return Em.storeStream=e,Em}var tV;function X4e(){if(tV)return wm;tV=1,Object.defineProperty(wm,"__esModule",{value:!0}),wm.ActorQuerySourceIdentifyHypermediaNone=void 0;const t=E4(),e=kr(),r=T4(),n=dte();let a=class extends r.ActorQuerySourceIdentifyHypermedia{constructor(o){super(o,"file")}async testMetadata(o){return{filterFactor:0}}async run(o){this.logInfo(o.context,`Identified as file source: ${o.url}`);const u=new t.QuerySourceRdfJs(await(0,n.storeStream)(o.quads),await e.BindingsFactory.create(this.mediatorMergeBindingsContext,o.context));return u.toString=()=>`QuerySourceRdfJs(${o.url})`,u.referenceValue=o.url,{source:u}}};return wm.ActorQuerySourceIdentifyHypermediaNone=a,wm}var rV;function Y4e(){return rV||(rV=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(X4e(),t)}(Ax)),Ax}var Lx={},$m={},jx={},Um={},km={},Mx={},ic={},nV;function As(){if(nV)return ic;nV=1,Object.defineProperty(ic,"__esModule",{value:!0}),ic.asTermType=ic.ExpressionType=void 0;var t;(function(r){r.Aggregate="aggregate",r.Existence="existence",r.Named="named",r.Operator="operator",r.SpecialOperator="specialOperator",r.Term="term",r.Variable="variable",r.AsyncExtension="asyncExtension",r.SyncExtension="syncExtension"})(t||(ic.ExpressionType=t={}));function e(r){if(r==="namedNode"||r==="literal"||r==="blankNode"||r==="quad")return r}return ic.asTermType=e,ic}var Vm={},iV;function Z4e(){if(iV)return Vm;iV=1,Object.defineProperty(Vm,"__esModule",{value:!0}),Vm.Variable=void 0;const t=As();class e{constructor(n){this.expressionType=t.ExpressionType.Variable,this.name=n}}return Vm.Variable=e,Vm}var Rt={},Hm={},Fx={},aV;function oi(){return aV||(aV=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.NamedOperators=t.SetFunctions=t.SetFunction=t.Operators=t.SpecialOperators=t.RegularOperators=t.SpecialOperator=t.RegularOperator=t.TypeURL=t.TypeAlias=void 0;var e;(function(o){o.SPARQL_NUMERIC="SPARQL_NUMERIC",o.SPARQL_STRINGLY="SPARQL_STRINGLY"})(e||(t.TypeAlias=e={}));var r;(function(o){o.XSD_ANY_URI="http://www.w3.org/2001/XMLSchema#anyURI",o.XSD_STRING="http://www.w3.org/2001/XMLSchema#string",o.RDF_LANG_STRING="http://www.w3.org/1999/02/22-rdf-syntax-ns#langString",o.XSD_BOOLEAN="http://www.w3.org/2001/XMLSchema#boolean",o.XSD_DATE_TIME="http://www.w3.org/2001/XMLSchema#dateTime",o.XSD_DATE_TIME_STAMP="http://www.w3.org/2001/XMLSchema#dateTimeStamp",o.XSD_DATE="http://www.w3.org/2001/XMLSchema#date",o.XSD_G_MONTH="http://www.w3.org/2001/XMLSchema#gMonth",o.XSD_G_MONTHDAY="http://www.w3.org/2001/XMLSchema#gMonthDay",o.XSD_G_YEAR="http://www.w3.org/2001/XMLSchema#gYear",o.XSD_G_YEAR_MONTH="http://www.w3.org/2001/XMLSchema#gYearMonth",o.XSD_TIME="http://www.w3.org/2001/XMLSchema#time",o.XSD_G_DAY="http://www.w3.org/2001/XMLSchema#gDay",o.XSD_DECIMAL="http://www.w3.org/2001/XMLSchema#decimal",o.XSD_FLOAT="http://www.w3.org/2001/XMLSchema#float",o.XSD_DOUBLE="http://www.w3.org/2001/XMLSchema#double",o.XSD_INTEGER="http://www.w3.org/2001/XMLSchema#integer",o.XSD_NON_POSITIVE_INTEGER="http://www.w3.org/2001/XMLSchema#nonPositiveInteger",o.XSD_NEGATIVE_INTEGER="http://www.w3.org/2001/XMLSchema#negativeInteger",o.XSD_LONG="http://www.w3.org/2001/XMLSchema#long",o.XSD_INT="http://www.w3.org/2001/XMLSchema#int",o.XSD_SHORT="http://www.w3.org/2001/XMLSchema#short",o.XSD_BYTE="http://www.w3.org/2001/XMLSchema#byte",o.XSD_NON_NEGATIVE_INTEGER="http://www.w3.org/2001/XMLSchema#nonNegativeInteger",o.XSD_POSITIVE_INTEGER="http://www.w3.org/2001/XMLSchema#positiveInteger",o.XSD_UNSIGNED_LONG="http://www.w3.org/2001/XMLSchema#unsignedLong",o.XSD_UNSIGNED_INT="http://www.w3.org/2001/XMLSchema#unsignedInt",o.XSD_UNSIGNED_SHORT="http://www.w3.org/2001/XMLSchema#unsignedShort",o.XSD_UNSIGNED_BYTE="http://www.w3.org/2001/XMLSchema#unsignedByte",o.XSD_NORMALIZED_STRING="http://www.w3.org/2001/XMLSchema#normalizedString",o.XSD_TOKEN="http://www.w3.org/2001/XMLSchema#token",o.XSD_LANGUAGE="http://www.w3.org/2001/XMLSchema#language",o.XSD_NM_TOKEN="http://www.w3.org/2001/XMLSchema#NMTOKEN",o.XSD_NAME="http://www.w3.org/2001/XMLSchema#name",o.XSD_NC_NAME="http://www.w3.org/2001/XMLSchema#NCName",o.XSD_ENTITY="http://www.w3.org/2001/XMLSchema#ENTITY",o.XSD_ID="http://www.w3.org/2001/XMLSchema#ID",o.XSD_ID_REF="http://www.w3.org/2001/XMLSchema#IDREF",o.XSD_DURATION="http://www.w3.org/2001/XMLSchema#duration",o.XSD_YEAR_MONTH_DURATION="http://www.w3.org/2001/XMLSchema#yearMonthDuration",o.XSD_DAY_TIME_DURATION="http://www.w3.org/2001/XMLSchema#dayTimeDuration"})(r||(t.TypeURL=r={}));var n;(function(o){o.NOT="!",o.UMINUS="uminus",o.UPLUS="uplus",o.EQUAL="=",o.NOT_EQUAL="!=",o.LT="<",o.GT=">",o.LTE="<=",o.GTE=">=",o.MULTIPLICATION="*",o.DIVISION="/",o.ADDITION="+",o.SUBTRACTION="-",o.IS_IRI="isiri",o.IS_URI="isuri",o.IS_BLANK="isblank",o.IS_LITERAL="isliteral",o.IS_NUMERIC="isnumeric",o.STR="str",o.LANG="lang",o.DATATYPE="datatype",o.IRI="iri",o.URI="uri",o.STRDT="strdt",o.STRLANG="strlang",o.UUID="uuid",o.STRUUID="struuid",o.STRLEN="strlen",o.SUBSTR="substr",o.UCASE="ucase",o.LCASE="lcase",o.STRSTARTS="strstarts",o.STRENDS="strends",o.CONTAINS="contains",o.STRBEFORE="strbefore",o.STRAFTER="strafter",o.ENCODE_FOR_URI="encode_for_uri",o.LANG_MATCHES="langmatches",o.REGEX="regex",o.REPLACE="replace",o.ABS="abs",o.ROUND="round",o.CEIL="ceil",o.FLOOR="floor",o.RAND="rand",o.NOW="now",o.YEAR="year",o.MONTH="month",o.DAY="day",o.HOURS="hours",o.MINUTES="minutes",o.SECONDS="seconds",o.TIMEZONE="timezone",o.TZ="tz",o.MD5="md5",o.SHA1="sha1",o.SHA256="sha256",o.SHA384="sha384",o.SHA512="sha512",o.TRIPLE="triple",o.SUBJECT="subject",o.PREDICATE="predicate",o.OBJECT="object",o.IS_TRIPLE="istriple"})(n||(t.RegularOperator=n={}));var a;(function(o){o.BOUND="bound",o.IF="if",o.COALESCE="coalesce",o.LOGICAL_OR="||",o.LOGICAL_AND="&&",o.SAME_TERM="sameterm",o.IN="in",o.NOT_IN="notin",o.CONCAT="concat",o.BNODE="bnode"})(a||(t.SpecialOperator=a={})),t.RegularOperators=new Set(Object.values(n)),t.SpecialOperators=new Set(Object.values(a)),t.Operators=new Set([...t.RegularOperators,...t.SpecialOperators]);var s;(function(o){o.COUNT="count",o.SUM="sum",o.MIN="min",o.MAX="max",o.AVG="avg",o.GROUP_CONCAT="group_concat",o.SAMPLE="sample"})(s||(t.SetFunction=s={})),t.SetFunctions=new Set(Object.values(s)),t.NamedOperators=new Set([r.XSD_STRING,r.XSD_FLOAT,r.XSD_DOUBLE,r.XSD_DECIMAL,r.XSD_INTEGER,r.XSD_DATE_TIME,r.XSD_DATE,r.XSD_BOOLEAN,r.XSD_TIME,r.XSD_DURATION,r.XSD_DAY_TIME_DURATION,r.XSD_YEAR_MONTH_DURATION])}(Fx)),Fx}var gt={},sV;function Rn(){if(sV)return gt;sV=1,Object.defineProperty(gt,"__esModule",{value:!0}),gt.NoExistenceHook=gt.NoAggregator=gt.ExtensionFunctionError=gt.UnknownNamedOperator=gt.UnknownOperator=gt.InvalidTermType=gt.InvalidExpressionType=gt.InvalidExpression=gt.InvalidArity=gt.UnexpectedError=gt.ParseError=gt.EmptyAggregateError=gt.IncompatibleLanguageOperation=gt.InvalidTimezoneCall=gt.CastError=gt.InvalidCompareArgumentTypes=gt.InvalidArgumentTypes=gt.InError=gt.CoalesceError=gt.RDFEqualTypeError=gt.EBVCoercionError=gt.UnboundVariableError=gt.InvalidLexicalForm=gt.isExpressionError=gt.ExpressionError=void 0;class t extends Error{}gt.ExpressionError=t;function e(P){return P instanceof t}gt.isExpressionError=e;class r extends t{constructor(j){super(`Invalid lexical form '${x(j)}'`),this.arg=j}}gt.InvalidLexicalForm=r;class n extends t{constructor(j,N){super(`Unbound variable '${x(j)}'`),this.variable=j,this.bindings=N}}gt.UnboundVariableError=n;class a extends t{constructor(j){super(`Cannot coerce term to EBV '${x(j)}'`),this.arg=j}}gt.EBVCoercionError=a;class s extends t{constructor(j){super("Equality test for literals with unsupported datatypes"),this.args=j}}gt.RDFEqualTypeError=s;class o extends t{constructor(j){super("All COALESCE arguments threw errors"),this.errors=j}}gt.CoalesceError=o;class u extends t{constructor(j){super(`Some argument to IN errorred and none where equal. ${j.map(N=>`(${N.toString()}) `).join("and ")}`),this.errors=j}}gt.InError=u;class c extends t{constructor(j,N){super(`Argument types not valid for operator: '${x(N)}' with '${x(j)}`),this.args=j,this.op=N}}gt.InvalidArgumentTypes=c;class l extends t{constructor(j,N){super(`Compared argument types are supported: '${j.termType}' and '${N.termType}'`),this.arg0=j,this.arg1=N}}gt.InvalidCompareArgumentTypes=l;class d extends t{constructor(j,N){super(`Invalid cast: '${x(j)}' to '${x(N)}'`),this.arg=j}}gt.CastError=d;class f extends t{constructor(j){super(`TIMEZONE call on ${j} which has no timezone`),this.dateString=j}}gt.InvalidTimezoneCall=f;class h extends t{constructor(j,N){super(`Operation on incompatible language literals '${x(j)}' and '${x(N)}'`),this.arg1=j,this.arg2=N}}gt.IncompatibleLanguageOperation=h;class p extends t{constructor(){super("Empty aggregate expression")}}gt.EmptyAggregateError=p;class m extends t{constructor(j,N){super(`Failed to parse ${j} as ${N}.`)}}gt.ParseError=m;class y extends Error{constructor(j,N){super(`Programmer Error '${j}'`),this.payload=N}}gt.UnexpectedError=y;class g extends Error{constructor(j,N){super(`The number of args does not match the arity of the operator '${x(N)}'.`),this.args=j,this.op=N}}gt.InvalidArity=g;class b extends Error{constructor(j){super(`Invalid SPARQL Expression '${x(j)}'`)}}gt.InvalidExpression=b;class v extends Error{constructor(j){super(`Invalid expression type for SPARQL Expression '${x(j)}'`),this.expr=j}}gt.InvalidExpressionType=v;class _ extends Error{constructor(j){super(`Invalid term type for term '${x(j)}'`),this.term=j}}gt.InvalidTermType=_;class w extends Error{constructor(j){super(`Unknown operator: '${x(j)}`)}}gt.UnknownOperator=w;class E extends Error{constructor(j){super(`Unknown named operator: '${x(j)}'`)}}gt.UnknownNamedOperator=E;class O extends Error{constructor(j,N){N instanceof Error?super(`Error thrown in ${j}: ${N.message}${N.stack?` +${N.stack}`:""}`):super(`Error thrown in ${j}`)}}gt.ExtensionFunctionError=O;class L extends Error{constructor(j){super(`Aggregate expression ${x(j)} found, but no aggregate hook provided.`)}}gt.NoAggregator=L;class F extends Error{constructor(){super("EXISTS found, but no existence hook provided.")}}gt.NoExistenceHook=F;function x(P){return JSON.stringify(P)}return gt}var Gr={},Wt={},oV;function qf(){if(oV)return Wt;oV=1,Object.defineProperty(Wt,"__esModule",{value:!0}),Wt.extractTimeZone=Wt.extractRawTimeZone=Wt.dayTimeDurationsToSeconds=Wt.yearMonthDurationsToMonths=Wt.trimToDayTimeDuration=Wt.trimToYearMonthDuration=Wt.toUTCDate=Wt.toJSDate=Wt.negateDuration=Wt.toDateTimeRepresentation=Wt.defaultedDateTimeRepresentation=Wt.simplifyDurationRepresentation=Wt.defaultedDurationRepresentation=Wt.defaultedYearMonthDurationRepresentation=Wt.defaultedDayTimeDurationRepresentation=void 0;function t(y){return{day:y.day??0,hours:y.hours??0,minutes:y.minutes??0,seconds:y.seconds??0}}Wt.defaultedDayTimeDurationRepresentation=t;function e(y){return{year:y.year??0,month:y.month??0}}Wt.defaultedYearMonthDurationRepresentation=e;function r(y){return{...t(y),...e(y)}}Wt.defaultedDurationRepresentation=r;function n(y){const g=r(y),b={},v=g.year+Math.trunc(g.month/12);v&&(b.year=v,g.month%=12),g.month&&(b.month=g.month);const _=g.day+Math.trunc(g.hours/24)+Math.trunc(g.minutes/(24*60))+Math.trunc(g.seconds/(24*60*60));_&&(b.day=_,g.hours%=24,g.minutes%=24*60,g.seconds%=24*60*60);const w=g.hours+Math.trunc(g.minutes/60)+Math.trunc(g.seconds/(60*60));w&&(b.hours=w,g.minutes%=60,g.seconds%=60*60);const E=g.minutes+Math.trunc(g.seconds/60);return E&&(b.minutes=E,g.seconds%=60),g.seconds&&(b.seconds=g.seconds),b}Wt.simplifyDurationRepresentation=n;function a(y){return{...y,day:y.day??1,hours:y.hours??0,month:y.month??1,year:y.year??0,seconds:y.seconds??0,minutes:y.minutes??0}}Wt.defaultedDateTimeRepresentation=a;function s({date:y,timeZone:g}){return{year:y.getFullYear(),month:y.getMonth()+1,day:y.getDate(),hours:y.getHours(),minutes:y.getMinutes(),seconds:y.getSeconds(),zoneHours:g.zoneHours,zoneMinutes:g.zoneMinutes}}Wt.toDateTimeRepresentation=s;function o(y){return{year:y.year===void 0?void 0:-1*y.year,month:y.month===void 0?void 0:-1*y.month,day:y.day===void 0?void 0:-1*y.day,hours:y.hours===void 0?void 0:-1*y.hours,minutes:y.minutes===void 0?void 0:-1*y.minutes,seconds:y.seconds===void 0?void 0:-1*y.seconds}}Wt.negateDuration=o;function u(y){const g=new Date(y.year,y.month-1,y.day,y.hours,y.minutes,Math.trunc(y.seconds),y.seconds%1*1e3);return y.year>=0&&y.year<100&&g.setFullYear(g.getFullYear()-1900),g}Wt.toJSDate=u;function c(y,g){const b=u(a(y)),v=b.getTimezoneOffset(),_=y.zoneHours??g.zoneHours,w=y.zoneMinutes??g.zoneMinutes;return new Date(b.getTime()-(v+_*60+w)*60*1e3)}Wt.toUTCDate=c;function l(y){return{year:y.year,month:y.month}}Wt.trimToYearMonthDuration=l;function d(y){return{day:y.day,hours:y.hours,minutes:y.minutes,seconds:y.seconds}}Wt.trimToDayTimeDuration=d;function f(y){return y.year*12+y.month}Wt.yearMonthDurationsToMonths=f;function h(y){return((y.day*24+y.hours)*60+y.minutes)*60+y.seconds}Wt.dayTimeDurationsToSeconds=h;function p(y){return/(Z|([+-]\d\d:\d\d))?$/u.exec(y)[0]}Wt.extractRawTimeZone=p;function m(y){return{zoneHours:y.getTimezoneOffset()/60,zoneMinutes:y.getTimezoneOffset()%60}}return Wt.extractTimeZone=m,Wt}var Us={},uV;function fte(){if(uV)return Us;uV=1,Object.defineProperty(Us,"__esModule",{value:!0}),Us.elapsedDuration=Us.addDurationToDateTime=Us.maximumDayInMonthFor=void 0;const t=qf();function e(s,o,u=0){const c=s-u,l=o-u,d=Math.floor(c/l);return{intDiv:d,remainder:s-d*l}}function r(s,o){const{intDiv:u,remainder:c}=e(o,13,1),l=s+u;return[1,3,5,7,8,10,12].includes(c)?31:[4,6,9,11].includes(c)?30:c===2&&(e(l,400).remainder===0||e(l,100).remainder!==0&&e(l,4).remainder===0)?29:28}Us.maximumDayInMonthFor=r;function n(s,o){const u={...s};let c=e(s.month+o.month,13,1);for(u.month=c.remainder,u.year=s.year+o.year+c.intDiv,c=e(s.seconds+o.seconds,60),u.seconds=c.remainder,c=e(s.minutes+o.minutes+c.intDiv,60),u.minutes=c.remainder,c=e(s.hours+o.hours+c.intDiv,24),u.hours=c.remainder,u.day=s.day+o.day+c.intDiv;;){let l;if(u.day<1)u.day+=r(u.year,u.month-1),l=-1;else if(u.day>r(u.year,u.month))u.day-=r(u.year,u.month),l=1;else break;c=e(u.month+l,13,1),u.month=c.remainder,u.year+=c.intDiv}return u}Us.addDurationToDateTime=n;function a(s,o,u){const c=(0,t.toUTCDate)(s,u),l=(0,t.toUTCDate)(o,u),d=c.getTime()-l.getTime();return{day:Math.floor(d/(1e3*60*60*24)),hours:Math.floor(d%(1e3*60*60*24)/(1e3*60*60)),minutes:Math.floor(d%(1e3*60*60)/(1e3*60)),seconds:d%(1e3*60)}}return Us.elapsedDuration=a,Us}var cV;function sN(){if(cV)return Gr;cV=1,Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.parseDayTimeDuration=Gr.parseYearMonthDuration=Gr.parseDuration=Gr.parseTime=Gr.parseDate=Gr.parseDateTime=Gr.parseXSDInteger=Gr.parseXSDDecimal=Gr.parseXSDFloat=void 0;const t=qf(),e=Rn(),r=fte();function n(m){const y=Number(m);return Number.isNaN(y)?m==="NaN"?Number.NaN:m==="INF"||m==="+INF"?Number.POSITIVE_INFINITY:m==="-INF"?Number.NEGATIVE_INFINITY:void 0:y}Gr.parseXSDFloat=n;function a(m){const y=Number(m);return Number.isNaN(y)?void 0:y}Gr.parseXSDDecimal=a;function s(m){const y=Number.parseInt(m,10);return Number.isNaN(y)?void 0:y}Gr.parseXSDInteger=s;function o(m){const[y,g]=m.split("T");return{...c(y),...l(g)}}Gr.parseDateTime=o;function u(m){if(m==="")return{zoneHours:void 0,zoneMinutes:void 0};if(m==="Z")return{zoneHours:0,zoneMinutes:0};const g=m.replaceAll(/^([+|-])(\d\d):(\d\d)$/gu,"$11!$2!$3").split("!").map(Number);return{zoneHours:g[0]*g[1],zoneMinutes:g[0]*g[2]}}function c(m){const y=m.replaceAll(/^(-)?([123456789]*\d{4})-(\d\d)-(\d\d)(Z|([+-]\d\d:\d\d))?$/gu,"$11!$2!$3!$4!$5");if(y===m)throw new e.ParseError(m,"date");const g=y.split("!"),b=g.slice(0,-1).map(Number),v={year:b[0]*b[1],month:b[2],day:b[3],...u(g[4])};if(!(v.month>=1&&v.month<=12)||!(v.day>=1&&v.day<=(0,r.maximumDayInMonthFor)(v.year,v.month)))throw new e.ParseError(m,"date");return v}Gr.parseDate=c;function l(m){const y=m.replaceAll(/^(\d\d):(\d\d):(\d\d(\.\d+)?)(Z|([+-]\d\d:\d\d))?$/gu,"$1!$2!$3!$5");if(y===m)throw new e.ParseError(m,"time");const g=y.split("!"),b=g.slice(0,-1).map(Number),v={hours:b[0],minutes:b[1],seconds:b[2],...u(g[3])};if(v.seconds>=60||v.minutes>=60||v.hours>24||v.hours===24&&(v.minutes!==0||v.seconds!==0))throw new e.ParseError(m,"time");return v}function d(m){const y=l(m);return y.hours%=24,y}Gr.parseTime=d;function f(m){const[y,g]=m.split("T"),b=y.replaceAll(/^(-)?P(\d+Y)?(\d+M)?(\d+D)?$/gu,"$11S!$2!$3!$4");if(b===y)throw new e.ParseError(m,"duration");const v=b.split("!");if(g!==void 0){const E=g.replaceAll(/^(\d+H)?(\d+M)?(\d+(\.\d+)?S)?$/gu,"$1!$2!$3");if(g===""||g===E)throw new e.ParseError(m,"duration");v.push(...E.split("!"))}const _=v.map(E=>E.slice(0,-1));if(!_.slice(1).some(Boolean))throw new e.ParseError(m,"duration");const w=Number(_[0]);return(0,t.simplifyDurationRepresentation)({year:_[1]?w*Number(_[1]):void 0,month:_[2]?w*Number(_[2]):void 0,day:_[3]?w*Number(_[3]):void 0,hours:_[4]?w*Number(_[4]):void 0,minutes:_[5]?w*Number(_[5]):void 0,seconds:_[6]?w*Number(_[6]):void 0})}Gr.parseDuration=f;function h(m){const y=f(m);if(["hours","minutes","seconds","day"].some(g=>!!y[g]))throw new e.ParseError(m,"yearMonthDuration");return y}Gr.parseYearMonthDuration=h;function p(m){const y=f(m);if(["year","month"].some(g=>!!y[g]))throw new e.ParseError(m,"dayTimeDuration");return y}return Gr.parseDayTimeDuration=p,Gr}var Bx={},vr={},Qm={},lV;function hte(){if(lV)return Qm;lV=1,Object.defineProperty(Qm,"__esModule",{value:!0}),Qm.OverloadTree=void 0;const t=ki(),e=QT();let r=class oN{constructor(a,s){this.identifier=a,this.implementation=void 0,this.generalOverloads=Object.create(null),this.literalOverLoads=[],this.depth=s??0,this.promotionCount=void 0}getSubtree(a){const s=(0,e.asGeneralType)(a);if(s)return this.generalOverloads[s];for(const[o,u]of this.literalOverLoads)if(a===o)return u}getImplementationExact(a){let s=this;for(const o of a)if(s=s.getSubtree(o),!s)return;return s.implementation}search(a,s,o){let u=o[this.identifier],c=0;for(;c({node:f,index:d+1})));l.length>0;){const{index:f,node:h}=l.pop();if(f===a.length&&h.implementation)return this.addToCache(o,a,h.implementation),h.implementation;l.push(...h.getSubTreeWithArg(a[f],s).map(p=>({node:p,index:f+1})))}}addToCache(a,s,o){function u(l,d){return d in l||(l[d]={}),l[d]}let c=u(a,this.identifier);for(const l of s){const d=(0,t.isLiteralTermExpression)(l),f=d?d.dataType:l.termType;c.cache=c.cache??{},c=u(c.cache,f)}c.func=o}addOverload(a,s){this._addOverload([...a],s,0)}_addOverload(a,s,o){const[u,...c]=a;if(!u){(this.promotionCount===void 0||o<=this.promotionCount)&&(this.promotionCount=o,this.implementation=s);return}let l=this.getSubtree(u);if(!l){const d=new oN(this.identifier,this.depth+1),f=(0,e.asGeneralType)(u);f&&(this.generalOverloads[f]=d);const h=(0,e.asOverrideType)(u);h&&this.literalOverLoads.push([h,d]),l=d}if(l._addOverload(c,s,o),e.typePromotion[u])for(const d of e.typePromotion[u])this.addPromotedOverload(d.typeToPromote,s,d.conversionFunction,c,o)}addPromotedOverload(a,s,o,u,c){let l=this.getSubtree(a);if(!l){const d=new oN(this.identifier,this.depth+1);this.literalOverLoads.push([a,d]),l=d}l._addOverload(u,d=>f=>s(d)([...f.slice(0,this.depth),o(f[this.depth]),...f.slice(this.depth+1,f.length)]),c+1)}getSubTreeWithArg(a,s){const o=[],u=(0,t.isLiteralTermExpression)(a);if(this.generalOverloads.term&&o.push(this.generalOverloads.term),this.generalOverloads[a.termType]&&o.push(this.generalOverloads[a.termType]),u){const c=(0,e.asKnownLiteralType)(u.dataType);let l;c?l=e.superTypeDictTable[c]:l=(0,e.getSuperTypes)(u.dataType,s);const d=this.literalOverLoads.filter(([f,h])=>f in l).map(([f,h])=>[l[f],h]);d.sort(([f,h],[p,m])=>f-p),o.push(...d.map(([f,h])=>h))}return o}};return Qm.OverloadTree=r,Qm}var dV;function Os(){if(dV)return vr;dV=1,Object.defineProperty(vr,"__esModule",{value:!0}),vr.expressionToVar=vr.dateTime=vr.langString=vr.string=vr.double=vr.float=vr.decimal=vr.integer=vr.bool=vr.Builder=vr.declare=void 0;const t=Ot,e=ki(),r=ki(),n=oi(),a=oi(),s=Rn(),o=hte(),u=new t.DataFactory;function c(_){return new l(_)}vr.declare=c;class l{constructor(w){this.overloadTree=new o.OverloadTree(w),this.collected=!1}collect(){if(this.collected)throw new Error("Builders can only be collected once!");return this.collected=!0,this.overloadTree}static wrapInvalidLexicalProtected(w){return E=>O=>{for(const[L,F]of O.entries())if(F instanceof r.NonLexicalLiteral)throw new s.InvalidLexicalForm(O[L].toRDF());return w(E)(O)}}set(w,E,O=!0){return this.overloadTree.addOverload(w,O?l.wrapInvalidLexicalProtected(E):E),this}copy({from:w,to:E}){const O=this.overloadTree.getImplementationExact(w);if(!O)throw new s.UnexpectedError("Tried to copy implementation, but types not found",{from:w,to:E});return this.set(E,O)}onUnary(w,E,O=!0){return this.set([w],L=>([F])=>E(L)(F),O)}onUnaryTyped(w,E,O=!0){return this.set([w],L=>([F])=>E(L)(F.typedValue),O)}onBinary(w,E,O=!0){return this.set(w,L=>([F,x])=>E(L)(F,x),O)}onBinaryTyped(w,E,O=!0){return this.set(w,L=>([F,x])=>E(L)(F.typedValue,x.typedValue),O)}onTernaryTyped(w,E,O=!0){return this.set(w,L=>([F,x,P])=>E(L)(F.typedValue,x.typedValue,P.typedValue),O)}onTernary(w,E,O=!0){return this.set(w,L=>([F,x,P])=>E(L)(F,x,P),O)}onQuaternaryTyped(w,E,O=!0){return this.set(w,L=>([F,x,P,j])=>E(L)(F.typedValue,x.typedValue,P.typedValue,j.typedValue),O)}onTerm1(w,E=!1){return this.set(["term"],O=>([L])=>w(O)(L),E)}onTerm3(w){return this.set(["term","term","term"],E=>([O,L,F])=>w(E)(O,L,F))}onQuad1(w){return this.set(["quad"],E=>([O])=>w(E)(O))}onLiteral1(w,E=!0){return this.set(["literal"],O=>([L])=>w(O)(L),E)}onBoolean1(w,E=!0){return this.set([n.TypeURL.XSD_BOOLEAN],O=>([L])=>w(O)(L),E)}onBoolean1Typed(w,E=!0){return this.set([n.TypeURL.XSD_BOOLEAN],O=>([L])=>w(O)(L.typedValue),E)}onString1(w,E=!0){return this.set([n.TypeURL.XSD_STRING],O=>([L])=>w(O)(L),E)}onString1Typed(w,E=!0){return this.set([n.TypeURL.XSD_STRING],O=>([L])=>w(O)(L.typedValue),E)}onLangString1(w,E=!0){return this.set([n.TypeURL.RDF_LANG_STRING],O=>([L])=>w(O)(L),E)}onStringly1(w,E=!0){return this.set([n.TypeAlias.SPARQL_STRINGLY],O=>([L])=>w(O)(L),E)}onStringly1Typed(w,E=!0){return this.set([n.TypeAlias.SPARQL_STRINGLY],O=>([L])=>w(O)(L.typedValue),E)}onNumeric1(w,E=!0){return this.set([n.TypeAlias.SPARQL_NUMERIC],O=>([L])=>w(O)(L),E)}onDateTime1(w,E=!0){return this.set([n.TypeURL.XSD_DATE_TIME],O=>([L])=>w(O)(L),E)}numericConverter(w,E=!0){const O=L=>F=>w(L)(F.typedValue);return this.onUnary(a.TypeURL.XSD_INTEGER,L=>F=>f(O(L)(F)),E).onUnary(a.TypeURL.XSD_DECIMAL,L=>F=>h(O(L)(F)),E).onUnary(a.TypeURL.XSD_FLOAT,L=>F=>p(O(L)(F)),E).onUnary(a.TypeURL.XSD_DOUBLE,L=>F=>m(O(L)(F)),E)}arithmetic(w,E=!0){const O=L=>(F,x)=>w(L)(F.typedValue,x.typedValue);return this.onBinary([a.TypeURL.XSD_INTEGER,a.TypeURL.XSD_INTEGER],L=>(F,x)=>f(O(L)(F,x)),E).onBinary([a.TypeURL.XSD_DECIMAL,a.TypeURL.XSD_DECIMAL],L=>(F,x)=>h(O(L)(F,x)),E).onBinary([a.TypeURL.XSD_FLOAT,a.TypeURL.XSD_FLOAT],L=>(F,x)=>p(O(L)(F,x)),E).onBinary([a.TypeURL.XSD_DOUBLE,a.TypeURL.XSD_DOUBLE],L=>(F,x)=>m(O(L)(F,x)),E)}numberTest(w){return this.numeric(E=>([O,L])=>{const F=w(E)(O.typedValue,L.typedValue);return d(F)})}stringTest(w,E=!0){return this.set([n.TypeURL.XSD_STRING,n.TypeURL.XSD_STRING],O=>([L,F])=>{const x=w(O)(L.typedValue,F.typedValue);return d(x)},E)}booleanTest(w,E=!0){return this.set([n.TypeURL.XSD_BOOLEAN,n.TypeURL.XSD_BOOLEAN],O=>([L,F])=>{const x=w(O)(L.typedValue,F.typedValue);return d(x)},E)}dateTimeTest(w,E=!0){return this.set([n.TypeURL.XSD_DATE_TIME,n.TypeURL.XSD_DATE_TIME],O=>([L,F])=>{const x=w(O)(L.typedValue,F.typedValue);return d(x)},E)}numeric(w){return this.set([n.TypeAlias.SPARQL_NUMERIC,n.TypeAlias.SPARQL_NUMERIC],w)}}vr.Builder=l;function d(_){return new e.BooleanLiteral(_)}vr.bool=d;function f(_){return new e.IntegerLiteral(_)}vr.integer=f;function h(_){return new e.DecimalLiteral(_)}vr.decimal=h;function p(_){return new e.FloatLiteral(_)}vr.float=p;function m(_){return new e.DoubleLiteral(_)}vr.double=m;function y(_){return new e.StringLiteral(_)}vr.string=y;function g(_,w){return new e.LangStringLiteral(_,w)}vr.langString=g;function b(_,w){return new e.DateTimeLiteral(_,w)}vr.dateTime=b;function v(_){return u.variable(_.name.slice(1))}return vr.expressionToVar=v,vr}var fV;function QT(){return fV||(fV=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.typePromotion=t.isSubTypeOf=t.getSuperTypeDict=t.isInternalSubType=t.asGeneralType=t.asOverrideType=t.asKnownLiteralType=t.asTypeAlias=t.typeAliasCheck=t.extensionTableInit=t.getSuperTypes=t.superTypeDictTable=t.extensionTableInput=void 0;const e=ki(),r=Os(),n=oi();t.extensionTableInput={[n.TypeURL.XSD_DATE_TIME_STAMP]:n.TypeURL.XSD_DATE_TIME,[n.TypeURL.XSD_DAY_TIME_DURATION]:n.TypeURL.XSD_DURATION,[n.TypeURL.XSD_YEAR_MONTH_DURATION]:n.TypeURL.XSD_DURATION,[n.TypeURL.RDF_LANG_STRING]:n.TypeAlias.SPARQL_STRINGLY,[n.TypeURL.XSD_STRING]:n.TypeAlias.SPARQL_STRINGLY,[n.TypeURL.XSD_NORMALIZED_STRING]:n.TypeURL.XSD_STRING,[n.TypeURL.XSD_TOKEN]:n.TypeURL.XSD_NORMALIZED_STRING,[n.TypeURL.XSD_LANGUAGE]:n.TypeURL.XSD_TOKEN,[n.TypeURL.XSD_NM_TOKEN]:n.TypeURL.XSD_TOKEN,[n.TypeURL.XSD_NAME]:n.TypeURL.XSD_TOKEN,[n.TypeURL.XSD_NC_NAME]:n.TypeURL.XSD_NAME,[n.TypeURL.XSD_ENTITY]:n.TypeURL.XSD_NC_NAME,[n.TypeURL.XSD_ID]:n.TypeURL.XSD_NC_NAME,[n.TypeURL.XSD_ID_REF]:n.TypeURL.XSD_NC_NAME,[n.TypeURL.XSD_DOUBLE]:n.TypeAlias.SPARQL_NUMERIC,[n.TypeURL.XSD_FLOAT]:n.TypeAlias.SPARQL_NUMERIC,[n.TypeURL.XSD_DECIMAL]:n.TypeAlias.SPARQL_NUMERIC,[n.TypeURL.XSD_INTEGER]:n.TypeURL.XSD_DECIMAL,[n.TypeURL.XSD_NON_POSITIVE_INTEGER]:n.TypeURL.XSD_INTEGER,[n.TypeURL.XSD_NEGATIVE_INTEGER]:n.TypeURL.XSD_NON_POSITIVE_INTEGER,[n.TypeURL.XSD_LONG]:n.TypeURL.XSD_INTEGER,[n.TypeURL.XSD_INT]:n.TypeURL.XSD_LONG,[n.TypeURL.XSD_SHORT]:n.TypeURL.XSD_INT,[n.TypeURL.XSD_BYTE]:n.TypeURL.XSD_SHORT,[n.TypeURL.XSD_NON_NEGATIVE_INTEGER]:n.TypeURL.XSD_INTEGER,[n.TypeURL.XSD_POSITIVE_INTEGER]:n.TypeURL.XSD_NON_NEGATIVE_INTEGER,[n.TypeURL.XSD_UNSIGNED_LONG]:n.TypeURL.XSD_NON_NEGATIVE_INTEGER,[n.TypeURL.XSD_UNSIGNED_INT]:n.TypeURL.XSD_UNSIGNED_LONG,[n.TypeURL.XSD_UNSIGNED_SHORT]:n.TypeURL.XSD_UNSIGNED_INT,[n.TypeURL.XSD_UNSIGNED_BYTE]:n.TypeURL.XSD_UNSIGNED_SHORT,[n.TypeURL.XSD_DATE_TIME]:"term",[n.TypeURL.XSD_BOOLEAN]:"term",[n.TypeURL.XSD_DATE]:"term",[n.TypeURL.XSD_G_MONTH]:"term",[n.TypeURL.XSD_G_MONTHDAY]:"term",[n.TypeURL.XSD_G_YEAR]:"term",[n.TypeURL.XSD_G_YEAR_MONTH]:"term",[n.TypeURL.XSD_TIME]:"term",[n.TypeURL.XSD_G_DAY]:"term",[n.TypeURL.XSD_DURATION]:"term",[n.TypeAlias.SPARQL_NUMERIC]:"term",[n.TypeAlias.SPARQL_STRINGLY]:"term",[n.TypeURL.XSD_ANY_URI]:"term"},t.superTypeDictTable=Object.create(null);function a(y,g){const b=g.cache.get(y);if(b)return b;const v=g.discoverer(y);if(v==="term"){const E=Object.create(null);return E.__depth=0,E[y]=0,g.cache.set(y,E),E}let _;const w=l(v);return w?_={...t.superTypeDictTable[w]}:_={...a(v,g)},_.__depth++,_[y]=_.__depth,g.cache.set(y,_),_}t.getSuperTypes=a;function s(){for(const[y,g]of Object.entries(t.extensionTableInput)){const b=y;t.superTypeDictTable[b]||o(b,g,t.superTypeDictTable)}}t.extensionTableInit=s,s();function o(y,g,b){if(g==="term"||g===void 0){const v=Object.create(null);v.__depth=0,v[y]=0,b[y]=v;return}b[g]||o(g,t.extensionTableInput[g],b),b[y]={...b[g],[y]:b[g].__depth+1,__depth:b[g].__depth+1}}t.typeAliasCheck=Object.create(null);function u(){for(const y of Object.values(n.TypeAlias))t.typeAliasCheck[y]=!0}u();function c(y){if(y in t.typeAliasCheck)return y}t.asTypeAlias=c;function l(y){if(y in t.superTypeDictTable)return y}t.asKnownLiteralType=l;function d(y){if(l(y)??y==="term")return y}t.asOverrideType=d;function f(y){if(y==="term"||(0,e.asTermType)(y))return y}t.asGeneralType=f;function h(y,g){return y!=="term"&&t.superTypeDictTable[y]&&t.superTypeDictTable[y][g]!==void 0}t.isInternalSubType=h;function p(y,g){const b=l(y);return b?t.superTypeDictTable[b]:a(y,g)}t.getSuperTypeDict=p;function m(y,g,b){return y==="term"?!1:p(y,b)[g]!==void 0}t.isSubTypeOf=m,t.typePromotion={[n.TypeURL.XSD_STRING]:[{typeToPromote:n.TypeURL.XSD_ANY_URI,conversionFunction:y=>(0,r.string)(y.str())}],[n.TypeURL.XSD_DOUBLE]:[{typeToPromote:n.TypeURL.XSD_FLOAT,conversionFunction:y=>(0,r.double)(y.typedValue)},{typeToPromote:n.TypeURL.XSD_DECIMAL,conversionFunction:y=>(0,r.double)(y.typedValue)}],[n.TypeURL.XSD_FLOAT]:[{typeToPromote:n.TypeURL.XSD_DECIMAL,conversionFunction:y=>(0,r.float)(y.typedValue)}]}}(Bx)),Bx}var hV;function bl(){if(hV)return Hm;hV=1,Object.defineProperty(Hm,"__esModule",{value:!0}),Hm.TermTransformer=void 0;const t=nr,e=xt(),r=ki(),n=oi(),a=Rn(),s=Rn(),o=sN(),u=sN(),c=QT();let l=class{constructor(f){this.superTypeProvider=f}transformRDFTermUnsafe(f){return this.transformTerm({term:f,type:e.Algebra.types.EXPRESSION,expressionType:e.Algebra.expressionTypes.TERM})}transformTerm(f){if(!f.term)throw new a.InvalidExpression(f);switch(f.term.termType){case"Variable":return new r.Variable(t.termToString(f.term));case"Literal":return this.transformLiteral(f.term);case"NamedNode":return new r.NamedNode(f.term.value);case"BlankNode":return new r.BlankNode(f.term.value);case"Quad":return new r.Quad(f.term,this.superTypeProvider);default:throw new a.InvalidTermType(f)}}transformLiteral(f){if(!f.datatype||[null,void 0,""].includes(f.datatype.value))return f.language?new r.LangStringLiteral(f.value,f.language):new r.StringLiteral(f.value);const h=f.datatype.value,p=(0,c.getSuperTypeDict)(h,this.superTypeProvider);try{if(n.TypeURL.XSD_STRING in p)return new r.StringLiteral(f.value,h);if(n.TypeURL.RDF_LANG_STRING in p)return new r.LangStringLiteral(f.value,f.language);if(n.TypeURL.XSD_YEAR_MONTH_DURATION in p)return new r.YearMonthDurationLiteral((0,o.parseYearMonthDuration)(f.value),f.value,h);if(n.TypeURL.XSD_DAY_TIME_DURATION in p)return new r.DayTimeDurationLiteral((0,o.parseDayTimeDuration)(f.value),f.value,h);if(n.TypeURL.XSD_DURATION in p)return new r.DurationLiteral((0,o.parseDuration)(f.value),f.value,h);if(n.TypeURL.XSD_DATE_TIME in p){const g=new Date(f.value);return Number.isNaN(g.getTime())?new r.NonLexicalLiteral(void 0,h,this.superTypeProvider,f.value):new r.DateTimeLiteral((0,o.parseDateTime)(f.value),f.value,h)}if(n.TypeURL.XSD_DATE in p)return new r.DateLiteral((0,o.parseDate)(f.value),f.value,h);if(n.TypeURL.XSD_TIME in p)return new r.TimeLiteral((0,o.parseTime)(f.value),f.value,h);if(n.TypeURL.XSD_BOOLEAN in p)return f.value!=="true"&&f.value!=="false"&&f.value!=="1"&&f.value!=="0"?new r.NonLexicalLiteral(void 0,h,this.superTypeProvider,f.value):new r.BooleanLiteral(f.value==="true"||f.value==="1",f.value);if(n.TypeURL.XSD_DECIMAL in p){const g=u.parseXSDDecimal(f.value);return g===void 0?new r.NonLexicalLiteral(void 0,h,this.superTypeProvider,f.value):n.TypeURL.XSD_INTEGER in p?new r.IntegerLiteral(g,h,f.value):new r.DecimalLiteral(g,h,f.value)}const m=n.TypeURL.XSD_FLOAT in p,y=n.TypeURL.XSD_DOUBLE in p;if(m||y){const g=u.parseXSDFloat(f.value);return g===void 0?new r.NonLexicalLiteral(void 0,h,this.superTypeProvider,f.value):m?new r.FloatLiteral(g,h,f.value):new r.DoubleLiteral(g,h,f.value)}return new r.Literal(f.value,h,f.value)}catch(m){if(m instanceof Error&&(0,s.isExpressionError)(m))return new r.NonLexicalLiteral(void 0,h,this.superTypeProvider,f.value);throw m}}};return Hm.TermTransformer=l,Hm}var Ia={},pV;function e6e(){if(pV)return Ia;pV=1,Object.defineProperty(Ia,"__esModule",{value:!0}),Ia.serializeDuration=Ia.serializeTime=Ia.serializeDate=Ia.serializeDateTime=void 0;function t(o,u=2){return o.toLocaleString(void 0,{minimumIntegerDigits:u,useGrouping:!1})}function e(o){return`${n({year:o.year,month:o.month,day:o.day})}T${a(o)}`}Ia.serializeDateTime=e;function r(o){return o.zoneHours===void 0||o.zoneMinutes===void 0?"":o.zoneHours===0&&o.zoneMinutes===0?"Z":`${o.zoneHours>=0?`+${t(o.zoneHours)}`:t(o.zoneHours)}:${t(Math.abs(o.zoneMinutes))}`}function n(o){return`${t(o.year,4)}-${t(o.month)}-${t(o.day)}${r(o)}`}Ia.serializeDate=n;function a(o){return`${t(o.hours)}:${t(o.minutes)}:${t(o.seconds)}${r(o)}`}Ia.serializeTime=a;function s(o,u="PT0S"){if(!Object.values(o).some(g=>(g||0)!==0))return u;const c=Object.values(o).some(g=>(g||0)<0)?"-":"",l=o.year?`${Math.abs(o.year)}Y`:"",d=o.month?`${Math.abs(o.month)}M`:"",f=o.day?`${Math.abs(o.day)}D`:"",h=`${c}P${l}${d}${f}`;if(!(o.hours||o.minutes||o.seconds))return h;const p=o.hours?`${Math.abs(o.hours)}H`:"",m=o.minutes?`${Math.abs(o.minutes)}M`:"",y=o.seconds?`${Math.abs(o.seconds)}S`:"";return`${h}T${p}${m}${y}`}return Ia.serializeDuration=s,Ia}var yV;function t6e(){if(yV)return Rt;yV=1,Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.isNonLexicalLiteral=Rt.NonLexicalLiteral=Rt.YearMonthDurationLiteral=Rt.DayTimeDurationLiteral=Rt.DurationLiteral=Rt.DateLiteral=Rt.TimeLiteral=Rt.DateTimeLiteral=Rt.StringLiteral=Rt.LangStringLiteral=Rt.BooleanLiteral=Rt.DoubleLiteral=Rt.FloatLiteral=Rt.DecimalLiteral=Rt.IntegerLiteral=Rt.NumericLiteral=Rt.Literal=Rt.isLiteralTermExpression=Rt.Quad=Rt.BlankNode=Rt.NamedNode=Rt.Term=void 0;const t=Ot,e=bl(),r=oi(),n=oi(),a=Rn(),s=e6e(),o=QT(),u=As(),c=new t.DataFactory;class l{constructor(){this.expressionType=u.ExpressionType.Term}str(){throw new a.InvalidArgumentTypes([this],r.RegularOperator.STR)}coerceEBV(){throw new a.EBVCoercionError(this)}}Rt.Term=l;class d extends l{constructor(H){super(),this.value=H,this.termType="namedNode"}toRDF(){return c.namedNode(this.value)}str(){return this.value}}Rt.NamedNode=d;class f extends l{constructor(H){super(),this.termType="blankNode",this.value=typeof H=="string"?c.blankNode(H):H}toRDF(){return this.value}}Rt.BlankNode=f;class h extends l{constructor(H,X){super(),this.termType="quad",this.transformer=new e.TermTransformer(X),this.valueTerm=H}toRDF(){return this.valueTerm}get subject(){return this.transformer.transformRDFTermUnsafe(this.RDFsubject)}get predicate(){return this.transformer.transformRDFTermUnsafe(this.RDFpredicate)}get object(){return this.transformer.transformRDFTermUnsafe(this.RDFobject)}get RDFsubject(){return this.toRDF().subject}get RDFpredicate(){return this.toRDF().predicate}get RDFobject(){return this.toRDF().object}}Rt.Quad=h;function p(q){if(q.termType==="literal")return q}Rt.isLiteralTermExpression=p;class m extends l{constructor(H,X,Y,he){super(),this.typedValue=H,this.dataType=X,this.strValue=Y,this.language=he,this.termType="literal"}toRDF(){return c.literal(this.strValue??this.str(),this.language??c.namedNode(this.dataType))}str(){return this.strValue??this.typedValue.toString()}}Rt.Literal=m;class y extends m{constructor(H,X,Y,he){super(H,X,Y,he),this.typedValue=H,this.strValue=Y,this.language=he}coerceEBV(){return!!this.typedValue}toRDF(){const H=super.toRDF();return Number.isFinite(this.typedValue)||(H.value=H.value.replace("Infinity","INF")),H}str(){return this.strValue??this.specificFormatter(this.typedValue)}}Rt.NumericLiteral=y;class g extends y{constructor(H,X,Y,he){super(H,X??n.TypeURL.XSD_INTEGER,Y,he),this.typedValue=H,this.strValue=Y,this.language=he}specificFormatter(H){return H.toFixed(0)}}Rt.IntegerLiteral=g;class b extends y{constructor(H,X,Y,he){super(H,X??n.TypeURL.XSD_DECIMAL,Y,he),this.typedValue=H,this.strValue=Y,this.language=he}specificFormatter(H){return H.toString()}}Rt.DecimalLiteral=b;class v extends y{constructor(H,X,Y,he){super(H,X??n.TypeURL.XSD_FLOAT,Y,he),this.typedValue=H,this.strValue=Y,this.language=he}specificFormatter(H){return H.toString()}}Rt.FloatLiteral=v;class _ extends y{constructor(H,X,Y,he){super(H,X??n.TypeURL.XSD_DOUBLE,Y,he),this.typedValue=H,this.strValue=Y,this.language=he}specificFormatter(H){if(!Number.isFinite(H))return H>0?"INF":H<0?"-INF":"NaN";const X=H.toExponential(),[Y,he]=X.split("e"),Te=he.replace(/\+/u,"");return`${Y.includes(".")?Y:`${Y}.0`}E${Te}`}}Rt.DoubleLiteral=_;class w extends m{constructor(H,X,Y){super(H,Y??n.TypeURL.XSD_BOOLEAN,X),this.typedValue=H,this.strValue=X}coerceEBV(){return this.typedValue}}Rt.BooleanLiteral=w;class E extends m{constructor(H,X,Y){super(H,Y??n.TypeURL.RDF_LANG_STRING,H,X),this.typedValue=H,this.language=X}coerceEBV(){return this.str().length>0}}Rt.LangStringLiteral=E;class O extends m{constructor(H,X){super(H,X??n.TypeURL.XSD_STRING,H),this.typedValue=H}coerceEBV(){return this.str().length>0}}Rt.StringLiteral=O;class L extends m{constructor(H,X,Y){super(H,Y??n.TypeURL.XSD_DATE_TIME,X),this.typedValue=H,this.strValue=X}str(){return(0,s.serializeDateTime)(this.typedValue)}}Rt.DateTimeLiteral=L;class F extends m{constructor(H,X,Y){super(H,Y??n.TypeURL.XSD_TIME,X),this.typedValue=H,this.strValue=X}str(){return(0,s.serializeTime)(this.typedValue)}}Rt.TimeLiteral=F;class x extends m{constructor(H,X,Y){super(H,Y??n.TypeURL.XSD_DATE,X),this.typedValue=H,this.strValue=X}str(){return(0,s.serializeDate)(this.typedValue)}}Rt.DateLiteral=x;class P extends m{constructor(H,X,Y){super(H,Y??n.TypeURL.XSD_DURATION,X),this.typedValue=H,this.strValue=X}str(){return(0,s.serializeDuration)(this.typedValue)}}Rt.DurationLiteral=P;class j extends P{constructor(H,X,Y){super(H,X,Y??n.TypeURL.XSD_DAY_TIME_DURATION),this.typedValue=H,this.strValue=X}}Rt.DayTimeDurationLiteral=j;class N extends m{constructor(H,X,Y){super(H,Y??n.TypeURL.XSD_YEAR_MONTH_DURATION,X),this.typedValue=H,this.strValue=X}str(){return(0,s.serializeDuration)(this.typedValue,"P0M")}}Rt.YearMonthDurationLiteral=N;class V extends m{constructor(H,X,Y,he,Te){super({toString:()=>"undefined"},X,he,Te),this.openWorldType=Y}coerceEBV(){if((0,o.isSubTypeOf)(this.dataType,n.TypeURL.XSD_BOOLEAN,this.openWorldType)||(0,o.isSubTypeOf)(this.dataType,n.TypeAlias.SPARQL_NUMERIC,this.openWorldType))return!1;throw new a.EBVCoercionError(this)}toRDF(){return c.literal(this.str(),this.language??c.namedNode(this.dataType))}str(){return this.strValue??""}}Rt.NonLexicalLiteral=V;function $(q){if(q instanceof V)return q}return Rt.isNonLexicalLiteral=$,Rt}var zm={},mV;function r6e(){if(mV)return zm;mV=1,Object.defineProperty(zm,"__esModule",{value:!0}),zm.Operator=void 0;const t=As();let e=class{constructor(n,a){this.args=n,this.apply=a,this.expressionType=t.ExpressionType.Operator}};return zm.Operator=e,zm}var Gm={},gV;function n6e(){if(gV)return Gm;gV=1,Object.defineProperty(Gm,"__esModule",{value:!0}),Gm.SpecialOperator=void 0;const t=As();let e=class{constructor(n,a,s){this.args=n,this.applyAsync=a,this.applySynchronously=s,this.expressionType=t.ExpressionType.SpecialOperator}};return Gm.SpecialOperator=e,Gm}var Wm={},_V;function i6e(){if(_V)return Wm;_V=1,Object.defineProperty(Wm,"__esModule",{value:!0}),Wm.Named=void 0;const t=As();let e=class{constructor(n,a,s){this.name=n,this.args=a,this.apply=s,this.expressionType=t.ExpressionType.Named}};return Wm.Named=e,Wm}var Km={},bV;function a6e(){if(bV)return Km;bV=1,Object.defineProperty(Km,"__esModule",{value:!0}),Km.Aggregate=void 0;const t=As();let e=class{constructor(n,a){this.name=n,this.expression=a,this.expressionType=t.ExpressionType.Aggregate}};return Km.Aggregate=e,Km}var Jm={},vV;function s6e(){if(vV)return Jm;vV=1,Object.defineProperty(Jm,"__esModule",{value:!0}),Jm.Existence=void 0;const t=As();let e=class{constructor(n){this.expression=n,this.expressionType=t.ExpressionType.Existence}};return Jm.Existence=e,Jm}var Xm={},wV;function o6e(){if(wV)return Xm;wV=1,Object.defineProperty(Xm,"__esModule",{value:!0}),Xm.AsyncExtension=void 0;const t=As();let e=class{constructor(n,a,s){this.name=n,this.args=a,this.apply=s,this.expressionType=t.ExpressionType.AsyncExtension}};return Xm.AsyncExtension=e,Xm}var Ym={},SV;function u6e(){if(SV)return Ym;SV=1,Object.defineProperty(Ym,"__esModule",{value:!0}),Ym.SyncExtension=void 0;const t=As();let e=class{constructor(n,a,s){this.name=n,this.args=a,this.apply=s,this.expressionType=t.ExpressionType.SyncExtension}};return Ym.SyncExtension=e,Ym}var TV;function ki(){return TV||(TV=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(As(),t),r(Z4e(),t),r(t6e(),t),r(r6e(),t),r(n6e(),t),r(i6e(),t),r(a6e(),t),r(s6e(),t),r(o6e(),t),r(u6e(),t)}(Mx)),Mx}var qx={},Pa={},EV;function uN(){if(EV)return Pa;EV=1,Object.defineProperty(Pa,"__esModule",{value:!0}),Pa.SpecialFunction=Pa.NamedFunction=Pa.RegularFunction=Pa.BaseFunction=void 0;const t=Rn();class e{constructor(u,c){this.operator=u,this.apply=(l,d)=>(this.monomorph(l,d.superTypeProvider,d.functionArgumentsCache)??this.handleInvalidTypes(l))(d)(l),this.arity=c.arity,this.overloads=c.overloads}monomorph(u,c,l){return this.overloads.search(u,c,l)}}Pa.BaseFunction=e;class r extends e{constructor(u,c){super(u,c),this.functionClass="regular"}handleInvalidTypes(u){throw new t.InvalidArgumentTypes(u,this.operator)}}Pa.RegularFunction=r;class n extends e{constructor(u,c){super(u,c),this.functionClass="named"}handleInvalidTypes(u){throw new t.InvalidArgumentTypes(u,this.operator)}}Pa.NamedFunction=n;class a{constructor(u,c){this.operator=u,this.functionClass="special",this.arity=c.arity,this.applySynchronously=c.applySynchronously,this.applyAsync=c.applyAsync,this.checkArity=c.checkArity??s(this.arity)}}Pa.SpecialFunction=a;function s(o){return u=>o===Number.POSITIVE_INFINITY?!0:u.length===o}return Pa}var Zm={},AV;function c6e(){if(AV)return Zm;AV=1,Object.defineProperty(Zm,"__esModule",{value:!0}),Zm.namedDefinitions=void 0;const t=ki(),e=ki(),r=oi(),n=qf(),a=Rn(),s=sN(),o=Os(),u={arity:1,overloads:(0,o.declare)(r.TypeURL.XSD_STRING).onNumeric1(()=>_=>(0,o.string)((0,o.float)(_.typedValue).str())).onBoolean1Typed(()=>_=>(0,o.string)((0,o.bool)(_).str())).onTerm1(()=>_=>(0,o.string)(_.str())).collect()},c={arity:1,overloads:(0,o.declare)(r.TypeURL.XSD_FLOAT).onNumeric1(()=>_=>(0,o.float)(_.typedValue)).onBoolean1Typed(()=>_=>(0,o.float)(_?1:0)).onUnary(r.TypeURL.XSD_STRING,()=>_=>{const w=(0,s.parseXSDFloat)(_.str());if(w===void 0)throw new a.CastError(_,r.TypeURL.XSD_FLOAT);return(0,o.float)(w)},!1).collect()},l={arity:1,overloads:(0,o.declare)(r.TypeURL.XSD_DOUBLE).onNumeric1(()=>_=>(0,o.double)(_.typedValue)).onBoolean1Typed(()=>_=>(0,o.double)(_?1:0)).onUnary(r.TypeURL.XSD_STRING,()=>_=>{const w=(0,s.parseXSDFloat)(_.str());if(w===void 0)throw new a.CastError(_,r.TypeURL.XSD_DOUBLE);return(0,o.double)(w)},!1).collect()},d={arity:1,overloads:(0,o.declare)(r.TypeURL.XSD_DECIMAL).onNumeric1(()=>_=>{const w=(0,s.parseXSDDecimal)(_.str());if(w===void 0)throw new a.CastError(_,r.TypeURL.XSD_DECIMAL);return(0,o.decimal)(w)}).onString1(()=>_=>{const w=_.str(),E=/^([+-])?(\d+(\.\d+)?)$/u.test(w)?(0,s.parseXSDDecimal)(w):void 0;if(E===void 0)throw new a.CastError(_,r.TypeURL.XSD_DECIMAL);return(0,o.decimal)(E)},!1).onBoolean1Typed(()=>_=>(0,o.decimal)(_?1:0)).collect()},f={arity:1,overloads:(0,o.declare)(r.TypeURL.XSD_INTEGER).onBoolean1Typed(()=>_=>(0,o.integer)(_?1:0)).onNumeric1(()=>_=>{const w=(0,s.parseXSDInteger)(_.str());if(w===void 0)throw new a.CastError(_,r.TypeURL.XSD_INTEGER);return(0,o.integer)(w)},!1).onString1(()=>_=>{const w=_.str(),E=/^\d+$/u.test(w)?(0,s.parseXSDInteger)(w):void 0;if(E===void 0)throw new a.CastError(_,r.TypeURL.XSD_INTEGER);return(0,o.integer)(E)}).collect()},h={arity:1,overloads:(0,o.declare)(r.TypeURL.XSD_DATE_TIME).onUnary(r.TypeURL.XSD_DATE_TIME,()=>_=>_).onUnary(r.TypeURL.XSD_STRING,()=>_=>(0,o.dateTime)((0,s.parseDateTime)(_.str()),_.str()),!1).onUnary(r.TypeURL.XSD_DATE,()=>_=>new t.DateTimeLiteral({..._.typedValue,hours:0,minutes:0,seconds:0})).collect()},p={arity:1,overloads:(0,o.declare)(r.TypeURL.XSD_BOOLEAN).onNumeric1(()=>_=>(0,o.bool)(_.coerceEBV()),!0).onUnary(r.TypeURL.XSD_BOOLEAN,()=>_=>(0,o.bool)(_.coerceEBV()),!0).onUnary(r.TypeURL.XSD_STRING,()=>_=>{switch(_.str()){case"true":return(0,o.bool)(!0);case"false":return(0,o.bool)(!1);case"1":return(0,o.bool)(!0);case"0":return(0,o.bool)(!1);default:throw new a.CastError(_,r.TypeURL.XSD_BOOLEAN)}},!1).collect()},m={arity:1,overloads:(0,o.declare)(r.TypeURL.XSD_TIME).onUnary(r.TypeURL.XSD_TIME,()=>_=>new t.TimeLiteral(_.typedValue,_.strValue)).onUnary(r.TypeURL.XSD_DATE_TIME,()=>_=>new t.TimeLiteral(_.typedValue)).onStringly1(()=>_=>new t.TimeLiteral((0,s.parseTime)(_.str()))).collect()},y={arity:1,overloads:(0,o.declare)(r.TypeURL.XSD_DATE).onUnary(r.TypeURL.XSD_DATE,()=>_=>new t.DateLiteral(_.typedValue,_.strValue)).onUnary(r.TypeURL.XSD_DATE_TIME,()=>_=>new t.DateLiteral(_.typedValue)).onStringly1(()=>_=>new t.DateLiteral((0,s.parseDate)(_.str()))).collect()},g={arity:1,overloads:(0,o.declare)(r.TypeURL.XSD_DURATION).onUnary(r.TypeURL.XSD_DURATION,()=>_=>new t.DurationLiteral(_.typedValue,_.strValue)).onStringly1(()=>_=>new e.DurationLiteral((0,s.parseDuration)(_.str()))).collect()},b={arity:1,overloads:(0,o.declare)(r.TypeURL.XSD_DAY_TIME_DURATION).onUnary(r.TypeURL.XSD_DURATION,()=>_=>new t.DayTimeDurationLiteral((0,n.trimToDayTimeDuration)(_.typedValue))).onStringly1(()=>_=>new t.DayTimeDurationLiteral((0,s.parseDayTimeDuration)(_.str()))).collect()},v={arity:1,overloads:(0,o.declare)(r.TypeURL.XSD_YEAR_MONTH_DURATION).onUnary(r.TypeURL.XSD_DURATION,()=>_=>new t.YearMonthDurationLiteral((0,n.trimToYearMonthDuration)(_.typedValue))).onStringly1(()=>_=>new t.YearMonthDurationLiteral((0,s.parseYearMonthDuration)(_.str()))).collect()};return Zm.namedDefinitions={[r.TypeURL.XSD_STRING]:u,[r.TypeURL.XSD_FLOAT]:c,[r.TypeURL.XSD_DOUBLE]:l,[r.TypeURL.XSD_DECIMAL]:d,[r.TypeURL.XSD_INTEGER]:f,[r.TypeURL.XSD_DATE_TIME]:h,[r.TypeURL.XSD_DATE]:y,[r.TypeURL.XSD_BOOLEAN]:p,[r.TypeURL.XSD_TIME]:m,[r.TypeURL.XSD_DURATION]:g,[r.TypeURL.XSD_DAY_TIME_DURATION]:b,[r.TypeURL.XSD_YEAR_MONTH_DURATION]:v},Zm}var eg={},$x={exports:{}},OV;function l6e(){return OV||(OV=1,function(t){(function(e){var r,n=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,a=Math.ceil,s=Math.floor,o="[BigNumber Error] ",u=o+"Number primitive has more than 15 significant digits: ",c=1e14,l=14,d=9007199254740991,f=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],h=1e7,p=1e9;function m(O){var L,F,x,P=ce.prototype={constructor:ce,toString:null,valueOf:null},j=new ce(1),N=20,V=4,$=-7,q=21,H=-1e7,X=1e7,Y=!1,he=1,Te=0,Ne={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},$e="0123456789abcdefghijklmnopqrstuvwxyz",de=!0;function ce(z,M){var k,T,R,U,G,Q,Z,se,re=this;if(!(re instanceof ce))return new ce(z,M);if(M==null){if(z&&z._isBigNumber===!0){re.s=z.s,!z.c||z.e>X?re.c=re.e=null:z.e=10;G/=10,U++);U>X?re.c=re.e=null:(re.e=U,re.c=[z]);return}se=String(z)}else{if(!n.test(se=String(z)))return x(re,se,Q);re.s=se.charCodeAt(0)==45?(se=se.slice(1),-1):1}(U=se.indexOf("."))>-1&&(se=se.replace(".","")),(G=se.search(/e/i))>0?(U<0&&(U=G),U+=+se.slice(G+1),se=se.substring(0,G)):U<0&&(U=se.length)}else{if(v(M,2,$e.length,"Base"),M==10&&de)return re=new ce(z),Re(re,N+re.e+1,V);if(se=String(z),Q=typeof z=="number"){if(z*0!=0)return x(re,se,Q,M);if(re.s=1/z<0?(se=se.slice(1),-1):1,ce.DEBUG&&se.replace(/^0\.0*|\./,"").length>15)throw Error(u+z)}else re.s=se.charCodeAt(0)===45?(se=se.slice(1),-1):1;for(k=$e.slice(0,M),U=G=0,Z=se.length;GU){U=Z;continue}}else if(!R&&(se==se.toUpperCase()&&(se=se.toLowerCase())||se==se.toLowerCase()&&(se=se.toUpperCase()))){R=!0,G=-1,U=0;continue}return x(re,String(z),Q,M)}Q=!1,se=F(se,M,10,re.s),(U=se.indexOf("."))>-1?se=se.replace(".",""):U=se.length}for(G=0;se.charCodeAt(G)===48;G++);for(Z=se.length;se.charCodeAt(--Z)===48;);if(se=se.slice(G,++Z)){if(Z-=G,Q&&ce.DEBUG&&Z>15&&(z>d||z!==s(z)))throw Error(u+re.s*z);if((U=U-G-1)>X)re.c=re.e=null;else if(U=-p&&R<=p&&R===s(R)){if(T[0]===0){if(R===0&&T.length===1)return!0;break e}if(M=(R+1)%l,M<1&&(M+=l),String(T[0]).length==M){for(M=0;M=c||k!==s(k))break e;if(k!==0)return!0}}}else if(T===null&&R===null&&(U===null||U===1||U===-1))return!0;throw Error(o+"Invalid BigNumber: "+z)},ce.maximum=ce.max=function(){return Pe(arguments,-1)},ce.minimum=ce.min=function(){return Pe(arguments,1)},ce.random=function(){var z=9007199254740992,M=Math.random()*z&2097151?function(){return s(Math.random()*z)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(k){var T,R,U,G,Q,Z=0,se=[],re=new ce(j);if(k==null?k=N:v(k,0,p),G=a(k/l),Y)if(crypto.getRandomValues){for(T=crypto.getRandomValues(new Uint32Array(G*=2));Z>>11),Q>=9e15?(R=crypto.getRandomValues(new Uint32Array(2)),T[Z]=R[0],T[Z+1]=R[1]):(se.push(Q%1e14),Z+=2);Z=G/2}else if(crypto.randomBytes){for(T=crypto.randomBytes(G*=7);Z=9e15?crypto.randomBytes(7).copy(T,Z):(se.push(Q%1e14),Z+=7);Z=G/7}else throw Y=!1,Error(o+"crypto unavailable");if(!Y)for(;Z=10;Q/=10,Z++);ZR-1&&(Q[G+1]==null&&(Q[G+1]=0),Q[G+1]+=Q[G]/R|0,Q[G]%=R)}return Q.reverse()}return function(k,T,R,U,G){var Q,Z,se,re,le,pe,_e,Ie,Ee=k.indexOf("."),Me=N,Ce=V;for(Ee>=0&&(re=Te,Te=0,k=k.replace(".",""),Ie=new ce(T),pe=Ie.pow(k.length-Ee),Te=re,Ie.c=M(E(g(pe.c),pe.e,"0"),10,R,z),Ie.e=Ie.c.length),_e=M(k,T,R,G?(Q=$e,z):(Q=z,$e)),se=re=_e.length;_e[--re]==0;_e.pop());if(!_e[0])return Q.charAt(0);if(Ee<0?--se:(pe.c=_e,pe.e=se,pe.s=U,pe=L(pe,Ie,Me,Ce,R),_e=pe.c,le=pe.r,se=pe.e),Z=se+Me+1,Ee=_e[Z],re=R/2,le=le||Z<0||_e[Z+1]!=null,le=Ce<4?(Ee!=null||le)&&(Ce==0||Ce==(pe.s<0?3:2)):Ee>re||Ee==re&&(Ce==4||le||Ce==6&&_e[Z-1]&1||Ce==(pe.s<0?8:7)),Z<1||!_e[0])k=le?E(Q.charAt(1),-Me,Q.charAt(0)):Q.charAt(0);else{if(_e.length=Z,le)for(--R;++_e[--Z]>R;)_e[Z]=0,Z||(++se,_e=[1].concat(_e));for(re=_e.length;!_e[--re];);for(Ee=0,k="";Ee<=re;k+=Q.charAt(_e[Ee++]));k=E(k,se,Q.charAt(0))}return k}}(),L=function(){function z(T,R,U){var G,Q,Z,se,re=0,le=T.length,pe=R%h,_e=R/h|0;for(T=T.slice();le--;)Z=T[le]%h,se=T[le]/h|0,G=_e*Z+se*pe,Q=pe*Z+G%h*h+re,re=(Q/U|0)+(G/h|0)+_e*se,T[le]=Q%U;return re&&(T=[re].concat(T)),T}function M(T,R,U,G){var Q,Z;if(U!=G)Z=U>G?1:-1;else for(Q=Z=0;QR[Q]?1:-1;break}return Z}function k(T,R,U,G){for(var Q=0;U--;)T[U]-=Q,Q=T[U]1;T.splice(0,1));}return function(T,R,U,G,Q){var Z,se,re,le,pe,_e,Ie,Ee,Me,Ce,ke,qe,W,D,B,K,ne,fe=T.s==R.s?1:-1,ge=T.c,Le=R.c;if(!ge||!ge[0]||!Le||!Le[0])return new ce(!T.s||!R.s||(ge?Le&&ge[0]==Le[0]:!Le)?NaN:ge&&ge[0]==0||!Le?fe*0:fe/0);for(Ee=new ce(fe),Me=Ee.c=[],se=T.e-R.e,fe=U+se+1,Q||(Q=c,se=y(T.e/l)-y(R.e/l),fe=fe/l|0),re=0;Le[re]==(ge[re]||0);re++);if(Le[re]>(ge[re]||0)&&se--,fe<0)Me.push(1),le=!0;else{for(D=ge.length,K=Le.length,re=0,fe+=2,pe=s(Q/(Le[0]+1)),pe>1&&(Le=z(Le,pe,Q),ge=z(ge,pe,Q),K=Le.length,D=ge.length),W=K,Ce=ge.slice(0,K),ke=Ce.length;ke=Q/2&&B++;do{if(pe=0,Z=M(Le,Ce,K,ke),Z<0){if(qe=Ce[0],K!=ke&&(qe=qe*Q+(Ce[1]||0)),pe=s(qe/B),pe>1)for(pe>=Q&&(pe=Q-1),_e=z(Le,pe,Q),Ie=_e.length,ke=Ce.length;M(_e,Ce,Ie,ke)==1;)pe--,k(_e,K=10;fe/=10,re++);Re(Ee,U+(Ee.e=re+se*l-1)+1,G,le)}else Ee.e=se,Ee.r=+le;return Ee}}();function xe(z,M,k,T){var R,U,G,Q,Z;if(k==null?k=V:v(k,0,8),!z.c)return z.toString();if(R=z.c[0],G=z.e,M==null)Z=g(z.c),Z=T==1||T==2&&(G<=$||G>=q)?w(Z,G):E(Z,G,"0");else if(z=Re(new ce(z),M,k),U=z.e,Z=g(z.c),Q=Z.length,T==1||T==2&&(M<=U||U<=$)){for(;QQ){if(--M>0)for(Z+=".";M--;Z+="0");}else if(M+=U-Q,M>0)for(U+1==Q&&(Z+=".");M--;Z+="0");return z.s<0&&R?"-"+Z:Z}function Pe(z,M){for(var k,T,R=1,U=new ce(z[0]);R=10;R/=10,T++);return(k=T+k*l-1)>X?z.c=z.e=null:k=10;Q/=10,R++);if(U=M-R,U<0)U+=l,G=M,Z=le[se=0],re=s(Z/pe[R-G-1]%10);else if(se=a((U+1)/l),se>=le.length)if(T){for(;le.length<=se;le.push(0));Z=re=0,R=1,U%=l,G=U-l+1}else break e;else{for(Z=Q=le[se],R=1;Q>=10;Q/=10,R++);U%=l,G=U-l+R,re=G<0?0:s(Z/pe[R-G-1]%10)}if(T=T||M<0||le[se+1]!=null||(G<0?Z:Z%pe[R-G-1]),T=k<4?(re||T)&&(k==0||k==(z.s<0?3:2)):re>5||re==5&&(k==4||T||k==6&&(U>0?G>0?Z/pe[R-G]:0:le[se-1])%10&1||k==(z.s<0?8:7)),M<1||!le[0])return le.length=0,T?(M-=z.e+1,le[0]=pe[(l-M%l)%l],z.e=-M||0):le[0]=z.e=0,z;if(U==0?(le.length=se,Q=1,se--):(le.length=se+1,Q=pe[l-U],le[se]=G>0?s(Z/pe[R-G]%pe[G])*Q:0),T)for(;;)if(se==0){for(U=1,G=le[0];G>=10;G/=10,U++);for(G=le[0]+=Q,Q=1;G>=10;G/=10,Q++);U!=Q&&(z.e++,le[0]==c&&(le[0]=1));break}else{if(le[se]+=Q,le[se]!=c)break;le[se--]=0,Q=1}for(U=le.length;le[--U]===0;le.pop());}z.e>X?z.c=z.e=null:z.e=q?w(M,k):E(M,k,"0"),z.s<0?"-"+M:M)}return P.absoluteValue=P.abs=function(){var z=new ce(this);return z.s<0&&(z.s=1),z},P.comparedTo=function(z,M){return b(this,new ce(z,M))},P.decimalPlaces=P.dp=function(z,M){var k,T,R,U=this;if(z!=null)return v(z,0,p),M==null?M=V:v(M,0,8),Re(new ce(U),z+U.e+1,M);if(!(k=U.c))return null;if(T=((R=k.length-1)-y(this.e/l))*l,R=k[R])for(;R%10==0;R/=10,T--);return T<0&&(T=0),T},P.dividedBy=P.div=function(z,M){return L(this,new ce(z,M),N,V)},P.dividedToIntegerBy=P.idiv=function(z,M){return L(this,new ce(z,M),0,1)},P.exponentiatedBy=P.pow=function(z,M){var k,T,R,U,G,Q,Z,se,re,le=this;if(z=new ce(z),z.c&&!z.isInteger())throw Error(o+"Exponent not an integer: "+Se(z));if(M!=null&&(M=new ce(M)),Q=z.e>14,!le.c||!le.c[0]||le.c[0]==1&&!le.e&&le.c.length==1||!z.c||!z.c[0])return re=new ce(Math.pow(+Se(le),Q?z.s*(2-_(z)):+Se(z))),M?re.mod(M):re;if(Z=z.s<0,M){if(M.c?!M.c[0]:!M.s)return new ce(NaN);T=!Z&&le.isInteger()&&M.isInteger(),T&&(le=le.mod(M))}else{if(z.e>9&&(le.e>0||le.e<-1||(le.e==0?le.c[0]>1||Q&&le.c[1]>=24e7:le.c[0]<8e13||Q&&le.c[0]<=9999975e7)))return U=le.s<0&&_(z)?-0:0,le.e>-1&&(U=1/U),new ce(Z?1/U:U);Te&&(U=a(Te/l+2))}for(Q?(k=new ce(.5),Z&&(z.s=1),se=_(z)):(R=Math.abs(+Se(z)),se=R%2),re=new ce(j);;){if(se){if(re=re.times(le),!re.c)break;U?re.c.length>U&&(re.c.length=U):T&&(re=re.mod(M))}if(R){if(R=s(R/2),R===0)break;se=R%2}else if(z=z.times(k),Re(z,z.e+1,1),z.e>14)se=_(z);else{if(R=+Se(z),R===0)break;se=R%2}le=le.times(le),U?le.c&&le.c.length>U&&(le.c.length=U):T&&(le=le.mod(M))}return T?re:(Z&&(re=j.div(re)),M?re.mod(M):U?Re(re,Te,V,G):re)},P.integerValue=function(z){var M=new ce(this);return z==null?z=V:v(z,0,8),Re(M,M.e+1,z)},P.isEqualTo=P.eq=function(z,M){return b(this,new ce(z,M))===0},P.isFinite=function(){return!!this.c},P.isGreaterThan=P.gt=function(z,M){return b(this,new ce(z,M))>0},P.isGreaterThanOrEqualTo=P.gte=function(z,M){return(M=b(this,new ce(z,M)))===1||M===0},P.isInteger=function(){return!!this.c&&y(this.e/l)>this.c.length-2},P.isLessThan=P.lt=function(z,M){return b(this,new ce(z,M))<0},P.isLessThanOrEqualTo=P.lte=function(z,M){return(M=b(this,new ce(z,M)))===-1||M===0},P.isNaN=function(){return!this.s},P.isNegative=function(){return this.s<0},P.isPositive=function(){return this.s>0},P.isZero=function(){return!!this.c&&this.c[0]==0},P.minus=function(z,M){var k,T,R,U,G=this,Q=G.s;if(z=new ce(z,M),M=z.s,!Q||!M)return new ce(NaN);if(Q!=M)return z.s=-M,G.plus(z);var Z=G.e/l,se=z.e/l,re=G.c,le=z.c;if(!Z||!se){if(!re||!le)return re?(z.s=-M,z):new ce(le?G:NaN);if(!re[0]||!le[0])return le[0]?(z.s=-M,z):new ce(re[0]?G:V==3?-0:0)}if(Z=y(Z),se=y(se),re=re.slice(),Q=Z-se){for((U=Q<0)?(Q=-Q,R=re):(se=Z,R=le),R.reverse(),M=Q;M--;R.push(0));R.reverse()}else for(T=(U=(Q=re.length)<(M=le.length))?Q:M,Q=M=0;M0)for(;M--;re[k++]=0);for(M=c-1;T>Q;){if(re[--T]=0;){for(k=0,pe=qe[R]%Me,_e=qe[R]/Me|0,G=Z,U=R+G;U>R;)se=ke[--G]%Me,re=ke[G]/Me|0,Q=_e*se+re*pe,se=pe*se+Q%Me*Me+Ie[U]+k,k=(se/Ee|0)+(Q/Me|0)+_e*re,Ie[U--]=se%Ee;Ie[U]=k}return k?++T:Ie.splice(0,1),we(z,Ie,T)},P.negated=function(){var z=new ce(this);return z.s=-z.s||null,z},P.plus=function(z,M){var k,T=this,R=T.s;if(z=new ce(z,M),M=z.s,!R||!M)return new ce(NaN);if(R!=M)return z.s=-M,T.minus(z);var U=T.e/l,G=z.e/l,Q=T.c,Z=z.c;if(!U||!G){if(!Q||!Z)return new ce(R/0);if(!Q[0]||!Z[0])return Z[0]?z:new ce(Q[0]?T:R*0)}if(U=y(U),G=y(G),Q=Q.slice(),R=U-G){for(R>0?(G=U,k=Z):(R=-R,k=Q),k.reverse();R--;k.push(0));k.reverse()}for(R=Q.length,M=Z.length,R-M<0&&(k=Z,Z=Q,Q=k,M=R),R=0;M;)R=(Q[--M]=Q[M]+Z[M]+R)/c|0,Q[M]=c===Q[M]?0:Q[M]%c;return R&&(Q=[R].concat(Q),++G),we(z,Q,G)},P.precision=P.sd=function(z,M){var k,T,R,U=this;if(z!=null&&z!==!!z)return v(z,1,p),M==null?M=V:v(M,0,8),Re(new ce(U),z,M);if(!(k=U.c))return null;if(R=k.length-1,T=R*l+1,R=k[R]){for(;R%10==0;R/=10,T--);for(R=k[0];R>=10;R/=10,T++);}return z&&U.e+1>T&&(T=U.e+1),T},P.shiftedBy=function(z){return v(z,-d,d),this.times("1e"+z)},P.squareRoot=P.sqrt=function(){var z,M,k,T,R,U=this,G=U.c,Q=U.s,Z=U.e,se=N+4,re=new ce("0.5");if(Q!==1||!G||!G[0])return new ce(!Q||Q<0&&(!G||G[0])?NaN:G?U:1/0);if(Q=Math.sqrt(+Se(U)),Q==0||Q==1/0?(M=g(G),(M.length+Z)%2==0&&(M+="0"),Q=Math.sqrt(+M),Z=y((Z+1)/2)-(Z<0||Z%2),Q==1/0?M="5e"+Z:(M=Q.toExponential(),M=M.slice(0,M.indexOf("e")+1)+Z),k=new ce(M)):k=new ce(Q+""),k.c[0]){for(Z=k.e,Q=Z+se,Q<3&&(Q=0);;)if(R=k,k=re.times(R.plus(L(U,R,se,1))),g(R.c).slice(0,Q)===(M=g(k.c)).slice(0,Q))if(k.e0&&Ie>0){for(U=Ie%Q||Q,re=_e.substr(0,U);U0&&(re+=se+_e.slice(U)),pe&&(re="-"+re)}T=le?re+(k.decimalSeparator||"")+((Z=+k.fractionGroupSize)?le.replace(new RegExp("\\d{"+Z+"}\\B","g"),"$&"+(k.fractionGroupSeparator||"")):le):re}return(k.prefix||"")+T+(k.suffix||"")},P.toFraction=function(z){var M,k,T,R,U,G,Q,Z,se,re,le,pe,_e=this,Ie=_e.c;if(z!=null&&(Q=new ce(z),!Q.isInteger()&&(Q.c||Q.s!==1)||Q.lt(j)))throw Error(o+"Argument "+(Q.isInteger()?"out of range: ":"not an integer: ")+Se(Q));if(!Ie)return new ce(_e);for(M=new ce(j),se=k=new ce(j),T=Z=new ce(j),pe=g(Ie),U=M.e=pe.length-_e.e-1,M.c[0]=f[(G=U%l)<0?l+G:G],z=!z||Q.comparedTo(M)>0?U>0?M:se:Q,G=X,X=1/0,Q=new ce(pe),Z.c[0]=0;re=L(Q,M,0,1),R=k.plus(re.times(T)),R.comparedTo(z)!=1;)k=T,T=R,se=Z.plus(re.times(R=se)),Z=R,M=Q.minus(re.times(R=M)),Q=R;return R=L(z.minus(k),T,0,1),Z=Z.plus(R.times(se)),k=k.plus(R.times(T)),Z.s=se.s=_e.s,U=U*2,le=L(se,T,U,V).minus(_e).abs().comparedTo(L(Z,k,U,V).minus(_e).abs())<1?[se,T]:[Z,k],X=G,le},P.toNumber=function(){return+Se(this)},P.toPrecision=function(z,M){return z!=null&&v(z,1,p),xe(this,z,M,2)},P.toString=function(z){var M,k=this,T=k.s,R=k.e;return R===null?T?(M="Infinity",T<0&&(M="-"+M)):M="NaN":(z==null?M=R<=$||R>=q?w(g(k.c),R):E(g(k.c),R,"0"):z===10&&de?(k=Re(new ce(k),N+R+1,V),M=E(g(k.c),k.e,"0")):(v(z,2,$e.length,"Base"),M=F(E(g(k.c),R,"0"),10,z,T,!0)),T<0&&k.c[0]&&(M="-"+M)),M},P.valueOf=P.toJSON=function(){return Se(this)},P._isBigNumber=!0,O!=null&&ce.set(O),ce}function y(O){var L=O|0;return O>0||O===L?L:L-1}function g(O){for(var L,F,x=1,P=O.length,j=O[0]+"";xq^F?1:-1;for(V=($=P.length)<(q=j.length)?$:q,N=0;Nj[N]^F?1:-1;return $==q?0:$>q^F?1:-1}function v(O,L,F,x){if(OF||O!==s(O))throw Error(o+(x||"Argument")+(typeof O=="number"?OF?" out of range: ":" not an integer: ":" not a primitive number: ")+String(O))}function _(O){var L=O.c.length-1;return y(O.e/l)==L&&O.c[L]%2!=0}function w(O,L){return(O.length>1?O.charAt(0)+"."+O.slice(1):O)+(L<0?"e":"e+")+L}function E(O,L,F){var x,P;if(L<0){for(P=F+".";++L;P+=F);O=P+O}else if(x=O.length,++L>x){for(P=F,L-=x;--L;P+=F);O+=P}else L>>25)+w|0,O+=(_&w|~_&E)+v[1]-389564586|0,O=(O<<12|O>>>20)+_|0,E+=(O&_|~O&w)+v[2]+606105819|0,E=(E<<17|E>>>15)+O|0,w+=(E&O|~E&_)+v[3]-1044525330|0,w=(w<<22|w>>>10)+E|0,_+=(w&E|~w&O)+v[4]-176418897|0,_=(_<<7|_>>>25)+w|0,O+=(_&w|~_&E)+v[5]+1200080426|0,O=(O<<12|O>>>20)+_|0,E+=(O&_|~O&w)+v[6]-1473231341|0,E=(E<<17|E>>>15)+O|0,w+=(E&O|~E&_)+v[7]-45705983|0,w=(w<<22|w>>>10)+E|0,_+=(w&E|~w&O)+v[8]+1770035416|0,_=(_<<7|_>>>25)+w|0,O+=(_&w|~_&E)+v[9]-1958414417|0,O=(O<<12|O>>>20)+_|0,E+=(O&_|~O&w)+v[10]-42063|0,E=(E<<17|E>>>15)+O|0,w+=(E&O|~E&_)+v[11]-1990404162|0,w=(w<<22|w>>>10)+E|0,_+=(w&E|~w&O)+v[12]+1804603682|0,_=(_<<7|_>>>25)+w|0,O+=(_&w|~_&E)+v[13]-40341101|0,O=(O<<12|O>>>20)+_|0,E+=(O&_|~O&w)+v[14]-1502002290|0,E=(E<<17|E>>>15)+O|0,w+=(E&O|~E&_)+v[15]+1236535329|0,w=(w<<22|w>>>10)+E|0,_+=(w&O|E&~O)+v[1]-165796510|0,_=(_<<5|_>>>27)+w|0,O+=(_&E|w&~E)+v[6]-1069501632|0,O=(O<<9|O>>>23)+_|0,E+=(O&w|_&~w)+v[11]+643717713|0,E=(E<<14|E>>>18)+O|0,w+=(E&_|O&~_)+v[0]-373897302|0,w=(w<<20|w>>>12)+E|0,_+=(w&O|E&~O)+v[5]-701558691|0,_=(_<<5|_>>>27)+w|0,O+=(_&E|w&~E)+v[10]+38016083|0,O=(O<<9|O>>>23)+_|0,E+=(O&w|_&~w)+v[15]-660478335|0,E=(E<<14|E>>>18)+O|0,w+=(E&_|O&~_)+v[4]-405537848|0,w=(w<<20|w>>>12)+E|0,_+=(w&O|E&~O)+v[9]+568446438|0,_=(_<<5|_>>>27)+w|0,O+=(_&E|w&~E)+v[14]-1019803690|0,O=(O<<9|O>>>23)+_|0,E+=(O&w|_&~w)+v[3]-187363961|0,E=(E<<14|E>>>18)+O|0,w+=(E&_|O&~_)+v[8]+1163531501|0,w=(w<<20|w>>>12)+E|0,_+=(w&O|E&~O)+v[13]-1444681467|0,_=(_<<5|_>>>27)+w|0,O+=(_&E|w&~E)+v[2]-51403784|0,O=(O<<9|O>>>23)+_|0,E+=(O&w|_&~w)+v[7]+1735328473|0,E=(E<<14|E>>>18)+O|0,w+=(E&_|O&~_)+v[12]-1926607734|0,w=(w<<20|w>>>12)+E|0,_+=(w^E^O)+v[5]-378558|0,_=(_<<4|_>>>28)+w|0,O+=(_^w^E)+v[8]-2022574463|0,O=(O<<11|O>>>21)+_|0,E+=(O^_^w)+v[11]+1839030562|0,E=(E<<16|E>>>16)+O|0,w+=(E^O^_)+v[14]-35309556|0,w=(w<<23|w>>>9)+E|0,_+=(w^E^O)+v[1]-1530992060|0,_=(_<<4|_>>>28)+w|0,O+=(_^w^E)+v[4]+1272893353|0,O=(O<<11|O>>>21)+_|0,E+=(O^_^w)+v[7]-155497632|0,E=(E<<16|E>>>16)+O|0,w+=(E^O^_)+v[10]-1094730640|0,w=(w<<23|w>>>9)+E|0,_+=(w^E^O)+v[13]+681279174|0,_=(_<<4|_>>>28)+w|0,O+=(_^w^E)+v[0]-358537222|0,O=(O<<11|O>>>21)+_|0,E+=(O^_^w)+v[3]-722521979|0,E=(E<<16|E>>>16)+O|0,w+=(E^O^_)+v[6]+76029189|0,w=(w<<23|w>>>9)+E|0,_+=(w^E^O)+v[9]-640364487|0,_=(_<<4|_>>>28)+w|0,O+=(_^w^E)+v[12]-421815835|0,O=(O<<11|O>>>21)+_|0,E+=(O^_^w)+v[15]+530742520|0,E=(E<<16|E>>>16)+O|0,w+=(E^O^_)+v[2]-995338651|0,w=(w<<23|w>>>9)+E|0,_+=(E^(w|~O))+v[0]-198630844|0,_=(_<<6|_>>>26)+w|0,O+=(w^(_|~E))+v[7]+1126891415|0,O=(O<<10|O>>>22)+_|0,E+=(_^(O|~w))+v[14]-1416354905|0,E=(E<<15|E>>>17)+O|0,w+=(O^(E|~_))+v[5]-57434055|0,w=(w<<21|w>>>11)+E|0,_+=(E^(w|~O))+v[12]+1700485571|0,_=(_<<6|_>>>26)+w|0,O+=(w^(_|~E))+v[3]-1894986606|0,O=(O<<10|O>>>22)+_|0,E+=(_^(O|~w))+v[10]-1051523|0,E=(E<<15|E>>>17)+O|0,w+=(O^(E|~_))+v[1]-2054922799|0,w=(w<<21|w>>>11)+E|0,_+=(E^(w|~O))+v[8]+1873313359|0,_=(_<<6|_>>>26)+w|0,O+=(w^(_|~E))+v[15]-30611744|0,O=(O<<10|O>>>22)+_|0,E+=(_^(O|~w))+v[6]-1560198380|0,E=(E<<15|E>>>17)+O|0,w+=(O^(E|~_))+v[13]+1309151649|0,w=(w<<21|w>>>11)+E|0,_+=(E^(w|~O))+v[4]-145523070|0,_=(_<<6|_>>>26)+w|0,O+=(w^(_|~E))+v[11]-1120210379|0,O=(O<<10|O>>>22)+_|0,E+=(_^(O|~w))+v[2]+718787259|0,E=(E<<15|E>>>17)+O|0,w+=(O^(E|~_))+v[9]-343485551|0,w=(w<<21|w>>>11)+E|0,b[0]=_+b[0]|0,b[1]=w+b[1]|0,b[2]=E+b[2]|0,b[3]=O+b[3]|0}function s(b){var v=[],_;for(_=0;_<64;_+=4)v[_>>2]=b.charCodeAt(_)+(b.charCodeAt(_+1)<<8)+(b.charCodeAt(_+2)<<16)+(b.charCodeAt(_+3)<<24);return v}function o(b){var v=[],_;for(_=0;_<64;_+=4)v[_>>2]=b[_]+(b[_+1]<<8)+(b[_+2]<<16)+(b[_+3]<<24);return v}function u(b){var v=b.length,_=[1732584193,-271733879,-1732584194,271733878],w,E,O,L,F,x;for(w=64;w<=v;w+=64)a(_,s(b.substring(w-64,w)));for(b=b.substring(w-64),E=b.length,O=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],w=0;w>2]|=b.charCodeAt(w)<<(w%4<<3);if(O[w>>2]|=128<<(w%4<<3),w>55)for(a(_,O),w=0;w<16;w+=1)O[w]=0;return L=v*8,L=L.toString(16).match(/(.*?)(.{0,8})$/),F=parseInt(L[2],16),x=parseInt(L[1],16)||0,O[14]=F,O[15]=x,a(_,O),_}function c(b){var v=b.length,_=[1732584193,-271733879,-1732584194,271733878],w,E,O,L,F,x;for(w=64;w<=v;w+=64)a(_,o(b.subarray(w-64,w)));for(b=w-64>2]|=b[w]<<(w%4<<3);if(O[w>>2]|=128<<(w%4<<3),w>55)for(a(_,O),w=0;w<16;w+=1)O[w]=0;return L=v*8,L=L.toString(16).match(/(.*?)(.{0,8})$/),F=parseInt(L[2],16),x=parseInt(L[1],16)||0,O[14]=F,O[15]=x,a(_,O),_}function l(b){var v="",_;for(_=0;_<4;_+=1)v+=n[b>>_*8+4&15]+n[b>>_*8&15];return v}function d(b){var v;for(v=0;vO?new ArrayBuffer(0):(L=O-E,F=new ArrayBuffer(L),x=new Uint8Array(F),P=new Uint8Array(this,E,L),x.set(P),F)}}();function f(b){return/[\u0080-\uFFFF]/.test(b)&&(b=unescape(encodeURIComponent(b))),b}function h(b,v){var _=b.length,w=new ArrayBuffer(_),E=new Uint8Array(w),O;for(O=0;O<_;O+=1)E[O]=b.charCodeAt(O);return v?E:w}function p(b){return String.fromCharCode.apply(null,new Uint8Array(b))}function m(b,v,_){var w=new Uint8Array(b.byteLength+v.byteLength);return w.set(new Uint8Array(b)),w.set(new Uint8Array(v),b.byteLength),_?w:w.buffer}function y(b){var v=[],_=b.length,w;for(w=0;w<_-1;w+=2)v.push(parseInt(b.substr(w,2),16));return String.fromCharCode.apply(String,v)}function g(){this.reset()}return g.prototype.append=function(b){return this.appendBinary(f(b)),this},g.prototype.appendBinary=function(b){this._buff+=b,this._length+=b.length;var v=this._buff.length,_;for(_=64;_<=v;_+=64)a(this._hash,s(this._buff.substring(_-64,_)));return this._buff=this._buff.substring(_-64),this},g.prototype.end=function(b){var v=this._buff,_=v.length,w,E=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],O;for(w=0;w<_;w+=1)E[w>>2]|=v.charCodeAt(w)<<(w%4<<3);return this._finish(E,_),O=d(this._hash),b&&(O=y(O)),this.reset(),O},g.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},g.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},g.prototype.setState=function(b){return this._buff=b.buff,this._length=b.length,this._hash=b.hash,this},g.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},g.prototype._finish=function(b,v){var _=v,w,E,O;if(b[_>>2]|=128<<(_%4<<3),_>55)for(a(this._hash,b),_=0;_<16;_+=1)b[_]=0;w=this._length*8,w=w.toString(16).match(/(.*?)(.{0,8})$/),E=parseInt(w[2],16),O=parseInt(w[1],16)||0,b[14]=E,b[15]=O,a(this._hash,b)},g.hash=function(b,v){return g.hashBinary(f(b),v)},g.hashBinary=function(b,v){var _=u(b),w=d(_);return v?y(w):w},g.ArrayBuffer=function(){this.reset()},g.ArrayBuffer.prototype.append=function(b){var v=m(this._buff.buffer,b,!0),_=v.length,w;for(this._length+=b.byteLength,w=64;w<=_;w+=64)a(this._hash,o(v.subarray(w-64,w)));return this._buff=w-64<_?new Uint8Array(v.buffer.slice(w-64)):new Uint8Array(0),this},g.ArrayBuffer.prototype.end=function(b){var v=this._buff,_=v.length,w=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],E,O;for(E=0;E<_;E+=1)w[E>>2]|=v[E]<<(E%4<<3);return this._finish(w,_),O=d(this._hash),b&&(O=y(O)),this.reset(),O},g.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},g.ArrayBuffer.prototype.getState=function(){var b=g.prototype.getState.call(this);return b.buff=p(b.buff),b},g.ArrayBuffer.prototype.setState=function(b){return b.buff=h(b.buff,!0),g.prototype.setState.call(this,b)},g.ArrayBuffer.prototype.destroy=g.prototype.destroy,g.ArrayBuffer.prototype._finish=g.prototype._finish,g.ArrayBuffer.hash=function(b,v){var _=c(new Uint8Array(b)),w=d(_);return v?y(w):w},g})}(Ux)),Ux.exports}var kx={},tg={},fw={},xV;function pte(){if(xV)return fw;xV=1,Object.defineProperty(fw,"__esModule",{value:!0}),fw.default=r;let t;const e=new Uint8Array(16);function r(){if(!t&&(t=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!t))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return t(e)}return fw}var kl={},rg={},ng={},IV;function f6e(){if(IV)return ng;IV=1,Object.defineProperty(ng,"__esModule",{value:!0}),ng.default=void 0;var t=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;return ng.default=t,ng}var PV;function zT(){if(PV)return rg;PV=1,Object.defineProperty(rg,"__esModule",{value:!0}),rg.default=void 0;var t=e(f6e());function e(a){return a&&a.__esModule?a:{default:a}}function r(a){return typeof a=="string"&&t.default.test(a)}var n=r;return rg.default=n,rg}var NV;function GT(){if(NV)return kl;NV=1,Object.defineProperty(kl,"__esModule",{value:!0}),kl.default=void 0,kl.unsafeStringify=n;var t=e(zT());function e(o){return o&&o.__esModule?o:{default:o}}const r=[];for(let o=0;o<256;++o)r.push((o+256).toString(16).slice(1));function n(o,u=0){return r[o[u+0]]+r[o[u+1]]+r[o[u+2]]+r[o[u+3]]+"-"+r[o[u+4]]+r[o[u+5]]+"-"+r[o[u+6]]+r[o[u+7]]+"-"+r[o[u+8]]+r[o[u+9]]+"-"+r[o[u+10]]+r[o[u+11]]+r[o[u+12]]+r[o[u+13]]+r[o[u+14]]+r[o[u+15]]}function a(o,u=0){const c=n(o,u);if(!(0,t.default)(c))throw TypeError("Stringified UUID is invalid");return c}var s=a;return kl.default=s,kl}var DV;function h6e(){if(DV)return tg;DV=1,Object.defineProperty(tg,"__esModule",{value:!0}),tg.default=void 0;var t=r(pte()),e=GT();function r(l){return l&&l.__esModule?l:{default:l}}let n,a,s=0,o=0;function u(l,d,f){let h=d&&f||0;const p=d||new Array(16);l=l||{};let m=l.node||n,y=l.clockseq!==void 0?l.clockseq:a;if(m==null||y==null){const E=l.random||(l.rng||t.default)();m==null&&(m=n=[E[0]|1,E[1],E[2],E[3],E[4],E[5]]),y==null&&(y=a=(E[6]<<8|E[7])&16383)}let g=l.msecs!==void 0?l.msecs:Date.now(),b=l.nsecs!==void 0?l.nsecs:o+1;const v=g-s+(b-o)/1e4;if(v<0&&l.clockseq===void 0&&(y=y+1&16383),(v<0||g>s)&&l.nsecs===void 0&&(b=0),b>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=g,o=b,a=y,g+=122192928e5;const _=((g&268435455)*1e4+b)%4294967296;p[h++]=_>>>24&255,p[h++]=_>>>16&255,p[h++]=_>>>8&255,p[h++]=_&255;const w=g/4294967296*1e4&268435455;p[h++]=w>>>8&255,p[h++]=w&255,p[h++]=w>>>24&15|16,p[h++]=w>>>16&255,p[h++]=y>>>8|128,p[h++]=y&255;for(let E=0;E<6;++E)p[h+E]=m[E];return d||(0,e.unsafeStringify)(p)}var c=u;return tg.default=c,tg}var ig={},Bo={},ag={},CV;function yte(){if(CV)return ag;CV=1,Object.defineProperty(ag,"__esModule",{value:!0}),ag.default=void 0;var t=e(zT());function e(a){return a&&a.__esModule?a:{default:a}}function r(a){if(!(0,t.default)(a))throw TypeError("Invalid UUID");let s;const o=new Uint8Array(16);return o[0]=(s=parseInt(a.slice(0,8),16))>>>24,o[1]=s>>>16&255,o[2]=s>>>8&255,o[3]=s&255,o[4]=(s=parseInt(a.slice(9,13),16))>>>8,o[5]=s&255,o[6]=(s=parseInt(a.slice(14,18),16))>>>8,o[7]=s&255,o[8]=(s=parseInt(a.slice(19,23),16))>>>8,o[9]=s&255,o[10]=(s=parseInt(a.slice(24,36),16))/1099511627776&255,o[11]=s/4294967296&255,o[12]=s>>>24&255,o[13]=s>>>16&255,o[14]=s>>>8&255,o[15]=s&255,o}var n=r;return ag.default=n,ag}var LV;function mte(){if(LV)return Bo;LV=1,Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.URL=Bo.DNS=void 0,Bo.default=o;var t=GT(),e=r(yte());function r(u){return u&&u.__esModule?u:{default:u}}function n(u){u=unescape(encodeURIComponent(u));const c=[];for(let l=0;l>5]>>>b%32&255,_=parseInt(g.charAt(v>>>4&15)+g.charAt(v&15),16);m.push(_)}return m}function r(p){return(p+64>>>9<<4)+14+1}function n(p,m){p[m>>5]|=128<>5]|=(p[g/8]&255)<>16)+(m>>16)+(y>>16)<<16|y&65535}function o(p,m){return p<>>32-m}function u(p,m,y,g,b,v){return s(o(s(s(m,p),s(g,v)),b),y)}function c(p,m,y,g,b,v,_){return u(m&y|~m&g,p,m,b,v,_)}function l(p,m,y,g,b,v,_){return u(m&g|y&~g,p,m,b,v,_)}function d(p,m,y,g,b,v,_){return u(m^y^g,p,m,b,v,_)}function f(p,m,y,g,b,v,_){return u(y^(m|~g),p,m,b,v,_)}var h=t;return sg.default=h,sg}var MV;function y6e(){if(MV)return ig;MV=1,Object.defineProperty(ig,"__esModule",{value:!0}),ig.default=void 0;var t=r(mte()),e=r(p6e());function r(s){return s&&s.__esModule?s:{default:s}}var a=(0,t.default)("v3",48,e.default);return ig.default=a,ig}var og={},ug={},FV;function m6e(){if(FV)return ug;FV=1,Object.defineProperty(ug,"__esModule",{value:!0}),ug.default=void 0;var e={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return ug.default=e,ug}var BV;function g6e(){if(BV)return og;BV=1,Object.defineProperty(og,"__esModule",{value:!0}),og.default=void 0;var t=n(m6e()),e=n(pte()),r=GT();function n(o){return o&&o.__esModule?o:{default:o}}function a(o,u,c){if(t.default.randomUUID&&!u&&!o)return t.default.randomUUID();o=o||{};const l=o.random||(o.rng||e.default)();if(l[6]=l[6]&15|64,l[8]=l[8]&63|128,u){c=c||0;for(let d=0;d<16;++d)u[c+d]=l[d];return u}return(0,r.unsafeStringify)(l)}var s=a;return og.default=s,og}var cg={},lg={},qV;function _6e(){if(qV)return lg;qV=1,Object.defineProperty(lg,"__esModule",{value:!0}),lg.default=void 0;function t(a,s,o,u){switch(a){case 0:return s&o^~s&u;case 1:return s^o^u;case 2:return s&o^s&u^o&u;case 3:return s^o^u}}function e(a,s){return a<>>32-s}function r(a){const s=[1518500249,1859775393,2400959708,3395469782],o=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof a=="string"){const d=unescape(encodeURIComponent(a));a=[];for(let f=0;f>>0;g=y,y=m,m=e(p,30)>>>0,p=h,h=_}o[0]=o[0]+h>>>0,o[1]=o[1]+p>>>0,o[2]=o[2]+m>>>0,o[3]=o[3]+y>>>0,o[4]=o[4]+g>>>0}return[o[0]>>24&255,o[0]>>16&255,o[0]>>8&255,o[0]&255,o[1]>>24&255,o[1]>>16&255,o[1]>>8&255,o[1]&255,o[2]>>24&255,o[2]>>16&255,o[2]>>8&255,o[2]&255,o[3]>>24&255,o[3]>>16&255,o[3]>>8&255,o[3]&255,o[4]>>24&255,o[4]>>16&255,o[4]>>8&255,o[4]&255]}var n=r;return lg.default=n,lg}var $V;function b6e(){if($V)return cg;$V=1,Object.defineProperty(cg,"__esModule",{value:!0}),cg.default=void 0;var t=r(mte()),e=r(_6e());function r(s){return s&&s.__esModule?s:{default:s}}var a=(0,t.default)("v5",80,e.default);return cg.default=a,cg}var dg={},UV;function v6e(){if(UV)return dg;UV=1,Object.defineProperty(dg,"__esModule",{value:!0}),dg.default=void 0;var t="00000000-0000-0000-0000-000000000000";return dg.default=t,dg}var fg={},kV;function w6e(){if(kV)return fg;kV=1,Object.defineProperty(fg,"__esModule",{value:!0}),fg.default=void 0;var t=e(zT());function e(a){return a&&a.__esModule?a:{default:a}}function r(a){if(!(0,t.default)(a))throw TypeError("Invalid UUID");return parseInt(a.slice(14,15),16)}var n=r;return fg.default=n,fg}var VV;function gte(){return VV||(VV=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return o.default}});var e=d(h6e()),r=d(y6e()),n=d(g6e()),a=d(b6e()),s=d(v6e()),o=d(w6e()),u=d(zT()),c=d(GT()),l=d(yte());function d(f){return f&&f.__esModule?f:{default:f}}}(kx)),kx}var hg={},HV;function WT(){if(HV)return hg;HV=1,Object.defineProperty(hg,"__esModule",{value:!0}),hg.orderTypes=void 0;const t=ju(),e=$f(),r=bl(),n=oi(),a=Rn();function s(l,d,f=!1,h,p){if(l===d)return 0;if(l===void 0)return-1;if(d===void 0)return 1;if(l.termType!==d.termType)return c[l.termType]"term"),cache:h??new t.LRUCache({max:1e3})},defaultTimeZone:{zoneHours:0,zoneMinutes:0}},g=new r.TermTransformer(y.superTypeProvider),b=g.transformLiteral(l),v=g.transformLiteral(d);try{return m.apply([b,v],y).typedValue?0:p.apply([b,v],y).typedValue?1:-1}catch{const _=u(b.dataType,v.dataType);return _!==0?_:u(b.str(),v.str())}}function u(l,d){return l===d?0:lS=>(0,y.bool)(!S.coerceEBV())).collect()},w={arity:1,overloads:(0,y.declare)(c.RegularOperator.UPLUS).numericConverter(()=>S=>S).collect()},E={arity:1,overloads:(0,y.declare)(c.RegularOperator.UMINUS).numericConverter(()=>S=>-S).collect()},O={arity:2,overloads:(0,y.declare)(c.RegularOperator.MULTIPLICATION).arithmetic(()=>(S,A)=>new t.BigNumber(S).times(A).toNumber()).collect()},L={arity:2,overloads:(0,y.declare)(c.RegularOperator.DIVISION).arithmetic(()=>(S,A)=>new t.BigNumber(S).div(A).toNumber()).onBinaryTyped([l.TypeURL.XSD_INTEGER,l.TypeURL.XSD_INTEGER],()=>(S,A)=>{if(A===0)throw new f.ExpressionError("Integer division by 0");return(0,y.decimal)(new t.BigNumber(S).div(A).toNumber())}).collect()},F={arity:2,overloads:(0,y.declare)(c.RegularOperator.ADDITION).arithmetic(()=>(S,A)=>new t.BigNumber(S).plus(A).toNumber()).set([l.TypeURL.XSD_DATE_TIME,l.TypeURL.XSD_DAY_TIME_DURATION],()=>([S,A])=>new o.DateTimeLiteral((0,p.addDurationToDateTime)(S.typedValue,(0,d.defaultedDurationRepresentation)(A.typedValue)))).copy({from:[l.TypeURL.XSD_DATE_TIME,l.TypeURL.XSD_DAY_TIME_DURATION],to:[l.TypeURL.XSD_DATE_TIME,l.TypeURL.XSD_YEAR_MONTH_DURATION]}).set([l.TypeURL.XSD_DATE,l.TypeURL.XSD_DAY_TIME_DURATION],()=>([S,A])=>new o.DateLiteral((0,p.addDurationToDateTime)((0,d.defaultedDateTimeRepresentation)(S.typedValue),(0,d.defaultedDurationRepresentation)(A.typedValue)))).copy({from:[l.TypeURL.XSD_DATE,l.TypeURL.XSD_DAY_TIME_DURATION],to:[l.TypeURL.XSD_DATE,l.TypeURL.XSD_YEAR_MONTH_DURATION]}).set([l.TypeURL.XSD_TIME,l.TypeURL.XSD_DAY_TIME_DURATION],()=>([S,A])=>new o.TimeLiteral((0,p.addDurationToDateTime)((0,d.defaultedDateTimeRepresentation)(S.typedValue),(0,d.defaultedDurationRepresentation)(A.typedValue)))).copy({from:[l.TypeURL.XSD_TIME,l.TypeURL.XSD_DAY_TIME_DURATION],to:[l.TypeURL.XSD_TIME,l.TypeURL.XSD_YEAR_MONTH_DURATION]}).collect()},x={arity:2,overloads:(0,y.declare)(c.RegularOperator.SUBTRACTION).arithmetic(()=>(S,A)=>new t.BigNumber(S).minus(A).toNumber()).set([l.TypeURL.XSD_DATE_TIME,l.TypeURL.XSD_DATE_TIME],({defaultTimeZone:S})=>([A,C])=>new o.DayTimeDurationLiteral((0,p.elapsedDuration)(A.typedValue,C.typedValue,S))).copy({from:[l.TypeURL.XSD_DATE_TIME,l.TypeURL.XSD_DATE_TIME],to:[l.TypeURL.XSD_DATE,l.TypeURL.XSD_DATE]}).copy({from:[l.TypeURL.XSD_DATE_TIME,l.TypeURL.XSD_DATE_TIME],to:[l.TypeURL.XSD_TIME,l.TypeURL.XSD_TIME]}).set([l.TypeURL.XSD_DATE_TIME,l.TypeURL.XSD_DAY_TIME_DURATION],()=>([S,A])=>new o.DateTimeLiteral((0,p.addDurationToDateTime)(S.typedValue,(0,d.defaultedDurationRepresentation)((0,d.negateDuration)(A.typedValue))))).copy({from:[l.TypeURL.XSD_DATE_TIME,l.TypeURL.XSD_DAY_TIME_DURATION],to:[l.TypeURL.XSD_DATE_TIME,l.TypeURL.XSD_YEAR_MONTH_DURATION]}).set([l.TypeURL.XSD_DATE,l.TypeURL.XSD_DAY_TIME_DURATION],()=>([S,A])=>new o.DateLiteral((0,p.addDurationToDateTime)((0,d.defaultedDateTimeRepresentation)(S.typedValue),(0,d.defaultedDurationRepresentation)((0,d.negateDuration)(A.typedValue))))).copy({from:[l.TypeURL.XSD_DATE,l.TypeURL.XSD_DAY_TIME_DURATION],to:[l.TypeURL.XSD_DATE,l.TypeURL.XSD_YEAR_MONTH_DURATION]}).set([l.TypeURL.XSD_TIME,l.TypeURL.XSD_DAY_TIME_DURATION],()=>([S,A])=>new o.TimeLiteral((0,p.addDurationToDateTime)((0,d.defaultedDateTimeRepresentation)(S.typedValue),(0,d.defaultedDurationRepresentation)((0,d.negateDuration)(A.typedValue))))).collect()},P={arity:2,overloads:(0,y.declare)(c.RegularOperator.EQUAL).numberTest(()=>(S,A)=>S===A).stringTest(()=>(S,A)=>S.localeCompare(A)===0).set([l.TypeURL.RDF_LANG_STRING,l.TypeURL.RDF_LANG_STRING],()=>([S,A])=>(0,y.bool)(S.str()===A.str()&&S.language===A.language)).set([l.TypeAlias.SPARQL_STRINGLY,l.TypeAlias.SPARQL_STRINGLY],()=>()=>(0,y.bool)(!1)).booleanTest(()=>(S,A)=>S===A).dateTimeTest(({defaultTimeZone:S})=>(A,C)=>(0,d.toUTCDate)(A,S).getTime()===(0,d.toUTCDate)(C,S).getTime()).copy({from:[l.TypeURL.XSD_DATE_TIME,l.TypeURL.XSD_DATE_TIME],to:[l.TypeURL.XSD_DATE,l.TypeURL.XSD_DATE]}).set(["quad","quad"],S=>([A,C])=>{const J=new m.RegularFunction(l.RegularOperator.EQUAL,P);return(0,y.bool)(J.apply([A.subject,C.subject],S).coerceEBV()&&J.apply([A.predicate,C.predicate],S).coerceEBV()&&J.apply([A.object,C.object],S).coerceEBV())},!1).set(["term","term"],()=>([S,A])=>(0,y.bool)(j(S,A)),!1).set([l.TypeURL.XSD_DURATION,l.TypeURL.XSD_DURATION],()=>([S,A])=>(0,y.bool)((0,d.yearMonthDurationsToMonths)((0,d.defaultedYearMonthDurationRepresentation)(S.typedValue))===(0,d.yearMonthDurationsToMonths)((0,d.defaultedYearMonthDurationRepresentation)(A.typedValue))&&(0,d.dayTimeDurationsToSeconds)((0,d.defaultedDayTimeDurationRepresentation)(S.typedValue))===(0,d.dayTimeDurationsToSeconds)((0,d.defaultedDayTimeDurationRepresentation)(A.typedValue)))).set([l.TypeURL.XSD_TIME,l.TypeURL.XSD_TIME],({defaultTimeZone:S})=>([A,C])=>(0,y.bool)((0,d.toUTCDate)((0,d.defaultedDateTimeRepresentation)(A.typedValue),S).getTime()===(0,d.toUTCDate)((0,d.defaultedDateTimeRepresentation)(C.typedValue),S).getTime())).collect()};function j(S,A){const C=S.toRDF(),J=A.toRDF(),ie=C.equals(J);if(!ie&&C.termType==="Literal"&&J.termType==="Literal")throw new f.RDFEqualTypeError([S,A]);return ie}const N={arity:2,overloads:(0,y.declare)(c.RegularOperator.NOT_EQUAL).set(["term","term"],S=>([A,C])=>(0,y.bool)(!b.regularFunctions[c.RegularOperator.EQUAL].apply([A,C],S).typedValue)).collect()},V={arity:2,overloads:(0,y.declare)(c.RegularOperator.LT).numberTest(()=>(S,A)=>S(S,A)=>S.localeCompare(A)===-1).booleanTest(()=>(S,A)=>S([S,A])=>(0,y.bool)((0,h.orderTypes)(S.toRDF(),A.toRDF(),!0)===-1),!1).dateTimeTest(({defaultTimeZone:S})=>(A,C)=>(0,d.toUTCDate)(A,S).getTime()<(0,d.toUTCDate)(C,S).getTime()).copy({from:[l.TypeURL.XSD_DATE_TIME,l.TypeURL.XSD_DATE_TIME],to:[l.TypeURL.XSD_DATE,l.TypeURL.XSD_DATE]}).set([l.TypeURL.XSD_YEAR_MONTH_DURATION,l.TypeURL.XSD_YEAR_MONTH_DURATION],()=>([S,A])=>(0,y.bool)((0,d.yearMonthDurationsToMonths)((0,d.defaultedYearMonthDurationRepresentation)(S.typedValue))<(0,d.yearMonthDurationsToMonths)((0,d.defaultedYearMonthDurationRepresentation)(A.typedValue)))).set([l.TypeURL.XSD_DAY_TIME_DURATION,l.TypeURL.XSD_DAY_TIME_DURATION],()=>([S,A])=>(0,y.bool)((0,d.dayTimeDurationsToSeconds)((0,d.defaultedDayTimeDurationRepresentation)(S.typedValue))<(0,d.dayTimeDurationsToSeconds)((0,d.defaultedDayTimeDurationRepresentation)(A.typedValue)))).set([l.TypeURL.XSD_TIME,l.TypeURL.XSD_TIME],({defaultTimeZone:S})=>([A,C])=>(0,y.bool)((0,d.toUTCDate)((0,d.defaultedDateTimeRepresentation)(A.typedValue),S).getTime()<(0,d.toUTCDate)((0,d.defaultedDateTimeRepresentation)(C.typedValue),S).getTime())).collect()},$={arity:2,overloads:(0,y.declare)(c.RegularOperator.GT).set(["term","term"],S=>([A,C])=>b.regularFunctions[c.RegularOperator.LT].apply([C,A],S)).collect()},q={arity:2,overloads:(0,y.declare)(c.RegularOperator.LTE).set(["term","term"],S=>([A,C])=>(0,y.bool)(b.regularFunctions[c.RegularOperator.LT].apply([A,C],S).typedValue||b.regularFunctions[c.RegularOperator.EQUAL].apply([A,C],S).typedValue)).collect()},H={arity:2,overloads:(0,y.declare)(c.RegularOperator.GTE).set(["term","term"],S=>([A,C])=>b.regularFunctions[c.RegularOperator.LTE].apply([C,A],S)).collect()},X={arity:1,overloads:(0,y.declare)(c.RegularOperator.IS_IRI).onTerm1(()=>S=>(0,y.bool)(S.termType==="namedNode")).collect()},Y={arity:1,overloads:(0,y.declare)(c.RegularOperator.IS_BLANK).onTerm1(()=>S=>(0,y.bool)(S.termType==="blankNode")).collect()},he={arity:1,overloads:(0,y.declare)(c.RegularOperator.IS_LITERAL).onTerm1(()=>S=>(0,y.bool)(S.termType==="literal")).collect()},Te={arity:1,overloads:(0,y.declare)(c.RegularOperator.IS_NUMERIC).onNumeric1(()=>()=>(0,y.bool)(!0)).onTerm1(()=>()=>(0,y.bool)(!1)).collect()},Ne={arity:1,overloads:(0,y.declare)(c.RegularOperator.STR).onTerm1(()=>S=>(0,y.string)(S.str())).collect()},$e={arity:1,overloads:(0,y.declare)(c.RegularOperator.LANG).onLiteral1(()=>S=>(0,y.string)(S.language??"")).collect()},de={arity:1,overloads:(0,y.declare)(c.RegularOperator.DATATYPE).onLiteral1(()=>S=>new o.NamedNode(S.dataType)).collect()},ce={arity:1,overloads:(0,y.declare)(c.RegularOperator.IRI).set(["namedNode"],S=>A=>{const C=A[0],J=(0,n.resolve)(C.str(),S.baseIRI??"");return new o.NamedNode(J)}).onString1(S=>A=>{const C=(0,n.resolve)(A.str(),S.baseIRI??"");return new o.NamedNode(C)}).collect()},xe={arity:2,overloads:(0,y.declare)(c.RegularOperator.STRDT).set([l.TypeURL.XSD_STRING,"namedNode"],({superTypeProvider:S})=>([A,C])=>{const J=v.literal(A.typedValue,v.namedNode(C.value));return new u.TermTransformer(S).transformLiteral(J)}).collect()},Pe={arity:2,overloads:(0,y.declare)(c.RegularOperator.STRLANG).onBinaryTyped([l.TypeURL.XSD_STRING,l.TypeURL.XSD_STRING],()=>(S,A)=>new o.LangStringLiteral(S,A.toLowerCase())).collect()},we={arity:0,overloads:(0,y.declare)(c.RegularOperator.UUID).set([],()=>()=>new o.NamedNode(`urn:uuid:${s.v4()}`)).collect()},Re={arity:0,overloads:(0,y.declare)(c.RegularOperator.STRUUID).set([],()=>()=>(0,y.string)(s.v4())).collect()},Se={arity:1,overloads:(0,y.declare)(c.RegularOperator.STRLEN).onStringly1(()=>S=>(0,y.integer)([...S.typedValue].length)).collect()},z={arity:[2,3],overloads:(0,y.declare)(c.RegularOperator.SUBSTR).onBinaryTyped([l.TypeURL.XSD_STRING,l.TypeURL.XSD_INTEGER],()=>(S,A)=>(0,y.string)([...S].slice(A-1).join(""))).onBinary([l.TypeURL.RDF_LANG_STRING,l.TypeURL.XSD_INTEGER],()=>(S,A)=>{const C=[...S.typedValue].slice(A.typedValue-1).join("");return(0,y.langString)(C,S.language)}).onTernaryTyped([l.TypeURL.XSD_STRING,l.TypeURL.XSD_INTEGER,l.TypeURL.XSD_INTEGER],()=>(S,A,C)=>(0,y.string)([...S].slice(A-1,C+A-1).join(""))).onTernary([l.TypeURL.RDF_LANG_STRING,l.TypeURL.XSD_INTEGER,l.TypeURL.XSD_INTEGER],()=>(S,A,C)=>{const J=[...S.typedValue].slice(A.typedValue-1,C.typedValue+A.typedValue-1).join("");return(0,y.langString)(J,S.language)}).collect()},M={arity:1,overloads:(0,y.declare)(c.RegularOperator.UCASE).onString1Typed(()=>S=>(0,y.string)(S.toUpperCase())).onLangString1(()=>S=>(0,y.langString)(S.typedValue.toUpperCase(),S.language)).collect()},k={arity:1,overloads:(0,y.declare)(c.RegularOperator.LCASE).onString1Typed(()=>S=>(0,y.string)(S.toLowerCase())).onLangString1(()=>S=>(0,y.langString)(S.typedValue.toLowerCase(),S.language)).collect()},T={arity:2,overloads:(0,y.declare)(c.RegularOperator.STRSTARTS).onBinaryTyped([l.TypeAlias.SPARQL_STRINGLY,l.TypeURL.XSD_STRING],()=>(S,A)=>(0,y.bool)(S.startsWith(A))).onBinary([l.TypeURL.RDF_LANG_STRING,l.TypeURL.RDF_LANG_STRING],()=>(S,A)=>{if(S.language!==A.language)throw new f.IncompatibleLanguageOperation(S,A);return(0,y.bool)(S.typedValue.startsWith(A.typedValue))}).collect()},R={arity:2,overloads:(0,y.declare)(c.RegularOperator.STRENDS).onBinaryTyped([l.TypeAlias.SPARQL_STRINGLY,l.TypeURL.XSD_STRING],()=>(S,A)=>(0,y.bool)(S.endsWith(A))).onBinary([l.TypeURL.RDF_LANG_STRING,l.TypeURL.RDF_LANG_STRING],()=>(S,A)=>{if(S.language!==A.language)throw new f.IncompatibleLanguageOperation(S,A);return(0,y.bool)(S.typedValue.endsWith(A.typedValue))}).collect()},U={arity:2,overloads:(0,y.declare)(c.RegularOperator.CONTAINS).onBinaryTyped([l.TypeAlias.SPARQL_STRINGLY,l.TypeURL.XSD_STRING],()=>(S,A)=>(0,y.bool)(S.includes(A))).onBinary([l.TypeURL.RDF_LANG_STRING,l.TypeURL.RDF_LANG_STRING],()=>(S,A)=>{if(S.language!==A.language)throw new f.IncompatibleLanguageOperation(S,A);return(0,y.bool)(S.typedValue.includes(A.typedValue))}).collect()},G={arity:2,overloads:(0,y.declare)(c.RegularOperator.STRBEFORE).onBinaryTyped([l.TypeURL.XSD_STRING,l.TypeURL.XSD_STRING],()=>(S,A)=>(0,y.string)(S.slice(0,Math.max(0,S.indexOf(A))))).onBinary([l.TypeURL.RDF_LANG_STRING,l.TypeURL.XSD_STRING],()=>(S,A)=>{const[C,J]=[S.typedValue,A.typedValue],ie=S.typedValue.slice(0,Math.max(0,C.indexOf(J)));return ie||!J?(0,y.langString)(ie,S.language):(0,y.string)(ie)}).onBinary([l.TypeURL.RDF_LANG_STRING,l.TypeURL.RDF_LANG_STRING],()=>(S,A)=>{if(S.language!==A.language)throw new f.IncompatibleLanguageOperation(S,A);const[C,J]=[S.typedValue,A.typedValue],ie=S.typedValue.slice(0,Math.max(0,C.indexOf(J)));return ie||!J?(0,y.langString)(ie,S.language):(0,y.string)(ie)}).collect()},Q={arity:2,overloads:(0,y.declare)(c.RegularOperator.STRAFTER).onBinaryTyped([l.TypeURL.XSD_STRING,l.TypeURL.XSD_STRING],()=>(S,A)=>(0,y.string)(S.slice(S.indexOf(A)).slice(A.length))).onBinary([l.TypeURL.RDF_LANG_STRING,l.TypeURL.XSD_STRING],()=>(S,A)=>{const[C,J]=[S.typedValue,A.typedValue],ie=C.slice(C.indexOf(J)).slice(J.length);return ie||!J?(0,y.langString)(ie,S.language):(0,y.string)(ie)}).onBinary([l.TypeURL.RDF_LANG_STRING,l.TypeURL.RDF_LANG_STRING],()=>(S,A)=>{if(S.language!==A.language)throw new f.IncompatibleLanguageOperation(S,A);const[C,J]=[S.typedValue,A.typedValue],ie=C.slice(C.indexOf(J)).slice(J.length);return ie||!J?(0,y.langString)(ie,S.language):(0,y.string)(ie)}).collect()},Z={arity:1,overloads:(0,y.declare)(c.RegularOperator.ENCODE_FOR_URI).onStringly1Typed(()=>S=>(0,y.string)(encodeURI(S))).collect()},se={arity:2,overloads:(0,y.declare)(c.RegularOperator.LANG_MATCHES).onBinaryTyped([l.TypeURL.XSD_STRING,l.TypeURL.XSD_STRING],()=>(S,A)=>(0,y.bool)(g.langMatches(S,A))).collect()};function re(){return(S,A)=>(0,y.bool)(g.matches(S,A))}function le(){return(S,A,C)=>(0,y.bool)(g.matches(S,A,C))}const pe={arity:[2,3],overloads:(0,y.declare)(c.RegularOperator.REGEX).onBinaryTyped([l.TypeAlias.SPARQL_STRINGLY,l.TypeURL.XSD_STRING],re).onTernaryTyped([l.TypeAlias.SPARQL_STRINGLY,l.TypeURL.XSD_STRING,l.TypeURL.XSD_STRING],le).collect()},_e={arity:[3,4],overloads:(0,y.declare)(c.RegularOperator.REPLACE).onTernaryTyped([l.TypeURL.XSD_STRING,l.TypeURL.XSD_STRING,l.TypeURL.XSD_STRING],()=>(S,A,C)=>(0,y.string)(g.replace(S,A,C))).set([l.TypeURL.RDF_LANG_STRING,l.TypeURL.XSD_STRING,l.TypeURL.XSD_STRING],()=>([S,A,C])=>{const J=g.replace(S.typedValue,A.typedValue,C.typedValue);return(0,y.langString)(J,S.language)}).onQuaternaryTyped([l.TypeURL.XSD_STRING,l.TypeURL.XSD_STRING,l.TypeURL.XSD_STRING,l.TypeURL.XSD_STRING],()=>(S,A,C,J)=>(0,y.string)(g.replace(S,A,C,J))).set([l.TypeURL.RDF_LANG_STRING,l.TypeURL.XSD_STRING,l.TypeURL.XSD_STRING,l.TypeURL.XSD_STRING],()=>([S,A,C,J])=>{const ie=g.replace(S.typedValue,A.typedValue,C.typedValue,J.typedValue);return(0,y.langString)(ie,S.language)}).collect()},Ie={arity:1,overloads:(0,y.declare)(c.RegularOperator.ABS).numericConverter(()=>S=>Math.abs(S)).collect()},Ee={arity:1,overloads:(0,y.declare)(c.RegularOperator.ROUND).numericConverter(()=>S=>Math.round(S)).collect()},Me={arity:1,overloads:(0,y.declare)(c.RegularOperator.CEIL).numericConverter(()=>S=>Math.ceil(S)).collect()},Ce={arity:1,overloads:(0,y.declare)(c.RegularOperator.FLOOR).numericConverter(()=>S=>Math.floor(S)).collect()},ke={arity:0,overloads:(0,y.declare)(c.RegularOperator.RAND).set([],()=>()=>(0,y.double)(Math.random())).collect()},qe={arity:0,overloads:(0,y.declare)(c.RegularOperator.NOW).set([],S=>()=>new o.DateTimeLiteral((0,d.toDateTimeRepresentation)({date:S.now,timeZone:S.defaultTimeZone}))).collect()},W={arity:1,overloads:(0,y.declare)(c.RegularOperator.YEAR).onDateTime1(()=>S=>(0,y.integer)(S.typedValue.year)).set([l.TypeURL.XSD_DATE],()=>([S])=>(0,y.integer)(S.typedValue.year)).collect()},D={arity:1,overloads:(0,y.declare)(c.RegularOperator.MONTH).onDateTime1(()=>S=>(0,y.integer)(S.typedValue.month)).set([l.TypeURL.XSD_DATE],()=>([S])=>(0,y.integer)(S.typedValue.month)).collect()},B={arity:1,overloads:(0,y.declare)(c.RegularOperator.DAY).onDateTime1(()=>S=>(0,y.integer)(S.typedValue.day)).set([l.TypeURL.XSD_DATE],()=>([S])=>(0,y.integer)(S.typedValue.day)).collect()},K={arity:1,overloads:(0,y.declare)(c.RegularOperator.HOURS).onDateTime1(()=>S=>(0,y.integer)(S.typedValue.hours)).set([l.TypeURL.XSD_TIME],()=>([S])=>(0,y.integer)(S.typedValue.hours)).collect()},ne={arity:1,overloads:(0,y.declare)(c.RegularOperator.MINUTES).onDateTime1(()=>S=>(0,y.integer)(S.typedValue.minutes)).set([l.TypeURL.XSD_TIME],()=>([S])=>(0,y.integer)(S.typedValue.minutes)).collect()},fe={arity:1,overloads:(0,y.declare)(c.RegularOperator.SECONDS).onDateTime1(()=>S=>(0,y.decimal)(S.typedValue.seconds)).set([l.TypeURL.XSD_TIME],()=>([S])=>(0,y.integer)(S.typedValue.seconds)).collect()},ge={arity:1,overloads:(0,y.declare)(c.RegularOperator.TIMEZONE).onDateTime1(()=>S=>{const A={hours:S.typedValue.zoneHours,minutes:S.typedValue.zoneMinutes};if(A.hours===void 0&&A.minutes===void 0)throw new f.InvalidTimezoneCall(S.str());return new o.DayTimeDurationLiteral(A)}).copy({from:[l.TypeURL.XSD_DATE_TIME],to:[l.TypeURL.XSD_DATE]}).copy({from:[l.TypeURL.XSD_DATE_TIME],to:[l.TypeURL.XSD_TIME]}).collect()},Le={arity:1,overloads:(0,y.declare)(c.RegularOperator.TZ).onDateTime1(()=>S=>(0,y.string)((0,d.extractRawTimeZone)(S.str()))).copy({from:[l.TypeURL.XSD_DATE_TIME],to:[l.TypeURL.XSD_DATE]}).copy({from:[l.TypeURL.XSD_DATE_TIME],to:[l.TypeURL.XSD_TIME]}).collect()},ee={arity:1,overloads:(0,y.declare)(c.RegularOperator.MD5).onString1Typed(()=>S=>(0,y.string)((0,a.hash)(S))).collect()},Oe={arity:1,overloads:(0,y.declare)(c.RegularOperator.SHA1).onString1Typed(()=>S=>(0,y.string)((0,e.sha1)().update(S).digest("hex"))).collect()},De={arity:1,overloads:(0,y.declare)(c.RegularOperator.SHA256).onString1Typed(()=>S=>(0,y.string)((0,e.sha256)().update(S).digest("hex"))).collect()},Ue={arity:1,overloads:(0,y.declare)(c.RegularOperator.SHA384).onString1Typed(()=>S=>(0,y.string)((0,e.sha384)().update(S).digest("hex"))).collect()},Ye={arity:1,overloads:(0,y.declare)(c.RegularOperator.SHA512).onString1Typed(()=>S=>(0,y.string)((0,e.sha512)().update(S).digest("hex"))).collect()},ut={arity:3,overloads:(0,y.declare)(c.RegularOperator.TRIPLE).onTerm3(S=>(...A)=>new o.Quad(v.quad(A[0].toRDF(),A[1].toRDF(),A[2].toRDF()),S.superTypeProvider)).collect()},at={arity:1,overloads:(0,y.declare)(c.RegularOperator.SUBJECT).onQuad1(()=>S=>S.subject).collect()},ct={arity:1,overloads:(0,y.declare)(c.RegularOperator.PREDICATE).onQuad1(()=>S=>S.predicate).collect()},ht={arity:1,overloads:(0,y.declare)(c.RegularOperator.OBJECT).onQuad1(()=>S=>S.object).collect()},te={arity:1,overloads:(0,y.declare)(c.RegularOperator.IS_TRIPLE).onTerm1(()=>S=>(0,y.bool)(S.termType==="quad")).collect()};return eg.definitions={"!":_,uplus:w,uminus:E,"*":O,"/":L,"+":F,"-":x,"=":P,"!=":N,"<":V,">":$,"<=":q,">=":H,isiri:X,isuri:X,isblank:Y,isliteral:he,isnumeric:Te,str:Ne,lang:$e,datatype:de,iri:ce,uri:ce,strdt:xe,strlang:Pe,uuid:we,struuid:Re,strlen:Se,substr:z,ucase:M,lcase:k,strstarts:T,strends:R,contains:U,strbefore:G,strafter:Q,encode_for_uri:Z,langmatches:se,regex:pe,replace:_e,abs:Ie,round:Ee,ceil:Me,floor:Ce,rand:ke,now:qe,year:W,month:D,day:B,hours:K,minutes:ne,seconds:fe,timezone:ge,tz:Le,md5:ee,sha1:Oe,sha256:De,sha384:Ue,sha512:Ye,triple:ut,subject:at,predicate:ct,object:ht,istriple:te},eg}var pg={},GV;function E6e(){if(GV)return pg;GV=1,Object.defineProperty(pg,"__esModule",{value:!0}),pg.specialDefinitions=void 0;const t=gte(),e=ki(),r=oi(),n=Rn(),a=Os(),s=$f(),o={arity:1,async applyAsync({args:L,mapping:F}){return u({args:L,mapping:F})},applySynchronously({args:L,mapping:F}){return u({args:L,mapping:F})}};function u({args:L,mapping:F}){const x=L[0];if(x.expressionType!==e.ExpressionType.Variable)throw new n.InvalidArgumentTypes(L,r.SpecialOperator.BOUND);const P=F.has((0,a.expressionToVar)(x));return(0,a.bool)(P)}const c={arity:3,async applyAsync({args:L,mapping:F,evaluate:x}){const j=(await x(L[0],F)).coerceEBV();return x(j?L[1]:L[2],F)},applySynchronously({args:L,mapping:F,evaluate:x}){const j=x(L[0],F).coerceEBV();return x(j?L[1]:L[2],F)}},l={arity:Number.POSITIVE_INFINITY,async applyAsync({args:L,mapping:F,evaluate:x}){const P=[];for(const j of L)try{return await x(j,F)}catch(N){P.push(N)}throw new n.CoalesceError(P)},applySynchronously({args:L,mapping:F,evaluate:x}){const P=[];for(const j of L)try{return x(j,F)}catch(N){P.push(N)}throw new n.CoalesceError(P)}},d={arity:2,async applyAsync({args:L,mapping:F,evaluate:x}){const[P,j]=L;try{if((await x(P,F)).coerceEBV())return(0,a.bool)(!0);const q=(await x(j,F)).coerceEBV();return(0,a.bool)(q)}catch(N){if(!(await x(j,F)).coerceEBV())throw N;return(0,a.bool)(!0)}},applySynchronously({args:L,mapping:F,evaluate:x}){const[P,j]=L;try{if(x(P,F).coerceEBV())return(0,a.bool)(!0);const q=x(j,F).coerceEBV();return(0,a.bool)(q)}catch(N){if(!x(j,F).coerceEBV())throw N;return(0,a.bool)(!0)}}},f={arity:2,async applyAsync({args:L,mapping:F,evaluate:x}){const[P,j]=L;try{if(!(await x(P,F)).coerceEBV())return(0,a.bool)(!1);const q=(await x(j,F)).coerceEBV();return(0,a.bool)(q)}catch(N){if((await x(j,F)).coerceEBV())throw N;return(0,a.bool)(!1)}},applySynchronously({args:L,mapping:F,evaluate:x}){const[P,j]=L;try{if(!x(P,F).coerceEBV())return(0,a.bool)(!1);const q=x(j,F).coerceEBV();return(0,a.bool)(q)}catch(N){if(x(j,F).coerceEBV())throw N;return(0,a.bool)(!1)}}},h={arity:2,async applyAsync({args:L,mapping:F,evaluate:x}){const[P,j]=L.map($=>x($,F)),[N,V]=await Promise.all([P,j]);return(0,a.bool)(N.toRDF().equals(V.toRDF()))},applySynchronously({args:L,mapping:F,evaluate:x}){const[P,j]=L.map(N=>x(N,F));return(0,a.bool)(P.toRDF().equals(j.toRDF()))}},p={arity:Number.POSITIVE_INFINITY,checkArity(L){return L.length>0},async applyAsync(L){const{args:F,mapping:x,evaluate:P}=L,[j,...N]=F,V=await P(j,x);return m(V,{...L,args:N},[])},applySynchronously(L){const{args:F,mapping:x,evaluate:P}=L,[j,...N]=F,V=P(j,x);return y(V,{...L,args:N},[])}};async function m(L,F,x){const{args:P,mapping:j,evaluate:N}=F;if(P.length===0)return x.every($=>!$)?(0,a.bool)(!1):Promise.reject(new n.InError(x));try{const V=P.shift(),$=await N(V,j);return s.regularFunctions[r.RegularOperator.EQUAL].apply([L,$],F).typedValue?(0,a.bool)(!0):m(L,F,[...x,!1])}catch(V){return m(L,F,[...x,V])}}function y(L,F,x){const{args:P,mapping:j,evaluate:N}=F;if(P.length===0){if(x.every($=>!$))return(0,a.bool)(!1);throw new n.InError(x)}try{const V=P.shift(),$=N(V,j);return s.regularFunctions[r.RegularOperator.EQUAL].apply([L,$],F).typedValue?(0,a.bool)(!0):y(L,F,[...x,!1])}catch(V){return y(L,F,[...x,V])}}const g={arity:Number.POSITIVE_INFINITY,checkArity(L){return L.length>0},async applyAsync(L){const x=await s.specialFunctions[r.SpecialOperator.IN].applyAsync(L);return(0,a.bool)(!x.typedValue)},applySynchronously(L){const x=s.specialFunctions[r.SpecialOperator.IN].applySynchronously(L);return(0,a.bool)(!x.typedValue)}},b=(0,a.declare)(r.SpecialOperator.CONCAT).onStringly1(()=>L=>L).collect(),v={arity:Number.POSITIVE_INFINITY,async applyAsync(L){const{args:F,mapping:x,evaluate:P,functionArgumentsCache:j,superTypeProvider:N}=L,V=F.map(async Y=>P(Y,x)).map(async Y=>{const he=b.search([await Y],N,j);if(!he)throw new n.InvalidArgumentTypes(F,r.SpecialOperator.CONCAT);return he(L)([await Y])}),$=await Promise.all(V),H=$.map(Y=>Y.typedValue).join(""),X=_($)?$[0].language:void 0;return X?(0,a.langString)(H,X):(0,a.string)(H)},applySynchronously(L){const{args:F,mapping:x,evaluate:P,superTypeProvider:j,functionArgumentsCache:N}=L,V=F.map(X=>P(X,x)).map(X=>{const Y=b.search([X],j,N);if(!Y)throw new n.InvalidArgumentTypes(F,r.SpecialOperator.CONCAT);return Y(L)([X])}),q=V.map(X=>X.typedValue).join(""),H=_(V)?V[0].language:void 0;return H?(0,a.langString)(q,H):(0,a.string)(q)}};function _(L){return L.length>0&&L.every(F=>F.language===L[0].language)}const w=(0,a.declare)(r.SpecialOperator.BNODE).onString1(()=>L=>L).collect(),E={arity:Number.POSITIVE_INFINITY,checkArity(L){return L.length===0||L.length===1},async applyAsync(L){const{args:F,mapping:x,evaluate:P,superTypeProvider:j,functionArgumentsCache:N}=L,V=F.length===1?await P(F[0],x):void 0;let $;if(V){const q=w.search([V],j,N);if(!q)throw new n.InvalidArgumentTypes(F,r.SpecialOperator.BNODE);$=q(L)([V]).str()}if(L.bnode){const q=await L.bnode($);return new e.BlankNode(q)}return O($)},applySynchronously(L){const{args:F,mapping:x,evaluate:P,superTypeProvider:j,functionArgumentsCache:N}=L,V=F.length===1?P(F[0],x):void 0;let $;if(V){const q=w.search([V],j,N);if(!q)throw new n.InvalidArgumentTypes(F,r.SpecialOperator.BNODE);$=q(L)([V]).str()}if(L.bnode){const q=L.bnode($);return new e.BlankNode(q)}return O($)}};function O(L){return new e.BlankNode(L??t.v4())}return pg.specialDefinitions={bound:o,if:c,coalesce:l,"&&":f,"||":d,sameterm:h,in:p,notin:g,concat:v,bnode:E},pg}var WV;function $f(){return WV||(WV=1,function(t){var e=I&&I.__createBinding||(Object.create?function(c,l,d,f){f===void 0&&(f=d);var h=Object.getOwnPropertyDescriptor(l,d);(!h||("get"in h?!l.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return l[d]}}),Object.defineProperty(c,f,h)}:function(c,l,d,f){f===void 0&&(f=d),c[f]=l[d]}),r=I&&I.__exportStar||function(c,l){for(var d in c)d!=="default"&&!Object.prototype.hasOwnProperty.call(l,d)&&e(l,c,d)};Object.defineProperty(t,"__esModule",{value:!0}),t.OverloadTree=t.namedFunctions=t.specialFunctions=t.regularFunctions=void 0;const n=uN(),a=c6e(),s=T6e(),o=E6e();r(uN(),t),t.regularFunctions=Object.fromEntries(Object.entries(s.definitions).map(([c,l])=>[c,new n.RegularFunction(c,l)])),t.specialFunctions=Object.fromEntries(Object.entries(o.specialDefinitions).map(([c,l])=>[c,new n.SpecialFunction(c,l)])),t.namedFunctions=Object.fromEntries(Object.entries(a.namedDefinitions).map(([c,l])=>[c,new n.NamedFunction(c,l)]));var u=hte();Object.defineProperty(t,"OverloadTree",{enumerable:!0,get:function(){return u.OverloadTree}})}(qx)),qx}var KV;function _te(){if(KV)return km;KV=1,Object.defineProperty(km,"__esModule",{value:!0}),km.AlgebraTransformer=void 0;const t=xt(),e=ki(),r=$f(),n=oi(),a=Rn(),s=Rn(),o=bl();let u=class j_ extends o.TermTransformer{constructor(l){super(l.superTypeProvider),this.algebraConfig=l,this.creatorConfig={type:l.type,creator:l.creator}}transformAlgebra(l){const d=t.Algebra.expressionTypes;switch(l.expressionType){case d.TERM:return this.transformTerm(l);case d.OPERATOR:return this.transformOperator(l);case d.NAMED:return this.transformNamed(l);case d.EXISTENCE:return j_.transformExistence(l);case d.AGGREGATE:return j_.transformAggregate(l);case d.WILDCARD:return j_.transformWildcard(l)}}static transformWildcard(l){return new e.NamedNode(l.wildcard.value)}transformOperator(l){const d=l.operator.toLowerCase();if(n.SpecialOperators.has(d)){const m=d,y=l.args.map(b=>this.transformAlgebra(b)),g=r.specialFunctions[m];if(!g.checkArity(y))throw new a.InvalidArity(y,m);return new e.SpecialOperator(y,g.applyAsync,g.applySynchronously)}if(!n.Operators.has(d))throw new a.UnknownOperator(l.operator);const f=d,h=l.args.map(m=>this.transformAlgebra(m)),p=r.regularFunctions[f];if(!j_.hasCorrectArity(h,p.arity))throw new a.InvalidArity(h,f);return new e.Operator(h,m=>p.apply(m,this.algebraConfig))}wrapSyncFunction(l,d){return f=>{try{const h=l(f.map(p=>p.toRDF()));return this.transformRDFTermUnsafe(h)}catch(h){throw new s.ExtensionFunctionError(d,h)}}}wrapAsyncFunction(l,d){return async f=>{try{const h=await l(f.map(p=>p.toRDF()));return this.transformRDFTermUnsafe(h)}catch(h){throw new s.ExtensionFunctionError(d,h)}}}transformNamed(l){const d=l.name.value,f=l.args.map(h=>this.transformAlgebra(h));if(n.NamedOperators.has(d)){const h=l.name.value,p=r.namedFunctions[h];return new e.Named(l.name,f,m=>p.apply(m,this.algebraConfig))}if(this.creatorConfig.type==="sync"){const h=this.creatorConfig.creator(l.name);if(h){const p=this.wrapSyncFunction(h,l.name.value);return new e.SyncExtension(l.name,f,p)}}else{const h=this.creatorConfig.creator(l.name);if(h){const p=this.wrapAsyncFunction(h,l.name.value);return new e.AsyncExtension(l.name,f,p)}}throw new a.UnknownNamedOperator(l.name.value)}static hasCorrectArity(l,d){return Array.isArray(d)?d.includes(l.length):l.length===d}static transformAggregate(l){const d=l.aggregator;return new e.Aggregate(d,l)}static transformExistence(l){return new e.Existence(l)}};return km.AlgebraTransformer=u,km}var yg={},mg={},JV;function bte(){if(JV)return mg;JV=1,Object.defineProperty(mg,"__esModule",{value:!0}),mg.BaseExpressionEvaluator=void 0;const t=Os(),e=Rn();let r=class{constructor(a){this.termTransformer=a}term(a){return a}variable(a,s){const o=s.get((0,t.expressionToVar)(a));if(!o)throw new e.UnboundVariableError(a.name,s);return this.termTransformer.transformRDFTermUnsafe(o)}};return mg.BaseExpressionEvaluator=r,mg}var XV;function A6e(){if(XV)return yg;XV=1,Object.defineProperty(yg,"__esModule",{value:!0}),yg.AsyncRecursiveEvaluator=void 0;const t=ki(),e=bl(),r=Rn(),n=bte();let a=class extends n.BaseExpressionEvaluator{constructor(o,u){super(u??new e.TermTransformer(o.superTypeProvider)),this.context=o,this.subEvaluators={[t.ExpressionType.Term]:(c,l)=>this.term(c),[t.ExpressionType.Variable]:(c,l)=>this.variable(c,l),[t.ExpressionType.Operator]:(c,l)=>this.evalOperator(c,l),[t.ExpressionType.SpecialOperator]:(c,l)=>this.evalSpecialOperator(c,l),[t.ExpressionType.Named]:(c,l)=>this.evalNamed(c,l),[t.ExpressionType.Existence]:(c,l)=>this.evalExistence(c,l),[t.ExpressionType.Aggregate]:(c,l)=>this.evalAggregate(c),[t.ExpressionType.AsyncExtension]:(c,l)=>this.evalAsyncExtension(c,l)}}async evaluate(o,u){const c=this.subEvaluators[o.expressionType];if(!c)throw new r.InvalidExpressionType(o);return c.bind(this)(o,u)}async evalOperator(o,u){const c=o.args.map(d=>this.evaluate(d,u)),l=await Promise.all(c);return o.apply(l)}async evalSpecialOperator(o,u){const c=this.evaluate.bind(this),l={args:o.args,mapping:u,superTypeProvider:this.context.superTypeProvider,now:this.context.now,baseIRI:this.context.baseIRI,functionArgumentsCache:this.context.functionArgumentsCache,evaluate:c,bnode:this.context.bnode,defaultTimeZone:this.context.defaultTimeZone};return o.applyAsync(l)}async _evalAsyncArgs(o,u){const c=o.map(l=>this.evaluate(l,u));return await Promise.all(c)}async evalNamed(o,u){return o.apply(await this._evalAsyncArgs(o.args,u))}async evalAsyncExtension(o,u){return await o.apply(await this._evalAsyncArgs(o.args,u))}async evalExistence(o,u){if(!this.context.exists)throw new r.NoExistenceHook;return new t.BooleanLiteral(await this.context.exists(o.expression,u))}async evalAggregate(o){if(!this.context.aggregate)throw new r.NoAggregator;return this.termTransformer.transformRDFTermUnsafe(await this.context.aggregate(o.expression))}};return yg.AsyncRecursiveEvaluator=a,yg}var YV;function wte(){if(YV)return Um;YV=1,Object.defineProperty(Um,"__esModule",{value:!0}),Um.AsyncEvaluator=void 0;const t=ju(),e=_te(),r=qf(),n=A6e();let a=class vte{static completeContext(o){const u=o.now??new Date(Date.now());return{now:u,baseIRI:o.baseIRI??void 0,functionArgumentsCache:o.functionArgumentsCache??{},superTypeProvider:{cache:o.typeCache??new t.LRUCache({max:1e3}),discoverer:o.getSuperType??(()=>"term")},extensionFunctionCreator:o.extensionFunctionCreator,exists:o.exists,aggregate:o.aggregate,bnode:o.bnode,defaultTimeZone:o.defaultTimeZone??(0,r.extractTimeZone)(u)}}constructor(o,u={}){this.algExpr=o;const c=u.extensionFunctionCreator??(()=>{}),l=vte.completeContext(u),d=new e.AlgebraTransformer({type:"async",creator:c,...l});this.expr=d.transformAlgebra(o),this.evaluator=new n.AsyncRecursiveEvaluator(l,d)}async evaluate(o){return(await this.evaluator.evaluate(this.expr,o)).toRDF()}async evaluateAsEBV(o){return(await this.evaluator.evaluate(this.expr,o)).coerceEBV()}async evaluateAsInternal(o){return await this.evaluator.evaluate(this.expr,o)}};return Um.AsyncEvaluator=a,Um}var gg={},_g={},ZV;function O6e(){if(ZV)return _g;ZV=1,Object.defineProperty(_g,"__esModule",{value:!0}),_g.SyncRecursiveEvaluator=void 0;const t=ki(),e=bl(),r=Rn(),n=bte();let a=class extends n.BaseExpressionEvaluator{constructor(o,u){super(u??new e.TermTransformer(o.superTypeProvider)),this.context=o,this.subEvaluators={[t.ExpressionType.Term]:(c,l)=>this.term(c),[t.ExpressionType.Variable]:(c,l)=>this.variable(c,l),[t.ExpressionType.Operator]:(c,l)=>this.evalOperator(c,l),[t.ExpressionType.SpecialOperator]:(c,l)=>this.evalSpecialOperator(c,l),[t.ExpressionType.Named]:(c,l)=>this.evalNamed(c,l),[t.ExpressionType.Existence]:(c,l)=>this.evalExistence(c,l),[t.ExpressionType.Aggregate]:(c,l)=>this.evalAggregate(c),[t.ExpressionType.SyncExtension]:(c,l)=>this.evalSyncExtension(c,l)}}evaluate(o,u){const c=this.subEvaluators[o.expressionType];if(!c)throw new r.InvalidExpressionType(o);return c.bind(this)(o,u)}evalOperator(o,u){const c=o.args.map(l=>this.evaluate(l,u));return o.apply(c)}evalSpecialOperator(o,u){const c=this.evaluate.bind(this),l={args:o.args,mapping:u,superTypeProvider:this.context.superTypeProvider,now:this.context.now,baseIRI:this.context.baseIRI,functionArgumentsCache:this.context.functionArgumentsCache,evaluate:c,bnode:this.context.bnode,defaultTimeZone:this.context.defaultTimeZone};return o.applySynchronously(l)}evalNamed(o,u){const c=o.args.map(l=>this.evaluate(l,u));return o.apply(c)}evalSyncExtension(o,u){const c=o.args.map(l=>this.evaluate(l,u));return o.apply(c)}evalExistence(o,u){if(!this.context.exists)throw new r.NoExistenceHook;return new t.BooleanLiteral(this.context.exists(o.expression,u))}evalAggregate(o){if(!this.context.aggregate)throw new r.NoAggregator;return this.termTransformer.transformRDFTermUnsafe(this.context.aggregate(o.expression))}};return _g.SyncRecursiveEvaluator=a,_g}var eH;function Tte(){if(eH)return gg;eH=1,Object.defineProperty(gg,"__esModule",{value:!0}),gg.SyncEvaluator=void 0;const t=ju(),e=_te(),r=qf(),n=O6e();let a=class Ste{static completeContext(o){const u=o.now??new Date(Date.now());return{now:u,baseIRI:o.baseIRI??void 0,functionArgumentsCache:o.functionArgumentsCache??{},superTypeProvider:{cache:o.typeCache??new t.LRUCache({max:1e3}),discoverer:o.getSuperType??(()=>"term")},extensionFunctionCreator:o.extensionFunctionCreator,exists:o.exists,aggregate:o.aggregate,bnode:o.bnode,defaultTimeZone:o.defaultTimeZone??(0,r.extractTimeZone)(u)}}constructor(o,u={}){this.algExpr=o,this.context=u;const c=u.extensionFunctionCreator??(()=>{}),l=Ste.completeContext(u),d=new e.AlgebraTransformer({type:"sync",creator:c,...l});this.expr=d.transformAlgebra(o),this.evaluator=new n.SyncRecursiveEvaluator(l,d)}evaluate(o){return this.evaluator.evaluate(this.expr,o).toRDF()}evaluateAsEBV(o){return this.evaluator.evaluate(this.expr,o).coerceEBV()}evaluateAsInternal(o){return this.evaluator.evaluate(this.expr,o)}};return gg.SyncEvaluator=a,gg}var bg={},vg={},wg={},Sg={},ac={},tH;function Fu(){if(tH)return ac;tH=1,Object.defineProperty(ac,"__esModule",{value:!0}),ac.Aggregator=ac.AggregatorComponent=void 0;const t=nr,e=bl(),r=oi(),n=QT();class a{static emptyValue(){}constructor(u,c){this.sharedContext=c,this.separator=u.separator||" ",this.termTransformer=new e.TermTransformer(c.superTypeProvider)}termToNumericOrError(u){if(u.termType!=="Literal")throw new Error(`Term with value ${u.value} has type ${u.termType} and is not a numeric literal`);if(!(0,n.isSubTypeOf)(u.datatype.value,r.TypeAlias.SPARQL_NUMERIC,this.sharedContext.superTypeProvider))throw new Error(`Term datatype ${u.datatype.value} with value ${u.value} has type ${u.termType} and is not a numeric literal`);return this.termTransformer.transformLiteral(u)}}ac.AggregatorComponent=a;let s=class{constructor(u,c){this.aggregatorComponent=c,this.variableValues=new Map,this.distinct=u.distinct}static emptyValue(u){return u.emptyValue()}result(){return this.aggregatorComponent.result()}put(u,c=""){this.canSkip(u,c)||(this.aggregatorComponent.put(u),this.addSeen(u,c))}canSkip(u,c){const l=this.variableValues.get(c);return this.distinct&&l!==void 0&&l.has(t.termToString(u))}addSeen(u,c){this.distinct&&(this.variableValues.has(c)||this.variableValues.set(c,new Set),this.variableValues.get(c).add(t.termToString(u)))}};return ac.Aggregator=s,ac}var rH;function R6e(){if(rH)return Sg;rH=1,Object.defineProperty(Sg,"__esModule",{value:!0}),Sg.Average=void 0;const t=ki(),e=$f(),r=Os(),n=oi(),a=Fu();let s=class Ete extends a.AggregatorComponent{constructor(){super(...arguments),this.summer=e.regularFunctions[n.RegularOperator.ADDITION],this.divider=e.regularFunctions[n.RegularOperator.DIVISION],this.state=void 0}static emptyValue(){return(0,r.integer)(0).toRDF()}put(u){if(this.state===void 0){const c=this.termToNumericOrError(u);this.state={sum:c,count:1}}else{const c=this.termToNumericOrError(u);this.state.sum=this.summer.apply([this.state.sum,c],this.sharedContext),this.state.count++}}result(){if(this.state===void 0)return Ete.emptyValue();const u=new t.IntegerLiteral(this.state.count);return this.divider.apply([this.state.sum,u],this.sharedContext).toRDF()}};return Sg.Average=s,Sg}var Tg={},nH;function x6e(){if(nH)return Tg;nH=1,Object.defineProperty(Tg,"__esModule",{value:!0}),Tg.Count=void 0;const t=Os(),e=Fu();let r=class Ate extends e.AggregatorComponent{constructor(){super(...arguments),this.state=void 0}static emptyValue(){return(0,t.integer)(0).toRDF()}put(){this.state===void 0&&(this.state=0),this.state++}result(){return this.state===void 0?Ate.emptyValue():(0,t.integer)(this.state).toRDF()}};return Tg.Count=r,Tg}var Eg={},iH;function I6e(){if(iH)return Eg;iH=1,Object.defineProperty(Eg,"__esModule",{value:!0}),Eg.GroupConcat=void 0;const t=Os(),e=Fu();let r=class Ote extends e.AggregatorComponent{constructor(){super(...arguments),this.state=void 0,this.lastLanguageValid=!0,this.lastLanguage=void 0}static emptyValue(){return(0,t.string)("").toRDF()}put(a){this.state===void 0?(this.state=a.value,a.termType==="Literal"&&(this.lastLanguage=a.language)):(this.state+=this.separator+a.value,this.lastLanguageValid&&a.termType==="Literal"&&this.lastLanguage!==a.language&&(this.lastLanguageValid=!1,this.lastLanguage=void 0))}result(){return this.state===void 0?Ote.emptyValue():this.lastLanguageValid&&this.lastLanguage?(0,t.langString)(this.state,this.lastLanguage).toRDF():(0,t.string)(this.state).toRDF()}};return Eg.GroupConcat=r,Eg}var Ag={},aH;function P6e(){if(aH)return Ag;aH=1,Object.defineProperty(Ag,"__esModule",{value:!0}),Ag.Max=void 0;const t=WT(),e=Fu();let r=class Rte extends e.AggregatorComponent{constructor(){super(...arguments),this.state=void 0}put(a){if(a.termType!=="Literal")throw new Error(`Term with value ${a.value} has type ${a.termType} and is not a literal`);this.state===void 0?this.state=a:(0,t.orderTypes)(this.state,a)===-1&&(this.state=a)}result(){return this.state===void 0?Rte.emptyValue():this.state}};return Ag.Max=r,Ag}var Og={},sH;function N6e(){if(sH)return Og;sH=1,Object.defineProperty(Og,"__esModule",{value:!0}),Og.Min=void 0;const t=WT(),e=Fu();let r=class xte extends e.AggregatorComponent{constructor(){super(...arguments),this.state=void 0}put(a){if(a.termType!=="Literal")throw new Error(`Term with value ${a.value} has type ${a.termType} and is not a literal`);this.state===void 0?this.state=a:(0,t.orderTypes)(this.state,a)===1&&(this.state=a)}result(){return this.state===void 0?xte.emptyValue():this.state}};return Og.Min=r,Og}var Rg={},oH;function D6e(){if(oH)return Rg;oH=1,Object.defineProperty(Rg,"__esModule",{value:!0}),Rg.Sample=void 0;const t=Fu();let e=class Ite extends t.AggregatorComponent{constructor(){super(...arguments),this.state=void 0}put(n){this.state===void 0&&(this.state=n)}result(){return this.state===void 0?Ite.emptyValue():this.state}};return Rg.Sample=e,Rg}var xg={},uH;function C6e(){if(uH)return xg;uH=1,Object.defineProperty(xg,"__esModule",{value:!0}),xg.Sum=void 0;const t=$f(),e=Os(),r=oi(),n=Fu();let a=class Pte extends n.AggregatorComponent{constructor(){super(...arguments),this.state=void 0,this.summer=t.regularFunctions[r.RegularOperator.ADDITION]}static emptyValue(){return(0,e.integer)(0).toRDF()}put(o){if(this.state===void 0)this.state=this.termToNumericOrError(o);else{const u=this.termToNumericOrError(o);this.state=this.summer.apply([this.state,u],this.sharedContext)}}result(){return this.state===void 0?Pte.emptyValue():this.state.toRDF()}};return xg.Sum=a,xg}var cH;function L6e(){if(cH)return wg;cH=1,Object.defineProperty(wg,"__esModule",{value:!0}),wg.aggregators=void 0;const t=R6e(),e=x6e(),r=I6e(),n=P6e(),a=N6e(),s=D6e(),o=C6e();return wg.aggregators={count:e.Count,sum:o.Sum,min:a.Min,max:n.Max,avg:t.Average,group_concat:r.GroupConcat,sample:s.Sample},wg}var Ig={},lH;function j6e(){if(lH)return Ig;lH=1,Object.defineProperty(Ig,"__esModule",{value:!0}),Ig.WildcardCountAggregator=void 0;const t=nr,e=Os();let r=class{constructor(a){this.bindingValues=new Map,this.counter=0,this.distinct=a.distinct}putBindings(a){this.handleDistinct(a)||(this.counter+=1)}static emptyValue(){return(0,e.integer)(0).toRDF()}result(){return(0,e.integer)(this.counter).toRDF()}handleDistinct(a){if(this.distinct){const s=[...a];s.sort((d,f)=>d[0].value.localeCompare(f[0].value));const o=s.map(([d])=>d.value).join(","),u=s.map(([,d])=>t.termToString(d)).join(","),c=this.bindingValues.get(o),l=c!==void 0&&c.has(u);return c||this.bindingValues.set(o,new Set),this.bindingValues.get(o).add(u),l}return!1}};return Ig.WildcardCountAggregator=r,Ig}var dH;function Nte(){if(dH)return vg;dH=1,Object.defineProperty(vg,"__esModule",{value:!0}),vg.BaseAggregateEvaluator=void 0;const t=xt(),e=L6e(),r=Fu(),n=j6e(),a=Rn();let s=class{constructor(u,c,l){this.throwError=!1,this.isWildcard=!1,this.errorOccurred=!1,this.expression=u,this.aggregator=new r.Aggregator(u,new e.aggregators[u.aggregator](u,c)),this.throwError=l??!1,this.isWildcard=u.expression.expressionType===t.Algebra.expressionTypes.WILDCARD,this.isWildcard&&(this.wildcardAggregator=new n.WildcardCountAggregator(u))}static emptyValue(u,c=!1){let l;if(u.expression.expressionType===t.Algebra.expressionTypes.WILDCARD?l=n.WildcardCountAggregator.emptyValue():l=r.Aggregator.emptyValue(e.aggregators[u.aggregator]),l===void 0&&c)throw new a.EmptyAggregateError;return l}result(){if(!this.errorOccurred)return this.isWildcard?this.wildcardAggregator.result():this.aggregator.result()}};return vg.BaseAggregateEvaluator=s,vg}var fH;function M6e(){if(fH)return bg;fH=1,Object.defineProperty(bg,"__esModule",{value:!0}),bg.AggregateEvaluator=void 0;const t=Nte(),e=Tte();let r=class extends t.BaseAggregateEvaluator{constructor(a,s,o){super(a,e.SyncEvaluator.completeContext(s??{}),o),this.evaluator=new e.SyncEvaluator(a.expression,s)}put(a){if(!this.errorOccurred)if(this.isWildcard)this.wildcardAggregator.putBindings(a);else try{const s=this.evaluator.evaluate(a);this.aggregator.put(s)}catch(s){this.safeThrow(s)}}safeThrow(a){if(this.throwError)throw a;this.errorOccurred=!0}};return bg.AggregateEvaluator=r,bg}var Pg={},hH;function F6e(){if(hH)return Pg;hH=1,Object.defineProperty(Pg,"__esModule",{value:!0}),Pg.AsyncAggregateEvaluator=void 0;const t=wte(),e=Nte();let r=class extends e.BaseAggregateEvaluator{constructor(a,s,o){super(a,t.AsyncEvaluator.completeContext(s??{}),o),this.evaluator=new t.AsyncEvaluator(a.expression,s),this.errorOccurred=!1}async put(a){if(!this.errorOccurred)if(this.isWildcard)this.wildcardAggregator.putBindings(a);else try{const s=await this.evaluator.evaluate(a);if(!s||this.errorOccurred)return;this.aggregator.put(s)}catch(s){this.safeThrow(s)}}safeThrow(a){if(this.throwError)throw a;this.errorOccurred=!0}};return Pg.AsyncAggregateEvaluator=r,Pg}var pH;function Uf(){return pH||(pH=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncAggregateEvaluator=t.orderTypes=t.isExpressionError=t.ExpressionError=t.AggregateEvaluator=t.SyncEvaluator=t.AsyncEvaluator=void 0;var e=wte();Object.defineProperty(t,"AsyncEvaluator",{enumerable:!0,get:function(){return e.AsyncEvaluator}});var r=Tte();Object.defineProperty(t,"SyncEvaluator",{enumerable:!0,get:function(){return r.SyncEvaluator}});var n=M6e();Object.defineProperty(t,"AggregateEvaluator",{enumerable:!0,get:function(){return n.AggregateEvaluator}});var a=Rn();Object.defineProperty(t,"ExpressionError",{enumerable:!0,get:function(){return a.ExpressionError}}),Object.defineProperty(t,"isExpressionError",{enumerable:!0,get:function(){return a.isExpressionError}});var s=WT();Object.defineProperty(t,"orderTypes",{enumerable:!0,get:function(){return s.orderTypes}});var o=F6e();Object.defineProperty(t,"AsyncAggregateEvaluator",{enumerable:!0,get:function(){return o.AsyncAggregateEvaluator}})}(jx)),jx}var yH;function B6e(){if(yH)return $m;yH=1,Object.defineProperty($m,"__esModule",{value:!0}),$m.ActorQueryOperationExtend=void 0;const t=kr(),e=Tt(),r=Uf();let n=class extends e.ActorQueryOperationTypedMediated{constructor(s){super(s,"extend")}async testOperation(s,o){const u=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,o);return new r.AsyncEvaluator(s.expression,e.ActorQueryOperation.getAsyncExpressionContext(o,this.mediatorQueryOperation,u)),!0}async runOperation(s,o){const{expression:u,input:c,variable:l}=s,d=e.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:c,context:o}));if((await d.metadata()).variables.some(g=>g.equals(l)))throw new Error(`Illegal binding to variable '${l.value}' that has already been bound`);const f=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,o),h={...e.ActorQueryOperation.getAsyncExpressionContext(o,this.mediatorQueryOperation,f)},p=new r.AsyncEvaluator(u,h),m=async(g,b,v)=>{try{const _=await p.evaluate(g),w=g.set(l,_);v(w)}catch(_){(0,r.isExpressionError)(_)?(v(g),this.logWarn(o,`Expression error for extend operation (${_.message})with bindings '${(0,t.bindingsToString)(g)}'`)):y.emit("error",_)}b()},y=d.bindingsStream.transform({autoStart:!1,transform:m});return{type:"bindings",bindingsStream:y,async metadata(){const g=await d.metadata();return{...g,variables:[...g.variables,l]}}}}};return $m.ActorQueryOperationExtend=n,$m}var mH;function q6e(){return mH||(mH=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(B6e(),t)}(Lx)),Lx}var Vx={},Ng={},gH;function $6e(){if(gH)return Ng;gH=1,Object.defineProperty(Ng,"__esModule",{value:!0}),Ng.ActorQueryOperationFilter=void 0;const t=kr(),e=Tt(),r=Uf();let n=class extends e.ActorQueryOperationTypedMediated{constructor(s){super(s,"filter")}async testOperation(s,o){const u=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,o),c={...e.ActorQueryOperation.getAsyncExpressionContext(o,this.mediatorQueryOperation,u)};return new r.AsyncEvaluator(s.expression,c),!0}async runOperation(s,o){const u=await this.mediatorQueryOperation.mediate({operation:s.input,context:o}),c=e.ActorQueryOperation.getSafeBindings(u);e.ActorQueryOperation.validateQueryOutput(c,"bindings");const l=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,o),d={...e.ActorQueryOperation.getAsyncExpressionContext(o,this.mediatorQueryOperation,l)},f=new r.AsyncEvaluator(s.expression,d),h=async(m,y,g)=>{try{await f.evaluateAsEBV(m)&&g(m)}catch(b){(0,r.isExpressionError)(b)?this.logWarn(o,"Error occurred while filtering.",()=>({error:b,bindings:(0,t.bindingsToString)(m)})):p.emit("error",b)}y()},p=c.bindingsStream.transform({transform:h,autoStart:!1});return{type:"bindings",bindingsStream:p,metadata:c.metadata}}};return Ng.ActorQueryOperationFilter=n,Ng}var _H;function U6e(){return _H||(_H=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r($6e(),t)}(Vx)),Vx}var Hx={},Dg={},Cg={},bH;function k6e(){if(bH)return Cg;bH=1,Object.defineProperty(Cg,"__esModule",{value:!0}),Cg.GroupsState=void 0;const t=Uf(),e=Ot,r=new e.DataFactory;let n=class{constructor(s,o,u,c){this.hashFunction=s,this.pattern=o,this.sparqleeConfig=u,this.bindingsFactory=c,this.groups=new Map,this.groupsInitializer=new Map,this.groupVariables=new Set(this.pattern.variables.map(l=>l.value)),this.waitCounter=1,this.resultHasBeenCalled=!1}consumeBindings(s){const o=this.resultCheck();if(o)return o;this.waitCounter++;const u=s.filter((f,h)=>this.groupVariables.has(h.value)),c=this.hashBindings(u);let l=this.groupsInitializer.get(c),d;if(l){const f=l;d=(async()=>{const h=await f;await Promise.all(this.pattern.aggregates.map(async p=>{const m=p.variable.value;await h.aggregators[m].put(s)}))})().then(async()=>{this.subtractWaitCounterAndCollect()})}else l=(async()=>{const f={};await Promise.all(this.pattern.aggregates.map(async p=>{const m=p.variable.value;f[m]=new t.AsyncAggregateEvaluator(p,this.sparqleeConfig),await f[m].put(s)}));const h={aggregators:f,bindings:u};return this.groups.set(c,h),this.subtractWaitCounterAndCollect(),h})(),this.groupsInitializer.set(c,l),d=l;return d}subtractWaitCounterAndCollect(){--this.waitCounter===0&&this.handleResultCollection()}handleResultCollection(){let s=[...this.groups].map(([o,u])=>{const{bindings:c,aggregators:l}=u;let d=c;for(const f in l){const h=l[f].result();h&&(d=d.set(r.variable(f),h))}return d});if(s.length===0&&this.groupVariables.size===0){const o=[];for(const u of this.pattern.aggregates){const c=u.variable,l=t.AsyncAggregateEvaluator.emptyValue(u);l!==void 0&&o.push([c,l])}s=[this.bindingsFactory.bindings(o)]}this.waitResolver(s)}resultCheck(){if(this.resultHasBeenCalled)return Promise.reject(new Error("Calling any function after calling collectResult is invalid."))}collectResults(){const s=this.resultCheck();if(s)return s;this.resultHasBeenCalled=!0;const o=new Promise(u=>{this.waitResolver=u});return this.subtractWaitCounterAndCollect(),o}hashBindings(s){return this.hashFunction(s)}};return Cg.GroupsState=n,Cg}var vH;function V6e(){if(vH)return Dg;vH=1,Object.defineProperty(Dg,"__esModule",{value:!0}),Dg.ActorQueryOperationGroup=void 0;const t=kr(),e=Tt(),r=Uf(),n=Mt,a=k6e();let s=class extends e.ActorQueryOperationTypedMediated{constructor(u){super(u,"group")}async testOperation(u,c){const l=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,c);for(const d of u.aggregates)new r.AsyncEvaluator(d.expression,e.ActorQueryOperation.getAsyncExpressionContext(c,this.mediatorQueryOperation,l));return!0}async runOperation(u,c){const l=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,c),{hashFunction:d}=await this.mediatorHashBindings.mediate({allowHashCollisions:!0,context:c}),{input:f,aggregates:h}=u,p=await this.mediatorQueryOperation.mediate({operation:f,context:c}),m=e.ActorQueryOperation.getSafeBindings(p),y=[...u.variables,...h.map(v=>v.variable)],g=e.ActorQueryOperation.getAsyncExpressionContext(c,this.mediatorQueryOperation,l);return{type:"bindings",bindingsStream:new n.TransformIterator(()=>new Promise((v,_)=>{const w=new a.GroupsState(d,u,g,l);m.bindingsStream.on("end",async()=>{try{const E=new n.ArrayIterator(await w.collectResults(),{autoStart:!1});v(E)}catch(E){_(E)}}),m.bindingsStream.on("error",_),m.bindingsStream.on("data",E=>{w.consumeBindings(E).catch(_)})}),{autoStart:!1}),metadata:async()=>({...await m.metadata(),variables:y})}}};return Dg.ActorQueryOperationGroup=s,Dg}var wH;function H6e(){return wH||(wH=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(V6e(),t)}(Hx)),Hx}var Qx={},Lg={},SH;function Q6e(){if(SH)return Lg;SH=1,Object.defineProperty(Lg,"__esModule",{value:!0}),Lg.ActorQueryOperationLeftJoin=void 0;const t=kr(),e=Tt(),r=Uf();let n=class extends e.ActorQueryOperationTypedMediated{constructor(s){super(s,"leftjoin")}async testOperation(s,o){return!0}async runOperation(s,o){const u=(await Promise.all(s.input.map(async l=>({output:await this.mediatorQueryOperation.mediate({operation:l,context:o}),operation:l})))).map(({output:l,operation:d})=>({output:e.ActorQueryOperation.getSafeBindings(l),operation:d})),c=await this.mediatorJoin.mediate({type:"optional",entries:u,context:o});if(s.expression){const d=(await u[1].output.metadata()).variables,f=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,o),h={...e.ActorQueryOperation.getAsyncExpressionContext(o,this.mediatorQueryOperation,f)},p=new r.AsyncEvaluator(s.expression,h),m=c.bindingsStream.transform({autoStart:!1,transform:async(y,g,b)=>{if(!d.every(v=>y.has(v.value)))return b(y),g();try{await p.evaluateAsEBV(y)&&b(y)}catch(v){(0,r.isExpressionError)(v)?this.logWarn(o,"Error occurred while filtering.",()=>({error:v,bindings:y})):m.emit("error",v)}g()}});c.bindingsStream=m}return c}};return Lg.ActorQueryOperationLeftJoin=n,Lg}var TH;function z6e(){return TH||(TH=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Q6e(),t)}(Qx)),Qx}var zx={},jg={},EH;function G6e(){if(EH)return jg;EH=1,Object.defineProperty(jg,"__esModule",{value:!0}),jg.ActorQueryOperationNop=void 0;const t=kr(),e=Tt(),r=ci(),n=Mt;let a=class extends e.ActorQueryOperationTypedMediated{constructor(o){super(o,"nop")}async testOperation(o,u){return!0}async runOperation(o,u){const c=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,u);return{bindingsStream:new n.SingletonIterator(c.bindings()),metadata:()=>Promise.resolve({state:new r.MetadataValidationState,cardinality:{type:"exact",value:1},canContainUndefs:!1,variables:[]}),type:"bindings"}}};return jg.ActorQueryOperationNop=a,jg}var AH;function W6e(){return AH||(AH=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(G6e(),t)}(zx)),zx}var Gx={},Mg={},Fg={},OH;function K6e(){if(OH)return Fg;OH=1,Object.defineProperty(Fg,"__esModule",{value:!0}),Fg.SortIterator=void 0;const t=Mt;let e=class extends t.TransformIterator{constructor(n,a,s){super(n,s);const o=s&&s.window;this.windowLength=Number.isFinite(o)&&o>0?o:Number.POSITIVE_INFINITY,this.sort=a,this.sorted=[]}_read(n,a){let s,{length:o}=this.sorted;for(;o!==this.windowLength&&(s=this.source.read(),s!==null);){let u=0,c=o-1,l,d;for(;u<=c;)l=Math.trunc((u+c)/2),d=this.sort(s,this.sorted[l]),d<0?u=l+1:d>0?c=l-1:(u=l,c=-1);this.sorted.splice(u,0,s),o++}o===this.windowLength&&this._push(this.sorted.pop()),a()}_flush(n){let{length:a}=this.sorted;for(;a--;)this._push(this.sorted.pop());n()}};return Fg.SortIterator=e,Fg}var RH;function J6e(){if(RH)return Mg;RH=1,Object.defineProperty(Mg,"__esModule",{value:!0}),Mg.ActorQueryOperationOrderBy=void 0;const t=kr(),e=Tt(),r=Uf(),n=xt(),a=K6e();let s=class extends e.ActorQueryOperationTypedMediated{constructor(u){super(u,"orderby"),this.window=u.window??Number.POSITIVE_INFINITY}async testOperation(u,c){const l=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,c);for(let d of u.expressions)d=this.extractSortExpression(d),new r.AsyncEvaluator(d,e.ActorQueryOperation.getAsyncExpressionContext(c,this.mediatorQueryOperation,l));return!0}async runOperation(u,c){const l=await this.mediatorQueryOperation.mediate({operation:u.input,context:c}),d=e.ActorQueryOperation.getSafeBindings(l),f={window:this.window},h=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,c),p={...e.ActorQueryOperation.getAsyncExpressionContext(c,this.mediatorQueryOperation,h)};let{bindingsStream:m}=d;for(let y=u.expressions.length-1;y>=0;y--){let g=u.expressions[y];const b=this.isAscending(g);g=this.extractSortExpression(g);const v=new r.AsyncEvaluator(g,p),_=async(O,L,F)=>{try{const x=await v.evaluate(O);F({bindings:O,result:x})}catch(x){(0,r.isExpressionError)(x)||m.emit("error",x),F({bindings:O,result:void 0})}L()},w=m.transform({transform:_});m=new a.SortIterator(w,(O,L)=>{let F=(0,r.orderTypes)(O.result,L.result);return b||(F*=-1),F},f).map(({bindings:O})=>O)}return{type:"bindings",bindingsStream:m,metadata:d.metadata}}extractSortExpression(u){const{expressionType:c,operator:l}=u;return c!==n.Algebra.expressionTypes.OPERATOR?u:l==="desc"?u.args[0]:u}isAscending(u){const{expressionType:c,operator:l}=u;return c!==n.Algebra.expressionTypes.OPERATOR?!0:l!=="desc"}};return Mg.ActorQueryOperationOrderBy=s,Mg}var xH;function X6e(){return xH||(xH=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(J6e(),t)}(Gx)),Gx}var Wx={},Bg={},IH;function Y6e(){if(IH)return Bg;IH=1,Object.defineProperty(Bg,"__esModule",{value:!0}),Bg.ActorQueryOperationService=void 0;const t=kr(),e=Tt(),r=ci(),n=Mt;let a=class extends e.ActorQueryOperationTypedMediated{constructor(o){super(o,"service")}async testOperation(o,u){if(o.name.termType!=="NamedNode")throw new Error(`${this.name} can only query services by IRI, while a ${o.name.termType} was given.`);return!0}async runOperation(o,u){const{querySource:c}=await this.mediatorQuerySourceIdentify.mediate({querySourceUnidentified:{value:o.name.value,type:this.forceSparqlEndpoint?"sparql":void 0},context:u});let l;try{l=e.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:e.ActorQueryOperation.assignOperationSource(o.input,c),context:u}))}catch(d){if(o.silent){const f=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,u);l={bindingsStream:new n.SingletonIterator(f.bindings()),type:"bindings",metadata:async()=>({state:new r.MetadataValidationState,cardinality:{type:"exact",value:1},canContainUndefs:!1,variables:[]})},this.logWarn(u,`An error occurred when executing a SERVICE clause: ${d.message}`)}else throw d}return l}};return Bg.ActorQueryOperationService=a,Bg}var PH;function Z6e(){return PH||(PH=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Y6e(),t)}(Wx)),Wx}var Kx={},qg={},NH;function eLe(){if(NH)return qg;NH=1,Object.defineProperty(qg,"__esModule",{value:!0}),qg.ActorQueryOperationValues=void 0;const t=kr(),e=Tt(),r=ci(),n=Mt,a=Ot,s=new a.DataFactory;let o=class extends e.ActorQueryOperationTyped{constructor(c){super(c,"values")}async testOperation(c,l){return!0}async runOperation(c,l){const d=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,l),f=new n.ArrayIterator(c.bindings.map(m=>d.bindings(Object.entries(m).map(([y,g])=>[s.variable(y.slice(1)),g])))),h=c.variables;return{type:"bindings",bindingsStream:f,metadata:()=>Promise.resolve({state:new r.MetadataValidationState,cardinality:{type:"exact",value:c.bindings.length},canContainUndefs:c.bindings.some(m=>h.some(y=>!(`?${y.value}`in m))),variables:h})}}};return qg.ActorQueryOperationValues=o,qg}var DH;function tLe(){return DH||(DH=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(eLe(),t)}(Kx)),Kx}var Jx={},$g={},CH;function rLe(){if(CH)return $g;CH=1,Object.defineProperty($g,"__esModule",{value:!0}),$g.ActorQueryOperationPathOneOrMore=void 0;const t=Mu(),e=kr(),r=Tt(),n=Mt,a=xt();let s=class extends t.ActorAbstractPath{constructor(u){super(u,a.Algebra.types.ONE_OR_MORE_PATH)}async runOperation(u,c){const l=await e.BindingsFactory.create(this.mediatorMergeBindingsContext,c),d=await this.isPathArbitraryLengthDistinct(c,u);if(d.operation)return d.operation;c=d.context;const f=u.predicate;if(u.subject.termType!=="Variable"&&u.object.termType==="Variable"){const y=u.object,g=await this.getObjectsPredicateStarEval(u.subject,f.path,y,u.graph,c,!1,l),b=u.graph.termType==="Variable"?[y,u.graph]:[y];return{type:"bindings",bindingsStream:g.bindingsStream,metadata:async()=>({...await g.metadata(),variables:b})}}if(u.subject.termType==="Variable"&&u.object.termType==="Variable"){const y=t.ActorAbstractPath.FACTORY.createDistinct(t.ActorAbstractPath.FACTORY.createPath(u.subject,u.predicate.path,u.object,u.graph)),g=r.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({context:c,operation:y})),b=u.subject,v=u.object,_={},w=new n.MultiTransformIterator(g.bindingsStream,{multiTransform:O=>{const L=O.get(b),F=O.get(v),x=u.graph.termType==="Variable"?O.get(u.graph):u.graph;return new n.TransformIterator(async()=>{const P=new n.BufferedIterator;return await this.getSubjectAndObjectBindingsPredicateStar(b,v,L,F,f.path,x,c,_,{},P,{count:0},l),P.transform({transform(j,N,V){u.graph.termType==="Variable"&&(j=j.set(u.graph,x)),V(j),N()}})},{maxBufferSize:128})},autoStart:!1}),E=u.graph.termType==="Variable"?[b,v,u.graph]:[b,v];return{type:"bindings",bindingsStream:w,metadata:async()=>({...await g.metadata(),variables:E})}}if(u.subject.termType==="Variable"&&u.object.termType!=="Variable")return this.mediatorQueryOperation.mediate({context:c,operation:t.ActorAbstractPath.FACTORY.createPath(u.object,t.ActorAbstractPath.FACTORY.createOneOrMorePath(t.ActorAbstractPath.FACTORY.createInv(f.path)),u.subject,u.graph)});const h=this.generateVariable(),p=r.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({context:c,operation:t.ActorAbstractPath.FACTORY.createPath(u.subject,f,h,u.graph)}));return{type:"bindings",bindingsStream:p.bindingsStream.transform({filter:y=>u.object.equals(y.get(h)),transform(y,g,b){const v=u.graph.termType==="Variable"?l.bindings([[u.graph,y.get(u.graph)]]):l.bindings();b(v),g()}}),metadata:async()=>({...await p.metadata(),variables:u.graph.termType==="Variable"?[u.graph]:[]})}}};return $g.ActorQueryOperationPathOneOrMore=s,$g}var LH;function nLe(){return LH||(LH=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(rLe(),t)}(Jx)),Jx}var Xx={},Ug={},jH;function iLe(){if(jH)return Ug;jH=1,Object.defineProperty(Ug,"__esModule",{value:!0}),Ug.ActorQueryOperationPathZeroOrMore=void 0;const t=Mu(),e=kr(),r=Tt(),n=Mt,a=nr,s=xt();let o=class extends t.ActorAbstractPath{constructor(c){super(c,s.Algebra.types.ZERO_OR_MORE_PATH)}async runOperation(c,l){const d=await e.BindingsFactory.create(this.mediatorMergeBindingsContext,l),f=await this.isPathArbitraryLengthDistinct(l,c);if(f.operation)return f.operation;l=f.context;const h=c.predicate,p=this.getPathSources(h),m=c.subject.termType==="Variable",y=c.object.termType==="Variable";if(c.subject.termType==="Variable"&&c.object.termType==="Variable"){const E=this.generateVariable(c),O=this.assignPatternSources(t.ActorAbstractPath.FACTORY.createPattern(c.subject,E,c.object,c.graph),p),L=r.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({context:l,operation:O})),F=c.subject,x=c.object,P=new Set,j={},N=new n.MultiTransformIterator(L.bindingsStream,{multiTransform:$=>{const q=$.get(F),H=$.get(x),X=c.graph.termType==="Variable"?$.get(c.graph):c.graph,Y=(0,a.termToString)(q)+(0,a.termToString)(X),he=(0,a.termToString)(H)+(0,a.termToString)(X);return new n.TransformIterator(async()=>{if(P.has(Y)&&P.has(he))return new n.EmptyIterator;const Te=new n.BufferedIterator,Ne={count:0};return P.has(Y)||(P.add(Y),await this.getSubjectAndObjectBindingsPredicateStar(F,x,q,q,h.path,X,l,j,{},Te,Ne,d)),P.has(he)||(P.add(he),await this.getSubjectAndObjectBindingsPredicateStar(F,x,H,H,h.path,X,l,j,{},Te,Ne,d)),Te.transform({transform($e,de,ce){c.graph.termType==="Variable"&&($e=$e.set(c.graph,X)),ce($e),de()}})})}}),V=c.graph.termType==="Variable"?[F,c.object,c.graph]:[F,c.object];return{type:"bindings",bindingsStream:N,metadata:async()=>({...await L.metadata(),variables:V})}}if(!m&&!y){const E=this.generateVariable(),O=await this.getObjectsPredicateStarEval(c.subject,h.path,E,c.graph,l,!0,d);return{type:"bindings",bindingsStream:O.bindingsStream.transform({filter:F=>c.object.equals(F.get(E)),transform(F,x,P){const j=c.graph.termType==="Variable"?d.bindings([[c.graph,F.get(c.graph)]]):d.bindings();P(j),x()}}),metadata:async()=>({...await O.metadata(),variables:c.graph.termType==="Variable"?[c.graph]:[]})}}const g=m?c.object:c.subject,b=m?c.subject:c.object,v=m?t.ActorAbstractPath.FACTORY.createInv(h.path):h.path,_=await this.getObjectsPredicateStarEval(g,v,b,c.graph,l,!0,d),w=c.graph.termType==="Variable"?[b,c.graph]:[b];return{type:"bindings",bindingsStream:_.bindingsStream,metadata:async()=>({...await _.metadata(),variables:w})}}};return Ug.ActorQueryOperationPathZeroOrMore=o,Ug}var MH;function aLe(){return MH||(MH=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(iLe(),t)}(Xx)),Xx}var Yx={},kg={},FH;function sLe(){if(FH)return kg;FH=1,Object.defineProperty(kg,"__esModule",{value:!0}),kg.ActorQueryOperationPathZeroOrOne=void 0;const t=Mu(),e=kr(),r=Tt(),n=ci(),a=Mt,s=xt();let o=class extends t.ActorAbstractPath{constructor(c){super(c,s.Algebra.types.ZERO_OR_ONE_PATH)}async runOperation(c,l){const d=await e.BindingsFactory.create(this.mediatorMergeBindingsContext,l),f=c.predicate,h=this.getPathSources(f),p=[];if(c.subject.termType!=="Variable"&&c.object.termType!=="Variable"&&c.subject.equals(c.object))return{type:"bindings",bindingsStream:new a.SingletonIterator(d.bindings()),metadata:()=>Promise.resolve({state:new n.MetadataValidationState,cardinality:{type:"exact",value:1},canContainUndefs:!1,variables:[]})};const m=await this.isPathArbitraryLengthDistinct(l,c);if(m.operation)return m.operation;l=m.context;const y=r.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({context:l,operation:t.ActorAbstractPath.FACTORY.createPath(c.subject,f.path,c.object,c.graph)}));let g;if(c.subject.termType==="Variable"&&c.object.termType==="Variable"){const b=this.generateVariable(c),v=r.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({context:l,operation:t.ActorAbstractPath.FACTORY.createFilter(this.assignPatternSources(t.ActorAbstractPath.FACTORY.createPattern(c.subject,b,c.object,c.graph),h),t.ActorAbstractPath.FACTORY.createOperatorExpression("=",[t.ActorAbstractPath.FACTORY.createTermExpression(c.subject),t.ActorAbstractPath.FACTORY.createTermExpression(c.object)]))})).bindingsStream.map(_=>_.delete(b));g=new a.UnionIterator([v,y.bindingsStream],{autoStart:!1})}else c.subject.termType==="Variable"&&p.push(d.bindings([[c.subject,c.object]])),c.object.termType==="Variable"&&p.push(d.bindings([[c.object,c.subject]])),g=y.bindingsStream.prepend(p);return{type:"bindings",bindingsStream:g,metadata:y.metadata}}};return kg.ActorQueryOperationPathZeroOrOne=o,kg}var BH;function oLe(){return BH||(BH=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(sLe(),t)}(Yx)),Yx}var Zx={},Vg={},qH;function uLe(){if(qH)return Vg;qH=1,Object.defineProperty(Vg,"__esModule",{value:!0}),Vg.ActorQueryOperationUpdateDeleteInsert=void 0;const t=Vee(),e=kr(),r=Tt(),n=Mt;let a=class extends r.ActorQueryOperationTypedMediated{constructor(o){super(o,"deleteinsert"),this.blankNodeCounter=0}async testOperation(o,u){return r.ActorQueryOperation.throwOnReadOnly(u),!0}async runOperation(o,u){const c=await e.BindingsFactory.create(this.mediatorMergeBindingsContext,u),l=o.where?r.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:o.where,context:u})).bindingsStream:new n.ArrayIterator([c.bindings()],{autoStart:!1});let d,f;o.insert&&(d=new t.BindingsToQuadsIterator(o.insert.map(t.BindingsToQuadsIterator.localizeQuad.bind(null,this.blankNodeCounter)),l.clone()),this.blankNodeCounter++),o.delete&&(f=new t.BindingsToQuadsIterator(o.delete.map(t.BindingsToQuadsIterator.localizeQuad.bind(null,this.blankNodeCounter)),l.clone()),this.blankNodeCounter++);const{execute:h}=await this.mediatorUpdateQuads.mediate({quadStreamInsert:d,quadStreamDelete:f,context:u});return{type:"void",execute:h}}};return Vg.ActorQueryOperationUpdateDeleteInsert=a,Vg}var $H;function cLe(){return $H||($H=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(uLe(),t)}(Zx)),Zx}var eI={},Hg={},tI={},Qg={},UH;function lLe(){if(UH)return Qg;UH=1,Object.defineProperty(Qg,"__esModule",{value:!0}),Qg.ActorQueryProcess=void 0;const t=st;let e=class extends t.Actor{constructor(n){super(n)}};return Qg.ActorQueryProcess=e,Qg}var kH;function KT(){return kH||(kH=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(lLe(),t)}(tI)),tI}var VH;function dLe(){if(VH)return Hg;VH=1,Object.defineProperty(Hg,"__esModule",{value:!0}),Hg.ActorQueryProcessSequential=void 0;const t=kr(),e=Tt(),r=KT(),n=qt,a=st;let s=class extends r.ActorQueryProcess{constructor(u){super(u)}async test(u){if(u.context.get(n.KeysInitQuery.explain)||u.context.get(new a.ActionContextKey("explain")))throw new Error(`${this.name} is not able to explain queries.`);return!0}async run(u){let{operation:c,context:l}=await this.parse(u.query,u.context);return{operation:c,context:l}=await this.optimize(c,l),{result:await this.evaluate(c,l)}}async parse(u,c){c=(await this.mediatorContextPreprocess.mediate({context:c,initialize:!0})).context;let l;if(typeof u=="string"){c=c.set(n.KeysInitQuery.queryString,u);const d=c.get(n.KeysInitQuery.baseIRI),f=c.get(n.KeysInitQuery.queryFormat),h=await this.mediatorQueryParse.mediate({context:c,query:u,queryFormat:f,baseIRI:d});l=h.operation,h.baseIRI&&(c=c.set(n.KeysInitQuery.baseIRI,h.baseIRI))}else l=u;if(c.has(n.KeysInitQuery.initialBindings)){const d=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,c);l=(0,e.materializeOperation)(l,c.get(n.KeysInitQuery.initialBindings),d),c=c.delete(n.KeysInitQuery.queryString)}return{operation:l,context:c}}async optimize(u,c){return c=c.set(n.KeysInitQuery.query,u),{operation:u,context:c}=await this.mediatorOptimizeQueryOperation.mediate({context:c,operation:u}),c=c.set(n.KeysInitQuery.query,u),{operation:u,context:c}}async evaluate(u,c){const l=await this.mediatorQueryOperation.mediate({context:c,operation:u});return l.context=c,l}};return Hg.ActorQueryProcessSequential=s,Hg}var HH;function fLe(){return HH||(HH=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(dLe(),t)}(eI)),eI}var rI={},zg={},Gg={},Wg={},Kg={},QH;function hLe(){if(QH)return Kg;QH=1,Object.defineProperty(Kg,"__esModule",{value:!0}),Kg.LinkedRdfSourcesAsyncRdfIterator=void 0;const t=ci(),e=Mt;let r=class extends e.BufferedIterator{constructor(a,s,o,u,c,l,d,f){if(super({autoStart:!1,...f}),this.started=!1,this.currentIterators=[],this.iteratorsPendingCreation=0,this.iteratorsPendingTermination=0,this.accumulatedMetadata=Promise.resolve(void 0),this._reading=!1,this.cacheSize=a,this.operation=s,this.queryBindingsOptions=o,this.context=u,this.firstUrl=c,this.maxIterators=l,this.sourceStateGetter=d,this.maxIterators<=0)throw new Error(`LinkedRdfSourcesAsyncRdfIterator.maxIterators must be larger than zero, but got ${this.maxIterators}`)}kickstart(){this.started||this._fillBufferAsync()}getProperty(a,s){return a==="metadata"&&!this.started&&(this.preflightMetadata||(this.preflightMetadata=new Promise((o,u)=>{this.sourceStateGetter({url:this.firstUrl},{}).then(c=>{const l=c.source.queryBindings(this.operation,this.context);l.getProperty("metadata",d=>{d.state=new t.MetadataValidationState,l.destroy(),this.accumulateMetadata(c.metadata,d).then(f=>{const h={...c.metadata,...d,...f};o(h)}).catch(()=>{o({...c.metadata,state:new t.MetadataValidationState})})})}).catch(u)})),this.preflightMetadata.then(o=>this.setProperty("metadata",o)).catch(()=>{})),super.getProperty(a,s)}_end(a){for(const s of this.currentIterators)s.destroy();super._end(a)}_read(a,s){if(this.started){for(const o of this.currentIterators){for(;a>0;){const u=o.read();if(u===null)break;a--,this._push(u)}if(a<=0)break}a>=0&&this.canStartNewIterator()?this.sourceStateGetter({url:this.firstUrl},{}).then(o=>{this.startIteratorsForNextUrls(o.handledDatasets,!1),s()}):s()}else this.started=!0,this.sourceStateGetter({url:this.firstUrl},{}).then(o=>{this.startIterator(o),s()}).catch(o=>setTimeout(()=>this.destroy(o)))}canStartNewIterator(){return this.currentIterators.length+this.iteratorsPendingCreation+this.iteratorsPendingTermination0}startIterator(a){try{const s=a.source.queryBindings(this.operation,this.context,this.queryBindingsOptions);this.currentIterators.push(s);let o=!1,u=!1;s._destination=this,s.on("error",c=>this.destroy(c)),s.on("readable",()=>this._fillBuffer()),s.on("end",()=>{this.currentIterators.splice(this.currentIterators.indexOf(s),1),o=!0,u||this.iteratorsPendingTermination++,u&&this.startIteratorsForNextUrls(a.handledDatasets,!0)}),s.getProperty("metadata",c=>{this.accumulatedMetadata=this.accumulatedMetadata.then(l=>(async()=>(l||(l=a.metadata),this.accumulateMetadata(l,c)))().then(d=>{const f={...a.metadata,...c,...d};return f.state=new t.MetadataValidationState,this.updateMetadata(f),this.preflightMetadata&&this.preflightMetadata.then(h=>h.state.invalidate()).catch(()=>{}),this.getSourceLinks(f).then(h=>Promise.all(h)).then(async h=>{const p=await this.getLinkQueue();for(const m of h)p.push(m,a.link);u=!0,o&&this.iteratorsPendingTermination--,this.startIteratorsForNextUrls(a.handledDatasets,!0)}).catch(h=>this.destroy(h)),f})).catch(l=>(this.destroy(l),{}))})}catch(s){this.destroy(s)}}updateMetadata(a){const s=this.getProperty("metadata");this.setProperty("metadata",a),s==null||s.state.invalidate()}isRunning(){return!this.done}startIteratorsForNextUrls(a,s){this.getLinkQueue().then(o=>{for(;this.canStartNewIterator()&&this.isRunning();){const u=o.pop();if(u)this.iteratorsPendingCreation++,this.sourceStateGetter(u,a).then(c=>{this.iteratorsPendingCreation--,this.startIterator(c)}).catch(c=>this.emit("error",c));else break}s&&this.isCloseable(o,!0)&&this.close()}).catch(o=>this.destroy(o))}isCloseable(a,s){return a.isEmpty()&&!this.areIteratorsRunning()}};return Kg.LinkedRdfSourcesAsyncRdfIterator=r,Kg}var zH;function pLe(){if(zH)return Wg;zH=1,Object.defineProperty(Wg,"__esModule",{value:!0}),Wg.MediatedLinkedRdfSourcesAsyncRdfIterator=void 0;const t=qt,e=Ot,r=xt(),n=hLe(),a=new e.DataFactory,s=new r.Factory;let o=class extends n.LinkedRdfSourcesAsyncRdfIterator{constructor(c,l,d,f,h,p,m,y,g,b,v,_){super(c,l,d,f,p,m,y,g?{maxBufferSize:Number.POSITIVE_INFINITY}:void 0),this.wasForcefullyClosed=!1,this.forceSourceType=h,this.mediatorMetadataAccumulate=b,this.mediatorRdfResolveHypermediaLinks=v,this.mediatorRdfResolveHypermediaLinksQueue=_,this.handledUrls={[p]:!0},this.aggregatedStore=g}close(){if(!this.aggregatedStore){super.close();return}this.getLinkQueue().then(c=>{this.isCloseable(c,!1)?(this.aggregatedStore&&setTimeout(()=>this.aggregatedStore.end()),super.close()):this.wasForcefullyClosed=!0}).catch(c=>super.destroy(c))}destroy(c){if(!this.aggregatedStore){super.destroy(c);return}this.getLinkQueue().then(l=>{c??this.isCloseable(l,!1)?(this.aggregatedStore&&setTimeout(()=>this.aggregatedStore.end()),super.destroy(c)):this.wasForcefullyClosed=!0}).catch(l=>super.destroy(l))}isCloseable(c,l){return(l?c.isEmpty():this.wasForcefullyClosed||c.isEmpty())&&!this.areIteratorsRunning()}canStartNewIterator(){return!this.wasForcefullyClosed&&this.aggregatedStore&&this.aggregatedStore.hasRunningIterators()||super.canStartNewIterator()}canStartNewIteratorConsiderReadable(){return!this.aggregatedStore}isRunning(){return this.aggregatedStore&&this.aggregatedStore.hasRunningIterators()||!this.done}getLinkQueue(){return this.linkQueue||(this.linkQueue=this.mediatorRdfResolveHypermediaLinksQueue.mediate({firstUrl:this.firstUrl,context:this.context}).then(c=>c.linkQueue)),this.linkQueue}async getSourceLinks(c){try{const{links:l}=await this.mediatorRdfResolveHypermediaLinks.mediate({context:this.context,metadata:c});return l.filter(d=>this.handledUrls[d.url]?!1:(this.handledUrls[d.url]=!0,!0))}catch{return[]}}startIterator(c){var l;if(this.aggregatedStore&&!this.aggregatedStore.containedSources.has(c.link.url)){(l=this.aggregatedStore)==null||l.containedSources.add(c.link.url);const d=c.source.queryBindings(s.createPattern(a.variable("s"),a.variable("p"),a.variable("o"),a.variable("g")),this.context.set(t.KeysQueryOperation.unionDefaultGraph,!0)).map(f=>a.quad(f.get("s"),f.get("p"),f.get("o"),f.get("g")));this.aggregatedStore.import(d).on("end",()=>{super.startIterator(c)})}else super.startIterator(c)}async accumulateMetadata(c,l){return(await this.mediatorMetadataAccumulate.mediate({mode:"append",accumulatedMetadata:c,appendingMetadata:l,context:this.context})).metadata}updateMetadata(c){var l;super.updateMetadata(c),(l=this.aggregatedStore)==null||l.setBaseMetadata(c,!0)}};return Wg.MediatedLinkedRdfSourcesAsyncRdfIterator=o,Wg}var Jg={},nI={},Xg={},GH;function Dte(){if(GH)return Xg;GH=1,Object.defineProperty(Xg,"__esModule",{value:!0}),Xg.PendingStreamsIndex=void 0;const t=nr,e=In();let r=class mc{constructor(){this.indexedStreams=new Map,this.allStreams=[]}termToString(a){return a&&a.termType!=="Variable"?(0,t.termToString)(a):mc.ID_VARIABLE}addPatternListener(a,s,o,u,c){this.allStreams.push(a);const l=`${this.termToString(s)}${mc.ID_SEPARATOR}${this.termToString(o)}${mc.ID_SEPARATOR}${this.termToString(u)}${mc.ID_SEPARATOR}${this.termToString(c)}`;let d=this.indexedStreams.get(l);d||(d=[],this.indexedStreams.set(l,d)),d.push(a)}getPendingStreamsForQuad(a){let s=[(0,e.getTerms)(a).map(u=>(0,t.termToString)(u))];for(let u=0;u{if(!this.ended&&!this.store.countQuads(o.subject,o.predicate,o.object,o.graph))for(const u of this.pendingStreams.getPendingStreamsForQuad(o))u.isInitialized&&(u.push(o),u.emit("quad",o))})}import(s){if(this.ended)throw new Error("Attempted to import into an ended StreamingStore");return this.importToListeners(s),this.store.import(s)}match(s,o,u,c){const l=this.store.match(s,o,u,c);let d=l;if(!this.ended){const f=new e.PassThrough({objectMode:!0});this.pendingStreams.addPatternListener(f,s,o,u,c),d=l.pipe(f,{end:!1}),d._pipeSource=l;const h=l._read;l._read=p=>{f.isInitialized=!0,h.call(l,p)}}return d}getStore(){return this.store}};return Yg.StreamingStore=n,Yg}var KH;function mLe(){return KH||(KH=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Dte(),t),r(yLe(),t)}(nI)),nI}var JH;function gLe(){if(JH)return Jg;JH=1,Object.defineProperty(Jg,"__esModule",{value:!0}),Jg.StreamingStoreMetadata=void 0;const t=Tt(),e=ci(),r=mLe();let n=class extends r.StreamingStore{constructor(s,o){super(s),this.started=!1,this.containedSources=new Set,this.runningIterators=new Set,this.iteratorCreatedListeners=new Set,this.baseMetadata={state:new e.MetadataValidationState,cardinality:{type:"exact",value:0},canContainUndefs:!1,variables:[]},this.metadataAccumulator=o}import(s){return this.ended||super.import(s),s}hasRunningIterators(){return this.runningIterators.size>0}match(s,o,u,c){const l=super.match(s,o,u,c),d=new t.ClosableTransformIterator(l,{autoStart:!1,onClose:()=>{this.runningIterators.delete(d)}});let f=this.getStore().countQuads(s,o,u,c);const h={state:new e.MetadataValidationState,cardinality:{type:"estimate",value:f},canContainUndefs:!1};d.setProperty("metadata",h),d.setProperty("lastCount",f),l.on("quad",()=>{d.setProperty("lastCount",++f),this.updateMetadataState(d,f)}),this.runningIterators.add(d);for(const p of this.iteratorCreatedListeners)p();return d}setBaseMetadata(s,o){if(this.baseMetadata={...s},this.baseMetadata.cardinality={type:"exact",value:0},o)for(const u of this.runningIterators){const c=u.getProperty("lastCount");this.updateMetadataState(u,c)}}updateMetadataState(s,o){const u={state:new e.MetadataValidationState,cardinality:{type:"estimate",value:o},canContainUndefs:!1,variables:[]};this.metadataAccumulator(this.baseMetadata,u).then(c=>{c.state=new e.MetadataValidationState;const l=s.getProperty("metadata");s.setProperty("metadata",c),l==null||l.state.invalidate()}).catch(()=>{})}addIteratorCreatedListener(s){this.iteratorCreatedListeners.add(s)}removeIteratorCreatedListener(s){this.iteratorCreatedListeners.delete(s)}};return Jg.StreamingStoreMetadata=n,Jg}var XH;function Cte(){if(XH)return Gg;XH=1,Object.defineProperty(Gg,"__esModule",{value:!0}),Gg.QuerySourceHypermedia=void 0;const t=E4(),e=qt,r=Mt,n=ju(),a=Pt,s=pLe(),o=gLe();let u=class{constructor(l,d,f,h,p,m,y,g){this.referenceValue=d,this.cacheSize=l,this.firstUrl=d,this.forceSourceType=f,this.maxIterators=h,this.mediators=m,this.aggregateStore=p,this.logWarning=y,this.bindingsFactory=g,this.sourcesState=new n.LRUCache({max:this.cacheSize})}async getSelectorShape(l){return(await this.getSourceCached({url:this.firstUrl},{},l,this.getAggregateStore(l))).source.getSelectorShape(l)}queryBindings(l,d,f){const h=this.getAggregateStore(d);if(h&&l.type==="pattern"&&h.started)return new t.QuerySourceRdfJs(h,this.bindingsFactory).queryBindings(l,d);this.sourcesState.size===0&&this.getSourceCached({url:this.firstUrl},{},d,h).catch(m=>p.destroy(m));const p=new s.MediatedLinkedRdfSourcesAsyncRdfIterator(this.cacheSize,l,f,d,this.forceSourceType,this.firstUrl,this.maxIterators,(m,y)=>this.getSourceCached(m,y,d,h),h,this.mediators.mediatorMetadataAccumulate,this.mediators.mediatorRdfResolveHypermediaLinks,this.mediators.mediatorRdfResolveHypermediaLinksQueue);if(h){h.started=!0;const m=()=>p.kickstart();h.addIteratorCreatedListener(m),p.on("end",()=>h.removeIteratorCreatedListener(m))}return p}queryQuads(l,d){return new r.TransformIterator(async()=>(await this.getSourceCached({url:this.firstUrl},{},d,this.getAggregateStore(d))).source.queryQuads(l,d))}async queryBoolean(l,d){return await(await this.getSourceCached({url:this.firstUrl},{},d,this.getAggregateStore(d))).source.queryBoolean(l,d)}async queryVoid(l,d){return await(await this.getSourceCached({url:this.firstUrl},{},d,this.getAggregateStore(d))).source.queryVoid(l,d)}async getSource(l,d,f,h){var v;l.context&&(f=f.merge(l.context));let p=l.url,m,y;try{const _=await this.mediators.mediatorDereferenceRdf.mediate({context:f,url:p});p=_.url;const w=await this.mediators.mediatorMetadata.mediate({context:f,url:p,quads:_.data,triples:(v=_.metadata)==null?void 0:v.triples});w.data.on("error",()=>{}),y=(await this.mediators.mediatorMetadataExtract.mediate({context:f,url:p,metadata:w.metadata,headers:_.headers,requestTime:_.requestTime})).metadata,m=w.data,l.transform&&(m=await l.transform(m))}catch(_){m=new a.Readable,m.read=()=>(setTimeout(()=>m.emit("error",_)),null),{metadata:y}=await this.mediators.mediatorMetadataAccumulate.mediate({context:f,mode:"initialize"}),this.logWarning(`Metadata extraction for ${p} failed: ${_.message}`)}h==null||h.setBaseMetadata(y,!1),h==null||h.containedSources.add(l.url),h==null||h.import(m);const{source:g,dataset:b}=await this.mediators.mediatorQuerySourceIdentifyHypermedia.mediate({context:f,forceSourceType:l.url===this.firstUrl?this.forceSourceType:void 0,handledDatasets:d,metadata:y,quads:m,url:p});return b&&(d[b]=!0),{link:l,source:g,metadata:y,handledDatasets:d}}getSourceCached(l,d,f,h){let p=this.sourcesState.get(l.url);return p||(p=this.getSource(l,d,f,h),(l.url===this.firstUrl||h===void 0)&&this.sourcesState.set(l.url,p),p)}getAggregateStore(l){let d;if(this.aggregateStore){const f=l.get(e.KeysQuerySourceIdentify.hypermediaSourcesAggregatedStores);if(f)return d=f.get(this.firstUrl),d||(d=new o.StreamingStoreMetadata(void 0,async(h,p)=>(await this.mediators.mediatorMetadataAccumulate.mediate({mode:"append",accumulatedMetadata:h,appendingMetadata:p,context:l})).metadata),f.set(this.firstUrl,d)),d}}toString(){return`QuerySourceHypermedia(${this.firstUrl})`}};return Gg.QuerySourceHypermedia=u,Gg}var YH;function _Le(){if(YH)return zg;YH=1,Object.defineProperty(zg,"__esModule",{value:!0}),zg.ActorQuerySourceIdentifyHypermedia=void 0;const t=kr(),e=q1(),r=qt,n=st,a=Cte();let s=class extends e.ActorQuerySourceIdentify{constructor(u){super(u)}async test(u){if(typeof u.querySourceUnidentified.value!="string")throw new TypeError(`${this.name} requires a single query source with a URL value to be present in the context.`);return!0}async run(u){var c;return{querySource:{source:new a.QuerySourceHypermedia(this.cacheSize,u.querySourceUnidentified.value,u.querySourceUnidentified.type,this.maxIterators,this.aggregateTraversalStore&&!!((c=u.querySourceUnidentified.context)!=null&&c.get(r.KeysQuerySourceIdentify.traverse)),{mediatorMetadata:this.mediatorMetadata,mediatorMetadataExtract:this.mediatorMetadataExtract,mediatorMetadataAccumulate:this.mediatorMetadataAccumulate,mediatorDereferenceRdf:this.mediatorDereferenceRdf,mediatorQuerySourceIdentifyHypermedia:this.mediatorQuerySourceIdentifyHypermedia,mediatorRdfResolveHypermediaLinks:this.mediatorRdfResolveHypermediaLinks,mediatorRdfResolveHypermediaLinksQueue:this.mediatorRdfResolveHypermediaLinksQueue},l=>this.logWarn(u.context,l),await t.BindingsFactory.create(this.mediatorMergeBindingsContext,u.context)),context:u.querySourceUnidentified.context??new n.ActionContext}}}};return zg.ActorQuerySourceIdentifyHypermedia=s,zg}var ZH;function bLe(){return ZH||(ZH=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(_Le(),t),r(Cte(),t)}(rI)),rI}var iI={},Zg={},eQ;function vLe(){if(eQ)return Zg;eQ=1,Object.defineProperty(Zg,"__esModule",{value:!0}),Zg.ActorRdfJoinNone=void 0;const t=kr(),e=li(),r=ci(),n=Mt;let a=class extends e.ActorRdfJoin{constructor(o){super(o,{logicalType:"inner",physicalName:"none",limitEntries:0})}async test(o){if(o.entries.length>0)throw new Error(`Actor ${this.name} can only join zero entries`);return await this.getJoinCoefficients()}async getOutput(o){const u=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,o.context);return{result:{bindingsStream:new n.ArrayIterator([u.bindings()],{autoStart:!1}),metadata:()=>Promise.resolve({state:new r.MetadataValidationState,cardinality:{type:"exact",value:1},canContainUndefs:!1,variables:[]}),type:"bindings"}}}async getJoinCoefficients(){return{iterations:0,persistedItems:0,blockingItems:0,requestTime:0}}};return Zg.ActorRdfJoinNone=a,Zg}var tQ;function wLe(){return tQ||(tQ=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(vLe(),t)}(iI)),iI}var aI={},e_={},rQ;function SLe(){if(rQ)return e_;rQ=1,Object.defineProperty(e_,"__esModule",{value:!0}),e_.ActorRdfJoinMultiBind=void 0;const t=kr(),e=Tt(),r=li(),n=qt,a=Mt,s=xt();let o=class cN extends r.ActorRdfJoin{constructor(c){super(c,{logicalType:"inner",physicalName:"bind",canHandleUndefs:!0,isLeaf:!1})}static createBindStream(c,l,d,f,h,p){const m=c==="depth-first",y=g=>{const b=d.map(_=>(0,e.materializeOperation)(_,g,p,{bindFilter:!0})),v=_=>_.merge(g);return new a.TransformIterator(async()=>(await f(b,g)).transform({map:v}),{maxBufferSize:128,autoStart:m})};switch(c){case"depth-first":return new a.MultiTransformIterator(l,{autoStart:!1,multiTransform:y,optional:h});case"breadth-first":return new a.UnionIterator(l.transform({map:y,optional:h}),{autoStart:!1});default:throw new Error(`Received request for unknown bind order: ${c}`)}}async getOutput(c){const l=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,c.context),d=await r.ActorRdfJoin.getEntriesWithMetadatas(c.entries),f=await r.ActorRdfJoin.sortJoinEntries(this.mediatorJoinEntriesSort,d,c.context);this.logDebug(c.context,"First entry for Bind Join: ",()=>({entry:f[0].operation,metadata:f[0].metadata}));for(const[g,b]of f.entries())g!==0&&b.output.bindingsStream.close();const h=f[0].output,p=[...f];p.splice(0,1);const m=c.context.set(n.KeysQueryOperation.joinLeftMetadata,f[0].metadata).set(n.KeysQueryOperation.joinRightMetadatas,p.map(g=>g.metadata));return{result:{type:"bindings",bindingsStream:cN.createBindStream(this.bindOrder,h.bindingsStream,p.map(g=>g.operation),async(g,b)=>{const v=g.length===1?g[0]:cN.FACTORY.createJoin(g);return e.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:v,context:m==null?void 0:m.set(n.KeysQueryOperation.joinBindings,b)})).bindingsStream},!1,l),metadata:()=>this.constructResultMetadata(f,f.map(g=>g.metadata),c.context)},physicalPlanMetadata:{bindIndex:d.indexOf(f[0]),bindOperation:f[0].operation,bindOperationCardinality:f[0].metadata.cardinality,bindOrder:this.bindOrder}}}canBindWithOperation(c){let l=!0;return s.Util.recurseOperation(c,{[s.Algebra.types.EXTEND](){return l=!1,!1},[s.Algebra.types.GROUP](){return l=!1,!1}}),l}async getJoinCoefficients(c,l){const d=await r.ActorRdfJoin.sortJoinEntries(this.mediatorJoinEntriesSort,c.entries.map((w,E)=>({...w,metadata:l[E]})),c.context);l=d.map(w=>w.metadata);const f=r.ActorRdfJoin.getRequestInitialTimes(l),h=r.ActorRdfJoin.getRequestItemTimes(l),p=[...d],m=[...f],y=[...h];if(p.splice(0,1),m.splice(0,1),y.splice(0,1),p.some(w=>!this.canBindWithOperation(w.operation)))throw new Error(`Actor ${this.name} can not bind on Extend and Group operations`);if(p.some(w=>w.operationModified))throw new Error(`Actor ${this.name} can not be used over remaining entries with modified operations`);const g=await Promise.all(p.map(async w=>(await this.mediatorJoinSelectivity.mediate({entries:[d[0],w],context:c.context})).selectivity*this.selectivityModifier)),b=p.map((w,E)=>w.metadata.cardinality.value*g[E]).reduce((w,E)=>w+E,0),v=m.reduce((w,E)=>w+E,0),_=y.reduce((w,E)=>w+E,0);return{iterations:l[0].cardinality.value*b,persistedItems:0,blockingItems:0,requestTime:f[0]+l[0].cardinality.value*(h[0]+v+b*_)}}};return e_.ActorRdfJoinMultiBind=o,o.FACTORY=new s.Factory,e_}var nQ;function Lte(){return nQ||(nQ=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(SLe(),t)}(aI)),aI}var sI={},t_={},iQ;function TLe(){if(iQ)return t_;iQ=1,Object.defineProperty(t_,"__esModule",{value:!0}),t_.ActorRdfJoinOptionalBind=void 0;const t=Lte(),e=kr(),r=Tt(),n=li(),a=qt,s=xt();let o=class extends n.ActorRdfJoin{constructor(c){super(c,{logicalType:"optional",physicalName:"bind",limitEntries:2,canHandleUndefs:!0,isLeaf:!1})}async getOutput(c){const l=await e.BindingsFactory.create(this.mediatorMergeBindingsContext,c.context);c.entries[1].output.bindingsStream.close();const d=c.context.set(a.KeysQueryOperation.joinLeftMetadata,await c.entries[0].output.metadata()).set(a.KeysQueryOperation.joinRightMetadatas,[await c.entries[1].output.metadata()]);return{result:{type:"bindings",bindingsStream:t.ActorRdfJoinMultiBind.createBindStream(this.bindOrder,c.entries[0].output.bindingsStream,[c.entries[1].operation],async(h,p)=>{const m=h[0];return r.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:m,context:d==null?void 0:d.set(a.KeysQueryOperation.joinBindings,p)})).bindingsStream},!0,l),metadata:async()=>await this.constructResultMetadata(c.entries,await n.ActorRdfJoin.getMetadatas(c.entries),c.context,{canContainUndefs:!0})}}}async getJoinCoefficients(c,l){if(n.ActorRdfJoin.overlappingVariables(l).length===0)throw new Error(`Actor ${this.name} only join entries with at least one common variable`);const d=n.ActorRdfJoin.getRequestInitialTimes(l),f=n.ActorRdfJoin.getRequestItemTimes(l);if(c.entries[1].operation.type===s.Algebra.types.EXTEND||c.entries[1].operation.type===s.Algebra.types.GROUP)throw new Error(`Actor ${this.name} can not bind on Extend and Group operations`);const h=(await this.mediatorJoinSelectivity.mediate({entries:c.entries,context:c.context})).selectivity*this.selectivityModifier;return{iterations:l[0].cardinality.value*l[1].cardinality.value*h,persistedItems:0,blockingItems:0,requestTime:d[0]+l[0].cardinality.value*(f[0]+d[1]+h*l[1].cardinality.value*f[1])}}};return t_.ActorRdfJoinOptionalBind=o,t_}var aQ;function ELe(){return aQ||(aQ=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(TLe(),t)}(sI)),sI}var oI={},r_={},sQ;function ALe(){if(sQ)return r_;sQ=1,Object.defineProperty(r_,"__esModule",{value:!0}),r_.ActorQueryProcessExplainParsed=void 0;const t=KT(),e=qt,r=st;let n=class extends t.ActorQueryProcess{constructor(s){super(s)}async test(s){if((s.context.get(e.KeysInitQuery.explain)||s.context.get(new r.ActionContextKey("explain")))!=="parsed")throw new Error(`${this.name} can only explain in 'parsed' mode.`);return!0}async run(s){const{operation:o}=await this.queryProcessor.parse(s.query,s.context);return{result:{explain:!0,type:"parsed",data:o}}}};return r_.ActorQueryProcessExplainParsed=n,r_}var oQ;function OLe(){return oQ||(oQ=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(ALe(),t)}(oI)),oI}var uI={},n_={},uQ;function RLe(){if(uQ)return n_;uQ=1,Object.defineProperty(n_,"__esModule",{value:!0}),n_.ActorQueryProcessExplainLogical=void 0;const t=KT(),e=qt,r=st;let n=class extends t.ActorQueryProcess{constructor(s){super(s)}async test(s){if((s.context.get(e.KeysInitQuery.explain)||s.context.get(new r.ActionContextKey("explain")))!=="logical")throw new Error(`${this.name} can only explain in 'logical' mode.`);return!0}async run(s){let{operation:o,context:u}=await this.queryProcessor.parse(s.query,s.context);return{operation:o,context:u}=await this.queryProcessor.optimize(o,u),{result:{explain:!0,type:"logical",data:o}}}};return n_.ActorQueryProcessExplainLogical=n,n_}var cQ;function xLe(){return cQ||(cQ=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(RLe(),t)}(uI)),uI}var cI={},i_={},sc={},lQ;function jte(){if(lQ)return sc;lQ=1,Object.defineProperty(sc,"__esModule",{value:!0}),sc.numberToString=sc.MemoryPhysicalQueryPlanLogger=void 0;const t=nr;let e=class{constructor(){this.planNodes=new Map}logOperation(a,s,o,u,c,l){const d={actor:c,logicalOperator:a,physicalOperator:s,rawNode:o,children:[],metadata:l};if(this.planNodes.set(o,d),this.rootNode){if(!u)throw new Error("Detected more than one parent-less node");const f=this.planNodes.get(u);if(!f)throw new Error("Could not find parent node");f.children.push(d)}else{if(u)throw new Error("No root node has been set yet, while a parent is being referenced");this.rootNode=d}}stashChildren(a,s){const o=this.planNodes.get(a);if(!o)throw new Error("Could not find plan node");o.children=s?o.children.filter(s):[]}unstashChild(a,s){const o=this.planNodes.get(a);if(o){const u=this.planNodes.get(s);if(!u)throw new Error("Could not find plan parent node");u.children.push(o)}}appendMetadata(a,s){const o=this.planNodes.get(a);o&&(o.metadata={...o.metadata,...s})}toJson(){return this.rootNode?this.planNodeToJson(this.rootNode):{}}planNodeToJson(a){var o;const s={logical:a.logicalOperator,physical:a.physicalOperator,...this.getLogicalMetadata(a.rawNode),...this.compactMetadata(a.metadata)};if(a.children.length>0&&(s.children=a.children.map(u=>this.planNodeToJson(u))),s.physical==="bind"&&s.children){const u={};for(const l of s.children){const d=((o=l.children)==null?void 0:o.at(-1))??l,f=this.getPlanHash(d).join(",");u[f]||(u[f]=[]),u[f].push(l)}const c=[];for(const l of Object.values(u))c.push({occurrences:l.length,firstOccurrence:l[0]});s.childrenCompact=c,delete s.children}return s}getPlanHash(a){let s=[`${a.logical}-${a.physical}`];return a.children?s=[...s,...a.children.flatMap(o=>this.getPlanHash(o))]:a.childrenCompact&&(s=[...s,...a.childrenCompact.flatMap(o=>this.getPlanHash(o.firstOccurrence))]),s}compactMetadata(a){return Object.fromEntries(Object.entries(a).map(([s,o])=>[s,this.compactMetadataValue(o)]))}compactMetadataValue(a){return a&&typeof a=="object"&&"termType"in a?this.getLogicalMetadata(a):a}getLogicalMetadata(a){var o;const s={};if("type"in a){const u=a;switch((o=u.metadata)!=null&&o.scopedSource&&(s.source=u.metadata.scopedSource.source.toString()),u.type){case"pattern":s.pattern=this.quadToString(u);break;case"project":s.variables=u.variables.map(c=>c.value);break}}return s}quadToString(a){return`${(0,t.termToString)(a.subject)} ${(0,t.termToString)(a.predicate)} ${(0,t.termToString)(a.object)}${a.graph.termType==="DefaultGraph"?"":` ${(0,t.termToString)(a.graph)}`}`}toCompactString(){const a=this.toJson(),s=[],o=new Map;if("logical"in a?this.nodeToCompactString(s,o,"",a):s.push("Empty"),o.size>0){s.push(""),s.push("sources:");for(const[u,c]of o.entries())s.push(` ${c}: ${u}`)}return s.join(` +`)}nodeToCompactString(a,s,o,u,c){let l;u.source&&(l=s.get(u.source),l===void 0&&(l=s.size,s.set(u.source,l))),a.push(`${o}${u.logical}${u.physical?`(${u.physical})`:""}${u.pattern?` (${u.pattern})`:""}${u.variables?` (${u.variables.join(",")})`:""}${u.bindOperation?` bindOperation:(${u.bindOperation.pattern}) bindCardEst:${u.bindOperationCardinality.type==="estimate"?"~":""}${r(u.bindOperationCardinality.value)}`:""}${u.cardinality?` cardEst:${u.cardinality.type==="estimate"?"~":""}${r(u.cardinality.value)}`:""}${u.source?` src:${l}`:""}${u.cardinalityReal?` cardReal:${u.cardinalityReal}`:""}${u.timeSelf?` timeSelf:${r(u.timeSelf)}ms`:""}${u.timeLife?` timeLife:${r(u.timeLife)}ms`:""}${c?` ${c}`:""}`);for(const d of u.children??[])this.nodeToCompactString(a,s,`${o} `,d);for(const d of u.childrenCompact??[])this.nodeToCompactString(a,s,`${o} `,d.firstOccurrence,`compacted-occurrences:${d.occurrences}`)}};sc.MemoryPhysicalQueryPlanLogger=e;function r(n){return n.toLocaleString("en-US",{minimumFractionDigits:0,maximumFractionDigits:3})}return sc.numberToString=r,sc}var dQ;function ILe(){if(dQ)return i_;dQ=1,Object.defineProperty(i_,"__esModule",{value:!0}),i_.ActorQueryProcessExplainPhysical=void 0;const t=KT(),e=qt,r=st,n=jte();let a=class extends t.ActorQueryProcess{constructor(o){super(o)}async test(o){const u=o.context.get(e.KeysInitQuery.explain)||o.context.get(new r.ActionContextKey("explain"));if(u!=="physical"&&u!=="physical-json")throw new Error(`${this.name} can only explain in 'physical' or 'physical-json' mode.`);return!0}async run(o){let{operation:u,context:c}=await this.queryProcessor.parse(o.query,o.context);({operation:u,context:c}=await this.queryProcessor.optimize(u,c));const l=new n.MemoryPhysicalQueryPlanLogger;c=c.set(e.KeysInitQuery.physicalQueryPlanLogger,l);const d=await this.queryProcessor.evaluate(u,c);switch(d.type){case"bindings":await d.bindingsStream.toArray();break;case"quads":await d.quadStream.toArray();break;case"boolean":await d.execute();break;case"void":await d.execute();break}const f=o.context.get(e.KeysInitQuery.explain)??o.context.getSafe(new r.ActionContextKey("explain"));return{result:{explain:!0,type:f,data:f==="physical"?l.toCompactString():l.toJson()}}}};return i_.ActorQueryProcessExplainPhysical=a,i_}var fQ;function PLe(){return fQ||(fQ=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(ILe(),t),r(jte(),t)}(cI)),cI}var lI={},a_={},hQ;function NLe(){if(hQ)return a_;hQ=1,Object.defineProperty(a_,"__esModule",{value:!0}),a_.ActorOptimizeQueryOperationPruneEmptySourceOperations=void 0;const t=Ua(),e=Tt(),r=qt,n=Ot,a=xt(),s=new a.Factory,o=new n.DataFactory;let u=class extends t.ActorOptimizeQueryOperation{constructor(l){super(l)}async test(l){if(e.ActorQueryOperation.getOperationSource(l.operation))throw new Error(`Actor ${this.name} does not work with top-level operation sources.`);return!0}async run(l){let d=l.operation;const f=[],h=this;a.Util.recurseOperation(d,{[a.Algebra.types.UNION](m){return h.collectMultiOperationInputs(m.input,f,a.Algebra.types.PATTERN),!0},[a.Algebra.types.ALT](m){return h.collectMultiOperationInputs(m.input,f,a.Algebra.types.LINK),!1},[a.Algebra.types.SERVICE](){return!1}});const p=new Set;return await Promise.all(f.map(async m=>{const y=m.type==="link"?s.createPattern(o.variable("?s"),m.iri,o.variable("?o")):m;await this.hasSourceResults(e.ActorQueryOperation.getOperationSource(m),y,l.context)||p.add(m)})),p.size>0&&(this.logDebug(l.context,`Pruning ${p.size} source-specific operations`),d=a.Util.mapOperation(d,{[a.Algebra.types.UNION](m,y){return h.mapMultiOperation(m,p,g=>y.createUnion(g))},[a.Algebra.types.ALT](m,y){return h.mapMultiOperation(m,p,g=>y.createAlt(g))}}),d=a.Util.mapOperation(d,{[a.Algebra.types.PROJECT](m,y){let g=!1;return a.Util.recurseOperation(m,{[a.Algebra.types.UNION](b){return b.input.length===0&&(g=!0),!0},[a.Algebra.types.ALT](b){return b.input.length===0&&(g=!0),!0}}),g?{recurse:!1,result:y.createUnion([])}:{recurse:!0,result:m}}})),{operation:d,context:l.context}}collectMultiOperationInputs(l,d,f){for(const h of l)e.ActorQueryOperation.getOperationSource(h)&&h.type===f&&d.push(h)}mapMultiOperation(l,d,f){const h=l.input.filter(p=>!d.has(p));return h.length===l.input.length?{result:l,recurse:!0}:h.length===0?{result:f([]),recurse:!1}:h.length===1?{result:h[0],recurse:!0}:{result:f(h),recurse:!0}}async hasSourceResults(l,d,f){var p;if((p=l.context)!=null&&p.get(r.KeysQuerySourceIdentify.traverse))return!0;if(this.useAskIfSupported){const m=s.createAsk(d);if(e.ActorQueryOperation.doesShapeAcceptOperation(await l.source.getSelectorShape(f),m))return l.source.queryBoolean(m,f)}const h=l.source.queryBindings(d,f);return new Promise((m,y)=>{h.on("error",y),h.getProperty("metadata",g=>{h.destroy(),m(g.cardinality.value>0)})})}};return a_.ActorOptimizeQueryOperationPruneEmptySourceOperations=u,a_}var pQ;function DLe(){return pQ||(pQ=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(NLe(),t)}(lI)),lI}var dI={},s_={},yQ;function CLe(){if(yQ)return s_;yQ=1,Object.defineProperty(s_,"__esModule",{value:!0}),s_.ActorQuerySourceIdentifySerialized=void 0;const t=q1(),e=dte(),r=Pt;let n=class extends t.ActorQuerySourceIdentify{constructor(s){super(s)}async test(s){if(!this.isStringSource(s.querySourceUnidentified))throw new Error(`${this.name} requires a single query source with serialized type to be present in the context.`);return!0}async run(s){return await this.mediatorQuerySourceIdentify.mediate({querySourceUnidentified:{type:"rdfjs",value:await this.getRdfSource(s.context,s.querySourceUnidentified),context:s.querySourceUnidentified.context},context:s.context})}async getRdfSource(s,o){const u=new r.Readable({objectMode:!0});u._read=()=>{},u.push(o.value),u.push(null);const c={context:s,handle:{metadata:{baseIRI:o.baseIRI},data:u,context:s},handleMediaType:o.mediaType},l=await this.mediatorRdfParse.mediate(c);return await(0,e.storeStream)(l.handle.data)}isStringSource(s){return"type"in s?s.type==="serialized":typeof s.value!="string"?!1:"mediaType"in s}};return s_.ActorQuerySourceIdentifySerialized=n,s_}var mQ;function LLe(){return mQ||(mQ=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(CLe(),t)}(dI)),dI}var fI={},o_={},gQ;function jLe(){if(gQ)return o_;gQ=1,Object.defineProperty(o_,"__esModule",{value:!0}),o_.ActorOptimizeQueryOperationJoinConnected=void 0;const t=Ua(),e=xt();let r=class Kw extends t.ActorOptimizeQueryOperation{async test(a){return!0}async run(a){return{operation:e.Util.mapOperation(a.operation,{join(o,u){return{recurse:!1,result:Kw.cluster(o,u)}}}),context:a.context}}static cluster(a,s){const o=a.input.map(d=>({inScopeVariables:Object.fromEntries(e.Util.inScopeVariables(d).map(f=>[f.value,!0])),entries:[d]}));let u,c=o;do u=c,c=Kw.clusterIteration(u);while(u.length!==c.length);const l=c.map(d=>s.createJoin(d.entries));return l.length===1?l[0]:s.createJoin(l,!1)}static clusterIteration(a){const s=[];for(const o of a){let u=!1;for(const c of s)if(Kw.haveOverlappingVariables(o.inScopeVariables,c.inScopeVariables)){c.entries=[...c.entries,...o.entries],c.inScopeVariables={...c.inScopeVariables,...o.inScopeVariables},u=!0;break}u||s.push({inScopeVariables:o.inScopeVariables,entries:o.entries})}return s}static haveOverlappingVariables(a,s){for(const o of Object.keys(a))if(s[o])return!0;return!1}};return o_.ActorOptimizeQueryOperationJoinConnected=r,o_}var _Q;function MLe(){return _Q||(_Q=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(jLe(),t)}(fI)),fI}var hI={},u_={},bQ;function FLe(){if(bQ)return u_;bQ=1,Object.defineProperty(u_,"__esModule",{value:!0}),u_.ActorOptimizeQueryOperationBgpToJoin=void 0;const t=Ua(),e=xt();let r=class extends t.ActorOptimizeQueryOperation{async test(a){return!0}async run(a){return{operation:e.Util.mapOperation(a.operation,{bgp(o,u){return{recurse:!1,result:u.createJoin(o.patterns)}}}),context:a.context}}};return u_.ActorOptimizeQueryOperationBgpToJoin=r,u_}var vQ;function BLe(){return vQ||(vQ=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(FLe(),t)}(hI)),hI}var pI={},c_={},wQ;function qLe(){if(wQ)return c_;wQ=1,Object.defineProperty(c_,"__esModule",{value:!0}),c_.ActorOptimizeQueryOperationJoinBgp=void 0;const t=Ua(),e=xt();let r=class extends t.ActorOptimizeQueryOperation{async test(a){return!0}async run(a){return{operation:e.Util.mapOperation(a.operation,{join(o,u){return o.input.every(c=>c.type==="bgp")?{recurse:!1,result:u.createBgp(o.input.flatMap(c=>c.patterns))}:{recurse:!1,result:o}}}),context:a.context}}};return c_.ActorOptimizeQueryOperationJoinBgp=r,c_}var SQ;function $Le(){return SQ||(SQ=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(qLe(),t)}(pI)),pI}var yI={},l_={},TQ;function ULe(){if(TQ)return l_;TQ=1,Object.defineProperty(l_,"__esModule",{value:!0}),l_.ActorOptimizeQueryOperationAssignSourcesExhaustive=void 0;const t=Ua(),e=Tt(),r=b4(),n=qt,a=xt();let s=class extends t.ActorOptimizeQueryOperation{constructor(u){super(u)}async test(u){return!0}async run(u){const c=u.context.get(n.KeysQueryOperation.querySources)??[];if(c.length===0)return{operation:u.operation,context:u.context};if(c.length===1){const l=c[0],d=u.context.get(n.KeysRdfUpdateQuads.destination);if(!d||l.source.referenceValue===(0,r.getDataDestinationValue)(d))try{const f=await l.source.getSelectorShape(u.context);if(e.ActorQueryOperation.doesShapeAcceptOperation(f,u.operation))return{operation:e.ActorQueryOperation.assignOperationSource(u.operation,l),context:u.context}}catch{}}return{operation:this.assignExhaustive(u.operation,c),context:u.context.delete(n.KeysInitQuery.queryString)}}assignExhaustive(u,c){const l=this;return a.Util.mapOperation(u,{[a.Algebra.types.PATTERN](d,f){return c.length===1?{result:e.ActorQueryOperation.assignOperationSource(d,c[0]),recurse:!1}:{result:f.createUnion(c.map(h=>e.ActorQueryOperation.assignOperationSource(d,h))),recurse:!1}},[a.Algebra.types.LINK](d,f){return c.length===1?{result:e.ActorQueryOperation.assignOperationSource(d,c[0]),recurse:!1}:{result:f.createAlt(c.map(h=>e.ActorQueryOperation.assignOperationSource(d,h))),recurse:!1}},[a.Algebra.types.NPS](d,f){return c.length===1?{result:e.ActorQueryOperation.assignOperationSource(d,c[0]),recurse:!1}:{result:f.createAlt(c.map(h=>e.ActorQueryOperation.assignOperationSource(d,h))),recurse:!1}},[a.Algebra.types.SERVICE](d){return{result:d,recurse:!1}},[a.Algebra.types.CONSTRUCT](d,f){return{result:f.createConstruct(l.assignExhaustive(d.input,c),d.template),recurse:!1}},[a.Algebra.types.DELETE_INSERT](d,f){return{result:f.createDeleteInsert(d.delete,d.insert,d.where?l.assignExhaustive(d.where,c):void 0),recurse:!1}}})}};return l_.ActorOptimizeQueryOperationAssignSourcesExhaustive=s,l_}var EQ;function kLe(){return EQ||(EQ=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(ULe(),t)}(yI)),yI}var mI={},d_={},AQ;function VLe(){if(AQ)return d_;AQ=1,Object.defineProperty(d_,"__esModule",{value:!0}),d_.ActorOptimizeQueryOperationDescribeToConstructsSubject=void 0;const t=Ua(),e=Ot,r=xt(),n=new e.DataFactory,a=new r.Factory;let s=class extends t.ActorOptimizeQueryOperation{constructor(u){super(u)}async test(u){if(u.operation.type!==r.Algebra.types.DESCRIBE)throw new Error(`Actor ${this.name} only supports describe operations, but got ${u.operation.type}`);return!0}async run(u){const c=u.operation,l=c.terms.filter(f=>f.termType!=="Variable").map(f=>{const h=[n.quad(f,n.variable("__predicate"),n.variable("__object"))];return h.forEach(m=>m.type="pattern"),{input:{type:r.Algebra.types.BGP,patterns:h},template:h,type:"construct"}});if(l.length!==c.terms.length){let f=[];c.terms.filter(h=>h.termType==="Variable").forEach((h,p)=>{const m=[n.quad(h,n.variable(`__predicate${p}`),n.variable(`__object${p}`))];m.forEach(y=>y.type="pattern"),f=[...f,...m]}),l.push({input:{type:r.Algebra.types.JOIN,input:[c.input,{type:r.Algebra.types.BGP,patterns:f}]},template:f,type:r.Algebra.types.CONSTRUCT})}return{operation:a.createUnion(l,!1),context:u.context}}};return d_.ActorOptimizeQueryOperationDescribeToConstructsSubject=s,d_}var OQ;function HLe(){return OQ||(OQ=1,function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(VLe(),t)}(mI)),mI}var QLe=function(t){const e=new(_Ee()).LoggerVoid,r=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-init/^3.0.0/components/ActorInit.jsonld#ActorInit_default_bus"}),n=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-context-preprocess/^3.0.0/components/ActorContextPreprocess.jsonld#ActorContextPreprocess_default_bus"}),a=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-hash-bindings/^3.0.0/components/ActorHashBindings.jsonld#ActorHashBindings_default_bus"}),s=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-optimize-query-operation/^3.0.0/components/ActorOptimizeQueryOperation.jsonld#ActorOptimizeQueryOperation_default_bus"}),o=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-query-parse/^3.0.0/components/ActorQueryParse.jsonld#ActorQueryParse_default_bus"}),u=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-query-result-serialize/^3.0.0/components/ActorQueryResultSerialize.jsonld#ActorQueryResultSerialize_default_bus"}),c=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-query-source-identify-hypermedia/^3.0.0/components/ActorQuerySourceIdentifyHypermedia.jsonld#ActorQuerySourceIdentifyHypermedia_default_bus"}),l=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-dereference/^3.0.0/components/ActorDereference.jsonld#ActorDereference_default_bus"}),d=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-dereference-rdf/^3.0.0/components/ActorDereferenceRdf.jsonld#ActorDereferenceRdf_default_bus"}),f=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-join-entries-sort/^3.0.0/components/ActorRdfJoinEntriesSort.jsonld#ActorRdfJoinEntriesSort_default_bus"}),h=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-join-selectivity/^3.0.0/components/ActorRdfJoinSelectivity.jsonld#ActorRdfJoinSelectivity_default_bus"}),p=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-metadata/^3.0.0/components/ActorRdfMetadata.jsonld#ActorRdfMetadata_default_bus"}),m=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-metadata-accumulate/^3.0.0/components/ActorRdfMetadataAccumulate.jsonld#ActorRdfMetadataAccumulate_default_bus"}),y=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-metadata-extract/^3.0.0/components/ActorRdfMetadataExtract.jsonld#ActorRdfMetadataExtract_default_bus"}),g=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-parse/^3.0.0/components/ActorRdfParse.jsonld#ActorRdfParse_default_bus"}),b=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-parse-html/^3.0.0/components/ActorRdfParseHtml.jsonld#ActorRdfParseHtml_default_bus"}),v=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-resolve-hypermedia-links-queue/^3.0.0/components/ActorRdfResolveHypermediaLinksQueue.jsonld#ActorRdfResolveHypermediaLinksQueue_default_bus"}),_=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-resolve-hypermedia-links/^3.0.0/components/ActorRdfResolveHypermediaLinks.jsonld#ActorRdfResolveHypermediaLinks_default_bus"}),w=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-serialize/^3.0.0/components/ActorRdfSerialize.jsonld#ActorRdfSerialize_default_bus"}),E=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-update-hypermedia/^3.0.0/components/ActorRdfUpdateHypermedia.jsonld#ActorRdfUpdateHypermedia_default_bus"}),O=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-update-quads/^3.0.0/components/ActorRdfUpdateQuads.jsonld#ActorRdfUpdateQuads_default_bus"}),L=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-http/^3.0.0/components/ActorHttp.jsonld#ActorHttp_default_bus"}),F=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-http/^3.0.0/components/ActorHttp.jsonld#ActorHttp_fallback_bus"}),x=new(Tt()).BusQueryOperation({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-query-operation/^3.0.0/components/ActorQueryOperation.jsonld#ActorQueryOperation_default_bus"}),P=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-query-process/^3.0.0/components/ActorQueryProcess.jsonld#ActorQueryProcess_default_bus"}),j=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-query-source-identify/^3.0.0/components/ActorQuerySourceIdentify.jsonld#ActorQuerySourceIdentify_default_bus"}),N=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-join/^3.0.0/components/ActorRdfJoin.jsonld#ActorRdfJoin_default_bus"}),V=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-http-invalidate/^3.0.0/components/ActorHttpInvalidate.jsonld#ActorHttpInvalidate_default_bus"}),$=new st.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-merge-bindings-context/^3.0.0/components/ActorMergeBindingsContext.jsonld#ActorMergeBindingsContext_default_bus"});new(GEe()).ActorContextPreprocessConvertShortcuts({contextKeyShortcuts:{baseIRI:"@comunica/actor-init-query:baseIRI",datetime:"@comunica/actor-http-memento:datetime",destination:"@comunica/bus-rdf-update-quads:destination",explain:"@comunica/actor-init-query:explain",extensionFunctionCreator:"@comunica/actor-init-query:extensionFunctionCreator",extensionFunctions:"@comunica/actor-init-query:extensionFunctions",fetch:"@comunica/bus-http:fetch",functionArgumentsCache:"@comunica/actor-init-query:functionArgumentsCache",httpAuth:"@comunica/bus-http:auth",httpBodyTimeout:"@comunica/bus-http:http-body-timeout",httpIncludeCredentials:"@comunica/bus-http:include-credentials",httpProxyHandler:"@comunica/actor-http-proxy:httpProxyHandler",httpRetryCount:"@comunica/bus-http:http-retry-count",httpRetryDelay:"@comunica/bus-http:http-retry-delay",httpRetryOnServerError:"@comunica/bus-http:http-retry-on-server-error",httpTimeout:"@comunica/bus-http:http-timeout",initialBindings:"@comunica/actor-init-query:initialBindings",lenient:"@comunica/actor-init-query:lenient",log:"@comunica/core:log",noCache:"@comunica/actor-init-query:noCache",queryFormat:"@comunica/actor-init-query:queryFormat",queryTimestamp:"@comunica/actor-init-query:queryTimestamp",readOnly:"@comunica/bus-query-operation:readOnly",recoverBrokenLinks:"@comunica/bus-http-wayback:recover-broken-links",sources:"@comunica/actor-init-query:querySourcesUnidentified",traverse:"@comunica/bus-query-source-identify:traverse",unionDefaultGraph:"@comunica/bus-query-operation:unionDefaultGraph"},name:"urn:comunica:default:context-preprocess/actors#convert-shortcuts",bus:n}),new(KEe()).ActorContextPreprocessSetDefaults({logger:e,name:"urn:comunica:default:context-preprocess/actors#set-defaults",bus:n}),new(XEe()).ActorContextPreprocessSourceToDestination({name:"urn:comunica:default:context-preprocess/actors#source-to-destination",bus:n});const q=new(PY()).ActorContextPreprocessQuerySourceSkolemize({name:"urn:comunica:default:context-preprocess/actors#query-source-skolemize",bus:n}),H=new(J8()).MediatorCombinePipeline({name:"urn:comunica:default:context-preprocess/mediators#main",bus:n});new(iAe()).ActorHashBindingsSha1({name:"urn:comunica:default:hash-bindings/actors#sha1",bus:a});const X=new(Qn()).MediatorRace({name:"urn:comunica:default:hash-bindings/mediators#main",bus:a});new(uAe()).ActorOptimizeQueryOperationRewriteCopy({name:"urn:comunica:default:optimize-query-operation/actors#rewrite-copy",bus:s}),new(lAe()).ActorOptimizeQueryOperationRewriteMove({name:"urn:comunica:default:optimize-query-operation/actors#rewrite-move",bus:s}),new(fAe()).ActorOptimizeQueryOperationRewriteAdd({name:"urn:comunica:default:optimize-query-operation/actors#rewrite-add",bus:s});const Y=new(pAe()).ActorOptimizeQueryOperationGroupSources({name:"urn:comunica:default:optimize-query-operation/actors#group-sources",bus:s}),he=new(J8()).MediatorCombinePipeline({filterErrors:!0,name:"urn:comunica:default:optimize-query-operation/mediators#main",bus:s});new(gAe()).ActorQueryParseSparql({prefixes:{dbpedia:"http://dbpedia.org/resource/","dbpedia-owl":"http://dbpedia.org/ontology/",dbpprop:"http://dbpedia.org/property/",dc:"http://purl.org/dc/terms/",dc11:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",foaf:"http://xmlns.com/foaf/0.1/",geo:"http://www.w3.org/2003/01/geo/wgs84_pos#",owl:"http://www.w3.org/2002/07/owl#",rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",schema:"http://schema.org/",skos:"http://www.w3.org/2008/05/skos#",xsd:"http://www.w3.org/2001/XMLSchema#"},name:"urn:comunica:default:query-parse/actors#sparql",bus:o}),new(Y3e()).ActorQueryParseGraphql({name:"urn:comunica:default:query-parse/actors#graphql",bus:o});const Te=new(Qn()).MediatorRace({name:"urn:comunica:default:query-parse/mediators#main",bus:o});new(nOe()).ActorQueryResultSerializeJson({mediaTypePriorities:{"application/json":1},mediaTypeFormats:{"application/json":"https://comunica.linkeddatafragments.org/#results_JSON"},name:"urn:comunica:default:query-result-serialize/actors#json",bus:u}),new(aOe()).ActorQueryResultSerializeSimple({mediaTypePriorities:{simple:.9},mediaTypeFormats:{simple:"https://comunica.linkeddatafragments.org/#results_simple"},name:"urn:comunica:default:query-result-serialize/actors#simple",bus:u}),new(oOe()).ActorQueryResultSerializeSparqlCsv({mediaTypePriorities:{"text/csv":.75},mediaTypeFormats:{"text/csv":"http://www.w3.org/ns/formats/SPARQL_Results_CSV"},name:"urn:comunica:default:query-result-serialize/actors#csv",bus:u}),new(lOe()).ActorQueryResultSerializeSparqlTsv({mediaTypePriorities:{"text/tab-separated-values":.75},mediaTypeFormats:{"text/tab-separated-values":"http://www.w3.org/ns/formats/SPARQL_Results_TSV"},name:"urn:comunica:default:query-result-serialize/actors#sparql-tsv",bus:u}),new(hOe()).ActorQueryResultSerializeSparqlXml({mediaTypePriorities:{"application/sparql-results+xml":.8},mediaTypeFormats:{"application/sparql-results+xml":"http://www.w3.org/ns/formats/SPARQL_Results_XML"},name:"urn:comunica:default:query-result-serialize/actors#sparql-xml",bus:u}),new(yOe()).ActorQueryResultSerializeTable({columnWidth:50,mediaTypePriorities:{table:.6},mediaTypeFormats:{table:"https://comunica.linkeddatafragments.org/#results_table"},name:"urn:comunica:default:query-result-serialize/actors#table",bus:u}),new(jOe()).ActorQueryResultSerializeTree({mediaTypePriorities:{tree:.5},mediaTypeFormats:{tree:"https://comunica.linkeddatafragments.org/#results_tree"},name:"urn:comunica:default:query-result-serialize/actors#tree",bus:u});const Ne=new(Qn()).MediatorRace({name:"urn:comunica:default:query-result-serialize/mediators#serialize",bus:u}),$e=new(Fo()).MediatorCombineUnion({field:"mediaTypes",name:"urn:comunica:default:query-result-serialize/mediators#mediaType",bus:u}),de=new(Fo()).MediatorCombineUnion({field:"mediaTypeFormats",name:"urn:comunica:default:query-result-serialize/mediators#mediaTypeFormat",bus:u}),ce=new(Ep()).MediatorNumber({field:"filterFactor",type:"max",ignoreErrors:!0,name:"urn:comunica:default:query-source-identify-hypermedia/mediators#main",bus:c}),xe=new(UOe()).ActorDereferenceFallback({name:"urn:comunica:default:dereference/actors#fallback",bus:l}),Pe=new(Qn()).MediatorRace({name:"urn:comunica:default:dereference/mediators#main",bus:l}),we=new(Qn()).MediatorRace({name:"urn:comunica:default:dereference-rdf/mediators#main",bus:d});new(QOe()).ActorRdfJoinEntriesSortCardinality({name:"urn:comunica:default:rdf-join-entries-sort/actors#cardinality",bus:f});const Re=new(Qn()).MediatorRace({name:"urn:comunica:default:rdf-join-entries-sort/mediators#main",bus:f});new(KOe()).ActorRdfJoinSelectivityVariableCounting({name:"urn:comunica:default:rdf-join-selectivity/actors#variable-counting",bus:h});const Se=new(Ep()).MediatorNumber({field:"accuracy",type:"max",ignoreErrors:!0,name:"urn:comunica:default:rdf-join-selectivity/mediators#main",bus:h});new(YOe()).ActorRdfMetadataPrimaryTopic({metadataToData:!1,dataToMetadataOnInvalidMetadataGraph:!0,name:"urn:comunica:default:rdf-metadata/actors#primary-topic",bus:p}),new(eRe()).ActorRdfMetadataAll({name:"urn:comunica:default:rdf-metadata/actors#all",bus:p});const z=new(Qn()).MediatorRace({name:"urn:comunica:default:rdf-metadata/mediators#main",bus:p});new(nRe()).ActorRdfMetadataAccumulateCanContainUndefs({name:"urn:comunica:default:rdf-metadata-accumulate/actors#cancontainundefs",bus:m}),new(aRe()).ActorRdfMetadataAccumulateCardinality({name:"urn:comunica:default:rdf-metadata-accumulate/actors#cardinality",bus:m}),new(oRe()).ActorRdfMetadataAccumulatePageSize({name:"urn:comunica:default:rdf-metadata-accumulate/actors#pagesize",bus:m}),new(cRe()).ActorRdfMetadataAccumulateRequestTime({name:"urn:comunica:default:rdf-metadata-accumulate/actors#requesttime",bus:m});const M=new(Fo()).MediatorCombineUnion({field:"metadata",name:"urn:comunica:default:rdf-metadata-accumulate/mediators#main",bus:m});new(hRe()).ActorRdfMetadataExtractHydraControls({name:"urn:comunica:default:rdf-metadata-extract/actors#hydra-controls",bus:y}),new(yRe()).ActorRdfMetadataExtractHydraCount({predicates:["http://www.w3.org/ns/hydra/core#totalItems","http://rdfs.org/ns/void#triples"],name:"urn:comunica:default:rdf-metadata-extract/actors#hydra-count",bus:y}),new(gRe()).ActorRdfMetadataExtractHydraPagesize({predicates:["http://www.w3.org/ns/hydra/core#itemsPerPage"],name:"urn:comunica:default:rdf-metadata-extract/actors#hydra-pagesize",bus:y}),new(bRe()).ActorRdfMetadataExtractRequestTime({name:"urn:comunica:default:rdf-metadata-extract/actors#request-time",bus:y}),new(wRe()).ActorRdfMetadataExtractAllowHttpMethods({name:"urn:comunica:default:rdf-metadata-extract/actors#allow-http-methods",bus:y}),new(TRe()).ActorRdfMetadataExtractPutAccepted({name:"urn:comunica:default:rdf-metadata-extract/actors#put-accepted",bus:y}),new(ARe()).ActorRdfMetadataExtractPatchSparqlUpdate({name:"urn:comunica:default:rdf-metadata-extract/actors#patch-sparql-update",bus:y}),new(RRe()).ActorRdfMetadataExtractSparqlService({inferHttpsEndpoint:!0,name:"urn:comunica:default:rdf-metadata-extract/actors#sparql-service",bus:y});const k=new(Fo()).MediatorCombineUnion({filterErrors:!0,field:"metadata",name:"urn:comunica:default:rdf-metadata-extract/mediators#main",bus:y});new(txe()).ActorRdfParseN3({mediaTypePriorities:{"application/n-quads":1,"application/n-triples":.8,"application/trig":.95,"text/n3":.35,"text/turtle":.6},mediaTypeFormats:{"application/n-quads":"http://www.w3.org/ns/formats/N-Quads","application/n-triples":"http://www.w3.org/ns/formats/N-Triples","application/trig":"http://www.w3.org/ns/formats/TriG","text/n3":"http://www.w3.org/ns/formats/N3","text/turtle":"http://www.w3.org/ns/formats/Turtle"},priorityScale:1,name:"urn:comunica:default:rdf-parse/actors#n3",bus:g}),new(Kxe()).ActorRdfParseRdfXml({mediaTypePriorities:{"application/rdf+xml":1},mediaTypeFormats:{"application/rdf+xml":"http://www.w3.org/ns/formats/RDF_XML"},priorityScale:.5,name:"urn:comunica:default:rdf-parse/actors#rdfxml",bus:g}),new(cPe()).ActorRdfParseXmlRdfa({mediaTypePriorities:{"application/xml":1,"image/svg+xml":1,"text/xml":1},mediaTypeFormats:{"application/xml":"http://www.w3.org/ns/formats/RDFa","image/svg+xml":"http://www.w3.org/ns/formats/RDFa","text/xml":"http://www.w3.org/ns/formats/RDFa"},priorityScale:.3,name:"urn:comunica:default:rdf-parse/actors#xmlrdfa",bus:g}),new(gPe()).ActorRdfParseShaclc({mediaTypePriorities:{"text/shaclc":1,"text/shaclc-ext":.5},mediaTypeFormats:{"text/shaclc":"http://www.w3.org/ns/formats/Shaclc","text/shaclc-ext":"http://www.w3.org/ns/formats/ShaclcExtended"},priorityScale:.1,name:"urn:comunica:default:rdf-parse/actors#shaclc",bus:g});const T=new(Qn()).MediatorRace({name:"urn:comunica:default:rdf-parse/mediators#parse",bus:g}),R=new(Fo()).MediatorCombineUnion({field:"mediaTypes",name:"urn:comunica:default:rdf-parse/mediators#mediaType",bus:g});new(xPe()).ActorRdfParseHtml({busRdfParseHtml:b,mediaTypePriorities:{"application/xhtml+xml":.9,"text/html":1},mediaTypeFormats:{"application/xhtml+xml":"http://www.w3.org/ns/formats/HTML","text/html":"http://www.w3.org/ns/formats/HTML"},priorityScale:.2,name:"urn:comunica:default:rdf-parse/actors#html",bus:g}),new(kPe()).ActorRdfParseHtmlMicrodata({name:"urn:comunica:default:rdf-parse-html/actors#microdata",bus:b}),new(HPe()).ActorRdfParseHtmlRdfa({name:"urn:comunica:default:rdf-parse-html/actors#rdfa",bus:b}),new(JPe()).ActorRdfResolveHypermediaLinksQueueFifo({name:"urn:comunica:default:rdf-resolve-hypermedia-links-queue/actors#fifo",bus:v});const U=new(Qn()).MediatorRace({name:"urn:comunica:default:rdf-resolve-hypermedia-links-queue/mediators#main",bus:v});new(eNe()).ActorRdfResolveHypermediaLinksNext({name:"urn:comunica:default:rdf-resolve-hypermedia-links/actors#next",bus:_});const G=new(Qn()).MediatorRace({name:"urn:comunica:default:rdf-resolve-hypermedia-links/mediators#main",bus:_});new(iNe()).ActorRdfSerializeN3({mediaTypePriorities:{"application/n-quads":1,"application/n-triples":.8,"application/trig":.95,"text/n3":.35,"text/turtle":.6},mediaTypeFormats:{"application/n-quads":"http://www.w3.org/ns/formats/N-Quads","application/n-triples":"http://www.w3.org/ns/formats/N-Triples","application/trig":"http://www.w3.org/ns/formats/TriG","text/n3":"http://www.w3.org/ns/formats/N3","text/turtle":"http://www.w3.org/ns/formats/Turtle"},name:"urn:comunica:default:rdf-serialize/actors#n3",bus:w}),new(cNe()).ActorRdfSerializeJsonLd({jsonStringifyIndentSpaces:2,mediaTypePriorities:{"application/ld+json":1},mediaTypeFormats:{"application/ld+json":"http://www.w3.org/ns/formats/JSON-LD"},priorityScale:.9,name:"urn:comunica:default:rdf-serialize/actors#jsonld",bus:w}),new(ONe()).ActorRdfSerializeShaclc({mediaTypePriorities:{"text/shaclc":1,"text/shaclc-ext":.5},mediaTypeFormats:{"text/shaclc":"http://www.w3.org/ns/formats/Shaclc","text/shaclc-ext":"http://www.w3.org/ns/formats/ShaclcExtended"},priorityScale:.1,name:"urn:comunica:default:rdf-serialize/actors#shaclc",bus:w});const Q=new(Qn()).MediatorRace({name:"urn:comunica:default:rdf-serialize/mediators#serialize",bus:w}),Z=new(Fo()).MediatorCombineUnion({field:"mediaTypes",name:"urn:comunica:default:rdf-serialize/mediators#mediaType",bus:w}),se=new(Fo()).MediatorCombineUnion({field:"mediaTypeFormats",name:"urn:comunica:default:rdf-serialize/mediators#mediaTypeFormat",bus:w}),re=new(Qn()).MediatorRace({name:"urn:comunica:default:rdf-update-hypermedia/mediators#main",bus:E});new(CNe()).ActorRdfUpdateQuadsRdfJsStore({name:"urn:comunica:default:rdf-update-quads/actors#rdfjs-store",bus:O});const le=new(Qn()).MediatorRace({name:"urn:comunica:default:rdf-update-quads/mediators#main",bus:O}),pe=new(UNe()).ActorHttpFetch({agentOptions:{keepAlive:!0,maxSockets:5},name:"urn:comunica:default:http/actors#fetch",bus:L}),_e=new(Ep()).MediatorNumber({field:"time",type:"min",ignoreErrors:!0,name:"urn:comunica:default:http/mediators#no-fallback",bus:L}),Ie=new(Ep()).MediatorNumber({field:"time",type:"min",ignoreErrors:!0,name:"urn:comunica:default:http/mediators#main",bus:F});new(VNe()).ActorQueryOperationSource({name:"urn:comunica:default:query-operation/actors#source",bus:x});const Ee=new(Ep()).MediatorNumber({field:"httpRequests",type:"min",ignoreErrors:!0,name:"urn:comunica:default:query-operation/mediators#main",bus:x}),Me=new(Qn()).MediatorRace({name:"urn:comunica:default:query-process/mediators#main",bus:P}),Ce=new(Qn()).MediatorRace({name:"urn:comunica:default:query-source-identify/mediators#main",bus:j}),ke=new(QNe()).MediatorJoinCoefficientsFixed({cpuWeight:10,memoryWeight:1,timeWeight:2,ioWeight:10,name:"urn:comunica:default:rdf-join/mediators#main",bus:N}),qe=new(uw()).ActorHttpInvalidateListenable({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-context-preprocess-query-source-identify/^3.0.0/components/ActorContextPreprocessQuerySourceIdentify.jsonld#IActorContextPreprocessQuerySourceIdentifyArgs_default_invalidator",bus:V}),W=new(WNe()).MediatorAll({name:"urn:comunica:default:http-invalidate/mediators#main",bus:V}),D=new(uw()).ActorHttpInvalidateListenable({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-rdf-update-quads-hypermedia/^3.0.0/components/ActorRdfUpdateQuadsHypermedia.jsonld#IActorRdfUpdateQuadsHypermediaArgs_default_invalidator",bus:V}),B=new(uw()).ActorHttpInvalidateListenable({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-result-serialize-sparql-json/^3.0.0/components/ActionObserverHttp.jsonld#IActionObserverHttpArgs_default_invalidator",bus:V}),K=new(uw()).ActorHttpInvalidateListenable({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-result-serialize-stats/^3.0.0/components/ActionObserverHttp.jsonld#IActionObserverHttpArgs_default_invalidator",bus:V}),ne=new(Fo()).MediatorCombineUnion({field:"mergeHandlers",name:"urn:comunica:default:merge-bindings-context/mediators#main",bus:$});new(ZNe()).ActorRdfJoinSingle({mediatorJoinSelectivity:Se,name:"urn:comunica:default:rdf-join/actors#inner-single",bus:N}),new(tDe()).ActorRdfJoinMultiEmpty({mediatorJoinSelectivity:Se,name:"urn:comunica:default:rdf-join/actors#inner-multi-empty",bus:N}),new(nDe()).ActorRdfJoinMultiBindSource({selectivityModifier:1e-4,blockSize:16,mediatorJoinEntriesSort:Re,mediatorJoinSelectivity:Se,name:"urn:comunica:default:rdf-join/actors#inner-multi-bind-source",bus:N}),new(lDe()).ActorRdfJoinHash({mediatorJoinSelectivity:Se,name:"urn:comunica:default:rdf-join/actors#inner-hash",bus:N}),new(fDe()).ActorRdfJoinSymmetricHash({mediatorJoinSelectivity:Se,name:"urn:comunica:default:rdf-join/actors#inner-symmetric-hash",bus:N}),new(pDe()).ActorRdfJoinNestedLoop({mediatorJoinSelectivity:Se,name:"urn:comunica:default:rdf-join/actors#inner-nested-loop",bus:N}),new(mDe()).ActorRdfJoinMinusHash({mediatorJoinSelectivity:Se,name:"urn:comunica:default:rdf-join/actors#minus-hash",bus:N}),new(bDe()).ActorRdfJoinMinusHashUndef({mediatorJoinSelectivity:Se,name:"urn:comunica:default:rdf-join/actors#minus-hash-undef",bus:N}),new(cw()).ActorRdfJoinOptionalHash({canHandleUndefs:!1,blocking:!1,mediatorJoinSelectivity:Se,name:"urn:comunica:default:rdf-join/actors#optional-hash-def-nonblocking",bus:N}),new(cw()).ActorRdfJoinOptionalHash({canHandleUndefs:!1,blocking:!0,mediatorJoinSelectivity:Se,name:"urn:comunica:default:rdf-join/actors#optional-hash-def-blocking",bus:N}),new(cw()).ActorRdfJoinOptionalHash({canHandleUndefs:!0,blocking:!1,mediatorJoinSelectivity:Se,name:"urn:comunica:default:rdf-join/actors#optional-hash-undef-nonblocking",bus:N}),new(cw()).ActorRdfJoinOptionalHash({canHandleUndefs:!0,blocking:!0,mediatorJoinSelectivity:Se,name:"urn:comunica:default:rdf-join/actors#optional-hash-undef-blocking",bus:N}),new(EDe()).ActorRdfJoinOptionalNestedLoop({mediatorJoinSelectivity:Se,name:"urn:comunica:default:rdf-join/actors#optional-nested-loop",bus:N}),new(xDe()).ActorDereferenceRdfParse({mediatorDereference:Pe,mediatorParse:T,mediatorParseMediatypes:R,mediaMappings:{htm:"text/html",html:"text/html",json:"application/json",jsonld:"application/ld+json",n3:"text/n3",nq:"application/n-quads",nquads:"application/n-quads",nt:"application/n-triples",ntriples:"application/n-triples",owl:"application/rdf+xml",rdf:"application/rdf+xml",rdfxml:"application/rdf+xml",shaclc:"text/shaclc",shaclce:"text/shaclc-ext",shc:"text/shaclc",shce:"text/shaclc-ext",svg:"image/svg+xml",svgz:"image/svg+xml",trig:"application/trig",ttl:"text/turtle",turtle:"text/turtle",xht:"application/xhtml+xml",xhtml:"application/xhtml+xml",xml:"application/xml"},name:"urn:comunica:default:dereference-rdf/actors#parse",bus:d}),new(NDe()).ActorRdfParseHtmlScript({mediatorRdfParseMediatypes:R,mediatorRdfParseHandle:T,name:"urn:comunica:default:rdf-parse-html/actors#script",bus:b}),new(CDe()).ActorQueryResultSerializeRdf({mediatorRdfSerialize:Q,mediatorMediaTypeCombiner:Z,mediatorMediaTypeFormatCombiner:se,name:"urn:comunica:default:query-result-serialize/actors#rdf",bus:u}),new(jDe()).ActorHttpWayback({mediatorHttp:_e,name:"urn:comunica:default:http/actors#wayback",bus:F}),new(lCe()).ActorRdfParseJsonLd({mediatorHttp:Ie,mediaTypePriorities:{"application/json":.15,"application/ld+json":1},mediaTypeFormats:{"application/json":"http://www.w3.org/ns/formats/JSON-LD","application/ld+json":"http://www.w3.org/ns/formats/JSON-LD"},priorityScale:.9,name:"urn:comunica:default:rdf-parse/actors#jsonld",bus:g}),new(hCe()).ActorRdfUpdateHypermediaPatchSparqlUpdate({mediatorHttp:Ie,name:"urn:comunica:default:rdf-update-hypermedia/actors#patch-sparql-update",bus:E}),new(yCe()).ActorRdfUpdateHypermediaPutLdp({mediatorHttp:Ie,mediatorRdfSerializeMediatypes:Z,mediatorRdfSerialize:Q,name:"urn:comunica:default:rdf-update-hypermedia/actors#put-ldp",bus:E}),new(SCe()).ActorRdfUpdateHypermediaSparql({mediatorHttp:Ie,checkUrlSuffixSparql:!0,checkUrlSuffixUpdate:!0,name:"urn:comunica:default:rdf-update-hypermedia/actors#sparql",bus:E}),new(ECe()).ActorQueryOperationAsk({mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#ask",bus:x}),new(OCe()).ActorQueryOperationBgpJoin({mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#bgp",bus:x}),new(xCe()).ActorQueryOperationDistinctHash({mediatorHashBindings:X,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#distinct",bus:x}),new(Vee()).ActorQueryOperationConstruct({mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#construct",bus:x}),new(NCe()).ActorQueryOperationFromQuad({mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#from",bus:x}),new(CCe()).ActorQueryOperationProject({mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#project",bus:x}),new(jCe()).ActorQueryOperationReducedHash({mediatorHashBindings:X,cacheSize:100,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#reduced",bus:x}),new(FCe()).ActorQueryOperationSlice({mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#slice",bus:x}),new(Qee()).ActorQueryOperationUnion({mediatorRdfMetadataAccumulate:M,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#union",bus:x}),new(UCe()).ActorQueryOperationPathAlt({mediatorRdfMetadataAccumulate:M,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#path-alt",bus:x}),new(VCe()).ActorQueryOperationPathInv({mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#path-inv",bus:x}),new(QCe()).ActorQueryOperationPathLink({mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#path-link",bus:x}),new(GCe()).ActorQueryOperationPathNps({mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#path-nps",bus:x}),new(KCe()).ActorQueryOperationClear({mediatorUpdateQuads:le,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#update-clear",bus:x}),new(XCe()).ActorQueryOperationUpdateCompositeUpdate({mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#update-composite",bus:x}),new(ZCe()).ActorQueryOperationCreate({mediatorUpdateQuads:le,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#update-create",bus:x}),new(t4e()).ActorQueryOperationDrop({mediatorUpdateQuads:le,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#update-drop",bus:x}),new(n4e()).ActorQueryOperationLoad({mediatorUpdateQuads:le,mediatorQuerySourceIdentify:Ce,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#update-load",bus:x}),new(a4e()).ActorQueryOperationJoin({mediatorJoin:ke,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#join",bus:x}),new(o4e()).ActorQueryOperationMinus({mediatorJoin:ke,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#minus",bus:x}),new(c4e()).ActorQueryOperationPathSeq({mediatorJoin:ke,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#path-seq",bus:x}),new(d4e()).ActorRdfJoinMultiSmallest({mediatorJoinEntriesSort:Re,mediatorJoin:ke,mediatorJoinSelectivity:Se,name:"urn:comunica:default:rdf-join/actors#inner-multi-smallest",bus:N}),new(p4e()).ActorRdfJoinMultiSmallestFilterBindings({selectivityModifier:1e-4,blockSize:64,mediatorJoinEntriesSort:Re,mediatorJoin:ke,mediatorJoinSelectivity:Se,name:"urn:comunica:default:rdf-join/actors#inner-multi-smallest-filter-bindings",bus:N});const fe=new(m4e()).ActorOptimizeQueryOperationFilterPushdown({name:"urn:comunica:default:optimize-query-operation/actors#filter-pushdown",bus:s,beforeActors:[Y]});new(_4e()).ActorDereferenceHttp({mediatorHttp:Ie,maxAcceptHeaderLength:1024,maxAcceptHeaderLengthBrowser:128,name:"urn:comunica:default:dereference/actors#http",bus:l,beforeActors:[xe]}),new(w4e()).ActorHttpProxy({mediatorHttp:Ie,name:"urn:comunica:default:http/actors#proxy",bus:L,beforeActors:[pe]}),new(T4e()).ActorContextPreprocessQuerySourceIdentify({cacheSize:100,httpInvalidator:qe,mediatorQuerySourceIdentify:Ce,mediatorContextPreprocess:H,name:"urn:comunica:default:context-preprocess/actors#query-source-identify",bus:n,beforeActors:[q]});const ge=new iC.ActorInitQuery({mediatorQueryProcess:Me,mediatorQueryResultSerialize:Ne,mediatorQueryResultSerializeMediaTypeCombiner:$e,mediatorQueryResultSerializeMediaTypeFormatCombiner:de,mediatorHttpInvalidate:W,defaultQueryInputFormat:"sparql",allowNoSources:!1,name:"urn:comunica:default:init/actors#query",bus:r});new(A4e()).ActorRdfUpdateQuadsHypermedia({cacheSize:100,httpInvalidator:D,mediatorDereferenceRdf:we,mediatorMetadata:z,mediatorMetadataExtract:k,mediatorRdfUpdateHypermedia:re,name:"urn:comunica:default:rdf-update-quads/actors#hypermedia",bus:O});const Le=new(hk()).ActionObserverHttp({httpInvalidator:B,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-result-serialize-sparql-json/^3.0.0/components/ActorQueryResultSerializeSparqlJson.jsonld#ActorQueryResultSerializeSparqlJson_default_observer",bus:L}),ee=new(gk()).ActionObserverHttp({httpInvalidator:K,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-result-serialize-stats/^3.0.0/components/ActorQueryResultSerializeStats.jsonld#ActorQueryResultSerializeStats_default_observer",bus:L});new(L4e()).ActorQuerySourceIdentifyHypermediaQpf({mediatorMetadata:z,mediatorMetadataExtract:k,mediatorDereferenceRdf:we,mediatorMergeBindingsContext:ne,subjectUri:"http://www.w3.org/1999/02/22-rdf-syntax-ns#subject",predicateUri:"http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate",objectUri:"http://www.w3.org/1999/02/22-rdf-syntax-ns#object",graphUri:"http://www.w3.org/ns/sparql-service-description#graph",name:"urn:comunica:default:query-source-identify-hypermedia/actors#qpf",bus:c}),new(M4e()).ActorQuerySourceIdentifyHypermediaSparql({mediatorHttp:Ie,mediatorMergeBindingsContext:ne,checkUrlSuffix:!0,forceHttpGet:!1,cacheSize:1024,bindMethod:"values",countTimeout:3e3,name:"urn:comunica:default:rdf-resolve-quad-pattern/actors#sparql",bus:c}),new(Y4e()).ActorQuerySourceIdentifyHypermediaNone({mediatorMergeBindingsContext:ne,name:"urn:comunica:default:query-source-identify-hypermedia/actors#none",bus:c}),new(q6e()).ActorQueryOperationExtend({mediatorMergeBindingsContext:ne,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#extend",bus:x}),new(U6e()).ActorQueryOperationFilter({mediatorMergeBindingsContext:ne,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#filter",bus:x}),new(H6e()).ActorQueryOperationGroup({mediatorHashBindings:X,mediatorMergeBindingsContext:ne,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#group",bus:x}),new(z6e()).ActorQueryOperationLeftJoin({mediatorJoin:ke,mediatorMergeBindingsContext:ne,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#leftjoin",bus:x}),new(W6e()).ActorQueryOperationNop({mediatorMergeBindingsContext:ne,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#nop",bus:x}),new(X6e()).ActorQueryOperationOrderBy({mediatorMergeBindingsContext:ne,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#orderby",bus:x}),new(Z6e()).ActorQueryOperationService({forceSparqlEndpoint:!1,mediatorMergeBindingsContext:ne,mediatorQuerySourceIdentify:Ce,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#service",bus:x}),new(tLe()).ActorQueryOperationValues({mediatorMergeBindingsContext:ne,name:"urn:comunica:default:query-operation/actors#values",bus:x}),new(nLe()).ActorQueryOperationPathOneOrMore({mediatorMergeBindingsContext:ne,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#path-one-or-more",bus:x}),new(aLe()).ActorQueryOperationPathZeroOrMore({mediatorMergeBindingsContext:ne,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#path-zero-or-more",bus:x}),new(oLe()).ActorQueryOperationPathZeroOrOne({mediatorMergeBindingsContext:ne,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#path-zero-or-one",bus:x}),new(cLe()).ActorQueryOperationUpdateDeleteInsert({mediatorUpdateQuads:le,mediatorMergeBindingsContext:ne,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#update-delete-insert",bus:x});const Oe=new(fLe()).ActorQueryProcessSequential({mediatorContextPreprocess:H,mediatorQueryParse:Te,mediatorOptimizeQueryOperation:he,mediatorQueryOperation:Ee,mediatorMergeBindingsContext:ne,name:"urn:comunica:default:query-process/actors#sequential",bus:P}),De=new(bLe()).ActorQuerySourceIdentifyHypermedia({cacheSize:100,maxIterators:64,aggregateTraversalStore:!0,mediatorDereferenceRdf:we,mediatorMetadata:z,mediatorMetadataExtract:k,mediatorMetadataAccumulate:M,mediatorQuerySourceIdentifyHypermedia:ce,mediatorRdfResolveHypermediaLinks:G,mediatorRdfResolveHypermediaLinksQueue:U,mediatorMergeBindingsContext:ne,name:"urn:comunica:default:query-source-identify/actors#hypermedia",bus:j});new(wLe()).ActorRdfJoinNone({mediatorMergeBindingsContext:ne,mediatorJoinSelectivity:Se,name:"urn:comunica:default:rdf-join/actors#inner-none",bus:N}),new(Lte()).ActorRdfJoinMultiBind({bindOrder:"depth-first",selectivityModifier:1e-4,mediatorJoinEntriesSort:Re,mediatorQueryOperation:Ee,mediatorMergeBindingsContext:ne,mediatorJoinSelectivity:Se,name:"urn:comunica:default:rdf-join/actors#inner-multi-bind",bus:N}),new(ELe()).ActorRdfJoinOptionalBind({bindOrder:"depth-first",selectivityModifier:1e-6,mediatorQueryOperation:Ee,mediatorMergeBindingsContext:ne,mediatorJoinSelectivity:Se,name:"urn:comunica:default:rdf-join/actors#optional-bind",bus:N}),new(hk()).ActorQueryResultSerializeSparqlJson({emitMetadata:!0,httpObserver:Le,mediaTypePriorities:{"application/sparql-results+json":.8},mediaTypeFormats:{"application/sparql-results+json":"http://www.w3.org/ns/formats/SPARQL_Results_JSON"},name:"urn:comunica:default:query-result-serialize/actors#sparql-json",bus:u}),new(gk()).ActorQueryResultSerializeStats({httpObserver:ee,mediaTypePriorities:{stats:.5},mediaTypeFormats:{stats:"https://comunica.linkeddatafragments.org/#results_stats"},name:"urn:comunica:default:query-result-serialize/actors#stats",bus:u}),new(OLe()).ActorQueryProcessExplainParsed({queryProcessor:Oe,name:"urn:comunica:default:query-process/actors#explain-parsed",bus:P}),new(xLe()).ActorQueryProcessExplainLogical({queryProcessor:Oe,name:"urn:comunica:default:query-process/actors#explain-logical",bus:P}),new(PLe()).ActorQueryProcessExplainPhysical({queryProcessor:Oe,name:"urn:comunica:default:query-process/actors#explain-physical",bus:P});const Ue=new(DLe()).ActorOptimizeQueryOperationPruneEmptySourceOperations({useAskIfSupported:!1,name:"urn:comunica:default:optimize-query-operation/actors#prune-empty-source-operations",bus:s,beforeActors:[fe]});new(E4()).ActorQuerySourceIdentifyRdfJs({mediatorMergeBindingsContext:ne,name:"urn:comunica:default:query-source-identify/actors#rdfjs",bus:j,beforeActors:[De]}),new(LLe()).ActorQuerySourceIdentifySerialized({mediatorRdfParse:T,mediatorQuerySourceIdentify:Ce,name:"urn:comunica:default:query-source-identify/actors#serialized",bus:j,beforeActors:[De]});const Ye=new(MLe()).ActorOptimizeQueryOperationJoinConnected({name:"urn:comunica:default:optimize-query-operation/actors#join-connected",bus:s,beforeActors:[Ue]}),ut=new(BLe()).ActorOptimizeQueryOperationBgpToJoin({name:"urn:comunica:default:optimize-query-operation/actors#bgp-to-join",bus:s,beforeActors:[Ye]}),at=new($Le()).ActorOptimizeQueryOperationJoinBgp({name:"urn:comunica:default:optimize-query-operation/actors#join-bgp",bus:s,beforeActors:[ut]}),ct=new(kLe()).ActorOptimizeQueryOperationAssignSourcesExhaustive({name:"urn:comunica:default:optimize-query-operation/actors#assign-sources-exhaustive",bus:s,beforeActors:[at]});return new(HLe()).ActorOptimizeQueryOperationDescribeToConstructsSubject({name:"urn:comunica:default:optimize-query-operation/actors#describe-to-constructs-subject",bus:s,beforeActors:[ct]}),ge};Object.defineProperty(U2,"__esModule",{value:!0});U2.QueryEngine=void 0;const zLe=iC,GLe=QLe;class WLe extends zLe.QueryEngineBase{constructor(e=GLe()){super(e)}}U2.QueryEngine=WLe;(function(t){var e=I&&I.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=I&&I.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(U2,t)})(nC);const f_="http://www.w3.org/1999/02/22-rdf-syntax-ns#",h_="http://www.w3.org/2001/XMLSchema#",gI="http://www.w3.org/2000/10/swap/",Ln={xsd:{decimal:`${h_}decimal`,boolean:`${h_}boolean`,double:`${h_}double`,integer:`${h_}integer`,string:`${h_}string`},rdf:{type:`${f_}type`,nil:`${f_}nil`,first:`${f_}first`,rest:`${f_}rest`,langString:`${f_}langString`},owl:{sameAs:"http://www.w3.org/2002/07/owl#sameAs"},r:{forSome:`${gI}reify#forSome`,forAll:`${gI}reify#forAll`},log:{implies:`${gI}log#implies`}},{xsd:hw}=Ln,KLe=/\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{8})|\\([^])/g,RQ={"\\":"\\","'":"'",'"':'"',n:` +`,r:"\r",t:" ",f:"\f",b:"\b",_:"_","~":"~",".":".","-":"-","!":"!",$:"$","&":"&","(":"(",")":")","*":"*","+":"+",",":",",";":";","=":"=","/":"/","?":"?","#":"#","@":"@","%":"%"},JLe=/[\x00-\x20<>\\"\{\}\|\^\`]/,XLe={_iri:!0,_unescapedIri:!0,_simpleQuotedString:!0,_langcode:!0,_blank:!0,_newline:!0,_comment:!0,_whitespace:!0,_endOfFile:!0},YLe=/$0^/;class ZLe{constructor(e){if(this._iri=/^<((?:[^ <>{}\\]|\\[uU])+)>[ \t]*/,this._unescapedIri=/^<([^\x00-\x20<>\\"\{\}\|\^\`]*)>[ \t]*/,this._simpleQuotedString=/^"([^"\\\r\n]*)"(?=[^"])/,this._simpleApostropheString=/^'([^'\\\r\n]*)'(?=[^'])/,this._langcode=/^@([a-z]+(?:-[a-z0-9]+)*)(?=[^a-z0-9\-])/i,this._prefix=/^((?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)?:(?=[#\s<])/,this._prefixed=/^((?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)?:((?:(?:[0-:A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])(?:(?:[\.\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])*(?:[\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~]))?)?)(?:[ \t]+|(?=\.?[,;!\^\s#()\[\]\{\}"'<>]))/,this._variable=/^\?(?:(?:[A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:[\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)(?=[.,;!\^\s#()\[\]\{\}"'<>])/,this._blank=/^_:((?:[0-9A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)(?:[ \t]+|(?=\.?[,;:\s#()\[\]\{\}"'<>]))/,this._number=/^[\-+]?(?:(\d+\.\d*|\.?\d+)[eE][\-+]?|\d*(\.)?)\d+(?=\.?[,;:\s#()\[\]\{\}"'<>])/,this._boolean=/^(?:true|false)(?=[.,;\s#()\[\]\{\}"'<>])/,this._keyword=/^@[a-z]+(?=[\s#<:])/i,this._sparqlKeyword=/^(?:PREFIX|BASE|GRAPH)(?=[\s#<])/i,this._shortPredicates=/^a(?=[\s#()\[\]\{\}"'<>])/,this._newline=/^[ \t]*(?:#[^\n\r]*)?(?:\r\n|\n|\r)[ \t]*/,this._comment=/#([^\n\r]*)/,this._whitespace=/^[ \t]+/,this._endOfFile=/^(?:#[^\n\r]*)?$/,e=e||{},this._lineMode=!!e.lineMode){this._n3Mode=!1;for(const r in this)!(r in XLe)&&this[r]instanceof RegExp&&(this[r]=YLe)}else this._n3Mode=e.n3!==!1;this._comments=!!e.comments,this._literalClosingPos=0}_tokenizeToEnd(e,r){let n=this._input,a=n.length;for(;;){let u,c;for(;u=this._newline.exec(n);)this._comments&&(c=this._comment.exec(u[0]))&&s("comment",c[1],"",this._line,u[0].length),n=n.substr(u[0].length,n.length),a=n.length,this._line++;if(!u&&(u=this._whitespace.exec(n))&&(n=n.substr(u[0].length,n.length)),this._endOfFile.test(n))return r&&(this._comments&&(c=this._comment.exec(n))&&s("comment",c[1],"",this._line,n.length),n=null,s("eof","","",this._line,0)),this._input=n;const l=this._line,d=n[0];let f="",h="",p="",m=null,y=0,g=!1;switch(d){case"^":if(n.length<3)break;if(n[1]==="^"){if(this._previousMarker="^^",n=n.substr(2),n[0]!=="<"){g=!0;break}}else{this._n3Mode&&(y=1,f="^");break}case"<":if(m=this._unescapedIri.exec(n))f="IRI",h=m[1];else if(m=this._iri.exec(n)){if(h=this._unescape(m[1]),h===null||JLe.test(h))return o(this);f="IRI"}else n.length>1&&n[1]==="<"?(f="<<",y=2):this._n3Mode&&n.length>1&&n[1]==="="&&(f="inverse",y=2,h=">");break;case">":n.length>1&&n[1]===">"&&(f=">>",y=2);break;case"_":((m=this._blank.exec(n))||r&&(m=this._blank.exec(`${n} `)))&&(f="blank",p="_",h=m[1]);break;case'"':if(m=this._simpleQuotedString.exec(n))h=m[1];else if({value:h,matchLength:y}=this._parseLiteral(n),h===null)return o(this);(m!==null||y!==0)&&(f="literal",this._literalClosingPos=0);break;case"'":if(!this._lineMode){if(m=this._simpleApostropheString.exec(n))h=m[1];else if({value:h,matchLength:y}=this._parseLiteral(n),h===null)return o(this);(m!==null||y!==0)&&(f="literal",this._literalClosingPos=0)}break;case"?":this._n3Mode&&(m=this._variable.exec(n))&&(f="var",h=m[0]);break;case"@":this._previousMarker==="literal"&&(m=this._langcode.exec(n))?(f="langcode",h=m[1]):(m=this._keyword.exec(n))&&(f=m[0]);break;case".":if(n.length===1?r:n[1]<"0"||n[1]>"9"){f=".",y=1;break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"+":case"-":(m=this._number.exec(n)||r&&(m=this._number.exec(`${n} `)))&&(f="literal",h=m[0],p=typeof m[1]=="string"?hw.double:typeof m[2]=="string"?hw.decimal:hw.integer);break;case"B":case"b":case"p":case"P":case"G":case"g":(m=this._sparqlKeyword.exec(n))?f=m[0].toUpperCase():g=!0;break;case"f":case"t":(m=this._boolean.exec(n))?(f="literal",h=m[0],p=hw.boolean):g=!0;break;case"a":(m=this._shortPredicates.exec(n))?(f="abbreviation",h="a"):g=!0;break;case"=":this._n3Mode&&n.length>1&&(f="abbreviation",n[1]!==">"?(y=1,h="="):(y=2,h=">"));break;case"!":if(!this._n3Mode)break;case",":case";":case"[":case"]":case"(":case")":case"}":this._lineMode||(y=1,f=d);break;case"{":!this._lineMode&&n.length>=2&&(n[1]==="|"?(f="{|",y=2):(f=d,y=1));break;case"|":n.length>=2&&n[1]==="}"&&(f="|}",y=2);break;default:g=!0}if(g&&((this._previousMarker==="@prefix"||this._previousMarker==="PREFIX")&&(m=this._prefix.exec(n))?(f="prefix",h=m[1]||""):((m=this._prefixed.exec(n))||r&&(m=this._prefixed.exec(`${n} `)))&&(f="prefixed",p=m[1]||"",h=this._unescape(m[2]))),this._previousMarker==="^^")switch(f){case"prefixed":f="type";break;case"IRI":f="typeIRI";break;default:f=""}if(!f)return r||!/^'''|^"""/.test(n)&&/\n|\r/.test(n)?o(this):this._input=n;const b=y||m[0].length,v=s(f,h,p,l,b);this.previousToken=v,this._previousMarker=f,n=n.substr(b,n.length)}function s(u,c,l,d,f){const h=n?a-n.length:a,p=h+f,m={type:u,value:c,prefix:l,line:d,start:h,end:p};return e(null,m),m}function o(u){e(u._syntaxError(/^\S*/.exec(n)[0]))}}_unescape(e){let r=!1;const n=e.replace(KLe,(a,s,o,u)=>{if(typeof s=="string")return String.fromCharCode(Number.parseInt(s,16));if(typeof o=="string"){let c=Number.parseInt(o,16);return c<=65535?String.fromCharCode(Number.parseInt(o,16)):String.fromCharCode(55296+((c-=65536)>>10),56320+(c&1023))}return u in RQ?RQ[u]:(r=!0,"")});return r?null:n}_parseLiteral(e){if(e.length>=3){const r=e.match(/^(?:"""|"|'''|'|)/)[0],n=r.length;let a=Math.max(this._literalClosingPos,n);for(;(a=e.indexOf(r,a))>0;){let s=0;for(;e[a-s-1]==="\\";)s++;if(s%2===0){const o=e.substring(n,a),u=o.split(/\r\n|\r|\n/).length-1,c=a+n;if(n===1&&u!==0||n===3&&this._lineMode)break;return this._line+=u,{value:this._unescape(o),matchLength:c}}a++}this._literalClosingPos=e.length-n+1}return{value:"",matchLength:0}}_syntaxError(e){this._input=null;const r=new Error(`Unexpected "${e}" on line ${this._line}.`);return r.context={token:void 0,line:this._line,previousToken:this.previousToken},r}_readStartingBom(e){return e.startsWith("\uFEFF")?e.substr(1):e}tokenize(e,r){if(this._line=1,typeof e=="string")if(this._input=this._readStartingBom(e),typeof r=="function")mZ(()=>this._tokenizeToEnd(r,!0));else{const n=[];let a;if(this._tokenizeToEnd((s,o)=>s?a=s:n.push(o),!0),a)throw a;return n}else this._pendingBuffer=null,typeof e.setEncoding=="function"&&e.setEncoding("utf8"),e.on("data",n=>{this._input!==null&&n.length!==0&&(this._pendingBuffer&&(n=Zi.concat([this._pendingBuffer,n]),this._pendingBuffer=null),n[n.length-1]&128?this._pendingBuffer=n:(typeof this._input>"u"?this._input=this._readStartingBom(typeof n=="string"?n:n.toString()):this._input+=n,this._tokenizeToEnd(r,!1)))}),e.on("end",()=>{typeof this._input=="string"&&this._tokenizeToEnd(r,!0)}),e.on("error",r)}}const{rdf:eje,xsd:Ec}=Ln;let $1,tje=0;const Yd={namedNode:sje,blankNode:oje,variable:cje,literal:uje,defaultGraph:lje,quad:xQ,triple:xQ};class Rs{constructor(e){this.id=e}get value(){return this.id}equals(e){return e instanceof Rs?this.id===e.id:!!e&&this.termType===e.termType&&this.value===e.value}hashCode(){return 0}toJSON(){return{termType:this.termType,value:this.value}}}class Mte extends Rs{get termType(){return"NamedNode"}}class Od extends Rs{get termType(){return"Literal"}get value(){return this.id.substring(1,this.id.lastIndexOf('"'))}get language(){const e=this.id;let r=e.lastIndexOf('"')+1;return r0?"INF":"-INF")))),r===""||r===Ec.string?new Od(`"${t}"`):new Od(`"${t}"^^${r}`)}function cje(t){return new nje(t)}function lje(){return $1}function xQ(t,e,r,n){return new aje(t,e,r,n)}let IQ=0;class Fte{constructor(e){this._contextStack=[],this._graph=null,e=e||{},this._setBase(e.baseIRI),e.factory&&Bte(this,e.factory);const r=typeof e.format=="string"?e.format.match(/\w*$/)[0].toLowerCase():"",n=/turtle/.test(r),a=/trig/.test(r),s=/triple/.test(r),o=/quad/.test(r),u=this._n3Mode=/n3/.test(r),c=s||o;(this._supportsNamedGraphs=!(n||u))||(this._readPredicateOrNamedGraph=this._readPredicate),this._supportsQuads=!(n||a||s||u),this._supportsRDFStar=r===""||/star|\*$/.test(r),c&&(this._resolveRelativeIRI=l=>null),this._blankNodePrefix=typeof e.blankNodePrefix!="string"?"":e.blankNodePrefix.replace(/^(?!_:)/,"_:"),this._lexer=e.lexer||new ZLe({lineMode:c,n3:u}),this._explicitQuantifiers=!!e.explicitQuantifiers}static _resetBlankNodePrefix(){IQ=0}_setBase(e){if(!e)this._base="",this._basePath="";else{const r=e.indexOf("#");r>=0&&(e=e.substr(0,r)),this._base=e,this._basePath=e.indexOf("/")<0?e:e.replace(/[^\/?]*(?:\?.*)?$/,""),e=e.match(/^(?:([a-z][a-z0-9+.-]*:))?(?:\/\/[^\/]*)?/i),this._baseRoot=e[0],this._baseScheme=e[1]}}_saveContext(e,r,n,a,s){const o=this._n3Mode;this._contextStack.push({type:e,subject:n,predicate:a,object:s,graph:r,inverse:o?this._inversePredicate:!1,blankPrefix:o?this._prefixes._:"",quantified:o?this._quantified:null}),o&&(this._inversePredicate=!1,this._prefixes._=this._graph?`${this._graph.value}.`:".",this._quantified=Object.create(this._quantified))}_restoreContext(e,r){const n=this._contextStack.pop();if(!n||n.type!==e)return this._error(`Unexpected ${r.type}`,r);this._subject=n.subject,this._predicate=n.predicate,this._object=n.object,this._graph=n.graph,this._n3Mode&&(this._inversePredicate=n.inverse,this._prefixes._=n.blankPrefix,this._quantified=n.quantified)}_readInTopContext(e){switch(e.type){case"eof":return this._graph!==null?this._error("Unclosed graph",e):(delete this._prefixes._,this._callback(null,null,this._prefixes));case"PREFIX":this._sparqlStyle=!0;case"@prefix":return this._readPrefix;case"BASE":this._sparqlStyle=!0;case"@base":return this._readBaseIRI;case"{":if(this._supportsNamedGraphs)return this._graph="",this._subject=null,this._readSubject;case"GRAPH":if(this._supportsNamedGraphs)return this._readNamedGraphLabel;default:return this._readSubject(e)}}_readEntity(e,r){let n;switch(e.type){case"IRI":case"typeIRI":const a=this._resolveIRI(e.value);if(a===null)return this._error("Invalid IRI",e);n=this._namedNode(a);break;case"type":case"prefixed":const s=this._prefixes[e.prefix];if(s===void 0)return this._error(`Undefined prefix "${e.prefix}:"`,e);n=this._namedNode(s+e.value);break;case"blank":n=this._blankNode(this._prefixes[e.prefix]+e.value);break;case"var":n=this._variable(e.value.substr(1));break;default:return this._error(`Expected entity but got ${e.type}`,e)}return!r&&this._n3Mode&&n.id in this._quantified&&(n=this._quantified[n.id]),n}_readSubject(e){switch(this._predicate=null,e.type){case"[":return this._saveContext("blank",this._graph,this._subject=this._blankNode(),null,null),this._readBlankNodeHead;case"(":return this._saveContext("list",this._graph,this.RDF_NIL,null,null),this._subject=null,this._readListItem;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._graph=this._blankNode(),null,null),this._readSubject):this._error("Unexpected graph",e);case"}":return this._readPunctuation(e);case"@forSome":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORSOME,this._quantifier=this._blankNode,this._readQuantifierList):this._error('Unexpected "@forSome"',e);case"@forAll":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORALL,this._quantifier=this._variable,this._readQuantifierList):this._error('Unexpected "@forAll"',e);case"literal":if(!this._n3Mode)return this._error("Unexpected literal",e);if(e.prefix.length===0)return this._literalValue=e.value,this._completeSubjectLiteral;this._subject=this._literal(e.value,this._namedNode(e.prefix));break;case"<<":return this._supportsRDFStar?(this._saveContext("<<",this._graph,null,null,null),this._graph=null,this._readSubject):this._error("Unexpected RDF* syntax",e);default:if((this._subject=this._readEntity(e))===void 0)return;if(this._n3Mode)return this._getPathReader(this._readPredicateOrNamedGraph)}return this._readPredicateOrNamedGraph}_readPredicate(e){const r=e.type;switch(r){case"inverse":this._inversePredicate=!0;case"abbreviation":this._predicate=this.ABBREVIATIONS[e.value];break;case".":case"]":case"}":return this._predicate===null?this._error(`Unexpected ${r}`,e):(this._subject=null,r==="]"?this._readBlankNodeTail(e):this._readPunctuation(e));case";":return this._predicate!==null?this._readPredicate:this._error("Expected predicate but got ;",e);case"[":if(this._n3Mode)return this._saveContext("blank",this._graph,this._subject,this._subject=this._blankNode(),null),this._readBlankNodeHead;case"blank":if(!this._n3Mode)return this._error("Disallowed blank node as predicate",e);default:if((this._predicate=this._readEntity(e))===void 0)return}return this._readObject}_readObject(e){switch(e.type){case"literal":if(e.prefix.length===0)return this._literalValue=e.value,this._readDataTypeOrLang;this._object=this._literal(e.value,this._namedNode(e.prefix));break;case"[":return this._saveContext("blank",this._graph,this._subject,this._predicate,this._subject=this._blankNode()),this._readBlankNodeHead;case"(":return this._saveContext("list",this._graph,this._subject,this._predicate,this.RDF_NIL),this._subject=null,this._readListItem;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._subject,this._predicate,this._graph=this._blankNode()),this._readSubject):this._error("Unexpected graph",e);case"<<":return this._supportsRDFStar?(this._saveContext("<<",this._graph,this._subject,this._predicate,null),this._graph=null,this._readSubject):this._error("Unexpected RDF* syntax",e);default:if((this._object=this._readEntity(e))===void 0)return;if(this._n3Mode)return this._getPathReader(this._getContextEndReader())}return this._getContextEndReader()}_readPredicateOrNamedGraph(e){return e.type==="{"?this._readGraph(e):this._readPredicate(e)}_readGraph(e){return e.type!=="{"?this._error(`Expected graph but got ${e.type}`,e):(this._graph=this._subject,this._subject=null,this._readSubject)}_readBlankNodeHead(e){return e.type==="]"?(this._subject=null,this._readBlankNodeTail(e)):(this._predicate=null,this._readPredicate(e))}_readBlankNodeTail(e){if(e.type!=="]")return this._readBlankNodePunctuation(e);this._subject!==null&&this._emit(this._subject,this._predicate,this._object,this._graph);const r=this._predicate===null;return this._restoreContext("blank",e),this._object!==null?this._getContextEndReader():this._predicate!==null?this._readObject:r?this._readPredicateOrNamedGraph:this._readPredicateAfterBlank}_readPredicateAfterBlank(e){switch(e.type){case".":case"}":return this._subject=null,this._readPunctuation(e);default:return this._readPredicate(e)}}_readListItem(e){let r=null,n=null,a=this._readListItem;const s=this._subject,o=this._contextStack,u=o[o.length-1];switch(e.type){case"[":this._saveContext("blank",this._graph,n=this._blankNode(),this.RDF_FIRST,this._subject=r=this._blankNode()),a=this._readBlankNodeHead;break;case"(":this._saveContext("list",this._graph,n=this._blankNode(),this.RDF_FIRST,this.RDF_NIL),this._subject=null;break;case")":if(this._restoreContext("list",e),o.length!==0&&o[o.length-1].type==="list"&&this._emit(this._subject,this._predicate,this._object,this._graph),this._predicate===null){if(a=this._readPredicate,this._subject===this.RDF_NIL)return a}else if(a=this._getContextEndReader(),this._object===this.RDF_NIL)return a;n=this.RDF_NIL;break;case"literal":e.prefix.length===0?(this._literalValue=e.value,a=this._readListItemDataTypeOrLang):(r=this._literal(e.value,this._namedNode(e.prefix)),a=this._getContextEndReader());break;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._subject,this._predicate,this._graph=this._blankNode()),this._readSubject):this._error("Unexpected graph",e);default:if((r=this._readEntity(e))===void 0)return}if(n===null&&(this._subject=n=this._blankNode()),s===null?u.predicate===null?u.subject=n:u.object=n:this._emit(s,this.RDF_REST,n,this._graph),r!==null){if(this._n3Mode&&(e.type==="IRI"||e.type==="prefixed"))return this._saveContext("item",this._graph,n,this.RDF_FIRST,r),this._subject=r,this._predicate=null,this._getPathReader(this._readListItem);this._emit(n,this.RDF_FIRST,r,this._graph)}return a}_readDataTypeOrLang(e){return this._completeObjectLiteral(e,!1)}_readListItemDataTypeOrLang(e){return this._completeObjectLiteral(e,!0)}_completeLiteral(e){let r=this._literal(this._literalValue);switch(e.type){case"type":case"typeIRI":const n=this._readEntity(e);if(n===void 0)return;r=this._literal(this._literalValue,n),e=null;break;case"langcode":r=this._literal(this._literalValue,e.value),e=null;break}return{token:e,literal:r}}_completeSubjectLiteral(e){return this._subject=this._completeLiteral(e).literal,this._readPredicateOrNamedGraph}_completeObjectLiteral(e,r){const n=this._completeLiteral(e);if(n)return this._object=n.literal,r&&this._emit(this._subject,this.RDF_FIRST,this._object,this._graph),n.token===null?this._getContextEndReader():(this._readCallback=this._getContextEndReader(),this._readCallback(n.token))}_readFormulaTail(e){return e.type!=="}"?this._readPunctuation(e):(this._subject!==null&&this._emit(this._subject,this._predicate,this._object,this._graph),this._restoreContext("formula",e),this._object===null?this._readPredicate:this._getContextEndReader())}_readPunctuation(e){let r,n=this._graph;const a=this._subject,s=this._inversePredicate;switch(e.type){case"}":if(this._graph===null)return this._error("Unexpected graph closing",e);if(this._n3Mode)return this._readFormulaTail(e);this._graph=null;case".":this._subject=null,r=this._contextStack.length?this._readSubject:this._readInTopContext,s&&(this._inversePredicate=!1);break;case";":r=this._readPredicate;break;case",":r=this._readObject;break;case"{|":if(!this._supportsRDFStar)return this._error("Unexpected RDF* syntax",e);const o=this._predicate,u=this._object;this._subject=this._quad(a,o,u,this.DEFAULTGRAPH),r=this._readPredicate;break;case"|}":if(this._subject.termType!=="Quad")return this._error("Unexpected asserted triple closing",e);this._subject=null,r=this._readPunctuation;break;default:if(this._supportsQuads&&this._graph===null&&(n=this._readEntity(e))!==void 0){r=this._readQuadPunctuation;break}return this._error(`Expected punctuation to follow "${this._object.id}"`,e)}if(a!==null){const o=this._predicate,u=this._object;s?this._emit(u,o,a,n):this._emit(a,o,u,n)}return r}_readBlankNodePunctuation(e){let r;switch(e.type){case";":r=this._readPredicate;break;case",":r=this._readObject;break;default:return this._error(`Expected punctuation to follow "${this._object.id}"`,e)}return this._emit(this._subject,this._predicate,this._object,this._graph),r}_readQuadPunctuation(e){return e.type!=="."?this._error("Expected dot to follow quad",e):this._readInTopContext}_readPrefix(e){return e.type!=="prefix"?this._error("Expected prefix to follow @prefix",e):(this._prefix=e.value,this._readPrefixIRI)}_readPrefixIRI(e){if(e.type!=="IRI")return this._error(`Expected IRI to follow prefix "${this._prefix}:"`,e);const r=this._readEntity(e);return this._prefixes[this._prefix]=r.value,this._prefixCallback(this._prefix,r),this._readDeclarationPunctuation}_readBaseIRI(e){const r=e.type==="IRI"&&this._resolveIRI(e.value);return r?(this._setBase(r),this._readDeclarationPunctuation):this._error("Expected valid IRI to follow base declaration",e)}_readNamedGraphLabel(e){switch(e.type){case"IRI":case"blank":case"prefixed":return this._readSubject(e),this._readGraph;case"[":return this._readNamedGraphBlankLabel;default:return this._error("Invalid graph label",e)}}_readNamedGraphBlankLabel(e){return e.type!=="]"?this._error("Invalid graph label",e):(this._subject=this._blankNode(),this._readGraph)}_readDeclarationPunctuation(e){return this._sparqlStyle?(this._sparqlStyle=!1,this._readInTopContext(e)):e.type!=="."?this._error("Expected declaration to end with a dot",e):this._readInTopContext}_readQuantifierList(e){let r;switch(e.type){case"IRI":case"prefixed":if((r=this._readEntity(e,!0))!==void 0)break;default:return this._error(`Unexpected ${e.type}`,e)}return this._explicitQuantifiers?(this._subject===null?this._emit(this._graph||this.DEFAULTGRAPH,this._predicate,this._subject=this._blankNode(),this.QUANTIFIERS_GRAPH):this._emit(this._subject,this.RDF_REST,this._subject=this._blankNode(),this.QUANTIFIERS_GRAPH),this._emit(this._subject,this.RDF_FIRST,r,this.QUANTIFIERS_GRAPH)):this._quantified[r.id]=this._quantifier(this._blankNode().value),this._readQuantifierPunctuation}_readQuantifierPunctuation(e){return e.type===","?this._readQuantifierList:(this._explicitQuantifiers&&(this._emit(this._subject,this.RDF_REST,this.RDF_NIL,this.QUANTIFIERS_GRAPH),this._subject=null),this._readCallback=this._getContextEndReader(),this._readCallback(e))}_getPathReader(e){return this._afterPath=e,this._readPath}_readPath(e){switch(e.type){case"!":return this._readForwardPath;case"^":return this._readBackwardPath;default:const r=this._contextStack,n=r.length&&r[r.length-1];if(n&&n.type==="item"){const a=this._subject;this._restoreContext("item",e),this._emit(this._subject,this.RDF_FIRST,a,this._graph)}return this._afterPath(e)}}_readForwardPath(e){let r,n;const a=this._blankNode();if((n=this._readEntity(e))!==void 0)return this._predicate===null?(r=this._subject,this._subject=a):(r=this._object,this._object=a),this._emit(r,n,a,this._graph),this._readPath}_readBackwardPath(e){const r=this._blankNode();let n,a;if((n=this._readEntity(e))!==void 0)return this._predicate===null?(a=this._subject,this._subject=r):(a=this._object,this._object=r),this._emit(r,n,a,this._graph),this._readPath}_readRDFStarTailOrGraph(e){return e.type!==">>"?this._supportsQuads&&this._graph===null&&(this._graph=this._readEntity(e))!==void 0?this._readRDFStarTail:this._error(`Expected >> to follow "${this._object.id}"`,e):this._readRDFStarTail(e)}_readRDFStarTail(e){if(e.type!==">>")return this._error(`Expected >> but got ${e.type}`,e);const r=this._quad(this._subject,this._predicate,this._object,this._graph||this.DEFAULTGRAPH);return this._restoreContext("<<",e),this._subject===null?(this._subject=r,this._readPredicate):(this._object=r,this._getContextEndReader())}_getContextEndReader(){const e=this._contextStack;if(!e.length)return this._readPunctuation;switch(e[e.length-1].type){case"blank":return this._readBlankNodeTail;case"list":return this._readListItem;case"formula":return this._readFormulaTail;case"<<":return this._readRDFStarTailOrGraph}}_emit(e,r,n,a){this._callback(null,this._quad(e,r,n,a||this.DEFAULTGRAPH))}_error(e,r){const n=new Error(`${e} on line ${r.line}.`);n.context={token:r,line:r.line,previousToken:this._lexer.previousToken},this._callback(n),this._callback=_I}_resolveIRI(e){return/^[a-z][a-z0-9+.-]*:/i.test(e)?e:this._resolveRelativeIRI(e)}_resolveRelativeIRI(e){if(!e.length)return this._base;switch(e[0]){case"#":return this._base+e;case"?":return this._base.replace(/(?:\?.*)?$/,e);case"/":return(e[1]==="/"?this._baseScheme:this._baseRoot)+this._removeDotSegments(e);default:return/^[^/:]*:/.test(e)?null:this._removeDotSegments(this._basePath+e)}}_removeDotSegments(e){if(!/(^|\/)\.\.?($|[/#?])/.test(e))return e;const r=e.length;let n="",a=-1,s=-1,o=0,u="/";for(;a=s&&(n=n.substr(0,o)),u!=="/")return`${n}/${e.substr(a+1)}`;o=a+1}}}u=e[++a]}return n+e.substring(o)}parse(e,r,n){if(this._readCallback=this._readInTopContext,this._sparqlStyle=!1,this._prefixes=Object.create(null),this._prefixes._=this._blankNodePrefix?this._blankNodePrefix.substr(2):`b${IQ++}_`,this._prefixCallback=n||_I,this._inversePredicate=!1,this._quantified=Object.create(null),!r){const a=[];let s;if(this._callback=(o,u)=>{o?s=o:u&&a.push(u)},this._lexer.tokenize(e).every(o=>this._readCallback=this._readCallback(o)),s)throw s;return a}this._callback=r,this._lexer.tokenize(e,(a,s)=>{a!==null?(this._callback(a),this._callback=_I):this._readCallback&&(this._readCallback=this._readCallback(s))})}}function _I(){}function Bte(t,e){const r=e.namedNode;t._namedNode=r,t._blankNode=e.blankNode,t._literal=e.literal,t._variable=e.variable,t._quad=e.quad,t.DEFAULTGRAPH=e.defaultGraph(),t.RDF_FIRST=r(Ln.rdf.first),t.RDF_REST=r(Ln.rdf.rest),t.RDF_NIL=r(Ln.rdf.nil),t.N3_FORALL=r(Ln.r.forAll),t.N3_FORSOME=r(Ln.r.forSome),t.ABBREVIATIONS={a:r(Ln.rdf.type),"=":r(Ln.owl.sameAs),">":r(Ln.log.implies)},t.QUANTIFIERS_GRAPH=r("urn:n3:quantifiers")}Bte(Fte.prototype,Yd);function dje(t){return!!t&&t.termType==="NamedNode"}function fje(t){return!!t&&t.termType==="BlankNode"}function hje(t){return!!t&&t.termType==="Literal"}function pje(t){return!!t&&t.termType==="Variable"}function Rb(t){return!!t&&t.termType==="DefaultGraph"}function yje(t){return Rb(t.graph)}function mje(t,e){return qte({"":t.value||t},e)("")}function qte(t,e){const r=Object.create(null);for(const a in t)n(a,t[a]);e=e||Yd;function n(a,s){if(typeof s=="string"){const o=Object.create(null);r[a]=u=>o[u]||(o[u]=e.namedNode(s+u))}else if(!(a in r))throw new Error(`Unknown prefix: ${a}`);return r[a]}return n}const A$e=Object.freeze(Object.defineProperty({__proto__:null,inDefaultGraph:yje,isBlankNode:fje,isDefaultGraph:Rb,isLiteral:hje,isNamedNode:dje,isVariable:pje,prefix:mje,prefixes:qte},Symbol.toStringTag,{value:"Module"})),p_=Yd.defaultGraph(),{rdf:gje,xsd:Vl}=Ln,PQ=/["\\\t\n\r\b\f\u0000-\u0019\ud800-\udbff]/,NQ=/["\\\t\n\r\b\f\u0000-\u0019]|[\ud800-\udbff][\udc00-\udfff]/g,_je={"\\":"\\\\",'"':'\\"'," ":"\\t","\n":"\\n","\r":"\\r","\b":"\\b","\f":"\\f"};class y_ extends Rs{equals(e){return e===this}}class bje{constructor(e,r){if(this._prefixRegex=/$0^/,e&&typeof e.write!="function"&&(r=e,e=null),r=r||{},this._lists=r.lists,e)this._outputStream=e,this._endStream=r.end===void 0?!0:!!r.end;else{let n="";this._outputStream={write(a,s,o){n+=a,o&&o()},end:a=>{a&&a(null,n)}},this._endStream=!0}this._subject=null,/triple|quad/i.test(r.format)?(this._lineMode=!0,this._writeQuad=this._writeQuadLine):(this._lineMode=!1,this._graph=p_,this._prefixIRIs=Object.create(null),r.prefixes&&this.addPrefixes(r.prefixes),r.baseIRI&&(this._baseMatcher=new RegExp(`^${CQ(r.baseIRI)}${r.baseIRI.endsWith("/")?"":"[#?]"}`),this._baseLength=r.baseIRI.length))}get _inDefaultGraph(){return p_.equals(this._graph)}_write(e,r){this._outputStream.write(e,"utf8",r)}_writeQuad(e,r,n,a,s){try{a.equals(this._graph)||(this._write((this._subject===null?"":this._inDefaultGraph?`. `:` } `)+(p_.equals(a)?"":`${this._encodeIriOrBlank(a)} { @@ -354,7 +354,7 @@ ${N.stack}`:""}`):super(`Error thrown in ${j}`)}}gt.ExtensionFunctionError=O;cla ${this._encodePredicate(this._predicate=r)} ${this._encodeObject(n)}`,s):this._write(`${(this._subject===null?"":`. `)+this._encodeSubject(this._subject=e)} ${this._encodePredicate(this._predicate=r)} ${this._encodeObject(n)}`,s)}catch(o){s&&s(o)}}_writeQuadLine(e,r,n,a,s){delete this._prefixMatch,this._write(this.quadToString(e,r,n,a),s)}quadToString(e,r,n,a){return`${this._encodeSubject(e)} ${this._encodeIriOrBlank(r)} ${this._encodeObject(n)}${a&&a.value?` ${this._encodeIriOrBlank(a)} . `:` . -`}`}quadsToString(e){return e.map(r=>this.quadToString(r.subject,r.predicate,r.object,r.graph)).join("")}_encodeSubject(e){return e.termType==="Quad"?this._encodeQuad(e):this._encodeIriOrBlank(e)}_encodeIriOrBlank(e){if(e.termType!=="NamedNode")return this._lists&&e.value in this._lists&&(e=this.list(this._lists[e.value])),"id"in e?e.id:`_:${e.value}`;let r=e.value;this._baseMatcher&&this._baseMatcher.test(r)&&(r=r.substr(this._baseLength)),PQ.test(r)&&(r=r.replace(NQ,DQ));const n=this._prefixRegex.exec(r);return n?n[1]?this._prefixIRIs[n[1]]+n[2]:r:`<${r}>`}_encodeLiteral(e){let r=e.value;if(PQ.test(r)&&(r=r.replace(NQ,DQ)),e.language)return`"${r}"@${e.language}`;if(this._lineMode){if(e.datatype.value===Hl.string)return`"${r}"`}else switch(e.datatype.value){case Hl.string:return`"${r}"`;case Hl.boolean:if(r==="true"||r==="false")return r;break;case Hl.integer:if(/^[+-]?\d+$/.test(r))return r;break;case Hl.decimal:if(/^[+-]?\d*\.\d+$/.test(r))return r;break;case Hl.double:if(/^[+-]?(?:\d+\.\d*|\.?\d+)[eE][+-]?\d+$/.test(r))return r;break}return`"${r}"^^${this._encodeIriOrBlank(e.datatype)}`}_encodePredicate(e){return e.value===_je.type?"a":this._encodeIriOrBlank(e)}_encodeObject(e){switch(e.termType){case"Quad":return this._encodeQuad(e);case"Literal":return this._encodeLiteral(e);default:return this._encodeIriOrBlank(e)}}_encodeQuad({subject:e,predicate:r,object:n,graph:a}){return`<<${this._encodeSubject(e)} ${this._encodePredicate(r)} ${this._encodeObject(n)}${Rb(a)?"":` ${this._encodeIriOrBlank(a)}`}>>`}_blockedWrite(){throw new Error("Cannot write because the writer has been closed.")}addQuad(e,r,n,a,s){n===void 0?this._writeQuad(e.subject,e.predicate,e.object,e.graph,r):typeof a=="function"?this._writeQuad(e,r,n,p_,a):this._writeQuad(e,r,n,a||p_,s)}addQuads(e){for(let r=0;rthis.quadToString(r.subject,r.predicate,r.object,r.graph)).join("")}_encodeSubject(e){return e.termType==="Quad"?this._encodeQuad(e):this._encodeIriOrBlank(e)}_encodeIriOrBlank(e){if(e.termType!=="NamedNode")return this._lists&&e.value in this._lists&&(e=this.list(this._lists[e.value])),"id"in e?e.id:`_:${e.value}`;let r=e.value;this._baseMatcher&&this._baseMatcher.test(r)&&(r=r.substr(this._baseLength)),PQ.test(r)&&(r=r.replace(NQ,DQ));const n=this._prefixRegex.exec(r);return n?n[1]?this._prefixIRIs[n[1]]+n[2]:r:`<${r}>`}_encodeLiteral(e){let r=e.value;if(PQ.test(r)&&(r=r.replace(NQ,DQ)),e.language)return`"${r}"@${e.language}`;if(this._lineMode){if(e.datatype.value===Vl.string)return`"${r}"`}else switch(e.datatype.value){case Vl.string:return`"${r}"`;case Vl.boolean:if(r==="true"||r==="false")return r;break;case Vl.integer:if(/^[+-]?\d+$/.test(r))return r;break;case Vl.decimal:if(/^[+-]?\d*\.\d+$/.test(r))return r;break;case Vl.double:if(/^[+-]?(?:\d+\.\d*|\.?\d+)[eE][+-]?\d+$/.test(r))return r;break}return`"${r}"^^${this._encodeIriOrBlank(e.datatype)}`}_encodePredicate(e){return e.value===gje.type?"a":this._encodeIriOrBlank(e)}_encodeObject(e){switch(e.termType){case"Quad":return this._encodeQuad(e);case"Literal":return this._encodeLiteral(e);default:return this._encodeIriOrBlank(e)}}_encodeQuad({subject:e,predicate:r,object:n,graph:a}){return`<<${this._encodeSubject(e)} ${this._encodePredicate(r)} ${this._encodeObject(n)}${Rb(a)?"":` ${this._encodeIriOrBlank(a)}`}>>`}_blockedWrite(){throw new Error("Cannot write because the writer has been closed.")}addQuad(e,r,n,a,s){n===void 0?this._writeQuad(e.subject,e.predicate,e.object,e.graph,r):typeof a=="function"?this._writeQuad(e,r,n,p_,a):this._writeQuad(e,r,n,a||p_,s)}addQuads(e){for(let r=0;r. @@ -365,7 +365,7 @@ ${N.stack}`:""}`):super(`Error thrown in ${j}`)}}gt.ExtensionFunctionError=O;cla ]`)}}list(e){const r=e&&e.length||0,n=new Array(r);for(let a=0;a{r=null,e(n,a)});if(this._endStream)try{return this._outputStream.end(r)}catch{}r&&r()}}function DQ(t){let e=bje[t];return e===void 0&&(t.length===1?(e=t.charCodeAt(0).toString(16),e="\\u0000".substr(0,6-e.length)+e):(e=((t.charCodeAt(0)-55296)*1024+t.charCodeAt(1)+9216).toString(16),e="\\U00000000".substr(0,10-e.length)+e)),e}function CQ(t){return t.replace(/[\]\/\(\)\*\+\?\.\\\$]/g,"\\$&")}class $te{constructor(e,r){this._size=0,this._graphs=Object.create(null),this._id=0,this._ids=Object.create(null),this._entities=Object.create(null),this._blankNodeIndex=0,!r&&e&&!e[0]&&(r=e,e=null),r=r||{},this._factory=r.factory||Zd,e&&this.addQuads(e)}_termFromId(e,r){if(e[0]==="."){const n=this._entities,a=e.split(".");return this._factory.quad(this._termFromId(n[a[1]]),this._termFromId(n[a[2]]),this._termFromId(n[a[3]]),a[4]&&this._termFromId(n[a[4]]))}return M_(e,r)}_termToNumericId(e){if(e.termType==="Quad"){const r=this._termToNumericId(e.subject),n=this._termToNumericId(e.predicate),a=this._termToNumericId(e.object);let s;return r&&n&&a&&(Rb(e.graph)||(s=this._termToNumericId(e.graph)))&&this._ids[s?`.${r}.${n}.${a}.${s}`:`.${r}.${n}.${a}`]}return this._ids[Pi(e)]}_termToNewNumericId(e){const r=e&&e.termType==="Quad"?`.${this._termToNewNumericId(e.subject)}.${this._termToNewNumericId(e.predicate)}.${this._termToNewNumericId(e.object)}${Rb(e.graph)?"":`.${this._termToNewNumericId(e.graph)}`}`:Pi(e);return this._ids[r]||(this._ids[this._entities[++this._id]=r]=this._id)}get size(){let e=this._size;if(e!==null)return e;e=0;const r=this._graphs;let n,a;for(const s in r)for(const o in n=r[s].subjects)for(const u in a=n[o])e+=Object.keys(a[u]).length;return this._size=e}_addToIndex(e,r,n,a){const s=e[r]||(e[r]={}),o=s[n]||(s[n]={}),u=a in o;return u||(o[a]=null),!u}_removeFromIndex(e,r,n,a){const s=e[r],o=s[n];delete o[a];for(const u in o)return;delete s[n];for(const u in s)return;delete e[r]}*_findInIndex(e,r,n,a,s,o,u,c){let l,d,f;const h=this._entities,p=this._termFromId(c,this._factory),m={subject:null,predicate:null,object:null};r&&((l=e,e={})[r]=l[r]);for(const y in e)if(d=e[y]){m[s]=this._termFromId(h[y],this._factory),n&&((l=d,d={})[n]=l[n]);for(const g in d)if(f=d[g]){m[o]=this._termFromId(h[g],this._factory);const b=a?a in f?[a]:[]:Object.keys(f);for(let v=0;v{n in r||(r[n]=!0,e(this._termFromId(this._entities[n],this._factory)))}}add(e){return this.addQuad(e),this}addQuad(e,r,n,a){r||(a=e.graph,n=e.object,r=e.predicate,e=e.subject),a=Pi(a);let s=this._graphs[a];s||(s=this._graphs[a]={subjects:{},predicates:{},objects:{}},Object.freeze(s)),e=this._termToNewNumericId(e),r=this._termToNewNumericId(r),n=this._termToNewNumericId(n);const o=this._addToIndex(s.subjects,e,r,n);return this._addToIndex(s.predicates,r,n,e),this._addToIndex(s.objects,n,e,r),this._size=null,o}addQuads(e){for(let r=0;r{this.addQuad(r)}),e}removeQuad(e,r,n,a){r||(a=e.graph,n=e.object,r=e.predicate,e=e.subject),a=Pi(a);const s=this._graphs;let o,u,c;if(!(e=e&&this._termToNumericId(e))||!(r=r&&this._termToNumericId(r))||!(n=n&&this._termToNumericId(n))||!(o=s[a])||!(u=o.subjects[e])||!(c=u[r])||!(n in c))return!1;this._removeFromIndex(o.subjects,e,r,n),this._removeFromIndex(o.predicates,r,n,e),this._removeFromIndex(o.objects,n,e,r),this._size!==null&&this._size--;for(e in o.subjects)return!0;return delete s[a],!0}removeQuads(e){for(let r=0;r{this.removeQuad(r)}),e}removeMatches(e,r,n,a){const s=new Pt.Readable({objectMode:!0});return s._read=()=>{for(const o of this.readQuads(e,r,n,a))s.push(o);s.push(null)},this.remove(s)}deleteGraph(e){return this.removeMatches(null,null,null,e)}getQuads(e,r,n,a){return[...this.readQuads(e,r,n,a)]}*readQuads(e,r,n,a){a=a&&Pi(a);const s=this._getGraphs(a);let o,u,c,l;if(!(e&&!(u=this._termToNumericId(e))||r&&!(c=this._termToNumericId(r))||n&&!(l=this._termToNumericId(n))))for(const d in s)(o=s[d])&&(u?l?yield*this._findInIndex(o.objects,l,u,c,"object","subject","predicate",d):yield*this._findInIndex(o.subjects,u,c,null,"subject","predicate","object",d):c?yield*this._findInIndex(o.predicates,c,l,null,"predicate","object","subject",d):l?yield*this._findInIndex(o.objects,l,null,null,"object","subject","predicate",d):yield*this._findInIndex(o.subjects,null,null,null,"subject","predicate","object",d))}match(e,r,n,a){return new O4(this,e,r,n,a)}countQuads(e,r,n,a){a=a&&Pi(a);const s=this._getGraphs(a);let o=0,u,c,l,d;if(e&&!(c=this._termToNumericId(e))||r&&!(l=this._termToNumericId(r))||n&&!(d=this._termToNumericId(n)))return 0;for(const f in s)(u=s[f])&&(e?n?o+=this._countInIndex(u.objects,d,c,l):o+=this._countInIndex(u.subjects,c,l,d):r?o+=this._countInIndex(u.predicates,l,d,c):o+=this._countInIndex(u.objects,d,c,l));return o}forEach(e,r,n,a,s){this.some(o=>(e(o),!1),r,n,a,s)}every(e,r,n,a,s){let o=!1;const u=!this.some(c=>(o=!0,!e(c)),r,n,a,s);return o&&u}some(e,r,n,a,s){for(const o of this.readQuads(r,n,a,s))if(e(o))return!0;return!1}getSubjects(e,r,n){const a=[];return this.forSubjects(s=>{a.push(s)},e,r,n),a}forSubjects(e,r,n,a){a=a&&Pi(a);const s=this._getGraphs(a);let o,u,c;if(e=this._uniqueEntities(e),!(r&&!(u=this._termToNumericId(r))||n&&!(c=this._termToNumericId(n))))for(a in s)(o=s[a])&&(u?c?this._loopBy2Keys(o.predicates,u,c,e):this._loopByKey1(o.subjects,u,e):c?this._loopByKey0(o.objects,c,e):this._loop(o.subjects,e))}getPredicates(e,r,n){const a=[];return this.forPredicates(s=>{a.push(s)},e,r,n),a}forPredicates(e,r,n,a){a=a&&Pi(a);const s=this._getGraphs(a);let o,u,c;if(e=this._uniqueEntities(e),!(r&&!(u=this._termToNumericId(r))||n&&!(c=this._termToNumericId(n))))for(a in s)(o=s[a])&&(u?c?this._loopBy2Keys(o.objects,c,u,e):this._loopByKey0(o.subjects,u,e):c?this._loopByKey1(o.predicates,c,e):this._loop(o.predicates,e))}getObjects(e,r,n){const a=[];return this.forObjects(s=>{a.push(s)},e,r,n),a}forObjects(e,r,n,a){a=a&&Pi(a);const s=this._getGraphs(a);let o,u,c;if(e=this._uniqueEntities(e),!(r&&!(u=this._termToNumericId(r))||n&&!(c=this._termToNumericId(n))))for(a in s)(o=s[a])&&(u?c?this._loopBy2Keys(o.subjects,u,c,e):this._loopByKey1(o.objects,u,e):c?this._loopByKey0(o.predicates,c,e):this._loop(o.objects,e))}getGraphs(e,r,n){const a=[];return this.forGraphs(s=>{a.push(s)},e,r,n),a}forGraphs(e,r,n,a){for(const s in this._graphs)this.some(o=>(e(o.graph),!0),r,n,a,s)}createBlankNode(e){let r,n;if(e)for(r=e=`_:${e}`,n=1;this._ids[r];)r=e+n++;else do r=`_:b${this._blankNodeIndex++}`;while(this._ids[r]);return this._ids[r]=++this._id,this._entities[this._id]=r,this._factory.blankNode(r.substr(2))}extractLists({remove:e=!1,ignoreErrors:r=!1}={}){const n={},a=r?()=>!0:(u,c)=>{throw new Error(`${u.value} ${c}`)},s=this.getQuads(null,Ln.rdf.rest,Ln.rdf.nil,null),o=e?[...s]:[];return s.forEach(u=>{const c=[];let l=!1,d,f;const h=u.graph;let p=u.subject;for(;p&&!l;){const m=this.getQuads(null,null,p,null),y=this.getQuads(p,null,null,null);let g,b=null,v=null,_=null;for(let w=0;w{switch(s){case"data":n=o;break;case"end":a=o;break}}},(s,o)=>{s&&this.emit("error",s)||o&&this.push(o)},(s,o)=>{this.emit("prefix",s,o)}),this._transform=(s,o,u)=>{n(s),u()},this._flush=s=>{a(),s()}}import(e){return e.on("data",r=>{this.write(r)}),e.on("end",()=>{this.end()}),e.on("error",r=>{this.emit("error",r)}),this}}class Tje extends Pt.Transform{constructor(e){super({encoding:"utf8",writableObjectMode:!0});const r=this._writer=new vje({write:(n,a,s)=>{this.push(n),s&&s()},end:n=>{this.push(null),n&&n()}},e);this._transform=(n,a,s)=>{r.addQuad(n,s)},this._flush=n=>{r.end(n)}}import(e){return e.on("data",r=>{this.write(r)}),e.on("end",()=>{this.end()}),e.on("error",r=>{this.emit("error",r)}),e.on("prefix",(r,n)=>{this._writer.addPrefix(r,n)}),this}}async function Eje(t,e){const r=new Sje(e);Pt.Readable.from([t]).pipe(r);const n=new $te;return Tee(n.import(r),n)}async function O$e(t,e){const r=new Tje(e);r.import(t);const n=[];for await(const a of r)n.push(Zi.from(a));return Zi.concat(n).toString()}class Ute{constructor(){this.type="query_only",this.capability={query:!0,update:!1,quit:!1}}async initialize(){}query_bindings(e){return console.log(`Send bindings query (${e}) via comunica to ${this.sources}`),this.queryEngine.queryBindings(e,{sources:this.sources})}query_quads(e){return console.log(`Send quads query (${e}) via comunica to ${this.sources}`),this.queryEngine.queryQuads(e,{sources:this.sources})}query(e){return console.log(`Send any query (${e}) via comunica to ${this.sources}`),this.queryEngine.query(e,{sources:this.sources})}update(e){return console.log(`Send update query (${e}) via comunica to ${this.sources}`),this.queryEngine.queryVoid(e,{sources:this.destination})}get quitUrl(){return this.sources[0].value}get updateUrl(){return this.destination[0].value}}class kte extends Ute{constructor(e,r){super(),this.queryEndpoint=e,this.updateEndpoint=r,this.type="query_only",this.capability={query:!0,update:!1,quit:!1},r&&(this.type="query_update",this.capability.update=!0)}async initialize(){this.queryEngine=new nC.QueryEngine,this.sources=[{type:"sparql",value:this.queryEndpoint}],this.updateEndpoint&&(this.destination=[{type:"sparql",value:this.updateEndpoint}])}}class Aje extends kte{constructor(e){super(e+"/sparql",e+"/sparql"),this.type="quit",this.HTTPGit=nn.create({baseURL:e}),this.capability.quit=!0}push(){return this.HTTPGit.post("/push",new URLSearchParams({dst:"master",refspec:"master:master",remote:"origin",src:"master"}),{headers:{"content-type":"application/x-www-form-urlencoded",Accept:"text/plain"}})}pull(){return this.HTTPGit.post("/pull",new URLSearchParams({dst:"master",refspec:"master:master",remote:"origin",src:"master"}),{headers:{"content-type":"application/x-www-form-urlencoded",Accept:"text/plain"}})}get quitUrl(){return this.HTTPGit.defaults.baseURL}}class Oje extends Ute{constructor(e){super(),this.data=e,this.type="query_update",this.capability={query:!0,update:!0,quit:!1}}async initialize(){this.queryEngine=new nC.QueryEngine;const e=this.data;return new Promise(r=>{Eje(e).then(n=>{this.sources=[n],this.destination=[n],console.log("Set source and destination"),r()})})}}const Rje={async create(t){const e=[];for(let r=0;r({graph_iri:"",resource_iri:"",is_class:!0}),actions:{changeGraphIri(t){console.log("Change graph Iri to "+t),this.graph_iri=t},changeResourceIri(t,e=!0){console.log("Change resource Iri to "+t),this.resource_iri=t,e==!0?this.is_class=!0:this.is_class=!1},initConfig(t){this.graph_iri=t.graph_iri,this.resource_iri=t.resource_iri}}});function R$e(t){return` +`),this._subject=null),this._write=this._blockedWrite;let r=e&&((n,a)=>{r=null,e(n,a)});if(this._endStream)try{return this._outputStream.end(r)}catch{}r&&r()}}function DQ(t){let e=_je[t];return e===void 0&&(t.length===1?(e=t.charCodeAt(0).toString(16),e="\\u0000".substr(0,6-e.length)+e):(e=((t.charCodeAt(0)-55296)*1024+t.charCodeAt(1)+9216).toString(16),e="\\U00000000".substr(0,10-e.length)+e)),e}function CQ(t){return t.replace(/[\]\/\(\)\*\+\?\.\\\$]/g,"\\$&")}class $te{constructor(e,r){this._size=0,this._graphs=Object.create(null),this._id=0,this._ids=Object.create(null),this._entities=Object.create(null),this._blankNodeIndex=0,!r&&e&&!e[0]&&(r=e,e=null),r=r||{},this._factory=r.factory||Yd,e&&this.addQuads(e)}_termFromId(e,r){if(e[0]==="."){const n=this._entities,a=e.split(".");return this._factory.quad(this._termFromId(n[a[1]]),this._termFromId(n[a[2]]),this._termFromId(n[a[3]]),a[4]&&this._termFromId(n[a[4]]))}return M_(e,r)}_termToNumericId(e){if(e.termType==="Quad"){const r=this._termToNumericId(e.subject),n=this._termToNumericId(e.predicate),a=this._termToNumericId(e.object);let s;return r&&n&&a&&(Rb(e.graph)||(s=this._termToNumericId(e.graph)))&&this._ids[s?`.${r}.${n}.${a}.${s}`:`.${r}.${n}.${a}`]}return this._ids[Pi(e)]}_termToNewNumericId(e){const r=e&&e.termType==="Quad"?`.${this._termToNewNumericId(e.subject)}.${this._termToNewNumericId(e.predicate)}.${this._termToNewNumericId(e.object)}${Rb(e.graph)?"":`.${this._termToNewNumericId(e.graph)}`}`:Pi(e);return this._ids[r]||(this._ids[this._entities[++this._id]=r]=this._id)}get size(){let e=this._size;if(e!==null)return e;e=0;const r=this._graphs;let n,a;for(const s in r)for(const o in n=r[s].subjects)for(const u in a=n[o])e+=Object.keys(a[u]).length;return this._size=e}_addToIndex(e,r,n,a){const s=e[r]||(e[r]={}),o=s[n]||(s[n]={}),u=a in o;return u||(o[a]=null),!u}_removeFromIndex(e,r,n,a){const s=e[r],o=s[n];delete o[a];for(const u in o)return;delete s[n];for(const u in s)return;delete e[r]}*_findInIndex(e,r,n,a,s,o,u,c){let l,d,f;const h=this._entities,p=this._termFromId(c,this._factory),m={subject:null,predicate:null,object:null};r&&((l=e,e={})[r]=l[r]);for(const y in e)if(d=e[y]){m[s]=this._termFromId(h[y],this._factory),n&&((l=d,d={})[n]=l[n]);for(const g in d)if(f=d[g]){m[o]=this._termFromId(h[g],this._factory);const b=a?a in f?[a]:[]:Object.keys(f);for(let v=0;v{n in r||(r[n]=!0,e(this._termFromId(this._entities[n],this._factory)))}}add(e){return this.addQuad(e),this}addQuad(e,r,n,a){r||(a=e.graph,n=e.object,r=e.predicate,e=e.subject),a=Pi(a);let s=this._graphs[a];s||(s=this._graphs[a]={subjects:{},predicates:{},objects:{}},Object.freeze(s)),e=this._termToNewNumericId(e),r=this._termToNewNumericId(r),n=this._termToNewNumericId(n);const o=this._addToIndex(s.subjects,e,r,n);return this._addToIndex(s.predicates,r,n,e),this._addToIndex(s.objects,n,e,r),this._size=null,o}addQuads(e){for(let r=0;r{this.addQuad(r)}),e}removeQuad(e,r,n,a){r||(a=e.graph,n=e.object,r=e.predicate,e=e.subject),a=Pi(a);const s=this._graphs;let o,u,c;if(!(e=e&&this._termToNumericId(e))||!(r=r&&this._termToNumericId(r))||!(n=n&&this._termToNumericId(n))||!(o=s[a])||!(u=o.subjects[e])||!(c=u[r])||!(n in c))return!1;this._removeFromIndex(o.subjects,e,r,n),this._removeFromIndex(o.predicates,r,n,e),this._removeFromIndex(o.objects,n,e,r),this._size!==null&&this._size--;for(e in o.subjects)return!0;return delete s[a],!0}removeQuads(e){for(let r=0;r{this.removeQuad(r)}),e}removeMatches(e,r,n,a){const s=new Pt.Readable({objectMode:!0});return s._read=()=>{for(const o of this.readQuads(e,r,n,a))s.push(o);s.push(null)},this.remove(s)}deleteGraph(e){return this.removeMatches(null,null,null,e)}getQuads(e,r,n,a){return[...this.readQuads(e,r,n,a)]}*readQuads(e,r,n,a){a=a&&Pi(a);const s=this._getGraphs(a);let o,u,c,l;if(!(e&&!(u=this._termToNumericId(e))||r&&!(c=this._termToNumericId(r))||n&&!(l=this._termToNumericId(n))))for(const d in s)(o=s[d])&&(u?l?yield*this._findInIndex(o.objects,l,u,c,"object","subject","predicate",d):yield*this._findInIndex(o.subjects,u,c,null,"subject","predicate","object",d):c?yield*this._findInIndex(o.predicates,c,l,null,"predicate","object","subject",d):l?yield*this._findInIndex(o.objects,l,null,null,"object","subject","predicate",d):yield*this._findInIndex(o.subjects,null,null,null,"subject","predicate","object",d))}match(e,r,n,a){return new O4(this,e,r,n,a)}countQuads(e,r,n,a){a=a&&Pi(a);const s=this._getGraphs(a);let o=0,u,c,l,d;if(e&&!(c=this._termToNumericId(e))||r&&!(l=this._termToNumericId(r))||n&&!(d=this._termToNumericId(n)))return 0;for(const f in s)(u=s[f])&&(e?n?o+=this._countInIndex(u.objects,d,c,l):o+=this._countInIndex(u.subjects,c,l,d):r?o+=this._countInIndex(u.predicates,l,d,c):o+=this._countInIndex(u.objects,d,c,l));return o}forEach(e,r,n,a,s){this.some(o=>(e(o),!1),r,n,a,s)}every(e,r,n,a,s){let o=!1;const u=!this.some(c=>(o=!0,!e(c)),r,n,a,s);return o&&u}some(e,r,n,a,s){for(const o of this.readQuads(r,n,a,s))if(e(o))return!0;return!1}getSubjects(e,r,n){const a=[];return this.forSubjects(s=>{a.push(s)},e,r,n),a}forSubjects(e,r,n,a){a=a&&Pi(a);const s=this._getGraphs(a);let o,u,c;if(e=this._uniqueEntities(e),!(r&&!(u=this._termToNumericId(r))||n&&!(c=this._termToNumericId(n))))for(a in s)(o=s[a])&&(u?c?this._loopBy2Keys(o.predicates,u,c,e):this._loopByKey1(o.subjects,u,e):c?this._loopByKey0(o.objects,c,e):this._loop(o.subjects,e))}getPredicates(e,r,n){const a=[];return this.forPredicates(s=>{a.push(s)},e,r,n),a}forPredicates(e,r,n,a){a=a&&Pi(a);const s=this._getGraphs(a);let o,u,c;if(e=this._uniqueEntities(e),!(r&&!(u=this._termToNumericId(r))||n&&!(c=this._termToNumericId(n))))for(a in s)(o=s[a])&&(u?c?this._loopBy2Keys(o.objects,c,u,e):this._loopByKey0(o.subjects,u,e):c?this._loopByKey1(o.predicates,c,e):this._loop(o.predicates,e))}getObjects(e,r,n){const a=[];return this.forObjects(s=>{a.push(s)},e,r,n),a}forObjects(e,r,n,a){a=a&&Pi(a);const s=this._getGraphs(a);let o,u,c;if(e=this._uniqueEntities(e),!(r&&!(u=this._termToNumericId(r))||n&&!(c=this._termToNumericId(n))))for(a in s)(o=s[a])&&(u?c?this._loopBy2Keys(o.subjects,u,c,e):this._loopByKey1(o.objects,u,e):c?this._loopByKey0(o.predicates,c,e):this._loop(o.objects,e))}getGraphs(e,r,n){const a=[];return this.forGraphs(s=>{a.push(s)},e,r,n),a}forGraphs(e,r,n,a){for(const s in this._graphs)this.some(o=>(e(o.graph),!0),r,n,a,s)}createBlankNode(e){let r,n;if(e)for(r=e=`_:${e}`,n=1;this._ids[r];)r=e+n++;else do r=`_:b${this._blankNodeIndex++}`;while(this._ids[r]);return this._ids[r]=++this._id,this._entities[this._id]=r,this._factory.blankNode(r.substr(2))}extractLists({remove:e=!1,ignoreErrors:r=!1}={}){const n={},a=r?()=>!0:(u,c)=>{throw new Error(`${u.value} ${c}`)},s=this.getQuads(null,Ln.rdf.rest,Ln.rdf.nil,null),o=e?[...s]:[];return s.forEach(u=>{const c=[];let l=!1,d,f;const h=u.graph;let p=u.subject;for(;p&&!l;){const m=this.getQuads(null,null,p,null),y=this.getQuads(p,null,null,null);let g,b=null,v=null,_=null;for(let w=0;w{switch(s){case"data":n=o;break;case"end":a=o;break}}},(s,o)=>{s&&this.emit("error",s)||o&&this.push(o)},(s,o)=>{this.emit("prefix",s,o)}),this._transform=(s,o,u)=>{n(s),u()},this._flush=s=>{a(),s()}}import(e){return e.on("data",r=>{this.write(r)}),e.on("end",()=>{this.end()}),e.on("error",r=>{this.emit("error",r)}),this}}class Sje extends Pt.Transform{constructor(e){super({encoding:"utf8",writableObjectMode:!0});const r=this._writer=new bje({write:(n,a,s)=>{this.push(n),s&&s()},end:n=>{this.push(null),n&&n()}},e);this._transform=(n,a,s)=>{r.addQuad(n,s)},this._flush=n=>{r.end(n)}}import(e){return e.on("data",r=>{this.write(r)}),e.on("end",()=>{this.end()}),e.on("error",r=>{this.emit("error",r)}),e.on("prefix",(r,n)=>{this._writer.addPrefix(r,n)}),this}}async function Tje(t,e){const r=new wje(e);Pt.Readable.from([t]).pipe(r);const n=new $te;return Tee(n.import(r),n)}async function O$e(t,e){const r=new Sje(e);r.import(t);const n=[];for await(const a of r)n.push(Zi.from(a));return Zi.concat(n).toString()}class Ute{constructor(){this.type="query_only",this.capability={query:!0,update:!1,quit:!1}}async initialize(){}query_bindings(e){return console.log(`Send bindings query (${e}) via comunica to ${this.sources}`),this.queryEngine.queryBindings(e,{sources:this.sources})}query_quads(e){return console.log(`Send quads query (${e}) via comunica to ${this.sources}`),this.queryEngine.queryQuads(e,{sources:this.sources})}query(e){return console.log(`Send any query (${e}) via comunica to ${this.sources}`),this.queryEngine.query(e,{sources:this.sources})}update(e){return console.log(`Send update query (${e}) via comunica to ${this.sources}`),this.queryEngine.queryVoid(e,{sources:this.destination})}get quitUrl(){return this.sources[0].value}get updateUrl(){return this.destination[0].value}}class kte extends Ute{constructor(e,r){super(),this.queryEndpoint=e,this.updateEndpoint=r,this.type="query_only",this.capability={query:!0,update:!1,quit:!1},r&&(this.type="query_update",this.capability.update=!0)}async initialize(){this.queryEngine=new nC.QueryEngine,this.sources=[{type:"sparql",value:this.queryEndpoint}],this.updateEndpoint&&(this.destination=[{type:"sparql",value:this.updateEndpoint}])}}class Eje extends kte{constructor(e){super(e+"/sparql",e+"/sparql"),this.type="quit",this.HTTPGit=nn.create({baseURL:e}),this.capability.quit=!0}push(){return this.HTTPGit.post("/push",new URLSearchParams({dst:"master",refspec:"master:master",remote:"origin",src:"master"}),{headers:{"content-type":"application/x-www-form-urlencoded",Accept:"text/plain"}})}pull(){return this.HTTPGit.post("/pull",new URLSearchParams({dst:"master",refspec:"master:master",remote:"origin",src:"master"}),{headers:{"content-type":"application/x-www-form-urlencoded",Accept:"text/plain"}})}get quitUrl(){return this.HTTPGit.defaults.baseURL}}class Aje extends Ute{constructor(e){super(),this.data=e,this.type="query_update",this.capability={query:!0,update:!0,quit:!1}}async initialize(){this.queryEngine=new nC.QueryEngine;const e=this.data;return new Promise(r=>{Tje(e).then(n=>{this.sources=[n],this.destination=[n],console.log("Set source and destination"),r()})})}}const Oje={async create(t){const e=[];for(let r=0;r({graph_iri:"",resource_iri:"",is_class:!0}),actions:{changeGraphIri(t){console.log("Change graph Iri to "+t),this.graph_iri=t},changeResourceIri(t,e=!0){console.log("Change resource Iri to "+t),this.resource_iri=t,e==!0?this.is_class=!0:this.is_class=!1},initConfig(t){this.graph_iri=t.graph_iri,this.resource_iri=t.resource_iri}}});function R$e(t){return` PREFIX sh: PREFIX rdf: PREFIX rdfs: @@ -436,9 +436,8 @@ ${N.stack}`:""}`):super(`Error thrown in ${j}`)}}gt.ExtensionFunctionError=O;cla <${t}> ?p ?o . } WHERE { <${t}> ?p ?o . - }`}function xje(t,e){console.log(t);let r="select distinct ?instance from { ?instance a } order by ?instance";if(typeof t=="string"){const n=new ol.Parser;t=n.parse(t);const a=n.parse(r);console.log(a)}return console.log(t),t.type==="query"?t.from={default:[qr.namedNode(e)],named:[]}:t.type==="update"&&(t.with=qr.namedNode(e)),t}const nl=bD("rdf",()=>{const t=fo(!1),e=fo(null);async function r(c){let l,d="";console.log(`send query: ${c}`),typeof c=="string"?(d=c,l=[po().graph_iri]):typeof c=="object"?(d=c.query,c.defaultGraph==="quads"?l=void 0:c.defaultGraph!==void 0?l=c.defaultGraph:l=[po().graph_iri]):(console.error("can't process query"),console.error(c)),l!==void 0&&(console.log(`inject graph: ${l}`),d=xje(d,l));const f=new ol.Generator;let h;return typeof d!="string"?h=f.stringify(d):h=d,e.value.query(h)}async function n(c,l){l===void 0&&(l=[po().graph_iri]);let d="";for(const m of l)d+=`from <${m}>`;const f=`construct {<${c}> ?p ?o} ${d} where {<${c}> ?p ?o}`,h=await e.value.query_quads(f),p=qr.namedNode(l[0]);return Pt.Readable.from(h).pipe(new fA(p))}function a(){e.value.push!==void 0&&e.value.push().then(function(c){console.log(c)})}function s(){e.value.pull!==void 0&&e.value.pull().then(function(c){console.log(c)})}async function o(c){let l=c.deleteArray,d=c.insertArray;const f=[];if(c.graphIri!==void 0){const p=qr.namedNode(c.graphIri);l&&l.length>0&&(l=await Pt.Readable.from(l).pipe(new fA(p)).toArray()),d&&d.length>0&&(d=await Pt.Readable.from(d).pipe(new fA(p)).toArray())}l&&l.length>0&&f.push(jSe(l).toString()),d&&d.length>0&&f.push(MSe(d).toString());const h=f.join(";");return e.value.update(h)}async function u(c){console.log("Loading …"),console.log("Change SPARQL Endpoint configuration."),console.log(c);const l=await Rje.create(c);e.value=l[0],t.value=!0}return{ready:t,sparqlEndpoint:e,sendQuery:r,getResource:n,push:a,pull:s,deleteInsertData:o,updateEndpointConfiguration:u}}),U1=(t,e)=>{const r=t.__vccOpts||t;for(const[n,a]of e)r[n]=a;return r},Ije={name:"SparqlConnection",setup(){const t=nl(),e=po();return{store:t,selection:e}},data(){return{configure_endpoint_modal:null,endpoint_type:"quit",query_url:"",update_url:"",quit_url:""}},mounted(){this.configure_endpoint_modal=new du(this.$refs.configure_endpoint),this.$refs.configure_endpoint.addEventListener("show.bs.modal",t=>{this.get_endpoint_configuration()})},computed:{...pS(nl,{store_ready:t=>t.ready}),store_capability:{get(){return this.store.sparqlEndpoint.capability}},graph_iri:{get(){return this.selection.graph_iri},set(t){this.store.changeGraphIri(t)}},resource_iri:{get(){return this.selection.resource_iri},set(t){this.selection.changeResourceIri(t)}}},methods:{push(){this.store.push()},pull(){this.store.pull()},get_endpoint_configuration(){const t=this.store.sparqlEndpoint;this.quit_url="",this.query_url="",this.update_url="",this.endpoint_type=t.type,t.type==="quit"?this.quit_url=t.quitUrl:t.type==="query_only"?this.query_url=t.queryUrl:t.type==="query_update"&&(this.query_url=t.queryUrl,this.update_url=t.updateUrl)},configure_endpoint(){const t={};if(this.endpoint_type==="quit"&&this.quit_url)t.quit_url=this.quit_url;else{if(!this.query_url){console.error("Not even a query_url is given. Not chaning the endpoint configuration.");return}t.query_url=this.query_url,this.update_url&&(t.update_url=this.update_url)}this.store.updateEndpointConfiguration(t)}}},Pje={key:0,inline:"",class:"col-12"},Nje={class:"btn-group col-1 mb-2 mr-sm-2 mb-sm-0",role:"group"},Dje=et("i",{class:"bi bi-gear"},null,-1),Cje=[Dje],Lje=et("i",{class:"bi bi-cloud-upload"},null,-1),jje=[Lje],Mje=et("i",{class:"bi bi-cloud-download"},null,-1),Fje=[Mje],Bje=et("label",{for:"select_url",class:"col-1 mr-sm-2"},"Graph IRI",-1),qje=et("label",{for:"select_url",class:"col-1 mr-sm-2"},"Resource IRI",-1),$je={class:"modal fade",ref:"configure_endpoint",tabindex:"-1","aria-hidden":"true","data-bs-backdrop":"static",size:"lg"},Uje={class:"modal-dialog modal-lg"},kje={class:"modal-content"},Vje={class:"modal-header"},Hje=et("h5",{class:"modal-title"},"Configure Endpoint",-1),Qje={class:"modal-body"},zje={class:"form-group",label:"Endpoint Type"},Gje=et("label",{class:"form-check-label",for:"query_only"},"Query only",-1),Wje=et("label",{class:"form-check-label",for:"query_update"},"Query & Update",-1),Kje=et("label",{class:"form-check-label",for:"quit"},"Quit Store",-1),Jje={key:0,class:"form-group"},Xje=et("label",{for:"quit_url"},"Quit URL",-1),Yje={key:1,class:"form-group"},Zje=et("label",{for:"query_url"},"Query URL",-1),eMe={key:2,class:"form-group"},tMe=et("label",{for:"update_url"},"Update URL",-1),rMe={class:"modal-footer"};function nMe(t,e,r,n,a,s){return rr(),gr(Wr,null,[t.store_ready?(rr(),gr("form",Pje,[et("div",Nje,[et("button",{type:"button",class:"btn btn-outline-secondary mb-0",onClick:e[0]||(e[0]=o=>a.configure_endpoint_modal.show()),title:"Configure Endpoint","aria-label":"Configure Endpoint"},Cje),s.store_capability.quit?(rr(),gr("button",{key:0,type:"button",class:"btn btn-outline-secondary mb-0",onClick:e[1]||(e[1]=o=>s.push()),title:"Push To Remote Repository","aria-label":"Push To Remote Repository"},jje)):Na("",!0),s.store_capability.quit?(rr(),gr("button",{key:1,type:"button",class:"btn btn-outline-secondary mb-0",onClick:e[2]||(e[2]=o=>s.pull()),title:"Pull From Remote Repository","aria-label":"Pull From Remote Repository"},Fje)):Na("",!0)]),Bje,Xi(et("input",{type:"text",class:"form-control col-2",id:"graph_iri","onUpdate:modelValue":e[3]||(e[3]=o=>s.graph_iri=o)},null,512),[[ta,s.graph_iri]]),qje,Xi(et("input",{type:"text",class:"form-control col-6",id:"resource_iri","onUpdate:modelValue":e[4]||(e[4]=o=>s.resource_iri=o)},null,512),[[ta,s.resource_iri]])])):Na("",!0),et("div",$je,[et("div",Uje,[et("div",kje,[et("div",Vje,[Hje,et("button",{type:"button",class:"btn-close",onClick:e[5]||(e[5]=o=>a.configure_endpoint_modal.hide()),"aria-label":"Close"})]),et("div",Qje,[et("form",null,[et("div",zje,[Xi(et("input",{class:"form-check-input",type:"radio",name:"endpoint_type","onUpdate:modelValue":e[6]||(e[6]=o=>a.endpoint_type=o),id:"query_only",value:"query_only"},null,512),[[H_,a.endpoint_type]]),Gje,Xi(et("input",{class:"form-check-input",type:"radio",name:"endpoint_type","onUpdate:modelValue":e[7]||(e[7]=o=>a.endpoint_type=o),id:"query_update",value:"query_update"},null,512),[[H_,a.endpoint_type]]),Wje,Xi(et("input",{class:"form-check-input",type:"radio",name:"endpoint_type","onUpdate:modelValue":e[8]||(e[8]=o=>a.endpoint_type=o),id:"quit",value:"quit"},null,512),[[H_,a.endpoint_type]]),Kje]),a.endpoint_type=="quit"?(rr(),gr("div",Jje,[Xje,et("div",null,[Xi(et("input",{type:"text",class:"form-control",id:"quit_url","onUpdate:modelValue":e[9]||(e[9]=o=>a.quit_url=o),placeholder:"http://your.quit.store.org/"},null,512),[[ta,a.quit_url]])])])):Na("",!0),a.endpoint_type=="query_only"||a.endpoint_type=="query_update"?(rr(),gr("div",Yje,[Zje,et("div",null,[Xi(et("input",{type:"text",class:"form-control",id:"query_url","onUpdate:modelValue":e[10]||(e[10]=o=>a.query_url=o),placeholder:"http://your.sparql.store.org/query"},null,512),[[ta,a.query_url]])])])):Na("",!0),a.endpoint_type=="query_update"?(rr(),gr("div",eMe,[tMe,et("div",null,[Xi(et("input",{type:"text",class:"form-control",id:"update_url","onUpdate:modelValue":e[11]||(e[11]=o=>a.update_url=o),placeholder:"http://your.sparql.store.org/update"},null,512),[[ta,a.update_url]])])])):Na("",!0)])]),et("div",rMe,[et("button",{type:"button",class:"btn btn-secondary",onClick:e[12]||(e[12]=o=>a.configure_endpoint_modal.hide())},"Close"),et("button",{type:"button",class:"btn btn-primary",onClick:e[13]||(e[13]=o=>{s.configure_endpoint(),a.configure_endpoint_modal.hide()})},"Save changes")])])])],512)],64)}const iMe=U1(Ije,[["render",nMe]]),aMe=bD("prefixes",{state:()=>({prefixes:{ex:qr.namedNode("http://example.org/"),exc:qr.namedNode("http://example.org/classes#"),exp:qr.namedNode("http://example.org/properties#"),rdf:qr.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#"),rdfs:qr.namedNode("http://www.w3.org/2000/01/rdf-schema#"),xsd:qr.namedNode("http://www.w3.org/2001/XMLSchema#"),foaf:qr.namedNode("http://xmlns.com/foaf/0.1/"),sh:qr.namedNode("http://www.w3.org/ns/shacl#")}}),getters:{namespace_prefix_map:t=>{const e={};return Object.keys(t.prefixes).forEach(r=>{e[t.prefixes[r].value]=r}),e},prefixes_flat:t=>{const e={};return Object.keys(t.prefixes).forEach(r=>{e[r]=t.prefixes[r].value}),e}},actions:{setPrefix(t,e){this.prefixes[t]=qr.namedNode(e)},resolvePrefix(t){return this.prefixes[t]},getPrefix(t){return this.namespace_prefix_map[t]},shortenIri(t){const e=new URL(t);let r=e.toString(),n="";if(e.hash){const a=r.lastIndexOf("#");n=r.substr(0,a+1),r=e.hash.substr(1)}else if(e.pathname){const a=r.lastIndexOf("/");n=r.substr(0,a+1),r=r.substr(a+1)}return this.namespace_prefix_map[n]&&r.indexOf("#")<0&&r.indexOf(":")<0&&r.indexOf("/")<0?`${this.namespace_prefix_map[n]}:${r}`:e.toString()}}}),sMe={name:"QueryResultList",setup(){const t=nl(),e=po();return{store:t,selection:e}},mounted(){this.updateList()},props:{title:String,query:String,queryQuads:{type:Boolean,default:!1},search:{type:Boolean,default:!1},selectVariable:{type:String,default:"resourceIri"},itemClass:String,add:Function,selectResource:Function,addTitle:String,activeResource:String},watch:{query(t){this.updateList()}},data(){return{resources:[],filter:""}},computed:{resourcesFiltered(){return this.filter?this.resources.filter(t=>t.toLowerCase().includes(this.filter.toLowerCase())):this.resources}},methods:{select(t){this.selectResource&&this.selectResource(t)},async updateList(){let t;this.queryQuads&&(t="quads");const e=await this.store.sendQuery({query:this.query,defaultGraph:t});if(e.resultType==="bindings"){const r=await e.execute();this.resources=await Array.fromAsync(r,(n,a)=>n.get(this.selectVariable).value)}},shortenIri(t){return aMe().shortenIri(t)}}},Vte=t=>(Uce("data-v-211acf3b"),t=t(),kce(),t),oMe={class:"card"},uMe={class:"card-header d-flex justify-content-between align-items-center"},cMe={class:"row row-cols-lg-auto g-3 align-items-center"},lMe={class:"col-12"},dMe={class:"mb-0"},fMe={class:"col-12"},hMe={class:"input-group mb-3"},pMe=Vte(()=>et("i",{class:"bi bi-arrow-repeat"},null,-1)),yMe=[pMe],mMe=["title","aria-label"],gMe=Vte(()=>et("i",{class:"bi bi-plus-square"},null,-1)),_Me=[gMe],bMe={class:"list-group list-group-flush"},vMe=["for","title","onClick"];function wMe(t,e,r,n,a,s){return rr(),gr("div",oMe,[et("div",uMe,[et("div",cMe,[et("div",lMe,[et("h6",dMe,iS(r.title),1)]),et("div",fMe,[et("div",hMe,[r.search?Xi((rr(),gr("input",{key:0,type:"text",class:"form-control","onUpdate:modelValue":e[0]||(e[0]=o=>a.filter=o),placeholder:"Search …"},null,512)),[[ta,a.filter]]):Na("",!0),et("button",{type:"button",class:"btn btn-secondary",onClick:e[1]||(e[1]=(...o)=>s.updateList&&s.updateList(...o)),title:"Reload","aria-label":"Reload"},yMe),r.add?(rr(),gr("button",{key:1,type:"button",class:"btn btn-secondary",onClick:e[2]||(e[2]=(...o)=>r.add&&r.add(...o)),title:r.addTitle,"aria-label":r.addTitle},_Me,8,mMe)):Na("",!0)])])])]),et("ul",bMe,[(rr(!0),gr(Wr,null,gle(s.resourcesFiltered,(o,u)=>(rr(),gr("li",{class:Qc(["list-group-item",[{active:o==r.activeResource},r.itemClass]]),key:u,href:"#",for:"form-control"+u,title:o,onClick:c=>s.select(o)},iS(s.shortenIri(o)),11,vMe))),128))])])}const Hte=U1(sMe,[["render",wMe],["__scopeId","data-v-211acf3b"]]),SMe={name:"TermInput",mounted(){this.updateNode()},watch:{term(t){this.updateNode()}},data(){return{dynamicNodetype:"iri",literalType:"language",idValue:"",language:"de",datatype:"http://www.w3.org/2001/XMLSchema#string",node:{}}},props:{type:String,id:String,term:Object},computed:{nodeType:{get:function(){return this.type?this.type:this.dynamicNodetype},set:function(t){this.dynamicNodetype=t}}},methods:{setType(t){this.nodeType=t,this.notify()},setLiteralType(t){this.literalType=t,this.notify()},notify(){this.updateTerm()},updateTerm(){this.dynamicNodetype==="iri"?this.node=qr.namedNode(this.idValue):this.literalType==="language"?this.node=qr.literal(this.idValue,this.language):this.node=qr.literal(this.idValue,qr.namedNode(this.datatype)),this.$emit("update:term",this.node)},updateNode(){this.term!=null&&(this.node=this.term,this.term.termType==="NamedNode"?this.dynamicNodetype="iri":this.term.termType==="Literal"&&(this.dynamicNodetype="literal",this.term.language?(this.language=this.term.language,this.literalType="language"):(this.datatype=this.term.datatype.value,this.literalType="datatype")),this.idValue=this.term.value)}}},TMe={class:"input-group"},EMe={key:1,class:"input-group-text"},AMe={key:2,class:"input-group-text"},OMe=["id"],RMe={key:3,class:"input-group-text"},xMe=["id"],IMe=["id"],PMe=et("span",{class:"input-group-text"},">",-1);function NMe(t,e,r,n,a,s){return rr(),gr("div",TMe,[r.type===void 0?(rr(),gr(Wr,{key:0},[et("button",{onClick:e[0]||(e[0]=o=>s.setType("iri")),class:Qc(["btn btn-outline-secondary",{active:s.nodeType=="iri"}]),type:"button"},"IRI",2),et("button",{onClick:e[1]||(e[1]=o=>s.setType("literal")),class:Qc(["btn btn-outline-secondary",{active:s.nodeType=="literal"}]),type:"button"},"Lit",2)],64)):Na("",!0),s.nodeType==="iri"?(rr(),gr("span",EMe,"<")):s.nodeType==="literal"?(rr(),gr("span",AMe,'"')):Na("",!0),Xi(et("input",{id:"value-"+this.id,"onUpdate:modelValue":e[2]||(e[2]=o=>a.idValue=o),onInput:e[3]||(e[3]=(...o)=>s.notify&&s.notify(...o)),type:"text",class:"form-control"},null,40,OMe),[[ta,a.idValue]]),s.nodeType==="iri"?(rr(),gr("span",RMe,">")):s.nodeType==="literal"&&a.literalType==="language"?(rr(),gr(Wr,{key:4},[et("span",{onClick:e[4]||(e[4]=o=>s.setLiteralType("datatype")),class:"input-group-text btn btn-outline-secondary"},'"@'),Xi(et("input",{id:"language-"+this.id,"onUpdate:modelValue":e[5]||(e[5]=o=>a.language=o),onInput:e[6]||(e[6]=(...o)=>s.notify&&s.notify(...o)),type:"text",class:"form-control"},null,40,xMe),[[ta,a.language]])],64)):s.nodeType==="literal"&&a.literalType==="datatype"?(rr(),gr(Wr,{key:5},[et("span",{onClick:e[7]||(e[7]=o=>s.setLiteralType("language")),class:"input-group-text btn btn-outline-secondary"},'"^^<'),Xi(et("input",{id:"datatype-"+this.id,"onUpdate:modelValue":e[8]||(e[8]=o=>a.datatype=o),onInput:e[9]||(e[9]=(...o)=>s.notify&&s.notify(...o)),type:"text",class:"form-control"},null,40,IMe),[[ta,a.datatype]]),PMe],64)):Na("",!0)])}const DMe=U1(SMe,[["render",NMe]]),CMe={name:"GraphList",setup(){return{store:nl()}},components:{TermInput:DMe,QueryResultList:Hte},props:{graph_iri:String,selectGraph:Function},data(){return{graphs:[],new_graph_iri:qr.namedNode(""),add_graph_modal:null}},mounted(){this.add_graph_modal=new du(this.$refs.add_graph)},methods:{async add_graph(){const t=[qr.quad(this.new_graph_iri,qr.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"),qr.namedNode("http://www.w3.org/2000/01/rdf-schema#Graph"))];console.log(this.new_graph_iri);try{await this.store.deleteInsertData({insertArray:t,graphIri:this.new_graph_iri.value}),this.add_graph_modal.hide()}catch(e){console.error(e)}}}},LMe={class:"modal fade",ref:"add_graph",tabindex:"-1","aria-hidden":"true","data-bs-backdrop":"static",size:"lg"},jMe={class:"modal-dialog modal-lg"},MMe={class:"modal-content"},FMe={class:"modal-header"},BMe=et("h5",{class:"modal-title"},"Create New Graph",-1),qMe={class:"modal-body"},$Me={class:"form-group"},UMe=et("label",{for:"new_graph_iri"},"IRI",-1),kMe={class:"modal-footer"};function VMe(t,e,r,n,a,s){const o=Ys("QueryResultList"),u=Ys("TermInput");return rr(),gr("div",null,[It(o,{title:"Graph List",search:"",query:"select distinct ?graph { graph ?graph {?s ?p ?o}} order by ?graph","query-quads":"","select-variable":"graph",ref:"classList",add:()=>{a.add_graph_modal.show()},selectResource:r.selectGraph,activeResource:r.graph_iri},null,8,["add","selectResource","activeResource"]),et("div",LMe,[et("div",jMe,[et("div",MMe,[et("div",FMe,[BMe,et("button",{type:"button",class:"btn-close",onClick:e[0]||(e[0]=c=>a.add_graph_modal.hide()),"aria-label":"Close"})]),et("div",qMe,[et("form",null,[et("div",$Me,[UMe,et("div",null,[It(u,{type:"iri",id:"new_graph_iri",term:a.new_graph_iri,"onUpdate:term":e[1]||(e[1]=c=>a.new_graph_iri=c)},null,8,["term"])])])])]),et("div",kMe,[et("button",{type:"button",class:"btn btn-secondary",onClick:e[2]||(e[2]=c=>a.add_graph_modal.hide())},"Close"),et("button",{type:"button",class:"btn btn-primary",onClick:e[3]||(e[3]=c=>s.add_graph())},"Save changes")])])])],512)])}const HMe=U1(CMe,[["render",VMe]]),QMe={name:"ClassList",props:{class_iri:String,selectClass:Function},watch:{graph_iri(t){console.log("graph_iri changed"+t),this.$refs.classList.updateList()}},computed:{...pS(po,["graph_iri"])}},zMe=Object.assign(QMe,{setup(t){return(e,r)=>(rr(),mD(Hte,{title:"Class List",search:"",query:"select distinct ?class { {?s a ?class} union {?class a } union {?class a } } order by ?class","select-variable":"class",ref:"classList",activeResource:t.class_iri,selectResource:t.selectClass},null,8,["activeResource","selectResource"]))}}),GMe={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((t,e)=>(t[e.id]=e)&&t,{})}},methods:{updatePaneComponents(){this.panes.forEach(t=>{t.update&&t.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[t.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(t,e){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=e},onMouseMove(t){this.touch.mouseDown&&(t.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(t)),this.$emit("resize",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(t,e){"ontouchstart"in window&&(t.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===e?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(t,e),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=e,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[e])},onSplitterDblClick(t,e){let r=0;this.panes=this.panes.map((n,a)=>(n.size=a===e?n.max:n.min,a!==e&&(r+=n.min),n)),this.panes[e].size-=r,this.$emit("pane-maximize",this.panes[e]),this.$emit("resized",this.panes.map(n=>({min:n.min,max:n.max,size:n.size})))},onPaneClick(t,e){this.$emit("pane-click",this.indexedPanes[e])},getCurrentMouseDrag(t){const e=this.container.getBoundingClientRect(),{clientX:r,clientY:n}="ontouchstart"in window&&t.touches?t.touches[0]:t;return{x:r-e.left,y:n-e.top}},getCurrentDragPercentage(t){t=t[this.horizontal?"y":"x"];const e=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(t=e-t),t*100/e},calculatePanesSize(t){const e=this.touch.activeSplitter;let r={prevPanesSize:this.sumPrevPanesSize(e),nextPanesSize:this.sumNextPanesSize(e),prevReachedMinPanes:0,nextReachedMinPanes:0};const n=0+(this.pushOtherPanes?0:r.prevPanesSize),a=100-(this.pushOtherPanes?0:r.nextPanesSize),s=Math.max(Math.min(this.getCurrentDragPercentage(t),a),n);let o=[e,e+1],u=this.panes[o[0]]||null,c=this.panes[o[1]]||null;const l=u.max<100&&s>=u.max+r.prevPanesSize,d=c.max<100&&s<=100-(c.max+this.sumNextPanesSize(e+1));if(l||d){l?(u.size=u.max,c.size=Math.max(100-u.max-r.prevPanesSize-r.nextPanesSize,0)):(u.size=Math.max(100-c.max-r.prevPanesSize-this.sumNextPanesSize(e+1),0),c.size=c.max);return}if(this.pushOtherPanes){const f=this.doPushOtherPanes(r,s);if(!f)return;({sums:r,panesToResize:o}=f),u=this.panes[o[0]]||null,c=this.panes[o[1]]||null}u!==null&&(u.size=Math.min(Math.max(s-r.prevPanesSize-r.prevReachedMinPanes,u.min),u.max)),c!==null&&(c.size=Math.min(Math.max(100-s-r.nextPanesSize-r.nextReachedMinPanes,c.min),c.max))},doPushOtherPanes(t,e){const r=this.touch.activeSplitter,n=[r,r+1];return e{s>n[0]&&s<=r&&(a.size=a.min,t.prevReachedMinPanes+=a.min)}),t.prevPanesSize=this.sumPrevPanesSize(n[0]),n[0]===void 0)?(t.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((a,s)=>{s>0&&s<=r&&(a.size=a.min,t.prevReachedMinPanes+=a.min)}),this.panes[n[1]].size=100-t.prevReachedMinPanes-this.panes[0].min-t.prevPanesSize-t.nextPanesSize,null):e>100-t.nextPanesSize-this.panes[n[1]].min&&(n[1]=this.findNextExpandedPane(r).index,t.nextReachedMinPanes=0,n[1]>r+1&&this.panes.forEach((a,s)=>{s>r&&s{s=r+1&&(a.size=a.min,t.nextReachedMinPanes+=a.min)}),this.panes[n[0]].size=100-t.prevPanesSize-t.nextReachedMinPanes-this.panes[this.panesCount-1].min-t.nextPanesSize,null):{sums:t,panesToResize:n}},sumPrevPanesSize(t){return this.panes.reduce((e,r,n)=>e+(ne+(n>t+1?r.size:0),0)},findPrevExpandedPane(t){return[...this.panes].reverse().find(e=>e.indexe.min)||{}},findNextExpandedPane(t){return this.panes.find(e=>e.index>t+1&&e.size>e.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(t=>{const e=t.classList.contains("splitpanes__pane"),r=t.classList.contains("splitpanes__splitter");!e&&!r&&(t.parentNode.removeChild(t),console.warn("Splitpanes: Only elements are allowed at the root of . One of your DOM nodes was removed."))})},addSplitter(t,e,r=!1){const n=t-1,a=document.createElement("div");a.classList.add("splitpanes__splitter"),r||(a.onmousedown=s=>this.onMouseDown(s,n),typeof window<"u"&&"ontouchstart"in window&&(a.ontouchstart=s=>this.onMouseDown(s,n)),a.onclick=s=>this.onSplitterClick(s,n+1)),this.dblClickSplitter&&(a.ondblclick=s=>this.onSplitterDblClick(s,n+1)),e.parentNode.insertBefore(a,e)},removeSplitter(t){t.onmousedown=void 0,t.onclick=void 0,t.ondblclick=void 0,t.parentNode.removeChild(t)},redoSplitters(){const t=Array.from(this.container.children);t.forEach(r=>{r.className.includes("splitpanes__splitter")&&this.removeSplitter(r)});let e=0;t.forEach(r=>{r.className.includes("splitpanes__pane")&&(!e&&this.firstSplitter?this.addSplitter(e,r,!0):e&&this.addSplitter(e,r),e++)})},requestUpdate({target:t,...e}){const r=this.indexedPanes[t._.uid];Object.entries(e).forEach(([n,a])=>r[n]=a)},onPaneAdd(t){let e=-1;Array.from(t.$el.parentNode.children).some(a=>(a.className.includes("splitpanes__pane")&&e++,a===t.$el));const r=parseFloat(t.minSize),n=parseFloat(t.maxSize);this.panes.splice(e,0,{id:t._.uid,index:e,min:isNaN(r)?0:r,max:isNaN(n)?100:n,size:t.size===null?null:parseFloat(t.size),givenSize:t.size,update:t.update}),this.panes.forEach((a,s)=>a.index=s),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[e]}),this.$emit("pane-add",{index:e,panes:this.panes.map(a=>({min:a.min,max:a.max,size:a.size}))})})},onPaneRemove(t){const e=this.panes.findIndex(n=>n.id===t._.uid),r=this.panes.splice(e,1)[0];this.panes.forEach((n,a)=>n.index=a),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...r,index:e}}),this.$emit("pane-remove",{removed:r,panes:this.panes.map(n=>({min:n.min,max:n.max,size:n.size}))})})},resetPaneSizes(t={}){!t.addedPane&&!t.removedPane?this.initialPanesSizing():this.panes.some(e=>e.givenSize!==null||e.min||e.max<100)?this.equalizeAfterAddOrRemove(t):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size})))},equalize(){const t=100/this.panesCount;let e=0;const r=[],n=[];this.panes.forEach(a=>{a.size=Math.max(Math.min(t,a.max),a.min),e-=a.size,a.size>=a.max&&r.push(a.id),a.size<=a.min&&n.push(a.id)}),e>.1&&this.readjustSizes(e,r,n)},initialPanesSizing(){let t=100;const e=[],r=[];let n=0;this.panes.forEach(s=>{t-=s.size,s.size!==null&&n++,s.size>=s.max&&e.push(s.id),s.size<=s.min&&r.push(s.id)});let a=100;t>.1&&(this.panes.forEach(s=>{s.size===null&&(s.size=Math.max(Math.min(t/(this.panesCount-n),s.max),s.min)),a-=s.size}),a>.1&&this.readjustSizes(t,e,r))},equalizeAfterAddOrRemove({addedPane:t,removedPane:e}={}){let r=100/this.panesCount,n=0;const a=[],s=[];t&&t.givenSize!==null&&(r=(100-t.givenSize)/(this.panesCount-1)),this.panes.forEach(o=>{n-=o.size,o.size>=o.max&&a.push(o.id),o.size<=o.min&&s.push(o.id)}),!(Math.abs(n)<.1)&&(this.panes.forEach(o=>{t&&t.givenSize!==null&&t.id===o.id||(o.size=Math.max(Math.min(r,o.max),o.min)),n-=o.size,o.size>=o.max&&a.push(o.id),o.size<=o.min&&s.push(o.id)}),n>.1&&this.readjustSizes(n,a,s))},readjustSizes(t,e,r){let n;t>0?n=t/(this.panesCount-e.length):n=t/(this.panesCount-r.length),this.panes.forEach((a,s)=>{if(t>0&&!e.includes(a.id)){const o=Math.max(Math.min(a.size+n,a.max),a.min),u=o-a.size;t-=u,a.size=o}else if(!r.includes(a.id)){const o=Math.max(Math.min(a.size+n,a.max),a.min),u=o-a.size;t-=u,a.size=o}a.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[a.id].size}%`})}),Math.abs(t)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(t){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((e,r)=>{e.ondblclick=t?n=>this.onSplitterDblClick(n,r):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return p2("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},WMe=(t,e)=>{const r=t.__vccOpts||t;for(const[n,a]of e)r[n]=a;return r},KMe={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(t){this.style=t}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(t){this.requestUpdate({target:this,size:t})},minSizeNumber(t){this.requestUpdate({target:this,min:t})},maxSizeNumber(t){this.requestUpdate({target:this,max:t})}}};function JMe(t,e,r,n,a,s){return rr(),gr("div",{class:"splitpanes__pane",onClick:e[0]||(e[0]=o=>s.onPaneClick(o,t._.uid)),style:$b(t.style)},[_le(t.$slots,"default")],4)}const XMe=WMe(KMe,[["render",JMe]]);/*! + }`}function Rje(t,e){console.log(t);let r="select distinct ?instance from { ?instance a } order by ?instance";if(typeof t=="string"){const n=new sl.Parser;t=n.parse(t);const a=n.parse(r);console.log(a)}return console.log(t),t.type==="query"?t.from={default:[qr.namedNode(e)],named:[]}:t.type==="update"&&(t.with=qr.namedNode(e)),t}const Zd=bD("rdf",()=>{const t=fo(!1),e=fo(null);async function r(c){let l,d="";console.log(`send query: ${c}`),typeof c=="string"?(d=c,l=[po().graph_iri]):typeof c=="object"?(d=c.query,c.defaultGraph==="quads"?l=void 0:c.defaultGraph!==void 0?l=c.defaultGraph:l=[po().graph_iri]):(console.error("can't process query"),console.error(c)),l!==void 0&&(console.log(`inject graph: ${l}`),d=Rje(d,l));const f=new sl.Generator;let h;return typeof d!="string"?h=f.stringify(d):h=d,e.value.query(h)}async function n(c,l){l===void 0&&(l=[po().graph_iri]);let d="";for(const m of l)d+=`from <${m}>`;const f=`construct {<${c}> ?p ?o} ${d} where {<${c}> ?p ?o}`,h=await e.value.query_quads(f),p=qr.namedNode(l[0]);return Pt.Readable.from(h).pipe(new dA(p))}function a(){e.value.push!==void 0&&e.value.push().then(function(c){console.log(c)})}function s(){e.value.pull!==void 0&&e.value.pull().then(function(c){console.log(c)})}async function o(c){let l=c.deleteArray,d=c.insertArray;const f=[];if(c.graphIri!==void 0){const p=qr.namedNode(c.graphIri);l&&l.length>0&&(l=await Pt.Readable.from(l).pipe(new dA(p)).toArray()),d&&d.length>0&&(d=await Pt.Readable.from(d).pipe(new dA(p)).toArray())}l&&l.length>0&&f.push(LSe(l).toString()),d&&d.length>0&&f.push(jSe(d).toString());const h=f.join(";");return e.value.update(h)}async function u(c){console.log("Loading …"),console.log("Change SPARQL Endpoint configuration."),console.log(c);const l=await Oje.create(c);e.value=l[0],t.value=!0}return{ready:t,sparqlEndpoint:e,sendQuery:r,getResource:n,push:a,pull:s,deleteInsertData:o,updateEndpointConfiguration:u}}),U1=(t,e)=>{const r=t.__vccOpts||t;for(const[n,a]of e)r[n]=a;return r},xje={name:"SparqlConnection",setup(){const t=Zd(),e=po();return{store:t,selection:e}},data(){return{configure_endpoint_modal:null,endpoint_type:"quit",query_url:"",update_url:"",quit_url:""}},mounted(){this.configure_endpoint_modal=new du(this.$refs.configure_endpoint),this.$refs.configure_endpoint.addEventListener("show.bs.modal",t=>{this.get_endpoint_configuration()})},computed:{...hS(Zd,{store_ready:t=>t.ready}),store_capability:{get(){return this.store.sparqlEndpoint.capability}},graph_iri:{get(){return this.selection.graph_iri},set(t){this.store.changeGraphIri(t)}},resource_iri:{get(){return this.selection.resource_iri},set(t){this.selection.changeResourceIri(t)}}},methods:{push(){this.store.push()},pull(){this.store.pull()},get_endpoint_configuration(){const t=this.store.sparqlEndpoint;this.quit_url="",this.query_url="",this.update_url="",this.endpoint_type=t.type,t.type==="quit"?this.quit_url=t.quitUrl:t.type==="query_only"?this.query_url=t.queryUrl:t.type==="query_update"&&(this.query_url=t.queryUrl,this.update_url=t.updateUrl)},configure_endpoint(){const t={};if(this.endpoint_type==="quit"&&this.quit_url)t.quit_url=this.quit_url;else{if(!this.query_url){console.error("Not even a query_url is given. Not chaning the endpoint configuration.");return}t.query_url=this.query_url,this.update_url&&(t.update_url=this.update_url)}this.store.updateEndpointConfiguration(t)}}},Ije={key:0,inline:"",class:"col-12"},Pje={class:"btn-group col-1 mb-2 mr-sm-2 mb-sm-0",role:"group"},Nje=tt("i",{class:"bi bi-gear"},null,-1),Dje=[Nje],Cje=tt("i",{class:"bi bi-cloud-upload"},null,-1),Lje=[Cje],jje=tt("i",{class:"bi bi-cloud-download"},null,-1),Mje=[jje],Fje=tt("label",{for:"select_url",class:"col-1 mr-sm-2"},"Graph IRI",-1),Bje=tt("label",{for:"select_url",class:"col-1 mr-sm-2"},"Resource IRI",-1),qje={class:"modal fade",ref:"configure_endpoint",tabindex:"-1","aria-hidden":"true","data-bs-backdrop":"static",size:"lg"},$je={class:"modal-dialog modal-lg"},Uje={class:"modal-content"},kje={class:"modal-header"},Vje=tt("h5",{class:"modal-title"},"Configure Endpoint",-1),Hje={class:"modal-body"},Qje={class:"form-group",label:"Endpoint Type"},zje=tt("label",{class:"form-check-label",for:"query_only"},"Query only",-1),Gje=tt("label",{class:"form-check-label",for:"query_update"},"Query & Update",-1),Wje=tt("label",{class:"form-check-label",for:"quit"},"Quit Store",-1),Kje={key:0,class:"form-group"},Jje=tt("label",{for:"quit_url"},"Quit URL",-1),Xje={key:1,class:"form-group"},Yje=tt("label",{for:"query_url"},"Query URL",-1),Zje={key:2,class:"form-group"},eMe=tt("label",{for:"update_url"},"Update URL",-1),tMe={class:"modal-footer"};function rMe(t,e,r,n,a,s){return rr(),gr(Wr,null,[t.store_ready?(rr(),gr("form",Ije,[tt("div",Pje,[tt("button",{type:"button",class:"btn btn-outline-secondary mb-0",onClick:e[0]||(e[0]=o=>a.configure_endpoint_modal.show()),title:"Configure Endpoint","aria-label":"Configure Endpoint"},Dje),s.store_capability.quit?(rr(),gr("button",{key:0,type:"button",class:"btn btn-outline-secondary mb-0",onClick:e[1]||(e[1]=o=>s.push()),title:"Push To Remote Repository","aria-label":"Push To Remote Repository"},Lje)):Na("",!0),s.store_capability.quit?(rr(),gr("button",{key:1,type:"button",class:"btn btn-outline-secondary mb-0",onClick:e[2]||(e[2]=o=>s.pull()),title:"Pull From Remote Repository","aria-label":"Pull From Remote Repository"},Mje)):Na("",!0)]),Fje,Xi(tt("input",{type:"text",class:"form-control col-2",id:"graph_iri","onUpdate:modelValue":e[3]||(e[3]=o=>s.graph_iri=o)},null,512),[[ta,s.graph_iri]]),Bje,Xi(tt("input",{type:"text",class:"form-control col-6",id:"resource_iri","onUpdate:modelValue":e[4]||(e[4]=o=>s.resource_iri=o)},null,512),[[ta,s.resource_iri]])])):Na("",!0),tt("div",qje,[tt("div",$je,[tt("div",Uje,[tt("div",kje,[Vje,tt("button",{type:"button",class:"btn-close",onClick:e[5]||(e[5]=o=>a.configure_endpoint_modal.hide()),"aria-label":"Close"})]),tt("div",Hje,[tt("form",null,[tt("div",Qje,[Xi(tt("input",{class:"form-check-input",type:"radio",name:"endpoint_type","onUpdate:modelValue":e[6]||(e[6]=o=>a.endpoint_type=o),id:"query_only",value:"query_only"},null,512),[[H_,a.endpoint_type]]),zje,Xi(tt("input",{class:"form-check-input",type:"radio",name:"endpoint_type","onUpdate:modelValue":e[7]||(e[7]=o=>a.endpoint_type=o),id:"query_update",value:"query_update"},null,512),[[H_,a.endpoint_type]]),Gje,Xi(tt("input",{class:"form-check-input",type:"radio",name:"endpoint_type","onUpdate:modelValue":e[8]||(e[8]=o=>a.endpoint_type=o),id:"quit",value:"quit"},null,512),[[H_,a.endpoint_type]]),Wje]),a.endpoint_type=="quit"?(rr(),gr("div",Kje,[Jje,tt("div",null,[Xi(tt("input",{type:"text",class:"form-control",id:"quit_url","onUpdate:modelValue":e[9]||(e[9]=o=>a.quit_url=o),placeholder:"http://your.quit.store.org/"},null,512),[[ta,a.quit_url]])])])):Na("",!0),a.endpoint_type=="query_only"||a.endpoint_type=="query_update"?(rr(),gr("div",Xje,[Yje,tt("div",null,[Xi(tt("input",{type:"text",class:"form-control",id:"query_url","onUpdate:modelValue":e[10]||(e[10]=o=>a.query_url=o),placeholder:"http://your.sparql.store.org/query"},null,512),[[ta,a.query_url]])])])):Na("",!0),a.endpoint_type=="query_update"?(rr(),gr("div",Zje,[eMe,tt("div",null,[Xi(tt("input",{type:"text",class:"form-control",id:"update_url","onUpdate:modelValue":e[11]||(e[11]=o=>a.update_url=o),placeholder:"http://your.sparql.store.org/update"},null,512),[[ta,a.update_url]])])])):Na("",!0)])]),tt("div",tMe,[tt("button",{type:"button",class:"btn btn-secondary",onClick:e[12]||(e[12]=o=>a.configure_endpoint_modal.hide())},"Close"),tt("button",{type:"button",class:"btn btn-primary",onClick:e[13]||(e[13]=o=>{s.configure_endpoint(),a.configure_endpoint_modal.hide()})},"Save changes")])])])],512)],64)}const nMe=U1(xje,[["render",rMe]]),iMe=bD("prefixes",{state:()=>({prefixes:{ex:qr.namedNode("http://example.org/"),exc:qr.namedNode("http://example.org/classes#"),exp:qr.namedNode("http://example.org/properties#"),rdf:qr.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#"),rdfs:qr.namedNode("http://www.w3.org/2000/01/rdf-schema#"),xsd:qr.namedNode("http://www.w3.org/2001/XMLSchema#"),foaf:qr.namedNode("http://xmlns.com/foaf/0.1/"),sh:qr.namedNode("http://www.w3.org/ns/shacl#")}}),getters:{namespace_prefix_map:t=>{const e={};return Object.keys(t.prefixes).forEach(r=>{e[t.prefixes[r].value]=r}),e},prefixes_flat:t=>{const e={};return Object.keys(t.prefixes).forEach(r=>{e[r]=t.prefixes[r].value}),e}},actions:{setPrefix(t,e){this.prefixes[t]=qr.namedNode(e)},resolvePrefix(t){return this.prefixes[t]},getPrefix(t){return this.namespace_prefix_map[t]},shortenIri(t){const e=new URL(t);let r=e.toString(),n="";if(e.hash){const a=r.lastIndexOf("#");n=r.substr(0,a+1),r=e.hash.substr(1)}else if(e.pathname){const a=r.lastIndexOf("/");n=r.substr(0,a+1),r=r.substr(a+1)}return this.namespace_prefix_map[n]&&r.indexOf("#")<0&&r.indexOf(":")<0&&r.indexOf("/")<0?`${this.namespace_prefix_map[n]}:${r}`:e.toString()}}}),aMe={name:"QueryResultList",setup(){const t=Zd(),e=po();return{store:t,selection:e}},mounted(){this.updateList()},props:{title:String,query:String,queryQuads:{type:Boolean,default:!1},search:{type:Boolean,default:!1},selectVariable:{type:String,default:"resourceIri"},itemClass:String,add:Function,selectResource:Function,addTitle:String,activeResource:String},watch:{query(t){this.updateList()}},data(){return{resources:[],filter:""}},computed:{resourcesFiltered(){return this.filter?this.resources.filter(t=>t.toLowerCase().includes(this.filter.toLowerCase())):this.resources}},methods:{select(t){this.selectResource&&this.selectResource(t)},async updateList(){let t;this.queryQuads&&(t="quads");const e=await this.store.sendQuery({query:this.query,defaultGraph:t});if(e.resultType==="bindings"){const r=await e.execute();this.resources=await Array.fromAsync(r,(n,a)=>n.get(this.selectVariable).value)}},shortenIri(t){return iMe().shortenIri(t)}}},Vte=t=>($ce("data-v-211acf3b"),t=t(),Uce(),t),sMe={class:"card"},oMe={class:"card-header d-flex justify-content-between align-items-center"},uMe={class:"row row-cols-lg-auto g-3 align-items-center"},cMe={class:"col-12"},lMe={class:"mb-0"},dMe={class:"col-12"},fMe={class:"input-group mb-3"},hMe=Vte(()=>tt("i",{class:"bi bi-arrow-repeat"},null,-1)),pMe=[hMe],yMe=["title","aria-label"],mMe=Vte(()=>tt("i",{class:"bi bi-plus-square"},null,-1)),gMe=[mMe],_Me={class:"list-group list-group-flush"},bMe=["for","title","onClick"];function vMe(t,e,r,n,a,s){return rr(),gr("div",sMe,[tt("div",oMe,[tt("div",uMe,[tt("div",cMe,[tt("h6",lMe,BI(r.title),1)]),tt("div",dMe,[tt("div",fMe,[r.search?Xi((rr(),gr("input",{key:0,type:"text",class:"form-control","onUpdate:modelValue":e[0]||(e[0]=o=>a.filter=o),placeholder:"Search …"},null,512)),[[ta,a.filter]]):Na("",!0),tt("button",{type:"button",class:"btn btn-secondary",onClick:e[1]||(e[1]=(...o)=>s.updateList&&s.updateList(...o)),title:"Reload","aria-label":"Reload"},pMe),r.add?(rr(),gr("button",{key:1,type:"button",class:"btn btn-secondary",onClick:e[2]||(e[2]=(...o)=>r.add&&r.add(...o)),title:r.addTitle,"aria-label":r.addTitle},gMe,8,yMe)):Na("",!0)])])])]),tt("ul",_Me,[(rr(!0),gr(Wr,null,mle(s.resourcesFiltered,(o,u)=>(rr(),gr("li",{class:Qc(["list-group-item",[{active:o==r.activeResource},r.itemClass]]),key:u,href:"#",for:"form-control"+u,title:o,onClick:c=>s.select(o)},BI(s.shortenIri(o)),11,bMe))),128))])])}const Hte=U1(aMe,[["render",vMe],["__scopeId","data-v-211acf3b"]]),wMe={name:"TermInput",mounted(){this.updateNode()},watch:{term(t){this.updateNode()}},data(){return{dynamicNodetype:"iri",literalType:"language",idValue:"",language:"de",datatype:"http://www.w3.org/2001/XMLSchema#string",node:{}}},props:{type:String,id:String,term:Object},computed:{nodeType:{get:function(){return this.type?this.type:this.dynamicNodetype},set:function(t){this.dynamicNodetype=t}}},methods:{setType(t){this.nodeType=t,this.notify()},setLiteralType(t){this.literalType=t,this.notify()},notify(){this.updateTerm()},updateTerm(){this.dynamicNodetype==="iri"?this.node=qr.namedNode(this.idValue):this.literalType==="language"?this.node=qr.literal(this.idValue,this.language):this.node=qr.literal(this.idValue,qr.namedNode(this.datatype)),this.$emit("update:term",this.node)},updateNode(){this.term!=null&&(this.node=this.term,this.term.termType==="NamedNode"?this.dynamicNodetype="iri":this.term.termType==="Literal"&&(this.dynamicNodetype="literal",this.term.language?(this.language=this.term.language,this.literalType="language"):(this.datatype=this.term.datatype.value,this.literalType="datatype")),this.idValue=this.term.value)}}},SMe={class:"input-group"},TMe={key:1,class:"input-group-text"},EMe={key:2,class:"input-group-text"},AMe=["id"],OMe={key:3,class:"input-group-text"},RMe=["id"],xMe=["id"],IMe=tt("span",{class:"input-group-text"},">",-1);function PMe(t,e,r,n,a,s){return rr(),gr("div",SMe,[r.type===void 0?(rr(),gr(Wr,{key:0},[tt("button",{onClick:e[0]||(e[0]=o=>s.setType("iri")),class:Qc(["btn btn-outline-secondary",{active:s.nodeType=="iri"}]),type:"button"},"IRI",2),tt("button",{onClick:e[1]||(e[1]=o=>s.setType("literal")),class:Qc(["btn btn-outline-secondary",{active:s.nodeType=="literal"}]),type:"button"},"Lit",2)],64)):Na("",!0),s.nodeType==="iri"?(rr(),gr("span",TMe,"<")):s.nodeType==="literal"?(rr(),gr("span",EMe,'"')):Na("",!0),Xi(tt("input",{id:"value-"+this.id,"onUpdate:modelValue":e[2]||(e[2]=o=>a.idValue=o),onInput:e[3]||(e[3]=(...o)=>s.notify&&s.notify(...o)),type:"text",class:"form-control"},null,40,AMe),[[ta,a.idValue]]),s.nodeType==="iri"?(rr(),gr("span",OMe,">")):s.nodeType==="literal"&&a.literalType==="language"?(rr(),gr(Wr,{key:4},[tt("span",{onClick:e[4]||(e[4]=o=>s.setLiteralType("datatype")),class:"input-group-text btn btn-outline-secondary"},'"@'),Xi(tt("input",{id:"language-"+this.id,"onUpdate:modelValue":e[5]||(e[5]=o=>a.language=o),onInput:e[6]||(e[6]=(...o)=>s.notify&&s.notify(...o)),type:"text",class:"form-control"},null,40,RMe),[[ta,a.language]])],64)):s.nodeType==="literal"&&a.literalType==="datatype"?(rr(),gr(Wr,{key:5},[tt("span",{onClick:e[7]||(e[7]=o=>s.setLiteralType("language")),class:"input-group-text btn btn-outline-secondary"},'"^^<'),Xi(tt("input",{id:"datatype-"+this.id,"onUpdate:modelValue":e[8]||(e[8]=o=>a.datatype=o),onInput:e[9]||(e[9]=(...o)=>s.notify&&s.notify(...o)),type:"text",class:"form-control"},null,40,xMe),[[ta,a.datatype]]),IMe],64)):Na("",!0)])}const NMe=U1(wMe,[["render",PMe]]),DMe={name:"GraphList",setup(){return{store:Zd()}},components:{TermInput:NMe,QueryResultList:Hte},props:{graph_iri:String,selectGraph:Function},data(){return{graphs:[],new_graph_iri:qr.namedNode(""),add_graph_modal:null}},mounted(){this.add_graph_modal=new du(this.$refs.add_graph)},methods:{async add_graph(){const t=[qr.quad(this.new_graph_iri,qr.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"),qr.namedNode("http://www.w3.org/2000/01/rdf-schema#Graph"))];console.log(this.new_graph_iri);try{await this.store.deleteInsertData({insertArray:t,graphIri:this.new_graph_iri.value}),this.add_graph_modal.hide()}catch(e){console.error(e)}}}},CMe={class:"modal fade",ref:"add_graph",tabindex:"-1","aria-hidden":"true","data-bs-backdrop":"static",size:"lg"},LMe={class:"modal-dialog modal-lg"},jMe={class:"modal-content"},MMe={class:"modal-header"},FMe=tt("h5",{class:"modal-title"},"Create New Graph",-1),BMe={class:"modal-body"},qMe={class:"form-group"},$Me=tt("label",{for:"new_graph_iri"},"IRI",-1),UMe={class:"modal-footer"};function kMe(t,e,r,n,a,s){const o=Ys("QueryResultList"),u=Ys("TermInput");return rr(),gr("div",null,[It(o,{title:"Graph List",search:"",query:"select distinct ?graph { graph ?graph {?s ?p ?o}} order by ?graph","query-quads":"","select-variable":"graph",ref:"classList",add:()=>{a.add_graph_modal.show()},selectResource:r.selectGraph,activeResource:r.graph_iri},null,8,["add","selectResource","activeResource"]),tt("div",CMe,[tt("div",LMe,[tt("div",jMe,[tt("div",MMe,[FMe,tt("button",{type:"button",class:"btn-close",onClick:e[0]||(e[0]=c=>a.add_graph_modal.hide()),"aria-label":"Close"})]),tt("div",BMe,[tt("form",null,[tt("div",qMe,[$Me,tt("div",null,[It(u,{type:"iri",id:"new_graph_iri",term:a.new_graph_iri,"onUpdate:term":e[1]||(e[1]=c=>a.new_graph_iri=c)},null,8,["term"])])])])]),tt("div",UMe,[tt("button",{type:"button",class:"btn btn-secondary",onClick:e[2]||(e[2]=c=>a.add_graph_modal.hide())},"Close"),tt("button",{type:"button",class:"btn btn-primary",onClick:e[3]||(e[3]=c=>s.add_graph())},"Save changes")])])])],512)])}const VMe=U1(DMe,[["render",kMe]]),HMe={name:"ClassList",props:{class_iri:String,selectClass:Function},watch:{graph_iri(t){console.log("graph_iri changed"+t),this.$refs.classList.updateList()}},computed:{...hS(po,["graph_iri"])}},QMe=Object.assign(HMe,{setup(t){return(e,r)=>(rr(),mD(Hte,{title:"Class List",search:"",query:"select distinct ?class { {?s a ?class} union {?class a } union {?class a } } order by ?class","select-variable":"class",ref:"classList",activeResource:t.class_iri,selectResource:t.selectClass},null,8,["activeResource","selectResource"]))}}),zMe={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((t,e)=>(t[e.id]=e)&&t,{})}},methods:{updatePaneComponents(){this.panes.forEach(t=>{t.update&&t.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[t.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(t,e){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=e},onMouseMove(t){this.touch.mouseDown&&(t.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(t)),this.$emit("resize",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(t,e){"ontouchstart"in window&&(t.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===e?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(t,e),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=e,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[e])},onSplitterDblClick(t,e){let r=0;this.panes=this.panes.map((n,a)=>(n.size=a===e?n.max:n.min,a!==e&&(r+=n.min),n)),this.panes[e].size-=r,this.$emit("pane-maximize",this.panes[e]),this.$emit("resized",this.panes.map(n=>({min:n.min,max:n.max,size:n.size})))},onPaneClick(t,e){this.$emit("pane-click",this.indexedPanes[e])},getCurrentMouseDrag(t){const e=this.container.getBoundingClientRect(),{clientX:r,clientY:n}="ontouchstart"in window&&t.touches?t.touches[0]:t;return{x:r-e.left,y:n-e.top}},getCurrentDragPercentage(t){t=t[this.horizontal?"y":"x"];const e=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(t=e-t),t*100/e},calculatePanesSize(t){const e=this.touch.activeSplitter;let r={prevPanesSize:this.sumPrevPanesSize(e),nextPanesSize:this.sumNextPanesSize(e),prevReachedMinPanes:0,nextReachedMinPanes:0};const n=0+(this.pushOtherPanes?0:r.prevPanesSize),a=100-(this.pushOtherPanes?0:r.nextPanesSize),s=Math.max(Math.min(this.getCurrentDragPercentage(t),a),n);let o=[e,e+1],u=this.panes[o[0]]||null,c=this.panes[o[1]]||null;const l=u.max<100&&s>=u.max+r.prevPanesSize,d=c.max<100&&s<=100-(c.max+this.sumNextPanesSize(e+1));if(l||d){l?(u.size=u.max,c.size=Math.max(100-u.max-r.prevPanesSize-r.nextPanesSize,0)):(u.size=Math.max(100-c.max-r.prevPanesSize-this.sumNextPanesSize(e+1),0),c.size=c.max);return}if(this.pushOtherPanes){const f=this.doPushOtherPanes(r,s);if(!f)return;({sums:r,panesToResize:o}=f),u=this.panes[o[0]]||null,c=this.panes[o[1]]||null}u!==null&&(u.size=Math.min(Math.max(s-r.prevPanesSize-r.prevReachedMinPanes,u.min),u.max)),c!==null&&(c.size=Math.min(Math.max(100-s-r.nextPanesSize-r.nextReachedMinPanes,c.min),c.max))},doPushOtherPanes(t,e){const r=this.touch.activeSplitter,n=[r,r+1];return e{s>n[0]&&s<=r&&(a.size=a.min,t.prevReachedMinPanes+=a.min)}),t.prevPanesSize=this.sumPrevPanesSize(n[0]),n[0]===void 0)?(t.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((a,s)=>{s>0&&s<=r&&(a.size=a.min,t.prevReachedMinPanes+=a.min)}),this.panes[n[1]].size=100-t.prevReachedMinPanes-this.panes[0].min-t.prevPanesSize-t.nextPanesSize,null):e>100-t.nextPanesSize-this.panes[n[1]].min&&(n[1]=this.findNextExpandedPane(r).index,t.nextReachedMinPanes=0,n[1]>r+1&&this.panes.forEach((a,s)=>{s>r&&s{s=r+1&&(a.size=a.min,t.nextReachedMinPanes+=a.min)}),this.panes[n[0]].size=100-t.prevPanesSize-t.nextReachedMinPanes-this.panes[this.panesCount-1].min-t.nextPanesSize,null):{sums:t,panesToResize:n}},sumPrevPanesSize(t){return this.panes.reduce((e,r,n)=>e+(ne+(n>t+1?r.size:0),0)},findPrevExpandedPane(t){return[...this.panes].reverse().find(e=>e.indexe.min)||{}},findNextExpandedPane(t){return this.panes.find(e=>e.index>t+1&&e.size>e.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(t=>{const e=t.classList.contains("splitpanes__pane"),r=t.classList.contains("splitpanes__splitter");!e&&!r&&(t.parentNode.removeChild(t),console.warn("Splitpanes: Only elements are allowed at the root of . One of your DOM nodes was removed."))})},addSplitter(t,e,r=!1){const n=t-1,a=document.createElement("div");a.classList.add("splitpanes__splitter"),r||(a.onmousedown=s=>this.onMouseDown(s,n),typeof window<"u"&&"ontouchstart"in window&&(a.ontouchstart=s=>this.onMouseDown(s,n)),a.onclick=s=>this.onSplitterClick(s,n+1)),this.dblClickSplitter&&(a.ondblclick=s=>this.onSplitterDblClick(s,n+1)),e.parentNode.insertBefore(a,e)},removeSplitter(t){t.onmousedown=void 0,t.onclick=void 0,t.ondblclick=void 0,t.parentNode.removeChild(t)},redoSplitters(){const t=Array.from(this.container.children);t.forEach(r=>{r.className.includes("splitpanes__splitter")&&this.removeSplitter(r)});let e=0;t.forEach(r=>{r.className.includes("splitpanes__pane")&&(!e&&this.firstSplitter?this.addSplitter(e,r,!0):e&&this.addSplitter(e,r),e++)})},requestUpdate({target:t,...e}){const r=this.indexedPanes[t._.uid];Object.entries(e).forEach(([n,a])=>r[n]=a)},onPaneAdd(t){let e=-1;Array.from(t.$el.parentNode.children).some(a=>(a.className.includes("splitpanes__pane")&&e++,a===t.$el));const r=parseFloat(t.minSize),n=parseFloat(t.maxSize);this.panes.splice(e,0,{id:t._.uid,index:e,min:isNaN(r)?0:r,max:isNaN(n)?100:n,size:t.size===null?null:parseFloat(t.size),givenSize:t.size,update:t.update}),this.panes.forEach((a,s)=>a.index=s),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[e]}),this.$emit("pane-add",{index:e,panes:this.panes.map(a=>({min:a.min,max:a.max,size:a.size}))})})},onPaneRemove(t){const e=this.panes.findIndex(n=>n.id===t._.uid),r=this.panes.splice(e,1)[0];this.panes.forEach((n,a)=>n.index=a),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...r,index:e}}),this.$emit("pane-remove",{removed:r,panes:this.panes.map(n=>({min:n.min,max:n.max,size:n.size}))})})},resetPaneSizes(t={}){!t.addedPane&&!t.removedPane?this.initialPanesSizing():this.panes.some(e=>e.givenSize!==null||e.min||e.max<100)?this.equalizeAfterAddOrRemove(t):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size})))},equalize(){const t=100/this.panesCount;let e=0;const r=[],n=[];this.panes.forEach(a=>{a.size=Math.max(Math.min(t,a.max),a.min),e-=a.size,a.size>=a.max&&r.push(a.id),a.size<=a.min&&n.push(a.id)}),e>.1&&this.readjustSizes(e,r,n)},initialPanesSizing(){let t=100;const e=[],r=[];let n=0;this.panes.forEach(s=>{t-=s.size,s.size!==null&&n++,s.size>=s.max&&e.push(s.id),s.size<=s.min&&r.push(s.id)});let a=100;t>.1&&(this.panes.forEach(s=>{s.size===null&&(s.size=Math.max(Math.min(t/(this.panesCount-n),s.max),s.min)),a-=s.size}),a>.1&&this.readjustSizes(t,e,r))},equalizeAfterAddOrRemove({addedPane:t,removedPane:e}={}){let r=100/this.panesCount,n=0;const a=[],s=[];t&&t.givenSize!==null&&(r=(100-t.givenSize)/(this.panesCount-1)),this.panes.forEach(o=>{n-=o.size,o.size>=o.max&&a.push(o.id),o.size<=o.min&&s.push(o.id)}),!(Math.abs(n)<.1)&&(this.panes.forEach(o=>{t&&t.givenSize!==null&&t.id===o.id||(o.size=Math.max(Math.min(r,o.max),o.min)),n-=o.size,o.size>=o.max&&a.push(o.id),o.size<=o.min&&s.push(o.id)}),n>.1&&this.readjustSizes(n,a,s))},readjustSizes(t,e,r){let n;t>0?n=t/(this.panesCount-e.length):n=t/(this.panesCount-r.length),this.panes.forEach((a,s)=>{if(t>0&&!e.includes(a.id)){const o=Math.max(Math.min(a.size+n,a.max),a.min),u=o-a.size;t-=u,a.size=o}else if(!r.includes(a.id)){const o=Math.max(Math.min(a.size+n,a.max),a.min),u=o-a.size;t-=u,a.size=o}a.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[a.id].size}%`})}),Math.abs(t)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(t){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((e,r)=>{e.ondblclick=t?n=>this.onSplitterDblClick(n,r):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return h2("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},GMe=(t,e)=>{const r=t.__vccOpts||t;for(const[n,a]of e)r[n]=a;return r},WMe={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(t){this.style=t}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(t){this.requestUpdate({target:this,size:t})},minSizeNumber(t){this.requestUpdate({target:this,min:t})},maxSizeNumber(t){this.requestUpdate({target:this,max:t})}}};function KMe(t,e,r,n,a,s){return rr(),gr("div",{class:"splitpanes__pane",onClick:e[0]||(e[0]=o=>s.onPaneClick(o,t._.uid)),style:$b(t.style)},[gle(t.$slots,"default")],4)}const JMe=GMe(WMe,[["render",KMe]]);/*! * vue-router v4.3.2 * (c) 2024 Eduardo San Martin Morote * @license MIT - */const ed=typeof document<"u";function YMe(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const ar=Object.assign;function vI(t,e){const r={};for(const n in e){const a=e[n];r[n]=Ba(a)?a.map(t):t(a)}return r}const Z_=()=>{},Ba=Array.isArray,Qte=/#/g,ZMe=/&/g,e8e=/\//g,t8e=/=/g,r8e=/\?/g,zte=/\+/g,n8e=/%5B/g,i8e=/%5D/g,Gte=/%5E/g,a8e=/%60/g,Wte=/%7B/g,s8e=/%7C/g,Kte=/%7D/g,o8e=/%20/g;function R4(t){return encodeURI(""+t).replace(s8e,"|").replace(n8e,"[").replace(i8e,"]")}function u8e(t){return R4(t).replace(Wte,"{").replace(Kte,"}").replace(Gte,"^")}function lN(t){return R4(t).replace(zte,"%2B").replace(o8e,"+").replace(Qte,"%23").replace(ZMe,"%26").replace(a8e,"`").replace(Wte,"{").replace(Kte,"}").replace(Gte,"^")}function c8e(t){return lN(t).replace(t8e,"%3D")}function l8e(t){return R4(t).replace(Qte,"%23").replace(r8e,"%3F")}function d8e(t){return t==null?"":l8e(t).replace(e8e,"%2F")}function xb(t){try{return decodeURIComponent(""+t)}catch{}return""+t}const f8e=/\/$/,h8e=t=>t.replace(f8e,"");function wI(t,e,r="/"){let n,a={},s="",o="";const u=e.indexOf("#");let c=e.indexOf("?");return u=0&&(c=-1),c>-1&&(n=e.slice(0,c),s=e.slice(c+1,u>-1?u:e.length),a=t(s)),u>-1&&(n=n||e.slice(0,u),o=e.slice(u,e.length)),n=g8e(n??e,r),{fullPath:n+(s&&"?")+s+o,path:n,query:a,hash:xb(o)}}function p8e(t,e){const r=e.query?t(e.query):"";return e.path+(r&&"?")+r+(e.hash||"")}function LQ(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function y8e(t,e,r){const n=e.matched.length-1,a=r.matched.length-1;return n>-1&&n===a&&ef(e.matched[n],r.matched[a])&&Jte(e.params,r.params)&&t(e.query)===t(r.query)&&e.hash===r.hash}function ef(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function Jte(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const r in t)if(!m8e(t[r],e[r]))return!1;return!0}function m8e(t,e){return Ba(t)?jQ(t,e):Ba(e)?jQ(e,t):t===e}function jQ(t,e){return Ba(e)?t.length===e.length&&t.every((r,n)=>r===e[n]):t.length===1&&t[0]===e}function g8e(t,e){if(t.startsWith("/"))return t;if(!t)return e;const r=e.split("/"),n=t.split("/"),a=n[n.length-1];(a===".."||a===".")&&n.push("");let s=r.length-1,o,u;for(o=0;o1&&s--;else break;return r.slice(0,s).join("/")+"/"+n.slice(o).join("/")}var Ib;(function(t){t.pop="pop",t.push="push"})(Ib||(Ib={}));var eb;(function(t){t.back="back",t.forward="forward",t.unknown=""})(eb||(eb={}));function _8e(t){if(!t)if(ed){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),h8e(t)}const b8e=/^[^#]+#/;function v8e(t,e){return t.replace(b8e,"#")+e}function w8e(t,e){const r=document.documentElement.getBoundingClientRect(),n=t.getBoundingClientRect();return{behavior:e.behavior,left:n.left-r.left-(e.left||0),top:n.top-r.top-(e.top||0)}}const XT=()=>({left:window.scrollX,top:window.scrollY});function S8e(t){let e;if("el"in t){const r=t.el,n=typeof r=="string"&&r.startsWith("#"),a=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!a)return;e=w8e(a,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function MQ(t,e){return(history.state?history.state.position-e:-1)+t}const dN=new Map;function T8e(t,e){dN.set(t,e)}function E8e(t){const e=dN.get(t);return dN.delete(t),e}let A8e=()=>location.protocol+"//"+location.host;function Xte(t,e){const{pathname:r,search:n,hash:a}=e,s=t.indexOf("#");if(s>-1){let u=a.includes(t.slice(s))?t.slice(s).length:1,c=a.slice(u);return c[0]!=="/"&&(c="/"+c),LQ(c,"")}return LQ(r,t)+n+a}function O8e(t,e,r,n){let a=[],s=[],o=null;const u=({state:h})=>{const p=Xte(t,location),m=r.value,y=e.value;let g=0;if(h){if(r.value=p,e.value=h,o&&o===m){o=null;return}g=y?h.position-y.position:0}else n(p);a.forEach(b=>{b(r.value,m,{delta:g,type:Ib.pop,direction:g?g>0?eb.forward:eb.back:eb.unknown})})};function c(){o=r.value}function l(h){a.push(h);const p=()=>{const m=a.indexOf(h);m>-1&&a.splice(m,1)};return s.push(p),p}function d(){const{history:h}=window;h.state&&h.replaceState(ar({},h.state,{scroll:XT()}),"")}function f(){for(const h of s)h();s=[],window.removeEventListener("popstate",u),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",u),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:c,listen:l,destroy:f}}function FQ(t,e,r,n=!1,a=!1){return{back:t,current:e,forward:r,replaced:n,position:window.history.length,scroll:a?XT():null}}function R8e(t){const{history:e,location:r}=window,n={value:Xte(t,r)},a={value:e.state};a.value||s(n.value,{back:null,current:n.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function s(c,l,d){const f=t.indexOf("#"),h=f>-1?(r.host&&document.querySelector("base")?t:t.slice(f))+c:A8e()+t+c;try{e[d?"replaceState":"pushState"](l,"",h),a.value=l}catch(p){console.error(p),r[d?"replace":"assign"](h)}}function o(c,l){const d=ar({},e.state,FQ(a.value.back,c,a.value.forward,!0),l,{position:a.value.position});s(c,d,!0),n.value=c}function u(c,l){const d=ar({},a.value,e.state,{forward:c,scroll:XT()});s(d.current,d,!0);const f=ar({},FQ(n.value,c,null),{position:d.position+1},l);s(c,f,!1),n.value=c}return{location:n,state:a,push:u,replace:o}}function x8e(t){t=_8e(t);const e=R8e(t),r=O8e(t,e.state,e.location,e.replace);function n(s,o=!0){o||r.pauseListeners(),history.go(s)}const a=ar({location:"",base:t,go:n,createHref:v8e.bind(null,t)},e,r);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>e.state.value}),a}function I8e(t){return t=location.host?t||location.pathname+location.search:"",t.includes("#")||(t+="#"),x8e(t)}function P8e(t){return typeof t=="string"||t&&typeof t=="object"}function Yte(t){return typeof t=="string"||typeof t=="symbol"}const qo={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Zte=Symbol("");var BQ;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(BQ||(BQ={}));function tf(t,e){return ar(new Error,{type:t,[Zte]:!0},e)}function Vs(t,e){return t instanceof Error&&Zte in t&&(e==null||!!(t.type&e))}const qQ="[^/]+?",N8e={sensitive:!1,strict:!1,start:!0,end:!0},D8e=/[.+*?^${}()[\]/\\]/g;function C8e(t,e){const r=ar({},N8e,e),n=[];let a=r.start?"^":"";const s=[];for(const l of t){const d=l.length?[]:[90];r.strict&&!l.length&&(a+="/");for(let f=0;fe.length?e.length===1&&e[0]===80?1:-1:0}function j8e(t,e){let r=0;const n=t.score,a=e.score;for(;r0&&e[e.length-1]<0}const M8e={type:0,value:""},F8e=/[a-zA-Z0-9_]/;function B8e(t){if(!t)return[[]];if(t==="/")return[[M8e]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(p){throw new Error(`ERR (${r})/"${l}": ${p}`)}let r=0,n=r;const a=[];let s;function o(){s&&a.push(s),s=[]}let u=0,c,l="",d="";function f(){l&&(r===0?s.push({type:0,value:l}):r===1||r===2||r===3?(s.length>1&&(c==="*"||c==="+")&&e(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:l,regexp:d,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):e("Invalid state to consume buffer"),l="")}function h(){l+=c}for(;u{o(v)}:Z_}function o(d){if(Yte(d)){const f=n.get(d);f&&(n.delete(d),r.splice(r.indexOf(f),1),f.children.forEach(o),f.alias.forEach(o))}else{const f=r.indexOf(d);f>-1&&(r.splice(f,1),d.record.name&&n.delete(d.record.name),d.children.forEach(o),d.alias.forEach(o))}}function u(){return r}function c(d){let f=0;for(;f=0&&(d.record.path!==r[f].record.path||!ere(d,r[f]));)f++;r.splice(f,0,d),d.record.name&&!kQ(d)&&n.set(d.record.name,d)}function l(d,f){let h,p={},m,y;if("name"in d&&d.name){if(h=n.get(d.name),!h)throw tf(1,{location:d});y=h.record.name,p=ar(UQ(f.params,h.keys.filter(v=>!v.optional).concat(h.parent?h.parent.keys.filter(v=>v.optional):[]).map(v=>v.name)),d.params&&UQ(d.params,h.keys.map(v=>v.name))),m=h.stringify(p)}else if(d.path!=null)m=d.path,h=r.find(v=>v.re.test(m)),h&&(p=h.parse(m),y=h.record.name);else{if(h=f.name?n.get(f.name):r.find(v=>v.re.test(f.path)),!h)throw tf(1,{location:d,currentLocation:f});y=h.record.name,p=ar({},f.params,d.params),m=h.stringify(p)}const g=[];let b=h;for(;b;)g.unshift(b.record),b=b.parent;return{name:y,path:m,params:p,matched:g,meta:V8e(g)}}return t.forEach(d=>s(d)),{addRoute:s,resolve:l,removeRoute:o,getRoutes:u,getRecordMatcher:a}}function UQ(t,e){const r={};for(const n of e)n in t&&(r[n]=t[n]);return r}function U8e(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:k8e(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function k8e(t){const e={},r=t.props||!1;if("component"in t)e.default=r;else for(const n in t.components)e[n]=typeof r=="object"?r[n]:r;return e}function kQ(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function V8e(t){return t.reduce((e,r)=>ar(e,r.meta),{})}function VQ(t,e){const r={};for(const n in t)r[n]=n in e?e[n]:t[n];return r}function ere(t,e){return e.children.some(r=>r===t||ere(t,r))}function H8e(t){const e={};if(t===""||t==="?")return e;const n=(t[0]==="?"?t.slice(1):t).split("&");for(let a=0;as&&lN(s)):[n&&lN(n)]).forEach(s=>{s!==void 0&&(e+=(e.length?"&":"")+r,s!=null&&(e+="="+s))})}return e}function Q8e(t){const e={};for(const r in t){const n=t[r];n!==void 0&&(e[r]=Ba(n)?n.map(a=>a==null?null:""+a):n==null?n:""+n)}return e}const z8e=Symbol(""),QQ=Symbol(""),x4=Symbol(""),tre=Symbol(""),fN=Symbol("");function m_(){let t=[];function e(n){return t.push(n),()=>{const a=t.indexOf(n);a>-1&&t.splice(a,1)}}function r(){t=[]}return{add:e,list:()=>t.slice(),reset:r}}function eu(t,e,r,n,a,s=o=>o()){const o=n&&(n.enterCallbacks[a]=n.enterCallbacks[a]||[]);return()=>new Promise((u,c)=>{const l=h=>{h===!1?c(tf(4,{from:r,to:e})):h instanceof Error?c(h):P8e(h)?c(tf(2,{from:e,to:h})):(o&&n.enterCallbacks[a]===o&&typeof h=="function"&&o.push(h),u())},d=s(()=>t.call(n&&n.instances[a],e,r,l));let f=Promise.resolve(d);t.length<3&&(f=f.then(l)),f.catch(h=>c(h))})}function SI(t,e,r,n,a=s=>s()){const s=[];for(const o of t)for(const u in o.components){let c=o.components[u];if(!(e!=="beforeRouteEnter"&&!o.instances[u]))if(G8e(c)){const d=(c.__vccOpts||c)[e];d&&s.push(eu(d,r,n,o,u,a))}else{let l=c();s.push(()=>l.then(d=>{if(!d)return Promise.reject(new Error(`Couldn't resolve component "${u}" at "${o.path}"`));const f=YMe(d)?d.default:d;o.components[u]=f;const p=(f.__vccOpts||f)[e];return p&&eu(p,r,n,o,u,a)()}))}}return s}function G8e(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function zQ(t){const e=cs(x4),r=cs(tre),n=ea(()=>{const c=Fc(t.to);return e.resolve(c)}),a=ea(()=>{const{matched:c}=n.value,{length:l}=c,d=c[l-1],f=r.matched;if(!d||!f.length)return-1;const h=f.findIndex(ef.bind(null,d));if(h>-1)return h;const p=GQ(c[l-2]);return l>1&&GQ(d)===p&&f[f.length-1].path!==p?f.findIndex(ef.bind(null,c[l-2])):h}),s=ea(()=>a.value>-1&&J8e(r.params,n.value.params)),o=ea(()=>a.value>-1&&a.value===r.matched.length-1&&Jte(r.params,n.value.params));function u(c={}){return K8e(c)?e[Fc(t.replace)?"replace":"push"](Fc(t.to)).catch(Z_):Promise.resolve()}return{route:n,href:ea(()=>n.value.href),isActive:s,isExactActive:o,navigate:u}}const W8e=l2({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:zQ,setup(t,{slots:e}){const r=Ub(zQ(t)),{options:n}=cs(x4),a=ea(()=>({[WQ(t.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[WQ(t.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const s=e.default&&e.default(r);return t.custom?s:p2("a",{"aria-current":r.isExactActive?t.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:a.value},s)}}}),rre=W8e;function K8e(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function J8e(t,e){for(const r in e){const n=e[r],a=t[r];if(typeof n=="string"){if(n!==a)return!1}else if(!Ba(a)||a.length!==n.length||n.some((s,o)=>s!==a[o]))return!1}return!0}function GQ(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const WQ=(t,e,r)=>t??e??r,X8e=l2({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:r}){const n=cs(fN),a=ea(()=>t.route||n.value),s=cs(QQ,0),o=ea(()=>{let l=Fc(s);const{matched:d}=a.value;let f;for(;(f=d[l])&&!f.components;)l++;return l}),u=ea(()=>a.value.matched[o.value]);Tw(QQ,ea(()=>o.value+1)),Tw(z8e,u),Tw(fN,a);const c=fo();return vd(()=>[c.value,u.value,t.name],([l,d,f],[h,p,m])=>{d&&(d.instances[f]=l,p&&p!==d&&l&&l===h&&(d.leaveGuards.size||(d.leaveGuards=p.leaveGuards),d.updateGuards.size||(d.updateGuards=p.updateGuards))),l&&d&&(!p||!ef(d,p)||!h)&&(d.enterCallbacks[f]||[]).forEach(y=>y(l))},{flush:"post"}),()=>{const l=a.value,d=t.name,f=u.value,h=f&&f.components[d];if(!h)return KQ(r.default,{Component:h,route:l});const p=f.props[d],m=p?p===!0?l.params:typeof p=="function"?p(l):p:null,g=p2(h,ar({},m,e,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(f.instances[d]=null)},ref:c}));return KQ(r.default,{Component:g,route:l})||g}}});function KQ(t,e){if(!t)return null;const r=t(e);return r.length===1?r[0]:r}const nre=X8e;function Y8e(t){const e=$8e(t.routes,t),r=t.parseQuery||H8e,n=t.stringifyQuery||HQ,a=t.history,s=m_(),o=m_(),u=m_(),c=Rce(qo);let l=qo;ed&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=vI.bind(null,we=>""+we),f=vI.bind(null,d8e),h=vI.bind(null,xb);function p(we,Re){let Se,z;return Yte(we)?(Se=e.getRecordMatcher(we),z=Re):z=we,e.addRoute(z,Se)}function m(we){const Re=e.getRecordMatcher(we);Re&&e.removeRoute(Re)}function y(){return e.getRoutes().map(we=>we.record)}function g(we){return!!e.getRecordMatcher(we)}function b(we,Re){if(Re=ar({},Re||c.value),typeof we=="string"){const R=wI(r,we,Re.path),U=e.resolve({path:R.path},Re),G=a.createHref(R.fullPath);return ar(R,U,{params:h(U.params),hash:xb(R.hash),redirectedFrom:void 0,href:G})}let Se;if(we.path!=null)Se=ar({},we,{path:wI(r,we.path,Re.path).path});else{const R=ar({},we.params);for(const U in R)R[U]==null&&delete R[U];Se=ar({},we,{params:f(R)}),Re.params=f(Re.params)}const z=e.resolve(Se,Re),M=we.hash||"";z.params=d(h(z.params));const k=p8e(n,ar({},we,{hash:u8e(M),path:z.path})),T=a.createHref(k);return ar({fullPath:k,hash:M,query:n===HQ?Q8e(we.query):we.query||{}},z,{redirectedFrom:void 0,href:T})}function v(we){return typeof we=="string"?wI(r,we,c.value.path):ar({},we)}function _(we,Re){if(l!==we)return tf(8,{from:Re,to:we})}function w(we){return L(we)}function E(we){return w(ar(v(we),{replace:!0}))}function O(we){const Re=we.matched[we.matched.length-1];if(Re&&Re.redirect){const{redirect:Se}=Re;let z=typeof Se=="function"?Se(we):Se;return typeof z=="string"&&(z=z.includes("?")||z.includes("#")?z=v(z):{path:z},z.params={}),ar({query:we.query,hash:we.hash,params:z.path!=null?{}:we.params},z)}}function L(we,Re){const Se=l=b(we),z=c.value,M=we.state,k=we.force,T=we.replace===!0,R=O(Se);if(R)return L(ar(v(R),{state:typeof R=="object"?ar({},M,R.state):M,force:k,replace:T}),Re||Se);const U=Se;U.redirectedFrom=Re;let G;return!k&&y8e(n,z,Se)&&(G=tf(16,{to:U,from:z}),Ne(z,z,!0,!1)),(G?Promise.resolve(G):P(U,z)).catch(Q=>Vs(Q)?Vs(Q,2)?Q:Te(Q):Y(Q,U,z)).then(Q=>{if(Q){if(Vs(Q,2))return L(ar({replace:T},v(Q.to),{state:typeof Q.to=="object"?ar({},M,Q.to.state):M,force:k}),Re||U)}else Q=N(U,z,!0,T,M);return j(U,z,Q),Q})}function F(we,Re){const Se=_(we,Re);return Se?Promise.reject(Se):Promise.resolve()}function x(we){const Re=ce.values().next().value;return Re&&typeof Re.runWithContext=="function"?Re.runWithContext(we):we()}function P(we,Re){let Se;const[z,M,k]=Z8e(we,Re);Se=SI(z.reverse(),"beforeRouteLeave",we,Re);for(const R of z)R.leaveGuards.forEach(U=>{Se.push(eu(U,we,Re))});const T=F.bind(null,we,Re);return Se.push(T),Pe(Se).then(()=>{Se=[];for(const R of s.list())Se.push(eu(R,we,Re));return Se.push(T),Pe(Se)}).then(()=>{Se=SI(M,"beforeRouteUpdate",we,Re);for(const R of M)R.updateGuards.forEach(U=>{Se.push(eu(U,we,Re))});return Se.push(T),Pe(Se)}).then(()=>{Se=[];for(const R of k)if(R.beforeEnter)if(Ba(R.beforeEnter))for(const U of R.beforeEnter)Se.push(eu(U,we,Re));else Se.push(eu(R.beforeEnter,we,Re));return Se.push(T),Pe(Se)}).then(()=>(we.matched.forEach(R=>R.enterCallbacks={}),Se=SI(k,"beforeRouteEnter",we,Re,x),Se.push(T),Pe(Se))).then(()=>{Se=[];for(const R of o.list())Se.push(eu(R,we,Re));return Se.push(T),Pe(Se)}).catch(R=>Vs(R,8)?R:Promise.reject(R))}function j(we,Re,Se){u.list().forEach(z=>x(()=>z(we,Re,Se)))}function N(we,Re,Se,z,M){const k=_(we,Re);if(k)return k;const T=Re===qo,R=ed?history.state:{};Se&&(z||T?a.replace(we.fullPath,ar({scroll:T&&R&&R.scroll},M)):a.push(we.fullPath,M)),c.value=we,Ne(we,Re,Se,T),Te()}let V;function $(){V||(V=a.listen((we,Re,Se)=>{if(!xe.listening)return;const z=b(we),M=O(z);if(M){L(ar(M,{replace:!0}),z).catch(Z_);return}l=z;const k=c.value;ed&&T8e(MQ(k.fullPath,Se.delta),XT()),P(z,k).catch(T=>Vs(T,12)?T:Vs(T,2)?(L(T.to,z).then(R=>{Vs(R,20)&&!Se.delta&&Se.type===Ib.pop&&a.go(-1,!1)}).catch(Z_),Promise.reject()):(Se.delta&&a.go(-Se.delta,!1),Y(T,z,k))).then(T=>{T=T||N(z,k,!1),T&&(Se.delta&&!Vs(T,8)?a.go(-Se.delta,!1):Se.type===Ib.pop&&Vs(T,20)&&a.go(-1,!1)),j(z,k,T)}).catch(Z_)}))}let q=m_(),H=m_(),X;function Y(we,Re,Se){Te(we);const z=H.list();return z.length?z.forEach(M=>M(we,Re,Se)):console.error(we),Promise.reject(we)}function he(){return X&&c.value!==qo?Promise.resolve():new Promise((we,Re)=>{q.add([we,Re])})}function Te(we){return X||(X=!we,$(),q.list().forEach(([Re,Se])=>we?Se(we):Re()),q.reset()),we}function Ne(we,Re,Se,z){const{scrollBehavior:M}=t;if(!ed||!M)return Promise.resolve();const k=!Se&&E8e(MQ(we.fullPath,0))||(z||!Se)&&history.state&&history.state.scroll||null;return kb().then(()=>M(we,Re,k)).then(T=>T&&S8e(T)).catch(T=>Y(T,we,Re))}const $e=we=>a.go(we);let de;const ce=new Set,xe={currentRoute:c,listening:!0,addRoute:p,removeRoute:m,hasRoute:g,getRoutes:y,resolve:b,options:t,push:w,replace:E,go:$e,back:()=>$e(-1),forward:()=>$e(1),beforeEach:s.add,beforeResolve:o.add,afterEach:u.add,onError:H.add,isReady:he,install(we){const Re=this;we.component("RouterLink",rre),we.component("RouterView",nre),we.config.globalProperties.$router=Re,Object.defineProperty(we.config.globalProperties,"$route",{enumerable:!0,get:()=>Fc(c)}),ed&&!de&&c.value===qo&&(de=!0,w(a.location).catch(M=>{}));const Se={};for(const M in qo)Object.defineProperty(Se,M,{get:()=>c.value[M],enumerable:!0});we.provide(x4,Re),we.provide(tre,uW(Se)),we.provide(fN,c);const z=we.unmount;ce.add(we),we.unmount=function(){ce.delete(we),ce.size<1&&(l=qo,V&&V(),V=null,c.value=qo,de=!1,X=!1),z()}}};function Pe(we){return we.reduce((Re,Se)=>Re.then(()=>x(Se)),Promise.resolve())}return xe}function Z8e(t,e){const r=[],n=[],a=[],s=Math.max(e.matched.length,t.matched.length);for(let o=0;oef(l,u))?n.push(u):r.push(u));const c=t.matched[o];c&&(e.matched.find(l=>ef(l,c))||a.push(c))}return[r,n,a]}const eFe={name:"App",computed:{...pS(nl,{store_ready:t=>t.ready}),...pS(po,["graph_iri","resource_iri"])},components:{SparqlConnection:iMe,GraphList:HMe,ClassList:zMe,Splitpanes:GMe,Pane:XMe,RouterLink:rre,RouterView:nre},methods:{useSelectionStore:po},props:{title:{type:String,default:"OntoPad"},config:{type:Object,default:{}}},created(){console.log("configuration is"),console.log(this.config);const t=nl(),e=po();t.updateEndpointConfiguration(this.config),e.initConfig(this.config)}},tFe={id:"app",class:"container-fluid"},rFe={class:"row connection"},nFe={key:0},iFe={key:1},aFe={key:0,class:"row"},sFe={class:"nav nav-tabs"},oFe={class:"nav-item"},uFe={class:"nav-item"},cFe={class:"nav-item"},lFe={class:"nav-item"},dFe={class:"nav-item"},fFe={class:"nav-item"},hFe={class:"nav-item"},pFe={class:"nav-item"},yFe={key:1};function mFe(t,e,r,n,a,s){const o=Ys("SparqlConnection"),u=Ys("GraphList"),c=Ys("pane"),l=Ys("ClassList"),d=Ys("splitpanes"),f=Ys("RouterLink"),h=Ys("RouterView");return rr(),gr("div",tFe,[et("div",rFe,[et("h1",null,iS(r.title),1),t.store_ready?(rr(),gr("div",nFe,"🟢 Store is ready")):(rr(),gr("div",iFe,"🔄 Loading")),It(o)]),t.store_ready?(rr(),gr("div",aFe,[It(d,{class:"default-theme"},{default:Dn(()=>[It(c,{size:"30"},{default:Dn(()=>[It(d,{horizontal:"",style:{height:"80vh"}},{default:Dn(()=>[It(c,{size:"30"},{default:Dn(()=>[It(u,{graph_iri:t.graph_iri,selectGraph:p=>{s.useSelectionStore().changeGraphIri(p),s.useSelectionStore().changeResourceIri(p)}},null,8,["graph_iri","selectGraph"])]),_:1}),It(c,{size:"70"},{default:Dn(()=>[It(l,{class_iri:t.resource_iri,selectClass:p=>{s.useSelectionStore().changeResourceIri(p)}},null,8,["class_iri","selectClass"])]),_:1})]),_:1})]),_:1}),It(c,{size:"90"},{default:Dn(()=>[et("ul",sFe,[et("li",oFe,[It(f,{class:"nav-link","active-class":"active",to:"/dashboard"},{default:Dn(()=>[Xa("Home")]),_:1})]),et("li",uFe,[It(f,{class:"nav-link","active-class":"active",to:"/instances"},{default:Dn(()=>[Xa("Instances")]),_:1})]),et("li",cFe,[It(f,{class:"nav-link","active-class":"active",to:"/voc"},{default:Dn(()=>[Xa("Vocabulary")]),_:1})]),et("li",lFe,[It(f,{class:"nav-link","active-class":"active",to:"/edit"},{default:Dn(()=>[Xa("Edit")]),_:1})]),et("li",dFe,[It(f,{class:"nav-link","active-class":"active",to:"/form"},{default:Dn(()=>[Xa("Form")]),_:1})]),et("li",fFe,[It(f,{class:"nav-link","active-class":"active",to:"/add"},{default:Dn(()=>[Xa("Add")]),_:1})]),et("li",hFe,[It(f,{class:"nav-link","active-class":"active",to:"/kanban"},{default:Dn(()=>[Xa("Kanban")]),_:1})]),et("li",pFe,[It(f,{class:"nav-link","active-class":"active",to:"/source"},{default:Dn(()=>[Xa("Source")]),_:1})])]),It(h)]),_:1})]),_:1})])):(rr(),gr("div",yFe," Waiting for Store to be configured … ")),et("div",null,[et("pre",null," "+iS(r.config)+` - `,1)])])}const gFe=U1(eFe,[["render",mFe],["__scopeId","data-v-6146cd62"]]),_Fe="modulepreload",bFe=function(t,e){return new URL(t,e).href},JQ={},Hs=function(e,r,n){let a=Promise.resolve();if(r&&r.length>0){const s=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),u=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));a=Promise.all(r.map(c=>{if(c=bFe(c,n),c in JQ)return;JQ[c]=!0;const l=c.endsWith(".css"),d=l?'[rel="stylesheet"]':"";if(!!n)for(let p=s.length-1;p>=0;p--){const m=s[p];if(m.href===c&&(!l||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${d}`))return;const h=document.createElement("link");if(h.rel=l?"stylesheet":_Fe,l||(h.as="script",h.crossOrigin=""),h.href=c,u&&h.setAttribute("nonce",u),document.head.appendChild(h),l)return new Promise((p,m)=>{h.addEventListener("load",p),h.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${c}`)))})}))}return a.then(()=>e()).catch(s=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s})},ire=Y8e({history:I8e("./"),routes:[{path:"/",redirect:{path:"/dashboard"}},{path:"/about",name:"about",component:()=>Hs(()=>import("./AboutView-DIoPbG4c.js"),[],import.meta.url)},{path:"/dashboard",name:"DashboardView",component:()=>Hs(()=>import("./DashboardView-ByE6n5y7.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)},{path:"/instances",name:"InstanceList",component:()=>Hs(()=>import("./InstanceList-Co90cV-T.js"),[],import.meta.url)},{path:"/voc",name:"VocPad",component:()=>Hs(()=>import("./VocPad-BbbB64ZC.js"),__vite__mapDeps([5,6,7]),import.meta.url)},{path:"/edit",name:"EditForm",component:()=>Hs(()=>import("./EditForm-ZP9PIVhz.js"),__vite__mapDeps([8,7,6]),import.meta.url)},{path:"/form",name:"FormDemo",component:()=>Hs(()=>import("./FormDemo-Dkmfdozh.js"),__vite__mapDeps([9,1,2,3]),import.meta.url)},{path:"/add",name:"InputForm",component:()=>Hs(()=>import("./InputForm-B0GLM1s7.js"),[],import.meta.url)},{path:"/kanban",name:"Kanban",component:()=>Hs(()=>import("./Kanban-DCPF8TrZ.js"),__vite__mapDeps([10,7,2,11]),import.meta.url)},{path:"/source",name:"Source",component:()=>Hs(()=>import("./Source-Bbt3wr0N.js"),__vite__mapDeps([12,2,6,7]),import.meta.url)}]});ire.beforeEach(t=>{nl()});const YT=Fde(gFe,{title:"OntoPad next ⏩",config:Vue(document.querySelector("#ontopad_configuration").text)});console.log(YT);YT.use(qde());YT.use(ire);YT.mount("#app");export{kFe as $,Qc as A,Xa as B,Xi as C,ta as D,FFe as E,Wr as F,du as G,aMe as H,E5e as I,Zd as J,co as K,O$e as L,GMe as M,I$e as N,R$e as O,x$e as P,vje as Q,Hte as R,sle as S,DMe as T,AW as U,ii as V,b5e as W,QG as X,jFe as Y,h5e as Z,U1 as _,et as a,dle as a$,ib as a0,Sd as a1,qFe as a2,i5e as a3,Fd as a4,DFe as a5,XW as a6,T5e as a7,CFe as a8,_D as a9,zG as aA,Au as aB,WG as aC,cD as aD,Vle as aE,p2 as aF,ff as aG,Rle as aH,Mde as aI,l5e as aJ,R5e as aK,cs as aL,Jle as aM,lW as aN,Mc as aO,ab as aP,rn as aQ,u5e as aR,sS as aS,Gc as aT,tD as aU,e5e as aV,t5e as aW,Hle as aX,kb as aY,AFe as aZ,ule as a_,LFe as aa,sa as ab,au as ac,wi as ad,r2 as ae,_o as af,_5e as ag,ea as ah,Fde as ai,Fle as aj,r5e as ak,Mle as al,O5e as am,s5e as an,Nce as ao,UFe as ap,Sde as aq,zFe as ar,GFe as as,JFe as at,WFe as au,QFe as av,w5e as aw,KFe as ax,p5e as ay,OFe as az,po as b,nr as b$,dD as b0,fle as b1,cle as b2,mle as b3,yle as b4,ple as b5,ace as b6,hle as b7,fD as b8,lD as b9,IFe as bA,ZFe as bB,S5e as bC,v5e as bD,c5e as bE,tle as bF,EW as bG,oK as bH,Nde as bI,H_ as bJ,Pde as bK,sde as bL,Xle as bM,f5e as bN,vd as bO,$Fe as bP,rle as bQ,nle as bR,n5e as bS,XFe as bT,A5e as bU,d5e as bV,MFe as bW,bK as bX,vD as bY,I as bZ,Eje as b_,Tw as ba,hW as bb,VI as bc,Ub as bd,cW as be,o5e as bf,PL as bg,BFe as bh,g5e as bi,db as bj,fL as bk,y5e as bl,Md as bm,uW as bn,xFe as bo,Rce as bp,ele as bq,m5e as br,RFe as bs,ww as bt,HFe as bu,Qt as bv,NFe as bw,Dce as bx,PFe as by,a5e as bz,gr as c,eje as c0,Fte as c1,$te as c2,Sje as c3,Tje as c4,A$e as c5,Rs as c6,Mte as c7,Rd as c8,nje as c9,ije as ca,aje as cb,sje as cc,M_ as cd,Pi as ce,BC as cf,FNe as cg,QT as ch,Eee as ci,BNe as cj,Zi as ck,Pt as cl,Du as cm,AZ as cn,a4 as co,Mt as cp,y4 as cq,gl as cr,hee as cs,pee as ct,hn as cu,Iee as cv,ga as cw,S4 as cx,RT as cy,It as d,gle as e,qr as f,Na as g,Fc as h,XMe as i,kce as j,BI as k,l2 as l,pS as m,mD as n,rr as o,Uce as p,VFe as q,Ys as r,$b as s,iS as t,nl as u,fo as v,Dn as w,YFe as x,f2 as y,_le as z}; + */const Zl=typeof document<"u";function XMe(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const ar=Object.assign;function bI(t,e){const r={};for(const n in e){const a=e[n];r[n]=Ba(a)?a.map(t):t(a)}return r}const Z_=()=>{},Ba=Array.isArray,Qte=/#/g,YMe=/&/g,ZMe=/\//g,e8e=/=/g,t8e=/\?/g,zte=/\+/g,r8e=/%5B/g,n8e=/%5D/g,Gte=/%5E/g,i8e=/%60/g,Wte=/%7B/g,a8e=/%7C/g,Kte=/%7D/g,s8e=/%20/g;function R4(t){return encodeURI(""+t).replace(a8e,"|").replace(r8e,"[").replace(n8e,"]")}function o8e(t){return R4(t).replace(Wte,"{").replace(Kte,"}").replace(Gte,"^")}function lN(t){return R4(t).replace(zte,"%2B").replace(s8e,"+").replace(Qte,"%23").replace(YMe,"%26").replace(i8e,"`").replace(Wte,"{").replace(Kte,"}").replace(Gte,"^")}function u8e(t){return lN(t).replace(e8e,"%3D")}function c8e(t){return R4(t).replace(Qte,"%23").replace(t8e,"%3F")}function l8e(t){return t==null?"":c8e(t).replace(ZMe,"%2F")}function xb(t){try{return decodeURIComponent(""+t)}catch{}return""+t}const d8e=/\/$/,f8e=t=>t.replace(d8e,"");function vI(t,e,r="/"){let n,a={},s="",o="";const u=e.indexOf("#");let c=e.indexOf("?");return u=0&&(c=-1),c>-1&&(n=e.slice(0,c),s=e.slice(c+1,u>-1?u:e.length),a=t(s)),u>-1&&(n=n||e.slice(0,u),o=e.slice(u,e.length)),n=m8e(n??e,r),{fullPath:n+(s&&"?")+s+o,path:n,query:a,hash:xb(o)}}function h8e(t,e){const r=e.query?t(e.query):"";return e.path+(r&&"?")+r+(e.hash||"")}function LQ(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function p8e(t,e,r){const n=e.matched.length-1,a=r.matched.length-1;return n>-1&&n===a&&ef(e.matched[n],r.matched[a])&&Jte(e.params,r.params)&&t(e.query)===t(r.query)&&e.hash===r.hash}function ef(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function Jte(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const r in t)if(!y8e(t[r],e[r]))return!1;return!0}function y8e(t,e){return Ba(t)?jQ(t,e):Ba(e)?jQ(e,t):t===e}function jQ(t,e){return Ba(e)?t.length===e.length&&t.every((r,n)=>r===e[n]):t.length===1&&t[0]===e}function m8e(t,e){if(t.startsWith("/"))return t;if(!t)return e;const r=e.split("/"),n=t.split("/"),a=n[n.length-1];(a===".."||a===".")&&n.push("");let s=r.length-1,o,u;for(o=0;o1&&s--;else break;return r.slice(0,s).join("/")+"/"+n.slice(o).join("/")}var Ib;(function(t){t.pop="pop",t.push="push"})(Ib||(Ib={}));var eb;(function(t){t.back="back",t.forward="forward",t.unknown=""})(eb||(eb={}));function g8e(t){if(!t)if(Zl){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),f8e(t)}const _8e=/^[^#]+#/;function b8e(t,e){return t.replace(_8e,"#")+e}function v8e(t,e){const r=document.documentElement.getBoundingClientRect(),n=t.getBoundingClientRect();return{behavior:e.behavior,left:n.left-r.left-(e.left||0),top:n.top-r.top-(e.top||0)}}const JT=()=>({left:window.scrollX,top:window.scrollY});function w8e(t){let e;if("el"in t){const r=t.el,n=typeof r=="string"&&r.startsWith("#"),a=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!a)return;e=v8e(a,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function MQ(t,e){return(history.state?history.state.position-e:-1)+t}const dN=new Map;function S8e(t,e){dN.set(t,e)}function T8e(t){const e=dN.get(t);return dN.delete(t),e}let E8e=()=>location.protocol+"//"+location.host;function Xte(t,e){const{pathname:r,search:n,hash:a}=e,s=t.indexOf("#");if(s>-1){let u=a.includes(t.slice(s))?t.slice(s).length:1,c=a.slice(u);return c[0]!=="/"&&(c="/"+c),LQ(c,"")}return LQ(r,t)+n+a}function A8e(t,e,r,n){let a=[],s=[],o=null;const u=({state:h})=>{const p=Xte(t,location),m=r.value,y=e.value;let g=0;if(h){if(r.value=p,e.value=h,o&&o===m){o=null;return}g=y?h.position-y.position:0}else n(p);a.forEach(b=>{b(r.value,m,{delta:g,type:Ib.pop,direction:g?g>0?eb.forward:eb.back:eb.unknown})})};function c(){o=r.value}function l(h){a.push(h);const p=()=>{const m=a.indexOf(h);m>-1&&a.splice(m,1)};return s.push(p),p}function d(){const{history:h}=window;h.state&&h.replaceState(ar({},h.state,{scroll:JT()}),"")}function f(){for(const h of s)h();s=[],window.removeEventListener("popstate",u),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",u),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:c,listen:l,destroy:f}}function FQ(t,e,r,n=!1,a=!1){return{back:t,current:e,forward:r,replaced:n,position:window.history.length,scroll:a?JT():null}}function O8e(t){const{history:e,location:r}=window,n={value:Xte(t,r)},a={value:e.state};a.value||s(n.value,{back:null,current:n.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function s(c,l,d){const f=t.indexOf("#"),h=f>-1?(r.host&&document.querySelector("base")?t:t.slice(f))+c:E8e()+t+c;try{e[d?"replaceState":"pushState"](l,"",h),a.value=l}catch(p){console.error(p),r[d?"replace":"assign"](h)}}function o(c,l){const d=ar({},e.state,FQ(a.value.back,c,a.value.forward,!0),l,{position:a.value.position});s(c,d,!0),n.value=c}function u(c,l){const d=ar({},a.value,e.state,{forward:c,scroll:JT()});s(d.current,d,!0);const f=ar({},FQ(n.value,c,null),{position:d.position+1},l);s(c,f,!1),n.value=c}return{location:n,state:a,push:u,replace:o}}function R8e(t){t=g8e(t);const e=O8e(t),r=A8e(t,e.state,e.location,e.replace);function n(s,o=!0){o||r.pauseListeners(),history.go(s)}const a=ar({location:"",base:t,go:n,createHref:b8e.bind(null,t)},e,r);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>e.state.value}),a}function x8e(t){return t=location.host?t||location.pathname+location.search:"",t.includes("#")||(t+="#"),R8e(t)}function I8e(t){return typeof t=="string"||t&&typeof t=="object"}function Yte(t){return typeof t=="string"||typeof t=="symbol"}const qo={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Zte=Symbol("");var BQ;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(BQ||(BQ={}));function tf(t,e){return ar(new Error,{type:t,[Zte]:!0},e)}function Vs(t,e){return t instanceof Error&&Zte in t&&(e==null||!!(t.type&e))}const qQ="[^/]+?",P8e={sensitive:!1,strict:!1,start:!0,end:!0},N8e=/[.+*?^${}()[\]/\\]/g;function D8e(t,e){const r=ar({},P8e,e),n=[];let a=r.start?"^":"";const s=[];for(const l of t){const d=l.length?[]:[90];r.strict&&!l.length&&(a+="/");for(let f=0;fe.length?e.length===1&&e[0]===80?1:-1:0}function L8e(t,e){let r=0;const n=t.score,a=e.score;for(;r0&&e[e.length-1]<0}const j8e={type:0,value:""},M8e=/[a-zA-Z0-9_]/;function F8e(t){if(!t)return[[]];if(t==="/")return[[j8e]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(p){throw new Error(`ERR (${r})/"${l}": ${p}`)}let r=0,n=r;const a=[];let s;function o(){s&&a.push(s),s=[]}let u=0,c,l="",d="";function f(){l&&(r===0?s.push({type:0,value:l}):r===1||r===2||r===3?(s.length>1&&(c==="*"||c==="+")&&e(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:l,regexp:d,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):e("Invalid state to consume buffer"),l="")}function h(){l+=c}for(;u{o(v)}:Z_}function o(d){if(Yte(d)){const f=n.get(d);f&&(n.delete(d),r.splice(r.indexOf(f),1),f.children.forEach(o),f.alias.forEach(o))}else{const f=r.indexOf(d);f>-1&&(r.splice(f,1),d.record.name&&n.delete(d.record.name),d.children.forEach(o),d.alias.forEach(o))}}function u(){return r}function c(d){let f=0;for(;f=0&&(d.record.path!==r[f].record.path||!ere(d,r[f]));)f++;r.splice(f,0,d),d.record.name&&!kQ(d)&&n.set(d.record.name,d)}function l(d,f){let h,p={},m,y;if("name"in d&&d.name){if(h=n.get(d.name),!h)throw tf(1,{location:d});y=h.record.name,p=ar(UQ(f.params,h.keys.filter(v=>!v.optional).concat(h.parent?h.parent.keys.filter(v=>v.optional):[]).map(v=>v.name)),d.params&&UQ(d.params,h.keys.map(v=>v.name))),m=h.stringify(p)}else if(d.path!=null)m=d.path,h=r.find(v=>v.re.test(m)),h&&(p=h.parse(m),y=h.record.name);else{if(h=f.name?n.get(f.name):r.find(v=>v.re.test(f.path)),!h)throw tf(1,{location:d,currentLocation:f});y=h.record.name,p=ar({},f.params,d.params),m=h.stringify(p)}const g=[];let b=h;for(;b;)g.unshift(b.record),b=b.parent;return{name:y,path:m,params:p,matched:g,meta:k8e(g)}}return t.forEach(d=>s(d)),{addRoute:s,resolve:l,removeRoute:o,getRoutes:u,getRecordMatcher:a}}function UQ(t,e){const r={};for(const n of e)n in t&&(r[n]=t[n]);return r}function $8e(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:U8e(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function U8e(t){const e={},r=t.props||!1;if("component"in t)e.default=r;else for(const n in t.components)e[n]=typeof r=="object"?r[n]:r;return e}function kQ(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function k8e(t){return t.reduce((e,r)=>ar(e,r.meta),{})}function VQ(t,e){const r={};for(const n in t)r[n]=n in e?e[n]:t[n];return r}function ere(t,e){return e.children.some(r=>r===t||ere(t,r))}function V8e(t){const e={};if(t===""||t==="?")return e;const n=(t[0]==="?"?t.slice(1):t).split("&");for(let a=0;as&&lN(s)):[n&&lN(n)]).forEach(s=>{s!==void 0&&(e+=(e.length?"&":"")+r,s!=null&&(e+="="+s))})}return e}function H8e(t){const e={};for(const r in t){const n=t[r];n!==void 0&&(e[r]=Ba(n)?n.map(a=>a==null?null:""+a):n==null?n:""+n)}return e}const Q8e=Symbol(""),QQ=Symbol(""),x4=Symbol(""),tre=Symbol(""),fN=Symbol("");function m_(){let t=[];function e(n){return t.push(n),()=>{const a=t.indexOf(n);a>-1&&t.splice(a,1)}}function r(){t=[]}return{add:e,list:()=>t.slice(),reset:r}}function eu(t,e,r,n,a,s=o=>o()){const o=n&&(n.enterCallbacks[a]=n.enterCallbacks[a]||[]);return()=>new Promise((u,c)=>{const l=h=>{h===!1?c(tf(4,{from:r,to:e})):h instanceof Error?c(h):I8e(h)?c(tf(2,{from:e,to:h})):(o&&n.enterCallbacks[a]===o&&typeof h=="function"&&o.push(h),u())},d=s(()=>t.call(n&&n.instances[a],e,r,l));let f=Promise.resolve(d);t.length<3&&(f=f.then(l)),f.catch(h=>c(h))})}function wI(t,e,r,n,a=s=>s()){const s=[];for(const o of t)for(const u in o.components){let c=o.components[u];if(!(e!=="beforeRouteEnter"&&!o.instances[u]))if(z8e(c)){const d=(c.__vccOpts||c)[e];d&&s.push(eu(d,r,n,o,u,a))}else{let l=c();s.push(()=>l.then(d=>{if(!d)return Promise.reject(new Error(`Couldn't resolve component "${u}" at "${o.path}"`));const f=XMe(d)?d.default:d;o.components[u]=f;const p=(f.__vccOpts||f)[e];return p&&eu(p,r,n,o,u,a)()}))}}return s}function z8e(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function zQ(t){const e=cs(x4),r=cs(tre),n=ea(()=>{const c=Fc(t.to);return e.resolve(c)}),a=ea(()=>{const{matched:c}=n.value,{length:l}=c,d=c[l-1],f=r.matched;if(!d||!f.length)return-1;const h=f.findIndex(ef.bind(null,d));if(h>-1)return h;const p=GQ(c[l-2]);return l>1&&GQ(d)===p&&f[f.length-1].path!==p?f.findIndex(ef.bind(null,c[l-2])):h}),s=ea(()=>a.value>-1&&K8e(r.params,n.value.params)),o=ea(()=>a.value>-1&&a.value===r.matched.length-1&&Jte(r.params,n.value.params));function u(c={}){return W8e(c)?e[Fc(t.replace)?"replace":"push"](Fc(t.to)).catch(Z_):Promise.resolve()}return{route:n,href:ea(()=>n.value.href),isActive:s,isExactActive:o,navigate:u}}const G8e=c2({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:zQ,setup(t,{slots:e}){const r=Ub(zQ(t)),{options:n}=cs(x4),a=ea(()=>({[WQ(t.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[WQ(t.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const s=e.default&&e.default(r);return t.custom?s:h2("a",{"aria-current":r.isExactActive?t.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:a.value},s)}}}),rre=G8e;function W8e(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function K8e(t,e){for(const r in e){const n=e[r],a=t[r];if(typeof n=="string"){if(n!==a)return!1}else if(!Ba(a)||a.length!==n.length||n.some((s,o)=>s!==a[o]))return!1}return!0}function GQ(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const WQ=(t,e,r)=>t??e??r,J8e=c2({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:r}){const n=cs(fN),a=ea(()=>t.route||n.value),s=cs(QQ,0),o=ea(()=>{let l=Fc(s);const{matched:d}=a.value;let f;for(;(f=d[l])&&!f.components;)l++;return l}),u=ea(()=>a.value.matched[o.value]);Tw(QQ,ea(()=>o.value+1)),Tw(Q8e,u),Tw(fN,a);const c=fo();return bd(()=>[c.value,u.value,t.name],([l,d,f],[h,p,m])=>{d&&(d.instances[f]=l,p&&p!==d&&l&&l===h&&(d.leaveGuards.size||(d.leaveGuards=p.leaveGuards),d.updateGuards.size||(d.updateGuards=p.updateGuards))),l&&d&&(!p||!ef(d,p)||!h)&&(d.enterCallbacks[f]||[]).forEach(y=>y(l))},{flush:"post"}),()=>{const l=a.value,d=t.name,f=u.value,h=f&&f.components[d];if(!h)return KQ(r.default,{Component:h,route:l});const p=f.props[d],m=p?p===!0?l.params:typeof p=="function"?p(l):p:null,g=h2(h,ar({},m,e,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(f.instances[d]=null)},ref:c}));return KQ(r.default,{Component:g,route:l})||g}}});function KQ(t,e){if(!t)return null;const r=t(e);return r.length===1?r[0]:r}const nre=J8e;function X8e(t){const e=q8e(t.routes,t),r=t.parseQuery||V8e,n=t.stringifyQuery||HQ,a=t.history,s=m_(),o=m_(),u=m_(),c=Oce(qo);let l=qo;Zl&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=bI.bind(null,we=>""+we),f=bI.bind(null,l8e),h=bI.bind(null,xb);function p(we,Re){let Se,z;return Yte(we)?(Se=e.getRecordMatcher(we),z=Re):z=we,e.addRoute(z,Se)}function m(we){const Re=e.getRecordMatcher(we);Re&&e.removeRoute(Re)}function y(){return e.getRoutes().map(we=>we.record)}function g(we){return!!e.getRecordMatcher(we)}function b(we,Re){if(Re=ar({},Re||c.value),typeof we=="string"){const R=vI(r,we,Re.path),U=e.resolve({path:R.path},Re),G=a.createHref(R.fullPath);return ar(R,U,{params:h(U.params),hash:xb(R.hash),redirectedFrom:void 0,href:G})}let Se;if(we.path!=null)Se=ar({},we,{path:vI(r,we.path,Re.path).path});else{const R=ar({},we.params);for(const U in R)R[U]==null&&delete R[U];Se=ar({},we,{params:f(R)}),Re.params=f(Re.params)}const z=e.resolve(Se,Re),M=we.hash||"";z.params=d(h(z.params));const k=h8e(n,ar({},we,{hash:o8e(M),path:z.path})),T=a.createHref(k);return ar({fullPath:k,hash:M,query:n===HQ?H8e(we.query):we.query||{}},z,{redirectedFrom:void 0,href:T})}function v(we){return typeof we=="string"?vI(r,we,c.value.path):ar({},we)}function _(we,Re){if(l!==we)return tf(8,{from:Re,to:we})}function w(we){return L(we)}function E(we){return w(ar(v(we),{replace:!0}))}function O(we){const Re=we.matched[we.matched.length-1];if(Re&&Re.redirect){const{redirect:Se}=Re;let z=typeof Se=="function"?Se(we):Se;return typeof z=="string"&&(z=z.includes("?")||z.includes("#")?z=v(z):{path:z},z.params={}),ar({query:we.query,hash:we.hash,params:z.path!=null?{}:we.params},z)}}function L(we,Re){const Se=l=b(we),z=c.value,M=we.state,k=we.force,T=we.replace===!0,R=O(Se);if(R)return L(ar(v(R),{state:typeof R=="object"?ar({},M,R.state):M,force:k,replace:T}),Re||Se);const U=Se;U.redirectedFrom=Re;let G;return!k&&p8e(n,z,Se)&&(G=tf(16,{to:U,from:z}),Ne(z,z,!0,!1)),(G?Promise.resolve(G):P(U,z)).catch(Q=>Vs(Q)?Vs(Q,2)?Q:Te(Q):Y(Q,U,z)).then(Q=>{if(Q){if(Vs(Q,2))return L(ar({replace:T},v(Q.to),{state:typeof Q.to=="object"?ar({},M,Q.to.state):M,force:k}),Re||U)}else Q=N(U,z,!0,T,M);return j(U,z,Q),Q})}function F(we,Re){const Se=_(we,Re);return Se?Promise.reject(Se):Promise.resolve()}function x(we){const Re=ce.values().next().value;return Re&&typeof Re.runWithContext=="function"?Re.runWithContext(we):we()}function P(we,Re){let Se;const[z,M,k]=Y8e(we,Re);Se=wI(z.reverse(),"beforeRouteLeave",we,Re);for(const R of z)R.leaveGuards.forEach(U=>{Se.push(eu(U,we,Re))});const T=F.bind(null,we,Re);return Se.push(T),Pe(Se).then(()=>{Se=[];for(const R of s.list())Se.push(eu(R,we,Re));return Se.push(T),Pe(Se)}).then(()=>{Se=wI(M,"beforeRouteUpdate",we,Re);for(const R of M)R.updateGuards.forEach(U=>{Se.push(eu(U,we,Re))});return Se.push(T),Pe(Se)}).then(()=>{Se=[];for(const R of k)if(R.beforeEnter)if(Ba(R.beforeEnter))for(const U of R.beforeEnter)Se.push(eu(U,we,Re));else Se.push(eu(R.beforeEnter,we,Re));return Se.push(T),Pe(Se)}).then(()=>(we.matched.forEach(R=>R.enterCallbacks={}),Se=wI(k,"beforeRouteEnter",we,Re,x),Se.push(T),Pe(Se))).then(()=>{Se=[];for(const R of o.list())Se.push(eu(R,we,Re));return Se.push(T),Pe(Se)}).catch(R=>Vs(R,8)?R:Promise.reject(R))}function j(we,Re,Se){u.list().forEach(z=>x(()=>z(we,Re,Se)))}function N(we,Re,Se,z,M){const k=_(we,Re);if(k)return k;const T=Re===qo,R=Zl?history.state:{};Se&&(z||T?a.replace(we.fullPath,ar({scroll:T&&R&&R.scroll},M)):a.push(we.fullPath,M)),c.value=we,Ne(we,Re,Se,T),Te()}let V;function $(){V||(V=a.listen((we,Re,Se)=>{if(!xe.listening)return;const z=b(we),M=O(z);if(M){L(ar(M,{replace:!0}),z).catch(Z_);return}l=z;const k=c.value;Zl&&S8e(MQ(k.fullPath,Se.delta),JT()),P(z,k).catch(T=>Vs(T,12)?T:Vs(T,2)?(L(T.to,z).then(R=>{Vs(R,20)&&!Se.delta&&Se.type===Ib.pop&&a.go(-1,!1)}).catch(Z_),Promise.reject()):(Se.delta&&a.go(-Se.delta,!1),Y(T,z,k))).then(T=>{T=T||N(z,k,!1),T&&(Se.delta&&!Vs(T,8)?a.go(-Se.delta,!1):Se.type===Ib.pop&&Vs(T,20)&&a.go(-1,!1)),j(z,k,T)}).catch(Z_)}))}let q=m_(),H=m_(),X;function Y(we,Re,Se){Te(we);const z=H.list();return z.length?z.forEach(M=>M(we,Re,Se)):console.error(we),Promise.reject(we)}function he(){return X&&c.value!==qo?Promise.resolve():new Promise((we,Re)=>{q.add([we,Re])})}function Te(we){return X||(X=!we,$(),q.list().forEach(([Re,Se])=>we?Se(we):Re()),q.reset()),we}function Ne(we,Re,Se,z){const{scrollBehavior:M}=t;if(!Zl||!M)return Promise.resolve();const k=!Se&&T8e(MQ(we.fullPath,0))||(z||!Se)&&history.state&&history.state.scroll||null;return kb().then(()=>M(we,Re,k)).then(T=>T&&w8e(T)).catch(T=>Y(T,we,Re))}const $e=we=>a.go(we);let de;const ce=new Set,xe={currentRoute:c,listening:!0,addRoute:p,removeRoute:m,hasRoute:g,getRoutes:y,resolve:b,options:t,push:w,replace:E,go:$e,back:()=>$e(-1),forward:()=>$e(1),beforeEach:s.add,beforeResolve:o.add,afterEach:u.add,onError:H.add,isReady:he,install(we){const Re=this;we.component("RouterLink",rre),we.component("RouterView",nre),we.config.globalProperties.$router=Re,Object.defineProperty(we.config.globalProperties,"$route",{enumerable:!0,get:()=>Fc(c)}),Zl&&!de&&c.value===qo&&(de=!0,w(a.location).catch(M=>{}));const Se={};for(const M in qo)Object.defineProperty(Se,M,{get:()=>c.value[M],enumerable:!0});we.provide(x4,Re),we.provide(tre,uW(Se)),we.provide(fN,c);const z=we.unmount;ce.add(we),we.unmount=function(){ce.delete(we),ce.size<1&&(l=qo,V&&V(),V=null,c.value=qo,de=!1,X=!1),z()}}};function Pe(we){return we.reduce((Re,Se)=>Re.then(()=>x(Se)),Promise.resolve())}return xe}function Y8e(t,e){const r=[],n=[],a=[],s=Math.max(e.matched.length,t.matched.length);for(let o=0;oef(l,u))?n.push(u):r.push(u));const c=t.matched[o];c&&(e.matched.find(l=>ef(l,c))||a.push(c))}return[r,n,a]}const Z8e={name:"App",computed:{...hS(Zd,{store_ready:t=>t.ready}),...hS(po,["graph_iri","resource_iri"])},components:{SparqlConnection:nMe,GraphList:VMe,ClassList:QMe,Splitpanes:zMe,Pane:JMe,RouterLink:rre,RouterView:nre},methods:{useSelectionStore:po},props:{title:{type:String,default:"OntoPad"},config:{type:Object,default:{}}},created(){const t=Zd(),e=po();t.updateEndpointConfiguration(this.config),e.initConfig(this.config)}},eFe={id:"app",class:"container-fluid"},tFe={class:"row connection"},rFe={key:0},nFe={key:1},iFe={key:0,class:"row"},aFe={class:"nav nav-tabs"},sFe={class:"nav-item"},oFe={class:"nav-item"},uFe={class:"nav-item"},cFe={class:"nav-item"},lFe={class:"nav-item"},dFe={class:"nav-item"},fFe={class:"nav-item"},hFe={class:"nav-item"},pFe={key:1};function yFe(t,e,r,n,a,s){const o=Ys("SparqlConnection"),u=Ys("GraphList"),c=Ys("pane"),l=Ys("ClassList"),d=Ys("splitpanes"),f=Ys("RouterLink"),h=Ys("RouterView");return rr(),gr("div",eFe,[tt("div",tFe,[tt("h1",null,BI(r.title),1),t.store_ready?(rr(),gr("div",rFe,"🟢 Store is ready")):(rr(),gr("div",nFe,"🔄 Loading")),It(o)]),t.store_ready?(rr(),gr("div",iFe,[It(d,{class:"default-theme"},{default:Dn(()=>[It(c,{size:"30"},{default:Dn(()=>[It(d,{horizontal:"",style:{height:"80vh"}},{default:Dn(()=>[It(c,{size:"30"},{default:Dn(()=>[It(u,{graph_iri:t.graph_iri,selectGraph:p=>{s.useSelectionStore().changeGraphIri(p),s.useSelectionStore().changeResourceIri(p)}},null,8,["graph_iri","selectGraph"])]),_:1}),It(c,{size:"70"},{default:Dn(()=>[It(l,{class_iri:t.resource_iri,selectClass:p=>{s.useSelectionStore().changeResourceIri(p)}},null,8,["class_iri","selectClass"])]),_:1})]),_:1})]),_:1}),It(c,{size:"90"},{default:Dn(()=>[tt("ul",aFe,[tt("li",sFe,[It(f,{class:"nav-link","active-class":"active",to:"/dashboard"},{default:Dn(()=>[Xa("Home")]),_:1})]),tt("li",oFe,[It(f,{class:"nav-link","active-class":"active",to:"/instances"},{default:Dn(()=>[Xa("Instances")]),_:1})]),tt("li",uFe,[It(f,{class:"nav-link","active-class":"active",to:"/voc"},{default:Dn(()=>[Xa("Vocabulary")]),_:1})]),tt("li",cFe,[It(f,{class:"nav-link","active-class":"active",to:"/edit"},{default:Dn(()=>[Xa("Edit")]),_:1})]),tt("li",lFe,[It(f,{class:"nav-link","active-class":"active",to:"/form"},{default:Dn(()=>[Xa("Form")]),_:1})]),tt("li",dFe,[It(f,{class:"nav-link","active-class":"active",to:"/add"},{default:Dn(()=>[Xa("Add")]),_:1})]),tt("li",fFe,[It(f,{class:"nav-link","active-class":"active",to:"/kanban"},{default:Dn(()=>[Xa("Kanban")]),_:1})]),tt("li",hFe,[It(f,{class:"nav-link","active-class":"active",to:"/source"},{default:Dn(()=>[Xa("Source")]),_:1})])]),It(h)]),_:1})]),_:1})])):(rr(),gr("div",pFe," Waiting for Store to be configured … "))])}const mFe=U1(Z8e,[["render",yFe],["__scopeId","data-v-35474bb8"]]),gFe="modulepreload",_Fe=function(t,e){return new URL(t,e).href},JQ={},Hs=function(e,r,n){let a=Promise.resolve();if(r&&r.length>0){const s=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),u=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));a=Promise.all(r.map(c=>{if(c=_Fe(c,n),c in JQ)return;JQ[c]=!0;const l=c.endsWith(".css"),d=l?'[rel="stylesheet"]':"";if(!!n)for(let p=s.length-1;p>=0;p--){const m=s[p];if(m.href===c&&(!l||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${d}`))return;const h=document.createElement("link");if(h.rel=l?"stylesheet":gFe,l||(h.as="script",h.crossOrigin=""),h.href=c,u&&h.setAttribute("nonce",u),document.head.appendChild(h),l)return new Promise((p,m)=>{h.addEventListener("load",p),h.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${c}`)))})}))}return a.then(()=>e()).catch(s=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s})},bFe=X8e({history:x8e("./"),routes:[{path:"/",redirect:{path:"/dashboard"}},{path:"/about",name:"about",component:()=>Hs(()=>import("./AboutView-BffY2ewW.js"),[],import.meta.url)},{path:"/dashboard",name:"DashboardView",component:()=>Hs(()=>import("./DashboardView-D2RmONvH.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)},{path:"/instances",name:"InstanceList",component:()=>Hs(()=>import("./InstanceList-v9de9g4o.js"),[],import.meta.url)},{path:"/voc",name:"VocPad",component:()=>Hs(()=>import("./VocPad-D0fsloHc.js"),__vite__mapDeps([5,6,7]),import.meta.url)},{path:"/edit",name:"EditForm",component:()=>Hs(()=>import("./EditForm-BDy1_m9-.js"),__vite__mapDeps([8,7,6]),import.meta.url)},{path:"/form",name:"FormDemo",component:()=>Hs(()=>import("./FormDemo-BPR7kEQV.js"),__vite__mapDeps([9,1,2,3]),import.meta.url)},{path:"/add",name:"InputForm",component:()=>Hs(()=>import("./InputForm-B7hx1Ai9.js"),[],import.meta.url)},{path:"/kanban",name:"Kanban",component:()=>Hs(()=>import("./Kanban-g0r4q0PH.js"),__vite__mapDeps([10,7,2,11]),import.meta.url)},{path:"/source",name:"Source",component:()=>Hs(()=>import("./Source-C-gl1s4o.js"),__vite__mapDeps([12,2,6,7]),import.meta.url)}]}),XT=Mde(mFe,{title:"OntoPad next ⏩",config:kue(document.querySelector("#ontopad_configuration").text)});console.log(XT);XT.use(Bde());XT.use(bFe);XT.mount("#app");export{kFe as $,Qc as A,Xa as B,Xi as C,ta as D,FFe as E,Wr as F,du as G,iMe as H,E5e as I,Yd as J,co as K,O$e as L,zMe as M,I$e as N,R$e as O,x$e as P,bje as Q,Hte as R,ale as S,NMe as T,AW as U,ii as V,b5e as W,QG as X,jFe as Y,h5e as Z,U1 as _,tt as a,lle as a$,ib as a0,wd as a1,qFe as a2,i5e as a3,Md as a4,DFe as a5,XW as a6,T5e as a7,CFe as a8,_D as a9,zG as aA,Au as aB,WG as aC,cD as aD,kle as aE,h2 as aF,ff as aG,Ole as aH,jde as aI,l5e as aJ,R5e as aK,cs as aL,Kle as aM,lW as aN,Mc as aO,ab as aP,rn as aQ,u5e as aR,aS,Gc as aT,tD as aU,e5e as aV,t5e as aW,Vle as aX,kb as aY,AFe as aZ,ole as a_,LFe as aa,sa as ab,au as ac,wi as ad,t2 as ae,_o as af,_5e as ag,ea as ah,Mde as ai,Mle as aj,r5e as ak,jle as al,O5e as am,s5e as an,Pce as ao,UFe as ap,wde as aq,zFe as ar,GFe as as,JFe as at,WFe as au,QFe as av,w5e as aw,KFe as ax,p5e as ay,OFe as az,po as b,nr as b$,dD as b0,dle as b1,ule as b2,yle as b3,ple as b4,hle as b5,ice as b6,fle as b7,fD as b8,lD as b9,IFe as bA,ZFe as bB,S5e as bC,v5e as bD,c5e as bE,ele as bF,EW as bG,oK as bH,Pde as bI,H_ as bJ,Ide as bK,ade as bL,Jle as bM,f5e as bN,bd as bO,$Fe as bP,tle as bQ,rle as bR,n5e as bS,XFe as bT,A5e as bU,d5e as bV,MFe as bW,bK as bX,vD as bY,I as bZ,Tje as b_,Tw as ba,hW as bb,VI as bc,Ub as bd,cW as be,o5e as bf,PL as bg,BFe as bh,g5e as bi,db as bj,fL as bk,y5e as bl,jd as bm,uW as bn,xFe as bo,Oce as bp,Zce as bq,m5e as br,RFe as bs,ww as bt,HFe as bu,Qt as bv,NFe as bw,Nce as bx,PFe as by,a5e as bz,gr as c,ZLe as c0,Fte as c1,$te as c2,wje as c3,Sje as c4,A$e as c5,Rs as c6,Mte as c7,Od as c8,rje as c9,nje as ca,ije as cb,aje as cc,M_ as cd,Pi as ce,BC as cf,MNe as cg,HT as ch,Eee as ci,FNe as cj,Zi as ck,Pt as cl,Du as cm,AZ as cn,a4 as co,Mt as cp,y4 as cq,ml as cr,hee as cs,pee as ct,hn as cu,Iee as cv,ga as cw,S4 as cx,OT as cy,It as d,mle as e,qr as f,Na as g,Fc as h,JMe as i,Uce as j,FI as k,c2 as l,hS as m,mD as n,rr as o,$ce as p,VFe as q,Ys as r,$b as s,BI as t,Zd as u,fo as v,Dn as w,YFe as x,d2 as y,gle as z}; diff --git a/pad/assets/index-B9jj8Ydm.js b/pad/assets/index-CMU1fec0.js similarity index 99% rename from pad/assets/index-B9jj8Ydm.js rename to pad/assets/index-CMU1fec0.js index 01324b4..ce70a56 100644 --- a/pad/assets/index-B9jj8Ydm.js +++ b/pad/assets/index-CMU1fec0.js @@ -1,4 +1,4 @@ -import{c0 as bt,c1 as gt,Q as wt,c2 as Pt,c3 as vt,c4 as xt,c5 as At,J as Ot,c6 as Rt,c7 as jt,c8 as Mt,c9 as Tt,ca as St,cb as Ht,cc as W,cd as Dt,ce as It,bY as dr,bZ as c,cf as ur,cg as lr,ch as fr,ci as pr,cj as _r,K as ot,ck as mr,cl as j,cm as hr,cn as yr,co as $t,cp as Ct,cq as br,cr as qe,cs as gr,ct as wr,cu as Pr,cv as vr,cw as Et,cx as xr,cy as Ar}from"./index-PXc6VOLX.js";const Or={Lexer:bt,Parser:gt,Writer:wt,Store:Pt,StreamParser:vt,StreamWriter:xt,Util:At,DataFactory:Ot,Term:Rt,NamedNode:jt,Literal:Mt,BlankNode:Tt,Variable:St,DefaultGraph:Ht,Quad:W,Triple:W,termFromId:Dt,termToId:It},Rr=Object.freeze(Object.defineProperty({__proto__:null,BlankNode:Tt,DataFactory:Ot,DefaultGraph:Ht,Lexer:bt,Literal:Mt,NamedNode:jt,Parser:gt,Quad:W,Store:Pt,StreamParser:vt,StreamWriter:xt,Term:Rt,Triple:W,Util:At,Variable:St,Writer:wt,default:Or,termFromId:Dt,termToId:It},Symbol.toStringTag,{value:"Module"}));var X={};const jr=dr(Rr);var Ce={},G={},C={},h={},Bt={},Lt={};Object.defineProperty(Lt,"__esModule",{value:!0});var Ft={};Object.defineProperty(Ft,"__esModule",{value:!0});var Kt={};Object.defineProperty(Kt,"__esModule",{value:!0});var Nt={};Object.defineProperty(Nt,"__esModule",{value:!0});var qt={};Object.defineProperty(qt,"__esModule",{value:!0});var Jt={};Object.defineProperty(Jt,"__esModule",{value:!0});var Wt={};Object.defineProperty(Wt,"__esModule",{value:!0});var Qt={};Object.defineProperty(Qt,"__esModule",{value:!0});var Xt={};Object.defineProperty(Xt,"__esModule",{value:!0});var Gt={};Object.defineProperty(Gt,"__esModule",{value:!0});var Ut={};Object.defineProperty(Ut,"__esModule",{value:!0});var zt={};Object.defineProperty(zt,"__esModule",{value:!0});var Vt={};Object.defineProperty(Vt,"__esModule",{value:!0});var U={};Object.defineProperty(U,"__esModule",{value:!0});U.Logger=void 0;class z{static getLevelOrdinal(e){return z.LEVELS[e]}}U.Logger=z;z.LEVELS={trace:0,debug:1,info:2,warn:3,error:4,fatal:5};(function(s){var e=c&&c.__createBinding||(Object.create?function(n,t,r,o){o===void 0&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(n,o,i)}:function(n,t,r,o){o===void 0&&(o=r),n[o]=t[r]}),a=c&&c.__exportStar||function(n,t){for(var r in n)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&e(t,n,r)};Object.defineProperty(s,"__esModule",{value:!0}),a(Lt,s),a(Ft,s),a(Kt,s),a(Nt,s),a(qt,s),a(Jt,s),a(Wt,s),a(Qt,s),a(Xt,s),a(Gt,s),a(Ut,s),a(zt,s),a(Vt,s),a(U,s)})(Bt);var O={};Object.defineProperty(O,"__esModule",{value:!0});O.ActionContextKey=O.ActionContext=void 0;const it=ur;class S{constructor(e={}){this.map=(0,it.Map)(e)}setDefault(e,a){return this.has(e)?this:this.set(e,a)}set(e,a){return this.setRaw(e.name,a)}setRaw(e,a){return new S(this.map.set(e,a))}delete(e){return new S(this.map.delete(e.name))}get(e){return this.getRaw(e.name)}getRaw(e){return this.map.get(e)}getSafe(e){if(!this.has(e))throw new Error(`Context entry ${e.name} is required but not available`);return this.get(e)}has(e){return this.hasRaw(e.name)}hasRaw(e){return this.map.has(e)}merge(...e){let a=this;for(const n of e)for(const t of n.keys())a=a.set(t,n.get(t));return a}keys(){return[...this.map.keys()].map(e=>new Yt(e))}toJS(){return this.map.toJS()}toString(){return`ActionContext(${JSON.stringify(this.map.toJS())})`}[Symbol.for("nodejs.util.inspect.custom")](){return`ActionContext(${JSON.stringify(this.map.toJS(),null," ")})`}static ensureActionContext(e){return e instanceof S?e:new S((0,it.Map)(e||{}))}}O.ActionContext=S;class Yt{constructor(e){this.name=e}}O.ActionContextKey=Yt;var E={};Object.defineProperty(E,"__esModule",{value:!0});E.Bus=void 0;class Mr{constructor(e){this.actors=[],this.observers=[],this.dependencyLinks=new Map,Object.assign(this,e)}subscribe(e){this.actors.push(e),this.reorderForDependencies()}subscribeObserver(e){this.observers.push(e)}unsubscribe(e){const a=this.actors.indexOf(e);return a>=0?(this.actors.splice(a,1),!0):!1}unsubscribeObserver(e){const a=this.observers.indexOf(e);return a>=0?(this.observers.splice(a,1),!0):!1}publish(e){return this.actors.map(a=>({actor:a,reply:a.test(e)}))}onRun(e,a,n){for(const t of this.observers)t.onRun(e,a,n)}addDependencies(e,a){for(const n of a){let t=this.dependencyLinks.get(n);t||(t=[],this.dependencyLinks.set(n,t)),t.push(e)}this.reorderForDependencies()}reorderForDependencies(){if(this.dependencyLinks.size>0){const e=[];for(const a of this.dependencyLinks.keys()){const n=this.actors.indexOf(a);n>=0&&(this.actors.splice(n,1),e.push(a))}for(;e.length>0;){let a=-1;for(let t=0;t=0&&n.splice(t,1),n.length===0&&delete this.actorsIndex[a]}return super.unsubscribe(e)}publish(e){const a=this.getActionIdentifier(e);return a?[...this.actorsIndex[a]||[],...this.actorsIndex._undefined_||[]].map(t=>({actor:t,reply:t.test(e)})):super.publish(e)}getActorIdentifier(e){return this.actorIdentifierFields.reduce((a,n)=>a[n],e)}getActionIdentifier(e){return this.actionIdentifierFields.reduce((a,n)=>a[n],e)}}V.BusIndexed=Sr;var B={};Object.defineProperty(B,"__esModule",{value:!0});B.CONTEXT_KEY_LOGGER=void 0;const Hr=O;B.CONTEXT_KEY_LOGGER=new Hr.ActionContextKey("@comunica/core:log");var Y={};Object.defineProperty(Y,"__esModule",{value:!0});Y.ActionObserver=void 0;class Dr{constructor(e){Object.assign(this,e)}}Y.ActionObserver=Dr;var Z={};Object.defineProperty(Z,"__esModule",{value:!0});Z.Actor=void 0;const Ir=B;class A{constructor(e){this.beforeActors=[],Object.assign(this,e),this.bus.subscribe(this),this.beforeActors.length>0&&this.bus.addDependencies(this,this.beforeActors)}static getContextLogger(e){return e.get(Ir.CONTEXT_KEY_LOGGER)}runObservable(e){const a=this.run(e);return this.bus.onRun(this,e,a),a}async initialize(){return!0}async deinitialize(){return!0}getDefaultLogData(e,a){const n=a?a():{};return n.actor=this.name,n}logTrace(e,a,n){const t=A.getContextLogger(e);t&&t.trace(a,this.getDefaultLogData(e,n))}logDebug(e,a,n){const t=A.getContextLogger(e);t&&t.debug(a,this.getDefaultLogData(e,n))}logInfo(e,a,n){const t=A.getContextLogger(e);t&&t.info(a,this.getDefaultLogData(e,n))}logWarn(e,a,n){const t=A.getContextLogger(e);t&&t.warn(a,this.getDefaultLogData(e,n))}logError(e,a,n){const t=A.getContextLogger(e);t&&t.error(a,this.getDefaultLogData(e,n))}logFatal(e,a,n){const t=A.getContextLogger(e);t&&t.fatal(a,this.getDefaultLogData(e,n))}}Z.Actor=A;var k={};Object.defineProperty(k,"__esModule",{value:!0});k.Mediator=void 0;class $r{constructor(e){Object.assign(this,e)}publish(e){const a=this.bus.publish(e);if(a.length===0)throw new Error(`No actors are able to reply to a message in the bus ${this.bus.name}`);return a}async mediateActor(e){return await this.mediateWith(e,this.publish(e))}async mediate(e){return(await this.mediateActor(e)).runObservable(e)}}k.Mediator=$r;(function(s){var e=c&&c.__createBinding||(Object.create?function(r,o,i,d){d===void 0&&(d=i);var l=Object.getOwnPropertyDescriptor(o,i);(!l||("get"in l?!o.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return o[i]}}),Object.defineProperty(r,d,l)}:function(r,o,i,d){d===void 0&&(d=i),r[d]=o[i]}),a=c&&c.__exportStar||function(r,o){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i)&&e(o,r,i)};Object.defineProperty(s,"__esModule",{value:!0}),s.Logger=void 0;const t=Bt.Logger;s.Logger=t,a(O,s),a(E,s),a(V,s),a(B,s),a(Y,s),a(Z,s),a(k,s)})(h);var M={},_={};Object.defineProperty(_,"__esModule",{value:!0});_.KeysRdfUpdateQuads=_.KeysRdfResolveQuadPattern=_.KeysRdfParseHtmlScript=_.KeysRdfParseJsonLd=_.KeysQueryOperation=_.KeysInitQuery=_.KeysHttpProxy=_.KeysHttpMemento=_.KeysHttpWayback=_.KeysHttp=_.KeysCore=void 0;const u=h;_.KeysCore={log:u.CONTEXT_KEY_LOGGER};_.KeysHttp={includeCredentials:new u.ActionContextKey("@comunica/bus-http:include-credentials"),auth:new u.ActionContextKey("@comunica/bus-http:auth"),fetch:new u.ActionContextKey("@comunica/bus-http:fetch"),httpTimeout:new u.ActionContextKey("@comunica/bus-http:http-timeout"),httpBodyTimeout:new u.ActionContextKey("@comunica/bus-http:http-body-timeout"),httpRetryCount:new u.ActionContextKey("@comunica/bus-http:http-retry-count"),httpRetryDelay:new u.ActionContextKey("@comunica/bus-http:http-retry-delay"),httpRetryOnServerError:new u.ActionContextKey("@comunica/bus-http:http-retry-on-server-error")};_.KeysHttpWayback={recoverBrokenLinks:new u.ActionContextKey("@comunica/bus-http:recover-broken-links")};_.KeysHttpMemento={datetime:new u.ActionContextKey("@comunica/actor-http-memento:datetime")};_.KeysHttpProxy={httpProxyHandler:new u.ActionContextKey("@comunica/actor-http-proxy:httpProxyHandler")};_.KeysInitQuery={initialBindings:new u.ActionContextKey("@comunica/actor-init-query:initialBindings"),queryFormat:new u.ActionContextKey("@comunica/actor-init-query:queryFormat"),graphqlSingularizeVariables:new u.ActionContextKey("@comunica/actor-init-query:singularizeVariables"),lenient:new u.ActionContextKey("@comunica/actor-init-query:lenient"),queryString:new u.ActionContextKey("@comunica/actor-init-query:queryString"),query:new u.ActionContextKey("@comunica/actor-init-query:query"),baseIRI:new u.ActionContextKey("@comunica/actor-init-query:baseIRI"),functionArgumentsCache:new u.ActionContextKey("@comunica/actor-init-query:functionArgumentsCache"),queryTimestamp:new u.ActionContextKey("@comunica/actor-init-query:queryTimestamp"),extensionFunctionCreator:new u.ActionContextKey("@comunica/actor-init-query:extensionFunctionCreator"),extensionFunctions:new u.ActionContextKey("@comunica/actor-init-query:extensionFunctions"),cliArgsHandlers:new u.ActionContextKey("@comunica/actor-init-query:cliArgsHandlers"),explain:new u.ActionContextKey("@comunica/actor-init-query:explain"),physicalQueryPlanLogger:new u.ActionContextKey("@comunica/actor-init-query:physicalQueryPlanLogger"),physicalQueryPlanNode:new u.ActionContextKey("@comunica/actor-init-query:physicalQueryPlanNode"),jsonLdContext:new u.ActionContextKey("@context")};_.KeysQueryOperation={operation:new u.ActionContextKey("@comunica/bus-query-operation:operation"),joinLeftMetadata:new u.ActionContextKey("@comunica/bus-query-operation:joinLeftMetadata"),joinRightMetadatas:new u.ActionContextKey("@comunica/bus-query-operation:joinRightMetadatas"),joinBindings:new u.ActionContextKey("@comunica/bus-query-operation:joinBindings"),readOnly:new u.ActionContextKey("@comunica/bus-query-operation:readOnly"),isPathArbitraryLengthDistinctKey:new u.ActionContextKey("@comunica/bus-query-operation:isPathArbitraryLengthDistinct"),limitIndicator:new u.ActionContextKey("@comunica/bus-query-operation:limitIndicator"),unionDefaultGraph:new u.ActionContextKey("@comunica/bus-query-operation:unionDefaultGraph")};_.KeysRdfParseJsonLd={documentLoader:new u.ActionContextKey("@comunica/actor-rdf-parse-jsonld:documentLoader"),strictValues:new u.ActionContextKey("@comunica/actor-rdf-parse-jsonld:strictValues"),parserOptions:new u.ActionContextKey("@comunica/actor-rdf-parse-jsonld:parserOptions")};_.KeysRdfParseHtmlScript={processingHtmlScript:new u.ActionContextKey("@comunica/actor-rdf-parse-html-script:processingHtmlScript"),extractAllScripts:new u.ActionContextKey("extractAllScripts")};_.KeysRdfResolveQuadPattern={sources:new u.ActionContextKey("@comunica/bus-rdf-resolve-quad-pattern:sources"),source:new u.ActionContextKey("@comunica/bus-rdf-resolve-quad-pattern:source"),sourceIds:new u.ActionContextKey("@comunica/bus-rdf-resolve-quad-pattern:sourceIds"),hypermediaSourcesAggregatedStores:new u.ActionContextKey("@comunica/bus-rdf-resolve-quad-pattern:hypermediaSourcesAggregatedStores")};_.KeysRdfUpdateQuads={destination:new u.ActionContextKey("@comunica/bus-rdf-update-quads:destination")};(function(s){var e=c&&c.__createBinding||(Object.create?function(n,t,r,o){o===void 0&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(n,o,i)}:function(n,t,r,o){o===void 0&&(o=r),n[o]=t[r]}),a=c&&c.__exportStar||function(n,t){for(var r in n)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&e(t,n,r)};Object.defineProperty(s,"__esModule",{value:!0}),a(_,s)})(M);Object.defineProperty(C,"__esModule",{value:!0});C.RdfDereferencerBase=void 0;const Cr=h,Er=M;class Br{constructor(e){this.mediatorDereferenceRdf=e.mediatorDereferenceRdf}dereference(e,a={}){const n=new Cr.ActionContext(a);return this.mediatorDereferenceRdf.mediate({context:typeof a.fetch=="function"?n.setDefault(Er.KeysHttp.fetch,a.fetch):n,headers:new Headers(a.headers),method:a.method,url:e})}}C.RdfDereferencerBase=Br;Object.defineProperty(G,"__esModule",{value:!0});G.RdfDereferencer=void 0;const Lr=C;class Fr extends Lr.RdfDereferencerBase{}G.RdfDereferencer=Fr;var $={},ee={};Object.defineProperty(ee,"__esModule",{value:!0});ee.MediatorRace=void 0;const Kr=h;class Nr extends Kr.Mediator{constructor(e){super(e)}mediateWith(e,a){return new Promise((n,t)=>{const r=[];for(const o of a)o.reply.then(()=>{n(o.actor)}).catch(i=>{r.push(i),r.length===a.length&&t(new Error(`${this.name} mediated over all rejecting actors: +import{c0 as bt,c1 as gt,Q as wt,c2 as Pt,c3 as vt,c4 as xt,c5 as At,J as Ot,c6 as Rt,c7 as jt,c8 as Mt,c9 as Tt,ca as St,cb as Ht,cc as W,cd as Dt,ce as It,bY as dr,bZ as c,cf as ur,cg as lr,ch as fr,ci as pr,cj as _r,K as ot,ck as mr,cl as j,cm as hr,cn as yr,co as $t,cp as Ct,cq as br,cr as qe,cs as gr,ct as wr,cu as Pr,cv as vr,cw as Et,cx as xr,cy as Ar}from"./index-BcaS_xbN.js";const Or={Lexer:bt,Parser:gt,Writer:wt,Store:Pt,StreamParser:vt,StreamWriter:xt,Util:At,DataFactory:Ot,Term:Rt,NamedNode:jt,Literal:Mt,BlankNode:Tt,Variable:St,DefaultGraph:Ht,Quad:W,Triple:W,termFromId:Dt,termToId:It},Rr=Object.freeze(Object.defineProperty({__proto__:null,BlankNode:Tt,DataFactory:Ot,DefaultGraph:Ht,Lexer:bt,Literal:Mt,NamedNode:jt,Parser:gt,Quad:W,Store:Pt,StreamParser:vt,StreamWriter:xt,Term:Rt,Triple:W,Util:At,Variable:St,Writer:wt,default:Or,termFromId:Dt,termToId:It},Symbol.toStringTag,{value:"Module"}));var X={};const jr=dr(Rr);var Ce={},G={},C={},h={},Bt={},Lt={};Object.defineProperty(Lt,"__esModule",{value:!0});var Ft={};Object.defineProperty(Ft,"__esModule",{value:!0});var Kt={};Object.defineProperty(Kt,"__esModule",{value:!0});var Nt={};Object.defineProperty(Nt,"__esModule",{value:!0});var qt={};Object.defineProperty(qt,"__esModule",{value:!0});var Jt={};Object.defineProperty(Jt,"__esModule",{value:!0});var Wt={};Object.defineProperty(Wt,"__esModule",{value:!0});var Qt={};Object.defineProperty(Qt,"__esModule",{value:!0});var Xt={};Object.defineProperty(Xt,"__esModule",{value:!0});var Gt={};Object.defineProperty(Gt,"__esModule",{value:!0});var Ut={};Object.defineProperty(Ut,"__esModule",{value:!0});var zt={};Object.defineProperty(zt,"__esModule",{value:!0});var Vt={};Object.defineProperty(Vt,"__esModule",{value:!0});var U={};Object.defineProperty(U,"__esModule",{value:!0});U.Logger=void 0;class z{static getLevelOrdinal(e){return z.LEVELS[e]}}U.Logger=z;z.LEVELS={trace:0,debug:1,info:2,warn:3,error:4,fatal:5};(function(s){var e=c&&c.__createBinding||(Object.create?function(n,t,r,o){o===void 0&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(n,o,i)}:function(n,t,r,o){o===void 0&&(o=r),n[o]=t[r]}),a=c&&c.__exportStar||function(n,t){for(var r in n)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&e(t,n,r)};Object.defineProperty(s,"__esModule",{value:!0}),a(Lt,s),a(Ft,s),a(Kt,s),a(Nt,s),a(qt,s),a(Jt,s),a(Wt,s),a(Qt,s),a(Xt,s),a(Gt,s),a(Ut,s),a(zt,s),a(Vt,s),a(U,s)})(Bt);var O={};Object.defineProperty(O,"__esModule",{value:!0});O.ActionContextKey=O.ActionContext=void 0;const it=ur;class S{constructor(e={}){this.map=(0,it.Map)(e)}setDefault(e,a){return this.has(e)?this:this.set(e,a)}set(e,a){return this.setRaw(e.name,a)}setRaw(e,a){return new S(this.map.set(e,a))}delete(e){return new S(this.map.delete(e.name))}get(e){return this.getRaw(e.name)}getRaw(e){return this.map.get(e)}getSafe(e){if(!this.has(e))throw new Error(`Context entry ${e.name} is required but not available`);return this.get(e)}has(e){return this.hasRaw(e.name)}hasRaw(e){return this.map.has(e)}merge(...e){let a=this;for(const n of e)for(const t of n.keys())a=a.set(t,n.get(t));return a}keys(){return[...this.map.keys()].map(e=>new Yt(e))}toJS(){return this.map.toJS()}toString(){return`ActionContext(${JSON.stringify(this.map.toJS())})`}[Symbol.for("nodejs.util.inspect.custom")](){return`ActionContext(${JSON.stringify(this.map.toJS(),null," ")})`}static ensureActionContext(e){return e instanceof S?e:new S((0,it.Map)(e||{}))}}O.ActionContext=S;class Yt{constructor(e){this.name=e}}O.ActionContextKey=Yt;var E={};Object.defineProperty(E,"__esModule",{value:!0});E.Bus=void 0;class Mr{constructor(e){this.actors=[],this.observers=[],this.dependencyLinks=new Map,Object.assign(this,e)}subscribe(e){this.actors.push(e),this.reorderForDependencies()}subscribeObserver(e){this.observers.push(e)}unsubscribe(e){const a=this.actors.indexOf(e);return a>=0?(this.actors.splice(a,1),!0):!1}unsubscribeObserver(e){const a=this.observers.indexOf(e);return a>=0?(this.observers.splice(a,1),!0):!1}publish(e){return this.actors.map(a=>({actor:a,reply:a.test(e)}))}onRun(e,a,n){for(const t of this.observers)t.onRun(e,a,n)}addDependencies(e,a){for(const n of a){let t=this.dependencyLinks.get(n);t||(t=[],this.dependencyLinks.set(n,t)),t.push(e)}this.reorderForDependencies()}reorderForDependencies(){if(this.dependencyLinks.size>0){const e=[];for(const a of this.dependencyLinks.keys()){const n=this.actors.indexOf(a);n>=0&&(this.actors.splice(n,1),e.push(a))}for(;e.length>0;){let a=-1;for(let t=0;t=0&&n.splice(t,1),n.length===0&&delete this.actorsIndex[a]}return super.unsubscribe(e)}publish(e){const a=this.getActionIdentifier(e);return a?[...this.actorsIndex[a]||[],...this.actorsIndex._undefined_||[]].map(t=>({actor:t,reply:t.test(e)})):super.publish(e)}getActorIdentifier(e){return this.actorIdentifierFields.reduce((a,n)=>a[n],e)}getActionIdentifier(e){return this.actionIdentifierFields.reduce((a,n)=>a[n],e)}}V.BusIndexed=Sr;var B={};Object.defineProperty(B,"__esModule",{value:!0});B.CONTEXT_KEY_LOGGER=void 0;const Hr=O;B.CONTEXT_KEY_LOGGER=new Hr.ActionContextKey("@comunica/core:log");var Y={};Object.defineProperty(Y,"__esModule",{value:!0});Y.ActionObserver=void 0;class Dr{constructor(e){Object.assign(this,e)}}Y.ActionObserver=Dr;var Z={};Object.defineProperty(Z,"__esModule",{value:!0});Z.Actor=void 0;const Ir=B;class A{constructor(e){this.beforeActors=[],Object.assign(this,e),this.bus.subscribe(this),this.beforeActors.length>0&&this.bus.addDependencies(this,this.beforeActors)}static getContextLogger(e){return e.get(Ir.CONTEXT_KEY_LOGGER)}runObservable(e){const a=this.run(e);return this.bus.onRun(this,e,a),a}async initialize(){return!0}async deinitialize(){return!0}getDefaultLogData(e,a){const n=a?a():{};return n.actor=this.name,n}logTrace(e,a,n){const t=A.getContextLogger(e);t&&t.trace(a,this.getDefaultLogData(e,n))}logDebug(e,a,n){const t=A.getContextLogger(e);t&&t.debug(a,this.getDefaultLogData(e,n))}logInfo(e,a,n){const t=A.getContextLogger(e);t&&t.info(a,this.getDefaultLogData(e,n))}logWarn(e,a,n){const t=A.getContextLogger(e);t&&t.warn(a,this.getDefaultLogData(e,n))}logError(e,a,n){const t=A.getContextLogger(e);t&&t.error(a,this.getDefaultLogData(e,n))}logFatal(e,a,n){const t=A.getContextLogger(e);t&&t.fatal(a,this.getDefaultLogData(e,n))}}Z.Actor=A;var k={};Object.defineProperty(k,"__esModule",{value:!0});k.Mediator=void 0;class $r{constructor(e){Object.assign(this,e)}publish(e){const a=this.bus.publish(e);if(a.length===0)throw new Error(`No actors are able to reply to a message in the bus ${this.bus.name}`);return a}async mediateActor(e){return await this.mediateWith(e,this.publish(e))}async mediate(e){return(await this.mediateActor(e)).runObservable(e)}}k.Mediator=$r;(function(s){var e=c&&c.__createBinding||(Object.create?function(r,o,i,d){d===void 0&&(d=i);var l=Object.getOwnPropertyDescriptor(o,i);(!l||("get"in l?!o.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return o[i]}}),Object.defineProperty(r,d,l)}:function(r,o,i,d){d===void 0&&(d=i),r[d]=o[i]}),a=c&&c.__exportStar||function(r,o){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i)&&e(o,r,i)};Object.defineProperty(s,"__esModule",{value:!0}),s.Logger=void 0;const t=Bt.Logger;s.Logger=t,a(O,s),a(E,s),a(V,s),a(B,s),a(Y,s),a(Z,s),a(k,s)})(h);var M={},_={};Object.defineProperty(_,"__esModule",{value:!0});_.KeysRdfUpdateQuads=_.KeysRdfResolveQuadPattern=_.KeysRdfParseHtmlScript=_.KeysRdfParseJsonLd=_.KeysQueryOperation=_.KeysInitQuery=_.KeysHttpProxy=_.KeysHttpMemento=_.KeysHttpWayback=_.KeysHttp=_.KeysCore=void 0;const u=h;_.KeysCore={log:u.CONTEXT_KEY_LOGGER};_.KeysHttp={includeCredentials:new u.ActionContextKey("@comunica/bus-http:include-credentials"),auth:new u.ActionContextKey("@comunica/bus-http:auth"),fetch:new u.ActionContextKey("@comunica/bus-http:fetch"),httpTimeout:new u.ActionContextKey("@comunica/bus-http:http-timeout"),httpBodyTimeout:new u.ActionContextKey("@comunica/bus-http:http-body-timeout"),httpRetryCount:new u.ActionContextKey("@comunica/bus-http:http-retry-count"),httpRetryDelay:new u.ActionContextKey("@comunica/bus-http:http-retry-delay"),httpRetryOnServerError:new u.ActionContextKey("@comunica/bus-http:http-retry-on-server-error")};_.KeysHttpWayback={recoverBrokenLinks:new u.ActionContextKey("@comunica/bus-http:recover-broken-links")};_.KeysHttpMemento={datetime:new u.ActionContextKey("@comunica/actor-http-memento:datetime")};_.KeysHttpProxy={httpProxyHandler:new u.ActionContextKey("@comunica/actor-http-proxy:httpProxyHandler")};_.KeysInitQuery={initialBindings:new u.ActionContextKey("@comunica/actor-init-query:initialBindings"),queryFormat:new u.ActionContextKey("@comunica/actor-init-query:queryFormat"),graphqlSingularizeVariables:new u.ActionContextKey("@comunica/actor-init-query:singularizeVariables"),lenient:new u.ActionContextKey("@comunica/actor-init-query:lenient"),queryString:new u.ActionContextKey("@comunica/actor-init-query:queryString"),query:new u.ActionContextKey("@comunica/actor-init-query:query"),baseIRI:new u.ActionContextKey("@comunica/actor-init-query:baseIRI"),functionArgumentsCache:new u.ActionContextKey("@comunica/actor-init-query:functionArgumentsCache"),queryTimestamp:new u.ActionContextKey("@comunica/actor-init-query:queryTimestamp"),extensionFunctionCreator:new u.ActionContextKey("@comunica/actor-init-query:extensionFunctionCreator"),extensionFunctions:new u.ActionContextKey("@comunica/actor-init-query:extensionFunctions"),cliArgsHandlers:new u.ActionContextKey("@comunica/actor-init-query:cliArgsHandlers"),explain:new u.ActionContextKey("@comunica/actor-init-query:explain"),physicalQueryPlanLogger:new u.ActionContextKey("@comunica/actor-init-query:physicalQueryPlanLogger"),physicalQueryPlanNode:new u.ActionContextKey("@comunica/actor-init-query:physicalQueryPlanNode"),jsonLdContext:new u.ActionContextKey("@context")};_.KeysQueryOperation={operation:new u.ActionContextKey("@comunica/bus-query-operation:operation"),joinLeftMetadata:new u.ActionContextKey("@comunica/bus-query-operation:joinLeftMetadata"),joinRightMetadatas:new u.ActionContextKey("@comunica/bus-query-operation:joinRightMetadatas"),joinBindings:new u.ActionContextKey("@comunica/bus-query-operation:joinBindings"),readOnly:new u.ActionContextKey("@comunica/bus-query-operation:readOnly"),isPathArbitraryLengthDistinctKey:new u.ActionContextKey("@comunica/bus-query-operation:isPathArbitraryLengthDistinct"),limitIndicator:new u.ActionContextKey("@comunica/bus-query-operation:limitIndicator"),unionDefaultGraph:new u.ActionContextKey("@comunica/bus-query-operation:unionDefaultGraph")};_.KeysRdfParseJsonLd={documentLoader:new u.ActionContextKey("@comunica/actor-rdf-parse-jsonld:documentLoader"),strictValues:new u.ActionContextKey("@comunica/actor-rdf-parse-jsonld:strictValues"),parserOptions:new u.ActionContextKey("@comunica/actor-rdf-parse-jsonld:parserOptions")};_.KeysRdfParseHtmlScript={processingHtmlScript:new u.ActionContextKey("@comunica/actor-rdf-parse-html-script:processingHtmlScript"),extractAllScripts:new u.ActionContextKey("extractAllScripts")};_.KeysRdfResolveQuadPattern={sources:new u.ActionContextKey("@comunica/bus-rdf-resolve-quad-pattern:sources"),source:new u.ActionContextKey("@comunica/bus-rdf-resolve-quad-pattern:source"),sourceIds:new u.ActionContextKey("@comunica/bus-rdf-resolve-quad-pattern:sourceIds"),hypermediaSourcesAggregatedStores:new u.ActionContextKey("@comunica/bus-rdf-resolve-quad-pattern:hypermediaSourcesAggregatedStores")};_.KeysRdfUpdateQuads={destination:new u.ActionContextKey("@comunica/bus-rdf-update-quads:destination")};(function(s){var e=c&&c.__createBinding||(Object.create?function(n,t,r,o){o===void 0&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(n,o,i)}:function(n,t,r,o){o===void 0&&(o=r),n[o]=t[r]}),a=c&&c.__exportStar||function(n,t){for(var r in n)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&e(t,n,r)};Object.defineProperty(s,"__esModule",{value:!0}),a(_,s)})(M);Object.defineProperty(C,"__esModule",{value:!0});C.RdfDereferencerBase=void 0;const Cr=h,Er=M;class Br{constructor(e){this.mediatorDereferenceRdf=e.mediatorDereferenceRdf}dereference(e,a={}){const n=new Cr.ActionContext(a);return this.mediatorDereferenceRdf.mediate({context:typeof a.fetch=="function"?n.setDefault(Er.KeysHttp.fetch,a.fetch):n,headers:new Headers(a.headers),method:a.method,url:e})}}C.RdfDereferencerBase=Br;Object.defineProperty(G,"__esModule",{value:!0});G.RdfDereferencer=void 0;const Lr=C;class Fr extends Lr.RdfDereferencerBase{}G.RdfDereferencer=Fr;var $={},ee={};Object.defineProperty(ee,"__esModule",{value:!0});ee.MediatorRace=void 0;const Kr=h;class Nr extends Kr.Mediator{constructor(e){super(e)}mediateWith(e,a){return new Promise((n,t)=>{const r=[];for(const o of a)o.reply.then(()=>{n(o.actor)}).catch(i=>{r.push(i),r.length===a.length&&t(new Error(`${this.name} mediated over all rejecting actors: ${r.map(d=>d.message).join(` `)}`))})})}}ee.MediatorRace=Nr;(function(s){var e=c&&c.__createBinding||(Object.create?function(n,t,r,o){o===void 0&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(n,o,i)}:function(n,t,r,o){o===void 0&&(o=r),n[o]=t[r]}),a=c&&c.__exportStar||function(n,t){for(var r in n)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&e(t,n,r)};Object.defineProperty(s,"__esModule",{value:!0}),a(ee,s)})($);var Je={},te={};Object.defineProperty(te,"__esModule",{value:!0});te.MediatorNumber=void 0;const qr=h;class Jr extends qr.Mediator{constructor(e){super(e),this.indexPicker=this.createIndexPicker()}createIndexPicker(){switch(this.type){case"min":return e=>e.reduce((a,n,t)=>{const r=this.getOrDefault(n[this.field],Number.POSITIVE_INFINITY);return r!==null&&(Number.isNaN(a[0])||a[0]>r)?[r,t]:a},[Number.NaN,-1])[1];case"max":return e=>e.reduce((a,n,t)=>{const r=this.getOrDefault(n[this.field],Number.NEGATIVE_INFINITY);return r!==null&&(Number.isNaN(a[0])||a[0]i);const t=[];if(this.ignoreErrors){const i={};i[this.field]=null,n=n.map(d=>d.catch(l=>(t.push(l),i)))}const r=await Promise.all(n),o=this.indexPicker(r);if(o<0)throw new Error(`All actors rejected their test in ${this.name} ${t.map(i=>i.message).join(` diff --git a/pad/assets/index-DNvRhm5Q.css b/pad/assets/index-DlEVPgxc.css similarity index 99% rename from pad/assets/index-DNvRhm5Q.css rename to pad/assets/index-DlEVPgxc.css index 00cc2a7..d9f936e 100644 --- a/pad/assets/index-DNvRhm5Q.css +++ b/pad/assets/index-DlEVPgxc.css @@ -6,4 +6,4 @@ * Bootstrap Icons v1.11.3 (https://icons.getbootstrap.com/) * Copyright 2019-2024 The Bootstrap Authors * Licensed under MIT (https://github.com/twbs/icons/blob/main/LICENSE) -*/@font-face{font-display:block;font-family:bootstrap-icons;src:url(./bootstrap-icons-BtvjY1KL.woff2?dd67030699838ea613ee6dbda90effa6) format("woff2"),url(./bootstrap-icons-BOrJxbIo.woff?dd67030699838ea613ee6dbda90effa6) format("woff")}.bi:before,[class^=bi-]:before,[class*=" bi-"]:before{display:inline-block;font-family:bootstrap-icons!important;font-style:normal;font-weight:400!important;font-variant:normal;text-transform:none;line-height:1;vertical-align:-.125em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.bi-123:before{content:""}.bi-alarm-fill:before{content:""}.bi-alarm:before{content:""}.bi-align-bottom:before{content:""}.bi-align-center:before{content:""}.bi-align-end:before{content:""}.bi-align-middle:before{content:""}.bi-align-start:before{content:""}.bi-align-top:before{content:""}.bi-alt:before{content:""}.bi-app-indicator:before{content:""}.bi-app:before{content:""}.bi-archive-fill:before{content:""}.bi-archive:before{content:""}.bi-arrow-90deg-down:before{content:""}.bi-arrow-90deg-left:before{content:""}.bi-arrow-90deg-right:before{content:""}.bi-arrow-90deg-up:before{content:""}.bi-arrow-bar-down:before{content:""}.bi-arrow-bar-left:before{content:""}.bi-arrow-bar-right:before{content:""}.bi-arrow-bar-up:before{content:""}.bi-arrow-clockwise:before{content:""}.bi-arrow-counterclockwise:before{content:""}.bi-arrow-down-circle-fill:before{content:""}.bi-arrow-down-circle:before{content:""}.bi-arrow-down-left-circle-fill:before{content:""}.bi-arrow-down-left-circle:before{content:""}.bi-arrow-down-left-square-fill:before{content:""}.bi-arrow-down-left-square:before{content:""}.bi-arrow-down-left:before{content:""}.bi-arrow-down-right-circle-fill:before{content:""}.bi-arrow-down-right-circle:before{content:""}.bi-arrow-down-right-square-fill:before{content:""}.bi-arrow-down-right-square:before{content:""}.bi-arrow-down-right:before{content:""}.bi-arrow-down-short:before{content:""}.bi-arrow-down-square-fill:before{content:""}.bi-arrow-down-square:before{content:""}.bi-arrow-down-up:before{content:""}.bi-arrow-down:before{content:""}.bi-arrow-left-circle-fill:before{content:""}.bi-arrow-left-circle:before{content:""}.bi-arrow-left-right:before{content:""}.bi-arrow-left-short:before{content:""}.bi-arrow-left-square-fill:before{content:""}.bi-arrow-left-square:before{content:""}.bi-arrow-left:before{content:""}.bi-arrow-repeat:before{content:""}.bi-arrow-return-left:before{content:""}.bi-arrow-return-right:before{content:""}.bi-arrow-right-circle-fill:before{content:""}.bi-arrow-right-circle:before{content:""}.bi-arrow-right-short:before{content:""}.bi-arrow-right-square-fill:before{content:""}.bi-arrow-right-square:before{content:""}.bi-arrow-right:before{content:""}.bi-arrow-up-circle-fill:before{content:""}.bi-arrow-up-circle:before{content:""}.bi-arrow-up-left-circle-fill:before{content:""}.bi-arrow-up-left-circle:before{content:""}.bi-arrow-up-left-square-fill:before{content:""}.bi-arrow-up-left-square:before{content:""}.bi-arrow-up-left:before{content:""}.bi-arrow-up-right-circle-fill:before{content:""}.bi-arrow-up-right-circle:before{content:""}.bi-arrow-up-right-square-fill:before{content:""}.bi-arrow-up-right-square:before{content:""}.bi-arrow-up-right:before{content:""}.bi-arrow-up-short:before{content:""}.bi-arrow-up-square-fill:before{content:""}.bi-arrow-up-square:before{content:""}.bi-arrow-up:before{content:""}.bi-arrows-angle-contract:before{content:""}.bi-arrows-angle-expand:before{content:""}.bi-arrows-collapse:before{content:""}.bi-arrows-expand:before{content:""}.bi-arrows-fullscreen:before{content:""}.bi-arrows-move:before{content:""}.bi-aspect-ratio-fill:before{content:""}.bi-aspect-ratio:before{content:""}.bi-asterisk:before{content:""}.bi-at:before{content:""}.bi-award-fill:before{content:""}.bi-award:before{content:""}.bi-back:before{content:""}.bi-backspace-fill:before{content:""}.bi-backspace-reverse-fill:before{content:""}.bi-backspace-reverse:before{content:""}.bi-backspace:before{content:""}.bi-badge-3d-fill:before{content:""}.bi-badge-3d:before{content:""}.bi-badge-4k-fill:before{content:""}.bi-badge-4k:before{content:""}.bi-badge-8k-fill:before{content:""}.bi-badge-8k:before{content:""}.bi-badge-ad-fill:before{content:""}.bi-badge-ad:before{content:""}.bi-badge-ar-fill:before{content:""}.bi-badge-ar:before{content:""}.bi-badge-cc-fill:before{content:""}.bi-badge-cc:before{content:""}.bi-badge-hd-fill:before{content:""}.bi-badge-hd:before{content:""}.bi-badge-tm-fill:before{content:""}.bi-badge-tm:before{content:""}.bi-badge-vo-fill:before{content:""}.bi-badge-vo:before{content:""}.bi-badge-vr-fill:before{content:""}.bi-badge-vr:before{content:""}.bi-badge-wc-fill:before{content:""}.bi-badge-wc:before{content:""}.bi-bag-check-fill:before{content:""}.bi-bag-check:before{content:""}.bi-bag-dash-fill:before{content:""}.bi-bag-dash:before{content:""}.bi-bag-fill:before{content:""}.bi-bag-plus-fill:before{content:""}.bi-bag-plus:before{content:""}.bi-bag-x-fill:before{content:""}.bi-bag-x:before{content:""}.bi-bag:before{content:""}.bi-bar-chart-fill:before{content:""}.bi-bar-chart-line-fill:before{content:""}.bi-bar-chart-line:before{content:""}.bi-bar-chart-steps:before{content:""}.bi-bar-chart:before{content:""}.bi-basket-fill:before{content:""}.bi-basket:before{content:""}.bi-basket2-fill:before{content:""}.bi-basket2:before{content:""}.bi-basket3-fill:before{content:""}.bi-basket3:before{content:""}.bi-battery-charging:before{content:""}.bi-battery-full:before{content:""}.bi-battery-half:before{content:""}.bi-battery:before{content:""}.bi-bell-fill:before{content:""}.bi-bell:before{content:""}.bi-bezier:before{content:""}.bi-bezier2:before{content:""}.bi-bicycle:before{content:""}.bi-binoculars-fill:before{content:""}.bi-binoculars:before{content:""}.bi-blockquote-left:before{content:""}.bi-blockquote-right:before{content:""}.bi-book-fill:before{content:""}.bi-book-half:before{content:""}.bi-book:before{content:""}.bi-bookmark-check-fill:before{content:""}.bi-bookmark-check:before{content:""}.bi-bookmark-dash-fill:before{content:""}.bi-bookmark-dash:before{content:""}.bi-bookmark-fill:before{content:""}.bi-bookmark-heart-fill:before{content:""}.bi-bookmark-heart:before{content:""}.bi-bookmark-plus-fill:before{content:""}.bi-bookmark-plus:before{content:""}.bi-bookmark-star-fill:before{content:""}.bi-bookmark-star:before{content:""}.bi-bookmark-x-fill:before{content:""}.bi-bookmark-x:before{content:""}.bi-bookmark:before{content:""}.bi-bookmarks-fill:before{content:""}.bi-bookmarks:before{content:""}.bi-bookshelf:before{content:""}.bi-bootstrap-fill:before{content:""}.bi-bootstrap-reboot:before{content:""}.bi-bootstrap:before{content:""}.bi-border-all:before{content:""}.bi-border-bottom:before{content:""}.bi-border-center:before{content:""}.bi-border-inner:before{content:""}.bi-border-left:before{content:""}.bi-border-middle:before{content:""}.bi-border-outer:before{content:""}.bi-border-right:before{content:""}.bi-border-style:before{content:""}.bi-border-top:before{content:""}.bi-border-width:before{content:""}.bi-border:before{content:""}.bi-bounding-box-circles:before{content:""}.bi-bounding-box:before{content:""}.bi-box-arrow-down-left:before{content:""}.bi-box-arrow-down-right:before{content:""}.bi-box-arrow-down:before{content:""}.bi-box-arrow-in-down-left:before{content:""}.bi-box-arrow-in-down-right:before{content:""}.bi-box-arrow-in-down:before{content:""}.bi-box-arrow-in-left:before{content:""}.bi-box-arrow-in-right:before{content:""}.bi-box-arrow-in-up-left:before{content:""}.bi-box-arrow-in-up-right:before{content:""}.bi-box-arrow-in-up:before{content:""}.bi-box-arrow-left:before{content:""}.bi-box-arrow-right:before{content:""}.bi-box-arrow-up-left:before{content:""}.bi-box-arrow-up-right:before{content:""}.bi-box-arrow-up:before{content:""}.bi-box-seam:before{content:""}.bi-box:before{content:""}.bi-braces:before{content:""}.bi-bricks:before{content:""}.bi-briefcase-fill:before{content:""}.bi-briefcase:before{content:""}.bi-brightness-alt-high-fill:before{content:""}.bi-brightness-alt-high:before{content:""}.bi-brightness-alt-low-fill:before{content:""}.bi-brightness-alt-low:before{content:""}.bi-brightness-high-fill:before{content:""}.bi-brightness-high:before{content:""}.bi-brightness-low-fill:before{content:""}.bi-brightness-low:before{content:""}.bi-broadcast-pin:before{content:""}.bi-broadcast:before{content:""}.bi-brush-fill:before{content:""}.bi-brush:before{content:""}.bi-bucket-fill:before{content:""}.bi-bucket:before{content:""}.bi-bug-fill:before{content:""}.bi-bug:before{content:""}.bi-building:before{content:""}.bi-bullseye:before{content:""}.bi-calculator-fill:before{content:""}.bi-calculator:before{content:""}.bi-calendar-check-fill:before{content:""}.bi-calendar-check:before{content:""}.bi-calendar-date-fill:before{content:""}.bi-calendar-date:before{content:""}.bi-calendar-day-fill:before{content:""}.bi-calendar-day:before{content:""}.bi-calendar-event-fill:before{content:""}.bi-calendar-event:before{content:""}.bi-calendar-fill:before{content:""}.bi-calendar-minus-fill:before{content:""}.bi-calendar-minus:before{content:""}.bi-calendar-month-fill:before{content:""}.bi-calendar-month:before{content:""}.bi-calendar-plus-fill:before{content:""}.bi-calendar-plus:before{content:""}.bi-calendar-range-fill:before{content:""}.bi-calendar-range:before{content:""}.bi-calendar-week-fill:before{content:""}.bi-calendar-week:before{content:""}.bi-calendar-x-fill:before{content:""}.bi-calendar-x:before{content:""}.bi-calendar:before{content:""}.bi-calendar2-check-fill:before{content:""}.bi-calendar2-check:before{content:""}.bi-calendar2-date-fill:before{content:""}.bi-calendar2-date:before{content:""}.bi-calendar2-day-fill:before{content:""}.bi-calendar2-day:before{content:""}.bi-calendar2-event-fill:before{content:""}.bi-calendar2-event:before{content:""}.bi-calendar2-fill:before{content:""}.bi-calendar2-minus-fill:before{content:""}.bi-calendar2-minus:before{content:""}.bi-calendar2-month-fill:before{content:""}.bi-calendar2-month:before{content:""}.bi-calendar2-plus-fill:before{content:""}.bi-calendar2-plus:before{content:""}.bi-calendar2-range-fill:before{content:""}.bi-calendar2-range:before{content:""}.bi-calendar2-week-fill:before{content:""}.bi-calendar2-week:before{content:""}.bi-calendar2-x-fill:before{content:""}.bi-calendar2-x:before{content:""}.bi-calendar2:before{content:""}.bi-calendar3-event-fill:before{content:""}.bi-calendar3-event:before{content:""}.bi-calendar3-fill:before{content:""}.bi-calendar3-range-fill:before{content:""}.bi-calendar3-range:before{content:""}.bi-calendar3-week-fill:before{content:""}.bi-calendar3-week:before{content:""}.bi-calendar3:before{content:""}.bi-calendar4-event:before{content:""}.bi-calendar4-range:before{content:""}.bi-calendar4-week:before{content:""}.bi-calendar4:before{content:""}.bi-camera-fill:before{content:""}.bi-camera-reels-fill:before{content:""}.bi-camera-reels:before{content:""}.bi-camera-video-fill:before{content:""}.bi-camera-video-off-fill:before{content:""}.bi-camera-video-off:before{content:""}.bi-camera-video:before{content:""}.bi-camera:before{content:""}.bi-camera2:before{content:""}.bi-capslock-fill:before{content:""}.bi-capslock:before{content:""}.bi-card-checklist:before{content:""}.bi-card-heading:before{content:""}.bi-card-image:before{content:""}.bi-card-list:before{content:""}.bi-card-text:before{content:""}.bi-caret-down-fill:before{content:""}.bi-caret-down-square-fill:before{content:""}.bi-caret-down-square:before{content:""}.bi-caret-down:before{content:""}.bi-caret-left-fill:before{content:""}.bi-caret-left-square-fill:before{content:""}.bi-caret-left-square:before{content:""}.bi-caret-left:before{content:""}.bi-caret-right-fill:before{content:""}.bi-caret-right-square-fill:before{content:""}.bi-caret-right-square:before{content:""}.bi-caret-right:before{content:""}.bi-caret-up-fill:before{content:""}.bi-caret-up-square-fill:before{content:""}.bi-caret-up-square:before{content:""}.bi-caret-up:before{content:""}.bi-cart-check-fill:before{content:""}.bi-cart-check:before{content:""}.bi-cart-dash-fill:before{content:""}.bi-cart-dash:before{content:""}.bi-cart-fill:before{content:""}.bi-cart-plus-fill:before{content:""}.bi-cart-plus:before{content:""}.bi-cart-x-fill:before{content:""}.bi-cart-x:before{content:""}.bi-cart:before{content:""}.bi-cart2:before{content:""}.bi-cart3:before{content:""}.bi-cart4:before{content:""}.bi-cash-stack:before{content:""}.bi-cash:before{content:""}.bi-cast:before{content:""}.bi-chat-dots-fill:before{content:""}.bi-chat-dots:before{content:""}.bi-chat-fill:before{content:""}.bi-chat-left-dots-fill:before{content:""}.bi-chat-left-dots:before{content:""}.bi-chat-left-fill:before{content:""}.bi-chat-left-quote-fill:before{content:""}.bi-chat-left-quote:before{content:""}.bi-chat-left-text-fill:before{content:""}.bi-chat-left-text:before{content:""}.bi-chat-left:before{content:""}.bi-chat-quote-fill:before{content:""}.bi-chat-quote:before{content:""}.bi-chat-right-dots-fill:before{content:""}.bi-chat-right-dots:before{content:""}.bi-chat-right-fill:before{content:""}.bi-chat-right-quote-fill:before{content:""}.bi-chat-right-quote:before{content:""}.bi-chat-right-text-fill:before{content:""}.bi-chat-right-text:before{content:""}.bi-chat-right:before{content:""}.bi-chat-square-dots-fill:before{content:""}.bi-chat-square-dots:before{content:""}.bi-chat-square-fill:before{content:""}.bi-chat-square-quote-fill:before{content:""}.bi-chat-square-quote:before{content:""}.bi-chat-square-text-fill:before{content:""}.bi-chat-square-text:before{content:""}.bi-chat-square:before{content:""}.bi-chat-text-fill:before{content:""}.bi-chat-text:before{content:""}.bi-chat:before{content:""}.bi-check-all:before{content:""}.bi-check-circle-fill:before{content:""}.bi-check-circle:before{content:""}.bi-check-square-fill:before{content:""}.bi-check-square:before{content:""}.bi-check:before{content:""}.bi-check2-all:before{content:""}.bi-check2-circle:before{content:""}.bi-check2-square:before{content:""}.bi-check2:before{content:""}.bi-chevron-bar-contract:before{content:""}.bi-chevron-bar-down:before{content:""}.bi-chevron-bar-expand:before{content:""}.bi-chevron-bar-left:before{content:""}.bi-chevron-bar-right:before{content:""}.bi-chevron-bar-up:before{content:""}.bi-chevron-compact-down:before{content:""}.bi-chevron-compact-left:before{content:""}.bi-chevron-compact-right:before{content:""}.bi-chevron-compact-up:before{content:""}.bi-chevron-contract:before{content:""}.bi-chevron-double-down:before{content:""}.bi-chevron-double-left:before{content:""}.bi-chevron-double-right:before{content:""}.bi-chevron-double-up:before{content:""}.bi-chevron-down:before{content:""}.bi-chevron-expand:before{content:""}.bi-chevron-left:before{content:""}.bi-chevron-right:before{content:""}.bi-chevron-up:before{content:""}.bi-circle-fill:before{content:""}.bi-circle-half:before{content:""}.bi-circle-square:before{content:""}.bi-circle:before{content:""}.bi-clipboard-check:before{content:""}.bi-clipboard-data:before{content:""}.bi-clipboard-minus:before{content:""}.bi-clipboard-plus:before{content:""}.bi-clipboard-x:before{content:""}.bi-clipboard:before{content:""}.bi-clock-fill:before{content:""}.bi-clock-history:before{content:""}.bi-clock:before{content:""}.bi-cloud-arrow-down-fill:before{content:""}.bi-cloud-arrow-down:before{content:""}.bi-cloud-arrow-up-fill:before{content:""}.bi-cloud-arrow-up:before{content:""}.bi-cloud-check-fill:before{content:""}.bi-cloud-check:before{content:""}.bi-cloud-download-fill:before{content:""}.bi-cloud-download:before{content:""}.bi-cloud-drizzle-fill:before{content:""}.bi-cloud-drizzle:before{content:""}.bi-cloud-fill:before{content:""}.bi-cloud-fog-fill:before{content:""}.bi-cloud-fog:before{content:""}.bi-cloud-fog2-fill:before{content:""}.bi-cloud-fog2:before{content:""}.bi-cloud-hail-fill:before{content:""}.bi-cloud-hail:before{content:""}.bi-cloud-haze-fill:before{content:""}.bi-cloud-haze:before{content:""}.bi-cloud-haze2-fill:before{content:""}.bi-cloud-lightning-fill:before{content:""}.bi-cloud-lightning-rain-fill:before{content:""}.bi-cloud-lightning-rain:before{content:""}.bi-cloud-lightning:before{content:""}.bi-cloud-minus-fill:before{content:""}.bi-cloud-minus:before{content:""}.bi-cloud-moon-fill:before{content:""}.bi-cloud-moon:before{content:""}.bi-cloud-plus-fill:before{content:""}.bi-cloud-plus:before{content:""}.bi-cloud-rain-fill:before{content:""}.bi-cloud-rain-heavy-fill:before{content:""}.bi-cloud-rain-heavy:before{content:""}.bi-cloud-rain:before{content:""}.bi-cloud-slash-fill:before{content:""}.bi-cloud-slash:before{content:""}.bi-cloud-sleet-fill:before{content:""}.bi-cloud-sleet:before{content:""}.bi-cloud-snow-fill:before{content:""}.bi-cloud-snow:before{content:""}.bi-cloud-sun-fill:before{content:""}.bi-cloud-sun:before{content:""}.bi-cloud-upload-fill:before{content:""}.bi-cloud-upload:before{content:""}.bi-cloud:before{content:""}.bi-clouds-fill:before{content:""}.bi-clouds:before{content:""}.bi-cloudy-fill:before{content:""}.bi-cloudy:before{content:""}.bi-code-slash:before{content:""}.bi-code-square:before{content:""}.bi-code:before{content:""}.bi-collection-fill:before{content:""}.bi-collection-play-fill:before{content:""}.bi-collection-play:before{content:""}.bi-collection:before{content:""}.bi-columns-gap:before{content:""}.bi-columns:before{content:""}.bi-command:before{content:""}.bi-compass-fill:before{content:""}.bi-compass:before{content:""}.bi-cone-striped:before{content:""}.bi-cone:before{content:""}.bi-controller:before{content:""}.bi-cpu-fill:before{content:""}.bi-cpu:before{content:""}.bi-credit-card-2-back-fill:before{content:""}.bi-credit-card-2-back:before{content:""}.bi-credit-card-2-front-fill:before{content:""}.bi-credit-card-2-front:before{content:""}.bi-credit-card-fill:before{content:""}.bi-credit-card:before{content:""}.bi-crop:before{content:""}.bi-cup-fill:before{content:""}.bi-cup-straw:before{content:""}.bi-cup:before{content:""}.bi-cursor-fill:before{content:""}.bi-cursor-text:before{content:""}.bi-cursor:before{content:""}.bi-dash-circle-dotted:before{content:""}.bi-dash-circle-fill:before{content:""}.bi-dash-circle:before{content:""}.bi-dash-square-dotted:before{content:""}.bi-dash-square-fill:before{content:""}.bi-dash-square:before{content:""}.bi-dash:before{content:""}.bi-diagram-2-fill:before{content:""}.bi-diagram-2:before{content:""}.bi-diagram-3-fill:before{content:""}.bi-diagram-3:before{content:""}.bi-diamond-fill:before{content:""}.bi-diamond-half:before{content:""}.bi-diamond:before{content:""}.bi-dice-1-fill:before{content:""}.bi-dice-1:before{content:""}.bi-dice-2-fill:before{content:""}.bi-dice-2:before{content:""}.bi-dice-3-fill:before{content:""}.bi-dice-3:before{content:""}.bi-dice-4-fill:before{content:""}.bi-dice-4:before{content:""}.bi-dice-5-fill:before{content:""}.bi-dice-5:before{content:""}.bi-dice-6-fill:before{content:""}.bi-dice-6:before{content:""}.bi-disc-fill:before{content:""}.bi-disc:before{content:""}.bi-discord:before{content:""}.bi-display-fill:before{content:""}.bi-display:before{content:""}.bi-distribute-horizontal:before{content:""}.bi-distribute-vertical:before{content:""}.bi-door-closed-fill:before{content:""}.bi-door-closed:before{content:""}.bi-door-open-fill:before{content:""}.bi-door-open:before{content:""}.bi-dot:before{content:""}.bi-download:before{content:""}.bi-droplet-fill:before{content:""}.bi-droplet-half:before{content:""}.bi-droplet:before{content:""}.bi-earbuds:before{content:""}.bi-easel-fill:before{content:""}.bi-easel:before{content:""}.bi-egg-fill:before{content:""}.bi-egg-fried:before{content:""}.bi-egg:before{content:""}.bi-eject-fill:before{content:""}.bi-eject:before{content:""}.bi-emoji-angry-fill:before{content:""}.bi-emoji-angry:before{content:""}.bi-emoji-dizzy-fill:before{content:""}.bi-emoji-dizzy:before{content:""}.bi-emoji-expressionless-fill:before{content:""}.bi-emoji-expressionless:before{content:""}.bi-emoji-frown-fill:before{content:""}.bi-emoji-frown:before{content:""}.bi-emoji-heart-eyes-fill:before{content:""}.bi-emoji-heart-eyes:before{content:""}.bi-emoji-laughing-fill:before{content:""}.bi-emoji-laughing:before{content:""}.bi-emoji-neutral-fill:before{content:""}.bi-emoji-neutral:before{content:""}.bi-emoji-smile-fill:before{content:""}.bi-emoji-smile-upside-down-fill:before{content:""}.bi-emoji-smile-upside-down:before{content:""}.bi-emoji-smile:before{content:""}.bi-emoji-sunglasses-fill:before{content:""}.bi-emoji-sunglasses:before{content:""}.bi-emoji-wink-fill:before{content:""}.bi-emoji-wink:before{content:""}.bi-envelope-fill:before{content:""}.bi-envelope-open-fill:before{content:""}.bi-envelope-open:before{content:""}.bi-envelope:before{content:""}.bi-eraser-fill:before{content:""}.bi-eraser:before{content:""}.bi-exclamation-circle-fill:before{content:""}.bi-exclamation-circle:before{content:""}.bi-exclamation-diamond-fill:before{content:""}.bi-exclamation-diamond:before{content:""}.bi-exclamation-octagon-fill:before{content:""}.bi-exclamation-octagon:before{content:""}.bi-exclamation-square-fill:before{content:""}.bi-exclamation-square:before{content:""}.bi-exclamation-triangle-fill:before{content:""}.bi-exclamation-triangle:before{content:""}.bi-exclamation:before{content:""}.bi-exclude:before{content:""}.bi-eye-fill:before{content:""}.bi-eye-slash-fill:before{content:""}.bi-eye-slash:before{content:""}.bi-eye:before{content:""}.bi-eyedropper:before{content:""}.bi-eyeglasses:before{content:""}.bi-facebook:before{content:""}.bi-file-arrow-down-fill:before{content:""}.bi-file-arrow-down:before{content:""}.bi-file-arrow-up-fill:before{content:""}.bi-file-arrow-up:before{content:""}.bi-file-bar-graph-fill:before{content:""}.bi-file-bar-graph:before{content:""}.bi-file-binary-fill:before{content:""}.bi-file-binary:before{content:""}.bi-file-break-fill:before{content:""}.bi-file-break:before{content:""}.bi-file-check-fill:before{content:""}.bi-file-check:before{content:""}.bi-file-code-fill:before{content:""}.bi-file-code:before{content:""}.bi-file-diff-fill:before{content:""}.bi-file-diff:before{content:""}.bi-file-earmark-arrow-down-fill:before{content:""}.bi-file-earmark-arrow-down:before{content:""}.bi-file-earmark-arrow-up-fill:before{content:""}.bi-file-earmark-arrow-up:before{content:""}.bi-file-earmark-bar-graph-fill:before{content:""}.bi-file-earmark-bar-graph:before{content:""}.bi-file-earmark-binary-fill:before{content:""}.bi-file-earmark-binary:before{content:""}.bi-file-earmark-break-fill:before{content:""}.bi-file-earmark-break:before{content:""}.bi-file-earmark-check-fill:before{content:""}.bi-file-earmark-check:before{content:""}.bi-file-earmark-code-fill:before{content:""}.bi-file-earmark-code:before{content:""}.bi-file-earmark-diff-fill:before{content:""}.bi-file-earmark-diff:before{content:""}.bi-file-earmark-easel-fill:before{content:""}.bi-file-earmark-easel:before{content:""}.bi-file-earmark-excel-fill:before{content:""}.bi-file-earmark-excel:before{content:""}.bi-file-earmark-fill:before{content:""}.bi-file-earmark-font-fill:before{content:""}.bi-file-earmark-font:before{content:""}.bi-file-earmark-image-fill:before{content:""}.bi-file-earmark-image:before{content:""}.bi-file-earmark-lock-fill:before{content:""}.bi-file-earmark-lock:before{content:""}.bi-file-earmark-lock2-fill:before{content:""}.bi-file-earmark-lock2:before{content:""}.bi-file-earmark-medical-fill:before{content:""}.bi-file-earmark-medical:before{content:""}.bi-file-earmark-minus-fill:before{content:""}.bi-file-earmark-minus:before{content:""}.bi-file-earmark-music-fill:before{content:""}.bi-file-earmark-music:before{content:""}.bi-file-earmark-person-fill:before{content:""}.bi-file-earmark-person:before{content:""}.bi-file-earmark-play-fill:before{content:""}.bi-file-earmark-play:before{content:""}.bi-file-earmark-plus-fill:before{content:""}.bi-file-earmark-plus:before{content:""}.bi-file-earmark-post-fill:before{content:""}.bi-file-earmark-post:before{content:""}.bi-file-earmark-ppt-fill:before{content:""}.bi-file-earmark-ppt:before{content:""}.bi-file-earmark-richtext-fill:before{content:""}.bi-file-earmark-richtext:before{content:""}.bi-file-earmark-ruled-fill:before{content:""}.bi-file-earmark-ruled:before{content:""}.bi-file-earmark-slides-fill:before{content:""}.bi-file-earmark-slides:before{content:""}.bi-file-earmark-spreadsheet-fill:before{content:""}.bi-file-earmark-spreadsheet:before{content:""}.bi-file-earmark-text-fill:before{content:""}.bi-file-earmark-text:before{content:""}.bi-file-earmark-word-fill:before{content:""}.bi-file-earmark-word:before{content:""}.bi-file-earmark-x-fill:before{content:""}.bi-file-earmark-x:before{content:""}.bi-file-earmark-zip-fill:before{content:""}.bi-file-earmark-zip:before{content:""}.bi-file-earmark:before{content:""}.bi-file-easel-fill:before{content:""}.bi-file-easel:before{content:""}.bi-file-excel-fill:before{content:""}.bi-file-excel:before{content:""}.bi-file-fill:before{content:""}.bi-file-font-fill:before{content:""}.bi-file-font:before{content:""}.bi-file-image-fill:before{content:""}.bi-file-image:before{content:""}.bi-file-lock-fill:before{content:""}.bi-file-lock:before{content:""}.bi-file-lock2-fill:before{content:""}.bi-file-lock2:before{content:""}.bi-file-medical-fill:before{content:""}.bi-file-medical:before{content:""}.bi-file-minus-fill:before{content:""}.bi-file-minus:before{content:""}.bi-file-music-fill:before{content:""}.bi-file-music:before{content:""}.bi-file-person-fill:before{content:""}.bi-file-person:before{content:""}.bi-file-play-fill:before{content:""}.bi-file-play:before{content:""}.bi-file-plus-fill:before{content:""}.bi-file-plus:before{content:""}.bi-file-post-fill:before{content:""}.bi-file-post:before{content:""}.bi-file-ppt-fill:before{content:""}.bi-file-ppt:before{content:""}.bi-file-richtext-fill:before{content:""}.bi-file-richtext:before{content:""}.bi-file-ruled-fill:before{content:""}.bi-file-ruled:before{content:""}.bi-file-slides-fill:before{content:""}.bi-file-slides:before{content:""}.bi-file-spreadsheet-fill:before{content:""}.bi-file-spreadsheet:before{content:""}.bi-file-text-fill:before{content:""}.bi-file-text:before{content:""}.bi-file-word-fill:before{content:""}.bi-file-word:before{content:""}.bi-file-x-fill:before{content:""}.bi-file-x:before{content:""}.bi-file-zip-fill:before{content:""}.bi-file-zip:before{content:""}.bi-file:before{content:""}.bi-files-alt:before{content:""}.bi-files:before{content:""}.bi-film:before{content:""}.bi-filter-circle-fill:before{content:""}.bi-filter-circle:before{content:""}.bi-filter-left:before{content:""}.bi-filter-right:before{content:""}.bi-filter-square-fill:before{content:""}.bi-filter-square:before{content:""}.bi-filter:before{content:""}.bi-flag-fill:before{content:""}.bi-flag:before{content:""}.bi-flower1:before{content:""}.bi-flower2:before{content:""}.bi-flower3:before{content:""}.bi-folder-check:before{content:""}.bi-folder-fill:before{content:""}.bi-folder-minus:before{content:""}.bi-folder-plus:before{content:""}.bi-folder-symlink-fill:before{content:""}.bi-folder-symlink:before{content:""}.bi-folder-x:before{content:""}.bi-folder:before{content:""}.bi-folder2-open:before{content:""}.bi-folder2:before{content:""}.bi-fonts:before{content:""}.bi-forward-fill:before{content:""}.bi-forward:before{content:""}.bi-front:before{content:""}.bi-fullscreen-exit:before{content:""}.bi-fullscreen:before{content:""}.bi-funnel-fill:before{content:""}.bi-funnel:before{content:""}.bi-gear-fill:before{content:""}.bi-gear-wide-connected:before{content:""}.bi-gear-wide:before{content:""}.bi-gear:before{content:""}.bi-gem:before{content:""}.bi-geo-alt-fill:before{content:""}.bi-geo-alt:before{content:""}.bi-geo-fill:before{content:""}.bi-geo:before{content:""}.bi-gift-fill:before{content:""}.bi-gift:before{content:""}.bi-github:before{content:""}.bi-globe:before{content:""}.bi-globe2:before{content:""}.bi-google:before{content:""}.bi-graph-down:before{content:""}.bi-graph-up:before{content:""}.bi-grid-1x2-fill:before{content:""}.bi-grid-1x2:before{content:""}.bi-grid-3x2-gap-fill:before{content:""}.bi-grid-3x2-gap:before{content:""}.bi-grid-3x2:before{content:""}.bi-grid-3x3-gap-fill:before{content:""}.bi-grid-3x3-gap:before{content:""}.bi-grid-3x3:before{content:""}.bi-grid-fill:before{content:""}.bi-grid:before{content:""}.bi-grip-horizontal:before{content:""}.bi-grip-vertical:before{content:""}.bi-hammer:before{content:""}.bi-hand-index-fill:before{content:""}.bi-hand-index-thumb-fill:before{content:""}.bi-hand-index-thumb:before{content:""}.bi-hand-index:before{content:""}.bi-hand-thumbs-down-fill:before{content:""}.bi-hand-thumbs-down:before{content:""}.bi-hand-thumbs-up-fill:before{content:""}.bi-hand-thumbs-up:before{content:""}.bi-handbag-fill:before{content:""}.bi-handbag:before{content:""}.bi-hash:before{content:""}.bi-hdd-fill:before{content:""}.bi-hdd-network-fill:before{content:""}.bi-hdd-network:before{content:""}.bi-hdd-rack-fill:before{content:""}.bi-hdd-rack:before{content:""}.bi-hdd-stack-fill:before{content:""}.bi-hdd-stack:before{content:""}.bi-hdd:before{content:""}.bi-headphones:before{content:""}.bi-headset:before{content:""}.bi-heart-fill:before{content:""}.bi-heart-half:before{content:""}.bi-heart:before{content:""}.bi-heptagon-fill:before{content:""}.bi-heptagon-half:before{content:""}.bi-heptagon:before{content:""}.bi-hexagon-fill:before{content:""}.bi-hexagon-half:before{content:""}.bi-hexagon:before{content:""}.bi-hourglass-bottom:before{content:""}.bi-hourglass-split:before{content:""}.bi-hourglass-top:before{content:""}.bi-hourglass:before{content:""}.bi-house-door-fill:before{content:""}.bi-house-door:before{content:""}.bi-house-fill:before{content:""}.bi-house:before{content:""}.bi-hr:before{content:""}.bi-hurricane:before{content:""}.bi-image-alt:before{content:""}.bi-image-fill:before{content:""}.bi-image:before{content:""}.bi-images:before{content:""}.bi-inbox-fill:before{content:""}.bi-inbox:before{content:""}.bi-inboxes-fill:before{content:""}.bi-inboxes:before{content:""}.bi-info-circle-fill:before{content:""}.bi-info-circle:before{content:""}.bi-info-square-fill:before{content:""}.bi-info-square:before{content:""}.bi-info:before{content:""}.bi-input-cursor-text:before{content:""}.bi-input-cursor:before{content:""}.bi-instagram:before{content:""}.bi-intersect:before{content:""}.bi-journal-album:before{content:""}.bi-journal-arrow-down:before{content:""}.bi-journal-arrow-up:before{content:""}.bi-journal-bookmark-fill:before{content:""}.bi-journal-bookmark:before{content:""}.bi-journal-check:before{content:""}.bi-journal-code:before{content:""}.bi-journal-medical:before{content:""}.bi-journal-minus:before{content:""}.bi-journal-plus:before{content:""}.bi-journal-richtext:before{content:""}.bi-journal-text:before{content:""}.bi-journal-x:before{content:""}.bi-journal:before{content:""}.bi-journals:before{content:""}.bi-joystick:before{content:""}.bi-justify-left:before{content:""}.bi-justify-right:before{content:""}.bi-justify:before{content:""}.bi-kanban-fill:before{content:""}.bi-kanban:before{content:""}.bi-key-fill:before{content:""}.bi-key:before{content:""}.bi-keyboard-fill:before{content:""}.bi-keyboard:before{content:""}.bi-ladder:before{content:""}.bi-lamp-fill:before{content:""}.bi-lamp:before{content:""}.bi-laptop-fill:before{content:""}.bi-laptop:before{content:""}.bi-layer-backward:before{content:""}.bi-layer-forward:before{content:""}.bi-layers-fill:before{content:""}.bi-layers-half:before{content:""}.bi-layers:before{content:""}.bi-layout-sidebar-inset-reverse:before{content:""}.bi-layout-sidebar-inset:before{content:""}.bi-layout-sidebar-reverse:before{content:""}.bi-layout-sidebar:before{content:""}.bi-layout-split:before{content:""}.bi-layout-text-sidebar-reverse:before{content:""}.bi-layout-text-sidebar:before{content:""}.bi-layout-text-window-reverse:before{content:""}.bi-layout-text-window:before{content:""}.bi-layout-three-columns:before{content:""}.bi-layout-wtf:before{content:""}.bi-life-preserver:before{content:""}.bi-lightbulb-fill:before{content:""}.bi-lightbulb-off-fill:before{content:""}.bi-lightbulb-off:before{content:""}.bi-lightbulb:before{content:""}.bi-lightning-charge-fill:before{content:""}.bi-lightning-charge:before{content:""}.bi-lightning-fill:before{content:""}.bi-lightning:before{content:""}.bi-link-45deg:before{content:""}.bi-link:before{content:""}.bi-linkedin:before{content:""}.bi-list-check:before{content:""}.bi-list-nested:before{content:""}.bi-list-ol:before{content:""}.bi-list-stars:before{content:""}.bi-list-task:before{content:""}.bi-list-ul:before{content:""}.bi-list:before{content:""}.bi-lock-fill:before{content:""}.bi-lock:before{content:""}.bi-mailbox:before{content:""}.bi-mailbox2:before{content:""}.bi-map-fill:before{content:""}.bi-map:before{content:""}.bi-markdown-fill:before{content:""}.bi-markdown:before{content:""}.bi-mask:before{content:""}.bi-megaphone-fill:before{content:""}.bi-megaphone:before{content:""}.bi-menu-app-fill:before{content:""}.bi-menu-app:before{content:""}.bi-menu-button-fill:before{content:""}.bi-menu-button-wide-fill:before{content:""}.bi-menu-button-wide:before{content:""}.bi-menu-button:before{content:""}.bi-menu-down:before{content:""}.bi-menu-up:before{content:""}.bi-mic-fill:before{content:""}.bi-mic-mute-fill:before{content:""}.bi-mic-mute:before{content:""}.bi-mic:before{content:""}.bi-minecart-loaded:before{content:""}.bi-minecart:before{content:""}.bi-moisture:before{content:""}.bi-moon-fill:before{content:""}.bi-moon-stars-fill:before{content:""}.bi-moon-stars:before{content:""}.bi-moon:before{content:""}.bi-mouse-fill:before{content:""}.bi-mouse:before{content:""}.bi-mouse2-fill:before{content:""}.bi-mouse2:before{content:""}.bi-mouse3-fill:before{content:""}.bi-mouse3:before{content:""}.bi-music-note-beamed:before{content:""}.bi-music-note-list:before{content:""}.bi-music-note:before{content:""}.bi-music-player-fill:before{content:""}.bi-music-player:before{content:""}.bi-newspaper:before{content:""}.bi-node-minus-fill:before{content:""}.bi-node-minus:before{content:""}.bi-node-plus-fill:before{content:""}.bi-node-plus:before{content:""}.bi-nut-fill:before{content:""}.bi-nut:before{content:""}.bi-octagon-fill:before{content:""}.bi-octagon-half:before{content:""}.bi-octagon:before{content:""}.bi-option:before{content:""}.bi-outlet:before{content:""}.bi-paint-bucket:before{content:""}.bi-palette-fill:before{content:""}.bi-palette:before{content:""}.bi-palette2:before{content:""}.bi-paperclip:before{content:""}.bi-paragraph:before{content:""}.bi-patch-check-fill:before{content:""}.bi-patch-check:before{content:""}.bi-patch-exclamation-fill:before{content:""}.bi-patch-exclamation:before{content:""}.bi-patch-minus-fill:before{content:""}.bi-patch-minus:before{content:""}.bi-patch-plus-fill:before{content:""}.bi-patch-plus:before{content:""}.bi-patch-question-fill:before{content:""}.bi-patch-question:before{content:""}.bi-pause-btn-fill:before{content:""}.bi-pause-btn:before{content:""}.bi-pause-circle-fill:before{content:""}.bi-pause-circle:before{content:""}.bi-pause-fill:before{content:""}.bi-pause:before{content:""}.bi-peace-fill:before{content:""}.bi-peace:before{content:""}.bi-pen-fill:before{content:""}.bi-pen:before{content:""}.bi-pencil-fill:before{content:""}.bi-pencil-square:before{content:""}.bi-pencil:before{content:""}.bi-pentagon-fill:before{content:""}.bi-pentagon-half:before{content:""}.bi-pentagon:before{content:""}.bi-people-fill:before{content:""}.bi-people:before{content:""}.bi-percent:before{content:""}.bi-person-badge-fill:before{content:""}.bi-person-badge:before{content:""}.bi-person-bounding-box:before{content:""}.bi-person-check-fill:before{content:""}.bi-person-check:before{content:""}.bi-person-circle:before{content:""}.bi-person-dash-fill:before{content:""}.bi-person-dash:before{content:""}.bi-person-fill:before{content:""}.bi-person-lines-fill:before{content:""}.bi-person-plus-fill:before{content:""}.bi-person-plus:before{content:""}.bi-person-square:before{content:""}.bi-person-x-fill:before{content:""}.bi-person-x:before{content:""}.bi-person:before{content:""}.bi-phone-fill:before{content:""}.bi-phone-landscape-fill:before{content:""}.bi-phone-landscape:before{content:""}.bi-phone-vibrate-fill:before{content:""}.bi-phone-vibrate:before{content:""}.bi-phone:before{content:""}.bi-pie-chart-fill:before{content:""}.bi-pie-chart:before{content:""}.bi-pin-angle-fill:before{content:""}.bi-pin-angle:before{content:""}.bi-pin-fill:before{content:""}.bi-pin:before{content:""}.bi-pip-fill:before{content:""}.bi-pip:before{content:""}.bi-play-btn-fill:before{content:""}.bi-play-btn:before{content:""}.bi-play-circle-fill:before{content:""}.bi-play-circle:before{content:""}.bi-play-fill:before{content:""}.bi-play:before{content:""}.bi-plug-fill:before{content:""}.bi-plug:before{content:""}.bi-plus-circle-dotted:before{content:""}.bi-plus-circle-fill:before{content:""}.bi-plus-circle:before{content:""}.bi-plus-square-dotted:before{content:""}.bi-plus-square-fill:before{content:""}.bi-plus-square:before{content:""}.bi-plus:before{content:""}.bi-power:before{content:""}.bi-printer-fill:before{content:""}.bi-printer:before{content:""}.bi-puzzle-fill:before{content:""}.bi-puzzle:before{content:""}.bi-question-circle-fill:before{content:""}.bi-question-circle:before{content:""}.bi-question-diamond-fill:before{content:""}.bi-question-diamond:before{content:""}.bi-question-octagon-fill:before{content:""}.bi-question-octagon:before{content:""}.bi-question-square-fill:before{content:""}.bi-question-square:before{content:""}.bi-question:before{content:""}.bi-rainbow:before{content:""}.bi-receipt-cutoff:before{content:""}.bi-receipt:before{content:""}.bi-reception-0:before{content:""}.bi-reception-1:before{content:""}.bi-reception-2:before{content:""}.bi-reception-3:before{content:""}.bi-reception-4:before{content:""}.bi-record-btn-fill:before{content:""}.bi-record-btn:before{content:""}.bi-record-circle-fill:before{content:""}.bi-record-circle:before{content:""}.bi-record-fill:before{content:""}.bi-record:before{content:""}.bi-record2-fill:before{content:""}.bi-record2:before{content:""}.bi-reply-all-fill:before{content:""}.bi-reply-all:before{content:""}.bi-reply-fill:before{content:""}.bi-reply:before{content:""}.bi-rss-fill:before{content:""}.bi-rss:before{content:""}.bi-rulers:before{content:""}.bi-save-fill:before{content:""}.bi-save:before{content:""}.bi-save2-fill:before{content:""}.bi-save2:before{content:""}.bi-scissors:before{content:""}.bi-screwdriver:before{content:""}.bi-search:before{content:""}.bi-segmented-nav:before{content:""}.bi-server:before{content:""}.bi-share-fill:before{content:""}.bi-share:before{content:""}.bi-shield-check:before{content:""}.bi-shield-exclamation:before{content:""}.bi-shield-fill-check:before{content:""}.bi-shield-fill-exclamation:before{content:""}.bi-shield-fill-minus:before{content:""}.bi-shield-fill-plus:before{content:""}.bi-shield-fill-x:before{content:""}.bi-shield-fill:before{content:""}.bi-shield-lock-fill:before{content:""}.bi-shield-lock:before{content:""}.bi-shield-minus:before{content:""}.bi-shield-plus:before{content:""}.bi-shield-shaded:before{content:""}.bi-shield-slash-fill:before{content:""}.bi-shield-slash:before{content:""}.bi-shield-x:before{content:""}.bi-shield:before{content:""}.bi-shift-fill:before{content:""}.bi-shift:before{content:""}.bi-shop-window:before{content:""}.bi-shop:before{content:""}.bi-shuffle:before{content:""}.bi-signpost-2-fill:before{content:""}.bi-signpost-2:before{content:""}.bi-signpost-fill:before{content:""}.bi-signpost-split-fill:before{content:""}.bi-signpost-split:before{content:""}.bi-signpost:before{content:""}.bi-sim-fill:before{content:""}.bi-sim:before{content:""}.bi-skip-backward-btn-fill:before{content:""}.bi-skip-backward-btn:before{content:""}.bi-skip-backward-circle-fill:before{content:""}.bi-skip-backward-circle:before{content:""}.bi-skip-backward-fill:before{content:""}.bi-skip-backward:before{content:""}.bi-skip-end-btn-fill:before{content:""}.bi-skip-end-btn:before{content:""}.bi-skip-end-circle-fill:before{content:""}.bi-skip-end-circle:before{content:""}.bi-skip-end-fill:before{content:""}.bi-skip-end:before{content:""}.bi-skip-forward-btn-fill:before{content:""}.bi-skip-forward-btn:before{content:""}.bi-skip-forward-circle-fill:before{content:""}.bi-skip-forward-circle:before{content:""}.bi-skip-forward-fill:before{content:""}.bi-skip-forward:before{content:""}.bi-skip-start-btn-fill:before{content:""}.bi-skip-start-btn:before{content:""}.bi-skip-start-circle-fill:before{content:""}.bi-skip-start-circle:before{content:""}.bi-skip-start-fill:before{content:""}.bi-skip-start:before{content:""}.bi-slack:before{content:""}.bi-slash-circle-fill:before{content:""}.bi-slash-circle:before{content:""}.bi-slash-square-fill:before{content:""}.bi-slash-square:before{content:""}.bi-slash:before{content:""}.bi-sliders:before{content:""}.bi-smartwatch:before{content:""}.bi-snow:before{content:""}.bi-snow2:before{content:""}.bi-snow3:before{content:""}.bi-sort-alpha-down-alt:before{content:""}.bi-sort-alpha-down:before{content:""}.bi-sort-alpha-up-alt:before{content:""}.bi-sort-alpha-up:before{content:""}.bi-sort-down-alt:before{content:""}.bi-sort-down:before{content:""}.bi-sort-numeric-down-alt:before{content:""}.bi-sort-numeric-down:before{content:""}.bi-sort-numeric-up-alt:before{content:""}.bi-sort-numeric-up:before{content:""}.bi-sort-up-alt:before{content:""}.bi-sort-up:before{content:""}.bi-soundwave:before{content:""}.bi-speaker-fill:before{content:""}.bi-speaker:before{content:""}.bi-speedometer:before{content:""}.bi-speedometer2:before{content:""}.bi-spellcheck:before{content:""}.bi-square-fill:before{content:""}.bi-square-half:before{content:""}.bi-square:before{content:""}.bi-stack:before{content:""}.bi-star-fill:before{content:""}.bi-star-half:before{content:""}.bi-star:before{content:""}.bi-stars:before{content:""}.bi-stickies-fill:before{content:""}.bi-stickies:before{content:""}.bi-sticky-fill:before{content:""}.bi-sticky:before{content:""}.bi-stop-btn-fill:before{content:""}.bi-stop-btn:before{content:""}.bi-stop-circle-fill:before{content:""}.bi-stop-circle:before{content:""}.bi-stop-fill:before{content:""}.bi-stop:before{content:""}.bi-stoplights-fill:before{content:""}.bi-stoplights:before{content:""}.bi-stopwatch-fill:before{content:""}.bi-stopwatch:before{content:""}.bi-subtract:before{content:""}.bi-suit-club-fill:before{content:""}.bi-suit-club:before{content:""}.bi-suit-diamond-fill:before{content:""}.bi-suit-diamond:before{content:""}.bi-suit-heart-fill:before{content:""}.bi-suit-heart:before{content:""}.bi-suit-spade-fill:before{content:""}.bi-suit-spade:before{content:""}.bi-sun-fill:before{content:""}.bi-sun:before{content:""}.bi-sunglasses:before{content:""}.bi-sunrise-fill:before{content:""}.bi-sunrise:before{content:""}.bi-sunset-fill:before{content:""}.bi-sunset:before{content:""}.bi-symmetry-horizontal:before{content:""}.bi-symmetry-vertical:before{content:""}.bi-table:before{content:""}.bi-tablet-fill:before{content:""}.bi-tablet-landscape-fill:before{content:""}.bi-tablet-landscape:before{content:""}.bi-tablet:before{content:""}.bi-tag-fill:before{content:""}.bi-tag:before{content:""}.bi-tags-fill:before{content:""}.bi-tags:before{content:""}.bi-telegram:before{content:""}.bi-telephone-fill:before{content:""}.bi-telephone-forward-fill:before{content:""}.bi-telephone-forward:before{content:""}.bi-telephone-inbound-fill:before{content:""}.bi-telephone-inbound:before{content:""}.bi-telephone-minus-fill:before{content:""}.bi-telephone-minus:before{content:""}.bi-telephone-outbound-fill:before{content:""}.bi-telephone-outbound:before{content:""}.bi-telephone-plus-fill:before{content:""}.bi-telephone-plus:before{content:""}.bi-telephone-x-fill:before{content:""}.bi-telephone-x:before{content:""}.bi-telephone:before{content:""}.bi-terminal-fill:before{content:""}.bi-terminal:before{content:""}.bi-text-center:before{content:""}.bi-text-indent-left:before{content:""}.bi-text-indent-right:before{content:""}.bi-text-left:before{content:""}.bi-text-paragraph:before{content:""}.bi-text-right:before{content:""}.bi-textarea-resize:before{content:""}.bi-textarea-t:before{content:""}.bi-textarea:before{content:""}.bi-thermometer-half:before{content:""}.bi-thermometer-high:before{content:""}.bi-thermometer-low:before{content:""}.bi-thermometer-snow:before{content:""}.bi-thermometer-sun:before{content:""}.bi-thermometer:before{content:""}.bi-three-dots-vertical:before{content:""}.bi-three-dots:before{content:""}.bi-toggle-off:before{content:""}.bi-toggle-on:before{content:""}.bi-toggle2-off:before{content:""}.bi-toggle2-on:before{content:""}.bi-toggles:before{content:""}.bi-toggles2:before{content:""}.bi-tools:before{content:""}.bi-tornado:before{content:""}.bi-trash-fill:before{content:""}.bi-trash:before{content:""}.bi-trash2-fill:before{content:""}.bi-trash2:before{content:""}.bi-tree-fill:before{content:""}.bi-tree:before{content:""}.bi-triangle-fill:before{content:""}.bi-triangle-half:before{content:""}.bi-triangle:before{content:""}.bi-trophy-fill:before{content:""}.bi-trophy:before{content:""}.bi-tropical-storm:before{content:""}.bi-truck-flatbed:before{content:""}.bi-truck:before{content:""}.bi-tsunami:before{content:""}.bi-tv-fill:before{content:""}.bi-tv:before{content:""}.bi-twitch:before{content:""}.bi-twitter:before{content:""}.bi-type-bold:before{content:""}.bi-type-h1:before{content:""}.bi-type-h2:before{content:""}.bi-type-h3:before{content:""}.bi-type-italic:before{content:""}.bi-type-strikethrough:before{content:""}.bi-type-underline:before{content:""}.bi-type:before{content:""}.bi-ui-checks-grid:before{content:""}.bi-ui-checks:before{content:""}.bi-ui-radios-grid:before{content:""}.bi-ui-radios:before{content:""}.bi-umbrella-fill:before{content:""}.bi-umbrella:before{content:""}.bi-union:before{content:""}.bi-unlock-fill:before{content:""}.bi-unlock:before{content:""}.bi-upc-scan:before{content:""}.bi-upc:before{content:""}.bi-upload:before{content:""}.bi-vector-pen:before{content:""}.bi-view-list:before{content:""}.bi-view-stacked:before{content:""}.bi-vinyl-fill:before{content:""}.bi-vinyl:before{content:""}.bi-voicemail:before{content:""}.bi-volume-down-fill:before{content:""}.bi-volume-down:before{content:""}.bi-volume-mute-fill:before{content:""}.bi-volume-mute:before{content:""}.bi-volume-off-fill:before{content:""}.bi-volume-off:before{content:""}.bi-volume-up-fill:before{content:""}.bi-volume-up:before{content:""}.bi-vr:before{content:""}.bi-wallet-fill:before{content:""}.bi-wallet:before{content:""}.bi-wallet2:before{content:""}.bi-watch:before{content:""}.bi-water:before{content:""}.bi-whatsapp:before{content:""}.bi-wifi-1:before{content:""}.bi-wifi-2:before{content:""}.bi-wifi-off:before{content:""}.bi-wifi:before{content:""}.bi-wind:before{content:""}.bi-window-dock:before{content:""}.bi-window-sidebar:before{content:""}.bi-window:before{content:""}.bi-wrench:before{content:""}.bi-x-circle-fill:before{content:""}.bi-x-circle:before{content:""}.bi-x-diamond-fill:before{content:""}.bi-x-diamond:before{content:""}.bi-x-octagon-fill:before{content:""}.bi-x-octagon:before{content:""}.bi-x-square-fill:before{content:""}.bi-x-square:before{content:""}.bi-x:before{content:""}.bi-youtube:before{content:""}.bi-zoom-in:before{content:""}.bi-zoom-out:before{content:""}.bi-bank:before{content:""}.bi-bank2:before{content:""}.bi-bell-slash-fill:before{content:""}.bi-bell-slash:before{content:""}.bi-cash-coin:before{content:""}.bi-check-lg:before{content:""}.bi-coin:before{content:""}.bi-currency-bitcoin:before{content:""}.bi-currency-dollar:before{content:""}.bi-currency-euro:before{content:""}.bi-currency-exchange:before{content:""}.bi-currency-pound:before{content:""}.bi-currency-yen:before{content:""}.bi-dash-lg:before{content:""}.bi-exclamation-lg:before{content:""}.bi-file-earmark-pdf-fill:before{content:""}.bi-file-earmark-pdf:before{content:""}.bi-file-pdf-fill:before{content:""}.bi-file-pdf:before{content:""}.bi-gender-ambiguous:before{content:""}.bi-gender-female:before{content:""}.bi-gender-male:before{content:""}.bi-gender-trans:before{content:""}.bi-headset-vr:before{content:""}.bi-info-lg:before{content:""}.bi-mastodon:before{content:""}.bi-messenger:before{content:""}.bi-piggy-bank-fill:before{content:""}.bi-piggy-bank:before{content:""}.bi-pin-map-fill:before{content:""}.bi-pin-map:before{content:""}.bi-plus-lg:before{content:""}.bi-question-lg:before{content:""}.bi-recycle:before{content:""}.bi-reddit:before{content:""}.bi-safe-fill:before{content:""}.bi-safe2-fill:before{content:""}.bi-safe2:before{content:""}.bi-sd-card-fill:before{content:""}.bi-sd-card:before{content:""}.bi-skype:before{content:""}.bi-slash-lg:before{content:""}.bi-translate:before{content:""}.bi-x-lg:before{content:""}.bi-safe:before{content:""}.bi-apple:before{content:""}.bi-microsoft:before{content:""}.bi-windows:before{content:""}.bi-behance:before{content:""}.bi-dribbble:before{content:""}.bi-line:before{content:""}.bi-medium:before{content:""}.bi-paypal:before{content:""}.bi-pinterest:before{content:""}.bi-signal:before{content:""}.bi-snapchat:before{content:""}.bi-spotify:before{content:""}.bi-stack-overflow:before{content:""}.bi-strava:before{content:""}.bi-wordpress:before{content:""}.bi-vimeo:before{content:""}.bi-activity:before{content:""}.bi-easel2-fill:before{content:""}.bi-easel2:before{content:""}.bi-easel3-fill:before{content:""}.bi-easel3:before{content:""}.bi-fan:before{content:""}.bi-fingerprint:before{content:""}.bi-graph-down-arrow:before{content:""}.bi-graph-up-arrow:before{content:""}.bi-hypnotize:before{content:""}.bi-magic:before{content:""}.bi-person-rolodex:before{content:""}.bi-person-video:before{content:""}.bi-person-video2:before{content:""}.bi-person-video3:before{content:""}.bi-person-workspace:before{content:""}.bi-radioactive:before{content:""}.bi-webcam-fill:before{content:""}.bi-webcam:before{content:""}.bi-yin-yang:before{content:""}.bi-bandaid-fill:before{content:""}.bi-bandaid:before{content:""}.bi-bluetooth:before{content:""}.bi-body-text:before{content:""}.bi-boombox:before{content:""}.bi-boxes:before{content:""}.bi-dpad-fill:before{content:""}.bi-dpad:before{content:""}.bi-ear-fill:before{content:""}.bi-ear:before{content:""}.bi-envelope-check-fill:before{content:""}.bi-envelope-check:before{content:""}.bi-envelope-dash-fill:before{content:""}.bi-envelope-dash:before{content:""}.bi-envelope-exclamation-fill:before{content:""}.bi-envelope-exclamation:before{content:""}.bi-envelope-plus-fill:before{content:""}.bi-envelope-plus:before{content:""}.bi-envelope-slash-fill:before{content:""}.bi-envelope-slash:before{content:""}.bi-envelope-x-fill:before{content:""}.bi-envelope-x:before{content:""}.bi-explicit-fill:before{content:""}.bi-explicit:before{content:""}.bi-git:before{content:""}.bi-infinity:before{content:""}.bi-list-columns-reverse:before{content:""}.bi-list-columns:before{content:""}.bi-meta:before{content:""}.bi-nintendo-switch:before{content:""}.bi-pc-display-horizontal:before{content:""}.bi-pc-display:before{content:""}.bi-pc-horizontal:before{content:""}.bi-pc:before{content:""}.bi-playstation:before{content:""}.bi-plus-slash-minus:before{content:""}.bi-projector-fill:before{content:""}.bi-projector:before{content:""}.bi-qr-code-scan:before{content:""}.bi-qr-code:before{content:""}.bi-quora:before{content:""}.bi-quote:before{content:""}.bi-robot:before{content:""}.bi-send-check-fill:before{content:""}.bi-send-check:before{content:""}.bi-send-dash-fill:before{content:""}.bi-send-dash:before{content:""}.bi-send-exclamation-fill:before{content:""}.bi-send-exclamation:before{content:""}.bi-send-fill:before{content:""}.bi-send-plus-fill:before{content:""}.bi-send-plus:before{content:""}.bi-send-slash-fill:before{content:""}.bi-send-slash:before{content:""}.bi-send-x-fill:before{content:""}.bi-send-x:before{content:""}.bi-send:before{content:""}.bi-steam:before{content:""}.bi-terminal-dash:before{content:""}.bi-terminal-plus:before{content:""}.bi-terminal-split:before{content:""}.bi-ticket-detailed-fill:before{content:""}.bi-ticket-detailed:before{content:""}.bi-ticket-fill:before{content:""}.bi-ticket-perforated-fill:before{content:""}.bi-ticket-perforated:before{content:""}.bi-ticket:before{content:""}.bi-tiktok:before{content:""}.bi-window-dash:before{content:""}.bi-window-desktop:before{content:""}.bi-window-fullscreen:before{content:""}.bi-window-plus:before{content:""}.bi-window-split:before{content:""}.bi-window-stack:before{content:""}.bi-window-x:before{content:""}.bi-xbox:before{content:""}.bi-ethernet:before{content:""}.bi-hdmi-fill:before{content:""}.bi-hdmi:before{content:""}.bi-usb-c-fill:before{content:""}.bi-usb-c:before{content:""}.bi-usb-fill:before{content:""}.bi-usb-plug-fill:before{content:""}.bi-usb-plug:before{content:""}.bi-usb-symbol:before{content:""}.bi-usb:before{content:""}.bi-boombox-fill:before{content:""}.bi-displayport:before{content:""}.bi-gpu-card:before{content:""}.bi-memory:before{content:""}.bi-modem-fill:before{content:""}.bi-modem:before{content:""}.bi-motherboard-fill:before{content:""}.bi-motherboard:before{content:""}.bi-optical-audio-fill:before{content:""}.bi-optical-audio:before{content:""}.bi-pci-card:before{content:""}.bi-router-fill:before{content:""}.bi-router:before{content:""}.bi-thunderbolt-fill:before{content:""}.bi-thunderbolt:before{content:""}.bi-usb-drive-fill:before{content:""}.bi-usb-drive:before{content:""}.bi-usb-micro-fill:before{content:""}.bi-usb-micro:before{content:""}.bi-usb-mini-fill:before{content:""}.bi-usb-mini:before{content:""}.bi-cloud-haze2:before{content:""}.bi-device-hdd-fill:before{content:""}.bi-device-hdd:before{content:""}.bi-device-ssd-fill:before{content:""}.bi-device-ssd:before{content:""}.bi-displayport-fill:before{content:""}.bi-mortarboard-fill:before{content:""}.bi-mortarboard:before{content:""}.bi-terminal-x:before{content:""}.bi-arrow-through-heart-fill:before{content:""}.bi-arrow-through-heart:before{content:""}.bi-badge-sd-fill:before{content:""}.bi-badge-sd:before{content:""}.bi-bag-heart-fill:before{content:""}.bi-bag-heart:before{content:""}.bi-balloon-fill:before{content:""}.bi-balloon-heart-fill:before{content:""}.bi-balloon-heart:before{content:""}.bi-balloon:before{content:""}.bi-box2-fill:before{content:""}.bi-box2-heart-fill:before{content:""}.bi-box2-heart:before{content:""}.bi-box2:before{content:""}.bi-braces-asterisk:before{content:""}.bi-calendar-heart-fill:before{content:""}.bi-calendar-heart:before{content:""}.bi-calendar2-heart-fill:before{content:""}.bi-calendar2-heart:before{content:""}.bi-chat-heart-fill:before{content:""}.bi-chat-heart:before{content:""}.bi-chat-left-heart-fill:before{content:""}.bi-chat-left-heart:before{content:""}.bi-chat-right-heart-fill:before{content:""}.bi-chat-right-heart:before{content:""}.bi-chat-square-heart-fill:before{content:""}.bi-chat-square-heart:before{content:""}.bi-clipboard-check-fill:before{content:""}.bi-clipboard-data-fill:before{content:""}.bi-clipboard-fill:before{content:""}.bi-clipboard-heart-fill:before{content:""}.bi-clipboard-heart:before{content:""}.bi-clipboard-minus-fill:before{content:""}.bi-clipboard-plus-fill:before{content:""}.bi-clipboard-pulse:before{content:""}.bi-clipboard-x-fill:before{content:""}.bi-clipboard2-check-fill:before{content:""}.bi-clipboard2-check:before{content:""}.bi-clipboard2-data-fill:before{content:""}.bi-clipboard2-data:before{content:""}.bi-clipboard2-fill:before{content:""}.bi-clipboard2-heart-fill:before{content:""}.bi-clipboard2-heart:before{content:""}.bi-clipboard2-minus-fill:before{content:""}.bi-clipboard2-minus:before{content:""}.bi-clipboard2-plus-fill:before{content:""}.bi-clipboard2-plus:before{content:""}.bi-clipboard2-pulse-fill:before{content:""}.bi-clipboard2-pulse:before{content:""}.bi-clipboard2-x-fill:before{content:""}.bi-clipboard2-x:before{content:""}.bi-clipboard2:before{content:""}.bi-emoji-kiss-fill:before{content:""}.bi-emoji-kiss:before{content:""}.bi-envelope-heart-fill:before{content:""}.bi-envelope-heart:before{content:""}.bi-envelope-open-heart-fill:before{content:""}.bi-envelope-open-heart:before{content:""}.bi-envelope-paper-fill:before{content:""}.bi-envelope-paper-heart-fill:before{content:""}.bi-envelope-paper-heart:before{content:""}.bi-envelope-paper:before{content:""}.bi-filetype-aac:before{content:""}.bi-filetype-ai:before{content:""}.bi-filetype-bmp:before{content:""}.bi-filetype-cs:before{content:""}.bi-filetype-css:before{content:""}.bi-filetype-csv:before{content:""}.bi-filetype-doc:before{content:""}.bi-filetype-docx:before{content:""}.bi-filetype-exe:before{content:""}.bi-filetype-gif:before{content:""}.bi-filetype-heic:before{content:""}.bi-filetype-html:before{content:""}.bi-filetype-java:before{content:""}.bi-filetype-jpg:before{content:""}.bi-filetype-js:before{content:""}.bi-filetype-jsx:before{content:""}.bi-filetype-key:before{content:""}.bi-filetype-m4p:before{content:""}.bi-filetype-md:before{content:""}.bi-filetype-mdx:before{content:""}.bi-filetype-mov:before{content:""}.bi-filetype-mp3:before{content:""}.bi-filetype-mp4:before{content:""}.bi-filetype-otf:before{content:""}.bi-filetype-pdf:before{content:""}.bi-filetype-php:before{content:""}.bi-filetype-png:before{content:""}.bi-filetype-ppt:before{content:""}.bi-filetype-psd:before{content:""}.bi-filetype-py:before{content:""}.bi-filetype-raw:before{content:""}.bi-filetype-rb:before{content:""}.bi-filetype-sass:before{content:""}.bi-filetype-scss:before{content:""}.bi-filetype-sh:before{content:""}.bi-filetype-svg:before{content:""}.bi-filetype-tiff:before{content:""}.bi-filetype-tsx:before{content:""}.bi-filetype-ttf:before{content:""}.bi-filetype-txt:before{content:""}.bi-filetype-wav:before{content:""}.bi-filetype-woff:before{content:""}.bi-filetype-xls:before{content:""}.bi-filetype-xml:before{content:""}.bi-filetype-yml:before{content:""}.bi-heart-arrow:before{content:""}.bi-heart-pulse-fill:before{content:""}.bi-heart-pulse:before{content:""}.bi-heartbreak-fill:before{content:""}.bi-heartbreak:before{content:""}.bi-hearts:before{content:""}.bi-hospital-fill:before{content:""}.bi-hospital:before{content:""}.bi-house-heart-fill:before{content:""}.bi-house-heart:before{content:""}.bi-incognito:before{content:""}.bi-magnet-fill:before{content:""}.bi-magnet:before{content:""}.bi-person-heart:before{content:""}.bi-person-hearts:before{content:""}.bi-phone-flip:before{content:""}.bi-plugin:before{content:""}.bi-postage-fill:before{content:""}.bi-postage-heart-fill:before{content:""}.bi-postage-heart:before{content:""}.bi-postage:before{content:""}.bi-postcard-fill:before{content:""}.bi-postcard-heart-fill:before{content:""}.bi-postcard-heart:before{content:""}.bi-postcard:before{content:""}.bi-search-heart-fill:before{content:""}.bi-search-heart:before{content:""}.bi-sliders2-vertical:before{content:""}.bi-sliders2:before{content:""}.bi-trash3-fill:before{content:""}.bi-trash3:before{content:""}.bi-valentine:before{content:""}.bi-valentine2:before{content:""}.bi-wrench-adjustable-circle-fill:before{content:""}.bi-wrench-adjustable-circle:before{content:""}.bi-wrench-adjustable:before{content:""}.bi-filetype-json:before{content:""}.bi-filetype-pptx:before{content:""}.bi-filetype-xlsx:before{content:""}.bi-1-circle-fill:before{content:""}.bi-1-circle:before{content:""}.bi-1-square-fill:before{content:""}.bi-1-square:before{content:""}.bi-2-circle-fill:before{content:""}.bi-2-circle:before{content:""}.bi-2-square-fill:before{content:""}.bi-2-square:before{content:""}.bi-3-circle-fill:before{content:""}.bi-3-circle:before{content:""}.bi-3-square-fill:before{content:""}.bi-3-square:before{content:""}.bi-4-circle-fill:before{content:""}.bi-4-circle:before{content:""}.bi-4-square-fill:before{content:""}.bi-4-square:before{content:""}.bi-5-circle-fill:before{content:""}.bi-5-circle:before{content:""}.bi-5-square-fill:before{content:""}.bi-5-square:before{content:""}.bi-6-circle-fill:before{content:""}.bi-6-circle:before{content:""}.bi-6-square-fill:before{content:""}.bi-6-square:before{content:""}.bi-7-circle-fill:before{content:""}.bi-7-circle:before{content:""}.bi-7-square-fill:before{content:""}.bi-7-square:before{content:""}.bi-8-circle-fill:before{content:""}.bi-8-circle:before{content:""}.bi-8-square-fill:before{content:""}.bi-8-square:before{content:""}.bi-9-circle-fill:before{content:""}.bi-9-circle:before{content:""}.bi-9-square-fill:before{content:""}.bi-9-square:before{content:""}.bi-airplane-engines-fill:before{content:""}.bi-airplane-engines:before{content:""}.bi-airplane-fill:before{content:""}.bi-airplane:before{content:""}.bi-alexa:before{content:""}.bi-alipay:before{content:""}.bi-android:before{content:""}.bi-android2:before{content:""}.bi-box-fill:before{content:""}.bi-box-seam-fill:before{content:""}.bi-browser-chrome:before{content:""}.bi-browser-edge:before{content:""}.bi-browser-firefox:before{content:""}.bi-browser-safari:before{content:""}.bi-c-circle-fill:before{content:""}.bi-c-circle:before{content:""}.bi-c-square-fill:before{content:""}.bi-c-square:before{content:""}.bi-capsule-pill:before{content:""}.bi-capsule:before{content:""}.bi-car-front-fill:before{content:""}.bi-car-front:before{content:""}.bi-cassette-fill:before{content:""}.bi-cassette:before{content:""}.bi-cc-circle-fill:before{content:""}.bi-cc-circle:before{content:""}.bi-cc-square-fill:before{content:""}.bi-cc-square:before{content:""}.bi-cup-hot-fill:before{content:""}.bi-cup-hot:before{content:""}.bi-currency-rupee:before{content:""}.bi-dropbox:before{content:""}.bi-escape:before{content:""}.bi-fast-forward-btn-fill:before{content:""}.bi-fast-forward-btn:before{content:""}.bi-fast-forward-circle-fill:before{content:""}.bi-fast-forward-circle:before{content:""}.bi-fast-forward-fill:before{content:""}.bi-fast-forward:before{content:""}.bi-filetype-sql:before{content:""}.bi-fire:before{content:""}.bi-google-play:before{content:""}.bi-h-circle-fill:before{content:""}.bi-h-circle:before{content:""}.bi-h-square-fill:before{content:""}.bi-h-square:before{content:""}.bi-indent:before{content:""}.bi-lungs-fill:before{content:""}.bi-lungs:before{content:""}.bi-microsoft-teams:before{content:""}.bi-p-circle-fill:before{content:""}.bi-p-circle:before{content:""}.bi-p-square-fill:before{content:""}.bi-p-square:before{content:""}.bi-pass-fill:before{content:""}.bi-pass:before{content:""}.bi-prescription:before{content:""}.bi-prescription2:before{content:""}.bi-r-circle-fill:before{content:""}.bi-r-circle:before{content:""}.bi-r-square-fill:before{content:""}.bi-r-square:before{content:""}.bi-repeat-1:before{content:""}.bi-repeat:before{content:""}.bi-rewind-btn-fill:before{content:""}.bi-rewind-btn:before{content:""}.bi-rewind-circle-fill:before{content:""}.bi-rewind-circle:before{content:""}.bi-rewind-fill:before{content:""}.bi-rewind:before{content:""}.bi-train-freight-front-fill:before{content:""}.bi-train-freight-front:before{content:""}.bi-train-front-fill:before{content:""}.bi-train-front:before{content:""}.bi-train-lightrail-front-fill:before{content:""}.bi-train-lightrail-front:before{content:""}.bi-truck-front-fill:before{content:""}.bi-truck-front:before{content:""}.bi-ubuntu:before{content:""}.bi-unindent:before{content:""}.bi-unity:before{content:""}.bi-universal-access-circle:before{content:""}.bi-universal-access:before{content:""}.bi-virus:before{content:""}.bi-virus2:before{content:""}.bi-wechat:before{content:""}.bi-yelp:before{content:""}.bi-sign-stop-fill:before{content:""}.bi-sign-stop-lights-fill:before{content:""}.bi-sign-stop-lights:before{content:""}.bi-sign-stop:before{content:""}.bi-sign-turn-left-fill:before{content:""}.bi-sign-turn-left:before{content:""}.bi-sign-turn-right-fill:before{content:""}.bi-sign-turn-right:before{content:""}.bi-sign-turn-slight-left-fill:before{content:""}.bi-sign-turn-slight-left:before{content:""}.bi-sign-turn-slight-right-fill:before{content:""}.bi-sign-turn-slight-right:before{content:""}.bi-sign-yield-fill:before{content:""}.bi-sign-yield:before{content:""}.bi-ev-station-fill:before{content:""}.bi-ev-station:before{content:""}.bi-fuel-pump-diesel-fill:before{content:""}.bi-fuel-pump-diesel:before{content:""}.bi-fuel-pump-fill:before{content:""}.bi-fuel-pump:before{content:""}.bi-0-circle-fill:before{content:""}.bi-0-circle:before{content:""}.bi-0-square-fill:before{content:""}.bi-0-square:before{content:""}.bi-rocket-fill:before{content:""}.bi-rocket-takeoff-fill:before{content:""}.bi-rocket-takeoff:before{content:""}.bi-rocket:before{content:""}.bi-stripe:before{content:""}.bi-subscript:before{content:""}.bi-superscript:before{content:""}.bi-trello:before{content:""}.bi-envelope-at-fill:before{content:""}.bi-envelope-at:before{content:""}.bi-regex:before{content:""}.bi-text-wrap:before{content:""}.bi-sign-dead-end-fill:before{content:""}.bi-sign-dead-end:before{content:""}.bi-sign-do-not-enter-fill:before{content:""}.bi-sign-do-not-enter:before{content:""}.bi-sign-intersection-fill:before{content:""}.bi-sign-intersection-side-fill:before{content:""}.bi-sign-intersection-side:before{content:""}.bi-sign-intersection-t-fill:before{content:""}.bi-sign-intersection-t:before{content:""}.bi-sign-intersection-y-fill:before{content:""}.bi-sign-intersection-y:before{content:""}.bi-sign-intersection:before{content:""}.bi-sign-merge-left-fill:before{content:""}.bi-sign-merge-left:before{content:""}.bi-sign-merge-right-fill:before{content:""}.bi-sign-merge-right:before{content:""}.bi-sign-no-left-turn-fill:before{content:""}.bi-sign-no-left-turn:before{content:""}.bi-sign-no-parking-fill:before{content:""}.bi-sign-no-parking:before{content:""}.bi-sign-no-right-turn-fill:before{content:""}.bi-sign-no-right-turn:before{content:""}.bi-sign-railroad-fill:before{content:""}.bi-sign-railroad:before{content:""}.bi-building-add:before{content:""}.bi-building-check:before{content:""}.bi-building-dash:before{content:""}.bi-building-down:before{content:""}.bi-building-exclamation:before{content:""}.bi-building-fill-add:before{content:""}.bi-building-fill-check:before{content:""}.bi-building-fill-dash:before{content:""}.bi-building-fill-down:before{content:""}.bi-building-fill-exclamation:before{content:""}.bi-building-fill-gear:before{content:""}.bi-building-fill-lock:before{content:""}.bi-building-fill-slash:before{content:""}.bi-building-fill-up:before{content:""}.bi-building-fill-x:before{content:""}.bi-building-fill:before{content:""}.bi-building-gear:before{content:""}.bi-building-lock:before{content:""}.bi-building-slash:before{content:""}.bi-building-up:before{content:""}.bi-building-x:before{content:""}.bi-buildings-fill:before{content:""}.bi-buildings:before{content:""}.bi-bus-front-fill:before{content:""}.bi-bus-front:before{content:""}.bi-ev-front-fill:before{content:""}.bi-ev-front:before{content:""}.bi-globe-americas:before{content:""}.bi-globe-asia-australia:before{content:""}.bi-globe-central-south-asia:before{content:""}.bi-globe-europe-africa:before{content:""}.bi-house-add-fill:before{content:""}.bi-house-add:before{content:""}.bi-house-check-fill:before{content:""}.bi-house-check:before{content:""}.bi-house-dash-fill:before{content:""}.bi-house-dash:before{content:""}.bi-house-down-fill:before{content:""}.bi-house-down:before{content:""}.bi-house-exclamation-fill:before{content:""}.bi-house-exclamation:before{content:""}.bi-house-gear-fill:before{content:""}.bi-house-gear:before{content:""}.bi-house-lock-fill:before{content:""}.bi-house-lock:before{content:""}.bi-house-slash-fill:before{content:""}.bi-house-slash:before{content:""}.bi-house-up-fill:before{content:""}.bi-house-up:before{content:""}.bi-house-x-fill:before{content:""}.bi-house-x:before{content:""}.bi-person-add:before{content:""}.bi-person-down:before{content:""}.bi-person-exclamation:before{content:""}.bi-person-fill-add:before{content:""}.bi-person-fill-check:before{content:""}.bi-person-fill-dash:before{content:""}.bi-person-fill-down:before{content:""}.bi-person-fill-exclamation:before{content:""}.bi-person-fill-gear:before{content:""}.bi-person-fill-lock:before{content:""}.bi-person-fill-slash:before{content:""}.bi-person-fill-up:before{content:""}.bi-person-fill-x:before{content:""}.bi-person-gear:before{content:""}.bi-person-lock:before{content:""}.bi-person-slash:before{content:""}.bi-person-up:before{content:""}.bi-scooter:before{content:""}.bi-taxi-front-fill:before{content:""}.bi-taxi-front:before{content:""}.bi-amd:before{content:""}.bi-database-add:before{content:""}.bi-database-check:before{content:""}.bi-database-dash:before{content:""}.bi-database-down:before{content:""}.bi-database-exclamation:before{content:""}.bi-database-fill-add:before{content:""}.bi-database-fill-check:before{content:""}.bi-database-fill-dash:before{content:""}.bi-database-fill-down:before{content:""}.bi-database-fill-exclamation:before{content:""}.bi-database-fill-gear:before{content:""}.bi-database-fill-lock:before{content:""}.bi-database-fill-slash:before{content:""}.bi-database-fill-up:before{content:""}.bi-database-fill-x:before{content:""}.bi-database-fill:before{content:""}.bi-database-gear:before{content:""}.bi-database-lock:before{content:""}.bi-database-slash:before{content:""}.bi-database-up:before{content:""}.bi-database-x:before{content:""}.bi-database:before{content:""}.bi-houses-fill:before{content:""}.bi-houses:before{content:""}.bi-nvidia:before{content:""}.bi-person-vcard-fill:before{content:""}.bi-person-vcard:before{content:""}.bi-sina-weibo:before{content:""}.bi-tencent-qq:before{content:""}.bi-wikipedia:before{content:""}.bi-alphabet-uppercase:before{content:""}.bi-alphabet:before{content:""}.bi-amazon:before{content:""}.bi-arrows-collapse-vertical:before{content:""}.bi-arrows-expand-vertical:before{content:""}.bi-arrows-vertical:before{content:""}.bi-arrows:before{content:""}.bi-ban-fill:before{content:""}.bi-ban:before{content:""}.bi-bing:before{content:""}.bi-cake:before{content:""}.bi-cake2:before{content:""}.bi-cookie:before{content:""}.bi-copy:before{content:""}.bi-crosshair:before{content:""}.bi-crosshair2:before{content:""}.bi-emoji-astonished-fill:before{content:""}.bi-emoji-astonished:before{content:""}.bi-emoji-grimace-fill:before{content:""}.bi-emoji-grimace:before{content:""}.bi-emoji-grin-fill:before{content:""}.bi-emoji-grin:before{content:""}.bi-emoji-surprise-fill:before{content:""}.bi-emoji-surprise:before{content:""}.bi-emoji-tear-fill:before{content:""}.bi-emoji-tear:before{content:""}.bi-envelope-arrow-down-fill:before{content:""}.bi-envelope-arrow-down:before{content:""}.bi-envelope-arrow-up-fill:before{content:""}.bi-envelope-arrow-up:before{content:""}.bi-feather:before{content:""}.bi-feather2:before{content:""}.bi-floppy-fill:before{content:""}.bi-floppy:before{content:""}.bi-floppy2-fill:before{content:""}.bi-floppy2:before{content:""}.bi-gitlab:before{content:""}.bi-highlighter:before{content:""}.bi-marker-tip:before{content:""}.bi-nvme-fill:before{content:""}.bi-nvme:before{content:""}.bi-opencollective:before{content:""}.bi-pci-card-network:before{content:""}.bi-pci-card-sound:before{content:""}.bi-radar:before{content:""}.bi-send-arrow-down-fill:before{content:""}.bi-send-arrow-down:before{content:""}.bi-send-arrow-up-fill:before{content:""}.bi-send-arrow-up:before{content:""}.bi-sim-slash-fill:before{content:""}.bi-sim-slash:before{content:""}.bi-sourceforge:before{content:""}.bi-substack:before{content:""}.bi-threads-fill:before{content:""}.bi-threads:before{content:""}.bi-transparency:before{content:""}.bi-twitter-x:before{content:""}.bi-type-h4:before{content:""}.bi-type-h5:before{content:""}.bi-type-h6:before{content:""}.bi-backpack-fill:before{content:""}.bi-backpack:before{content:""}.bi-backpack2-fill:before{content:""}.bi-backpack2:before{content:""}.bi-backpack3-fill:before{content:""}.bi-backpack3:before{content:""}.bi-backpack4-fill:before{content:""}.bi-backpack4:before{content:""}.bi-brilliance:before{content:""}.bi-cake-fill:before{content:""}.bi-cake2-fill:before{content:""}.bi-duffle-fill:before{content:""}.bi-duffle:before{content:""}.bi-exposure:before{content:""}.bi-gender-neuter:before{content:""}.bi-highlights:before{content:""}.bi-luggage-fill:before{content:""}.bi-luggage:before{content:""}.bi-mailbox-flag:before{content:""}.bi-mailbox2-flag:before{content:""}.bi-noise-reduction:before{content:""}.bi-passport-fill:before{content:""}.bi-passport:before{content:""}.bi-person-arms-up:before{content:""}.bi-person-raised-hand:before{content:""}.bi-person-standing-dress:before{content:""}.bi-person-standing:before{content:""}.bi-person-walking:before{content:""}.bi-person-wheelchair:before{content:""}.bi-shadows:before{content:""}.bi-suitcase-fill:before{content:""}.bi-suitcase-lg-fill:before{content:""}.bi-suitcase-lg:before{content:""}.bi-suitcase:before{content:"豈"}.bi-suitcase2-fill:before{content:"更"}.bi-suitcase2:before{content:"車"}.bi-vignette:before{content:"賈"}.list-group-item[data-v-211acf3b]{cursor:pointer}.splitpanes{display:flex;width:100%;height:100%}.splitpanes--vertical{flex-direction:row}.splitpanes--horizontal{flex-direction:column}.splitpanes--dragging *{-webkit-user-select:none;user-select:none}.splitpanes__pane{width:100%;height:100%;overflow:hidden}.splitpanes--vertical .splitpanes__pane{transition:width .2s ease-out}.splitpanes--horizontal .splitpanes__pane{transition:height .2s ease-out}.splitpanes--dragging .splitpanes__pane{transition:none}.splitpanes__splitter{touch-action:none}.splitpanes--vertical>.splitpanes__splitter{min-width:1px;cursor:col-resize}.splitpanes--horizontal>.splitpanes__splitter{min-height:1px;cursor:row-resize}.splitpanes.default-theme .splitpanes__pane{background-color:#f2f2f2}.splitpanes.default-theme .splitpanes__splitter{background-color:#fff;box-sizing:border-box;position:relative;flex-shrink:0}.splitpanes.default-theme .splitpanes__splitter:before,.splitpanes.default-theme .splitpanes__splitter:after{content:"";position:absolute;top:50%;left:50%;background-color:#00000026;transition:background-color .3s}.splitpanes.default-theme .splitpanes__splitter:hover:before,.splitpanes.default-theme .splitpanes__splitter:hover:after{background-color:#00000040}.splitpanes.default-theme .splitpanes__splitter:first-child{cursor:auto}.default-theme.splitpanes .splitpanes .splitpanes__splitter{z-index:1}.default-theme.splitpanes--vertical>.splitpanes__splitter,.default-theme .splitpanes--vertical>.splitpanes__splitter{width:7px;border-left:1px solid #eee;margin-left:-1px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{transform:translateY(-50%);width:1px;height:30px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:before{margin-left:-2px}.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{margin-left:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter,.default-theme .splitpanes--horizontal>.splitpanes__splitter{height:7px;border-top:1px solid #eee;margin-top:-1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{transform:translate(-50%);width:30px;height:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before{margin-top:-2px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{margin-top:1px}#app[data-v-6146cd62]{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#2c3e50}.row.connection[data-v-6146cd62]{margin:30px 0}.splitpanes[data-v-6146cd62],.splitpanes .splitpanes__pane[data-v-6146cd62]{background-color:inherit}.splitpanes--horizontal .splitpanes__pane[data-v-6146cd62]{overflow-y:scroll} +*/@font-face{font-display:block;font-family:bootstrap-icons;src:url(./bootstrap-icons-BtvjY1KL.woff2?dd67030699838ea613ee6dbda90effa6) format("woff2"),url(./bootstrap-icons-BOrJxbIo.woff?dd67030699838ea613ee6dbda90effa6) format("woff")}.bi:before,[class^=bi-]:before,[class*=" bi-"]:before{display:inline-block;font-family:bootstrap-icons!important;font-style:normal;font-weight:400!important;font-variant:normal;text-transform:none;line-height:1;vertical-align:-.125em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.bi-123:before{content:""}.bi-alarm-fill:before{content:""}.bi-alarm:before{content:""}.bi-align-bottom:before{content:""}.bi-align-center:before{content:""}.bi-align-end:before{content:""}.bi-align-middle:before{content:""}.bi-align-start:before{content:""}.bi-align-top:before{content:""}.bi-alt:before{content:""}.bi-app-indicator:before{content:""}.bi-app:before{content:""}.bi-archive-fill:before{content:""}.bi-archive:before{content:""}.bi-arrow-90deg-down:before{content:""}.bi-arrow-90deg-left:before{content:""}.bi-arrow-90deg-right:before{content:""}.bi-arrow-90deg-up:before{content:""}.bi-arrow-bar-down:before{content:""}.bi-arrow-bar-left:before{content:""}.bi-arrow-bar-right:before{content:""}.bi-arrow-bar-up:before{content:""}.bi-arrow-clockwise:before{content:""}.bi-arrow-counterclockwise:before{content:""}.bi-arrow-down-circle-fill:before{content:""}.bi-arrow-down-circle:before{content:""}.bi-arrow-down-left-circle-fill:before{content:""}.bi-arrow-down-left-circle:before{content:""}.bi-arrow-down-left-square-fill:before{content:""}.bi-arrow-down-left-square:before{content:""}.bi-arrow-down-left:before{content:""}.bi-arrow-down-right-circle-fill:before{content:""}.bi-arrow-down-right-circle:before{content:""}.bi-arrow-down-right-square-fill:before{content:""}.bi-arrow-down-right-square:before{content:""}.bi-arrow-down-right:before{content:""}.bi-arrow-down-short:before{content:""}.bi-arrow-down-square-fill:before{content:""}.bi-arrow-down-square:before{content:""}.bi-arrow-down-up:before{content:""}.bi-arrow-down:before{content:""}.bi-arrow-left-circle-fill:before{content:""}.bi-arrow-left-circle:before{content:""}.bi-arrow-left-right:before{content:""}.bi-arrow-left-short:before{content:""}.bi-arrow-left-square-fill:before{content:""}.bi-arrow-left-square:before{content:""}.bi-arrow-left:before{content:""}.bi-arrow-repeat:before{content:""}.bi-arrow-return-left:before{content:""}.bi-arrow-return-right:before{content:""}.bi-arrow-right-circle-fill:before{content:""}.bi-arrow-right-circle:before{content:""}.bi-arrow-right-short:before{content:""}.bi-arrow-right-square-fill:before{content:""}.bi-arrow-right-square:before{content:""}.bi-arrow-right:before{content:""}.bi-arrow-up-circle-fill:before{content:""}.bi-arrow-up-circle:before{content:""}.bi-arrow-up-left-circle-fill:before{content:""}.bi-arrow-up-left-circle:before{content:""}.bi-arrow-up-left-square-fill:before{content:""}.bi-arrow-up-left-square:before{content:""}.bi-arrow-up-left:before{content:""}.bi-arrow-up-right-circle-fill:before{content:""}.bi-arrow-up-right-circle:before{content:""}.bi-arrow-up-right-square-fill:before{content:""}.bi-arrow-up-right-square:before{content:""}.bi-arrow-up-right:before{content:""}.bi-arrow-up-short:before{content:""}.bi-arrow-up-square-fill:before{content:""}.bi-arrow-up-square:before{content:""}.bi-arrow-up:before{content:""}.bi-arrows-angle-contract:before{content:""}.bi-arrows-angle-expand:before{content:""}.bi-arrows-collapse:before{content:""}.bi-arrows-expand:before{content:""}.bi-arrows-fullscreen:before{content:""}.bi-arrows-move:before{content:""}.bi-aspect-ratio-fill:before{content:""}.bi-aspect-ratio:before{content:""}.bi-asterisk:before{content:""}.bi-at:before{content:""}.bi-award-fill:before{content:""}.bi-award:before{content:""}.bi-back:before{content:""}.bi-backspace-fill:before{content:""}.bi-backspace-reverse-fill:before{content:""}.bi-backspace-reverse:before{content:""}.bi-backspace:before{content:""}.bi-badge-3d-fill:before{content:""}.bi-badge-3d:before{content:""}.bi-badge-4k-fill:before{content:""}.bi-badge-4k:before{content:""}.bi-badge-8k-fill:before{content:""}.bi-badge-8k:before{content:""}.bi-badge-ad-fill:before{content:""}.bi-badge-ad:before{content:""}.bi-badge-ar-fill:before{content:""}.bi-badge-ar:before{content:""}.bi-badge-cc-fill:before{content:""}.bi-badge-cc:before{content:""}.bi-badge-hd-fill:before{content:""}.bi-badge-hd:before{content:""}.bi-badge-tm-fill:before{content:""}.bi-badge-tm:before{content:""}.bi-badge-vo-fill:before{content:""}.bi-badge-vo:before{content:""}.bi-badge-vr-fill:before{content:""}.bi-badge-vr:before{content:""}.bi-badge-wc-fill:before{content:""}.bi-badge-wc:before{content:""}.bi-bag-check-fill:before{content:""}.bi-bag-check:before{content:""}.bi-bag-dash-fill:before{content:""}.bi-bag-dash:before{content:""}.bi-bag-fill:before{content:""}.bi-bag-plus-fill:before{content:""}.bi-bag-plus:before{content:""}.bi-bag-x-fill:before{content:""}.bi-bag-x:before{content:""}.bi-bag:before{content:""}.bi-bar-chart-fill:before{content:""}.bi-bar-chart-line-fill:before{content:""}.bi-bar-chart-line:before{content:""}.bi-bar-chart-steps:before{content:""}.bi-bar-chart:before{content:""}.bi-basket-fill:before{content:""}.bi-basket:before{content:""}.bi-basket2-fill:before{content:""}.bi-basket2:before{content:""}.bi-basket3-fill:before{content:""}.bi-basket3:before{content:""}.bi-battery-charging:before{content:""}.bi-battery-full:before{content:""}.bi-battery-half:before{content:""}.bi-battery:before{content:""}.bi-bell-fill:before{content:""}.bi-bell:before{content:""}.bi-bezier:before{content:""}.bi-bezier2:before{content:""}.bi-bicycle:before{content:""}.bi-binoculars-fill:before{content:""}.bi-binoculars:before{content:""}.bi-blockquote-left:before{content:""}.bi-blockquote-right:before{content:""}.bi-book-fill:before{content:""}.bi-book-half:before{content:""}.bi-book:before{content:""}.bi-bookmark-check-fill:before{content:""}.bi-bookmark-check:before{content:""}.bi-bookmark-dash-fill:before{content:""}.bi-bookmark-dash:before{content:""}.bi-bookmark-fill:before{content:""}.bi-bookmark-heart-fill:before{content:""}.bi-bookmark-heart:before{content:""}.bi-bookmark-plus-fill:before{content:""}.bi-bookmark-plus:before{content:""}.bi-bookmark-star-fill:before{content:""}.bi-bookmark-star:before{content:""}.bi-bookmark-x-fill:before{content:""}.bi-bookmark-x:before{content:""}.bi-bookmark:before{content:""}.bi-bookmarks-fill:before{content:""}.bi-bookmarks:before{content:""}.bi-bookshelf:before{content:""}.bi-bootstrap-fill:before{content:""}.bi-bootstrap-reboot:before{content:""}.bi-bootstrap:before{content:""}.bi-border-all:before{content:""}.bi-border-bottom:before{content:""}.bi-border-center:before{content:""}.bi-border-inner:before{content:""}.bi-border-left:before{content:""}.bi-border-middle:before{content:""}.bi-border-outer:before{content:""}.bi-border-right:before{content:""}.bi-border-style:before{content:""}.bi-border-top:before{content:""}.bi-border-width:before{content:""}.bi-border:before{content:""}.bi-bounding-box-circles:before{content:""}.bi-bounding-box:before{content:""}.bi-box-arrow-down-left:before{content:""}.bi-box-arrow-down-right:before{content:""}.bi-box-arrow-down:before{content:""}.bi-box-arrow-in-down-left:before{content:""}.bi-box-arrow-in-down-right:before{content:""}.bi-box-arrow-in-down:before{content:""}.bi-box-arrow-in-left:before{content:""}.bi-box-arrow-in-right:before{content:""}.bi-box-arrow-in-up-left:before{content:""}.bi-box-arrow-in-up-right:before{content:""}.bi-box-arrow-in-up:before{content:""}.bi-box-arrow-left:before{content:""}.bi-box-arrow-right:before{content:""}.bi-box-arrow-up-left:before{content:""}.bi-box-arrow-up-right:before{content:""}.bi-box-arrow-up:before{content:""}.bi-box-seam:before{content:""}.bi-box:before{content:""}.bi-braces:before{content:""}.bi-bricks:before{content:""}.bi-briefcase-fill:before{content:""}.bi-briefcase:before{content:""}.bi-brightness-alt-high-fill:before{content:""}.bi-brightness-alt-high:before{content:""}.bi-brightness-alt-low-fill:before{content:""}.bi-brightness-alt-low:before{content:""}.bi-brightness-high-fill:before{content:""}.bi-brightness-high:before{content:""}.bi-brightness-low-fill:before{content:""}.bi-brightness-low:before{content:""}.bi-broadcast-pin:before{content:""}.bi-broadcast:before{content:""}.bi-brush-fill:before{content:""}.bi-brush:before{content:""}.bi-bucket-fill:before{content:""}.bi-bucket:before{content:""}.bi-bug-fill:before{content:""}.bi-bug:before{content:""}.bi-building:before{content:""}.bi-bullseye:before{content:""}.bi-calculator-fill:before{content:""}.bi-calculator:before{content:""}.bi-calendar-check-fill:before{content:""}.bi-calendar-check:before{content:""}.bi-calendar-date-fill:before{content:""}.bi-calendar-date:before{content:""}.bi-calendar-day-fill:before{content:""}.bi-calendar-day:before{content:""}.bi-calendar-event-fill:before{content:""}.bi-calendar-event:before{content:""}.bi-calendar-fill:before{content:""}.bi-calendar-minus-fill:before{content:""}.bi-calendar-minus:before{content:""}.bi-calendar-month-fill:before{content:""}.bi-calendar-month:before{content:""}.bi-calendar-plus-fill:before{content:""}.bi-calendar-plus:before{content:""}.bi-calendar-range-fill:before{content:""}.bi-calendar-range:before{content:""}.bi-calendar-week-fill:before{content:""}.bi-calendar-week:before{content:""}.bi-calendar-x-fill:before{content:""}.bi-calendar-x:before{content:""}.bi-calendar:before{content:""}.bi-calendar2-check-fill:before{content:""}.bi-calendar2-check:before{content:""}.bi-calendar2-date-fill:before{content:""}.bi-calendar2-date:before{content:""}.bi-calendar2-day-fill:before{content:""}.bi-calendar2-day:before{content:""}.bi-calendar2-event-fill:before{content:""}.bi-calendar2-event:before{content:""}.bi-calendar2-fill:before{content:""}.bi-calendar2-minus-fill:before{content:""}.bi-calendar2-minus:before{content:""}.bi-calendar2-month-fill:before{content:""}.bi-calendar2-month:before{content:""}.bi-calendar2-plus-fill:before{content:""}.bi-calendar2-plus:before{content:""}.bi-calendar2-range-fill:before{content:""}.bi-calendar2-range:before{content:""}.bi-calendar2-week-fill:before{content:""}.bi-calendar2-week:before{content:""}.bi-calendar2-x-fill:before{content:""}.bi-calendar2-x:before{content:""}.bi-calendar2:before{content:""}.bi-calendar3-event-fill:before{content:""}.bi-calendar3-event:before{content:""}.bi-calendar3-fill:before{content:""}.bi-calendar3-range-fill:before{content:""}.bi-calendar3-range:before{content:""}.bi-calendar3-week-fill:before{content:""}.bi-calendar3-week:before{content:""}.bi-calendar3:before{content:""}.bi-calendar4-event:before{content:""}.bi-calendar4-range:before{content:""}.bi-calendar4-week:before{content:""}.bi-calendar4:before{content:""}.bi-camera-fill:before{content:""}.bi-camera-reels-fill:before{content:""}.bi-camera-reels:before{content:""}.bi-camera-video-fill:before{content:""}.bi-camera-video-off-fill:before{content:""}.bi-camera-video-off:before{content:""}.bi-camera-video:before{content:""}.bi-camera:before{content:""}.bi-camera2:before{content:""}.bi-capslock-fill:before{content:""}.bi-capslock:before{content:""}.bi-card-checklist:before{content:""}.bi-card-heading:before{content:""}.bi-card-image:before{content:""}.bi-card-list:before{content:""}.bi-card-text:before{content:""}.bi-caret-down-fill:before{content:""}.bi-caret-down-square-fill:before{content:""}.bi-caret-down-square:before{content:""}.bi-caret-down:before{content:""}.bi-caret-left-fill:before{content:""}.bi-caret-left-square-fill:before{content:""}.bi-caret-left-square:before{content:""}.bi-caret-left:before{content:""}.bi-caret-right-fill:before{content:""}.bi-caret-right-square-fill:before{content:""}.bi-caret-right-square:before{content:""}.bi-caret-right:before{content:""}.bi-caret-up-fill:before{content:""}.bi-caret-up-square-fill:before{content:""}.bi-caret-up-square:before{content:""}.bi-caret-up:before{content:""}.bi-cart-check-fill:before{content:""}.bi-cart-check:before{content:""}.bi-cart-dash-fill:before{content:""}.bi-cart-dash:before{content:""}.bi-cart-fill:before{content:""}.bi-cart-plus-fill:before{content:""}.bi-cart-plus:before{content:""}.bi-cart-x-fill:before{content:""}.bi-cart-x:before{content:""}.bi-cart:before{content:""}.bi-cart2:before{content:""}.bi-cart3:before{content:""}.bi-cart4:before{content:""}.bi-cash-stack:before{content:""}.bi-cash:before{content:""}.bi-cast:before{content:""}.bi-chat-dots-fill:before{content:""}.bi-chat-dots:before{content:""}.bi-chat-fill:before{content:""}.bi-chat-left-dots-fill:before{content:""}.bi-chat-left-dots:before{content:""}.bi-chat-left-fill:before{content:""}.bi-chat-left-quote-fill:before{content:""}.bi-chat-left-quote:before{content:""}.bi-chat-left-text-fill:before{content:""}.bi-chat-left-text:before{content:""}.bi-chat-left:before{content:""}.bi-chat-quote-fill:before{content:""}.bi-chat-quote:before{content:""}.bi-chat-right-dots-fill:before{content:""}.bi-chat-right-dots:before{content:""}.bi-chat-right-fill:before{content:""}.bi-chat-right-quote-fill:before{content:""}.bi-chat-right-quote:before{content:""}.bi-chat-right-text-fill:before{content:""}.bi-chat-right-text:before{content:""}.bi-chat-right:before{content:""}.bi-chat-square-dots-fill:before{content:""}.bi-chat-square-dots:before{content:""}.bi-chat-square-fill:before{content:""}.bi-chat-square-quote-fill:before{content:""}.bi-chat-square-quote:before{content:""}.bi-chat-square-text-fill:before{content:""}.bi-chat-square-text:before{content:""}.bi-chat-square:before{content:""}.bi-chat-text-fill:before{content:""}.bi-chat-text:before{content:""}.bi-chat:before{content:""}.bi-check-all:before{content:""}.bi-check-circle-fill:before{content:""}.bi-check-circle:before{content:""}.bi-check-square-fill:before{content:""}.bi-check-square:before{content:""}.bi-check:before{content:""}.bi-check2-all:before{content:""}.bi-check2-circle:before{content:""}.bi-check2-square:before{content:""}.bi-check2:before{content:""}.bi-chevron-bar-contract:before{content:""}.bi-chevron-bar-down:before{content:""}.bi-chevron-bar-expand:before{content:""}.bi-chevron-bar-left:before{content:""}.bi-chevron-bar-right:before{content:""}.bi-chevron-bar-up:before{content:""}.bi-chevron-compact-down:before{content:""}.bi-chevron-compact-left:before{content:""}.bi-chevron-compact-right:before{content:""}.bi-chevron-compact-up:before{content:""}.bi-chevron-contract:before{content:""}.bi-chevron-double-down:before{content:""}.bi-chevron-double-left:before{content:""}.bi-chevron-double-right:before{content:""}.bi-chevron-double-up:before{content:""}.bi-chevron-down:before{content:""}.bi-chevron-expand:before{content:""}.bi-chevron-left:before{content:""}.bi-chevron-right:before{content:""}.bi-chevron-up:before{content:""}.bi-circle-fill:before{content:""}.bi-circle-half:before{content:""}.bi-circle-square:before{content:""}.bi-circle:before{content:""}.bi-clipboard-check:before{content:""}.bi-clipboard-data:before{content:""}.bi-clipboard-minus:before{content:""}.bi-clipboard-plus:before{content:""}.bi-clipboard-x:before{content:""}.bi-clipboard:before{content:""}.bi-clock-fill:before{content:""}.bi-clock-history:before{content:""}.bi-clock:before{content:""}.bi-cloud-arrow-down-fill:before{content:""}.bi-cloud-arrow-down:before{content:""}.bi-cloud-arrow-up-fill:before{content:""}.bi-cloud-arrow-up:before{content:""}.bi-cloud-check-fill:before{content:""}.bi-cloud-check:before{content:""}.bi-cloud-download-fill:before{content:""}.bi-cloud-download:before{content:""}.bi-cloud-drizzle-fill:before{content:""}.bi-cloud-drizzle:before{content:""}.bi-cloud-fill:before{content:""}.bi-cloud-fog-fill:before{content:""}.bi-cloud-fog:before{content:""}.bi-cloud-fog2-fill:before{content:""}.bi-cloud-fog2:before{content:""}.bi-cloud-hail-fill:before{content:""}.bi-cloud-hail:before{content:""}.bi-cloud-haze-fill:before{content:""}.bi-cloud-haze:before{content:""}.bi-cloud-haze2-fill:before{content:""}.bi-cloud-lightning-fill:before{content:""}.bi-cloud-lightning-rain-fill:before{content:""}.bi-cloud-lightning-rain:before{content:""}.bi-cloud-lightning:before{content:""}.bi-cloud-minus-fill:before{content:""}.bi-cloud-minus:before{content:""}.bi-cloud-moon-fill:before{content:""}.bi-cloud-moon:before{content:""}.bi-cloud-plus-fill:before{content:""}.bi-cloud-plus:before{content:""}.bi-cloud-rain-fill:before{content:""}.bi-cloud-rain-heavy-fill:before{content:""}.bi-cloud-rain-heavy:before{content:""}.bi-cloud-rain:before{content:""}.bi-cloud-slash-fill:before{content:""}.bi-cloud-slash:before{content:""}.bi-cloud-sleet-fill:before{content:""}.bi-cloud-sleet:before{content:""}.bi-cloud-snow-fill:before{content:""}.bi-cloud-snow:before{content:""}.bi-cloud-sun-fill:before{content:""}.bi-cloud-sun:before{content:""}.bi-cloud-upload-fill:before{content:""}.bi-cloud-upload:before{content:""}.bi-cloud:before{content:""}.bi-clouds-fill:before{content:""}.bi-clouds:before{content:""}.bi-cloudy-fill:before{content:""}.bi-cloudy:before{content:""}.bi-code-slash:before{content:""}.bi-code-square:before{content:""}.bi-code:before{content:""}.bi-collection-fill:before{content:""}.bi-collection-play-fill:before{content:""}.bi-collection-play:before{content:""}.bi-collection:before{content:""}.bi-columns-gap:before{content:""}.bi-columns:before{content:""}.bi-command:before{content:""}.bi-compass-fill:before{content:""}.bi-compass:before{content:""}.bi-cone-striped:before{content:""}.bi-cone:before{content:""}.bi-controller:before{content:""}.bi-cpu-fill:before{content:""}.bi-cpu:before{content:""}.bi-credit-card-2-back-fill:before{content:""}.bi-credit-card-2-back:before{content:""}.bi-credit-card-2-front-fill:before{content:""}.bi-credit-card-2-front:before{content:""}.bi-credit-card-fill:before{content:""}.bi-credit-card:before{content:""}.bi-crop:before{content:""}.bi-cup-fill:before{content:""}.bi-cup-straw:before{content:""}.bi-cup:before{content:""}.bi-cursor-fill:before{content:""}.bi-cursor-text:before{content:""}.bi-cursor:before{content:""}.bi-dash-circle-dotted:before{content:""}.bi-dash-circle-fill:before{content:""}.bi-dash-circle:before{content:""}.bi-dash-square-dotted:before{content:""}.bi-dash-square-fill:before{content:""}.bi-dash-square:before{content:""}.bi-dash:before{content:""}.bi-diagram-2-fill:before{content:""}.bi-diagram-2:before{content:""}.bi-diagram-3-fill:before{content:""}.bi-diagram-3:before{content:""}.bi-diamond-fill:before{content:""}.bi-diamond-half:before{content:""}.bi-diamond:before{content:""}.bi-dice-1-fill:before{content:""}.bi-dice-1:before{content:""}.bi-dice-2-fill:before{content:""}.bi-dice-2:before{content:""}.bi-dice-3-fill:before{content:""}.bi-dice-3:before{content:""}.bi-dice-4-fill:before{content:""}.bi-dice-4:before{content:""}.bi-dice-5-fill:before{content:""}.bi-dice-5:before{content:""}.bi-dice-6-fill:before{content:""}.bi-dice-6:before{content:""}.bi-disc-fill:before{content:""}.bi-disc:before{content:""}.bi-discord:before{content:""}.bi-display-fill:before{content:""}.bi-display:before{content:""}.bi-distribute-horizontal:before{content:""}.bi-distribute-vertical:before{content:""}.bi-door-closed-fill:before{content:""}.bi-door-closed:before{content:""}.bi-door-open-fill:before{content:""}.bi-door-open:before{content:""}.bi-dot:before{content:""}.bi-download:before{content:""}.bi-droplet-fill:before{content:""}.bi-droplet-half:before{content:""}.bi-droplet:before{content:""}.bi-earbuds:before{content:""}.bi-easel-fill:before{content:""}.bi-easel:before{content:""}.bi-egg-fill:before{content:""}.bi-egg-fried:before{content:""}.bi-egg:before{content:""}.bi-eject-fill:before{content:""}.bi-eject:before{content:""}.bi-emoji-angry-fill:before{content:""}.bi-emoji-angry:before{content:""}.bi-emoji-dizzy-fill:before{content:""}.bi-emoji-dizzy:before{content:""}.bi-emoji-expressionless-fill:before{content:""}.bi-emoji-expressionless:before{content:""}.bi-emoji-frown-fill:before{content:""}.bi-emoji-frown:before{content:""}.bi-emoji-heart-eyes-fill:before{content:""}.bi-emoji-heart-eyes:before{content:""}.bi-emoji-laughing-fill:before{content:""}.bi-emoji-laughing:before{content:""}.bi-emoji-neutral-fill:before{content:""}.bi-emoji-neutral:before{content:""}.bi-emoji-smile-fill:before{content:""}.bi-emoji-smile-upside-down-fill:before{content:""}.bi-emoji-smile-upside-down:before{content:""}.bi-emoji-smile:before{content:""}.bi-emoji-sunglasses-fill:before{content:""}.bi-emoji-sunglasses:before{content:""}.bi-emoji-wink-fill:before{content:""}.bi-emoji-wink:before{content:""}.bi-envelope-fill:before{content:""}.bi-envelope-open-fill:before{content:""}.bi-envelope-open:before{content:""}.bi-envelope:before{content:""}.bi-eraser-fill:before{content:""}.bi-eraser:before{content:""}.bi-exclamation-circle-fill:before{content:""}.bi-exclamation-circle:before{content:""}.bi-exclamation-diamond-fill:before{content:""}.bi-exclamation-diamond:before{content:""}.bi-exclamation-octagon-fill:before{content:""}.bi-exclamation-octagon:before{content:""}.bi-exclamation-square-fill:before{content:""}.bi-exclamation-square:before{content:""}.bi-exclamation-triangle-fill:before{content:""}.bi-exclamation-triangle:before{content:""}.bi-exclamation:before{content:""}.bi-exclude:before{content:""}.bi-eye-fill:before{content:""}.bi-eye-slash-fill:before{content:""}.bi-eye-slash:before{content:""}.bi-eye:before{content:""}.bi-eyedropper:before{content:""}.bi-eyeglasses:before{content:""}.bi-facebook:before{content:""}.bi-file-arrow-down-fill:before{content:""}.bi-file-arrow-down:before{content:""}.bi-file-arrow-up-fill:before{content:""}.bi-file-arrow-up:before{content:""}.bi-file-bar-graph-fill:before{content:""}.bi-file-bar-graph:before{content:""}.bi-file-binary-fill:before{content:""}.bi-file-binary:before{content:""}.bi-file-break-fill:before{content:""}.bi-file-break:before{content:""}.bi-file-check-fill:before{content:""}.bi-file-check:before{content:""}.bi-file-code-fill:before{content:""}.bi-file-code:before{content:""}.bi-file-diff-fill:before{content:""}.bi-file-diff:before{content:""}.bi-file-earmark-arrow-down-fill:before{content:""}.bi-file-earmark-arrow-down:before{content:""}.bi-file-earmark-arrow-up-fill:before{content:""}.bi-file-earmark-arrow-up:before{content:""}.bi-file-earmark-bar-graph-fill:before{content:""}.bi-file-earmark-bar-graph:before{content:""}.bi-file-earmark-binary-fill:before{content:""}.bi-file-earmark-binary:before{content:""}.bi-file-earmark-break-fill:before{content:""}.bi-file-earmark-break:before{content:""}.bi-file-earmark-check-fill:before{content:""}.bi-file-earmark-check:before{content:""}.bi-file-earmark-code-fill:before{content:""}.bi-file-earmark-code:before{content:""}.bi-file-earmark-diff-fill:before{content:""}.bi-file-earmark-diff:before{content:""}.bi-file-earmark-easel-fill:before{content:""}.bi-file-earmark-easel:before{content:""}.bi-file-earmark-excel-fill:before{content:""}.bi-file-earmark-excel:before{content:""}.bi-file-earmark-fill:before{content:""}.bi-file-earmark-font-fill:before{content:""}.bi-file-earmark-font:before{content:""}.bi-file-earmark-image-fill:before{content:""}.bi-file-earmark-image:before{content:""}.bi-file-earmark-lock-fill:before{content:""}.bi-file-earmark-lock:before{content:""}.bi-file-earmark-lock2-fill:before{content:""}.bi-file-earmark-lock2:before{content:""}.bi-file-earmark-medical-fill:before{content:""}.bi-file-earmark-medical:before{content:""}.bi-file-earmark-minus-fill:before{content:""}.bi-file-earmark-minus:before{content:""}.bi-file-earmark-music-fill:before{content:""}.bi-file-earmark-music:before{content:""}.bi-file-earmark-person-fill:before{content:""}.bi-file-earmark-person:before{content:""}.bi-file-earmark-play-fill:before{content:""}.bi-file-earmark-play:before{content:""}.bi-file-earmark-plus-fill:before{content:""}.bi-file-earmark-plus:before{content:""}.bi-file-earmark-post-fill:before{content:""}.bi-file-earmark-post:before{content:""}.bi-file-earmark-ppt-fill:before{content:""}.bi-file-earmark-ppt:before{content:""}.bi-file-earmark-richtext-fill:before{content:""}.bi-file-earmark-richtext:before{content:""}.bi-file-earmark-ruled-fill:before{content:""}.bi-file-earmark-ruled:before{content:""}.bi-file-earmark-slides-fill:before{content:""}.bi-file-earmark-slides:before{content:""}.bi-file-earmark-spreadsheet-fill:before{content:""}.bi-file-earmark-spreadsheet:before{content:""}.bi-file-earmark-text-fill:before{content:""}.bi-file-earmark-text:before{content:""}.bi-file-earmark-word-fill:before{content:""}.bi-file-earmark-word:before{content:""}.bi-file-earmark-x-fill:before{content:""}.bi-file-earmark-x:before{content:""}.bi-file-earmark-zip-fill:before{content:""}.bi-file-earmark-zip:before{content:""}.bi-file-earmark:before{content:""}.bi-file-easel-fill:before{content:""}.bi-file-easel:before{content:""}.bi-file-excel-fill:before{content:""}.bi-file-excel:before{content:""}.bi-file-fill:before{content:""}.bi-file-font-fill:before{content:""}.bi-file-font:before{content:""}.bi-file-image-fill:before{content:""}.bi-file-image:before{content:""}.bi-file-lock-fill:before{content:""}.bi-file-lock:before{content:""}.bi-file-lock2-fill:before{content:""}.bi-file-lock2:before{content:""}.bi-file-medical-fill:before{content:""}.bi-file-medical:before{content:""}.bi-file-minus-fill:before{content:""}.bi-file-minus:before{content:""}.bi-file-music-fill:before{content:""}.bi-file-music:before{content:""}.bi-file-person-fill:before{content:""}.bi-file-person:before{content:""}.bi-file-play-fill:before{content:""}.bi-file-play:before{content:""}.bi-file-plus-fill:before{content:""}.bi-file-plus:before{content:""}.bi-file-post-fill:before{content:""}.bi-file-post:before{content:""}.bi-file-ppt-fill:before{content:""}.bi-file-ppt:before{content:""}.bi-file-richtext-fill:before{content:""}.bi-file-richtext:before{content:""}.bi-file-ruled-fill:before{content:""}.bi-file-ruled:before{content:""}.bi-file-slides-fill:before{content:""}.bi-file-slides:before{content:""}.bi-file-spreadsheet-fill:before{content:""}.bi-file-spreadsheet:before{content:""}.bi-file-text-fill:before{content:""}.bi-file-text:before{content:""}.bi-file-word-fill:before{content:""}.bi-file-word:before{content:""}.bi-file-x-fill:before{content:""}.bi-file-x:before{content:""}.bi-file-zip-fill:before{content:""}.bi-file-zip:before{content:""}.bi-file:before{content:""}.bi-files-alt:before{content:""}.bi-files:before{content:""}.bi-film:before{content:""}.bi-filter-circle-fill:before{content:""}.bi-filter-circle:before{content:""}.bi-filter-left:before{content:""}.bi-filter-right:before{content:""}.bi-filter-square-fill:before{content:""}.bi-filter-square:before{content:""}.bi-filter:before{content:""}.bi-flag-fill:before{content:""}.bi-flag:before{content:""}.bi-flower1:before{content:""}.bi-flower2:before{content:""}.bi-flower3:before{content:""}.bi-folder-check:before{content:""}.bi-folder-fill:before{content:""}.bi-folder-minus:before{content:""}.bi-folder-plus:before{content:""}.bi-folder-symlink-fill:before{content:""}.bi-folder-symlink:before{content:""}.bi-folder-x:before{content:""}.bi-folder:before{content:""}.bi-folder2-open:before{content:""}.bi-folder2:before{content:""}.bi-fonts:before{content:""}.bi-forward-fill:before{content:""}.bi-forward:before{content:""}.bi-front:before{content:""}.bi-fullscreen-exit:before{content:""}.bi-fullscreen:before{content:""}.bi-funnel-fill:before{content:""}.bi-funnel:before{content:""}.bi-gear-fill:before{content:""}.bi-gear-wide-connected:before{content:""}.bi-gear-wide:before{content:""}.bi-gear:before{content:""}.bi-gem:before{content:""}.bi-geo-alt-fill:before{content:""}.bi-geo-alt:before{content:""}.bi-geo-fill:before{content:""}.bi-geo:before{content:""}.bi-gift-fill:before{content:""}.bi-gift:before{content:""}.bi-github:before{content:""}.bi-globe:before{content:""}.bi-globe2:before{content:""}.bi-google:before{content:""}.bi-graph-down:before{content:""}.bi-graph-up:before{content:""}.bi-grid-1x2-fill:before{content:""}.bi-grid-1x2:before{content:""}.bi-grid-3x2-gap-fill:before{content:""}.bi-grid-3x2-gap:before{content:""}.bi-grid-3x2:before{content:""}.bi-grid-3x3-gap-fill:before{content:""}.bi-grid-3x3-gap:before{content:""}.bi-grid-3x3:before{content:""}.bi-grid-fill:before{content:""}.bi-grid:before{content:""}.bi-grip-horizontal:before{content:""}.bi-grip-vertical:before{content:""}.bi-hammer:before{content:""}.bi-hand-index-fill:before{content:""}.bi-hand-index-thumb-fill:before{content:""}.bi-hand-index-thumb:before{content:""}.bi-hand-index:before{content:""}.bi-hand-thumbs-down-fill:before{content:""}.bi-hand-thumbs-down:before{content:""}.bi-hand-thumbs-up-fill:before{content:""}.bi-hand-thumbs-up:before{content:""}.bi-handbag-fill:before{content:""}.bi-handbag:before{content:""}.bi-hash:before{content:""}.bi-hdd-fill:before{content:""}.bi-hdd-network-fill:before{content:""}.bi-hdd-network:before{content:""}.bi-hdd-rack-fill:before{content:""}.bi-hdd-rack:before{content:""}.bi-hdd-stack-fill:before{content:""}.bi-hdd-stack:before{content:""}.bi-hdd:before{content:""}.bi-headphones:before{content:""}.bi-headset:before{content:""}.bi-heart-fill:before{content:""}.bi-heart-half:before{content:""}.bi-heart:before{content:""}.bi-heptagon-fill:before{content:""}.bi-heptagon-half:before{content:""}.bi-heptagon:before{content:""}.bi-hexagon-fill:before{content:""}.bi-hexagon-half:before{content:""}.bi-hexagon:before{content:""}.bi-hourglass-bottom:before{content:""}.bi-hourglass-split:before{content:""}.bi-hourglass-top:before{content:""}.bi-hourglass:before{content:""}.bi-house-door-fill:before{content:""}.bi-house-door:before{content:""}.bi-house-fill:before{content:""}.bi-house:before{content:""}.bi-hr:before{content:""}.bi-hurricane:before{content:""}.bi-image-alt:before{content:""}.bi-image-fill:before{content:""}.bi-image:before{content:""}.bi-images:before{content:""}.bi-inbox-fill:before{content:""}.bi-inbox:before{content:""}.bi-inboxes-fill:before{content:""}.bi-inboxes:before{content:""}.bi-info-circle-fill:before{content:""}.bi-info-circle:before{content:""}.bi-info-square-fill:before{content:""}.bi-info-square:before{content:""}.bi-info:before{content:""}.bi-input-cursor-text:before{content:""}.bi-input-cursor:before{content:""}.bi-instagram:before{content:""}.bi-intersect:before{content:""}.bi-journal-album:before{content:""}.bi-journal-arrow-down:before{content:""}.bi-journal-arrow-up:before{content:""}.bi-journal-bookmark-fill:before{content:""}.bi-journal-bookmark:before{content:""}.bi-journal-check:before{content:""}.bi-journal-code:before{content:""}.bi-journal-medical:before{content:""}.bi-journal-minus:before{content:""}.bi-journal-plus:before{content:""}.bi-journal-richtext:before{content:""}.bi-journal-text:before{content:""}.bi-journal-x:before{content:""}.bi-journal:before{content:""}.bi-journals:before{content:""}.bi-joystick:before{content:""}.bi-justify-left:before{content:""}.bi-justify-right:before{content:""}.bi-justify:before{content:""}.bi-kanban-fill:before{content:""}.bi-kanban:before{content:""}.bi-key-fill:before{content:""}.bi-key:before{content:""}.bi-keyboard-fill:before{content:""}.bi-keyboard:before{content:""}.bi-ladder:before{content:""}.bi-lamp-fill:before{content:""}.bi-lamp:before{content:""}.bi-laptop-fill:before{content:""}.bi-laptop:before{content:""}.bi-layer-backward:before{content:""}.bi-layer-forward:before{content:""}.bi-layers-fill:before{content:""}.bi-layers-half:before{content:""}.bi-layers:before{content:""}.bi-layout-sidebar-inset-reverse:before{content:""}.bi-layout-sidebar-inset:before{content:""}.bi-layout-sidebar-reverse:before{content:""}.bi-layout-sidebar:before{content:""}.bi-layout-split:before{content:""}.bi-layout-text-sidebar-reverse:before{content:""}.bi-layout-text-sidebar:before{content:""}.bi-layout-text-window-reverse:before{content:""}.bi-layout-text-window:before{content:""}.bi-layout-three-columns:before{content:""}.bi-layout-wtf:before{content:""}.bi-life-preserver:before{content:""}.bi-lightbulb-fill:before{content:""}.bi-lightbulb-off-fill:before{content:""}.bi-lightbulb-off:before{content:""}.bi-lightbulb:before{content:""}.bi-lightning-charge-fill:before{content:""}.bi-lightning-charge:before{content:""}.bi-lightning-fill:before{content:""}.bi-lightning:before{content:""}.bi-link-45deg:before{content:""}.bi-link:before{content:""}.bi-linkedin:before{content:""}.bi-list-check:before{content:""}.bi-list-nested:before{content:""}.bi-list-ol:before{content:""}.bi-list-stars:before{content:""}.bi-list-task:before{content:""}.bi-list-ul:before{content:""}.bi-list:before{content:""}.bi-lock-fill:before{content:""}.bi-lock:before{content:""}.bi-mailbox:before{content:""}.bi-mailbox2:before{content:""}.bi-map-fill:before{content:""}.bi-map:before{content:""}.bi-markdown-fill:before{content:""}.bi-markdown:before{content:""}.bi-mask:before{content:""}.bi-megaphone-fill:before{content:""}.bi-megaphone:before{content:""}.bi-menu-app-fill:before{content:""}.bi-menu-app:before{content:""}.bi-menu-button-fill:before{content:""}.bi-menu-button-wide-fill:before{content:""}.bi-menu-button-wide:before{content:""}.bi-menu-button:before{content:""}.bi-menu-down:before{content:""}.bi-menu-up:before{content:""}.bi-mic-fill:before{content:""}.bi-mic-mute-fill:before{content:""}.bi-mic-mute:before{content:""}.bi-mic:before{content:""}.bi-minecart-loaded:before{content:""}.bi-minecart:before{content:""}.bi-moisture:before{content:""}.bi-moon-fill:before{content:""}.bi-moon-stars-fill:before{content:""}.bi-moon-stars:before{content:""}.bi-moon:before{content:""}.bi-mouse-fill:before{content:""}.bi-mouse:before{content:""}.bi-mouse2-fill:before{content:""}.bi-mouse2:before{content:""}.bi-mouse3-fill:before{content:""}.bi-mouse3:before{content:""}.bi-music-note-beamed:before{content:""}.bi-music-note-list:before{content:""}.bi-music-note:before{content:""}.bi-music-player-fill:before{content:""}.bi-music-player:before{content:""}.bi-newspaper:before{content:""}.bi-node-minus-fill:before{content:""}.bi-node-minus:before{content:""}.bi-node-plus-fill:before{content:""}.bi-node-plus:before{content:""}.bi-nut-fill:before{content:""}.bi-nut:before{content:""}.bi-octagon-fill:before{content:""}.bi-octagon-half:before{content:""}.bi-octagon:before{content:""}.bi-option:before{content:""}.bi-outlet:before{content:""}.bi-paint-bucket:before{content:""}.bi-palette-fill:before{content:""}.bi-palette:before{content:""}.bi-palette2:before{content:""}.bi-paperclip:before{content:""}.bi-paragraph:before{content:""}.bi-patch-check-fill:before{content:""}.bi-patch-check:before{content:""}.bi-patch-exclamation-fill:before{content:""}.bi-patch-exclamation:before{content:""}.bi-patch-minus-fill:before{content:""}.bi-patch-minus:before{content:""}.bi-patch-plus-fill:before{content:""}.bi-patch-plus:before{content:""}.bi-patch-question-fill:before{content:""}.bi-patch-question:before{content:""}.bi-pause-btn-fill:before{content:""}.bi-pause-btn:before{content:""}.bi-pause-circle-fill:before{content:""}.bi-pause-circle:before{content:""}.bi-pause-fill:before{content:""}.bi-pause:before{content:""}.bi-peace-fill:before{content:""}.bi-peace:before{content:""}.bi-pen-fill:before{content:""}.bi-pen:before{content:""}.bi-pencil-fill:before{content:""}.bi-pencil-square:before{content:""}.bi-pencil:before{content:""}.bi-pentagon-fill:before{content:""}.bi-pentagon-half:before{content:""}.bi-pentagon:before{content:""}.bi-people-fill:before{content:""}.bi-people:before{content:""}.bi-percent:before{content:""}.bi-person-badge-fill:before{content:""}.bi-person-badge:before{content:""}.bi-person-bounding-box:before{content:""}.bi-person-check-fill:before{content:""}.bi-person-check:before{content:""}.bi-person-circle:before{content:""}.bi-person-dash-fill:before{content:""}.bi-person-dash:before{content:""}.bi-person-fill:before{content:""}.bi-person-lines-fill:before{content:""}.bi-person-plus-fill:before{content:""}.bi-person-plus:before{content:""}.bi-person-square:before{content:""}.bi-person-x-fill:before{content:""}.bi-person-x:before{content:""}.bi-person:before{content:""}.bi-phone-fill:before{content:""}.bi-phone-landscape-fill:before{content:""}.bi-phone-landscape:before{content:""}.bi-phone-vibrate-fill:before{content:""}.bi-phone-vibrate:before{content:""}.bi-phone:before{content:""}.bi-pie-chart-fill:before{content:""}.bi-pie-chart:before{content:""}.bi-pin-angle-fill:before{content:""}.bi-pin-angle:before{content:""}.bi-pin-fill:before{content:""}.bi-pin:before{content:""}.bi-pip-fill:before{content:""}.bi-pip:before{content:""}.bi-play-btn-fill:before{content:""}.bi-play-btn:before{content:""}.bi-play-circle-fill:before{content:""}.bi-play-circle:before{content:""}.bi-play-fill:before{content:""}.bi-play:before{content:""}.bi-plug-fill:before{content:""}.bi-plug:before{content:""}.bi-plus-circle-dotted:before{content:""}.bi-plus-circle-fill:before{content:""}.bi-plus-circle:before{content:""}.bi-plus-square-dotted:before{content:""}.bi-plus-square-fill:before{content:""}.bi-plus-square:before{content:""}.bi-plus:before{content:""}.bi-power:before{content:""}.bi-printer-fill:before{content:""}.bi-printer:before{content:""}.bi-puzzle-fill:before{content:""}.bi-puzzle:before{content:""}.bi-question-circle-fill:before{content:""}.bi-question-circle:before{content:""}.bi-question-diamond-fill:before{content:""}.bi-question-diamond:before{content:""}.bi-question-octagon-fill:before{content:""}.bi-question-octagon:before{content:""}.bi-question-square-fill:before{content:""}.bi-question-square:before{content:""}.bi-question:before{content:""}.bi-rainbow:before{content:""}.bi-receipt-cutoff:before{content:""}.bi-receipt:before{content:""}.bi-reception-0:before{content:""}.bi-reception-1:before{content:""}.bi-reception-2:before{content:""}.bi-reception-3:before{content:""}.bi-reception-4:before{content:""}.bi-record-btn-fill:before{content:""}.bi-record-btn:before{content:""}.bi-record-circle-fill:before{content:""}.bi-record-circle:before{content:""}.bi-record-fill:before{content:""}.bi-record:before{content:""}.bi-record2-fill:before{content:""}.bi-record2:before{content:""}.bi-reply-all-fill:before{content:""}.bi-reply-all:before{content:""}.bi-reply-fill:before{content:""}.bi-reply:before{content:""}.bi-rss-fill:before{content:""}.bi-rss:before{content:""}.bi-rulers:before{content:""}.bi-save-fill:before{content:""}.bi-save:before{content:""}.bi-save2-fill:before{content:""}.bi-save2:before{content:""}.bi-scissors:before{content:""}.bi-screwdriver:before{content:""}.bi-search:before{content:""}.bi-segmented-nav:before{content:""}.bi-server:before{content:""}.bi-share-fill:before{content:""}.bi-share:before{content:""}.bi-shield-check:before{content:""}.bi-shield-exclamation:before{content:""}.bi-shield-fill-check:before{content:""}.bi-shield-fill-exclamation:before{content:""}.bi-shield-fill-minus:before{content:""}.bi-shield-fill-plus:before{content:""}.bi-shield-fill-x:before{content:""}.bi-shield-fill:before{content:""}.bi-shield-lock-fill:before{content:""}.bi-shield-lock:before{content:""}.bi-shield-minus:before{content:""}.bi-shield-plus:before{content:""}.bi-shield-shaded:before{content:""}.bi-shield-slash-fill:before{content:""}.bi-shield-slash:before{content:""}.bi-shield-x:before{content:""}.bi-shield:before{content:""}.bi-shift-fill:before{content:""}.bi-shift:before{content:""}.bi-shop-window:before{content:""}.bi-shop:before{content:""}.bi-shuffle:before{content:""}.bi-signpost-2-fill:before{content:""}.bi-signpost-2:before{content:""}.bi-signpost-fill:before{content:""}.bi-signpost-split-fill:before{content:""}.bi-signpost-split:before{content:""}.bi-signpost:before{content:""}.bi-sim-fill:before{content:""}.bi-sim:before{content:""}.bi-skip-backward-btn-fill:before{content:""}.bi-skip-backward-btn:before{content:""}.bi-skip-backward-circle-fill:before{content:""}.bi-skip-backward-circle:before{content:""}.bi-skip-backward-fill:before{content:""}.bi-skip-backward:before{content:""}.bi-skip-end-btn-fill:before{content:""}.bi-skip-end-btn:before{content:""}.bi-skip-end-circle-fill:before{content:""}.bi-skip-end-circle:before{content:""}.bi-skip-end-fill:before{content:""}.bi-skip-end:before{content:""}.bi-skip-forward-btn-fill:before{content:""}.bi-skip-forward-btn:before{content:""}.bi-skip-forward-circle-fill:before{content:""}.bi-skip-forward-circle:before{content:""}.bi-skip-forward-fill:before{content:""}.bi-skip-forward:before{content:""}.bi-skip-start-btn-fill:before{content:""}.bi-skip-start-btn:before{content:""}.bi-skip-start-circle-fill:before{content:""}.bi-skip-start-circle:before{content:""}.bi-skip-start-fill:before{content:""}.bi-skip-start:before{content:""}.bi-slack:before{content:""}.bi-slash-circle-fill:before{content:""}.bi-slash-circle:before{content:""}.bi-slash-square-fill:before{content:""}.bi-slash-square:before{content:""}.bi-slash:before{content:""}.bi-sliders:before{content:""}.bi-smartwatch:before{content:""}.bi-snow:before{content:""}.bi-snow2:before{content:""}.bi-snow3:before{content:""}.bi-sort-alpha-down-alt:before{content:""}.bi-sort-alpha-down:before{content:""}.bi-sort-alpha-up-alt:before{content:""}.bi-sort-alpha-up:before{content:""}.bi-sort-down-alt:before{content:""}.bi-sort-down:before{content:""}.bi-sort-numeric-down-alt:before{content:""}.bi-sort-numeric-down:before{content:""}.bi-sort-numeric-up-alt:before{content:""}.bi-sort-numeric-up:before{content:""}.bi-sort-up-alt:before{content:""}.bi-sort-up:before{content:""}.bi-soundwave:before{content:""}.bi-speaker-fill:before{content:""}.bi-speaker:before{content:""}.bi-speedometer:before{content:""}.bi-speedometer2:before{content:""}.bi-spellcheck:before{content:""}.bi-square-fill:before{content:""}.bi-square-half:before{content:""}.bi-square:before{content:""}.bi-stack:before{content:""}.bi-star-fill:before{content:""}.bi-star-half:before{content:""}.bi-star:before{content:""}.bi-stars:before{content:""}.bi-stickies-fill:before{content:""}.bi-stickies:before{content:""}.bi-sticky-fill:before{content:""}.bi-sticky:before{content:""}.bi-stop-btn-fill:before{content:""}.bi-stop-btn:before{content:""}.bi-stop-circle-fill:before{content:""}.bi-stop-circle:before{content:""}.bi-stop-fill:before{content:""}.bi-stop:before{content:""}.bi-stoplights-fill:before{content:""}.bi-stoplights:before{content:""}.bi-stopwatch-fill:before{content:""}.bi-stopwatch:before{content:""}.bi-subtract:before{content:""}.bi-suit-club-fill:before{content:""}.bi-suit-club:before{content:""}.bi-suit-diamond-fill:before{content:""}.bi-suit-diamond:before{content:""}.bi-suit-heart-fill:before{content:""}.bi-suit-heart:before{content:""}.bi-suit-spade-fill:before{content:""}.bi-suit-spade:before{content:""}.bi-sun-fill:before{content:""}.bi-sun:before{content:""}.bi-sunglasses:before{content:""}.bi-sunrise-fill:before{content:""}.bi-sunrise:before{content:""}.bi-sunset-fill:before{content:""}.bi-sunset:before{content:""}.bi-symmetry-horizontal:before{content:""}.bi-symmetry-vertical:before{content:""}.bi-table:before{content:""}.bi-tablet-fill:before{content:""}.bi-tablet-landscape-fill:before{content:""}.bi-tablet-landscape:before{content:""}.bi-tablet:before{content:""}.bi-tag-fill:before{content:""}.bi-tag:before{content:""}.bi-tags-fill:before{content:""}.bi-tags:before{content:""}.bi-telegram:before{content:""}.bi-telephone-fill:before{content:""}.bi-telephone-forward-fill:before{content:""}.bi-telephone-forward:before{content:""}.bi-telephone-inbound-fill:before{content:""}.bi-telephone-inbound:before{content:""}.bi-telephone-minus-fill:before{content:""}.bi-telephone-minus:before{content:""}.bi-telephone-outbound-fill:before{content:""}.bi-telephone-outbound:before{content:""}.bi-telephone-plus-fill:before{content:""}.bi-telephone-plus:before{content:""}.bi-telephone-x-fill:before{content:""}.bi-telephone-x:before{content:""}.bi-telephone:before{content:""}.bi-terminal-fill:before{content:""}.bi-terminal:before{content:""}.bi-text-center:before{content:""}.bi-text-indent-left:before{content:""}.bi-text-indent-right:before{content:""}.bi-text-left:before{content:""}.bi-text-paragraph:before{content:""}.bi-text-right:before{content:""}.bi-textarea-resize:before{content:""}.bi-textarea-t:before{content:""}.bi-textarea:before{content:""}.bi-thermometer-half:before{content:""}.bi-thermometer-high:before{content:""}.bi-thermometer-low:before{content:""}.bi-thermometer-snow:before{content:""}.bi-thermometer-sun:before{content:""}.bi-thermometer:before{content:""}.bi-three-dots-vertical:before{content:""}.bi-three-dots:before{content:""}.bi-toggle-off:before{content:""}.bi-toggle-on:before{content:""}.bi-toggle2-off:before{content:""}.bi-toggle2-on:before{content:""}.bi-toggles:before{content:""}.bi-toggles2:before{content:""}.bi-tools:before{content:""}.bi-tornado:before{content:""}.bi-trash-fill:before{content:""}.bi-trash:before{content:""}.bi-trash2-fill:before{content:""}.bi-trash2:before{content:""}.bi-tree-fill:before{content:""}.bi-tree:before{content:""}.bi-triangle-fill:before{content:""}.bi-triangle-half:before{content:""}.bi-triangle:before{content:""}.bi-trophy-fill:before{content:""}.bi-trophy:before{content:""}.bi-tropical-storm:before{content:""}.bi-truck-flatbed:before{content:""}.bi-truck:before{content:""}.bi-tsunami:before{content:""}.bi-tv-fill:before{content:""}.bi-tv:before{content:""}.bi-twitch:before{content:""}.bi-twitter:before{content:""}.bi-type-bold:before{content:""}.bi-type-h1:before{content:""}.bi-type-h2:before{content:""}.bi-type-h3:before{content:""}.bi-type-italic:before{content:""}.bi-type-strikethrough:before{content:""}.bi-type-underline:before{content:""}.bi-type:before{content:""}.bi-ui-checks-grid:before{content:""}.bi-ui-checks:before{content:""}.bi-ui-radios-grid:before{content:""}.bi-ui-radios:before{content:""}.bi-umbrella-fill:before{content:""}.bi-umbrella:before{content:""}.bi-union:before{content:""}.bi-unlock-fill:before{content:""}.bi-unlock:before{content:""}.bi-upc-scan:before{content:""}.bi-upc:before{content:""}.bi-upload:before{content:""}.bi-vector-pen:before{content:""}.bi-view-list:before{content:""}.bi-view-stacked:before{content:""}.bi-vinyl-fill:before{content:""}.bi-vinyl:before{content:""}.bi-voicemail:before{content:""}.bi-volume-down-fill:before{content:""}.bi-volume-down:before{content:""}.bi-volume-mute-fill:before{content:""}.bi-volume-mute:before{content:""}.bi-volume-off-fill:before{content:""}.bi-volume-off:before{content:""}.bi-volume-up-fill:before{content:""}.bi-volume-up:before{content:""}.bi-vr:before{content:""}.bi-wallet-fill:before{content:""}.bi-wallet:before{content:""}.bi-wallet2:before{content:""}.bi-watch:before{content:""}.bi-water:before{content:""}.bi-whatsapp:before{content:""}.bi-wifi-1:before{content:""}.bi-wifi-2:before{content:""}.bi-wifi-off:before{content:""}.bi-wifi:before{content:""}.bi-wind:before{content:""}.bi-window-dock:before{content:""}.bi-window-sidebar:before{content:""}.bi-window:before{content:""}.bi-wrench:before{content:""}.bi-x-circle-fill:before{content:""}.bi-x-circle:before{content:""}.bi-x-diamond-fill:before{content:""}.bi-x-diamond:before{content:""}.bi-x-octagon-fill:before{content:""}.bi-x-octagon:before{content:""}.bi-x-square-fill:before{content:""}.bi-x-square:before{content:""}.bi-x:before{content:""}.bi-youtube:before{content:""}.bi-zoom-in:before{content:""}.bi-zoom-out:before{content:""}.bi-bank:before{content:""}.bi-bank2:before{content:""}.bi-bell-slash-fill:before{content:""}.bi-bell-slash:before{content:""}.bi-cash-coin:before{content:""}.bi-check-lg:before{content:""}.bi-coin:before{content:""}.bi-currency-bitcoin:before{content:""}.bi-currency-dollar:before{content:""}.bi-currency-euro:before{content:""}.bi-currency-exchange:before{content:""}.bi-currency-pound:before{content:""}.bi-currency-yen:before{content:""}.bi-dash-lg:before{content:""}.bi-exclamation-lg:before{content:""}.bi-file-earmark-pdf-fill:before{content:""}.bi-file-earmark-pdf:before{content:""}.bi-file-pdf-fill:before{content:""}.bi-file-pdf:before{content:""}.bi-gender-ambiguous:before{content:""}.bi-gender-female:before{content:""}.bi-gender-male:before{content:""}.bi-gender-trans:before{content:""}.bi-headset-vr:before{content:""}.bi-info-lg:before{content:""}.bi-mastodon:before{content:""}.bi-messenger:before{content:""}.bi-piggy-bank-fill:before{content:""}.bi-piggy-bank:before{content:""}.bi-pin-map-fill:before{content:""}.bi-pin-map:before{content:""}.bi-plus-lg:before{content:""}.bi-question-lg:before{content:""}.bi-recycle:before{content:""}.bi-reddit:before{content:""}.bi-safe-fill:before{content:""}.bi-safe2-fill:before{content:""}.bi-safe2:before{content:""}.bi-sd-card-fill:before{content:""}.bi-sd-card:before{content:""}.bi-skype:before{content:""}.bi-slash-lg:before{content:""}.bi-translate:before{content:""}.bi-x-lg:before{content:""}.bi-safe:before{content:""}.bi-apple:before{content:""}.bi-microsoft:before{content:""}.bi-windows:before{content:""}.bi-behance:before{content:""}.bi-dribbble:before{content:""}.bi-line:before{content:""}.bi-medium:before{content:""}.bi-paypal:before{content:""}.bi-pinterest:before{content:""}.bi-signal:before{content:""}.bi-snapchat:before{content:""}.bi-spotify:before{content:""}.bi-stack-overflow:before{content:""}.bi-strava:before{content:""}.bi-wordpress:before{content:""}.bi-vimeo:before{content:""}.bi-activity:before{content:""}.bi-easel2-fill:before{content:""}.bi-easel2:before{content:""}.bi-easel3-fill:before{content:""}.bi-easel3:before{content:""}.bi-fan:before{content:""}.bi-fingerprint:before{content:""}.bi-graph-down-arrow:before{content:""}.bi-graph-up-arrow:before{content:""}.bi-hypnotize:before{content:""}.bi-magic:before{content:""}.bi-person-rolodex:before{content:""}.bi-person-video:before{content:""}.bi-person-video2:before{content:""}.bi-person-video3:before{content:""}.bi-person-workspace:before{content:""}.bi-radioactive:before{content:""}.bi-webcam-fill:before{content:""}.bi-webcam:before{content:""}.bi-yin-yang:before{content:""}.bi-bandaid-fill:before{content:""}.bi-bandaid:before{content:""}.bi-bluetooth:before{content:""}.bi-body-text:before{content:""}.bi-boombox:before{content:""}.bi-boxes:before{content:""}.bi-dpad-fill:before{content:""}.bi-dpad:before{content:""}.bi-ear-fill:before{content:""}.bi-ear:before{content:""}.bi-envelope-check-fill:before{content:""}.bi-envelope-check:before{content:""}.bi-envelope-dash-fill:before{content:""}.bi-envelope-dash:before{content:""}.bi-envelope-exclamation-fill:before{content:""}.bi-envelope-exclamation:before{content:""}.bi-envelope-plus-fill:before{content:""}.bi-envelope-plus:before{content:""}.bi-envelope-slash-fill:before{content:""}.bi-envelope-slash:before{content:""}.bi-envelope-x-fill:before{content:""}.bi-envelope-x:before{content:""}.bi-explicit-fill:before{content:""}.bi-explicit:before{content:""}.bi-git:before{content:""}.bi-infinity:before{content:""}.bi-list-columns-reverse:before{content:""}.bi-list-columns:before{content:""}.bi-meta:before{content:""}.bi-nintendo-switch:before{content:""}.bi-pc-display-horizontal:before{content:""}.bi-pc-display:before{content:""}.bi-pc-horizontal:before{content:""}.bi-pc:before{content:""}.bi-playstation:before{content:""}.bi-plus-slash-minus:before{content:""}.bi-projector-fill:before{content:""}.bi-projector:before{content:""}.bi-qr-code-scan:before{content:""}.bi-qr-code:before{content:""}.bi-quora:before{content:""}.bi-quote:before{content:""}.bi-robot:before{content:""}.bi-send-check-fill:before{content:""}.bi-send-check:before{content:""}.bi-send-dash-fill:before{content:""}.bi-send-dash:before{content:""}.bi-send-exclamation-fill:before{content:""}.bi-send-exclamation:before{content:""}.bi-send-fill:before{content:""}.bi-send-plus-fill:before{content:""}.bi-send-plus:before{content:""}.bi-send-slash-fill:before{content:""}.bi-send-slash:before{content:""}.bi-send-x-fill:before{content:""}.bi-send-x:before{content:""}.bi-send:before{content:""}.bi-steam:before{content:""}.bi-terminal-dash:before{content:""}.bi-terminal-plus:before{content:""}.bi-terminal-split:before{content:""}.bi-ticket-detailed-fill:before{content:""}.bi-ticket-detailed:before{content:""}.bi-ticket-fill:before{content:""}.bi-ticket-perforated-fill:before{content:""}.bi-ticket-perforated:before{content:""}.bi-ticket:before{content:""}.bi-tiktok:before{content:""}.bi-window-dash:before{content:""}.bi-window-desktop:before{content:""}.bi-window-fullscreen:before{content:""}.bi-window-plus:before{content:""}.bi-window-split:before{content:""}.bi-window-stack:before{content:""}.bi-window-x:before{content:""}.bi-xbox:before{content:""}.bi-ethernet:before{content:""}.bi-hdmi-fill:before{content:""}.bi-hdmi:before{content:""}.bi-usb-c-fill:before{content:""}.bi-usb-c:before{content:""}.bi-usb-fill:before{content:""}.bi-usb-plug-fill:before{content:""}.bi-usb-plug:before{content:""}.bi-usb-symbol:before{content:""}.bi-usb:before{content:""}.bi-boombox-fill:before{content:""}.bi-displayport:before{content:""}.bi-gpu-card:before{content:""}.bi-memory:before{content:""}.bi-modem-fill:before{content:""}.bi-modem:before{content:""}.bi-motherboard-fill:before{content:""}.bi-motherboard:before{content:""}.bi-optical-audio-fill:before{content:""}.bi-optical-audio:before{content:""}.bi-pci-card:before{content:""}.bi-router-fill:before{content:""}.bi-router:before{content:""}.bi-thunderbolt-fill:before{content:""}.bi-thunderbolt:before{content:""}.bi-usb-drive-fill:before{content:""}.bi-usb-drive:before{content:""}.bi-usb-micro-fill:before{content:""}.bi-usb-micro:before{content:""}.bi-usb-mini-fill:before{content:""}.bi-usb-mini:before{content:""}.bi-cloud-haze2:before{content:""}.bi-device-hdd-fill:before{content:""}.bi-device-hdd:before{content:""}.bi-device-ssd-fill:before{content:""}.bi-device-ssd:before{content:""}.bi-displayport-fill:before{content:""}.bi-mortarboard-fill:before{content:""}.bi-mortarboard:before{content:""}.bi-terminal-x:before{content:""}.bi-arrow-through-heart-fill:before{content:""}.bi-arrow-through-heart:before{content:""}.bi-badge-sd-fill:before{content:""}.bi-badge-sd:before{content:""}.bi-bag-heart-fill:before{content:""}.bi-bag-heart:before{content:""}.bi-balloon-fill:before{content:""}.bi-balloon-heart-fill:before{content:""}.bi-balloon-heart:before{content:""}.bi-balloon:before{content:""}.bi-box2-fill:before{content:""}.bi-box2-heart-fill:before{content:""}.bi-box2-heart:before{content:""}.bi-box2:before{content:""}.bi-braces-asterisk:before{content:""}.bi-calendar-heart-fill:before{content:""}.bi-calendar-heart:before{content:""}.bi-calendar2-heart-fill:before{content:""}.bi-calendar2-heart:before{content:""}.bi-chat-heart-fill:before{content:""}.bi-chat-heart:before{content:""}.bi-chat-left-heart-fill:before{content:""}.bi-chat-left-heart:before{content:""}.bi-chat-right-heart-fill:before{content:""}.bi-chat-right-heart:before{content:""}.bi-chat-square-heart-fill:before{content:""}.bi-chat-square-heart:before{content:""}.bi-clipboard-check-fill:before{content:""}.bi-clipboard-data-fill:before{content:""}.bi-clipboard-fill:before{content:""}.bi-clipboard-heart-fill:before{content:""}.bi-clipboard-heart:before{content:""}.bi-clipboard-minus-fill:before{content:""}.bi-clipboard-plus-fill:before{content:""}.bi-clipboard-pulse:before{content:""}.bi-clipboard-x-fill:before{content:""}.bi-clipboard2-check-fill:before{content:""}.bi-clipboard2-check:before{content:""}.bi-clipboard2-data-fill:before{content:""}.bi-clipboard2-data:before{content:""}.bi-clipboard2-fill:before{content:""}.bi-clipboard2-heart-fill:before{content:""}.bi-clipboard2-heart:before{content:""}.bi-clipboard2-minus-fill:before{content:""}.bi-clipboard2-minus:before{content:""}.bi-clipboard2-plus-fill:before{content:""}.bi-clipboard2-plus:before{content:""}.bi-clipboard2-pulse-fill:before{content:""}.bi-clipboard2-pulse:before{content:""}.bi-clipboard2-x-fill:before{content:""}.bi-clipboard2-x:before{content:""}.bi-clipboard2:before{content:""}.bi-emoji-kiss-fill:before{content:""}.bi-emoji-kiss:before{content:""}.bi-envelope-heart-fill:before{content:""}.bi-envelope-heart:before{content:""}.bi-envelope-open-heart-fill:before{content:""}.bi-envelope-open-heart:before{content:""}.bi-envelope-paper-fill:before{content:""}.bi-envelope-paper-heart-fill:before{content:""}.bi-envelope-paper-heart:before{content:""}.bi-envelope-paper:before{content:""}.bi-filetype-aac:before{content:""}.bi-filetype-ai:before{content:""}.bi-filetype-bmp:before{content:""}.bi-filetype-cs:before{content:""}.bi-filetype-css:before{content:""}.bi-filetype-csv:before{content:""}.bi-filetype-doc:before{content:""}.bi-filetype-docx:before{content:""}.bi-filetype-exe:before{content:""}.bi-filetype-gif:before{content:""}.bi-filetype-heic:before{content:""}.bi-filetype-html:before{content:""}.bi-filetype-java:before{content:""}.bi-filetype-jpg:before{content:""}.bi-filetype-js:before{content:""}.bi-filetype-jsx:before{content:""}.bi-filetype-key:before{content:""}.bi-filetype-m4p:before{content:""}.bi-filetype-md:before{content:""}.bi-filetype-mdx:before{content:""}.bi-filetype-mov:before{content:""}.bi-filetype-mp3:before{content:""}.bi-filetype-mp4:before{content:""}.bi-filetype-otf:before{content:""}.bi-filetype-pdf:before{content:""}.bi-filetype-php:before{content:""}.bi-filetype-png:before{content:""}.bi-filetype-ppt:before{content:""}.bi-filetype-psd:before{content:""}.bi-filetype-py:before{content:""}.bi-filetype-raw:before{content:""}.bi-filetype-rb:before{content:""}.bi-filetype-sass:before{content:""}.bi-filetype-scss:before{content:""}.bi-filetype-sh:before{content:""}.bi-filetype-svg:before{content:""}.bi-filetype-tiff:before{content:""}.bi-filetype-tsx:before{content:""}.bi-filetype-ttf:before{content:""}.bi-filetype-txt:before{content:""}.bi-filetype-wav:before{content:""}.bi-filetype-woff:before{content:""}.bi-filetype-xls:before{content:""}.bi-filetype-xml:before{content:""}.bi-filetype-yml:before{content:""}.bi-heart-arrow:before{content:""}.bi-heart-pulse-fill:before{content:""}.bi-heart-pulse:before{content:""}.bi-heartbreak-fill:before{content:""}.bi-heartbreak:before{content:""}.bi-hearts:before{content:""}.bi-hospital-fill:before{content:""}.bi-hospital:before{content:""}.bi-house-heart-fill:before{content:""}.bi-house-heart:before{content:""}.bi-incognito:before{content:""}.bi-magnet-fill:before{content:""}.bi-magnet:before{content:""}.bi-person-heart:before{content:""}.bi-person-hearts:before{content:""}.bi-phone-flip:before{content:""}.bi-plugin:before{content:""}.bi-postage-fill:before{content:""}.bi-postage-heart-fill:before{content:""}.bi-postage-heart:before{content:""}.bi-postage:before{content:""}.bi-postcard-fill:before{content:""}.bi-postcard-heart-fill:before{content:""}.bi-postcard-heart:before{content:""}.bi-postcard:before{content:""}.bi-search-heart-fill:before{content:""}.bi-search-heart:before{content:""}.bi-sliders2-vertical:before{content:""}.bi-sliders2:before{content:""}.bi-trash3-fill:before{content:""}.bi-trash3:before{content:""}.bi-valentine:before{content:""}.bi-valentine2:before{content:""}.bi-wrench-adjustable-circle-fill:before{content:""}.bi-wrench-adjustable-circle:before{content:""}.bi-wrench-adjustable:before{content:""}.bi-filetype-json:before{content:""}.bi-filetype-pptx:before{content:""}.bi-filetype-xlsx:before{content:""}.bi-1-circle-fill:before{content:""}.bi-1-circle:before{content:""}.bi-1-square-fill:before{content:""}.bi-1-square:before{content:""}.bi-2-circle-fill:before{content:""}.bi-2-circle:before{content:""}.bi-2-square-fill:before{content:""}.bi-2-square:before{content:""}.bi-3-circle-fill:before{content:""}.bi-3-circle:before{content:""}.bi-3-square-fill:before{content:""}.bi-3-square:before{content:""}.bi-4-circle-fill:before{content:""}.bi-4-circle:before{content:""}.bi-4-square-fill:before{content:""}.bi-4-square:before{content:""}.bi-5-circle-fill:before{content:""}.bi-5-circle:before{content:""}.bi-5-square-fill:before{content:""}.bi-5-square:before{content:""}.bi-6-circle-fill:before{content:""}.bi-6-circle:before{content:""}.bi-6-square-fill:before{content:""}.bi-6-square:before{content:""}.bi-7-circle-fill:before{content:""}.bi-7-circle:before{content:""}.bi-7-square-fill:before{content:""}.bi-7-square:before{content:""}.bi-8-circle-fill:before{content:""}.bi-8-circle:before{content:""}.bi-8-square-fill:before{content:""}.bi-8-square:before{content:""}.bi-9-circle-fill:before{content:""}.bi-9-circle:before{content:""}.bi-9-square-fill:before{content:""}.bi-9-square:before{content:""}.bi-airplane-engines-fill:before{content:""}.bi-airplane-engines:before{content:""}.bi-airplane-fill:before{content:""}.bi-airplane:before{content:""}.bi-alexa:before{content:""}.bi-alipay:before{content:""}.bi-android:before{content:""}.bi-android2:before{content:""}.bi-box-fill:before{content:""}.bi-box-seam-fill:before{content:""}.bi-browser-chrome:before{content:""}.bi-browser-edge:before{content:""}.bi-browser-firefox:before{content:""}.bi-browser-safari:before{content:""}.bi-c-circle-fill:before{content:""}.bi-c-circle:before{content:""}.bi-c-square-fill:before{content:""}.bi-c-square:before{content:""}.bi-capsule-pill:before{content:""}.bi-capsule:before{content:""}.bi-car-front-fill:before{content:""}.bi-car-front:before{content:""}.bi-cassette-fill:before{content:""}.bi-cassette:before{content:""}.bi-cc-circle-fill:before{content:""}.bi-cc-circle:before{content:""}.bi-cc-square-fill:before{content:""}.bi-cc-square:before{content:""}.bi-cup-hot-fill:before{content:""}.bi-cup-hot:before{content:""}.bi-currency-rupee:before{content:""}.bi-dropbox:before{content:""}.bi-escape:before{content:""}.bi-fast-forward-btn-fill:before{content:""}.bi-fast-forward-btn:before{content:""}.bi-fast-forward-circle-fill:before{content:""}.bi-fast-forward-circle:before{content:""}.bi-fast-forward-fill:before{content:""}.bi-fast-forward:before{content:""}.bi-filetype-sql:before{content:""}.bi-fire:before{content:""}.bi-google-play:before{content:""}.bi-h-circle-fill:before{content:""}.bi-h-circle:before{content:""}.bi-h-square-fill:before{content:""}.bi-h-square:before{content:""}.bi-indent:before{content:""}.bi-lungs-fill:before{content:""}.bi-lungs:before{content:""}.bi-microsoft-teams:before{content:""}.bi-p-circle-fill:before{content:""}.bi-p-circle:before{content:""}.bi-p-square-fill:before{content:""}.bi-p-square:before{content:""}.bi-pass-fill:before{content:""}.bi-pass:before{content:""}.bi-prescription:before{content:""}.bi-prescription2:before{content:""}.bi-r-circle-fill:before{content:""}.bi-r-circle:before{content:""}.bi-r-square-fill:before{content:""}.bi-r-square:before{content:""}.bi-repeat-1:before{content:""}.bi-repeat:before{content:""}.bi-rewind-btn-fill:before{content:""}.bi-rewind-btn:before{content:""}.bi-rewind-circle-fill:before{content:""}.bi-rewind-circle:before{content:""}.bi-rewind-fill:before{content:""}.bi-rewind:before{content:""}.bi-train-freight-front-fill:before{content:""}.bi-train-freight-front:before{content:""}.bi-train-front-fill:before{content:""}.bi-train-front:before{content:""}.bi-train-lightrail-front-fill:before{content:""}.bi-train-lightrail-front:before{content:""}.bi-truck-front-fill:before{content:""}.bi-truck-front:before{content:""}.bi-ubuntu:before{content:""}.bi-unindent:before{content:""}.bi-unity:before{content:""}.bi-universal-access-circle:before{content:""}.bi-universal-access:before{content:""}.bi-virus:before{content:""}.bi-virus2:before{content:""}.bi-wechat:before{content:""}.bi-yelp:before{content:""}.bi-sign-stop-fill:before{content:""}.bi-sign-stop-lights-fill:before{content:""}.bi-sign-stop-lights:before{content:""}.bi-sign-stop:before{content:""}.bi-sign-turn-left-fill:before{content:""}.bi-sign-turn-left:before{content:""}.bi-sign-turn-right-fill:before{content:""}.bi-sign-turn-right:before{content:""}.bi-sign-turn-slight-left-fill:before{content:""}.bi-sign-turn-slight-left:before{content:""}.bi-sign-turn-slight-right-fill:before{content:""}.bi-sign-turn-slight-right:before{content:""}.bi-sign-yield-fill:before{content:""}.bi-sign-yield:before{content:""}.bi-ev-station-fill:before{content:""}.bi-ev-station:before{content:""}.bi-fuel-pump-diesel-fill:before{content:""}.bi-fuel-pump-diesel:before{content:""}.bi-fuel-pump-fill:before{content:""}.bi-fuel-pump:before{content:""}.bi-0-circle-fill:before{content:""}.bi-0-circle:before{content:""}.bi-0-square-fill:before{content:""}.bi-0-square:before{content:""}.bi-rocket-fill:before{content:""}.bi-rocket-takeoff-fill:before{content:""}.bi-rocket-takeoff:before{content:""}.bi-rocket:before{content:""}.bi-stripe:before{content:""}.bi-subscript:before{content:""}.bi-superscript:before{content:""}.bi-trello:before{content:""}.bi-envelope-at-fill:before{content:""}.bi-envelope-at:before{content:""}.bi-regex:before{content:""}.bi-text-wrap:before{content:""}.bi-sign-dead-end-fill:before{content:""}.bi-sign-dead-end:before{content:""}.bi-sign-do-not-enter-fill:before{content:""}.bi-sign-do-not-enter:before{content:""}.bi-sign-intersection-fill:before{content:""}.bi-sign-intersection-side-fill:before{content:""}.bi-sign-intersection-side:before{content:""}.bi-sign-intersection-t-fill:before{content:""}.bi-sign-intersection-t:before{content:""}.bi-sign-intersection-y-fill:before{content:""}.bi-sign-intersection-y:before{content:""}.bi-sign-intersection:before{content:""}.bi-sign-merge-left-fill:before{content:""}.bi-sign-merge-left:before{content:""}.bi-sign-merge-right-fill:before{content:""}.bi-sign-merge-right:before{content:""}.bi-sign-no-left-turn-fill:before{content:""}.bi-sign-no-left-turn:before{content:""}.bi-sign-no-parking-fill:before{content:""}.bi-sign-no-parking:before{content:""}.bi-sign-no-right-turn-fill:before{content:""}.bi-sign-no-right-turn:before{content:""}.bi-sign-railroad-fill:before{content:""}.bi-sign-railroad:before{content:""}.bi-building-add:before{content:""}.bi-building-check:before{content:""}.bi-building-dash:before{content:""}.bi-building-down:before{content:""}.bi-building-exclamation:before{content:""}.bi-building-fill-add:before{content:""}.bi-building-fill-check:before{content:""}.bi-building-fill-dash:before{content:""}.bi-building-fill-down:before{content:""}.bi-building-fill-exclamation:before{content:""}.bi-building-fill-gear:before{content:""}.bi-building-fill-lock:before{content:""}.bi-building-fill-slash:before{content:""}.bi-building-fill-up:before{content:""}.bi-building-fill-x:before{content:""}.bi-building-fill:before{content:""}.bi-building-gear:before{content:""}.bi-building-lock:before{content:""}.bi-building-slash:before{content:""}.bi-building-up:before{content:""}.bi-building-x:before{content:""}.bi-buildings-fill:before{content:""}.bi-buildings:before{content:""}.bi-bus-front-fill:before{content:""}.bi-bus-front:before{content:""}.bi-ev-front-fill:before{content:""}.bi-ev-front:before{content:""}.bi-globe-americas:before{content:""}.bi-globe-asia-australia:before{content:""}.bi-globe-central-south-asia:before{content:""}.bi-globe-europe-africa:before{content:""}.bi-house-add-fill:before{content:""}.bi-house-add:before{content:""}.bi-house-check-fill:before{content:""}.bi-house-check:before{content:""}.bi-house-dash-fill:before{content:""}.bi-house-dash:before{content:""}.bi-house-down-fill:before{content:""}.bi-house-down:before{content:""}.bi-house-exclamation-fill:before{content:""}.bi-house-exclamation:before{content:""}.bi-house-gear-fill:before{content:""}.bi-house-gear:before{content:""}.bi-house-lock-fill:before{content:""}.bi-house-lock:before{content:""}.bi-house-slash-fill:before{content:""}.bi-house-slash:before{content:""}.bi-house-up-fill:before{content:""}.bi-house-up:before{content:""}.bi-house-x-fill:before{content:""}.bi-house-x:before{content:""}.bi-person-add:before{content:""}.bi-person-down:before{content:""}.bi-person-exclamation:before{content:""}.bi-person-fill-add:before{content:""}.bi-person-fill-check:before{content:""}.bi-person-fill-dash:before{content:""}.bi-person-fill-down:before{content:""}.bi-person-fill-exclamation:before{content:""}.bi-person-fill-gear:before{content:""}.bi-person-fill-lock:before{content:""}.bi-person-fill-slash:before{content:""}.bi-person-fill-up:before{content:""}.bi-person-fill-x:before{content:""}.bi-person-gear:before{content:""}.bi-person-lock:before{content:""}.bi-person-slash:before{content:""}.bi-person-up:before{content:""}.bi-scooter:before{content:""}.bi-taxi-front-fill:before{content:""}.bi-taxi-front:before{content:""}.bi-amd:before{content:""}.bi-database-add:before{content:""}.bi-database-check:before{content:""}.bi-database-dash:before{content:""}.bi-database-down:before{content:""}.bi-database-exclamation:before{content:""}.bi-database-fill-add:before{content:""}.bi-database-fill-check:before{content:""}.bi-database-fill-dash:before{content:""}.bi-database-fill-down:before{content:""}.bi-database-fill-exclamation:before{content:""}.bi-database-fill-gear:before{content:""}.bi-database-fill-lock:before{content:""}.bi-database-fill-slash:before{content:""}.bi-database-fill-up:before{content:""}.bi-database-fill-x:before{content:""}.bi-database-fill:before{content:""}.bi-database-gear:before{content:""}.bi-database-lock:before{content:""}.bi-database-slash:before{content:""}.bi-database-up:before{content:""}.bi-database-x:before{content:""}.bi-database:before{content:""}.bi-houses-fill:before{content:""}.bi-houses:before{content:""}.bi-nvidia:before{content:""}.bi-person-vcard-fill:before{content:""}.bi-person-vcard:before{content:""}.bi-sina-weibo:before{content:""}.bi-tencent-qq:before{content:""}.bi-wikipedia:before{content:""}.bi-alphabet-uppercase:before{content:""}.bi-alphabet:before{content:""}.bi-amazon:before{content:""}.bi-arrows-collapse-vertical:before{content:""}.bi-arrows-expand-vertical:before{content:""}.bi-arrows-vertical:before{content:""}.bi-arrows:before{content:""}.bi-ban-fill:before{content:""}.bi-ban:before{content:""}.bi-bing:before{content:""}.bi-cake:before{content:""}.bi-cake2:before{content:""}.bi-cookie:before{content:""}.bi-copy:before{content:""}.bi-crosshair:before{content:""}.bi-crosshair2:before{content:""}.bi-emoji-astonished-fill:before{content:""}.bi-emoji-astonished:before{content:""}.bi-emoji-grimace-fill:before{content:""}.bi-emoji-grimace:before{content:""}.bi-emoji-grin-fill:before{content:""}.bi-emoji-grin:before{content:""}.bi-emoji-surprise-fill:before{content:""}.bi-emoji-surprise:before{content:""}.bi-emoji-tear-fill:before{content:""}.bi-emoji-tear:before{content:""}.bi-envelope-arrow-down-fill:before{content:""}.bi-envelope-arrow-down:before{content:""}.bi-envelope-arrow-up-fill:before{content:""}.bi-envelope-arrow-up:before{content:""}.bi-feather:before{content:""}.bi-feather2:before{content:""}.bi-floppy-fill:before{content:""}.bi-floppy:before{content:""}.bi-floppy2-fill:before{content:""}.bi-floppy2:before{content:""}.bi-gitlab:before{content:""}.bi-highlighter:before{content:""}.bi-marker-tip:before{content:""}.bi-nvme-fill:before{content:""}.bi-nvme:before{content:""}.bi-opencollective:before{content:""}.bi-pci-card-network:before{content:""}.bi-pci-card-sound:before{content:""}.bi-radar:before{content:""}.bi-send-arrow-down-fill:before{content:""}.bi-send-arrow-down:before{content:""}.bi-send-arrow-up-fill:before{content:""}.bi-send-arrow-up:before{content:""}.bi-sim-slash-fill:before{content:""}.bi-sim-slash:before{content:""}.bi-sourceforge:before{content:""}.bi-substack:before{content:""}.bi-threads-fill:before{content:""}.bi-threads:before{content:""}.bi-transparency:before{content:""}.bi-twitter-x:before{content:""}.bi-type-h4:before{content:""}.bi-type-h5:before{content:""}.bi-type-h6:before{content:""}.bi-backpack-fill:before{content:""}.bi-backpack:before{content:""}.bi-backpack2-fill:before{content:""}.bi-backpack2:before{content:""}.bi-backpack3-fill:before{content:""}.bi-backpack3:before{content:""}.bi-backpack4-fill:before{content:""}.bi-backpack4:before{content:""}.bi-brilliance:before{content:""}.bi-cake-fill:before{content:""}.bi-cake2-fill:before{content:""}.bi-duffle-fill:before{content:""}.bi-duffle:before{content:""}.bi-exposure:before{content:""}.bi-gender-neuter:before{content:""}.bi-highlights:before{content:""}.bi-luggage-fill:before{content:""}.bi-luggage:before{content:""}.bi-mailbox-flag:before{content:""}.bi-mailbox2-flag:before{content:""}.bi-noise-reduction:before{content:""}.bi-passport-fill:before{content:""}.bi-passport:before{content:""}.bi-person-arms-up:before{content:""}.bi-person-raised-hand:before{content:""}.bi-person-standing-dress:before{content:""}.bi-person-standing:before{content:""}.bi-person-walking:before{content:""}.bi-person-wheelchair:before{content:""}.bi-shadows:before{content:""}.bi-suitcase-fill:before{content:""}.bi-suitcase-lg-fill:before{content:""}.bi-suitcase-lg:before{content:""}.bi-suitcase:before{content:"豈"}.bi-suitcase2-fill:before{content:"更"}.bi-suitcase2:before{content:"車"}.bi-vignette:before{content:"賈"}.list-group-item[data-v-211acf3b]{cursor:pointer}.splitpanes{display:flex;width:100%;height:100%}.splitpanes--vertical{flex-direction:row}.splitpanes--horizontal{flex-direction:column}.splitpanes--dragging *{-webkit-user-select:none;user-select:none}.splitpanes__pane{width:100%;height:100%;overflow:hidden}.splitpanes--vertical .splitpanes__pane{transition:width .2s ease-out}.splitpanes--horizontal .splitpanes__pane{transition:height .2s ease-out}.splitpanes--dragging .splitpanes__pane{transition:none}.splitpanes__splitter{touch-action:none}.splitpanes--vertical>.splitpanes__splitter{min-width:1px;cursor:col-resize}.splitpanes--horizontal>.splitpanes__splitter{min-height:1px;cursor:row-resize}.splitpanes.default-theme .splitpanes__pane{background-color:#f2f2f2}.splitpanes.default-theme .splitpanes__splitter{background-color:#fff;box-sizing:border-box;position:relative;flex-shrink:0}.splitpanes.default-theme .splitpanes__splitter:before,.splitpanes.default-theme .splitpanes__splitter:after{content:"";position:absolute;top:50%;left:50%;background-color:#00000026;transition:background-color .3s}.splitpanes.default-theme .splitpanes__splitter:hover:before,.splitpanes.default-theme .splitpanes__splitter:hover:after{background-color:#00000040}.splitpanes.default-theme .splitpanes__splitter:first-child{cursor:auto}.default-theme.splitpanes .splitpanes .splitpanes__splitter{z-index:1}.default-theme.splitpanes--vertical>.splitpanes__splitter,.default-theme .splitpanes--vertical>.splitpanes__splitter{width:7px;border-left:1px solid #eee;margin-left:-1px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{transform:translateY(-50%);width:1px;height:30px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:before{margin-left:-2px}.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{margin-left:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter,.default-theme .splitpanes--horizontal>.splitpanes__splitter{height:7px;border-top:1px solid #eee;margin-top:-1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{transform:translate(-50%);width:30px;height:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before{margin-top:-2px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{margin-top:1px}#app[data-v-35474bb8]{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#2c3e50}.row.connection[data-v-35474bb8]{margin:30px 0}.splitpanes[data-v-35474bb8],.splitpanes .splitpanes__pane[data-v-35474bb8]{background-color:inherit}.splitpanes--horizontal .splitpanes__pane[data-v-35474bb8]{overflow-y:scroll} diff --git a/pad/assets/lodash-BSfnp1_F.js b/pad/assets/lodash-CFmKKHsC.js similarity index 99% rename from pad/assets/lodash-BSfnp1_F.js rename to pad/assets/lodash-CFmKKHsC.js index f8808c3..20882de 100644 --- a/pad/assets/lodash-BSfnp1_F.js +++ b/pad/assets/lodash-CFmKKHsC.js @@ -1,4 +1,4 @@ -import{bZ as jt}from"./index-PXc6VOLX.js";var Je={exports:{}};/** +import{bZ as jt}from"./index-BcaS_xbN.js";var Je={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors diff --git a/pad/assets/n3-compare-DZx0gfyH.js b/pad/assets/n3-compare-BeIsM-_E.js similarity index 83% rename from pad/assets/n3-compare-DZx0gfyH.js rename to pad/assets/n3-compare-BeIsM-_E.js index 49531dd..8abda52 100644 --- a/pad/assets/n3-compare-DZx0gfyH.js +++ b/pad/assets/n3-compare-BeIsM-_E.js @@ -1 +1 @@ -import{b$ as d}from"./index-PXc6VOLX.js";import{l as f}from"./lodash-BSfnp1_F.js";function g(n,o){return c(n.getQuads(),o.getQuads())}function h(n,o){return c(f.cloneDeep(n),f.cloneDeep(o))}function c(n,o){o.sort(a),n.sort(a);const r=o[Symbol.iterator](),i=n[Symbol.iterator]();let e=r.next(),t=i.next();const s=[],u=[];for(;!e.done||!t.done;)if(e.done&&!t.done)for(;!t.done;)u.push(t.value),t=i.next();else if(t.done&&!e.done)for(;!e.done;)s.push(e.value),e=r.next();else if(e.value.equals(t.value))e=r.next(),t=i.next();else{const l=a(e.value,t.value);l<0?(s.push(e.value),e=r.next()):l>0&&(u.push(t.value),t=i.next())}return{add:s,del:u}}function a(n,o){const r=JSON.stringify(d.quadToStringQuad(n)),i=JSON.stringify(d.quadToStringQuad(o));return ri?1:0}export{g as a,h as d}; +import{b$ as d}from"./index-BcaS_xbN.js";import{l as f}from"./lodash-CFmKKHsC.js";function g(n,o){return c(n.getQuads(),o.getQuads())}function h(n,o){return c(f.cloneDeep(n),f.cloneDeep(o))}function c(n,o){o.sort(a),n.sort(a);const r=o[Symbol.iterator](),i=n[Symbol.iterator]();let e=r.next(),t=i.next();const s=[],u=[];for(;!e.done||!t.done;)if(e.done&&!t.done)for(;!t.done;)u.push(t.value),t=i.next();else if(t.done&&!e.done)for(;!e.done;)s.push(e.value),e=r.next();else if(e.value.equals(t.value))e=r.next(),t=i.next();else{const l=a(e.value,t.value);l<0?(s.push(e.value),e=r.next()):l>0&&(u.push(t.value),t=i.next())}return{add:s,del:u}}function a(n,o){const r=JSON.stringify(d.quadToStringQuad(n)),i=JSON.stringify(d.quadToStringQuad(o));return ri?1:0}export{g as a,h as d}; diff --git a/pad/index.html b/pad/index.html index 2583f5a..c1952ab 100644 --- a/pad/index.html +++ b/pad/index.html @@ -72,8 +72,8 @@ Vite App - - + +