diff --git a/assets/CustomJsonLdSerializer-WUB4X4eN.js b/assets/CustomJsonLdSerializer-D8N1qWIh.js similarity index 52% rename from assets/CustomJsonLdSerializer-WUB4X4eN.js rename to assets/CustomJsonLdSerializer-D8N1qWIh.js index 4557904..12dbc57 100644 --- a/assets/CustomJsonLdSerializer-WUB4X4eN.js +++ b/assets/CustomJsonLdSerializer-D8N1qWIh.js @@ -1 +1 @@ -import{S as e}from"./main-BgiPY9C9.js";class t extends e{constructor({...r}={}){super({encoding:"string",...r})}}export{t as default}; +import{S as e}from"./main-BFf8j2gg.js";class t extends e{constructor({...r}={}){super({encoding:"string",...r})}}export{t as default}; diff --git a/assets/CustomRdfXmlParser-jEPeRMqO.js b/assets/CustomRdfXmlParser-D5friA1M.js similarity index 58% rename from assets/CustomRdfXmlParser-jEPeRMqO.js rename to assets/CustomRdfXmlParser-D5friA1M.js index faf73df..0cd7fd8 100644 --- a/assets/CustomRdfXmlParser-jEPeRMqO.js +++ b/assets/CustomRdfXmlParser-D5friA1M.js @@ -1 +1 @@ -import{a as s}from"./main-BgiPY9C9.js";class m extends s.RdfXmlParser{constructor({factory:r,...a}={}){super({...a,dataFactory:r})}}export{m as default}; +import{a as s}from"./main-BFf8j2gg.js";class m extends s.RdfXmlParser{constructor({factory:r,...a}={}){super({...a,dataFactory:r})}}export{m as default}; diff --git a/assets/index-fs3sy2sF.js b/assets/index-BMzMoN0b.js similarity index 99% rename from assets/index-fs3sy2sF.js rename to assets/index-BMzMoN0b.js index e641a10..79613a9 100644 --- a/assets/index-fs3sy2sF.js +++ b/assets/index-BMzMoN0b.js @@ -1,4 +1,4 @@ -import{D as j,n as T,T as L,f as z,t as D,h as E,N as V,i as Z,k as H,l as J,L as X,B as Y,V as ee,o as te,Q as G}from"./main-BgiPY9C9.js";function ie(l){return!!l&&l.termType==="NamedNode"}function se(l){return!!l&&l.termType==="BlankNode"}function re(l){return!!l&&l.termType==="Literal"}function ne(l){return!!l&&l.termType==="Variable"}function O(l){return!!l&&l.termType==="DefaultGraph"}function ae(l){return O(l.graph)}function ue(l,e){return C({"":l.value||l},e)("")}function C(l,e){const t=Object.create(null);for(const s in l)i(s,l[s]);e=e||j;function i(s,r){if(typeof r=="string"){const n=Object.create(null);t[s]=a=>n[a]||(n[a]=e.namedNode(r+a))}else if(!(s in t))throw new Error(`Unknown prefix: ${s}`);return t[s]}return i}const le=Object.freeze(Object.defineProperty({__proto__:null,inDefaultGraph:ae,isBlankNode:se,isDefaultGraph:O,isLiteral:re,isNamedNode:ie,isVariable:ne,prefix:ue,prefixes:C},Symbol.toStringTag,{value:"Module"})),N=j.defaultGraph(),{rdf:oe,xsd:w}=T,F=/["\\\t\n\r\b\f\u0000-\u0019\ud800-\udbff]/,A=/["\\\t\n\r\b\f\u0000-\u0019]|[\ud800-\udbff][\udc00-\udfff]/g,de={"\\":"\\\\",'"':'\\"'," ":"\\t","\n":"\\n","\r":"\\r","\b":"\\b","\f":"\\f"};class $ extends L{equals(e){return e===this}}class S{constructor(e,t){if(this._prefixRegex=/$0^/,e&&typeof e.write!="function"&&(t=e,e=null),t=t||{},this._lists=t.lists,e)this._outputStream=e,this._endStream=t.end===void 0?!0:!!t.end;else{let i="";this._outputStream={write(s,r,n){i+=s,n&&n()},end:s=>{s&&s(null,i)}},this._endStream=!0}this._subject=null,/triple|quad/i.test(t.format)?(this._lineMode=!0,this._writeQuad=this._writeQuadLine):(this._lineMode=!1,this._graph=N,this._prefixIRIs=Object.create(null),t.prefixes&&this.addPrefixes(t.prefixes),t.baseIRI&&(this._baseMatcher=new RegExp(`^${M(t.baseIRI)}${t.baseIRI.endsWith("/")?"":"[#?]"}`),this._baseLength=t.baseIRI.length))}get _inDefaultGraph(){return N.equals(this._graph)}_write(e,t){this._outputStream.write(e,"utf8",t)}_writeQuad(e,t,i,s,r){try{s.equals(this._graph)||(this._write((this._subject===null?"":this._inDefaultGraph?`. +import{D as j,n as T,T as L,f as z,t as D,h as E,N as V,i as Z,k as H,l as J,L as X,B as Y,V as ee,o as te,Q as G}from"./main-BFf8j2gg.js";function ie(l){return!!l&&l.termType==="NamedNode"}function se(l){return!!l&&l.termType==="BlankNode"}function re(l){return!!l&&l.termType==="Literal"}function ne(l){return!!l&&l.termType==="Variable"}function O(l){return!!l&&l.termType==="DefaultGraph"}function ae(l){return O(l.graph)}function ue(l,e){return C({"":l.value||l},e)("")}function C(l,e){const t=Object.create(null);for(const s in l)i(s,l[s]);e=e||j;function i(s,r){if(typeof r=="string"){const n=Object.create(null);t[s]=a=>n[a]||(n[a]=e.namedNode(r+a))}else if(!(s in t))throw new Error(`Unknown prefix: ${s}`);return t[s]}return i}const le=Object.freeze(Object.defineProperty({__proto__:null,inDefaultGraph:ae,isBlankNode:se,isDefaultGraph:O,isLiteral:re,isNamedNode:ie,isVariable:ne,prefix:ue,prefixes:C},Symbol.toStringTag,{value:"Module"})),N=j.defaultGraph(),{rdf:oe,xsd:w}=T,F=/["\\\t\n\r\b\f\u0000-\u0019\ud800-\udbff]/,A=/["\\\t\n\r\b\f\u0000-\u0019]|[\ud800-\udbff][\udc00-\udfff]/g,de={"\\":"\\\\",'"':'\\"'," ":"\\t","\n":"\\n","\r":"\\r","\b":"\\b","\f":"\\f"};class $ extends L{equals(e){return e===this}}class S{constructor(e,t){if(this._prefixRegex=/$0^/,e&&typeof e.write!="function"&&(t=e,e=null),t=t||{},this._lists=t.lists,e)this._outputStream=e,this._endStream=t.end===void 0?!0:!!t.end;else{let i="";this._outputStream={write(s,r,n){i+=s,n&&n()},end:s=>{s&&s(null,i)}},this._endStream=!0}this._subject=null,/triple|quad/i.test(t.format)?(this._lineMode=!0,this._writeQuad=this._writeQuadLine):(this._lineMode=!1,this._graph=N,this._prefixIRIs=Object.create(null),t.prefixes&&this.addPrefixes(t.prefixes),t.baseIRI&&(this._baseMatcher=new RegExp(`^${M(t.baseIRI)}${t.baseIRI.endsWith("/")?"":"[#?]"}`),this._baseLength=t.baseIRI.length))}get _inDefaultGraph(){return N.equals(this._graph)}_write(e,t){this._outputStream.write(e,"utf8",t)}_writeQuad(e,t,i,s,r){try{s.equals(this._graph)||(this._write((this._subject===null?"":this._inDefaultGraph?`. `:` } `)+(N.equals(s)?"":`${this._encodeIriOrBlank(s)} { diff --git a/assets/index-D_aAaXze.js b/assets/index-DMn3ABzq.js similarity index 95% rename from assets/index-D_aAaXze.js rename to assets/index-DMn3ABzq.js index b120949..0e81ded 100644 --- a/assets/index-D_aAaXze.js +++ b/assets/index-DMn3ABzq.js @@ -1 +1 @@ -import{d,j as e,e as m}from"./main-BgiPY9C9.js";async function x(r){const t=[];for await(const s of r)t.push(s);return t}class n extends d.Readable{constructor(t,{baseIRI:s,compact:o,context:i={},encoding:h="object",flatten:a,frame:l,prettyPrint:u,skipContext:f}={}){super({objectMode:!0,read:()=>{}}),this.compact=o,this.context=i,this.encoding=h,this.flatten=a,this.frame=l,this.prettyPrint=u,this.skipContext=f,s&&(this.context["@base"]=s.value||s.toString()),t.on("prefix",(c,p)=>{this.context[c]||(this.context[c]=p.value)}),this.handleData(t)}async handleData(t){try{const s=(await x(t)).map(n.toJsonldQuad),o=await e.fromRDF(s),i=await this.transform(o,this.options);this.push(i),this.push(null)}catch(s){this.emit("error",s)}}async transform(t){return this.compact&&(t=await e.compact(t,this.context)),this.flatten&&(t=await e.flatten(t,this.context)),this.frame&&(t=await e.frame(t,this.context)),this.skipContext&&t["@context"]&&delete t["@context"],this.encoding==="string"?this.prettyPrint?JSON.stringify(t,null,2):JSON.stringify(t):t}static toJsonldQuad(t){return{subject:n.toJsonldTerm(t.subject),predicate:n.toJsonldTerm(t.predicate),object:n.toJsonldTerm(t.object),graph:n.toJsonldTerm(t.graph)}}static toJsonldTerm(t){return t.termType==="BlankNode"?{termType:"BlankNode",value:`_:${t.value}`}:t}}class J extends m{constructor(t){super(n,t)}}export{J as default}; +import{d,j as e,e as m}from"./main-BFf8j2gg.js";async function x(r){const t=[];for await(const s of r)t.push(s);return t}class n extends d.Readable{constructor(t,{baseIRI:s,compact:o,context:i={},encoding:h="object",flatten:a,frame:l,prettyPrint:u,skipContext:f}={}){super({objectMode:!0,read:()=>{}}),this.compact=o,this.context=i,this.encoding=h,this.flatten=a,this.frame=l,this.prettyPrint=u,this.skipContext=f,s&&(this.context["@base"]=s.value||s.toString()),t.on("prefix",(c,p)=>{this.context[c]||(this.context[c]=p.value)}),this.handleData(t)}async handleData(t){try{const s=(await x(t)).map(n.toJsonldQuad),o=await e.fromRDF(s),i=await this.transform(o,this.options);this.push(i),this.push(null)}catch(s){this.emit("error",s)}}async transform(t){return this.compact&&(t=await e.compact(t,this.context)),this.flatten&&(t=await e.flatten(t,this.context)),this.frame&&(t=await e.frame(t,this.context)),this.skipContext&&t["@context"]&&delete t["@context"],this.encoding==="string"?this.prettyPrint?JSON.stringify(t,null,2):JSON.stringify(t):t}static toJsonldQuad(t){return{subject:n.toJsonldTerm(t.subject),predicate:n.toJsonldTerm(t.predicate),object:n.toJsonldTerm(t.object),graph:n.toJsonldTerm(t.graph)}}static toJsonldTerm(t){return t.termType==="BlankNode"?{termType:"BlankNode",value:`_:${t.value}`}:t}}class J extends m{constructor(t){super(n,t)}}export{J as default}; diff --git a/assets/main-BgiPY9C9.js b/assets/main-BFf8j2gg.js similarity index 59% rename from assets/main-BgiPY9C9.js rename to assets/main-BFf8j2gg.js index f5b7e26..0816a15 100644 --- a/assets/main-BgiPY9C9.js +++ b/assets/main-BFf8j2gg.js @@ -1,35 +1,35 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/main-BPEm6UCI.js","assets/main-eTk_fASt.js","assets/main-CGOqhCAx.js","assets/main-BDGbRj7V.js","assets/main-BswWzHG7.js","assets/main-CxslsK_i.js","assets/main-Crpq21kw.js","assets/main-D8J4Fi79.js"])))=>i.map(i=>d[i]); -var OFn=Object.defineProperty;var PLt=n=>{throw TypeError(n)};var NFn=(n,r,o)=>r in n?OFn(n,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[r]=o;var n7e=(n,r,o)=>NFn(n,typeof r!="symbol"?r+"":r,o),r7e=(n,r,o)=>r.has(n)||PLt("Cannot "+o);var Hp=(n,r,o)=>(r7e(n,r,"read from private field"),o?o.call(n):r.get(n)),J5=(n,r,o)=>r.has(n)?PLt("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(n):r.set(n,o),_E=(n,r,o,l)=>(r7e(n,r,"write to private field"),l?l.call(n,o):r.set(n,o),o),i7e=(n,r,o)=>(r7e(n,r,"access private method"),o);const mde=Object.freeze(Object.defineProperty({__proto__:null,get _void(){return tnr},get acl(){return xQn},get as(){return AQn},get bibo(){return $Qn},get cc(){return PQn},get cert(){return NQn},get cnt(){return DQn},get constant(){return jQn},get crm(){return BQn},get csvw(){return HQn},get ctag(){return GQn},get dash(){return qQn},get dashSparql(){return zQn},get dbo(){return JQn},get dc11(){return QQn},get dcam(){return eZn},get dcat(){return nZn},get dcmitype(){return iZn},get dcterms(){return sZn},get default(){return _en},get dig(){return aZn},get discipline(){return uZn},get doap(){return dZn},get dpv(){return pZn},get dqv(){return gZn},get dtype(){return mZn},get duv(){return vZn},get earl(){return SZn},get ebucore(){return kZn},get exif(){return xZn},get foaf(){return AZn},get frbr(){return $Zn},get geo(){return PZn},get geof(){return NZn},get geor(){return DZn},get gml(){return jZn},get gn(){return BZn},get gr(){return HZn},get grddl(){return GZn},get gs1(){return zZn},get gtfs(){return qZn},get http(){return JZn},get hydra(){return QZn},get ical(){return eer},get la(){return ner},get ldp(){return ier},get list(){return ser},get locn(){return aer},get log(){return uer},get lvont(){return der},get m4i(){return per},get ma(){return ger},get mads(){return mer},get math(){return ver},get oa(){return Ser},get og(){return ker},get oidc(){return xer},get org(){return Aer},get owl(){return $er},get pim(){return Per},get prefix(){return Ner},get prov(){return Der},get qb(){return jer},get qkdv(){return Ber},get quantitykind(){return Her},get qudt(){return Ger},get rdau(){return zer},get rdf(){return hS},get rdfa(){return Xer},get rdfs(){return Yer},get rev(){return Zer},get rico(){return ttr},get rif(){return pnr},get rr(){return rtr},get rss(){return otr},get schema(){return ltr},get sd(){return ctr},get sdmx(){return ftr},get sem(){return htr},get set(){return btr},get sf(){return wtr},get sh(){return ytr},get shex(){return _tr},get shsh(){return Etr},get sioc(){return Rtr},get skos(){return Ctr},get skosxl(){return Ttr},get solid(){return Itr},get sosa(){return Otr},get sou(){return Mtr},get ssn(){return Ltr},get stat(){return Ftr},get string(){return Wtr},get test(){return Utr},get time(){return Vtr},get unit(){return Ktr},get v(){return gnr},get vaem(){return Xtr},get vann(){return Ytr},get vcard(){return Ztr},get vs(){return rnr},get wdr(){return mnr},get wdrs(){return onr},get wgs(){return lnr},get xhv(){return cnr},get xkos(){return fnr},get xml(){return vnr},get xsd(){return rq}},Symbol.toStringTag,{value:"Module"}));(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))l(u);new MutationObserver(u=>{for(const d of u)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&l(h)}).observe(document,{childList:!0,subtree:!0});function o(u){const d={};return u.integrity&&(d.integrity=u.integrity),u.referrerPolicy&&(d.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?d.credentials="include":u.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function l(u){if(u.ep)return;u.ep=!0;const d=o(u);fetch(u.href,d)}})();/** +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/main-Bbig3v3v.js","assets/main-Dj80NaNp.js","assets/main-WH1QwD4R.js","assets/main-D8DixJoJ.js","assets/main-CvyrvPY3.js","assets/main-GqMsSp0-.js","assets/main-DBX7HHCf.js","assets/main-C0Hzf2I6.js"])))=>i.map(i=>d[i]); +var HFn=Object.defineProperty;var jLt=n=>{throw TypeError(n)};var UFn=(n,r,o)=>r in n?HFn(n,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[r]=o;var s7e=(n,r,o)=>UFn(n,typeof r!="symbol"?r+"":r,o),l7e=(n,r,o)=>r.has(n)||jLt("Cannot "+o);var Hp=(n,r,o)=>(l7e(n,r,"read from private field"),o?o.call(n):r.get(n)),J5=(n,r,o)=>r.has(n)?jLt("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(n):r.set(n,o),_E=(n,r,o,l)=>(l7e(n,r,"write to private field"),l?l.call(n,o):r.set(n,o),o),a7e=(n,r,o)=>(l7e(n,r,"access private method"),o);const _de=Object.freeze(Object.defineProperty({__proto__:null,get _void(){return unr},get acl(){return MQn},get as(){return LQn},get bibo(){return FQn},get cc(){return WQn},get cert(){return UQn},get cnt(){return VQn},get constant(){return KQn},get crm(){return XQn},get csvw(){return YQn},get ctag(){return ZQn},get dash(){return rZn},get dashSparql(){return tZn},get dbo(){return oZn},get dc11(){return lZn},get dcam(){return cZn},get dcat(){return fZn},get dcmitype(){return hZn},get dcterms(){return bZn},get default(){return xen},get dig(){return wZn},get discipline(){return yZn},get doap(){return _Zn},get dpv(){return EZn},get dqv(){return RZn},get dtype(){return CZn},get duv(){return TZn},get earl(){return IZn},get ebucore(){return OZn},get exif(){return MZn},get foaf(){return LZn},get frbr(){return FZn},get geo(){return WZn},get geof(){return UZn},get geor(){return VZn},get gml(){return KZn},get gn(){return XZn},get gr(){return YZn},get grddl(){return ZZn},get gs1(){return ter},get gtfs(){return rer},get http(){return oer},get hydra(){return ler},get ical(){return cer},get la(){return fer},get ldp(){return her},get list(){return ber},get locn(){return wer},get log(){return yer},get lvont(){return _er},get m4i(){return Eer},get ma(){return Rer},get mads(){return Cer},get math(){return Ter},get oa(){return Ier},get og(){return Oer},get oidc(){return Mer},get org(){return Ler},get owl(){return Fer},get pim(){return Wer},get prefix(){return Uer},get prov(){return Ver},get qb(){return Ker},get qkdv(){return Xer},get quantitykind(){return Yer},get qudt(){return Zer},get rdau(){return ttr},get rdf(){return hS},get rdfa(){return itr},get rdfs(){return str},get rev(){return atr},get rico(){return utr},get rif(){return Enr},get rr(){return dtr},get rss(){return ptr},get schema(){return gtr},get sd(){return mtr},get sdmx(){return vtr},get sem(){return Str},get set(){return ktr},get sf(){return xtr},get sh(){return Atr},get shex(){return $tr},get shsh(){return Ptr},get sioc(){return Ntr},get skos(){return Dtr},get skosxl(){return jtr},get solid(){return Btr},get sosa(){return Htr},get sou(){return Gtr},get ssn(){return ztr},get stat(){return qtr},get string(){return Jtr},get test(){return Qtr},get time(){return enr},get unit(){return nnr},get v(){return Rnr},get vaem(){return inr},get vann(){return snr},get vcard(){return anr},get vs(){return dnr},get wdr(){return Cnr},get wdrs(){return pnr},get wgs(){return gnr},get xhv(){return mnr},get xkos(){return vnr},get xml(){return Tnr},get xsd(){return nq}},Symbol.toStringTag,{value:"Module"}));(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))l(u);new MutationObserver(u=>{for(const d of u)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&l(h)}).observe(document,{childList:!0,subtree:!0});function o(u){const d={};return u.integrity&&(d.integrity=u.integrity),u.referrerPolicy&&(d.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?d.credentials="include":u.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function l(u){if(u.ep)return;u.ep=!0;const d=o(u);fetch(u.href,d)}})();/** * @vue/shared v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function uWe(n){const r=Object.create(null);for(const o of n.split(","))r[o]=1;return o=>o in r}const Lc={},VD=[],FE=()=>{},MFn=()=>!1,Whe=n=>n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&(n.charCodeAt(2)>122||n.charCodeAt(2)<97),fWe=n=>n.startsWith("onUpdate:"),zd=Object.assign,dWe=(n,r)=>{const o=n.indexOf(r);o>-1&&n.splice(o,1)},DFn=Object.prototype.hasOwnProperty,Va=(n,r)=>DFn.call(n,r),Bo=Array.isArray,zD=n=>Hhe(n)==="[object Map]",hYt=n=>Hhe(n)==="[object Set]",ls=n=>typeof n=="function",Fu=n=>typeof n=="string",_x=n=>typeof n=="symbol",Qc=n=>n!==null&&typeof n=="object",pYt=n=>(Qc(n)||ls(n))&&ls(n.then)&&ls(n.catch),bYt=Object.prototype.toString,Hhe=n=>bYt.call(n),LFn=n=>Hhe(n).slice(8,-1),gYt=n=>Hhe(n)==="[object Object]",hWe=n=>Fu(n)&&n!=="NaN"&&n[0]!=="-"&&""+parseInt(n,10)===n,KK=uWe(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Uhe=n=>{const r=Object.create(null);return o=>r[o]||(r[o]=n(o))},jFn=/-(\w)/g,iv=Uhe(n=>n.replace(jFn,(r,o)=>o?o.toUpperCase():"")),FFn=/\B([A-Z])/g,IT=Uhe(n=>n.replace(FFn,"-$1").toLowerCase()),Ghe=Uhe(n=>n.charAt(0).toUpperCase()+n.slice(1)),kfe=Uhe(n=>n?`on${Ghe(n)}`:""),GR=(n,r)=>!Object.is(n,r),o7e=(n,...r)=>{for(let o=0;o{Object.defineProperty(n,r,{configurable:!0,enumerable:!1,writable:l,value:o})},BFn=n=>{const r=parseFloat(n);return isNaN(r)?n:r},WFn=n=>{const r=Fu(n)?Number(n):NaN;return isNaN(r)?n:r};let OLt;const Vhe=()=>OLt||(OLt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"||typeof window<"u"?window:{});function Vb(n){if(Bo(n)){const r={};for(let o=0;o{if(o){const l=o.split(UFn);l.length>1&&(r[l[0].trim()]=l[1].trim())}}),r}function Lo(n){let r="";if(Fu(n))r=n;else if(Bo(n))for(let o=0;o!!(n&&n.__v_isRef===!0),na=n=>Fu(n)?n:n==null?"":Bo(n)||Qc(n)&&(n.toString===bYt||!ls(n.toString))?yYt(n)?na(n.value):JSON.stringify(n,vYt,2):String(n),vYt=(n,r)=>yYt(r)?vYt(n,r.value):zD(r)?{[`Map(${r.size})`]:[...r.entries()].reduce((o,[l,u],d)=>(o[s7e(l,d)+" =>"]=u,o),{})}:hYt(r)?{[`Set(${r.size})`]:[...r.values()].map(o=>s7e(o))}:_x(r)?s7e(r):Qc(r)&&!Bo(r)&&!gYt(r)?String(r):r,s7e=(n,r="")=>{var o;return _x(n)?`Symbol(${(o=n.description)!=null?o:r})`:n};/** +**//*! #__NO_SIDE_EFFECTS__ */function wWe(n){const r=Object.create(null);for(const o of n.split(","))r[o]=1;return o=>o in r}const Lc={},GD=[],FE=()=>{},GFn=()=>!1,Ghe=n=>n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&(n.charCodeAt(2)>122||n.charCodeAt(2)<97),mWe=n=>n.startsWith("onUpdate:"),zd=Object.assign,yWe=(n,r)=>{const o=n.indexOf(r);o>-1&&n.splice(o,1)},VFn=Object.prototype.hasOwnProperty,Va=(n,r)=>VFn.call(n,r),Bo=Array.isArray,VD=n=>Vhe(n)==="[object Map]",mYt=n=>Vhe(n)==="[object Set]",ls=n=>typeof n=="function",Fu=n=>typeof n=="string",_x=n=>typeof n=="symbol",Qc=n=>n!==null&&typeof n=="object",yYt=n=>(Qc(n)||ls(n))&&ls(n.then)&&ls(n.catch),vYt=Object.prototype.toString,Vhe=n=>vYt.call(n),zFn=n=>Vhe(n).slice(8,-1),_Yt=n=>Vhe(n)==="[object Object]",vWe=n=>Fu(n)&&n!=="NaN"&&n[0]!=="-"&&""+parseInt(n,10)===n,zK=wWe(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),zhe=n=>{const r=Object.create(null);return o=>r[o]||(r[o]=n(o))},KFn=/-(\w)/g,rv=zhe(n=>n.replace(KFn,(r,o)=>o?o.toUpperCase():"")),qFn=/\B([A-Z])/g,IT=zhe(n=>n.replace(qFn,"-$1").toLowerCase()),Khe=zhe(n=>n.charAt(0).toUpperCase()+n.slice(1)),xfe=zhe(n=>n?`on${Khe(n)}`:""),GR=(n,r)=>!Object.is(n,r),c7e=(n,...r)=>{for(let o=0;o{Object.defineProperty(n,r,{configurable:!0,enumerable:!1,writable:l,value:o})},XFn=n=>{const r=parseFloat(n);return isNaN(r)?n:r},JFn=n=>{const r=Fu(n)?Number(n):NaN;return isNaN(r)?n:r};let FLt;const qhe=()=>FLt||(FLt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"||typeof window<"u"?window:{});function Vb(n){if(Bo(n)){const r={};for(let o=0;o{if(o){const l=o.split(QFn);l.length>1&&(r[l[0].trim()]=l[1].trim())}}),r}function Lo(n){let r="";if(Fu(n))r=n;else if(Bo(n))for(let o=0;o!!(n&&n.__v_isRef===!0),na=n=>Fu(n)?n:n==null?"":Bo(n)||Qc(n)&&(n.toString===vYt||!ls(n.toString))?kYt(n)?na(n.value):JSON.stringify(n,RYt,2):String(n),RYt=(n,r)=>kYt(r)?RYt(n,r.value):VD(r)?{[`Map(${r.size})`]:[...r.entries()].reduce((o,[l,u],d)=>(o[u7e(l,d)+" =>"]=u,o),{})}:mYt(r)?{[`Set(${r.size})`]:[...r.values()].map(o=>u7e(o))}:_x(r)?u7e(r):Qc(r)&&!Bo(r)&&!_Yt(r)?String(r):r,u7e=(n,r="")=>{var o;return _x(n)?`Symbol(${(o=n.description)!=null?o:r})`:n};/** * @vue/reactivity v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let Zg;class _Yt{constructor(r=!1){this.detached=r,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Zg,!r&&Zg&&(this.index=(Zg.scopes||(Zg.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let r,o;if(this.scopes)for(r=0,o=this.scopes.length;r0)return;if(JK){let r=JK;for(JK=void 0;r;){const o=r.next;r.next=void 0,r.flags&=-9,r=o}}let n;for(;XK;){let r=XK;for(XK=void 0;r;){const o=r.next;if(r.next=void 0,r.flags&=-9,r.flags&1)try{r.trigger()}catch(l){n||(n=l)}r=o}}if(n)throw n}function xYt(n){for(let r=n.deps;r;r=r.nextDep)r.version=-1,r.prevActiveLink=r.dep.activeLink,r.dep.activeLink=r}function CYt(n){let r,o=n.depsTail,l=o;for(;l;){const u=l.prevDep;l.version===-1?(l===o&&(o=u),gWe(l),qFn(l)):r=l,l.dep.activeLink=l.prevActiveLink,l.prevActiveLink=void 0,l=u}n.deps=r,n.depsTail=o}function pLe(n){for(let r=n.deps;r;r=r.nextDep)if(r.dep.version!==r.version||r.dep.computed&&(AYt(r.dep.computed)||r.dep.version!==r.version))return!0;return!!n._dirty}function AYt(n){if(n.flags&4&&!(n.flags&16)||(n.flags&=-17,n.globalVersion===Nq))return;n.globalVersion=Nq;const r=n.dep;if(n.flags|=2,r.version>0&&!n.isSSR&&n.deps&&!pLe(n)){n.flags&=-3;return}const o=Jc,l=kS;Jc=n,kS=!0;try{xYt(n);const u=n.fn(n._value);(r.version===0||GR(u,n._value))&&(n._value=u,r.version++)}catch(u){throw r.version++,u}finally{Jc=o,kS=l,CYt(n),n.flags&=-3}}function gWe(n,r=!1){const{dep:o,prevSub:l,nextSub:u}=n;if(l&&(l.nextSub=u,n.prevSub=void 0),u&&(u.prevSub=l,n.nextSub=void 0),o.subs===n&&(o.subs=l,!l&&o.computed)){o.computed.flags&=-5;for(let d=o.computed.deps;d;d=d.nextDep)gWe(d,!0)}!r&&!--o.sc&&o.map&&o.map.delete(o.key)}function qFn(n){const{prevDep:r,nextDep:o}=n;r&&(r.nextDep=o,n.prevDep=void 0),o&&(o.prevDep=r,n.nextDep=void 0)}let kS=!0;const TYt=[];function PT(){TYt.push(kS),kS=!1}function OT(){const n=TYt.pop();kS=n===void 0?!0:n}function NLt(n){const{cleanup:r}=n;if(n.cleanup=void 0,r){const o=Jc;Jc=void 0;try{r()}finally{Jc=o}}}let Nq=0,XFn=class{constructor(r,o){this.sub=r,this.dep=o,this.version=o.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}};class Khe{constructor(r){this.computed=r,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(r){if(!Jc||!kS||Jc===this.computed)return;let o=this.activeLink;if(o===void 0||o.sub!==Jc)o=this.activeLink=new XFn(Jc,this),Jc.deps?(o.prevDep=Jc.depsTail,Jc.depsTail.nextDep=o,Jc.depsTail=o):Jc.deps=Jc.depsTail=o,$Yt(o);else if(o.version===-1&&(o.version=this.version,o.nextDep)){const l=o.nextDep;l.prevDep=o.prevDep,o.prevDep&&(o.prevDep.nextDep=l),o.prevDep=Jc.depsTail,o.nextDep=void 0,Jc.depsTail.nextDep=o,Jc.depsTail=o,Jc.deps===o&&(Jc.deps=l)}return o}trigger(r){this.version++,Nq++,this.notify(r)}notify(r){pWe();try{for(let o=this.subs;o;o=o.prevSub)o.sub.notify()&&o.sub.dep.notify()}finally{bWe()}}}function $Yt(n){if(n.dep.sc++,n.sub.flags&4){const r=n.dep.computed;if(r&&!n.dep.subs){r.flags|=20;for(let l=r.deps;l;l=l.nextDep)$Yt(l)}const o=n.dep.subs;o!==n&&(n.prevSub=o,o&&(o.nextSub=n)),n.dep.subs=n}}const yde=new WeakMap,q8=Symbol(""),bLe=Symbol(""),Mq=Symbol("");function Bb(n,r,o){if(kS&&Jc){let l=yde.get(n);l||yde.set(n,l=new Map);let u=l.get(o);u||(l.set(o,u=new Khe),u.map=l,u.key=o),u.track()}}function OR(n,r,o,l,u,d){const h=yde.get(n);if(!h){Nq++;return}const w=v=>{v&&v.trigger()};if(pWe(),r==="clear")h.forEach(w);else{const v=Bo(n),y=v&&hWe(o);if(v&&o==="length"){const E=Number(l);h.forEach((A,C)=>{(C==="length"||C===Mq||!_x(C)&&C>=E)&&w(A)})}else switch((o!==void 0||h.has(void 0))&&w(h.get(o)),y&&w(h.get(Mq)),r){case"add":v?y&&w(h.get("length")):(w(h.get(q8)),zD(n)&&w(h.get(bLe)));break;case"delete":v||(w(h.get(q8)),zD(n)&&w(h.get(bLe)));break;case"set":zD(n)&&w(h.get(q8));break}}bWe()}function JFn(n,r){const o=yde.get(n);return o&&o.get(r)}function rD(n){const r=Sa(n);return r===n?r:(Bb(r,"iterate",Mq),tv(n)?r:r.map(Wb))}function qhe(n){return Bb(n=Sa(n),"iterate",Mq),n}const YFn={__proto__:null,[Symbol.iterator](){return a7e(this,Symbol.iterator,Wb)},concat(...n){return rD(this).concat(...n.map(r=>Bo(r)?rD(r):r))},entries(){return a7e(this,"entries",n=>(n[1]=Wb(n[1]),n))},every(n,r){return vR(this,"every",n,r,void 0,arguments)},filter(n,r){return vR(this,"filter",n,r,o=>o.map(Wb),arguments)},find(n,r){return vR(this,"find",n,r,Wb,arguments)},findIndex(n,r){return vR(this,"findIndex",n,r,void 0,arguments)},findLast(n,r){return vR(this,"findLast",n,r,Wb,arguments)},findLastIndex(n,r){return vR(this,"findLastIndex",n,r,void 0,arguments)},forEach(n,r){return vR(this,"forEach",n,r,void 0,arguments)},includes(...n){return c7e(this,"includes",n)},indexOf(...n){return c7e(this,"indexOf",n)},join(n){return rD(this).join(n)},lastIndexOf(...n){return c7e(this,"lastIndexOf",n)},map(n,r){return vR(this,"map",n,r,void 0,arguments)},pop(){return Kz(this,"pop")},push(...n){return Kz(this,"push",n)},reduce(n,...r){return MLt(this,"reduce",n,r)},reduceRight(n,...r){return MLt(this,"reduceRight",n,r)},shift(){return Kz(this,"shift")},some(n,r){return vR(this,"some",n,r,void 0,arguments)},splice(...n){return Kz(this,"splice",n)},toReversed(){return rD(this).toReversed()},toSorted(n){return rD(this).toSorted(n)},toSpliced(...n){return rD(this).toSpliced(...n)},unshift(...n){return Kz(this,"unshift",n)},values(){return a7e(this,"values",Wb)}};function a7e(n,r,o){const l=qhe(n),u=l[r]();return l!==n&&!tv(n)&&(u._next=u.next,u.next=()=>{const d=u._next();return d.value&&(d.value=o(d.value)),d}),u}const QFn=Array.prototype;function vR(n,r,o,l,u,d){const h=qhe(n),w=h!==n&&!tv(n),v=h[r];if(v!==QFn[r]){const A=v.apply(n,d);return w?Wb(A):A}let y=o;h!==n&&(w?y=function(A,C){return o.call(this,Wb(A),C,n)}:o.length>2&&(y=function(A,C){return o.call(this,A,C,n)}));const E=v.call(h,y,l);return w&&u?u(E):E}function MLt(n,r,o,l){const u=qhe(n);let d=o;return u!==n&&(tv(n)?o.length>3&&(d=function(h,w,v){return o.call(this,h,w,v,n)}):d=function(h,w,v){return o.call(this,h,Wb(w),v,n)}),u[r](d,...l)}function c7e(n,r,o){const l=Sa(n);Bb(l,"iterate",Mq);const u=l[r](...o);return(u===-1||u===!1)&&yWe(o[0])?(o[0]=Sa(o[0]),l[r](...o)):u}function Kz(n,r,o=[]){PT(),pWe();const l=Sa(n)[r].apply(n,o);return bWe(),OT(),l}const ZFn=uWe("__proto__,__v_isRef,__isVue"),IYt=new Set(Object.getOwnPropertyNames(Symbol).filter(n=>n!=="arguments"&&n!=="caller").map(n=>Symbol[n]).filter(_x));function eBn(n){_x(n)||(n=String(n));const r=Sa(this);return Bb(r,"has",n),r.hasOwnProperty(n)}class PYt{constructor(r=!1,o=!1){this._isReadonly=r,this._isShallow=o}get(r,o,l){if(o==="__v_skip")return r.__v_skip;const u=this._isReadonly,d=this._isShallow;if(o==="__v_isReactive")return!u;if(o==="__v_isReadonly")return u;if(o==="__v_isShallow")return d;if(o==="__v_raw")return l===(u?d?uBn:DYt:d?MYt:NYt).get(r)||Object.getPrototypeOf(r)===Object.getPrototypeOf(l)?r:void 0;const h=Bo(r);if(!u){let v;if(h&&(v=YFn[o]))return v;if(o==="hasOwnProperty")return eBn}const w=Reflect.get(r,o,_d(r)?r:l);return(_x(o)?IYt.has(o):ZFn(o))||(u||Bb(r,"get",o),d)?w:_d(w)?h&&hWe(o)?w:w.value:Qc(w)?u?zX(w):mP(w):w}}class OYt extends PYt{constructor(r=!1){super(!1,r)}set(r,o,l,u){let d=r[o];if(!this._isShallow){const v=yP(d);if(!tv(l)&&!yP(l)&&(d=Sa(d),l=Sa(l)),!Bo(r)&&_d(d)&&!_d(l))return v?!1:(d.value=l,!0)}const h=Bo(r)&&hWe(o)?Number(o)n,Gce=n=>Reflect.getPrototypeOf(n);function oBn(n,r,o){return function(...l){const u=this.__v_raw,d=Sa(u),h=zD(d),w=n==="entries"||n===Symbol.iterator&&h,v=n==="keys"&&h,y=u[n](...l),E=o?gLe:r?wLe:Wb;return!r&&Bb(d,"iterate",v?bLe:q8),{next(){const{value:A,done:C}=y.next();return C?{value:A,done:C}:{value:w?[E(A[0]),E(A[1])]:E(A),done:C}},[Symbol.iterator](){return this}}}}function Vce(n){return function(...r){return n==="delete"?!1:n==="clear"?void 0:this}}function sBn(n,r){const o={get(u){const d=this.__v_raw,h=Sa(d),w=Sa(u);n||(GR(u,w)&&Bb(h,"get",u),Bb(h,"get",w));const{has:v}=Gce(h),y=r?gLe:n?wLe:Wb;if(v.call(h,u))return y(d.get(u));if(v.call(h,w))return y(d.get(w));d!==h&&d.get(u)},get size(){const u=this.__v_raw;return!n&&Bb(Sa(u),"iterate",q8),Reflect.get(u,"size",u)},has(u){const d=this.__v_raw,h=Sa(d),w=Sa(u);return n||(GR(u,w)&&Bb(h,"has",u),Bb(h,"has",w)),u===w?d.has(u):d.has(u)||d.has(w)},forEach(u,d){const h=this,w=h.__v_raw,v=Sa(w),y=r?gLe:n?wLe:Wb;return!n&&Bb(v,"iterate",q8),w.forEach((E,A)=>u.call(d,y(E),y(A),h))}};return zd(o,n?{add:Vce("add"),set:Vce("set"),delete:Vce("delete"),clear:Vce("clear")}:{add(u){!r&&!tv(u)&&!yP(u)&&(u=Sa(u));const d=Sa(this);return Gce(d).has.call(d,u)||(d.add(u),OR(d,"add",u,u)),this},set(u,d){!r&&!tv(d)&&!yP(d)&&(d=Sa(d));const h=Sa(this),{has:w,get:v}=Gce(h);let y=w.call(h,u);y||(u=Sa(u),y=w.call(h,u));const E=v.call(h,u);return h.set(u,d),y?GR(d,E)&&OR(h,"set",u,d):OR(h,"add",u,d),this},delete(u){const d=Sa(this),{has:h,get:w}=Gce(d);let v=h.call(d,u);v||(u=Sa(u),v=h.call(d,u)),w&&w.call(d,u);const y=d.delete(u);return v&&OR(d,"delete",u,void 0),y},clear(){const u=Sa(this),d=u.size!==0,h=u.clear();return d&&OR(u,"clear",void 0,void 0),h}}),["keys","values","entries",Symbol.iterator].forEach(u=>{o[u]=oBn(u,n,r)}),o}function wWe(n,r){const o=sBn(n,r);return(l,u,d)=>u==="__v_isReactive"?!n:u==="__v_isReadonly"?n:u==="__v_raw"?l:Reflect.get(Va(o,u)&&u in l?o:l,u,d)}const lBn={get:wWe(!1,!1)},aBn={get:wWe(!1,!0)},cBn={get:wWe(!0,!1)};const NYt=new WeakMap,MYt=new WeakMap,DYt=new WeakMap,uBn=new WeakMap;function fBn(n){switch(n){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function dBn(n){return n.__v_skip||!Object.isExtensible(n)?0:fBn(LFn(n))}function mP(n){return yP(n)?n:mWe(n,!1,nBn,lBn,NYt)}function hBn(n){return mWe(n,!1,iBn,aBn,MYt)}function zX(n){return mWe(n,!0,rBn,cBn,DYt)}function mWe(n,r,o,l,u){if(!Qc(n)||n.__v_raw&&!(r&&n.__v_isReactive))return n;const d=u.get(n);if(d)return d;const h=dBn(n);if(h===0)return n;const w=new Proxy(n,h===2?l:o);return u.set(n,w),w}function KD(n){return yP(n)?KD(n.__v_raw):!!(n&&n.__v_isReactive)}function yP(n){return!!(n&&n.__v_isReadonly)}function tv(n){return!!(n&&n.__v_isShallow)}function yWe(n){return n?!!n.__v_raw:!1}function Sa(n){const r=n&&n.__v_raw;return r?Sa(r):n}function X8(n){return!Va(n,"__v_skip")&&Object.isExtensible(n)&&wYt(n,"__v_skip",!0),n}const Wb=n=>Qc(n)?mP(n):n,wLe=n=>Qc(n)?zX(n):n;function _d(n){return n?n.__v_isRef===!0:!1}function Fo(n){return pBn(n,!1)}function pBn(n,r){return _d(n)?n:new bBn(n,r)}class bBn{constructor(r,o){this.dep=new Khe,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=o?r:Sa(r),this._value=o?r:Wb(r),this.__v_isShallow=o}get value(){return this.dep.track(),this._value}set value(r){const o=this._rawValue,l=this.__v_isShallow||tv(r)||yP(r);r=l?r:Sa(r),GR(r,o)&&(this._rawValue=r,this._value=l?r:Wb(r),this.dep.trigger())}}function Wr(n){return _d(n)?n.value:n}function _a(n){return ls(n)?n():Wr(n)}const gBn={get:(n,r,o)=>r==="__v_raw"?n:Wr(Reflect.get(n,r,o)),set:(n,r,o,l)=>{const u=n[r];return _d(u)&&!_d(o)?(u.value=o,!0):Reflect.set(n,r,o,l)}};function LYt(n){return KD(n)?n:new Proxy(n,gBn)}class wBn{constructor(r){this.__v_isRef=!0,this._value=void 0;const o=this.dep=new Khe,{get:l,set:u}=r(o.track.bind(o),o.trigger.bind(o));this._get=l,this._set=u}get value(){return this._value=this._get()}set value(r){this._set(r)}}function mBn(n){return new wBn(n)}function yBn(n){const r=Bo(n)?new Array(n.length):{};for(const o in n)r[o]=jYt(n,o);return r}class vBn{constructor(r,o,l){this._object=r,this._key=o,this._defaultValue=l,this.__v_isRef=!0,this._value=void 0}get value(){const r=this._object[this._key];return this._value=r===void 0?this._defaultValue:r}set value(r){this._object[this._key]=r}get dep(){return JFn(Sa(this._object),this._key)}}class _Bn{constructor(r){this._getter=r,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function bf(n,r,o){return _d(n)?n:ls(n)?new _Bn(n):Qc(n)&&arguments.length>1?jYt(n,r,o):Fo(n)}function jYt(n,r,o){const l=n[r];return _d(l)?l:new vBn(n,r,o)}class SBn{constructor(r,o,l){this.fn=r,this.setter=o,this._value=void 0,this.dep=new Khe(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Nq-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!o,this.isSSR=l}notify(){if(this.flags|=16,!(this.flags&8)&&Jc!==this)return RYt(this,!0),!0}get value(){const r=this.dep.track();return AYt(this),r&&(r.version=this.dep.version),this._value}set value(r){this.setter&&this.setter(r)}}function EBn(n,r,o=!1){let l,u;return ls(n)?l=n:(l=n.get,u=n.set),new SBn(l,u,o)}const zce={},vde=new WeakMap;let _8;function kBn(n,r=!1,o=_8){if(o){let l=vde.get(o);l||vde.set(o,l=[]),l.push(n)}}function RBn(n,r,o=Lc){const{immediate:l,deep:u,once:d,scheduler:h,augmentJob:w,call:v}=o,y=Q=>u?Q:tv(Q)||u===!1||u===0?NR(Q,1):NR(Q);let E,A,C,R,O=!1,M=!1;if(_d(n)?(A=()=>n.value,O=tv(n)):KD(n)?(A=()=>y(n),O=!0):Bo(n)?(M=!0,O=n.some(Q=>KD(Q)||tv(Q)),A=()=>n.map(Q=>{if(_d(Q))return Q.value;if(KD(Q))return y(Q);if(ls(Q))return v?v(Q,2):Q()})):ls(n)?r?A=v?()=>v(n,2):n:A=()=>{if(C){PT();try{C()}finally{OT()}}const Q=_8;_8=E;try{return v?v(n,3,[R]):n(R)}finally{_8=Q}}:A=FE,r&&u){const Q=A,te=u===!0?1/0:u;A=()=>NR(Q(),te)}const L=zhe(),H=()=>{E.stop(),L&&L.active&&dWe(L.effects,E)};if(d&&r){const Q=r;r=(...te)=>{Q(...te),H()}}let G=M?new Array(n.length).fill(zce):zce;const j=Q=>{if(!(!(E.flags&1)||!E.dirty&&!Q))if(r){const te=E.run();if(u||O||(M?te.some((pe,Le)=>GR(pe,G[Le])):GR(te,G))){C&&C();const pe=_8;_8=E;try{const Le=[te,G===zce?void 0:M&&G[0]===zce?[]:G,R];v?v(r,3,Le):r(...Le),G=te}finally{_8=pe}}}else E.run()};return w&&w(j),E=new EYt(A),E.scheduler=h?()=>h(j,!1):j,R=Q=>kBn(Q,!1,E),C=E.onStop=()=>{const Q=vde.get(E);if(Q){if(v)v(Q,4);else for(const te of Q)te();vde.delete(E)}},r?l?j(!0):G=E.run():h?h(j.bind(null,!0),!0):E.run(),H.pause=E.pause.bind(E),H.resume=E.resume.bind(E),H.stop=H,H}function NR(n,r=1/0,o){if(r<=0||!Qc(n)||n.__v_skip||(o=o||new Set,o.has(n)))return n;if(o.add(n),r--,_d(n))NR(n.value,r,o);else if(Bo(n))for(let l=0;l{NR(l,r,o)});else if(gYt(n)){for(const l in n)NR(n[l],r,o);for(const l of Object.getOwnPropertySymbols(n))Object.prototype.propertyIsEnumerable.call(n,l)&&NR(n[l],r,o)}return n}/** +**/let Zg;class xYt{constructor(r=!1){this.detached=r,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Zg,!r&&Zg&&(this.index=(Zg.scopes||(Zg.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let r,o;if(this.scopes)for(r=0,o=this.scopes.length;r0)return;if(XK){let r=XK;for(XK=void 0;r;){const o=r.next;r.next=void 0,r.flags&=-9,r=o}}let n;for(;qK;){let r=qK;for(qK=void 0;r;){const o=r.next;if(r.next=void 0,r.flags&=-9,r.flags&1)try{r.trigger()}catch(l){n||(n=l)}r=o}}if(n)throw n}function IYt(n){for(let r=n.deps;r;r=r.nextDep)r.version=-1,r.prevActiveLink=r.dep.activeLink,r.dep.activeLink=r}function PYt(n){let r,o=n.depsTail,l=o;for(;l;){const u=l.prevDep;l.version===-1?(l===o&&(o=u),EWe(l),rBn(l)):r=l,l.dep.activeLink=l.prevActiveLink,l.prevActiveLink=void 0,l=u}n.deps=r,n.depsTail=o}function _Le(n){for(let r=n.deps;r;r=r.nextDep)if(r.dep.version!==r.version||r.dep.computed&&(OYt(r.dep.computed)||r.dep.version!==r.version))return!0;return!!n._dirty}function OYt(n){if(n.flags&4&&!(n.flags&16)||(n.flags&=-17,n.globalVersion===Oq))return;n.globalVersion=Oq;const r=n.dep;if(n.flags|=2,r.version>0&&!n.isSSR&&n.deps&&!_Le(n)){n.flags&=-3;return}const o=Jc,l=kS;Jc=n,kS=!0;try{IYt(n);const u=n.fn(n._value);(r.version===0||GR(u,n._value))&&(n._value=u,r.version++)}catch(u){throw r.version++,u}finally{Jc=o,kS=l,PYt(n),n.flags&=-3}}function EWe(n,r=!1){const{dep:o,prevSub:l,nextSub:u}=n;if(l&&(l.nextSub=u,n.prevSub=void 0),u&&(u.prevSub=l,n.nextSub=void 0),o.subs===n&&(o.subs=l,!l&&o.computed)){o.computed.flags&=-5;for(let d=o.computed.deps;d;d=d.nextDep)EWe(d,!0)}!r&&!--o.sc&&o.map&&o.map.delete(o.key)}function rBn(n){const{prevDep:r,nextDep:o}=n;r&&(r.nextDep=o,n.prevDep=void 0),o&&(o.prevDep=r,n.nextDep=void 0)}let kS=!0;const NYt=[];function PT(){NYt.push(kS),kS=!1}function OT(){const n=NYt.pop();kS=n===void 0?!0:n}function BLt(n){const{cleanup:r}=n;if(n.cleanup=void 0,r){const o=Jc;Jc=void 0;try{r()}finally{Jc=o}}}let Oq=0,iBn=class{constructor(r,o){this.sub=r,this.dep=o,this.version=o.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}};class Jhe{constructor(r){this.computed=r,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(r){if(!Jc||!kS||Jc===this.computed)return;let o=this.activeLink;if(o===void 0||o.sub!==Jc)o=this.activeLink=new iBn(Jc,this),Jc.deps?(o.prevDep=Jc.depsTail,Jc.depsTail.nextDep=o,Jc.depsTail=o):Jc.deps=Jc.depsTail=o,MYt(o);else if(o.version===-1&&(o.version=this.version,o.nextDep)){const l=o.nextDep;l.prevDep=o.prevDep,o.prevDep&&(o.prevDep.nextDep=l),o.prevDep=Jc.depsTail,o.nextDep=void 0,Jc.depsTail.nextDep=o,Jc.depsTail=o,Jc.deps===o&&(Jc.deps=l)}return o}trigger(r){this.version++,Oq++,this.notify(r)}notify(r){_We();try{for(let o=this.subs;o;o=o.prevSub)o.sub.notify()&&o.sub.dep.notify()}finally{SWe()}}}function MYt(n){if(n.dep.sc++,n.sub.flags&4){const r=n.dep.computed;if(r&&!n.dep.subs){r.flags|=20;for(let l=r.deps;l;l=l.nextDep)MYt(l)}const o=n.dep.subs;o!==n&&(n.prevSub=o,o&&(o.nextSub=n)),n.dep.subs=n}}const Sde=new WeakMap,q8=Symbol(""),SLe=Symbol(""),Nq=Symbol("");function Bb(n,r,o){if(kS&&Jc){let l=Sde.get(n);l||Sde.set(n,l=new Map);let u=l.get(o);u||(l.set(o,u=new Jhe),u.map=l,u.key=o),u.track()}}function OR(n,r,o,l,u,d){const h=Sde.get(n);if(!h){Oq++;return}const w=v=>{v&&v.trigger()};if(_We(),r==="clear")h.forEach(w);else{const v=Bo(n),y=v&&vWe(o);if(v&&o==="length"){const E=Number(l);h.forEach((A,C)=>{(C==="length"||C===Nq||!_x(C)&&C>=E)&&w(A)})}else switch((o!==void 0||h.has(void 0))&&w(h.get(o)),y&&w(h.get(Nq)),r){case"add":v?y&&w(h.get("length")):(w(h.get(q8)),VD(n)&&w(h.get(SLe)));break;case"delete":v||(w(h.get(q8)),VD(n)&&w(h.get(SLe)));break;case"set":VD(n)&&w(h.get(q8));break}}SWe()}function oBn(n,r){const o=Sde.get(n);return o&&o.get(r)}function nD(n){const r=Sa(n);return r===n?r:(Bb(r,"iterate",Nq),ev(n)?r:r.map(Wb))}function Yhe(n){return Bb(n=Sa(n),"iterate",Nq),n}const sBn={__proto__:null,[Symbol.iterator](){return d7e(this,Symbol.iterator,Wb)},concat(...n){return nD(this).concat(...n.map(r=>Bo(r)?nD(r):r))},entries(){return d7e(this,"entries",n=>(n[1]=Wb(n[1]),n))},every(n,r){return vR(this,"every",n,r,void 0,arguments)},filter(n,r){return vR(this,"filter",n,r,o=>o.map(Wb),arguments)},find(n,r){return vR(this,"find",n,r,Wb,arguments)},findIndex(n,r){return vR(this,"findIndex",n,r,void 0,arguments)},findLast(n,r){return vR(this,"findLast",n,r,Wb,arguments)},findLastIndex(n,r){return vR(this,"findLastIndex",n,r,void 0,arguments)},forEach(n,r){return vR(this,"forEach",n,r,void 0,arguments)},includes(...n){return h7e(this,"includes",n)},indexOf(...n){return h7e(this,"indexOf",n)},join(n){return nD(this).join(n)},lastIndexOf(...n){return h7e(this,"lastIndexOf",n)},map(n,r){return vR(this,"map",n,r,void 0,arguments)},pop(){return zz(this,"pop")},push(...n){return zz(this,"push",n)},reduce(n,...r){return WLt(this,"reduce",n,r)},reduceRight(n,...r){return WLt(this,"reduceRight",n,r)},shift(){return zz(this,"shift")},some(n,r){return vR(this,"some",n,r,void 0,arguments)},splice(...n){return zz(this,"splice",n)},toReversed(){return nD(this).toReversed()},toSorted(n){return nD(this).toSorted(n)},toSpliced(...n){return nD(this).toSpliced(...n)},unshift(...n){return zz(this,"unshift",n)},values(){return d7e(this,"values",Wb)}};function d7e(n,r,o){const l=Yhe(n),u=l[r]();return l!==n&&!ev(n)&&(u._next=u.next,u.next=()=>{const d=u._next();return d.value&&(d.value=o(d.value)),d}),u}const lBn=Array.prototype;function vR(n,r,o,l,u,d){const h=Yhe(n),w=h!==n&&!ev(n),v=h[r];if(v!==lBn[r]){const A=v.apply(n,d);return w?Wb(A):A}let y=o;h!==n&&(w?y=function(A,C){return o.call(this,Wb(A),C,n)}:o.length>2&&(y=function(A,C){return o.call(this,A,C,n)}));const E=v.call(h,y,l);return w&&u?u(E):E}function WLt(n,r,o,l){const u=Yhe(n);let d=o;return u!==n&&(ev(n)?o.length>3&&(d=function(h,w,v){return o.call(this,h,w,v,n)}):d=function(h,w,v){return o.call(this,h,Wb(w),v,n)}),u[r](d,...l)}function h7e(n,r,o){const l=Sa(n);Bb(l,"iterate",Nq);const u=l[r](...o);return(u===-1||u===!1)&&xWe(o[0])?(o[0]=Sa(o[0]),l[r](...o)):u}function zz(n,r,o=[]){PT(),_We();const l=Sa(n)[r].apply(n,o);return SWe(),OT(),l}const aBn=wWe("__proto__,__v_isRef,__isVue"),DYt=new Set(Object.getOwnPropertyNames(Symbol).filter(n=>n!=="arguments"&&n!=="caller").map(n=>Symbol[n]).filter(_x));function cBn(n){_x(n)||(n=String(n));const r=Sa(this);return Bb(r,"has",n),r.hasOwnProperty(n)}class LYt{constructor(r=!1,o=!1){this._isReadonly=r,this._isShallow=o}get(r,o,l){if(o==="__v_skip")return r.__v_skip;const u=this._isReadonly,d=this._isShallow;if(o==="__v_isReactive")return!u;if(o==="__v_isReadonly")return u;if(o==="__v_isShallow")return d;if(o==="__v_raw")return l===(u?d?yBn:WYt:d?BYt:FYt).get(r)||Object.getPrototypeOf(r)===Object.getPrototypeOf(l)?r:void 0;const h=Bo(r);if(!u){let v;if(h&&(v=sBn[o]))return v;if(o==="hasOwnProperty")return cBn}const w=Reflect.get(r,o,_d(r)?r:l);return(_x(o)?DYt.has(o):aBn(o))||(u||Bb(r,"get",o),d)?w:_d(w)?h&&vWe(o)?w:w.value:Qc(w)?u?zX(w):wP(w):w}}class jYt extends LYt{constructor(r=!1){super(!1,r)}set(r,o,l,u){let d=r[o];if(!this._isShallow){const v=mP(d);if(!ev(l)&&!mP(l)&&(d=Sa(d),l=Sa(l)),!Bo(r)&&_d(d)&&!_d(l))return v?!1:(d.value=l,!0)}const h=Bo(r)&&vWe(o)?Number(o)n,zce=n=>Reflect.getPrototypeOf(n);function pBn(n,r,o){return function(...l){const u=this.__v_raw,d=Sa(u),h=VD(d),w=n==="entries"||n===Symbol.iterator&&h,v=n==="keys"&&h,y=u[n](...l),E=o?ELe:r?kLe:Wb;return!r&&Bb(d,"iterate",v?SLe:q8),{next(){const{value:A,done:C}=y.next();return C?{value:A,done:C}:{value:w?[E(A[0]),E(A[1])]:E(A),done:C}},[Symbol.iterator](){return this}}}}function Kce(n){return function(...r){return n==="delete"?!1:n==="clear"?void 0:this}}function bBn(n,r){const o={get(u){const d=this.__v_raw,h=Sa(d),w=Sa(u);n||(GR(u,w)&&Bb(h,"get",u),Bb(h,"get",w));const{has:v}=zce(h),y=r?ELe:n?kLe:Wb;if(v.call(h,u))return y(d.get(u));if(v.call(h,w))return y(d.get(w));d!==h&&d.get(u)},get size(){const u=this.__v_raw;return!n&&Bb(Sa(u),"iterate",q8),Reflect.get(u,"size",u)},has(u){const d=this.__v_raw,h=Sa(d),w=Sa(u);return n||(GR(u,w)&&Bb(h,"has",u),Bb(h,"has",w)),u===w?d.has(u):d.has(u)||d.has(w)},forEach(u,d){const h=this,w=h.__v_raw,v=Sa(w),y=r?ELe:n?kLe:Wb;return!n&&Bb(v,"iterate",q8),w.forEach((E,A)=>u.call(d,y(E),y(A),h))}};return zd(o,n?{add:Kce("add"),set:Kce("set"),delete:Kce("delete"),clear:Kce("clear")}:{add(u){!r&&!ev(u)&&!mP(u)&&(u=Sa(u));const d=Sa(this);return zce(d).has.call(d,u)||(d.add(u),OR(d,"add",u,u)),this},set(u,d){!r&&!ev(d)&&!mP(d)&&(d=Sa(d));const h=Sa(this),{has:w,get:v}=zce(h);let y=w.call(h,u);y||(u=Sa(u),y=w.call(h,u));const E=v.call(h,u);return h.set(u,d),y?GR(d,E)&&OR(h,"set",u,d):OR(h,"add",u,d),this},delete(u){const d=Sa(this),{has:h,get:w}=zce(d);let v=h.call(d,u);v||(u=Sa(u),v=h.call(d,u)),w&&w.call(d,u);const y=d.delete(u);return v&&OR(d,"delete",u,void 0),y},clear(){const u=Sa(this),d=u.size!==0,h=u.clear();return d&&OR(u,"clear",void 0,void 0),h}}),["keys","values","entries",Symbol.iterator].forEach(u=>{o[u]=pBn(u,n,r)}),o}function kWe(n,r){const o=bBn(n,r);return(l,u,d)=>u==="__v_isReactive"?!n:u==="__v_isReadonly"?n:u==="__v_raw"?l:Reflect.get(Va(o,u)&&u in l?o:l,u,d)}const gBn={get:kWe(!1,!1)},wBn={get:kWe(!1,!0)},mBn={get:kWe(!0,!1)};const FYt=new WeakMap,BYt=new WeakMap,WYt=new WeakMap,yBn=new WeakMap;function vBn(n){switch(n){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function _Bn(n){return n.__v_skip||!Object.isExtensible(n)?0:vBn(zFn(n))}function wP(n){return mP(n)?n:RWe(n,!1,fBn,gBn,FYt)}function SBn(n){return RWe(n,!1,hBn,wBn,BYt)}function zX(n){return RWe(n,!0,dBn,mBn,WYt)}function RWe(n,r,o,l,u){if(!Qc(n)||n.__v_raw&&!(r&&n.__v_isReactive))return n;const d=u.get(n);if(d)return d;const h=_Bn(n);if(h===0)return n;const w=new Proxy(n,h===2?l:o);return u.set(n,w),w}function zD(n){return mP(n)?zD(n.__v_raw):!!(n&&n.__v_isReactive)}function mP(n){return!!(n&&n.__v_isReadonly)}function ev(n){return!!(n&&n.__v_isShallow)}function xWe(n){return n?!!n.__v_raw:!1}function Sa(n){const r=n&&n.__v_raw;return r?Sa(r):n}function X8(n){return!Va(n,"__v_skip")&&Object.isExtensible(n)&&SYt(n,"__v_skip",!0),n}const Wb=n=>Qc(n)?wP(n):n,kLe=n=>Qc(n)?zX(n):n;function _d(n){return n?n.__v_isRef===!0:!1}function Fo(n){return EBn(n,!1)}function EBn(n,r){return _d(n)?n:new kBn(n,r)}class kBn{constructor(r,o){this.dep=new Jhe,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=o?r:Sa(r),this._value=o?r:Wb(r),this.__v_isShallow=o}get value(){return this.dep.track(),this._value}set value(r){const o=this._rawValue,l=this.__v_isShallow||ev(r)||mP(r);r=l?r:Sa(r),GR(r,o)&&(this._rawValue=r,this._value=l?r:Wb(r),this.dep.trigger())}}function Wr(n){return _d(n)?n.value:n}function _a(n){return ls(n)?n():Wr(n)}const RBn={get:(n,r,o)=>r==="__v_raw"?n:Wr(Reflect.get(n,r,o)),set:(n,r,o,l)=>{const u=n[r];return _d(u)&&!_d(o)?(u.value=o,!0):Reflect.set(n,r,o,l)}};function HYt(n){return zD(n)?n:new Proxy(n,RBn)}class xBn{constructor(r){this.__v_isRef=!0,this._value=void 0;const o=this.dep=new Jhe,{get:l,set:u}=r(o.track.bind(o),o.trigger.bind(o));this._get=l,this._set=u}get value(){return this._value=this._get()}set value(r){this._set(r)}}function CBn(n){return new xBn(n)}function ABn(n){const r=Bo(n)?new Array(n.length):{};for(const o in n)r[o]=UYt(n,o);return r}class TBn{constructor(r,o,l){this._object=r,this._key=o,this._defaultValue=l,this.__v_isRef=!0,this._value=void 0}get value(){const r=this._object[this._key];return this._value=r===void 0?this._defaultValue:r}set value(r){this._object[this._key]=r}get dep(){return oBn(Sa(this._object),this._key)}}class $Bn{constructor(r){this._getter=r,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function bf(n,r,o){return _d(n)?n:ls(n)?new $Bn(n):Qc(n)&&arguments.length>1?UYt(n,r,o):Fo(n)}function UYt(n,r,o){const l=n[r];return _d(l)?l:new TBn(n,r,o)}class IBn{constructor(r,o,l){this.fn=r,this.setter=o,this._value=void 0,this.dep=new Jhe(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Oq-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!o,this.isSSR=l}notify(){if(this.flags|=16,!(this.flags&8)&&Jc!==this)return $Yt(this,!0),!0}get value(){const r=this.dep.track();return OYt(this),r&&(r.version=this.dep.version),this._value}set value(r){this.setter&&this.setter(r)}}function PBn(n,r,o=!1){let l,u;return ls(n)?l=n:(l=n.get,u=n.set),new IBn(l,u,o)}const qce={},Ede=new WeakMap;let _8;function OBn(n,r=!1,o=_8){if(o){let l=Ede.get(o);l||Ede.set(o,l=[]),l.push(n)}}function NBn(n,r,o=Lc){const{immediate:l,deep:u,once:d,scheduler:h,augmentJob:w,call:v}=o,y=Q=>u?Q:ev(Q)||u===!1||u===0?NR(Q,1):NR(Q);let E,A,C,R,O=!1,M=!1;if(_d(n)?(A=()=>n.value,O=ev(n)):zD(n)?(A=()=>y(n),O=!0):Bo(n)?(M=!0,O=n.some(Q=>zD(Q)||ev(Q)),A=()=>n.map(Q=>{if(_d(Q))return Q.value;if(zD(Q))return y(Q);if(ls(Q))return v?v(Q,2):Q()})):ls(n)?r?A=v?()=>v(n,2):n:A=()=>{if(C){PT();try{C()}finally{OT()}}const Q=_8;_8=E;try{return v?v(n,3,[R]):n(R)}finally{_8=Q}}:A=FE,r&&u){const Q=A,te=u===!0?1/0:u;A=()=>NR(Q(),te)}const L=Xhe(),H=()=>{E.stop(),L&&L.active&&yWe(L.effects,E)};if(d&&r){const Q=r;r=(...te)=>{Q(...te),H()}}let G=M?new Array(n.length).fill(qce):qce;const j=Q=>{if(!(!(E.flags&1)||!E.dirty&&!Q))if(r){const te=E.run();if(u||O||(M?te.some((pe,De)=>GR(pe,G[De])):GR(te,G))){C&&C();const pe=_8;_8=E;try{const De=[te,G===qce?void 0:M&&G[0]===qce?[]:G,R];v?v(r,3,De):r(...De),G=te}finally{_8=pe}}}else E.run()};return w&&w(j),E=new AYt(A),E.scheduler=h?()=>h(j,!1):j,R=Q=>OBn(Q,!1,E),C=E.onStop=()=>{const Q=Ede.get(E);if(Q){if(v)v(Q,4);else for(const te of Q)te();Ede.delete(E)}},r?l?j(!0):G=E.run():h?h(j.bind(null,!0),!0):E.run(),H.pause=E.pause.bind(E),H.resume=E.resume.bind(E),H.stop=H,H}function NR(n,r=1/0,o){if(r<=0||!Qc(n)||n.__v_skip||(o=o||new Set,o.has(n)))return n;if(o.add(n),r--,_d(n))NR(n.value,r,o);else if(Bo(n))for(let l=0;l{NR(l,r,o)});else if(_Yt(n)){for(const l in n)NR(n[l],r,o);for(const l of Object.getOwnPropertySymbols(n))Object.prototype.propertyIsEnumerable.call(n,l)&&NR(n[l],r,o)}return n}/** * @vue/runtime-core v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function KX(n,r,o,l){try{return l?n(...l):n()}catch(u){Xhe(u,r,o)}}function xS(n,r,o,l){if(ls(n)){const u=KX(n,r,o,l);return u&&pYt(u)&&u.catch(d=>{Xhe(d,r,o)}),u}if(Bo(n)){const u=[];for(let d=0;d>>1,u=t1[l],d=Dq(u);d=Dq(o)?t1.push(n):t1.splice(CBn(r),0,n),n.flags|=1,BYt()}}function BYt(){_de||(_de=FYt.then(HYt))}function ABn(n){Bo(n)?qD.push(...n):H4&&n.id===-1?H4.splice(bD+1,0,n):n.flags&1||(qD.push(n),n.flags|=1),BYt()}function DLt(n,r,o=TE+1){for(;oDq(o)-Dq(l));if(qD.length=0,H4){H4.push(...r);return}for(H4=r,bD=0;bDn.id==null?n.flags&2?-1:1/0:n.id;function HYt(n){try{for(TE=0;TE{l._d&&XLt(-1);const d=Sde(r);let h;try{h=n(...u)}finally{Sde(d),l._d&&XLt(1)}return h};return l._n=!0,l._c=!0,l._d=!0,l}function AS(n,r){if(hp===null)return n;const o=npe(hp),l=n.dirs||(n.dirs=[]);for(let u=0;un.__isTeleport,YK=n=>n&&(n.disabled||n.disabled===""),LLt=n=>n&&(n.defer||n.defer===""),jLt=n=>typeof SVGElement<"u"&&n instanceof SVGElement,FLt=n=>typeof MathMLElement=="function"&&n instanceof MathMLElement,mLe=(n,r)=>{const o=n&&n.to;return Fu(o)?r?r(o):null:o},zYt={name:"Teleport",__isTeleport:!0,process(n,r,o,l,u,d,h,w,v,y){const{mc:E,pc:A,pbc:C,o:{insert:R,querySelector:O,createText:M,createComment:L}}=y,H=YK(r.props);let{shapeFlag:G,children:j,dynamicChildren:Q}=r;if(n==null){const te=r.el=M(""),pe=r.anchor=M("");R(te,o,l),R(pe,o,l);const Le=(le,xe)=>{G&16&&(u&&u.isCE&&(u.ce._teleportTarget=le),E(j,le,xe,u,d,h,w,v))},Ee=()=>{const le=r.target=mLe(r.props,O),xe=KYt(le,r,M,R);le&&(h!=="svg"&&jLt(le)?h="svg":h!=="mathml"&&FLt(le)&&(h="mathml"),H||(Le(le,xe),Rfe(r,!1)))};H&&(Le(o,pe),Rfe(r,!0)),LLt(r.props)?Yg(()=>{Ee(),r.el.__isMounted=!0},d):Ee()}else{if(LLt(r.props)&&!n.el.__isMounted){Yg(()=>{zYt.process(n,r,o,l,u,d,h,w,v,y),delete n.el.__isMounted},d);return}r.el=n.el,r.targetStart=n.targetStart;const te=r.anchor=n.anchor,pe=r.target=n.target,Le=r.targetAnchor=n.targetAnchor,Ee=YK(n.props),le=Ee?o:pe,xe=Ee?te:Le;if(h==="svg"||jLt(pe)?h="svg":(h==="mathml"||FLt(pe))&&(h="mathml"),Q?(C(n.dynamicChildren,Q,le,u,d,h,w),RWe(n,r,!0)):v||A(n,r,le,xe,u,d,h,w,!1),H)Ee?r.props&&n.props&&r.props.to!==n.props.to&&(r.props.to=n.props.to):Kce(r,o,te,y,1);else if((r.props&&r.props.to)!==(n.props&&n.props.to)){const be=r.target=mLe(r.props,O);be&&Kce(r,be,null,y,0)}else Ee&&Kce(r,pe,Le,y,1);Rfe(r,H)}},remove(n,r,o,{um:l,o:{remove:u}},d){const{shapeFlag:h,children:w,anchor:v,targetStart:y,targetAnchor:E,target:A,props:C}=n;if(A&&(u(y),u(E)),d&&u(v),h&16){const R=d||!YK(C);for(let O=0;O{n.isMounted=!0}),Qhe(()=>{n.isUnmounting=!0}),n}const Uy=[Function,Array],qYt={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Uy,onEnter:Uy,onAfterEnter:Uy,onEnterCancelled:Uy,onBeforeLeave:Uy,onLeave:Uy,onAfterLeave:Uy,onLeaveCancelled:Uy,onBeforeAppear:Uy,onAppear:Uy,onAfterAppear:Uy,onAppearCancelled:Uy},XYt=n=>{const r=n.subTree;return r.component?XYt(r.component):r},PBn={name:"BaseTransition",props:qYt,setup(n,{slots:r}){const o=NT(),l=IBn();return()=>{const u=r.default&&QYt(r.default(),!0);if(!u||!u.length)return;const d=JYt(u),h=Sa(n),{mode:w}=h;if(l.isLeaving)return u7e(d);const v=BLt(d);if(!v)return u7e(d);let y=yLe(v,h,l,o,A=>y=A);v.type!==n1&&Lq(v,y);let E=o.subTree&&BLt(o.subTree);if(E&&E.type!==n1&&!M8(v,E)&&XYt(o).type!==n1){let A=yLe(E,h,l,o);if(Lq(E,A),w==="out-in"&&v.type!==n1)return l.isLeaving=!0,A.afterLeave=()=>{l.isLeaving=!1,o.job.flags&8||o.update(),delete A.afterLeave,E=void 0},u7e(d);w==="in-out"&&v.type!==n1?A.delayLeave=(C,R,O)=>{const M=YYt(l,E);M[String(E.key)]=E,C[U4]=()=>{R(),C[U4]=void 0,delete y.delayedLeave,E=void 0},y.delayedLeave=()=>{O(),delete y.delayedLeave,E=void 0}}:E=void 0}else E&&(E=void 0);return d}}};function JYt(n){let r=n[0];if(n.length>1){for(const o of n)if(o.type!==n1){r=o;break}}return r}const OBn=PBn;function YYt(n,r){const{leavingVNodes:o}=n;let l=o.get(r.type);return l||(l=Object.create(null),o.set(r.type,l)),l}function yLe(n,r,o,l,u){const{appear:d,mode:h,persisted:w=!1,onBeforeEnter:v,onEnter:y,onAfterEnter:E,onEnterCancelled:A,onBeforeLeave:C,onLeave:R,onAfterLeave:O,onLeaveCancelled:M,onBeforeAppear:L,onAppear:H,onAfterAppear:G,onAppearCancelled:j}=r,Q=String(n.key),te=YYt(o,n),pe=(le,xe)=>{le&&xS(le,l,9,xe)},Le=(le,xe)=>{const be=xe[1];pe(le,xe),Bo(le)?le.every(ae=>ae.length<=1)&&be():le.length<=1&&be()},Ee={mode:h,persisted:w,beforeEnter(le){let xe=v;if(!o.isMounted)if(d)xe=L||v;else return;le[U4]&&le[U4](!0);const be=te[Q];be&&M8(n,be)&&be.el[U4]&&be.el[U4](),pe(xe,[le])},enter(le){let xe=y,be=E,ae=A;if(!o.isMounted)if(d)xe=H||y,be=G||E,ae=j||A;else return;let F=!1;const me=le[qce]=ye=>{F||(F=!0,ye?pe(ae,[le]):pe(be,[le]),Ee.delayedLeave&&Ee.delayedLeave(),le[qce]=void 0)};xe?Le(xe,[le,me]):me()},leave(le,xe){const be=String(n.key);if(le[qce]&&le[qce](!0),o.isUnmounting)return xe();pe(C,[le]);let ae=!1;const F=le[U4]=me=>{ae||(ae=!0,xe(),me?pe(M,[le]):pe(O,[le]),le[U4]=void 0,te[be]===n&&delete te[be])};te[be]=n,R?Le(R,[le,F]):F()},clone(le){const xe=yLe(le,r,o,l,u);return u&&u(xe),xe}};return Ee}function u7e(n){if(Jhe(n))return n=_T(n),n.children=null,n}function BLt(n){if(!Jhe(n))return VYt(n.type)&&n.children?JYt(n.children):n;const{shapeFlag:r,children:o}=n;if(o){if(r&16)return o[0];if(r&32&&ls(o.default))return o.default()}}function Lq(n,r){n.shapeFlag&6&&n.component?(n.transition=r,Lq(n.component.subTree,r)):n.shapeFlag&128?(n.ssContent.transition=r.clone(n.ssContent),n.ssFallback.transition=r.clone(n.ssFallback)):n.transition=r}function QYt(n,r=!1,o){let l=[],u=0;for(let d=0;d1)for(let d=0;dEde(O,r&&(Bo(r)?r[M]:r),o,l,u));return}if(XD(l)&&!u){l.shapeFlag&512&&l.type.__asyncResolved&&l.component.subTree.component&&Ede(n,r,o,l.component.subTree);return}const d=l.shapeFlag&4?npe(l.component):l.el,h=u?null:d,{i:w,r:v}=n,y=r&&r.r,E=w.refs===Lc?w.refs={}:w.refs,A=w.setupState,C=Sa(A),R=A===Lc?()=>!1:O=>Va(C,O);if(y!=null&&y!==v&&(Fu(y)?(E[y]=null,R(y)&&(A[y]=null)):_d(y)&&(y.value=null)),ls(v))KX(v,w,12,[h,E]);else{const O=Fu(v),M=_d(v);if(O||M){const L=()=>{if(n.f){const H=O?R(v)?A[v]:E[v]:v.value;u?Bo(H)&&dWe(H,d):Bo(H)?H.includes(d)||H.push(d):O?(E[v]=[d],R(v)&&(A[v]=E[v])):(v.value=[d],n.k&&(E[n.k]=v.value))}else O?(E[v]=h,R(v)&&(A[v]=h)):M&&(v.value=h,n.k&&(E[n.k]=h))};h?(L.id=-1,Yg(L,o)):L()}}}Vhe().requestIdleCallback;Vhe().cancelIdleCallback;const XD=n=>!!n.type.__asyncLoader,Jhe=n=>n.type.__isKeepAlive;function NBn(n,r){eQt(n,"a",r)}function MBn(n,r){eQt(n,"da",r)}function eQt(n,r,o=Vp){const l=n.__wdc||(n.__wdc=()=>{let u=o;for(;u;){if(u.isDeactivated)return;u=u.parent}return n()});if(Yhe(r,l,o),o){let u=o.parent;for(;u&&u.parent;)Jhe(u.parent.vnode)&&DBn(l,r,o,u),u=u.parent}}function DBn(n,r,o,l){const u=Yhe(r,n,l,!0);Zhe(()=>{dWe(l[r],u)},o)}function Yhe(n,r,o=Vp,l=!1){if(o){const u=o[n]||(o[n]=[]),d=r.__weh||(r.__weh=(...h)=>{PT();const w=qX(o),v=xS(r,o,n,h);return w(),OT(),v});return l?u.unshift(d):u.push(d),d}}const Sx=n=>(r,o=Vp)=>{(!Bq||n==="sp")&&Yhe(n,(...l)=>r(...l),o)},tQt=Sx("bm"),sm=Sx("m"),LBn=Sx("bu"),jBn=Sx("u"),Qhe=Sx("bum"),Zhe=Sx("um"),FBn=Sx("sp"),BBn=Sx("rtg"),WBn=Sx("rtc");function HBn(n,r=Vp){Yhe("ec",n,r)}const _We="components",UBn="directives";function Ni(n,r){return SWe(_We,n,!0,r)||n}const nQt=Symbol.for("v-ndc");function jo(n){return Fu(n)?SWe(_We,n,!1)||n:n||nQt}function TS(n){return SWe(UBn,n)}function SWe(n,r,o=!0,l=!1){const u=hp||Vp;if(u){const d=u.type;if(n===_We){const w=AWn(d,!1);if(w&&(w===r||w===iv(r)||w===Ghe(iv(r))))return d}const h=WLt(u[n]||d[n],r)||WLt(u.appContext[n],r);return!h&&l?d:h}}function WLt(n,r){return n&&(n[r]||n[iv(r)]||n[Ghe(iv(r))])}function uu(n,r,o,l){let u;const d=o&&o[l],h=Bo(n);if(h||Fu(n)){const w=h&&KD(n);let v=!1;w&&(v=!tv(n),n=qhe(n)),u=new Array(n.length);for(let y=0,E=n.length;yr(w,v,void 0,d&&d[v]));else{const w=Object.keys(n);u=new Array(w.length);for(let v=0,y=w.length;v{const d=l.fn(...u);return d&&(d.key=l.key),d}:l.fn)}return n}function Vr(n,r,o={},l,u){if(hp.ce||hp.parent&&XD(hp.parent)&&hp.parent.ce)return r!=="default"&&(o.name=r),ze(),Nn(gi,null,[bi("slot",o,l&&l())],64);let d=n[r];d&&d._c&&(d._d=!1),ze();const h=d&&rQt(d(o)),w=o.key||h&&h.key,v=Nn(gi,{key:(w&&!_x(w)?w:`_${r}`)+(!h&&l?"_fb":"")},h||(l?l():[]),h&&n._===1?64:-2);return v.scopeId&&(v.slotScopeIds=[v.scopeId+"-s"]),d&&d._c&&(d._d=!0),v}function rQt(n){return n.some(r=>Fq(r)?!(r.type===n1||r.type===gi&&!rQt(r.children)):!0)?n:null}function Xce(n,r){const o={};for(const l in n)o[/[A-Z]/.test(l)?`on:${l}`:kfe(l)]=n[l];return o}const vLe=n=>n?kQt(n)?npe(n):vLe(n.parent):null,QK=zd(Object.create(null),{$:n=>n,$el:n=>n.vnode.el,$data:n=>n.data,$props:n=>n.props,$attrs:n=>n.attrs,$slots:n=>n.slots,$refs:n=>n.refs,$parent:n=>vLe(n.parent),$root:n=>vLe(n.root),$host:n=>n.ce,$emit:n=>n.emit,$options:n=>EWe(n),$forceUpdate:n=>n.f||(n.f=()=>{vWe(n.update)}),$nextTick:n=>n.n||(n.n=RS.bind(n.proxy)),$watch:n=>dWn.bind(n)}),f7e=(n,r)=>n!==Lc&&!n.__isScriptSetup&&Va(n,r),GBn={get({_:n},r){if(r==="__v_skip")return!0;const{ctx:o,setupState:l,data:u,props:d,accessCache:h,type:w,appContext:v}=n;let y;if(r[0]!=="$"){const R=h[r];if(R!==void 0)switch(R){case 1:return l[r];case 2:return u[r];case 4:return o[r];case 3:return d[r]}else{if(f7e(l,r))return h[r]=1,l[r];if(u!==Lc&&Va(u,r))return h[r]=2,u[r];if((y=n.propsOptions[0])&&Va(y,r))return h[r]=3,d[r];if(o!==Lc&&Va(o,r))return h[r]=4,o[r];_Le&&(h[r]=0)}}const E=QK[r];let A,C;if(E)return r==="$attrs"&&Bb(n.attrs,"get",""),E(n);if((A=w.__cssModules)&&(A=A[r]))return A;if(o!==Lc&&Va(o,r))return h[r]=4,o[r];if(C=v.config.globalProperties,Va(C,r))return C[r]},set({_:n},r,o){const{data:l,setupState:u,ctx:d}=n;return f7e(u,r)?(u[r]=o,!0):l!==Lc&&Va(l,r)?(l[r]=o,!0):Va(n.props,r)||r[0]==="$"&&r.slice(1)in n?!1:(d[r]=o,!0)},has({_:{data:n,setupState:r,accessCache:o,ctx:l,appContext:u,propsOptions:d}},h){let w;return!!o[h]||n!==Lc&&Va(n,h)||f7e(r,h)||(w=d[0])&&Va(w,h)||Va(l,h)||Va(QK,h)||Va(u.config.globalProperties,h)},defineProperty(n,r,o){return o.get!=null?n._.accessCache[r]=0:Va(o,"value")&&this.set(n,r,o.value,null),Reflect.defineProperty(n,r,o)}};function VBn(){return iQt().slots}function zBn(){return iQt().attrs}function iQt(){const n=NT();return n.setupContext||(n.setupContext=xQt(n))}function HLt(n){return Bo(n)?n.reduce((r,o)=>(r[o]=null,r),{}):n}function oQt(n,r){const o={};for(const l in n)r.includes(l)||Object.defineProperty(o,l,{enumerable:!0,get:()=>n[l]});return o}let _Le=!0;function KBn(n){const r=EWe(n),o=n.proxy,l=n.ctx;_Le=!1,r.beforeCreate&&ULt(r.beforeCreate,n,"bc");const{data:u,computed:d,methods:h,watch:w,provide:v,inject:y,created:E,beforeMount:A,mounted:C,beforeUpdate:R,updated:O,activated:M,deactivated:L,beforeDestroy:H,beforeUnmount:G,destroyed:j,unmounted:Q,render:te,renderTracked:pe,renderTriggered:Le,errorCaptured:Ee,serverPrefetch:le,expose:xe,inheritAttrs:be,components:ae,directives:F,filters:me}=r;if(y&&qBn(y,l,null),h)for(const Be in h){const He=h[Be];ls(He)&&(l[Be]=He.bind(o))}if(u){const Be=u.call(o,o);Qc(Be)&&(n.data=mP(Be))}if(_Le=!0,d)for(const Be in d){const He=d[Be],Ue=ls(He)?He.bind(o,o):ls(He.get)?He.get.bind(o,o):FE,Ge=!ls(He)&&ls(He.set)?He.set.bind(o):FE,Me=To({get:Ue,set:Ge});Object.defineProperty(l,Be,{enumerable:!0,configurable:!0,get:()=>Me.value,set:vt=>Me.value=vt})}if(w)for(const Be in w)sQt(w[Be],l,o,Be);if(v){const Be=ls(v)?v.call(o):v;Reflect.ownKeys(Be).forEach(He=>{vP(He,Be[He])})}E&&ULt(E,n,"c");function we(Be,He){Bo(He)?He.forEach(Ue=>Be(Ue.bind(o))):He&&Be(He.bind(o))}if(we(tQt,A),we(sm,C),we(LBn,R),we(jBn,O),we(NBn,M),we(MBn,L),we(HBn,Ee),we(WBn,pe),we(BBn,Le),we(Qhe,G),we(Zhe,Q),we(FBn,le),Bo(xe))if(xe.length){const Be=n.exposed||(n.exposed={});xe.forEach(He=>{Object.defineProperty(Be,He,{get:()=>o[He],set:Ue=>o[He]=Ue})})}else n.exposed||(n.exposed={});te&&n.render===FE&&(n.render=te),be!=null&&(n.inheritAttrs=be),ae&&(n.components=ae),F&&(n.directives=F),le&&ZYt(n)}function qBn(n,r,o=FE){Bo(n)&&(n=SLe(n));for(const l in n){const u=n[l];let d;Qc(u)?"default"in u?d=BE(u.from||l,u.default,!0):d=BE(u.from||l):d=BE(u),_d(d)?Object.defineProperty(r,l,{enumerable:!0,configurable:!0,get:()=>d.value,set:h=>d.value=h}):r[l]=d}}function ULt(n,r,o){xS(Bo(n)?n.map(l=>l.bind(r.proxy)):n.bind(r.proxy),r,o)}function sQt(n,r,o,l){let u=l.includes(".")?yQt(o,l):()=>o[l];if(Fu(n)){const d=r[n];ls(d)&&Zs(u,d)}else if(ls(n))Zs(u,n.bind(o));else if(Qc(n))if(Bo(n))n.forEach(d=>sQt(d,r,o,l));else{const d=ls(n.handler)?n.handler.bind(o):r[n.handler];ls(d)&&Zs(u,d,n)}}function EWe(n){const r=n.type,{mixins:o,extends:l}=r,{mixins:u,optionsCache:d,config:{optionMergeStrategies:h}}=n.appContext,w=d.get(r);let v;return w?v=w:!u.length&&!o&&!l?v=r:(v={},u.length&&u.forEach(y=>kde(v,y,h,!0)),kde(v,r,h)),Qc(r)&&d.set(r,v),v}function kde(n,r,o,l=!1){const{mixins:u,extends:d}=r;d&&kde(n,d,o,!0),u&&u.forEach(h=>kde(n,h,o,!0));for(const h in r)if(!(l&&h==="expose")){const w=XBn[h]||o&&o[h];n[h]=w?w(n[h],r[h]):r[h]}return n}const XBn={data:GLt,props:VLt,emits:VLt,methods:_K,computed:_K,beforeCreate:Jg,created:Jg,beforeMount:Jg,mounted:Jg,beforeUpdate:Jg,updated:Jg,beforeDestroy:Jg,beforeUnmount:Jg,destroyed:Jg,unmounted:Jg,activated:Jg,deactivated:Jg,errorCaptured:Jg,serverPrefetch:Jg,components:_K,directives:_K,watch:YBn,provide:GLt,inject:JBn};function GLt(n,r){return r?n?function(){return zd(ls(n)?n.call(this,this):n,ls(r)?r.call(this,this):r)}:r:n}function JBn(n,r){return _K(SLe(n),SLe(r))}function SLe(n){if(Bo(n)){const r={};for(let o=0;o1)return o&&ls(r)?r.call(l&&l.proxy):r}}const aQt={},cQt=()=>Object.create(aQt),uQt=n=>Object.getPrototypeOf(n)===aQt;function eWn(n,r,o,l=!1){const u={},d=cQt();n.propsDefaults=Object.create(null),fQt(n,r,u,d);for(const h in n.propsOptions[0])h in u||(u[h]=void 0);o?n.props=l?u:hBn(u):n.type.props?n.props=u:n.props=d,n.attrs=d}function tWn(n,r,o,l){const{props:u,attrs:d,vnode:{patchFlag:h}}=n,w=Sa(u),[v]=n.propsOptions;let y=!1;if((l||h>0)&&!(h&16)){if(h&8){const E=n.vnode.dynamicProps;for(let A=0;A{v=!0;const[C,R]=dQt(A,r,!0);zd(h,C),R&&w.push(...R)};!o&&r.mixins.length&&r.mixins.forEach(E),n.extends&&E(n.extends),n.mixins&&n.mixins.forEach(E)}if(!d&&!v)return Qc(n)&&l.set(n,VD),VD;if(Bo(d))for(let E=0;En[0]==="_"||n==="$stable",kWe=n=>Bo(n)?n.map(ME):[ME(n)],rWn=(n,r,o)=>{if(r._n)return r;const l=vi((...u)=>kWe(r(...u)),o);return l._c=!1,l},pQt=(n,r,o)=>{const l=n._ctx;for(const u in n){if(hQt(u))continue;const d=n[u];if(ls(d))r[u]=rWn(u,d,l);else if(d!=null){const h=kWe(d);r[u]=()=>h}}},bQt=(n,r)=>{const o=kWe(r);n.slots.default=()=>o},gQt=(n,r,o)=>{for(const l in r)(o||l!=="_")&&(n[l]=r[l])},iWn=(n,r,o)=>{const l=n.slots=cQt();if(n.vnode.shapeFlag&32){const u=r._;u?(gQt(l,r,o),o&&wYt(l,"_",u,!0)):pQt(r,l)}else r&&bQt(n,r)},oWn=(n,r,o)=>{const{vnode:l,slots:u}=n;let d=!0,h=Lc;if(l.shapeFlag&32){const w=r._;w?o&&w===1?d=!1:gQt(u,r,o):(d=!r.$stable,pQt(r,u)),h=r}else r&&(bQt(n,r),h={default:1});if(d)for(const w in u)!hQt(w)&&h[w]==null&&delete u[w]},Yg=yWn;function sWn(n){return lWn(n)}function lWn(n,r){const o=Vhe();o.__VUE__=!0;const{insert:l,remove:u,patchProp:d,createElement:h,createText:w,createComment:v,setText:y,setElementText:E,parentNode:A,nextSibling:C,setScopeId:R=FE,insertStaticContent:O}=n,M=(T,$,B,K=null,q=null,ke=null,Re=void 0,Ie=null,St=!!$.dynamicChildren)=>{if(T===$)return;T&&!M8(T,$)&&(K=Ye(T),vt(T,q,ke,!0),T=null),$.patchFlag===-2&&(St=!1,$.dynamicChildren=null);const{type:he,ref:zt,shapeFlag:Qt}=$;switch(he){case tpe:L(T,$,B,K);break;case n1:H(T,$,B,K);break;case p7e:T==null&&G($,B,K,Re);break;case gi:ae(T,$,B,K,q,ke,Re,Ie,St);break;default:Qt&1?te(T,$,B,K,q,ke,Re,Ie,St):Qt&6?F(T,$,B,K,q,ke,Re,Ie,St):(Qt&64||Qt&128)&&he.process(T,$,B,K,q,ke,Re,Ie,St,rn)}zt!=null&&q&&Ede(zt,T&&T.ref,ke,$||T,!$)},L=(T,$,B,K)=>{if(T==null)l($.el=w($.children),B,K);else{const q=$.el=T.el;$.children!==T.children&&y(q,$.children)}},H=(T,$,B,K)=>{T==null?l($.el=v($.children||""),B,K):$.el=T.el},G=(T,$,B,K)=>{[T.el,T.anchor]=O(T.children,$,B,K,T.el,T.anchor)},j=({el:T,anchor:$},B,K)=>{let q;for(;T&&T!==$;)q=C(T),l(T,B,K),T=q;l($,B,K)},Q=({el:T,anchor:$})=>{let B;for(;T&&T!==$;)B=C(T),u(T),T=B;u($)},te=(T,$,B,K,q,ke,Re,Ie,St)=>{$.type==="svg"?Re="svg":$.type==="math"&&(Re="mathml"),T==null?pe($,B,K,q,ke,Re,Ie,St):le(T,$,q,ke,Re,Ie,St)},pe=(T,$,B,K,q,ke,Re,Ie)=>{let St,he;const{props:zt,shapeFlag:Qt,transition:$n,dirs:Gn}=T;if(St=T.el=h(T.type,ke,zt&&zt.is,zt),Qt&8?E(St,T.children):Qt&16&&Ee(T.children,St,null,K,q,d7e(T,ke),Re,Ie),Gn&&Y5(T,null,K,"created"),Le(St,T,T.scopeId,Re,K),zt){for(const ce in zt)ce!=="value"&&!KK(ce)&&d(St,ce,null,zt[ce],ke,K);"value"in zt&&d(St,"value",null,zt.value,ke),(he=zt.onVnodeBeforeMount)&&SE(he,K,T)}Gn&&Y5(T,null,K,"beforeMount");const $e=aWn(q,$n);$e&&$n.beforeEnter(St),l(St,$,B),((he=zt&&zt.onVnodeMounted)||$e||Gn)&&Yg(()=>{he&&SE(he,K,T),$e&&$n.enter(St),Gn&&Y5(T,null,K,"mounted")},q)},Le=(T,$,B,K,q)=>{if(B&&R(T,B),K)for(let ke=0;ke{for(let he=St;he{const Ie=$.el=T.el;let{patchFlag:St,dynamicChildren:he,dirs:zt}=$;St|=T.patchFlag&16;const Qt=T.props||Lc,$n=$.props||Lc;let Gn;if(B&&Q5(B,!1),(Gn=$n.onVnodeBeforeUpdate)&&SE(Gn,B,$,T),zt&&Y5($,T,B,"beforeUpdate"),B&&Q5(B,!0),(Qt.innerHTML&&$n.innerHTML==null||Qt.textContent&&$n.textContent==null)&&E(Ie,""),he?xe(T.dynamicChildren,he,Ie,B,K,d7e($,q),ke):Re||He(T,$,Ie,null,B,K,d7e($,q),ke,!1),St>0){if(St&16)be(Ie,Qt,$n,B,q);else if(St&2&&Qt.class!==$n.class&&d(Ie,"class",null,$n.class,q),St&4&&d(Ie,"style",Qt.style,$n.style,q),St&8){const $e=$.dynamicProps;for(let ce=0;ce<$e.length;ce++){const de=$e[ce],et=Qt[de],ht=$n[de];(ht!==et||de==="value")&&d(Ie,de,et,ht,q,B)}}St&1&&T.children!==$.children&&E(Ie,$.children)}else!Re&&he==null&&be(Ie,Qt,$n,B,q);((Gn=$n.onVnodeUpdated)||zt)&&Yg(()=>{Gn&&SE(Gn,B,$,T),zt&&Y5($,T,B,"updated")},K)},xe=(T,$,B,K,q,ke,Re)=>{for(let Ie=0;Ie<$.length;Ie++){const St=T[Ie],he=$[Ie],zt=St.el&&(St.type===gi||!M8(St,he)||St.shapeFlag&70)?A(St.el):B;M(St,he,zt,null,K,q,ke,Re,!0)}},be=(T,$,B,K,q)=>{if($!==B){if($!==Lc)for(const ke in $)!KK(ke)&&!(ke in B)&&d(T,ke,$[ke],null,q,K);for(const ke in B){if(KK(ke))continue;const Re=B[ke],Ie=$[ke];Re!==Ie&&ke!=="value"&&d(T,ke,Ie,Re,q,K)}"value"in B&&d(T,"value",$.value,B.value,q)}},ae=(T,$,B,K,q,ke,Re,Ie,St)=>{const he=$.el=T?T.el:w(""),zt=$.anchor=T?T.anchor:w("");let{patchFlag:Qt,dynamicChildren:$n,slotScopeIds:Gn}=$;Gn&&(Ie=Ie?Ie.concat(Gn):Gn),T==null?(l(he,B,K),l(zt,B,K),Ee($.children||[],B,zt,q,ke,Re,Ie,St)):Qt>0&&Qt&64&&$n&&T.dynamicChildren?(xe(T.dynamicChildren,$n,B,q,ke,Re,Ie),($.key!=null||q&&$===q.subTree)&&RWe(T,$,!0)):He(T,$,B,zt,q,ke,Re,Ie,St)},F=(T,$,B,K,q,ke,Re,Ie,St)=>{$.slotScopeIds=Ie,T==null?$.shapeFlag&512?q.ctx.activate($,B,K,Re,St):me($,B,K,q,ke,Re,St):ye(T,$,St)},me=(T,$,B,K,q,ke,Re)=>{const Ie=T.component=kWn(T,K,q);if(Jhe(T)&&(Ie.ctx.renderer=rn),RWn(Ie,!1,Re),Ie.asyncDep){if(q&&q.registerDep(Ie,we,Re),!T.el){const St=Ie.subTree=bi(n1);H(null,St,$,B)}}else we(Ie,T,$,B,q,ke,Re)},ye=(T,$,B)=>{const K=$.component=T.component;if(wWn(T,$,B))if(K.asyncDep&&!K.asyncResolved){Be(K,$,B);return}else K.next=$,K.update();else $.el=T.el,K.vnode=$},we=(T,$,B,K,q,ke,Re)=>{const Ie=()=>{if(T.isMounted){let{next:Qt,bu:$n,u:Gn,parent:$e,vnode:ce}=T;{const Zt=wQt(T);if(Zt){Qt&&(Qt.el=ce.el,Be(T,Qt,Re)),Zt.asyncDep.then(()=>{T.isUnmounted||Ie()});return}}let de=Qt,et;Q5(T,!1),Qt?(Qt.el=ce.el,Be(T,Qt,Re)):Qt=ce,$n&&o7e($n),(et=Qt.props&&Qt.props.onVnodeBeforeUpdate)&&SE(et,$e,Qt,ce),Q5(T,!0);const ht=h7e(T),Jt=T.subTree;T.subTree=ht,M(Jt,ht,A(Jt.el),Ye(Jt),T,q,ke),Qt.el=ht.el,de===null&&mWn(T,ht.el),Gn&&Yg(Gn,q),(et=Qt.props&&Qt.props.onVnodeUpdated)&&Yg(()=>SE(et,$e,Qt,ce),q)}else{let Qt;const{el:$n,props:Gn}=$,{bm:$e,m:ce,parent:de,root:et,type:ht}=T,Jt=XD($);if(Q5(T,!1),$e&&o7e($e),!Jt&&(Qt=Gn&&Gn.onVnodeBeforeMount)&&SE(Qt,de,$),Q5(T,!0),$n&&Oe){const Zt=()=>{T.subTree=h7e(T),Oe($n,T.subTree,T,q,null)};Jt&&ht.__asyncHydrate?ht.__asyncHydrate($n,T,Zt):Zt()}else{et.ce&&et.ce._injectChildStyle(ht);const Zt=T.subTree=h7e(T);M(null,Zt,B,K,T,q,ke),$.el=Zt.el}if(ce&&Yg(ce,q),!Jt&&(Qt=Gn&&Gn.onVnodeMounted)){const Zt=$;Yg(()=>SE(Qt,de,Zt),q)}($.shapeFlag&256||de&&XD(de.vnode)&&de.vnode.shapeFlag&256)&&T.a&&Yg(T.a,q),T.isMounted=!0,$=B=K=null}};T.scope.on();const St=T.effect=new EYt(Ie);T.scope.off();const he=T.update=St.run.bind(St),zt=T.job=St.runIfDirty.bind(St);zt.i=T,zt.id=T.uid,St.scheduler=()=>vWe(zt),Q5(T,!0),he()},Be=(T,$,B)=>{$.component=T;const K=T.vnode.props;T.vnode=$,T.next=null,tWn(T,$.props,K,B),oWn(T,$.children,B),PT(),DLt(T),OT()},He=(T,$,B,K,q,ke,Re,Ie,St=!1)=>{const he=T&&T.children,zt=T?T.shapeFlag:0,Qt=$.children,{patchFlag:$n,shapeFlag:Gn}=$;if($n>0){if($n&128){Ge(he,Qt,B,K,q,ke,Re,Ie,St);return}else if($n&256){Ue(he,Qt,B,K,q,ke,Re,Ie,St);return}}Gn&8?(zt&16&&at(he,q,ke),Qt!==he&&E(B,Qt)):zt&16?Gn&16?Ge(he,Qt,B,K,q,ke,Re,Ie,St):at(he,q,ke,!0):(zt&8&&E(B,""),Gn&16&&Ee(Qt,B,K,q,ke,Re,Ie,St))},Ue=(T,$,B,K,q,ke,Re,Ie,St)=>{T=T||VD,$=$||VD;const he=T.length,zt=$.length,Qt=Math.min(he,zt);let $n;for($n=0;$nzt?at(T,q,ke,!0,!1,Qt):Ee($,B,K,q,ke,Re,Ie,St,Qt)},Ge=(T,$,B,K,q,ke,Re,Ie,St)=>{let he=0;const zt=$.length;let Qt=T.length-1,$n=zt-1;for(;he<=Qt&&he<=$n;){const Gn=T[he],$e=$[he]=St?G4($[he]):ME($[he]);if(M8(Gn,$e))M(Gn,$e,B,null,q,ke,Re,Ie,St);else break;he++}for(;he<=Qt&&he<=$n;){const Gn=T[Qt],$e=$[$n]=St?G4($[$n]):ME($[$n]);if(M8(Gn,$e))M(Gn,$e,B,null,q,ke,Re,Ie,St);else break;Qt--,$n--}if(he>Qt){if(he<=$n){const Gn=$n+1,$e=Gn$n)for(;he<=Qt;)vt(T[he],q,ke,!0),he++;else{const Gn=he,$e=he,ce=new Map;for(he=$e;he<=$n;he++){const ki=$[he]=St?G4($[he]):ME($[he]);ki.key!=null&&ce.set(ki.key,he)}let de,et=0;const ht=$n-$e+1;let Jt=!1,Zt=0;const qr=new Array(ht);for(he=0;he=ht){vt(ki,q,ke,!0);continue}let Ri;if(ki.key!=null)Ri=ce.get(ki.key);else for(de=$e;de<=$n;de++)if(qr[de-$e]===0&&M8(ki,$[de])){Ri=de;break}Ri===void 0?vt(ki,q,ke,!0):(qr[Ri-$e]=he+1,Ri>=Zt?Zt=Ri:Jt=!0,M(ki,$[Ri],B,null,q,ke,Re,Ie,St),et++)}const ao=Jt?cWn(qr):VD;for(de=ao.length-1,he=ht-1;he>=0;he--){const ki=$e+he,Ri=$[ki],xi=ki+1{const{el:ke,type:Re,transition:Ie,children:St,shapeFlag:he}=T;if(he&6){Me(T.component.subTree,$,B,K);return}if(he&128){T.suspense.move($,B,K);return}if(he&64){Re.move(T,$,B,rn);return}if(Re===gi){l(ke,$,B);for(let Qt=0;QtIe.enter(ke),q);else{const{leave:Qt,delayLeave:$n,afterLeave:Gn}=Ie,$e=()=>l(ke,$,B),ce=()=>{Qt(ke,()=>{$e(),Gn&&Gn()})};$n?$n(ke,$e,ce):ce()}else l(ke,$,B)},vt=(T,$,B,K=!1,q=!1)=>{const{type:ke,props:Re,ref:Ie,children:St,dynamicChildren:he,shapeFlag:zt,patchFlag:Qt,dirs:$n,cacheIndex:Gn}=T;if(Qt===-2&&(q=!1),Ie!=null&&Ede(Ie,null,B,T,!0),Gn!=null&&($.renderCache[Gn]=void 0),zt&256){$.ctx.deactivate(T);return}const $e=zt&1&&$n,ce=!XD(T);let de;if(ce&&(de=Re&&Re.onVnodeBeforeUnmount)&&SE(de,$,T),zt&6)ct(T.component,B,K);else{if(zt&128){T.suspense.unmount(B,K);return}$e&&Y5(T,null,$,"beforeUnmount"),zt&64?T.type.remove(T,$,B,rn,K):he&&!he.hasOnce&&(ke!==gi||Qt>0&&Qt&64)?at(he,$,B,!1,!0):(ke===gi&&Qt&384||!q&&zt&16)&&at(St,$,B),K&&re(T)}(ce&&(de=Re&&Re.onVnodeUnmounted)||$e)&&Yg(()=>{de&&SE(de,$,T),$e&&Y5(T,null,$,"unmounted")},B)},re=T=>{const{type:$,el:B,anchor:K,transition:q}=T;if($===gi){Te(B,K);return}if($===p7e){Q(T);return}const ke=()=>{u(B),q&&!q.persisted&&q.afterLeave&&q.afterLeave()};if(T.shapeFlag&1&&q&&!q.persisted){const{leave:Re,delayLeave:Ie}=q,St=()=>Re(B,ke);Ie?Ie(T.el,ke,St):St()}else ke()},Te=(T,$)=>{let B;for(;T!==$;)B=C(T),u(T),T=B;u($)},ct=(T,$,B)=>{const{bum:K,scope:q,job:ke,subTree:Re,um:Ie,m:St,a:he}=T;KLt(St),KLt(he),K&&o7e(K),q.stop(),ke&&(ke.flags|=8,vt(Re,T,$,B)),Ie&&Yg(Ie,$),Yg(()=>{T.isUnmounted=!0},$),$&&$.pendingBranch&&!$.isUnmounted&&T.asyncDep&&!T.asyncResolved&&T.suspenseId===$.pendingId&&($.deps--,$.deps===0&&$.resolve())},at=(T,$,B,K=!1,q=!1,ke=0)=>{for(let Re=ke;Re{if(T.shapeFlag&6)return Ye(T.component.subTree);if(T.shapeFlag&128)return T.suspense.next();const $=C(T.anchor||T.el),B=$&&$[GYt];return B?C(B):$};let mt=!1;const jt=(T,$,B)=>{T==null?$._vnode&&vt($._vnode,null,null,!0):M($._vnode||null,T,$,null,null,null,B),$._vnode=T,mt||(mt=!0,DLt(),WYt(),mt=!1)},rn={p:M,um:vt,m:Me,r:re,mt:me,mc:Ee,pc:He,pbc:xe,n:Ye,o:n};let Pe,Oe;return{render:jt,hydrate:Pe,createApp:ZBn(jt,Pe)}}function d7e({type:n,props:r},o){return o==="svg"&&n==="foreignObject"||o==="mathml"&&n==="annotation-xml"&&r&&r.encoding&&r.encoding.includes("html")?void 0:o}function Q5({effect:n,job:r},o){o?(n.flags|=32,r.flags|=4):(n.flags&=-33,r.flags&=-5)}function aWn(n,r){return(!n||n&&!n.pendingBranch)&&r&&!r.persisted}function RWe(n,r,o=!1){const l=n.children,u=r.children;if(Bo(l)&&Bo(u))for(let d=0;d>1,n[o[w]]0&&(r[l]=o[d-1]),o[d]=l)}}for(d=o.length,h=o[d-1];d-- >0;)o[d]=h,h=r[h];return o}function wQt(n){const r=n.subTree.component;if(r)return r.asyncDep&&!r.asyncResolved?r:wQt(r)}function KLt(n){if(n)for(let r=0;rBE(uWn);function Zs(n,r,o){return mQt(n,r,o)}function mQt(n,r,o=Lc){const{immediate:l,deep:u,flush:d,once:h}=o,w=zd({},o),v=r&&l||!r&&d!=="post";let y;if(Bq){if(d==="sync"){const R=fWn();y=R.__watcherHandles||(R.__watcherHandles=[])}else if(!v){const R=()=>{};return R.stop=FE,R.resume=FE,R.pause=FE,R}}const E=Vp;w.call=(R,O,M)=>xS(R,E,O,M);let A=!1;d==="post"?w.scheduler=R=>{Yg(R,E&&E.suspense)}:d!=="sync"&&(A=!0,w.scheduler=(R,O)=>{O?R():vWe(R)}),w.augmentJob=R=>{r&&(R.flags|=4),A&&(R.flags|=2,E&&(R.id=E.uid,R.i=E))};const C=RBn(n,r,w);return Bq&&(y?y.push(C):v&&C()),C}function dWn(n,r,o){const l=this.proxy,u=Fu(n)?n.includes(".")?yQt(l,n):()=>l[n]:n.bind(l,l);let d;ls(r)?d=r:(d=r.handler,o=r);const h=qX(this),w=mQt(u,d.bind(l),o);return h(),w}function yQt(n,r){const o=r.split(".");return()=>{let l=n;for(let u=0;ur==="modelValue"||r==="model-value"?n.modelModifiers:n[`${r}Modifiers`]||n[`${iv(r)}Modifiers`]||n[`${IT(r)}Modifiers`];function pWn(n,r,...o){if(n.isUnmounted)return;const l=n.vnode.props||Lc;let u=o;const d=r.startsWith("update:"),h=d&&hWn(l,r.slice(7));h&&(h.trim&&(u=o.map(E=>Fu(E)?E.trim():E)),h.number&&(u=o.map(BFn)));let w,v=l[w=kfe(r)]||l[w=kfe(iv(r))];!v&&d&&(v=l[w=kfe(IT(r))]),v&&xS(v,n,6,u);const y=l[w+"Once"];if(y){if(!n.emitted)n.emitted={};else if(n.emitted[w])return;n.emitted[w]=!0,xS(y,n,6,u)}}function vQt(n,r,o=!1){const l=r.emitsCache,u=l.get(n);if(u!==void 0)return u;const d=n.emits;let h={},w=!1;if(!ls(n)){const v=y=>{const E=vQt(y,r,!0);E&&(w=!0,zd(h,E))};!o&&r.mixins.length&&r.mixins.forEach(v),n.extends&&v(n.extends),n.mixins&&n.mixins.forEach(v)}return!d&&!w?(Qc(n)&&l.set(n,null),null):(Bo(d)?d.forEach(v=>h[v]=null):zd(h,d),Qc(n)&&l.set(n,h),h)}function epe(n,r){return!n||!Whe(r)?!1:(r=r.slice(2).replace(/Once$/,""),Va(n,r[0].toLowerCase()+r.slice(1))||Va(n,IT(r))||Va(n,r))}function h7e(n){const{type:r,vnode:o,proxy:l,withProxy:u,propsOptions:[d],slots:h,attrs:w,emit:v,render:y,renderCache:E,props:A,data:C,setupState:R,ctx:O,inheritAttrs:M}=n,L=Sde(n);let H,G;try{if(o.shapeFlag&4){const Q=u||l,te=Q;H=ME(y.call(te,Q,E,A,R,C,O)),G=w}else{const Q=r;H=ME(Q.length>1?Q(A,{attrs:w,slots:h,emit:v}):Q(A,null)),G=r.props?w:bWn(w)}}catch(Q){ZK.length=0,Xhe(Q,n,1),H=bi(n1)}let j=H;if(G&&M!==!1){const Q=Object.keys(G),{shapeFlag:te}=j;Q.length&&te&7&&(d&&Q.some(fWe)&&(G=gWn(G,d)),j=_T(j,G,!1,!0))}return o.dirs&&(j=_T(j,null,!1,!0),j.dirs=j.dirs?j.dirs.concat(o.dirs):o.dirs),o.transition&&Lq(j,o.transition),H=j,Sde(L),H}const bWn=n=>{let r;for(const o in n)(o==="class"||o==="style"||Whe(o))&&((r||(r={}))[o]=n[o]);return r},gWn=(n,r)=>{const o={};for(const l in n)(!fWe(l)||!(l.slice(9)in r))&&(o[l]=n[l]);return o};function wWn(n,r,o){const{props:l,children:u,component:d}=n,{props:h,children:w,patchFlag:v}=r,y=d.emitsOptions;if(r.dirs||r.transition)return!0;if(o&&v>=0){if(v&1024)return!0;if(v&16)return l?qLt(l,h,y):!!h;if(v&8){const E=r.dynamicProps;for(let A=0;An.__isSuspense;function yWn(n,r){r&&r.pendingBranch?Bo(n)?r.effects.push(...n):r.effects.push(n):ABn(n)}const gi=Symbol.for("v-fgt"),tpe=Symbol.for("v-txt"),n1=Symbol.for("v-cmt"),p7e=Symbol.for("v-stc"),ZK=[];let r1=null;function ze(n=!1){ZK.push(r1=n?null:[])}function vWn(){ZK.pop(),r1=ZK[ZK.length-1]||null}let kL=1;function XLt(n,r=!1){kL+=n,n<0&&r1&&r&&(r1.hasOnce=!0)}function SQt(n){return n.dynamicChildren=kL>0?r1||VD:null,vWn(),kL>0&&r1&&r1.push(n),n}function Lt(n,r,o,l,u,d){return SQt(mr(n,r,o,l,u,d,!0))}function Nn(n,r,o,l,u){return SQt(bi(n,r,o,l,u,!0))}function Fq(n){return n?n.__v_isVNode===!0:!1}function M8(n,r){return n.type===r.type&&n.key===r.key}const EQt=({key:n})=>n??null,xfe=({ref:n,ref_key:r,ref_for:o})=>(typeof n=="number"&&(n=""+n),n!=null?Fu(n)||_d(n)||ls(n)?{i:hp,r:n,k:r,f:!!o}:n:null);function mr(n,r=null,o=null,l=0,u=null,d=n===gi?0:1,h=!1,w=!1){const v={__v_isVNode:!0,__v_skip:!0,type:n,props:r,key:r&&EQt(r),ref:r&&xfe(r),scopeId:UYt,slotScopeIds:null,children:o,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:d,patchFlag:l,dynamicProps:u,dynamicChildren:null,appContext:null,ctx:hp};return w?(xWe(v,o),d&128&&n.normalize(v)):o&&(v.shapeFlag|=Fu(o)?8:16),kL>0&&!h&&r1&&(v.patchFlag>0||d&6)&&v.patchFlag!==32&&r1.push(v),v}const bi=_Wn;function _Wn(n,r=null,o=null,l=0,u=null,d=!1){if((!n||n===nQt)&&(n=n1),Fq(n)){const w=_T(n,r,!0);return o&&xWe(w,o),kL>0&&!d&&r1&&(w.shapeFlag&6?r1[r1.indexOf(n)]=w:r1.push(w)),w.patchFlag=-2,w}if(TWn(n)&&(n=n.__vccOpts),r){r=kLe(r);let{class:w,style:v}=r;w&&!Fu(w)&&(r.class=Lo(w)),Qc(v)&&(yWe(v)&&!Bo(v)&&(v=zd({},v)),r.style=Vb(v))}const h=Fu(n)?1:_Qt(n)?128:VYt(n)?64:Qc(n)?4:ls(n)?2:0;return mr(n,r,o,l,u,h,d,!0)}function kLe(n){return n?yWe(n)||uQt(n)?zd({},n):n:null}function _T(n,r,o=!1,l=!1){const{props:u,ref:d,patchFlag:h,children:w,transition:v}=n,y=r?Et(u||{},r):u,E={__v_isVNode:!0,__v_skip:!0,type:n.type,props:y,key:y&&EQt(y),ref:r&&r.ref?o&&d?Bo(d)?d.concat(xfe(r)):[d,xfe(r)]:xfe(r):d,scopeId:n.scopeId,slotScopeIds:n.slotScopeIds,children:w,target:n.target,targetStart:n.targetStart,targetAnchor:n.targetAnchor,staticCount:n.staticCount,shapeFlag:n.shapeFlag,patchFlag:r&&n.type!==gi?h===-1?16:h|16:h,dynamicProps:n.dynamicProps,dynamicChildren:n.dynamicChildren,appContext:n.appContext,dirs:n.dirs,transition:v,component:n.component,suspense:n.suspense,ssContent:n.ssContent&&_T(n.ssContent),ssFallback:n.ssFallback&&_T(n.ssFallback),el:n.el,anchor:n.anchor,ctx:n.ctx,ce:n.ce};return v&&l&&Lq(E,v.clone(E)),E}function nm(n=" ",r=0){return bi(tpe,null,n,r)}function fr(n="",r=!1){return r?(ze(),Nn(n1,null,n)):bi(n1,null,n)}function ME(n){return n==null||typeof n=="boolean"?bi(n1):Bo(n)?bi(gi,null,n.slice()):Fq(n)?G4(n):bi(tpe,null,String(n))}function G4(n){return n.el===null&&n.patchFlag!==-1||n.memo?n:_T(n)}function xWe(n,r){let o=0;const{shapeFlag:l}=n;if(r==null)r=null;else if(Bo(r))o=16;else if(typeof r=="object")if(l&65){const u=r.default;u&&(u._c&&(u._d=!1),xWe(n,u()),u._c&&(u._d=!0));return}else{o=32;const u=r._;!u&&!uQt(r)?r._ctx=hp:u===3&&hp&&(hp.slots._===1?r._=1:(r._=2,n.patchFlag|=1024))}else ls(r)?(r={default:r,_ctx:hp},o=32):(r=String(r),l&64?(o=16,r=[nm(r)]):o=8);n.children=r,n.shapeFlag|=o}function Et(...n){const r={};for(let o=0;oVp||hp;let Rde,RLe;{const n=Vhe(),r=(o,l)=>{let u;return(u=n[o])||(u=n[o]=[]),u.push(l),d=>{u.length>1?u.forEach(h=>h(d)):u[0](d)}};Rde=r("__VUE_INSTANCE_SETTERS__",o=>Vp=o),RLe=r("__VUE_SSR_SETTERS__",o=>Bq=o)}const qX=n=>{const r=Vp;return Rde(n),n.scope.on(),()=>{n.scope.off(),Rde(r)}},JLt=()=>{Vp&&Vp.scope.off(),Rde(null)};function kQt(n){return n.vnode.shapeFlag&4}let Bq=!1;function RWn(n,r=!1,o=!1){r&&RLe(r);const{props:l,children:u}=n.vnode,d=kQt(n);eWn(n,l,d,r),iWn(n,u,o);const h=d?xWn(n,r):void 0;return r&&RLe(!1),h}function xWn(n,r){const o=n.type;n.accessCache=Object.create(null),n.proxy=new Proxy(n.ctx,GBn);const{setup:l}=o;if(l){PT();const u=n.setupContext=l.length>1?xQt(n):null,d=qX(n),h=KX(l,n,0,[n.props,u]),w=pYt(h);if(OT(),d(),(w||n.sp)&&!XD(n)&&ZYt(n),w){if(h.then(JLt,JLt),r)return h.then(v=>{YLt(n,v,r)}).catch(v=>{Xhe(v,n,0)});n.asyncDep=h}else YLt(n,h,r)}else RQt(n,r)}function YLt(n,r,o){ls(r)?n.type.__ssrInlineRender?n.ssrRender=r:n.render=r:Qc(r)&&(n.setupState=LYt(r)),RQt(n,o)}let QLt;function RQt(n,r,o){const l=n.type;if(!n.render){if(!r&&QLt&&!l.render){const u=l.template||EWe(n).template;if(u){const{isCustomElement:d,compilerOptions:h}=n.appContext.config,{delimiters:w,compilerOptions:v}=l,y=zd(zd({isCustomElement:d,delimiters:w},h),v);l.render=QLt(u,y)}}n.render=l.render||FE}{const u=qX(n);PT();try{KBn(n)}finally{OT(),u()}}}const CWn={get(n,r){return Bb(n,"get",""),n[r]}};function xQt(n){const r=o=>{n.exposed=o||{}};return{attrs:new Proxy(n.attrs,CWn),slots:n.slots,emit:n.emit,expose:r}}function npe(n){return n.exposed?n.exposeProxy||(n.exposeProxy=new Proxy(LYt(X8(n.exposed)),{get(r,o){if(o in r)return r[o];if(o in QK)return QK[o](n)},has(r,o){return o in r||o in QK}})):n.proxy}function AWn(n,r=!0){return ls(n)?n.displayName||n.name:n.name||r&&n.__name}function TWn(n){return ls(n)&&"__vccOpts"in n}const To=(n,r)=>EBn(n,r,Bq);function sc(n,r,o){const l=arguments.length;return l===2?Qc(r)&&!Bo(r)?Fq(r)?bi(n,null,[r]):bi(n,r):bi(n,null,r):(l>3?o=Array.prototype.slice.call(arguments,2):l===3&&Fq(o)&&(o=[o]),bi(n,r,o))}function $Wn(n,r){const o=n.memo;if(o.length!=r.length)return!1;for(let l=0;l0&&r1&&r1.push(n),!0}const IWn="3.5.13";/** +**/function KX(n,r,o,l){try{return l?n(...l):n()}catch(u){Qhe(u,r,o)}}function xS(n,r,o,l){if(ls(n)){const u=KX(n,r,o,l);return u&&yYt(u)&&u.catch(d=>{Qhe(d,r,o)}),u}if(Bo(n)){const u=[];for(let d=0;d>>1,u=t1[l],d=Mq(u);d=Mq(o)?t1.push(n):t1.splice(DBn(r),0,n),n.flags|=1,VYt()}}function VYt(){kde||(kde=GYt.then(KYt))}function LBn(n){Bo(n)?KD.push(...n):H4&&n.id===-1?H4.splice(pD+1,0,n):n.flags&1||(KD.push(n),n.flags|=1),VYt()}function HLt(n,r,o=TE+1){for(;oMq(o)-Mq(l));if(KD.length=0,H4){H4.push(...r);return}for(H4=r,pD=0;pDn.id==null?n.flags&2?-1:1/0:n.id;function KYt(n){try{for(TE=0;TE{l._d&&tjt(-1);const d=Rde(r);let h;try{h=n(...u)}finally{Rde(d),l._d&&tjt(1)}return h};return l._n=!0,l._c=!0,l._d=!0,l}function AS(n,r){if(hp===null)return n;const o=ope(hp),l=n.dirs||(n.dirs=[]);for(let u=0;un.__isTeleport,JK=n=>n&&(n.disabled||n.disabled===""),ULt=n=>n&&(n.defer||n.defer===""),GLt=n=>typeof SVGElement<"u"&&n instanceof SVGElement,VLt=n=>typeof MathMLElement=="function"&&n instanceof MathMLElement,RLe=(n,r)=>{const o=n&&n.to;return Fu(o)?r?r(o):null:o},YYt={name:"Teleport",__isTeleport:!0,process(n,r,o,l,u,d,h,w,v,y){const{mc:E,pc:A,pbc:C,o:{insert:R,querySelector:O,createText:M,createComment:L}}=y,H=JK(r.props);let{shapeFlag:G,children:j,dynamicChildren:Q}=r;if(n==null){const te=r.el=M(""),pe=r.anchor=M("");R(te,o,l),R(pe,o,l);const De=(le,xe)=>{G&16&&(u&&u.isCE&&(u.ce._teleportTarget=le),E(j,le,xe,u,d,h,w,v))},Re=()=>{const le=r.target=RLe(r.props,O),xe=QYt(le,r,M,R);le&&(h!=="svg"&&GLt(le)?h="svg":h!=="mathml"&&VLt(le)&&(h="mathml"),H||(De(le,xe),Cfe(r,!1)))};H&&(De(o,pe),Cfe(r,!0)),ULt(r.props)?Yg(()=>{Re(),r.el.__isMounted=!0},d):Re()}else{if(ULt(r.props)&&!n.el.__isMounted){Yg(()=>{YYt.process(n,r,o,l,u,d,h,w,v,y),delete n.el.__isMounted},d);return}r.el=n.el,r.targetStart=n.targetStart;const te=r.anchor=n.anchor,pe=r.target=n.target,De=r.targetAnchor=n.targetAnchor,Re=JK(n.props),le=Re?o:pe,xe=Re?te:De;if(h==="svg"||GLt(pe)?h="svg":(h==="mathml"||VLt(pe))&&(h="mathml"),Q?(C(n.dynamicChildren,Q,le,u,d,h,w),PWe(n,r,!0)):v||A(n,r,le,xe,u,d,h,w,!1),H)Re?r.props&&n.props&&r.props.to!==n.props.to&&(r.props.to=n.props.to):Xce(r,o,te,y,1);else if((r.props&&r.props.to)!==(n.props&&n.props.to)){const be=r.target=RLe(r.props,O);be&&Xce(r,be,null,y,0)}else Re&&Xce(r,pe,De,y,1);Cfe(r,H)}},remove(n,r,o,{um:l,o:{remove:u}},d){const{shapeFlag:h,children:w,anchor:v,targetStart:y,targetAnchor:E,target:A,props:C}=n;if(A&&(u(y),u(E)),d&&u(v),h&16){const R=d||!JK(C);for(let O=0;O{n.isMounted=!0}),tpe(()=>{n.isUnmounting=!0}),n}const Hy=[Function,Array],ZYt={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Hy,onEnter:Hy,onAfterEnter:Hy,onEnterCancelled:Hy,onBeforeLeave:Hy,onLeave:Hy,onAfterLeave:Hy,onLeaveCancelled:Hy,onBeforeAppear:Hy,onAppear:Hy,onAfterAppear:Hy,onAppearCancelled:Hy},eQt=n=>{const r=n.subTree;return r.component?eQt(r.component):r},WBn={name:"BaseTransition",props:ZYt,setup(n,{slots:r}){const o=NT(),l=BBn();return()=>{const u=r.default&&rQt(r.default(),!0);if(!u||!u.length)return;const d=tQt(u),h=Sa(n),{mode:w}=h;if(l.isLeaving)return p7e(d);const v=zLt(d);if(!v)return p7e(d);let y=xLe(v,h,l,o,A=>y=A);v.type!==n1&&Dq(v,y);let E=o.subTree&&zLt(o.subTree);if(E&&E.type!==n1&&!M8(v,E)&&eQt(o).type!==n1){let A=xLe(E,h,l,o);if(Dq(E,A),w==="out-in"&&v.type!==n1)return l.isLeaving=!0,A.afterLeave=()=>{l.isLeaving=!1,o.job.flags&8||o.update(),delete A.afterLeave,E=void 0},p7e(d);w==="in-out"&&v.type!==n1?A.delayLeave=(C,R,O)=>{const M=nQt(l,E);M[String(E.key)]=E,C[U4]=()=>{R(),C[U4]=void 0,delete y.delayedLeave,E=void 0},y.delayedLeave=()=>{O(),delete y.delayedLeave,E=void 0}}:E=void 0}else E&&(E=void 0);return d}}};function tQt(n){let r=n[0];if(n.length>1){for(const o of n)if(o.type!==n1){r=o;break}}return r}const HBn=WBn;function nQt(n,r){const{leavingVNodes:o}=n;let l=o.get(r.type);return l||(l=Object.create(null),o.set(r.type,l)),l}function xLe(n,r,o,l,u){const{appear:d,mode:h,persisted:w=!1,onBeforeEnter:v,onEnter:y,onAfterEnter:E,onEnterCancelled:A,onBeforeLeave:C,onLeave:R,onAfterLeave:O,onLeaveCancelled:M,onBeforeAppear:L,onAppear:H,onAfterAppear:G,onAppearCancelled:j}=r,Q=String(n.key),te=nQt(o,n),pe=(le,xe)=>{le&&xS(le,l,9,xe)},De=(le,xe)=>{const be=xe[1];pe(le,xe),Bo(le)?le.every(ae=>ae.length<=1)&&be():le.length<=1&&be()},Re={mode:h,persisted:w,beforeEnter(le){let xe=v;if(!o.isMounted)if(d)xe=L||v;else return;le[U4]&&le[U4](!0);const be=te[Q];be&&M8(n,be)&&be.el[U4]&&be.el[U4](),pe(xe,[le])},enter(le){let xe=y,be=E,ae=A;if(!o.isMounted)if(d)xe=H||y,be=G||E,ae=j||A;else return;let F=!1;const me=le[Jce]=ye=>{F||(F=!0,ye?pe(ae,[le]):pe(be,[le]),Re.delayedLeave&&Re.delayedLeave(),le[Jce]=void 0)};xe?De(xe,[le,me]):me()},leave(le,xe){const be=String(n.key);if(le[Jce]&&le[Jce](!0),o.isUnmounting)return xe();pe(C,[le]);let ae=!1;const F=le[U4]=me=>{ae||(ae=!0,xe(),me?pe(M,[le]):pe(O,[le]),le[U4]=void 0,te[be]===n&&delete te[be])};te[be]=n,R?De(R,[le,F]):F()},clone(le){const xe=xLe(le,r,o,l,u);return u&&u(xe),xe}};return Re}function p7e(n){if(Zhe(n))return n=_T(n),n.children=null,n}function zLt(n){if(!Zhe(n))return JYt(n.type)&&n.children?tQt(n.children):n;const{shapeFlag:r,children:o}=n;if(o){if(r&16)return o[0];if(r&32&&ls(o.default))return o.default()}}function Dq(n,r){n.shapeFlag&6&&n.component?(n.transition=r,Dq(n.component.subTree,r)):n.shapeFlag&128?(n.ssContent.transition=r.clone(n.ssContent),n.ssFallback.transition=r.clone(n.ssFallback)):n.transition=r}function rQt(n,r=!1,o){let l=[],u=0;for(let d=0;d1)for(let d=0;dxde(O,r&&(Bo(r)?r[M]:r),o,l,u));return}if(qD(l)&&!u){l.shapeFlag&512&&l.type.__asyncResolved&&l.component.subTree.component&&xde(n,r,o,l.component.subTree);return}const d=l.shapeFlag&4?ope(l.component):l.el,h=u?null:d,{i:w,r:v}=n,y=r&&r.r,E=w.refs===Lc?w.refs={}:w.refs,A=w.setupState,C=Sa(A),R=A===Lc?()=>!1:O=>Va(C,O);if(y!=null&&y!==v&&(Fu(y)?(E[y]=null,R(y)&&(A[y]=null)):_d(y)&&(y.value=null)),ls(v))KX(v,w,12,[h,E]);else{const O=Fu(v),M=_d(v);if(O||M){const L=()=>{if(n.f){const H=O?R(v)?A[v]:E[v]:v.value;u?Bo(H)&&yWe(H,d):Bo(H)?H.includes(d)||H.push(d):O?(E[v]=[d],R(v)&&(A[v]=E[v])):(v.value=[d],n.k&&(E[n.k]=v.value))}else O?(E[v]=h,R(v)&&(A[v]=h)):M&&(v.value=h,n.k&&(E[n.k]=h))};h?(L.id=-1,Yg(L,o)):L()}}}qhe().requestIdleCallback;qhe().cancelIdleCallback;const qD=n=>!!n.type.__asyncLoader,Zhe=n=>n.type.__isKeepAlive;function UBn(n,r){oQt(n,"a",r)}function GBn(n,r){oQt(n,"da",r)}function oQt(n,r,o=Vp){const l=n.__wdc||(n.__wdc=()=>{let u=o;for(;u;){if(u.isDeactivated)return;u=u.parent}return n()});if(epe(r,l,o),o){let u=o.parent;for(;u&&u.parent;)Zhe(u.parent.vnode)&&VBn(l,r,o,u),u=u.parent}}function VBn(n,r,o,l){const u=epe(r,n,l,!0);npe(()=>{yWe(l[r],u)},o)}function epe(n,r,o=Vp,l=!1){if(o){const u=o[n]||(o[n]=[]),d=r.__weh||(r.__weh=(...h)=>{PT();const w=qX(o),v=xS(r,o,n,h);return w(),OT(),v});return l?u.unshift(d):u.push(d),d}}const Sx=n=>(r,o=Vp)=>{(!Fq||n==="sp")&&epe(n,(...l)=>r(...l),o)},sQt=Sx("bm"),av=Sx("m"),zBn=Sx("bu"),KBn=Sx("u"),tpe=Sx("bum"),npe=Sx("um"),qBn=Sx("sp"),XBn=Sx("rtg"),JBn=Sx("rtc");function YBn(n,r=Vp){epe("ec",n,r)}const AWe="components",QBn="directives";function Ni(n,r){return TWe(AWe,n,!0,r)||n}const lQt=Symbol.for("v-ndc");function jo(n){return Fu(n)?TWe(AWe,n,!1)||n:n||lQt}function TS(n){return TWe(QBn,n)}function TWe(n,r,o=!0,l=!1){const u=hp||Vp;if(u){const d=u.type;if(n===AWe){const w=LWn(d,!1);if(w&&(w===r||w===rv(r)||w===Khe(rv(r))))return d}const h=KLt(u[n]||d[n],r)||KLt(u.appContext[n],r);return!h&&l?d:h}}function KLt(n,r){return n&&(n[r]||n[rv(r)]||n[Khe(rv(r))])}function uu(n,r,o,l){let u;const d=o&&o[l],h=Bo(n);if(h||Fu(n)){const w=h&&zD(n);let v=!1;w&&(v=!ev(n),n=Yhe(n)),u=new Array(n.length);for(let y=0,E=n.length;yr(w,v,void 0,d&&d[v]));else{const w=Object.keys(n);u=new Array(w.length);for(let v=0,y=w.length;v{const d=l.fn(...u);return d&&(d.key=l.key),d}:l.fn)}return n}function Vr(n,r,o={},l,u){if(hp.ce||hp.parent&&qD(hp.parent)&&hp.parent.ce)return r!=="default"&&(o.name=r),ze(),Nn(gi,null,[bi("slot",o,l&&l())],64);let d=n[r];d&&d._c&&(d._d=!1),ze();const h=d&&aQt(d(o)),w=o.key||h&&h.key,v=Nn(gi,{key:(w&&!_x(w)?w:`_${r}`)+(!h&&l?"_fb":"")},h||(l?l():[]),h&&n._===1?64:-2);return v.scopeId&&(v.slotScopeIds=[v.scopeId+"-s"]),d&&d._c&&(d._d=!0),v}function aQt(n){return n.some(r=>jq(r)?!(r.type===n1||r.type===gi&&!aQt(r.children)):!0)?n:null}function Yce(n,r){const o={};for(const l in n)o[/[A-Z]/.test(l)?`on:${l}`:xfe(l)]=n[l];return o}const CLe=n=>n?TQt(n)?ope(n):CLe(n.parent):null,YK=zd(Object.create(null),{$:n=>n,$el:n=>n.vnode.el,$data:n=>n.data,$props:n=>n.props,$attrs:n=>n.attrs,$slots:n=>n.slots,$refs:n=>n.refs,$parent:n=>CLe(n.parent),$root:n=>CLe(n.root),$host:n=>n.ce,$emit:n=>n.emit,$options:n=>$We(n),$forceUpdate:n=>n.f||(n.f=()=>{CWe(n.update)}),$nextTick:n=>n.n||(n.n=RS.bind(n.proxy)),$watch:n=>_Wn.bind(n)}),b7e=(n,r)=>n!==Lc&&!n.__isScriptSetup&&Va(n,r),ZBn={get({_:n},r){if(r==="__v_skip")return!0;const{ctx:o,setupState:l,data:u,props:d,accessCache:h,type:w,appContext:v}=n;let y;if(r[0]!=="$"){const R=h[r];if(R!==void 0)switch(R){case 1:return l[r];case 2:return u[r];case 4:return o[r];case 3:return d[r]}else{if(b7e(l,r))return h[r]=1,l[r];if(u!==Lc&&Va(u,r))return h[r]=2,u[r];if((y=n.propsOptions[0])&&Va(y,r))return h[r]=3,d[r];if(o!==Lc&&Va(o,r))return h[r]=4,o[r];ALe&&(h[r]=0)}}const E=YK[r];let A,C;if(E)return r==="$attrs"&&Bb(n.attrs,"get",""),E(n);if((A=w.__cssModules)&&(A=A[r]))return A;if(o!==Lc&&Va(o,r))return h[r]=4,o[r];if(C=v.config.globalProperties,Va(C,r))return C[r]},set({_:n},r,o){const{data:l,setupState:u,ctx:d}=n;return b7e(u,r)?(u[r]=o,!0):l!==Lc&&Va(l,r)?(l[r]=o,!0):Va(n.props,r)||r[0]==="$"&&r.slice(1)in n?!1:(d[r]=o,!0)},has({_:{data:n,setupState:r,accessCache:o,ctx:l,appContext:u,propsOptions:d}},h){let w;return!!o[h]||n!==Lc&&Va(n,h)||b7e(r,h)||(w=d[0])&&Va(w,h)||Va(l,h)||Va(YK,h)||Va(u.config.globalProperties,h)},defineProperty(n,r,o){return o.get!=null?n._.accessCache[r]=0:Va(o,"value")&&this.set(n,r,o.value,null),Reflect.defineProperty(n,r,o)}};function eWn(){return cQt().slots}function tWn(){return cQt().attrs}function cQt(){const n=NT();return n.setupContext||(n.setupContext=IQt(n))}function qLt(n){return Bo(n)?n.reduce((r,o)=>(r[o]=null,r),{}):n}function uQt(n,r){const o={};for(const l in n)r.includes(l)||Object.defineProperty(o,l,{enumerable:!0,get:()=>n[l]});return o}let ALe=!0;function nWn(n){const r=$We(n),o=n.proxy,l=n.ctx;ALe=!1,r.beforeCreate&&XLt(r.beforeCreate,n,"bc");const{data:u,computed:d,methods:h,watch:w,provide:v,inject:y,created:E,beforeMount:A,mounted:C,beforeUpdate:R,updated:O,activated:M,deactivated:L,beforeDestroy:H,beforeUnmount:G,destroyed:j,unmounted:Q,render:te,renderTracked:pe,renderTriggered:De,errorCaptured:Re,serverPrefetch:le,expose:xe,inheritAttrs:be,components:ae,directives:F,filters:me}=r;if(y&&rWn(y,l,null),h)for(const Be in h){const He=h[Be];ls(He)&&(l[Be]=He.bind(o))}if(u){const Be=u.call(o,o);Qc(Be)&&(n.data=wP(Be))}if(ALe=!0,d)for(const Be in d){const He=d[Be],Ue=ls(He)?He.bind(o,o):ls(He.get)?He.get.bind(o,o):FE,Ge=!ls(He)&&ls(He.set)?He.set.bind(o):FE,Le=To({get:Ue,set:Ge});Object.defineProperty(l,Be,{enumerable:!0,configurable:!0,get:()=>Le.value,set:ft=>Le.value=ft})}if(w)for(const Be in w)fQt(w[Be],l,o,Be);if(v){const Be=ls(v)?v.call(o):v;Reflect.ownKeys(Be).forEach(He=>{yP(He,Be[He])})}E&&XLt(E,n,"c");function we(Be,He){Bo(He)?He.forEach(Ue=>Be(Ue.bind(o))):He&&Be(He.bind(o))}if(we(sQt,A),we(av,C),we(zBn,R),we(KBn,O),we(UBn,M),we(GBn,L),we(YBn,Re),we(JBn,pe),we(XBn,De),we(tpe,G),we(npe,Q),we(qBn,le),Bo(xe))if(xe.length){const Be=n.exposed||(n.exposed={});xe.forEach(He=>{Object.defineProperty(Be,He,{get:()=>o[He],set:Ue=>o[He]=Ue})})}else n.exposed||(n.exposed={});te&&n.render===FE&&(n.render=te),be!=null&&(n.inheritAttrs=be),ae&&(n.components=ae),F&&(n.directives=F),le&&iQt(n)}function rWn(n,r,o=FE){Bo(n)&&(n=TLe(n));for(const l in n){const u=n[l];let d;Qc(u)?"default"in u?d=BE(u.from||l,u.default,!0):d=BE(u.from||l):d=BE(u),_d(d)?Object.defineProperty(r,l,{enumerable:!0,configurable:!0,get:()=>d.value,set:h=>d.value=h}):r[l]=d}}function XLt(n,r,o){xS(Bo(n)?n.map(l=>l.bind(r.proxy)):n.bind(r.proxy),r,o)}function fQt(n,r,o,l){let u=l.includes(".")?kQt(o,l):()=>o[l];if(Fu(n)){const d=r[n];ls(d)&&Zs(u,d)}else if(ls(n))Zs(u,n.bind(o));else if(Qc(n))if(Bo(n))n.forEach(d=>fQt(d,r,o,l));else{const d=ls(n.handler)?n.handler.bind(o):r[n.handler];ls(d)&&Zs(u,d,n)}}function $We(n){const r=n.type,{mixins:o,extends:l}=r,{mixins:u,optionsCache:d,config:{optionMergeStrategies:h}}=n.appContext,w=d.get(r);let v;return w?v=w:!u.length&&!o&&!l?v=r:(v={},u.length&&u.forEach(y=>Cde(v,y,h,!0)),Cde(v,r,h)),Qc(r)&&d.set(r,v),v}function Cde(n,r,o,l=!1){const{mixins:u,extends:d}=r;d&&Cde(n,d,o,!0),u&&u.forEach(h=>Cde(n,h,o,!0));for(const h in r)if(!(l&&h==="expose")){const w=iWn[h]||o&&o[h];n[h]=w?w(n[h],r[h]):r[h]}return n}const iWn={data:JLt,props:YLt,emits:YLt,methods:vK,computed:vK,beforeCreate:Jg,created:Jg,beforeMount:Jg,mounted:Jg,beforeUpdate:Jg,updated:Jg,beforeDestroy:Jg,beforeUnmount:Jg,destroyed:Jg,unmounted:Jg,activated:Jg,deactivated:Jg,errorCaptured:Jg,serverPrefetch:Jg,components:vK,directives:vK,watch:sWn,provide:JLt,inject:oWn};function JLt(n,r){return r?n?function(){return zd(ls(n)?n.call(this,this):n,ls(r)?r.call(this,this):r)}:r:n}function oWn(n,r){return vK(TLe(n),TLe(r))}function TLe(n){if(Bo(n)){const r={};for(let o=0;o1)return o&&ls(r)?r.call(l&&l.proxy):r}}const hQt={},pQt=()=>Object.create(hQt),bQt=n=>Object.getPrototypeOf(n)===hQt;function cWn(n,r,o,l=!1){const u={},d=pQt();n.propsDefaults=Object.create(null),gQt(n,r,u,d);for(const h in n.propsOptions[0])h in u||(u[h]=void 0);o?n.props=l?u:SBn(u):n.type.props?n.props=u:n.props=d,n.attrs=d}function uWn(n,r,o,l){const{props:u,attrs:d,vnode:{patchFlag:h}}=n,w=Sa(u),[v]=n.propsOptions;let y=!1;if((l||h>0)&&!(h&16)){if(h&8){const E=n.vnode.dynamicProps;for(let A=0;A{v=!0;const[C,R]=wQt(A,r,!0);zd(h,C),R&&w.push(...R)};!o&&r.mixins.length&&r.mixins.forEach(E),n.extends&&E(n.extends),n.mixins&&n.mixins.forEach(E)}if(!d&&!v)return Qc(n)&&l.set(n,GD),GD;if(Bo(d))for(let E=0;En[0]==="_"||n==="$stable",IWe=n=>Bo(n)?n.map(ME):[ME(n)],dWn=(n,r,o)=>{if(r._n)return r;const l=vi((...u)=>IWe(r(...u)),o);return l._c=!1,l},yQt=(n,r,o)=>{const l=n._ctx;for(const u in n){if(mQt(u))continue;const d=n[u];if(ls(d))r[u]=dWn(u,d,l);else if(d!=null){const h=IWe(d);r[u]=()=>h}}},vQt=(n,r)=>{const o=IWe(r);n.slots.default=()=>o},_Qt=(n,r,o)=>{for(const l in r)(o||l!=="_")&&(n[l]=r[l])},hWn=(n,r,o)=>{const l=n.slots=pQt();if(n.vnode.shapeFlag&32){const u=r._;u?(_Qt(l,r,o),o&&SYt(l,"_",u,!0)):yQt(r,l)}else r&&vQt(n,r)},pWn=(n,r,o)=>{const{vnode:l,slots:u}=n;let d=!0,h=Lc;if(l.shapeFlag&32){const w=r._;w?o&&w===1?d=!1:_Qt(u,r,o):(d=!r.$stable,yQt(r,u)),h=r}else r&&(vQt(n,r),h={default:1});if(d)for(const w in u)!mQt(w)&&h[w]==null&&delete u[w]},Yg=AWn;function bWn(n){return gWn(n)}function gWn(n,r){const o=qhe();o.__VUE__=!0;const{insert:l,remove:u,patchProp:d,createElement:h,createText:w,createComment:v,setText:y,setElementText:E,parentNode:A,nextSibling:C,setScopeId:R=FE,insertStaticContent:O}=n,M=(T,$,B,K=null,q=null,ke=null,Ee=void 0,Ie=null,_t=!!$.dynamicChildren)=>{if(T===$)return;T&&!M8(T,$)&&(K=Qe(T),ft(T,q,ke,!0),T=null),$.patchFlag===-2&&(_t=!1,$.dynamicChildren=null);const{type:he,ref:Xt,shapeFlag:Zt}=$;switch(he){case ipe:L(T,$,B,K);break;case n1:H(T,$,B,K);break;case m7e:T==null&&G($,B,K,Ee);break;case gi:ae(T,$,B,K,q,ke,Ee,Ie,_t);break;default:Zt&1?te(T,$,B,K,q,ke,Ee,Ie,_t):Zt&6?F(T,$,B,K,q,ke,Ee,Ie,_t):(Zt&64||Zt&128)&&he.process(T,$,B,K,q,ke,Ee,Ie,_t,nn)}Xt!=null&&q&&xde(Xt,T&&T.ref,ke,$||T,!$)},L=(T,$,B,K)=>{if(T==null)l($.el=w($.children),B,K);else{const q=$.el=T.el;$.children!==T.children&&y(q,$.children)}},H=(T,$,B,K)=>{T==null?l($.el=v($.children||""),B,K):$.el=T.el},G=(T,$,B,K)=>{[T.el,T.anchor]=O(T.children,$,B,K,T.el,T.anchor)},j=({el:T,anchor:$},B,K)=>{let q;for(;T&&T!==$;)q=C(T),l(T,B,K),T=q;l($,B,K)},Q=({el:T,anchor:$})=>{let B;for(;T&&T!==$;)B=C(T),u(T),T=B;u($)},te=(T,$,B,K,q,ke,Ee,Ie,_t)=>{$.type==="svg"?Ee="svg":$.type==="math"&&(Ee="mathml"),T==null?pe($,B,K,q,ke,Ee,Ie,_t):le(T,$,q,ke,Ee,Ie,_t)},pe=(T,$,B,K,q,ke,Ee,Ie)=>{let _t,he;const{props:Xt,shapeFlag:Zt,transition:$n,dirs:Gn}=T;if(_t=T.el=h(T.type,ke,Xt&&Xt.is,Xt),Zt&8?E(_t,T.children):Zt&16&&Re(T.children,_t,null,K,q,g7e(T,ke),Ee,Ie),Gn&&Y5(T,null,K,"created"),De(_t,T,T.scopeId,Ee,K),Xt){for(const ce in Xt)ce!=="value"&&!zK(ce)&&d(_t,ce,null,Xt[ce],ke,K);"value"in Xt&&d(_t,"value",null,Xt.value,ke),(he=Xt.onVnodeBeforeMount)&&SE(he,K,T)}Gn&&Y5(T,null,K,"beforeMount");const $e=wWn(q,$n);$e&&$n.beforeEnter(_t),l(_t,$,B),((he=Xt&&Xt.onVnodeMounted)||$e||Gn)&&Yg(()=>{he&&SE(he,K,T),$e&&$n.enter(_t),Gn&&Y5(T,null,K,"mounted")},q)},De=(T,$,B,K,q)=>{if(B&&R(T,B),K)for(let ke=0;ke{for(let he=_t;he{const Ie=$.el=T.el;let{patchFlag:_t,dynamicChildren:he,dirs:Xt}=$;_t|=T.patchFlag&16;const Zt=T.props||Lc,$n=$.props||Lc;let Gn;if(B&&Q5(B,!1),(Gn=$n.onVnodeBeforeUpdate)&&SE(Gn,B,$,T),Xt&&Y5($,T,B,"beforeUpdate"),B&&Q5(B,!0),(Zt.innerHTML&&$n.innerHTML==null||Zt.textContent&&$n.textContent==null)&&E(Ie,""),he?xe(T.dynamicChildren,he,Ie,B,K,g7e($,q),ke):Ee||He(T,$,Ie,null,B,K,g7e($,q),ke,!1),_t>0){if(_t&16)be(Ie,Zt,$n,B,q);else if(_t&2&&Zt.class!==$n.class&&d(Ie,"class",null,$n.class,q),_t&4&&d(Ie,"style",Zt.style,$n.style,q),_t&8){const $e=$.dynamicProps;for(let ce=0;ce<$e.length;ce++){const de=$e[ce],et=Zt[de],pt=$n[de];(pt!==et||de==="value")&&d(Ie,de,et,pt,q,B)}}_t&1&&T.children!==$.children&&E(Ie,$.children)}else!Ee&&he==null&&be(Ie,Zt,$n,B,q);((Gn=$n.onVnodeUpdated)||Xt)&&Yg(()=>{Gn&&SE(Gn,B,$,T),Xt&&Y5($,T,B,"updated")},K)},xe=(T,$,B,K,q,ke,Ee)=>{for(let Ie=0;Ie<$.length;Ie++){const _t=T[Ie],he=$[Ie],Xt=_t.el&&(_t.type===gi||!M8(_t,he)||_t.shapeFlag&70)?A(_t.el):B;M(_t,he,Xt,null,K,q,ke,Ee,!0)}},be=(T,$,B,K,q)=>{if($!==B){if($!==Lc)for(const ke in $)!zK(ke)&&!(ke in B)&&d(T,ke,$[ke],null,q,K);for(const ke in B){if(zK(ke))continue;const Ee=B[ke],Ie=$[ke];Ee!==Ie&&ke!=="value"&&d(T,ke,Ie,Ee,q,K)}"value"in B&&d(T,"value",$.value,B.value,q)}},ae=(T,$,B,K,q,ke,Ee,Ie,_t)=>{const he=$.el=T?T.el:w(""),Xt=$.anchor=T?T.anchor:w("");let{patchFlag:Zt,dynamicChildren:$n,slotScopeIds:Gn}=$;Gn&&(Ie=Ie?Ie.concat(Gn):Gn),T==null?(l(he,B,K),l(Xt,B,K),Re($.children||[],B,Xt,q,ke,Ee,Ie,_t)):Zt>0&&Zt&64&&$n&&T.dynamicChildren?(xe(T.dynamicChildren,$n,B,q,ke,Ee,Ie),($.key!=null||q&&$===q.subTree)&&PWe(T,$,!0)):He(T,$,B,Xt,q,ke,Ee,Ie,_t)},F=(T,$,B,K,q,ke,Ee,Ie,_t)=>{$.slotScopeIds=Ie,T==null?$.shapeFlag&512?q.ctx.activate($,B,K,Ee,_t):me($,B,K,q,ke,Ee,_t):ye(T,$,_t)},me=(T,$,B,K,q,ke,Ee)=>{const Ie=T.component=OWn(T,K,q);if(Zhe(T)&&(Ie.ctx.renderer=nn),NWn(Ie,!1,Ee),Ie.asyncDep){if(q&&q.registerDep(Ie,we,Ee),!T.el){const _t=Ie.subTree=bi(n1);H(null,_t,$,B)}}else we(Ie,T,$,B,q,ke,Ee)},ye=(T,$,B)=>{const K=$.component=T.component;if(xWn(T,$,B))if(K.asyncDep&&!K.asyncResolved){Be(K,$,B);return}else K.next=$,K.update();else $.el=T.el,K.vnode=$},we=(T,$,B,K,q,ke,Ee)=>{const Ie=()=>{if(T.isMounted){let{next:Zt,bu:$n,u:Gn,parent:$e,vnode:ce}=T;{const Qt=SQt(T);if(Qt){Zt&&(Zt.el=ce.el,Be(T,Zt,Ee)),Qt.asyncDep.then(()=>{T.isUnmounted||Ie()});return}}let de=Zt,et;Q5(T,!1),Zt?(Zt.el=ce.el,Be(T,Zt,Ee)):Zt=ce,$n&&c7e($n),(et=Zt.props&&Zt.props.onVnodeBeforeUpdate)&&SE(et,$e,Zt,ce),Q5(T,!0);const pt=w7e(T),Jt=T.subTree;T.subTree=pt,M(Jt,pt,A(Jt.el),Qe(Jt),T,q,ke),Zt.el=pt.el,de===null&&CWn(T,pt.el),Gn&&Yg(Gn,q),(et=Zt.props&&Zt.props.onVnodeUpdated)&&Yg(()=>SE(et,$e,Zt,ce),q)}else{let Zt;const{el:$n,props:Gn}=$,{bm:$e,m:ce,parent:de,root:et,type:pt}=T,Jt=qD($);if(Q5(T,!1),$e&&c7e($e),!Jt&&(Zt=Gn&&Gn.onVnodeBeforeMount)&&SE(Zt,de,$),Q5(T,!0),$n&&Ne){const Qt=()=>{T.subTree=w7e(T),Ne($n,T.subTree,T,q,null)};Jt&&pt.__asyncHydrate?pt.__asyncHydrate($n,T,Qt):Qt()}else{et.ce&&et.ce._injectChildStyle(pt);const Qt=T.subTree=w7e(T);M(null,Qt,B,K,T,q,ke),$.el=Qt.el}if(ce&&Yg(ce,q),!Jt&&(Zt=Gn&&Gn.onVnodeMounted)){const Qt=$;Yg(()=>SE(Zt,de,Qt),q)}($.shapeFlag&256||de&&qD(de.vnode)&&de.vnode.shapeFlag&256)&&T.a&&Yg(T.a,q),T.isMounted=!0,$=B=K=null}};T.scope.on();const _t=T.effect=new AYt(Ie);T.scope.off();const he=T.update=_t.run.bind(_t),Xt=T.job=_t.runIfDirty.bind(_t);Xt.i=T,Xt.id=T.uid,_t.scheduler=()=>CWe(Xt),Q5(T,!0),he()},Be=(T,$,B)=>{$.component=T;const K=T.vnode.props;T.vnode=$,T.next=null,uWn(T,$.props,K,B),pWn(T,$.children,B),PT(),HLt(T),OT()},He=(T,$,B,K,q,ke,Ee,Ie,_t=!1)=>{const he=T&&T.children,Xt=T?T.shapeFlag:0,Zt=$.children,{patchFlag:$n,shapeFlag:Gn}=$;if($n>0){if($n&128){Ge(he,Zt,B,K,q,ke,Ee,Ie,_t);return}else if($n&256){Ue(he,Zt,B,K,q,ke,Ee,Ie,_t);return}}Gn&8?(Xt&16&&at(he,q,ke),Zt!==he&&E(B,Zt)):Xt&16?Gn&16?Ge(he,Zt,B,K,q,ke,Ee,Ie,_t):at(he,q,ke,!0):(Xt&8&&E(B,""),Gn&16&&Re(Zt,B,K,q,ke,Ee,Ie,_t))},Ue=(T,$,B,K,q,ke,Ee,Ie,_t)=>{T=T||GD,$=$||GD;const he=T.length,Xt=$.length,Zt=Math.min(he,Xt);let $n;for($n=0;$nXt?at(T,q,ke,!0,!1,Zt):Re($,B,K,q,ke,Ee,Ie,_t,Zt)},Ge=(T,$,B,K,q,ke,Ee,Ie,_t)=>{let he=0;const Xt=$.length;let Zt=T.length-1,$n=Xt-1;for(;he<=Zt&&he<=$n;){const Gn=T[he],$e=$[he]=_t?G4($[he]):ME($[he]);if(M8(Gn,$e))M(Gn,$e,B,null,q,ke,Ee,Ie,_t);else break;he++}for(;he<=Zt&&he<=$n;){const Gn=T[Zt],$e=$[$n]=_t?G4($[$n]):ME($[$n]);if(M8(Gn,$e))M(Gn,$e,B,null,q,ke,Ee,Ie,_t);else break;Zt--,$n--}if(he>Zt){if(he<=$n){const Gn=$n+1,$e=Gn$n)for(;he<=Zt;)ft(T[he],q,ke,!0),he++;else{const Gn=he,$e=he,ce=new Map;for(he=$e;he<=$n;he++){const ki=$[he]=_t?G4($[he]):ME($[he]);ki.key!=null&&ce.set(ki.key,he)}let de,et=0;const pt=$n-$e+1;let Jt=!1,Qt=0;const qr=new Array(pt);for(he=0;he=pt){ft(ki,q,ke,!0);continue}let Ri;if(ki.key!=null)Ri=ce.get(ki.key);else for(de=$e;de<=$n;de++)if(qr[de-$e]===0&&M8(ki,$[de])){Ri=de;break}Ri===void 0?ft(ki,q,ke,!0):(qr[Ri-$e]=he+1,Ri>=Qt?Qt=Ri:Jt=!0,M(ki,$[Ri],B,null,q,ke,Ee,Ie,_t),et++)}const ao=Jt?mWn(qr):GD;for(de=ao.length-1,he=pt-1;he>=0;he--){const ki=$e+he,Ri=$[ki],xi=ki+1{const{el:ke,type:Ee,transition:Ie,children:_t,shapeFlag:he}=T;if(he&6){Le(T.component.subTree,$,B,K);return}if(he&128){T.suspense.move($,B,K);return}if(he&64){Ee.move(T,$,B,nn);return}if(Ee===gi){l(ke,$,B);for(let Zt=0;Zt<_t.length;Zt++)Le(_t[Zt],$,B,K);l(T.anchor,$,B);return}if(Ee===m7e){j(T,$,B);return}if(K!==2&&he&1&&Ie)if(K===0)Ie.beforeEnter(ke),l(ke,$,B),Yg(()=>Ie.enter(ke),q);else{const{leave:Zt,delayLeave:$n,afterLeave:Gn}=Ie,$e=()=>l(ke,$,B),ce=()=>{Zt(ke,()=>{$e(),Gn&&Gn()})};$n?$n(ke,$e,ce):ce()}else l(ke,$,B)},ft=(T,$,B,K=!1,q=!1)=>{const{type:ke,props:Ee,ref:Ie,children:_t,dynamicChildren:he,shapeFlag:Xt,patchFlag:Zt,dirs:$n,cacheIndex:Gn}=T;if(Zt===-2&&(q=!1),Ie!=null&&xde(Ie,null,B,T,!0),Gn!=null&&($.renderCache[Gn]=void 0),Xt&256){$.ctx.deactivate(T);return}const $e=Xt&1&&$n,ce=!qD(T);let de;if(ce&&(de=Ee&&Ee.onVnodeBeforeUnmount)&&SE(de,$,T),Xt&6)dt(T.component,B,K);else{if(Xt&128){T.suspense.unmount(B,K);return}$e&&Y5(T,null,$,"beforeUnmount"),Xt&64?T.type.remove(T,$,B,nn,K):he&&!he.hasOnce&&(ke!==gi||Zt>0&&Zt&64)?at(he,$,B,!1,!0):(ke===gi&&Zt&384||!q&&Xt&16)&&at(_t,$,B),K&&re(T)}(ce&&(de=Ee&&Ee.onVnodeUnmounted)||$e)&&Yg(()=>{de&&SE(de,$,T),$e&&Y5(T,null,$,"unmounted")},B)},re=T=>{const{type:$,el:B,anchor:K,transition:q}=T;if($===gi){Te(B,K);return}if($===m7e){Q(T);return}const ke=()=>{u(B),q&&!q.persisted&&q.afterLeave&&q.afterLeave()};if(T.shapeFlag&1&&q&&!q.persisted){const{leave:Ee,delayLeave:Ie}=q,_t=()=>Ee(B,ke);Ie?Ie(T.el,ke,_t):_t()}else ke()},Te=(T,$)=>{let B;for(;T!==$;)B=C(T),u(T),T=B;u($)},dt=(T,$,B)=>{const{bum:K,scope:q,job:ke,subTree:Ee,um:Ie,m:_t,a:he}=T;ZLt(_t),ZLt(he),K&&c7e(K),q.stop(),ke&&(ke.flags|=8,ft(Ee,T,$,B)),Ie&&Yg(Ie,$),Yg(()=>{T.isUnmounted=!0},$),$&&$.pendingBranch&&!$.isUnmounted&&T.asyncDep&&!T.asyncResolved&&T.suspenseId===$.pendingId&&($.deps--,$.deps===0&&$.resolve())},at=(T,$,B,K=!1,q=!1,ke=0)=>{for(let Ee=ke;Ee{if(T.shapeFlag&6)return Qe(T.component.subTree);if(T.shapeFlag&128)return T.suspense.next();const $=C(T.anchor||T.el),B=$&&$[XYt];return B?C(B):$};let yt=!1;const Lt=(T,$,B)=>{T==null?$._vnode&&ft($._vnode,null,null,!0):M($._vnode||null,T,$,null,null,null,B),$._vnode=T,yt||(yt=!0,HLt(),zYt(),yt=!1)},nn={p:M,um:ft,m:Le,r:re,mt:me,mc:Re,pc:He,pbc:xe,n:Qe,o:n};let Pe,Ne;return{render:Lt,hydrate:Pe,createApp:aWn(Lt,Pe)}}function g7e({type:n,props:r},o){return o==="svg"&&n==="foreignObject"||o==="mathml"&&n==="annotation-xml"&&r&&r.encoding&&r.encoding.includes("html")?void 0:o}function Q5({effect:n,job:r},o){o?(n.flags|=32,r.flags|=4):(n.flags&=-33,r.flags&=-5)}function wWn(n,r){return(!n||n&&!n.pendingBranch)&&r&&!r.persisted}function PWe(n,r,o=!1){const l=n.children,u=r.children;if(Bo(l)&&Bo(u))for(let d=0;d>1,n[o[w]]0&&(r[l]=o[d-1]),o[d]=l)}}for(d=o.length,h=o[d-1];d-- >0;)o[d]=h,h=r[h];return o}function SQt(n){const r=n.subTree.component;if(r)return r.asyncDep&&!r.asyncResolved?r:SQt(r)}function ZLt(n){if(n)for(let r=0;rBE(yWn);function Zs(n,r,o){return EQt(n,r,o)}function EQt(n,r,o=Lc){const{immediate:l,deep:u,flush:d,once:h}=o,w=zd({},o),v=r&&l||!r&&d!=="post";let y;if(Fq){if(d==="sync"){const R=vWn();y=R.__watcherHandles||(R.__watcherHandles=[])}else if(!v){const R=()=>{};return R.stop=FE,R.resume=FE,R.pause=FE,R}}const E=Vp;w.call=(R,O,M)=>xS(R,E,O,M);let A=!1;d==="post"?w.scheduler=R=>{Yg(R,E&&E.suspense)}:d!=="sync"&&(A=!0,w.scheduler=(R,O)=>{O?R():CWe(R)}),w.augmentJob=R=>{r&&(R.flags|=4),A&&(R.flags|=2,E&&(R.id=E.uid,R.i=E))};const C=NBn(n,r,w);return Fq&&(y?y.push(C):v&&C()),C}function _Wn(n,r,o){const l=this.proxy,u=Fu(n)?n.includes(".")?kQt(l,n):()=>l[n]:n.bind(l,l);let d;ls(r)?d=r:(d=r.handler,o=r);const h=qX(this),w=EQt(u,d.bind(l),o);return h(),w}function kQt(n,r){const o=r.split(".");return()=>{let l=n;for(let u=0;ur==="modelValue"||r==="model-value"?n.modelModifiers:n[`${r}Modifiers`]||n[`${rv(r)}Modifiers`]||n[`${IT(r)}Modifiers`];function EWn(n,r,...o){if(n.isUnmounted)return;const l=n.vnode.props||Lc;let u=o;const d=r.startsWith("update:"),h=d&&SWn(l,r.slice(7));h&&(h.trim&&(u=o.map(E=>Fu(E)?E.trim():E)),h.number&&(u=o.map(XFn)));let w,v=l[w=xfe(r)]||l[w=xfe(rv(r))];!v&&d&&(v=l[w=xfe(IT(r))]),v&&xS(v,n,6,u);const y=l[w+"Once"];if(y){if(!n.emitted)n.emitted={};else if(n.emitted[w])return;n.emitted[w]=!0,xS(y,n,6,u)}}function RQt(n,r,o=!1){const l=r.emitsCache,u=l.get(n);if(u!==void 0)return u;const d=n.emits;let h={},w=!1;if(!ls(n)){const v=y=>{const E=RQt(y,r,!0);E&&(w=!0,zd(h,E))};!o&&r.mixins.length&&r.mixins.forEach(v),n.extends&&v(n.extends),n.mixins&&n.mixins.forEach(v)}return!d&&!w?(Qc(n)&&l.set(n,null),null):(Bo(d)?d.forEach(v=>h[v]=null):zd(h,d),Qc(n)&&l.set(n,h),h)}function rpe(n,r){return!n||!Ghe(r)?!1:(r=r.slice(2).replace(/Once$/,""),Va(n,r[0].toLowerCase()+r.slice(1))||Va(n,IT(r))||Va(n,r))}function w7e(n){const{type:r,vnode:o,proxy:l,withProxy:u,propsOptions:[d],slots:h,attrs:w,emit:v,render:y,renderCache:E,props:A,data:C,setupState:R,ctx:O,inheritAttrs:M}=n,L=Rde(n);let H,G;try{if(o.shapeFlag&4){const Q=u||l,te=Q;H=ME(y.call(te,Q,E,A,R,C,O)),G=w}else{const Q=r;H=ME(Q.length>1?Q(A,{attrs:w,slots:h,emit:v}):Q(A,null)),G=r.props?w:kWn(w)}}catch(Q){QK.length=0,Qhe(Q,n,1),H=bi(n1)}let j=H;if(G&&M!==!1){const Q=Object.keys(G),{shapeFlag:te}=j;Q.length&&te&7&&(d&&Q.some(mWe)&&(G=RWn(G,d)),j=_T(j,G,!1,!0))}return o.dirs&&(j=_T(j,null,!1,!0),j.dirs=j.dirs?j.dirs.concat(o.dirs):o.dirs),o.transition&&Dq(j,o.transition),H=j,Rde(L),H}const kWn=n=>{let r;for(const o in n)(o==="class"||o==="style"||Ghe(o))&&((r||(r={}))[o]=n[o]);return r},RWn=(n,r)=>{const o={};for(const l in n)(!mWe(l)||!(l.slice(9)in r))&&(o[l]=n[l]);return o};function xWn(n,r,o){const{props:l,children:u,component:d}=n,{props:h,children:w,patchFlag:v}=r,y=d.emitsOptions;if(r.dirs||r.transition)return!0;if(o&&v>=0){if(v&1024)return!0;if(v&16)return l?ejt(l,h,y):!!h;if(v&8){const E=r.dynamicProps;for(let A=0;An.__isSuspense;function AWn(n,r){r&&r.pendingBranch?Bo(n)?r.effects.push(...n):r.effects.push(n):LBn(n)}const gi=Symbol.for("v-fgt"),ipe=Symbol.for("v-txt"),n1=Symbol.for("v-cmt"),m7e=Symbol.for("v-stc"),QK=[];let r1=null;function ze(n=!1){QK.push(r1=n?null:[])}function TWn(){QK.pop(),r1=QK[QK.length-1]||null}let EL=1;function tjt(n,r=!1){EL+=n,n<0&&r1&&r&&(r1.hasOnce=!0)}function CQt(n){return n.dynamicChildren=EL>0?r1||GD:null,TWn(),EL>0&&r1&&r1.push(n),n}function jt(n,r,o,l,u,d){return CQt(mr(n,r,o,l,u,d,!0))}function Nn(n,r,o,l,u){return CQt(bi(n,r,o,l,u,!0))}function jq(n){return n?n.__v_isVNode===!0:!1}function M8(n,r){return n.type===r.type&&n.key===r.key}const AQt=({key:n})=>n??null,Afe=({ref:n,ref_key:r,ref_for:o})=>(typeof n=="number"&&(n=""+n),n!=null?Fu(n)||_d(n)||ls(n)?{i:hp,r:n,k:r,f:!!o}:n:null);function mr(n,r=null,o=null,l=0,u=null,d=n===gi?0:1,h=!1,w=!1){const v={__v_isVNode:!0,__v_skip:!0,type:n,props:r,key:r&&AQt(r),ref:r&&Afe(r),scopeId:qYt,slotScopeIds:null,children:o,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:d,patchFlag:l,dynamicProps:u,dynamicChildren:null,appContext:null,ctx:hp};return w?(OWe(v,o),d&128&&n.normalize(v)):o&&(v.shapeFlag|=Fu(o)?8:16),EL>0&&!h&&r1&&(v.patchFlag>0||d&6)&&v.patchFlag!==32&&r1.push(v),v}const bi=$Wn;function $Wn(n,r=null,o=null,l=0,u=null,d=!1){if((!n||n===lQt)&&(n=n1),jq(n)){const w=_T(n,r,!0);return o&&OWe(w,o),EL>0&&!d&&r1&&(w.shapeFlag&6?r1[r1.indexOf(n)]=w:r1.push(w)),w.patchFlag=-2,w}if(jWn(n)&&(n=n.__vccOpts),r){r=ILe(r);let{class:w,style:v}=r;w&&!Fu(w)&&(r.class=Lo(w)),Qc(v)&&(xWe(v)&&!Bo(v)&&(v=zd({},v)),r.style=Vb(v))}const h=Fu(n)?1:xQt(n)?128:JYt(n)?64:Qc(n)?4:ls(n)?2:0;return mr(n,r,o,l,u,h,d,!0)}function ILe(n){return n?xWe(n)||bQt(n)?zd({},n):n:null}function _T(n,r,o=!1,l=!1){const{props:u,ref:d,patchFlag:h,children:w,transition:v}=n,y=r?Et(u||{},r):u,E={__v_isVNode:!0,__v_skip:!0,type:n.type,props:y,key:y&&AQt(y),ref:r&&r.ref?o&&d?Bo(d)?d.concat(Afe(r)):[d,Afe(r)]:Afe(r):d,scopeId:n.scopeId,slotScopeIds:n.slotScopeIds,children:w,target:n.target,targetStart:n.targetStart,targetAnchor:n.targetAnchor,staticCount:n.staticCount,shapeFlag:n.shapeFlag,patchFlag:r&&n.type!==gi?h===-1?16:h|16:h,dynamicProps:n.dynamicProps,dynamicChildren:n.dynamicChildren,appContext:n.appContext,dirs:n.dirs,transition:v,component:n.component,suspense:n.suspense,ssContent:n.ssContent&&_T(n.ssContent),ssFallback:n.ssFallback&&_T(n.ssFallback),el:n.el,anchor:n.anchor,ctx:n.ctx,ce:n.ce};return v&&l&&Dq(E,v.clone(E)),E}function nm(n=" ",r=0){return bi(ipe,null,n,r)}function fr(n="",r=!1){return r?(ze(),Nn(n1,null,n)):bi(n1,null,n)}function ME(n){return n==null||typeof n=="boolean"?bi(n1):Bo(n)?bi(gi,null,n.slice()):jq(n)?G4(n):bi(ipe,null,String(n))}function G4(n){return n.el===null&&n.patchFlag!==-1||n.memo?n:_T(n)}function OWe(n,r){let o=0;const{shapeFlag:l}=n;if(r==null)r=null;else if(Bo(r))o=16;else if(typeof r=="object")if(l&65){const u=r.default;u&&(u._c&&(u._d=!1),OWe(n,u()),u._c&&(u._d=!0));return}else{o=32;const u=r._;!u&&!bQt(r)?r._ctx=hp:u===3&&hp&&(hp.slots._===1?r._=1:(r._=2,n.patchFlag|=1024))}else ls(r)?(r={default:r,_ctx:hp},o=32):(r=String(r),l&64?(o=16,r=[nm(r)]):o=8);n.children=r,n.shapeFlag|=o}function Et(...n){const r={};for(let o=0;oVp||hp;let Ade,PLe;{const n=qhe(),r=(o,l)=>{let u;return(u=n[o])||(u=n[o]=[]),u.push(l),d=>{u.length>1?u.forEach(h=>h(d)):u[0](d)}};Ade=r("__VUE_INSTANCE_SETTERS__",o=>Vp=o),PLe=r("__VUE_SSR_SETTERS__",o=>Fq=o)}const qX=n=>{const r=Vp;return Ade(n),n.scope.on(),()=>{n.scope.off(),Ade(r)}},njt=()=>{Vp&&Vp.scope.off(),Ade(null)};function TQt(n){return n.vnode.shapeFlag&4}let Fq=!1;function NWn(n,r=!1,o=!1){r&&PLe(r);const{props:l,children:u}=n.vnode,d=TQt(n);cWn(n,l,d,r),hWn(n,u,o);const h=d?MWn(n,r):void 0;return r&&PLe(!1),h}function MWn(n,r){const o=n.type;n.accessCache=Object.create(null),n.proxy=new Proxy(n.ctx,ZBn);const{setup:l}=o;if(l){PT();const u=n.setupContext=l.length>1?IQt(n):null,d=qX(n),h=KX(l,n,0,[n.props,u]),w=yYt(h);if(OT(),d(),(w||n.sp)&&!qD(n)&&iQt(n),w){if(h.then(njt,njt),r)return h.then(v=>{rjt(n,v,r)}).catch(v=>{Qhe(v,n,0)});n.asyncDep=h}else rjt(n,h,r)}else $Qt(n,r)}function rjt(n,r,o){ls(r)?n.type.__ssrInlineRender?n.ssrRender=r:n.render=r:Qc(r)&&(n.setupState=HYt(r)),$Qt(n,o)}let ijt;function $Qt(n,r,o){const l=n.type;if(!n.render){if(!r&&ijt&&!l.render){const u=l.template||$We(n).template;if(u){const{isCustomElement:d,compilerOptions:h}=n.appContext.config,{delimiters:w,compilerOptions:v}=l,y=zd(zd({isCustomElement:d,delimiters:w},h),v);l.render=ijt(u,y)}}n.render=l.render||FE}{const u=qX(n);PT();try{nWn(n)}finally{OT(),u()}}}const DWn={get(n,r){return Bb(n,"get",""),n[r]}};function IQt(n){const r=o=>{n.exposed=o||{}};return{attrs:new Proxy(n.attrs,DWn),slots:n.slots,emit:n.emit,expose:r}}function ope(n){return n.exposed?n.exposeProxy||(n.exposeProxy=new Proxy(HYt(X8(n.exposed)),{get(r,o){if(o in r)return r[o];if(o in YK)return YK[o](n)},has(r,o){return o in r||o in YK}})):n.proxy}function LWn(n,r=!0){return ls(n)?n.displayName||n.name:n.name||r&&n.__name}function jWn(n){return ls(n)&&"__vccOpts"in n}const To=(n,r)=>PBn(n,r,Fq);function sc(n,r,o){const l=arguments.length;return l===2?Qc(r)&&!Bo(r)?jq(r)?bi(n,null,[r]):bi(n,r):bi(n,null,r):(l>3?o=Array.prototype.slice.call(arguments,2):l===3&&jq(o)&&(o=[o]),bi(n,r,o))}function FWn(n,r){const o=n.memo;if(o.length!=r.length)return!1;for(let l=0;l0&&r1&&r1.push(n),!0}const BWn="3.5.13";/** * @vue/runtime-dom v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let xLe;const ZLt=typeof window<"u"&&window.trustedTypes;if(ZLt)try{xLe=ZLt.createPolicy("vue",{createHTML:n=>n})}catch{}const CQt=xLe?n=>xLe.createHTML(n):n=>n,PWn="http://www.w3.org/2000/svg",OWn="http://www.w3.org/1998/Math/MathML",AR=typeof document<"u"?document:null,ejt=AR&&AR.createElement("template"),NWn={insert:(n,r,o)=>{r.insertBefore(n,o||null)},remove:n=>{const r=n.parentNode;r&&r.removeChild(n)},createElement:(n,r,o,l)=>{const u=r==="svg"?AR.createElementNS(PWn,n):r==="mathml"?AR.createElementNS(OWn,n):o?AR.createElement(n,{is:o}):AR.createElement(n);return n==="select"&&l&&l.multiple!=null&&u.setAttribute("multiple",l.multiple),u},createText:n=>AR.createTextNode(n),createComment:n=>AR.createComment(n),setText:(n,r)=>{n.nodeValue=r},setElementText:(n,r)=>{n.textContent=r},parentNode:n=>n.parentNode,nextSibling:n=>n.nextSibling,querySelector:n=>AR.querySelector(n),setScopeId(n,r){n.setAttribute(r,"")},insertStaticContent(n,r,o,l,u,d){const h=o?o.previousSibling:r.lastChild;if(u&&(u===d||u.nextSibling))for(;r.insertBefore(u.cloneNode(!0),o),!(u===d||!(u=u.nextSibling)););else{ejt.innerHTML=CQt(l==="svg"?`${n}`:l==="mathml"?`${n}`:n);const w=ejt.content;if(l==="svg"||l==="mathml"){const v=w.firstChild;for(;v.firstChild;)w.appendChild(v.firstChild);w.removeChild(v)}r.insertBefore(w,o)}return[h?h.nextSibling:r.firstChild,o?o.previousSibling:r.lastChild]}},N4="transition",qz="animation",Wq=Symbol("_vtc"),AQt={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},MWn=zd({},qYt,AQt),DWn=n=>(n.displayName="Transition",n.props=MWn,n),rpe=DWn((n,{slots:r})=>sc(OBn,LWn(n),r)),Z5=(n,r=[])=>{Bo(n)?n.forEach(o=>o(...r)):n&&n(...r)},tjt=n=>n?Bo(n)?n.some(r=>r.length>1):n.length>1:!1;function LWn(n){const r={};for(const ae in n)ae in AQt||(r[ae]=n[ae]);if(n.css===!1)return r;const{name:o="v",type:l,duration:u,enterFromClass:d=`${o}-enter-from`,enterActiveClass:h=`${o}-enter-active`,enterToClass:w=`${o}-enter-to`,appearFromClass:v=d,appearActiveClass:y=h,appearToClass:E=w,leaveFromClass:A=`${o}-leave-from`,leaveActiveClass:C=`${o}-leave-active`,leaveToClass:R=`${o}-leave-to`}=n,O=jWn(u),M=O&&O[0],L=O&&O[1],{onBeforeEnter:H,onEnter:G,onEnterCancelled:j,onLeave:Q,onLeaveCancelled:te,onBeforeAppear:pe=H,onAppear:Le=G,onAppearCancelled:Ee=j}=r,le=(ae,F,me,ye)=>{ae._enterCancelled=ye,e8(ae,F?E:w),e8(ae,F?y:h),me&&me()},xe=(ae,F)=>{ae._isLeaving=!1,e8(ae,A),e8(ae,R),e8(ae,C),F&&F()},be=ae=>(F,me)=>{const ye=ae?Le:G,we=()=>le(F,ae,me);Z5(ye,[F,we]),njt(()=>{e8(F,ae?v:d),_R(F,ae?E:w),tjt(ye)||rjt(F,l,M,we)})};return zd(r,{onBeforeEnter(ae){Z5(H,[ae]),_R(ae,d),_R(ae,h)},onBeforeAppear(ae){Z5(pe,[ae]),_R(ae,v),_R(ae,y)},onEnter:be(!1),onAppear:be(!0),onLeave(ae,F){ae._isLeaving=!0;const me=()=>xe(ae,F);_R(ae,A),ae._enterCancelled?(_R(ae,C),sjt()):(sjt(),_R(ae,C)),njt(()=>{ae._isLeaving&&(e8(ae,A),_R(ae,R),tjt(Q)||rjt(ae,l,L,me))}),Z5(Q,[ae,me])},onEnterCancelled(ae){le(ae,!1,void 0,!0),Z5(j,[ae])},onAppearCancelled(ae){le(ae,!0,void 0,!0),Z5(Ee,[ae])},onLeaveCancelled(ae){xe(ae),Z5(te,[ae])}})}function jWn(n){if(n==null)return null;if(Qc(n))return[b7e(n.enter),b7e(n.leave)];{const r=b7e(n);return[r,r]}}function b7e(n){return WFn(n)}function _R(n,r){r.split(/\s+/).forEach(o=>o&&n.classList.add(o)),(n[Wq]||(n[Wq]=new Set)).add(r)}function e8(n,r){r.split(/\s+/).forEach(l=>l&&n.classList.remove(l));const o=n[Wq];o&&(o.delete(r),o.size||(n[Wq]=void 0))}function njt(n){requestAnimationFrame(()=>{requestAnimationFrame(n)})}let FWn=0;function rjt(n,r,o,l){const u=n._endId=++FWn,d=()=>{u===n._endId&&l()};if(o!=null)return setTimeout(d,o);const{type:h,timeout:w,propCount:v}=BWn(n,r);if(!h)return l();const y=h+"end";let E=0;const A=()=>{n.removeEventListener(y,C),d()},C=R=>{R.target===n&&++E>=v&&A()};setTimeout(()=>{E(o[O]||"").split(", "),u=l(`${N4}Delay`),d=l(`${N4}Duration`),h=ijt(u,d),w=l(`${qz}Delay`),v=l(`${qz}Duration`),y=ijt(w,v);let E=null,A=0,C=0;r===N4?h>0&&(E=N4,A=h,C=d.length):r===qz?y>0&&(E=qz,A=y,C=v.length):(A=Math.max(h,y),E=A>0?h>y?N4:qz:null,C=E?E===N4?d.length:v.length:0);const R=E===N4&&/\b(transform|all)(,|$)/.test(l(`${N4}Property`).toString());return{type:E,timeout:A,propCount:C,hasTransform:R}}function ijt(n,r){for(;n.lengthojt(o)+ojt(n[l])))}function ojt(n){return n==="auto"?0:Number(n.slice(0,-1).replace(",","."))*1e3}function sjt(){return document.body.offsetHeight}function WWn(n,r,o){const l=n[Wq];l&&(r=(r?[r,...l]:[...l]).join(" ")),r==null?n.removeAttribute("class"):o?n.setAttribute("class",r):n.className=r}const ljt=Symbol("_vod"),HWn=Symbol("_vsh"),UWn=Symbol(""),GWn=/(^|;)\s*display\s*:/;function VWn(n,r,o){const l=n.style,u=Fu(o);let d=!1;if(o&&!u){if(r)if(Fu(r))for(const h of r.split(";")){const w=h.slice(0,h.indexOf(":")).trim();o[w]==null&&Cfe(l,w,"")}else for(const h in r)o[h]==null&&Cfe(l,h,"");for(const h in o)h==="display"&&(d=!0),Cfe(l,h,o[h])}else if(u){if(r!==o){const h=l[UWn];h&&(o+=";"+h),l.cssText=o,d=GWn.test(o)}}else r&&n.removeAttribute("style");ljt in n&&(n[ljt]=d?l.display:"",n[HWn]&&(l.display="none"))}const ajt=/\s*!important$/;function Cfe(n,r,o){if(Bo(o))o.forEach(l=>Cfe(n,r,l));else if(o==null&&(o=""),r.startsWith("--"))n.setProperty(r,o);else{const l=zWn(n,r);ajt.test(o)?n.setProperty(IT(l),o.replace(ajt,""),"important"):n[l]=o}}const cjt=["Webkit","Moz","ms"],g7e={};function zWn(n,r){const o=g7e[r];if(o)return o;let l=iv(r);if(l!=="filter"&&l in n)return g7e[r]=l;l=Ghe(l);for(let u=0;uw7e||(YWn.then(()=>w7e=0),w7e=Date.now());function ZWn(n,r){const o=l=>{if(!l._vts)l._vts=Date.now();else if(l._vts<=o.attached)return;xS(eHn(l,o.value),r,5,[l])};return o.value=n,o.attached=QWn(),o}function eHn(n,r){if(Bo(r)){const o=n.stopImmediatePropagation;return n.stopImmediatePropagation=()=>{o.call(n),n._stopped=!0},r.map(l=>u=>!u._stopped&&l&&l(u))}else return r}const bjt=n=>n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)>96&&n.charCodeAt(2)<123,tHn=(n,r,o,l,u,d)=>{const h=u==="svg";r==="class"?WWn(n,l,h):r==="style"?VWn(n,o,l):Whe(r)?fWe(r)||XWn(n,r,o,l,d):(r[0]==="."?(r=r.slice(1),!0):r[0]==="^"?(r=r.slice(1),!1):nHn(n,r,l,h))?(djt(n,r,l),!n.tagName.includes("-")&&(r==="value"||r==="checked"||r==="selected")&&fjt(n,r,l,h,d,r!=="value")):n._isVueCE&&(/[A-Z]/.test(r)||!Fu(l))?djt(n,iv(r),l,d,r):(r==="true-value"?n._trueValue=l:r==="false-value"&&(n._falseValue=l),fjt(n,r,l,h))};function nHn(n,r,o,l){if(l)return!!(r==="innerHTML"||r==="textContent"||r in n&&bjt(r)&&ls(o));if(r==="spellcheck"||r==="draggable"||r==="translate"||r==="form"||r==="list"&&n.tagName==="INPUT"||r==="type"&&n.tagName==="TEXTAREA")return!1;if(r==="width"||r==="height"){const u=n.tagName;if(u==="IMG"||u==="VIDEO"||u==="CANVAS"||u==="SOURCE")return!1}return bjt(r)&&Fu(o)?!1:r in n}const rHn=["ctrl","shift","alt","meta"],iHn={stop:n=>n.stopPropagation(),prevent:n=>n.preventDefault(),self:n=>n.target!==n.currentTarget,ctrl:n=>!n.ctrlKey,shift:n=>!n.shiftKey,alt:n=>!n.altKey,meta:n=>!n.metaKey,left:n=>"button"in n&&n.button!==0,middle:n=>"button"in n&&n.button!==1,right:n=>"button"in n&&n.button!==2,exact:(n,r)=>rHn.some(o=>n[`${o}Key`]&&!r.includes(o))},TQt=(n,r)=>{const o=n._withMods||(n._withMods={}),l=r.join(".");return o[l]||(o[l]=(u,...d)=>{for(let h=0;h{const o=n._withKeys||(n._withKeys={}),l=r.join(".");return o[l]||(o[l]=u=>{if(!("key"in u))return;const d=IT(u.key);if(r.some(h=>h===d||oHn[h]===d))return n(u)})},sHn=zd({patchProp:tHn},NWn);let gjt;function lHn(){return gjt||(gjt=sWn(sHn))}const aHn=(...n)=>{const r=lHn().createApp(...n),{mount:o}=r;return r.mount=l=>{const u=uHn(l);if(!u)return;const d=r._component;!ls(d)&&!d.render&&!d.template&&(d.template=u.innerHTML),u.nodeType===1&&(u.textContent="");const h=o(u,!1,cHn(u));return u instanceof Element&&(u.removeAttribute("v-cloak"),u.setAttribute("data-v-app","")),h},r};function cHn(n){if(n instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&n instanceof MathMLElement)return"mathml"}function uHn(n){return Fu(n)?document.querySelector(n):n}var fHn=Object.defineProperty,wjt=Object.getOwnPropertySymbols,dHn=Object.prototype.hasOwnProperty,hHn=Object.prototype.propertyIsEnumerable,mjt=(n,r,o)=>r in n?fHn(n,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[r]=o,pHn=(n,r)=>{for(var o in r||(r={}))dHn.call(r,o)&&mjt(n,o,r[o]);if(wjt)for(var o of wjt(r))hHn.call(r,o)&&mjt(n,o,r[o]);return n};function ov(n){return n==null||n===""||Array.isArray(n)&&n.length===0||!(n instanceof Date)&&typeof n=="object"&&Object.keys(n).length===0}function bHn(n,r,o,l=1){let u=-1;const d=ov(n),h=ov(r);return d&&h?u=0:d?u=l:h?u=-l:typeof n=="string"&&typeof r=="string"?u=o(n,r):u=nr?1:0,u}function CLe(n,r,o=new WeakSet){if(n===r)return!0;if(!n||!r||typeof n!="object"||typeof r!="object"||o.has(n)||o.has(r))return!1;o.add(n).add(r);let l=Array.isArray(n),u=Array.isArray(r),d,h,w;if(l&&u){if(h=n.length,h!=r.length)return!1;for(d=h;d--!==0;)if(!CLe(n[d],r[d],o))return!1;return!0}if(l!=u)return!1;let v=n instanceof Date,y=r instanceof Date;if(v!=y)return!1;if(v&&y)return n.getTime()==r.getTime();let E=n instanceof RegExp,A=r instanceof RegExp;if(E!=A)return!1;if(E&&A)return n.toString()==r.toString();let C=Object.keys(n);if(h=C.length,h!==Object.keys(r).length)return!1;for(d=h;d--!==0;)if(!Object.prototype.hasOwnProperty.call(r,C[d]))return!1;for(d=h;d--!==0;)if(w=C[d],!CLe(n[w],r[w],o))return!1;return!0}function gHn(n,r){return CLe(n,r)}function ipe(n){return!!(n&&n.constructor&&n.call&&n.apply)}function ks(n){return!ov(n)}function Bl(n,r){if(!n||!r)return null;try{const o=n[r];if(ks(o))return o}catch{}if(Object.keys(n).length){if(ipe(r))return r(n);if(r.indexOf(".")===-1)return n[r];{let o=r.split("."),l=n;for(let u=0,d=o.length;uwS(d)===u)||""],o),l.join("."),o):void 0:Qy(n,o)}function XX(n,r=!0){return Array.isArray(n)&&(r||n.length!==0)}function mHn(n){return ks(n)&&!isNaN(n)}function yHn(n=""){return ks(n)&&n.length===1&&!!n.match(/\S| /)}function vjt(){return new Intl.Collator(void 0,{numeric:!0}).compare}function FR(n,r){if(r){const o=r.test(n);return r.lastIndex=0,o}return!1}function vHn(...n){const r=(o={},l={})=>{const u=pHn({},o);return Object.keys(l).forEach(d=>{ZE(l[d])&&d in o&&ZE(o[d])?u[d]=r(o[d],l[d]):u[d]=l[d]}),u};return n.reduce((o,l,u)=>u===0?l:r(o,l),{})}function eq(n){return n&&n.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":")}function Gy(n){if(n&&/[\xC0-\xFF\u0100-\u017E]/.test(n)){const o={A:/[\xC0-\xC5\u0100\u0102\u0104]/g,AE:/[\xC6]/g,C:/[\xC7\u0106\u0108\u010A\u010C]/g,D:/[\xD0\u010E\u0110]/g,E:/[\xC8-\xCB\u0112\u0114\u0116\u0118\u011A]/g,G:/[\u011C\u011E\u0120\u0122]/g,H:/[\u0124\u0126]/g,I:/[\xCC-\xCF\u0128\u012A\u012C\u012E\u0130]/g,IJ:/[\u0132]/g,J:/[\u0134]/g,K:/[\u0136]/g,L:/[\u0139\u013B\u013D\u013F\u0141]/g,N:/[\xD1\u0143\u0145\u0147\u014A]/g,O:/[\xD2-\xD6\xD8\u014C\u014E\u0150]/g,OE:/[\u0152]/g,R:/[\u0154\u0156\u0158]/g,S:/[\u015A\u015C\u015E\u0160]/g,T:/[\u0162\u0164\u0166]/g,U:/[\xD9-\xDC\u0168\u016A\u016C\u016E\u0170\u0172]/g,W:/[\u0174]/g,Y:/[\xDD\u0176\u0178]/g,Z:/[\u0179\u017B\u017D]/g,a:/[\xE0-\xE5\u0101\u0103\u0105]/g,ae:/[\xE6]/g,c:/[\xE7\u0107\u0109\u010B\u010D]/g,d:/[\u010F\u0111]/g,e:/[\xE8-\xEB\u0113\u0115\u0117\u0119\u011B]/g,g:/[\u011D\u011F\u0121\u0123]/g,i:/[\xEC-\xEF\u0129\u012B\u012D\u012F\u0131]/g,ij:/[\u0133]/g,j:/[\u0135]/g,k:/[\u0137,\u0138]/g,l:/[\u013A\u013C\u013E\u0140\u0142]/g,n:/[\xF1\u0144\u0146\u0148\u014B]/g,p:/[\xFE]/g,o:/[\xF2-\xF6\xF8\u014D\u014F\u0151]/g,oe:/[\u0153]/g,r:/[\u0155\u0157\u0159]/g,s:/[\u015B\u015D\u015F\u0161]/g,t:/[\u0163\u0165\u0167]/g,u:/[\xF9-\xFC\u0169\u016B\u016D\u016F\u0171\u0173]/g,w:/[\u0175]/g,y:/[\xFD\xFF\u0177]/g,z:/[\u017A\u017C\u017E]/g};for(let l in o)n=n.replace(o[l],l)}return n}function _jt(n,r,o){n&&r!==o&&(o>=n.length&&(o%=n.length,r%=n.length),n.splice(o,0,n.splice(r,1)[0]))}function Sjt(n,r,o=1,l,u=1){const d=bHn(n,r,l,o);let h=o;return(ov(n)||ov(r))&&(h=u===1?o:u),h*d}function _Hn(n){return R0(n,!1)?n[0].toUpperCase()+n.slice(1):n}function $Qt(n){return R0(n)?n.replace(/(_)/g,"-").replace(/[A-Z]/g,(r,o)=>o===0?r:"-"+r.toLowerCase()).toLowerCase():n}function Ejt(n){return R0(n)?n.replace(/[A-Z]/g,(r,o)=>o===0?r:"."+r.toLowerCase()).toLowerCase():n}function AWe(){const n=new Map;return{on(r,o){let l=n.get(r);return l?l.push(o):l=[o],n.set(r,l),this},off(r,o){let l=n.get(r);return l&&l.splice(l.indexOf(o)>>>0,1),this},emit(r,o){let l=n.get(r);l&&l.slice().map(u=>{u(o)})},clear(){n.clear()}}}var SHn=Object.defineProperty,EHn=Object.defineProperties,kHn=Object.getOwnPropertyDescriptors,xde=Object.getOwnPropertySymbols,IQt=Object.prototype.hasOwnProperty,PQt=Object.prototype.propertyIsEnumerable,kjt=(n,r,o)=>r in n?SHn(n,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[r]=o,mS=(n,r)=>{for(var o in r||(r={}))IQt.call(r,o)&&kjt(n,o,r[o]);if(xde)for(var o of xde(r))PQt.call(r,o)&&kjt(n,o,r[o]);return n},v7e=(n,r)=>EHn(n,kHn(r)),SR=(n,r)=>{var o={};for(var l in n)IQt.call(n,l)&&r.indexOf(l)<0&&(o[l]=n[l]);if(n!=null&&xde)for(var l of xde(n))r.indexOf(l)<0&&PQt.call(n,l)&&(o[l]=n[l]);return o},RHn=AWe(),gS=RHn;function Rjt(n,r){XX(n)?n.push(...r||[]):ZE(n)&&Object.assign(n,r)}function xHn(n){return ZE(n)&&n.hasOwnProperty("value")&&n.hasOwnProperty("type")?n.value:n}function CHn(n){return n.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function ALe(n="",r=""){return CHn(`${R0(n,!1)&&R0(r,!1)?`${n}-`:n}${r}`)}function OQt(n="",r=""){return`--${ALe(n,r)}`}function AHn(n=""){const r=(n.match(/{/g)||[]).length,o=(n.match(/}/g)||[]).length;return(r+o)%2!==0}function NQt(n,r="",o="",l=[],u){if(R0(n)){const d=/{([^}]*)}/g,h=n.trim();if(AHn(h))return;if(FR(h,d)){const w=h.replaceAll(d,E=>{const C=E.replace(/{|}/g,"").split(".").filter(R=>!l.some(O=>FR(R,O)));return`var(${OQt(o,$Qt(C.join("-")))}${ks(u)?`, ${u}`:""})`}),v=/(\d+\s+[\+\-\*\/]\s+\d+)/g,y=/var\([^)]+\)/g;return FR(w.replace(y,"0"),v)?`calc(${w})`:w}return h}else if(mHn(n))return n}function THn(n,r,o){R0(r,!1)&&n.push(`${r}:${o};`)}function gD(n,r){return n?`${n}{${r}}`:""}var $Hn=n=>{var r;const o=oc.getTheme(),l=TLe(o,n,void 0,"variable"),u=(r=l==null?void 0:l.match(/--[\w-]+/g))==null?void 0:r[0],d=TLe(o,n,void 0,"value");return{name:u,variable:l,value:d}},tq=(...n)=>TLe(oc.getTheme(),...n),TLe=(n={},r,o,l)=>{if(r){const{variable:u,options:d}=oc.defaults||{},{prefix:h,transform:w}=(n==null?void 0:n.options)||d||{},y=FR(r,/{([^}]*)}/g)?r:`{${r}}`;return l==="value"||ov(l)&&w==="strict"?oc.getTokenValue(r):NQt(y,void 0,h,[u.excludedKeyRegex],o)}return""};function IHn(n,r={}){const o=oc.defaults.variable,{prefix:l=o.prefix,selector:u=o.selector,excludedKeyRegex:d=o.excludedKeyRegex}=r,h=(y,E="")=>Object.entries(y).reduce((A,[C,R])=>{const O=FR(C,d)?ALe(E):ALe(E,$Qt(C)),M=xHn(R);if(ZE(M)){const{variables:L,tokens:H}=h(M,O);Rjt(A.tokens,H),Rjt(A.variables,L)}else A.tokens.push((l?O.replace(`${l}-`,""):O).replaceAll("-",".")),THn(A.variables,OQt(O),NQt(M,O,l,[d]));return A},{variables:[],tokens:[]}),{variables:w,tokens:v}=h(n,l);return{value:w,tokens:v,declarations:w.join(""),css:gD(u,w.join(""))}}var iS={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(n){return{type:"class",selector:n,matched:this.pattern.test(n.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(n){return{type:"attr",selector:`:root${n}`,matched:this.pattern.test(n.trim())}}},media:{pattern:/^@media (.*)$/,resolve(n){return{type:"media",selector:`${n}{:root{[CSS]}}`,matched:this.pattern.test(n.trim())}}},system:{pattern:/^system$/,resolve(n){return{type:"system",selector:"@media (prefers-color-scheme: dark){:root{[CSS]}}",matched:this.pattern.test(n.trim())}}},custom:{resolve(n){return{type:"custom",selector:n,matched:!0}}}},resolve(n){const r=Object.keys(this.rules).filter(o=>o!=="custom").map(o=>this.rules[o]);return[n].flat().map(o=>{var l;return(l=r.map(u=>u.resolve(o)).find(u=>u.matched))!=null?l:this.rules.custom.resolve(o)})}},_toVariables(n,r){return IHn(n,{prefix:r==null?void 0:r.prefix})},getCommon({name:n="",theme:r={},params:o,set:l,defaults:u}){var d,h,w,v,y,E,A;const{preset:C,options:R}=r;let O,M,L,H,G,j,Q;if(ks(C)&&R.transform!=="strict"){const{primitive:te,semantic:pe,extend:Le}=C,Ee=pe||{},{colorScheme:le}=Ee,xe=SR(Ee,["colorScheme"]),be=Le||{},{colorScheme:ae}=be,F=SR(be,["colorScheme"]),me=le||{},{dark:ye}=me,we=SR(me,["dark"]),Be=ae||{},{dark:He}=Be,Ue=SR(Be,["dark"]),Ge=ks(te)?this._toVariables({primitive:te},R):{},Me=ks(xe)?this._toVariables({semantic:xe},R):{},vt=ks(we)?this._toVariables({light:we},R):{},re=ks(ye)?this._toVariables({dark:ye},R):{},Te=ks(F)?this._toVariables({semantic:F},R):{},ct=ks(Ue)?this._toVariables({light:Ue},R):{},at=ks(He)?this._toVariables({dark:He},R):{},[Ye,mt]=[(d=Ge.declarations)!=null?d:"",Ge.tokens],[jt,rn]=[(h=Me.declarations)!=null?h:"",Me.tokens||[]],[Pe,Oe]=[(w=vt.declarations)!=null?w:"",vt.tokens||[]],[T,$]=[(v=re.declarations)!=null?v:"",re.tokens||[]],[B,K]=[(y=Te.declarations)!=null?y:"",Te.tokens||[]],[q,ke]=[(E=ct.declarations)!=null?E:"",ct.tokens||[]],[Re,Ie]=[(A=at.declarations)!=null?A:"",at.tokens||[]];O=this.transformCSS(n,Ye,"light","variable",R,l,u),M=mt;const St=this.transformCSS(n,`${jt}${Pe}`,"light","variable",R,l,u),he=this.transformCSS(n,`${T}`,"dark","variable",R,l,u);L=`${St}${he}`,H=[...new Set([...rn,...Oe,...$])];const zt=this.transformCSS(n,`${B}${q}color-scheme:light`,"light","variable",R,l,u),Qt=this.transformCSS(n,`${Re}color-scheme:dark`,"dark","variable",R,l,u);G=`${zt}${Qt}`,j=[...new Set([...K,...ke,...Ie])],Q=Qy(C.css,{dt:tq})}return{primitive:{css:O,tokens:M},semantic:{css:L,tokens:H},global:{css:G,tokens:j},style:Q}},getPreset({name:n="",preset:r={},options:o,params:l,set:u,defaults:d,selector:h}){var w,v,y;let E,A,C;if(ks(r)&&o.transform!=="strict"){const R=n.replace("-directive",""),O=r,{colorScheme:M,extend:L,css:H}=O,G=SR(O,["colorScheme","extend","css"]),j=L||{},{colorScheme:Q}=j,te=SR(j,["colorScheme"]),pe=M||{},{dark:Le}=pe,Ee=SR(pe,["dark"]),le=Q||{},{dark:xe}=le,be=SR(le,["dark"]),ae=ks(G)?this._toVariables({[R]:mS(mS({},G),te)},o):{},F=ks(Ee)?this._toVariables({[R]:mS(mS({},Ee),be)},o):{},me=ks(Le)?this._toVariables({[R]:mS(mS({},Le),xe)},o):{},[ye,we]=[(w=ae.declarations)!=null?w:"",ae.tokens||[]],[Be,He]=[(v=F.declarations)!=null?v:"",F.tokens||[]],[Ue,Ge]=[(y=me.declarations)!=null?y:"",me.tokens||[]],Me=this.transformCSS(R,`${ye}${Be}`,"light","variable",o,u,d,h),vt=this.transformCSS(R,Ue,"dark","variable",o,u,d,h);E=`${Me}${vt}`,A=[...new Set([...we,...He,...Ge])],C=Qy(H,{dt:tq})}return{css:E,tokens:A,style:C}},getPresetC({name:n="",theme:r={},params:o,set:l,defaults:u}){var d;const{preset:h,options:w}=r,v=(d=h==null?void 0:h.components)==null?void 0:d[n];return this.getPreset({name:n,preset:v,options:w,params:o,set:l,defaults:u})},getPresetD({name:n="",theme:r={},params:o,set:l,defaults:u}){var d;const h=n.replace("-directive",""),{preset:w,options:v}=r,y=(d=w==null?void 0:w.directives)==null?void 0:d[h];return this.getPreset({name:h,preset:y,options:v,params:o,set:l,defaults:u})},applyDarkColorScheme(n){return!(n.darkModeSelector==="none"||n.darkModeSelector===!1)},getColorSchemeOption(n,r){var o;return this.applyDarkColorScheme(n)?this.regex.resolve(n.darkModeSelector===!0?r.options.darkModeSelector:(o=n.darkModeSelector)!=null?o:r.options.darkModeSelector):[]},getLayerOrder(n,r={},o,l){const{cssLayer:u}=r;return u?`@layer ${Qy(u.order||"primeui",o)}`:""},getCommonStyleSheet({name:n="",theme:r={},params:o,props:l={},set:u,defaults:d}){const h=this.getCommon({name:n,theme:r,params:o,set:u,defaults:d}),w=Object.entries(l).reduce((v,[y,E])=>v.push(`${y}="${E}"`)&&v,[]).join(" ");return Object.entries(h||{}).reduce((v,[y,E])=>{if(E!=null&&E.css){const A=eq(E==null?void 0:E.css),C=`${y}-variables`;v.push(``)}return v},[]).join("")},getStyleSheet({name:n="",theme:r={},params:o,props:l={},set:u,defaults:d}){var h;const w={name:n,theme:r,params:o,set:u,defaults:d},v=(h=n.includes("-directive")?this.getPresetD(w):this.getPresetC(w))==null?void 0:h.css,y=Object.entries(l).reduce((E,[A,C])=>E.push(`${A}="${C}"`)&&E,[]).join(" ");return v?``:""},createTokens(n={},r,o="",l="",u={}){return Object.entries(n).forEach(([d,h])=>{const w=FR(d,r.variable.excludedKeyRegex)?o:o?`${o}.${Ejt(d)}`:Ejt(d),v=l?`${l}.${d}`:d;ZE(h)?this.createTokens(h,r,w,v,u):(u[w]||(u[w]={paths:[],computed(y,E={}){var A,C;return this.paths.length===1?(A=this.paths[0])==null?void 0:A.computed(this.paths[0].scheme,E.binding):y&&y!=="none"?(C=this.paths.find(R=>R.scheme===y))==null?void 0:C.computed(y,E.binding):this.paths.map(R=>R.computed(R.scheme,E[R.scheme]))}}),u[w].paths.push({path:v,value:h,scheme:v.includes("colorScheme.light")?"light":v.includes("colorScheme.dark")?"dark":"none",computed(y,E={}){const A=/{([^}]*)}/g;let C=h;if(E.name=this.path,E.binding||(E.binding={}),FR(h,A)){const O=h.trim().replaceAll(A,H=>{var G;const j=H.replace(/{|}/g,""),Q=(G=u[j])==null?void 0:G.computed(y,E);return XX(Q)&&Q.length===2?`light-dark(${Q[0].value},${Q[1].value})`:Q==null?void 0:Q.value}),M=/(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g,L=/var\([^)]+\)/g;C=FR(O.replace(L,"0"),M)?`calc(${O})`:O}return ov(E.binding)&&delete E.binding,{colorScheme:y,path:this.path,paths:E,value:C.includes("undefined")?void 0:C}}}))}),u},getTokenValue(n,r,o){var l;const d=(v=>v.split(".").filter(E=>!FR(E.toLowerCase(),o.variable.excludedKeyRegex)).join("."))(r),h=r.includes("colorScheme.light")?"light":r.includes("colorScheme.dark")?"dark":void 0,w=[(l=n[d])==null?void 0:l.computed(h)].flat().filter(v=>v);return w.length===1?w[0].value:w.reduce((v={},y)=>{const E=y,{colorScheme:A}=E,C=SR(E,["colorScheme"]);return v[A]=C,v},void 0)},getSelectorRule(n,r,o,l){return o==="class"||o==="attr"?gD(ks(r)?`${n}${r},${n} ${r}`:n,l):gD(n,ks(r)?gD(r,l):l)},transformCSS(n,r,o,l,u={},d,h,w){if(ks(r)){const{cssLayer:v}=u;if(l!=="style"){const y=this.getColorSchemeOption(u,h);r=o==="dark"?y.reduce((E,{type:A,selector:C})=>(ks(C)&&(E+=C.includes("[CSS]")?C.replace("[CSS]",r):this.getSelectorRule(C,w,A,r)),E),""):gD(w??":root",r)}if(v){const y={name:"primeui",order:"primeui"};ZE(v)&&(y.name=Qy(v.name,{name:n,type:l})),ks(y.name)&&(r=gD(`@layer ${y.name}`,r),d==null||d.layerNames(y.name))}return r}return""}},oc={defaults:{variable:{prefix:"p",selector:":root",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(n={}){const{theme:r}=n;r&&(this._theme=v7e(mS({},r),{options:mS(mS({},this.defaults.options),r.options)}),this._tokens=iS.createTokens(this.preset,this.defaults),this.clearLoadedStyleNames())},get theme(){return this._theme},get preset(){var n;return((n=this.theme)==null?void 0:n.preset)||{}},get options(){var n;return((n=this.theme)==null?void 0:n.options)||{}},get tokens(){return this._tokens},getTheme(){return this.theme},setTheme(n){this.update({theme:n}),gS.emit("theme:change",n)},getPreset(){return this.preset},setPreset(n){this._theme=v7e(mS({},this.theme),{preset:n}),this._tokens=iS.createTokens(n,this.defaults),this.clearLoadedStyleNames(),gS.emit("preset:change",n),gS.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(n){this._theme=v7e(mS({},this.theme),{options:n}),this.clearLoadedStyleNames(),gS.emit("options:change",n),gS.emit("theme:change",this.theme)},getLayerNames(){return[...this._layerNames]},setLayerNames(n){this._layerNames.add(n)},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(n){return this._loadedStyleNames.has(n)},setLoadedStyleName(n){this._loadedStyleNames.add(n)},deleteLoadedStyleName(n){this._loadedStyleNames.delete(n)},clearLoadedStyleNames(){this._loadedStyleNames.clear()},getTokenValue(n){return iS.getTokenValue(this.tokens,n,this.defaults)},getCommon(n="",r){return iS.getCommon({name:n,theme:this.theme,params:r,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(n="",r){const o={name:n,theme:this.theme,params:r,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return iS.getPresetC(o)},getDirective(n="",r){const o={name:n,theme:this.theme,params:r,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return iS.getPresetD(o)},getCustomPreset(n="",r,o,l){const u={name:n,preset:r,options:this.options,selector:o,params:l,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return iS.getPreset(u)},getLayerOrderCSS(n=""){return iS.getLayerOrder(n,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(n="",r,o="style",l){return iS.transformCSS(n,r,l,o,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(n="",r,o={}){return iS.getCommonStyleSheet({name:n,theme:this.theme,params:r,props:o,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(n,r,o={}){return iS.getStyleSheet({name:n,theme:this.theme,params:r,props:o,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},onStyleMounted(n){this._loadingStyles.add(n)},onStyleUpdated(n){this._loadingStyles.add(n)},onStyleLoaded(n,{name:r}){this._loadingStyles.size&&(this._loadingStyles.delete(r),gS.emit(`theme:${r}:load`,n),!this._loadingStyles.size&&gS.emit("theme:load"))}};function PHn(n,r){return n?n.classList?n.classList.contains(r):new RegExp("(^| )"+r+"( |$)","gi").test(n.className):!1}function hT(n,r){if(n&&r){const o=l=>{PHn(n,l)||(n.classList?n.classList.add(l):n.className+=" "+l)};[r].flat().filter(Boolean).forEach(l=>l.split(" ").forEach(o))}}function OHn(){return window.innerWidth-document.documentElement.offsetWidth}function RL(n){for(const r of document==null?void 0:document.styleSheets)try{for(const o of r==null?void 0:r.cssRules)for(const l of o==null?void 0:o.style)if(n.test(l))return{name:l,value:o.style.getPropertyValue(l).trim()}}catch{}return null}function xjt(n="p-overflow-hidden"){const r=RL(/-scrollbar-width$/);r!=null&&r.name&&document.body.style.setProperty(r.name,OHn()+"px"),hT(document.body,n)}function NHn(n){if(n){let r=document.createElement("a");if(r.download!==void 0){const{name:o,src:l}=n;return r.setAttribute("href",l),r.setAttribute("download",o),r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r),!0}}return!1}function MHn(n,r){let o=new Blob([n],{type:"application/csv;charset=utf-8;"});window.navigator.msSaveOrOpenBlob?navigator.msSaveOrOpenBlob(o,r+".csv"):NHn({name:r+".csv",src:URL.createObjectURL(o)})||(n="data:text/csv;charset=utf-8,"+n,window.open(encodeURI(n)))}function MR(n,r){if(n&&r){const o=l=>{n.classList?n.classList.remove(l):n.className=n.className.replace(new RegExp("(^|\\b)"+l.split(" ").join("|")+"(\\b|$)","gi")," ")};[r].flat().filter(Boolean).forEach(l=>l.split(" ").forEach(o))}}function Cjt(n="p-overflow-hidden"){const r=RL(/-scrollbar-width$/);r!=null&&r.name&&document.body.style.removeProperty(r.name),MR(document.body,n)}function MQt(n){let r={width:0,height:0};return n&&(n.style.visibility="hidden",n.style.display="block",r.width=n.offsetWidth,r.height=n.offsetHeight,n.style.display="none",n.style.visibility="visible"),r}function TWe(){let n=window,r=document,o=r.documentElement,l=r.getElementsByTagName("body")[0],u=n.innerWidth||o.clientWidth||l.clientWidth,d=n.innerHeight||o.clientHeight||l.clientHeight;return{width:u,height:d}}function DHn(){let n=document.documentElement;return(window.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}function LHn(){let n=document.documentElement;return(window.pageYOffset||n.scrollTop)-(n.clientTop||0)}function $We(n,r,o=!0){var l,u,d,h;if(n){const w=n.offsetParent?{width:n.offsetWidth,height:n.offsetHeight}:MQt(n),v=w.height,y=w.width,E=r.offsetHeight,A=r.offsetWidth,C=r.getBoundingClientRect(),R=LHn(),O=DHn(),M=TWe();let L,H,G="top";C.top+E+v>M.height?(L=C.top+R-v,G="bottom",L<0&&(L=R)):L=E+C.top+R,C.left+y>M.width?H=Math.max(0,C.left+O+A-y):H=C.left+O,n.style.top=L+"px",n.style.left=H+"px",n.style.transformOrigin=G,o&&(n.style.marginTop=G==="bottom"?`calc(${(u=(l=RL(/-anchor-gutter$/))==null?void 0:l.value)!=null?u:"2px"} * -1)`:(h=(d=RL(/-anchor-gutter$/))==null?void 0:d.value)!=null?h:"")}}function xL(n,r){n&&(typeof r=="string"?n.style.cssText=r:Object.entries(r||{}).forEach(([o,l])=>n.style[o]=l))}function Kp(n,r){if(n instanceof HTMLElement){let o=n.offsetWidth;if(r){let l=getComputedStyle(n);o+=parseFloat(l.marginLeft)+parseFloat(l.marginRight)}return o}return 0}function jHn(n,r,o=!0){var l,u,d,h;if(n){const w=n.offsetParent?{width:n.offsetWidth,height:n.offsetHeight}:MQt(n),v=r.offsetHeight,y=r.getBoundingClientRect(),E=TWe();let A,C,R="top";y.top+v+w.height>E.height?(A=-1*w.height,R="bottom",y.top+A<0&&(A=-1*y.top)):A=v,w.width>E.width?C=y.left*-1:y.left+w.width>E.width?C=(y.left+w.width-E.width)*-1:C=0,n.style.top=A+"px",n.style.left=C+"px",n.style.transformOrigin=R,o&&(n.style.marginTop=R==="bottom"?`calc(${(u=(l=RL(/-anchor-gutter$/))==null?void 0:l.value)!=null?u:"2px"} * -1)`:(h=(d=RL(/-anchor-gutter$/))==null?void 0:d.value)!=null?h:"")}}function nj(n){return typeof HTMLElement=="object"?n instanceof HTMLElement:n&&typeof n=="object"&&n!==null&&n.nodeType===1&&typeof n.nodeName=="string"}function Afe(){if(window.getSelection){const n=window.getSelection()||{};n.empty?n.empty():n.removeAllRanges&&n.rangeCount>0&&n.getRangeAt(0).getClientRects().length>0&&n.removeAllRanges()}}function Cde(n,r={}){if(nj(n)){const o=(l,u)=>{var d,h;const w=(d=n==null?void 0:n.$attrs)!=null&&d[l]?[(h=n==null?void 0:n.$attrs)==null?void 0:h[l]]:[];return[u].flat().reduce((v,y)=>{if(y!=null){const E=typeof y;if(E==="string"||E==="number")v.push(y);else if(E==="object"){const A=Array.isArray(y)?o(l,y):Object.entries(y).map(([C,R])=>l==="style"&&(R||R===0)?`${C.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${R}`:R?C:void 0);v=A.length?v.concat(A.filter(C=>!!C)):v}}return v},w)};Object.entries(r).forEach(([l,u])=>{if(u!=null){const d=l.match(/^on(.+)/);d?n.addEventListener(d[1].toLowerCase(),u):l==="p-bind"||l==="pBind"?Cde(n,u):(u=l==="class"?[...new Set(o("class",u))].join(" ").trim():l==="style"?o("style",u).join(";").trim():u,(n.$attrs=n.$attrs||{})&&(n.$attrs[l]=u),n.setAttribute(l,u))}})}}function DQt(n,r={},...o){{const l=document.createElement(n);return Cde(l,r),l.append(...o),l}}function wD(n,r){return nj(n)?Array.from(n.querySelectorAll(r)):[]}function pT(n,r){return nj(n)?n.matches(r)?n:n.querySelector(r):null}function Gp(n,r){n&&document.activeElement!==n&&n.focus(r)}function cp(n,r){if(nj(n)){const o=n.getAttribute(r);return isNaN(o)?o==="true"||o==="false"?o==="true":o:+o}}function IWe(n,r=""){let o=wD(n,`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}, +**/let OLe;const ojt=typeof window<"u"&&window.trustedTypes;if(ojt)try{OLe=ojt.createPolicy("vue",{createHTML:n=>n})}catch{}const PQt=OLe?n=>OLe.createHTML(n):n=>n,WWn="http://www.w3.org/2000/svg",HWn="http://www.w3.org/1998/Math/MathML",AR=typeof document<"u"?document:null,sjt=AR&&AR.createElement("template"),UWn={insert:(n,r,o)=>{r.insertBefore(n,o||null)},remove:n=>{const r=n.parentNode;r&&r.removeChild(n)},createElement:(n,r,o,l)=>{const u=r==="svg"?AR.createElementNS(WWn,n):r==="mathml"?AR.createElementNS(HWn,n):o?AR.createElement(n,{is:o}):AR.createElement(n);return n==="select"&&l&&l.multiple!=null&&u.setAttribute("multiple",l.multiple),u},createText:n=>AR.createTextNode(n),createComment:n=>AR.createComment(n),setText:(n,r)=>{n.nodeValue=r},setElementText:(n,r)=>{n.textContent=r},parentNode:n=>n.parentNode,nextSibling:n=>n.nextSibling,querySelector:n=>AR.querySelector(n),setScopeId(n,r){n.setAttribute(r,"")},insertStaticContent(n,r,o,l,u,d){const h=o?o.previousSibling:r.lastChild;if(u&&(u===d||u.nextSibling))for(;r.insertBefore(u.cloneNode(!0),o),!(u===d||!(u=u.nextSibling)););else{sjt.innerHTML=PQt(l==="svg"?`${n}`:l==="mathml"?`${n}`:n);const w=sjt.content;if(l==="svg"||l==="mathml"){const v=w.firstChild;for(;v.firstChild;)w.appendChild(v.firstChild);w.removeChild(v)}r.insertBefore(w,o)}return[h?h.nextSibling:r.firstChild,o?o.previousSibling:r.lastChild]}},N4="transition",Kz="animation",Bq=Symbol("_vtc"),OQt={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},GWn=zd({},ZYt,OQt),VWn=n=>(n.displayName="Transition",n.props=GWn,n),spe=VWn((n,{slots:r})=>sc(HBn,zWn(n),r)),Z5=(n,r=[])=>{Bo(n)?n.forEach(o=>o(...r)):n&&n(...r)},ljt=n=>n?Bo(n)?n.some(r=>r.length>1):n.length>1:!1;function zWn(n){const r={};for(const ae in n)ae in OQt||(r[ae]=n[ae]);if(n.css===!1)return r;const{name:o="v",type:l,duration:u,enterFromClass:d=`${o}-enter-from`,enterActiveClass:h=`${o}-enter-active`,enterToClass:w=`${o}-enter-to`,appearFromClass:v=d,appearActiveClass:y=h,appearToClass:E=w,leaveFromClass:A=`${o}-leave-from`,leaveActiveClass:C=`${o}-leave-active`,leaveToClass:R=`${o}-leave-to`}=n,O=KWn(u),M=O&&O[0],L=O&&O[1],{onBeforeEnter:H,onEnter:G,onEnterCancelled:j,onLeave:Q,onLeaveCancelled:te,onBeforeAppear:pe=H,onAppear:De=G,onAppearCancelled:Re=j}=r,le=(ae,F,me,ye)=>{ae._enterCancelled=ye,e8(ae,F?E:w),e8(ae,F?y:h),me&&me()},xe=(ae,F)=>{ae._isLeaving=!1,e8(ae,A),e8(ae,R),e8(ae,C),F&&F()},be=ae=>(F,me)=>{const ye=ae?De:G,we=()=>le(F,ae,me);Z5(ye,[F,we]),ajt(()=>{e8(F,ae?v:d),_R(F,ae?E:w),ljt(ye)||cjt(F,l,M,we)})};return zd(r,{onBeforeEnter(ae){Z5(H,[ae]),_R(ae,d),_R(ae,h)},onBeforeAppear(ae){Z5(pe,[ae]),_R(ae,v),_R(ae,y)},onEnter:be(!1),onAppear:be(!0),onLeave(ae,F){ae._isLeaving=!0;const me=()=>xe(ae,F);_R(ae,A),ae._enterCancelled?(_R(ae,C),djt()):(djt(),_R(ae,C)),ajt(()=>{ae._isLeaving&&(e8(ae,A),_R(ae,R),ljt(Q)||cjt(ae,l,L,me))}),Z5(Q,[ae,me])},onEnterCancelled(ae){le(ae,!1,void 0,!0),Z5(j,[ae])},onAppearCancelled(ae){le(ae,!0,void 0,!0),Z5(Re,[ae])},onLeaveCancelled(ae){xe(ae),Z5(te,[ae])}})}function KWn(n){if(n==null)return null;if(Qc(n))return[y7e(n.enter),y7e(n.leave)];{const r=y7e(n);return[r,r]}}function y7e(n){return JFn(n)}function _R(n,r){r.split(/\s+/).forEach(o=>o&&n.classList.add(o)),(n[Bq]||(n[Bq]=new Set)).add(r)}function e8(n,r){r.split(/\s+/).forEach(l=>l&&n.classList.remove(l));const o=n[Bq];o&&(o.delete(r),o.size||(n[Bq]=void 0))}function ajt(n){requestAnimationFrame(()=>{requestAnimationFrame(n)})}let qWn=0;function cjt(n,r,o,l){const u=n._endId=++qWn,d=()=>{u===n._endId&&l()};if(o!=null)return setTimeout(d,o);const{type:h,timeout:w,propCount:v}=XWn(n,r);if(!h)return l();const y=h+"end";let E=0;const A=()=>{n.removeEventListener(y,C),d()},C=R=>{R.target===n&&++E>=v&&A()};setTimeout(()=>{E(o[O]||"").split(", "),u=l(`${N4}Delay`),d=l(`${N4}Duration`),h=ujt(u,d),w=l(`${Kz}Delay`),v=l(`${Kz}Duration`),y=ujt(w,v);let E=null,A=0,C=0;r===N4?h>0&&(E=N4,A=h,C=d.length):r===Kz?y>0&&(E=Kz,A=y,C=v.length):(A=Math.max(h,y),E=A>0?h>y?N4:Kz:null,C=E?E===N4?d.length:v.length:0);const R=E===N4&&/\b(transform|all)(,|$)/.test(l(`${N4}Property`).toString());return{type:E,timeout:A,propCount:C,hasTransform:R}}function ujt(n,r){for(;n.lengthfjt(o)+fjt(n[l])))}function fjt(n){return n==="auto"?0:Number(n.slice(0,-1).replace(",","."))*1e3}function djt(){return document.body.offsetHeight}function JWn(n,r,o){const l=n[Bq];l&&(r=(r?[r,...l]:[...l]).join(" ")),r==null?n.removeAttribute("class"):o?n.setAttribute("class",r):n.className=r}const hjt=Symbol("_vod"),YWn=Symbol("_vsh"),QWn=Symbol(""),ZWn=/(^|;)\s*display\s*:/;function eHn(n,r,o){const l=n.style,u=Fu(o);let d=!1;if(o&&!u){if(r)if(Fu(r))for(const h of r.split(";")){const w=h.slice(0,h.indexOf(":")).trim();o[w]==null&&Tfe(l,w,"")}else for(const h in r)o[h]==null&&Tfe(l,h,"");for(const h in o)h==="display"&&(d=!0),Tfe(l,h,o[h])}else if(u){if(r!==o){const h=l[QWn];h&&(o+=";"+h),l.cssText=o,d=ZWn.test(o)}}else r&&n.removeAttribute("style");hjt in n&&(n[hjt]=d?l.display:"",n[YWn]&&(l.display="none"))}const pjt=/\s*!important$/;function Tfe(n,r,o){if(Bo(o))o.forEach(l=>Tfe(n,r,l));else if(o==null&&(o=""),r.startsWith("--"))n.setProperty(r,o);else{const l=tHn(n,r);pjt.test(o)?n.setProperty(IT(l),o.replace(pjt,""),"important"):n[l]=o}}const bjt=["Webkit","Moz","ms"],v7e={};function tHn(n,r){const o=v7e[r];if(o)return o;let l=rv(r);if(l!=="filter"&&l in n)return v7e[r]=l;l=Khe(l);for(let u=0;u_7e||(sHn.then(()=>_7e=0),_7e=Date.now());function aHn(n,r){const o=l=>{if(!l._vts)l._vts=Date.now();else if(l._vts<=o.attached)return;xS(cHn(l,o.value),r,5,[l])};return o.value=n,o.attached=lHn(),o}function cHn(n,r){if(Bo(r)){const o=n.stopImmediatePropagation;return n.stopImmediatePropagation=()=>{o.call(n),n._stopped=!0},r.map(l=>u=>!u._stopped&&l&&l(u))}else return r}const _jt=n=>n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)>96&&n.charCodeAt(2)<123,uHn=(n,r,o,l,u,d)=>{const h=u==="svg";r==="class"?JWn(n,l,h):r==="style"?eHn(n,o,l):Ghe(r)?mWe(r)||iHn(n,r,o,l,d):(r[0]==="."?(r=r.slice(1),!0):r[0]==="^"?(r=r.slice(1),!1):fHn(n,r,l,h))?(mjt(n,r,l),!n.tagName.includes("-")&&(r==="value"||r==="checked"||r==="selected")&&wjt(n,r,l,h,d,r!=="value")):n._isVueCE&&(/[A-Z]/.test(r)||!Fu(l))?mjt(n,rv(r),l,d,r):(r==="true-value"?n._trueValue=l:r==="false-value"&&(n._falseValue=l),wjt(n,r,l,h))};function fHn(n,r,o,l){if(l)return!!(r==="innerHTML"||r==="textContent"||r in n&&_jt(r)&&ls(o));if(r==="spellcheck"||r==="draggable"||r==="translate"||r==="form"||r==="list"&&n.tagName==="INPUT"||r==="type"&&n.tagName==="TEXTAREA")return!1;if(r==="width"||r==="height"){const u=n.tagName;if(u==="IMG"||u==="VIDEO"||u==="CANVAS"||u==="SOURCE")return!1}return _jt(r)&&Fu(o)?!1:r in n}const dHn=["ctrl","shift","alt","meta"],hHn={stop:n=>n.stopPropagation(),prevent:n=>n.preventDefault(),self:n=>n.target!==n.currentTarget,ctrl:n=>!n.ctrlKey,shift:n=>!n.shiftKey,alt:n=>!n.altKey,meta:n=>!n.metaKey,left:n=>"button"in n&&n.button!==0,middle:n=>"button"in n&&n.button!==1,right:n=>"button"in n&&n.button!==2,exact:(n,r)=>dHn.some(o=>n[`${o}Key`]&&!r.includes(o))},NQt=(n,r)=>{const o=n._withMods||(n._withMods={}),l=r.join(".");return o[l]||(o[l]=(u,...d)=>{for(let h=0;h{const o=n._withKeys||(n._withKeys={}),l=r.join(".");return o[l]||(o[l]=u=>{if(!("key"in u))return;const d=IT(u.key);if(r.some(h=>h===d||pHn[h]===d))return n(u)})},bHn=zd({patchProp:uHn},UWn);let Sjt;function gHn(){return Sjt||(Sjt=bWn(bHn))}const wHn=(...n)=>{const r=gHn().createApp(...n),{mount:o}=r;return r.mount=l=>{const u=yHn(l);if(!u)return;const d=r._component;!ls(d)&&!d.render&&!d.template&&(d.template=u.innerHTML),u.nodeType===1&&(u.textContent="");const h=o(u,!1,mHn(u));return u instanceof Element&&(u.removeAttribute("v-cloak"),u.setAttribute("data-v-app","")),h},r};function mHn(n){if(n instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&n instanceof MathMLElement)return"mathml"}function yHn(n){return Fu(n)?document.querySelector(n):n}var vHn=Object.defineProperty,Ejt=Object.getOwnPropertySymbols,_Hn=Object.prototype.hasOwnProperty,SHn=Object.prototype.propertyIsEnumerable,kjt=(n,r,o)=>r in n?vHn(n,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[r]=o,EHn=(n,r)=>{for(var o in r||(r={}))_Hn.call(r,o)&&kjt(n,o,r[o]);if(Ejt)for(var o of Ejt(r))SHn.call(r,o)&&kjt(n,o,r[o]);return n};function iv(n){return n==null||n===""||Array.isArray(n)&&n.length===0||!(n instanceof Date)&&typeof n=="object"&&Object.keys(n).length===0}function kHn(n,r,o,l=1){let u=-1;const d=iv(n),h=iv(r);return d&&h?u=0:d?u=l:h?u=-l:typeof n=="string"&&typeof r=="string"?u=o(n,r):u=nr?1:0,u}function NLe(n,r,o=new WeakSet){if(n===r)return!0;if(!n||!r||typeof n!="object"||typeof r!="object"||o.has(n)||o.has(r))return!1;o.add(n).add(r);let l=Array.isArray(n),u=Array.isArray(r),d,h,w;if(l&&u){if(h=n.length,h!=r.length)return!1;for(d=h;d--!==0;)if(!NLe(n[d],r[d],o))return!1;return!0}if(l!=u)return!1;let v=n instanceof Date,y=r instanceof Date;if(v!=y)return!1;if(v&&y)return n.getTime()==r.getTime();let E=n instanceof RegExp,A=r instanceof RegExp;if(E!=A)return!1;if(E&&A)return n.toString()==r.toString();let C=Object.keys(n);if(h=C.length,h!==Object.keys(r).length)return!1;for(d=h;d--!==0;)if(!Object.prototype.hasOwnProperty.call(r,C[d]))return!1;for(d=h;d--!==0;)if(w=C[d],!NLe(n[w],r[w],o))return!1;return!0}function RHn(n,r){return NLe(n,r)}function lpe(n){return!!(n&&n.constructor&&n.call&&n.apply)}function ks(n){return!iv(n)}function Bl(n,r){if(!n||!r)return null;try{const o=n[r];if(ks(o))return o}catch{}if(Object.keys(n).length){if(lpe(r))return r(n);if(r.indexOf(".")===-1)return n[r];{let o=r.split("."),l=n;for(let u=0,d=o.length;uwS(d)===u)||""],o),l.join("."),o):void 0:Yy(n,o)}function XX(n,r=!0){return Array.isArray(n)&&(r||n.length!==0)}function CHn(n){return ks(n)&&!isNaN(n)}function AHn(n=""){return ks(n)&&n.length===1&&!!n.match(/\S| /)}function xjt(){return new Intl.Collator(void 0,{numeric:!0}).compare}function FR(n,r){if(r){const o=r.test(n);return r.lastIndex=0,o}return!1}function THn(...n){const r=(o={},l={})=>{const u=EHn({},o);return Object.keys(l).forEach(d=>{ZE(l[d])&&d in o&&ZE(o[d])?u[d]=r(o[d],l[d]):u[d]=l[d]}),u};return n.reduce((o,l,u)=>u===0?l:r(o,l),{})}function ZK(n){return n&&n.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":")}function Uy(n){if(n&&/[\xC0-\xFF\u0100-\u017E]/.test(n)){const o={A:/[\xC0-\xC5\u0100\u0102\u0104]/g,AE:/[\xC6]/g,C:/[\xC7\u0106\u0108\u010A\u010C]/g,D:/[\xD0\u010E\u0110]/g,E:/[\xC8-\xCB\u0112\u0114\u0116\u0118\u011A]/g,G:/[\u011C\u011E\u0120\u0122]/g,H:/[\u0124\u0126]/g,I:/[\xCC-\xCF\u0128\u012A\u012C\u012E\u0130]/g,IJ:/[\u0132]/g,J:/[\u0134]/g,K:/[\u0136]/g,L:/[\u0139\u013B\u013D\u013F\u0141]/g,N:/[\xD1\u0143\u0145\u0147\u014A]/g,O:/[\xD2-\xD6\xD8\u014C\u014E\u0150]/g,OE:/[\u0152]/g,R:/[\u0154\u0156\u0158]/g,S:/[\u015A\u015C\u015E\u0160]/g,T:/[\u0162\u0164\u0166]/g,U:/[\xD9-\xDC\u0168\u016A\u016C\u016E\u0170\u0172]/g,W:/[\u0174]/g,Y:/[\xDD\u0176\u0178]/g,Z:/[\u0179\u017B\u017D]/g,a:/[\xE0-\xE5\u0101\u0103\u0105]/g,ae:/[\xE6]/g,c:/[\xE7\u0107\u0109\u010B\u010D]/g,d:/[\u010F\u0111]/g,e:/[\xE8-\xEB\u0113\u0115\u0117\u0119\u011B]/g,g:/[\u011D\u011F\u0121\u0123]/g,i:/[\xEC-\xEF\u0129\u012B\u012D\u012F\u0131]/g,ij:/[\u0133]/g,j:/[\u0135]/g,k:/[\u0137,\u0138]/g,l:/[\u013A\u013C\u013E\u0140\u0142]/g,n:/[\xF1\u0144\u0146\u0148\u014B]/g,p:/[\xFE]/g,o:/[\xF2-\xF6\xF8\u014D\u014F\u0151]/g,oe:/[\u0153]/g,r:/[\u0155\u0157\u0159]/g,s:/[\u015B\u015D\u015F\u0161]/g,t:/[\u0163\u0165\u0167]/g,u:/[\xF9-\xFC\u0169\u016B\u016D\u016F\u0171\u0173]/g,w:/[\u0175]/g,y:/[\xFD\xFF\u0177]/g,z:/[\u017A\u017C\u017E]/g};for(let l in o)n=n.replace(o[l],l)}return n}function Cjt(n,r,o){n&&r!==o&&(o>=n.length&&(o%=n.length,r%=n.length),n.splice(o,0,n.splice(r,1)[0]))}function Ajt(n,r,o=1,l,u=1){const d=kHn(n,r,l,o);let h=o;return(iv(n)||iv(r))&&(h=u===1?o:u),h*d}function $Hn(n){return R0(n,!1)?n[0].toUpperCase()+n.slice(1):n}function MQt(n){return R0(n)?n.replace(/(_)/g,"-").replace(/[A-Z]/g,(r,o)=>o===0?r:"-"+r.toLowerCase()).toLowerCase():n}function Tjt(n){return R0(n)?n.replace(/[A-Z]/g,(r,o)=>o===0?r:"."+r.toLowerCase()).toLowerCase():n}function MWe(){const n=new Map;return{on(r,o){let l=n.get(r);return l?l.push(o):l=[o],n.set(r,l),this},off(r,o){let l=n.get(r);return l&&l.splice(l.indexOf(o)>>>0,1),this},emit(r,o){let l=n.get(r);l&&l.slice().map(u=>{u(o)})},clear(){n.clear()}}}var IHn=Object.defineProperty,PHn=Object.defineProperties,OHn=Object.getOwnPropertyDescriptors,Tde=Object.getOwnPropertySymbols,DQt=Object.prototype.hasOwnProperty,LQt=Object.prototype.propertyIsEnumerable,$jt=(n,r,o)=>r in n?IHn(n,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[r]=o,mS=(n,r)=>{for(var o in r||(r={}))DQt.call(r,o)&&$jt(n,o,r[o]);if(Tde)for(var o of Tde(r))LQt.call(r,o)&&$jt(n,o,r[o]);return n},k7e=(n,r)=>PHn(n,OHn(r)),SR=(n,r)=>{var o={};for(var l in n)DQt.call(n,l)&&r.indexOf(l)<0&&(o[l]=n[l]);if(n!=null&&Tde)for(var l of Tde(n))r.indexOf(l)<0&&LQt.call(n,l)&&(o[l]=n[l]);return o},NHn=MWe(),gS=NHn;function Ijt(n,r){XX(n)?n.push(...r||[]):ZE(n)&&Object.assign(n,r)}function MHn(n){return ZE(n)&&n.hasOwnProperty("value")&&n.hasOwnProperty("type")?n.value:n}function DHn(n){return n.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function MLe(n="",r=""){return DHn(`${R0(n,!1)&&R0(r,!1)?`${n}-`:n}${r}`)}function jQt(n="",r=""){return`--${MLe(n,r)}`}function LHn(n=""){const r=(n.match(/{/g)||[]).length,o=(n.match(/}/g)||[]).length;return(r+o)%2!==0}function FQt(n,r="",o="",l=[],u){if(R0(n)){const d=/{([^}]*)}/g,h=n.trim();if(LHn(h))return;if(FR(h,d)){const w=h.replaceAll(d,E=>{const C=E.replace(/{|}/g,"").split(".").filter(R=>!l.some(O=>FR(R,O)));return`var(${jQt(o,MQt(C.join("-")))}${ks(u)?`, ${u}`:""})`}),v=/(\d+\s+[\+\-\*\/]\s+\d+)/g,y=/var\([^)]+\)/g;return FR(w.replace(y,"0"),v)?`calc(${w})`:w}return h}else if(CHn(n))return n}function jHn(n,r,o){R0(r,!1)&&n.push(`${r}:${o};`)}function bD(n,r){return n?`${n}{${r}}`:""}var FHn=n=>{var r;const o=oc.getTheme(),l=DLe(o,n,void 0,"variable"),u=(r=l==null?void 0:l.match(/--[\w-]+/g))==null?void 0:r[0],d=DLe(o,n,void 0,"value");return{name:u,variable:l,value:d}},eq=(...n)=>DLe(oc.getTheme(),...n),DLe=(n={},r,o,l)=>{if(r){const{variable:u,options:d}=oc.defaults||{},{prefix:h,transform:w}=(n==null?void 0:n.options)||d||{},y=FR(r,/{([^}]*)}/g)?r:`{${r}}`;return l==="value"||iv(l)&&w==="strict"?oc.getTokenValue(r):FQt(y,void 0,h,[u.excludedKeyRegex],o)}return""};function BHn(n,r={}){const o=oc.defaults.variable,{prefix:l=o.prefix,selector:u=o.selector,excludedKeyRegex:d=o.excludedKeyRegex}=r,h=(y,E="")=>Object.entries(y).reduce((A,[C,R])=>{const O=FR(C,d)?MLe(E):MLe(E,MQt(C)),M=MHn(R);if(ZE(M)){const{variables:L,tokens:H}=h(M,O);Ijt(A.tokens,H),Ijt(A.variables,L)}else A.tokens.push((l?O.replace(`${l}-`,""):O).replaceAll("-",".")),jHn(A.variables,jQt(O),FQt(M,O,l,[d]));return A},{variables:[],tokens:[]}),{variables:w,tokens:v}=h(n,l);return{value:w,tokens:v,declarations:w.join(""),css:bD(u,w.join(""))}}var iS={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(n){return{type:"class",selector:n,matched:this.pattern.test(n.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(n){return{type:"attr",selector:`:root${n}`,matched:this.pattern.test(n.trim())}}},media:{pattern:/^@media (.*)$/,resolve(n){return{type:"media",selector:`${n}{:root{[CSS]}}`,matched:this.pattern.test(n.trim())}}},system:{pattern:/^system$/,resolve(n){return{type:"system",selector:"@media (prefers-color-scheme: dark){:root{[CSS]}}",matched:this.pattern.test(n.trim())}}},custom:{resolve(n){return{type:"custom",selector:n,matched:!0}}}},resolve(n){const r=Object.keys(this.rules).filter(o=>o!=="custom").map(o=>this.rules[o]);return[n].flat().map(o=>{var l;return(l=r.map(u=>u.resolve(o)).find(u=>u.matched))!=null?l:this.rules.custom.resolve(o)})}},_toVariables(n,r){return BHn(n,{prefix:r==null?void 0:r.prefix})},getCommon({name:n="",theme:r={},params:o,set:l,defaults:u}){var d,h,w,v,y,E,A;const{preset:C,options:R}=r;let O,M,L,H,G,j,Q;if(ks(C)&&R.transform!=="strict"){const{primitive:te,semantic:pe,extend:De}=C,Re=pe||{},{colorScheme:le}=Re,xe=SR(Re,["colorScheme"]),be=De||{},{colorScheme:ae}=be,F=SR(be,["colorScheme"]),me=le||{},{dark:ye}=me,we=SR(me,["dark"]),Be=ae||{},{dark:He}=Be,Ue=SR(Be,["dark"]),Ge=ks(te)?this._toVariables({primitive:te},R):{},Le=ks(xe)?this._toVariables({semantic:xe},R):{},ft=ks(we)?this._toVariables({light:we},R):{},re=ks(ye)?this._toVariables({dark:ye},R):{},Te=ks(F)?this._toVariables({semantic:F},R):{},dt=ks(Ue)?this._toVariables({light:Ue},R):{},at=ks(He)?this._toVariables({dark:He},R):{},[Qe,yt]=[(d=Ge.declarations)!=null?d:"",Ge.tokens],[Lt,nn]=[(h=Le.declarations)!=null?h:"",Le.tokens||[]],[Pe,Ne]=[(w=ft.declarations)!=null?w:"",ft.tokens||[]],[T,$]=[(v=re.declarations)!=null?v:"",re.tokens||[]],[B,K]=[(y=Te.declarations)!=null?y:"",Te.tokens||[]],[q,ke]=[(E=dt.declarations)!=null?E:"",dt.tokens||[]],[Ee,Ie]=[(A=at.declarations)!=null?A:"",at.tokens||[]];O=this.transformCSS(n,Qe,"light","variable",R,l,u),M=yt;const _t=this.transformCSS(n,`${Lt}${Pe}`,"light","variable",R,l,u),he=this.transformCSS(n,`${T}`,"dark","variable",R,l,u);L=`${_t}${he}`,H=[...new Set([...nn,...Ne,...$])];const Xt=this.transformCSS(n,`${B}${q}color-scheme:light`,"light","variable",R,l,u),Zt=this.transformCSS(n,`${Ee}color-scheme:dark`,"dark","variable",R,l,u);G=`${Xt}${Zt}`,j=[...new Set([...K,...ke,...Ie])],Q=Yy(C.css,{dt:eq})}return{primitive:{css:O,tokens:M},semantic:{css:L,tokens:H},global:{css:G,tokens:j},style:Q}},getPreset({name:n="",preset:r={},options:o,params:l,set:u,defaults:d,selector:h}){var w,v,y;let E,A,C;if(ks(r)&&o.transform!=="strict"){const R=n.replace("-directive",""),O=r,{colorScheme:M,extend:L,css:H}=O,G=SR(O,["colorScheme","extend","css"]),j=L||{},{colorScheme:Q}=j,te=SR(j,["colorScheme"]),pe=M||{},{dark:De}=pe,Re=SR(pe,["dark"]),le=Q||{},{dark:xe}=le,be=SR(le,["dark"]),ae=ks(G)?this._toVariables({[R]:mS(mS({},G),te)},o):{},F=ks(Re)?this._toVariables({[R]:mS(mS({},Re),be)},o):{},me=ks(De)?this._toVariables({[R]:mS(mS({},De),xe)},o):{},[ye,we]=[(w=ae.declarations)!=null?w:"",ae.tokens||[]],[Be,He]=[(v=F.declarations)!=null?v:"",F.tokens||[]],[Ue,Ge]=[(y=me.declarations)!=null?y:"",me.tokens||[]],Le=this.transformCSS(R,`${ye}${Be}`,"light","variable",o,u,d,h),ft=this.transformCSS(R,Ue,"dark","variable",o,u,d,h);E=`${Le}${ft}`,A=[...new Set([...we,...He,...Ge])],C=Yy(H,{dt:eq})}return{css:E,tokens:A,style:C}},getPresetC({name:n="",theme:r={},params:o,set:l,defaults:u}){var d;const{preset:h,options:w}=r,v=(d=h==null?void 0:h.components)==null?void 0:d[n];return this.getPreset({name:n,preset:v,options:w,params:o,set:l,defaults:u})},getPresetD({name:n="",theme:r={},params:o,set:l,defaults:u}){var d;const h=n.replace("-directive",""),{preset:w,options:v}=r,y=(d=w==null?void 0:w.directives)==null?void 0:d[h];return this.getPreset({name:h,preset:y,options:v,params:o,set:l,defaults:u})},applyDarkColorScheme(n){return!(n.darkModeSelector==="none"||n.darkModeSelector===!1)},getColorSchemeOption(n,r){var o;return this.applyDarkColorScheme(n)?this.regex.resolve(n.darkModeSelector===!0?r.options.darkModeSelector:(o=n.darkModeSelector)!=null?o:r.options.darkModeSelector):[]},getLayerOrder(n,r={},o,l){const{cssLayer:u}=r;return u?`@layer ${Yy(u.order||"primeui",o)}`:""},getCommonStyleSheet({name:n="",theme:r={},params:o,props:l={},set:u,defaults:d}){const h=this.getCommon({name:n,theme:r,params:o,set:u,defaults:d}),w=Object.entries(l).reduce((v,[y,E])=>v.push(`${y}="${E}"`)&&v,[]).join(" ");return Object.entries(h||{}).reduce((v,[y,E])=>{if(E!=null&&E.css){const A=ZK(E==null?void 0:E.css),C=`${y}-variables`;v.push(``)}return v},[]).join("")},getStyleSheet({name:n="",theme:r={},params:o,props:l={},set:u,defaults:d}){var h;const w={name:n,theme:r,params:o,set:u,defaults:d},v=(h=n.includes("-directive")?this.getPresetD(w):this.getPresetC(w))==null?void 0:h.css,y=Object.entries(l).reduce((E,[A,C])=>E.push(`${A}="${C}"`)&&E,[]).join(" ");return v?``:""},createTokens(n={},r,o="",l="",u={}){return Object.entries(n).forEach(([d,h])=>{const w=FR(d,r.variable.excludedKeyRegex)?o:o?`${o}.${Tjt(d)}`:Tjt(d),v=l?`${l}.${d}`:d;ZE(h)?this.createTokens(h,r,w,v,u):(u[w]||(u[w]={paths:[],computed(y,E={}){var A,C;return this.paths.length===1?(A=this.paths[0])==null?void 0:A.computed(this.paths[0].scheme,E.binding):y&&y!=="none"?(C=this.paths.find(R=>R.scheme===y))==null?void 0:C.computed(y,E.binding):this.paths.map(R=>R.computed(R.scheme,E[R.scheme]))}}),u[w].paths.push({path:v,value:h,scheme:v.includes("colorScheme.light")?"light":v.includes("colorScheme.dark")?"dark":"none",computed(y,E={}){const A=/{([^}]*)}/g;let C=h;if(E.name=this.path,E.binding||(E.binding={}),FR(h,A)){const O=h.trim().replaceAll(A,H=>{var G;const j=H.replace(/{|}/g,""),Q=(G=u[j])==null?void 0:G.computed(y,E);return XX(Q)&&Q.length===2?`light-dark(${Q[0].value},${Q[1].value})`:Q==null?void 0:Q.value}),M=/(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g,L=/var\([^)]+\)/g;C=FR(O.replace(L,"0"),M)?`calc(${O})`:O}return iv(E.binding)&&delete E.binding,{colorScheme:y,path:this.path,paths:E,value:C.includes("undefined")?void 0:C}}}))}),u},getTokenValue(n,r,o){var l;const d=(v=>v.split(".").filter(E=>!FR(E.toLowerCase(),o.variable.excludedKeyRegex)).join("."))(r),h=r.includes("colorScheme.light")?"light":r.includes("colorScheme.dark")?"dark":void 0,w=[(l=n[d])==null?void 0:l.computed(h)].flat().filter(v=>v);return w.length===1?w[0].value:w.reduce((v={},y)=>{const E=y,{colorScheme:A}=E,C=SR(E,["colorScheme"]);return v[A]=C,v},void 0)},getSelectorRule(n,r,o,l){return o==="class"||o==="attr"?bD(ks(r)?`${n}${r},${n} ${r}`:n,l):bD(n,ks(r)?bD(r,l):l)},transformCSS(n,r,o,l,u={},d,h,w){if(ks(r)){const{cssLayer:v}=u;if(l!=="style"){const y=this.getColorSchemeOption(u,h);r=o==="dark"?y.reduce((E,{type:A,selector:C})=>(ks(C)&&(E+=C.includes("[CSS]")?C.replace("[CSS]",r):this.getSelectorRule(C,w,A,r)),E),""):bD(w??":root",r)}if(v){const y={name:"primeui",order:"primeui"};ZE(v)&&(y.name=Yy(v.name,{name:n,type:l})),ks(y.name)&&(r=bD(`@layer ${y.name}`,r),d==null||d.layerNames(y.name))}return r}return""}},oc={defaults:{variable:{prefix:"p",selector:":root",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(n={}){const{theme:r}=n;r&&(this._theme=k7e(mS({},r),{options:mS(mS({},this.defaults.options),r.options)}),this._tokens=iS.createTokens(this.preset,this.defaults),this.clearLoadedStyleNames())},get theme(){return this._theme},get preset(){var n;return((n=this.theme)==null?void 0:n.preset)||{}},get options(){var n;return((n=this.theme)==null?void 0:n.options)||{}},get tokens(){return this._tokens},getTheme(){return this.theme},setTheme(n){this.update({theme:n}),gS.emit("theme:change",n)},getPreset(){return this.preset},setPreset(n){this._theme=k7e(mS({},this.theme),{preset:n}),this._tokens=iS.createTokens(n,this.defaults),this.clearLoadedStyleNames(),gS.emit("preset:change",n),gS.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(n){this._theme=k7e(mS({},this.theme),{options:n}),this.clearLoadedStyleNames(),gS.emit("options:change",n),gS.emit("theme:change",this.theme)},getLayerNames(){return[...this._layerNames]},setLayerNames(n){this._layerNames.add(n)},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(n){return this._loadedStyleNames.has(n)},setLoadedStyleName(n){this._loadedStyleNames.add(n)},deleteLoadedStyleName(n){this._loadedStyleNames.delete(n)},clearLoadedStyleNames(){this._loadedStyleNames.clear()},getTokenValue(n){return iS.getTokenValue(this.tokens,n,this.defaults)},getCommon(n="",r){return iS.getCommon({name:n,theme:this.theme,params:r,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(n="",r){const o={name:n,theme:this.theme,params:r,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return iS.getPresetC(o)},getDirective(n="",r){const o={name:n,theme:this.theme,params:r,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return iS.getPresetD(o)},getCustomPreset(n="",r,o,l){const u={name:n,preset:r,options:this.options,selector:o,params:l,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return iS.getPreset(u)},getLayerOrderCSS(n=""){return iS.getLayerOrder(n,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(n="",r,o="style",l){return iS.transformCSS(n,r,l,o,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(n="",r,o={}){return iS.getCommonStyleSheet({name:n,theme:this.theme,params:r,props:o,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(n,r,o={}){return iS.getStyleSheet({name:n,theme:this.theme,params:r,props:o,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},onStyleMounted(n){this._loadingStyles.add(n)},onStyleUpdated(n){this._loadingStyles.add(n)},onStyleLoaded(n,{name:r}){this._loadingStyles.size&&(this._loadingStyles.delete(r),gS.emit(`theme:${r}:load`,n),!this._loadingStyles.size&&gS.emit("theme:load"))}};function WHn(n,r){return n?n.classList?n.classList.contains(r):new RegExp("(^| )"+r+"( |$)","gi").test(n.className):!1}function hT(n,r){if(n&&r){const o=l=>{WHn(n,l)||(n.classList?n.classList.add(l):n.className+=" "+l)};[r].flat().filter(Boolean).forEach(l=>l.split(" ").forEach(o))}}function HHn(){return window.innerWidth-document.documentElement.offsetWidth}function kL(n){for(const r of document==null?void 0:document.styleSheets)try{for(const o of r==null?void 0:r.cssRules)for(const l of o==null?void 0:o.style)if(n.test(l))return{name:l,value:o.style.getPropertyValue(l).trim()}}catch{}return null}function Pjt(n="p-overflow-hidden"){const r=kL(/-scrollbar-width$/);r!=null&&r.name&&document.body.style.setProperty(r.name,HHn()+"px"),hT(document.body,n)}function UHn(n){if(n){let r=document.createElement("a");if(r.download!==void 0){const{name:o,src:l}=n;return r.setAttribute("href",l),r.setAttribute("download",o),r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r),!0}}return!1}function GHn(n,r){let o=new Blob([n],{type:"application/csv;charset=utf-8;"});window.navigator.msSaveOrOpenBlob?navigator.msSaveOrOpenBlob(o,r+".csv"):UHn({name:r+".csv",src:URL.createObjectURL(o)})||(n="data:text/csv;charset=utf-8,"+n,window.open(encodeURI(n)))}function MR(n,r){if(n&&r){const o=l=>{n.classList?n.classList.remove(l):n.className=n.className.replace(new RegExp("(^|\\b)"+l.split(" ").join("|")+"(\\b|$)","gi")," ")};[r].flat().filter(Boolean).forEach(l=>l.split(" ").forEach(o))}}function Ojt(n="p-overflow-hidden"){const r=kL(/-scrollbar-width$/);r!=null&&r.name&&document.body.style.removeProperty(r.name),MR(document.body,n)}function BQt(n){let r={width:0,height:0};return n&&(n.style.visibility="hidden",n.style.display="block",r.width=n.offsetWidth,r.height=n.offsetHeight,n.style.display="none",n.style.visibility="visible"),r}function DWe(){let n=window,r=document,o=r.documentElement,l=r.getElementsByTagName("body")[0],u=n.innerWidth||o.clientWidth||l.clientWidth,d=n.innerHeight||o.clientHeight||l.clientHeight;return{width:u,height:d}}function VHn(){let n=document.documentElement;return(window.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}function zHn(){let n=document.documentElement;return(window.pageYOffset||n.scrollTop)-(n.clientTop||0)}function LWe(n,r,o=!0){var l,u,d,h;if(n){const w=n.offsetParent?{width:n.offsetWidth,height:n.offsetHeight}:BQt(n),v=w.height,y=w.width,E=r.offsetHeight,A=r.offsetWidth,C=r.getBoundingClientRect(),R=zHn(),O=VHn(),M=DWe();let L,H,G="top";C.top+E+v>M.height?(L=C.top+R-v,G="bottom",L<0&&(L=R)):L=E+C.top+R,C.left+y>M.width?H=Math.max(0,C.left+O+A-y):H=C.left+O,n.style.top=L+"px",n.style.left=H+"px",n.style.transformOrigin=G,o&&(n.style.marginTop=G==="bottom"?`calc(${(u=(l=kL(/-anchor-gutter$/))==null?void 0:l.value)!=null?u:"2px"} * -1)`:(h=(d=kL(/-anchor-gutter$/))==null?void 0:d.value)!=null?h:"")}}function RL(n,r){n&&(typeof r=="string"?n.style.cssText=r:Object.entries(r||{}).forEach(([o,l])=>n.style[o]=l))}function Kp(n,r){if(n instanceof HTMLElement){let o=n.offsetWidth;if(r){let l=getComputedStyle(n);o+=parseFloat(l.marginLeft)+parseFloat(l.marginRight)}return o}return 0}function KHn(n,r,o=!0){var l,u,d,h;if(n){const w=n.offsetParent?{width:n.offsetWidth,height:n.offsetHeight}:BQt(n),v=r.offsetHeight,y=r.getBoundingClientRect(),E=DWe();let A,C,R="top";y.top+v+w.height>E.height?(A=-1*w.height,R="bottom",y.top+A<0&&(A=-1*y.top)):A=v,w.width>E.width?C=y.left*-1:y.left+w.width>E.width?C=(y.left+w.width-E.width)*-1:C=0,n.style.top=A+"px",n.style.left=C+"px",n.style.transformOrigin=R,o&&(n.style.marginTop=R==="bottom"?`calc(${(u=(l=kL(/-anchor-gutter$/))==null?void 0:l.value)!=null?u:"2px"} * -1)`:(h=(d=kL(/-anchor-gutter$/))==null?void 0:d.value)!=null?h:"")}}function tj(n){return typeof HTMLElement=="object"?n instanceof HTMLElement:n&&typeof n=="object"&&n!==null&&n.nodeType===1&&typeof n.nodeName=="string"}function $fe(){if(window.getSelection){const n=window.getSelection()||{};n.empty?n.empty():n.removeAllRanges&&n.rangeCount>0&&n.getRangeAt(0).getClientRects().length>0&&n.removeAllRanges()}}function $de(n,r={}){if(tj(n)){const o=(l,u)=>{var d,h;const w=(d=n==null?void 0:n.$attrs)!=null&&d[l]?[(h=n==null?void 0:n.$attrs)==null?void 0:h[l]]:[];return[u].flat().reduce((v,y)=>{if(y!=null){const E=typeof y;if(E==="string"||E==="number")v.push(y);else if(E==="object"){const A=Array.isArray(y)?o(l,y):Object.entries(y).map(([C,R])=>l==="style"&&(R||R===0)?`${C.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${R}`:R?C:void 0);v=A.length?v.concat(A.filter(C=>!!C)):v}}return v},w)};Object.entries(r).forEach(([l,u])=>{if(u!=null){const d=l.match(/^on(.+)/);d?n.addEventListener(d[1].toLowerCase(),u):l==="p-bind"||l==="pBind"?$de(n,u):(u=l==="class"?[...new Set(o("class",u))].join(" ").trim():l==="style"?o("style",u).join(";").trim():u,(n.$attrs=n.$attrs||{})&&(n.$attrs[l]=u),n.setAttribute(l,u))}})}}function WQt(n,r={},...o){{const l=document.createElement(n);return $de(l,r),l.append(...o),l}}function gD(n,r){return tj(n)?Array.from(n.querySelectorAll(r)):[]}function pT(n,r){return tj(n)?n.matches(r)?n:n.querySelector(r):null}function Gp(n,r){n&&document.activeElement!==n&&n.focus(r)}function cp(n,r){if(tj(n)){const o=n.getAttribute(r);return isNaN(o)?o==="true"||o==="false"?o==="true":o:+o}}function jWe(n,r=""){let o=gD(n,`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}, [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}, input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}, select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}, textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}, [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}, - [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}`),l=[];for(let u of o)getComputedStyle(u).display!="none"&&getComputedStyle(u).visibility!="hidden"&&l.push(u);return l}function D8(n,r){const o=IWe(n,r);return o.length>0?o[0]:null}function oT(n){if(n){let r=n.offsetHeight,o=getComputedStyle(n);return r-=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom)+parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth),r}return 0}function FHn(n){if(n){n.style.visibility="hidden",n.style.display="block";let r=n.offsetHeight;return n.style.display="none",n.style.visibility="visible",r}return 0}function BHn(n){if(n){n.style.visibility="hidden",n.style.display="block";let r=n.offsetWidth;return n.style.display="none",n.style.visibility="visible",r}return 0}function PWe(n){if(n){let r=n.parentNode;return r&&r instanceof ShadowRoot&&r.host&&(r=r.host),r}return null}function Tfe(n){var r;if(n){let o=(r=PWe(n))==null?void 0:r.childNodes,l=0;if(o)for(let u=0;u0?o[o.length-1]:null}function OWe(n,r){let o=n.nextElementSibling;for(;o;){if(o.matches(r))return o;o=o.nextElementSibling}return null}function sT(n){if(n){let r=n.getBoundingClientRect();return{top:r.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:r.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:"auto",left:"auto"}}function BR(n,r){if(n){let o=n.offsetHeight;if(r){let l=getComputedStyle(n);o+=parseFloat(l.marginTop)+parseFloat(l.marginBottom)}return o}return 0}function jQt(n,r=[]){const o=PWe(n);return o===null?r:jQt(o,r.concat([o]))}function NWe(n,r){let o=n.previousElementSibling;for(;o;){if(o.matches(r))return o;o=o.previousElementSibling}return null}function WHn(n){let r=[];if(n){let o=jQt(n);const l=/(auto|scroll)/,u=d=>{try{let h=window.getComputedStyle(d,null);return l.test(h.getPropertyValue("overflow"))||l.test(h.getPropertyValue("overflowX"))||l.test(h.getPropertyValue("overflowY"))}catch{return!1}};for(let d of o){let h=d.nodeType===1&&d.dataset.scrollselectors;if(h){let w=h.split(",");for(let v of w){let y=pT(d,v);y&&u(y)&&r.push(y)}}d.nodeType!==9&&u(d)&&r.push(d)}}return r}function Ajt(){if(window.getSelection)return window.getSelection().toString();if(document.getSelection)return document.getSelection().toString()}function HHn(n){return!!(n!==null&&typeof n<"u"&&n.nodeName&&PWe(n))}function lT(n){if(n){let r=n.offsetWidth,o=getComputedStyle(n);return r-=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight)+parseFloat(o.borderLeftWidth)+parseFloat(o.borderRightWidth),r}return 0}function Tjt(n,r,o){n[r].apply(n,o)}function UHn(){return/(android)/i.test(navigator.userAgent)}function _7e(n){if(n){const r=n.nodeName,o=n.parentElement&&n.parentElement.nodeName;return r==="INPUT"||r==="TEXTAREA"||r==="BUTTON"||r==="A"||o==="INPUT"||o==="TEXTAREA"||o==="BUTTON"||o==="A"||!!n.closest(".p-button, .p-checkbox, .p-radiobutton")}return!1}function ope(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function $jt(n,r=""){return nj(n)?n.matches(`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}, + [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}`),l=[];for(let u of o)getComputedStyle(u).display!="none"&&getComputedStyle(u).visibility!="hidden"&&l.push(u);return l}function D8(n,r){const o=jWe(n,r);return o.length>0?o[0]:null}function oT(n){if(n){let r=n.offsetHeight,o=getComputedStyle(n);return r-=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom)+parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth),r}return 0}function qHn(n){if(n){n.style.visibility="hidden",n.style.display="block";let r=n.offsetHeight;return n.style.display="none",n.style.visibility="visible",r}return 0}function XHn(n){if(n){n.style.visibility="hidden",n.style.display="block";let r=n.offsetWidth;return n.style.display="none",n.style.visibility="visible",r}return 0}function FWe(n){if(n){let r=n.parentNode;return r&&r instanceof ShadowRoot&&r.host&&(r=r.host),r}return null}function Ife(n){var r;if(n){let o=(r=FWe(n))==null?void 0:r.childNodes,l=0;if(o)for(let u=0;u0?o[o.length-1]:null}function BWe(n,r){let o=n.nextElementSibling;for(;o;){if(o.matches(r))return o;o=o.nextElementSibling}return null}function sT(n){if(n){let r=n.getBoundingClientRect();return{top:r.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:r.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:"auto",left:"auto"}}function BR(n,r){if(n){let o=n.offsetHeight;if(r){let l=getComputedStyle(n);o+=parseFloat(l.marginTop)+parseFloat(l.marginBottom)}return o}return 0}function UQt(n,r=[]){const o=FWe(n);return o===null?r:UQt(o,r.concat([o]))}function WWe(n,r){let o=n.previousElementSibling;for(;o;){if(o.matches(r))return o;o=o.previousElementSibling}return null}function JHn(n){let r=[];if(n){let o=UQt(n);const l=/(auto|scroll)/,u=d=>{try{let h=window.getComputedStyle(d,null);return l.test(h.getPropertyValue("overflow"))||l.test(h.getPropertyValue("overflowX"))||l.test(h.getPropertyValue("overflowY"))}catch{return!1}};for(let d of o){let h=d.nodeType===1&&d.dataset.scrollselectors;if(h){let w=h.split(",");for(let v of w){let y=pT(d,v);y&&u(y)&&r.push(y)}}d.nodeType!==9&&u(d)&&r.push(d)}}return r}function Njt(){if(window.getSelection)return window.getSelection().toString();if(document.getSelection)return document.getSelection().toString()}function YHn(n){return!!(n!==null&&typeof n<"u"&&n.nodeName&&FWe(n))}function lT(n){if(n){let r=n.offsetWidth,o=getComputedStyle(n);return r-=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight)+parseFloat(o.borderLeftWidth)+parseFloat(o.borderRightWidth),r}return 0}function Mjt(n,r,o){n[r].apply(n,o)}function QHn(){return/(android)/i.test(navigator.userAgent)}function R7e(n){if(n){const r=n.nodeName,o=n.parentElement&&n.parentElement.nodeName;return r==="INPUT"||r==="TEXTAREA"||r==="BUTTON"||r==="A"||o==="INPUT"||o==="TEXTAREA"||o==="BUTTON"||o==="A"||!!n.closest(".p-button, .p-checkbox, .p-radiobutton")}return!1}function ape(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Djt(n,r=""){return tj(n)?n.matches(`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}, [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}, input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}, select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}, textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}, [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}, - [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}`):!1}function Ade(n){return!!(n&&n.offsetParent!=null)}function FQt(n){return n?getComputedStyle(n).direction==="rtl":!1}function MWe(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}function JX(n,r="",o){nj(n)&&o!==null&&o!==void 0&&n.setAttribute(r,o)}var Jce={};function DWe(n="pui_id_"){return Jce.hasOwnProperty(n)||(Jce[n]=0),Jce[n]++,`${n}${Jce[n]}`}function GHn(){let n=[];const r=(h,w,v=999)=>{const y=u(h,w,v),E=y.value+(y.key===h?0:v)+1;return n.push({key:h,value:E}),E},o=h=>{n=n.filter(w=>w.value!==h)},l=(h,w)=>u(h).value,u=(h,w,v=0)=>[...n].reverse().find(y=>!0)||{key:h,value:v},d=h=>h&&parseInt(h.style.zIndex,10)||0;return{get:d,set:(h,w,v)=>{w&&(w.style.zIndex=String(r(h,!0,v)))},clear:h=>{h&&(o(d(h)),h.style.zIndex="")},getCurrent:h=>l(h)}}var nv=GHn(),pf={STARTS_WITH:"startsWith",CONTAINS:"contains",NOT_CONTAINS:"notContains",ENDS_WITH:"endsWith",EQUALS:"equals",NOT_EQUALS:"notEquals",IN:"in",LESS_THAN:"lt",LESS_THAN_OR_EQUAL_TO:"lte",GREATER_THAN:"gt",GREATER_THAN_OR_EQUAL_TO:"gte",BETWEEN:"between",DATE_IS:"dateIs",DATE_IS_NOT:"dateIsNot",DATE_BEFORE:"dateBefore",DATE_AFTER:"dateAfter"},Tde={AND:"and",OR:"or"};function Ijt(n,r){var o=typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(!o){if(Array.isArray(n)||(o=VHn(n))||r){o&&(n=o);var l=0,u=function(){};return{s:u,n:function(){return l>=n.length?{done:!0}:{done:!1,value:n[l++]}},e:function(y){throw y},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d,h=!0,w=!1;return{s:function(){o=o.call(n)},n:function(){var y=o.next();return h=y.done,y},e:function(y){w=!0,d=y},f:function(){try{h||o.return==null||o.return()}finally{if(w)throw d}}}}function VHn(n,r){if(n){if(typeof n=="string")return Pjt(n,r);var o={}.toString.call(n).slice(8,-1);return o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set"?Array.from(n):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Pjt(n,r):void 0}}function Pjt(n,r){(r==null||r>n.length)&&(r=n.length);for(var o=0,l=Array(r);oo.getTime():r>o},gte:function(r,o){return o==null?!0:r==null?!1:r.getTime&&o.getTime?r.getTime()>=o.getTime():r>=o},dateIs:function(r,o){return o==null?!0:r==null?!1:r.toDateString()===o.toDateString()},dateIsNot:function(r,o){return o==null?!0:r==null?!1:r.toDateString()!==o.toDateString()},dateBefore:function(r,o){return o==null?!0:r==null?!1:r.getTime()o.getTime()}},register:function(r,o){this.filters[r]=o}};function Hq(n){"@babel/helpers - typeof";return Hq=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Hq(n)}function Ojt(n,r){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);r&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable})),o.push.apply(o,l)}return o}function Njt(n){for(var r=1;r1&&arguments[1]!==void 0?arguments[1]:!0;NT()?sm(n):r?n():RS(n)}var JHn=0;function YHn(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=Fo(!1),l=Fo(n),u=Fo(null),d=ope()?window.document:void 0,h=r.document,w=h===void 0?d:h,v=r.immediate,y=v===void 0?!0:v,E=r.manual,A=E===void 0?!1:E,C=r.name,R=C===void 0?"style_".concat(++JHn):C,O=r.id,M=O===void 0?void 0:O,L=r.media,H=L===void 0?void 0:L,G=r.nonce,j=G===void 0?void 0:G,Q=r.first,te=Q===void 0?!1:Q,pe=r.onMounted,Le=pe===void 0?void 0:pe,Ee=r.onUpdated,le=Ee===void 0?void 0:Ee,xe=r.onLoad,be=xe===void 0?void 0:xe,ae=r.props,F=ae===void 0?{}:ae,me=function(){},ye=function(He){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(w){var Ge=Njt(Njt({},F),Ue),Me=Ge.name||R,vt=Ge.id||M,re=Ge.nonce||j;u.value=w.querySelector('style[data-primevue-style-id="'.concat(Me,'"]'))||w.getElementById(vt)||w.createElement("style"),u.value.isConnected||(l.value=He||n,Cde(u.value,{type:"text/css",id:vt,media:H,nonce:re}),te?w.head.prepend(u.value):w.head.appendChild(u.value),JX(u.value,"data-primevue-style-id",Me),Cde(u.value,Ge),u.value.onload=function(Te){return be==null?void 0:be(Te,{name:Me})},Le==null||Le(Me)),!o.value&&(me=Zs(l,function(Te){u.value.textContent=Te,le==null||le(Me)},{immediate:!0}),o.value=!0)}},we=function(){!w||!o.value||(me(),HHn(u.value)&&w.head.removeChild(u.value),o.value=!1)};return y&&!A&&XHn(ye),{id:M,name:R,el:u,css:l,unload:we,load:ye,isLoaded:zX(o)}}function Uq(n){"@babel/helpers - typeof";return Uq=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Uq(n)}function Mjt(n,r){return tUn(n)||eUn(n,r)||ZHn(n,r)||QHn()}function QHn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZHn(n,r){if(n){if(typeof n=="string")return Djt(n,r);var o={}.toString.call(n).slice(8,-1);return o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set"?Array.from(n):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Djt(n,r):void 0}}function Djt(n,r){(r==null||r>n.length)&&(r=n.length);for(var o=0,l=Array(r);o0||navigator.msMaxTouchPoints>0}function JX(n,r="",o){tj(n)&&o!==null&&o!==void 0&&n.setAttribute(r,o)}var Qce={};function UWe(n="pui_id_"){return Qce.hasOwnProperty(n)||(Qce[n]=0),Qce[n]++,`${n}${Qce[n]}`}function ZHn(){let n=[];const r=(h,w,v=999)=>{const y=u(h,w,v),E=y.value+(y.key===h?0:v)+1;return n.push({key:h,value:E}),E},o=h=>{n=n.filter(w=>w.value!==h)},l=(h,w)=>u(h).value,u=(h,w,v=0)=>[...n].reverse().find(y=>!0)||{key:h,value:v},d=h=>h&&parseInt(h.style.zIndex,10)||0;return{get:d,set:(h,w,v)=>{w&&(w.style.zIndex=String(r(h,!0,v)))},clear:h=>{h&&(o(d(h)),h.style.zIndex="")},getCurrent:h=>l(h)}}var tv=ZHn(),pf={STARTS_WITH:"startsWith",CONTAINS:"contains",NOT_CONTAINS:"notContains",ENDS_WITH:"endsWith",EQUALS:"equals",NOT_EQUALS:"notEquals",IN:"in",LESS_THAN:"lt",LESS_THAN_OR_EQUAL_TO:"lte",GREATER_THAN:"gt",GREATER_THAN_OR_EQUAL_TO:"gte",BETWEEN:"between",DATE_IS:"dateIs",DATE_IS_NOT:"dateIsNot",DATE_BEFORE:"dateBefore",DATE_AFTER:"dateAfter"},Pde={AND:"and",OR:"or"};function Ljt(n,r){var o=typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(!o){if(Array.isArray(n)||(o=eUn(n))||r){o&&(n=o);var l=0,u=function(){};return{s:u,n:function(){return l>=n.length?{done:!0}:{done:!1,value:n[l++]}},e:function(y){throw y},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d,h=!0,w=!1;return{s:function(){o=o.call(n)},n:function(){var y=o.next();return h=y.done,y},e:function(y){w=!0,d=y},f:function(){try{h||o.return==null||o.return()}finally{if(w)throw d}}}}function eUn(n,r){if(n){if(typeof n=="string")return jjt(n,r);var o={}.toString.call(n).slice(8,-1);return o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set"?Array.from(n):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?jjt(n,r):void 0}}function jjt(n,r){(r==null||r>n.length)&&(r=n.length);for(var o=0,l=Array(r);oo.getTime():r>o},gte:function(r,o){return o==null?!0:r==null?!1:r.getTime&&o.getTime?r.getTime()>=o.getTime():r>=o},dateIs:function(r,o){return o==null?!0:r==null?!1:r.toDateString()===o.toDateString()},dateIsNot:function(r,o){return o==null?!0:r==null?!1:r.toDateString()!==o.toDateString()},dateBefore:function(r,o){return o==null?!0:r==null?!1:r.getTime()o.getTime()}},register:function(r,o){this.filters[r]=o}};function Wq(n){"@babel/helpers - typeof";return Wq=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Wq(n)}function Fjt(n,r){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);r&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable})),o.push.apply(o,l)}return o}function Bjt(n){for(var r=1;r1&&arguments[1]!==void 0?arguments[1]:!0;NT()?av(n):r?n():RS(n)}var oUn=0;function sUn(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=Fo(!1),l=Fo(n),u=Fo(null),d=ape()?window.document:void 0,h=r.document,w=h===void 0?d:h,v=r.immediate,y=v===void 0?!0:v,E=r.manual,A=E===void 0?!1:E,C=r.name,R=C===void 0?"style_".concat(++oUn):C,O=r.id,M=O===void 0?void 0:O,L=r.media,H=L===void 0?void 0:L,G=r.nonce,j=G===void 0?void 0:G,Q=r.first,te=Q===void 0?!1:Q,pe=r.onMounted,De=pe===void 0?void 0:pe,Re=r.onUpdated,le=Re===void 0?void 0:Re,xe=r.onLoad,be=xe===void 0?void 0:xe,ae=r.props,F=ae===void 0?{}:ae,me=function(){},ye=function(He){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(w){var Ge=Bjt(Bjt({},F),Ue),Le=Ge.name||R,ft=Ge.id||M,re=Ge.nonce||j;u.value=w.querySelector('style[data-primevue-style-id="'.concat(Le,'"]'))||w.getElementById(ft)||w.createElement("style"),u.value.isConnected||(l.value=He||n,$de(u.value,{type:"text/css",id:ft,media:H,nonce:re}),te?w.head.prepend(u.value):w.head.appendChild(u.value),JX(u.value,"data-primevue-style-id",Le),$de(u.value,Ge),u.value.onload=function(Te){return be==null?void 0:be(Te,{name:Le})},De==null||De(Le)),!o.value&&(me=Zs(l,function(Te){u.value.textContent=Te,le==null||le(Le)},{immediate:!0}),o.value=!0)}},we=function(){!w||!o.value||(me(),YHn(u.value)&&w.head.removeChild(u.value),o.value=!1)};return y&&!A&&iUn(ye),{id:M,name:R,el:u,css:l,unload:we,load:ye,isLoaded:zX(o)}}function Hq(n){"@babel/helpers - typeof";return Hq=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Hq(n)}function Wjt(n,r){return uUn(n)||cUn(n,r)||aUn(n,r)||lUn()}function lUn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aUn(n,r){if(n){if(typeof n=="string")return Hjt(n,r);var o={}.toString.call(n).slice(8,-1);return o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set"?Array.from(n):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Hjt(n,r):void 0}}function Hjt(n,r){(r==null||r>n.length)&&(r=n.length);for(var o=0,l=Array(r);o1&&arguments[1]!==void 0?arguments[1]:{},l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(d){return d},u=l(Qy(r,{dt:tq}));return ks(u)?YHn(eq(u),S7e({name:this.name},o)):{}},loadCSS:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.load(this.css,r)},loadTheme:function(){var r=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return this.load(this.theme,o,function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return oc.transformCSS(o.name||r.name,"".concat(u).concat(l))})},getCommonTheme:function(r){return oc.getCommon(this.name,r)},getComponentTheme:function(r){return oc.getComponent(this.name,r)},getDirectiveTheme:function(r){return oc.getDirective(this.name,r)},getPresetTheme:function(r,o,l){return oc.getCustomPreset(this.name,r,o,l)},getLayerOrderThemeCSS:function(){return oc.getLayerOrderCSS(this.name)},getStyleSheet:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.css){var l=Qy(this.css,{dt:tq})||"",u=eq("".concat(l).concat(r)),d=Object.entries(o).reduce(function(h,w){var v=Mjt(w,2),y=v[0],E=v[1];return h.push("".concat(y,'="').concat(E,'"'))&&h},[]).join(" ");return ks(u)?'"):""}return""},getCommonThemeStyleSheet:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return oc.getCommonStyleSheet(this.name,r,o)},getThemeStyleSheet:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=[oc.getStyleSheet(this.name,r,o)];if(this.theme){var u=this.name==="base"?"global-style":"".concat(this.name,"-style"),d=Qy(this.theme,{dt:tq}),h=eq(oc.transformCSS(u,d)),w=Object.entries(o).reduce(function(v,y){var E=Mjt(y,2),A=E[0],C=E[1];return v.push("".concat(A,'="').concat(C,'"'))&&v},[]).join(" ");ks(h)&&l.push('"))}return l.join("")},extend:function(r){return S7e(S7e({},this),{},{css:void 0,theme:void 0},r)}},DD=AWe();function Gq(n){"@babel/helpers - typeof";return Gq=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Gq(n)}function jjt(n,r){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);r&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable})),o.push.apply(o,l)}return o}function Yce(n){for(var r=1;rn.length)&&(r=n.length);for(var o=0,l=Array(r);o1?o-1:0),u=1;u0&&arguments[0]!==void 0?arguments[0]:function(){};aT.clearLoadedStyleNames(),gS.on("theme:change",r)},_getHostInstance:function(r){return r?this.$options.hostName?r.$.type.name===this.$options.hostName?r:this._getHostInstance(r.$parentInstance):r.$parentInstance:void 0},_getPropValue:function(r){var o;return this[r]||((o=this._getHostInstance(this))===null||o===void 0?void 0:o[r])},_getOptionValue:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return CWe(r,o,l)},_getPTValue:function(){var r,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,h=/./g.test(l)&&!!u[l.split(".")[0]],w=this._getPropValue("ptOptions")||((r=this.$primevueConfig)===null||r===void 0?void 0:r.ptOptions)||{},v=w.mergeSections,y=v===void 0?!0:v,E=w.mergeProps,A=E===void 0?!1:E,C=d?h?this._useGlobalPT(this._getPTClassValue,l,u):this._useDefaultPT(this._getPTClassValue,l,u):void 0,R=h?void 0:this._getPTSelf(o,this._getPTClassValue,l,jl(jl({},u),{},{global:C||{}})),O=this._getPTDatasets(l);return y||!y&&R?A?this._mergeProps(A,C,R,O):jl(jl(jl({},C),R),O):jl(jl({},R),O)},_getPTSelf:function(){for(var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length,l=new Array(o>1?o-1:0),u=1;u0&&arguments[0]!==void 0?arguments[0]:"",u="data-pc-",d=l==="root"&&ks((r=this.pt)===null||r===void 0?void 0:r["data-pc-section"]);return l!=="transition"&&jl(jl({},l==="root"&&jl(jl(SK({},"".concat(u,"name"),wS(d?(o=this.pt)===null||o===void 0?void 0:o["data-pc-section"]:this.$.type.name)),d&&SK({},"".concat(u,"extend"),wS(this.$.type.name))),ope()&&SK({},"".concat(this.$attrSelector),""))),{},SK({},"".concat(u,"section"),wS(l)))},_getPTClassValue:function(){var r=this._getOptionValue.apply(this,arguments);return R0(r)||XX(r)?{class:r}:r},_getPT:function(r){var o=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",u=arguments.length>2?arguments[2]:void 0,d=function(w){var v,y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,E=u?u(w):w,A=wS(l),C=wS(o.$name);return(v=y?A!==C?E==null?void 0:E[A]:void 0:E==null?void 0:E[A])!==null&&v!==void 0?v:E};return r!=null&&r.hasOwnProperty("_usept")?{_usept:r._usept,originalValue:d(r.originalValue),value:d(r.value)}:d(r,!0)},_usePT:function(r,o,l,u){var d=function(M){return o(M,l,u)};if(r!=null&&r.hasOwnProperty("_usept")){var h,w=r._usept||((h=this.$primevueConfig)===null||h===void 0?void 0:h.ptOptions)||{},v=w.mergeSections,y=v===void 0?!0:v,E=w.mergeProps,A=E===void 0?!1:E,C=d(r.originalValue),R=d(r.value);return C===void 0&&R===void 0?void 0:R0(R)?R:R0(C)?C:y||!y&&R?A?this._mergeProps(A,C,R):jl(jl({},C),R):R}return d(r)},_useGlobalPT:function(r,o,l){return this._usePT(this.globalPT,r,o,l)},_useDefaultPT:function(r,o,l){return this._usePT(this.defaultPT,r,o,l)},ptm:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._getPTValue(this.pt,r,jl(jl({},this.$params),o))},ptmi:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Et(this.$_attrsWithoutPT,this.ptm(r,o))},ptmo:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._getPTValue(r,o,jl({instance:this},l),!1)},cx:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,r,jl(jl({},this.$params),o))},sx:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(o){var u=this._getOptionValue(this.$style.inlineStyles,r,jl(jl({},this.$params),l)),d=this._getOptionValue(Wjt.inlineStyles,r,jl(jl({},this.$params),l));return[d,u]}}},computed:{globalPT:function(){var r,o=this;return this._getPT((r=this.$primevueConfig)===null||r===void 0?void 0:r.pt,void 0,function(l){return Qy(l,{instance:o})})},defaultPT:function(){var r,o=this;return this._getPT((r=this.$primevueConfig)===null||r===void 0?void 0:r.pt,void 0,function(l){return o._getOptionValue(l,o.$name,jl({},o.$params))||Qy(l,jl({},o.$params))})},isUnstyled:function(){var r;return this.unstyled!==void 0?this.unstyled:(r=this.$primevueConfig)===null||r===void 0?void 0:r.unstyled},$inProps:function(){var r,o=Object.keys(((r=this.$.vnode)===null||r===void 0?void 0:r.props)||{});return Object.fromEntries(Object.entries(this.$props).filter(function(l){var u=Xz(l,1),d=u[0];return o==null?void 0:o.includes(d)}))},$theme:function(){var r;return(r=this.$primevueConfig)===null||r===void 0?void 0:r.theme},$style:function(){return jl(jl({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$styleOptions:function(){var r;return{nonce:(r=this.$primevueConfig)===null||r===void 0||(r=r.csp)===null||r===void 0?void 0:r.nonce}},$primevueConfig:function(){var r;return(r=this.$primevue)===null||r===void 0?void 0:r.config},$name:function(){return this.$options.hostName||this.$.type.name},$params:function(){var r=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:r,props:r==null?void 0:r.$props,state:r==null?void 0:r.$data,attrs:r==null?void 0:r.$attrs}}},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(r){var o=Xz(r,1),l=o[0];return l==null?void 0:l.startsWith("pt:")}).reduce(function(r,o){var l=Xz(o,2),u=l[0],d=l[1],h=u.split(":"),w=iVn(h),v=w.slice(1);return v==null||v.reduce(function(y,E,A,C){return!y[E]&&(y[E]=A===C.length-1?d:{}),y[E]},r),r},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(r){var o=Xz(r,1),l=o[0];return!(l!=null&&l.startsWith("pt:"))}).reduce(function(r,o){var l=Xz(o,2),u=l[0],d=l[1];return r[u]=d,r},{})}}},cVn=function(r){var o=r.dt;return` +`)},gUn={},wUn={},Bs={name:"base",css:bUn,theme:pUn,classes:gUn,inlineStyles:wUn,load:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(d){return d},u=l(Yy(r,{dt:eq}));return ks(u)?sUn(ZK(u),x7e({name:this.name},o)):{}},loadCSS:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.load(this.css,r)},loadTheme:function(){var r=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return this.load(this.theme,o,function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return oc.transformCSS(o.name||r.name,"".concat(u).concat(l))})},getCommonTheme:function(r){return oc.getCommon(this.name,r)},getComponentTheme:function(r){return oc.getComponent(this.name,r)},getDirectiveTheme:function(r){return oc.getDirective(this.name,r)},getPresetTheme:function(r,o,l){return oc.getCustomPreset(this.name,r,o,l)},getLayerOrderThemeCSS:function(){return oc.getLayerOrderCSS(this.name)},getStyleSheet:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.css){var l=Yy(this.css,{dt:eq})||"",u=ZK("".concat(l).concat(r)),d=Object.entries(o).reduce(function(h,w){var v=Wjt(w,2),y=v[0],E=v[1];return h.push("".concat(y,'="').concat(E,'"'))&&h},[]).join(" ");return ks(u)?'"):""}return""},getCommonThemeStyleSheet:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return oc.getCommonStyleSheet(this.name,r,o)},getThemeStyleSheet:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=[oc.getStyleSheet(this.name,r,o)];if(this.theme){var u=this.name==="base"?"global-style":"".concat(this.name,"-style"),d=Yy(this.theme,{dt:eq}),h=ZK(oc.transformCSS(u,d)),w=Object.entries(o).reduce(function(v,y){var E=Wjt(y,2),A=E[0],C=E[1];return v.push("".concat(A,'="').concat(C,'"'))&&v},[]).join(" ");ks(h)&&l.push('"))}return l.join("")},extend:function(r){return x7e(x7e({},this),{},{css:void 0,theme:void 0},r)}},MD=MWe();function Uq(n){"@babel/helpers - typeof";return Uq=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Uq(n)}function Gjt(n,r){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);r&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable})),o.push.apply(o,l)}return o}function Zce(n){for(var r=1;rn.length)&&(r=n.length);for(var o=0,l=Array(r);o1?o-1:0),u=1;u0&&arguments[0]!==void 0?arguments[0]:function(){};aT.clearLoadedStyleNames(),gS.on("theme:change",r)},_getHostInstance:function(r){return r?this.$options.hostName?r.$.type.name===this.$options.hostName?r:this._getHostInstance(r.$parentInstance):r.$parentInstance:void 0},_getPropValue:function(r){var o;return this[r]||((o=this._getHostInstance(this))===null||o===void 0?void 0:o[r])},_getOptionValue:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return NWe(r,o,l)},_getPTValue:function(){var r,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,h=/./g.test(l)&&!!u[l.split(".")[0]],w=this._getPropValue("ptOptions")||((r=this.$primevueConfig)===null||r===void 0?void 0:r.ptOptions)||{},v=w.mergeSections,y=v===void 0?!0:v,E=w.mergeProps,A=E===void 0?!1:E,C=d?h?this._useGlobalPT(this._getPTClassValue,l,u):this._useDefaultPT(this._getPTClassValue,l,u):void 0,R=h?void 0:this._getPTSelf(o,this._getPTClassValue,l,jl(jl({},u),{},{global:C||{}})),O=this._getPTDatasets(l);return y||!y&&R?A?this._mergeProps(A,C,R,O):jl(jl(jl({},C),R),O):jl(jl({},R),O)},_getPTSelf:function(){for(var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length,l=new Array(o>1?o-1:0),u=1;u0&&arguments[0]!==void 0?arguments[0]:"",u="data-pc-",d=l==="root"&&ks((r=this.pt)===null||r===void 0?void 0:r["data-pc-section"]);return l!=="transition"&&jl(jl({},l==="root"&&jl(jl(_K({},"".concat(u,"name"),wS(d?(o=this.pt)===null||o===void 0?void 0:o["data-pc-section"]:this.$.type.name)),d&&_K({},"".concat(u,"extend"),wS(this.$.type.name))),ape()&&_K({},"".concat(this.$attrSelector),""))),{},_K({},"".concat(u,"section"),wS(l)))},_getPTClassValue:function(){var r=this._getOptionValue.apply(this,arguments);return R0(r)||XX(r)?{class:r}:r},_getPT:function(r){var o=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",u=arguments.length>2?arguments[2]:void 0,d=function(w){var v,y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,E=u?u(w):w,A=wS(l),C=wS(o.$name);return(v=y?A!==C?E==null?void 0:E[A]:void 0:E==null?void 0:E[A])!==null&&v!==void 0?v:E};return r!=null&&r.hasOwnProperty("_usept")?{_usept:r._usept,originalValue:d(r.originalValue),value:d(r.value)}:d(r,!0)},_usePT:function(r,o,l,u){var d=function(M){return o(M,l,u)};if(r!=null&&r.hasOwnProperty("_usept")){var h,w=r._usept||((h=this.$primevueConfig)===null||h===void 0?void 0:h.ptOptions)||{},v=w.mergeSections,y=v===void 0?!0:v,E=w.mergeProps,A=E===void 0?!1:E,C=d(r.originalValue),R=d(r.value);return C===void 0&&R===void 0?void 0:R0(R)?R:R0(C)?C:y||!y&&R?A?this._mergeProps(A,C,R):jl(jl({},C),R):R}return d(r)},_useGlobalPT:function(r,o,l){return this._usePT(this.globalPT,r,o,l)},_useDefaultPT:function(r,o,l){return this._usePT(this.defaultPT,r,o,l)},ptm:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._getPTValue(this.pt,r,jl(jl({},this.$params),o))},ptmi:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Et(this.$_attrsWithoutPT,this.ptm(r,o))},ptmo:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._getPTValue(r,o,jl({instance:this},l),!1)},cx:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,r,jl(jl({},this.$params),o))},sx:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(o){var u=this._getOptionValue(this.$style.inlineStyles,r,jl(jl({},this.$params),l)),d=this._getOptionValue(Kjt.inlineStyles,r,jl(jl({},this.$params),l));return[d,u]}}},computed:{globalPT:function(){var r,o=this;return this._getPT((r=this.$primevueConfig)===null||r===void 0?void 0:r.pt,void 0,function(l){return Yy(l,{instance:o})})},defaultPT:function(){var r,o=this;return this._getPT((r=this.$primevueConfig)===null||r===void 0?void 0:r.pt,void 0,function(l){return o._getOptionValue(l,o.$name,jl({},o.$params))||Yy(l,jl({},o.$params))})},isUnstyled:function(){var r;return this.unstyled!==void 0?this.unstyled:(r=this.$primevueConfig)===null||r===void 0?void 0:r.unstyled},$inProps:function(){var r,o=Object.keys(((r=this.$.vnode)===null||r===void 0?void 0:r.props)||{});return Object.fromEntries(Object.entries(this.$props).filter(function(l){var u=qz(l,1),d=u[0];return o==null?void 0:o.includes(d)}))},$theme:function(){var r;return(r=this.$primevueConfig)===null||r===void 0?void 0:r.theme},$style:function(){return jl(jl({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$styleOptions:function(){var r;return{nonce:(r=this.$primevueConfig)===null||r===void 0||(r=r.csp)===null||r===void 0?void 0:r.nonce}},$primevueConfig:function(){var r;return(r=this.$primevue)===null||r===void 0?void 0:r.config},$name:function(){return this.$options.hostName||this.$.type.name},$params:function(){var r=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:r,props:r==null?void 0:r.$props,state:r==null?void 0:r.$data,attrs:r==null?void 0:r.$attrs}}},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(r){var o=qz(r,1),l=o[0];return l==null?void 0:l.startsWith("pt:")}).reduce(function(r,o){var l=qz(o,2),u=l[0],d=l[1],h=u.split(":"),w=hVn(h),v=w.slice(1);return v==null||v.reduce(function(y,E,A,C){return!y[E]&&(y[E]=A===C.length-1?d:{}),y[E]},r),r},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(r){var o=qz(r,1),l=o[0];return!(l!=null&&l.startsWith("pt:"))}).reduce(function(r,o){var l=qz(o,2),u=l[0],d=l[1];return r[u]=d,r},{})}}},mVn=function(r){var o=r.dt;return` .p-toolbar { display: flex; align-items: center; @@ -192,7 +192,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho display: flex; align-items: center; } -`)},uVn={root:"p-toolbar p-component",start:"p-toolbar-start",center:"p-toolbar-center",end:"p-toolbar-end"},fVn=Bs.extend({name:"toolbar",theme:cVn,classes:uVn}),dVn={name:"BaseToolbar",extends:Kl,props:{ariaLabelledby:{type:String,default:null}},style:fVn,provide:function(){return{$pcToolbar:this,$parentInstance:this}}},UQt={name:"Toolbar",extends:dVn,inheritAttrs:!1},hVn=["aria-labelledby"];function pVn(n,r,o,l,u,d){return ze(),Lt("div",Et({class:n.cx("root"),role:"toolbar","aria-labelledby":n.ariaLabelledby},n.ptmi("root")),[mr("div",Et({class:n.cx("start")},n.ptm("start")),[Vr(n.$slots,"start")],16),mr("div",Et({class:n.cx("center")},n.ptm("center")),[Vr(n.$slots,"center")],16),mr("div",Et({class:n.cx("end")},n.ptm("end")),[Vr(n.$slots,"end")],16)],16,hVn)}UQt.render=pVn;var bVn=` +`)},yVn={root:"p-toolbar p-component",start:"p-toolbar-start",center:"p-toolbar-center",end:"p-toolbar-end"},vVn=Bs.extend({name:"toolbar",theme:mVn,classes:yVn}),_Vn={name:"BaseToolbar",extends:Kl,props:{ariaLabelledby:{type:String,default:null}},style:vVn,provide:function(){return{$pcToolbar:this,$parentInstance:this}}},qQt={name:"Toolbar",extends:_Vn,inheritAttrs:!1},SVn=["aria-labelledby"];function EVn(n,r,o,l,u,d){return ze(),jt("div",Et({class:n.cx("root"),role:"toolbar","aria-labelledby":n.ariaLabelledby},n.ptmi("root")),[mr("div",Et({class:n.cx("start")},n.ptm("start")),[Vr(n.$slots,"start")],16),mr("div",Et({class:n.cx("center")},n.ptm("center")),[Vr(n.$slots,"center")],16),mr("div",Et({class:n.cx("end")},n.ptm("end")),[Vr(n.$slots,"end")],16)],16,SVn)}qQt.render=EVn;var kVn=` .p-icon { display: inline-block; vertical-align: baseline; @@ -224,7 +224,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho transform: rotate(359deg); } } -`,gVn=Bs.extend({name:"baseicon",css:bVn});function Kq(n){"@babel/helpers - typeof";return Kq=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Kq(n)}function Gjt(n,r){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);r&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable})),o.push.apply(o,l)}return o}function Vjt(n){for(var r=1;rn.length)&&(r=n.length);for(var o=0,l=Array(r);o0&&arguments[0]!==void 0?arguments[0]:{},u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},w=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,v=function(){var G=cl._getOptionValue.apply(cl,arguments);return R0(G)||XX(G)?{class:G}:G},y=((r=l.binding)===null||r===void 0||(r=r.value)===null||r===void 0?void 0:r.ptOptions)||((o=l.$primevueConfig)===null||o===void 0?void 0:o.ptOptions)||{},E=y.mergeSections,A=E===void 0?!0:E,C=y.mergeProps,R=C===void 0?!1:C,O=w?cl._useDefaultPT(l,l.defaultPT(),v,d,h):void 0,M=cl._usePT(l,cl._getPT(u,l.$name),v,d,la(la({},h),{},{global:O||{}})),L=cl._getPTDatasets(l,d);return A||!A&&M?R?cl._mergeProps(l,R,O,M,L):la(la(la({},O),M),L):la(la({},M),L)},_getPTDatasets:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",l="data-pc-";return la(la({},o==="root"&&ILe({},"".concat(l,"name"),wS(r.$name))),{},ILe({},"".concat(l,"section"),wS(o)))},_getPT:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",l=arguments.length>2?arguments[2]:void 0,u=function(h){var w,v=l?l(h):h,y=wS(o);return(w=v==null?void 0:v[y])!==null&&w!==void 0?w:v};return r!=null&&r.hasOwnProperty("_usept")?{_usept:r._usept,originalValue:u(r.originalValue),value:u(r.value)}:u(r)},_usePT:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0,l=arguments.length>2?arguments[2]:void 0,u=arguments.length>3?arguments[3]:void 0,d=arguments.length>4?arguments[4]:void 0,h=function(L){return l(L,u,d)};if(o!=null&&o.hasOwnProperty("_usept")){var w,v=o._usept||((w=r.$primevueConfig)===null||w===void 0?void 0:w.ptOptions)||{},y=v.mergeSections,E=y===void 0?!0:y,A=v.mergeProps,C=A===void 0?!1:A,R=h(o.originalValue),O=h(o.value);return R===void 0&&O===void 0?void 0:R0(O)?O:R0(R)?R:E||!E&&O?C?cl._mergeProps(r,C,R,O):la(la({},R),O):O}return h(o)},_useDefaultPT:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments.length>2?arguments[2]:void 0,u=arguments.length>3?arguments[3]:void 0,d=arguments.length>4?arguments[4]:void 0;return cl._usePT(r,o,l,u,d)},_loadStyles:function(r,o,l){var u,d=cl._getConfig(o,l),h={nonce:d==null||(u=d.csp)===null||u===void 0?void 0:u.nonce};cl._loadCoreStyles(r.$instance,h),cl._loadThemeStyles(r.$instance,h),cl._loadScopedThemeStyles(r.$instance,h),cl._themeChangeListener(function(){return cl._loadThemeStyles(r.$instance,h)})},_loadCoreStyles:function(){var r,o,l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0;if(!aT.isStyleNameLoaded((r=l.$style)===null||r===void 0?void 0:r.name)&&(o=l.$style)!==null&&o!==void 0&&o.name){var d;Bs.loadCSS(u),(d=l.$style)===null||d===void 0||d.loadCSS(u),aT.setLoadedStyleName(l.$style.name)}},_loadThemeStyles:function(){var r,o,l,u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=arguments.length>1?arguments[1]:void 0;if(!(u!=null&&u.isUnstyled()||(u==null||(r=u.theme)===null||r===void 0?void 0:r.call(u))==="none")){if(!oc.isStyleNameLoaded("common")){var h,w,v=((h=u.$style)===null||h===void 0||(w=h.getCommonTheme)===null||w===void 0?void 0:w.call(h))||{},y=v.primitive,E=v.semantic,A=v.global,C=v.style;Bs.load(y==null?void 0:y.css,la({name:"primitive-variables"},d)),Bs.load(E==null?void 0:E.css,la({name:"semantic-variables"},d)),Bs.load(A==null?void 0:A.css,la({name:"global-variables"},d)),Bs.loadTheme(la({name:"global-style"},d),C),oc.setLoadedStyleName("common")}if(!oc.isStyleNameLoaded((o=u.$style)===null||o===void 0?void 0:o.name)&&(l=u.$style)!==null&&l!==void 0&&l.name){var R,O,M,L,H=((R=u.$style)===null||R===void 0||(O=R.getDirectiveTheme)===null||O===void 0?void 0:O.call(R))||{},G=H.css,j=H.style;(M=u.$style)===null||M===void 0||M.load(G,la({name:"".concat(u.$style.name,"-variables")},d)),(L=u.$style)===null||L===void 0||L.loadTheme(la({name:"".concat(u.$style.name,"-style")},d),j),oc.setLoadedStyleName(u.$style.name)}if(!oc.isStyleNameLoaded("layer-order")){var Q,te,pe=(Q=u.$style)===null||Q===void 0||(te=Q.getLayerOrderThemeCSS)===null||te===void 0?void 0:te.call(Q);Bs.load(pe,la({name:"layer-order",first:!0},d)),oc.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0,l=r.preset();if(l&&r.$attrSelector){var u,d,h,w=((u=r.$style)===null||u===void 0||(d=u.getPresetTheme)===null||d===void 0?void 0:d.call(u,l,"[".concat(r.$attrSelector,"]")))||{},v=w.css,y=(h=r.$style)===null||h===void 0?void 0:h.load(v,la({name:"".concat(r.$attrSelector,"-").concat(r.$style.name)},o));r.scopedStyleEl=y.el}},_themeChangeListener:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};aT.clearLoadedStyleNames(),gS.on("theme:change",r)},_hook:function(r,o,l,u,d,h){var w,v,y="on".concat(_Hn(o)),E=cl._getConfig(u,d),A=l==null?void 0:l.$instance,C=cl._usePT(A,cl._getPT(u==null||(w=u.value)===null||w===void 0?void 0:w.pt,r),cl._getOptionValue,"hooks.".concat(y)),R=cl._useDefaultPT(A,E==null||(v=E.pt)===null||v===void 0||(v=v.directives)===null||v===void 0?void 0:v[r],cl._getOptionValue,"hooks.".concat(y)),O={el:l,binding:u,vnode:d,prevVnode:h};C==null||C(A,O),R==null||R(A,O)},_mergeProps:function(){for(var r=arguments.length>1?arguments[1]:void 0,o=arguments.length,l=new Array(o>2?o-2:0),u=2;u1&&arguments[1]!==void 0?arguments[1]:{},l=function(h,w,v,y,E){var A,C,R,O;w._$instances=w._$instances||{};var M=cl._getConfig(v,y),L=w._$instances[r]||{},H=ov(L)?la(la({},o),o==null?void 0:o.methods):{};w._$instances[r]=la(la({},L),{},{$name:r,$host:w,$binding:v,$modifiers:v==null?void 0:v.modifiers,$value:v==null?void 0:v.value,$el:L.$el||w||void 0,$style:la({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},o==null?void 0:o.style),$primevueConfig:M,$attrSelector:(A=w.$pd)===null||A===void 0||(A=A[r])===null||A===void 0?void 0:A.attrSelector,defaultPT:function(){return cl._getPT(M==null?void 0:M.pt,void 0,function(j){var Q;return j==null||(Q=j.directives)===null||Q===void 0?void 0:Q[r]})},isUnstyled:function(){var j,Q;return((j=w.$instance)===null||j===void 0||(j=j.$binding)===null||j===void 0||(j=j.value)===null||j===void 0?void 0:j.unstyled)!==void 0?(Q=w.$instance)===null||Q===void 0||(Q=Q.$binding)===null||Q===void 0||(Q=Q.value)===null||Q===void 0?void 0:Q.unstyled:M==null?void 0:M.unstyled},theme:function(){var j;return(j=w.$instance)===null||j===void 0||(j=j.$primevueConfig)===null||j===void 0?void 0:j.theme},preset:function(){var j;return(j=w.$instance)===null||j===void 0||(j=j.$binding)===null||j===void 0||(j=j.value)===null||j===void 0?void 0:j.dt},ptm:function(){var j,Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return cl._getPTValue(w.$instance,(j=w.$instance)===null||j===void 0||(j=j.$binding)===null||j===void 0||(j=j.value)===null||j===void 0?void 0:j.pt,Q,la({},te))},ptmo:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return cl._getPTValue(w.$instance,j,Q,te,!1)},cx:function(){var j,Q,te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(j=w.$instance)!==null&&j!==void 0&&j.isUnstyled()?void 0:cl._getOptionValue((Q=w.$instance)===null||Q===void 0||(Q=Q.$style)===null||Q===void 0?void 0:Q.classes,te,la({},pe))},sx:function(){var j,Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return te?cl._getOptionValue((j=w.$instance)===null||j===void 0||(j=j.$style)===null||j===void 0?void 0:j.inlineStyles,Q,la({},pe)):void 0}},H),w.$instance=w._$instances[r],(C=(R=w.$instance)[h])===null||C===void 0||C.call(R,w,v,y,E),w["$".concat(r)]=w.$instance,cl._hook(r,h,w,v,y,E),w.$pd||(w.$pd={}),w.$pd[r]=la(la({},(O=w.$pd)===null||O===void 0?void 0:O[r]),{},{name:r,instance:w.$instance})},u=function(h){var w,v,y,E,A,C=(w=h.$instance)===null||w===void 0?void 0:w.watch;C==null||(v=C.config)===null||v===void 0||v.call(h.$instance,(y=h.$instance)===null||y===void 0?void 0:y.$primevueConfig),DD.on("config:change",function(R){var O,M=R.newValue,L=R.oldValue;return C==null||(O=C.config)===null||O===void 0?void 0:O.call(h.$instance,M,L)}),C==null||(E=C["config.ripple"])===null||E===void 0||E.call(h.$instance,(A=h.$instance)===null||A===void 0||(A=A.$primevueConfig)===null||A===void 0?void 0:A.ripple),DD.on("config:ripple:change",function(R){var O,M=R.newValue,L=R.oldValue;return C==null||(O=C["config.ripple"])===null||O===void 0?void 0:O.call(h.$instance,M,L)})};return{created:function(h,w,v,y){h.$pd||(h.$pd={}),h.$pd[r]={name:r,attrSelector:DWe("pd")},l("created",h,w,v,y)},beforeMount:function(h,w,v,y){cl._loadStyles(h,w,v),l("beforeMount",h,w,v,y),u(h)},mounted:function(h,w,v,y){cl._loadStyles(h,w,v),l("mounted",h,w,v,y)},beforeUpdate:function(h,w,v,y){l("beforeUpdate",h,w,v,y)},updated:function(h,w,v,y){cl._loadStyles(h,w,v),l("updated",h,w,v,y)},beforeUnmount:function(h,w,v,y){l("beforeUnmount",h,w,v,y)},unmounted:function(h,w,v,y){var E;(E=h.$instance)===null||E===void 0||(E=E.scopedStyleEl)===null||E===void 0||(E=E.value)===null||E===void 0||E.remove(),l("unmounted",h,w,v,y)}}},extend:function(){var r=cl._getMeta.apply(cl,arguments),o=zjt(r,2),l=o[0],u=o[1];return la({extend:function(){var h=cl._getMeta.apply(cl,arguments),w=zjt(h,2),v=w[0],y=w[1];return cl.extend(v,la(la(la({},u),u==null?void 0:u.methods),y))}},cl._extend(l,u))}},PVn=function(r){var o=r.dt;return` +`)},IVn={root:function(r){var o=r.props,l=r.instance;return["p-badge p-component",{"p-badge-circle":ks(o.value)&&String(o.value).length===1,"p-badge-dot":iv(o.value)&&!l.$slots.default,"p-badge-sm":o.size==="small","p-badge-lg":o.size==="large","p-badge-xl":o.size==="xlarge","p-badge-info":o.severity==="info","p-badge-success":o.severity==="success","p-badge-warn":o.severity==="warn","p-badge-danger":o.severity==="danger","p-badge-secondary":o.severity==="secondary","p-badge-contrast":o.severity==="contrast"}]}},PVn=Bs.extend({name:"badge",theme:$Vn,classes:IVn}),OVn={name:"BaseBadge",extends:Kl,props:{value:{type:[String,Number],default:null},severity:{type:String,default:null},size:{type:String,default:null}},style:PVn,provide:function(){return{$pcBadge:this,$parentInstance:this}}},GWe={name:"Badge",extends:OVn,inheritAttrs:!1};function NVn(n,r,o,l,u,d){return ze(),jt("span",Et({class:n.cx("root")},n.ptmi("root")),[Vr(n.$slots,"default",{},function(){return[nm(na(n.value),1)]})],16)}GWe.render=NVn;function Kq(n){"@babel/helpers - typeof";return Kq=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Kq(n)}function Qjt(n,r){return jVn(n)||LVn(n,r)||DVn(n,r)||MVn()}function MVn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DVn(n,r){if(n){if(typeof n=="string")return Zjt(n,r);var o={}.toString.call(n).slice(8,-1);return o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set"?Array.from(n):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Zjt(n,r):void 0}}function Zjt(n,r){(r==null||r>n.length)&&(r=n.length);for(var o=0,l=Array(r);o0&&arguments[0]!==void 0?arguments[0]:{},u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},w=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,v=function(){var G=cl._getOptionValue.apply(cl,arguments);return R0(G)||XX(G)?{class:G}:G},y=((r=l.binding)===null||r===void 0||(r=r.value)===null||r===void 0?void 0:r.ptOptions)||((o=l.$primevueConfig)===null||o===void 0?void 0:o.ptOptions)||{},E=y.mergeSections,A=E===void 0?!0:E,C=y.mergeProps,R=C===void 0?!1:C,O=w?cl._useDefaultPT(l,l.defaultPT(),v,d,h):void 0,M=cl._usePT(l,cl._getPT(u,l.$name),v,d,la(la({},h),{},{global:O||{}})),L=cl._getPTDatasets(l,d);return A||!A&&M?R?cl._mergeProps(l,R,O,M,L):la(la(la({},O),M),L):la(la({},M),L)},_getPTDatasets:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",l="data-pc-";return la(la({},o==="root"&&jLe({},"".concat(l,"name"),wS(r.$name))),{},jLe({},"".concat(l,"section"),wS(o)))},_getPT:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",l=arguments.length>2?arguments[2]:void 0,u=function(h){var w,v=l?l(h):h,y=wS(o);return(w=v==null?void 0:v[y])!==null&&w!==void 0?w:v};return r!=null&&r.hasOwnProperty("_usept")?{_usept:r._usept,originalValue:u(r.originalValue),value:u(r.value)}:u(r)},_usePT:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0,l=arguments.length>2?arguments[2]:void 0,u=arguments.length>3?arguments[3]:void 0,d=arguments.length>4?arguments[4]:void 0,h=function(L){return l(L,u,d)};if(o!=null&&o.hasOwnProperty("_usept")){var w,v=o._usept||((w=r.$primevueConfig)===null||w===void 0?void 0:w.ptOptions)||{},y=v.mergeSections,E=y===void 0?!0:y,A=v.mergeProps,C=A===void 0?!1:A,R=h(o.originalValue),O=h(o.value);return R===void 0&&O===void 0?void 0:R0(O)?O:R0(R)?R:E||!E&&O?C?cl._mergeProps(r,C,R,O):la(la({},R),O):O}return h(o)},_useDefaultPT:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments.length>2?arguments[2]:void 0,u=arguments.length>3?arguments[3]:void 0,d=arguments.length>4?arguments[4]:void 0;return cl._usePT(r,o,l,u,d)},_loadStyles:function(r,o,l){var u,d=cl._getConfig(o,l),h={nonce:d==null||(u=d.csp)===null||u===void 0?void 0:u.nonce};cl._loadCoreStyles(r.$instance,h),cl._loadThemeStyles(r.$instance,h),cl._loadScopedThemeStyles(r.$instance,h),cl._themeChangeListener(function(){return cl._loadThemeStyles(r.$instance,h)})},_loadCoreStyles:function(){var r,o,l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0;if(!aT.isStyleNameLoaded((r=l.$style)===null||r===void 0?void 0:r.name)&&(o=l.$style)!==null&&o!==void 0&&o.name){var d;Bs.loadCSS(u),(d=l.$style)===null||d===void 0||d.loadCSS(u),aT.setLoadedStyleName(l.$style.name)}},_loadThemeStyles:function(){var r,o,l,u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=arguments.length>1?arguments[1]:void 0;if(!(u!=null&&u.isUnstyled()||(u==null||(r=u.theme)===null||r===void 0?void 0:r.call(u))==="none")){if(!oc.isStyleNameLoaded("common")){var h,w,v=((h=u.$style)===null||h===void 0||(w=h.getCommonTheme)===null||w===void 0?void 0:w.call(h))||{},y=v.primitive,E=v.semantic,A=v.global,C=v.style;Bs.load(y==null?void 0:y.css,la({name:"primitive-variables"},d)),Bs.load(E==null?void 0:E.css,la({name:"semantic-variables"},d)),Bs.load(A==null?void 0:A.css,la({name:"global-variables"},d)),Bs.loadTheme(la({name:"global-style"},d),C),oc.setLoadedStyleName("common")}if(!oc.isStyleNameLoaded((o=u.$style)===null||o===void 0?void 0:o.name)&&(l=u.$style)!==null&&l!==void 0&&l.name){var R,O,M,L,H=((R=u.$style)===null||R===void 0||(O=R.getDirectiveTheme)===null||O===void 0?void 0:O.call(R))||{},G=H.css,j=H.style;(M=u.$style)===null||M===void 0||M.load(G,la({name:"".concat(u.$style.name,"-variables")},d)),(L=u.$style)===null||L===void 0||L.loadTheme(la({name:"".concat(u.$style.name,"-style")},d),j),oc.setLoadedStyleName(u.$style.name)}if(!oc.isStyleNameLoaded("layer-order")){var Q,te,pe=(Q=u.$style)===null||Q===void 0||(te=Q.getLayerOrderThemeCSS)===null||te===void 0?void 0:te.call(Q);Bs.load(pe,la({name:"layer-order",first:!0},d)),oc.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0,l=r.preset();if(l&&r.$attrSelector){var u,d,h,w=((u=r.$style)===null||u===void 0||(d=u.getPresetTheme)===null||d===void 0?void 0:d.call(u,l,"[".concat(r.$attrSelector,"]")))||{},v=w.css,y=(h=r.$style)===null||h===void 0?void 0:h.load(v,la({name:"".concat(r.$attrSelector,"-").concat(r.$style.name)},o));r.scopedStyleEl=y.el}},_themeChangeListener:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};aT.clearLoadedStyleNames(),gS.on("theme:change",r)},_hook:function(r,o,l,u,d,h){var w,v,y="on".concat($Hn(o)),E=cl._getConfig(u,d),A=l==null?void 0:l.$instance,C=cl._usePT(A,cl._getPT(u==null||(w=u.value)===null||w===void 0?void 0:w.pt,r),cl._getOptionValue,"hooks.".concat(y)),R=cl._useDefaultPT(A,E==null||(v=E.pt)===null||v===void 0||(v=v.directives)===null||v===void 0?void 0:v[r],cl._getOptionValue,"hooks.".concat(y)),O={el:l,binding:u,vnode:d,prevVnode:h};C==null||C(A,O),R==null||R(A,O)},_mergeProps:function(){for(var r=arguments.length>1?arguments[1]:void 0,o=arguments.length,l=new Array(o>2?o-2:0),u=2;u1&&arguments[1]!==void 0?arguments[1]:{},l=function(h,w,v,y,E){var A,C,R,O;w._$instances=w._$instances||{};var M=cl._getConfig(v,y),L=w._$instances[r]||{},H=iv(L)?la(la({},o),o==null?void 0:o.methods):{};w._$instances[r]=la(la({},L),{},{$name:r,$host:w,$binding:v,$modifiers:v==null?void 0:v.modifiers,$value:v==null?void 0:v.value,$el:L.$el||w||void 0,$style:la({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},o==null?void 0:o.style),$primevueConfig:M,$attrSelector:(A=w.$pd)===null||A===void 0||(A=A[r])===null||A===void 0?void 0:A.attrSelector,defaultPT:function(){return cl._getPT(M==null?void 0:M.pt,void 0,function(j){var Q;return j==null||(Q=j.directives)===null||Q===void 0?void 0:Q[r]})},isUnstyled:function(){var j,Q;return((j=w.$instance)===null||j===void 0||(j=j.$binding)===null||j===void 0||(j=j.value)===null||j===void 0?void 0:j.unstyled)!==void 0?(Q=w.$instance)===null||Q===void 0||(Q=Q.$binding)===null||Q===void 0||(Q=Q.value)===null||Q===void 0?void 0:Q.unstyled:M==null?void 0:M.unstyled},theme:function(){var j;return(j=w.$instance)===null||j===void 0||(j=j.$primevueConfig)===null||j===void 0?void 0:j.theme},preset:function(){var j;return(j=w.$instance)===null||j===void 0||(j=j.$binding)===null||j===void 0||(j=j.value)===null||j===void 0?void 0:j.dt},ptm:function(){var j,Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return cl._getPTValue(w.$instance,(j=w.$instance)===null||j===void 0||(j=j.$binding)===null||j===void 0||(j=j.value)===null||j===void 0?void 0:j.pt,Q,la({},te))},ptmo:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return cl._getPTValue(w.$instance,j,Q,te,!1)},cx:function(){var j,Q,te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(j=w.$instance)!==null&&j!==void 0&&j.isUnstyled()?void 0:cl._getOptionValue((Q=w.$instance)===null||Q===void 0||(Q=Q.$style)===null||Q===void 0?void 0:Q.classes,te,la({},pe))},sx:function(){var j,Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return te?cl._getOptionValue((j=w.$instance)===null||j===void 0||(j=j.$style)===null||j===void 0?void 0:j.inlineStyles,Q,la({},pe)):void 0}},H),w.$instance=w._$instances[r],(C=(R=w.$instance)[h])===null||C===void 0||C.call(R,w,v,y,E),w["$".concat(r)]=w.$instance,cl._hook(r,h,w,v,y,E),w.$pd||(w.$pd={}),w.$pd[r]=la(la({},(O=w.$pd)===null||O===void 0?void 0:O[r]),{},{name:r,instance:w.$instance})},u=function(h){var w,v,y,E,A,C=(w=h.$instance)===null||w===void 0?void 0:w.watch;C==null||(v=C.config)===null||v===void 0||v.call(h.$instance,(y=h.$instance)===null||y===void 0?void 0:y.$primevueConfig),MD.on("config:change",function(R){var O,M=R.newValue,L=R.oldValue;return C==null||(O=C.config)===null||O===void 0?void 0:O.call(h.$instance,M,L)}),C==null||(E=C["config.ripple"])===null||E===void 0||E.call(h.$instance,(A=h.$instance)===null||A===void 0||(A=A.$primevueConfig)===null||A===void 0?void 0:A.ripple),MD.on("config:ripple:change",function(R){var O,M=R.newValue,L=R.oldValue;return C==null||(O=C["config.ripple"])===null||O===void 0?void 0:O.call(h.$instance,M,L)})};return{created:function(h,w,v,y){h.$pd||(h.$pd={}),h.$pd[r]={name:r,attrSelector:UWe("pd")},l("created",h,w,v,y)},beforeMount:function(h,w,v,y){cl._loadStyles(h,w,v),l("beforeMount",h,w,v,y),u(h)},mounted:function(h,w,v,y){cl._loadStyles(h,w,v),l("mounted",h,w,v,y)},beforeUpdate:function(h,w,v,y){l("beforeUpdate",h,w,v,y)},updated:function(h,w,v,y){cl._loadStyles(h,w,v),l("updated",h,w,v,y)},beforeUnmount:function(h,w,v,y){l("beforeUnmount",h,w,v,y)},unmounted:function(h,w,v,y){var E;(E=h.$instance)===null||E===void 0||(E=E.scopedStyleEl)===null||E===void 0||(E=E.value)===null||E===void 0||E.remove(),l("unmounted",h,w,v,y)}}},extend:function(){var r=cl._getMeta.apply(cl,arguments),o=Qjt(r,2),l=o[0],u=o[1];return la({extend:function(){var h=cl._getMeta.apply(cl,arguments),w=Qjt(h,2),v=w[0],y=w[1];return cl.extend(v,la(la(la({},u),u==null?void 0:u.methods),y))}},cl._extend(l,u))}},WVn=function(r){var o=r.dt;return` .p-ink { display: block; position: absolute; @@ -320,8 +320,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho transform: scale(2.5); } } -`)},OVn={root:"p-ink"},NVn=Bs.extend({name:"ripple-directive",theme:PVn,classes:OVn}),MVn=cl.extend({style:NVn});function Xq(n){"@babel/helpers - typeof";return Xq=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Xq(n)}function DVn(n){return BVn(n)||FVn(n)||jVn(n)||LVn()}function LVn(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jVn(n,r){if(n){if(typeof n=="string")return PLe(n,r);var o={}.toString.call(n).slice(8,-1);return o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set"?Array.from(n):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?PLe(n,r):void 0}}function FVn(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function BVn(n){if(Array.isArray(n))return PLe(n)}function PLe(n,r){(r==null||r>n.length)&&(r=n.length);for(var o=0,l=Array(r);on.length)&&(r=n.length);for(var o=0,l=Array(r);o1&&arguments[1]!==void 0?arguments[1]:function(){};JVn(this,n),this.element=r,this.listener=o}return QVn(n,[{key:"bindScrollListener",value:function(){this.scrollableParents=WHn(this.element);for(var o=0;on.length)&&(r=n.length);for(var o=0,l=Array(r);o0&&arguments[0]!==void 0?arguments[0]:[],u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],d=[];return u.forEach(function(h){h.children instanceof Array?d=d.concat(o._recursive(d,h.children)):h.type.name===o.type?d.push(h):ks(h.key)&&(d=d.concat(l.filter(function(w){return o._isMatched(w,h.key)}).map(function(w){return w.vnode})))}),d}}])}();function ST(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pv_id_";return DWe(n)}function KR(n,r){if(n){var o=n.props;if(o){var l=r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),u=Object.prototype.hasOwnProperty.call(o,l)?l:r;return n.type.extends.props[r].type===Boolean&&o[u]===""?!0:o[u]}}return null}var uzn=function(r){var o=r.dt;return` +`)},tzn={root:function(r){var o=r.instance,l=r.props;return["p-button p-component",EE(EE(EE(EE(EE(EE(EE(EE(EE({"p-button-icon-only":o.hasIcon&&!l.label&&!l.badge,"p-button-vertical":(l.iconPos==="top"||l.iconPos==="bottom")&&l.label,"p-button-loading":l.loading,"p-button-link":l.link||l.variant==="link"},"p-button-".concat(l.severity),l.severity),"p-button-raised",l.raised),"p-button-rounded",l.rounded),"p-button-text",l.text||l.variant==="text"),"p-button-outlined",l.outlined||l.variant==="outlined"),"p-button-sm",l.size==="small"),"p-button-lg",l.size==="large"),"p-button-plain",l.plain),"p-button-fluid",o.hasFluid)]},loadingIcon:"p-button-loading-icon",icon:function(r){var o=r.props;return["p-button-icon",EE({},"p-button-icon-".concat(o.iconPos),o.label)]},label:"p-button-label"},nzn=Bs.extend({name:"button",theme:ezn,classes:tzn}),rzn={name:"BaseButton",extends:Kl,props:{label:{type:String,default:null},icon:{type:String,default:null},iconPos:{type:String,default:"left"},iconClass:{type:[String,Object],default:null},badge:{type:String,default:null},badgeClass:{type:[String,Object],default:null},badgeSeverity:{type:String,default:"secondary"},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:void 0},as:{type:[String,Object],default:"BUTTON"},asChild:{type:Boolean,default:!1},link:{type:Boolean,default:!1},severity:{type:String,default:null},raised:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},size:{type:String,default:null},variant:{type:String,default:null},plain:{type:Boolean,default:!1},fluid:{type:Boolean,default:null}},style:nzn,provide:function(){return{$pcButton:this,$parentInstance:this}}},Xy={name:"Button",extends:rzn,inheritAttrs:!1,inject:{$pcFluid:{default:null}},methods:{getPTOptions:function(r){var o=r==="root"?this.ptmi:this.ptm;return o(r,{context:{disabled:this.disabled}})}},computed:{disabled:function(){return this.$attrs.disabled||this.$attrs.disabled===""||this.loading},defaultAriaLabel:function(){return this.label?this.label+(this.badge?" "+this.badge:""):this.$attrs.ariaLabel},hasIcon:function(){return this.icon||this.$slots.icon},attrs:function(){return Et(this.asAttrs,this.a11yAttrs,this.getPTOptions("root"))},asAttrs:function(){return this.as==="BUTTON"?{type:"button",disabled:this.disabled}:void 0},a11yAttrs:function(){return{"aria-label":this.defaultAriaLabel,"data-pc-name":"button","data-p-disabled":this.disabled,"data-p-severity":this.severity}},hasFluid:function(){return iv(this.fluid)?!!this.$pcFluid:this.fluid}},components:{SpinnerIcon:YX,Badge:GWe},directives:{ripple:bk}};function izn(n,r,o,l,u,d){var h=Ni("SpinnerIcon"),w=Ni("Badge"),v=TS("ripple");return n.asChild?Vr(n.$slots,"default",{key:1,class:Lo(n.cx("root")),a11yAttrs:d.a11yAttrs}):AS((ze(),Nn(jo(n.as),Et({key:0,class:n.cx("root")},d.attrs),{default:vi(function(){return[Vr(n.$slots,"default",{},function(){return[n.loading?Vr(n.$slots,"loadingicon",Et({key:0,class:[n.cx("loadingIcon"),n.cx("icon")]},n.ptm("loadingIcon")),function(){return[n.loadingIcon?(ze(),jt("span",Et({key:0,class:[n.cx("loadingIcon"),n.cx("icon"),n.loadingIcon]},n.ptm("loadingIcon")),null,16)):(ze(),Nn(h,Et({key:1,class:[n.cx("loadingIcon"),n.cx("icon")],spin:""},n.ptm("loadingIcon")),null,16,["class"]))]}):Vr(n.$slots,"icon",Et({key:1,class:[n.cx("icon")]},n.ptm("icon")),function(){return[n.icon?(ze(),jt("span",Et({key:0,class:[n.cx("icon"),n.icon,n.iconClass]},n.ptm("icon")),null,16)):fr("",!0)]}),mr("span",Et({class:n.cx("label")},n.ptm("label")),na(n.label||" "),17),n.badge?(ze(),Nn(w,{key:2,value:n.badge,class:Lo(n.badgeClass),severity:n.badgeSeverity,unstyled:n.unstyled,pt:n.ptm("pcBadge")},null,8,["value","class","severity","unstyled","pt"])):fr("",!0)]})]}),_:3},16,["class"])),[[v]])}Xy.render=izn;function Jq(n){"@babel/helpers - typeof";return Jq=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Jq(n)}function ozn(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}function szn(n,r){for(var o=0;o1&&arguments[1]!==void 0?arguments[1]:function(){};ozn(this,n),this.element=r,this.listener=o}return lzn(n,[{key:"bindScrollListener",value:function(){this.scrollableParents=JHn(this.element);for(var o=0;on.length)&&(r=n.length);for(var o=0,l=Array(r);o0&&arguments[0]!==void 0?arguments[0]:[],u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],d=[];return u.forEach(function(h){h.children instanceof Array?d=d.concat(o._recursive(d,h.children)):h.type.name===o.type?d.push(h):ks(h.key)&&(d=d.concat(l.filter(function(w){return o._isMatched(w,h.key)}).map(function(w){return w.vnode})))}),d}}])}();function ST(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pv_id_";return UWe(n)}function KR(n,r){if(n){var o=n.props;if(o){var l=r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),u=Object.prototype.hasOwnProperty.call(o,l)?l:r;return n.type.extends.props[r].type===Boolean&&o[u]===""?!0:o[u]}}return null}var yzn=function(r){var o=r.dt;return` .p-splitter { display: flex; flex-wrap: nowrap; @@ -1024,8 +1024,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho flex-grow: 1; border: 0 none; } -`)},fzn={root:function(r){var o=r.props;return["p-splitter p-component","p-splitter-"+o.layout]},gutter:"p-splitter-gutter",gutterHandle:"p-splitter-gutter-handle"},dzn={root:function(r){var o=r.props;return[{display:"flex","flex-wrap":"nowrap"},o.layout==="vertical"?{"flex-direction":"column"}:""]}},hzn=Bs.extend({name:"splitter",theme:uzn,classes:fzn,inlineStyles:dzn}),pzn={name:"BaseSplitter",extends:Kl,props:{layout:{type:String,default:"horizontal"},gutterSize:{type:Number,default:4},stateKey:{type:String,default:null},stateStorage:{type:String,default:"session"},step:{type:Number,default:5}},style:hzn,provide:function(){return{$pcSplitter:this,$parentInstance:this}}};function Yjt(n){return mzn(n)||wzn(n)||gzn(n)||bzn()}function bzn(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gzn(n,r){if(n){if(typeof n=="string")return NLe(n,r);var o={}.toString.call(n).slice(8,-1);return o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set"?Array.from(n):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?NLe(n,r):void 0}}function wzn(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function mzn(n){if(Array.isArray(n))return NLe(n)}function NLe(n,r){(r==null||r>n.length)&&(r=n.length);for(var o=0,l=Array(r);o100||r<0||o>100||o<0)return!1;var l=KR(this.panels[this.prevPanelIndex],"minSize");if(this.panels[this.prevPanelIndex].props&&l&&l>r)return!1;var u=KR(this.panels[this.prevPanelIndex+1],"minSize");return!(this.panels[this.prevPanelIndex+1].props&&u&&u>o)},unbindMouseListeners:function(){this.mouseMoveListener&&(document.removeEventListener("mousemove",this.mouseMoveListener),this.mouseMoveListener=null),this.mouseUpListener&&(document.removeEventListener("mouseup",this.mouseUpListener),this.mouseUpListener=null)},unbindTouchListeners:function(){this.touchMoveListener&&(document.removeEventListener("touchmove",this.touchMoveListener),this.touchMoveListener=null),this.touchEndListener&&(document.removeEventListener("touchend",this.touchEndListener),this.touchEndListener=null)},clear:function(){this.dragging=!1,this.size=null,this.startPos=null,this.prevPanelElement=null,this.nextPanelElement=null,this.prevPanelSize=null,this.nextPanelSize=null,this.gutterElement=null,this.prevPanelIndex=null},isStateful:function(){return this.stateKey!=null},getStorage:function(){switch(this.stateStorage){case"local":return window.localStorage;case"session":return window.sessionStorage;default:throw new Error(this.stateStorage+' is not a valid value for the state storage, supported values are "local" and "session".')}},saveState:function(){XX(this.panelSizes)&&this.getStorage().setItem(this.stateKey,JSON.stringify(this.panelSizes))},restoreState:function(){var r=this,o=this.getStorage(),l=o.getItem(this.stateKey);if(l){this.panelSizes=JSON.parse(l);var u=Yjt(this.$el.children).filter(function(d){return d.getAttribute("data-pc-name")==="splitterpanel"});return u.forEach(function(d,h){d.style.flexBasis="calc("+r.panelSizes[h]+"% - "+(r.panels.length-1)*r.gutterSize+"px)"}),!0}return!1},resetState:function(){this.initializePanels()}},computed:{panels:function(){var r=this,o=[];return this.$slots.default().forEach(function(l){r.isSplitterPanel(l)?o.push(l):l.children instanceof Array&&l.children.forEach(function(u){r.isSplitterPanel(u)&&o.push(u)})}),o},gutterStyle:function(){return this.horizontal?{width:this.gutterSize+"px"}:{height:this.gutterSize+"px"}},horizontal:function(){return this.layout==="horizontal"},getPTOptions:function(){var r;return{context:{nested:(r=this.$parentInstance)===null||r===void 0?void 0:r.nestedState}}}}},yzn=["onMousedown","onTouchstart","onTouchmove","onTouchend"],vzn=["aria-orientation","aria-valuenow","onKeydown"];function _zn(n,r,o,l,u,d){return ze(),Lt("div",Et({class:n.cx("root"),style:n.sx("root"),"data-p-resizing":!1},n.ptmi("root",d.getPTOptions)),[(ze(!0),Lt(gi,null,uu(d.panels,function(h,w){return ze(),Lt(gi,{key:w},[(ze(),Nn(jo(h),{tabindex:"-1"})),w!==d.panels.length-1?(ze(),Lt("div",Et({key:0,ref_for:!0,ref:"gutter",class:n.cx("gutter"),role:"separator",tabindex:"-1",onMousedown:function(y){return d.onGutterMouseDown(y,w)},onTouchstart:function(y){return d.onGutterTouchStart(y,w)},onTouchmove:function(y){return d.onGutterTouchMove(y,w)},onTouchend:function(y){return d.onGutterTouchEnd(y,w)},"data-p-gutter-resizing":!1},n.ptm("gutter")),[mr("div",Et({class:n.cx("gutterHandle"),tabindex:"0",style:[d.gutterStyle],"aria-orientation":n.layout,"aria-valuenow":u.prevSize,onKeyup:r[0]||(r[0]=function(){return d.onGutterKeyUp&&d.onGutterKeyUp.apply(d,arguments)}),onKeydown:function(y){return d.onGutterKeyDown(y,w)},ref_for:!0},n.ptm("gutterHandle")),null,16,vzn)],16,yzn)):fr("",!0)],64)}),128))],16)}VQt.render=_zn;var Szn={root:function(r){var o=r.instance;return["p-splitterpanel",{"p-splitterpanel-nested":o.isNested}]}},Ezn=Bs.extend({name:"splitterpanel",classes:Szn}),kzn={name:"BaseSplitterPanel",extends:Kl,props:{size:{type:Number,default:null},minSize:{type:Number,default:null}},style:Ezn,provide:function(){return{$pcSplitterPanel:this,$parentInstance:this}}},$fe={name:"SplitterPanel",extends:kzn,inheritAttrs:!1,data:function(){return{nestedState:null}},computed:{isNested:function(){var r=this;return this.$slots.default().some(function(o){return r.nestedState=o.type.name==="Splitter"?!0:null,r.nestedState})},getPTOptions:function(){return{context:{nested:this.isNested}}}}};function Rzn(n,r,o,l,u,d){return ze(),Lt("div",Et({ref:"container",class:n.cx("root")},n.ptmi("root",d.getPTOptions)),[Vr(n.$slots,"default")],16)}$fe.render=Rzn;var zQt={name:"BlankIcon",extends:Fc};function xzn(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("rect",{width:"1",height:"1",fill:"currentColor","fill-opacity":"0"},null,-1)]),16)}zQt.render=xzn;var rj={name:"CheckIcon",extends:Fc};function Czn(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{d:"M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z",fill:"currentColor"},null,-1)]),16)}rj.render=Czn;var spe={name:"ChevronDownIcon",extends:Fc};function Azn(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{d:"M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z",fill:"currentColor"},null,-1)]),16)}spe.render=Azn;var KQt={name:"SearchIcon",extends:Fc};function Tzn(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z",fill:"currentColor"},null,-1)]),16)}KQt.render=Tzn;var lpe={name:"TimesIcon",extends:Fc};function $zn(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{d:"M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z",fill:"currentColor"},null,-1)]),16)}lpe.render=$zn;var Izn=function(r){var o=r.dt;return` +`)},vzn={root:function(r){var o=r.props;return["p-splitter p-component","p-splitter-"+o.layout]},gutter:"p-splitter-gutter",gutterHandle:"p-splitter-gutter-handle"},_zn={root:function(r){var o=r.props;return[{display:"flex","flex-wrap":"nowrap"},o.layout==="vertical"?{"flex-direction":"column"}:""]}},Szn=Bs.extend({name:"splitter",theme:yzn,classes:vzn,inlineStyles:_zn}),Ezn={name:"BaseSplitter",extends:Kl,props:{layout:{type:String,default:"horizontal"},gutterSize:{type:Number,default:4},stateKey:{type:String,default:null},stateStorage:{type:String,default:"session"},step:{type:Number,default:5}},style:Szn,provide:function(){return{$pcSplitter:this,$parentInstance:this}}};function rFt(n){return Czn(n)||xzn(n)||Rzn(n)||kzn()}function kzn(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rzn(n,r){if(n){if(typeof n=="string")return WLe(n,r);var o={}.toString.call(n).slice(8,-1);return o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set"?Array.from(n):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?WLe(n,r):void 0}}function xzn(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function Czn(n){if(Array.isArray(n))return WLe(n)}function WLe(n,r){(r==null||r>n.length)&&(r=n.length);for(var o=0,l=Array(r);o100||r<0||o>100||o<0)return!1;var l=KR(this.panels[this.prevPanelIndex],"minSize");if(this.panels[this.prevPanelIndex].props&&l&&l>r)return!1;var u=KR(this.panels[this.prevPanelIndex+1],"minSize");return!(this.panels[this.prevPanelIndex+1].props&&u&&u>o)},unbindMouseListeners:function(){this.mouseMoveListener&&(document.removeEventListener("mousemove",this.mouseMoveListener),this.mouseMoveListener=null),this.mouseUpListener&&(document.removeEventListener("mouseup",this.mouseUpListener),this.mouseUpListener=null)},unbindTouchListeners:function(){this.touchMoveListener&&(document.removeEventListener("touchmove",this.touchMoveListener),this.touchMoveListener=null),this.touchEndListener&&(document.removeEventListener("touchend",this.touchEndListener),this.touchEndListener=null)},clear:function(){this.dragging=!1,this.size=null,this.startPos=null,this.prevPanelElement=null,this.nextPanelElement=null,this.prevPanelSize=null,this.nextPanelSize=null,this.gutterElement=null,this.prevPanelIndex=null},isStateful:function(){return this.stateKey!=null},getStorage:function(){switch(this.stateStorage){case"local":return window.localStorage;case"session":return window.sessionStorage;default:throw new Error(this.stateStorage+' is not a valid value for the state storage, supported values are "local" and "session".')}},saveState:function(){XX(this.panelSizes)&&this.getStorage().setItem(this.stateKey,JSON.stringify(this.panelSizes))},restoreState:function(){var r=this,o=this.getStorage(),l=o.getItem(this.stateKey);if(l){this.panelSizes=JSON.parse(l);var u=rFt(this.$el.children).filter(function(d){return d.getAttribute("data-pc-name")==="splitterpanel"});return u.forEach(function(d,h){d.style.flexBasis="calc("+r.panelSizes[h]+"% - "+(r.panels.length-1)*r.gutterSize+"px)"}),!0}return!1},resetState:function(){this.initializePanels()}},computed:{panels:function(){var r=this,o=[];return this.$slots.default().forEach(function(l){r.isSplitterPanel(l)?o.push(l):l.children instanceof Array&&l.children.forEach(function(u){r.isSplitterPanel(u)&&o.push(u)})}),o},gutterStyle:function(){return this.horizontal?{width:this.gutterSize+"px"}:{height:this.gutterSize+"px"}},horizontal:function(){return this.layout==="horizontal"},getPTOptions:function(){var r;return{context:{nested:(r=this.$parentInstance)===null||r===void 0?void 0:r.nestedState}}}}},Azn=["onMousedown","onTouchstart","onTouchmove","onTouchend"],Tzn=["aria-orientation","aria-valuenow","onKeydown"];function $zn(n,r,o,l,u,d){return ze(),jt("div",Et({class:n.cx("root"),style:n.sx("root"),"data-p-resizing":!1},n.ptmi("root",d.getPTOptions)),[(ze(!0),jt(gi,null,uu(d.panels,function(h,w){return ze(),jt(gi,{key:w},[(ze(),Nn(jo(h),{tabindex:"-1"})),w!==d.panels.length-1?(ze(),jt("div",Et({key:0,ref_for:!0,ref:"gutter",class:n.cx("gutter"),role:"separator",tabindex:"-1",onMousedown:function(y){return d.onGutterMouseDown(y,w)},onTouchstart:function(y){return d.onGutterTouchStart(y,w)},onTouchmove:function(y){return d.onGutterTouchMove(y,w)},onTouchend:function(y){return d.onGutterTouchEnd(y,w)},"data-p-gutter-resizing":!1},n.ptm("gutter")),[mr("div",Et({class:n.cx("gutterHandle"),tabindex:"0",style:[d.gutterStyle],"aria-orientation":n.layout,"aria-valuenow":u.prevSize,onKeyup:r[0]||(r[0]=function(){return d.onGutterKeyUp&&d.onGutterKeyUp.apply(d,arguments)}),onKeydown:function(y){return d.onGutterKeyDown(y,w)},ref_for:!0},n.ptm("gutterHandle")),null,16,Tzn)],16,Azn)):fr("",!0)],64)}),128))],16)}JQt.render=$zn;var Izn={root:function(r){var o=r.instance;return["p-splitterpanel",{"p-splitterpanel-nested":o.isNested}]}},Pzn=Bs.extend({name:"splitterpanel",classes:Izn}),Ozn={name:"BaseSplitterPanel",extends:Kl,props:{size:{type:Number,default:null},minSize:{type:Number,default:null}},style:Pzn,provide:function(){return{$pcSplitterPanel:this,$parentInstance:this}}},Pfe={name:"SplitterPanel",extends:Ozn,inheritAttrs:!1,data:function(){return{nestedState:null}},computed:{isNested:function(){var r=this;return this.$slots.default().some(function(o){return r.nestedState=o.type.name==="Splitter"?!0:null,r.nestedState})},getPTOptions:function(){return{context:{nested:this.isNested}}}}};function Nzn(n,r,o,l,u,d){return ze(),jt("div",Et({ref:"container",class:n.cx("root")},n.ptmi("root",d.getPTOptions)),[Vr(n.$slots,"default")],16)}Pfe.render=Nzn;var YQt={name:"BlankIcon",extends:Fc};function Mzn(n,r,o,l,u,d){return ze(),jt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("rect",{width:"1",height:"1",fill:"currentColor","fill-opacity":"0"},null,-1)]),16)}YQt.render=Mzn;var nj={name:"CheckIcon",extends:Fc};function Dzn(n,r,o,l,u,d){return ze(),jt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{d:"M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z",fill:"currentColor"},null,-1)]),16)}nj.render=Dzn;var cpe={name:"ChevronDownIcon",extends:Fc};function Lzn(n,r,o,l,u,d){return ze(),jt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{d:"M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z",fill:"currentColor"},null,-1)]),16)}cpe.render=Lzn;var QQt={name:"SearchIcon",extends:Fc};function jzn(n,r,o,l,u,d){return ze(),jt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z",fill:"currentColor"},null,-1)]),16)}QQt.render=jzn;var upe={name:"TimesIcon",extends:Fc};function Fzn(n,r,o,l,u,d){return ze(),jt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{d:"M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z",fill:"currentColor"},null,-1)]),16)}upe.render=Fzn;var Bzn=function(r){var o=r.dt;return` .p-iconfield { position: relative; } @@ -1067,7 +1067,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho height: `).concat(o("form.field.lg.font.size"),`; margin-top: calc(-1 * (`).concat(o("form.field.lg.font.size"),` / 2)); } -`)},Pzn={root:"p-iconfield"},Ozn=Bs.extend({name:"iconfield",theme:Izn,classes:Pzn}),Nzn={name:"BaseIconField",extends:Kl,style:Ozn,provide:function(){return{$pcIconField:this,$parentInstance:this}}},qQt={name:"IconField",extends:Nzn,inheritAttrs:!1};function Mzn(n,r,o,l,u,d){return ze(),Lt("div",Et({class:n.cx("root")},n.ptmi("root")),[Vr(n.$slots,"default")],16)}qQt.render=Mzn;var Dzn={root:"p-inputicon"},Lzn=Bs.extend({name:"inputicon",classes:Dzn}),jzn={name:"BaseInputIcon",extends:Kl,style:Lzn,props:{class:null},provide:function(){return{$pcInputIcon:this,$parentInstance:this}}},XQt={name:"InputIcon",extends:jzn,inheritAttrs:!1,computed:{containerClass:function(){return[this.cx("root"),this.class]}}};function Fzn(n,r,o,l,u,d){return ze(),Lt("span",Et({class:d.containerClass},n.ptmi("root")),[Vr(n.$slots,"default")],16)}XQt.render=Fzn;var Bzn={name:"BaseEditableHolder",extends:Kl,emits:["update:modelValue","value-change"],props:{modelValue:{type:null,default:void 0},defaultValue:{type:null,default:void 0},name:{type:String,default:void 0},invalid:{type:Boolean,default:void 0},disabled:{type:Boolean,default:!1},formControl:{type:Object,default:void 0}},inject:{$parentInstance:{default:void 0},$pcForm:{default:void 0},$pcFormField:{default:void 0}},data:function(){return{d_value:this.defaultValue||this.modelValue}},watch:{modelValue:function(r){this.d_value=r},defaultValue:function(r){this.d_value=r},$formName:{immediate:!0,handler:function(r){var o,l;this.formField=((o=this.$pcForm)===null||o===void 0||(l=o.register)===null||l===void 0?void 0:l.call(o,r,this.$formControl))||{}}},$formControl:{immediate:!0,handler:function(r){var o,l;this.formField=((o=this.$pcForm)===null||o===void 0||(l=o.register)===null||l===void 0?void 0:l.call(o,this.$formName,r))||{}}},$formDefaultValue:{immediate:!0,handler:function(r){this.d_value!==r&&(this.d_value=r)}}},formField:{},methods:{writeValue:function(r,o){var l,u;this.controlled&&(this.d_value=r,this.$emit("update:modelValue",r)),this.$emit("value-change",r),(l=(u=this.formField).onChange)===null||l===void 0||l.call(u,{originalEvent:o,value:r})}},computed:{$filled:function(){return ks(this.d_value)},$invalid:function(){var r,o,l,u;return(r=(o=this.invalid)!==null&&o!==void 0?o:(l=this.$pcFormField)===null||l===void 0||(l=l.$field)===null||l===void 0?void 0:l.invalid)!==null&&r!==void 0?r:(u=this.$pcForm)===null||u===void 0||(u=u.states)===null||u===void 0||(u=u[this.$formName])===null||u===void 0?void 0:u.invalid},$formName:function(){var r;return this.name||((r=this.$formControl)===null||r===void 0?void 0:r.name)},$formControl:function(){var r;return this.formControl||((r=this.$pcFormField)===null||r===void 0?void 0:r.formControl)},$formDefaultValue:function(){var r,o,l,u;return(r=(o=this.d_value)!==null&&o!==void 0?o:(l=this.$pcFormField)===null||l===void 0?void 0:l.initialValue)!==null&&r!==void 0?r:(u=this.$pcForm)===null||u===void 0||(u=u.initialValues)===null||u===void 0?void 0:u[this.$formName]},controlled:function(){return this.$inProps.hasOwnProperty("modelValue")||!this.$inProps.hasOwnProperty("modelValue")&&!this.$inProps.hasOwnProperty("defaultValue")},filled:function(){return this.$filled}}},QX={name:"BaseInput",extends:Bzn,props:{size:{type:String,default:null},fluid:{type:Boolean,default:null},variant:{type:String,default:null}},inject:{$parentInstance:{default:void 0},$pcFluid:{default:void 0}},computed:{$variant:function(){var r;return(r=this.variant)!==null&&r!==void 0?r:this.$primevue.config.inputStyle||this.$primevue.config.inputVariant},$fluid:function(){var r;return(r=this.fluid)!==null&&r!==void 0?r:!!this.$pcFluid},hasFluid:function(){return this.$fluid}}},Wzn=function(r){var o=r.dt;return` +`)},Wzn={root:"p-iconfield"},Hzn=Bs.extend({name:"iconfield",theme:Bzn,classes:Wzn}),Uzn={name:"BaseIconField",extends:Kl,style:Hzn,provide:function(){return{$pcIconField:this,$parentInstance:this}}},ZQt={name:"IconField",extends:Uzn,inheritAttrs:!1};function Gzn(n,r,o,l,u,d){return ze(),jt("div",Et({class:n.cx("root")},n.ptmi("root")),[Vr(n.$slots,"default")],16)}ZQt.render=Gzn;var Vzn={root:"p-inputicon"},zzn=Bs.extend({name:"inputicon",classes:Vzn}),Kzn={name:"BaseInputIcon",extends:Kl,style:zzn,props:{class:null},provide:function(){return{$pcInputIcon:this,$parentInstance:this}}},eZt={name:"InputIcon",extends:Kzn,inheritAttrs:!1,computed:{containerClass:function(){return[this.cx("root"),this.class]}}};function qzn(n,r,o,l,u,d){return ze(),jt("span",Et({class:d.containerClass},n.ptmi("root")),[Vr(n.$slots,"default")],16)}eZt.render=qzn;var Xzn={name:"BaseEditableHolder",extends:Kl,emits:["update:modelValue","value-change"],props:{modelValue:{type:null,default:void 0},defaultValue:{type:null,default:void 0},name:{type:String,default:void 0},invalid:{type:Boolean,default:void 0},disabled:{type:Boolean,default:!1},formControl:{type:Object,default:void 0}},inject:{$parentInstance:{default:void 0},$pcForm:{default:void 0},$pcFormField:{default:void 0}},data:function(){return{d_value:this.defaultValue||this.modelValue}},watch:{modelValue:function(r){this.d_value=r},defaultValue:function(r){this.d_value=r},$formName:{immediate:!0,handler:function(r){var o,l;this.formField=((o=this.$pcForm)===null||o===void 0||(l=o.register)===null||l===void 0?void 0:l.call(o,r,this.$formControl))||{}}},$formControl:{immediate:!0,handler:function(r){var o,l;this.formField=((o=this.$pcForm)===null||o===void 0||(l=o.register)===null||l===void 0?void 0:l.call(o,this.$formName,r))||{}}},$formDefaultValue:{immediate:!0,handler:function(r){this.d_value!==r&&(this.d_value=r)}}},formField:{},methods:{writeValue:function(r,o){var l,u;this.controlled&&(this.d_value=r,this.$emit("update:modelValue",r)),this.$emit("value-change",r),(l=(u=this.formField).onChange)===null||l===void 0||l.call(u,{originalEvent:o,value:r})}},computed:{$filled:function(){return ks(this.d_value)},$invalid:function(){var r,o,l,u;return(r=(o=this.invalid)!==null&&o!==void 0?o:(l=this.$pcFormField)===null||l===void 0||(l=l.$field)===null||l===void 0?void 0:l.invalid)!==null&&r!==void 0?r:(u=this.$pcForm)===null||u===void 0||(u=u.states)===null||u===void 0||(u=u[this.$formName])===null||u===void 0?void 0:u.invalid},$formName:function(){var r;return this.name||((r=this.$formControl)===null||r===void 0?void 0:r.name)},$formControl:function(){var r;return this.formControl||((r=this.$pcFormField)===null||r===void 0?void 0:r.formControl)},$formDefaultValue:function(){var r,o,l,u;return(r=(o=this.d_value)!==null&&o!==void 0?o:(l=this.$pcFormField)===null||l===void 0?void 0:l.initialValue)!==null&&r!==void 0?r:(u=this.$pcForm)===null||u===void 0||(u=u.initialValues)===null||u===void 0?void 0:u[this.$formName]},controlled:function(){return this.$inProps.hasOwnProperty("modelValue")||!this.$inProps.hasOwnProperty("modelValue")&&!this.$inProps.hasOwnProperty("defaultValue")},filled:function(){return this.$filled}}},QX={name:"BaseInput",extends:Xzn,props:{size:{type:String,default:null},fluid:{type:Boolean,default:null},variant:{type:String,default:null}},inject:{$parentInstance:{default:void 0},$pcFluid:{default:void 0}},computed:{$variant:function(){var r;return(r=this.variant)!==null&&r!==void 0?r:this.$primevue.config.inputStyle||this.$primevue.config.inputVariant},$fluid:function(){var r;return(r=this.fluid)!==null&&r!==void 0?r:!!this.$pcFluid},hasFluid:function(){return this.$fluid}}},Jzn=function(r){var o=r.dt;return` .p-inputtext { font-family: inherit; font-feature-settings: inherit; @@ -1140,7 +1140,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho .p-inputtext-fluid { width: 100%; } -`)},Hzn={root:function(r){var o=r.instance,l=r.props;return["p-inputtext p-component",{"p-filled":o.$filled,"p-inputtext-sm p-inputfield-sm":l.size==="small","p-inputtext-lg p-inputfield-lg":l.size==="large","p-invalid":o.$invalid,"p-variant-filled":o.$variant==="filled","p-inputtext-fluid":o.$fluid}]}},Uzn=Bs.extend({name:"inputtext",theme:Wzn,classes:Hzn}),Gzn={name:"BaseInputText",extends:QX,style:Uzn,provide:function(){return{$pcInputText:this,$parentInstance:this}}},W8={name:"InputText",extends:Gzn,inheritAttrs:!1,methods:{onInput:function(r){this.writeValue(r.target.value,r)}},computed:{attrs:function(){return Et(this.ptmi("root",{context:{filled:this.$filled,disabled:this.disabled}}),this.formField)}}},Vzn=["value","disabled","aria-invalid"];function zzn(n,r,o,l,u,d){return ze(),Lt("input",Et({type:"text",class:n.cx("root"),value:n.d_value,disabled:n.disabled,"aria-invalid":n.$invalid||void 0,onInput:r[0]||(r[0]=function(){return d.onInput&&d.onInput.apply(d,arguments)})},d.attrs),null,16,Vzn)}W8.render=zzn;var Zy=AWe(),ZX={name:"Portal",props:{appendTo:{type:[String,Object],default:"body"},disabled:{type:Boolean,default:!1}},data:function(){return{mounted:!1}},mounted:function(){this.mounted=ope()},computed:{inline:function(){return this.disabled||this.appendTo==="self"}}};function Kzn(n,r,o,l,u,d){return d.inline?Vr(n.$slots,"default",{key:0}):u.mounted?(ze(),Nn($Bn,{key:1,to:o.appendTo},[Vr(n.$slots,"default")],8,["to"])):fr("",!0)}ZX.render=Kzn;var qzn=function(r){var o=r.dt;return` +`)},Yzn={root:function(r){var o=r.instance,l=r.props;return["p-inputtext p-component",{"p-filled":o.$filled,"p-inputtext-sm p-inputfield-sm":l.size==="small","p-inputtext-lg p-inputfield-lg":l.size==="large","p-invalid":o.$invalid,"p-variant-filled":o.$variant==="filled","p-inputtext-fluid":o.$fluid}]}},Qzn=Bs.extend({name:"inputtext",theme:Jzn,classes:Yzn}),Zzn={name:"BaseInputText",extends:QX,style:Qzn,provide:function(){return{$pcInputText:this,$parentInstance:this}}},W8={name:"InputText",extends:Zzn,inheritAttrs:!1,methods:{onInput:function(r){this.writeValue(r.target.value,r)}},computed:{attrs:function(){return Et(this.ptmi("root",{context:{filled:this.$filled,disabled:this.disabled}}),this.formField)}}},eKn=["value","disabled","aria-invalid"];function tKn(n,r,o,l,u,d){return ze(),jt("input",Et({type:"text",class:n.cx("root"),value:n.d_value,disabled:n.disabled,"aria-invalid":n.$invalid||void 0,onInput:r[0]||(r[0]=function(){return d.onInput&&d.onInput.apply(d,arguments)})},d.attrs),null,16,eKn)}W8.render=tKn;var Qy=MWe(),ZX={name:"Portal",props:{appendTo:{type:[String,Object],default:"body"},disabled:{type:Boolean,default:!1}},data:function(){return{mounted:!1}},mounted:function(){this.mounted=ape()},computed:{inline:function(){return this.disabled||this.appendTo==="self"}}};function nKn(n,r,o,l,u,d){return d.inline?Vr(n.$slots,"default",{key:0}):u.mounted?(ze(),Nn(FBn,{key:1,to:o.appendTo},[Vr(n.$slots,"default")],8,["to"])):fr("",!0)}ZX.render=nKn;var rKn=function(r){var o=r.dt;return` .p-virtualscroller-loader { background: `.concat(o("virtualscroller.loader.mask.background"),`; color: `).concat(o("virtualscroller.loader.mask.color"),`; @@ -1151,7 +1151,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho width: `).concat(o("virtualscroller.loader.icon.size"),`; height: `).concat(o("virtualscroller.loader.icon.size"),`; } -`)},Xzn=` +`)},iKn=` .p-virtualscroller { position: relative; overflow: auto; @@ -1201,7 +1201,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho .p-virtualscroller-inline .p-virtualscroller-content { position: static; } -`,Qjt=Bs.extend({name:"virtualscroller",css:Xzn,theme:qzn}),Jzn={name:"BaseVirtualScroller",extends:Kl,props:{id:{type:String,default:null},style:null,class:null,items:{type:Array,default:null},itemSize:{type:[Number,Array],default:0},scrollHeight:null,scrollWidth:null,orientation:{type:String,default:"vertical"},numToleratedItems:{type:Number,default:null},delay:{type:Number,default:0},resizeDelay:{type:Number,default:10},lazy:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loaderDisabled:{type:Boolean,default:!1},columns:{type:Array,default:null},loading:{type:Boolean,default:!1},showSpacer:{type:Boolean,default:!0},showLoader:{type:Boolean,default:!1},tabindex:{type:Number,default:0},inline:{type:Boolean,default:!1},step:{type:Number,default:0},appendOnly:{type:Boolean,default:!1},autoSize:{type:Boolean,default:!1}},style:Qjt,provide:function(){return{$pcVirtualScroller:this,$parentInstance:this}},beforeMount:function(){var r;Qjt.loadCSS({nonce:(r=this.$primevueConfig)===null||r===void 0||(r=r.csp)===null||r===void 0?void 0:r.nonce})}};function Zq(n){"@babel/helpers - typeof";return Zq=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Zq(n)}function Zjt(n,r){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);r&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable})),o.push.apply(o,l)}return o}function Jz(n){for(var r=1;r1&&arguments[1]!==void 0?arguments[1]:"auto",u=this.isBoth(),d=this.isHorizontal(),h=u?r.every(function(Le){return Le>-1}):r>-1;if(h){var w=this.first,v=this.element,y=v.scrollTop,E=y===void 0?0:y,A=v.scrollLeft,C=A===void 0?0:A,R=this.calculateNumItems(),O=R.numToleratedItems,M=this.getContentPosition(),L=this.itemSize,H=function(){var Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,le=arguments.length>1?arguments[1]:void 0;return Ee<=le?0:Ee},G=function(Ee,le,xe){return Ee*le+xe},j=function(){var Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return o.scrollTo({left:Ee,top:le,behavior:l})},Q=u?{rows:0,cols:0}:0,te=!1,pe=!1;u?(Q={rows:H(r[0],O[0]),cols:H(r[1],O[1])},j(G(Q.cols,L[1],M.left),G(Q.rows,L[0],M.top)),pe=this.lastScrollPos.top!==E||this.lastScrollPos.left!==C,te=Q.rows!==w.rows||Q.cols!==w.cols):(Q=H(r,O),d?j(G(Q,L,M.left),E):j(C,G(Q,L,M.top)),pe=this.lastScrollPos!==(d?C:E),te=Q!==w),this.isRangeChanged=te,pe&&(this.first=Q)}},scrollInView:function(r,o){var l=this,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"auto";if(o){var d=this.isBoth(),h=this.isHorizontal(),w=d?r.every(function(L){return L>-1}):r>-1;if(w){var v=this.getRenderedRange(),y=v.first,E=v.viewport,A=function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return l.scrollTo({left:H,top:G,behavior:u})},C=o==="to-start",R=o==="to-end";if(C){if(d)E.first.rows-y.rows>r[0]?A(E.first.cols*this.itemSize[1],(E.first.rows-1)*this.itemSize[0]):E.first.cols-y.cols>r[1]&&A((E.first.cols-1)*this.itemSize[1],E.first.rows*this.itemSize[0]);else if(E.first-y>r){var O=(E.first-1)*this.itemSize;h?A(O,0):A(0,O)}}else if(R){if(d)E.last.rows-y.rows<=r[0]+1?A(E.first.cols*this.itemSize[1],(E.first.rows+1)*this.itemSize[0]):E.last.cols-y.cols<=r[1]+1&&A((E.first.cols+1)*this.itemSize[1],E.first.rows*this.itemSize[0]);else if(E.last-y<=r+1){var M=(E.first+1)*this.itemSize;h?A(M,0):A(0,M)}}}}else this.scrollToIndex(r,u)},getRenderedRange:function(){var r=function(A,C){return Math.floor(A/(C||A))},o=this.first,l=0;if(this.element){var u=this.isBoth(),d=this.isHorizontal(),h=this.element,w=h.scrollTop,v=h.scrollLeft;if(u)o={rows:r(w,this.itemSize[0]),cols:r(v,this.itemSize[1])},l={rows:o.rows+this.numItemsInViewport.rows,cols:o.cols+this.numItemsInViewport.cols};else{var y=d?v:w;o=r(y,this.itemSize),l=o+this.numItemsInViewport}}return{first:this.first,last:this.last,viewport:{first:o,last:l}}},calculateNumItems:function(){var r=this.isBoth(),o=this.isHorizontal(),l=this.itemSize,u=this.getContentPosition(),d=this.element?this.element.offsetWidth-u.left:0,h=this.element?this.element.offsetHeight-u.top:0,w=function(C,R){return Math.ceil(C/(R||C))},v=function(C){return Math.ceil(C/2)},y=r?{rows:w(h,l[0]),cols:w(d,l[1])}:w(o?d:h,l),E=this.d_numToleratedItems||(r?[v(y.rows),v(y.cols)]:v(y));return{numItemsInViewport:y,numToleratedItems:E}},calculateOptions:function(){var r=this,o=this.isBoth(),l=this.first,u=this.calculateNumItems(),d=u.numItemsInViewport,h=u.numToleratedItems,w=function(E,A,C){var R=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return r.getLast(E+A+(E0&&arguments[0]!==void 0?arguments[0]:0,u=arguments.length>1?arguments[1]:void 0;return this.items?Math.min(u?((r=this.columns||this.items[0])===null||r===void 0?void 0:r.length)||0:((o=this.items)===null||o===void 0?void 0:o.length)||0,l):0},getContentPosition:function(){if(this.content){var r=getComputedStyle(this.content),o=parseFloat(r.paddingLeft)+Math.max(parseFloat(r.left)||0,0),l=parseFloat(r.paddingRight)+Math.max(parseFloat(r.right)||0,0),u=parseFloat(r.paddingTop)+Math.max(parseFloat(r.top)||0,0),d=parseFloat(r.paddingBottom)+Math.max(parseFloat(r.bottom)||0,0);return{left:o,right:l,top:u,bottom:d,x:o+l,y:u+d}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}},setSize:function(){var r=this;if(this.element){var o=this.isBoth(),l=this.isHorizontal(),u=this.element.parentElement,d=this.scrollWidth||"".concat(this.element.offsetWidth||u.offsetWidth,"px"),h=this.scrollHeight||"".concat(this.element.offsetHeight||u.offsetHeight,"px"),w=function(y,E){return r.element.style[y]=E};o||l?(w("height",h),w("width",d)):w("height",h)}},setSpacerSize:function(){var r=this,o=this.items;if(o){var l=this.isBoth(),u=this.isHorizontal(),d=this.getContentPosition(),h=function(v,y,E){var A=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return r.spacerStyle=Jz(Jz({},r.spacerStyle),JQt({},"".concat(v),(y||[]).length*E+A+"px"))};l?(h("height",o,this.itemSize[0],d.y),h("width",this.columns||o[1],this.itemSize[1],d.x)):u?h("width",this.columns||o,this.itemSize,d.x):h("height",o,this.itemSize,d.y)}},setContentPosition:function(r){var o=this;if(this.content&&!this.appendOnly){var l=this.isBoth(),u=this.isHorizontal(),d=r?r.first:this.first,h=function(E,A){return E*A},w=function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return o.contentStyle=Jz(Jz({},o.contentStyle),{transform:"translate3d(".concat(E,"px, ").concat(A,"px, 0)")})};if(l)w(h(d.cols,this.itemSize[1]),h(d.rows,this.itemSize[0]));else{var v=h(d,this.itemSize);u?w(v,0):w(0,v)}}},onScrollPositionChange:function(r){var o=this,l=r.target,u=this.isBoth(),d=this.isHorizontal(),h=this.getContentPosition(),w=function(be,ae){return be?be>ae?be-ae:be:0},v=function(be,ae){return Math.floor(be/(ae||be))},y=function(be,ae,F,me,ye,we){return be<=ye?ye:we?F-me-ye:ae+ye-1},E=function(be,ae,F,me,ye,we,Be){return be<=we?0:Math.max(0,Be?beae?F:be-2*we)},A=function(be,ae,F,me,ye,we){var Be=ae+me+2*ye;return be>=ye&&(Be+=ye+1),o.getLast(Be,we)},C=w(l.scrollTop,h.top),R=w(l.scrollLeft,h.left),O=u?{rows:0,cols:0}:0,M=this.last,L=!1,H=this.lastScrollPos;if(u){var G=this.lastScrollPos.top<=C,j=this.lastScrollPos.left<=R;if(!this.appendOnly||this.appendOnly&&(G||j)){var Q={rows:v(C,this.itemSize[0]),cols:v(R,this.itemSize[1])},te={rows:y(Q.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],G),cols:y(Q.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],j)};O={rows:E(Q.rows,te.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],G),cols:E(Q.cols,te.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],j)},M={rows:A(Q.rows,O.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:A(Q.cols,O.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},L=O.rows!==this.first.rows||M.rows!==this.last.rows||O.cols!==this.first.cols||M.cols!==this.last.cols||this.isRangeChanged,H={top:C,left:R}}}else{var pe=d?R:C,Le=this.lastScrollPos<=pe;if(!this.appendOnly||this.appendOnly&&Le){var Ee=v(pe,this.itemSize),le=y(Ee,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,Le);O=E(Ee,le,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,Le),M=A(Ee,O,this.last,this.numItemsInViewport,this.d_numToleratedItems),L=O!==this.first||M!==this.last||this.isRangeChanged,H=pe}}return{first:O,last:M,isRangeChanged:L,scrollPos:H}},onScrollChange:function(r){var o=this.onScrollPositionChange(r),l=o.first,u=o.last,d=o.isRangeChanged,h=o.scrollPos;if(d){var w={first:l,last:u};if(this.setContentPosition(w),this.first=l,this.last=u,this.lastScrollPos=h,this.$emit("scroll-index-change",w),this.lazy&&this.isPageChanged(l)){var v,y,E={first:this.step?Math.min(this.getPageByFirst(l)*this.step,(((v=this.items)===null||v===void 0?void 0:v.length)||0)-this.step):l,last:Math.min(this.step?(this.getPageByFirst(l)+1)*this.step:u,((y=this.items)===null||y===void 0?void 0:y.length)||0)},A=this.lazyLoadState.first!==E.first||this.lazyLoadState.last!==E.last;A&&this.$emit("lazy-load",E),this.lazyLoadState=E}}},onScroll:function(r){var o=this;if(this.$emit("scroll",r),this.delay){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.isPageChanged()){if(!this.d_loading&&this.showLoader){var l=this.onScrollPositionChange(r),u=l.isRangeChanged,d=u||(this.step?this.isPageChanged():!1);d&&(this.d_loading=!0)}this.scrollTimeout=setTimeout(function(){o.onScrollChange(r),o.d_loading&&o.showLoader&&(!o.lazy||o.loading===void 0)&&(o.d_loading=!1,o.page=o.getPageByFirst())},this.delay)}}else this.onScrollChange(r)},onResize:function(){var r=this;this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(function(){if(Ade(r.element)){var o=r.isBoth(),l=r.isVertical(),u=r.isHorizontal(),d=[lT(r.element),oT(r.element)],h=d[0],w=d[1],v=h!==r.defaultWidth,y=w!==r.defaultHeight,E=o?v||y:u?v:l?y:!1;E&&(r.d_numToleratedItems=r.numToleratedItems,r.defaultWidth=h,r.defaultHeight=w,r.defaultContentWidth=lT(r.content),r.defaultContentHeight=oT(r.content),r.init())}},this.resizeDelay)},bindResizeListener:function(){this.resizeListener||(this.resizeListener=this.onResize.bind(this),window.addEventListener("resize",this.resizeListener),window.addEventListener("orientationchange",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),window.removeEventListener("orientationchange",this.resizeListener),this.resizeListener=null)},getOptions:function(r){var o=(this.items||[]).length,l=this.isBoth()?this.first.rows+r:this.first+r;return{index:l,count:o,first:l===0,last:l===o-1,even:l%2===0,odd:l%2!==0}},getLoaderOptions:function(r,o){var l=this.loaderArr.length;return Jz({index:r,count:l,first:r===0,last:r===l-1,even:r%2===0,odd:r%2!==0},o)},getPageByFirst:function(r){return Math.floor(((r??this.first)+this.d_numToleratedItems*4)/(this.step||1))},isPageChanged:function(r){return this.step&&!this.lazy?this.page!==this.getPageByFirst(r??this.first):!0},setContentEl:function(r){this.content=r||this.content||pT(this.element,'[data-pc-section="content"]')},elementRef:function(r){this.element=r},contentRef:function(r){this.content=r}},computed:{containerClass:function(){return["p-virtualscroller",this.class,{"p-virtualscroller-inline":this.inline,"p-virtualscroller-both p-both-scroll":this.isBoth(),"p-virtualscroller-horizontal p-horizontal-scroll":this.isHorizontal()}]},contentClass:function(){return["p-virtualscroller-content",{"p-virtualscroller-loading":this.d_loading}]},loaderClass:function(){return["p-virtualscroller-loader",{"p-virtualscroller-loader-mask":!this.$slots.loader}]},loadedItems:function(){var r=this;return this.items&&!this.d_loading?this.isBoth()?this.items.slice(this.appendOnly?0:this.first.rows,this.last.rows).map(function(o){return r.columns?o:o.slice(r.appendOnly?0:r.first.cols,r.last.cols)}):this.isHorizontal()&&this.columns?this.items:this.items.slice(this.appendOnly?0:this.first,this.last):[]},loadedRows:function(){return this.d_loading?this.loaderDisabled?this.loaderArr:[]:this.loadedItems},loadedColumns:function(){if(this.columns){var r=this.isBoth(),o=this.isHorizontal();if(r||o)return this.d_loading&&this.loaderDisabled?r?this.loaderArr[0]:this.loaderArr:this.columns.slice(r?this.first.cols:this.first,r?this.last.cols:this.last)}return this.columns}},components:{SpinnerIcon:YX}},Zzn=["tabindex"];function eKn(n,r,o,l,u,d){var h=Ni("SpinnerIcon");return n.disabled?(ze(),Lt(gi,{key:1},[Vr(n.$slots,"default"),Vr(n.$slots,"content",{items:n.items,rows:n.items,columns:d.loadedColumns})],64)):(ze(),Lt("div",Et({key:0,ref:d.elementRef,class:d.containerClass,tabindex:n.tabindex,style:n.style,onScroll:r[0]||(r[0]=function(){return d.onScroll&&d.onScroll.apply(d,arguments)})},n.ptmi("root")),[Vr(n.$slots,"content",{styleClass:d.contentClass,items:d.loadedItems,getItemOptions:d.getOptions,loading:u.d_loading,getLoaderOptions:d.getLoaderOptions,itemSize:n.itemSize,rows:d.loadedRows,columns:d.loadedColumns,contentRef:d.contentRef,spacerStyle:u.spacerStyle,contentStyle:u.contentStyle,vertical:d.isVertical(),horizontal:d.isHorizontal(),both:d.isBoth()},function(){return[mr("div",Et({ref:d.contentRef,class:d.contentClass,style:u.contentStyle},n.ptm("content")),[(ze(!0),Lt(gi,null,uu(d.loadedItems,function(w,v){return Vr(n.$slots,"item",{key:v,item:w,options:d.getOptions(v)})}),128))],16)]}),n.showSpacer?(ze(),Lt("div",Et({key:0,class:"p-virtualscroller-spacer",style:u.spacerStyle},n.ptm("spacer")),null,16)):fr("",!0),!n.loaderDisabled&&n.showLoader&&u.d_loading?(ze(),Lt("div",Et({key:1,class:d.loaderClass},n.ptm("loader")),[n.$slots&&n.$slots.loader?(ze(!0),Lt(gi,{key:0},uu(u.loaderArr,function(w,v){return Vr(n.$slots,"loader",{key:v,options:d.getLoaderOptions(v,d.isBoth()&&{numCols:n.d_numItemsInViewport.cols})})}),128)):fr("",!0),Vr(n.$slots,"loadingicon",{},function(){return[bi(h,Et({spin:"",class:"p-virtualscroller-loading-icon"},n.ptm("loadingIcon")),null,16)]})],16)):fr("",!0)],16,Zzn))}FWe.render=eKn;var tKn=function(r){var o=r.dt;return` +`,iFt=Bs.extend({name:"virtualscroller",css:iKn,theme:rKn}),oKn={name:"BaseVirtualScroller",extends:Kl,props:{id:{type:String,default:null},style:null,class:null,items:{type:Array,default:null},itemSize:{type:[Number,Array],default:0},scrollHeight:null,scrollWidth:null,orientation:{type:String,default:"vertical"},numToleratedItems:{type:Number,default:null},delay:{type:Number,default:0},resizeDelay:{type:Number,default:10},lazy:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loaderDisabled:{type:Boolean,default:!1},columns:{type:Array,default:null},loading:{type:Boolean,default:!1},showSpacer:{type:Boolean,default:!0},showLoader:{type:Boolean,default:!1},tabindex:{type:Number,default:0},inline:{type:Boolean,default:!1},step:{type:Number,default:0},appendOnly:{type:Boolean,default:!1},autoSize:{type:Boolean,default:!1}},style:iFt,provide:function(){return{$pcVirtualScroller:this,$parentInstance:this}},beforeMount:function(){var r;iFt.loadCSS({nonce:(r=this.$primevueConfig)===null||r===void 0||(r=r.csp)===null||r===void 0?void 0:r.nonce})}};function Qq(n){"@babel/helpers - typeof";return Qq=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Qq(n)}function oFt(n,r){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);r&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable})),o.push.apply(o,l)}return o}function Xz(n){for(var r=1;r1&&arguments[1]!==void 0?arguments[1]:"auto",u=this.isBoth(),d=this.isHorizontal(),h=u?r.every(function(De){return De>-1}):r>-1;if(h){var w=this.first,v=this.element,y=v.scrollTop,E=y===void 0?0:y,A=v.scrollLeft,C=A===void 0?0:A,R=this.calculateNumItems(),O=R.numToleratedItems,M=this.getContentPosition(),L=this.itemSize,H=function(){var Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,le=arguments.length>1?arguments[1]:void 0;return Re<=le?0:Re},G=function(Re,le,xe){return Re*le+xe},j=function(){var Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return o.scrollTo({left:Re,top:le,behavior:l})},Q=u?{rows:0,cols:0}:0,te=!1,pe=!1;u?(Q={rows:H(r[0],O[0]),cols:H(r[1],O[1])},j(G(Q.cols,L[1],M.left),G(Q.rows,L[0],M.top)),pe=this.lastScrollPos.top!==E||this.lastScrollPos.left!==C,te=Q.rows!==w.rows||Q.cols!==w.cols):(Q=H(r,O),d?j(G(Q,L,M.left),E):j(C,G(Q,L,M.top)),pe=this.lastScrollPos!==(d?C:E),te=Q!==w),this.isRangeChanged=te,pe&&(this.first=Q)}},scrollInView:function(r,o){var l=this,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"auto";if(o){var d=this.isBoth(),h=this.isHorizontal(),w=d?r.every(function(L){return L>-1}):r>-1;if(w){var v=this.getRenderedRange(),y=v.first,E=v.viewport,A=function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return l.scrollTo({left:H,top:G,behavior:u})},C=o==="to-start",R=o==="to-end";if(C){if(d)E.first.rows-y.rows>r[0]?A(E.first.cols*this.itemSize[1],(E.first.rows-1)*this.itemSize[0]):E.first.cols-y.cols>r[1]&&A((E.first.cols-1)*this.itemSize[1],E.first.rows*this.itemSize[0]);else if(E.first-y>r){var O=(E.first-1)*this.itemSize;h?A(O,0):A(0,O)}}else if(R){if(d)E.last.rows-y.rows<=r[0]+1?A(E.first.cols*this.itemSize[1],(E.first.rows+1)*this.itemSize[0]):E.last.cols-y.cols<=r[1]+1&&A((E.first.cols+1)*this.itemSize[1],E.first.rows*this.itemSize[0]);else if(E.last-y<=r+1){var M=(E.first+1)*this.itemSize;h?A(M,0):A(0,M)}}}}else this.scrollToIndex(r,u)},getRenderedRange:function(){var r=function(A,C){return Math.floor(A/(C||A))},o=this.first,l=0;if(this.element){var u=this.isBoth(),d=this.isHorizontal(),h=this.element,w=h.scrollTop,v=h.scrollLeft;if(u)o={rows:r(w,this.itemSize[0]),cols:r(v,this.itemSize[1])},l={rows:o.rows+this.numItemsInViewport.rows,cols:o.cols+this.numItemsInViewport.cols};else{var y=d?v:w;o=r(y,this.itemSize),l=o+this.numItemsInViewport}}return{first:this.first,last:this.last,viewport:{first:o,last:l}}},calculateNumItems:function(){var r=this.isBoth(),o=this.isHorizontal(),l=this.itemSize,u=this.getContentPosition(),d=this.element?this.element.offsetWidth-u.left:0,h=this.element?this.element.offsetHeight-u.top:0,w=function(C,R){return Math.ceil(C/(R||C))},v=function(C){return Math.ceil(C/2)},y=r?{rows:w(h,l[0]),cols:w(d,l[1])}:w(o?d:h,l),E=this.d_numToleratedItems||(r?[v(y.rows),v(y.cols)]:v(y));return{numItemsInViewport:y,numToleratedItems:E}},calculateOptions:function(){var r=this,o=this.isBoth(),l=this.first,u=this.calculateNumItems(),d=u.numItemsInViewport,h=u.numToleratedItems,w=function(E,A,C){var R=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return r.getLast(E+A+(E0&&arguments[0]!==void 0?arguments[0]:0,u=arguments.length>1?arguments[1]:void 0;return this.items?Math.min(u?((r=this.columns||this.items[0])===null||r===void 0?void 0:r.length)||0:((o=this.items)===null||o===void 0?void 0:o.length)||0,l):0},getContentPosition:function(){if(this.content){var r=getComputedStyle(this.content),o=parseFloat(r.paddingLeft)+Math.max(parseFloat(r.left)||0,0),l=parseFloat(r.paddingRight)+Math.max(parseFloat(r.right)||0,0),u=parseFloat(r.paddingTop)+Math.max(parseFloat(r.top)||0,0),d=parseFloat(r.paddingBottom)+Math.max(parseFloat(r.bottom)||0,0);return{left:o,right:l,top:u,bottom:d,x:o+l,y:u+d}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}},setSize:function(){var r=this;if(this.element){var o=this.isBoth(),l=this.isHorizontal(),u=this.element.parentElement,d=this.scrollWidth||"".concat(this.element.offsetWidth||u.offsetWidth,"px"),h=this.scrollHeight||"".concat(this.element.offsetHeight||u.offsetHeight,"px"),w=function(y,E){return r.element.style[y]=E};o||l?(w("height",h),w("width",d)):w("height",h)}},setSpacerSize:function(){var r=this,o=this.items;if(o){var l=this.isBoth(),u=this.isHorizontal(),d=this.getContentPosition(),h=function(v,y,E){var A=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return r.spacerStyle=Xz(Xz({},r.spacerStyle),tZt({},"".concat(v),(y||[]).length*E+A+"px"))};l?(h("height",o,this.itemSize[0],d.y),h("width",this.columns||o[1],this.itemSize[1],d.x)):u?h("width",this.columns||o,this.itemSize,d.x):h("height",o,this.itemSize,d.y)}},setContentPosition:function(r){var o=this;if(this.content&&!this.appendOnly){var l=this.isBoth(),u=this.isHorizontal(),d=r?r.first:this.first,h=function(E,A){return E*A},w=function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return o.contentStyle=Xz(Xz({},o.contentStyle),{transform:"translate3d(".concat(E,"px, ").concat(A,"px, 0)")})};if(l)w(h(d.cols,this.itemSize[1]),h(d.rows,this.itemSize[0]));else{var v=h(d,this.itemSize);u?w(v,0):w(0,v)}}},onScrollPositionChange:function(r){var o=this,l=r.target,u=this.isBoth(),d=this.isHorizontal(),h=this.getContentPosition(),w=function(be,ae){return be?be>ae?be-ae:be:0},v=function(be,ae){return Math.floor(be/(ae||be))},y=function(be,ae,F,me,ye,we){return be<=ye?ye:we?F-me-ye:ae+ye-1},E=function(be,ae,F,me,ye,we,Be){return be<=we?0:Math.max(0,Be?beae?F:be-2*we)},A=function(be,ae,F,me,ye,we){var Be=ae+me+2*ye;return be>=ye&&(Be+=ye+1),o.getLast(Be,we)},C=w(l.scrollTop,h.top),R=w(l.scrollLeft,h.left),O=u?{rows:0,cols:0}:0,M=this.last,L=!1,H=this.lastScrollPos;if(u){var G=this.lastScrollPos.top<=C,j=this.lastScrollPos.left<=R;if(!this.appendOnly||this.appendOnly&&(G||j)){var Q={rows:v(C,this.itemSize[0]),cols:v(R,this.itemSize[1])},te={rows:y(Q.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],G),cols:y(Q.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],j)};O={rows:E(Q.rows,te.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],G),cols:E(Q.cols,te.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],j)},M={rows:A(Q.rows,O.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:A(Q.cols,O.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},L=O.rows!==this.first.rows||M.rows!==this.last.rows||O.cols!==this.first.cols||M.cols!==this.last.cols||this.isRangeChanged,H={top:C,left:R}}}else{var pe=d?R:C,De=this.lastScrollPos<=pe;if(!this.appendOnly||this.appendOnly&&De){var Re=v(pe,this.itemSize),le=y(Re,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,De);O=E(Re,le,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,De),M=A(Re,O,this.last,this.numItemsInViewport,this.d_numToleratedItems),L=O!==this.first||M!==this.last||this.isRangeChanged,H=pe}}return{first:O,last:M,isRangeChanged:L,scrollPos:H}},onScrollChange:function(r){var o=this.onScrollPositionChange(r),l=o.first,u=o.last,d=o.isRangeChanged,h=o.scrollPos;if(d){var w={first:l,last:u};if(this.setContentPosition(w),this.first=l,this.last=u,this.lastScrollPos=h,this.$emit("scroll-index-change",w),this.lazy&&this.isPageChanged(l)){var v,y,E={first:this.step?Math.min(this.getPageByFirst(l)*this.step,(((v=this.items)===null||v===void 0?void 0:v.length)||0)-this.step):l,last:Math.min(this.step?(this.getPageByFirst(l)+1)*this.step:u,((y=this.items)===null||y===void 0?void 0:y.length)||0)},A=this.lazyLoadState.first!==E.first||this.lazyLoadState.last!==E.last;A&&this.$emit("lazy-load",E),this.lazyLoadState=E}}},onScroll:function(r){var o=this;if(this.$emit("scroll",r),this.delay){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.isPageChanged()){if(!this.d_loading&&this.showLoader){var l=this.onScrollPositionChange(r),u=l.isRangeChanged,d=u||(this.step?this.isPageChanged():!1);d&&(this.d_loading=!0)}this.scrollTimeout=setTimeout(function(){o.onScrollChange(r),o.d_loading&&o.showLoader&&(!o.lazy||o.loading===void 0)&&(o.d_loading=!1,o.page=o.getPageByFirst())},this.delay)}}else this.onScrollChange(r)},onResize:function(){var r=this;this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(function(){if(Ide(r.element)){var o=r.isBoth(),l=r.isVertical(),u=r.isHorizontal(),d=[lT(r.element),oT(r.element)],h=d[0],w=d[1],v=h!==r.defaultWidth,y=w!==r.defaultHeight,E=o?v||y:u?v:l?y:!1;E&&(r.d_numToleratedItems=r.numToleratedItems,r.defaultWidth=h,r.defaultHeight=w,r.defaultContentWidth=lT(r.content),r.defaultContentHeight=oT(r.content),r.init())}},this.resizeDelay)},bindResizeListener:function(){this.resizeListener||(this.resizeListener=this.onResize.bind(this),window.addEventListener("resize",this.resizeListener),window.addEventListener("orientationchange",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),window.removeEventListener("orientationchange",this.resizeListener),this.resizeListener=null)},getOptions:function(r){var o=(this.items||[]).length,l=this.isBoth()?this.first.rows+r:this.first+r;return{index:l,count:o,first:l===0,last:l===o-1,even:l%2===0,odd:l%2!==0}},getLoaderOptions:function(r,o){var l=this.loaderArr.length;return Xz({index:r,count:l,first:r===0,last:r===l-1,even:r%2===0,odd:r%2!==0},o)},getPageByFirst:function(r){return Math.floor(((r??this.first)+this.d_numToleratedItems*4)/(this.step||1))},isPageChanged:function(r){return this.step&&!this.lazy?this.page!==this.getPageByFirst(r??this.first):!0},setContentEl:function(r){this.content=r||this.content||pT(this.element,'[data-pc-section="content"]')},elementRef:function(r){this.element=r},contentRef:function(r){this.content=r}},computed:{containerClass:function(){return["p-virtualscroller",this.class,{"p-virtualscroller-inline":this.inline,"p-virtualscroller-both p-both-scroll":this.isBoth(),"p-virtualscroller-horizontal p-horizontal-scroll":this.isHorizontal()}]},contentClass:function(){return["p-virtualscroller-content",{"p-virtualscroller-loading":this.d_loading}]},loaderClass:function(){return["p-virtualscroller-loader",{"p-virtualscroller-loader-mask":!this.$slots.loader}]},loadedItems:function(){var r=this;return this.items&&!this.d_loading?this.isBoth()?this.items.slice(this.appendOnly?0:this.first.rows,this.last.rows).map(function(o){return r.columns?o:o.slice(r.appendOnly?0:r.first.cols,r.last.cols)}):this.isHorizontal()&&this.columns?this.items:this.items.slice(this.appendOnly?0:this.first,this.last):[]},loadedRows:function(){return this.d_loading?this.loaderDisabled?this.loaderArr:[]:this.loadedItems},loadedColumns:function(){if(this.columns){var r=this.isBoth(),o=this.isHorizontal();if(r||o)return this.d_loading&&this.loaderDisabled?r?this.loaderArr[0]:this.loaderArr:this.columns.slice(r?this.first.cols:this.first,r?this.last.cols:this.last)}return this.columns}},components:{SpinnerIcon:YX}},aKn=["tabindex"];function cKn(n,r,o,l,u,d){var h=Ni("SpinnerIcon");return n.disabled?(ze(),jt(gi,{key:1},[Vr(n.$slots,"default"),Vr(n.$slots,"content",{items:n.items,rows:n.items,columns:d.loadedColumns})],64)):(ze(),jt("div",Et({key:0,ref:d.elementRef,class:d.containerClass,tabindex:n.tabindex,style:n.style,onScroll:r[0]||(r[0]=function(){return d.onScroll&&d.onScroll.apply(d,arguments)})},n.ptmi("root")),[Vr(n.$slots,"content",{styleClass:d.contentClass,items:d.loadedItems,getItemOptions:d.getOptions,loading:u.d_loading,getLoaderOptions:d.getLoaderOptions,itemSize:n.itemSize,rows:d.loadedRows,columns:d.loadedColumns,contentRef:d.contentRef,spacerStyle:u.spacerStyle,contentStyle:u.contentStyle,vertical:d.isVertical(),horizontal:d.isHorizontal(),both:d.isBoth()},function(){return[mr("div",Et({ref:d.contentRef,class:d.contentClass,style:u.contentStyle},n.ptm("content")),[(ze(!0),jt(gi,null,uu(d.loadedItems,function(w,v){return Vr(n.$slots,"item",{key:v,item:w,options:d.getOptions(v)})}),128))],16)]}),n.showSpacer?(ze(),jt("div",Et({key:0,class:"p-virtualscroller-spacer",style:u.spacerStyle},n.ptm("spacer")),null,16)):fr("",!0),!n.loaderDisabled&&n.showLoader&&u.d_loading?(ze(),jt("div",Et({key:1,class:d.loaderClass},n.ptm("loader")),[n.$slots&&n.$slots.loader?(ze(!0),jt(gi,{key:0},uu(u.loaderArr,function(w,v){return Vr(n.$slots,"loader",{key:v,options:d.getLoaderOptions(v,d.isBoth()&&{numCols:n.d_numItemsInViewport.cols})})}),128)):fr("",!0),Vr(n.$slots,"loadingicon",{},function(){return[bi(h,Et({spin:"",class:"p-virtualscroller-loading-icon"},n.ptm("loadingIcon")),null,16)]})],16)):fr("",!0)],16,aKn))}zWe.render=cKn;var uKn=function(r){var o=r.dt;return` .p-select { display: inline-flex; cursor: pointer; @@ -1424,8 +1424,8 @@ input.p-select-label { width: `).concat(o("select.lg.font.size"),`; height: `).concat(o("select.lg.font.size"),`; } -`)},nKn={root:function(r){var o=r.instance,l=r.props,u=r.state;return["p-select p-component p-inputwrapper",{"p-disabled":l.disabled,"p-invalid":o.$invalid,"p-variant-filled":o.$variant==="filled","p-focus":u.focused,"p-inputwrapper-filled":o.$filled,"p-inputwrapper-focus":u.focused||u.overlayVisible,"p-select-open":u.overlayVisible,"p-select-fluid":o.$fluid,"p-select-sm p-inputfield-sm":l.size==="small","p-select-lg p-inputfield-lg":l.size==="large"}]},label:function(r){var o=r.instance,l=r.props;return["p-select-label",{"p-placeholder":!l.editable&&o.label===l.placeholder,"p-select-label-empty":!l.editable&&!o.$slots.value&&(o.label==="p-emptylabel"||o.label.length===0)}]},clearIcon:"p-select-clear-icon",dropdown:"p-select-dropdown",loadingicon:"p-select-loading-icon",dropdownIcon:"p-select-dropdown-icon",overlay:"p-select-overlay p-component",header:"p-select-header",pcFilter:"p-select-filter",listContainer:"p-select-list-container",list:"p-select-list",optionGroup:"p-select-option-group",optionGroupLabel:"p-select-option-group-label",option:function(r){var o=r.instance,l=r.props,u=r.state,d=r.option,h=r.focusedOption;return["p-select-option",{"p-select-option-selected":o.isSelected(d)&&l.highlightOnSelect,"p-focus":u.focusedOptionIndex===h,"p-disabled":o.isOptionDisabled(d)}]},optionLabel:"p-select-option-label",optionCheckIcon:"p-select-option-check-icon",optionBlankIcon:"p-select-option-blank-icon",emptyMessage:"p-select-empty-message"},rKn=Bs.extend({name:"select",theme:tKn,classes:nKn}),iKn={name:"BaseSelect",extends:QX,props:{options:Array,optionLabel:[String,Function],optionValue:[String,Function],optionDisabled:[String,Function],optionGroupLabel:[String,Function],optionGroupChildren:[String,Function],scrollHeight:{type:String,default:"14rem"},filter:Boolean,filterPlaceholder:String,filterLocale:String,filterMatchMode:{type:String,default:"contains"},filterFields:{type:Array,default:null},editable:Boolean,placeholder:{type:String,default:null},dataKey:null,showClear:{type:Boolean,default:!1},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},labelId:{type:String,default:null},labelClass:{type:[String,Object],default:null},labelStyle:{type:Object,default:null},panelClass:{type:[String,Object],default:null},overlayStyle:{type:Object,default:null},overlayClass:{type:[String,Object],default:null},panelStyle:{type:Object,default:null},appendTo:{type:[String,Object],default:"body"},loading:{type:Boolean,default:!1},clearIcon:{type:String,default:void 0},dropdownIcon:{type:String,default:void 0},filterIcon:{type:String,default:void 0},loadingIcon:{type:String,default:void 0},resetFilterOnHide:{type:Boolean,default:!1},resetFilterOnClear:{type:Boolean,default:!1},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!1},autoFilterFocus:{type:Boolean,default:!1},selectOnFocus:{type:Boolean,default:!1},focusOnHover:{type:Boolean,default:!0},highlightOnSelect:{type:Boolean,default:!0},checkmark:{type:Boolean,default:!1},filterMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptyFilterMessage:{type:String,default:null},emptyMessage:{type:String,default:null},tabindex:{type:Number,default:0},ariaLabel:{type:String,default:null},ariaLabelledby:{type:String,default:null}},style:rKn,provide:function(){return{$pcSelect:this,$parentInstance:this}}};function eX(n){"@babel/helpers - typeof";return eX=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},eX(n)}function oKn(n){return cKn(n)||aKn(n)||lKn(n)||sKn()}function sKn(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lKn(n,r){if(n){if(typeof n=="string")return MLe(n,r);var o={}.toString.call(n).slice(8,-1);return o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set"?Array.from(n):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?MLe(n,r):void 0}}function aKn(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function cKn(n){if(Array.isArray(n))return MLe(n)}function MLe(n,r){(r==null||r>n.length)&&(r=n.length);for(var o=0,l=Array(r);o2&&arguments[2]!==void 0?arguments[2]:!0,u=this.getOptionValue(o);this.updateModel(r,u),l&&this.hide(!0)},onOptionMouseMove:function(r,o){this.focusOnHover&&this.changeFocusedOptionIndex(r,o)},onFilterChange:function(r){var o=r.target.value;this.filterValue=o,this.focusedOptionIndex=-1,this.$emit("filter",{originalEvent:r,value:o}),!this.virtualScrollerDisabled&&this.virtualScroller.scrollToIndex(0)},onFilterKeyDown:function(r){if(!r.isComposing)switch(r.code){case"ArrowDown":this.onArrowDownKey(r);break;case"ArrowUp":this.onArrowUpKey(r,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(r,!0);break;case"Home":this.onHomeKey(r,!0);break;case"End":this.onEndKey(r,!0);break;case"Enter":case"NumpadEnter":this.onEnterKey(r);break;case"Escape":this.onEscapeKey(r);break;case"Tab":this.onTabKey(r,!0);break}},onFilterBlur:function(){this.focusedOptionIndex=-1},onFilterUpdated:function(){this.overlayVisible&&this.alignOverlay()},onOverlayClick:function(r){Zy.emit("overlay-click",{originalEvent:r,target:this.$el})},onOverlayKeyDown:function(r){switch(r.code){case"Escape":this.onEscapeKey(r);break}},onArrowDownKey:function(r){if(!this.overlayVisible)this.show(),this.editable&&this.changeFocusedOptionIndex(r,this.findSelectedOptionIndex());else{var o=this.focusedOptionIndex!==-1?this.findNextOptionIndex(this.focusedOptionIndex):this.clicked?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(r,o)}r.preventDefault()},onArrowUpKey:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(r.altKey&&!o)this.focusedOptionIndex!==-1&&this.onOptionSelect(r,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(),r.preventDefault();else{var l=this.focusedOptionIndex!==-1?this.findPrevOptionIndex(this.focusedOptionIndex):this.clicked?this.findLastOptionIndex():this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(r,l),!this.overlayVisible&&this.show(),r.preventDefault()}},onArrowLeftKey:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;o&&(this.focusedOptionIndex=-1)},onHomeKey:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(o){var l=r.currentTarget;r.shiftKey?l.setSelectionRange(0,r.target.selectionStart):(l.setSelectionRange(0,0),this.focusedOptionIndex=-1)}else this.changeFocusedOptionIndex(r,this.findFirstOptionIndex()),!this.overlayVisible&&this.show();r.preventDefault()},onEndKey:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(o){var l=r.currentTarget;if(r.shiftKey)l.setSelectionRange(r.target.selectionStart,l.value.length);else{var u=l.value.length;l.setSelectionRange(u,u),this.focusedOptionIndex=-1}}else this.changeFocusedOptionIndex(r,this.findLastOptionIndex()),!this.overlayVisible&&this.show();r.preventDefault()},onPageUpKey:function(r){this.scrollInView(0),r.preventDefault()},onPageDownKey:function(r){this.scrollInView(this.visibleOptions.length-1),r.preventDefault()},onEnterKey:function(r){this.overlayVisible?(this.focusedOptionIndex!==-1&&this.onOptionSelect(r,this.visibleOptions[this.focusedOptionIndex]),this.hide()):(this.focusedOptionIndex=-1,this.onArrowDownKey(r)),r.preventDefault()},onSpaceKey:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;!o&&this.onEnterKey(r)},onEscapeKey:function(r){this.overlayVisible&&this.hide(!0),r.preventDefault(),r.stopPropagation()},onTabKey:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;o||(this.overlayVisible&&this.hasFocusableElements()?(Gp(this.$refs.firstHiddenFocusableElementOnOverlay),r.preventDefault()):(this.focusedOptionIndex!==-1&&this.onOptionSelect(r,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(this.filter)))},onBackspaceKey:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;o&&!this.overlayVisible&&this.show()},onOverlayEnter:function(r){var o=this;nv.set("overlay",r,this.$primevue.config.zIndex.overlay),xL(r,{position:"absolute",top:"0",left:"0"}),this.alignOverlay(),this.scrollInView(),setTimeout(function(){o.autoFilterFocus&&o.filter&&Gp(o.$refs.filterInput.$el)},1)},onOverlayAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit("show")},onOverlayLeave:function(){var r=this;this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.autoFilterFocus&&this.filter&&!this.editable&&this.$nextTick(function(){Gp(r.$refs.filterInput.$el)}),this.$emit("hide"),this.overlay=null},onOverlayAfterLeave:function(r){nv.clear(r)},alignOverlay:function(){this.appendTo==="self"?jHn(this.overlay,this.$el):(this.overlay.style.minWidth=Kp(this.$el)+"px",$We(this.overlay,this.$el))},bindOutsideClickListener:function(){var r=this;this.outsideClickListener||(this.outsideClickListener=function(o){r.overlayVisible&&r.overlay&&!r.$el.contains(o.target)&&!r.overlay.contains(o.target)&&r.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener:function(){var r=this;this.scrollHandler||(this.scrollHandler=new jWe(this.$refs.container,function(){r.overlayVisible&&r.hide()})),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var r=this;this.resizeListener||(this.resizeListener=function(){r.overlayVisible&&!MWe()&&r.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},bindLabelClickListener:function(){var r=this;if(!this.editable&&!this.labelClickListener){var o=document.querySelector('label[for="'.concat(this.labelId,'"]'));o&&Ade(o)&&(this.labelClickListener=function(){Gp(r.$refs.focusInput)},o.addEventListener("click",this.labelClickListener))}},unbindLabelClickListener:function(){if(this.labelClickListener){var r=document.querySelector('label[for="'.concat(this.labelId,'"]'));r&&Ade(r)&&r.removeEventListener("click",this.labelClickListener)}},hasFocusableElements:function(){return IWe(this.overlay,':not([data-p-hidden-focusable="true"])').length>0},isOptionMatched:function(r){var o;return this.isValidOption(r)&&typeof this.getOptionLabel(r)=="string"&&((o=this.getOptionLabel(r))===null||o===void 0?void 0:o.toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale)))},isValidOption:function(r){return ks(r)&&!(this.isOptionDisabled(r)||this.isOptionGroup(r))},isValidSelectedOption:function(r){return this.isValidOption(r)&&this.isSelected(r)},isSelected:function(r){return WP(this.d_value,this.getOptionValue(r),this.equalityKey)},findFirstOptionIndex:function(){var r=this;return this.visibleOptions.findIndex(function(o){return r.isValidOption(o)})},findLastOptionIndex:function(){var r=this;return yjt(this.visibleOptions,function(o){return r.isValidOption(o)})},findNextOptionIndex:function(r){var o=this,l=r-1?l+r+1:r},findPrevOptionIndex:function(r){var o=this,l=r>0?yjt(this.visibleOptions.slice(0,r),function(u){return o.isValidOption(u)}):-1;return l>-1?l:r},findSelectedOptionIndex:function(){var r=this;return this.$filled?this.visibleOptions.findIndex(function(o){return r.isValidSelectedOption(o)}):-1},findFirstFocusedOptionIndex:function(){var r=this.findSelectedOptionIndex();return r<0?this.findFirstOptionIndex():r},findLastFocusedOptionIndex:function(){var r=this.findSelectedOptionIndex();return r<0?this.findLastOptionIndex():r},searchOptions:function(r,o){var l=this;this.searchValue=(this.searchValue||"")+o;var u=-1,d=!1;return ks(this.searchValue)&&(this.focusedOptionIndex!==-1?(u=this.visibleOptions.slice(this.focusedOptionIndex).findIndex(function(h){return l.isOptionMatched(h)}),u=u===-1?this.visibleOptions.slice(0,this.focusedOptionIndex).findIndex(function(h){return l.isOptionMatched(h)}):u+this.focusedOptionIndex):u=this.visibleOptions.findIndex(function(h){return l.isOptionMatched(h)}),u!==-1&&(d=!0),u===-1&&this.focusedOptionIndex===-1&&(u=this.findFirstFocusedOptionIndex()),u!==-1&&this.changeFocusedOptionIndex(r,u)),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){l.searchValue="",l.searchTimeout=null},500),d},changeFocusedOptionIndex:function(r,o){this.focusedOptionIndex!==o&&(this.focusedOptionIndex=o,this.scrollInView(),this.selectOnFocus&&this.onOptionSelect(r,this.visibleOptions[o],!1))},scrollInView:function(){var r=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:-1;this.$nextTick(function(){var l=o!==-1?"".concat(r.id,"_").concat(o):r.focusedOptionId,u=pT(r.list,'li[id="'.concat(l,'"]'));u?u.scrollIntoView&&u.scrollIntoView({block:"nearest",inline:"start"}):r.virtualScrollerDisabled||r.virtualScroller&&r.virtualScroller.scrollToIndex(o!==-1?o:r.focusedOptionIndex)})},autoUpdateModel:function(){this.selectOnFocus&&this.autoOptionFocus&&!this.$filled&&(this.focusedOptionIndex=this.findFirstFocusedOptionIndex(),this.onOptionSelect(null,this.visibleOptions[this.focusedOptionIndex],!1))},updateModel:function(r,o){this.writeValue(o,r),this.$emit("change",{originalEvent:r,value:o})},flatOptions:function(r){var o=this;return(r||[]).reduce(function(l,u,d){l.push({optionGroup:u,group:!0,index:d});var h=o.getOptionGroupChildren(u);return h&&h.forEach(function(w){return l.push(w)}),l},[])},overlayRef:function(r){this.overlay=r},listRef:function(r,o){this.list=r,o&&o(r)},virtualScrollerRef:function(r){this.virtualScroller=r}},computed:{visibleOptions:function(){var r=this,o=this.optionGroupLabel?this.flatOptions(this.options):this.options||[];if(this.filterValue){var l=$Le.filter(o,this.searchFields,this.filterValue,this.filterMatchMode,this.filterLocale);if(this.optionGroupLabel){var u=this.options||[],d=[];return u.forEach(function(h){var w=r.getOptionGroupChildren(h),v=w.filter(function(y){return l.includes(y)});v.length>0&&d.push(tFt(tFt({},h),{},YQt({},typeof r.optionGroupChildren=="string"?r.optionGroupChildren:"items",oKn(v))))}),this.flatOptions(d)}return l}return o},hasSelectedOption:function(){return this.$filled},label:function(){var r=this.findSelectedOptionIndex();return r!==-1?this.getOptionLabel(this.visibleOptions[r]):this.placeholder||"p-emptylabel"},editableInputValue:function(){var r=this.findSelectedOptionIndex();return r!==-1?this.getOptionLabel(this.visibleOptions[r]):this.d_value||""},equalityKey:function(){return this.optionValue?null:this.dataKey},searchFields:function(){return this.filterFields||[this.optionLabel]},filterResultMessageText:function(){return ks(this.visibleOptions)?this.filterMessageText.replaceAll("{0}",this.visibleOptions.length):this.emptyFilterMessageText},filterMessageText:function(){return this.filterMessage||this.$primevue.config.locale.searchMessage||""},emptyFilterMessageText:function(){return this.emptyFilterMessage||this.$primevue.config.locale.emptySearchMessage||this.$primevue.config.locale.emptyFilterMessage||""},emptyMessageText:function(){return this.emptyMessage||this.$primevue.config.locale.emptyMessage||""},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||""},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||""},selectedMessageText:function(){return this.$filled?this.selectionMessageText.replaceAll("{0}","1"):this.emptySelectionMessageText},focusedOptionId:function(){return this.focusedOptionIndex!==-1?"".concat(this.id,"_").concat(this.focusedOptionIndex):null},ariaSetSize:function(){var r=this;return this.visibleOptions.filter(function(o){return!r.isOptionGroup(o)}).length},isClearIconVisible:function(){return this.showClear&&this.d_value!=null&&ks(this.options)},virtualScrollerDisabled:function(){return!this.virtualScrollerOptions}},directives:{ripple:bk},components:{InputText:W8,VirtualScroller:FWe,Portal:ZX,InputIcon:XQt,IconField:qQt,TimesIcon:lpe,ChevronDownIcon:spe,SpinnerIcon:YX,SearchIcon:KQt,CheckIcon:rj,BlankIcon:zQt}},dKn=["id"],hKn=["id","value","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant","aria-invalid"],pKn=["id","tabindex","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant","aria-disabled"],bKn=["id"],gKn=["id"],wKn=["id","aria-label","aria-selected","aria-disabled","aria-setsize","aria-posinset","onClick","onMousemove","data-p-selected","data-p-focused","data-p-disabled"];function mKn(n,r,o,l,u,d){var h=Ni("SpinnerIcon"),w=Ni("InputText"),v=Ni("SearchIcon"),y=Ni("InputIcon"),E=Ni("IconField"),A=Ni("CheckIcon"),C=Ni("BlankIcon"),R=Ni("VirtualScroller"),O=Ni("Portal"),M=TS("ripple");return ze(),Lt("div",Et({ref:"container",id:u.id,class:n.cx("root"),onClick:r[11]||(r[11]=function(){return d.onContainerClick&&d.onContainerClick.apply(d,arguments)})},n.ptmi("root")),[n.editable?(ze(),Lt("input",Et({key:0,ref:"focusInput",id:n.labelId||n.inputId,type:"text",class:[n.cx("label"),n.inputClass,n.labelClass],style:[n.inputStyle,n.labelStyle],value:d.editableInputValue,placeholder:n.placeholder,tabindex:n.disabled?-1:n.tabindex,disabled:n.disabled,autocomplete:"off",role:"combobox","aria-label":n.ariaLabel,"aria-labelledby":n.ariaLabelledby,"aria-haspopup":"listbox","aria-expanded":u.overlayVisible,"aria-controls":u.id+"_list","aria-activedescendant":u.focused?d.focusedOptionId:void 0,"aria-invalid":n.invalid||void 0,onFocus:r[0]||(r[0]=function(){return d.onFocus&&d.onFocus.apply(d,arguments)}),onBlur:r[1]||(r[1]=function(){return d.onBlur&&d.onBlur.apply(d,arguments)}),onKeydown:r[2]||(r[2]=function(){return d.onKeyDown&&d.onKeyDown.apply(d,arguments)}),onInput:r[3]||(r[3]=function(){return d.onEditableInput&&d.onEditableInput.apply(d,arguments)})},n.ptm("label")),null,16,hKn)):(ze(),Lt("span",Et({key:1,ref:"focusInput",id:n.labelId||n.inputId,class:[n.cx("label"),n.inputClass,n.labelClass],style:[n.inputStyle,n.labelStyle],tabindex:n.disabled?-1:n.tabindex,role:"combobox","aria-label":n.ariaLabel||(d.label==="p-emptylabel"?void 0:d.label),"aria-labelledby":n.ariaLabelledby,"aria-haspopup":"listbox","aria-expanded":u.overlayVisible,"aria-controls":u.id+"_list","aria-activedescendant":u.focused?d.focusedOptionId:void 0,"aria-disabled":n.disabled,onFocus:r[4]||(r[4]=function(){return d.onFocus&&d.onFocus.apply(d,arguments)}),onBlur:r[5]||(r[5]=function(){return d.onBlur&&d.onBlur.apply(d,arguments)}),onKeydown:r[6]||(r[6]=function(){return d.onKeyDown&&d.onKeyDown.apply(d,arguments)})},n.ptm("label")),[Vr(n.$slots,"value",{value:n.d_value,placeholder:n.placeholder},function(){var L;return[nm(na(d.label==="p-emptylabel"?" ":(L=d.label)!==null&&L!==void 0?L:"empty"),1)]})],16,pKn)),d.isClearIconVisible?Vr(n.$slots,"clearicon",{key:2,class:Lo(n.cx("clearIcon")),clearCallback:d.onClearClick},function(){return[(ze(),Nn(jo(n.clearIcon?"i":"TimesIcon"),Et({ref:"clearIcon",class:[n.cx("clearIcon"),n.clearIcon],onClick:d.onClearClick},n.ptm("clearIcon"),{"data-pc-section":"clearicon"}),null,16,["class","onClick"]))]}):fr("",!0),mr("div",Et({class:n.cx("dropdown")},n.ptm("dropdown")),[n.loading?Vr(n.$slots,"loadingicon",{key:0,class:Lo(n.cx("loadingIcon"))},function(){return[n.loadingIcon?(ze(),Lt("span",Et({key:0,class:[n.cx("loadingIcon"),"pi-spin",n.loadingIcon],"aria-hidden":"true"},n.ptm("loadingIcon")),null,16)):(ze(),Nn(h,Et({key:1,class:n.cx("loadingIcon"),spin:"","aria-hidden":"true"},n.ptm("loadingIcon")),null,16,["class"]))]}):Vr(n.$slots,"dropdownicon",{key:1,class:Lo(n.cx("dropdownIcon"))},function(){return[(ze(),Nn(jo(n.dropdownIcon?"span":"ChevronDownIcon"),Et({class:[n.cx("dropdownIcon"),n.dropdownIcon],"aria-hidden":"true"},n.ptm("dropdownIcon")),null,16,["class"]))]})],16),bi(O,{appendTo:n.appendTo},{default:vi(function(){return[bi(rpe,Et({name:"p-connected-overlay",onEnter:d.onOverlayEnter,onAfterEnter:d.onOverlayAfterEnter,onLeave:d.onOverlayLeave,onAfterLeave:d.onOverlayAfterLeave},n.ptm("transition")),{default:vi(function(){return[u.overlayVisible?(ze(),Lt("div",Et({key:0,ref:d.overlayRef,class:[n.cx("overlay"),n.panelClass,n.overlayClass],style:[n.panelStyle,n.overlayStyle],onClick:r[9]||(r[9]=function(){return d.onOverlayClick&&d.onOverlayClick.apply(d,arguments)}),onKeydown:r[10]||(r[10]=function(){return d.onOverlayKeyDown&&d.onOverlayKeyDown.apply(d,arguments)})},n.ptm("overlay")),[mr("span",Et({ref:"firstHiddenFocusableElementOnOverlay",role:"presentation","aria-hidden":"true",class:"p-hidden-accessible p-hidden-focusable",tabindex:0,onFocus:r[7]||(r[7]=function(){return d.onFirstHiddenFocus&&d.onFirstHiddenFocus.apply(d,arguments)})},n.ptm("hiddenFirstFocusableEl"),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16),Vr(n.$slots,"header",{value:n.d_value,options:d.visibleOptions}),n.filter?(ze(),Lt("div",Et({key:0,class:n.cx("header")},n.ptm("header")),[bi(E,{unstyled:n.unstyled,pt:n.ptm("pcFilterContainer")},{default:vi(function(){return[bi(w,{ref:"filterInput",type:"text",value:u.filterValue,onVnodeMounted:d.onFilterUpdated,onVnodeUpdated:d.onFilterUpdated,class:Lo(n.cx("pcFilter")),placeholder:n.filterPlaceholder,variant:n.variant,unstyled:n.unstyled,role:"searchbox",autocomplete:"off","aria-owns":u.id+"_list","aria-activedescendant":d.focusedOptionId,onKeydown:d.onFilterKeyDown,onBlur:d.onFilterBlur,onInput:d.onFilterChange,pt:n.ptm("pcFilter")},null,8,["value","onVnodeMounted","onVnodeUpdated","class","placeholder","variant","unstyled","aria-owns","aria-activedescendant","onKeydown","onBlur","onInput","pt"]),bi(y,{unstyled:n.unstyled,pt:n.ptm("pcFilterIconContainer")},{default:vi(function(){return[Vr(n.$slots,"filtericon",{},function(){return[n.filterIcon?(ze(),Lt("span",Et({key:0,class:n.filterIcon},n.ptm("filterIcon")),null,16)):(ze(),Nn(v,EL(Et({key:1},n.ptm("filterIcon"))),null,16))]})]}),_:3},8,["unstyled","pt"])]}),_:3},8,["unstyled","pt"]),mr("span",Et({role:"status","aria-live":"polite",class:"p-hidden-accessible"},n.ptm("hiddenFilterResult"),{"data-p-hidden-accessible":!0}),na(d.filterResultMessageText),17)],16)):fr("",!0),mr("div",Et({class:n.cx("listContainer"),style:{"max-height":d.virtualScrollerDisabled?n.scrollHeight:""}},n.ptm("listContainer")),[bi(R,Et({ref:d.virtualScrollerRef},n.virtualScrollerOptions,{items:d.visibleOptions,style:{height:n.scrollHeight},tabindex:-1,disabled:d.virtualScrollerDisabled,pt:n.ptm("virtualScroller")}),jq({content:vi(function(L){var H=L.styleClass,G=L.contentRef,j=L.items,Q=L.getItemOptions,te=L.contentStyle,pe=L.itemSize;return[mr("ul",Et({ref:function(Ee){return d.listRef(Ee,G)},id:u.id+"_list",class:[n.cx("list"),H],style:te,role:"listbox"},n.ptm("list")),[(ze(!0),Lt(gi,null,uu(j,function(Le,Ee){return ze(),Lt(gi,{key:d.getOptionRenderKey(Le,d.getOptionIndex(Ee,Q))},[d.isOptionGroup(Le)?(ze(),Lt("li",Et({key:0,id:u.id+"_"+d.getOptionIndex(Ee,Q),style:{height:pe?pe+"px":void 0},class:n.cx("optionGroup"),role:"option",ref_for:!0},n.ptm("optionGroup")),[Vr(n.$slots,"optiongroup",{option:Le.optionGroup,index:d.getOptionIndex(Ee,Q)},function(){return[mr("span",Et({class:n.cx("optionGroupLabel"),ref_for:!0},n.ptm("optionGroupLabel")),na(d.getOptionGroupLabel(Le.optionGroup)),17)]})],16,gKn)):AS((ze(),Lt("li",Et({key:1,id:u.id+"_"+d.getOptionIndex(Ee,Q),class:n.cx("option",{option:Le,focusedOption:d.getOptionIndex(Ee,Q)}),style:{height:pe?pe+"px":void 0},role:"option","aria-label":d.getOptionLabel(Le),"aria-selected":d.isSelected(Le),"aria-disabled":d.isOptionDisabled(Le),"aria-setsize":d.ariaSetSize,"aria-posinset":d.getAriaPosInset(d.getOptionIndex(Ee,Q)),onClick:function(xe){return d.onOptionSelect(xe,Le)},onMousemove:function(xe){return d.onOptionMouseMove(xe,d.getOptionIndex(Ee,Q))},"data-p-selected":d.isSelected(Le),"data-p-focused":u.focusedOptionIndex===d.getOptionIndex(Ee,Q),"data-p-disabled":d.isOptionDisabled(Le),ref_for:!0},d.getPTItemOptions(Le,Q,Ee,"option")),[n.checkmark?(ze(),Lt(gi,{key:0},[d.isSelected(Le)?(ze(),Nn(A,Et({key:0,class:n.cx("optionCheckIcon"),ref_for:!0},n.ptm("optionCheckIcon")),null,16,["class"])):(ze(),Nn(C,Et({key:1,class:n.cx("optionBlankIcon"),ref_for:!0},n.ptm("optionBlankIcon")),null,16,["class"]))],64)):fr("",!0),Vr(n.$slots,"option",{option:Le,selected:d.isSelected(Le),index:d.getOptionIndex(Ee,Q)},function(){return[mr("span",Et({class:n.cx("optionLabel"),ref_for:!0},n.ptm("optionLabel")),na(d.getOptionLabel(Le)),17)]})],16,wKn)),[[M]])],64)}),128)),u.filterValue&&(!j||j&&j.length===0)?(ze(),Lt("li",Et({key:0,class:n.cx("emptyMessage"),role:"option"},n.ptm("emptyMessage"),{"data-p-hidden-accessible":!0}),[Vr(n.$slots,"emptyfilter",{},function(){return[nm(na(d.emptyFilterMessageText),1)]})],16)):!n.options||n.options&&n.options.length===0?(ze(),Lt("li",Et({key:1,class:n.cx("emptyMessage"),role:"option"},n.ptm("emptyMessage"),{"data-p-hidden-accessible":!0}),[Vr(n.$slots,"empty",{},function(){return[nm(na(d.emptyMessageText),1)]})],16)):fr("",!0)],16,bKn)]}),_:2},[n.$slots.loader?{name:"loader",fn:vi(function(L){var H=L.options;return[Vr(n.$slots,"loader",{options:H})]}),key:"0"}:void 0]),1040,["items","style","disabled","pt"])],16),Vr(n.$slots,"footer",{value:n.d_value,options:d.visibleOptions}),!n.options||n.options&&n.options.length===0?(ze(),Lt("span",Et({key:1,role:"status","aria-live":"polite",class:"p-hidden-accessible"},n.ptm("hiddenEmptyMessage"),{"data-p-hidden-accessible":!0}),na(d.emptyMessageText),17)):fr("",!0),mr("span",Et({role:"status","aria-live":"polite",class:"p-hidden-accessible"},n.ptm("hiddenSelectedMessage"),{"data-p-hidden-accessible":!0}),na(d.selectedMessageText),17),mr("span",Et({ref:"lastHiddenFocusableElementOnOverlay",role:"presentation","aria-hidden":"true",class:"p-hidden-accessible p-hidden-focusable",tabindex:0,onFocus:r[8]||(r[8]=function(){return d.onLastHiddenFocus&&d.onLastHiddenFocus.apply(d,arguments)})},n.ptm("hiddenLastFocusableEl"),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16)],16)):fr("",!0)]}),_:3},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]}),_:3},8,["appendTo"])],16,dKn)}eJ.render=mKn;var QQt={name:"WindowMaximizeIcon",extends:Fc};function yKn(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z",fill:"currentColor"},null,-1)]),16)}QQt.render=yKn;var ZQt={name:"WindowMinimizeIcon",extends:Fc};function vKn(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z",fill:"currentColor"},null,-1)]),16)}ZQt.render=vKn;var _Kn=Bs.extend({name:"focustrap-directive"}),SKn=cl.extend({style:_Kn});function tX(n){"@babel/helpers - typeof";return tX=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},tX(n)}function nFt(n,r){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);r&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable})),o.push.apply(o,l)}return o}function rFt(n){for(var r=1;rn.length)&&(r=n.length);for(var o=0,l=Array(r);o2&&arguments[2]!==void 0?arguments[2]:!0,u=this.getOptionValue(o);this.updateModel(r,u),l&&this.hide(!0)},onOptionMouseMove:function(r,o){this.focusOnHover&&this.changeFocusedOptionIndex(r,o)},onFilterChange:function(r){var o=r.target.value;this.filterValue=o,this.focusedOptionIndex=-1,this.$emit("filter",{originalEvent:r,value:o}),!this.virtualScrollerDisabled&&this.virtualScroller.scrollToIndex(0)},onFilterKeyDown:function(r){if(!r.isComposing)switch(r.code){case"ArrowDown":this.onArrowDownKey(r);break;case"ArrowUp":this.onArrowUpKey(r,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(r,!0);break;case"Home":this.onHomeKey(r,!0);break;case"End":this.onEndKey(r,!0);break;case"Enter":case"NumpadEnter":this.onEnterKey(r);break;case"Escape":this.onEscapeKey(r);break;case"Tab":this.onTabKey(r,!0);break}},onFilterBlur:function(){this.focusedOptionIndex=-1},onFilterUpdated:function(){this.overlayVisible&&this.alignOverlay()},onOverlayClick:function(r){Qy.emit("overlay-click",{originalEvent:r,target:this.$el})},onOverlayKeyDown:function(r){switch(r.code){case"Escape":this.onEscapeKey(r);break}},onArrowDownKey:function(r){if(!this.overlayVisible)this.show(),this.editable&&this.changeFocusedOptionIndex(r,this.findSelectedOptionIndex());else{var o=this.focusedOptionIndex!==-1?this.findNextOptionIndex(this.focusedOptionIndex):this.clicked?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(r,o)}r.preventDefault()},onArrowUpKey:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(r.altKey&&!o)this.focusedOptionIndex!==-1&&this.onOptionSelect(r,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(),r.preventDefault();else{var l=this.focusedOptionIndex!==-1?this.findPrevOptionIndex(this.focusedOptionIndex):this.clicked?this.findLastOptionIndex():this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(r,l),!this.overlayVisible&&this.show(),r.preventDefault()}},onArrowLeftKey:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;o&&(this.focusedOptionIndex=-1)},onHomeKey:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(o){var l=r.currentTarget;r.shiftKey?l.setSelectionRange(0,r.target.selectionStart):(l.setSelectionRange(0,0),this.focusedOptionIndex=-1)}else this.changeFocusedOptionIndex(r,this.findFirstOptionIndex()),!this.overlayVisible&&this.show();r.preventDefault()},onEndKey:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(o){var l=r.currentTarget;if(r.shiftKey)l.setSelectionRange(r.target.selectionStart,l.value.length);else{var u=l.value.length;l.setSelectionRange(u,u),this.focusedOptionIndex=-1}}else this.changeFocusedOptionIndex(r,this.findLastOptionIndex()),!this.overlayVisible&&this.show();r.preventDefault()},onPageUpKey:function(r){this.scrollInView(0),r.preventDefault()},onPageDownKey:function(r){this.scrollInView(this.visibleOptions.length-1),r.preventDefault()},onEnterKey:function(r){this.overlayVisible?(this.focusedOptionIndex!==-1&&this.onOptionSelect(r,this.visibleOptions[this.focusedOptionIndex]),this.hide()):(this.focusedOptionIndex=-1,this.onArrowDownKey(r)),r.preventDefault()},onSpaceKey:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;!o&&this.onEnterKey(r)},onEscapeKey:function(r){this.overlayVisible&&this.hide(!0),r.preventDefault(),r.stopPropagation()},onTabKey:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;o||(this.overlayVisible&&this.hasFocusableElements()?(Gp(this.$refs.firstHiddenFocusableElementOnOverlay),r.preventDefault()):(this.focusedOptionIndex!==-1&&this.onOptionSelect(r,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(this.filter)))},onBackspaceKey:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;o&&!this.overlayVisible&&this.show()},onOverlayEnter:function(r){var o=this;tv.set("overlay",r,this.$primevue.config.zIndex.overlay),RL(r,{position:"absolute",top:"0",left:"0"}),this.alignOverlay(),this.scrollInView(),setTimeout(function(){o.autoFilterFocus&&o.filter&&Gp(o.$refs.filterInput.$el)},1)},onOverlayAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit("show")},onOverlayLeave:function(){var r=this;this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.autoFilterFocus&&this.filter&&!this.editable&&this.$nextTick(function(){Gp(r.$refs.filterInput.$el)}),this.$emit("hide"),this.overlay=null},onOverlayAfterLeave:function(r){tv.clear(r)},alignOverlay:function(){this.appendTo==="self"?KHn(this.overlay,this.$el):(this.overlay.style.minWidth=Kp(this.$el)+"px",LWe(this.overlay,this.$el))},bindOutsideClickListener:function(){var r=this;this.outsideClickListener||(this.outsideClickListener=function(o){r.overlayVisible&&r.overlay&&!r.$el.contains(o.target)&&!r.overlay.contains(o.target)&&r.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener:function(){var r=this;this.scrollHandler||(this.scrollHandler=new VWe(this.$refs.container,function(){r.overlayVisible&&r.hide()})),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var r=this;this.resizeListener||(this.resizeListener=function(){r.overlayVisible&&!HWe()&&r.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},bindLabelClickListener:function(){var r=this;if(!this.editable&&!this.labelClickListener){var o=document.querySelector('label[for="'.concat(this.labelId,'"]'));o&&Ide(o)&&(this.labelClickListener=function(){Gp(r.$refs.focusInput)},o.addEventListener("click",this.labelClickListener))}},unbindLabelClickListener:function(){if(this.labelClickListener){var r=document.querySelector('label[for="'.concat(this.labelId,'"]'));r&&Ide(r)&&r.removeEventListener("click",this.labelClickListener)}},hasFocusableElements:function(){return jWe(this.overlay,':not([data-p-hidden-focusable="true"])').length>0},isOptionMatched:function(r){var o;return this.isValidOption(r)&&typeof this.getOptionLabel(r)=="string"&&((o=this.getOptionLabel(r))===null||o===void 0?void 0:o.toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale)))},isValidOption:function(r){return ks(r)&&!(this.isOptionDisabled(r)||this.isOptionGroup(r))},isValidSelectedOption:function(r){return this.isValidOption(r)&&this.isSelected(r)},isSelected:function(r){return BP(this.d_value,this.getOptionValue(r),this.equalityKey)},findFirstOptionIndex:function(){var r=this;return this.visibleOptions.findIndex(function(o){return r.isValidOption(o)})},findLastOptionIndex:function(){var r=this;return Rjt(this.visibleOptions,function(o){return r.isValidOption(o)})},findNextOptionIndex:function(r){var o=this,l=r-1?l+r+1:r},findPrevOptionIndex:function(r){var o=this,l=r>0?Rjt(this.visibleOptions.slice(0,r),function(u){return o.isValidOption(u)}):-1;return l>-1?l:r},findSelectedOptionIndex:function(){var r=this;return this.$filled?this.visibleOptions.findIndex(function(o){return r.isValidSelectedOption(o)}):-1},findFirstFocusedOptionIndex:function(){var r=this.findSelectedOptionIndex();return r<0?this.findFirstOptionIndex():r},findLastFocusedOptionIndex:function(){var r=this.findSelectedOptionIndex();return r<0?this.findLastOptionIndex():r},searchOptions:function(r,o){var l=this;this.searchValue=(this.searchValue||"")+o;var u=-1,d=!1;return ks(this.searchValue)&&(this.focusedOptionIndex!==-1?(u=this.visibleOptions.slice(this.focusedOptionIndex).findIndex(function(h){return l.isOptionMatched(h)}),u=u===-1?this.visibleOptions.slice(0,this.focusedOptionIndex).findIndex(function(h){return l.isOptionMatched(h)}):u+this.focusedOptionIndex):u=this.visibleOptions.findIndex(function(h){return l.isOptionMatched(h)}),u!==-1&&(d=!0),u===-1&&this.focusedOptionIndex===-1&&(u=this.findFirstFocusedOptionIndex()),u!==-1&&this.changeFocusedOptionIndex(r,u)),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){l.searchValue="",l.searchTimeout=null},500),d},changeFocusedOptionIndex:function(r,o){this.focusedOptionIndex!==o&&(this.focusedOptionIndex=o,this.scrollInView(),this.selectOnFocus&&this.onOptionSelect(r,this.visibleOptions[o],!1))},scrollInView:function(){var r=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:-1;this.$nextTick(function(){var l=o!==-1?"".concat(r.id,"_").concat(o):r.focusedOptionId,u=pT(r.list,'li[id="'.concat(l,'"]'));u?u.scrollIntoView&&u.scrollIntoView({block:"nearest",inline:"start"}):r.virtualScrollerDisabled||r.virtualScroller&&r.virtualScroller.scrollToIndex(o!==-1?o:r.focusedOptionIndex)})},autoUpdateModel:function(){this.selectOnFocus&&this.autoOptionFocus&&!this.$filled&&(this.focusedOptionIndex=this.findFirstFocusedOptionIndex(),this.onOptionSelect(null,this.visibleOptions[this.focusedOptionIndex],!1))},updateModel:function(r,o){this.writeValue(o,r),this.$emit("change",{originalEvent:r,value:o})},flatOptions:function(r){var o=this;return(r||[]).reduce(function(l,u,d){l.push({optionGroup:u,group:!0,index:d});var h=o.getOptionGroupChildren(u);return h&&h.forEach(function(w){return l.push(w)}),l},[])},overlayRef:function(r){this.overlay=r},listRef:function(r,o){this.list=r,o&&o(r)},virtualScrollerRef:function(r){this.virtualScroller=r}},computed:{visibleOptions:function(){var r=this,o=this.optionGroupLabel?this.flatOptions(this.options):this.options||[];if(this.filterValue){var l=LLe.filter(o,this.searchFields,this.filterValue,this.filterMatchMode,this.filterLocale);if(this.optionGroupLabel){var u=this.options||[],d=[];return u.forEach(function(h){var w=r.getOptionGroupChildren(h),v=w.filter(function(y){return l.includes(y)});v.length>0&&d.push(lFt(lFt({},h),{},nZt({},typeof r.optionGroupChildren=="string"?r.optionGroupChildren:"items",pKn(v))))}),this.flatOptions(d)}return l}return o},hasSelectedOption:function(){return this.$filled},label:function(){var r=this.findSelectedOptionIndex();return r!==-1?this.getOptionLabel(this.visibleOptions[r]):this.placeholder||"p-emptylabel"},editableInputValue:function(){var r=this.findSelectedOptionIndex();return r!==-1?this.getOptionLabel(this.visibleOptions[r]):this.d_value||""},equalityKey:function(){return this.optionValue?null:this.dataKey},searchFields:function(){return this.filterFields||[this.optionLabel]},filterResultMessageText:function(){return ks(this.visibleOptions)?this.filterMessageText.replaceAll("{0}",this.visibleOptions.length):this.emptyFilterMessageText},filterMessageText:function(){return this.filterMessage||this.$primevue.config.locale.searchMessage||""},emptyFilterMessageText:function(){return this.emptyFilterMessage||this.$primevue.config.locale.emptySearchMessage||this.$primevue.config.locale.emptyFilterMessage||""},emptyMessageText:function(){return this.emptyMessage||this.$primevue.config.locale.emptyMessage||""},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||""},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||""},selectedMessageText:function(){return this.$filled?this.selectionMessageText.replaceAll("{0}","1"):this.emptySelectionMessageText},focusedOptionId:function(){return this.focusedOptionIndex!==-1?"".concat(this.id,"_").concat(this.focusedOptionIndex):null},ariaSetSize:function(){var r=this;return this.visibleOptions.filter(function(o){return!r.isOptionGroup(o)}).length},isClearIconVisible:function(){return this.showClear&&this.d_value!=null&&ks(this.options)},virtualScrollerDisabled:function(){return!this.virtualScrollerOptions}},directives:{ripple:bk},components:{InputText:W8,VirtualScroller:zWe,Portal:ZX,InputIcon:eZt,IconField:ZQt,TimesIcon:upe,ChevronDownIcon:cpe,SpinnerIcon:YX,SearchIcon:QQt,CheckIcon:nj,BlankIcon:YQt}},_Kn=["id"],SKn=["id","value","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant","aria-invalid"],EKn=["id","tabindex","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant","aria-disabled"],kKn=["id"],RKn=["id"],xKn=["id","aria-label","aria-selected","aria-disabled","aria-setsize","aria-posinset","onClick","onMousemove","data-p-selected","data-p-focused","data-p-disabled"];function CKn(n,r,o,l,u,d){var h=Ni("SpinnerIcon"),w=Ni("InputText"),v=Ni("SearchIcon"),y=Ni("InputIcon"),E=Ni("IconField"),A=Ni("CheckIcon"),C=Ni("BlankIcon"),R=Ni("VirtualScroller"),O=Ni("Portal"),M=TS("ripple");return ze(),jt("div",Et({ref:"container",id:u.id,class:n.cx("root"),onClick:r[11]||(r[11]=function(){return d.onContainerClick&&d.onContainerClick.apply(d,arguments)})},n.ptmi("root")),[n.editable?(ze(),jt("input",Et({key:0,ref:"focusInput",id:n.labelId||n.inputId,type:"text",class:[n.cx("label"),n.inputClass,n.labelClass],style:[n.inputStyle,n.labelStyle],value:d.editableInputValue,placeholder:n.placeholder,tabindex:n.disabled?-1:n.tabindex,disabled:n.disabled,autocomplete:"off",role:"combobox","aria-label":n.ariaLabel,"aria-labelledby":n.ariaLabelledby,"aria-haspopup":"listbox","aria-expanded":u.overlayVisible,"aria-controls":u.id+"_list","aria-activedescendant":u.focused?d.focusedOptionId:void 0,"aria-invalid":n.invalid||void 0,onFocus:r[0]||(r[0]=function(){return d.onFocus&&d.onFocus.apply(d,arguments)}),onBlur:r[1]||(r[1]=function(){return d.onBlur&&d.onBlur.apply(d,arguments)}),onKeydown:r[2]||(r[2]=function(){return d.onKeyDown&&d.onKeyDown.apply(d,arguments)}),onInput:r[3]||(r[3]=function(){return d.onEditableInput&&d.onEditableInput.apply(d,arguments)})},n.ptm("label")),null,16,SKn)):(ze(),jt("span",Et({key:1,ref:"focusInput",id:n.labelId||n.inputId,class:[n.cx("label"),n.inputClass,n.labelClass],style:[n.inputStyle,n.labelStyle],tabindex:n.disabled?-1:n.tabindex,role:"combobox","aria-label":n.ariaLabel||(d.label==="p-emptylabel"?void 0:d.label),"aria-labelledby":n.ariaLabelledby,"aria-haspopup":"listbox","aria-expanded":u.overlayVisible,"aria-controls":u.id+"_list","aria-activedescendant":u.focused?d.focusedOptionId:void 0,"aria-disabled":n.disabled,onFocus:r[4]||(r[4]=function(){return d.onFocus&&d.onFocus.apply(d,arguments)}),onBlur:r[5]||(r[5]=function(){return d.onBlur&&d.onBlur.apply(d,arguments)}),onKeydown:r[6]||(r[6]=function(){return d.onKeyDown&&d.onKeyDown.apply(d,arguments)})},n.ptm("label")),[Vr(n.$slots,"value",{value:n.d_value,placeholder:n.placeholder},function(){var L;return[nm(na(d.label==="p-emptylabel"?" ":(L=d.label)!==null&&L!==void 0?L:"empty"),1)]})],16,EKn)),d.isClearIconVisible?Vr(n.$slots,"clearicon",{key:2,class:Lo(n.cx("clearIcon")),clearCallback:d.onClearClick},function(){return[(ze(),Nn(jo(n.clearIcon?"i":"TimesIcon"),Et({ref:"clearIcon",class:[n.cx("clearIcon"),n.clearIcon],onClick:d.onClearClick},n.ptm("clearIcon"),{"data-pc-section":"clearicon"}),null,16,["class","onClick"]))]}):fr("",!0),mr("div",Et({class:n.cx("dropdown")},n.ptm("dropdown")),[n.loading?Vr(n.$slots,"loadingicon",{key:0,class:Lo(n.cx("loadingIcon"))},function(){return[n.loadingIcon?(ze(),jt("span",Et({key:0,class:[n.cx("loadingIcon"),"pi-spin",n.loadingIcon],"aria-hidden":"true"},n.ptm("loadingIcon")),null,16)):(ze(),Nn(h,Et({key:1,class:n.cx("loadingIcon"),spin:"","aria-hidden":"true"},n.ptm("loadingIcon")),null,16,["class"]))]}):Vr(n.$slots,"dropdownicon",{key:1,class:Lo(n.cx("dropdownIcon"))},function(){return[(ze(),Nn(jo(n.dropdownIcon?"span":"ChevronDownIcon"),Et({class:[n.cx("dropdownIcon"),n.dropdownIcon],"aria-hidden":"true"},n.ptm("dropdownIcon")),null,16,["class"]))]})],16),bi(O,{appendTo:n.appendTo},{default:vi(function(){return[bi(spe,Et({name:"p-connected-overlay",onEnter:d.onOverlayEnter,onAfterEnter:d.onOverlayAfterEnter,onLeave:d.onOverlayLeave,onAfterLeave:d.onOverlayAfterLeave},n.ptm("transition")),{default:vi(function(){return[u.overlayVisible?(ze(),jt("div",Et({key:0,ref:d.overlayRef,class:[n.cx("overlay"),n.panelClass,n.overlayClass],style:[n.panelStyle,n.overlayStyle],onClick:r[9]||(r[9]=function(){return d.onOverlayClick&&d.onOverlayClick.apply(d,arguments)}),onKeydown:r[10]||(r[10]=function(){return d.onOverlayKeyDown&&d.onOverlayKeyDown.apply(d,arguments)})},n.ptm("overlay")),[mr("span",Et({ref:"firstHiddenFocusableElementOnOverlay",role:"presentation","aria-hidden":"true",class:"p-hidden-accessible p-hidden-focusable",tabindex:0,onFocus:r[7]||(r[7]=function(){return d.onFirstHiddenFocus&&d.onFirstHiddenFocus.apply(d,arguments)})},n.ptm("hiddenFirstFocusableEl"),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16),Vr(n.$slots,"header",{value:n.d_value,options:d.visibleOptions}),n.filter?(ze(),jt("div",Et({key:0,class:n.cx("header")},n.ptm("header")),[bi(E,{unstyled:n.unstyled,pt:n.ptm("pcFilterContainer")},{default:vi(function(){return[bi(w,{ref:"filterInput",type:"text",value:u.filterValue,onVnodeMounted:d.onFilterUpdated,onVnodeUpdated:d.onFilterUpdated,class:Lo(n.cx("pcFilter")),placeholder:n.filterPlaceholder,variant:n.variant,unstyled:n.unstyled,role:"searchbox",autocomplete:"off","aria-owns":u.id+"_list","aria-activedescendant":d.focusedOptionId,onKeydown:d.onFilterKeyDown,onBlur:d.onFilterBlur,onInput:d.onFilterChange,pt:n.ptm("pcFilter")},null,8,["value","onVnodeMounted","onVnodeUpdated","class","placeholder","variant","unstyled","aria-owns","aria-activedescendant","onKeydown","onBlur","onInput","pt"]),bi(y,{unstyled:n.unstyled,pt:n.ptm("pcFilterIconContainer")},{default:vi(function(){return[Vr(n.$slots,"filtericon",{},function(){return[n.filterIcon?(ze(),jt("span",Et({key:0,class:n.filterIcon},n.ptm("filterIcon")),null,16)):(ze(),Nn(v,SL(Et({key:1},n.ptm("filterIcon"))),null,16))]})]}),_:3},8,["unstyled","pt"])]}),_:3},8,["unstyled","pt"]),mr("span",Et({role:"status","aria-live":"polite",class:"p-hidden-accessible"},n.ptm("hiddenFilterResult"),{"data-p-hidden-accessible":!0}),na(d.filterResultMessageText),17)],16)):fr("",!0),mr("div",Et({class:n.cx("listContainer"),style:{"max-height":d.virtualScrollerDisabled?n.scrollHeight:""}},n.ptm("listContainer")),[bi(R,Et({ref:d.virtualScrollerRef},n.virtualScrollerOptions,{items:d.visibleOptions,style:{height:n.scrollHeight},tabindex:-1,disabled:d.virtualScrollerDisabled,pt:n.ptm("virtualScroller")}),Lq({content:vi(function(L){var H=L.styleClass,G=L.contentRef,j=L.items,Q=L.getItemOptions,te=L.contentStyle,pe=L.itemSize;return[mr("ul",Et({ref:function(Re){return d.listRef(Re,G)},id:u.id+"_list",class:[n.cx("list"),H],style:te,role:"listbox"},n.ptm("list")),[(ze(!0),jt(gi,null,uu(j,function(De,Re){return ze(),jt(gi,{key:d.getOptionRenderKey(De,d.getOptionIndex(Re,Q))},[d.isOptionGroup(De)?(ze(),jt("li",Et({key:0,id:u.id+"_"+d.getOptionIndex(Re,Q),style:{height:pe?pe+"px":void 0},class:n.cx("optionGroup"),role:"option",ref_for:!0},n.ptm("optionGroup")),[Vr(n.$slots,"optiongroup",{option:De.optionGroup,index:d.getOptionIndex(Re,Q)},function(){return[mr("span",Et({class:n.cx("optionGroupLabel"),ref_for:!0},n.ptm("optionGroupLabel")),na(d.getOptionGroupLabel(De.optionGroup)),17)]})],16,RKn)):AS((ze(),jt("li",Et({key:1,id:u.id+"_"+d.getOptionIndex(Re,Q),class:n.cx("option",{option:De,focusedOption:d.getOptionIndex(Re,Q)}),style:{height:pe?pe+"px":void 0},role:"option","aria-label":d.getOptionLabel(De),"aria-selected":d.isSelected(De),"aria-disabled":d.isOptionDisabled(De),"aria-setsize":d.ariaSetSize,"aria-posinset":d.getAriaPosInset(d.getOptionIndex(Re,Q)),onClick:function(xe){return d.onOptionSelect(xe,De)},onMousemove:function(xe){return d.onOptionMouseMove(xe,d.getOptionIndex(Re,Q))},"data-p-selected":d.isSelected(De),"data-p-focused":u.focusedOptionIndex===d.getOptionIndex(Re,Q),"data-p-disabled":d.isOptionDisabled(De),ref_for:!0},d.getPTItemOptions(De,Q,Re,"option")),[n.checkmark?(ze(),jt(gi,{key:0},[d.isSelected(De)?(ze(),Nn(A,Et({key:0,class:n.cx("optionCheckIcon"),ref_for:!0},n.ptm("optionCheckIcon")),null,16,["class"])):(ze(),Nn(C,Et({key:1,class:n.cx("optionBlankIcon"),ref_for:!0},n.ptm("optionBlankIcon")),null,16,["class"]))],64)):fr("",!0),Vr(n.$slots,"option",{option:De,selected:d.isSelected(De),index:d.getOptionIndex(Re,Q)},function(){return[mr("span",Et({class:n.cx("optionLabel"),ref_for:!0},n.ptm("optionLabel")),na(d.getOptionLabel(De)),17)]})],16,xKn)),[[M]])],64)}),128)),u.filterValue&&(!j||j&&j.length===0)?(ze(),jt("li",Et({key:0,class:n.cx("emptyMessage"),role:"option"},n.ptm("emptyMessage"),{"data-p-hidden-accessible":!0}),[Vr(n.$slots,"emptyfilter",{},function(){return[nm(na(d.emptyFilterMessageText),1)]})],16)):!n.options||n.options&&n.options.length===0?(ze(),jt("li",Et({key:1,class:n.cx("emptyMessage"),role:"option"},n.ptm("emptyMessage"),{"data-p-hidden-accessible":!0}),[Vr(n.$slots,"empty",{},function(){return[nm(na(d.emptyMessageText),1)]})],16)):fr("",!0)],16,kKn)]}),_:2},[n.$slots.loader?{name:"loader",fn:vi(function(L){var H=L.options;return[Vr(n.$slots,"loader",{options:H})]}),key:"0"}:void 0]),1040,["items","style","disabled","pt"])],16),Vr(n.$slots,"footer",{value:n.d_value,options:d.visibleOptions}),!n.options||n.options&&n.options.length===0?(ze(),jt("span",Et({key:1,role:"status","aria-live":"polite",class:"p-hidden-accessible"},n.ptm("hiddenEmptyMessage"),{"data-p-hidden-accessible":!0}),na(d.emptyMessageText),17)):fr("",!0),mr("span",Et({role:"status","aria-live":"polite",class:"p-hidden-accessible"},n.ptm("hiddenSelectedMessage"),{"data-p-hidden-accessible":!0}),na(d.selectedMessageText),17),mr("span",Et({ref:"lastHiddenFocusableElementOnOverlay",role:"presentation","aria-hidden":"true",class:"p-hidden-accessible p-hidden-focusable",tabindex:0,onFocus:r[8]||(r[8]=function(){return d.onLastHiddenFocus&&d.onLastHiddenFocus.apply(d,arguments)})},n.ptm("hiddenLastFocusableEl"),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16)],16)):fr("",!0)]}),_:3},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]}),_:3},8,["appendTo"])],16,_Kn)}eJ.render=CKn;var rZt={name:"WindowMaximizeIcon",extends:Fc};function AKn(n,r,o,l,u,d){return ze(),jt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z",fill:"currentColor"},null,-1)]),16)}rZt.render=AKn;var iZt={name:"WindowMinimizeIcon",extends:Fc};function TKn(n,r,o,l,u,d){return ze(),jt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z",fill:"currentColor"},null,-1)]),16)}iZt.render=TKn;var $Kn=Bs.extend({name:"focustrap-directive"}),IKn=cl.extend({style:$Kn});function eX(n){"@babel/helpers - typeof";return eX=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},eX(n)}function aFt(n,r){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);r&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable})),o.push.apply(o,l)}return o}function cFt(n){for(var r=1;r=r.minX&&v+l=r.minY&&y+u0){document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),w=(h==null?void 0:h.nonce)||(h==null?void 0:h.getAttribute("nonce"));u=Promise.allSettled(o.map(v=>{if(v=WKn(v),v in lFt)return;lFt[v]=!0;const y=v.endsWith(".css"),E=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${v}"]${E}`))return;const A=document.createElement("link");if(A.rel=y?"stylesheet":BKn,y||(A.as="script"),A.crossOrigin="",A.href=v,w&&A.setAttribute("nonce",w),document.head.appendChild(A),y)return new Promise((C,R)=>{A.addEventListener("load",C),A.addEventListener("error",()=>R(new Error(`Unable to preload CSS for ${v}`)))})}))}function d(h){const w=new Event("vite:preloadError",{cancelable:!0});if(w.payload=h,window.dispatchEvent(w),!w.defaultPrevented)throw h}return u.then(h=>{for(const w of h||[])w.status==="rejected"&&d(w.reason);return r().catch(d)})},HKn=(n,r,o,l)=>{if(o==="length"||o==="prototype"||o==="arguments"||o==="caller")return;const u=Object.getOwnPropertyDescriptor(n,o),d=Object.getOwnPropertyDescriptor(r,o);!UKn(u,d)&&l||Object.defineProperty(n,o,d)},UKn=function(n,r){return n===void 0||n.configurable||n.writable===r.writable&&n.enumerable===r.enumerable&&n.configurable===r.configurable&&(n.writable||n.value===r.value)},GKn=(n,r)=>{const o=Object.getPrototypeOf(r);o!==Object.getPrototypeOf(n)&&Object.setPrototypeOf(n,o)},VKn=(n,r)=>`/* Wrapped ${n}*/ -${r}`,zKn=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),KKn=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),qKn=(n,r,o)=>{const l=o===""?"":`with ${o.trim()}() `,u=VKn.bind(null,l,r.toString());Object.defineProperty(u,"name",KKn),Object.defineProperty(n,"toString",{...zKn,value:u})};function XKn(n,r,{ignoreNonConfigurable:o=!1}={}){const{name:l}=n;for(const u of Reflect.ownKeys(r))HKn(n,r,u,o);return GKn(n,r),qKn(n,r,l),n}const $de=new WeakMap,sZt=(n,r={})=>{if(typeof n!="function")throw new TypeError("Expected a function");let o,l=0;const u=n.displayName||n.name||"",d=function(...h){if($de.set(d,++l),l===1)o=n.apply(this,h),n=null;else if(r.throw===!0)throw new Error(`Function \`${u}\` can only be called once`);return o};return XKn(d,n),$de.set(d,l),d};sZt.callCount=n=>{if(!$de.has(n))throw new Error(`The given function \`${n.name}\` is not wrapped by the \`onetime\` package`);return $de.get(n)};var fu=typeof globalThis<"u"?globalThis:typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function cv(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function JKn(n){if(n.__esModule)return n;var r=n.default;if(typeof r=="function"){var o=function l(){return this instanceof l?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};o.prototype=r.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(n).forEach(function(l){var u=Object.getOwnPropertyDescriptor(n,l);Object.defineProperty(o,l,u.get?u:{enumerable:!0,get:function(){return n[l]}})}),o}var lZt={exports:{}},E7e={exports:{}},Kr={},cpe={};cpe.byteLength=ZKn;cpe.toByteArray=tqn;cpe.fromByteArray=iqn;var jE=[],zy=[],YKn=typeof Uint8Array<"u"?Uint8Array:Array,k7e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var iD=0,QKn=k7e.length;iD0)throw new Error("Invalid string. Length must be a multiple of 4");var o=n.indexOf("=");o===-1&&(o=r);var l=o===r?0:4-o%4;return[o,l]}function ZKn(n){var r=aZt(n),o=r[0],l=r[1];return(o+l)*3/4-l}function eqn(n,r,o){return(r+o)*3/4-o}function tqn(n){var r,o=aZt(n),l=o[0],u=o[1],d=new YKn(eqn(n,l,u)),h=0,w=u>0?l-4:l,v;for(v=0;v>16&255,d[h++]=r>>8&255,d[h++]=r&255;return u===2&&(r=zy[n.charCodeAt(v)]<<2|zy[n.charCodeAt(v+1)]>>4,d[h++]=r&255),u===1&&(r=zy[n.charCodeAt(v)]<<10|zy[n.charCodeAt(v+1)]<<4|zy[n.charCodeAt(v+2)]>>2,d[h++]=r>>8&255,d[h++]=r&255),d}function nqn(n){return jE[n>>18&63]+jE[n>>12&63]+jE[n>>6&63]+jE[n&63]}function rqn(n,r,o){for(var l,u=[],d=r;dw?w:h+d));return l===1?(r=n[o-1],u.push(jE[r>>2]+jE[r<<4&63]+"==")):l===2&&(r=(n[o-2]<<8)+n[o-1],u.push(jE[r>>10]+jE[r>>4&63]+jE[r<<2&63]+"=")),u.join("")}var GWe={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */GWe.read=function(n,r,o,l,u){var d,h,w=u*8-l-1,v=(1<>1,E=-7,A=o?u-1:0,C=o?-1:1,R=n[r+A];for(A+=C,d=R&(1<<-E)-1,R>>=-E,E+=w;E>0;d=d*256+n[r+A],A+=C,E-=8);for(h=d&(1<<-E)-1,d>>=-E,E+=l;E>0;h=h*256+n[r+A],A+=C,E-=8);if(d===0)d=1-y;else{if(d===v)return h?NaN:(R?-1:1)*(1/0);h=h+Math.pow(2,l),d=d-y}return(R?-1:1)*h*Math.pow(2,d-l)};GWe.write=function(n,r,o,l,u,d){var h,w,v,y=d*8-u-1,E=(1<>1,C=u===23?Math.pow(2,-24)-Math.pow(2,-77):0,R=l?0:d-1,O=l?1:-1,M=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(w=isNaN(r)?1:0,h=E):(h=Math.floor(Math.log(r)/Math.LN2),r*(v=Math.pow(2,-h))<1&&(h--,v*=2),h+A>=1?r+=C/v:r+=C*Math.pow(2,1-A),r*v>=2&&(h++,v/=2),h+A>=E?(w=0,h=E):h+A>=1?(w=(r*v-1)*Math.pow(2,u),h=h+A):(w=r*Math.pow(2,A-1)*Math.pow(2,u),h=0));u>=8;n[o+R]=w&255,R+=O,w/=256,u-=8);for(h=h<0;n[o+R]=h&255,R+=O,h/=256,y-=8);n[o+R-O]|=M*128};/*! + `);this.styleElement.innerHTML=o}},destroyStyle:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},initDrag:function(r){r.target.closest("div").getAttribute("data-pc-section")!=="headeractions"&&this.draggable&&(this.dragging=!0,this.lastPageX=r.pageX,this.lastPageY=r.pageY,this.container.style.margin="0",document.body.setAttribute("data-p-unselectable-text","true"),!this.isUnstyled&&RL(document.body,{"user-select":"none"}),this.$emit("dragstart",r))},bindGlobalListeners:function(){this.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener()),this.closeOnEscape&&this.closable&&this.bindDocumentKeyDownListener()},unbindGlobalListeners:function(){this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener(),this.unbindDocumentKeyDownListener()},bindDocumentDragListener:function(){var r=this;this.documentDragListener=function(o){if(r.dragging){var l=Kp(r.container),u=BR(r.container),d=o.pageX-r.lastPageX,h=o.pageY-r.lastPageY,w=r.container.getBoundingClientRect(),v=w.left+d,y=w.top+h,E=DWe(),A=getComputedStyle(r.container),C=parseFloat(A.marginLeft),R=parseFloat(A.marginTop);r.container.style.position="fixed",r.keepInViewport?(v>=r.minX&&v+l=r.minY&&y+u0){document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),w=(h==null?void 0:h.nonce)||(h==null?void 0:h.getAttribute("nonce"));u=Promise.allSettled(o.map(v=>{if(v=JKn(v),v in hFt)return;hFt[v]=!0;const y=v.endsWith(".css"),E=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${v}"]${E}`))return;const A=document.createElement("link");if(A.rel=y?"stylesheet":XKn,y||(A.as="script"),A.crossOrigin="",A.href=v,w&&A.setAttribute("nonce",w),document.head.appendChild(A),y)return new Promise((C,R)=>{A.addEventListener("load",C),A.addEventListener("error",()=>R(new Error(`Unable to preload CSS for ${v}`)))})}))}function d(h){const w=new Event("vite:preloadError",{cancelable:!0});if(w.payload=h,window.dispatchEvent(w),!w.defaultPrevented)throw h}return u.then(h=>{for(const w of h||[])w.status==="rejected"&&d(w.reason);return r().catch(d)})},YKn=(n,r,o,l)=>{if(o==="length"||o==="prototype"||o==="arguments"||o==="caller")return;const u=Object.getOwnPropertyDescriptor(n,o),d=Object.getOwnPropertyDescriptor(r,o);!QKn(u,d)&&l||Object.defineProperty(n,o,d)},QKn=function(n,r){return n===void 0||n.configurable||n.writable===r.writable&&n.enumerable===r.enumerable&&n.configurable===r.configurable&&(n.writable||n.value===r.value)},ZKn=(n,r)=>{const o=Object.getPrototypeOf(r);o!==Object.getPrototypeOf(n)&&Object.setPrototypeOf(n,o)},eqn=(n,r)=>`/* Wrapped ${n}*/ +${r}`,tqn=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),nqn=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),rqn=(n,r,o)=>{const l=o===""?"":`with ${o.trim()}() `,u=eqn.bind(null,l,r.toString());Object.defineProperty(u,"name",nqn),Object.defineProperty(n,"toString",{...tqn,value:u})};function iqn(n,r,{ignoreNonConfigurable:o=!1}={}){const{name:l}=n;for(const u of Reflect.ownKeys(r))YKn(n,r,u,o);return ZKn(n,r),rqn(n,r,l),n}const Ode=new WeakMap,fZt=(n,r={})=>{if(typeof n!="function")throw new TypeError("Expected a function");let o,l=0;const u=n.displayName||n.name||"",d=function(...h){if(Ode.set(d,++l),l===1)o=n.apply(this,h),n=null;else if(r.throw===!0)throw new Error(`Function \`${u}\` can only be called once`);return o};return iqn(d,n),Ode.set(d,l),d};fZt.callCount=n=>{if(!Ode.has(n))throw new Error(`The given function \`${n.name}\` is not wrapped by the \`onetime\` package`);return Ode.get(n)};var fu=typeof globalThis<"u"?globalThis:typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function cv(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function oqn(n){if(n.__esModule)return n;var r=n.default;if(typeof r=="function"){var o=function l(){return this instanceof l?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};o.prototype=r.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(n).forEach(function(l){var u=Object.getOwnPropertyDescriptor(n,l);Object.defineProperty(o,l,u.get?u:{enumerable:!0,get:function(){return n[l]}})}),o}var dZt={exports:{}},C7e={exports:{}},Kr={},dpe={};dpe.byteLength=aqn;dpe.toByteArray=uqn;dpe.fromByteArray=hqn;var jE=[],Vy=[],sqn=typeof Uint8Array<"u"?Uint8Array:Array,A7e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var rD=0,lqn=A7e.length;rD0)throw new Error("Invalid string. Length must be a multiple of 4");var o=n.indexOf("=");o===-1&&(o=r);var l=o===r?0:4-o%4;return[o,l]}function aqn(n){var r=hZt(n),o=r[0],l=r[1];return(o+l)*3/4-l}function cqn(n,r,o){return(r+o)*3/4-o}function uqn(n){var r,o=hZt(n),l=o[0],u=o[1],d=new sqn(cqn(n,l,u)),h=0,w=u>0?l-4:l,v;for(v=0;v>16&255,d[h++]=r>>8&255,d[h++]=r&255;return u===2&&(r=Vy[n.charCodeAt(v)]<<2|Vy[n.charCodeAt(v+1)]>>4,d[h++]=r&255),u===1&&(r=Vy[n.charCodeAt(v)]<<10|Vy[n.charCodeAt(v+1)]<<4|Vy[n.charCodeAt(v+2)]>>2,d[h++]=r>>8&255,d[h++]=r&255),d}function fqn(n){return jE[n>>18&63]+jE[n>>12&63]+jE[n>>6&63]+jE[n&63]}function dqn(n,r,o){for(var l,u=[],d=r;dw?w:h+d));return l===1?(r=n[o-1],u.push(jE[r>>2]+jE[r<<4&63]+"==")):l===2&&(r=(n[o-2]<<8)+n[o-1],u.push(jE[r>>10]+jE[r>>4&63]+jE[r<<2&63]+"=")),u.join("")}var YWe={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */YWe.read=function(n,r,o,l,u){var d,h,w=u*8-l-1,v=(1<>1,E=-7,A=o?u-1:0,C=o?-1:1,R=n[r+A];for(A+=C,d=R&(1<<-E)-1,R>>=-E,E+=w;E>0;d=d*256+n[r+A],A+=C,E-=8);for(h=d&(1<<-E)-1,d>>=-E,E+=l;E>0;h=h*256+n[r+A],A+=C,E-=8);if(d===0)d=1-y;else{if(d===v)return h?NaN:(R?-1:1)*(1/0);h=h+Math.pow(2,l),d=d-y}return(R?-1:1)*h*Math.pow(2,d-l)};YWe.write=function(n,r,o,l,u,d){var h,w,v,y=d*8-u-1,E=(1<>1,C=u===23?Math.pow(2,-24)-Math.pow(2,-77):0,R=l?0:d-1,O=l?1:-1,M=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(w=isNaN(r)?1:0,h=E):(h=Math.floor(Math.log(r)/Math.LN2),r*(v=Math.pow(2,-h))<1&&(h--,v*=2),h+A>=1?r+=C/v:r+=C*Math.pow(2,1-A),r*v>=2&&(h++,v/=2),h+A>=E?(w=0,h=E):h+A>=1?(w=(r*v-1)*Math.pow(2,u),h=h+A):(w=r*Math.pow(2,A-1)*Math.pow(2,u),h=0));u>=8;n[o+R]=w&255,R+=O,w/=256,u-=8);for(h=h<0;n[o+R]=h&255,R+=O,h/=256,y-=8);n[o+R-O]|=M*128};/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT - */(function(n){const r=cpe,o=GWe,l=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=w,n.SlowBuffer=G,n.INSPECT_MAX_BYTES=50;const u=2147483647;n.kMaxLength=u,w.TYPED_ARRAY_SUPPORT=d(),!w.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 d(){try{const $e=new Uint8Array(1),ce={foo:function(){return 42}};return Object.setPrototypeOf(ce,Uint8Array.prototype),Object.setPrototypeOf($e,ce),$e.foo()===42}catch{return!1}}Object.defineProperty(w.prototype,"parent",{enumerable:!0,get:function(){if(w.isBuffer(this))return this.buffer}}),Object.defineProperty(w.prototype,"offset",{enumerable:!0,get:function(){if(w.isBuffer(this))return this.byteOffset}});function h($e){if($e>u)throw new RangeError('The value "'+$e+'" is invalid for option "size"');const ce=new Uint8Array($e);return Object.setPrototypeOf(ce,w.prototype),ce}function w($e,ce,de){if(typeof $e=="number"){if(typeof ce=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return A($e)}return v($e,ce,de)}w.poolSize=8192;function v($e,ce,de){if(typeof $e=="string")return C($e,ce);if(ArrayBuffer.isView($e))return O($e);if($e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof $e);if(he($e,ArrayBuffer)||$e&&he($e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(he($e,SharedArrayBuffer)||$e&&he($e.buffer,SharedArrayBuffer)))return M($e,ce,de);if(typeof $e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const et=$e.valueOf&&$e.valueOf();if(et!=null&&et!==$e)return w.from(et,ce,de);const ht=L($e);if(ht)return ht;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof $e[Symbol.toPrimitive]=="function")return w.from($e[Symbol.toPrimitive]("string"),ce,de);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof $e)}w.from=function($e,ce,de){return v($e,ce,de)},Object.setPrototypeOf(w.prototype,Uint8Array.prototype),Object.setPrototypeOf(w,Uint8Array);function y($e){if(typeof $e!="number")throw new TypeError('"size" argument must be of type number');if($e<0)throw new RangeError('The value "'+$e+'" is invalid for option "size"')}function E($e,ce,de){return y($e),$e<=0?h($e):ce!==void 0?typeof de=="string"?h($e).fill(ce,de):h($e).fill(ce):h($e)}w.alloc=function($e,ce,de){return E($e,ce,de)};function A($e){return y($e),h($e<0?0:H($e)|0)}w.allocUnsafe=function($e){return A($e)},w.allocUnsafeSlow=function($e){return A($e)};function C($e,ce){if((typeof ce!="string"||ce==="")&&(ce="utf8"),!w.isEncoding(ce))throw new TypeError("Unknown encoding: "+ce);const de=j($e,ce)|0;let et=h(de);const ht=et.write($e,ce);return ht!==de&&(et=et.slice(0,ht)),et}function R($e){const ce=$e.length<0?0:H($e.length)|0,de=h(ce);for(let et=0;et=u)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return $e|0}function G($e){return+$e!=$e&&($e=0),w.alloc(+$e)}w.isBuffer=function(ce){return ce!=null&&ce._isBuffer===!0&&ce!==w.prototype},w.compare=function(ce,de){if(he(ce,Uint8Array)&&(ce=w.from(ce,ce.offset,ce.byteLength)),he(de,Uint8Array)&&(de=w.from(de,de.offset,de.byteLength)),!w.isBuffer(ce)||!w.isBuffer(de))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(ce===de)return 0;let et=ce.length,ht=de.length;for(let Jt=0,Zt=Math.min(et,ht);Jtht.length?(w.isBuffer(Zt)||(Zt=w.from(Zt)),Zt.copy(ht,Jt)):Uint8Array.prototype.set.call(ht,Zt,Jt);else if(w.isBuffer(Zt))Zt.copy(ht,Jt);else throw new TypeError('"list" argument must be an Array of Buffers');Jt+=Zt.length}return ht};function j($e,ce){if(w.isBuffer($e))return $e.length;if(ArrayBuffer.isView($e)||he($e,ArrayBuffer))return $e.byteLength;if(typeof $e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof $e);const de=$e.length,et=arguments.length>2&&arguments[2]===!0;if(!et&&de===0)return 0;let ht=!1;for(;;)switch(ce){case"ascii":case"latin1":case"binary":return de;case"utf8":case"utf-8":return q($e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return de*2;case"hex":return de>>>1;case"base64":return Ie($e).length;default:if(ht)return et?-1:q($e).length;ce=(""+ce).toLowerCase(),ht=!0}}w.byteLength=j;function Q($e,ce,de){let et=!1;if((ce===void 0||ce<0)&&(ce=0),ce>this.length||((de===void 0||de>this.length)&&(de=this.length),de<=0)||(de>>>=0,ce>>>=0,de<=ce))return"";for($e||($e="utf8");;)switch($e){case"hex":return Ue(this,ce,de);case"utf8":case"utf-8":return me(this,ce,de);case"ascii":return Be(this,ce,de);case"latin1":case"binary":return He(this,ce,de);case"base64":return F(this,ce,de);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ge(this,ce,de);default:if(et)throw new TypeError("Unknown encoding: "+$e);$e=($e+"").toLowerCase(),et=!0}}w.prototype._isBuffer=!0;function te($e,ce,de){const et=$e[ce];$e[ce]=$e[de],$e[de]=et}w.prototype.swap16=function(){const ce=this.length;if(ce%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let de=0;dede&&(ce+=" ... "),""},l&&(w.prototype[l]=w.prototype.inspect),w.prototype.compare=function(ce,de,et,ht,Jt){if(he(ce,Uint8Array)&&(ce=w.from(ce,ce.offset,ce.byteLength)),!w.isBuffer(ce))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof ce);if(de===void 0&&(de=0),et===void 0&&(et=ce?ce.length:0),ht===void 0&&(ht=0),Jt===void 0&&(Jt=this.length),de<0||et>ce.length||ht<0||Jt>this.length)throw new RangeError("out of range index");if(ht>=Jt&&de>=et)return 0;if(ht>=Jt)return-1;if(de>=et)return 1;if(de>>>=0,et>>>=0,ht>>>=0,Jt>>>=0,this===ce)return 0;let Zt=Jt-ht,qr=et-de;const ao=Math.min(Zt,qr),ki=this.slice(ht,Jt),Ri=ce.slice(de,et);for(let xi=0;xi2147483647?de=2147483647:de<-2147483648&&(de=-2147483648),de=+de,zt(de)&&(de=ht?0:$e.length-1),de<0&&(de=$e.length+de),de>=$e.length){if(ht)return-1;de=$e.length-1}else if(de<0)if(ht)de=0;else return-1;if(typeof ce=="string"&&(ce=w.from(ce,et)),w.isBuffer(ce))return ce.length===0?-1:Le($e,ce,de,et,ht);if(typeof ce=="number")return ce=ce&255,typeof Uint8Array.prototype.indexOf=="function"?ht?Uint8Array.prototype.indexOf.call($e,ce,de):Uint8Array.prototype.lastIndexOf.call($e,ce,de):Le($e,[ce],de,et,ht);throw new TypeError("val must be string, number or Buffer")}function Le($e,ce,de,et,ht){let Jt=1,Zt=$e.length,qr=ce.length;if(et!==void 0&&(et=String(et).toLowerCase(),et==="ucs2"||et==="ucs-2"||et==="utf16le"||et==="utf-16le")){if($e.length<2||ce.length<2)return-1;Jt=2,Zt/=2,qr/=2,de/=2}function ao(Ri,xi){return Jt===1?Ri[xi]:Ri.readUInt16BE(xi*Jt)}let ki;if(ht){let Ri=-1;for(ki=de;kiZt&&(de=Zt-qr),ki=de;ki>=0;ki--){let Ri=!0;for(let xi=0;xiht&&(et=ht)):et=ht;const Jt=ce.length;et>Jt/2&&(et=Jt/2);let Zt;for(Zt=0;Zt>>0,isFinite(et)?(et=et>>>0,ht===void 0&&(ht="utf8")):(ht=et,et=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Jt=this.length-de;if((et===void 0||et>Jt)&&(et=Jt),ce.length>0&&(et<0||de<0)||de>this.length)throw new RangeError("Attempt to write outside buffer bounds");ht||(ht="utf8");let Zt=!1;for(;;)switch(ht){case"hex":return Ee(this,ce,de,et);case"utf8":case"utf-8":return le(this,ce,de,et);case"ascii":case"latin1":case"binary":return xe(this,ce,de,et);case"base64":return be(this,ce,de,et);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ae(this,ce,de,et);default:if(Zt)throw new TypeError("Unknown encoding: "+ht);ht=(""+ht).toLowerCase(),Zt=!0}},w.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function F($e,ce,de){return ce===0&&de===$e.length?r.fromByteArray($e):r.fromByteArray($e.slice(ce,de))}function me($e,ce,de){de=Math.min($e.length,de);const et=[];let ht=ce;for(;ht239?4:Jt>223?3:Jt>191?2:1;if(ht+qr<=de){let ao,ki,Ri,xi;switch(qr){case 1:Jt<128&&(Zt=Jt);break;case 2:ao=$e[ht+1],(ao&192)===128&&(xi=(Jt&31)<<6|ao&63,xi>127&&(Zt=xi));break;case 3:ao=$e[ht+1],ki=$e[ht+2],(ao&192)===128&&(ki&192)===128&&(xi=(Jt&15)<<12|(ao&63)<<6|ki&63,xi>2047&&(xi<55296||xi>57343)&&(Zt=xi));break;case 4:ao=$e[ht+1],ki=$e[ht+2],Ri=$e[ht+3],(ao&192)===128&&(ki&192)===128&&(Ri&192)===128&&(xi=(Jt&15)<<18|(ao&63)<<12|(ki&63)<<6|Ri&63,xi>65535&&xi<1114112&&(Zt=xi))}}Zt===null?(Zt=65533,qr=1):Zt>65535&&(Zt-=65536,et.push(Zt>>>10&1023|55296),Zt=56320|Zt&1023),et.push(Zt),ht+=qr}return we(et)}const ye=4096;function we($e){const ce=$e.length;if(ce<=ye)return String.fromCharCode.apply(String,$e);let de="",et=0;for(;etet)&&(de=et);let ht="";for(let Jt=ce;Jtet&&(ce=et),de<0?(de+=et,de<0&&(de=0)):de>et&&(de=et),dede)throw new RangeError("Trying to access beyond buffer length")}w.prototype.readUintLE=w.prototype.readUIntLE=function(ce,de,et){ce=ce>>>0,de=de>>>0,et||Me(ce,de,this.length);let ht=this[ce],Jt=1,Zt=0;for(;++Zt>>0,de=de>>>0,et||Me(ce,de,this.length);let ht=this[ce+--de],Jt=1;for(;de>0&&(Jt*=256);)ht+=this[ce+--de]*Jt;return ht},w.prototype.readUint8=w.prototype.readUInt8=function(ce,de){return ce=ce>>>0,de||Me(ce,1,this.length),this[ce]},w.prototype.readUint16LE=w.prototype.readUInt16LE=function(ce,de){return ce=ce>>>0,de||Me(ce,2,this.length),this[ce]|this[ce+1]<<8},w.prototype.readUint16BE=w.prototype.readUInt16BE=function(ce,de){return ce=ce>>>0,de||Me(ce,2,this.length),this[ce]<<8|this[ce+1]},w.prototype.readUint32LE=w.prototype.readUInt32LE=function(ce,de){return ce=ce>>>0,de||Me(ce,4,this.length),(this[ce]|this[ce+1]<<8|this[ce+2]<<16)+this[ce+3]*16777216},w.prototype.readUint32BE=w.prototype.readUInt32BE=function(ce,de){return ce=ce>>>0,de||Me(ce,4,this.length),this[ce]*16777216+(this[ce+1]<<16|this[ce+2]<<8|this[ce+3])},w.prototype.readBigUInt64LE=$n(function(ce){ce=ce>>>0,T(ce,"offset");const de=this[ce],et=this[ce+7];(de===void 0||et===void 0)&&$(ce,this.length-8);const ht=de+this[++ce]*2**8+this[++ce]*2**16+this[++ce]*2**24,Jt=this[++ce]+this[++ce]*2**8+this[++ce]*2**16+et*2**24;return BigInt(ht)+(BigInt(Jt)<>>0,T(ce,"offset");const de=this[ce],et=this[ce+7];(de===void 0||et===void 0)&&$(ce,this.length-8);const ht=de*2**24+this[++ce]*2**16+this[++ce]*2**8+this[++ce],Jt=this[++ce]*2**24+this[++ce]*2**16+this[++ce]*2**8+et;return(BigInt(ht)<>>0,de=de>>>0,et||Me(ce,de,this.length);let ht=this[ce],Jt=1,Zt=0;for(;++Zt=Jt&&(ht-=Math.pow(2,8*de)),ht},w.prototype.readIntBE=function(ce,de,et){ce=ce>>>0,de=de>>>0,et||Me(ce,de,this.length);let ht=de,Jt=1,Zt=this[ce+--ht];for(;ht>0&&(Jt*=256);)Zt+=this[ce+--ht]*Jt;return Jt*=128,Zt>=Jt&&(Zt-=Math.pow(2,8*de)),Zt},w.prototype.readInt8=function(ce,de){return ce=ce>>>0,de||Me(ce,1,this.length),this[ce]&128?(255-this[ce]+1)*-1:this[ce]},w.prototype.readInt16LE=function(ce,de){ce=ce>>>0,de||Me(ce,2,this.length);const et=this[ce]|this[ce+1]<<8;return et&32768?et|4294901760:et},w.prototype.readInt16BE=function(ce,de){ce=ce>>>0,de||Me(ce,2,this.length);const et=this[ce+1]|this[ce]<<8;return et&32768?et|4294901760:et},w.prototype.readInt32LE=function(ce,de){return ce=ce>>>0,de||Me(ce,4,this.length),this[ce]|this[ce+1]<<8|this[ce+2]<<16|this[ce+3]<<24},w.prototype.readInt32BE=function(ce,de){return ce=ce>>>0,de||Me(ce,4,this.length),this[ce]<<24|this[ce+1]<<16|this[ce+2]<<8|this[ce+3]},w.prototype.readBigInt64LE=$n(function(ce){ce=ce>>>0,T(ce,"offset");const de=this[ce],et=this[ce+7];(de===void 0||et===void 0)&&$(ce,this.length-8);const ht=this[ce+4]+this[ce+5]*2**8+this[ce+6]*2**16+(et<<24);return(BigInt(ht)<>>0,T(ce,"offset");const de=this[ce],et=this[ce+7];(de===void 0||et===void 0)&&$(ce,this.length-8);const ht=(de<<24)+this[++ce]*2**16+this[++ce]*2**8+this[++ce];return(BigInt(ht)<>>0,de||Me(ce,4,this.length),o.read(this,ce,!0,23,4)},w.prototype.readFloatBE=function(ce,de){return ce=ce>>>0,de||Me(ce,4,this.length),o.read(this,ce,!1,23,4)},w.prototype.readDoubleLE=function(ce,de){return ce=ce>>>0,de||Me(ce,8,this.length),o.read(this,ce,!0,52,8)},w.prototype.readDoubleBE=function(ce,de){return ce=ce>>>0,de||Me(ce,8,this.length),o.read(this,ce,!1,52,8)};function vt($e,ce,de,et,ht,Jt){if(!w.isBuffer($e))throw new TypeError('"buffer" argument must be a Buffer instance');if(ce>ht||ce$e.length)throw new RangeError("Index out of range")}w.prototype.writeUintLE=w.prototype.writeUIntLE=function(ce,de,et,ht){if(ce=+ce,de=de>>>0,et=et>>>0,!ht){const qr=Math.pow(2,8*et)-1;vt(this,ce,de,et,qr,0)}let Jt=1,Zt=0;for(this[de]=ce&255;++Zt>>0,et=et>>>0,!ht){const qr=Math.pow(2,8*et)-1;vt(this,ce,de,et,qr,0)}let Jt=et-1,Zt=1;for(this[de+Jt]=ce&255;--Jt>=0&&(Zt*=256);)this[de+Jt]=ce/Zt&255;return de+et},w.prototype.writeUint8=w.prototype.writeUInt8=function(ce,de,et){return ce=+ce,de=de>>>0,et||vt(this,ce,de,1,255,0),this[de]=ce&255,de+1},w.prototype.writeUint16LE=w.prototype.writeUInt16LE=function(ce,de,et){return ce=+ce,de=de>>>0,et||vt(this,ce,de,2,65535,0),this[de]=ce&255,this[de+1]=ce>>>8,de+2},w.prototype.writeUint16BE=w.prototype.writeUInt16BE=function(ce,de,et){return ce=+ce,de=de>>>0,et||vt(this,ce,de,2,65535,0),this[de]=ce>>>8,this[de+1]=ce&255,de+2},w.prototype.writeUint32LE=w.prototype.writeUInt32LE=function(ce,de,et){return ce=+ce,de=de>>>0,et||vt(this,ce,de,4,4294967295,0),this[de+3]=ce>>>24,this[de+2]=ce>>>16,this[de+1]=ce>>>8,this[de]=ce&255,de+4},w.prototype.writeUint32BE=w.prototype.writeUInt32BE=function(ce,de,et){return ce=+ce,de=de>>>0,et||vt(this,ce,de,4,4294967295,0),this[de]=ce>>>24,this[de+1]=ce>>>16,this[de+2]=ce>>>8,this[de+3]=ce&255,de+4};function re($e,ce,de,et,ht){Oe(ce,et,ht,$e,de,7);let Jt=Number(ce&BigInt(4294967295));$e[de++]=Jt,Jt=Jt>>8,$e[de++]=Jt,Jt=Jt>>8,$e[de++]=Jt,Jt=Jt>>8,$e[de++]=Jt;let Zt=Number(ce>>BigInt(32)&BigInt(4294967295));return $e[de++]=Zt,Zt=Zt>>8,$e[de++]=Zt,Zt=Zt>>8,$e[de++]=Zt,Zt=Zt>>8,$e[de++]=Zt,de}function Te($e,ce,de,et,ht){Oe(ce,et,ht,$e,de,7);let Jt=Number(ce&BigInt(4294967295));$e[de+7]=Jt,Jt=Jt>>8,$e[de+6]=Jt,Jt=Jt>>8,$e[de+5]=Jt,Jt=Jt>>8,$e[de+4]=Jt;let Zt=Number(ce>>BigInt(32)&BigInt(4294967295));return $e[de+3]=Zt,Zt=Zt>>8,$e[de+2]=Zt,Zt=Zt>>8,$e[de+1]=Zt,Zt=Zt>>8,$e[de]=Zt,de+8}w.prototype.writeBigUInt64LE=$n(function(ce,de=0){return re(this,ce,de,BigInt(0),BigInt("0xffffffffffffffff"))}),w.prototype.writeBigUInt64BE=$n(function(ce,de=0){return Te(this,ce,de,BigInt(0),BigInt("0xffffffffffffffff"))}),w.prototype.writeIntLE=function(ce,de,et,ht){if(ce=+ce,de=de>>>0,!ht){const ao=Math.pow(2,8*et-1);vt(this,ce,de,et,ao-1,-ao)}let Jt=0,Zt=1,qr=0;for(this[de]=ce&255;++Jt>0)-qr&255;return de+et},w.prototype.writeIntBE=function(ce,de,et,ht){if(ce=+ce,de=de>>>0,!ht){const ao=Math.pow(2,8*et-1);vt(this,ce,de,et,ao-1,-ao)}let Jt=et-1,Zt=1,qr=0;for(this[de+Jt]=ce&255;--Jt>=0&&(Zt*=256);)ce<0&&qr===0&&this[de+Jt+1]!==0&&(qr=1),this[de+Jt]=(ce/Zt>>0)-qr&255;return de+et},w.prototype.writeInt8=function(ce,de,et){return ce=+ce,de=de>>>0,et||vt(this,ce,de,1,127,-128),ce<0&&(ce=255+ce+1),this[de]=ce&255,de+1},w.prototype.writeInt16LE=function(ce,de,et){return ce=+ce,de=de>>>0,et||vt(this,ce,de,2,32767,-32768),this[de]=ce&255,this[de+1]=ce>>>8,de+2},w.prototype.writeInt16BE=function(ce,de,et){return ce=+ce,de=de>>>0,et||vt(this,ce,de,2,32767,-32768),this[de]=ce>>>8,this[de+1]=ce&255,de+2},w.prototype.writeInt32LE=function(ce,de,et){return ce=+ce,de=de>>>0,et||vt(this,ce,de,4,2147483647,-2147483648),this[de]=ce&255,this[de+1]=ce>>>8,this[de+2]=ce>>>16,this[de+3]=ce>>>24,de+4},w.prototype.writeInt32BE=function(ce,de,et){return ce=+ce,de=de>>>0,et||vt(this,ce,de,4,2147483647,-2147483648),ce<0&&(ce=4294967295+ce+1),this[de]=ce>>>24,this[de+1]=ce>>>16,this[de+2]=ce>>>8,this[de+3]=ce&255,de+4},w.prototype.writeBigInt64LE=$n(function(ce,de=0){return re(this,ce,de,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),w.prototype.writeBigInt64BE=$n(function(ce,de=0){return Te(this,ce,de,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ct($e,ce,de,et,ht,Jt){if(de+et>$e.length)throw new RangeError("Index out of range");if(de<0)throw new RangeError("Index out of range")}function at($e,ce,de,et,ht){return ce=+ce,de=de>>>0,ht||ct($e,ce,de,4),o.write($e,ce,de,et,23,4),de+4}w.prototype.writeFloatLE=function(ce,de,et){return at(this,ce,de,!0,et)},w.prototype.writeFloatBE=function(ce,de,et){return at(this,ce,de,!1,et)};function Ye($e,ce,de,et,ht){return ce=+ce,de=de>>>0,ht||ct($e,ce,de,8),o.write($e,ce,de,et,52,8),de+8}w.prototype.writeDoubleLE=function(ce,de,et){return Ye(this,ce,de,!0,et)},w.prototype.writeDoubleBE=function(ce,de,et){return Ye(this,ce,de,!1,et)},w.prototype.copy=function(ce,de,et,ht){if(!w.isBuffer(ce))throw new TypeError("argument should be a Buffer");if(et||(et=0),!ht&&ht!==0&&(ht=this.length),de>=ce.length&&(de=ce.length),de||(de=0),ht>0&&ht=this.length)throw new RangeError("Index out of range");if(ht<0)throw new RangeError("sourceEnd out of bounds");ht>this.length&&(ht=this.length),ce.length-de>>0,et=et===void 0?this.length:et>>>0,ce||(ce=0);let Jt;if(typeof ce=="number")for(Jt=de;Jt2**32?ht=rn(String(de)):typeof de=="bigint"&&(ht=String(de),(de>BigInt(2)**BigInt(32)||de<-(BigInt(2)**BigInt(32)))&&(ht=rn(ht)),ht+="n"),et+=` It must be ${ce}. Received ${ht}`,et},RangeError);function rn($e){let ce="",de=$e.length;const et=$e[0]==="-"?1:0;for(;de>=et+4;de-=3)ce=`_${$e.slice(de-3,de)}${ce}`;return`${$e.slice(0,de)}${ce}`}function Pe($e,ce,de){T(ce,"offset"),($e[ce]===void 0||$e[ce+de]===void 0)&&$(ce,$e.length-(de+1))}function Oe($e,ce,de,et,ht,Jt){if($e>de||$e= 0${Zt} and < 2${Zt} ** ${(Jt+1)*8}${Zt}`:qr=`>= -(2${Zt} ** ${(Jt+1)*8-1}${Zt}) and < 2 ** ${(Jt+1)*8-1}${Zt}`,new mt.ERR_OUT_OF_RANGE("value",qr,$e)}Pe(et,ht,Jt)}function T($e,ce){if(typeof $e!="number")throw new mt.ERR_INVALID_ARG_TYPE(ce,"number",$e)}function $($e,ce,de){throw Math.floor($e)!==$e?(T($e,de),new mt.ERR_OUT_OF_RANGE("offset","an integer",$e)):ce<0?new mt.ERR_BUFFER_OUT_OF_BOUNDS:new mt.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${ce}`,$e)}const B=/[^+/0-9A-Za-z-_]/g;function K($e){if($e=$e.split("=")[0],$e=$e.trim().replace(B,""),$e.length<2)return"";for(;$e.length%4!==0;)$e=$e+"=";return $e}function q($e,ce){ce=ce||1/0;let de;const et=$e.length;let ht=null;const Jt=[];for(let Zt=0;Zt55295&&de<57344){if(!ht){if(de>56319){(ce-=3)>-1&&Jt.push(239,191,189);continue}else if(Zt+1===et){(ce-=3)>-1&&Jt.push(239,191,189);continue}ht=de;continue}if(de<56320){(ce-=3)>-1&&Jt.push(239,191,189),ht=de;continue}de=(ht-55296<<10|de-56320)+65536}else ht&&(ce-=3)>-1&&Jt.push(239,191,189);if(ht=null,de<128){if((ce-=1)<0)break;Jt.push(de)}else if(de<2048){if((ce-=2)<0)break;Jt.push(de>>6|192,de&63|128)}else if(de<65536){if((ce-=3)<0)break;Jt.push(de>>12|224,de>>6&63|128,de&63|128)}else if(de<1114112){if((ce-=4)<0)break;Jt.push(de>>18|240,de>>12&63|128,de>>6&63|128,de&63|128)}else throw new Error("Invalid code point")}return Jt}function ke($e){const ce=[];for(let de=0;de<$e.length;++de)ce.push($e.charCodeAt(de)&255);return ce}function Re($e,ce){let de,et,ht;const Jt=[];for(let Zt=0;Zt<$e.length&&!((ce-=2)<0);++Zt)de=$e.charCodeAt(Zt),et=de>>8,ht=de%256,Jt.push(ht),Jt.push(et);return Jt}function Ie($e){return r.toByteArray(K($e))}function St($e,ce,de,et){let ht;for(ht=0;ht=ce.length||ht>=$e.length);++ht)ce[ht+de]=$e[ht];return ht}function he($e,ce){return $e instanceof ce||$e!=null&&$e.constructor!=null&&$e.constructor.name!=null&&$e.constructor.name===ce.name}function zt($e){return $e!==$e}const Qt=function(){const $e="0123456789abcdef",ce=new Array(256);for(let de=0;de<16;++de){const et=de*16;for(let ht=0;ht<16;++ht)ce[et+ht]=$e[de]+$e[ht]}return ce}();function $n($e){return typeof BigInt>"u"?Gn:$e}function Gn(){throw new Error("BigInt not supported")}})(Kr);var Df={ArrayIsArray(n){return Array.isArray(n)},ArrayPrototypeIncludes(n,r){return n.includes(r)},ArrayPrototypeIndexOf(n,r){return n.indexOf(r)},ArrayPrototypeJoin(n,r){return n.join(r)},ArrayPrototypeMap(n,r){return n.map(r)},ArrayPrototypePop(n,r){return n.pop(r)},ArrayPrototypePush(n,r){return n.push(r)},ArrayPrototypeSlice(n,r,o){return n.slice(r,o)},Error,FunctionPrototypeCall(n,r,...o){return n.call(r,...o)},FunctionPrototypeSymbolHasInstance(n,r){return Function.prototype[Symbol.hasInstance].call(n,r)},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(n,r){return Object.defineProperties(n,r)},ObjectDefineProperty(n,r,o){return Object.defineProperty(n,r,o)},ObjectGetOwnPropertyDescriptor(n,r){return Object.getOwnPropertyDescriptor(n,r)},ObjectKeys(n){return Object.keys(n)},ObjectSetPrototypeOf(n,r){return Object.setPrototypeOf(n,r)},Promise,PromisePrototypeCatch(n,r){return n.catch(r)},PromisePrototypeThen(n,r,o){return n.then(r,o)},PromiseReject(n){return Promise.reject(n)},PromiseResolve(n){return Promise.resolve(n)},ReflectApply:Reflect.apply,RegExpPrototypeTest(n,r){return n.test(r)},SafeSet:Set,String,StringPrototypeSlice(n,r,o){return n.slice(r,o)},StringPrototypeToLowerCase(n){return n.toLowerCase()},StringPrototypeToUpperCase(n){return n.toUpperCase()},StringPrototypeTrim(n){return n.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(n,r,o){return n.set(r,o)},Boolean,Uint8Array},cZt={exports:{}},Yz={exports:{}},aFt;function $o(){if(aFt)return Yz.exports;aFt=1;const{AbortController:n,AbortSignal:r}=typeof self<"u"?self:typeof window<"u"?window:void 0;return Yz.exports=n,Yz.exports.AbortSignal=r,Yz.exports.default=n,Yz.exports}var VWe={exports:{}},YD=typeof Reflect=="object"?Reflect:null,cFt=YD&&typeof YD.apply=="function"?YD.apply:function(r,o,l){return Function.prototype.apply.call(r,o,l)},Ife;YD&&typeof YD.ownKeys=="function"?Ife=YD.ownKeys:Object.getOwnPropertySymbols?Ife=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Ife=function(r){return Object.getOwnPropertyNames(r)};function oqn(n){console&&console.warn&&console.warn(n)}var uZt=Number.isNaN||function(r){return r!==r};function Sc(){Sc.init.call(this)}VWe.exports=Sc;VWe.exports.once=cqn;Sc.EventEmitter=Sc;Sc.prototype._events=void 0;Sc.prototype._eventsCount=0;Sc.prototype._maxListeners=void 0;var uFt=10;function upe(n){if(typeof n!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof n)}Object.defineProperty(Sc,"defaultMaxListeners",{enumerable:!0,get:function(){return uFt},set:function(n){if(typeof n!="number"||n<0||uZt(n))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+n+".");uFt=n}});Sc.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};Sc.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||uZt(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function fZt(n){return n._maxListeners===void 0?Sc.defaultMaxListeners:n._maxListeners}Sc.prototype.getMaxListeners=function(){return fZt(this)};Sc.prototype.emit=function(r){for(var o=[],l=1;l0&&(h=o[0]),h instanceof Error)throw h;var w=new Error("Unhandled error."+(h?" ("+h.message+")":""));throw w.context=h,w}var v=d[r];if(v===void 0)return!1;if(typeof v=="function")cFt(v,this,o);else for(var y=v.length,E=gZt(v,y),l=0;l0&&h.length>u&&!h.warned){h.warned=!0;var w=new Error("Possible EventEmitter memory leak detected. "+h.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");w.name="MaxListenersExceededWarning",w.emitter=n,w.type=r,w.count=h.length,oqn(w)}return n}Sc.prototype.addListener=function(r,o){return dZt(this,r,o,!1)};Sc.prototype.on=Sc.prototype.addListener;Sc.prototype.prependListener=function(r,o){return dZt(this,r,o,!0)};function sqn(){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 hZt(n,r,o){var l={fired:!1,wrapFn:void 0,target:n,type:r,listener:o},u=sqn.bind(l);return u.listener=o,l.wrapFn=u,u}Sc.prototype.once=function(r,o){return upe(o),this.on(r,hZt(this,r,o)),this};Sc.prototype.prependOnceListener=function(r,o){return upe(o),this.prependListener(r,hZt(this,r,o)),this};Sc.prototype.removeListener=function(r,o){var l,u,d,h,w;if(upe(o),u=this._events,u===void 0)return this;if(l=u[r],l===void 0)return this;if(l===o||l.listener===o)--this._eventsCount===0?this._events=Object.create(null):(delete u[r],u.removeListener&&this.emit("removeListener",r,l.listener||o));else if(typeof l!="function"){for(d=-1,h=l.length-1;h>=0;h--)if(l[h]===o||l[h].listener===o){w=l[h].listener,d=h;break}if(d<0)return this;d===0?l.shift():lqn(l,d),l.length===1&&(u[r]=l[0]),u.removeListener!==void 0&&this.emit("removeListener",r,w||o)}return this};Sc.prototype.off=Sc.prototype.removeListener;Sc.prototype.removeAllListeners=function(r){var o,l,u;if(l=this._events,l===void 0)return this;if(l.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):l[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete l[r]),this;if(arguments.length===0){var d=Object.keys(l),h;for(u=0;u=0;u--)this.removeListener(r,o[u]);return this};function pZt(n,r,o){var l=n._events;if(l===void 0)return[];var u=l[r];return u===void 0?[]:typeof u=="function"?o?[u.listener||u]:[u]:o?aqn(u):gZt(u,u.length)}Sc.prototype.listeners=function(r){return pZt(this,r,!0)};Sc.prototype.rawListeners=function(r){return pZt(this,r,!1)};Sc.listenerCount=function(n,r){return typeof n.listenerCount=="function"?n.listenerCount(r):bZt.call(n,r)};Sc.prototype.listenerCount=bZt;function bZt(n){var r=this._events;if(r!==void 0){var o=r[n];if(typeof o=="function")return 1;if(o!==void 0)return o.length}return 0}Sc.prototype.eventNames=function(){return this._eventsCount>0?Ife(this._events):[]};function gZt(n,r){for(var o=new Array(r),l=0;l{if(C!==void 0&&(C===null||typeof C!="object"||!("aborted"in C)))throw new ERR_INVALID_ARG_TYPE(R,"AbortSignal",C)},E=(C,R)=>{if(typeof C!="function")throw new ERR_INVALID_ARG_TYPE(R,"Function",C)};class A extends Error{constructor(R){if(!Array.isArray(R))throw new TypeError(`Expected input to be an Array, got ${typeof R}`);let O="";for(let M=0;M{C=M,R=L}),resolve:C,reject:R}},promisify(C){return new Promise((R,O)=>{C((M,...L)=>M?O(M):R(...L))})},debuglog(){return function(){}},format(C,...R){return C.replace(/%([sdifj])/g,function(...[O,M]){const L=R.shift();return M==="f"?L.toFixed(6):M==="j"?JSON.stringify(L):M==="s"&&typeof L=="object"?`${L.constructor!==Object?L.constructor.name:""} {}`.trim():L.toString()})},inspect(C){switch(typeof C){case"string":if(C.includes("'"))if(C.includes('"')){if(!C.includes("`")&&!C.includes("${"))return`\`${C}\``}else return`"${C}"`;return`'${C}'`;case"number":return isNaN(C)?"NaN":Object.is(C,-0)?String(C):C;case"bigint":return`${String(C)}n`;case"boolean":case"undefined":return String(C);case"object":return"{}"}},types:{isAsyncFunction(C){return C instanceof h},isArrayBufferView(C){return ArrayBuffer.isView(C)}},isBlob:v,deprecate(C,R){return C},addAbortListener:Ns.addAbortListener||function(R,O){if(R===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",R);y(R,"signal"),E(O,"listener");let M;return R.aborted?queueMicrotask(()=>O()):(R.addEventListener("abort",O,{__proto__:null,once:!0,[o]:!0}),M=()=>{R.removeEventListener("abort",O)}),{__proto__:null,[l](){var L;(L=M)===null||L===void 0||L()}}},AbortSignalAny:u.any||function(R){if(R.length===1)return R[0];const O=new d,M=()=>O.abort();return R.forEach(L=>{y(L,"signals"),L.addEventListener("abort",M,{once:!0})}),O.signal.addEventListener("abort",()=>{R.forEach(L=>L.removeEventListener("abort",M))},{once:!0}),O.signal}},n.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(cZt);var s1=cZt.exports,zWe={};const{format:fqn,inspect:Ide,AggregateError:dqn}=s1,hqn=globalThis.AggregateError||dqn,pqn=Symbol("kIsNodeError"),bqn=["string","function","number","object","Function","Object","boolean","bigint","symbol"],gqn=/^([A-Z][a-z0-9]*)+$/,wqn="__node_internal_",fpe={};function J8(n,r){if(!n)throw new fpe.ERR_INTERNAL_ASSERTION(r)}function fFt(n){let r="",o=n.length;const l=n[0]==="-"?1:0;for(;o>=l+4;o-=3)r=`_${n.slice(o-3,o)}${r}`;return`${n.slice(0,o)}${r}`}function mqn(n,r,o){if(typeof r=="function")return J8(r.length<=o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${r.length}).`),r(...o);const l=(r.match(/%[dfijoOs]/g)||[]).length;return J8(l===o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${l}).`),o.length===0?r:fqn(r,...o)}function Xp(n,r,o){o||(o=Error);class l extends o{constructor(...d){super(mqn(n,r,d))}toString(){return`${this.name} [${n}]: ${this.message}`}}Object.defineProperties(l.prototype,{name:{value:o.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${n}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),l.prototype.code=n,l.prototype[pqn]=!0,fpe[n]=l}function dFt(n){const r=wqn+n.name;return Object.defineProperty(n,"name",{value:r}),n}function yqn(n,r){if(n&&r&&n!==r){if(Array.isArray(r.errors))return r.errors.push(n),r;const o=new hqn([r,n],r.message);return o.code=r.code,o}return n||r}let vqn=class extends Error{constructor(r="The operation was aborted",o=void 0){if(o!==void 0&&typeof o!="object")throw new fpe.ERR_INVALID_ARG_TYPE("options","Object",o);super(r,o),this.code="ABORT_ERR",this.name="AbortError"}};Xp("ERR_ASSERTION","%s",Error);Xp("ERR_INVALID_ARG_TYPE",(n,r,o)=>{J8(typeof n=="string","'name' must be a string"),Array.isArray(r)||(r=[r]);let l="The ";n.endsWith(" argument")?l+=`${n} `:l+=`"${n}" ${n.includes(".")?"property":"argument"} `,l+="must be ";const u=[],d=[],h=[];for(const v of r)J8(typeof v=="string","All expected entries have to be of type string"),bqn.includes(v)?u.push(v.toLowerCase()):gqn.test(v)?d.push(v):(J8(v!=="object",'The value "object" should be written as "Object"'),h.push(v));if(d.length>0){const v=u.indexOf("object");v!==-1&&(u.splice(u,v,1),d.push("Object"))}if(u.length>0){switch(u.length){case 1:l+=`of type ${u[0]}`;break;case 2:l+=`one of type ${u[0]} or ${u[1]}`;break;default:{const v=u.pop();l+=`one of type ${u.join(", ")}, or ${v}`}}(d.length>0||h.length>0)&&(l+=" or ")}if(d.length>0){switch(d.length){case 1:l+=`an instance of ${d[0]}`;break;case 2:l+=`an instance of ${d[0]} or ${d[1]}`;break;default:{const v=d.pop();l+=`an instance of ${d.join(", ")}, or ${v}`}}h.length>0&&(l+=" or ")}switch(h.length){case 0:break;case 1:h[0].toLowerCase()!==h[0]&&(l+="an "),l+=`${h[0]}`;break;case 2:l+=`one of ${h[0]} or ${h[1]}`;break;default:{const v=h.pop();l+=`one of ${h.join(", ")}, or ${v}`}}if(o==null)l+=`. Received ${o}`;else if(typeof o=="function"&&o.name)l+=`. Received function ${o.name}`;else if(typeof o=="object"){var w;if((w=o.constructor)!==null&&w!==void 0&&w.name)l+=`. Received an instance of ${o.constructor.name}`;else{const v=Ide(o,{depth:-1});l+=`. Received ${v}`}}else{let v=Ide(o,{colors:!1});v.length>25&&(v=`${v.slice(0,25)}...`),l+=`. Received type ${typeof o} (${v})`}return l},TypeError);Xp("ERR_INVALID_ARG_VALUE",(n,r,o="is invalid")=>{let l=Ide(r);return l.length>128&&(l=l.slice(0,128)+"..."),`The ${n.includes(".")?"property":"argument"} '${n}' ${o}. Received ${l}`},TypeError);Xp("ERR_INVALID_RETURN_VALUE",(n,r,o)=>{var l;const u=o!=null&&(l=o.constructor)!==null&&l!==void 0&&l.name?`instance of ${o.constructor.name}`:`type ${typeof o}`;return`Expected ${n} to be returned from the "${r}" function but got ${u}.`},TypeError);Xp("ERR_MISSING_ARGS",(...n)=>{J8(n.length>0,"At least one arg needs to be specified");let r;const o=n.length;switch(n=(Array.isArray(n)?n:[n]).map(l=>`"${l}"`).join(" or "),o){case 1:r+=`The ${n[0]} argument`;break;case 2:r+=`The ${n[0]} and ${n[1]} arguments`;break;default:{const l=n.pop();r+=`The ${n.join(", ")}, and ${l} arguments`}break}return`${r} must be specified`},TypeError);Xp("ERR_OUT_OF_RANGE",(n,r,o)=>{J8(r,'Missing "range" argument');let l;return Number.isInteger(o)&&Math.abs(o)>2**32?l=fFt(String(o)):typeof o=="bigint"?(l=String(o),(o>2n**32n||o<-(2n**32n))&&(l=fFt(l)),l+="n"):l=Ide(o),`The value of "${n}" is out of range. It must be ${r}. Received ${l}`},RangeError);Xp("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);Xp("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);Xp("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);Xp("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);Xp("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);Xp("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Xp("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);Xp("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);Xp("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);Xp("ERR_STREAM_WRITE_AFTER_END","write after end",Error);Xp("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var A0={AbortError:vqn,aggregateTwoErrors:dFt(yqn),hideStackFrames:dFt,codes:fpe};const{ArrayIsArray:KWe,ArrayPrototypeIncludes:mZt,ArrayPrototypeJoin:yZt,ArrayPrototypeMap:_qn,NumberIsInteger:qWe,NumberIsNaN:Sqn,NumberMAX_SAFE_INTEGER:Eqn,NumberMIN_SAFE_INTEGER:kqn,NumberParseInt:Rqn,ObjectPrototypeHasOwnProperty:xqn,RegExpPrototypeExec:vZt,String:Cqn,StringPrototypeToUpperCase:Aqn,StringPrototypeTrim:Tqn}=Df,{hideStackFrames:uv,codes:{ERR_SOCKET_BAD_PORT:$qn,ERR_INVALID_ARG_TYPE:zb,ERR_INVALID_ARG_VALUE:ij,ERR_OUT_OF_RANGE:_P,ERR_UNKNOWN_SIGNAL:hFt}}=A0,{normalizeEncoding:Iqn}=s1,{isAsyncFunction:Pqn,isArrayBufferView:Oqn}=s1.types,pFt={};function Nqn(n){return n===(n|0)}function Mqn(n){return n===n>>>0}const Dqn=/^[0-7]+$/,Lqn="must be a 32-bit unsigned integer or an octal string";function jqn(n,r,o){if(typeof n>"u"&&(n=o),typeof n=="string"){if(vZt(Dqn,n)===null)throw new ij(r,n,Lqn);n=Rqn(n,8)}return _Zt(n,r),n}const Fqn=uv((n,r,o=kqn,l=Eqn)=>{if(typeof n!="number")throw new zb(r,"number",n);if(!qWe(n))throw new _P(r,"an integer",n);if(nl)throw new _P(r,`>= ${o} && <= ${l}`,n)}),Bqn=uv((n,r,o=-2147483648,l=2147483647)=>{if(typeof n!="number")throw new zb(r,"number",n);if(!qWe(n))throw new _P(r,"an integer",n);if(nl)throw new _P(r,`>= ${o} && <= ${l}`,n)}),_Zt=uv((n,r,o=!1)=>{if(typeof n!="number")throw new zb(r,"number",n);if(!qWe(n))throw new _P(r,"an integer",n);const l=o?1:0,u=4294967295;if(nu)throw new _P(r,`>= ${l} && <= ${u}`,n)});function XWe(n,r){if(typeof n!="string")throw new zb(r,"string",n)}function Wqn(n,r,o=void 0,l){if(typeof n!="number")throw new zb(r,"number",n);if(o!=null&&nl||(o!=null||l!=null)&&Sqn(n))throw new _P(r,`${o!=null?`>= ${o}`:""}${o!=null&&l!=null?" && ":""}${l!=null?`<= ${l}`:""}`,n)}const Hqn=uv((n,r,o)=>{if(!mZt(o,n)){const u="must be one of: "+yZt(_qn(o,d=>typeof d=="string"?`'${d}'`:Cqn(d)),", ");throw new ij(r,n,u)}});function SZt(n,r){if(typeof n!="boolean")throw new zb(r,"boolean",n)}function R7e(n,r,o){return n==null||!xqn(n,r)?o:n[r]}const Uqn=uv((n,r,o=null)=>{const l=R7e(o,"allowArray",!1),u=R7e(o,"allowFunction",!1);if(!R7e(o,"nullable",!1)&&n===null||!l&&KWe(n)||typeof n!="object"&&(!u||typeof n!="function"))throw new zb(r,"Object",n)}),Gqn=uv((n,r)=>{if(n!=null&&typeof n!="object"&&typeof n!="function")throw new zb(r,"a dictionary",n)}),dpe=uv((n,r,o=0)=>{if(!KWe(n))throw new zb(r,"Array",n);if(n.length{if(!Oqn(n))throw new zb(r,["Buffer","TypedArray","DataView"],n)});function Jqn(n,r){const o=Iqn(r),l=n.length;if(o==="hex"&&l%2!==0)throw new ij("encoding",r,`is invalid for data of length ${l}`)}function Yqn(n,r="Port",o=!0){if(typeof n!="number"&&typeof n!="string"||typeof n=="string"&&Tqn(n).length===0||+n!==+n>>>0||n>65535||n===0&&!o)throw new $qn(r,n,o);return n|0}const EZt=uv((n,r)=>{if(n!==void 0&&(n===null||typeof n!="object"||!("aborted"in n)))throw new zb(r,"AbortSignal",n)}),Qqn=uv((n,r)=>{if(typeof n!="function")throw new zb(r,"Function",n)}),Zqn=uv((n,r)=>{if(typeof n!="function"||Pqn(n))throw new zb(r,"Function",n)}),eXn=uv((n,r)=>{if(n!==void 0)throw new zb(r,"undefined",n)});function tXn(n,r,o){if(!mZt(o,n))throw new zb(r,`('${yZt(o,"|")}')`,n)}const nXn=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function bFt(n,r){if(typeof n>"u"||!vZt(nXn,n))throw new ij(r,n,'must be an array or string of format "; rel=preload; as=style"')}function rXn(n){if(typeof n=="string")return bFt(n,"hints"),n;if(KWe(n)){const r=n.length;let o="";if(r===0)return o;for(let l=0;l; rel=preload; as=style"')}var nJ={isInt32:Nqn,isUint32:Mqn,parseFileMode:jqn,validateArray:dpe,validateStringArray:Vqn,validateBooleanArray:zqn,validateAbortSignalArray:Kqn,validateBoolean:SZt,validateBuffer:Xqn,validateDictionary:Gqn,validateEncoding:Jqn,validateFunction:Qqn,validateInt32:Bqn,validateInteger:Fqn,validateNumber:Wqn,validateObject:Uqn,validateOneOf:Hqn,validatePlainFunction:Zqn,validatePort:Yqn,validateSignalName:qqn,validateString:XWe,validateUint32:_Zt,validateUndefined:eXn,validateUnion:tXn,validateAbortSignal:EZt,validateLinkHeaderValue:rXn},JWe={exports:{}},kZt={exports:{}},Sd=kZt.exports={},IE,PE;function LLe(){throw new Error("setTimeout has not been defined")}function jLe(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?IE=setTimeout:IE=LLe}catch{IE=LLe}try{typeof clearTimeout=="function"?PE=clearTimeout:PE=jLe}catch{PE=jLe}})();function RZt(n){if(IE===setTimeout)return setTimeout(n,0);if((IE===LLe||!IE)&&setTimeout)return IE=setTimeout,setTimeout(n,0);try{return IE(n,0)}catch{try{return IE.call(null,n,0)}catch{return IE.call(this,n,0)}}}function iXn(n){if(PE===clearTimeout)return clearTimeout(n);if((PE===jLe||!PE)&&clearTimeout)return PE=clearTimeout,clearTimeout(n);try{return PE(n)}catch{try{return PE.call(null,n)}catch{return PE.call(this,n)}}}var WR=[],QD=!1,H8,Pfe=-1;function oXn(){!QD||!H8||(QD=!1,H8.length?WR=H8.concat(WR):Pfe=-1,WR.length&&xZt())}function xZt(){if(!QD){var n=RZt(oXn);QD=!0;for(var r=WR.length;r;){for(H8=WR,WR=[];++Pfe1)for(var o=1;o{};function HZt(n,r,o){var l,u;if(arguments.length===2?(o=r,r=WLe):r==null?r=WLe:RXn(r,"options"),kXn(o,"callback"),EXn(r.signal,"options.signal"),o=HLe(o),$Xn(n)||IXn(n))return DXn(n,r,o);if(!PXn(n))throw new SXn("stream",["ReadableStream","WritableStream","Stream"],n);const d=(l=r.readable)!==null&&l!==void 0?l:x7e(n),h=(u=r.writable)!==null&&u!==void 0?u:EFt(n),w=n._writableState,v=n._readableState,y=()=>{n.writable||C()};let E=OXn(n)&&x7e(n)===d&&EFt(n)===h,A=kFt(n,!1);const C=()=>{A=!0,n.destroyed&&(E=!1),!(E&&(!n.readable||d))&&(!d||R)&&o.call(n)};let R=vFt(n,!1);const O=()=>{R=!0,n.destroyed&&(E=!1),!(E&&(!n.writable||h))&&(!h||A)&&o.call(n)},M=te=>{o.call(n,te)};let L=TXn(n);const H=()=>{L=!0;const te=RFt(n)||_Ft(n);if(te&&typeof te!="boolean")return o.call(n,te);if(d&&!R&&x7e(n,!0)&&!vFt(n,!1))return o.call(n,new mFt);if(h&&!A&&!kFt(n,!1))return o.call(n,new mFt);o.call(n)},G=()=>{L=!0;const te=RFt(n)||_Ft(n);if(te&&typeof te!="boolean")return o.call(n,te);o.call(n)},j=()=>{n.req.on("finish",C)};MXn(n)?(n.on("complete",C),E||n.on("abort",H),n.req?j():n.on("request",j)):h&&!w&&(n.on("end",y),n.on("close",y)),!E&&typeof n.aborted=="boolean"&&n.on("aborted",H),n.on("end",O),n.on("finish",C),r.error!==!1&&n.on("error",M),n.on("close",H),L?V4.nextTick(H):w!=null&&w.errorEmitted||v!=null&&v.errorEmitted?E||V4.nextTick(G):(!d&&(!E||yFt(n))&&(A||SFt(n)===!1)||!h&&(!E||SFt(n))&&(R||yFt(n)===!1)||v&&n.req&&n.aborted)&&V4.nextTick(G);const Q=()=>{o=ULe,n.removeListener("aborted",H),n.removeListener("complete",C),n.removeListener("abort",H),n.removeListener("request",j),n.req&&n.req.removeListener("finish",C),n.removeListener("end",y),n.removeListener("close",y),n.removeListener("finish",C),n.removeListener("end",O),n.removeListener("error",M),n.removeListener("close",H)};if(r.signal&&!L){const te=()=>{const pe=o;Q(),pe.call(n,new BZt(void 0,{cause:r.signal.reason}))};if(r.signal.aborted)V4.nextTick(te);else{ZD=ZD||s1.addAbortListener;const pe=ZD(r.signal,te),Le=o;o=HLe((...Ee)=>{pe[WZt](),Le.apply(n,Ee)})}}return Q}function DXn(n,r,o){let l=!1,u=ULe;if(r.signal)if(u=()=>{l=!0,o.call(n,new BZt(void 0,{cause:r.signal.reason}))},r.signal.aborted)V4.nextTick(u);else{ZD=ZD||s1.addAbortListener;const h=ZD(r.signal,u),w=o;o=HLe((...v)=>{h[WZt](),w.apply(n,v)})}const d=(...h)=>{l||V4.nextTick(()=>o.apply(n,h))};return AXn(n[NXn].promise,d,d),ULe}function LXn(n,r){var o;let l=!1;return r===null&&(r=WLe),(o=r)!==null&&o!==void 0&&o.cleanup&&(xXn(r.cleanup,"cleanup"),l=r.cleanup),new CXn((u,d)=>{const h=HZt(n,r,w=>{l&&h(),w?d(w):u()})})}JWe.exports=HZt;JWe.exports.finished=LXn;var MT=JWe.exports;const WE=ui,{aggregateTwoErrors:jXn,codes:{ERR_MULTIPLE_CALLBACK:FXn},AbortError:BXn}=A0,{Symbol:UZt}=Df,{kIsDestroyed:WXn,isDestroyed:HXn,isFinished:UXn,isServerRequest:GXn}=kx,GZt=UZt("kDestroy"),GLe=UZt("kConstruct");function VZt(n,r,o){n&&(n.stack,r&&!r.errored&&(r.errored=n),o&&!o.errored&&(o.errored=n))}function VXn(n,r){const o=this._readableState,l=this._writableState,u=l||o;return l!=null&&l.destroyed||o!=null&&o.destroyed?(typeof r=="function"&&r(),this):(VZt(n,l,o),l&&(l.destroyed=!0),o&&(o.destroyed=!0),u.constructed?xFt(this,n,r):this.once(GZt,function(d){xFt(this,jXn(d,n),r)}),this)}function xFt(n,r,o){let l=!1;function u(d){if(l)return;l=!0;const h=n._readableState,w=n._writableState;VZt(d,w,h),w&&(w.closed=!0),h&&(h.closed=!0),typeof o=="function"&&o(d),d?WE.nextTick(zXn,n,d):WE.nextTick(zZt,n)}try{n._destroy(r||null,u)}catch(d){u(d)}}function zXn(n,r){VLe(n,r),zZt(n)}function zZt(n){const r=n._readableState,o=n._writableState;o&&(o.closeEmitted=!0),r&&(r.closeEmitted=!0),(o!=null&&o.emitClose||r!=null&&r.emitClose)&&n.emit("close")}function VLe(n,r){const o=n._readableState,l=n._writableState;l!=null&&l.errorEmitted||o!=null&&o.errorEmitted||(l&&(l.errorEmitted=!0),o&&(o.errorEmitted=!0),n.emit("error",r))}function KXn(){const n=this._readableState,r=this._writableState;n&&(n.constructed=!0,n.closed=!1,n.closeEmitted=!1,n.destroyed=!1,n.errored=null,n.errorEmitted=!1,n.reading=!1,n.ended=n.readable===!1,n.endEmitted=n.readable===!1),r&&(r.constructed=!0,r.destroyed=!1,r.closed=!1,r.closeEmitted=!1,r.errored=null,r.errorEmitted=!1,r.finalCalled=!1,r.prefinished=!1,r.ended=r.writable===!1,r.ending=r.writable===!1,r.finished=r.writable===!1)}function zLe(n,r,o){const l=n._readableState,u=n._writableState;if(u!=null&&u.destroyed||l!=null&&l.destroyed)return this;l!=null&&l.autoDestroy||u!=null&&u.autoDestroy?n.destroy(r):r&&(r.stack,u&&!u.errored&&(u.errored=r),l&&!l.errored&&(l.errored=r),o?WE.nextTick(VLe,n,r):VLe(n,r))}function qXn(n,r){if(typeof n._construct!="function")return;const o=n._readableState,l=n._writableState;o&&(o.constructed=!1),l&&(l.constructed=!1),n.once(GLe,r),!(n.listenerCount(GLe)>1)&&WE.nextTick(XXn,n)}function XXn(n){let r=!1;function o(l){if(r){zLe(n,l??new FXn);return}r=!0;const u=n._readableState,d=n._writableState,h=d||u;u&&(u.constructed=!0),d&&(d.constructed=!0),h.destroyed?n.emit(GZt,l):l?zLe(n,l,!0):WE.nextTick(JXn,n)}try{n._construct(l=>{WE.nextTick(o,l)})}catch(l){WE.nextTick(o,l)}}function JXn(n){n.emit(GLe)}function CFt(n){return(n==null?void 0:n.setHeader)&&typeof n.abort=="function"}function KZt(n){n.emit("close")}function YXn(n,r){n.emit("error",r),WE.nextTick(KZt,n)}function QXn(n,r){!n||HXn(n)||(!r&&!UXn(n)&&(r=new BXn),GXn(n)?(n.socket=null,n.destroy(r)):CFt(n)?n.abort():CFt(n.req)?n.req.abort():typeof n.destroy=="function"?n.destroy(r):typeof n.close=="function"?n.close():r?WE.nextTick(YXn,n,r):WE.nextTick(KZt,n),n.destroyed||(n[WXn]=!0))}var oj={construct:qXn,destroyer:QXn,destroy:VXn,undestroy:KXn,errorOrDestroy:zLe};const{ArrayIsArray:ZXn,ObjectSetPrototypeOf:qZt}=Df,{EventEmitter:gpe}=Ns;function wpe(n){gpe.call(this,n)}qZt(wpe.prototype,gpe.prototype);qZt(wpe,gpe);wpe.prototype.pipe=function(n,r){const o=this;function l(E){n.writable&&n.write(E)===!1&&o.pause&&o.pause()}o.on("data",l);function u(){o.readable&&o.resume&&o.resume()}n.on("drain",u),!n._isStdio&&(!r||r.end!==!1)&&(o.on("end",h),o.on("close",w));let d=!1;function h(){d||(d=!0,n.end())}function w(){d||(d=!0,typeof n.destroy=="function"&&n.destroy())}function v(E){y(),gpe.listenerCount(this,"error")===0&&this.emit("error",E)}KLe(o,"error",v),KLe(n,"error",v);function y(){o.removeListener("data",l),n.removeListener("drain",u),o.removeListener("end",h),o.removeListener("close",w),o.removeListener("error",v),n.removeListener("error",v),o.removeListener("end",y),o.removeListener("close",y),n.removeListener("close",y)}return o.on("end",y),o.on("close",y),n.on("close",y),n.emit("pipe",o),n};function KLe(n,r,o){if(typeof n.prependListener=="function")return n.prependListener(r,o);!n._events||!n._events[r]?n.on(r,o):ZXn(n._events[r])?n._events[r].unshift(o):n._events[r]=[o,n._events[r]]}var YWe={Stream:wpe,prependListener:KLe},XZt={exports:{}};(function(n){const{SymbolDispose:r}=Df,{AbortError:o,codes:l}=A0,{isNodeStream:u,isWebStream:d,kControllerErrorFunction:h}=kx,w=MT,{ERR_INVALID_ARG_TYPE:v}=l;let y;const E=(A,C)=>{if(typeof A!="object"||!("aborted"in A))throw new v(C,"AbortSignal",A)};n.exports.addAbortSignal=function(C,R){if(E(C,"signal"),!u(R)&&!d(R))throw new v("stream",["ReadableStream","WritableStream","Stream"],R);return n.exports.addAbortSignalNoValidate(C,R)},n.exports.addAbortSignalNoValidate=function(A,C){if(typeof A!="object"||!("aborted"in A))return C;const R=u(C)?()=>{C.destroy(new o(void 0,{cause:A.reason}))}:()=>{C[h](new o(void 0,{cause:A.reason}))};if(A.aborted)R();else{y=y||s1.addAbortListener;const O=y(A,R);w(C,O[r])}return C}})(XZt);var mpe=XZt.exports;const{StringPrototypeSlice:AFt,SymbolIterator:eJn,TypedArrayPrototypeSet:Qce,Uint8Array:tJn}=Df,{Buffer:C7e}=Kr,{inspect:nJn}=s1;var rJn=class{constructor(){this.head=null,this.tail=null,this.length=0}push(r){const o={data:r,next:null};this.length>0?this.tail.next=o:this.head=o,this.tail=o,++this.length}unshift(r){const o={data:r,next:this.head};this.length===0&&(this.tail=o),this.head=o,++this.length}shift(){if(this.length===0)return;const r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}clear(){this.head=this.tail=null,this.length=0}join(r){if(this.length===0)return"";let o=this.head,l=""+o.data;for(;(o=o.next)!==null;)l+=r+o.data;return l}concat(r){if(this.length===0)return C7e.alloc(0);const o=C7e.allocUnsafe(r>>>0);let l=this.head,u=0;for(;l;)Qce(o,l.data,u),u+=l.data.length,l=l.next;return o}consume(r,o){const l=this.head.data;if(rd.length)o+=d,r-=d.length;else{r===d.length?(o+=d,++u,l.next?this.head=l.next:this.head=this.tail=null):(o+=AFt(d,0,r),this.head=l,l.data=AFt(d,r));break}++u}while((l=l.next)!==null);return this.length-=u,o}_getBuffer(r){const o=C7e.allocUnsafe(r),l=r;let u=this.head,d=0;do{const h=u.data;if(r>h.length)Qce(o,h,l-r),r-=h.length;else{r===h.length?(Qce(o,h,l-r),++d,u.next?this.head=u.next:this.head=this.tail=null):(Qce(o,new tJn(h.buffer,h.byteOffset,r),l-r),this.head=u,u.data=h.slice(r));break}++d}while((u=u.next)!==null);return this.length-=d,o}[Symbol.for("nodejs.util.inspect.custom")](r,o){return nJn(this,{...o,depth:0,customInspect:!1})}};const{MathFloor:iJn,NumberIsInteger:oJn}=Df,{validateInteger:sJn}=nJ,{ERR_INVALID_ARG_VALUE:lJn}=A0.codes;let JZt=16*1024,YZt=16;function aJn(n,r,o){return n.highWaterMark!=null?n.highWaterMark:r?n[o]:null}function QZt(n){return n?YZt:JZt}function cJn(n,r){sJn(r,"value",0),n?YZt=r:JZt=r}function uJn(n,r,o,l){const u=aJn(r,l,o);if(u!=null){if(!oJn(u)||u<0){const d=l?`options.${o}`:"options.highWaterMark";throw new lJn(d,u)}return iJn(u)}return QZt(n.objectMode)}var ype={getHighWaterMark:uJn,getDefaultHighWaterMark:QZt,setDefaultHighWaterMark:cJn},rm={},qLe={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh */(function(n,r){var o=Kr,l=o.Buffer;function u(h,w){for(var v in h)w[v]=h[v]}l.from&&l.alloc&&l.allocUnsafe&&l.allocUnsafeSlow?n.exports=o:(u(o,r),r.Buffer=d);function d(h,w,v){return l(h,w,v)}d.prototype=Object.create(l.prototype),u(l,d),d.from=function(h,w,v){if(typeof h=="number")throw new TypeError("Argument must not be a number");return l(h,w,v)},d.alloc=function(h,w,v){if(typeof h!="number")throw new TypeError("Argument must be a number");var y=l(h);return w!==void 0?typeof v=="string"?y.fill(w,v):y.fill(w):y.fill(0),y},d.allocUnsafe=function(h){if(typeof h!="number")throw new TypeError("Argument must be a number");return l(h)},d.allocUnsafeSlow=function(h){if(typeof h!="number")throw new TypeError("Argument must be a number");return o.SlowBuffer(h)}})(qLe,qLe.exports);var fJn=qLe.exports,QWe=fJn.Buffer,TFt=QWe.isEncoding||function(n){switch(n=""+n,n&&n.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 dJn(n){if(!n)return"utf8";for(var r;;)switch(n){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 n;default:if(r)return;n=(""+n).toLowerCase(),r=!0}}function hJn(n){var r=dJn(n);if(typeof r!="string"&&(QWe.isEncoding===TFt||!TFt(n)))throw new Error("Unknown encoding: "+n);return r||n}rm.StringDecoder=rJ;function rJ(n){this.encoding=hJn(n);var r;switch(this.encoding){case"utf16le":this.text=yJn,this.end=vJn,r=4;break;case"utf8":this.fillLast=gJn,r=4;break;case"base64":this.text=_Jn,this.end=SJn,r=3;break;default:this.write=EJn,this.end=kJn;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=QWe.allocUnsafe(r)}rJ.prototype.write=function(n){if(n.length===0)return"";var r,o;if(this.lastNeed){if(r=this.fillLast(n),r===void 0)return"";o=this.lastNeed,this.lastNeed=0}else o=0;return o>5===6?2:n>>4===14?3:n>>3===30?4:n>>6===2?-1:-2}function pJn(n,r,o){var l=r.length-1;if(l=0?(u>0&&(n.lastNeed=u-1),u):--l=0?(u>0&&(n.lastNeed=u-2),u):--l=0?(u>0&&(u===2?u=0:n.lastNeed=u-3),u):0))}function bJn(n,r,o){if((r[0]&192)!==128)return n.lastNeed=0,"�";if(n.lastNeed>1&&r.length>1){if((r[1]&192)!==128)return n.lastNeed=1,"�";if(n.lastNeed>2&&r.length>2&&(r[2]&192)!==128)return n.lastNeed=2,"�"}}function gJn(n){var r=this.lastTotal-this.lastNeed,o=bJn(this,n);if(o!==void 0)return o;if(this.lastNeed<=n.length)return n.copy(this.lastChar,r,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);n.copy(this.lastChar,r,0,n.length),this.lastNeed-=n.length}function wJn(n,r){var o=pJn(this,n,r);if(!this.lastNeed)return n.toString("utf8",r);this.lastTotal=o;var l=n.length-(o-this.lastNeed);return n.copy(this.lastChar,0,l),n.toString("utf8",r,l)}function mJn(n){var r=n&&n.length?this.write(n):"";return this.lastNeed?r+"�":r}function yJn(n,r){if((n.length-r)%2===0){var o=n.toString("utf16le",r);if(o){var l=o.charCodeAt(o.length-1);if(l>=55296&&l<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=n[n.length-2],this.lastChar[1]=n[n.length-1],o.slice(0,-1)}return o}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=n[n.length-1],n.toString("utf16le",r,n.length-1)}function vJn(n){var r=n&&n.length?this.write(n):"";if(this.lastNeed){var o=this.lastTotal-this.lastNeed;return r+this.lastChar.toString("utf16le",0,o)}return r}function _Jn(n,r){var o=(n.length-r)%3;return o===0?n.toString("base64",r):(this.lastNeed=3-o,this.lastTotal=3,o===1?this.lastChar[0]=n[n.length-1]:(this.lastChar[0]=n[n.length-2],this.lastChar[1]=n[n.length-1]),n.toString("base64",r,n.length-o))}function SJn(n){var r=n&&n.length?this.write(n):"";return this.lastNeed?r+this.lastChar.toString("base64",0,3-this.lastNeed):r}function EJn(n){return n.toString(this.encoding)}function kJn(n){return n&&n.length?this.write(n):""}const $Ft=ui,{PromisePrototypeThen:RJn,SymbolAsyncIterator:IFt,SymbolIterator:PFt}=Df,{Buffer:xJn}=Kr,{ERR_INVALID_ARG_TYPE:CJn,ERR_STREAM_NULL_VALUES:AJn}=A0.codes;function TJn(n,r,o){let l;if(typeof r=="string"||r instanceof xJn)return new n({objectMode:!0,...o,read(){this.push(r),this.push(null)}});let u;if(r&&r[IFt])u=!0,l=r[IFt]();else if(r&&r[PFt])u=!1,l=r[PFt]();else throw new CJn("iterable",["Iterable"],r);const d=new n({objectMode:!0,highWaterMark:1,...o});let h=!1;d._read=function(){h||(h=!0,v())},d._destroy=function(y,E){RJn(w(y),()=>$Ft.nextTick(E,y),A=>$Ft.nextTick(E,A||y))};async function w(y){const E=y!=null,A=typeof l.throw=="function";if(E&&A){const{value:C,done:R}=await l.throw(y);if(await C,R)return}if(typeof l.return=="function"){const{value:C}=await l.return();await C}}async function v(){for(;;){try{const{value:y,done:E}=u?await l.next():l.next();if(E)d.push(null);else{const A=y&&typeof y.then=="function"?await y:y;if(A===null)throw h=!1,new AJn;if(d.push(A))continue;h=!1}}catch(y){d.destroy(y)}break}}return d}var ZZt=TJn,T7e,OFt;function vpe(){if(OFt)return T7e;OFt=1;const n=ui,{ArrayPrototypeIndexOf:r,NumberIsInteger:o,NumberIsNaN:l,NumberParseInt:u,ObjectDefineProperties:d,ObjectKeys:h,ObjectSetPrototypeOf:w,Promise:v,SafeSet:y,SymbolAsyncDispose:E,SymbolAsyncIterator:A,Symbol:C}=Df;T7e=he,he.ReadableState=St;const{EventEmitter:R}=Ns,{Stream:O,prependListener:M}=YWe,{Buffer:L}=Kr,{addAbortSignal:H}=mpe,G=MT;let j=s1.debuglog("stream",S=>{j=S});const Q=rJn,te=oj,{getHighWaterMark:pe,getDefaultHighWaterMark:Le}=ype,{aggregateTwoErrors:Ee,codes:{ERR_INVALID_ARG_TYPE:le,ERR_METHOD_NOT_IMPLEMENTED:xe,ERR_OUT_OF_RANGE:be,ERR_STREAM_PUSH_AFTER_EOF:ae,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:F},AbortError:me}=A0,{validateObject:ye}=nJ,we=C("kPaused"),{StringDecoder:Be}=rm,He=ZZt;w(he.prototype,O.prototype),w(he,O);const Ue=()=>{},{errorOrDestroy:Ge}=te,Me=1,vt=2,re=4,Te=8,ct=16,at=32,Ye=64,mt=128,jt=256,rn=512,Pe=1024,Oe=2048,T=4096,$=8192,B=16384,K=32768,q=65536,ke=1<<17,Re=1<<18;function Ie(S){return{enumerable:!1,get(){return(this.state&S)!==0},set(x){x?this.state|=S:this.state&=~S}}}d(St.prototype,{objectMode:Ie(Me),ended:Ie(vt),endEmitted:Ie(re),reading:Ie(Te),constructed:Ie(ct),sync:Ie(at),needReadable:Ie(Ye),emittedReadable:Ie(mt),readableListening:Ie(jt),resumeScheduled:Ie(rn),errorEmitted:Ie(Pe),emitClose:Ie(Oe),autoDestroy:Ie(T),destroyed:Ie($),closed:Ie(B),closeEmitted:Ie(K),multiAwaitDrain:Ie(q),readingMore:Ie(ke),dataEmitted:Ie(Re)});function St(S,x,Y){typeof Y!="boolean"&&(Y=x instanceof qR()),this.state=Oe|T|ct|at,S&&S.objectMode&&(this.state|=Me),Y&&S&&S.readableObjectMode&&(this.state|=Me),this.highWaterMark=S?pe(this,S,"readableHighWaterMark",Y):Le(!1),this.buffer=new Q,this.length=0,this.pipes=[],this.flowing=null,this[we]=null,S&&S.emitClose===!1&&(this.state&=~Oe),S&&S.autoDestroy===!1&&(this.state&=~T),this.errored=null,this.defaultEncoding=S&&S.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,S&&S.encoding&&(this.decoder=new Be(S.encoding),this.encoding=S.encoding)}function he(S){if(!(this instanceof he))return new he(S);const x=this instanceof qR();this._readableState=new St(S,this,x),S&&(typeof S.read=="function"&&(this._read=S.read),typeof S.destroy=="function"&&(this._destroy=S.destroy),typeof S.construct=="function"&&(this._construct=S.construct),S.signal&&!x&&H(S.signal,this)),O.call(this,S),te.construct(this,()=>{this._readableState.needReadable&&ht(this,this._readableState)})}he.prototype.destroy=te.destroy,he.prototype._undestroy=te.undestroy,he.prototype._destroy=function(S,x){x(S)},he.prototype[R.captureRejectionSymbol]=function(S){this.destroy(S)},he.prototype[E]=function(){let S;return this.destroyed||(S=this.readableEnded?null:new me,this.destroy(S)),new v((x,Y)=>G(this,J=>J&&J!==S?Y(J):x(null)))},he.prototype.push=function(S,x){return zt(this,S,x,!1)},he.prototype.unshift=function(S,x){return zt(this,S,x,!0)};function zt(S,x,Y,J){j("readableAddChunk",x);const ue=S._readableState;let Yt;if(ue.state&Me||(typeof x=="string"?(Y=Y||ue.defaultEncoding,ue.encoding!==Y&&(J&&ue.encoding?x=L.from(x,Y).toString(ue.encoding):(x=L.from(x,Y),Y=""))):x instanceof L?Y="":O._isUint8Array(x)?(x=O._uint8ArrayToBuffer(x),Y=""):x!=null&&(Yt=new le("chunk",["string","Buffer","Uint8Array"],x))),Yt)Ge(S,Yt);else if(x===null)ue.state&=~Te,ce(S,ue);else if(ue.state&Me||x&&x.length>0)if(J)if(ue.state&re)Ge(S,new F);else{if(ue.destroyed||ue.errored)return!1;Qt(S,ue,x,!0)}else if(ue.ended)Ge(S,new ae);else{if(ue.destroyed||ue.errored)return!1;ue.state&=~Te,ue.decoder&&!Y?(x=ue.decoder.write(x),ue.objectMode||x.length!==0?Qt(S,ue,x,!1):ht(S,ue)):Qt(S,ue,x,!1)}else J||(ue.state&=~Te,ht(S,ue));return!ue.ended&&(ue.length0?(x.state&q?x.awaitDrainWriters.clear():x.awaitDrainWriters=null,x.dataEmitted=!0,S.emit("data",Y)):(x.length+=x.objectMode?1:Y.length,J?x.buffer.unshift(Y):x.buffer.push(Y),x.state&Ye&&de(S)),ht(S,x)}he.prototype.isPaused=function(){const S=this._readableState;return S[we]===!0||S.flowing===!1},he.prototype.setEncoding=function(S){const x=new Be(S);this._readableState.decoder=x,this._readableState.encoding=this._readableState.decoder.encoding;const Y=this._readableState.buffer;let J="";for(const ue of Y)J+=x.write(ue);return Y.clear(),J!==""&&Y.push(J),this._readableState.length=J.length,this};const $n=1073741824;function Gn(S){if(S>$n)throw new be("size","<= 1GiB",S);return S--,S|=S>>>1,S|=S>>>2,S|=S>>>4,S|=S>>>8,S|=S>>>16,S++,S}function $e(S,x){return S<=0||x.length===0&&x.ended?0:x.state&Me?1:l(S)?x.flowing&&x.length?x.buffer.first().length:x.length:S<=x.length?S:x.ended?x.length:0}he.prototype.read=function(S){j("read",S),S===void 0?S=NaN:o(S)||(S=u(S,10));const x=this._readableState,Y=S;if(S>x.highWaterMark&&(x.highWaterMark=Gn(S)),S!==0&&(x.state&=~mt),S===0&&x.needReadable&&((x.highWaterMark!==0?x.length>=x.highWaterMark:x.length>0)||x.ended))return j("read: emitReadable",x.length,x.ended),x.length===0&&x.ended?co(this):de(this),null;if(S=$e(S,x),S===0&&x.ended)return x.length===0&&co(this),null;let J=(x.state&Ye)!==0;if(j("need readable",J),(x.length===0||x.length-S0?ue=Al(S,x):ue=null,ue===null?(x.needReadable=x.length<=x.highWaterMark,S=0):(x.length-=S,x.multiAwaitDrain?x.awaitDrainWriters.clear():x.awaitDrainWriters=null),x.length===0&&(x.ended||(x.needReadable=!0),Y!==S&&x.ended&&co(this)),ue!==null&&!x.errorEmitted&&!x.closeEmitted&&(x.dataEmitted=!0,this.emit("data",ue)),ue};function ce(S,x){if(j("onEofChunk"),!x.ended){if(x.decoder){const Y=x.decoder.end();Y&&Y.length&&(x.buffer.push(Y),x.length+=x.objectMode?1:Y.length)}x.ended=!0,x.sync?de(S):(x.needReadable=!1,x.emittedReadable=!0,et(S))}}function de(S){const x=S._readableState;j("emitReadable",x.needReadable,x.emittedReadable),x.needReadable=!1,x.emittedReadable||(j("emitReadable",x.flowing),x.emittedReadable=!0,n.nextTick(et,S))}function et(S){const x=S._readableState;j("emitReadable_",x.destroyed,x.length,x.ended),!x.destroyed&&!x.errored&&(x.length||x.ended)&&(S.emit("readable"),x.emittedReadable=!1),x.needReadable=!x.flowing&&!x.ended&&x.length<=x.highWaterMark,xi(S)}function ht(S,x){!x.readingMore&&x.constructed&&(x.readingMore=!0,n.nextTick(Jt,S,x))}function Jt(S,x){for(;!x.reading&&!x.ended&&(x.length1&&J.pipes.includes(S)&&(j("false write response, pause",J.awaitDrainWriters.size),J.awaitDrainWriters.add(S)),Y.pause()),Fr||(Fr=Zt(Y,S),S.on("drain",Fr))}Y.on("data",ml);function ml(jr){j("ondata");const lr=S.write(jr);j("dest.write",lr),lr===!1&&Rs()}function gs(jr){if(j("onerror",jr),wi(),S.removeListener("error",gs),S.listenerCount("error")===0){const lr=S._writableState||S._readableState;lr&&!lr.errorEmitted?Ge(S,jr):S.emit("error",jr)}}M(S,"error",gs);function as(){S.removeListener("finish",ws),wi()}S.once("close",as);function ws(){j("onfinish"),S.removeListener("close",as),wi()}S.once("finish",ws);function wi(){j("unpipe"),Y.unpipe(S)}return S.emit("pipe",Y),S.writableNeedDrain===!0?Rs():J.flowing||(j("pipe resume"),Y.resume()),S};function Zt(S,x){return function(){const J=S._readableState;J.awaitDrainWriters===x?(j("pipeOnDrain",1),J.awaitDrainWriters=null):J.multiAwaitDrain&&(j("pipeOnDrain",J.awaitDrainWriters.size),J.awaitDrainWriters.delete(x)),(!J.awaitDrainWriters||J.awaitDrainWriters.size===0)&&S.listenerCount("data")&&S.resume()}}he.prototype.unpipe=function(S){const x=this._readableState,Y={hasUnpiped:!1};if(x.pipes.length===0)return this;if(!S){const ue=x.pipes;x.pipes=[],this.pause();for(let Yt=0;Yt0,J.flowing!==!1&&this.resume()):S==="readable"&&!J.endEmitted&&!J.readableListening&&(J.readableListening=J.needReadable=!0,J.flowing=!1,J.emittedReadable=!1,j("on readable",J.length,J.reading),J.length?de(this):J.reading||n.nextTick(ao,this)),Y},he.prototype.addListener=he.prototype.on,he.prototype.removeListener=function(S,x){const Y=O.prototype.removeListener.call(this,S,x);return S==="readable"&&n.nextTick(qr,this),Y},he.prototype.off=he.prototype.removeListener,he.prototype.removeAllListeners=function(S){const x=O.prototype.removeAllListeners.apply(this,arguments);return(S==="readable"||S===void 0)&&n.nextTick(qr,this),x};function qr(S){const x=S._readableState;x.readableListening=S.listenerCount("readable")>0,x.resumeScheduled&&x[we]===!1?x.flowing=!0:S.listenerCount("data")>0?S.resume():x.readableListening||(x.flowing=null)}function ao(S){j("readable nexttick read 0"),S.read(0)}he.prototype.resume=function(){const S=this._readableState;return S.flowing||(j("resume"),S.flowing=!S.readableListening,ki(this,S)),S[we]=!1,this};function ki(S,x){x.resumeScheduled||(x.resumeScheduled=!0,n.nextTick(Ri,S,x))}function Ri(S,x){j("resume",x.reading),x.reading||S.read(0),x.resumeScheduled=!1,S.emit("resume"),xi(S),x.flowing&&!x.reading&&S.read(0)}he.prototype.pause=function(){return j("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(j("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[we]=!0,this};function xi(S){const x=S._readableState;for(j("flow",x.flowing);x.flowing&&S.read()!==null;);}he.prototype.wrap=function(S){let x=!1;S.on("data",J=>{!this.push(J)&&S.pause&&(x=!0,S.pause())}),S.on("end",()=>{this.push(null)}),S.on("error",J=>{Ge(this,J)}),S.on("close",()=>{this.destroy()}),S.on("destroy",()=>{this.destroy()}),this._read=()=>{x&&S.resume&&(x=!1,S.resume())};const Y=h(S);for(let J=1;J{ue=An?Ee(ue,An):null,Y(),Y=Ue});try{for(;;){const An=S.destroyed?null:S.read();if(An!==null)yield An;else{if(ue)throw ue;if(ue===null)return;await new v(J)}}}catch(An){throw ue=Ee(ue,An),ue}finally{(ue||(x==null?void 0:x.destroyOnReturn)!==!1)&&(ue===void 0||S._readableState.autoDestroy)?te.destroyer(S,null):(S.off("readable",J),Yt())}}d(he.prototype,{readable:{__proto__:null,get(){const S=this._readableState;return!!S&&S.readable!==!1&&!S.destroyed&&!S.errorEmitted&&!S.endEmitted},set(S){this._readableState&&(this._readableState.readable=!!S)}},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(S){this._readableState&&(this._readableState.flowing=S)}},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(S){this._readableState&&(this._readableState.destroyed=S)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),d(St.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[we]!==!1},set(S){this[we]=!!S}}}),he._fromList=Al;function Al(S,x){if(x.length===0)return null;let Y;return x.objectMode?Y=x.buffer.shift():!S||S>=x.length?(x.decoder?Y=x.buffer.join(""):x.buffer.length===1?Y=x.buffer.first():Y=x.buffer.concat(x.length),x.buffer.clear()):Y=x.buffer.consume(S,x.decoder),Y}function co(S){const x=S._readableState;j("endReadable",x.endEmitted),x.endEmitted||(x.ended=!0,n.nextTick(Zc,x,S))}function Zc(S,x){if(j("endReadableNT",S.endEmitted,S.length),!S.errored&&!S.closeEmitted&&!S.endEmitted&&S.length===0){if(S.endEmitted=!0,x.emit("end"),x.writable&&x.allowHalfOpen===!1)n.nextTick(bu,x);else if(S.autoDestroy){const Y=x._writableState;(!Y||Y.autoDestroy&&(Y.finished||Y.writable===!1))&&x.destroy()}}}function bu(S){S.writable&&!S.writableEnded&&!S.destroyed&&S.end()}he.from=function(S,x){return He(he,S,x)};let So;function ql(){return So===void 0&&(So={}),So}return he.fromWeb=function(S,x){return ql().newStreamReadableFromReadableStream(S,x)},he.toWeb=function(S,x){return ql().newReadableStreamFromStreamReadable(S,x)},he.wrap=function(S,x){var Y,J;return new he({objectMode:(Y=(J=S.readableObjectMode)!==null&&J!==void 0?J:S.objectMode)!==null&&Y!==void 0?Y:!0,...x,destroy(ue,Yt){te.destroyer(S,ue),Yt(ue)}}).wrap(S)},T7e}var $7e,NFt;function ZWe(){if(NFt)return $7e;NFt=1;const n=ui,{ArrayPrototypeSlice:r,Error:o,FunctionPrototypeSymbolHasInstance:l,ObjectDefineProperty:u,ObjectDefineProperties:d,ObjectSetPrototypeOf:h,StringPrototypeToLowerCase:w,Symbol:v,SymbolHasInstance:y}=Df;$7e=ye,ye.WritableState=F;const{EventEmitter:E}=Ns,A=YWe.Stream,{Buffer:C}=Kr,R=oj,{addAbortSignal:O}=mpe,{getHighWaterMark:M,getDefaultHighWaterMark:L}=ype,{ERR_INVALID_ARG_TYPE:H,ERR_METHOD_NOT_IMPLEMENTED:G,ERR_MULTIPLE_CALLBACK:j,ERR_STREAM_CANNOT_PIPE:Q,ERR_STREAM_DESTROYED:te,ERR_STREAM_ALREADY_FINISHED:pe,ERR_STREAM_NULL_VALUES:Le,ERR_STREAM_WRITE_AFTER_END:Ee,ERR_UNKNOWN_ENCODING:le}=A0.codes,{errorOrDestroy:xe}=R;h(ye.prototype,A.prototype),h(ye,A);function be(){}const ae=v("kOnFinished");function F(T,$,B){typeof B!="boolean"&&(B=$ instanceof qR()),this.objectMode=!!(T&&T.objectMode),B&&(this.objectMode=this.objectMode||!!(T&&T.writableObjectMode)),this.highWaterMark=T?M(this,T,"writableHighWaterMark",B):L(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const K=!!(T&&T.decodeStrings===!1);this.decodeStrings=!K,this.defaultEncoding=T&&T.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=Ge.bind(void 0,$),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,me(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[ae]=[]}function me(T){T.buffered=[],T.bufferedIndex=0,T.allBuffers=!0,T.allNoop=!0}F.prototype.getBuffer=function(){return r(this.buffered,this.bufferedIndex)},u(F.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function ye(T){const $=this instanceof qR();if(!$&&!l(ye,this))return new ye(T);this._writableState=new F(T,this,$),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&&O(T.signal,this)),A.call(this,T),R.construct(this,()=>{const B=this._writableState;B.writing||Te(this,B),mt(this,B)})}u(ye,y,{__proto__:null,value:function(T){return l(this,T)?!0:this!==ye?!1:T&&T._writableState instanceof F}}),ye.prototype.pipe=function(){xe(this,new Q)};function we(T,$,B,K){const q=T._writableState;if(typeof B=="function")K=B,B=q.defaultEncoding;else{if(!B)B=q.defaultEncoding;else if(B!=="buffer"&&!C.isEncoding(B))throw new le(B);typeof K!="function"&&(K=be)}if($===null)throw new Le;if(!q.objectMode)if(typeof $=="string")q.decodeStrings!==!1&&($=C.from($,B),B="buffer");else if($ instanceof C)B="buffer";else if(A._isUint8Array($))$=A._uint8ArrayToBuffer($),B="buffer";else throw new H("chunk",["string","Buffer","Uint8Array"],$);let ke;return q.ending?ke=new Ee:q.destroyed&&(ke=new te("write")),ke?(n.nextTick(K,ke),xe(T,ke,!0),ke):(q.pendingcb++,Be(T,q,$,B,K))}ye.prototype.write=function(T,$,B){return we(this,T,$,B)===!0},ye.prototype.cork=function(){this._writableState.corked++},ye.prototype.uncork=function(){const T=this._writableState;T.corked&&(T.corked--,T.writing||Te(this,T))},ye.prototype.setDefaultEncoding=function($){if(typeof $=="string"&&($=w($)),!C.isEncoding($))throw new le($);return this._writableState.defaultEncoding=$,this};function Be(T,$,B,K,q){const ke=$.objectMode?1:B.length;$.length+=ke;const Re=$.length<$.highWaterMark;return Re||($.needDrain=!0),$.writing||$.corked||$.errored||!$.constructed?($.buffered.push({chunk:B,encoding:K,callback:q}),$.allBuffers&&K!=="buffer"&&($.allBuffers=!1),$.allNoop&&q!==be&&($.allNoop=!1)):($.writelen=ke,$.writecb=q,$.writing=!0,$.sync=!0,T._write(B,K,$.onwrite),$.sync=!1),Re&&!$.errored&&!$.destroyed}function He(T,$,B,K,q,ke,Re){$.writelen=K,$.writecb=Re,$.writing=!0,$.sync=!0,$.destroyed?$.onwrite(new te("write")):B?T._writev(q,$.onwrite):T._write(q,ke,$.onwrite),$.sync=!1}function Ue(T,$,B,K){--$.pendingcb,K(B),re($),xe(T,B)}function Ge(T,$){const B=T._writableState,K=B.sync,q=B.writecb;if(typeof q!="function"){xe(T,new j);return}B.writing=!1,B.writecb=null,B.length-=B.writelen,B.writelen=0,$?($.stack,B.errored||(B.errored=$),T._readableState&&!T._readableState.errored&&(T._readableState.errored=$),K?n.nextTick(Ue,T,B,$,q):Ue(T,B,$,q)):(B.buffered.length>B.bufferedIndex&&Te(T,B),K?B.afterWriteTickInfo!==null&&B.afterWriteTickInfo.cb===q?B.afterWriteTickInfo.count++:(B.afterWriteTickInfo={count:1,cb:q,stream:T,state:B},n.nextTick(Me,B.afterWriteTickInfo)):vt(T,B,1,q))}function Me({stream:T,state:$,count:B,cb:K}){return $.afterWriteTickInfo=null,vt(T,$,B,K)}function vt(T,$,B,K){for(!$.ending&&!T.destroyed&&$.length===0&&$.needDrain&&($.needDrain=!1,T.emit("drain"));B-- >0;)$.pendingcb--,K();$.destroyed&&re($),mt(T,$)}function re(T){if(T.writing)return;for(let q=T.bufferedIndex;q1&&T._writev){$.pendingcb-=ke-1;const Ie=$.allNoop?be:he=>{for(let zt=Re;zt256?(B.splice(0,Re),$.bufferedIndex=0):$.bufferedIndex=Re}$.bufferProcessing=!1}ye.prototype._write=function(T,$,B){if(this._writev)this._writev([{chunk:T,encoding:$}],B);else throw new G("_write()")},ye.prototype._writev=null,ye.prototype.end=function(T,$,B){const K=this._writableState;typeof T=="function"?(B=T,T=null,$=null):typeof $=="function"&&(B=$,$=null);let q;if(T!=null){const ke=we(this,T,$);ke instanceof o&&(q=ke)}return K.corked&&(K.corked=1,this.uncork()),q||(!K.errored&&!K.ending?(K.ending=!0,mt(this,K,!0),K.ended=!0):K.finished?q=new pe("end"):K.destroyed&&(q=new te("end"))),typeof B=="function"&&(q||K.finished?n.nextTick(B,q):K[ae].push(B)),this};function ct(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 at(T,$){let B=!1;function K(q){if(B){xe(T,q??j());return}if(B=!0,$.pendingcb--,q){const ke=$[ae].splice(0);for(let Re=0;Re{ct(q)?jt(K,q):q.pendingcb--},T,$)):ct($)&&($.pendingcb++,jt(T,$))))}function jt(T,$){$.pendingcb--,$.finished=!0;const B=$[ae].splice(0);for(let K=0;K{if(re!=null)throw new O("nully","body",re)},re=>{M(Me,re)});return Me=new le({objectMode:!0,readable:!1,write:Be,final(re){He(async()=>{try{await vt,n.nextTick(re,null)}catch(Te){n.nextTick(re,Te)}})},destroy:Ue})}throw new O("Iterable, AsyncIterable or AsyncFunction",me,we)}if(pe(F))return ae(F.arrayBuffer());if(u(F))return Q(le,F,{objectMode:!0,writable:!1});if(y(F==null?void 0:F.readable)&&E(F==null?void 0:F.writable))return le.fromWeb(F);if(typeof(F==null?void 0:F.writable)=="object"||typeof(F==null?void 0:F.readable)=="object"){const we=F!=null&&F.readable?h(F==null?void 0:F.readable)?F==null?void 0:F.readable:ae(F.readable):void 0,Be=F!=null&&F.writable?w(F==null?void 0:F.writable)?F==null?void 0:F.writable:ae(F.writable):void 0;return be({readable:we,writable:Be})}const ye=F==null?void 0:F.then;if(typeof ye=="function"){let we;return Ee(ye,F,Be=>{Be!=null&&we.push(Be),we.push(null)},Be=>{M(we,Be)}),we=new le({objectMode:!0,writable:!1,read(){}})}throw new R(me,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],F)};function xe(ae){let{promise:F,resolve:me}=j();const ye=new Le,we=ye.signal;return{value:ae(async function*(){for(;;){const He=F;F=null;const{chunk:Ue,done:Ge,cb:Me}=await He;if(n.nextTick(Me),Ge)return;if(we.aborted)throw new C(void 0,{cause:we.reason});({promise:F,resolve:me}=j()),yield Ue}}(),{signal:we}),write(He,Ue,Ge){const Me=me;me=null,Me({chunk:He,done:!1,cb:Ge})},final(He){const Ue=me;me=null,Ue({done:!0,cb:He})},destroy(He,Ue){ye.abort(),Ue(He)}}}function be(ae){const F=ae.readable&&typeof ae.readable.read!="function"?H.wrap(ae.readable):ae.readable,me=ae.writable;let ye=!!o(F),we=!!l(me),Be,He,Ue,Ge,Me;function vt(re){const Te=Ge;Ge=null,Te?Te(re):re&&Me.destroy(re)}return Me=new le({readableObjectMode:!!(F!=null&&F.readableObjectMode),writableObjectMode:!!(me!=null&&me.writableObjectMode),readable:ye,writable:we}),we&&(A(me,re=>{we=!1,re&&M(F,re),vt(re)}),Me._write=function(re,Te,ct){me.write(re,Te)?ct():Be=ct},Me._final=function(re){me.end(),He=re},me.on("drain",function(){if(Be){const re=Be;Be=null,re()}}),me.on("finish",function(){if(He){const re=He;He=null,re()}})),ye&&(A(F,re=>{ye=!1,re&&M(F,re),vt(re)}),F.on("readable",function(){if(Ue){const re=Ue;Ue=null,re()}}),F.on("end",function(){Me.push(null)}),Me._read=function(){for(;;){const re=F.read();if(re===null){Ue=Me._read;return}if(!Me.push(re))return}}),Me._destroy=function(re,Te){!re&&Ge!==null&&(re=new C),Ue=null,Be=null,He=null,Ge===null?Te(re):(Ge=Te,M(me,re),M(F,re))},Me}return I7e}var P7e,DFt;function qR(){if(DFt)return P7e;DFt=1;const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:o,ObjectSetPrototypeOf:l}=Df;P7e=h;const u=vpe(),d=ZWe();l(h.prototype,u.prototype),l(h,u);{const E=o(d.prototype);for(let A=0;A{if(r){n?n(r):this.destroy(r);return}o!=null&&this.push(o),this.push(null),n&&n()}):(this.push(null),n&&n())}function NJn(){this._final!==XLe&&XLe.call(this)}XR.prototype._final=XLe;XR.prototype._transform=function(n,r,o){throw new PJn("_transform()")};XR.prototype._write=function(n,r,o){const l=this._readableState,u=this._writableState,d=l.length;this._transform(n,r,(h,w)=>{if(h){o(h);return}w!=null&&this.push(w),u.ended||d===l.length||l.length{l=!0});const u=Pde(n,{readable:r,writable:o},d=>{l=!d});return{destroy:d=>{l||(l=!0,BJn.destroyer(n,d||new UJn("pipe")))},cleanup:u}}function YJn(n){return zJn(n[n.length-1],"streams[stream.length - 1]"),n.pop()}function F7e(n){if(S8(n))return n;if(Ofe(n))return QJn(n);throw new JLe("val",["Readable","Iterable","AsyncIterable"],n)}async function*QJn(n){L7e||(L7e=vpe()),yield*L7e.prototype[LJn].call(n)}async function Zce(n,r,o,{end:l}){let u,d=null;const h=y=>{if(y&&(u=y),d){const E=d;d=null,E()}},w=()=>new DJn((y,E)=>{u?E(u):d=()=>{u?E(u):y()}});r.on("drain",h);const v=Pde(r,{readable:!1},h);try{r.writableNeedDrain&&await w();for await(const y of n)r.write(y)||await w();l&&(r.end(),await w()),o()}catch(y){o(u!==y?WJn(u,y):y)}finally{v(),r.off("drain",h)}}async function B7e(n,r,o,{end:l}){mD(r)&&(r=r.writable);const u=r.getWriter();try{for await(const d of n)await u.ready,u.write(d).catch(()=>{});await u.ready,l&&await u.close(),o()}catch(d){try{await u.abort(d),o(d)}catch(h){o(h)}}}function ZJn(...n){return ien(n,FJn(YJn(n)))}function ien(n,r,o){if(n.length===1&&MJn(n[0])&&(n=n[0]),n.length<2)throw new HJn("streams");const l=new JJn,u=l.signal,d=o==null?void 0:o.signal,h=[];KJn(d,"options.signal");function w(){O(new VJn)}j7e=j7e||s1.addAbortListener;let v;d&&(v=j7e(d,w));let y,E;const A=[];let C=0;function R(G){O(G,--C===0)}function O(G,j){var Q;if(G&&(!y||y.code==="ERR_STREAM_PREMATURE_CLOSE")&&(y=G),!(!y&&!j)){for(;A.length;)A.shift()(y);(Q=v)===null||Q===void 0||Q[jJn](),l.abort(),j&&(y||h.forEach(te=>te()),EK.nextTick(r,y,E))}}let M;for(let G=0;G0,pe=Q||(o==null?void 0:o.end)!==!1,Le=G===n.length-1;if(jFt(j)){let Ee=function(le){le&&le.name!=="AbortError"&&le.code!=="ERR_STREAM_PREMATURE_CLOSE"&&R(le)};if(pe){const{destroy:le,cleanup:xe}=FFt(j,Q,te);A.push(le),N7e(j)&&Le&&h.push(xe)}j.on("error",Ee),N7e(j)&&Le&&h.push(()=>{j.removeListener("error",Ee)})}if(G===0)if(typeof j=="function"){if(M=j({signal:u}),!S8(M))throw new O7e("Iterable, AsyncIterable or Stream","source",M)}else S8(j)||Ofe(j)||mD(j)?M=j:M=LFt.from(j);else if(typeof j=="function"){if(mD(M)){var L;M=F7e((L=M)===null||L===void 0?void 0:L.readable)}else M=F7e(M);if(M=j(M,{signal:u}),Q){if(!S8(M,!0))throw new O7e("AsyncIterable",`transform[${G-1}]`,M)}else{var H;D7e||(D7e=ren);const Ee=new D7e({objectMode:!0}),le=(H=M)===null||H===void 0?void 0:H.then;if(typeof le=="function")C++,le.call(M,ae=>{E=ae,ae!=null&&Ee.write(ae),pe&&Ee.end(),EK.nextTick(R)},ae=>{Ee.destroy(ae),EK.nextTick(R,ae)});else if(S8(M,!0))C++,Zce(M,Ee,R,{end:pe});else if(M7e(M)||mD(M)){const ae=M.readable||M;C++,Zce(ae,Ee,R,{end:pe})}else throw new O7e("AsyncIterable or Promise","destination",M);M=Ee;const{destroy:xe,cleanup:be}=FFt(M,!1,!0);A.push(xe),Le&&h.push(be)}}else if(jFt(j)){if(Ofe(M)){C+=2;const Ee=eYn(M,j,R,{end:pe});N7e(j)&&Le&&h.push(Ee)}else if(mD(M)||M7e(M)){const Ee=M.readable||M;C++,Zce(Ee,j,R,{end:pe})}else if(S8(M))C++,Zce(M,j,R,{end:pe});else throw new JLe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else if(qJn(j)){if(Ofe(M))C++,B7e(F7e(M),j,R,{end:pe});else if(M7e(M)||S8(M))C++,B7e(M,j,R,{end:pe});else if(mD(M))C++,B7e(M.readable,j,R,{end:pe});else throw new JLe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else M=LFt.from(j)}return(u!=null&&u.aborted||d!=null&&d.aborted)&&EK.nextTick(w),M}function eYn(n,r,o,{end:l}){let u=!1;if(r.on("close",()=>{u||o(new GJn)}),n.pipe(r,{end:!1}),l){let d=function(){u=!0,r.end()};XJn(n)?EK.nextTick(d):n.once("end",d)}else o();return Pde(n,{readable:!0,writable:!1},d=>{const h=n._readableState;d&&d.code==="ERR_STREAM_PREMATURE_CLOSE"&&h&&h.ended&&!h.errored&&!h.errorEmitted?n.once("end",o).once("error",o):o(d)}),Pde(r,{readable:!1,writable:!0},o)}var nHe={pipelineImpl:ien,pipeline:ZJn};const{pipeline:tYn}=nHe,eue=qR(),{destroyer:nYn}=oj,{isNodeStream:tue,isReadable:BFt,isWritable:WFt,isWebStream:W7e,isTransformStream:t8,isWritableStream:HFt,isReadableStream:UFt}=kx,{AbortError:rYn,codes:{ERR_INVALID_ARG_VALUE:GFt,ERR_MISSING_ARGS:iYn}}=A0,oYn=MT;var oen=function(...r){if(r.length===0)throw new iYn("streams");if(r.length===1)return eue.from(r[0]);const o=[...r];if(typeof r[0]=="function"&&(r[0]=eue.from(r[0])),typeof r[r.length-1]=="function"){const R=r.length-1;r[R]=eue.from(r[R])}for(let R=0;R0&&!(WFt(r[R])||HFt(r[R])||t8(r[R])))throw new GFt(`streams[${R}]`,o[R],"must be writable")}let l,u,d,h,w;function v(R){const O=h;h=null,O?O(R):R?w.destroy(R):!C&&!A&&w.destroy()}const y=r[0],E=tYn(r,v),A=!!(WFt(y)||HFt(y)||t8(y)),C=!!(BFt(E)||UFt(E)||t8(E));if(w=new eue({writableObjectMode:!!(y!=null&&y.writableObjectMode),readableObjectMode:!!(E!=null&&E.readableObjectMode),writable:A,readable:C}),A){if(tue(y))w._write=function(O,M,L){y.write(O,M)?L():l=L},w._final=function(O){y.end(),u=O},y.on("drain",function(){if(l){const O=l;l=null,O()}});else if(W7e(y)){const M=(t8(y)?y.writable:y).getWriter();w._write=async function(L,H,G){try{await M.ready,M.write(L).catch(()=>{}),G()}catch(j){G(j)}},w._final=async function(L){try{await M.ready,M.close().catch(()=>{}),u=L}catch(H){L(H)}}}const R=t8(E)?E.readable:E;oYn(R,()=>{if(u){const O=u;u=null,O()}})}if(C){if(tue(E))E.on("readable",function(){if(d){const R=d;d=null,R()}}),E.on("end",function(){w.push(null)}),w._read=function(){for(;;){const R=E.read();if(R===null){d=w._read;return}if(!w.push(R))return}};else if(W7e(E)){const O=(t8(E)?E.readable:E).getReader();w._read=async function(){for(;;)try{const{value:M,done:L}=await O.read();if(!w.push(M))return;if(L){w.push(null);return}}catch{return}}}}return w._destroy=function(R,O){!R&&h!==null&&(R=new rYn),d=null,l=null,u=null,h===null?O(R):(h=O,tue(E)&&nYn(E,R))},w};const sYn=globalThis.AbortController||$o().AbortController,{codes:{ERR_INVALID_ARG_VALUE:lYn,ERR_INVALID_ARG_TYPE:iJ,ERR_MISSING_ARGS:aYn,ERR_OUT_OF_RANGE:cYn},AbortError:ek}=A0,{validateAbortSignal:UP,validateInteger:VFt,validateObject:GP}=nJ,uYn=Df.Symbol("kWeak"),fYn=Df.Symbol("kResistStopPropagation"),{finished:dYn}=MT,hYn=oen,{addAbortSignalNoValidate:pYn}=mpe,{isWritable:bYn,isNodeStream:gYn}=kx,{deprecate:wYn}=s1,{ArrayPrototypePush:mYn,Boolean:yYn,MathFloor:zFt,Number:vYn,NumberIsNaN:_Yn,Promise:KFt,PromiseReject:qFt,PromiseResolve:SYn,PromisePrototypeThen:XFt,Symbol:sen}=Df,Ode=sen("kEmpty"),JFt=sen("kEof");function EYn(n,r){if(r!=null&&GP(r,"options"),(r==null?void 0:r.signal)!=null&&UP(r.signal,"options.signal"),gYn(n)&&!bYn(n))throw new lYn("stream",n,"must be writable");const o=hYn(this,n);return r!=null&&r.signal&&pYn(r.signal,o),o}function _pe(n,r){if(typeof n!="function")throw new iJ("fn",["Function","AsyncFunction"],n);r!=null&&GP(r,"options"),(r==null?void 0:r.signal)!=null&&UP(r.signal,"options.signal");let o=1;(r==null?void 0:r.concurrency)!=null&&(o=zFt(r.concurrency));let l=o-1;return(r==null?void 0:r.highWaterMark)!=null&&(l=zFt(r.highWaterMark)),VFt(o,"options.concurrency",1),VFt(l,"options.highWaterMark",0),l+=o,(async function*(){const d=s1.AbortSignalAny([r==null?void 0:r.signal].filter(yYn)),h=this,w=[],v={signal:d};let y,E,A=!1,C=0;function R(){A=!0,O()}function O(){C-=1,M()}function M(){E&&!A&&C=l||C>=o)&&await new KFt(G=>{E=G})}w.push(JFt)}catch(H){const G=qFt(H);XFt(G,O,R),w.push(G)}finally{A=!0,y&&(y(),y=null)}}L();try{for(;;){for(;w.length>0;){const H=await w[0];if(H===JFt)return;if(d.aborted)throw new ek;H!==Ode&&(yield H),w.shift(),M()}await new KFt(H=>{y=H})}}finally{A=!0,E&&(E(),E=null)}}).call(this)}function kYn(n=void 0){return n!=null&&GP(n,"options"),(n==null?void 0:n.signal)!=null&&UP(n.signal,"options.signal"),(async function*(){let o=0;for await(const u of this){var l;if(n!=null&&(l=n.signal)!==null&&l!==void 0&&l.aborted)throw new ek({cause:n.signal.reason});yield[o++,u]}}).call(this)}async function len(n,r=void 0){for await(const o of rHe.call(this,n,r))return!0;return!1}async function RYn(n,r=void 0){if(typeof n!="function")throw new iJ("fn",["Function","AsyncFunction"],n);return!await len.call(this,async(...o)=>!await n(...o),r)}async function xYn(n,r){for await(const o of rHe.call(this,n,r))return o}async function CYn(n,r){if(typeof n!="function")throw new iJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u),Ode}for await(const l of _pe.call(this,o,r));}function rHe(n,r){if(typeof n!="function")throw new iJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u)?l:Ode}return _pe.call(this,o,r)}let AYn=class extends aYn{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function TYn(n,r,o){var l;if(typeof n!="function")throw new iJ("reducer",["Function","AsyncFunction"],n);o!=null&&GP(o,"options"),(o==null?void 0:o.signal)!=null&&UP(o.signal,"options.signal");let u=arguments.length>1;if(o!=null&&(l=o.signal)!==null&&l!==void 0&&l.aborted){const y=new ek(void 0,{cause:o.signal.reason});throw this.once("error",()=>{}),await dYn(this.destroy(y)),y}const d=new sYn,h=d.signal;if(o!=null&&o.signal){const y={once:!0,[uYn]:this,[fYn]:!0};o.signal.addEventListener("abort",()=>d.abort(),y)}let w=!1;try{for await(const y of this){var v;if(w=!0,o!=null&&(v=o.signal)!==null&&v!==void 0&&v.aborted)throw new ek;u?r=await n(r,y,{signal:h}):(r=y,u=!0)}if(!w&&!u)throw new AYn}finally{d.abort()}return r}async function $Yn(n){n!=null&&GP(n,"options"),(n==null?void 0:n.signal)!=null&&UP(n.signal,"options.signal");const r=[];for await(const l of this){var o;if(n!=null&&(o=n.signal)!==null&&o!==void 0&&o.aborted)throw new ek(void 0,{cause:n.signal.reason});mYn(r,l)}return r}function IYn(n,r){const o=_pe.call(this,n,r);return(async function*(){for await(const u of o)yield*u}).call(this)}function aen(n){if(n=vYn(n),_Yn(n))return 0;if(n<0)throw new cYn("number",">= 0",n);return n}function PYn(n,r=void 0){return r!=null&&GP(r,"options"),(r==null?void 0:r.signal)!=null&&UP(r.signal,"options.signal"),n=aen(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new ek;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new ek;n--<=0&&(yield d)}}).call(this)}function OYn(n,r=void 0){return r!=null&&GP(r,"options"),(r==null?void 0:r.signal)!=null&&UP(r.signal,"options.signal"),n=aen(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new ek;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new ek;if(n-- >0&&(yield d),n<=0)return}}).call(this)}zWe.streamReturningOperators={asIndexedPairs:wYn(kYn,"readable.asIndexedPairs will be removed in a future version."),drop:PYn,filter:rHe,flatMap:IYn,map:_pe,take:OYn,compose:EYn};zWe.promiseReturningOperators={every:RYn,forEach:CYn,reduce:TYn,toArray:$Yn,some:len,find:xYn};var H7e,YFt;function cen(){if(YFt)return H7e;YFt=1;const{ArrayPrototypePop:n,Promise:r}=Df,{isIterable:o,isNodeStream:l,isWebStream:u}=kx,{pipelineImpl:d}=nHe,{finished:h}=MT;uen();function w(...v){return new r((y,E)=>{let A,C;const R=v[v.length-1];if(R&&typeof R=="object"&&!l(R)&&!o(R)&&!u(R)){const O=n(v);A=O.signal,C=O.end}d(v,(O,M)=>{O?E(O):y(M)},{signal:A,end:C})})}return H7e={finished:h,pipeline:w},H7e}var QFt;function uen(){if(QFt)return E7e.exports;QFt=1;const{Buffer:n}=Kr,{ObjectDefineProperty:r,ObjectKeys:o,ReflectApply:l}=Df,{promisify:{custom:u}}=s1,{streamReturningOperators:d,promiseReturningOperators:h}=zWe,{codes:{ERR_ILLEGAL_CONSTRUCTOR:w}}=A0,v=oen,{setDefaultHighWaterMark:y,getDefaultHighWaterMark:E}=ype,{pipeline:A}=nHe,{destroyer:C}=oj,R=MT,O=cen(),M=kx,L=E7e.exports=YWe.Stream;L.isDestroyed=M.isDestroyed,L.isDisturbed=M.isDisturbed,L.isErrored=M.isErrored,L.isReadable=M.isReadable,L.isWritable=M.isWritable,L.Readable=vpe();for(const G of o(d)){let Q=function(...te){if(new.target)throw w();return L.Readable.from(l(j,this,te))};const j=d[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}for(const G of o(h)){let Q=function(...te){if(new.target)throw w();return l(j,this,te)};const j=h[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}L.Writable=ZWe(),L.Duplex=qR(),L.Transform=ten,L.PassThrough=ren,L.pipeline=A;const{addAbortSignal:H}=mpe;return L.addAbortSignal=H,L.finished=R,L.destroy=C,L.compose=v,L.setDefaultHighWaterMark=y,L.getDefaultHighWaterMark=E,r(L,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return O}}),r(A,u,{__proto__:null,enumerable:!0,get(){return O.pipeline}}),r(R,u,{__proto__:null,enumerable:!0,get(){return O.finished}}),L.Stream=L,L._isUint8Array=function(j){return j instanceof Uint8Array},L._uint8ArrayToBuffer=function(j){return n.from(j.buffer,j.byteOffset,j.byteLength)},E7e.exports}(function(n){const r=uen(),o=cen(),l=r.Readable.destroy;n.exports=r.Readable,n.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer,n.exports._isUint8Array=r._isUint8Array,n.exports.isDisturbed=r.isDisturbed,n.exports.isErrored=r.isErrored,n.exports.isReadable=r.isReadable,n.exports.Readable=r.Readable,n.exports.Writable=r.Writable,n.exports.Duplex=r.Duplex,n.exports.Transform=r.Transform,n.exports.PassThrough=r.PassThrough,n.exports.addAbortSignal=r.addAbortSignal,n.exports.finished=r.finished,n.exports.destroy=r.destroy,n.exports.destroy=l,n.exports.pipeline=r.pipeline,n.exports.compose=r.compose,Object.defineProperty(r,"promises",{configurable:!0,enumerable:!0,get(){return o}}),n.exports.Stream=r.Stream,n.exports.default=n.exports})(lZt);var NYn=lZt.exports;class MYn{constructor(r,...o){this.load=sZt(async()=>{const l=await r();return new l(...o)})}import(r,o){const l=new NYn.PassThrough({objectMode:!0});return Promise.resolve().then(async()=>{const d=(await this.load()).import(r,o);d.on("prefix",(h,w)=>{l.emit("prefix",h,w)}),d.on("error",h=>{l.emit("error",h),l.emit("end")}),d.pipe(l)}),l}}function fv(n){return class extends MYn{constructor(...r){super(n,...r)}}}const DYn=new AL,LYn=new AL,lm={parsers:DYn,serializers:LYn},jYn=fv(async()=>(await C0(async()=>{const{default:n}=await Promise.resolve().then(()=>Cgr);return{default:n}},void 0)).default),oJ=fv(async()=>(await C0(async()=>{const{default:n}=await Promise.resolve().then(()=>Ywr);return{default:n}},void 0)).default),FYn=fv(async()=>(await C0(async()=>{const{default:n}=await import("./CustomRdfXmlParser-jEPeRMqO.js");return{default:n}},[])).default),Spe=fv(async()=>(await C0(async()=>{const{default:n}=await Promise.resolve().then(()=>l_r);return{default:n}},void 0)).default),BYn=fv(async()=>(await C0(async()=>{const{default:n}=await import("./CustomJsonLdSerializer-WUB4X4eN.js");return{default:n}},[])).default);lm.parsers.set("application/ld+json",new jYn);lm.parsers.set("application/trig",new oJ);lm.parsers.set("application/n-quads",new oJ);lm.parsers.set("application/n-triples",new oJ);lm.parsers.set("text/n3",new oJ);lm.parsers.set("text/turtle",new oJ);lm.parsers.set("application/rdf+xml",new FYn);lm.serializers.set("application/ld+json",new BYn);lm.serializers.set("application/n-quads",new Spe);lm.serializers.set("application/n-triples",new Spe);lm.serializers.set("text/n3",new Spe);lm.serializers.set("text/turtle",new Spe);var YLe={exports:{}},fen=Ns.EventEmitter;const WYn={},HYn=Object.freeze(Object.defineProperty({__proto__:null,default:WYn},Symbol.toStringTag,{value:"Module"})),Epe=JKn(HYn);var U7e,ZFt;function UYn(){if(ZFt)return U7e;ZFt=1;function n(O,M){var L=Object.keys(O);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(O);M&&(H=H.filter(function(G){return Object.getOwnPropertyDescriptor(O,G).enumerable})),L.push.apply(L,H)}return L}function r(O){for(var M=1;M0?this.tail.next=H:this.head=H,this.tail=H,++this.length}},{key:"unshift",value:function(L){var H={data:L,next:this.head};this.length===0&&(this.tail=H),this.head=H,++this.length}},{key:"shift",value:function(){if(this.length!==0){var L=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,L}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(L){if(this.length===0)return"";for(var H=this.head,G=""+H.data;H=H.next;)G+=L+H.data;return G}},{key:"concat",value:function(L){if(this.length===0)return y.alloc(0);for(var H=y.allocUnsafe(L>>>0),G=this.head,j=0;G;)R(G.data,H,j),j+=G.data.length,G=G.next;return H}},{key:"consume",value:function(L,H){var G;return LQ.length?Q.length:L;if(te===Q.length?j+=Q:j+=Q.slice(0,L),L-=te,L===0){te===Q.length?(++G,H.next?this.head=H.next:this.head=this.tail=null):(this.head=H,H.data=Q.slice(te));break}++G}return this.length-=G,j}},{key:"_getBuffer",value:function(L){var H=y.allocUnsafe(L),G=this.head,j=1;for(G.data.copy(H),L-=G.data.length;G=G.next;){var Q=G.data,te=L>Q.length?Q.length:L;if(Q.copy(H,H.length-L,0,te),L-=te,L===0){te===Q.length?(++j,G.next?this.head=G.next:this.head=this.tail=null):(this.head=G,G.data=Q.slice(te));break}++j}return this.length-=j,H}},{key:C,value:function(L,H){return A(this,r(r({},H),{},{depth:0,customInspect:!1}))}}]),O}(),U7e}function GYn(n,r){var o=this,l=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return l||u?(r?r(n):n&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Wl.nextTick(QLe,this,n)):Wl.nextTick(QLe,this,n)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(n||null,function(d){!r&&d?o._writableState?o._writableState.errorEmitted?Wl.nextTick(Nfe,o):(o._writableState.errorEmitted=!0,Wl.nextTick(eBt,o,d)):Wl.nextTick(eBt,o,d):r?(Wl.nextTick(Nfe,o),r(d)):Wl.nextTick(Nfe,o)}),this)}function eBt(n,r){QLe(n,r),Nfe(n)}function Nfe(n){n._writableState&&!n._writableState.emitClose||n._readableState&&!n._readableState.emitClose||n.emit("close")}function VYn(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function QLe(n,r){n.emit("error",r)}function zYn(n,r){var o=n._readableState,l=n._writableState;o&&o.autoDestroy||l&&l.autoDestroy?n.destroy(r):n.emit("error",r)}var den={destroy:GYn,undestroy:VYn,errorOrDestroy:zYn},VP={};function KYn(n,r){n.prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r}var hen={};function dv(n,r,o){o||(o=Error);function l(d,h,w){return typeof r=="string"?r:r(d,h,w)}var u=function(d){KYn(h,d);function h(w,v,y){return d.call(this,l(w,v,y))||this}return h}(o);u.prototype.name=o.name,u.prototype.code=n,hen[n]=u}function tBt(n,r){if(Array.isArray(n)){var o=n.length;return n=n.map(function(l){return String(l)}),o>2?"one of ".concat(r," ").concat(n.slice(0,o-1).join(", "),", or ")+n[o-1]:o===2?"one of ".concat(r," ").concat(n[0]," or ").concat(n[1]):"of ".concat(r," ").concat(n[0])}else return"of ".concat(r," ").concat(String(n))}function qYn(n,r,o){return n.substr(0,r.length)===r}function XYn(n,r,o){return(o===void 0||o>n.length)&&(o=n.length),n.substring(o-r.length,o)===r}function JYn(n,r,o){return typeof o!="number"&&(o=0),o+r.length>n.length?!1:n.indexOf(r,o)!==-1}dv("ERR_INVALID_OPT_VALUE",function(n,r){return'The value "'+r+'" is invalid for option "'+n+'"'},TypeError);dv("ERR_INVALID_ARG_TYPE",function(n,r,o){var l;typeof r=="string"&&qYn(r,"not ")?(l="must not be",r=r.replace(/^not /,"")):l="must be";var u;if(XYn(n," argument"))u="The ".concat(n," ").concat(l," ").concat(tBt(r,"type"));else{var d=JYn(n,".")?"property":"argument";u='The "'.concat(n,'" ').concat(d," ").concat(l," ").concat(tBt(r,"type"))}return u+=". Received type ".concat(typeof o),u},TypeError);dv("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");dv("ERR_METHOD_NOT_IMPLEMENTED",function(n){return"The "+n+" method is not implemented"});dv("ERR_STREAM_PREMATURE_CLOSE","Premature close");dv("ERR_STREAM_DESTROYED",function(n){return"Cannot call "+n+" after a stream was destroyed"});dv("ERR_MULTIPLE_CALLBACK","Callback called multiple times");dv("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");dv("ERR_STREAM_WRITE_AFTER_END","write after end");dv("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);dv("ERR_UNKNOWN_ENCODING",function(n){return"Unknown encoding: "+n},TypeError);dv("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");VP.codes=hen;var YYn=VP.codes.ERR_INVALID_OPT_VALUE;function QYn(n,r,o){return n.highWaterMark!=null?n.highWaterMark:r?n[o]:null}function ZYn(n,r,o,l){var u=QYn(r,l,o);if(u!=null){if(!(isFinite(u)&&Math.floor(u)===u)||u<0){var d=l?o:"highWaterMark";throw new YYn(d,u)}return Math.floor(u)}return n.objectMode?16:16*1024}var pen={getHighWaterMark:ZYn},ZLe={exports:{}};typeof Object.create=="function"?ZLe.exports=function(r,o){o&&(r.super_=o,r.prototype=Object.create(o.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:ZLe.exports=function(r,o){if(o){r.super_=o;var l=function(){};l.prototype=o.prototype,r.prototype=new l,r.prototype.constructor=r}};var sj=ZLe.exports,eQn=tQn;function tQn(n,r){if(G7e("noDeprecation"))return n;var o=!1;function l(){if(!o){if(G7e("throwDeprecation"))throw new Error(r);G7e("traceDeprecation")?console.trace(r):console.warn(r),o=!0}return n.apply(this,arguments)}return l}function G7e(n){try{if(!window.localStorage)return!1}catch{return!1}var r=window.localStorage[n];return r==null?!1:String(r).toLowerCase()==="true"}var V7e,nBt;function ben(){if(nBt)return V7e;nBt=1,V7e=Ee;function n(at){var Ye=this;this.next=null,this.entry=null,this.finish=function(){ct(Ye,at)}}var r;Ee.WritableState=pe;var o={deprecate:eQn},l=fen,u=Kr.Buffer,d=(typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function h(at){return u.from(at)}function w(at){return u.isBuffer(at)||at instanceof d}var v=den,y=pen,E=y.getHighWaterMark,A=VP.codes,C=A.ERR_INVALID_ARG_TYPE,R=A.ERR_METHOD_NOT_IMPLEMENTED,O=A.ERR_MULTIPLE_CALLBACK,M=A.ERR_STREAM_CANNOT_PIPE,L=A.ERR_STREAM_DESTROYED,H=A.ERR_STREAM_NULL_VALUES,G=A.ERR_STREAM_WRITE_AFTER_END,j=A.ERR_UNKNOWN_ENCODING,Q=v.errorOrDestroy;sj(Ee,l);function te(){}function pe(at,Ye,mt){r=r||$L(),at=at||{},typeof mt!="boolean"&&(mt=Ye instanceof r),this.objectMode=!!at.objectMode,mt&&(this.objectMode=this.objectMode||!!at.writableObjectMode),this.highWaterMark=E(this,at,"writableHighWaterMark",mt),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var jt=at.decodeStrings===!1;this.decodeStrings=!jt,this.defaultEncoding=at.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(rn){we(Ye,rn)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=at.emitClose!==!1,this.autoDestroy=!!at.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}pe.prototype.getBuffer=function(){for(var Ye=this.bufferedRequest,mt=[];Ye;)mt.push(Ye),Ye=Ye.next;return mt},function(){try{Object.defineProperty(pe.prototype,"buffer",{get:o.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var Le;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Le=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ee,Symbol.hasInstance,{value:function(Ye){return Le.call(this,Ye)?!0:this!==Ee?!1:Ye&&Ye._writableState instanceof pe}})):Le=function(Ye){return Ye instanceof this};function Ee(at){r=r||$L();var Ye=this instanceof r;if(!Ye&&!Le.call(Ee,this))return new Ee(at);this._writableState=new pe(at,this,Ye),this.writable=!0,at&&(typeof at.write=="function"&&(this._write=at.write),typeof at.writev=="function"&&(this._writev=at.writev),typeof at.destroy=="function"&&(this._destroy=at.destroy),typeof at.final=="function"&&(this._final=at.final)),l.call(this)}Ee.prototype.pipe=function(){Q(this,new M)};function le(at,Ye){var mt=new G;Q(at,mt),Wl.nextTick(Ye,mt)}function xe(at,Ye,mt,jt){var rn;return mt===null?rn=new H:typeof mt!="string"&&!Ye.objectMode&&(rn=new C("chunk",["string","Buffer"],mt)),rn?(Q(at,rn),Wl.nextTick(jt,rn),!1):!0}Ee.prototype.write=function(at,Ye,mt){var jt=this._writableState,rn=!1,Pe=!jt.objectMode&&w(at);return Pe&&!u.isBuffer(at)&&(at=h(at)),typeof Ye=="function"&&(mt=Ye,Ye=null),Pe?Ye="buffer":Ye||(Ye=jt.defaultEncoding),typeof mt!="function"&&(mt=te),jt.ending?le(this,mt):(Pe||xe(this,jt,at,mt))&&(jt.pendingcb++,rn=ae(this,jt,Pe,at,Ye,mt)),rn},Ee.prototype.cork=function(){this._writableState.corked++},Ee.prototype.uncork=function(){var at=this._writableState;at.corked&&(at.corked--,!at.writing&&!at.corked&&!at.bufferProcessing&&at.bufferedRequest&&Ue(this,at))},Ee.prototype.setDefaultEncoding=function(Ye){if(typeof Ye=="string"&&(Ye=Ye.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Ye+"").toLowerCase())>-1))throw new j(Ye);return this._writableState.defaultEncoding=Ye,this},Object.defineProperty(Ee.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function be(at,Ye,mt){return!at.objectMode&&at.decodeStrings!==!1&&typeof Ye=="string"&&(Ye=u.from(Ye,mt)),Ye}Object.defineProperty(Ee.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function ae(at,Ye,mt,jt,rn,Pe){if(!mt){var Oe=be(Ye,jt,rn);jt!==Oe&&(mt=!0,rn="buffer",jt=Oe)}var T=Ye.objectMode?1:jt.length;Ye.length+=T;var $=Ye.length0)if(typeof Oe!="string"&&!K.objectMode&&Object.getPrototypeOf(Oe)!==l.prototype&&(Oe=d(Oe)),$)K.endEmitted?te(Pe,new H):be(Pe,K,Oe,!0);else if(K.ended)te(Pe,new M);else{if(K.destroyed)return!1;K.reading=!1,K.decoder&&!T?(Oe=K.decoder.write(Oe),K.objectMode||Oe.length!==0?be(Pe,K,Oe,!1):Ue(Pe,K)):be(Pe,K,Oe,!1)}else $||(K.reading=!1,Ue(Pe,K))}return!K.ended&&(K.length=F?Pe=F:(Pe--,Pe|=Pe>>>1,Pe|=Pe>>>2,Pe|=Pe>>>4,Pe|=Pe>>>8,Pe|=Pe>>>16,Pe++),Pe}function ye(Pe,Oe){return Pe<=0||Oe.length===0&&Oe.ended?0:Oe.objectMode?1:Pe!==Pe?Oe.flowing&&Oe.length?Oe.buffer.head.data.length:Oe.length:(Pe>Oe.highWaterMark&&(Oe.highWaterMark=me(Pe)),Pe<=Oe.length?Pe:Oe.ended?Oe.length:(Oe.needReadable=!0,0))}le.prototype.read=function(Pe){v("read",Pe),Pe=parseInt(Pe,10);var Oe=this._readableState,T=Pe;if(Pe!==0&&(Oe.emittedReadable=!1),Pe===0&&Oe.needReadable&&((Oe.highWaterMark!==0?Oe.length>=Oe.highWaterMark:Oe.length>0)||Oe.ended))return v("read: emitReadable",Oe.length,Oe.ended),Oe.length===0&&Oe.ended?mt(this):Be(this),null;if(Pe=ye(Pe,Oe),Pe===0&&Oe.ended)return Oe.length===0&&mt(this),null;var $=Oe.needReadable;v("need readable",$),(Oe.length===0||Oe.length-Pe0?B=Ye(Pe,Oe):B=null,B===null?(Oe.needReadable=Oe.length<=Oe.highWaterMark,Pe=0):(Oe.length-=Pe,Oe.awaitDrain=0),Oe.length===0&&(Oe.ended||(Oe.needReadable=!0),T!==Pe&&Oe.ended&&mt(this)),B!==null&&this.emit("data",B),B};function we(Pe,Oe){if(v("onEofChunk"),!Oe.ended){if(Oe.decoder){var T=Oe.decoder.end();T&&T.length&&(Oe.buffer.push(T),Oe.length+=Oe.objectMode?1:T.length)}Oe.ended=!0,Oe.sync?Be(Pe):(Oe.needReadable=!1,Oe.emittedReadable||(Oe.emittedReadable=!0,He(Pe)))}}function Be(Pe){var Oe=Pe._readableState;v("emitReadable",Oe.needReadable,Oe.emittedReadable),Oe.needReadable=!1,Oe.emittedReadable||(v("emitReadable",Oe.flowing),Oe.emittedReadable=!0,Wl.nextTick(He,Pe))}function He(Pe){var Oe=Pe._readableState;v("emitReadable_",Oe.destroyed,Oe.length,Oe.ended),!Oe.destroyed&&(Oe.length||Oe.ended)&&(Pe.emit("readable"),Oe.emittedReadable=!1),Oe.needReadable=!Oe.flowing&&!Oe.ended&&Oe.length<=Oe.highWaterMark,at(Pe)}function Ue(Pe,Oe){Oe.readingMore||(Oe.readingMore=!0,Wl.nextTick(Ge,Pe,Oe))}function Ge(Pe,Oe){for(;!Oe.reading&&!Oe.ended&&(Oe.length1&&rn($.pipes,Pe)!==-1)&&!Ie&&(v("false write response, pause",$.awaitDrain),$.awaitDrain++),T.pause())}function zt($e){v("onerror",$e),Gn(),Pe.removeListener("error",zt),r(Pe,"error")===0&&te(Pe,$e)}Le(Pe,"error",zt);function Qt(){Pe.removeListener("finish",$n),Gn()}Pe.once("close",Qt);function $n(){v("onfinish"),Pe.removeListener("close",Qt),Gn()}Pe.once("finish",$n);function Gn(){v("unpipe"),T.unpipe(Pe)}return Pe.emit("pipe",T),$.flowing||(v("pipe resume"),T.resume()),Pe};function Me(Pe){return function(){var T=Pe._readableState;v("pipeOnDrain",T.awaitDrain),T.awaitDrain&&T.awaitDrain--,T.awaitDrain===0&&r(Pe,"data")&&(T.flowing=!0,at(Pe))}}le.prototype.unpipe=function(Pe){var Oe=this._readableState,T={hasUnpiped:!1};if(Oe.pipesCount===0)return this;if(Oe.pipesCount===1)return Pe&&Pe!==Oe.pipes?this:(Pe||(Pe=Oe.pipes),Oe.pipes=null,Oe.pipesCount=0,Oe.flowing=!1,Pe&&Pe.emit("unpipe",this,T),this);if(!Pe){var $=Oe.pipes,B=Oe.pipesCount;Oe.pipes=null,Oe.pipesCount=0,Oe.flowing=!1;for(var K=0;K0,$.flowing!==!1&&this.resume()):Pe==="readable"&&!$.endEmitted&&!$.readableListening&&($.readableListening=$.needReadable=!0,$.flowing=!1,$.emittedReadable=!1,v("on readable",$.length,$.reading),$.length?Be(this):$.reading||Wl.nextTick(re,this)),T},le.prototype.addListener=le.prototype.on,le.prototype.removeListener=function(Pe,Oe){var T=o.prototype.removeListener.call(this,Pe,Oe);return Pe==="readable"&&Wl.nextTick(vt,this),T},le.prototype.removeAllListeners=function(Pe){var Oe=o.prototype.removeAllListeners.apply(this,arguments);return(Pe==="readable"||Pe===void 0)&&Wl.nextTick(vt,this),Oe};function vt(Pe){var Oe=Pe._readableState;Oe.readableListening=Pe.listenerCount("readable")>0,Oe.resumeScheduled&&!Oe.paused?Oe.flowing=!0:Pe.listenerCount("data")>0&&Pe.resume()}function re(Pe){v("readable nexttick read 0"),Pe.read(0)}le.prototype.resume=function(){var Pe=this._readableState;return Pe.flowing||(v("resume"),Pe.flowing=!Pe.readableListening,Te(this,Pe)),Pe.paused=!1,this};function Te(Pe,Oe){Oe.resumeScheduled||(Oe.resumeScheduled=!0,Wl.nextTick(ct,Pe,Oe))}function ct(Pe,Oe){v("resume",Oe.reading),Oe.reading||Pe.read(0),Oe.resumeScheduled=!1,Pe.emit("resume"),at(Pe),Oe.flowing&&!Oe.reading&&Pe.read(0)}le.prototype.pause=function(){return v("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(v("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function at(Pe){var Oe=Pe._readableState;for(v("flow",Oe.flowing);Oe.flowing&&Pe.read()!==null;);}le.prototype.wrap=function(Pe){var Oe=this,T=this._readableState,$=!1;Pe.on("end",function(){if(v("wrapped end"),T.decoder&&!T.ended){var q=T.decoder.end();q&&q.length&&Oe.push(q)}Oe.push(null)}),Pe.on("data",function(q){if(v("wrapped data"),T.decoder&&(q=T.decoder.write(q)),!(T.objectMode&&q==null)&&!(!T.objectMode&&(!q||!q.length))){var ke=Oe.push(q);ke||($=!0,Pe.pause())}});for(var B in Pe)this[B]===void 0&&typeof Pe[B]=="function"&&(this[B]=function(ke){return function(){return Pe[ke].apply(Pe,arguments)}}(B));for(var K=0;K=Oe.length?(Oe.decoder?T=Oe.buffer.join(""):Oe.buffer.length===1?T=Oe.buffer.first():T=Oe.buffer.concat(Oe.length),Oe.buffer.clear()):T=Oe.buffer.consume(Pe,Oe.decoder),T}function mt(Pe){var Oe=Pe._readableState;v("endReadable",Oe.endEmitted),Oe.endEmitted||(Oe.ended=!0,Wl.nextTick(jt,Oe,Pe))}function jt(Pe,Oe){if(v("endReadableNT",Pe.endEmitted,Pe.length),!Pe.endEmitted&&Pe.length===0&&(Pe.endEmitted=!0,Oe.readable=!1,Oe.emit("end"),Pe.autoDestroy)){var T=Oe._writableState;(!T||T.autoDestroy&&T.finished)&&Oe.destroy()}}typeof Symbol=="function"&&(le.from=function(Pe,Oe){return Q===void 0&&(Q=sQn()),Q(le,Pe,Oe)});function rn(Pe,Oe){for(var T=0,$=Pe.length;T<$;T++)if(Pe[T]===Oe)return T;return-1}return X7e}var men=JR,kpe=VP.codes,lQn=kpe.ERR_METHOD_NOT_IMPLEMENTED,aQn=kpe.ERR_MULTIPLE_CALLBACK,cQn=kpe.ERR_TRANSFORM_ALREADY_TRANSFORMING,uQn=kpe.ERR_TRANSFORM_WITH_LENGTH_0,Rpe=$L();sj(JR,Rpe);function fQn(n,r){var o=this._transformState;o.transforming=!1;var l=o.writecb;if(l===null)return this.emit("error",new aQn);o.writechunk=null,o.writecb=null,r!=null&&this.push(r),l(n);var u=this._readableState;u.reading=!1,(u.needReadable||u.length0;return mQn(h,v,y,function(E){u||(u=E),E&&d.forEach(uBt),!v&&(d.forEach(uBt),l(u))})});return r.reduce(yQn)}var SQn=_Qn;(function(n,r){r=n.exports=wen(),r.Stream=r,r.Readable=r,r.Writable=ben(),r.Duplex=$L(),r.Transform=men,r.PassThrough=hQn,r.finished=iHe,r.pipeline=SQn})(YLe,YLe.exports);var oHe=YLe.exports;const EQn=cv(oHe);class _en{init(){this.ns=mde}}const sHe=new tJ,kQn={apply:(n,r,o)=>n(o[0]),get:(n,r)=>n(r)};function Kn(n,{factory:r=sHe}={}){const o=(l="")=>r.namedNode(`${n}${l.raw||l}`);return typeof Proxy>"u"?o:new Proxy(o,kQn)}const RQn=Kn("http://www.w3.org/ns/auth/acl#"),xQn=RQn,CQn=Kn("https://www.w3.org/ns/activitystreams#"),AQn=CQn,TQn=Kn("http://purl.org/ontology/bibo/"),$Qn=TQn,IQn=Kn("http://creativecommons.org/ns#"),PQn=IQn,OQn=Kn("http://www.w3.org/ns/auth/cert#"),NQn=OQn,MQn=Kn("http://www.w3.org/2011/content#"),DQn=MQn,LQn=Kn("http://qudt.org/vocab/constant/"),jQn=LQn,FQn=Kn("http://www.cidoc-crm.org/cidoc-crm/"),BQn=FQn,WQn=Kn("http://www.w3.org/ns/csvw#"),HQn=WQn,UQn=Kn("http://commontag.org/ns#"),GQn=UQn,VQn=Kn("http://datashapes.org/sparql#"),zQn=VQn,KQn=Kn("http://datashapes.org/dash#"),qQn=KQn,XQn=Kn("http://dbpedia.org/ontology/"),JQn=XQn,YQn=Kn("http://purl.org/dc/elements/1.1/"),QQn=YQn,ZQn=Kn("http://purl.org/dc/dcam/"),eZn=ZQn,tZn=Kn("http://www.w3.org/ns/dcat#"),nZn=tZn,rZn=Kn("http://purl.org/dc/dcmitype/"),iZn=rZn,oZn=Kn("http://purl.org/dc/terms/"),sZn=oZn,lZn=Kn("http://www.ics.forth.gr/isl/CRMdig/"),aZn=lZn,cZn=Kn("http://qudt.org/vocab/discipline/"),uZn=cZn,fZn=Kn("http://usefulinc.com/ns/doap#"),dZn=fZn,hZn=Kn("http://www.w3.org/ns/dpv#"),pZn=hZn,bZn=Kn("http://www.w3.org/ns/dqv#"),gZn=bZn,wZn=Kn("http://www.linkedmodel.org/schema/dtype#"),mZn=wZn,yZn=Kn("http://www.w3.org/ns/duv#"),vZn=yZn,_Zn=Kn("http://www.w3.org/ns/earl#"),SZn=_Zn,EZn=Kn("http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#"),kZn=EZn,RZn=Kn("http://www.w3.org/2003/12/exif/ns#"),xZn=RZn,CZn=Kn("http://xmlns.com/foaf/0.1/"),AZn=CZn,TZn=Kn("http://purl.org/vocab/frbr/core#"),$Zn=TZn,IZn=Kn("http://www.opengis.net/ont/geosparql#"),PZn=IZn,OZn=Kn("http://www.opengis.net/def/function/geosparql/"),NZn=OZn,MZn=Kn("http://www.opengis.net/def/rule/geosparql/"),DZn=MZn,LZn=Kn("http://www.opengis.net/ont/gml#"),jZn=LZn,FZn=Kn("http://www.geonames.org/ontology#"),BZn=FZn,WZn=Kn("http://purl.org/goodrelations/v1#"),HZn=WZn,UZn=Kn("http://www.w3.org/2003/g/data-view#"),GZn=UZn,VZn=Kn("https://gs1.org/voc/"),zZn=VZn,KZn=Kn("http://vocab.gtfs.org/terms#"),qZn=KZn,XZn=Kn("http://www.w3.org/2011/http#"),JZn=XZn,YZn=Kn("http://www.w3.org/ns/hydra/core#"),QZn=YZn,ZZn=Kn("http://www.w3.org/2002/12/cal/icaltzd#"),eer=ZZn,ter=Kn("https://linked.art/ns/terms/"),ner=ter,rer=Kn("http://www.w3.org/ns/ldp#"),ier=rer,oer=Kn("http://www.w3.org/2000/10/swap/list#"),ser=oer,ler=Kn("http://www.w3.org/ns/locn#"),aer=ler,cer=Kn("http://www.w3.org/2000/10/swap/log#"),uer=cer,fer=Kn("http://lexvo.org/ontology#"),der=fer,her=Kn("http://w3id.org/nfdi4ing/metadata4ing#"),per=her,ber=Kn("http://www.w3.org/ns/ma-ont#"),ger=ber,wer=Kn("http://www.loc.gov/mads/rdf/v1#"),mer=wer,yer=Kn("http://www.w3.org/2000/10/swap/math#"),ver=yer,_er=Kn("http://www.w3.org/ns/oa#"),Ser=_er,Eer=Kn("http://ogp.me/ns#"),ker=Eer,Rer=Kn("http://www.w3.org/ns/solid/oidc#"),xer=Rer,Cer=Kn("http://www.w3.org/ns/org#"),Aer=Cer,Ter=Kn("http://www.w3.org/2002/07/owl#"),$er=Ter,Ier=Kn("http://www.w3.org/ns/pim/space#"),Per=Ier,Oer=Kn("http://qudt.org/vocab/prefix/"),Ner=Oer,Mer=Kn("http://www.w3.org/ns/prov#"),Der=Mer,Ler=Kn("http://purl.org/linked-data/cube#"),jer=Ler,Fer=Kn("http://qudt.org/vocab/dimensionvector/"),Ber=Fer,Wer=Kn("http://qudt.org/vocab/quantitykind/"),Her=Wer,Uer=Kn("http://qudt.org/schema/qudt/"),Ger=Uer,Ver=Kn("http://rdaregistry.info/Elements/u/"),zer=Ver,Ker=Kn("http://www.w3.org/1999/02/22-rdf-syntax-ns#"),hS=Ker,qer=Kn("http://www.w3.org/ns/rdfa#"),Xer=qer,Jer=Kn("http://www.w3.org/2000/01/rdf-schema#"),Yer=Jer,Qer=Kn("http://purl.org/stuff/rev#"),Zer=Qer,etr=Kn("https://www.ica.org/standards/RiC/ontology#"),ttr=etr,ntr=Kn("http://www.w3.org/ns/r2rml#"),rtr=ntr,itr=Kn("http://purl.org/rss/1.0/"),otr=itr,str=Kn("http://schema.org/"),ltr=str,atr=Kn("http://www.w3.org/ns/sparql-service-description#"),ctr=atr,utr=Kn("http://purl.org/linked-data/sdmx#"),ftr=utr,dtr=Kn("http://semanticweb.cs.vu.nl/2009/11/sem/"),htr=dtr,ptr=Kn("http://www.w3.org/2000/10/swap/set#"),btr=ptr,gtr=Kn("http://www.opengis.net/ont/sf#"),wtr=gtr,mtr=Kn("http://www.w3.org/ns/shacl#"),ytr=mtr,vtr=Kn("http://www.w3.org/ns/shex#"),_tr=vtr,Str=Kn("https://www.w3.org/ns/shacl-shacl#"),Etr=Str,ktr=Kn("http://rdfs.org/sioc/ns#"),Rtr=ktr,xtr=Kn("http://www.w3.org/2004/02/skos/core#"),Ctr=xtr,Atr=Kn("http://www.w3.org/2008/05/skos-xl#"),Ttr=Atr,$tr=Kn("http://www.w3.org/ns/solid/terms#"),Itr=$tr,Ptr=Kn("http://www.w3.org/ns/sosa/"),Otr=Ptr,Ntr=Kn("http://qudt.org/vocab/sou/"),Mtr=Ntr,Dtr=Kn("http://www.w3.org/ns/ssn/"),Ltr=Dtr,jtr=Kn("http://www.w3.org/ns/posix/stat#"),Ftr=jtr,Btr=Kn("http://www.w3.org/2000/10/swap/string#"),Wtr=Btr,Htr=Kn("http://www.w3.org/2006/03/test-description#"),Utr=Htr,Gtr=Kn("http://www.w3.org/2006/time#"),Vtr=Gtr,ztr=Kn("http://qudt.org/vocab/unit/"),Ktr=ztr,qtr=Kn("http://www.linkedmodel.org/schema/vaem#"),Xtr=qtr,Jtr=Kn("http://purl.org/vocab/vann/"),Ytr=Jtr,Qtr=Kn("http://www.w3.org/2006/vcard/ns#"),Ztr=Qtr,enr=Kn("http://rdfs.org/ns/void#"),tnr=enr,nnr=Kn("http://www.w3.org/2003/06/sw-vocab-status/ns#"),rnr=nnr,inr=Kn("http://www.w3.org/2007/05/powder-s#"),onr=inr,snr=Kn("http://www.w3.org/2003/01/geo/wgs84_pos#"),lnr=snr,anr=Kn("http://www.w3.org/1999/xhtml/vocab#"),cnr=anr,unr=Kn("http://rdf-vocabulary.ddialliance.org/xkos#"),fnr=unr,dnr=Kn("http://www.w3.org/2001/XMLSchema#"),rq=dnr,hnr=Kn("http://www.w3.org/2007/rif#"),pnr=hnr,bnr=Kn("http://rdf.data-vocabulary.org/#"),gnr=bnr,wnr=Kn("http://www.w3.org/2007/05/powder#"),mnr=wnr,ynr=Kn("http://www.w3.org/XML/1998/namespace/"),vnr=ynr;function _nr(n){return"_:"+n.value}function Snr(n,r){return[...n].map(o=>r(o)).join(` + */(function(n){const r=dpe,o=YWe,l=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=w,n.SlowBuffer=G,n.INSPECT_MAX_BYTES=50;const u=2147483647;n.kMaxLength=u,w.TYPED_ARRAY_SUPPORT=d(),!w.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 d(){try{const $e=new Uint8Array(1),ce={foo:function(){return 42}};return Object.setPrototypeOf(ce,Uint8Array.prototype),Object.setPrototypeOf($e,ce),$e.foo()===42}catch{return!1}}Object.defineProperty(w.prototype,"parent",{enumerable:!0,get:function(){if(w.isBuffer(this))return this.buffer}}),Object.defineProperty(w.prototype,"offset",{enumerable:!0,get:function(){if(w.isBuffer(this))return this.byteOffset}});function h($e){if($e>u)throw new RangeError('The value "'+$e+'" is invalid for option "size"');const ce=new Uint8Array($e);return Object.setPrototypeOf(ce,w.prototype),ce}function w($e,ce,de){if(typeof $e=="number"){if(typeof ce=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return A($e)}return v($e,ce,de)}w.poolSize=8192;function v($e,ce,de){if(typeof $e=="string")return C($e,ce);if(ArrayBuffer.isView($e))return O($e);if($e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof $e);if(he($e,ArrayBuffer)||$e&&he($e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(he($e,SharedArrayBuffer)||$e&&he($e.buffer,SharedArrayBuffer)))return M($e,ce,de);if(typeof $e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const et=$e.valueOf&&$e.valueOf();if(et!=null&&et!==$e)return w.from(et,ce,de);const pt=L($e);if(pt)return pt;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof $e[Symbol.toPrimitive]=="function")return w.from($e[Symbol.toPrimitive]("string"),ce,de);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof $e)}w.from=function($e,ce,de){return v($e,ce,de)},Object.setPrototypeOf(w.prototype,Uint8Array.prototype),Object.setPrototypeOf(w,Uint8Array);function y($e){if(typeof $e!="number")throw new TypeError('"size" argument must be of type number');if($e<0)throw new RangeError('The value "'+$e+'" is invalid for option "size"')}function E($e,ce,de){return y($e),$e<=0?h($e):ce!==void 0?typeof de=="string"?h($e).fill(ce,de):h($e).fill(ce):h($e)}w.alloc=function($e,ce,de){return E($e,ce,de)};function A($e){return y($e),h($e<0?0:H($e)|0)}w.allocUnsafe=function($e){return A($e)},w.allocUnsafeSlow=function($e){return A($e)};function C($e,ce){if((typeof ce!="string"||ce==="")&&(ce="utf8"),!w.isEncoding(ce))throw new TypeError("Unknown encoding: "+ce);const de=j($e,ce)|0;let et=h(de);const pt=et.write($e,ce);return pt!==de&&(et=et.slice(0,pt)),et}function R($e){const ce=$e.length<0?0:H($e.length)|0,de=h(ce);for(let et=0;et=u)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return $e|0}function G($e){return+$e!=$e&&($e=0),w.alloc(+$e)}w.isBuffer=function(ce){return ce!=null&&ce._isBuffer===!0&&ce!==w.prototype},w.compare=function(ce,de){if(he(ce,Uint8Array)&&(ce=w.from(ce,ce.offset,ce.byteLength)),he(de,Uint8Array)&&(de=w.from(de,de.offset,de.byteLength)),!w.isBuffer(ce)||!w.isBuffer(de))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(ce===de)return 0;let et=ce.length,pt=de.length;for(let Jt=0,Qt=Math.min(et,pt);Jtpt.length?(w.isBuffer(Qt)||(Qt=w.from(Qt)),Qt.copy(pt,Jt)):Uint8Array.prototype.set.call(pt,Qt,Jt);else if(w.isBuffer(Qt))Qt.copy(pt,Jt);else throw new TypeError('"list" argument must be an Array of Buffers');Jt+=Qt.length}return pt};function j($e,ce){if(w.isBuffer($e))return $e.length;if(ArrayBuffer.isView($e)||he($e,ArrayBuffer))return $e.byteLength;if(typeof $e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof $e);const de=$e.length,et=arguments.length>2&&arguments[2]===!0;if(!et&&de===0)return 0;let pt=!1;for(;;)switch(ce){case"ascii":case"latin1":case"binary":return de;case"utf8":case"utf-8":return q($e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return de*2;case"hex":return de>>>1;case"base64":return Ie($e).length;default:if(pt)return et?-1:q($e).length;ce=(""+ce).toLowerCase(),pt=!0}}w.byteLength=j;function Q($e,ce,de){let et=!1;if((ce===void 0||ce<0)&&(ce=0),ce>this.length||((de===void 0||de>this.length)&&(de=this.length),de<=0)||(de>>>=0,ce>>>=0,de<=ce))return"";for($e||($e="utf8");;)switch($e){case"hex":return Ue(this,ce,de);case"utf8":case"utf-8":return me(this,ce,de);case"ascii":return Be(this,ce,de);case"latin1":case"binary":return He(this,ce,de);case"base64":return F(this,ce,de);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ge(this,ce,de);default:if(et)throw new TypeError("Unknown encoding: "+$e);$e=($e+"").toLowerCase(),et=!0}}w.prototype._isBuffer=!0;function te($e,ce,de){const et=$e[ce];$e[ce]=$e[de],$e[de]=et}w.prototype.swap16=function(){const ce=this.length;if(ce%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let de=0;dede&&(ce+=" ... "),""},l&&(w.prototype[l]=w.prototype.inspect),w.prototype.compare=function(ce,de,et,pt,Jt){if(he(ce,Uint8Array)&&(ce=w.from(ce,ce.offset,ce.byteLength)),!w.isBuffer(ce))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof ce);if(de===void 0&&(de=0),et===void 0&&(et=ce?ce.length:0),pt===void 0&&(pt=0),Jt===void 0&&(Jt=this.length),de<0||et>ce.length||pt<0||Jt>this.length)throw new RangeError("out of range index");if(pt>=Jt&&de>=et)return 0;if(pt>=Jt)return-1;if(de>=et)return 1;if(de>>>=0,et>>>=0,pt>>>=0,Jt>>>=0,this===ce)return 0;let Qt=Jt-pt,qr=et-de;const ao=Math.min(Qt,qr),ki=this.slice(pt,Jt),Ri=ce.slice(de,et);for(let xi=0;xi2147483647?de=2147483647:de<-2147483648&&(de=-2147483648),de=+de,Xt(de)&&(de=pt?0:$e.length-1),de<0&&(de=$e.length+de),de>=$e.length){if(pt)return-1;de=$e.length-1}else if(de<0)if(pt)de=0;else return-1;if(typeof ce=="string"&&(ce=w.from(ce,et)),w.isBuffer(ce))return ce.length===0?-1:De($e,ce,de,et,pt);if(typeof ce=="number")return ce=ce&255,typeof Uint8Array.prototype.indexOf=="function"?pt?Uint8Array.prototype.indexOf.call($e,ce,de):Uint8Array.prototype.lastIndexOf.call($e,ce,de):De($e,[ce],de,et,pt);throw new TypeError("val must be string, number or Buffer")}function De($e,ce,de,et,pt){let Jt=1,Qt=$e.length,qr=ce.length;if(et!==void 0&&(et=String(et).toLowerCase(),et==="ucs2"||et==="ucs-2"||et==="utf16le"||et==="utf-16le")){if($e.length<2||ce.length<2)return-1;Jt=2,Qt/=2,qr/=2,de/=2}function ao(Ri,xi){return Jt===1?Ri[xi]:Ri.readUInt16BE(xi*Jt)}let ki;if(pt){let Ri=-1;for(ki=de;kiQt&&(de=Qt-qr),ki=de;ki>=0;ki--){let Ri=!0;for(let xi=0;xipt&&(et=pt)):et=pt;const Jt=ce.length;et>Jt/2&&(et=Jt/2);let Qt;for(Qt=0;Qt>>0,isFinite(et)?(et=et>>>0,pt===void 0&&(pt="utf8")):(pt=et,et=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Jt=this.length-de;if((et===void 0||et>Jt)&&(et=Jt),ce.length>0&&(et<0||de<0)||de>this.length)throw new RangeError("Attempt to write outside buffer bounds");pt||(pt="utf8");let Qt=!1;for(;;)switch(pt){case"hex":return Re(this,ce,de,et);case"utf8":case"utf-8":return le(this,ce,de,et);case"ascii":case"latin1":case"binary":return xe(this,ce,de,et);case"base64":return be(this,ce,de,et);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ae(this,ce,de,et);default:if(Qt)throw new TypeError("Unknown encoding: "+pt);pt=(""+pt).toLowerCase(),Qt=!0}},w.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function F($e,ce,de){return ce===0&&de===$e.length?r.fromByteArray($e):r.fromByteArray($e.slice(ce,de))}function me($e,ce,de){de=Math.min($e.length,de);const et=[];let pt=ce;for(;pt239?4:Jt>223?3:Jt>191?2:1;if(pt+qr<=de){let ao,ki,Ri,xi;switch(qr){case 1:Jt<128&&(Qt=Jt);break;case 2:ao=$e[pt+1],(ao&192)===128&&(xi=(Jt&31)<<6|ao&63,xi>127&&(Qt=xi));break;case 3:ao=$e[pt+1],ki=$e[pt+2],(ao&192)===128&&(ki&192)===128&&(xi=(Jt&15)<<12|(ao&63)<<6|ki&63,xi>2047&&(xi<55296||xi>57343)&&(Qt=xi));break;case 4:ao=$e[pt+1],ki=$e[pt+2],Ri=$e[pt+3],(ao&192)===128&&(ki&192)===128&&(Ri&192)===128&&(xi=(Jt&15)<<18|(ao&63)<<12|(ki&63)<<6|Ri&63,xi>65535&&xi<1114112&&(Qt=xi))}}Qt===null?(Qt=65533,qr=1):Qt>65535&&(Qt-=65536,et.push(Qt>>>10&1023|55296),Qt=56320|Qt&1023),et.push(Qt),pt+=qr}return we(et)}const ye=4096;function we($e){const ce=$e.length;if(ce<=ye)return String.fromCharCode.apply(String,$e);let de="",et=0;for(;etet)&&(de=et);let pt="";for(let Jt=ce;Jtet&&(ce=et),de<0?(de+=et,de<0&&(de=0)):de>et&&(de=et),dede)throw new RangeError("Trying to access beyond buffer length")}w.prototype.readUintLE=w.prototype.readUIntLE=function(ce,de,et){ce=ce>>>0,de=de>>>0,et||Le(ce,de,this.length);let pt=this[ce],Jt=1,Qt=0;for(;++Qt>>0,de=de>>>0,et||Le(ce,de,this.length);let pt=this[ce+--de],Jt=1;for(;de>0&&(Jt*=256);)pt+=this[ce+--de]*Jt;return pt},w.prototype.readUint8=w.prototype.readUInt8=function(ce,de){return ce=ce>>>0,de||Le(ce,1,this.length),this[ce]},w.prototype.readUint16LE=w.prototype.readUInt16LE=function(ce,de){return ce=ce>>>0,de||Le(ce,2,this.length),this[ce]|this[ce+1]<<8},w.prototype.readUint16BE=w.prototype.readUInt16BE=function(ce,de){return ce=ce>>>0,de||Le(ce,2,this.length),this[ce]<<8|this[ce+1]},w.prototype.readUint32LE=w.prototype.readUInt32LE=function(ce,de){return ce=ce>>>0,de||Le(ce,4,this.length),(this[ce]|this[ce+1]<<8|this[ce+2]<<16)+this[ce+3]*16777216},w.prototype.readUint32BE=w.prototype.readUInt32BE=function(ce,de){return ce=ce>>>0,de||Le(ce,4,this.length),this[ce]*16777216+(this[ce+1]<<16|this[ce+2]<<8|this[ce+3])},w.prototype.readBigUInt64LE=$n(function(ce){ce=ce>>>0,T(ce,"offset");const de=this[ce],et=this[ce+7];(de===void 0||et===void 0)&&$(ce,this.length-8);const pt=de+this[++ce]*2**8+this[++ce]*2**16+this[++ce]*2**24,Jt=this[++ce]+this[++ce]*2**8+this[++ce]*2**16+et*2**24;return BigInt(pt)+(BigInt(Jt)<>>0,T(ce,"offset");const de=this[ce],et=this[ce+7];(de===void 0||et===void 0)&&$(ce,this.length-8);const pt=de*2**24+this[++ce]*2**16+this[++ce]*2**8+this[++ce],Jt=this[++ce]*2**24+this[++ce]*2**16+this[++ce]*2**8+et;return(BigInt(pt)<>>0,de=de>>>0,et||Le(ce,de,this.length);let pt=this[ce],Jt=1,Qt=0;for(;++Qt=Jt&&(pt-=Math.pow(2,8*de)),pt},w.prototype.readIntBE=function(ce,de,et){ce=ce>>>0,de=de>>>0,et||Le(ce,de,this.length);let pt=de,Jt=1,Qt=this[ce+--pt];for(;pt>0&&(Jt*=256);)Qt+=this[ce+--pt]*Jt;return Jt*=128,Qt>=Jt&&(Qt-=Math.pow(2,8*de)),Qt},w.prototype.readInt8=function(ce,de){return ce=ce>>>0,de||Le(ce,1,this.length),this[ce]&128?(255-this[ce]+1)*-1:this[ce]},w.prototype.readInt16LE=function(ce,de){ce=ce>>>0,de||Le(ce,2,this.length);const et=this[ce]|this[ce+1]<<8;return et&32768?et|4294901760:et},w.prototype.readInt16BE=function(ce,de){ce=ce>>>0,de||Le(ce,2,this.length);const et=this[ce+1]|this[ce]<<8;return et&32768?et|4294901760:et},w.prototype.readInt32LE=function(ce,de){return ce=ce>>>0,de||Le(ce,4,this.length),this[ce]|this[ce+1]<<8|this[ce+2]<<16|this[ce+3]<<24},w.prototype.readInt32BE=function(ce,de){return ce=ce>>>0,de||Le(ce,4,this.length),this[ce]<<24|this[ce+1]<<16|this[ce+2]<<8|this[ce+3]},w.prototype.readBigInt64LE=$n(function(ce){ce=ce>>>0,T(ce,"offset");const de=this[ce],et=this[ce+7];(de===void 0||et===void 0)&&$(ce,this.length-8);const pt=this[ce+4]+this[ce+5]*2**8+this[ce+6]*2**16+(et<<24);return(BigInt(pt)<>>0,T(ce,"offset");const de=this[ce],et=this[ce+7];(de===void 0||et===void 0)&&$(ce,this.length-8);const pt=(de<<24)+this[++ce]*2**16+this[++ce]*2**8+this[++ce];return(BigInt(pt)<>>0,de||Le(ce,4,this.length),o.read(this,ce,!0,23,4)},w.prototype.readFloatBE=function(ce,de){return ce=ce>>>0,de||Le(ce,4,this.length),o.read(this,ce,!1,23,4)},w.prototype.readDoubleLE=function(ce,de){return ce=ce>>>0,de||Le(ce,8,this.length),o.read(this,ce,!0,52,8)},w.prototype.readDoubleBE=function(ce,de){return ce=ce>>>0,de||Le(ce,8,this.length),o.read(this,ce,!1,52,8)};function ft($e,ce,de,et,pt,Jt){if(!w.isBuffer($e))throw new TypeError('"buffer" argument must be a Buffer instance');if(ce>pt||ce$e.length)throw new RangeError("Index out of range")}w.prototype.writeUintLE=w.prototype.writeUIntLE=function(ce,de,et,pt){if(ce=+ce,de=de>>>0,et=et>>>0,!pt){const qr=Math.pow(2,8*et)-1;ft(this,ce,de,et,qr,0)}let Jt=1,Qt=0;for(this[de]=ce&255;++Qt>>0,et=et>>>0,!pt){const qr=Math.pow(2,8*et)-1;ft(this,ce,de,et,qr,0)}let Jt=et-1,Qt=1;for(this[de+Jt]=ce&255;--Jt>=0&&(Qt*=256);)this[de+Jt]=ce/Qt&255;return de+et},w.prototype.writeUint8=w.prototype.writeUInt8=function(ce,de,et){return ce=+ce,de=de>>>0,et||ft(this,ce,de,1,255,0),this[de]=ce&255,de+1},w.prototype.writeUint16LE=w.prototype.writeUInt16LE=function(ce,de,et){return ce=+ce,de=de>>>0,et||ft(this,ce,de,2,65535,0),this[de]=ce&255,this[de+1]=ce>>>8,de+2},w.prototype.writeUint16BE=w.prototype.writeUInt16BE=function(ce,de,et){return ce=+ce,de=de>>>0,et||ft(this,ce,de,2,65535,0),this[de]=ce>>>8,this[de+1]=ce&255,de+2},w.prototype.writeUint32LE=w.prototype.writeUInt32LE=function(ce,de,et){return ce=+ce,de=de>>>0,et||ft(this,ce,de,4,4294967295,0),this[de+3]=ce>>>24,this[de+2]=ce>>>16,this[de+1]=ce>>>8,this[de]=ce&255,de+4},w.prototype.writeUint32BE=w.prototype.writeUInt32BE=function(ce,de,et){return ce=+ce,de=de>>>0,et||ft(this,ce,de,4,4294967295,0),this[de]=ce>>>24,this[de+1]=ce>>>16,this[de+2]=ce>>>8,this[de+3]=ce&255,de+4};function re($e,ce,de,et,pt){Ne(ce,et,pt,$e,de,7);let Jt=Number(ce&BigInt(4294967295));$e[de++]=Jt,Jt=Jt>>8,$e[de++]=Jt,Jt=Jt>>8,$e[de++]=Jt,Jt=Jt>>8,$e[de++]=Jt;let Qt=Number(ce>>BigInt(32)&BigInt(4294967295));return $e[de++]=Qt,Qt=Qt>>8,$e[de++]=Qt,Qt=Qt>>8,$e[de++]=Qt,Qt=Qt>>8,$e[de++]=Qt,de}function Te($e,ce,de,et,pt){Ne(ce,et,pt,$e,de,7);let Jt=Number(ce&BigInt(4294967295));$e[de+7]=Jt,Jt=Jt>>8,$e[de+6]=Jt,Jt=Jt>>8,$e[de+5]=Jt,Jt=Jt>>8,$e[de+4]=Jt;let Qt=Number(ce>>BigInt(32)&BigInt(4294967295));return $e[de+3]=Qt,Qt=Qt>>8,$e[de+2]=Qt,Qt=Qt>>8,$e[de+1]=Qt,Qt=Qt>>8,$e[de]=Qt,de+8}w.prototype.writeBigUInt64LE=$n(function(ce,de=0){return re(this,ce,de,BigInt(0),BigInt("0xffffffffffffffff"))}),w.prototype.writeBigUInt64BE=$n(function(ce,de=0){return Te(this,ce,de,BigInt(0),BigInt("0xffffffffffffffff"))}),w.prototype.writeIntLE=function(ce,de,et,pt){if(ce=+ce,de=de>>>0,!pt){const ao=Math.pow(2,8*et-1);ft(this,ce,de,et,ao-1,-ao)}let Jt=0,Qt=1,qr=0;for(this[de]=ce&255;++Jt>0)-qr&255;return de+et},w.prototype.writeIntBE=function(ce,de,et,pt){if(ce=+ce,de=de>>>0,!pt){const ao=Math.pow(2,8*et-1);ft(this,ce,de,et,ao-1,-ao)}let Jt=et-1,Qt=1,qr=0;for(this[de+Jt]=ce&255;--Jt>=0&&(Qt*=256);)ce<0&&qr===0&&this[de+Jt+1]!==0&&(qr=1),this[de+Jt]=(ce/Qt>>0)-qr&255;return de+et},w.prototype.writeInt8=function(ce,de,et){return ce=+ce,de=de>>>0,et||ft(this,ce,de,1,127,-128),ce<0&&(ce=255+ce+1),this[de]=ce&255,de+1},w.prototype.writeInt16LE=function(ce,de,et){return ce=+ce,de=de>>>0,et||ft(this,ce,de,2,32767,-32768),this[de]=ce&255,this[de+1]=ce>>>8,de+2},w.prototype.writeInt16BE=function(ce,de,et){return ce=+ce,de=de>>>0,et||ft(this,ce,de,2,32767,-32768),this[de]=ce>>>8,this[de+1]=ce&255,de+2},w.prototype.writeInt32LE=function(ce,de,et){return ce=+ce,de=de>>>0,et||ft(this,ce,de,4,2147483647,-2147483648),this[de]=ce&255,this[de+1]=ce>>>8,this[de+2]=ce>>>16,this[de+3]=ce>>>24,de+4},w.prototype.writeInt32BE=function(ce,de,et){return ce=+ce,de=de>>>0,et||ft(this,ce,de,4,2147483647,-2147483648),ce<0&&(ce=4294967295+ce+1),this[de]=ce>>>24,this[de+1]=ce>>>16,this[de+2]=ce>>>8,this[de+3]=ce&255,de+4},w.prototype.writeBigInt64LE=$n(function(ce,de=0){return re(this,ce,de,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),w.prototype.writeBigInt64BE=$n(function(ce,de=0){return Te(this,ce,de,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function dt($e,ce,de,et,pt,Jt){if(de+et>$e.length)throw new RangeError("Index out of range");if(de<0)throw new RangeError("Index out of range")}function at($e,ce,de,et,pt){return ce=+ce,de=de>>>0,pt||dt($e,ce,de,4),o.write($e,ce,de,et,23,4),de+4}w.prototype.writeFloatLE=function(ce,de,et){return at(this,ce,de,!0,et)},w.prototype.writeFloatBE=function(ce,de,et){return at(this,ce,de,!1,et)};function Qe($e,ce,de,et,pt){return ce=+ce,de=de>>>0,pt||dt($e,ce,de,8),o.write($e,ce,de,et,52,8),de+8}w.prototype.writeDoubleLE=function(ce,de,et){return Qe(this,ce,de,!0,et)},w.prototype.writeDoubleBE=function(ce,de,et){return Qe(this,ce,de,!1,et)},w.prototype.copy=function(ce,de,et,pt){if(!w.isBuffer(ce))throw new TypeError("argument should be a Buffer");if(et||(et=0),!pt&&pt!==0&&(pt=this.length),de>=ce.length&&(de=ce.length),de||(de=0),pt>0&&pt=this.length)throw new RangeError("Index out of range");if(pt<0)throw new RangeError("sourceEnd out of bounds");pt>this.length&&(pt=this.length),ce.length-de>>0,et=et===void 0?this.length:et>>>0,ce||(ce=0);let Jt;if(typeof ce=="number")for(Jt=de;Jt2**32?pt=nn(String(de)):typeof de=="bigint"&&(pt=String(de),(de>BigInt(2)**BigInt(32)||de<-(BigInt(2)**BigInt(32)))&&(pt=nn(pt)),pt+="n"),et+=` It must be ${ce}. Received ${pt}`,et},RangeError);function nn($e){let ce="",de=$e.length;const et=$e[0]==="-"?1:0;for(;de>=et+4;de-=3)ce=`_${$e.slice(de-3,de)}${ce}`;return`${$e.slice(0,de)}${ce}`}function Pe($e,ce,de){T(ce,"offset"),($e[ce]===void 0||$e[ce+de]===void 0)&&$(ce,$e.length-(de+1))}function Ne($e,ce,de,et,pt,Jt){if($e>de||$e= 0${Qt} and < 2${Qt} ** ${(Jt+1)*8}${Qt}`:qr=`>= -(2${Qt} ** ${(Jt+1)*8-1}${Qt}) and < 2 ** ${(Jt+1)*8-1}${Qt}`,new yt.ERR_OUT_OF_RANGE("value",qr,$e)}Pe(et,pt,Jt)}function T($e,ce){if(typeof $e!="number")throw new yt.ERR_INVALID_ARG_TYPE(ce,"number",$e)}function $($e,ce,de){throw Math.floor($e)!==$e?(T($e,de),new yt.ERR_OUT_OF_RANGE("offset","an integer",$e)):ce<0?new yt.ERR_BUFFER_OUT_OF_BOUNDS:new yt.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${ce}`,$e)}const B=/[^+/0-9A-Za-z-_]/g;function K($e){if($e=$e.split("=")[0],$e=$e.trim().replace(B,""),$e.length<2)return"";for(;$e.length%4!==0;)$e=$e+"=";return $e}function q($e,ce){ce=ce||1/0;let de;const et=$e.length;let pt=null;const Jt=[];for(let Qt=0;Qt55295&&de<57344){if(!pt){if(de>56319){(ce-=3)>-1&&Jt.push(239,191,189);continue}else if(Qt+1===et){(ce-=3)>-1&&Jt.push(239,191,189);continue}pt=de;continue}if(de<56320){(ce-=3)>-1&&Jt.push(239,191,189),pt=de;continue}de=(pt-55296<<10|de-56320)+65536}else pt&&(ce-=3)>-1&&Jt.push(239,191,189);if(pt=null,de<128){if((ce-=1)<0)break;Jt.push(de)}else if(de<2048){if((ce-=2)<0)break;Jt.push(de>>6|192,de&63|128)}else if(de<65536){if((ce-=3)<0)break;Jt.push(de>>12|224,de>>6&63|128,de&63|128)}else if(de<1114112){if((ce-=4)<0)break;Jt.push(de>>18|240,de>>12&63|128,de>>6&63|128,de&63|128)}else throw new Error("Invalid code point")}return Jt}function ke($e){const ce=[];for(let de=0;de<$e.length;++de)ce.push($e.charCodeAt(de)&255);return ce}function Ee($e,ce){let de,et,pt;const Jt=[];for(let Qt=0;Qt<$e.length&&!((ce-=2)<0);++Qt)de=$e.charCodeAt(Qt),et=de>>8,pt=de%256,Jt.push(pt),Jt.push(et);return Jt}function Ie($e){return r.toByteArray(K($e))}function _t($e,ce,de,et){let pt;for(pt=0;pt=ce.length||pt>=$e.length);++pt)ce[pt+de]=$e[pt];return pt}function he($e,ce){return $e instanceof ce||$e!=null&&$e.constructor!=null&&$e.constructor.name!=null&&$e.constructor.name===ce.name}function Xt($e){return $e!==$e}const Zt=function(){const $e="0123456789abcdef",ce=new Array(256);for(let de=0;de<16;++de){const et=de*16;for(let pt=0;pt<16;++pt)ce[et+pt]=$e[de]+$e[pt]}return ce}();function $n($e){return typeof BigInt>"u"?Gn:$e}function Gn(){throw new Error("BigInt not supported")}})(Kr);var Df={ArrayIsArray(n){return Array.isArray(n)},ArrayPrototypeIncludes(n,r){return n.includes(r)},ArrayPrototypeIndexOf(n,r){return n.indexOf(r)},ArrayPrototypeJoin(n,r){return n.join(r)},ArrayPrototypeMap(n,r){return n.map(r)},ArrayPrototypePop(n,r){return n.pop(r)},ArrayPrototypePush(n,r){return n.push(r)},ArrayPrototypeSlice(n,r,o){return n.slice(r,o)},Error,FunctionPrototypeCall(n,r,...o){return n.call(r,...o)},FunctionPrototypeSymbolHasInstance(n,r){return Function.prototype[Symbol.hasInstance].call(n,r)},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(n,r){return Object.defineProperties(n,r)},ObjectDefineProperty(n,r,o){return Object.defineProperty(n,r,o)},ObjectGetOwnPropertyDescriptor(n,r){return Object.getOwnPropertyDescriptor(n,r)},ObjectKeys(n){return Object.keys(n)},ObjectSetPrototypeOf(n,r){return Object.setPrototypeOf(n,r)},Promise,PromisePrototypeCatch(n,r){return n.catch(r)},PromisePrototypeThen(n,r,o){return n.then(r,o)},PromiseReject(n){return Promise.reject(n)},PromiseResolve(n){return Promise.resolve(n)},ReflectApply:Reflect.apply,RegExpPrototypeTest(n,r){return n.test(r)},SafeSet:Set,String,StringPrototypeSlice(n,r,o){return n.slice(r,o)},StringPrototypeToLowerCase(n){return n.toLowerCase()},StringPrototypeToUpperCase(n){return n.toUpperCase()},StringPrototypeTrim(n){return n.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(n,r,o){return n.set(r,o)},Boolean,Uint8Array},pZt={exports:{}},Jz={exports:{}},pFt;function $o(){if(pFt)return Jz.exports;pFt=1;const{AbortController:n,AbortSignal:r}=typeof self<"u"?self:typeof window<"u"?window:void 0;return Jz.exports=n,Jz.exports.AbortSignal=r,Jz.exports.default=n,Jz.exports}var QWe={exports:{}},JD=typeof Reflect=="object"?Reflect:null,bFt=JD&&typeof JD.apply=="function"?JD.apply:function(r,o,l){return Function.prototype.apply.call(r,o,l)},Ofe;JD&&typeof JD.ownKeys=="function"?Ofe=JD.ownKeys:Object.getOwnPropertySymbols?Ofe=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Ofe=function(r){return Object.getOwnPropertyNames(r)};function pqn(n){console&&console.warn&&console.warn(n)}var bZt=Number.isNaN||function(r){return r!==r};function Sc(){Sc.init.call(this)}QWe.exports=Sc;QWe.exports.once=mqn;Sc.EventEmitter=Sc;Sc.prototype._events=void 0;Sc.prototype._eventsCount=0;Sc.prototype._maxListeners=void 0;var gFt=10;function hpe(n){if(typeof n!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof n)}Object.defineProperty(Sc,"defaultMaxListeners",{enumerable:!0,get:function(){return gFt},set:function(n){if(typeof n!="number"||n<0||bZt(n))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+n+".");gFt=n}});Sc.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};Sc.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||bZt(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function gZt(n){return n._maxListeners===void 0?Sc.defaultMaxListeners:n._maxListeners}Sc.prototype.getMaxListeners=function(){return gZt(this)};Sc.prototype.emit=function(r){for(var o=[],l=1;l0&&(h=o[0]),h instanceof Error)throw h;var w=new Error("Unhandled error."+(h?" ("+h.message+")":""));throw w.context=h,w}var v=d[r];if(v===void 0)return!1;if(typeof v=="function")bFt(v,this,o);else for(var y=v.length,E=_Zt(v,y),l=0;l0&&h.length>u&&!h.warned){h.warned=!0;var w=new Error("Possible EventEmitter memory leak detected. "+h.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");w.name="MaxListenersExceededWarning",w.emitter=n,w.type=r,w.count=h.length,pqn(w)}return n}Sc.prototype.addListener=function(r,o){return wZt(this,r,o,!1)};Sc.prototype.on=Sc.prototype.addListener;Sc.prototype.prependListener=function(r,o){return wZt(this,r,o,!0)};function bqn(){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 mZt(n,r,o){var l={fired:!1,wrapFn:void 0,target:n,type:r,listener:o},u=bqn.bind(l);return u.listener=o,l.wrapFn=u,u}Sc.prototype.once=function(r,o){return hpe(o),this.on(r,mZt(this,r,o)),this};Sc.prototype.prependOnceListener=function(r,o){return hpe(o),this.prependListener(r,mZt(this,r,o)),this};Sc.prototype.removeListener=function(r,o){var l,u,d,h,w;if(hpe(o),u=this._events,u===void 0)return this;if(l=u[r],l===void 0)return this;if(l===o||l.listener===o)--this._eventsCount===0?this._events=Object.create(null):(delete u[r],u.removeListener&&this.emit("removeListener",r,l.listener||o));else if(typeof l!="function"){for(d=-1,h=l.length-1;h>=0;h--)if(l[h]===o||l[h].listener===o){w=l[h].listener,d=h;break}if(d<0)return this;d===0?l.shift():gqn(l,d),l.length===1&&(u[r]=l[0]),u.removeListener!==void 0&&this.emit("removeListener",r,w||o)}return this};Sc.prototype.off=Sc.prototype.removeListener;Sc.prototype.removeAllListeners=function(r){var o,l,u;if(l=this._events,l===void 0)return this;if(l.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):l[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete l[r]),this;if(arguments.length===0){var d=Object.keys(l),h;for(u=0;u=0;u--)this.removeListener(r,o[u]);return this};function yZt(n,r,o){var l=n._events;if(l===void 0)return[];var u=l[r];return u===void 0?[]:typeof u=="function"?o?[u.listener||u]:[u]:o?wqn(u):_Zt(u,u.length)}Sc.prototype.listeners=function(r){return yZt(this,r,!0)};Sc.prototype.rawListeners=function(r){return yZt(this,r,!1)};Sc.listenerCount=function(n,r){return typeof n.listenerCount=="function"?n.listenerCount(r):vZt.call(n,r)};Sc.prototype.listenerCount=vZt;function vZt(n){var r=this._events;if(r!==void 0){var o=r[n];if(typeof o=="function")return 1;if(o!==void 0)return o.length}return 0}Sc.prototype.eventNames=function(){return this._eventsCount>0?Ofe(this._events):[]};function _Zt(n,r){for(var o=new Array(r),l=0;l{if(C!==void 0&&(C===null||typeof C!="object"||!("aborted"in C)))throw new ERR_INVALID_ARG_TYPE(R,"AbortSignal",C)},E=(C,R)=>{if(typeof C!="function")throw new ERR_INVALID_ARG_TYPE(R,"Function",C)};class A extends Error{constructor(R){if(!Array.isArray(R))throw new TypeError(`Expected input to be an Array, got ${typeof R}`);let O="";for(let M=0;M{C=M,R=L}),resolve:C,reject:R}},promisify(C){return new Promise((R,O)=>{C((M,...L)=>M?O(M):R(...L))})},debuglog(){return function(){}},format(C,...R){return C.replace(/%([sdifj])/g,function(...[O,M]){const L=R.shift();return M==="f"?L.toFixed(6):M==="j"?JSON.stringify(L):M==="s"&&typeof L=="object"?`${L.constructor!==Object?L.constructor.name:""} {}`.trim():L.toString()})},inspect(C){switch(typeof C){case"string":if(C.includes("'"))if(C.includes('"')){if(!C.includes("`")&&!C.includes("${"))return`\`${C}\``}else return`"${C}"`;return`'${C}'`;case"number":return isNaN(C)?"NaN":Object.is(C,-0)?String(C):C;case"bigint":return`${String(C)}n`;case"boolean":case"undefined":return String(C);case"object":return"{}"}},types:{isAsyncFunction(C){return C instanceof h},isArrayBufferView(C){return ArrayBuffer.isView(C)}},isBlob:v,deprecate(C,R){return C},addAbortListener:Ns.addAbortListener||function(R,O){if(R===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",R);y(R,"signal"),E(O,"listener");let M;return R.aborted?queueMicrotask(()=>O()):(R.addEventListener("abort",O,{__proto__:null,once:!0,[o]:!0}),M=()=>{R.removeEventListener("abort",O)}),{__proto__:null,[l](){var L;(L=M)===null||L===void 0||L()}}},AbortSignalAny:u.any||function(R){if(R.length===1)return R[0];const O=new d,M=()=>O.abort();return R.forEach(L=>{y(L,"signals"),L.addEventListener("abort",M,{once:!0})}),O.signal.addEventListener("abort",()=>{R.forEach(L=>L.removeEventListener("abort",M))},{once:!0}),O.signal}},n.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(pZt);var s1=pZt.exports,ZWe={};const{format:vqn,inspect:Nde,AggregateError:_qn}=s1,Sqn=globalThis.AggregateError||_qn,Eqn=Symbol("kIsNodeError"),kqn=["string","function","number","object","Function","Object","boolean","bigint","symbol"],Rqn=/^([A-Z][a-z0-9]*)+$/,xqn="__node_internal_",ppe={};function J8(n,r){if(!n)throw new ppe.ERR_INTERNAL_ASSERTION(r)}function wFt(n){let r="",o=n.length;const l=n[0]==="-"?1:0;for(;o>=l+4;o-=3)r=`_${n.slice(o-3,o)}${r}`;return`${n.slice(0,o)}${r}`}function Cqn(n,r,o){if(typeof r=="function")return J8(r.length<=o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${r.length}).`),r(...o);const l=(r.match(/%[dfijoOs]/g)||[]).length;return J8(l===o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${l}).`),o.length===0?r:vqn(r,...o)}function Xp(n,r,o){o||(o=Error);class l extends o{constructor(...d){super(Cqn(n,r,d))}toString(){return`${this.name} [${n}]: ${this.message}`}}Object.defineProperties(l.prototype,{name:{value:o.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${n}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),l.prototype.code=n,l.prototype[Eqn]=!0,ppe[n]=l}function mFt(n){const r=xqn+n.name;return Object.defineProperty(n,"name",{value:r}),n}function Aqn(n,r){if(n&&r&&n!==r){if(Array.isArray(r.errors))return r.errors.push(n),r;const o=new Sqn([r,n],r.message);return o.code=r.code,o}return n||r}let Tqn=class extends Error{constructor(r="The operation was aborted",o=void 0){if(o!==void 0&&typeof o!="object")throw new ppe.ERR_INVALID_ARG_TYPE("options","Object",o);super(r,o),this.code="ABORT_ERR",this.name="AbortError"}};Xp("ERR_ASSERTION","%s",Error);Xp("ERR_INVALID_ARG_TYPE",(n,r,o)=>{J8(typeof n=="string","'name' must be a string"),Array.isArray(r)||(r=[r]);let l="The ";n.endsWith(" argument")?l+=`${n} `:l+=`"${n}" ${n.includes(".")?"property":"argument"} `,l+="must be ";const u=[],d=[],h=[];for(const v of r)J8(typeof v=="string","All expected entries have to be of type string"),kqn.includes(v)?u.push(v.toLowerCase()):Rqn.test(v)?d.push(v):(J8(v!=="object",'The value "object" should be written as "Object"'),h.push(v));if(d.length>0){const v=u.indexOf("object");v!==-1&&(u.splice(u,v,1),d.push("Object"))}if(u.length>0){switch(u.length){case 1:l+=`of type ${u[0]}`;break;case 2:l+=`one of type ${u[0]} or ${u[1]}`;break;default:{const v=u.pop();l+=`one of type ${u.join(", ")}, or ${v}`}}(d.length>0||h.length>0)&&(l+=" or ")}if(d.length>0){switch(d.length){case 1:l+=`an instance of ${d[0]}`;break;case 2:l+=`an instance of ${d[0]} or ${d[1]}`;break;default:{const v=d.pop();l+=`an instance of ${d.join(", ")}, or ${v}`}}h.length>0&&(l+=" or ")}switch(h.length){case 0:break;case 1:h[0].toLowerCase()!==h[0]&&(l+="an "),l+=`${h[0]}`;break;case 2:l+=`one of ${h[0]} or ${h[1]}`;break;default:{const v=h.pop();l+=`one of ${h.join(", ")}, or ${v}`}}if(o==null)l+=`. Received ${o}`;else if(typeof o=="function"&&o.name)l+=`. Received function ${o.name}`;else if(typeof o=="object"){var w;if((w=o.constructor)!==null&&w!==void 0&&w.name)l+=`. Received an instance of ${o.constructor.name}`;else{const v=Nde(o,{depth:-1});l+=`. Received ${v}`}}else{let v=Nde(o,{colors:!1});v.length>25&&(v=`${v.slice(0,25)}...`),l+=`. Received type ${typeof o} (${v})`}return l},TypeError);Xp("ERR_INVALID_ARG_VALUE",(n,r,o="is invalid")=>{let l=Nde(r);return l.length>128&&(l=l.slice(0,128)+"..."),`The ${n.includes(".")?"property":"argument"} '${n}' ${o}. Received ${l}`},TypeError);Xp("ERR_INVALID_RETURN_VALUE",(n,r,o)=>{var l;const u=o!=null&&(l=o.constructor)!==null&&l!==void 0&&l.name?`instance of ${o.constructor.name}`:`type ${typeof o}`;return`Expected ${n} to be returned from the "${r}" function but got ${u}.`},TypeError);Xp("ERR_MISSING_ARGS",(...n)=>{J8(n.length>0,"At least one arg needs to be specified");let r;const o=n.length;switch(n=(Array.isArray(n)?n:[n]).map(l=>`"${l}"`).join(" or "),o){case 1:r+=`The ${n[0]} argument`;break;case 2:r+=`The ${n[0]} and ${n[1]} arguments`;break;default:{const l=n.pop();r+=`The ${n.join(", ")}, and ${l} arguments`}break}return`${r} must be specified`},TypeError);Xp("ERR_OUT_OF_RANGE",(n,r,o)=>{J8(r,'Missing "range" argument');let l;return Number.isInteger(o)&&Math.abs(o)>2**32?l=wFt(String(o)):typeof o=="bigint"?(l=String(o),(o>2n**32n||o<-(2n**32n))&&(l=wFt(l)),l+="n"):l=Nde(o),`The value of "${n}" is out of range. It must be ${r}. Received ${l}`},RangeError);Xp("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);Xp("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);Xp("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);Xp("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);Xp("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);Xp("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Xp("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);Xp("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);Xp("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);Xp("ERR_STREAM_WRITE_AFTER_END","write after end",Error);Xp("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var A0={AbortError:Tqn,aggregateTwoErrors:mFt(Aqn),hideStackFrames:mFt,codes:ppe};const{ArrayIsArray:eHe,ArrayPrototypeIncludes:EZt,ArrayPrototypeJoin:kZt,ArrayPrototypeMap:$qn,NumberIsInteger:tHe,NumberIsNaN:Iqn,NumberMAX_SAFE_INTEGER:Pqn,NumberMIN_SAFE_INTEGER:Oqn,NumberParseInt:Nqn,ObjectPrototypeHasOwnProperty:Mqn,RegExpPrototypeExec:RZt,String:Dqn,StringPrototypeToUpperCase:Lqn,StringPrototypeTrim:jqn}=Df,{hideStackFrames:uv,codes:{ERR_SOCKET_BAD_PORT:Fqn,ERR_INVALID_ARG_TYPE:zb,ERR_INVALID_ARG_VALUE:rj,ERR_OUT_OF_RANGE:vP,ERR_UNKNOWN_SIGNAL:yFt}}=A0,{normalizeEncoding:Bqn}=s1,{isAsyncFunction:Wqn,isArrayBufferView:Hqn}=s1.types,vFt={};function Uqn(n){return n===(n|0)}function Gqn(n){return n===n>>>0}const Vqn=/^[0-7]+$/,zqn="must be a 32-bit unsigned integer or an octal string";function Kqn(n,r,o){if(typeof n>"u"&&(n=o),typeof n=="string"){if(RZt(Vqn,n)===null)throw new rj(r,n,zqn);n=Nqn(n,8)}return xZt(n,r),n}const qqn=uv((n,r,o=Oqn,l=Pqn)=>{if(typeof n!="number")throw new zb(r,"number",n);if(!tHe(n))throw new vP(r,"an integer",n);if(nl)throw new vP(r,`>= ${o} && <= ${l}`,n)}),Xqn=uv((n,r,o=-2147483648,l=2147483647)=>{if(typeof n!="number")throw new zb(r,"number",n);if(!tHe(n))throw new vP(r,"an integer",n);if(nl)throw new vP(r,`>= ${o} && <= ${l}`,n)}),xZt=uv((n,r,o=!1)=>{if(typeof n!="number")throw new zb(r,"number",n);if(!tHe(n))throw new vP(r,"an integer",n);const l=o?1:0,u=4294967295;if(nu)throw new vP(r,`>= ${l} && <= ${u}`,n)});function nHe(n,r){if(typeof n!="string")throw new zb(r,"string",n)}function Jqn(n,r,o=void 0,l){if(typeof n!="number")throw new zb(r,"number",n);if(o!=null&&nl||(o!=null||l!=null)&&Iqn(n))throw new vP(r,`${o!=null?`>= ${o}`:""}${o!=null&&l!=null?" && ":""}${l!=null?`<= ${l}`:""}`,n)}const Yqn=uv((n,r,o)=>{if(!EZt(o,n)){const u="must be one of: "+kZt($qn(o,d=>typeof d=="string"?`'${d}'`:Dqn(d)),", ");throw new rj(r,n,u)}});function CZt(n,r){if(typeof n!="boolean")throw new zb(r,"boolean",n)}function T7e(n,r,o){return n==null||!Mqn(n,r)?o:n[r]}const Qqn=uv((n,r,o=null)=>{const l=T7e(o,"allowArray",!1),u=T7e(o,"allowFunction",!1);if(!T7e(o,"nullable",!1)&&n===null||!l&&eHe(n)||typeof n!="object"&&(!u||typeof n!="function"))throw new zb(r,"Object",n)}),Zqn=uv((n,r)=>{if(n!=null&&typeof n!="object"&&typeof n!="function")throw new zb(r,"a dictionary",n)}),bpe=uv((n,r,o=0)=>{if(!eHe(n))throw new zb(r,"Array",n);if(n.length{if(!Hqn(n))throw new zb(r,["Buffer","TypedArray","DataView"],n)});function oXn(n,r){const o=Bqn(r),l=n.length;if(o==="hex"&&l%2!==0)throw new rj("encoding",r,`is invalid for data of length ${l}`)}function sXn(n,r="Port",o=!0){if(typeof n!="number"&&typeof n!="string"||typeof n=="string"&&jqn(n).length===0||+n!==+n>>>0||n>65535||n===0&&!o)throw new Fqn(r,n,o);return n|0}const AZt=uv((n,r)=>{if(n!==void 0&&(n===null||typeof n!="object"||!("aborted"in n)))throw new zb(r,"AbortSignal",n)}),lXn=uv((n,r)=>{if(typeof n!="function")throw new zb(r,"Function",n)}),aXn=uv((n,r)=>{if(typeof n!="function"||Wqn(n))throw new zb(r,"Function",n)}),cXn=uv((n,r)=>{if(n!==void 0)throw new zb(r,"undefined",n)});function uXn(n,r,o){if(!EZt(o,n))throw new zb(r,`('${kZt(o,"|")}')`,n)}const fXn=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function _Ft(n,r){if(typeof n>"u"||!RZt(fXn,n))throw new rj(r,n,'must be an array or string of format "; rel=preload; as=style"')}function dXn(n){if(typeof n=="string")return _Ft(n,"hints"),n;if(eHe(n)){const r=n.length;let o="";if(r===0)return o;for(let l=0;l; rel=preload; as=style"')}var nJ={isInt32:Uqn,isUint32:Gqn,parseFileMode:Kqn,validateArray:bpe,validateStringArray:eXn,validateBooleanArray:tXn,validateAbortSignalArray:nXn,validateBoolean:CZt,validateBuffer:iXn,validateDictionary:Zqn,validateEncoding:oXn,validateFunction:lXn,validateInt32:Xqn,validateInteger:qqn,validateNumber:Jqn,validateObject:Qqn,validateOneOf:Yqn,validatePlainFunction:aXn,validatePort:sXn,validateSignalName:rXn,validateString:nHe,validateUint32:xZt,validateUndefined:cXn,validateUnion:uXn,validateAbortSignal:AZt,validateLinkHeaderValue:dXn},rHe={exports:{}},TZt={exports:{}},Sd=TZt.exports={},IE,PE;function GLe(){throw new Error("setTimeout has not been defined")}function VLe(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?IE=setTimeout:IE=GLe}catch{IE=GLe}try{typeof clearTimeout=="function"?PE=clearTimeout:PE=VLe}catch{PE=VLe}})();function $Zt(n){if(IE===setTimeout)return setTimeout(n,0);if((IE===GLe||!IE)&&setTimeout)return IE=setTimeout,setTimeout(n,0);try{return IE(n,0)}catch{try{return IE.call(null,n,0)}catch{return IE.call(this,n,0)}}}function hXn(n){if(PE===clearTimeout)return clearTimeout(n);if((PE===VLe||!PE)&&clearTimeout)return PE=clearTimeout,clearTimeout(n);try{return PE(n)}catch{try{return PE.call(null,n)}catch{return PE.call(this,n)}}}var WR=[],YD=!1,H8,Nfe=-1;function pXn(){!YD||!H8||(YD=!1,H8.length?WR=H8.concat(WR):Nfe=-1,WR.length&&IZt())}function IZt(){if(!YD){var n=$Zt(pXn);YD=!0;for(var r=WR.length;r;){for(H8=WR,WR=[];++Nfe1)for(var o=1;o{};function KZt(n,r,o){var l,u;if(arguments.length===2?(o=r,r=qLe):r==null?r=qLe:NXn(r,"options"),OXn(o,"callback"),PXn(r.signal,"options.signal"),o=XLe(o),FXn(n)||BXn(n))return VXn(n,r,o);if(!WXn(n))throw new IXn("stream",["ReadableStream","WritableStream","Stream"],n);const d=(l=r.readable)!==null&&l!==void 0?l:$7e(n),h=(u=r.writable)!==null&&u!==void 0?u:TFt(n),w=n._writableState,v=n._readableState,y=()=>{n.writable||C()};let E=HXn(n)&&$7e(n)===d&&TFt(n)===h,A=$Ft(n,!1);const C=()=>{A=!0,n.destroyed&&(E=!1),!(E&&(!n.readable||d))&&(!d||R)&&o.call(n)};let R=xFt(n,!1);const O=()=>{R=!0,n.destroyed&&(E=!1),!(E&&(!n.writable||h))&&(!h||A)&&o.call(n)},M=te=>{o.call(n,te)};let L=jXn(n);const H=()=>{L=!0;const te=IFt(n)||CFt(n);if(te&&typeof te!="boolean")return o.call(n,te);if(d&&!R&&$7e(n,!0)&&!xFt(n,!1))return o.call(n,new kFt);if(h&&!A&&!$Ft(n,!1))return o.call(n,new kFt);o.call(n)},G=()=>{L=!0;const te=IFt(n)||CFt(n);if(te&&typeof te!="boolean")return o.call(n,te);o.call(n)},j=()=>{n.req.on("finish",C)};GXn(n)?(n.on("complete",C),E||n.on("abort",H),n.req?j():n.on("request",j)):h&&!w&&(n.on("end",y),n.on("close",y)),!E&&typeof n.aborted=="boolean"&&n.on("aborted",H),n.on("end",O),n.on("finish",C),r.error!==!1&&n.on("error",M),n.on("close",H),L?V4.nextTick(H):w!=null&&w.errorEmitted||v!=null&&v.errorEmitted?E||V4.nextTick(G):(!d&&(!E||RFt(n))&&(A||AFt(n)===!1)||!h&&(!E||AFt(n))&&(R||RFt(n)===!1)||v&&n.req&&n.aborted)&&V4.nextTick(G);const Q=()=>{o=JLe,n.removeListener("aborted",H),n.removeListener("complete",C),n.removeListener("abort",H),n.removeListener("request",j),n.req&&n.req.removeListener("finish",C),n.removeListener("end",y),n.removeListener("close",y),n.removeListener("finish",C),n.removeListener("end",O),n.removeListener("error",M),n.removeListener("close",H)};if(r.signal&&!L){const te=()=>{const pe=o;Q(),pe.call(n,new VZt(void 0,{cause:r.signal.reason}))};if(r.signal.aborted)V4.nextTick(te);else{QD=QD||s1.addAbortListener;const pe=QD(r.signal,te),De=o;o=XLe((...Re)=>{pe[zZt](),De.apply(n,Re)})}}return Q}function VXn(n,r,o){let l=!1,u=JLe;if(r.signal)if(u=()=>{l=!0,o.call(n,new VZt(void 0,{cause:r.signal.reason}))},r.signal.aborted)V4.nextTick(u);else{QD=QD||s1.addAbortListener;const h=QD(r.signal,u),w=o;o=XLe((...v)=>{h[zZt](),w.apply(n,v)})}const d=(...h)=>{l||V4.nextTick(()=>o.apply(n,h))};return LXn(n[UXn].promise,d,d),JLe}function zXn(n,r){var o;let l=!1;return r===null&&(r=qLe),(o=r)!==null&&o!==void 0&&o.cleanup&&(MXn(r.cleanup,"cleanup"),l=r.cleanup),new DXn((u,d)=>{const h=KZt(n,r,w=>{l&&h(),w?d(w):u()})})}rHe.exports=KZt;rHe.exports.finished=zXn;var MT=rHe.exports;const WE=ui,{aggregateTwoErrors:KXn,codes:{ERR_MULTIPLE_CALLBACK:qXn},AbortError:XXn}=A0,{Symbol:qZt}=Df,{kIsDestroyed:JXn,isDestroyed:YXn,isFinished:QXn,isServerRequest:ZXn}=kx,XZt=qZt("kDestroy"),YLe=qZt("kConstruct");function JZt(n,r,o){n&&(n.stack,r&&!r.errored&&(r.errored=n),o&&!o.errored&&(o.errored=n))}function eJn(n,r){const o=this._readableState,l=this._writableState,u=l||o;return l!=null&&l.destroyed||o!=null&&o.destroyed?(typeof r=="function"&&r(),this):(JZt(n,l,o),l&&(l.destroyed=!0),o&&(o.destroyed=!0),u.constructed?PFt(this,n,r):this.once(XZt,function(d){PFt(this,KXn(d,n),r)}),this)}function PFt(n,r,o){let l=!1;function u(d){if(l)return;l=!0;const h=n._readableState,w=n._writableState;JZt(d,w,h),w&&(w.closed=!0),h&&(h.closed=!0),typeof o=="function"&&o(d),d?WE.nextTick(tJn,n,d):WE.nextTick(YZt,n)}try{n._destroy(r||null,u)}catch(d){u(d)}}function tJn(n,r){QLe(n,r),YZt(n)}function YZt(n){const r=n._readableState,o=n._writableState;o&&(o.closeEmitted=!0),r&&(r.closeEmitted=!0),(o!=null&&o.emitClose||r!=null&&r.emitClose)&&n.emit("close")}function QLe(n,r){const o=n._readableState,l=n._writableState;l!=null&&l.errorEmitted||o!=null&&o.errorEmitted||(l&&(l.errorEmitted=!0),o&&(o.errorEmitted=!0),n.emit("error",r))}function nJn(){const n=this._readableState,r=this._writableState;n&&(n.constructed=!0,n.closed=!1,n.closeEmitted=!1,n.destroyed=!1,n.errored=null,n.errorEmitted=!1,n.reading=!1,n.ended=n.readable===!1,n.endEmitted=n.readable===!1),r&&(r.constructed=!0,r.destroyed=!1,r.closed=!1,r.closeEmitted=!1,r.errored=null,r.errorEmitted=!1,r.finalCalled=!1,r.prefinished=!1,r.ended=r.writable===!1,r.ending=r.writable===!1,r.finished=r.writable===!1)}function ZLe(n,r,o){const l=n._readableState,u=n._writableState;if(u!=null&&u.destroyed||l!=null&&l.destroyed)return this;l!=null&&l.autoDestroy||u!=null&&u.autoDestroy?n.destroy(r):r&&(r.stack,u&&!u.errored&&(u.errored=r),l&&!l.errored&&(l.errored=r),o?WE.nextTick(QLe,n,r):QLe(n,r))}function rJn(n,r){if(typeof n._construct!="function")return;const o=n._readableState,l=n._writableState;o&&(o.constructed=!1),l&&(l.constructed=!1),n.once(YLe,r),!(n.listenerCount(YLe)>1)&&WE.nextTick(iJn,n)}function iJn(n){let r=!1;function o(l){if(r){ZLe(n,l??new qXn);return}r=!0;const u=n._readableState,d=n._writableState,h=d||u;u&&(u.constructed=!0),d&&(d.constructed=!0),h.destroyed?n.emit(XZt,l):l?ZLe(n,l,!0):WE.nextTick(oJn,n)}try{n._construct(l=>{WE.nextTick(o,l)})}catch(l){WE.nextTick(o,l)}}function oJn(n){n.emit(YLe)}function OFt(n){return(n==null?void 0:n.setHeader)&&typeof n.abort=="function"}function QZt(n){n.emit("close")}function sJn(n,r){n.emit("error",r),WE.nextTick(QZt,n)}function lJn(n,r){!n||YXn(n)||(!r&&!QXn(n)&&(r=new XXn),ZXn(n)?(n.socket=null,n.destroy(r)):OFt(n)?n.abort():OFt(n.req)?n.req.abort():typeof n.destroy=="function"?n.destroy(r):typeof n.close=="function"?n.close():r?WE.nextTick(sJn,n,r):WE.nextTick(QZt,n),n.destroyed||(n[JXn]=!0))}var ij={construct:rJn,destroyer:lJn,destroy:eJn,undestroy:nJn,errorOrDestroy:ZLe};const{ArrayIsArray:aJn,ObjectSetPrototypeOf:ZZt}=Df,{EventEmitter:ype}=Ns;function vpe(n){ype.call(this,n)}ZZt(vpe.prototype,ype.prototype);ZZt(vpe,ype);vpe.prototype.pipe=function(n,r){const o=this;function l(E){n.writable&&n.write(E)===!1&&o.pause&&o.pause()}o.on("data",l);function u(){o.readable&&o.resume&&o.resume()}n.on("drain",u),!n._isStdio&&(!r||r.end!==!1)&&(o.on("end",h),o.on("close",w));let d=!1;function h(){d||(d=!0,n.end())}function w(){d||(d=!0,typeof n.destroy=="function"&&n.destroy())}function v(E){y(),ype.listenerCount(this,"error")===0&&this.emit("error",E)}eje(o,"error",v),eje(n,"error",v);function y(){o.removeListener("data",l),n.removeListener("drain",u),o.removeListener("end",h),o.removeListener("close",w),o.removeListener("error",v),n.removeListener("error",v),o.removeListener("end",y),o.removeListener("close",y),n.removeListener("close",y)}return o.on("end",y),o.on("close",y),n.on("close",y),n.emit("pipe",o),n};function eje(n,r,o){if(typeof n.prependListener=="function")return n.prependListener(r,o);!n._events||!n._events[r]?n.on(r,o):aJn(n._events[r])?n._events[r].unshift(o):n._events[r]=[o,n._events[r]]}var iHe={Stream:vpe,prependListener:eje},een={exports:{}};(function(n){const{SymbolDispose:r}=Df,{AbortError:o,codes:l}=A0,{isNodeStream:u,isWebStream:d,kControllerErrorFunction:h}=kx,w=MT,{ERR_INVALID_ARG_TYPE:v}=l;let y;const E=(A,C)=>{if(typeof A!="object"||!("aborted"in A))throw new v(C,"AbortSignal",A)};n.exports.addAbortSignal=function(C,R){if(E(C,"signal"),!u(R)&&!d(R))throw new v("stream",["ReadableStream","WritableStream","Stream"],R);return n.exports.addAbortSignalNoValidate(C,R)},n.exports.addAbortSignalNoValidate=function(A,C){if(typeof A!="object"||!("aborted"in A))return C;const R=u(C)?()=>{C.destroy(new o(void 0,{cause:A.reason}))}:()=>{C[h](new o(void 0,{cause:A.reason}))};if(A.aborted)R();else{y=y||s1.addAbortListener;const O=y(A,R);w(C,O[r])}return C}})(een);var _pe=een.exports;const{StringPrototypeSlice:NFt,SymbolIterator:cJn,TypedArrayPrototypeSet:eue,Uint8Array:uJn}=Df,{Buffer:I7e}=Kr,{inspect:fJn}=s1;var dJn=class{constructor(){this.head=null,this.tail=null,this.length=0}push(r){const o={data:r,next:null};this.length>0?this.tail.next=o:this.head=o,this.tail=o,++this.length}unshift(r){const o={data:r,next:this.head};this.length===0&&(this.tail=o),this.head=o,++this.length}shift(){if(this.length===0)return;const r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}clear(){this.head=this.tail=null,this.length=0}join(r){if(this.length===0)return"";let o=this.head,l=""+o.data;for(;(o=o.next)!==null;)l+=r+o.data;return l}concat(r){if(this.length===0)return I7e.alloc(0);const o=I7e.allocUnsafe(r>>>0);let l=this.head,u=0;for(;l;)eue(o,l.data,u),u+=l.data.length,l=l.next;return o}consume(r,o){const l=this.head.data;if(rd.length)o+=d,r-=d.length;else{r===d.length?(o+=d,++u,l.next?this.head=l.next:this.head=this.tail=null):(o+=NFt(d,0,r),this.head=l,l.data=NFt(d,r));break}++u}while((l=l.next)!==null);return this.length-=u,o}_getBuffer(r){const o=I7e.allocUnsafe(r),l=r;let u=this.head,d=0;do{const h=u.data;if(r>h.length)eue(o,h,l-r),r-=h.length;else{r===h.length?(eue(o,h,l-r),++d,u.next?this.head=u.next:this.head=this.tail=null):(eue(o,new uJn(h.buffer,h.byteOffset,r),l-r),this.head=u,u.data=h.slice(r));break}++d}while((u=u.next)!==null);return this.length-=d,o}[Symbol.for("nodejs.util.inspect.custom")](r,o){return fJn(this,{...o,depth:0,customInspect:!1})}};const{MathFloor:hJn,NumberIsInteger:pJn}=Df,{validateInteger:bJn}=nJ,{ERR_INVALID_ARG_VALUE:gJn}=A0.codes;let ten=16*1024,nen=16;function wJn(n,r,o){return n.highWaterMark!=null?n.highWaterMark:r?n[o]:null}function ren(n){return n?nen:ten}function mJn(n,r){bJn(r,"value",0),n?nen=r:ten=r}function yJn(n,r,o,l){const u=wJn(r,l,o);if(u!=null){if(!pJn(u)||u<0){const d=l?`options.${o}`:"options.highWaterMark";throw new gJn(d,u)}return hJn(u)}return ren(n.objectMode)}var Spe={getHighWaterMark:yJn,getDefaultHighWaterMark:ren,setDefaultHighWaterMark:mJn},rm={},tje={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh */(function(n,r){var o=Kr,l=o.Buffer;function u(h,w){for(var v in h)w[v]=h[v]}l.from&&l.alloc&&l.allocUnsafe&&l.allocUnsafeSlow?n.exports=o:(u(o,r),r.Buffer=d);function d(h,w,v){return l(h,w,v)}d.prototype=Object.create(l.prototype),u(l,d),d.from=function(h,w,v){if(typeof h=="number")throw new TypeError("Argument must not be a number");return l(h,w,v)},d.alloc=function(h,w,v){if(typeof h!="number")throw new TypeError("Argument must be a number");var y=l(h);return w!==void 0?typeof v=="string"?y.fill(w,v):y.fill(w):y.fill(0),y},d.allocUnsafe=function(h){if(typeof h!="number")throw new TypeError("Argument must be a number");return l(h)},d.allocUnsafeSlow=function(h){if(typeof h!="number")throw new TypeError("Argument must be a number");return o.SlowBuffer(h)}})(tje,tje.exports);var vJn=tje.exports,oHe=vJn.Buffer,MFt=oHe.isEncoding||function(n){switch(n=""+n,n&&n.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 _Jn(n){if(!n)return"utf8";for(var r;;)switch(n){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 n;default:if(r)return;n=(""+n).toLowerCase(),r=!0}}function SJn(n){var r=_Jn(n);if(typeof r!="string"&&(oHe.isEncoding===MFt||!MFt(n)))throw new Error("Unknown encoding: "+n);return r||n}rm.StringDecoder=rJ;function rJ(n){this.encoding=SJn(n);var r;switch(this.encoding){case"utf16le":this.text=AJn,this.end=TJn,r=4;break;case"utf8":this.fillLast=RJn,r=4;break;case"base64":this.text=$Jn,this.end=IJn,r=3;break;default:this.write=PJn,this.end=OJn;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=oHe.allocUnsafe(r)}rJ.prototype.write=function(n){if(n.length===0)return"";var r,o;if(this.lastNeed){if(r=this.fillLast(n),r===void 0)return"";o=this.lastNeed,this.lastNeed=0}else o=0;return o>5===6?2:n>>4===14?3:n>>3===30?4:n>>6===2?-1:-2}function EJn(n,r,o){var l=r.length-1;if(l=0?(u>0&&(n.lastNeed=u-1),u):--l=0?(u>0&&(n.lastNeed=u-2),u):--l=0?(u>0&&(u===2?u=0:n.lastNeed=u-3),u):0))}function kJn(n,r,o){if((r[0]&192)!==128)return n.lastNeed=0,"�";if(n.lastNeed>1&&r.length>1){if((r[1]&192)!==128)return n.lastNeed=1,"�";if(n.lastNeed>2&&r.length>2&&(r[2]&192)!==128)return n.lastNeed=2,"�"}}function RJn(n){var r=this.lastTotal-this.lastNeed,o=kJn(this,n);if(o!==void 0)return o;if(this.lastNeed<=n.length)return n.copy(this.lastChar,r,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);n.copy(this.lastChar,r,0,n.length),this.lastNeed-=n.length}function xJn(n,r){var o=EJn(this,n,r);if(!this.lastNeed)return n.toString("utf8",r);this.lastTotal=o;var l=n.length-(o-this.lastNeed);return n.copy(this.lastChar,0,l),n.toString("utf8",r,l)}function CJn(n){var r=n&&n.length?this.write(n):"";return this.lastNeed?r+"�":r}function AJn(n,r){if((n.length-r)%2===0){var o=n.toString("utf16le",r);if(o){var l=o.charCodeAt(o.length-1);if(l>=55296&&l<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=n[n.length-2],this.lastChar[1]=n[n.length-1],o.slice(0,-1)}return o}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=n[n.length-1],n.toString("utf16le",r,n.length-1)}function TJn(n){var r=n&&n.length?this.write(n):"";if(this.lastNeed){var o=this.lastTotal-this.lastNeed;return r+this.lastChar.toString("utf16le",0,o)}return r}function $Jn(n,r){var o=(n.length-r)%3;return o===0?n.toString("base64",r):(this.lastNeed=3-o,this.lastTotal=3,o===1?this.lastChar[0]=n[n.length-1]:(this.lastChar[0]=n[n.length-2],this.lastChar[1]=n[n.length-1]),n.toString("base64",r,n.length-o))}function IJn(n){var r=n&&n.length?this.write(n):"";return this.lastNeed?r+this.lastChar.toString("base64",0,3-this.lastNeed):r}function PJn(n){return n.toString(this.encoding)}function OJn(n){return n&&n.length?this.write(n):""}const DFt=ui,{PromisePrototypeThen:NJn,SymbolAsyncIterator:LFt,SymbolIterator:jFt}=Df,{Buffer:MJn}=Kr,{ERR_INVALID_ARG_TYPE:DJn,ERR_STREAM_NULL_VALUES:LJn}=A0.codes;function jJn(n,r,o){let l;if(typeof r=="string"||r instanceof MJn)return new n({objectMode:!0,...o,read(){this.push(r),this.push(null)}});let u;if(r&&r[LFt])u=!0,l=r[LFt]();else if(r&&r[jFt])u=!1,l=r[jFt]();else throw new DJn("iterable",["Iterable"],r);const d=new n({objectMode:!0,highWaterMark:1,...o});let h=!1;d._read=function(){h||(h=!0,v())},d._destroy=function(y,E){NJn(w(y),()=>DFt.nextTick(E,y),A=>DFt.nextTick(E,A||y))};async function w(y){const E=y!=null,A=typeof l.throw=="function";if(E&&A){const{value:C,done:R}=await l.throw(y);if(await C,R)return}if(typeof l.return=="function"){const{value:C}=await l.return();await C}}async function v(){for(;;){try{const{value:y,done:E}=u?await l.next():l.next();if(E)d.push(null);else{const A=y&&typeof y.then=="function"?await y:y;if(A===null)throw h=!1,new LJn;if(d.push(A))continue;h=!1}}catch(y){d.destroy(y)}break}}return d}var ien=jJn,O7e,FFt;function Epe(){if(FFt)return O7e;FFt=1;const n=ui,{ArrayPrototypeIndexOf:r,NumberIsInteger:o,NumberIsNaN:l,NumberParseInt:u,ObjectDefineProperties:d,ObjectKeys:h,ObjectSetPrototypeOf:w,Promise:v,SafeSet:y,SymbolAsyncDispose:E,SymbolAsyncIterator:A,Symbol:C}=Df;O7e=he,he.ReadableState=_t;const{EventEmitter:R}=Ns,{Stream:O,prependListener:M}=iHe,{Buffer:L}=Kr,{addAbortSignal:H}=_pe,G=MT;let j=s1.debuglog("stream",S=>{j=S});const Q=dJn,te=ij,{getHighWaterMark:pe,getDefaultHighWaterMark:De}=Spe,{aggregateTwoErrors:Re,codes:{ERR_INVALID_ARG_TYPE:le,ERR_METHOD_NOT_IMPLEMENTED:xe,ERR_OUT_OF_RANGE:be,ERR_STREAM_PUSH_AFTER_EOF:ae,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:F},AbortError:me}=A0,{validateObject:ye}=nJ,we=C("kPaused"),{StringDecoder:Be}=rm,He=ien;w(he.prototype,O.prototype),w(he,O);const Ue=()=>{},{errorOrDestroy:Ge}=te,Le=1,ft=2,re=4,Te=8,dt=16,at=32,Qe=64,yt=128,Lt=256,nn=512,Pe=1024,Ne=2048,T=4096,$=8192,B=16384,K=32768,q=65536,ke=1<<17,Ee=1<<18;function Ie(S){return{enumerable:!1,get(){return(this.state&S)!==0},set(x){x?this.state|=S:this.state&=~S}}}d(_t.prototype,{objectMode:Ie(Le),ended:Ie(ft),endEmitted:Ie(re),reading:Ie(Te),constructed:Ie(dt),sync:Ie(at),needReadable:Ie(Qe),emittedReadable:Ie(yt),readableListening:Ie(Lt),resumeScheduled:Ie(nn),errorEmitted:Ie(Pe),emitClose:Ie(Ne),autoDestroy:Ie(T),destroyed:Ie($),closed:Ie(B),closeEmitted:Ie(K),multiAwaitDrain:Ie(q),readingMore:Ie(ke),dataEmitted:Ie(Ee)});function _t(S,x,Y){typeof Y!="boolean"&&(Y=x instanceof qR()),this.state=Ne|T|dt|at,S&&S.objectMode&&(this.state|=Le),Y&&S&&S.readableObjectMode&&(this.state|=Le),this.highWaterMark=S?pe(this,S,"readableHighWaterMark",Y):De(!1),this.buffer=new Q,this.length=0,this.pipes=[],this.flowing=null,this[we]=null,S&&S.emitClose===!1&&(this.state&=~Ne),S&&S.autoDestroy===!1&&(this.state&=~T),this.errored=null,this.defaultEncoding=S&&S.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,S&&S.encoding&&(this.decoder=new Be(S.encoding),this.encoding=S.encoding)}function he(S){if(!(this instanceof he))return new he(S);const x=this instanceof qR();this._readableState=new _t(S,this,x),S&&(typeof S.read=="function"&&(this._read=S.read),typeof S.destroy=="function"&&(this._destroy=S.destroy),typeof S.construct=="function"&&(this._construct=S.construct),S.signal&&!x&&H(S.signal,this)),O.call(this,S),te.construct(this,()=>{this._readableState.needReadable&&pt(this,this._readableState)})}he.prototype.destroy=te.destroy,he.prototype._undestroy=te.undestroy,he.prototype._destroy=function(S,x){x(S)},he.prototype[R.captureRejectionSymbol]=function(S){this.destroy(S)},he.prototype[E]=function(){let S;return this.destroyed||(S=this.readableEnded?null:new me,this.destroy(S)),new v((x,Y)=>G(this,J=>J&&J!==S?Y(J):x(null)))},he.prototype.push=function(S,x){return Xt(this,S,x,!1)},he.prototype.unshift=function(S,x){return Xt(this,S,x,!0)};function Xt(S,x,Y,J){j("readableAddChunk",x);const ue=S._readableState;let Yt;if(ue.state&Le||(typeof x=="string"?(Y=Y||ue.defaultEncoding,ue.encoding!==Y&&(J&&ue.encoding?x=L.from(x,Y).toString(ue.encoding):(x=L.from(x,Y),Y=""))):x instanceof L?Y="":O._isUint8Array(x)?(x=O._uint8ArrayToBuffer(x),Y=""):x!=null&&(Yt=new le("chunk",["string","Buffer","Uint8Array"],x))),Yt)Ge(S,Yt);else if(x===null)ue.state&=~Te,ce(S,ue);else if(ue.state&Le||x&&x.length>0)if(J)if(ue.state&re)Ge(S,new F);else{if(ue.destroyed||ue.errored)return!1;Zt(S,ue,x,!0)}else if(ue.ended)Ge(S,new ae);else{if(ue.destroyed||ue.errored)return!1;ue.state&=~Te,ue.decoder&&!Y?(x=ue.decoder.write(x),ue.objectMode||x.length!==0?Zt(S,ue,x,!1):pt(S,ue)):Zt(S,ue,x,!1)}else J||(ue.state&=~Te,pt(S,ue));return!ue.ended&&(ue.length0?(x.state&q?x.awaitDrainWriters.clear():x.awaitDrainWriters=null,x.dataEmitted=!0,S.emit("data",Y)):(x.length+=x.objectMode?1:Y.length,J?x.buffer.unshift(Y):x.buffer.push(Y),x.state&Qe&&de(S)),pt(S,x)}he.prototype.isPaused=function(){const S=this._readableState;return S[we]===!0||S.flowing===!1},he.prototype.setEncoding=function(S){const x=new Be(S);this._readableState.decoder=x,this._readableState.encoding=this._readableState.decoder.encoding;const Y=this._readableState.buffer;let J="";for(const ue of Y)J+=x.write(ue);return Y.clear(),J!==""&&Y.push(J),this._readableState.length=J.length,this};const $n=1073741824;function Gn(S){if(S>$n)throw new be("size","<= 1GiB",S);return S--,S|=S>>>1,S|=S>>>2,S|=S>>>4,S|=S>>>8,S|=S>>>16,S++,S}function $e(S,x){return S<=0||x.length===0&&x.ended?0:x.state&Le?1:l(S)?x.flowing&&x.length?x.buffer.first().length:x.length:S<=x.length?S:x.ended?x.length:0}he.prototype.read=function(S){j("read",S),S===void 0?S=NaN:o(S)||(S=u(S,10));const x=this._readableState,Y=S;if(S>x.highWaterMark&&(x.highWaterMark=Gn(S)),S!==0&&(x.state&=~yt),S===0&&x.needReadable&&((x.highWaterMark!==0?x.length>=x.highWaterMark:x.length>0)||x.ended))return j("read: emitReadable",x.length,x.ended),x.length===0&&x.ended?co(this):de(this),null;if(S=$e(S,x),S===0&&x.ended)return x.length===0&&co(this),null;let J=(x.state&Qe)!==0;if(j("need readable",J),(x.length===0||x.length-S0?ue=Al(S,x):ue=null,ue===null?(x.needReadable=x.length<=x.highWaterMark,S=0):(x.length-=S,x.multiAwaitDrain?x.awaitDrainWriters.clear():x.awaitDrainWriters=null),x.length===0&&(x.ended||(x.needReadable=!0),Y!==S&&x.ended&&co(this)),ue!==null&&!x.errorEmitted&&!x.closeEmitted&&(x.dataEmitted=!0,this.emit("data",ue)),ue};function ce(S,x){if(j("onEofChunk"),!x.ended){if(x.decoder){const Y=x.decoder.end();Y&&Y.length&&(x.buffer.push(Y),x.length+=x.objectMode?1:Y.length)}x.ended=!0,x.sync?de(S):(x.needReadable=!1,x.emittedReadable=!0,et(S))}}function de(S){const x=S._readableState;j("emitReadable",x.needReadable,x.emittedReadable),x.needReadable=!1,x.emittedReadable||(j("emitReadable",x.flowing),x.emittedReadable=!0,n.nextTick(et,S))}function et(S){const x=S._readableState;j("emitReadable_",x.destroyed,x.length,x.ended),!x.destroyed&&!x.errored&&(x.length||x.ended)&&(S.emit("readable"),x.emittedReadable=!1),x.needReadable=!x.flowing&&!x.ended&&x.length<=x.highWaterMark,xi(S)}function pt(S,x){!x.readingMore&&x.constructed&&(x.readingMore=!0,n.nextTick(Jt,S,x))}function Jt(S,x){for(;!x.reading&&!x.ended&&(x.length1&&J.pipes.includes(S)&&(j("false write response, pause",J.awaitDrainWriters.size),J.awaitDrainWriters.add(S)),Y.pause()),Fr||(Fr=Qt(Y,S),S.on("drain",Fr))}Y.on("data",ml);function ml(jr){j("ondata");const lr=S.write(jr);j("dest.write",lr),lr===!1&&Rs()}function gs(jr){if(j("onerror",jr),wi(),S.removeListener("error",gs),S.listenerCount("error")===0){const lr=S._writableState||S._readableState;lr&&!lr.errorEmitted?Ge(S,jr):S.emit("error",jr)}}M(S,"error",gs);function as(){S.removeListener("finish",ws),wi()}S.once("close",as);function ws(){j("onfinish"),S.removeListener("close",as),wi()}S.once("finish",ws);function wi(){j("unpipe"),Y.unpipe(S)}return S.emit("pipe",Y),S.writableNeedDrain===!0?Rs():J.flowing||(j("pipe resume"),Y.resume()),S};function Qt(S,x){return function(){const J=S._readableState;J.awaitDrainWriters===x?(j("pipeOnDrain",1),J.awaitDrainWriters=null):J.multiAwaitDrain&&(j("pipeOnDrain",J.awaitDrainWriters.size),J.awaitDrainWriters.delete(x)),(!J.awaitDrainWriters||J.awaitDrainWriters.size===0)&&S.listenerCount("data")&&S.resume()}}he.prototype.unpipe=function(S){const x=this._readableState,Y={hasUnpiped:!1};if(x.pipes.length===0)return this;if(!S){const ue=x.pipes;x.pipes=[],this.pause();for(let Yt=0;Yt0,J.flowing!==!1&&this.resume()):S==="readable"&&!J.endEmitted&&!J.readableListening&&(J.readableListening=J.needReadable=!0,J.flowing=!1,J.emittedReadable=!1,j("on readable",J.length,J.reading),J.length?de(this):J.reading||n.nextTick(ao,this)),Y},he.prototype.addListener=he.prototype.on,he.prototype.removeListener=function(S,x){const Y=O.prototype.removeListener.call(this,S,x);return S==="readable"&&n.nextTick(qr,this),Y},he.prototype.off=he.prototype.removeListener,he.prototype.removeAllListeners=function(S){const x=O.prototype.removeAllListeners.apply(this,arguments);return(S==="readable"||S===void 0)&&n.nextTick(qr,this),x};function qr(S){const x=S._readableState;x.readableListening=S.listenerCount("readable")>0,x.resumeScheduled&&x[we]===!1?x.flowing=!0:S.listenerCount("data")>0?S.resume():x.readableListening||(x.flowing=null)}function ao(S){j("readable nexttick read 0"),S.read(0)}he.prototype.resume=function(){const S=this._readableState;return S.flowing||(j("resume"),S.flowing=!S.readableListening,ki(this,S)),S[we]=!1,this};function ki(S,x){x.resumeScheduled||(x.resumeScheduled=!0,n.nextTick(Ri,S,x))}function Ri(S,x){j("resume",x.reading),x.reading||S.read(0),x.resumeScheduled=!1,S.emit("resume"),xi(S),x.flowing&&!x.reading&&S.read(0)}he.prototype.pause=function(){return j("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(j("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[we]=!0,this};function xi(S){const x=S._readableState;for(j("flow",x.flowing);x.flowing&&S.read()!==null;);}he.prototype.wrap=function(S){let x=!1;S.on("data",J=>{!this.push(J)&&S.pause&&(x=!0,S.pause())}),S.on("end",()=>{this.push(null)}),S.on("error",J=>{Ge(this,J)}),S.on("close",()=>{this.destroy()}),S.on("destroy",()=>{this.destroy()}),this._read=()=>{x&&S.resume&&(x=!1,S.resume())};const Y=h(S);for(let J=1;J{ue=An?Re(ue,An):null,Y(),Y=Ue});try{for(;;){const An=S.destroyed?null:S.read();if(An!==null)yield An;else{if(ue)throw ue;if(ue===null)return;await new v(J)}}}catch(An){throw ue=Re(ue,An),ue}finally{(ue||(x==null?void 0:x.destroyOnReturn)!==!1)&&(ue===void 0||S._readableState.autoDestroy)?te.destroyer(S,null):(S.off("readable",J),Yt())}}d(he.prototype,{readable:{__proto__:null,get(){const S=this._readableState;return!!S&&S.readable!==!1&&!S.destroyed&&!S.errorEmitted&&!S.endEmitted},set(S){this._readableState&&(this._readableState.readable=!!S)}},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(S){this._readableState&&(this._readableState.flowing=S)}},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(S){this._readableState&&(this._readableState.destroyed=S)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),d(_t.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[we]!==!1},set(S){this[we]=!!S}}}),he._fromList=Al;function Al(S,x){if(x.length===0)return null;let Y;return x.objectMode?Y=x.buffer.shift():!S||S>=x.length?(x.decoder?Y=x.buffer.join(""):x.buffer.length===1?Y=x.buffer.first():Y=x.buffer.concat(x.length),x.buffer.clear()):Y=x.buffer.consume(S,x.decoder),Y}function co(S){const x=S._readableState;j("endReadable",x.endEmitted),x.endEmitted||(x.ended=!0,n.nextTick(Zc,x,S))}function Zc(S,x){if(j("endReadableNT",S.endEmitted,S.length),!S.errored&&!S.closeEmitted&&!S.endEmitted&&S.length===0){if(S.endEmitted=!0,x.emit("end"),x.writable&&x.allowHalfOpen===!1)n.nextTick(bu,x);else if(S.autoDestroy){const Y=x._writableState;(!Y||Y.autoDestroy&&(Y.finished||Y.writable===!1))&&x.destroy()}}}function bu(S){S.writable&&!S.writableEnded&&!S.destroyed&&S.end()}he.from=function(S,x){return He(he,S,x)};let So;function ql(){return So===void 0&&(So={}),So}return he.fromWeb=function(S,x){return ql().newStreamReadableFromReadableStream(S,x)},he.toWeb=function(S,x){return ql().newReadableStreamFromStreamReadable(S,x)},he.wrap=function(S,x){var Y,J;return new he({objectMode:(Y=(J=S.readableObjectMode)!==null&&J!==void 0?J:S.objectMode)!==null&&Y!==void 0?Y:!0,...x,destroy(ue,Yt){te.destroyer(S,ue),Yt(ue)}}).wrap(S)},O7e}var N7e,BFt;function sHe(){if(BFt)return N7e;BFt=1;const n=ui,{ArrayPrototypeSlice:r,Error:o,FunctionPrototypeSymbolHasInstance:l,ObjectDefineProperty:u,ObjectDefineProperties:d,ObjectSetPrototypeOf:h,StringPrototypeToLowerCase:w,Symbol:v,SymbolHasInstance:y}=Df;N7e=ye,ye.WritableState=F;const{EventEmitter:E}=Ns,A=iHe.Stream,{Buffer:C}=Kr,R=ij,{addAbortSignal:O}=_pe,{getHighWaterMark:M,getDefaultHighWaterMark:L}=Spe,{ERR_INVALID_ARG_TYPE:H,ERR_METHOD_NOT_IMPLEMENTED:G,ERR_MULTIPLE_CALLBACK:j,ERR_STREAM_CANNOT_PIPE:Q,ERR_STREAM_DESTROYED:te,ERR_STREAM_ALREADY_FINISHED:pe,ERR_STREAM_NULL_VALUES:De,ERR_STREAM_WRITE_AFTER_END:Re,ERR_UNKNOWN_ENCODING:le}=A0.codes,{errorOrDestroy:xe}=R;h(ye.prototype,A.prototype),h(ye,A);function be(){}const ae=v("kOnFinished");function F(T,$,B){typeof B!="boolean"&&(B=$ instanceof qR()),this.objectMode=!!(T&&T.objectMode),B&&(this.objectMode=this.objectMode||!!(T&&T.writableObjectMode)),this.highWaterMark=T?M(this,T,"writableHighWaterMark",B):L(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const K=!!(T&&T.decodeStrings===!1);this.decodeStrings=!K,this.defaultEncoding=T&&T.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=Ge.bind(void 0,$),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,me(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[ae]=[]}function me(T){T.buffered=[],T.bufferedIndex=0,T.allBuffers=!0,T.allNoop=!0}F.prototype.getBuffer=function(){return r(this.buffered,this.bufferedIndex)},u(F.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function ye(T){const $=this instanceof qR();if(!$&&!l(ye,this))return new ye(T);this._writableState=new F(T,this,$),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&&O(T.signal,this)),A.call(this,T),R.construct(this,()=>{const B=this._writableState;B.writing||Te(this,B),yt(this,B)})}u(ye,y,{__proto__:null,value:function(T){return l(this,T)?!0:this!==ye?!1:T&&T._writableState instanceof F}}),ye.prototype.pipe=function(){xe(this,new Q)};function we(T,$,B,K){const q=T._writableState;if(typeof B=="function")K=B,B=q.defaultEncoding;else{if(!B)B=q.defaultEncoding;else if(B!=="buffer"&&!C.isEncoding(B))throw new le(B);typeof K!="function"&&(K=be)}if($===null)throw new De;if(!q.objectMode)if(typeof $=="string")q.decodeStrings!==!1&&($=C.from($,B),B="buffer");else if($ instanceof C)B="buffer";else if(A._isUint8Array($))$=A._uint8ArrayToBuffer($),B="buffer";else throw new H("chunk",["string","Buffer","Uint8Array"],$);let ke;return q.ending?ke=new Re:q.destroyed&&(ke=new te("write")),ke?(n.nextTick(K,ke),xe(T,ke,!0),ke):(q.pendingcb++,Be(T,q,$,B,K))}ye.prototype.write=function(T,$,B){return we(this,T,$,B)===!0},ye.prototype.cork=function(){this._writableState.corked++},ye.prototype.uncork=function(){const T=this._writableState;T.corked&&(T.corked--,T.writing||Te(this,T))},ye.prototype.setDefaultEncoding=function($){if(typeof $=="string"&&($=w($)),!C.isEncoding($))throw new le($);return this._writableState.defaultEncoding=$,this};function Be(T,$,B,K,q){const ke=$.objectMode?1:B.length;$.length+=ke;const Ee=$.length<$.highWaterMark;return Ee||($.needDrain=!0),$.writing||$.corked||$.errored||!$.constructed?($.buffered.push({chunk:B,encoding:K,callback:q}),$.allBuffers&&K!=="buffer"&&($.allBuffers=!1),$.allNoop&&q!==be&&($.allNoop=!1)):($.writelen=ke,$.writecb=q,$.writing=!0,$.sync=!0,T._write(B,K,$.onwrite),$.sync=!1),Ee&&!$.errored&&!$.destroyed}function He(T,$,B,K,q,ke,Ee){$.writelen=K,$.writecb=Ee,$.writing=!0,$.sync=!0,$.destroyed?$.onwrite(new te("write")):B?T._writev(q,$.onwrite):T._write(q,ke,$.onwrite),$.sync=!1}function Ue(T,$,B,K){--$.pendingcb,K(B),re($),xe(T,B)}function Ge(T,$){const B=T._writableState,K=B.sync,q=B.writecb;if(typeof q!="function"){xe(T,new j);return}B.writing=!1,B.writecb=null,B.length-=B.writelen,B.writelen=0,$?($.stack,B.errored||(B.errored=$),T._readableState&&!T._readableState.errored&&(T._readableState.errored=$),K?n.nextTick(Ue,T,B,$,q):Ue(T,B,$,q)):(B.buffered.length>B.bufferedIndex&&Te(T,B),K?B.afterWriteTickInfo!==null&&B.afterWriteTickInfo.cb===q?B.afterWriteTickInfo.count++:(B.afterWriteTickInfo={count:1,cb:q,stream:T,state:B},n.nextTick(Le,B.afterWriteTickInfo)):ft(T,B,1,q))}function Le({stream:T,state:$,count:B,cb:K}){return $.afterWriteTickInfo=null,ft(T,$,B,K)}function ft(T,$,B,K){for(!$.ending&&!T.destroyed&&$.length===0&&$.needDrain&&($.needDrain=!1,T.emit("drain"));B-- >0;)$.pendingcb--,K();$.destroyed&&re($),yt(T,$)}function re(T){if(T.writing)return;for(let q=T.bufferedIndex;q1&&T._writev){$.pendingcb-=ke-1;const Ie=$.allNoop?be:he=>{for(let Xt=Ee;Xt256?(B.splice(0,Ee),$.bufferedIndex=0):$.bufferedIndex=Ee}$.bufferProcessing=!1}ye.prototype._write=function(T,$,B){if(this._writev)this._writev([{chunk:T,encoding:$}],B);else throw new G("_write()")},ye.prototype._writev=null,ye.prototype.end=function(T,$,B){const K=this._writableState;typeof T=="function"?(B=T,T=null,$=null):typeof $=="function"&&(B=$,$=null);let q;if(T!=null){const ke=we(this,T,$);ke instanceof o&&(q=ke)}return K.corked&&(K.corked=1,this.uncork()),q||(!K.errored&&!K.ending?(K.ending=!0,yt(this,K,!0),K.ended=!0):K.finished?q=new pe("end"):K.destroyed&&(q=new te("end"))),typeof B=="function"&&(q||K.finished?n.nextTick(B,q):K[ae].push(B)),this};function dt(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 at(T,$){let B=!1;function K(q){if(B){xe(T,q??j());return}if(B=!0,$.pendingcb--,q){const ke=$[ae].splice(0);for(let Ee=0;Ee{dt(q)?Lt(K,q):q.pendingcb--},T,$)):dt($)&&($.pendingcb++,Lt(T,$))))}function Lt(T,$){$.pendingcb--,$.finished=!0;const B=$[ae].splice(0);for(let K=0;K{if(re!=null)throw new O("nully","body",re)},re=>{M(Le,re)});return Le=new le({objectMode:!0,readable:!1,write:Be,final(re){He(async()=>{try{await ft,n.nextTick(re,null)}catch(Te){n.nextTick(re,Te)}})},destroy:Ue})}throw new O("Iterable, AsyncIterable or AsyncFunction",me,we)}if(pe(F))return ae(F.arrayBuffer());if(u(F))return Q(le,F,{objectMode:!0,writable:!1});if(y(F==null?void 0:F.readable)&&E(F==null?void 0:F.writable))return le.fromWeb(F);if(typeof(F==null?void 0:F.writable)=="object"||typeof(F==null?void 0:F.readable)=="object"){const we=F!=null&&F.readable?h(F==null?void 0:F.readable)?F==null?void 0:F.readable:ae(F.readable):void 0,Be=F!=null&&F.writable?w(F==null?void 0:F.writable)?F==null?void 0:F.writable:ae(F.writable):void 0;return be({readable:we,writable:Be})}const ye=F==null?void 0:F.then;if(typeof ye=="function"){let we;return Re(ye,F,Be=>{Be!=null&&we.push(Be),we.push(null)},Be=>{M(we,Be)}),we=new le({objectMode:!0,writable:!1,read(){}})}throw new R(me,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],F)};function xe(ae){let{promise:F,resolve:me}=j();const ye=new De,we=ye.signal;return{value:ae(async function*(){for(;;){const He=F;F=null;const{chunk:Ue,done:Ge,cb:Le}=await He;if(n.nextTick(Le),Ge)return;if(we.aborted)throw new C(void 0,{cause:we.reason});({promise:F,resolve:me}=j()),yield Ue}}(),{signal:we}),write(He,Ue,Ge){const Le=me;me=null,Le({chunk:He,done:!1,cb:Ge})},final(He){const Ue=me;me=null,Ue({done:!0,cb:He})},destroy(He,Ue){ye.abort(),Ue(He)}}}function be(ae){const F=ae.readable&&typeof ae.readable.read!="function"?H.wrap(ae.readable):ae.readable,me=ae.writable;let ye=!!o(F),we=!!l(me),Be,He,Ue,Ge,Le;function ft(re){const Te=Ge;Ge=null,Te?Te(re):re&&Le.destroy(re)}return Le=new le({readableObjectMode:!!(F!=null&&F.readableObjectMode),writableObjectMode:!!(me!=null&&me.writableObjectMode),readable:ye,writable:we}),we&&(A(me,re=>{we=!1,re&&M(F,re),ft(re)}),Le._write=function(re,Te,dt){me.write(re,Te)?dt():Be=dt},Le._final=function(re){me.end(),He=re},me.on("drain",function(){if(Be){const re=Be;Be=null,re()}}),me.on("finish",function(){if(He){const re=He;He=null,re()}})),ye&&(A(F,re=>{ye=!1,re&&M(F,re),ft(re)}),F.on("readable",function(){if(Ue){const re=Ue;Ue=null,re()}}),F.on("end",function(){Le.push(null)}),Le._read=function(){for(;;){const re=F.read();if(re===null){Ue=Le._read;return}if(!Le.push(re))return}}),Le._destroy=function(re,Te){!re&&Ge!==null&&(re=new C),Ue=null,Be=null,He=null,Ge===null?Te(re):(Ge=Te,M(me,re),M(F,re))},Le}return M7e}var D7e,HFt;function qR(){if(HFt)return D7e;HFt=1;const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:o,ObjectSetPrototypeOf:l}=Df;D7e=h;const u=Epe(),d=sHe();l(h.prototype,u.prototype),l(h,u);{const E=o(d.prototype);for(let A=0;A{if(r){n?n(r):this.destroy(r);return}o!=null&&this.push(o),this.push(null),n&&n()}):(this.push(null),n&&n())}function UJn(){this._final!==nje&&nje.call(this)}XR.prototype._final=nje;XR.prototype._transform=function(n,r,o){throw new WJn("_transform()")};XR.prototype._write=function(n,r,o){const l=this._readableState,u=this._writableState,d=l.length;this._transform(n,r,(h,w)=>{if(h){o(h);return}w!=null&&this.push(w),u.ended||d===l.length||l.length{l=!0});const u=Mde(n,{readable:r,writable:o},d=>{l=!d});return{destroy:d=>{l||(l=!0,XJn.destroyer(n,d||new QJn("pipe")))},cleanup:u}}function sYn(n){return tYn(n[n.length-1],"streams[stream.length - 1]"),n.pop()}function U7e(n){if(S8(n))return n;if(Mfe(n))return lYn(n);throw new rje("val",["Readable","Iterable","AsyncIterable"],n)}async function*lYn(n){W7e||(W7e=Epe()),yield*W7e.prototype[zJn].call(n)}async function tue(n,r,o,{end:l}){let u,d=null;const h=y=>{if(y&&(u=y),d){const E=d;d=null,E()}},w=()=>new VJn((y,E)=>{u?E(u):d=()=>{u?E(u):y()}});r.on("drain",h);const v=Mde(r,{readable:!1},h);try{r.writableNeedDrain&&await w();for await(const y of n)r.write(y)||await w();l&&(r.end(),await w()),o()}catch(y){o(u!==y?JJn(u,y):y)}finally{v(),r.off("drain",h)}}async function G7e(n,r,o,{end:l}){wD(r)&&(r=r.writable);const u=r.getWriter();try{for await(const d of n)await u.ready,u.write(d).catch(()=>{});await u.ready,l&&await u.close(),o()}catch(d){try{await u.abort(d),o(d)}catch(h){o(h)}}}function aYn(...n){return cen(n,qJn(sYn(n)))}function cen(n,r,o){if(n.length===1&&GJn(n[0])&&(n=n[0]),n.length<2)throw new YJn("streams");const l=new oYn,u=l.signal,d=o==null?void 0:o.signal,h=[];nYn(d,"options.signal");function w(){O(new eYn)}H7e=H7e||s1.addAbortListener;let v;d&&(v=H7e(d,w));let y,E;const A=[];let C=0;function R(G){O(G,--C===0)}function O(G,j){var Q;if(G&&(!y||y.code==="ERR_STREAM_PREMATURE_CLOSE")&&(y=G),!(!y&&!j)){for(;A.length;)A.shift()(y);(Q=v)===null||Q===void 0||Q[KJn](),l.abort(),j&&(y||h.forEach(te=>te()),SK.nextTick(r,y,E))}}let M;for(let G=0;G0,pe=Q||(o==null?void 0:o.end)!==!1,De=G===n.length-1;if(GFt(j)){let Re=function(le){le&&le.name!=="AbortError"&&le.code!=="ERR_STREAM_PREMATURE_CLOSE"&&R(le)};if(pe){const{destroy:le,cleanup:xe}=VFt(j,Q,te);A.push(le),j7e(j)&&De&&h.push(xe)}j.on("error",Re),j7e(j)&&De&&h.push(()=>{j.removeListener("error",Re)})}if(G===0)if(typeof j=="function"){if(M=j({signal:u}),!S8(M))throw new L7e("Iterable, AsyncIterable or Stream","source",M)}else S8(j)||Mfe(j)||wD(j)?M=j:M=UFt.from(j);else if(typeof j=="function"){if(wD(M)){var L;M=U7e((L=M)===null||L===void 0?void 0:L.readable)}else M=U7e(M);if(M=j(M,{signal:u}),Q){if(!S8(M,!0))throw new L7e("AsyncIterable",`transform[${G-1}]`,M)}else{var H;B7e||(B7e=aen);const Re=new B7e({objectMode:!0}),le=(H=M)===null||H===void 0?void 0:H.then;if(typeof le=="function")C++,le.call(M,ae=>{E=ae,ae!=null&&Re.write(ae),pe&&Re.end(),SK.nextTick(R)},ae=>{Re.destroy(ae),SK.nextTick(R,ae)});else if(S8(M,!0))C++,tue(M,Re,R,{end:pe});else if(F7e(M)||wD(M)){const ae=M.readable||M;C++,tue(ae,Re,R,{end:pe})}else throw new L7e("AsyncIterable or Promise","destination",M);M=Re;const{destroy:xe,cleanup:be}=VFt(M,!1,!0);A.push(xe),De&&h.push(be)}}else if(GFt(j)){if(Mfe(M)){C+=2;const Re=cYn(M,j,R,{end:pe});j7e(j)&&De&&h.push(Re)}else if(wD(M)||F7e(M)){const Re=M.readable||M;C++,tue(Re,j,R,{end:pe})}else if(S8(M))C++,tue(M,j,R,{end:pe});else throw new rje("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else if(rYn(j)){if(Mfe(M))C++,G7e(U7e(M),j,R,{end:pe});else if(F7e(M)||S8(M))C++,G7e(M,j,R,{end:pe});else if(wD(M))C++,G7e(M.readable,j,R,{end:pe});else throw new rje("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else M=UFt.from(j)}return(u!=null&&u.aborted||d!=null&&d.aborted)&&SK.nextTick(w),M}function cYn(n,r,o,{end:l}){let u=!1;if(r.on("close",()=>{u||o(new ZJn)}),n.pipe(r,{end:!1}),l){let d=function(){u=!0,r.end()};iYn(n)?SK.nextTick(d):n.once("end",d)}else o();return Mde(n,{readable:!0,writable:!1},d=>{const h=n._readableState;d&&d.code==="ERR_STREAM_PREMATURE_CLOSE"&&h&&h.ended&&!h.errored&&!h.errorEmitted?n.once("end",o).once("error",o):o(d)}),Mde(r,{readable:!1,writable:!0},o)}var cHe={pipelineImpl:cen,pipeline:aYn};const{pipeline:uYn}=cHe,nue=qR(),{destroyer:fYn}=ij,{isNodeStream:rue,isReadable:zFt,isWritable:KFt,isWebStream:V7e,isTransformStream:t8,isWritableStream:qFt,isReadableStream:XFt}=kx,{AbortError:dYn,codes:{ERR_INVALID_ARG_VALUE:JFt,ERR_MISSING_ARGS:hYn}}=A0,pYn=MT;var uen=function(...r){if(r.length===0)throw new hYn("streams");if(r.length===1)return nue.from(r[0]);const o=[...r];if(typeof r[0]=="function"&&(r[0]=nue.from(r[0])),typeof r[r.length-1]=="function"){const R=r.length-1;r[R]=nue.from(r[R])}for(let R=0;R0&&!(KFt(r[R])||qFt(r[R])||t8(r[R])))throw new JFt(`streams[${R}]`,o[R],"must be writable")}let l,u,d,h,w;function v(R){const O=h;h=null,O?O(R):R?w.destroy(R):!C&&!A&&w.destroy()}const y=r[0],E=uYn(r,v),A=!!(KFt(y)||qFt(y)||t8(y)),C=!!(zFt(E)||XFt(E)||t8(E));if(w=new nue({writableObjectMode:!!(y!=null&&y.writableObjectMode),readableObjectMode:!!(E!=null&&E.readableObjectMode),writable:A,readable:C}),A){if(rue(y))w._write=function(O,M,L){y.write(O,M)?L():l=L},w._final=function(O){y.end(),u=O},y.on("drain",function(){if(l){const O=l;l=null,O()}});else if(V7e(y)){const M=(t8(y)?y.writable:y).getWriter();w._write=async function(L,H,G){try{await M.ready,M.write(L).catch(()=>{}),G()}catch(j){G(j)}},w._final=async function(L){try{await M.ready,M.close().catch(()=>{}),u=L}catch(H){L(H)}}}const R=t8(E)?E.readable:E;pYn(R,()=>{if(u){const O=u;u=null,O()}})}if(C){if(rue(E))E.on("readable",function(){if(d){const R=d;d=null,R()}}),E.on("end",function(){w.push(null)}),w._read=function(){for(;;){const R=E.read();if(R===null){d=w._read;return}if(!w.push(R))return}};else if(V7e(E)){const O=(t8(E)?E.readable:E).getReader();w._read=async function(){for(;;)try{const{value:M,done:L}=await O.read();if(!w.push(M))return;if(L){w.push(null);return}}catch{return}}}}return w._destroy=function(R,O){!R&&h!==null&&(R=new dYn),d=null,l=null,u=null,h===null?O(R):(h=O,rue(E)&&fYn(E,R))},w};const bYn=globalThis.AbortController||$o().AbortController,{codes:{ERR_INVALID_ARG_VALUE:gYn,ERR_INVALID_ARG_TYPE:iJ,ERR_MISSING_ARGS:wYn,ERR_OUT_OF_RANGE:mYn},AbortError:ek}=A0,{validateAbortSignal:HP,validateInteger:YFt,validateObject:UP}=nJ,yYn=Df.Symbol("kWeak"),vYn=Df.Symbol("kResistStopPropagation"),{finished:_Yn}=MT,SYn=uen,{addAbortSignalNoValidate:EYn}=_pe,{isWritable:kYn,isNodeStream:RYn}=kx,{deprecate:xYn}=s1,{ArrayPrototypePush:CYn,Boolean:AYn,MathFloor:QFt,Number:TYn,NumberIsNaN:$Yn,Promise:ZFt,PromiseReject:eBt,PromiseResolve:IYn,PromisePrototypeThen:tBt,Symbol:fen}=Df,Dde=fen("kEmpty"),nBt=fen("kEof");function PYn(n,r){if(r!=null&&UP(r,"options"),(r==null?void 0:r.signal)!=null&&HP(r.signal,"options.signal"),RYn(n)&&!kYn(n))throw new gYn("stream",n,"must be writable");const o=SYn(this,n);return r!=null&&r.signal&&EYn(r.signal,o),o}function kpe(n,r){if(typeof n!="function")throw new iJ("fn",["Function","AsyncFunction"],n);r!=null&&UP(r,"options"),(r==null?void 0:r.signal)!=null&&HP(r.signal,"options.signal");let o=1;(r==null?void 0:r.concurrency)!=null&&(o=QFt(r.concurrency));let l=o-1;return(r==null?void 0:r.highWaterMark)!=null&&(l=QFt(r.highWaterMark)),YFt(o,"options.concurrency",1),YFt(l,"options.highWaterMark",0),l+=o,(async function*(){const d=s1.AbortSignalAny([r==null?void 0:r.signal].filter(AYn)),h=this,w=[],v={signal:d};let y,E,A=!1,C=0;function R(){A=!0,O()}function O(){C-=1,M()}function M(){E&&!A&&C=l||C>=o)&&await new ZFt(G=>{E=G})}w.push(nBt)}catch(H){const G=eBt(H);tBt(G,O,R),w.push(G)}finally{A=!0,y&&(y(),y=null)}}L();try{for(;;){for(;w.length>0;){const H=await w[0];if(H===nBt)return;if(d.aborted)throw new ek;H!==Dde&&(yield H),w.shift(),M()}await new ZFt(H=>{y=H})}}finally{A=!0,E&&(E(),E=null)}}).call(this)}function OYn(n=void 0){return n!=null&&UP(n,"options"),(n==null?void 0:n.signal)!=null&&HP(n.signal,"options.signal"),(async function*(){let o=0;for await(const u of this){var l;if(n!=null&&(l=n.signal)!==null&&l!==void 0&&l.aborted)throw new ek({cause:n.signal.reason});yield[o++,u]}}).call(this)}async function den(n,r=void 0){for await(const o of uHe.call(this,n,r))return!0;return!1}async function NYn(n,r=void 0){if(typeof n!="function")throw new iJ("fn",["Function","AsyncFunction"],n);return!await den.call(this,async(...o)=>!await n(...o),r)}async function MYn(n,r){for await(const o of uHe.call(this,n,r))return o}async function DYn(n,r){if(typeof n!="function")throw new iJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u),Dde}for await(const l of kpe.call(this,o,r));}function uHe(n,r){if(typeof n!="function")throw new iJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u)?l:Dde}return kpe.call(this,o,r)}let LYn=class extends wYn{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function jYn(n,r,o){var l;if(typeof n!="function")throw new iJ("reducer",["Function","AsyncFunction"],n);o!=null&&UP(o,"options"),(o==null?void 0:o.signal)!=null&&HP(o.signal,"options.signal");let u=arguments.length>1;if(o!=null&&(l=o.signal)!==null&&l!==void 0&&l.aborted){const y=new ek(void 0,{cause:o.signal.reason});throw this.once("error",()=>{}),await _Yn(this.destroy(y)),y}const d=new bYn,h=d.signal;if(o!=null&&o.signal){const y={once:!0,[yYn]:this,[vYn]:!0};o.signal.addEventListener("abort",()=>d.abort(),y)}let w=!1;try{for await(const y of this){var v;if(w=!0,o!=null&&(v=o.signal)!==null&&v!==void 0&&v.aborted)throw new ek;u?r=await n(r,y,{signal:h}):(r=y,u=!0)}if(!w&&!u)throw new LYn}finally{d.abort()}return r}async function FYn(n){n!=null&&UP(n,"options"),(n==null?void 0:n.signal)!=null&&HP(n.signal,"options.signal");const r=[];for await(const l of this){var o;if(n!=null&&(o=n.signal)!==null&&o!==void 0&&o.aborted)throw new ek(void 0,{cause:n.signal.reason});CYn(r,l)}return r}function BYn(n,r){const o=kpe.call(this,n,r);return(async function*(){for await(const u of o)yield*u}).call(this)}function hen(n){if(n=TYn(n),$Yn(n))return 0;if(n<0)throw new mYn("number",">= 0",n);return n}function WYn(n,r=void 0){return r!=null&&UP(r,"options"),(r==null?void 0:r.signal)!=null&&HP(r.signal,"options.signal"),n=hen(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new ek;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new ek;n--<=0&&(yield d)}}).call(this)}function HYn(n,r=void 0){return r!=null&&UP(r,"options"),(r==null?void 0:r.signal)!=null&&HP(r.signal,"options.signal"),n=hen(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new ek;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new ek;if(n-- >0&&(yield d),n<=0)return}}).call(this)}ZWe.streamReturningOperators={asIndexedPairs:xYn(OYn,"readable.asIndexedPairs will be removed in a future version."),drop:WYn,filter:uHe,flatMap:BYn,map:kpe,take:HYn,compose:PYn};ZWe.promiseReturningOperators={every:NYn,forEach:DYn,reduce:jYn,toArray:FYn,some:den,find:MYn};var z7e,rBt;function pen(){if(rBt)return z7e;rBt=1;const{ArrayPrototypePop:n,Promise:r}=Df,{isIterable:o,isNodeStream:l,isWebStream:u}=kx,{pipelineImpl:d}=cHe,{finished:h}=MT;ben();function w(...v){return new r((y,E)=>{let A,C;const R=v[v.length-1];if(R&&typeof R=="object"&&!l(R)&&!o(R)&&!u(R)){const O=n(v);A=O.signal,C=O.end}d(v,(O,M)=>{O?E(O):y(M)},{signal:A,end:C})})}return z7e={finished:h,pipeline:w},z7e}var iBt;function ben(){if(iBt)return C7e.exports;iBt=1;const{Buffer:n}=Kr,{ObjectDefineProperty:r,ObjectKeys:o,ReflectApply:l}=Df,{promisify:{custom:u}}=s1,{streamReturningOperators:d,promiseReturningOperators:h}=ZWe,{codes:{ERR_ILLEGAL_CONSTRUCTOR:w}}=A0,v=uen,{setDefaultHighWaterMark:y,getDefaultHighWaterMark:E}=Spe,{pipeline:A}=cHe,{destroyer:C}=ij,R=MT,O=pen(),M=kx,L=C7e.exports=iHe.Stream;L.isDestroyed=M.isDestroyed,L.isDisturbed=M.isDisturbed,L.isErrored=M.isErrored,L.isReadable=M.isReadable,L.isWritable=M.isWritable,L.Readable=Epe();for(const G of o(d)){let Q=function(...te){if(new.target)throw w();return L.Readable.from(l(j,this,te))};const j=d[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}for(const G of o(h)){let Q=function(...te){if(new.target)throw w();return l(j,this,te)};const j=h[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}L.Writable=sHe(),L.Duplex=qR(),L.Transform=sen,L.PassThrough=aen,L.pipeline=A;const{addAbortSignal:H}=_pe;return L.addAbortSignal=H,L.finished=R,L.destroy=C,L.compose=v,L.setDefaultHighWaterMark=y,L.getDefaultHighWaterMark=E,r(L,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return O}}),r(A,u,{__proto__:null,enumerable:!0,get(){return O.pipeline}}),r(R,u,{__proto__:null,enumerable:!0,get(){return O.finished}}),L.Stream=L,L._isUint8Array=function(j){return j instanceof Uint8Array},L._uint8ArrayToBuffer=function(j){return n.from(j.buffer,j.byteOffset,j.byteLength)},C7e.exports}(function(n){const r=ben(),o=pen(),l=r.Readable.destroy;n.exports=r.Readable,n.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer,n.exports._isUint8Array=r._isUint8Array,n.exports.isDisturbed=r.isDisturbed,n.exports.isErrored=r.isErrored,n.exports.isReadable=r.isReadable,n.exports.Readable=r.Readable,n.exports.Writable=r.Writable,n.exports.Duplex=r.Duplex,n.exports.Transform=r.Transform,n.exports.PassThrough=r.PassThrough,n.exports.addAbortSignal=r.addAbortSignal,n.exports.finished=r.finished,n.exports.destroy=r.destroy,n.exports.destroy=l,n.exports.pipeline=r.pipeline,n.exports.compose=r.compose,Object.defineProperty(r,"promises",{configurable:!0,enumerable:!0,get(){return o}}),n.exports.Stream=r.Stream,n.exports.default=n.exports})(dZt);var UYn=dZt.exports;class GYn{constructor(r,...o){this.load=fZt(async()=>{const l=await r();return new l(...o)})}import(r,o){const l=new UYn.PassThrough({objectMode:!0});return Promise.resolve().then(async()=>{const d=(await this.load()).import(r,o);d.on("prefix",(h,w)=>{l.emit("prefix",h,w)}),d.on("error",h=>{l.emit("error",h),l.emit("end")}),d.pipe(l)}),l}}function fv(n){return class extends GYn{constructor(...r){super(n,...r)}}}const VYn=new CL,zYn=new CL,sm={parsers:VYn,serializers:zYn},KYn=fv(async()=>(await C0(async()=>{const{default:n}=await Promise.resolve().then(()=>Vgr);return{default:n}},void 0)).default),oJ=fv(async()=>(await C0(async()=>{const{default:n}=await Promise.resolve().then(()=>bmr);return{default:n}},void 0)).default),qYn=fv(async()=>(await C0(async()=>{const{default:n}=await import("./CustomRdfXmlParser-D5friA1M.js");return{default:n}},[])).default),Rpe=fv(async()=>(await C0(async()=>{const{default:n}=await Promise.resolve().then(()=>R_r);return{default:n}},void 0)).default),XYn=fv(async()=>(await C0(async()=>{const{default:n}=await import("./CustomJsonLdSerializer-D8N1qWIh.js");return{default:n}},[])).default);sm.parsers.set("application/ld+json",new KYn);sm.parsers.set("application/trig",new oJ);sm.parsers.set("application/n-quads",new oJ);sm.parsers.set("application/n-triples",new oJ);sm.parsers.set("text/n3",new oJ);sm.parsers.set("text/turtle",new oJ);sm.parsers.set("application/rdf+xml",new qYn);sm.serializers.set("application/ld+json",new XYn);sm.serializers.set("application/n-quads",new Rpe);sm.serializers.set("application/n-triples",new Rpe);sm.serializers.set("text/n3",new Rpe);sm.serializers.set("text/turtle",new Rpe);var ije={exports:{}},gen=Ns.EventEmitter;const JYn={},YYn=Object.freeze(Object.defineProperty({__proto__:null,default:JYn},Symbol.toStringTag,{value:"Module"})),xpe=oqn(YYn);var K7e,oBt;function QYn(){if(oBt)return K7e;oBt=1;function n(O,M){var L=Object.keys(O);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(O);M&&(H=H.filter(function(G){return Object.getOwnPropertyDescriptor(O,G).enumerable})),L.push.apply(L,H)}return L}function r(O){for(var M=1;M0?this.tail.next=H:this.head=H,this.tail=H,++this.length}},{key:"unshift",value:function(L){var H={data:L,next:this.head};this.length===0&&(this.tail=H),this.head=H,++this.length}},{key:"shift",value:function(){if(this.length!==0){var L=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,L}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(L){if(this.length===0)return"";for(var H=this.head,G=""+H.data;H=H.next;)G+=L+H.data;return G}},{key:"concat",value:function(L){if(this.length===0)return y.alloc(0);for(var H=y.allocUnsafe(L>>>0),G=this.head,j=0;G;)R(G.data,H,j),j+=G.data.length,G=G.next;return H}},{key:"consume",value:function(L,H){var G;return LQ.length?Q.length:L;if(te===Q.length?j+=Q:j+=Q.slice(0,L),L-=te,L===0){te===Q.length?(++G,H.next?this.head=H.next:this.head=this.tail=null):(this.head=H,H.data=Q.slice(te));break}++G}return this.length-=G,j}},{key:"_getBuffer",value:function(L){var H=y.allocUnsafe(L),G=this.head,j=1;for(G.data.copy(H),L-=G.data.length;G=G.next;){var Q=G.data,te=L>Q.length?Q.length:L;if(Q.copy(H,H.length-L,0,te),L-=te,L===0){te===Q.length?(++j,G.next?this.head=G.next:this.head=this.tail=null):(this.head=G,G.data=Q.slice(te));break}++j}return this.length-=j,H}},{key:C,value:function(L,H){return A(this,r(r({},H),{},{depth:0,customInspect:!1}))}}]),O}(),K7e}function ZYn(n,r){var o=this,l=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return l||u?(r?r(n):n&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Wl.nextTick(oje,this,n)):Wl.nextTick(oje,this,n)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(n||null,function(d){!r&&d?o._writableState?o._writableState.errorEmitted?Wl.nextTick(Dfe,o):(o._writableState.errorEmitted=!0,Wl.nextTick(sBt,o,d)):Wl.nextTick(sBt,o,d):r?(Wl.nextTick(Dfe,o),r(d)):Wl.nextTick(Dfe,o)}),this)}function sBt(n,r){oje(n,r),Dfe(n)}function Dfe(n){n._writableState&&!n._writableState.emitClose||n._readableState&&!n._readableState.emitClose||n.emit("close")}function eQn(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function oje(n,r){n.emit("error",r)}function tQn(n,r){var o=n._readableState,l=n._writableState;o&&o.autoDestroy||l&&l.autoDestroy?n.destroy(r):n.emit("error",r)}var wen={destroy:ZYn,undestroy:eQn,errorOrDestroy:tQn},GP={};function nQn(n,r){n.prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r}var men={};function dv(n,r,o){o||(o=Error);function l(d,h,w){return typeof r=="string"?r:r(d,h,w)}var u=function(d){nQn(h,d);function h(w,v,y){return d.call(this,l(w,v,y))||this}return h}(o);u.prototype.name=o.name,u.prototype.code=n,men[n]=u}function lBt(n,r){if(Array.isArray(n)){var o=n.length;return n=n.map(function(l){return String(l)}),o>2?"one of ".concat(r," ").concat(n.slice(0,o-1).join(", "),", or ")+n[o-1]:o===2?"one of ".concat(r," ").concat(n[0]," or ").concat(n[1]):"of ".concat(r," ").concat(n[0])}else return"of ".concat(r," ").concat(String(n))}function rQn(n,r,o){return n.substr(0,r.length)===r}function iQn(n,r,o){return(o===void 0||o>n.length)&&(o=n.length),n.substring(o-r.length,o)===r}function oQn(n,r,o){return typeof o!="number"&&(o=0),o+r.length>n.length?!1:n.indexOf(r,o)!==-1}dv("ERR_INVALID_OPT_VALUE",function(n,r){return'The value "'+r+'" is invalid for option "'+n+'"'},TypeError);dv("ERR_INVALID_ARG_TYPE",function(n,r,o){var l;typeof r=="string"&&rQn(r,"not ")?(l="must not be",r=r.replace(/^not /,"")):l="must be";var u;if(iQn(n," argument"))u="The ".concat(n," ").concat(l," ").concat(lBt(r,"type"));else{var d=oQn(n,".")?"property":"argument";u='The "'.concat(n,'" ').concat(d," ").concat(l," ").concat(lBt(r,"type"))}return u+=". Received type ".concat(typeof o),u},TypeError);dv("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");dv("ERR_METHOD_NOT_IMPLEMENTED",function(n){return"The "+n+" method is not implemented"});dv("ERR_STREAM_PREMATURE_CLOSE","Premature close");dv("ERR_STREAM_DESTROYED",function(n){return"Cannot call "+n+" after a stream was destroyed"});dv("ERR_MULTIPLE_CALLBACK","Callback called multiple times");dv("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");dv("ERR_STREAM_WRITE_AFTER_END","write after end");dv("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);dv("ERR_UNKNOWN_ENCODING",function(n){return"Unknown encoding: "+n},TypeError);dv("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");GP.codes=men;var sQn=GP.codes.ERR_INVALID_OPT_VALUE;function lQn(n,r,o){return n.highWaterMark!=null?n.highWaterMark:r?n[o]:null}function aQn(n,r,o,l){var u=lQn(r,l,o);if(u!=null){if(!(isFinite(u)&&Math.floor(u)===u)||u<0){var d=l?o:"highWaterMark";throw new sQn(d,u)}return Math.floor(u)}return n.objectMode?16:16*1024}var yen={getHighWaterMark:aQn},sje={exports:{}};typeof Object.create=="function"?sje.exports=function(r,o){o&&(r.super_=o,r.prototype=Object.create(o.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:sje.exports=function(r,o){if(o){r.super_=o;var l=function(){};l.prototype=o.prototype,r.prototype=new l,r.prototype.constructor=r}};var oj=sje.exports,cQn=uQn;function uQn(n,r){if(q7e("noDeprecation"))return n;var o=!1;function l(){if(!o){if(q7e("throwDeprecation"))throw new Error(r);q7e("traceDeprecation")?console.trace(r):console.warn(r),o=!0}return n.apply(this,arguments)}return l}function q7e(n){try{if(!window.localStorage)return!1}catch{return!1}var r=window.localStorage[n];return r==null?!1:String(r).toLowerCase()==="true"}var X7e,aBt;function ven(){if(aBt)return X7e;aBt=1,X7e=Re;function n(at){var Qe=this;this.next=null,this.entry=null,this.finish=function(){dt(Qe,at)}}var r;Re.WritableState=pe;var o={deprecate:cQn},l=gen,u=Kr.Buffer,d=(typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function h(at){return u.from(at)}function w(at){return u.isBuffer(at)||at instanceof d}var v=wen,y=yen,E=y.getHighWaterMark,A=GP.codes,C=A.ERR_INVALID_ARG_TYPE,R=A.ERR_METHOD_NOT_IMPLEMENTED,O=A.ERR_MULTIPLE_CALLBACK,M=A.ERR_STREAM_CANNOT_PIPE,L=A.ERR_STREAM_DESTROYED,H=A.ERR_STREAM_NULL_VALUES,G=A.ERR_STREAM_WRITE_AFTER_END,j=A.ERR_UNKNOWN_ENCODING,Q=v.errorOrDestroy;oj(Re,l);function te(){}function pe(at,Qe,yt){r=r||TL(),at=at||{},typeof yt!="boolean"&&(yt=Qe instanceof r),this.objectMode=!!at.objectMode,yt&&(this.objectMode=this.objectMode||!!at.writableObjectMode),this.highWaterMark=E(this,at,"writableHighWaterMark",yt),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Lt=at.decodeStrings===!1;this.decodeStrings=!Lt,this.defaultEncoding=at.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(nn){we(Qe,nn)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=at.emitClose!==!1,this.autoDestroy=!!at.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}pe.prototype.getBuffer=function(){for(var Qe=this.bufferedRequest,yt=[];Qe;)yt.push(Qe),Qe=Qe.next;return yt},function(){try{Object.defineProperty(pe.prototype,"buffer",{get:o.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var De;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(De=Function.prototype[Symbol.hasInstance],Object.defineProperty(Re,Symbol.hasInstance,{value:function(Qe){return De.call(this,Qe)?!0:this!==Re?!1:Qe&&Qe._writableState instanceof pe}})):De=function(Qe){return Qe instanceof this};function Re(at){r=r||TL();var Qe=this instanceof r;if(!Qe&&!De.call(Re,this))return new Re(at);this._writableState=new pe(at,this,Qe),this.writable=!0,at&&(typeof at.write=="function"&&(this._write=at.write),typeof at.writev=="function"&&(this._writev=at.writev),typeof at.destroy=="function"&&(this._destroy=at.destroy),typeof at.final=="function"&&(this._final=at.final)),l.call(this)}Re.prototype.pipe=function(){Q(this,new M)};function le(at,Qe){var yt=new G;Q(at,yt),Wl.nextTick(Qe,yt)}function xe(at,Qe,yt,Lt){var nn;return yt===null?nn=new H:typeof yt!="string"&&!Qe.objectMode&&(nn=new C("chunk",["string","Buffer"],yt)),nn?(Q(at,nn),Wl.nextTick(Lt,nn),!1):!0}Re.prototype.write=function(at,Qe,yt){var Lt=this._writableState,nn=!1,Pe=!Lt.objectMode&&w(at);return Pe&&!u.isBuffer(at)&&(at=h(at)),typeof Qe=="function"&&(yt=Qe,Qe=null),Pe?Qe="buffer":Qe||(Qe=Lt.defaultEncoding),typeof yt!="function"&&(yt=te),Lt.ending?le(this,yt):(Pe||xe(this,Lt,at,yt))&&(Lt.pendingcb++,nn=ae(this,Lt,Pe,at,Qe,yt)),nn},Re.prototype.cork=function(){this._writableState.corked++},Re.prototype.uncork=function(){var at=this._writableState;at.corked&&(at.corked--,!at.writing&&!at.corked&&!at.bufferProcessing&&at.bufferedRequest&&Ue(this,at))},Re.prototype.setDefaultEncoding=function(Qe){if(typeof Qe=="string"&&(Qe=Qe.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Qe+"").toLowerCase())>-1))throw new j(Qe);return this._writableState.defaultEncoding=Qe,this},Object.defineProperty(Re.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function be(at,Qe,yt){return!at.objectMode&&at.decodeStrings!==!1&&typeof Qe=="string"&&(Qe=u.from(Qe,yt)),Qe}Object.defineProperty(Re.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function ae(at,Qe,yt,Lt,nn,Pe){if(!yt){var Ne=be(Qe,Lt,nn);Lt!==Ne&&(yt=!0,nn="buffer",Lt=Ne)}var T=Qe.objectMode?1:Lt.length;Qe.length+=T;var $=Qe.length0)if(typeof Ne!="string"&&!K.objectMode&&Object.getPrototypeOf(Ne)!==l.prototype&&(Ne=d(Ne)),$)K.endEmitted?te(Pe,new H):be(Pe,K,Ne,!0);else if(K.ended)te(Pe,new M);else{if(K.destroyed)return!1;K.reading=!1,K.decoder&&!T?(Ne=K.decoder.write(Ne),K.objectMode||Ne.length!==0?be(Pe,K,Ne,!1):Ue(Pe,K)):be(Pe,K,Ne,!1)}else $||(K.reading=!1,Ue(Pe,K))}return!K.ended&&(K.length=F?Pe=F:(Pe--,Pe|=Pe>>>1,Pe|=Pe>>>2,Pe|=Pe>>>4,Pe|=Pe>>>8,Pe|=Pe>>>16,Pe++),Pe}function ye(Pe,Ne){return Pe<=0||Ne.length===0&&Ne.ended?0:Ne.objectMode?1:Pe!==Pe?Ne.flowing&&Ne.length?Ne.buffer.head.data.length:Ne.length:(Pe>Ne.highWaterMark&&(Ne.highWaterMark=me(Pe)),Pe<=Ne.length?Pe:Ne.ended?Ne.length:(Ne.needReadable=!0,0))}le.prototype.read=function(Pe){v("read",Pe),Pe=parseInt(Pe,10);var Ne=this._readableState,T=Pe;if(Pe!==0&&(Ne.emittedReadable=!1),Pe===0&&Ne.needReadable&&((Ne.highWaterMark!==0?Ne.length>=Ne.highWaterMark:Ne.length>0)||Ne.ended))return v("read: emitReadable",Ne.length,Ne.ended),Ne.length===0&&Ne.ended?yt(this):Be(this),null;if(Pe=ye(Pe,Ne),Pe===0&&Ne.ended)return Ne.length===0&&yt(this),null;var $=Ne.needReadable;v("need readable",$),(Ne.length===0||Ne.length-Pe0?B=Qe(Pe,Ne):B=null,B===null?(Ne.needReadable=Ne.length<=Ne.highWaterMark,Pe=0):(Ne.length-=Pe,Ne.awaitDrain=0),Ne.length===0&&(Ne.ended||(Ne.needReadable=!0),T!==Pe&&Ne.ended&&yt(this)),B!==null&&this.emit("data",B),B};function we(Pe,Ne){if(v("onEofChunk"),!Ne.ended){if(Ne.decoder){var T=Ne.decoder.end();T&&T.length&&(Ne.buffer.push(T),Ne.length+=Ne.objectMode?1:T.length)}Ne.ended=!0,Ne.sync?Be(Pe):(Ne.needReadable=!1,Ne.emittedReadable||(Ne.emittedReadable=!0,He(Pe)))}}function Be(Pe){var Ne=Pe._readableState;v("emitReadable",Ne.needReadable,Ne.emittedReadable),Ne.needReadable=!1,Ne.emittedReadable||(v("emitReadable",Ne.flowing),Ne.emittedReadable=!0,Wl.nextTick(He,Pe))}function He(Pe){var Ne=Pe._readableState;v("emitReadable_",Ne.destroyed,Ne.length,Ne.ended),!Ne.destroyed&&(Ne.length||Ne.ended)&&(Pe.emit("readable"),Ne.emittedReadable=!1),Ne.needReadable=!Ne.flowing&&!Ne.ended&&Ne.length<=Ne.highWaterMark,at(Pe)}function Ue(Pe,Ne){Ne.readingMore||(Ne.readingMore=!0,Wl.nextTick(Ge,Pe,Ne))}function Ge(Pe,Ne){for(;!Ne.reading&&!Ne.ended&&(Ne.length1&&nn($.pipes,Pe)!==-1)&&!Ie&&(v("false write response, pause",$.awaitDrain),$.awaitDrain++),T.pause())}function Xt($e){v("onerror",$e),Gn(),Pe.removeListener("error",Xt),r(Pe,"error")===0&&te(Pe,$e)}De(Pe,"error",Xt);function Zt(){Pe.removeListener("finish",$n),Gn()}Pe.once("close",Zt);function $n(){v("onfinish"),Pe.removeListener("close",Zt),Gn()}Pe.once("finish",$n);function Gn(){v("unpipe"),T.unpipe(Pe)}return Pe.emit("pipe",T),$.flowing||(v("pipe resume"),T.resume()),Pe};function Le(Pe){return function(){var T=Pe._readableState;v("pipeOnDrain",T.awaitDrain),T.awaitDrain&&T.awaitDrain--,T.awaitDrain===0&&r(Pe,"data")&&(T.flowing=!0,at(Pe))}}le.prototype.unpipe=function(Pe){var Ne=this._readableState,T={hasUnpiped:!1};if(Ne.pipesCount===0)return this;if(Ne.pipesCount===1)return Pe&&Pe!==Ne.pipes?this:(Pe||(Pe=Ne.pipes),Ne.pipes=null,Ne.pipesCount=0,Ne.flowing=!1,Pe&&Pe.emit("unpipe",this,T),this);if(!Pe){var $=Ne.pipes,B=Ne.pipesCount;Ne.pipes=null,Ne.pipesCount=0,Ne.flowing=!1;for(var K=0;K0,$.flowing!==!1&&this.resume()):Pe==="readable"&&!$.endEmitted&&!$.readableListening&&($.readableListening=$.needReadable=!0,$.flowing=!1,$.emittedReadable=!1,v("on readable",$.length,$.reading),$.length?Be(this):$.reading||Wl.nextTick(re,this)),T},le.prototype.addListener=le.prototype.on,le.prototype.removeListener=function(Pe,Ne){var T=o.prototype.removeListener.call(this,Pe,Ne);return Pe==="readable"&&Wl.nextTick(ft,this),T},le.prototype.removeAllListeners=function(Pe){var Ne=o.prototype.removeAllListeners.apply(this,arguments);return(Pe==="readable"||Pe===void 0)&&Wl.nextTick(ft,this),Ne};function ft(Pe){var Ne=Pe._readableState;Ne.readableListening=Pe.listenerCount("readable")>0,Ne.resumeScheduled&&!Ne.paused?Ne.flowing=!0:Pe.listenerCount("data")>0&&Pe.resume()}function re(Pe){v("readable nexttick read 0"),Pe.read(0)}le.prototype.resume=function(){var Pe=this._readableState;return Pe.flowing||(v("resume"),Pe.flowing=!Pe.readableListening,Te(this,Pe)),Pe.paused=!1,this};function Te(Pe,Ne){Ne.resumeScheduled||(Ne.resumeScheduled=!0,Wl.nextTick(dt,Pe,Ne))}function dt(Pe,Ne){v("resume",Ne.reading),Ne.reading||Pe.read(0),Ne.resumeScheduled=!1,Pe.emit("resume"),at(Pe),Ne.flowing&&!Ne.reading&&Pe.read(0)}le.prototype.pause=function(){return v("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(v("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function at(Pe){var Ne=Pe._readableState;for(v("flow",Ne.flowing);Ne.flowing&&Pe.read()!==null;);}le.prototype.wrap=function(Pe){var Ne=this,T=this._readableState,$=!1;Pe.on("end",function(){if(v("wrapped end"),T.decoder&&!T.ended){var q=T.decoder.end();q&&q.length&&Ne.push(q)}Ne.push(null)}),Pe.on("data",function(q){if(v("wrapped data"),T.decoder&&(q=T.decoder.write(q)),!(T.objectMode&&q==null)&&!(!T.objectMode&&(!q||!q.length))){var ke=Ne.push(q);ke||($=!0,Pe.pause())}});for(var B in Pe)this[B]===void 0&&typeof Pe[B]=="function"&&(this[B]=function(ke){return function(){return Pe[ke].apply(Pe,arguments)}}(B));for(var K=0;K=Ne.length?(Ne.decoder?T=Ne.buffer.join(""):Ne.buffer.length===1?T=Ne.buffer.first():T=Ne.buffer.concat(Ne.length),Ne.buffer.clear()):T=Ne.buffer.consume(Pe,Ne.decoder),T}function yt(Pe){var Ne=Pe._readableState;v("endReadable",Ne.endEmitted),Ne.endEmitted||(Ne.ended=!0,Wl.nextTick(Lt,Ne,Pe))}function Lt(Pe,Ne){if(v("endReadableNT",Pe.endEmitted,Pe.length),!Pe.endEmitted&&Pe.length===0&&(Pe.endEmitted=!0,Ne.readable=!1,Ne.emit("end"),Pe.autoDestroy)){var T=Ne._writableState;(!T||T.autoDestroy&&T.finished)&&Ne.destroy()}}typeof Symbol=="function"&&(le.from=function(Pe,Ne){return Q===void 0&&(Q=bQn()),Q(le,Pe,Ne)});function nn(Pe,Ne){for(var T=0,$=Pe.length;T<$;T++)if(Pe[T]===Ne)return T;return-1}return Z7e}var Een=JR,Cpe=GP.codes,gQn=Cpe.ERR_METHOD_NOT_IMPLEMENTED,wQn=Cpe.ERR_MULTIPLE_CALLBACK,mQn=Cpe.ERR_TRANSFORM_ALREADY_TRANSFORMING,yQn=Cpe.ERR_TRANSFORM_WITH_LENGTH_0,Ape=TL();oj(JR,Ape);function vQn(n,r){var o=this._transformState;o.transforming=!1;var l=o.writecb;if(l===null)return this.emit("error",new wQn);o.writechunk=null,o.writecb=null,r!=null&&this.push(r),l(n);var u=this._readableState;u.reading=!1,(u.needReadable||u.length0;return CQn(h,v,y,function(E){u||(u=E),E&&d.forEach(gBt),!v&&(d.forEach(gBt),l(u))})});return r.reduce(AQn)}var IQn=$Qn;(function(n,r){r=n.exports=Sen(),r.Stream=r,r.Readable=r,r.Writable=ven(),r.Duplex=TL(),r.Transform=Een,r.PassThrough=SQn,r.finished=fHe,r.pipeline=IQn})(ije,ije.exports);var dHe=ije.exports;const PQn=cv(dHe);class xen{init(){this.ns=_de}}const hHe=new tJ,OQn={apply:(n,r,o)=>n(o[0]),get:(n,r)=>n(r)};function Kn(n,{factory:r=hHe}={}){const o=(l="")=>r.namedNode(`${n}${l.raw||l}`);return typeof Proxy>"u"?o:new Proxy(o,OQn)}const NQn=Kn("http://www.w3.org/ns/auth/acl#"),MQn=NQn,DQn=Kn("https://www.w3.org/ns/activitystreams#"),LQn=DQn,jQn=Kn("http://purl.org/ontology/bibo/"),FQn=jQn,BQn=Kn("http://creativecommons.org/ns#"),WQn=BQn,HQn=Kn("http://www.w3.org/ns/auth/cert#"),UQn=HQn,GQn=Kn("http://www.w3.org/2011/content#"),VQn=GQn,zQn=Kn("http://qudt.org/vocab/constant/"),KQn=zQn,qQn=Kn("http://www.cidoc-crm.org/cidoc-crm/"),XQn=qQn,JQn=Kn("http://www.w3.org/ns/csvw#"),YQn=JQn,QQn=Kn("http://commontag.org/ns#"),ZQn=QQn,eZn=Kn("http://datashapes.org/sparql#"),tZn=eZn,nZn=Kn("http://datashapes.org/dash#"),rZn=nZn,iZn=Kn("http://dbpedia.org/ontology/"),oZn=iZn,sZn=Kn("http://purl.org/dc/elements/1.1/"),lZn=sZn,aZn=Kn("http://purl.org/dc/dcam/"),cZn=aZn,uZn=Kn("http://www.w3.org/ns/dcat#"),fZn=uZn,dZn=Kn("http://purl.org/dc/dcmitype/"),hZn=dZn,pZn=Kn("http://purl.org/dc/terms/"),bZn=pZn,gZn=Kn("http://www.ics.forth.gr/isl/CRMdig/"),wZn=gZn,mZn=Kn("http://qudt.org/vocab/discipline/"),yZn=mZn,vZn=Kn("http://usefulinc.com/ns/doap#"),_Zn=vZn,SZn=Kn("http://www.w3.org/ns/dpv#"),EZn=SZn,kZn=Kn("http://www.w3.org/ns/dqv#"),RZn=kZn,xZn=Kn("http://www.linkedmodel.org/schema/dtype#"),CZn=xZn,AZn=Kn("http://www.w3.org/ns/duv#"),TZn=AZn,$Zn=Kn("http://www.w3.org/ns/earl#"),IZn=$Zn,PZn=Kn("http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#"),OZn=PZn,NZn=Kn("http://www.w3.org/2003/12/exif/ns#"),MZn=NZn,DZn=Kn("http://xmlns.com/foaf/0.1/"),LZn=DZn,jZn=Kn("http://purl.org/vocab/frbr/core#"),FZn=jZn,BZn=Kn("http://www.opengis.net/ont/geosparql#"),WZn=BZn,HZn=Kn("http://www.opengis.net/def/function/geosparql/"),UZn=HZn,GZn=Kn("http://www.opengis.net/def/rule/geosparql/"),VZn=GZn,zZn=Kn("http://www.opengis.net/ont/gml#"),KZn=zZn,qZn=Kn("http://www.geonames.org/ontology#"),XZn=qZn,JZn=Kn("http://purl.org/goodrelations/v1#"),YZn=JZn,QZn=Kn("http://www.w3.org/2003/g/data-view#"),ZZn=QZn,eer=Kn("https://gs1.org/voc/"),ter=eer,ner=Kn("http://vocab.gtfs.org/terms#"),rer=ner,ier=Kn("http://www.w3.org/2011/http#"),oer=ier,ser=Kn("http://www.w3.org/ns/hydra/core#"),ler=ser,aer=Kn("http://www.w3.org/2002/12/cal/icaltzd#"),cer=aer,uer=Kn("https://linked.art/ns/terms/"),fer=uer,der=Kn("http://www.w3.org/ns/ldp#"),her=der,per=Kn("http://www.w3.org/2000/10/swap/list#"),ber=per,ger=Kn("http://www.w3.org/ns/locn#"),wer=ger,mer=Kn("http://www.w3.org/2000/10/swap/log#"),yer=mer,ver=Kn("http://lexvo.org/ontology#"),_er=ver,Ser=Kn("http://w3id.org/nfdi4ing/metadata4ing#"),Eer=Ser,ker=Kn("http://www.w3.org/ns/ma-ont#"),Rer=ker,xer=Kn("http://www.loc.gov/mads/rdf/v1#"),Cer=xer,Aer=Kn("http://www.w3.org/2000/10/swap/math#"),Ter=Aer,$er=Kn("http://www.w3.org/ns/oa#"),Ier=$er,Per=Kn("http://ogp.me/ns#"),Oer=Per,Ner=Kn("http://www.w3.org/ns/solid/oidc#"),Mer=Ner,Der=Kn("http://www.w3.org/ns/org#"),Ler=Der,jer=Kn("http://www.w3.org/2002/07/owl#"),Fer=jer,Ber=Kn("http://www.w3.org/ns/pim/space#"),Wer=Ber,Her=Kn("http://qudt.org/vocab/prefix/"),Uer=Her,Ger=Kn("http://www.w3.org/ns/prov#"),Ver=Ger,zer=Kn("http://purl.org/linked-data/cube#"),Ker=zer,qer=Kn("http://qudt.org/vocab/dimensionvector/"),Xer=qer,Jer=Kn("http://qudt.org/vocab/quantitykind/"),Yer=Jer,Qer=Kn("http://qudt.org/schema/qudt/"),Zer=Qer,etr=Kn("http://rdaregistry.info/Elements/u/"),ttr=etr,ntr=Kn("http://www.w3.org/1999/02/22-rdf-syntax-ns#"),hS=ntr,rtr=Kn("http://www.w3.org/ns/rdfa#"),itr=rtr,otr=Kn("http://www.w3.org/2000/01/rdf-schema#"),str=otr,ltr=Kn("http://purl.org/stuff/rev#"),atr=ltr,ctr=Kn("https://www.ica.org/standards/RiC/ontology#"),utr=ctr,ftr=Kn("http://www.w3.org/ns/r2rml#"),dtr=ftr,htr=Kn("http://purl.org/rss/1.0/"),ptr=htr,btr=Kn("http://schema.org/"),gtr=btr,wtr=Kn("http://www.w3.org/ns/sparql-service-description#"),mtr=wtr,ytr=Kn("http://purl.org/linked-data/sdmx#"),vtr=ytr,_tr=Kn("http://semanticweb.cs.vu.nl/2009/11/sem/"),Str=_tr,Etr=Kn("http://www.w3.org/2000/10/swap/set#"),ktr=Etr,Rtr=Kn("http://www.opengis.net/ont/sf#"),xtr=Rtr,Ctr=Kn("http://www.w3.org/ns/shacl#"),Atr=Ctr,Ttr=Kn("http://www.w3.org/ns/shex#"),$tr=Ttr,Itr=Kn("https://www.w3.org/ns/shacl-shacl#"),Ptr=Itr,Otr=Kn("http://rdfs.org/sioc/ns#"),Ntr=Otr,Mtr=Kn("http://www.w3.org/2004/02/skos/core#"),Dtr=Mtr,Ltr=Kn("http://www.w3.org/2008/05/skos-xl#"),jtr=Ltr,Ftr=Kn("http://www.w3.org/ns/solid/terms#"),Btr=Ftr,Wtr=Kn("http://www.w3.org/ns/sosa/"),Htr=Wtr,Utr=Kn("http://qudt.org/vocab/sou/"),Gtr=Utr,Vtr=Kn("http://www.w3.org/ns/ssn/"),ztr=Vtr,Ktr=Kn("http://www.w3.org/ns/posix/stat#"),qtr=Ktr,Xtr=Kn("http://www.w3.org/2000/10/swap/string#"),Jtr=Xtr,Ytr=Kn("http://www.w3.org/2006/03/test-description#"),Qtr=Ytr,Ztr=Kn("http://www.w3.org/2006/time#"),enr=Ztr,tnr=Kn("http://qudt.org/vocab/unit/"),nnr=tnr,rnr=Kn("http://www.linkedmodel.org/schema/vaem#"),inr=rnr,onr=Kn("http://purl.org/vocab/vann/"),snr=onr,lnr=Kn("http://www.w3.org/2006/vcard/ns#"),anr=lnr,cnr=Kn("http://rdfs.org/ns/void#"),unr=cnr,fnr=Kn("http://www.w3.org/2003/06/sw-vocab-status/ns#"),dnr=fnr,hnr=Kn("http://www.w3.org/2007/05/powder-s#"),pnr=hnr,bnr=Kn("http://www.w3.org/2003/01/geo/wgs84_pos#"),gnr=bnr,wnr=Kn("http://www.w3.org/1999/xhtml/vocab#"),mnr=wnr,ynr=Kn("http://rdf-vocabulary.ddialliance.org/xkos#"),vnr=ynr,_nr=Kn("http://www.w3.org/2001/XMLSchema#"),nq=_nr,Snr=Kn("http://www.w3.org/2007/rif#"),Enr=Snr,knr=Kn("http://rdf.data-vocabulary.org/#"),Rnr=knr,xnr=Kn("http://www.w3.org/2007/05/powder#"),Cnr=xnr,Anr=Kn("http://www.w3.org/XML/1998/namespace/"),Tnr=Anr;function $nr(n){return"_:"+n.value}function Inr(n,r){return[...n].map(o=>r(o)).join(` `)+` -`}function Enr(){return""}function Sen(n){return"<"+n.value+">"}const knr=/["\\\\\n\r]/,Rnr=/["\\\\\n\r]/g,xnr={'"':'\\"',"\\":"\\\\","\n":"\\n","\r":"\\r"};function Cnr(n){return xnr[n]}function Anr(n){return knr.test(n)?n.replace(Rnr,Cnr):n}function Tnr(n){const r=Anr(n.value);return n.datatype.value==="http://www.w3.org/2001/XMLSchema#string"?'"'+r+'"':n.datatype.value==="http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"?'"'+r+'"@'+n.language:'"'+r+'"^^'+Sen(n.datatype)}function $nr(n,r){const o=r(n.subject),l=r(n.predicate),u=r(n.object),d=r(n.graph);return`${o} ${l} ${u} ${d?d+" ":""}.`}function Inr(n){return"?"+n.value}function _S(n){if(!n)return null;if(n.termType==="BlankNode")return _nr(n);if(n.termType==="DefaultGraph")return Enr();if(n.termType==="Literal")return Tnr(n);if(n.termType==="NamedNode")return Sen(n);if(n.termType==="Quad"||n.subject&&n.predicate&&n.object&&n.graph)return $nr(n,_S);if(n.termType==="Variable")return Inr(n);if(n[Symbol.iterator])return Snr(n,_S);throw new Error(`unknown termType ${n.termType}`)}class kK{constructor(r){if(this.index=new Map,r)for(const[o,l]of r)this.set(o,l)}get size(){return this.index.size}clear(){this.index.clear()}delete(r){return this.index.delete(_S(r))}*entries(){for(const[,{term:r,value:o}]of this.index)yield[r,o]}forEach(r,o){for(const l of this.entries())r.call(o,l[1],l[0],this)}get(r){const o=this.index.get(_S(r));return o&&o.value}has(r){return this.index.has(_S(r))}*keys(){for(const[,{term:r}]of this.index)yield r}set(r,o){const l=_S(r);return this.index.set(l,{term:r,value:o}),this}*values(){for(const[,{value:r}]of this.index)yield r}[Symbol.iterator](){return this.entries()[Symbol.iterator]()}}var Een={exports:{}};const Pnr=Epe,Onr=/([\x00-\x20<>"{}|^`\\]|%(?![0-9A-F][0-9A-F]))/g,Nnr=(n,r)=>{let o=r.codePointAt(0).toString(16)+"";return o.length>4?"\\U"+o.padStart(8,"0"):"\\u"+o.padStart(4,"0")},Nde=n=>n.replace(Onr,Nnr),lHe=/^(?:[\u0000-@[-`{-\u00bf\u00d7\u00f7\u0300-\u306f\u037e\u2000-\u200b\u200e-\u206f\u2190-\u2bff\u2ff0-\u3000\ud800-\uf8ff\ufdd0-\ufddf\ufffe\uffff].+|(?:.+?[\u0000-,\/:-@[-^`{-\u00b6\u00b8-\u00bf\u00d7\u00f7\u037e\u2000-\u200b\u200e-\u203e\u2041-\u206f\u2190-\u2bff\u2ff0-\u3000\ud800-\uf8ff\ufdd0-\ufddf\ufffe\uffff].*)|.+\.)$/,ken=/^(?:\\|[\u0000-\/;-@[-^`{-\u00bf\u00d7\u00f7\u0300-\u306f\u037e\u2000-\u200b\u200e-\u206f\u2190-\u2bff\u2ff0-\u3000\ud800-\uf8ff\ufdd0-\ufddf\ufffe\uffff].+|(?:.+?(?:\\|[\u0000-,\/;-@[-^`{-\u00b6\u00b8-\u00bf\u00d7\u00f7\u037e\u2000-\u200b\u200e-\u203e\u2041-\u206f\u2190-\u2bff\u2ff0-\u3000\ud800-\uf8ff\ufdd0-\ufddf\ufffe\uffff]).+)|(?:.+?(?:\\|[\u0000-,.\/;-@[-^`{-\u00b6\u00b8-\u00bf\u00d7\u00f7\u037e\u2000-\u200b\u200e-\u203e\u2041-\u206f\u2190-\u2bff\u2ff0-\u3000\ud800-\uf8ff\ufdd0-\ufddf\ufffe\uffff])))$/,Mnr=/^([Tt](rue)?|TRUE)$/,Dnr=/^([Ff](alse)?|FALSE)$/,Lnr="xxxxxxxx_xxxx_4xxx_yxxx_xxxxxxxxxxxx",jnr=/[xy]/g,RK=()=>{let n=Date.now();return typeof performance<"u"&&(n+=performance.now()),Lnr.replace(jnr,r=>{let o=(n+Math.random()*16)%16|0;return n=Math.floor(n/16),(r==="x"?o:o&3|8).toString(16)})},xpe=Symbol("prefix-cache"),Fnr=/[$^*()+[\\{}|.?]/g,Bnr="((?:[A-Za-z\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u{02ff}\\u{0370}-\\u{037d}\\u{037f}-\\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]|%[A-Fa-f0-9]{2}|\\\\[_~.\\-!$&'()*+,;=/?#@%])(?:(?:[A-Za-z\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u{02ff}\\u{0370}-\\u{037d}\\u{037f}-\\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}.:]|%[A-Fa-f0-9]{2}|\\\\[_~.\\-!$&'()*+,;=/?#@%])*(?:[A-Za-z\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u{02ff}\\u{0370}-\\u{037d}\\u{037f}-\\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}:]|%[A-Fa-f0-9]{2}|\\\\[_~.\\-!$&'()*+,;=/?#@%]))?)$";function fBt(n,r=!1){let o=[],l={};for(let u in n){let d=n[u];r&&lHe.test(u)||(l[d]=u,o.push(d.replace(Fnr,"\\$&")))}return o.length?(n[xpe]={_r_iris:new RegExp(`^(${o.join("|")})${Bnr}`,"u"),_h_inverse:l},Object.freeze(n)):n}const Ren=(n,r)=>{let o=r[xpe];if(o){let l=o._r_iris.exec(n);if(l)return o._h_inverse[l[1]]+":"+l[2]}else{let l="",u="",d=-1;for(let h in r){let w=r[h];if(n.indexOf(w)===0&&w.length>d&&!lHe.test(h)){let v=n.slice(w.length);ken.test(v)||(u=v,l=h,d=w.length)}}if(d!==-1)return l+":"+u}return"<"+n+">"},sJ=(n,r={})=>{let o=r[xpe];if(o){let l=o._r_iris.exec(n);if(l)return o._h_inverse[l[1]]+":"+l[2]}else{let l="",u=-1;for(let d in r){let h=r[d];n.startsWith(h)&&h.length>u&&(l=d,u=h.length)}if(u!==-1)return l+":"+n.slice(u)}return">"+n},Wnr=/^([^:]*):(.*)$/;function xen(n,r={},o=!1){switch(n[0]){case">":return"<"+n.slice(1)+">";case"_":return n.length<=2||n[2]==="#"?new iX()[o?"verbose":"terse"]():n;case'"':return JSON.stringify(n.slice(1));case"@":{let l=n.indexOf('"');return JSON.stringify(n.slice(l+1))+n.slice(0,l)}case"^":{let l=n.indexOf('"');return JSON.stringify(n.slice(l+1))+"^^"+xen(n.slice(1,l),r,o)}case"*":return"";case"<":case"`":return bs.c1(n).terse(r);default:{if(n==="a")return o?"":"a";let[,l,u]=Wnr.exec(n);return o||ken.test(u)||lHe.test(l)?"<"+r[l]+u+">":n}}}class DT{valueOf(){return this.concise()}toString(){return this.concise()}equals(r){return r?this===r||r.termType===this.termType&&r.value===this.value:!1}}Object.assign(DT.prototype,{isGraphyTerm:!0});let Rh=class extends DT{constructor(r){super(),this.value=r}concise(r={}){return sJ(this.value,r)}terse(r={},o=!1){return Ren(Nde(this.value),r)}verbose(){return"<"+Nde(this.value)+">"}isolate(){return{termType:"NamedNode",value:this.value}}};Object.assign(Rh.prototype,{termType:"NamedNode",isNamedNode:!0});const eje=new Rh("http://www.w3.org/1999/02/22-rdf-syntax-ns#type");eje.isRdfTypeAlias=!0;const Cen=new Rh("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"),Hnr=Cen.isolate(),Unr=new Rh("http://www.w3.org/1999/02/22-rdf-syntax-ns#first"),dBt=new Rh("http://www.w3.org/1999/02/22-rdf-syntax-ns#rest"),Gnr=new Rh("http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"),Vnr=new Rh("http://www.w3.org/2001/XMLSchema#date"),znr=new Rh("http://www.w3.org/2001/XMLSchema#dateTime"),bT=new Rh("http://www.w3.org/2001/XMLSchema#string");class Cpe extends DT{equals(r){return r?this===r||r.termType==="Literal"&&r.value===this.value&&this.datatype.equals(r.datatype)&&r.language===this.language:!1}verbose(){return JSON.stringify(this.value)+(this.language?"@"+this.language:"^^"+this.datatype.verbose())}concise(r){return this.language?"@"+this.language+'"'+this.value:"^"+sJ(this.datatype.value,r)+'"'+this.value}terse(r={}){let o=this.datatype.terse(r);return JSON.stringify(this.value)+(this.language?"@"+this.language:"^^"+o)}isolate(){return{termType:"Literal",value:this.value,language:this.language,datatype:this.datatype.isolate()}}}Object.assign(Cpe.prototype,{datatype:bT,language:"",termType:"Literal",isLiteral:!0,isSimple:!1});class xK extends Cpe{constructor(r,o){super(),this.value=r,this.language=(o[0]==="@"?o.slice(1):o).toLowerCase()}verbose(){return JSON.stringify(this.value)+"@"+this.language}concise(){return"@"+this.language+'"'+this.value}terse(){return JSON.stringify(this.value)+"@"+this.language}isolate(){return{termType:"Literal",value:this.value,language:this.language,datatype:Hnr}}}Object.assign(xK.prototype,{datatype:Cen,isLanguaged:!0});class lj extends Cpe{verbose(){return JSON.stringify(this.value)+"^^"+this.datatype.verbose()}concise(r){return"^"+sJ(this.datatype.value,r)+'"'+this.value}terse(r={}){let o=this.datatype.terse(r);return JSON.stringify(this.value)+"^^"+o}isolate(){return{termType:"Literal",value:this.value,language:this.language,datatype:this.datatype.isolate()}}}Object.assign(lj.prototype,{isDatatyped:!0});class nue extends lj{constructor(r,o){super(),this.value=r,this.datatype=o}}class Aen extends DT{constructor(r){super(),this.value=r}get isSimple(){return!this.language&&!this.datatype.equals(bT)}get isLanguaged(){return!!this.language}get isDatatyped(){return bT.equals(this.datatype)}equals(r){return r?this===r||r.termType==="Literal"&&r.value===this.value&&this.datatype.equals(r.datatype)&&r.language===this.language:!1}verbose(){return JSON.stringify(this.value)+(this.language?"@"+this.language:"^^"+this.datatype.verbose())}concise(r){return this.language?"@"+this.language+'"'+this.value:"^"+sJ(this.datatype.value,r)+'"'+this.value}terse(r={}){let o=this.datatype.terse(r);return JSON.stringify(this.value)+(this.language?"@"+this.language:"^^"+o)}isolate(){return{termType:"Literal",value:this.value,language:this.language,datatype:this.datatype.isolate()}}}Object.assign(Aen.prototype,{datatype:bT,language:"",termType:"Literal",isLiteral:!0});class E8 extends Cpe{constructor(r){super(),this.value=r}verbose(){return JSON.stringify(this.value)}concise(){return'"'+this.value}terse(){return JSON.stringify(this.value)}}Object.assign(E8.prototype,{isSimple:!0});const Ten=new Rh("http://www.w3.org/2001/XMLSchema#integer");class Y8 extends lj{static from(r){let o=new Y8(+r);return o.value=r,o}constructor(r){super(),this.value=r+"",this.number=r}concise(r={}){return"^"+Ten.concise(r)+'"'+this.value}terse(){return this.value.includes("e")?`"${this.value}"^^`:this.value}}Object.assign(Y8.prototype,{datatype:Ten,isNumeric:!0,isInteger:!0});const lJ=new Rh("http://www.w3.org/2001/XMLSchema#double");class HE extends lj{static from(r){let o=new HE(+r);return o.value=r,o}constructor(r){super(),this.value=r+"",this.number=r}concise(r={}){return"^"+lJ.concise(r)+'"'+this.value}terse(){return this.number.toExponential()}}Object.assign(HE.prototype,{datatype:lJ,isNumeric:!0,isDouble:!0});const $en=new Rh("http://www.w3.org/2001/XMLSchema#decimal");class Q8 extends lj{static from(r){let o=new Q8(+r);return o.value=r,o}constructor(r){super(),this.value=r+"",this.number=r}concise(r={}){return"^"+$en.concise(r)+'"'+this.value}terse(){return this.value.includes("e")?`"${this.value}"^^`:this.value+(this.value.includes(".")?"":".0")}}Object.assign(Q8.prototype,{datatype:$en,isNumeric:!0,isDecimal:!0});const Ien=new Rh("http://www.w3.org/2001/XMLSchema#boolean");class DE extends lj{static from(r){let o=new DE(+r);return o.value=r,o}constructor(r){super(),this.value=r+"",this.boolean=r}concise(r={}){return"^"+Ien.concise(r)+'"'+this.value}terse(){return this.value+""}}Object.assign(DE.prototype,{datatype:Ien,isBoolean:!0});class Pen extends HE{constructor(){super(1/0),this.value="INF"}terse(r){return'"INF"^^'+lJ.terse(r)}}Object.assign(Pen.prototype,{isInfinite:!0});class Oen extends HE{constructor(){super(-1/0),this.value="-INF"}terse(r){return'"-INF"^^'+lJ.terse(r)}}Object.assign(Oen.prototype,{isInfinite:!0});class Nen extends HE{constructor(){super(NaN),this.value="NaN"}terse(r){return'"NaN"^^'+lJ.terse(r)}}Object.assign(Nen.prototype,{isNaN:!0});function U8(n,r=!1){this.value=n,this.isAnonymous=r}U8.prototype=Object.assign(Object.create(DT.prototype),{termType:"BlankNode",isBlankNode:!0,concise(){return"_:"+this.value},terse(){return"_:"+this.value},verbose(){return"_:"+this.value},isolate(){return{termType:"BlankNode",value:this.value}}});function iX(){}iX.prototype=Object.assign(Object.create(U8.prototype),{isAnonymous:!0,isEphemeral:!0,concise(){return"_:#"+this.value},terse(){return"[]"},verbose(){return"_:"+this.value},isolate(){return{termType:"BlankNode",value:this.value}},equals(){return!1}});Object.defineProperty(iX.prototype,"value",{get(){return"_"+RK()}});let Men=class extends DT{constructor(r){super(),this.value=r}concise(){return"?"+this.value}terse(){throw new Error("Cannot call .terse() on 'Variable' term type")}verbose(){throw new Error("Cannot call .verbose() on 'Variable' term type")}isolate(){return{termType:"Variable",value:this.value}}};Object.assign(Men.prototype,{termType:"Variable",isVariable:!0});function oX(){}oX.prototype=Object.assign(Object.create(DT.prototype),{value:"",termType:"DefaultGraph",isDefaultGraph:!0,concise(){return"*"},terse(){return""},verbose(){return""},isolate(){return{termType:"DefaultGraph",value:""}}});Object.assign(Object.create(DT.prototype),{value:"",termType:"NoGraph",concise(){return""},terse(){return""},verbose(){return""},isolate(){return{termType:"NoGraph",value:""}}});const Mde=new oX;function fS(n,r,o,l=Mde){this.subject=n,this.predicate=r,this.object=o,this.graph=l}Object.assign(fS.prototype,{isGraphyQuad:!0,equals(n){return n?this===n||this.object.equals(n.object)&&this.subject.equals(n.subject)&&this.predicate.equals(n.predicate)&&this.graph.equals(n.graph):!1},valueOf(){return this.verbose()},concise(n={}){return[this.subject.concise(n),this.predicate.concise(n),this.object.concise(n),this.graph.concise(n)]},terse(n){let r=this.graph.isDefaultGraph;return(r?"":this.graph.terse(n)+" { ")+this.subject.terse(n)+" "+this.predicate.terse(n)+" "+this.object.terse(n)+" ."+(r?"":" }")},verbose(){return this.subject.verbose()+" "+this.predicate.verbose()+" "+this.object.verbose()+" "+(this.graph.isDefaultGraph?"":this.graph.verbose()+" ")+"."},isolate(){return{subject:this.subject.isolate(),predicate:this.predicate.isolate(),object:this.object.isolate(),graph:this.graph.isolate()}}});let hBt={namedNode(n){return new Rh(n)},blankNode(n,r){return new U8(n,r)},literal(n){return new Aen(n)},defaultGraph(){return new oX},quad(n,r,o,l){return new fS(n,r,o,l||Mde)},integer(n){return Y8.from(n)},double(n){return HE.from(n)},decimal(n){return Q8.from(n)},boolean(n){return new DE(n)}};const bs=Een.exports={concise:sJ,adopt(n){let r=Object.create(n),o=!1;if(typeof n.boolean!="function"){let l=n.namedNode("http://www.w3.org/2001/XMLSchema#boolean");r.boolean=u=>n.literal(u+"",l),o=!0}if(typeof n.double!="function"){let l=n.namedNode("http://www.w3.org/2001/XMLSchema#double");r.double=u=>n.literal(u+"",l),o=!0}if(typeof n.decimal!="function"){let l=n.namedNode("http://www.w3.org/2001/XMLSchema#decimal");r.decimal=u=>n.literal(u+"",l),o=!0}if(typeof n.integer!="function"){let l=n.namedNode("http://www.w3.org/2001/XMLSchema#integer");r.integer=u=>n.literal(u+"",l),o=!0}return typeof n.simpleLiteral!="function"&&(r.simpleLiteral=l=>n.literal(l),o=!0),typeof n.languagedLiteral!="function"&&(r.languagedLiteral=(l,u)=>n.literal(l,u),o=!0),typeof n.datatypedLiteral!="function"&&(r.datatypedLiteral=(l,u)=>n.literal(l,u),o=!0),o?r:n},raw:hBt,unfiltered:{...hBt,literal(n,r){return!r||bT.equals(r)?new E8(n):typeof r=="string"?new xK(n,r):bT.equals(r)?new E8(n):new nue(n,r)},simpleLiteral(n){return new E8(n)},languagedLiteral(n,r){return new xK(n,r)},datatypedLiteral(n,r){return bT.equals(r)?new E8(n):new nue(n,r)}},number(n){return typeof n=="number"&&(!Number.isFinite(n)||Number.isNaN(n))?bs.double(n):Number.isInteger(n)||typeof n=="bigint"?bs.integer(n):bs.decimal(n)},date(n){return bs.literal(n.toISOString().replace(/T.+$/,"Z"),Vnr)},dateTime(n){return bs.literal(n.toISOString(),znr)},namedNode(n){return new Rh(n)},ephemeral(){return new iX},anonymous(){return new iX},blankNode(n){if(n){if(typeof n=="string")return new U8(n)}else return new U8("_"+RK(),!0);throw new TypeError(`factory.blankNode(label) expects 'label' parameter to be falsy or a string; instead found: ${n}`)},literal(n,r){return!r||bT.equals(r)?new E8(n):typeof r=="string"?new xK(n,r):new nue(n,r)},integer(n){let r=typeof n;if(r==="number"){if(Number.isFinite(n)){if(!Number.isInteger(n))throw new Error("Number is not an integer: "+n)}else throw Number.isNaN(n)?new Error("XSD integer cannot encode NaN. Try using double"):new Error("XSD integer cannot encode +/-infinity. Try using double");return new Y8(n)}else if(r==="string"){if(n==="")throw new Error("Refusing to serialize empty string as xsd:integer");let o=+n;if(Number.isNaN(o)||!Number.isInteger(o))throw new Error("Invalid integer string: "+n);return new Y8(o)}else throw r==="undefined"?new Error("Refusing to serialize undefined value as xsd:integer"):n===null?new Error("Refusing to serialize null value as xsd:integer"):new Error("XSD integer expects a number type or integer string")},double(n){let r=typeof n;if(r==="number")return Number.isFinite(n)?new HE(n):Number.isNaN(n)?new Nen:n>0?new Pen:new Oen;if(r==="string"){if(n==="")throw new Error("Refusing to serialize empty string as xsd:double");let o=+n;if(Number.isNaN(o))throw new Error("Invalid decimal string: "+n);return new HE(o)}else throw r==="undefined"?new Error("Refusing to serialize undefined value as xsd:double"):n===null?new Error("Refusing to serialize null value as xsd:double"):new Error("XSD double expects a number type or double string")},decimal(n){let r=typeof n;if(r==="number"){if(!Number.isFinite(n))throw Number.isNaN(n)?new Error("XSD decimal cannot encode NaN. Try using double"):new Error("XSD decimal cannot encode +/-infinity. Try using double");return new Q8(n)}else if(r==="string"){if(n==="")throw new Error("Refusing to serialize empty string as xsd:decimal");let o=+n;if(Number.isNaN(o))throw new Error("Invalid decimal string: "+n);return new Q8(o)}else throw r==="undefined"?new Error("Refusing to serialize undefined value as xsd:decimal"):n===null?new Error("Refusing to serialize null value as xsd:decimal"):new Error("XSD decimal expects a number type or decimal string")},boolean(n){let r=typeof n;if(r==="boolean")return new DE(n);if(r==="number"){if(n===1)return new DE(!0);if(n===0)return new DE(!1);throw new Error("Boolean value 'w_value' must be either a '1' or '0' if using numbers")}else if(r==="string"){if(Mnr.test(n))return new DE(!0);if(Dnr.test(n))return new DE(!1);throw n===""?new Error("Refusing to serialize empty string as xsd:boolean"):new Error("Invalid boolean string: "+n)}else throw r==="undefined"?new Error("Refusing to serialize undefined value as xsd:boolean"):n===null?new Error("Refusing to serialize null value as xsd:boolean"):new Error("XSD boolean expects a boolean type or boolean string")},defaultGraph(){return new oX},variable(n){return new Men(n)},triple(n,r,o){let l=new Error("It is strongly encouraged to use .quad() instead of .triple()");return console.warn(l.stack.replace(/^(\s*)Error:/,"$1Warning:")),new fS(n,r,o)},quad(n,r,o,l){return new fS(n,r,o,l||Mde)},term(n,r){return typeof n=="string"?bs.c1(n,r):bs.from.rdfjs_term(n)},c1(n,r={}){switch(n[0]){case"^":{let o=n.indexOf('"');if(o===-1)throw new Error(`Invalid concise-term string, no content literal delimiter found: '${n}'`);let l=n.slice(1,o);return bs.literal(n.slice(o+1),bs.c1_node_explicit(l,r))}case"@":{let o=n.indexOf('"');if(o===-1)throw new Error(`Invalid concise-term string, no content literal delimiter found: '${n}'`);let l=n.slice(1,o);return bs.literal(n.slice(o+1),l)}case'"':return bs.literal(n.slice(1));default:return bs.c1_node(n,r)}},c1_node(n,r={}){if(n==="a")return eje;if(n==="*")return bs.defaultGraph();if(n[0]==="_"){if(n[1]!==":")throw new Error(`Invliad concise-term string, prefixes are not allowed to start with an underscore: '${n}'`);return n[2]==="#"||n.length===2?bs.ephemeral():bs.blankNode(n.slice(2))}return bs.c1_node_explicit(n,r)},c1_named_node(n,r={}){return n==="a"?eje:bs.c1_node_explicit(n,r)},c1_node_explicit(n,r={}){switch(n[0]){case">":return bs.namedNode(n.slice(1));case"<":throw new Error(`Whoops! It looks like this concise-term string starts with a '<' character. Remember to use '>' if you are trying to make an absolute IRI reference. +`}function Pnr(){return""}function Cen(n){return"<"+n.value+">"}const Onr=/["\\\\\n\r]/,Nnr=/["\\\\\n\r]/g,Mnr={'"':'\\"',"\\":"\\\\","\n":"\\n","\r":"\\r"};function Dnr(n){return Mnr[n]}function Lnr(n){return Onr.test(n)?n.replace(Nnr,Dnr):n}function jnr(n){const r=Lnr(n.value);return n.datatype.value==="http://www.w3.org/2001/XMLSchema#string"?'"'+r+'"':n.datatype.value==="http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"?'"'+r+'"@'+n.language:'"'+r+'"^^'+Cen(n.datatype)}function Fnr(n,r){const o=r(n.subject),l=r(n.predicate),u=r(n.object),d=r(n.graph);return`${o} ${l} ${u} ${d?d+" ":""}.`}function Bnr(n){return"?"+n.value}function _S(n){if(!n)return null;if(n.termType==="BlankNode")return $nr(n);if(n.termType==="DefaultGraph")return Pnr();if(n.termType==="Literal")return jnr(n);if(n.termType==="NamedNode")return Cen(n);if(n.termType==="Quad"||n.subject&&n.predicate&&n.object&&n.graph)return Fnr(n,_S);if(n.termType==="Variable")return Bnr(n);if(n[Symbol.iterator])return Inr(n,_S);throw new Error(`unknown termType ${n.termType}`)}class EK{constructor(r){if(this.index=new Map,r)for(const[o,l]of r)this.set(o,l)}get size(){return this.index.size}clear(){this.index.clear()}delete(r){return this.index.delete(_S(r))}*entries(){for(const[,{term:r,value:o}]of this.index)yield[r,o]}forEach(r,o){for(const l of this.entries())r.call(o,l[1],l[0],this)}get(r){const o=this.index.get(_S(r));return o&&o.value}has(r){return this.index.has(_S(r))}*keys(){for(const[,{term:r}]of this.index)yield r}set(r,o){const l=_S(r);return this.index.set(l,{term:r,value:o}),this}*values(){for(const[,{value:r}]of this.index)yield r}[Symbol.iterator](){return this.entries()[Symbol.iterator]()}}var Aen={exports:{}};const Wnr=xpe,Hnr=/([\x00-\x20<>"{}|^`\\]|%(?![0-9A-F][0-9A-F]))/g,Unr=(n,r)=>{let o=r.codePointAt(0).toString(16)+"";return o.length>4?"\\U"+o.padStart(8,"0"):"\\u"+o.padStart(4,"0")},Lde=n=>n.replace(Hnr,Unr),pHe=/^(?:[\u0000-@[-`{-\u00bf\u00d7\u00f7\u0300-\u306f\u037e\u2000-\u200b\u200e-\u206f\u2190-\u2bff\u2ff0-\u3000\ud800-\uf8ff\ufdd0-\ufddf\ufffe\uffff].+|(?:.+?[\u0000-,\/:-@[-^`{-\u00b6\u00b8-\u00bf\u00d7\u00f7\u037e\u2000-\u200b\u200e-\u203e\u2041-\u206f\u2190-\u2bff\u2ff0-\u3000\ud800-\uf8ff\ufdd0-\ufddf\ufffe\uffff].*)|.+\.)$/,Ten=/^(?:\\|[\u0000-\/;-@[-^`{-\u00bf\u00d7\u00f7\u0300-\u306f\u037e\u2000-\u200b\u200e-\u206f\u2190-\u2bff\u2ff0-\u3000\ud800-\uf8ff\ufdd0-\ufddf\ufffe\uffff].+|(?:.+?(?:\\|[\u0000-,\/;-@[-^`{-\u00b6\u00b8-\u00bf\u00d7\u00f7\u037e\u2000-\u200b\u200e-\u203e\u2041-\u206f\u2190-\u2bff\u2ff0-\u3000\ud800-\uf8ff\ufdd0-\ufddf\ufffe\uffff]).+)|(?:.+?(?:\\|[\u0000-,.\/;-@[-^`{-\u00b6\u00b8-\u00bf\u00d7\u00f7\u037e\u2000-\u200b\u200e-\u203e\u2041-\u206f\u2190-\u2bff\u2ff0-\u3000\ud800-\uf8ff\ufdd0-\ufddf\ufffe\uffff])))$/,Gnr=/^([Tt](rue)?|TRUE)$/,Vnr=/^([Ff](alse)?|FALSE)$/,znr="xxxxxxxx_xxxx_4xxx_yxxx_xxxxxxxxxxxx",Knr=/[xy]/g,kK=()=>{let n=Date.now();return typeof performance<"u"&&(n+=performance.now()),znr.replace(Knr,r=>{let o=(n+Math.random()*16)%16|0;return n=Math.floor(n/16),(r==="x"?o:o&3|8).toString(16)})},Tpe=Symbol("prefix-cache"),qnr=/[$^*()+[\\{}|.?]/g,Xnr="((?:[A-Za-z\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u{02ff}\\u{0370}-\\u{037d}\\u{037f}-\\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]|%[A-Fa-f0-9]{2}|\\\\[_~.\\-!$&'()*+,;=/?#@%])(?:(?:[A-Za-z\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u{02ff}\\u{0370}-\\u{037d}\\u{037f}-\\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}.:]|%[A-Fa-f0-9]{2}|\\\\[_~.\\-!$&'()*+,;=/?#@%])*(?:[A-Za-z\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u{02ff}\\u{0370}-\\u{037d}\\u{037f}-\\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}:]|%[A-Fa-f0-9]{2}|\\\\[_~.\\-!$&'()*+,;=/?#@%]))?)$";function wBt(n,r=!1){let o=[],l={};for(let u in n){let d=n[u];r&&pHe.test(u)||(l[d]=u,o.push(d.replace(qnr,"\\$&")))}return o.length?(n[Tpe]={_r_iris:new RegExp(`^(${o.join("|")})${Xnr}`,"u"),_h_inverse:l},Object.freeze(n)):n}const $en=(n,r)=>{let o=r[Tpe];if(o){let l=o._r_iris.exec(n);if(l)return o._h_inverse[l[1]]+":"+l[2]}else{let l="",u="",d=-1;for(let h in r){let w=r[h];if(n.indexOf(w)===0&&w.length>d&&!pHe.test(h)){let v=n.slice(w.length);Ten.test(v)||(u=v,l=h,d=w.length)}}if(d!==-1)return l+":"+u}return"<"+n+">"},sJ=(n,r={})=>{let o=r[Tpe];if(o){let l=o._r_iris.exec(n);if(l)return o._h_inverse[l[1]]+":"+l[2]}else{let l="",u=-1;for(let d in r){let h=r[d];n.startsWith(h)&&h.length>u&&(l=d,u=h.length)}if(u!==-1)return l+":"+n.slice(u)}return">"+n},Jnr=/^([^:]*):(.*)$/;function Ien(n,r={},o=!1){switch(n[0]){case">":return"<"+n.slice(1)+">";case"_":return n.length<=2||n[2]==="#"?new rX()[o?"verbose":"terse"]():n;case'"':return JSON.stringify(n.slice(1));case"@":{let l=n.indexOf('"');return JSON.stringify(n.slice(l+1))+n.slice(0,l)}case"^":{let l=n.indexOf('"');return JSON.stringify(n.slice(l+1))+"^^"+Ien(n.slice(1,l),r,o)}case"*":return"";case"<":case"`":return bs.c1(n).terse(r);default:{if(n==="a")return o?"":"a";let[,l,u]=Jnr.exec(n);return o||Ten.test(u)||pHe.test(l)?"<"+r[l]+u+">":n}}}class DT{valueOf(){return this.concise()}toString(){return this.concise()}equals(r){return r?this===r||r.termType===this.termType&&r.value===this.value:!1}}Object.assign(DT.prototype,{isGraphyTerm:!0});let Rh=class extends DT{constructor(r){super(),this.value=r}concise(r={}){return sJ(this.value,r)}terse(r={},o=!1){return $en(Lde(this.value),r)}verbose(){return"<"+Lde(this.value)+">"}isolate(){return{termType:"NamedNode",value:this.value}}};Object.assign(Rh.prototype,{termType:"NamedNode",isNamedNode:!0});const lje=new Rh("http://www.w3.org/1999/02/22-rdf-syntax-ns#type");lje.isRdfTypeAlias=!0;const Pen=new Rh("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"),Ynr=Pen.isolate(),Qnr=new Rh("http://www.w3.org/1999/02/22-rdf-syntax-ns#first"),mBt=new Rh("http://www.w3.org/1999/02/22-rdf-syntax-ns#rest"),Znr=new Rh("http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"),err=new Rh("http://www.w3.org/2001/XMLSchema#date"),trr=new Rh("http://www.w3.org/2001/XMLSchema#dateTime"),bT=new Rh("http://www.w3.org/2001/XMLSchema#string");class $pe extends DT{equals(r){return r?this===r||r.termType==="Literal"&&r.value===this.value&&this.datatype.equals(r.datatype)&&r.language===this.language:!1}verbose(){return JSON.stringify(this.value)+(this.language?"@"+this.language:"^^"+this.datatype.verbose())}concise(r){return this.language?"@"+this.language+'"'+this.value:"^"+sJ(this.datatype.value,r)+'"'+this.value}terse(r={}){let o=this.datatype.terse(r);return JSON.stringify(this.value)+(this.language?"@"+this.language:"^^"+o)}isolate(){return{termType:"Literal",value:this.value,language:this.language,datatype:this.datatype.isolate()}}}Object.assign($pe.prototype,{datatype:bT,language:"",termType:"Literal",isLiteral:!0,isSimple:!1});class RK extends $pe{constructor(r,o){super(),this.value=r,this.language=(o[0]==="@"?o.slice(1):o).toLowerCase()}verbose(){return JSON.stringify(this.value)+"@"+this.language}concise(){return"@"+this.language+'"'+this.value}terse(){return JSON.stringify(this.value)+"@"+this.language}isolate(){return{termType:"Literal",value:this.value,language:this.language,datatype:Ynr}}}Object.assign(RK.prototype,{datatype:Pen,isLanguaged:!0});class sj extends $pe{verbose(){return JSON.stringify(this.value)+"^^"+this.datatype.verbose()}concise(r){return"^"+sJ(this.datatype.value,r)+'"'+this.value}terse(r={}){let o=this.datatype.terse(r);return JSON.stringify(this.value)+"^^"+o}isolate(){return{termType:"Literal",value:this.value,language:this.language,datatype:this.datatype.isolate()}}}Object.assign(sj.prototype,{isDatatyped:!0});class iue extends sj{constructor(r,o){super(),this.value=r,this.datatype=o}}class Oen extends DT{constructor(r){super(),this.value=r}get isSimple(){return!this.language&&!this.datatype.equals(bT)}get isLanguaged(){return!!this.language}get isDatatyped(){return bT.equals(this.datatype)}equals(r){return r?this===r||r.termType==="Literal"&&r.value===this.value&&this.datatype.equals(r.datatype)&&r.language===this.language:!1}verbose(){return JSON.stringify(this.value)+(this.language?"@"+this.language:"^^"+this.datatype.verbose())}concise(r){return this.language?"@"+this.language+'"'+this.value:"^"+sJ(this.datatype.value,r)+'"'+this.value}terse(r={}){let o=this.datatype.terse(r);return JSON.stringify(this.value)+(this.language?"@"+this.language:"^^"+o)}isolate(){return{termType:"Literal",value:this.value,language:this.language,datatype:this.datatype.isolate()}}}Object.assign(Oen.prototype,{datatype:bT,language:"",termType:"Literal",isLiteral:!0});class E8 extends $pe{constructor(r){super(),this.value=r}verbose(){return JSON.stringify(this.value)}concise(){return'"'+this.value}terse(){return JSON.stringify(this.value)}}Object.assign(E8.prototype,{isSimple:!0});const Nen=new Rh("http://www.w3.org/2001/XMLSchema#integer");class Y8 extends sj{static from(r){let o=new Y8(+r);return o.value=r,o}constructor(r){super(),this.value=r+"",this.number=r}concise(r={}){return"^"+Nen.concise(r)+'"'+this.value}terse(){return this.value.includes("e")?`"${this.value}"^^`:this.value}}Object.assign(Y8.prototype,{datatype:Nen,isNumeric:!0,isInteger:!0});const lJ=new Rh("http://www.w3.org/2001/XMLSchema#double");class HE extends sj{static from(r){let o=new HE(+r);return o.value=r,o}constructor(r){super(),this.value=r+"",this.number=r}concise(r={}){return"^"+lJ.concise(r)+'"'+this.value}terse(){return this.number.toExponential()}}Object.assign(HE.prototype,{datatype:lJ,isNumeric:!0,isDouble:!0});const Men=new Rh("http://www.w3.org/2001/XMLSchema#decimal");class Q8 extends sj{static from(r){let o=new Q8(+r);return o.value=r,o}constructor(r){super(),this.value=r+"",this.number=r}concise(r={}){return"^"+Men.concise(r)+'"'+this.value}terse(){return this.value.includes("e")?`"${this.value}"^^`:this.value+(this.value.includes(".")?"":".0")}}Object.assign(Q8.prototype,{datatype:Men,isNumeric:!0,isDecimal:!0});const Den=new Rh("http://www.w3.org/2001/XMLSchema#boolean");class DE extends sj{static from(r){let o=new DE(+r);return o.value=r,o}constructor(r){super(),this.value=r+"",this.boolean=r}concise(r={}){return"^"+Den.concise(r)+'"'+this.value}terse(){return this.value+""}}Object.assign(DE.prototype,{datatype:Den,isBoolean:!0});class Len extends HE{constructor(){super(1/0),this.value="INF"}terse(r){return'"INF"^^'+lJ.terse(r)}}Object.assign(Len.prototype,{isInfinite:!0});class jen extends HE{constructor(){super(-1/0),this.value="-INF"}terse(r){return'"-INF"^^'+lJ.terse(r)}}Object.assign(jen.prototype,{isInfinite:!0});class Fen extends HE{constructor(){super(NaN),this.value="NaN"}terse(r){return'"NaN"^^'+lJ.terse(r)}}Object.assign(Fen.prototype,{isNaN:!0});function U8(n,r=!1){this.value=n,this.isAnonymous=r}U8.prototype=Object.assign(Object.create(DT.prototype),{termType:"BlankNode",isBlankNode:!0,concise(){return"_:"+this.value},terse(){return"_:"+this.value},verbose(){return"_:"+this.value},isolate(){return{termType:"BlankNode",value:this.value}}});function rX(){}rX.prototype=Object.assign(Object.create(U8.prototype),{isAnonymous:!0,isEphemeral:!0,concise(){return"_:#"+this.value},terse(){return"[]"},verbose(){return"_:"+this.value},isolate(){return{termType:"BlankNode",value:this.value}},equals(){return!1}});Object.defineProperty(rX.prototype,"value",{get(){return"_"+kK()}});let Ben=class extends DT{constructor(r){super(),this.value=r}concise(){return"?"+this.value}terse(){throw new Error("Cannot call .terse() on 'Variable' term type")}verbose(){throw new Error("Cannot call .verbose() on 'Variable' term type")}isolate(){return{termType:"Variable",value:this.value}}};Object.assign(Ben.prototype,{termType:"Variable",isVariable:!0});function iX(){}iX.prototype=Object.assign(Object.create(DT.prototype),{value:"",termType:"DefaultGraph",isDefaultGraph:!0,concise(){return"*"},terse(){return""},verbose(){return""},isolate(){return{termType:"DefaultGraph",value:""}}});Object.assign(Object.create(DT.prototype),{value:"",termType:"NoGraph",concise(){return""},terse(){return""},verbose(){return""},isolate(){return{termType:"NoGraph",value:""}}});const jde=new iX;function fS(n,r,o,l=jde){this.subject=n,this.predicate=r,this.object=o,this.graph=l}Object.assign(fS.prototype,{isGraphyQuad:!0,equals(n){return n?this===n||this.object.equals(n.object)&&this.subject.equals(n.subject)&&this.predicate.equals(n.predicate)&&this.graph.equals(n.graph):!1},valueOf(){return this.verbose()},concise(n={}){return[this.subject.concise(n),this.predicate.concise(n),this.object.concise(n),this.graph.concise(n)]},terse(n){let r=this.graph.isDefaultGraph;return(r?"":this.graph.terse(n)+" { ")+this.subject.terse(n)+" "+this.predicate.terse(n)+" "+this.object.terse(n)+" ."+(r?"":" }")},verbose(){return this.subject.verbose()+" "+this.predicate.verbose()+" "+this.object.verbose()+" "+(this.graph.isDefaultGraph?"":this.graph.verbose()+" ")+"."},isolate(){return{subject:this.subject.isolate(),predicate:this.predicate.isolate(),object:this.object.isolate(),graph:this.graph.isolate()}}});let yBt={namedNode(n){return new Rh(n)},blankNode(n,r){return new U8(n,r)},literal(n){return new Oen(n)},defaultGraph(){return new iX},quad(n,r,o,l){return new fS(n,r,o,l||jde)},integer(n){return Y8.from(n)},double(n){return HE.from(n)},decimal(n){return Q8.from(n)},boolean(n){return new DE(n)}};const bs=Aen.exports={concise:sJ,adopt(n){let r=Object.create(n),o=!1;if(typeof n.boolean!="function"){let l=n.namedNode("http://www.w3.org/2001/XMLSchema#boolean");r.boolean=u=>n.literal(u+"",l),o=!0}if(typeof n.double!="function"){let l=n.namedNode("http://www.w3.org/2001/XMLSchema#double");r.double=u=>n.literal(u+"",l),o=!0}if(typeof n.decimal!="function"){let l=n.namedNode("http://www.w3.org/2001/XMLSchema#decimal");r.decimal=u=>n.literal(u+"",l),o=!0}if(typeof n.integer!="function"){let l=n.namedNode("http://www.w3.org/2001/XMLSchema#integer");r.integer=u=>n.literal(u+"",l),o=!0}return typeof n.simpleLiteral!="function"&&(r.simpleLiteral=l=>n.literal(l),o=!0),typeof n.languagedLiteral!="function"&&(r.languagedLiteral=(l,u)=>n.literal(l,u),o=!0),typeof n.datatypedLiteral!="function"&&(r.datatypedLiteral=(l,u)=>n.literal(l,u),o=!0),o?r:n},raw:yBt,unfiltered:{...yBt,literal(n,r){return!r||bT.equals(r)?new E8(n):typeof r=="string"?new RK(n,r):bT.equals(r)?new E8(n):new iue(n,r)},simpleLiteral(n){return new E8(n)},languagedLiteral(n,r){return new RK(n,r)},datatypedLiteral(n,r){return bT.equals(r)?new E8(n):new iue(n,r)}},number(n){return typeof n=="number"&&(!Number.isFinite(n)||Number.isNaN(n))?bs.double(n):Number.isInteger(n)||typeof n=="bigint"?bs.integer(n):bs.decimal(n)},date(n){return bs.literal(n.toISOString().replace(/T.+$/,"Z"),err)},dateTime(n){return bs.literal(n.toISOString(),trr)},namedNode(n){return new Rh(n)},ephemeral(){return new rX},anonymous(){return new rX},blankNode(n){if(n){if(typeof n=="string")return new U8(n)}else return new U8("_"+kK(),!0);throw new TypeError(`factory.blankNode(label) expects 'label' parameter to be falsy or a string; instead found: ${n}`)},literal(n,r){return!r||bT.equals(r)?new E8(n):typeof r=="string"?new RK(n,r):new iue(n,r)},integer(n){let r=typeof n;if(r==="number"){if(Number.isFinite(n)){if(!Number.isInteger(n))throw new Error("Number is not an integer: "+n)}else throw Number.isNaN(n)?new Error("XSD integer cannot encode NaN. Try using double"):new Error("XSD integer cannot encode +/-infinity. Try using double");return new Y8(n)}else if(r==="string"){if(n==="")throw new Error("Refusing to serialize empty string as xsd:integer");let o=+n;if(Number.isNaN(o)||!Number.isInteger(o))throw new Error("Invalid integer string: "+n);return new Y8(o)}else throw r==="undefined"?new Error("Refusing to serialize undefined value as xsd:integer"):n===null?new Error("Refusing to serialize null value as xsd:integer"):new Error("XSD integer expects a number type or integer string")},double(n){let r=typeof n;if(r==="number")return Number.isFinite(n)?new HE(n):Number.isNaN(n)?new Fen:n>0?new Len:new jen;if(r==="string"){if(n==="")throw new Error("Refusing to serialize empty string as xsd:double");let o=+n;if(Number.isNaN(o))throw new Error("Invalid decimal string: "+n);return new HE(o)}else throw r==="undefined"?new Error("Refusing to serialize undefined value as xsd:double"):n===null?new Error("Refusing to serialize null value as xsd:double"):new Error("XSD double expects a number type or double string")},decimal(n){let r=typeof n;if(r==="number"){if(!Number.isFinite(n))throw Number.isNaN(n)?new Error("XSD decimal cannot encode NaN. Try using double"):new Error("XSD decimal cannot encode +/-infinity. Try using double");return new Q8(n)}else if(r==="string"){if(n==="")throw new Error("Refusing to serialize empty string as xsd:decimal");let o=+n;if(Number.isNaN(o))throw new Error("Invalid decimal string: "+n);return new Q8(o)}else throw r==="undefined"?new Error("Refusing to serialize undefined value as xsd:decimal"):n===null?new Error("Refusing to serialize null value as xsd:decimal"):new Error("XSD decimal expects a number type or decimal string")},boolean(n){let r=typeof n;if(r==="boolean")return new DE(n);if(r==="number"){if(n===1)return new DE(!0);if(n===0)return new DE(!1);throw new Error("Boolean value 'w_value' must be either a '1' or '0' if using numbers")}else if(r==="string"){if(Gnr.test(n))return new DE(!0);if(Vnr.test(n))return new DE(!1);throw n===""?new Error("Refusing to serialize empty string as xsd:boolean"):new Error("Invalid boolean string: "+n)}else throw r==="undefined"?new Error("Refusing to serialize undefined value as xsd:boolean"):n===null?new Error("Refusing to serialize null value as xsd:boolean"):new Error("XSD boolean expects a boolean type or boolean string")},defaultGraph(){return new iX},variable(n){return new Ben(n)},triple(n,r,o){let l=new Error("It is strongly encouraged to use .quad() instead of .triple()");return console.warn(l.stack.replace(/^(\s*)Error:/,"$1Warning:")),new fS(n,r,o)},quad(n,r,o,l){return new fS(n,r,o,l||jde)},term(n,r){return typeof n=="string"?bs.c1(n,r):bs.from.rdfjs_term(n)},c1(n,r={}){switch(n[0]){case"^":{let o=n.indexOf('"');if(o===-1)throw new Error(`Invalid concise-term string, no content literal delimiter found: '${n}'`);let l=n.slice(1,o);return bs.literal(n.slice(o+1),bs.c1_node_explicit(l,r))}case"@":{let o=n.indexOf('"');if(o===-1)throw new Error(`Invalid concise-term string, no content literal delimiter found: '${n}'`);let l=n.slice(1,o);return bs.literal(n.slice(o+1),l)}case'"':return bs.literal(n.slice(1));default:return bs.c1_node(n,r)}},c1_node(n,r={}){if(n==="a")return lje;if(n==="*")return bs.defaultGraph();if(n[0]==="_"){if(n[1]!==":")throw new Error(`Invliad concise-term string, prefixes are not allowed to start with an underscore: '${n}'`);return n[2]==="#"||n.length===2?bs.ephemeral():bs.blankNode(n.slice(2))}return bs.c1_node_explicit(n,r)},c1_named_node(n,r={}){return n==="a"?lje:bs.c1_node_explicit(n,r)},c1_node_explicit(n,r={}){switch(n[0]){case">":return bs.namedNode(n.slice(1));case"<":throw new Error(`Whoops! It looks like this concise-term string starts with a '<' character. Remember to use '>' if you are trying to make an absolute IRI reference. Invalid concise-term string '${n}'`);case"`":throw new Error(`The backtick character '\`' is reserved for concise-struct key directives and should not be used in the object position. Invalid concise-term string '${n}'`);default:return this.c1_prefixed_node(n,r)}},c1_prefixed_node(n,r={}){let o=n.indexOf(":");if(o===-1)throw new Error(`A relative or prefixed node must include a ':' character. -Invalid concise-term string for node: '${n}'`);let l=n.slice(0,o),u=n.slice(o+1);if(l in r)return bs.namedNode(r[l]+u);throw new Error(`Prefix not defined: '${l}'`)},c1_to_nt:xen,*quads(n,r={}){for(let o in n)yield*bs.triples(n[o],r,o)},*triples(n,r={},o="*"){let l=bs.c1(o,r);for(let u in n){let d=bs.c1(u,r),h=n[u];yield*bs.pairs(l,d,h,r)}},*pairs(n,r,o,l={}){for(let u in o){let d=bs.c1(u,l),h=o[u];yield*bs.objects(n,r,d,h,l)}},*collection(n,r,o,l={}){yield*bs.objects(n,r,Unr,o[0],l);let u=o.slice(1);if(!u.length)yield new fS(r,dBt,Gnr,n);else{let d=bs.blankNode();yield new fS(r,dBt,d,n),yield*bs.collection(n,d,u,l)}},*objects(n,r,o,l,u,d=!1){switch(typeof l){case"string":{yield new fS(r,o,bs.c1(l,u),n);break}case"number":{yield new fS(r,o,bs.number(l),n);break}case"object":{if(Array.isArray(l))if(d){let w=bs.blankNode();yield new fS(r,o,w,n),yield*bs.collection(n,w,l,u)}else for(let w of l)yield*bs.objects(n,r,o,w,u,!0);else{let w=bs.blankNode();yield new fS(r,o,w,n),yield*bs.pairs(n,w,l,u)}break}default:throw new Error(`invalid object type: ${typeof l}`)}},from:{term(n){return n===null||n.isGraphyTerm?n:bs.from.rdfjs_term(n)},quad(n){if(n===null||n.isGraphyQuad)return n;let r=bs.from;return new fS(r.rdfjs_term(n.subject),r.rdfjs_term(n.predicate),r.rdfjs_term(n.object),n.graph?r.rdfjs_term(n.graph):Mde)},rdfjs_term(n){switch(n.termType){case"NamedNode":return new Rh(n.value);case"BlankNode":return new U8(n.value);case"Literal":return bs.literal(n.value,n.language?n.language:n.datatype?new Rh(n.datatype.value):null);case"DefaultGraph":return new oX;default:throw new TypeError(`invalid termType: ${n.termType}`)}},sparql_result(n){switch(n.type){case"uri":return new Rh(n.value);case"literal":case"typed-literal":return"xml:lang"in n?new xK(n.value,n["xml:lang"]):"datatype"in n&&n.datatype!=="http://www.w3.org/2001/XMLSchema#string"?new nue(n.value,new Rh(n.datatype)):new E8(n.value);case"bnode":return new U8(n.value);default:throw new Error(`unexpected SPARQL Result JSON Format Term type: ${n.type}`)}}},to:{boolean:n=>DE.from(n),integer:n=>Y8.from(n),decimal:n=>Q8.from(n),double:n=>HE.from(n)},comment(n={}){return`\`[${RK()}]${JSON.stringify({...n,type:"comment"})}`},newlines(){return`\`[${RK()}]{"type":"newlines"}`},config(n){if(typeof n!="string")throw new TypeError(`Expected 'key' argument to be a string, instead found ${typeof n}`);return`\`[${RK()}]{"type":"config","value":${JSON.stringify(n)}}`},hash(n){let r=bs.from.quad(n),o=Pnr.createHash("sha256");return o.update(r.verbose()),o.digest("hex")},cache_prefixes:fBt,cachePrefixes:fBt,terse:Ren,clean_iri:Nde,cleanIri:Nde,$_PREFIX_CACHE:xpe};Object.assign(bs,{c3:bs.triples,c4:bs.quads,fromTerm:bs.from.term,fromQuad:bs.from.quad});var Knr=Een.exports;const pBt=cv(Knr),qnr={rif:"http://www.w3.org/2007/rif#",v:"http://rdf.data-vocabulary.org/#",wdr:"http://www.w3.org/2007/05/powder#",xml:"http://www.w3.org/XML/1998/namespace/"},Xnr={acl:"http://www.w3.org/ns/auth/acl#",as:"https://www.w3.org/ns/activitystreams#",bibo:"http://purl.org/ontology/bibo/",cc:"http://creativecommons.org/ns#",cert:"http://www.w3.org/ns/auth/cert#",cnt:"http://www.w3.org/2011/content#",constant:"http://qudt.org/vocab/constant/",crm:"http://www.cidoc-crm.org/cidoc-crm/",csvw:"http://www.w3.org/ns/csvw#",ctag:"http://commontag.org/ns#","dash-sparql":"http://datashapes.org/sparql#",dash:"http://datashapes.org/dash#",dbo:"http://dbpedia.org/ontology/",dc11:"http://purl.org/dc/elements/1.1/",dcam:"http://purl.org/dc/dcam/",dcat:"http://www.w3.org/ns/dcat#",dcmitype:"http://purl.org/dc/dcmitype/",dcterms:"http://purl.org/dc/terms/",dig:"http://www.ics.forth.gr/isl/CRMdig/",discipline:"http://qudt.org/vocab/discipline/",doap:"http://usefulinc.com/ns/doap#",dpv:"http://www.w3.org/ns/dpv#",dqv:"http://www.w3.org/ns/dqv#",dtype:"http://www.linkedmodel.org/schema/dtype#",duv:"http://www.w3.org/ns/duv#",earl:"http://www.w3.org/ns/earl#",ebucore:"http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#",exif:"http://www.w3.org/2003/12/exif/ns#",foaf:"http://xmlns.com/foaf/0.1/",frbr:"http://purl.org/vocab/frbr/core#",geo:"http://www.opengis.net/ont/geosparql#",geof:"http://www.opengis.net/def/function/geosparql/",geor:"http://www.opengis.net/def/rule/geosparql/",gml:"http://www.opengis.net/ont/gml#",gn:"http://www.geonames.org/ontology#",gr:"http://purl.org/goodrelations/v1#",grddl:"http://www.w3.org/2003/g/data-view#",gs1:"https://gs1.org/voc/",gtfs:"http://vocab.gtfs.org/terms#",http:"http://www.w3.org/2011/http#",hydra:"http://www.w3.org/ns/hydra/core#",ical:"http://www.w3.org/2002/12/cal/icaltzd#",la:"https://linked.art/ns/terms/",ldp:"http://www.w3.org/ns/ldp#",list:"http://www.w3.org/2000/10/swap/list#",locn:"http://www.w3.org/ns/locn#",log:"http://www.w3.org/2000/10/swap/log#",lvont:"http://lexvo.org/ontology#",m4i:"http://w3id.org/nfdi4ing/metadata4ing#",ma:"http://www.w3.org/ns/ma-ont#",mads:"http://www.loc.gov/mads/rdf/v1#",math:"http://www.w3.org/2000/10/swap/math#",oa:"http://www.w3.org/ns/oa#",og:"http://ogp.me/ns#",oidc:"http://www.w3.org/ns/solid/oidc#",org:"http://www.w3.org/ns/org#",owl:"http://www.w3.org/2002/07/owl#",pim:"http://www.w3.org/ns/pim/space#",prefix:"http://qudt.org/vocab/prefix/",prov:"http://www.w3.org/ns/prov#",qb:"http://purl.org/linked-data/cube#",qkdv:"http://qudt.org/vocab/dimensionvector/",quantitykind:"http://qudt.org/vocab/quantitykind/",qudt:"http://qudt.org/schema/qudt/",rdau:"http://rdaregistry.info/Elements/u/",rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfa:"http://www.w3.org/ns/rdfa#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",rev:"http://purl.org/stuff/rev#",rico:"https://www.ica.org/standards/RiC/ontology#",rr:"http://www.w3.org/ns/r2rml#",rss:"http://purl.org/rss/1.0/",schema:"http://schema.org/",sd:"http://www.w3.org/ns/sparql-service-description#",sdmx:"http://purl.org/linked-data/sdmx#",sem:"http://semanticweb.cs.vu.nl/2009/11/sem/",set:"http://www.w3.org/2000/10/swap/set#",sf:"http://www.opengis.net/ont/sf#",sh:"http://www.w3.org/ns/shacl#",shex:"http://www.w3.org/ns/shex#",shsh:"http://www.w3.org/ns/shacl-shacl#",sioc:"http://rdfs.org/sioc/ns#",skos:"http://www.w3.org/2004/02/skos/core#",skosxl:"http://www.w3.org/2008/05/skos-xl#",solid:"http://www.w3.org/ns/solid/terms#",sosa:"http://www.w3.org/ns/sosa/",sou:"http://qudt.org/vocab/sou/",ssn:"http://www.w3.org/ns/ssn/",stat:"http://www.w3.org/ns/posix/stat#",string:"http://www.w3.org/2000/10/swap/string#",test:"http://www.w3.org/2006/03/test-description#",time:"http://www.w3.org/2006/time#",unit:"http://qudt.org/vocab/unit/",vaem:"http://www.linkedmodel.org/schema/vaem#",vann:"http://purl.org/vocab/vann/",vcard:"http://www.w3.org/2006/vcard/ns#",void:"http://rdfs.org/ns/void#",vs:"http://www.w3.org/2003/06/sw-vocab-status/ns#",vso:"http://purl.org/vso/ns#",wdrs:"http://www.w3.org/2007/05/powder-s#",wgs:"http://www.w3.org/2003/01/geo/wgs84_pos#",xhv:"http://www.w3.org/1999/xhtml/vocab#",xkos:"http://rdf-vocabulary.ddialliance.org/xkos#",xsd:"http://www.w3.org/2001/XMLSchema#"},tje={...Xnr,...qnr};function Den(n,r={}){const o={...tje,...r},l=Array.from(Object.entries(o)).filter(([,u])=>n.startsWith(u));if(l.length){l.sort(([,d],[,h])=>h.length-d.length);const u=l[0];return n.replace(new RegExp(`^${u[1]}`),`${u[0]}:`)}return""}class Len{constructor(r){this.term=r}toTerm(){const r=`"""${this.term.value.replace(/"$/,'\\"')}"""`;return{terse:o=>r+this.langOrDatatype(o),verbose:o=>r+this.langOrDatatype(o)}}langOrDatatype(r){if(this.term.language)return`@${this.term.language}`;if(this.term.datatype.equals(rq.string))return"";const o=Den(this.term.datatype.value,r);return o?`^^${o}`:`^^<${this.term.datatype.value}>`}}const jen=new Map([[Len,n=>n.toTerm()]]);function Jnr(n){return n.has(hS.first)&&n.has(hS.rest)}class Ynr extends EQn.Transform{constructor({prefixes:r={},strict:o=!1,preserveListNodeProperties:l=!1}={}){super({objectMode:!0}),this.prefixes=r,this.graphs=new kK,this.blankNodes=new kK,this.strict=o,this.preserveListNodeProperties=l}_transform({subject:r,predicate:o,object:l,graph:u},d,h){const w=this.getGraph(u),v=w.get(r)||{predicates:new kK},y=v.predicates.get(o)||[];if(v.predicates.set(o,[...y,l]),l.termType==="BlankNode"){const E=this.blankNodes.get(l)||0;this.blankNodes.set(l,E+1)}w.set(r,v),h()}_flush(){const r=[...this.graphs].reduce((o,[l,u])=>{const d=this.toHashKey(l);let h=o[d]||{};return h=[...u].reduce(this.toConciseHash(l).bind(this),h),{...o,[d]:h}},{});this.push({type:this.strict?"c4r":"c4",value:r}),this.push(null)}toConciseHash(r){return(o,[l,{predicates:u}])=>{if(!this.strict&&this.blankNodes.get(l)===1)return o;const d=this.toHashKey(l);return{...o,[d]:this.createPropertyMap(r,u)}}}createPropertyMap(r,o,l=0){const u=d=>{if(!this.strict&&this.blankNodes.get(d)===1){const h=this.graphs.get(r).get(d);if(h)return this.createPropertyMap(r,h.predicates,l+1)}return this.toHashKey(d)};if(!this.strict&&Jnr(o)&&!this.preserveListNodeProperties){const[d]=o.get(hS.first),[h]=o.get(hS.rest);if(l===0){let v;if(h.equals(hS.nil))v=this.toHashKey(hS.nil);else{const y=u(h);v=Array.isArray(y)?[...y]:[y]}return{[this.toHashKey(hS.first)]:[u(d)],[this.toHashKey(hS.rest)]:[v]}}if(h.equals(hS.nil))return[u(d)];const w=u(h);return[u(d),...w]}return[...o].reduce((d,[h,w])=>{const v=this.toHashKey(h),y=w.map(u.bind(this));return{...d,[v]:y}},{})}getGraph(r){const o=this.graphs.get(r)||new kK;return this.graphs.set(r,o),o}literalHash(r){if(r.datatype&&!this.strict)switch(r.datatype.value){case rq.integer.value:{const o=+r.value;if(Number.isInteger(o))return o;break}case rq.decimal.value:{const o=+r.value;if(!Number.isNaN(o)&&!Number.isInteger(o))return o;break}case rq.boolean.value:{if(r.value==="true")return!0;if(r.value==="false")return!1;break}}return r.value.includes(` -`)?new Len(r):pBt.fromTerm(r).concise(this.prefixes)}toHashKey(r){return r.termType==="Literal"?this.literalHash(r):r.equals(hS.type)?"a":pBt.fromTerm(r).concise(this.prefixes)}}async function aHe(n,r={}){const o=(await n).default;return class{constructor(l={}){this.defaults=l}import(l,{preserveListNodeProperties:u,...d}={}){const h={...this.defaults.prefixes||{},...d.prefixes||{}},w=o({prefixes:h,coercions:r.coercions});return l.pipe(new Ynr({prefixes:h,strict:r.strict,preserveListNodeProperties:u})).pipe(w),w}}}const Fen=fv(()=>aHe(C0(()=>import("./main-BPEm6UCI.js").then(n=>n.m),__vite__mapDeps([0,1,2,3])),{coercions:jen})),Qnr=fv(()=>aHe(C0(()=>import("./main-BswWzHG7.js").then(n=>n.m),__vite__mapDeps([4,2,3])),{strict:!0})),Znr=fv(()=>aHe(C0(()=>import("./main-CxslsK_i.js").then(n=>n.m),__vite__mapDeps([5,1,2,3])),{strict:!0,coercions:jen}));async function Ben(n){const r=(await n).default;return class{import(o,l){return o.pipe(l?r(l):r())}}}const Wen=fv(()=>Ben(C0(()=>import("./main-Crpq21kw.js").then(n=>n.m),__vite__mapDeps([6,3])))),Hen=fv(()=>Ben(C0(()=>import("./main-D8J4Fi79.js").then(n=>n.m),__vite__mapDeps([7,3])))),err=fv(async()=>{const n=(await C0(async()=>{const{default:r}=await import("./index-D_aAaXze.js");return{default:r}},[])).default;return class extends n{constructor({prefixes:o={},...l}={}){super({compact:!0,skipGraphProperty:!0,encoding:"string",...l}),this.prefixes=o}import(o,{prefixes:l={}}={}){const u={...this.prefixes,...l};return super.import(o,{context:u})}}}),trr=fv(async()=>{const n=await C0(()=>import("./index-fs3sy2sF.js"),[]);return class{import(r,o){return new n.StreamParser({format:"text/n3"}).import(r,{...o})}}}),hv=new nZt({});hv.import(lm);const $S={jsonLd:"application/ld+json",ntriples:"application/n-triples",nquads:"application/n-quads",notation3:"text/n3",rdfXml:"application/rdf+xml",trig:"application/trig",turtle:"text/turtle"};hv.serializers.set($S.jsonLd,new err);hv.serializers.set($S.notation3,new Fen);hv.serializers.set($S.turtle,new Fen);hv.serializers.set($S.trig,new Znr);hv.serializers.set($S.rdfXml,new Qnr);hv.parsers.set($S.notation3,new trr);hv.parsers.set($S.turtle,new Wen);hv.parsers.set($S.trig,new Wen);hv.parsers.set($S.ntriples,new Hen);hv.parsers.set($S.nquads,new Hen);/** +Invalid concise-term string for node: '${n}'`);let l=n.slice(0,o),u=n.slice(o+1);if(l in r)return bs.namedNode(r[l]+u);throw new Error(`Prefix not defined: '${l}'`)},c1_to_nt:Ien,*quads(n,r={}){for(let o in n)yield*bs.triples(n[o],r,o)},*triples(n,r={},o="*"){let l=bs.c1(o,r);for(let u in n){let d=bs.c1(u,r),h=n[u];yield*bs.pairs(l,d,h,r)}},*pairs(n,r,o,l={}){for(let u in o){let d=bs.c1(u,l),h=o[u];yield*bs.objects(n,r,d,h,l)}},*collection(n,r,o,l={}){yield*bs.objects(n,r,Qnr,o[0],l);let u=o.slice(1);if(!u.length)yield new fS(r,mBt,Znr,n);else{let d=bs.blankNode();yield new fS(r,mBt,d,n),yield*bs.collection(n,d,u,l)}},*objects(n,r,o,l,u,d=!1){switch(typeof l){case"string":{yield new fS(r,o,bs.c1(l,u),n);break}case"number":{yield new fS(r,o,bs.number(l),n);break}case"object":{if(Array.isArray(l))if(d){let w=bs.blankNode();yield new fS(r,o,w,n),yield*bs.collection(n,w,l,u)}else for(let w of l)yield*bs.objects(n,r,o,w,u,!0);else{let w=bs.blankNode();yield new fS(r,o,w,n),yield*bs.pairs(n,w,l,u)}break}default:throw new Error(`invalid object type: ${typeof l}`)}},from:{term(n){return n===null||n.isGraphyTerm?n:bs.from.rdfjs_term(n)},quad(n){if(n===null||n.isGraphyQuad)return n;let r=bs.from;return new fS(r.rdfjs_term(n.subject),r.rdfjs_term(n.predicate),r.rdfjs_term(n.object),n.graph?r.rdfjs_term(n.graph):jde)},rdfjs_term(n){switch(n.termType){case"NamedNode":return new Rh(n.value);case"BlankNode":return new U8(n.value);case"Literal":return bs.literal(n.value,n.language?n.language:n.datatype?new Rh(n.datatype.value):null);case"DefaultGraph":return new iX;default:throw new TypeError(`invalid termType: ${n.termType}`)}},sparql_result(n){switch(n.type){case"uri":return new Rh(n.value);case"literal":case"typed-literal":return"xml:lang"in n?new RK(n.value,n["xml:lang"]):"datatype"in n&&n.datatype!=="http://www.w3.org/2001/XMLSchema#string"?new iue(n.value,new Rh(n.datatype)):new E8(n.value);case"bnode":return new U8(n.value);default:throw new Error(`unexpected SPARQL Result JSON Format Term type: ${n.type}`)}}},to:{boolean:n=>DE.from(n),integer:n=>Y8.from(n),decimal:n=>Q8.from(n),double:n=>HE.from(n)},comment(n={}){return`\`[${kK()}]${JSON.stringify({...n,type:"comment"})}`},newlines(){return`\`[${kK()}]{"type":"newlines"}`},config(n){if(typeof n!="string")throw new TypeError(`Expected 'key' argument to be a string, instead found ${typeof n}`);return`\`[${kK()}]{"type":"config","value":${JSON.stringify(n)}}`},hash(n){let r=bs.from.quad(n),o=Wnr.createHash("sha256");return o.update(r.verbose()),o.digest("hex")},cache_prefixes:wBt,cachePrefixes:wBt,terse:$en,clean_iri:Lde,cleanIri:Lde,$_PREFIX_CACHE:Tpe};Object.assign(bs,{c3:bs.triples,c4:bs.quads,fromTerm:bs.from.term,fromQuad:bs.from.quad});var nrr=Aen.exports;const vBt=cv(nrr),rrr={rif:"http://www.w3.org/2007/rif#",v:"http://rdf.data-vocabulary.org/#",wdr:"http://www.w3.org/2007/05/powder#",xml:"http://www.w3.org/XML/1998/namespace/"},irr={acl:"http://www.w3.org/ns/auth/acl#",as:"https://www.w3.org/ns/activitystreams#",bibo:"http://purl.org/ontology/bibo/",cc:"http://creativecommons.org/ns#",cert:"http://www.w3.org/ns/auth/cert#",cnt:"http://www.w3.org/2011/content#",constant:"http://qudt.org/vocab/constant/",crm:"http://www.cidoc-crm.org/cidoc-crm/",csvw:"http://www.w3.org/ns/csvw#",ctag:"http://commontag.org/ns#","dash-sparql":"http://datashapes.org/sparql#",dash:"http://datashapes.org/dash#",dbo:"http://dbpedia.org/ontology/",dc11:"http://purl.org/dc/elements/1.1/",dcam:"http://purl.org/dc/dcam/",dcat:"http://www.w3.org/ns/dcat#",dcmitype:"http://purl.org/dc/dcmitype/",dcterms:"http://purl.org/dc/terms/",dig:"http://www.ics.forth.gr/isl/CRMdig/",discipline:"http://qudt.org/vocab/discipline/",doap:"http://usefulinc.com/ns/doap#",dpv:"http://www.w3.org/ns/dpv#",dqv:"http://www.w3.org/ns/dqv#",dtype:"http://www.linkedmodel.org/schema/dtype#",duv:"http://www.w3.org/ns/duv#",earl:"http://www.w3.org/ns/earl#",ebucore:"http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#",exif:"http://www.w3.org/2003/12/exif/ns#",foaf:"http://xmlns.com/foaf/0.1/",frbr:"http://purl.org/vocab/frbr/core#",geo:"http://www.opengis.net/ont/geosparql#",geof:"http://www.opengis.net/def/function/geosparql/",geor:"http://www.opengis.net/def/rule/geosparql/",gml:"http://www.opengis.net/ont/gml#",gn:"http://www.geonames.org/ontology#",gr:"http://purl.org/goodrelations/v1#",grddl:"http://www.w3.org/2003/g/data-view#",gs1:"https://gs1.org/voc/",gtfs:"http://vocab.gtfs.org/terms#",http:"http://www.w3.org/2011/http#",hydra:"http://www.w3.org/ns/hydra/core#",ical:"http://www.w3.org/2002/12/cal/icaltzd#",la:"https://linked.art/ns/terms/",ldp:"http://www.w3.org/ns/ldp#",list:"http://www.w3.org/2000/10/swap/list#",locn:"http://www.w3.org/ns/locn#",log:"http://www.w3.org/2000/10/swap/log#",lvont:"http://lexvo.org/ontology#",m4i:"http://w3id.org/nfdi4ing/metadata4ing#",ma:"http://www.w3.org/ns/ma-ont#",mads:"http://www.loc.gov/mads/rdf/v1#",math:"http://www.w3.org/2000/10/swap/math#",oa:"http://www.w3.org/ns/oa#",og:"http://ogp.me/ns#",oidc:"http://www.w3.org/ns/solid/oidc#",org:"http://www.w3.org/ns/org#",owl:"http://www.w3.org/2002/07/owl#",pim:"http://www.w3.org/ns/pim/space#",prefix:"http://qudt.org/vocab/prefix/",prov:"http://www.w3.org/ns/prov#",qb:"http://purl.org/linked-data/cube#",qkdv:"http://qudt.org/vocab/dimensionvector/",quantitykind:"http://qudt.org/vocab/quantitykind/",qudt:"http://qudt.org/schema/qudt/",rdau:"http://rdaregistry.info/Elements/u/",rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfa:"http://www.w3.org/ns/rdfa#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",rev:"http://purl.org/stuff/rev#",rico:"https://www.ica.org/standards/RiC/ontology#",rr:"http://www.w3.org/ns/r2rml#",rss:"http://purl.org/rss/1.0/",schema:"http://schema.org/",sd:"http://www.w3.org/ns/sparql-service-description#",sdmx:"http://purl.org/linked-data/sdmx#",sem:"http://semanticweb.cs.vu.nl/2009/11/sem/",set:"http://www.w3.org/2000/10/swap/set#",sf:"http://www.opengis.net/ont/sf#",sh:"http://www.w3.org/ns/shacl#",shex:"http://www.w3.org/ns/shex#",shsh:"http://www.w3.org/ns/shacl-shacl#",sioc:"http://rdfs.org/sioc/ns#",skos:"http://www.w3.org/2004/02/skos/core#",skosxl:"http://www.w3.org/2008/05/skos-xl#",solid:"http://www.w3.org/ns/solid/terms#",sosa:"http://www.w3.org/ns/sosa/",sou:"http://qudt.org/vocab/sou/",ssn:"http://www.w3.org/ns/ssn/",stat:"http://www.w3.org/ns/posix/stat#",string:"http://www.w3.org/2000/10/swap/string#",test:"http://www.w3.org/2006/03/test-description#",time:"http://www.w3.org/2006/time#",unit:"http://qudt.org/vocab/unit/",vaem:"http://www.linkedmodel.org/schema/vaem#",vann:"http://purl.org/vocab/vann/",vcard:"http://www.w3.org/2006/vcard/ns#",void:"http://rdfs.org/ns/void#",vs:"http://www.w3.org/2003/06/sw-vocab-status/ns#",vso:"http://purl.org/vso/ns#",wdrs:"http://www.w3.org/2007/05/powder-s#",wgs:"http://www.w3.org/2003/01/geo/wgs84_pos#",xhv:"http://www.w3.org/1999/xhtml/vocab#",xkos:"http://rdf-vocabulary.ddialliance.org/xkos#",xsd:"http://www.w3.org/2001/XMLSchema#"},aje={...irr,...rrr};function Wen(n,r={}){const o={...aje,...r},l=Array.from(Object.entries(o)).filter(([,u])=>n.startsWith(u));if(l.length){l.sort(([,d],[,h])=>h.length-d.length);const u=l[0];return n.replace(new RegExp(`^${u[1]}`),`${u[0]}:`)}return""}class Hen{constructor(r){this.term=r}toTerm(){const r=`"""${this.term.value.replace(/"$/,'\\"')}"""`;return{terse:o=>r+this.langOrDatatype(o),verbose:o=>r+this.langOrDatatype(o)}}langOrDatatype(r){if(this.term.language)return`@${this.term.language}`;if(this.term.datatype.equals(nq.string))return"";const o=Wen(this.term.datatype.value,r);return o?`^^${o}`:`^^<${this.term.datatype.value}>`}}const Uen=new Map([[Hen,n=>n.toTerm()]]);function orr(n){return n.has(hS.first)&&n.has(hS.rest)}class srr extends PQn.Transform{constructor({prefixes:r={},strict:o=!1,preserveListNodeProperties:l=!1}={}){super({objectMode:!0}),this.prefixes=r,this.graphs=new EK,this.blankNodes=new EK,this.strict=o,this.preserveListNodeProperties=l}_transform({subject:r,predicate:o,object:l,graph:u},d,h){const w=this.getGraph(u),v=w.get(r)||{predicates:new EK},y=v.predicates.get(o)||[];if(v.predicates.set(o,[...y,l]),l.termType==="BlankNode"){const E=this.blankNodes.get(l)||0;this.blankNodes.set(l,E+1)}w.set(r,v),h()}_flush(){const r=[...this.graphs].reduce((o,[l,u])=>{const d=this.toHashKey(l);let h=o[d]||{};return h=[...u].reduce(this.toConciseHash(l).bind(this),h),{...o,[d]:h}},{});this.push({type:this.strict?"c4r":"c4",value:r}),this.push(null)}toConciseHash(r){return(o,[l,{predicates:u}])=>{if(!this.strict&&this.blankNodes.get(l)===1)return o;const d=this.toHashKey(l);return{...o,[d]:this.createPropertyMap(r,u)}}}createPropertyMap(r,o,l=0){const u=d=>{if(!this.strict&&this.blankNodes.get(d)===1){const h=this.graphs.get(r).get(d);if(h)return this.createPropertyMap(r,h.predicates,l+1)}return this.toHashKey(d)};if(!this.strict&&orr(o)&&!this.preserveListNodeProperties){const[d]=o.get(hS.first),[h]=o.get(hS.rest);if(l===0){let v;if(h.equals(hS.nil))v=this.toHashKey(hS.nil);else{const y=u(h);v=Array.isArray(y)?[...y]:[y]}return{[this.toHashKey(hS.first)]:[u(d)],[this.toHashKey(hS.rest)]:[v]}}if(h.equals(hS.nil))return[u(d)];const w=u(h);return[u(d),...w]}return[...o].reduce((d,[h,w])=>{const v=this.toHashKey(h),y=w.map(u.bind(this));return{...d,[v]:y}},{})}getGraph(r){const o=this.graphs.get(r)||new EK;return this.graphs.set(r,o),o}literalHash(r){if(r.datatype&&!this.strict)switch(r.datatype.value){case nq.integer.value:{const o=+r.value;if(Number.isInteger(o))return o;break}case nq.decimal.value:{const o=+r.value;if(!Number.isNaN(o)&&!Number.isInteger(o))return o;break}case nq.boolean.value:{if(r.value==="true")return!0;if(r.value==="false")return!1;break}}return r.value.includes(` +`)?new Hen(r):vBt.fromTerm(r).concise(this.prefixes)}toHashKey(r){return r.termType==="Literal"?this.literalHash(r):r.equals(hS.type)?"a":vBt.fromTerm(r).concise(this.prefixes)}}async function bHe(n,r={}){const o=(await n).default;return class{constructor(l={}){this.defaults=l}import(l,{preserveListNodeProperties:u,...d}={}){const h={...this.defaults.prefixes||{},...d.prefixes||{}},w=o({prefixes:h,coercions:r.coercions});return l.pipe(new srr({prefixes:h,strict:r.strict,preserveListNodeProperties:u})).pipe(w),w}}}const Gen=fv(()=>bHe(C0(()=>import("./main-Bbig3v3v.js").then(n=>n.m),__vite__mapDeps([0,1,2,3])),{coercions:Uen})),lrr=fv(()=>bHe(C0(()=>import("./main-CvyrvPY3.js").then(n=>n.m),__vite__mapDeps([4,2,3])),{strict:!0})),arr=fv(()=>bHe(C0(()=>import("./main-GqMsSp0-.js").then(n=>n.m),__vite__mapDeps([5,1,2,3])),{strict:!0,coercions:Uen}));async function Ven(n){const r=(await n).default;return class{import(o,l){return o.pipe(l?r(l):r())}}}const zen=fv(()=>Ven(C0(()=>import("./main-DBX7HHCf.js").then(n=>n.m),__vite__mapDeps([6,3])))),Ken=fv(()=>Ven(C0(()=>import("./main-C0Hzf2I6.js").then(n=>n.m),__vite__mapDeps([7,3])))),crr=fv(async()=>{const n=(await C0(async()=>{const{default:r}=await import("./index-DMn3ABzq.js");return{default:r}},[])).default;return class extends n{constructor({prefixes:o={},...l}={}){super({compact:!0,skipGraphProperty:!0,encoding:"string",...l}),this.prefixes=o}import(o,{prefixes:l={}}={}){const u={...this.prefixes,...l};return super.import(o,{context:u})}}}),urr=fv(async()=>{const n=await C0(()=>import("./index-BMzMoN0b.js"),[]);return class{import(r,o){return new n.StreamParser({format:"text/n3"}).import(r,{...o})}}}),hv=new lZt({});hv.import(sm);const $S={jsonLd:"application/ld+json",ntriples:"application/n-triples",nquads:"application/n-quads",notation3:"text/n3",rdfXml:"application/rdf+xml",trig:"application/trig",turtle:"text/turtle"};hv.serializers.set($S.jsonLd,new crr);hv.serializers.set($S.notation3,new Gen);hv.serializers.set($S.turtle,new Gen);hv.serializers.set($S.trig,new arr);hv.serializers.set($S.rdfXml,new lrr);hv.parsers.set($S.notation3,new urr);hv.parsers.set($S.turtle,new zen);hv.parsers.set($S.trig,new zen);hv.parsers.set($S.ntriples,new Ken);hv.parsers.set($S.nquads,new Ken);/** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const Mfe=globalThis,cHe=Mfe.ShadowRoot&&(Mfe.ShadyCSS===void 0||Mfe.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,uHe=Symbol(),bBt=new WeakMap;let Uen=class{constructor(r,o,l){if(this._$cssResult$=!0,l!==uHe)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=r,this.t=o}get styleSheet(){let r=this.o;const o=this.t;if(cHe&&r===void 0){const l=o!==void 0&&o.length===1;l&&(r=bBt.get(o)),r===void 0&&((this.o=r=new CSSStyleSheet).replaceSync(this.cssText),l&&bBt.set(o,r))}return r}toString(){return this.cssText}};const nrr=n=>new Uen(typeof n=="string"?n:n+"",void 0,uHe),rrr=(n,...r)=>{const o=n.length===1?n[0]:r.reduce((l,u,d)=>l+(h=>{if(h._$cssResult$===!0)return h.cssText;if(typeof h=="number")return h;throw Error("Value passed to 'css' function must be a 'css' function result: "+h+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(u)+n[d+1],n[0]);return new Uen(o,n,uHe)},irr=(n,r)=>{if(cHe)n.adoptedStyleSheets=r.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(const o of r){const l=document.createElement("style"),u=Mfe.litNonce;u!==void 0&&l.setAttribute("nonce",u),l.textContent=o.cssText,n.appendChild(l)}},gBt=cHe?n=>n:n=>n instanceof CSSStyleSheet?(r=>{let o="";for(const l of r.cssRules)o+=l.cssText;return nrr(o)})(n):n;/** + */const Lfe=globalThis,gHe=Lfe.ShadowRoot&&(Lfe.ShadyCSS===void 0||Lfe.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,wHe=Symbol(),_Bt=new WeakMap;let qen=class{constructor(r,o,l){if(this._$cssResult$=!0,l!==wHe)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=r,this.t=o}get styleSheet(){let r=this.o;const o=this.t;if(gHe&&r===void 0){const l=o!==void 0&&o.length===1;l&&(r=_Bt.get(o)),r===void 0&&((this.o=r=new CSSStyleSheet).replaceSync(this.cssText),l&&_Bt.set(o,r))}return r}toString(){return this.cssText}};const frr=n=>new qen(typeof n=="string"?n:n+"",void 0,wHe),drr=(n,...r)=>{const o=n.length===1?n[0]:r.reduce((l,u,d)=>l+(h=>{if(h._$cssResult$===!0)return h.cssText;if(typeof h=="number")return h;throw Error("Value passed to 'css' function must be a 'css' function result: "+h+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(u)+n[d+1],n[0]);return new qen(o,n,wHe)},hrr=(n,r)=>{if(gHe)n.adoptedStyleSheets=r.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(const o of r){const l=document.createElement("style"),u=Lfe.litNonce;u!==void 0&&l.setAttribute("nonce",u),l.textContent=o.cssText,n.appendChild(l)}},SBt=gHe?n=>n:n=>n instanceof CSSStyleSheet?(r=>{let o="";for(const l of r.cssRules)o+=l.cssText;return frr(o)})(n):n;/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const{is:orr,defineProperty:srr,getOwnPropertyDescriptor:lrr,getOwnPropertyNames:arr,getOwnPropertySymbols:crr,getPrototypeOf:urr}=Object,mT=globalThis,wBt=mT.trustedTypes,frr=wBt?wBt.emptyScript:"",Y7e=mT.reactiveElementPolyfillSupport,iq=(n,r)=>n,nje={toAttribute(n,r){switch(r){case Boolean:n=n?frr:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,r){let o=n;switch(r){case Boolean:o=n!==null;break;case Number:o=n===null?null:Number(n);break;case Object:case Array:try{o=JSON.parse(n)}catch{o=null}}return o}},Gen=(n,r)=>!orr(n,r),mBt={attribute:!0,type:String,converter:nje,reflect:!1,hasChanged:Gen};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),mT.litPropertyMetadata??(mT.litPropertyMetadata=new WeakMap);class yD extends HTMLElement{static addInitializer(r){this._$Ei(),(this.l??(this.l=[])).push(r)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(r,o=mBt){if(o.state&&(o.attribute=!1),this._$Ei(),this.elementProperties.set(r,o),!o.noAccessor){const l=Symbol(),u=this.getPropertyDescriptor(r,l,o);u!==void 0&&srr(this.prototype,r,u)}}static getPropertyDescriptor(r,o,l){const{get:u,set:d}=lrr(this.prototype,r)??{get(){return this[o]},set(h){this[o]=h}};return{get(){return u==null?void 0:u.call(this)},set(h){const w=u==null?void 0:u.call(this);d.call(this,h),this.requestUpdate(r,w,l)},configurable:!0,enumerable:!0}}static getPropertyOptions(r){return this.elementProperties.get(r)??mBt}static _$Ei(){if(this.hasOwnProperty(iq("elementProperties")))return;const r=urr(this);r.finalize(),r.l!==void 0&&(this.l=[...r.l]),this.elementProperties=new Map(r.elementProperties)}static finalize(){if(this.hasOwnProperty(iq("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(iq("properties"))){const o=this.properties,l=[...arr(o),...crr(o)];for(const u of l)this.createProperty(u,o[u])}const r=this[Symbol.metadata];if(r!==null){const o=litPropertyMetadata.get(r);if(o!==void 0)for(const[l,u]of o)this.elementProperties.set(l,u)}this._$Eh=new Map;for(const[o,l]of this.elementProperties){const u=this._$Eu(o,l);u!==void 0&&this._$Eh.set(u,o)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(r){const o=[];if(Array.isArray(r)){const l=new Set(r.flat(1/0).reverse());for(const u of l)o.unshift(gBt(u))}else r!==void 0&&o.push(gBt(r));return o}static _$Eu(r,o){const l=o.attribute;return l===!1?void 0:typeof l=="string"?l:typeof r=="string"?r.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var r;this._$ES=new Promise(o=>this.enableUpdating=o),this._$AL=new Map,this._$E_(),this.requestUpdate(),(r=this.constructor.l)==null||r.forEach(o=>o(this))}addController(r){var o;(this._$EO??(this._$EO=new Set)).add(r),this.renderRoot!==void 0&&this.isConnected&&((o=r.hostConnected)==null||o.call(r))}removeController(r){var o;(o=this._$EO)==null||o.delete(r)}_$E_(){const r=new Map,o=this.constructor.elementProperties;for(const l of o.keys())this.hasOwnProperty(l)&&(r.set(l,this[l]),delete this[l]);r.size>0&&(this._$Ep=r)}createRenderRoot(){const r=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return irr(r,this.constructor.elementStyles),r}connectedCallback(){var r;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(r=this._$EO)==null||r.forEach(o=>{var l;return(l=o.hostConnected)==null?void 0:l.call(o)})}enableUpdating(r){}disconnectedCallback(){var r;(r=this._$EO)==null||r.forEach(o=>{var l;return(l=o.hostDisconnected)==null?void 0:l.call(o)})}attributeChangedCallback(r,o,l){this._$AK(r,l)}_$EC(r,o){var d;const l=this.constructor.elementProperties.get(r),u=this.constructor._$Eu(r,l);if(u!==void 0&&l.reflect===!0){const h=(((d=l.converter)==null?void 0:d.toAttribute)!==void 0?l.converter:nje).toAttribute(o,l.type);this._$Em=r,h==null?this.removeAttribute(u):this.setAttribute(u,h),this._$Em=null}}_$AK(r,o){var d;const l=this.constructor,u=l._$Eh.get(r);if(u!==void 0&&this._$Em!==u){const h=l.getPropertyOptions(u),w=typeof h.converter=="function"?{fromAttribute:h.converter}:((d=h.converter)==null?void 0:d.fromAttribute)!==void 0?h.converter:nje;this._$Em=u,this[u]=w.fromAttribute(o,h.type),this._$Em=null}}requestUpdate(r,o,l){if(r!==void 0){if(l??(l=this.constructor.getPropertyOptions(r)),!(l.hasChanged??Gen)(this[r],o))return;this.P(r,o,l)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(r,o,l){this._$AL.has(r)||this._$AL.set(r,o),l.reflect===!0&&this._$Em!==r&&(this._$Ej??(this._$Ej=new Set)).add(r)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(o){Promise.reject(o)}const r=this.scheduleUpdate();return r!=null&&await r,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var l;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[d,h]of this._$Ep)this[d]=h;this._$Ep=void 0}const u=this.constructor.elementProperties;if(u.size>0)for(const[d,h]of u)h.wrapped!==!0||this._$AL.has(d)||this[d]===void 0||this.P(d,this[d],h)}let r=!1;const o=this._$AL;try{r=this.shouldUpdate(o),r?(this.willUpdate(o),(l=this._$EO)==null||l.forEach(u=>{var d;return(d=u.hostUpdate)==null?void 0:d.call(u)}),this.update(o)):this._$EU()}catch(u){throw r=!1,this._$EU(),u}r&&this._$AE(o)}willUpdate(r){}_$AE(r){var o;(o=this._$EO)==null||o.forEach(l=>{var u;return(u=l.hostUpdated)==null?void 0:u.call(l)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(r)),this.updated(r)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(r){return!0}update(r){this._$Ej&&(this._$Ej=this._$Ej.forEach(o=>this._$EC(o,this[o]))),this._$EU()}updated(r){}firstUpdated(r){}}yD.elementStyles=[],yD.shadowRootOptions={mode:"open"},yD[iq("elementProperties")]=new Map,yD[iq("finalized")]=new Map,Y7e==null||Y7e({ReactiveElement:yD}),(mT.reactiveElementVersions??(mT.reactiveElementVersions=[])).push("2.0.4");/** + */const{is:prr,defineProperty:brr,getOwnPropertyDescriptor:grr,getOwnPropertyNames:wrr,getOwnPropertySymbols:mrr,getPrototypeOf:yrr}=Object,mT=globalThis,EBt=mT.trustedTypes,vrr=EBt?EBt.emptyScript:"",tNe=mT.reactiveElementPolyfillSupport,rq=(n,r)=>n,cje={toAttribute(n,r){switch(r){case Boolean:n=n?vrr:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,r){let o=n;switch(r){case Boolean:o=n!==null;break;case Number:o=n===null?null:Number(n);break;case Object:case Array:try{o=JSON.parse(n)}catch{o=null}}return o}},Xen=(n,r)=>!prr(n,r),kBt={attribute:!0,type:String,converter:cje,reflect:!1,hasChanged:Xen};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),mT.litPropertyMetadata??(mT.litPropertyMetadata=new WeakMap);class mD extends HTMLElement{static addInitializer(r){this._$Ei(),(this.l??(this.l=[])).push(r)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(r,o=kBt){if(o.state&&(o.attribute=!1),this._$Ei(),this.elementProperties.set(r,o),!o.noAccessor){const l=Symbol(),u=this.getPropertyDescriptor(r,l,o);u!==void 0&&brr(this.prototype,r,u)}}static getPropertyDescriptor(r,o,l){const{get:u,set:d}=grr(this.prototype,r)??{get(){return this[o]},set(h){this[o]=h}};return{get(){return u==null?void 0:u.call(this)},set(h){const w=u==null?void 0:u.call(this);d.call(this,h),this.requestUpdate(r,w,l)},configurable:!0,enumerable:!0}}static getPropertyOptions(r){return this.elementProperties.get(r)??kBt}static _$Ei(){if(this.hasOwnProperty(rq("elementProperties")))return;const r=yrr(this);r.finalize(),r.l!==void 0&&(this.l=[...r.l]),this.elementProperties=new Map(r.elementProperties)}static finalize(){if(this.hasOwnProperty(rq("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(rq("properties"))){const o=this.properties,l=[...wrr(o),...mrr(o)];for(const u of l)this.createProperty(u,o[u])}const r=this[Symbol.metadata];if(r!==null){const o=litPropertyMetadata.get(r);if(o!==void 0)for(const[l,u]of o)this.elementProperties.set(l,u)}this._$Eh=new Map;for(const[o,l]of this.elementProperties){const u=this._$Eu(o,l);u!==void 0&&this._$Eh.set(u,o)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(r){const o=[];if(Array.isArray(r)){const l=new Set(r.flat(1/0).reverse());for(const u of l)o.unshift(SBt(u))}else r!==void 0&&o.push(SBt(r));return o}static _$Eu(r,o){const l=o.attribute;return l===!1?void 0:typeof l=="string"?l:typeof r=="string"?r.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var r;this._$ES=new Promise(o=>this.enableUpdating=o),this._$AL=new Map,this._$E_(),this.requestUpdate(),(r=this.constructor.l)==null||r.forEach(o=>o(this))}addController(r){var o;(this._$EO??(this._$EO=new Set)).add(r),this.renderRoot!==void 0&&this.isConnected&&((o=r.hostConnected)==null||o.call(r))}removeController(r){var o;(o=this._$EO)==null||o.delete(r)}_$E_(){const r=new Map,o=this.constructor.elementProperties;for(const l of o.keys())this.hasOwnProperty(l)&&(r.set(l,this[l]),delete this[l]);r.size>0&&(this._$Ep=r)}createRenderRoot(){const r=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return hrr(r,this.constructor.elementStyles),r}connectedCallback(){var r;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(r=this._$EO)==null||r.forEach(o=>{var l;return(l=o.hostConnected)==null?void 0:l.call(o)})}enableUpdating(r){}disconnectedCallback(){var r;(r=this._$EO)==null||r.forEach(o=>{var l;return(l=o.hostDisconnected)==null?void 0:l.call(o)})}attributeChangedCallback(r,o,l){this._$AK(r,l)}_$EC(r,o){var d;const l=this.constructor.elementProperties.get(r),u=this.constructor._$Eu(r,l);if(u!==void 0&&l.reflect===!0){const h=(((d=l.converter)==null?void 0:d.toAttribute)!==void 0?l.converter:cje).toAttribute(o,l.type);this._$Em=r,h==null?this.removeAttribute(u):this.setAttribute(u,h),this._$Em=null}}_$AK(r,o){var d;const l=this.constructor,u=l._$Eh.get(r);if(u!==void 0&&this._$Em!==u){const h=l.getPropertyOptions(u),w=typeof h.converter=="function"?{fromAttribute:h.converter}:((d=h.converter)==null?void 0:d.fromAttribute)!==void 0?h.converter:cje;this._$Em=u,this[u]=w.fromAttribute(o,h.type),this._$Em=null}}requestUpdate(r,o,l){if(r!==void 0){if(l??(l=this.constructor.getPropertyOptions(r)),!(l.hasChanged??Xen)(this[r],o))return;this.P(r,o,l)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(r,o,l){this._$AL.has(r)||this._$AL.set(r,o),l.reflect===!0&&this._$Em!==r&&(this._$Ej??(this._$Ej=new Set)).add(r)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(o){Promise.reject(o)}const r=this.scheduleUpdate();return r!=null&&await r,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var l;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[d,h]of this._$Ep)this[d]=h;this._$Ep=void 0}const u=this.constructor.elementProperties;if(u.size>0)for(const[d,h]of u)h.wrapped!==!0||this._$AL.has(d)||this[d]===void 0||this.P(d,this[d],h)}let r=!1;const o=this._$AL;try{r=this.shouldUpdate(o),r?(this.willUpdate(o),(l=this._$EO)==null||l.forEach(u=>{var d;return(d=u.hostUpdate)==null?void 0:d.call(u)}),this.update(o)):this._$EU()}catch(u){throw r=!1,this._$EU(),u}r&&this._$AE(o)}willUpdate(r){}_$AE(r){var o;(o=this._$EO)==null||o.forEach(l=>{var u;return(u=l.hostUpdated)==null?void 0:u.call(l)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(r)),this.updated(r)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(r){return!0}update(r){this._$Ej&&(this._$Ej=this._$Ej.forEach(o=>this._$EC(o,this[o]))),this._$EU()}updated(r){}firstUpdated(r){}}mD.elementStyles=[],mD.shadowRootOptions={mode:"open"},mD[rq("elementProperties")]=new Map,mD[rq("finalized")]=new Map,tNe==null||tNe({ReactiveElement:mD}),(mT.reactiveElementVersions??(mT.reactiveElementVersions=[])).push("2.0.4");/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const oq=globalThis,Dde=oq.trustedTypes,yBt=Dde?Dde.createPolicy("lit-html",{createHTML:n=>n}):void 0,Ven="$lit$",cT=`lit$${Math.random().toFixed(9).slice(2)}$`,zen="?"+cT,drr=`<${zen}>`,SP=document,sX=()=>SP.createComment(""),lX=n=>n===null||typeof n!="object"&&typeof n!="function",fHe=Array.isArray,hrr=n=>fHe(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",Q7e=`[ -\f\r]`,Qz=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,vBt=/-->/g,_Bt=/>/g,n8=RegExp(`>|${Q7e}(?:([^\\s"'>=/]+)(${Q7e}*=${Q7e}*(?:[^ -\f\r"'\`<>=]|("|')|))|$)`,"g"),SBt=/'/g,EBt=/"/g,Ken=/^(?:script|style|textarea|title)$/i,prr=n=>(r,...o)=>({_$litType$:n,strings:r,values:o}),brr=prr(1),IL=Symbol.for("lit-noChange"),dp=Symbol.for("lit-nothing"),kBt=new WeakMap,G8=SP.createTreeWalker(SP,129);function qen(n,r){if(!fHe(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return yBt!==void 0?yBt.createHTML(r):r}const grr=(n,r)=>{const o=n.length-1,l=[];let u,d=r===2?"":r===3?"":"",h=Qz;for(let w=0;w"?(h=u??Qz,A=-1):E[1]===void 0?A=-2:(A=h.lastIndex-E[2].length,y=E[1],h=E[3]===void 0?n8:E[3]==='"'?EBt:SBt):h===EBt||h===SBt?h=n8:h===vBt||h===_Bt?h=Qz:(h=n8,u=void 0);const R=h===n8&&n[w+1].startsWith("/>")?" ":"";d+=h===Qz?v+drr:A>=0?(l.push(y),v.slice(0,A)+Ven+v.slice(A)+cT+R):v+cT+(A===-2?w:R)}return[qen(n,d+(n[o]||"")+(r===2?"":r===3?"":"")),l]};class aX{constructor({strings:r,_$litType$:o},l){let u;this.parts=[];let d=0,h=0;const w=r.length-1,v=this.parts,[y,E]=grr(r,o);if(this.el=aX.createElement(y,l),G8.currentNode=this.el.content,o===2||o===3){const A=this.el.content.firstChild;A.replaceWith(...A.childNodes)}for(;(u=G8.nextNode())!==null&&v.length0){u.textContent=Dde?Dde.emptyScript:"";for(let R=0;R2||l[0]!==""||l[1]!==""?(this._$AH=Array(l.length-1).fill(new String),this.strings=l):this._$AH=dp}_$AI(r,o=this,l,u){const d=this.strings;let h=!1;if(d===void 0)r=PL(this,r,o,0),h=!lX(r)||r!==this._$AH&&r!==IL,h&&(this._$AH=r);else{const w=r;let v,y;for(r=d[0],v=0;v{const l=(o==null?void 0:o.renderBefore)??r;let u=l._$litPart$;if(u===void 0){const d=(o==null?void 0:o.renderBefore)??null;l._$litPart$=u=new aJ(r.insertBefore(sX(),d),d,void 0,o??{})}return u._$AI(n),u};/** + */const iq=globalThis,Fde=iq.trustedTypes,RBt=Fde?Fde.createPolicy("lit-html",{createHTML:n=>n}):void 0,Jen="$lit$",cT=`lit$${Math.random().toFixed(9).slice(2)}$`,Yen="?"+cT,_rr=`<${Yen}>`,_P=document,oX=()=>_P.createComment(""),sX=n=>n===null||typeof n!="object"&&typeof n!="function",mHe=Array.isArray,Srr=n=>mHe(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",nNe=`[ +\f\r]`,Yz=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,xBt=/-->/g,CBt=/>/g,n8=RegExp(`>|${nNe}(?:([^\\s"'>=/]+)(${nNe}*=${nNe}*(?:[^ +\f\r"'\`<>=]|("|')|))|$)`,"g"),ABt=/'/g,TBt=/"/g,Qen=/^(?:script|style|textarea|title)$/i,Err=n=>(r,...o)=>({_$litType$:n,strings:r,values:o}),krr=Err(1),$L=Symbol.for("lit-noChange"),dp=Symbol.for("lit-nothing"),$Bt=new WeakMap,G8=_P.createTreeWalker(_P,129);function Zen(n,r){if(!mHe(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return RBt!==void 0?RBt.createHTML(r):r}const Rrr=(n,r)=>{const o=n.length-1,l=[];let u,d=r===2?"":r===3?"":"",h=Yz;for(let w=0;w"?(h=u??Yz,A=-1):E[1]===void 0?A=-2:(A=h.lastIndex-E[2].length,y=E[1],h=E[3]===void 0?n8:E[3]==='"'?TBt:ABt):h===TBt||h===ABt?h=n8:h===xBt||h===CBt?h=Yz:(h=n8,u=void 0);const R=h===n8&&n[w+1].startsWith("/>")?" ":"";d+=h===Yz?v+_rr:A>=0?(l.push(y),v.slice(0,A)+Jen+v.slice(A)+cT+R):v+cT+(A===-2?w:R)}return[Zen(n,d+(n[o]||"")+(r===2?"":r===3?"":"")),l]};class lX{constructor({strings:r,_$litType$:o},l){let u;this.parts=[];let d=0,h=0;const w=r.length-1,v=this.parts,[y,E]=Rrr(r,o);if(this.el=lX.createElement(y,l),G8.currentNode=this.el.content,o===2||o===3){const A=this.el.content.firstChild;A.replaceWith(...A.childNodes)}for(;(u=G8.nextNode())!==null&&v.length0){u.textContent=Fde?Fde.emptyScript:"";for(let R=0;R2||l[0]!==""||l[1]!==""?(this._$AH=Array(l.length-1).fill(new String),this.strings=l):this._$AH=dp}_$AI(r,o=this,l,u){const d=this.strings;let h=!1;if(d===void 0)r=IL(this,r,o,0),h=!sX(r)||r!==this._$AH&&r!==$L,h&&(this._$AH=r);else{const w=r;let v,y;for(r=d[0],v=0;v{const l=(o==null?void 0:o.renderBefore)??r;let u=l._$litPart$;if(u===void 0){const d=(o==null?void 0:o.renderBefore)??null;l._$litPart$=u=new aJ(r.insertBefore(oX(),d),d,void 0,o??{})}return u._$AI(n),u};/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */class sq extends yD{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var o;const r=super.createRenderRoot();return(o=this.renderOptions).renderBefore??(o.renderBefore=r.firstChild),r}update(r){const o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(r),this._$Do=Srr(o,this.renderRoot,this.renderOptions)}connectedCallback(){var r;super.connectedCallback(),(r=this._$Do)==null||r.setConnected(!0)}disconnectedCallback(){var r;super.disconnectedCallback(),(r=this._$Do)==null||r.setConnected(!1)}render(){return IL}}var dYt;sq._$litElement$=!0,sq.finalized=!0,(dYt=globalThis.litElementHydrateSupport)==null||dYt.call(globalThis,{LitElement:sq});const eNe=globalThis.litElementPolyfillSupport;eNe==null||eNe({LitElement:sq});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");var l1=navigator.userAgent,Xen=navigator.platform,YR=/gecko\/\d/i.test(l1),Jen=/MSIE \d/.test(l1),Yen=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(l1),Tpe=/Edge\/(\d+)/.exec(l1),ta=Jen||Yen||Tpe,Yc=ta&&(Jen?document.documentMode||6:+(Tpe||Yen)[1]),Gb=!Tpe&&/WebKit\//.test(l1),Err=Gb&&/Qt\/\d+\.\d+/.test(l1),$pe=!Tpe&&/Chrome\//.test(l1),CS=/Opera\//.test(l1),Ipe=/Apple Computer/.test(navigator.vendor),krr=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(l1),Rrr=/PhantomJS/.test(l1),cJ=Ipe&&(/Mobile\/\w+/.test(l1)||navigator.maxTouchPoints>2),Ppe=/Android/.test(l1),cX=cJ||Ppe||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(l1),sv=cJ||/Mac/.test(Xen),xrr=/\bCrOS\b/.test(l1),Crr=/win/i.test(Xen),Z8=CS&&l1.match(/Version\/(\d*\.\d*)/);Z8&&(Z8=Number(Z8[1]));Z8&&Z8>=15&&(CS=!1,Gb=!0);var RBt=sv&&(Err||CS&&(Z8==null||Z8<12.11)),dHe=YR||ta&&Yc>=9;function OL(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var zP=function(n,r){let o=n.className,l=OL(r).exec(o);if(l){let u=o.slice(l.index+l[0].length);n.className=o.slice(0,l.index)+(u?l[1]+u:"")}};function ET(n){for(let r=n.childNodes.length;r>0;--r)n.removeChild(n.firstChild);return n}function im(n,r){return ET(n).appendChild(r)}function bo(n,r,o,l){let u=document.createElement(n);if(o&&(u.className=o),l&&(u.style.cssText=l),typeof r=="string")u.appendChild(document.createTextNode(r));else if(r)for(let d=0;d=r)return h+(r-d);h+=w-d,h+=o-h%o,d=w+1}}var NL=class{constructor(){this.id=null,this.f=null,this.time=0,this.handler=hHe(this.onTimeout,this)}onTimeout(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)}set(n,r){this.f=r;const o=+new Date+n;(!this.id||o=r)return l+Math.min(h,r-u);if(u+=d-l,u+=o-u%o,l=d+1,u>=r)return l}}var rue=[""];function pHe(n){for(;rue.length<=n;)rue.push($a(rue)+" ");return rue[n]}function $a(n){return n[n.length-1]}function Npe(n,r){let o=[];for(let l=0;l"€"&&(n.toUpperCase()!=n.toLowerCase()||Trr.test(n))}function Dfe(n,r){return r?r.source.indexOf("\\w")>-1&&ije(n)?!0:r.test(n):ije(n)}function CBt(n){for(let r in n)if(n.hasOwnProperty(r)&&n[r])return!1;return!0}var $rr=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function oje(n){return n.charCodeAt(0)>=768&&$rr.test(n)}function etn(n,r,o){for(;(o<0?r>0:ro?-1:1;for(;;){if(r==o)return r;let u=(r+o)/2,d=l<0?Math.ceil(u):Math.floor(u);if(d==r)return n(d)?r:o;n(d)?o=d:r=d+l}}function Irr(n,r,o,l){if(!n)return l(r,o,"ltr",0);let u=!1;for(let d=0;dr||r==o&&h.to==r)&&(l(Math.max(h.from,r),Math.min(h.to,o),h.level==1?"rtl":"ltr",d),u=!0)}u||l(r,o,"ltr")}var CK=null;function dX(n,r,o){let l;CK=null;for(let u=0;ur)return u;d.to==r&&(d.from!=d.to&&o=="before"?l=u:CK=u),d.from==r&&(d.from!=d.to&&o!="before"?l=u:CK=u)}return l??CK}var Prr=function(){let n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function o(y){return y<=247?n.charAt(y):1424<=y&&y<=1524?"R":1536<=y&&y<=1785?r.charAt(y-1536):1774<=y&&y<=2220?"r":8192<=y&&y<=8203?"w":y==8204?"b":"L"}let l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,d=/[LRr]/,h=/[Lb1n]/,w=/[1n]/;function v(y,E,A){this.level=y,this.from=E,this.to=A}return function(y,E){let A=E=="ltr"?"L":"R";if(y.length==0||E=="ltr"&&!l.test(y))return!1;let C=y.length,R=[];for(let L=0;L-1&&(l[r]=u.slice(0,d).concat(u.slice(d+1)))}}}function vd(n,r){let o=bHe(n,r);if(!o.length)return;let l=Array.prototype.slice.call(arguments,2);for(let u=0;u0}function aj(n){n.prototype.on=function(r,o){mo(this,r,o)},n.prototype.off=function(r,o){em(this,r,o)}}function i1(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function rtn(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function sje(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function hX(n){i1(n),rtn(n)}function gHe(n){return n.target||n.srcElement}function itn(n){let r=n.which;return r==null&&(n.button&1?r=1:n.button&2?r=3:n.button&4&&(r=2)),sv&&n.ctrlKey&&r==1&&(r=3),r}var Orr=function(){if(ta&&Yc<9)return!1;let n=bo("div");return"draggable"in n||"dragDrop"in n}(),rNe;function Nrr(n){if(rNe==null){let o=bo("span","​");im(n,bo("span",[o,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(rNe=o.offsetWidth<=1&&o.offsetHeight>2&&!(ta&&Yc<8))}let r=rNe?bo("span","​"):bo("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}var iNe;function Mrr(n){if(iNe!=null)return iNe;let r=im(n,document.createTextNode("AخA")),o=EP(r,0,1).getBoundingClientRect(),l=EP(r,1,2).getBoundingClientRect();return ET(n),!o||o.left==o.right?!1:iNe=l.right-o.right<3}var wHe=` + */class oq extends mD{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var o;const r=super.createRenderRoot();return(o=this.renderOptions).renderBefore??(o.renderBefore=r.firstChild),r}update(r){const o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(r),this._$Do=Irr(o,this.renderRoot,this.renderOptions)}connectedCallback(){var r;super.connectedCallback(),(r=this._$Do)==null||r.setConnected(!0)}disconnectedCallback(){var r;super.disconnectedCallback(),(r=this._$Do)==null||r.setConnected(!1)}render(){return $L}}var wYt;oq._$litElement$=!0,oq.finalized=!0,(wYt=globalThis.litElementHydrateSupport)==null||wYt.call(globalThis,{LitElement:oq});const iNe=globalThis.litElementPolyfillSupport;iNe==null||iNe({LitElement:oq});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");var l1=navigator.userAgent,etn=navigator.platform,YR=/gecko\/\d/i.test(l1),ttn=/MSIE \d/.test(l1),ntn=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(l1),Ppe=/Edge\/(\d+)/.exec(l1),ta=ttn||ntn||Ppe,Yc=ta&&(ttn?document.documentMode||6:+(Ppe||ntn)[1]),Gb=!Ppe&&/WebKit\//.test(l1),Prr=Gb&&/Qt\/\d+\.\d+/.test(l1),Ope=!Ppe&&/Chrome\//.test(l1),CS=/Opera\//.test(l1),Npe=/Apple Computer/.test(navigator.vendor),Orr=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(l1),Nrr=/PhantomJS/.test(l1),cJ=Npe&&(/Mobile\/\w+/.test(l1)||navigator.maxTouchPoints>2),Mpe=/Android/.test(l1),aX=cJ||Mpe||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(l1),ov=cJ||/Mac/.test(etn),Mrr=/\bCrOS\b/.test(l1),Drr=/win/i.test(etn),Z8=CS&&l1.match(/Version\/(\d*\.\d*)/);Z8&&(Z8=Number(Z8[1]));Z8&&Z8>=15&&(CS=!1,Gb=!0);var IBt=ov&&(Prr||CS&&(Z8==null||Z8<12.11)),yHe=YR||ta&&Yc>=9;function PL(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var VP=function(n,r){let o=n.className,l=PL(r).exec(o);if(l){let u=o.slice(l.index+l[0].length);n.className=o.slice(0,l.index)+(u?l[1]+u:"")}};function ET(n){for(let r=n.childNodes.length;r>0;--r)n.removeChild(n.firstChild);return n}function im(n,r){return ET(n).appendChild(r)}function bo(n,r,o,l){let u=document.createElement(n);if(o&&(u.className=o),l&&(u.style.cssText=l),typeof r=="string")u.appendChild(document.createTextNode(r));else if(r)for(let d=0;d=r)return h+(r-d);h+=w-d,h+=o-h%o,d=w+1}}var OL=class{constructor(){this.id=null,this.f=null,this.time=0,this.handler=vHe(this.onTimeout,this)}onTimeout(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)}set(n,r){this.f=r;const o=+new Date+n;(!this.id||o=r)return l+Math.min(h,r-u);if(u+=d-l,u+=o-u%o,l=d+1,u>=r)return l}}var oue=[""];function _He(n){for(;oue.length<=n;)oue.push($a(oue)+" ");return oue[n]}function $a(n){return n[n.length-1]}function Lpe(n,r){let o=[];for(let l=0;l"€"&&(n.toUpperCase()!=n.toLowerCase()||jrr.test(n))}function jfe(n,r){return r?r.source.indexOf("\\w")>-1&&fje(n)?!0:r.test(n):fje(n)}function OBt(n){for(let r in n)if(n.hasOwnProperty(r)&&n[r])return!1;return!0}var Frr=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function dje(n){return n.charCodeAt(0)>=768&&Frr.test(n)}function otn(n,r,o){for(;(o<0?r>0:ro?-1:1;for(;;){if(r==o)return r;let u=(r+o)/2,d=l<0?Math.ceil(u):Math.floor(u);if(d==r)return n(d)?r:o;n(d)?o=d:r=d+l}}function Brr(n,r,o,l){if(!n)return l(r,o,"ltr",0);let u=!1;for(let d=0;dr||r==o&&h.to==r)&&(l(Math.max(h.from,r),Math.min(h.to,o),h.level==1?"rtl":"ltr",d),u=!0)}u||l(r,o,"ltr")}var xK=null;function fX(n,r,o){let l;xK=null;for(let u=0;ur)return u;d.to==r&&(d.from!=d.to&&o=="before"?l=u:xK=u),d.from==r&&(d.from!=d.to&&o!="before"?l=u:xK=u)}return l??xK}var Wrr=function(){let n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function o(y){return y<=247?n.charAt(y):1424<=y&&y<=1524?"R":1536<=y&&y<=1785?r.charAt(y-1536):1774<=y&&y<=2220?"r":8192<=y&&y<=8203?"w":y==8204?"b":"L"}let l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,d=/[LRr]/,h=/[Lb1n]/,w=/[1n]/;function v(y,E,A){this.level=y,this.from=E,this.to=A}return function(y,E){let A=E=="ltr"?"L":"R";if(y.length==0||E=="ltr"&&!l.test(y))return!1;let C=y.length,R=[];for(let L=0;L-1&&(l[r]=u.slice(0,d).concat(u.slice(d+1)))}}}function vd(n,r){let o=SHe(n,r);if(!o.length)return;let l=Array.prototype.slice.call(arguments,2);for(let u=0;u0}function lj(n){n.prototype.on=function(r,o){mo(this,r,o)},n.prototype.off=function(r,o){em(this,r,o)}}function i1(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function atn(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function hje(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function dX(n){i1(n),atn(n)}function EHe(n){return n.target||n.srcElement}function ctn(n){let r=n.which;return r==null&&(n.button&1?r=1:n.button&2?r=3:n.button&4&&(r=2)),ov&&n.ctrlKey&&r==1&&(r=3),r}var Hrr=function(){if(ta&&Yc<9)return!1;let n=bo("div");return"draggable"in n||"dragDrop"in n}(),lNe;function Urr(n){if(lNe==null){let o=bo("span","​");im(n,bo("span",[o,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(lNe=o.offsetWidth<=1&&o.offsetHeight>2&&!(ta&&Yc<8))}let r=lNe?bo("span","​"):bo("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}var aNe;function Grr(n){if(aNe!=null)return aNe;let r=im(n,document.createTextNode("AخA")),o=SP(r,0,1).getBoundingClientRect(),l=SP(r,1,2).getBoundingClientRect();return ET(n),!o||o.left==o.right?!1:aNe=l.right-o.right<3}var kHe=` b`.split(/\n/).length!=3?n=>{let r=0,o=[],l=n.length;for(;r<=l;){let u=n.indexOf(` -`,r);u==-1&&(u=n.length);let d=n.slice(r,n.charAt(u-1)=="\r"?u-1:u),h=d.indexOf("\r");h!=-1?(o.push(d.slice(0,h)),r+=h+1):(o.push(d),r=u+1)}return o}:n=>n.split(/\r\n?|\n/),Drr=window.getSelection?n=>{try{return n.selectionStart!=n.selectionEnd}catch{return!1}}:n=>{let r;try{r=n.ownerDocument.selection.createRange()}catch{}return!r||r.parentElement()!=n?!1:r.compareEndPoints("StartToEnd",r)!=0},Lrr=(()=>{let n=bo("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")})(),oNe=null;function jrr(n){if(oNe!=null)return oNe;let r=im(n,bo("span","x")),o=r.getBoundingClientRect(),l=EP(r,0,1).getBoundingClientRect();return oNe=Math.abs(o.left-l.left)>1}var mHe={},jD={};function Frr(n,r){arguments.length>2&&(r.dependencies=Array.prototype.slice.call(arguments,2)),mHe[n]=r}function Brr(n,r){jD[n]=r}function Lde(n){if(typeof n=="string"&&jD.hasOwnProperty(n))n=jD[n];else if(n&&typeof n.name=="string"&&jD.hasOwnProperty(n.name)){let r=jD[n.name];typeof r=="string"&&(r={name:r}),n=Zen(r,n),n.name=r.name}else{if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return Lde("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return Lde("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function yHe(n,r){r=Lde(r);let o=mHe[r.name];if(!o)return yHe(n,"text/plain");let l=o(n,r);if(tL.hasOwnProperty(r.name)){let u=tL[r.name];for(let d in u)u.hasOwnProperty(d)&&(l.hasOwnProperty(d)&&(l["_"+d]=l[d]),l[d]=u[d])}if(l.name=r.name,r.helperType&&(l.helperType=r.helperType),r.modeProps)for(let u in r.modeProps)l[u]=r.modeProps[u];return l}var tL={};function Wrr(n,r){let o=tL.hasOwnProperty(n)?tL[n]:tL[n]={};kP(r,o)}function eP(n,r){if(r===!0)return r;if(n.copyState)return n.copyState(r);let o={};for(let l in r){let u=r[l];u instanceof Array&&(u=u.concat([])),o[l]=u}return o}function vHe(n,r){let o;for(;n.innerMode&&(o=n.innerMode(r),!(!o||o.mode==n));)r=o.state,n=o.mode;return o||{mode:n,state:r}}function otn(n,r,o){return n.startState?n.startState(r,o):!0}var Hrr=class{constructor(n,r,o){this.pos=this.start=0,this.string=n,this.tabSize=r||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=o}eol(){return this.pos>=this.string.length}sol(){return this.pos==this.lineStart}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.posr}eatSpace(){let n=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>n}skipToEnd(){this.pos=this.string.length}skipTo(n){let r=this.string.indexOf(n,this.pos);if(r>-1)return this.pos=r,!0}backUp(n){this.pos-=n}column(){return this.lastColumnPoso?d.toLowerCase():d,u=this.string.substr(this.pos,n.length);if(l(u)==l(n))return r!==!1&&(this.pos+=n.length),!0}else{let l=this.string.slice(this.pos).match(n);return l&&l.index>0?null:(l&&r!==!1&&(this.pos+=l[0].length),l)}}current(){return this.string.slice(this.start,this.pos)}hideFirstChars(n,r){this.lineStart+=n;try{return r()}finally{this.lineStart-=n}}lookAhead(n){let r=this.lineOracle;return r&&r.lookAhead(n)}baseToken(){let n=this.lineOracle;return n&&n.baseToken(this.pos)}},Mpe=Hrr;function Bi(n,r){if(r-=n.first,r<0||r>=n.size)throw new Error("There is no line "+(r+n.first)+" in the document.");let o=n;for(;!o.lines;)for(let l=0;;++l){let u=o.children[l],d=u.chunkSize();if(r{let h=d.text;u==o.line&&(h=h.slice(0,o.ch)),u==r.line&&(h=h.slice(r.ch)),l.push(h),++u}),l}function sNe(n,r,o){let l=[];return n.iter(r,o,u=>{l.push(u.text)}),l}function nk(n,r){let o=r-n.height;if(o)for(let l=n;l;l=l.parent)l.height+=o}function za(n){if(n.parent==null)return null;let r=n.parent,o=qp(r.lines,n);for(let l=r.parent;l;r=l,l=l.parent)for(let u=0;l.children[u]!=r;++u)o+=l.children[u].chunkSize();return o+r.first}function V8(n,r){let o=n.first;e:do{for(let u=0;u=n.first&&ro?ur(o,Bi(n,o).text.length):Urr(r,Bi(n,r.line).text.length)}function Urr(n,r){let o=n.ch;return o==null||o>r?ur(n.line,r):o<0?ur(n.line,0):n}function ABt(n,r){let o=[];for(let l=0;lthis.maxLookAhead&&(this.maxLookAhead=r),o}baseToken(r){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=r;)this.baseTokenPos+=2;let o=this.baseTokens[this.baseTokenPos+1];return{type:o&&o.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-r}}nextLine(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--}static fromSaved(r,o,l){return o instanceof jde?new aq(r,eP(r.mode,o.state),l,o.lookAhead):new aq(r,eP(r.mode,o),l)}save(r){let o=r!==!1?eP(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new jde(o,this.maxLookAhead):o}};function ltn(n,r,o,l){let u=[n.state.modeGen],d={};PBt(n,r.text,n.doc.mode,o,(w,v)=>u.push(w,v),d,l);let h=o.state;for(let w=0;w{let R=y;for(;EA&&u.splice(y,1,A,u[y+1],O),y+=2,E=Math.min(A,O)}if(C)if(v.opaque)u.splice(R,y-R,A,"overlay "+C),y=R+2;else for(;Rn.options.maxHighlightLength&&eP(n.doc.mode,l.state),d=ltn(n,r,l);u&&(l.state=u),r.stateAfter=l.save(!u),r.styles=d.styles,d.classes?r.styleClasses=d.classes:r.styleClasses&&(r.styleClasses=null),o===n.doc.highlightFrontier&&(n.doc.modeFrontier=Math.max(n.doc.modeFrontier,++n.doc.highlightFrontier))}return r.styles}function uJ(n,r,o){let l=n.doc,u=n.display;if(!l.mode.startState)return new aq(l,!0,r);let d=Grr(n,r,o),h=d>l.first&&Bi(l,d-1).stateAfter,w=h?aq.fromSaved(l,h,d):new aq(l,otn(l.mode),d);return l.iter(d,r,v=>{SHe(n,v.text,w);let y=w.line;v.stateAfter=y==r-1||y%5==0||y>=u.viewFrom&&yr.start)return d}throw new Error("Mode "+n.name+" failed to advance stream.")}var TBt=class{constructor(n,r,o){this.start=n.start,this.end=n.pos,this.string=n.current(),this.type=r||null,this.state=o}};function $Bt(n,r,o,l){let u=n.doc,d=u.mode,h;r=ts(u,r);let w=Bi(u,r.line),v=uJ(n,r.line,o),y=new Mpe(w.text,n.options.tabSize,v),E;for(l&&(E=[]);(l||y.posn.options.maxHighlightLength?(w=!1,h&&SHe(n,r,l,E.pos),E.pos=r.length,A=null):A=IBt(EHe(o,E,l.state,C),d),C){let R=C[0].name;R&&(A="m-"+(A?R+" "+A:R))}if(!w||y!=A){for(;vh;--w){if(w<=d.first)return d.first;let v=Bi(d,w-1),y=v.stateAfter;if(y&&(!o||w+(y instanceof jde?y.lookAhead:0)<=d.modeFrontier))return w;let E=ev(v.text,null,n.options.tabSize);(u==null||l>E)&&(u=w-1,l=E)}return u}function Vrr(n,r){if(n.modeFrontier=Math.min(n.modeFrontier,r),n.highlightFrontiero;l--){let u=Bi(n,l).stateAfter;if(u&&(!(u instanceof jde)||l+u.lookAhead=r:d.to>r);(l||(l=[])).push(new jpe(h,d.from,v?null:d.to))}}return l}function Yrr(n,r,o){let l;if(n)for(let u=0;u=r:d.to>r)||d.from==r&&h.type=="bookmark"&&(!o||d.marker.insertLeft)){let v=d.from==null||(h.inclusiveLeft?d.from<=r:d.from0&&w)for(let O=0;O{if(d.markedSpans)for(let h=0;h0)continue;let E=[v,1],A=ns(y.from,w.from),C=ns(y.to,w.to);(A<0||!h.inclusiveLeft&&!A)&&E.push({from:y.from,to:w.from}),(C>0||!h.inclusiveRight&&!C)&&E.push({from:w.to,to:y.to}),u.splice.apply(u,E),v+=E.length-3}}return u}function ftn(n){let r=n.markedSpans;if(r){for(let o=0;or)&&(!l||kHe(l,d.marker)<0)&&(l=d.marker)}return l}function NBt(n,r,o,l,u){let d=Bi(n,r),h=QR&&d.markedSpans;if(h)for(let w=0;w=0&&A<=0||E<=0&&A>=0)&&(E<=0&&(v.marker.inclusiveRight&&u.inclusiveLeft?ns(y.to,o)>=0:ns(y.to,o)>0)||E>=0&&(v.marker.inclusiveRight&&u.inclusiveLeft?ns(y.from,l)<=0:ns(y.from,l)<0)))return!0}}function rk(n){let r;for(;r=ptn(n);)n=r.find(-1,!0).line;return n}function eir(n){let r;for(;r=Fpe(n);)n=r.find(1,!0).line;return n}function tir(n){let r,o;for(;r=Fpe(n);)n=r.find(1,!0).line,(o||(o=[])).push(n);return o}function RHe(n,r){let o=Bi(n,r),l=rk(o);return o==l?r:za(l)}function btn(n,r){if(r>n.lastLine())return r;let o=Bi(n,r),l;if(!RT(n,o))return r;for(;l=Fpe(o);)o=l.find(1,!0).line;return za(o)+1}function RT(n,r){let o=QR&&r.markedSpans;if(o){for(let l,u=0;u{let u=Wde(l);u>r.maxLineLength&&(r.maxLineLength=u,r.maxLine=l)})}var gX=class{constructor(n,r,o){this.text=n,dtn(this,r),this.height=o?o(this):1}lineNo(){return za(this)}};aj(gX);function nir(n,r,o,l){n.text=r,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),ftn(n),dtn(n,o);let u=l?l(n):1;u!=n.height&&nk(n,u)}function rir(n){n.parent=null,ftn(n)}var iir={},oir={};function MBt(n,r){if(!n||/^\s*$/.test(n))return null;let o=r.addModeClass?oir:iir;return o[n]||(o[n]=n.replace(/\S+/g,"cm-$&"))}function gtn(n,r){let o=eL("span",null,null,Gb?"padding-right: .1px":null),l={pre:eL("pre",[o],"CodeMirror-line"),content:o,col:0,pos:0,cm:n,trailingSpace:!1,splitSpaces:n.getOption("lineWrapping")};r.measure={};for(let u=0;u<=(r.rest?r.rest.length:0);u++){let d=u?r.rest[u-1]:r.line,h;l.pos=0,l.addToken=lir,Mrr(n.display.measure)&&(h=Rx(d,n.doc.direction))&&(l.addToken=cir(l.addToken,h)),l.map=[];let w=r!=n.display.externalMeasured&&za(d);uir(d,l,atn(n,d,w)),d.styleClasses&&(d.styleClasses.bgClass&&(l.bgClass=tNe(d.styleClasses.bgClass,l.bgClass||"")),d.styleClasses.textClass&&(l.textClass=tNe(d.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(Nrr(n.display.measure))),u==0?(r.measure.map=l.map,r.measure.cache={}):((r.measure.maps||(r.measure.maps=[])).push(l.map),(r.measure.caches||(r.measure.caches=[])).push({}))}if(Gb){let u=l.content.lastChild;(/\bcm-tab\b/.test(u.className)||u.querySelector&&u.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return vd(n,"renderLine",n,r.line,l.pre),l.pre.className&&(l.textClass=tNe(l.pre.className,l.textClass||"")),l}function sir(n){let r=bo("span","•","cm-invalidchar");return r.title="\\u"+n.charCodeAt(0).toString(16),r.setAttribute("aria-label",r.title),r}function lir(n,r,o,l,u,d,h){if(!r)return;let w=n.splitSpaces?air(r,n.trailingSpace):r,v=n.cm.state.specialChars,y=!1,E;if(!v.test(r))n.col+=r.length,E=document.createTextNode(w),n.map.push(n.pos,n.pos+r.length,E),ta&&Yc<9&&(y=!0),n.pos+=r.length;else{E=document.createDocumentFragment();let A=0;for(;;){v.lastIndex=A;let C=v.exec(r),R=C?C.index-A:r.length-A;if(R){let M=document.createTextNode(w.slice(A,A+R));ta&&Yc<9?E.appendChild(bo("span",[M])):E.appendChild(M),n.map.push(n.pos,n.pos+R,M),n.col+=R,n.pos+=R}if(!C)break;A+=R+1;let O;if(C[0]==" "){let M=n.cm.options.tabSize,L=M-n.col%M;O=E.appendChild(bo("span",pHe(L),"cm-tab")),O.setAttribute("role","presentation"),O.setAttribute("cm-text"," "),n.col+=L}else C[0]=="\r"||C[0]==` -`?(O=E.appendChild(bo("span",C[0]=="\r"?"␍":"␤","cm-invalidchar")),O.setAttribute("cm-text",C[0]),n.col+=1):(O=n.cm.options.specialCharPlaceholder(C[0]),O.setAttribute("cm-text",C[0]),ta&&Yc<9?E.appendChild(bo("span",[O])):E.appendChild(O),n.col+=1);n.map.push(n.pos,n.pos+1,O),n.pos++}}if(n.trailingSpace=w.charCodeAt(r.length-1)==32,o||l||u||y||d||h){let A=o||"";l&&(A+=l),u&&(A+=u);let C=bo("span",[E],A,d);if(h)for(let R in h)h.hasOwnProperty(R)&&R!="style"&&R!="class"&&C.setAttribute(R,h[R]);return n.content.appendChild(C)}n.content.appendChild(E)}function air(n,r){if(n.length>1&&!/ /.test(n))return n;let o=r,l="";for(let u=0;u{u=u?u+" cm-force-border":"cm-force-border";let y=o.pos,E=y+l.length;for(;;){let A;for(let C=0;Cy&&A.from<=y));C++);if(A.to>=E)return n(o,l,u,d,h,w,v);n(o,l.slice(0,A.to-y),u,d,null,w,v),d=null,l=l.slice(A.to-y),y=A.to}}}function DBt(n,r,o,l){let u=!l&&o.widgetNode;u&&n.map.push(n.pos,n.pos+r,u),!l&&n.cm.display.input.needsContentAttribute&&(u||(u=n.content.appendChild(document.createElement("span"))),u.setAttribute("cm-marker",o.id)),u&&(n.cm.display.input.setUneditable(u),n.content.appendChild(u)),n.pos+=r,n.trailingSpace=!1}function uir(n,r,o){let l=n.markedSpans,u=n.text,d=0;if(!l){for(let G=1;Gw||Le.collapsed&&pe.to==w&&pe.from==w)){if(pe.to!=null&&pe.to!=w&&C>pe.to&&(C=pe.to,O=""),Le.className&&(R+=" "+Le.className),Le.css&&(A=(A?A+";":"")+Le.css),Le.startStyle&&pe.from==w&&(M+=" "+Le.startStyle),Le.endStyle&&pe.to==C&&(Q||(Q=[])).push(Le.endStyle,pe.to),Le.title&&((H||(H={})).title=Le.title),Le.attributes)for(let Ee in Le.attributes)(H||(H={}))[Ee]=Le.attributes[Ee];Le.collapsed&&(!L||kHe(L.marker,Le)<0)&&(L=pe)}else pe.from>w&&C>pe.from&&(C=pe.from)}if(Q)for(let te=0;te=h)break;let G=Math.min(h,C);for(;;){if(y){let j=w+y.length;if(!L){let Q=j>G?y.slice(0,G-w):y;r.addToken(r,Q,E?E+R:R,M,w+Q.length==C?O:"",A,H)}if(j>=G){y=y.slice(G-w),w=G;break}w=j,M=""}y=u.slice(d,d=o[v++]),E=MBt(o[v++],r.cm.options)}}}function wtn(n,r,o){this.line=r,this.rest=tir(r),this.size=this.rest?za($a(this.rest))-o+1:1,this.node=this.text=null,this.hidden=RT(n,r)}function Lfe(n,r,o){let l=[],u;for(let d=r;do[d].apply(null,l))}function pir(){let n=cq;cq=null;for(let r=0;r2&&d.push((v.bottom+y.top)/2-o.top)}}d.push(o.bottom-o.top)}}function Etn(n,r,o){if(n.line==r)return{map:n.measure.map,cache:n.measure.cache};for(let l=0;lo)return{map:n.measure.maps[l],cache:n.measure.caches[l],before:!0}}function _ir(n,r){r=rk(r);let o=za(r),l=n.display.externalMeasured=new wtn(n.doc,r,o);l.lineN=o;let u=l.built=gtn(n,l);return l.text=u.pre,im(n.display.lineMeasure,u.pre),l}function ktn(n,r,o,l){return ok(n,cj(n,r),o,l)}function $He(n,r){if(r>=n.display.viewFrom&&r=o.lineN&&rr)&&(d=v-w,u=d-1,r>=v&&(h="right")),u!=null){if(l=n[y+2],w==v&&o==(l.insertLeft?"left":"right")&&(h=o),o=="left"&&u==0)for(;y&&n[y-2]==n[y-3]&&n[y-1].insertLeft;)l=n[(y-=3)+2],h="left";if(o=="right"&&u==v-w)for(;y=0&&(o=n[l]).left==o.right;l--);return o}function Eir(n,r,o,l){let u=xtn(r.map,o,l),d=u.node,h=u.start,w=u.end,v=u.collapse,y;if(d.nodeType==3){for(let G=0;G<4;G++){for(;h&&oje(r.line.text.charAt(u.coverStart+h));)--h;for(;u.coverStart+w0&&(v=l="right");let G;n.options.lineWrapping&&(G=d.getClientRects()).length>1?y=G[l=="right"?G.length-1:0]:y=d.getBoundingClientRect()}if(ta&&Yc<9&&!h&&(!y||!y.left&&!y.right)){let G=d.parentNode.getClientRects()[0];G?y={left:G.left,right:G.left+uj(n.display),top:G.top,bottom:G.bottom}:y=Rtn}let E=y.top-r.rect.top,A=y.bottom-r.rect.top,C=(E+A)/2,R=r.view.measure.heights,O=0;for(;O=l.text.length?(v=l.text.length,y="before"):v<=0&&(v=0,y="after"),!w)return h(y=="before"?v-1:v,y=="before");function E(O,M,L){let H=w[M],G=H.level==1;return h(L?O-1:O,G!=L)}let A=dX(w,v,y),C=CK,R=E(v,A,y=="before");return C!=null&&(R.other=E(v,C,y!="before")),R}function FBt(n,r){let o=0;r=ts(n.doc,r),n.options.lineWrapping||(o=uj(n.display)*r.ch);let l=Bi(n.doc,r.line),u=ZR(l)+Bpe(n.display);return{left:o,right:o,top:u,bottom:u+l.height}}function dje(n,r,o,l,u){let d=ur(n,r,o);return d.xRel=u,l&&(d.outside=l),d}function PHe(n,r,o){let l=n.doc;if(o+=n.display.viewOffset,o<0)return dje(l.first,0,null,-1,-1);let u=V8(l,o),d=l.first+l.size-1;if(u>d)return dje(l.first+l.size-1,Bi(l,d).text.length,null,1,1);r<0&&(r=0);let h=Bi(l,u);for(;;){let w=Rir(n,h,u,r,o),v=Zrr(h,w.ch+(w.xRel>0||w.outside>0?1:0));if(!v)return w;let y=v.find(1);if(y.line==u)return y;h=Bi(l,u=y.line)}}function Itn(n,r,o,l){l-=IHe(r);let u=r.text.length,d=fX(h=>ok(n,o,h-1).bottom<=l,u,0);return u=fX(h=>ok(n,o,h).top>l,d,u),{begin:d,end:u}}function Ptn(n,r,o,l){o||(o=cj(n,r));let u=Wpe(n,r,ok(n,o,l),"line").top;return Itn(n,r,o,u)}function hje(n,r,o,l){return n.bottom<=o?!1:n.top>o?!0:(l?n.left:n.right)>r}function Rir(n,r,o,l,u){u-=ZR(r);let d=cj(n,r),h=IHe(r),w=0,v=r.text.length,y=!0,E=Rx(r,n.doc.direction);if(E){let H=(n.options.lineWrapping?Cir:xir)(n,r,o,d,E,l,u);y=H.level!=1,w=y?H.from:H.to-1,v=y?H.to:H.from-1}let A=null,C=null,R=fX(H=>{let G=ok(n,d,H);return G.top+=h,G.bottom+=h,hje(G,l,u,!1)?(G.top<=u&&G.left<=l&&(A=H,C=G),!0):!1},w,v),O,M,L=!1;if(C){let H=l-C.left=H.bottom?1:0}return R=etn(r.text,R,1),dje(o,R,M,L,l-O)}function xir(n,r,o,l,u,d,h){let w=fX(y=>{let E=u[y],A=E.level!=1;return hje(SS(n,ur(o,A?E.to:E.from,A?"before":"after"),"line",r,l),d,h,!0)},0,u.length-1),v=u[w];if(w>0){let y=v.level!=1,E=SS(n,ur(o,y?v.from:v.to,y?"after":"before"),"line",r,l);hje(E,d,h,!0)&&E.top>h&&(v=u[w-1])}return v}function Cir(n,r,o,l,u,d,h){let{begin:w,end:v}=Itn(n,r,l,h);/\s/.test(r.text.charAt(v-1))&&v--;let y=null,E=null;for(let A=0;A=v||C.to<=w)continue;let R=C.level!=1,O=ok(n,l,R?Math.min(v,C.to)-1:Math.max(w,C.from)).right,M=OM)&&(y=C,E=M)}return y||(y=u[u.length-1]),y.fromv&&(y={from:y.from,to:v,level:y.level}),y}var r8;function ML(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(r8==null){r8=bo("pre",null,"CodeMirror-line-like");for(let o=0;o<49;++o)r8.appendChild(document.createTextNode("x")),r8.appendChild(bo("br"));r8.appendChild(document.createTextNode("x"))}im(n.measure,r8);let r=r8.offsetHeight/50;return r>3&&(n.cachedTextHeight=r),ET(n.measure),r||1}function uj(n){if(n.cachedCharWidth!=null)return n.cachedCharWidth;let r=bo("span","xxxxxxxxxx"),o=bo("pre",[r],"CodeMirror-line-like");im(n.measure,o);let l=r.getBoundingClientRect(),u=(l.right-l.left)/10;return u>2&&(n.cachedCharWidth=u),u||10}function OHe(n){let r=n.display,o={},l={},u=r.gutters.clientLeft;for(let d=r.gutters.firstChild,h=0;d;d=d.nextSibling,++h){let w=n.display.gutterSpecs[h].className;o[w]=d.offsetLeft+d.clientLeft+u,l[w]=d.clientWidth}return{fixedPos:NHe(r),gutterTotalWidth:r.gutters.offsetWidth,gutterLeft:o,gutterWidth:l,wrapperWidth:r.wrapper.clientWidth}}function NHe(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function Otn(n){let r=ML(n.display),o=n.options.lineWrapping,l=o&&Math.max(5,n.display.scroller.clientWidth/uj(n.display)-3);return u=>{if(RT(n.doc,u))return 0;let d=0;if(u.widgets)for(let h=0;h{let u=o(l);u!=l.height&&nk(l,u)})}function RP(n,r,o,l){let u=n.display;if(!o&&gHe(r).getAttribute("cm-not-content")=="true")return null;let d,h,w=u.lineSpace.getBoundingClientRect();try{d=r.clientX-w.left,h=r.clientY-w.top}catch{return null}let v=PHe(n,d,h),y;if(l&&v.xRel>0&&(y=Bi(n.doc,v.line).text).length==v.ch){let E=ev(y,y.length,n.options.tabSize)-y.length;v=ur(v.line,Math.max(0,Math.round((d-Stn(n.display).left)/uj(n.display))-E))}return v}function xP(n,r){if(r>=n.display.viewTo||(r-=n.display.viewFrom,r<0))return null;let o=n.display.view;for(let l=0;lr)&&(u.updateLineNumbers=r),n.curOp.viewChanged=!0,r>=u.viewTo)QR&&RHe(n.doc,r)u.viewFrom?z4(n):(u.viewFrom+=l,u.viewTo+=l);else if(r<=u.viewFrom&&o>=u.viewTo)z4(n);else if(r<=u.viewFrom){let h=iue(n,o,o+l,1);h?(u.view=u.view.slice(h.index),u.viewFrom=h.lineN,u.viewTo+=l):z4(n)}else if(o>=u.viewTo){let h=iue(n,r,r,-1);h?(u.view=u.view.slice(0,h.index),u.viewTo=h.lineN):z4(n)}else{let h=iue(n,r,r,-1),w=iue(n,o,o+l,1);h&&w?(u.view=u.view.slice(0,h.index).concat(Lfe(n,h.lineN,w.lineN)).concat(u.view.slice(w.index)),u.viewTo+=l):z4(n)}let d=u.externalMeasured;d&&(o=u.lineN&&r=l.viewTo)return;let d=l.view[xP(n,r)];if(d.node==null)return;let h=d.changes||(d.changes=[]);qp(h,o)==-1&&h.push(o)}function z4(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function iue(n,r,o,l){let u=xP(n,r),d,h=n.display.view;if(!QR||o==n.doc.first+n.doc.size)return{index:u,lineN:o};let w=n.display.viewFrom;for(let v=0;v0){if(u==h.length-1)return null;d=w+h[u].size-r,u++}else d=w-r;r+=d,o+=d}for(;RHe(n.doc,o)!=o;){if(u==(l<0?0:h.length-1))return null;o+=l*h[u-(l<0?1:0)].size,u+=l}return{index:u,lineN:o}}function Air(n,r,o){let l=n.display;l.view.length==0||r>=l.viewTo||o<=l.viewFrom?(l.view=Lfe(n,r,o),l.viewFrom=r):(l.viewFrom>r?l.view=Lfe(n,r,l.viewFrom).concat(l.view):l.viewFromo&&(l.view=l.view.slice(0,xP(n,o)))),l.viewTo=o}function BBt(n){let r=n.display.view,o=0;for(let l=0;l=n.display.viewTo||w.to().linen.split(/\r\n?|\n/),Vrr=window.getSelection?n=>{try{return n.selectionStart!=n.selectionEnd}catch{return!1}}:n=>{let r;try{r=n.ownerDocument.selection.createRange()}catch{}return!r||r.parentElement()!=n?!1:r.compareEndPoints("StartToEnd",r)!=0},zrr=(()=>{let n=bo("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")})(),cNe=null;function Krr(n){if(cNe!=null)return cNe;let r=im(n,bo("span","x")),o=r.getBoundingClientRect(),l=SP(r,0,1).getBoundingClientRect();return cNe=Math.abs(o.left-l.left)>1}var RHe={},LD={};function qrr(n,r){arguments.length>2&&(r.dependencies=Array.prototype.slice.call(arguments,2)),RHe[n]=r}function Xrr(n,r){LD[n]=r}function Bde(n){if(typeof n=="string"&&LD.hasOwnProperty(n))n=LD[n];else if(n&&typeof n.name=="string"&&LD.hasOwnProperty(n.name)){let r=LD[n.name];typeof r=="string"&&(r={name:r}),n=itn(r,n),n.name=r.name}else{if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return Bde("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return Bde("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function xHe(n,r){r=Bde(r);let o=RHe[r.name];if(!o)return xHe(n,"text/plain");let l=o(n,r);if(eL.hasOwnProperty(r.name)){let u=eL[r.name];for(let d in u)u.hasOwnProperty(d)&&(l.hasOwnProperty(d)&&(l["_"+d]=l[d]),l[d]=u[d])}if(l.name=r.name,r.helperType&&(l.helperType=r.helperType),r.modeProps)for(let u in r.modeProps)l[u]=r.modeProps[u];return l}var eL={};function Jrr(n,r){let o=eL.hasOwnProperty(n)?eL[n]:eL[n]={};EP(r,o)}function eP(n,r){if(r===!0)return r;if(n.copyState)return n.copyState(r);let o={};for(let l in r){let u=r[l];u instanceof Array&&(u=u.concat([])),o[l]=u}return o}function CHe(n,r){let o;for(;n.innerMode&&(o=n.innerMode(r),!(!o||o.mode==n));)r=o.state,n=o.mode;return o||{mode:n,state:r}}function utn(n,r,o){return n.startState?n.startState(r,o):!0}var Yrr=class{constructor(n,r,o){this.pos=this.start=0,this.string=n,this.tabSize=r||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=o}eol(){return this.pos>=this.string.length}sol(){return this.pos==this.lineStart}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.posr}eatSpace(){let n=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>n}skipToEnd(){this.pos=this.string.length}skipTo(n){let r=this.string.indexOf(n,this.pos);if(r>-1)return this.pos=r,!0}backUp(n){this.pos-=n}column(){return this.lastColumnPoso?d.toLowerCase():d,u=this.string.substr(this.pos,n.length);if(l(u)==l(n))return r!==!1&&(this.pos+=n.length),!0}else{let l=this.string.slice(this.pos).match(n);return l&&l.index>0?null:(l&&r!==!1&&(this.pos+=l[0].length),l)}}current(){return this.string.slice(this.start,this.pos)}hideFirstChars(n,r){this.lineStart+=n;try{return r()}finally{this.lineStart-=n}}lookAhead(n){let r=this.lineOracle;return r&&r.lookAhead(n)}baseToken(){let n=this.lineOracle;return n&&n.baseToken(this.pos)}},jpe=Yrr;function Bi(n,r){if(r-=n.first,r<0||r>=n.size)throw new Error("There is no line "+(r+n.first)+" in the document.");let o=n;for(;!o.lines;)for(let l=0;;++l){let u=o.children[l],d=u.chunkSize();if(r{let h=d.text;u==o.line&&(h=h.slice(0,o.ch)),u==r.line&&(h=h.slice(r.ch)),l.push(h),++u}),l}function uNe(n,r,o){let l=[];return n.iter(r,o,u=>{l.push(u.text)}),l}function nk(n,r){let o=r-n.height;if(o)for(let l=n;l;l=l.parent)l.height+=o}function za(n){if(n.parent==null)return null;let r=n.parent,o=qp(r.lines,n);for(let l=r.parent;l;r=l,l=l.parent)for(let u=0;l.children[u]!=r;++u)o+=l.children[u].chunkSize();return o+r.first}function V8(n,r){let o=n.first;e:do{for(let u=0;u=n.first&&ro?ur(o,Bi(n,o).text.length):Qrr(r,Bi(n,r.line).text.length)}function Qrr(n,r){let o=n.ch;return o==null||o>r?ur(n.line,r):o<0?ur(n.line,0):n}function NBt(n,r){let o=[];for(let l=0;lthis.maxLookAhead&&(this.maxLookAhead=r),o}baseToken(r){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=r;)this.baseTokenPos+=2;let o=this.baseTokens[this.baseTokenPos+1];return{type:o&&o.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-r}}nextLine(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--}static fromSaved(r,o,l){return o instanceof Wde?new lq(r,eP(r.mode,o.state),l,o.lookAhead):new lq(r,eP(r.mode,o),l)}save(r){let o=r!==!1?eP(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Wde(o,this.maxLookAhead):o}};function dtn(n,r,o,l){let u=[n.state.modeGen],d={};jBt(n,r.text,n.doc.mode,o,(w,v)=>u.push(w,v),d,l);let h=o.state;for(let w=0;w{let R=y;for(;EA&&u.splice(y,1,A,u[y+1],O),y+=2,E=Math.min(A,O)}if(C)if(v.opaque)u.splice(R,y-R,A,"overlay "+C),y=R+2;else for(;Rn.options.maxHighlightLength&&eP(n.doc.mode,l.state),d=dtn(n,r,l);u&&(l.state=u),r.stateAfter=l.save(!u),r.styles=d.styles,d.classes?r.styleClasses=d.classes:r.styleClasses&&(r.styleClasses=null),o===n.doc.highlightFrontier&&(n.doc.modeFrontier=Math.max(n.doc.modeFrontier,++n.doc.highlightFrontier))}return r.styles}function uJ(n,r,o){let l=n.doc,u=n.display;if(!l.mode.startState)return new lq(l,!0,r);let d=Zrr(n,r,o),h=d>l.first&&Bi(l,d-1).stateAfter,w=h?lq.fromSaved(l,h,d):new lq(l,utn(l.mode),d);return l.iter(d,r,v=>{THe(n,v.text,w);let y=w.line;v.stateAfter=y==r-1||y%5==0||y>=u.viewFrom&&yr.start)return d}throw new Error("Mode "+n.name+" failed to advance stream.")}var MBt=class{constructor(n,r,o){this.start=n.start,this.end=n.pos,this.string=n.current(),this.type=r||null,this.state=o}};function DBt(n,r,o,l){let u=n.doc,d=u.mode,h;r=ts(u,r);let w=Bi(u,r.line),v=uJ(n,r.line,o),y=new jpe(w.text,n.options.tabSize,v),E;for(l&&(E=[]);(l||y.posn.options.maxHighlightLength?(w=!1,h&&THe(n,r,l,E.pos),E.pos=r.length,A=null):A=LBt($He(o,E,l.state,C),d),C){let R=C[0].name;R&&(A="m-"+(A?R+" "+A:R))}if(!w||y!=A){for(;vh;--w){if(w<=d.first)return d.first;let v=Bi(d,w-1),y=v.stateAfter;if(y&&(!o||w+(y instanceof Wde?y.lookAhead:0)<=d.modeFrontier))return w;let E=Zy(v.text,null,n.options.tabSize);(u==null||l>E)&&(u=w-1,l=E)}return u}function eir(n,r){if(n.modeFrontier=Math.min(n.modeFrontier,r),n.highlightFrontiero;l--){let u=Bi(n,l).stateAfter;if(u&&(!(u instanceof Wde)||l+u.lookAhead=r:d.to>r);(l||(l=[])).push(new Wpe(h,d.from,v?null:d.to))}}return l}function sir(n,r,o){let l;if(n)for(let u=0;u=r:d.to>r)||d.from==r&&h.type=="bookmark"&&(!o||d.marker.insertLeft)){let v=d.from==null||(h.inclusiveLeft?d.from<=r:d.from0&&w)for(let O=0;O{if(d.markedSpans)for(let h=0;h0)continue;let E=[v,1],A=ns(y.from,w.from),C=ns(y.to,w.to);(A<0||!h.inclusiveLeft&&!A)&&E.push({from:y.from,to:w.from}),(C>0||!h.inclusiveRight&&!C)&&E.push({from:w.to,to:y.to}),u.splice.apply(u,E),v+=E.length-3}}return u}function gtn(n){let r=n.markedSpans;if(r){for(let o=0;or)&&(!l||IHe(l,d.marker)<0)&&(l=d.marker)}return l}function BBt(n,r,o,l,u){let d=Bi(n,r),h=QR&&d.markedSpans;if(h)for(let w=0;w=0&&A<=0||E<=0&&A>=0)&&(E<=0&&(v.marker.inclusiveRight&&u.inclusiveLeft?ns(y.to,o)>=0:ns(y.to,o)>0)||E>=0&&(v.marker.inclusiveRight&&u.inclusiveLeft?ns(y.from,l)<=0:ns(y.from,l)<0)))return!0}}function rk(n){let r;for(;r=ytn(n);)n=r.find(-1,!0).line;return n}function cir(n){let r;for(;r=Hpe(n);)n=r.find(1,!0).line;return n}function uir(n){let r,o;for(;r=Hpe(n);)n=r.find(1,!0).line,(o||(o=[])).push(n);return o}function PHe(n,r){let o=Bi(n,r),l=rk(o);return o==l?r:za(l)}function vtn(n,r){if(r>n.lastLine())return r;let o=Bi(n,r),l;if(!RT(n,o))return r;for(;l=Hpe(o);)o=l.find(1,!0).line;return za(o)+1}function RT(n,r){let o=QR&&r.markedSpans;if(o){for(let l,u=0;u{let u=Gde(l);u>r.maxLineLength&&(r.maxLineLength=u,r.maxLine=l)})}var bX=class{constructor(n,r,o){this.text=n,wtn(this,r),this.height=o?o(this):1}lineNo(){return za(this)}};lj(bX);function fir(n,r,o,l){n.text=r,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),gtn(n),wtn(n,o);let u=l?l(n):1;u!=n.height&&nk(n,u)}function dir(n){n.parent=null,gtn(n)}var hir={},pir={};function WBt(n,r){if(!n||/^\s*$/.test(n))return null;let o=r.addModeClass?pir:hir;return o[n]||(o[n]=n.replace(/\S+/g,"cm-$&"))}function _tn(n,r){let o=ZD("span",null,null,Gb?"padding-right: .1px":null),l={pre:ZD("pre",[o],"CodeMirror-line"),content:o,col:0,pos:0,cm:n,trailingSpace:!1,splitSpaces:n.getOption("lineWrapping")};r.measure={};for(let u=0;u<=(r.rest?r.rest.length:0);u++){let d=u?r.rest[u-1]:r.line,h;l.pos=0,l.addToken=gir,Grr(n.display.measure)&&(h=Rx(d,n.doc.direction))&&(l.addToken=mir(l.addToken,h)),l.map=[];let w=r!=n.display.externalMeasured&&za(d);yir(d,l,htn(n,d,w)),d.styleClasses&&(d.styleClasses.bgClass&&(l.bgClass=oNe(d.styleClasses.bgClass,l.bgClass||"")),d.styleClasses.textClass&&(l.textClass=oNe(d.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(Urr(n.display.measure))),u==0?(r.measure.map=l.map,r.measure.cache={}):((r.measure.maps||(r.measure.maps=[])).push(l.map),(r.measure.caches||(r.measure.caches=[])).push({}))}if(Gb){let u=l.content.lastChild;(/\bcm-tab\b/.test(u.className)||u.querySelector&&u.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return vd(n,"renderLine",n,r.line,l.pre),l.pre.className&&(l.textClass=oNe(l.pre.className,l.textClass||"")),l}function bir(n){let r=bo("span","•","cm-invalidchar");return r.title="\\u"+n.charCodeAt(0).toString(16),r.setAttribute("aria-label",r.title),r}function gir(n,r,o,l,u,d,h){if(!r)return;let w=n.splitSpaces?wir(r,n.trailingSpace):r,v=n.cm.state.specialChars,y=!1,E;if(!v.test(r))n.col+=r.length,E=document.createTextNode(w),n.map.push(n.pos,n.pos+r.length,E),ta&&Yc<9&&(y=!0),n.pos+=r.length;else{E=document.createDocumentFragment();let A=0;for(;;){v.lastIndex=A;let C=v.exec(r),R=C?C.index-A:r.length-A;if(R){let M=document.createTextNode(w.slice(A,A+R));ta&&Yc<9?E.appendChild(bo("span",[M])):E.appendChild(M),n.map.push(n.pos,n.pos+R,M),n.col+=R,n.pos+=R}if(!C)break;A+=R+1;let O;if(C[0]==" "){let M=n.cm.options.tabSize,L=M-n.col%M;O=E.appendChild(bo("span",_He(L),"cm-tab")),O.setAttribute("role","presentation"),O.setAttribute("cm-text"," "),n.col+=L}else C[0]=="\r"||C[0]==` +`?(O=E.appendChild(bo("span",C[0]=="\r"?"␍":"␤","cm-invalidchar")),O.setAttribute("cm-text",C[0]),n.col+=1):(O=n.cm.options.specialCharPlaceholder(C[0]),O.setAttribute("cm-text",C[0]),ta&&Yc<9?E.appendChild(bo("span",[O])):E.appendChild(O),n.col+=1);n.map.push(n.pos,n.pos+1,O),n.pos++}}if(n.trailingSpace=w.charCodeAt(r.length-1)==32,o||l||u||y||d||h){let A=o||"";l&&(A+=l),u&&(A+=u);let C=bo("span",[E],A,d);if(h)for(let R in h)h.hasOwnProperty(R)&&R!="style"&&R!="class"&&C.setAttribute(R,h[R]);return n.content.appendChild(C)}n.content.appendChild(E)}function wir(n,r){if(n.length>1&&!/ /.test(n))return n;let o=r,l="";for(let u=0;u{u=u?u+" cm-force-border":"cm-force-border";let y=o.pos,E=y+l.length;for(;;){let A;for(let C=0;Cy&&A.from<=y));C++);if(A.to>=E)return n(o,l,u,d,h,w,v);n(o,l.slice(0,A.to-y),u,d,null,w,v),d=null,l=l.slice(A.to-y),y=A.to}}}function HBt(n,r,o,l){let u=!l&&o.widgetNode;u&&n.map.push(n.pos,n.pos+r,u),!l&&n.cm.display.input.needsContentAttribute&&(u||(u=n.content.appendChild(document.createElement("span"))),u.setAttribute("cm-marker",o.id)),u&&(n.cm.display.input.setUneditable(u),n.content.appendChild(u)),n.pos+=r,n.trailingSpace=!1}function yir(n,r,o){let l=n.markedSpans,u=n.text,d=0;if(!l){for(let G=1;Gw||De.collapsed&&pe.to==w&&pe.from==w)){if(pe.to!=null&&pe.to!=w&&C>pe.to&&(C=pe.to,O=""),De.className&&(R+=" "+De.className),De.css&&(A=(A?A+";":"")+De.css),De.startStyle&&pe.from==w&&(M+=" "+De.startStyle),De.endStyle&&pe.to==C&&(Q||(Q=[])).push(De.endStyle,pe.to),De.title&&((H||(H={})).title=De.title),De.attributes)for(let Re in De.attributes)(H||(H={}))[Re]=De.attributes[Re];De.collapsed&&(!L||IHe(L.marker,De)<0)&&(L=pe)}else pe.from>w&&C>pe.from&&(C=pe.from)}if(Q)for(let te=0;te=h)break;let G=Math.min(h,C);for(;;){if(y){let j=w+y.length;if(!L){let Q=j>G?y.slice(0,G-w):y;r.addToken(r,Q,E?E+R:R,M,w+Q.length==C?O:"",A,H)}if(j>=G){y=y.slice(G-w),w=G;break}w=j,M=""}y=u.slice(d,d=o[v++]),E=WBt(o[v++],r.cm.options)}}}function Stn(n,r,o){this.line=r,this.rest=uir(r),this.size=this.rest?za($a(this.rest))-o+1:1,this.node=this.text=null,this.hidden=RT(n,r)}function Ffe(n,r,o){let l=[],u;for(let d=r;do[d].apply(null,l))}function Eir(){let n=aq;aq=null;for(let r=0;r2&&d.push((v.bottom+y.top)/2-o.top)}}d.push(o.bottom-o.top)}}function Atn(n,r,o){if(n.line==r)return{map:n.measure.map,cache:n.measure.cache};for(let l=0;lo)return{map:n.measure.maps[l],cache:n.measure.caches[l],before:!0}}function $ir(n,r){r=rk(r);let o=za(r),l=n.display.externalMeasured=new Stn(n.doc,r,o);l.lineN=o;let u=l.built=_tn(n,l);return l.text=u.pre,im(n.display.lineMeasure,u.pre),l}function Ttn(n,r,o,l){return ok(n,aj(n,r),o,l)}function LHe(n,r){if(r>=n.display.viewFrom&&r=o.lineN&&rr)&&(d=v-w,u=d-1,r>=v&&(h="right")),u!=null){if(l=n[y+2],w==v&&o==(l.insertLeft?"left":"right")&&(h=o),o=="left"&&u==0)for(;y&&n[y-2]==n[y-3]&&n[y-1].insertLeft;)l=n[(y-=3)+2],h="left";if(o=="right"&&u==v-w)for(;y=0&&(o=n[l]).left==o.right;l--);return o}function Pir(n,r,o,l){let u=Itn(r.map,o,l),d=u.node,h=u.start,w=u.end,v=u.collapse,y;if(d.nodeType==3){for(let G=0;G<4;G++){for(;h&&dje(r.line.text.charAt(u.coverStart+h));)--h;for(;u.coverStart+w0&&(v=l="right");let G;n.options.lineWrapping&&(G=d.getClientRects()).length>1?y=G[l=="right"?G.length-1:0]:y=d.getBoundingClientRect()}if(ta&&Yc<9&&!h&&(!y||!y.left&&!y.right)){let G=d.parentNode.getClientRects()[0];G?y={left:G.left,right:G.left+cj(n.display),top:G.top,bottom:G.bottom}:y=$tn}let E=y.top-r.rect.top,A=y.bottom-r.rect.top,C=(E+A)/2,R=r.view.measure.heights,O=0;for(;O=l.text.length?(v=l.text.length,y="before"):v<=0&&(v=0,y="after"),!w)return h(y=="before"?v-1:v,y=="before");function E(O,M,L){let H=w[M],G=H.level==1;return h(L?O-1:O,G!=L)}let A=fX(w,v,y),C=xK,R=E(v,A,y=="before");return C!=null&&(R.other=E(v,C,y!="before")),R}function VBt(n,r){let o=0;r=ts(n.doc,r),n.options.lineWrapping||(o=cj(n.display)*r.ch);let l=Bi(n.doc,r.line),u=ZR(l)+Upe(n.display);return{left:o,right:o,top:u,bottom:u+l.height}}function yje(n,r,o,l,u){let d=ur(n,r,o);return d.xRel=u,l&&(d.outside=l),d}function FHe(n,r,o){let l=n.doc;if(o+=n.display.viewOffset,o<0)return yje(l.first,0,null,-1,-1);let u=V8(l,o),d=l.first+l.size-1;if(u>d)return yje(l.first+l.size-1,Bi(l,d).text.length,null,1,1);r<0&&(r=0);let h=Bi(l,u);for(;;){let w=Nir(n,h,u,r,o),v=air(h,w.ch+(w.xRel>0||w.outside>0?1:0));if(!v)return w;let y=v.find(1);if(y.line==u)return y;h=Bi(l,u=y.line)}}function Dtn(n,r,o,l){l-=jHe(r);let u=r.text.length,d=uX(h=>ok(n,o,h-1).bottom<=l,u,0);return u=uX(h=>ok(n,o,h).top>l,d,u),{begin:d,end:u}}function Ltn(n,r,o,l){o||(o=aj(n,r));let u=Gpe(n,r,ok(n,o,l),"line").top;return Dtn(n,r,o,u)}function vje(n,r,o,l){return n.bottom<=o?!1:n.top>o?!0:(l?n.left:n.right)>r}function Nir(n,r,o,l,u){u-=ZR(r);let d=aj(n,r),h=jHe(r),w=0,v=r.text.length,y=!0,E=Rx(r,n.doc.direction);if(E){let H=(n.options.lineWrapping?Dir:Mir)(n,r,o,d,E,l,u);y=H.level!=1,w=y?H.from:H.to-1,v=y?H.to:H.from-1}let A=null,C=null,R=uX(H=>{let G=ok(n,d,H);return G.top+=h,G.bottom+=h,vje(G,l,u,!1)?(G.top<=u&&G.left<=l&&(A=H,C=G),!0):!1},w,v),O,M,L=!1;if(C){let H=l-C.left=H.bottom?1:0}return R=otn(r.text,R,1),yje(o,R,M,L,l-O)}function Mir(n,r,o,l,u,d,h){let w=uX(y=>{let E=u[y],A=E.level!=1;return vje(SS(n,ur(o,A?E.to:E.from,A?"before":"after"),"line",r,l),d,h,!0)},0,u.length-1),v=u[w];if(w>0){let y=v.level!=1,E=SS(n,ur(o,y?v.from:v.to,y?"after":"before"),"line",r,l);vje(E,d,h,!0)&&E.top>h&&(v=u[w-1])}return v}function Dir(n,r,o,l,u,d,h){let{begin:w,end:v}=Dtn(n,r,l,h);/\s/.test(r.text.charAt(v-1))&&v--;let y=null,E=null;for(let A=0;A=v||C.to<=w)continue;let R=C.level!=1,O=ok(n,l,R?Math.min(v,C.to)-1:Math.max(w,C.from)).right,M=OM)&&(y=C,E=M)}return y||(y=u[u.length-1]),y.fromv&&(y={from:y.from,to:v,level:y.level}),y}var r8;function NL(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(r8==null){r8=bo("pre",null,"CodeMirror-line-like");for(let o=0;o<49;++o)r8.appendChild(document.createTextNode("x")),r8.appendChild(bo("br"));r8.appendChild(document.createTextNode("x"))}im(n.measure,r8);let r=r8.offsetHeight/50;return r>3&&(n.cachedTextHeight=r),ET(n.measure),r||1}function cj(n){if(n.cachedCharWidth!=null)return n.cachedCharWidth;let r=bo("span","xxxxxxxxxx"),o=bo("pre",[r],"CodeMirror-line-like");im(n.measure,o);let l=r.getBoundingClientRect(),u=(l.right-l.left)/10;return u>2&&(n.cachedCharWidth=u),u||10}function BHe(n){let r=n.display,o={},l={},u=r.gutters.clientLeft;for(let d=r.gutters.firstChild,h=0;d;d=d.nextSibling,++h){let w=n.display.gutterSpecs[h].className;o[w]=d.offsetLeft+d.clientLeft+u,l[w]=d.clientWidth}return{fixedPos:WHe(r),gutterTotalWidth:r.gutters.offsetWidth,gutterLeft:o,gutterWidth:l,wrapperWidth:r.wrapper.clientWidth}}function WHe(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function jtn(n){let r=NL(n.display),o=n.options.lineWrapping,l=o&&Math.max(5,n.display.scroller.clientWidth/cj(n.display)-3);return u=>{if(RT(n.doc,u))return 0;let d=0;if(u.widgets)for(let h=0;h{let u=o(l);u!=l.height&&nk(l,u)})}function kP(n,r,o,l){let u=n.display;if(!o&&EHe(r).getAttribute("cm-not-content")=="true")return null;let d,h,w=u.lineSpace.getBoundingClientRect();try{d=r.clientX-w.left,h=r.clientY-w.top}catch{return null}let v=FHe(n,d,h),y;if(l&&v.xRel>0&&(y=Bi(n.doc,v.line).text).length==v.ch){let E=Zy(y,y.length,n.options.tabSize)-y.length;v=ur(v.line,Math.max(0,Math.round((d-Ctn(n.display).left)/cj(n.display))-E))}return v}function RP(n,r){if(r>=n.display.viewTo||(r-=n.display.viewFrom,r<0))return null;let o=n.display.view;for(let l=0;lr)&&(u.updateLineNumbers=r),n.curOp.viewChanged=!0,r>=u.viewTo)QR&&PHe(n.doc,r)u.viewFrom?z4(n):(u.viewFrom+=l,u.viewTo+=l);else if(r<=u.viewFrom&&o>=u.viewTo)z4(n);else if(r<=u.viewFrom){let h=sue(n,o,o+l,1);h?(u.view=u.view.slice(h.index),u.viewFrom=h.lineN,u.viewTo+=l):z4(n)}else if(o>=u.viewTo){let h=sue(n,r,r,-1);h?(u.view=u.view.slice(0,h.index),u.viewTo=h.lineN):z4(n)}else{let h=sue(n,r,r,-1),w=sue(n,o,o+l,1);h&&w?(u.view=u.view.slice(0,h.index).concat(Ffe(n,h.lineN,w.lineN)).concat(u.view.slice(w.index)),u.viewTo+=l):z4(n)}let d=u.externalMeasured;d&&(o=u.lineN&&r=l.viewTo)return;let d=l.view[RP(n,r)];if(d.node==null)return;let h=d.changes||(d.changes=[]);qp(h,o)==-1&&h.push(o)}function z4(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function sue(n,r,o,l){let u=RP(n,r),d,h=n.display.view;if(!QR||o==n.doc.first+n.doc.size)return{index:u,lineN:o};let w=n.display.viewFrom;for(let v=0;v0){if(u==h.length-1)return null;d=w+h[u].size-r,u++}else d=w-r;r+=d,o+=d}for(;PHe(n.doc,o)!=o;){if(u==(l<0?0:h.length-1))return null;o+=l*h[u-(l<0?1:0)].size,u+=l}return{index:u,lineN:o}}function Lir(n,r,o){let l=n.display;l.view.length==0||r>=l.viewTo||o<=l.viewFrom?(l.view=Ffe(n,r,o),l.viewFrom=r):(l.viewFrom>r?l.view=Ffe(n,r,l.viewFrom).concat(l.view):l.viewFromo&&(l.view=l.view.slice(0,RP(n,o)))),l.viewTo=o}function zBt(n){let r=n.display.view,o=0;for(let l=0;l=n.display.viewTo||w.to().line{let ae=xe=="ltr",F=te(Ee,ae?"left":"right"),me=te(le-1,ae?"right":"left"),ye=M==null&&Ee==0,we=L==null&&le==G,Be=be==0,He=!Le||be==Le.length-1;if(me.top-F.top<=3){let Ue=(y?ye:we)&&Be,Ge=(y?we:ye)&&He,Me=Ue?w:(ae?F:me).left,vt=Ge?v:(ae?me:F).right;E(Me,F.top,vt-Me,F.bottom)}else{let Ue,Ge,Me,vt;ae?(Ue=y&&ye&&Be?w:F.left,Ge=y?v:pe(Ee,xe,"before"),Me=y?w:pe(le,xe,"after"),vt=y&&we&&He?v:me.right):(Ue=y?pe(Ee,xe,"before"):w,Ge=!y&&ye&&Be?v:F.right,Me=!y&&we&&He?w:me.left,vt=y?pe(le,xe,"after"):v),E(Ue,F.top,Ge-Ue,F.bottom),F.bottom0?r.blinker=setInterval(()=>{n.hasFocus()||fj(n),r.cursorDiv.style.visibility=(o=!o)?"":"hidden"},n.options.cursorBlinkRate):n.options.cursorBlinkRate<0&&(r.cursorDiv.style.visibility="hidden")}function Dtn(n){n.hasFocus()||(n.display.input.focus(),n.state.focused||jHe(n))}function LHe(n){n.state.delayingBlurEvent=!0,setTimeout(()=>{n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&fj(n))},100)}function jHe(n,r){n.state.delayingBlurEvent&&!n.state.draggingText&&(n.state.delayingBlurEvent=!1),n.options.readOnly!="nocursor"&&(n.state.focused||(vd(n,"focus",n,r),n.state.focused=!0,KP(n.display.wrapper,"CodeMirror-focused"),!n.curOp&&n.display.selForContextMenu!=n.doc.sel&&(n.display.input.reset(),Gb&&setTimeout(()=>n.display.input.reset(!0),20)),n.display.input.receivedFocus()),DHe(n))}function fj(n,r){n.state.delayingBlurEvent||(n.state.focused&&(vd(n,"blur",n,r),n.state.focused=!1,zP(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(()=>{n.state.focused||(n.display.shift=!1)},150))}function Hpe(n){let r=n.display,o=r.lineDiv.offsetTop;for(let l=0;l.005||v<-.005)&&(nk(u.line,h),WBt(u.line),u.rest))for(let y=0;yn.display.sizerWidth){let y=Math.ceil(w/uj(n.display));y>n.display.maxLineLength&&(n.display.maxLineLength=y,n.display.maxLine=u.line,n.display.maxLineChanged=!0)}}}function WBt(n){if(n.widgets)for(let r=0;r=h&&(d=V8(r,ZR(Bi(r,v))-n.wrapper.clientHeight),h=v)}return{from:d,to:Math.max(h,d+1)}}function $ir(n,r){if(kh(n,"scrollCursorIntoView"))return;let o=n.display,l=o.sizer.getBoundingClientRect(),u=null;if(r.top+l.top<0?u=!0:r.bottom+l.top>(window.innerHeight||document.documentElement.clientHeight)&&(u=!1),u!=null&&!Rrr){let d=bo("div","​",null,`position: absolute; - top: ${r.top-o.viewOffset-Bpe(n.display)}px; + height: ${H-M}px`))}function A(O,M,L){let H=Bi(u,O),G=H.text.length,j,Q;function te(Re,le){return mje(n,ur(O,Re),"div",H,le)}function pe(Re,le,xe){let be=Ltn(n,H,null,Re),ae=le=="ltr"==(xe=="after")?"left":"right",F=xe=="after"?be.begin:be.end-(/\s/.test(H.text.charAt(be.end-1))?2:1);return te(F,ae)[ae]}let De=Rx(H,u.direction);return Brr(De,M||0,L??G,(Re,le,xe,be)=>{let ae=xe=="ltr",F=te(Re,ae?"left":"right"),me=te(le-1,ae?"right":"left"),ye=M==null&&Re==0,we=L==null&&le==G,Be=be==0,He=!De||be==De.length-1;if(me.top-F.top<=3){let Ue=(y?ye:we)&&Be,Ge=(y?we:ye)&&He,Le=Ue?w:(ae?F:me).left,ft=Ge?v:(ae?me:F).right;E(Le,F.top,ft-Le,F.bottom)}else{let Ue,Ge,Le,ft;ae?(Ue=y&&ye&&Be?w:F.left,Ge=y?v:pe(Re,xe,"before"),Le=y?w:pe(le,xe,"after"),ft=y&&we&&He?v:me.right):(Ue=y?pe(Re,xe,"before"):w,Ge=!y&&ye&&Be?v:F.right,Le=!y&&we&&He?w:me.left,ft=y?pe(le,xe,"after"):v),E(Ue,F.top,Ge-Ue,F.bottom),F.bottom0?r.blinker=setInterval(()=>{n.hasFocus()||uj(n),r.cursorDiv.style.visibility=(o=!o)?"":"hidden"},n.options.cursorBlinkRate):n.options.cursorBlinkRate<0&&(r.cursorDiv.style.visibility="hidden")}function Wtn(n){n.hasFocus()||(n.display.input.focus(),n.state.focused||VHe(n))}function GHe(n){n.state.delayingBlurEvent=!0,setTimeout(()=>{n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&uj(n))},100)}function VHe(n,r){n.state.delayingBlurEvent&&!n.state.draggingText&&(n.state.delayingBlurEvent=!1),n.options.readOnly!="nocursor"&&(n.state.focused||(vd(n,"focus",n,r),n.state.focused=!0,zP(n.display.wrapper,"CodeMirror-focused"),!n.curOp&&n.display.selForContextMenu!=n.doc.sel&&(n.display.input.reset(),Gb&&setTimeout(()=>n.display.input.reset(!0),20)),n.display.input.receivedFocus()),UHe(n))}function uj(n,r){n.state.delayingBlurEvent||(n.state.focused&&(vd(n,"blur",n,r),n.state.focused=!1,VP(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(()=>{n.state.focused||(n.display.shift=!1)},150))}function Vpe(n){let r=n.display,o=r.lineDiv.offsetTop;for(let l=0;l.005||v<-.005)&&(nk(u.line,h),KBt(u.line),u.rest))for(let y=0;yn.display.sizerWidth){let y=Math.ceil(w/cj(n.display));y>n.display.maxLineLength&&(n.display.maxLineLength=y,n.display.maxLine=u.line,n.display.maxLineChanged=!0)}}}function KBt(n){if(n.widgets)for(let r=0;r=h&&(d=V8(r,ZR(Bi(r,v))-n.wrapper.clientHeight),h=v)}return{from:d,to:Math.max(h,d+1)}}function Fir(n,r){if(kh(n,"scrollCursorIntoView"))return;let o=n.display,l=o.sizer.getBoundingClientRect(),u=null;if(r.top+l.top<0?u=!0:r.bottom+l.top>(window.innerHeight||document.documentElement.clientHeight)&&(u=!1),u!=null&&!Nrr){let d=bo("div","​",null,`position: absolute; + top: ${r.top-o.viewOffset-Upe(n.display)}px; height: ${r.bottom-r.top+ik(n)+o.barHeight}px; - left: ${r.left}px; width: ${Math.max(2,r.right-r.left)}px;`);n.display.lineSpace.appendChild(d),d.scrollIntoView(u),n.display.lineSpace.removeChild(d)}}function Iir(n,r,o,l){l==null&&(l=0);let u;!n.options.lineWrapping&&r==o&&(r=r.ch?ur(r.line,r.sticky=="before"?r.ch-1:r.ch,"after"):r,o=r.sticky=="before"?ur(r.line,r.ch+1,"before"):r);for(let d=0;d<5;d++){let h=!1,w=SS(n,r),v=!o||o==r?w:SS(n,o);u={left:Math.min(w.left,v.left),top:Math.min(w.top,v.top)-l,right:Math.max(w.left,v.left),bottom:Math.max(w.bottom,v.bottom)+l};let y=FHe(n,u),E=n.doc.scrollTop,A=n.doc.scrollLeft;if(y.scrollTop!=null&&(fJ(n,y.scrollTop),Math.abs(n.doc.scrollTop-E)>1&&(h=!0)),y.scrollLeft!=null&&(XP(n,y.scrollLeft),Math.abs(n.doc.scrollLeft-A)>1&&(h=!0)),!h)break}return u}function Pir(n,r){let o=FHe(n,r);o.scrollTop!=null&&fJ(n,o.scrollTop),o.scrollLeft!=null&&XP(n,o.scrollLeft)}function FHe(n,r){let o=n.display,l=ML(n.display);r.top<0&&(r.top=0);let u=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:o.scroller.scrollTop,d=THe(n),h={};r.bottom-r.top>d&&(r.bottom=r.top+d);let w=n.doc.height+AHe(o),v=r.topw-l;if(r.topu+d){let O=Math.min(r.top,(y?w:r.bottom)-d);O!=u&&(h.scrollTop=O)}let E=n.options.fixedGutter?0:o.gutters.offsetWidth,A=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:o.scroller.scrollLeft-E,C=qP(n)-o.gutters.offsetWidth,R=r.right-r.left>C;return R&&(r.right=r.left+C),r.left<10?h.scrollLeft=0:r.leftC+A-3&&(h.scrollLeft=r.right+(R?0:10)-C),h}function BHe(n,r){r!=null&&(Upe(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+r)}function dj(n){Upe(n);let r=n.getCursor();n.curOp.scrollToPos={from:r,to:r,margin:n.options.cursorScrollMargin}}function fq(n,r,o){(r!=null||o!=null)&&Upe(n),r!=null&&(n.curOp.scrollLeft=r),o!=null&&(n.curOp.scrollTop=o)}function Oir(n,r){Upe(n),n.curOp.scrollToPos=r}function Upe(n){let r=n.curOp.scrollToPos;if(r){n.curOp.scrollToPos=null;let o=FBt(n,r.from),l=FBt(n,r.to);Ltn(n,o,l,r.margin)}}function Ltn(n,r,o,l){let u=FHe(n,{left:Math.min(r.left,o.left),top:Math.min(r.top,o.top)-l,right:Math.max(r.right,o.right),bottom:Math.max(r.bottom,o.bottom)+l});fq(n,u.scrollLeft,u.scrollTop)}function fJ(n,r){Math.abs(n.doc.scrollTop-r)<2||(YR||pje(n,{top:r}),jtn(n,r,!0),YR&&pje(n),dJ(n,100))}function jtn(n,r,o){r=Math.max(0,Math.min(n.display.scroller.scrollHeight-n.display.scroller.clientHeight,r)),!(n.display.scroller.scrollTop==r&&!o)&&(n.doc.scrollTop=r,n.display.scrollbars.setScrollTop(r),n.display.scroller.scrollTop!=r&&(n.display.scroller.scrollTop=r))}function XP(n,r,o,l){r=Math.max(0,Math.min(r,n.display.scroller.scrollWidth-n.display.scroller.clientWidth)),!((o?r==n.doc.scrollLeft:Math.abs(n.doc.scrollLeft-r)<2)&&!l)&&(n.doc.scrollLeft=r,Utn(n),n.display.scroller.scrollLeft!=r&&(n.display.scroller.scrollLeft=r),n.display.scrollbars.setScrollLeft(r))}function vX(n){let r=n.display,o=r.gutters.offsetWidth,l=Math.round(n.doc.height+AHe(n.display));return{clientHeight:r.scroller.clientHeight,viewHeight:r.wrapper.clientHeight,scrollWidth:r.scroller.scrollWidth,clientWidth:r.scroller.clientWidth,viewWidth:r.wrapper.clientWidth,barLeft:n.options.fixedGutter?o:0,docHeight:l,scrollHeight:l+ik(n)+r.barHeight,nativeBarWidth:r.nativeBarWidth,gutterWidth:o}}var Nir=class{constructor(n,r,o){this.cm=o;let l=this.vert=bo("div",[bo("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=bo("div",[bo("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=u.tabIndex=-1,n(l),n(u),mo(l,"scroll",()=>{l.clientHeight&&r(l.scrollTop,"vertical")}),mo(u,"scroll",()=>{u.clientWidth&&r(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ta&&Yc<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")}update(n){let r=n.scrollWidth>n.clientWidth+1,o=n.scrollHeight>n.clientHeight+1,l=n.nativeBarWidth;if(o){this.vert.style.display="block",this.vert.style.bottom=r?l+"px":"0";let u=n.viewHeight-(r?l:0);this.vert.firstChild.style.height=Math.max(0,n.scrollHeight-n.clientHeight+u)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(r){this.horiz.style.display="block",this.horiz.style.right=o?l+"px":"0",this.horiz.style.left=n.barLeft+"px";let u=n.viewWidth-n.barLeft-(o?l:0);this.horiz.firstChild.style.width=Math.max(0,n.scrollWidth-n.clientWidth+u)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&n.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:o?l:0,bottom:r?l:0}}setScrollLeft(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")}setScrollTop(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")}zeroWidthHack(){let n=sv&&!krr?"12px":"18px";this.horiz.style.height=this.vert.style.width=n,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new NL,this.disableVert=new NL}enableZeroWidthBar(n,r,o){n.style.pointerEvents="auto";function l(){let u=n.getBoundingClientRect();(o=="vert"?document.elementFromPoint(u.right-1,(u.top+u.bottom)/2):document.elementFromPoint((u.right+u.left)/2,u.bottom-1))!=n?n.style.pointerEvents="none":r.set(1e3,l)}r.set(1e3,l)}clear(){let n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)}},Mir=class{update(){return{bottom:0,right:0}}setScrollLeft(){}setScrollTop(){}clear(){}};function DL(n,r){r||(r=vX(n));let o=n.display.barWidth,l=n.display.barHeight;HBt(n,r);for(let u=0;u<4&&o!=n.display.barWidth||l!=n.display.barHeight;u++)o!=n.display.barWidth&&n.options.lineWrapping&&Hpe(n),HBt(n,vX(n)),o=n.display.barWidth,l=n.display.barHeight}function HBt(n,r){let o=n.display,l=o.scrollbars.update(r);o.sizer.style.paddingRight=(o.barWidth=l.right)+"px",o.sizer.style.paddingBottom=(o.barHeight=l.bottom)+"px",o.heightForcer.style.borderBottom=l.bottom+"px solid transparent",l.right&&l.bottom?(o.scrollbarFiller.style.display="block",o.scrollbarFiller.style.height=l.bottom+"px",o.scrollbarFiller.style.width=l.right+"px"):o.scrollbarFiller.style.display="",l.bottom&&n.options.coverGutterNextToScrollbar&&n.options.fixedGutter?(o.gutterFiller.style.display="block",o.gutterFiller.style.height=l.bottom+"px",o.gutterFiller.style.width=r.gutterWidth+"px"):o.gutterFiller.style.display=""}var Ftn={native:Nir,null:Mir};function Btn(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&zP(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new Ftn[n.options.scrollbarStyle](r=>{n.display.wrapper.insertBefore(r,n.display.scrollbarFiller),mo(r,"mousedown",()=>{n.state.focused&&setTimeout(()=>n.display.input.focus(),0)}),r.setAttribute("cm-not-content","true")},(r,o)=>{o=="horizontal"?XP(n,r):fJ(n,r)},n),n.display.scrollbars.addClass&&KP(n.display.wrapper,n.display.scrollbars.addClass)}var Dir=0;function JP(n){n.curOp={cm:n,viewChanged:!1,startHeight:n.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Dir},fir(n.curOp)}function YP(n){let r=n.curOp;r&&hir(r,o=>{for(let l=0;l=o.viewTo)||o.maxLineChanged&&r.options.lineWrapping,n.update=n.mustUpdate&&new Wtn(r,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function Fir(n){n.updatedDisplay=n.mustUpdate&&WHe(n.cm,n.update)}function Bir(n){let r=n.cm,o=r.display;n.updatedDisplay&&Hpe(r),n.barMeasure=vX(r),o.maxLineChanged&&!r.options.lineWrapping&&(n.adjustWidthTo=ktn(r,o.maxLine,o.maxLine.text.length).left+3,r.display.sizerWidth=n.adjustWidthTo,n.barMeasure.scrollWidth=Math.max(o.scroller.clientWidth,o.sizer.offsetLeft+n.adjustWidthTo+ik(r)+r.display.barWidth),n.maxScrollLeft=Math.max(0,o.sizer.offsetLeft+n.adjustWidthTo-qP(r))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=o.input.prepareSelection())}function Wir(n){let r=n.cm;n.adjustWidthTo!=null&&(r.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft=n.display.viewTo)return;let o=+new Date+n.options.workTime,l=uJ(n,r.highlightFrontier),u=[];r.iter(l.line,Math.min(r.first+r.size,n.display.viewTo+500),d=>{if(l.line>=n.display.viewFrom){let h=d.styles,w=d.text.length>n.options.maxHighlightLength?eP(r.mode,l.state):null,v=ltn(n,d,l,!0);w&&(l.state=w),d.styles=v.styles;let y=d.styleClasses,E=v.classes;E?d.styleClasses=E:y&&(d.styleClasses=null);let A=!h||h.length!=d.styles.length||y!=E&&(!y||!E||y.bgClass!=E.bgClass||y.textClass!=E.textClass);for(let C=0;!A&&Co)return dJ(n,n.options.workDelay),!0}),r.highlightFrontier=l.line,r.modeFrontier=Math.max(r.modeFrontier,l.line),u.length&&x0(n,()=>{for(let d=0;d=o.viewFrom&&r.visible.to<=o.viewTo&&(o.updateLineNumbers==null||o.updateLineNumbers>=o.viewTo)&&o.renderedView==o.view&&BBt(n)==0)return!1;Gtn(n)&&(z4(n),r.dims=OHe(n));let u=l.first+l.size,d=Math.max(r.visible.from-n.options.viewportMargin,l.first),h=Math.min(u,r.visible.to+n.options.viewportMargin);o.viewFromh&&o.viewTo-h<20&&(h=Math.min(u,o.viewTo)),QR&&(d=RHe(n.doc,d),h=btn(n.doc,h));let w=d!=o.viewFrom||h!=o.viewTo||o.lastWrapHeight!=r.wrapperHeight||o.lastWrapWidth!=r.wrapperWidth;Air(n,d,h),o.viewOffset=ZR(Bi(n.doc,o.viewFrom)),n.display.mover.style.top=o.viewOffset+"px";let v=BBt(n);if(!w&&v==0&&!r.force&&o.renderedView==o.view&&(o.updateLineNumbers==null||o.updateLineNumbers>=o.viewTo))return!1;let y=Vir(n);return v>4&&(o.lineDiv.style.display="none"),Kir(n,o.updateLineNumbers,r.dims),v>4&&(o.lineDiv.style.display=""),o.renderedView=o.view,zir(y),ET(o.cursorDiv),ET(o.selectionDiv),o.gutters.style.height=o.sizer.style.minHeight=0,w&&(o.lastWrapHeight=r.wrapperHeight,o.lastWrapWidth=r.wrapperWidth,dJ(n,400)),o.updateLineNumbers=null,!0}function Htn(n,r){let o=r.viewport;for(let l=!0;;l=!1){if(!l||!n.options.lineWrapping||r.oldDisplayWidth==qP(n)){if(o&&o.top!=null&&(o={top:Math.min(n.doc.height+AHe(n.display)-THe(n),o.top)}),r.visible=Hde(n.display,n.doc,o),r.visible.from>=n.display.viewFrom&&r.visible.to<=n.display.viewTo)break}else l&&(r.visible=Hde(n.display,n.doc,o));if(!WHe(n,r))break;Hpe(n);let u=vX(n);uq(n),DL(n,u),UHe(n,u),r.force=!1}r.signal(n,"update",n),(n.display.viewFrom!=n.display.reportedViewFrom||n.display.viewTo!=n.display.reportedViewTo)&&(r.signal(n,"viewportChange",n,n.display.viewFrom,n.display.viewTo),n.display.reportedViewFrom=n.display.viewFrom,n.display.reportedViewTo=n.display.viewTo)}function pje(n,r){let o=new Wtn(n,r);if(WHe(n,o)){Hpe(n),Htn(n,o);let l=vX(n);uq(n),DL(n,l),UHe(n,l),o.finish()}}function Kir(n,r,o){let l=n.display,u=n.options.lineNumbers,d=l.lineDiv,h=d.firstChild;function w(E){let A=E.nextSibling;return Gb&&sv&&n.display.currentWheelTarget==E?E.style.display="none":E.parentNode.removeChild(E),A}let v=l.view,y=l.viewFrom;for(let E=0;E-1&&(C=!1),mtn(n,A,y,o)),C&&(ET(A.lineNumber),A.lineNumber.appendChild(document.createTextNode(_He(n.options,y)))),h=A.node.nextSibling}y+=A.size}for(;h;)h=w(h)}function HHe(n){let r=n.gutters.offsetWidth;n.sizer.style.marginLeft=r+"px",Ah(n,"gutterChanged",n)}function UHe(n,r){n.display.sizer.style.minHeight=r.docHeight+"px",n.display.heightForcer.style.top=r.docHeight+"px",n.display.gutters.style.height=r.docHeight+n.display.barHeight+ik(n)+"px"}function Utn(n){let r=n.display,o=r.view;if(!r.alignWidgets&&(!r.gutters.firstChild||!n.options.fixedGutter))return;let l=NHe(r)-r.scroller.scrollLeft+n.doc.scrollLeft,u=r.gutters.offsetWidth,d=l+"px";for(let h=0;hh.clientWidth,v=h.scrollHeight>h.clientHeight;if(l&&w||u&&v){if(u&&sv&&Gb){e:for(let y=r.target,E=d.view;y!=h;y=y.parentNode)for(let A=0;A{if(d.wheelStartX==null)return;let y=h.scrollLeft-d.wheelStartX,E=h.scrollTop-d.wheelStartY,A=E&&d.wheelDY&&E/d.wheelDY||y&&d.wheelDX&&y/d.wheelDX;d.wheelStartX=d.wheelStartY=null,A&&(Qw=(Qw*sue+A)/(sue+1),++sue)},200)):(d.wheelDX+=l,d.wheelDY+=u))}}var jT=class{constructor(r,o){this.ranges=r,this.primIndex=o}primary(){return this.ranges[this.primIndex]}equals(r){if(r==this)return!0;if(r.primIndex!=this.primIndex||r.ranges.length!=this.ranges.length)return!1;for(let o=0;o=0&&ns(r,u.to())<=0)return l}return-1}},lc=class{constructor(n,r){this.anchor=n,this.head=r}from(){return Lpe(this.anchor,this.head)}to(){return Dpe(this.anchor,this.head)}empty(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch}};function ES(n,r,o){let l=n&&n.options.selectionsMayTouch,u=r[o];r.sort((d,h)=>ns(d.from(),h.from())),o=qp(r,u);for(let d=1;d0:v>=0){let y=Lpe(w.from(),h.from()),E=Dpe(w.to(),h.to()),A=w.empty()?h.from()==h.head:w.from()==w.head;d<=o&&--o,r.splice(--d,2,new lc(A?E:y,A?y:E))}}return new jT(r,o)}function xT(n,r){return new jT([new lc(n,r||n)],0)}function CT(n){return n.text?ur(n.from.line+n.text.length-1,$a(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function GBt(n,r){if(ns(n,r.from)<0)return n;if(ns(n,r.to)<=0)return CT(r);let o=n.line+r.text.length-(r.to.line-r.from.line)-1,l=n.ch;return n.line==r.to.line&&(l+=CT(r).ch-r.to.ch),ur(o,l)}function GHe(n,r){let o=[];for(let l=0;l{r.stateAfter&&(r.stateAfter=null),r.styles&&(r.styles=null)}),n.doc.modeFrontier=n.doc.highlightFrontier=n.doc.first,dJ(n,100),n.state.modeGen++,n.curOp&&o1(n)}function Ktn(n,r){return r.from.ch==0&&r.to.ch==0&&$a(r.text)==""&&(!n.cm||n.cm.options.wholeLineUpdateBefore)}function VHe(n,r,o,l){function u(M){return o?o[M]:null}function d(M,L,H){nir(M,L,H,l),Ah(M,"change",M,r)}function h(M,L){let H=[];for(let G=M;G1&&n.remove(w.line+1,O-1),n.insert(w.line+1,M)}Ah(n,"change",n,r)}function yT(n,r,o){function l(u,d,h){if(u.linked)for(let w=0;w{Xtn(n),o1(n)})}function jfe(n){this.done=[],this.undone=[],this.undoDepth=n?n.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=n?n.maxGeneration:1}function wje(n,r){let o={from:aje(r.from),to:CT(r),text:tP(n,r.from,r.to)};return zBt(n,o,r.from.line,r.to.line+1),yT(n,l=>zBt(l,o,r.from.line,r.to.line+1),!0),o}function Jtn(n){for(;n.length&&$a(n).ranges;)n.pop()}function Qir(n,r){if(r)return Jtn(n.done),$a(n.done);if(n.done.length&&!$a(n.done).ranges)return $a(n.done);if(n.done.length>1&&!n.done[n.done.length-2].ranges)return n.done.pop(),$a(n.done)}function Ytn(n,r,o,l){let u=n.history;u.undone.length=0;let d=+new Date,h,w;if((u.lastOp==l||u.lastOrigin==r.origin&&r.origin&&(r.origin.charAt(0)=="+"&&u.lastModTime>d-(n.cm?n.cm.options.historyEventDelay:500)||r.origin.charAt(0)=="*"))&&(h=Qir(u,u.lastOp==l)))w=$a(h.changes),ns(r.from,r.to)==0&&ns(r.from,w.to)==0?w.to=CT(r):h.changes.push(wje(n,r));else{let v=$a(u.done);for((!v||!v.ranges)&&Ude(n.sel,u.done),h={changes:[wje(n,r)],generation:u.generation},u.done.push(h);u.done.length>u.undoDepth;)u.done.shift(),u.done[0].ranges||u.done.shift()}u.done.push(o),u.generation=++u.maxGeneration,u.lastModTime=u.lastSelTime=d,u.lastOp=u.lastSelOp=l,u.lastOrigin=u.lastSelOrigin=r.origin,w||vd(n,"historyAdded")}function Zir(n,r,o,l){let u=r.charAt(0);return u=="*"||u=="+"&&o.ranges.length==l.ranges.length&&o.somethingSelected()==l.somethingSelected()&&new Date-n.history.lastSelTime<=(n.cm?n.cm.options.historyEventDelay:500)}function eor(n,r,o,l){let u=n.history,d=l&&l.origin;o==u.lastSelOp||d&&u.lastSelOrigin==d&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==d||Zir(n,d,$a(u.done),r))?u.done[u.done.length-1]=r:Ude(r,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=d,u.lastSelOp=o,l&&l.clearRedo!==!1&&Jtn(u.undone)}function Ude(n,r){let o=$a(r);o&&o.ranges&&o.equals(n)||r.push(n)}function zBt(n,r,o,l){let u=r["spans_"+n.id],d=0;n.iter(Math.max(n.first,o),Math.min(n.first+n.size,l),h=>{h.markedSpans&&((u||(u=r["spans_"+n.id]={}))[d]=h.markedSpans),++d})}function tor(n){if(!n)return null;let r;for(let o=0;o-1&&($a(v)[u]=E[u],delete E[u])}}return l}function zHe(n,r,o,l){if(l){let u=n.anchor;if(o){let d=ns(r,u)<0;d!=ns(o,u)<0?(u=r,r=o):d!=ns(r,o)<0&&(r=o)}return new lc(u,r)}else return new lc(o||r,r)}function Gpe(n,r,o,l,u){u==null&&(u=n.cm&&(n.cm.display.shift||n.extend)),zp(n,new jT([zHe(n.sel.primary(),r,o,u)],0),l)}function qBt(n,r,o){let l=[],u=n.cm&&(n.cm.display.shift||n.extend);for(let h=0;h=r.ch:w.to>r.ch))){if(u&&(vd(v,"beforeCursorEnter"),v.explicitlyCleared))if(d.markedSpans){--h;continue}else break;if(!v.atomic)continue;if(o){let C=v.find(l<0?1:-1),R;if((l<0?E:y)&&(C=JBt(n,C,-l,C&&C.line==r.line?d:null)),C&&C.line==r.line&&(R=ns(C,o))&&(l<0?R<0:R>0))return FD(n,C,r,l,u)}let A=v.find(l<0?-1:1);return(l<0?y:E)&&(A=JBt(n,A,l,A.line==r.line?d:null)),A?FD(n,A,r,l,u):null}}return r}function Gde(n,r,o,l,u){let d=l||1,h=FD(n,r,o,d,u)||!u&&FD(n,r,o,d,!0)||FD(n,r,o,-d,u)||!u&&FD(n,r,o,-d,!0);return h||(n.cantEdit=!0,ur(n.first,0))}function JBt(n,r,o,l){return o<0&&r.ch==0?r.line>n.first?ts(n,ur(r.line-1)):null:o>0&&r.ch==(l||Bi(n,r.line)).text.length?r.linel.canceled=!0};return o&&(l.update=(u,d,h,w)=>{u&&(l.from=ts(n,u)),d&&(l.to=ts(n,d)),h&&(l.text=h),w!==void 0&&(l.origin=w)}),vd(n,"beforeChange",n,l),n.cm&&vd(n.cm,"beforeChange",n.cm,l),l.canceled?(n.cm&&(n.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function LL(n,r,o){if(n.cm){if(!n.cm.curOp)return xh(n.cm,LL)(n,r,o);if(n.cm.state.suppressEdits)return}if((lv(n,"beforeChange")||n.cm&&lv(n.cm,"beforeChange"))&&(r=rnn(n,r,!0),!r))return;let l=utn&&!o&&Qrr(n,r.from,r.to);if(l)for(let u=l.length-1;u>=0;--u)YBt(n,{from:l[u].from,to:l[u].to,text:u?[""]:r.text,origin:r.origin});else YBt(n,r)}function YBt(n,r){if(r.text.length==1&&r.text[0]==""&&ns(r.from,r.to)==0)return;let o=GHe(n,r);Ytn(n,r,o,n.cm?n.cm.curOp.id:NaN),_X(n,r,o,cje(n,r));let l=[];yT(n,(u,d)=>{!d&&qp(l,u.history)==-1&&(inn(u.history,r),l.push(u.history)),_X(u,r,null,cje(u,r))})}function lue(n,r,o){let l=n.cm&&n.cm.state.suppressEdits;if(l&&!o)return;let u=n.history,d,h=n.sel,w=r=="undo"?u.done:u.undone,v=r=="undo"?u.undone:u.done,y=0;for(;y=0;--C){let R=d.changes[C];if(R.origin=r,A&&!rnn(n,R,!1)){w.length=0;return}E.push(wje(n,R));let O=C?GHe(n,R):$a(w);_X(n,R,O,KBt(n,R)),!C&&n.cm&&n.cm.scrollIntoView({from:R.from,to:CT(R)});let M=[];yT(n,(L,H)=>{!H&&qp(M,L.history)==-1&&(inn(L.history,R),M.push(L.history)),_X(L,R,null,KBt(L,R))})}}function QBt(n,r){if(r!=0&&(n.first+=r,n.sel=new jT(Npe(n.sel.ranges,o=>new lc(ur(o.anchor.line+r,o.anchor.ch),ur(o.head.line+r,o.head.ch))),n.sel.primIndex),n.cm)){o1(n.cm,n.first,n.first-r,r);for(let o=n.cm.display,l=o.viewFrom;ln.lastLine())return;if(r.from.lineu&&(r={from:r.from,to:ur(u,Bi(n,u).text.length),text:[r.text[0]],origin:r.origin}),r.removed=tP(n,r.from,r.to),o||(o=GHe(n,r)),n.cm?ior(n.cm,r,l):VHe(n,r,l),Vpe(n,o,tk),n.cantEdit&&Gde(n,ur(n.firstLine(),0))&&(n.cantEdit=!1)}function ior(n,r,o){let l=n.doc,u=n.display,d=r.from,h=r.to,w=!1,v=d.line;n.options.lineWrapping||(v=za(rk(Bi(l,d.line))),l.iter(v,h.line+1,C=>{if(C==u.maxLine)return w=!0,!0})),l.sel.contains(r.from,r.to)>-1&&ntn(n),VHe(l,r,o,Otn(n)),n.options.lineWrapping||(l.iter(v,d.line+r.text.length,C=>{let R=Wde(C);R>u.maxLineLength&&(u.maxLine=C,u.maxLineLength=R,u.maxLineChanged=!0,w=!1)}),w&&(n.curOp.updateMaxLine=!0)),Vrr(l,d.line),dJ(n,400);let y=r.text.length-(h.line-d.line)-1;r.full?o1(n):d.line==h.line&&r.text.length==1&&!Ktn(n.doc,r)?LT(n,d.line,"text"):o1(n,d.line,h.line+1,y);let E=lv(n,"changes"),A=lv(n,"change");if(A||E){let C={from:d,to:h,text:r.text,removed:r.removed,origin:r.origin};A&&Ah(n,"change",n,C),E&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(C)}n.display.selForContextMenu=null}function hj(n,r,o,l,u){l||(l=o),ns(l,o)<0&&([o,l]=[l,o]),typeof r=="string"&&(r=n.splitLines(r)),LL(n,{from:o,to:l,text:r,origin:u})}function ZBt(n,r,o,l){o1||!(this.children[0]instanceof dq))){let o=[];this.collapse(o),this.children=[new dq(o)],this.children[0].parent=this}},collapse(n){for(let r=0;r50){let h=u.lines.length%25+25;for(let w=h;w10);n.parent.maybeSpill()},iterN(n,r,o){for(let l=0;l{tWt(n,o,-u),LT(n,l,"widget")}),Ah(n,"lineWidgetCleared",n,this,l))}changed(){let n=this.height,r=this.doc.cm,o=this.line;this.height=null;let l=mX(this)-n;l&&(RT(this.doc,o)||nk(o,o.height+l),r&&x0(r,()=>{r.curOp.forceUpdate=!0,tWt(r,o,l),Ah(r,"lineWidgetChanged",r,this,za(o))}))}};aj(qHe);function tWt(n,r,o){ZR(r)<(n.curOp&&n.curOp.scrollTop||n.doc.scrollTop)&&BHe(n,o)}function oor(n,r,o,l){let u=new qHe(n,o,l),d=n.cm;return d&&u.noHScroll&&(d.display.alignWidgets=!0),TK(n,r,"widget",h=>{let w=h.widgets||(h.widgets=[]);if(u.insertAt==null?w.push(u):w.splice(Math.min(w.length,Math.max(0,u.insertAt)),0,u),u.line=h,d&&!RT(n,h)){let v=ZR(h)n.display.maxLineLength&&(n.display.maxLine=d,n.display.maxLineLength=h,n.display.maxLineChanged=!0)}o!=null&&n&&this.collapsed&&o1(n,o,l+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&enn(n.doc)),n&&Ah(n,"markerCleared",n,this,o,l),r&&YP(n),this.parent&&this.parent.clear()}find(n,r){n==null&&this.type=="bookmark"&&(n=1);let o,l;for(let u=0;u{let l=n.line,u=za(n.line),d=$He(o,u);if(d&&(Ctn(d),o.curOp.selectionChanged=o.curOp.forceUpdate=!0),o.curOp.updateMaxLine=!0,!RT(r.doc,l)&&r.height!=null){let h=r.height;r.height=null;let w=mX(r)-h;w&&nk(l,l.height+w)}Ah(o,"markerChanged",o,this)})}attachLine(n){if(!this.lines.length&&this.doc.cm){let r=this.doc.cm.curOp;(!r.maybeHiddenMarkers||qp(r.maybeHiddenMarkers,this)==-1)&&(r.maybeUnhiddenMarkers||(r.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(n)}detachLine(n){if(this.lines.splice(qp(this.lines,n),1),!this.lines.length&&this.doc.cm){let r=this.doc.cm.curOp;(r.maybeHiddenMarkers||(r.maybeHiddenMarkers=[])).push(this)}}};aj(XHe);function jL(n,r,o,l,u){if(l&&l.shared)return sor(n,r,o,l,u);if(n.cm&&!n.cm.curOp)return xh(n.cm,jL)(n,r,o,l,u);let d=new XHe(n,u),h=ns(r,o);if(l&&kP(l,d,!1),h>0||h==0&&d.clearWhenEmpty!==!1)return d;if(d.replacedWith&&(d.collapsed=!0,d.widgetNode=eL("span",[d.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||d.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(d.widgetNode.insertLeft=!0)),d.collapsed){if(NBt(n,r.line,r,o,d)||r.line!=o.line&&NBt(n,o.line,r,o,d))throw new Error("Inserting collapsed marker partially overlapping an existing one");Krr()}d.addToHistory&&Ytn(n,{from:r,to:o,origin:"markText"},n.sel,NaN);let w=r.line,v=n.cm,y;if(n.iter(w,o.line+1,E=>{v&&d.collapsed&&!v.options.lineWrapping&&rk(E)==v.display.maxLine&&(y=!0),d.collapsed&&w!=r.line&&nk(E,0),Xrr(E,new jpe(d,w==r.line?r.ch:null,w==o.line?o.ch:null)),++w}),d.collapsed&&n.iter(r.line,o.line+1,E=>{RT(n,E)&&nk(E,0)}),d.clearOnEnter&&mo(d,"beforeCursorEnter",()=>d.clear()),d.readOnly&&(zrr(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),d.collapsed&&(d.id=++onn,d.atomic=!0),v){if(y&&(v.curOp.updateMaxLine=!0),d.collapsed)o1(v,r.line,o.line+1);else if(d.className||d.startStyle||d.endStyle||d.css||d.attributes||d.title)for(let E=r.line;E<=o.line;E++)LT(v,E,"text");d.atomic&&enn(v.doc),Ah(v,"markerAdded",v,d)}return d}var JHe=class{constructor(n,r){this.markers=n,this.primary=r;for(let o=0;o{w&&(l.widgetNode=w.cloneNode(!0)),d.push(jL(v,ts(v,r),ts(v,o),l,u));for(let y=0;yr.parent)}function lor(n,r){for(let o=0;ol.push(u));for(let u=0;u=0;h--)LL(this,l[h]);d?Qtn(this,d):this.cm&&dj(this.cm)}),undo:Sh(function(){lue(this,"undo")}),redo:Sh(function(){lue(this,"redo")}),undoSelection:Sh(function(){lue(this,"undo",!0)}),redoSelection:Sh(function(){lue(this,"redo",!0)}),setExtending:function(n){this.extend=n},getExtending:function(){return this.extend},historySize:function(){let n=this.history,r=0,o=0;for(let l=0;ln.history=this.history,!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(n){return n&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(n){return this.history.generation==(n||this.cleanGeneration)},getHistory:function(){return{done:oD(this.history.done),undone:oD(this.history.undone)}},setHistory:function(n){let r=this.history=new jfe(this.history);r.done=oD(n.done.slice(0),null,!0),r.undone=oD(n.undone.slice(0),null,!0)},setGutterMarker:Sh(function(n,r,o){return TK(this,n,"gutter",l=>{let u=l.gutterMarkers||(l.gutterMarkers={});return u[r]=o,!o&&CBt(u)&&(l.gutterMarkers=null),!0})}),clearGutter:Sh(function(n){this.iter(r=>{r.gutterMarkers&&r.gutterMarkers[n]&&TK(this,r,"gutter",()=>(r.gutterMarkers[n]=null,CBt(r.gutterMarkers)&&(r.gutterMarkers=null),!0))})}),lineInfo:function(n){let r;if(typeof n=="number"){if(!pX(this,n)||(r=n,n=Bi(this,n),!n))return null}else if(r=za(n),r==null)return null;return{line:r,handle:n,text:n.text,gutterMarkers:n.gutterMarkers,textClass:n.textClass,bgClass:n.bgClass,wrapClass:n.wrapClass,widgets:n.widgets}},addLineClass:Sh(function(n,r,o){return TK(this,n,r=="gutter"?"gutter":"class",l=>{let u=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass";if(!l[u])l[u]=o;else{if(OL(o).test(l[u]))return!1;l[u]+=" "+o}return!0})}),removeLineClass:Sh(function(n,r,o){return TK(this,n,r=="gutter"?"gutter":"class",l=>{let u=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass",d=l[u];if(d)if(o==null)l[u]=null;else{let h=d.match(OL(o));if(!h)return!1;let w=h.index+h[0].length;l[u]=d.slice(0,h.index)+(!h.index||w==d.length?"":" ")+d.slice(w)||null}else return!1;return!0})}),addLineWidget:Sh(function(n,r,o){return oor(this,n,r,o)}),removeLineWidget:function(n){n.clear()},markText:function(n,r,o){return jL(this,ts(this,n),ts(this,r),o,o&&o.type||"range")},setBookmark:function(n,r){let o={replacedWith:r&&(r.nodeType==null?r.widget:r),insertLeft:r&&r.insertLeft,clearWhenEmpty:!1,shared:r&&r.shared,handleMouseEvents:r&&r.handleMouseEvents};return n=ts(this,n),jL(this,n,n,o,"bookmark")},findMarksAt:function(n){n=ts(this,n);let r=[],o=Bi(this,n.line).markedSpans;if(o)for(let l=0;l=n.ch)&&r.push(u.marker.parent||u.marker)}return r},findMarks:function(n,r,o){n=ts(this,n),r=ts(this,r);let l=[],u=n.line;return this.iter(n.line,r.line+1,d=>{let h=d.markedSpans;if(h)for(let w=0;w=v.to||v.from==null&&u!=n.line||v.from!=null&&u==r.line&&v.from>=r.ch)&&(!o||o(v.marker))&&l.push(v.marker.parent||v.marker)}++u}),l},getAllMarks:function(){let n=[];return this.iter(r=>{let o=r.markedSpans;if(o)for(let l=0;l{let d=u.text.length+l;if(d>n)return r=n,!0;n-=d,++o}),ts(this,ur(o,r))},indexFromPos:function(n){n=ts(this,n);let r=n.ch;if(n.line{r+=l.text.length+o}),r},copy:function(n){let r=new HR(sNe(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return r.scrollTop=this.scrollTop,r.scrollLeft=this.scrollLeft,r.sel=this.sel,r.extend=!1,n&&(r.history.undoDepth=this.history.undoDepth,r.setHistory(this.getHistory())),r},linkedDoc:function(n){n||(n={});let r=this.first,o=this.first+this.size;n.from!=null&&n.from>r&&(r=n.from),n.to!=null&&n.tor.push(o.id),!0),n.history=new jfe(null),n.history.done=oD(this.history.done,r),n.history.undone=oD(this.history.undone,r)}},iterLinkedDocs:function(n){yT(this,n)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(n){return this.lineSep?n.split(this.lineSep):wHe(n)},lineSeparator:function(){return this.lineSep||` -`},setDirection:Sh(function(n){n!="rtl"&&(n="ltr"),n!=this.direction&&(this.direction=n,this.iter(r=>r.order=null),this.cm&&Yir(this.cm))})});HR.prototype.eachLine=HR.prototype.iter;var nP=HR,snn=0;function uor(n){let r=this;if(lnn(r),kh(r,n)||ex(r.display,n))return;i1(n),ta&&(snn=+new Date);let o=RP(r,n,!0),l=n.dataTransfer.files;if(!(!o||r.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File){let u=l.length,d=Array(u),h=0;const w=()=>{++h==u&&xh(r,()=>{o=ts(r.doc,o);let y={from:o,to:o,text:r.doc.splitLines(d.filter(E=>E!=null).join(r.doc.lineSeparator())),origin:"paste"};LL(r.doc,y),Qtn(r.doc,xT(ts(r.doc,o),ts(r.doc,CT(y))))})()},v=(y,E)=>{if(r.options.allowDropFileTypes&&qp(r.options.allowDropFileTypes,y.type)==-1){w();return}let A=new FileReader;A.onerror=()=>w(),A.onload=()=>{let C=A.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(C)){w();return}d[E]=C,w()},A.readAsText(y)};for(let y=0;y-1){r.state.draggingText(n),setTimeout(()=>r.display.input.focus(),20);return}try{let u=n.dataTransfer.getData("Text");if(u){let d;if(r.state.draggingText&&!r.state.draggingText.copy&&(d=r.listSelections()),Vpe(r.doc,xT(o,o)),d)for(let h=0;h{for(let l=0;l{n==null&&(n=setTimeout(()=>{n=null,rWt(gor)},100))}),mo(window,"blur",()=>rWt(fj))}function gor(n){let r=n.display;r.cachedCharWidth=r.cachedTextHeight=r.cachedPaddingH=null,r.scrollbarsClipped=!1,n.setSize()}var AT={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"};for(let n=0;n<10;n++)AT[n+48]=AT[n+96]=String(n);for(let n=65;n<=90;n++)AT[n]=String.fromCharCode(n);for(let n=1;n<=12;n++)AT[n+111]=AT[n+63235]="F"+n;var VR={};VR.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"};VR.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"};VR.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"};VR.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]};VR.default=sv?VR.macDefault:VR.pcDefault;function wor(n){let r=n.split(/-(?!$)/);n=r[r.length-1];let o,l,u,d;for(let h=0;h{for(let u=l.length-1;u>=0;u--)hj(n.doc,"",l[u].from,l[u].to,"+delete");dj(n)})}function YHe(n,r,o){let l=etn(n.text,r+o,o);return l<0||l>n.text.length?null:l}function mje(n,r,o){let l=YHe(n,r.ch,o);return l==null?null:new ur(r.line,l,o<0?"after":"before")}function QHe(n,r,o,l,u){if(n){r.doc.direction=="rtl"&&(u=-u);let d=Rx(o,r.doc.direction);if(d){let h=u<0?$a(d):d[0],v=u<0==(h.level==1)?"after":"before",y;if(h.level>0||r.doc.direction=="rtl"){let E=cj(r,o);y=u<0?o.text.length-1:0;let A=ok(r,E,y).top;y=fX(C=>ok(r,E,C).top==A,u<0==(h.level==1)?h.from:h.to-1,y),v=="before"&&(y=YHe(o,y,1))}else y=u<0?h.to:h.from;return new ur(l,y,v)}}return new ur(l,u<0?o.text.length:0,u<0?"before":"after")}function yor(n,r,o,l){let u=Rx(r,n.doc.direction);if(!u)return mje(r,o,l);o.ch>=r.text.length?(o.ch=r.text.length,o.sticky="before"):o.ch<=0&&(o.ch=0,o.sticky="after");let d=dX(u,o.ch,o.sticky),h=u[d];if(n.doc.direction=="ltr"&&h.level%2==0&&(l>0?h.to>o.ch:h.fromYHe(r,O instanceof ur?O.ch:O,M),v,y=O=>n.options.lineWrapping?(v=v||cj(n,r),Ptn(n,r,v,O)):{begin:0,end:r.text.length},E=y(o.sticky=="before"?w(o,-1):o.ch);if(n.doc.direction=="rtl"||h.level==1){let O=h.level==1==l<0,M=w(o,O?1:-1);if(M!=null&&(O?M<=h.to&&M<=E.end:M>=h.from&&M>=E.begin)){let L=O?"before":"after";return new ur(o.line,M,L)}}let A=(O,M,L)=>{let H=(G,j)=>j?new ur(o.line,w(G,1),"before"):new ur(o.line,G,"after");for(;O>=0&&O0==(G.level!=1),Q=j?L.begin:w(L.end,-1);if(G.from<=Q&&Q0?E.end:w(E.begin,-1);return R!=null&&!(l>0&&R==r.text.length)&&(C=A(l>0?0:u.length-1,l,y(R)),C)?C:null}var SX={selectAll:nnn,singleSelection:n=>n.setSelection(n.getCursor("anchor"),n.getCursor("head"),tk),killLine:n=>vD(n,r=>{if(r.empty()){let o=Bi(n.doc,r.head.line).text.length;return r.head.ch==o&&r.head.linevD(n,r=>({from:ur(r.from().line,0),to:ts(n.doc,ur(r.to().line+1,0))})),delLineLeft:n=>vD(n,r=>({from:ur(r.from().line,0),to:r.from()})),delWrappedLineLeft:n=>vD(n,r=>{let o=n.charCoords(r.head,"div").top+5;return{from:n.coordsChar({left:0,top:o},"div"),to:r.from()}}),delWrappedLineRight:n=>vD(n,r=>{let o=n.charCoords(r.head,"div").top+5,l=n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:o},"div");return{from:r.from(),to:l}}),undo:n=>n.undo(),redo:n=>n.redo(),undoSelection:n=>n.undoSelection(),redoSelection:n=>n.redoSelection(),goDocStart:n=>n.extendSelection(ur(n.firstLine(),0)),goDocEnd:n=>n.extendSelection(ur(n.lastLine())),goLineStart:n=>n.extendSelectionsBy(r=>fnn(n,r.head.line),{origin:"+move",bias:1}),goLineStartSmart:n=>n.extendSelectionsBy(r=>oWt(n,r.head),{origin:"+move",bias:1}),goLineEnd:n=>n.extendSelectionsBy(r=>vor(n,r.head.line),{origin:"+move",bias:-1}),goLineRight:n=>n.extendSelectionsBy(r=>{let o=n.cursorCoords(r.head,"div").top+5;return n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:o},"div")},lq),goLineLeft:n=>n.extendSelectionsBy(r=>{let o=n.cursorCoords(r.head,"div").top+5;return n.coordsChar({left:0,top:o},"div")},lq),goLineLeftSmart:n=>n.extendSelectionsBy(r=>{let o=n.cursorCoords(r.head,"div").top+5,l=n.coordsChar({left:0,top:o},"div");return l.chn.moveV(-1,"line"),goLineDown:n=>n.moveV(1,"line"),goPageUp:n=>n.moveV(-1,"page"),goPageDown:n=>n.moveV(1,"page"),goCharLeft:n=>n.moveH(-1,"char"),goCharRight:n=>n.moveH(1,"char"),goColumnLeft:n=>n.moveH(-1,"column"),goColumnRight:n=>n.moveH(1,"column"),goWordLeft:n=>n.moveH(-1,"word"),goGroupRight:n=>n.moveH(1,"group"),goGroupLeft:n=>n.moveH(-1,"group"),goWordRight:n=>n.moveH(1,"word"),delCharBefore:n=>n.deleteH(-1,"codepoint"),delCharAfter:n=>n.deleteH(1,"char"),delWordBefore:n=>n.deleteH(-1,"word"),delWordAfter:n=>n.deleteH(1,"word"),delGroupBefore:n=>n.deleteH(-1,"group"),delGroupAfter:n=>n.deleteH(1,"group"),indentAuto:n=>n.indentSelection("smart"),indentMore:n=>n.indentSelection("add"),indentLess:n=>n.indentSelection("subtract"),insertTab:n=>n.replaceSelection(" "),insertSoftTab:n=>{let r=[],o=n.listSelections(),l=n.options.tabSize;for(let u=0;u{n.somethingSelected()?n.indentSelection("add"):n.execCommand("insertTab")},transposeChars:n=>x0(n,()=>{let r=n.listSelections(),o=[];for(let l=0;l0)u=new ur(u.line,u.ch+1),n.replaceRange(d.charAt(u.ch-1)+d.charAt(u.ch-2),ur(u.line,u.ch-2),u,"+transpose");else if(u.line>n.doc.first){let h=Bi(n.doc,u.line-1).text;h&&(u=new ur(u.line,1),n.replaceRange(d.charAt(0)+n.doc.lineSeparator()+h.charAt(h.length-1),ur(u.line-1,h.length-1),u,"+transpose"))}}o.push(new lc(u,u))}n.setSelections(o)}),newlineAndIndent:n=>x0(n,()=>{let r=n.listSelections();for(let o=r.length-1;o>=0;o--)n.replaceRange(n.doc.lineSeparator(),r[o].anchor,r[o].head,"+input");r=n.listSelections();for(let o=0;on.replaceSelection(` -`,"start"),toggleOverwrite:n=>n.toggleOverwrite()};function fnn(n,r){let o=Bi(n.doc,r),l=rk(o);return l!=o&&(r=za(l)),QHe(!0,n,l,r,1)}function vor(n,r){let o=Bi(n.doc,r),l=eir(o);return l!=o&&(r=za(l)),QHe(!0,n,o,r,-1)}function oWt(n,r){let o=fnn(n,r.line),l=Bi(n.doc,o.line),u=Rx(l,n.doc.direction);if(!u||u[0].level==0){let d=Math.max(o.ch,l.text.search(/\S/)),h=r.line==o.line&&r.ch<=d&&r.ch;return ur(o.line,h?0:d,o.sticky)}return o}function Ffe(n,r,o){if(typeof r=="string"&&(r=SX[r],!r))return!1;n.display.input.ensurePolled();let l=n.display.shift,u=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),o&&(n.display.shift=!1),u=r(n)!=Ope}finally{n.display.shift=l,n.state.suppressEdits=!1}return u}function _or(n,r,o){for(let l=0;l{n.state.keySeq==u&&(n.state.keySeq=null,n.display.input.reset())}),sWt(n,u+" "+r,o,l))return!0}return sWt(n,r,o,l)}function sWt(n,r,o,l){let u=_or(n,r,l);return u=="multi"&&(n.state.keySeq=r),u=="handled"&&Ah(n,"keyHandled",n,r,o),(u=="handled"||u=="multi")&&(i1(o),DHe(n)),!!u}function dnn(n,r){let o=unn(r,!0);return o?r.shiftKey&&!n.state.keySeq?pq(n,"Shift-"+o,r,l=>Ffe(n,l,!0))||pq(n,o,r,l=>{if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return Ffe(n,l)}):pq(n,o,r,l=>Ffe(n,l)):!1}function Eor(n,r,o){return pq(n,"'"+o+"'",r,l=>Ffe(n,l,!0))}var yje=null;function hnn(n){let r=this;if(n.target&&n.target!=r.display.input.getField()||(r.curOp.focus=rv(),kh(r,n)))return;ta&&Yc<11&&n.keyCode==27&&(n.returnValue=!1);let o=n.keyCode;r.display.shift=o==16||n.shiftKey;let l=dnn(r,n);CS&&(yje=l?o:null,!l&&o==88&&!Lrr&&(sv?n.metaKey:n.ctrlKey)&&r.replaceSelection("",null,"cut")),YR&&!sv&&!l&&o==46&&n.shiftKey&&!n.ctrlKey&&document.execCommand&&document.execCommand("cut"),o==18&&!/\bCodeMirror-crosshair\b/.test(r.display.lineDiv.className)&&kor(r)}function kor(n){let r=n.display.lineDiv;KP(r,"CodeMirror-crosshair");function o(l){(l.keyCode==18||!l.altKey)&&(zP(r,"CodeMirror-crosshair"),em(document,"keyup",o),em(document,"mouseover",o))}mo(document,"keyup",o),mo(document,"mouseover",o)}function pnn(n){n.keyCode==16&&(this.doc.sel.shift=!1),kh(this,n)}function bnn(n){let r=this;if(n.target&&n.target!=r.display.input.getField()||ex(r.display,n)||kh(r,n)||n.ctrlKey&&!n.altKey||sv&&n.metaKey)return;let o=n.keyCode,l=n.charCode;if(CS&&o==yje){yje=null,i1(n);return}if(CS&&(!n.which||n.which<10)&&dnn(r,n))return;let u=String.fromCharCode(l??o);u!="\b"&&(Eor(r,n,u)||r.display.input.onKeyPress(n))}var Ror=400,lWt=class{constructor(n,r,o){this.time=n,this.pos=r,this.button=o}compare(n,r,o){return this.time+Ror>n&&ns(r,this.pos)==0&&o==this.button}},eK,tK;function xor(n,r){let o=+new Date;return tK&&tK.compare(o,n,r)?(eK=tK=null,"triple"):eK&&eK.compare(o,n,r)?(tK=new lWt(o,n,r),eK=null,"double"):(eK=new lWt(o,n,r),tK=null,"single")}function gnn(n){let r=this,o=r.display;if(kh(r,n)||o.activeTouch&&o.input.supportsTouch())return;if(o.input.ensurePolled(),o.shift=n.shiftKey,ex(o,n)){Gb||(o.scroller.draggable=!1,setTimeout(()=>o.scroller.draggable=!0,100));return}if(vje(r,n))return;let l=RP(r,n),u=itn(n),d=l?xor(l,u):"single";window.focus(),u==1&&r.state.selectingText&&r.state.selectingText(n),!(l&&Cor(r,u,l,d,n))&&(u==1?l?Tor(r,l,d,n):gHe(n)==o.scroller&&i1(n):u==2?(l&&Gpe(r.doc,l),setTimeout(()=>o.input.focus(),20)):u==3&&(dHe?r.display.input.onContextMenu(n):LHe(r)))}function Cor(n,r,o,l,u){let d="Click";return l=="double"?d="Double"+d:l=="triple"&&(d="Triple"+d),d=(r==1?"Left":r==2?"Middle":"Right")+d,pq(n,cnn(d,u),u,h=>{if(typeof h=="string"&&(h=SX[h]),!h)return!1;let w=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),w=h(n,o)!=Ope}finally{n.state.suppressEdits=!1}return w})}function Aor(n,r,o){let l=n.getOption("configureMouse"),u=l?l(n,r,o):{};if(u.unit==null){let d=xrr?o.shiftKey&&o.metaKey:o.altKey;u.unit=d?"rectangle":r=="single"?"char":r=="double"?"word":"line"}return(u.extend==null||n.doc.extend)&&(u.extend=n.doc.extend||o.shiftKey),u.addNew==null&&(u.addNew=sv?o.metaKey:o.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(sv?o.altKey:o.ctrlKey)),u}function Tor(n,r,o,l){ta?setTimeout(hHe(Dtn,n),0):n.curOp.focus=rv();let u=Aor(n,o,l),d=n.doc.sel,h;n.options.dragDrop&&Orr&&!n.isReadOnly()&&o=="single"&&(h=d.contains(r))>-1&&(ns((h=d.ranges[h]).from(),r)<0||r.xRel>0)&&(ns(h.to(),r)>0||r.xRel<0)?$or(n,l,r,u):Ior(n,l,r,u)}function $or(n,r,o,l){let u=n.display,d=!1,h=xh(n,y=>{Gb&&(u.scroller.draggable=!1),n.state.draggingText=!1,n.state.delayingBlurEvent&&(n.hasFocus()?n.state.delayingBlurEvent=!1:LHe(n)),em(u.wrapper.ownerDocument,"mouseup",h),em(u.wrapper.ownerDocument,"mousemove",w),em(u.scroller,"dragstart",v),em(u.scroller,"drop",h),d||(i1(y),l.addNew||Gpe(n.doc,o,null,null,l.extend),Gb&&!Ipe||ta&&Yc==9?setTimeout(()=>{u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),w=function(y){d=d||Math.abs(r.clientX-y.clientX)+Math.abs(r.clientY-y.clientY)>=10},v=()=>d=!0;Gb&&(u.scroller.draggable=!0),n.state.draggingText=h,h.copy=!l.moveOnDrag,mo(u.wrapper.ownerDocument,"mouseup",h),mo(u.wrapper.ownerDocument,"mousemove",w),mo(u.scroller,"dragstart",v),mo(u.scroller,"drop",h),n.state.delayingBlurEvent=!0,setTimeout(()=>u.input.focus(),20),u.scroller.dragDrop&&u.scroller.dragDrop()}function aWt(n,r,o){if(o=="char")return new lc(r,r);if(o=="word")return n.findWordAt(r);if(o=="line")return new lc(ur(r.line,0),ts(n.doc,ur(r.line+1,0)));let l=o(n,r);return new lc(l.from,l.to)}function Ior(n,r,o,l){ta&&LHe(n);let u=n.display,d=n.doc;i1(r);let h,w,v=d.sel,y=v.ranges;if(l.addNew&&!l.extend?(w=d.sel.contains(o),w>-1?h=y[w]:h=new lc(o,o)):(h=d.sel.primary(),w=d.sel.primIndex),l.unit=="rectangle")l.addNew||(h=new lc(o,o)),o=RP(n,r,!0,!0),w=-1;else{let G=aWt(n,o,l.unit);l.extend?h=zHe(h,G.anchor,G.head,l.extend):h=G}l.addNew?w==-1?(w=y.length,zp(d,ES(n,y.concat([h]),w),{scroll:!1,origin:"*mouse"})):y.length>1&&y[w].empty()&&l.unit=="char"&&!l.extend?(zp(d,ES(n,y.slice(0,w).concat(y.slice(w+1)),0),{scroll:!1,origin:"*mouse"}),v=d.sel):KHe(d,w,h,nNe):(w=0,zp(d,new jT([h],0),nNe),v=d.sel);let E=o;function A(G){if(ns(E,G)!=0)if(E=G,l.unit=="rectangle"){let j=[],Q=n.options.tabSize,te=ev(Bi(d,o.line).text,o.ch,Q),pe=ev(Bi(d,G.line).text,G.ch,Q),Le=Math.min(te,pe),Ee=Math.max(te,pe);for(let le=Math.min(o.line,G.line),xe=Math.min(n.lastLine(),Math.max(o.line,G.line));le<=xe;le++){let be=Bi(d,le).text,ae=rje(be,Le,Q);Le==Ee?j.push(new lc(ur(le,ae),ur(le,ae))):be.length>ae&&j.push(new lc(ur(le,ae),ur(le,rje(be,Ee,Q))))}j.length||j.push(new lc(o,o)),zp(d,ES(n,v.ranges.slice(0,w).concat(j),w),{origin:"*mouse",scroll:!1}),n.scrollIntoView(G)}else{let j=h,Q=aWt(n,G,l.unit),te=j.anchor,pe;ns(Q.anchor,te)>0?(pe=Q.head,te=Lpe(j.from(),Q.anchor)):(pe=Q.anchor,te=Dpe(j.to(),Q.head));let Le=v.ranges.slice(0);Le[w]=Por(n,new lc(ts(d,te),pe)),zp(d,ES(n,Le,w),nNe)}}let C=u.wrapper.getBoundingClientRect(),R=0;function O(G){let j=++R,Q=RP(n,G,!0,l.unit=="rectangle");if(Q)if(ns(Q,E)!=0){n.curOp.focus=rv(),A(Q);let te=Hde(u,d);(Q.line>=te.to||Q.line{R==j&&O(G)}),150)}else{let te=G.clientYC.bottom?20:0;te&&setTimeout(xh(n,()=>{R==j&&(u.scroller.scrollTop+=te,O(G))}),50)}}function M(G){n.state.selectingText=!1,R=1/0,G&&(i1(G),u.input.focus()),em(u.wrapper.ownerDocument,"mousemove",L),em(u.wrapper.ownerDocument,"mouseup",H),d.history.lastSelOrigin=null}let L=xh(n,G=>{G.buttons===0||!itn(G)?M(G):O(G)}),H=xh(n,M);n.state.selectingText=H,mo(u.wrapper.ownerDocument,"mousemove",L),mo(u.wrapper.ownerDocument,"mouseup",H)}function Por(n,r){let{anchor:o,head:l}=r,u=Bi(n.doc,o.line);if(ns(o,l)==0&&o.sticky==l.sticky)return r;let d=Rx(u);if(!d)return r;let h=dX(d,o.ch,o.sticky),w=d[h];if(w.from!=o.ch&&w.to!=o.ch)return r;let v=h+(w.from==o.ch==(w.level!=1)?0:1);if(v==0||v==d.length)return r;let y;if(l.line!=o.line)y=(l.line-o.line)*(n.doc.direction=="ltr"?1:-1)>0;else{let O=dX(d,l.ch,l.sticky),M=O-h||(l.ch-o.ch)*(w.level==1?-1:1);O==v-1||O==v?y=M<0:y=M>0}let E=d[v+(y?-1:0)],A=y==(E.level==1),C=A?E.from:E.to,R=A?"after":"before";return o.ch==C&&o.sticky==R?r:new lc(new ur(o.line,C,R),l)}function wnn(n,r,o,l){let u,d;if(r.touches)u=r.touches[0].clientX,d=r.touches[0].clientY;else try{u=r.clientX,d=r.clientY}catch{return!1}if(u>=Math.floor(n.display.gutters.getBoundingClientRect().right))return!1;l&&i1(r);let h=n.display,w=h.lineDiv.getBoundingClientRect();if(d>w.bottom||!lv(n,o))return sje(r);d-=w.top-h.viewOffset;for(let v=0;v=u){let E=V8(n.doc,d),A=n.display.gutterSpecs[v];return vd(n,o,n,E,A.className,r),sje(r)}}}function vje(n,r){return wnn(n,r,"gutterClick",!0)}function cWt(n,r){ex(n.display,r)||Oor(n,r)||kh(n,r,"contextmenu")||dHe||n.display.input.onContextMenu(r)}function Oor(n,r){return lv(n,"gutterContextMenu")?wnn(n,r,"gutterContextMenu",!1):!1}function mnn(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-"),yX(n)}var BD={toString:function(){return"CodeMirror.Init"}},ynn={},Bfe={};function Nor(n){let r=n.optionHandlers;function o(l,u,d,h){n.defaults[l]=u,d&&(r[l]=h?(w,v,y)=>{y!=BD&&d(w,v,y)}:d)}n.defineOption=o,n.Init=BD,o("value","",(l,u)=>l.setValue(u),!0),o("mode",null,(l,u)=>{l.doc.modeOption=u,gje(l)},!0),o("indentUnit",2,gje,!0),o("indentWithTabs",!1),o("smartIndent",!0),o("tabSize",4,l=>{AK(l),yX(l),o1(l)},!0),o("lineSeparator",null,(l,u)=>{if(l.doc.lineSep=u,!u)return;let d=[],h=l.doc.first;l.doc.iter(w=>{for(let v=0;;){let y=w.text.indexOf(u,v);if(y==-1)break;v=y+u.length,d.push(ur(h,y))}h++});for(let w=d.length-1;w>=0;w--)hj(l.doc,u,d[w],ur(d[w].line,d[w].ch+u.length))}),o("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(l,u,d)=>{l.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),d!=BD&&l.refresh()}),o("specialCharPlaceholder",sir,l=>l.refresh(),!0),o("electricChars",!0),o("inputStyle",cX?"contenteditable":"textarea",()=>{throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),o("spellcheck",!1,(l,u)=>l.getInputField().spellcheck=u,!0),o("autocorrect",!1,(l,u)=>l.getInputField().autocorrect=u,!0),o("autocapitalize",!1,(l,u)=>l.getInputField().autocapitalize=u,!0),o("rtlMoveVisually",!Crr),o("wholeLineUpdateBefore",!0),o("theme","default",l=>{mnn(l),Zz(l)},!0),o("keyMap","default",(l,u,d)=>{let h=Vde(u),w=d!=BD&&Vde(d);w&&w.detach&&w.detach(l,h),h.attach&&h.attach(l,w||null)}),o("extraKeys",null),o("configureMouse",null),o("lineWrapping",!1,Dor,!0),o("gutters",[],(l,u)=>{l.display.gutterSpecs=bje(u,l.options.lineNumbers),Zz(l)},!0),o("fixedGutter",!0,(l,u)=>{l.display.gutters.style.left=u?NHe(l.display)+"px":"0",l.refresh()},!0),o("coverGutterNextToScrollbar",!1,l=>DL(l),!0),o("scrollbarStyle","native",l=>{Btn(l),DL(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),o("lineNumbers",!1,(l,u)=>{l.display.gutterSpecs=bje(l.options.gutters,u),Zz(l)},!0),o("firstLineNumber",1,Zz,!0),o("lineNumberFormatter",l=>l,Zz,!0),o("showCursorWhenSelecting",!1,uq,!0),o("resetSelectionOnContextMenu",!0),o("lineWiseCopyCut",!0),o("pasteLinesPerSelection",!0),o("selectionsMayTouch",!1),o("readOnly",!1,(l,u)=>{u=="nocursor"&&(fj(l),l.display.input.blur()),l.display.input.readOnlyChanged(u)}),o("screenReaderLabel",null,(l,u)=>{u=u===""?null:u,l.display.input.screenReaderLabelChanged(u)}),o("disableInput",!1,(l,u)=>{u||l.display.input.reset()},!0),o("dragDrop",!0,Mor),o("allowDropFileTypes",null),o("cursorBlinkRate",530),o("cursorScrollMargin",0),o("cursorHeight",1,uq,!0),o("singleCursorHeightPerLine",!0,uq,!0),o("workTime",100),o("workDelay",100),o("flattenSpans",!0,AK,!0),o("addModeClass",!1,AK,!0),o("pollInterval",100),o("undoDepth",200,(l,u)=>l.doc.history.undoDepth=u),o("historyEventDelay",1250),o("viewportMargin",10,l=>l.refresh(),!0),o("maxHighlightLength",1e4,AK,!0),o("moveInputWithCursor",!0,(l,u)=>{u||l.display.input.resetPosition()}),o("tabindex",null,(l,u)=>l.display.input.getField().tabIndex=u||""),o("autofocus",null),o("direction","ltr",(l,u)=>l.doc.setDirection(u),!0),o("phrases",null)}function Mor(n,r,o){let l=o&&o!=BD;if(!r!=!l){let u=n.display.dragFunctions,d=r?mo:em;d(n.display.scroller,"dragstart",u.start),d(n.display.scroller,"dragenter",u.enter),d(n.display.scroller,"dragover",u.over),d(n.display.scroller,"dragleave",u.leave),d(n.display.scroller,"drop",u.drop)}}function Dor(n){n.options.lineWrapping?(KP(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):(zP(n.display.wrapper,"CodeMirror-wrap"),xHe(n)),MHe(n),o1(n),yX(n),setTimeout(()=>DL(n),100)}function du(n,r){if(!(this instanceof du))return new du(n,r);this.options=r=r?kP(r):{},kP(ynn,r,!1);let o=r.value;typeof o=="string"?o=new nP(o,r.mode,null,r.lineSeparator,r.direction):r.mode&&(o.modeOption=r.mode),this.doc=o;let l=new du.inputStyles[r.inputStyle](this),u=this.display=new qir(n,o,l,r);u.wrapper.CodeMirror=this,mnn(this),r.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Btn(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new NL,keySeq:null,specialChars:null},r.autofocus&&!cX&&u.input.focus(),ta&&Yc<11&&setTimeout(()=>this.display.input.reset(!0),20),jor(this),por(),JP(this),this.curOp.forceUpdate=!0,qtn(this,o),r.autofocus&&!cX||this.hasFocus()?setTimeout(()=>{this.hasFocus()&&!this.state.focused&&jHe(this)},20):fj(this);for(let d in Bfe)Bfe.hasOwnProperty(d)&&Bfe[d](this,r[d],BD);Gtn(this),r.finishInit&&r.finishInit(this);for(let d=0;d<_je.length;++d)_je[d](this);YP(this),Gb&&r.lineWrapping&&getComputedStyle(u.lineDiv).textRendering=="optimizelegibility"&&(u.lineDiv.style.textRendering="auto")}du.defaults=ynn;du.optionHandlers=Bfe;var Lor=du;function jor(n){let r=n.display;mo(r.scroller,"mousedown",xh(n,gnn)),ta&&Yc<11?mo(r.scroller,"dblclick",xh(n,v=>{if(kh(n,v))return;let y=RP(n,v);if(!y||vje(n,v)||ex(n.display,v))return;i1(v);let E=n.findWordAt(y);Gpe(n.doc,E.anchor,E.head)})):mo(r.scroller,"dblclick",v=>kh(n,v)||i1(v)),mo(r.scroller,"contextmenu",v=>cWt(n,v)),mo(r.input.getField(),"contextmenu",v=>{r.scroller.contains(v.target)||cWt(n,v)});let o,l={end:0};function u(){r.activeTouch&&(o=setTimeout(()=>r.activeTouch=null,1e3),l=r.activeTouch,l.end=+new Date)}function d(v){if(v.touches.length!=1)return!1;let y=v.touches[0];return y.radiusX<=1&&y.radiusY<=1}function h(v,y){if(y.left==null)return!0;let E=y.left-v.left,A=y.top-v.top;return E*E+A*A>20*20}mo(r.scroller,"touchstart",v=>{if(!kh(n,v)&&!d(v)&&!vje(n,v)){r.input.ensurePolled(),clearTimeout(o);let y=+new Date;r.activeTouch={start:y,moved:!1,prev:y-l.end<=300?l:null},v.touches.length==1&&(r.activeTouch.left=v.touches[0].pageX,r.activeTouch.top=v.touches[0].pageY)}}),mo(r.scroller,"touchmove",()=>{r.activeTouch&&(r.activeTouch.moved=!0)}),mo(r.scroller,"touchend",v=>{let y=r.activeTouch;if(y&&!ex(r,v)&&y.left!=null&&!y.moved&&new Date-y.start<300){let E=n.coordsChar(r.activeTouch,"page"),A;!y.prev||h(y,y.prev)?A=new lc(E,E):!y.prev.prev||h(y,y.prev.prev)?A=n.findWordAt(E):A=new lc(ur(E.line,0),ts(n.doc,ur(E.line+1,0))),n.setSelection(A.anchor,A.head),n.focus(),i1(v)}u()}),mo(r.scroller,"touchcancel",u),mo(r.scroller,"scroll",()=>{r.scroller.clientHeight&&(fJ(n,r.scroller.scrollTop),XP(n,r.scroller.scrollLeft,!0),vd(n,"scroll",n))}),mo(r.scroller,"mousewheel",v=>UBt(n,v)),mo(r.scroller,"DOMMouseScroll",v=>UBt(n,v)),mo(r.wrapper,"scroll",()=>r.wrapper.scrollTop=r.wrapper.scrollLeft=0),r.dragFunctions={enter:v=>{kh(n,v)||hX(v)},over:v=>{kh(n,v)||(hor(n,v),hX(v))},start:v=>dor(n,v),drop:xh(n,uor),leave:v=>{kh(n,v)||lnn(n)}};let w=r.input.getField();mo(w,"keyup",v=>pnn.call(n,v)),mo(w,"keydown",xh(n,hnn)),mo(w,"keypress",xh(n,bnn)),mo(w,"focus",v=>jHe(n,v)),mo(w,"blur",v=>fj(n,v))}var _je=[];du.defineInitHook=n=>_je.push(n);function bq(n,r,o,l){let u=n.doc,d;o==null&&(o="add"),o=="smart"&&(u.mode.indent?d=uJ(n,r).state:o="prev");let h=n.options.tabSize,w=Bi(u,r),v=ev(w.text,null,h);w.stateAfter&&(w.stateAfter=null);let y=w.text.match(/^\s*/)[0],E;if(!l&&!/\S/.test(w.text))E=0,o="not";else if(o=="smart"&&(E=u.mode.indent(d,w.text.slice(y.length),w.text),E==Ope||E>150)){if(!l)return;o="prev"}o=="prev"?r>u.first?E=ev(Bi(u,r-1).text,null,h):E=0:o=="add"?E=v+n.options.indentUnit:o=="subtract"?E=v-n.options.indentUnit:typeof o=="number"&&(E=v+o),E=Math.max(0,E);let A="",C=0;if(n.options.indentWithTabs)for(let R=Math.floor(E/h);R;--R)C+=h,A+=" ";if(Ch,v=wHe(r),y=null;if(w&&l.ranges.length>1)if(pS&&pS.text.join(` -`)==r){if(l.ranges.length%pS.text.length==0){y=[];for(let A=0;A[A]));let E=n.curOp.updateInput;for(let A=l.ranges.length-1;A>=0;A--){let C=l.ranges[A],R=C.from(),O=C.to();C.empty()&&(o&&o>0?R=ur(R.line,R.ch-o):n.state.overwrite&&!w?O=ur(O.line,Math.min(Bi(d,O.line).text.length,O.ch+$a(v).length)):w&&pS&&pS.lineWise&&pS.text.join(` + left: ${r.left}px; width: ${Math.max(2,r.right-r.left)}px;`);n.display.lineSpace.appendChild(d),d.scrollIntoView(u),n.display.lineSpace.removeChild(d)}}function Bir(n,r,o,l){l==null&&(l=0);let u;!n.options.lineWrapping&&r==o&&(r=r.ch?ur(r.line,r.sticky=="before"?r.ch-1:r.ch,"after"):r,o=r.sticky=="before"?ur(r.line,r.ch+1,"before"):r);for(let d=0;d<5;d++){let h=!1,w=SS(n,r),v=!o||o==r?w:SS(n,o);u={left:Math.min(w.left,v.left),top:Math.min(w.top,v.top)-l,right:Math.max(w.left,v.left),bottom:Math.max(w.bottom,v.bottom)+l};let y=zHe(n,u),E=n.doc.scrollTop,A=n.doc.scrollLeft;if(y.scrollTop!=null&&(fJ(n,y.scrollTop),Math.abs(n.doc.scrollTop-E)>1&&(h=!0)),y.scrollLeft!=null&&(qP(n,y.scrollLeft),Math.abs(n.doc.scrollLeft-A)>1&&(h=!0)),!h)break}return u}function Wir(n,r){let o=zHe(n,r);o.scrollTop!=null&&fJ(n,o.scrollTop),o.scrollLeft!=null&&qP(n,o.scrollLeft)}function zHe(n,r){let o=n.display,l=NL(n.display);r.top<0&&(r.top=0);let u=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:o.scroller.scrollTop,d=DHe(n),h={};r.bottom-r.top>d&&(r.bottom=r.top+d);let w=n.doc.height+MHe(o),v=r.topw-l;if(r.topu+d){let O=Math.min(r.top,(y?w:r.bottom)-d);O!=u&&(h.scrollTop=O)}let E=n.options.fixedGutter?0:o.gutters.offsetWidth,A=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:o.scroller.scrollLeft-E,C=KP(n)-o.gutters.offsetWidth,R=r.right-r.left>C;return R&&(r.right=r.left+C),r.left<10?h.scrollLeft=0:r.leftC+A-3&&(h.scrollLeft=r.right+(R?0:10)-C),h}function KHe(n,r){r!=null&&(zpe(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+r)}function fj(n){zpe(n);let r=n.getCursor();n.curOp.scrollToPos={from:r,to:r,margin:n.options.cursorScrollMargin}}function uq(n,r,o){(r!=null||o!=null)&&zpe(n),r!=null&&(n.curOp.scrollLeft=r),o!=null&&(n.curOp.scrollTop=o)}function Hir(n,r){zpe(n),n.curOp.scrollToPos=r}function zpe(n){let r=n.curOp.scrollToPos;if(r){n.curOp.scrollToPos=null;let o=VBt(n,r.from),l=VBt(n,r.to);Htn(n,o,l,r.margin)}}function Htn(n,r,o,l){let u=zHe(n,{left:Math.min(r.left,o.left),top:Math.min(r.top,o.top)-l,right:Math.max(r.right,o.right),bottom:Math.max(r.bottom,o.bottom)+l});uq(n,u.scrollLeft,u.scrollTop)}function fJ(n,r){Math.abs(n.doc.scrollTop-r)<2||(YR||_je(n,{top:r}),Utn(n,r,!0),YR&&_je(n),dJ(n,100))}function Utn(n,r,o){r=Math.max(0,Math.min(n.display.scroller.scrollHeight-n.display.scroller.clientHeight,r)),!(n.display.scroller.scrollTop==r&&!o)&&(n.doc.scrollTop=r,n.display.scrollbars.setScrollTop(r),n.display.scroller.scrollTop!=r&&(n.display.scroller.scrollTop=r))}function qP(n,r,o,l){r=Math.max(0,Math.min(r,n.display.scroller.scrollWidth-n.display.scroller.clientWidth)),!((o?r==n.doc.scrollLeft:Math.abs(n.doc.scrollLeft-r)<2)&&!l)&&(n.doc.scrollLeft=r,qtn(n),n.display.scroller.scrollLeft!=r&&(n.display.scroller.scrollLeft=r),n.display.scrollbars.setScrollLeft(r))}function yX(n){let r=n.display,o=r.gutters.offsetWidth,l=Math.round(n.doc.height+MHe(n.display));return{clientHeight:r.scroller.clientHeight,viewHeight:r.wrapper.clientHeight,scrollWidth:r.scroller.scrollWidth,clientWidth:r.scroller.clientWidth,viewWidth:r.wrapper.clientWidth,barLeft:n.options.fixedGutter?o:0,docHeight:l,scrollHeight:l+ik(n)+r.barHeight,nativeBarWidth:r.nativeBarWidth,gutterWidth:o}}var Uir=class{constructor(n,r,o){this.cm=o;let l=this.vert=bo("div",[bo("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=bo("div",[bo("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=u.tabIndex=-1,n(l),n(u),mo(l,"scroll",()=>{l.clientHeight&&r(l.scrollTop,"vertical")}),mo(u,"scroll",()=>{u.clientWidth&&r(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ta&&Yc<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")}update(n){let r=n.scrollWidth>n.clientWidth+1,o=n.scrollHeight>n.clientHeight+1,l=n.nativeBarWidth;if(o){this.vert.style.display="block",this.vert.style.bottom=r?l+"px":"0";let u=n.viewHeight-(r?l:0);this.vert.firstChild.style.height=Math.max(0,n.scrollHeight-n.clientHeight+u)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(r){this.horiz.style.display="block",this.horiz.style.right=o?l+"px":"0",this.horiz.style.left=n.barLeft+"px";let u=n.viewWidth-n.barLeft-(o?l:0);this.horiz.firstChild.style.width=Math.max(0,n.scrollWidth-n.clientWidth+u)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&n.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:o?l:0,bottom:r?l:0}}setScrollLeft(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")}setScrollTop(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")}zeroWidthHack(){let n=ov&&!Orr?"12px":"18px";this.horiz.style.height=this.vert.style.width=n,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new OL,this.disableVert=new OL}enableZeroWidthBar(n,r,o){n.style.pointerEvents="auto";function l(){let u=n.getBoundingClientRect();(o=="vert"?document.elementFromPoint(u.right-1,(u.top+u.bottom)/2):document.elementFromPoint((u.right+u.left)/2,u.bottom-1))!=n?n.style.pointerEvents="none":r.set(1e3,l)}r.set(1e3,l)}clear(){let n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)}},Gir=class{update(){return{bottom:0,right:0}}setScrollLeft(){}setScrollTop(){}clear(){}};function ML(n,r){r||(r=yX(n));let o=n.display.barWidth,l=n.display.barHeight;qBt(n,r);for(let u=0;u<4&&o!=n.display.barWidth||l!=n.display.barHeight;u++)o!=n.display.barWidth&&n.options.lineWrapping&&Vpe(n),qBt(n,yX(n)),o=n.display.barWidth,l=n.display.barHeight}function qBt(n,r){let o=n.display,l=o.scrollbars.update(r);o.sizer.style.paddingRight=(o.barWidth=l.right)+"px",o.sizer.style.paddingBottom=(o.barHeight=l.bottom)+"px",o.heightForcer.style.borderBottom=l.bottom+"px solid transparent",l.right&&l.bottom?(o.scrollbarFiller.style.display="block",o.scrollbarFiller.style.height=l.bottom+"px",o.scrollbarFiller.style.width=l.right+"px"):o.scrollbarFiller.style.display="",l.bottom&&n.options.coverGutterNextToScrollbar&&n.options.fixedGutter?(o.gutterFiller.style.display="block",o.gutterFiller.style.height=l.bottom+"px",o.gutterFiller.style.width=r.gutterWidth+"px"):o.gutterFiller.style.display=""}var Gtn={native:Uir,null:Gir};function Vtn(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&VP(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new Gtn[n.options.scrollbarStyle](r=>{n.display.wrapper.insertBefore(r,n.display.scrollbarFiller),mo(r,"mousedown",()=>{n.state.focused&&setTimeout(()=>n.display.input.focus(),0)}),r.setAttribute("cm-not-content","true")},(r,o)=>{o=="horizontal"?qP(n,r):fJ(n,r)},n),n.display.scrollbars.addClass&&zP(n.display.wrapper,n.display.scrollbars.addClass)}var Vir=0;function XP(n){n.curOp={cm:n,viewChanged:!1,startHeight:n.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Vir},vir(n.curOp)}function JP(n){let r=n.curOp;r&&Sir(r,o=>{for(let l=0;l=o.viewTo)||o.maxLineChanged&&r.options.lineWrapping,n.update=n.mustUpdate&&new ztn(r,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function qir(n){n.updatedDisplay=n.mustUpdate&&qHe(n.cm,n.update)}function Xir(n){let r=n.cm,o=r.display;n.updatedDisplay&&Vpe(r),n.barMeasure=yX(r),o.maxLineChanged&&!r.options.lineWrapping&&(n.adjustWidthTo=Ttn(r,o.maxLine,o.maxLine.text.length).left+3,r.display.sizerWidth=n.adjustWidthTo,n.barMeasure.scrollWidth=Math.max(o.scroller.clientWidth,o.sizer.offsetLeft+n.adjustWidthTo+ik(r)+r.display.barWidth),n.maxScrollLeft=Math.max(0,o.sizer.offsetLeft+n.adjustWidthTo-KP(r))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=o.input.prepareSelection())}function Jir(n){let r=n.cm;n.adjustWidthTo!=null&&(r.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft=n.display.viewTo)return;let o=+new Date+n.options.workTime,l=uJ(n,r.highlightFrontier),u=[];r.iter(l.line,Math.min(r.first+r.size,n.display.viewTo+500),d=>{if(l.line>=n.display.viewFrom){let h=d.styles,w=d.text.length>n.options.maxHighlightLength?eP(r.mode,l.state):null,v=dtn(n,d,l,!0);w&&(l.state=w),d.styles=v.styles;let y=d.styleClasses,E=v.classes;E?d.styleClasses=E:y&&(d.styleClasses=null);let A=!h||h.length!=d.styles.length||y!=E&&(!y||!E||y.bgClass!=E.bgClass||y.textClass!=E.textClass);for(let C=0;!A&&Co)return dJ(n,n.options.workDelay),!0}),r.highlightFrontier=l.line,r.modeFrontier=Math.max(r.modeFrontier,l.line),u.length&&x0(n,()=>{for(let d=0;d=o.viewFrom&&r.visible.to<=o.viewTo&&(o.updateLineNumbers==null||o.updateLineNumbers>=o.viewTo)&&o.renderedView==o.view&&zBt(n)==0)return!1;Xtn(n)&&(z4(n),r.dims=BHe(n));let u=l.first+l.size,d=Math.max(r.visible.from-n.options.viewportMargin,l.first),h=Math.min(u,r.visible.to+n.options.viewportMargin);o.viewFromh&&o.viewTo-h<20&&(h=Math.min(u,o.viewTo)),QR&&(d=PHe(n.doc,d),h=vtn(n.doc,h));let w=d!=o.viewFrom||h!=o.viewTo||o.lastWrapHeight!=r.wrapperHeight||o.lastWrapWidth!=r.wrapperWidth;Lir(n,d,h),o.viewOffset=ZR(Bi(n.doc,o.viewFrom)),n.display.mover.style.top=o.viewOffset+"px";let v=zBt(n);if(!w&&v==0&&!r.force&&o.renderedView==o.view&&(o.updateLineNumbers==null||o.updateLineNumbers>=o.viewTo))return!1;let y=eor(n);return v>4&&(o.lineDiv.style.display="none"),nor(n,o.updateLineNumbers,r.dims),v>4&&(o.lineDiv.style.display=""),o.renderedView=o.view,tor(y),ET(o.cursorDiv),ET(o.selectionDiv),o.gutters.style.height=o.sizer.style.minHeight=0,w&&(o.lastWrapHeight=r.wrapperHeight,o.lastWrapWidth=r.wrapperWidth,dJ(n,400)),o.updateLineNumbers=null,!0}function Ktn(n,r){let o=r.viewport;for(let l=!0;;l=!1){if(!l||!n.options.lineWrapping||r.oldDisplayWidth==KP(n)){if(o&&o.top!=null&&(o={top:Math.min(n.doc.height+MHe(n.display)-DHe(n),o.top)}),r.visible=Vde(n.display,n.doc,o),r.visible.from>=n.display.viewFrom&&r.visible.to<=n.display.viewTo)break}else l&&(r.visible=Vde(n.display,n.doc,o));if(!qHe(n,r))break;Vpe(n);let u=yX(n);cq(n),ML(n,u),JHe(n,u),r.force=!1}r.signal(n,"update",n),(n.display.viewFrom!=n.display.reportedViewFrom||n.display.viewTo!=n.display.reportedViewTo)&&(r.signal(n,"viewportChange",n,n.display.viewFrom,n.display.viewTo),n.display.reportedViewFrom=n.display.viewFrom,n.display.reportedViewTo=n.display.viewTo)}function _je(n,r){let o=new ztn(n,r);if(qHe(n,o)){Vpe(n),Ktn(n,o);let l=yX(n);cq(n),ML(n,l),JHe(n,l),o.finish()}}function nor(n,r,o){let l=n.display,u=n.options.lineNumbers,d=l.lineDiv,h=d.firstChild;function w(E){let A=E.nextSibling;return Gb&&ov&&n.display.currentWheelTarget==E?E.style.display="none":E.parentNode.removeChild(E),A}let v=l.view,y=l.viewFrom;for(let E=0;E-1&&(C=!1),Etn(n,A,y,o)),C&&(ET(A.lineNumber),A.lineNumber.appendChild(document.createTextNode(AHe(n.options,y)))),h=A.node.nextSibling}y+=A.size}for(;h;)h=w(h)}function XHe(n){let r=n.gutters.offsetWidth;n.sizer.style.marginLeft=r+"px",Ah(n,"gutterChanged",n)}function JHe(n,r){n.display.sizer.style.minHeight=r.docHeight+"px",n.display.heightForcer.style.top=r.docHeight+"px",n.display.gutters.style.height=r.docHeight+n.display.barHeight+ik(n)+"px"}function qtn(n){let r=n.display,o=r.view;if(!r.alignWidgets&&(!r.gutters.firstChild||!n.options.fixedGutter))return;let l=WHe(r)-r.scroller.scrollLeft+n.doc.scrollLeft,u=r.gutters.offsetWidth,d=l+"px";for(let h=0;hh.clientWidth,v=h.scrollHeight>h.clientHeight;if(l&&w||u&&v){if(u&&ov&&Gb){e:for(let y=r.target,E=d.view;y!=h;y=y.parentNode)for(let A=0;A{if(d.wheelStartX==null)return;let y=h.scrollLeft-d.wheelStartX,E=h.scrollTop-d.wheelStartY,A=E&&d.wheelDY&&E/d.wheelDY||y&&d.wheelDX&&y/d.wheelDX;d.wheelStartX=d.wheelStartY=null,A&&(Qw=(Qw*aue+A)/(aue+1),++aue)},200)):(d.wheelDX+=l,d.wheelDY+=u))}}var jT=class{constructor(r,o){this.ranges=r,this.primIndex=o}primary(){return this.ranges[this.primIndex]}equals(r){if(r==this)return!0;if(r.primIndex!=this.primIndex||r.ranges.length!=this.ranges.length)return!1;for(let o=0;o=0&&ns(r,u.to())<=0)return l}return-1}},lc=class{constructor(n,r){this.anchor=n,this.head=r}from(){return Bpe(this.anchor,this.head)}to(){return Fpe(this.anchor,this.head)}empty(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch}};function ES(n,r,o){let l=n&&n.options.selectionsMayTouch,u=r[o];r.sort((d,h)=>ns(d.from(),h.from())),o=qp(r,u);for(let d=1;d0:v>=0){let y=Bpe(w.from(),h.from()),E=Fpe(w.to(),h.to()),A=w.empty()?h.from()==h.head:w.from()==w.head;d<=o&&--o,r.splice(--d,2,new lc(A?E:y,A?y:E))}}return new jT(r,o)}function xT(n,r){return new jT([new lc(n,r||n)],0)}function CT(n){return n.text?ur(n.from.line+n.text.length-1,$a(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function JBt(n,r){if(ns(n,r.from)<0)return n;if(ns(n,r.to)<=0)return CT(r);let o=n.line+r.text.length-(r.to.line-r.from.line)-1,l=n.ch;return n.line==r.to.line&&(l+=CT(r).ch-r.to.ch),ur(o,l)}function YHe(n,r){let o=[];for(let l=0;l{r.stateAfter&&(r.stateAfter=null),r.styles&&(r.styles=null)}),n.doc.modeFrontier=n.doc.highlightFrontier=n.doc.first,dJ(n,100),n.state.modeGen++,n.curOp&&o1(n)}function Qtn(n,r){return r.from.ch==0&&r.to.ch==0&&$a(r.text)==""&&(!n.cm||n.cm.options.wholeLineUpdateBefore)}function QHe(n,r,o,l){function u(M){return o?o[M]:null}function d(M,L,H){fir(M,L,H,l),Ah(M,"change",M,r)}function h(M,L){let H=[];for(let G=M;G1&&n.remove(w.line+1,O-1),n.insert(w.line+1,M)}Ah(n,"change",n,r)}function yT(n,r,o){function l(u,d,h){if(u.linked)for(let w=0;w{enn(n),o1(n)})}function Bfe(n){this.done=[],this.undone=[],this.undoDepth=n?n.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=n?n.maxGeneration:1}function kje(n,r){let o={from:bje(r.from),to:CT(r),text:tP(n,r.from,r.to)};return QBt(n,o,r.from.line,r.to.line+1),yT(n,l=>QBt(l,o,r.from.line,r.to.line+1),!0),o}function tnn(n){for(;n.length&&$a(n).ranges;)n.pop()}function lor(n,r){if(r)return tnn(n.done),$a(n.done);if(n.done.length&&!$a(n.done).ranges)return $a(n.done);if(n.done.length>1&&!n.done[n.done.length-2].ranges)return n.done.pop(),$a(n.done)}function nnn(n,r,o,l){let u=n.history;u.undone.length=0;let d=+new Date,h,w;if((u.lastOp==l||u.lastOrigin==r.origin&&r.origin&&(r.origin.charAt(0)=="+"&&u.lastModTime>d-(n.cm?n.cm.options.historyEventDelay:500)||r.origin.charAt(0)=="*"))&&(h=lor(u,u.lastOp==l)))w=$a(h.changes),ns(r.from,r.to)==0&&ns(r.from,w.to)==0?w.to=CT(r):h.changes.push(kje(n,r));else{let v=$a(u.done);for((!v||!v.ranges)&&zde(n.sel,u.done),h={changes:[kje(n,r)],generation:u.generation},u.done.push(h);u.done.length>u.undoDepth;)u.done.shift(),u.done[0].ranges||u.done.shift()}u.done.push(o),u.generation=++u.maxGeneration,u.lastModTime=u.lastSelTime=d,u.lastOp=u.lastSelOp=l,u.lastOrigin=u.lastSelOrigin=r.origin,w||vd(n,"historyAdded")}function aor(n,r,o,l){let u=r.charAt(0);return u=="*"||u=="+"&&o.ranges.length==l.ranges.length&&o.somethingSelected()==l.somethingSelected()&&new Date-n.history.lastSelTime<=(n.cm?n.cm.options.historyEventDelay:500)}function cor(n,r,o,l){let u=n.history,d=l&&l.origin;o==u.lastSelOp||d&&u.lastSelOrigin==d&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==d||aor(n,d,$a(u.done),r))?u.done[u.done.length-1]=r:zde(r,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=d,u.lastSelOp=o,l&&l.clearRedo!==!1&&tnn(u.undone)}function zde(n,r){let o=$a(r);o&&o.ranges&&o.equals(n)||r.push(n)}function QBt(n,r,o,l){let u=r["spans_"+n.id],d=0;n.iter(Math.max(n.first,o),Math.min(n.first+n.size,l),h=>{h.markedSpans&&((u||(u=r["spans_"+n.id]={}))[d]=h.markedSpans),++d})}function uor(n){if(!n)return null;let r;for(let o=0;o-1&&($a(v)[u]=E[u],delete E[u])}}return l}function ZHe(n,r,o,l){if(l){let u=n.anchor;if(o){let d=ns(r,u)<0;d!=ns(o,u)<0?(u=r,r=o):d!=ns(r,o)<0&&(r=o)}return new lc(u,r)}else return new lc(o||r,r)}function Kpe(n,r,o,l,u){u==null&&(u=n.cm&&(n.cm.display.shift||n.extend)),zp(n,new jT([ZHe(n.sel.primary(),r,o,u)],0),l)}function eWt(n,r,o){let l=[],u=n.cm&&(n.cm.display.shift||n.extend);for(let h=0;h=r.ch:w.to>r.ch))){if(u&&(vd(v,"beforeCursorEnter"),v.explicitlyCleared))if(d.markedSpans){--h;continue}else break;if(!v.atomic)continue;if(o){let C=v.find(l<0?1:-1),R;if((l<0?E:y)&&(C=nWt(n,C,-l,C&&C.line==r.line?d:null)),C&&C.line==r.line&&(R=ns(C,o))&&(l<0?R<0:R>0))return jD(n,C,r,l,u)}let A=v.find(l<0?-1:1);return(l<0?y:E)&&(A=nWt(n,A,l,A.line==r.line?d:null)),A?jD(n,A,r,l,u):null}}return r}function Kde(n,r,o,l,u){let d=l||1,h=jD(n,r,o,d,u)||!u&&jD(n,r,o,d,!0)||jD(n,r,o,-d,u)||!u&&jD(n,r,o,-d,!0);return h||(n.cantEdit=!0,ur(n.first,0))}function nWt(n,r,o,l){return o<0&&r.ch==0?r.line>n.first?ts(n,ur(r.line-1)):null:o>0&&r.ch==(l||Bi(n,r.line)).text.length?r.linel.canceled=!0};return o&&(l.update=(u,d,h,w)=>{u&&(l.from=ts(n,u)),d&&(l.to=ts(n,d)),h&&(l.text=h),w!==void 0&&(l.origin=w)}),vd(n,"beforeChange",n,l),n.cm&&vd(n.cm,"beforeChange",n.cm,l),l.canceled?(n.cm&&(n.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function DL(n,r,o){if(n.cm){if(!n.cm.curOp)return xh(n.cm,DL)(n,r,o);if(n.cm.state.suppressEdits)return}if((sv(n,"beforeChange")||n.cm&&sv(n.cm,"beforeChange"))&&(r=ann(n,r,!0),!r))return;let l=btn&&!o&&lir(n,r.from,r.to);if(l)for(let u=l.length-1;u>=0;--u)rWt(n,{from:l[u].from,to:l[u].to,text:u?[""]:r.text,origin:r.origin});else rWt(n,r)}function rWt(n,r){if(r.text.length==1&&r.text[0]==""&&ns(r.from,r.to)==0)return;let o=YHe(n,r);nnn(n,r,o,n.cm?n.cm.curOp.id:NaN),vX(n,r,o,gje(n,r));let l=[];yT(n,(u,d)=>{!d&&qp(l,u.history)==-1&&(cnn(u.history,r),l.push(u.history)),vX(u,r,null,gje(u,r))})}function cue(n,r,o){let l=n.cm&&n.cm.state.suppressEdits;if(l&&!o)return;let u=n.history,d,h=n.sel,w=r=="undo"?u.done:u.undone,v=r=="undo"?u.undone:u.done,y=0;for(;y=0;--C){let R=d.changes[C];if(R.origin=r,A&&!ann(n,R,!1)){w.length=0;return}E.push(kje(n,R));let O=C?YHe(n,R):$a(w);vX(n,R,O,ZBt(n,R)),!C&&n.cm&&n.cm.scrollIntoView({from:R.from,to:CT(R)});let M=[];yT(n,(L,H)=>{!H&&qp(M,L.history)==-1&&(cnn(L.history,R),M.push(L.history)),vX(L,R,null,ZBt(L,R))})}}function iWt(n,r){if(r!=0&&(n.first+=r,n.sel=new jT(Lpe(n.sel.ranges,o=>new lc(ur(o.anchor.line+r,o.anchor.ch),ur(o.head.line+r,o.head.ch))),n.sel.primIndex),n.cm)){o1(n.cm,n.first,n.first-r,r);for(let o=n.cm.display,l=o.viewFrom;ln.lastLine())return;if(r.from.lineu&&(r={from:r.from,to:ur(u,Bi(n,u).text.length),text:[r.text[0]],origin:r.origin}),r.removed=tP(n,r.from,r.to),o||(o=YHe(n,r)),n.cm?por(n.cm,r,l):QHe(n,r,l),qpe(n,o,tk),n.cantEdit&&Kde(n,ur(n.firstLine(),0))&&(n.cantEdit=!1)}function por(n,r,o){let l=n.doc,u=n.display,d=r.from,h=r.to,w=!1,v=d.line;n.options.lineWrapping||(v=za(rk(Bi(l,d.line))),l.iter(v,h.line+1,C=>{if(C==u.maxLine)return w=!0,!0})),l.sel.contains(r.from,r.to)>-1&<n(n),QHe(l,r,o,jtn(n)),n.options.lineWrapping||(l.iter(v,d.line+r.text.length,C=>{let R=Gde(C);R>u.maxLineLength&&(u.maxLine=C,u.maxLineLength=R,u.maxLineChanged=!0,w=!1)}),w&&(n.curOp.updateMaxLine=!0)),eir(l,d.line),dJ(n,400);let y=r.text.length-(h.line-d.line)-1;r.full?o1(n):d.line==h.line&&r.text.length==1&&!Qtn(n.doc,r)?LT(n,d.line,"text"):o1(n,d.line,h.line+1,y);let E=sv(n,"changes"),A=sv(n,"change");if(A||E){let C={from:d,to:h,text:r.text,removed:r.removed,origin:r.origin};A&&Ah(n,"change",n,C),E&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(C)}n.display.selForContextMenu=null}function dj(n,r,o,l,u){l||(l=o),ns(l,o)<0&&([o,l]=[l,o]),typeof r=="string"&&(r=n.splitLines(r)),DL(n,{from:o,to:l,text:r,origin:u})}function oWt(n,r,o,l){o1||!(this.children[0]instanceof fq))){let o=[];this.collapse(o),this.children=[new fq(o)],this.children[0].parent=this}},collapse(n){for(let r=0;r50){let h=u.lines.length%25+25;for(let w=h;w10);n.parent.maybeSpill()},iterN(n,r,o){for(let l=0;l{lWt(n,o,-u),LT(n,l,"widget")}),Ah(n,"lineWidgetCleared",n,this,l))}changed(){let n=this.height,r=this.doc.cm,o=this.line;this.height=null;let l=wX(this)-n;l&&(RT(this.doc,o)||nk(o,o.height+l),r&&x0(r,()=>{r.curOp.forceUpdate=!0,lWt(r,o,l),Ah(r,"lineWidgetChanged",r,this,za(o))}))}};lj(tUe);function lWt(n,r,o){ZR(r)<(n.curOp&&n.curOp.scrollTop||n.doc.scrollTop)&&KHe(n,o)}function bor(n,r,o,l){let u=new tUe(n,o,l),d=n.cm;return d&&u.noHScroll&&(d.display.alignWidgets=!0),AK(n,r,"widget",h=>{let w=h.widgets||(h.widgets=[]);if(u.insertAt==null?w.push(u):w.splice(Math.min(w.length,Math.max(0,u.insertAt)),0,u),u.line=h,d&&!RT(n,h)){let v=ZR(h)n.display.maxLineLength&&(n.display.maxLine=d,n.display.maxLineLength=h,n.display.maxLineChanged=!0)}o!=null&&n&&this.collapsed&&o1(n,o,l+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&onn(n.doc)),n&&Ah(n,"markerCleared",n,this,o,l),r&&JP(n),this.parent&&this.parent.clear()}find(n,r){n==null&&this.type=="bookmark"&&(n=1);let o,l;for(let u=0;u{let l=n.line,u=za(n.line),d=LHe(o,u);if(d&&(Ptn(d),o.curOp.selectionChanged=o.curOp.forceUpdate=!0),o.curOp.updateMaxLine=!0,!RT(r.doc,l)&&r.height!=null){let h=r.height;r.height=null;let w=wX(r)-h;w&&nk(l,l.height+w)}Ah(o,"markerChanged",o,this)})}attachLine(n){if(!this.lines.length&&this.doc.cm){let r=this.doc.cm.curOp;(!r.maybeHiddenMarkers||qp(r.maybeHiddenMarkers,this)==-1)&&(r.maybeUnhiddenMarkers||(r.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(n)}detachLine(n){if(this.lines.splice(qp(this.lines,n),1),!this.lines.length&&this.doc.cm){let r=this.doc.cm.curOp;(r.maybeHiddenMarkers||(r.maybeHiddenMarkers=[])).push(this)}}};lj(nUe);function LL(n,r,o,l,u){if(l&&l.shared)return gor(n,r,o,l,u);if(n.cm&&!n.cm.curOp)return xh(n.cm,LL)(n,r,o,l,u);let d=new nUe(n,u),h=ns(r,o);if(l&&EP(l,d,!1),h>0||h==0&&d.clearWhenEmpty!==!1)return d;if(d.replacedWith&&(d.collapsed=!0,d.widgetNode=ZD("span",[d.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||d.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(d.widgetNode.insertLeft=!0)),d.collapsed){if(BBt(n,r.line,r,o,d)||r.line!=o.line&&BBt(n,o.line,r,o,d))throw new Error("Inserting collapsed marker partially overlapping an existing one");nir()}d.addToHistory&&nnn(n,{from:r,to:o,origin:"markText"},n.sel,NaN);let w=r.line,v=n.cm,y;if(n.iter(w,o.line+1,E=>{v&&d.collapsed&&!v.options.lineWrapping&&rk(E)==v.display.maxLine&&(y=!0),d.collapsed&&w!=r.line&&nk(E,0),iir(E,new Wpe(d,w==r.line?r.ch:null,w==o.line?o.ch:null)),++w}),d.collapsed&&n.iter(r.line,o.line+1,E=>{RT(n,E)&&nk(E,0)}),d.clearOnEnter&&mo(d,"beforeCursorEnter",()=>d.clear()),d.readOnly&&(tir(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),d.collapsed&&(d.id=++unn,d.atomic=!0),v){if(y&&(v.curOp.updateMaxLine=!0),d.collapsed)o1(v,r.line,o.line+1);else if(d.className||d.startStyle||d.endStyle||d.css||d.attributes||d.title)for(let E=r.line;E<=o.line;E++)LT(v,E,"text");d.atomic&&onn(v.doc),Ah(v,"markerAdded",v,d)}return d}var rUe=class{constructor(n,r){this.markers=n,this.primary=r;for(let o=0;o{w&&(l.widgetNode=w.cloneNode(!0)),d.push(LL(v,ts(v,r),ts(v,o),l,u));for(let y=0;yr.parent)}function wor(n,r){for(let o=0;ol.push(u));for(let u=0;u=0;h--)DL(this,l[h]);d?rnn(this,d):this.cm&&fj(this.cm)}),undo:Sh(function(){cue(this,"undo")}),redo:Sh(function(){cue(this,"redo")}),undoSelection:Sh(function(){cue(this,"undo",!0)}),redoSelection:Sh(function(){cue(this,"redo",!0)}),setExtending:function(n){this.extend=n},getExtending:function(){return this.extend},historySize:function(){let n=this.history,r=0,o=0;for(let l=0;ln.history=this.history,!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(n){return n&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(n){return this.history.generation==(n||this.cleanGeneration)},getHistory:function(){return{done:iD(this.history.done),undone:iD(this.history.undone)}},setHistory:function(n){let r=this.history=new Bfe(this.history);r.done=iD(n.done.slice(0),null,!0),r.undone=iD(n.undone.slice(0),null,!0)},setGutterMarker:Sh(function(n,r,o){return AK(this,n,"gutter",l=>{let u=l.gutterMarkers||(l.gutterMarkers={});return u[r]=o,!o&&OBt(u)&&(l.gutterMarkers=null),!0})}),clearGutter:Sh(function(n){this.iter(r=>{r.gutterMarkers&&r.gutterMarkers[n]&&AK(this,r,"gutter",()=>(r.gutterMarkers[n]=null,OBt(r.gutterMarkers)&&(r.gutterMarkers=null),!0))})}),lineInfo:function(n){let r;if(typeof n=="number"){if(!hX(this,n)||(r=n,n=Bi(this,n),!n))return null}else if(r=za(n),r==null)return null;return{line:r,handle:n,text:n.text,gutterMarkers:n.gutterMarkers,textClass:n.textClass,bgClass:n.bgClass,wrapClass:n.wrapClass,widgets:n.widgets}},addLineClass:Sh(function(n,r,o){return AK(this,n,r=="gutter"?"gutter":"class",l=>{let u=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass";if(!l[u])l[u]=o;else{if(PL(o).test(l[u]))return!1;l[u]+=" "+o}return!0})}),removeLineClass:Sh(function(n,r,o){return AK(this,n,r=="gutter"?"gutter":"class",l=>{let u=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass",d=l[u];if(d)if(o==null)l[u]=null;else{let h=d.match(PL(o));if(!h)return!1;let w=h.index+h[0].length;l[u]=d.slice(0,h.index)+(!h.index||w==d.length?"":" ")+d.slice(w)||null}else return!1;return!0})}),addLineWidget:Sh(function(n,r,o){return bor(this,n,r,o)}),removeLineWidget:function(n){n.clear()},markText:function(n,r,o){return LL(this,ts(this,n),ts(this,r),o,o&&o.type||"range")},setBookmark:function(n,r){let o={replacedWith:r&&(r.nodeType==null?r.widget:r),insertLeft:r&&r.insertLeft,clearWhenEmpty:!1,shared:r&&r.shared,handleMouseEvents:r&&r.handleMouseEvents};return n=ts(this,n),LL(this,n,n,o,"bookmark")},findMarksAt:function(n){n=ts(this,n);let r=[],o=Bi(this,n.line).markedSpans;if(o)for(let l=0;l=n.ch)&&r.push(u.marker.parent||u.marker)}return r},findMarks:function(n,r,o){n=ts(this,n),r=ts(this,r);let l=[],u=n.line;return this.iter(n.line,r.line+1,d=>{let h=d.markedSpans;if(h)for(let w=0;w=v.to||v.from==null&&u!=n.line||v.from!=null&&u==r.line&&v.from>=r.ch)&&(!o||o(v.marker))&&l.push(v.marker.parent||v.marker)}++u}),l},getAllMarks:function(){let n=[];return this.iter(r=>{let o=r.markedSpans;if(o)for(let l=0;l{let d=u.text.length+l;if(d>n)return r=n,!0;n-=d,++o}),ts(this,ur(o,r))},indexFromPos:function(n){n=ts(this,n);let r=n.ch;if(n.line{r+=l.text.length+o}),r},copy:function(n){let r=new HR(uNe(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return r.scrollTop=this.scrollTop,r.scrollLeft=this.scrollLeft,r.sel=this.sel,r.extend=!1,n&&(r.history.undoDepth=this.history.undoDepth,r.setHistory(this.getHistory())),r},linkedDoc:function(n){n||(n={});let r=this.first,o=this.first+this.size;n.from!=null&&n.from>r&&(r=n.from),n.to!=null&&n.tor.push(o.id),!0),n.history=new Bfe(null),n.history.done=iD(this.history.done,r),n.history.undone=iD(this.history.undone,r)}},iterLinkedDocs:function(n){yT(this,n)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(n){return this.lineSep?n.split(this.lineSep):kHe(n)},lineSeparator:function(){return this.lineSep||` +`},setDirection:Sh(function(n){n!="rtl"&&(n="ltr"),n!=this.direction&&(this.direction=n,this.iter(r=>r.order=null),this.cm&&sor(this.cm))})});HR.prototype.eachLine=HR.prototype.iter;var nP=HR,fnn=0;function vor(n){let r=this;if(dnn(r),kh(r,n)||ex(r.display,n))return;i1(n),ta&&(fnn=+new Date);let o=kP(r,n,!0),l=n.dataTransfer.files;if(!(!o||r.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File){let u=l.length,d=Array(u),h=0;const w=()=>{++h==u&&xh(r,()=>{o=ts(r.doc,o);let y={from:o,to:o,text:r.doc.splitLines(d.filter(E=>E!=null).join(r.doc.lineSeparator())),origin:"paste"};DL(r.doc,y),rnn(r.doc,xT(ts(r.doc,o),ts(r.doc,CT(y))))})()},v=(y,E)=>{if(r.options.allowDropFileTypes&&qp(r.options.allowDropFileTypes,y.type)==-1){w();return}let A=new FileReader;A.onerror=()=>w(),A.onload=()=>{let C=A.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(C)){w();return}d[E]=C,w()},A.readAsText(y)};for(let y=0;y-1){r.state.draggingText(n),setTimeout(()=>r.display.input.focus(),20);return}try{let u=n.dataTransfer.getData("Text");if(u){let d;if(r.state.draggingText&&!r.state.draggingText.copy&&(d=r.listSelections()),qpe(r.doc,xT(o,o)),d)for(let h=0;h{for(let l=0;l{n==null&&(n=setTimeout(()=>{n=null,cWt(Ror)},100))}),mo(window,"blur",()=>cWt(uj))}function Ror(n){let r=n.display;r.cachedCharWidth=r.cachedTextHeight=r.cachedPaddingH=null,r.scrollbarsClipped=!1,n.setSize()}var AT={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"};for(let n=0;n<10;n++)AT[n+48]=AT[n+96]=String(n);for(let n=65;n<=90;n++)AT[n]=String.fromCharCode(n);for(let n=1;n<=12;n++)AT[n+111]=AT[n+63235]="F"+n;var VR={};VR.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"};VR.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"};VR.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"};VR.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]};VR.default=ov?VR.macDefault:VR.pcDefault;function xor(n){let r=n.split(/-(?!$)/);n=r[r.length-1];let o,l,u,d;for(let h=0;h{for(let u=l.length-1;u>=0;u--)dj(n.doc,"",l[u].from,l[u].to,"+delete");fj(n)})}function iUe(n,r,o){let l=otn(n.text,r+o,o);return l<0||l>n.text.length?null:l}function Rje(n,r,o){let l=iUe(n,r.ch,o);return l==null?null:new ur(r.line,l,o<0?"after":"before")}function oUe(n,r,o,l,u){if(n){r.doc.direction=="rtl"&&(u=-u);let d=Rx(o,r.doc.direction);if(d){let h=u<0?$a(d):d[0],v=u<0==(h.level==1)?"after":"before",y;if(h.level>0||r.doc.direction=="rtl"){let E=aj(r,o);y=u<0?o.text.length-1:0;let A=ok(r,E,y).top;y=uX(C=>ok(r,E,C).top==A,u<0==(h.level==1)?h.from:h.to-1,y),v=="before"&&(y=iUe(o,y,1))}else y=u<0?h.to:h.from;return new ur(l,y,v)}}return new ur(l,u<0?o.text.length:0,u<0?"before":"after")}function Aor(n,r,o,l){let u=Rx(r,n.doc.direction);if(!u)return Rje(r,o,l);o.ch>=r.text.length?(o.ch=r.text.length,o.sticky="before"):o.ch<=0&&(o.ch=0,o.sticky="after");let d=fX(u,o.ch,o.sticky),h=u[d];if(n.doc.direction=="ltr"&&h.level%2==0&&(l>0?h.to>o.ch:h.fromiUe(r,O instanceof ur?O.ch:O,M),v,y=O=>n.options.lineWrapping?(v=v||aj(n,r),Ltn(n,r,v,O)):{begin:0,end:r.text.length},E=y(o.sticky=="before"?w(o,-1):o.ch);if(n.doc.direction=="rtl"||h.level==1){let O=h.level==1==l<0,M=w(o,O?1:-1);if(M!=null&&(O?M<=h.to&&M<=E.end:M>=h.from&&M>=E.begin)){let L=O?"before":"after";return new ur(o.line,M,L)}}let A=(O,M,L)=>{let H=(G,j)=>j?new ur(o.line,w(G,1),"before"):new ur(o.line,G,"after");for(;O>=0&&O0==(G.level!=1),Q=j?L.begin:w(L.end,-1);if(G.from<=Q&&Q0?E.end:w(E.begin,-1);return R!=null&&!(l>0&&R==r.text.length)&&(C=A(l>0?0:u.length-1,l,y(R)),C)?C:null}var _X={selectAll:lnn,singleSelection:n=>n.setSelection(n.getCursor("anchor"),n.getCursor("head"),tk),killLine:n=>yD(n,r=>{if(r.empty()){let o=Bi(n.doc,r.head.line).text.length;return r.head.ch==o&&r.head.lineyD(n,r=>({from:ur(r.from().line,0),to:ts(n.doc,ur(r.to().line+1,0))})),delLineLeft:n=>yD(n,r=>({from:ur(r.from().line,0),to:r.from()})),delWrappedLineLeft:n=>yD(n,r=>{let o=n.charCoords(r.head,"div").top+5;return{from:n.coordsChar({left:0,top:o},"div"),to:r.from()}}),delWrappedLineRight:n=>yD(n,r=>{let o=n.charCoords(r.head,"div").top+5,l=n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:o},"div");return{from:r.from(),to:l}}),undo:n=>n.undo(),redo:n=>n.redo(),undoSelection:n=>n.undoSelection(),redoSelection:n=>n.redoSelection(),goDocStart:n=>n.extendSelection(ur(n.firstLine(),0)),goDocEnd:n=>n.extendSelection(ur(n.lastLine())),goLineStart:n=>n.extendSelectionsBy(r=>gnn(n,r.head.line),{origin:"+move",bias:1}),goLineStartSmart:n=>n.extendSelectionsBy(r=>fWt(n,r.head),{origin:"+move",bias:1}),goLineEnd:n=>n.extendSelectionsBy(r=>Tor(n,r.head.line),{origin:"+move",bias:-1}),goLineRight:n=>n.extendSelectionsBy(r=>{let o=n.cursorCoords(r.head,"div").top+5;return n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:o},"div")},sq),goLineLeft:n=>n.extendSelectionsBy(r=>{let o=n.cursorCoords(r.head,"div").top+5;return n.coordsChar({left:0,top:o},"div")},sq),goLineLeftSmart:n=>n.extendSelectionsBy(r=>{let o=n.cursorCoords(r.head,"div").top+5,l=n.coordsChar({left:0,top:o},"div");return l.chn.moveV(-1,"line"),goLineDown:n=>n.moveV(1,"line"),goPageUp:n=>n.moveV(-1,"page"),goPageDown:n=>n.moveV(1,"page"),goCharLeft:n=>n.moveH(-1,"char"),goCharRight:n=>n.moveH(1,"char"),goColumnLeft:n=>n.moveH(-1,"column"),goColumnRight:n=>n.moveH(1,"column"),goWordLeft:n=>n.moveH(-1,"word"),goGroupRight:n=>n.moveH(1,"group"),goGroupLeft:n=>n.moveH(-1,"group"),goWordRight:n=>n.moveH(1,"word"),delCharBefore:n=>n.deleteH(-1,"codepoint"),delCharAfter:n=>n.deleteH(1,"char"),delWordBefore:n=>n.deleteH(-1,"word"),delWordAfter:n=>n.deleteH(1,"word"),delGroupBefore:n=>n.deleteH(-1,"group"),delGroupAfter:n=>n.deleteH(1,"group"),indentAuto:n=>n.indentSelection("smart"),indentMore:n=>n.indentSelection("add"),indentLess:n=>n.indentSelection("subtract"),insertTab:n=>n.replaceSelection(" "),insertSoftTab:n=>{let r=[],o=n.listSelections(),l=n.options.tabSize;for(let u=0;u{n.somethingSelected()?n.indentSelection("add"):n.execCommand("insertTab")},transposeChars:n=>x0(n,()=>{let r=n.listSelections(),o=[];for(let l=0;l0)u=new ur(u.line,u.ch+1),n.replaceRange(d.charAt(u.ch-1)+d.charAt(u.ch-2),ur(u.line,u.ch-2),u,"+transpose");else if(u.line>n.doc.first){let h=Bi(n.doc,u.line-1).text;h&&(u=new ur(u.line,1),n.replaceRange(d.charAt(0)+n.doc.lineSeparator()+h.charAt(h.length-1),ur(u.line-1,h.length-1),u,"+transpose"))}}o.push(new lc(u,u))}n.setSelections(o)}),newlineAndIndent:n=>x0(n,()=>{let r=n.listSelections();for(let o=r.length-1;o>=0;o--)n.replaceRange(n.doc.lineSeparator(),r[o].anchor,r[o].head,"+input");r=n.listSelections();for(let o=0;on.replaceSelection(` +`,"start"),toggleOverwrite:n=>n.toggleOverwrite()};function gnn(n,r){let o=Bi(n.doc,r),l=rk(o);return l!=o&&(r=za(l)),oUe(!0,n,l,r,1)}function Tor(n,r){let o=Bi(n.doc,r),l=cir(o);return l!=o&&(r=za(l)),oUe(!0,n,o,r,-1)}function fWt(n,r){let o=gnn(n,r.line),l=Bi(n.doc,o.line),u=Rx(l,n.doc.direction);if(!u||u[0].level==0){let d=Math.max(o.ch,l.text.search(/\S/)),h=r.line==o.line&&r.ch<=d&&r.ch;return ur(o.line,h?0:d,o.sticky)}return o}function Wfe(n,r,o){if(typeof r=="string"&&(r=_X[r],!r))return!1;n.display.input.ensurePolled();let l=n.display.shift,u=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),o&&(n.display.shift=!1),u=r(n)!=Dpe}finally{n.display.shift=l,n.state.suppressEdits=!1}return u}function $or(n,r,o){for(let l=0;l{n.state.keySeq==u&&(n.state.keySeq=null,n.display.input.reset())}),dWt(n,u+" "+r,o,l))return!0}return dWt(n,r,o,l)}function dWt(n,r,o,l){let u=$or(n,r,l);return u=="multi"&&(n.state.keySeq=r),u=="handled"&&Ah(n,"keyHandled",n,r,o),(u=="handled"||u=="multi")&&(i1(o),UHe(n)),!!u}function wnn(n,r){let o=bnn(r,!0);return o?r.shiftKey&&!n.state.keySeq?hq(n,"Shift-"+o,r,l=>Wfe(n,l,!0))||hq(n,o,r,l=>{if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return Wfe(n,l)}):hq(n,o,r,l=>Wfe(n,l)):!1}function Por(n,r,o){return hq(n,"'"+o+"'",r,l=>Wfe(n,l,!0))}var xje=null;function mnn(n){let r=this;if(n.target&&n.target!=r.display.input.getField()||(r.curOp.focus=nv(),kh(r,n)))return;ta&&Yc<11&&n.keyCode==27&&(n.returnValue=!1);let o=n.keyCode;r.display.shift=o==16||n.shiftKey;let l=wnn(r,n);CS&&(xje=l?o:null,!l&&o==88&&!zrr&&(ov?n.metaKey:n.ctrlKey)&&r.replaceSelection("",null,"cut")),YR&&!ov&&!l&&o==46&&n.shiftKey&&!n.ctrlKey&&document.execCommand&&document.execCommand("cut"),o==18&&!/\bCodeMirror-crosshair\b/.test(r.display.lineDiv.className)&&Oor(r)}function Oor(n){let r=n.display.lineDiv;zP(r,"CodeMirror-crosshair");function o(l){(l.keyCode==18||!l.altKey)&&(VP(r,"CodeMirror-crosshair"),em(document,"keyup",o),em(document,"mouseover",o))}mo(document,"keyup",o),mo(document,"mouseover",o)}function ynn(n){n.keyCode==16&&(this.doc.sel.shift=!1),kh(this,n)}function vnn(n){let r=this;if(n.target&&n.target!=r.display.input.getField()||ex(r.display,n)||kh(r,n)||n.ctrlKey&&!n.altKey||ov&&n.metaKey)return;let o=n.keyCode,l=n.charCode;if(CS&&o==xje){xje=null,i1(n);return}if(CS&&(!n.which||n.which<10)&&wnn(r,n))return;let u=String.fromCharCode(l??o);u!="\b"&&(Por(r,n,u)||r.display.input.onKeyPress(n))}var Nor=400,hWt=class{constructor(n,r,o){this.time=n,this.pos=r,this.button=o}compare(n,r,o){return this.time+Nor>n&&ns(r,this.pos)==0&&o==this.button}},Zz,eK;function Mor(n,r){let o=+new Date;return eK&&eK.compare(o,n,r)?(Zz=eK=null,"triple"):Zz&&Zz.compare(o,n,r)?(eK=new hWt(o,n,r),Zz=null,"double"):(Zz=new hWt(o,n,r),eK=null,"single")}function _nn(n){let r=this,o=r.display;if(kh(r,n)||o.activeTouch&&o.input.supportsTouch())return;if(o.input.ensurePolled(),o.shift=n.shiftKey,ex(o,n)){Gb||(o.scroller.draggable=!1,setTimeout(()=>o.scroller.draggable=!0,100));return}if(Cje(r,n))return;let l=kP(r,n),u=ctn(n),d=l?Mor(l,u):"single";window.focus(),u==1&&r.state.selectingText&&r.state.selectingText(n),!(l&&Dor(r,u,l,d,n))&&(u==1?l?jor(r,l,d,n):EHe(n)==o.scroller&&i1(n):u==2?(l&&Kpe(r.doc,l),setTimeout(()=>o.input.focus(),20)):u==3&&(yHe?r.display.input.onContextMenu(n):GHe(r)))}function Dor(n,r,o,l,u){let d="Click";return l=="double"?d="Double"+d:l=="triple"&&(d="Triple"+d),d=(r==1?"Left":r==2?"Middle":"Right")+d,hq(n,pnn(d,u),u,h=>{if(typeof h=="string"&&(h=_X[h]),!h)return!1;let w=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),w=h(n,o)!=Dpe}finally{n.state.suppressEdits=!1}return w})}function Lor(n,r,o){let l=n.getOption("configureMouse"),u=l?l(n,r,o):{};if(u.unit==null){let d=Mrr?o.shiftKey&&o.metaKey:o.altKey;u.unit=d?"rectangle":r=="single"?"char":r=="double"?"word":"line"}return(u.extend==null||n.doc.extend)&&(u.extend=n.doc.extend||o.shiftKey),u.addNew==null&&(u.addNew=ov?o.metaKey:o.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(ov?o.altKey:o.ctrlKey)),u}function jor(n,r,o,l){ta?setTimeout(vHe(Wtn,n),0):n.curOp.focus=nv();let u=Lor(n,o,l),d=n.doc.sel,h;n.options.dragDrop&&Hrr&&!n.isReadOnly()&&o=="single"&&(h=d.contains(r))>-1&&(ns((h=d.ranges[h]).from(),r)<0||r.xRel>0)&&(ns(h.to(),r)>0||r.xRel<0)?For(n,l,r,u):Bor(n,l,r,u)}function For(n,r,o,l){let u=n.display,d=!1,h=xh(n,y=>{Gb&&(u.scroller.draggable=!1),n.state.draggingText=!1,n.state.delayingBlurEvent&&(n.hasFocus()?n.state.delayingBlurEvent=!1:GHe(n)),em(u.wrapper.ownerDocument,"mouseup",h),em(u.wrapper.ownerDocument,"mousemove",w),em(u.scroller,"dragstart",v),em(u.scroller,"drop",h),d||(i1(y),l.addNew||Kpe(n.doc,o,null,null,l.extend),Gb&&!Npe||ta&&Yc==9?setTimeout(()=>{u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),w=function(y){d=d||Math.abs(r.clientX-y.clientX)+Math.abs(r.clientY-y.clientY)>=10},v=()=>d=!0;Gb&&(u.scroller.draggable=!0),n.state.draggingText=h,h.copy=!l.moveOnDrag,mo(u.wrapper.ownerDocument,"mouseup",h),mo(u.wrapper.ownerDocument,"mousemove",w),mo(u.scroller,"dragstart",v),mo(u.scroller,"drop",h),n.state.delayingBlurEvent=!0,setTimeout(()=>u.input.focus(),20),u.scroller.dragDrop&&u.scroller.dragDrop()}function pWt(n,r,o){if(o=="char")return new lc(r,r);if(o=="word")return n.findWordAt(r);if(o=="line")return new lc(ur(r.line,0),ts(n.doc,ur(r.line+1,0)));let l=o(n,r);return new lc(l.from,l.to)}function Bor(n,r,o,l){ta&&GHe(n);let u=n.display,d=n.doc;i1(r);let h,w,v=d.sel,y=v.ranges;if(l.addNew&&!l.extend?(w=d.sel.contains(o),w>-1?h=y[w]:h=new lc(o,o)):(h=d.sel.primary(),w=d.sel.primIndex),l.unit=="rectangle")l.addNew||(h=new lc(o,o)),o=kP(n,r,!0,!0),w=-1;else{let G=pWt(n,o,l.unit);l.extend?h=ZHe(h,G.anchor,G.head,l.extend):h=G}l.addNew?w==-1?(w=y.length,zp(d,ES(n,y.concat([h]),w),{scroll:!1,origin:"*mouse"})):y.length>1&&y[w].empty()&&l.unit=="char"&&!l.extend?(zp(d,ES(n,y.slice(0,w).concat(y.slice(w+1)),0),{scroll:!1,origin:"*mouse"}),v=d.sel):eUe(d,w,h,sNe):(w=0,zp(d,new jT([h],0),sNe),v=d.sel);let E=o;function A(G){if(ns(E,G)!=0)if(E=G,l.unit=="rectangle"){let j=[],Q=n.options.tabSize,te=Zy(Bi(d,o.line).text,o.ch,Q),pe=Zy(Bi(d,G.line).text,G.ch,Q),De=Math.min(te,pe),Re=Math.max(te,pe);for(let le=Math.min(o.line,G.line),xe=Math.min(n.lastLine(),Math.max(o.line,G.line));le<=xe;le++){let be=Bi(d,le).text,ae=uje(be,De,Q);De==Re?j.push(new lc(ur(le,ae),ur(le,ae))):be.length>ae&&j.push(new lc(ur(le,ae),ur(le,uje(be,Re,Q))))}j.length||j.push(new lc(o,o)),zp(d,ES(n,v.ranges.slice(0,w).concat(j),w),{origin:"*mouse",scroll:!1}),n.scrollIntoView(G)}else{let j=h,Q=pWt(n,G,l.unit),te=j.anchor,pe;ns(Q.anchor,te)>0?(pe=Q.head,te=Bpe(j.from(),Q.anchor)):(pe=Q.anchor,te=Fpe(j.to(),Q.head));let De=v.ranges.slice(0);De[w]=Wor(n,new lc(ts(d,te),pe)),zp(d,ES(n,De,w),sNe)}}let C=u.wrapper.getBoundingClientRect(),R=0;function O(G){let j=++R,Q=kP(n,G,!0,l.unit=="rectangle");if(Q)if(ns(Q,E)!=0){n.curOp.focus=nv(),A(Q);let te=Vde(u,d);(Q.line>=te.to||Q.line{R==j&&O(G)}),150)}else{let te=G.clientYC.bottom?20:0;te&&setTimeout(xh(n,()=>{R==j&&(u.scroller.scrollTop+=te,O(G))}),50)}}function M(G){n.state.selectingText=!1,R=1/0,G&&(i1(G),u.input.focus()),em(u.wrapper.ownerDocument,"mousemove",L),em(u.wrapper.ownerDocument,"mouseup",H),d.history.lastSelOrigin=null}let L=xh(n,G=>{G.buttons===0||!ctn(G)?M(G):O(G)}),H=xh(n,M);n.state.selectingText=H,mo(u.wrapper.ownerDocument,"mousemove",L),mo(u.wrapper.ownerDocument,"mouseup",H)}function Wor(n,r){let{anchor:o,head:l}=r,u=Bi(n.doc,o.line);if(ns(o,l)==0&&o.sticky==l.sticky)return r;let d=Rx(u);if(!d)return r;let h=fX(d,o.ch,o.sticky),w=d[h];if(w.from!=o.ch&&w.to!=o.ch)return r;let v=h+(w.from==o.ch==(w.level!=1)?0:1);if(v==0||v==d.length)return r;let y;if(l.line!=o.line)y=(l.line-o.line)*(n.doc.direction=="ltr"?1:-1)>0;else{let O=fX(d,l.ch,l.sticky),M=O-h||(l.ch-o.ch)*(w.level==1?-1:1);O==v-1||O==v?y=M<0:y=M>0}let E=d[v+(y?-1:0)],A=y==(E.level==1),C=A?E.from:E.to,R=A?"after":"before";return o.ch==C&&o.sticky==R?r:new lc(new ur(o.line,C,R),l)}function Snn(n,r,o,l){let u,d;if(r.touches)u=r.touches[0].clientX,d=r.touches[0].clientY;else try{u=r.clientX,d=r.clientY}catch{return!1}if(u>=Math.floor(n.display.gutters.getBoundingClientRect().right))return!1;l&&i1(r);let h=n.display,w=h.lineDiv.getBoundingClientRect();if(d>w.bottom||!sv(n,o))return hje(r);d-=w.top-h.viewOffset;for(let v=0;v=u){let E=V8(n.doc,d),A=n.display.gutterSpecs[v];return vd(n,o,n,E,A.className,r),hje(r)}}}function Cje(n,r){return Snn(n,r,"gutterClick",!0)}function bWt(n,r){ex(n.display,r)||Hor(n,r)||kh(n,r,"contextmenu")||yHe||n.display.input.onContextMenu(r)}function Hor(n,r){return sv(n,"gutterContextMenu")?Snn(n,r,"gutterContextMenu",!1):!1}function Enn(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-"),mX(n)}var FD={toString:function(){return"CodeMirror.Init"}},knn={},Hfe={};function Uor(n){let r=n.optionHandlers;function o(l,u,d,h){n.defaults[l]=u,d&&(r[l]=h?(w,v,y)=>{y!=FD&&d(w,v,y)}:d)}n.defineOption=o,n.Init=FD,o("value","",(l,u)=>l.setValue(u),!0),o("mode",null,(l,u)=>{l.doc.modeOption=u,Eje(l)},!0),o("indentUnit",2,Eje,!0),o("indentWithTabs",!1),o("smartIndent",!0),o("tabSize",4,l=>{CK(l),mX(l),o1(l)},!0),o("lineSeparator",null,(l,u)=>{if(l.doc.lineSep=u,!u)return;let d=[],h=l.doc.first;l.doc.iter(w=>{for(let v=0;;){let y=w.text.indexOf(u,v);if(y==-1)break;v=y+u.length,d.push(ur(h,y))}h++});for(let w=d.length-1;w>=0;w--)dj(l.doc,u,d[w],ur(d[w].line,d[w].ch+u.length))}),o("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(l,u,d)=>{l.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),d!=FD&&l.refresh()}),o("specialCharPlaceholder",bir,l=>l.refresh(),!0),o("electricChars",!0),o("inputStyle",aX?"contenteditable":"textarea",()=>{throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),o("spellcheck",!1,(l,u)=>l.getInputField().spellcheck=u,!0),o("autocorrect",!1,(l,u)=>l.getInputField().autocorrect=u,!0),o("autocapitalize",!1,(l,u)=>l.getInputField().autocapitalize=u,!0),o("rtlMoveVisually",!Drr),o("wholeLineUpdateBefore",!0),o("theme","default",l=>{Enn(l),Qz(l)},!0),o("keyMap","default",(l,u,d)=>{let h=qde(u),w=d!=FD&&qde(d);w&&w.detach&&w.detach(l,h),h.attach&&h.attach(l,w||null)}),o("extraKeys",null),o("configureMouse",null),o("lineWrapping",!1,Vor,!0),o("gutters",[],(l,u)=>{l.display.gutterSpecs=Sje(u,l.options.lineNumbers),Qz(l)},!0),o("fixedGutter",!0,(l,u)=>{l.display.gutters.style.left=u?WHe(l.display)+"px":"0",l.refresh()},!0),o("coverGutterNextToScrollbar",!1,l=>ML(l),!0),o("scrollbarStyle","native",l=>{Vtn(l),ML(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),o("lineNumbers",!1,(l,u)=>{l.display.gutterSpecs=Sje(l.options.gutters,u),Qz(l)},!0),o("firstLineNumber",1,Qz,!0),o("lineNumberFormatter",l=>l,Qz,!0),o("showCursorWhenSelecting",!1,cq,!0),o("resetSelectionOnContextMenu",!0),o("lineWiseCopyCut",!0),o("pasteLinesPerSelection",!0),o("selectionsMayTouch",!1),o("readOnly",!1,(l,u)=>{u=="nocursor"&&(uj(l),l.display.input.blur()),l.display.input.readOnlyChanged(u)}),o("screenReaderLabel",null,(l,u)=>{u=u===""?null:u,l.display.input.screenReaderLabelChanged(u)}),o("disableInput",!1,(l,u)=>{u||l.display.input.reset()},!0),o("dragDrop",!0,Gor),o("allowDropFileTypes",null),o("cursorBlinkRate",530),o("cursorScrollMargin",0),o("cursorHeight",1,cq,!0),o("singleCursorHeightPerLine",!0,cq,!0),o("workTime",100),o("workDelay",100),o("flattenSpans",!0,CK,!0),o("addModeClass",!1,CK,!0),o("pollInterval",100),o("undoDepth",200,(l,u)=>l.doc.history.undoDepth=u),o("historyEventDelay",1250),o("viewportMargin",10,l=>l.refresh(),!0),o("maxHighlightLength",1e4,CK,!0),o("moveInputWithCursor",!0,(l,u)=>{u||l.display.input.resetPosition()}),o("tabindex",null,(l,u)=>l.display.input.getField().tabIndex=u||""),o("autofocus",null),o("direction","ltr",(l,u)=>l.doc.setDirection(u),!0),o("phrases",null)}function Gor(n,r,o){let l=o&&o!=FD;if(!r!=!l){let u=n.display.dragFunctions,d=r?mo:em;d(n.display.scroller,"dragstart",u.start),d(n.display.scroller,"dragenter",u.enter),d(n.display.scroller,"dragover",u.over),d(n.display.scroller,"dragleave",u.leave),d(n.display.scroller,"drop",u.drop)}}function Vor(n){n.options.lineWrapping?(zP(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):(VP(n.display.wrapper,"CodeMirror-wrap"),OHe(n)),HHe(n),o1(n),mX(n),setTimeout(()=>ML(n),100)}function du(n,r){if(!(this instanceof du))return new du(n,r);this.options=r=r?EP(r):{},EP(knn,r,!1);let o=r.value;typeof o=="string"?o=new nP(o,r.mode,null,r.lineSeparator,r.direction):r.mode&&(o.modeOption=r.mode),this.doc=o;let l=new du.inputStyles[r.inputStyle](this),u=this.display=new ror(n,o,l,r);u.wrapper.CodeMirror=this,Enn(this),r.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Vtn(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new OL,keySeq:null,specialChars:null},r.autofocus&&!aX&&u.input.focus(),ta&&Yc<11&&setTimeout(()=>this.display.input.reset(!0),20),Kor(this),Eor(),XP(this),this.curOp.forceUpdate=!0,Ztn(this,o),r.autofocus&&!aX||this.hasFocus()?setTimeout(()=>{this.hasFocus()&&!this.state.focused&&VHe(this)},20):uj(this);for(let d in Hfe)Hfe.hasOwnProperty(d)&&Hfe[d](this,r[d],FD);Xtn(this),r.finishInit&&r.finishInit(this);for(let d=0;d{if(kh(n,v))return;let y=kP(n,v);if(!y||Cje(n,v)||ex(n.display,v))return;i1(v);let E=n.findWordAt(y);Kpe(n.doc,E.anchor,E.head)})):mo(r.scroller,"dblclick",v=>kh(n,v)||i1(v)),mo(r.scroller,"contextmenu",v=>bWt(n,v)),mo(r.input.getField(),"contextmenu",v=>{r.scroller.contains(v.target)||bWt(n,v)});let o,l={end:0};function u(){r.activeTouch&&(o=setTimeout(()=>r.activeTouch=null,1e3),l=r.activeTouch,l.end=+new Date)}function d(v){if(v.touches.length!=1)return!1;let y=v.touches[0];return y.radiusX<=1&&y.radiusY<=1}function h(v,y){if(y.left==null)return!0;let E=y.left-v.left,A=y.top-v.top;return E*E+A*A>20*20}mo(r.scroller,"touchstart",v=>{if(!kh(n,v)&&!d(v)&&!Cje(n,v)){r.input.ensurePolled(),clearTimeout(o);let y=+new Date;r.activeTouch={start:y,moved:!1,prev:y-l.end<=300?l:null},v.touches.length==1&&(r.activeTouch.left=v.touches[0].pageX,r.activeTouch.top=v.touches[0].pageY)}}),mo(r.scroller,"touchmove",()=>{r.activeTouch&&(r.activeTouch.moved=!0)}),mo(r.scroller,"touchend",v=>{let y=r.activeTouch;if(y&&!ex(r,v)&&y.left!=null&&!y.moved&&new Date-y.start<300){let E=n.coordsChar(r.activeTouch,"page"),A;!y.prev||h(y,y.prev)?A=new lc(E,E):!y.prev.prev||h(y,y.prev.prev)?A=n.findWordAt(E):A=new lc(ur(E.line,0),ts(n.doc,ur(E.line+1,0))),n.setSelection(A.anchor,A.head),n.focus(),i1(v)}u()}),mo(r.scroller,"touchcancel",u),mo(r.scroller,"scroll",()=>{r.scroller.clientHeight&&(fJ(n,r.scroller.scrollTop),qP(n,r.scroller.scrollLeft,!0),vd(n,"scroll",n))}),mo(r.scroller,"mousewheel",v=>XBt(n,v)),mo(r.scroller,"DOMMouseScroll",v=>XBt(n,v)),mo(r.wrapper,"scroll",()=>r.wrapper.scrollTop=r.wrapper.scrollLeft=0),r.dragFunctions={enter:v=>{kh(n,v)||dX(v)},over:v=>{kh(n,v)||(Sor(n,v),dX(v))},start:v=>_or(n,v),drop:xh(n,vor),leave:v=>{kh(n,v)||dnn(n)}};let w=r.input.getField();mo(w,"keyup",v=>ynn.call(n,v)),mo(w,"keydown",xh(n,mnn)),mo(w,"keypress",xh(n,vnn)),mo(w,"focus",v=>VHe(n,v)),mo(w,"blur",v=>uj(n,v))}var Aje=[];du.defineInitHook=n=>Aje.push(n);function pq(n,r,o,l){let u=n.doc,d;o==null&&(o="add"),o=="smart"&&(u.mode.indent?d=uJ(n,r).state:o="prev");let h=n.options.tabSize,w=Bi(u,r),v=Zy(w.text,null,h);w.stateAfter&&(w.stateAfter=null);let y=w.text.match(/^\s*/)[0],E;if(!l&&!/\S/.test(w.text))E=0,o="not";else if(o=="smart"&&(E=u.mode.indent(d,w.text.slice(y.length),w.text),E==Dpe||E>150)){if(!l)return;o="prev"}o=="prev"?r>u.first?E=Zy(Bi(u,r-1).text,null,h):E=0:o=="add"?E=v+n.options.indentUnit:o=="subtract"?E=v-n.options.indentUnit:typeof o=="number"&&(E=v+o),E=Math.max(0,E);let A="",C=0;if(n.options.indentWithTabs)for(let R=Math.floor(E/h);R;--R)C+=h,A+=" ";if(Ch,v=kHe(r),y=null;if(w&&l.ranges.length>1)if(pS&&pS.text.join(` +`)==r){if(l.ranges.length%pS.text.length==0){y=[];for(let A=0;A[A]));let E=n.curOp.updateInput;for(let A=l.ranges.length-1;A>=0;A--){let C=l.ranges[A],R=C.from(),O=C.to();C.empty()&&(o&&o>0?R=ur(R.line,R.ch-o):n.state.overwrite&&!w?O=ur(O.line,Math.min(Bi(d,O.line).text.length,O.ch+$a(v).length)):w&&pS&&pS.lineWise&&pS.text.join(` `)==v.join(` -`)&&(R=O=ur(R.line,0)));let M={from:R,to:O,text:y?y[A%y.length]:v,origin:u||(w?"paste":n.state.cutIncoming>h?"cut":"+input")};LL(n.doc,M),Ah(n,"inputRead",n,M)}r&&!w&&_nn(n,r),dj(n),n.curOp.updateInput<2&&(n.curOp.updateInput=E),n.curOp.typing=!0,n.state.pasteIncoming=n.state.cutIncoming=-1}function vnn(n,r){let o=n.clipboardData&&n.clipboardData.getData("Text");if(o)return n.preventDefault(),!r.isReadOnly()&&!r.options.disableInput&&x0(r,()=>ZHe(r,o,0,null,"paste")),!0}function _nn(n,r){if(!n.options.electricChars||!n.options.smartIndent)return;let o=n.doc.sel;for(let l=o.ranges.length-1;l>=0;l--){let u=o.ranges[l];if(u.head.ch>100||l&&o.ranges[l-1].head.line==u.head.line)continue;let d=n.getModeAt(u.head),h=!1;if(d.electricChars){for(let w=0;w-1){h=bq(n,u.head.line,"smart");break}}else d.electricInput&&d.electricInput.test(Bi(n.doc,u.head.line).text.slice(0,u.head.ch))&&(h=bq(n,u.head.line,"smart"));h&&Ah(n,"electricInput",n,u.head.line)}}function Snn(n){let r=[],o=[];for(let l=0;lh.priority),this.state.modeGen++,o1(this)}),removeOverlay:jb(function(l){let u=this.state.overlays;for(let d=0;dd&&(bq(this,w.head.line,l,!0),d=w.head.line,h==this.doc.sel.primIndex&&dj(this));else{let v=w.from(),y=w.to(),E=Math.max(d,v.line);d=Math.min(this.lastLine(),y.line-(y.ch?0:1))+1;for(let C=E;C0&&KHe(this.doc,h,new lc(v,A[h].to()),tk)}}}),getTokenAt:function(l,u){return $Bt(this,l,u)},getLineTokens:function(l,u){return $Bt(this,ur(l),u,!0)},getTokenTypeAt:function(l){l=ts(this.doc,l);let u=atn(this,Bi(this.doc,l.line)),d=0,h=(u.length-1)/2,w=l.ch,v;if(w==0)v=u[2];else for(;;){let E=d+h>>1;if((E?u[E*2-1]:0)>=w)h=E;else if(u[E*2+1]v&&(l=v,h=!0),w=Bi(this.doc,l)}else w=l;return Wpe(this,w,{top:0,left:0},u||"page",d||h).top+(h?this.doc.height-ZR(w):0)},defaultTextHeight:function(){return ML(this.display)},defaultCharWidth:function(){return uj(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,u,d,h,w){let v=this.display;l=SS(this,ts(this.doc,l));let y=l.bottom,E=l.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),v.sizer.appendChild(u),h=="over")y=l.top;else if(h=="above"||h=="near"){let A=Math.max(v.wrapper.clientHeight,this.doc.height),C=Math.max(v.sizer.clientWidth,v.lineSpace.clientWidth);(h=="above"||l.bottom+u.offsetHeight>A)&&l.top>u.offsetHeight?y=l.top-u.offsetHeight:l.bottom+u.offsetHeight<=A&&(y=l.bottom),E+u.offsetWidth>C&&(E=C-u.offsetWidth)}u.style.top=y+"px",u.style.left=u.style.right="",w=="right"?(E=v.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(w=="left"?E=0:w=="middle"&&(E=(v.sizer.clientWidth-u.offsetWidth)/2),u.style.left=E+"px"),d&&Pir(this,{left:E,top:y,right:E+u.offsetWidth,bottom:y+u.offsetHeight})},triggerOnKeyDown:jb(hnn),triggerOnKeyPress:jb(bnn),triggerOnKeyUp:pnn,triggerOnMouseDown:jb(gnn),execCommand:function(l){if(SX.hasOwnProperty(l))return SX[l].call(null,this)},triggerElectric:jb(function(l){_nn(this,l)}),findPosH:function(l,u,d,h){let w=1;u<0&&(w=-1,u=-u);let v=ts(this.doc,l);for(let y=0;ythis.display.shift||this.doc.extend||d.empty()?lNe(this.doc,d.head,l,u,this.options.rtlMoveVisually):l<0?d.from():d.to(),lq)}),deleteH:jb(function(l,u){let d=this.doc.sel,h=this.doc;d.somethingSelected()?h.replaceSelection("",null,"+delete"):vD(this,w=>{let v=lNe(h,w.head,l,u,!1);return l<0?{from:v,to:w.head}:{from:w.head,to:v}})}),findPosV:function(l,u,d,h){let w=1,v=h;u<0&&(w=-1,u=-u);let y=ts(this.doc,l);for(let E=0;E{if(w)return l<0?v.from():v.to();let y=SS(this,v.head,"div");v.goalColumn!=null&&(y.left=v.goalColumn),h.push(y.left);let E=uWt(this,y,l,u);return u=="page"&&v==d.sel.primary()&&BHe(this,fje(this,E,"div").top-y.top),E},lq),h.length)for(let v=0;vDfe(A,v):/\s/.test(y)?A=>/\s/.test(A):A=>!/\s/.test(A)&&!Dfe(A);for(;h>0&&E(d.charAt(h-1));)--h;for(;wtypeof w=="number"||/^\d+$/.test(String(w))?w+"px":w;l!=null&&(this.display.wrapper.style.width=d(l)),u!=null&&(this.display.wrapper.style.height=d(u)),this.options.lineWrapping&&Atn(this);let h=this.display.viewFrom;this.doc.iter(h,this.display.viewTo,w=>{if(w.widgets){for(let v=0;v.5||this.options.lineWrapping)&&MHe(this),vd(this,"refresh",this)}),swapDoc:jb(function(l){let u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),qtn(this,l),yX(this),this.display.input.reset(),fq(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,Ah(this,"swapDoc",this,u),u}),phrase:function(l){let u=this.options.phrases;return u&&Object.prototype.hasOwnProperty.call(u,l)?u[l]:l},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},aj(n),n.registerHelper=function(l,u,d){o.hasOwnProperty(l)||(o[l]=n[l]={_global:[]}),o[l][u]=d},n.registerGlobalHelper=function(l,u,d,h){n.registerHelper(l,u,h),o[l]._global.push({pred:d,val:h})}}function lNe(n,r,o,l,u){let d=r,h=o,w=Bi(n,r.line),v=u&&n.direction=="rtl"?-o:o;function y(){let C=r.line+v;return C=n.first+n.size?!1:(r=new ur(C,r.ch,r.sticky),w=Bi(n,C))}function E(C){let R;if(l=="codepoint"){let O=w.text.charCodeAt(r.ch+(o>0?0:-1));if(isNaN(O))R=null;else{let M=o>0?O>=55296&&O<56320:O>=56320&&O<57343;R=new ur(r.line,Math.max(0,Math.min(w.text.length,r.ch+o*(M?2:1))),-o)}}else u?R=yor(n.cm,w,r,o):R=mje(w,r,o);if(R==null)if(!C&&y())r=QHe(u,n.cm,w,r.line,v);else return!1;else r=R;return!0}if(l=="char"||l=="codepoint")E();else if(l=="column")E(!0);else if(l=="word"||l=="group"){let C=null,R=l=="group",O=n.cm&&n.cm.getHelper(r,"wordChars");for(let M=!0;!(o<0&&!E(!M));M=!1){let L=w.text.charAt(r.ch)||` -`,H=Dfe(L,O)?"w":R&&L==` -`?"n":!R||/\s/.test(L)?null:"p";if(R&&!M&&!H&&(H="s"),C&&C!=H){o<0&&(o=1,E(),r.sticky="after");break}if(H&&(C=H),o>0&&!E(!M))break}}let A=Gde(n,r,d,h,!0);return lje(d,A)&&(A.hitSide=!0),A}function uWt(n,r,o,l){let u=n.doc,d=r.left,h;if(l=="page"){let v=Math.min(n.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),y=Math.max(v-.5*ML(n.display),3);h=(o>0?r.bottom:r.top)+o*y}else l=="line"&&(h=o>0?r.bottom+3:r.top-3);let w;for(;w=PHe(n,d,h),!!w.outside;){if(o<0?h<=0:h>=u.height){w.hitSide=!0;break}h+=o*5}return w}var Rnn=class{constructor(n){this.cm=n,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new NL,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null}init(n){let r=this,o=r.cm,l=r.div=n.lineDiv;l.contentEditable=!0,Enn(l,o.options.spellcheck,o.options.autocorrect,o.options.autocapitalize);function u(h){for(let w=h.target;w;w=w.parentNode){if(w==l)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(w.className))break}return!1}mo(l,"paste",h=>{!u(h)||kh(o,h)||vnn(h,o)||Yc<=11&&setTimeout(xh(o,()=>this.updateFromDOM()),20)}),mo(l,"compositionstart",h=>{this.composing={data:h.data,done:!1}}),mo(l,"compositionupdate",h=>{this.composing||(this.composing={data:h.data,done:!1})}),mo(l,"compositionend",h=>{this.composing&&(h.data!=this.composing.data&&this.readFromDOMSoon(),this.composing.done=!0)}),mo(l,"touchstart",()=>r.forceCompositionEnd()),mo(l,"input",()=>{this.composing||this.readFromDOMSoon()});function d(h){if(!u(h)||kh(o,h))return;if(o.somethingSelected())zde({lineWise:!1,text:o.getSelections()}),h.type=="cut"&&o.replaceSelection("",null,"cut");else if(o.options.lineWiseCopyCut){let E=Snn(o);zde({lineWise:!0,text:E.text}),h.type=="cut"&&o.operation(()=>{o.setSelections(E.ranges,0,tk),o.replaceSelection("",null,"cut")})}else return;if(h.clipboardData){h.clipboardData.clearData();let E=pS.text.join(` -`);if(h.clipboardData.setData("Text",E),h.clipboardData.getData("Text")==E){h.preventDefault();return}}let w=knn(),v=w.firstChild;o.display.lineSpace.insertBefore(w,o.display.lineSpace.firstChild),v.value=pS.text.join(` -`);let y=rv();uX(v),setTimeout(()=>{o.display.lineSpace.removeChild(w),y.focus(),y==l&&r.showPrimarySelection()},50)}mo(l,"copy",d),mo(l,"cut",d)}screenReaderLabelChanged(n){n?this.div.setAttribute("aria-label",n):this.div.removeAttribute("aria-label")}prepareSelection(){let n=Ntn(this.cm,!1);return n.focus=rv()==this.div,n}showSelection(n,r){!n||!this.cm.display.view.length||((n.focus||r)&&this.showPrimarySelection(),this.showMultipleSelections(n))}getSelection(){return this.cm.display.wrapper.ownerDocument.getSelection()}showPrimarySelection(){let n=this.getSelection(),r=this.cm,o=r.doc.sel.primary(),l=o.from(),u=o.to();if(r.display.viewTo==r.display.viewFrom||l.line>=r.display.viewTo||u.line=r.display.viewFrom&&fWt(r,l)||{node:w[0].measure.map[2],offset:0},y=u.line{this.gracePeriod=!1,this.selectionChanged()&&this.cm.operation(()=>this.cm.curOp.selectionChanged=!0)},20)}showMultipleSelections(n){im(this.cm.display.cursorDiv,n.cursors),im(this.cm.display.selectionDiv,n.selection)}rememberSelection(){let n=this.getSelection();this.lastAnchorNode=n.anchorNode,this.lastAnchorOffset=n.anchorOffset,this.lastFocusNode=n.focusNode,this.lastFocusOffset=n.focusOffset}selectionInEditor(){let n=this.getSelection();if(!n.rangeCount)return!1;let r=n.getRangeAt(0).commonAncestorContainer;return kT(this.div,r)}focus(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||rv()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())}blur(){this.div.blur()}getField(){return this.div}supportsTouch(){return!0}receivedFocus(){let n=this;this.selectionInEditor()?this.pollSelection():x0(this.cm,()=>n.cm.curOp.selectionChanged=!0);function r(){n.cm.state.focused&&(n.pollSelection(),n.polling.set(n.cm.options.pollInterval,r))}this.polling.set(this.cm.options.pollInterval,r)}selectionChanged(){let n=this.getSelection();return n.anchorNode!=this.lastAnchorNode||n.anchorOffset!=this.lastAnchorOffset||n.focusNode!=this.lastFocusNode||n.focusOffset!=this.lastFocusOffset}pollSelection(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;let n=this.getSelection(),r=this.cm;if(Ppe&&$pe&&this.cm.display.gutterSpecs.length&&Wor(n.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(this.composing)return;this.rememberSelection();let o=aue(r,n.anchorNode,n.anchorOffset),l=aue(r,n.focusNode,n.focusOffset);o&&l&&x0(r,()=>{zp(r.doc,xT(o,l),tk),(o.bad||l.bad)&&(r.curOp.selectionChanged=!0)})}pollContent(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);let n=this.cm,r=n.display,o=n.doc.sel.primary(),l=o.from(),u=o.to();if(l.ch==0&&l.line>n.firstLine()&&(l=ur(l.line-1,Bi(n.doc,l.line-1).length)),u.ch==Bi(n.doc,u.line).text.length&&u.liner.viewTo-1)return!1;let d,h,w;l.line==r.viewFrom||(d=xP(n,l.line))==0?(h=za(r.view[0].line),w=r.view[0].node):(h=za(r.view[d].line),w=r.view[d-1].node.nextSibling);let v=xP(n,u.line),y,E;if(v==r.view.length-1?(y=r.viewTo-1,E=r.lineDiv.lastChild):(y=za(r.view[v+1].line)-1,E=r.view[v+1].node.previousSibling),!w)return!1;let A=n.doc.splitLines(Hor(n,w,E,h,y)),C=tP(n.doc,ur(h,0),ur(y,Bi(n.doc,y).text.length));for(;A.length>1&&C.length>1;)if($a(A)==$a(C))A.pop(),C.pop(),y--;else if(A[0]==C[0])A.shift(),C.shift(),h++;else break;let R=0,O=0,M=A[0],L=C[0],H=Math.min(M.length,L.length);for(;Rl.ch&&G.charCodeAt(G.length-O-1)==j.charCodeAt(j.length-O-1);)R--,O++;A[A.length-1]=G.slice(0,G.length-O).replace(/^\u200b+/,""),A[0]=A[0].slice(R).replace(/\u200b+$/,"");let te=ur(h,R),pe=ur(y,C.length?$a(C).length-O:0);if(A.length>1||A[0]||ns(te,pe))return hj(n.doc,A,te,pe,"+input"),!0}ensurePolled(){this.forceCompositionEnd()}reset(){this.forceCompositionEnd()}forceCompositionEnd(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())}readFromDOMSoon(){this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(()=>{if(this.readDOMTimeout=null,this.composing)if(this.composing.done)this.composing=null;else return;this.updateFromDOM()},80))}updateFromDOM(){(this.cm.isReadOnly()||!this.pollContent())&&x0(this.cm,()=>o1(this.cm))}setUneditable(n){n.contentEditable="false"}onKeyPress(n){n.charCode==0||this.composing||(n.preventDefault(),this.cm.isReadOnly()||xh(this.cm,ZHe)(this.cm,String.fromCharCode(n.charCode==null?n.keyCode:n.charCode),0))}readOnlyChanged(n){this.div.contentEditable=String(n!="nocursor")}onContextMenu(){}resetPosition(){}},Bor=Rnn;Rnn.prototype.needsContentAttribute=!0;function fWt(n,r){let o=$He(n,r.line);if(!o||o.hidden)return null;let l=Bi(n.doc,r.line),u=Etn(o,l,r.line),d=Rx(l,n.doc.direction),h="left";d&&(h=dX(d,r.ch)%2?"right":"left");let w=xtn(u.map,r.ch,h);return w.offset=w.collapse=="right"?w.end:w.start,w}function Wor(n){for(let r=n;r;r=r.parentNode)if(/CodeMirror-gutter-wrapper/.test(r.className))return!0;return!1}function _D(n,r){return r&&(n.bad=!0),n}function Hor(n,r,o,l,u){let d="",h=!1,w=n.doc.lineSeparator(),v=!1;function y(R){return O=>O.id==R}function E(){h&&(d+=w,v&&(d+=w),h=v=!1)}function A(R){R&&(E(),d+=R)}function C(R){if(R.nodeType==1){let O=R.getAttribute("cm-text");if(O){A(O);return}let M=R.getAttribute("cm-marker"),L;if(M){let G=n.findMarks(ur(l,0),ur(u+1,0),y(+M));G.length&&(L=G[0].find(0))&&A(tP(n.doc,L.from,L.to).join(w));return}if(R.getAttribute("contenteditable")=="false")return;let H=/^(pre|div|p|li|table|br)$/i.test(R.nodeName);if(!/^br$/i.test(R.nodeName)&&R.textContent.length==0)return;H&&E();for(let G=0;G{ta&&Yc>=9&&this.hasSelection&&(this.hasSelection=null),r.poll()}),mo(l,"paste",d=>{kh(o,d)||vnn(d,o)||(o.state.pasteIncoming=+new Date,r.fastPoll())});function u(d){if(!kh(o,d)){if(o.somethingSelected())zde({lineWise:!1,text:o.getSelections()});else if(o.options.lineWiseCopyCut){let h=Snn(o);zde({lineWise:!0,text:h.text}),d.type=="cut"?o.setSelections(h.ranges,null,tk):(r.prevInput="",l.value=h.text.join(` -`),uX(l))}else return;d.type=="cut"&&(o.state.cutIncoming=+new Date)}}mo(l,"cut",u),mo(l,"copy",u),mo(n.scroller,"paste",d=>{if(ex(n,d)||kh(o,d))return;if(!l.dispatchEvent){o.state.pasteIncoming=+new Date,r.focus();return}const h=new Event("paste");h.clipboardData=d.clipboardData,l.dispatchEvent(h)}),mo(n.lineSpace,"selectstart",d=>{ex(n,d)||i1(d)}),mo(l,"compositionstart",()=>{let d=o.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:d,range:o.markText(d,o.getCursor("to"),{className:"CodeMirror-composing"})}}),mo(l,"compositionend",()=>{r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)})}createField(n){this.wrapper=knn(),this.textarea=this.wrapper.firstChild}screenReaderLabelChanged(n){n?this.textarea.setAttribute("aria-label",n):this.textarea.removeAttribute("aria-label")}prepareSelection(){let n=this.cm,r=n.display,o=n.doc,l=Ntn(n);if(n.options.moveInputWithCursor){let u=SS(n,o.sel.primary().head,"div"),d=r.wrapper.getBoundingClientRect(),h=r.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(r.wrapper.clientHeight-10,u.top+h.top-d.top)),l.teLeft=Math.max(0,Math.min(r.wrapper.clientWidth-10,u.left+h.left-d.left))}return l}showSelection(n){let r=this.cm,o=r.display;im(o.cursorDiv,n.cursors),im(o.selectionDiv,n.selection),n.teTop!=null&&(this.wrapper.style.top=n.teTop+"px",this.wrapper.style.left=n.teLeft+"px")}reset(n){if(this.contextMenuPending||this.composing)return;let r=this.cm;if(r.somethingSelected()){this.prevInput="";let o=r.getSelection();this.textarea.value=o,r.state.focused&&uX(this.textarea),ta&&Yc>=9&&(this.hasSelection=o)}else n||(this.prevInput=this.textarea.value="",ta&&Yc>=9&&(this.hasSelection=null))}getField(){return this.textarea}supportsTouch(){return!1}focus(){if(this.cm.options.readOnly!="nocursor"&&(!cX||rv()!=this.textarea))try{this.textarea.focus()}catch{}}blur(){this.textarea.blur()}resetPosition(){this.wrapper.style.top=this.wrapper.style.left=0}receivedFocus(){this.slowPoll()}slowPoll(){this.pollingFast||this.polling.set(this.cm.options.pollInterval,()=>{this.poll(),this.cm.state.focused&&this.slowPoll()})}fastPoll(){let n=!1,r=this;r.pollingFast=!0;function o(){!r.poll()&&!n?(n=!0,r.polling.set(60,o)):(r.pollingFast=!1,r.slowPoll())}r.polling.set(20,o)}poll(){let n=this.cm,r=this.textarea,o=this.prevInput;if(this.contextMenuPending||!n.state.focused||Drr(r)&&!o&&!this.composing||n.isReadOnly()||n.options.disableInput||n.state.keySeq)return!1;let l=r.value;if(l==o&&!n.somethingSelected())return!1;if(ta&&Yc>=9&&this.hasSelection===l||sv&&/[\uf700-\uf7ff]/.test(l))return n.display.input.reset(),!1;if(n.doc.sel==n.display.selForContextMenu){let h=l.charCodeAt(0);if(h==8203&&!o&&(o="​"),h==8666)return this.reset(),this.cm.execCommand("undo")}let u=0,d=Math.min(o.length,l.length);for(;u{ZHe(n,l.slice(u),o.length-u,null,this.composing?"*compose":null),l.length>1e3||l.indexOf(` -`)>-1?r.value=this.prevInput="":this.prevInput=l,this.composing&&(this.composing.range.clear(),this.composing.range=n.markText(this.composing.start,n.getCursor("to"),{className:"CodeMirror-composing"}))}),!0}ensurePolled(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)}onKeyPress(){ta&&Yc>=9&&(this.hasSelection=null),this.fastPoll()}onContextMenu(n){let r=this,o=r.cm,l=o.display,u=r.textarea;r.contextMenuPending&&r.contextMenuPending();let d=RP(o,n),h=l.scroller.scrollTop;if(!d||CS)return;o.options.resetSelectionOnContextMenu&&o.doc.sel.contains(d)==-1&&xh(o,zp)(o.doc,xT(d),tk);let v=u.style.cssText,y=r.wrapper.style.cssText,E=r.wrapper.offsetParent.getBoundingClientRect();r.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px; +`)&&(R=O=ur(R.line,0)));let M={from:R,to:O,text:y?y[A%y.length]:v,origin:u||(w?"paste":n.state.cutIncoming>h?"cut":"+input")};DL(n.doc,M),Ah(n,"inputRead",n,M)}r&&!w&&xnn(n,r),fj(n),n.curOp.updateInput<2&&(n.curOp.updateInput=E),n.curOp.typing=!0,n.state.pasteIncoming=n.state.cutIncoming=-1}function Rnn(n,r){let o=n.clipboardData&&n.clipboardData.getData("Text");if(o)return n.preventDefault(),!r.isReadOnly()&&!r.options.disableInput&&x0(r,()=>sUe(r,o,0,null,"paste")),!0}function xnn(n,r){if(!n.options.electricChars||!n.options.smartIndent)return;let o=n.doc.sel;for(let l=o.ranges.length-1;l>=0;l--){let u=o.ranges[l];if(u.head.ch>100||l&&o.ranges[l-1].head.line==u.head.line)continue;let d=n.getModeAt(u.head),h=!1;if(d.electricChars){for(let w=0;w-1){h=pq(n,u.head.line,"smart");break}}else d.electricInput&&d.electricInput.test(Bi(n.doc,u.head.line).text.slice(0,u.head.ch))&&(h=pq(n,u.head.line,"smart"));h&&Ah(n,"electricInput",n,u.head.line)}}function Cnn(n){let r=[],o=[];for(let l=0;lh.priority),this.state.modeGen++,o1(this)}),removeOverlay:jb(function(l){let u=this.state.overlays;for(let d=0;dd&&(pq(this,w.head.line,l,!0),d=w.head.line,h==this.doc.sel.primIndex&&fj(this));else{let v=w.from(),y=w.to(),E=Math.max(d,v.line);d=Math.min(this.lastLine(),y.line-(y.ch?0:1))+1;for(let C=E;C0&&eUe(this.doc,h,new lc(v,A[h].to()),tk)}}}),getTokenAt:function(l,u){return DBt(this,l,u)},getLineTokens:function(l,u){return DBt(this,ur(l),u,!0)},getTokenTypeAt:function(l){l=ts(this.doc,l);let u=htn(this,Bi(this.doc,l.line)),d=0,h=(u.length-1)/2,w=l.ch,v;if(w==0)v=u[2];else for(;;){let E=d+h>>1;if((E?u[E*2-1]:0)>=w)h=E;else if(u[E*2+1]v&&(l=v,h=!0),w=Bi(this.doc,l)}else w=l;return Gpe(this,w,{top:0,left:0},u||"page",d||h).top+(h?this.doc.height-ZR(w):0)},defaultTextHeight:function(){return NL(this.display)},defaultCharWidth:function(){return cj(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,u,d,h,w){let v=this.display;l=SS(this,ts(this.doc,l));let y=l.bottom,E=l.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),v.sizer.appendChild(u),h=="over")y=l.top;else if(h=="above"||h=="near"){let A=Math.max(v.wrapper.clientHeight,this.doc.height),C=Math.max(v.sizer.clientWidth,v.lineSpace.clientWidth);(h=="above"||l.bottom+u.offsetHeight>A)&&l.top>u.offsetHeight?y=l.top-u.offsetHeight:l.bottom+u.offsetHeight<=A&&(y=l.bottom),E+u.offsetWidth>C&&(E=C-u.offsetWidth)}u.style.top=y+"px",u.style.left=u.style.right="",w=="right"?(E=v.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(w=="left"?E=0:w=="middle"&&(E=(v.sizer.clientWidth-u.offsetWidth)/2),u.style.left=E+"px"),d&&Wir(this,{left:E,top:y,right:E+u.offsetWidth,bottom:y+u.offsetHeight})},triggerOnKeyDown:jb(mnn),triggerOnKeyPress:jb(vnn),triggerOnKeyUp:ynn,triggerOnMouseDown:jb(_nn),execCommand:function(l){if(_X.hasOwnProperty(l))return _X[l].call(null,this)},triggerElectric:jb(function(l){xnn(this,l)}),findPosH:function(l,u,d,h){let w=1;u<0&&(w=-1,u=-u);let v=ts(this.doc,l);for(let y=0;ythis.display.shift||this.doc.extend||d.empty()?fNe(this.doc,d.head,l,u,this.options.rtlMoveVisually):l<0?d.from():d.to(),sq)}),deleteH:jb(function(l,u){let d=this.doc.sel,h=this.doc;d.somethingSelected()?h.replaceSelection("",null,"+delete"):yD(this,w=>{let v=fNe(h,w.head,l,u,!1);return l<0?{from:v,to:w.head}:{from:w.head,to:v}})}),findPosV:function(l,u,d,h){let w=1,v=h;u<0&&(w=-1,u=-u);let y=ts(this.doc,l);for(let E=0;E{if(w)return l<0?v.from():v.to();let y=SS(this,v.head,"div");v.goalColumn!=null&&(y.left=v.goalColumn),h.push(y.left);let E=gWt(this,y,l,u);return u=="page"&&v==d.sel.primary()&&KHe(this,mje(this,E,"div").top-y.top),E},sq),h.length)for(let v=0;vjfe(A,v):/\s/.test(y)?A=>/\s/.test(A):A=>!/\s/.test(A)&&!jfe(A);for(;h>0&&E(d.charAt(h-1));)--h;for(;wtypeof w=="number"||/^\d+$/.test(String(w))?w+"px":w;l!=null&&(this.display.wrapper.style.width=d(l)),u!=null&&(this.display.wrapper.style.height=d(u)),this.options.lineWrapping&&Otn(this);let h=this.display.viewFrom;this.doc.iter(h,this.display.viewTo,w=>{if(w.widgets){for(let v=0;v.5||this.options.lineWrapping)&&HHe(this),vd(this,"refresh",this)}),swapDoc:jb(function(l){let u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),Ztn(this,l),mX(this),this.display.input.reset(),uq(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,Ah(this,"swapDoc",this,u),u}),phrase:function(l){let u=this.options.phrases;return u&&Object.prototype.hasOwnProperty.call(u,l)?u[l]:l},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},lj(n),n.registerHelper=function(l,u,d){o.hasOwnProperty(l)||(o[l]=n[l]={_global:[]}),o[l][u]=d},n.registerGlobalHelper=function(l,u,d,h){n.registerHelper(l,u,h),o[l]._global.push({pred:d,val:h})}}function fNe(n,r,o,l,u){let d=r,h=o,w=Bi(n,r.line),v=u&&n.direction=="rtl"?-o:o;function y(){let C=r.line+v;return C=n.first+n.size?!1:(r=new ur(C,r.ch,r.sticky),w=Bi(n,C))}function E(C){let R;if(l=="codepoint"){let O=w.text.charCodeAt(r.ch+(o>0?0:-1));if(isNaN(O))R=null;else{let M=o>0?O>=55296&&O<56320:O>=56320&&O<57343;R=new ur(r.line,Math.max(0,Math.min(w.text.length,r.ch+o*(M?2:1))),-o)}}else u?R=Aor(n.cm,w,r,o):R=Rje(w,r,o);if(R==null)if(!C&&y())r=oUe(u,n.cm,w,r.line,v);else return!1;else r=R;return!0}if(l=="char"||l=="codepoint")E();else if(l=="column")E(!0);else if(l=="word"||l=="group"){let C=null,R=l=="group",O=n.cm&&n.cm.getHelper(r,"wordChars");for(let M=!0;!(o<0&&!E(!M));M=!1){let L=w.text.charAt(r.ch)||` +`,H=jfe(L,O)?"w":R&&L==` +`?"n":!R||/\s/.test(L)?null:"p";if(R&&!M&&!H&&(H="s"),C&&C!=H){o<0&&(o=1,E(),r.sticky="after");break}if(H&&(C=H),o>0&&!E(!M))break}}let A=Kde(n,r,d,h,!0);return pje(d,A)&&(A.hitSide=!0),A}function gWt(n,r,o,l){let u=n.doc,d=r.left,h;if(l=="page"){let v=Math.min(n.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),y=Math.max(v-.5*NL(n.display),3);h=(o>0?r.bottom:r.top)+o*y}else l=="line"&&(h=o>0?r.bottom+3:r.top-3);let w;for(;w=FHe(n,d,h),!!w.outside;){if(o<0?h<=0:h>=u.height){w.hitSide=!0;break}h+=o*5}return w}var $nn=class{constructor(n){this.cm=n,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new OL,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null}init(n){let r=this,o=r.cm,l=r.div=n.lineDiv;l.contentEditable=!0,Ann(l,o.options.spellcheck,o.options.autocorrect,o.options.autocapitalize);function u(h){for(let w=h.target;w;w=w.parentNode){if(w==l)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(w.className))break}return!1}mo(l,"paste",h=>{!u(h)||kh(o,h)||Rnn(h,o)||Yc<=11&&setTimeout(xh(o,()=>this.updateFromDOM()),20)}),mo(l,"compositionstart",h=>{this.composing={data:h.data,done:!1}}),mo(l,"compositionupdate",h=>{this.composing||(this.composing={data:h.data,done:!1})}),mo(l,"compositionend",h=>{this.composing&&(h.data!=this.composing.data&&this.readFromDOMSoon(),this.composing.done=!0)}),mo(l,"touchstart",()=>r.forceCompositionEnd()),mo(l,"input",()=>{this.composing||this.readFromDOMSoon()});function d(h){if(!u(h)||kh(o,h))return;if(o.somethingSelected())Xde({lineWise:!1,text:o.getSelections()}),h.type=="cut"&&o.replaceSelection("",null,"cut");else if(o.options.lineWiseCopyCut){let E=Cnn(o);Xde({lineWise:!0,text:E.text}),h.type=="cut"&&o.operation(()=>{o.setSelections(E.ranges,0,tk),o.replaceSelection("",null,"cut")})}else return;if(h.clipboardData){h.clipboardData.clearData();let E=pS.text.join(` +`);if(h.clipboardData.setData("Text",E),h.clipboardData.getData("Text")==E){h.preventDefault();return}}let w=Tnn(),v=w.firstChild;o.display.lineSpace.insertBefore(w,o.display.lineSpace.firstChild),v.value=pS.text.join(` +`);let y=nv();cX(v),setTimeout(()=>{o.display.lineSpace.removeChild(w),y.focus(),y==l&&r.showPrimarySelection()},50)}mo(l,"copy",d),mo(l,"cut",d)}screenReaderLabelChanged(n){n?this.div.setAttribute("aria-label",n):this.div.removeAttribute("aria-label")}prepareSelection(){let n=Ftn(this.cm,!1);return n.focus=nv()==this.div,n}showSelection(n,r){!n||!this.cm.display.view.length||((n.focus||r)&&this.showPrimarySelection(),this.showMultipleSelections(n))}getSelection(){return this.cm.display.wrapper.ownerDocument.getSelection()}showPrimarySelection(){let n=this.getSelection(),r=this.cm,o=r.doc.sel.primary(),l=o.from(),u=o.to();if(r.display.viewTo==r.display.viewFrom||l.line>=r.display.viewTo||u.line=r.display.viewFrom&&wWt(r,l)||{node:w[0].measure.map[2],offset:0},y=u.line{this.gracePeriod=!1,this.selectionChanged()&&this.cm.operation(()=>this.cm.curOp.selectionChanged=!0)},20)}showMultipleSelections(n){im(this.cm.display.cursorDiv,n.cursors),im(this.cm.display.selectionDiv,n.selection)}rememberSelection(){let n=this.getSelection();this.lastAnchorNode=n.anchorNode,this.lastAnchorOffset=n.anchorOffset,this.lastFocusNode=n.focusNode,this.lastFocusOffset=n.focusOffset}selectionInEditor(){let n=this.getSelection();if(!n.rangeCount)return!1;let r=n.getRangeAt(0).commonAncestorContainer;return kT(this.div,r)}focus(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||nv()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())}blur(){this.div.blur()}getField(){return this.div}supportsTouch(){return!0}receivedFocus(){let n=this;this.selectionInEditor()?this.pollSelection():x0(this.cm,()=>n.cm.curOp.selectionChanged=!0);function r(){n.cm.state.focused&&(n.pollSelection(),n.polling.set(n.cm.options.pollInterval,r))}this.polling.set(this.cm.options.pollInterval,r)}selectionChanged(){let n=this.getSelection();return n.anchorNode!=this.lastAnchorNode||n.anchorOffset!=this.lastAnchorOffset||n.focusNode!=this.lastFocusNode||n.focusOffset!=this.lastFocusOffset}pollSelection(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;let n=this.getSelection(),r=this.cm;if(Mpe&&Ope&&this.cm.display.gutterSpecs.length&&Jor(n.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(this.composing)return;this.rememberSelection();let o=uue(r,n.anchorNode,n.anchorOffset),l=uue(r,n.focusNode,n.focusOffset);o&&l&&x0(r,()=>{zp(r.doc,xT(o,l),tk),(o.bad||l.bad)&&(r.curOp.selectionChanged=!0)})}pollContent(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);let n=this.cm,r=n.display,o=n.doc.sel.primary(),l=o.from(),u=o.to();if(l.ch==0&&l.line>n.firstLine()&&(l=ur(l.line-1,Bi(n.doc,l.line-1).length)),u.ch==Bi(n.doc,u.line).text.length&&u.liner.viewTo-1)return!1;let d,h,w;l.line==r.viewFrom||(d=RP(n,l.line))==0?(h=za(r.view[0].line),w=r.view[0].node):(h=za(r.view[d].line),w=r.view[d-1].node.nextSibling);let v=RP(n,u.line),y,E;if(v==r.view.length-1?(y=r.viewTo-1,E=r.lineDiv.lastChild):(y=za(r.view[v+1].line)-1,E=r.view[v+1].node.previousSibling),!w)return!1;let A=n.doc.splitLines(Yor(n,w,E,h,y)),C=tP(n.doc,ur(h,0),ur(y,Bi(n.doc,y).text.length));for(;A.length>1&&C.length>1;)if($a(A)==$a(C))A.pop(),C.pop(),y--;else if(A[0]==C[0])A.shift(),C.shift(),h++;else break;let R=0,O=0,M=A[0],L=C[0],H=Math.min(M.length,L.length);for(;Rl.ch&&G.charCodeAt(G.length-O-1)==j.charCodeAt(j.length-O-1);)R--,O++;A[A.length-1]=G.slice(0,G.length-O).replace(/^\u200b+/,""),A[0]=A[0].slice(R).replace(/\u200b+$/,"");let te=ur(h,R),pe=ur(y,C.length?$a(C).length-O:0);if(A.length>1||A[0]||ns(te,pe))return dj(n.doc,A,te,pe,"+input"),!0}ensurePolled(){this.forceCompositionEnd()}reset(){this.forceCompositionEnd()}forceCompositionEnd(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())}readFromDOMSoon(){this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(()=>{if(this.readDOMTimeout=null,this.composing)if(this.composing.done)this.composing=null;else return;this.updateFromDOM()},80))}updateFromDOM(){(this.cm.isReadOnly()||!this.pollContent())&&x0(this.cm,()=>o1(this.cm))}setUneditable(n){n.contentEditable="false"}onKeyPress(n){n.charCode==0||this.composing||(n.preventDefault(),this.cm.isReadOnly()||xh(this.cm,sUe)(this.cm,String.fromCharCode(n.charCode==null?n.keyCode:n.charCode),0))}readOnlyChanged(n){this.div.contentEditable=String(n!="nocursor")}onContextMenu(){}resetPosition(){}},Xor=$nn;$nn.prototype.needsContentAttribute=!0;function wWt(n,r){let o=LHe(n,r.line);if(!o||o.hidden)return null;let l=Bi(n.doc,r.line),u=Atn(o,l,r.line),d=Rx(l,n.doc.direction),h="left";d&&(h=fX(d,r.ch)%2?"right":"left");let w=Itn(u.map,r.ch,h);return w.offset=w.collapse=="right"?w.end:w.start,w}function Jor(n){for(let r=n;r;r=r.parentNode)if(/CodeMirror-gutter-wrapper/.test(r.className))return!0;return!1}function vD(n,r){return r&&(n.bad=!0),n}function Yor(n,r,o,l,u){let d="",h=!1,w=n.doc.lineSeparator(),v=!1;function y(R){return O=>O.id==R}function E(){h&&(d+=w,v&&(d+=w),h=v=!1)}function A(R){R&&(E(),d+=R)}function C(R){if(R.nodeType==1){let O=R.getAttribute("cm-text");if(O){A(O);return}let M=R.getAttribute("cm-marker"),L;if(M){let G=n.findMarks(ur(l,0),ur(u+1,0),y(+M));G.length&&(L=G[0].find(0))&&A(tP(n.doc,L.from,L.to).join(w));return}if(R.getAttribute("contenteditable")=="false")return;let H=/^(pre|div|p|li|table|br)$/i.test(R.nodeName);if(!/^br$/i.test(R.nodeName)&&R.textContent.length==0)return;H&&E();for(let G=0;G{ta&&Yc>=9&&this.hasSelection&&(this.hasSelection=null),r.poll()}),mo(l,"paste",d=>{kh(o,d)||Rnn(d,o)||(o.state.pasteIncoming=+new Date,r.fastPoll())});function u(d){if(!kh(o,d)){if(o.somethingSelected())Xde({lineWise:!1,text:o.getSelections()});else if(o.options.lineWiseCopyCut){let h=Cnn(o);Xde({lineWise:!0,text:h.text}),d.type=="cut"?o.setSelections(h.ranges,null,tk):(r.prevInput="",l.value=h.text.join(` +`),cX(l))}else return;d.type=="cut"&&(o.state.cutIncoming=+new Date)}}mo(l,"cut",u),mo(l,"copy",u),mo(n.scroller,"paste",d=>{if(ex(n,d)||kh(o,d))return;if(!l.dispatchEvent){o.state.pasteIncoming=+new Date,r.focus();return}const h=new Event("paste");h.clipboardData=d.clipboardData,l.dispatchEvent(h)}),mo(n.lineSpace,"selectstart",d=>{ex(n,d)||i1(d)}),mo(l,"compositionstart",()=>{let d=o.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:d,range:o.markText(d,o.getCursor("to"),{className:"CodeMirror-composing"})}}),mo(l,"compositionend",()=>{r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)})}createField(n){this.wrapper=Tnn(),this.textarea=this.wrapper.firstChild}screenReaderLabelChanged(n){n?this.textarea.setAttribute("aria-label",n):this.textarea.removeAttribute("aria-label")}prepareSelection(){let n=this.cm,r=n.display,o=n.doc,l=Ftn(n);if(n.options.moveInputWithCursor){let u=SS(n,o.sel.primary().head,"div"),d=r.wrapper.getBoundingClientRect(),h=r.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(r.wrapper.clientHeight-10,u.top+h.top-d.top)),l.teLeft=Math.max(0,Math.min(r.wrapper.clientWidth-10,u.left+h.left-d.left))}return l}showSelection(n){let r=this.cm,o=r.display;im(o.cursorDiv,n.cursors),im(o.selectionDiv,n.selection),n.teTop!=null&&(this.wrapper.style.top=n.teTop+"px",this.wrapper.style.left=n.teLeft+"px")}reset(n){if(this.contextMenuPending||this.composing)return;let r=this.cm;if(r.somethingSelected()){this.prevInput="";let o=r.getSelection();this.textarea.value=o,r.state.focused&&cX(this.textarea),ta&&Yc>=9&&(this.hasSelection=o)}else n||(this.prevInput=this.textarea.value="",ta&&Yc>=9&&(this.hasSelection=null))}getField(){return this.textarea}supportsTouch(){return!1}focus(){if(this.cm.options.readOnly!="nocursor"&&(!aX||nv()!=this.textarea))try{this.textarea.focus()}catch{}}blur(){this.textarea.blur()}resetPosition(){this.wrapper.style.top=this.wrapper.style.left=0}receivedFocus(){this.slowPoll()}slowPoll(){this.pollingFast||this.polling.set(this.cm.options.pollInterval,()=>{this.poll(),this.cm.state.focused&&this.slowPoll()})}fastPoll(){let n=!1,r=this;r.pollingFast=!0;function o(){!r.poll()&&!n?(n=!0,r.polling.set(60,o)):(r.pollingFast=!1,r.slowPoll())}r.polling.set(20,o)}poll(){let n=this.cm,r=this.textarea,o=this.prevInput;if(this.contextMenuPending||!n.state.focused||Vrr(r)&&!o&&!this.composing||n.isReadOnly()||n.options.disableInput||n.state.keySeq)return!1;let l=r.value;if(l==o&&!n.somethingSelected())return!1;if(ta&&Yc>=9&&this.hasSelection===l||ov&&/[\uf700-\uf7ff]/.test(l))return n.display.input.reset(),!1;if(n.doc.sel==n.display.selForContextMenu){let h=l.charCodeAt(0);if(h==8203&&!o&&(o="​"),h==8666)return this.reset(),this.cm.execCommand("undo")}let u=0,d=Math.min(o.length,l.length);for(;u{sUe(n,l.slice(u),o.length-u,null,this.composing?"*compose":null),l.length>1e3||l.indexOf(` +`)>-1?r.value=this.prevInput="":this.prevInput=l,this.composing&&(this.composing.range.clear(),this.composing.range=n.markText(this.composing.start,n.getCursor("to"),{className:"CodeMirror-composing"}))}),!0}ensurePolled(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)}onKeyPress(){ta&&Yc>=9&&(this.hasSelection=null),this.fastPoll()}onContextMenu(n){let r=this,o=r.cm,l=o.display,u=r.textarea;r.contextMenuPending&&r.contextMenuPending();let d=kP(o,n),h=l.scroller.scrollTop;if(!d||CS)return;o.options.resetSelectionOnContextMenu&&o.doc.sel.contains(d)==-1&&xh(o,zp)(o.doc,xT(d),tk);let v=u.style.cssText,y=r.wrapper.style.cssText,E=r.wrapper.offsetParent.getBoundingClientRect();r.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px; top: ${n.clientY-E.top-5}px; left: ${n.clientX-E.left-5}px; z-index: 1000; background: ${ta?"rgba(255, 255, 255, .05)":"transparent"}; - outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;let A;Gb&&(A=window.scrollY),l.input.focus(),Gb&&window.scrollTo(null,A),l.input.reset(),o.somethingSelected()||(u.value=r.prevInput=" "),r.contextMenuPending=R,l.selForContextMenu=o.doc.sel,clearTimeout(l.detectingSelectAll);function C(){if(u.selectionStart!=null){let O=o.somethingSelected(),M="​"+(O?u.value:"");u.value="⇚",u.value=M,r.prevInput=O?"":"​",u.selectionStart=1,u.selectionEnd=M.length,l.selForContextMenu=o.doc.sel}}function R(){if(r.contextMenuPending==R&&(r.contextMenuPending=!1,r.wrapper.style.cssText=y,u.style.cssText=v,ta&&Yc<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=h),u.selectionStart!=null)){(!ta||ta&&Yc<9)&&C();let O=0,M=()=>{l.selForContextMenu==o.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&r.prevInput=="​"?xh(o,nnn)(o):O++<10?l.detectingSelectAll=setTimeout(M,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(M,200)}}if(ta&&Yc>=9&&C(),dHe){hX(n);let O=()=>{em(window,"mouseup",O),setTimeout(R,20)};mo(window,"mouseup",O)}else setTimeout(R,50)}readOnlyChanged(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n}setUneditable(){}},Gor=xnn;xnn.prototype.needsContentAttribute=!1;function Vor(n,r){if(r=r?kP(r):{},r.value=n.value,!r.tabindex&&n.tabIndex&&(r.tabindex=n.tabIndex),!r.placeholder&&n.placeholder&&(r.placeholder=n.placeholder),r.autofocus==null){let d=rv();r.autofocus=d==n||n.getAttribute("autofocus")!=null&&d==document.body}function o(){n.value=u.getValue()}let l;if(n.form&&(mo(n.form,"submit",o),!r.leaveSubmitMethodAlone)){let d=n.form;l=d.submit;try{let h=d.submit=()=>{o(),d.submit=l,d.submit(),d.submit=h}}catch{}}r.finishInit=d=>{d.save=o,d.getTextArea=()=>n,d.toTextArea=()=>{d.toTextArea=isNaN,o(),n.parentNode.removeChild(d.getWrapperElement()),n.style.display="",n.form&&(em(n.form,"submit",o),!r.leaveSubmitMethodAlone&&typeof n.form.submit=="function"&&(n.form.submit=l))}},n.style.display="none";let u=du(d=>n.parentNode.insertBefore(d,n.nextSibling),r);return u}function zor(n){n.off=em,n.on=mo,n.wheelEventPixels=Xir,n.Doc=nP,n.splitLines=wHe,n.countColumn=ev,n.findColumn=rje,n.isWordChar=ije,n.Pass=Ope,n.signal=vd,n.Line=gX,n.changeEnd=CT,n.scrollbarModel=Ftn,n.Pos=ur,n.cmpPos=ns,n.modes=mHe,n.mimeModes=jD,n.resolveMode=Lde,n.getMode=yHe,n.modeExtensions=tL,n.extendMode=Wrr,n.copyState=eP,n.startState=otn,n.innerMode=vHe,n.commands=SX,n.keyMap=VR,n.keyName=unn,n.isModifierKey=ann,n.lookupKey=rL,n.normalizeKeyMap=mor,n.StringStream=Mpe,n.SharedTextMarker=JHe,n.TextMarker=XHe,n.LineWidget=qHe,n.e_preventDefault=i1,n.e_stopPropagation=rtn,n.e_stop=hX,n.addClass=KP,n.contains=kT,n.rmClass=zP,n.keyNames=AT}Nor(du);For(du);var Kor="iter insert remove copy getEditor constructor".split(" ");for(let n in nP.prototype)nP.prototype.hasOwnProperty(n)&&qp(Kor,n)<0&&(du.prototype[n]=function(r){return function(){return r.apply(this.doc,arguments)}}(nP.prototype[n]));aj(nP);du.inputStyles={textarea:Gor,contenteditable:Bor};du.defineMode=function(n){!du.defaults.mode&&n!="null"&&(du.defaults.mode=n),Frr.apply(this,arguments)};du.defineMIME=Brr;du.defineMode("null",()=>({token:n=>n.skipToEnd()}));du.defineMIME("text/plain","null");du.defineExtension=(n,r)=>{du.prototype[n]=r};du.defineDocExtension=(n,r)=>{nP.prototype[n]=r};du.fromTextArea=Vor;zor(du);du.version="5.61.0";var Wfe=du;document.body.insertAdjacentHTML("beforeend",` + outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;let A;Gb&&(A=window.scrollY),l.input.focus(),Gb&&window.scrollTo(null,A),l.input.reset(),o.somethingSelected()||(u.value=r.prevInput=" "),r.contextMenuPending=R,l.selForContextMenu=o.doc.sel,clearTimeout(l.detectingSelectAll);function C(){if(u.selectionStart!=null){let O=o.somethingSelected(),M="​"+(O?u.value:"");u.value="⇚",u.value=M,r.prevInput=O?"":"​",u.selectionStart=1,u.selectionEnd=M.length,l.selForContextMenu=o.doc.sel}}function R(){if(r.contextMenuPending==R&&(r.contextMenuPending=!1,r.wrapper.style.cssText=y,u.style.cssText=v,ta&&Yc<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=h),u.selectionStart!=null)){(!ta||ta&&Yc<9)&&C();let O=0,M=()=>{l.selForContextMenu==o.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&r.prevInput=="​"?xh(o,lnn)(o):O++<10?l.detectingSelectAll=setTimeout(M,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(M,200)}}if(ta&&Yc>=9&&C(),yHe){dX(n);let O=()=>{em(window,"mouseup",O),setTimeout(R,20)};mo(window,"mouseup",O)}else setTimeout(R,50)}readOnlyChanged(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n}setUneditable(){}},Zor=Inn;Inn.prototype.needsContentAttribute=!1;function esr(n,r){if(r=r?EP(r):{},r.value=n.value,!r.tabindex&&n.tabIndex&&(r.tabindex=n.tabIndex),!r.placeholder&&n.placeholder&&(r.placeholder=n.placeholder),r.autofocus==null){let d=nv();r.autofocus=d==n||n.getAttribute("autofocus")!=null&&d==document.body}function o(){n.value=u.getValue()}let l;if(n.form&&(mo(n.form,"submit",o),!r.leaveSubmitMethodAlone)){let d=n.form;l=d.submit;try{let h=d.submit=()=>{o(),d.submit=l,d.submit(),d.submit=h}}catch{}}r.finishInit=d=>{d.save=o,d.getTextArea=()=>n,d.toTextArea=()=>{d.toTextArea=isNaN,o(),n.parentNode.removeChild(d.getWrapperElement()),n.style.display="",n.form&&(em(n.form,"submit",o),!r.leaveSubmitMethodAlone&&typeof n.form.submit=="function"&&(n.form.submit=l))}},n.style.display="none";let u=du(d=>n.parentNode.insertBefore(d,n.nextSibling),r);return u}function tsr(n){n.off=em,n.on=mo,n.wheelEventPixels=ior,n.Doc=nP,n.splitLines=kHe,n.countColumn=Zy,n.findColumn=uje,n.isWordChar=fje,n.Pass=Dpe,n.signal=vd,n.Line=bX,n.changeEnd=CT,n.scrollbarModel=Gtn,n.Pos=ur,n.cmpPos=ns,n.modes=RHe,n.mimeModes=LD,n.resolveMode=Bde,n.getMode=xHe,n.modeExtensions=eL,n.extendMode=Jrr,n.copyState=eP,n.startState=utn,n.innerMode=CHe,n.commands=_X,n.keyMap=VR,n.keyName=bnn,n.isModifierKey=hnn,n.lookupKey=nL,n.normalizeKeyMap=Cor,n.StringStream=jpe,n.SharedTextMarker=rUe,n.TextMarker=nUe,n.LineWidget=tUe,n.e_preventDefault=i1,n.e_stopPropagation=atn,n.e_stop=dX,n.addClass=zP,n.contains=kT,n.rmClass=VP,n.keyNames=AT}Uor(du);qor(du);var nsr="iter insert remove copy getEditor constructor".split(" ");for(let n in nP.prototype)nP.prototype.hasOwnProperty(n)&&qp(nsr,n)<0&&(du.prototype[n]=function(r){return function(){return r.apply(this.doc,arguments)}}(nP.prototype[n]));lj(nP);du.inputStyles={textarea:Zor,contenteditable:Xor};du.defineMode=function(n){!du.defaults.mode&&n!="null"&&(du.defaults.mode=n),qrr.apply(this,arguments)};du.defineMIME=Xrr;du.defineMode("null",()=>({token:n=>n.skipToEnd()}));du.defineMIME("text/plain","null");du.defineExtension=(n,r)=>{du.prototype[n]=r};du.defineDocExtension=(n,r)=>{nP.prototype[n]=r};du.fromTextArea=esr;tsr(du);du.version="5.61.0";var Ufe=du;document.body.insertAdjacentHTML("beforeend",` -`);self.CodeMirror=Wfe;var Sje=class extends HTMLElement{static get observedAttributes(){return["src","readonly","mode","theme"]}attributeChangedCallback(n,r,o){this.__initialized&&r!==o&&(n==="readonly"?this[n]=o!==null:this[n]=o)}get readonly(){return this.editor.getOption("readOnly")}set readonly(n){this.editor.setOption("readOnly",n)}get mode(){return this.editor.getOption("mode")}set mode(n){this.editor.setOption("mode",n)}get theme(){return this.editor.getOption("theme")}set theme(n){this.editor.setOption("theme",n)}get src(){return this.getAttribute("src")}set src(n){this.setAttribute("src",n),this.setSrc()}get value(){return this.editor.getValue()}set value(n){this.setValue(n)}constructor(){super(),this.__initialized=!1,this.__element=null,this.editor=null}async connectedCallback(){const n=document.createElement("template");n.innerHTML=Sje.template(),this.appendChild(n.content.cloneNode(!0)),this.style.display="block",this.__element=this.querySelector("textarea");const r=this.hasAttribute("mode")?this.getAttribute("mode"):"null",o=this.hasAttribute("theme")?this.getAttribute("theme"):"default";let l=this.getAttribute("readonly");l===""?l=!0:l!=="nocursor"&&(l=!1);let u="";const d=this.querySelector("script");d&&d.getAttribute("type")==="wc-content"&&(u=Sje.dedentText(d.innerHTML),u=u.replace(/<(\/?script)(.*?)>/g,"<$1$2>"));let h=Wfe.defaults.viewportMargin;if(this.hasAttribute("viewport-margin")){const w=this.getAttribute("viewport-margin").toLowerCase();h=w==="infinity"?1/0:parseInt(w)}this.editor=Wfe.fromTextArea(this.__element,{lineNumbers:!0,readOnly:l,mode:r,theme:o,viewportMargin:h}),this.hasAttribute("src")?this.setSrc(this.getAttribute("src")):(await new Promise(w=>setTimeout(w,50)),this.value=u),this.__initialized=!0}disconnectedCallback(){this.editor&&this.editor.toTextArea(),this.editor=null,this.__initialized=!1}async setSrc(){const n=this.getAttribute("src"),r=await this.fetchSrc(n);this.value=r}async setValue(n){this.editor.swapDoc(Wfe.Doc(n,this.getAttribute("mode"))),this.editor.refresh()}async fetchSrc(n){return(await fetch(n)).text()}static template(){return` +`);self.CodeMirror=Ufe;var Tje=class extends HTMLElement{static get observedAttributes(){return["src","readonly","mode","theme"]}attributeChangedCallback(n,r,o){this.__initialized&&r!==o&&(n==="readonly"?this[n]=o!==null:this[n]=o)}get readonly(){return this.editor.getOption("readOnly")}set readonly(n){this.editor.setOption("readOnly",n)}get mode(){return this.editor.getOption("mode")}set mode(n){this.editor.setOption("mode",n)}get theme(){return this.editor.getOption("theme")}set theme(n){this.editor.setOption("theme",n)}get src(){return this.getAttribute("src")}set src(n){this.setAttribute("src",n),this.setSrc()}get value(){return this.editor.getValue()}set value(n){this.setValue(n)}constructor(){super(),this.__initialized=!1,this.__element=null,this.editor=null}async connectedCallback(){const n=document.createElement("template");n.innerHTML=Tje.template(),this.appendChild(n.content.cloneNode(!0)),this.style.display="block",this.__element=this.querySelector("textarea");const r=this.hasAttribute("mode")?this.getAttribute("mode"):"null",o=this.hasAttribute("theme")?this.getAttribute("theme"):"default";let l=this.getAttribute("readonly");l===""?l=!0:l!=="nocursor"&&(l=!1);let u="";const d=this.querySelector("script");d&&d.getAttribute("type")==="wc-content"&&(u=Tje.dedentText(d.innerHTML),u=u.replace(/<(\/?script)(.*?)>/g,"<$1$2>"));let h=Ufe.defaults.viewportMargin;if(this.hasAttribute("viewport-margin")){const w=this.getAttribute("viewport-margin").toLowerCase();h=w==="infinity"?1/0:parseInt(w)}this.editor=Ufe.fromTextArea(this.__element,{lineNumbers:!0,readOnly:l,mode:r,theme:o,viewportMargin:h}),this.hasAttribute("src")?this.setSrc(this.getAttribute("src")):(await new Promise(w=>setTimeout(w,50)),this.value=u),this.__initialized=!0}disconnectedCallback(){this.editor&&this.editor.toTextArea(),this.editor=null,this.__initialized=!1}async setSrc(){const n=this.getAttribute("src"),r=await this.fetchSrc(n);this.value=r}async setValue(n){this.editor.swapDoc(Ufe.Doc(n,this.getAttribute("mode"))),this.editor.refresh()}async fetchSrc(n){return(await fetch(n)).text()}static template(){return` `}static dedentText(n){const r=n.split(` `);r[0]===""&&r.splice(0,1);const o=r[0];let l=0;const d=o[0]===" "?" ":" ";for(;o[l]===d;)l+=1;const h=[];for(const w of r){let v=w;for(let y=0;yn?M():r!==!0&&(u=setTimeout(l?L:M,l===void 0?n-O:n))}return y.cancel=v,y}function qor(n,r,o){return o===void 0?dWt(n,r,!1):dWt(n,o,r!==!1)}const M4=Symbol("Initial value"),aNe=Symbol("Editor dirty"),ER=Symbol("ParseHandler");function Xor(n){let l=0;return new Promise((u,d)=>{const h=setInterval(()=>{if(n()){clearInterval(h),u();return}l+=1,l===100&&(clearInterval(h),d(new Error("Value did not become truthy in time")))},10)})}class Jor extends sq{static get styles(){return rrr` +`)}};customElements.define("wc-codemirror",Tje);function mWt(n,r,o,l){var u,d=!1,h=0;function w(){u&&clearTimeout(u)}function v(){w(),d=!0}typeof r!="boolean"&&(l=o,o=r,r=void 0);function y(){for(var E=arguments.length,A=new Array(E),C=0;Cn?M():r!==!0&&(u=setTimeout(l?L:M,l===void 0?n-O:n))}return y.cancel=v,y}function rsr(n,r,o){return o===void 0?mWt(n,r,!1):mWt(n,o,r!==!1)}const M4=Symbol("Initial value"),dNe=Symbol("Editor dirty"),ER=Symbol("ParseHandler");function isr(n){let l=0;return new Promise((u,d)=>{const h=setInterval(()=>{if(n()){clearInterval(h),u();return}l+=1,l===100&&(clearInterval(h),d(new Error("Value did not become truthy in time")))},10)})}class osr extends oq{static get styles(){return drr` :host { display: block; text-align: left; @@ -2009,58 +2009,58 @@ span.CodeMirror-selectedtext { background: none; } :host(:not([ready])) #wrapper { display: none; } - `}static get properties(){return{value:{type:String,noAccessor:!0},readonly:{type:Boolean,reflect:!0},prefixes:{type:String,attribute:"prefixes"},isParsing:{type:Boolean,attribute:"is-parsing",reflect:!0},autoParse:{type:Boolean,attribute:"auto-parse"},parseDelay:{type:Number},customPrefixes:{type:Object}}}constructor(){super(),this.parseDelay=250,this[M4]="",this.customPrefixes={},navigator.onLine&&(this.__style=document.createElement("link"),this.__style.rel="stylesheet",this.__style.href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.61.1/codemirror.min.css")}connectedCallback(){const r=new Promise(o=>{this.__style.onload=o});super.connectedCallback(),this.ready=Promise.resolve().then(async()=>{await r,await this.requestUpdate(),await Xor(()=>this.codeMirror&&this.codeMirror.editor&&this.codeMirror.__initialized),await this._initializeCodeMirror(),[...this.renderRoot.querySelectorAll("[class^=CodeMirror]")].forEach(o=>{o.classList.forEach(l=>{l.match(/^CodeMirror/)&&o.setAttribute("part",l)})}),this.setAttribute("ready",""),this.codeMirror.editor.refresh(),this[M4]&&this.codeMirror.editor.setValue(this[M4])})}get _prefixes(){return async()=>(this.prefixes||"").split(",").map(o=>o.trim()).reduce((o,l)=>l in mde?{...o,[l]:mde[l]().value}:o,{})}get codeMirror(){return this.renderRoot.querySelector("wc-codemirror")}get value(){return this.hasAttribute("ready")?this.codeMirror.editor.getValue():this[M4]||""}set value(r){typeof r=="string"&&(this.hasAttribute("ready")?this.value!==r&&(this.codeMirror.editor.setValue(r),this[ER]()):this[M4]=r)}async firstUpdated(r){super.firstUpdated(r),this[M4]&&(await this.ready,this.codeMirror.editor.setValue(this[M4]),this[ER](),this[M4]=void 0)}updated(r){super.updated(r),(r.has("autoParse")||r.has("parseDelay"))&&this.__setParseHandler()}render(){return brr`${this.__style} + `}static get properties(){return{value:{type:String,noAccessor:!0},readonly:{type:Boolean,reflect:!0},prefixes:{type:String,attribute:"prefixes"},isParsing:{type:Boolean,attribute:"is-parsing",reflect:!0},autoParse:{type:Boolean,attribute:"auto-parse"},parseDelay:{type:Number},customPrefixes:{type:Object}}}constructor(){super(),this.parseDelay=250,this[M4]="",this.customPrefixes={},navigator.onLine&&(this.__style=document.createElement("link"),this.__style.rel="stylesheet",this.__style.href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.61.1/codemirror.min.css")}connectedCallback(){const r=new Promise(o=>{this.__style.onload=o});super.connectedCallback(),this.ready=Promise.resolve().then(async()=>{await r,await this.requestUpdate(),await isr(()=>this.codeMirror&&this.codeMirror.editor&&this.codeMirror.__initialized),await this._initializeCodeMirror(),[...this.renderRoot.querySelectorAll("[class^=CodeMirror]")].forEach(o=>{o.classList.forEach(l=>{l.match(/^CodeMirror/)&&o.setAttribute("part",l)})}),this.setAttribute("ready",""),this.codeMirror.editor.refresh(),this[M4]&&this.codeMirror.editor.setValue(this[M4])})}get _prefixes(){return async()=>(this.prefixes||"").split(",").map(o=>o.trim()).reduce((o,l)=>l in _de?{...o,[l]:_de[l]().value}:o,{})}get codeMirror(){return this.renderRoot.querySelector("wc-codemirror")}get value(){return this.hasAttribute("ready")?this.codeMirror.editor.getValue():this[M4]||""}set value(r){typeof r=="string"&&(this.hasAttribute("ready")?this.value!==r&&(this.codeMirror.editor.setValue(r),this[ER]()):this[M4]=r)}async firstUpdated(r){super.firstUpdated(r),this[M4]&&(await this.ready,this.codeMirror.editor.setValue(this[M4]),this[ER](),this[M4]=void 0)}updated(r){super.updated(r),(r.has("autoParse")||r.has("parseDelay"))&&this.__setParseHandler()}render(){return krr`${this.__style}
-
`}async parse(){if(!this.isParsing){this.__errorMarker&&this.__errorMarker.clear(),this.isParsing=!0;try{await this._parse()}catch(r){typeof this._errorLine=="function"&&await this.__highlightError(this._errorLine(r)),this.dispatchEvent(new CustomEvent("parsing-failed",{detail:{error:r}}))}finally{this.isParsing=!1}}}async _initializeCodeMirror(){this.codeMirror.editor.setSize("100%","100%"),this.__setParseHandler(),this.codeMirror.editor.on("change",()=>{this[aNe]=!0})}__setParseHandler(){this.codeMirror.editor&&(this[ER]&&(this.codeMirror.editor.off("blur",this[ER]),this.codeMirror.editor.off("change",this[ER])),this.autoParse?(this[ER]=qor(this.parseDelay,this.__beginParse.bind(this)),this.codeMirror.editor.on("change",this[ER])):(this[ER]=this.__beginParse.bind(this),this.codeMirror.editor.on("blur",this[ER])))}async __beginParse(){this[aNe]&&await this.parse(),this[aNe]=!1}async __highlightError(r){if(!this.ready)return;let o={line:0,ch:0},l={line:0,ch:Number.MAX_SAFE_INTEGER};r&&r.from&&(o=r.from,this.codeMirror.editor.scrollIntoView(o)),r&&r.to&&(l=r.to);const u=r?r.message:"";await this.ready,this.__errorMarker=this.codeMirror.editor.getDoc().markText(o,l,{attributes:{part:"error",title:u}})}async _combinePrefixes(){return Object.entries(this.customPrefixes).reduce((r,[o,l])=>!l||!o||typeof l!="string"||typeof o!="string"?r:{...r,[o]:l},await this._prefixes())}}window.CodeMirror.defineMode("javascript",function(n,r){var o=n.indentUnit,l=r.statementIndent,u=r.jsonld,d=r.json||u,h=r.typescript,w=r.wordCharacters||/[\w$\xa1-\uffff]/,v=function(){function We(Th){return{type:Th,style:"keyword"}}var bt=We("keyword a"),Mn=We("keyword b"),yr=We("keyword c"),Wo=We("keyword d"),el=We("operator"),Pa={type:"atom",style:"atom"};return{if:We("if"),while:bt,with:bt,else:Mn,do:Mn,try:Mn,finally:Mn,return:Wo,break:Wo,continue:Wo,new:We("new"),delete:yr,void:yr,throw:yr,debugger:We("debugger"),var:We("var"),const:We("var"),let:We("var"),function:We("function"),catch:We("catch"),for:We("for"),switch:We("switch"),case:We("case"),default:We("default"),in:el,typeof:el,instanceof:el,true:Pa,false:Pa,null:Pa,undefined:Pa,NaN:Pa,Infinity:Pa,this:We("this"),class:We("class"),super:We("atom"),yield:yr,export:We("export"),import:We("import"),extends:yr,await:yr}}(),y=/[+\-*&%=<>!?|~^@]/,E=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function A(We){for(var bt=!1,Mn,yr=!1;(Mn=We.next())!=null;){if(!bt){if(Mn=="/"&&!yr)return;Mn=="["?yr=!0:yr&&Mn=="]"&&(yr=!1)}bt=!bt&&Mn=="\\"}}var C,R;function O(We,bt,Mn){return C=We,R=Mn,bt}function M(We,bt){var Mn=We.next();if(Mn=='"'||Mn=="'")return bt.tokenize=L(Mn),bt.tokenize(We,bt);if(Mn=="."&&We.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return O("number","number");if(Mn=="."&&We.match(".."))return O("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(Mn))return O(Mn);if(Mn=="="&&We.eat(">"))return O("=>","operator");if(Mn=="0"&&We.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return O("number","number");if(/\d/.test(Mn))return We.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),O("number","number");if(Mn=="/")return We.eat("*")?(bt.tokenize=H,H(We,bt)):We.eat("/")?(We.skipToEnd(),O("comment","comment")):Lj(We,bt,1)?(A(We),We.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),O("regexp","string-2")):(We.eat("="),O("operator","operator",We.current()));if(Mn=="`")return bt.tokenize=G,G(We,bt);if(Mn=="#")return We.skipToEnd(),O("error","error");if(Mn=="<"&&We.match("!--")||Mn=="-"&&We.match("->"))return We.skipToEnd(),O("comment","comment");if(y.test(Mn))return(Mn!=">"||!bt.lexical||bt.lexical.type!=">")&&(We.eat("=")?(Mn=="!"||Mn=="=")&&We.eat("="):/[<>*+\-]/.test(Mn)&&(We.eat(Mn),Mn==">"&&We.eat(Mn))),O("operator","operator",We.current());if(w.test(Mn)){We.eatWhile(w);var yr=We.current();if(bt.lastType!="."){if(v.propertyIsEnumerable(yr)){var Wo=v[yr];return O(Wo.type,Wo.style,yr)}if(yr=="async"&&We.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return O("async","keyword",yr)}return O("variable","variable",yr)}}function L(We){return function(bt,Mn){var yr=!1,Wo;if(u&&bt.peek()=="@"&&bt.match(E))return Mn.tokenize=M,O("jsonld-keyword","meta");for(;(Wo=bt.next())!=null&&!(Wo==We&&!yr);)yr=!yr&&Wo=="\\";return yr||(Mn.tokenize=M),O("string","string")}}function H(We,bt){for(var Mn=!1,yr;yr=We.next();){if(yr=="/"&&Mn){bt.tokenize=M;break}Mn=yr=="*"}return O("comment","comment")}function G(We,bt){for(var Mn=!1,yr;(yr=We.next())!=null;){if(!Mn&&(yr=="`"||yr=="$"&&We.eat("{"))){bt.tokenize=M;break}Mn=!Mn&&yr=="\\"}return O("quasi","string-2",We.current())}var j="([{}])";function Q(We,bt){bt.fatArrowAt&&(bt.fatArrowAt=null);var Mn=We.string.indexOf("=>",We.start);if(!(Mn<0)){if(h){var yr=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(We.string.slice(We.start,Mn));yr&&(Mn=yr.index)}for(var Wo=0,el=!1,Pa=Mn-1;Pa>=0;--Pa){var Th=We.string.charAt(Pa),j0=j.indexOf(Th);if(j0>=0&&j0<3){if(!Wo){++Pa;break}if(--Wo==0){Th=="("&&(el=!0);break}}else if(j0>=3&&j0<6)++Wo;else if(w.test(Th))el=!0;else if(/["'\/`]/.test(Th))for(;;--Pa){if(Pa==0)return;var zJ=We.string.charAt(Pa-1);if(zJ==Th&&We.string.charAt(Pa-2)!="\\"){Pa--;break}}else if(el&&!Wo){++Pa;break}}el&&!Wo&&(bt.fatArrowAt=Pa)}}var te={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function pe(We,bt,Mn,yr,Wo,el){this.indented=We,this.column=bt,this.type=Mn,this.prev=Wo,this.info=el,yr!=null&&(this.align=yr)}function Le(We,bt){for(var Mn=We.localVars;Mn;Mn=Mn.next)if(Mn.name==bt)return!0;for(var yr=We.context;yr;yr=yr.prev)for(var Mn=yr.vars;Mn;Mn=Mn.next)if(Mn.name==bt)return!0}function Ee(We,bt,Mn,yr,Wo){var el=We.cc;for(le.state=We,le.stream=Wo,le.marked=null,le.cc=el,le.style=bt,We.lexical.hasOwnProperty("align")||(We.lexical.align=!0);;){var Pa=el.length?el.pop():d?Ye:ct;if(Pa(Mn,yr)){for(;el.length&&el[el.length-1].lex;)el.pop()();return le.marked?le.marked:Mn=="variable"&&Le(We,yr)?"variable-2":bt}}}var le={state:null,column:null,marked:null,cc:null};function xe(){for(var We=arguments.length-1;We>=0;We--)le.cc.push(arguments[We])}function be(){return xe.apply(null,arguments),!0}function ae(We,bt){for(var Mn=bt;Mn;Mn=Mn.next)if(Mn.name==We)return!0;return!1}function F(We){var bt=le.state;if(le.marked="def",bt.context){if(bt.lexical.info=="var"&&bt.context&&bt.context.block){var Mn=me(We,bt.context);if(Mn!=null){bt.context=Mn;return}}else if(!ae(We,bt.localVars)){bt.localVars=new Be(We,bt.localVars);return}}r.globalVars&&!ae(We,bt.globalVars)&&(bt.globalVars=new Be(We,bt.globalVars))}function me(We,bt){if(bt)if(bt.block){var Mn=me(We,bt.prev);return Mn?Mn==bt.prev?bt:new we(Mn,bt.vars,!0):null}else return ae(We,bt.vars)?bt:new we(bt.prev,new Be(We,bt.vars),!1);else return null}function ye(We){return We=="public"||We=="private"||We=="protected"||We=="abstract"||We=="readonly"}function we(We,bt,Mn){this.prev=We,this.vars=bt,this.block=Mn}function Be(We,bt){this.name=We,this.next=bt}var He=new Be("this",new Be("arguments",null));function Ue(){le.state.context=new we(le.state.context,le.state.localVars,!1),le.state.localVars=He}function Ge(){le.state.context=new we(le.state.context,le.state.localVars,!0),le.state.localVars=null}function Me(){le.state.localVars=le.state.context.vars,le.state.context=le.state.context.prev}Me.lex=!0;function vt(We,bt){var Mn=function(){var yr=le.state,Wo=yr.indented;if(yr.lexical.type=="stat")Wo=yr.lexical.indented;else for(var el=yr.lexical;el&&el.type==")"&&el.align;el=el.prev)Wo=el.indented;yr.lexical=new pe(Wo,le.stream.column(),We,null,yr.lexical,bt)};return Mn.lex=!0,Mn}function re(){var We=le.state;We.lexical.prev&&(We.lexical.type==")"&&(We.indented=We.lexical.indented),We.lexical=We.lexical.prev)}re.lex=!0;function Te(We){function bt(Mn){return Mn==We?be():We==";"||Mn=="}"||Mn==")"||Mn=="]"?xe():be(bt)}return bt}function ct(We,bt){return We=="var"?be(vt("vardef",bt),Al,Te(";"),re):We=="keyword a"?be(vt("form"),jt,ct,re):We=="keyword b"?be(vt("form"),ct,re):We=="keyword d"?le.stream.match(/^\s*$/,!1)?be():be(vt("stat"),Pe,Te(";"),re):We=="debugger"?be(Te(";")):We=="{"?be(vt("}"),Ge,ce,re,Me):We==";"?be():We=="if"?(le.state.lexical.info=="else"&&le.state.cc[le.state.cc.length-1]==re&&le.state.cc.pop()(),be(vt("form"),jt,ct,re,S)):We=="function"?be(ue):We=="for"?be(vt("form"),x,ct,re):We=="class"||h&&bt=="interface"?(le.marked="keyword",be(vt("form",We=="class"?We:bt),Hl,re)):We=="variable"?h&&bt=="declare"?(le.marked="keyword",be(ct)):h&&(bt=="module"||bt=="enum"||bt=="type")&&le.stream.match(/^\s*\w/,!1)?(le.marked="keyword",bt=="enum"?be(XT):bt=="type"?be(An,Te("operator"),Zt,Te(";")):be(vt("form"),co,Te("{"),vt("}"),ce,re,re)):h&&bt=="namespace"?(le.marked="keyword",be(vt("form"),Ye,ct,re)):h&&bt=="abstract"?(le.marked="keyword",be(ct)):be(vt("stat"),St):We=="switch"?be(vt("form"),jt,Te("{"),vt("}","switch"),Ge,ce,re,re,Me):We=="case"?be(Ye,Te(":")):We=="default"?be(Te(":")):We=="catch"?be(vt("form"),Ue,at,ct,re,Me):We=="export"?be(vt("stat"),gs,re):We=="import"?be(vt("stat"),ws,re):We=="async"?be(ct):bt=="@"?be(Ye,ct):xe(vt("stat"),Ye,Te(";"),re)}function at(We){if(We=="(")return be(Ws,Te(")"))}function Ye(We,bt){return rn(We,bt,!1)}function mt(We,bt){return rn(We,bt,!0)}function jt(We){return We!="("?xe():be(vt(")"),Ye,Te(")"),re)}function rn(We,bt,Mn){if(le.state.fatArrowAt==le.stream.start){var yr=Mn?q:K;if(We=="(")return be(Ue,vt(")"),Gn(Ws,")"),re,Te("=>"),yr,Me);if(We=="variable")return xe(Ue,co,Te("=>"),yr,Me)}var Wo=Mn?T:Oe;return te.hasOwnProperty(We)?be(Wo):We=="function"?be(ue,Wo):We=="class"||h&&bt=="interface"?(le.marked="keyword",be(vt("form"),Fr,re)):We=="keyword c"||We=="async"?be(Mn?mt:Ye):We=="("?be(vt(")"),Pe,Te(")"),re,Wo):We=="operator"||We=="spread"?be(Mn?mt:Ye):We=="["?be(vt("]"),VJ,re,Wo):We=="{"?$e(zt,"}",null,Wo):We=="quasi"?xe($,Wo):We=="new"?be(ke(Mn)):We=="import"?be(Ye):be()}function Pe(We){return We.match(/[;\}\)\],]/)?xe():xe(Ye)}function Oe(We,bt){return We==","?be(Ye):T(We,bt,!1)}function T(We,bt,Mn){var yr=Mn==!1?Oe:T,Wo=Mn==!1?Ye:mt;if(We=="=>")return be(Ue,Mn?q:K,Me);if(We=="operator")return/\+\+|--/.test(bt)||h&&bt=="!"?be(yr):h&&bt=="<"&&le.stream.match(/^([^>]|<.*?>)*>\s*\(/,!1)?be(vt(">"),Gn(Zt,">"),re,yr):bt=="?"?be(Ye,Te(":"),Wo):be(Wo);if(We=="quasi")return xe($,yr);if(We!=";"){if(We=="(")return $e(mt,")","call",yr);if(We==".")return be(he,yr);if(We=="[")return be(vt("]"),Pe,Te("]"),re,yr);if(h&&bt=="as")return le.marked="keyword",be(Zt,yr);if(We=="regexp")return le.state.lastType=le.marked="operator",le.stream.backUp(le.stream.pos-le.stream.start-1),be(Wo)}}function $(We,bt){return We!="quasi"?xe():bt.slice(bt.length-2)!="${"?be($):be(Ye,B)}function B(We){if(We=="}")return le.marked="string-2",le.state.tokenize=G,be($)}function K(We){return Q(le.stream,le.state),xe(We=="{"?ct:Ye)}function q(We){return Q(le.stream,le.state),xe(We=="{"?ct:mt)}function ke(We){return function(bt){return bt=="."?be(We?Ie:Re):bt=="variable"&&h?be(xi,We?T:Oe):xe(We?mt:Ye)}}function Re(We,bt){if(bt=="target")return le.marked="keyword",be(Oe)}function Ie(We,bt){if(bt=="target")return le.marked="keyword",be(T)}function St(We){return We==":"?be(re,ct):xe(Oe,Te(";"),re)}function he(We){if(We=="variable")return le.marked="property",be()}function zt(We,bt){if(We=="async")return le.marked="property",be(zt);if(We=="variable"||le.style=="keyword"){if(le.marked="property",bt=="get"||bt=="set")return be(Qt);var Mn;return h&&le.state.fatArrowAt==le.stream.start&&(Mn=le.stream.match(/^\s*:\s*/,!1))&&(le.state.fatArrowAt=le.stream.pos+Mn[0].length),be($n)}else{if(We=="number"||We=="string")return le.marked=u?"property":le.style+" property",be($n);if(We=="jsonld-keyword")return be($n);if(h&&ye(bt))return le.marked="keyword",be(zt);if(We=="[")return be(Ye,de,Te("]"),$n);if(We=="spread")return be(mt,$n);if(bt=="*")return le.marked="keyword",be(zt);if(We==":")return xe($n)}}function Qt(We){return We!="variable"?xe($n):(le.marked="property",be(ue))}function $n(We){if(We==":")return be(mt);if(We=="(")return xe(ue)}function Gn(We,bt,Mn){function yr(Wo,el){if(Mn?Mn.indexOf(Wo)>-1:Wo==","){var Pa=le.state.lexical;return Pa.info=="call"&&(Pa.pos=(Pa.pos||0)+1),be(function(Th,j0){return Th==bt||j0==bt?xe():xe(We)},yr)}return Wo==bt||el==bt?be():Mn&&Mn.indexOf(";")>-1?xe(We):be(Te(bt))}return function(Wo,el){return Wo==bt||el==bt?be():xe(We,yr)}}function $e(We,bt,Mn){for(var yr=3;yr"),Zt)}function qr(We){if(We=="=>")return be(Zt)}function ao(We,bt){if(We=="variable"||le.style=="keyword")return le.marked="property",be(ao);if(bt=="?"||We=="number"||We=="string")return be(ao);if(We==":")return be(Zt);if(We=="[")return be(Te("variable"),et,Te("]"),ao);if(We=="(")return xe(Yt,ao)}function ki(We,bt){return We=="variable"&&le.stream.match(/^\s*[?:]/,!1)||bt=="?"?be(ki):We==":"?be(Zt):We=="spread"?be(ki):xe(Zt)}function Ri(We,bt){if(bt=="<")return be(vt(">"),Gn(Zt,">"),re,Ri);if(bt=="|"||We=="."||bt=="&")return be(Zt);if(We=="[")return be(Zt,Te("]"),Ri);if(bt=="extends"||bt=="implements")return le.marked="keyword",be(Zt);if(bt=="?")return be(Zt,Te(":"),Zt)}function xi(We,bt){if(bt=="<")return be(vt(">"),Gn(Zt,">"),re,Ri)}function wl(){return xe(Zt,pu)}function pu(We,bt){if(bt=="=")return be(Zt)}function Al(We,bt){return bt=="enum"?(le.marked="keyword",be(XT)):xe(co,de,So,ql)}function co(We,bt){if(h&&ye(bt))return le.marked="keyword",be(co);if(We=="variable")return F(bt),be();if(We=="spread")return be(co);if(We=="[")return $e(bu,"]");if(We=="{")return $e(Zc,"}")}function Zc(We,bt){return We=="variable"&&!le.stream.match(/^\s*:/,!1)?(F(bt),be(So)):(We=="variable"&&(le.marked="property"),We=="spread"?be(co):We=="}"?xe():We=="["?be(Ye,Te("]"),Te(":"),Zc):be(Te(":"),co,So))}function bu(){return xe(co,So)}function So(We,bt){if(bt=="=")return be(mt)}function ql(We){if(We==",")return be(Al)}function S(We,bt){if(We=="keyword b"&&bt=="else")return be(vt("form","else"),ct,re)}function x(We,bt){if(bt=="await")return be(x);if(We=="(")return be(vt(")"),Y,re)}function Y(We){return We=="var"?be(Al,J):We=="variable"?be(J):xe(J)}function J(We,bt){return We==")"?be():We==";"?be(J):bt=="in"||bt=="of"?(le.marked="keyword",be(Ye,J)):xe(Ye,J)}function ue(We,bt){if(bt=="*")return le.marked="keyword",be(ue);if(We=="variable")return F(bt),be(ue);if(We=="(")return be(Ue,vt(")"),Gn(Ws,")"),re,ht,ct,Me);if(h&&bt=="<")return be(vt(">"),Gn(wl,">"),re,ue)}function Yt(We,bt){if(bt=="*")return le.marked="keyword",be(Yt);if(We=="variable")return F(bt),be(Yt);if(We=="(")return be(Ue,vt(")"),Gn(Ws,")"),re,ht,Me);if(h&&bt=="<")return be(vt(">"),Gn(wl,">"),re,Yt)}function An(We,bt){if(We=="keyword"||We=="variable")return le.marked="type",be(An);if(bt=="<")return be(vt(">"),Gn(wl,">"),re)}function Ws(We,bt){return bt=="@"&&be(Ye,Ws),We=="spread"?be(Ws):h&&ye(bt)?(le.marked="keyword",be(Ws)):h&&We=="this"?be(de,So):xe(co,de,So)}function Fr(We,bt){return We=="variable"?Hl(We,bt):Ec(We,bt)}function Hl(We,bt){if(We=="variable")return F(bt),be(Ec)}function Ec(We,bt){if(bt=="<")return be(vt(">"),Gn(wl,">"),re,Ec);if(bt=="extends"||bt=="implements"||h&&We==",")return bt=="implements"&&(le.marked="keyword"),be(h?Zt:Ye,Ec);if(We=="{")return be(vt("}"),Rs,re)}function Rs(We,bt){if(We=="async"||We=="variable"&&(bt=="static"||bt=="get"||bt=="set"||h&&ye(bt))&&le.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return le.marked="keyword",be(Rs);if(We=="variable"||le.style=="keyword")return le.marked="property",be(h?ml:ue,Rs);if(We=="number"||We=="string")return be(h?ml:ue,Rs);if(We=="[")return be(Ye,de,Te("]"),h?ml:ue,Rs);if(bt=="*")return le.marked="keyword",be(Rs);if(h&&We=="(")return xe(Yt,Rs);if(We==";"||We==",")return be(Rs);if(We=="}")return be();if(bt=="@")return be(Ye,Rs)}function ml(We,bt){if(bt=="?")return be(ml);if(We==":")return be(Zt,So);if(bt=="=")return be(mt);var Mn=le.state.lexical.prev,yr=Mn&&Mn.info=="interface";return xe(yr?Yt:ue)}function gs(We,bt){return bt=="*"?(le.marked="keyword",be(TO,Te(";"))):bt=="default"?(le.marked="keyword",be(Ye,Te(";"))):We=="{"?be(Gn(as,"}"),TO,Te(";")):xe(ct)}function as(We,bt){if(bt=="as")return le.marked="keyword",be(Te("variable"));if(We=="variable")return xe(mt,as)}function ws(We){return We=="string"?be():We=="("?xe(Ye):xe(wi,jr,TO)}function wi(We,bt){return We=="{"?$e(wi,"}"):(We=="variable"&&F(bt),bt=="*"&&(le.marked="keyword"),be(lr))}function jr(We){if(We==",")return be(wi,jr)}function lr(We,bt){if(bt=="as")return le.marked="keyword",be(wi)}function TO(We,bt){if(bt=="from")return le.marked="keyword",be(Ye)}function VJ(We){return We=="]"?be():xe(Gn(mt,"]"))}function XT(){return xe(vt("form"),co,Te("{"),vt("}"),Gn($O,"}"),re,re)}function $O(){return xe(co,So)}function JT(We,bt){return We.lastType=="operator"||We.lastType==","||y.test(bt.charAt(0))||/[,.]/.test(bt.charAt(0))}function Lj(We,bt,Mn){return bt.tokenize==M&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(bt.lastType)||bt.lastType=="quasi"&&/\{\s*$/.test(We.string.slice(0,We.pos-(Mn||0)))}return{startState:function(We){var bt={tokenize:M,lastType:"sof",cc:[],lexical:new pe((We||0)-o,0,"block",!1),localVars:r.localVars,context:r.localVars&&new we(null,null,!1),indented:We||0};return r.globalVars&&typeof r.globalVars=="object"&&(bt.globalVars=r.globalVars),bt},token:function(We,bt){if(We.sol()&&(bt.lexical.hasOwnProperty("align")||(bt.lexical.align=!1),bt.indented=We.indentation(),Q(We,bt)),bt.tokenize!=H&&We.eatSpace())return null;var Mn=bt.tokenize(We,bt);return C=="comment"?Mn:(bt.lastType=C=="operator"&&(R=="++"||R=="--")?"incdec":C,Ee(bt,Mn,C,R,We))},indent:function(We,bt){if(We.tokenize==H)return CodeMirror.Pass;if(We.tokenize!=M)return 0;var Mn=bt&&bt.charAt(0),yr=We.lexical,Wo;if(!/^\s*else\b/.test(bt))for(var el=We.cc.length-1;el>=0;--el){var Pa=We.cc[el];if(Pa==re)yr=yr.prev;else if(Pa!=S)break}for(;(yr.type=="stat"||yr.type=="form")&&(Mn=="}"||(Wo=We.cc[We.cc.length-1])&&(Wo==Oe||Wo==T)&&!/^[,\.=+\-*:?[\(]/.test(bt));)yr=yr.prev;l&&yr.type==")"&&yr.prev.type=="stat"&&(yr=yr.prev);var Th=yr.type,j0=Mn==Th;return Th=="vardef"?yr.indented+(We.lastType=="operator"||We.lastType==","?yr.info.length+1:0):Th=="form"&&Mn=="{"?yr.indented:Th=="form"?yr.indented+o:Th=="stat"?yr.indented+(JT(We,bt)?l||o:0):yr.info=="switch"&&!j0&&r.doubleIndentSwitch!=!1?yr.indented+(/^(?:case|default)\b/.test(bt)?o:2*o):yr.align?yr.column+(j0?0:1):yr.indented+(j0?0:o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:d?null:"/*",blockCommentEnd:d?null:"*/",blockCommentContinue:d?null:" * ",lineComment:d?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:d?"json":"javascript",jsonldMode:u,jsonMode:d,expressionAllowed:Lj,skipExpression:function(We){var bt=We.cc[We.cc.length-1];(bt==Ye||bt==mt)&&We.cc.pop()}}});CodeMirror.registerHelper("wordChars","javascript",/[\w$]/);CodeMirror.defineMIME("text/javascript","javascript");CodeMirror.defineMIME("text/ecmascript","javascript");CodeMirror.defineMIME("application/javascript","javascript");CodeMirror.defineMIME("application/x-javascript","javascript");CodeMirror.defineMIME("application/ecmascript","javascript");CodeMirror.defineMIME("application/json",{name:"javascript",json:!0});CodeMirror.defineMIME("application/x-json",{name:"javascript",json:!0});CodeMirror.defineMIME("application/ld+json",{name:"javascript",jsonld:!0});CodeMirror.defineMIME("text/typescript",{name:"javascript",typescript:!0});CodeMirror.defineMIME("application/typescript",{name:"javascript",typescript:!0});window.CodeMirror.defineMode("turtle",function(n){var r=n.indentUnit,o;function l(E){return new RegExp("^(?:"+E.join("|")+")$","i")}l([]);var u=l(["@prefix","@base","a"]),d=/[*+\-<>=&|]/;function h(E,A){var C=E.next();if(o=null,C=="<"&&!E.match(/^[\s\u00a0=]/,!1))return E.match(/^[^\s\u00a0>]*>?/),"atom";if(C=='"'||C=="'")return A.tokenize=w(C),A.tokenize(E,A);if(/[{}\(\),\.;\[\]]/.test(C))return o=C,null;if(C=="#")return E.skipToEnd(),"comment";if(d.test(C))return E.eatWhile(d),null;if(C==":")return"operator";if(E.eatWhile(/[_\w\d]/),E.peek()==":")return"variable-3";var R=E.current();return u.test(R)?"meta":C>="A"&&C<="Z"?"comment":"keyword";var R=E.current()}function w(E){return function(A,C){for(var R=!1,O;(O=A.next())!=null;){if(O==E&&!R){C.tokenize=h;break}R=!R&&O=="\\"}return"string"}}function v(E,A,C){E.context={prev:E.context,indent:E.indent,col:C,type:A}}function y(E){E.indent=E.context.indent,E.context=E.context.prev}return{startState:function(){return{tokenize:h,context:null,indent:0,col:0}},token:function(E,A){if(E.sol()&&(A.context&&A.context.align==null&&(A.context.align=!1),A.indent=E.indentation()),E.eatSpace())return null;var C=A.tokenize(E,A);if(C!="comment"&&A.context&&A.context.align==null&&A.context.type!="pattern"&&(A.context.align=!0),o=="(")v(A,")",E.column());else if(o=="[")v(A,"]",E.column());else if(o=="{")v(A,"}",E.column());else if(/[\]\}\)]/.test(o)){for(;A.context&&A.context.type=="pattern";)y(A);A.context&&o==A.context.type&&y(A)}else o=="."&&A.context&&A.context.type=="pattern"?y(A):/atom|string|variable/.test(C)&&A.context&&(/[\}\]]/.test(A.context.type)?v(A,"pattern",E.column()):A.context.type=="pattern"&&!A.context.align&&(A.context.align=!0,A.context.col=E.column()));return C},indent:function(E,A){var C=A&&A.charAt(0),R=E.context;if(/[\]\}]/.test(C))for(;R&&R.type=="pattern";)R=R.prev;var O=R&&C==R.type;return R?R.type=="pattern"?R.col:R.align?R.col+(O?0:1):R.indent+(O?0:r):0},lineComment:"#"}});CodeMirror.defineMIME("text/turtle","turtle");CodeMirror.defineMIME("text/n3","turtle");CodeMirror.defineMIME("application/trig","turtle");window.CodeMirror.defineMode("ntriples",function(){var n={PRE_SUBJECT:0,WRITING_SUB_URI:1,WRITING_BNODE_URI:2,PRE_PRED:3,WRITING_PRED_URI:4,PRE_OBJ:5,WRITING_OBJ_URI:6,WRITING_OBJ_BNODE:7,WRITING_OBJ_LITERAL:8,WRITING_LIT_LANG:9,WRITING_LIT_TYPE:10,POST_OBJ:11,ERROR:12};function r(o,l){var u=o.location,d;u==n.PRE_SUBJECT&&l=="<"?d=n.WRITING_SUB_URI:u==n.PRE_SUBJECT&&l=="_"?d=n.WRITING_BNODE_URI:u==n.PRE_PRED&&l=="<"?d=n.WRITING_PRED_URI:u==n.PRE_OBJ&&l=="<"?d=n.WRITING_OBJ_URI:u==n.PRE_OBJ&&l=="_"?d=n.WRITING_OBJ_BNODE:u==n.PRE_OBJ&&l=='"'?d=n.WRITING_OBJ_LITERAL:u==n.WRITING_SUB_URI&&l==">"||u==n.WRITING_BNODE_URI&&l==" "?d=n.PRE_PRED:u==n.WRITING_PRED_URI&&l==">"?d=n.PRE_OBJ:u==n.WRITING_OBJ_URI&&l==">"||u==n.WRITING_OBJ_BNODE&&l==" "||u==n.WRITING_OBJ_LITERAL&&l=='"'||u==n.WRITING_LIT_LANG&&l==" "||u==n.WRITING_LIT_TYPE&&l==">"?d=n.POST_OBJ:u==n.WRITING_OBJ_LITERAL&&l=="@"?d=n.WRITING_LIT_LANG:u==n.WRITING_OBJ_LITERAL&&l=="^"?d=n.WRITING_LIT_TYPE:l==" "&&(u==n.PRE_SUBJECT||u==n.PRE_PRED||u==n.PRE_OBJ||u==n.POST_OBJ)?d=u:u==n.POST_OBJ&&l=="."?d=n.PRE_SUBJECT:d=n.ERROR,o.location=d}return{startState:function(){return{location:n.PRE_SUBJECT,uris:[],anchors:[],bnodes:[],langs:[],types:[]}},token:function(o,l){var u=o.next();if(u=="<"){r(l,u);var d="";return o.eatWhile(function(E){return E!="#"&&E!=">"?(d+=E,!0):!1}),l.uris.push(d),o.match("#",!1)||(o.next(),r(l,">")),"variable"}if(u=="#"){var h="";return o.eatWhile(function(E){return E!=">"&&E!=" "?(h+=E,!0):!1}),l.anchors.push(h),"variable-2"}if(u==">")return r(l,">"),"variable";if(u=="_"){r(l,u);var w="";return o.eatWhile(function(E){return E!=" "?(w+=E,!0):!1}),l.bnodes.push(w),o.next(),r(l," "),"builtin"}if(u=='"')return r(l,u),o.eatWhile(function(E){return E!='"'}),o.next(),o.peek()!="@"&&o.peek()!="^"&&r(l,'"'),"string";if(u=="@"){r(l,"@");var v="";return o.eatWhile(function(E){return E!=" "?(v+=E,!0):!1}),l.langs.push(v),o.next(),r(l," "),"string-2"}if(u=="^"){o.next(),r(l,"^");var y="";return o.eatWhile(function(E){return E!=">"?(y+=E,!0):!1}),l.types.push(y),o.next(),r(l,">"),"variable"}u==" "&&r(l,u),u=="."&&r(l,u)}}});CodeMirror.defineMIME("application/n-triples","ntriples");CodeMirror.defineMIME("application/n-quads","ntriples");CodeMirror.defineMIME("text/n-triples","ntriples");var Yor={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},Qor={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};window.CodeMirror.defineMode("xml",function(n,r){var o=n.indentUnit,l={},u=r.htmlMode?Yor:Qor;for(var d in u)l[d]=u[d];for(var d in r)l[d]=r[d];var h,w;function v(le,xe){function be(me){return xe.tokenize=me,me(le,xe)}var ae=le.next();if(ae=="<")return le.eat("!")?le.eat("[")?le.match("CDATA[")?be(A("atom","]]>")):null:le.match("--")?be(A("comment","-->")):le.match("DOCTYPE",!0,!0)?(le.eatWhile(/[\w\._\-]/),be(C(1))):null:le.eat("?")?(le.eatWhile(/[\w\._\-]/),xe.tokenize=A("meta","?>"),"meta"):(h=le.eat("/")?"closeTag":"openTag",xe.tokenize=y,"tag bracket");if(ae=="&"){var F;return le.eat("#")?le.eat("x")?F=le.eatWhile(/[a-fA-F\d]/)&&le.eat(";"):F=le.eatWhile(/[\d]/)&&le.eat(";"):F=le.eatWhile(/[\w\.\-:]/)&&le.eat(";"),F?"atom":"error"}else return le.eatWhile(/[^&<]/),null}v.isInText=!0;function y(le,xe){var be=le.next();if(be==">"||be=="/"&&le.eat(">"))return xe.tokenize=v,h=be==">"?"endTag":"selfcloseTag","tag bracket";if(be=="=")return h="equals",null;if(be=="<"){xe.tokenize=v,xe.state=L,xe.tagName=xe.tagStart=null;var ae=xe.tokenize(le,xe);return ae?ae+" tag error":"tag error"}else return/[\'\"]/.test(be)?(xe.tokenize=E(be),xe.stringStartCol=le.column(),xe.tokenize(le,xe)):(le.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function E(le){var xe=function(be,ae){for(;!be.eol();)if(be.next()==le){ae.tokenize=y;break}return"string"};return xe.isInAttribute=!0,xe}function A(le,xe){return function(be,ae){for(;!be.eol();){if(be.match(xe)){ae.tokenize=v;break}be.next()}return le}}function C(le){return function(xe,be){for(var ae;(ae=xe.next())!=null;){if(ae=="<")return be.tokenize=C(le+1),be.tokenize(xe,be);if(ae==">")if(le==1){be.tokenize=v;break}else return be.tokenize=C(le-1),be.tokenize(xe,be)}return"meta"}}function R(le,xe,be){this.prev=le.context,this.tagName=xe,this.indent=le.indented,this.startOfLine=be,(l.doNotIndent.hasOwnProperty(xe)||le.context&&le.context.noIndent)&&(this.noIndent=!0)}function O(le){le.context&&(le.context=le.context.prev)}function M(le,xe){for(var be;;){if(!le.context||(be=le.context.tagName,!l.contextGrabbers.hasOwnProperty(be)||!l.contextGrabbers[be].hasOwnProperty(xe)))return;O(le)}}function L(le,xe,be){return le=="openTag"?(be.tagStart=xe.column(),H):le=="closeTag"?G:L}function H(le,xe,be){return le=="word"?(be.tagName=xe.current(),w="tag",te):l.allowMissingTagName&&le=="endTag"?(w="tag bracket",te(le,xe,be)):(w="error",H)}function G(le,xe,be){if(le=="word"){var ae=xe.current();return be.context&&be.context.tagName!=ae&&l.implicitlyClosed.hasOwnProperty(be.context.tagName)&&O(be),be.context&&be.context.tagName==ae||l.matchClosing===!1?(w="tag",j):(w="tag error",Q)}else return l.allowMissingTagName&&le=="endTag"?(w="tag bracket",j(le,xe,be)):(w="error",Q)}function j(le,xe,be){return le!="endTag"?(w="error",j):(O(be),L)}function Q(le,xe,be){return w="error",j(le,xe,be)}function te(le,xe,be){if(le=="word")return w="attribute",pe;if(le=="endTag"||le=="selfcloseTag"){var ae=be.tagName,F=be.tagStart;return be.tagName=be.tagStart=null,le=="selfcloseTag"||l.autoSelfClosers.hasOwnProperty(ae)?M(be,ae):(M(be,ae),be.context=new R(be,ae,F==be.indented)),L}return w="error",te}function pe(le,xe,be){return le=="equals"?Le:(l.allowMissing||(w="error"),te(le,xe,be))}function Le(le,xe,be){return le=="string"?Ee:le=="word"&&l.allowUnquoted?(w="string",te):(w="error",te(le,xe,be))}function Ee(le,xe,be){return le=="string"?Ee:te(le,xe,be)}return{startState:function(le){var xe={tokenize:v,state:L,indented:le||0,tagName:null,tagStart:null,context:null};return le!=null&&(xe.baseIndent=le),xe},token:function(le,xe){if(!xe.tagName&&le.sol()&&(xe.indented=le.indentation()),le.eatSpace())return null;h=null;var be=xe.tokenize(le,xe);return(be||h)&&be!="comment"&&(w=null,xe.state=xe.state(h||be,le,xe),w&&(be=w=="error"?be+" error":w)),be},indent:function(le,xe,be){var ae=le.context;if(le.tokenize.isInAttribute)return le.tagStart==le.indented?le.stringStartCol+1:le.indented+o;if(ae&&ae.noIndent)return CodeMirror.Pass;if(le.tokenize!=y&&le.tokenize!=v)return be?be.match(/^(\s*)/)[0].length:0;if(le.tagName)return l.multilineTagIndentPastTag!==!1?le.tagStart+le.tagName.length+2:le.tagStart+o*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/$/,blockCommentStart:"",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(le){le.state==Le&&(le.state=te)},xmlCurrentTag:function(le){return le.tagName?{name:le.tagName,close:le.type=="closeTag"}:null},xmlCurrentContext:function(le){for(var xe=[],be=le.context;be;be=be.prev)be.tagName&&xe.push(be.tagName);return xe.reverse()}}});CodeMirror.defineMIME("text/xml","xml");CodeMirror.defineMIME("application/xml","xml");CodeMirror.mimeModes.hasOwnProperty("text/html")||CodeMirror.defineMIME("text/html",{name:"xml",htmlMode:!0});const cue=Symbol("parsed quads");let Zor=class extends Jor{static get properties(){return{format:{type:String,reflect:!0},quads:{type:Array},noReserialize:{type:Boolean,attribute:"no-reserialize"}}}constructor(){super(),this.isParsing=!1,this.noReserialize=!1}disconnectedCallback(){super.disconnectedCallback(),this.ready=null}get quads(){return this[cue]}set quads(r){if(typeof r>"u"||r===null)return;const o=this[cue];this[cue]=r,this.requestUpdate("quads",o)}async updated(r){super.updated(r);let o=!1,l=!1;const u=this.quads&&this.quads.length>0;r.has("format")&&(o=u&&!this.noReserialize,l=!o),r.has("quads")&&(o=!0),(r.has("prefixes")||r.has("customPrefixes"))&&(o=u),l?this.parse():o&&this.__serialize()}async _parse(){const{toStream:r}=await C0(async()=>{const{toStream:h}=await import("./stream-C_f__s1m.js");return{toStream:h}},[]),o=r(this.value),l=[],u={},d=this.$rdf.formats.parsers.import(this.format,o);if(!d){this.dispatchEvent(new CustomEvent("parsing-failed",{detail:{notFound:!0}}));return}d.on("prefix",(h,w)=>{u[h]=w});for await(const h of d)l.push(h);this[cue]=l,this.dispatchEvent(new CustomEvent("quads-changed",{detail:{value:l}})),this.__notifyParsedPrefixes(u)}async __serialize(){if(!this.format)return;await this.ready;const{Readable:r}=await C0(async()=>{const{Readable:h}=await import("./stream-C_f__s1m.js");return{Readable:h}},[]),o=[...this.quads||[]],l=new r({objectMode:!0,read(){if(o.length===0){this.push(null);return}this.push(o.shift())}}),u=this.$rdf.formats.serializers.import(this.format,l,{prefixes:await this._combinePrefixes()});if(!u){this.value=`No serializer found for media type ${this.format}`;return}let d="";for await(const h of u)d+=h;this.format===$S.jsonLd&&(d=JSON.stringify(JSON.parse(d),null,2)),this.value=d,this.dispatchEvent(new CustomEvent("serialized",{detail:{value:d}}))}_errorLine(r){const o={message:r.message};return r.context&&r.context.line&&(o.from={line:r.context.line-1,ch:0},o.to={line:r.context.line-1,ch:Number.MAX_SAFE_INTEGER}),o}__notifyParsedPrefixes(r){const o={},l={...r};for(const[u,d]of Object.entries(r))u in mde&&(o[u]=d,delete l[u]);this.dispatchEvent(new CustomEvent("prefixes-parsed",{detail:{prefixes:{...o,...l}}}))}};const Cnn=new WWe([rZt,tJ]);Cnn.formats.import(hv);window.customElements.define("rdf-editor",class extends LKn(Zor,Cnn){});var zpe=(n=>(n.JsonLD="application/ld+json",n.Trig="application/trig",n.NQuads="application/n-quads",n.NTriples="application/n-triples",n.Turtle="text/turtle",n.RdfXML="application/rdf+xml",n))(zpe||{});const DR=[{contentType:"text/turtle",name:"Turtle",type:"text/turtle"},{contentType:"application/ld+json",name:"JSON-LD",type:"application/ld+json"},{contentType:"application/trig",name:"TriG",type:"application/trig"},{contentType:"application/n-quads",name:"N-Quads",type:"application/n-quads"},{contentType:"application/n-triples",name:"N-Triples",type:"application/n-triples"},{contentType:"application/rdf+xml",name:"RDF/XML",type:"application/rdf+xml"}],eUe="com.zazuko.sketch",Hfe=`${eUe}.text`,Ufe=`${eUe}.format`,cNe=`${eUe}.prefix`,esr=5e3,tsr={class:"editor-container"},nsr=[".value","format","customPrefixes"],hWt="rdf,rdfs,sh",rsr=Ka({__name:"RdfEditor",props:{format:{}},emits:["change","format-change"],setup(n,{emit:r}){const o=n,l=r,u=Fo([]),d=Fo(null),h=Fo(zpe.Turtle);Zs(()=>o.format,C=>{C!==h.value&&(h.value=C)});const w=Fo("");function v(C){console.error("Parsing failed",C.detail)}function y(C){var L,H;const R=(H=(L=d.value)==null?void 0:L.codeMirror)==null?void 0:H.value,O=C.detail.value,M={quads:O,rdfText:R,serializationFormat:o.format,prefix:u.value};O.length{const C={};return u.value.forEach(R=>{typeof R.uri=="string"?C[R.prefix]=R.uri:C[R.prefix]=R.uri.value}),hWt.split(",").forEach(R=>{delete C[R]}),C});return sm(()=>{const C=localStorage.getItem(Hfe),R=localStorage.getItem(Ufe),O=JSON.parse(localStorage.getItem(cNe)??"[]");C&&R&&DR.find(M=>M.type===R)&&Array.isArray(O)?(w.value=C,h.value=(DR.find(M=>M.type===R)??DR[0]).type,u.value=O,l("format-change",h.value)):(localStorage.removeItem(Hfe),localStorage.removeItem(Ufe),localStorage.removeItem(cNe))}),(C,R)=>(ze(),Lt("div",tsr,[mr("rdf-editor",{".value":w.value,format:h.value,ref_key:"editorElement",ref:d,prefixes:hWt,customPrefixes:A.value,"auto-parse":"",parseDelay:"1000",onParsingFailed:v,onQuadsChanged:y,onPrefixesParsed:E},null,40,nsr)]))}}),hJ=(n,r)=>{const o=n.__vccOpts||n;for(const[l,u]of r)o[l]=u;return o},isr=hJ(rsr,[["__scopeId","data-v-abcbd41c"]]);function pWt({parent:n,child:r}){return new Proxy({},{get(l,u){return r[u]||n[u]},set(l,u,d){return r[u]=d,!0},has(l,u){return u in r||u in n},ownKeys(){const l=Object.getOwnPropertyNames(n),u=Object.getOwnPropertyNames(r);return[...new Set([...l,...u]).values()]},getOwnPropertyDescriptor(l,u){return{enumerable:!u.toString().startsWith("_"),configurable:!0}}})}class EX{constructor(r,{parent:o,bind:l=!1}={}){if(this._parent=o,r instanceof WWe||r instanceof EX)return pWt({parent:o,child:r});this._factories=r.slice();const u=o?pWt({parent:o,child:this}):this;for(const d of this._factories){typeof d.prototype.init=="function"&&d.prototype.init.call(u);for(const h of d.exports||[])l?this[h]=d.prototype[h].bind(u):this[h]=d.prototype[h]}return u}clone(){const r=new EX(this._factories,this._parent);for(const o of r._factories)typeof o.prototype.clone=="function"&&o.prototype.clone.call(r,this);return r}}const{Readable:osr}=oHe;function ssr(n){const r=n[Symbol.iterator](),o=new osr({objectMode:!0,read:()=>{for(;;){const l=r.next().value;if(!l){o.push(null);return}if(!o.push(l))return}}});return o}var lsr=ssr;const Ann=cv(lsr);var Tnn={},$nn={},Inn=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},o=Symbol("test"),l=Object(o);if(typeof o=="string"||Object.prototype.toString.call(o)!=="[object Symbol]"||Object.prototype.toString.call(l)!=="[object Symbol]")return!1;var u=42;r[o]=u;for(o in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var d=Object.getOwnPropertySymbols(r);if(d.length!==1||d[0]!==o||!Object.prototype.propertyIsEnumerable.call(r,o))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var h=Object.getOwnPropertyDescriptor(r,o);if(h.value!==u||h.enumerable!==!0)return!1}return!0},asr=Inn,tUe=function(){return asr()&&!!Symbol.toStringTag},csr=Error,usr=EvalError,fsr=RangeError,dsr=ReferenceError,Pnn=SyntaxError,Kpe=TypeError,hsr=URIError,bWt=typeof Symbol<"u"&&Symbol,psr=Inn,bsr=function(){return typeof bWt!="function"||typeof Symbol!="function"||typeof bWt("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:psr()},uNe={__proto__:null,foo:{}},gsr=Object,wsr=function(){return{__proto__:uNe}.foo===uNe.foo&&!(uNe instanceof gsr)},msr="Function.prototype.bind called on incompatible ",ysr=Object.prototype.toString,vsr=Math.max,_sr="[object Function]",gWt=function(r,o){for(var l=[],u=0;u"u"||!up?Fl:up(Uint8Array),iP={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Fl:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Fl:ArrayBuffer,"%ArrayIteratorPrototype%":sD&&up?up([][Symbol.iterator]()):Fl,"%AsyncFromSyncIteratorPrototype%":Fl,"%AsyncFunction%":SD,"%AsyncGenerator%":SD,"%AsyncGeneratorFunction%":SD,"%AsyncIteratorPrototype%":SD,"%Atomics%":typeof Atomics>"u"?Fl:Atomics,"%BigInt%":typeof BigInt>"u"?Fl:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Fl:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Fl:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Fl:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":$sr,"%eval%":eval,"%EvalError%":Isr,"%Float32Array%":typeof Float32Array>"u"?Fl:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Fl:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Fl:FinalizationRegistry,"%Function%":Onn,"%GeneratorFunction%":SD,"%Int8Array%":typeof Int8Array>"u"?Fl:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Fl:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Fl:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":sD&&up?up(up([][Symbol.iterator]())):Fl,"%JSON%":typeof JSON=="object"?JSON:Fl,"%Map%":typeof Map>"u"?Fl:Map,"%MapIteratorPrototype%":typeof Map>"u"||!sD||!up?Fl:up(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Fl:Promise,"%Proxy%":typeof Proxy>"u"?Fl:Proxy,"%RangeError%":Psr,"%ReferenceError%":Osr,"%Reflect%":typeof Reflect>"u"?Fl:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Fl:Set,"%SetIteratorPrototype%":typeof Set>"u"||!sD||!up?Fl:up(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Fl:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":sD&&up?up(""[Symbol.iterator]()):Fl,"%Symbol%":sD?Symbol:Fl,"%SyntaxError%":FL,"%ThrowTypeError%":Msr,"%TypedArray%":Lsr,"%TypeError%":iL,"%Uint8Array%":typeof Uint8Array>"u"?Fl:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Fl:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Fl:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Fl:Uint32Array,"%URIError%":Nsr,"%WeakMap%":typeof WeakMap>"u"?Fl:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Fl:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Fl:WeakSet};if(up)try{null.error}catch(n){var jsr=up(up(n));iP["%Error.prototype%"]=jsr}var Fsr=function n(r){var o;if(r==="%AsyncFunction%")o=fNe("async function () {}");else if(r==="%GeneratorFunction%")o=fNe("function* () {}");else if(r==="%AsyncGeneratorFunction%")o=fNe("async function* () {}");else if(r==="%AsyncGenerator%"){var l=n("%AsyncGeneratorFunction%");l&&(o=l.prototype)}else if(r==="%AsyncIteratorPrototype%"){var u=n("%AsyncGenerator%");u&&up&&(o=up(u.prototype))}return iP[r]=o,o},wWt={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},pJ=nUe,Kde=Tsr,Bsr=pJ.call(Function.call,Array.prototype.concat),Wsr=pJ.call(Function.apply,Array.prototype.splice),mWt=pJ.call(Function.call,String.prototype.replace),qde=pJ.call(Function.call,String.prototype.slice),Hsr=pJ.call(Function.call,RegExp.prototype.exec),Usr=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Gsr=/\\(\\)?/g,Vsr=function(r){var o=qde(r,0,1),l=qde(r,-1);if(o==="%"&&l!=="%")throw new FL("invalid intrinsic syntax, expected closing `%`");if(l==="%"&&o!=="%")throw new FL("invalid intrinsic syntax, expected opening `%`");var u=[];return mWt(r,Usr,function(d,h,w,v){u[u.length]=w?mWt(v,Gsr,"$1"):h||d}),u},zsr=function(r,o){var l=r,u;if(Kde(wWt,l)&&(u=wWt[l],l="%"+u[0]+"%"),Kde(iP,l)){var d=iP[l];if(d===SD&&(d=Fsr(l)),typeof d>"u"&&!o)throw new iL("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:u,name:l,value:d}}throw new FL("intrinsic "+r+" does not exist!")},bJ=function(r,o){if(typeof r!="string"||r.length===0)throw new iL("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof o!="boolean")throw new iL('"allowMissing" argument must be a boolean');if(Hsr(/^%?[^%]*%?$/,r)===null)throw new FL("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var l=Vsr(r),u=l.length>0?l[0]:"",d=zsr("%"+u+"%",o),h=d.name,w=d.value,v=!1,y=d.alias;y&&(u=y[0],Wsr(l,Bsr([0,1],y)));for(var E=1,A=!0;E=l.length){var M=rP(w,C);A=!!M,A&&"get"in M&&!("originalValue"in M.get)?w=M.get:w=w[C]}else A=Kde(w,C),w=w[C];A&&!v&&(iP[h]=w)}}return w},Nnn={exports:{}},hNe,yWt;function rUe(){if(yWt)return hNe;yWt=1;var n=bJ,r=n("%Object.defineProperty%",!0)||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}return hNe=r,hNe}var Ksr=bJ,Gfe=Ksr("%Object.getOwnPropertyDescriptor%",!0);if(Gfe)try{Gfe([],"length")}catch{Gfe=null}var iUe=Gfe,vWt=rUe(),qsr=Pnn,lD=Kpe,_Wt=iUe,Xsr=function(r,o,l){if(!r||typeof r!="object"&&typeof r!="function")throw new lD("`obj` must be an object or a function`");if(typeof o!="string"&&typeof o!="symbol")throw new lD("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new lD("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new lD("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new lD("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new lD("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,d=arguments.length>4?arguments[4]:null,h=arguments.length>5?arguments[5]:null,w=arguments.length>6?arguments[6]:!1,v=!!_Wt&&_Wt(r,o);if(vWt)vWt(r,o,{configurable:h===null&&v?v.configurable:!h,enumerable:u===null&&v?v.enumerable:!u,value:l,writable:d===null&&v?v.writable:!d});else if(w||!u&&!d&&!h)r[o]=l;else throw new qsr("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Eje=rUe(),Mnn=function(){return!!Eje};Mnn.hasArrayLengthDefineBug=function(){if(!Eje)return null;try{return Eje([],"length",{value:1}).length!==1}catch{return!0}};var Jsr=Mnn,Ysr=bJ,SWt=Xsr,Qsr=Jsr(),EWt=iUe,kWt=Kpe,Zsr=Ysr("%Math.floor%"),elr=function(r,o){if(typeof r!="function")throw new kWt("`fn` is not a function");if(typeof o!="number"||o<0||o>4294967295||Zsr(o)!==o)throw new kWt("`length` must be a positive 32-bit integer");var l=arguments.length>2&&!!arguments[2],u=!0,d=!0;if("length"in r&&EWt){var h=EWt(r,"length");h&&!h.configurable&&(u=!1),h&&!h.writable&&(d=!1)}return(u||d||!l)&&(Qsr?SWt(r,"length",o,!0,!0):SWt(r,"length",o)),r};(function(n){var r=nUe,o=bJ,l=elr,u=Kpe,d=o("%Function.prototype.apply%"),h=o("%Function.prototype.call%"),w=o("%Reflect.apply%",!0)||r.call(h,d),v=rUe(),y=o("%Math.max%");n.exports=function(C){if(typeof C!="function")throw new u("a function is required");var R=w(r,h,arguments);return l(R,1+y(0,C.length-(arguments.length-1)),!0)};var E=function(){return w(r,d,arguments)};v?v(n.exports,"apply",{value:E}):n.exports.apply=E})(Nnn);var Dnn=Nnn.exports,Lnn=bJ,jnn=Dnn,tlr=jnn(Lnn("String.prototype.indexOf")),Fnn=function(r,o){var l=Lnn(r,!!o);return typeof l=="function"&&tlr(r,".prototype.")>-1?jnn(l):l},nlr=tUe(),rlr=Fnn,kje=rlr("Object.prototype.toString"),qpe=function(r){return nlr&&r&&typeof r=="object"&&Symbol.toStringTag in r?!1:kje(r)==="[object Arguments]"},Bnn=function(r){return qpe(r)?!0:r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&kje(r)!=="[object Array]"&&kje(r.callee)==="[object Function]"},ilr=function(){return qpe(arguments)}();qpe.isLegacyArguments=Bnn;var olr=ilr?qpe:Bnn,slr=Object.prototype.toString,llr=Function.prototype.toString,alr=/^\s*(?:function)?\*/,Wnn=tUe(),pNe=Object.getPrototypeOf,clr=function(){if(!Wnn)return!1;try{return Function("return function*() {}")()}catch{}},bNe,ulr=function(r){if(typeof r!="function")return!1;if(alr.test(llr.call(r)))return!0;if(!Wnn){var o=slr.call(r);return o==="[object GeneratorFunction]"}if(!pNe)return!1;if(typeof bNe>"u"){var l=clr();bNe=l?pNe(l):!1}return pNe(r)===bNe},Hnn=Function.prototype.toString,WD=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Rje,Vfe;if(typeof WD=="function"&&typeof Object.defineProperty=="function")try{Rje=Object.defineProperty({},"length",{get:function(){throw Vfe}}),Vfe={},WD(function(){throw 42},null,Rje)}catch(n){n!==Vfe&&(WD=null)}else WD=null;var flr=/^\s*class\b/,xje=function(r){try{var o=Hnn.call(r);return flr.test(o)}catch{return!1}},gNe=function(r){try{return xje(r)?!1:(Hnn.call(r),!0)}catch{return!1}},zfe=Object.prototype.toString,dlr="[object Object]",hlr="[object Function]",plr="[object GeneratorFunction]",blr="[object HTMLAllCollection]",glr="[object HTML document.all class]",wlr="[object HTMLCollection]",mlr=typeof Symbol=="function"&&!!Symbol.toStringTag,ylr=!(0 in[,]),Cje=function(){return!1};if(typeof document=="object"){var vlr=document.all;zfe.call(vlr)===zfe.call(document.all)&&(Cje=function(r){if((ylr||!r)&&(typeof r>"u"||typeof r=="object"))try{var o=zfe.call(r);return(o===blr||o===glr||o===wlr||o===dlr)&&r("")==null}catch{}return!1})}var _lr=WD?function(r){if(Cje(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;try{WD(r,null,Rje)}catch(o){if(o!==Vfe)return!1}return!xje(r)&&gNe(r)}:function(r){if(Cje(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;if(mlr)return gNe(r);if(xje(r))return!1;var o=zfe.call(r);return o!==hlr&&o!==plr&&!/^\[object HTML/.test(o)?!1:gNe(r)},Slr=_lr,Elr=Object.prototype.toString,Unn=Object.prototype.hasOwnProperty,klr=function(r,o,l){for(var u=0,d=r.length;u=3&&(u=l),Elr.call(r)==="[object Array]"?klr(r,o,u):typeof r=="string"?Rlr(r,o,u):xlr(r,o,u)},Alr=Clr,Tlr=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],wNe=Tlr,$lr=typeof globalThis>"u"?window:globalThis,Ilr=function(){for(var r=[],o=0;o"u"?window:globalThis,Aje=Plr(),sUe=oUe("String.prototype.slice"),mNe=Object.getPrototypeOf,Nlr=oUe("Array.prototype.indexOf",!0)||function(r,o){for(var l=0;l-1?o:o!=="Object"?!1:Dlr(r)}return Kfe?Mlr(r):null},Llr=Vnn,jlr=function(r){return!!Llr(r)};(function(n){var r=olr,o=ulr,l=Vnn,u=jlr;function d(Re){return Re.call.bind(Re)}var h=typeof BigInt<"u",w=typeof Symbol<"u",v=d(Object.prototype.toString),y=d(Number.prototype.valueOf),E=d(String.prototype.valueOf),A=d(Boolean.prototype.valueOf);if(h)var C=d(BigInt.prototype.valueOf);if(w)var R=d(Symbol.prototype.valueOf);function O(Re,Ie){if(typeof Re!="object")return!1;try{return Ie(Re),!0}catch{return!1}}n.isArgumentsObject=r,n.isGeneratorFunction=o,n.isTypedArray=u;function M(Re){return typeof Promise<"u"&&Re instanceof Promise||Re!==null&&typeof Re=="object"&&typeof Re.then=="function"&&typeof Re.catch=="function"}n.isPromise=M;function L(Re){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(Re):u(Re)||re(Re)}n.isArrayBufferView=L;function H(Re){return l(Re)==="Uint8Array"}n.isUint8Array=H;function G(Re){return l(Re)==="Uint8ClampedArray"}n.isUint8ClampedArray=G;function j(Re){return l(Re)==="Uint16Array"}n.isUint16Array=j;function Q(Re){return l(Re)==="Uint32Array"}n.isUint32Array=Q;function te(Re){return l(Re)==="Int8Array"}n.isInt8Array=te;function pe(Re){return l(Re)==="Int16Array"}n.isInt16Array=pe;function Le(Re){return l(Re)==="Int32Array"}n.isInt32Array=Le;function Ee(Re){return l(Re)==="Float32Array"}n.isFloat32Array=Ee;function le(Re){return l(Re)==="Float64Array"}n.isFloat64Array=le;function xe(Re){return l(Re)==="BigInt64Array"}n.isBigInt64Array=xe;function be(Re){return l(Re)==="BigUint64Array"}n.isBigUint64Array=be;function ae(Re){return v(Re)==="[object Map]"}ae.working=typeof Map<"u"&&ae(new Map);function F(Re){return typeof Map>"u"?!1:ae.working?ae(Re):Re instanceof Map}n.isMap=F;function me(Re){return v(Re)==="[object Set]"}me.working=typeof Set<"u"&&me(new Set);function ye(Re){return typeof Set>"u"?!1:me.working?me(Re):Re instanceof Set}n.isSet=ye;function we(Re){return v(Re)==="[object WeakMap]"}we.working=typeof WeakMap<"u"&&we(new WeakMap);function Be(Re){return typeof WeakMap>"u"?!1:we.working?we(Re):Re instanceof WeakMap}n.isWeakMap=Be;function He(Re){return v(Re)==="[object WeakSet]"}He.working=typeof WeakSet<"u"&&He(new WeakSet);function Ue(Re){return He(Re)}n.isWeakSet=Ue;function Ge(Re){return v(Re)==="[object ArrayBuffer]"}Ge.working=typeof ArrayBuffer<"u"&&Ge(new ArrayBuffer);function Me(Re){return typeof ArrayBuffer>"u"?!1:Ge.working?Ge(Re):Re instanceof ArrayBuffer}n.isArrayBuffer=Me;function vt(Re){return v(Re)==="[object DataView]"}vt.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&vt(new DataView(new ArrayBuffer(1),0,1));function re(Re){return typeof DataView>"u"?!1:vt.working?vt(Re):Re instanceof DataView}n.isDataView=re;var Te=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function ct(Re){return v(Re)==="[object SharedArrayBuffer]"}function at(Re){return typeof Te>"u"?!1:(typeof ct.working>"u"&&(ct.working=ct(new Te)),ct.working?ct(Re):Re instanceof Te)}n.isSharedArrayBuffer=at;function Ye(Re){return v(Re)==="[object AsyncFunction]"}n.isAsyncFunction=Ye;function mt(Re){return v(Re)==="[object Map Iterator]"}n.isMapIterator=mt;function jt(Re){return v(Re)==="[object Set Iterator]"}n.isSetIterator=jt;function rn(Re){return v(Re)==="[object Generator]"}n.isGeneratorObject=rn;function Pe(Re){return v(Re)==="[object WebAssembly.Module]"}n.isWebAssemblyCompiledModule=Pe;function Oe(Re){return O(Re,y)}n.isNumberObject=Oe;function T(Re){return O(Re,E)}n.isStringObject=T;function $(Re){return O(Re,A)}n.isBooleanObject=$;function B(Re){return h&&O(Re,C)}n.isBigIntObject=B;function K(Re){return w&&O(Re,R)}n.isSymbolObject=K;function q(Re){return Oe(Re)||T(Re)||$(Re)||B(Re)||K(Re)}n.isBoxedPrimitive=q;function ke(Re){return typeof Uint8Array<"u"&&(Me(Re)||at(Re))}n.isAnyArrayBuffer=ke,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(Re){Object.defineProperty(n,Re,{enumerable:!1,value:function(){throw new Error(Re+" is not supported in userland")}})})})($nn);var Flr=function(r){return r&&typeof r=="object"&&typeof r.copy=="function"&&typeof r.fill=="function"&&typeof r.readUInt8=="function"};(function(n){var r={},o=Object.getOwnPropertyDescriptors||function(Te){for(var ct=Object.keys(Te),at={},Ye=0;Ye=Ye)return rn;switch(rn){case"%s":return String(at[ct++]);case"%d":return Number(at[ct++]);case"%j":try{return JSON.stringify(at[ct++])}catch{return"[Circular]"}default:return rn}}),jt=at[ct];ct"u")return function(){return n.deprecate(re,Te).apply(this,arguments)};var ct=!1;function at(){if(!ct){if(Wl.throwDeprecation)throw new Error(Te);Wl.traceDeprecation?console.trace(Te):console.error(Te),ct=!0}return re.apply(this,arguments)}return at};var u={},d=/^$/;if(r.NODE_DEBUG){var h=r.NODE_DEBUG;h=h.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),d=new RegExp("^"+h+"$","i")}n.debuglog=function(re){if(re=re.toUpperCase(),!u[re])if(d.test(re)){var Te=Wl.pid;u[re]=function(){var ct=n.format.apply(n,arguments);console.error("%s %d: %s",re,Te,ct)}}else u[re]=function(){};return u[re]};function w(re,Te){var ct={seen:[],stylize:y};return arguments.length>=3&&(ct.depth=arguments[2]),arguments.length>=4&&(ct.colors=arguments[3]),G(Te)?ct.showHidden=Te:Te&&n._extend(ct,Te),Ee(ct.showHidden)&&(ct.showHidden=!1),Ee(ct.depth)&&(ct.depth=2),Ee(ct.colors)&&(ct.colors=!1),Ee(ct.customInspect)&&(ct.customInspect=!0),ct.colors&&(ct.stylize=v),A(ct,re,ct.depth)}n.inspect=w,w.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},w.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function v(re,Te){var ct=w.styles[Te];return ct?"\x1B["+w.colors[ct][0]+"m"+re+"\x1B["+w.colors[ct][1]+"m":re}function y(re,Te){return re}function E(re){var Te={};return re.forEach(function(ct,at){Te[ct]=!0}),Te}function A(re,Te,ct){if(re.customInspect&&Te&&F(Te.inspect)&&Te.inspect!==n.inspect&&!(Te.constructor&&Te.constructor.prototype===Te)){var at=Te.inspect(ct,re);return pe(at)||(at=A(re,at,ct)),at}var Ye=C(re,Te);if(Ye)return Ye;var mt=Object.keys(Te),jt=E(mt);if(re.showHidden&&(mt=Object.getOwnPropertyNames(Te)),ae(Te)&&(mt.indexOf("message")>=0||mt.indexOf("description")>=0))return R(Te);if(mt.length===0){if(F(Te)){var rn=Te.name?": "+Te.name:"";return re.stylize("[Function"+rn+"]","special")}if(le(Te))return re.stylize(RegExp.prototype.toString.call(Te),"regexp");if(be(Te))return re.stylize(Date.prototype.toString.call(Te),"date");if(ae(Te))return R(Te)}var Pe="",Oe=!1,T=["{","}"];if(H(Te)&&(Oe=!0,T=["[","]"]),F(Te)){var $=Te.name?": "+Te.name:"";Pe=" [Function"+$+"]"}if(le(Te)&&(Pe=" "+RegExp.prototype.toString.call(Te)),be(Te)&&(Pe=" "+Date.prototype.toUTCString.call(Te)),ae(Te)&&(Pe=" "+R(Te)),mt.length===0&&(!Oe||Te.length==0))return T[0]+Pe+T[1];if(ct<0)return le(Te)?re.stylize(RegExp.prototype.toString.call(Te),"regexp"):re.stylize("[Object]","special");re.seen.push(Te);var B;return Oe?B=O(re,Te,ct,jt,mt):B=mt.map(function(K){return M(re,Te,ct,jt,K,Oe)}),re.seen.pop(),L(B,Pe,T)}function C(re,Te){if(Ee(Te))return re.stylize("undefined","undefined");if(pe(Te)){var ct="'"+JSON.stringify(Te).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return re.stylize(ct,"string")}if(te(Te))return re.stylize(""+Te,"number");if(G(Te))return re.stylize(""+Te,"boolean");if(j(Te))return re.stylize("null","null")}function R(re){return"["+Error.prototype.toString.call(re)+"]"}function O(re,Te,ct,at,Ye){for(var mt=[],jt=0,rn=Te.length;jt-1&&(mt?rn=rn.split(` -`).map(function(Oe){return" "+Oe}).join(` -`).slice(2):rn=` -`+rn.split(` -`).map(function(Oe){return" "+Oe}).join(` -`))):rn=re.stylize("[Circular]","special")),Ee(jt)){if(mt&&Ye.match(/^\d+$/))return rn;jt=JSON.stringify(""+Ye),jt.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(jt=jt.slice(1,-1),jt=re.stylize(jt,"name")):(jt=jt.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),jt=re.stylize(jt,"string"))}return jt+": "+rn}function L(re,Te,ct){var at=re.reduce(function(Ye,mt){return mt.indexOf(` -`)>=0,Ye+mt.replace(/\u001b\[\d\d?m/g,"").length+1},0);return at>60?ct[0]+(Te===""?"":Te+` + `}async parse(){if(!this.isParsing){this.__errorMarker&&this.__errorMarker.clear(),this.isParsing=!0;try{await this._parse()}catch(r){typeof this._errorLine=="function"&&await this.__highlightError(this._errorLine(r)),this.dispatchEvent(new CustomEvent("parsing-failed",{detail:{error:r}}))}finally{this.isParsing=!1}}}async _initializeCodeMirror(){this.codeMirror.editor.setSize("100%","100%"),this.__setParseHandler(),this.codeMirror.editor.on("change",()=>{this[dNe]=!0})}__setParseHandler(){this.codeMirror.editor&&(this[ER]&&(this.codeMirror.editor.off("blur",this[ER]),this.codeMirror.editor.off("change",this[ER])),this.autoParse?(this[ER]=rsr(this.parseDelay,this.__beginParse.bind(this)),this.codeMirror.editor.on("change",this[ER])):(this[ER]=this.__beginParse.bind(this),this.codeMirror.editor.on("blur",this[ER])))}async __beginParse(){this[dNe]&&await this.parse(),this[dNe]=!1}async __highlightError(r){if(!this.ready)return;let o={line:0,ch:0},l={line:0,ch:Number.MAX_SAFE_INTEGER};r&&r.from&&(o=r.from,this.codeMirror.editor.scrollIntoView(o)),r&&r.to&&(l=r.to);const u=r?r.message:"";await this.ready,this.__errorMarker=this.codeMirror.editor.getDoc().markText(o,l,{attributes:{part:"error",title:u}})}async _combinePrefixes(){return Object.entries(this.customPrefixes).reduce((r,[o,l])=>!l||!o||typeof l!="string"||typeof o!="string"?r:{...r,[o]:l},await this._prefixes())}}window.CodeMirror.defineMode("javascript",function(n,r){var o=n.indentUnit,l=r.statementIndent,u=r.jsonld,d=r.json||u,h=r.typescript,w=r.wordCharacters||/[\w$\xa1-\uffff]/,v=function(){function We(Th){return{type:Th,style:"keyword"}}var gt=We("keyword a"),Mn=We("keyword b"),yr=We("keyword c"),Wo=We("keyword d"),el=We("operator"),Pa={type:"atom",style:"atom"};return{if:We("if"),while:gt,with:gt,else:Mn,do:Mn,try:Mn,finally:Mn,return:Wo,break:Wo,continue:Wo,new:We("new"),delete:yr,void:yr,throw:yr,debugger:We("debugger"),var:We("var"),const:We("var"),let:We("var"),function:We("function"),catch:We("catch"),for:We("for"),switch:We("switch"),case:We("case"),default:We("default"),in:el,typeof:el,instanceof:el,true:Pa,false:Pa,null:Pa,undefined:Pa,NaN:Pa,Infinity:Pa,this:We("this"),class:We("class"),super:We("atom"),yield:yr,export:We("export"),import:We("import"),extends:yr,await:yr}}(),y=/[+\-*&%=<>!?|~^@]/,E=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function A(We){for(var gt=!1,Mn,yr=!1;(Mn=We.next())!=null;){if(!gt){if(Mn=="/"&&!yr)return;Mn=="["?yr=!0:yr&&Mn=="]"&&(yr=!1)}gt=!gt&&Mn=="\\"}}var C,R;function O(We,gt,Mn){return C=We,R=Mn,gt}function M(We,gt){var Mn=We.next();if(Mn=='"'||Mn=="'")return gt.tokenize=L(Mn),gt.tokenize(We,gt);if(Mn=="."&&We.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return O("number","number");if(Mn=="."&&We.match(".."))return O("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(Mn))return O(Mn);if(Mn=="="&&We.eat(">"))return O("=>","operator");if(Mn=="0"&&We.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return O("number","number");if(/\d/.test(Mn))return We.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),O("number","number");if(Mn=="/")return We.eat("*")?(gt.tokenize=H,H(We,gt)):We.eat("/")?(We.skipToEnd(),O("comment","comment")):Dj(We,gt,1)?(A(We),We.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),O("regexp","string-2")):(We.eat("="),O("operator","operator",We.current()));if(Mn=="`")return gt.tokenize=G,G(We,gt);if(Mn=="#")return We.skipToEnd(),O("error","error");if(Mn=="<"&&We.match("!--")||Mn=="-"&&We.match("->"))return We.skipToEnd(),O("comment","comment");if(y.test(Mn))return(Mn!=">"||!gt.lexical||gt.lexical.type!=">")&&(We.eat("=")?(Mn=="!"||Mn=="=")&&We.eat("="):/[<>*+\-]/.test(Mn)&&(We.eat(Mn),Mn==">"&&We.eat(Mn))),O("operator","operator",We.current());if(w.test(Mn)){We.eatWhile(w);var yr=We.current();if(gt.lastType!="."){if(v.propertyIsEnumerable(yr)){var Wo=v[yr];return O(Wo.type,Wo.style,yr)}if(yr=="async"&&We.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return O("async","keyword",yr)}return O("variable","variable",yr)}}function L(We){return function(gt,Mn){var yr=!1,Wo;if(u&>.peek()=="@"&>.match(E))return Mn.tokenize=M,O("jsonld-keyword","meta");for(;(Wo=gt.next())!=null&&!(Wo==We&&!yr);)yr=!yr&&Wo=="\\";return yr||(Mn.tokenize=M),O("string","string")}}function H(We,gt){for(var Mn=!1,yr;yr=We.next();){if(yr=="/"&&Mn){gt.tokenize=M;break}Mn=yr=="*"}return O("comment","comment")}function G(We,gt){for(var Mn=!1,yr;(yr=We.next())!=null;){if(!Mn&&(yr=="`"||yr=="$"&&We.eat("{"))){gt.tokenize=M;break}Mn=!Mn&&yr=="\\"}return O("quasi","string-2",We.current())}var j="([{}])";function Q(We,gt){gt.fatArrowAt&&(gt.fatArrowAt=null);var Mn=We.string.indexOf("=>",We.start);if(!(Mn<0)){if(h){var yr=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(We.string.slice(We.start,Mn));yr&&(Mn=yr.index)}for(var Wo=0,el=!1,Pa=Mn-1;Pa>=0;--Pa){var Th=We.string.charAt(Pa),j0=j.indexOf(Th);if(j0>=0&&j0<3){if(!Wo){++Pa;break}if(--Wo==0){Th=="("&&(el=!0);break}}else if(j0>=3&&j0<6)++Wo;else if(w.test(Th))el=!0;else if(/["'\/`]/.test(Th))for(;;--Pa){if(Pa==0)return;var qJ=We.string.charAt(Pa-1);if(qJ==Th&&We.string.charAt(Pa-2)!="\\"){Pa--;break}}else if(el&&!Wo){++Pa;break}}el&&!Wo&&(gt.fatArrowAt=Pa)}}var te={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function pe(We,gt,Mn,yr,Wo,el){this.indented=We,this.column=gt,this.type=Mn,this.prev=Wo,this.info=el,yr!=null&&(this.align=yr)}function De(We,gt){for(var Mn=We.localVars;Mn;Mn=Mn.next)if(Mn.name==gt)return!0;for(var yr=We.context;yr;yr=yr.prev)for(var Mn=yr.vars;Mn;Mn=Mn.next)if(Mn.name==gt)return!0}function Re(We,gt,Mn,yr,Wo){var el=We.cc;for(le.state=We,le.stream=Wo,le.marked=null,le.cc=el,le.style=gt,We.lexical.hasOwnProperty("align")||(We.lexical.align=!0);;){var Pa=el.length?el.pop():d?Qe:dt;if(Pa(Mn,yr)){for(;el.length&&el[el.length-1].lex;)el.pop()();return le.marked?le.marked:Mn=="variable"&&De(We,yr)?"variable-2":gt}}}var le={state:null,column:null,marked:null,cc:null};function xe(){for(var We=arguments.length-1;We>=0;We--)le.cc.push(arguments[We])}function be(){return xe.apply(null,arguments),!0}function ae(We,gt){for(var Mn=gt;Mn;Mn=Mn.next)if(Mn.name==We)return!0;return!1}function F(We){var gt=le.state;if(le.marked="def",gt.context){if(gt.lexical.info=="var"&>.context&>.context.block){var Mn=me(We,gt.context);if(Mn!=null){gt.context=Mn;return}}else if(!ae(We,gt.localVars)){gt.localVars=new Be(We,gt.localVars);return}}r.globalVars&&!ae(We,gt.globalVars)&&(gt.globalVars=new Be(We,gt.globalVars))}function me(We,gt){if(gt)if(gt.block){var Mn=me(We,gt.prev);return Mn?Mn==gt.prev?gt:new we(Mn,gt.vars,!0):null}else return ae(We,gt.vars)?gt:new we(gt.prev,new Be(We,gt.vars),!1);else return null}function ye(We){return We=="public"||We=="private"||We=="protected"||We=="abstract"||We=="readonly"}function we(We,gt,Mn){this.prev=We,this.vars=gt,this.block=Mn}function Be(We,gt){this.name=We,this.next=gt}var He=new Be("this",new Be("arguments",null));function Ue(){le.state.context=new we(le.state.context,le.state.localVars,!1),le.state.localVars=He}function Ge(){le.state.context=new we(le.state.context,le.state.localVars,!0),le.state.localVars=null}function Le(){le.state.localVars=le.state.context.vars,le.state.context=le.state.context.prev}Le.lex=!0;function ft(We,gt){var Mn=function(){var yr=le.state,Wo=yr.indented;if(yr.lexical.type=="stat")Wo=yr.lexical.indented;else for(var el=yr.lexical;el&&el.type==")"&&el.align;el=el.prev)Wo=el.indented;yr.lexical=new pe(Wo,le.stream.column(),We,null,yr.lexical,gt)};return Mn.lex=!0,Mn}function re(){var We=le.state;We.lexical.prev&&(We.lexical.type==")"&&(We.indented=We.lexical.indented),We.lexical=We.lexical.prev)}re.lex=!0;function Te(We){function gt(Mn){return Mn==We?be():We==";"||Mn=="}"||Mn==")"||Mn=="]"?xe():be(gt)}return gt}function dt(We,gt){return We=="var"?be(ft("vardef",gt),Al,Te(";"),re):We=="keyword a"?be(ft("form"),Lt,dt,re):We=="keyword b"?be(ft("form"),dt,re):We=="keyword d"?le.stream.match(/^\s*$/,!1)?be():be(ft("stat"),Pe,Te(";"),re):We=="debugger"?be(Te(";")):We=="{"?be(ft("}"),Ge,ce,re,Le):We==";"?be():We=="if"?(le.state.lexical.info=="else"&&le.state.cc[le.state.cc.length-1]==re&&le.state.cc.pop()(),be(ft("form"),Lt,dt,re,S)):We=="function"?be(ue):We=="for"?be(ft("form"),x,dt,re):We=="class"||h&>=="interface"?(le.marked="keyword",be(ft("form",We=="class"?We:gt),Hl,re)):We=="variable"?h&>=="declare"?(le.marked="keyword",be(dt)):h&&(gt=="module"||gt=="enum"||gt=="type")&&le.stream.match(/^\s*\w/,!1)?(le.marked="keyword",gt=="enum"?be(XT):gt=="type"?be(An,Te("operator"),Qt,Te(";")):be(ft("form"),co,Te("{"),ft("}"),ce,re,re)):h&>=="namespace"?(le.marked="keyword",be(ft("form"),Qe,dt,re)):h&>=="abstract"?(le.marked="keyword",be(dt)):be(ft("stat"),_t):We=="switch"?be(ft("form"),Lt,Te("{"),ft("}","switch"),Ge,ce,re,re,Le):We=="case"?be(Qe,Te(":")):We=="default"?be(Te(":")):We=="catch"?be(ft("form"),Ue,at,dt,re,Le):We=="export"?be(ft("stat"),gs,re):We=="import"?be(ft("stat"),ws,re):We=="async"?be(dt):gt=="@"?be(Qe,dt):xe(ft("stat"),Qe,Te(";"),re)}function at(We){if(We=="(")return be(Ws,Te(")"))}function Qe(We,gt){return nn(We,gt,!1)}function yt(We,gt){return nn(We,gt,!0)}function Lt(We){return We!="("?xe():be(ft(")"),Qe,Te(")"),re)}function nn(We,gt,Mn){if(le.state.fatArrowAt==le.stream.start){var yr=Mn?q:K;if(We=="(")return be(Ue,ft(")"),Gn(Ws,")"),re,Te("=>"),yr,Le);if(We=="variable")return xe(Ue,co,Te("=>"),yr,Le)}var Wo=Mn?T:Ne;return te.hasOwnProperty(We)?be(Wo):We=="function"?be(ue,Wo):We=="class"||h&>=="interface"?(le.marked="keyword",be(ft("form"),Fr,re)):We=="keyword c"||We=="async"?be(Mn?yt:Qe):We=="("?be(ft(")"),Pe,Te(")"),re,Wo):We=="operator"||We=="spread"?be(Mn?yt:Qe):We=="["?be(ft("]"),KJ,re,Wo):We=="{"?$e(Xt,"}",null,Wo):We=="quasi"?xe($,Wo):We=="new"?be(ke(Mn)):We=="import"?be(Qe):be()}function Pe(We){return We.match(/[;\}\)\],]/)?xe():xe(Qe)}function Ne(We,gt){return We==","?be(Qe):T(We,gt,!1)}function T(We,gt,Mn){var yr=Mn==!1?Ne:T,Wo=Mn==!1?Qe:yt;if(We=="=>")return be(Ue,Mn?q:K,Le);if(We=="operator")return/\+\+|--/.test(gt)||h&>=="!"?be(yr):h&>=="<"&&le.stream.match(/^([^>]|<.*?>)*>\s*\(/,!1)?be(ft(">"),Gn(Qt,">"),re,yr):gt=="?"?be(Qe,Te(":"),Wo):be(Wo);if(We=="quasi")return xe($,yr);if(We!=";"){if(We=="(")return $e(yt,")","call",yr);if(We==".")return be(he,yr);if(We=="[")return be(ft("]"),Pe,Te("]"),re,yr);if(h&>=="as")return le.marked="keyword",be(Qt,yr);if(We=="regexp")return le.state.lastType=le.marked="operator",le.stream.backUp(le.stream.pos-le.stream.start-1),be(Wo)}}function $(We,gt){return We!="quasi"?xe():gt.slice(gt.length-2)!="${"?be($):be(Qe,B)}function B(We){if(We=="}")return le.marked="string-2",le.state.tokenize=G,be($)}function K(We){return Q(le.stream,le.state),xe(We=="{"?dt:Qe)}function q(We){return Q(le.stream,le.state),xe(We=="{"?dt:yt)}function ke(We){return function(gt){return gt=="."?be(We?Ie:Ee):gt=="variable"&&h?be(xi,We?T:Ne):xe(We?yt:Qe)}}function Ee(We,gt){if(gt=="target")return le.marked="keyword",be(Ne)}function Ie(We,gt){if(gt=="target")return le.marked="keyword",be(T)}function _t(We){return We==":"?be(re,dt):xe(Ne,Te(";"),re)}function he(We){if(We=="variable")return le.marked="property",be()}function Xt(We,gt){if(We=="async")return le.marked="property",be(Xt);if(We=="variable"||le.style=="keyword"){if(le.marked="property",gt=="get"||gt=="set")return be(Zt);var Mn;return h&&le.state.fatArrowAt==le.stream.start&&(Mn=le.stream.match(/^\s*:\s*/,!1))&&(le.state.fatArrowAt=le.stream.pos+Mn[0].length),be($n)}else{if(We=="number"||We=="string")return le.marked=u?"property":le.style+" property",be($n);if(We=="jsonld-keyword")return be($n);if(h&&ye(gt))return le.marked="keyword",be(Xt);if(We=="[")return be(Qe,de,Te("]"),$n);if(We=="spread")return be(yt,$n);if(gt=="*")return le.marked="keyword",be(Xt);if(We==":")return xe($n)}}function Zt(We){return We!="variable"?xe($n):(le.marked="property",be(ue))}function $n(We){if(We==":")return be(yt);if(We=="(")return xe(ue)}function Gn(We,gt,Mn){function yr(Wo,el){if(Mn?Mn.indexOf(Wo)>-1:Wo==","){var Pa=le.state.lexical;return Pa.info=="call"&&(Pa.pos=(Pa.pos||0)+1),be(function(Th,j0){return Th==gt||j0==gt?xe():xe(We)},yr)}return Wo==gt||el==gt?be():Mn&&Mn.indexOf(";")>-1?xe(We):be(Te(gt))}return function(Wo,el){return Wo==gt||el==gt?be():xe(We,yr)}}function $e(We,gt,Mn){for(var yr=3;yr"),Qt)}function qr(We){if(We=="=>")return be(Qt)}function ao(We,gt){if(We=="variable"||le.style=="keyword")return le.marked="property",be(ao);if(gt=="?"||We=="number"||We=="string")return be(ao);if(We==":")return be(Qt);if(We=="[")return be(Te("variable"),et,Te("]"),ao);if(We=="(")return xe(Yt,ao)}function ki(We,gt){return We=="variable"&&le.stream.match(/^\s*[?:]/,!1)||gt=="?"?be(ki):We==":"?be(Qt):We=="spread"?be(ki):xe(Qt)}function Ri(We,gt){if(gt=="<")return be(ft(">"),Gn(Qt,">"),re,Ri);if(gt=="|"||We=="."||gt=="&")return be(Qt);if(We=="[")return be(Qt,Te("]"),Ri);if(gt=="extends"||gt=="implements")return le.marked="keyword",be(Qt);if(gt=="?")return be(Qt,Te(":"),Qt)}function xi(We,gt){if(gt=="<")return be(ft(">"),Gn(Qt,">"),re,Ri)}function wl(){return xe(Qt,pu)}function pu(We,gt){if(gt=="=")return be(Qt)}function Al(We,gt){return gt=="enum"?(le.marked="keyword",be(XT)):xe(co,de,So,ql)}function co(We,gt){if(h&&ye(gt))return le.marked="keyword",be(co);if(We=="variable")return F(gt),be();if(We=="spread")return be(co);if(We=="[")return $e(bu,"]");if(We=="{")return $e(Zc,"}")}function Zc(We,gt){return We=="variable"&&!le.stream.match(/^\s*:/,!1)?(F(gt),be(So)):(We=="variable"&&(le.marked="property"),We=="spread"?be(co):We=="}"?xe():We=="["?be(Qe,Te("]"),Te(":"),Zc):be(Te(":"),co,So))}function bu(){return xe(co,So)}function So(We,gt){if(gt=="=")return be(yt)}function ql(We){if(We==",")return be(Al)}function S(We,gt){if(We=="keyword b"&>=="else")return be(ft("form","else"),dt,re)}function x(We,gt){if(gt=="await")return be(x);if(We=="(")return be(ft(")"),Y,re)}function Y(We){return We=="var"?be(Al,J):We=="variable"?be(J):xe(J)}function J(We,gt){return We==")"?be():We==";"?be(J):gt=="in"||gt=="of"?(le.marked="keyword",be(Qe,J)):xe(Qe,J)}function ue(We,gt){if(gt=="*")return le.marked="keyword",be(ue);if(We=="variable")return F(gt),be(ue);if(We=="(")return be(Ue,ft(")"),Gn(Ws,")"),re,pt,dt,Le);if(h&>=="<")return be(ft(">"),Gn(wl,">"),re,ue)}function Yt(We,gt){if(gt=="*")return le.marked="keyword",be(Yt);if(We=="variable")return F(gt),be(Yt);if(We=="(")return be(Ue,ft(")"),Gn(Ws,")"),re,pt,Le);if(h&>=="<")return be(ft(">"),Gn(wl,">"),re,Yt)}function An(We,gt){if(We=="keyword"||We=="variable")return le.marked="type",be(An);if(gt=="<")return be(ft(">"),Gn(wl,">"),re)}function Ws(We,gt){return gt=="@"&&be(Qe,Ws),We=="spread"?be(Ws):h&&ye(gt)?(le.marked="keyword",be(Ws)):h&&We=="this"?be(de,So):xe(co,de,So)}function Fr(We,gt){return We=="variable"?Hl(We,gt):Ec(We,gt)}function Hl(We,gt){if(We=="variable")return F(gt),be(Ec)}function Ec(We,gt){if(gt=="<")return be(ft(">"),Gn(wl,">"),re,Ec);if(gt=="extends"||gt=="implements"||h&&We==",")return gt=="implements"&&(le.marked="keyword"),be(h?Qt:Qe,Ec);if(We=="{")return be(ft("}"),Rs,re)}function Rs(We,gt){if(We=="async"||We=="variable"&&(gt=="static"||gt=="get"||gt=="set"||h&&ye(gt))&&le.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return le.marked="keyword",be(Rs);if(We=="variable"||le.style=="keyword")return le.marked="property",be(h?ml:ue,Rs);if(We=="number"||We=="string")return be(h?ml:ue,Rs);if(We=="[")return be(Qe,de,Te("]"),h?ml:ue,Rs);if(gt=="*")return le.marked="keyword",be(Rs);if(h&&We=="(")return xe(Yt,Rs);if(We==";"||We==",")return be(Rs);if(We=="}")return be();if(gt=="@")return be(Qe,Rs)}function ml(We,gt){if(gt=="?")return be(ml);if(We==":")return be(Qt,So);if(gt=="=")return be(yt);var Mn=le.state.lexical.prev,yr=Mn&&Mn.info=="interface";return xe(yr?Yt:ue)}function gs(We,gt){return gt=="*"?(le.marked="keyword",be(AO,Te(";"))):gt=="default"?(le.marked="keyword",be(Qe,Te(";"))):We=="{"?be(Gn(as,"}"),AO,Te(";")):xe(dt)}function as(We,gt){if(gt=="as")return le.marked="keyword",be(Te("variable"));if(We=="variable")return xe(yt,as)}function ws(We){return We=="string"?be():We=="("?xe(Qe):xe(wi,jr,AO)}function wi(We,gt){return We=="{"?$e(wi,"}"):(We=="variable"&&F(gt),gt=="*"&&(le.marked="keyword"),be(lr))}function jr(We){if(We==",")return be(wi,jr)}function lr(We,gt){if(gt=="as")return le.marked="keyword",be(wi)}function AO(We,gt){if(gt=="from")return le.marked="keyword",be(Qe)}function KJ(We){return We=="]"?be():xe(Gn(yt,"]"))}function XT(){return xe(ft("form"),co,Te("{"),ft("}"),Gn(TO,"}"),re,re)}function TO(){return xe(co,So)}function JT(We,gt){return We.lastType=="operator"||We.lastType==","||y.test(gt.charAt(0))||/[,.]/.test(gt.charAt(0))}function Dj(We,gt,Mn){return gt.tokenize==M&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(gt.lastType)||gt.lastType=="quasi"&&/\{\s*$/.test(We.string.slice(0,We.pos-(Mn||0)))}return{startState:function(We){var gt={tokenize:M,lastType:"sof",cc:[],lexical:new pe((We||0)-o,0,"block",!1),localVars:r.localVars,context:r.localVars&&new we(null,null,!1),indented:We||0};return r.globalVars&&typeof r.globalVars=="object"&&(gt.globalVars=r.globalVars),gt},token:function(We,gt){if(We.sol()&&(gt.lexical.hasOwnProperty("align")||(gt.lexical.align=!1),gt.indented=We.indentation(),Q(We,gt)),gt.tokenize!=H&&We.eatSpace())return null;var Mn=gt.tokenize(We,gt);return C=="comment"?Mn:(gt.lastType=C=="operator"&&(R=="++"||R=="--")?"incdec":C,Re(gt,Mn,C,R,We))},indent:function(We,gt){if(We.tokenize==H)return CodeMirror.Pass;if(We.tokenize!=M)return 0;var Mn=gt&>.charAt(0),yr=We.lexical,Wo;if(!/^\s*else\b/.test(gt))for(var el=We.cc.length-1;el>=0;--el){var Pa=We.cc[el];if(Pa==re)yr=yr.prev;else if(Pa!=S)break}for(;(yr.type=="stat"||yr.type=="form")&&(Mn=="}"||(Wo=We.cc[We.cc.length-1])&&(Wo==Ne||Wo==T)&&!/^[,\.=+\-*:?[\(]/.test(gt));)yr=yr.prev;l&&yr.type==")"&&yr.prev.type=="stat"&&(yr=yr.prev);var Th=yr.type,j0=Mn==Th;return Th=="vardef"?yr.indented+(We.lastType=="operator"||We.lastType==","?yr.info.length+1:0):Th=="form"&&Mn=="{"?yr.indented:Th=="form"?yr.indented+o:Th=="stat"?yr.indented+(JT(We,gt)?l||o:0):yr.info=="switch"&&!j0&&r.doubleIndentSwitch!=!1?yr.indented+(/^(?:case|default)\b/.test(gt)?o:2*o):yr.align?yr.column+(j0?0:1):yr.indented+(j0?0:o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:d?null:"/*",blockCommentEnd:d?null:"*/",blockCommentContinue:d?null:" * ",lineComment:d?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:d?"json":"javascript",jsonldMode:u,jsonMode:d,expressionAllowed:Dj,skipExpression:function(We){var gt=We.cc[We.cc.length-1];(gt==Qe||gt==yt)&&We.cc.pop()}}});CodeMirror.registerHelper("wordChars","javascript",/[\w$]/);CodeMirror.defineMIME("text/javascript","javascript");CodeMirror.defineMIME("text/ecmascript","javascript");CodeMirror.defineMIME("application/javascript","javascript");CodeMirror.defineMIME("application/x-javascript","javascript");CodeMirror.defineMIME("application/ecmascript","javascript");CodeMirror.defineMIME("application/json",{name:"javascript",json:!0});CodeMirror.defineMIME("application/x-json",{name:"javascript",json:!0});CodeMirror.defineMIME("application/ld+json",{name:"javascript",jsonld:!0});CodeMirror.defineMIME("text/typescript",{name:"javascript",typescript:!0});CodeMirror.defineMIME("application/typescript",{name:"javascript",typescript:!0});window.CodeMirror.defineMode("turtle",function(n){var r=n.indentUnit,o;function l(E){return new RegExp("^(?:"+E.join("|")+")$","i")}l([]);var u=l(["@prefix","@base","a"]),d=/[*+\-<>=&|]/;function h(E,A){var C=E.next();if(o=null,C=="<"&&!E.match(/^[\s\u00a0=]/,!1))return E.match(/^[^\s\u00a0>]*>?/),"atom";if(C=='"'||C=="'")return A.tokenize=w(C),A.tokenize(E,A);if(/[{}\(\),\.;\[\]]/.test(C))return o=C,null;if(C=="#")return E.skipToEnd(),"comment";if(d.test(C))return E.eatWhile(d),null;if(C==":")return"operator";if(E.eatWhile(/[_\w\d]/),E.peek()==":")return"variable-3";var R=E.current();return u.test(R)?"meta":C>="A"&&C<="Z"?"comment":"keyword";var R=E.current()}function w(E){return function(A,C){for(var R=!1,O;(O=A.next())!=null;){if(O==E&&!R){C.tokenize=h;break}R=!R&&O=="\\"}return"string"}}function v(E,A,C){E.context={prev:E.context,indent:E.indent,col:C,type:A}}function y(E){E.indent=E.context.indent,E.context=E.context.prev}return{startState:function(){return{tokenize:h,context:null,indent:0,col:0}},token:function(E,A){if(E.sol()&&(A.context&&A.context.align==null&&(A.context.align=!1),A.indent=E.indentation()),E.eatSpace())return null;var C=A.tokenize(E,A);if(C!="comment"&&A.context&&A.context.align==null&&A.context.type!="pattern"&&(A.context.align=!0),o=="(")v(A,")",E.column());else if(o=="[")v(A,"]",E.column());else if(o=="{")v(A,"}",E.column());else if(/[\]\}\)]/.test(o)){for(;A.context&&A.context.type=="pattern";)y(A);A.context&&o==A.context.type&&y(A)}else o=="."&&A.context&&A.context.type=="pattern"?y(A):/atom|string|variable/.test(C)&&A.context&&(/[\}\]]/.test(A.context.type)?v(A,"pattern",E.column()):A.context.type=="pattern"&&!A.context.align&&(A.context.align=!0,A.context.col=E.column()));return C},indent:function(E,A){var C=A&&A.charAt(0),R=E.context;if(/[\]\}]/.test(C))for(;R&&R.type=="pattern";)R=R.prev;var O=R&&C==R.type;return R?R.type=="pattern"?R.col:R.align?R.col+(O?0:1):R.indent+(O?0:r):0},lineComment:"#"}});CodeMirror.defineMIME("text/turtle","turtle");CodeMirror.defineMIME("text/n3","turtle");CodeMirror.defineMIME("application/trig","turtle");window.CodeMirror.defineMode("ntriples",function(){var n={PRE_SUBJECT:0,WRITING_SUB_URI:1,WRITING_BNODE_URI:2,PRE_PRED:3,WRITING_PRED_URI:4,PRE_OBJ:5,WRITING_OBJ_URI:6,WRITING_OBJ_BNODE:7,WRITING_OBJ_LITERAL:8,WRITING_LIT_LANG:9,WRITING_LIT_TYPE:10,POST_OBJ:11,ERROR:12};function r(o,l){var u=o.location,d;u==n.PRE_SUBJECT&&l=="<"?d=n.WRITING_SUB_URI:u==n.PRE_SUBJECT&&l=="_"?d=n.WRITING_BNODE_URI:u==n.PRE_PRED&&l=="<"?d=n.WRITING_PRED_URI:u==n.PRE_OBJ&&l=="<"?d=n.WRITING_OBJ_URI:u==n.PRE_OBJ&&l=="_"?d=n.WRITING_OBJ_BNODE:u==n.PRE_OBJ&&l=='"'?d=n.WRITING_OBJ_LITERAL:u==n.WRITING_SUB_URI&&l==">"||u==n.WRITING_BNODE_URI&&l==" "?d=n.PRE_PRED:u==n.WRITING_PRED_URI&&l==">"?d=n.PRE_OBJ:u==n.WRITING_OBJ_URI&&l==">"||u==n.WRITING_OBJ_BNODE&&l==" "||u==n.WRITING_OBJ_LITERAL&&l=='"'||u==n.WRITING_LIT_LANG&&l==" "||u==n.WRITING_LIT_TYPE&&l==">"?d=n.POST_OBJ:u==n.WRITING_OBJ_LITERAL&&l=="@"?d=n.WRITING_LIT_LANG:u==n.WRITING_OBJ_LITERAL&&l=="^"?d=n.WRITING_LIT_TYPE:l==" "&&(u==n.PRE_SUBJECT||u==n.PRE_PRED||u==n.PRE_OBJ||u==n.POST_OBJ)?d=u:u==n.POST_OBJ&&l=="."?d=n.PRE_SUBJECT:d=n.ERROR,o.location=d}return{startState:function(){return{location:n.PRE_SUBJECT,uris:[],anchors:[],bnodes:[],langs:[],types:[]}},token:function(o,l){var u=o.next();if(u=="<"){r(l,u);var d="";return o.eatWhile(function(E){return E!="#"&&E!=">"?(d+=E,!0):!1}),l.uris.push(d),o.match("#",!1)||(o.next(),r(l,">")),"variable"}if(u=="#"){var h="";return o.eatWhile(function(E){return E!=">"&&E!=" "?(h+=E,!0):!1}),l.anchors.push(h),"variable-2"}if(u==">")return r(l,">"),"variable";if(u=="_"){r(l,u);var w="";return o.eatWhile(function(E){return E!=" "?(w+=E,!0):!1}),l.bnodes.push(w),o.next(),r(l," "),"builtin"}if(u=='"')return r(l,u),o.eatWhile(function(E){return E!='"'}),o.next(),o.peek()!="@"&&o.peek()!="^"&&r(l,'"'),"string";if(u=="@"){r(l,"@");var v="";return o.eatWhile(function(E){return E!=" "?(v+=E,!0):!1}),l.langs.push(v),o.next(),r(l," "),"string-2"}if(u=="^"){o.next(),r(l,"^");var y="";return o.eatWhile(function(E){return E!=">"?(y+=E,!0):!1}),l.types.push(y),o.next(),r(l,">"),"variable"}u==" "&&r(l,u),u=="."&&r(l,u)}}});CodeMirror.defineMIME("application/n-triples","ntriples");CodeMirror.defineMIME("application/n-quads","ntriples");CodeMirror.defineMIME("text/n-triples","ntriples");var ssr={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},lsr={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};window.CodeMirror.defineMode("xml",function(n,r){var o=n.indentUnit,l={},u=r.htmlMode?ssr:lsr;for(var d in u)l[d]=u[d];for(var d in r)l[d]=r[d];var h,w;function v(le,xe){function be(me){return xe.tokenize=me,me(le,xe)}var ae=le.next();if(ae=="<")return le.eat("!")?le.eat("[")?le.match("CDATA[")?be(A("atom","]]>")):null:le.match("--")?be(A("comment","-->")):le.match("DOCTYPE",!0,!0)?(le.eatWhile(/[\w\._\-]/),be(C(1))):null:le.eat("?")?(le.eatWhile(/[\w\._\-]/),xe.tokenize=A("meta","?>"),"meta"):(h=le.eat("/")?"closeTag":"openTag",xe.tokenize=y,"tag bracket");if(ae=="&"){var F;return le.eat("#")?le.eat("x")?F=le.eatWhile(/[a-fA-F\d]/)&&le.eat(";"):F=le.eatWhile(/[\d]/)&&le.eat(";"):F=le.eatWhile(/[\w\.\-:]/)&&le.eat(";"),F?"atom":"error"}else return le.eatWhile(/[^&<]/),null}v.isInText=!0;function y(le,xe){var be=le.next();if(be==">"||be=="/"&&le.eat(">"))return xe.tokenize=v,h=be==">"?"endTag":"selfcloseTag","tag bracket";if(be=="=")return h="equals",null;if(be=="<"){xe.tokenize=v,xe.state=L,xe.tagName=xe.tagStart=null;var ae=xe.tokenize(le,xe);return ae?ae+" tag error":"tag error"}else return/[\'\"]/.test(be)?(xe.tokenize=E(be),xe.stringStartCol=le.column(),xe.tokenize(le,xe)):(le.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function E(le){var xe=function(be,ae){for(;!be.eol();)if(be.next()==le){ae.tokenize=y;break}return"string"};return xe.isInAttribute=!0,xe}function A(le,xe){return function(be,ae){for(;!be.eol();){if(be.match(xe)){ae.tokenize=v;break}be.next()}return le}}function C(le){return function(xe,be){for(var ae;(ae=xe.next())!=null;){if(ae=="<")return be.tokenize=C(le+1),be.tokenize(xe,be);if(ae==">")if(le==1){be.tokenize=v;break}else return be.tokenize=C(le-1),be.tokenize(xe,be)}return"meta"}}function R(le,xe,be){this.prev=le.context,this.tagName=xe,this.indent=le.indented,this.startOfLine=be,(l.doNotIndent.hasOwnProperty(xe)||le.context&&le.context.noIndent)&&(this.noIndent=!0)}function O(le){le.context&&(le.context=le.context.prev)}function M(le,xe){for(var be;;){if(!le.context||(be=le.context.tagName,!l.contextGrabbers.hasOwnProperty(be)||!l.contextGrabbers[be].hasOwnProperty(xe)))return;O(le)}}function L(le,xe,be){return le=="openTag"?(be.tagStart=xe.column(),H):le=="closeTag"?G:L}function H(le,xe,be){return le=="word"?(be.tagName=xe.current(),w="tag",te):l.allowMissingTagName&&le=="endTag"?(w="tag bracket",te(le,xe,be)):(w="error",H)}function G(le,xe,be){if(le=="word"){var ae=xe.current();return be.context&&be.context.tagName!=ae&&l.implicitlyClosed.hasOwnProperty(be.context.tagName)&&O(be),be.context&&be.context.tagName==ae||l.matchClosing===!1?(w="tag",j):(w="tag error",Q)}else return l.allowMissingTagName&&le=="endTag"?(w="tag bracket",j(le,xe,be)):(w="error",Q)}function j(le,xe,be){return le!="endTag"?(w="error",j):(O(be),L)}function Q(le,xe,be){return w="error",j(le,xe,be)}function te(le,xe,be){if(le=="word")return w="attribute",pe;if(le=="endTag"||le=="selfcloseTag"){var ae=be.tagName,F=be.tagStart;return be.tagName=be.tagStart=null,le=="selfcloseTag"||l.autoSelfClosers.hasOwnProperty(ae)?M(be,ae):(M(be,ae),be.context=new R(be,ae,F==be.indented)),L}return w="error",te}function pe(le,xe,be){return le=="equals"?De:(l.allowMissing||(w="error"),te(le,xe,be))}function De(le,xe,be){return le=="string"?Re:le=="word"&&l.allowUnquoted?(w="string",te):(w="error",te(le,xe,be))}function Re(le,xe,be){return le=="string"?Re:te(le,xe,be)}return{startState:function(le){var xe={tokenize:v,state:L,indented:le||0,tagName:null,tagStart:null,context:null};return le!=null&&(xe.baseIndent=le),xe},token:function(le,xe){if(!xe.tagName&&le.sol()&&(xe.indented=le.indentation()),le.eatSpace())return null;h=null;var be=xe.tokenize(le,xe);return(be||h)&&be!="comment"&&(w=null,xe.state=xe.state(h||be,le,xe),w&&(be=w=="error"?be+" error":w)),be},indent:function(le,xe,be){var ae=le.context;if(le.tokenize.isInAttribute)return le.tagStart==le.indented?le.stringStartCol+1:le.indented+o;if(ae&&ae.noIndent)return CodeMirror.Pass;if(le.tokenize!=y&&le.tokenize!=v)return be?be.match(/^(\s*)/)[0].length:0;if(le.tagName)return l.multilineTagIndentPastTag!==!1?le.tagStart+le.tagName.length+2:le.tagStart+o*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/$/,blockCommentStart:"",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(le){le.state==De&&(le.state=te)},xmlCurrentTag:function(le){return le.tagName?{name:le.tagName,close:le.type=="closeTag"}:null},xmlCurrentContext:function(le){for(var xe=[],be=le.context;be;be=be.prev)be.tagName&&xe.push(be.tagName);return xe.reverse()}}});CodeMirror.defineMIME("text/xml","xml");CodeMirror.defineMIME("application/xml","xml");CodeMirror.mimeModes.hasOwnProperty("text/html")||CodeMirror.defineMIME("text/html",{name:"xml",htmlMode:!0});const fue=Symbol("parsed quads");let asr=class extends osr{static get properties(){return{format:{type:String,reflect:!0},quads:{type:Array},noReserialize:{type:Boolean,attribute:"no-reserialize"}}}constructor(){super(),this.isParsing=!1,this.noReserialize=!1}disconnectedCallback(){super.disconnectedCallback(),this.ready=null}get quads(){return this[fue]}set quads(r){if(typeof r>"u"||r===null)return;const o=this[fue];this[fue]=r,this.requestUpdate("quads",o)}async updated(r){super.updated(r);let o=!1,l=!1;const u=this.quads&&this.quads.length>0;r.has("format")&&(o=u&&!this.noReserialize,l=!o),r.has("quads")&&(o=!0),(r.has("prefixes")||r.has("customPrefixes"))&&(o=u),l?this.parse():o&&this.__serialize()}async _parse(){const{toStream:r}=await C0(async()=>{const{toStream:h}=await import("./stream-DrVE15ld.js");return{toStream:h}},[]),o=r(this.value),l=[],u={},d=this.$rdf.formats.parsers.import(this.format,o);if(!d){this.dispatchEvent(new CustomEvent("parsing-failed",{detail:{notFound:!0}}));return}d.on("prefix",(h,w)=>{u[h]=w});for await(const h of d)l.push(h);this[fue]=l,this.dispatchEvent(new CustomEvent("quads-changed",{detail:{value:l}})),this.__notifyParsedPrefixes(u)}async __serialize(){if(!this.format)return;await this.ready;const{Readable:r}=await C0(async()=>{const{Readable:h}=await import("./stream-DrVE15ld.js");return{Readable:h}},[]),o=[...this.quads||[]],l=new r({objectMode:!0,read(){if(o.length===0){this.push(null);return}this.push(o.shift())}}),u=this.$rdf.formats.serializers.import(this.format,l,{prefixes:await this._combinePrefixes()});if(!u){this.value=`No serializer found for media type ${this.format}`;return}let d="";for await(const h of u)d+=h;this.format===$S.jsonLd&&(d=JSON.stringify(JSON.parse(d),null,2)),this.value=d,this.dispatchEvent(new CustomEvent("serialized",{detail:{value:d}}))}_errorLine(r){const o={message:r.message};return r.context&&r.context.line&&(o.from={line:r.context.line-1,ch:0},o.to={line:r.context.line-1,ch:Number.MAX_SAFE_INTEGER}),o}__notifyParsedPrefixes(r){const o={},l={...r};for(const[u,d]of Object.entries(r))u in _de&&(o[u]=d,delete l[u]);this.dispatchEvent(new CustomEvent("prefixes-parsed",{detail:{prefixes:{...o,...l}}}))}};const Pnn=new qWe([aZt,tJ]);Pnn.formats.import(hv);window.customElements.define("rdf-editor",class extends zKn(asr,Pnn){});var Xpe=(n=>(n.JsonLD="application/ld+json",n.Trig="application/trig",n.NQuads="application/n-quads",n.NTriples="application/n-triples",n.Turtle="text/turtle",n.RdfXML="application/rdf+xml",n))(Xpe||{});const DR=[{contentType:"text/turtle",name:"Turtle",type:"text/turtle"},{contentType:"application/ld+json",name:"JSON-LD",type:"application/ld+json"},{contentType:"application/trig",name:"TriG",type:"application/trig"},{contentType:"application/n-quads",name:"N-Quads",type:"application/n-quads"},{contentType:"application/n-triples",name:"N-Triples",type:"application/n-triples"},{contentType:"application/rdf+xml",name:"RDF/XML",type:"application/rdf+xml"}],lUe="com.zazuko.sketch",Gfe=`${lUe}.text`,Vfe=`${lUe}.format`,hNe=`${lUe}.prefix`,csr=5e3,usr={class:"editor-container"},fsr=[".value","format","customPrefixes"],yWt="rdf,rdfs,sh",dsr=Ka({__name:"RdfEditor",props:{format:{}},emits:["change","format-change"],setup(n,{emit:r}){const o=n,l=r,u=Fo([]),d=Fo(null),h=Fo(Xpe.Turtle);Zs(()=>o.format,C=>{C!==h.value&&(h.value=C)});const w=Fo("");function v(C){console.error("Parsing failed",C.detail)}function y(C){var L,H;const R=(H=(L=d.value)==null?void 0:L.codeMirror)==null?void 0:H.value,O=C.detail.value,M={quads:O,rdfText:R,serializationFormat:o.format,prefix:u.value};O.length{const C={};return u.value.forEach(R=>{typeof R.uri=="string"?C[R.prefix]=R.uri:C[R.prefix]=R.uri.value}),yWt.split(",").forEach(R=>{delete C[R]}),C});return av(()=>{const C=localStorage.getItem(Gfe),R=localStorage.getItem(Vfe),O=JSON.parse(localStorage.getItem(hNe)??"[]");C&&R&&DR.find(M=>M.type===R)&&Array.isArray(O)?(w.value=C,h.value=(DR.find(M=>M.type===R)??DR[0]).type,u.value=O,l("format-change",h.value)):(localStorage.removeItem(Gfe),localStorage.removeItem(Vfe),localStorage.removeItem(hNe))}),(C,R)=>(ze(),jt("div",usr,[mr("rdf-editor",{".value":w.value,format:h.value,ref_key:"editorElement",ref:d,prefixes:yWt,customPrefixes:A.value,"auto-parse":"",parseDelay:"1000",onParsingFailed:v,onQuadsChanged:y,onPrefixesParsed:E},null,40,fsr)]))}}),hJ=(n,r)=>{const o=n.__vccOpts||n;for(const[l,u]of r)o[l]=u;return o},hsr=hJ(dsr,[["__scopeId","data-v-abcbd41c"]]);function vWt({parent:n,child:r}){return new Proxy({},{get(l,u){return r[u]||n[u]},set(l,u,d){return r[u]=d,!0},has(l,u){return u in r||u in n},ownKeys(){const l=Object.getOwnPropertyNames(n),u=Object.getOwnPropertyNames(r);return[...new Set([...l,...u]).values()]},getOwnPropertyDescriptor(l,u){return{enumerable:!u.toString().startsWith("_"),configurable:!0}}})}class SX{constructor(r,{parent:o,bind:l=!1}={}){if(this._parent=o,r instanceof qWe||r instanceof SX)return vWt({parent:o,child:r});this._factories=r.slice();const u=o?vWt({parent:o,child:this}):this;for(const d of this._factories){typeof d.prototype.init=="function"&&d.prototype.init.call(u);for(const h of d.exports||[])l?this[h]=d.prototype[h].bind(u):this[h]=d.prototype[h]}return u}clone(){const r=new SX(this._factories,this._parent);for(const o of r._factories)typeof o.prototype.clone=="function"&&o.prototype.clone.call(r,this);return r}}const{Readable:psr}=dHe;function bsr(n){const r=n[Symbol.iterator](),o=new psr({objectMode:!0,read:()=>{for(;;){const l=r.next().value;if(!l){o.push(null);return}if(!o.push(l))return}}});return o}var gsr=bsr;const Onn=cv(gsr);var Nnn={},Mnn={},Dnn=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},o=Symbol("test"),l=Object(o);if(typeof o=="string"||Object.prototype.toString.call(o)!=="[object Symbol]"||Object.prototype.toString.call(l)!=="[object Symbol]")return!1;var u=42;r[o]=u;for(var d in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var h=Object.getOwnPropertySymbols(r);if(h.length!==1||h[0]!==o||!Object.prototype.propertyIsEnumerable.call(r,o))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var w=Object.getOwnPropertyDescriptor(r,o);if(w.value!==u||w.enumerable!==!0)return!1}return!0},wsr=Dnn,aUe=function(){return wsr()&&!!Symbol.toStringTag},msr=Error,ysr=EvalError,vsr=RangeError,_sr=ReferenceError,Lnn=SyntaxError,Jpe=TypeError,Ssr=URIError,Esr=Object.getOwnPropertyDescriptor,zfe=Esr;if(zfe)try{zfe([],"length")}catch{zfe=null}var pJ=zfe,Kfe=Object.defineProperty||!1;if(Kfe)try{Kfe({},"a",{value:1})}catch{Kfe=!1}var Ype=Kfe,pNe,_Wt;function ksr(){if(_Wt)return pNe;_Wt=1;var n=typeof Symbol<"u"&&Symbol,r=Dnn;return pNe=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:r()},pNe}var Rsr="Function.prototype.bind called on incompatible ",xsr=Object.prototype.toString,Csr=Math.max,Asr="[object Function]",SWt=function(r,o){for(var l=[],u=0;u"u"||!up?Fl:up(Uint8Array),rP={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Fl:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Fl:ArrayBuffer,"%ArrayIteratorPrototype%":oD&&up?up([][Symbol.iterator]()):Fl,"%AsyncFromSyncIteratorPrototype%":Fl,"%AsyncFunction%":_D,"%AsyncGenerator%":_D,"%AsyncGeneratorFunction%":_D,"%AsyncIteratorPrototype%":_D,"%Atomics%":typeof Atomics>"u"?Fl:Atomics,"%BigInt%":typeof BigInt>"u"?Fl:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Fl:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Fl:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Fl:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Gsr,"%eval%":eval,"%EvalError%":Vsr,"%Float32Array%":typeof Float32Array>"u"?Fl:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Fl:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Fl:FinalizationRegistry,"%Function%":Bnn,"%GeneratorFunction%":_D,"%Int8Array%":typeof Int8Array>"u"?Fl:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Fl:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Fl:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":oD&&up?up(up([][Symbol.iterator]())):Fl,"%JSON%":typeof JSON=="object"?JSON:Fl,"%Map%":typeof Map>"u"?Fl:Map,"%MapIteratorPrototype%":typeof Map>"u"||!oD||!up?Fl:up(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%Object.getOwnPropertyDescriptor%":EX,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Fl:Promise,"%Proxy%":typeof Proxy>"u"?Fl:Proxy,"%RangeError%":zsr,"%ReferenceError%":Ksr,"%Reflect%":typeof Reflect>"u"?Fl:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Fl:Set,"%SetIteratorPrototype%":typeof Set>"u"||!oD||!up?Fl:up(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Fl:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":oD&&up?up(""[Symbol.iterator]()):Fl,"%Symbol%":oD?Symbol:Fl,"%SyntaxError%":jL,"%ThrowTypeError%":Jsr,"%TypedArray%":Qsr,"%TypeError%":rL,"%Uint8Array%":typeof Uint8Array>"u"?Fl:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Fl:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Fl:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Fl:Uint32Array,"%URIError%":qsr,"%WeakMap%":typeof WeakMap>"u"?Fl:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Fl:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Fl:WeakSet,"%Function.prototype.call%":gJ,"%Function.prototype.apply%":Wnn,"%Object.defineProperty%":Xsr};if(up)try{null.error}catch(n){var Zsr=up(up(n));rP["%Error.prototype%"]=Zsr}var elr=function n(r){var o;if(r==="%AsyncFunction%")o=wNe("async function () {}");else if(r==="%GeneratorFunction%")o=wNe("function* () {}");else if(r==="%AsyncGeneratorFunction%")o=wNe("async function* () {}");else if(r==="%AsyncGenerator%"){var l=n("%AsyncGeneratorFunction%");l&&(o=l.prototype)}else if(r==="%AsyncIteratorPrototype%"){var u=n("%AsyncGenerator%");u&&up&&(o=up(u.prototype))}return rP[r]=o,o},RWt={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},wJ=bJ,Jde=Usr(),tlr=wJ.call(gJ,Array.prototype.concat),nlr=wJ.call(Wnn,Array.prototype.splice),xWt=wJ.call(gJ,String.prototype.replace),Yde=wJ.call(gJ,String.prototype.slice),rlr=wJ.call(gJ,RegExp.prototype.exec),ilr=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,olr=/\\(\\)?/g,slr=function(r){var o=Yde(r,0,1),l=Yde(r,-1);if(o==="%"&&l!=="%")throw new jL("invalid intrinsic syntax, expected closing `%`");if(l==="%"&&o!=="%")throw new jL("invalid intrinsic syntax, expected opening `%`");var u=[];return xWt(r,ilr,function(d,h,w,v){u[u.length]=w?xWt(v,olr,"$1"):h||d}),u},llr=function(r,o){var l=r,u;if(Jde(RWt,l)&&(u=RWt[l],l="%"+u[0]+"%"),Jde(rP,l)){var d=rP[l];if(d===_D&&(d=elr(l)),typeof d>"u"&&!o)throw new rL("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:u,name:l,value:d}}throw new jL("intrinsic "+r+" does not exist!")},Hnn=function(r,o){if(typeof r!="string"||r.length===0)throw new rL("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof o!="boolean")throw new rL('"allowMissing" argument must be a boolean');if(rlr(/^%?[^%]*%?$/,r)===null)throw new jL("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var l=slr(r),u=l.length>0?l[0]:"",d=llr("%"+u+"%",o),h=d.name,w=d.value,v=!1,y=d.alias;y&&(u=y[0],nlr(l,tlr([0,1],y)));for(var E=1,A=!0;E=l.length){var M=EX(w,C);A=!!M,A&&"get"in M&&!("originalValue"in M.get)?w=M.get:w=w[C]}else A=Jde(w,C),w=w[C];A&&!v&&(rP[h]=w)}}return w},Unn={exports:{}},CWt=Ype,alr=Lnn,sD=Jpe,AWt=pJ,clr=function(r,o,l){if(!r||typeof r!="object"&&typeof r!="function")throw new sD("`obj` must be an object or a function`");if(typeof o!="string"&&typeof o!="symbol")throw new sD("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new sD("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new sD("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new sD("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new sD("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,d=arguments.length>4?arguments[4]:null,h=arguments.length>5?arguments[5]:null,w=arguments.length>6?arguments[6]:!1,v=!!AWt&&AWt(r,o);if(CWt)CWt(r,o,{configurable:h===null&&v?v.configurable:!h,enumerable:u===null&&v?v.enumerable:!u,value:l,writable:d===null&&v?v.writable:!d});else if(w||!u&&!d&&!h)r[o]=l;else throw new alr("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},$je=Ype,Gnn=function(){return!!$je};Gnn.hasArrayLengthDefineBug=function(){if(!$je)return null;try{return $je([],"length",{value:1}).length!==1}catch{return!0}};var ulr=Gnn,flr=Hnn,TWt=clr,dlr=ulr(),$Wt=pJ,IWt=Jpe,hlr=flr("%Math.floor%"),plr=function(r,o){if(typeof r!="function")throw new IWt("`fn` is not a function");if(typeof o!="number"||o<0||o>4294967295||hlr(o)!==o)throw new IWt("`length` must be a positive 32-bit integer");var l=arguments.length>2&&!!arguments[2],u=!0,d=!0;if("length"in r&&$Wt){var h=$Wt(r,"length");h&&!h.configurable&&(u=!1),h&&!h.writable&&(d=!1)}return(u||d||!l)&&(dlr?TWt(r,"length",o,!0,!0):TWt(r,"length",o)),r},blr=bJ,glr=uUe,wlr=jnn,mlr=function(){return wlr(blr,glr,arguments)};(function(n){var r=plr,o=Ype,l=Fnn,u=mlr;n.exports=function(h){var w=l(arguments),v=h.length-(arguments.length-1);return r(w,1+(v>0?v:0),!0)},o?o(n.exports,"apply",{value:u}):n.exports.apply=u})(Unn);var Vnn=Unn.exports,znn=Hnn,Knn=Vnn,ylr=Knn(znn("String.prototype.indexOf")),qnn=function(r,o){var l=znn(r,!!o);return typeof l=="function"&&ylr(r,".prototype.")>-1?Knn(l):l},vlr=aUe(),_lr=qnn,Ije=_lr("Object.prototype.toString"),Qpe=function(r){return vlr&&r&&typeof r=="object"&&Symbol.toStringTag in r?!1:Ije(r)==="[object Arguments]"},Xnn=function(r){return Qpe(r)?!0:r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&Ije(r)!=="[object Array]"&&Ije(r.callee)==="[object Function]"},Slr=function(){return Qpe(arguments)}();Qpe.isLegacyArguments=Xnn;var Elr=Slr?Qpe:Xnn,klr=Object.prototype.toString,Rlr=Function.prototype.toString,xlr=/^\s*(?:function)?\*/,Jnn=aUe(),yNe=Object.getPrototypeOf,Clr=function(){if(!Jnn)return!1;try{return Function("return function*() {}")()}catch{}},vNe,Alr=function(r){if(typeof r!="function")return!1;if(xlr.test(Rlr.call(r)))return!0;if(!Jnn){var o=klr.call(r);return o==="[object GeneratorFunction]"}if(!yNe)return!1;if(typeof vNe>"u"){var l=Clr();vNe=l?yNe(l):!1}return yNe(r)===vNe},Ynn=Function.prototype.toString,BD=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Pje,qfe;if(typeof BD=="function"&&typeof Object.defineProperty=="function")try{Pje=Object.defineProperty({},"length",{get:function(){throw qfe}}),qfe={},BD(function(){throw 42},null,Pje)}catch(n){n!==qfe&&(BD=null)}else BD=null;var Tlr=/^\s*class\b/,Oje=function(r){try{var o=Ynn.call(r);return Tlr.test(o)}catch{return!1}},_Ne=function(r){try{return Oje(r)?!1:(Ynn.call(r),!0)}catch{return!1}},Xfe=Object.prototype.toString,$lr="[object Object]",Ilr="[object Function]",Plr="[object GeneratorFunction]",Olr="[object HTMLAllCollection]",Nlr="[object HTML document.all class]",Mlr="[object HTMLCollection]",Dlr=typeof Symbol=="function"&&!!Symbol.toStringTag,Llr=!(0 in[,]),Nje=function(){return!1};if(typeof document=="object"){var jlr=document.all;Xfe.call(jlr)===Xfe.call(document.all)&&(Nje=function(r){if((Llr||!r)&&(typeof r>"u"||typeof r=="object"))try{var o=Xfe.call(r);return(o===Olr||o===Nlr||o===Mlr||o===$lr)&&r("")==null}catch{}return!1})}var Flr=BD?function(r){if(Nje(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;try{BD(r,null,Pje)}catch(o){if(o!==qfe)return!1}return!Oje(r)&&_Ne(r)}:function(r){if(Nje(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;if(Dlr)return _Ne(r);if(Oje(r))return!1;var o=Xfe.call(r);return o!==Ilr&&o!==Plr&&!/^\[object HTML/.test(o)?!1:_Ne(r)},Blr=Flr,Wlr=Object.prototype.toString,Qnn=Object.prototype.hasOwnProperty,Hlr=function(r,o,l){for(var u=0,d=r.length;u=3&&(u=l),Wlr.call(r)==="[object Array]"?Hlr(r,o,u):typeof r=="string"?Ulr(r,o,u):Glr(r,o,u)},zlr=Vlr,Klr=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],SNe=Klr,qlr=typeof globalThis>"u"?window:globalThis,Xlr=function(){for(var r=[],o=0;o"u"?window:globalThis,Mje=Jlr(),dUe=fUe("String.prototype.slice"),ENe=Object.getPrototypeOf,Qlr=fUe("Array.prototype.indexOf",!0)||function(r,o){for(var l=0;l-1?o:o!=="Object"?!1:ear(r)}return Jfe?Zlr(r):null},tar=ern,nar=function(r){return!!tar(r)};(function(n){var r=Elr,o=Alr,l=ern,u=nar;function d(Ee){return Ee.call.bind(Ee)}var h=typeof BigInt<"u",w=typeof Symbol<"u",v=d(Object.prototype.toString),y=d(Number.prototype.valueOf),E=d(String.prototype.valueOf),A=d(Boolean.prototype.valueOf);if(h)var C=d(BigInt.prototype.valueOf);if(w)var R=d(Symbol.prototype.valueOf);function O(Ee,Ie){if(typeof Ee!="object")return!1;try{return Ie(Ee),!0}catch{return!1}}n.isArgumentsObject=r,n.isGeneratorFunction=o,n.isTypedArray=u;function M(Ee){return typeof Promise<"u"&&Ee instanceof Promise||Ee!==null&&typeof Ee=="object"&&typeof Ee.then=="function"&&typeof Ee.catch=="function"}n.isPromise=M;function L(Ee){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(Ee):u(Ee)||re(Ee)}n.isArrayBufferView=L;function H(Ee){return l(Ee)==="Uint8Array"}n.isUint8Array=H;function G(Ee){return l(Ee)==="Uint8ClampedArray"}n.isUint8ClampedArray=G;function j(Ee){return l(Ee)==="Uint16Array"}n.isUint16Array=j;function Q(Ee){return l(Ee)==="Uint32Array"}n.isUint32Array=Q;function te(Ee){return l(Ee)==="Int8Array"}n.isInt8Array=te;function pe(Ee){return l(Ee)==="Int16Array"}n.isInt16Array=pe;function De(Ee){return l(Ee)==="Int32Array"}n.isInt32Array=De;function Re(Ee){return l(Ee)==="Float32Array"}n.isFloat32Array=Re;function le(Ee){return l(Ee)==="Float64Array"}n.isFloat64Array=le;function xe(Ee){return l(Ee)==="BigInt64Array"}n.isBigInt64Array=xe;function be(Ee){return l(Ee)==="BigUint64Array"}n.isBigUint64Array=be;function ae(Ee){return v(Ee)==="[object Map]"}ae.working=typeof Map<"u"&&ae(new Map);function F(Ee){return typeof Map>"u"?!1:ae.working?ae(Ee):Ee instanceof Map}n.isMap=F;function me(Ee){return v(Ee)==="[object Set]"}me.working=typeof Set<"u"&&me(new Set);function ye(Ee){return typeof Set>"u"?!1:me.working?me(Ee):Ee instanceof Set}n.isSet=ye;function we(Ee){return v(Ee)==="[object WeakMap]"}we.working=typeof WeakMap<"u"&&we(new WeakMap);function Be(Ee){return typeof WeakMap>"u"?!1:we.working?we(Ee):Ee instanceof WeakMap}n.isWeakMap=Be;function He(Ee){return v(Ee)==="[object WeakSet]"}He.working=typeof WeakSet<"u"&&He(new WeakSet);function Ue(Ee){return He(Ee)}n.isWeakSet=Ue;function Ge(Ee){return v(Ee)==="[object ArrayBuffer]"}Ge.working=typeof ArrayBuffer<"u"&&Ge(new ArrayBuffer);function Le(Ee){return typeof ArrayBuffer>"u"?!1:Ge.working?Ge(Ee):Ee instanceof ArrayBuffer}n.isArrayBuffer=Le;function ft(Ee){return v(Ee)==="[object DataView]"}ft.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&ft(new DataView(new ArrayBuffer(1),0,1));function re(Ee){return typeof DataView>"u"?!1:ft.working?ft(Ee):Ee instanceof DataView}n.isDataView=re;var Te=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function dt(Ee){return v(Ee)==="[object SharedArrayBuffer]"}function at(Ee){return typeof Te>"u"?!1:(typeof dt.working>"u"&&(dt.working=dt(new Te)),dt.working?dt(Ee):Ee instanceof Te)}n.isSharedArrayBuffer=at;function Qe(Ee){return v(Ee)==="[object AsyncFunction]"}n.isAsyncFunction=Qe;function yt(Ee){return v(Ee)==="[object Map Iterator]"}n.isMapIterator=yt;function Lt(Ee){return v(Ee)==="[object Set Iterator]"}n.isSetIterator=Lt;function nn(Ee){return v(Ee)==="[object Generator]"}n.isGeneratorObject=nn;function Pe(Ee){return v(Ee)==="[object WebAssembly.Module]"}n.isWebAssemblyCompiledModule=Pe;function Ne(Ee){return O(Ee,y)}n.isNumberObject=Ne;function T(Ee){return O(Ee,E)}n.isStringObject=T;function $(Ee){return O(Ee,A)}n.isBooleanObject=$;function B(Ee){return h&&O(Ee,C)}n.isBigIntObject=B;function K(Ee){return w&&O(Ee,R)}n.isSymbolObject=K;function q(Ee){return Ne(Ee)||T(Ee)||$(Ee)||B(Ee)||K(Ee)}n.isBoxedPrimitive=q;function ke(Ee){return typeof Uint8Array<"u"&&(Le(Ee)||at(Ee))}n.isAnyArrayBuffer=ke,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(Ee){Object.defineProperty(n,Ee,{enumerable:!1,value:function(){throw new Error(Ee+" is not supported in userland")}})})})(Mnn);var rar=function(r){return r&&typeof r=="object"&&typeof r.copy=="function"&&typeof r.fill=="function"&&typeof r.readUInt8=="function"};(function(n){var r={},o=Object.getOwnPropertyDescriptors||function(Te){for(var dt=Object.keys(Te),at={},Qe=0;Qe=Qe)return nn;switch(nn){case"%s":return String(at[dt++]);case"%d":return Number(at[dt++]);case"%j":try{return JSON.stringify(at[dt++])}catch{return"[Circular]"}default:return nn}}),Lt=at[dt];dt"u")return function(){return n.deprecate(re,Te).apply(this,arguments)};var dt=!1;function at(){if(!dt){if(Wl.throwDeprecation)throw new Error(Te);Wl.traceDeprecation?console.trace(Te):console.error(Te),dt=!0}return re.apply(this,arguments)}return at};var u={},d=/^$/;if(r.NODE_DEBUG){var h=r.NODE_DEBUG;h=h.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),d=new RegExp("^"+h+"$","i")}n.debuglog=function(re){if(re=re.toUpperCase(),!u[re])if(d.test(re)){var Te=Wl.pid;u[re]=function(){var dt=n.format.apply(n,arguments);console.error("%s %d: %s",re,Te,dt)}}else u[re]=function(){};return u[re]};function w(re,Te){var dt={seen:[],stylize:y};return arguments.length>=3&&(dt.depth=arguments[2]),arguments.length>=4&&(dt.colors=arguments[3]),G(Te)?dt.showHidden=Te:Te&&n._extend(dt,Te),Re(dt.showHidden)&&(dt.showHidden=!1),Re(dt.depth)&&(dt.depth=2),Re(dt.colors)&&(dt.colors=!1),Re(dt.customInspect)&&(dt.customInspect=!0),dt.colors&&(dt.stylize=v),A(dt,re,dt.depth)}n.inspect=w,w.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},w.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function v(re,Te){var dt=w.styles[Te];return dt?"\x1B["+w.colors[dt][0]+"m"+re+"\x1B["+w.colors[dt][1]+"m":re}function y(re,Te){return re}function E(re){var Te={};return re.forEach(function(dt,at){Te[dt]=!0}),Te}function A(re,Te,dt){if(re.customInspect&&Te&&F(Te.inspect)&&Te.inspect!==n.inspect&&!(Te.constructor&&Te.constructor.prototype===Te)){var at=Te.inspect(dt,re);return pe(at)||(at=A(re,at,dt)),at}var Qe=C(re,Te);if(Qe)return Qe;var yt=Object.keys(Te),Lt=E(yt);if(re.showHidden&&(yt=Object.getOwnPropertyNames(Te)),ae(Te)&&(yt.indexOf("message")>=0||yt.indexOf("description")>=0))return R(Te);if(yt.length===0){if(F(Te)){var nn=Te.name?": "+Te.name:"";return re.stylize("[Function"+nn+"]","special")}if(le(Te))return re.stylize(RegExp.prototype.toString.call(Te),"regexp");if(be(Te))return re.stylize(Date.prototype.toString.call(Te),"date");if(ae(Te))return R(Te)}var Pe="",Ne=!1,T=["{","}"];if(H(Te)&&(Ne=!0,T=["[","]"]),F(Te)){var $=Te.name?": "+Te.name:"";Pe=" [Function"+$+"]"}if(le(Te)&&(Pe=" "+RegExp.prototype.toString.call(Te)),be(Te)&&(Pe=" "+Date.prototype.toUTCString.call(Te)),ae(Te)&&(Pe=" "+R(Te)),yt.length===0&&(!Ne||Te.length==0))return T[0]+Pe+T[1];if(dt<0)return le(Te)?re.stylize(RegExp.prototype.toString.call(Te),"regexp"):re.stylize("[Object]","special");re.seen.push(Te);var B;return Ne?B=O(re,Te,dt,Lt,yt):B=yt.map(function(K){return M(re,Te,dt,Lt,K,Ne)}),re.seen.pop(),L(B,Pe,T)}function C(re,Te){if(Re(Te))return re.stylize("undefined","undefined");if(pe(Te)){var dt="'"+JSON.stringify(Te).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return re.stylize(dt,"string")}if(te(Te))return re.stylize(""+Te,"number");if(G(Te))return re.stylize(""+Te,"boolean");if(j(Te))return re.stylize("null","null")}function R(re){return"["+Error.prototype.toString.call(re)+"]"}function O(re,Te,dt,at,Qe){for(var yt=[],Lt=0,nn=Te.length;Lt-1&&(yt?nn=nn.split(` +`).map(function(Ne){return" "+Ne}).join(` +`).slice(2):nn=` +`+nn.split(` +`).map(function(Ne){return" "+Ne}).join(` +`))):nn=re.stylize("[Circular]","special")),Re(Lt)){if(yt&&Qe.match(/^\d+$/))return nn;Lt=JSON.stringify(""+Qe),Lt.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Lt=Lt.slice(1,-1),Lt=re.stylize(Lt,"name")):(Lt=Lt.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Lt=re.stylize(Lt,"string"))}return Lt+": "+nn}function L(re,Te,dt){var at=re.reduce(function(Qe,yt){return yt.indexOf(` +`)>=0,Qe+yt.replace(/\u001b\[\d\d?m/g,"").length+1},0);return at>60?dt[0]+(Te===""?"":Te+` `)+" "+re.join(`, - `)+" "+ct[1]:ct[0]+Te+" "+re.join(", ")+" "+ct[1]}n.types=$nn;function H(re){return Array.isArray(re)}n.isArray=H;function G(re){return typeof re=="boolean"}n.isBoolean=G;function j(re){return re===null}n.isNull=j;function Q(re){return re==null}n.isNullOrUndefined=Q;function te(re){return typeof re=="number"}n.isNumber=te;function pe(re){return typeof re=="string"}n.isString=pe;function Le(re){return typeof re=="symbol"}n.isSymbol=Le;function Ee(re){return re===void 0}n.isUndefined=Ee;function le(re){return xe(re)&&ye(re)==="[object RegExp]"}n.isRegExp=le,n.types.isRegExp=le;function xe(re){return typeof re=="object"&&re!==null}n.isObject=xe;function be(re){return xe(re)&&ye(re)==="[object Date]"}n.isDate=be,n.types.isDate=be;function ae(re){return xe(re)&&(ye(re)==="[object Error]"||re instanceof Error)}n.isError=ae,n.types.isNativeError=ae;function F(re){return typeof re=="function"}n.isFunction=F;function me(re){return re===null||typeof re=="boolean"||typeof re=="number"||typeof re=="string"||typeof re=="symbol"||typeof re>"u"}n.isPrimitive=me,n.isBuffer=Flr;function ye(re){return Object.prototype.toString.call(re)}function we(re){return re<10?"0"+re.toString(10):re.toString(10)}var Be=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function He(){var re=new Date,Te=[we(re.getHours()),we(re.getMinutes()),we(re.getSeconds())].join(":");return[re.getDate(),Be[re.getMonth()],Te].join(" ")}n.log=function(){console.log("%s - %s",He(),n.format.apply(n,arguments))},n.inherits=sj,n._extend=function(re,Te){if(!Te||!xe(Te))return re;for(var ct=Object.keys(Te),at=ct.length;at--;)re[ct[at]]=Te[ct[at]];return re};function Ue(re,Te){return Object.prototype.hasOwnProperty.call(re,Te)}var Ge=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;n.promisify=function(Te){if(typeof Te!="function")throw new TypeError('The "original" argument must be of type Function');if(Ge&&Te[Ge]){var ct=Te[Ge];if(typeof ct!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(ct,Ge,{value:ct,enumerable:!1,writable:!1,configurable:!0}),ct}function ct(){for(var at,Ye,mt=new Promise(function(Pe,Oe){at=Pe,Ye=Oe}),jt=[],rn=0;rnn.add(o)),await Blr(Wlr)(r),n}var Ulr=Hlr;const znn=cv(Ulr);var lUe=class Knn{constructor(r,o=new Map,l=0){this.prefix=r,this._existing=o,this.counter=l}clone(){const{prefix:r,_existing:o,counter:l}=this;return new Knn(r,new Map(o),l)}getId(r){const o=r&&this._existing.get(r);if(o)return o;const l=this.prefix+this.counter;return this.counter++,r&&this._existing.set(r,l),l}hasId(r){return this._existing.has(r)}getOldIds(){return[...this._existing.keys()]}};(function(n,r){if(n.setImmediate)return;var o=1,l={},u=!1,d=n.document,h;function w(G){typeof G!="function"&&(G=new Function(""+G));for(var j=new Array(arguments.length-1),Q=0;Q"u"?typeof window>"u"?fu:window:self);/*! + `)+" "+dt[1]:dt[0]+Te+" "+re.join(", ")+" "+dt[1]}n.types=Mnn;function H(re){return Array.isArray(re)}n.isArray=H;function G(re){return typeof re=="boolean"}n.isBoolean=G;function j(re){return re===null}n.isNull=j;function Q(re){return re==null}n.isNullOrUndefined=Q;function te(re){return typeof re=="number"}n.isNumber=te;function pe(re){return typeof re=="string"}n.isString=pe;function De(re){return typeof re=="symbol"}n.isSymbol=De;function Re(re){return re===void 0}n.isUndefined=Re;function le(re){return xe(re)&&ye(re)==="[object RegExp]"}n.isRegExp=le,n.types.isRegExp=le;function xe(re){return typeof re=="object"&&re!==null}n.isObject=xe;function be(re){return xe(re)&&ye(re)==="[object Date]"}n.isDate=be,n.types.isDate=be;function ae(re){return xe(re)&&(ye(re)==="[object Error]"||re instanceof Error)}n.isError=ae,n.types.isNativeError=ae;function F(re){return typeof re=="function"}n.isFunction=F;function me(re){return re===null||typeof re=="boolean"||typeof re=="number"||typeof re=="string"||typeof re=="symbol"||typeof re>"u"}n.isPrimitive=me,n.isBuffer=rar;function ye(re){return Object.prototype.toString.call(re)}function we(re){return re<10?"0"+re.toString(10):re.toString(10)}var Be=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function He(){var re=new Date,Te=[we(re.getHours()),we(re.getMinutes()),we(re.getSeconds())].join(":");return[re.getDate(),Be[re.getMonth()],Te].join(" ")}n.log=function(){console.log("%s - %s",He(),n.format.apply(n,arguments))},n.inherits=oj,n._extend=function(re,Te){if(!Te||!xe(Te))return re;for(var dt=Object.keys(Te),at=dt.length;at--;)re[dt[at]]=Te[dt[at]];return re};function Ue(re,Te){return Object.prototype.hasOwnProperty.call(re,Te)}var Ge=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;n.promisify=function(Te){if(typeof Te!="function")throw new TypeError('The "original" argument must be of type Function');if(Ge&&Te[Ge]){var dt=Te[Ge];if(typeof dt!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(dt,Ge,{value:dt,enumerable:!1,writable:!1,configurable:!0}),dt}function dt(){for(var at,Qe,yt=new Promise(function(Pe,Ne){at=Pe,Qe=Ne}),Lt=[],nn=0;nnn.add(o)),await iar(oar)(r),n}var lar=sar;const trn=cv(lar);var hUe=class nrn{constructor(r,o=new Map,l=0){this.prefix=r,this._existing=o,this.counter=l}clone(){const{prefix:r,_existing:o,counter:l}=this;return new nrn(r,new Map(o),l)}getId(r){const o=r&&this._existing.get(r);if(o)return o;const l=this.prefix+this.counter;return this.counter++,r&&this._existing.set(r,l),l}hasId(r){return this._existing.has(r)}getOldIds(){return[...this._existing.keys()]}};(function(n,r){if(n.setImmediate)return;var o=1,l={},u=!1,d=n.document,h;function w(G){typeof G!="function"&&(G=new Function(""+G));for(var j=new Array(arguments.length-1),Q=0;Q"u"?typeof window>"u"?fu:window:self);/*! * Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved. - */const yNe=self.crypto||self.msCrypto;var Xpe=class{constructor(r){if(!(yNe&&yNe.subtle))throw new Error("crypto.subtle not found.");if(r==="sha256")this.algorithm={name:"SHA-256"};else if(r==="sha1")this.algorithm={name:"SHA-1"};else throw new Error(`Unsupported algorithm "${r}".`);this._content=""}update(r){this._content+=r}async digest(){const r=new TextEncoder().encode(this._content),o=new Uint8Array(await yNe.subtle.digest(this.algorithm,r));let l="";for(let u=0;uu)&&(y&&w>0&&v>r[w-1]||!y&&wr[w+1])&&(u=v,d=w)}if(u===null)this.done=!0;else{const w=o.get(u)?d-1:d+1;r[d]=r[w],r[w]=u;for(const v of r)v>u&&o.set(v,!o.get(v))}return l}};/*! + */var rrn=class{constructor(r){this.current=r.sort(),this.done=!1,this.dir=new Map;for(let o=0;ou)&&(y&&w>0&&v>r[w-1]||!y&&wr[w+1])&&(u=v,d=w)}if(u===null)this.done=!0;else{const w=o.get(u)?d-1:d+1;r[d]=r[w],r[w]=u;for(const v of r)v>u&&o.set(v,!o.get(v))}return l}};/*! * Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved. - */const Glr="http://www.w3.org/1999/02/22-rdf-syntax-ns#",vNe=Glr+"langString",_Ne="http://www.w3.org/2001/XMLSchema#string",oS="NamedNode",i8="BlankNode",qfe="Literal",CWt="DefaultGraph",oL={};(()=>{const n="(?:<([^:]+:[^>]*)>)",o="A-Za-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�"+"_",l=o+"0-9-·̀-ͯ‿-⁀",d="(_:(?:["+o+"0-9])(?:(?:["+l+".])*(?:["+l+"]))?)",h='"([^"\\\\]*(?:\\\\.[^"\\\\]*)*)"',w="(?:\\^\\^"+n+")",y="(?:"+h+"(?:"+w+"|"+"(?:@([a-zA-Z]+(?:-[a-zA-Z0-9]+)*))"+")?)",E="[ \\t]+",A="[ \\t]*",C="(?:"+n+"|"+d+")"+E,R=n+E,O="(?:"+n+"|"+d+"|"+y+")"+A,M="(?:\\.|(?:(?:"+n+"|"+d+")"+A+"\\.))";oL.eoln=/(?:\r\n)|(?:\n)|(?:\r)/g,oL.empty=new RegExp("^"+A+"$"),oL.quad=new RegExp("^"+A+C+R+O+M+A+"$")})();var aUe=class Xfe{static parse(r){const o=[],l={},u=r.split(oL.eoln);let d=0;for(const h of u){if(d++,oL.empty.test(h))continue;const w=h.match(oL.quad);if(w===null)throw new Error("N-Quads parse error on line "+d+".");const v={subject:null,predicate:null,object:null,graph:null};if(w[1]!==void 0?v.subject={termType:oS,value:w[1]}:v.subject={termType:i8,value:w[2]},v.predicate={termType:oS,value:w[3]},w[4]!==void 0?v.object={termType:oS,value:w[4]}:w[5]!==void 0?v.object={termType:i8,value:w[5]}:(v.object={termType:qfe,value:void 0,datatype:{termType:oS}},w[7]!==void 0?v.object.datatype.value=w[7]:w[8]!==void 0?(v.object.datatype.value=vNe,v.object.language=w[8]):v.object.datatype.value=_Ne,v.object.value=Xlr(w[6])),w[9]!==void 0?v.graph={termType:oS,value:w[9]}:w[10]!==void 0?v.graph={termType:i8,value:w[10]}:v.graph={termType:CWt,value:""},!(v.graph.value in l))l[v.graph.value]=[v],o.push(v);else{let y=!0;const E=l[v.graph.value];for(const A of E)if(Vlr(A,v)){y=!1;break}y&&(E.push(v),o.push(v))}}return o}static serialize(r){Array.isArray(r)||(r=Xfe.legacyDatasetToQuads(r));const o=[];for(const l of r)o.push(Xfe.serializeQuad(l));return o.sort().join("")}static serializeQuadComponents(r,o,l,u){let d="";return r.termType===oS?d+=`<${r.value}>`:d+=`${r.value}`,d+=` <${o.value}> `,l.termType===oS?d+=`<${l.value}>`:l.termType===i8?d+=l.value:(d+=`"${Klr(l.value)}"`,l.datatype.value===vNe?l.language&&(d+=`@${l.language}`):l.datatype.value!==_Ne&&(d+=`^^<${l.datatype.value}>`)),u.termType===oS?d+=` <${u.value}>`:u.termType===i8&&(d+=` ${u.value}`),d+=` . -`,d}static serializeQuad(r){return Xfe.serializeQuadComponents(r.subject,r.predicate,r.object,r.graph)}static legacyDatasetToQuads(r){const o=[],l={"blank node":i8,IRI:oS,literal:qfe};for(const u in r)r[u].forEach(h=>{const w={};for(const v in h){const y=h[v],E={termType:l[y.type],value:y.value};E.termType===qfe&&(E.datatype={termType:oS},"datatype"in y&&(E.datatype.value=y.datatype),"language"in y?("datatype"in y||(E.datatype.value=vNe),E.language=y.language):"datatype"in y||(E.datatype.value=_Ne)),w[v]=E}u==="@default"?w.graph={termType:CWt,value:""}:w.graph={termType:u.startsWith("_:")?i8:oS,value:u},o.push(w)});return o}};function Vlr(n,r){return!(n.subject.termType===r.subject.termType&&n.object.termType===r.object.termType)||!(n.subject.value===r.subject.value&&n.predicate.value===r.predicate.value&&n.object.value===r.object.value)?!1:n.object.termType!==qfe?!0:n.object.datatype.termType===r.object.datatype.termType&&n.object.language===r.object.language&&n.object.datatype.value===r.object.datatype.value}const zlr=/["\\\n\r]/g;function Klr(n){return n.replace(zlr,function(r){switch(r){case'"':return'\\"';case"\\":return"\\\\";case` -`:return"\\n";case"\r":return"\\r"}})}const qlr=/(?:\\([tbnrf"'\\]))|(?:\\u([0-9A-Fa-f]{4}))|(?:\\U([0-9A-Fa-f]{8}))/g;function Xlr(n){return n.replace(qlr,function(r,o,l,u){if(o)switch(o){case"t":return" ";case"b":return"\b";case"n":return` + */const aar="http://www.w3.org/1999/02/22-rdf-syntax-ns#",RNe=aar+"langString",xNe="http://www.w3.org/2001/XMLSchema#string",oS="NamedNode",i8="BlankNode",Yfe="Literal",NWt="DefaultGraph",iL={};(()=>{const n="(?:<([^:]+:[^>]*)>)",o="A-Za-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�"+"_",l=o+"0-9-·̀-ͯ‿-⁀",d="(_:(?:["+o+"0-9])(?:(?:["+l+".])*(?:["+l+"]))?)",h='"([^"\\\\]*(?:\\\\.[^"\\\\]*)*)"',w="(?:\\^\\^"+n+")",y="(?:"+h+"(?:"+w+"|"+"(?:@([a-zA-Z]+(?:-[a-zA-Z0-9]+)*))"+")?)",E="[ \\t]+",A="[ \\t]*",C="(?:"+n+"|"+d+")"+E,R=n+E,O="(?:"+n+"|"+d+"|"+y+")"+A,M="(?:\\.|(?:(?:"+n+"|"+d+")"+A+"\\.))";iL.eoln=/(?:\r\n)|(?:\n)|(?:\r)/g,iL.empty=new RegExp("^"+A+"$"),iL.quad=new RegExp("^"+A+C+R+O+M+A+"$")})();var pUe=class Qfe{static parse(r){const o=[],l={},u=r.split(iL.eoln);let d=0;for(const h of u){if(d++,iL.empty.test(h))continue;const w=h.match(iL.quad);if(w===null)throw new Error("N-Quads parse error on line "+d+".");const v={subject:null,predicate:null,object:null,graph:null};if(w[1]!==void 0?v.subject={termType:oS,value:w[1]}:v.subject={termType:i8,value:w[2]},v.predicate={termType:oS,value:w[3]},w[4]!==void 0?v.object={termType:oS,value:w[4]}:w[5]!==void 0?v.object={termType:i8,value:w[5]}:(v.object={termType:Yfe,value:void 0,datatype:{termType:oS}},w[7]!==void 0?v.object.datatype.value=w[7]:w[8]!==void 0?(v.object.datatype.value=RNe,v.object.language=w[8]):v.object.datatype.value=xNe,v.object.value=har(w[6])),w[9]!==void 0?v.graph={termType:oS,value:w[9]}:w[10]!==void 0?v.graph={termType:i8,value:w[10]}:v.graph={termType:NWt,value:""},!(v.graph.value in l))l[v.graph.value]=[v],o.push(v);else{let y=!0;const E=l[v.graph.value];for(const A of E)if(car(A,v)){y=!1;break}y&&(E.push(v),o.push(v))}}return o}static serialize(r){Array.isArray(r)||(r=Qfe.legacyDatasetToQuads(r));const o=[];for(const l of r)o.push(Qfe.serializeQuad(l));return o.sort().join("")}static serializeQuadComponents(r,o,l,u){let d="";return r.termType===oS?d+=`<${r.value}>`:d+=`${r.value}`,d+=` <${o.value}> `,l.termType===oS?d+=`<${l.value}>`:l.termType===i8?d+=l.value:(d+=`"${far(l.value)}"`,l.datatype.value===RNe?l.language&&(d+=`@${l.language}`):l.datatype.value!==xNe&&(d+=`^^<${l.datatype.value}>`)),u.termType===oS?d+=` <${u.value}>`:u.termType===i8&&(d+=` ${u.value}`),d+=` . +`,d}static serializeQuad(r){return Qfe.serializeQuadComponents(r.subject,r.predicate,r.object,r.graph)}static legacyDatasetToQuads(r){const o=[],l={"blank node":i8,IRI:oS,literal:Yfe};for(const u in r)r[u].forEach(h=>{const w={};for(const v in h){const y=h[v],E={termType:l[y.type],value:y.value};E.termType===Yfe&&(E.datatype={termType:oS},"datatype"in y&&(E.datatype.value=y.datatype),"language"in y?("datatype"in y||(E.datatype.value=RNe),E.language=y.language):"datatype"in y||(E.datatype.value=xNe)),w[v]=E}u==="@default"?w.graph={termType:NWt,value:""}:w.graph={termType:u.startsWith("_:")?i8:oS,value:u},o.push(w)});return o}};function car(n,r){return!(n.subject.termType===r.subject.termType&&n.object.termType===r.object.termType)||!(n.subject.value===r.subject.value&&n.predicate.value===r.predicate.value&&n.object.value===r.object.value)?!1:n.object.termType!==Yfe?!0:n.object.datatype.termType===r.object.datatype.termType&&n.object.language===r.object.language&&n.object.datatype.value===r.object.datatype.value}const uar=/["\\\n\r]/g;function far(n){return n.replace(uar,function(r){switch(r){case'"':return'\\"';case"\\":return"\\\\";case` +`:return"\\n";case"\r":return"\\r"}})}const dar=/(?:\\([tbnrf"'\\]))|(?:\\u([0-9A-Fa-f]{4}))|(?:\\U([0-9A-Fa-f]{8}))/g;function har(n){return n.replace(dar,function(r,o,l,u){if(o)switch(o){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(l)return String.fromCharCode(parseInt(l,16));if(u)throw new Error("Unsupported U escape")})}/*! * Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved. - */const AWt=lUe,Jlr=Xpe,Ylr=qnn,TWt=aUe;var cUe=class{constructor({createMessageDigest:r=()=>new Jlr("sha256"),canonicalIdMap:o=new Map,maxDeepIterations:l=1/0}={}){this.name="URDNA2015",this.blankNodeInfo=new Map,this.canonicalIssuer=new AWt("_:c14n",o),this.createMessageDigest=r,this.maxDeepIterations=l,this.quads=null,this.deepIterations=null}main(r){this.deepIterations=new Map,this.quads=r;for(const w of r)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,l=[...this.blankNodeInfo.keys()];for(const w of l)this._hashAndTrackBlankNode({id:w,hashToBlankNodes:o});const u=[...o.keys()].sort(),d=[];for(const w of u){const v=o.get(w);if(v.length>1){d.push(v);continue}const y=v[0];this.canonicalIssuer.getId(y)}for(const w of d){const v=[];for(const y of w){if(this.canonicalIssuer.hasId(y))continue;const E=new AWt("_:b");E.getId(y);const A=this.hashNDegreeQuads(y,E);v.push(A)}v.sort(Qlr);for(const y of v){const E=y.issuer.getOldIds();for(const A of E)this.canonicalIssuer.getId(A)}}const h=[];for(const w of this.quads){const v=TWt.serializeQuadComponents(this._componentWithCanonicalId({component:w.subject}),w.predicate,this._componentWithCanonicalId({component:w.object}),this._componentWithCanonicalId({component:w.graph}));h.push(v)}return h.sort(),h.join("")}hashFirstDegreeQuads(r){const o=[],l=this.blankNodeInfo.get(r),u=l.quads;for(const h of u){const w={subject:null,predicate:h.predicate,object:null,graph:null};w.subject=this.modifyFirstDegreeComponent(r,h.subject,"subject"),w.object=this.modifyFirstDegreeComponent(r,h.object,"object"),w.graph=this.modifyFirstDegreeComponent(r,h.graph,"graph"),o.push(TWt.serializeQuad(w))}o.sort();const d=this.createMessageDigest();for(const h of o)d.update(h);return l.hash=d.digest(),l.hash}hashRelatedBlankNode(r,o,l,u){let d;this.canonicalIssuer.hasId(r)?d=this.canonicalIssuer.getId(r):l.hasId(r)?d=l.getId(r):d=this.blankNodeInfo.get(r).hash;const h=this.createMessageDigest();return h.update(u),u!=="g"&&h.update(this.getRelatedPredicate(o)),h.update(d),h.digest()}hashNDegreeQuads(r,o){const l=this.deepIterations.get(r)||0;if(l>this.maxDeepIterations)throw new Error(`Maximum deep iterations (${this.maxDeepIterations}) exceeded.`);this.deepIterations.set(r,l+1);const u=this.createMessageDigest(),d=this.createHashToRelated(r,o),h=[...d.keys()].sort();for(const w of h){u.update(w);let v="",y;const E=new Ylr(d.get(w));for(;E.hasNext();){const A=E.next();let C=o.clone(),R="";const O=[];let M=!1;for(const L of A)if(this.canonicalIssuer.hasId(L)?R+=this.canonicalIssuer.getId(L):(C.hasId(L)||O.push(L),R+=C.getId(L)),v.length!==0&&R>v){M=!0;break}if(!M){for(const L of O){const H=this.hashNDegreeQuads(L,C);if(R+=C.getId(L),R+=`<${H.hash}>`,C=H.issuer,v.length!==0&&R>v){M=!0;break}}M||(v.length===0||R`}createHashToRelated(r,o){const l=new Map,u=this.blankNodeInfo.get(r).quads;for(const d of u)this._addRelatedBlankNodeHash({quad:d,component:d.subject,position:"s",id:r,issuer:o,hashToRelated:l}),this._addRelatedBlankNodeHash({quad:d,component:d.object,position:"o",id:r,issuer:o,hashToRelated:l}),this._addRelatedBlankNodeHash({quad:d,component:d.graph,position:"g",id:r,issuer:o,hashToRelated:l});return l}_hashAndTrackBlankNode({id:r,hashToBlankNodes:o}){const l=this.hashFirstDegreeQuads(r),u=o.get(l);u?u.push(r):o.set(l,[r])}_addBlankNodeQuadInfo({quad:r,component:o}){if(o.termType!=="BlankNode")return;const l=o.value,u=this.blankNodeInfo.get(l);u?u.quads.add(r):this.blankNodeInfo.set(l,{quads:new Set([r]),hash:null})}_addRelatedBlankNodeHash({quad:r,component:o,position:l,id:u,issuer:d,hashToRelated:h}){if(!(o.termType==="BlankNode"&&o.value!==u))return;const w=o.value,v=this.hashRelatedBlankNode(w,r,d,l),y=h.get(v);y?y.push(w):h.set(v,[w])}_componentWithCanonicalId({component:r}){return r.termType==="BlankNode"&&!r.value.startsWith(this.canonicalIssuer.prefix)?{termType:"BlankNode",value:this.canonicalIssuer.getId(r.value)}:r}};function Qlr(n,r){return n.hashr.hash?1:0}const Zlr=cUe;function ear(n){return new Zlr().main(n)}var tar=ear;const Xnn=cv(tar);function nar(n,r){for(const o of r)n.add(o);return n}var rar=nar;const Tje=cv(rar);function iar(n,r,o,l,u){const d=n.match(r,o,l,u);for(const h of d)n.delete(h);return n}var oar=iar;const Jnn=cv(oar);function sar(n,r){if(n.size!==r.size)return!1;for(const o of n)if(!r.has(o))return!1;return!0}var lar=sar;const Ynn=cv(lar),aar=n=>class{constructor(){n7e(this,"dataset")}init(){const r=n(this);this.dataset=(o=[])=>new r([...o]),this.dataset.Class=r,this.dataset.addAll=Tje,this.dataset.deleteMatch=Jnn,this.dataset.equals=Ynn}},car=n=>class extends aar(n){init(){super.init(),this.dataset.toCanonical=Xnn,this.dataset.toStream=Ann,this.dataset.fromStream=r=>znn(this.dataset(),r)}};let uUe=class{namespace(r){return Kn(r,{factory:this})}};uUe.exports=["namespace"];const fUe=n=>{const r=n.namespace("http://www.w3.org/2001/XMLSchema#"),o=n.namespace("http://www.w3.org/1999/02/22-rdf-syntax-ns#");return{first:o.first,nil:o.nil,rest:o.rest,langString:o.langString,xsd:r}};function S0(n,r){return typeof n>"u"||n===null?r:Array.isArray(n)?n:typeof n!="string"&&n[Symbol.iterator]?[...n]:[n]}const QP=new WWe([uUe,tJ]),{xsd:$je}=fUe(QP);function uar(n,r=QP){return typeof n!="boolean"?null:r.literal(n.toString(),$je("boolean"))}function far(n,r=QP){return typeof n!="number"?null:Number.isInteger(n)?r.literal(n.toString(10),$je("integer")):r.literal(n.toString(10),$je("double"))}function dar(n,r=QP){return typeof n!="string"?null:r.literal(n)}function har(n,r=QP){return uar(n,r)||far(n,r)||dar(n,r)}function par(n,r){if(n&&typeof n!="string")throw new Error("Blank node identifier must be a string");return r.blankNode(n)}function bar(n,r,o){if(typeof n=="string")return r=r&&(r.value||r.toString()),r&&r.indexOf(":")!==-1&&(r=o.namedNode(r)),o.literal(n.toString(),r);const l=har(n,o);if(!l)throw new Error("The value cannot be converted to a literal node");return l}function $Wt(n,r){if(typeof n!="string")throw new Error("Named node must be an IRI string");return r.namedNode(n)}function Qnn(n,r="Literal",o,l){if(n&&typeof n=="object"&&n.termType)return n;if(n&&n.constructor.name==="URL")return $Wt(n.toString(),l);if(r==="BlankNode")return par(n,l);if(!(n===null||typeof n>"u")){if(r==="Literal")return bar(n,o,l);if(r==="NamedNode")return $Wt(n,l);throw new Error("unknown type")}}function gar(n,r,o,l){return(typeof n>"u"||n===null)&&!r?n:(S0(n)||[void 0]).reduce((u,d)=>typeof d=="object"&&d.terms?u.concat(d.terms):(u.push(Qnn(d,r,o,l)),u),[])}const IWt=fUe(QP);function war(n,r){const o=r.termType!=="Literal",l=IWt.langString.equals(r.datatype)||IWt.xsd.string.equals(r.datatype);if(o||!l)return n;const u=r.language.toLowerCase();return n.has(u)?n.get(u).push(r):n.set(u,[r]),n}function mar(n){const r=n.reduce(war,new Map),o=[...r.entries()];return l=>{const u=l.toLowerCase();if(u==="*")return o[0]&&o[0][1];const d=r.get(u);if(d)return d;const h=o.find(([w])=>w.startsWith(u));return h&&h[1]}}function yar(n,{language:r}){const o=typeof r=="string"?[r]:r,l=mar(n);return o.map(l).find(Boolean)||[]}class dUe{constructor({dataset:r,graph:o,value:l,factory:u,namespace:d}){this.dataset=r,this.graph=o,this.factory=u,this.namespace=d,this.term=Qnn(l,void 0,void 0,u)}clone({dataset:r=this.dataset,graph:o=this.graph,value:l,factory:u=this.factory,namespace:d=this.namespace}){return new dUe({dataset:r,graph:o,value:l,factory:u,namespace:d})}has(r,o){return this.matchProperty(S0(this.term),r,o,S0(this.graph),"subject").map(l=>this.clone({value:l}))}in(r){return this.matchProperty(null,r,S0(this.term),S0(this.graph),"subject").map(o=>this.clone({value:o}))}out(r,{language:o}={}){let l=this.matchProperty(S0(this.term),r,null,S0(this.graph),"object");return typeof o<"u"&&(l=yar(l,{language:o})),l.map(u=>this.clone({value:u}))}addIn(r,o){const l=[];return this.term&&o.forEach(u=>{r.forEach(d=>{this.dataset.add(this.factory.quad(u,d,this.term,this.graph))}),l.push(this.clone({value:u}))}),l}addOut(r,o){const l=[];return this.term&&o.forEach(u=>{r.forEach(d=>{this.dataset.add(this.factory.quad(this.term,d,u,this.graph))}),l.push(this.clone({value:u}))}),l}addList(r,o){this.term&&r.forEach(l=>{const u=o.map(()=>this.factory.blankNode());this.dataset.add(this.factory.quad(this.term,l,u[0]||this.namespace.nil,this.graph));for(let d=0;d{for(const l of this.dataset.match(this.term,o))this.deleteItems(l)})}deleteItems(r){let o=[r];for(;!o[o.length-1].object.equals(this.namespace.nil);){const l=o[o.length-1].object;o=o.concat([...this.dataset.match(l)])}o.forEach(l=>{this.dataset.delete(l)})}match(r,o,l,u){if(!r&&!o&&!l&&!u)return[...this.dataset];r=r||[null],o=o||[null],l=l||[null],u=u||[null];const d=[];for(const h of u)for(const w of r)for(const v of o)for(const y of l)for(const E of this.dataset.match(w,v,y,h))d.push(E);return d}matchProperty(r,o,l,u,d){return this.match(r,o,l,u).map(h=>h[d])}deleteMatch(r,o,l,u){this.match(r,o,l,u).forEach(d=>{this.dataset.delete(d)})}}class _0{constructor({dataset:r,graph:o,term:l,value:u,factory:d,_context:h}){if(this.factory=d,this.namespace=fUe(d),h){this._context=h;return}const w=l&&S0(l)||u&&S0(u)||[null];this._context=w.map(v=>new dUe({dataset:r,graph:o,value:v,factory:this.factory,namespace:this.namespace}))}get term(){const r=this.terms;if(r.length===1)return r[0]}get terms(){return this._context.map(r=>r.term).filter(Boolean)}get value(){const r=this.term;return r&&r.value}get values(){return this.terms.map(r=>r.value)}get dataset(){const r=this.datasets;if(r.length===1)return r[0]}get datasets(){return this._context.map(r=>r.dataset).filter(Boolean)}any(){return _0.fromContext(this._context.map(r=>r.clone({})),this)}isList(){return this.term?!!(this.term.equals(this.namespace.nil)||this.out(this.namespace.first).term):!1}list(){if(this.terms.length>1)throw new Error("iterator over multiple terms is not supported");if(this.term&&(this.term.termType!=="NamedNode"&&this.term.termType!=="BlankNode"||!this.term.equals(this.namespace.nil)&&!this.out(this.namespace.first).term))return null;let r=this;return{[Symbol.iterator]:()=>({next:()=>{if(!r.term||r.term.equals(this.namespace.nil))return{done:!0};const o=r.out(this.namespace.first);if(o.terms.length>1)throw new Error(`Invalid list: multiple values for rdf:first on ${r.value}`);const l=r.out(this.namespace.rest);if(l.terms.length>1)throw new Error(`Invalid list: multiple values for rdf:rest on ${r.value}`);return r=l,{done:!1,value:o}}})}}toArray(){return this._context.map(r=>_0.fromContext(r,this)).filter(r=>r.terms.some(Boolean))}filter(r){const o=this._context.map(l=>_0.fromContext(l,this));return _0.fromContext(this._context.filter((l,u)=>r(_0.fromContext(l,this),u,o)),this)}forEach(r){return this.toArray().forEach(r),this}map(r){return this.toArray().map(r)}toString(){return this.values.join()}node(r,{type:o,datatype:l,language:u}={}){r=this._toTermArray(r,o,l||u)||[null];const d=r.reduce((h,w)=>h.concat(this._context.reduce((v,y)=>v.concat([y.clone({value:w})]),[])),[]);return _0.fromContext(d,{factory:this.factory})}blankNode(r){return this.node(r,{type:"BlankNode"})}literal(r,o){return this.node(r,{type:"Literal",datatype:o})}namedNode(r){return this.node(r,{type:"NamedNode"})}in(r){r=this._toTermArray(r);const o=this._context.reduce((l,u)=>l.concat(u.in(r)),[]);return _0.fromContext(o,this)}out(r,o={}){r=this._toTermArray(r);const l=this._context.reduce((u,d)=>u.concat(d.out(r,o)),[]);return _0.fromContext(l,this)}has(r,o){r=this._toTermArray(r),o=this._toTermArray(o);const l=this._context.reduce((u,d)=>u.concat(d.has(r,o)),[]);return _0.fromContext(l,this)}addIn(r,o,l){if(!r)throw new Error("predicate parameter is required");typeof o=="function"&&(l=o,o=null),r=this._toTermArray(r),o=this._toTermArray(o)||[this.factory.blankNode()];const u=this._context.map(d=>d.addIn(r,o));return l&&_0.fromContext(u,this).forEach(l),this}addOut(r,o,l){if(!r)throw new Error("predicate parameter is required");typeof o=="function"&&(l=o,o=null),r=this._toTermArray(r),o=this._toTermArray(o)||[this.factory.blankNode()];const u=this._context.map(d=>d.addOut(r,o));return l&&_0.fromContext(u,this).forEach(l),this}addList(r,o){if(!r||!o)throw new Error("predicate and items parameter is required");return r=this._toTermArray(r),o=this._toTermArray(o),this._context.forEach(l=>l.addList(r,o)),this}deleteIn(r,o){return r=this._toTermArray(r),o=this._toTermArray(o),this._context.forEach(l=>l.deleteIn(r,o)),this}deleteOut(r,o){return r=this._toTermArray(r),o=this._toTermArray(o),this._context.forEach(l=>l.deleteOut(r,o)),this}deleteList(r){if(!r)throw new Error("predicate parameter is required");return r=this._toTermArray(r),this._context.forEach(o=>o.deleteList(r)),this}_toTermArray(r,o,l){return gar(r,o,l,this.factory)}static fromContext(r,{factory:o}){return new _0({_context:S0(r),factory:o})}}function _ar({dataset:n,graph:r,term:o,value:l,factory:u=QP,_context:d}){return new _0({dataset:n,graph:r,term:o,value:l,factory:u,_context:d})}class Znn{clownface({...r}={}){return!r.dataset&&typeof this.dataset=="function"&&(r.dataset=this.dataset()),_ar({...r,factory:this})}}Znn.exports=["clownface"];let ern=class{termMap(r){return new kK(r)}};ern.exports=["termMap"];function PWt(n){try{return _S(n)}catch{return null}}class Yde{constructor(r){if(this.index=new Map,r)for(const o of r)this.add(o)}get size(){return this.index.size}add(r){const o=_S(r);return this.index.has(o)||this.index.set(o,r),this}clear(){this.index.clear()}delete(r){return r?this.index.delete(PWt(r)):!1}entries(){return this.values().entries()}forEach(r,o){return this.values().forEach(r,o)}has(r){return r?this.index.has(PWt(r)):!1}values(){return new Set(this.index.values())}keys(){return this.values()}[Symbol.iterator](){return this.index.values()}}let trn=class{termSet(r){return new Yde(r)}};trn.exports=["termSet"];class Sar{constructor(){this.quadLevel=new Map}add(r,o){this.quadLevel.set(_S(r),o)}has(r,o){const l=this.quadLevel.get(_S(r));return l===void 0?!1:l<=o}}function SNe({backward:n,callback:r,dataset:o,filter:l,forward:u,term:d,visited:h=new Sar}){const w=(v,y)=>{const E=A=>{for(const C of A){if(h.has(C,y))continue;h.add(C,y);const R={dataset:o,level:y,quad:C};l(R)&&(r(R),u&&w(C.object,y+1),n&&w(C.subject,y+1))}};u&&E(o.match(v)),n&&E(o.match(null,null,v))};w(d,0)}class Ear{constructor(r,{backward:o=!1,factory:l,forward:u=!0}){this.backward=o,this.factory=l,this.filter=r,this.forward=u}forEach({term:r,dataset:o},l){SNe({backward:this.backward,callback:l,dataset:o,filter:this.filter,forward:this.forward,term:r})}match({term:r,dataset:o}){const l=this.factory.dataset();return SNe({backward:this.backward,callback:({quad:u})=>l.add(u),dataset:o,filter:this.filter,forward:this.forward,term:r}),l}reduce({term:r,dataset:o},l,u){let d=u;return SNe({backward:this.backward,callback:h=>{d=l(h,d)},dataset:o,filter:this.filter,forward:this.forward,term:r}),d}}class nrn{traverser(r,{backward:o=!1,forward:l=!0}={}){return new Ear(r,{backward:o,factory:this,forward:l})}}nrn.exports=["traverser"];const kar=new EX([tJ,rZt,uUe,_en,Znn,ern,trn,nrn]);function Rar(n,{checkOpen:r=!0}={}){return n!==null&&typeof n=="object"&&(n.writable||n.readable||!r||n.writable===void 0&&n.readable===void 0)&&typeof n.pipe=="function"}function xar(n,{checkOpen:r=!0}={}){return Rar(n,{checkOpen:r})&&(n.readable||!r)&&typeof n.read=="function"&&typeof n.readable=="boolean"&&typeof n.readableObjectMode=="boolean"&&typeof n.destroy=="function"&&typeof n.destroyed=="boolean"}const Car=Object.getPrototypeOf(Object.getPrototypeOf(async function*(){}).prototype);var NE,VX,dT,bS,tj,rrn,irn;class Aar{constructor(r,o){J5(this,tj);J5(this,NE);J5(this,VX);J5(this,dT,!1);J5(this,bS);_E(this,NE,r),_E(this,VX,o)}next(){const r=()=>i7e(this,tj,rrn).call(this);return _E(this,bS,Hp(this,bS)?Hp(this,bS).then(r,r):r()),Hp(this,bS)}return(r){const o=()=>i7e(this,tj,irn).call(this,r);return Hp(this,bS)?Hp(this,bS).then(o,o):o()}}NE=new WeakMap,VX=new WeakMap,dT=new WeakMap,bS=new WeakMap,tj=new WeakSet,rrn=async function(){if(Hp(this,dT))return{done:!0,value:void 0};let r;try{r=await Hp(this,NE).read()}catch(o){throw _E(this,bS,void 0),_E(this,dT,!0),Hp(this,NE).releaseLock(),o}return r.done&&(_E(this,bS,void 0),_E(this,dT,!0),Hp(this,NE).releaseLock()),r},irn=async function(r){if(Hp(this,dT))return{done:!0,value:r};if(_E(this,dT,!0),!Hp(this,VX)){const o=Hp(this,NE).cancel(r);return Hp(this,NE).releaseLock(),await o,{done:!0,value:r}}return Hp(this,NE).releaseLock(),{done:!0,value:r}};const hUe=Symbol();function orn(){return this[hUe].next()}Object.defineProperty(orn,"name",{value:"next"});function srn(n){return this[hUe].return(n)}Object.defineProperty(srn,"name",{value:"return"});const Tar=Object.create(Car,{next:{enumerable:!0,configurable:!0,writable:!0,value:orn},return:{enumerable:!0,configurable:!0,writable:!0,value:srn}});function $ar({preventCancel:n=!1}={}){const r=this.getReader(),o=new Aar(r,n),l=Object.create(Tar);return l[hUe]=o,l}const Iar=n=>{if(xar(n,{checkOpen:!1})&&pUe.on!==void 0)return Oar(n);if(typeof(n==null?void 0:n[Symbol.asyncIterator])=="function")return n;if(Par.call(n)==="[object ReadableStream]")return $ar.call(n);throw new TypeError("The first argument must be a Readable, a ReadableStream, or an async iterable.")},{toString:Par}=Object.prototype,Oar=async function*(n){const r=new AbortController,o={};Nar(n,r,o);try{for await(const[l]of pUe.on(n,"data",{signal:r.signal}))yield l}catch(l){if(o.error!==void 0)throw o.error;if(!r.signal.aborted)throw l}finally{n.destroy()}},Nar=async(n,r,o)=>{try{await pUe.finished(n,{cleanup:!0,readable:!0,writable:!1,error:!1})}catch(l){o.error=l}finally{r.abort()}},pUe={},Mar=async(n,{init:r,convertChunk:o,getSize:l,truncateChunk:u,addChunk:d,getFinalChunk:h,finalize:w},{maxBuffer:v=Number.POSITIVE_INFINITY}={})=>{const y=Iar(n),E=r();E.length=0;try{for await(const A of y){const C=Lar(A),R=o[C](A,E);lrn({convertedChunk:R,state:E,getSize:l,truncateChunk:u,addChunk:d,maxBuffer:v})}return Dar({state:E,convertChunk:o,getSize:l,truncateChunk:u,addChunk:d,getFinalChunk:h,maxBuffer:v}),w(E)}catch(A){const C=typeof A=="object"&&A!==null?A:new Error(A);throw C.bufferedData=w(E),C}},Dar=({state:n,getSize:r,truncateChunk:o,addChunk:l,getFinalChunk:u,maxBuffer:d})=>{const h=u(n);h!==void 0&&lrn({convertedChunk:h,state:n,getSize:r,truncateChunk:o,addChunk:l,maxBuffer:d})},lrn=({convertedChunk:n,state:r,getSize:o,truncateChunk:l,addChunk:u,maxBuffer:d})=>{const h=o(n),w=r.length+h;if(w<=d){OWt(n,r,u,w);return}const v=l(n,d-r.length);throw v!==void 0&&OWt(v,r,u,d),new jar},OWt=(n,r,o,l)=>{r.contents=o(n,r,l),r.length=l},Lar=n=>{var l;const r=typeof n;if(r==="string")return"string";if(r!=="object"||n===null)return"others";if((l=globalThis.Buffer)!=null&&l.isBuffer(n))return"buffer";const o=NWt.call(n);return o==="[object ArrayBuffer]"?"arrayBuffer":o==="[object DataView]"?"dataView":Number.isInteger(n.byteLength)&&Number.isInteger(n.byteOffset)&&NWt.call(n.buffer)==="[object ArrayBuffer]"?"typedArray":"others"},{toString:NWt}=Object.prototype;class jar extends Error{constructor(){super("maxBuffer exceeded");n7e(this,"name","MaxBufferError")}}const Far=n=>n,Bar=({contents:n})=>n,War=n=>{throw new Error(`Streams in object mode are not supported: ${String(n)}`)},Har=n=>n.length;async function Uar(n,r){return Mar(n,qar,r)}const Gar=()=>({contents:"",textDecoder:new TextDecoder}),uue=(n,{textDecoder:r})=>r.decode(n,{stream:!0}),Var=(n,{contents:r})=>r+n,zar=(n,r)=>n.slice(0,r),Kar=({textDecoder:n})=>{const r=n.decode();return r===""?void 0:r},qar={init:Gar,convertChunk:{string:Far,buffer:uue,arrayBuffer:uue,dataView:uue,typedArray:uue,others:War},getSize:Har,truncateChunk:zar,addChunk:Var,getFinalChunk:Kar,finalize:Bar};function o8(n){return typeof n=="string"||n instanceof String}const Xar="http://www.w3.org/2001/XMLSchema#string";function Hd(n){if(typeof n=="string")return n;if(!n)return"";if(typeof n.id<"u"&&n.termType!=="Quad")return n.id;let r,o,l,u;switch(n.termType){case"NamedNode":return n.value;case"BlankNode":return`_:${n.value}`;case"Variable":return`?${n.value}`;case"DefaultGraph":return"";case"Literal":return n.language?`"${n.value}"@${n.language}`:`"${n.value}"${n.datatype&&n.datatype.value!==Xar?`^^${n.datatype.value}`:""}`;case"Quad":return r=ENe(Hd(n.subject)),o=ENe(Hd(n.predicate)),l=ENe(Hd(n.object)),u=n.graph.termType==="DefaultGraph"?"":` ${Hd(n.graph)}`,`<<${r} ${o} ${l}${u}>>`;default:throw new Error(`Unexpected termType: ${n.termType}`)}}const Jar=/^"(.*".*)(?="[^"]*$)/;function ENe(n){return n.replace(Jar,(r,o)=>`"${o.replace(/"/g,'""')}`)}class Yar{constructor(r){if(this._size=0,this._graphs=Object.create(null),this._id=0,this._ids=Object.create(null),this._ids["><"]=0,this._entities=Object.create(null),this._quads=new Map,r)for(const o of r)this.add(o)}get size(){let r=this._size;if(r!==null)return r;r=0;const o=this._graphs;let l,u;for(const d in o)for(const h in l=o[d].subjects)for(const w in u=l[h])r+=Object.keys(u[w]).length;return this._size=r,this._size}add(r){let o=Hd(r.subject),l=Hd(r.predicate),u=Hd(r.object);const d=Hd(r.graph);let h=this._graphs[d];h||(h=this._graphs[d]={subjects:{},predicates:{},objects:{}},Object.freeze(h));const w=this._ids,v=this._entities;return o=w[o]||(w[v[++this._id]=o]=this._id),l=w[l]||(w[v[++this._id]=l]=this._id),u=w[u]||(w[v[++this._id]=u]=this._id),this._addToIndex(h.subjects,o,l,u),this._addToIndex(h.predicates,l,u,o),this._addToIndex(h.objects,u,o,l),this._setQuad(o,l,u,d,r),this._size=null,this}delete(r){let o=Hd(r.subject),l=Hd(r.predicate),u=Hd(r.object);const d=Hd(r.graph),h=this._ids,w=this._graphs;let v,y,E;if(!(o=h[o])||!(l=h[l])||!(u=h[u])||!(v=w[d])||!(y=v.subjects[o])||!(E=y[l])||!(u in E))return this;this._removeFromIndex(v.subjects,o,l,u),this._removeFromIndex(v.predicates,l,u,o),this._removeFromIndex(v.objects,u,o,l),this._size!==null&&this._size--,this._deleteQuad(o,l,u,d);for(o in v.subjects)return this;return delete w[d],this}has(r){const o=Hd(r.subject),l=Hd(r.predicate),u=Hd(r.object),d=Hd(r.graph),h=this._graphs[d];if(!h)return!1;const w=this._ids;let v,y,E;return o8(o)&&!(v=w[o])||o8(l)&&!(y=w[l])||o8(u)&&!(E=w[u])?!1:this._countInIndex(h.objects,E,v,y)===1}match(r,o,l,u){return this._createDataset(this._match(r,o,l,u))}[Symbol.iterator](){return this._match()[Symbol.iterator]()}_addToIndex(r,o,l,u){const d=r[o]||(r[o]={}),h=d[l]||(d[l]={}),w=u in h;return w||(h[u]=null),!w}_removeFromIndex(r,o,l,u){const d=r[o],h=d[l];delete h[u];for(const w in h)return;delete d[l];for(const w in d)return;delete r[o]}_findInIndex(r,o,l,u,d,h,w,v,y,E){let A,C,R;o&&((A=r,r={})[o]=A[o]);for(const O in r)if(C=r[O],C){l&&((A=C,C={})[l]=A[l]);for(const M in C)if(R=C[M],R){const L=u?u in R?[u]:[]:Object.keys(R);for(let H=0;Hr(o,this))}filter(r){return new this.constructor([...this].filter(o=>r(o,this)))}map(r){return new this.constructor([...this].map(o=>r(o,this)))}match(...r){return super.match(...r)}merge(...[r]){return Tje(new this.constructor([...this]),r)}}function Zar(n){return class extends Qar{import(...[r]){return znn(this,r)}toCanonical(){return Xnn(this)}toStream(){return Ann(this)}async serialize({format:r,prefixes:o=[]}){const l=n.formats.serializers.get(r);return l?Uar(l.import(this.toStream(),{prefixes:o.reduce((u,d)=>Array.isArray(d)?{...u,[d[0]]:d[1]}:d in tje?{...u,[d]:tje[d]}:u,{})})):this.toCanonical()}}}function ecr(){return new EX([car(Zar)],{parent:kar})}const arn=ecr();class Jpe{constructor(r,o){this.Impl=r,this.options=o}import(r,o){const l=new this.Impl(r,{...this.options,...o});return r.on("end",()=>{l.readable||l.emit("end")}),r.on("error",u=>{l.emit("error",u)}),l}}const kNe=new Set(["_write","_writableState","writable"]);function bUe(n){return new Proxy(n,{has(r,o){return kNe.has(o)?!1:Reflect.has(...arguments)},get(r,o){if(kNe.has(o))return;const l=Reflect.get(...arguments);return l&&typeof l.bind=="function"?l.bind(r):l},set(r,o,l){if(!kNe.has(o))return Reflect.set(...arguments)}})}var crn={},nK={},{Buffer:uT}=Kr,gl={},urn=gl.LEFT_BRACE=1,Jfe=gl.RIGHT_BRACE=2,frn=gl.LEFT_BRACKET=3,Ije=gl.RIGHT_BRACKET=4,Yfe=gl.COLON=5,Qde=gl.COMMA=6,drn=gl.TRUE=7,hrn=gl.FALSE=8,prn=gl.NULL=9,Zde=gl.STRING=10,brn=gl.NUMBER=11,k8=gl.START=17,grn=gl.STOP=18,MWt=gl.TRUE1=33,DWt=gl.TRUE2=34,LWt=gl.TRUE3=35,jWt=gl.FALSE1=49,FWt=gl.FALSE2=50,BWt=gl.FALSE3=51,WWt=gl.FALSE4=52,HWt=gl.NULL1=65,UWt=gl.NULL2=66,GWt=gl.NULL3=67,VWt=gl.NUMBER1=81,RNe=gl.NUMBER3=83,sS=gl.STRING1=97,zWt=gl.STRING2=98,KWt=gl.STRING3=99,tcr=gl.STRING4=100,ncr=gl.STRING5=101,qWt=gl.STRING6=102,HD=gl.VALUE=113,xNe=gl.KEY=114,fue=gl.OBJECT=129,due=gl.ARRAY=130,rcr=92,icr=47,ocr=8,scr=12,lcr=10,acr=13,ccr=9,gUe=64*1024;function hue(n){return uT.alloc?uT.alloc(n):new uT(n)}function TT(){this.tState=k8,this.value=void 0,this.string=void 0,this.stringBuffer=hue(gUe),this.stringBufferOffset=0,this.unicode=void 0,this.highSurrogate=void 0,this.key=void 0,this.mode=void 0,this.stack=[],this.state=HD,this.bytes_remaining=0,this.bytes_in_sequence=0,this.temp_buffs={2:hue(2),3:hue(3),4:hue(4)},this.offset=-1}TT.toknam=function(n){for(var r=Object.keys(gl),o=0,l=r.length;o=gUe&&(this.string+=this.stringBuffer.toString("utf8"),this.stringBufferOffset=0),this.stringBuffer[this.stringBufferOffset++]=n};am.appendStringBuf=function(n,r,o){var l=n.length;typeof r=="number"&&(typeof o=="number"?o<0?l=n.length-r+o:l=o-r:l=n.length-r),l<0&&(l=0),this.stringBufferOffset+l>gUe&&(this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0),n.copy(this.stringBuffer,this.stringBufferOffset,r,o),this.stringBufferOffset+=l};am.write=function(n){typeof n=="string"&&(n=new uT(n));for(var r,o=0,l=n.length;o=48&&r<64)this.string=String.fromCharCode(r),this.tState=RNe;else if(!(r===32||r===9||r===10||r===13))return this.charError(n,o)}else if(this.tState===sS)if(r=n[o],this.bytes_remaining>0){for(var u=0;u=128){if(r<=193||r>244)return this.onError(new Error("Invalid UTF-8 character at position "+o+" in state "+TT.toknam(this.tState)));if(r>=194&&r<=223&&(this.bytes_in_sequence=2),r>=224&&r<=239&&(this.bytes_in_sequence=3),r>=240&&r<=244&&(this.bytes_in_sequence=4),this.bytes_in_sequence+o>n.length){for(var d=0;d<=n.length-1-o;d++)this.temp_buffs[this.bytes_in_sequence][d]=n[o+d];this.bytes_remaining=o+this.bytes_in_sequence-n.length,o=n.length-1}else this.appendStringBuf(n,o,o+this.bytes_in_sequence),o=o+this.bytes_in_sequence-1}else if(r===34)this.tState=k8,this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0,this.onToken(Zde,this.string),this.offset+=uT.byteLength(this.string,"utf8")+1,this.string=void 0;else if(r===92)this.tState=zWt;else if(r>=32)this.appendStringChar(r);else return this.charError(n,o);else if(this.tState===zWt)if(r=n[o],r===34)this.appendStringChar(r),this.tState=sS;else if(r===92)this.appendStringChar(rcr),this.tState=sS;else if(r===47)this.appendStringChar(icr),this.tState=sS;else if(r===98)this.appendStringChar(ocr),this.tState=sS;else if(r===102)this.appendStringChar(scr),this.tState=sS;else if(r===110)this.appendStringChar(lcr),this.tState=sS;else if(r===114)this.appendStringChar(acr),this.tState=sS;else if(r===116)this.appendStringChar(ccr),this.tState=sS;else if(r===117)this.unicode="",this.tState=KWt;else return this.charError(n,o);else if(this.tState===KWt||this.tState===tcr||this.tState===ncr||this.tState===qWt)if(r=n[o],r>=48&&r<64||r>64&&r<=70||r>96&&r<=102){if(this.unicode+=String.fromCharCode(r),this.tState++===qWt){var h=parseInt(this.unicode,16);this.unicode=void 0,this.highSurrogate!==void 0&&h>=56320&&h<57344?(this.appendStringBuf(new uT(String.fromCharCode(this.highSurrogate,h))),this.highSurrogate=void 0):this.highSurrogate===void 0&&h>=55296&&h<56320?this.highSurrogate=h:(this.highSurrogate!==void 0&&(this.appendStringBuf(new uT(String.fromCharCode(this.highSurrogate))),this.highSurrogate=void 0),this.appendStringBuf(new uT(String.fromCharCode(h)))),this.tState=sS}}else return this.charError(n,o);else if(this.tState===VWt||this.tState===RNe)switch(r=n[o],r){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(r),this.tState=RNe;break;default:this.tState=k8;var w=this.numberReviver(this.string,n,o);if(w)return w;this.offset+=this.string.length-1,this.string=void 0,o--;break}else if(this.tState===MWt)if(n[o]===114)this.tState=DWt;else return this.charError(n,o);else if(this.tState===DWt)if(n[o]===117)this.tState=LWt;else return this.charError(n,o);else if(this.tState===LWt)if(n[o]===101)this.tState=k8,this.onToken(drn,!0),this.offset+=3;else return this.charError(n,o);else if(this.tState===jWt)if(n[o]===97)this.tState=FWt;else return this.charError(n,o);else if(this.tState===FWt)if(n[o]===108)this.tState=BWt;else return this.charError(n,o);else if(this.tState===BWt)if(n[o]===115)this.tState=WWt;else return this.charError(n,o);else if(this.tState===WWt)if(n[o]===101)this.tState=k8,this.onToken(hrn,!1),this.offset+=4;else return this.charError(n,o);else if(this.tState===HWt)if(n[o]===117)this.tState=UWt;else return this.charError(n,o);else if(this.tState===UWt)if(n[o]===108)this.tState=GWt;else return this.charError(n,o);else if(this.tState===GWt)if(n[o]===108)this.tState=k8,this.onToken(prn,null),this.offset+=3;else return this.charError(n,o)};am.onToken=function(n,r){};am.parseError=function(n,r){this.tState=grn,this.onError(new Error("Unexpected "+TT.toknam(n)+(r?"("+JSON.stringify(r)+")":"")+" in state "+TT.toknam(this.state)))};am.push=function(){this.stack.push({value:this.value,key:this.key,mode:this.mode})};am.pop=function(){var n=this.value,r=this.stack.pop();this.value=r.value,this.key=r.key,this.mode=r.mode,this.emit(n),this.mode||(this.state=HD)};am.emit=function(n){this.mode&&(this.state=Qde),this.onValue(n)};am.onValue=function(n){};am.onToken=function(n,r){if(this.state===HD)if(n===Zde||n===brn||n===drn||n===hrn||n===prn)this.value&&(this.value[this.key]=r),this.emit(r);else if(n===urn)this.push(),this.value?this.value=this.value[this.key]={}:this.value={},this.key=void 0,this.state=xNe,this.mode=fue;else if(n===frn)this.push(),this.value?this.value=this.value[this.key]=[]:this.value=[],this.key=0,this.mode=due,this.state=HD;else if(n===Jfe)if(this.mode===fue)this.pop();else return this.parseError(n,r);else if(n===Ije)if(this.mode===due)this.pop();else return this.parseError(n,r);else return this.parseError(n,r);else if(this.state===xNe)if(n===Zde)this.key=r,this.state=Yfe;else if(n===Jfe)this.pop();else return this.parseError(n,r);else if(this.state===Yfe)if(n===Yfe)this.state=HD;else return this.parseError(n,r);else if(this.state===Qde)if(n===Qde)this.mode===due?(this.key++,this.state=HD):this.mode===fue&&(this.state=xNe);else if(n===Ije&&this.mode===due||n===Jfe&&this.mode===fue)this.pop();else return this.parseError(n,r);else return this.parseError(n,r)};am.numberReviver=function(n,r,o){var l=Number(n);if(isNaN(l))return this.charError(r,o);n.match(/[0-9]+/)==n&&l.toString()!=n?this.onToken(Zde,n):this.onToken(brn,l)};TT.C=gl;var ucr=TT,a1={},Ype={},gJ={},vT={};Object.defineProperty(vT,"__esModule",{value:!0});vT.removeDotSegmentsOfPath=vT.removeDotSegments=vT.resolve=void 0;function fcr(n,r){r=r||"";const o=r.indexOf("#");if(o>0&&(r=r.substr(0,o)),!n.length){if(r.indexOf(":")<0)throw new Error(`Found invalid baseIRI '${r}' for value '${n}'`);return r}if(n.startsWith("?")){const y=r.indexOf("?");return y>0&&(r=r.substr(0,y)),r+n}if(n.startsWith("#"))return r+n;if(!r.length){const y=n.indexOf(":");if(y<0)throw new Error(`Found invalid relative IRI '${n}' for a missing baseIRI`);return R8(n,y)}const l=n.indexOf(":");if(l>=0)return R8(n,l);const u=r.indexOf(":");if(u<0)throw new Error(`Found invalid baseIRI '${r}' for value '${n}'`);const d=r.substr(0,u+1);if(n.indexOf("//")===0)return d+R8(n,l);let h;if(r.indexOf("//",u)===u+1){if(h=r.indexOf("/",u+3),h<0)return r.length>u+3?r+"/"+R8(n,l):d+R8(n,l)}else if(h=r.indexOf("/",u+1),h<0)return d+R8(n,l);if(n.indexOf("/")===0)return r.substr(0,h)+ehe(n);let w=r.substr(h);const v=w.lastIndexOf("/");return v>=0&&vl.join("")).join("/")}vT.removeDotSegments=ehe;function R8(n,r){let o=r+1;r>=0?n[r+1]==="/"&&n[r+2]==="/"&&(o=r+3):n[0]==="/"&&n[1]==="/"&&(o=2);const l=n.indexOf("/",o);if(l<0)return n;const u=n.substr(0,l),d=n.substr(l);return u+ehe(d)}vT.removeDotSegmentsOfPath=R8;function XWt(n){return!n||n==="#"||n==="?"||n==="/"}(function(n){var r=fu&&fu.__createBinding||(Object.create?function(l,u,d,h){h===void 0&&(h=d),Object.defineProperty(l,h,{enumerable:!0,get:function(){return u[d]}})}:function(l,u,d,h){h===void 0&&(h=d),l[h]=u[d]}),o=fu&&fu.__exportStar||function(l,u){for(var d in l)d!=="default"&&!Object.prototype.hasOwnProperty.call(u,d)&&r(u,l,d)};Object.defineProperty(n,"__esModule",{value:!0}),o(vT,n)})(gJ);var pj={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.ERROR_CODES=n.ErrorCoded=void 0;class r extends Error{constructor(l,u){super(l),this.code=u}}n.ErrorCoded=r,function(o){o.COLLIDING_KEYWORDS="colliding keywords",o.CONFLICTING_INDEXES="conflicting indexes",o.CYCLIC_IRI_MAPPING="cyclic IRI mapping",o.INVALID_ID_VALUE="invalid @id value",o.INVALID_INDEX_VALUE="invalid @index value",o.INVALID_NEST_VALUE="invalid @nest value",o.INVALID_PREFIX_VALUE="invalid @prefix value",o.INVALID_PROPAGATE_VALUE="invalid @propagate value",o.INVALID_REVERSE_VALUE="invalid @reverse value",o.INVALID_IMPORT_VALUE="invalid @import value",o.INVALID_VERSION_VALUE="invalid @version value",o.INVALID_BASE_IRI="invalid base IRI",o.INVALID_CONTAINER_MAPPING="invalid container mapping",o.INVALID_CONTEXT_ENTRY="invalid context entry",o.INVALID_CONTEXT_NULLIFICATION="invalid context nullification",o.INVALID_DEFAULT_LANGUAGE="invalid default language",o.INVALID_INCLUDED_VALUE="invalid @included value",o.INVALID_IRI_MAPPING="invalid IRI mapping",o.INVALID_JSON_LITERAL="invalid JSON literal",o.INVALID_KEYWORD_ALIAS="invalid keyword alias",o.INVALID_LANGUAGE_MAP_VALUE="invalid language map value",o.INVALID_LANGUAGE_MAPPING="invalid language mapping",o.INVALID_LANGUAGE_TAGGED_STRING="invalid language-tagged string",o.INVALID_LANGUAGE_TAGGED_VALUE="invalid language-tagged value",o.INVALID_LOCAL_CONTEXT="invalid local context",o.INVALID_REMOTE_CONTEXT="invalid remote context",o.INVALID_REVERSE_PROPERTY="invalid reverse property",o.INVALID_REVERSE_PROPERTY_MAP="invalid reverse property map",o.INVALID_REVERSE_PROPERTY_VALUE="invalid reverse property value",o.INVALID_SCOPED_CONTEXT="invalid scoped context",o.INVALID_SCRIPT_ELEMENT="invalid script element",o.INVALID_SET_OR_LIST_OBJECT="invalid set or list object",o.INVALID_TERM_DEFINITION="invalid term definition",o.INVALID_TYPE_MAPPING="invalid type mapping",o.INVALID_TYPE_VALUE="invalid type value",o.INVALID_TYPED_VALUE="invalid typed value",o.INVALID_VALUE_OBJECT="invalid value object",o.INVALID_VALUE_OBJECT_VALUE="invalid value object value",o.INVALID_VOCAB_MAPPING="invalid vocab mapping",o.IRI_CONFUSED_WITH_PREFIX="IRI confused with prefix",o.KEYWORD_REDEFINITION="keyword redefinition",o.LOADING_DOCUMENT_FAILED="loading document failed",o.LOADING_REMOTE_CONTEXT_FAILED="loading remote context failed",o.MULTIPLE_CONTEXT_LINK_HEADERS="multiple context link headers",o.PROCESSING_MODE_CONFLICT="processing mode conflict",o.PROTECTED_TERM_REDEFINITION="protected term redefinition",o.CONTEXT_OVERFLOW="context overflow",o.INVALID_BASE_DIRECTION="invalid base direction",o.RECURSIVE_CONTEXT_INCLUSION="recursive context inclusion",o.INVALID_STREAMING_KEY_ORDER="invalid streaming key order",o.INVALID_EMBEDDED_NODE="invalid embedded node",o.INVALID_ANNOTATION="invalid annotation"}(n.ERROR_CODES||(n.ERROR_CODES={}))})(pj);var wJ={},dcr=/^utf-?8|ascii|utf-?16-?le|ucs-?2|base-?64|latin-?1$/i,hcr=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,pcr=/\s|\uFEFF|\xA0/,bcr=/\r?\n[\x20\x09]+/g,gcr=/[;,"]/,wcr=/[;,"]|\s/,mcr=/^[!#$%&'*+\-\.^_`|~\da-zA-Z]+$/,kR={IDLE:1,URI:2,ATTR:4};function JWt(n){return n.replace(hcr,"")}function Qfe(n){return pcr.test(n)}function ycr(n,r){for(;Qfe(n[r]);)r++;return r}function YWt(n){return wcr.test(n)||!mcr.test(n)}function vcr(n,r){return Object.keys(n).length===Object.keys(r).length&&Object.keys(n).every(o=>o in r&&n[o]===r[o])}class cu{constructor(r){this.refs=[],r&&this.parse(r)}rel(r){for(var o=[],l=r.toLowerCase(),u=0;uvcr(o,r))||this.refs.push(r),this}has(r,o){r=r.toLowerCase(),o=o.toLowerCase();for(var l=0;l",d);if(w===-1)throw new Error("Expected end of URI delimiter at offset "+d);h={uri:r.slice(d+1,w)},d=w,l=kR.URI}else throw new Error('Unexpected character "'+r[d]+'" at offset '+d);d++}else if(l===kR.URI)if(Qfe(r[d])){d++;continue}else if(r[d]===";")l=kR.ATTR,d++;else if(r[d]===",")l=kR.IDLE,d++;else throw new Error('Unexpected character "'+r[d]+'" at offset '+d);else if(l===kR.ATTR){if(r[d]===";"||Qfe(r[d])){d++;continue}var w=r.indexOf("=",d);w===-1&&(w=r.indexOf(";",d)),w===-1&&(w=r.length);var v=JWt(r.slice(d,w)).toLowerCase(),y="";if(d=w+1,d=ycr(r,d),r[d]==='"')for(d++;d"),r.push(o);return r.join(", ")}}cu.isCompatibleEncoding=function(n){return dcr.test(n)};cu.parse=function(n,r){return new cu().parse(n,r)};cu.isSingleOccurenceAttr=function(n){return n==="rel"||n==="type"||n==="media"||n==="title"||n==="title*"};cu.isTokenAttr=function(n){return n==="rel"||n==="type"||n==="anchor"};cu.escapeQuotes=function(n){return n.replace(/"/g,'\\"')};cu.expandRelations=function(n){var r=n.rel.split(" ");return r.map(function(o){var l=Object.assign({},n);return l.rel=o,l})};cu.parseExtendedValue=function(n){var r=/([^']+)?(?:'([^']*)')?(.+)/.exec(n);return{language:r[2].toLowerCase(),encoding:cu.isCompatibleEncoding(r[1])?null:r[1].toLowerCase(),value:cu.isCompatibleEncoding(r[1])?decodeURIComponent(r[3]):r[3]}};cu.formatExtendedAttribute=function(n,r){var o=(r.encoding||"utf-8").toUpperCase(),l=r.language||"en",u="";return Kr.Buffer.isBuffer(r.value)&&cu.isCompatibleEncoding(o)?u=r.value.toString(o):Kr.Buffer.isBuffer(r.value)?u=r.value.toString("hex").replace(/[0-9a-f]{2}/gi,"%$1"):u=encodeURIComponent(r.value),n+"="+o+"'"+l+"'"+u};cu.formatAttribute=function(n,r){return Array.isArray(r)?r.map(o=>cu.formatAttribute(n,o)).join("; "):n[n.length-1]==="*"||typeof r!="string"?cu.formatExtendedAttribute(n,r):(cu.isTokenAttr(n)?r=YWt(r)?'"'+cu.escapeQuotes(r)+'"':cu.escapeQuotes(r):YWt(r)&&(r=encodeURIComponent(r),r=r.replace(/%20/g," ").replace(/%2C/g,",").replace(/%3B/g,";"),r='"'+r+'"'),n+"="+r)};var wrn=cu;Object.defineProperty(wJ,"__esModule",{value:!0});wJ.FetchDocumentLoader=void 0;const QWt=pj,_cr=wrn,Scr=gJ;class Ecr{constructor(r){this.fetcher=r}async load(r){const o=await(this.fetcher||fetch)(r,{headers:new Headers({accept:"application/ld+json"})});if(o.ok&&o.headers){let l=o.headers.get("Content-Type");if(l){const u=l.indexOf(";");u>0&&(l=l.substr(0,u))}if(l==="application/ld+json")return await o.json();if(o.headers.has("Link")){let u;if(o.headers.forEach((d,h)=>{if(h==="link"){const w=(0,_cr.parse)(d);for(const v of w.get("type","application/ld+json"))if(v.rel==="alternate"){if(u)throw new Error("Multiple JSON-LD alternate links were found on "+r);u=(0,Scr.resolve)(v.uri,r)}}}),u)return this.load(u)}throw new QWt.ErrorCoded(`Unsupported JSON-LD media type ${l}`,QWt.ERROR_CODES.LOADING_DOCUMENT_FAILED)}else throw new Error(o.statusText||`Status code: ${o.status}`)}}wJ.FetchDocumentLoader=Ecr;var wUe={},bj={};Object.defineProperty(bj,"__esModule",{value:!0});bj.Util=void 0;let cm=class CR{static isCompactIri(r){return r.indexOf(":")>0&&!(r&&r[0]==="#")}static getPrefix(r,o){if(r&&r[0]==="#")return null;const l=r.indexOf(":");if(l>=0){if(r.length>l+1&&r.charAt(l+1)==="/"&&r.charAt(l+2)==="/")return null;const u=r.substr(0,l);if(u==="_")return null;if(o[u])return u}return null}static getContextValueId(r){if(r===null||typeof r=="string")return r;const o=r["@id"];return o||null}static isSimpleTermDefinitionPrefix(r,o){return!CR.isPotentialKeyword(r)&&(o.allowPrefixNonGenDelims||typeof r=="string"&&(r[0]==="_"||CR.isPrefixIriEndingWithGenDelim(r)))}static isPotentialKeyword(r){return typeof r=="string"&&CR.KEYWORD_REGEX.test(r)}static isPrefixIriEndingWithGenDelim(r){return CR.ENDS_WITH_GEN_DELIM.test(r)}static isPrefixValue(r){return r&&(typeof r=="string"||r&&typeof r=="object")}static isValidIri(r){return!!(r&&CR.IRI_REGEX.test(r))}static isValidIriWeak(r){return!!r&&r[0]!==":"&&CR.IRI_REGEX_WEAK.test(r)}static isValidKeyword(r){return CR.VALID_KEYWORDS[r]}static isTermProtected(r,o){const l=r[o];return typeof l!="string"&&l&&l["@protected"]}static hasProtectedTerms(r){for(const o of Object.keys(r))if(CR.isTermProtected(r,o))return!0;return!1}static isReservedInternalKeyword(r){return r.startsWith("@__")}static deepEqual(r,o){const l=Object.keys(r),u=Object.keys(o);return l.length!==u.length?!1:l.every(d=>{const h=r[d],w=o[d];return h===w||h!==null&&w!==null&&typeof h=="object"&&typeof w=="object"&&this.deepEqual(h,w)})}};cm.IRI_REGEX=/^([A-Za-z][A-Za-z0-9+-.]*|_):[^ "<>{}|\\\[\]`#]*(#[^#]*)?$/;cm.IRI_REGEX_WEAK=/(?::[^:])|\//;cm.KEYWORD_REGEX=/^@[a-z]+$/i;cm.ENDS_WITH_GEN_DELIM=/[:/?#\[\]@]$/;cm.REGEX_LANGUAGE_TAG=/^[a-zA-Z]+(-[a-zA-Z0-9]+)*$/;cm.REGEX_DIRECTION_TAG=/^(ltr)|(rtl)$/;cm.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};cm.EXPAND_KEYS_BLACKLIST=["@base","@vocab","@language","@version","@direction"];cm.ALIAS_DOMAIN_BLACKLIST=["@container","@graph","@id","@index","@list","@nest","@none","@prefix","@reverse","@set","@type","@value","@version"];cm.ALIAS_RANGE_BLACKLIST=["@context","@preserve"];cm.CONTAINERS=["@list","@set","@index","@language","@graph","@id","@type"];cm.CONTAINERS_1_0=["@list","@set","@index"];bj.Util=cm;(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.defaultExpandOptions=n.JsonLdContextNormalized=void 0;const r=gJ,o=pj,l=bj;class u{constructor(h){this.contextRaw=h}getContextRaw(){return this.contextRaw}expandTerm(h,w,v=n.defaultExpandOptions){const y=this.contextRaw[h];if(y===null||y&&y["@id"]===null)return null;let E=!0;if(y&&w){const L=l.Util.getContextValueId(y);if(L&&L!==h)if(typeof L!="string"||!l.Util.isValidIri(L)&&!l.Util.isValidKeyword(L))l.Util.isPotentialKeyword(L)||(E=!1);else return L}const A=l.Util.getPrefix(h,this.contextRaw),C=this.contextRaw["@vocab"],R=(!!C||C==="")&&C.indexOf(":")<0,O=this.contextRaw["@base"],M=l.Util.isPotentialKeyword(h);if(A){const L=this.contextRaw[A],H=l.Util.getContextValueId(L);if(H){if(typeof L=="string"||!v.allowPrefixForcing){if(!l.Util.isSimpleTermDefinitionPrefix(H,v))return h}else if(H[0]!=="_"&&!M&&!L["@prefix"]&&!(h in this.contextRaw))return h;return H+h.substr(A.length+1)}}else if(w&&(C||C===""||v.allowVocabRelativeToBase&&O&&R)&&!M&&!l.Util.isCompactIri(h))if(R){if(v.allowVocabRelativeToBase)return(C||O?(0,r.resolve)(C,O):"")+h;throw new o.ErrorCoded(`Relative vocab expansion for term '${h}' with vocab '${C}' is not allowed.`,o.ERROR_CODES.INVALID_VOCAB_MAPPING)}else return C+h;else if(!w&&O&&!M&&!l.Util.isCompactIri(h))return(0,r.resolve)(h,O);if(E)return h;throw new o.ErrorCoded(`Invalid IRI mapping found for context entry '${h}': '${JSON.stringify(y)}'`,o.ERROR_CODES.INVALID_IRI_MAPPING)}compactIri(h,w){if(w&&this.contextRaw["@vocab"]&&h.startsWith(this.contextRaw["@vocab"]))return h.substr(this.contextRaw["@vocab"].length);if(!w&&this.contextRaw["@base"]&&h.startsWith(this.contextRaw["@base"]))return h.substr(this.contextRaw["@base"].length);const v={prefix:"",suffix:h};for(const y in this.contextRaw){const E=this.contextRaw[y];if(E&&!l.Util.isPotentialKeyword(y)){const A=l.Util.getContextValueId(E);if(h.startsWith(A)){const C=h.substr(A.length);if(C)C.length=0&&(d!=="@type"||typeof u[d]=="object"&&!(u[d]["@protected"]||u[d]["@container"]==="@set")))throw new Sr.ErrorCoded(`Keywords can not be aliased to something else. + */const MWt=hUe,par=Zpe,bar=rrn,DWt=pUe;var bUe=class{constructor({createMessageDigest:r=()=>new par("sha256"),canonicalIdMap:o=new Map,maxDeepIterations:l=1/0}={}){this.name="URDNA2015",this.blankNodeInfo=new Map,this.canonicalIssuer=new MWt("_:c14n",o),this.createMessageDigest=r,this.maxDeepIterations=l,this.quads=null,this.deepIterations=null}main(r){this.deepIterations=new Map,this.quads=r;for(const w of r)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,l=[...this.blankNodeInfo.keys()];for(const w of l)this._hashAndTrackBlankNode({id:w,hashToBlankNodes:o});const u=[...o.keys()].sort(),d=[];for(const w of u){const v=o.get(w);if(v.length>1){d.push(v);continue}const y=v[0];this.canonicalIssuer.getId(y)}for(const w of d){const v=[];for(const y of w){if(this.canonicalIssuer.hasId(y))continue;const E=new MWt("_:b");E.getId(y);const A=this.hashNDegreeQuads(y,E);v.push(A)}v.sort(gar);for(const y of v){const E=y.issuer.getOldIds();for(const A of E)this.canonicalIssuer.getId(A)}}const h=[];for(const w of this.quads){const v=DWt.serializeQuadComponents(this._componentWithCanonicalId({component:w.subject}),w.predicate,this._componentWithCanonicalId({component:w.object}),this._componentWithCanonicalId({component:w.graph}));h.push(v)}return h.sort(),h.join("")}hashFirstDegreeQuads(r){const o=[],l=this.blankNodeInfo.get(r),u=l.quads;for(const h of u){const w={subject:null,predicate:h.predicate,object:null,graph:null};w.subject=this.modifyFirstDegreeComponent(r,h.subject,"subject"),w.object=this.modifyFirstDegreeComponent(r,h.object,"object"),w.graph=this.modifyFirstDegreeComponent(r,h.graph,"graph"),o.push(DWt.serializeQuad(w))}o.sort();const d=this.createMessageDigest();for(const h of o)d.update(h);return l.hash=d.digest(),l.hash}hashRelatedBlankNode(r,o,l,u){let d;this.canonicalIssuer.hasId(r)?d=this.canonicalIssuer.getId(r):l.hasId(r)?d=l.getId(r):d=this.blankNodeInfo.get(r).hash;const h=this.createMessageDigest();return h.update(u),u!=="g"&&h.update(this.getRelatedPredicate(o)),h.update(d),h.digest()}hashNDegreeQuads(r,o){const l=this.deepIterations.get(r)||0;if(l>this.maxDeepIterations)throw new Error(`Maximum deep iterations (${this.maxDeepIterations}) exceeded.`);this.deepIterations.set(r,l+1);const u=this.createMessageDigest(),d=this.createHashToRelated(r,o),h=[...d.keys()].sort();for(const w of h){u.update(w);let v="",y;const E=new bar(d.get(w));for(;E.hasNext();){const A=E.next();let C=o.clone(),R="";const O=[];let M=!1;for(const L of A)if(this.canonicalIssuer.hasId(L)?R+=this.canonicalIssuer.getId(L):(C.hasId(L)||O.push(L),R+=C.getId(L)),v.length!==0&&R>v){M=!0;break}if(!M){for(const L of O){const H=this.hashNDegreeQuads(L,C);if(R+=C.getId(L),R+=`<${H.hash}>`,C=H.issuer,v.length!==0&&R>v){M=!0;break}}M||(v.length===0||R`}createHashToRelated(r,o){const l=new Map,u=this.blankNodeInfo.get(r).quads;for(const d of u)this._addRelatedBlankNodeHash({quad:d,component:d.subject,position:"s",id:r,issuer:o,hashToRelated:l}),this._addRelatedBlankNodeHash({quad:d,component:d.object,position:"o",id:r,issuer:o,hashToRelated:l}),this._addRelatedBlankNodeHash({quad:d,component:d.graph,position:"g",id:r,issuer:o,hashToRelated:l});return l}_hashAndTrackBlankNode({id:r,hashToBlankNodes:o}){const l=this.hashFirstDegreeQuads(r),u=o.get(l);u?u.push(r):o.set(l,[r])}_addBlankNodeQuadInfo({quad:r,component:o}){if(o.termType!=="BlankNode")return;const l=o.value,u=this.blankNodeInfo.get(l);u?u.quads.add(r):this.blankNodeInfo.set(l,{quads:new Set([r]),hash:null})}_addRelatedBlankNodeHash({quad:r,component:o,position:l,id:u,issuer:d,hashToRelated:h}){if(!(o.termType==="BlankNode"&&o.value!==u))return;const w=o.value,v=this.hashRelatedBlankNode(w,r,d,l),y=h.get(v);y?y.push(w):h.set(v,[w])}_componentWithCanonicalId({component:r}){return r.termType==="BlankNode"&&!r.value.startsWith(this.canonicalIssuer.prefix)?{termType:"BlankNode",value:this.canonicalIssuer.getId(r.value)}:r}};function gar(n,r){return n.hashr.hash?1:0}const war=bUe;function mar(n){return new war().main(n)}var yar=mar;const irn=cv(yar);function _ar(n,r){for(const o of r)n.add(o);return n}var Sar=_ar;const Dje=cv(Sar);function Ear(n,r,o,l,u){const d=n.match(r,o,l,u);for(const h of d)n.delete(h);return n}var kar=Ear;const orn=cv(kar);function Rar(n,r){if(n.size!==r.size)return!1;for(const o of n)if(!r.has(o))return!1;return!0}var xar=Rar;const srn=cv(xar),Car=n=>class{constructor(){s7e(this,"dataset")}init(){const r=n(this);this.dataset=(o=[])=>new r([...o]),this.dataset.Class=r,this.dataset.addAll=Dje,this.dataset.deleteMatch=orn,this.dataset.equals=srn}},Aar=n=>class extends Car(n){init(){super.init(),this.dataset.toCanonical=irn,this.dataset.toStream=Onn,this.dataset.fromStream=r=>trn(this.dataset(),r)}};let gUe=class{namespace(r){return Kn(r,{factory:this})}};gUe.exports=["namespace"];const wUe=n=>{const r=n.namespace("http://www.w3.org/2001/XMLSchema#"),o=n.namespace("http://www.w3.org/1999/02/22-rdf-syntax-ns#");return{first:o.first,nil:o.nil,rest:o.rest,langString:o.langString,xsd:r}};function S0(n,r){return typeof n>"u"||n===null?r:Array.isArray(n)?n:typeof n!="string"&&n[Symbol.iterator]?[...n]:[n]}const YP=new qWe([gUe,tJ]),{xsd:Lje}=wUe(YP);function Tar(n,r=YP){return typeof n!="boolean"?null:r.literal(n.toString(),Lje("boolean"))}function $ar(n,r=YP){return typeof n!="number"?null:Number.isInteger(n)?r.literal(n.toString(10),Lje("integer")):r.literal(n.toString(10),Lje("double"))}function Iar(n,r=YP){return typeof n!="string"?null:r.literal(n)}function Par(n,r=YP){return Tar(n,r)||$ar(n,r)||Iar(n,r)}function Oar(n,r){if(n&&typeof n!="string")throw new Error("Blank node identifier must be a string");return r.blankNode(n)}function Nar(n,r,o){if(typeof n=="string")return r=r&&(r.value||r.toString()),r&&r.indexOf(":")!==-1&&(r=o.namedNode(r)),o.literal(n.toString(),r);const l=Par(n,o);if(!l)throw new Error("The value cannot be converted to a literal node");return l}function LWt(n,r){if(typeof n!="string")throw new Error("Named node must be an IRI string");return r.namedNode(n)}function lrn(n,r="Literal",o,l){if(n&&typeof n=="object"&&n.termType)return n;if(n&&n.constructor.name==="URL")return LWt(n.toString(),l);if(r==="BlankNode")return Oar(n,l);if(!(n===null||typeof n>"u")){if(r==="Literal")return Nar(n,o,l);if(r==="NamedNode")return LWt(n,l);throw new Error("unknown type")}}function Mar(n,r,o,l){return(typeof n>"u"||n===null)&&!r?n:(S0(n)||[void 0]).reduce((u,d)=>typeof d=="object"&&d.terms?u.concat(d.terms):(u.push(lrn(d,r,o,l)),u),[])}const jWt=wUe(YP);function Dar(n,r){const o=r.termType!=="Literal",l=jWt.langString.equals(r.datatype)||jWt.xsd.string.equals(r.datatype);if(o||!l)return n;const u=r.language.toLowerCase();return n.has(u)?n.get(u).push(r):n.set(u,[r]),n}function Lar(n){const r=n.reduce(Dar,new Map),o=[...r.entries()];return l=>{const u=l.toLowerCase();if(u==="*")return o[0]&&o[0][1];const d=r.get(u);if(d)return d;const h=o.find(([w])=>w.startsWith(u));return h&&h[1]}}function jar(n,{language:r}){const o=typeof r=="string"?[r]:r,l=Lar(n);return o.map(l).find(Boolean)||[]}class mUe{constructor({dataset:r,graph:o,value:l,factory:u,namespace:d}){this.dataset=r,this.graph=o,this.factory=u,this.namespace=d,this.term=lrn(l,void 0,void 0,u)}clone({dataset:r=this.dataset,graph:o=this.graph,value:l,factory:u=this.factory,namespace:d=this.namespace}){return new mUe({dataset:r,graph:o,value:l,factory:u,namespace:d})}has(r,o){return this.matchProperty(S0(this.term),r,o,S0(this.graph),"subject").map(l=>this.clone({value:l}))}in(r){return this.matchProperty(null,r,S0(this.term),S0(this.graph),"subject").map(o=>this.clone({value:o}))}out(r,{language:o}={}){let l=this.matchProperty(S0(this.term),r,null,S0(this.graph),"object");return typeof o<"u"&&(l=jar(l,{language:o})),l.map(u=>this.clone({value:u}))}addIn(r,o){const l=[];return this.term&&o.forEach(u=>{r.forEach(d=>{this.dataset.add(this.factory.quad(u,d,this.term,this.graph))}),l.push(this.clone({value:u}))}),l}addOut(r,o){const l=[];return this.term&&o.forEach(u=>{r.forEach(d=>{this.dataset.add(this.factory.quad(this.term,d,u,this.graph))}),l.push(this.clone({value:u}))}),l}addList(r,o){this.term&&r.forEach(l=>{const u=o.map(()=>this.factory.blankNode());this.dataset.add(this.factory.quad(this.term,l,u[0]||this.namespace.nil,this.graph));for(let d=0;d{for(const l of this.dataset.match(this.term,o))this.deleteItems(l)})}deleteItems(r){let o=[r];for(;!o[o.length-1].object.equals(this.namespace.nil);){const l=o[o.length-1].object;o=o.concat([...this.dataset.match(l)])}o.forEach(l=>{this.dataset.delete(l)})}match(r,o,l,u){if(!r&&!o&&!l&&!u)return[...this.dataset];r=r||[null],o=o||[null],l=l||[null],u=u||[null];const d=[];for(const h of u)for(const w of r)for(const v of o)for(const y of l)for(const E of this.dataset.match(w,v,y,h))d.push(E);return d}matchProperty(r,o,l,u,d){return this.match(r,o,l,u).map(h=>h[d])}deleteMatch(r,o,l,u){this.match(r,o,l,u).forEach(d=>{this.dataset.delete(d)})}}class _0{constructor({dataset:r,graph:o,term:l,value:u,factory:d,_context:h}){if(this.factory=d,this.namespace=wUe(d),h){this._context=h;return}const w=l&&S0(l)||u&&S0(u)||[null];this._context=w.map(v=>new mUe({dataset:r,graph:o,value:v,factory:this.factory,namespace:this.namespace}))}get term(){const r=this.terms;if(r.length===1)return r[0]}get terms(){return this._context.map(r=>r.term).filter(Boolean)}get value(){const r=this.term;return r&&r.value}get values(){return this.terms.map(r=>r.value)}get dataset(){const r=this.datasets;if(r.length===1)return r[0]}get datasets(){return this._context.map(r=>r.dataset).filter(Boolean)}any(){return _0.fromContext(this._context.map(r=>r.clone({})),this)}isList(){return this.term?!!(this.term.equals(this.namespace.nil)||this.out(this.namespace.first).term):!1}list(){if(this.terms.length>1)throw new Error("iterator over multiple terms is not supported");if(this.term&&(this.term.termType!=="NamedNode"&&this.term.termType!=="BlankNode"||!this.term.equals(this.namespace.nil)&&!this.out(this.namespace.first).term))return null;let r=this;return{[Symbol.iterator]:()=>({next:()=>{if(!r.term||r.term.equals(this.namespace.nil))return{done:!0};const o=r.out(this.namespace.first);if(o.terms.length>1)throw new Error(`Invalid list: multiple values for rdf:first on ${r.value}`);const l=r.out(this.namespace.rest);if(l.terms.length>1)throw new Error(`Invalid list: multiple values for rdf:rest on ${r.value}`);return r=l,{done:!1,value:o}}})}}toArray(){return this._context.map(r=>_0.fromContext(r,this)).filter(r=>r.terms.some(Boolean))}filter(r){const o=this._context.map(l=>_0.fromContext(l,this));return _0.fromContext(this._context.filter((l,u)=>r(_0.fromContext(l,this),u,o)),this)}forEach(r){return this.toArray().forEach(r),this}map(r){return this.toArray().map(r)}toString(){return this.values.join()}node(r,{type:o,datatype:l,language:u}={}){r=this._toTermArray(r,o,l||u)||[null];const d=r.reduce((h,w)=>h.concat(this._context.reduce((v,y)=>v.concat([y.clone({value:w})]),[])),[]);return _0.fromContext(d,{factory:this.factory})}blankNode(r){return this.node(r,{type:"BlankNode"})}literal(r,o){return this.node(r,{type:"Literal",datatype:o})}namedNode(r){return this.node(r,{type:"NamedNode"})}in(r){r=this._toTermArray(r);const o=this._context.reduce((l,u)=>l.concat(u.in(r)),[]);return _0.fromContext(o,this)}out(r,o={}){r=this._toTermArray(r);const l=this._context.reduce((u,d)=>u.concat(d.out(r,o)),[]);return _0.fromContext(l,this)}has(r,o){r=this._toTermArray(r),o=this._toTermArray(o);const l=this._context.reduce((u,d)=>u.concat(d.has(r,o)),[]);return _0.fromContext(l,this)}addIn(r,o,l){if(!r)throw new Error("predicate parameter is required");typeof o=="function"&&(l=o,o=null),r=this._toTermArray(r),o=this._toTermArray(o)||[this.factory.blankNode()];const u=this._context.map(d=>d.addIn(r,o));return l&&_0.fromContext(u,this).forEach(l),this}addOut(r,o,l){if(!r)throw new Error("predicate parameter is required");typeof o=="function"&&(l=o,o=null),r=this._toTermArray(r),o=this._toTermArray(o)||[this.factory.blankNode()];const u=this._context.map(d=>d.addOut(r,o));return l&&_0.fromContext(u,this).forEach(l),this}addList(r,o){if(!r||!o)throw new Error("predicate and items parameter is required");return r=this._toTermArray(r),o=this._toTermArray(o),this._context.forEach(l=>l.addList(r,o)),this}deleteIn(r,o){return r=this._toTermArray(r),o=this._toTermArray(o),this._context.forEach(l=>l.deleteIn(r,o)),this}deleteOut(r,o){return r=this._toTermArray(r),o=this._toTermArray(o),this._context.forEach(l=>l.deleteOut(r,o)),this}deleteList(r){if(!r)throw new Error("predicate parameter is required");return r=this._toTermArray(r),this._context.forEach(o=>o.deleteList(r)),this}_toTermArray(r,o,l){return Mar(r,o,l,this.factory)}static fromContext(r,{factory:o}){return new _0({_context:S0(r),factory:o})}}function Far({dataset:n,graph:r,term:o,value:l,factory:u=YP,_context:d}){return new _0({dataset:n,graph:r,term:o,value:l,factory:u,_context:d})}class arn{clownface({...r}={}){return!r.dataset&&typeof this.dataset=="function"&&(r.dataset=this.dataset()),Far({...r,factory:this})}}arn.exports=["clownface"];let crn=class{termMap(r){return new EK(r)}};crn.exports=["termMap"];function FWt(n){try{return _S(n)}catch{return null}}class ehe{constructor(r){if(this.index=new Map,r)for(const o of r)this.add(o)}get size(){return this.index.size}add(r){const o=_S(r);return this.index.has(o)||this.index.set(o,r),this}clear(){this.index.clear()}delete(r){return r?this.index.delete(FWt(r)):!1}entries(){return this.values().entries()}forEach(r,o){return this.values().forEach(r,o)}has(r){return r?this.index.has(FWt(r)):!1}values(){return new Set(this.index.values())}keys(){return this.values()}[Symbol.iterator](){return this.index.values()}}let urn=class{termSet(r){return new ehe(r)}};urn.exports=["termSet"];class Bar{constructor(){this.quadLevel=new Map}add(r,o){this.quadLevel.set(_S(r),o)}has(r,o){const l=this.quadLevel.get(_S(r));return l===void 0?!1:l<=o}}function CNe({backward:n,callback:r,dataset:o,filter:l,forward:u,term:d,visited:h=new Bar}){const w=(v,y)=>{const E=A=>{for(const C of A){if(h.has(C,y))continue;h.add(C,y);const R={dataset:o,level:y,quad:C};l(R)&&(r(R),u&&w(C.object,y+1),n&&w(C.subject,y+1))}};u&&E(o.match(v)),n&&E(o.match(null,null,v))};w(d,0)}class War{constructor(r,{backward:o=!1,factory:l,forward:u=!0}){this.backward=o,this.factory=l,this.filter=r,this.forward=u}forEach({term:r,dataset:o},l){CNe({backward:this.backward,callback:l,dataset:o,filter:this.filter,forward:this.forward,term:r})}match({term:r,dataset:o}){const l=this.factory.dataset();return CNe({backward:this.backward,callback:({quad:u})=>l.add(u),dataset:o,filter:this.filter,forward:this.forward,term:r}),l}reduce({term:r,dataset:o},l,u){let d=u;return CNe({backward:this.backward,callback:h=>{d=l(h,d)},dataset:o,filter:this.filter,forward:this.forward,term:r}),d}}class frn{traverser(r,{backward:o=!1,forward:l=!0}={}){return new War(r,{backward:o,factory:this,forward:l})}}frn.exports=["traverser"];const Har=new SX([tJ,aZt,gUe,xen,arn,crn,urn,frn]);function Uar(n,{checkOpen:r=!0}={}){return n!==null&&typeof n=="object"&&(n.writable||n.readable||!r||n.writable===void 0&&n.readable===void 0)&&typeof n.pipe=="function"}function Gar(n,{checkOpen:r=!0}={}){return Uar(n,{checkOpen:r})&&(n.readable||!r)&&typeof n.read=="function"&&typeof n.readable=="boolean"&&typeof n.readableObjectMode=="boolean"&&typeof n.destroy=="function"&&typeof n.destroyed=="boolean"}const Var=Object.getPrototypeOf(Object.getPrototypeOf(async function*(){}).prototype);var NE,VX,dT,bS,ej,drn,hrn;class zar{constructor(r,o){J5(this,ej);J5(this,NE);J5(this,VX);J5(this,dT,!1);J5(this,bS);_E(this,NE,r),_E(this,VX,o)}next(){const r=()=>a7e(this,ej,drn).call(this);return _E(this,bS,Hp(this,bS)?Hp(this,bS).then(r,r):r()),Hp(this,bS)}return(r){const o=()=>a7e(this,ej,hrn).call(this,r);return Hp(this,bS)?Hp(this,bS).then(o,o):o()}}NE=new WeakMap,VX=new WeakMap,dT=new WeakMap,bS=new WeakMap,ej=new WeakSet,drn=async function(){if(Hp(this,dT))return{done:!0,value:void 0};let r;try{r=await Hp(this,NE).read()}catch(o){throw _E(this,bS,void 0),_E(this,dT,!0),Hp(this,NE).releaseLock(),o}return r.done&&(_E(this,bS,void 0),_E(this,dT,!0),Hp(this,NE).releaseLock()),r},hrn=async function(r){if(Hp(this,dT))return{done:!0,value:r};if(_E(this,dT,!0),!Hp(this,VX)){const o=Hp(this,NE).cancel(r);return Hp(this,NE).releaseLock(),await o,{done:!0,value:r}}return Hp(this,NE).releaseLock(),{done:!0,value:r}};const yUe=Symbol();function prn(){return this[yUe].next()}Object.defineProperty(prn,"name",{value:"next"});function brn(n){return this[yUe].return(n)}Object.defineProperty(brn,"name",{value:"return"});const Kar=Object.create(Var,{next:{enumerable:!0,configurable:!0,writable:!0,value:prn},return:{enumerable:!0,configurable:!0,writable:!0,value:brn}});function qar({preventCancel:n=!1}={}){const r=this.getReader(),o=new zar(r,n),l=Object.create(Kar);return l[yUe]=o,l}const Xar=n=>{if(Gar(n,{checkOpen:!1})&&vUe.on!==void 0)return Yar(n);if(typeof(n==null?void 0:n[Symbol.asyncIterator])=="function")return n;if(Jar.call(n)==="[object ReadableStream]")return qar.call(n);throw new TypeError("The first argument must be a Readable, a ReadableStream, or an async iterable.")},{toString:Jar}=Object.prototype,Yar=async function*(n){const r=new AbortController,o={};Qar(n,r,o);try{for await(const[l]of vUe.on(n,"data",{signal:r.signal}))yield l}catch(l){if(o.error!==void 0)throw o.error;if(!r.signal.aborted)throw l}finally{n.destroy()}},Qar=async(n,r,o)=>{try{await vUe.finished(n,{cleanup:!0,readable:!0,writable:!1,error:!1})}catch(l){o.error=l}finally{r.abort()}},vUe={},Zar=async(n,{init:r,convertChunk:o,getSize:l,truncateChunk:u,addChunk:d,getFinalChunk:h,finalize:w},{maxBuffer:v=Number.POSITIVE_INFINITY}={})=>{const y=Xar(n),E=r();E.length=0;try{for await(const A of y){const C=tcr(A),R=o[C](A,E);grn({convertedChunk:R,state:E,getSize:l,truncateChunk:u,addChunk:d,maxBuffer:v})}return ecr({state:E,convertChunk:o,getSize:l,truncateChunk:u,addChunk:d,getFinalChunk:h,maxBuffer:v}),w(E)}catch(A){const C=typeof A=="object"&&A!==null?A:new Error(A);throw C.bufferedData=w(E),C}},ecr=({state:n,getSize:r,truncateChunk:o,addChunk:l,getFinalChunk:u,maxBuffer:d})=>{const h=u(n);h!==void 0&&grn({convertedChunk:h,state:n,getSize:r,truncateChunk:o,addChunk:l,maxBuffer:d})},grn=({convertedChunk:n,state:r,getSize:o,truncateChunk:l,addChunk:u,maxBuffer:d})=>{const h=o(n),w=r.length+h;if(w<=d){BWt(n,r,u,w);return}const v=l(n,d-r.length);throw v!==void 0&&BWt(v,r,u,d),new ncr},BWt=(n,r,o,l)=>{r.contents=o(n,r,l),r.length=l},tcr=n=>{var l;const r=typeof n;if(r==="string")return"string";if(r!=="object"||n===null)return"others";if((l=globalThis.Buffer)!=null&&l.isBuffer(n))return"buffer";const o=WWt.call(n);return o==="[object ArrayBuffer]"?"arrayBuffer":o==="[object DataView]"?"dataView":Number.isInteger(n.byteLength)&&Number.isInteger(n.byteOffset)&&WWt.call(n.buffer)==="[object ArrayBuffer]"?"typedArray":"others"},{toString:WWt}=Object.prototype;class ncr extends Error{constructor(){super("maxBuffer exceeded");s7e(this,"name","MaxBufferError")}}const rcr=n=>n,icr=({contents:n})=>n,ocr=n=>{throw new Error(`Streams in object mode are not supported: ${String(n)}`)},scr=n=>n.length;async function lcr(n,r){return Zar(n,dcr,r)}const acr=()=>({contents:"",textDecoder:new TextDecoder}),due=(n,{textDecoder:r})=>r.decode(n,{stream:!0}),ccr=(n,{contents:r})=>r+n,ucr=(n,r)=>n.slice(0,r),fcr=({textDecoder:n})=>{const r=n.decode();return r===""?void 0:r},dcr={init:acr,convertChunk:{string:rcr,buffer:due,arrayBuffer:due,dataView:due,typedArray:due,others:ocr},getSize:scr,truncateChunk:ucr,addChunk:ccr,getFinalChunk:fcr,finalize:icr};function o8(n){return typeof n=="string"||n instanceof String}const hcr="http://www.w3.org/2001/XMLSchema#string";function Hd(n){if(typeof n=="string")return n;if(!n)return"";if(typeof n.id<"u"&&n.termType!=="Quad")return n.id;let r,o,l,u;switch(n.termType){case"NamedNode":return n.value;case"BlankNode":return`_:${n.value}`;case"Variable":return`?${n.value}`;case"DefaultGraph":return"";case"Literal":return n.language?`"${n.value}"@${n.language}`:`"${n.value}"${n.datatype&&n.datatype.value!==hcr?`^^${n.datatype.value}`:""}`;case"Quad":return r=ANe(Hd(n.subject)),o=ANe(Hd(n.predicate)),l=ANe(Hd(n.object)),u=n.graph.termType==="DefaultGraph"?"":` ${Hd(n.graph)}`,`<<${r} ${o} ${l}${u}>>`;default:throw new Error(`Unexpected termType: ${n.termType}`)}}const pcr=/^"(.*".*)(?="[^"]*$)/;function ANe(n){return n.replace(pcr,(r,o)=>`"${o.replace(/"/g,'""')}`)}class bcr{constructor(r){if(this._size=0,this._graphs=Object.create(null),this._id=0,this._ids=Object.create(null),this._ids["><"]=0,this._entities=Object.create(null),this._quads=new Map,r)for(const o of r)this.add(o)}get size(){let r=this._size;if(r!==null)return r;r=0;const o=this._graphs;let l,u;for(const d in o)for(const h in l=o[d].subjects)for(const w in u=l[h])r+=Object.keys(u[w]).length;return this._size=r,this._size}add(r){let o=Hd(r.subject),l=Hd(r.predicate),u=Hd(r.object);const d=Hd(r.graph);let h=this._graphs[d];h||(h=this._graphs[d]={subjects:{},predicates:{},objects:{}},Object.freeze(h));const w=this._ids,v=this._entities;return o=w[o]||(w[v[++this._id]=o]=this._id),l=w[l]||(w[v[++this._id]=l]=this._id),u=w[u]||(w[v[++this._id]=u]=this._id),this._addToIndex(h.subjects,o,l,u),this._addToIndex(h.predicates,l,u,o),this._addToIndex(h.objects,u,o,l),this._setQuad(o,l,u,d,r),this._size=null,this}delete(r){let o=Hd(r.subject),l=Hd(r.predicate),u=Hd(r.object);const d=Hd(r.graph),h=this._ids,w=this._graphs;let v,y,E;if(!(o=h[o])||!(l=h[l])||!(u=h[u])||!(v=w[d])||!(y=v.subjects[o])||!(E=y[l])||!(u in E))return this;this._removeFromIndex(v.subjects,o,l,u),this._removeFromIndex(v.predicates,l,u,o),this._removeFromIndex(v.objects,u,o,l),this._size!==null&&this._size--,this._deleteQuad(o,l,u,d);for(o in v.subjects)return this;return delete w[d],this}has(r){const o=Hd(r.subject),l=Hd(r.predicate),u=Hd(r.object),d=Hd(r.graph),h=this._graphs[d];if(!h)return!1;const w=this._ids;let v,y,E;return o8(o)&&!(v=w[o])||o8(l)&&!(y=w[l])||o8(u)&&!(E=w[u])?!1:this._countInIndex(h.objects,E,v,y)===1}match(r,o,l,u){return this._createDataset(this._match(r,o,l,u))}[Symbol.iterator](){return this._match()[Symbol.iterator]()}_addToIndex(r,o,l,u){const d=r[o]||(r[o]={}),h=d[l]||(d[l]={}),w=u in h;return w||(h[u]=null),!w}_removeFromIndex(r,o,l,u){const d=r[o],h=d[l];delete h[u];for(const w in h)return;delete d[l];for(const w in d)return;delete r[o]}_findInIndex(r,o,l,u,d,h,w,v,y,E){let A,C,R;o&&((A=r,r={})[o]=A[o]);for(const O in r)if(C=r[O],C){l&&((A=C,C={})[l]=A[l]);for(const M in C)if(R=C[M],R){const L=u?u in R?[u]:[]:Object.keys(R);for(let H=0;Hr(o,this))}filter(r){return new this.constructor([...this].filter(o=>r(o,this)))}map(r){return new this.constructor([...this].map(o=>r(o,this)))}match(...r){return super.match(...r)}merge(...[r]){return Dje(new this.constructor([...this]),r)}}function wcr(n){return class extends gcr{import(...[r]){return trn(this,r)}toCanonical(){return irn(this)}toStream(){return Onn(this)}async serialize({format:r,prefixes:o=[]}){const l=n.formats.serializers.get(r);return l?lcr(l.import(this.toStream(),{prefixes:o.reduce((u,d)=>Array.isArray(d)?{...u,[d[0]]:d[1]}:d in aje?{...u,[d]:aje[d]}:u,{})})):this.toCanonical()}}}function mcr(){return new SX([Aar(wcr)],{parent:Har})}const wrn=mcr();class ebe{constructor(r,o){this.Impl=r,this.options=o}import(r,o){const l=new this.Impl(r,{...this.options,...o});return r.on("end",()=>{l.readable||l.emit("end")}),r.on("error",u=>{l.emit("error",u)}),l}}const TNe=new Set(["_write","_writableState","writable"]);function _Ue(n){return new Proxy(n,{has(r,o){return TNe.has(o)?!1:Reflect.has(...arguments)},get(r,o){if(TNe.has(o))return;const l=Reflect.get(...arguments);return l&&typeof l.bind=="function"?l.bind(r):l},set(r,o,l){if(!TNe.has(o))return Reflect.set(...arguments)}})}var mrn={},tK={},{Buffer:uT}=Kr,gl={},yrn=gl.LEFT_BRACE=1,Zfe=gl.RIGHT_BRACE=2,vrn=gl.LEFT_BRACKET=3,jje=gl.RIGHT_BRACKET=4,ede=gl.COLON=5,the=gl.COMMA=6,_rn=gl.TRUE=7,Srn=gl.FALSE=8,Ern=gl.NULL=9,nhe=gl.STRING=10,krn=gl.NUMBER=11,k8=gl.START=17,Rrn=gl.STOP=18,HWt=gl.TRUE1=33,UWt=gl.TRUE2=34,GWt=gl.TRUE3=35,VWt=gl.FALSE1=49,zWt=gl.FALSE2=50,KWt=gl.FALSE3=51,qWt=gl.FALSE4=52,XWt=gl.NULL1=65,JWt=gl.NULL2=66,YWt=gl.NULL3=67,QWt=gl.NUMBER1=81,$Ne=gl.NUMBER3=83,sS=gl.STRING1=97,ZWt=gl.STRING2=98,eHt=gl.STRING3=99,ycr=gl.STRING4=100,vcr=gl.STRING5=101,tHt=gl.STRING6=102,WD=gl.VALUE=113,INe=gl.KEY=114,hue=gl.OBJECT=129,pue=gl.ARRAY=130,_cr=92,Scr=47,Ecr=8,kcr=12,Rcr=10,xcr=13,Ccr=9,SUe=64*1024;function bue(n){return uT.alloc?uT.alloc(n):new uT(n)}function TT(){this.tState=k8,this.value=void 0,this.string=void 0,this.stringBuffer=bue(SUe),this.stringBufferOffset=0,this.unicode=void 0,this.highSurrogate=void 0,this.key=void 0,this.mode=void 0,this.stack=[],this.state=WD,this.bytes_remaining=0,this.bytes_in_sequence=0,this.temp_buffs={2:bue(2),3:bue(3),4:bue(4)},this.offset=-1}TT.toknam=function(n){for(var r=Object.keys(gl),o=0,l=r.length;o=SUe&&(this.string+=this.stringBuffer.toString("utf8"),this.stringBufferOffset=0),this.stringBuffer[this.stringBufferOffset++]=n};lm.appendStringBuf=function(n,r,o){var l=n.length;typeof r=="number"&&(typeof o=="number"?o<0?l=n.length-r+o:l=o-r:l=n.length-r),l<0&&(l=0),this.stringBufferOffset+l>SUe&&(this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0),n.copy(this.stringBuffer,this.stringBufferOffset,r,o),this.stringBufferOffset+=l};lm.write=function(n){typeof n=="string"&&(n=new uT(n));for(var r,o=0,l=n.length;o=48&&r<64)this.string=String.fromCharCode(r),this.tState=$Ne;else if(!(r===32||r===9||r===10||r===13))return this.charError(n,o)}else if(this.tState===sS)if(r=n[o],this.bytes_remaining>0){for(var u=0;u=128){if(r<=193||r>244)return this.onError(new Error("Invalid UTF-8 character at position "+o+" in state "+TT.toknam(this.tState)));if(r>=194&&r<=223&&(this.bytes_in_sequence=2),r>=224&&r<=239&&(this.bytes_in_sequence=3),r>=240&&r<=244&&(this.bytes_in_sequence=4),this.bytes_in_sequence+o>n.length){for(var d=0;d<=n.length-1-o;d++)this.temp_buffs[this.bytes_in_sequence][d]=n[o+d];this.bytes_remaining=o+this.bytes_in_sequence-n.length,o=n.length-1}else this.appendStringBuf(n,o,o+this.bytes_in_sequence),o=o+this.bytes_in_sequence-1}else if(r===34)this.tState=k8,this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0,this.onToken(nhe,this.string),this.offset+=uT.byteLength(this.string,"utf8")+1,this.string=void 0;else if(r===92)this.tState=ZWt;else if(r>=32)this.appendStringChar(r);else return this.charError(n,o);else if(this.tState===ZWt)if(r=n[o],r===34)this.appendStringChar(r),this.tState=sS;else if(r===92)this.appendStringChar(_cr),this.tState=sS;else if(r===47)this.appendStringChar(Scr),this.tState=sS;else if(r===98)this.appendStringChar(Ecr),this.tState=sS;else if(r===102)this.appendStringChar(kcr),this.tState=sS;else if(r===110)this.appendStringChar(Rcr),this.tState=sS;else if(r===114)this.appendStringChar(xcr),this.tState=sS;else if(r===116)this.appendStringChar(Ccr),this.tState=sS;else if(r===117)this.unicode="",this.tState=eHt;else return this.charError(n,o);else if(this.tState===eHt||this.tState===ycr||this.tState===vcr||this.tState===tHt)if(r=n[o],r>=48&&r<64||r>64&&r<=70||r>96&&r<=102){if(this.unicode+=String.fromCharCode(r),this.tState++===tHt){var h=parseInt(this.unicode,16);this.unicode=void 0,this.highSurrogate!==void 0&&h>=56320&&h<57344?(this.appendStringBuf(new uT(String.fromCharCode(this.highSurrogate,h))),this.highSurrogate=void 0):this.highSurrogate===void 0&&h>=55296&&h<56320?this.highSurrogate=h:(this.highSurrogate!==void 0&&(this.appendStringBuf(new uT(String.fromCharCode(this.highSurrogate))),this.highSurrogate=void 0),this.appendStringBuf(new uT(String.fromCharCode(h)))),this.tState=sS}}else return this.charError(n,o);else if(this.tState===QWt||this.tState===$Ne)switch(r=n[o],r){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(r),this.tState=$Ne;break;default:this.tState=k8;var w=this.numberReviver(this.string,n,o);if(w)return w;this.offset+=this.string.length-1,this.string=void 0,o--;break}else if(this.tState===HWt)if(n[o]===114)this.tState=UWt;else return this.charError(n,o);else if(this.tState===UWt)if(n[o]===117)this.tState=GWt;else return this.charError(n,o);else if(this.tState===GWt)if(n[o]===101)this.tState=k8,this.onToken(_rn,!0),this.offset+=3;else return this.charError(n,o);else if(this.tState===VWt)if(n[o]===97)this.tState=zWt;else return this.charError(n,o);else if(this.tState===zWt)if(n[o]===108)this.tState=KWt;else return this.charError(n,o);else if(this.tState===KWt)if(n[o]===115)this.tState=qWt;else return this.charError(n,o);else if(this.tState===qWt)if(n[o]===101)this.tState=k8,this.onToken(Srn,!1),this.offset+=4;else return this.charError(n,o);else if(this.tState===XWt)if(n[o]===117)this.tState=JWt;else return this.charError(n,o);else if(this.tState===JWt)if(n[o]===108)this.tState=YWt;else return this.charError(n,o);else if(this.tState===YWt)if(n[o]===108)this.tState=k8,this.onToken(Ern,null),this.offset+=3;else return this.charError(n,o)};lm.onToken=function(n,r){};lm.parseError=function(n,r){this.tState=Rrn,this.onError(new Error("Unexpected "+TT.toknam(n)+(r?"("+JSON.stringify(r)+")":"")+" in state "+TT.toknam(this.state)))};lm.push=function(){this.stack.push({value:this.value,key:this.key,mode:this.mode})};lm.pop=function(){var n=this.value,r=this.stack.pop();this.value=r.value,this.key=r.key,this.mode=r.mode,this.emit(n),this.mode||(this.state=WD)};lm.emit=function(n){this.mode&&(this.state=the),this.onValue(n)};lm.onValue=function(n){};lm.onToken=function(n,r){if(this.state===WD)if(n===nhe||n===krn||n===_rn||n===Srn||n===Ern)this.value&&(this.value[this.key]=r),this.emit(r);else if(n===yrn)this.push(),this.value?this.value=this.value[this.key]={}:this.value={},this.key=void 0,this.state=INe,this.mode=hue;else if(n===vrn)this.push(),this.value?this.value=this.value[this.key]=[]:this.value=[],this.key=0,this.mode=pue,this.state=WD;else if(n===Zfe)if(this.mode===hue)this.pop();else return this.parseError(n,r);else if(n===jje)if(this.mode===pue)this.pop();else return this.parseError(n,r);else return this.parseError(n,r);else if(this.state===INe)if(n===nhe)this.key=r,this.state=ede;else if(n===Zfe)this.pop();else return this.parseError(n,r);else if(this.state===ede)if(n===ede)this.state=WD;else return this.parseError(n,r);else if(this.state===the)if(n===the)this.mode===pue?(this.key++,this.state=WD):this.mode===hue&&(this.state=INe);else if(n===jje&&this.mode===pue||n===Zfe&&this.mode===hue)this.pop();else return this.parseError(n,r);else return this.parseError(n,r)};lm.numberReviver=function(n,r,o){var l=Number(n);if(isNaN(l))return this.charError(r,o);n.match(/[0-9]+/)==n&&l.toString()!=n?this.onToken(nhe,n):this.onToken(krn,l)};TT.C=gl;var Acr=TT,a1={},tbe={},mJ={},vT={};Object.defineProperty(vT,"__esModule",{value:!0});vT.removeDotSegmentsOfPath=vT.removeDotSegments=vT.resolve=void 0;function Tcr(n,r){r=r||"";const o=r.indexOf("#");if(o>0&&(r=r.substr(0,o)),!n.length){if(r.indexOf(":")<0)throw new Error(`Found invalid baseIRI '${r}' for value '${n}'`);return r}if(n.startsWith("?")){const y=r.indexOf("?");return y>0&&(r=r.substr(0,y)),r+n}if(n.startsWith("#"))return r+n;if(!r.length){const y=n.indexOf(":");if(y<0)throw new Error(`Found invalid relative IRI '${n}' for a missing baseIRI`);return R8(n,y)}const l=n.indexOf(":");if(l>=0)return R8(n,l);const u=r.indexOf(":");if(u<0)throw new Error(`Found invalid baseIRI '${r}' for value '${n}'`);const d=r.substr(0,u+1);if(n.indexOf("//")===0)return d+R8(n,l);let h;if(r.indexOf("//",u)===u+1){if(h=r.indexOf("/",u+3),h<0)return r.length>u+3?r+"/"+R8(n,l):d+R8(n,l)}else if(h=r.indexOf("/",u+1),h<0)return d+R8(n,l);if(n.indexOf("/")===0)return r.substr(0,h)+rhe(n);let w=r.substr(h);const v=w.lastIndexOf("/");return v>=0&&vl.join("")).join("/")}vT.removeDotSegments=rhe;function R8(n,r){let o=r+1;r>=0?n[r+1]==="/"&&n[r+2]==="/"&&(o=r+3):n[0]==="/"&&n[1]==="/"&&(o=2);const l=n.indexOf("/",o);if(l<0)return n;const u=n.substr(0,l),d=n.substr(l);return u+rhe(d)}vT.removeDotSegmentsOfPath=R8;function nHt(n){return!n||n==="#"||n==="?"||n==="/"}(function(n){var r=fu&&fu.__createBinding||(Object.create?function(l,u,d,h){h===void 0&&(h=d),Object.defineProperty(l,h,{enumerable:!0,get:function(){return u[d]}})}:function(l,u,d,h){h===void 0&&(h=d),l[h]=u[d]}),o=fu&&fu.__exportStar||function(l,u){for(var d in l)d!=="default"&&!Object.prototype.hasOwnProperty.call(u,d)&&r(u,l,d)};Object.defineProperty(n,"__esModule",{value:!0}),o(vT,n)})(mJ);var hj={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.ERROR_CODES=n.ErrorCoded=void 0;class r extends Error{constructor(l,u){super(l),this.code=u}}n.ErrorCoded=r,function(o){o.COLLIDING_KEYWORDS="colliding keywords",o.CONFLICTING_INDEXES="conflicting indexes",o.CYCLIC_IRI_MAPPING="cyclic IRI mapping",o.INVALID_ID_VALUE="invalid @id value",o.INVALID_INDEX_VALUE="invalid @index value",o.INVALID_NEST_VALUE="invalid @nest value",o.INVALID_PREFIX_VALUE="invalid @prefix value",o.INVALID_PROPAGATE_VALUE="invalid @propagate value",o.INVALID_REVERSE_VALUE="invalid @reverse value",o.INVALID_IMPORT_VALUE="invalid @import value",o.INVALID_VERSION_VALUE="invalid @version value",o.INVALID_BASE_IRI="invalid base IRI",o.INVALID_CONTAINER_MAPPING="invalid container mapping",o.INVALID_CONTEXT_ENTRY="invalid context entry",o.INVALID_CONTEXT_NULLIFICATION="invalid context nullification",o.INVALID_DEFAULT_LANGUAGE="invalid default language",o.INVALID_INCLUDED_VALUE="invalid @included value",o.INVALID_IRI_MAPPING="invalid IRI mapping",o.INVALID_JSON_LITERAL="invalid JSON literal",o.INVALID_KEYWORD_ALIAS="invalid keyword alias",o.INVALID_LANGUAGE_MAP_VALUE="invalid language map value",o.INVALID_LANGUAGE_MAPPING="invalid language mapping",o.INVALID_LANGUAGE_TAGGED_STRING="invalid language-tagged string",o.INVALID_LANGUAGE_TAGGED_VALUE="invalid language-tagged value",o.INVALID_LOCAL_CONTEXT="invalid local context",o.INVALID_REMOTE_CONTEXT="invalid remote context",o.INVALID_REVERSE_PROPERTY="invalid reverse property",o.INVALID_REVERSE_PROPERTY_MAP="invalid reverse property map",o.INVALID_REVERSE_PROPERTY_VALUE="invalid reverse property value",o.INVALID_SCOPED_CONTEXT="invalid scoped context",o.INVALID_SCRIPT_ELEMENT="invalid script element",o.INVALID_SET_OR_LIST_OBJECT="invalid set or list object",o.INVALID_TERM_DEFINITION="invalid term definition",o.INVALID_TYPE_MAPPING="invalid type mapping",o.INVALID_TYPE_VALUE="invalid type value",o.INVALID_TYPED_VALUE="invalid typed value",o.INVALID_VALUE_OBJECT="invalid value object",o.INVALID_VALUE_OBJECT_VALUE="invalid value object value",o.INVALID_VOCAB_MAPPING="invalid vocab mapping",o.IRI_CONFUSED_WITH_PREFIX="IRI confused with prefix",o.KEYWORD_REDEFINITION="keyword redefinition",o.LOADING_DOCUMENT_FAILED="loading document failed",o.LOADING_REMOTE_CONTEXT_FAILED="loading remote context failed",o.MULTIPLE_CONTEXT_LINK_HEADERS="multiple context link headers",o.PROCESSING_MODE_CONFLICT="processing mode conflict",o.PROTECTED_TERM_REDEFINITION="protected term redefinition",o.CONTEXT_OVERFLOW="context overflow",o.INVALID_BASE_DIRECTION="invalid base direction",o.RECURSIVE_CONTEXT_INCLUSION="recursive context inclusion",o.INVALID_STREAMING_KEY_ORDER="invalid streaming key order",o.INVALID_EMBEDDED_NODE="invalid embedded node",o.INVALID_ANNOTATION="invalid annotation"}(n.ERROR_CODES||(n.ERROR_CODES={}))})(hj);var yJ={},$cr=/^utf-?8|ascii|utf-?16-?le|ucs-?2|base-?64|latin-?1$/i,Icr=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,Pcr=/\s|\uFEFF|\xA0/,Ocr=/\r?\n[\x20\x09]+/g,Ncr=/[;,"]/,Mcr=/[;,"]|\s/,Dcr=/^[!#$%&'*+\-\.^_`|~\da-zA-Z]+$/,kR={IDLE:1,URI:2,ATTR:4};function rHt(n){return n.replace(Icr,"")}function tde(n){return Pcr.test(n)}function Lcr(n,r){for(;tde(n[r]);)r++;return r}function iHt(n){return Mcr.test(n)||!Dcr.test(n)}function jcr(n,r){return Object.keys(n).length===Object.keys(r).length&&Object.keys(n).every(o=>o in r&&n[o]===r[o])}class cu{constructor(r){this.refs=[],r&&this.parse(r)}rel(r){for(var o=[],l=r.toLowerCase(),u=0;ujcr(o,r))||this.refs.push(r),this}has(r,o){r=r.toLowerCase(),o=o.toLowerCase();for(var l=0;l",d);if(w===-1)throw new Error("Expected end of URI delimiter at offset "+d);h={uri:r.slice(d+1,w)},d=w,l=kR.URI}else throw new Error('Unexpected character "'+r[d]+'" at offset '+d);d++}else if(l===kR.URI)if(tde(r[d])){d++;continue}else if(r[d]===";")l=kR.ATTR,d++;else if(r[d]===",")l=kR.IDLE,d++;else throw new Error('Unexpected character "'+r[d]+'" at offset '+d);else if(l===kR.ATTR){if(r[d]===";"||tde(r[d])){d++;continue}var w=r.indexOf("=",d);w===-1&&(w=r.indexOf(";",d)),w===-1&&(w=r.length);var v=rHt(r.slice(d,w)).toLowerCase(),y="";if(d=w+1,d=Lcr(r,d),r[d]==='"')for(d++;d"),r.push(o);return r.join(", ")}}cu.isCompatibleEncoding=function(n){return $cr.test(n)};cu.parse=function(n,r){return new cu().parse(n,r)};cu.isSingleOccurenceAttr=function(n){return n==="rel"||n==="type"||n==="media"||n==="title"||n==="title*"};cu.isTokenAttr=function(n){return n==="rel"||n==="type"||n==="anchor"};cu.escapeQuotes=function(n){return n.replace(/"/g,'\\"')};cu.expandRelations=function(n){var r=n.rel.split(" ");return r.map(function(o){var l=Object.assign({},n);return l.rel=o,l})};cu.parseExtendedValue=function(n){var r=/([^']+)?(?:'([^']*)')?(.+)/.exec(n);return{language:r[2].toLowerCase(),encoding:cu.isCompatibleEncoding(r[1])?null:r[1].toLowerCase(),value:cu.isCompatibleEncoding(r[1])?decodeURIComponent(r[3]):r[3]}};cu.formatExtendedAttribute=function(n,r){var o=(r.encoding||"utf-8").toUpperCase(),l=r.language||"en",u="";return Kr.Buffer.isBuffer(r.value)&&cu.isCompatibleEncoding(o)?u=r.value.toString(o):Kr.Buffer.isBuffer(r.value)?u=r.value.toString("hex").replace(/[0-9a-f]{2}/gi,"%$1"):u=encodeURIComponent(r.value),n+"="+o+"'"+l+"'"+u};cu.formatAttribute=function(n,r){return Array.isArray(r)?r.map(o=>cu.formatAttribute(n,o)).join("; "):n[n.length-1]==="*"||typeof r!="string"?cu.formatExtendedAttribute(n,r):(cu.isTokenAttr(n)?r=iHt(r)?'"'+cu.escapeQuotes(r)+'"':cu.escapeQuotes(r):iHt(r)&&(r=encodeURIComponent(r),r=r.replace(/%20/g," ").replace(/%2C/g,",").replace(/%3B/g,";"),r='"'+r+'"'),n+"="+r)};var xrn=cu;Object.defineProperty(yJ,"__esModule",{value:!0});yJ.FetchDocumentLoader=void 0;const oHt=hj,Fcr=xrn,Bcr=mJ;class Wcr{constructor(r){this.fetcher=r}async load(r){const o=await(this.fetcher||fetch)(r,{headers:new Headers({accept:"application/ld+json"})});if(o.ok&&o.headers){let l=o.headers.get("Content-Type");if(l){const u=l.indexOf(";");u>0&&(l=l.substr(0,u))}if(l==="application/ld+json")return await o.json();if(o.headers.has("Link")){let u;if(o.headers.forEach((d,h)=>{if(h==="link"){const w=(0,Fcr.parse)(d);for(const v of w.get("type","application/ld+json"))if(v.rel==="alternate"){if(u)throw new Error("Multiple JSON-LD alternate links were found on "+r);u=(0,Bcr.resolve)(v.uri,r)}}}),u)return this.load(u)}throw new oHt.ErrorCoded(`Unsupported JSON-LD media type ${l}`,oHt.ERROR_CODES.LOADING_DOCUMENT_FAILED)}else throw new Error(o.statusText||`Status code: ${o.status}`)}}yJ.FetchDocumentLoader=Wcr;var EUe={},pj={};Object.defineProperty(pj,"__esModule",{value:!0});pj.Util=void 0;let am=class CR{static isCompactIri(r){return r.indexOf(":")>0&&!(r&&r[0]==="#")}static getPrefix(r,o){if(r&&r[0]==="#")return null;const l=r.indexOf(":");if(l>=0){if(r.length>l+1&&r.charAt(l+1)==="/"&&r.charAt(l+2)==="/")return null;const u=r.substr(0,l);if(u==="_")return null;if(o[u])return u}return null}static getContextValueId(r){if(r===null||typeof r=="string")return r;const o=r["@id"];return o||null}static isSimpleTermDefinitionPrefix(r,o){return!CR.isPotentialKeyword(r)&&(o.allowPrefixNonGenDelims||typeof r=="string"&&(r[0]==="_"||CR.isPrefixIriEndingWithGenDelim(r)))}static isPotentialKeyword(r){return typeof r=="string"&&CR.KEYWORD_REGEX.test(r)}static isPrefixIriEndingWithGenDelim(r){return CR.ENDS_WITH_GEN_DELIM.test(r)}static isPrefixValue(r){return r&&(typeof r=="string"||r&&typeof r=="object")}static isValidIri(r){return!!(r&&CR.IRI_REGEX.test(r))}static isValidIriWeak(r){return!!r&&r[0]!==":"&&CR.IRI_REGEX_WEAK.test(r)}static isValidKeyword(r){return CR.VALID_KEYWORDS[r]}static isTermProtected(r,o){const l=r[o];return typeof l!="string"&&l&&l["@protected"]}static hasProtectedTerms(r){for(const o of Object.keys(r))if(CR.isTermProtected(r,o))return!0;return!1}static isReservedInternalKeyword(r){return r.startsWith("@__")}static deepEqual(r,o){const l=Object.keys(r),u=Object.keys(o);return l.length!==u.length?!1:l.every(d=>{const h=r[d],w=o[d];return h===w||h!==null&&w!==null&&typeof h=="object"&&typeof w=="object"&&this.deepEqual(h,w)})}};am.IRI_REGEX=/^([A-Za-z][A-Za-z0-9+-.]*|_):[^ "<>{}|\\\[\]`#]*(#[^#]*)?$/;am.IRI_REGEX_WEAK=/(?::[^:])|\//;am.KEYWORD_REGEX=/^@[a-z]+$/i;am.ENDS_WITH_GEN_DELIM=/[:/?#\[\]@]$/;am.REGEX_LANGUAGE_TAG=/^[a-zA-Z]+(-[a-zA-Z0-9]+)*$/;am.REGEX_DIRECTION_TAG=/^(ltr)|(rtl)$/;am.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};am.EXPAND_KEYS_BLACKLIST=["@base","@vocab","@language","@version","@direction"];am.ALIAS_DOMAIN_BLACKLIST=["@container","@graph","@id","@index","@list","@nest","@none","@prefix","@reverse","@set","@type","@value","@version"];am.ALIAS_RANGE_BLACKLIST=["@context","@preserve"];am.CONTAINERS=["@list","@set","@index","@language","@graph","@id","@type"];am.CONTAINERS_1_0=["@list","@set","@index"];pj.Util=am;(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.defaultExpandOptions=n.JsonLdContextNormalized=void 0;const r=mJ,o=hj,l=pj;class u{constructor(h){this.contextRaw=h}getContextRaw(){return this.contextRaw}expandTerm(h,w,v=n.defaultExpandOptions){const y=this.contextRaw[h];if(y===null||y&&y["@id"]===null)return null;let E=!0;if(y&&w){const L=l.Util.getContextValueId(y);if(L&&L!==h)if(typeof L!="string"||!l.Util.isValidIri(L)&&!l.Util.isValidKeyword(L))l.Util.isPotentialKeyword(L)||(E=!1);else return L}const A=l.Util.getPrefix(h,this.contextRaw),C=this.contextRaw["@vocab"],R=(!!C||C==="")&&C.indexOf(":")<0,O=this.contextRaw["@base"],M=l.Util.isPotentialKeyword(h);if(A){const L=this.contextRaw[A],H=l.Util.getContextValueId(L);if(H){if(typeof L=="string"||!v.allowPrefixForcing){if(!l.Util.isSimpleTermDefinitionPrefix(H,v))return h}else if(H[0]!=="_"&&!M&&!L["@prefix"]&&!(h in this.contextRaw))return h;return H+h.substr(A.length+1)}}else if(w&&(C||C===""||v.allowVocabRelativeToBase&&O&&R)&&!M&&!l.Util.isCompactIri(h))if(R){if(v.allowVocabRelativeToBase)return(C||O?(0,r.resolve)(C,O):"")+h;throw new o.ErrorCoded(`Relative vocab expansion for term '${h}' with vocab '${C}' is not allowed.`,o.ERROR_CODES.INVALID_VOCAB_MAPPING)}else return C+h;else if(!w&&O&&!M&&!l.Util.isCompactIri(h))return(0,r.resolve)(h,O);if(E)return h;throw new o.ErrorCoded(`Invalid IRI mapping found for context entry '${h}': '${JSON.stringify(y)}'`,o.ERROR_CODES.INVALID_IRI_MAPPING)}compactIri(h,w){if(w&&this.contextRaw["@vocab"]&&h.startsWith(this.contextRaw["@vocab"]))return h.substr(this.contextRaw["@vocab"].length);if(!w&&this.contextRaw["@base"]&&h.startsWith(this.contextRaw["@base"]))return h.substr(this.contextRaw["@base"].length);const v={prefix:"",suffix:h};for(const y in this.contextRaw){const E=this.contextRaw[y];if(E&&!l.Util.isPotentialKeyword(y)){const A=l.Util.getContextValueId(E);if(h.startsWith(A)){const C=h.substr(A.length);if(C)C.length=0&&(d!=="@type"||typeof u[d]=="object"&&!(u[d]["@protected"]||u[d]["@container"]==="@set")))throw new Sr.ErrorCoded(`Keywords can not be aliased to something else. Tried mapping ${d} to ${JSON.stringify(h)}`,Sr.ERROR_CODES.KEYWORD_REDEFINITION);if(Xo.Util.ALIAS_RANGE_BLACKLIST.indexOf(Xo.Util.getContextValueId(h))>=0)throw new Sr.ErrorCoded(`Aliasing to certain keywords is not allowed. -Tried mapping ${d} to ${JSON.stringify(h)}`,Sr.ERROR_CODES.INVALID_KEYWORD_ALIAS);if(h&&Xo.Util.isPotentialKeyword(Xo.Util.getContextValueId(h))&&h["@prefix"]===!0)throw new Sr.ErrorCoded(`Tried to use keyword aliases as prefix: '${d}': '${JSON.stringify(h)}'`,Sr.ERROR_CODES.INVALID_TERM_DEFINITION);for(;Xo.Util.isPrefixValue(u[d]);){const w=u[d];let v=!1;if(typeof w=="string")u[d]=r.expandTerm(w,!0),v=v||w!==u[d];else{const y=w["@id"],E=w["@type"],A=!("@prefix"in w)||Xo.Util.isValidIri(d);if("@id"in w)y!=null&&typeof y=="string"&&(u[d]=Object.assign(Object.assign({},u[d]),{"@id":r.expandTerm(y,!0)}),v=v||y!==u[d]["@id"]);else if(!Xo.Util.isPotentialKeyword(d)&&A){const C=r.expandTerm(d,!0);C!==d&&(u[d]=Object.assign(Object.assign({},u[d]),{"@id":C}),v=!0)}if(E&&typeof E=="string"&&E!=="@vocab"&&(!w["@container"]||!w["@container"]["@type"])&&A){let C=r.expandTerm(E,!0);o&&E===C&&(C=r.expandTerm(E,!1)),C!==E&&(v=!0,u[d]=Object.assign(Object.assign({},u[d]),{"@type":C}))}}if(!v)break}}}normalize(r,{processingMode:o,normalizeLanguageTags:l}){if(l||o===1)for(const u of Object.keys(r))if(u==="@language"&&typeof r[u]=="string")r[u]=r[u].toLowerCase();else{const d=r[u];if(d&&typeof d=="object"&&typeof d["@language"]=="string"){const h=d["@language"].toLowerCase();h!==d["@language"]&&(r[u]=Object.assign(Object.assign({},d),{"@language":h}))}}}containersToHash(r){for(const o of Object.keys(r)){const l=r[o];if(l&&typeof l=="object"){if(typeof l["@container"]=="string")r[o]=Object.assign(Object.assign({},l),{"@container":{[l["@container"]]:!0}});else if(Array.isArray(l["@container"])){const u={};for(const d of l["@container"])u[d]=!0;r[o]=Object.assign(Object.assign({},l),{"@container":u})}}}}applyScopedProtected(r,{processingMode:o},l){if(o&&o>=1.1&&r["@protected"]){for(const u of Object.keys(r))if(!Xo.Util.isReservedInternalKeyword(u)&&!Xo.Util.isPotentialKeyword(u)&&!Xo.Util.isTermProtected(r,u)){const d=r[u];d&&typeof d=="object"?"@protected"in r[u]||(r[u]=Object.assign(Object.assign({},r[u]),{"@protected":!0})):(r[u]={"@id":d,"@protected":!0},Xo.Util.isSimpleTermDefinitionPrefix(d,l)&&(r[u]=Object.assign(Object.assign({},r[u]),{"@prefix":!0})))}delete r["@protected"]}}validateKeywordRedefinitions(r,o,l,u){for(const d of u??Object.keys(o))if(Xo.Util.isTermProtected(r,d)&&(typeof o[d]=="string"?o[d]={"@id":o[d],"@protected":!0}:o[d]=Object.assign(Object.assign({},o[d]),{"@protected":!0}),!Xo.Util.deepEqual(r[d],o[d])))throw new Sr.ErrorCoded(`Attempted to override the protected keyword ${d} from ${JSON.stringify(Xo.Util.getContextValueId(r[d]))} to ${JSON.stringify(Xo.Util.getContextValueId(o[d]))}`,Sr.ERROR_CODES.PROTECTED_TERM_REDEFINITION)}validate(r,{processingMode:o}){for(const l of Object.keys(r)){if(Xo.Util.isReservedInternalKeyword(l))continue;if(l==="")throw new Sr.ErrorCoded(`The empty term is not allowed, got: '${l}': '${JSON.stringify(r[l])}'`,Sr.ERROR_CODES.INVALID_TERM_DEFINITION);const u=r[l],d=typeof u;if(Xo.Util.isPotentialKeyword(l)){switch(l.substr(1)){case"vocab":if(u!==null&&d!=="string")throw new Sr.ErrorCoded(`Found an invalid @vocab IRI: ${u}`,Sr.ERROR_CODES.INVALID_VOCAB_MAPPING);break;case"base":if(u!==null&&d!=="string")throw new Sr.ErrorCoded(`Found an invalid @base IRI: ${r[l]}`,Sr.ERROR_CODES.INVALID_BASE_IRI);break;case"language":u!==null&&IR.validateLanguage(u,!0,Sr.ERROR_CODES.INVALID_DEFAULT_LANGUAGE);break;case"version":if(u!==null&&d!=="number")throw new Sr.ErrorCoded(`Found an invalid @version number: ${u}`,Sr.ERROR_CODES.INVALID_VERSION_VALUE);break;case"direction":u!==null&&IR.validateDirection(u,!0);break;case"propagate":if(o===1)throw new Sr.ErrorCoded(`Found an illegal @propagate keyword: ${u}`,Sr.ERROR_CODES.INVALID_CONTEXT_ENTRY);if(u!==null&&d!=="boolean")throw new Sr.ErrorCoded(`Found an invalid @propagate value: ${u}`,Sr.ERROR_CODES.INVALID_PROPAGATE_VALUE);break}if(Xo.Util.isValidKeyword(l)&&Xo.Util.isValidKeyword(Xo.Util.getContextValueId(u)))throw new Sr.ErrorCoded(`Illegal keyword alias in term value, found: '${l}': '${Xo.Util.getContextValueId(u)}'`,Sr.ERROR_CODES.KEYWORD_REDEFINITION);continue}if(u!==null)switch(d){case"string":if(Xo.Util.getPrefix(u,r)===l)throw new Sr.ErrorCoded(`Detected cyclical IRI mapping in context entry: '${l}': '${JSON.stringify(u)}'`,Sr.ERROR_CODES.CYCLIC_IRI_MAPPING);if(Xo.Util.isValidIriWeak(l)){if(u==="@type")throw new Sr.ErrorCoded(`IRIs can not be mapped to @type, found: '${l}': '${u}'`,Sr.ERROR_CODES.INVALID_IRI_MAPPING);if(Xo.Util.isValidIri(u)&&u!==new lS.JsonLdContextNormalized(r).expandTerm(l))throw new Sr.ErrorCoded(`IRIs can not be mapped to other IRIs, found: '${l}': '${u}'`,Sr.ERROR_CODES.INVALID_IRI_MAPPING)}break;case"object":if(!Xo.Util.isCompactIri(l)&&!("@id"in u)&&(u["@type"]==="@id"?!r["@base"]:!r["@vocab"]))throw new Sr.ErrorCoded(`Missing @id in context entry: '${l}': '${JSON.stringify(u)}'`,Sr.ERROR_CODES.INVALID_IRI_MAPPING);for(const h of Object.keys(u)){const w=u[h];if(w)switch(h){case"@id":if(Xo.Util.isValidKeyword(w)&&w!=="@type"&&w!=="@id"&&w!=="@graph"&&w!=="@nest")throw new Sr.ErrorCoded(`Illegal keyword alias in term value, found: '${l}': '${JSON.stringify(u)}'`,Sr.ERROR_CODES.INVALID_IRI_MAPPING);if(Xo.Util.isValidIriWeak(l)){if(w==="@type")throw new Sr.ErrorCoded(`IRIs can not be mapped to @type, found: '${l}': '${JSON.stringify(u)}'`,Sr.ERROR_CODES.INVALID_IRI_MAPPING);if(Xo.Util.isValidIri(w)&&w!==new lS.JsonLdContextNormalized(r).expandTerm(l))throw new Sr.ErrorCoded(`IRIs can not be mapped to other IRIs, found: '${l}': '${JSON.stringify(u)}'`,Sr.ERROR_CODES.INVALID_IRI_MAPPING)}if(typeof w!="string")throw new Sr.ErrorCoded(`Detected non-string @id in context entry: '${l}': '${JSON.stringify(u)}'`,Sr.ERROR_CODES.INVALID_IRI_MAPPING);if(Xo.Util.getPrefix(w,r)===l)throw new Sr.ErrorCoded(`Detected cyclical IRI mapping in context entry: '${l}': '${JSON.stringify(u)}'`,Sr.ERROR_CODES.CYCLIC_IRI_MAPPING);break;case"@type":if(u["@container"]==="@type"&&w!=="@id"&&w!=="@vocab")throw new Sr.ErrorCoded(`@container: @type only allows @type: @id or @vocab, but got: '${l}': '${w}'`,Sr.ERROR_CODES.INVALID_TYPE_MAPPING);if(typeof w!="string")throw new Sr.ErrorCoded(`The value of an '@type' must be a string, got '${JSON.stringify(d)}'`,Sr.ERROR_CODES.INVALID_TYPE_MAPPING);if(w!=="@id"&&w!=="@vocab"&&(o===1||w!=="@json")&&(o===1||w!=="@none")&&(w[0]==="_"||!Xo.Util.isValidIri(w)))throw new Sr.ErrorCoded(`A context @type must be an absolute IRI, found: '${l}': '${w}'`,Sr.ERROR_CODES.INVALID_TYPE_MAPPING);break;case"@reverse":if(typeof w=="string"&&u["@id"]&&u["@id"]!==w)throw new Sr.ErrorCoded(`Found non-matching @id and @reverse term values in '${l}':'${w}' and '${u["@id"]}'`,Sr.ERROR_CODES.INVALID_REVERSE_PROPERTY);if("@nest"in u)throw new Sr.ErrorCoded(`@nest is not allowed in the reverse property '${l}'`,Sr.ERROR_CODES.INVALID_REVERSE_PROPERTY);break;case"@container":if(o===1&&(Object.keys(w).length>1||Xo.Util.CONTAINERS_1_0.indexOf(Object.keys(w)[0])<0))throw new Sr.ErrorCoded(`Invalid term @container for '${l}' ('${Object.keys(w)}') in 1.0, must be only one of ${Xo.Util.CONTAINERS_1_0.join(", ")}`,Sr.ERROR_CODES.INVALID_CONTAINER_MAPPING);for(const v of Object.keys(w)){if(v==="@list"&&u["@reverse"])throw new Sr.ErrorCoded(`Term value can not be @container: @list and @reverse at the same time on '${l}'`,Sr.ERROR_CODES.INVALID_REVERSE_PROPERTY);if(Xo.Util.CONTAINERS.indexOf(v)<0)throw new Sr.ErrorCoded(`Invalid term @container for '${l}' ('${v}'), must be one of ${Xo.Util.CONTAINERS.join(", ")}`,Sr.ERROR_CODES.INVALID_CONTAINER_MAPPING)}break;case"@language":IR.validateLanguage(w,!0,Sr.ERROR_CODES.INVALID_LANGUAGE_MAPPING);break;case"@direction":IR.validateDirection(w,!0);break;case"@prefix":if(w!==null&&typeof w!="boolean")throw new Sr.ErrorCoded(`Found an invalid term @prefix boolean in: '${l}': '${JSON.stringify(u)}'`,Sr.ERROR_CODES.INVALID_PREFIX_VALUE);if(!("@id"in u)&&!Xo.Util.isValidIri(l))throw new Sr.ErrorCoded(`Invalid @prefix definition for '${l}' ('${JSON.stringify(u)}'`,Sr.ERROR_CODES.INVALID_TERM_DEFINITION);break;case"@index":if(o===1||!u["@container"]||!u["@container"]["@index"])throw new Sr.ErrorCoded(`Attempt to add illegal key to value object: '${l}': '${JSON.stringify(u)}'`,Sr.ERROR_CODES.INVALID_TERM_DEFINITION);break;case"@nest":if(Xo.Util.isPotentialKeyword(w)&&w!=="@nest")throw new Sr.ErrorCoded(`Found an invalid term @nest value in: '${l}': '${JSON.stringify(u)}'`,Sr.ERROR_CODES.INVALID_NEST_VALUE)}}break;default:throw new Sr.ErrorCoded(`Found an invalid term value: '${l}': '${u}'`,Sr.ERROR_CODES.INVALID_TERM_DEFINITION)}}}applyBaseEntry(r,o,l){return typeof r=="string"||(l&&!("@base"in r)&&o.parentContext&&typeof o.parentContext=="object"&&"@base"in o.parentContext&&(r["@base"]=o.parentContext["@base"],o.parentContext["@__baseDocument"]&&(r["@__baseDocument"]=!0)),o.baseIRI&&!o.external&&("@base"in r?r["@base"]!==null&&typeof r["@base"]=="string"&&!Xo.Util.isValidIri(r["@base"])&&(r["@base"]=(0,ZWt.resolve)(r["@base"],o.parentContext&&o.parentContext["@base"]||o.baseIRI)):(r["@base"]=o.baseIRI,r["@__baseDocument"]=!0))),r}normalizeContextIri(r,o){if(!Xo.Util.isValidIri(r))try{r=(0,ZWt.resolve)(r,o)}catch{throw new Error(`Invalid context IRI: ${r}`)}return this.redirectSchemaOrgHttps&&r.startsWith("http://schema.org")&&(r="https://schema.org/"),r}async parseInnerContexts(r,o,l){for(const u of l??Object.keys(r)){const d=r[u];if(d&&typeof d=="object"&&"@context"in d&&d["@context"]!==null&&!o.ignoreScopedContexts){if(this.validateContext)try{const h=Object.assign(Object.assign({},r),{[u]:Object.assign({},r[u])});delete h[u]["@context"],await this.parse(d["@context"],Object.assign(Object.assign({},o),{external:!1,parentContext:h,ignoreProtection:!0,ignoreRemoteScopedContexts:!0,ignoreScopedContexts:!0}))}catch(h){throw new Sr.ErrorCoded(h.message,Sr.ERROR_CODES.INVALID_SCOPED_CONTEXT)}r[u]=Object.assign(Object.assign({},d),{"@context":(await this.parse(d["@context"],Object.assign(Object.assign({},o),{external:!1,minimalProcessing:!0,ignoreRemoteScopedContexts:!0,parentContext:r}))).getContextRaw()})}}return r}async parse(r,o={},l={}){const{baseIRI:u,parentContext:d,external:h,processingMode:w=IR.DEFAULT_PROCESSING_MODE,normalizeLanguageTags:v,ignoreProtection:y,minimalProcessing:E}=o,A=o.remoteContexts||{};if(Object.keys(A).length>=this.remoteContextsDepthLimit)throw new Sr.ErrorCoded("Detected an overflow in remote context inclusions: "+Object.keys(A),Sr.ERROR_CODES.CONTEXT_OVERFLOW);if(r==null){if(!y&&d&&Xo.Util.hasProtectedTerms(d))throw new Sr.ErrorCoded("Illegal context nullification when terms are protected",Sr.ERROR_CODES.INVALID_CONTEXT_NULLIFICATION);return new lS.JsonLdContextNormalized(this.applyBaseEntry({},o,!1))}else if(typeof r=="string"){const C=this.normalizeContextIri(r,u),R=this.getOverriddenLoad(C,o);if(R)return new lS.JsonLdContextNormalized(R);const O=await this.parse(await this.load(C),Object.assign(Object.assign({},o),{baseIRI:C,external:!0,remoteContexts:Object.assign(Object.assign({},A),{[C]:!0})}));return this.applyBaseEntry(O.getContextRaw(),o,!0),O}else if(Array.isArray(r)){const C=[],R=await Promise.all(r.map((M,L)=>{if(typeof M=="string"){const H=this.normalizeContextIri(M,u);C[L]=H;const G=this.getOverriddenLoad(H,o);return G||this.load(H)}else return M}));if(E)return new lS.JsonLdContextNormalized(R);const O=await R.reduce((M,L,H)=>M.then(G=>this.parse(L,Object.assign(Object.assign({},o),{baseIRI:C[H]||o.baseIRI,external:!!C[H]||o.external,parentContext:G.getContextRaw(),remoteContexts:C[H]?Object.assign(Object.assign({},A),{[C[H]]:!0}):A}),{skipValidation:H=1.1){if(typeof r["@import"]!="string")throw new Sr.ErrorCoded("An @import value must be a string, but got "+typeof r["@import"],Sr.ERROR_CODES.INVALID_IMPORT_VALUE);C=await this.loadImportContext(this.normalizeContextIri(r["@import"],u)),delete r["@import"]}else throw new Sr.ErrorCoded("Context importing is not supported in JSON-LD 1.0",Sr.ERROR_CODES.INVALID_CONTEXT_ENTRY);this.applyScopedProtected(C,{processingMode:w},lS.defaultExpandOptions);const R=Object.assign(C,r);this.idifyReverseTerms(R),this.normalize(R,{processingMode:w,normalizeLanguageTags:v}),this.applyScopedProtected(R,{processingMode:w},lS.defaultExpandOptions);const O=Object.keys(R),M=[];if(typeof d=="object")for(const H in d)H in R?M.push(H):R[H]=d[H];await this.parseInnerContexts(R,o,O);const L=new lS.JsonLdContextNormalized(R);return(R&&R["@version"]||IR.DEFAULT_PROCESSING_MODE)>=1.1&&(r["@vocab"]&&typeof r["@vocab"]=="string"||r["@vocab"]==="")&&(d&&"@vocab"in d&&r["@vocab"].indexOf(":")<0?R["@vocab"]=d["@vocab"]+r["@vocab"]:(Xo.Util.isCompactIri(r["@vocab"])||r["@vocab"]in R)&&(R["@vocab"]=L.expandTerm(r["@vocab"],!0))),this.expandPrefixedTerms(L,this.expandContentTypeToBase,O),!y&&d&&w>=1.1&&this.validateKeywordRedefinitions(d,R,lS.defaultExpandOptions,M),this.validateContext&&!l.skipValidation&&this.validate(R,{processingMode:w}),L}else throw new Sr.ErrorCoded(`Tried parsing a context that is not a string, array or object, but got ${r}`,Sr.ERROR_CODES.INVALID_LOCAL_CONTEXT)}async load(r){const o=this.documentCache[r];if(o)return o;let l;try{l=await this.documentLoader.load(r)}catch(u){throw new Sr.ErrorCoded(`Failed to load remote context ${r}: ${u.message}`,Sr.ERROR_CODES.LOADING_REMOTE_CONTEXT_FAILED)}if(!("@context"in l))throw new Sr.ErrorCoded(`Missing @context in remote context at ${r}`,Sr.ERROR_CODES.INVALID_REMOTE_CONTEXT);return this.documentCache[r]=l["@context"]}getOverriddenLoad(r,o){if(r in(o.remoteContexts||{})){if(o.ignoreRemoteScopedContexts)return r;throw new Sr.ErrorCoded("Detected a cyclic context inclusion of "+r,Sr.ERROR_CODES.RECURSIVE_CONTEXT_INCLUSION)}return null}async loadImportContext(r){let o=await this.load(r);if(typeof o!="object"||Array.isArray(o))throw new Sr.ErrorCoded("An imported context must be a single object: "+r,Sr.ERROR_CODES.INVALID_REMOTE_CONTEXT);if("@import"in o)throw new Sr.ErrorCoded("An imported context can not import another context: "+r,Sr.ERROR_CODES.INVALID_CONTEXT_ENTRY);return o=Object.assign({},o),this.containersToHash(o),o}}IR.DEFAULT_PROCESSING_MODE=1.1;Ype.ContextParser=IR;var mrn={};Object.defineProperty(mrn,"__esModule",{value:!0});var yrn={};Object.defineProperty(yrn,"__esModule",{value:!0});(function(n){var r=fu&&fu.__createBinding||(Object.create?function(l,u,d,h){h===void 0&&(h=d);var w=Object.getOwnPropertyDescriptor(u,d);(!w||("get"in w?!u.__esModule:w.writable||w.configurable))&&(w={enumerable:!0,get:function(){return u[d]}}),Object.defineProperty(l,h,w)}:function(l,u,d,h){h===void 0&&(h=d),l[h]=u[d]}),o=fu&&fu.__exportStar||function(l,u){for(var d in l)d!=="default"&&!Object.prototype.hasOwnProperty.call(u,d)&&r(u,l,d)};Object.defineProperty(n,"__esModule",{value:!0}),o(Ype,n),o(pj,n),o(wJ,n),o(mrn,n),o(yrn,n),o(wUe,n),o(bj,n)})(a1);var vrn={exports:{}},CNe={exports:{}},Lf={ArrayIsArray(n){return Array.isArray(n)},ArrayPrototypeIncludes(n,r){return n.includes(r)},ArrayPrototypeIndexOf(n,r){return n.indexOf(r)},ArrayPrototypeJoin(n,r){return n.join(r)},ArrayPrototypeMap(n,r){return n.map(r)},ArrayPrototypePop(n,r){return n.pop(r)},ArrayPrototypePush(n,r){return n.push(r)},ArrayPrototypeSlice(n,r,o){return n.slice(r,o)},Error,FunctionPrototypeCall(n,r,...o){return n.call(r,...o)},FunctionPrototypeSymbolHasInstance(n,r){return Function.prototype[Symbol.hasInstance].call(n,r)},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(n,r){return Object.defineProperties(n,r)},ObjectDefineProperty(n,r,o){return Object.defineProperty(n,r,o)},ObjectGetOwnPropertyDescriptor(n,r){return Object.getOwnPropertyDescriptor(n,r)},ObjectKeys(n){return Object.keys(n)},ObjectSetPrototypeOf(n,r){return Object.setPrototypeOf(n,r)},Promise,PromisePrototypeCatch(n,r){return n.catch(r)},PromisePrototypeThen(n,r,o){return n.then(r,o)},PromiseReject(n){return Promise.reject(n)},PromiseResolve(n){return Promise.resolve(n)},ReflectApply:Reflect.apply,RegExpPrototypeTest(n,r){return n.test(r)},SafeSet:Set,String,StringPrototypeSlice(n,r,o){return n.slice(r,o)},StringPrototypeToLowerCase(n){return n.toLowerCase()},StringPrototypeToUpperCase(n){return n.toUpperCase()},StringPrototypeTrim(n){return n.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(n,r,o){return n.set(r,o)},Boolean,Uint8Array},_rn={exports:{}};(function(n){const r=Kr,{kResistStopPropagation:o,SymbolDispose:l}=Lf,u=globalThis.AbortSignal||$o().AbortSignal,d=globalThis.AbortController||$o().AbortController,h=Object.getPrototypeOf(async function(){}).constructor,w=globalThis.Blob||r.Blob,v=typeof w<"u"?function(R){return R instanceof w}:function(R){return!1},y=(C,R)=>{if(C!==void 0&&(C===null||typeof C!="object"||!("aborted"in C)))throw new ERR_INVALID_ARG_TYPE(R,"AbortSignal",C)},E=(C,R)=>{if(typeof C!="function")throw new ERR_INVALID_ARG_TYPE(R,"Function",C)};class A extends Error{constructor(R){if(!Array.isArray(R))throw new TypeError(`Expected input to be an Array, got ${typeof R}`);let O="";for(let M=0;M{C=M,R=L}),resolve:C,reject:R}},promisify(C){return new Promise((R,O)=>{C((M,...L)=>M?O(M):R(...L))})},debuglog(){return function(){}},format(C,...R){return C.replace(/%([sdifj])/g,function(...[O,M]){const L=R.shift();return M==="f"?L.toFixed(6):M==="j"?JSON.stringify(L):M==="s"&&typeof L=="object"?`${L.constructor!==Object?L.constructor.name:""} {}`.trim():L.toString()})},inspect(C){switch(typeof C){case"string":if(C.includes("'"))if(C.includes('"')){if(!C.includes("`")&&!C.includes("${"))return`\`${C}\``}else return`"${C}"`;return`'${C}'`;case"number":return isNaN(C)?"NaN":Object.is(C,-0)?String(C):C;case"bigint":return`${String(C)}n`;case"boolean":case"undefined":return String(C);case"object":return"{}"}},types:{isAsyncFunction(C){return C instanceof h},isArrayBufferView(C){return ArrayBuffer.isView(C)}},isBlob:v,deprecate(C,R){return C},addAbortListener:Ns.addAbortListener||function(R,O){if(R===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",R);y(R,"signal"),E(O,"listener");let M;return R.aborted?queueMicrotask(()=>O()):(R.addEventListener("abort",O,{__proto__:null,once:!0,[o]:!0}),M=()=>{R.removeEventListener("abort",O)}),{__proto__:null,[l](){var L;(L=M)===null||L===void 0||L()}}},AbortSignalAny:u.any||function(R){if(R.length===1)return R[0];const O=new d,M=()=>O.abort();return R.forEach(L=>{y(L,"signals"),L.addEventListener("abort",M,{once:!0})}),O.signal.addEventListener("abort",()=>{R.forEach(L=>L.removeEventListener("abort",M))},{once:!0}),O.signal}},n.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(_rn);var c1=_rn.exports,mUe={};const{format:Rcr,inspect:the,AggregateError:xcr}=c1,Ccr=globalThis.AggregateError||xcr,Acr=Symbol("kIsNodeError"),Tcr=["string","function","number","object","Function","Object","boolean","bigint","symbol"],$cr=/^([A-Z][a-z0-9]*)+$/,Icr="__node_internal_",Qpe={};function oP(n,r){if(!n)throw new Qpe.ERR_INTERNAL_ASSERTION(r)}function eHt(n){let r="",o=n.length;const l=n[0]==="-"?1:0;for(;o>=l+4;o-=3)r=`_${n.slice(o-3,o)}${r}`;return`${n.slice(0,o)}${r}`}function Pcr(n,r,o){if(typeof r=="function")return oP(r.length<=o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${r.length}).`),r(...o);const l=(r.match(/%[dfijoOs]/g)||[]).length;return oP(l===o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${l}).`),o.length===0?r:Rcr(r,...o)}function Jp(n,r,o){o||(o=Error);class l extends o{constructor(...d){super(Pcr(n,r,d))}toString(){return`${this.name} [${n}]: ${this.message}`}}Object.defineProperties(l.prototype,{name:{value:o.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${n}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),l.prototype.code=n,l.prototype[Acr]=!0,Qpe[n]=l}function tHt(n){const r=Icr+n.name;return Object.defineProperty(n,"name",{value:r}),n}function Ocr(n,r){if(n&&r&&n!==r){if(Array.isArray(r.errors))return r.errors.push(n),r;const o=new Ccr([r,n],r.message);return o.code=r.code,o}return n||r}let Ncr=class extends Error{constructor(r="The operation was aborted",o=void 0){if(o!==void 0&&typeof o!="object")throw new Qpe.ERR_INVALID_ARG_TYPE("options","Object",o);super(r,o),this.code="ABORT_ERR",this.name="AbortError"}};Jp("ERR_ASSERTION","%s",Error);Jp("ERR_INVALID_ARG_TYPE",(n,r,o)=>{oP(typeof n=="string","'name' must be a string"),Array.isArray(r)||(r=[r]);let l="The ";n.endsWith(" argument")?l+=`${n} `:l+=`"${n}" ${n.includes(".")?"property":"argument"} `,l+="must be ";const u=[],d=[],h=[];for(const v of r)oP(typeof v=="string","All expected entries have to be of type string"),Tcr.includes(v)?u.push(v.toLowerCase()):$cr.test(v)?d.push(v):(oP(v!=="object",'The value "object" should be written as "Object"'),h.push(v));if(d.length>0){const v=u.indexOf("object");v!==-1&&(u.splice(u,v,1),d.push("Object"))}if(u.length>0){switch(u.length){case 1:l+=`of type ${u[0]}`;break;case 2:l+=`one of type ${u[0]} or ${u[1]}`;break;default:{const v=u.pop();l+=`one of type ${u.join(", ")}, or ${v}`}}(d.length>0||h.length>0)&&(l+=" or ")}if(d.length>0){switch(d.length){case 1:l+=`an instance of ${d[0]}`;break;case 2:l+=`an instance of ${d[0]} or ${d[1]}`;break;default:{const v=d.pop();l+=`an instance of ${d.join(", ")}, or ${v}`}}h.length>0&&(l+=" or ")}switch(h.length){case 0:break;case 1:h[0].toLowerCase()!==h[0]&&(l+="an "),l+=`${h[0]}`;break;case 2:l+=`one of ${h[0]} or ${h[1]}`;break;default:{const v=h.pop();l+=`one of ${h.join(", ")}, or ${v}`}}if(o==null)l+=`. Received ${o}`;else if(typeof o=="function"&&o.name)l+=`. Received function ${o.name}`;else if(typeof o=="object"){var w;if((w=o.constructor)!==null&&w!==void 0&&w.name)l+=`. Received an instance of ${o.constructor.name}`;else{const v=the(o,{depth:-1});l+=`. Received ${v}`}}else{let v=the(o,{colors:!1});v.length>25&&(v=`${v.slice(0,25)}...`),l+=`. Received type ${typeof o} (${v})`}return l},TypeError);Jp("ERR_INVALID_ARG_VALUE",(n,r,o="is invalid")=>{let l=the(r);return l.length>128&&(l=l.slice(0,128)+"..."),`The ${n.includes(".")?"property":"argument"} '${n}' ${o}. Received ${l}`},TypeError);Jp("ERR_INVALID_RETURN_VALUE",(n,r,o)=>{var l;const u=o!=null&&(l=o.constructor)!==null&&l!==void 0&&l.name?`instance of ${o.constructor.name}`:`type ${typeof o}`;return`Expected ${n} to be returned from the "${r}" function but got ${u}.`},TypeError);Jp("ERR_MISSING_ARGS",(...n)=>{oP(n.length>0,"At least one arg needs to be specified");let r;const o=n.length;switch(n=(Array.isArray(n)?n:[n]).map(l=>`"${l}"`).join(" or "),o){case 1:r+=`The ${n[0]} argument`;break;case 2:r+=`The ${n[0]} and ${n[1]} arguments`;break;default:{const l=n.pop();r+=`The ${n.join(", ")}, and ${l} arguments`}break}return`${r} must be specified`},TypeError);Jp("ERR_OUT_OF_RANGE",(n,r,o)=>{oP(r,'Missing "range" argument');let l;return Number.isInteger(o)&&Math.abs(o)>2**32?l=eHt(String(o)):typeof o=="bigint"?(l=String(o),(o>2n**32n||o<-(2n**32n))&&(l=eHt(l)),l+="n"):l=the(o),`The value of "${n}" is out of range. It must be ${r}. Received ${l}`},RangeError);Jp("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);Jp("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);Jp("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);Jp("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);Jp("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);Jp("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Jp("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);Jp("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);Jp("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);Jp("ERR_STREAM_WRITE_AFTER_END","write after end",Error);Jp("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var T0={AbortError:Ncr,aggregateTwoErrors:tHt(Ocr),hideStackFrames:tHt,codes:Qpe};const{ArrayIsArray:yUe,ArrayPrototypeIncludes:Srn,ArrayPrototypeJoin:Ern,ArrayPrototypeMap:Mcr,NumberIsInteger:vUe,NumberIsNaN:Dcr,NumberMAX_SAFE_INTEGER:Lcr,NumberMIN_SAFE_INTEGER:jcr,NumberParseInt:Fcr,ObjectPrototypeHasOwnProperty:Bcr,RegExpPrototypeExec:krn,String:Wcr,StringPrototypeToUpperCase:Hcr,StringPrototypeTrim:Ucr}=Lf,{hideStackFrames:pv,codes:{ERR_SOCKET_BAD_PORT:Gcr,ERR_INVALID_ARG_TYPE:Kb,ERR_INVALID_ARG_VALUE:gj,ERR_OUT_OF_RANGE:CP,ERR_UNKNOWN_SIGNAL:nHt}}=T0,{normalizeEncoding:Vcr}=c1,{isAsyncFunction:zcr,isArrayBufferView:Kcr}=c1.types,rHt={};function qcr(n){return n===(n|0)}function Xcr(n){return n===n>>>0}const Jcr=/^[0-7]+$/,Ycr="must be a 32-bit unsigned integer or an octal string";function Qcr(n,r,o){if(typeof n>"u"&&(n=o),typeof n=="string"){if(krn(Jcr,n)===null)throw new gj(r,n,Ycr);n=Fcr(n,8)}return Rrn(n,r),n}const Zcr=pv((n,r,o=jcr,l=Lcr)=>{if(typeof n!="number")throw new Kb(r,"number",n);if(!vUe(n))throw new CP(r,"an integer",n);if(nl)throw new CP(r,`>= ${o} && <= ${l}`,n)}),eur=pv((n,r,o=-2147483648,l=2147483647)=>{if(typeof n!="number")throw new Kb(r,"number",n);if(!vUe(n))throw new CP(r,"an integer",n);if(nl)throw new CP(r,`>= ${o} && <= ${l}`,n)}),Rrn=pv((n,r,o=!1)=>{if(typeof n!="number")throw new Kb(r,"number",n);if(!vUe(n))throw new CP(r,"an integer",n);const l=o?1:0,u=4294967295;if(nu)throw new CP(r,`>= ${l} && <= ${u}`,n)});function _Ue(n,r){if(typeof n!="string")throw new Kb(r,"string",n)}function tur(n,r,o=void 0,l){if(typeof n!="number")throw new Kb(r,"number",n);if(o!=null&&nl||(o!=null||l!=null)&&Dcr(n))throw new CP(r,`${o!=null?`>= ${o}`:""}${o!=null&&l!=null?" && ":""}${l!=null?`<= ${l}`:""}`,n)}const nur=pv((n,r,o)=>{if(!Srn(o,n)){const u="must be one of: "+Ern(Mcr(o,d=>typeof d=="string"?`'${d}'`:Wcr(d)),", ");throw new gj(r,n,u)}});function xrn(n,r){if(typeof n!="boolean")throw new Kb(r,"boolean",n)}function ANe(n,r,o){return n==null||!Bcr(n,r)?o:n[r]}const rur=pv((n,r,o=null)=>{const l=ANe(o,"allowArray",!1),u=ANe(o,"allowFunction",!1);if(!ANe(o,"nullable",!1)&&n===null||!l&&yUe(n)||typeof n!="object"&&(!u||typeof n!="function"))throw new Kb(r,"Object",n)}),iur=pv((n,r)=>{if(n!=null&&typeof n!="object"&&typeof n!="function")throw new Kb(r,"a dictionary",n)}),Zpe=pv((n,r,o=0)=>{if(!yUe(n))throw new Kb(r,"Array",n);if(n.length{if(!Kcr(n))throw new Kb(r,["Buffer","TypedArray","DataView"],n)});function uur(n,r){const o=Vcr(r),l=n.length;if(o==="hex"&&l%2!==0)throw new gj("encoding",r,`is invalid for data of length ${l}`)}function fur(n,r="Port",o=!0){if(typeof n!="number"&&typeof n!="string"||typeof n=="string"&&Ucr(n).length===0||+n!==+n>>>0||n>65535||n===0&&!o)throw new Gcr(r,n,o);return n|0}const Crn=pv((n,r)=>{if(n!==void 0&&(n===null||typeof n!="object"||!("aborted"in n)))throw new Kb(r,"AbortSignal",n)}),dur=pv((n,r)=>{if(typeof n!="function")throw new Kb(r,"Function",n)}),hur=pv((n,r)=>{if(typeof n!="function"||zcr(n))throw new Kb(r,"Function",n)}),pur=pv((n,r)=>{if(n!==void 0)throw new Kb(r,"undefined",n)});function bur(n,r,o){if(!Srn(o,n))throw new Kb(r,`('${Ern(o,"|")}')`,n)}const gur=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function iHt(n,r){if(typeof n>"u"||!krn(gur,n))throw new gj(r,n,'must be an array or string of format "; rel=preload; as=style"')}function wur(n){if(typeof n=="string")return iHt(n,"hints"),n;if(yUe(n)){const r=n.length;let o="";if(r===0)return o;for(let l=0;l; rel=preload; as=style"')}var mJ={isInt32:qcr,isUint32:Xcr,parseFileMode:Qcr,validateArray:Zpe,validateStringArray:our,validateBooleanArray:sur,validateAbortSignalArray:lur,validateBoolean:xrn,validateBuffer:cur,validateDictionary:iur,validateEncoding:uur,validateFunction:dur,validateInt32:eur,validateInteger:Zcr,validateNumber:tur,validateObject:rur,validateOneOf:nur,validatePlainFunction:hur,validatePort:fur,validateSignalName:aur,validateString:_Ue,validateUint32:Rrn,validateUndefined:pur,validateUnion:bur,validateAbortSignal:Crn,validateLinkHeaderValue:wur},SUe={exports:{}};const{SymbolAsyncIterator:oHt,SymbolIterator:sHt,SymbolFor:ZP}=Lf,Arn=ZP("nodejs.stream.destroyed"),Trn=ZP("nodejs.stream.errored"),Pje=ZP("nodejs.stream.readable"),Oje=ZP("nodejs.stream.writable"),$rn=ZP("nodejs.stream.disturbed"),mur=ZP("nodejs.webstream.isClosedPromise"),yur=ZP("nodejs.webstream.controllerErrorFunction");function ebe(n,r=!1){var o;return!!(n&&typeof n.pipe=="function"&&typeof n.on=="function"&&(!r||typeof n.pause=="function"&&typeof n.resume=="function")&&(!n._writableState||((o=n._readableState)===null||o===void 0?void 0:o.readable)!==!1)&&(!n._writableState||n._readableState))}function tbe(n){var r;return!!(n&&typeof n.write=="function"&&typeof n.on=="function"&&(!n._readableState||((r=n._writableState)===null||r===void 0?void 0:r.writable)!==!1))}function vur(n){return!!(n&&typeof n.pipe=="function"&&n._readableState&&typeof n.on=="function"&&typeof n.write=="function")}function wk(n){return n&&(n._readableState||n._writableState||typeof n.write=="function"&&typeof n.on=="function"||typeof n.pipe=="function"&&typeof n.on=="function")}function Irn(n){return!!(n&&!wk(n)&&typeof n.pipeThrough=="function"&&typeof n.getReader=="function"&&typeof n.cancel=="function")}function Prn(n){return!!(n&&!wk(n)&&typeof n.getWriter=="function"&&typeof n.abort=="function")}function Orn(n){return!!(n&&!wk(n)&&typeof n.readable=="object"&&typeof n.writable=="object")}function _ur(n){return Irn(n)||Prn(n)||Orn(n)}function Sur(n,r){return n==null?!1:r===!0?typeof n[oHt]=="function":r===!1?typeof n[sHt]=="function":typeof n[oHt]=="function"||typeof n[sHt]=="function"}function nbe(n){if(!wk(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!!(n.destroyed||n[Arn]||l!=null&&l.destroyed)}function Nrn(n){if(!tbe(n))return null;if(n.writableEnded===!0)return!0;const r=n._writableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function Eur(n,r){if(!tbe(n))return null;if(n.writableFinished===!0)return!0;const o=n._writableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.finished)!="boolean"?null:!!(o.finished||r===!1&&o.ended===!0&&o.length===0)}function kur(n){if(!ebe(n))return null;if(n.readableEnded===!0)return!0;const r=n._readableState;return!r||r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function Mrn(n,r){if(!ebe(n))return null;const o=n._readableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.endEmitted)!="boolean"?null:!!(o.endEmitted||r===!1&&o.ended===!0&&o.length===0)}function Drn(n){return n&&n[Pje]!=null?n[Pje]:typeof(n==null?void 0:n.readable)!="boolean"?null:nbe(n)?!1:ebe(n)&&n.readable&&!Mrn(n)}function Lrn(n){return n&&n[Oje]!=null?n[Oje]:typeof(n==null?void 0:n.writable)!="boolean"?null:nbe(n)?!1:tbe(n)&&n.writable&&!Nrn(n)}function Rur(n,r){return wk(n)?nbe(n)?!0:!((r==null?void 0:r.readable)!==!1&&Drn(n)||(r==null?void 0:r.writable)!==!1&&Lrn(n)):null}function xur(n){var r,o;return wk(n)?n.writableErrored?n.writableErrored:(r=(o=n._writableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function Cur(n){var r,o;return wk(n)?n.readableErrored?n.readableErrored:(r=(o=n._readableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function Aur(n){if(!wk(n))return null;if(typeof n.closed=="boolean")return n.closed;const r=n._writableState,o=n._readableState;return typeof(r==null?void 0:r.closed)=="boolean"||typeof(o==null?void 0:o.closed)=="boolean"?(r==null?void 0:r.closed)||(o==null?void 0:o.closed):typeof n._closed=="boolean"&&jrn(n)?n._closed:null}function jrn(n){return typeof n._closed=="boolean"&&typeof n._defaultKeepAlive=="boolean"&&typeof n._removedConnection=="boolean"&&typeof n._removedContLen=="boolean"}function Frn(n){return typeof n._sent100=="boolean"&&jrn(n)}function Tur(n){var r;return typeof n._consuming=="boolean"&&typeof n._dumped=="boolean"&&((r=n.req)===null||r===void 0?void 0:r.upgradeOrConnect)===void 0}function $ur(n){if(!wk(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!l&&Frn(n)||!!(l&&l.autoDestroy&&l.emitClose&&l.closed===!1)}function Iur(n){var r;return!!(n&&((r=n[$rn])!==null&&r!==void 0?r:n.readableDidRead||n.readableAborted))}function Pur(n){var r,o,l,u,d,h,w,v,y,E;return!!(n&&((r=(o=(l=(u=(d=(h=n[Trn])!==null&&h!==void 0?h:n.readableErrored)!==null&&d!==void 0?d:n.writableErrored)!==null&&u!==void 0?u:(w=n._readableState)===null||w===void 0?void 0:w.errorEmitted)!==null&&l!==void 0?l:(v=n._writableState)===null||v===void 0?void 0:v.errorEmitted)!==null&&o!==void 0?o:(y=n._readableState)===null||y===void 0?void 0:y.errored)!==null&&r!==void 0?r:!((E=n._writableState)===null||E===void 0)&&E.errored))}var xx={isDestroyed:nbe,kIsDestroyed:Arn,isDisturbed:Iur,kIsDisturbed:$rn,isErrored:Pur,kIsErrored:Trn,isReadable:Drn,kIsReadable:Pje,kIsClosedPromise:mur,kControllerErrorFunction:yur,kIsWritable:Oje,isClosed:Aur,isDuplexNodeStream:vur,isFinished:Rur,isIterable:Sur,isReadableNodeStream:ebe,isReadableStream:Irn,isReadableEnded:kur,isReadableFinished:Mrn,isReadableErrored:Cur,isNodeStream:wk,isWebStream:_ur,isWritable:Lrn,isWritableNodeStream:tbe,isWritableStream:Prn,isWritableEnded:Nrn,isWritableFinished:Eur,isWritableErrored:xur,isServerRequest:Tur,isServerResponse:Frn,willEmitClose:$ur,isTransformStream:Orn};const K4=ui,{AbortError:Brn,codes:Our}=T0,{ERR_INVALID_ARG_TYPE:Nur,ERR_STREAM_PREMATURE_CLOSE:lHt}=Our,{kEmptyObject:Nje,once:Mje}=c1,{validateAbortSignal:Mur,validateFunction:Dur,validateObject:Lur,validateBoolean:jur}=mJ,{Promise:Fur,PromisePrototypeThen:Bur,SymbolDispose:Wrn}=Lf,{isClosed:Wur,isReadable:aHt,isReadableNodeStream:TNe,isReadableStream:Hur,isReadableFinished:cHt,isReadableErrored:uHt,isWritable:fHt,isWritableNodeStream:dHt,isWritableStream:Uur,isWritableFinished:hHt,isWritableErrored:pHt,isNodeStream:Gur,willEmitClose:Vur,kIsClosedPromise:zur}=xx;let sL;function Kur(n){return n.setHeader&&typeof n.abort=="function"}const Dje=()=>{};function Hrn(n,r,o){var l,u;if(arguments.length===2?(o=r,r=Nje):r==null?r=Nje:Lur(r,"options"),Dur(o,"callback"),Mur(r.signal,"options.signal"),o=Mje(o),Hur(n)||Uur(n))return qur(n,r,o);if(!Gur(n))throw new Nur("stream",["ReadableStream","WritableStream","Stream"],n);const d=(l=r.readable)!==null&&l!==void 0?l:TNe(n),h=(u=r.writable)!==null&&u!==void 0?u:dHt(n),w=n._writableState,v=n._readableState,y=()=>{n.writable||C()};let E=Vur(n)&&TNe(n)===d&&dHt(n)===h,A=hHt(n,!1);const C=()=>{A=!0,n.destroyed&&(E=!1),!(E&&(!n.readable||d))&&(!d||R)&&o.call(n)};let R=cHt(n,!1);const O=()=>{R=!0,n.destroyed&&(E=!1),!(E&&(!n.writable||h))&&(!h||A)&&o.call(n)},M=te=>{o.call(n,te)};let L=Wur(n);const H=()=>{L=!0;const te=pHt(n)||uHt(n);if(te&&typeof te!="boolean")return o.call(n,te);if(d&&!R&&TNe(n,!0)&&!cHt(n,!1))return o.call(n,new lHt);if(h&&!A&&!hHt(n,!1))return o.call(n,new lHt);o.call(n)},G=()=>{L=!0;const te=pHt(n)||uHt(n);if(te&&typeof te!="boolean")return o.call(n,te);o.call(n)},j=()=>{n.req.on("finish",C)};Kur(n)?(n.on("complete",C),E||n.on("abort",H),n.req?j():n.on("request",j)):h&&!w&&(n.on("end",y),n.on("close",y)),!E&&typeof n.aborted=="boolean"&&n.on("aborted",H),n.on("end",O),n.on("finish",C),r.error!==!1&&n.on("error",M),n.on("close",H),L?K4.nextTick(H):w!=null&&w.errorEmitted||v!=null&&v.errorEmitted?E||K4.nextTick(G):(!d&&(!E||aHt(n))&&(A||fHt(n)===!1)||!h&&(!E||fHt(n))&&(R||aHt(n)===!1)||v&&n.req&&n.aborted)&&K4.nextTick(G);const Q=()=>{o=Dje,n.removeListener("aborted",H),n.removeListener("complete",C),n.removeListener("abort",H),n.removeListener("request",j),n.req&&n.req.removeListener("finish",C),n.removeListener("end",y),n.removeListener("close",y),n.removeListener("finish",C),n.removeListener("end",O),n.removeListener("error",M),n.removeListener("close",H)};if(r.signal&&!L){const te=()=>{const pe=o;Q(),pe.call(n,new Brn(void 0,{cause:r.signal.reason}))};if(r.signal.aborted)K4.nextTick(te);else{sL=sL||c1.addAbortListener;const pe=sL(r.signal,te),Le=o;o=Mje((...Ee)=>{pe[Wrn](),Le.apply(n,Ee)})}}return Q}function qur(n,r,o){let l=!1,u=Dje;if(r.signal)if(u=()=>{l=!0,o.call(n,new Brn(void 0,{cause:r.signal.reason}))},r.signal.aborted)K4.nextTick(u);else{sL=sL||c1.addAbortListener;const h=sL(r.signal,u),w=o;o=Mje((...v)=>{h[Wrn](),w.apply(n,v)})}const d=(...h)=>{l||K4.nextTick(()=>o.apply(n,h))};return Bur(n[zur].promise,d,d),Dje}function Xur(n,r){var o;let l=!1;return r===null&&(r=Nje),(o=r)!==null&&o!==void 0&&o.cleanup&&(jur(r.cleanup,"cleanup"),l=r.cleanup),new Fur((u,d)=>{const h=Hrn(n,r,w=>{l&&h(),w?d(w):u()})})}SUe.exports=Hrn;SUe.exports.finished=Xur;var FT=SUe.exports;const UE=ui,{aggregateTwoErrors:Jur,codes:{ERR_MULTIPLE_CALLBACK:Yur},AbortError:Qur}=T0,{Symbol:Urn}=Lf,{kIsDestroyed:Zur,isDestroyed:efr,isFinished:tfr,isServerRequest:nfr}=xx,Grn=Urn("kDestroy"),Lje=Urn("kConstruct");function Vrn(n,r,o){n&&(n.stack,r&&!r.errored&&(r.errored=n),o&&!o.errored&&(o.errored=n))}function rfr(n,r){const o=this._readableState,l=this._writableState,u=l||o;return l!=null&&l.destroyed||o!=null&&o.destroyed?(typeof r=="function"&&r(),this):(Vrn(n,l,o),l&&(l.destroyed=!0),o&&(o.destroyed=!0),u.constructed?bHt(this,n,r):this.once(Grn,function(d){bHt(this,Jur(d,n),r)}),this)}function bHt(n,r,o){let l=!1;function u(d){if(l)return;l=!0;const h=n._readableState,w=n._writableState;Vrn(d,w,h),w&&(w.closed=!0),h&&(h.closed=!0),typeof o=="function"&&o(d),d?UE.nextTick(ifr,n,d):UE.nextTick(zrn,n)}try{n._destroy(r||null,u)}catch(d){u(d)}}function ifr(n,r){jje(n,r),zrn(n)}function zrn(n){const r=n._readableState,o=n._writableState;o&&(o.closeEmitted=!0),r&&(r.closeEmitted=!0),(o!=null&&o.emitClose||r!=null&&r.emitClose)&&n.emit("close")}function jje(n,r){const o=n._readableState,l=n._writableState;l!=null&&l.errorEmitted||o!=null&&o.errorEmitted||(l&&(l.errorEmitted=!0),o&&(o.errorEmitted=!0),n.emit("error",r))}function ofr(){const n=this._readableState,r=this._writableState;n&&(n.constructed=!0,n.closed=!1,n.closeEmitted=!1,n.destroyed=!1,n.errored=null,n.errorEmitted=!1,n.reading=!1,n.ended=n.readable===!1,n.endEmitted=n.readable===!1),r&&(r.constructed=!0,r.destroyed=!1,r.closed=!1,r.closeEmitted=!1,r.errored=null,r.errorEmitted=!1,r.finalCalled=!1,r.prefinished=!1,r.ended=r.writable===!1,r.ending=r.writable===!1,r.finished=r.writable===!1)}function Fje(n,r,o){const l=n._readableState,u=n._writableState;if(u!=null&&u.destroyed||l!=null&&l.destroyed)return this;l!=null&&l.autoDestroy||u!=null&&u.autoDestroy?n.destroy(r):r&&(r.stack,u&&!u.errored&&(u.errored=r),l&&!l.errored&&(l.errored=r),o?UE.nextTick(jje,n,r):jje(n,r))}function sfr(n,r){if(typeof n._construct!="function")return;const o=n._readableState,l=n._writableState;o&&(o.constructed=!1),l&&(l.constructed=!1),n.once(Lje,r),!(n.listenerCount(Lje)>1)&&UE.nextTick(lfr,n)}function lfr(n){let r=!1;function o(l){if(r){Fje(n,l??new Yur);return}r=!0;const u=n._readableState,d=n._writableState,h=d||u;u&&(u.constructed=!0),d&&(d.constructed=!0),h.destroyed?n.emit(Grn,l):l?Fje(n,l,!0):UE.nextTick(afr,n)}try{n._construct(l=>{UE.nextTick(o,l)})}catch(l){UE.nextTick(o,l)}}function afr(n){n.emit(Lje)}function gHt(n){return(n==null?void 0:n.setHeader)&&typeof n.abort=="function"}function Krn(n){n.emit("close")}function cfr(n,r){n.emit("error",r),UE.nextTick(Krn,n)}function ufr(n,r){!n||efr(n)||(!r&&!tfr(n)&&(r=new Qur),nfr(n)?(n.socket=null,n.destroy(r)):gHt(n)?n.abort():gHt(n.req)?n.req.abort():typeof n.destroy=="function"?n.destroy(r):typeof n.close=="function"?n.close():r?UE.nextTick(cfr,n,r):UE.nextTick(Krn,n),n.destroyed||(n[Zur]=!0))}var wj={construct:sfr,destroyer:ufr,destroy:rfr,undestroy:ofr,errorOrDestroy:Fje};const{ArrayIsArray:ffr,ObjectSetPrototypeOf:qrn}=Lf,{EventEmitter:rbe}=Ns;function ibe(n){rbe.call(this,n)}qrn(ibe.prototype,rbe.prototype);qrn(ibe,rbe);ibe.prototype.pipe=function(n,r){const o=this;function l(E){n.writable&&n.write(E)===!1&&o.pause&&o.pause()}o.on("data",l);function u(){o.readable&&o.resume&&o.resume()}n.on("drain",u),!n._isStdio&&(!r||r.end!==!1)&&(o.on("end",h),o.on("close",w));let d=!1;function h(){d||(d=!0,n.end())}function w(){d||(d=!0,typeof n.destroy=="function"&&n.destroy())}function v(E){y(),rbe.listenerCount(this,"error")===0&&this.emit("error",E)}Bje(o,"error",v),Bje(n,"error",v);function y(){o.removeListener("data",l),n.removeListener("drain",u),o.removeListener("end",h),o.removeListener("close",w),o.removeListener("error",v),n.removeListener("error",v),o.removeListener("end",y),o.removeListener("close",y),n.removeListener("close",y)}return o.on("end",y),o.on("close",y),n.on("close",y),n.emit("pipe",o),n};function Bje(n,r,o){if(typeof n.prependListener=="function")return n.prependListener(r,o);!n._events||!n._events[r]?n.on(r,o):ffr(n._events[r])?n._events[r].unshift(o):n._events[r]=[o,n._events[r]]}var EUe={Stream:ibe,prependListener:Bje},Xrn={exports:{}};(function(n){const{SymbolDispose:r}=Lf,{AbortError:o,codes:l}=T0,{isNodeStream:u,isWebStream:d,kControllerErrorFunction:h}=xx,w=FT,{ERR_INVALID_ARG_TYPE:v}=l;let y;const E=(A,C)=>{if(typeof A!="object"||!("aborted"in A))throw new v(C,"AbortSignal",A)};n.exports.addAbortSignal=function(C,R){if(E(C,"signal"),!u(R)&&!d(R))throw new v("stream",["ReadableStream","WritableStream","Stream"],R);return n.exports.addAbortSignalNoValidate(C,R)},n.exports.addAbortSignalNoValidate=function(A,C){if(typeof A!="object"||!("aborted"in A))return C;const R=u(C)?()=>{C.destroy(new o(void 0,{cause:A.reason}))}:()=>{C[h](new o(void 0,{cause:A.reason}))};if(A.aborted)R();else{y=y||c1.addAbortListener;const O=y(A,R);w(C,O[r])}return C}})(Xrn);var obe=Xrn.exports;const{StringPrototypeSlice:wHt,SymbolIterator:dfr,TypedArrayPrototypeSet:pue,Uint8Array:hfr}=Lf,{Buffer:$Ne}=Kr,{inspect:pfr}=c1;var bfr=class{constructor(){this.head=null,this.tail=null,this.length=0}push(r){const o={data:r,next:null};this.length>0?this.tail.next=o:this.head=o,this.tail=o,++this.length}unshift(r){const o={data:r,next:this.head};this.length===0&&(this.tail=o),this.head=o,++this.length}shift(){if(this.length===0)return;const r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}clear(){this.head=this.tail=null,this.length=0}join(r){if(this.length===0)return"";let o=this.head,l=""+o.data;for(;(o=o.next)!==null;)l+=r+o.data;return l}concat(r){if(this.length===0)return $Ne.alloc(0);const o=$Ne.allocUnsafe(r>>>0);let l=this.head,u=0;for(;l;)pue(o,l.data,u),u+=l.data.length,l=l.next;return o}consume(r,o){const l=this.head.data;if(rd.length)o+=d,r-=d.length;else{r===d.length?(o+=d,++u,l.next?this.head=l.next:this.head=this.tail=null):(o+=wHt(d,0,r),this.head=l,l.data=wHt(d,r));break}++u}while((l=l.next)!==null);return this.length-=u,o}_getBuffer(r){const o=$Ne.allocUnsafe(r),l=r;let u=this.head,d=0;do{const h=u.data;if(r>h.length)pue(o,h,l-r),r-=h.length;else{r===h.length?(pue(o,h,l-r),++d,u.next?this.head=u.next:this.head=this.tail=null):(pue(o,new hfr(h.buffer,h.byteOffset,r),l-r),this.head=u,u.data=h.slice(r));break}++d}while((u=u.next)!==null);return this.length-=d,o}[Symbol.for("nodejs.util.inspect.custom")](r,o){return pfr(this,{...o,depth:0,customInspect:!1})}};const{MathFloor:gfr,NumberIsInteger:wfr}=Lf,{validateInteger:mfr}=mJ,{ERR_INVALID_ARG_VALUE:yfr}=T0.codes;let Jrn=16*1024,Yrn=16;function vfr(n,r,o){return n.highWaterMark!=null?n.highWaterMark:r?n[o]:null}function Qrn(n){return n?Yrn:Jrn}function _fr(n,r){mfr(r,"value",0),n?Yrn=r:Jrn=r}function Sfr(n,r,o,l){const u=vfr(r,l,o);if(u!=null){if(!wfr(u)||u<0){const d=l?`options.${o}`:"options.highWaterMark";throw new yfr(d,u)}return gfr(u)}return Qrn(n.objectMode)}var sbe={getHighWaterMark:Sfr,getDefaultHighWaterMark:Qrn,setDefaultHighWaterMark:_fr};const mHt=ui,{PromisePrototypeThen:Efr,SymbolAsyncIterator:yHt,SymbolIterator:vHt}=Lf,{Buffer:kfr}=Kr,{ERR_INVALID_ARG_TYPE:Rfr,ERR_STREAM_NULL_VALUES:xfr}=T0.codes;function Cfr(n,r,o){let l;if(typeof r=="string"||r instanceof kfr)return new n({objectMode:!0,...o,read(){this.push(r),this.push(null)}});let u;if(r&&r[yHt])u=!0,l=r[yHt]();else if(r&&r[vHt])u=!1,l=r[vHt]();else throw new Rfr("iterable",["Iterable"],r);const d=new n({objectMode:!0,highWaterMark:1,...o});let h=!1;d._read=function(){h||(h=!0,v())},d._destroy=function(y,E){Efr(w(y),()=>mHt.nextTick(E,y),A=>mHt.nextTick(E,A||y))};async function w(y){const E=y!=null,A=typeof l.throw=="function";if(E&&A){const{value:C,done:R}=await l.throw(y);if(await C,R)return}if(typeof l.return=="function"){const{value:C}=await l.return();await C}}async function v(){for(;;){try{const{value:y,done:E}=u?await l.next():l.next();if(E)d.push(null);else{const A=y&&typeof y.then=="function"?await y:y;if(A===null)throw h=!1,new xfr;if(d.push(A))continue;h=!1}}catch(y){d.destroy(y)}break}}return d}var Zrn=Cfr,INe,_Ht;function lbe(){if(_Ht)return INe;_Ht=1;const n=ui,{ArrayPrototypeIndexOf:r,NumberIsInteger:o,NumberIsNaN:l,NumberParseInt:u,ObjectDefineProperties:d,ObjectKeys:h,ObjectSetPrototypeOf:w,Promise:v,SafeSet:y,SymbolAsyncDispose:E,SymbolAsyncIterator:A,Symbol:C}=Lf;INe=he,he.ReadableState=St;const{EventEmitter:R}=Ns,{Stream:O,prependListener:M}=EUe,{Buffer:L}=Kr,{addAbortSignal:H}=obe,G=FT;let j=c1.debuglog("stream",S=>{j=S});const Q=bfr,te=wj,{getHighWaterMark:pe,getDefaultHighWaterMark:Le}=sbe,{aggregateTwoErrors:Ee,codes:{ERR_INVALID_ARG_TYPE:le,ERR_METHOD_NOT_IMPLEMENTED:xe,ERR_OUT_OF_RANGE:be,ERR_STREAM_PUSH_AFTER_EOF:ae,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:F},AbortError:me}=T0,{validateObject:ye}=mJ,we=C("kPaused"),{StringDecoder:Be}=rm,He=Zrn;w(he.prototype,O.prototype),w(he,O);const Ue=()=>{},{errorOrDestroy:Ge}=te,Me=1,vt=2,re=4,Te=8,ct=16,at=32,Ye=64,mt=128,jt=256,rn=512,Pe=1024,Oe=2048,T=4096,$=8192,B=16384,K=32768,q=65536,ke=1<<17,Re=1<<18;function Ie(S){return{enumerable:!1,get(){return(this.state&S)!==0},set(x){x?this.state|=S:this.state&=~S}}}d(St.prototype,{objectMode:Ie(Me),ended:Ie(vt),endEmitted:Ie(re),reading:Ie(Te),constructed:Ie(ct),sync:Ie(at),needReadable:Ie(Ye),emittedReadable:Ie(mt),readableListening:Ie(jt),resumeScheduled:Ie(rn),errorEmitted:Ie(Pe),emitClose:Ie(Oe),autoDestroy:Ie(T),destroyed:Ie($),closed:Ie(B),closeEmitted:Ie(K),multiAwaitDrain:Ie(q),readingMore:Ie(ke),dataEmitted:Ie(Re)});function St(S,x,Y){typeof Y!="boolean"&&(Y=x instanceof tx()),this.state=Oe|T|ct|at,S&&S.objectMode&&(this.state|=Me),Y&&S&&S.readableObjectMode&&(this.state|=Me),this.highWaterMark=S?pe(this,S,"readableHighWaterMark",Y):Le(!1),this.buffer=new Q,this.length=0,this.pipes=[],this.flowing=null,this[we]=null,S&&S.emitClose===!1&&(this.state&=~Oe),S&&S.autoDestroy===!1&&(this.state&=~T),this.errored=null,this.defaultEncoding=S&&S.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,S&&S.encoding&&(this.decoder=new Be(S.encoding),this.encoding=S.encoding)}function he(S){if(!(this instanceof he))return new he(S);const x=this instanceof tx();this._readableState=new St(S,this,x),S&&(typeof S.read=="function"&&(this._read=S.read),typeof S.destroy=="function"&&(this._destroy=S.destroy),typeof S.construct=="function"&&(this._construct=S.construct),S.signal&&!x&&H(S.signal,this)),O.call(this,S),te.construct(this,()=>{this._readableState.needReadable&&ht(this,this._readableState)})}he.prototype.destroy=te.destroy,he.prototype._undestroy=te.undestroy,he.prototype._destroy=function(S,x){x(S)},he.prototype[R.captureRejectionSymbol]=function(S){this.destroy(S)},he.prototype[E]=function(){let S;return this.destroyed||(S=this.readableEnded?null:new me,this.destroy(S)),new v((x,Y)=>G(this,J=>J&&J!==S?Y(J):x(null)))},he.prototype.push=function(S,x){return zt(this,S,x,!1)},he.prototype.unshift=function(S,x){return zt(this,S,x,!0)};function zt(S,x,Y,J){j("readableAddChunk",x);const ue=S._readableState;let Yt;if(ue.state&Me||(typeof x=="string"?(Y=Y||ue.defaultEncoding,ue.encoding!==Y&&(J&&ue.encoding?x=L.from(x,Y).toString(ue.encoding):(x=L.from(x,Y),Y=""))):x instanceof L?Y="":O._isUint8Array(x)?(x=O._uint8ArrayToBuffer(x),Y=""):x!=null&&(Yt=new le("chunk",["string","Buffer","Uint8Array"],x))),Yt)Ge(S,Yt);else if(x===null)ue.state&=~Te,ce(S,ue);else if(ue.state&Me||x&&x.length>0)if(J)if(ue.state&re)Ge(S,new F);else{if(ue.destroyed||ue.errored)return!1;Qt(S,ue,x,!0)}else if(ue.ended)Ge(S,new ae);else{if(ue.destroyed||ue.errored)return!1;ue.state&=~Te,ue.decoder&&!Y?(x=ue.decoder.write(x),ue.objectMode||x.length!==0?Qt(S,ue,x,!1):ht(S,ue)):Qt(S,ue,x,!1)}else J||(ue.state&=~Te,ht(S,ue));return!ue.ended&&(ue.length0?(x.state&q?x.awaitDrainWriters.clear():x.awaitDrainWriters=null,x.dataEmitted=!0,S.emit("data",Y)):(x.length+=x.objectMode?1:Y.length,J?x.buffer.unshift(Y):x.buffer.push(Y),x.state&Ye&&de(S)),ht(S,x)}he.prototype.isPaused=function(){const S=this._readableState;return S[we]===!0||S.flowing===!1},he.prototype.setEncoding=function(S){const x=new Be(S);this._readableState.decoder=x,this._readableState.encoding=this._readableState.decoder.encoding;const Y=this._readableState.buffer;let J="";for(const ue of Y)J+=x.write(ue);return Y.clear(),J!==""&&Y.push(J),this._readableState.length=J.length,this};const $n=1073741824;function Gn(S){if(S>$n)throw new be("size","<= 1GiB",S);return S--,S|=S>>>1,S|=S>>>2,S|=S>>>4,S|=S>>>8,S|=S>>>16,S++,S}function $e(S,x){return S<=0||x.length===0&&x.ended?0:x.state&Me?1:l(S)?x.flowing&&x.length?x.buffer.first().length:x.length:S<=x.length?S:x.ended?x.length:0}he.prototype.read=function(S){j("read",S),S===void 0?S=NaN:o(S)||(S=u(S,10));const x=this._readableState,Y=S;if(S>x.highWaterMark&&(x.highWaterMark=Gn(S)),S!==0&&(x.state&=~mt),S===0&&x.needReadable&&((x.highWaterMark!==0?x.length>=x.highWaterMark:x.length>0)||x.ended))return j("read: emitReadable",x.length,x.ended),x.length===0&&x.ended?co(this):de(this),null;if(S=$e(S,x),S===0&&x.ended)return x.length===0&&co(this),null;let J=(x.state&Ye)!==0;if(j("need readable",J),(x.length===0||x.length-S0?ue=Al(S,x):ue=null,ue===null?(x.needReadable=x.length<=x.highWaterMark,S=0):(x.length-=S,x.multiAwaitDrain?x.awaitDrainWriters.clear():x.awaitDrainWriters=null),x.length===0&&(x.ended||(x.needReadable=!0),Y!==S&&x.ended&&co(this)),ue!==null&&!x.errorEmitted&&!x.closeEmitted&&(x.dataEmitted=!0,this.emit("data",ue)),ue};function ce(S,x){if(j("onEofChunk"),!x.ended){if(x.decoder){const Y=x.decoder.end();Y&&Y.length&&(x.buffer.push(Y),x.length+=x.objectMode?1:Y.length)}x.ended=!0,x.sync?de(S):(x.needReadable=!1,x.emittedReadable=!0,et(S))}}function de(S){const x=S._readableState;j("emitReadable",x.needReadable,x.emittedReadable),x.needReadable=!1,x.emittedReadable||(j("emitReadable",x.flowing),x.emittedReadable=!0,n.nextTick(et,S))}function et(S){const x=S._readableState;j("emitReadable_",x.destroyed,x.length,x.ended),!x.destroyed&&!x.errored&&(x.length||x.ended)&&(S.emit("readable"),x.emittedReadable=!1),x.needReadable=!x.flowing&&!x.ended&&x.length<=x.highWaterMark,xi(S)}function ht(S,x){!x.readingMore&&x.constructed&&(x.readingMore=!0,n.nextTick(Jt,S,x))}function Jt(S,x){for(;!x.reading&&!x.ended&&(x.length1&&J.pipes.includes(S)&&(j("false write response, pause",J.awaitDrainWriters.size),J.awaitDrainWriters.add(S)),Y.pause()),Fr||(Fr=Zt(Y,S),S.on("drain",Fr))}Y.on("data",ml);function ml(jr){j("ondata");const lr=S.write(jr);j("dest.write",lr),lr===!1&&Rs()}function gs(jr){if(j("onerror",jr),wi(),S.removeListener("error",gs),S.listenerCount("error")===0){const lr=S._writableState||S._readableState;lr&&!lr.errorEmitted?Ge(S,jr):S.emit("error",jr)}}M(S,"error",gs);function as(){S.removeListener("finish",ws),wi()}S.once("close",as);function ws(){j("onfinish"),S.removeListener("close",as),wi()}S.once("finish",ws);function wi(){j("unpipe"),Y.unpipe(S)}return S.emit("pipe",Y),S.writableNeedDrain===!0?Rs():J.flowing||(j("pipe resume"),Y.resume()),S};function Zt(S,x){return function(){const J=S._readableState;J.awaitDrainWriters===x?(j("pipeOnDrain",1),J.awaitDrainWriters=null):J.multiAwaitDrain&&(j("pipeOnDrain",J.awaitDrainWriters.size),J.awaitDrainWriters.delete(x)),(!J.awaitDrainWriters||J.awaitDrainWriters.size===0)&&S.listenerCount("data")&&S.resume()}}he.prototype.unpipe=function(S){const x=this._readableState,Y={hasUnpiped:!1};if(x.pipes.length===0)return this;if(!S){const ue=x.pipes;x.pipes=[],this.pause();for(let Yt=0;Yt0,J.flowing!==!1&&this.resume()):S==="readable"&&!J.endEmitted&&!J.readableListening&&(J.readableListening=J.needReadable=!0,J.flowing=!1,J.emittedReadable=!1,j("on readable",J.length,J.reading),J.length?de(this):J.reading||n.nextTick(ao,this)),Y},he.prototype.addListener=he.prototype.on,he.prototype.removeListener=function(S,x){const Y=O.prototype.removeListener.call(this,S,x);return S==="readable"&&n.nextTick(qr,this),Y},he.prototype.off=he.prototype.removeListener,he.prototype.removeAllListeners=function(S){const x=O.prototype.removeAllListeners.apply(this,arguments);return(S==="readable"||S===void 0)&&n.nextTick(qr,this),x};function qr(S){const x=S._readableState;x.readableListening=S.listenerCount("readable")>0,x.resumeScheduled&&x[we]===!1?x.flowing=!0:S.listenerCount("data")>0?S.resume():x.readableListening||(x.flowing=null)}function ao(S){j("readable nexttick read 0"),S.read(0)}he.prototype.resume=function(){const S=this._readableState;return S.flowing||(j("resume"),S.flowing=!S.readableListening,ki(this,S)),S[we]=!1,this};function ki(S,x){x.resumeScheduled||(x.resumeScheduled=!0,n.nextTick(Ri,S,x))}function Ri(S,x){j("resume",x.reading),x.reading||S.read(0),x.resumeScheduled=!1,S.emit("resume"),xi(S),x.flowing&&!x.reading&&S.read(0)}he.prototype.pause=function(){return j("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(j("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[we]=!0,this};function xi(S){const x=S._readableState;for(j("flow",x.flowing);x.flowing&&S.read()!==null;);}he.prototype.wrap=function(S){let x=!1;S.on("data",J=>{!this.push(J)&&S.pause&&(x=!0,S.pause())}),S.on("end",()=>{this.push(null)}),S.on("error",J=>{Ge(this,J)}),S.on("close",()=>{this.destroy()}),S.on("destroy",()=>{this.destroy()}),this._read=()=>{x&&S.resume&&(x=!1,S.resume())};const Y=h(S);for(let J=1;J{ue=An?Ee(ue,An):null,Y(),Y=Ue});try{for(;;){const An=S.destroyed?null:S.read();if(An!==null)yield An;else{if(ue)throw ue;if(ue===null)return;await new v(J)}}}catch(An){throw ue=Ee(ue,An),ue}finally{(ue||(x==null?void 0:x.destroyOnReturn)!==!1)&&(ue===void 0||S._readableState.autoDestroy)?te.destroyer(S,null):(S.off("readable",J),Yt())}}d(he.prototype,{readable:{__proto__:null,get(){const S=this._readableState;return!!S&&S.readable!==!1&&!S.destroyed&&!S.errorEmitted&&!S.endEmitted},set(S){this._readableState&&(this._readableState.readable=!!S)}},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(S){this._readableState&&(this._readableState.flowing=S)}},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(S){this._readableState&&(this._readableState.destroyed=S)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),d(St.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[we]!==!1},set(S){this[we]=!!S}}}),he._fromList=Al;function Al(S,x){if(x.length===0)return null;let Y;return x.objectMode?Y=x.buffer.shift():!S||S>=x.length?(x.decoder?Y=x.buffer.join(""):x.buffer.length===1?Y=x.buffer.first():Y=x.buffer.concat(x.length),x.buffer.clear()):Y=x.buffer.consume(S,x.decoder),Y}function co(S){const x=S._readableState;j("endReadable",x.endEmitted),x.endEmitted||(x.ended=!0,n.nextTick(Zc,x,S))}function Zc(S,x){if(j("endReadableNT",S.endEmitted,S.length),!S.errored&&!S.closeEmitted&&!S.endEmitted&&S.length===0){if(S.endEmitted=!0,x.emit("end"),x.writable&&x.allowHalfOpen===!1)n.nextTick(bu,x);else if(S.autoDestroy){const Y=x._writableState;(!Y||Y.autoDestroy&&(Y.finished||Y.writable===!1))&&x.destroy()}}}function bu(S){S.writable&&!S.writableEnded&&!S.destroyed&&S.end()}he.from=function(S,x){return He(he,S,x)};let So;function ql(){return So===void 0&&(So={}),So}return he.fromWeb=function(S,x){return ql().newStreamReadableFromReadableStream(S,x)},he.toWeb=function(S,x){return ql().newReadableStreamFromStreamReadable(S,x)},he.wrap=function(S,x){var Y,J;return new he({objectMode:(Y=(J=S.readableObjectMode)!==null&&J!==void 0?J:S.objectMode)!==null&&Y!==void 0?Y:!0,...x,destroy(ue,Yt){te.destroyer(S,ue),Yt(ue)}}).wrap(S)},INe}var PNe,SHt;function kUe(){if(SHt)return PNe;SHt=1;const n=ui,{ArrayPrototypeSlice:r,Error:o,FunctionPrototypeSymbolHasInstance:l,ObjectDefineProperty:u,ObjectDefineProperties:d,ObjectSetPrototypeOf:h,StringPrototypeToLowerCase:w,Symbol:v,SymbolHasInstance:y}=Lf;PNe=ye,ye.WritableState=F;const{EventEmitter:E}=Ns,A=EUe.Stream,{Buffer:C}=Kr,R=wj,{addAbortSignal:O}=obe,{getHighWaterMark:M,getDefaultHighWaterMark:L}=sbe,{ERR_INVALID_ARG_TYPE:H,ERR_METHOD_NOT_IMPLEMENTED:G,ERR_MULTIPLE_CALLBACK:j,ERR_STREAM_CANNOT_PIPE:Q,ERR_STREAM_DESTROYED:te,ERR_STREAM_ALREADY_FINISHED:pe,ERR_STREAM_NULL_VALUES:Le,ERR_STREAM_WRITE_AFTER_END:Ee,ERR_UNKNOWN_ENCODING:le}=T0.codes,{errorOrDestroy:xe}=R;h(ye.prototype,A.prototype),h(ye,A);function be(){}const ae=v("kOnFinished");function F(T,$,B){typeof B!="boolean"&&(B=$ instanceof tx()),this.objectMode=!!(T&&T.objectMode),B&&(this.objectMode=this.objectMode||!!(T&&T.writableObjectMode)),this.highWaterMark=T?M(this,T,"writableHighWaterMark",B):L(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const K=!!(T&&T.decodeStrings===!1);this.decodeStrings=!K,this.defaultEncoding=T&&T.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=Ge.bind(void 0,$),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,me(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[ae]=[]}function me(T){T.buffered=[],T.bufferedIndex=0,T.allBuffers=!0,T.allNoop=!0}F.prototype.getBuffer=function(){return r(this.buffered,this.bufferedIndex)},u(F.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function ye(T){const $=this instanceof tx();if(!$&&!l(ye,this))return new ye(T);this._writableState=new F(T,this,$),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&&O(T.signal,this)),A.call(this,T),R.construct(this,()=>{const B=this._writableState;B.writing||Te(this,B),mt(this,B)})}u(ye,y,{__proto__:null,value:function(T){return l(this,T)?!0:this!==ye?!1:T&&T._writableState instanceof F}}),ye.prototype.pipe=function(){xe(this,new Q)};function we(T,$,B,K){const q=T._writableState;if(typeof B=="function")K=B,B=q.defaultEncoding;else{if(!B)B=q.defaultEncoding;else if(B!=="buffer"&&!C.isEncoding(B))throw new le(B);typeof K!="function"&&(K=be)}if($===null)throw new Le;if(!q.objectMode)if(typeof $=="string")q.decodeStrings!==!1&&($=C.from($,B),B="buffer");else if($ instanceof C)B="buffer";else if(A._isUint8Array($))$=A._uint8ArrayToBuffer($),B="buffer";else throw new H("chunk",["string","Buffer","Uint8Array"],$);let ke;return q.ending?ke=new Ee:q.destroyed&&(ke=new te("write")),ke?(n.nextTick(K,ke),xe(T,ke,!0),ke):(q.pendingcb++,Be(T,q,$,B,K))}ye.prototype.write=function(T,$,B){return we(this,T,$,B)===!0},ye.prototype.cork=function(){this._writableState.corked++},ye.prototype.uncork=function(){const T=this._writableState;T.corked&&(T.corked--,T.writing||Te(this,T))},ye.prototype.setDefaultEncoding=function($){if(typeof $=="string"&&($=w($)),!C.isEncoding($))throw new le($);return this._writableState.defaultEncoding=$,this};function Be(T,$,B,K,q){const ke=$.objectMode?1:B.length;$.length+=ke;const Re=$.length<$.highWaterMark;return Re||($.needDrain=!0),$.writing||$.corked||$.errored||!$.constructed?($.buffered.push({chunk:B,encoding:K,callback:q}),$.allBuffers&&K!=="buffer"&&($.allBuffers=!1),$.allNoop&&q!==be&&($.allNoop=!1)):($.writelen=ke,$.writecb=q,$.writing=!0,$.sync=!0,T._write(B,K,$.onwrite),$.sync=!1),Re&&!$.errored&&!$.destroyed}function He(T,$,B,K,q,ke,Re){$.writelen=K,$.writecb=Re,$.writing=!0,$.sync=!0,$.destroyed?$.onwrite(new te("write")):B?T._writev(q,$.onwrite):T._write(q,ke,$.onwrite),$.sync=!1}function Ue(T,$,B,K){--$.pendingcb,K(B),re($),xe(T,B)}function Ge(T,$){const B=T._writableState,K=B.sync,q=B.writecb;if(typeof q!="function"){xe(T,new j);return}B.writing=!1,B.writecb=null,B.length-=B.writelen,B.writelen=0,$?($.stack,B.errored||(B.errored=$),T._readableState&&!T._readableState.errored&&(T._readableState.errored=$),K?n.nextTick(Ue,T,B,$,q):Ue(T,B,$,q)):(B.buffered.length>B.bufferedIndex&&Te(T,B),K?B.afterWriteTickInfo!==null&&B.afterWriteTickInfo.cb===q?B.afterWriteTickInfo.count++:(B.afterWriteTickInfo={count:1,cb:q,stream:T,state:B},n.nextTick(Me,B.afterWriteTickInfo)):vt(T,B,1,q))}function Me({stream:T,state:$,count:B,cb:K}){return $.afterWriteTickInfo=null,vt(T,$,B,K)}function vt(T,$,B,K){for(!$.ending&&!T.destroyed&&$.length===0&&$.needDrain&&($.needDrain=!1,T.emit("drain"));B-- >0;)$.pendingcb--,K();$.destroyed&&re($),mt(T,$)}function re(T){if(T.writing)return;for(let q=T.bufferedIndex;q1&&T._writev){$.pendingcb-=ke-1;const Ie=$.allNoop?be:he=>{for(let zt=Re;zt256?(B.splice(0,Re),$.bufferedIndex=0):$.bufferedIndex=Re}$.bufferProcessing=!1}ye.prototype._write=function(T,$,B){if(this._writev)this._writev([{chunk:T,encoding:$}],B);else throw new G("_write()")},ye.prototype._writev=null,ye.prototype.end=function(T,$,B){const K=this._writableState;typeof T=="function"?(B=T,T=null,$=null):typeof $=="function"&&(B=$,$=null);let q;if(T!=null){const ke=we(this,T,$);ke instanceof o&&(q=ke)}return K.corked&&(K.corked=1,this.uncork()),q||(!K.errored&&!K.ending?(K.ending=!0,mt(this,K,!0),K.ended=!0):K.finished?q=new pe("end"):K.destroyed&&(q=new te("end"))),typeof B=="function"&&(q||K.finished?n.nextTick(B,q):K[ae].push(B)),this};function ct(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 at(T,$){let B=!1;function K(q){if(B){xe(T,q??j());return}if(B=!0,$.pendingcb--,q){const ke=$[ae].splice(0);for(let Re=0;Re{ct(q)?jt(K,q):q.pendingcb--},T,$)):ct($)&&($.pendingcb++,jt(T,$))))}function jt(T,$){$.pendingcb--,$.finished=!0;const B=$[ae].splice(0);for(let K=0;K{if(re!=null)throw new O("nully","body",re)},re=>{M(Me,re)});return Me=new le({objectMode:!0,readable:!1,write:Be,final(re){He(async()=>{try{await vt,n.nextTick(re,null)}catch(Te){n.nextTick(re,Te)}})},destroy:Ue})}throw new O("Iterable, AsyncIterable or AsyncFunction",me,we)}if(pe(F))return ae(F.arrayBuffer());if(u(F))return Q(le,F,{objectMode:!0,writable:!1});if(y(F==null?void 0:F.readable)&&E(F==null?void 0:F.writable))return le.fromWeb(F);if(typeof(F==null?void 0:F.writable)=="object"||typeof(F==null?void 0:F.readable)=="object"){const we=F!=null&&F.readable?h(F==null?void 0:F.readable)?F==null?void 0:F.readable:ae(F.readable):void 0,Be=F!=null&&F.writable?w(F==null?void 0:F.writable)?F==null?void 0:F.writable:ae(F.writable):void 0;return be({readable:we,writable:Be})}const ye=F==null?void 0:F.then;if(typeof ye=="function"){let we;return Ee(ye,F,Be=>{Be!=null&&we.push(Be),we.push(null)},Be=>{M(we,Be)}),we=new le({objectMode:!0,writable:!1,read(){}})}throw new R(me,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],F)};function xe(ae){let{promise:F,resolve:me}=j();const ye=new Le,we=ye.signal;return{value:ae(async function*(){for(;;){const He=F;F=null;const{chunk:Ue,done:Ge,cb:Me}=await He;if(n.nextTick(Me),Ge)return;if(we.aborted)throw new C(void 0,{cause:we.reason});({promise:F,resolve:me}=j()),yield Ue}}(),{signal:we}),write(He,Ue,Ge){const Me=me;me=null,Me({chunk:He,done:!1,cb:Ge})},final(He){const Ue=me;me=null,Ue({done:!0,cb:He})},destroy(He,Ue){ye.abort(),Ue(He)}}}function be(ae){const F=ae.readable&&typeof ae.readable.read!="function"?H.wrap(ae.readable):ae.readable,me=ae.writable;let ye=!!o(F),we=!!l(me),Be,He,Ue,Ge,Me;function vt(re){const Te=Ge;Ge=null,Te?Te(re):re&&Me.destroy(re)}return Me=new le({readableObjectMode:!!(F!=null&&F.readableObjectMode),writableObjectMode:!!(me!=null&&me.writableObjectMode),readable:ye,writable:we}),we&&(A(me,re=>{we=!1,re&&M(F,re),vt(re)}),Me._write=function(re,Te,ct){me.write(re,Te)?ct():Be=ct},Me._final=function(re){me.end(),He=re},me.on("drain",function(){if(Be){const re=Be;Be=null,re()}}),me.on("finish",function(){if(He){const re=He;He=null,re()}})),ye&&(A(F,re=>{ye=!1,re&&M(F,re),vt(re)}),F.on("readable",function(){if(Ue){const re=Ue;Ue=null,re()}}),F.on("end",function(){Me.push(null)}),Me._read=function(){for(;;){const re=F.read();if(re===null){Ue=Me._read;return}if(!Me.push(re))return}}),Me._destroy=function(re,Te){!re&&Ge!==null&&(re=new C),Ue=null,Be=null,He=null,Ge===null?Te(re):(Ge=Te,M(me,re),M(F,re))},Me}return ONe}var NNe,kHt;function tx(){if(kHt)return NNe;kHt=1;const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:o,ObjectSetPrototypeOf:l}=Lf;NNe=h;const u=lbe(),d=kUe();l(h.prototype,u.prototype),l(h,u);{const E=o(d.prototype);for(let A=0;A{if(r){n?n(r):this.destroy(r);return}o!=null&&this.push(o),this.push(null),n&&n()}):(this.push(null),n&&n())}function Pfr(){this._final!==Wje&&Wje.call(this)}nx.prototype._final=Wje;nx.prototype._transform=function(n,r,o){throw new $fr("_transform()")};nx.prototype._write=function(n,r,o){const l=this._readableState,u=this._writableState,d=l.length;this._transform(n,r,(h,w)=>{if(h){o(h);return}w!=null&&this.push(w),u.ended||d===l.length||l.length{l=!0});const u=nhe(n,{readable:r,writable:o},d=>{l=!d});return{destroy:d=>{l||(l=!0,jfr.destroyer(n,d||new Wfr("pipe")))},cleanup:u}}function Xfr(n){return Gfr(n[n.length-1],"streams[stream.length - 1]"),n.pop()}function WNe(n){if(x8(n))return n;if(Zfe(n))return Jfr(n);throw new Hje("val",["Readable","Iterable","AsyncIterable"],n)}async function*Jfr(n){FNe||(FNe=lbe()),yield*FNe.prototype[Mfr].call(n)}async function bue(n,r,o,{end:l}){let u,d=null;const h=y=>{if(y&&(u=y),d){const E=d;d=null,E()}},w=()=>new Nfr((y,E)=>{u?E(u):d=()=>{u?E(u):y()}});r.on("drain",h);const v=nhe(r,{readable:!1},h);try{r.writableNeedDrain&&await w();for await(const y of n)r.write(y)||await w();l&&(r.end(),await w()),o()}catch(y){o(u!==y?Ffr(u,y):y)}finally{v(),r.off("drain",h)}}async function HNe(n,r,o,{end:l}){ED(r)&&(r=r.writable);const u=r.getWriter();try{for await(const d of n)await u.ready,u.write(d).catch(()=>{});await u.ready,l&&await u.close(),o()}catch(d){try{await u.abort(d),o(d)}catch(h){o(h)}}}function Yfr(...n){return iin(n,Lfr(Xfr(n)))}function iin(n,r,o){if(n.length===1&&Ofr(n[0])&&(n=n[0]),n.length<2)throw new Bfr("streams");const l=new qfr,u=l.signal,d=o==null?void 0:o.signal,h=[];Vfr(d,"options.signal");function w(){O(new Ufr)}BNe=BNe||c1.addAbortListener;let v;d&&(v=BNe(d,w));let y,E;const A=[];let C=0;function R(G){O(G,--C===0)}function O(G,j){var Q;if(G&&(!y||y.code==="ERR_STREAM_PREMATURE_CLOSE")&&(y=G),!(!y&&!j)){for(;A.length;)A.shift()(y);(Q=v)===null||Q===void 0||Q[Dfr](),l.abort(),j&&(y||h.forEach(te=>te()),$K.nextTick(r,y,E))}}let M;for(let G=0;G0,pe=Q||(o==null?void 0:o.end)!==!1,Le=G===n.length-1;if(xHt(j)){let Ee=function(le){le&&le.name!=="AbortError"&&le.code!=="ERR_STREAM_PREMATURE_CLOSE"&&R(le)};if(pe){const{destroy:le,cleanup:xe}=CHt(j,Q,te);A.push(le),DNe(j)&&Le&&h.push(xe)}j.on("error",Ee),DNe(j)&&Le&&h.push(()=>{j.removeListener("error",Ee)})}if(G===0)if(typeof j=="function"){if(M=j({signal:u}),!x8(M))throw new MNe("Iterable, AsyncIterable or Stream","source",M)}else x8(j)||Zfe(j)||ED(j)?M=j:M=RHt.from(j);else if(typeof j=="function"){if(ED(M)){var L;M=WNe((L=M)===null||L===void 0?void 0:L.readable)}else M=WNe(M);if(M=j(M,{signal:u}),Q){if(!x8(M,!0))throw new MNe("AsyncIterable",`transform[${G-1}]`,M)}else{var H;jNe||(jNe=rin);const Ee=new jNe({objectMode:!0}),le=(H=M)===null||H===void 0?void 0:H.then;if(typeof le=="function")C++,le.call(M,ae=>{E=ae,ae!=null&&Ee.write(ae),pe&&Ee.end(),$K.nextTick(R)},ae=>{Ee.destroy(ae),$K.nextTick(R,ae)});else if(x8(M,!0))C++,bue(M,Ee,R,{end:pe});else if(LNe(M)||ED(M)){const ae=M.readable||M;C++,bue(ae,Ee,R,{end:pe})}else throw new MNe("AsyncIterable or Promise","destination",M);M=Ee;const{destroy:xe,cleanup:be}=CHt(M,!1,!0);A.push(xe),Le&&h.push(be)}}else if(xHt(j)){if(Zfe(M)){C+=2;const Ee=Qfr(M,j,R,{end:pe});DNe(j)&&Le&&h.push(Ee)}else if(ED(M)||LNe(M)){const Ee=M.readable||M;C++,bue(Ee,j,R,{end:pe})}else if(x8(M))C++,bue(M,j,R,{end:pe});else throw new Hje("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else if(zfr(j)){if(Zfe(M))C++,HNe(WNe(M),j,R,{end:pe});else if(LNe(M)||x8(M))C++,HNe(M,j,R,{end:pe});else if(ED(M))C++,HNe(M.readable,j,R,{end:pe});else throw new Hje("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else M=RHt.from(j)}return(u!=null&&u.aborted||d!=null&&d.aborted)&&$K.nextTick(w),M}function Qfr(n,r,o,{end:l}){let u=!1;if(r.on("close",()=>{u||o(new Hfr)}),n.pipe(r,{end:!1}),l){let d=function(){u=!0,r.end()};Kfr(n)?$K.nextTick(d):n.once("end",d)}else o();return nhe(n,{readable:!0,writable:!1},d=>{const h=n._readableState;d&&d.code==="ERR_STREAM_PREMATURE_CLOSE"&&h&&h.ended&&!h.errored&&!h.errorEmitted?n.once("end",o).once("error",o):o(d)}),nhe(r,{readable:!1,writable:!0},o)}var CUe={pipelineImpl:iin,pipeline:Yfr};const{pipeline:Zfr}=CUe,gue=tx(),{destroyer:edr}=wj,{isNodeStream:wue,isReadable:AHt,isWritable:THt,isWebStream:UNe,isTransformStream:s8,isWritableStream:$Ht,isReadableStream:IHt}=xx,{AbortError:tdr,codes:{ERR_INVALID_ARG_VALUE:PHt,ERR_MISSING_ARGS:ndr}}=T0,rdr=FT;var oin=function(...r){if(r.length===0)throw new ndr("streams");if(r.length===1)return gue.from(r[0]);const o=[...r];if(typeof r[0]=="function"&&(r[0]=gue.from(r[0])),typeof r[r.length-1]=="function"){const R=r.length-1;r[R]=gue.from(r[R])}for(let R=0;R0&&!(THt(r[R])||$Ht(r[R])||s8(r[R])))throw new PHt(`streams[${R}]`,o[R],"must be writable")}let l,u,d,h,w;function v(R){const O=h;h=null,O?O(R):R?w.destroy(R):!C&&!A&&w.destroy()}const y=r[0],E=Zfr(r,v),A=!!(THt(y)||$Ht(y)||s8(y)),C=!!(AHt(E)||IHt(E)||s8(E));if(w=new gue({writableObjectMode:!!(y!=null&&y.writableObjectMode),readableObjectMode:!!(E!=null&&E.readableObjectMode),writable:A,readable:C}),A){if(wue(y))w._write=function(O,M,L){y.write(O,M)?L():l=L},w._final=function(O){y.end(),u=O},y.on("drain",function(){if(l){const O=l;l=null,O()}});else if(UNe(y)){const M=(s8(y)?y.writable:y).getWriter();w._write=async function(L,H,G){try{await M.ready,M.write(L).catch(()=>{}),G()}catch(j){G(j)}},w._final=async function(L){try{await M.ready,M.close().catch(()=>{}),u=L}catch(H){L(H)}}}const R=s8(E)?E.readable:E;rdr(R,()=>{if(u){const O=u;u=null,O()}})}if(C){if(wue(E))E.on("readable",function(){if(d){const R=d;d=null,R()}}),E.on("end",function(){w.push(null)}),w._read=function(){for(;;){const R=E.read();if(R===null){d=w._read;return}if(!w.push(R))return}};else if(UNe(E)){const O=(s8(E)?E.readable:E).getReader();w._read=async function(){for(;;)try{const{value:M,done:L}=await O.read();if(!w.push(M))return;if(L){w.push(null);return}}catch{return}}}}return w._destroy=function(R,O){!R&&h!==null&&(R=new tdr),d=null,l=null,u=null,h===null?O(R):(h=O,wue(E)&&edr(E,R))},w};const idr=globalThis.AbortController||$o().AbortController,{codes:{ERR_INVALID_ARG_VALUE:odr,ERR_INVALID_ARG_TYPE:yJ,ERR_MISSING_ARGS:sdr,ERR_OUT_OF_RANGE:ldr},AbortError:sk}=T0,{validateAbortSignal:eO,validateInteger:OHt,validateObject:tO}=mJ,adr=Lf.Symbol("kWeak"),cdr=Lf.Symbol("kResistStopPropagation"),{finished:udr}=FT,fdr=oin,{addAbortSignalNoValidate:ddr}=obe,{isWritable:hdr,isNodeStream:pdr}=xx,{deprecate:bdr}=c1,{ArrayPrototypePush:gdr,Boolean:wdr,MathFloor:NHt,Number:mdr,NumberIsNaN:ydr,Promise:MHt,PromiseReject:DHt,PromiseResolve:vdr,PromisePrototypeThen:LHt,Symbol:sin}=Lf,rhe=sin("kEmpty"),jHt=sin("kEof");function _dr(n,r){if(r!=null&&tO(r,"options"),(r==null?void 0:r.signal)!=null&&eO(r.signal,"options.signal"),pdr(n)&&!hdr(n))throw new odr("stream",n,"must be writable");const o=fdr(this,n);return r!=null&&r.signal&&ddr(r.signal,o),o}function abe(n,r){if(typeof n!="function")throw new yJ("fn",["Function","AsyncFunction"],n);r!=null&&tO(r,"options"),(r==null?void 0:r.signal)!=null&&eO(r.signal,"options.signal");let o=1;(r==null?void 0:r.concurrency)!=null&&(o=NHt(r.concurrency));let l=o-1;return(r==null?void 0:r.highWaterMark)!=null&&(l=NHt(r.highWaterMark)),OHt(o,"options.concurrency",1),OHt(l,"options.highWaterMark",0),l+=o,(async function*(){const d=c1.AbortSignalAny([r==null?void 0:r.signal].filter(wdr)),h=this,w=[],v={signal:d};let y,E,A=!1,C=0;function R(){A=!0,O()}function O(){C-=1,M()}function M(){E&&!A&&C=l||C>=o)&&await new MHt(G=>{E=G})}w.push(jHt)}catch(H){const G=DHt(H);LHt(G,O,R),w.push(G)}finally{A=!0,y&&(y(),y=null)}}L();try{for(;;){for(;w.length>0;){const H=await w[0];if(H===jHt)return;if(d.aborted)throw new sk;H!==rhe&&(yield H),w.shift(),M()}await new MHt(H=>{y=H})}}finally{A=!0,E&&(E(),E=null)}}).call(this)}function Sdr(n=void 0){return n!=null&&tO(n,"options"),(n==null?void 0:n.signal)!=null&&eO(n.signal,"options.signal"),(async function*(){let o=0;for await(const u of this){var l;if(n!=null&&(l=n.signal)!==null&&l!==void 0&&l.aborted)throw new sk({cause:n.signal.reason});yield[o++,u]}}).call(this)}async function lin(n,r=void 0){for await(const o of AUe.call(this,n,r))return!0;return!1}async function Edr(n,r=void 0){if(typeof n!="function")throw new yJ("fn",["Function","AsyncFunction"],n);return!await lin.call(this,async(...o)=>!await n(...o),r)}async function kdr(n,r){for await(const o of AUe.call(this,n,r))return o}async function Rdr(n,r){if(typeof n!="function")throw new yJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u),rhe}for await(const l of abe.call(this,o,r));}function AUe(n,r){if(typeof n!="function")throw new yJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u)?l:rhe}return abe.call(this,o,r)}let xdr=class extends sdr{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function Cdr(n,r,o){var l;if(typeof n!="function")throw new yJ("reducer",["Function","AsyncFunction"],n);o!=null&&tO(o,"options"),(o==null?void 0:o.signal)!=null&&eO(o.signal,"options.signal");let u=arguments.length>1;if(o!=null&&(l=o.signal)!==null&&l!==void 0&&l.aborted){const y=new sk(void 0,{cause:o.signal.reason});throw this.once("error",()=>{}),await udr(this.destroy(y)),y}const d=new idr,h=d.signal;if(o!=null&&o.signal){const y={once:!0,[adr]:this,[cdr]:!0};o.signal.addEventListener("abort",()=>d.abort(),y)}let w=!1;try{for await(const y of this){var v;if(w=!0,o!=null&&(v=o.signal)!==null&&v!==void 0&&v.aborted)throw new sk;u?r=await n(r,y,{signal:h}):(r=y,u=!0)}if(!w&&!u)throw new xdr}finally{d.abort()}return r}async function Adr(n){n!=null&&tO(n,"options"),(n==null?void 0:n.signal)!=null&&eO(n.signal,"options.signal");const r=[];for await(const l of this){var o;if(n!=null&&(o=n.signal)!==null&&o!==void 0&&o.aborted)throw new sk(void 0,{cause:n.signal.reason});gdr(r,l)}return r}function Tdr(n,r){const o=abe.call(this,n,r);return(async function*(){for await(const u of o)yield*u}).call(this)}function ain(n){if(n=mdr(n),ydr(n))return 0;if(n<0)throw new ldr("number",">= 0",n);return n}function $dr(n,r=void 0){return r!=null&&tO(r,"options"),(r==null?void 0:r.signal)!=null&&eO(r.signal,"options.signal"),n=ain(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new sk;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new sk;n--<=0&&(yield d)}}).call(this)}function Idr(n,r=void 0){return r!=null&&tO(r,"options"),(r==null?void 0:r.signal)!=null&&eO(r.signal,"options.signal"),n=ain(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new sk;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new sk;if(n-- >0&&(yield d),n<=0)return}}).call(this)}mUe.streamReturningOperators={asIndexedPairs:bdr(Sdr,"readable.asIndexedPairs will be removed in a future version."),drop:$dr,filter:AUe,flatMap:Tdr,map:abe,take:Idr,compose:_dr};mUe.promiseReturningOperators={every:Edr,forEach:Rdr,reduce:Cdr,toArray:Adr,some:lin,find:kdr};var GNe,FHt;function cin(){if(FHt)return GNe;FHt=1;const{ArrayPrototypePop:n,Promise:r}=Lf,{isIterable:o,isNodeStream:l,isWebStream:u}=xx,{pipelineImpl:d}=CUe,{finished:h}=FT;uin();function w(...v){return new r((y,E)=>{let A,C;const R=v[v.length-1];if(R&&typeof R=="object"&&!l(R)&&!o(R)&&!u(R)){const O=n(v);A=O.signal,C=O.end}d(v,(O,M)=>{O?E(O):y(M)},{signal:A,end:C})})}return GNe={finished:h,pipeline:w},GNe}var BHt;function uin(){if(BHt)return CNe.exports;BHt=1;const{Buffer:n}=Kr,{ObjectDefineProperty:r,ObjectKeys:o,ReflectApply:l}=Lf,{promisify:{custom:u}}=c1,{streamReturningOperators:d,promiseReturningOperators:h}=mUe,{codes:{ERR_ILLEGAL_CONSTRUCTOR:w}}=T0,v=oin,{setDefaultHighWaterMark:y,getDefaultHighWaterMark:E}=sbe,{pipeline:A}=CUe,{destroyer:C}=wj,R=FT,O=cin(),M=xx,L=CNe.exports=EUe.Stream;L.isDestroyed=M.isDestroyed,L.isDisturbed=M.isDisturbed,L.isErrored=M.isErrored,L.isReadable=M.isReadable,L.isWritable=M.isWritable,L.Readable=lbe();for(const G of o(d)){let Q=function(...te){if(new.target)throw w();return L.Readable.from(l(j,this,te))};const j=d[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}for(const G of o(h)){let Q=function(...te){if(new.target)throw w();return l(j,this,te)};const j=h[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}L.Writable=kUe(),L.Duplex=tx(),L.Transform=tin,L.PassThrough=rin,L.pipeline=A;const{addAbortSignal:H}=obe;return L.addAbortSignal=H,L.finished=R,L.destroy=C,L.compose=v,L.setDefaultHighWaterMark=y,L.getDefaultHighWaterMark=E,r(L,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return O}}),r(A,u,{__proto__:null,enumerable:!0,get(){return O.pipeline}}),r(R,u,{__proto__:null,enumerable:!0,get(){return O.finished}}),L.Stream=L,L._isUint8Array=function(j){return j instanceof Uint8Array},L._uint8ArrayToBuffer=function(j){return n.from(j.buffer,j.byteOffset,j.byteLength)},CNe.exports}(function(n){const r=uin(),o=cin(),l=r.Readable.destroy;n.exports=r.Readable,n.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer,n.exports._isUint8Array=r._isUint8Array,n.exports.isDisturbed=r.isDisturbed,n.exports.isErrored=r.isErrored,n.exports.isReadable=r.isReadable,n.exports.Readable=r.Readable,n.exports.Writable=r.Writable,n.exports.Duplex=r.Duplex,n.exports.Transform=r.Transform,n.exports.PassThrough=r.PassThrough,n.exports.addAbortSignal=r.addAbortSignal,n.exports.finished=r.finished,n.exports.destroy=r.destroy,n.exports.destroy=l,n.exports.pipeline=r.pipeline,n.exports.compose=r.compose,Object.defineProperty(r,"promises",{configurable:!0,enumerable:!0,get(){return o}}),n.exports.Stream=r.Stream,n.exports.default=n.exports})(vrn);var Pdr=vrn.exports,cbe={},rK={},TUe={},vJ={};Object.defineProperty(vJ,"__esModule",{value:!0});vJ.BlankNode=void 0;let Odr=class{constructor(r){this.termType="BlankNode",this.value=r}equals(r){return!!r&&r.termType==="BlankNode"&&r.value===this.value}};vJ.BlankNode=Odr;var ube={},_J={};Object.defineProperty(_J,"__esModule",{value:!0});_J.DefaultGraph=void 0;let Uje=class{constructor(){this.termType="DefaultGraph",this.value=""}equals(r){return!!r&&r.termType==="DefaultGraph"}};_J.DefaultGraph=Uje;Uje.INSTANCE=new Uje;var SJ={},mj={};Object.defineProperty(mj,"__esModule",{value:!0});mj.NamedNode=void 0;let Ndr=class{constructor(r){this.termType="NamedNode",this.value=r}equals(r){return!!r&&r.termType==="NamedNode"&&r.value===this.value}};mj.NamedNode=Ndr;Object.defineProperty(SJ,"__esModule",{value:!0});SJ.Literal=void 0;const fin=mj;let $Ue=class Gje{constructor(r,o){this.termType="Literal",this.value=r,typeof o=="string"?(this.language=o,this.datatype=Gje.RDF_LANGUAGE_STRING):o?(this.language="",this.datatype=o):(this.language="",this.datatype=Gje.XSD_STRING)}equals(r){return!!r&&r.termType==="Literal"&&r.value===this.value&&r.language===this.language&&this.datatype.equals(r.datatype)}};SJ.Literal=$Ue;$Ue.RDF_LANGUAGE_STRING=new fin.NamedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString");$Ue.XSD_STRING=new fin.NamedNode("http://www.w3.org/2001/XMLSchema#string");var EJ={};Object.defineProperty(EJ,"__esModule",{value:!0});EJ.Quad=void 0;let Mdr=class{constructor(r,o,l,u){this.termType="Quad",this.value="",this.subject=r,this.predicate=o,this.object=l,this.graph=u}equals(r){return!!r&&(r.termType==="Quad"||!r.termType)&&this.subject.equals(r.subject)&&this.predicate.equals(r.predicate)&&this.object.equals(r.object)&&this.graph.equals(r.graph)}};EJ.Quad=Mdr;var kJ={};Object.defineProperty(kJ,"__esModule",{value:!0});kJ.Variable=void 0;let Ddr=class{constructor(r){this.termType="Variable",this.value=r}equals(r){return!!r&&r.termType==="Variable"&&r.value===this.value}};kJ.Variable=Ddr;Object.defineProperty(ube,"__esModule",{value:!0});ube.DataFactory=void 0;const Ldr=vJ,jdr=_J,WHt=SJ,Fdr=mj,Bdr=EJ,Wdr=kJ;let Hdr=0,Udr=class{constructor(r){this.blankNodeCounter=0,r=r||{},this.blankNodePrefix=r.blankNodePrefix||`df_${Hdr++}_`}namedNode(r){return new Fdr.NamedNode(r)}blankNode(r){return new Ldr.BlankNode(r||`${this.blankNodePrefix}${this.blankNodeCounter++}`)}literal(r,o){return new WHt.Literal(r,o)}variable(r){return new Wdr.Variable(r)}defaultGraph(){return jdr.DefaultGraph.INSTANCE}quad(r,o,l,u){return new Bdr.Quad(r,o,l,u||this.defaultGraph())}fromTerm(r){switch(r.termType){case"NamedNode":return this.namedNode(r.value);case"BlankNode":return this.blankNode(r.value);case"Literal":return r.language?this.literal(r.value,r.language):r.datatype.equals(WHt.Literal.XSD_STRING)?this.literal(r.value):this.literal(r.value,this.fromTerm(r.datatype));case"Variable":return this.variable(r.value);case"DefaultGraph":return this.defaultGraph();case"Quad":return this.quad(this.fromTerm(r.subject),this.fromTerm(r.predicate),this.fromTerm(r.object),this.fromTerm(r.graph))}}fromQuad(r){return this.fromTerm(r)}resetBlankNodeCounter(){this.blankNodeCounter=0}};ube.DataFactory=Udr;(function(n){var r=fu&&fu.__createBinding||(Object.create?function(l,u,d,h){h===void 0&&(h=d),Object.defineProperty(l,h,{enumerable:!0,get:function(){return u[d]}})}:function(l,u,d,h){h===void 0&&(h=d),l[h]=u[d]}),o=fu&&fu.__exportStar||function(l,u){for(var d in l)d!=="default"&&!Object.prototype.hasOwnProperty.call(u,d)&&r(u,l,d)};Object.defineProperty(n,"__esModule",{value:!0}),o(vJ,n),o(ube,n),o(_J,n),o(SJ,n),o(mj,n),o(EJ,n),o(kJ,n)})(TUe);var iK={},fbe={};Object.defineProperty(fbe,"__esModule",{value:!0});fbe.ContainerHandlerIdentifier=void 0;class Gdr{canCombineWithGraph(){return!0}async handle(r,o,l,u,d,h){let w;if(o.emittedStack[h+1]&&o.idStack[h+1])w=o.idStack[h+1][0];else{const E=await l.getContainerKey(u[h],u,h)!==null?await l.resourceToTerm(await o.getContext(u),u[h]):l.dataFactory.blankNode();if(!E){o.emittedStack[h]=!1;return}w=E,o.idStack[h+1]=[w]}let v=o.idStack[h];v||(v=o.idStack[h]=[]),v.some(y=>y.equals(w))||v.push(w),await o.handlePendingContainerFlushBuffers()||(o.emittedStack[h]=!1)}}fbe.ContainerHandlerIdentifier=Gdr;var oK={},sK={},HHt;function dbe(){if(HHt)return sK;HHt=1,Object.defineProperty(sK,"__esModule",{value:!0}),sK.EntryHandlerPredicate=void 0;const n=a1,r=nO();let o=class din{static async handlePredicateObject(u,d,h,w,v,y,E,A,C){const R=await d.getPropertiesDepth(h,w),O=await d.getDepthOffsetGraph(w,h),M=w-O,L=u.idStack[R];if(L&&!C)for(const H of L)if(O>=0){const j=u.idStack[M-1];if(j)for(const Q of j)d.emitQuadChecked(w,H,v,y,Q,E,A);else E?(d.validateReverseSubject(y),u.getUnidentifiedGraphBufferSafe(M-1).push({subject:y,predicate:v,object:H,isEmbedded:A})):u.getUnidentifiedGraphBufferSafe(M-1).push({subject:H,predicate:v,object:y,isEmbedded:A})}else{const j=await d.getGraphContainerValue(h,R);d.emitQuadChecked(w,H,v,y,j,E,A)}else if(E&&d.validateReverseSubject(y),C){if(u.rdfstar){u.idStack[w]&&u.emitError(new n.ErrorCoded(`Found an illegal @id inside an annotation: ${u.idStack[w][0].value}`,n.ERROR_CODES.INVALID_ANNOTATION));for(let j=0;j=0;j--){const Q=H[j];Q.depth>R&&(G.nestedAnnotations.push(Q),H.splice(j,1))}}}else u.getUnidentifiedValueBufferSafe(R).push({predicate:v,object:y,reverse:E,isEmbedded:A})}isPropertyHandler(){return!0}isStackProcessor(){return!0}async validate(u,d,h,w,v){const y=h[w];if(y){const E=await u.getContext(h);if(!u.jsonLiteralStack[w]&&await d.predicateToTerm(E,h[w]))return r.Util.getContextValueType(E,y)==="@json"&&(u.jsonLiteralStack[w+1]=!0),!0}return!1}async test(u,d,h,w,v){return w[v]}async handle(u,d,h,w,v,y,E){const A=w[y],C=await u.getContext(w),R=await d.predicateToTerm(C,h);if(R){const O=await d.valueToTerm(C,h,v,y,w);if(O.length)for(let M of O){let L=await d.unaliasKeywordParent(w,y);const H=r.Util.isPropertyReverse(C,A,L);let G=0;for(;L==="@reverse"||typeof L=="number";)typeof L=="number"?G++:y--,L=await d.unaliasKeywordParent(w,y-G);const j=r.Util.isPropertyInEmbeddedNode(L);d.validateReverseInEmbeddedNode(h,H,j);const Q=r.Util.isPropertyInAnnotationObject(L);if(v){const te="@list"in r.Util.getContextValueContainer(C,h);if(te||v["@list"]){if((te&&!Array.isArray(v)&&!v["@list"]||v["@list"]&&!Array.isArray(v["@list"]))&&M!==d.rdfNil){const pe=d.dataFactory.blankNode();u.emitQuad(y,d.dataFactory.quad(pe,d.rdfRest,d.rdfNil,d.getDefaultGraph())),u.emitQuad(y,d.dataFactory.quad(pe,d.rdfFirst,M,d.getDefaultGraph())),M=pe}if(H&&!u.allowSubjectList)throw new n.ErrorCoded(`Found illegal list value in subject position at ${h}`,n.ERROR_CODES.INVALID_REVERSE_PROPERTY_VALUE)}}await din.handlePredicateObject(u,d,w,y,R,M,H,j,Q)}}}};return sK.EntryHandlerPredicate=o,sK}var UHt;function Vdr(){if(UHt)return oK;UHt=1,Object.defineProperty(oK,"__esModule",{value:!0}),oK.ContainerHandlerIndex=void 0;const n=a1,r=dbe(),o=nO();let l=class{canCombineWithGraph(){return!0}async handle(d,h,w,v,y,E){if(!Array.isArray(y)){const A="@graph"in d,C=await h.getContext(v),R=v[E-1],O=o.Util.getContextValueIndex(C,R);if(O){if(n.Util.isPotentialKeyword(O))throw new n.ErrorCoded(`Keywords can not be used as @index value, got: ${O}`,n.ERROR_CODES.INVALID_TERM_DEFINITION);if(typeof O!="string")throw new n.ErrorCoded(`@index values must be strings, got: ${O}`,n.ERROR_CODES.INVALID_TERM_DEFINITION);if(typeof y!="object"){if(o.Util.getContextValueType(C,R)!=="@id")throw new n.ErrorCoded(`Property-based index containers require nodes as values or strings with @type: @id, but got: ${y}`,n.ERROR_CODES.INVALID_VALUE_OBJECT);const H=w.resourceToTerm(C,y);H&&(h.idStack[E+1]=[H])}const L=w.createVocabOrBaseTerm(C,O);if(L){const H=await w.valueToTerm(C,O,await w.getContainerKey(v[E],v,E),E,v);if(A){const G=await w.getGraphContainerValue(v,E+1);for(const j of H)h.emitQuad(E,w.dataFactory.quad(G,L,j,w.getDefaultGraph()))}else for(const G of H)await r.EntryHandlerPredicate.handlePredicateObject(h,w,v,E+1,L,G,!1,!1,!1)}}const M=A?2:1;await h.newOnValueJob(v.slice(0,v.length-M),y,E-M,!0),await h.handlePendingContainerFlushBuffers()}h.emittedStack[E]=!1}};return oK.ContainerHandlerIndex=l,oK}var hbe={};Object.defineProperty(hbe,"__esModule",{value:!0});hbe.ContainerHandlerLanguage=void 0;const GHt=a1;class zdr{canCombineWithGraph(){return!1}async handle(r,o,l,u,d,h){const w=await l.getContainerKey(u[h],u,h);if(Array.isArray(d))d=d.map(v=>({"@value":v,"@language":w}));else{if(typeof d!="string")throw new GHt.ErrorCoded(`Got invalid language map value, got '${JSON.stringify(d)}', but expected string`,GHt.ERROR_CODES.INVALID_LANGUAGE_MAP_VALUE);d={"@value":d,"@language":w}}await o.newOnValueJob(u.slice(0,u.length-1),d,h-1,!0),o.emittedStack[h]=!1}}hbe.ContainerHandlerLanguage=zdr;var lK={},VHt;function Kdr(){if(VHt)return lK;VHt=1,Object.defineProperty(lK,"__esModule",{value:!0}),lK.ContainerHandlerType=void 0;const n=dbe(),r=nO();let o=class{canCombineWithGraph(){return!1}async handle(u,d,h,w,v,y){if(!Array.isArray(v)){if(typeof v=="string"){const C=await d.getContext(w),O=r.Util.getContextValueType(C,w[y-1])==="@vocab"?await h.createVocabOrBaseTerm(C,v):await h.resourceToTerm(C,v);if(O){const M={"@id":O.termType==="NamedNode"?O.value:v};await d.newOnValueJob(w.slice(0,w.length-1),M,y-1,!0),d.idStack[y+1]=[O]}}else{const C=!!d.idStack[y+1];C||delete d.idStack[y],await d.newOnValueJob(w.slice(0,w.length-1),v,y-1,!0),C||(d.idStack[y+1]=d.idStack[y])}const E=await h.getContainerKey(w[y],w,y),A=E!==null?h.createVocabOrBaseTerm(await d.getContext(w),E):null;A&&await n.EntryHandlerPredicate.handlePredicateObject(d,h,w,y+1,h.rdfType,A,!1,!1,!1),await d.handlePendingContainerFlushBuffers()}d.emittedStack[y]=!1}};return lK.ContainerHandlerType=o,lK}var zHt;function hin(){if(zHt)return iK;zHt=1,Object.defineProperty(iK,"__esModule",{value:!0}),iK.EntryHandlerContainer=void 0;const n=fbe,r=Vdr(),o=hbe,l=Kdr(),u=nO();let d=class F4{static isSimpleGraphContainer(w){return"@graph"in w&&("@set"in w&&Object.keys(w).length===2||Object.keys(w).length===1)}static isComplexGraphContainer(w){return"@graph"in w&&("@set"in w&&Object.keys(w).length>2||!("@set"in w)&&Object.keys(w).length>1)}static getContainerGraphIndex(w,v,y){let E=F4.isSimpleGraphContainer(w),A="";for(let C=v;C=0;R--)if(typeof v[R]!="number"){const O=u.Util.getContextValue(C,"@container",v[R],!1);if(O&&F4.isSimpleGraphContainer(O))return{containers:O,depth:R+1,fallback:!1};const M=u.Util.getContextValue(C,"@container",v[R-1],!1);if(M){const L="@graph"in M;for(const H in F4.CONTAINER_HANDLERS)if(M[H])return L?F4.CONTAINER_HANDLERS[H].canCombineWithGraph()?{containers:M,depth:R,fallback:!1}:E:A?E:{containers:M,depth:R,fallback:!1};return E}else{if(A)return E;A=!0}}return E}static async isBufferableContainerHandler(w,v,y){const E=await F4.getContainerHandler(w,v,y);return!E.fallback&&!("@graph"in E.containers)}isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(w,v,y,E,A){return!!await this.test(w,v,null,y,E)}async test(w,v,y,E,A){const C=u.Util.getContextValueContainer(await w.getContext(E,2),E[A-1]);for(const R in F4.CONTAINER_HANDLERS)if(C[R])return{containers:C,handler:F4.CONTAINER_HANDLERS[R]};return null}async handle(w,v,y,E,A,C,R){return R.handler.handle(R.containers,w,v,E,A,C)}};return d.CONTAINER_HANDLERS={"@id":new n.ContainerHandlerIdentifier,"@index":new r.ContainerHandlerIndex,"@language":new o.ContainerHandlerLanguage,"@type":new l.ContainerHandlerType},iK.EntryHandlerContainer=d,iK}var pin=function n(r){return r===null||typeof r!="object"||r.toJSON!=null?JSON.stringify(r):Array.isArray(r)?"["+r.reduce((o,l,u)=>{const d=u===0?"":",",h=l===void 0||typeof l=="symbol"?null:l;return o+d+n(h)},"")+"]":"{"+Object.keys(r).sort().reduce((o,l,u)=>{if(r[l]===void 0||typeof r[l]=="symbol")return o;const d=o.length===0?"":",";return o+d+n(l)+":"+n(r[l])},"")+"}"},KHt;function nO(){if(KHt)return rK;KHt=1,Object.defineProperty(rK,"__esModule",{value:!0}),rK.Util=void 0;const n=a1,r=TUe,o=hin(),l=pin;let u=class ic{constructor(h){this.parsingContext=h.parsingContext,this.dataFactory=h.dataFactory||new r.DataFactory,this.rdfFirst=this.dataFactory.namedNode(ic.RDF+"first"),this.rdfRest=this.dataFactory.namedNode(ic.RDF+"rest"),this.rdfNil=this.dataFactory.namedNode(ic.RDF+"nil"),this.rdfType=this.dataFactory.namedNode(ic.RDF+"type"),this.rdfJson=this.dataFactory.namedNode(ic.RDF+"JSON")}static getContextValue(h,w,v,y){const E=h.getContextRaw()[v];if(!E)return y;const A=E[w];return A===void 0?y:A}static getContextValueContainer(h,w){return ic.getContextValue(h,"@container",w,{"@set":!0})}static getContextValueType(h,w){const v=ic.getContextValue(h,"@type",w,null);return v==="@none"?null:v}static getContextValueLanguage(h,w){return ic.getContextValue(h,"@language",w,h.getContextRaw()["@language"]||null)}static getContextValueDirection(h,w){return ic.getContextValue(h,"@direction",w,h.getContextRaw()["@direction"]||null)}static isContextValueReverse(h,w){return!!ic.getContextValue(h,"@reverse",w,null)}static getContextValueIndex(h,w){return ic.getContextValue(h,"@index",w,h.getContextRaw()["@index"]||null)}static isPropertyReverse(h,w,v){return v==="@reverse"!==ic.isContextValueReverse(h,w)}static isPropertyInEmbeddedNode(h){return h==="@id"}static isPropertyInAnnotationObject(h){return h==="@annotation"}static isValidIri(h){return h!==null&&n.Util.isValidIri(h)}static isPrefixArray(h,w){if(h.length>w.length)return!1;for(let v=0;v1)throw new n.ErrorCoded(`Found illegal neighbouring entries next to @set for key: '${w}'`,n.ERROR_CODES.INVALID_SET_OR_LIST_OBJECT);return[]}else if("@list"in v){if(Object.keys(v).length>1)throw new n.ErrorCoded(`Found illegal neighbouring entries next to @list for key: '${w}'`,n.ERROR_CODES.INVALID_SET_OR_LIST_OBJECT);const C=v["@list"];return Array.isArray(C)?C.length===0?[this.rdfNil]:this.parsingContext.idStack[y+1]||[]:await this.valueToTerm(await this.parsingContext.getContext(E),w,C,y-1,E.slice(0,-1))}else{if("@reverse"in v&&typeof v["@reverse"]=="boolean")return[];if("@graph"in ic.getContextValueContainer(await this.parsingContext.getContext(E),w)){const C=this.parsingContext.graphContainerTermStack[y+1];return C?Object.values(C):[this.dataFactory.blankNode()]}else if("@id"in v){if(Object.keys(v).length>1&&(h=await this.parsingContext.getContext(E,0)),"@context"in v&&(h=await this.parsingContext.parseContext(v["@context"],h.getContextRaw())),v["@type"]==="@vocab")return this.nullableTermToArray(this.createVocabOrBaseTerm(h,v["@id"]));{const C=v["@id"];let R;if(typeof C=="object")if(this.parsingContext.rdfstar)R=this.parsingContext.idStack[y+1][0];else throw new n.ErrorCoded(`Found illegal @id '${v}'`,n.ERROR_CODES.INVALID_ID_VALUE);else R=this.resourceToTerm(h,C);return this.nullableTermToArray(R)}}else return this.parsingContext.emittedStack[y+1]||v&&typeof v=="object"&&Object.keys(v).length===0?this.parsingContext.idStack[y+1]||(this.parsingContext.idStack[y+1]=[this.dataFactory.blankNode()]):[]}case"string":return this.nullableTermToArray(this.stringValueToTerm(y,await this.getContextSelfOrPropertyScoped(h,w),w,v,null));case"boolean":return this.nullableTermToArray(this.stringValueToTerm(y,await this.getContextSelfOrPropertyScoped(h,w),w,(!!v).toString(),this.dataFactory.namedNode(ic.XSD_BOOLEAN)));case"number":return this.nullableTermToArray(this.stringValueToTerm(y,await this.getContextSelfOrPropertyScoped(h,w),w,v,this.dataFactory.namedNode(v%1===0&&v<1e21?ic.XSD_INTEGER:ic.XSD_DOUBLE)));default:return this.parsingContext.emitError(new Error(`Could not determine the RDF type of a ${A}`)),[]}}async getContextSelfOrPropertyScoped(h,w){const v=h.getContextRaw()[w];return v&&typeof v=="object"&&"@context"in v&&(h=await this.parsingContext.parseContext(v,h.getContextRaw(),!0)),h}nullableTermToArray(h){return h?[h]:[]}predicateToTerm(h,w){const v=h.expandTerm(w,!0,this.parsingContext.getExpandOptions());if(!v)return null;if(v[0]==="_"&&v[1]===":")return this.parsingContext.produceGeneralizedRdf?this.dataFactory.blankNode(v.substr(2)):null;if(ic.isValidIri(v))return this.dataFactory.namedNode(v);if(v&&this.parsingContext.strictValues)this.parsingContext.emitError(new n.ErrorCoded(`Invalid predicate IRI: ${v}`,n.ERROR_CODES.INVALID_IRI_MAPPING));else return null;return null}resourceToTerm(h,w){if(w.startsWith("_:"))return this.dataFactory.blankNode(w.substr(2));const v=h.expandTerm(w,!1,this.parsingContext.getExpandOptions());if(!ic.isValidIri(v))if(v&&this.parsingContext.strictValues)this.parsingContext.emitError(new Error(`Invalid resource IRI: ${v}`));else return null;return this.dataFactory.namedNode(v)}createVocabOrBaseTerm(h,w){if(w.startsWith("_:"))return this.dataFactory.blankNode(w.substr(2));const v=this.parsingContext.getExpandOptions();let y=h.expandTerm(w,!0,v);if(y===w&&(y=h.expandTerm(w,!1,v)),!ic.isValidIri(y))if(y&&this.parsingContext.strictValues&&!y.startsWith("@"))this.parsingContext.emitError(new Error(`Invalid term IRI: ${y}`));else return null;return this.dataFactory.namedNode(y)}intToString(h,w){return typeof h=="number"?Number.isFinite(h)?h%1===0&&(!w||w.value!==ic.XSD_DOUBLE)?Number(h).toString():h.toExponential(15).replace(/(\d)0*e\+?/,"$1E"):h>0?"INF":"-INF":h}stringValueToTerm(h,w,v,y,E){const A=ic.getContextValueType(w,v);if(A)if(A==="@id"){if(!E)return this.resourceToTerm(w,this.intToString(y,E))}else if(A==="@vocab"){if(!E)return this.createVocabOrBaseTerm(w,this.intToString(y,E))}else E=this.dataFactory.namedNode(A);if(!E){const C=ic.getContextValueLanguage(w,v),R=ic.getContextValueDirection(w,v);return R&&this.parsingContext.rdfDirection?this.createLanguageDirectionLiteral(h,this.intToString(y,E),C,R):this.dataFactory.literal(this.intToString(y,E),C)}return this.dataFactory.literal(this.intToString(y,E),E)}createLanguageDirectionLiteral(h,w,v,y){if(this.parsingContext.rdfDirection==="i18n-datatype")return v||(v=""),this.dataFactory.literal(w,this.dataFactory.namedNode(`https://www.w3.org/ns/i18n#${v}_${y}`));{const E=this.dataFactory.blankNode(),A=this.getDefaultGraph();return this.parsingContext.emitQuad(h,this.dataFactory.quad(E,this.dataFactory.namedNode(ic.RDF+"value"),this.dataFactory.literal(w),A)),v&&this.parsingContext.emitQuad(h,this.dataFactory.quad(E,this.dataFactory.namedNode(ic.RDF+"language"),this.dataFactory.literal(v),A)),this.parsingContext.emitQuad(h,this.dataFactory.quad(E,this.dataFactory.namedNode(ic.RDF+"direction"),this.dataFactory.literal(y),A)),E}}valueToJsonString(h){return l(h)}async unaliasKeyword(h,w,v,y,E){if(Number.isInteger(h))return h;if(!y){const A=this.parsingContext.unaliasedKeywordCacheStack[v];if(A)return A}if(!n.Util.isPotentialKeyword(h)){E=E||await this.parsingContext.getContext(w);let A=E.getContextRaw()[h];A&&typeof A=="object"&&(A=A["@id"]),n.Util.isValidKeyword(A)&&(h=A)}return y?h:this.parsingContext.unaliasedKeywordCacheStack[v]=h}async unaliasKeywordParent(h,w){return await this.unaliasKeyword(w>0&&h[w-1],h,w-1)}async unaliasKeywords(h,w,v,y){const E={};for(const A in h)E[await this.unaliasKeyword(A,w,v+1,!0,y)]=h[A];return E}async isLiteral(h,w){for(let v=w;v>=0;v--){if(await this.unaliasKeyword(h[v],h,v)==="@annotation")return!1;if(this.parsingContext.literalStack[v]||this.parsingContext.jsonLiteralStack[v])return!0}return!1}async getDepthOffsetGraph(h,w){for(let v=h-1;v>0;v--)if(await this.unaliasKeyword(w[v],w,v)==="@graph"){const y=(await o.EntryHandlerContainer.getContainerHandler(this.parsingContext,w,v)).containers;return o.EntryHandlerContainer.isComplexGraphContainer(y)?-1:h-v-1}return-1}validateReverseSubject(h){if(h.termType==="Literal")throw new n.ErrorCoded(`Found illegal literal in subject position: ${h.value}`,n.ERROR_CODES.INVALID_REVERSE_PROPERTY_VALUE)}getDefaultGraph(){return this.parsingContext.defaultGraph||this.dataFactory.defaultGraph()}async getGraphContainerValue(h,w){let v=this.getDefaultGraph();const{containers:y,depth:E}=await o.EntryHandlerContainer.getContainerHandler(this.parsingContext,h,w);if("@graph"in y){const A=o.EntryHandlerContainer.getContainerGraphIndex(y,E,h),C=this.parsingContext.graphContainerTermStack[E];if(v=C?C[A]:null,!v){let R=null;if("@id"in y){const O=await this.getContainerKey(h[E],h,E);O!==null&&(R=await this.resourceToTerm(await this.parsingContext.getContext(h),O))}R||(R=this.dataFactory.blankNode()),this.parsingContext.graphContainerTermStack[E]||(this.parsingContext.graphContainerTermStack[E]={}),v=this.parsingContext.graphContainerTermStack[E][A]=R}}return v}async getPropertiesDepth(h,w){let v=w;for(let y=w-1;y>0;y--)if(typeof h[y]!="number"){const E=await this.unaliasKeyword(h[y],h,y);if(E==="@reverse")return y;if(E==="@nest")v=y;else return v}return v}async getContainerKey(h,w,v){const y=await this.unaliasKeyword(h,w,v);return y==="@none"?null:y}validateReverseInEmbeddedNode(h,w,v){if(v&&w&&!this.parsingContext.rdfstarReverseInEmbedded)throw new n.ErrorCoded(`Illegal reverse property in embedded node in ${h}`,n.ERROR_CODES.INVALID_EMBEDDED_NODE)}emitQuadChecked(h,w,v,y,E,A,C){let R;if(A?(this.validateReverseSubject(y),R=this.dataFactory.quad(y,v,w,E)):R=this.dataFactory.quad(w,v,y,E),C){if(R.graph.termType!=="DefaultGraph"&&(R=this.dataFactory.quad(R.subject,R.predicate,R.object)),this.parsingContext.idStack[h-1])throw new n.ErrorCoded("Illegal multiple properties in an embedded node",n.ERROR_CODES.INVALID_EMBEDDED_NODE);this.parsingContext.idStack[h-1]=[R]}else this.parsingContext.emitQuad(h,R);const O=this.parsingContext.annotationsBuffer[h];if(O){for(const M of O)this.emitAnnotation(h,R,M);delete this.parsingContext.annotationsBuffer[h]}}emitAnnotation(h,w,v){let y;v.reverse?(this.validateReverseSubject(v.object),y=this.dataFactory.quad(v.object,v.predicate,w)):y=this.dataFactory.quad(w,v.predicate,v.object),this.parsingContext.emitQuad(h,y);for(const E of v.nestedAnnotations)this.emitAnnotation(h,y,E)}};return u.XSD="http://www.w3.org/2001/XMLSchema#",u.XSD_BOOLEAN=u.XSD+"boolean",u.XSD_INTEGER=u.XSD+"integer",u.XSD_DOUBLE=u.XSD+"double",u.RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#",rK.Util=u,rK}Object.defineProperty(cbe,"__esModule",{value:!0});cbe.EntryHandlerArrayValue=void 0;const qdr=nO(),qHt=a1;class Xdr{isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(r,o,l,u,d){return this.test(r,o,null,l,u)}async test(r,o,l,u,d){return typeof u[d]=="number"}async handle(r,o,l,u,d,h){let w=await o.unaliasKeywordParent(u,h);if(w==="@list"){let v=null,y=0;for(let E=h-2;E>0;E--){const A=u[E];if(typeof A=="string"||typeof A=="number"){y=E,v=A;break}}if(v!==null){const E=await o.valueToTerm(await r.getContext(u),v,d,h,u);for(const A of E)await this.handleListElement(r,o,A,d,h,u.slice(0,y),y);E.length===0&&await this.handleListElement(r,o,null,d,h,u.slice(0,y),y)}}else if(w==="@set")await r.newOnValueJob(u.slice(0,-2),d,h-2,!1);else if(w!==void 0&&w!=="@type"){for(let y=h-1;y>0;y--)if(typeof u[y]!="number"){w=await o.unaliasKeyword(u[y],u,y);break}const v=await r.getContext(u.slice(0,-1));if("@list"in qdr.Util.getContextValueContainer(v,w)){r.emittedStack[h+1]=!0;const y=await o.valueToTerm(await r.getContext(u),w,d,h,u);for(const E of y)await this.handleListElement(r,o,E,d,h,u.slice(0,-1),h-1);y.length===0&&await this.handleListElement(r,o,null,d,h,u.slice(0,-1),h-1)}else r.shiftStack(h,1),await r.newOnValueJob(u.slice(0,-1),d,h-1,!1),r.contextTree.removeContext(u.slice(0,-1))}}async handleListElement(r,o,l,u,d,h,w){let v=r.listPointerStack[d];if(u!==null&&(await o.unaliasKeywords(u,h,d))["@value"]!==null){if(!v||!v.value){const y=o.dataFactory.blankNode();v={value:y,listRootDepth:w,listId:y}}else{const y=o.dataFactory.blankNode();r.emitQuad(d,o.dataFactory.quad(v.value,o.rdfRest,y,o.getDefaultGraph())),v.value=y}l&&r.emitQuad(d,o.dataFactory.quad(v.value,o.rdfFirst,l,o.getDefaultGraph()))}else v||(v={listRootDepth:w,listId:o.rdfNil});r.listPointerStack[d]=v,r.rdfstar&&r.annotationsBuffer[d]&&r.emitError(new qHt.ErrorCoded("Found an illegal annotation inside a list",qHt.ERROR_CODES.INVALID_ANNOTATION))}}cbe.EntryHandlerArrayValue=Xdr;var pbe={};Object.defineProperty(pbe,"__esModule",{value:!0});pbe.EntryHandlerInvalidFallback=void 0;class Jdr{isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(r,o,l,u,d){return!1}async test(r,o,l,u,d){return!0}async handle(r,o,l,u,d,h){r.emittedStack[h]=!1}}pbe.EntryHandlerInvalidFallback=Jdr;var bbe={},IS={};Object.defineProperty(IS,"__esModule",{value:!0});IS.EntryHandlerKeyword=void 0;class Ydr{constructor(r){this.keyword=r}isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(r,o,l,u,d){return!1}async test(r,o,l,u,d){return l===this.keyword}}IS.EntryHandlerKeyword=Ydr;Object.defineProperty(bbe,"__esModule",{value:!0});bbe.EntryHandlerKeywordContext=void 0;const XHt=a1,Qdr=IS;class Zdr extends Qdr.EntryHandlerKeyword{constructor(){super("@context")}isStackProcessor(){return!1}async handle(r,o,l,u,d,h){r.streamingProfile&&(r.processingStack[h]||r.processingType[h]||r.idStack[h]!==void 0)&&r.emitError(new XHt.ErrorCoded("Found an out-of-order context, while streaming is enabled.(disable `streamingProfile`)",XHt.ERROR_CODES.INVALID_STREAMING_KEY_ORDER));const w=r.getContext(u),v=r.parseContext(d,(await w).getContextRaw());r.contextTree.setContext(u.slice(0,-1),v),r.emitContext(d),await r.validateContext(await v)}}bbe.EntryHandlerKeywordContext=Zdr;var gbe={};Object.defineProperty(gbe,"__esModule",{value:!0});gbe.EntryHandlerKeywordGraph=void 0;const ehr=IS;class thr extends ehr.EntryHandlerKeyword{constructor(){super("@graph")}async handle(r,o,l,u,d,h){r.graphStack[h+1]=!0}}gbe.EntryHandlerKeywordGraph=thr;var wbe={};Object.defineProperty(wbe,"__esModule",{value:!0});wbe.EntryHandlerKeywordId=void 0;const kE=a1,nhr=IS;class rhr extends nhr.EntryHandlerKeyword{constructor(){super("@id")}isStackProcessor(){return!1}async handle(r,o,l,u,d,h){if(typeof d!="string"){if(r.rdfstar&&typeof d=="object"){const v=Object.keys(d);v.length===1&&v[0]==="@id"&&r.emitError(new kE.ErrorCoded(`Invalid embedded node without property with @id ${d["@id"]}`,kE.ERROR_CODES.INVALID_EMBEDDED_NODE))}else r.emitError(new kE.ErrorCoded(`Found illegal @id '${d}'`,kE.ERROR_CODES.INVALID_ID_VALUE));return}const w=await o.getPropertiesDepth(u,h);if(r.idStack[w]!==void 0&&(r.idStack[w][0].listHead?r.emitError(new kE.ErrorCoded(`Found illegal neighbouring entries next to @list for key: '${u[h-1]}'`,kE.ERROR_CODES.INVALID_SET_OR_LIST_OBJECT)):r.emitError(new kE.ErrorCoded(`Found duplicate @ids '${r.idStack[w][0].value}' and '${d}'`,kE.ERROR_CODES.COLLIDING_KEYWORDS))),r.rdfstar&&r.annotationsBuffer[h])for(const v of r.annotationsBuffer[h])v.depth===h&&r.emitError(new kE.ErrorCoded(`Found an illegal @id inside an annotation: ${d}`,kE.ERROR_CODES.INVALID_ANNOTATION));r.idStack[w]=o.nullableTermToArray(await o.resourceToTerm(await r.getContext(u),d))}}wbe.EntryHandlerKeywordId=rhr;var mbe={};Object.defineProperty(mbe,"__esModule",{value:!0});mbe.EntryHandlerKeywordIncluded=void 0;const aD=a1,ihr=IS;class ohr extends ihr.EntryHandlerKeyword{constructor(){super("@included")}async handle(r,o,l,u,d,h){typeof d!="object"&&r.emitError(new aD.ErrorCoded(`Found illegal @included '${d}'`,aD.ERROR_CODES.INVALID_INCLUDED_VALUE));const w=await o.unaliasKeywords(d,u,h,await r.getContext(u));"@value"in w&&r.emitError(new aD.ErrorCoded(`Found an illegal @included @value node '${JSON.stringify(d)}'`,aD.ERROR_CODES.INVALID_INCLUDED_VALUE)),"@list"in w&&r.emitError(new aD.ErrorCoded(`Found an illegal @included @list node '${JSON.stringify(d)}'`,aD.ERROR_CODES.INVALID_INCLUDED_VALUE)),r.emittedStack[h]=!1}}mbe.EntryHandlerKeywordIncluded=ohr;var ybe={};Object.defineProperty(ybe,"__esModule",{value:!0});ybe.EntryHandlerKeywordNest=void 0;const mue=a1,shr=IS;class lhr extends shr.EntryHandlerKeyword{constructor(){super("@nest")}async handle(r,o,l,u,d,h){typeof d!="object"&&r.emitError(new mue.ErrorCoded(`Found invalid @nest entry for '${l}': '${d}'`,mue.ERROR_CODES.INVALID_NEST_VALUE)),"@value"in await o.unaliasKeywords(d,u,h,await r.getContext(u))&&r.emitError(new mue.ErrorCoded(`Found an invalid @value node for '${l}'`,mue.ERROR_CODES.INVALID_NEST_VALUE)),r.emittedStack[h]=!1}}ybe.EntryHandlerKeywordNest=lhr;var vbe={};Object.defineProperty(vbe,"__esModule",{value:!0});vbe.EntryHandlerKeywordType=void 0;const aK=a1,yue=nO(),ahr=dbe(),chr=IS;class uhr extends chr.EntryHandlerKeyword{constructor(){super("@type")}isStackProcessor(){return!1}async handle(r,o,l,u,d,h){const w=u[h],v=await r.getContext(u),y=o.rdfType,E=await o.unaliasKeywordParent(u,h),A=yue.Util.isPropertyReverse(v,w,E),C=yue.Util.isPropertyInEmbeddedNode(E);o.validateReverseInEmbeddedNode(l,A,C);const R=yue.Util.isPropertyInAnnotationObject(E),O=Array.isArray(d)?d:[d];for(const H of O){typeof H!="string"&&r.emitError(new aK.ErrorCoded(`Found illegal @type '${H}'`,aK.ERROR_CODES.INVALID_TYPE_VALUE));const G=o.createVocabOrBaseTerm(v,H);G&&await ahr.EntryHandlerPredicate.handlePredicateObject(r,o,u,h,y,G,A,C,R)}let M=Promise.resolve(v),L=!1;for(const H of O.sort()){const G=yue.Util.getContextValue(v,"@context",H,null);G&&(L=!0,M=M.then(j=>r.parseContext(G,j.getContextRaw())))}r.streamingProfile&&(L||!r.streamingProfileAllowOutOfOrderPlainType)&&(r.processingStack[h]||r.idStack[h])&&r.emitError(new aK.ErrorCoded("Found an out-of-order type-scoped context, while streaming is enabled.(disable `streamingProfile`)",aK.ERROR_CODES.INVALID_STREAMING_KEY_ORDER)),L&&(M=M.then(H=>H.getContextRaw()["@propagate"]!==!0?new aK.JsonLdContextNormalized(Object.assign(Object.assign({},H.getContextRaw()),{"@propagate":!1,"@__propagateFallback":v.getContextRaw()})):H),r.contextTree.setContext(u.slice(0,u.length-1),M)),r.processingType[h]=!0}}vbe.EntryHandlerKeywordType=uhr;var _be={};Object.defineProperty(_be,"__esModule",{value:!0});_be.EntryHandlerKeywordUnknownFallback=void 0;const wq=a1;class Sbe{isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(r,o,l,u,d){const h=await o.unaliasKeyword(l[u],l,u);return wq.Util.isPotentialKeyword(h)?!(!d&&h==="@list"):!1}async test(r,o,l,u,d){return wq.Util.isPotentialKeyword(l)}async handle(r,o,l,u,d,h){const w=Sbe.VALID_KEYWORDS_TYPES[l];w!==void 0?w&&typeof d!==w.type&&r.emitError(new wq.ErrorCoded(`Invalid value type for '${l}' with value '${d}'`,w.errorCode)):r.strictValues&&r.emitError(new Error(`Unknown keyword '${l}' with value '${d}'`)),r.emittedStack[h]=!1}}Sbe.VALID_KEYWORDS_TYPES={"@index":{type:"string",errorCode:wq.ERROR_CODES.INVALID_INDEX_VALUE},"@list":null,"@reverse":{type:"object",errorCode:wq.ERROR_CODES.INVALID_REVERSE_VALUE},"@set":null,"@value":null};_be.EntryHandlerKeywordUnknownFallback=Sbe;var Ebe={};Object.defineProperty(Ebe,"__esModule",{value:!0});Ebe.EntryHandlerKeywordValue=void 0;const fhr=IS;class dhr extends fhr.EntryHandlerKeyword{constructor(){super("@value")}async validate(r,o,l,u,d){const h=l[u];return h&&!r.literalStack[u]&&await this.test(r,o,h,l,u)&&(r.literalStack[u]=!0),super.validate(r,o,l,u,d)}async test(r,o,l,u,d){return await o.unaliasKeyword(u[d],u.slice(0,u.length-1),d-1,!0)==="@value"}async handle(r,o,l,u,d,h){r.literalStack[h]=!0,delete r.unidentifiedValuesBuffer[h],delete r.unidentifiedGraphsBuffer[h],r.emittedStack[h]=!1}}Ebe.EntryHandlerKeywordValue=dhr;var cK={},kbe={};Object.defineProperty(kbe,"__esModule",{value:!0});kbe.ContextTree=void 0;class IUe{constructor(){this.subTrees={}}getContext(r){if(r.length>0){const[o,...l]=r,u=this.subTrees[o];if(u){const d=u.getContext(l);if(d)return d.then(({context:h,depth:w})=>({context:h,depth:w+1}))}}return this.context?this.context.then(o=>({context:o,depth:0})):null}setContext(r,o){if(r.length===0)this.context=o;else{const[l,...u]=r;let d=this.subTrees[l];d||(d=this.subTrees[l]=new IUe),d.setContext(u,o)}}removeContext(r){this.setContext(r,null)}}kbe.ContextTree=IUe;var JHt;function hhr(){if(JHt)return cK;JHt=1,Object.defineProperty(cK,"__esModule",{value:!0}),cK.ParsingContext=void 0;const n=a1,r=pj,o=kbe,l=gin();let u=class bin{constructor(h){this.contextParser=new n.ContextParser({documentLoader:h.documentLoader,skipValidation:h.skipContextValidation}),this.streamingProfile=!!h.streamingProfile,this.baseIRI=h.baseIRI,this.produceGeneralizedRdf=!!h.produceGeneralizedRdf,this.allowSubjectList=!!h.allowSubjectList,this.processingMode=h.processingMode||l.JsonLdParser.DEFAULT_PROCESSING_MODE,this.strictValues=!!h.strictValues,this.validateValueIndexes=!!h.validateValueIndexes,this.defaultGraph=h.defaultGraph,this.rdfDirection=h.rdfDirection,this.normalizeLanguageTags=h.normalizeLanguageTags,this.streamingProfileAllowOutOfOrderPlainType=h.streamingProfileAllowOutOfOrderPlainType,this.rdfstar=h.rdfstar!==!1,this.rdfstarReverseInEmbedded=h.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 o.ContextTree,this.literalStack=[],this.validationStack=[],this.unaliasedKeywordCacheStack=[],this.jsonLiteralStack=[],this.unidentifiedValuesBuffer=[],this.unidentifiedGraphsBuffer=[],this.annotationsBuffer=[],this.pendingContainerFlushBuffers=[],this.parser=h.parser,h.context?(this.rootContext=this.parseContext(h.context),this.rootContext.then(w=>this.validateContext(w))):this.rootContext=Promise.resolve(new n.JsonLdContextNormalized(this.baseIRI?{"@base":this.baseIRI,"@__baseDocument":!0}:{}))}async parseContext(h,w,v){return this.contextParser.parse(h,{baseIRI:this.baseIRI,ignoreProtection:v,normalizeLanguageTags:this.normalizeLanguageTags,parentContext:w,processingMode:this.activeProcessingMode})}validateContext(h){const w=h.getContextRaw()["@version"];if(w){if(this.activeProcessingMode&&w>this.activeProcessingMode)throw new r.ErrorCoded(`Unsupported JSON-LD version '${w}' under active processing mode ${this.activeProcessingMode}.`,r.ERROR_CODES.PROCESSING_MODE_CONFLICT);if(this.activeProcessingMode&&w0&&v.context.getContextRaw()["@propagate"]===!1&&v.depth!==w&&!y);return v.depth===0&&v.context.getContextRaw()["@propagate"]===!1&&v.depth!==w&&(v.context=new n.JsonLdContextNormalized({})),v}async newOnValueJob(h,w,v,y){await this.parser.newOnValueJob(h,w,v,y)}async handlePendingContainerFlushBuffers(){if(this.pendingContainerFlushBuffers.length>0){for(const h of this.pendingContainerFlushBuffers)await this.parser.flushBuffer(h.depth,h.keys),this.parser.flushStacks(h.depth);return this.pendingContainerFlushBuffers.splice(0,this.pendingContainerFlushBuffers.length),!0}else return!1}emitQuad(h,w){h===1&&(this.topLevelProperties=!0),this.parser.push(w)}emitError(h){this.parser.emit("error",h)}emitContext(h){this.parser.emit("context",h)}getUnidentifiedValueBufferSafe(h){let w=this.unidentifiedValuesBuffer[h];return w||(w=[],this.unidentifiedValuesBuffer[h]=w),w}getUnidentifiedGraphBufferSafe(h){let w=this.unidentifiedGraphsBuffer[h];return w||(w=[],this.unidentifiedGraphsBuffer[h]=w),w}getAnnotationsBufferSafe(h){let w=this.annotationsBuffer[h];return w||(w=[],this.annotationsBuffer[h]=w),w}getExpandOptions(){return bin.EXPAND_OPTIONS[this.activeProcessingMode]}shiftStack(h,w){const v=this.idStack[h+w];if(v&&(this.idStack[h]=v,this.emittedStack[h]=!0,delete this.idStack[h+w]),this.pendingContainerFlushBuffers.length)for(const y of this.pendingContainerFlushBuffers)y.depth>=h+w&&(y.depth-=w,y.keys.splice(h,w));this.unidentifiedValuesBuffer[h+w]&&(this.unidentifiedValuesBuffer[h]=this.unidentifiedValuesBuffer[h+w],delete this.unidentifiedValuesBuffer[h+w]),this.annotationsBuffer[h+w-1]&&(this.annotationsBuffer[h-1]||(this.annotationsBuffer[h-1]=[]),this.annotationsBuffer[h-1]=[...this.annotationsBuffer[h-1],...this.annotationsBuffer[h+w-1]],delete this.annotationsBuffer[h+w-1])}};return u.EXPAND_OPTIONS={1:{allowPrefixForcing:!1,allowPrefixNonGenDelims:!1,allowVocabRelativeToBase:!1},1.1:{allowPrefixForcing:!0,allowPrefixNonGenDelims:!1,allowVocabRelativeToBase:!0}},cK.ParsingContext=u,cK}var Rbe={};Object.defineProperty(Rbe,"__esModule",{value:!0});Rbe.EntryHandlerKeywordAnnotation=void 0;const phr=IS,YHt=a1;class bhr extends phr.EntryHandlerKeyword{constructor(){super("@annotation")}async handle(r,o,l,u,d,h){(typeof d=="string"||typeof d=="object"&&d["@value"])&&r.emitError(new YHt.ErrorCoded(`Found illegal annotation value: ${JSON.stringify(d)}`,YHt.ERROR_CODES.INVALID_ANNOTATION))}}Rbe.EntryHandlerKeywordAnnotation=bhr;var QHt;function gin(){if(QHt)return nK;QHt=1,Object.defineProperty(nK,"__esModule",{value:!0}),nK.JsonLdParser=void 0;const n=ucr,r=a1,o=Pdr,l=cbe,u=hin(),d=pbe,h=dbe(),w=bbe,v=gbe,y=wbe,E=mbe,A=ybe,C=vbe,R=_be,O=Ebe,M=hhr(),L=nO(),H=wrn,G=Rbe;let j=class kD extends o.Transform{constructor(te){super({readableObjectMode:!0}),te=te||{},this.options=te,this.parsingContext=new M.ParsingContext(Object.assign({parser:this},te)),this.util=new L.Util({dataFactory:te.dataFactory,parsingContext:this.parsingContext}),this.jsonParser=new n,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(te,pe,Le,Ee){let le,xe=["application/activity+json"];if(Ee&&Ee.wellKnownMediaTypes&&(xe=Ee.wellKnownMediaTypes),pe!=="application/ld+json"&&!xe.includes(pe)){if(pe!=="application/json"&&!pe.endsWith("+json"))throw new r.ErrorCoded(`Unsupported JSON-LD media type ${pe}`,r.ERROR_CODES.LOADING_DOCUMENT_FAILED);if(Le&&Le.has("Link")&&Le.forEach((ae,F)=>{if(F==="link"){const me=(0,H.parse)(ae);for(const ye of me.get("rel","http://www.w3.org/ns/json-ld#context")){if(le)throw new r.ErrorCoded("Multiple JSON-LD context link headers were found on "+te,r.ERROR_CODES.MULTIPLE_CONTEXT_LINK_HEADERS);le=ye.uri}}}),!le&&!(Ee!=null&&Ee.ignoreMissingContextLinkHeader))throw new r.ErrorCoded(`Missing context link header for media type ${pe} on ${te}`,r.ERROR_CODES.LOADING_DOCUMENT_FAILED)}let be;if(Le&&Le.has("Content-Type")){const ae=Le.get("Content-Type"),F=/; *profile=([^"]*)/.exec(ae);F&&F[1]==="http://www.w3.org/ns/json-ld#streaming"&&(be=!0)}return new kD(Object.assign({baseIRI:te,context:le,streamingProfile:be},Ee||{}))}import(te){if("pipe"in te){te.on("error",Le=>pe.emit("error",Le));const pe=te.pipe(new kD(this.options));return pe}else{const pe=new o.PassThrough({readableObjectMode:!0});te.on("error",Ee=>Le.emit("error",Ee)),te.on("data",Ee=>pe.push(Ee)),te.on("end",()=>pe.push(null));const Le=pe.pipe(new kD(this.options));return Le}}_transform(te,pe,Le){this.jsonParser.write(te),this.lastOnValueJob.then(()=>Le(),Ee=>Le(Ee))}async newOnValueJob(te,pe,Le,Ee){let le=!0;if(Ee&&Le1&&(F=this.parsingContext.validationStack[this.parsingContext.validationStack.length-1].property);for(let me=Math.max(1,this.parsingContext.validationStack.length-1);me=0?this.parsingContext.idStack[te-F-1]:[await this.util.getGraphContainerValue(pe,te)];if(me)for(const ye of me){this.parsingContext.emittedStack[te]=!0;for(const we of le)this.util.emitQuadChecked(te,ae,we.predicate,we.object,ye,we.reverse,we.isEmbedded)}else{const ye=this.parsingContext.getUnidentifiedGraphBufferSafe(te-await this.util.getDepthOffsetGraph(te,pe)-1);for(const we of le)we.reverse?ye.push({object:ae,predicate:we.predicate,subject:we.object,isEmbedded:we.isEmbedded}):ye.push({object:we.object,predicate:we.predicate,subject:ae,isEmbedded:we.isEmbedded})}}this.parsingContext.unidentifiedValuesBuffer.splice(te,1),this.parsingContext.literalStack.splice(te,1),this.parsingContext.jsonLiteralStack.splice(te,1)}const xe=this.parsingContext.unidentifiedGraphsBuffer[te];if(xe){for(const ae of Le){const F=te===1&&ae.termType==="BlankNode"&&!this.parsingContext.topLevelProperties?this.util.getDefaultGraph():ae;this.parsingContext.emittedStack[te]=!0;for(const me of xe)this.parsingContext.emitQuad(te,this.util.dataFactory.quad(me.subject,me.predicate,me.object,F))}this.parsingContext.unidentifiedGraphsBuffer.splice(te,1)}const be=this.parsingContext.annotationsBuffer[te];if(be){be.length>0&&te===1&&this.parsingContext.emitError(new r.ErrorCoded("Annotations can not be made on top-level nodes",r.ERROR_CODES.INVALID_ANNOTATION));const ae=this.parsingContext.getAnnotationsBufferSafe(te-1);for(const F of be)ae.push(F);delete this.parsingContext.annotationsBuffer[te]}}async validateKey(te,pe,Le){for(const Ee of kD.ENTRY_HANDLERS)if(await Ee.validate(this.parsingContext,this.util,te,pe,Le))return{valid:!0,property:Le||Ee.isPropertyHandler()};return{valid:!1,property:!1}}attachJsonParserListeners(){this.jsonParser.onValue=te=>{const pe=this.jsonParser.stack.length,Le=new Array(pe+1).fill(0).map((Ee,le)=>le===pe?this.jsonParser.key:this.jsonParser.stack[le].key);if(!this.isParsingContextInner(pe)){const Ee=()=>this.newOnValueJob(Le,te,pe,!0);if(!this.parsingContext.streamingProfile&&!this.parsingContext.contextTree.getContext(Le.slice(0,-1)))if(Le[pe]==="@context"){let le=this.contextJobs[pe];le||(le=this.contextJobs[pe]=[]),le.push(Ee)}else this.contextAwaitingJobs.push({job:Ee,keys:Le,depth:pe});else this.lastOnValueJob=this.lastOnValueJob.then(Ee);!this.parsingContext.streamingProfile&&pe===0&&(this.lastOnValueJob=this.lastOnValueJob.then(()=>this.executeBufferedJobs()))}},this.jsonParser.onError=te=>{this.emit("error",te)}}isParsingContextInner(te){for(let pe=te;pe>0;pe--)if(this.jsonParser.stack[pe-1].key==="@context")return!0;return!1}async executeBufferedJobs(){for(const pe of this.contextJobs)if(pe)for(const Le of pe)await Le();this.parsingContext.unaliasedKeywordCacheStack.splice(0);const te=[];for(const pe of this.contextAwaitingJobs)await this.util.unaliasKeyword(pe.keys[pe.depth],pe.keys,pe.depth,!0)==="@type"||typeof pe.keys[pe.depth]=="number"&&await this.util.unaliasKeyword(pe.keys[pe.depth-1],pe.keys,pe.depth-1,!0)==="@type"?this.typeJobs.push({job:pe.job,keys:pe.keys.slice(0,pe.keys.length-1)}):te.push(pe);for(const pe of te){if(this.typeJobs.length>0){const Le=[],Ee=[];for(let be=0;bebe.keys.length-ae.keys.length);for(const be of le)await be.job();const xe=Ee.sort().reverse();for(const be of xe)this.typeJobs.splice(be,1)}await pe.job()}}};return j.DEFAULT_PROCESSING_MODE="1.1",j.ENTRY_HANDLERS=[new l.EntryHandlerArrayValue,new w.EntryHandlerKeywordContext,new y.EntryHandlerKeywordId,new E.EntryHandlerKeywordIncluded,new v.EntryHandlerKeywordGraph,new A.EntryHandlerKeywordNest,new C.EntryHandlerKeywordType,new O.EntryHandlerKeywordValue,new G.EntryHandlerKeywordAnnotation,new u.EntryHandlerContainer,new R.EntryHandlerKeywordUnknownFallback,new h.EntryHandlerPredicate,new d.EntryHandlerInvalidFallback],nK.JsonLdParser=j,nK}(function(n){var r=fu&&fu.__createBinding||(Object.create?function(l,u,d,h){h===void 0&&(h=d);var w=Object.getOwnPropertyDescriptor(u,d);(!w||("get"in w?!u.__esModule:w.writable||w.configurable))&&(w={enumerable:!0,get:function(){return u[d]}}),Object.defineProperty(l,h,w)}:function(l,u,d,h){h===void 0&&(h=d),l[h]=u[d]}),o=fu&&fu.__exportStar||function(l,u){for(var d in l)d!=="default"&&!Object.prototype.hasOwnProperty.call(u,d)&&r(u,l,d)};Object.defineProperty(n,"__esModule",{value:!0}),o(gin(),n)})(crn);var win={exports:{}},VNe={exports:{}},jf={ArrayIsArray(n){return Array.isArray(n)},ArrayPrototypeIncludes(n,r){return n.includes(r)},ArrayPrototypeIndexOf(n,r){return n.indexOf(r)},ArrayPrototypeJoin(n,r){return n.join(r)},ArrayPrototypeMap(n,r){return n.map(r)},ArrayPrototypePop(n,r){return n.pop(r)},ArrayPrototypePush(n,r){return n.push(r)},ArrayPrototypeSlice(n,r,o){return n.slice(r,o)},Error,FunctionPrototypeCall(n,r,...o){return n.call(r,...o)},FunctionPrototypeSymbolHasInstance(n,r){return Function.prototype[Symbol.hasInstance].call(n,r)},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(n,r){return Object.defineProperties(n,r)},ObjectDefineProperty(n,r,o){return Object.defineProperty(n,r,o)},ObjectGetOwnPropertyDescriptor(n,r){return Object.getOwnPropertyDescriptor(n,r)},ObjectKeys(n){return Object.keys(n)},ObjectSetPrototypeOf(n,r){return Object.setPrototypeOf(n,r)},Promise,PromisePrototypeCatch(n,r){return n.catch(r)},PromisePrototypeThen(n,r,o){return n.then(r,o)},PromiseReject(n){return Promise.reject(n)},PromiseResolve(n){return Promise.resolve(n)},ReflectApply:Reflect.apply,RegExpPrototypeTest(n,r){return n.test(r)},SafeSet:Set,String,StringPrototypeSlice(n,r,o){return n.slice(r,o)},StringPrototypeToLowerCase(n){return n.toLowerCase()},StringPrototypeToUpperCase(n){return n.toUpperCase()},StringPrototypeTrim(n){return n.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(n,r,o){return n.set(r,o)},Boolean,Uint8Array},min={exports:{}};(function(n){const r=Kr,{kResistStopPropagation:o,SymbolDispose:l}=jf,u=globalThis.AbortSignal||$o().AbortSignal,d=globalThis.AbortController||$o().AbortController,h=Object.getPrototypeOf(async function(){}).constructor,w=globalThis.Blob||r.Blob,v=typeof w<"u"?function(R){return R instanceof w}:function(R){return!1},y=(C,R)=>{if(C!==void 0&&(C===null||typeof C!="object"||!("aborted"in C)))throw new ERR_INVALID_ARG_TYPE(R,"AbortSignal",C)},E=(C,R)=>{if(typeof C!="function")throw new ERR_INVALID_ARG_TYPE(R,"Function",C)};class A extends Error{constructor(R){if(!Array.isArray(R))throw new TypeError(`Expected input to be an Array, got ${typeof R}`);let O="";for(let M=0;M{C=M,R=L}),resolve:C,reject:R}},promisify(C){return new Promise((R,O)=>{C((M,...L)=>M?O(M):R(...L))})},debuglog(){return function(){}},format(C,...R){return C.replace(/%([sdifj])/g,function(...[O,M]){const L=R.shift();return M==="f"?L.toFixed(6):M==="j"?JSON.stringify(L):M==="s"&&typeof L=="object"?`${L.constructor!==Object?L.constructor.name:""} {}`.trim():L.toString()})},inspect(C){switch(typeof C){case"string":if(C.includes("'"))if(C.includes('"')){if(!C.includes("`")&&!C.includes("${"))return`\`${C}\``}else return`"${C}"`;return`'${C}'`;case"number":return isNaN(C)?"NaN":Object.is(C,-0)?String(C):C;case"bigint":return`${String(C)}n`;case"boolean":case"undefined":return String(C);case"object":return"{}"}},types:{isAsyncFunction(C){return C instanceof h},isArrayBufferView(C){return ArrayBuffer.isView(C)}},isBlob:v,deprecate(C,R){return C},addAbortListener:Ns.addAbortListener||function(R,O){if(R===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",R);y(R,"signal"),E(O,"listener");let M;return R.aborted?queueMicrotask(()=>O()):(R.addEventListener("abort",O,{__proto__:null,once:!0,[o]:!0}),M=()=>{R.removeEventListener("abort",O)}),{__proto__:null,[l](){var L;(L=M)===null||L===void 0||L()}}},AbortSignalAny:u.any||function(R){if(R.length===1)return R[0];const O=new d,M=()=>O.abort();return R.forEach(L=>{y(L,"signals"),L.addEventListener("abort",M,{once:!0})}),O.signal.addEventListener("abort",()=>{R.forEach(L=>L.removeEventListener("abort",M))},{once:!0}),O.signal}},n.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(min);var u1=min.exports,PUe={};const{format:ghr,inspect:ihe,AggregateError:whr}=u1,mhr=globalThis.AggregateError||whr,yhr=Symbol("kIsNodeError"),vhr=["string","function","number","object","Function","Object","boolean","bigint","symbol"],_hr=/^([A-Z][a-z0-9]*)+$/,Shr="__node_internal_",xbe={};function sP(n,r){if(!n)throw new xbe.ERR_INTERNAL_ASSERTION(r)}function ZHt(n){let r="",o=n.length;const l=n[0]==="-"?1:0;for(;o>=l+4;o-=3)r=`_${n.slice(o-3,o)}${r}`;return`${n.slice(0,o)}${r}`}function Ehr(n,r,o){if(typeof r=="function")return sP(r.length<=o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${r.length}).`),r(...o);const l=(r.match(/%[dfijoOs]/g)||[]).length;return sP(l===o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${l}).`),o.length===0?r:ghr(r,...o)}function Yp(n,r,o){o||(o=Error);class l extends o{constructor(...d){super(Ehr(n,r,d))}toString(){return`${this.name} [${n}]: ${this.message}`}}Object.defineProperties(l.prototype,{name:{value:o.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${n}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),l.prototype.code=n,l.prototype[yhr]=!0,xbe[n]=l}function eUt(n){const r=Shr+n.name;return Object.defineProperty(n,"name",{value:r}),n}function khr(n,r){if(n&&r&&n!==r){if(Array.isArray(r.errors))return r.errors.push(n),r;const o=new mhr([r,n],r.message);return o.code=r.code,o}return n||r}let Rhr=class extends Error{constructor(r="The operation was aborted",o=void 0){if(o!==void 0&&typeof o!="object")throw new xbe.ERR_INVALID_ARG_TYPE("options","Object",o);super(r,o),this.code="ABORT_ERR",this.name="AbortError"}};Yp("ERR_ASSERTION","%s",Error);Yp("ERR_INVALID_ARG_TYPE",(n,r,o)=>{sP(typeof n=="string","'name' must be a string"),Array.isArray(r)||(r=[r]);let l="The ";n.endsWith(" argument")?l+=`${n} `:l+=`"${n}" ${n.includes(".")?"property":"argument"} `,l+="must be ";const u=[],d=[],h=[];for(const v of r)sP(typeof v=="string","All expected entries have to be of type string"),vhr.includes(v)?u.push(v.toLowerCase()):_hr.test(v)?d.push(v):(sP(v!=="object",'The value "object" should be written as "Object"'),h.push(v));if(d.length>0){const v=u.indexOf("object");v!==-1&&(u.splice(u,v,1),d.push("Object"))}if(u.length>0){switch(u.length){case 1:l+=`of type ${u[0]}`;break;case 2:l+=`one of type ${u[0]} or ${u[1]}`;break;default:{const v=u.pop();l+=`one of type ${u.join(", ")}, or ${v}`}}(d.length>0||h.length>0)&&(l+=" or ")}if(d.length>0){switch(d.length){case 1:l+=`an instance of ${d[0]}`;break;case 2:l+=`an instance of ${d[0]} or ${d[1]}`;break;default:{const v=d.pop();l+=`an instance of ${d.join(", ")}, or ${v}`}}h.length>0&&(l+=" or ")}switch(h.length){case 0:break;case 1:h[0].toLowerCase()!==h[0]&&(l+="an "),l+=`${h[0]}`;break;case 2:l+=`one of ${h[0]} or ${h[1]}`;break;default:{const v=h.pop();l+=`one of ${h.join(", ")}, or ${v}`}}if(o==null)l+=`. Received ${o}`;else if(typeof o=="function"&&o.name)l+=`. Received function ${o.name}`;else if(typeof o=="object"){var w;if((w=o.constructor)!==null&&w!==void 0&&w.name)l+=`. Received an instance of ${o.constructor.name}`;else{const v=ihe(o,{depth:-1});l+=`. Received ${v}`}}else{let v=ihe(o,{colors:!1});v.length>25&&(v=`${v.slice(0,25)}...`),l+=`. Received type ${typeof o} (${v})`}return l},TypeError);Yp("ERR_INVALID_ARG_VALUE",(n,r,o="is invalid")=>{let l=ihe(r);return l.length>128&&(l=l.slice(0,128)+"..."),`The ${n.includes(".")?"property":"argument"} '${n}' ${o}. Received ${l}`},TypeError);Yp("ERR_INVALID_RETURN_VALUE",(n,r,o)=>{var l;const u=o!=null&&(l=o.constructor)!==null&&l!==void 0&&l.name?`instance of ${o.constructor.name}`:`type ${typeof o}`;return`Expected ${n} to be returned from the "${r}" function but got ${u}.`},TypeError);Yp("ERR_MISSING_ARGS",(...n)=>{sP(n.length>0,"At least one arg needs to be specified");let r;const o=n.length;switch(n=(Array.isArray(n)?n:[n]).map(l=>`"${l}"`).join(" or "),o){case 1:r+=`The ${n[0]} argument`;break;case 2:r+=`The ${n[0]} and ${n[1]} arguments`;break;default:{const l=n.pop();r+=`The ${n.join(", ")}, and ${l} arguments`}break}return`${r} must be specified`},TypeError);Yp("ERR_OUT_OF_RANGE",(n,r,o)=>{sP(r,'Missing "range" argument');let l;return Number.isInteger(o)&&Math.abs(o)>2**32?l=ZHt(String(o)):typeof o=="bigint"?(l=String(o),(o>2n**32n||o<-(2n**32n))&&(l=ZHt(l)),l+="n"):l=ihe(o),`The value of "${n}" is out of range. It must be ${r}. Received ${l}`},RangeError);Yp("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);Yp("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);Yp("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);Yp("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);Yp("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);Yp("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Yp("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);Yp("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);Yp("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);Yp("ERR_STREAM_WRITE_AFTER_END","write after end",Error);Yp("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var $0={AbortError:Rhr,aggregateTwoErrors:eUt(khr),hideStackFrames:eUt,codes:xbe};const{ArrayIsArray:OUe,ArrayPrototypeIncludes:yin,ArrayPrototypeJoin:vin,ArrayPrototypeMap:xhr,NumberIsInteger:NUe,NumberIsNaN:Chr,NumberMAX_SAFE_INTEGER:Ahr,NumberMIN_SAFE_INTEGER:Thr,NumberParseInt:$hr,ObjectPrototypeHasOwnProperty:Ihr,RegExpPrototypeExec:_in,String:Phr,StringPrototypeToUpperCase:Ohr,StringPrototypeTrim:Nhr}=jf,{hideStackFrames:bv,codes:{ERR_SOCKET_BAD_PORT:Mhr,ERR_INVALID_ARG_TYPE:qb,ERR_INVALID_ARG_VALUE:yj,ERR_OUT_OF_RANGE:AP,ERR_UNKNOWN_SIGNAL:tUt}}=$0,{normalizeEncoding:Dhr}=u1,{isAsyncFunction:Lhr,isArrayBufferView:jhr}=u1.types,nUt={};function Fhr(n){return n===(n|0)}function Bhr(n){return n===n>>>0}const Whr=/^[0-7]+$/,Hhr="must be a 32-bit unsigned integer or an octal string";function Uhr(n,r,o){if(typeof n>"u"&&(n=o),typeof n=="string"){if(_in(Whr,n)===null)throw new yj(r,n,Hhr);n=$hr(n,8)}return Sin(n,r),n}const Ghr=bv((n,r,o=Thr,l=Ahr)=>{if(typeof n!="number")throw new qb(r,"number",n);if(!NUe(n))throw new AP(r,"an integer",n);if(nl)throw new AP(r,`>= ${o} && <= ${l}`,n)}),Vhr=bv((n,r,o=-2147483648,l=2147483647)=>{if(typeof n!="number")throw new qb(r,"number",n);if(!NUe(n))throw new AP(r,"an integer",n);if(nl)throw new AP(r,`>= ${o} && <= ${l}`,n)}),Sin=bv((n,r,o=!1)=>{if(typeof n!="number")throw new qb(r,"number",n);if(!NUe(n))throw new AP(r,"an integer",n);const l=o?1:0,u=4294967295;if(nu)throw new AP(r,`>= ${l} && <= ${u}`,n)});function MUe(n,r){if(typeof n!="string")throw new qb(r,"string",n)}function zhr(n,r,o=void 0,l){if(typeof n!="number")throw new qb(r,"number",n);if(o!=null&&nl||(o!=null||l!=null)&&Chr(n))throw new AP(r,`${o!=null?`>= ${o}`:""}${o!=null&&l!=null?" && ":""}${l!=null?`<= ${l}`:""}`,n)}const Khr=bv((n,r,o)=>{if(!yin(o,n)){const u="must be one of: "+vin(xhr(o,d=>typeof d=="string"?`'${d}'`:Phr(d)),", ");throw new yj(r,n,u)}});function Ein(n,r){if(typeof n!="boolean")throw new qb(r,"boolean",n)}function zNe(n,r,o){return n==null||!Ihr(n,r)?o:n[r]}const qhr=bv((n,r,o=null)=>{const l=zNe(o,"allowArray",!1),u=zNe(o,"allowFunction",!1);if(!zNe(o,"nullable",!1)&&n===null||!l&&OUe(n)||typeof n!="object"&&(!u||typeof n!="function"))throw new qb(r,"Object",n)}),Xhr=bv((n,r)=>{if(n!=null&&typeof n!="object"&&typeof n!="function")throw new qb(r,"a dictionary",n)}),Cbe=bv((n,r,o=0)=>{if(!OUe(n))throw new qb(r,"Array",n);if(n.length{if(!jhr(n))throw new qb(r,["Buffer","TypedArray","DataView"],n)});function tpr(n,r){const o=Dhr(r),l=n.length;if(o==="hex"&&l%2!==0)throw new yj("encoding",r,`is invalid for data of length ${l}`)}function npr(n,r="Port",o=!0){if(typeof n!="number"&&typeof n!="string"||typeof n=="string"&&Nhr(n).length===0||+n!==+n>>>0||n>65535||n===0&&!o)throw new Mhr(r,n,o);return n|0}const kin=bv((n,r)=>{if(n!==void 0&&(n===null||typeof n!="object"||!("aborted"in n)))throw new qb(r,"AbortSignal",n)}),rpr=bv((n,r)=>{if(typeof n!="function")throw new qb(r,"Function",n)}),ipr=bv((n,r)=>{if(typeof n!="function"||Lhr(n))throw new qb(r,"Function",n)}),opr=bv((n,r)=>{if(n!==void 0)throw new qb(r,"undefined",n)});function spr(n,r,o){if(!yin(o,n))throw new qb(r,`('${vin(o,"|")}')`,n)}const lpr=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function rUt(n,r){if(typeof n>"u"||!_in(lpr,n))throw new yj(r,n,'must be an array or string of format "; rel=preload; as=style"')}function apr(n){if(typeof n=="string")return rUt(n,"hints"),n;if(OUe(n)){const r=n.length;let o="";if(r===0)return o;for(let l=0;l; rel=preload; as=style"')}var RJ={isInt32:Fhr,isUint32:Bhr,parseFileMode:Uhr,validateArray:Cbe,validateStringArray:Jhr,validateBooleanArray:Yhr,validateAbortSignalArray:Qhr,validateBoolean:Ein,validateBuffer:epr,validateDictionary:Xhr,validateEncoding:tpr,validateFunction:rpr,validateInt32:Vhr,validateInteger:Ghr,validateNumber:zhr,validateObject:qhr,validateOneOf:Khr,validatePlainFunction:ipr,validatePort:npr,validateSignalName:Zhr,validateString:MUe,validateUint32:Sin,validateUndefined:opr,validateUnion:spr,validateAbortSignal:kin,validateLinkHeaderValue:apr},DUe={exports:{}};const{SymbolAsyncIterator:iUt,SymbolIterator:oUt,SymbolFor:rO}=jf,Rin=rO("nodejs.stream.destroyed"),xin=rO("nodejs.stream.errored"),Vje=rO("nodejs.stream.readable"),zje=rO("nodejs.stream.writable"),Cin=rO("nodejs.stream.disturbed"),cpr=rO("nodejs.webstream.isClosedPromise"),upr=rO("nodejs.webstream.controllerErrorFunction");function Abe(n,r=!1){var o;return!!(n&&typeof n.pipe=="function"&&typeof n.on=="function"&&(!r||typeof n.pause=="function"&&typeof n.resume=="function")&&(!n._writableState||((o=n._readableState)===null||o===void 0?void 0:o.readable)!==!1)&&(!n._writableState||n._readableState))}function Tbe(n){var r;return!!(n&&typeof n.write=="function"&&typeof n.on=="function"&&(!n._readableState||((r=n._writableState)===null||r===void 0?void 0:r.writable)!==!1))}function fpr(n){return!!(n&&typeof n.pipe=="function"&&n._readableState&&typeof n.on=="function"&&typeof n.write=="function")}function mk(n){return n&&(n._readableState||n._writableState||typeof n.write=="function"&&typeof n.on=="function"||typeof n.pipe=="function"&&typeof n.on=="function")}function Ain(n){return!!(n&&!mk(n)&&typeof n.pipeThrough=="function"&&typeof n.getReader=="function"&&typeof n.cancel=="function")}function Tin(n){return!!(n&&!mk(n)&&typeof n.getWriter=="function"&&typeof n.abort=="function")}function $in(n){return!!(n&&!mk(n)&&typeof n.readable=="object"&&typeof n.writable=="object")}function dpr(n){return Ain(n)||Tin(n)||$in(n)}function hpr(n,r){return n==null?!1:r===!0?typeof n[iUt]=="function":r===!1?typeof n[oUt]=="function":typeof n[iUt]=="function"||typeof n[oUt]=="function"}function $be(n){if(!mk(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!!(n.destroyed||n[Rin]||l!=null&&l.destroyed)}function Iin(n){if(!Tbe(n))return null;if(n.writableEnded===!0)return!0;const r=n._writableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function ppr(n,r){if(!Tbe(n))return null;if(n.writableFinished===!0)return!0;const o=n._writableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.finished)!="boolean"?null:!!(o.finished||r===!1&&o.ended===!0&&o.length===0)}function bpr(n){if(!Abe(n))return null;if(n.readableEnded===!0)return!0;const r=n._readableState;return!r||r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function Pin(n,r){if(!Abe(n))return null;const o=n._readableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.endEmitted)!="boolean"?null:!!(o.endEmitted||r===!1&&o.ended===!0&&o.length===0)}function Oin(n){return n&&n[Vje]!=null?n[Vje]:typeof(n==null?void 0:n.readable)!="boolean"?null:$be(n)?!1:Abe(n)&&n.readable&&!Pin(n)}function Nin(n){return n&&n[zje]!=null?n[zje]:typeof(n==null?void 0:n.writable)!="boolean"?null:$be(n)?!1:Tbe(n)&&n.writable&&!Iin(n)}function gpr(n,r){return mk(n)?$be(n)?!0:!((r==null?void 0:r.readable)!==!1&&Oin(n)||(r==null?void 0:r.writable)!==!1&&Nin(n)):null}function wpr(n){var r,o;return mk(n)?n.writableErrored?n.writableErrored:(r=(o=n._writableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function mpr(n){var r,o;return mk(n)?n.readableErrored?n.readableErrored:(r=(o=n._readableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function ypr(n){if(!mk(n))return null;if(typeof n.closed=="boolean")return n.closed;const r=n._writableState,o=n._readableState;return typeof(r==null?void 0:r.closed)=="boolean"||typeof(o==null?void 0:o.closed)=="boolean"?(r==null?void 0:r.closed)||(o==null?void 0:o.closed):typeof n._closed=="boolean"&&Min(n)?n._closed:null}function Min(n){return typeof n._closed=="boolean"&&typeof n._defaultKeepAlive=="boolean"&&typeof n._removedConnection=="boolean"&&typeof n._removedContLen=="boolean"}function Din(n){return typeof n._sent100=="boolean"&&Min(n)}function vpr(n){var r;return typeof n._consuming=="boolean"&&typeof n._dumped=="boolean"&&((r=n.req)===null||r===void 0?void 0:r.upgradeOrConnect)===void 0}function _pr(n){if(!mk(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!l&&Din(n)||!!(l&&l.autoDestroy&&l.emitClose&&l.closed===!1)}function Spr(n){var r;return!!(n&&((r=n[Cin])!==null&&r!==void 0?r:n.readableDidRead||n.readableAborted))}function Epr(n){var r,o,l,u,d,h,w,v,y,E;return!!(n&&((r=(o=(l=(u=(d=(h=n[xin])!==null&&h!==void 0?h:n.readableErrored)!==null&&d!==void 0?d:n.writableErrored)!==null&&u!==void 0?u:(w=n._readableState)===null||w===void 0?void 0:w.errorEmitted)!==null&&l!==void 0?l:(v=n._writableState)===null||v===void 0?void 0:v.errorEmitted)!==null&&o!==void 0?o:(y=n._readableState)===null||y===void 0?void 0:y.errored)!==null&&r!==void 0?r:!((E=n._writableState)===null||E===void 0)&&E.errored))}var Cx={isDestroyed:$be,kIsDestroyed:Rin,isDisturbed:Spr,kIsDisturbed:Cin,isErrored:Epr,kIsErrored:xin,isReadable:Oin,kIsReadable:Vje,kIsClosedPromise:cpr,kControllerErrorFunction:upr,kIsWritable:zje,isClosed:ypr,isDuplexNodeStream:fpr,isFinished:gpr,isIterable:hpr,isReadableNodeStream:Abe,isReadableStream:Ain,isReadableEnded:bpr,isReadableFinished:Pin,isReadableErrored:mpr,isNodeStream:mk,isWebStream:dpr,isWritable:Nin,isWritableNodeStream:Tbe,isWritableStream:Tin,isWritableEnded:Iin,isWritableFinished:ppr,isWritableErrored:wpr,isServerRequest:vpr,isServerResponse:Din,willEmitClose:_pr,isTransformStream:$in};const q4=ui,{AbortError:Lin,codes:kpr}=$0,{ERR_INVALID_ARG_TYPE:Rpr,ERR_STREAM_PREMATURE_CLOSE:sUt}=kpr,{kEmptyObject:Kje,once:qje}=u1,{validateAbortSignal:xpr,validateFunction:Cpr,validateObject:Apr,validateBoolean:Tpr}=RJ,{Promise:$pr,PromisePrototypeThen:Ipr,SymbolDispose:jin}=jf,{isClosed:Ppr,isReadable:lUt,isReadableNodeStream:KNe,isReadableStream:Opr,isReadableFinished:aUt,isReadableErrored:cUt,isWritable:uUt,isWritableNodeStream:fUt,isWritableStream:Npr,isWritableFinished:dUt,isWritableErrored:hUt,isNodeStream:Mpr,willEmitClose:Dpr,kIsClosedPromise:Lpr}=Cx;let lL;function jpr(n){return n.setHeader&&typeof n.abort=="function"}const Xje=()=>{};function Fin(n,r,o){var l,u;if(arguments.length===2?(o=r,r=Kje):r==null?r=Kje:Apr(r,"options"),Cpr(o,"callback"),xpr(r.signal,"options.signal"),o=qje(o),Opr(n)||Npr(n))return Fpr(n,r,o);if(!Mpr(n))throw new Rpr("stream",["ReadableStream","WritableStream","Stream"],n);const d=(l=r.readable)!==null&&l!==void 0?l:KNe(n),h=(u=r.writable)!==null&&u!==void 0?u:fUt(n),w=n._writableState,v=n._readableState,y=()=>{n.writable||C()};let E=Dpr(n)&&KNe(n)===d&&fUt(n)===h,A=dUt(n,!1);const C=()=>{A=!0,n.destroyed&&(E=!1),!(E&&(!n.readable||d))&&(!d||R)&&o.call(n)};let R=aUt(n,!1);const O=()=>{R=!0,n.destroyed&&(E=!1),!(E&&(!n.writable||h))&&(!h||A)&&o.call(n)},M=te=>{o.call(n,te)};let L=Ppr(n);const H=()=>{L=!0;const te=hUt(n)||cUt(n);if(te&&typeof te!="boolean")return o.call(n,te);if(d&&!R&&KNe(n,!0)&&!aUt(n,!1))return o.call(n,new sUt);if(h&&!A&&!dUt(n,!1))return o.call(n,new sUt);o.call(n)},G=()=>{L=!0;const te=hUt(n)||cUt(n);if(te&&typeof te!="boolean")return o.call(n,te);o.call(n)},j=()=>{n.req.on("finish",C)};jpr(n)?(n.on("complete",C),E||n.on("abort",H),n.req?j():n.on("request",j)):h&&!w&&(n.on("end",y),n.on("close",y)),!E&&typeof n.aborted=="boolean"&&n.on("aborted",H),n.on("end",O),n.on("finish",C),r.error!==!1&&n.on("error",M),n.on("close",H),L?q4.nextTick(H):w!=null&&w.errorEmitted||v!=null&&v.errorEmitted?E||q4.nextTick(G):(!d&&(!E||lUt(n))&&(A||uUt(n)===!1)||!h&&(!E||uUt(n))&&(R||lUt(n)===!1)||v&&n.req&&n.aborted)&&q4.nextTick(G);const Q=()=>{o=Xje,n.removeListener("aborted",H),n.removeListener("complete",C),n.removeListener("abort",H),n.removeListener("request",j),n.req&&n.req.removeListener("finish",C),n.removeListener("end",y),n.removeListener("close",y),n.removeListener("finish",C),n.removeListener("end",O),n.removeListener("error",M),n.removeListener("close",H)};if(r.signal&&!L){const te=()=>{const pe=o;Q(),pe.call(n,new Lin(void 0,{cause:r.signal.reason}))};if(r.signal.aborted)q4.nextTick(te);else{lL=lL||u1.addAbortListener;const pe=lL(r.signal,te),Le=o;o=qje((...Ee)=>{pe[jin](),Le.apply(n,Ee)})}}return Q}function Fpr(n,r,o){let l=!1,u=Xje;if(r.signal)if(u=()=>{l=!0,o.call(n,new Lin(void 0,{cause:r.signal.reason}))},r.signal.aborted)q4.nextTick(u);else{lL=lL||u1.addAbortListener;const h=lL(r.signal,u),w=o;o=qje((...v)=>{h[jin](),w.apply(n,v)})}const d=(...h)=>{l||q4.nextTick(()=>o.apply(n,h))};return Ipr(n[Lpr].promise,d,d),Xje}function Bpr(n,r){var o;let l=!1;return r===null&&(r=Kje),(o=r)!==null&&o!==void 0&&o.cleanup&&(Tpr(r.cleanup,"cleanup"),l=r.cleanup),new $pr((u,d)=>{const h=Fin(n,r,w=>{l&&h(),w?d(w):u()})})}DUe.exports=Fin;DUe.exports.finished=Bpr;var BT=DUe.exports;const GE=ui,{aggregateTwoErrors:Wpr,codes:{ERR_MULTIPLE_CALLBACK:Hpr},AbortError:Upr}=$0,{Symbol:Bin}=jf,{kIsDestroyed:Gpr,isDestroyed:Vpr,isFinished:zpr,isServerRequest:Kpr}=Cx,Win=Bin("kDestroy"),Jje=Bin("kConstruct");function Hin(n,r,o){n&&(n.stack,r&&!r.errored&&(r.errored=n),o&&!o.errored&&(o.errored=n))}function qpr(n,r){const o=this._readableState,l=this._writableState,u=l||o;return l!=null&&l.destroyed||o!=null&&o.destroyed?(typeof r=="function"&&r(),this):(Hin(n,l,o),l&&(l.destroyed=!0),o&&(o.destroyed=!0),u.constructed?pUt(this,n,r):this.once(Win,function(d){pUt(this,Wpr(d,n),r)}),this)}function pUt(n,r,o){let l=!1;function u(d){if(l)return;l=!0;const h=n._readableState,w=n._writableState;Hin(d,w,h),w&&(w.closed=!0),h&&(h.closed=!0),typeof o=="function"&&o(d),d?GE.nextTick(Xpr,n,d):GE.nextTick(Uin,n)}try{n._destroy(r||null,u)}catch(d){u(d)}}function Xpr(n,r){Yje(n,r),Uin(n)}function Uin(n){const r=n._readableState,o=n._writableState;o&&(o.closeEmitted=!0),r&&(r.closeEmitted=!0),(o!=null&&o.emitClose||r!=null&&r.emitClose)&&n.emit("close")}function Yje(n,r){const o=n._readableState,l=n._writableState;l!=null&&l.errorEmitted||o!=null&&o.errorEmitted||(l&&(l.errorEmitted=!0),o&&(o.errorEmitted=!0),n.emit("error",r))}function Jpr(){const n=this._readableState,r=this._writableState;n&&(n.constructed=!0,n.closed=!1,n.closeEmitted=!1,n.destroyed=!1,n.errored=null,n.errorEmitted=!1,n.reading=!1,n.ended=n.readable===!1,n.endEmitted=n.readable===!1),r&&(r.constructed=!0,r.destroyed=!1,r.closed=!1,r.closeEmitted=!1,r.errored=null,r.errorEmitted=!1,r.finalCalled=!1,r.prefinished=!1,r.ended=r.writable===!1,r.ending=r.writable===!1,r.finished=r.writable===!1)}function Qje(n,r,o){const l=n._readableState,u=n._writableState;if(u!=null&&u.destroyed||l!=null&&l.destroyed)return this;l!=null&&l.autoDestroy||u!=null&&u.autoDestroy?n.destroy(r):r&&(r.stack,u&&!u.errored&&(u.errored=r),l&&!l.errored&&(l.errored=r),o?GE.nextTick(Yje,n,r):Yje(n,r))}function Ypr(n,r){if(typeof n._construct!="function")return;const o=n._readableState,l=n._writableState;o&&(o.constructed=!1),l&&(l.constructed=!1),n.once(Jje,r),!(n.listenerCount(Jje)>1)&&GE.nextTick(Qpr,n)}function Qpr(n){let r=!1;function o(l){if(r){Qje(n,l??new Hpr);return}r=!0;const u=n._readableState,d=n._writableState,h=d||u;u&&(u.constructed=!0),d&&(d.constructed=!0),h.destroyed?n.emit(Win,l):l?Qje(n,l,!0):GE.nextTick(Zpr,n)}try{n._construct(l=>{GE.nextTick(o,l)})}catch(l){GE.nextTick(o,l)}}function Zpr(n){n.emit(Jje)}function bUt(n){return(n==null?void 0:n.setHeader)&&typeof n.abort=="function"}function Gin(n){n.emit("close")}function ebr(n,r){n.emit("error",r),GE.nextTick(Gin,n)}function tbr(n,r){!n||Vpr(n)||(!r&&!zpr(n)&&(r=new Upr),Kpr(n)?(n.socket=null,n.destroy(r)):bUt(n)?n.abort():bUt(n.req)?n.req.abort():typeof n.destroy=="function"?n.destroy(r):typeof n.close=="function"?n.close():r?GE.nextTick(ebr,n,r):GE.nextTick(Gin,n),n.destroyed||(n[Gpr]=!0))}var vj={construct:Ypr,destroyer:tbr,destroy:qpr,undestroy:Jpr,errorOrDestroy:Qje};const{ArrayIsArray:nbr,ObjectSetPrototypeOf:Vin}=jf,{EventEmitter:Ibe}=Ns;function Pbe(n){Ibe.call(this,n)}Vin(Pbe.prototype,Ibe.prototype);Vin(Pbe,Ibe);Pbe.prototype.pipe=function(n,r){const o=this;function l(E){n.writable&&n.write(E)===!1&&o.pause&&o.pause()}o.on("data",l);function u(){o.readable&&o.resume&&o.resume()}n.on("drain",u),!n._isStdio&&(!r||r.end!==!1)&&(o.on("end",h),o.on("close",w));let d=!1;function h(){d||(d=!0,n.end())}function w(){d||(d=!0,typeof n.destroy=="function"&&n.destroy())}function v(E){y(),Ibe.listenerCount(this,"error")===0&&this.emit("error",E)}Zje(o,"error",v),Zje(n,"error",v);function y(){o.removeListener("data",l),n.removeListener("drain",u),o.removeListener("end",h),o.removeListener("close",w),o.removeListener("error",v),n.removeListener("error",v),o.removeListener("end",y),o.removeListener("close",y),n.removeListener("close",y)}return o.on("end",y),o.on("close",y),n.on("close",y),n.emit("pipe",o),n};function Zje(n,r,o){if(typeof n.prependListener=="function")return n.prependListener(r,o);!n._events||!n._events[r]?n.on(r,o):nbr(n._events[r])?n._events[r].unshift(o):n._events[r]=[o,n._events[r]]}var LUe={Stream:Pbe,prependListener:Zje},zin={exports:{}};(function(n){const{SymbolDispose:r}=jf,{AbortError:o,codes:l}=$0,{isNodeStream:u,isWebStream:d,kControllerErrorFunction:h}=Cx,w=BT,{ERR_INVALID_ARG_TYPE:v}=l;let y;const E=(A,C)=>{if(typeof A!="object"||!("aborted"in A))throw new v(C,"AbortSignal",A)};n.exports.addAbortSignal=function(C,R){if(E(C,"signal"),!u(R)&&!d(R))throw new v("stream",["ReadableStream","WritableStream","Stream"],R);return n.exports.addAbortSignalNoValidate(C,R)},n.exports.addAbortSignalNoValidate=function(A,C){if(typeof A!="object"||!("aborted"in A))return C;const R=u(C)?()=>{C.destroy(new o(void 0,{cause:A.reason}))}:()=>{C[h](new o(void 0,{cause:A.reason}))};if(A.aborted)R();else{y=y||u1.addAbortListener;const O=y(A,R);w(C,O[r])}return C}})(zin);var Obe=zin.exports;const{StringPrototypeSlice:gUt,SymbolIterator:rbr,TypedArrayPrototypeSet:vue,Uint8Array:ibr}=jf,{Buffer:qNe}=Kr,{inspect:obr}=u1;var sbr=class{constructor(){this.head=null,this.tail=null,this.length=0}push(r){const o={data:r,next:null};this.length>0?this.tail.next=o:this.head=o,this.tail=o,++this.length}unshift(r){const o={data:r,next:this.head};this.length===0&&(this.tail=o),this.head=o,++this.length}shift(){if(this.length===0)return;const r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}clear(){this.head=this.tail=null,this.length=0}join(r){if(this.length===0)return"";let o=this.head,l=""+o.data;for(;(o=o.next)!==null;)l+=r+o.data;return l}concat(r){if(this.length===0)return qNe.alloc(0);const o=qNe.allocUnsafe(r>>>0);let l=this.head,u=0;for(;l;)vue(o,l.data,u),u+=l.data.length,l=l.next;return o}consume(r,o){const l=this.head.data;if(rd.length)o+=d,r-=d.length;else{r===d.length?(o+=d,++u,l.next?this.head=l.next:this.head=this.tail=null):(o+=gUt(d,0,r),this.head=l,l.data=gUt(d,r));break}++u}while((l=l.next)!==null);return this.length-=u,o}_getBuffer(r){const o=qNe.allocUnsafe(r),l=r;let u=this.head,d=0;do{const h=u.data;if(r>h.length)vue(o,h,l-r),r-=h.length;else{r===h.length?(vue(o,h,l-r),++d,u.next?this.head=u.next:this.head=this.tail=null):(vue(o,new ibr(h.buffer,h.byteOffset,r),l-r),this.head=u,u.data=h.slice(r));break}++d}while((u=u.next)!==null);return this.length-=d,o}[Symbol.for("nodejs.util.inspect.custom")](r,o){return obr(this,{...o,depth:0,customInspect:!1})}};const{MathFloor:lbr,NumberIsInteger:abr}=jf,{validateInteger:cbr}=RJ,{ERR_INVALID_ARG_VALUE:ubr}=$0.codes;let Kin=16*1024,qin=16;function fbr(n,r,o){return n.highWaterMark!=null?n.highWaterMark:r?n[o]:null}function Xin(n){return n?qin:Kin}function dbr(n,r){cbr(r,"value",0),n?qin=r:Kin=r}function hbr(n,r,o,l){const u=fbr(r,l,o);if(u!=null){if(!abr(u)||u<0){const d=l?`options.${o}`:"options.highWaterMark";throw new ubr(d,u)}return lbr(u)}return Xin(n.objectMode)}var Nbe={getHighWaterMark:hbr,getDefaultHighWaterMark:Xin,setDefaultHighWaterMark:dbr};const wUt=ui,{PromisePrototypeThen:pbr,SymbolAsyncIterator:mUt,SymbolIterator:yUt}=jf,{Buffer:bbr}=Kr,{ERR_INVALID_ARG_TYPE:gbr,ERR_STREAM_NULL_VALUES:wbr}=$0.codes;function mbr(n,r,o){let l;if(typeof r=="string"||r instanceof bbr)return new n({objectMode:!0,...o,read(){this.push(r),this.push(null)}});let u;if(r&&r[mUt])u=!0,l=r[mUt]();else if(r&&r[yUt])u=!1,l=r[yUt]();else throw new gbr("iterable",["Iterable"],r);const d=new n({objectMode:!0,highWaterMark:1,...o});let h=!1;d._read=function(){h||(h=!0,v())},d._destroy=function(y,E){pbr(w(y),()=>wUt.nextTick(E,y),A=>wUt.nextTick(E,A||y))};async function w(y){const E=y!=null,A=typeof l.throw=="function";if(E&&A){const{value:C,done:R}=await l.throw(y);if(await C,R)return}if(typeof l.return=="function"){const{value:C}=await l.return();await C}}async function v(){for(;;){try{const{value:y,done:E}=u?await l.next():l.next();if(E)d.push(null);else{const A=y&&typeof y.then=="function"?await y:y;if(A===null)throw h=!1,new wbr;if(d.push(A))continue;h=!1}}catch(y){d.destroy(y)}break}}return d}var Jin=mbr,XNe,vUt;function Mbe(){if(vUt)return XNe;vUt=1;const n=ui,{ArrayPrototypeIndexOf:r,NumberIsInteger:o,NumberIsNaN:l,NumberParseInt:u,ObjectDefineProperties:d,ObjectKeys:h,ObjectSetPrototypeOf:w,Promise:v,SafeSet:y,SymbolAsyncDispose:E,SymbolAsyncIterator:A,Symbol:C}=jf;XNe=he,he.ReadableState=St;const{EventEmitter:R}=Ns,{Stream:O,prependListener:M}=LUe,{Buffer:L}=Kr,{addAbortSignal:H}=Obe,G=BT;let j=u1.debuglog("stream",S=>{j=S});const Q=sbr,te=vj,{getHighWaterMark:pe,getDefaultHighWaterMark:Le}=Nbe,{aggregateTwoErrors:Ee,codes:{ERR_INVALID_ARG_TYPE:le,ERR_METHOD_NOT_IMPLEMENTED:xe,ERR_OUT_OF_RANGE:be,ERR_STREAM_PUSH_AFTER_EOF:ae,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:F},AbortError:me}=$0,{validateObject:ye}=RJ,we=C("kPaused"),{StringDecoder:Be}=rm,He=Jin;w(he.prototype,O.prototype),w(he,O);const Ue=()=>{},{errorOrDestroy:Ge}=te,Me=1,vt=2,re=4,Te=8,ct=16,at=32,Ye=64,mt=128,jt=256,rn=512,Pe=1024,Oe=2048,T=4096,$=8192,B=16384,K=32768,q=65536,ke=1<<17,Re=1<<18;function Ie(S){return{enumerable:!1,get(){return(this.state&S)!==0},set(x){x?this.state|=S:this.state&=~S}}}d(St.prototype,{objectMode:Ie(Me),ended:Ie(vt),endEmitted:Ie(re),reading:Ie(Te),constructed:Ie(ct),sync:Ie(at),needReadable:Ie(Ye),emittedReadable:Ie(mt),readableListening:Ie(jt),resumeScheduled:Ie(rn),errorEmitted:Ie(Pe),emitClose:Ie(Oe),autoDestroy:Ie(T),destroyed:Ie($),closed:Ie(B),closeEmitted:Ie(K),multiAwaitDrain:Ie(q),readingMore:Ie(ke),dataEmitted:Ie(Re)});function St(S,x,Y){typeof Y!="boolean"&&(Y=x instanceof rx()),this.state=Oe|T|ct|at,S&&S.objectMode&&(this.state|=Me),Y&&S&&S.readableObjectMode&&(this.state|=Me),this.highWaterMark=S?pe(this,S,"readableHighWaterMark",Y):Le(!1),this.buffer=new Q,this.length=0,this.pipes=[],this.flowing=null,this[we]=null,S&&S.emitClose===!1&&(this.state&=~Oe),S&&S.autoDestroy===!1&&(this.state&=~T),this.errored=null,this.defaultEncoding=S&&S.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,S&&S.encoding&&(this.decoder=new Be(S.encoding),this.encoding=S.encoding)}function he(S){if(!(this instanceof he))return new he(S);const x=this instanceof rx();this._readableState=new St(S,this,x),S&&(typeof S.read=="function"&&(this._read=S.read),typeof S.destroy=="function"&&(this._destroy=S.destroy),typeof S.construct=="function"&&(this._construct=S.construct),S.signal&&!x&&H(S.signal,this)),O.call(this,S),te.construct(this,()=>{this._readableState.needReadable&&ht(this,this._readableState)})}he.prototype.destroy=te.destroy,he.prototype._undestroy=te.undestroy,he.prototype._destroy=function(S,x){x(S)},he.prototype[R.captureRejectionSymbol]=function(S){this.destroy(S)},he.prototype[E]=function(){let S;return this.destroyed||(S=this.readableEnded?null:new me,this.destroy(S)),new v((x,Y)=>G(this,J=>J&&J!==S?Y(J):x(null)))},he.prototype.push=function(S,x){return zt(this,S,x,!1)},he.prototype.unshift=function(S,x){return zt(this,S,x,!0)};function zt(S,x,Y,J){j("readableAddChunk",x);const ue=S._readableState;let Yt;if(ue.state&Me||(typeof x=="string"?(Y=Y||ue.defaultEncoding,ue.encoding!==Y&&(J&&ue.encoding?x=L.from(x,Y).toString(ue.encoding):(x=L.from(x,Y),Y=""))):x instanceof L?Y="":O._isUint8Array(x)?(x=O._uint8ArrayToBuffer(x),Y=""):x!=null&&(Yt=new le("chunk",["string","Buffer","Uint8Array"],x))),Yt)Ge(S,Yt);else if(x===null)ue.state&=~Te,ce(S,ue);else if(ue.state&Me||x&&x.length>0)if(J)if(ue.state&re)Ge(S,new F);else{if(ue.destroyed||ue.errored)return!1;Qt(S,ue,x,!0)}else if(ue.ended)Ge(S,new ae);else{if(ue.destroyed||ue.errored)return!1;ue.state&=~Te,ue.decoder&&!Y?(x=ue.decoder.write(x),ue.objectMode||x.length!==0?Qt(S,ue,x,!1):ht(S,ue)):Qt(S,ue,x,!1)}else J||(ue.state&=~Te,ht(S,ue));return!ue.ended&&(ue.length0?(x.state&q?x.awaitDrainWriters.clear():x.awaitDrainWriters=null,x.dataEmitted=!0,S.emit("data",Y)):(x.length+=x.objectMode?1:Y.length,J?x.buffer.unshift(Y):x.buffer.push(Y),x.state&Ye&&de(S)),ht(S,x)}he.prototype.isPaused=function(){const S=this._readableState;return S[we]===!0||S.flowing===!1},he.prototype.setEncoding=function(S){const x=new Be(S);this._readableState.decoder=x,this._readableState.encoding=this._readableState.decoder.encoding;const Y=this._readableState.buffer;let J="";for(const ue of Y)J+=x.write(ue);return Y.clear(),J!==""&&Y.push(J),this._readableState.length=J.length,this};const $n=1073741824;function Gn(S){if(S>$n)throw new be("size","<= 1GiB",S);return S--,S|=S>>>1,S|=S>>>2,S|=S>>>4,S|=S>>>8,S|=S>>>16,S++,S}function $e(S,x){return S<=0||x.length===0&&x.ended?0:x.state&Me?1:l(S)?x.flowing&&x.length?x.buffer.first().length:x.length:S<=x.length?S:x.ended?x.length:0}he.prototype.read=function(S){j("read",S),S===void 0?S=NaN:o(S)||(S=u(S,10));const x=this._readableState,Y=S;if(S>x.highWaterMark&&(x.highWaterMark=Gn(S)),S!==0&&(x.state&=~mt),S===0&&x.needReadable&&((x.highWaterMark!==0?x.length>=x.highWaterMark:x.length>0)||x.ended))return j("read: emitReadable",x.length,x.ended),x.length===0&&x.ended?co(this):de(this),null;if(S=$e(S,x),S===0&&x.ended)return x.length===0&&co(this),null;let J=(x.state&Ye)!==0;if(j("need readable",J),(x.length===0||x.length-S0?ue=Al(S,x):ue=null,ue===null?(x.needReadable=x.length<=x.highWaterMark,S=0):(x.length-=S,x.multiAwaitDrain?x.awaitDrainWriters.clear():x.awaitDrainWriters=null),x.length===0&&(x.ended||(x.needReadable=!0),Y!==S&&x.ended&&co(this)),ue!==null&&!x.errorEmitted&&!x.closeEmitted&&(x.dataEmitted=!0,this.emit("data",ue)),ue};function ce(S,x){if(j("onEofChunk"),!x.ended){if(x.decoder){const Y=x.decoder.end();Y&&Y.length&&(x.buffer.push(Y),x.length+=x.objectMode?1:Y.length)}x.ended=!0,x.sync?de(S):(x.needReadable=!1,x.emittedReadable=!0,et(S))}}function de(S){const x=S._readableState;j("emitReadable",x.needReadable,x.emittedReadable),x.needReadable=!1,x.emittedReadable||(j("emitReadable",x.flowing),x.emittedReadable=!0,n.nextTick(et,S))}function et(S){const x=S._readableState;j("emitReadable_",x.destroyed,x.length,x.ended),!x.destroyed&&!x.errored&&(x.length||x.ended)&&(S.emit("readable"),x.emittedReadable=!1),x.needReadable=!x.flowing&&!x.ended&&x.length<=x.highWaterMark,xi(S)}function ht(S,x){!x.readingMore&&x.constructed&&(x.readingMore=!0,n.nextTick(Jt,S,x))}function Jt(S,x){for(;!x.reading&&!x.ended&&(x.length1&&J.pipes.includes(S)&&(j("false write response, pause",J.awaitDrainWriters.size),J.awaitDrainWriters.add(S)),Y.pause()),Fr||(Fr=Zt(Y,S),S.on("drain",Fr))}Y.on("data",ml);function ml(jr){j("ondata");const lr=S.write(jr);j("dest.write",lr),lr===!1&&Rs()}function gs(jr){if(j("onerror",jr),wi(),S.removeListener("error",gs),S.listenerCount("error")===0){const lr=S._writableState||S._readableState;lr&&!lr.errorEmitted?Ge(S,jr):S.emit("error",jr)}}M(S,"error",gs);function as(){S.removeListener("finish",ws),wi()}S.once("close",as);function ws(){j("onfinish"),S.removeListener("close",as),wi()}S.once("finish",ws);function wi(){j("unpipe"),Y.unpipe(S)}return S.emit("pipe",Y),S.writableNeedDrain===!0?Rs():J.flowing||(j("pipe resume"),Y.resume()),S};function Zt(S,x){return function(){const J=S._readableState;J.awaitDrainWriters===x?(j("pipeOnDrain",1),J.awaitDrainWriters=null):J.multiAwaitDrain&&(j("pipeOnDrain",J.awaitDrainWriters.size),J.awaitDrainWriters.delete(x)),(!J.awaitDrainWriters||J.awaitDrainWriters.size===0)&&S.listenerCount("data")&&S.resume()}}he.prototype.unpipe=function(S){const x=this._readableState,Y={hasUnpiped:!1};if(x.pipes.length===0)return this;if(!S){const ue=x.pipes;x.pipes=[],this.pause();for(let Yt=0;Yt0,J.flowing!==!1&&this.resume()):S==="readable"&&!J.endEmitted&&!J.readableListening&&(J.readableListening=J.needReadable=!0,J.flowing=!1,J.emittedReadable=!1,j("on readable",J.length,J.reading),J.length?de(this):J.reading||n.nextTick(ao,this)),Y},he.prototype.addListener=he.prototype.on,he.prototype.removeListener=function(S,x){const Y=O.prototype.removeListener.call(this,S,x);return S==="readable"&&n.nextTick(qr,this),Y},he.prototype.off=he.prototype.removeListener,he.prototype.removeAllListeners=function(S){const x=O.prototype.removeAllListeners.apply(this,arguments);return(S==="readable"||S===void 0)&&n.nextTick(qr,this),x};function qr(S){const x=S._readableState;x.readableListening=S.listenerCount("readable")>0,x.resumeScheduled&&x[we]===!1?x.flowing=!0:S.listenerCount("data")>0?S.resume():x.readableListening||(x.flowing=null)}function ao(S){j("readable nexttick read 0"),S.read(0)}he.prototype.resume=function(){const S=this._readableState;return S.flowing||(j("resume"),S.flowing=!S.readableListening,ki(this,S)),S[we]=!1,this};function ki(S,x){x.resumeScheduled||(x.resumeScheduled=!0,n.nextTick(Ri,S,x))}function Ri(S,x){j("resume",x.reading),x.reading||S.read(0),x.resumeScheduled=!1,S.emit("resume"),xi(S),x.flowing&&!x.reading&&S.read(0)}he.prototype.pause=function(){return j("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(j("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[we]=!0,this};function xi(S){const x=S._readableState;for(j("flow",x.flowing);x.flowing&&S.read()!==null;);}he.prototype.wrap=function(S){let x=!1;S.on("data",J=>{!this.push(J)&&S.pause&&(x=!0,S.pause())}),S.on("end",()=>{this.push(null)}),S.on("error",J=>{Ge(this,J)}),S.on("close",()=>{this.destroy()}),S.on("destroy",()=>{this.destroy()}),this._read=()=>{x&&S.resume&&(x=!1,S.resume())};const Y=h(S);for(let J=1;J{ue=An?Ee(ue,An):null,Y(),Y=Ue});try{for(;;){const An=S.destroyed?null:S.read();if(An!==null)yield An;else{if(ue)throw ue;if(ue===null)return;await new v(J)}}}catch(An){throw ue=Ee(ue,An),ue}finally{(ue||(x==null?void 0:x.destroyOnReturn)!==!1)&&(ue===void 0||S._readableState.autoDestroy)?te.destroyer(S,null):(S.off("readable",J),Yt())}}d(he.prototype,{readable:{__proto__:null,get(){const S=this._readableState;return!!S&&S.readable!==!1&&!S.destroyed&&!S.errorEmitted&&!S.endEmitted},set(S){this._readableState&&(this._readableState.readable=!!S)}},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(S){this._readableState&&(this._readableState.flowing=S)}},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(S){this._readableState&&(this._readableState.destroyed=S)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),d(St.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[we]!==!1},set(S){this[we]=!!S}}}),he._fromList=Al;function Al(S,x){if(x.length===0)return null;let Y;return x.objectMode?Y=x.buffer.shift():!S||S>=x.length?(x.decoder?Y=x.buffer.join(""):x.buffer.length===1?Y=x.buffer.first():Y=x.buffer.concat(x.length),x.buffer.clear()):Y=x.buffer.consume(S,x.decoder),Y}function co(S){const x=S._readableState;j("endReadable",x.endEmitted),x.endEmitted||(x.ended=!0,n.nextTick(Zc,x,S))}function Zc(S,x){if(j("endReadableNT",S.endEmitted,S.length),!S.errored&&!S.closeEmitted&&!S.endEmitted&&S.length===0){if(S.endEmitted=!0,x.emit("end"),x.writable&&x.allowHalfOpen===!1)n.nextTick(bu,x);else if(S.autoDestroy){const Y=x._writableState;(!Y||Y.autoDestroy&&(Y.finished||Y.writable===!1))&&x.destroy()}}}function bu(S){S.writable&&!S.writableEnded&&!S.destroyed&&S.end()}he.from=function(S,x){return He(he,S,x)};let So;function ql(){return So===void 0&&(So={}),So}return he.fromWeb=function(S,x){return ql().newStreamReadableFromReadableStream(S,x)},he.toWeb=function(S,x){return ql().newReadableStreamFromStreamReadable(S,x)},he.wrap=function(S,x){var Y,J;return new he({objectMode:(Y=(J=S.readableObjectMode)!==null&&J!==void 0?J:S.objectMode)!==null&&Y!==void 0?Y:!0,...x,destroy(ue,Yt){te.destroyer(S,ue),Yt(ue)}}).wrap(S)},XNe}var JNe,_Ut;function jUe(){if(_Ut)return JNe;_Ut=1;const n=ui,{ArrayPrototypeSlice:r,Error:o,FunctionPrototypeSymbolHasInstance:l,ObjectDefineProperty:u,ObjectDefineProperties:d,ObjectSetPrototypeOf:h,StringPrototypeToLowerCase:w,Symbol:v,SymbolHasInstance:y}=jf;JNe=ye,ye.WritableState=F;const{EventEmitter:E}=Ns,A=LUe.Stream,{Buffer:C}=Kr,R=vj,{addAbortSignal:O}=Obe,{getHighWaterMark:M,getDefaultHighWaterMark:L}=Nbe,{ERR_INVALID_ARG_TYPE:H,ERR_METHOD_NOT_IMPLEMENTED:G,ERR_MULTIPLE_CALLBACK:j,ERR_STREAM_CANNOT_PIPE:Q,ERR_STREAM_DESTROYED:te,ERR_STREAM_ALREADY_FINISHED:pe,ERR_STREAM_NULL_VALUES:Le,ERR_STREAM_WRITE_AFTER_END:Ee,ERR_UNKNOWN_ENCODING:le}=$0.codes,{errorOrDestroy:xe}=R;h(ye.prototype,A.prototype),h(ye,A);function be(){}const ae=v("kOnFinished");function F(T,$,B){typeof B!="boolean"&&(B=$ instanceof rx()),this.objectMode=!!(T&&T.objectMode),B&&(this.objectMode=this.objectMode||!!(T&&T.writableObjectMode)),this.highWaterMark=T?M(this,T,"writableHighWaterMark",B):L(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const K=!!(T&&T.decodeStrings===!1);this.decodeStrings=!K,this.defaultEncoding=T&&T.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=Ge.bind(void 0,$),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,me(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[ae]=[]}function me(T){T.buffered=[],T.bufferedIndex=0,T.allBuffers=!0,T.allNoop=!0}F.prototype.getBuffer=function(){return r(this.buffered,this.bufferedIndex)},u(F.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function ye(T){const $=this instanceof rx();if(!$&&!l(ye,this))return new ye(T);this._writableState=new F(T,this,$),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&&O(T.signal,this)),A.call(this,T),R.construct(this,()=>{const B=this._writableState;B.writing||Te(this,B),mt(this,B)})}u(ye,y,{__proto__:null,value:function(T){return l(this,T)?!0:this!==ye?!1:T&&T._writableState instanceof F}}),ye.prototype.pipe=function(){xe(this,new Q)};function we(T,$,B,K){const q=T._writableState;if(typeof B=="function")K=B,B=q.defaultEncoding;else{if(!B)B=q.defaultEncoding;else if(B!=="buffer"&&!C.isEncoding(B))throw new le(B);typeof K!="function"&&(K=be)}if($===null)throw new Le;if(!q.objectMode)if(typeof $=="string")q.decodeStrings!==!1&&($=C.from($,B),B="buffer");else if($ instanceof C)B="buffer";else if(A._isUint8Array($))$=A._uint8ArrayToBuffer($),B="buffer";else throw new H("chunk",["string","Buffer","Uint8Array"],$);let ke;return q.ending?ke=new Ee:q.destroyed&&(ke=new te("write")),ke?(n.nextTick(K,ke),xe(T,ke,!0),ke):(q.pendingcb++,Be(T,q,$,B,K))}ye.prototype.write=function(T,$,B){return we(this,T,$,B)===!0},ye.prototype.cork=function(){this._writableState.corked++},ye.prototype.uncork=function(){const T=this._writableState;T.corked&&(T.corked--,T.writing||Te(this,T))},ye.prototype.setDefaultEncoding=function($){if(typeof $=="string"&&($=w($)),!C.isEncoding($))throw new le($);return this._writableState.defaultEncoding=$,this};function Be(T,$,B,K,q){const ke=$.objectMode?1:B.length;$.length+=ke;const Re=$.length<$.highWaterMark;return Re||($.needDrain=!0),$.writing||$.corked||$.errored||!$.constructed?($.buffered.push({chunk:B,encoding:K,callback:q}),$.allBuffers&&K!=="buffer"&&($.allBuffers=!1),$.allNoop&&q!==be&&($.allNoop=!1)):($.writelen=ke,$.writecb=q,$.writing=!0,$.sync=!0,T._write(B,K,$.onwrite),$.sync=!1),Re&&!$.errored&&!$.destroyed}function He(T,$,B,K,q,ke,Re){$.writelen=K,$.writecb=Re,$.writing=!0,$.sync=!0,$.destroyed?$.onwrite(new te("write")):B?T._writev(q,$.onwrite):T._write(q,ke,$.onwrite),$.sync=!1}function Ue(T,$,B,K){--$.pendingcb,K(B),re($),xe(T,B)}function Ge(T,$){const B=T._writableState,K=B.sync,q=B.writecb;if(typeof q!="function"){xe(T,new j);return}B.writing=!1,B.writecb=null,B.length-=B.writelen,B.writelen=0,$?($.stack,B.errored||(B.errored=$),T._readableState&&!T._readableState.errored&&(T._readableState.errored=$),K?n.nextTick(Ue,T,B,$,q):Ue(T,B,$,q)):(B.buffered.length>B.bufferedIndex&&Te(T,B),K?B.afterWriteTickInfo!==null&&B.afterWriteTickInfo.cb===q?B.afterWriteTickInfo.count++:(B.afterWriteTickInfo={count:1,cb:q,stream:T,state:B},n.nextTick(Me,B.afterWriteTickInfo)):vt(T,B,1,q))}function Me({stream:T,state:$,count:B,cb:K}){return $.afterWriteTickInfo=null,vt(T,$,B,K)}function vt(T,$,B,K){for(!$.ending&&!T.destroyed&&$.length===0&&$.needDrain&&($.needDrain=!1,T.emit("drain"));B-- >0;)$.pendingcb--,K();$.destroyed&&re($),mt(T,$)}function re(T){if(T.writing)return;for(let q=T.bufferedIndex;q1&&T._writev){$.pendingcb-=ke-1;const Ie=$.allNoop?be:he=>{for(let zt=Re;zt256?(B.splice(0,Re),$.bufferedIndex=0):$.bufferedIndex=Re}$.bufferProcessing=!1}ye.prototype._write=function(T,$,B){if(this._writev)this._writev([{chunk:T,encoding:$}],B);else throw new G("_write()")},ye.prototype._writev=null,ye.prototype.end=function(T,$,B){const K=this._writableState;typeof T=="function"?(B=T,T=null,$=null):typeof $=="function"&&(B=$,$=null);let q;if(T!=null){const ke=we(this,T,$);ke instanceof o&&(q=ke)}return K.corked&&(K.corked=1,this.uncork()),q||(!K.errored&&!K.ending?(K.ending=!0,mt(this,K,!0),K.ended=!0):K.finished?q=new pe("end"):K.destroyed&&(q=new te("end"))),typeof B=="function"&&(q||K.finished?n.nextTick(B,q):K[ae].push(B)),this};function ct(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 at(T,$){let B=!1;function K(q){if(B){xe(T,q??j());return}if(B=!0,$.pendingcb--,q){const ke=$[ae].splice(0);for(let Re=0;Re{ct(q)?jt(K,q):q.pendingcb--},T,$)):ct($)&&($.pendingcb++,jt(T,$))))}function jt(T,$){$.pendingcb--,$.finished=!0;const B=$[ae].splice(0);for(let K=0;K{if(re!=null)throw new O("nully","body",re)},re=>{M(Me,re)});return Me=new le({objectMode:!0,readable:!1,write:Be,final(re){He(async()=>{try{await vt,n.nextTick(re,null)}catch(Te){n.nextTick(re,Te)}})},destroy:Ue})}throw new O("Iterable, AsyncIterable or AsyncFunction",me,we)}if(pe(F))return ae(F.arrayBuffer());if(u(F))return Q(le,F,{objectMode:!0,writable:!1});if(y(F==null?void 0:F.readable)&&E(F==null?void 0:F.writable))return le.fromWeb(F);if(typeof(F==null?void 0:F.writable)=="object"||typeof(F==null?void 0:F.readable)=="object"){const we=F!=null&&F.readable?h(F==null?void 0:F.readable)?F==null?void 0:F.readable:ae(F.readable):void 0,Be=F!=null&&F.writable?w(F==null?void 0:F.writable)?F==null?void 0:F.writable:ae(F.writable):void 0;return be({readable:we,writable:Be})}const ye=F==null?void 0:F.then;if(typeof ye=="function"){let we;return Ee(ye,F,Be=>{Be!=null&&we.push(Be),we.push(null)},Be=>{M(we,Be)}),we=new le({objectMode:!0,writable:!1,read(){}})}throw new R(me,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],F)};function xe(ae){let{promise:F,resolve:me}=j();const ye=new Le,we=ye.signal;return{value:ae(async function*(){for(;;){const He=F;F=null;const{chunk:Ue,done:Ge,cb:Me}=await He;if(n.nextTick(Me),Ge)return;if(we.aborted)throw new C(void 0,{cause:we.reason});({promise:F,resolve:me}=j()),yield Ue}}(),{signal:we}),write(He,Ue,Ge){const Me=me;me=null,Me({chunk:He,done:!1,cb:Ge})},final(He){const Ue=me;me=null,Ue({done:!0,cb:He})},destroy(He,Ue){ye.abort(),Ue(He)}}}function be(ae){const F=ae.readable&&typeof ae.readable.read!="function"?H.wrap(ae.readable):ae.readable,me=ae.writable;let ye=!!o(F),we=!!l(me),Be,He,Ue,Ge,Me;function vt(re){const Te=Ge;Ge=null,Te?Te(re):re&&Me.destroy(re)}return Me=new le({readableObjectMode:!!(F!=null&&F.readableObjectMode),writableObjectMode:!!(me!=null&&me.writableObjectMode),readable:ye,writable:we}),we&&(A(me,re=>{we=!1,re&&M(F,re),vt(re)}),Me._write=function(re,Te,ct){me.write(re,Te)?ct():Be=ct},Me._final=function(re){me.end(),He=re},me.on("drain",function(){if(Be){const re=Be;Be=null,re()}}),me.on("finish",function(){if(He){const re=He;He=null,re()}})),ye&&(A(F,re=>{ye=!1,re&&M(F,re),vt(re)}),F.on("readable",function(){if(Ue){const re=Ue;Ue=null,re()}}),F.on("end",function(){Me.push(null)}),Me._read=function(){for(;;){const re=F.read();if(re===null){Ue=Me._read;return}if(!Me.push(re))return}}),Me._destroy=function(re,Te){!re&&Ge!==null&&(re=new C),Ue=null,Be=null,He=null,Ge===null?Te(re):(Ge=Te,M(me,re),M(F,re))},Me}return YNe}var QNe,EUt;function rx(){if(EUt)return QNe;EUt=1;const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:o,ObjectSetPrototypeOf:l}=jf;QNe=h;const u=Mbe(),d=jUe();l(h.prototype,u.prototype),l(h,u);{const E=o(d.prototype);for(let A=0;A{if(r){n?n(r):this.destroy(r);return}o!=null&&this.push(o),this.push(null),n&&n()}):(this.push(null),n&&n())}function Ebr(){this._final!==eFe&&eFe.call(this)}ix.prototype._final=eFe;ix.prototype._transform=function(n,r,o){throw new _br("_transform()")};ix.prototype._write=function(n,r,o){const l=this._readableState,u=this._writableState,d=l.length;this._transform(n,r,(h,w)=>{if(h){o(h);return}w!=null&&this.push(w),u.ended||d===l.length||l.length{l=!0});const u=ohe(n,{readable:r,writable:o},d=>{l=!d});return{destroy:d=>{l||(l=!0,Tbr.destroyer(n,d||new Pbr("pipe")))},cleanup:u}}function Bbr(n){return Mbr(n[n.length-1],"streams[stream.length - 1]"),n.pop()}function oMe(n){if(C8(n))return n;if(ede(n))return Wbr(n);throw new tFe("val",["Readable","Iterable","AsyncIterable"],n)}async function*Wbr(n){rMe||(rMe=Mbe()),yield*rMe.prototype[xbr].call(n)}async function _ue(n,r,o,{end:l}){let u,d=null;const h=y=>{if(y&&(u=y),d){const E=d;d=null,E()}},w=()=>new Rbr((y,E)=>{u?E(u):d=()=>{u?E(u):y()}});r.on("drain",h);const v=ohe(r,{readable:!1},h);try{r.writableNeedDrain&&await w();for await(const y of n)r.write(y)||await w();l&&(r.end(),await w()),o()}catch(y){o(u!==y?$br(u,y):y)}finally{v(),r.off("drain",h)}}async function sMe(n,r,o,{end:l}){RD(r)&&(r=r.writable);const u=r.getWriter();try{for await(const d of n)await u.ready,u.write(d).catch(()=>{});await u.ready,l&&await u.close(),o()}catch(d){try{await u.abort(d),o(d)}catch(h){o(h)}}}function Hbr(...n){return ton(n,Abr(Bbr(n)))}function ton(n,r,o){if(n.length===1&&kbr(n[0])&&(n=n[0]),n.length<2)throw new Ibr("streams");const l=new Fbr,u=l.signal,d=o==null?void 0:o.signal,h=[];Dbr(d,"options.signal");function w(){O(new Nbr)}iMe=iMe||u1.addAbortListener;let v;d&&(v=iMe(d,w));let y,E;const A=[];let C=0;function R(G){O(G,--C===0)}function O(G,j){var Q;if(G&&(!y||y.code==="ERR_STREAM_PREMATURE_CLOSE")&&(y=G),!(!y&&!j)){for(;A.length;)A.shift()(y);(Q=v)===null||Q===void 0||Q[Cbr](),l.abort(),j&&(y||h.forEach(te=>te()),IK.nextTick(r,y,E))}}let M;for(let G=0;G0,pe=Q||(o==null?void 0:o.end)!==!1,Le=G===n.length-1;if(RUt(j)){let Ee=function(le){le&&le.name!=="AbortError"&&le.code!=="ERR_STREAM_PREMATURE_CLOSE"&&R(le)};if(pe){const{destroy:le,cleanup:xe}=xUt(j,Q,te);A.push(le),eMe(j)&&Le&&h.push(xe)}j.on("error",Ee),eMe(j)&&Le&&h.push(()=>{j.removeListener("error",Ee)})}if(G===0)if(typeof j=="function"){if(M=j({signal:u}),!C8(M))throw new ZNe("Iterable, AsyncIterable or Stream","source",M)}else C8(j)||ede(j)||RD(j)?M=j:M=kUt.from(j);else if(typeof j=="function"){if(RD(M)){var L;M=oMe((L=M)===null||L===void 0?void 0:L.readable)}else M=oMe(M);if(M=j(M,{signal:u}),Q){if(!C8(M,!0))throw new ZNe("AsyncIterable",`transform[${G-1}]`,M)}else{var H;nMe||(nMe=eon);const Ee=new nMe({objectMode:!0}),le=(H=M)===null||H===void 0?void 0:H.then;if(typeof le=="function")C++,le.call(M,ae=>{E=ae,ae!=null&&Ee.write(ae),pe&&Ee.end(),IK.nextTick(R)},ae=>{Ee.destroy(ae),IK.nextTick(R,ae)});else if(C8(M,!0))C++,_ue(M,Ee,R,{end:pe});else if(tMe(M)||RD(M)){const ae=M.readable||M;C++,_ue(ae,Ee,R,{end:pe})}else throw new ZNe("AsyncIterable or Promise","destination",M);M=Ee;const{destroy:xe,cleanup:be}=xUt(M,!1,!0);A.push(xe),Le&&h.push(be)}}else if(RUt(j)){if(ede(M)){C+=2;const Ee=Ubr(M,j,R,{end:pe});eMe(j)&&Le&&h.push(Ee)}else if(RD(M)||tMe(M)){const Ee=M.readable||M;C++,_ue(Ee,j,R,{end:pe})}else if(C8(M))C++,_ue(M,j,R,{end:pe});else throw new tFe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else if(Lbr(j)){if(ede(M))C++,sMe(oMe(M),j,R,{end:pe});else if(tMe(M)||C8(M))C++,sMe(M,j,R,{end:pe});else if(RD(M))C++,sMe(M.readable,j,R,{end:pe});else throw new tFe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else M=kUt.from(j)}return(u!=null&&u.aborted||d!=null&&d.aborted)&&IK.nextTick(w),M}function Ubr(n,r,o,{end:l}){let u=!1;if(r.on("close",()=>{u||o(new Obr)}),n.pipe(r,{end:!1}),l){let d=function(){u=!0,r.end()};jbr(n)?IK.nextTick(d):n.once("end",d)}else o();return ohe(n,{readable:!0,writable:!1},d=>{const h=n._readableState;d&&d.code==="ERR_STREAM_PREMATURE_CLOSE"&&h&&h.ended&&!h.errored&&!h.errorEmitted?n.once("end",o).once("error",o):o(d)}),ohe(r,{readable:!1,writable:!0},o)}var WUe={pipelineImpl:ton,pipeline:Hbr};const{pipeline:Gbr}=WUe,Sue=rx(),{destroyer:Vbr}=vj,{isNodeStream:Eue,isReadable:CUt,isWritable:AUt,isWebStream:lMe,isTransformStream:l8,isWritableStream:TUt,isReadableStream:$Ut}=Cx,{AbortError:zbr,codes:{ERR_INVALID_ARG_VALUE:IUt,ERR_MISSING_ARGS:Kbr}}=$0,qbr=BT;var non=function(...r){if(r.length===0)throw new Kbr("streams");if(r.length===1)return Sue.from(r[0]);const o=[...r];if(typeof r[0]=="function"&&(r[0]=Sue.from(r[0])),typeof r[r.length-1]=="function"){const R=r.length-1;r[R]=Sue.from(r[R])}for(let R=0;R0&&!(AUt(r[R])||TUt(r[R])||l8(r[R])))throw new IUt(`streams[${R}]`,o[R],"must be writable")}let l,u,d,h,w;function v(R){const O=h;h=null,O?O(R):R?w.destroy(R):!C&&!A&&w.destroy()}const y=r[0],E=Gbr(r,v),A=!!(AUt(y)||TUt(y)||l8(y)),C=!!(CUt(E)||$Ut(E)||l8(E));if(w=new Sue({writableObjectMode:!!(y!=null&&y.writableObjectMode),readableObjectMode:!!(E!=null&&E.readableObjectMode),writable:A,readable:C}),A){if(Eue(y))w._write=function(O,M,L){y.write(O,M)?L():l=L},w._final=function(O){y.end(),u=O},y.on("drain",function(){if(l){const O=l;l=null,O()}});else if(lMe(y)){const M=(l8(y)?y.writable:y).getWriter();w._write=async function(L,H,G){try{await M.ready,M.write(L).catch(()=>{}),G()}catch(j){G(j)}},w._final=async function(L){try{await M.ready,M.close().catch(()=>{}),u=L}catch(H){L(H)}}}const R=l8(E)?E.readable:E;qbr(R,()=>{if(u){const O=u;u=null,O()}})}if(C){if(Eue(E))E.on("readable",function(){if(d){const R=d;d=null,R()}}),E.on("end",function(){w.push(null)}),w._read=function(){for(;;){const R=E.read();if(R===null){d=w._read;return}if(!w.push(R))return}};else if(lMe(E)){const O=(l8(E)?E.readable:E).getReader();w._read=async function(){for(;;)try{const{value:M,done:L}=await O.read();if(!w.push(M))return;if(L){w.push(null);return}}catch{return}}}}return w._destroy=function(R,O){!R&&h!==null&&(R=new zbr),d=null,l=null,u=null,h===null?O(R):(h=O,Eue(E)&&Vbr(E,R))},w};const Xbr=globalThis.AbortController||$o().AbortController,{codes:{ERR_INVALID_ARG_VALUE:Jbr,ERR_INVALID_ARG_TYPE:xJ,ERR_MISSING_ARGS:Ybr,ERR_OUT_OF_RANGE:Qbr},AbortError:lk}=$0,{validateAbortSignal:iO,validateInteger:PUt,validateObject:oO}=RJ,Zbr=jf.Symbol("kWeak"),egr=jf.Symbol("kResistStopPropagation"),{finished:tgr}=BT,ngr=non,{addAbortSignalNoValidate:rgr}=Obe,{isWritable:igr,isNodeStream:ogr}=Cx,{deprecate:sgr}=u1,{ArrayPrototypePush:lgr,Boolean:agr,MathFloor:OUt,Number:cgr,NumberIsNaN:ugr,Promise:NUt,PromiseReject:MUt,PromiseResolve:fgr,PromisePrototypeThen:DUt,Symbol:ron}=jf,she=ron("kEmpty"),LUt=ron("kEof");function dgr(n,r){if(r!=null&&oO(r,"options"),(r==null?void 0:r.signal)!=null&&iO(r.signal,"options.signal"),ogr(n)&&!igr(n))throw new Jbr("stream",n,"must be writable");const o=ngr(this,n);return r!=null&&r.signal&&rgr(r.signal,o),o}function Dbe(n,r){if(typeof n!="function")throw new xJ("fn",["Function","AsyncFunction"],n);r!=null&&oO(r,"options"),(r==null?void 0:r.signal)!=null&&iO(r.signal,"options.signal");let o=1;(r==null?void 0:r.concurrency)!=null&&(o=OUt(r.concurrency));let l=o-1;return(r==null?void 0:r.highWaterMark)!=null&&(l=OUt(r.highWaterMark)),PUt(o,"options.concurrency",1),PUt(l,"options.highWaterMark",0),l+=o,(async function*(){const d=u1.AbortSignalAny([r==null?void 0:r.signal].filter(agr)),h=this,w=[],v={signal:d};let y,E,A=!1,C=0;function R(){A=!0,O()}function O(){C-=1,M()}function M(){E&&!A&&C=l||C>=o)&&await new NUt(G=>{E=G})}w.push(LUt)}catch(H){const G=MUt(H);DUt(G,O,R),w.push(G)}finally{A=!0,y&&(y(),y=null)}}L();try{for(;;){for(;w.length>0;){const H=await w[0];if(H===LUt)return;if(d.aborted)throw new lk;H!==she&&(yield H),w.shift(),M()}await new NUt(H=>{y=H})}}finally{A=!0,E&&(E(),E=null)}}).call(this)}function hgr(n=void 0){return n!=null&&oO(n,"options"),(n==null?void 0:n.signal)!=null&&iO(n.signal,"options.signal"),(async function*(){let o=0;for await(const u of this){var l;if(n!=null&&(l=n.signal)!==null&&l!==void 0&&l.aborted)throw new lk({cause:n.signal.reason});yield[o++,u]}}).call(this)}async function ion(n,r=void 0){for await(const o of HUe.call(this,n,r))return!0;return!1}async function pgr(n,r=void 0){if(typeof n!="function")throw new xJ("fn",["Function","AsyncFunction"],n);return!await ion.call(this,async(...o)=>!await n(...o),r)}async function bgr(n,r){for await(const o of HUe.call(this,n,r))return o}async function ggr(n,r){if(typeof n!="function")throw new xJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u),she}for await(const l of Dbe.call(this,o,r));}function HUe(n,r){if(typeof n!="function")throw new xJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u)?l:she}return Dbe.call(this,o,r)}let wgr=class extends Ybr{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function mgr(n,r,o){var l;if(typeof n!="function")throw new xJ("reducer",["Function","AsyncFunction"],n);o!=null&&oO(o,"options"),(o==null?void 0:o.signal)!=null&&iO(o.signal,"options.signal");let u=arguments.length>1;if(o!=null&&(l=o.signal)!==null&&l!==void 0&&l.aborted){const y=new lk(void 0,{cause:o.signal.reason});throw this.once("error",()=>{}),await tgr(this.destroy(y)),y}const d=new Xbr,h=d.signal;if(o!=null&&o.signal){const y={once:!0,[Zbr]:this,[egr]:!0};o.signal.addEventListener("abort",()=>d.abort(),y)}let w=!1;try{for await(const y of this){var v;if(w=!0,o!=null&&(v=o.signal)!==null&&v!==void 0&&v.aborted)throw new lk;u?r=await n(r,y,{signal:h}):(r=y,u=!0)}if(!w&&!u)throw new wgr}finally{d.abort()}return r}async function ygr(n){n!=null&&oO(n,"options"),(n==null?void 0:n.signal)!=null&&iO(n.signal,"options.signal");const r=[];for await(const l of this){var o;if(n!=null&&(o=n.signal)!==null&&o!==void 0&&o.aborted)throw new lk(void 0,{cause:n.signal.reason});lgr(r,l)}return r}function vgr(n,r){const o=Dbe.call(this,n,r);return(async function*(){for await(const u of o)yield*u}).call(this)}function oon(n){if(n=cgr(n),ugr(n))return 0;if(n<0)throw new Qbr("number",">= 0",n);return n}function _gr(n,r=void 0){return r!=null&&oO(r,"options"),(r==null?void 0:r.signal)!=null&&iO(r.signal,"options.signal"),n=oon(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new lk;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new lk;n--<=0&&(yield d)}}).call(this)}function Sgr(n,r=void 0){return r!=null&&oO(r,"options"),(r==null?void 0:r.signal)!=null&&iO(r.signal,"options.signal"),n=oon(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new lk;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new lk;if(n-- >0&&(yield d),n<=0)return}}).call(this)}PUe.streamReturningOperators={asIndexedPairs:sgr(hgr,"readable.asIndexedPairs will be removed in a future version."),drop:_gr,filter:HUe,flatMap:vgr,map:Dbe,take:Sgr,compose:dgr};PUe.promiseReturningOperators={every:pgr,forEach:ggr,reduce:mgr,toArray:ygr,some:ion,find:bgr};var aMe,jUt;function son(){if(jUt)return aMe;jUt=1;const{ArrayPrototypePop:n,Promise:r}=jf,{isIterable:o,isNodeStream:l,isWebStream:u}=Cx,{pipelineImpl:d}=WUe,{finished:h}=BT;lon();function w(...v){return new r((y,E)=>{let A,C;const R=v[v.length-1];if(R&&typeof R=="object"&&!l(R)&&!o(R)&&!u(R)){const O=n(v);A=O.signal,C=O.end}d(v,(O,M)=>{O?E(O):y(M)},{signal:A,end:C})})}return aMe={finished:h,pipeline:w},aMe}var FUt;function lon(){if(FUt)return VNe.exports;FUt=1;const{Buffer:n}=Kr,{ObjectDefineProperty:r,ObjectKeys:o,ReflectApply:l}=jf,{promisify:{custom:u}}=u1,{streamReturningOperators:d,promiseReturningOperators:h}=PUe,{codes:{ERR_ILLEGAL_CONSTRUCTOR:w}}=$0,v=non,{setDefaultHighWaterMark:y,getDefaultHighWaterMark:E}=Nbe,{pipeline:A}=WUe,{destroyer:C}=vj,R=BT,O=son(),M=Cx,L=VNe.exports=LUe.Stream;L.isDestroyed=M.isDestroyed,L.isDisturbed=M.isDisturbed,L.isErrored=M.isErrored,L.isReadable=M.isReadable,L.isWritable=M.isWritable,L.Readable=Mbe();for(const G of o(d)){let Q=function(...te){if(new.target)throw w();return L.Readable.from(l(j,this,te))};const j=d[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}for(const G of o(h)){let Q=function(...te){if(new.target)throw w();return l(j,this,te)};const j=h[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}L.Writable=jUe(),L.Duplex=rx(),L.Transform=Qin,L.PassThrough=eon,L.pipeline=A;const{addAbortSignal:H}=Obe;return L.addAbortSignal=H,L.finished=R,L.destroy=C,L.compose=v,L.setDefaultHighWaterMark=y,L.getDefaultHighWaterMark=E,r(L,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return O}}),r(A,u,{__proto__:null,enumerable:!0,get(){return O.pipeline}}),r(R,u,{__proto__:null,enumerable:!0,get(){return O.finished}}),L.Stream=L,L._isUint8Array=function(j){return j instanceof Uint8Array},L._uint8ArrayToBuffer=function(j){return n.from(j.buffer,j.byteOffset,j.byteLength)},VNe.exports}(function(n){const r=lon(),o=son(),l=r.Readable.destroy;n.exports=r.Readable,n.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer,n.exports._isUint8Array=r._isUint8Array,n.exports.isDisturbed=r.isDisturbed,n.exports.isErrored=r.isErrored,n.exports.isReadable=r.isReadable,n.exports.Readable=r.Readable,n.exports.Writable=r.Writable,n.exports.Duplex=r.Duplex,n.exports.Transform=r.Transform,n.exports.PassThrough=r.PassThrough,n.exports.addAbortSignal=r.addAbortSignal,n.exports.finished=r.finished,n.exports.destroy=r.destroy,n.exports.destroy=l,n.exports.pipeline=r.pipeline,n.exports.compose=r.compose,Object.defineProperty(r,"promises",{configurable:!0,enumerable:!0,get(){return o}}),n.exports.Stream=r.Stream,n.exports.default=n.exports})(win);var Egr=win.exports;const nFe="null:";function kgr(n){return r=>r.termType!=="NamedNode"||!r.value.startsWith(nFe)?null:n.namedNode(r.value.slice(nFe.length))}function Rgr(n){const r=kgr(n);return o=>{const l=r(o.subject),u=r(o.predicate),d=r(o.object),h=r(o.graph);return l||u||d||h?n.quad(l||o.subject,u||o.predicate,d||o.object,h||o.graph):o}}let xgr=class{constructor(r,{baseIRI:o=nFe,context:l=null,documentLoader:u,factory:d=sHe}={}){const h=new crn.JsonLdParser({baseIRI:o,context:l,dataFactory:d,documentLoader:u,streamingProfile:!1});r.pipe(h);const w=Rgr(d),v=new Egr.Transform({objectMode:!0,transform:(y,E,A)=>{A(null,w(y))}});return h.on("context",y=>{Object.entries(y).forEach(([E,A])=>{v.emit("prefix",E,d.namedNode(A))})}),h.on("error",y=>v.destroy(y)),h.pipe(v),bUe(v)}},aon=class extends Jpe{constructor(r){super(xgr,r)}};const Cgr=Object.freeze(Object.defineProperty({__proto__:null,default:aon},Symbol.toStringTag,{value:"Module"}));/*! queue-microtask. MIT License. Feross Aboukhadijeh */let BUt;var Agr=typeof queueMicrotask=="function"?queueMicrotask.bind(window):n=>(BUt||(BUt=Promise.resolve())).then(n).catch(r=>setTimeout(()=>{throw r},0));const Tgr=cv(Agr),uK="http://www.w3.org/1999/02/22-rdf-syntax-ns#",fK="http://www.w3.org/2001/XMLSchema#",cMe="http://www.w3.org/2000/10/swap/",$E={xsd:{decimal:`${fK}decimal`,boolean:`${fK}boolean`,double:`${fK}double`,integer:`${fK}integer`,string:`${fK}string`},rdf:{type:`${uK}type`,nil:`${uK}nil`,first:`${uK}first`,rest:`${uK}rest`,langString:`${uK}langString`},owl:{sameAs:"http://www.w3.org/2002/07/owl#sameAs"},r:{forSome:`${cMe}reify#forSome`,forAll:`${cMe}reify#forAll`},log:{implies:`${cMe}log#implies`}},{xsd:kue}=$E,$gr=/\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{8})|\\([^])/g,WUt={"\\":"\\","'":"'",'"':'"',n:` -`,r:"\r",t:" ",f:"\f",b:"\b",_:"_","~":"~",".":".","-":"-","!":"!",$:"$","&":"&","(":"(",")":")","*":"*","+":"+",",":",",";":";","=":"=","/":"/","?":"?","#":"#","@":"@","%":"%"},Igr=/[\x00-\x20<>\\"\{\}\|\^\`]/,Pgr={_iri:!0,_unescapedIri:!0,_simpleQuotedString:!0,_langcode:!0,_blank:!0,_newline:!0,_comment:!0,_whitespace:!0,_endOfFile:!0},Ogr=/$0^/;class Ngr{constructor(r){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]*)?$/,r=r||{},this._lineMode=!!r.lineMode){this._n3Mode=!1;for(const o in this)!(o in Pgr)&&this[o]instanceof RegExp&&(this[o]=Ogr)}else this._n3Mode=r.n3!==!1;this.comments=!!r.comments,this._literalClosingPos=0}_tokenizeToEnd(r,o){let l=this._input,u=l.length;for(;;){let w,v;for(;w=this._newline.exec(l);)this.comments&&(v=this._comment.exec(w[0]))&&d("comment",v[1],"",this._line,w[0].length),l=l.substr(w[0].length,l.length),u=l.length,this._line++;if(!w&&(w=this._whitespace.exec(l))&&(l=l.substr(w[0].length,l.length)),this._endOfFile.test(l))return o&&(this.comments&&(v=this._comment.exec(l))&&d("comment",v[1],"",this._line,l.length),l=null,d("eof","","",this._line,0)),this._input=l;const y=this._line,E=l[0];let A="",C="",R="",O=null,M=0,L=!1;switch(E){case"^":if(l.length<3)break;if(l[1]==="^"){if(this._previousMarker="^^",l=l.substr(2),l[0]!=="<"){L=!0;break}}else{this._n3Mode&&(M=1,A="^");break}case"<":if(O=this._unescapedIri.exec(l))A="IRI",C=O[1];else if(O=this._iri.exec(l)){if(C=this._unescape(O[1]),C===null||Igr.test(C))return h(this);A="IRI"}else l.length>1&&l[1]==="<"?(A="<<",M=2):this._n3Mode&&l.length>1&&l[1]==="="&&(A="inverse",M=2,C=">");break;case">":l.length>1&&l[1]===">"&&(A=">>",M=2);break;case"_":((O=this._blank.exec(l))||o&&(O=this._blank.exec(`${l} `)))&&(A="blank",R="_",C=O[1]);break;case'"':if(O=this._simpleQuotedString.exec(l))C=O[1];else if({value:C,matchLength:M}=this._parseLiteral(l),C===null)return h(this);(O!==null||M!==0)&&(A="literal",this._literalClosingPos=0);break;case"'":if(!this._lineMode){if(O=this._simpleApostropheString.exec(l))C=O[1];else if({value:C,matchLength:M}=this._parseLiteral(l),C===null)return h(this);(O!==null||M!==0)&&(A="literal",this._literalClosingPos=0)}break;case"?":this._n3Mode&&(O=this._variable.exec(l))&&(A="var",C=O[0]);break;case"@":this._previousMarker==="literal"&&(O=this._langcode.exec(l))?(A="langcode",C=O[1]):(O=this._keyword.exec(l))&&(A=O[0]);break;case".":if(l.length===1?o:l[1]<"0"||l[1]>"9"){A=".",M=1;break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"+":case"-":(O=this._number.exec(l)||o&&(O=this._number.exec(`${l} `)))&&(A="literal",C=O[0],R=typeof O[1]=="string"?kue.double:typeof O[2]=="string"?kue.decimal:kue.integer);break;case"B":case"b":case"p":case"P":case"G":case"g":(O=this._sparqlKeyword.exec(l))?A=O[0].toUpperCase():L=!0;break;case"f":case"t":(O=this._boolean.exec(l))?(A="literal",C=O[0],R=kue.boolean):L=!0;break;case"a":(O=this._shortPredicates.exec(l))?(A="abbreviation",C="a"):L=!0;break;case"=":this._n3Mode&&l.length>1&&(A="abbreviation",l[1]!==">"?(M=1,C="="):(M=2,C=">"));break;case"!":if(!this._n3Mode)break;case",":case";":case"[":case"]":case"(":case")":case"}":this._lineMode||(M=1,A=E);break;case"{":!this._lineMode&&l.length>=2&&(l[1]==="|"?(A="{|",M=2):(A=E,M=1));break;case"|":l.length>=2&&l[1]==="}"&&(A="|}",M=2);break;default:L=!0}if(L&&((this._previousMarker==="@prefix"||this._previousMarker==="PREFIX")&&(O=this._prefix.exec(l))?(A="prefix",C=O[1]||""):((O=this._prefixed.exec(l))||o&&(O=this._prefixed.exec(`${l} `)))&&(A="prefixed",R=O[1]||"",C=this._unescape(O[2]))),this._previousMarker==="^^")switch(A){case"prefixed":A="type";break;case"IRI":A="typeIRI";break;default:A=""}if(!A)return o||!/^'''|^"""/.test(l)&&/\n|\r/.test(l)?h(this):this._input=l;const H=M||O[0].length,G=d(A,C,R,y,H);this.previousToken=G,this._previousMarker=A,l=l.substr(H,l.length)}function d(w,v,y,E,A){const C=l?u-l.length:u,R=C+A,O={type:w,value:v,prefix:y,line:E,start:C,end:R};return r(null,O),O}function h(w){r(w._syntaxError(/^\S*/.exec(l)[0]))}}_unescape(r){let o=!1;const l=r.replace($gr,(u,d,h,w)=>{if(typeof d=="string")return String.fromCharCode(Number.parseInt(d,16));if(typeof h=="string"){let v=Number.parseInt(h,16);return v<=65535?String.fromCharCode(Number.parseInt(h,16)):String.fromCharCode(55296+((v-=65536)>>10),56320+(v&1023))}return w in WUt?WUt[w]:(o=!0,"")});return o?null:l}_parseLiteral(r){if(r.length>=3){const o=r.match(/^(?:"""|"|'''|'|)/)[0],l=o.length;let u=Math.max(this._literalClosingPos,l);for(;(u=r.indexOf(o,u))>0;){let d=0;for(;r[u-d-1]==="\\";)d++;if(d%2===0){const h=r.substring(l,u),w=h.split(/\r\n|\r|\n/).length-1,v=u+l;if(l===1&&w!==0||l===3&&this._lineMode)break;return this._line+=w,{value:this._unescape(h),matchLength:v}}u++}this._literalClosingPos=r.length-l+1}return{value:"",matchLength:0}}_syntaxError(r){this._input=null;const o=new Error(`Unexpected "${r}" on line ${this._line}.`);return o.context={token:void 0,line:this._line,previousToken:this.previousToken},o}_readStartingBom(r){return r.startsWith("\uFEFF")?r.substr(1):r}tokenize(r,o){if(this._line=1,typeof r=="string")if(this._input=this._readStartingBom(r),typeof o=="function")Tgr(()=>this._tokenizeToEnd(o,!0));else{const l=[];let u;if(this._tokenizeToEnd((d,h)=>d?u=d:l.push(h),!0),u)throw u;return l}else this._pendingBuffer=null,typeof r.setEncoding=="function"&&r.setEncoding("utf8"),r.on("data",l=>{this._input!==null&&l.length!==0&&(this._pendingBuffer&&(l=Kr.Buffer.concat([this._pendingBuffer,l]),this._pendingBuffer=null),l[l.length-1]&128?this._pendingBuffer=l:(typeof this._input>"u"?this._input=this._readStartingBom(typeof l=="string"?l:l.toString()):this._input+=l,this._tokenizeToEnd(o,!1)))}),r.on("end",()=>{typeof this._input=="string"&&this._tokenizeToEnd(o,!0)}),r.on("error",o)}}const{rdf:Mgr,xsd:L8}=$E;let _j,Dgr=0;const rFe={namedNode:fon,blankNode:don,variable:pon,literal:hon,defaultGraph:Bgr,quad:iFe,triple:iFe,fromTerm:PK,fromQuad:bon};class yk{constructor(r){this.id=r}get value(){return this.id}equals(r){return r instanceof yk?this.id===r.id:!!r&&this.termType===r.termType&&this.value===r.value}hashCode(){return 0}toJSON(){return{termType:this.termType,value:this.value}}}class con extends yk{get termType(){return"NamedNode"}}class aL extends yk{get termType(){return"Literal"}get value(){return this.id.substring(1,this.id.lastIndexOf('"'))}get language(){const r=this.id;let o=r.lastIndexOf('"')+1;return o0?"INF":"-INF")))),o===""||o===L8.string?new aL(`"${n}"`):new aL(`"${n}"^^${o}`)}function pon(n){return new jgr(n)}function Bgr(){return _j}function iFe(n,r,o,l){return new uon(n,r,o,l)}function PK(n){if(n instanceof yk)return n;switch(n.termType){case"NamedNode":return fon(n.value);case"BlankNode":return don(n.value);case"Variable":return pon(n.value);case"DefaultGraph":return _j;case"Literal":return hon(n.value,n.language||n.datatype);case"Quad":return bon(n);default:throw new Error(`Unexpected termType: ${n.termType}`)}}function bon(n){if(n instanceof uon)return n;if(n.termType!=="Quad")throw new Error(`Unexpected termType: ${n.termType}`);return iFe(PK(n.subject),PK(n.predicate),PK(n.object),PK(n.graph))}let HUt=0;class gon{constructor(r){this._contextStack=[],this._graph=null,r=r||{},this._setBase(r.baseIRI),r.factory&&won(this,r.factory);const o=typeof r.format=="string"?r.format.match(/\w*$/)[0].toLowerCase():"",l=/turtle/.test(o),u=/trig/.test(o),d=/triple/.test(o),h=/quad/.test(o),w=this._n3Mode=/n3/.test(o),v=d||h;(this._supportsNamedGraphs=!(l||w))||(this._readPredicateOrNamedGraph=this._readPredicate),this._supportsQuads=!(l||u||d||w),this._supportsRDFStar=o===""||/star|\*$/.test(o),v&&(this._resolveRelativeIRI=y=>null),this._blankNodePrefix=typeof r.blankNodePrefix!="string"?"":r.blankNodePrefix.replace(/^(?!_:)/,"_:"),this._lexer=r.lexer||new Ngr({lineMode:v,n3:w}),this._explicitQuantifiers=!!r.explicitQuantifiers}static _resetBlankNodePrefix(){HUt=0}_setBase(r){if(!r)this._base="",this._basePath="";else{const o=r.indexOf("#");o>=0&&(r=r.substr(0,o)),this._base=r,this._basePath=r.indexOf("/")<0?r:r.replace(/[^\/?]*(?:\?.*)?$/,""),r=r.match(/^(?:([a-z][a-z0-9+.-]*:))?(?:\/\/[^\/]*)?/i),this._baseRoot=r[0],this._baseScheme=r[1]}}_saveContext(r,o,l,u,d){const h=this._n3Mode;this._contextStack.push({type:r,subject:l,predicate:u,object:d,graph:o,inverse:h?this._inversePredicate:!1,blankPrefix:h?this._prefixes._:"",quantified:h?this._quantified:null}),h&&(this._inversePredicate=!1,this._prefixes._=this._graph?`${this._graph.value}.`:".",this._quantified=Object.create(this._quantified))}_restoreContext(r,o){const l=this._contextStack.pop();if(!l||l.type!==r)return this._error(`Unexpected ${o.type}`,o);this._subject=l.subject,this._predicate=l.predicate,this._object=l.object,this._graph=l.graph,this._n3Mode&&(this._inversePredicate=l.inverse,this._prefixes._=l.blankPrefix,this._quantified=l.quantified)}_readInTopContext(r){switch(r.type){case"eof":return this._graph!==null?this._error("Unclosed graph",r):(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(r)}}_readEntity(r,o){let l;switch(r.type){case"IRI":case"typeIRI":const u=this._resolveIRI(r.value);if(u===null)return this._error("Invalid IRI",r);l=this._factory.namedNode(u);break;case"type":case"prefixed":const d=this._prefixes[r.prefix];if(d===void 0)return this._error(`Undefined prefix "${r.prefix}:"`,r);l=this._factory.namedNode(d+r.value);break;case"blank":l=this._factory.blankNode(this._prefixes[r.prefix]+r.value);break;case"var":l=this._factory.variable(r.value.substr(1));break;default:return this._error(`Expected entity but got ${r.type}`,r)}return!o&&this._n3Mode&&l.id in this._quantified&&(l=this._quantified[l.id]),l}_readSubject(r){switch(this._predicate=null,r.type){case"[":return this._saveContext("blank",this._graph,this._subject=this._factory.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._factory.blankNode(),null,null),this._readSubject):this._error("Unexpected graph",r);case"}":return this._readPunctuation(r);case"@forSome":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORSOME,this._quantifier="blankNode",this._readQuantifierList):this._error('Unexpected "@forSome"',r);case"@forAll":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORALL,this._quantifier="variable",this._readQuantifierList):this._error('Unexpected "@forAll"',r);case"literal":if(!this._n3Mode)return this._error("Unexpected literal",r);if(r.prefix.length===0)return this._literalValue=r.value,this._completeSubjectLiteral;this._subject=this._factory.literal(r.value,this._factory.namedNode(r.prefix));break;case"<<":return this._supportsRDFStar?(this._saveContext("<<",this._graph,null,null,null),this._graph=null,this._readSubject):this._error("Unexpected RDF-star syntax",r);default:if((this._subject=this._readEntity(r))===void 0)return;if(this._n3Mode)return this._getPathReader(this._readPredicateOrNamedGraph)}return this._readPredicateOrNamedGraph}_readPredicate(r){const o=r.type;switch(o){case"inverse":this._inversePredicate=!0;case"abbreviation":this._predicate=this.ABBREVIATIONS[r.value];break;case".":case"]":case"}":return this._predicate===null?this._error(`Unexpected ${o}`,r):(this._subject=null,o==="]"?this._readBlankNodeTail(r):this._readPunctuation(r));case";":return this._predicate!==null?this._readPredicate:this._error("Expected predicate but got ;",r);case"[":if(this._n3Mode)return this._saveContext("blank",this._graph,this._subject,this._subject=this._factory.blankNode(),null),this._readBlankNodeHead;case"blank":if(!this._n3Mode)return this._error("Disallowed blank node as predicate",r);default:if((this._predicate=this._readEntity(r))===void 0)return}return this._readObject}_readObject(r){switch(r.type){case"literal":if(r.prefix.length===0)return this._literalValue=r.value,this._readDataTypeOrLang;this._object=this._factory.literal(r.value,this._factory.namedNode(r.prefix));break;case"[":return this._saveContext("blank",this._graph,this._subject,this._predicate,this._subject=this._factory.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._factory.blankNode()),this._readSubject):this._error("Unexpected graph",r);case"<<":return this._supportsRDFStar?(this._saveContext("<<",this._graph,this._subject,this._predicate,null),this._graph=null,this._readSubject):this._error("Unexpected RDF-star syntax",r);default:if((this._object=this._readEntity(r))===void 0)return;if(this._n3Mode)return this._getPathReader(this._getContextEndReader())}return this._getContextEndReader()}_readPredicateOrNamedGraph(r){return r.type==="{"?this._readGraph(r):this._readPredicate(r)}_readGraph(r){return r.type!=="{"?this._error(`Expected graph but got ${r.type}`,r):(this._graph=this._subject,this._subject=null,this._readSubject)}_readBlankNodeHead(r){return r.type==="]"?(this._subject=null,this._readBlankNodeTail(r)):(this._predicate=null,this._readPredicate(r))}_readBlankNodeTail(r){if(r.type!=="]")return this._readBlankNodePunctuation(r);this._subject!==null&&this._emit(this._subject,this._predicate,this._object,this._graph);const o=this._predicate===null;return this._restoreContext("blank",r),this._object!==null?this._getContextEndReader():this._predicate!==null?this._readObject:o?this._readPredicateOrNamedGraph:this._readPredicateAfterBlank}_readPredicateAfterBlank(r){switch(r.type){case".":case"}":return this._subject=null,this._readPunctuation(r);default:return this._readPredicate(r)}}_readListItem(r){let o=null,l=null,u=this._readListItem;const d=this._subject,h=this._contextStack,w=h[h.length-1];switch(r.type){case"[":this._saveContext("blank",this._graph,l=this._factory.blankNode(),this.RDF_FIRST,this._subject=o=this._factory.blankNode()),u=this._readBlankNodeHead;break;case"(":this._saveContext("list",this._graph,l=this._factory.blankNode(),this.RDF_FIRST,this.RDF_NIL),this._subject=null;break;case")":if(this._restoreContext("list",r),h.length!==0&&h[h.length-1].type==="list"&&this._emit(this._subject,this._predicate,this._object,this._graph),this._predicate===null){if(u=this._readPredicate,this._subject===this.RDF_NIL)return u}else if(u=this._getContextEndReader(),this._object===this.RDF_NIL)return u;l=this.RDF_NIL;break;case"literal":r.prefix.length===0?(this._literalValue=r.value,u=this._readListItemDataTypeOrLang):(o=this._factory.literal(r.value,this._factory.namedNode(r.prefix)),u=this._getContextEndReader());break;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._subject,this._predicate,this._graph=this._factory.blankNode()),this._readSubject):this._error("Unexpected graph",r);default:if((o=this._readEntity(r))===void 0)return}if(l===null&&(this._subject=l=this._factory.blankNode()),d===null?w.predicate===null?w.subject=l:w.object=l:this._emit(d,this.RDF_REST,l,this._graph),o!==null){if(this._n3Mode&&(r.type==="IRI"||r.type==="prefixed"))return this._saveContext("item",this._graph,l,this.RDF_FIRST,o),this._subject=o,this._predicate=null,this._getPathReader(this._readListItem);this._emit(l,this.RDF_FIRST,o,this._graph)}return u}_readDataTypeOrLang(r){return this._completeObjectLiteral(r,!1)}_readListItemDataTypeOrLang(r){return this._completeObjectLiteral(r,!0)}_completeLiteral(r){let o=this._factory.literal(this._literalValue);switch(r.type){case"type":case"typeIRI":const l=this._readEntity(r);if(l===void 0)return;o=this._factory.literal(this._literalValue,l),r=null;break;case"langcode":o=this._factory.literal(this._literalValue,r.value),r=null;break}return{token:r,literal:o}}_completeSubjectLiteral(r){return this._subject=this._completeLiteral(r).literal,this._readPredicateOrNamedGraph}_completeObjectLiteral(r,o){const l=this._completeLiteral(r);if(l)return this._object=l.literal,o&&this._emit(this._subject,this.RDF_FIRST,this._object,this._graph),l.token===null?this._getContextEndReader():(this._readCallback=this._getContextEndReader(),this._readCallback(l.token))}_readFormulaTail(r){return r.type!=="}"?this._readPunctuation(r):(this._subject!==null&&this._emit(this._subject,this._predicate,this._object,this._graph),this._restoreContext("formula",r),this._object===null?this._readPredicate:this._getContextEndReader())}_readPunctuation(r){let o,l=this._graph;const u=this._subject,d=this._inversePredicate;switch(r.type){case"}":if(this._graph===null)return this._error("Unexpected graph closing",r);if(this._n3Mode)return this._readFormulaTail(r);this._graph=null;case".":this._subject=null,o=this._contextStack.length?this._readSubject:this._readInTopContext,d&&(this._inversePredicate=!1);break;case";":o=this._readPredicate;break;case",":o=this._readObject;break;case"{|":if(!this._supportsRDFStar)return this._error("Unexpected RDF-star syntax",r);const h=this._predicate,w=this._object;this._subject=this._factory.quad(u,h,w,this.DEFAULTGRAPH),o=this._readPredicate;break;case"|}":if(this._subject.termType!=="Quad")return this._error("Unexpected asserted triple closing",r);this._subject=null,o=this._readPunctuation;break;default:if(this._supportsQuads&&this._graph===null&&(l=this._readEntity(r))!==void 0){o=this._readQuadPunctuation;break}return this._error(`Expected punctuation to follow "${this._object.id}"`,r)}if(u!==null){const h=this._predicate,w=this._object;d?this._emit(w,h,u,l):this._emit(u,h,w,l)}return o}_readBlankNodePunctuation(r){let o;switch(r.type){case";":o=this._readPredicate;break;case",":o=this._readObject;break;default:return this._error(`Expected punctuation to follow "${this._object.id}"`,r)}return this._emit(this._subject,this._predicate,this._object,this._graph),o}_readQuadPunctuation(r){return r.type!=="."?this._error("Expected dot to follow quad",r):this._readInTopContext}_readPrefix(r){return r.type!=="prefix"?this._error("Expected prefix to follow @prefix",r):(this._prefix=r.value,this._readPrefixIRI)}_readPrefixIRI(r){if(r.type!=="IRI")return this._error(`Expected IRI to follow prefix "${this._prefix}:"`,r);const o=this._readEntity(r);return this._prefixes[this._prefix]=o.value,this._prefixCallback(this._prefix,o),this._readDeclarationPunctuation}_readBaseIRI(r){const o=r.type==="IRI"&&this._resolveIRI(r.value);return o?(this._setBase(o),this._readDeclarationPunctuation):this._error("Expected valid IRI to follow base declaration",r)}_readNamedGraphLabel(r){switch(r.type){case"IRI":case"blank":case"prefixed":return this._readSubject(r),this._readGraph;case"[":return this._readNamedGraphBlankLabel;default:return this._error("Invalid graph label",r)}}_readNamedGraphBlankLabel(r){return r.type!=="]"?this._error("Invalid graph label",r):(this._subject=this._factory.blankNode(),this._readGraph)}_readDeclarationPunctuation(r){return this._sparqlStyle?(this._sparqlStyle=!1,this._readInTopContext(r)):r.type!=="."?this._error("Expected declaration to end with a dot",r):this._readInTopContext}_readQuantifierList(r){let o;switch(r.type){case"IRI":case"prefixed":if((o=this._readEntity(r,!0))!==void 0)break;default:return this._error(`Unexpected ${r.type}`,r)}return this._explicitQuantifiers?(this._subject===null?this._emit(this._graph||this.DEFAULTGRAPH,this._predicate,this._subject=this._factory.blankNode(),this.QUANTIFIERS_GRAPH):this._emit(this._subject,this.RDF_REST,this._subject=this._factory.blankNode(),this.QUANTIFIERS_GRAPH),this._emit(this._subject,this.RDF_FIRST,o,this.QUANTIFIERS_GRAPH)):this._quantified[o.id]=this._factory[this._quantifier](this._factory.blankNode().value),this._readQuantifierPunctuation}_readQuantifierPunctuation(r){return r.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(r))}_getPathReader(r){return this._afterPath=r,this._readPath}_readPath(r){switch(r.type){case"!":return this._readForwardPath;case"^":return this._readBackwardPath;default:const o=this._contextStack,l=o.length&&o[o.length-1];if(l&&l.type==="item"){const u=this._subject;this._restoreContext("item",r),this._emit(this._subject,this.RDF_FIRST,u,this._graph)}return this._afterPath(r)}}_readForwardPath(r){let o,l;const u=this._factory.blankNode();if((l=this._readEntity(r))!==void 0)return this._predicate===null?(o=this._subject,this._subject=u):(o=this._object,this._object=u),this._emit(o,l,u,this._graph),this._readPath}_readBackwardPath(r){const o=this._factory.blankNode();let l,u;if((l=this._readEntity(r))!==void 0)return this._predicate===null?(u=this._subject,this._subject=o):(u=this._object,this._object=o),this._emit(o,l,u,this._graph),this._readPath}_readRDFStarTailOrGraph(r){return r.type!==">>"?this._supportsQuads&&this._graph===null&&(this._graph=this._readEntity(r))!==void 0?this._readRDFStarTail:this._error(`Expected >> to follow "${this._object.id}"`,r):this._readRDFStarTail(r)}_readRDFStarTail(r){if(r.type!==">>")return this._error(`Expected >> but got ${r.type}`,r);const o=this._factory.quad(this._subject,this._predicate,this._object,this._graph||this.DEFAULTGRAPH);return this._restoreContext("<<",r),this._subject===null?(this._subject=o,this._readPredicate):(this._object=o,this._getContextEndReader())}_getContextEndReader(){const r=this._contextStack;if(!r.length)return this._readPunctuation;switch(r[r.length-1].type){case"blank":return this._readBlankNodeTail;case"list":return this._readListItem;case"formula":return this._readFormulaTail;case"<<":return this._readRDFStarTailOrGraph}}_emit(r,o,l,u){this._callback(null,this._factory.quad(r,o,l,u||this.DEFAULTGRAPH))}_error(r,o){const l=new Error(`${r} on line ${o.line}.`);l.context={token:o,line:o.line,previousToken:this._lexer.previousToken},this._callback(l),this._callback=Cue}_resolveIRI(r){return/^[a-z][a-z0-9+.-]*:/i.test(r)?r:this._resolveRelativeIRI(r)}_resolveRelativeIRI(r){if(!r.length)return this._base;switch(r[0]){case"#":return this._base+r;case"?":return this._base.replace(/(?:\?.*)?$/,r);case"/":return(r[1]==="/"?this._baseScheme:this._baseRoot)+this._removeDotSegments(r);default:return/^[^/:]*:/.test(r)?null:this._removeDotSegments(this._basePath+r)}}_removeDotSegments(r){if(!/(^|\/)\.\.?($|[/#?])/.test(r))return r;const o=r.length;let l="",u=-1,d=-1,h=0,w="/";for(;u=d&&(l=l.substr(0,h)),w!=="/")return`${l}/${r.substr(u+1)}`;h=u+1}}}w=r[++u]}return l+r.substring(h)}parse(r,o,l){let u,d,h;if(o&&(o.onQuad||o.onPrefix||o.onComment)?(u=o.onQuad,d=o.onPrefix,h=o.onComment):(u=o,d=l),this._readCallback=this._readInTopContext,this._sparqlStyle=!1,this._prefixes=Object.create(null),this._prefixes._=this._blankNodePrefix?this._blankNodePrefix.substr(2):`b${HUt++}_`,this._prefixCallback=d||Cue,this._inversePredicate=!1,this._quantified=Object.create(null),!u){const v=[];let y;if(this._callback=(E,A)=>{E?y=E:A&&v.push(A)},this._lexer.tokenize(r).every(E=>this._readCallback=this._readCallback(E)),y)throw y;return v}let w=(v,y)=>{v!==null?(this._callback(v),this._callback=Cue):this._readCallback&&(this._readCallback=this._readCallback(y))};h&&(this._lexer.comments=!0,w=(v,y)=>{v!==null?(this._callback(v),this._callback=Cue):this._readCallback&&(y.type==="comment"?h(y.value):this._readCallback=this._readCallback(y))}),this._callback=u,this._lexer.tokenize(r,w)}}function Cue(){}function won(n,r){n._factory=r,n.DEFAULTGRAPH=r.defaultGraph(),n.RDF_FIRST=r.namedNode($E.rdf.first),n.RDF_REST=r.namedNode($E.rdf.rest),n.RDF_NIL=r.namedNode($E.rdf.nil),n.N3_FORALL=r.namedNode($E.r.forAll),n.N3_FORSOME=r.namedNode($E.r.forSome),n.ABBREVIATIONS={a:r.namedNode($E.rdf.type),"=":r.namedNode($E.owl.sameAs),">":r.namedNode($E.log.implies)},n.QUANTIFIERS_GRAPH=r.namedNode("urn:n3:quantifiers")}won(gon.prototype,rFe);var mon={exports:{}},uMe={exports:{}},Ff={ArrayIsArray(n){return Array.isArray(n)},ArrayPrototypeIncludes(n,r){return n.includes(r)},ArrayPrototypeIndexOf(n,r){return n.indexOf(r)},ArrayPrototypeJoin(n,r){return n.join(r)},ArrayPrototypeMap(n,r){return n.map(r)},ArrayPrototypePop(n,r){return n.pop(r)},ArrayPrototypePush(n,r){return n.push(r)},ArrayPrototypeSlice(n,r,o){return n.slice(r,o)},Error,FunctionPrototypeCall(n,r,...o){return n.call(r,...o)},FunctionPrototypeSymbolHasInstance(n,r){return Function.prototype[Symbol.hasInstance].call(n,r)},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(n,r){return Object.defineProperties(n,r)},ObjectDefineProperty(n,r,o){return Object.defineProperty(n,r,o)},ObjectGetOwnPropertyDescriptor(n,r){return Object.getOwnPropertyDescriptor(n,r)},ObjectKeys(n){return Object.keys(n)},ObjectSetPrototypeOf(n,r){return Object.setPrototypeOf(n,r)},Promise,PromisePrototypeCatch(n,r){return n.catch(r)},PromisePrototypeThen(n,r,o){return n.then(r,o)},PromiseReject(n){return Promise.reject(n)},PromiseResolve(n){return Promise.resolve(n)},ReflectApply:Reflect.apply,RegExpPrototypeTest(n,r){return n.test(r)},SafeSet:Set,String,StringPrototypeSlice(n,r,o){return n.slice(r,o)},StringPrototypeToLowerCase(n){return n.toLowerCase()},StringPrototypeToUpperCase(n){return n.toUpperCase()},StringPrototypeTrim(n){return n.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(n,r,o){return n.set(r,o)},Boolean,Uint8Array},yon={exports:{}};(function(n){const r=Kr,{kResistStopPropagation:o,SymbolDispose:l}=Ff,u=globalThis.AbortSignal||$o().AbortSignal,d=globalThis.AbortController||$o().AbortController,h=Object.getPrototypeOf(async function(){}).constructor,w=globalThis.Blob||r.Blob,v=typeof w<"u"?function(R){return R instanceof w}:function(R){return!1},y=(C,R)=>{if(C!==void 0&&(C===null||typeof C!="object"||!("aborted"in C)))throw new ERR_INVALID_ARG_TYPE(R,"AbortSignal",C)},E=(C,R)=>{if(typeof C!="function")throw new ERR_INVALID_ARG_TYPE(R,"Function",C)};class A extends Error{constructor(R){if(!Array.isArray(R))throw new TypeError(`Expected input to be an Array, got ${typeof R}`);let O="";for(let M=0;M{C=M,R=L}),resolve:C,reject:R}},promisify(C){return new Promise((R,O)=>{C((M,...L)=>M?O(M):R(...L))})},debuglog(){return function(){}},format(C,...R){return C.replace(/%([sdifj])/g,function(...[O,M]){const L=R.shift();return M==="f"?L.toFixed(6):M==="j"?JSON.stringify(L):M==="s"&&typeof L=="object"?`${L.constructor!==Object?L.constructor.name:""} {}`.trim():L.toString()})},inspect(C){switch(typeof C){case"string":if(C.includes("'"))if(C.includes('"')){if(!C.includes("`")&&!C.includes("${"))return`\`${C}\``}else return`"${C}"`;return`'${C}'`;case"number":return isNaN(C)?"NaN":Object.is(C,-0)?String(C):C;case"bigint":return`${String(C)}n`;case"boolean":case"undefined":return String(C);case"object":return"{}"}},types:{isAsyncFunction(C){return C instanceof h},isArrayBufferView(C){return ArrayBuffer.isView(C)}},isBlob:v,deprecate(C,R){return C},addAbortListener:Ns.addAbortListener||function(R,O){if(R===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",R);y(R,"signal"),E(O,"listener");let M;return R.aborted?queueMicrotask(()=>O()):(R.addEventListener("abort",O,{__proto__:null,once:!0,[o]:!0}),M=()=>{R.removeEventListener("abort",O)}),{__proto__:null,[l](){var L;(L=M)===null||L===void 0||L()}}},AbortSignalAny:u.any||function(R){if(R.length===1)return R[0];const O=new d,M=()=>O.abort();return R.forEach(L=>{y(L,"signals"),L.addEventListener("abort",M,{once:!0})}),O.signal.addEventListener("abort",()=>{R.forEach(L=>L.removeEventListener("abort",M))},{once:!0}),O.signal}},n.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(yon);var f1=yon.exports,UUe={};const{format:Wgr,inspect:lhe,AggregateError:Hgr}=f1,Ugr=globalThis.AggregateError||Hgr,Ggr=Symbol("kIsNodeError"),Vgr=["string","function","number","object","Function","Object","boolean","bigint","symbol"],zgr=/^([A-Z][a-z0-9]*)+$/,Kgr="__node_internal_",Lbe={};function lP(n,r){if(!n)throw new Lbe.ERR_INTERNAL_ASSERTION(r)}function UUt(n){let r="",o=n.length;const l=n[0]==="-"?1:0;for(;o>=l+4;o-=3)r=`_${n.slice(o-3,o)}${r}`;return`${n.slice(0,o)}${r}`}function qgr(n,r,o){if(typeof r=="function")return lP(r.length<=o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${r.length}).`),r(...o);const l=(r.match(/%[dfijoOs]/g)||[]).length;return lP(l===o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${l}).`),o.length===0?r:Wgr(r,...o)}function Qp(n,r,o){o||(o=Error);class l extends o{constructor(...d){super(qgr(n,r,d))}toString(){return`${this.name} [${n}]: ${this.message}`}}Object.defineProperties(l.prototype,{name:{value:o.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${n}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),l.prototype.code=n,l.prototype[Ggr]=!0,Lbe[n]=l}function GUt(n){const r=Kgr+n.name;return Object.defineProperty(n,"name",{value:r}),n}function Xgr(n,r){if(n&&r&&n!==r){if(Array.isArray(r.errors))return r.errors.push(n),r;const o=new Ugr([r,n],r.message);return o.code=r.code,o}return n||r}let Jgr=class extends Error{constructor(r="The operation was aborted",o=void 0){if(o!==void 0&&typeof o!="object")throw new Lbe.ERR_INVALID_ARG_TYPE("options","Object",o);super(r,o),this.code="ABORT_ERR",this.name="AbortError"}};Qp("ERR_ASSERTION","%s",Error);Qp("ERR_INVALID_ARG_TYPE",(n,r,o)=>{lP(typeof n=="string","'name' must be a string"),Array.isArray(r)||(r=[r]);let l="The ";n.endsWith(" argument")?l+=`${n} `:l+=`"${n}" ${n.includes(".")?"property":"argument"} `,l+="must be ";const u=[],d=[],h=[];for(const v of r)lP(typeof v=="string","All expected entries have to be of type string"),Vgr.includes(v)?u.push(v.toLowerCase()):zgr.test(v)?d.push(v):(lP(v!=="object",'The value "object" should be written as "Object"'),h.push(v));if(d.length>0){const v=u.indexOf("object");v!==-1&&(u.splice(u,v,1),d.push("Object"))}if(u.length>0){switch(u.length){case 1:l+=`of type ${u[0]}`;break;case 2:l+=`one of type ${u[0]} or ${u[1]}`;break;default:{const v=u.pop();l+=`one of type ${u.join(", ")}, or ${v}`}}(d.length>0||h.length>0)&&(l+=" or ")}if(d.length>0){switch(d.length){case 1:l+=`an instance of ${d[0]}`;break;case 2:l+=`an instance of ${d[0]} or ${d[1]}`;break;default:{const v=d.pop();l+=`an instance of ${d.join(", ")}, or ${v}`}}h.length>0&&(l+=" or ")}switch(h.length){case 0:break;case 1:h[0].toLowerCase()!==h[0]&&(l+="an "),l+=`${h[0]}`;break;case 2:l+=`one of ${h[0]} or ${h[1]}`;break;default:{const v=h.pop();l+=`one of ${h.join(", ")}, or ${v}`}}if(o==null)l+=`. Received ${o}`;else if(typeof o=="function"&&o.name)l+=`. Received function ${o.name}`;else if(typeof o=="object"){var w;if((w=o.constructor)!==null&&w!==void 0&&w.name)l+=`. Received an instance of ${o.constructor.name}`;else{const v=lhe(o,{depth:-1});l+=`. Received ${v}`}}else{let v=lhe(o,{colors:!1});v.length>25&&(v=`${v.slice(0,25)}...`),l+=`. Received type ${typeof o} (${v})`}return l},TypeError);Qp("ERR_INVALID_ARG_VALUE",(n,r,o="is invalid")=>{let l=lhe(r);return l.length>128&&(l=l.slice(0,128)+"..."),`The ${n.includes(".")?"property":"argument"} '${n}' ${o}. Received ${l}`},TypeError);Qp("ERR_INVALID_RETURN_VALUE",(n,r,o)=>{var l;const u=o!=null&&(l=o.constructor)!==null&&l!==void 0&&l.name?`instance of ${o.constructor.name}`:`type ${typeof o}`;return`Expected ${n} to be returned from the "${r}" function but got ${u}.`},TypeError);Qp("ERR_MISSING_ARGS",(...n)=>{lP(n.length>0,"At least one arg needs to be specified");let r;const o=n.length;switch(n=(Array.isArray(n)?n:[n]).map(l=>`"${l}"`).join(" or "),o){case 1:r+=`The ${n[0]} argument`;break;case 2:r+=`The ${n[0]} and ${n[1]} arguments`;break;default:{const l=n.pop();r+=`The ${n.join(", ")}, and ${l} arguments`}break}return`${r} must be specified`},TypeError);Qp("ERR_OUT_OF_RANGE",(n,r,o)=>{lP(r,'Missing "range" argument');let l;return Number.isInteger(o)&&Math.abs(o)>2**32?l=UUt(String(o)):typeof o=="bigint"?(l=String(o),(o>2n**32n||o<-(2n**32n))&&(l=UUt(l)),l+="n"):l=lhe(o),`The value of "${n}" is out of range. It must be ${r}. Received ${l}`},RangeError);Qp("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);Qp("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);Qp("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);Qp("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);Qp("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);Qp("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Qp("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);Qp("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);Qp("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);Qp("ERR_STREAM_WRITE_AFTER_END","write after end",Error);Qp("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var I0={AbortError:Jgr,aggregateTwoErrors:GUt(Xgr),hideStackFrames:GUt,codes:Lbe};const{ArrayIsArray:GUe,ArrayPrototypeIncludes:von,ArrayPrototypeJoin:_on,ArrayPrototypeMap:Ygr,NumberIsInteger:VUe,NumberIsNaN:Qgr,NumberMAX_SAFE_INTEGER:Zgr,NumberMIN_SAFE_INTEGER:e1r,NumberParseInt:t1r,ObjectPrototypeHasOwnProperty:n1r,RegExpPrototypeExec:Son,String:r1r,StringPrototypeToUpperCase:i1r,StringPrototypeTrim:o1r}=Ff,{hideStackFrames:gv,codes:{ERR_SOCKET_BAD_PORT:s1r,ERR_INVALID_ARG_TYPE:Xb,ERR_INVALID_ARG_VALUE:Sj,ERR_OUT_OF_RANGE:TP,ERR_UNKNOWN_SIGNAL:VUt}}=I0,{normalizeEncoding:l1r}=f1,{isAsyncFunction:a1r,isArrayBufferView:c1r}=f1.types,zUt={};function u1r(n){return n===(n|0)}function f1r(n){return n===n>>>0}const d1r=/^[0-7]+$/,h1r="must be a 32-bit unsigned integer or an octal string";function p1r(n,r,o){if(typeof n>"u"&&(n=o),typeof n=="string"){if(Son(d1r,n)===null)throw new Sj(r,n,h1r);n=t1r(n,8)}return Eon(n,r),n}const b1r=gv((n,r,o=e1r,l=Zgr)=>{if(typeof n!="number")throw new Xb(r,"number",n);if(!VUe(n))throw new TP(r,"an integer",n);if(nl)throw new TP(r,`>= ${o} && <= ${l}`,n)}),g1r=gv((n,r,o=-2147483648,l=2147483647)=>{if(typeof n!="number")throw new Xb(r,"number",n);if(!VUe(n))throw new TP(r,"an integer",n);if(nl)throw new TP(r,`>= ${o} && <= ${l}`,n)}),Eon=gv((n,r,o=!1)=>{if(typeof n!="number")throw new Xb(r,"number",n);if(!VUe(n))throw new TP(r,"an integer",n);const l=o?1:0,u=4294967295;if(nu)throw new TP(r,`>= ${l} && <= ${u}`,n)});function zUe(n,r){if(typeof n!="string")throw new Xb(r,"string",n)}function w1r(n,r,o=void 0,l){if(typeof n!="number")throw new Xb(r,"number",n);if(o!=null&&nl||(o!=null||l!=null)&&Qgr(n))throw new TP(r,`${o!=null?`>= ${o}`:""}${o!=null&&l!=null?" && ":""}${l!=null?`<= ${l}`:""}`,n)}const m1r=gv((n,r,o)=>{if(!von(o,n)){const u="must be one of: "+_on(Ygr(o,d=>typeof d=="string"?`'${d}'`:r1r(d)),", ");throw new Sj(r,n,u)}});function kon(n,r){if(typeof n!="boolean")throw new Xb(r,"boolean",n)}function fMe(n,r,o){return n==null||!n1r(n,r)?o:n[r]}const y1r=gv((n,r,o=null)=>{const l=fMe(o,"allowArray",!1),u=fMe(o,"allowFunction",!1);if(!fMe(o,"nullable",!1)&&n===null||!l&&GUe(n)||typeof n!="object"&&(!u||typeof n!="function"))throw new Xb(r,"Object",n)}),v1r=gv((n,r)=>{if(n!=null&&typeof n!="object"&&typeof n!="function")throw new Xb(r,"a dictionary",n)}),jbe=gv((n,r,o=0)=>{if(!GUe(n))throw new Xb(r,"Array",n);if(n.length{if(!c1r(n))throw new Xb(r,["Buffer","TypedArray","DataView"],n)});function x1r(n,r){const o=l1r(r),l=n.length;if(o==="hex"&&l%2!==0)throw new Sj("encoding",r,`is invalid for data of length ${l}`)}function C1r(n,r="Port",o=!0){if(typeof n!="number"&&typeof n!="string"||typeof n=="string"&&o1r(n).length===0||+n!==+n>>>0||n>65535||n===0&&!o)throw new s1r(r,n,o);return n|0}const Ron=gv((n,r)=>{if(n!==void 0&&(n===null||typeof n!="object"||!("aborted"in n)))throw new Xb(r,"AbortSignal",n)}),A1r=gv((n,r)=>{if(typeof n!="function")throw new Xb(r,"Function",n)}),T1r=gv((n,r)=>{if(typeof n!="function"||a1r(n))throw new Xb(r,"Function",n)}),$1r=gv((n,r)=>{if(n!==void 0)throw new Xb(r,"undefined",n)});function I1r(n,r,o){if(!von(o,n))throw new Xb(r,`('${_on(o,"|")}')`,n)}const P1r=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function KUt(n,r){if(typeof n>"u"||!Son(P1r,n))throw new Sj(r,n,'must be an array or string of format "; rel=preload; as=style"')}function O1r(n){if(typeof n=="string")return KUt(n,"hints"),n;if(GUe(n)){const r=n.length;let o="";if(r===0)return o;for(let l=0;l; rel=preload; as=style"')}var CJ={isInt32:u1r,isUint32:f1r,parseFileMode:p1r,validateArray:jbe,validateStringArray:_1r,validateBooleanArray:S1r,validateAbortSignalArray:E1r,validateBoolean:kon,validateBuffer:R1r,validateDictionary:v1r,validateEncoding:x1r,validateFunction:A1r,validateInt32:g1r,validateInteger:b1r,validateNumber:w1r,validateObject:y1r,validateOneOf:m1r,validatePlainFunction:T1r,validatePort:C1r,validateSignalName:k1r,validateString:zUe,validateUint32:Eon,validateUndefined:$1r,validateUnion:I1r,validateAbortSignal:Ron,validateLinkHeaderValue:O1r},KUe={exports:{}};const{SymbolAsyncIterator:qUt,SymbolIterator:XUt,SymbolFor:sO}=Ff,xon=sO("nodejs.stream.destroyed"),Con=sO("nodejs.stream.errored"),oFe=sO("nodejs.stream.readable"),sFe=sO("nodejs.stream.writable"),Aon=sO("nodejs.stream.disturbed"),N1r=sO("nodejs.webstream.isClosedPromise"),M1r=sO("nodejs.webstream.controllerErrorFunction");function Fbe(n,r=!1){var o;return!!(n&&typeof n.pipe=="function"&&typeof n.on=="function"&&(!r||typeof n.pause=="function"&&typeof n.resume=="function")&&(!n._writableState||((o=n._readableState)===null||o===void 0?void 0:o.readable)!==!1)&&(!n._writableState||n._readableState))}function Bbe(n){var r;return!!(n&&typeof n.write=="function"&&typeof n.on=="function"&&(!n._readableState||((r=n._writableState)===null||r===void 0?void 0:r.writable)!==!1))}function D1r(n){return!!(n&&typeof n.pipe=="function"&&n._readableState&&typeof n.on=="function"&&typeof n.write=="function")}function vk(n){return n&&(n._readableState||n._writableState||typeof n.write=="function"&&typeof n.on=="function"||typeof n.pipe=="function"&&typeof n.on=="function")}function Ton(n){return!!(n&&!vk(n)&&typeof n.pipeThrough=="function"&&typeof n.getReader=="function"&&typeof n.cancel=="function")}function $on(n){return!!(n&&!vk(n)&&typeof n.getWriter=="function"&&typeof n.abort=="function")}function Ion(n){return!!(n&&!vk(n)&&typeof n.readable=="object"&&typeof n.writable=="object")}function L1r(n){return Ton(n)||$on(n)||Ion(n)}function j1r(n,r){return n==null?!1:r===!0?typeof n[qUt]=="function":r===!1?typeof n[XUt]=="function":typeof n[qUt]=="function"||typeof n[XUt]=="function"}function Wbe(n){if(!vk(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!!(n.destroyed||n[xon]||l!=null&&l.destroyed)}function Pon(n){if(!Bbe(n))return null;if(n.writableEnded===!0)return!0;const r=n._writableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function F1r(n,r){if(!Bbe(n))return null;if(n.writableFinished===!0)return!0;const o=n._writableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.finished)!="boolean"?null:!!(o.finished||r===!1&&o.ended===!0&&o.length===0)}function B1r(n){if(!Fbe(n))return null;if(n.readableEnded===!0)return!0;const r=n._readableState;return!r||r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function Oon(n,r){if(!Fbe(n))return null;const o=n._readableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.endEmitted)!="boolean"?null:!!(o.endEmitted||r===!1&&o.ended===!0&&o.length===0)}function Non(n){return n&&n[oFe]!=null?n[oFe]:typeof(n==null?void 0:n.readable)!="boolean"?null:Wbe(n)?!1:Fbe(n)&&n.readable&&!Oon(n)}function Mon(n){return n&&n[sFe]!=null?n[sFe]:typeof(n==null?void 0:n.writable)!="boolean"?null:Wbe(n)?!1:Bbe(n)&&n.writable&&!Pon(n)}function W1r(n,r){return vk(n)?Wbe(n)?!0:!((r==null?void 0:r.readable)!==!1&&Non(n)||(r==null?void 0:r.writable)!==!1&&Mon(n)):null}function H1r(n){var r,o;return vk(n)?n.writableErrored?n.writableErrored:(r=(o=n._writableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function U1r(n){var r,o;return vk(n)?n.readableErrored?n.readableErrored:(r=(o=n._readableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function G1r(n){if(!vk(n))return null;if(typeof n.closed=="boolean")return n.closed;const r=n._writableState,o=n._readableState;return typeof(r==null?void 0:r.closed)=="boolean"||typeof(o==null?void 0:o.closed)=="boolean"?(r==null?void 0:r.closed)||(o==null?void 0:o.closed):typeof n._closed=="boolean"&&Don(n)?n._closed:null}function Don(n){return typeof n._closed=="boolean"&&typeof n._defaultKeepAlive=="boolean"&&typeof n._removedConnection=="boolean"&&typeof n._removedContLen=="boolean"}function Lon(n){return typeof n._sent100=="boolean"&&Don(n)}function V1r(n){var r;return typeof n._consuming=="boolean"&&typeof n._dumped=="boolean"&&((r=n.req)===null||r===void 0?void 0:r.upgradeOrConnect)===void 0}function z1r(n){if(!vk(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!l&&Lon(n)||!!(l&&l.autoDestroy&&l.emitClose&&l.closed===!1)}function K1r(n){var r;return!!(n&&((r=n[Aon])!==null&&r!==void 0?r:n.readableDidRead||n.readableAborted))}function q1r(n){var r,o,l,u,d,h,w,v,y,E;return!!(n&&((r=(o=(l=(u=(d=(h=n[Con])!==null&&h!==void 0?h:n.readableErrored)!==null&&d!==void 0?d:n.writableErrored)!==null&&u!==void 0?u:(w=n._readableState)===null||w===void 0?void 0:w.errorEmitted)!==null&&l!==void 0?l:(v=n._writableState)===null||v===void 0?void 0:v.errorEmitted)!==null&&o!==void 0?o:(y=n._readableState)===null||y===void 0?void 0:y.errored)!==null&&r!==void 0?r:!((E=n._writableState)===null||E===void 0)&&E.errored))}var Ax={isDestroyed:Wbe,kIsDestroyed:xon,isDisturbed:K1r,kIsDisturbed:Aon,isErrored:q1r,kIsErrored:Con,isReadable:Non,kIsReadable:oFe,kIsClosedPromise:N1r,kControllerErrorFunction:M1r,kIsWritable:sFe,isClosed:G1r,isDuplexNodeStream:D1r,isFinished:W1r,isIterable:j1r,isReadableNodeStream:Fbe,isReadableStream:Ton,isReadableEnded:B1r,isReadableFinished:Oon,isReadableErrored:U1r,isNodeStream:vk,isWebStream:L1r,isWritable:Mon,isWritableNodeStream:Bbe,isWritableStream:$on,isWritableEnded:Pon,isWritableFinished:F1r,isWritableErrored:H1r,isServerRequest:V1r,isServerResponse:Lon,willEmitClose:z1r,isTransformStream:Ion};const X4=ui,{AbortError:jon,codes:X1r}=I0,{ERR_INVALID_ARG_TYPE:J1r,ERR_STREAM_PREMATURE_CLOSE:JUt}=X1r,{kEmptyObject:lFe,once:aFe}=f1,{validateAbortSignal:Y1r,validateFunction:Q1r,validateObject:Z1r,validateBoolean:e0r}=CJ,{Promise:t0r,PromisePrototypeThen:n0r,SymbolDispose:Fon}=Ff,{isClosed:r0r,isReadable:YUt,isReadableNodeStream:dMe,isReadableStream:i0r,isReadableFinished:QUt,isReadableErrored:ZUt,isWritable:eGt,isWritableNodeStream:tGt,isWritableStream:o0r,isWritableFinished:nGt,isWritableErrored:rGt,isNodeStream:s0r,willEmitClose:l0r,kIsClosedPromise:a0r}=Ax;let cL;function c0r(n){return n.setHeader&&typeof n.abort=="function"}const cFe=()=>{};function Bon(n,r,o){var l,u;if(arguments.length===2?(o=r,r=lFe):r==null?r=lFe:Z1r(r,"options"),Q1r(o,"callback"),Y1r(r.signal,"options.signal"),o=aFe(o),i0r(n)||o0r(n))return u0r(n,r,o);if(!s0r(n))throw new J1r("stream",["ReadableStream","WritableStream","Stream"],n);const d=(l=r.readable)!==null&&l!==void 0?l:dMe(n),h=(u=r.writable)!==null&&u!==void 0?u:tGt(n),w=n._writableState,v=n._readableState,y=()=>{n.writable||C()};let E=l0r(n)&&dMe(n)===d&&tGt(n)===h,A=nGt(n,!1);const C=()=>{A=!0,n.destroyed&&(E=!1),!(E&&(!n.readable||d))&&(!d||R)&&o.call(n)};let R=QUt(n,!1);const O=()=>{R=!0,n.destroyed&&(E=!1),!(E&&(!n.writable||h))&&(!h||A)&&o.call(n)},M=te=>{o.call(n,te)};let L=r0r(n);const H=()=>{L=!0;const te=rGt(n)||ZUt(n);if(te&&typeof te!="boolean")return o.call(n,te);if(d&&!R&&dMe(n,!0)&&!QUt(n,!1))return o.call(n,new JUt);if(h&&!A&&!nGt(n,!1))return o.call(n,new JUt);o.call(n)},G=()=>{L=!0;const te=rGt(n)||ZUt(n);if(te&&typeof te!="boolean")return o.call(n,te);o.call(n)},j=()=>{n.req.on("finish",C)};c0r(n)?(n.on("complete",C),E||n.on("abort",H),n.req?j():n.on("request",j)):h&&!w&&(n.on("end",y),n.on("close",y)),!E&&typeof n.aborted=="boolean"&&n.on("aborted",H),n.on("end",O),n.on("finish",C),r.error!==!1&&n.on("error",M),n.on("close",H),L?X4.nextTick(H):w!=null&&w.errorEmitted||v!=null&&v.errorEmitted?E||X4.nextTick(G):(!d&&(!E||YUt(n))&&(A||eGt(n)===!1)||!h&&(!E||eGt(n))&&(R||YUt(n)===!1)||v&&n.req&&n.aborted)&&X4.nextTick(G);const Q=()=>{o=cFe,n.removeListener("aborted",H),n.removeListener("complete",C),n.removeListener("abort",H),n.removeListener("request",j),n.req&&n.req.removeListener("finish",C),n.removeListener("end",y),n.removeListener("close",y),n.removeListener("finish",C),n.removeListener("end",O),n.removeListener("error",M),n.removeListener("close",H)};if(r.signal&&!L){const te=()=>{const pe=o;Q(),pe.call(n,new jon(void 0,{cause:r.signal.reason}))};if(r.signal.aborted)X4.nextTick(te);else{cL=cL||f1.addAbortListener;const pe=cL(r.signal,te),Le=o;o=aFe((...Ee)=>{pe[Fon](),Le.apply(n,Ee)})}}return Q}function u0r(n,r,o){let l=!1,u=cFe;if(r.signal)if(u=()=>{l=!0,o.call(n,new jon(void 0,{cause:r.signal.reason}))},r.signal.aborted)X4.nextTick(u);else{cL=cL||f1.addAbortListener;const h=cL(r.signal,u),w=o;o=aFe((...v)=>{h[Fon](),w.apply(n,v)})}const d=(...h)=>{l||X4.nextTick(()=>o.apply(n,h))};return n0r(n[a0r].promise,d,d),cFe}function f0r(n,r){var o;let l=!1;return r===null&&(r=lFe),(o=r)!==null&&o!==void 0&&o.cleanup&&(e0r(r.cleanup,"cleanup"),l=r.cleanup),new t0r((u,d)=>{const h=Bon(n,r,w=>{l&&h(),w?d(w):u()})})}KUe.exports=Bon;KUe.exports.finished=f0r;var WT=KUe.exports;const VE=ui,{aggregateTwoErrors:d0r,codes:{ERR_MULTIPLE_CALLBACK:h0r},AbortError:p0r}=I0,{Symbol:Won}=Ff,{kIsDestroyed:b0r,isDestroyed:g0r,isFinished:w0r,isServerRequest:m0r}=Ax,Hon=Won("kDestroy"),uFe=Won("kConstruct");function Uon(n,r,o){n&&(n.stack,r&&!r.errored&&(r.errored=n),o&&!o.errored&&(o.errored=n))}function y0r(n,r){const o=this._readableState,l=this._writableState,u=l||o;return l!=null&&l.destroyed||o!=null&&o.destroyed?(typeof r=="function"&&r(),this):(Uon(n,l,o),l&&(l.destroyed=!0),o&&(o.destroyed=!0),u.constructed?iGt(this,n,r):this.once(Hon,function(d){iGt(this,d0r(d,n),r)}),this)}function iGt(n,r,o){let l=!1;function u(d){if(l)return;l=!0;const h=n._readableState,w=n._writableState;Uon(d,w,h),w&&(w.closed=!0),h&&(h.closed=!0),typeof o=="function"&&o(d),d?VE.nextTick(v0r,n,d):VE.nextTick(Gon,n)}try{n._destroy(r||null,u)}catch(d){u(d)}}function v0r(n,r){fFe(n,r),Gon(n)}function Gon(n){const r=n._readableState,o=n._writableState;o&&(o.closeEmitted=!0),r&&(r.closeEmitted=!0),(o!=null&&o.emitClose||r!=null&&r.emitClose)&&n.emit("close")}function fFe(n,r){const o=n._readableState,l=n._writableState;l!=null&&l.errorEmitted||o!=null&&o.errorEmitted||(l&&(l.errorEmitted=!0),o&&(o.errorEmitted=!0),n.emit("error",r))}function _0r(){const n=this._readableState,r=this._writableState;n&&(n.constructed=!0,n.closed=!1,n.closeEmitted=!1,n.destroyed=!1,n.errored=null,n.errorEmitted=!1,n.reading=!1,n.ended=n.readable===!1,n.endEmitted=n.readable===!1),r&&(r.constructed=!0,r.destroyed=!1,r.closed=!1,r.closeEmitted=!1,r.errored=null,r.errorEmitted=!1,r.finalCalled=!1,r.prefinished=!1,r.ended=r.writable===!1,r.ending=r.writable===!1,r.finished=r.writable===!1)}function dFe(n,r,o){const l=n._readableState,u=n._writableState;if(u!=null&&u.destroyed||l!=null&&l.destroyed)return this;l!=null&&l.autoDestroy||u!=null&&u.autoDestroy?n.destroy(r):r&&(r.stack,u&&!u.errored&&(u.errored=r),l&&!l.errored&&(l.errored=r),o?VE.nextTick(fFe,n,r):fFe(n,r))}function S0r(n,r){if(typeof n._construct!="function")return;const o=n._readableState,l=n._writableState;o&&(o.constructed=!1),l&&(l.constructed=!1),n.once(uFe,r),!(n.listenerCount(uFe)>1)&&VE.nextTick(E0r,n)}function E0r(n){let r=!1;function o(l){if(r){dFe(n,l??new h0r);return}r=!0;const u=n._readableState,d=n._writableState,h=d||u;u&&(u.constructed=!0),d&&(d.constructed=!0),h.destroyed?n.emit(Hon,l):l?dFe(n,l,!0):VE.nextTick(k0r,n)}try{n._construct(l=>{VE.nextTick(o,l)})}catch(l){VE.nextTick(o,l)}}function k0r(n){n.emit(uFe)}function oGt(n){return(n==null?void 0:n.setHeader)&&typeof n.abort=="function"}function Von(n){n.emit("close")}function R0r(n,r){n.emit("error",r),VE.nextTick(Von,n)}function x0r(n,r){!n||g0r(n)||(!r&&!w0r(n)&&(r=new p0r),m0r(n)?(n.socket=null,n.destroy(r)):oGt(n)?n.abort():oGt(n.req)?n.req.abort():typeof n.destroy=="function"?n.destroy(r):typeof n.close=="function"?n.close():r?VE.nextTick(R0r,n,r):VE.nextTick(Von,n),n.destroyed||(n[b0r]=!0))}var Ej={construct:S0r,destroyer:x0r,destroy:y0r,undestroy:_0r,errorOrDestroy:dFe};const{ArrayIsArray:C0r,ObjectSetPrototypeOf:zon}=Ff,{EventEmitter:Hbe}=Ns;function Ube(n){Hbe.call(this,n)}zon(Ube.prototype,Hbe.prototype);zon(Ube,Hbe);Ube.prototype.pipe=function(n,r){const o=this;function l(E){n.writable&&n.write(E)===!1&&o.pause&&o.pause()}o.on("data",l);function u(){o.readable&&o.resume&&o.resume()}n.on("drain",u),!n._isStdio&&(!r||r.end!==!1)&&(o.on("end",h),o.on("close",w));let d=!1;function h(){d||(d=!0,n.end())}function w(){d||(d=!0,typeof n.destroy=="function"&&n.destroy())}function v(E){y(),Hbe.listenerCount(this,"error")===0&&this.emit("error",E)}hFe(o,"error",v),hFe(n,"error",v);function y(){o.removeListener("data",l),n.removeListener("drain",u),o.removeListener("end",h),o.removeListener("close",w),o.removeListener("error",v),n.removeListener("error",v),o.removeListener("end",y),o.removeListener("close",y),n.removeListener("close",y)}return o.on("end",y),o.on("close",y),n.on("close",y),n.emit("pipe",o),n};function hFe(n,r,o){if(typeof n.prependListener=="function")return n.prependListener(r,o);!n._events||!n._events[r]?n.on(r,o):C0r(n._events[r])?n._events[r].unshift(o):n._events[r]=[o,n._events[r]]}var qUe={Stream:Ube,prependListener:hFe},Kon={exports:{}};(function(n){const{SymbolDispose:r}=Ff,{AbortError:o,codes:l}=I0,{isNodeStream:u,isWebStream:d,kControllerErrorFunction:h}=Ax,w=WT,{ERR_INVALID_ARG_TYPE:v}=l;let y;const E=(A,C)=>{if(typeof A!="object"||!("aborted"in A))throw new v(C,"AbortSignal",A)};n.exports.addAbortSignal=function(C,R){if(E(C,"signal"),!u(R)&&!d(R))throw new v("stream",["ReadableStream","WritableStream","Stream"],R);return n.exports.addAbortSignalNoValidate(C,R)},n.exports.addAbortSignalNoValidate=function(A,C){if(typeof A!="object"||!("aborted"in A))return C;const R=u(C)?()=>{C.destroy(new o(void 0,{cause:A.reason}))}:()=>{C[h](new o(void 0,{cause:A.reason}))};if(A.aborted)R();else{y=y||f1.addAbortListener;const O=y(A,R);w(C,O[r])}return C}})(Kon);var Gbe=Kon.exports;const{StringPrototypeSlice:sGt,SymbolIterator:A0r,TypedArrayPrototypeSet:Aue,Uint8Array:T0r}=Ff,{Buffer:hMe}=Kr,{inspect:$0r}=f1;var I0r=class{constructor(){this.head=null,this.tail=null,this.length=0}push(r){const o={data:r,next:null};this.length>0?this.tail.next=o:this.head=o,this.tail=o,++this.length}unshift(r){const o={data:r,next:this.head};this.length===0&&(this.tail=o),this.head=o,++this.length}shift(){if(this.length===0)return;const r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}clear(){this.head=this.tail=null,this.length=0}join(r){if(this.length===0)return"";let o=this.head,l=""+o.data;for(;(o=o.next)!==null;)l+=r+o.data;return l}concat(r){if(this.length===0)return hMe.alloc(0);const o=hMe.allocUnsafe(r>>>0);let l=this.head,u=0;for(;l;)Aue(o,l.data,u),u+=l.data.length,l=l.next;return o}consume(r,o){const l=this.head.data;if(rd.length)o+=d,r-=d.length;else{r===d.length?(o+=d,++u,l.next?this.head=l.next:this.head=this.tail=null):(o+=sGt(d,0,r),this.head=l,l.data=sGt(d,r));break}++u}while((l=l.next)!==null);return this.length-=u,o}_getBuffer(r){const o=hMe.allocUnsafe(r),l=r;let u=this.head,d=0;do{const h=u.data;if(r>h.length)Aue(o,h,l-r),r-=h.length;else{r===h.length?(Aue(o,h,l-r),++d,u.next?this.head=u.next:this.head=this.tail=null):(Aue(o,new T0r(h.buffer,h.byteOffset,r),l-r),this.head=u,u.data=h.slice(r));break}++d}while((u=u.next)!==null);return this.length-=d,o}[Symbol.for("nodejs.util.inspect.custom")](r,o){return $0r(this,{...o,depth:0,customInspect:!1})}};const{MathFloor:P0r,NumberIsInteger:O0r}=Ff,{validateInteger:N0r}=CJ,{ERR_INVALID_ARG_VALUE:M0r}=I0.codes;let qon=16*1024,Xon=16;function D0r(n,r,o){return n.highWaterMark!=null?n.highWaterMark:r?n[o]:null}function Jon(n){return n?Xon:qon}function L0r(n,r){N0r(r,"value",0),n?Xon=r:qon=r}function j0r(n,r,o,l){const u=D0r(r,l,o);if(u!=null){if(!O0r(u)||u<0){const d=l?`options.${o}`:"options.highWaterMark";throw new M0r(d,u)}return P0r(u)}return Jon(n.objectMode)}var Vbe={getHighWaterMark:j0r,getDefaultHighWaterMark:Jon,setDefaultHighWaterMark:L0r};const lGt=ui,{PromisePrototypeThen:F0r,SymbolAsyncIterator:aGt,SymbolIterator:cGt}=Ff,{Buffer:B0r}=Kr,{ERR_INVALID_ARG_TYPE:W0r,ERR_STREAM_NULL_VALUES:H0r}=I0.codes;function U0r(n,r,o){let l;if(typeof r=="string"||r instanceof B0r)return new n({objectMode:!0,...o,read(){this.push(r),this.push(null)}});let u;if(r&&r[aGt])u=!0,l=r[aGt]();else if(r&&r[cGt])u=!1,l=r[cGt]();else throw new W0r("iterable",["Iterable"],r);const d=new n({objectMode:!0,highWaterMark:1,...o});let h=!1;d._read=function(){h||(h=!0,v())},d._destroy=function(y,E){F0r(w(y),()=>lGt.nextTick(E,y),A=>lGt.nextTick(E,A||y))};async function w(y){const E=y!=null,A=typeof l.throw=="function";if(E&&A){const{value:C,done:R}=await l.throw(y);if(await C,R)return}if(typeof l.return=="function"){const{value:C}=await l.return();await C}}async function v(){for(;;){try{const{value:y,done:E}=u?await l.next():l.next();if(E)d.push(null);else{const A=y&&typeof y.then=="function"?await y:y;if(A===null)throw h=!1,new H0r;if(d.push(A))continue;h=!1}}catch(y){d.destroy(y)}break}}return d}var Yon=U0r,pMe,uGt;function zbe(){if(uGt)return pMe;uGt=1;const n=ui,{ArrayPrototypeIndexOf:r,NumberIsInteger:o,NumberIsNaN:l,NumberParseInt:u,ObjectDefineProperties:d,ObjectKeys:h,ObjectSetPrototypeOf:w,Promise:v,SafeSet:y,SymbolAsyncDispose:E,SymbolAsyncIterator:A,Symbol:C}=Ff;pMe=he,he.ReadableState=St;const{EventEmitter:R}=Ns,{Stream:O,prependListener:M}=qUe,{Buffer:L}=Kr,{addAbortSignal:H}=Gbe,G=WT;let j=f1.debuglog("stream",S=>{j=S});const Q=I0r,te=Ej,{getHighWaterMark:pe,getDefaultHighWaterMark:Le}=Vbe,{aggregateTwoErrors:Ee,codes:{ERR_INVALID_ARG_TYPE:le,ERR_METHOD_NOT_IMPLEMENTED:xe,ERR_OUT_OF_RANGE:be,ERR_STREAM_PUSH_AFTER_EOF:ae,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:F},AbortError:me}=I0,{validateObject:ye}=CJ,we=C("kPaused"),{StringDecoder:Be}=rm,He=Yon;w(he.prototype,O.prototype),w(he,O);const Ue=()=>{},{errorOrDestroy:Ge}=te,Me=1,vt=2,re=4,Te=8,ct=16,at=32,Ye=64,mt=128,jt=256,rn=512,Pe=1024,Oe=2048,T=4096,$=8192,B=16384,K=32768,q=65536,ke=1<<17,Re=1<<18;function Ie(S){return{enumerable:!1,get(){return(this.state&S)!==0},set(x){x?this.state|=S:this.state&=~S}}}d(St.prototype,{objectMode:Ie(Me),ended:Ie(vt),endEmitted:Ie(re),reading:Ie(Te),constructed:Ie(ct),sync:Ie(at),needReadable:Ie(Ye),emittedReadable:Ie(mt),readableListening:Ie(jt),resumeScheduled:Ie(rn),errorEmitted:Ie(Pe),emitClose:Ie(Oe),autoDestroy:Ie(T),destroyed:Ie($),closed:Ie(B),closeEmitted:Ie(K),multiAwaitDrain:Ie(q),readingMore:Ie(ke),dataEmitted:Ie(Re)});function St(S,x,Y){typeof Y!="boolean"&&(Y=x instanceof ox()),this.state=Oe|T|ct|at,S&&S.objectMode&&(this.state|=Me),Y&&S&&S.readableObjectMode&&(this.state|=Me),this.highWaterMark=S?pe(this,S,"readableHighWaterMark",Y):Le(!1),this.buffer=new Q,this.length=0,this.pipes=[],this.flowing=null,this[we]=null,S&&S.emitClose===!1&&(this.state&=~Oe),S&&S.autoDestroy===!1&&(this.state&=~T),this.errored=null,this.defaultEncoding=S&&S.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,S&&S.encoding&&(this.decoder=new Be(S.encoding),this.encoding=S.encoding)}function he(S){if(!(this instanceof he))return new he(S);const x=this instanceof ox();this._readableState=new St(S,this,x),S&&(typeof S.read=="function"&&(this._read=S.read),typeof S.destroy=="function"&&(this._destroy=S.destroy),typeof S.construct=="function"&&(this._construct=S.construct),S.signal&&!x&&H(S.signal,this)),O.call(this,S),te.construct(this,()=>{this._readableState.needReadable&&ht(this,this._readableState)})}he.prototype.destroy=te.destroy,he.prototype._undestroy=te.undestroy,he.prototype._destroy=function(S,x){x(S)},he.prototype[R.captureRejectionSymbol]=function(S){this.destroy(S)},he.prototype[E]=function(){let S;return this.destroyed||(S=this.readableEnded?null:new me,this.destroy(S)),new v((x,Y)=>G(this,J=>J&&J!==S?Y(J):x(null)))},he.prototype.push=function(S,x){return zt(this,S,x,!1)},he.prototype.unshift=function(S,x){return zt(this,S,x,!0)};function zt(S,x,Y,J){j("readableAddChunk",x);const ue=S._readableState;let Yt;if(ue.state&Me||(typeof x=="string"?(Y=Y||ue.defaultEncoding,ue.encoding!==Y&&(J&&ue.encoding?x=L.from(x,Y).toString(ue.encoding):(x=L.from(x,Y),Y=""))):x instanceof L?Y="":O._isUint8Array(x)?(x=O._uint8ArrayToBuffer(x),Y=""):x!=null&&(Yt=new le("chunk",["string","Buffer","Uint8Array"],x))),Yt)Ge(S,Yt);else if(x===null)ue.state&=~Te,ce(S,ue);else if(ue.state&Me||x&&x.length>0)if(J)if(ue.state&re)Ge(S,new F);else{if(ue.destroyed||ue.errored)return!1;Qt(S,ue,x,!0)}else if(ue.ended)Ge(S,new ae);else{if(ue.destroyed||ue.errored)return!1;ue.state&=~Te,ue.decoder&&!Y?(x=ue.decoder.write(x),ue.objectMode||x.length!==0?Qt(S,ue,x,!1):ht(S,ue)):Qt(S,ue,x,!1)}else J||(ue.state&=~Te,ht(S,ue));return!ue.ended&&(ue.length0?(x.state&q?x.awaitDrainWriters.clear():x.awaitDrainWriters=null,x.dataEmitted=!0,S.emit("data",Y)):(x.length+=x.objectMode?1:Y.length,J?x.buffer.unshift(Y):x.buffer.push(Y),x.state&Ye&&de(S)),ht(S,x)}he.prototype.isPaused=function(){const S=this._readableState;return S[we]===!0||S.flowing===!1},he.prototype.setEncoding=function(S){const x=new Be(S);this._readableState.decoder=x,this._readableState.encoding=this._readableState.decoder.encoding;const Y=this._readableState.buffer;let J="";for(const ue of Y)J+=x.write(ue);return Y.clear(),J!==""&&Y.push(J),this._readableState.length=J.length,this};const $n=1073741824;function Gn(S){if(S>$n)throw new be("size","<= 1GiB",S);return S--,S|=S>>>1,S|=S>>>2,S|=S>>>4,S|=S>>>8,S|=S>>>16,S++,S}function $e(S,x){return S<=0||x.length===0&&x.ended?0:x.state&Me?1:l(S)?x.flowing&&x.length?x.buffer.first().length:x.length:S<=x.length?S:x.ended?x.length:0}he.prototype.read=function(S){j("read",S),S===void 0?S=NaN:o(S)||(S=u(S,10));const x=this._readableState,Y=S;if(S>x.highWaterMark&&(x.highWaterMark=Gn(S)),S!==0&&(x.state&=~mt),S===0&&x.needReadable&&((x.highWaterMark!==0?x.length>=x.highWaterMark:x.length>0)||x.ended))return j("read: emitReadable",x.length,x.ended),x.length===0&&x.ended?co(this):de(this),null;if(S=$e(S,x),S===0&&x.ended)return x.length===0&&co(this),null;let J=(x.state&Ye)!==0;if(j("need readable",J),(x.length===0||x.length-S0?ue=Al(S,x):ue=null,ue===null?(x.needReadable=x.length<=x.highWaterMark,S=0):(x.length-=S,x.multiAwaitDrain?x.awaitDrainWriters.clear():x.awaitDrainWriters=null),x.length===0&&(x.ended||(x.needReadable=!0),Y!==S&&x.ended&&co(this)),ue!==null&&!x.errorEmitted&&!x.closeEmitted&&(x.dataEmitted=!0,this.emit("data",ue)),ue};function ce(S,x){if(j("onEofChunk"),!x.ended){if(x.decoder){const Y=x.decoder.end();Y&&Y.length&&(x.buffer.push(Y),x.length+=x.objectMode?1:Y.length)}x.ended=!0,x.sync?de(S):(x.needReadable=!1,x.emittedReadable=!0,et(S))}}function de(S){const x=S._readableState;j("emitReadable",x.needReadable,x.emittedReadable),x.needReadable=!1,x.emittedReadable||(j("emitReadable",x.flowing),x.emittedReadable=!0,n.nextTick(et,S))}function et(S){const x=S._readableState;j("emitReadable_",x.destroyed,x.length,x.ended),!x.destroyed&&!x.errored&&(x.length||x.ended)&&(S.emit("readable"),x.emittedReadable=!1),x.needReadable=!x.flowing&&!x.ended&&x.length<=x.highWaterMark,xi(S)}function ht(S,x){!x.readingMore&&x.constructed&&(x.readingMore=!0,n.nextTick(Jt,S,x))}function Jt(S,x){for(;!x.reading&&!x.ended&&(x.length1&&J.pipes.includes(S)&&(j("false write response, pause",J.awaitDrainWriters.size),J.awaitDrainWriters.add(S)),Y.pause()),Fr||(Fr=Zt(Y,S),S.on("drain",Fr))}Y.on("data",ml);function ml(jr){j("ondata");const lr=S.write(jr);j("dest.write",lr),lr===!1&&Rs()}function gs(jr){if(j("onerror",jr),wi(),S.removeListener("error",gs),S.listenerCount("error")===0){const lr=S._writableState||S._readableState;lr&&!lr.errorEmitted?Ge(S,jr):S.emit("error",jr)}}M(S,"error",gs);function as(){S.removeListener("finish",ws),wi()}S.once("close",as);function ws(){j("onfinish"),S.removeListener("close",as),wi()}S.once("finish",ws);function wi(){j("unpipe"),Y.unpipe(S)}return S.emit("pipe",Y),S.writableNeedDrain===!0?Rs():J.flowing||(j("pipe resume"),Y.resume()),S};function Zt(S,x){return function(){const J=S._readableState;J.awaitDrainWriters===x?(j("pipeOnDrain",1),J.awaitDrainWriters=null):J.multiAwaitDrain&&(j("pipeOnDrain",J.awaitDrainWriters.size),J.awaitDrainWriters.delete(x)),(!J.awaitDrainWriters||J.awaitDrainWriters.size===0)&&S.listenerCount("data")&&S.resume()}}he.prototype.unpipe=function(S){const x=this._readableState,Y={hasUnpiped:!1};if(x.pipes.length===0)return this;if(!S){const ue=x.pipes;x.pipes=[],this.pause();for(let Yt=0;Yt0,J.flowing!==!1&&this.resume()):S==="readable"&&!J.endEmitted&&!J.readableListening&&(J.readableListening=J.needReadable=!0,J.flowing=!1,J.emittedReadable=!1,j("on readable",J.length,J.reading),J.length?de(this):J.reading||n.nextTick(ao,this)),Y},he.prototype.addListener=he.prototype.on,he.prototype.removeListener=function(S,x){const Y=O.prototype.removeListener.call(this,S,x);return S==="readable"&&n.nextTick(qr,this),Y},he.prototype.off=he.prototype.removeListener,he.prototype.removeAllListeners=function(S){const x=O.prototype.removeAllListeners.apply(this,arguments);return(S==="readable"||S===void 0)&&n.nextTick(qr,this),x};function qr(S){const x=S._readableState;x.readableListening=S.listenerCount("readable")>0,x.resumeScheduled&&x[we]===!1?x.flowing=!0:S.listenerCount("data")>0?S.resume():x.readableListening||(x.flowing=null)}function ao(S){j("readable nexttick read 0"),S.read(0)}he.prototype.resume=function(){const S=this._readableState;return S.flowing||(j("resume"),S.flowing=!S.readableListening,ki(this,S)),S[we]=!1,this};function ki(S,x){x.resumeScheduled||(x.resumeScheduled=!0,n.nextTick(Ri,S,x))}function Ri(S,x){j("resume",x.reading),x.reading||S.read(0),x.resumeScheduled=!1,S.emit("resume"),xi(S),x.flowing&&!x.reading&&S.read(0)}he.prototype.pause=function(){return j("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(j("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[we]=!0,this};function xi(S){const x=S._readableState;for(j("flow",x.flowing);x.flowing&&S.read()!==null;);}he.prototype.wrap=function(S){let x=!1;S.on("data",J=>{!this.push(J)&&S.pause&&(x=!0,S.pause())}),S.on("end",()=>{this.push(null)}),S.on("error",J=>{Ge(this,J)}),S.on("close",()=>{this.destroy()}),S.on("destroy",()=>{this.destroy()}),this._read=()=>{x&&S.resume&&(x=!1,S.resume())};const Y=h(S);for(let J=1;J{ue=An?Ee(ue,An):null,Y(),Y=Ue});try{for(;;){const An=S.destroyed?null:S.read();if(An!==null)yield An;else{if(ue)throw ue;if(ue===null)return;await new v(J)}}}catch(An){throw ue=Ee(ue,An),ue}finally{(ue||(x==null?void 0:x.destroyOnReturn)!==!1)&&(ue===void 0||S._readableState.autoDestroy)?te.destroyer(S,null):(S.off("readable",J),Yt())}}d(he.prototype,{readable:{__proto__:null,get(){const S=this._readableState;return!!S&&S.readable!==!1&&!S.destroyed&&!S.errorEmitted&&!S.endEmitted},set(S){this._readableState&&(this._readableState.readable=!!S)}},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(S){this._readableState&&(this._readableState.flowing=S)}},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(S){this._readableState&&(this._readableState.destroyed=S)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),d(St.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[we]!==!1},set(S){this[we]=!!S}}}),he._fromList=Al;function Al(S,x){if(x.length===0)return null;let Y;return x.objectMode?Y=x.buffer.shift():!S||S>=x.length?(x.decoder?Y=x.buffer.join(""):x.buffer.length===1?Y=x.buffer.first():Y=x.buffer.concat(x.length),x.buffer.clear()):Y=x.buffer.consume(S,x.decoder),Y}function co(S){const x=S._readableState;j("endReadable",x.endEmitted),x.endEmitted||(x.ended=!0,n.nextTick(Zc,x,S))}function Zc(S,x){if(j("endReadableNT",S.endEmitted,S.length),!S.errored&&!S.closeEmitted&&!S.endEmitted&&S.length===0){if(S.endEmitted=!0,x.emit("end"),x.writable&&x.allowHalfOpen===!1)n.nextTick(bu,x);else if(S.autoDestroy){const Y=x._writableState;(!Y||Y.autoDestroy&&(Y.finished||Y.writable===!1))&&x.destroy()}}}function bu(S){S.writable&&!S.writableEnded&&!S.destroyed&&S.end()}he.from=function(S,x){return He(he,S,x)};let So;function ql(){return So===void 0&&(So={}),So}return he.fromWeb=function(S,x){return ql().newStreamReadableFromReadableStream(S,x)},he.toWeb=function(S,x){return ql().newReadableStreamFromStreamReadable(S,x)},he.wrap=function(S,x){var Y,J;return new he({objectMode:(Y=(J=S.readableObjectMode)!==null&&J!==void 0?J:S.objectMode)!==null&&Y!==void 0?Y:!0,...x,destroy(ue,Yt){te.destroyer(S,ue),Yt(ue)}}).wrap(S)},pMe}var bMe,fGt;function XUe(){if(fGt)return bMe;fGt=1;const n=ui,{ArrayPrototypeSlice:r,Error:o,FunctionPrototypeSymbolHasInstance:l,ObjectDefineProperty:u,ObjectDefineProperties:d,ObjectSetPrototypeOf:h,StringPrototypeToLowerCase:w,Symbol:v,SymbolHasInstance:y}=Ff;bMe=ye,ye.WritableState=F;const{EventEmitter:E}=Ns,A=qUe.Stream,{Buffer:C}=Kr,R=Ej,{addAbortSignal:O}=Gbe,{getHighWaterMark:M,getDefaultHighWaterMark:L}=Vbe,{ERR_INVALID_ARG_TYPE:H,ERR_METHOD_NOT_IMPLEMENTED:G,ERR_MULTIPLE_CALLBACK:j,ERR_STREAM_CANNOT_PIPE:Q,ERR_STREAM_DESTROYED:te,ERR_STREAM_ALREADY_FINISHED:pe,ERR_STREAM_NULL_VALUES:Le,ERR_STREAM_WRITE_AFTER_END:Ee,ERR_UNKNOWN_ENCODING:le}=I0.codes,{errorOrDestroy:xe}=R;h(ye.prototype,A.prototype),h(ye,A);function be(){}const ae=v("kOnFinished");function F(T,$,B){typeof B!="boolean"&&(B=$ instanceof ox()),this.objectMode=!!(T&&T.objectMode),B&&(this.objectMode=this.objectMode||!!(T&&T.writableObjectMode)),this.highWaterMark=T?M(this,T,"writableHighWaterMark",B):L(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const K=!!(T&&T.decodeStrings===!1);this.decodeStrings=!K,this.defaultEncoding=T&&T.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=Ge.bind(void 0,$),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,me(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[ae]=[]}function me(T){T.buffered=[],T.bufferedIndex=0,T.allBuffers=!0,T.allNoop=!0}F.prototype.getBuffer=function(){return r(this.buffered,this.bufferedIndex)},u(F.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function ye(T){const $=this instanceof ox();if(!$&&!l(ye,this))return new ye(T);this._writableState=new F(T,this,$),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&&O(T.signal,this)),A.call(this,T),R.construct(this,()=>{const B=this._writableState;B.writing||Te(this,B),mt(this,B)})}u(ye,y,{__proto__:null,value:function(T){return l(this,T)?!0:this!==ye?!1:T&&T._writableState instanceof F}}),ye.prototype.pipe=function(){xe(this,new Q)};function we(T,$,B,K){const q=T._writableState;if(typeof B=="function")K=B,B=q.defaultEncoding;else{if(!B)B=q.defaultEncoding;else if(B!=="buffer"&&!C.isEncoding(B))throw new le(B);typeof K!="function"&&(K=be)}if($===null)throw new Le;if(!q.objectMode)if(typeof $=="string")q.decodeStrings!==!1&&($=C.from($,B),B="buffer");else if($ instanceof C)B="buffer";else if(A._isUint8Array($))$=A._uint8ArrayToBuffer($),B="buffer";else throw new H("chunk",["string","Buffer","Uint8Array"],$);let ke;return q.ending?ke=new Ee:q.destroyed&&(ke=new te("write")),ke?(n.nextTick(K,ke),xe(T,ke,!0),ke):(q.pendingcb++,Be(T,q,$,B,K))}ye.prototype.write=function(T,$,B){return we(this,T,$,B)===!0},ye.prototype.cork=function(){this._writableState.corked++},ye.prototype.uncork=function(){const T=this._writableState;T.corked&&(T.corked--,T.writing||Te(this,T))},ye.prototype.setDefaultEncoding=function($){if(typeof $=="string"&&($=w($)),!C.isEncoding($))throw new le($);return this._writableState.defaultEncoding=$,this};function Be(T,$,B,K,q){const ke=$.objectMode?1:B.length;$.length+=ke;const Re=$.length<$.highWaterMark;return Re||($.needDrain=!0),$.writing||$.corked||$.errored||!$.constructed?($.buffered.push({chunk:B,encoding:K,callback:q}),$.allBuffers&&K!=="buffer"&&($.allBuffers=!1),$.allNoop&&q!==be&&($.allNoop=!1)):($.writelen=ke,$.writecb=q,$.writing=!0,$.sync=!0,T._write(B,K,$.onwrite),$.sync=!1),Re&&!$.errored&&!$.destroyed}function He(T,$,B,K,q,ke,Re){$.writelen=K,$.writecb=Re,$.writing=!0,$.sync=!0,$.destroyed?$.onwrite(new te("write")):B?T._writev(q,$.onwrite):T._write(q,ke,$.onwrite),$.sync=!1}function Ue(T,$,B,K){--$.pendingcb,K(B),re($),xe(T,B)}function Ge(T,$){const B=T._writableState,K=B.sync,q=B.writecb;if(typeof q!="function"){xe(T,new j);return}B.writing=!1,B.writecb=null,B.length-=B.writelen,B.writelen=0,$?($.stack,B.errored||(B.errored=$),T._readableState&&!T._readableState.errored&&(T._readableState.errored=$),K?n.nextTick(Ue,T,B,$,q):Ue(T,B,$,q)):(B.buffered.length>B.bufferedIndex&&Te(T,B),K?B.afterWriteTickInfo!==null&&B.afterWriteTickInfo.cb===q?B.afterWriteTickInfo.count++:(B.afterWriteTickInfo={count:1,cb:q,stream:T,state:B},n.nextTick(Me,B.afterWriteTickInfo)):vt(T,B,1,q))}function Me({stream:T,state:$,count:B,cb:K}){return $.afterWriteTickInfo=null,vt(T,$,B,K)}function vt(T,$,B,K){for(!$.ending&&!T.destroyed&&$.length===0&&$.needDrain&&($.needDrain=!1,T.emit("drain"));B-- >0;)$.pendingcb--,K();$.destroyed&&re($),mt(T,$)}function re(T){if(T.writing)return;for(let q=T.bufferedIndex;q1&&T._writev){$.pendingcb-=ke-1;const Ie=$.allNoop?be:he=>{for(let zt=Re;zt256?(B.splice(0,Re),$.bufferedIndex=0):$.bufferedIndex=Re}$.bufferProcessing=!1}ye.prototype._write=function(T,$,B){if(this._writev)this._writev([{chunk:T,encoding:$}],B);else throw new G("_write()")},ye.prototype._writev=null,ye.prototype.end=function(T,$,B){const K=this._writableState;typeof T=="function"?(B=T,T=null,$=null):typeof $=="function"&&(B=$,$=null);let q;if(T!=null){const ke=we(this,T,$);ke instanceof o&&(q=ke)}return K.corked&&(K.corked=1,this.uncork()),q||(!K.errored&&!K.ending?(K.ending=!0,mt(this,K,!0),K.ended=!0):K.finished?q=new pe("end"):K.destroyed&&(q=new te("end"))),typeof B=="function"&&(q||K.finished?n.nextTick(B,q):K[ae].push(B)),this};function ct(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 at(T,$){let B=!1;function K(q){if(B){xe(T,q??j());return}if(B=!0,$.pendingcb--,q){const ke=$[ae].splice(0);for(let Re=0;Re{ct(q)?jt(K,q):q.pendingcb--},T,$)):ct($)&&($.pendingcb++,jt(T,$))))}function jt(T,$){$.pendingcb--,$.finished=!0;const B=$[ae].splice(0);for(let K=0;K{if(re!=null)throw new O("nully","body",re)},re=>{M(Me,re)});return Me=new le({objectMode:!0,readable:!1,write:Be,final(re){He(async()=>{try{await vt,n.nextTick(re,null)}catch(Te){n.nextTick(re,Te)}})},destroy:Ue})}throw new O("Iterable, AsyncIterable or AsyncFunction",me,we)}if(pe(F))return ae(F.arrayBuffer());if(u(F))return Q(le,F,{objectMode:!0,writable:!1});if(y(F==null?void 0:F.readable)&&E(F==null?void 0:F.writable))return le.fromWeb(F);if(typeof(F==null?void 0:F.writable)=="object"||typeof(F==null?void 0:F.readable)=="object"){const we=F!=null&&F.readable?h(F==null?void 0:F.readable)?F==null?void 0:F.readable:ae(F.readable):void 0,Be=F!=null&&F.writable?w(F==null?void 0:F.writable)?F==null?void 0:F.writable:ae(F.writable):void 0;return be({readable:we,writable:Be})}const ye=F==null?void 0:F.then;if(typeof ye=="function"){let we;return Ee(ye,F,Be=>{Be!=null&&we.push(Be),we.push(null)},Be=>{M(we,Be)}),we=new le({objectMode:!0,writable:!1,read(){}})}throw new R(me,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],F)};function xe(ae){let{promise:F,resolve:me}=j();const ye=new Le,we=ye.signal;return{value:ae(async function*(){for(;;){const He=F;F=null;const{chunk:Ue,done:Ge,cb:Me}=await He;if(n.nextTick(Me),Ge)return;if(we.aborted)throw new C(void 0,{cause:we.reason});({promise:F,resolve:me}=j()),yield Ue}}(),{signal:we}),write(He,Ue,Ge){const Me=me;me=null,Me({chunk:He,done:!1,cb:Ge})},final(He){const Ue=me;me=null,Ue({done:!0,cb:He})},destroy(He,Ue){ye.abort(),Ue(He)}}}function be(ae){const F=ae.readable&&typeof ae.readable.read!="function"?H.wrap(ae.readable):ae.readable,me=ae.writable;let ye=!!o(F),we=!!l(me),Be,He,Ue,Ge,Me;function vt(re){const Te=Ge;Ge=null,Te?Te(re):re&&Me.destroy(re)}return Me=new le({readableObjectMode:!!(F!=null&&F.readableObjectMode),writableObjectMode:!!(me!=null&&me.writableObjectMode),readable:ye,writable:we}),we&&(A(me,re=>{we=!1,re&&M(F,re),vt(re)}),Me._write=function(re,Te,ct){me.write(re,Te)?ct():Be=ct},Me._final=function(re){me.end(),He=re},me.on("drain",function(){if(Be){const re=Be;Be=null,re()}}),me.on("finish",function(){if(He){const re=He;He=null,re()}})),ye&&(A(F,re=>{ye=!1,re&&M(F,re),vt(re)}),F.on("readable",function(){if(Ue){const re=Ue;Ue=null,re()}}),F.on("end",function(){Me.push(null)}),Me._read=function(){for(;;){const re=F.read();if(re===null){Ue=Me._read;return}if(!Me.push(re))return}}),Me._destroy=function(re,Te){!re&&Ge!==null&&(re=new C),Ue=null,Be=null,He=null,Ge===null?Te(re):(Ge=Te,M(me,re),M(F,re))},Me}return gMe}var wMe,hGt;function ox(){if(hGt)return wMe;hGt=1;const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:o,ObjectSetPrototypeOf:l}=Ff;wMe=h;const u=zbe(),d=XUe();l(h.prototype,u.prototype),l(h,u);{const E=o(d.prototype);for(let A=0;A{if(r){n?n(r):this.destroy(r);return}o!=null&&this.push(o),this.push(null),n&&n()}):(this.push(null),n&&n())}function q0r(){this._final!==pFe&&pFe.call(this)}sx.prototype._final=pFe;sx.prototype._transform=function(n,r,o){throw new z0r("_transform()")};sx.prototype._write=function(n,r,o){const l=this._readableState,u=this._writableState,d=l.length;this._transform(n,r,(h,w)=>{if(h){o(h);return}w!=null&&this.push(w),u.ended||d===l.length||l.length{l=!0});const u=ahe(n,{readable:r,writable:o},d=>{l=!d});return{destroy:d=>{l||(l=!0,ewr.destroyer(n,d||new rwr("pipe")))},cleanup:u}}function fwr(n){return swr(n[n.length-1],"streams[stream.length - 1]"),n.pop()}function kMe(n){if(A8(n))return n;if(tde(n))return dwr(n);throw new bFe("val",["Readable","Iterable","AsyncIterable"],n)}async function*dwr(n){SMe||(SMe=zbe()),yield*SMe.prototype[Y0r].call(n)}async function Tue(n,r,o,{end:l}){let u,d=null;const h=y=>{if(y&&(u=y),d){const E=d;d=null,E()}},w=()=>new J0r((y,E)=>{u?E(u):d=()=>{u?E(u):y()}});r.on("drain",h);const v=ahe(r,{readable:!1},h);try{r.writableNeedDrain&&await w();for await(const y of n)r.write(y)||await w();l&&(r.end(),await w()),o()}catch(y){o(u!==y?twr(u,y):y)}finally{v(),r.off("drain",h)}}async function RMe(n,r,o,{end:l}){xD(r)&&(r=r.writable);const u=r.getWriter();try{for await(const d of n)await u.ready,u.write(d).catch(()=>{});await u.ready,l&&await u.close(),o()}catch(d){try{await u.abort(d),o(d)}catch(h){o(h)}}}function hwr(...n){return nsn(n,Z0r(fwr(n)))}function nsn(n,r,o){if(n.length===1&&X0r(n[0])&&(n=n[0]),n.length<2)throw new nwr("streams");const l=new uwr,u=l.signal,d=o==null?void 0:o.signal,h=[];lwr(d,"options.signal");function w(){O(new owr)}EMe=EMe||f1.addAbortListener;let v;d&&(v=EMe(d,w));let y,E;const A=[];let C=0;function R(G){O(G,--C===0)}function O(G,j){var Q;if(G&&(!y||y.code==="ERR_STREAM_PREMATURE_CLOSE")&&(y=G),!(!y&&!j)){for(;A.length;)A.shift()(y);(Q=v)===null||Q===void 0||Q[Q0r](),l.abort(),j&&(y||h.forEach(te=>te()),OK.nextTick(r,y,E))}}let M;for(let G=0;G0,pe=Q||(o==null?void 0:o.end)!==!1,Le=G===n.length-1;if(bGt(j)){let Ee=function(le){le&&le.name!=="AbortError"&&le.code!=="ERR_STREAM_PREMATURE_CLOSE"&&R(le)};if(pe){const{destroy:le,cleanup:xe}=gGt(j,Q,te);A.push(le),yMe(j)&&Le&&h.push(xe)}j.on("error",Ee),yMe(j)&&Le&&h.push(()=>{j.removeListener("error",Ee)})}if(G===0)if(typeof j=="function"){if(M=j({signal:u}),!A8(M))throw new mMe("Iterable, AsyncIterable or Stream","source",M)}else A8(j)||tde(j)||xD(j)?M=j:M=pGt.from(j);else if(typeof j=="function"){if(xD(M)){var L;M=kMe((L=M)===null||L===void 0?void 0:L.readable)}else M=kMe(M);if(M=j(M,{signal:u}),Q){if(!A8(M,!0))throw new mMe("AsyncIterable",`transform[${G-1}]`,M)}else{var H;_Me||(_Me=tsn);const Ee=new _Me({objectMode:!0}),le=(H=M)===null||H===void 0?void 0:H.then;if(typeof le=="function")C++,le.call(M,ae=>{E=ae,ae!=null&&Ee.write(ae),pe&&Ee.end(),OK.nextTick(R)},ae=>{Ee.destroy(ae),OK.nextTick(R,ae)});else if(A8(M,!0))C++,Tue(M,Ee,R,{end:pe});else if(vMe(M)||xD(M)){const ae=M.readable||M;C++,Tue(ae,Ee,R,{end:pe})}else throw new mMe("AsyncIterable or Promise","destination",M);M=Ee;const{destroy:xe,cleanup:be}=gGt(M,!1,!0);A.push(xe),Le&&h.push(be)}}else if(bGt(j)){if(tde(M)){C+=2;const Ee=pwr(M,j,R,{end:pe});yMe(j)&&Le&&h.push(Ee)}else if(xD(M)||vMe(M)){const Ee=M.readable||M;C++,Tue(Ee,j,R,{end:pe})}else if(A8(M))C++,Tue(M,j,R,{end:pe});else throw new bFe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else if(awr(j)){if(tde(M))C++,RMe(kMe(M),j,R,{end:pe});else if(vMe(M)||A8(M))C++,RMe(M,j,R,{end:pe});else if(xD(M))C++,RMe(M.readable,j,R,{end:pe});else throw new bFe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else M=pGt.from(j)}return(u!=null&&u.aborted||d!=null&&d.aborted)&&OK.nextTick(w),M}function pwr(n,r,o,{end:l}){let u=!1;if(r.on("close",()=>{u||o(new iwr)}),n.pipe(r,{end:!1}),l){let d=function(){u=!0,r.end()};cwr(n)?OK.nextTick(d):n.once("end",d)}else o();return ahe(n,{readable:!0,writable:!1},d=>{const h=n._readableState;d&&d.code==="ERR_STREAM_PREMATURE_CLOSE"&&h&&h.ended&&!h.errored&&!h.errorEmitted?n.once("end",o).once("error",o):o(d)}),ahe(r,{readable:!1,writable:!0},o)}var QUe={pipelineImpl:nsn,pipeline:hwr};const{pipeline:bwr}=QUe,$ue=ox(),{destroyer:gwr}=Ej,{isNodeStream:Iue,isReadable:wGt,isWritable:mGt,isWebStream:xMe,isTransformStream:a8,isWritableStream:yGt,isReadableStream:vGt}=Ax,{AbortError:wwr,codes:{ERR_INVALID_ARG_VALUE:_Gt,ERR_MISSING_ARGS:mwr}}=I0,ywr=WT;var rsn=function(...r){if(r.length===0)throw new mwr("streams");if(r.length===1)return $ue.from(r[0]);const o=[...r];if(typeof r[0]=="function"&&(r[0]=$ue.from(r[0])),typeof r[r.length-1]=="function"){const R=r.length-1;r[R]=$ue.from(r[R])}for(let R=0;R0&&!(mGt(r[R])||yGt(r[R])||a8(r[R])))throw new _Gt(`streams[${R}]`,o[R],"must be writable")}let l,u,d,h,w;function v(R){const O=h;h=null,O?O(R):R?w.destroy(R):!C&&!A&&w.destroy()}const y=r[0],E=bwr(r,v),A=!!(mGt(y)||yGt(y)||a8(y)),C=!!(wGt(E)||vGt(E)||a8(E));if(w=new $ue({writableObjectMode:!!(y!=null&&y.writableObjectMode),readableObjectMode:!!(E!=null&&E.readableObjectMode),writable:A,readable:C}),A){if(Iue(y))w._write=function(O,M,L){y.write(O,M)?L():l=L},w._final=function(O){y.end(),u=O},y.on("drain",function(){if(l){const O=l;l=null,O()}});else if(xMe(y)){const M=(a8(y)?y.writable:y).getWriter();w._write=async function(L,H,G){try{await M.ready,M.write(L).catch(()=>{}),G()}catch(j){G(j)}},w._final=async function(L){try{await M.ready,M.close().catch(()=>{}),u=L}catch(H){L(H)}}}const R=a8(E)?E.readable:E;ywr(R,()=>{if(u){const O=u;u=null,O()}})}if(C){if(Iue(E))E.on("readable",function(){if(d){const R=d;d=null,R()}}),E.on("end",function(){w.push(null)}),w._read=function(){for(;;){const R=E.read();if(R===null){d=w._read;return}if(!w.push(R))return}};else if(xMe(E)){const O=(a8(E)?E.readable:E).getReader();w._read=async function(){for(;;)try{const{value:M,done:L}=await O.read();if(!w.push(M))return;if(L){w.push(null);return}}catch{return}}}}return w._destroy=function(R,O){!R&&h!==null&&(R=new wwr),d=null,l=null,u=null,h===null?O(R):(h=O,Iue(E)&&gwr(E,R))},w};const vwr=globalThis.AbortController||$o().AbortController,{codes:{ERR_INVALID_ARG_VALUE:_wr,ERR_INVALID_ARG_TYPE:AJ,ERR_MISSING_ARGS:Swr,ERR_OUT_OF_RANGE:Ewr},AbortError:ak}=I0,{validateAbortSignal:lO,validateInteger:SGt,validateObject:aO}=CJ,kwr=Ff.Symbol("kWeak"),Rwr=Ff.Symbol("kResistStopPropagation"),{finished:xwr}=WT,Cwr=rsn,{addAbortSignalNoValidate:Awr}=Gbe,{isWritable:Twr,isNodeStream:$wr}=Ax,{deprecate:Iwr}=f1,{ArrayPrototypePush:Pwr,Boolean:Owr,MathFloor:EGt,Number:Nwr,NumberIsNaN:Mwr,Promise:kGt,PromiseReject:RGt,PromiseResolve:Dwr,PromisePrototypeThen:xGt,Symbol:isn}=Ff,che=isn("kEmpty"),CGt=isn("kEof");function Lwr(n,r){if(r!=null&&aO(r,"options"),(r==null?void 0:r.signal)!=null&&lO(r.signal,"options.signal"),$wr(n)&&!Twr(n))throw new _wr("stream",n,"must be writable");const o=Cwr(this,n);return r!=null&&r.signal&&Awr(r.signal,o),o}function Kbe(n,r){if(typeof n!="function")throw new AJ("fn",["Function","AsyncFunction"],n);r!=null&&aO(r,"options"),(r==null?void 0:r.signal)!=null&&lO(r.signal,"options.signal");let o=1;(r==null?void 0:r.concurrency)!=null&&(o=EGt(r.concurrency));let l=o-1;return(r==null?void 0:r.highWaterMark)!=null&&(l=EGt(r.highWaterMark)),SGt(o,"options.concurrency",1),SGt(l,"options.highWaterMark",0),l+=o,(async function*(){const d=f1.AbortSignalAny([r==null?void 0:r.signal].filter(Owr)),h=this,w=[],v={signal:d};let y,E,A=!1,C=0;function R(){A=!0,O()}function O(){C-=1,M()}function M(){E&&!A&&C=l||C>=o)&&await new kGt(G=>{E=G})}w.push(CGt)}catch(H){const G=RGt(H);xGt(G,O,R),w.push(G)}finally{A=!0,y&&(y(),y=null)}}L();try{for(;;){for(;w.length>0;){const H=await w[0];if(H===CGt)return;if(d.aborted)throw new ak;H!==che&&(yield H),w.shift(),M()}await new kGt(H=>{y=H})}}finally{A=!0,E&&(E(),E=null)}}).call(this)}function jwr(n=void 0){return n!=null&&aO(n,"options"),(n==null?void 0:n.signal)!=null&&lO(n.signal,"options.signal"),(async function*(){let o=0;for await(const u of this){var l;if(n!=null&&(l=n.signal)!==null&&l!==void 0&&l.aborted)throw new ak({cause:n.signal.reason});yield[o++,u]}}).call(this)}async function osn(n,r=void 0){for await(const o of ZUe.call(this,n,r))return!0;return!1}async function Fwr(n,r=void 0){if(typeof n!="function")throw new AJ("fn",["Function","AsyncFunction"],n);return!await osn.call(this,async(...o)=>!await n(...o),r)}async function Bwr(n,r){for await(const o of ZUe.call(this,n,r))return o}async function Wwr(n,r){if(typeof n!="function")throw new AJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u),che}for await(const l of Kbe.call(this,o,r));}function ZUe(n,r){if(typeof n!="function")throw new AJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u)?l:che}return Kbe.call(this,o,r)}let Hwr=class extends Swr{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function Uwr(n,r,o){var l;if(typeof n!="function")throw new AJ("reducer",["Function","AsyncFunction"],n);o!=null&&aO(o,"options"),(o==null?void 0:o.signal)!=null&&lO(o.signal,"options.signal");let u=arguments.length>1;if(o!=null&&(l=o.signal)!==null&&l!==void 0&&l.aborted){const y=new ak(void 0,{cause:o.signal.reason});throw this.once("error",()=>{}),await xwr(this.destroy(y)),y}const d=new vwr,h=d.signal;if(o!=null&&o.signal){const y={once:!0,[kwr]:this,[Rwr]:!0};o.signal.addEventListener("abort",()=>d.abort(),y)}let w=!1;try{for await(const y of this){var v;if(w=!0,o!=null&&(v=o.signal)!==null&&v!==void 0&&v.aborted)throw new ak;u?r=await n(r,y,{signal:h}):(r=y,u=!0)}if(!w&&!u)throw new Hwr}finally{d.abort()}return r}async function Gwr(n){n!=null&&aO(n,"options"),(n==null?void 0:n.signal)!=null&&lO(n.signal,"options.signal");const r=[];for await(const l of this){var o;if(n!=null&&(o=n.signal)!==null&&o!==void 0&&o.aborted)throw new ak(void 0,{cause:n.signal.reason});Pwr(r,l)}return r}function Vwr(n,r){const o=Kbe.call(this,n,r);return(async function*(){for await(const u of o)yield*u}).call(this)}function ssn(n){if(n=Nwr(n),Mwr(n))return 0;if(n<0)throw new Ewr("number",">= 0",n);return n}function zwr(n,r=void 0){return r!=null&&aO(r,"options"),(r==null?void 0:r.signal)!=null&&lO(r.signal,"options.signal"),n=ssn(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new ak;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new ak;n--<=0&&(yield d)}}).call(this)}function Kwr(n,r=void 0){return r!=null&&aO(r,"options"),(r==null?void 0:r.signal)!=null&&lO(r.signal,"options.signal"),n=ssn(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new ak;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new ak;if(n-- >0&&(yield d),n<=0)return}}).call(this)}UUe.streamReturningOperators={asIndexedPairs:Iwr(jwr,"readable.asIndexedPairs will be removed in a future version."),drop:zwr,filter:ZUe,flatMap:Vwr,map:Kbe,take:Kwr,compose:Lwr};UUe.promiseReturningOperators={every:Fwr,forEach:Wwr,reduce:Uwr,toArray:Gwr,some:osn,find:Bwr};var CMe,AGt;function lsn(){if(AGt)return CMe;AGt=1;const{ArrayPrototypePop:n,Promise:r}=Ff,{isIterable:o,isNodeStream:l,isWebStream:u}=Ax,{pipelineImpl:d}=QUe,{finished:h}=WT;asn();function w(...v){return new r((y,E)=>{let A,C;const R=v[v.length-1];if(R&&typeof R=="object"&&!l(R)&&!o(R)&&!u(R)){const O=n(v);A=O.signal,C=O.end}d(v,(O,M)=>{O?E(O):y(M)},{signal:A,end:C})})}return CMe={finished:h,pipeline:w},CMe}var TGt;function asn(){if(TGt)return uMe.exports;TGt=1;const{Buffer:n}=Kr,{ObjectDefineProperty:r,ObjectKeys:o,ReflectApply:l}=Ff,{promisify:{custom:u}}=f1,{streamReturningOperators:d,promiseReturningOperators:h}=UUe,{codes:{ERR_ILLEGAL_CONSTRUCTOR:w}}=I0,v=rsn,{setDefaultHighWaterMark:y,getDefaultHighWaterMark:E}=Vbe,{pipeline:A}=QUe,{destroyer:C}=Ej,R=WT,O=lsn(),M=Ax,L=uMe.exports=qUe.Stream;L.isDestroyed=M.isDestroyed,L.isDisturbed=M.isDisturbed,L.isErrored=M.isErrored,L.isReadable=M.isReadable,L.isWritable=M.isWritable,L.Readable=zbe();for(const G of o(d)){let Q=function(...te){if(new.target)throw w();return L.Readable.from(l(j,this,te))};const j=d[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}for(const G of o(h)){let Q=function(...te){if(new.target)throw w();return l(j,this,te)};const j=h[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}L.Writable=XUe(),L.Duplex=ox(),L.Transform=Zon,L.PassThrough=tsn,L.pipeline=A;const{addAbortSignal:H}=Gbe;return L.addAbortSignal=H,L.finished=R,L.destroy=C,L.compose=v,L.setDefaultHighWaterMark=y,L.getDefaultHighWaterMark=E,r(L,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return O}}),r(A,u,{__proto__:null,enumerable:!0,get(){return O.pipeline}}),r(R,u,{__proto__:null,enumerable:!0,get(){return O.finished}}),L.Stream=L,L._isUint8Array=function(j){return j instanceof Uint8Array},L._uint8ArrayToBuffer=function(j){return n.from(j.buffer,j.byteOffset,j.byteLength)},uMe.exports}(function(n){const r=asn(),o=lsn(),l=r.Readable.destroy;n.exports=r.Readable,n.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer,n.exports._isUint8Array=r._isUint8Array,n.exports.isDisturbed=r.isDisturbed,n.exports.isErrored=r.isErrored,n.exports.isReadable=r.isReadable,n.exports.Readable=r.Readable,n.exports.Writable=r.Writable,n.exports.Duplex=r.Duplex,n.exports.Transform=r.Transform,n.exports.PassThrough=r.PassThrough,n.exports.addAbortSignal=r.addAbortSignal,n.exports.finished=r.finished,n.exports.destroy=r.destroy,n.exports.destroy=l,n.exports.pipeline=r.pipeline,n.exports.compose=r.compose,Object.defineProperty(r,"promises",{configurable:!0,enumerable:!0,get(){return o}}),n.exports.Stream=r.Stream,n.exports.default=n.exports})(mon);var qwr=mon.exports;class Xwr extends qwr.Transform{constructor(r){super({decodeStrings:!0}),this._readableState.objectMode=!0;const o=new gon(r);let l,u;const d={onQuad:(h,w)=>{h&&this.emit("error",h)||w&&this.push(w)},onPrefix:(h,w)=>{this.emit("prefix",h,w)}};r&&r.comments&&(d.onComment=h=>{this.emit("comment",h)}),o.parse({on:(h,w)=>{switch(h){case"data":l=w;break;case"end":u=w;break}}},d),this._transform=(h,w,v)=>{l(h),v()},this._flush=h=>{u(),h()}}import(r){return r.on("data",o=>{this.write(o)}),r.on("end",()=>{this.end()}),r.on("error",o=>{this.emit("error",o)}),this}}class Jwr{constructor(r,{baseIRI:o="",factory:l=sHe,...u}={}){const d={blankNode:l.blankNode.bind(l),defaultGraph:l.defaultGraph.bind(l),literal:l.literal.bind(l),namedNode:l.namedNode.bind(l),quad:l.quad.bind(l)},h=new Xwr({baseIRI:o,factory:d,...u});return r.pipe(h),bUe(h)}}class CD extends Jpe{constructor(r){super(Jwr,r)}}const Ywr=Object.freeze(Object.defineProperty({__proto__:null,default:CD},Symbol.toStringTag,{value:"Module"}));var csn={exports:{}},AMe={exports:{}},Bf={ArrayIsArray(n){return Array.isArray(n)},ArrayPrototypeIncludes(n,r){return n.includes(r)},ArrayPrototypeIndexOf(n,r){return n.indexOf(r)},ArrayPrototypeJoin(n,r){return n.join(r)},ArrayPrototypeMap(n,r){return n.map(r)},ArrayPrototypePop(n,r){return n.pop(r)},ArrayPrototypePush(n,r){return n.push(r)},ArrayPrototypeSlice(n,r,o){return n.slice(r,o)},Error,FunctionPrototypeCall(n,r,...o){return n.call(r,...o)},FunctionPrototypeSymbolHasInstance(n,r){return Function.prototype[Symbol.hasInstance].call(n,r)},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(n,r){return Object.defineProperties(n,r)},ObjectDefineProperty(n,r,o){return Object.defineProperty(n,r,o)},ObjectGetOwnPropertyDescriptor(n,r){return Object.getOwnPropertyDescriptor(n,r)},ObjectKeys(n){return Object.keys(n)},ObjectSetPrototypeOf(n,r){return Object.setPrototypeOf(n,r)},Promise,PromisePrototypeCatch(n,r){return n.catch(r)},PromisePrototypeThen(n,r,o){return n.then(r,o)},PromiseReject(n){return Promise.reject(n)},PromiseResolve(n){return Promise.resolve(n)},ReflectApply:Reflect.apply,RegExpPrototypeTest(n,r){return n.test(r)},SafeSet:Set,String,StringPrototypeSlice(n,r,o){return n.slice(r,o)},StringPrototypeToLowerCase(n){return n.toLowerCase()},StringPrototypeToUpperCase(n){return n.toUpperCase()},StringPrototypeTrim(n){return n.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(n,r,o){return n.set(r,o)},Boolean,Uint8Array},usn={exports:{}};(function(n){const r=Kr,{kResistStopPropagation:o,SymbolDispose:l}=Bf,u=globalThis.AbortSignal||$o().AbortSignal,d=globalThis.AbortController||$o().AbortController,h=Object.getPrototypeOf(async function(){}).constructor,w=globalThis.Blob||r.Blob,v=typeof w<"u"?function(R){return R instanceof w}:function(R){return!1},y=(C,R)=>{if(C!==void 0&&(C===null||typeof C!="object"||!("aborted"in C)))throw new ERR_INVALID_ARG_TYPE(R,"AbortSignal",C)},E=(C,R)=>{if(typeof C!="function")throw new ERR_INVALID_ARG_TYPE(R,"Function",C)};class A extends Error{constructor(R){if(!Array.isArray(R))throw new TypeError(`Expected input to be an Array, got ${typeof R}`);let O="";for(let M=0;M{C=M,R=L}),resolve:C,reject:R}},promisify(C){return new Promise((R,O)=>{C((M,...L)=>M?O(M):R(...L))})},debuglog(){return function(){}},format(C,...R){return C.replace(/%([sdifj])/g,function(...[O,M]){const L=R.shift();return M==="f"?L.toFixed(6):M==="j"?JSON.stringify(L):M==="s"&&typeof L=="object"?`${L.constructor!==Object?L.constructor.name:""} {}`.trim():L.toString()})},inspect(C){switch(typeof C){case"string":if(C.includes("'"))if(C.includes('"')){if(!C.includes("`")&&!C.includes("${"))return`\`${C}\``}else return`"${C}"`;return`'${C}'`;case"number":return isNaN(C)?"NaN":Object.is(C,-0)?String(C):C;case"bigint":return`${String(C)}n`;case"boolean":case"undefined":return String(C);case"object":return"{}"}},types:{isAsyncFunction(C){return C instanceof h},isArrayBufferView(C){return ArrayBuffer.isView(C)}},isBlob:v,deprecate(C,R){return C},addAbortListener:Ns.addAbortListener||function(R,O){if(R===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",R);y(R,"signal"),E(O,"listener");let M;return R.aborted?queueMicrotask(()=>O()):(R.addEventListener("abort",O,{__proto__:null,once:!0,[o]:!0}),M=()=>{R.removeEventListener("abort",O)}),{__proto__:null,[l](){var L;(L=M)===null||L===void 0||L()}}},AbortSignalAny:u.any||function(R){if(R.length===1)return R[0];const O=new d,M=()=>O.abort();return R.forEach(L=>{y(L,"signals"),L.addEventListener("abort",M,{once:!0})}),O.signal.addEventListener("abort",()=>{R.forEach(L=>L.removeEventListener("abort",M))},{once:!0}),O.signal}},n.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(usn);var d1=usn.exports,eGe={};const{format:Qwr,inspect:uhe,AggregateError:Zwr}=d1,emr=globalThis.AggregateError||Zwr,tmr=Symbol("kIsNodeError"),nmr=["string","function","number","object","Function","Object","boolean","bigint","symbol"],rmr=/^([A-Z][a-z0-9]*)+$/,imr="__node_internal_",qbe={};function aP(n,r){if(!n)throw new qbe.ERR_INTERNAL_ASSERTION(r)}function $Gt(n){let r="",o=n.length;const l=n[0]==="-"?1:0;for(;o>=l+4;o-=3)r=`_${n.slice(o-3,o)}${r}`;return`${n.slice(0,o)}${r}`}function omr(n,r,o){if(typeof r=="function")return aP(r.length<=o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${r.length}).`),r(...o);const l=(r.match(/%[dfijoOs]/g)||[]).length;return aP(l===o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${l}).`),o.length===0?r:Qwr(r,...o)}function Zp(n,r,o){o||(o=Error);class l extends o{constructor(...d){super(omr(n,r,d))}toString(){return`${this.name} [${n}]: ${this.message}`}}Object.defineProperties(l.prototype,{name:{value:o.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${n}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),l.prototype.code=n,l.prototype[tmr]=!0,qbe[n]=l}function IGt(n){const r=imr+n.name;return Object.defineProperty(n,"name",{value:r}),n}function smr(n,r){if(n&&r&&n!==r){if(Array.isArray(r.errors))return r.errors.push(n),r;const o=new emr([r,n],r.message);return o.code=r.code,o}return n||r}let lmr=class extends Error{constructor(r="The operation was aborted",o=void 0){if(o!==void 0&&typeof o!="object")throw new qbe.ERR_INVALID_ARG_TYPE("options","Object",o);super(r,o),this.code="ABORT_ERR",this.name="AbortError"}};Zp("ERR_ASSERTION","%s",Error);Zp("ERR_INVALID_ARG_TYPE",(n,r,o)=>{aP(typeof n=="string","'name' must be a string"),Array.isArray(r)||(r=[r]);let l="The ";n.endsWith(" argument")?l+=`${n} `:l+=`"${n}" ${n.includes(".")?"property":"argument"} `,l+="must be ";const u=[],d=[],h=[];for(const v of r)aP(typeof v=="string","All expected entries have to be of type string"),nmr.includes(v)?u.push(v.toLowerCase()):rmr.test(v)?d.push(v):(aP(v!=="object",'The value "object" should be written as "Object"'),h.push(v));if(d.length>0){const v=u.indexOf("object");v!==-1&&(u.splice(u,v,1),d.push("Object"))}if(u.length>0){switch(u.length){case 1:l+=`of type ${u[0]}`;break;case 2:l+=`one of type ${u[0]} or ${u[1]}`;break;default:{const v=u.pop();l+=`one of type ${u.join(", ")}, or ${v}`}}(d.length>0||h.length>0)&&(l+=" or ")}if(d.length>0){switch(d.length){case 1:l+=`an instance of ${d[0]}`;break;case 2:l+=`an instance of ${d[0]} or ${d[1]}`;break;default:{const v=d.pop();l+=`an instance of ${d.join(", ")}, or ${v}`}}h.length>0&&(l+=" or ")}switch(h.length){case 0:break;case 1:h[0].toLowerCase()!==h[0]&&(l+="an "),l+=`${h[0]}`;break;case 2:l+=`one of ${h[0]} or ${h[1]}`;break;default:{const v=h.pop();l+=`one of ${h.join(", ")}, or ${v}`}}if(o==null)l+=`. Received ${o}`;else if(typeof o=="function"&&o.name)l+=`. Received function ${o.name}`;else if(typeof o=="object"){var w;if((w=o.constructor)!==null&&w!==void 0&&w.name)l+=`. Received an instance of ${o.constructor.name}`;else{const v=uhe(o,{depth:-1});l+=`. Received ${v}`}}else{let v=uhe(o,{colors:!1});v.length>25&&(v=`${v.slice(0,25)}...`),l+=`. Received type ${typeof o} (${v})`}return l},TypeError);Zp("ERR_INVALID_ARG_VALUE",(n,r,o="is invalid")=>{let l=uhe(r);return l.length>128&&(l=l.slice(0,128)+"..."),`The ${n.includes(".")?"property":"argument"} '${n}' ${o}. Received ${l}`},TypeError);Zp("ERR_INVALID_RETURN_VALUE",(n,r,o)=>{var l;const u=o!=null&&(l=o.constructor)!==null&&l!==void 0&&l.name?`instance of ${o.constructor.name}`:`type ${typeof o}`;return`Expected ${n} to be returned from the "${r}" function but got ${u}.`},TypeError);Zp("ERR_MISSING_ARGS",(...n)=>{aP(n.length>0,"At least one arg needs to be specified");let r;const o=n.length;switch(n=(Array.isArray(n)?n:[n]).map(l=>`"${l}"`).join(" or "),o){case 1:r+=`The ${n[0]} argument`;break;case 2:r+=`The ${n[0]} and ${n[1]} arguments`;break;default:{const l=n.pop();r+=`The ${n.join(", ")}, and ${l} arguments`}break}return`${r} must be specified`},TypeError);Zp("ERR_OUT_OF_RANGE",(n,r,o)=>{aP(r,'Missing "range" argument');let l;return Number.isInteger(o)&&Math.abs(o)>2**32?l=$Gt(String(o)):typeof o=="bigint"?(l=String(o),(o>2n**32n||o<-(2n**32n))&&(l=$Gt(l)),l+="n"):l=uhe(o),`The value of "${n}" is out of range. It must be ${r}. Received ${l}`},RangeError);Zp("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);Zp("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);Zp("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);Zp("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);Zp("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);Zp("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Zp("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);Zp("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);Zp("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);Zp("ERR_STREAM_WRITE_AFTER_END","write after end",Error);Zp("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var P0={AbortError:lmr,aggregateTwoErrors:IGt(smr),hideStackFrames:IGt,codes:qbe};const{ArrayIsArray:tGe,ArrayPrototypeIncludes:fsn,ArrayPrototypeJoin:dsn,ArrayPrototypeMap:amr,NumberIsInteger:nGe,NumberIsNaN:cmr,NumberMAX_SAFE_INTEGER:umr,NumberMIN_SAFE_INTEGER:fmr,NumberParseInt:dmr,ObjectPrototypeHasOwnProperty:hmr,RegExpPrototypeExec:hsn,String:pmr,StringPrototypeToUpperCase:bmr,StringPrototypeTrim:gmr}=Bf,{hideStackFrames:wv,codes:{ERR_SOCKET_BAD_PORT:wmr,ERR_INVALID_ARG_TYPE:Jb,ERR_INVALID_ARG_VALUE:kj,ERR_OUT_OF_RANGE:$P,ERR_UNKNOWN_SIGNAL:PGt}}=P0,{normalizeEncoding:mmr}=d1,{isAsyncFunction:ymr,isArrayBufferView:vmr}=d1.types,OGt={};function _mr(n){return n===(n|0)}function Smr(n){return n===n>>>0}const Emr=/^[0-7]+$/,kmr="must be a 32-bit unsigned integer or an octal string";function Rmr(n,r,o){if(typeof n>"u"&&(n=o),typeof n=="string"){if(hsn(Emr,n)===null)throw new kj(r,n,kmr);n=dmr(n,8)}return psn(n,r),n}const xmr=wv((n,r,o=fmr,l=umr)=>{if(typeof n!="number")throw new Jb(r,"number",n);if(!nGe(n))throw new $P(r,"an integer",n);if(nl)throw new $P(r,`>= ${o} && <= ${l}`,n)}),Cmr=wv((n,r,o=-2147483648,l=2147483647)=>{if(typeof n!="number")throw new Jb(r,"number",n);if(!nGe(n))throw new $P(r,"an integer",n);if(nl)throw new $P(r,`>= ${o} && <= ${l}`,n)}),psn=wv((n,r,o=!1)=>{if(typeof n!="number")throw new Jb(r,"number",n);if(!nGe(n))throw new $P(r,"an integer",n);const l=o?1:0,u=4294967295;if(nu)throw new $P(r,`>= ${l} && <= ${u}`,n)});function rGe(n,r){if(typeof n!="string")throw new Jb(r,"string",n)}function Amr(n,r,o=void 0,l){if(typeof n!="number")throw new Jb(r,"number",n);if(o!=null&&nl||(o!=null||l!=null)&&cmr(n))throw new $P(r,`${o!=null?`>= ${o}`:""}${o!=null&&l!=null?" && ":""}${l!=null?`<= ${l}`:""}`,n)}const Tmr=wv((n,r,o)=>{if(!fsn(o,n)){const u="must be one of: "+dsn(amr(o,d=>typeof d=="string"?`'${d}'`:pmr(d)),", ");throw new kj(r,n,u)}});function bsn(n,r){if(typeof n!="boolean")throw new Jb(r,"boolean",n)}function TMe(n,r,o){return n==null||!hmr(n,r)?o:n[r]}const $mr=wv((n,r,o=null)=>{const l=TMe(o,"allowArray",!1),u=TMe(o,"allowFunction",!1);if(!TMe(o,"nullable",!1)&&n===null||!l&&tGe(n)||typeof n!="object"&&(!u||typeof n!="function"))throw new Jb(r,"Object",n)}),Imr=wv((n,r)=>{if(n!=null&&typeof n!="object"&&typeof n!="function")throw new Jb(r,"a dictionary",n)}),Xbe=wv((n,r,o=0)=>{if(!tGe(n))throw new Jb(r,"Array",n);if(n.length{if(!vmr(n))throw new Jb(r,["Buffer","TypedArray","DataView"],n)});function Lmr(n,r){const o=mmr(r),l=n.length;if(o==="hex"&&l%2!==0)throw new kj("encoding",r,`is invalid for data of length ${l}`)}function jmr(n,r="Port",o=!0){if(typeof n!="number"&&typeof n!="string"||typeof n=="string"&&gmr(n).length===0||+n!==+n>>>0||n>65535||n===0&&!o)throw new wmr(r,n,o);return n|0}const gsn=wv((n,r)=>{if(n!==void 0&&(n===null||typeof n!="object"||!("aborted"in n)))throw new Jb(r,"AbortSignal",n)}),Fmr=wv((n,r)=>{if(typeof n!="function")throw new Jb(r,"Function",n)}),Bmr=wv((n,r)=>{if(typeof n!="function"||ymr(n))throw new Jb(r,"Function",n)}),Wmr=wv((n,r)=>{if(n!==void 0)throw new Jb(r,"undefined",n)});function Hmr(n,r,o){if(!fsn(o,n))throw new Jb(r,`('${dsn(o,"|")}')`,n)}const Umr=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function NGt(n,r){if(typeof n>"u"||!hsn(Umr,n))throw new kj(r,n,'must be an array or string of format "; rel=preload; as=style"')}function Gmr(n){if(typeof n=="string")return NGt(n,"hints"),n;if(tGe(n)){const r=n.length;let o="";if(r===0)return o;for(let l=0;l; rel=preload; as=style"')}var TJ={isInt32:_mr,isUint32:Smr,parseFileMode:Rmr,validateArray:Xbe,validateStringArray:Pmr,validateBooleanArray:Omr,validateAbortSignalArray:Nmr,validateBoolean:bsn,validateBuffer:Dmr,validateDictionary:Imr,validateEncoding:Lmr,validateFunction:Fmr,validateInt32:Cmr,validateInteger:xmr,validateNumber:Amr,validateObject:$mr,validateOneOf:Tmr,validatePlainFunction:Bmr,validatePort:jmr,validateSignalName:Mmr,validateString:rGe,validateUint32:psn,validateUndefined:Wmr,validateUnion:Hmr,validateAbortSignal:gsn,validateLinkHeaderValue:Gmr},iGe={exports:{}};const{SymbolAsyncIterator:MGt,SymbolIterator:DGt,SymbolFor:cO}=Bf,wsn=cO("nodejs.stream.destroyed"),msn=cO("nodejs.stream.errored"),gFe=cO("nodejs.stream.readable"),wFe=cO("nodejs.stream.writable"),ysn=cO("nodejs.stream.disturbed"),Vmr=cO("nodejs.webstream.isClosedPromise"),zmr=cO("nodejs.webstream.controllerErrorFunction");function Jbe(n,r=!1){var o;return!!(n&&typeof n.pipe=="function"&&typeof n.on=="function"&&(!r||typeof n.pause=="function"&&typeof n.resume=="function")&&(!n._writableState||((o=n._readableState)===null||o===void 0?void 0:o.readable)!==!1)&&(!n._writableState||n._readableState))}function Ybe(n){var r;return!!(n&&typeof n.write=="function"&&typeof n.on=="function"&&(!n._readableState||((r=n._writableState)===null||r===void 0?void 0:r.writable)!==!1))}function Kmr(n){return!!(n&&typeof n.pipe=="function"&&n._readableState&&typeof n.on=="function"&&typeof n.write=="function")}function _k(n){return n&&(n._readableState||n._writableState||typeof n.write=="function"&&typeof n.on=="function"||typeof n.pipe=="function"&&typeof n.on=="function")}function vsn(n){return!!(n&&!_k(n)&&typeof n.pipeThrough=="function"&&typeof n.getReader=="function"&&typeof n.cancel=="function")}function _sn(n){return!!(n&&!_k(n)&&typeof n.getWriter=="function"&&typeof n.abort=="function")}function Ssn(n){return!!(n&&!_k(n)&&typeof n.readable=="object"&&typeof n.writable=="object")}function qmr(n){return vsn(n)||_sn(n)||Ssn(n)}function Xmr(n,r){return n==null?!1:r===!0?typeof n[MGt]=="function":r===!1?typeof n[DGt]=="function":typeof n[MGt]=="function"||typeof n[DGt]=="function"}function Qbe(n){if(!_k(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!!(n.destroyed||n[wsn]||l!=null&&l.destroyed)}function Esn(n){if(!Ybe(n))return null;if(n.writableEnded===!0)return!0;const r=n._writableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function Jmr(n,r){if(!Ybe(n))return null;if(n.writableFinished===!0)return!0;const o=n._writableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.finished)!="boolean"?null:!!(o.finished||r===!1&&o.ended===!0&&o.length===0)}function Ymr(n){if(!Jbe(n))return null;if(n.readableEnded===!0)return!0;const r=n._readableState;return!r||r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function ksn(n,r){if(!Jbe(n))return null;const o=n._readableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.endEmitted)!="boolean"?null:!!(o.endEmitted||r===!1&&o.ended===!0&&o.length===0)}function Rsn(n){return n&&n[gFe]!=null?n[gFe]:typeof(n==null?void 0:n.readable)!="boolean"?null:Qbe(n)?!1:Jbe(n)&&n.readable&&!ksn(n)}function xsn(n){return n&&n[wFe]!=null?n[wFe]:typeof(n==null?void 0:n.writable)!="boolean"?null:Qbe(n)?!1:Ybe(n)&&n.writable&&!Esn(n)}function Qmr(n,r){return _k(n)?Qbe(n)?!0:!((r==null?void 0:r.readable)!==!1&&Rsn(n)||(r==null?void 0:r.writable)!==!1&&xsn(n)):null}function Zmr(n){var r,o;return _k(n)?n.writableErrored?n.writableErrored:(r=(o=n._writableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function eyr(n){var r,o;return _k(n)?n.readableErrored?n.readableErrored:(r=(o=n._readableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function tyr(n){if(!_k(n))return null;if(typeof n.closed=="boolean")return n.closed;const r=n._writableState,o=n._readableState;return typeof(r==null?void 0:r.closed)=="boolean"||typeof(o==null?void 0:o.closed)=="boolean"?(r==null?void 0:r.closed)||(o==null?void 0:o.closed):typeof n._closed=="boolean"&&Csn(n)?n._closed:null}function Csn(n){return typeof n._closed=="boolean"&&typeof n._defaultKeepAlive=="boolean"&&typeof n._removedConnection=="boolean"&&typeof n._removedContLen=="boolean"}function Asn(n){return typeof n._sent100=="boolean"&&Csn(n)}function nyr(n){var r;return typeof n._consuming=="boolean"&&typeof n._dumped=="boolean"&&((r=n.req)===null||r===void 0?void 0:r.upgradeOrConnect)===void 0}function ryr(n){if(!_k(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!l&&Asn(n)||!!(l&&l.autoDestroy&&l.emitClose&&l.closed===!1)}function iyr(n){var r;return!!(n&&((r=n[ysn])!==null&&r!==void 0?r:n.readableDidRead||n.readableAborted))}function oyr(n){var r,o,l,u,d,h,w,v,y,E;return!!(n&&((r=(o=(l=(u=(d=(h=n[msn])!==null&&h!==void 0?h:n.readableErrored)!==null&&d!==void 0?d:n.writableErrored)!==null&&u!==void 0?u:(w=n._readableState)===null||w===void 0?void 0:w.errorEmitted)!==null&&l!==void 0?l:(v=n._writableState)===null||v===void 0?void 0:v.errorEmitted)!==null&&o!==void 0?o:(y=n._readableState)===null||y===void 0?void 0:y.errored)!==null&&r!==void 0?r:!((E=n._writableState)===null||E===void 0)&&E.errored))}var Tx={isDestroyed:Qbe,kIsDestroyed:wsn,isDisturbed:iyr,kIsDisturbed:ysn,isErrored:oyr,kIsErrored:msn,isReadable:Rsn,kIsReadable:gFe,kIsClosedPromise:Vmr,kControllerErrorFunction:zmr,kIsWritable:wFe,isClosed:tyr,isDuplexNodeStream:Kmr,isFinished:Qmr,isIterable:Xmr,isReadableNodeStream:Jbe,isReadableStream:vsn,isReadableEnded:Ymr,isReadableFinished:ksn,isReadableErrored:eyr,isNodeStream:_k,isWebStream:qmr,isWritable:xsn,isWritableNodeStream:Ybe,isWritableStream:_sn,isWritableEnded:Esn,isWritableFinished:Jmr,isWritableErrored:Zmr,isServerRequest:nyr,isServerResponse:Asn,willEmitClose:ryr,isTransformStream:Ssn};const J4=ui,{AbortError:Tsn,codes:syr}=P0,{ERR_INVALID_ARG_TYPE:lyr,ERR_STREAM_PREMATURE_CLOSE:LGt}=syr,{kEmptyObject:mFe,once:yFe}=d1,{validateAbortSignal:ayr,validateFunction:cyr,validateObject:uyr,validateBoolean:fyr}=TJ,{Promise:dyr,PromisePrototypeThen:hyr,SymbolDispose:$sn}=Bf,{isClosed:pyr,isReadable:jGt,isReadableNodeStream:$Me,isReadableStream:byr,isReadableFinished:FGt,isReadableErrored:BGt,isWritable:WGt,isWritableNodeStream:HGt,isWritableStream:gyr,isWritableFinished:UGt,isWritableErrored:GGt,isNodeStream:wyr,willEmitClose:myr,kIsClosedPromise:yyr}=Tx;let uL;function vyr(n){return n.setHeader&&typeof n.abort=="function"}const vFe=()=>{};function Isn(n,r,o){var l,u;if(arguments.length===2?(o=r,r=mFe):r==null?r=mFe:uyr(r,"options"),cyr(o,"callback"),ayr(r.signal,"options.signal"),o=yFe(o),byr(n)||gyr(n))return _yr(n,r,o);if(!wyr(n))throw new lyr("stream",["ReadableStream","WritableStream","Stream"],n);const d=(l=r.readable)!==null&&l!==void 0?l:$Me(n),h=(u=r.writable)!==null&&u!==void 0?u:HGt(n),w=n._writableState,v=n._readableState,y=()=>{n.writable||C()};let E=myr(n)&&$Me(n)===d&&HGt(n)===h,A=UGt(n,!1);const C=()=>{A=!0,n.destroyed&&(E=!1),!(E&&(!n.readable||d))&&(!d||R)&&o.call(n)};let R=FGt(n,!1);const O=()=>{R=!0,n.destroyed&&(E=!1),!(E&&(!n.writable||h))&&(!h||A)&&o.call(n)},M=te=>{o.call(n,te)};let L=pyr(n);const H=()=>{L=!0;const te=GGt(n)||BGt(n);if(te&&typeof te!="boolean")return o.call(n,te);if(d&&!R&&$Me(n,!0)&&!FGt(n,!1))return o.call(n,new LGt);if(h&&!A&&!UGt(n,!1))return o.call(n,new LGt);o.call(n)},G=()=>{L=!0;const te=GGt(n)||BGt(n);if(te&&typeof te!="boolean")return o.call(n,te);o.call(n)},j=()=>{n.req.on("finish",C)};vyr(n)?(n.on("complete",C),E||n.on("abort",H),n.req?j():n.on("request",j)):h&&!w&&(n.on("end",y),n.on("close",y)),!E&&typeof n.aborted=="boolean"&&n.on("aborted",H),n.on("end",O),n.on("finish",C),r.error!==!1&&n.on("error",M),n.on("close",H),L?J4.nextTick(H):w!=null&&w.errorEmitted||v!=null&&v.errorEmitted?E||J4.nextTick(G):(!d&&(!E||jGt(n))&&(A||WGt(n)===!1)||!h&&(!E||WGt(n))&&(R||jGt(n)===!1)||v&&n.req&&n.aborted)&&J4.nextTick(G);const Q=()=>{o=vFe,n.removeListener("aborted",H),n.removeListener("complete",C),n.removeListener("abort",H),n.removeListener("request",j),n.req&&n.req.removeListener("finish",C),n.removeListener("end",y),n.removeListener("close",y),n.removeListener("finish",C),n.removeListener("end",O),n.removeListener("error",M),n.removeListener("close",H)};if(r.signal&&!L){const te=()=>{const pe=o;Q(),pe.call(n,new Tsn(void 0,{cause:r.signal.reason}))};if(r.signal.aborted)J4.nextTick(te);else{uL=uL||d1.addAbortListener;const pe=uL(r.signal,te),Le=o;o=yFe((...Ee)=>{pe[$sn](),Le.apply(n,Ee)})}}return Q}function _yr(n,r,o){let l=!1,u=vFe;if(r.signal)if(u=()=>{l=!0,o.call(n,new Tsn(void 0,{cause:r.signal.reason}))},r.signal.aborted)J4.nextTick(u);else{uL=uL||d1.addAbortListener;const h=uL(r.signal,u),w=o;o=yFe((...v)=>{h[$sn](),w.apply(n,v)})}const d=(...h)=>{l||J4.nextTick(()=>o.apply(n,h))};return hyr(n[yyr].promise,d,d),vFe}function Syr(n,r){var o;let l=!1;return r===null&&(r=mFe),(o=r)!==null&&o!==void 0&&o.cleanup&&(fyr(r.cleanup,"cleanup"),l=r.cleanup),new dyr((u,d)=>{const h=Isn(n,r,w=>{l&&h(),w?d(w):u()})})}iGe.exports=Isn;iGe.exports.finished=Syr;var HT=iGe.exports;const zE=ui,{aggregateTwoErrors:Eyr,codes:{ERR_MULTIPLE_CALLBACK:kyr},AbortError:Ryr}=P0,{Symbol:Psn}=Bf,{kIsDestroyed:xyr,isDestroyed:Cyr,isFinished:Ayr,isServerRequest:Tyr}=Tx,Osn=Psn("kDestroy"),_Fe=Psn("kConstruct");function Nsn(n,r,o){n&&(n.stack,r&&!r.errored&&(r.errored=n),o&&!o.errored&&(o.errored=n))}function $yr(n,r){const o=this._readableState,l=this._writableState,u=l||o;return l!=null&&l.destroyed||o!=null&&o.destroyed?(typeof r=="function"&&r(),this):(Nsn(n,l,o),l&&(l.destroyed=!0),o&&(o.destroyed=!0),u.constructed?VGt(this,n,r):this.once(Osn,function(d){VGt(this,Eyr(d,n),r)}),this)}function VGt(n,r,o){let l=!1;function u(d){if(l)return;l=!0;const h=n._readableState,w=n._writableState;Nsn(d,w,h),w&&(w.closed=!0),h&&(h.closed=!0),typeof o=="function"&&o(d),d?zE.nextTick(Iyr,n,d):zE.nextTick(Msn,n)}try{n._destroy(r||null,u)}catch(d){u(d)}}function Iyr(n,r){SFe(n,r),Msn(n)}function Msn(n){const r=n._readableState,o=n._writableState;o&&(o.closeEmitted=!0),r&&(r.closeEmitted=!0),(o!=null&&o.emitClose||r!=null&&r.emitClose)&&n.emit("close")}function SFe(n,r){const o=n._readableState,l=n._writableState;l!=null&&l.errorEmitted||o!=null&&o.errorEmitted||(l&&(l.errorEmitted=!0),o&&(o.errorEmitted=!0),n.emit("error",r))}function Pyr(){const n=this._readableState,r=this._writableState;n&&(n.constructed=!0,n.closed=!1,n.closeEmitted=!1,n.destroyed=!1,n.errored=null,n.errorEmitted=!1,n.reading=!1,n.ended=n.readable===!1,n.endEmitted=n.readable===!1),r&&(r.constructed=!0,r.destroyed=!1,r.closed=!1,r.closeEmitted=!1,r.errored=null,r.errorEmitted=!1,r.finalCalled=!1,r.prefinished=!1,r.ended=r.writable===!1,r.ending=r.writable===!1,r.finished=r.writable===!1)}function EFe(n,r,o){const l=n._readableState,u=n._writableState;if(u!=null&&u.destroyed||l!=null&&l.destroyed)return this;l!=null&&l.autoDestroy||u!=null&&u.autoDestroy?n.destroy(r):r&&(r.stack,u&&!u.errored&&(u.errored=r),l&&!l.errored&&(l.errored=r),o?zE.nextTick(SFe,n,r):SFe(n,r))}function Oyr(n,r){if(typeof n._construct!="function")return;const o=n._readableState,l=n._writableState;o&&(o.constructed=!1),l&&(l.constructed=!1),n.once(_Fe,r),!(n.listenerCount(_Fe)>1)&&zE.nextTick(Nyr,n)}function Nyr(n){let r=!1;function o(l){if(r){EFe(n,l??new kyr);return}r=!0;const u=n._readableState,d=n._writableState,h=d||u;u&&(u.constructed=!0),d&&(d.constructed=!0),h.destroyed?n.emit(Osn,l):l?EFe(n,l,!0):zE.nextTick(Myr,n)}try{n._construct(l=>{zE.nextTick(o,l)})}catch(l){zE.nextTick(o,l)}}function Myr(n){n.emit(_Fe)}function zGt(n){return(n==null?void 0:n.setHeader)&&typeof n.abort=="function"}function Dsn(n){n.emit("close")}function Dyr(n,r){n.emit("error",r),zE.nextTick(Dsn,n)}function Lyr(n,r){!n||Cyr(n)||(!r&&!Ayr(n)&&(r=new Ryr),Tyr(n)?(n.socket=null,n.destroy(r)):zGt(n)?n.abort():zGt(n.req)?n.req.abort():typeof n.destroy=="function"?n.destroy(r):typeof n.close=="function"?n.close():r?zE.nextTick(Dyr,n,r):zE.nextTick(Dsn,n),n.destroyed||(n[xyr]=!0))}var Rj={construct:Oyr,destroyer:Lyr,destroy:$yr,undestroy:Pyr,errorOrDestroy:EFe};const{ArrayIsArray:jyr,ObjectSetPrototypeOf:Lsn}=Bf,{EventEmitter:Zbe}=Ns;function ege(n){Zbe.call(this,n)}Lsn(ege.prototype,Zbe.prototype);Lsn(ege,Zbe);ege.prototype.pipe=function(n,r){const o=this;function l(E){n.writable&&n.write(E)===!1&&o.pause&&o.pause()}o.on("data",l);function u(){o.readable&&o.resume&&o.resume()}n.on("drain",u),!n._isStdio&&(!r||r.end!==!1)&&(o.on("end",h),o.on("close",w));let d=!1;function h(){d||(d=!0,n.end())}function w(){d||(d=!0,typeof n.destroy=="function"&&n.destroy())}function v(E){y(),Zbe.listenerCount(this,"error")===0&&this.emit("error",E)}kFe(o,"error",v),kFe(n,"error",v);function y(){o.removeListener("data",l),n.removeListener("drain",u),o.removeListener("end",h),o.removeListener("close",w),o.removeListener("error",v),n.removeListener("error",v),o.removeListener("end",y),o.removeListener("close",y),n.removeListener("close",y)}return o.on("end",y),o.on("close",y),n.on("close",y),n.emit("pipe",o),n};function kFe(n,r,o){if(typeof n.prependListener=="function")return n.prependListener(r,o);!n._events||!n._events[r]?n.on(r,o):jyr(n._events[r])?n._events[r].unshift(o):n._events[r]=[o,n._events[r]]}var oGe={Stream:ege,prependListener:kFe},jsn={exports:{}};(function(n){const{SymbolDispose:r}=Bf,{AbortError:o,codes:l}=P0,{isNodeStream:u,isWebStream:d,kControllerErrorFunction:h}=Tx,w=HT,{ERR_INVALID_ARG_TYPE:v}=l;let y;const E=(A,C)=>{if(typeof A!="object"||!("aborted"in A))throw new v(C,"AbortSignal",A)};n.exports.addAbortSignal=function(C,R){if(E(C,"signal"),!u(R)&&!d(R))throw new v("stream",["ReadableStream","WritableStream","Stream"],R);return n.exports.addAbortSignalNoValidate(C,R)},n.exports.addAbortSignalNoValidate=function(A,C){if(typeof A!="object"||!("aborted"in A))return C;const R=u(C)?()=>{C.destroy(new o(void 0,{cause:A.reason}))}:()=>{C[h](new o(void 0,{cause:A.reason}))};if(A.aborted)R();else{y=y||d1.addAbortListener;const O=y(A,R);w(C,O[r])}return C}})(jsn);var tge=jsn.exports;const{StringPrototypeSlice:KGt,SymbolIterator:Fyr,TypedArrayPrototypeSet:Pue,Uint8Array:Byr}=Bf,{Buffer:IMe}=Kr,{inspect:Wyr}=d1;var Hyr=class{constructor(){this.head=null,this.tail=null,this.length=0}push(r){const o={data:r,next:null};this.length>0?this.tail.next=o:this.head=o,this.tail=o,++this.length}unshift(r){const o={data:r,next:this.head};this.length===0&&(this.tail=o),this.head=o,++this.length}shift(){if(this.length===0)return;const r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}clear(){this.head=this.tail=null,this.length=0}join(r){if(this.length===0)return"";let o=this.head,l=""+o.data;for(;(o=o.next)!==null;)l+=r+o.data;return l}concat(r){if(this.length===0)return IMe.alloc(0);const o=IMe.allocUnsafe(r>>>0);let l=this.head,u=0;for(;l;)Pue(o,l.data,u),u+=l.data.length,l=l.next;return o}consume(r,o){const l=this.head.data;if(rd.length)o+=d,r-=d.length;else{r===d.length?(o+=d,++u,l.next?this.head=l.next:this.head=this.tail=null):(o+=KGt(d,0,r),this.head=l,l.data=KGt(d,r));break}++u}while((l=l.next)!==null);return this.length-=u,o}_getBuffer(r){const o=IMe.allocUnsafe(r),l=r;let u=this.head,d=0;do{const h=u.data;if(r>h.length)Pue(o,h,l-r),r-=h.length;else{r===h.length?(Pue(o,h,l-r),++d,u.next?this.head=u.next:this.head=this.tail=null):(Pue(o,new Byr(h.buffer,h.byteOffset,r),l-r),this.head=u,u.data=h.slice(r));break}++d}while((u=u.next)!==null);return this.length-=d,o}[Symbol.for("nodejs.util.inspect.custom")](r,o){return Wyr(this,{...o,depth:0,customInspect:!1})}};const{MathFloor:Uyr,NumberIsInteger:Gyr}=Bf,{validateInteger:Vyr}=TJ,{ERR_INVALID_ARG_VALUE:zyr}=P0.codes;let Fsn=16*1024,Bsn=16;function Kyr(n,r,o){return n.highWaterMark!=null?n.highWaterMark:r?n[o]:null}function Wsn(n){return n?Bsn:Fsn}function qyr(n,r){Vyr(r,"value",0),n?Bsn=r:Fsn=r}function Xyr(n,r,o,l){const u=Kyr(r,l,o);if(u!=null){if(!Gyr(u)||u<0){const d=l?`options.${o}`:"options.highWaterMark";throw new zyr(d,u)}return Uyr(u)}return Wsn(n.objectMode)}var nge={getHighWaterMark:Xyr,getDefaultHighWaterMark:Wsn,setDefaultHighWaterMark:qyr};const qGt=ui,{PromisePrototypeThen:Jyr,SymbolAsyncIterator:XGt,SymbolIterator:JGt}=Bf,{Buffer:Yyr}=Kr,{ERR_INVALID_ARG_TYPE:Qyr,ERR_STREAM_NULL_VALUES:Zyr}=P0.codes;function evr(n,r,o){let l;if(typeof r=="string"||r instanceof Yyr)return new n({objectMode:!0,...o,read(){this.push(r),this.push(null)}});let u;if(r&&r[XGt])u=!0,l=r[XGt]();else if(r&&r[JGt])u=!1,l=r[JGt]();else throw new Qyr("iterable",["Iterable"],r);const d=new n({objectMode:!0,highWaterMark:1,...o});let h=!1;d._read=function(){h||(h=!0,v())},d._destroy=function(y,E){Jyr(w(y),()=>qGt.nextTick(E,y),A=>qGt.nextTick(E,A||y))};async function w(y){const E=y!=null,A=typeof l.throw=="function";if(E&&A){const{value:C,done:R}=await l.throw(y);if(await C,R)return}if(typeof l.return=="function"){const{value:C}=await l.return();await C}}async function v(){for(;;){try{const{value:y,done:E}=u?await l.next():l.next();if(E)d.push(null);else{const A=y&&typeof y.then=="function"?await y:y;if(A===null)throw h=!1,new Zyr;if(d.push(A))continue;h=!1}}catch(y){d.destroy(y)}break}}return d}var Hsn=evr,PMe,YGt;function rge(){if(YGt)return PMe;YGt=1;const n=ui,{ArrayPrototypeIndexOf:r,NumberIsInteger:o,NumberIsNaN:l,NumberParseInt:u,ObjectDefineProperties:d,ObjectKeys:h,ObjectSetPrototypeOf:w,Promise:v,SafeSet:y,SymbolAsyncDispose:E,SymbolAsyncIterator:A,Symbol:C}=Bf;PMe=he,he.ReadableState=St;const{EventEmitter:R}=Ns,{Stream:O,prependListener:M}=oGe,{Buffer:L}=Kr,{addAbortSignal:H}=tge,G=HT;let j=d1.debuglog("stream",S=>{j=S});const Q=Hyr,te=Rj,{getHighWaterMark:pe,getDefaultHighWaterMark:Le}=nge,{aggregateTwoErrors:Ee,codes:{ERR_INVALID_ARG_TYPE:le,ERR_METHOD_NOT_IMPLEMENTED:xe,ERR_OUT_OF_RANGE:be,ERR_STREAM_PUSH_AFTER_EOF:ae,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:F},AbortError:me}=P0,{validateObject:ye}=TJ,we=C("kPaused"),{StringDecoder:Be}=rm,He=Hsn;w(he.prototype,O.prototype),w(he,O);const Ue=()=>{},{errorOrDestroy:Ge}=te,Me=1,vt=2,re=4,Te=8,ct=16,at=32,Ye=64,mt=128,jt=256,rn=512,Pe=1024,Oe=2048,T=4096,$=8192,B=16384,K=32768,q=65536,ke=1<<17,Re=1<<18;function Ie(S){return{enumerable:!1,get(){return(this.state&S)!==0},set(x){x?this.state|=S:this.state&=~S}}}d(St.prototype,{objectMode:Ie(Me),ended:Ie(vt),endEmitted:Ie(re),reading:Ie(Te),constructed:Ie(ct),sync:Ie(at),needReadable:Ie(Ye),emittedReadable:Ie(mt),readableListening:Ie(jt),resumeScheduled:Ie(rn),errorEmitted:Ie(Pe),emitClose:Ie(Oe),autoDestroy:Ie(T),destroyed:Ie($),closed:Ie(B),closeEmitted:Ie(K),multiAwaitDrain:Ie(q),readingMore:Ie(ke),dataEmitted:Ie(Re)});function St(S,x,Y){typeof Y!="boolean"&&(Y=x instanceof lx()),this.state=Oe|T|ct|at,S&&S.objectMode&&(this.state|=Me),Y&&S&&S.readableObjectMode&&(this.state|=Me),this.highWaterMark=S?pe(this,S,"readableHighWaterMark",Y):Le(!1),this.buffer=new Q,this.length=0,this.pipes=[],this.flowing=null,this[we]=null,S&&S.emitClose===!1&&(this.state&=~Oe),S&&S.autoDestroy===!1&&(this.state&=~T),this.errored=null,this.defaultEncoding=S&&S.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,S&&S.encoding&&(this.decoder=new Be(S.encoding),this.encoding=S.encoding)}function he(S){if(!(this instanceof he))return new he(S);const x=this instanceof lx();this._readableState=new St(S,this,x),S&&(typeof S.read=="function"&&(this._read=S.read),typeof S.destroy=="function"&&(this._destroy=S.destroy),typeof S.construct=="function"&&(this._construct=S.construct),S.signal&&!x&&H(S.signal,this)),O.call(this,S),te.construct(this,()=>{this._readableState.needReadable&&ht(this,this._readableState)})}he.prototype.destroy=te.destroy,he.prototype._undestroy=te.undestroy,he.prototype._destroy=function(S,x){x(S)},he.prototype[R.captureRejectionSymbol]=function(S){this.destroy(S)},he.prototype[E]=function(){let S;return this.destroyed||(S=this.readableEnded?null:new me,this.destroy(S)),new v((x,Y)=>G(this,J=>J&&J!==S?Y(J):x(null)))},he.prototype.push=function(S,x){return zt(this,S,x,!1)},he.prototype.unshift=function(S,x){return zt(this,S,x,!0)};function zt(S,x,Y,J){j("readableAddChunk",x);const ue=S._readableState;let Yt;if(ue.state&Me||(typeof x=="string"?(Y=Y||ue.defaultEncoding,ue.encoding!==Y&&(J&&ue.encoding?x=L.from(x,Y).toString(ue.encoding):(x=L.from(x,Y),Y=""))):x instanceof L?Y="":O._isUint8Array(x)?(x=O._uint8ArrayToBuffer(x),Y=""):x!=null&&(Yt=new le("chunk",["string","Buffer","Uint8Array"],x))),Yt)Ge(S,Yt);else if(x===null)ue.state&=~Te,ce(S,ue);else if(ue.state&Me||x&&x.length>0)if(J)if(ue.state&re)Ge(S,new F);else{if(ue.destroyed||ue.errored)return!1;Qt(S,ue,x,!0)}else if(ue.ended)Ge(S,new ae);else{if(ue.destroyed||ue.errored)return!1;ue.state&=~Te,ue.decoder&&!Y?(x=ue.decoder.write(x),ue.objectMode||x.length!==0?Qt(S,ue,x,!1):ht(S,ue)):Qt(S,ue,x,!1)}else J||(ue.state&=~Te,ht(S,ue));return!ue.ended&&(ue.length0?(x.state&q?x.awaitDrainWriters.clear():x.awaitDrainWriters=null,x.dataEmitted=!0,S.emit("data",Y)):(x.length+=x.objectMode?1:Y.length,J?x.buffer.unshift(Y):x.buffer.push(Y),x.state&Ye&&de(S)),ht(S,x)}he.prototype.isPaused=function(){const S=this._readableState;return S[we]===!0||S.flowing===!1},he.prototype.setEncoding=function(S){const x=new Be(S);this._readableState.decoder=x,this._readableState.encoding=this._readableState.decoder.encoding;const Y=this._readableState.buffer;let J="";for(const ue of Y)J+=x.write(ue);return Y.clear(),J!==""&&Y.push(J),this._readableState.length=J.length,this};const $n=1073741824;function Gn(S){if(S>$n)throw new be("size","<= 1GiB",S);return S--,S|=S>>>1,S|=S>>>2,S|=S>>>4,S|=S>>>8,S|=S>>>16,S++,S}function $e(S,x){return S<=0||x.length===0&&x.ended?0:x.state&Me?1:l(S)?x.flowing&&x.length?x.buffer.first().length:x.length:S<=x.length?S:x.ended?x.length:0}he.prototype.read=function(S){j("read",S),S===void 0?S=NaN:o(S)||(S=u(S,10));const x=this._readableState,Y=S;if(S>x.highWaterMark&&(x.highWaterMark=Gn(S)),S!==0&&(x.state&=~mt),S===0&&x.needReadable&&((x.highWaterMark!==0?x.length>=x.highWaterMark:x.length>0)||x.ended))return j("read: emitReadable",x.length,x.ended),x.length===0&&x.ended?co(this):de(this),null;if(S=$e(S,x),S===0&&x.ended)return x.length===0&&co(this),null;let J=(x.state&Ye)!==0;if(j("need readable",J),(x.length===0||x.length-S0?ue=Al(S,x):ue=null,ue===null?(x.needReadable=x.length<=x.highWaterMark,S=0):(x.length-=S,x.multiAwaitDrain?x.awaitDrainWriters.clear():x.awaitDrainWriters=null),x.length===0&&(x.ended||(x.needReadable=!0),Y!==S&&x.ended&&co(this)),ue!==null&&!x.errorEmitted&&!x.closeEmitted&&(x.dataEmitted=!0,this.emit("data",ue)),ue};function ce(S,x){if(j("onEofChunk"),!x.ended){if(x.decoder){const Y=x.decoder.end();Y&&Y.length&&(x.buffer.push(Y),x.length+=x.objectMode?1:Y.length)}x.ended=!0,x.sync?de(S):(x.needReadable=!1,x.emittedReadable=!0,et(S))}}function de(S){const x=S._readableState;j("emitReadable",x.needReadable,x.emittedReadable),x.needReadable=!1,x.emittedReadable||(j("emitReadable",x.flowing),x.emittedReadable=!0,n.nextTick(et,S))}function et(S){const x=S._readableState;j("emitReadable_",x.destroyed,x.length,x.ended),!x.destroyed&&!x.errored&&(x.length||x.ended)&&(S.emit("readable"),x.emittedReadable=!1),x.needReadable=!x.flowing&&!x.ended&&x.length<=x.highWaterMark,xi(S)}function ht(S,x){!x.readingMore&&x.constructed&&(x.readingMore=!0,n.nextTick(Jt,S,x))}function Jt(S,x){for(;!x.reading&&!x.ended&&(x.length1&&J.pipes.includes(S)&&(j("false write response, pause",J.awaitDrainWriters.size),J.awaitDrainWriters.add(S)),Y.pause()),Fr||(Fr=Zt(Y,S),S.on("drain",Fr))}Y.on("data",ml);function ml(jr){j("ondata");const lr=S.write(jr);j("dest.write",lr),lr===!1&&Rs()}function gs(jr){if(j("onerror",jr),wi(),S.removeListener("error",gs),S.listenerCount("error")===0){const lr=S._writableState||S._readableState;lr&&!lr.errorEmitted?Ge(S,jr):S.emit("error",jr)}}M(S,"error",gs);function as(){S.removeListener("finish",ws),wi()}S.once("close",as);function ws(){j("onfinish"),S.removeListener("close",as),wi()}S.once("finish",ws);function wi(){j("unpipe"),Y.unpipe(S)}return S.emit("pipe",Y),S.writableNeedDrain===!0?Rs():J.flowing||(j("pipe resume"),Y.resume()),S};function Zt(S,x){return function(){const J=S._readableState;J.awaitDrainWriters===x?(j("pipeOnDrain",1),J.awaitDrainWriters=null):J.multiAwaitDrain&&(j("pipeOnDrain",J.awaitDrainWriters.size),J.awaitDrainWriters.delete(x)),(!J.awaitDrainWriters||J.awaitDrainWriters.size===0)&&S.listenerCount("data")&&S.resume()}}he.prototype.unpipe=function(S){const x=this._readableState,Y={hasUnpiped:!1};if(x.pipes.length===0)return this;if(!S){const ue=x.pipes;x.pipes=[],this.pause();for(let Yt=0;Yt0,J.flowing!==!1&&this.resume()):S==="readable"&&!J.endEmitted&&!J.readableListening&&(J.readableListening=J.needReadable=!0,J.flowing=!1,J.emittedReadable=!1,j("on readable",J.length,J.reading),J.length?de(this):J.reading||n.nextTick(ao,this)),Y},he.prototype.addListener=he.prototype.on,he.prototype.removeListener=function(S,x){const Y=O.prototype.removeListener.call(this,S,x);return S==="readable"&&n.nextTick(qr,this),Y},he.prototype.off=he.prototype.removeListener,he.prototype.removeAllListeners=function(S){const x=O.prototype.removeAllListeners.apply(this,arguments);return(S==="readable"||S===void 0)&&n.nextTick(qr,this),x};function qr(S){const x=S._readableState;x.readableListening=S.listenerCount("readable")>0,x.resumeScheduled&&x[we]===!1?x.flowing=!0:S.listenerCount("data")>0?S.resume():x.readableListening||(x.flowing=null)}function ao(S){j("readable nexttick read 0"),S.read(0)}he.prototype.resume=function(){const S=this._readableState;return S.flowing||(j("resume"),S.flowing=!S.readableListening,ki(this,S)),S[we]=!1,this};function ki(S,x){x.resumeScheduled||(x.resumeScheduled=!0,n.nextTick(Ri,S,x))}function Ri(S,x){j("resume",x.reading),x.reading||S.read(0),x.resumeScheduled=!1,S.emit("resume"),xi(S),x.flowing&&!x.reading&&S.read(0)}he.prototype.pause=function(){return j("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(j("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[we]=!0,this};function xi(S){const x=S._readableState;for(j("flow",x.flowing);x.flowing&&S.read()!==null;);}he.prototype.wrap=function(S){let x=!1;S.on("data",J=>{!this.push(J)&&S.pause&&(x=!0,S.pause())}),S.on("end",()=>{this.push(null)}),S.on("error",J=>{Ge(this,J)}),S.on("close",()=>{this.destroy()}),S.on("destroy",()=>{this.destroy()}),this._read=()=>{x&&S.resume&&(x=!1,S.resume())};const Y=h(S);for(let J=1;J{ue=An?Ee(ue,An):null,Y(),Y=Ue});try{for(;;){const An=S.destroyed?null:S.read();if(An!==null)yield An;else{if(ue)throw ue;if(ue===null)return;await new v(J)}}}catch(An){throw ue=Ee(ue,An),ue}finally{(ue||(x==null?void 0:x.destroyOnReturn)!==!1)&&(ue===void 0||S._readableState.autoDestroy)?te.destroyer(S,null):(S.off("readable",J),Yt())}}d(he.prototype,{readable:{__proto__:null,get(){const S=this._readableState;return!!S&&S.readable!==!1&&!S.destroyed&&!S.errorEmitted&&!S.endEmitted},set(S){this._readableState&&(this._readableState.readable=!!S)}},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(S){this._readableState&&(this._readableState.flowing=S)}},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(S){this._readableState&&(this._readableState.destroyed=S)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),d(St.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[we]!==!1},set(S){this[we]=!!S}}}),he._fromList=Al;function Al(S,x){if(x.length===0)return null;let Y;return x.objectMode?Y=x.buffer.shift():!S||S>=x.length?(x.decoder?Y=x.buffer.join(""):x.buffer.length===1?Y=x.buffer.first():Y=x.buffer.concat(x.length),x.buffer.clear()):Y=x.buffer.consume(S,x.decoder),Y}function co(S){const x=S._readableState;j("endReadable",x.endEmitted),x.endEmitted||(x.ended=!0,n.nextTick(Zc,x,S))}function Zc(S,x){if(j("endReadableNT",S.endEmitted,S.length),!S.errored&&!S.closeEmitted&&!S.endEmitted&&S.length===0){if(S.endEmitted=!0,x.emit("end"),x.writable&&x.allowHalfOpen===!1)n.nextTick(bu,x);else if(S.autoDestroy){const Y=x._writableState;(!Y||Y.autoDestroy&&(Y.finished||Y.writable===!1))&&x.destroy()}}}function bu(S){S.writable&&!S.writableEnded&&!S.destroyed&&S.end()}he.from=function(S,x){return He(he,S,x)};let So;function ql(){return So===void 0&&(So={}),So}return he.fromWeb=function(S,x){return ql().newStreamReadableFromReadableStream(S,x)},he.toWeb=function(S,x){return ql().newReadableStreamFromStreamReadable(S,x)},he.wrap=function(S,x){var Y,J;return new he({objectMode:(Y=(J=S.readableObjectMode)!==null&&J!==void 0?J:S.objectMode)!==null&&Y!==void 0?Y:!0,...x,destroy(ue,Yt){te.destroyer(S,ue),Yt(ue)}}).wrap(S)},PMe}var OMe,QGt;function sGe(){if(QGt)return OMe;QGt=1;const n=ui,{ArrayPrototypeSlice:r,Error:o,FunctionPrototypeSymbolHasInstance:l,ObjectDefineProperty:u,ObjectDefineProperties:d,ObjectSetPrototypeOf:h,StringPrototypeToLowerCase:w,Symbol:v,SymbolHasInstance:y}=Bf;OMe=ye,ye.WritableState=F;const{EventEmitter:E}=Ns,A=oGe.Stream,{Buffer:C}=Kr,R=Rj,{addAbortSignal:O}=tge,{getHighWaterMark:M,getDefaultHighWaterMark:L}=nge,{ERR_INVALID_ARG_TYPE:H,ERR_METHOD_NOT_IMPLEMENTED:G,ERR_MULTIPLE_CALLBACK:j,ERR_STREAM_CANNOT_PIPE:Q,ERR_STREAM_DESTROYED:te,ERR_STREAM_ALREADY_FINISHED:pe,ERR_STREAM_NULL_VALUES:Le,ERR_STREAM_WRITE_AFTER_END:Ee,ERR_UNKNOWN_ENCODING:le}=P0.codes,{errorOrDestroy:xe}=R;h(ye.prototype,A.prototype),h(ye,A);function be(){}const ae=v("kOnFinished");function F(T,$,B){typeof B!="boolean"&&(B=$ instanceof lx()),this.objectMode=!!(T&&T.objectMode),B&&(this.objectMode=this.objectMode||!!(T&&T.writableObjectMode)),this.highWaterMark=T?M(this,T,"writableHighWaterMark",B):L(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const K=!!(T&&T.decodeStrings===!1);this.decodeStrings=!K,this.defaultEncoding=T&&T.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=Ge.bind(void 0,$),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,me(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[ae]=[]}function me(T){T.buffered=[],T.bufferedIndex=0,T.allBuffers=!0,T.allNoop=!0}F.prototype.getBuffer=function(){return r(this.buffered,this.bufferedIndex)},u(F.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function ye(T){const $=this instanceof lx();if(!$&&!l(ye,this))return new ye(T);this._writableState=new F(T,this,$),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&&O(T.signal,this)),A.call(this,T),R.construct(this,()=>{const B=this._writableState;B.writing||Te(this,B),mt(this,B)})}u(ye,y,{__proto__:null,value:function(T){return l(this,T)?!0:this!==ye?!1:T&&T._writableState instanceof F}}),ye.prototype.pipe=function(){xe(this,new Q)};function we(T,$,B,K){const q=T._writableState;if(typeof B=="function")K=B,B=q.defaultEncoding;else{if(!B)B=q.defaultEncoding;else if(B!=="buffer"&&!C.isEncoding(B))throw new le(B);typeof K!="function"&&(K=be)}if($===null)throw new Le;if(!q.objectMode)if(typeof $=="string")q.decodeStrings!==!1&&($=C.from($,B),B="buffer");else if($ instanceof C)B="buffer";else if(A._isUint8Array($))$=A._uint8ArrayToBuffer($),B="buffer";else throw new H("chunk",["string","Buffer","Uint8Array"],$);let ke;return q.ending?ke=new Ee:q.destroyed&&(ke=new te("write")),ke?(n.nextTick(K,ke),xe(T,ke,!0),ke):(q.pendingcb++,Be(T,q,$,B,K))}ye.prototype.write=function(T,$,B){return we(this,T,$,B)===!0},ye.prototype.cork=function(){this._writableState.corked++},ye.prototype.uncork=function(){const T=this._writableState;T.corked&&(T.corked--,T.writing||Te(this,T))},ye.prototype.setDefaultEncoding=function($){if(typeof $=="string"&&($=w($)),!C.isEncoding($))throw new le($);return this._writableState.defaultEncoding=$,this};function Be(T,$,B,K,q){const ke=$.objectMode?1:B.length;$.length+=ke;const Re=$.length<$.highWaterMark;return Re||($.needDrain=!0),$.writing||$.corked||$.errored||!$.constructed?($.buffered.push({chunk:B,encoding:K,callback:q}),$.allBuffers&&K!=="buffer"&&($.allBuffers=!1),$.allNoop&&q!==be&&($.allNoop=!1)):($.writelen=ke,$.writecb=q,$.writing=!0,$.sync=!0,T._write(B,K,$.onwrite),$.sync=!1),Re&&!$.errored&&!$.destroyed}function He(T,$,B,K,q,ke,Re){$.writelen=K,$.writecb=Re,$.writing=!0,$.sync=!0,$.destroyed?$.onwrite(new te("write")):B?T._writev(q,$.onwrite):T._write(q,ke,$.onwrite),$.sync=!1}function Ue(T,$,B,K){--$.pendingcb,K(B),re($),xe(T,B)}function Ge(T,$){const B=T._writableState,K=B.sync,q=B.writecb;if(typeof q!="function"){xe(T,new j);return}B.writing=!1,B.writecb=null,B.length-=B.writelen,B.writelen=0,$?($.stack,B.errored||(B.errored=$),T._readableState&&!T._readableState.errored&&(T._readableState.errored=$),K?n.nextTick(Ue,T,B,$,q):Ue(T,B,$,q)):(B.buffered.length>B.bufferedIndex&&Te(T,B),K?B.afterWriteTickInfo!==null&&B.afterWriteTickInfo.cb===q?B.afterWriteTickInfo.count++:(B.afterWriteTickInfo={count:1,cb:q,stream:T,state:B},n.nextTick(Me,B.afterWriteTickInfo)):vt(T,B,1,q))}function Me({stream:T,state:$,count:B,cb:K}){return $.afterWriteTickInfo=null,vt(T,$,B,K)}function vt(T,$,B,K){for(!$.ending&&!T.destroyed&&$.length===0&&$.needDrain&&($.needDrain=!1,T.emit("drain"));B-- >0;)$.pendingcb--,K();$.destroyed&&re($),mt(T,$)}function re(T){if(T.writing)return;for(let q=T.bufferedIndex;q1&&T._writev){$.pendingcb-=ke-1;const Ie=$.allNoop?be:he=>{for(let zt=Re;zt256?(B.splice(0,Re),$.bufferedIndex=0):$.bufferedIndex=Re}$.bufferProcessing=!1}ye.prototype._write=function(T,$,B){if(this._writev)this._writev([{chunk:T,encoding:$}],B);else throw new G("_write()")},ye.prototype._writev=null,ye.prototype.end=function(T,$,B){const K=this._writableState;typeof T=="function"?(B=T,T=null,$=null):typeof $=="function"&&(B=$,$=null);let q;if(T!=null){const ke=we(this,T,$);ke instanceof o&&(q=ke)}return K.corked&&(K.corked=1,this.uncork()),q||(!K.errored&&!K.ending?(K.ending=!0,mt(this,K,!0),K.ended=!0):K.finished?q=new pe("end"):K.destroyed&&(q=new te("end"))),typeof B=="function"&&(q||K.finished?n.nextTick(B,q):K[ae].push(B)),this};function ct(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 at(T,$){let B=!1;function K(q){if(B){xe(T,q??j());return}if(B=!0,$.pendingcb--,q){const ke=$[ae].splice(0);for(let Re=0;Re{ct(q)?jt(K,q):q.pendingcb--},T,$)):ct($)&&($.pendingcb++,jt(T,$))))}function jt(T,$){$.pendingcb--,$.finished=!0;const B=$[ae].splice(0);for(let K=0;K{if(re!=null)throw new O("nully","body",re)},re=>{M(Me,re)});return Me=new le({objectMode:!0,readable:!1,write:Be,final(re){He(async()=>{try{await vt,n.nextTick(re,null)}catch(Te){n.nextTick(re,Te)}})},destroy:Ue})}throw new O("Iterable, AsyncIterable or AsyncFunction",me,we)}if(pe(F))return ae(F.arrayBuffer());if(u(F))return Q(le,F,{objectMode:!0,writable:!1});if(y(F==null?void 0:F.readable)&&E(F==null?void 0:F.writable))return le.fromWeb(F);if(typeof(F==null?void 0:F.writable)=="object"||typeof(F==null?void 0:F.readable)=="object"){const we=F!=null&&F.readable?h(F==null?void 0:F.readable)?F==null?void 0:F.readable:ae(F.readable):void 0,Be=F!=null&&F.writable?w(F==null?void 0:F.writable)?F==null?void 0:F.writable:ae(F.writable):void 0;return be({readable:we,writable:Be})}const ye=F==null?void 0:F.then;if(typeof ye=="function"){let we;return Ee(ye,F,Be=>{Be!=null&&we.push(Be),we.push(null)},Be=>{M(we,Be)}),we=new le({objectMode:!0,writable:!1,read(){}})}throw new R(me,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],F)};function xe(ae){let{promise:F,resolve:me}=j();const ye=new Le,we=ye.signal;return{value:ae(async function*(){for(;;){const He=F;F=null;const{chunk:Ue,done:Ge,cb:Me}=await He;if(n.nextTick(Me),Ge)return;if(we.aborted)throw new C(void 0,{cause:we.reason});({promise:F,resolve:me}=j()),yield Ue}}(),{signal:we}),write(He,Ue,Ge){const Me=me;me=null,Me({chunk:He,done:!1,cb:Ge})},final(He){const Ue=me;me=null,Ue({done:!0,cb:He})},destroy(He,Ue){ye.abort(),Ue(He)}}}function be(ae){const F=ae.readable&&typeof ae.readable.read!="function"?H.wrap(ae.readable):ae.readable,me=ae.writable;let ye=!!o(F),we=!!l(me),Be,He,Ue,Ge,Me;function vt(re){const Te=Ge;Ge=null,Te?Te(re):re&&Me.destroy(re)}return Me=new le({readableObjectMode:!!(F!=null&&F.readableObjectMode),writableObjectMode:!!(me!=null&&me.writableObjectMode),readable:ye,writable:we}),we&&(A(me,re=>{we=!1,re&&M(F,re),vt(re)}),Me._write=function(re,Te,ct){me.write(re,Te)?ct():Be=ct},Me._final=function(re){me.end(),He=re},me.on("drain",function(){if(Be){const re=Be;Be=null,re()}}),me.on("finish",function(){if(He){const re=He;He=null,re()}})),ye&&(A(F,re=>{ye=!1,re&&M(F,re),vt(re)}),F.on("readable",function(){if(Ue){const re=Ue;Ue=null,re()}}),F.on("end",function(){Me.push(null)}),Me._read=function(){for(;;){const re=F.read();if(re===null){Ue=Me._read;return}if(!Me.push(re))return}}),Me._destroy=function(re,Te){!re&&Ge!==null&&(re=new C),Ue=null,Be=null,He=null,Ge===null?Te(re):(Ge=Te,M(me,re),M(F,re))},Me}return NMe}var MMe,eVt;function lx(){if(eVt)return MMe;eVt=1;const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:o,ObjectSetPrototypeOf:l}=Bf;MMe=h;const u=rge(),d=sGe();l(h.prototype,u.prototype),l(h,u);{const E=o(d.prototype);for(let A=0;A{if(r){n?n(r):this.destroy(r);return}o!=null&&this.push(o),this.push(null),n&&n()}):(this.push(null),n&&n())}function ovr(){this._final!==RFe&&RFe.call(this)}ax.prototype._final=RFe;ax.prototype._transform=function(n,r,o){throw new rvr("_transform()")};ax.prototype._write=function(n,r,o){const l=this._readableState,u=this._writableState,d=l.length;this._transform(n,r,(h,w)=>{if(h){o(h);return}w!=null&&this.push(w),u.ended||d===l.length||l.length{l=!0});const u=fhe(n,{readable:r,writable:o},d=>{l=!d});return{destroy:d=>{l||(l=!0,fvr.destroyer(n,d||new pvr("pipe")))},cleanup:u}}function Svr(n){return wvr(n[n.length-1],"streams[stream.length - 1]"),n.pop()}function HMe(n){if(T8(n))return n;if(nde(n))return Evr(n);throw new xFe("val",["Readable","Iterable","AsyncIterable"],n)}async function*Evr(n){BMe||(BMe=rge()),yield*BMe.prototype[avr].call(n)}async function Oue(n,r,o,{end:l}){let u,d=null;const h=y=>{if(y&&(u=y),d){const E=d;d=null,E()}},w=()=>new lvr((y,E)=>{u?E(u):d=()=>{u?E(u):y()}});r.on("drain",h);const v=fhe(r,{readable:!1},h);try{r.writableNeedDrain&&await w();for await(const y of n)r.write(y)||await w();l&&(r.end(),await w()),o()}catch(y){o(u!==y?dvr(u,y):y)}finally{v(),r.off("drain",h)}}async function UMe(n,r,o,{end:l}){AD(r)&&(r=r.writable);const u=r.getWriter();try{for await(const d of n)await u.ready,u.write(d).catch(()=>{});await u.ready,l&&await u.close(),o()}catch(d){try{await u.abort(d),o(d)}catch(h){o(h)}}}function kvr(...n){return Ksn(n,uvr(Svr(n)))}function Ksn(n,r,o){if(n.length===1&&svr(n[0])&&(n=n[0]),n.length<2)throw new hvr("streams");const l=new _vr,u=l.signal,d=o==null?void 0:o.signal,h=[];mvr(d,"options.signal");function w(){O(new gvr)}WMe=WMe||d1.addAbortListener;let v;d&&(v=WMe(d,w));let y,E;const A=[];let C=0;function R(G){O(G,--C===0)}function O(G,j){var Q;if(G&&(!y||y.code==="ERR_STREAM_PREMATURE_CLOSE")&&(y=G),!(!y&&!j)){for(;A.length;)A.shift()(y);(Q=v)===null||Q===void 0||Q[cvr](),l.abort(),j&&(y||h.forEach(te=>te()),NK.nextTick(r,y,E))}}let M;for(let G=0;G0,pe=Q||(o==null?void 0:o.end)!==!1,Le=G===n.length-1;if(nVt(j)){let Ee=function(le){le&&le.name!=="AbortError"&&le.code!=="ERR_STREAM_PREMATURE_CLOSE"&&R(le)};if(pe){const{destroy:le,cleanup:xe}=rVt(j,Q,te);A.push(le),LMe(j)&&Le&&h.push(xe)}j.on("error",Ee),LMe(j)&&Le&&h.push(()=>{j.removeListener("error",Ee)})}if(G===0)if(typeof j=="function"){if(M=j({signal:u}),!T8(M))throw new DMe("Iterable, AsyncIterable or Stream","source",M)}else T8(j)||nde(j)||AD(j)?M=j:M=tVt.from(j);else if(typeof j=="function"){if(AD(M)){var L;M=HMe((L=M)===null||L===void 0?void 0:L.readable)}else M=HMe(M);if(M=j(M,{signal:u}),Q){if(!T8(M,!0))throw new DMe("AsyncIterable",`transform[${G-1}]`,M)}else{var H;FMe||(FMe=zsn);const Ee=new FMe({objectMode:!0}),le=(H=M)===null||H===void 0?void 0:H.then;if(typeof le=="function")C++,le.call(M,ae=>{E=ae,ae!=null&&Ee.write(ae),pe&&Ee.end(),NK.nextTick(R)},ae=>{Ee.destroy(ae),NK.nextTick(R,ae)});else if(T8(M,!0))C++,Oue(M,Ee,R,{end:pe});else if(jMe(M)||AD(M)){const ae=M.readable||M;C++,Oue(ae,Ee,R,{end:pe})}else throw new DMe("AsyncIterable or Promise","destination",M);M=Ee;const{destroy:xe,cleanup:be}=rVt(M,!1,!0);A.push(xe),Le&&h.push(be)}}else if(nVt(j)){if(nde(M)){C+=2;const Ee=Rvr(M,j,R,{end:pe});LMe(j)&&Le&&h.push(Ee)}else if(AD(M)||jMe(M)){const Ee=M.readable||M;C++,Oue(Ee,j,R,{end:pe})}else if(T8(M))C++,Oue(M,j,R,{end:pe});else throw new xFe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else if(yvr(j)){if(nde(M))C++,UMe(HMe(M),j,R,{end:pe});else if(jMe(M)||T8(M))C++,UMe(M,j,R,{end:pe});else if(AD(M))C++,UMe(M.readable,j,R,{end:pe});else throw new xFe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else M=tVt.from(j)}return(u!=null&&u.aborted||d!=null&&d.aborted)&&NK.nextTick(w),M}function Rvr(n,r,o,{end:l}){let u=!1;if(r.on("close",()=>{u||o(new bvr)}),n.pipe(r,{end:!1}),l){let d=function(){u=!0,r.end()};vvr(n)?NK.nextTick(d):n.once("end",d)}else o();return fhe(n,{readable:!0,writable:!1},d=>{const h=n._readableState;d&&d.code==="ERR_STREAM_PREMATURE_CLOSE"&&h&&h.ended&&!h.errored&&!h.errorEmitted?n.once("end",o).once("error",o):o(d)}),fhe(r,{readable:!1,writable:!0},o)}var cGe={pipelineImpl:Ksn,pipeline:kvr};const{pipeline:xvr}=cGe,Nue=lx(),{destroyer:Cvr}=Rj,{isNodeStream:Mue,isReadable:iVt,isWritable:oVt,isWebStream:GMe,isTransformStream:c8,isWritableStream:sVt,isReadableStream:lVt}=Tx,{AbortError:Avr,codes:{ERR_INVALID_ARG_VALUE:aVt,ERR_MISSING_ARGS:Tvr}}=P0,$vr=HT;var qsn=function(...r){if(r.length===0)throw new Tvr("streams");if(r.length===1)return Nue.from(r[0]);const o=[...r];if(typeof r[0]=="function"&&(r[0]=Nue.from(r[0])),typeof r[r.length-1]=="function"){const R=r.length-1;r[R]=Nue.from(r[R])}for(let R=0;R0&&!(oVt(r[R])||sVt(r[R])||c8(r[R])))throw new aVt(`streams[${R}]`,o[R],"must be writable")}let l,u,d,h,w;function v(R){const O=h;h=null,O?O(R):R?w.destroy(R):!C&&!A&&w.destroy()}const y=r[0],E=xvr(r,v),A=!!(oVt(y)||sVt(y)||c8(y)),C=!!(iVt(E)||lVt(E)||c8(E));if(w=new Nue({writableObjectMode:!!(y!=null&&y.writableObjectMode),readableObjectMode:!!(E!=null&&E.readableObjectMode),writable:A,readable:C}),A){if(Mue(y))w._write=function(O,M,L){y.write(O,M)?L():l=L},w._final=function(O){y.end(),u=O},y.on("drain",function(){if(l){const O=l;l=null,O()}});else if(GMe(y)){const M=(c8(y)?y.writable:y).getWriter();w._write=async function(L,H,G){try{await M.ready,M.write(L).catch(()=>{}),G()}catch(j){G(j)}},w._final=async function(L){try{await M.ready,M.close().catch(()=>{}),u=L}catch(H){L(H)}}}const R=c8(E)?E.readable:E;$vr(R,()=>{if(u){const O=u;u=null,O()}})}if(C){if(Mue(E))E.on("readable",function(){if(d){const R=d;d=null,R()}}),E.on("end",function(){w.push(null)}),w._read=function(){for(;;){const R=E.read();if(R===null){d=w._read;return}if(!w.push(R))return}};else if(GMe(E)){const O=(c8(E)?E.readable:E).getReader();w._read=async function(){for(;;)try{const{value:M,done:L}=await O.read();if(!w.push(M))return;if(L){w.push(null);return}}catch{return}}}}return w._destroy=function(R,O){!R&&h!==null&&(R=new Avr),d=null,l=null,u=null,h===null?O(R):(h=O,Mue(E)&&Cvr(E,R))},w};const Ivr=globalThis.AbortController||$o().AbortController,{codes:{ERR_INVALID_ARG_VALUE:Pvr,ERR_INVALID_ARG_TYPE:$J,ERR_MISSING_ARGS:Ovr,ERR_OUT_OF_RANGE:Nvr},AbortError:ck}=P0,{validateAbortSignal:uO,validateInteger:cVt,validateObject:fO}=TJ,Mvr=Bf.Symbol("kWeak"),Dvr=Bf.Symbol("kResistStopPropagation"),{finished:Lvr}=HT,jvr=qsn,{addAbortSignalNoValidate:Fvr}=tge,{isWritable:Bvr,isNodeStream:Wvr}=Tx,{deprecate:Hvr}=d1,{ArrayPrototypePush:Uvr,Boolean:Gvr,MathFloor:uVt,Number:Vvr,NumberIsNaN:zvr,Promise:fVt,PromiseReject:dVt,PromiseResolve:Kvr,PromisePrototypeThen:hVt,Symbol:Xsn}=Bf,dhe=Xsn("kEmpty"),pVt=Xsn("kEof");function qvr(n,r){if(r!=null&&fO(r,"options"),(r==null?void 0:r.signal)!=null&&uO(r.signal,"options.signal"),Wvr(n)&&!Bvr(n))throw new Pvr("stream",n,"must be writable");const o=jvr(this,n);return r!=null&&r.signal&&Fvr(r.signal,o),o}function ige(n,r){if(typeof n!="function")throw new $J("fn",["Function","AsyncFunction"],n);r!=null&&fO(r,"options"),(r==null?void 0:r.signal)!=null&&uO(r.signal,"options.signal");let o=1;(r==null?void 0:r.concurrency)!=null&&(o=uVt(r.concurrency));let l=o-1;return(r==null?void 0:r.highWaterMark)!=null&&(l=uVt(r.highWaterMark)),cVt(o,"options.concurrency",1),cVt(l,"options.highWaterMark",0),l+=o,(async function*(){const d=d1.AbortSignalAny([r==null?void 0:r.signal].filter(Gvr)),h=this,w=[],v={signal:d};let y,E,A=!1,C=0;function R(){A=!0,O()}function O(){C-=1,M()}function M(){E&&!A&&C=l||C>=o)&&await new fVt(G=>{E=G})}w.push(pVt)}catch(H){const G=dVt(H);hVt(G,O,R),w.push(G)}finally{A=!0,y&&(y(),y=null)}}L();try{for(;;){for(;w.length>0;){const H=await w[0];if(H===pVt)return;if(d.aborted)throw new ck;H!==dhe&&(yield H),w.shift(),M()}await new fVt(H=>{y=H})}}finally{A=!0,E&&(E(),E=null)}}).call(this)}function Xvr(n=void 0){return n!=null&&fO(n,"options"),(n==null?void 0:n.signal)!=null&&uO(n.signal,"options.signal"),(async function*(){let o=0;for await(const u of this){var l;if(n!=null&&(l=n.signal)!==null&&l!==void 0&&l.aborted)throw new ck({cause:n.signal.reason});yield[o++,u]}}).call(this)}async function Jsn(n,r=void 0){for await(const o of uGe.call(this,n,r))return!0;return!1}async function Jvr(n,r=void 0){if(typeof n!="function")throw new $J("fn",["Function","AsyncFunction"],n);return!await Jsn.call(this,async(...o)=>!await n(...o),r)}async function Yvr(n,r){for await(const o of uGe.call(this,n,r))return o}async function Qvr(n,r){if(typeof n!="function")throw new $J("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u),dhe}for await(const l of ige.call(this,o,r));}function uGe(n,r){if(typeof n!="function")throw new $J("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u)?l:dhe}return ige.call(this,o,r)}let Zvr=class extends Ovr{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function e_r(n,r,o){var l;if(typeof n!="function")throw new $J("reducer",["Function","AsyncFunction"],n);o!=null&&fO(o,"options"),(o==null?void 0:o.signal)!=null&&uO(o.signal,"options.signal");let u=arguments.length>1;if(o!=null&&(l=o.signal)!==null&&l!==void 0&&l.aborted){const y=new ck(void 0,{cause:o.signal.reason});throw this.once("error",()=>{}),await Lvr(this.destroy(y)),y}const d=new Ivr,h=d.signal;if(o!=null&&o.signal){const y={once:!0,[Mvr]:this,[Dvr]:!0};o.signal.addEventListener("abort",()=>d.abort(),y)}let w=!1;try{for await(const y of this){var v;if(w=!0,o!=null&&(v=o.signal)!==null&&v!==void 0&&v.aborted)throw new ck;u?r=await n(r,y,{signal:h}):(r=y,u=!0)}if(!w&&!u)throw new Zvr}finally{d.abort()}return r}async function t_r(n){n!=null&&fO(n,"options"),(n==null?void 0:n.signal)!=null&&uO(n.signal,"options.signal");const r=[];for await(const l of this){var o;if(n!=null&&(o=n.signal)!==null&&o!==void 0&&o.aborted)throw new ck(void 0,{cause:n.signal.reason});Uvr(r,l)}return r}function n_r(n,r){const o=ige.call(this,n,r);return(async function*(){for await(const u of o)yield*u}).call(this)}function Ysn(n){if(n=Vvr(n),zvr(n))return 0;if(n<0)throw new Nvr("number",">= 0",n);return n}function r_r(n,r=void 0){return r!=null&&fO(r,"options"),(r==null?void 0:r.signal)!=null&&uO(r.signal,"options.signal"),n=Ysn(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new ck;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new ck;n--<=0&&(yield d)}}).call(this)}function i_r(n,r=void 0){return r!=null&&fO(r,"options"),(r==null?void 0:r.signal)!=null&&uO(r.signal,"options.signal"),n=Ysn(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new ck;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new ck;if(n-- >0&&(yield d),n<=0)return}}).call(this)}eGe.streamReturningOperators={asIndexedPairs:Hvr(Xvr,"readable.asIndexedPairs will be removed in a future version."),drop:r_r,filter:uGe,flatMap:n_r,map:ige,take:i_r,compose:qvr};eGe.promiseReturningOperators={every:Jvr,forEach:Qvr,reduce:e_r,toArray:t_r,some:Jsn,find:Yvr};var VMe,bVt;function Qsn(){if(bVt)return VMe;bVt=1;const{ArrayPrototypePop:n,Promise:r}=Bf,{isIterable:o,isNodeStream:l,isWebStream:u}=Tx,{pipelineImpl:d}=cGe,{finished:h}=HT;Zsn();function w(...v){return new r((y,E)=>{let A,C;const R=v[v.length-1];if(R&&typeof R=="object"&&!l(R)&&!o(R)&&!u(R)){const O=n(v);A=O.signal,C=O.end}d(v,(O,M)=>{O?E(O):y(M)},{signal:A,end:C})})}return VMe={finished:h,pipeline:w},VMe}var gVt;function Zsn(){if(gVt)return AMe.exports;gVt=1;const{Buffer:n}=Kr,{ObjectDefineProperty:r,ObjectKeys:o,ReflectApply:l}=Bf,{promisify:{custom:u}}=d1,{streamReturningOperators:d,promiseReturningOperators:h}=eGe,{codes:{ERR_ILLEGAL_CONSTRUCTOR:w}}=P0,v=qsn,{setDefaultHighWaterMark:y,getDefaultHighWaterMark:E}=nge,{pipeline:A}=cGe,{destroyer:C}=Rj,R=HT,O=Qsn(),M=Tx,L=AMe.exports=oGe.Stream;L.isDestroyed=M.isDestroyed,L.isDisturbed=M.isDisturbed,L.isErrored=M.isErrored,L.isReadable=M.isReadable,L.isWritable=M.isWritable,L.Readable=rge();for(const G of o(d)){let Q=function(...te){if(new.target)throw w();return L.Readable.from(l(j,this,te))};const j=d[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}for(const G of o(h)){let Q=function(...te){if(new.target)throw w();return l(j,this,te)};const j=h[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}L.Writable=sGe(),L.Duplex=lx(),L.Transform=Gsn,L.PassThrough=zsn,L.pipeline=A;const{addAbortSignal:H}=tge;return L.addAbortSignal=H,L.finished=R,L.destroy=C,L.compose=v,L.setDefaultHighWaterMark=y,L.getDefaultHighWaterMark=E,r(L,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return O}}),r(A,u,{__proto__:null,enumerable:!0,get(){return O.pipeline}}),r(R,u,{__proto__:null,enumerable:!0,get(){return O.finished}}),L.Stream=L,L._isUint8Array=function(j){return j instanceof Uint8Array},L._uint8ArrayToBuffer=function(j){return n.from(j.buffer,j.byteOffset,j.byteLength)},AMe.exports}(function(n){const r=Zsn(),o=Qsn(),l=r.Readable.destroy;n.exports=r.Readable,n.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer,n.exports._isUint8Array=r._isUint8Array,n.exports.isDisturbed=r.isDisturbed,n.exports.isErrored=r.isErrored,n.exports.isReadable=r.isReadable,n.exports.Readable=r.Readable,n.exports.Writable=r.Writable,n.exports.Duplex=r.Duplex,n.exports.Transform=r.Transform,n.exports.PassThrough=r.PassThrough,n.exports.addAbortSignal=r.addAbortSignal,n.exports.finished=r.finished,n.exports.destroy=r.destroy,n.exports.destroy=l,n.exports.pipeline=r.pipeline,n.exports.compose=r.compose,Object.defineProperty(r,"promises",{configurable:!0,enumerable:!0,get(){return o}}),n.exports.Stream=r.Stream,n.exports.default=n.exports})(csn);var o_r=csn.exports;let s_r=class{constructor(r){const o=new o_r.Transform({objectMode:!0,transform:(l,u,d)=>{d(null,`${_S(l)} -`)}});return r.pipe(o),bUe(o)}},MK=class extends Jpe{constructor(){super(s_r)}};const l_r=Object.freeze(Object.defineProperty({__proto__:null,default:MK},Symbol.toStringTag,{value:"Module"}));var a_r={exports:{}},zMe={exports:{}},Wf={ArrayIsArray(n){return Array.isArray(n)},ArrayPrototypeIncludes(n,r){return n.includes(r)},ArrayPrototypeIndexOf(n,r){return n.indexOf(r)},ArrayPrototypeJoin(n,r){return n.join(r)},ArrayPrototypeMap(n,r){return n.map(r)},ArrayPrototypePop(n,r){return n.pop(r)},ArrayPrototypePush(n,r){return n.push(r)},ArrayPrototypeSlice(n,r,o){return n.slice(r,o)},Error,FunctionPrototypeCall(n,r,...o){return n.call(r,...o)},FunctionPrototypeSymbolHasInstance(n,r){return Function.prototype[Symbol.hasInstance].call(n,r)},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(n,r){return Object.defineProperties(n,r)},ObjectDefineProperty(n,r,o){return Object.defineProperty(n,r,o)},ObjectGetOwnPropertyDescriptor(n,r){return Object.getOwnPropertyDescriptor(n,r)},ObjectKeys(n){return Object.keys(n)},ObjectSetPrototypeOf(n,r){return Object.setPrototypeOf(n,r)},Promise,PromisePrototypeCatch(n,r){return n.catch(r)},PromisePrototypeThen(n,r,o){return n.then(r,o)},PromiseReject(n){return Promise.reject(n)},PromiseResolve(n){return Promise.resolve(n)},ReflectApply:Reflect.apply,RegExpPrototypeTest(n,r){return n.test(r)},SafeSet:Set,String,StringPrototypeSlice(n,r,o){return n.slice(r,o)},StringPrototypeToLowerCase(n){return n.toLowerCase()},StringPrototypeToUpperCase(n){return n.toUpperCase()},StringPrototypeTrim(n){return n.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(n,r,o){return n.set(r,o)},Boolean,Uint8Array},eln={exports:{}};(function(n){const r=Kr,{kResistStopPropagation:o,SymbolDispose:l}=Wf,u=globalThis.AbortSignal||$o().AbortSignal,d=globalThis.AbortController||$o().AbortController,h=Object.getPrototypeOf(async function(){}).constructor,w=globalThis.Blob||r.Blob,v=typeof w<"u"?function(R){return R instanceof w}:function(R){return!1},y=(C,R)=>{if(C!==void 0&&(C===null||typeof C!="object"||!("aborted"in C)))throw new ERR_INVALID_ARG_TYPE(R,"AbortSignal",C)},E=(C,R)=>{if(typeof C!="function")throw new ERR_INVALID_ARG_TYPE(R,"Function",C)};class A extends Error{constructor(R){if(!Array.isArray(R))throw new TypeError(`Expected input to be an Array, got ${typeof R}`);let O="";for(let M=0;M{C=M,R=L}),resolve:C,reject:R}},promisify(C){return new Promise((R,O)=>{C((M,...L)=>M?O(M):R(...L))})},debuglog(){return function(){}},format(C,...R){return C.replace(/%([sdifj])/g,function(...[O,M]){const L=R.shift();return M==="f"?L.toFixed(6):M==="j"?JSON.stringify(L):M==="s"&&typeof L=="object"?`${L.constructor!==Object?L.constructor.name:""} {}`.trim():L.toString()})},inspect(C){switch(typeof C){case"string":if(C.includes("'"))if(C.includes('"')){if(!C.includes("`")&&!C.includes("${"))return`\`${C}\``}else return`"${C}"`;return`'${C}'`;case"number":return isNaN(C)?"NaN":Object.is(C,-0)?String(C):C;case"bigint":return`${String(C)}n`;case"boolean":case"undefined":return String(C);case"object":return"{}"}},types:{isAsyncFunction(C){return C instanceof h},isArrayBufferView(C){return ArrayBuffer.isView(C)}},isBlob:v,deprecate(C,R){return C},addAbortListener:Ns.addAbortListener||function(R,O){if(R===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",R);y(R,"signal"),E(O,"listener");let M;return R.aborted?queueMicrotask(()=>O()):(R.addEventListener("abort",O,{__proto__:null,once:!0,[o]:!0}),M=()=>{R.removeEventListener("abort",O)}),{__proto__:null,[l](){var L;(L=M)===null||L===void 0||L()}}},AbortSignalAny:u.any||function(R){if(R.length===1)return R[0];const O=new d,M=()=>O.abort();return R.forEach(L=>{y(L,"signals"),L.addEventListener("abort",M,{once:!0})}),O.signal.addEventListener("abort",()=>{R.forEach(L=>L.removeEventListener("abort",M))},{once:!0}),O.signal}},n.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(eln);var h1=eln.exports,fGe={};const{format:c_r,inspect:hhe,AggregateError:u_r}=h1,f_r=globalThis.AggregateError||u_r,d_r=Symbol("kIsNodeError"),h_r=["string","function","number","object","Function","Object","boolean","bigint","symbol"],p_r=/^([A-Z][a-z0-9]*)+$/,b_r="__node_internal_",oge={};function cP(n,r){if(!n)throw new oge.ERR_INTERNAL_ASSERTION(r)}function wVt(n){let r="",o=n.length;const l=n[0]==="-"?1:0;for(;o>=l+4;o-=3)r=`_${n.slice(o-3,o)}${r}`;return`${n.slice(0,o)}${r}`}function g_r(n,r,o){if(typeof r=="function")return cP(r.length<=o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${r.length}).`),r(...o);const l=(r.match(/%[dfijoOs]/g)||[]).length;return cP(l===o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${l}).`),o.length===0?r:c_r(r,...o)}function eb(n,r,o){o||(o=Error);class l extends o{constructor(...d){super(g_r(n,r,d))}toString(){return`${this.name} [${n}]: ${this.message}`}}Object.defineProperties(l.prototype,{name:{value:o.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${n}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),l.prototype.code=n,l.prototype[d_r]=!0,oge[n]=l}function mVt(n){const r=b_r+n.name;return Object.defineProperty(n,"name",{value:r}),n}function w_r(n,r){if(n&&r&&n!==r){if(Array.isArray(r.errors))return r.errors.push(n),r;const o=new f_r([r,n],r.message);return o.code=r.code,o}return n||r}let m_r=class extends Error{constructor(r="The operation was aborted",o=void 0){if(o!==void 0&&typeof o!="object")throw new oge.ERR_INVALID_ARG_TYPE("options","Object",o);super(r,o),this.code="ABORT_ERR",this.name="AbortError"}};eb("ERR_ASSERTION","%s",Error);eb("ERR_INVALID_ARG_TYPE",(n,r,o)=>{cP(typeof n=="string","'name' must be a string"),Array.isArray(r)||(r=[r]);let l="The ";n.endsWith(" argument")?l+=`${n} `:l+=`"${n}" ${n.includes(".")?"property":"argument"} `,l+="must be ";const u=[],d=[],h=[];for(const v of r)cP(typeof v=="string","All expected entries have to be of type string"),h_r.includes(v)?u.push(v.toLowerCase()):p_r.test(v)?d.push(v):(cP(v!=="object",'The value "object" should be written as "Object"'),h.push(v));if(d.length>0){const v=u.indexOf("object");v!==-1&&(u.splice(u,v,1),d.push("Object"))}if(u.length>0){switch(u.length){case 1:l+=`of type ${u[0]}`;break;case 2:l+=`one of type ${u[0]} or ${u[1]}`;break;default:{const v=u.pop();l+=`one of type ${u.join(", ")}, or ${v}`}}(d.length>0||h.length>0)&&(l+=" or ")}if(d.length>0){switch(d.length){case 1:l+=`an instance of ${d[0]}`;break;case 2:l+=`an instance of ${d[0]} or ${d[1]}`;break;default:{const v=d.pop();l+=`an instance of ${d.join(", ")}, or ${v}`}}h.length>0&&(l+=" or ")}switch(h.length){case 0:break;case 1:h[0].toLowerCase()!==h[0]&&(l+="an "),l+=`${h[0]}`;break;case 2:l+=`one of ${h[0]} or ${h[1]}`;break;default:{const v=h.pop();l+=`one of ${h.join(", ")}, or ${v}`}}if(o==null)l+=`. Received ${o}`;else if(typeof o=="function"&&o.name)l+=`. Received function ${o.name}`;else if(typeof o=="object"){var w;if((w=o.constructor)!==null&&w!==void 0&&w.name)l+=`. Received an instance of ${o.constructor.name}`;else{const v=hhe(o,{depth:-1});l+=`. Received ${v}`}}else{let v=hhe(o,{colors:!1});v.length>25&&(v=`${v.slice(0,25)}...`),l+=`. Received type ${typeof o} (${v})`}return l},TypeError);eb("ERR_INVALID_ARG_VALUE",(n,r,o="is invalid")=>{let l=hhe(r);return l.length>128&&(l=l.slice(0,128)+"..."),`The ${n.includes(".")?"property":"argument"} '${n}' ${o}. Received ${l}`},TypeError);eb("ERR_INVALID_RETURN_VALUE",(n,r,o)=>{var l;const u=o!=null&&(l=o.constructor)!==null&&l!==void 0&&l.name?`instance of ${o.constructor.name}`:`type ${typeof o}`;return`Expected ${n} to be returned from the "${r}" function but got ${u}.`},TypeError);eb("ERR_MISSING_ARGS",(...n)=>{cP(n.length>0,"At least one arg needs to be specified");let r;const o=n.length;switch(n=(Array.isArray(n)?n:[n]).map(l=>`"${l}"`).join(" or "),o){case 1:r+=`The ${n[0]} argument`;break;case 2:r+=`The ${n[0]} and ${n[1]} arguments`;break;default:{const l=n.pop();r+=`The ${n.join(", ")}, and ${l} arguments`}break}return`${r} must be specified`},TypeError);eb("ERR_OUT_OF_RANGE",(n,r,o)=>{cP(r,'Missing "range" argument');let l;return Number.isInteger(o)&&Math.abs(o)>2**32?l=wVt(String(o)):typeof o=="bigint"?(l=String(o),(o>2n**32n||o<-(2n**32n))&&(l=wVt(l)),l+="n"):l=hhe(o),`The value of "${n}" is out of range. It must be ${r}. Received ${l}`},RangeError);eb("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);eb("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);eb("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);eb("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);eb("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);eb("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);eb("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);eb("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);eb("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);eb("ERR_STREAM_WRITE_AFTER_END","write after end",Error);eb("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var O0={AbortError:m_r,aggregateTwoErrors:mVt(w_r),hideStackFrames:mVt,codes:oge};const{ArrayIsArray:dGe,ArrayPrototypeIncludes:tln,ArrayPrototypeJoin:nln,ArrayPrototypeMap:y_r,NumberIsInteger:hGe,NumberIsNaN:v_r,NumberMAX_SAFE_INTEGER:__r,NumberMIN_SAFE_INTEGER:S_r,NumberParseInt:E_r,ObjectPrototypeHasOwnProperty:k_r,RegExpPrototypeExec:rln,String:R_r,StringPrototypeToUpperCase:x_r,StringPrototypeTrim:C_r}=Wf,{hideStackFrames:mv,codes:{ERR_SOCKET_BAD_PORT:A_r,ERR_INVALID_ARG_TYPE:Yb,ERR_INVALID_ARG_VALUE:xj,ERR_OUT_OF_RANGE:IP,ERR_UNKNOWN_SIGNAL:yVt}}=O0,{normalizeEncoding:T_r}=h1,{isAsyncFunction:$_r,isArrayBufferView:I_r}=h1.types,vVt={};function P_r(n){return n===(n|0)}function O_r(n){return n===n>>>0}const N_r=/^[0-7]+$/,M_r="must be a 32-bit unsigned integer or an octal string";function D_r(n,r,o){if(typeof n>"u"&&(n=o),typeof n=="string"){if(rln(N_r,n)===null)throw new xj(r,n,M_r);n=E_r(n,8)}return iln(n,r),n}const L_r=mv((n,r,o=S_r,l=__r)=>{if(typeof n!="number")throw new Yb(r,"number",n);if(!hGe(n))throw new IP(r,"an integer",n);if(nl)throw new IP(r,`>= ${o} && <= ${l}`,n)}),j_r=mv((n,r,o=-2147483648,l=2147483647)=>{if(typeof n!="number")throw new Yb(r,"number",n);if(!hGe(n))throw new IP(r,"an integer",n);if(nl)throw new IP(r,`>= ${o} && <= ${l}`,n)}),iln=mv((n,r,o=!1)=>{if(typeof n!="number")throw new Yb(r,"number",n);if(!hGe(n))throw new IP(r,"an integer",n);const l=o?1:0,u=4294967295;if(nu)throw new IP(r,`>= ${l} && <= ${u}`,n)});function pGe(n,r){if(typeof n!="string")throw new Yb(r,"string",n)}function F_r(n,r,o=void 0,l){if(typeof n!="number")throw new Yb(r,"number",n);if(o!=null&&nl||(o!=null||l!=null)&&v_r(n))throw new IP(r,`${o!=null?`>= ${o}`:""}${o!=null&&l!=null?" && ":""}${l!=null?`<= ${l}`:""}`,n)}const B_r=mv((n,r,o)=>{if(!tln(o,n)){const u="must be one of: "+nln(y_r(o,d=>typeof d=="string"?`'${d}'`:R_r(d)),", ");throw new xj(r,n,u)}});function oln(n,r){if(typeof n!="boolean")throw new Yb(r,"boolean",n)}function KMe(n,r,o){return n==null||!k_r(n,r)?o:n[r]}const W_r=mv((n,r,o=null)=>{const l=KMe(o,"allowArray",!1),u=KMe(o,"allowFunction",!1);if(!KMe(o,"nullable",!1)&&n===null||!l&&dGe(n)||typeof n!="object"&&(!u||typeof n!="function"))throw new Yb(r,"Object",n)}),H_r=mv((n,r)=>{if(n!=null&&typeof n!="object"&&typeof n!="function")throw new Yb(r,"a dictionary",n)}),sge=mv((n,r,o=0)=>{if(!dGe(n))throw new Yb(r,"Array",n);if(n.length{if(!I_r(n))throw new Yb(r,["Buffer","TypedArray","DataView"],n)});function q_r(n,r){const o=T_r(r),l=n.length;if(o==="hex"&&l%2!==0)throw new xj("encoding",r,`is invalid for data of length ${l}`)}function X_r(n,r="Port",o=!0){if(typeof n!="number"&&typeof n!="string"||typeof n=="string"&&C_r(n).length===0||+n!==+n>>>0||n>65535||n===0&&!o)throw new A_r(r,n,o);return n|0}const sln=mv((n,r)=>{if(n!==void 0&&(n===null||typeof n!="object"||!("aborted"in n)))throw new Yb(r,"AbortSignal",n)}),J_r=mv((n,r)=>{if(typeof n!="function")throw new Yb(r,"Function",n)}),Y_r=mv((n,r)=>{if(typeof n!="function"||$_r(n))throw new Yb(r,"Function",n)}),Q_r=mv((n,r)=>{if(n!==void 0)throw new Yb(r,"undefined",n)});function Z_r(n,r,o){if(!tln(o,n))throw new Yb(r,`('${nln(o,"|")}')`,n)}const eSr=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function _Vt(n,r){if(typeof n>"u"||!rln(eSr,n))throw new xj(r,n,'must be an array or string of format "; rel=preload; as=style"')}function tSr(n){if(typeof n=="string")return _Vt(n,"hints"),n;if(dGe(n)){const r=n.length;let o="";if(r===0)return o;for(let l=0;l; rel=preload; as=style"')}var IJ={isInt32:P_r,isUint32:O_r,parseFileMode:D_r,validateArray:sge,validateStringArray:U_r,validateBooleanArray:G_r,validateAbortSignalArray:V_r,validateBoolean:oln,validateBuffer:K_r,validateDictionary:H_r,validateEncoding:q_r,validateFunction:J_r,validateInt32:j_r,validateInteger:L_r,validateNumber:F_r,validateObject:W_r,validateOneOf:B_r,validatePlainFunction:Y_r,validatePort:X_r,validateSignalName:z_r,validateString:pGe,validateUint32:iln,validateUndefined:Q_r,validateUnion:Z_r,validateAbortSignal:sln,validateLinkHeaderValue:tSr},bGe={exports:{}};const{SymbolAsyncIterator:SVt,SymbolIterator:EVt,SymbolFor:dO}=Wf,lln=dO("nodejs.stream.destroyed"),aln=dO("nodejs.stream.errored"),CFe=dO("nodejs.stream.readable"),AFe=dO("nodejs.stream.writable"),cln=dO("nodejs.stream.disturbed"),nSr=dO("nodejs.webstream.isClosedPromise"),rSr=dO("nodejs.webstream.controllerErrorFunction");function lge(n,r=!1){var o;return!!(n&&typeof n.pipe=="function"&&typeof n.on=="function"&&(!r||typeof n.pause=="function"&&typeof n.resume=="function")&&(!n._writableState||((o=n._readableState)===null||o===void 0?void 0:o.readable)!==!1)&&(!n._writableState||n._readableState))}function age(n){var r;return!!(n&&typeof n.write=="function"&&typeof n.on=="function"&&(!n._readableState||((r=n._writableState)===null||r===void 0?void 0:r.writable)!==!1))}function iSr(n){return!!(n&&typeof n.pipe=="function"&&n._readableState&&typeof n.on=="function"&&typeof n.write=="function")}function Sk(n){return n&&(n._readableState||n._writableState||typeof n.write=="function"&&typeof n.on=="function"||typeof n.pipe=="function"&&typeof n.on=="function")}function uln(n){return!!(n&&!Sk(n)&&typeof n.pipeThrough=="function"&&typeof n.getReader=="function"&&typeof n.cancel=="function")}function fln(n){return!!(n&&!Sk(n)&&typeof n.getWriter=="function"&&typeof n.abort=="function")}function dln(n){return!!(n&&!Sk(n)&&typeof n.readable=="object"&&typeof n.writable=="object")}function oSr(n){return uln(n)||fln(n)||dln(n)}function sSr(n,r){return n==null?!1:r===!0?typeof n[SVt]=="function":r===!1?typeof n[EVt]=="function":typeof n[SVt]=="function"||typeof n[EVt]=="function"}function cge(n){if(!Sk(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!!(n.destroyed||n[lln]||l!=null&&l.destroyed)}function hln(n){if(!age(n))return null;if(n.writableEnded===!0)return!0;const r=n._writableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function lSr(n,r){if(!age(n))return null;if(n.writableFinished===!0)return!0;const o=n._writableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.finished)!="boolean"?null:!!(o.finished||r===!1&&o.ended===!0&&o.length===0)}function aSr(n){if(!lge(n))return null;if(n.readableEnded===!0)return!0;const r=n._readableState;return!r||r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function pln(n,r){if(!lge(n))return null;const o=n._readableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.endEmitted)!="boolean"?null:!!(o.endEmitted||r===!1&&o.ended===!0&&o.length===0)}function bln(n){return n&&n[CFe]!=null?n[CFe]:typeof(n==null?void 0:n.readable)!="boolean"?null:cge(n)?!1:lge(n)&&n.readable&&!pln(n)}function gln(n){return n&&n[AFe]!=null?n[AFe]:typeof(n==null?void 0:n.writable)!="boolean"?null:cge(n)?!1:age(n)&&n.writable&&!hln(n)}function cSr(n,r){return Sk(n)?cge(n)?!0:!((r==null?void 0:r.readable)!==!1&&bln(n)||(r==null?void 0:r.writable)!==!1&&gln(n)):null}function uSr(n){var r,o;return Sk(n)?n.writableErrored?n.writableErrored:(r=(o=n._writableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function fSr(n){var r,o;return Sk(n)?n.readableErrored?n.readableErrored:(r=(o=n._readableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function dSr(n){if(!Sk(n))return null;if(typeof n.closed=="boolean")return n.closed;const r=n._writableState,o=n._readableState;return typeof(r==null?void 0:r.closed)=="boolean"||typeof(o==null?void 0:o.closed)=="boolean"?(r==null?void 0:r.closed)||(o==null?void 0:o.closed):typeof n._closed=="boolean"&&wln(n)?n._closed:null}function wln(n){return typeof n._closed=="boolean"&&typeof n._defaultKeepAlive=="boolean"&&typeof n._removedConnection=="boolean"&&typeof n._removedContLen=="boolean"}function mln(n){return typeof n._sent100=="boolean"&&wln(n)}function hSr(n){var r;return typeof n._consuming=="boolean"&&typeof n._dumped=="boolean"&&((r=n.req)===null||r===void 0?void 0:r.upgradeOrConnect)===void 0}function pSr(n){if(!Sk(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!l&&mln(n)||!!(l&&l.autoDestroy&&l.emitClose&&l.closed===!1)}function bSr(n){var r;return!!(n&&((r=n[cln])!==null&&r!==void 0?r:n.readableDidRead||n.readableAborted))}function gSr(n){var r,o,l,u,d,h,w,v,y,E;return!!(n&&((r=(o=(l=(u=(d=(h=n[aln])!==null&&h!==void 0?h:n.readableErrored)!==null&&d!==void 0?d:n.writableErrored)!==null&&u!==void 0?u:(w=n._readableState)===null||w===void 0?void 0:w.errorEmitted)!==null&&l!==void 0?l:(v=n._writableState)===null||v===void 0?void 0:v.errorEmitted)!==null&&o!==void 0?o:(y=n._readableState)===null||y===void 0?void 0:y.errored)!==null&&r!==void 0?r:!((E=n._writableState)===null||E===void 0)&&E.errored))}var $x={isDestroyed:cge,kIsDestroyed:lln,isDisturbed:bSr,kIsDisturbed:cln,isErrored:gSr,kIsErrored:aln,isReadable:bln,kIsReadable:CFe,kIsClosedPromise:nSr,kControllerErrorFunction:rSr,kIsWritable:AFe,isClosed:dSr,isDuplexNodeStream:iSr,isFinished:cSr,isIterable:sSr,isReadableNodeStream:lge,isReadableStream:uln,isReadableEnded:aSr,isReadableFinished:pln,isReadableErrored:fSr,isNodeStream:Sk,isWebStream:oSr,isWritable:gln,isWritableNodeStream:age,isWritableStream:fln,isWritableEnded:hln,isWritableFinished:lSr,isWritableErrored:uSr,isServerRequest:hSr,isServerResponse:mln,willEmitClose:pSr,isTransformStream:dln};const Y4=ui,{AbortError:yln,codes:wSr}=O0,{ERR_INVALID_ARG_TYPE:mSr,ERR_STREAM_PREMATURE_CLOSE:kVt}=wSr,{kEmptyObject:TFe,once:$Fe}=h1,{validateAbortSignal:ySr,validateFunction:vSr,validateObject:_Sr,validateBoolean:SSr}=IJ,{Promise:ESr,PromisePrototypeThen:kSr,SymbolDispose:vln}=Wf,{isClosed:RSr,isReadable:RVt,isReadableNodeStream:qMe,isReadableStream:xSr,isReadableFinished:xVt,isReadableErrored:CVt,isWritable:AVt,isWritableNodeStream:TVt,isWritableStream:CSr,isWritableFinished:$Vt,isWritableErrored:IVt,isNodeStream:ASr,willEmitClose:TSr,kIsClosedPromise:$Sr}=$x;let fL;function ISr(n){return n.setHeader&&typeof n.abort=="function"}const IFe=()=>{};function _ln(n,r,o){var l,u;if(arguments.length===2?(o=r,r=TFe):r==null?r=TFe:_Sr(r,"options"),vSr(o,"callback"),ySr(r.signal,"options.signal"),o=$Fe(o),xSr(n)||CSr(n))return PSr(n,r,o);if(!ASr(n))throw new mSr("stream",["ReadableStream","WritableStream","Stream"],n);const d=(l=r.readable)!==null&&l!==void 0?l:qMe(n),h=(u=r.writable)!==null&&u!==void 0?u:TVt(n),w=n._writableState,v=n._readableState,y=()=>{n.writable||C()};let E=TSr(n)&&qMe(n)===d&&TVt(n)===h,A=$Vt(n,!1);const C=()=>{A=!0,n.destroyed&&(E=!1),!(E&&(!n.readable||d))&&(!d||R)&&o.call(n)};let R=xVt(n,!1);const O=()=>{R=!0,n.destroyed&&(E=!1),!(E&&(!n.writable||h))&&(!h||A)&&o.call(n)},M=te=>{o.call(n,te)};let L=RSr(n);const H=()=>{L=!0;const te=IVt(n)||CVt(n);if(te&&typeof te!="boolean")return o.call(n,te);if(d&&!R&&qMe(n,!0)&&!xVt(n,!1))return o.call(n,new kVt);if(h&&!A&&!$Vt(n,!1))return o.call(n,new kVt);o.call(n)},G=()=>{L=!0;const te=IVt(n)||CVt(n);if(te&&typeof te!="boolean")return o.call(n,te);o.call(n)},j=()=>{n.req.on("finish",C)};ISr(n)?(n.on("complete",C),E||n.on("abort",H),n.req?j():n.on("request",j)):h&&!w&&(n.on("end",y),n.on("close",y)),!E&&typeof n.aborted=="boolean"&&n.on("aborted",H),n.on("end",O),n.on("finish",C),r.error!==!1&&n.on("error",M),n.on("close",H),L?Y4.nextTick(H):w!=null&&w.errorEmitted||v!=null&&v.errorEmitted?E||Y4.nextTick(G):(!d&&(!E||RVt(n))&&(A||AVt(n)===!1)||!h&&(!E||AVt(n))&&(R||RVt(n)===!1)||v&&n.req&&n.aborted)&&Y4.nextTick(G);const Q=()=>{o=IFe,n.removeListener("aborted",H),n.removeListener("complete",C),n.removeListener("abort",H),n.removeListener("request",j),n.req&&n.req.removeListener("finish",C),n.removeListener("end",y),n.removeListener("close",y),n.removeListener("finish",C),n.removeListener("end",O),n.removeListener("error",M),n.removeListener("close",H)};if(r.signal&&!L){const te=()=>{const pe=o;Q(),pe.call(n,new yln(void 0,{cause:r.signal.reason}))};if(r.signal.aborted)Y4.nextTick(te);else{fL=fL||h1.addAbortListener;const pe=fL(r.signal,te),Le=o;o=$Fe((...Ee)=>{pe[vln](),Le.apply(n,Ee)})}}return Q}function PSr(n,r,o){let l=!1,u=IFe;if(r.signal)if(u=()=>{l=!0,o.call(n,new yln(void 0,{cause:r.signal.reason}))},r.signal.aborted)Y4.nextTick(u);else{fL=fL||h1.addAbortListener;const h=fL(r.signal,u),w=o;o=$Fe((...v)=>{h[vln](),w.apply(n,v)})}const d=(...h)=>{l||Y4.nextTick(()=>o.apply(n,h))};return kSr(n[$Sr].promise,d,d),IFe}function OSr(n,r){var o;let l=!1;return r===null&&(r=TFe),(o=r)!==null&&o!==void 0&&o.cleanup&&(SSr(r.cleanup,"cleanup"),l=r.cleanup),new ESr((u,d)=>{const h=_ln(n,r,w=>{l&&h(),w?d(w):u()})})}bGe.exports=_ln;bGe.exports.finished=OSr;var UT=bGe.exports;const KE=ui,{aggregateTwoErrors:NSr,codes:{ERR_MULTIPLE_CALLBACK:MSr},AbortError:DSr}=O0,{Symbol:Sln}=Wf,{kIsDestroyed:LSr,isDestroyed:jSr,isFinished:FSr,isServerRequest:BSr}=$x,Eln=Sln("kDestroy"),PFe=Sln("kConstruct");function kln(n,r,o){n&&(n.stack,r&&!r.errored&&(r.errored=n),o&&!o.errored&&(o.errored=n))}function WSr(n,r){const o=this._readableState,l=this._writableState,u=l||o;return l!=null&&l.destroyed||o!=null&&o.destroyed?(typeof r=="function"&&r(),this):(kln(n,l,o),l&&(l.destroyed=!0),o&&(o.destroyed=!0),u.constructed?PVt(this,n,r):this.once(Eln,function(d){PVt(this,NSr(d,n),r)}),this)}function PVt(n,r,o){let l=!1;function u(d){if(l)return;l=!0;const h=n._readableState,w=n._writableState;kln(d,w,h),w&&(w.closed=!0),h&&(h.closed=!0),typeof o=="function"&&o(d),d?KE.nextTick(HSr,n,d):KE.nextTick(Rln,n)}try{n._destroy(r||null,u)}catch(d){u(d)}}function HSr(n,r){OFe(n,r),Rln(n)}function Rln(n){const r=n._readableState,o=n._writableState;o&&(o.closeEmitted=!0),r&&(r.closeEmitted=!0),(o!=null&&o.emitClose||r!=null&&r.emitClose)&&n.emit("close")}function OFe(n,r){const o=n._readableState,l=n._writableState;l!=null&&l.errorEmitted||o!=null&&o.errorEmitted||(l&&(l.errorEmitted=!0),o&&(o.errorEmitted=!0),n.emit("error",r))}function USr(){const n=this._readableState,r=this._writableState;n&&(n.constructed=!0,n.closed=!1,n.closeEmitted=!1,n.destroyed=!1,n.errored=null,n.errorEmitted=!1,n.reading=!1,n.ended=n.readable===!1,n.endEmitted=n.readable===!1),r&&(r.constructed=!0,r.destroyed=!1,r.closed=!1,r.closeEmitted=!1,r.errored=null,r.errorEmitted=!1,r.finalCalled=!1,r.prefinished=!1,r.ended=r.writable===!1,r.ending=r.writable===!1,r.finished=r.writable===!1)}function NFe(n,r,o){const l=n._readableState,u=n._writableState;if(u!=null&&u.destroyed||l!=null&&l.destroyed)return this;l!=null&&l.autoDestroy||u!=null&&u.autoDestroy?n.destroy(r):r&&(r.stack,u&&!u.errored&&(u.errored=r),l&&!l.errored&&(l.errored=r),o?KE.nextTick(OFe,n,r):OFe(n,r))}function GSr(n,r){if(typeof n._construct!="function")return;const o=n._readableState,l=n._writableState;o&&(o.constructed=!1),l&&(l.constructed=!1),n.once(PFe,r),!(n.listenerCount(PFe)>1)&&KE.nextTick(VSr,n)}function VSr(n){let r=!1;function o(l){if(r){NFe(n,l??new MSr);return}r=!0;const u=n._readableState,d=n._writableState,h=d||u;u&&(u.constructed=!0),d&&(d.constructed=!0),h.destroyed?n.emit(Eln,l):l?NFe(n,l,!0):KE.nextTick(zSr,n)}try{n._construct(l=>{KE.nextTick(o,l)})}catch(l){KE.nextTick(o,l)}}function zSr(n){n.emit(PFe)}function OVt(n){return(n==null?void 0:n.setHeader)&&typeof n.abort=="function"}function xln(n){n.emit("close")}function KSr(n,r){n.emit("error",r),KE.nextTick(xln,n)}function qSr(n,r){!n||jSr(n)||(!r&&!FSr(n)&&(r=new DSr),BSr(n)?(n.socket=null,n.destroy(r)):OVt(n)?n.abort():OVt(n.req)?n.req.abort():typeof n.destroy=="function"?n.destroy(r):typeof n.close=="function"?n.close():r?KE.nextTick(KSr,n,r):KE.nextTick(xln,n),n.destroyed||(n[LSr]=!0))}var Cj={construct:GSr,destroyer:qSr,destroy:WSr,undestroy:USr,errorOrDestroy:NFe};const{ArrayIsArray:XSr,ObjectSetPrototypeOf:Cln}=Wf,{EventEmitter:uge}=Ns;function fge(n){uge.call(this,n)}Cln(fge.prototype,uge.prototype);Cln(fge,uge);fge.prototype.pipe=function(n,r){const o=this;function l(E){n.writable&&n.write(E)===!1&&o.pause&&o.pause()}o.on("data",l);function u(){o.readable&&o.resume&&o.resume()}n.on("drain",u),!n._isStdio&&(!r||r.end!==!1)&&(o.on("end",h),o.on("close",w));let d=!1;function h(){d||(d=!0,n.end())}function w(){d||(d=!0,typeof n.destroy=="function"&&n.destroy())}function v(E){y(),uge.listenerCount(this,"error")===0&&this.emit("error",E)}MFe(o,"error",v),MFe(n,"error",v);function y(){o.removeListener("data",l),n.removeListener("drain",u),o.removeListener("end",h),o.removeListener("close",w),o.removeListener("error",v),n.removeListener("error",v),o.removeListener("end",y),o.removeListener("close",y),n.removeListener("close",y)}return o.on("end",y),o.on("close",y),n.on("close",y),n.emit("pipe",o),n};function MFe(n,r,o){if(typeof n.prependListener=="function")return n.prependListener(r,o);!n._events||!n._events[r]?n.on(r,o):XSr(n._events[r])?n._events[r].unshift(o):n._events[r]=[o,n._events[r]]}var gGe={Stream:fge,prependListener:MFe},Aln={exports:{}};(function(n){const{SymbolDispose:r}=Wf,{AbortError:o,codes:l}=O0,{isNodeStream:u,isWebStream:d,kControllerErrorFunction:h}=$x,w=UT,{ERR_INVALID_ARG_TYPE:v}=l;let y;const E=(A,C)=>{if(typeof A!="object"||!("aborted"in A))throw new v(C,"AbortSignal",A)};n.exports.addAbortSignal=function(C,R){if(E(C,"signal"),!u(R)&&!d(R))throw new v("stream",["ReadableStream","WritableStream","Stream"],R);return n.exports.addAbortSignalNoValidate(C,R)},n.exports.addAbortSignalNoValidate=function(A,C){if(typeof A!="object"||!("aborted"in A))return C;const R=u(C)?()=>{C.destroy(new o(void 0,{cause:A.reason}))}:()=>{C[h](new o(void 0,{cause:A.reason}))};if(A.aborted)R();else{y=y||h1.addAbortListener;const O=y(A,R);w(C,O[r])}return C}})(Aln);var dge=Aln.exports;const{StringPrototypeSlice:NVt,SymbolIterator:JSr,TypedArrayPrototypeSet:Due,Uint8Array:YSr}=Wf,{Buffer:XMe}=Kr,{inspect:QSr}=h1;var ZSr=class{constructor(){this.head=null,this.tail=null,this.length=0}push(r){const o={data:r,next:null};this.length>0?this.tail.next=o:this.head=o,this.tail=o,++this.length}unshift(r){const o={data:r,next:this.head};this.length===0&&(this.tail=o),this.head=o,++this.length}shift(){if(this.length===0)return;const r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}clear(){this.head=this.tail=null,this.length=0}join(r){if(this.length===0)return"";let o=this.head,l=""+o.data;for(;(o=o.next)!==null;)l+=r+o.data;return l}concat(r){if(this.length===0)return XMe.alloc(0);const o=XMe.allocUnsafe(r>>>0);let l=this.head,u=0;for(;l;)Due(o,l.data,u),u+=l.data.length,l=l.next;return o}consume(r,o){const l=this.head.data;if(rd.length)o+=d,r-=d.length;else{r===d.length?(o+=d,++u,l.next?this.head=l.next:this.head=this.tail=null):(o+=NVt(d,0,r),this.head=l,l.data=NVt(d,r));break}++u}while((l=l.next)!==null);return this.length-=u,o}_getBuffer(r){const o=XMe.allocUnsafe(r),l=r;let u=this.head,d=0;do{const h=u.data;if(r>h.length)Due(o,h,l-r),r-=h.length;else{r===h.length?(Due(o,h,l-r),++d,u.next?this.head=u.next:this.head=this.tail=null):(Due(o,new YSr(h.buffer,h.byteOffset,r),l-r),this.head=u,u.data=h.slice(r));break}++d}while((u=u.next)!==null);return this.length-=d,o}[Symbol.for("nodejs.util.inspect.custom")](r,o){return QSr(this,{...o,depth:0,customInspect:!1})}};const{MathFloor:e2r,NumberIsInteger:t2r}=Wf,{validateInteger:n2r}=IJ,{ERR_INVALID_ARG_VALUE:r2r}=O0.codes;let Tln=16*1024,$ln=16;function i2r(n,r,o){return n.highWaterMark!=null?n.highWaterMark:r?n[o]:null}function Iln(n){return n?$ln:Tln}function o2r(n,r){n2r(r,"value",0),n?$ln=r:Tln=r}function s2r(n,r,o,l){const u=i2r(r,l,o);if(u!=null){if(!t2r(u)||u<0){const d=l?`options.${o}`:"options.highWaterMark";throw new r2r(d,u)}return e2r(u)}return Iln(n.objectMode)}var hge={getHighWaterMark:s2r,getDefaultHighWaterMark:Iln,setDefaultHighWaterMark:o2r};const MVt=ui,{PromisePrototypeThen:l2r,SymbolAsyncIterator:DVt,SymbolIterator:LVt}=Wf,{Buffer:a2r}=Kr,{ERR_INVALID_ARG_TYPE:c2r,ERR_STREAM_NULL_VALUES:u2r}=O0.codes;function f2r(n,r,o){let l;if(typeof r=="string"||r instanceof a2r)return new n({objectMode:!0,...o,read(){this.push(r),this.push(null)}});let u;if(r&&r[DVt])u=!0,l=r[DVt]();else if(r&&r[LVt])u=!1,l=r[LVt]();else throw new c2r("iterable",["Iterable"],r);const d=new n({objectMode:!0,highWaterMark:1,...o});let h=!1;d._read=function(){h||(h=!0,v())},d._destroy=function(y,E){l2r(w(y),()=>MVt.nextTick(E,y),A=>MVt.nextTick(E,A||y))};async function w(y){const E=y!=null,A=typeof l.throw=="function";if(E&&A){const{value:C,done:R}=await l.throw(y);if(await C,R)return}if(typeof l.return=="function"){const{value:C}=await l.return();await C}}async function v(){for(;;){try{const{value:y,done:E}=u?await l.next():l.next();if(E)d.push(null);else{const A=y&&typeof y.then=="function"?await y:y;if(A===null)throw h=!1,new u2r;if(d.push(A))continue;h=!1}}catch(y){d.destroy(y)}break}}return d}var Pln=f2r,JMe,jVt;function pge(){if(jVt)return JMe;jVt=1;const n=ui,{ArrayPrototypeIndexOf:r,NumberIsInteger:o,NumberIsNaN:l,NumberParseInt:u,ObjectDefineProperties:d,ObjectKeys:h,ObjectSetPrototypeOf:w,Promise:v,SafeSet:y,SymbolAsyncDispose:E,SymbolAsyncIterator:A,Symbol:C}=Wf;JMe=he,he.ReadableState=St;const{EventEmitter:R}=Ns,{Stream:O,prependListener:M}=gGe,{Buffer:L}=Kr,{addAbortSignal:H}=dge,G=UT;let j=h1.debuglog("stream",S=>{j=S});const Q=ZSr,te=Cj,{getHighWaterMark:pe,getDefaultHighWaterMark:Le}=hge,{aggregateTwoErrors:Ee,codes:{ERR_INVALID_ARG_TYPE:le,ERR_METHOD_NOT_IMPLEMENTED:xe,ERR_OUT_OF_RANGE:be,ERR_STREAM_PUSH_AFTER_EOF:ae,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:F},AbortError:me}=O0,{validateObject:ye}=IJ,we=C("kPaused"),{StringDecoder:Be}=rm,He=Pln;w(he.prototype,O.prototype),w(he,O);const Ue=()=>{},{errorOrDestroy:Ge}=te,Me=1,vt=2,re=4,Te=8,ct=16,at=32,Ye=64,mt=128,jt=256,rn=512,Pe=1024,Oe=2048,T=4096,$=8192,B=16384,K=32768,q=65536,ke=1<<17,Re=1<<18;function Ie(S){return{enumerable:!1,get(){return(this.state&S)!==0},set(x){x?this.state|=S:this.state&=~S}}}d(St.prototype,{objectMode:Ie(Me),ended:Ie(vt),endEmitted:Ie(re),reading:Ie(Te),constructed:Ie(ct),sync:Ie(at),needReadable:Ie(Ye),emittedReadable:Ie(mt),readableListening:Ie(jt),resumeScheduled:Ie(rn),errorEmitted:Ie(Pe),emitClose:Ie(Oe),autoDestroy:Ie(T),destroyed:Ie($),closed:Ie(B),closeEmitted:Ie(K),multiAwaitDrain:Ie(q),readingMore:Ie(ke),dataEmitted:Ie(Re)});function St(S,x,Y){typeof Y!="boolean"&&(Y=x instanceof cx()),this.state=Oe|T|ct|at,S&&S.objectMode&&(this.state|=Me),Y&&S&&S.readableObjectMode&&(this.state|=Me),this.highWaterMark=S?pe(this,S,"readableHighWaterMark",Y):Le(!1),this.buffer=new Q,this.length=0,this.pipes=[],this.flowing=null,this[we]=null,S&&S.emitClose===!1&&(this.state&=~Oe),S&&S.autoDestroy===!1&&(this.state&=~T),this.errored=null,this.defaultEncoding=S&&S.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,S&&S.encoding&&(this.decoder=new Be(S.encoding),this.encoding=S.encoding)}function he(S){if(!(this instanceof he))return new he(S);const x=this instanceof cx();this._readableState=new St(S,this,x),S&&(typeof S.read=="function"&&(this._read=S.read),typeof S.destroy=="function"&&(this._destroy=S.destroy),typeof S.construct=="function"&&(this._construct=S.construct),S.signal&&!x&&H(S.signal,this)),O.call(this,S),te.construct(this,()=>{this._readableState.needReadable&&ht(this,this._readableState)})}he.prototype.destroy=te.destroy,he.prototype._undestroy=te.undestroy,he.prototype._destroy=function(S,x){x(S)},he.prototype[R.captureRejectionSymbol]=function(S){this.destroy(S)},he.prototype[E]=function(){let S;return this.destroyed||(S=this.readableEnded?null:new me,this.destroy(S)),new v((x,Y)=>G(this,J=>J&&J!==S?Y(J):x(null)))},he.prototype.push=function(S,x){return zt(this,S,x,!1)},he.prototype.unshift=function(S,x){return zt(this,S,x,!0)};function zt(S,x,Y,J){j("readableAddChunk",x);const ue=S._readableState;let Yt;if(ue.state&Me||(typeof x=="string"?(Y=Y||ue.defaultEncoding,ue.encoding!==Y&&(J&&ue.encoding?x=L.from(x,Y).toString(ue.encoding):(x=L.from(x,Y),Y=""))):x instanceof L?Y="":O._isUint8Array(x)?(x=O._uint8ArrayToBuffer(x),Y=""):x!=null&&(Yt=new le("chunk",["string","Buffer","Uint8Array"],x))),Yt)Ge(S,Yt);else if(x===null)ue.state&=~Te,ce(S,ue);else if(ue.state&Me||x&&x.length>0)if(J)if(ue.state&re)Ge(S,new F);else{if(ue.destroyed||ue.errored)return!1;Qt(S,ue,x,!0)}else if(ue.ended)Ge(S,new ae);else{if(ue.destroyed||ue.errored)return!1;ue.state&=~Te,ue.decoder&&!Y?(x=ue.decoder.write(x),ue.objectMode||x.length!==0?Qt(S,ue,x,!1):ht(S,ue)):Qt(S,ue,x,!1)}else J||(ue.state&=~Te,ht(S,ue));return!ue.ended&&(ue.length0?(x.state&q?x.awaitDrainWriters.clear():x.awaitDrainWriters=null,x.dataEmitted=!0,S.emit("data",Y)):(x.length+=x.objectMode?1:Y.length,J?x.buffer.unshift(Y):x.buffer.push(Y),x.state&Ye&&de(S)),ht(S,x)}he.prototype.isPaused=function(){const S=this._readableState;return S[we]===!0||S.flowing===!1},he.prototype.setEncoding=function(S){const x=new Be(S);this._readableState.decoder=x,this._readableState.encoding=this._readableState.decoder.encoding;const Y=this._readableState.buffer;let J="";for(const ue of Y)J+=x.write(ue);return Y.clear(),J!==""&&Y.push(J),this._readableState.length=J.length,this};const $n=1073741824;function Gn(S){if(S>$n)throw new be("size","<= 1GiB",S);return S--,S|=S>>>1,S|=S>>>2,S|=S>>>4,S|=S>>>8,S|=S>>>16,S++,S}function $e(S,x){return S<=0||x.length===0&&x.ended?0:x.state&Me?1:l(S)?x.flowing&&x.length?x.buffer.first().length:x.length:S<=x.length?S:x.ended?x.length:0}he.prototype.read=function(S){j("read",S),S===void 0?S=NaN:o(S)||(S=u(S,10));const x=this._readableState,Y=S;if(S>x.highWaterMark&&(x.highWaterMark=Gn(S)),S!==0&&(x.state&=~mt),S===0&&x.needReadable&&((x.highWaterMark!==0?x.length>=x.highWaterMark:x.length>0)||x.ended))return j("read: emitReadable",x.length,x.ended),x.length===0&&x.ended?co(this):de(this),null;if(S=$e(S,x),S===0&&x.ended)return x.length===0&&co(this),null;let J=(x.state&Ye)!==0;if(j("need readable",J),(x.length===0||x.length-S0?ue=Al(S,x):ue=null,ue===null?(x.needReadable=x.length<=x.highWaterMark,S=0):(x.length-=S,x.multiAwaitDrain?x.awaitDrainWriters.clear():x.awaitDrainWriters=null),x.length===0&&(x.ended||(x.needReadable=!0),Y!==S&&x.ended&&co(this)),ue!==null&&!x.errorEmitted&&!x.closeEmitted&&(x.dataEmitted=!0,this.emit("data",ue)),ue};function ce(S,x){if(j("onEofChunk"),!x.ended){if(x.decoder){const Y=x.decoder.end();Y&&Y.length&&(x.buffer.push(Y),x.length+=x.objectMode?1:Y.length)}x.ended=!0,x.sync?de(S):(x.needReadable=!1,x.emittedReadable=!0,et(S))}}function de(S){const x=S._readableState;j("emitReadable",x.needReadable,x.emittedReadable),x.needReadable=!1,x.emittedReadable||(j("emitReadable",x.flowing),x.emittedReadable=!0,n.nextTick(et,S))}function et(S){const x=S._readableState;j("emitReadable_",x.destroyed,x.length,x.ended),!x.destroyed&&!x.errored&&(x.length||x.ended)&&(S.emit("readable"),x.emittedReadable=!1),x.needReadable=!x.flowing&&!x.ended&&x.length<=x.highWaterMark,xi(S)}function ht(S,x){!x.readingMore&&x.constructed&&(x.readingMore=!0,n.nextTick(Jt,S,x))}function Jt(S,x){for(;!x.reading&&!x.ended&&(x.length1&&J.pipes.includes(S)&&(j("false write response, pause",J.awaitDrainWriters.size),J.awaitDrainWriters.add(S)),Y.pause()),Fr||(Fr=Zt(Y,S),S.on("drain",Fr))}Y.on("data",ml);function ml(jr){j("ondata");const lr=S.write(jr);j("dest.write",lr),lr===!1&&Rs()}function gs(jr){if(j("onerror",jr),wi(),S.removeListener("error",gs),S.listenerCount("error")===0){const lr=S._writableState||S._readableState;lr&&!lr.errorEmitted?Ge(S,jr):S.emit("error",jr)}}M(S,"error",gs);function as(){S.removeListener("finish",ws),wi()}S.once("close",as);function ws(){j("onfinish"),S.removeListener("close",as),wi()}S.once("finish",ws);function wi(){j("unpipe"),Y.unpipe(S)}return S.emit("pipe",Y),S.writableNeedDrain===!0?Rs():J.flowing||(j("pipe resume"),Y.resume()),S};function Zt(S,x){return function(){const J=S._readableState;J.awaitDrainWriters===x?(j("pipeOnDrain",1),J.awaitDrainWriters=null):J.multiAwaitDrain&&(j("pipeOnDrain",J.awaitDrainWriters.size),J.awaitDrainWriters.delete(x)),(!J.awaitDrainWriters||J.awaitDrainWriters.size===0)&&S.listenerCount("data")&&S.resume()}}he.prototype.unpipe=function(S){const x=this._readableState,Y={hasUnpiped:!1};if(x.pipes.length===0)return this;if(!S){const ue=x.pipes;x.pipes=[],this.pause();for(let Yt=0;Yt0,J.flowing!==!1&&this.resume()):S==="readable"&&!J.endEmitted&&!J.readableListening&&(J.readableListening=J.needReadable=!0,J.flowing=!1,J.emittedReadable=!1,j("on readable",J.length,J.reading),J.length?de(this):J.reading||n.nextTick(ao,this)),Y},he.prototype.addListener=he.prototype.on,he.prototype.removeListener=function(S,x){const Y=O.prototype.removeListener.call(this,S,x);return S==="readable"&&n.nextTick(qr,this),Y},he.prototype.off=he.prototype.removeListener,he.prototype.removeAllListeners=function(S){const x=O.prototype.removeAllListeners.apply(this,arguments);return(S==="readable"||S===void 0)&&n.nextTick(qr,this),x};function qr(S){const x=S._readableState;x.readableListening=S.listenerCount("readable")>0,x.resumeScheduled&&x[we]===!1?x.flowing=!0:S.listenerCount("data")>0?S.resume():x.readableListening||(x.flowing=null)}function ao(S){j("readable nexttick read 0"),S.read(0)}he.prototype.resume=function(){const S=this._readableState;return S.flowing||(j("resume"),S.flowing=!S.readableListening,ki(this,S)),S[we]=!1,this};function ki(S,x){x.resumeScheduled||(x.resumeScheduled=!0,n.nextTick(Ri,S,x))}function Ri(S,x){j("resume",x.reading),x.reading||S.read(0),x.resumeScheduled=!1,S.emit("resume"),xi(S),x.flowing&&!x.reading&&S.read(0)}he.prototype.pause=function(){return j("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(j("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[we]=!0,this};function xi(S){const x=S._readableState;for(j("flow",x.flowing);x.flowing&&S.read()!==null;);}he.prototype.wrap=function(S){let x=!1;S.on("data",J=>{!this.push(J)&&S.pause&&(x=!0,S.pause())}),S.on("end",()=>{this.push(null)}),S.on("error",J=>{Ge(this,J)}),S.on("close",()=>{this.destroy()}),S.on("destroy",()=>{this.destroy()}),this._read=()=>{x&&S.resume&&(x=!1,S.resume())};const Y=h(S);for(let J=1;J{ue=An?Ee(ue,An):null,Y(),Y=Ue});try{for(;;){const An=S.destroyed?null:S.read();if(An!==null)yield An;else{if(ue)throw ue;if(ue===null)return;await new v(J)}}}catch(An){throw ue=Ee(ue,An),ue}finally{(ue||(x==null?void 0:x.destroyOnReturn)!==!1)&&(ue===void 0||S._readableState.autoDestroy)?te.destroyer(S,null):(S.off("readable",J),Yt())}}d(he.prototype,{readable:{__proto__:null,get(){const S=this._readableState;return!!S&&S.readable!==!1&&!S.destroyed&&!S.errorEmitted&&!S.endEmitted},set(S){this._readableState&&(this._readableState.readable=!!S)}},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(S){this._readableState&&(this._readableState.flowing=S)}},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(S){this._readableState&&(this._readableState.destroyed=S)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),d(St.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[we]!==!1},set(S){this[we]=!!S}}}),he._fromList=Al;function Al(S,x){if(x.length===0)return null;let Y;return x.objectMode?Y=x.buffer.shift():!S||S>=x.length?(x.decoder?Y=x.buffer.join(""):x.buffer.length===1?Y=x.buffer.first():Y=x.buffer.concat(x.length),x.buffer.clear()):Y=x.buffer.consume(S,x.decoder),Y}function co(S){const x=S._readableState;j("endReadable",x.endEmitted),x.endEmitted||(x.ended=!0,n.nextTick(Zc,x,S))}function Zc(S,x){if(j("endReadableNT",S.endEmitted,S.length),!S.errored&&!S.closeEmitted&&!S.endEmitted&&S.length===0){if(S.endEmitted=!0,x.emit("end"),x.writable&&x.allowHalfOpen===!1)n.nextTick(bu,x);else if(S.autoDestroy){const Y=x._writableState;(!Y||Y.autoDestroy&&(Y.finished||Y.writable===!1))&&x.destroy()}}}function bu(S){S.writable&&!S.writableEnded&&!S.destroyed&&S.end()}he.from=function(S,x){return He(he,S,x)};let So;function ql(){return So===void 0&&(So={}),So}return he.fromWeb=function(S,x){return ql().newStreamReadableFromReadableStream(S,x)},he.toWeb=function(S,x){return ql().newReadableStreamFromStreamReadable(S,x)},he.wrap=function(S,x){var Y,J;return new he({objectMode:(Y=(J=S.readableObjectMode)!==null&&J!==void 0?J:S.objectMode)!==null&&Y!==void 0?Y:!0,...x,destroy(ue,Yt){te.destroyer(S,ue),Yt(ue)}}).wrap(S)},JMe}var YMe,FVt;function wGe(){if(FVt)return YMe;FVt=1;const n=ui,{ArrayPrototypeSlice:r,Error:o,FunctionPrototypeSymbolHasInstance:l,ObjectDefineProperty:u,ObjectDefineProperties:d,ObjectSetPrototypeOf:h,StringPrototypeToLowerCase:w,Symbol:v,SymbolHasInstance:y}=Wf;YMe=ye,ye.WritableState=F;const{EventEmitter:E}=Ns,A=gGe.Stream,{Buffer:C}=Kr,R=Cj,{addAbortSignal:O}=dge,{getHighWaterMark:M,getDefaultHighWaterMark:L}=hge,{ERR_INVALID_ARG_TYPE:H,ERR_METHOD_NOT_IMPLEMENTED:G,ERR_MULTIPLE_CALLBACK:j,ERR_STREAM_CANNOT_PIPE:Q,ERR_STREAM_DESTROYED:te,ERR_STREAM_ALREADY_FINISHED:pe,ERR_STREAM_NULL_VALUES:Le,ERR_STREAM_WRITE_AFTER_END:Ee,ERR_UNKNOWN_ENCODING:le}=O0.codes,{errorOrDestroy:xe}=R;h(ye.prototype,A.prototype),h(ye,A);function be(){}const ae=v("kOnFinished");function F(T,$,B){typeof B!="boolean"&&(B=$ instanceof cx()),this.objectMode=!!(T&&T.objectMode),B&&(this.objectMode=this.objectMode||!!(T&&T.writableObjectMode)),this.highWaterMark=T?M(this,T,"writableHighWaterMark",B):L(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const K=!!(T&&T.decodeStrings===!1);this.decodeStrings=!K,this.defaultEncoding=T&&T.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=Ge.bind(void 0,$),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,me(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[ae]=[]}function me(T){T.buffered=[],T.bufferedIndex=0,T.allBuffers=!0,T.allNoop=!0}F.prototype.getBuffer=function(){return r(this.buffered,this.bufferedIndex)},u(F.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function ye(T){const $=this instanceof cx();if(!$&&!l(ye,this))return new ye(T);this._writableState=new F(T,this,$),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&&O(T.signal,this)),A.call(this,T),R.construct(this,()=>{const B=this._writableState;B.writing||Te(this,B),mt(this,B)})}u(ye,y,{__proto__:null,value:function(T){return l(this,T)?!0:this!==ye?!1:T&&T._writableState instanceof F}}),ye.prototype.pipe=function(){xe(this,new Q)};function we(T,$,B,K){const q=T._writableState;if(typeof B=="function")K=B,B=q.defaultEncoding;else{if(!B)B=q.defaultEncoding;else if(B!=="buffer"&&!C.isEncoding(B))throw new le(B);typeof K!="function"&&(K=be)}if($===null)throw new Le;if(!q.objectMode)if(typeof $=="string")q.decodeStrings!==!1&&($=C.from($,B),B="buffer");else if($ instanceof C)B="buffer";else if(A._isUint8Array($))$=A._uint8ArrayToBuffer($),B="buffer";else throw new H("chunk",["string","Buffer","Uint8Array"],$);let ke;return q.ending?ke=new Ee:q.destroyed&&(ke=new te("write")),ke?(n.nextTick(K,ke),xe(T,ke,!0),ke):(q.pendingcb++,Be(T,q,$,B,K))}ye.prototype.write=function(T,$,B){return we(this,T,$,B)===!0},ye.prototype.cork=function(){this._writableState.corked++},ye.prototype.uncork=function(){const T=this._writableState;T.corked&&(T.corked--,T.writing||Te(this,T))},ye.prototype.setDefaultEncoding=function($){if(typeof $=="string"&&($=w($)),!C.isEncoding($))throw new le($);return this._writableState.defaultEncoding=$,this};function Be(T,$,B,K,q){const ke=$.objectMode?1:B.length;$.length+=ke;const Re=$.length<$.highWaterMark;return Re||($.needDrain=!0),$.writing||$.corked||$.errored||!$.constructed?($.buffered.push({chunk:B,encoding:K,callback:q}),$.allBuffers&&K!=="buffer"&&($.allBuffers=!1),$.allNoop&&q!==be&&($.allNoop=!1)):($.writelen=ke,$.writecb=q,$.writing=!0,$.sync=!0,T._write(B,K,$.onwrite),$.sync=!1),Re&&!$.errored&&!$.destroyed}function He(T,$,B,K,q,ke,Re){$.writelen=K,$.writecb=Re,$.writing=!0,$.sync=!0,$.destroyed?$.onwrite(new te("write")):B?T._writev(q,$.onwrite):T._write(q,ke,$.onwrite),$.sync=!1}function Ue(T,$,B,K){--$.pendingcb,K(B),re($),xe(T,B)}function Ge(T,$){const B=T._writableState,K=B.sync,q=B.writecb;if(typeof q!="function"){xe(T,new j);return}B.writing=!1,B.writecb=null,B.length-=B.writelen,B.writelen=0,$?($.stack,B.errored||(B.errored=$),T._readableState&&!T._readableState.errored&&(T._readableState.errored=$),K?n.nextTick(Ue,T,B,$,q):Ue(T,B,$,q)):(B.buffered.length>B.bufferedIndex&&Te(T,B),K?B.afterWriteTickInfo!==null&&B.afterWriteTickInfo.cb===q?B.afterWriteTickInfo.count++:(B.afterWriteTickInfo={count:1,cb:q,stream:T,state:B},n.nextTick(Me,B.afterWriteTickInfo)):vt(T,B,1,q))}function Me({stream:T,state:$,count:B,cb:K}){return $.afterWriteTickInfo=null,vt(T,$,B,K)}function vt(T,$,B,K){for(!$.ending&&!T.destroyed&&$.length===0&&$.needDrain&&($.needDrain=!1,T.emit("drain"));B-- >0;)$.pendingcb--,K();$.destroyed&&re($),mt(T,$)}function re(T){if(T.writing)return;for(let q=T.bufferedIndex;q1&&T._writev){$.pendingcb-=ke-1;const Ie=$.allNoop?be:he=>{for(let zt=Re;zt256?(B.splice(0,Re),$.bufferedIndex=0):$.bufferedIndex=Re}$.bufferProcessing=!1}ye.prototype._write=function(T,$,B){if(this._writev)this._writev([{chunk:T,encoding:$}],B);else throw new G("_write()")},ye.prototype._writev=null,ye.prototype.end=function(T,$,B){const K=this._writableState;typeof T=="function"?(B=T,T=null,$=null):typeof $=="function"&&(B=$,$=null);let q;if(T!=null){const ke=we(this,T,$);ke instanceof o&&(q=ke)}return K.corked&&(K.corked=1,this.uncork()),q||(!K.errored&&!K.ending?(K.ending=!0,mt(this,K,!0),K.ended=!0):K.finished?q=new pe("end"):K.destroyed&&(q=new te("end"))),typeof B=="function"&&(q||K.finished?n.nextTick(B,q):K[ae].push(B)),this};function ct(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 at(T,$){let B=!1;function K(q){if(B){xe(T,q??j());return}if(B=!0,$.pendingcb--,q){const ke=$[ae].splice(0);for(let Re=0;Re{ct(q)?jt(K,q):q.pendingcb--},T,$)):ct($)&&($.pendingcb++,jt(T,$))))}function jt(T,$){$.pendingcb--,$.finished=!0;const B=$[ae].splice(0);for(let K=0;K{if(re!=null)throw new O("nully","body",re)},re=>{M(Me,re)});return Me=new le({objectMode:!0,readable:!1,write:Be,final(re){He(async()=>{try{await vt,n.nextTick(re,null)}catch(Te){n.nextTick(re,Te)}})},destroy:Ue})}throw new O("Iterable, AsyncIterable or AsyncFunction",me,we)}if(pe(F))return ae(F.arrayBuffer());if(u(F))return Q(le,F,{objectMode:!0,writable:!1});if(y(F==null?void 0:F.readable)&&E(F==null?void 0:F.writable))return le.fromWeb(F);if(typeof(F==null?void 0:F.writable)=="object"||typeof(F==null?void 0:F.readable)=="object"){const we=F!=null&&F.readable?h(F==null?void 0:F.readable)?F==null?void 0:F.readable:ae(F.readable):void 0,Be=F!=null&&F.writable?w(F==null?void 0:F.writable)?F==null?void 0:F.writable:ae(F.writable):void 0;return be({readable:we,writable:Be})}const ye=F==null?void 0:F.then;if(typeof ye=="function"){let we;return Ee(ye,F,Be=>{Be!=null&&we.push(Be),we.push(null)},Be=>{M(we,Be)}),we=new le({objectMode:!0,writable:!1,read(){}})}throw new R(me,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],F)};function xe(ae){let{promise:F,resolve:me}=j();const ye=new Le,we=ye.signal;return{value:ae(async function*(){for(;;){const He=F;F=null;const{chunk:Ue,done:Ge,cb:Me}=await He;if(n.nextTick(Me),Ge)return;if(we.aborted)throw new C(void 0,{cause:we.reason});({promise:F,resolve:me}=j()),yield Ue}}(),{signal:we}),write(He,Ue,Ge){const Me=me;me=null,Me({chunk:He,done:!1,cb:Ge})},final(He){const Ue=me;me=null,Ue({done:!0,cb:He})},destroy(He,Ue){ye.abort(),Ue(He)}}}function be(ae){const F=ae.readable&&typeof ae.readable.read!="function"?H.wrap(ae.readable):ae.readable,me=ae.writable;let ye=!!o(F),we=!!l(me),Be,He,Ue,Ge,Me;function vt(re){const Te=Ge;Ge=null,Te?Te(re):re&&Me.destroy(re)}return Me=new le({readableObjectMode:!!(F!=null&&F.readableObjectMode),writableObjectMode:!!(me!=null&&me.writableObjectMode),readable:ye,writable:we}),we&&(A(me,re=>{we=!1,re&&M(F,re),vt(re)}),Me._write=function(re,Te,ct){me.write(re,Te)?ct():Be=ct},Me._final=function(re){me.end(),He=re},me.on("drain",function(){if(Be){const re=Be;Be=null,re()}}),me.on("finish",function(){if(He){const re=He;He=null,re()}})),ye&&(A(F,re=>{ye=!1,re&&M(F,re),vt(re)}),F.on("readable",function(){if(Ue){const re=Ue;Ue=null,re()}}),F.on("end",function(){Me.push(null)}),Me._read=function(){for(;;){const re=F.read();if(re===null){Ue=Me._read;return}if(!Me.push(re))return}}),Me._destroy=function(re,Te){!re&&Ge!==null&&(re=new C),Ue=null,Be=null,He=null,Ge===null?Te(re):(Ge=Te,M(me,re),M(F,re))},Me}return QMe}var ZMe,WVt;function cx(){if(WVt)return ZMe;WVt=1;const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:o,ObjectSetPrototypeOf:l}=Wf;ZMe=h;const u=pge(),d=wGe();l(h.prototype,u.prototype),l(h,u);{const E=o(d.prototype);for(let A=0;A{if(r){n?n(r):this.destroy(r);return}o!=null&&this.push(o),this.push(null),n&&n()}):(this.push(null),n&&n())}function g2r(){this._final!==DFe&&DFe.call(this)}ux.prototype._final=DFe;ux.prototype._transform=function(n,r,o){throw new p2r("_transform()")};ux.prototype._write=function(n,r,o){const l=this._readableState,u=this._writableState,d=l.length;this._transform(n,r,(h,w)=>{if(h){o(h);return}w!=null&&this.push(w),u.ended||d===l.length||l.length{l=!0});const u=phe(n,{readable:r,writable:o},d=>{l=!d});return{destroy:d=>{l||(l=!0,S2r.destroyer(n,d||new R2r("pipe")))},cleanup:u}}function O2r(n){return A2r(n[n.length-1],"streams[stream.length - 1]"),n.pop()}function s9e(n){if($8(n))return n;if(rde(n))return N2r(n);throw new LFe("val",["Readable","Iterable","AsyncIterable"],n)}async function*N2r(n){i9e||(i9e=pge()),yield*i9e.prototype[y2r].call(n)}async function Lue(n,r,o,{end:l}){let u,d=null;const h=y=>{if(y&&(u=y),d){const E=d;d=null,E()}},w=()=>new m2r((y,E)=>{u?E(u):d=()=>{u?E(u):y()}});r.on("drain",h);const v=phe(r,{readable:!1},h);try{r.writableNeedDrain&&await w();for await(const y of n)r.write(y)||await w();l&&(r.end(),await w()),o()}catch(y){o(u!==y?E2r(u,y):y)}finally{v(),r.off("drain",h)}}async function l9e(n,r,o,{end:l}){TD(r)&&(r=r.writable);const u=r.getWriter();try{for await(const d of n)await u.ready,u.write(d).catch(()=>{});await u.ready,l&&await u.close(),o()}catch(d){try{await u.abort(d),o(d)}catch(h){o(h)}}}function M2r(...n){return Lln(n,_2r(O2r(n)))}function Lln(n,r,o){if(n.length===1&&w2r(n[0])&&(n=n[0]),n.length<2)throw new k2r("streams");const l=new P2r,u=l.signal,d=o==null?void 0:o.signal,h=[];T2r(d,"options.signal");function w(){O(new C2r)}o9e=o9e||h1.addAbortListener;let v;d&&(v=o9e(d,w));let y,E;const A=[];let C=0;function R(G){O(G,--C===0)}function O(G,j){var Q;if(G&&(!y||y.code==="ERR_STREAM_PREMATURE_CLOSE")&&(y=G),!(!y&&!j)){for(;A.length;)A.shift()(y);(Q=v)===null||Q===void 0||Q[v2r](),l.abort(),j&&(y||h.forEach(te=>te()),DK.nextTick(r,y,E))}}let M;for(let G=0;G0,pe=Q||(o==null?void 0:o.end)!==!1,Le=G===n.length-1;if(UVt(j)){let Ee=function(le){le&&le.name!=="AbortError"&&le.code!=="ERR_STREAM_PREMATURE_CLOSE"&&R(le)};if(pe){const{destroy:le,cleanup:xe}=GVt(j,Q,te);A.push(le),t9e(j)&&Le&&h.push(xe)}j.on("error",Ee),t9e(j)&&Le&&h.push(()=>{j.removeListener("error",Ee)})}if(G===0)if(typeof j=="function"){if(M=j({signal:u}),!$8(M))throw new e9e("Iterable, AsyncIterable or Stream","source",M)}else $8(j)||rde(j)||TD(j)?M=j:M=HVt.from(j);else if(typeof j=="function"){if(TD(M)){var L;M=s9e((L=M)===null||L===void 0?void 0:L.readable)}else M=s9e(M);if(M=j(M,{signal:u}),Q){if(!$8(M,!0))throw new e9e("AsyncIterable",`transform[${G-1}]`,M)}else{var H;r9e||(r9e=Dln);const Ee=new r9e({objectMode:!0}),le=(H=M)===null||H===void 0?void 0:H.then;if(typeof le=="function")C++,le.call(M,ae=>{E=ae,ae!=null&&Ee.write(ae),pe&&Ee.end(),DK.nextTick(R)},ae=>{Ee.destroy(ae),DK.nextTick(R,ae)});else if($8(M,!0))C++,Lue(M,Ee,R,{end:pe});else if(n9e(M)||TD(M)){const ae=M.readable||M;C++,Lue(ae,Ee,R,{end:pe})}else throw new e9e("AsyncIterable or Promise","destination",M);M=Ee;const{destroy:xe,cleanup:be}=GVt(M,!1,!0);A.push(xe),Le&&h.push(be)}}else if(UVt(j)){if(rde(M)){C+=2;const Ee=D2r(M,j,R,{end:pe});t9e(j)&&Le&&h.push(Ee)}else if(TD(M)||n9e(M)){const Ee=M.readable||M;C++,Lue(Ee,j,R,{end:pe})}else if($8(M))C++,Lue(M,j,R,{end:pe});else throw new LFe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else if($2r(j)){if(rde(M))C++,l9e(s9e(M),j,R,{end:pe});else if(n9e(M)||$8(M))C++,l9e(M,j,R,{end:pe});else if(TD(M))C++,l9e(M.readable,j,R,{end:pe});else throw new LFe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else M=HVt.from(j)}return(u!=null&&u.aborted||d!=null&&d.aborted)&&DK.nextTick(w),M}function D2r(n,r,o,{end:l}){let u=!1;if(r.on("close",()=>{u||o(new x2r)}),n.pipe(r,{end:!1}),l){let d=function(){u=!0,r.end()};I2r(n)?DK.nextTick(d):n.once("end",d)}else o();return phe(n,{readable:!0,writable:!1},d=>{const h=n._readableState;d&&d.code==="ERR_STREAM_PREMATURE_CLOSE"&&h&&h.ended&&!h.errored&&!h.errorEmitted?n.once("end",o).once("error",o):o(d)}),phe(r,{readable:!1,writable:!0},o)}var vGe={pipelineImpl:Lln,pipeline:M2r};const{pipeline:L2r}=vGe,jue=cx(),{destroyer:j2r}=Cj,{isNodeStream:Fue,isReadable:VVt,isWritable:zVt,isWebStream:a9e,isTransformStream:u8,isWritableStream:KVt,isReadableStream:qVt}=$x,{AbortError:F2r,codes:{ERR_INVALID_ARG_VALUE:XVt,ERR_MISSING_ARGS:B2r}}=O0,W2r=UT;var jln=function(...r){if(r.length===0)throw new B2r("streams");if(r.length===1)return jue.from(r[0]);const o=[...r];if(typeof r[0]=="function"&&(r[0]=jue.from(r[0])),typeof r[r.length-1]=="function"){const R=r.length-1;r[R]=jue.from(r[R])}for(let R=0;R0&&!(zVt(r[R])||KVt(r[R])||u8(r[R])))throw new XVt(`streams[${R}]`,o[R],"must be writable")}let l,u,d,h,w;function v(R){const O=h;h=null,O?O(R):R?w.destroy(R):!C&&!A&&w.destroy()}const y=r[0],E=L2r(r,v),A=!!(zVt(y)||KVt(y)||u8(y)),C=!!(VVt(E)||qVt(E)||u8(E));if(w=new jue({writableObjectMode:!!(y!=null&&y.writableObjectMode),readableObjectMode:!!(E!=null&&E.readableObjectMode),writable:A,readable:C}),A){if(Fue(y))w._write=function(O,M,L){y.write(O,M)?L():l=L},w._final=function(O){y.end(),u=O},y.on("drain",function(){if(l){const O=l;l=null,O()}});else if(a9e(y)){const M=(u8(y)?y.writable:y).getWriter();w._write=async function(L,H,G){try{await M.ready,M.write(L).catch(()=>{}),G()}catch(j){G(j)}},w._final=async function(L){try{await M.ready,M.close().catch(()=>{}),u=L}catch(H){L(H)}}}const R=u8(E)?E.readable:E;W2r(R,()=>{if(u){const O=u;u=null,O()}})}if(C){if(Fue(E))E.on("readable",function(){if(d){const R=d;d=null,R()}}),E.on("end",function(){w.push(null)}),w._read=function(){for(;;){const R=E.read();if(R===null){d=w._read;return}if(!w.push(R))return}};else if(a9e(E)){const O=(u8(E)?E.readable:E).getReader();w._read=async function(){for(;;)try{const{value:M,done:L}=await O.read();if(!w.push(M))return;if(L){w.push(null);return}}catch{return}}}}return w._destroy=function(R,O){!R&&h!==null&&(R=new F2r),d=null,l=null,u=null,h===null?O(R):(h=O,Fue(E)&&j2r(E,R))},w};const H2r=globalThis.AbortController||$o().AbortController,{codes:{ERR_INVALID_ARG_VALUE:U2r,ERR_INVALID_ARG_TYPE:PJ,ERR_MISSING_ARGS:G2r,ERR_OUT_OF_RANGE:V2r},AbortError:uk}=O0,{validateAbortSignal:hO,validateInteger:JVt,validateObject:pO}=IJ,z2r=Wf.Symbol("kWeak"),K2r=Wf.Symbol("kResistStopPropagation"),{finished:q2r}=UT,X2r=jln,{addAbortSignalNoValidate:J2r}=dge,{isWritable:Y2r,isNodeStream:Q2r}=$x,{deprecate:Z2r}=h1,{ArrayPrototypePush:eEr,Boolean:tEr,MathFloor:YVt,Number:nEr,NumberIsNaN:rEr,Promise:QVt,PromiseReject:ZVt,PromiseResolve:iEr,PromisePrototypeThen:ezt,Symbol:Fln}=Wf,bhe=Fln("kEmpty"),tzt=Fln("kEof");function oEr(n,r){if(r!=null&&pO(r,"options"),(r==null?void 0:r.signal)!=null&&hO(r.signal,"options.signal"),Q2r(n)&&!Y2r(n))throw new U2r("stream",n,"must be writable");const o=X2r(this,n);return r!=null&&r.signal&&J2r(r.signal,o),o}function bge(n,r){if(typeof n!="function")throw new PJ("fn",["Function","AsyncFunction"],n);r!=null&&pO(r,"options"),(r==null?void 0:r.signal)!=null&&hO(r.signal,"options.signal");let o=1;(r==null?void 0:r.concurrency)!=null&&(o=YVt(r.concurrency));let l=o-1;return(r==null?void 0:r.highWaterMark)!=null&&(l=YVt(r.highWaterMark)),JVt(o,"options.concurrency",1),JVt(l,"options.highWaterMark",0),l+=o,(async function*(){const d=h1.AbortSignalAny([r==null?void 0:r.signal].filter(tEr)),h=this,w=[],v={signal:d};let y,E,A=!1,C=0;function R(){A=!0,O()}function O(){C-=1,M()}function M(){E&&!A&&C=l||C>=o)&&await new QVt(G=>{E=G})}w.push(tzt)}catch(H){const G=ZVt(H);ezt(G,O,R),w.push(G)}finally{A=!0,y&&(y(),y=null)}}L();try{for(;;){for(;w.length>0;){const H=await w[0];if(H===tzt)return;if(d.aborted)throw new uk;H!==bhe&&(yield H),w.shift(),M()}await new QVt(H=>{y=H})}}finally{A=!0,E&&(E(),E=null)}}).call(this)}function sEr(n=void 0){return n!=null&&pO(n,"options"),(n==null?void 0:n.signal)!=null&&hO(n.signal,"options.signal"),(async function*(){let o=0;for await(const u of this){var l;if(n!=null&&(l=n.signal)!==null&&l!==void 0&&l.aborted)throw new uk({cause:n.signal.reason});yield[o++,u]}}).call(this)}async function Bln(n,r=void 0){for await(const o of _Ge.call(this,n,r))return!0;return!1}async function lEr(n,r=void 0){if(typeof n!="function")throw new PJ("fn",["Function","AsyncFunction"],n);return!await Bln.call(this,async(...o)=>!await n(...o),r)}async function aEr(n,r){for await(const o of _Ge.call(this,n,r))return o}async function cEr(n,r){if(typeof n!="function")throw new PJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u),bhe}for await(const l of bge.call(this,o,r));}function _Ge(n,r){if(typeof n!="function")throw new PJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u)?l:bhe}return bge.call(this,o,r)}let uEr=class extends G2r{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function fEr(n,r,o){var l;if(typeof n!="function")throw new PJ("reducer",["Function","AsyncFunction"],n);o!=null&&pO(o,"options"),(o==null?void 0:o.signal)!=null&&hO(o.signal,"options.signal");let u=arguments.length>1;if(o!=null&&(l=o.signal)!==null&&l!==void 0&&l.aborted){const y=new uk(void 0,{cause:o.signal.reason});throw this.once("error",()=>{}),await q2r(this.destroy(y)),y}const d=new H2r,h=d.signal;if(o!=null&&o.signal){const y={once:!0,[z2r]:this,[K2r]:!0};o.signal.addEventListener("abort",()=>d.abort(),y)}let w=!1;try{for await(const y of this){var v;if(w=!0,o!=null&&(v=o.signal)!==null&&v!==void 0&&v.aborted)throw new uk;u?r=await n(r,y,{signal:h}):(r=y,u=!0)}if(!w&&!u)throw new uEr}finally{d.abort()}return r}async function dEr(n){n!=null&&pO(n,"options"),(n==null?void 0:n.signal)!=null&&hO(n.signal,"options.signal");const r=[];for await(const l of this){var o;if(n!=null&&(o=n.signal)!==null&&o!==void 0&&o.aborted)throw new uk(void 0,{cause:n.signal.reason});eEr(r,l)}return r}function hEr(n,r){const o=bge.call(this,n,r);return(async function*(){for await(const u of o)yield*u}).call(this)}function Wln(n){if(n=nEr(n),rEr(n))return 0;if(n<0)throw new V2r("number",">= 0",n);return n}function pEr(n,r=void 0){return r!=null&&pO(r,"options"),(r==null?void 0:r.signal)!=null&&hO(r.signal,"options.signal"),n=Wln(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new uk;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new uk;n--<=0&&(yield d)}}).call(this)}function bEr(n,r=void 0){return r!=null&&pO(r,"options"),(r==null?void 0:r.signal)!=null&&hO(r.signal,"options.signal"),n=Wln(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new uk;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new uk;if(n-- >0&&(yield d),n<=0)return}}).call(this)}fGe.streamReturningOperators={asIndexedPairs:Z2r(sEr,"readable.asIndexedPairs will be removed in a future version."),drop:pEr,filter:_Ge,flatMap:hEr,map:bge,take:bEr,compose:oEr};fGe.promiseReturningOperators={every:lEr,forEach:cEr,reduce:fEr,toArray:dEr,some:Bln,find:aEr};var c9e,nzt;function Hln(){if(nzt)return c9e;nzt=1;const{ArrayPrototypePop:n,Promise:r}=Wf,{isIterable:o,isNodeStream:l,isWebStream:u}=$x,{pipelineImpl:d}=vGe,{finished:h}=UT;Uln();function w(...v){return new r((y,E)=>{let A,C;const R=v[v.length-1];if(R&&typeof R=="object"&&!l(R)&&!o(R)&&!u(R)){const O=n(v);A=O.signal,C=O.end}d(v,(O,M)=>{O?E(O):y(M)},{signal:A,end:C})})}return c9e={finished:h,pipeline:w},c9e}var rzt;function Uln(){if(rzt)return zMe.exports;rzt=1;const{Buffer:n}=Kr,{ObjectDefineProperty:r,ObjectKeys:o,ReflectApply:l}=Wf,{promisify:{custom:u}}=h1,{streamReturningOperators:d,promiseReturningOperators:h}=fGe,{codes:{ERR_ILLEGAL_CONSTRUCTOR:w}}=O0,v=jln,{setDefaultHighWaterMark:y,getDefaultHighWaterMark:E}=hge,{pipeline:A}=vGe,{destroyer:C}=Cj,R=UT,O=Hln(),M=$x,L=zMe.exports=gGe.Stream;L.isDestroyed=M.isDestroyed,L.isDisturbed=M.isDisturbed,L.isErrored=M.isErrored,L.isReadable=M.isReadable,L.isWritable=M.isWritable,L.Readable=pge();for(const G of o(d)){let Q=function(...te){if(new.target)throw w();return L.Readable.from(l(j,this,te))};const j=d[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}for(const G of o(h)){let Q=function(...te){if(new.target)throw w();return l(j,this,te)};const j=h[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}L.Writable=wGe(),L.Duplex=cx(),L.Transform=Nln,L.PassThrough=Dln,L.pipeline=A;const{addAbortSignal:H}=dge;return L.addAbortSignal=H,L.finished=R,L.destroy=C,L.compose=v,L.setDefaultHighWaterMark=y,L.getDefaultHighWaterMark=E,r(L,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return O}}),r(A,u,{__proto__:null,enumerable:!0,get(){return O.pipeline}}),r(R,u,{__proto__:null,enumerable:!0,get(){return O.finished}}),L.Stream=L,L._isUint8Array=function(j){return j instanceof Uint8Array},L._uint8ArrayToBuffer=function(j){return n.from(j.buffer,j.byteOffset,j.byteLength)},zMe.exports}(function(n){const r=Uln(),o=Hln(),l=r.Readable.destroy;n.exports=r.Readable,n.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer,n.exports._isUint8Array=r._isUint8Array,n.exports.isDisturbed=r.isDisturbed,n.exports.isErrored=r.isErrored,n.exports.isReadable=r.isReadable,n.exports.Readable=r.Readable,n.exports.Writable=r.Writable,n.exports.Duplex=r.Duplex,n.exports.Transform=r.Transform,n.exports.PassThrough=r.PassThrough,n.exports.addAbortSignal=r.addAbortSignal,n.exports.finished=r.finished,n.exports.destroy=r.destroy,n.exports.destroy=l,n.exports.pipeline=r.pipeline,n.exports.compose=r.compose,Object.defineProperty(r,"promises",{configurable:!0,enumerable:!0,get(){return o}}),n.exports.Stream=r.Stream,n.exports.default=n.exports})(a_r);var gEr={exports:{}},u9e={exports:{}},Hf={ArrayIsArray(n){return Array.isArray(n)},ArrayPrototypeIncludes(n,r){return n.includes(r)},ArrayPrototypeIndexOf(n,r){return n.indexOf(r)},ArrayPrototypeJoin(n,r){return n.join(r)},ArrayPrototypeMap(n,r){return n.map(r)},ArrayPrototypePop(n,r){return n.pop(r)},ArrayPrototypePush(n,r){return n.push(r)},ArrayPrototypeSlice(n,r,o){return n.slice(r,o)},Error,FunctionPrototypeCall(n,r,...o){return n.call(r,...o)},FunctionPrototypeSymbolHasInstance(n,r){return Function.prototype[Symbol.hasInstance].call(n,r)},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(n,r){return Object.defineProperties(n,r)},ObjectDefineProperty(n,r,o){return Object.defineProperty(n,r,o)},ObjectGetOwnPropertyDescriptor(n,r){return Object.getOwnPropertyDescriptor(n,r)},ObjectKeys(n){return Object.keys(n)},ObjectSetPrototypeOf(n,r){return Object.setPrototypeOf(n,r)},Promise,PromisePrototypeCatch(n,r){return n.catch(r)},PromisePrototypeThen(n,r,o){return n.then(r,o)},PromiseReject(n){return Promise.reject(n)},PromiseResolve(n){return Promise.resolve(n)},ReflectApply:Reflect.apply,RegExpPrototypeTest(n,r){return n.test(r)},SafeSet:Set,String,StringPrototypeSlice(n,r,o){return n.slice(r,o)},StringPrototypeToLowerCase(n){return n.toLowerCase()},StringPrototypeToUpperCase(n){return n.toUpperCase()},StringPrototypeTrim(n){return n.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(n,r,o){return n.set(r,o)},Boolean,Uint8Array},Gln={exports:{}};(function(n){const r=Kr,{kResistStopPropagation:o,SymbolDispose:l}=Hf,u=globalThis.AbortSignal||$o().AbortSignal,d=globalThis.AbortController||$o().AbortController,h=Object.getPrototypeOf(async function(){}).constructor,w=globalThis.Blob||r.Blob,v=typeof w<"u"?function(R){return R instanceof w}:function(R){return!1},y=(C,R)=>{if(C!==void 0&&(C===null||typeof C!="object"||!("aborted"in C)))throw new ERR_INVALID_ARG_TYPE(R,"AbortSignal",C)},E=(C,R)=>{if(typeof C!="function")throw new ERR_INVALID_ARG_TYPE(R,"Function",C)};class A extends Error{constructor(R){if(!Array.isArray(R))throw new TypeError(`Expected input to be an Array, got ${typeof R}`);let O="";for(let M=0;M{C=M,R=L}),resolve:C,reject:R}},promisify(C){return new Promise((R,O)=>{C((M,...L)=>M?O(M):R(...L))})},debuglog(){return function(){}},format(C,...R){return C.replace(/%([sdifj])/g,function(...[O,M]){const L=R.shift();return M==="f"?L.toFixed(6):M==="j"?JSON.stringify(L):M==="s"&&typeof L=="object"?`${L.constructor!==Object?L.constructor.name:""} {}`.trim():L.toString()})},inspect(C){switch(typeof C){case"string":if(C.includes("'"))if(C.includes('"')){if(!C.includes("`")&&!C.includes("${"))return`\`${C}\``}else return`"${C}"`;return`'${C}'`;case"number":return isNaN(C)?"NaN":Object.is(C,-0)?String(C):C;case"bigint":return`${String(C)}n`;case"boolean":case"undefined":return String(C);case"object":return"{}"}},types:{isAsyncFunction(C){return C instanceof h},isArrayBufferView(C){return ArrayBuffer.isView(C)}},isBlob:v,deprecate(C,R){return C},addAbortListener:Ns.addAbortListener||function(R,O){if(R===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",R);y(R,"signal"),E(O,"listener");let M;return R.aborted?queueMicrotask(()=>O()):(R.addEventListener("abort",O,{__proto__:null,once:!0,[o]:!0}),M=()=>{R.removeEventListener("abort",O)}),{__proto__:null,[l](){var L;(L=M)===null||L===void 0||L()}}},AbortSignalAny:u.any||function(R){if(R.length===1)return R[0];const O=new d,M=()=>O.abort();return R.forEach(L=>{y(L,"signals"),L.addEventListener("abort",M,{once:!0})}),O.signal.addEventListener("abort",()=>{R.forEach(L=>L.removeEventListener("abort",M))},{once:!0}),O.signal}},n.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(Gln);var p1=Gln.exports,SGe={};const{format:wEr,inspect:ghe,AggregateError:mEr}=p1,yEr=globalThis.AggregateError||mEr,vEr=Symbol("kIsNodeError"),_Er=["string","function","number","object","Function","Object","boolean","bigint","symbol"],SEr=/^([A-Z][a-z0-9]*)+$/,EEr="__node_internal_",gge={};function uP(n,r){if(!n)throw new gge.ERR_INTERNAL_ASSERTION(r)}function izt(n){let r="",o=n.length;const l=n[0]==="-"?1:0;for(;o>=l+4;o-=3)r=`_${n.slice(o-3,o)}${r}`;return`${n.slice(0,o)}${r}`}function kEr(n,r,o){if(typeof r=="function")return uP(r.length<=o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${r.length}).`),r(...o);const l=(r.match(/%[dfijoOs]/g)||[]).length;return uP(l===o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${l}).`),o.length===0?r:wEr(r,...o)}function tb(n,r,o){o||(o=Error);class l extends o{constructor(...d){super(kEr(n,r,d))}toString(){return`${this.name} [${n}]: ${this.message}`}}Object.defineProperties(l.prototype,{name:{value:o.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${n}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),l.prototype.code=n,l.prototype[vEr]=!0,gge[n]=l}function ozt(n){const r=EEr+n.name;return Object.defineProperty(n,"name",{value:r}),n}function REr(n,r){if(n&&r&&n!==r){if(Array.isArray(r.errors))return r.errors.push(n),r;const o=new yEr([r,n],r.message);return o.code=r.code,o}return n||r}let xEr=class extends Error{constructor(r="The operation was aborted",o=void 0){if(o!==void 0&&typeof o!="object")throw new gge.ERR_INVALID_ARG_TYPE("options","Object",o);super(r,o),this.code="ABORT_ERR",this.name="AbortError"}};tb("ERR_ASSERTION","%s",Error);tb("ERR_INVALID_ARG_TYPE",(n,r,o)=>{uP(typeof n=="string","'name' must be a string"),Array.isArray(r)||(r=[r]);let l="The ";n.endsWith(" argument")?l+=`${n} `:l+=`"${n}" ${n.includes(".")?"property":"argument"} `,l+="must be ";const u=[],d=[],h=[];for(const v of r)uP(typeof v=="string","All expected entries have to be of type string"),_Er.includes(v)?u.push(v.toLowerCase()):SEr.test(v)?d.push(v):(uP(v!=="object",'The value "object" should be written as "Object"'),h.push(v));if(d.length>0){const v=u.indexOf("object");v!==-1&&(u.splice(u,v,1),d.push("Object"))}if(u.length>0){switch(u.length){case 1:l+=`of type ${u[0]}`;break;case 2:l+=`one of type ${u[0]} or ${u[1]}`;break;default:{const v=u.pop();l+=`one of type ${u.join(", ")}, or ${v}`}}(d.length>0||h.length>0)&&(l+=" or ")}if(d.length>0){switch(d.length){case 1:l+=`an instance of ${d[0]}`;break;case 2:l+=`an instance of ${d[0]} or ${d[1]}`;break;default:{const v=d.pop();l+=`an instance of ${d.join(", ")}, or ${v}`}}h.length>0&&(l+=" or ")}switch(h.length){case 0:break;case 1:h[0].toLowerCase()!==h[0]&&(l+="an "),l+=`${h[0]}`;break;case 2:l+=`one of ${h[0]} or ${h[1]}`;break;default:{const v=h.pop();l+=`one of ${h.join(", ")}, or ${v}`}}if(o==null)l+=`. Received ${o}`;else if(typeof o=="function"&&o.name)l+=`. Received function ${o.name}`;else if(typeof o=="object"){var w;if((w=o.constructor)!==null&&w!==void 0&&w.name)l+=`. Received an instance of ${o.constructor.name}`;else{const v=ghe(o,{depth:-1});l+=`. Received ${v}`}}else{let v=ghe(o,{colors:!1});v.length>25&&(v=`${v.slice(0,25)}...`),l+=`. Received type ${typeof o} (${v})`}return l},TypeError);tb("ERR_INVALID_ARG_VALUE",(n,r,o="is invalid")=>{let l=ghe(r);return l.length>128&&(l=l.slice(0,128)+"..."),`The ${n.includes(".")?"property":"argument"} '${n}' ${o}. Received ${l}`},TypeError);tb("ERR_INVALID_RETURN_VALUE",(n,r,o)=>{var l;const u=o!=null&&(l=o.constructor)!==null&&l!==void 0&&l.name?`instance of ${o.constructor.name}`:`type ${typeof o}`;return`Expected ${n} to be returned from the "${r}" function but got ${u}.`},TypeError);tb("ERR_MISSING_ARGS",(...n)=>{uP(n.length>0,"At least one arg needs to be specified");let r;const o=n.length;switch(n=(Array.isArray(n)?n:[n]).map(l=>`"${l}"`).join(" or "),o){case 1:r+=`The ${n[0]} argument`;break;case 2:r+=`The ${n[0]} and ${n[1]} arguments`;break;default:{const l=n.pop();r+=`The ${n.join(", ")}, and ${l} arguments`}break}return`${r} must be specified`},TypeError);tb("ERR_OUT_OF_RANGE",(n,r,o)=>{uP(r,'Missing "range" argument');let l;return Number.isInteger(o)&&Math.abs(o)>2**32?l=izt(String(o)):typeof o=="bigint"?(l=String(o),(o>2n**32n||o<-(2n**32n))&&(l=izt(l)),l+="n"):l=ghe(o),`The value of "${n}" is out of range. It must be ${r}. Received ${l}`},RangeError);tb("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);tb("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);tb("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);tb("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);tb("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);tb("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);tb("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);tb("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);tb("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);tb("ERR_STREAM_WRITE_AFTER_END","write after end",Error);tb("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var N0={AbortError:xEr,aggregateTwoErrors:ozt(REr),hideStackFrames:ozt,codes:gge};const{ArrayIsArray:EGe,ArrayPrototypeIncludes:Vln,ArrayPrototypeJoin:zln,ArrayPrototypeMap:CEr,NumberIsInteger:kGe,NumberIsNaN:AEr,NumberMAX_SAFE_INTEGER:TEr,NumberMIN_SAFE_INTEGER:$Er,NumberParseInt:IEr,ObjectPrototypeHasOwnProperty:PEr,RegExpPrototypeExec:Kln,String:OEr,StringPrototypeToUpperCase:NEr,StringPrototypeTrim:MEr}=Hf,{hideStackFrames:yv,codes:{ERR_SOCKET_BAD_PORT:DEr,ERR_INVALID_ARG_TYPE:Qb,ERR_INVALID_ARG_VALUE:Aj,ERR_OUT_OF_RANGE:PP,ERR_UNKNOWN_SIGNAL:szt}}=N0,{normalizeEncoding:LEr}=p1,{isAsyncFunction:jEr,isArrayBufferView:FEr}=p1.types,lzt={};function BEr(n){return n===(n|0)}function WEr(n){return n===n>>>0}const HEr=/^[0-7]+$/,UEr="must be a 32-bit unsigned integer or an octal string";function GEr(n,r,o){if(typeof n>"u"&&(n=o),typeof n=="string"){if(Kln(HEr,n)===null)throw new Aj(r,n,UEr);n=IEr(n,8)}return qln(n,r),n}const VEr=yv((n,r,o=$Er,l=TEr)=>{if(typeof n!="number")throw new Qb(r,"number",n);if(!kGe(n))throw new PP(r,"an integer",n);if(nl)throw new PP(r,`>= ${o} && <= ${l}`,n)}),zEr=yv((n,r,o=-2147483648,l=2147483647)=>{if(typeof n!="number")throw new Qb(r,"number",n);if(!kGe(n))throw new PP(r,"an integer",n);if(nl)throw new PP(r,`>= ${o} && <= ${l}`,n)}),qln=yv((n,r,o=!1)=>{if(typeof n!="number")throw new Qb(r,"number",n);if(!kGe(n))throw new PP(r,"an integer",n);const l=o?1:0,u=4294967295;if(nu)throw new PP(r,`>= ${l} && <= ${u}`,n)});function RGe(n,r){if(typeof n!="string")throw new Qb(r,"string",n)}function KEr(n,r,o=void 0,l){if(typeof n!="number")throw new Qb(r,"number",n);if(o!=null&&nl||(o!=null||l!=null)&&AEr(n))throw new PP(r,`${o!=null?`>= ${o}`:""}${o!=null&&l!=null?" && ":""}${l!=null?`<= ${l}`:""}`,n)}const qEr=yv((n,r,o)=>{if(!Vln(o,n)){const u="must be one of: "+zln(CEr(o,d=>typeof d=="string"?`'${d}'`:OEr(d)),", ");throw new Aj(r,n,u)}});function Xln(n,r){if(typeof n!="boolean")throw new Qb(r,"boolean",n)}function f9e(n,r,o){return n==null||!PEr(n,r)?o:n[r]}const XEr=yv((n,r,o=null)=>{const l=f9e(o,"allowArray",!1),u=f9e(o,"allowFunction",!1);if(!f9e(o,"nullable",!1)&&n===null||!l&&EGe(n)||typeof n!="object"&&(!u||typeof n!="function"))throw new Qb(r,"Object",n)}),JEr=yv((n,r)=>{if(n!=null&&typeof n!="object"&&typeof n!="function")throw new Qb(r,"a dictionary",n)}),wge=yv((n,r,o=0)=>{if(!EGe(n))throw new Qb(r,"Array",n);if(n.length{if(!FEr(n))throw new Qb(r,["Buffer","TypedArray","DataView"],n)});function nkr(n,r){const o=LEr(r),l=n.length;if(o==="hex"&&l%2!==0)throw new Aj("encoding",r,`is invalid for data of length ${l}`)}function rkr(n,r="Port",o=!0){if(typeof n!="number"&&typeof n!="string"||typeof n=="string"&&MEr(n).length===0||+n!==+n>>>0||n>65535||n===0&&!o)throw new DEr(r,n,o);return n|0}const Jln=yv((n,r)=>{if(n!==void 0&&(n===null||typeof n!="object"||!("aborted"in n)))throw new Qb(r,"AbortSignal",n)}),ikr=yv((n,r)=>{if(typeof n!="function")throw new Qb(r,"Function",n)}),okr=yv((n,r)=>{if(typeof n!="function"||jEr(n))throw new Qb(r,"Function",n)}),skr=yv((n,r)=>{if(n!==void 0)throw new Qb(r,"undefined",n)});function lkr(n,r,o){if(!Vln(o,n))throw new Qb(r,`('${zln(o,"|")}')`,n)}const akr=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function azt(n,r){if(typeof n>"u"||!Kln(akr,n))throw new Aj(r,n,'must be an array or string of format "; rel=preload; as=style"')}function ckr(n){if(typeof n=="string")return azt(n,"hints"),n;if(EGe(n)){const r=n.length;let o="";if(r===0)return o;for(let l=0;l; rel=preload; as=style"')}var OJ={isInt32:BEr,isUint32:WEr,parseFileMode:GEr,validateArray:wge,validateStringArray:YEr,validateBooleanArray:QEr,validateAbortSignalArray:ZEr,validateBoolean:Xln,validateBuffer:tkr,validateDictionary:JEr,validateEncoding:nkr,validateFunction:ikr,validateInt32:zEr,validateInteger:VEr,validateNumber:KEr,validateObject:XEr,validateOneOf:qEr,validatePlainFunction:okr,validatePort:rkr,validateSignalName:ekr,validateString:RGe,validateUint32:qln,validateUndefined:skr,validateUnion:lkr,validateAbortSignal:Jln,validateLinkHeaderValue:ckr},xGe={exports:{}};const{SymbolAsyncIterator:czt,SymbolIterator:uzt,SymbolFor:bO}=Hf,Yln=bO("nodejs.stream.destroyed"),Qln=bO("nodejs.stream.errored"),jFe=bO("nodejs.stream.readable"),FFe=bO("nodejs.stream.writable"),Zln=bO("nodejs.stream.disturbed"),ukr=bO("nodejs.webstream.isClosedPromise"),fkr=bO("nodejs.webstream.controllerErrorFunction");function mge(n,r=!1){var o;return!!(n&&typeof n.pipe=="function"&&typeof n.on=="function"&&(!r||typeof n.pause=="function"&&typeof n.resume=="function")&&(!n._writableState||((o=n._readableState)===null||o===void 0?void 0:o.readable)!==!1)&&(!n._writableState||n._readableState))}function yge(n){var r;return!!(n&&typeof n.write=="function"&&typeof n.on=="function"&&(!n._readableState||((r=n._writableState)===null||r===void 0?void 0:r.writable)!==!1))}function dkr(n){return!!(n&&typeof n.pipe=="function"&&n._readableState&&typeof n.on=="function"&&typeof n.write=="function")}function Ek(n){return n&&(n._readableState||n._writableState||typeof n.write=="function"&&typeof n.on=="function"||typeof n.pipe=="function"&&typeof n.on=="function")}function ean(n){return!!(n&&!Ek(n)&&typeof n.pipeThrough=="function"&&typeof n.getReader=="function"&&typeof n.cancel=="function")}function tan(n){return!!(n&&!Ek(n)&&typeof n.getWriter=="function"&&typeof n.abort=="function")}function nan(n){return!!(n&&!Ek(n)&&typeof n.readable=="object"&&typeof n.writable=="object")}function hkr(n){return ean(n)||tan(n)||nan(n)}function pkr(n,r){return n==null?!1:r===!0?typeof n[czt]=="function":r===!1?typeof n[uzt]=="function":typeof n[czt]=="function"||typeof n[uzt]=="function"}function vge(n){if(!Ek(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!!(n.destroyed||n[Yln]||l!=null&&l.destroyed)}function ran(n){if(!yge(n))return null;if(n.writableEnded===!0)return!0;const r=n._writableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function bkr(n,r){if(!yge(n))return null;if(n.writableFinished===!0)return!0;const o=n._writableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.finished)!="boolean"?null:!!(o.finished||r===!1&&o.ended===!0&&o.length===0)}function gkr(n){if(!mge(n))return null;if(n.readableEnded===!0)return!0;const r=n._readableState;return!r||r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function ian(n,r){if(!mge(n))return null;const o=n._readableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.endEmitted)!="boolean"?null:!!(o.endEmitted||r===!1&&o.ended===!0&&o.length===0)}function oan(n){return n&&n[jFe]!=null?n[jFe]:typeof(n==null?void 0:n.readable)!="boolean"?null:vge(n)?!1:mge(n)&&n.readable&&!ian(n)}function san(n){return n&&n[FFe]!=null?n[FFe]:typeof(n==null?void 0:n.writable)!="boolean"?null:vge(n)?!1:yge(n)&&n.writable&&!ran(n)}function wkr(n,r){return Ek(n)?vge(n)?!0:!((r==null?void 0:r.readable)!==!1&&oan(n)||(r==null?void 0:r.writable)!==!1&&san(n)):null}function mkr(n){var r,o;return Ek(n)?n.writableErrored?n.writableErrored:(r=(o=n._writableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function ykr(n){var r,o;return Ek(n)?n.readableErrored?n.readableErrored:(r=(o=n._readableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function vkr(n){if(!Ek(n))return null;if(typeof n.closed=="boolean")return n.closed;const r=n._writableState,o=n._readableState;return typeof(r==null?void 0:r.closed)=="boolean"||typeof(o==null?void 0:o.closed)=="boolean"?(r==null?void 0:r.closed)||(o==null?void 0:o.closed):typeof n._closed=="boolean"&&lan(n)?n._closed:null}function lan(n){return typeof n._closed=="boolean"&&typeof n._defaultKeepAlive=="boolean"&&typeof n._removedConnection=="boolean"&&typeof n._removedContLen=="boolean"}function aan(n){return typeof n._sent100=="boolean"&&lan(n)}function _kr(n){var r;return typeof n._consuming=="boolean"&&typeof n._dumped=="boolean"&&((r=n.req)===null||r===void 0?void 0:r.upgradeOrConnect)===void 0}function Skr(n){if(!Ek(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!l&&aan(n)||!!(l&&l.autoDestroy&&l.emitClose&&l.closed===!1)}function Ekr(n){var r;return!!(n&&((r=n[Zln])!==null&&r!==void 0?r:n.readableDidRead||n.readableAborted))}function kkr(n){var r,o,l,u,d,h,w,v,y,E;return!!(n&&((r=(o=(l=(u=(d=(h=n[Qln])!==null&&h!==void 0?h:n.readableErrored)!==null&&d!==void 0?d:n.writableErrored)!==null&&u!==void 0?u:(w=n._readableState)===null||w===void 0?void 0:w.errorEmitted)!==null&&l!==void 0?l:(v=n._writableState)===null||v===void 0?void 0:v.errorEmitted)!==null&&o!==void 0?o:(y=n._readableState)===null||y===void 0?void 0:y.errored)!==null&&r!==void 0?r:!((E=n._writableState)===null||E===void 0)&&E.errored))}var Ix={isDestroyed:vge,kIsDestroyed:Yln,isDisturbed:Ekr,kIsDisturbed:Zln,isErrored:kkr,kIsErrored:Qln,isReadable:oan,kIsReadable:jFe,kIsClosedPromise:ukr,kControllerErrorFunction:fkr,kIsWritable:FFe,isClosed:vkr,isDuplexNodeStream:dkr,isFinished:wkr,isIterable:pkr,isReadableNodeStream:mge,isReadableStream:ean,isReadableEnded:gkr,isReadableFinished:ian,isReadableErrored:ykr,isNodeStream:Ek,isWebStream:hkr,isWritable:san,isWritableNodeStream:yge,isWritableStream:tan,isWritableEnded:ran,isWritableFinished:bkr,isWritableErrored:mkr,isServerRequest:_kr,isServerResponse:aan,willEmitClose:Skr,isTransformStream:nan};const Q4=ui,{AbortError:can,codes:Rkr}=N0,{ERR_INVALID_ARG_TYPE:xkr,ERR_STREAM_PREMATURE_CLOSE:fzt}=Rkr,{kEmptyObject:BFe,once:WFe}=p1,{validateAbortSignal:Ckr,validateFunction:Akr,validateObject:Tkr,validateBoolean:$kr}=OJ,{Promise:Ikr,PromisePrototypeThen:Pkr,SymbolDispose:uan}=Hf,{isClosed:Okr,isReadable:dzt,isReadableNodeStream:d9e,isReadableStream:Nkr,isReadableFinished:hzt,isReadableErrored:pzt,isWritable:bzt,isWritableNodeStream:gzt,isWritableStream:Mkr,isWritableFinished:wzt,isWritableErrored:mzt,isNodeStream:Dkr,willEmitClose:Lkr,kIsClosedPromise:jkr}=Ix;let dL;function Fkr(n){return n.setHeader&&typeof n.abort=="function"}const HFe=()=>{};function fan(n,r,o){var l,u;if(arguments.length===2?(o=r,r=BFe):r==null?r=BFe:Tkr(r,"options"),Akr(o,"callback"),Ckr(r.signal,"options.signal"),o=WFe(o),Nkr(n)||Mkr(n))return Bkr(n,r,o);if(!Dkr(n))throw new xkr("stream",["ReadableStream","WritableStream","Stream"],n);const d=(l=r.readable)!==null&&l!==void 0?l:d9e(n),h=(u=r.writable)!==null&&u!==void 0?u:gzt(n),w=n._writableState,v=n._readableState,y=()=>{n.writable||C()};let E=Lkr(n)&&d9e(n)===d&&gzt(n)===h,A=wzt(n,!1);const C=()=>{A=!0,n.destroyed&&(E=!1),!(E&&(!n.readable||d))&&(!d||R)&&o.call(n)};let R=hzt(n,!1);const O=()=>{R=!0,n.destroyed&&(E=!1),!(E&&(!n.writable||h))&&(!h||A)&&o.call(n)},M=te=>{o.call(n,te)};let L=Okr(n);const H=()=>{L=!0;const te=mzt(n)||pzt(n);if(te&&typeof te!="boolean")return o.call(n,te);if(d&&!R&&d9e(n,!0)&&!hzt(n,!1))return o.call(n,new fzt);if(h&&!A&&!wzt(n,!1))return o.call(n,new fzt);o.call(n)},G=()=>{L=!0;const te=mzt(n)||pzt(n);if(te&&typeof te!="boolean")return o.call(n,te);o.call(n)},j=()=>{n.req.on("finish",C)};Fkr(n)?(n.on("complete",C),E||n.on("abort",H),n.req?j():n.on("request",j)):h&&!w&&(n.on("end",y),n.on("close",y)),!E&&typeof n.aborted=="boolean"&&n.on("aborted",H),n.on("end",O),n.on("finish",C),r.error!==!1&&n.on("error",M),n.on("close",H),L?Q4.nextTick(H):w!=null&&w.errorEmitted||v!=null&&v.errorEmitted?E||Q4.nextTick(G):(!d&&(!E||dzt(n))&&(A||bzt(n)===!1)||!h&&(!E||bzt(n))&&(R||dzt(n)===!1)||v&&n.req&&n.aborted)&&Q4.nextTick(G);const Q=()=>{o=HFe,n.removeListener("aborted",H),n.removeListener("complete",C),n.removeListener("abort",H),n.removeListener("request",j),n.req&&n.req.removeListener("finish",C),n.removeListener("end",y),n.removeListener("close",y),n.removeListener("finish",C),n.removeListener("end",O),n.removeListener("error",M),n.removeListener("close",H)};if(r.signal&&!L){const te=()=>{const pe=o;Q(),pe.call(n,new can(void 0,{cause:r.signal.reason}))};if(r.signal.aborted)Q4.nextTick(te);else{dL=dL||p1.addAbortListener;const pe=dL(r.signal,te),Le=o;o=WFe((...Ee)=>{pe[uan](),Le.apply(n,Ee)})}}return Q}function Bkr(n,r,o){let l=!1,u=HFe;if(r.signal)if(u=()=>{l=!0,o.call(n,new can(void 0,{cause:r.signal.reason}))},r.signal.aborted)Q4.nextTick(u);else{dL=dL||p1.addAbortListener;const h=dL(r.signal,u),w=o;o=WFe((...v)=>{h[uan](),w.apply(n,v)})}const d=(...h)=>{l||Q4.nextTick(()=>o.apply(n,h))};return Pkr(n[jkr].promise,d,d),HFe}function Wkr(n,r){var o;let l=!1;return r===null&&(r=BFe),(o=r)!==null&&o!==void 0&&o.cleanup&&($kr(r.cleanup,"cleanup"),l=r.cleanup),new Ikr((u,d)=>{const h=fan(n,r,w=>{l&&h(),w?d(w):u()})})}xGe.exports=fan;xGe.exports.finished=Wkr;var GT=xGe.exports;const qE=ui,{aggregateTwoErrors:Hkr,codes:{ERR_MULTIPLE_CALLBACK:Ukr},AbortError:Gkr}=N0,{Symbol:dan}=Hf,{kIsDestroyed:Vkr,isDestroyed:zkr,isFinished:Kkr,isServerRequest:qkr}=Ix,han=dan("kDestroy"),UFe=dan("kConstruct");function pan(n,r,o){n&&(n.stack,r&&!r.errored&&(r.errored=n),o&&!o.errored&&(o.errored=n))}function Xkr(n,r){const o=this._readableState,l=this._writableState,u=l||o;return l!=null&&l.destroyed||o!=null&&o.destroyed?(typeof r=="function"&&r(),this):(pan(n,l,o),l&&(l.destroyed=!0),o&&(o.destroyed=!0),u.constructed?yzt(this,n,r):this.once(han,function(d){yzt(this,Hkr(d,n),r)}),this)}function yzt(n,r,o){let l=!1;function u(d){if(l)return;l=!0;const h=n._readableState,w=n._writableState;pan(d,w,h),w&&(w.closed=!0),h&&(h.closed=!0),typeof o=="function"&&o(d),d?qE.nextTick(Jkr,n,d):qE.nextTick(ban,n)}try{n._destroy(r||null,u)}catch(d){u(d)}}function Jkr(n,r){GFe(n,r),ban(n)}function ban(n){const r=n._readableState,o=n._writableState;o&&(o.closeEmitted=!0),r&&(r.closeEmitted=!0),(o!=null&&o.emitClose||r!=null&&r.emitClose)&&n.emit("close")}function GFe(n,r){const o=n._readableState,l=n._writableState;l!=null&&l.errorEmitted||o!=null&&o.errorEmitted||(l&&(l.errorEmitted=!0),o&&(o.errorEmitted=!0),n.emit("error",r))}function Ykr(){const n=this._readableState,r=this._writableState;n&&(n.constructed=!0,n.closed=!1,n.closeEmitted=!1,n.destroyed=!1,n.errored=null,n.errorEmitted=!1,n.reading=!1,n.ended=n.readable===!1,n.endEmitted=n.readable===!1),r&&(r.constructed=!0,r.destroyed=!1,r.closed=!1,r.closeEmitted=!1,r.errored=null,r.errorEmitted=!1,r.finalCalled=!1,r.prefinished=!1,r.ended=r.writable===!1,r.ending=r.writable===!1,r.finished=r.writable===!1)}function VFe(n,r,o){const l=n._readableState,u=n._writableState;if(u!=null&&u.destroyed||l!=null&&l.destroyed)return this;l!=null&&l.autoDestroy||u!=null&&u.autoDestroy?n.destroy(r):r&&(r.stack,u&&!u.errored&&(u.errored=r),l&&!l.errored&&(l.errored=r),o?qE.nextTick(GFe,n,r):GFe(n,r))}function Qkr(n,r){if(typeof n._construct!="function")return;const o=n._readableState,l=n._writableState;o&&(o.constructed=!1),l&&(l.constructed=!1),n.once(UFe,r),!(n.listenerCount(UFe)>1)&&qE.nextTick(Zkr,n)}function Zkr(n){let r=!1;function o(l){if(r){VFe(n,l??new Ukr);return}r=!0;const u=n._readableState,d=n._writableState,h=d||u;u&&(u.constructed=!0),d&&(d.constructed=!0),h.destroyed?n.emit(han,l):l?VFe(n,l,!0):qE.nextTick(e3r,n)}try{n._construct(l=>{qE.nextTick(o,l)})}catch(l){qE.nextTick(o,l)}}function e3r(n){n.emit(UFe)}function vzt(n){return(n==null?void 0:n.setHeader)&&typeof n.abort=="function"}function gan(n){n.emit("close")}function t3r(n,r){n.emit("error",r),qE.nextTick(gan,n)}function n3r(n,r){!n||zkr(n)||(!r&&!Kkr(n)&&(r=new Gkr),qkr(n)?(n.socket=null,n.destroy(r)):vzt(n)?n.abort():vzt(n.req)?n.req.abort():typeof n.destroy=="function"?n.destroy(r):typeof n.close=="function"?n.close():r?qE.nextTick(t3r,n,r):qE.nextTick(gan,n),n.destroyed||(n[Vkr]=!0))}var Tj={construct:Qkr,destroyer:n3r,destroy:Xkr,undestroy:Ykr,errorOrDestroy:VFe};const{ArrayIsArray:r3r,ObjectSetPrototypeOf:wan}=Hf,{EventEmitter:_ge}=Ns;function Sge(n){_ge.call(this,n)}wan(Sge.prototype,_ge.prototype);wan(Sge,_ge);Sge.prototype.pipe=function(n,r){const o=this;function l(E){n.writable&&n.write(E)===!1&&o.pause&&o.pause()}o.on("data",l);function u(){o.readable&&o.resume&&o.resume()}n.on("drain",u),!n._isStdio&&(!r||r.end!==!1)&&(o.on("end",h),o.on("close",w));let d=!1;function h(){d||(d=!0,n.end())}function w(){d||(d=!0,typeof n.destroy=="function"&&n.destroy())}function v(E){y(),_ge.listenerCount(this,"error")===0&&this.emit("error",E)}zFe(o,"error",v),zFe(n,"error",v);function y(){o.removeListener("data",l),n.removeListener("drain",u),o.removeListener("end",h),o.removeListener("close",w),o.removeListener("error",v),n.removeListener("error",v),o.removeListener("end",y),o.removeListener("close",y),n.removeListener("close",y)}return o.on("end",y),o.on("close",y),n.on("close",y),n.emit("pipe",o),n};function zFe(n,r,o){if(typeof n.prependListener=="function")return n.prependListener(r,o);!n._events||!n._events[r]?n.on(r,o):r3r(n._events[r])?n._events[r].unshift(o):n._events[r]=[o,n._events[r]]}var CGe={Stream:Sge,prependListener:zFe},man={exports:{}};(function(n){const{SymbolDispose:r}=Hf,{AbortError:o,codes:l}=N0,{isNodeStream:u,isWebStream:d,kControllerErrorFunction:h}=Ix,w=GT,{ERR_INVALID_ARG_TYPE:v}=l;let y;const E=(A,C)=>{if(typeof A!="object"||!("aborted"in A))throw new v(C,"AbortSignal",A)};n.exports.addAbortSignal=function(C,R){if(E(C,"signal"),!u(R)&&!d(R))throw new v("stream",["ReadableStream","WritableStream","Stream"],R);return n.exports.addAbortSignalNoValidate(C,R)},n.exports.addAbortSignalNoValidate=function(A,C){if(typeof A!="object"||!("aborted"in A))return C;const R=u(C)?()=>{C.destroy(new o(void 0,{cause:A.reason}))}:()=>{C[h](new o(void 0,{cause:A.reason}))};if(A.aborted)R();else{y=y||p1.addAbortListener;const O=y(A,R);w(C,O[r])}return C}})(man);var Ege=man.exports;const{StringPrototypeSlice:_zt,SymbolIterator:i3r,TypedArrayPrototypeSet:Bue,Uint8Array:o3r}=Hf,{Buffer:h9e}=Kr,{inspect:s3r}=p1;var l3r=class{constructor(){this.head=null,this.tail=null,this.length=0}push(r){const o={data:r,next:null};this.length>0?this.tail.next=o:this.head=o,this.tail=o,++this.length}unshift(r){const o={data:r,next:this.head};this.length===0&&(this.tail=o),this.head=o,++this.length}shift(){if(this.length===0)return;const r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}clear(){this.head=this.tail=null,this.length=0}join(r){if(this.length===0)return"";let o=this.head,l=""+o.data;for(;(o=o.next)!==null;)l+=r+o.data;return l}concat(r){if(this.length===0)return h9e.alloc(0);const o=h9e.allocUnsafe(r>>>0);let l=this.head,u=0;for(;l;)Bue(o,l.data,u),u+=l.data.length,l=l.next;return o}consume(r,o){const l=this.head.data;if(rd.length)o+=d,r-=d.length;else{r===d.length?(o+=d,++u,l.next?this.head=l.next:this.head=this.tail=null):(o+=_zt(d,0,r),this.head=l,l.data=_zt(d,r));break}++u}while((l=l.next)!==null);return this.length-=u,o}_getBuffer(r){const o=h9e.allocUnsafe(r),l=r;let u=this.head,d=0;do{const h=u.data;if(r>h.length)Bue(o,h,l-r),r-=h.length;else{r===h.length?(Bue(o,h,l-r),++d,u.next?this.head=u.next:this.head=this.tail=null):(Bue(o,new o3r(h.buffer,h.byteOffset,r),l-r),this.head=u,u.data=h.slice(r));break}++d}while((u=u.next)!==null);return this.length-=d,o}[Symbol.for("nodejs.util.inspect.custom")](r,o){return s3r(this,{...o,depth:0,customInspect:!1})}};const{MathFloor:a3r,NumberIsInteger:c3r}=Hf,{validateInteger:u3r}=OJ,{ERR_INVALID_ARG_VALUE:f3r}=N0.codes;let yan=16*1024,van=16;function d3r(n,r,o){return n.highWaterMark!=null?n.highWaterMark:r?n[o]:null}function _an(n){return n?van:yan}function h3r(n,r){u3r(r,"value",0),n?van=r:yan=r}function p3r(n,r,o,l){const u=d3r(r,l,o);if(u!=null){if(!c3r(u)||u<0){const d=l?`options.${o}`:"options.highWaterMark";throw new f3r(d,u)}return a3r(u)}return _an(n.objectMode)}var kge={getHighWaterMark:p3r,getDefaultHighWaterMark:_an,setDefaultHighWaterMark:h3r};const Szt=ui,{PromisePrototypeThen:b3r,SymbolAsyncIterator:Ezt,SymbolIterator:kzt}=Hf,{Buffer:g3r}=Kr,{ERR_INVALID_ARG_TYPE:w3r,ERR_STREAM_NULL_VALUES:m3r}=N0.codes;function y3r(n,r,o){let l;if(typeof r=="string"||r instanceof g3r)return new n({objectMode:!0,...o,read(){this.push(r),this.push(null)}});let u;if(r&&r[Ezt])u=!0,l=r[Ezt]();else if(r&&r[kzt])u=!1,l=r[kzt]();else throw new w3r("iterable",["Iterable"],r);const d=new n({objectMode:!0,highWaterMark:1,...o});let h=!1;d._read=function(){h||(h=!0,v())},d._destroy=function(y,E){b3r(w(y),()=>Szt.nextTick(E,y),A=>Szt.nextTick(E,A||y))};async function w(y){const E=y!=null,A=typeof l.throw=="function";if(E&&A){const{value:C,done:R}=await l.throw(y);if(await C,R)return}if(typeof l.return=="function"){const{value:C}=await l.return();await C}}async function v(){for(;;){try{const{value:y,done:E}=u?await l.next():l.next();if(E)d.push(null);else{const A=y&&typeof y.then=="function"?await y:y;if(A===null)throw h=!1,new m3r;if(d.push(A))continue;h=!1}}catch(y){d.destroy(y)}break}}return d}var San=y3r,p9e,Rzt;function Rge(){if(Rzt)return p9e;Rzt=1;const n=ui,{ArrayPrototypeIndexOf:r,NumberIsInteger:o,NumberIsNaN:l,NumberParseInt:u,ObjectDefineProperties:d,ObjectKeys:h,ObjectSetPrototypeOf:w,Promise:v,SafeSet:y,SymbolAsyncDispose:E,SymbolAsyncIterator:A,Symbol:C}=Hf;p9e=he,he.ReadableState=St;const{EventEmitter:R}=Ns,{Stream:O,prependListener:M}=CGe,{Buffer:L}=Kr,{addAbortSignal:H}=Ege,G=GT;let j=p1.debuglog("stream",S=>{j=S});const Q=l3r,te=Tj,{getHighWaterMark:pe,getDefaultHighWaterMark:Le}=kge,{aggregateTwoErrors:Ee,codes:{ERR_INVALID_ARG_TYPE:le,ERR_METHOD_NOT_IMPLEMENTED:xe,ERR_OUT_OF_RANGE:be,ERR_STREAM_PUSH_AFTER_EOF:ae,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:F},AbortError:me}=N0,{validateObject:ye}=OJ,we=C("kPaused"),{StringDecoder:Be}=rm,He=San;w(he.prototype,O.prototype),w(he,O);const Ue=()=>{},{errorOrDestroy:Ge}=te,Me=1,vt=2,re=4,Te=8,ct=16,at=32,Ye=64,mt=128,jt=256,rn=512,Pe=1024,Oe=2048,T=4096,$=8192,B=16384,K=32768,q=65536,ke=1<<17,Re=1<<18;function Ie(S){return{enumerable:!1,get(){return(this.state&S)!==0},set(x){x?this.state|=S:this.state&=~S}}}d(St.prototype,{objectMode:Ie(Me),ended:Ie(vt),endEmitted:Ie(re),reading:Ie(Te),constructed:Ie(ct),sync:Ie(at),needReadable:Ie(Ye),emittedReadable:Ie(mt),readableListening:Ie(jt),resumeScheduled:Ie(rn),errorEmitted:Ie(Pe),emitClose:Ie(Oe),autoDestroy:Ie(T),destroyed:Ie($),closed:Ie(B),closeEmitted:Ie(K),multiAwaitDrain:Ie(q),readingMore:Ie(ke),dataEmitted:Ie(Re)});function St(S,x,Y){typeof Y!="boolean"&&(Y=x instanceof fx()),this.state=Oe|T|ct|at,S&&S.objectMode&&(this.state|=Me),Y&&S&&S.readableObjectMode&&(this.state|=Me),this.highWaterMark=S?pe(this,S,"readableHighWaterMark",Y):Le(!1),this.buffer=new Q,this.length=0,this.pipes=[],this.flowing=null,this[we]=null,S&&S.emitClose===!1&&(this.state&=~Oe),S&&S.autoDestroy===!1&&(this.state&=~T),this.errored=null,this.defaultEncoding=S&&S.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,S&&S.encoding&&(this.decoder=new Be(S.encoding),this.encoding=S.encoding)}function he(S){if(!(this instanceof he))return new he(S);const x=this instanceof fx();this._readableState=new St(S,this,x),S&&(typeof S.read=="function"&&(this._read=S.read),typeof S.destroy=="function"&&(this._destroy=S.destroy),typeof S.construct=="function"&&(this._construct=S.construct),S.signal&&!x&&H(S.signal,this)),O.call(this,S),te.construct(this,()=>{this._readableState.needReadable&&ht(this,this._readableState)})}he.prototype.destroy=te.destroy,he.prototype._undestroy=te.undestroy,he.prototype._destroy=function(S,x){x(S)},he.prototype[R.captureRejectionSymbol]=function(S){this.destroy(S)},he.prototype[E]=function(){let S;return this.destroyed||(S=this.readableEnded?null:new me,this.destroy(S)),new v((x,Y)=>G(this,J=>J&&J!==S?Y(J):x(null)))},he.prototype.push=function(S,x){return zt(this,S,x,!1)},he.prototype.unshift=function(S,x){return zt(this,S,x,!0)};function zt(S,x,Y,J){j("readableAddChunk",x);const ue=S._readableState;let Yt;if(ue.state&Me||(typeof x=="string"?(Y=Y||ue.defaultEncoding,ue.encoding!==Y&&(J&&ue.encoding?x=L.from(x,Y).toString(ue.encoding):(x=L.from(x,Y),Y=""))):x instanceof L?Y="":O._isUint8Array(x)?(x=O._uint8ArrayToBuffer(x),Y=""):x!=null&&(Yt=new le("chunk",["string","Buffer","Uint8Array"],x))),Yt)Ge(S,Yt);else if(x===null)ue.state&=~Te,ce(S,ue);else if(ue.state&Me||x&&x.length>0)if(J)if(ue.state&re)Ge(S,new F);else{if(ue.destroyed||ue.errored)return!1;Qt(S,ue,x,!0)}else if(ue.ended)Ge(S,new ae);else{if(ue.destroyed||ue.errored)return!1;ue.state&=~Te,ue.decoder&&!Y?(x=ue.decoder.write(x),ue.objectMode||x.length!==0?Qt(S,ue,x,!1):ht(S,ue)):Qt(S,ue,x,!1)}else J||(ue.state&=~Te,ht(S,ue));return!ue.ended&&(ue.length0?(x.state&q?x.awaitDrainWriters.clear():x.awaitDrainWriters=null,x.dataEmitted=!0,S.emit("data",Y)):(x.length+=x.objectMode?1:Y.length,J?x.buffer.unshift(Y):x.buffer.push(Y),x.state&Ye&&de(S)),ht(S,x)}he.prototype.isPaused=function(){const S=this._readableState;return S[we]===!0||S.flowing===!1},he.prototype.setEncoding=function(S){const x=new Be(S);this._readableState.decoder=x,this._readableState.encoding=this._readableState.decoder.encoding;const Y=this._readableState.buffer;let J="";for(const ue of Y)J+=x.write(ue);return Y.clear(),J!==""&&Y.push(J),this._readableState.length=J.length,this};const $n=1073741824;function Gn(S){if(S>$n)throw new be("size","<= 1GiB",S);return S--,S|=S>>>1,S|=S>>>2,S|=S>>>4,S|=S>>>8,S|=S>>>16,S++,S}function $e(S,x){return S<=0||x.length===0&&x.ended?0:x.state&Me?1:l(S)?x.flowing&&x.length?x.buffer.first().length:x.length:S<=x.length?S:x.ended?x.length:0}he.prototype.read=function(S){j("read",S),S===void 0?S=NaN:o(S)||(S=u(S,10));const x=this._readableState,Y=S;if(S>x.highWaterMark&&(x.highWaterMark=Gn(S)),S!==0&&(x.state&=~mt),S===0&&x.needReadable&&((x.highWaterMark!==0?x.length>=x.highWaterMark:x.length>0)||x.ended))return j("read: emitReadable",x.length,x.ended),x.length===0&&x.ended?co(this):de(this),null;if(S=$e(S,x),S===0&&x.ended)return x.length===0&&co(this),null;let J=(x.state&Ye)!==0;if(j("need readable",J),(x.length===0||x.length-S0?ue=Al(S,x):ue=null,ue===null?(x.needReadable=x.length<=x.highWaterMark,S=0):(x.length-=S,x.multiAwaitDrain?x.awaitDrainWriters.clear():x.awaitDrainWriters=null),x.length===0&&(x.ended||(x.needReadable=!0),Y!==S&&x.ended&&co(this)),ue!==null&&!x.errorEmitted&&!x.closeEmitted&&(x.dataEmitted=!0,this.emit("data",ue)),ue};function ce(S,x){if(j("onEofChunk"),!x.ended){if(x.decoder){const Y=x.decoder.end();Y&&Y.length&&(x.buffer.push(Y),x.length+=x.objectMode?1:Y.length)}x.ended=!0,x.sync?de(S):(x.needReadable=!1,x.emittedReadable=!0,et(S))}}function de(S){const x=S._readableState;j("emitReadable",x.needReadable,x.emittedReadable),x.needReadable=!1,x.emittedReadable||(j("emitReadable",x.flowing),x.emittedReadable=!0,n.nextTick(et,S))}function et(S){const x=S._readableState;j("emitReadable_",x.destroyed,x.length,x.ended),!x.destroyed&&!x.errored&&(x.length||x.ended)&&(S.emit("readable"),x.emittedReadable=!1),x.needReadable=!x.flowing&&!x.ended&&x.length<=x.highWaterMark,xi(S)}function ht(S,x){!x.readingMore&&x.constructed&&(x.readingMore=!0,n.nextTick(Jt,S,x))}function Jt(S,x){for(;!x.reading&&!x.ended&&(x.length1&&J.pipes.includes(S)&&(j("false write response, pause",J.awaitDrainWriters.size),J.awaitDrainWriters.add(S)),Y.pause()),Fr||(Fr=Zt(Y,S),S.on("drain",Fr))}Y.on("data",ml);function ml(jr){j("ondata");const lr=S.write(jr);j("dest.write",lr),lr===!1&&Rs()}function gs(jr){if(j("onerror",jr),wi(),S.removeListener("error",gs),S.listenerCount("error")===0){const lr=S._writableState||S._readableState;lr&&!lr.errorEmitted?Ge(S,jr):S.emit("error",jr)}}M(S,"error",gs);function as(){S.removeListener("finish",ws),wi()}S.once("close",as);function ws(){j("onfinish"),S.removeListener("close",as),wi()}S.once("finish",ws);function wi(){j("unpipe"),Y.unpipe(S)}return S.emit("pipe",Y),S.writableNeedDrain===!0?Rs():J.flowing||(j("pipe resume"),Y.resume()),S};function Zt(S,x){return function(){const J=S._readableState;J.awaitDrainWriters===x?(j("pipeOnDrain",1),J.awaitDrainWriters=null):J.multiAwaitDrain&&(j("pipeOnDrain",J.awaitDrainWriters.size),J.awaitDrainWriters.delete(x)),(!J.awaitDrainWriters||J.awaitDrainWriters.size===0)&&S.listenerCount("data")&&S.resume()}}he.prototype.unpipe=function(S){const x=this._readableState,Y={hasUnpiped:!1};if(x.pipes.length===0)return this;if(!S){const ue=x.pipes;x.pipes=[],this.pause();for(let Yt=0;Yt0,J.flowing!==!1&&this.resume()):S==="readable"&&!J.endEmitted&&!J.readableListening&&(J.readableListening=J.needReadable=!0,J.flowing=!1,J.emittedReadable=!1,j("on readable",J.length,J.reading),J.length?de(this):J.reading||n.nextTick(ao,this)),Y},he.prototype.addListener=he.prototype.on,he.prototype.removeListener=function(S,x){const Y=O.prototype.removeListener.call(this,S,x);return S==="readable"&&n.nextTick(qr,this),Y},he.prototype.off=he.prototype.removeListener,he.prototype.removeAllListeners=function(S){const x=O.prototype.removeAllListeners.apply(this,arguments);return(S==="readable"||S===void 0)&&n.nextTick(qr,this),x};function qr(S){const x=S._readableState;x.readableListening=S.listenerCount("readable")>0,x.resumeScheduled&&x[we]===!1?x.flowing=!0:S.listenerCount("data")>0?S.resume():x.readableListening||(x.flowing=null)}function ao(S){j("readable nexttick read 0"),S.read(0)}he.prototype.resume=function(){const S=this._readableState;return S.flowing||(j("resume"),S.flowing=!S.readableListening,ki(this,S)),S[we]=!1,this};function ki(S,x){x.resumeScheduled||(x.resumeScheduled=!0,n.nextTick(Ri,S,x))}function Ri(S,x){j("resume",x.reading),x.reading||S.read(0),x.resumeScheduled=!1,S.emit("resume"),xi(S),x.flowing&&!x.reading&&S.read(0)}he.prototype.pause=function(){return j("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(j("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[we]=!0,this};function xi(S){const x=S._readableState;for(j("flow",x.flowing);x.flowing&&S.read()!==null;);}he.prototype.wrap=function(S){let x=!1;S.on("data",J=>{!this.push(J)&&S.pause&&(x=!0,S.pause())}),S.on("end",()=>{this.push(null)}),S.on("error",J=>{Ge(this,J)}),S.on("close",()=>{this.destroy()}),S.on("destroy",()=>{this.destroy()}),this._read=()=>{x&&S.resume&&(x=!1,S.resume())};const Y=h(S);for(let J=1;J{ue=An?Ee(ue,An):null,Y(),Y=Ue});try{for(;;){const An=S.destroyed?null:S.read();if(An!==null)yield An;else{if(ue)throw ue;if(ue===null)return;await new v(J)}}}catch(An){throw ue=Ee(ue,An),ue}finally{(ue||(x==null?void 0:x.destroyOnReturn)!==!1)&&(ue===void 0||S._readableState.autoDestroy)?te.destroyer(S,null):(S.off("readable",J),Yt())}}d(he.prototype,{readable:{__proto__:null,get(){const S=this._readableState;return!!S&&S.readable!==!1&&!S.destroyed&&!S.errorEmitted&&!S.endEmitted},set(S){this._readableState&&(this._readableState.readable=!!S)}},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(S){this._readableState&&(this._readableState.flowing=S)}},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(S){this._readableState&&(this._readableState.destroyed=S)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),d(St.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[we]!==!1},set(S){this[we]=!!S}}}),he._fromList=Al;function Al(S,x){if(x.length===0)return null;let Y;return x.objectMode?Y=x.buffer.shift():!S||S>=x.length?(x.decoder?Y=x.buffer.join(""):x.buffer.length===1?Y=x.buffer.first():Y=x.buffer.concat(x.length),x.buffer.clear()):Y=x.buffer.consume(S,x.decoder),Y}function co(S){const x=S._readableState;j("endReadable",x.endEmitted),x.endEmitted||(x.ended=!0,n.nextTick(Zc,x,S))}function Zc(S,x){if(j("endReadableNT",S.endEmitted,S.length),!S.errored&&!S.closeEmitted&&!S.endEmitted&&S.length===0){if(S.endEmitted=!0,x.emit("end"),x.writable&&x.allowHalfOpen===!1)n.nextTick(bu,x);else if(S.autoDestroy){const Y=x._writableState;(!Y||Y.autoDestroy&&(Y.finished||Y.writable===!1))&&x.destroy()}}}function bu(S){S.writable&&!S.writableEnded&&!S.destroyed&&S.end()}he.from=function(S,x){return He(he,S,x)};let So;function ql(){return So===void 0&&(So={}),So}return he.fromWeb=function(S,x){return ql().newStreamReadableFromReadableStream(S,x)},he.toWeb=function(S,x){return ql().newReadableStreamFromStreamReadable(S,x)},he.wrap=function(S,x){var Y,J;return new he({objectMode:(Y=(J=S.readableObjectMode)!==null&&J!==void 0?J:S.objectMode)!==null&&Y!==void 0?Y:!0,...x,destroy(ue,Yt){te.destroyer(S,ue),Yt(ue)}}).wrap(S)},p9e}var b9e,xzt;function AGe(){if(xzt)return b9e;xzt=1;const n=ui,{ArrayPrototypeSlice:r,Error:o,FunctionPrototypeSymbolHasInstance:l,ObjectDefineProperty:u,ObjectDefineProperties:d,ObjectSetPrototypeOf:h,StringPrototypeToLowerCase:w,Symbol:v,SymbolHasInstance:y}=Hf;b9e=ye,ye.WritableState=F;const{EventEmitter:E}=Ns,A=CGe.Stream,{Buffer:C}=Kr,R=Tj,{addAbortSignal:O}=Ege,{getHighWaterMark:M,getDefaultHighWaterMark:L}=kge,{ERR_INVALID_ARG_TYPE:H,ERR_METHOD_NOT_IMPLEMENTED:G,ERR_MULTIPLE_CALLBACK:j,ERR_STREAM_CANNOT_PIPE:Q,ERR_STREAM_DESTROYED:te,ERR_STREAM_ALREADY_FINISHED:pe,ERR_STREAM_NULL_VALUES:Le,ERR_STREAM_WRITE_AFTER_END:Ee,ERR_UNKNOWN_ENCODING:le}=N0.codes,{errorOrDestroy:xe}=R;h(ye.prototype,A.prototype),h(ye,A);function be(){}const ae=v("kOnFinished");function F(T,$,B){typeof B!="boolean"&&(B=$ instanceof fx()),this.objectMode=!!(T&&T.objectMode),B&&(this.objectMode=this.objectMode||!!(T&&T.writableObjectMode)),this.highWaterMark=T?M(this,T,"writableHighWaterMark",B):L(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const K=!!(T&&T.decodeStrings===!1);this.decodeStrings=!K,this.defaultEncoding=T&&T.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=Ge.bind(void 0,$),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,me(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[ae]=[]}function me(T){T.buffered=[],T.bufferedIndex=0,T.allBuffers=!0,T.allNoop=!0}F.prototype.getBuffer=function(){return r(this.buffered,this.bufferedIndex)},u(F.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function ye(T){const $=this instanceof fx();if(!$&&!l(ye,this))return new ye(T);this._writableState=new F(T,this,$),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&&O(T.signal,this)),A.call(this,T),R.construct(this,()=>{const B=this._writableState;B.writing||Te(this,B),mt(this,B)})}u(ye,y,{__proto__:null,value:function(T){return l(this,T)?!0:this!==ye?!1:T&&T._writableState instanceof F}}),ye.prototype.pipe=function(){xe(this,new Q)};function we(T,$,B,K){const q=T._writableState;if(typeof B=="function")K=B,B=q.defaultEncoding;else{if(!B)B=q.defaultEncoding;else if(B!=="buffer"&&!C.isEncoding(B))throw new le(B);typeof K!="function"&&(K=be)}if($===null)throw new Le;if(!q.objectMode)if(typeof $=="string")q.decodeStrings!==!1&&($=C.from($,B),B="buffer");else if($ instanceof C)B="buffer";else if(A._isUint8Array($))$=A._uint8ArrayToBuffer($),B="buffer";else throw new H("chunk",["string","Buffer","Uint8Array"],$);let ke;return q.ending?ke=new Ee:q.destroyed&&(ke=new te("write")),ke?(n.nextTick(K,ke),xe(T,ke,!0),ke):(q.pendingcb++,Be(T,q,$,B,K))}ye.prototype.write=function(T,$,B){return we(this,T,$,B)===!0},ye.prototype.cork=function(){this._writableState.corked++},ye.prototype.uncork=function(){const T=this._writableState;T.corked&&(T.corked--,T.writing||Te(this,T))},ye.prototype.setDefaultEncoding=function($){if(typeof $=="string"&&($=w($)),!C.isEncoding($))throw new le($);return this._writableState.defaultEncoding=$,this};function Be(T,$,B,K,q){const ke=$.objectMode?1:B.length;$.length+=ke;const Re=$.length<$.highWaterMark;return Re||($.needDrain=!0),$.writing||$.corked||$.errored||!$.constructed?($.buffered.push({chunk:B,encoding:K,callback:q}),$.allBuffers&&K!=="buffer"&&($.allBuffers=!1),$.allNoop&&q!==be&&($.allNoop=!1)):($.writelen=ke,$.writecb=q,$.writing=!0,$.sync=!0,T._write(B,K,$.onwrite),$.sync=!1),Re&&!$.errored&&!$.destroyed}function He(T,$,B,K,q,ke,Re){$.writelen=K,$.writecb=Re,$.writing=!0,$.sync=!0,$.destroyed?$.onwrite(new te("write")):B?T._writev(q,$.onwrite):T._write(q,ke,$.onwrite),$.sync=!1}function Ue(T,$,B,K){--$.pendingcb,K(B),re($),xe(T,B)}function Ge(T,$){const B=T._writableState,K=B.sync,q=B.writecb;if(typeof q!="function"){xe(T,new j);return}B.writing=!1,B.writecb=null,B.length-=B.writelen,B.writelen=0,$?($.stack,B.errored||(B.errored=$),T._readableState&&!T._readableState.errored&&(T._readableState.errored=$),K?n.nextTick(Ue,T,B,$,q):Ue(T,B,$,q)):(B.buffered.length>B.bufferedIndex&&Te(T,B),K?B.afterWriteTickInfo!==null&&B.afterWriteTickInfo.cb===q?B.afterWriteTickInfo.count++:(B.afterWriteTickInfo={count:1,cb:q,stream:T,state:B},n.nextTick(Me,B.afterWriteTickInfo)):vt(T,B,1,q))}function Me({stream:T,state:$,count:B,cb:K}){return $.afterWriteTickInfo=null,vt(T,$,B,K)}function vt(T,$,B,K){for(!$.ending&&!T.destroyed&&$.length===0&&$.needDrain&&($.needDrain=!1,T.emit("drain"));B-- >0;)$.pendingcb--,K();$.destroyed&&re($),mt(T,$)}function re(T){if(T.writing)return;for(let q=T.bufferedIndex;q1&&T._writev){$.pendingcb-=ke-1;const Ie=$.allNoop?be:he=>{for(let zt=Re;zt256?(B.splice(0,Re),$.bufferedIndex=0):$.bufferedIndex=Re}$.bufferProcessing=!1}ye.prototype._write=function(T,$,B){if(this._writev)this._writev([{chunk:T,encoding:$}],B);else throw new G("_write()")},ye.prototype._writev=null,ye.prototype.end=function(T,$,B){const K=this._writableState;typeof T=="function"?(B=T,T=null,$=null):typeof $=="function"&&(B=$,$=null);let q;if(T!=null){const ke=we(this,T,$);ke instanceof o&&(q=ke)}return K.corked&&(K.corked=1,this.uncork()),q||(!K.errored&&!K.ending?(K.ending=!0,mt(this,K,!0),K.ended=!0):K.finished?q=new pe("end"):K.destroyed&&(q=new te("end"))),typeof B=="function"&&(q||K.finished?n.nextTick(B,q):K[ae].push(B)),this};function ct(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 at(T,$){let B=!1;function K(q){if(B){xe(T,q??j());return}if(B=!0,$.pendingcb--,q){const ke=$[ae].splice(0);for(let Re=0;Re{ct(q)?jt(K,q):q.pendingcb--},T,$)):ct($)&&($.pendingcb++,jt(T,$))))}function jt(T,$){$.pendingcb--,$.finished=!0;const B=$[ae].splice(0);for(let K=0;K{if(re!=null)throw new O("nully","body",re)},re=>{M(Me,re)});return Me=new le({objectMode:!0,readable:!1,write:Be,final(re){He(async()=>{try{await vt,n.nextTick(re,null)}catch(Te){n.nextTick(re,Te)}})},destroy:Ue})}throw new O("Iterable, AsyncIterable or AsyncFunction",me,we)}if(pe(F))return ae(F.arrayBuffer());if(u(F))return Q(le,F,{objectMode:!0,writable:!1});if(y(F==null?void 0:F.readable)&&E(F==null?void 0:F.writable))return le.fromWeb(F);if(typeof(F==null?void 0:F.writable)=="object"||typeof(F==null?void 0:F.readable)=="object"){const we=F!=null&&F.readable?h(F==null?void 0:F.readable)?F==null?void 0:F.readable:ae(F.readable):void 0,Be=F!=null&&F.writable?w(F==null?void 0:F.writable)?F==null?void 0:F.writable:ae(F.writable):void 0;return be({readable:we,writable:Be})}const ye=F==null?void 0:F.then;if(typeof ye=="function"){let we;return Ee(ye,F,Be=>{Be!=null&&we.push(Be),we.push(null)},Be=>{M(we,Be)}),we=new le({objectMode:!0,writable:!1,read(){}})}throw new R(me,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],F)};function xe(ae){let{promise:F,resolve:me}=j();const ye=new Le,we=ye.signal;return{value:ae(async function*(){for(;;){const He=F;F=null;const{chunk:Ue,done:Ge,cb:Me}=await He;if(n.nextTick(Me),Ge)return;if(we.aborted)throw new C(void 0,{cause:we.reason});({promise:F,resolve:me}=j()),yield Ue}}(),{signal:we}),write(He,Ue,Ge){const Me=me;me=null,Me({chunk:He,done:!1,cb:Ge})},final(He){const Ue=me;me=null,Ue({done:!0,cb:He})},destroy(He,Ue){ye.abort(),Ue(He)}}}function be(ae){const F=ae.readable&&typeof ae.readable.read!="function"?H.wrap(ae.readable):ae.readable,me=ae.writable;let ye=!!o(F),we=!!l(me),Be,He,Ue,Ge,Me;function vt(re){const Te=Ge;Ge=null,Te?Te(re):re&&Me.destroy(re)}return Me=new le({readableObjectMode:!!(F!=null&&F.readableObjectMode),writableObjectMode:!!(me!=null&&me.writableObjectMode),readable:ye,writable:we}),we&&(A(me,re=>{we=!1,re&&M(F,re),vt(re)}),Me._write=function(re,Te,ct){me.write(re,Te)?ct():Be=ct},Me._final=function(re){me.end(),He=re},me.on("drain",function(){if(Be){const re=Be;Be=null,re()}}),me.on("finish",function(){if(He){const re=He;He=null,re()}})),ye&&(A(F,re=>{ye=!1,re&&M(F,re),vt(re)}),F.on("readable",function(){if(Ue){const re=Ue;Ue=null,re()}}),F.on("end",function(){Me.push(null)}),Me._read=function(){for(;;){const re=F.read();if(re===null){Ue=Me._read;return}if(!Me.push(re))return}}),Me._destroy=function(re,Te){!re&&Ge!==null&&(re=new C),Ue=null,Be=null,He=null,Ge===null?Te(re):(Ge=Te,M(me,re),M(F,re))},Me}return g9e}var w9e,Azt;function fx(){if(Azt)return w9e;Azt=1;const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:o,ObjectSetPrototypeOf:l}=Hf;w9e=h;const u=Rge(),d=AGe();l(h.prototype,u.prototype),l(h,u);{const E=o(d.prototype);for(let A=0;A{if(r){n?n(r):this.destroy(r);return}o!=null&&this.push(o),this.push(null),n&&n()}):(this.push(null),n&&n())}function k3r(){this._final!==KFe&&KFe.call(this)}dx.prototype._final=KFe;dx.prototype._transform=function(n,r,o){throw new S3r("_transform()")};dx.prototype._write=function(n,r,o){const l=this._readableState,u=this._writableState,d=l.length;this._transform(n,r,(h,w)=>{if(h){o(h);return}w!=null&&this.push(w),u.ended||d===l.length||l.length{l=!0});const u=whe(n,{readable:r,writable:o},d=>{l=!d});return{destroy:d=>{l||(l=!0,$3r.destroyer(n,d||new O3r("pipe")))},cleanup:u}}function W3r(n){return D3r(n[n.length-1],"streams[stream.length - 1]"),n.pop()}function k9e(n){if(I8(n))return n;if(ide(n))return H3r(n);throw new qFe("val",["Readable","Iterable","AsyncIterable"],n)}async function*H3r(n){S9e||(S9e=Rge()),yield*S9e.prototype[C3r].call(n)}async function Wue(n,r,o,{end:l}){let u,d=null;const h=y=>{if(y&&(u=y),d){const E=d;d=null,E()}},w=()=>new x3r((y,E)=>{u?E(u):d=()=>{u?E(u):y()}});r.on("drain",h);const v=whe(r,{readable:!1},h);try{r.writableNeedDrain&&await w();for await(const y of n)r.write(y)||await w();l&&(r.end(),await w()),o()}catch(y){o(u!==y?I3r(u,y):y)}finally{v(),r.off("drain",h)}}async function R9e(n,r,o,{end:l}){$D(r)&&(r=r.writable);const u=r.getWriter();try{for await(const d of n)await u.ready,u.write(d).catch(()=>{});await u.ready,l&&await u.close(),o()}catch(d){try{await u.abort(d),o(d)}catch(h){o(h)}}}function U3r(...n){return Can(n,T3r(W3r(n)))}function Can(n,r,o){if(n.length===1&&R3r(n[0])&&(n=n[0]),n.length<2)throw new P3r("streams");const l=new B3r,u=l.signal,d=o==null?void 0:o.signal,h=[];L3r(d,"options.signal");function w(){O(new M3r)}E9e=E9e||p1.addAbortListener;let v;d&&(v=E9e(d,w));let y,E;const A=[];let C=0;function R(G){O(G,--C===0)}function O(G,j){var Q;if(G&&(!y||y.code==="ERR_STREAM_PREMATURE_CLOSE")&&(y=G),!(!y&&!j)){for(;A.length;)A.shift()(y);(Q=v)===null||Q===void 0||Q[A3r](),l.abort(),j&&(y||h.forEach(te=>te()),LK.nextTick(r,y,E))}}let M;for(let G=0;G0,pe=Q||(o==null?void 0:o.end)!==!1,Le=G===n.length-1;if($zt(j)){let Ee=function(le){le&&le.name!=="AbortError"&&le.code!=="ERR_STREAM_PREMATURE_CLOSE"&&R(le)};if(pe){const{destroy:le,cleanup:xe}=Izt(j,Q,te);A.push(le),y9e(j)&&Le&&h.push(xe)}j.on("error",Ee),y9e(j)&&Le&&h.push(()=>{j.removeListener("error",Ee)})}if(G===0)if(typeof j=="function"){if(M=j({signal:u}),!I8(M))throw new m9e("Iterable, AsyncIterable or Stream","source",M)}else I8(j)||ide(j)||$D(j)?M=j:M=Tzt.from(j);else if(typeof j=="function"){if($D(M)){var L;M=k9e((L=M)===null||L===void 0?void 0:L.readable)}else M=k9e(M);if(M=j(M,{signal:u}),Q){if(!I8(M,!0))throw new m9e("AsyncIterable",`transform[${G-1}]`,M)}else{var H;_9e||(_9e=xan);const Ee=new _9e({objectMode:!0}),le=(H=M)===null||H===void 0?void 0:H.then;if(typeof le=="function")C++,le.call(M,ae=>{E=ae,ae!=null&&Ee.write(ae),pe&&Ee.end(),LK.nextTick(R)},ae=>{Ee.destroy(ae),LK.nextTick(R,ae)});else if(I8(M,!0))C++,Wue(M,Ee,R,{end:pe});else if(v9e(M)||$D(M)){const ae=M.readable||M;C++,Wue(ae,Ee,R,{end:pe})}else throw new m9e("AsyncIterable or Promise","destination",M);M=Ee;const{destroy:xe,cleanup:be}=Izt(M,!1,!0);A.push(xe),Le&&h.push(be)}}else if($zt(j)){if(ide(M)){C+=2;const Ee=G3r(M,j,R,{end:pe});y9e(j)&&Le&&h.push(Ee)}else if($D(M)||v9e(M)){const Ee=M.readable||M;C++,Wue(Ee,j,R,{end:pe})}else if(I8(M))C++,Wue(M,j,R,{end:pe});else throw new qFe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else if(j3r(j)){if(ide(M))C++,R9e(k9e(M),j,R,{end:pe});else if(v9e(M)||I8(M))C++,R9e(M,j,R,{end:pe});else if($D(M))C++,R9e(M.readable,j,R,{end:pe});else throw new qFe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else M=Tzt.from(j)}return(u!=null&&u.aborted||d!=null&&d.aborted)&&LK.nextTick(w),M}function G3r(n,r,o,{end:l}){let u=!1;if(r.on("close",()=>{u||o(new N3r)}),n.pipe(r,{end:!1}),l){let d=function(){u=!0,r.end()};F3r(n)?LK.nextTick(d):n.once("end",d)}else o();return whe(n,{readable:!0,writable:!1},d=>{const h=n._readableState;d&&d.code==="ERR_STREAM_PREMATURE_CLOSE"&&h&&h.ended&&!h.errored&&!h.errorEmitted?n.once("end",o).once("error",o):o(d)}),whe(r,{readable:!1,writable:!0},o)}var IGe={pipelineImpl:Can,pipeline:U3r};const{pipeline:V3r}=IGe,Hue=fx(),{destroyer:z3r}=Tj,{isNodeStream:Uue,isReadable:Pzt,isWritable:Ozt,isWebStream:x9e,isTransformStream:f8,isWritableStream:Nzt,isReadableStream:Mzt}=Ix,{AbortError:K3r,codes:{ERR_INVALID_ARG_VALUE:Dzt,ERR_MISSING_ARGS:q3r}}=N0,X3r=GT;var Aan=function(...r){if(r.length===0)throw new q3r("streams");if(r.length===1)return Hue.from(r[0]);const o=[...r];if(typeof r[0]=="function"&&(r[0]=Hue.from(r[0])),typeof r[r.length-1]=="function"){const R=r.length-1;r[R]=Hue.from(r[R])}for(let R=0;R0&&!(Ozt(r[R])||Nzt(r[R])||f8(r[R])))throw new Dzt(`streams[${R}]`,o[R],"must be writable")}let l,u,d,h,w;function v(R){const O=h;h=null,O?O(R):R?w.destroy(R):!C&&!A&&w.destroy()}const y=r[0],E=V3r(r,v),A=!!(Ozt(y)||Nzt(y)||f8(y)),C=!!(Pzt(E)||Mzt(E)||f8(E));if(w=new Hue({writableObjectMode:!!(y!=null&&y.writableObjectMode),readableObjectMode:!!(E!=null&&E.readableObjectMode),writable:A,readable:C}),A){if(Uue(y))w._write=function(O,M,L){y.write(O,M)?L():l=L},w._final=function(O){y.end(),u=O},y.on("drain",function(){if(l){const O=l;l=null,O()}});else if(x9e(y)){const M=(f8(y)?y.writable:y).getWriter();w._write=async function(L,H,G){try{await M.ready,M.write(L).catch(()=>{}),G()}catch(j){G(j)}},w._final=async function(L){try{await M.ready,M.close().catch(()=>{}),u=L}catch(H){L(H)}}}const R=f8(E)?E.readable:E;X3r(R,()=>{if(u){const O=u;u=null,O()}})}if(C){if(Uue(E))E.on("readable",function(){if(d){const R=d;d=null,R()}}),E.on("end",function(){w.push(null)}),w._read=function(){for(;;){const R=E.read();if(R===null){d=w._read;return}if(!w.push(R))return}};else if(x9e(E)){const O=(f8(E)?E.readable:E).getReader();w._read=async function(){for(;;)try{const{value:M,done:L}=await O.read();if(!w.push(M))return;if(L){w.push(null);return}}catch{return}}}}return w._destroy=function(R,O){!R&&h!==null&&(R=new K3r),d=null,l=null,u=null,h===null?O(R):(h=O,Uue(E)&&z3r(E,R))},w};const J3r=globalThis.AbortController||$o().AbortController,{codes:{ERR_INVALID_ARG_VALUE:Y3r,ERR_INVALID_ARG_TYPE:NJ,ERR_MISSING_ARGS:Q3r,ERR_OUT_OF_RANGE:Z3r},AbortError:fk}=N0,{validateAbortSignal:gO,validateInteger:Lzt,validateObject:wO}=OJ,eRr=Hf.Symbol("kWeak"),tRr=Hf.Symbol("kResistStopPropagation"),{finished:nRr}=GT,rRr=Aan,{addAbortSignalNoValidate:iRr}=Ege,{isWritable:oRr,isNodeStream:sRr}=Ix,{deprecate:lRr}=p1,{ArrayPrototypePush:aRr,Boolean:cRr,MathFloor:jzt,Number:uRr,NumberIsNaN:fRr,Promise:Fzt,PromiseReject:Bzt,PromiseResolve:dRr,PromisePrototypeThen:Wzt,Symbol:Tan}=Hf,mhe=Tan("kEmpty"),Hzt=Tan("kEof");function hRr(n,r){if(r!=null&&wO(r,"options"),(r==null?void 0:r.signal)!=null&&gO(r.signal,"options.signal"),sRr(n)&&!oRr(n))throw new Y3r("stream",n,"must be writable");const o=rRr(this,n);return r!=null&&r.signal&&iRr(r.signal,o),o}function xge(n,r){if(typeof n!="function")throw new NJ("fn",["Function","AsyncFunction"],n);r!=null&&wO(r,"options"),(r==null?void 0:r.signal)!=null&&gO(r.signal,"options.signal");let o=1;(r==null?void 0:r.concurrency)!=null&&(o=jzt(r.concurrency));let l=o-1;return(r==null?void 0:r.highWaterMark)!=null&&(l=jzt(r.highWaterMark)),Lzt(o,"options.concurrency",1),Lzt(l,"options.highWaterMark",0),l+=o,(async function*(){const d=p1.AbortSignalAny([r==null?void 0:r.signal].filter(cRr)),h=this,w=[],v={signal:d};let y,E,A=!1,C=0;function R(){A=!0,O()}function O(){C-=1,M()}function M(){E&&!A&&C=l||C>=o)&&await new Fzt(G=>{E=G})}w.push(Hzt)}catch(H){const G=Bzt(H);Wzt(G,O,R),w.push(G)}finally{A=!0,y&&(y(),y=null)}}L();try{for(;;){for(;w.length>0;){const H=await w[0];if(H===Hzt)return;if(d.aborted)throw new fk;H!==mhe&&(yield H),w.shift(),M()}await new Fzt(H=>{y=H})}}finally{A=!0,E&&(E(),E=null)}}).call(this)}function pRr(n=void 0){return n!=null&&wO(n,"options"),(n==null?void 0:n.signal)!=null&&gO(n.signal,"options.signal"),(async function*(){let o=0;for await(const u of this){var l;if(n!=null&&(l=n.signal)!==null&&l!==void 0&&l.aborted)throw new fk({cause:n.signal.reason});yield[o++,u]}}).call(this)}async function $an(n,r=void 0){for await(const o of PGe.call(this,n,r))return!0;return!1}async function bRr(n,r=void 0){if(typeof n!="function")throw new NJ("fn",["Function","AsyncFunction"],n);return!await $an.call(this,async(...o)=>!await n(...o),r)}async function gRr(n,r){for await(const o of PGe.call(this,n,r))return o}async function wRr(n,r){if(typeof n!="function")throw new NJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u),mhe}for await(const l of xge.call(this,o,r));}function PGe(n,r){if(typeof n!="function")throw new NJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u)?l:mhe}return xge.call(this,o,r)}let mRr=class extends Q3r{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function yRr(n,r,o){var l;if(typeof n!="function")throw new NJ("reducer",["Function","AsyncFunction"],n);o!=null&&wO(o,"options"),(o==null?void 0:o.signal)!=null&&gO(o.signal,"options.signal");let u=arguments.length>1;if(o!=null&&(l=o.signal)!==null&&l!==void 0&&l.aborted){const y=new fk(void 0,{cause:o.signal.reason});throw this.once("error",()=>{}),await nRr(this.destroy(y)),y}const d=new J3r,h=d.signal;if(o!=null&&o.signal){const y={once:!0,[eRr]:this,[tRr]:!0};o.signal.addEventListener("abort",()=>d.abort(),y)}let w=!1;try{for await(const y of this){var v;if(w=!0,o!=null&&(v=o.signal)!==null&&v!==void 0&&v.aborted)throw new fk;u?r=await n(r,y,{signal:h}):(r=y,u=!0)}if(!w&&!u)throw new mRr}finally{d.abort()}return r}async function vRr(n){n!=null&&wO(n,"options"),(n==null?void 0:n.signal)!=null&&gO(n.signal,"options.signal");const r=[];for await(const l of this){var o;if(n!=null&&(o=n.signal)!==null&&o!==void 0&&o.aborted)throw new fk(void 0,{cause:n.signal.reason});aRr(r,l)}return r}function _Rr(n,r){const o=xge.call(this,n,r);return(async function*(){for await(const u of o)yield*u}).call(this)}function Ian(n){if(n=uRr(n),fRr(n))return 0;if(n<0)throw new Z3r("number",">= 0",n);return n}function SRr(n,r=void 0){return r!=null&&wO(r,"options"),(r==null?void 0:r.signal)!=null&&gO(r.signal,"options.signal"),n=Ian(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new fk;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new fk;n--<=0&&(yield d)}}).call(this)}function ERr(n,r=void 0){return r!=null&&wO(r,"options"),(r==null?void 0:r.signal)!=null&&gO(r.signal,"options.signal"),n=Ian(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new fk;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new fk;if(n-- >0&&(yield d),n<=0)return}}).call(this)}SGe.streamReturningOperators={asIndexedPairs:lRr(pRr,"readable.asIndexedPairs will be removed in a future version."),drop:SRr,filter:PGe,flatMap:_Rr,map:xge,take:ERr,compose:hRr};SGe.promiseReturningOperators={every:bRr,forEach:wRr,reduce:yRr,toArray:vRr,some:$an,find:gRr};var C9e,Uzt;function Pan(){if(Uzt)return C9e;Uzt=1;const{ArrayPrototypePop:n,Promise:r}=Hf,{isIterable:o,isNodeStream:l,isWebStream:u}=Ix,{pipelineImpl:d}=IGe,{finished:h}=GT;Oan();function w(...v){return new r((y,E)=>{let A,C;const R=v[v.length-1];if(R&&typeof R=="object"&&!l(R)&&!o(R)&&!u(R)){const O=n(v);A=O.signal,C=O.end}d(v,(O,M)=>{O?E(O):y(M)},{signal:A,end:C})})}return C9e={finished:h,pipeline:w},C9e}var Gzt;function Oan(){if(Gzt)return u9e.exports;Gzt=1;const{Buffer:n}=Kr,{ObjectDefineProperty:r,ObjectKeys:o,ReflectApply:l}=Hf,{promisify:{custom:u}}=p1,{streamReturningOperators:d,promiseReturningOperators:h}=SGe,{codes:{ERR_ILLEGAL_CONSTRUCTOR:w}}=N0,v=Aan,{setDefaultHighWaterMark:y,getDefaultHighWaterMark:E}=kge,{pipeline:A}=IGe,{destroyer:C}=Tj,R=GT,O=Pan(),M=Ix,L=u9e.exports=CGe.Stream;L.isDestroyed=M.isDestroyed,L.isDisturbed=M.isDisturbed,L.isErrored=M.isErrored,L.isReadable=M.isReadable,L.isWritable=M.isWritable,L.Readable=Rge();for(const G of o(d)){let Q=function(...te){if(new.target)throw w();return L.Readable.from(l(j,this,te))};const j=d[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}for(const G of o(h)){let Q=function(...te){if(new.target)throw w();return l(j,this,te)};const j=h[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}L.Writable=AGe(),L.Duplex=fx(),L.Transform=kan,L.PassThrough=xan,L.pipeline=A;const{addAbortSignal:H}=Ege;return L.addAbortSignal=H,L.finished=R,L.destroy=C,L.compose=v,L.setDefaultHighWaterMark=y,L.getDefaultHighWaterMark=E,r(L,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return O}}),r(A,u,{__proto__:null,enumerable:!0,get(){return O.pipeline}}),r(R,u,{__proto__:null,enumerable:!0,get(){return O.finished}}),L.Stream=L,L._isUint8Array=function(j){return j instanceof Uint8Array},L._uint8ArrayToBuffer=function(j){return n.from(j.buffer,j.byteOffset,j.byteLength)},u9e.exports}(function(n){const r=Oan(),o=Pan(),l=r.Readable.destroy;n.exports=r.Readable,n.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer,n.exports._isUint8Array=r._isUint8Array,n.exports.isDisturbed=r.isDisturbed,n.exports.isErrored=r.isErrored,n.exports.isReadable=r.isReadable,n.exports.Readable=r.Readable,n.exports.Writable=r.Writable,n.exports.Duplex=r.Duplex,n.exports.Transform=r.Transform,n.exports.PassThrough=r.PassThrough,n.exports.addAbortSignal=r.addAbortSignal,n.exports.finished=r.finished,n.exports.destroy=r.destroy,n.exports.destroy=l,n.exports.pipeline=r.pipeline,n.exports.compose=r.compose,Object.defineProperty(r,"promises",{configurable:!0,enumerable:!0,get(){return o}}),n.exports.Stream=r.Stream,n.exports.default=n.exports})(gEr);Kn("http://www.w3.org/1999/02/22-rdf-syntax-ns#");Kn("http://www.w3.org/1999/02/22-rdf-syntax-ns#");Kn("http://www.w3.org/2001/XMLSchema#");var Nan={exports:{}},A9e={exports:{}},Uf={ArrayIsArray(n){return Array.isArray(n)},ArrayPrototypeIncludes(n,r){return n.includes(r)},ArrayPrototypeIndexOf(n,r){return n.indexOf(r)},ArrayPrototypeJoin(n,r){return n.join(r)},ArrayPrototypeMap(n,r){return n.map(r)},ArrayPrototypePop(n,r){return n.pop(r)},ArrayPrototypePush(n,r){return n.push(r)},ArrayPrototypeSlice(n,r,o){return n.slice(r,o)},Error,FunctionPrototypeCall(n,r,...o){return n.call(r,...o)},FunctionPrototypeSymbolHasInstance(n,r){return Function.prototype[Symbol.hasInstance].call(n,r)},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(n,r){return Object.defineProperties(n,r)},ObjectDefineProperty(n,r,o){return Object.defineProperty(n,r,o)},ObjectGetOwnPropertyDescriptor(n,r){return Object.getOwnPropertyDescriptor(n,r)},ObjectKeys(n){return Object.keys(n)},ObjectSetPrototypeOf(n,r){return Object.setPrototypeOf(n,r)},Promise,PromisePrototypeCatch(n,r){return n.catch(r)},PromisePrototypeThen(n,r,o){return n.then(r,o)},PromiseReject(n){return Promise.reject(n)},PromiseResolve(n){return Promise.resolve(n)},ReflectApply:Reflect.apply,RegExpPrototypeTest(n,r){return n.test(r)},SafeSet:Set,String,StringPrototypeSlice(n,r,o){return n.slice(r,o)},StringPrototypeToLowerCase(n){return n.toLowerCase()},StringPrototypeToUpperCase(n){return n.toUpperCase()},StringPrototypeTrim(n){return n.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(n,r,o){return n.set(r,o)},Boolean,Uint8Array},Man={exports:{}};(function(n){const r=Kr,{kResistStopPropagation:o,SymbolDispose:l}=Uf,u=globalThis.AbortSignal||$o().AbortSignal,d=globalThis.AbortController||$o().AbortController,h=Object.getPrototypeOf(async function(){}).constructor,w=globalThis.Blob||r.Blob,v=typeof w<"u"?function(R){return R instanceof w}:function(R){return!1},y=(C,R)=>{if(C!==void 0&&(C===null||typeof C!="object"||!("aborted"in C)))throw new ERR_INVALID_ARG_TYPE(R,"AbortSignal",C)},E=(C,R)=>{if(typeof C!="function")throw new ERR_INVALID_ARG_TYPE(R,"Function",C)};class A extends Error{constructor(R){if(!Array.isArray(R))throw new TypeError(`Expected input to be an Array, got ${typeof R}`);let O="";for(let M=0;M{C=M,R=L}),resolve:C,reject:R}},promisify(C){return new Promise((R,O)=>{C((M,...L)=>M?O(M):R(...L))})},debuglog(){return function(){}},format(C,...R){return C.replace(/%([sdifj])/g,function(...[O,M]){const L=R.shift();return M==="f"?L.toFixed(6):M==="j"?JSON.stringify(L):M==="s"&&typeof L=="object"?`${L.constructor!==Object?L.constructor.name:""} {}`.trim():L.toString()})},inspect(C){switch(typeof C){case"string":if(C.includes("'"))if(C.includes('"')){if(!C.includes("`")&&!C.includes("${"))return`\`${C}\``}else return`"${C}"`;return`'${C}'`;case"number":return isNaN(C)?"NaN":Object.is(C,-0)?String(C):C;case"bigint":return`${String(C)}n`;case"boolean":case"undefined":return String(C);case"object":return"{}"}},types:{isAsyncFunction(C){return C instanceof h},isArrayBufferView(C){return ArrayBuffer.isView(C)}},isBlob:v,deprecate(C,R){return C},addAbortListener:Ns.addAbortListener||function(R,O){if(R===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",R);y(R,"signal"),E(O,"listener");let M;return R.aborted?queueMicrotask(()=>O()):(R.addEventListener("abort",O,{__proto__:null,once:!0,[o]:!0}),M=()=>{R.removeEventListener("abort",O)}),{__proto__:null,[l](){var L;(L=M)===null||L===void 0||L()}}},AbortSignalAny:u.any||function(R){if(R.length===1)return R[0];const O=new d,M=()=>O.abort();return R.forEach(L=>{y(L,"signals"),L.addEventListener("abort",M,{once:!0})}),O.signal.addEventListener("abort",()=>{R.forEach(L=>L.removeEventListener("abort",M))},{once:!0}),O.signal}},n.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(Man);var b1=Man.exports,OGe={};const{format:kRr,inspect:yhe,AggregateError:RRr}=b1,xRr=globalThis.AggregateError||RRr,CRr=Symbol("kIsNodeError"),ARr=["string","function","number","object","Function","Object","boolean","bigint","symbol"],TRr=/^([A-Z][a-z0-9]*)+$/,$Rr="__node_internal_",Cge={};function fP(n,r){if(!n)throw new Cge.ERR_INTERNAL_ASSERTION(r)}function Vzt(n){let r="",o=n.length;const l=n[0]==="-"?1:0;for(;o>=l+4;o-=3)r=`_${n.slice(o-3,o)}${r}`;return`${n.slice(0,o)}${r}`}function IRr(n,r,o){if(typeof r=="function")return fP(r.length<=o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${r.length}).`),r(...o);const l=(r.match(/%[dfijoOs]/g)||[]).length;return fP(l===o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${l}).`),o.length===0?r:kRr(r,...o)}function nb(n,r,o){o||(o=Error);class l extends o{constructor(...d){super(IRr(n,r,d))}toString(){return`${this.name} [${n}]: ${this.message}`}}Object.defineProperties(l.prototype,{name:{value:o.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${n}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),l.prototype.code=n,l.prototype[CRr]=!0,Cge[n]=l}function zzt(n){const r=$Rr+n.name;return Object.defineProperty(n,"name",{value:r}),n}function PRr(n,r){if(n&&r&&n!==r){if(Array.isArray(r.errors))return r.errors.push(n),r;const o=new xRr([r,n],r.message);return o.code=r.code,o}return n||r}let ORr=class extends Error{constructor(r="The operation was aborted",o=void 0){if(o!==void 0&&typeof o!="object")throw new Cge.ERR_INVALID_ARG_TYPE("options","Object",o);super(r,o),this.code="ABORT_ERR",this.name="AbortError"}};nb("ERR_ASSERTION","%s",Error);nb("ERR_INVALID_ARG_TYPE",(n,r,o)=>{fP(typeof n=="string","'name' must be a string"),Array.isArray(r)||(r=[r]);let l="The ";n.endsWith(" argument")?l+=`${n} `:l+=`"${n}" ${n.includes(".")?"property":"argument"} `,l+="must be ";const u=[],d=[],h=[];for(const v of r)fP(typeof v=="string","All expected entries have to be of type string"),ARr.includes(v)?u.push(v.toLowerCase()):TRr.test(v)?d.push(v):(fP(v!=="object",'The value "object" should be written as "Object"'),h.push(v));if(d.length>0){const v=u.indexOf("object");v!==-1&&(u.splice(u,v,1),d.push("Object"))}if(u.length>0){switch(u.length){case 1:l+=`of type ${u[0]}`;break;case 2:l+=`one of type ${u[0]} or ${u[1]}`;break;default:{const v=u.pop();l+=`one of type ${u.join(", ")}, or ${v}`}}(d.length>0||h.length>0)&&(l+=" or ")}if(d.length>0){switch(d.length){case 1:l+=`an instance of ${d[0]}`;break;case 2:l+=`an instance of ${d[0]} or ${d[1]}`;break;default:{const v=d.pop();l+=`an instance of ${d.join(", ")}, or ${v}`}}h.length>0&&(l+=" or ")}switch(h.length){case 0:break;case 1:h[0].toLowerCase()!==h[0]&&(l+="an "),l+=`${h[0]}`;break;case 2:l+=`one of ${h[0]} or ${h[1]}`;break;default:{const v=h.pop();l+=`one of ${h.join(", ")}, or ${v}`}}if(o==null)l+=`. Received ${o}`;else if(typeof o=="function"&&o.name)l+=`. Received function ${o.name}`;else if(typeof o=="object"){var w;if((w=o.constructor)!==null&&w!==void 0&&w.name)l+=`. Received an instance of ${o.constructor.name}`;else{const v=yhe(o,{depth:-1});l+=`. Received ${v}`}}else{let v=yhe(o,{colors:!1});v.length>25&&(v=`${v.slice(0,25)}...`),l+=`. Received type ${typeof o} (${v})`}return l},TypeError);nb("ERR_INVALID_ARG_VALUE",(n,r,o="is invalid")=>{let l=yhe(r);return l.length>128&&(l=l.slice(0,128)+"..."),`The ${n.includes(".")?"property":"argument"} '${n}' ${o}. Received ${l}`},TypeError);nb("ERR_INVALID_RETURN_VALUE",(n,r,o)=>{var l;const u=o!=null&&(l=o.constructor)!==null&&l!==void 0&&l.name?`instance of ${o.constructor.name}`:`type ${typeof o}`;return`Expected ${n} to be returned from the "${r}" function but got ${u}.`},TypeError);nb("ERR_MISSING_ARGS",(...n)=>{fP(n.length>0,"At least one arg needs to be specified");let r;const o=n.length;switch(n=(Array.isArray(n)?n:[n]).map(l=>`"${l}"`).join(" or "),o){case 1:r+=`The ${n[0]} argument`;break;case 2:r+=`The ${n[0]} and ${n[1]} arguments`;break;default:{const l=n.pop();r+=`The ${n.join(", ")}, and ${l} arguments`}break}return`${r} must be specified`},TypeError);nb("ERR_OUT_OF_RANGE",(n,r,o)=>{fP(r,'Missing "range" argument');let l;return Number.isInteger(o)&&Math.abs(o)>2**32?l=Vzt(String(o)):typeof o=="bigint"?(l=String(o),(o>2n**32n||o<-(2n**32n))&&(l=Vzt(l)),l+="n"):l=yhe(o),`The value of "${n}" is out of range. It must be ${r}. Received ${l}`},RangeError);nb("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);nb("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);nb("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);nb("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);nb("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);nb("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);nb("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);nb("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);nb("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);nb("ERR_STREAM_WRITE_AFTER_END","write after end",Error);nb("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var M0={AbortError:ORr,aggregateTwoErrors:zzt(PRr),hideStackFrames:zzt,codes:Cge};const{ArrayIsArray:NGe,ArrayPrototypeIncludes:Dan,ArrayPrototypeJoin:Lan,ArrayPrototypeMap:NRr,NumberIsInteger:MGe,NumberIsNaN:MRr,NumberMAX_SAFE_INTEGER:DRr,NumberMIN_SAFE_INTEGER:LRr,NumberParseInt:jRr,ObjectPrototypeHasOwnProperty:FRr,RegExpPrototypeExec:jan,String:BRr,StringPrototypeToUpperCase:WRr,StringPrototypeTrim:HRr}=Uf,{hideStackFrames:vv,codes:{ERR_SOCKET_BAD_PORT:URr,ERR_INVALID_ARG_TYPE:Zb,ERR_INVALID_ARG_VALUE:$j,ERR_OUT_OF_RANGE:OP,ERR_UNKNOWN_SIGNAL:Kzt}}=M0,{normalizeEncoding:GRr}=b1,{isAsyncFunction:VRr,isArrayBufferView:zRr}=b1.types,qzt={};function KRr(n){return n===(n|0)}function qRr(n){return n===n>>>0}const XRr=/^[0-7]+$/,JRr="must be a 32-bit unsigned integer or an octal string";function YRr(n,r,o){if(typeof n>"u"&&(n=o),typeof n=="string"){if(jan(XRr,n)===null)throw new $j(r,n,JRr);n=jRr(n,8)}return Fan(n,r),n}const QRr=vv((n,r,o=LRr,l=DRr)=>{if(typeof n!="number")throw new Zb(r,"number",n);if(!MGe(n))throw new OP(r,"an integer",n);if(nl)throw new OP(r,`>= ${o} && <= ${l}`,n)}),ZRr=vv((n,r,o=-2147483648,l=2147483647)=>{if(typeof n!="number")throw new Zb(r,"number",n);if(!MGe(n))throw new OP(r,"an integer",n);if(nl)throw new OP(r,`>= ${o} && <= ${l}`,n)}),Fan=vv((n,r,o=!1)=>{if(typeof n!="number")throw new Zb(r,"number",n);if(!MGe(n))throw new OP(r,"an integer",n);const l=o?1:0,u=4294967295;if(nu)throw new OP(r,`>= ${l} && <= ${u}`,n)});function DGe(n,r){if(typeof n!="string")throw new Zb(r,"string",n)}function exr(n,r,o=void 0,l){if(typeof n!="number")throw new Zb(r,"number",n);if(o!=null&&nl||(o!=null||l!=null)&&MRr(n))throw new OP(r,`${o!=null?`>= ${o}`:""}${o!=null&&l!=null?" && ":""}${l!=null?`<= ${l}`:""}`,n)}const txr=vv((n,r,o)=>{if(!Dan(o,n)){const u="must be one of: "+Lan(NRr(o,d=>typeof d=="string"?`'${d}'`:BRr(d)),", ");throw new $j(r,n,u)}});function Ban(n,r){if(typeof n!="boolean")throw new Zb(r,"boolean",n)}function T9e(n,r,o){return n==null||!FRr(n,r)?o:n[r]}const nxr=vv((n,r,o=null)=>{const l=T9e(o,"allowArray",!1),u=T9e(o,"allowFunction",!1);if(!T9e(o,"nullable",!1)&&n===null||!l&&NGe(n)||typeof n!="object"&&(!u||typeof n!="function"))throw new Zb(r,"Object",n)}),rxr=vv((n,r)=>{if(n!=null&&typeof n!="object"&&typeof n!="function")throw new Zb(r,"a dictionary",n)}),Age=vv((n,r,o=0)=>{if(!NGe(n))throw new Zb(r,"Array",n);if(n.length{if(!zRr(n))throw new Zb(r,["Buffer","TypedArray","DataView"],n)});function cxr(n,r){const o=GRr(r),l=n.length;if(o==="hex"&&l%2!==0)throw new $j("encoding",r,`is invalid for data of length ${l}`)}function uxr(n,r="Port",o=!0){if(typeof n!="number"&&typeof n!="string"||typeof n=="string"&&HRr(n).length===0||+n!==+n>>>0||n>65535||n===0&&!o)throw new URr(r,n,o);return n|0}const Wan=vv((n,r)=>{if(n!==void 0&&(n===null||typeof n!="object"||!("aborted"in n)))throw new Zb(r,"AbortSignal",n)}),fxr=vv((n,r)=>{if(typeof n!="function")throw new Zb(r,"Function",n)}),dxr=vv((n,r)=>{if(typeof n!="function"||VRr(n))throw new Zb(r,"Function",n)}),hxr=vv((n,r)=>{if(n!==void 0)throw new Zb(r,"undefined",n)});function pxr(n,r,o){if(!Dan(o,n))throw new Zb(r,`('${Lan(o,"|")}')`,n)}const bxr=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function Xzt(n,r){if(typeof n>"u"||!jan(bxr,n))throw new $j(r,n,'must be an array or string of format "; rel=preload; as=style"')}function gxr(n){if(typeof n=="string")return Xzt(n,"hints"),n;if(NGe(n)){const r=n.length;let o="";if(r===0)return o;for(let l=0;l; rel=preload; as=style"')}var MJ={isInt32:KRr,isUint32:qRr,parseFileMode:YRr,validateArray:Age,validateStringArray:ixr,validateBooleanArray:oxr,validateAbortSignalArray:sxr,validateBoolean:Ban,validateBuffer:axr,validateDictionary:rxr,validateEncoding:cxr,validateFunction:fxr,validateInt32:ZRr,validateInteger:QRr,validateNumber:exr,validateObject:nxr,validateOneOf:txr,validatePlainFunction:dxr,validatePort:uxr,validateSignalName:lxr,validateString:DGe,validateUint32:Fan,validateUndefined:hxr,validateUnion:pxr,validateAbortSignal:Wan,validateLinkHeaderValue:gxr},LGe={exports:{}};const{SymbolAsyncIterator:Jzt,SymbolIterator:Yzt,SymbolFor:mO}=Uf,Han=mO("nodejs.stream.destroyed"),Uan=mO("nodejs.stream.errored"),XFe=mO("nodejs.stream.readable"),JFe=mO("nodejs.stream.writable"),Gan=mO("nodejs.stream.disturbed"),wxr=mO("nodejs.webstream.isClosedPromise"),mxr=mO("nodejs.webstream.controllerErrorFunction");function Tge(n,r=!1){var o;return!!(n&&typeof n.pipe=="function"&&typeof n.on=="function"&&(!r||typeof n.pause=="function"&&typeof n.resume=="function")&&(!n._writableState||((o=n._readableState)===null||o===void 0?void 0:o.readable)!==!1)&&(!n._writableState||n._readableState))}function $ge(n){var r;return!!(n&&typeof n.write=="function"&&typeof n.on=="function"&&(!n._readableState||((r=n._writableState)===null||r===void 0?void 0:r.writable)!==!1))}function yxr(n){return!!(n&&typeof n.pipe=="function"&&n._readableState&&typeof n.on=="function"&&typeof n.write=="function")}function kk(n){return n&&(n._readableState||n._writableState||typeof n.write=="function"&&typeof n.on=="function"||typeof n.pipe=="function"&&typeof n.on=="function")}function Van(n){return!!(n&&!kk(n)&&typeof n.pipeThrough=="function"&&typeof n.getReader=="function"&&typeof n.cancel=="function")}function zan(n){return!!(n&&!kk(n)&&typeof n.getWriter=="function"&&typeof n.abort=="function")}function Kan(n){return!!(n&&!kk(n)&&typeof n.readable=="object"&&typeof n.writable=="object")}function vxr(n){return Van(n)||zan(n)||Kan(n)}function _xr(n,r){return n==null?!1:r===!0?typeof n[Jzt]=="function":r===!1?typeof n[Yzt]=="function":typeof n[Jzt]=="function"||typeof n[Yzt]=="function"}function Ige(n){if(!kk(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!!(n.destroyed||n[Han]||l!=null&&l.destroyed)}function qan(n){if(!$ge(n))return null;if(n.writableEnded===!0)return!0;const r=n._writableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function Sxr(n,r){if(!$ge(n))return null;if(n.writableFinished===!0)return!0;const o=n._writableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.finished)!="boolean"?null:!!(o.finished||r===!1&&o.ended===!0&&o.length===0)}function Exr(n){if(!Tge(n))return null;if(n.readableEnded===!0)return!0;const r=n._readableState;return!r||r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function Xan(n,r){if(!Tge(n))return null;const o=n._readableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.endEmitted)!="boolean"?null:!!(o.endEmitted||r===!1&&o.ended===!0&&o.length===0)}function Jan(n){return n&&n[XFe]!=null?n[XFe]:typeof(n==null?void 0:n.readable)!="boolean"?null:Ige(n)?!1:Tge(n)&&n.readable&&!Xan(n)}function Yan(n){return n&&n[JFe]!=null?n[JFe]:typeof(n==null?void 0:n.writable)!="boolean"?null:Ige(n)?!1:$ge(n)&&n.writable&&!qan(n)}function kxr(n,r){return kk(n)?Ige(n)?!0:!((r==null?void 0:r.readable)!==!1&&Jan(n)||(r==null?void 0:r.writable)!==!1&&Yan(n)):null}function Rxr(n){var r,o;return kk(n)?n.writableErrored?n.writableErrored:(r=(o=n._writableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function xxr(n){var r,o;return kk(n)?n.readableErrored?n.readableErrored:(r=(o=n._readableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function Cxr(n){if(!kk(n))return null;if(typeof n.closed=="boolean")return n.closed;const r=n._writableState,o=n._readableState;return typeof(r==null?void 0:r.closed)=="boolean"||typeof(o==null?void 0:o.closed)=="boolean"?(r==null?void 0:r.closed)||(o==null?void 0:o.closed):typeof n._closed=="boolean"&&Qan(n)?n._closed:null}function Qan(n){return typeof n._closed=="boolean"&&typeof n._defaultKeepAlive=="boolean"&&typeof n._removedConnection=="boolean"&&typeof n._removedContLen=="boolean"}function Zan(n){return typeof n._sent100=="boolean"&&Qan(n)}function Axr(n){var r;return typeof n._consuming=="boolean"&&typeof n._dumped=="boolean"&&((r=n.req)===null||r===void 0?void 0:r.upgradeOrConnect)===void 0}function Txr(n){if(!kk(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!l&&Zan(n)||!!(l&&l.autoDestroy&&l.emitClose&&l.closed===!1)}function $xr(n){var r;return!!(n&&((r=n[Gan])!==null&&r!==void 0?r:n.readableDidRead||n.readableAborted))}function Ixr(n){var r,o,l,u,d,h,w,v,y,E;return!!(n&&((r=(o=(l=(u=(d=(h=n[Uan])!==null&&h!==void 0?h:n.readableErrored)!==null&&d!==void 0?d:n.writableErrored)!==null&&u!==void 0?u:(w=n._readableState)===null||w===void 0?void 0:w.errorEmitted)!==null&&l!==void 0?l:(v=n._writableState)===null||v===void 0?void 0:v.errorEmitted)!==null&&o!==void 0?o:(y=n._readableState)===null||y===void 0?void 0:y.errored)!==null&&r!==void 0?r:!((E=n._writableState)===null||E===void 0)&&E.errored))}var Px={isDestroyed:Ige,kIsDestroyed:Han,isDisturbed:$xr,kIsDisturbed:Gan,isErrored:Ixr,kIsErrored:Uan,isReadable:Jan,kIsReadable:XFe,kIsClosedPromise:wxr,kControllerErrorFunction:mxr,kIsWritable:JFe,isClosed:Cxr,isDuplexNodeStream:yxr,isFinished:kxr,isIterable:_xr,isReadableNodeStream:Tge,isReadableStream:Van,isReadableEnded:Exr,isReadableFinished:Xan,isReadableErrored:xxr,isNodeStream:kk,isWebStream:vxr,isWritable:Yan,isWritableNodeStream:$ge,isWritableStream:zan,isWritableEnded:qan,isWritableFinished:Sxr,isWritableErrored:Rxr,isServerRequest:Axr,isServerResponse:Zan,willEmitClose:Txr,isTransformStream:Kan};const Z4=ui,{AbortError:ecn,codes:Pxr}=M0,{ERR_INVALID_ARG_TYPE:Oxr,ERR_STREAM_PREMATURE_CLOSE:Qzt}=Pxr,{kEmptyObject:YFe,once:QFe}=b1,{validateAbortSignal:Nxr,validateFunction:Mxr,validateObject:Dxr,validateBoolean:Lxr}=MJ,{Promise:jxr,PromisePrototypeThen:Fxr,SymbolDispose:tcn}=Uf,{isClosed:Bxr,isReadable:Zzt,isReadableNodeStream:$9e,isReadableStream:Wxr,isReadableFinished:eKt,isReadableErrored:tKt,isWritable:nKt,isWritableNodeStream:rKt,isWritableStream:Hxr,isWritableFinished:iKt,isWritableErrored:oKt,isNodeStream:Uxr,willEmitClose:Gxr,kIsClosedPromise:Vxr}=Px;let hL;function zxr(n){return n.setHeader&&typeof n.abort=="function"}const ZFe=()=>{};function ncn(n,r,o){var l,u;if(arguments.length===2?(o=r,r=YFe):r==null?r=YFe:Dxr(r,"options"),Mxr(o,"callback"),Nxr(r.signal,"options.signal"),o=QFe(o),Wxr(n)||Hxr(n))return Kxr(n,r,o);if(!Uxr(n))throw new Oxr("stream",["ReadableStream","WritableStream","Stream"],n);const d=(l=r.readable)!==null&&l!==void 0?l:$9e(n),h=(u=r.writable)!==null&&u!==void 0?u:rKt(n),w=n._writableState,v=n._readableState,y=()=>{n.writable||C()};let E=Gxr(n)&&$9e(n)===d&&rKt(n)===h,A=iKt(n,!1);const C=()=>{A=!0,n.destroyed&&(E=!1),!(E&&(!n.readable||d))&&(!d||R)&&o.call(n)};let R=eKt(n,!1);const O=()=>{R=!0,n.destroyed&&(E=!1),!(E&&(!n.writable||h))&&(!h||A)&&o.call(n)},M=te=>{o.call(n,te)};let L=Bxr(n);const H=()=>{L=!0;const te=oKt(n)||tKt(n);if(te&&typeof te!="boolean")return o.call(n,te);if(d&&!R&&$9e(n,!0)&&!eKt(n,!1))return o.call(n,new Qzt);if(h&&!A&&!iKt(n,!1))return o.call(n,new Qzt);o.call(n)},G=()=>{L=!0;const te=oKt(n)||tKt(n);if(te&&typeof te!="boolean")return o.call(n,te);o.call(n)},j=()=>{n.req.on("finish",C)};zxr(n)?(n.on("complete",C),E||n.on("abort",H),n.req?j():n.on("request",j)):h&&!w&&(n.on("end",y),n.on("close",y)),!E&&typeof n.aborted=="boolean"&&n.on("aborted",H),n.on("end",O),n.on("finish",C),r.error!==!1&&n.on("error",M),n.on("close",H),L?Z4.nextTick(H):w!=null&&w.errorEmitted||v!=null&&v.errorEmitted?E||Z4.nextTick(G):(!d&&(!E||Zzt(n))&&(A||nKt(n)===!1)||!h&&(!E||nKt(n))&&(R||Zzt(n)===!1)||v&&n.req&&n.aborted)&&Z4.nextTick(G);const Q=()=>{o=ZFe,n.removeListener("aborted",H),n.removeListener("complete",C),n.removeListener("abort",H),n.removeListener("request",j),n.req&&n.req.removeListener("finish",C),n.removeListener("end",y),n.removeListener("close",y),n.removeListener("finish",C),n.removeListener("end",O),n.removeListener("error",M),n.removeListener("close",H)};if(r.signal&&!L){const te=()=>{const pe=o;Q(),pe.call(n,new ecn(void 0,{cause:r.signal.reason}))};if(r.signal.aborted)Z4.nextTick(te);else{hL=hL||b1.addAbortListener;const pe=hL(r.signal,te),Le=o;o=QFe((...Ee)=>{pe[tcn](),Le.apply(n,Ee)})}}return Q}function Kxr(n,r,o){let l=!1,u=ZFe;if(r.signal)if(u=()=>{l=!0,o.call(n,new ecn(void 0,{cause:r.signal.reason}))},r.signal.aborted)Z4.nextTick(u);else{hL=hL||b1.addAbortListener;const h=hL(r.signal,u),w=o;o=QFe((...v)=>{h[tcn](),w.apply(n,v)})}const d=(...h)=>{l||Z4.nextTick(()=>o.apply(n,h))};return Fxr(n[Vxr].promise,d,d),ZFe}function qxr(n,r){var o;let l=!1;return r===null&&(r=YFe),(o=r)!==null&&o!==void 0&&o.cleanup&&(Lxr(r.cleanup,"cleanup"),l=r.cleanup),new jxr((u,d)=>{const h=ncn(n,r,w=>{l&&h(),w?d(w):u()})})}LGe.exports=ncn;LGe.exports.finished=qxr;var VT=LGe.exports;const XE=ui,{aggregateTwoErrors:Xxr,codes:{ERR_MULTIPLE_CALLBACK:Jxr},AbortError:Yxr}=M0,{Symbol:rcn}=Uf,{kIsDestroyed:Qxr,isDestroyed:Zxr,isFinished:eCr,isServerRequest:tCr}=Px,icn=rcn("kDestroy"),eBe=rcn("kConstruct");function ocn(n,r,o){n&&(n.stack,r&&!r.errored&&(r.errored=n),o&&!o.errored&&(o.errored=n))}function nCr(n,r){const o=this._readableState,l=this._writableState,u=l||o;return l!=null&&l.destroyed||o!=null&&o.destroyed?(typeof r=="function"&&r(),this):(ocn(n,l,o),l&&(l.destroyed=!0),o&&(o.destroyed=!0),u.constructed?sKt(this,n,r):this.once(icn,function(d){sKt(this,Xxr(d,n),r)}),this)}function sKt(n,r,o){let l=!1;function u(d){if(l)return;l=!0;const h=n._readableState,w=n._writableState;ocn(d,w,h),w&&(w.closed=!0),h&&(h.closed=!0),typeof o=="function"&&o(d),d?XE.nextTick(rCr,n,d):XE.nextTick(scn,n)}try{n._destroy(r||null,u)}catch(d){u(d)}}function rCr(n,r){tBe(n,r),scn(n)}function scn(n){const r=n._readableState,o=n._writableState;o&&(o.closeEmitted=!0),r&&(r.closeEmitted=!0),(o!=null&&o.emitClose||r!=null&&r.emitClose)&&n.emit("close")}function tBe(n,r){const o=n._readableState,l=n._writableState;l!=null&&l.errorEmitted||o!=null&&o.errorEmitted||(l&&(l.errorEmitted=!0),o&&(o.errorEmitted=!0),n.emit("error",r))}function iCr(){const n=this._readableState,r=this._writableState;n&&(n.constructed=!0,n.closed=!1,n.closeEmitted=!1,n.destroyed=!1,n.errored=null,n.errorEmitted=!1,n.reading=!1,n.ended=n.readable===!1,n.endEmitted=n.readable===!1),r&&(r.constructed=!0,r.destroyed=!1,r.closed=!1,r.closeEmitted=!1,r.errored=null,r.errorEmitted=!1,r.finalCalled=!1,r.prefinished=!1,r.ended=r.writable===!1,r.ending=r.writable===!1,r.finished=r.writable===!1)}function nBe(n,r,o){const l=n._readableState,u=n._writableState;if(u!=null&&u.destroyed||l!=null&&l.destroyed)return this;l!=null&&l.autoDestroy||u!=null&&u.autoDestroy?n.destroy(r):r&&(r.stack,u&&!u.errored&&(u.errored=r),l&&!l.errored&&(l.errored=r),o?XE.nextTick(tBe,n,r):tBe(n,r))}function oCr(n,r){if(typeof n._construct!="function")return;const o=n._readableState,l=n._writableState;o&&(o.constructed=!1),l&&(l.constructed=!1),n.once(eBe,r),!(n.listenerCount(eBe)>1)&&XE.nextTick(sCr,n)}function sCr(n){let r=!1;function o(l){if(r){nBe(n,l??new Jxr);return}r=!0;const u=n._readableState,d=n._writableState,h=d||u;u&&(u.constructed=!0),d&&(d.constructed=!0),h.destroyed?n.emit(icn,l):l?nBe(n,l,!0):XE.nextTick(lCr,n)}try{n._construct(l=>{XE.nextTick(o,l)})}catch(l){XE.nextTick(o,l)}}function lCr(n){n.emit(eBe)}function lKt(n){return(n==null?void 0:n.setHeader)&&typeof n.abort=="function"}function lcn(n){n.emit("close")}function aCr(n,r){n.emit("error",r),XE.nextTick(lcn,n)}function cCr(n,r){!n||Zxr(n)||(!r&&!eCr(n)&&(r=new Yxr),tCr(n)?(n.socket=null,n.destroy(r)):lKt(n)?n.abort():lKt(n.req)?n.req.abort():typeof n.destroy=="function"?n.destroy(r):typeof n.close=="function"?n.close():r?XE.nextTick(aCr,n,r):XE.nextTick(lcn,n),n.destroyed||(n[Qxr]=!0))}var Ij={construct:oCr,destroyer:cCr,destroy:nCr,undestroy:iCr,errorOrDestroy:nBe};const{ArrayIsArray:uCr,ObjectSetPrototypeOf:acn}=Uf,{EventEmitter:Pge}=Ns;function Oge(n){Pge.call(this,n)}acn(Oge.prototype,Pge.prototype);acn(Oge,Pge);Oge.prototype.pipe=function(n,r){const o=this;function l(E){n.writable&&n.write(E)===!1&&o.pause&&o.pause()}o.on("data",l);function u(){o.readable&&o.resume&&o.resume()}n.on("drain",u),!n._isStdio&&(!r||r.end!==!1)&&(o.on("end",h),o.on("close",w));let d=!1;function h(){d||(d=!0,n.end())}function w(){d||(d=!0,typeof n.destroy=="function"&&n.destroy())}function v(E){y(),Pge.listenerCount(this,"error")===0&&this.emit("error",E)}rBe(o,"error",v),rBe(n,"error",v);function y(){o.removeListener("data",l),n.removeListener("drain",u),o.removeListener("end",h),o.removeListener("close",w),o.removeListener("error",v),n.removeListener("error",v),o.removeListener("end",y),o.removeListener("close",y),n.removeListener("close",y)}return o.on("end",y),o.on("close",y),n.on("close",y),n.emit("pipe",o),n};function rBe(n,r,o){if(typeof n.prependListener=="function")return n.prependListener(r,o);!n._events||!n._events[r]?n.on(r,o):uCr(n._events[r])?n._events[r].unshift(o):n._events[r]=[o,n._events[r]]}var jGe={Stream:Oge,prependListener:rBe},ccn={exports:{}};(function(n){const{SymbolDispose:r}=Uf,{AbortError:o,codes:l}=M0,{isNodeStream:u,isWebStream:d,kControllerErrorFunction:h}=Px,w=VT,{ERR_INVALID_ARG_TYPE:v}=l;let y;const E=(A,C)=>{if(typeof A!="object"||!("aborted"in A))throw new v(C,"AbortSignal",A)};n.exports.addAbortSignal=function(C,R){if(E(C,"signal"),!u(R)&&!d(R))throw new v("stream",["ReadableStream","WritableStream","Stream"],R);return n.exports.addAbortSignalNoValidate(C,R)},n.exports.addAbortSignalNoValidate=function(A,C){if(typeof A!="object"||!("aborted"in A))return C;const R=u(C)?()=>{C.destroy(new o(void 0,{cause:A.reason}))}:()=>{C[h](new o(void 0,{cause:A.reason}))};if(A.aborted)R();else{y=y||b1.addAbortListener;const O=y(A,R);w(C,O[r])}return C}})(ccn);var Nge=ccn.exports;const{StringPrototypeSlice:aKt,SymbolIterator:fCr,TypedArrayPrototypeSet:Gue,Uint8Array:dCr}=Uf,{Buffer:I9e}=Kr,{inspect:hCr}=b1;var pCr=class{constructor(){this.head=null,this.tail=null,this.length=0}push(r){const o={data:r,next:null};this.length>0?this.tail.next=o:this.head=o,this.tail=o,++this.length}unshift(r){const o={data:r,next:this.head};this.length===0&&(this.tail=o),this.head=o,++this.length}shift(){if(this.length===0)return;const r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}clear(){this.head=this.tail=null,this.length=0}join(r){if(this.length===0)return"";let o=this.head,l=""+o.data;for(;(o=o.next)!==null;)l+=r+o.data;return l}concat(r){if(this.length===0)return I9e.alloc(0);const o=I9e.allocUnsafe(r>>>0);let l=this.head,u=0;for(;l;)Gue(o,l.data,u),u+=l.data.length,l=l.next;return o}consume(r,o){const l=this.head.data;if(rd.length)o+=d,r-=d.length;else{r===d.length?(o+=d,++u,l.next?this.head=l.next:this.head=this.tail=null):(o+=aKt(d,0,r),this.head=l,l.data=aKt(d,r));break}++u}while((l=l.next)!==null);return this.length-=u,o}_getBuffer(r){const o=I9e.allocUnsafe(r),l=r;let u=this.head,d=0;do{const h=u.data;if(r>h.length)Gue(o,h,l-r),r-=h.length;else{r===h.length?(Gue(o,h,l-r),++d,u.next?this.head=u.next:this.head=this.tail=null):(Gue(o,new dCr(h.buffer,h.byteOffset,r),l-r),this.head=u,u.data=h.slice(r));break}++d}while((u=u.next)!==null);return this.length-=d,o}[Symbol.for("nodejs.util.inspect.custom")](r,o){return hCr(this,{...o,depth:0,customInspect:!1})}};const{MathFloor:bCr,NumberIsInteger:gCr}=Uf,{validateInteger:wCr}=MJ,{ERR_INVALID_ARG_VALUE:mCr}=M0.codes;let ucn=16*1024,fcn=16;function yCr(n,r,o){return n.highWaterMark!=null?n.highWaterMark:r?n[o]:null}function dcn(n){return n?fcn:ucn}function vCr(n,r){wCr(r,"value",0),n?fcn=r:ucn=r}function _Cr(n,r,o,l){const u=yCr(r,l,o);if(u!=null){if(!gCr(u)||u<0){const d=l?`options.${o}`:"options.highWaterMark";throw new mCr(d,u)}return bCr(u)}return dcn(n.objectMode)}var Mge={getHighWaterMark:_Cr,getDefaultHighWaterMark:dcn,setDefaultHighWaterMark:vCr};const cKt=ui,{PromisePrototypeThen:SCr,SymbolAsyncIterator:uKt,SymbolIterator:fKt}=Uf,{Buffer:ECr}=Kr,{ERR_INVALID_ARG_TYPE:kCr,ERR_STREAM_NULL_VALUES:RCr}=M0.codes;function xCr(n,r,o){let l;if(typeof r=="string"||r instanceof ECr)return new n({objectMode:!0,...o,read(){this.push(r),this.push(null)}});let u;if(r&&r[uKt])u=!0,l=r[uKt]();else if(r&&r[fKt])u=!1,l=r[fKt]();else throw new kCr("iterable",["Iterable"],r);const d=new n({objectMode:!0,highWaterMark:1,...o});let h=!1;d._read=function(){h||(h=!0,v())},d._destroy=function(y,E){SCr(w(y),()=>cKt.nextTick(E,y),A=>cKt.nextTick(E,A||y))};async function w(y){const E=y!=null,A=typeof l.throw=="function";if(E&&A){const{value:C,done:R}=await l.throw(y);if(await C,R)return}if(typeof l.return=="function"){const{value:C}=await l.return();await C}}async function v(){for(;;){try{const{value:y,done:E}=u?await l.next():l.next();if(E)d.push(null);else{const A=y&&typeof y.then=="function"?await y:y;if(A===null)throw h=!1,new RCr;if(d.push(A))continue;h=!1}}catch(y){d.destroy(y)}break}}return d}var hcn=xCr,P9e,dKt;function Dge(){if(dKt)return P9e;dKt=1;const n=ui,{ArrayPrototypeIndexOf:r,NumberIsInteger:o,NumberIsNaN:l,NumberParseInt:u,ObjectDefineProperties:d,ObjectKeys:h,ObjectSetPrototypeOf:w,Promise:v,SafeSet:y,SymbolAsyncDispose:E,SymbolAsyncIterator:A,Symbol:C}=Uf;P9e=he,he.ReadableState=St;const{EventEmitter:R}=Ns,{Stream:O,prependListener:M}=jGe,{Buffer:L}=Kr,{addAbortSignal:H}=Nge,G=VT;let j=b1.debuglog("stream",S=>{j=S});const Q=pCr,te=Ij,{getHighWaterMark:pe,getDefaultHighWaterMark:Le}=Mge,{aggregateTwoErrors:Ee,codes:{ERR_INVALID_ARG_TYPE:le,ERR_METHOD_NOT_IMPLEMENTED:xe,ERR_OUT_OF_RANGE:be,ERR_STREAM_PUSH_AFTER_EOF:ae,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:F},AbortError:me}=M0,{validateObject:ye}=MJ,we=C("kPaused"),{StringDecoder:Be}=rm,He=hcn;w(he.prototype,O.prototype),w(he,O);const Ue=()=>{},{errorOrDestroy:Ge}=te,Me=1,vt=2,re=4,Te=8,ct=16,at=32,Ye=64,mt=128,jt=256,rn=512,Pe=1024,Oe=2048,T=4096,$=8192,B=16384,K=32768,q=65536,ke=1<<17,Re=1<<18;function Ie(S){return{enumerable:!1,get(){return(this.state&S)!==0},set(x){x?this.state|=S:this.state&=~S}}}d(St.prototype,{objectMode:Ie(Me),ended:Ie(vt),endEmitted:Ie(re),reading:Ie(Te),constructed:Ie(ct),sync:Ie(at),needReadable:Ie(Ye),emittedReadable:Ie(mt),readableListening:Ie(jt),resumeScheduled:Ie(rn),errorEmitted:Ie(Pe),emitClose:Ie(Oe),autoDestroy:Ie(T),destroyed:Ie($),closed:Ie(B),closeEmitted:Ie(K),multiAwaitDrain:Ie(q),readingMore:Ie(ke),dataEmitted:Ie(Re)});function St(S,x,Y){typeof Y!="boolean"&&(Y=x instanceof hx()),this.state=Oe|T|ct|at,S&&S.objectMode&&(this.state|=Me),Y&&S&&S.readableObjectMode&&(this.state|=Me),this.highWaterMark=S?pe(this,S,"readableHighWaterMark",Y):Le(!1),this.buffer=new Q,this.length=0,this.pipes=[],this.flowing=null,this[we]=null,S&&S.emitClose===!1&&(this.state&=~Oe),S&&S.autoDestroy===!1&&(this.state&=~T),this.errored=null,this.defaultEncoding=S&&S.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,S&&S.encoding&&(this.decoder=new Be(S.encoding),this.encoding=S.encoding)}function he(S){if(!(this instanceof he))return new he(S);const x=this instanceof hx();this._readableState=new St(S,this,x),S&&(typeof S.read=="function"&&(this._read=S.read),typeof S.destroy=="function"&&(this._destroy=S.destroy),typeof S.construct=="function"&&(this._construct=S.construct),S.signal&&!x&&H(S.signal,this)),O.call(this,S),te.construct(this,()=>{this._readableState.needReadable&&ht(this,this._readableState)})}he.prototype.destroy=te.destroy,he.prototype._undestroy=te.undestroy,he.prototype._destroy=function(S,x){x(S)},he.prototype[R.captureRejectionSymbol]=function(S){this.destroy(S)},he.prototype[E]=function(){let S;return this.destroyed||(S=this.readableEnded?null:new me,this.destroy(S)),new v((x,Y)=>G(this,J=>J&&J!==S?Y(J):x(null)))},he.prototype.push=function(S,x){return zt(this,S,x,!1)},he.prototype.unshift=function(S,x){return zt(this,S,x,!0)};function zt(S,x,Y,J){j("readableAddChunk",x);const ue=S._readableState;let Yt;if(ue.state&Me||(typeof x=="string"?(Y=Y||ue.defaultEncoding,ue.encoding!==Y&&(J&&ue.encoding?x=L.from(x,Y).toString(ue.encoding):(x=L.from(x,Y),Y=""))):x instanceof L?Y="":O._isUint8Array(x)?(x=O._uint8ArrayToBuffer(x),Y=""):x!=null&&(Yt=new le("chunk",["string","Buffer","Uint8Array"],x))),Yt)Ge(S,Yt);else if(x===null)ue.state&=~Te,ce(S,ue);else if(ue.state&Me||x&&x.length>0)if(J)if(ue.state&re)Ge(S,new F);else{if(ue.destroyed||ue.errored)return!1;Qt(S,ue,x,!0)}else if(ue.ended)Ge(S,new ae);else{if(ue.destroyed||ue.errored)return!1;ue.state&=~Te,ue.decoder&&!Y?(x=ue.decoder.write(x),ue.objectMode||x.length!==0?Qt(S,ue,x,!1):ht(S,ue)):Qt(S,ue,x,!1)}else J||(ue.state&=~Te,ht(S,ue));return!ue.ended&&(ue.length0?(x.state&q?x.awaitDrainWriters.clear():x.awaitDrainWriters=null,x.dataEmitted=!0,S.emit("data",Y)):(x.length+=x.objectMode?1:Y.length,J?x.buffer.unshift(Y):x.buffer.push(Y),x.state&Ye&&de(S)),ht(S,x)}he.prototype.isPaused=function(){const S=this._readableState;return S[we]===!0||S.flowing===!1},he.prototype.setEncoding=function(S){const x=new Be(S);this._readableState.decoder=x,this._readableState.encoding=this._readableState.decoder.encoding;const Y=this._readableState.buffer;let J="";for(const ue of Y)J+=x.write(ue);return Y.clear(),J!==""&&Y.push(J),this._readableState.length=J.length,this};const $n=1073741824;function Gn(S){if(S>$n)throw new be("size","<= 1GiB",S);return S--,S|=S>>>1,S|=S>>>2,S|=S>>>4,S|=S>>>8,S|=S>>>16,S++,S}function $e(S,x){return S<=0||x.length===0&&x.ended?0:x.state&Me?1:l(S)?x.flowing&&x.length?x.buffer.first().length:x.length:S<=x.length?S:x.ended?x.length:0}he.prototype.read=function(S){j("read",S),S===void 0?S=NaN:o(S)||(S=u(S,10));const x=this._readableState,Y=S;if(S>x.highWaterMark&&(x.highWaterMark=Gn(S)),S!==0&&(x.state&=~mt),S===0&&x.needReadable&&((x.highWaterMark!==0?x.length>=x.highWaterMark:x.length>0)||x.ended))return j("read: emitReadable",x.length,x.ended),x.length===0&&x.ended?co(this):de(this),null;if(S=$e(S,x),S===0&&x.ended)return x.length===0&&co(this),null;let J=(x.state&Ye)!==0;if(j("need readable",J),(x.length===0||x.length-S0?ue=Al(S,x):ue=null,ue===null?(x.needReadable=x.length<=x.highWaterMark,S=0):(x.length-=S,x.multiAwaitDrain?x.awaitDrainWriters.clear():x.awaitDrainWriters=null),x.length===0&&(x.ended||(x.needReadable=!0),Y!==S&&x.ended&&co(this)),ue!==null&&!x.errorEmitted&&!x.closeEmitted&&(x.dataEmitted=!0,this.emit("data",ue)),ue};function ce(S,x){if(j("onEofChunk"),!x.ended){if(x.decoder){const Y=x.decoder.end();Y&&Y.length&&(x.buffer.push(Y),x.length+=x.objectMode?1:Y.length)}x.ended=!0,x.sync?de(S):(x.needReadable=!1,x.emittedReadable=!0,et(S))}}function de(S){const x=S._readableState;j("emitReadable",x.needReadable,x.emittedReadable),x.needReadable=!1,x.emittedReadable||(j("emitReadable",x.flowing),x.emittedReadable=!0,n.nextTick(et,S))}function et(S){const x=S._readableState;j("emitReadable_",x.destroyed,x.length,x.ended),!x.destroyed&&!x.errored&&(x.length||x.ended)&&(S.emit("readable"),x.emittedReadable=!1),x.needReadable=!x.flowing&&!x.ended&&x.length<=x.highWaterMark,xi(S)}function ht(S,x){!x.readingMore&&x.constructed&&(x.readingMore=!0,n.nextTick(Jt,S,x))}function Jt(S,x){for(;!x.reading&&!x.ended&&(x.length1&&J.pipes.includes(S)&&(j("false write response, pause",J.awaitDrainWriters.size),J.awaitDrainWriters.add(S)),Y.pause()),Fr||(Fr=Zt(Y,S),S.on("drain",Fr))}Y.on("data",ml);function ml(jr){j("ondata");const lr=S.write(jr);j("dest.write",lr),lr===!1&&Rs()}function gs(jr){if(j("onerror",jr),wi(),S.removeListener("error",gs),S.listenerCount("error")===0){const lr=S._writableState||S._readableState;lr&&!lr.errorEmitted?Ge(S,jr):S.emit("error",jr)}}M(S,"error",gs);function as(){S.removeListener("finish",ws),wi()}S.once("close",as);function ws(){j("onfinish"),S.removeListener("close",as),wi()}S.once("finish",ws);function wi(){j("unpipe"),Y.unpipe(S)}return S.emit("pipe",Y),S.writableNeedDrain===!0?Rs():J.flowing||(j("pipe resume"),Y.resume()),S};function Zt(S,x){return function(){const J=S._readableState;J.awaitDrainWriters===x?(j("pipeOnDrain",1),J.awaitDrainWriters=null):J.multiAwaitDrain&&(j("pipeOnDrain",J.awaitDrainWriters.size),J.awaitDrainWriters.delete(x)),(!J.awaitDrainWriters||J.awaitDrainWriters.size===0)&&S.listenerCount("data")&&S.resume()}}he.prototype.unpipe=function(S){const x=this._readableState,Y={hasUnpiped:!1};if(x.pipes.length===0)return this;if(!S){const ue=x.pipes;x.pipes=[],this.pause();for(let Yt=0;Yt0,J.flowing!==!1&&this.resume()):S==="readable"&&!J.endEmitted&&!J.readableListening&&(J.readableListening=J.needReadable=!0,J.flowing=!1,J.emittedReadable=!1,j("on readable",J.length,J.reading),J.length?de(this):J.reading||n.nextTick(ao,this)),Y},he.prototype.addListener=he.prototype.on,he.prototype.removeListener=function(S,x){const Y=O.prototype.removeListener.call(this,S,x);return S==="readable"&&n.nextTick(qr,this),Y},he.prototype.off=he.prototype.removeListener,he.prototype.removeAllListeners=function(S){const x=O.prototype.removeAllListeners.apply(this,arguments);return(S==="readable"||S===void 0)&&n.nextTick(qr,this),x};function qr(S){const x=S._readableState;x.readableListening=S.listenerCount("readable")>0,x.resumeScheduled&&x[we]===!1?x.flowing=!0:S.listenerCount("data")>0?S.resume():x.readableListening||(x.flowing=null)}function ao(S){j("readable nexttick read 0"),S.read(0)}he.prototype.resume=function(){const S=this._readableState;return S.flowing||(j("resume"),S.flowing=!S.readableListening,ki(this,S)),S[we]=!1,this};function ki(S,x){x.resumeScheduled||(x.resumeScheduled=!0,n.nextTick(Ri,S,x))}function Ri(S,x){j("resume",x.reading),x.reading||S.read(0),x.resumeScheduled=!1,S.emit("resume"),xi(S),x.flowing&&!x.reading&&S.read(0)}he.prototype.pause=function(){return j("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(j("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[we]=!0,this};function xi(S){const x=S._readableState;for(j("flow",x.flowing);x.flowing&&S.read()!==null;);}he.prototype.wrap=function(S){let x=!1;S.on("data",J=>{!this.push(J)&&S.pause&&(x=!0,S.pause())}),S.on("end",()=>{this.push(null)}),S.on("error",J=>{Ge(this,J)}),S.on("close",()=>{this.destroy()}),S.on("destroy",()=>{this.destroy()}),this._read=()=>{x&&S.resume&&(x=!1,S.resume())};const Y=h(S);for(let J=1;J{ue=An?Ee(ue,An):null,Y(),Y=Ue});try{for(;;){const An=S.destroyed?null:S.read();if(An!==null)yield An;else{if(ue)throw ue;if(ue===null)return;await new v(J)}}}catch(An){throw ue=Ee(ue,An),ue}finally{(ue||(x==null?void 0:x.destroyOnReturn)!==!1)&&(ue===void 0||S._readableState.autoDestroy)?te.destroyer(S,null):(S.off("readable",J),Yt())}}d(he.prototype,{readable:{__proto__:null,get(){const S=this._readableState;return!!S&&S.readable!==!1&&!S.destroyed&&!S.errorEmitted&&!S.endEmitted},set(S){this._readableState&&(this._readableState.readable=!!S)}},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(S){this._readableState&&(this._readableState.flowing=S)}},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(S){this._readableState&&(this._readableState.destroyed=S)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),d(St.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[we]!==!1},set(S){this[we]=!!S}}}),he._fromList=Al;function Al(S,x){if(x.length===0)return null;let Y;return x.objectMode?Y=x.buffer.shift():!S||S>=x.length?(x.decoder?Y=x.buffer.join(""):x.buffer.length===1?Y=x.buffer.first():Y=x.buffer.concat(x.length),x.buffer.clear()):Y=x.buffer.consume(S,x.decoder),Y}function co(S){const x=S._readableState;j("endReadable",x.endEmitted),x.endEmitted||(x.ended=!0,n.nextTick(Zc,x,S))}function Zc(S,x){if(j("endReadableNT",S.endEmitted,S.length),!S.errored&&!S.closeEmitted&&!S.endEmitted&&S.length===0){if(S.endEmitted=!0,x.emit("end"),x.writable&&x.allowHalfOpen===!1)n.nextTick(bu,x);else if(S.autoDestroy){const Y=x._writableState;(!Y||Y.autoDestroy&&(Y.finished||Y.writable===!1))&&x.destroy()}}}function bu(S){S.writable&&!S.writableEnded&&!S.destroyed&&S.end()}he.from=function(S,x){return He(he,S,x)};let So;function ql(){return So===void 0&&(So={}),So}return he.fromWeb=function(S,x){return ql().newStreamReadableFromReadableStream(S,x)},he.toWeb=function(S,x){return ql().newReadableStreamFromStreamReadable(S,x)},he.wrap=function(S,x){var Y,J;return new he({objectMode:(Y=(J=S.readableObjectMode)!==null&&J!==void 0?J:S.objectMode)!==null&&Y!==void 0?Y:!0,...x,destroy(ue,Yt){te.destroyer(S,ue),Yt(ue)}}).wrap(S)},P9e}var O9e,hKt;function FGe(){if(hKt)return O9e;hKt=1;const n=ui,{ArrayPrototypeSlice:r,Error:o,FunctionPrototypeSymbolHasInstance:l,ObjectDefineProperty:u,ObjectDefineProperties:d,ObjectSetPrototypeOf:h,StringPrototypeToLowerCase:w,Symbol:v,SymbolHasInstance:y}=Uf;O9e=ye,ye.WritableState=F;const{EventEmitter:E}=Ns,A=jGe.Stream,{Buffer:C}=Kr,R=Ij,{addAbortSignal:O}=Nge,{getHighWaterMark:M,getDefaultHighWaterMark:L}=Mge,{ERR_INVALID_ARG_TYPE:H,ERR_METHOD_NOT_IMPLEMENTED:G,ERR_MULTIPLE_CALLBACK:j,ERR_STREAM_CANNOT_PIPE:Q,ERR_STREAM_DESTROYED:te,ERR_STREAM_ALREADY_FINISHED:pe,ERR_STREAM_NULL_VALUES:Le,ERR_STREAM_WRITE_AFTER_END:Ee,ERR_UNKNOWN_ENCODING:le}=M0.codes,{errorOrDestroy:xe}=R;h(ye.prototype,A.prototype),h(ye,A);function be(){}const ae=v("kOnFinished");function F(T,$,B){typeof B!="boolean"&&(B=$ instanceof hx()),this.objectMode=!!(T&&T.objectMode),B&&(this.objectMode=this.objectMode||!!(T&&T.writableObjectMode)),this.highWaterMark=T?M(this,T,"writableHighWaterMark",B):L(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const K=!!(T&&T.decodeStrings===!1);this.decodeStrings=!K,this.defaultEncoding=T&&T.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=Ge.bind(void 0,$),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,me(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[ae]=[]}function me(T){T.buffered=[],T.bufferedIndex=0,T.allBuffers=!0,T.allNoop=!0}F.prototype.getBuffer=function(){return r(this.buffered,this.bufferedIndex)},u(F.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function ye(T){const $=this instanceof hx();if(!$&&!l(ye,this))return new ye(T);this._writableState=new F(T,this,$),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&&O(T.signal,this)),A.call(this,T),R.construct(this,()=>{const B=this._writableState;B.writing||Te(this,B),mt(this,B)})}u(ye,y,{__proto__:null,value:function(T){return l(this,T)?!0:this!==ye?!1:T&&T._writableState instanceof F}}),ye.prototype.pipe=function(){xe(this,new Q)};function we(T,$,B,K){const q=T._writableState;if(typeof B=="function")K=B,B=q.defaultEncoding;else{if(!B)B=q.defaultEncoding;else if(B!=="buffer"&&!C.isEncoding(B))throw new le(B);typeof K!="function"&&(K=be)}if($===null)throw new Le;if(!q.objectMode)if(typeof $=="string")q.decodeStrings!==!1&&($=C.from($,B),B="buffer");else if($ instanceof C)B="buffer";else if(A._isUint8Array($))$=A._uint8ArrayToBuffer($),B="buffer";else throw new H("chunk",["string","Buffer","Uint8Array"],$);let ke;return q.ending?ke=new Ee:q.destroyed&&(ke=new te("write")),ke?(n.nextTick(K,ke),xe(T,ke,!0),ke):(q.pendingcb++,Be(T,q,$,B,K))}ye.prototype.write=function(T,$,B){return we(this,T,$,B)===!0},ye.prototype.cork=function(){this._writableState.corked++},ye.prototype.uncork=function(){const T=this._writableState;T.corked&&(T.corked--,T.writing||Te(this,T))},ye.prototype.setDefaultEncoding=function($){if(typeof $=="string"&&($=w($)),!C.isEncoding($))throw new le($);return this._writableState.defaultEncoding=$,this};function Be(T,$,B,K,q){const ke=$.objectMode?1:B.length;$.length+=ke;const Re=$.length<$.highWaterMark;return Re||($.needDrain=!0),$.writing||$.corked||$.errored||!$.constructed?($.buffered.push({chunk:B,encoding:K,callback:q}),$.allBuffers&&K!=="buffer"&&($.allBuffers=!1),$.allNoop&&q!==be&&($.allNoop=!1)):($.writelen=ke,$.writecb=q,$.writing=!0,$.sync=!0,T._write(B,K,$.onwrite),$.sync=!1),Re&&!$.errored&&!$.destroyed}function He(T,$,B,K,q,ke,Re){$.writelen=K,$.writecb=Re,$.writing=!0,$.sync=!0,$.destroyed?$.onwrite(new te("write")):B?T._writev(q,$.onwrite):T._write(q,ke,$.onwrite),$.sync=!1}function Ue(T,$,B,K){--$.pendingcb,K(B),re($),xe(T,B)}function Ge(T,$){const B=T._writableState,K=B.sync,q=B.writecb;if(typeof q!="function"){xe(T,new j);return}B.writing=!1,B.writecb=null,B.length-=B.writelen,B.writelen=0,$?($.stack,B.errored||(B.errored=$),T._readableState&&!T._readableState.errored&&(T._readableState.errored=$),K?n.nextTick(Ue,T,B,$,q):Ue(T,B,$,q)):(B.buffered.length>B.bufferedIndex&&Te(T,B),K?B.afterWriteTickInfo!==null&&B.afterWriteTickInfo.cb===q?B.afterWriteTickInfo.count++:(B.afterWriteTickInfo={count:1,cb:q,stream:T,state:B},n.nextTick(Me,B.afterWriteTickInfo)):vt(T,B,1,q))}function Me({stream:T,state:$,count:B,cb:K}){return $.afterWriteTickInfo=null,vt(T,$,B,K)}function vt(T,$,B,K){for(!$.ending&&!T.destroyed&&$.length===0&&$.needDrain&&($.needDrain=!1,T.emit("drain"));B-- >0;)$.pendingcb--,K();$.destroyed&&re($),mt(T,$)}function re(T){if(T.writing)return;for(let q=T.bufferedIndex;q1&&T._writev){$.pendingcb-=ke-1;const Ie=$.allNoop?be:he=>{for(let zt=Re;zt256?(B.splice(0,Re),$.bufferedIndex=0):$.bufferedIndex=Re}$.bufferProcessing=!1}ye.prototype._write=function(T,$,B){if(this._writev)this._writev([{chunk:T,encoding:$}],B);else throw new G("_write()")},ye.prototype._writev=null,ye.prototype.end=function(T,$,B){const K=this._writableState;typeof T=="function"?(B=T,T=null,$=null):typeof $=="function"&&(B=$,$=null);let q;if(T!=null){const ke=we(this,T,$);ke instanceof o&&(q=ke)}return K.corked&&(K.corked=1,this.uncork()),q||(!K.errored&&!K.ending?(K.ending=!0,mt(this,K,!0),K.ended=!0):K.finished?q=new pe("end"):K.destroyed&&(q=new te("end"))),typeof B=="function"&&(q||K.finished?n.nextTick(B,q):K[ae].push(B)),this};function ct(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 at(T,$){let B=!1;function K(q){if(B){xe(T,q??j());return}if(B=!0,$.pendingcb--,q){const ke=$[ae].splice(0);for(let Re=0;Re{ct(q)?jt(K,q):q.pendingcb--},T,$)):ct($)&&($.pendingcb++,jt(T,$))))}function jt(T,$){$.pendingcb--,$.finished=!0;const B=$[ae].splice(0);for(let K=0;K{if(re!=null)throw new O("nully","body",re)},re=>{M(Me,re)});return Me=new le({objectMode:!0,readable:!1,write:Be,final(re){He(async()=>{try{await vt,n.nextTick(re,null)}catch(Te){n.nextTick(re,Te)}})},destroy:Ue})}throw new O("Iterable, AsyncIterable or AsyncFunction",me,we)}if(pe(F))return ae(F.arrayBuffer());if(u(F))return Q(le,F,{objectMode:!0,writable:!1});if(y(F==null?void 0:F.readable)&&E(F==null?void 0:F.writable))return le.fromWeb(F);if(typeof(F==null?void 0:F.writable)=="object"||typeof(F==null?void 0:F.readable)=="object"){const we=F!=null&&F.readable?h(F==null?void 0:F.readable)?F==null?void 0:F.readable:ae(F.readable):void 0,Be=F!=null&&F.writable?w(F==null?void 0:F.writable)?F==null?void 0:F.writable:ae(F.writable):void 0;return be({readable:we,writable:Be})}const ye=F==null?void 0:F.then;if(typeof ye=="function"){let we;return Ee(ye,F,Be=>{Be!=null&&we.push(Be),we.push(null)},Be=>{M(we,Be)}),we=new le({objectMode:!0,writable:!1,read(){}})}throw new R(me,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],F)};function xe(ae){let{promise:F,resolve:me}=j();const ye=new Le,we=ye.signal;return{value:ae(async function*(){for(;;){const He=F;F=null;const{chunk:Ue,done:Ge,cb:Me}=await He;if(n.nextTick(Me),Ge)return;if(we.aborted)throw new C(void 0,{cause:we.reason});({promise:F,resolve:me}=j()),yield Ue}}(),{signal:we}),write(He,Ue,Ge){const Me=me;me=null,Me({chunk:He,done:!1,cb:Ge})},final(He){const Ue=me;me=null,Ue({done:!0,cb:He})},destroy(He,Ue){ye.abort(),Ue(He)}}}function be(ae){const F=ae.readable&&typeof ae.readable.read!="function"?H.wrap(ae.readable):ae.readable,me=ae.writable;let ye=!!o(F),we=!!l(me),Be,He,Ue,Ge,Me;function vt(re){const Te=Ge;Ge=null,Te?Te(re):re&&Me.destroy(re)}return Me=new le({readableObjectMode:!!(F!=null&&F.readableObjectMode),writableObjectMode:!!(me!=null&&me.writableObjectMode),readable:ye,writable:we}),we&&(A(me,re=>{we=!1,re&&M(F,re),vt(re)}),Me._write=function(re,Te,ct){me.write(re,Te)?ct():Be=ct},Me._final=function(re){me.end(),He=re},me.on("drain",function(){if(Be){const re=Be;Be=null,re()}}),me.on("finish",function(){if(He){const re=He;He=null,re()}})),ye&&(A(F,re=>{ye=!1,re&&M(F,re),vt(re)}),F.on("readable",function(){if(Ue){const re=Ue;Ue=null,re()}}),F.on("end",function(){Me.push(null)}),Me._read=function(){for(;;){const re=F.read();if(re===null){Ue=Me._read;return}if(!Me.push(re))return}}),Me._destroy=function(re,Te){!re&&Ge!==null&&(re=new C),Ue=null,Be=null,He=null,Ge===null?Te(re):(Ge=Te,M(me,re),M(F,re))},Me}return N9e}var M9e,bKt;function hx(){if(bKt)return M9e;bKt=1;const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:o,ObjectSetPrototypeOf:l}=Uf;M9e=h;const u=Dge(),d=FGe();l(h.prototype,u.prototype),l(h,u);{const E=o(d.prototype);for(let A=0;A{if(r){n?n(r):this.destroy(r);return}o!=null&&this.push(o),this.push(null),n&&n()}):(this.push(null),n&&n())}function ICr(){this._final!==iBe&&iBe.call(this)}px.prototype._final=iBe;px.prototype._transform=function(n,r,o){throw new TCr("_transform()")};px.prototype._write=function(n,r,o){const l=this._readableState,u=this._writableState,d=l.length;this._transform(n,r,(h,w)=>{if(h){o(h);return}w!=null&&this.push(w),u.ended||d===l.length||l.length{l=!0});const u=vhe(n,{readable:r,writable:o},d=>{l=!d});return{destroy:d=>{l||(l=!0,LCr.destroyer(n,d||new BCr("pipe")))},cleanup:u}}function qCr(n){return UCr(n[n.length-1],"streams[stream.length - 1]"),n.pop()}function H9e(n){if(P8(n))return n;if(ode(n))return XCr(n);throw new oBe("val",["Readable","Iterable","AsyncIterable"],n)}async function*XCr(n){B9e||(B9e=Dge()),yield*B9e.prototype[NCr].call(n)}async function Vue(n,r,o,{end:l}){let u,d=null;const h=y=>{if(y&&(u=y),d){const E=d;d=null,E()}},w=()=>new OCr((y,E)=>{u?E(u):d=()=>{u?E(u):y()}});r.on("drain",h);const v=vhe(r,{readable:!1},h);try{r.writableNeedDrain&&await w();for await(const y of n)r.write(y)||await w();l&&(r.end(),await w()),o()}catch(y){o(u!==y?jCr(u,y):y)}finally{v(),r.off("drain",h)}}async function U9e(n,r,o,{end:l}){ID(r)&&(r=r.writable);const u=r.getWriter();try{for await(const d of n)await u.ready,u.write(d).catch(()=>{});await u.ready,l&&await u.close(),o()}catch(d){try{await u.abort(d),o(d)}catch(h){o(h)}}}function JCr(...n){return mcn(n,DCr(qCr(n)))}function mcn(n,r,o){if(n.length===1&&PCr(n[0])&&(n=n[0]),n.length<2)throw new FCr("streams");const l=new KCr,u=l.signal,d=o==null?void 0:o.signal,h=[];GCr(d,"options.signal");function w(){O(new HCr)}W9e=W9e||b1.addAbortListener;let v;d&&(v=W9e(d,w));let y,E;const A=[];let C=0;function R(G){O(G,--C===0)}function O(G,j){var Q;if(G&&(!y||y.code==="ERR_STREAM_PREMATURE_CLOSE")&&(y=G),!(!y&&!j)){for(;A.length;)A.shift()(y);(Q=v)===null||Q===void 0||Q[MCr](),l.abort(),j&&(y||h.forEach(te=>te()),jK.nextTick(r,y,E))}}let M;for(let G=0;G0,pe=Q||(o==null?void 0:o.end)!==!1,Le=G===n.length-1;if(wKt(j)){let Ee=function(le){le&&le.name!=="AbortError"&&le.code!=="ERR_STREAM_PREMATURE_CLOSE"&&R(le)};if(pe){const{destroy:le,cleanup:xe}=mKt(j,Q,te);A.push(le),L9e(j)&&Le&&h.push(xe)}j.on("error",Ee),L9e(j)&&Le&&h.push(()=>{j.removeListener("error",Ee)})}if(G===0)if(typeof j=="function"){if(M=j({signal:u}),!P8(M))throw new D9e("Iterable, AsyncIterable or Stream","source",M)}else P8(j)||ode(j)||ID(j)?M=j:M=gKt.from(j);else if(typeof j=="function"){if(ID(M)){var L;M=H9e((L=M)===null||L===void 0?void 0:L.readable)}else M=H9e(M);if(M=j(M,{signal:u}),Q){if(!P8(M,!0))throw new D9e("AsyncIterable",`transform[${G-1}]`,M)}else{var H;F9e||(F9e=wcn);const Ee=new F9e({objectMode:!0}),le=(H=M)===null||H===void 0?void 0:H.then;if(typeof le=="function")C++,le.call(M,ae=>{E=ae,ae!=null&&Ee.write(ae),pe&&Ee.end(),jK.nextTick(R)},ae=>{Ee.destroy(ae),jK.nextTick(R,ae)});else if(P8(M,!0))C++,Vue(M,Ee,R,{end:pe});else if(j9e(M)||ID(M)){const ae=M.readable||M;C++,Vue(ae,Ee,R,{end:pe})}else throw new D9e("AsyncIterable or Promise","destination",M);M=Ee;const{destroy:xe,cleanup:be}=mKt(M,!1,!0);A.push(xe),Le&&h.push(be)}}else if(wKt(j)){if(ode(M)){C+=2;const Ee=YCr(M,j,R,{end:pe});L9e(j)&&Le&&h.push(Ee)}else if(ID(M)||j9e(M)){const Ee=M.readable||M;C++,Vue(Ee,j,R,{end:pe})}else if(P8(M))C++,Vue(M,j,R,{end:pe});else throw new oBe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else if(VCr(j)){if(ode(M))C++,U9e(H9e(M),j,R,{end:pe});else if(j9e(M)||P8(M))C++,U9e(M,j,R,{end:pe});else if(ID(M))C++,U9e(M.readable,j,R,{end:pe});else throw new oBe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else M=gKt.from(j)}return(u!=null&&u.aborted||d!=null&&d.aborted)&&jK.nextTick(w),M}function YCr(n,r,o,{end:l}){let u=!1;if(r.on("close",()=>{u||o(new WCr)}),n.pipe(r,{end:!1}),l){let d=function(){u=!0,r.end()};zCr(n)?jK.nextTick(d):n.once("end",d)}else o();return vhe(n,{readable:!0,writable:!1},d=>{const h=n._readableState;d&&d.code==="ERR_STREAM_PREMATURE_CLOSE"&&h&&h.ended&&!h.errored&&!h.errorEmitted?n.once("end",o).once("error",o):o(d)}),vhe(r,{readable:!1,writable:!0},o)}var HGe={pipelineImpl:mcn,pipeline:JCr};const{pipeline:QCr}=HGe,zue=hx(),{destroyer:ZCr}=Ij,{isNodeStream:Kue,isReadable:yKt,isWritable:vKt,isWebStream:G9e,isTransformStream:d8,isWritableStream:_Kt,isReadableStream:SKt}=Px,{AbortError:eAr,codes:{ERR_INVALID_ARG_VALUE:EKt,ERR_MISSING_ARGS:tAr}}=M0,nAr=VT;var ycn=function(...r){if(r.length===0)throw new tAr("streams");if(r.length===1)return zue.from(r[0]);const o=[...r];if(typeof r[0]=="function"&&(r[0]=zue.from(r[0])),typeof r[r.length-1]=="function"){const R=r.length-1;r[R]=zue.from(r[R])}for(let R=0;R0&&!(vKt(r[R])||_Kt(r[R])||d8(r[R])))throw new EKt(`streams[${R}]`,o[R],"must be writable")}let l,u,d,h,w;function v(R){const O=h;h=null,O?O(R):R?w.destroy(R):!C&&!A&&w.destroy()}const y=r[0],E=QCr(r,v),A=!!(vKt(y)||_Kt(y)||d8(y)),C=!!(yKt(E)||SKt(E)||d8(E));if(w=new zue({writableObjectMode:!!(y!=null&&y.writableObjectMode),readableObjectMode:!!(E!=null&&E.readableObjectMode),writable:A,readable:C}),A){if(Kue(y))w._write=function(O,M,L){y.write(O,M)?L():l=L},w._final=function(O){y.end(),u=O},y.on("drain",function(){if(l){const O=l;l=null,O()}});else if(G9e(y)){const M=(d8(y)?y.writable:y).getWriter();w._write=async function(L,H,G){try{await M.ready,M.write(L).catch(()=>{}),G()}catch(j){G(j)}},w._final=async function(L){try{await M.ready,M.close().catch(()=>{}),u=L}catch(H){L(H)}}}const R=d8(E)?E.readable:E;nAr(R,()=>{if(u){const O=u;u=null,O()}})}if(C){if(Kue(E))E.on("readable",function(){if(d){const R=d;d=null,R()}}),E.on("end",function(){w.push(null)}),w._read=function(){for(;;){const R=E.read();if(R===null){d=w._read;return}if(!w.push(R))return}};else if(G9e(E)){const O=(d8(E)?E.readable:E).getReader();w._read=async function(){for(;;)try{const{value:M,done:L}=await O.read();if(!w.push(M))return;if(L){w.push(null);return}}catch{return}}}}return w._destroy=function(R,O){!R&&h!==null&&(R=new eAr),d=null,l=null,u=null,h===null?O(R):(h=O,Kue(E)&&ZCr(E,R))},w};const rAr=globalThis.AbortController||$o().AbortController,{codes:{ERR_INVALID_ARG_VALUE:iAr,ERR_INVALID_ARG_TYPE:DJ,ERR_MISSING_ARGS:oAr,ERR_OUT_OF_RANGE:sAr},AbortError:dk}=M0,{validateAbortSignal:yO,validateInteger:kKt,validateObject:vO}=MJ,lAr=Uf.Symbol("kWeak"),aAr=Uf.Symbol("kResistStopPropagation"),{finished:cAr}=VT,uAr=ycn,{addAbortSignalNoValidate:fAr}=Nge,{isWritable:dAr,isNodeStream:hAr}=Px,{deprecate:pAr}=b1,{ArrayPrototypePush:bAr,Boolean:gAr,MathFloor:RKt,Number:wAr,NumberIsNaN:mAr,Promise:xKt,PromiseReject:CKt,PromiseResolve:yAr,PromisePrototypeThen:AKt,Symbol:vcn}=Uf,_he=vcn("kEmpty"),TKt=vcn("kEof");function vAr(n,r){if(r!=null&&vO(r,"options"),(r==null?void 0:r.signal)!=null&&yO(r.signal,"options.signal"),hAr(n)&&!dAr(n))throw new iAr("stream",n,"must be writable");const o=uAr(this,n);return r!=null&&r.signal&&fAr(r.signal,o),o}function Lge(n,r){if(typeof n!="function")throw new DJ("fn",["Function","AsyncFunction"],n);r!=null&&vO(r,"options"),(r==null?void 0:r.signal)!=null&&yO(r.signal,"options.signal");let o=1;(r==null?void 0:r.concurrency)!=null&&(o=RKt(r.concurrency));let l=o-1;return(r==null?void 0:r.highWaterMark)!=null&&(l=RKt(r.highWaterMark)),kKt(o,"options.concurrency",1),kKt(l,"options.highWaterMark",0),l+=o,(async function*(){const d=b1.AbortSignalAny([r==null?void 0:r.signal].filter(gAr)),h=this,w=[],v={signal:d};let y,E,A=!1,C=0;function R(){A=!0,O()}function O(){C-=1,M()}function M(){E&&!A&&C=l||C>=o)&&await new xKt(G=>{E=G})}w.push(TKt)}catch(H){const G=CKt(H);AKt(G,O,R),w.push(G)}finally{A=!0,y&&(y(),y=null)}}L();try{for(;;){for(;w.length>0;){const H=await w[0];if(H===TKt)return;if(d.aborted)throw new dk;H!==_he&&(yield H),w.shift(),M()}await new xKt(H=>{y=H})}}finally{A=!0,E&&(E(),E=null)}}).call(this)}function _Ar(n=void 0){return n!=null&&vO(n,"options"),(n==null?void 0:n.signal)!=null&&yO(n.signal,"options.signal"),(async function*(){let o=0;for await(const u of this){var l;if(n!=null&&(l=n.signal)!==null&&l!==void 0&&l.aborted)throw new dk({cause:n.signal.reason});yield[o++,u]}}).call(this)}async function _cn(n,r=void 0){for await(const o of UGe.call(this,n,r))return!0;return!1}async function SAr(n,r=void 0){if(typeof n!="function")throw new DJ("fn",["Function","AsyncFunction"],n);return!await _cn.call(this,async(...o)=>!await n(...o),r)}async function EAr(n,r){for await(const o of UGe.call(this,n,r))return o}async function kAr(n,r){if(typeof n!="function")throw new DJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u),_he}for await(const l of Lge.call(this,o,r));}function UGe(n,r){if(typeof n!="function")throw new DJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u)?l:_he}return Lge.call(this,o,r)}let RAr=class extends oAr{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function xAr(n,r,o){var l;if(typeof n!="function")throw new DJ("reducer",["Function","AsyncFunction"],n);o!=null&&vO(o,"options"),(o==null?void 0:o.signal)!=null&&yO(o.signal,"options.signal");let u=arguments.length>1;if(o!=null&&(l=o.signal)!==null&&l!==void 0&&l.aborted){const y=new dk(void 0,{cause:o.signal.reason});throw this.once("error",()=>{}),await cAr(this.destroy(y)),y}const d=new rAr,h=d.signal;if(o!=null&&o.signal){const y={once:!0,[lAr]:this,[aAr]:!0};o.signal.addEventListener("abort",()=>d.abort(),y)}let w=!1;try{for await(const y of this){var v;if(w=!0,o!=null&&(v=o.signal)!==null&&v!==void 0&&v.aborted)throw new dk;u?r=await n(r,y,{signal:h}):(r=y,u=!0)}if(!w&&!u)throw new RAr}finally{d.abort()}return r}async function CAr(n){n!=null&&vO(n,"options"),(n==null?void 0:n.signal)!=null&&yO(n.signal,"options.signal");const r=[];for await(const l of this){var o;if(n!=null&&(o=n.signal)!==null&&o!==void 0&&o.aborted)throw new dk(void 0,{cause:n.signal.reason});bAr(r,l)}return r}function AAr(n,r){const o=Lge.call(this,n,r);return(async function*(){for await(const u of o)yield*u}).call(this)}function Scn(n){if(n=wAr(n),mAr(n))return 0;if(n<0)throw new sAr("number",">= 0",n);return n}function TAr(n,r=void 0){return r!=null&&vO(r,"options"),(r==null?void 0:r.signal)!=null&&yO(r.signal,"options.signal"),n=Scn(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new dk;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new dk;n--<=0&&(yield d)}}).call(this)}function $Ar(n,r=void 0){return r!=null&&vO(r,"options"),(r==null?void 0:r.signal)!=null&&yO(r.signal,"options.signal"),n=Scn(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new dk;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new dk;if(n-- >0&&(yield d),n<=0)return}}).call(this)}OGe.streamReturningOperators={asIndexedPairs:pAr(_Ar,"readable.asIndexedPairs will be removed in a future version."),drop:TAr,filter:UGe,flatMap:AAr,map:Lge,take:$Ar,compose:vAr};OGe.promiseReturningOperators={every:SAr,forEach:kAr,reduce:xAr,toArray:CAr,some:_cn,find:EAr};var V9e,$Kt;function Ecn(){if($Kt)return V9e;$Kt=1;const{ArrayPrototypePop:n,Promise:r}=Uf,{isIterable:o,isNodeStream:l,isWebStream:u}=Px,{pipelineImpl:d}=HGe,{finished:h}=VT;kcn();function w(...v){return new r((y,E)=>{let A,C;const R=v[v.length-1];if(R&&typeof R=="object"&&!l(R)&&!o(R)&&!u(R)){const O=n(v);A=O.signal,C=O.end}d(v,(O,M)=>{O?E(O):y(M)},{signal:A,end:C})})}return V9e={finished:h,pipeline:w},V9e}var IKt;function kcn(){if(IKt)return A9e.exports;IKt=1;const{Buffer:n}=Kr,{ObjectDefineProperty:r,ObjectKeys:o,ReflectApply:l}=Uf,{promisify:{custom:u}}=b1,{streamReturningOperators:d,promiseReturningOperators:h}=OGe,{codes:{ERR_ILLEGAL_CONSTRUCTOR:w}}=M0,v=ycn,{setDefaultHighWaterMark:y,getDefaultHighWaterMark:E}=Mge,{pipeline:A}=HGe,{destroyer:C}=Ij,R=VT,O=Ecn(),M=Px,L=A9e.exports=jGe.Stream;L.isDestroyed=M.isDestroyed,L.isDisturbed=M.isDisturbed,L.isErrored=M.isErrored,L.isReadable=M.isReadable,L.isWritable=M.isWritable,L.Readable=Dge();for(const G of o(d)){let Q=function(...te){if(new.target)throw w();return L.Readable.from(l(j,this,te))};const j=d[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}for(const G of o(h)){let Q=function(...te){if(new.target)throw w();return l(j,this,te)};const j=h[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}L.Writable=FGe(),L.Duplex=hx(),L.Transform=bcn,L.PassThrough=wcn,L.pipeline=A;const{addAbortSignal:H}=Nge;return L.addAbortSignal=H,L.finished=R,L.destroy=C,L.compose=v,L.setDefaultHighWaterMark=y,L.getDefaultHighWaterMark=E,r(L,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return O}}),r(A,u,{__proto__:null,enumerable:!0,get(){return O.pipeline}}),r(R,u,{__proto__:null,enumerable:!0,get(){return O.finished}}),L.Stream=L,L._isUint8Array=function(j){return j instanceof Uint8Array},L._uint8ArrayToBuffer=function(j){return n.from(j.buffer,j.byteOffset,j.byteLength)},A9e.exports}(function(n){const r=kcn(),o=Ecn(),l=r.Readable.destroy;n.exports=r.Readable,n.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer,n.exports._isUint8Array=r._isUint8Array,n.exports.isDisturbed=r.isDisturbed,n.exports.isErrored=r.isErrored,n.exports.isReadable=r.isReadable,n.exports.Readable=r.Readable,n.exports.Writable=r.Writable,n.exports.Duplex=r.Duplex,n.exports.Transform=r.Transform,n.exports.PassThrough=r.PassThrough,n.exports.addAbortSignal=r.addAbortSignal,n.exports.finished=r.finished,n.exports.destroy=r.destroy,n.exports.destroy=l,n.exports.pipeline=r.pipeline,n.exports.compose=r.compose,Object.defineProperty(r,"promises",{configurable:!0,enumerable:!0,get(){return o}}),n.exports.Stream=r.Stream,n.exports.default=n.exports})(Nan);var IAr=Nan.exports;class PAr{constructor(r){this.stream=r,this.array=[]}push(r){this.array.push(r)}end(){this.stream.push(this.array),this.stream.push(null)}}class OAr{constructor(r){this.stream=r,this.first=!0,this.stream.push("[")}push(r){this.first?this.first=!1:this.stream.push(","),this.stream.push(JSON.stringify(r))}end(){this.stream.push("]"),this.stream.push(null)}}class kq extends IAr.Readable{constructor(r,{encoding:o="object"}={}){if(super({objectMode:!0,read:()=>{}}),o==="object"&&(this.encoder=new PAr(this)),o==="string"&&(this.encoder=new OAr(this)),!this.encoder)throw new Error(`unknown encoding: ${o}`);r.on("data",l=>{const u={};let d=u;l.graph.termType!=="DefaultGraph"&&(u["@id"]=l.graph.value,u["@graph"]={},d=u["@graph"]),d["@id"]=kq.subjectValue(l.subject),l.predicate.value==="http://www.w3.org/1999/02/22-rdf-syntax-ns#type"?d["@type"]=kq.subjectValue(l.object):d[l.predicate.value]=kq.objectValue(l.object),this.encoder.push(u)}),r.on("end",()=>this.encoder.end()),r.on("error",l=>this.emit("error",l))}static subjectValue(r){return r.termType==="BlankNode"?"_:"+r.value:r.value}static objectValue(r){return r.termType==="NamedNode"?{"@id":r.value}:r.termType==="BlankNode"?{"@id":"_:"+r.value}:r.language?{"@language":r.language,"@value":r.value}:r.datatype&&r.datatype.value!=="http://www.w3.org/2001/XMLSchema#string"?{"@type":r.datatype.value,"@value":r.value}:r.value}}class NAr extends Jpe{constructor(r){super(kq,r)}}class MAr extends NAr{constructor({...r}={}){super({...r,encoding:"string"})}}var Rcn={};/*! +Tried mapping ${d} to ${JSON.stringify(h)}`,Sr.ERROR_CODES.INVALID_KEYWORD_ALIAS);if(h&&Xo.Util.isPotentialKeyword(Xo.Util.getContextValueId(h))&&h["@prefix"]===!0)throw new Sr.ErrorCoded(`Tried to use keyword aliases as prefix: '${d}': '${JSON.stringify(h)}'`,Sr.ERROR_CODES.INVALID_TERM_DEFINITION);for(;Xo.Util.isPrefixValue(u[d]);){const w=u[d];let v=!1;if(typeof w=="string")u[d]=r.expandTerm(w,!0),v=v||w!==u[d];else{const y=w["@id"],E=w["@type"],A=!("@prefix"in w)||Xo.Util.isValidIri(d);if("@id"in w)y!=null&&typeof y=="string"&&(u[d]=Object.assign(Object.assign({},u[d]),{"@id":r.expandTerm(y,!0)}),v=v||y!==u[d]["@id"]);else if(!Xo.Util.isPotentialKeyword(d)&&A){const C=r.expandTerm(d,!0);C!==d&&(u[d]=Object.assign(Object.assign({},u[d]),{"@id":C}),v=!0)}if(E&&typeof E=="string"&&E!=="@vocab"&&(!w["@container"]||!w["@container"]["@type"])&&A){let C=r.expandTerm(E,!0);o&&E===C&&(C=r.expandTerm(E,!1)),C!==E&&(v=!0,u[d]=Object.assign(Object.assign({},u[d]),{"@type":C}))}}if(!v)break}}}normalize(r,{processingMode:o,normalizeLanguageTags:l}){if(l||o===1)for(const u of Object.keys(r))if(u==="@language"&&typeof r[u]=="string")r[u]=r[u].toLowerCase();else{const d=r[u];if(d&&typeof d=="object"&&typeof d["@language"]=="string"){const h=d["@language"].toLowerCase();h!==d["@language"]&&(r[u]=Object.assign(Object.assign({},d),{"@language":h}))}}}containersToHash(r){for(const o of Object.keys(r)){const l=r[o];if(l&&typeof l=="object"){if(typeof l["@container"]=="string")r[o]=Object.assign(Object.assign({},l),{"@container":{[l["@container"]]:!0}});else if(Array.isArray(l["@container"])){const u={};for(const d of l["@container"])u[d]=!0;r[o]=Object.assign(Object.assign({},l),{"@container":u})}}}}applyScopedProtected(r,{processingMode:o},l){if(o&&o>=1.1&&r["@protected"]){for(const u of Object.keys(r))if(!Xo.Util.isReservedInternalKeyword(u)&&!Xo.Util.isPotentialKeyword(u)&&!Xo.Util.isTermProtected(r,u)){const d=r[u];d&&typeof d=="object"?"@protected"in r[u]||(r[u]=Object.assign(Object.assign({},r[u]),{"@protected":!0})):(r[u]={"@id":d,"@protected":!0},Xo.Util.isSimpleTermDefinitionPrefix(d,l)&&(r[u]=Object.assign(Object.assign({},r[u]),{"@prefix":!0})))}delete r["@protected"]}}validateKeywordRedefinitions(r,o,l,u){for(const d of u??Object.keys(o))if(Xo.Util.isTermProtected(r,d)&&(typeof o[d]=="string"?o[d]={"@id":o[d],"@protected":!0}:o[d]=Object.assign(Object.assign({},o[d]),{"@protected":!0}),!Xo.Util.deepEqual(r[d],o[d])))throw new Sr.ErrorCoded(`Attempted to override the protected keyword ${d} from ${JSON.stringify(Xo.Util.getContextValueId(r[d]))} to ${JSON.stringify(Xo.Util.getContextValueId(o[d]))}`,Sr.ERROR_CODES.PROTECTED_TERM_REDEFINITION)}validate(r,{processingMode:o}){for(const l of Object.keys(r)){if(Xo.Util.isReservedInternalKeyword(l))continue;if(l==="")throw new Sr.ErrorCoded(`The empty term is not allowed, got: '${l}': '${JSON.stringify(r[l])}'`,Sr.ERROR_CODES.INVALID_TERM_DEFINITION);const u=r[l],d=typeof u;if(Xo.Util.isPotentialKeyword(l)){switch(l.substr(1)){case"vocab":if(u!==null&&d!=="string")throw new Sr.ErrorCoded(`Found an invalid @vocab IRI: ${u}`,Sr.ERROR_CODES.INVALID_VOCAB_MAPPING);break;case"base":if(u!==null&&d!=="string")throw new Sr.ErrorCoded(`Found an invalid @base IRI: ${r[l]}`,Sr.ERROR_CODES.INVALID_BASE_IRI);break;case"language":u!==null&&IR.validateLanguage(u,!0,Sr.ERROR_CODES.INVALID_DEFAULT_LANGUAGE);break;case"version":if(u!==null&&d!=="number")throw new Sr.ErrorCoded(`Found an invalid @version number: ${u}`,Sr.ERROR_CODES.INVALID_VERSION_VALUE);break;case"direction":u!==null&&IR.validateDirection(u,!0);break;case"propagate":if(o===1)throw new Sr.ErrorCoded(`Found an illegal @propagate keyword: ${u}`,Sr.ERROR_CODES.INVALID_CONTEXT_ENTRY);if(u!==null&&d!=="boolean")throw new Sr.ErrorCoded(`Found an invalid @propagate value: ${u}`,Sr.ERROR_CODES.INVALID_PROPAGATE_VALUE);break}if(Xo.Util.isValidKeyword(l)&&Xo.Util.isValidKeyword(Xo.Util.getContextValueId(u)))throw new Sr.ErrorCoded(`Illegal keyword alias in term value, found: '${l}': '${Xo.Util.getContextValueId(u)}'`,Sr.ERROR_CODES.KEYWORD_REDEFINITION);continue}if(u!==null)switch(d){case"string":if(Xo.Util.getPrefix(u,r)===l)throw new Sr.ErrorCoded(`Detected cyclical IRI mapping in context entry: '${l}': '${JSON.stringify(u)}'`,Sr.ERROR_CODES.CYCLIC_IRI_MAPPING);if(Xo.Util.isValidIriWeak(l)){if(u==="@type")throw new Sr.ErrorCoded(`IRIs can not be mapped to @type, found: '${l}': '${u}'`,Sr.ERROR_CODES.INVALID_IRI_MAPPING);if(Xo.Util.isValidIri(u)&&u!==new lS.JsonLdContextNormalized(r).expandTerm(l))throw new Sr.ErrorCoded(`IRIs can not be mapped to other IRIs, found: '${l}': '${u}'`,Sr.ERROR_CODES.INVALID_IRI_MAPPING)}break;case"object":if(!Xo.Util.isCompactIri(l)&&!("@id"in u)&&(u["@type"]==="@id"?!r["@base"]:!r["@vocab"]))throw new Sr.ErrorCoded(`Missing @id in context entry: '${l}': '${JSON.stringify(u)}'`,Sr.ERROR_CODES.INVALID_IRI_MAPPING);for(const h of Object.keys(u)){const w=u[h];if(w)switch(h){case"@id":if(Xo.Util.isValidKeyword(w)&&w!=="@type"&&w!=="@id"&&w!=="@graph"&&w!=="@nest")throw new Sr.ErrorCoded(`Illegal keyword alias in term value, found: '${l}': '${JSON.stringify(u)}'`,Sr.ERROR_CODES.INVALID_IRI_MAPPING);if(Xo.Util.isValidIriWeak(l)){if(w==="@type")throw new Sr.ErrorCoded(`IRIs can not be mapped to @type, found: '${l}': '${JSON.stringify(u)}'`,Sr.ERROR_CODES.INVALID_IRI_MAPPING);if(Xo.Util.isValidIri(w)&&w!==new lS.JsonLdContextNormalized(r).expandTerm(l))throw new Sr.ErrorCoded(`IRIs can not be mapped to other IRIs, found: '${l}': '${JSON.stringify(u)}'`,Sr.ERROR_CODES.INVALID_IRI_MAPPING)}if(typeof w!="string")throw new Sr.ErrorCoded(`Detected non-string @id in context entry: '${l}': '${JSON.stringify(u)}'`,Sr.ERROR_CODES.INVALID_IRI_MAPPING);if(Xo.Util.getPrefix(w,r)===l)throw new Sr.ErrorCoded(`Detected cyclical IRI mapping in context entry: '${l}': '${JSON.stringify(u)}'`,Sr.ERROR_CODES.CYCLIC_IRI_MAPPING);break;case"@type":if(u["@container"]==="@type"&&w!=="@id"&&w!=="@vocab")throw new Sr.ErrorCoded(`@container: @type only allows @type: @id or @vocab, but got: '${l}': '${w}'`,Sr.ERROR_CODES.INVALID_TYPE_MAPPING);if(typeof w!="string")throw new Sr.ErrorCoded(`The value of an '@type' must be a string, got '${JSON.stringify(d)}'`,Sr.ERROR_CODES.INVALID_TYPE_MAPPING);if(w!=="@id"&&w!=="@vocab"&&(o===1||w!=="@json")&&(o===1||w!=="@none")&&(w[0]==="_"||!Xo.Util.isValidIri(w)))throw new Sr.ErrorCoded(`A context @type must be an absolute IRI, found: '${l}': '${w}'`,Sr.ERROR_CODES.INVALID_TYPE_MAPPING);break;case"@reverse":if(typeof w=="string"&&u["@id"]&&u["@id"]!==w)throw new Sr.ErrorCoded(`Found non-matching @id and @reverse term values in '${l}':'${w}' and '${u["@id"]}'`,Sr.ERROR_CODES.INVALID_REVERSE_PROPERTY);if("@nest"in u)throw new Sr.ErrorCoded(`@nest is not allowed in the reverse property '${l}'`,Sr.ERROR_CODES.INVALID_REVERSE_PROPERTY);break;case"@container":if(o===1&&(Object.keys(w).length>1||Xo.Util.CONTAINERS_1_0.indexOf(Object.keys(w)[0])<0))throw new Sr.ErrorCoded(`Invalid term @container for '${l}' ('${Object.keys(w)}') in 1.0, must be only one of ${Xo.Util.CONTAINERS_1_0.join(", ")}`,Sr.ERROR_CODES.INVALID_CONTAINER_MAPPING);for(const v of Object.keys(w)){if(v==="@list"&&u["@reverse"])throw new Sr.ErrorCoded(`Term value can not be @container: @list and @reverse at the same time on '${l}'`,Sr.ERROR_CODES.INVALID_REVERSE_PROPERTY);if(Xo.Util.CONTAINERS.indexOf(v)<0)throw new Sr.ErrorCoded(`Invalid term @container for '${l}' ('${v}'), must be one of ${Xo.Util.CONTAINERS.join(", ")}`,Sr.ERROR_CODES.INVALID_CONTAINER_MAPPING)}break;case"@language":IR.validateLanguage(w,!0,Sr.ERROR_CODES.INVALID_LANGUAGE_MAPPING);break;case"@direction":IR.validateDirection(w,!0);break;case"@prefix":if(w!==null&&typeof w!="boolean")throw new Sr.ErrorCoded(`Found an invalid term @prefix boolean in: '${l}': '${JSON.stringify(u)}'`,Sr.ERROR_CODES.INVALID_PREFIX_VALUE);if(!("@id"in u)&&!Xo.Util.isValidIri(l))throw new Sr.ErrorCoded(`Invalid @prefix definition for '${l}' ('${JSON.stringify(u)}'`,Sr.ERROR_CODES.INVALID_TERM_DEFINITION);break;case"@index":if(o===1||!u["@container"]||!u["@container"]["@index"])throw new Sr.ErrorCoded(`Attempt to add illegal key to value object: '${l}': '${JSON.stringify(u)}'`,Sr.ERROR_CODES.INVALID_TERM_DEFINITION);break;case"@nest":if(Xo.Util.isPotentialKeyword(w)&&w!=="@nest")throw new Sr.ErrorCoded(`Found an invalid term @nest value in: '${l}': '${JSON.stringify(u)}'`,Sr.ERROR_CODES.INVALID_NEST_VALUE)}}break;default:throw new Sr.ErrorCoded(`Found an invalid term value: '${l}': '${u}'`,Sr.ERROR_CODES.INVALID_TERM_DEFINITION)}}}applyBaseEntry(r,o,l){return typeof r=="string"||(l&&!("@base"in r)&&o.parentContext&&typeof o.parentContext=="object"&&"@base"in o.parentContext&&(r["@base"]=o.parentContext["@base"],o.parentContext["@__baseDocument"]&&(r["@__baseDocument"]=!0)),o.baseIRI&&!o.external&&("@base"in r?r["@base"]!==null&&typeof r["@base"]=="string"&&!Xo.Util.isValidIri(r["@base"])&&(r["@base"]=(0,sHt.resolve)(r["@base"],o.parentContext&&o.parentContext["@base"]||o.baseIRI)):(r["@base"]=o.baseIRI,r["@__baseDocument"]=!0))),r}normalizeContextIri(r,o){if(!Xo.Util.isValidIri(r))try{r=(0,sHt.resolve)(r,o)}catch{throw new Error(`Invalid context IRI: ${r}`)}return this.redirectSchemaOrgHttps&&r.startsWith("http://schema.org")&&(r="https://schema.org/"),r}async parseInnerContexts(r,o,l){for(const u of l??Object.keys(r)){const d=r[u];if(d&&typeof d=="object"&&"@context"in d&&d["@context"]!==null&&!o.ignoreScopedContexts){if(this.validateContext)try{const h=Object.assign(Object.assign({},r),{[u]:Object.assign({},r[u])});delete h[u]["@context"],await this.parse(d["@context"],Object.assign(Object.assign({},o),{external:!1,parentContext:h,ignoreProtection:!0,ignoreRemoteScopedContexts:!0,ignoreScopedContexts:!0}))}catch(h){throw new Sr.ErrorCoded(h.message,Sr.ERROR_CODES.INVALID_SCOPED_CONTEXT)}r[u]=Object.assign(Object.assign({},d),{"@context":(await this.parse(d["@context"],Object.assign(Object.assign({},o),{external:!1,minimalProcessing:!0,ignoreRemoteScopedContexts:!0,parentContext:r}))).getContextRaw()})}}return r}async parse(r,o={},l={}){const{baseIRI:u,parentContext:d,external:h,processingMode:w=IR.DEFAULT_PROCESSING_MODE,normalizeLanguageTags:v,ignoreProtection:y,minimalProcessing:E}=o,A=o.remoteContexts||{};if(Object.keys(A).length>=this.remoteContextsDepthLimit)throw new Sr.ErrorCoded("Detected an overflow in remote context inclusions: "+Object.keys(A),Sr.ERROR_CODES.CONTEXT_OVERFLOW);if(r==null){if(!y&&d&&Xo.Util.hasProtectedTerms(d))throw new Sr.ErrorCoded("Illegal context nullification when terms are protected",Sr.ERROR_CODES.INVALID_CONTEXT_NULLIFICATION);return new lS.JsonLdContextNormalized(this.applyBaseEntry({},o,!1))}else if(typeof r=="string"){const C=this.normalizeContextIri(r,u),R=this.getOverriddenLoad(C,o);if(R)return new lS.JsonLdContextNormalized(R);const O=await this.parse(await this.load(C),Object.assign(Object.assign({},o),{baseIRI:C,external:!0,remoteContexts:Object.assign(Object.assign({},A),{[C]:!0})}));return this.applyBaseEntry(O.getContextRaw(),o,!0),O}else if(Array.isArray(r)){const C=[],R=await Promise.all(r.map((M,L)=>{if(typeof M=="string"){const H=this.normalizeContextIri(M,u);C[L]=H;const G=this.getOverriddenLoad(H,o);return G||this.load(H)}else return M}));if(E)return new lS.JsonLdContextNormalized(R);const O=await R.reduce((M,L,H)=>M.then(G=>this.parse(L,Object.assign(Object.assign({},o),{baseIRI:C[H]||o.baseIRI,external:!!C[H]||o.external,parentContext:G.getContextRaw(),remoteContexts:C[H]?Object.assign(Object.assign({},A),{[C[H]]:!0}):A}),{skipValidation:H=1.1){if(typeof r["@import"]!="string")throw new Sr.ErrorCoded("An @import value must be a string, but got "+typeof r["@import"],Sr.ERROR_CODES.INVALID_IMPORT_VALUE);C=await this.loadImportContext(this.normalizeContextIri(r["@import"],u)),delete r["@import"]}else throw new Sr.ErrorCoded("Context importing is not supported in JSON-LD 1.0",Sr.ERROR_CODES.INVALID_CONTEXT_ENTRY);this.applyScopedProtected(C,{processingMode:w},lS.defaultExpandOptions);const R=Object.assign(C,r);this.idifyReverseTerms(R),this.normalize(R,{processingMode:w,normalizeLanguageTags:v}),this.applyScopedProtected(R,{processingMode:w},lS.defaultExpandOptions);const O=Object.keys(R),M=[];if(typeof d=="object")for(const H in d)H in R?M.push(H):R[H]=d[H];await this.parseInnerContexts(R,o,O);const L=new lS.JsonLdContextNormalized(R);return(R&&R["@version"]||IR.DEFAULT_PROCESSING_MODE)>=1.1&&(r["@vocab"]&&typeof r["@vocab"]=="string"||r["@vocab"]==="")&&(d&&"@vocab"in d&&r["@vocab"].indexOf(":")<0?R["@vocab"]=d["@vocab"]+r["@vocab"]:(Xo.Util.isCompactIri(r["@vocab"])||r["@vocab"]in R)&&(R["@vocab"]=L.expandTerm(r["@vocab"],!0))),this.expandPrefixedTerms(L,this.expandContentTypeToBase,O),!y&&d&&w>=1.1&&this.validateKeywordRedefinitions(d,R,lS.defaultExpandOptions,M),this.validateContext&&!l.skipValidation&&this.validate(R,{processingMode:w}),L}else throw new Sr.ErrorCoded(`Tried parsing a context that is not a string, array or object, but got ${r}`,Sr.ERROR_CODES.INVALID_LOCAL_CONTEXT)}async load(r){const o=this.documentCache[r];if(o)return o;let l;try{l=await this.documentLoader.load(r)}catch(u){throw new Sr.ErrorCoded(`Failed to load remote context ${r}: ${u.message}`,Sr.ERROR_CODES.LOADING_REMOTE_CONTEXT_FAILED)}if(!("@context"in l))throw new Sr.ErrorCoded(`Missing @context in remote context at ${r}`,Sr.ERROR_CODES.INVALID_REMOTE_CONTEXT);return this.documentCache[r]=l["@context"]}getOverriddenLoad(r,o){if(r in(o.remoteContexts||{})){if(o.ignoreRemoteScopedContexts)return r;throw new Sr.ErrorCoded("Detected a cyclic context inclusion of "+r,Sr.ERROR_CODES.RECURSIVE_CONTEXT_INCLUSION)}return null}async loadImportContext(r){let o=await this.load(r);if(typeof o!="object"||Array.isArray(o))throw new Sr.ErrorCoded("An imported context must be a single object: "+r,Sr.ERROR_CODES.INVALID_REMOTE_CONTEXT);if("@import"in o)throw new Sr.ErrorCoded("An imported context can not import another context: "+r,Sr.ERROR_CODES.INVALID_CONTEXT_ENTRY);return o=Object.assign({},o),this.containersToHash(o),o}}IR.DEFAULT_PROCESSING_MODE=1.1;tbe.ContextParser=IR;var Crn={};Object.defineProperty(Crn,"__esModule",{value:!0});var Arn={};Object.defineProperty(Arn,"__esModule",{value:!0});(function(n){var r=fu&&fu.__createBinding||(Object.create?function(l,u,d,h){h===void 0&&(h=d);var w=Object.getOwnPropertyDescriptor(u,d);(!w||("get"in w?!u.__esModule:w.writable||w.configurable))&&(w={enumerable:!0,get:function(){return u[d]}}),Object.defineProperty(l,h,w)}:function(l,u,d,h){h===void 0&&(h=d),l[h]=u[d]}),o=fu&&fu.__exportStar||function(l,u){for(var d in l)d!=="default"&&!Object.prototype.hasOwnProperty.call(u,d)&&r(u,l,d)};Object.defineProperty(n,"__esModule",{value:!0}),o(tbe,n),o(hj,n),o(yJ,n),o(Crn,n),o(Arn,n),o(EUe,n),o(pj,n)})(a1);var Trn={exports:{}},PNe={exports:{}},Lf={ArrayIsArray(n){return Array.isArray(n)},ArrayPrototypeIncludes(n,r){return n.includes(r)},ArrayPrototypeIndexOf(n,r){return n.indexOf(r)},ArrayPrototypeJoin(n,r){return n.join(r)},ArrayPrototypeMap(n,r){return n.map(r)},ArrayPrototypePop(n,r){return n.pop(r)},ArrayPrototypePush(n,r){return n.push(r)},ArrayPrototypeSlice(n,r,o){return n.slice(r,o)},Error,FunctionPrototypeCall(n,r,...o){return n.call(r,...o)},FunctionPrototypeSymbolHasInstance(n,r){return Function.prototype[Symbol.hasInstance].call(n,r)},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(n,r){return Object.defineProperties(n,r)},ObjectDefineProperty(n,r,o){return Object.defineProperty(n,r,o)},ObjectGetOwnPropertyDescriptor(n,r){return Object.getOwnPropertyDescriptor(n,r)},ObjectKeys(n){return Object.keys(n)},ObjectSetPrototypeOf(n,r){return Object.setPrototypeOf(n,r)},Promise,PromisePrototypeCatch(n,r){return n.catch(r)},PromisePrototypeThen(n,r,o){return n.then(r,o)},PromiseReject(n){return Promise.reject(n)},PromiseResolve(n){return Promise.resolve(n)},ReflectApply:Reflect.apply,RegExpPrototypeTest(n,r){return n.test(r)},SafeSet:Set,String,StringPrototypeSlice(n,r,o){return n.slice(r,o)},StringPrototypeToLowerCase(n){return n.toLowerCase()},StringPrototypeToUpperCase(n){return n.toUpperCase()},StringPrototypeTrim(n){return n.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(n,r,o){return n.set(r,o)},Boolean,Uint8Array},$rn={exports:{}};(function(n){const r=Kr,{kResistStopPropagation:o,SymbolDispose:l}=Lf,u=globalThis.AbortSignal||$o().AbortSignal,d=globalThis.AbortController||$o().AbortController,h=Object.getPrototypeOf(async function(){}).constructor,w=globalThis.Blob||r.Blob,v=typeof w<"u"?function(R){return R instanceof w}:function(R){return!1},y=(C,R)=>{if(C!==void 0&&(C===null||typeof C!="object"||!("aborted"in C)))throw new ERR_INVALID_ARG_TYPE(R,"AbortSignal",C)},E=(C,R)=>{if(typeof C!="function")throw new ERR_INVALID_ARG_TYPE(R,"Function",C)};class A extends Error{constructor(R){if(!Array.isArray(R))throw new TypeError(`Expected input to be an Array, got ${typeof R}`);let O="";for(let M=0;M{C=M,R=L}),resolve:C,reject:R}},promisify(C){return new Promise((R,O)=>{C((M,...L)=>M?O(M):R(...L))})},debuglog(){return function(){}},format(C,...R){return C.replace(/%([sdifj])/g,function(...[O,M]){const L=R.shift();return M==="f"?L.toFixed(6):M==="j"?JSON.stringify(L):M==="s"&&typeof L=="object"?`${L.constructor!==Object?L.constructor.name:""} {}`.trim():L.toString()})},inspect(C){switch(typeof C){case"string":if(C.includes("'"))if(C.includes('"')){if(!C.includes("`")&&!C.includes("${"))return`\`${C}\``}else return`"${C}"`;return`'${C}'`;case"number":return isNaN(C)?"NaN":Object.is(C,-0)?String(C):C;case"bigint":return`${String(C)}n`;case"boolean":case"undefined":return String(C);case"object":return"{}"}},types:{isAsyncFunction(C){return C instanceof h},isArrayBufferView(C){return ArrayBuffer.isView(C)}},isBlob:v,deprecate(C,R){return C},addAbortListener:Ns.addAbortListener||function(R,O){if(R===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",R);y(R,"signal"),E(O,"listener");let M;return R.aborted?queueMicrotask(()=>O()):(R.addEventListener("abort",O,{__proto__:null,once:!0,[o]:!0}),M=()=>{R.removeEventListener("abort",O)}),{__proto__:null,[l](){var L;(L=M)===null||L===void 0||L()}}},AbortSignalAny:u.any||function(R){if(R.length===1)return R[0];const O=new d,M=()=>O.abort();return R.forEach(L=>{y(L,"signals"),L.addEventListener("abort",M,{once:!0})}),O.signal.addEventListener("abort",()=>{R.forEach(L=>L.removeEventListener("abort",M))},{once:!0}),O.signal}},n.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})($rn);var c1=$rn.exports,kUe={};const{format:Ucr,inspect:ihe,AggregateError:Gcr}=c1,Vcr=globalThis.AggregateError||Gcr,zcr=Symbol("kIsNodeError"),Kcr=["string","function","number","object","Function","Object","boolean","bigint","symbol"],qcr=/^([A-Z][a-z0-9]*)+$/,Xcr="__node_internal_",nbe={};function iP(n,r){if(!n)throw new nbe.ERR_INTERNAL_ASSERTION(r)}function lHt(n){let r="",o=n.length;const l=n[0]==="-"?1:0;for(;o>=l+4;o-=3)r=`_${n.slice(o-3,o)}${r}`;return`${n.slice(0,o)}${r}`}function Jcr(n,r,o){if(typeof r=="function")return iP(r.length<=o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${r.length}).`),r(...o);const l=(r.match(/%[dfijoOs]/g)||[]).length;return iP(l===o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${l}).`),o.length===0?r:Ucr(r,...o)}function Jp(n,r,o){o||(o=Error);class l extends o{constructor(...d){super(Jcr(n,r,d))}toString(){return`${this.name} [${n}]: ${this.message}`}}Object.defineProperties(l.prototype,{name:{value:o.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${n}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),l.prototype.code=n,l.prototype[zcr]=!0,nbe[n]=l}function aHt(n){const r=Xcr+n.name;return Object.defineProperty(n,"name",{value:r}),n}function Ycr(n,r){if(n&&r&&n!==r){if(Array.isArray(r.errors))return r.errors.push(n),r;const o=new Vcr([r,n],r.message);return o.code=r.code,o}return n||r}let Qcr=class extends Error{constructor(r="The operation was aborted",o=void 0){if(o!==void 0&&typeof o!="object")throw new nbe.ERR_INVALID_ARG_TYPE("options","Object",o);super(r,o),this.code="ABORT_ERR",this.name="AbortError"}};Jp("ERR_ASSERTION","%s",Error);Jp("ERR_INVALID_ARG_TYPE",(n,r,o)=>{iP(typeof n=="string","'name' must be a string"),Array.isArray(r)||(r=[r]);let l="The ";n.endsWith(" argument")?l+=`${n} `:l+=`"${n}" ${n.includes(".")?"property":"argument"} `,l+="must be ";const u=[],d=[],h=[];for(const v of r)iP(typeof v=="string","All expected entries have to be of type string"),Kcr.includes(v)?u.push(v.toLowerCase()):qcr.test(v)?d.push(v):(iP(v!=="object",'The value "object" should be written as "Object"'),h.push(v));if(d.length>0){const v=u.indexOf("object");v!==-1&&(u.splice(u,v,1),d.push("Object"))}if(u.length>0){switch(u.length){case 1:l+=`of type ${u[0]}`;break;case 2:l+=`one of type ${u[0]} or ${u[1]}`;break;default:{const v=u.pop();l+=`one of type ${u.join(", ")}, or ${v}`}}(d.length>0||h.length>0)&&(l+=" or ")}if(d.length>0){switch(d.length){case 1:l+=`an instance of ${d[0]}`;break;case 2:l+=`an instance of ${d[0]} or ${d[1]}`;break;default:{const v=d.pop();l+=`an instance of ${d.join(", ")}, or ${v}`}}h.length>0&&(l+=" or ")}switch(h.length){case 0:break;case 1:h[0].toLowerCase()!==h[0]&&(l+="an "),l+=`${h[0]}`;break;case 2:l+=`one of ${h[0]} or ${h[1]}`;break;default:{const v=h.pop();l+=`one of ${h.join(", ")}, or ${v}`}}if(o==null)l+=`. Received ${o}`;else if(typeof o=="function"&&o.name)l+=`. Received function ${o.name}`;else if(typeof o=="object"){var w;if((w=o.constructor)!==null&&w!==void 0&&w.name)l+=`. Received an instance of ${o.constructor.name}`;else{const v=ihe(o,{depth:-1});l+=`. Received ${v}`}}else{let v=ihe(o,{colors:!1});v.length>25&&(v=`${v.slice(0,25)}...`),l+=`. Received type ${typeof o} (${v})`}return l},TypeError);Jp("ERR_INVALID_ARG_VALUE",(n,r,o="is invalid")=>{let l=ihe(r);return l.length>128&&(l=l.slice(0,128)+"..."),`The ${n.includes(".")?"property":"argument"} '${n}' ${o}. Received ${l}`},TypeError);Jp("ERR_INVALID_RETURN_VALUE",(n,r,o)=>{var l;const u=o!=null&&(l=o.constructor)!==null&&l!==void 0&&l.name?`instance of ${o.constructor.name}`:`type ${typeof o}`;return`Expected ${n} to be returned from the "${r}" function but got ${u}.`},TypeError);Jp("ERR_MISSING_ARGS",(...n)=>{iP(n.length>0,"At least one arg needs to be specified");let r;const o=n.length;switch(n=(Array.isArray(n)?n:[n]).map(l=>`"${l}"`).join(" or "),o){case 1:r+=`The ${n[0]} argument`;break;case 2:r+=`The ${n[0]} and ${n[1]} arguments`;break;default:{const l=n.pop();r+=`The ${n.join(", ")}, and ${l} arguments`}break}return`${r} must be specified`},TypeError);Jp("ERR_OUT_OF_RANGE",(n,r,o)=>{iP(r,'Missing "range" argument');let l;return Number.isInteger(o)&&Math.abs(o)>2**32?l=lHt(String(o)):typeof o=="bigint"?(l=String(o),(o>2n**32n||o<-(2n**32n))&&(l=lHt(l)),l+="n"):l=ihe(o),`The value of "${n}" is out of range. It must be ${r}. Received ${l}`},RangeError);Jp("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);Jp("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);Jp("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);Jp("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);Jp("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);Jp("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Jp("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);Jp("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);Jp("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);Jp("ERR_STREAM_WRITE_AFTER_END","write after end",Error);Jp("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var T0={AbortError:Qcr,aggregateTwoErrors:aHt(Ycr),hideStackFrames:aHt,codes:nbe};const{ArrayIsArray:RUe,ArrayPrototypeIncludes:Irn,ArrayPrototypeJoin:Prn,ArrayPrototypeMap:Zcr,NumberIsInteger:xUe,NumberIsNaN:eur,NumberMAX_SAFE_INTEGER:tur,NumberMIN_SAFE_INTEGER:nur,NumberParseInt:rur,ObjectPrototypeHasOwnProperty:iur,RegExpPrototypeExec:Orn,String:our,StringPrototypeToUpperCase:sur,StringPrototypeTrim:lur}=Lf,{hideStackFrames:pv,codes:{ERR_SOCKET_BAD_PORT:aur,ERR_INVALID_ARG_TYPE:Kb,ERR_INVALID_ARG_VALUE:bj,ERR_OUT_OF_RANGE:xP,ERR_UNKNOWN_SIGNAL:cHt}}=T0,{normalizeEncoding:cur}=c1,{isAsyncFunction:uur,isArrayBufferView:fur}=c1.types,uHt={};function dur(n){return n===(n|0)}function hur(n){return n===n>>>0}const pur=/^[0-7]+$/,bur="must be a 32-bit unsigned integer or an octal string";function gur(n,r,o){if(typeof n>"u"&&(n=o),typeof n=="string"){if(Orn(pur,n)===null)throw new bj(r,n,bur);n=rur(n,8)}return Nrn(n,r),n}const wur=pv((n,r,o=nur,l=tur)=>{if(typeof n!="number")throw new Kb(r,"number",n);if(!xUe(n))throw new xP(r,"an integer",n);if(nl)throw new xP(r,`>= ${o} && <= ${l}`,n)}),mur=pv((n,r,o=-2147483648,l=2147483647)=>{if(typeof n!="number")throw new Kb(r,"number",n);if(!xUe(n))throw new xP(r,"an integer",n);if(nl)throw new xP(r,`>= ${o} && <= ${l}`,n)}),Nrn=pv((n,r,o=!1)=>{if(typeof n!="number")throw new Kb(r,"number",n);if(!xUe(n))throw new xP(r,"an integer",n);const l=o?1:0,u=4294967295;if(nu)throw new xP(r,`>= ${l} && <= ${u}`,n)});function CUe(n,r){if(typeof n!="string")throw new Kb(r,"string",n)}function yur(n,r,o=void 0,l){if(typeof n!="number")throw new Kb(r,"number",n);if(o!=null&&nl||(o!=null||l!=null)&&eur(n))throw new xP(r,`${o!=null?`>= ${o}`:""}${o!=null&&l!=null?" && ":""}${l!=null?`<= ${l}`:""}`,n)}const vur=pv((n,r,o)=>{if(!Irn(o,n)){const u="must be one of: "+Prn(Zcr(o,d=>typeof d=="string"?`'${d}'`:our(d)),", ");throw new bj(r,n,u)}});function Mrn(n,r){if(typeof n!="boolean")throw new Kb(r,"boolean",n)}function ONe(n,r,o){return n==null||!iur(n,r)?o:n[r]}const _ur=pv((n,r,o=null)=>{const l=ONe(o,"allowArray",!1),u=ONe(o,"allowFunction",!1);if(!ONe(o,"nullable",!1)&&n===null||!l&&RUe(n)||typeof n!="object"&&(!u||typeof n!="function"))throw new Kb(r,"Object",n)}),Sur=pv((n,r)=>{if(n!=null&&typeof n!="object"&&typeof n!="function")throw new Kb(r,"a dictionary",n)}),rbe=pv((n,r,o=0)=>{if(!RUe(n))throw new Kb(r,"Array",n);if(n.length{if(!fur(n))throw new Kb(r,["Buffer","TypedArray","DataView"],n)});function Aur(n,r){const o=cur(r),l=n.length;if(o==="hex"&&l%2!==0)throw new bj("encoding",r,`is invalid for data of length ${l}`)}function Tur(n,r="Port",o=!0){if(typeof n!="number"&&typeof n!="string"||typeof n=="string"&&lur(n).length===0||+n!==+n>>>0||n>65535||n===0&&!o)throw new aur(r,n,o);return n|0}const Drn=pv((n,r)=>{if(n!==void 0&&(n===null||typeof n!="object"||!("aborted"in n)))throw new Kb(r,"AbortSignal",n)}),$ur=pv((n,r)=>{if(typeof n!="function")throw new Kb(r,"Function",n)}),Iur=pv((n,r)=>{if(typeof n!="function"||uur(n))throw new Kb(r,"Function",n)}),Pur=pv((n,r)=>{if(n!==void 0)throw new Kb(r,"undefined",n)});function Our(n,r,o){if(!Irn(o,n))throw new Kb(r,`('${Prn(o,"|")}')`,n)}const Nur=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function fHt(n,r){if(typeof n>"u"||!Orn(Nur,n))throw new bj(r,n,'must be an array or string of format "; rel=preload; as=style"')}function Mur(n){if(typeof n=="string")return fHt(n,"hints"),n;if(RUe(n)){const r=n.length;let o="";if(r===0)return o;for(let l=0;l; rel=preload; as=style"')}var vJ={isInt32:dur,isUint32:hur,parseFileMode:gur,validateArray:rbe,validateStringArray:Eur,validateBooleanArray:kur,validateAbortSignalArray:Rur,validateBoolean:Mrn,validateBuffer:Cur,validateDictionary:Sur,validateEncoding:Aur,validateFunction:$ur,validateInt32:mur,validateInteger:wur,validateNumber:yur,validateObject:_ur,validateOneOf:vur,validatePlainFunction:Iur,validatePort:Tur,validateSignalName:xur,validateString:CUe,validateUint32:Nrn,validateUndefined:Pur,validateUnion:Our,validateAbortSignal:Drn,validateLinkHeaderValue:Mur},AUe={exports:{}};const{SymbolAsyncIterator:dHt,SymbolIterator:hHt,SymbolFor:QP}=Lf,Lrn=QP("nodejs.stream.destroyed"),jrn=QP("nodejs.stream.errored"),Fje=QP("nodejs.stream.readable"),Bje=QP("nodejs.stream.writable"),Frn=QP("nodejs.stream.disturbed"),Dur=QP("nodejs.webstream.isClosedPromise"),Lur=QP("nodejs.webstream.controllerErrorFunction");function ibe(n,r=!1){var o;return!!(n&&typeof n.pipe=="function"&&typeof n.on=="function"&&(!r||typeof n.pause=="function"&&typeof n.resume=="function")&&(!n._writableState||((o=n._readableState)===null||o===void 0?void 0:o.readable)!==!1)&&(!n._writableState||n._readableState))}function obe(n){var r;return!!(n&&typeof n.write=="function"&&typeof n.on=="function"&&(!n._readableState||((r=n._writableState)===null||r===void 0?void 0:r.writable)!==!1))}function jur(n){return!!(n&&typeof n.pipe=="function"&&n._readableState&&typeof n.on=="function"&&typeof n.write=="function")}function wk(n){return n&&(n._readableState||n._writableState||typeof n.write=="function"&&typeof n.on=="function"||typeof n.pipe=="function"&&typeof n.on=="function")}function Brn(n){return!!(n&&!wk(n)&&typeof n.pipeThrough=="function"&&typeof n.getReader=="function"&&typeof n.cancel=="function")}function Wrn(n){return!!(n&&!wk(n)&&typeof n.getWriter=="function"&&typeof n.abort=="function")}function Hrn(n){return!!(n&&!wk(n)&&typeof n.readable=="object"&&typeof n.writable=="object")}function Fur(n){return Brn(n)||Wrn(n)||Hrn(n)}function Bur(n,r){return n==null?!1:r===!0?typeof n[dHt]=="function":r===!1?typeof n[hHt]=="function":typeof n[dHt]=="function"||typeof n[hHt]=="function"}function sbe(n){if(!wk(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!!(n.destroyed||n[Lrn]||l!=null&&l.destroyed)}function Urn(n){if(!obe(n))return null;if(n.writableEnded===!0)return!0;const r=n._writableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function Wur(n,r){if(!obe(n))return null;if(n.writableFinished===!0)return!0;const o=n._writableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.finished)!="boolean"?null:!!(o.finished||r===!1&&o.ended===!0&&o.length===0)}function Hur(n){if(!ibe(n))return null;if(n.readableEnded===!0)return!0;const r=n._readableState;return!r||r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function Grn(n,r){if(!ibe(n))return null;const o=n._readableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.endEmitted)!="boolean"?null:!!(o.endEmitted||r===!1&&o.ended===!0&&o.length===0)}function Vrn(n){return n&&n[Fje]!=null?n[Fje]:typeof(n==null?void 0:n.readable)!="boolean"?null:sbe(n)?!1:ibe(n)&&n.readable&&!Grn(n)}function zrn(n){return n&&n[Bje]!=null?n[Bje]:typeof(n==null?void 0:n.writable)!="boolean"?null:sbe(n)?!1:obe(n)&&n.writable&&!Urn(n)}function Uur(n,r){return wk(n)?sbe(n)?!0:!((r==null?void 0:r.readable)!==!1&&Vrn(n)||(r==null?void 0:r.writable)!==!1&&zrn(n)):null}function Gur(n){var r,o;return wk(n)?n.writableErrored?n.writableErrored:(r=(o=n._writableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function Vur(n){var r,o;return wk(n)?n.readableErrored?n.readableErrored:(r=(o=n._readableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function zur(n){if(!wk(n))return null;if(typeof n.closed=="boolean")return n.closed;const r=n._writableState,o=n._readableState;return typeof(r==null?void 0:r.closed)=="boolean"||typeof(o==null?void 0:o.closed)=="boolean"?(r==null?void 0:r.closed)||(o==null?void 0:o.closed):typeof n._closed=="boolean"&&Krn(n)?n._closed:null}function Krn(n){return typeof n._closed=="boolean"&&typeof n._defaultKeepAlive=="boolean"&&typeof n._removedConnection=="boolean"&&typeof n._removedContLen=="boolean"}function qrn(n){return typeof n._sent100=="boolean"&&Krn(n)}function Kur(n){var r;return typeof n._consuming=="boolean"&&typeof n._dumped=="boolean"&&((r=n.req)===null||r===void 0?void 0:r.upgradeOrConnect)===void 0}function qur(n){if(!wk(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!l&&qrn(n)||!!(l&&l.autoDestroy&&l.emitClose&&l.closed===!1)}function Xur(n){var r;return!!(n&&((r=n[Frn])!==null&&r!==void 0?r:n.readableDidRead||n.readableAborted))}function Jur(n){var r,o,l,u,d,h,w,v,y,E;return!!(n&&((r=(o=(l=(u=(d=(h=n[jrn])!==null&&h!==void 0?h:n.readableErrored)!==null&&d!==void 0?d:n.writableErrored)!==null&&u!==void 0?u:(w=n._readableState)===null||w===void 0?void 0:w.errorEmitted)!==null&&l!==void 0?l:(v=n._writableState)===null||v===void 0?void 0:v.errorEmitted)!==null&&o!==void 0?o:(y=n._readableState)===null||y===void 0?void 0:y.errored)!==null&&r!==void 0?r:!((E=n._writableState)===null||E===void 0)&&E.errored))}var xx={isDestroyed:sbe,kIsDestroyed:Lrn,isDisturbed:Xur,kIsDisturbed:Frn,isErrored:Jur,kIsErrored:jrn,isReadable:Vrn,kIsReadable:Fje,kIsClosedPromise:Dur,kControllerErrorFunction:Lur,kIsWritable:Bje,isClosed:zur,isDuplexNodeStream:jur,isFinished:Uur,isIterable:Bur,isReadableNodeStream:ibe,isReadableStream:Brn,isReadableEnded:Hur,isReadableFinished:Grn,isReadableErrored:Vur,isNodeStream:wk,isWebStream:Fur,isWritable:zrn,isWritableNodeStream:obe,isWritableStream:Wrn,isWritableEnded:Urn,isWritableFinished:Wur,isWritableErrored:Gur,isServerRequest:Kur,isServerResponse:qrn,willEmitClose:qur,isTransformStream:Hrn};const K4=ui,{AbortError:Xrn,codes:Yur}=T0,{ERR_INVALID_ARG_TYPE:Qur,ERR_STREAM_PREMATURE_CLOSE:pHt}=Yur,{kEmptyObject:Wje,once:Hje}=c1,{validateAbortSignal:Zur,validateFunction:efr,validateObject:tfr,validateBoolean:nfr}=vJ,{Promise:rfr,PromisePrototypeThen:ifr,SymbolDispose:Jrn}=Lf,{isClosed:ofr,isReadable:bHt,isReadableNodeStream:NNe,isReadableStream:sfr,isReadableFinished:gHt,isReadableErrored:wHt,isWritable:mHt,isWritableNodeStream:yHt,isWritableStream:lfr,isWritableFinished:vHt,isWritableErrored:_Ht,isNodeStream:afr,willEmitClose:cfr,kIsClosedPromise:ufr}=xx;let oL;function ffr(n){return n.setHeader&&typeof n.abort=="function"}const Uje=()=>{};function Yrn(n,r,o){var l,u;if(arguments.length===2?(o=r,r=Wje):r==null?r=Wje:tfr(r,"options"),efr(o,"callback"),Zur(r.signal,"options.signal"),o=Hje(o),sfr(n)||lfr(n))return dfr(n,r,o);if(!afr(n))throw new Qur("stream",["ReadableStream","WritableStream","Stream"],n);const d=(l=r.readable)!==null&&l!==void 0?l:NNe(n),h=(u=r.writable)!==null&&u!==void 0?u:yHt(n),w=n._writableState,v=n._readableState,y=()=>{n.writable||C()};let E=cfr(n)&&NNe(n)===d&&yHt(n)===h,A=vHt(n,!1);const C=()=>{A=!0,n.destroyed&&(E=!1),!(E&&(!n.readable||d))&&(!d||R)&&o.call(n)};let R=gHt(n,!1);const O=()=>{R=!0,n.destroyed&&(E=!1),!(E&&(!n.writable||h))&&(!h||A)&&o.call(n)},M=te=>{o.call(n,te)};let L=ofr(n);const H=()=>{L=!0;const te=_Ht(n)||wHt(n);if(te&&typeof te!="boolean")return o.call(n,te);if(d&&!R&&NNe(n,!0)&&!gHt(n,!1))return o.call(n,new pHt);if(h&&!A&&!vHt(n,!1))return o.call(n,new pHt);o.call(n)},G=()=>{L=!0;const te=_Ht(n)||wHt(n);if(te&&typeof te!="boolean")return o.call(n,te);o.call(n)},j=()=>{n.req.on("finish",C)};ffr(n)?(n.on("complete",C),E||n.on("abort",H),n.req?j():n.on("request",j)):h&&!w&&(n.on("end",y),n.on("close",y)),!E&&typeof n.aborted=="boolean"&&n.on("aborted",H),n.on("end",O),n.on("finish",C),r.error!==!1&&n.on("error",M),n.on("close",H),L?K4.nextTick(H):w!=null&&w.errorEmitted||v!=null&&v.errorEmitted?E||K4.nextTick(G):(!d&&(!E||bHt(n))&&(A||mHt(n)===!1)||!h&&(!E||mHt(n))&&(R||bHt(n)===!1)||v&&n.req&&n.aborted)&&K4.nextTick(G);const Q=()=>{o=Uje,n.removeListener("aborted",H),n.removeListener("complete",C),n.removeListener("abort",H),n.removeListener("request",j),n.req&&n.req.removeListener("finish",C),n.removeListener("end",y),n.removeListener("close",y),n.removeListener("finish",C),n.removeListener("end",O),n.removeListener("error",M),n.removeListener("close",H)};if(r.signal&&!L){const te=()=>{const pe=o;Q(),pe.call(n,new Xrn(void 0,{cause:r.signal.reason}))};if(r.signal.aborted)K4.nextTick(te);else{oL=oL||c1.addAbortListener;const pe=oL(r.signal,te),De=o;o=Hje((...Re)=>{pe[Jrn](),De.apply(n,Re)})}}return Q}function dfr(n,r,o){let l=!1,u=Uje;if(r.signal)if(u=()=>{l=!0,o.call(n,new Xrn(void 0,{cause:r.signal.reason}))},r.signal.aborted)K4.nextTick(u);else{oL=oL||c1.addAbortListener;const h=oL(r.signal,u),w=o;o=Hje((...v)=>{h[Jrn](),w.apply(n,v)})}const d=(...h)=>{l||K4.nextTick(()=>o.apply(n,h))};return ifr(n[ufr].promise,d,d),Uje}function hfr(n,r){var o;let l=!1;return r===null&&(r=Wje),(o=r)!==null&&o!==void 0&&o.cleanup&&(nfr(r.cleanup,"cleanup"),l=r.cleanup),new rfr((u,d)=>{const h=Yrn(n,r,w=>{l&&h(),w?d(w):u()})})}AUe.exports=Yrn;AUe.exports.finished=hfr;var FT=AUe.exports;const UE=ui,{aggregateTwoErrors:pfr,codes:{ERR_MULTIPLE_CALLBACK:bfr},AbortError:gfr}=T0,{Symbol:Qrn}=Lf,{kIsDestroyed:wfr,isDestroyed:mfr,isFinished:yfr,isServerRequest:vfr}=xx,Zrn=Qrn("kDestroy"),Gje=Qrn("kConstruct");function ein(n,r,o){n&&(n.stack,r&&!r.errored&&(r.errored=n),o&&!o.errored&&(o.errored=n))}function _fr(n,r){const o=this._readableState,l=this._writableState,u=l||o;return l!=null&&l.destroyed||o!=null&&o.destroyed?(typeof r=="function"&&r(),this):(ein(n,l,o),l&&(l.destroyed=!0),o&&(o.destroyed=!0),u.constructed?SHt(this,n,r):this.once(Zrn,function(d){SHt(this,pfr(d,n),r)}),this)}function SHt(n,r,o){let l=!1;function u(d){if(l)return;l=!0;const h=n._readableState,w=n._writableState;ein(d,w,h),w&&(w.closed=!0),h&&(h.closed=!0),typeof o=="function"&&o(d),d?UE.nextTick(Sfr,n,d):UE.nextTick(tin,n)}try{n._destroy(r||null,u)}catch(d){u(d)}}function Sfr(n,r){Vje(n,r),tin(n)}function tin(n){const r=n._readableState,o=n._writableState;o&&(o.closeEmitted=!0),r&&(r.closeEmitted=!0),(o!=null&&o.emitClose||r!=null&&r.emitClose)&&n.emit("close")}function Vje(n,r){const o=n._readableState,l=n._writableState;l!=null&&l.errorEmitted||o!=null&&o.errorEmitted||(l&&(l.errorEmitted=!0),o&&(o.errorEmitted=!0),n.emit("error",r))}function Efr(){const n=this._readableState,r=this._writableState;n&&(n.constructed=!0,n.closed=!1,n.closeEmitted=!1,n.destroyed=!1,n.errored=null,n.errorEmitted=!1,n.reading=!1,n.ended=n.readable===!1,n.endEmitted=n.readable===!1),r&&(r.constructed=!0,r.destroyed=!1,r.closed=!1,r.closeEmitted=!1,r.errored=null,r.errorEmitted=!1,r.finalCalled=!1,r.prefinished=!1,r.ended=r.writable===!1,r.ending=r.writable===!1,r.finished=r.writable===!1)}function zje(n,r,o){const l=n._readableState,u=n._writableState;if(u!=null&&u.destroyed||l!=null&&l.destroyed)return this;l!=null&&l.autoDestroy||u!=null&&u.autoDestroy?n.destroy(r):r&&(r.stack,u&&!u.errored&&(u.errored=r),l&&!l.errored&&(l.errored=r),o?UE.nextTick(Vje,n,r):Vje(n,r))}function kfr(n,r){if(typeof n._construct!="function")return;const o=n._readableState,l=n._writableState;o&&(o.constructed=!1),l&&(l.constructed=!1),n.once(Gje,r),!(n.listenerCount(Gje)>1)&&UE.nextTick(Rfr,n)}function Rfr(n){let r=!1;function o(l){if(r){zje(n,l??new bfr);return}r=!0;const u=n._readableState,d=n._writableState,h=d||u;u&&(u.constructed=!0),d&&(d.constructed=!0),h.destroyed?n.emit(Zrn,l):l?zje(n,l,!0):UE.nextTick(xfr,n)}try{n._construct(l=>{UE.nextTick(o,l)})}catch(l){UE.nextTick(o,l)}}function xfr(n){n.emit(Gje)}function EHt(n){return(n==null?void 0:n.setHeader)&&typeof n.abort=="function"}function nin(n){n.emit("close")}function Cfr(n,r){n.emit("error",r),UE.nextTick(nin,n)}function Afr(n,r){!n||mfr(n)||(!r&&!yfr(n)&&(r=new gfr),vfr(n)?(n.socket=null,n.destroy(r)):EHt(n)?n.abort():EHt(n.req)?n.req.abort():typeof n.destroy=="function"?n.destroy(r):typeof n.close=="function"?n.close():r?UE.nextTick(Cfr,n,r):UE.nextTick(nin,n),n.destroyed||(n[wfr]=!0))}var gj={construct:kfr,destroyer:Afr,destroy:_fr,undestroy:Efr,errorOrDestroy:zje};const{ArrayIsArray:Tfr,ObjectSetPrototypeOf:rin}=Lf,{EventEmitter:lbe}=Ns;function abe(n){lbe.call(this,n)}rin(abe.prototype,lbe.prototype);rin(abe,lbe);abe.prototype.pipe=function(n,r){const o=this;function l(E){n.writable&&n.write(E)===!1&&o.pause&&o.pause()}o.on("data",l);function u(){o.readable&&o.resume&&o.resume()}n.on("drain",u),!n._isStdio&&(!r||r.end!==!1)&&(o.on("end",h),o.on("close",w));let d=!1;function h(){d||(d=!0,n.end())}function w(){d||(d=!0,typeof n.destroy=="function"&&n.destroy())}function v(E){y(),lbe.listenerCount(this,"error")===0&&this.emit("error",E)}Kje(o,"error",v),Kje(n,"error",v);function y(){o.removeListener("data",l),n.removeListener("drain",u),o.removeListener("end",h),o.removeListener("close",w),o.removeListener("error",v),n.removeListener("error",v),o.removeListener("end",y),o.removeListener("close",y),n.removeListener("close",y)}return o.on("end",y),o.on("close",y),n.on("close",y),n.emit("pipe",o),n};function Kje(n,r,o){if(typeof n.prependListener=="function")return n.prependListener(r,o);!n._events||!n._events[r]?n.on(r,o):Tfr(n._events[r])?n._events[r].unshift(o):n._events[r]=[o,n._events[r]]}var TUe={Stream:abe,prependListener:Kje},iin={exports:{}};(function(n){const{SymbolDispose:r}=Lf,{AbortError:o,codes:l}=T0,{isNodeStream:u,isWebStream:d,kControllerErrorFunction:h}=xx,w=FT,{ERR_INVALID_ARG_TYPE:v}=l;let y;const E=(A,C)=>{if(typeof A!="object"||!("aborted"in A))throw new v(C,"AbortSignal",A)};n.exports.addAbortSignal=function(C,R){if(E(C,"signal"),!u(R)&&!d(R))throw new v("stream",["ReadableStream","WritableStream","Stream"],R);return n.exports.addAbortSignalNoValidate(C,R)},n.exports.addAbortSignalNoValidate=function(A,C){if(typeof A!="object"||!("aborted"in A))return C;const R=u(C)?()=>{C.destroy(new o(void 0,{cause:A.reason}))}:()=>{C[h](new o(void 0,{cause:A.reason}))};if(A.aborted)R();else{y=y||c1.addAbortListener;const O=y(A,R);w(C,O[r])}return C}})(iin);var cbe=iin.exports;const{StringPrototypeSlice:kHt,SymbolIterator:$fr,TypedArrayPrototypeSet:gue,Uint8Array:Ifr}=Lf,{Buffer:MNe}=Kr,{inspect:Pfr}=c1;var Ofr=class{constructor(){this.head=null,this.tail=null,this.length=0}push(r){const o={data:r,next:null};this.length>0?this.tail.next=o:this.head=o,this.tail=o,++this.length}unshift(r){const o={data:r,next:this.head};this.length===0&&(this.tail=o),this.head=o,++this.length}shift(){if(this.length===0)return;const r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}clear(){this.head=this.tail=null,this.length=0}join(r){if(this.length===0)return"";let o=this.head,l=""+o.data;for(;(o=o.next)!==null;)l+=r+o.data;return l}concat(r){if(this.length===0)return MNe.alloc(0);const o=MNe.allocUnsafe(r>>>0);let l=this.head,u=0;for(;l;)gue(o,l.data,u),u+=l.data.length,l=l.next;return o}consume(r,o){const l=this.head.data;if(rd.length)o+=d,r-=d.length;else{r===d.length?(o+=d,++u,l.next?this.head=l.next:this.head=this.tail=null):(o+=kHt(d,0,r),this.head=l,l.data=kHt(d,r));break}++u}while((l=l.next)!==null);return this.length-=u,o}_getBuffer(r){const o=MNe.allocUnsafe(r),l=r;let u=this.head,d=0;do{const h=u.data;if(r>h.length)gue(o,h,l-r),r-=h.length;else{r===h.length?(gue(o,h,l-r),++d,u.next?this.head=u.next:this.head=this.tail=null):(gue(o,new Ifr(h.buffer,h.byteOffset,r),l-r),this.head=u,u.data=h.slice(r));break}++d}while((u=u.next)!==null);return this.length-=d,o}[Symbol.for("nodejs.util.inspect.custom")](r,o){return Pfr(this,{...o,depth:0,customInspect:!1})}};const{MathFloor:Nfr,NumberIsInteger:Mfr}=Lf,{validateInteger:Dfr}=vJ,{ERR_INVALID_ARG_VALUE:Lfr}=T0.codes;let oin=16*1024,sin=16;function jfr(n,r,o){return n.highWaterMark!=null?n.highWaterMark:r?n[o]:null}function lin(n){return n?sin:oin}function Ffr(n,r){Dfr(r,"value",0),n?sin=r:oin=r}function Bfr(n,r,o,l){const u=jfr(r,l,o);if(u!=null){if(!Mfr(u)||u<0){const d=l?`options.${o}`:"options.highWaterMark";throw new Lfr(d,u)}return Nfr(u)}return lin(n.objectMode)}var ube={getHighWaterMark:Bfr,getDefaultHighWaterMark:lin,setDefaultHighWaterMark:Ffr};const RHt=ui,{PromisePrototypeThen:Wfr,SymbolAsyncIterator:xHt,SymbolIterator:CHt}=Lf,{Buffer:Hfr}=Kr,{ERR_INVALID_ARG_TYPE:Ufr,ERR_STREAM_NULL_VALUES:Gfr}=T0.codes;function Vfr(n,r,o){let l;if(typeof r=="string"||r instanceof Hfr)return new n({objectMode:!0,...o,read(){this.push(r),this.push(null)}});let u;if(r&&r[xHt])u=!0,l=r[xHt]();else if(r&&r[CHt])u=!1,l=r[CHt]();else throw new Ufr("iterable",["Iterable"],r);const d=new n({objectMode:!0,highWaterMark:1,...o});let h=!1;d._read=function(){h||(h=!0,v())},d._destroy=function(y,E){Wfr(w(y),()=>RHt.nextTick(E,y),A=>RHt.nextTick(E,A||y))};async function w(y){const E=y!=null,A=typeof l.throw=="function";if(E&&A){const{value:C,done:R}=await l.throw(y);if(await C,R)return}if(typeof l.return=="function"){const{value:C}=await l.return();await C}}async function v(){for(;;){try{const{value:y,done:E}=u?await l.next():l.next();if(E)d.push(null);else{const A=y&&typeof y.then=="function"?await y:y;if(A===null)throw h=!1,new Gfr;if(d.push(A))continue;h=!1}}catch(y){d.destroy(y)}break}}return d}var ain=Vfr,DNe,AHt;function fbe(){if(AHt)return DNe;AHt=1;const n=ui,{ArrayPrototypeIndexOf:r,NumberIsInteger:o,NumberIsNaN:l,NumberParseInt:u,ObjectDefineProperties:d,ObjectKeys:h,ObjectSetPrototypeOf:w,Promise:v,SafeSet:y,SymbolAsyncDispose:E,SymbolAsyncIterator:A,Symbol:C}=Lf;DNe=he,he.ReadableState=_t;const{EventEmitter:R}=Ns,{Stream:O,prependListener:M}=TUe,{Buffer:L}=Kr,{addAbortSignal:H}=cbe,G=FT;let j=c1.debuglog("stream",S=>{j=S});const Q=Ofr,te=gj,{getHighWaterMark:pe,getDefaultHighWaterMark:De}=ube,{aggregateTwoErrors:Re,codes:{ERR_INVALID_ARG_TYPE:le,ERR_METHOD_NOT_IMPLEMENTED:xe,ERR_OUT_OF_RANGE:be,ERR_STREAM_PUSH_AFTER_EOF:ae,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:F},AbortError:me}=T0,{validateObject:ye}=vJ,we=C("kPaused"),{StringDecoder:Be}=rm,He=ain;w(he.prototype,O.prototype),w(he,O);const Ue=()=>{},{errorOrDestroy:Ge}=te,Le=1,ft=2,re=4,Te=8,dt=16,at=32,Qe=64,yt=128,Lt=256,nn=512,Pe=1024,Ne=2048,T=4096,$=8192,B=16384,K=32768,q=65536,ke=1<<17,Ee=1<<18;function Ie(S){return{enumerable:!1,get(){return(this.state&S)!==0},set(x){x?this.state|=S:this.state&=~S}}}d(_t.prototype,{objectMode:Ie(Le),ended:Ie(ft),endEmitted:Ie(re),reading:Ie(Te),constructed:Ie(dt),sync:Ie(at),needReadable:Ie(Qe),emittedReadable:Ie(yt),readableListening:Ie(Lt),resumeScheduled:Ie(nn),errorEmitted:Ie(Pe),emitClose:Ie(Ne),autoDestroy:Ie(T),destroyed:Ie($),closed:Ie(B),closeEmitted:Ie(K),multiAwaitDrain:Ie(q),readingMore:Ie(ke),dataEmitted:Ie(Ee)});function _t(S,x,Y){typeof Y!="boolean"&&(Y=x instanceof tx()),this.state=Ne|T|dt|at,S&&S.objectMode&&(this.state|=Le),Y&&S&&S.readableObjectMode&&(this.state|=Le),this.highWaterMark=S?pe(this,S,"readableHighWaterMark",Y):De(!1),this.buffer=new Q,this.length=0,this.pipes=[],this.flowing=null,this[we]=null,S&&S.emitClose===!1&&(this.state&=~Ne),S&&S.autoDestroy===!1&&(this.state&=~T),this.errored=null,this.defaultEncoding=S&&S.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,S&&S.encoding&&(this.decoder=new Be(S.encoding),this.encoding=S.encoding)}function he(S){if(!(this instanceof he))return new he(S);const x=this instanceof tx();this._readableState=new _t(S,this,x),S&&(typeof S.read=="function"&&(this._read=S.read),typeof S.destroy=="function"&&(this._destroy=S.destroy),typeof S.construct=="function"&&(this._construct=S.construct),S.signal&&!x&&H(S.signal,this)),O.call(this,S),te.construct(this,()=>{this._readableState.needReadable&&pt(this,this._readableState)})}he.prototype.destroy=te.destroy,he.prototype._undestroy=te.undestroy,he.prototype._destroy=function(S,x){x(S)},he.prototype[R.captureRejectionSymbol]=function(S){this.destroy(S)},he.prototype[E]=function(){let S;return this.destroyed||(S=this.readableEnded?null:new me,this.destroy(S)),new v((x,Y)=>G(this,J=>J&&J!==S?Y(J):x(null)))},he.prototype.push=function(S,x){return Xt(this,S,x,!1)},he.prototype.unshift=function(S,x){return Xt(this,S,x,!0)};function Xt(S,x,Y,J){j("readableAddChunk",x);const ue=S._readableState;let Yt;if(ue.state&Le||(typeof x=="string"?(Y=Y||ue.defaultEncoding,ue.encoding!==Y&&(J&&ue.encoding?x=L.from(x,Y).toString(ue.encoding):(x=L.from(x,Y),Y=""))):x instanceof L?Y="":O._isUint8Array(x)?(x=O._uint8ArrayToBuffer(x),Y=""):x!=null&&(Yt=new le("chunk",["string","Buffer","Uint8Array"],x))),Yt)Ge(S,Yt);else if(x===null)ue.state&=~Te,ce(S,ue);else if(ue.state&Le||x&&x.length>0)if(J)if(ue.state&re)Ge(S,new F);else{if(ue.destroyed||ue.errored)return!1;Zt(S,ue,x,!0)}else if(ue.ended)Ge(S,new ae);else{if(ue.destroyed||ue.errored)return!1;ue.state&=~Te,ue.decoder&&!Y?(x=ue.decoder.write(x),ue.objectMode||x.length!==0?Zt(S,ue,x,!1):pt(S,ue)):Zt(S,ue,x,!1)}else J||(ue.state&=~Te,pt(S,ue));return!ue.ended&&(ue.length0?(x.state&q?x.awaitDrainWriters.clear():x.awaitDrainWriters=null,x.dataEmitted=!0,S.emit("data",Y)):(x.length+=x.objectMode?1:Y.length,J?x.buffer.unshift(Y):x.buffer.push(Y),x.state&Qe&&de(S)),pt(S,x)}he.prototype.isPaused=function(){const S=this._readableState;return S[we]===!0||S.flowing===!1},he.prototype.setEncoding=function(S){const x=new Be(S);this._readableState.decoder=x,this._readableState.encoding=this._readableState.decoder.encoding;const Y=this._readableState.buffer;let J="";for(const ue of Y)J+=x.write(ue);return Y.clear(),J!==""&&Y.push(J),this._readableState.length=J.length,this};const $n=1073741824;function Gn(S){if(S>$n)throw new be("size","<= 1GiB",S);return S--,S|=S>>>1,S|=S>>>2,S|=S>>>4,S|=S>>>8,S|=S>>>16,S++,S}function $e(S,x){return S<=0||x.length===0&&x.ended?0:x.state&Le?1:l(S)?x.flowing&&x.length?x.buffer.first().length:x.length:S<=x.length?S:x.ended?x.length:0}he.prototype.read=function(S){j("read",S),S===void 0?S=NaN:o(S)||(S=u(S,10));const x=this._readableState,Y=S;if(S>x.highWaterMark&&(x.highWaterMark=Gn(S)),S!==0&&(x.state&=~yt),S===0&&x.needReadable&&((x.highWaterMark!==0?x.length>=x.highWaterMark:x.length>0)||x.ended))return j("read: emitReadable",x.length,x.ended),x.length===0&&x.ended?co(this):de(this),null;if(S=$e(S,x),S===0&&x.ended)return x.length===0&&co(this),null;let J=(x.state&Qe)!==0;if(j("need readable",J),(x.length===0||x.length-S0?ue=Al(S,x):ue=null,ue===null?(x.needReadable=x.length<=x.highWaterMark,S=0):(x.length-=S,x.multiAwaitDrain?x.awaitDrainWriters.clear():x.awaitDrainWriters=null),x.length===0&&(x.ended||(x.needReadable=!0),Y!==S&&x.ended&&co(this)),ue!==null&&!x.errorEmitted&&!x.closeEmitted&&(x.dataEmitted=!0,this.emit("data",ue)),ue};function ce(S,x){if(j("onEofChunk"),!x.ended){if(x.decoder){const Y=x.decoder.end();Y&&Y.length&&(x.buffer.push(Y),x.length+=x.objectMode?1:Y.length)}x.ended=!0,x.sync?de(S):(x.needReadable=!1,x.emittedReadable=!0,et(S))}}function de(S){const x=S._readableState;j("emitReadable",x.needReadable,x.emittedReadable),x.needReadable=!1,x.emittedReadable||(j("emitReadable",x.flowing),x.emittedReadable=!0,n.nextTick(et,S))}function et(S){const x=S._readableState;j("emitReadable_",x.destroyed,x.length,x.ended),!x.destroyed&&!x.errored&&(x.length||x.ended)&&(S.emit("readable"),x.emittedReadable=!1),x.needReadable=!x.flowing&&!x.ended&&x.length<=x.highWaterMark,xi(S)}function pt(S,x){!x.readingMore&&x.constructed&&(x.readingMore=!0,n.nextTick(Jt,S,x))}function Jt(S,x){for(;!x.reading&&!x.ended&&(x.length1&&J.pipes.includes(S)&&(j("false write response, pause",J.awaitDrainWriters.size),J.awaitDrainWriters.add(S)),Y.pause()),Fr||(Fr=Qt(Y,S),S.on("drain",Fr))}Y.on("data",ml);function ml(jr){j("ondata");const lr=S.write(jr);j("dest.write",lr),lr===!1&&Rs()}function gs(jr){if(j("onerror",jr),wi(),S.removeListener("error",gs),S.listenerCount("error")===0){const lr=S._writableState||S._readableState;lr&&!lr.errorEmitted?Ge(S,jr):S.emit("error",jr)}}M(S,"error",gs);function as(){S.removeListener("finish",ws),wi()}S.once("close",as);function ws(){j("onfinish"),S.removeListener("close",as),wi()}S.once("finish",ws);function wi(){j("unpipe"),Y.unpipe(S)}return S.emit("pipe",Y),S.writableNeedDrain===!0?Rs():J.flowing||(j("pipe resume"),Y.resume()),S};function Qt(S,x){return function(){const J=S._readableState;J.awaitDrainWriters===x?(j("pipeOnDrain",1),J.awaitDrainWriters=null):J.multiAwaitDrain&&(j("pipeOnDrain",J.awaitDrainWriters.size),J.awaitDrainWriters.delete(x)),(!J.awaitDrainWriters||J.awaitDrainWriters.size===0)&&S.listenerCount("data")&&S.resume()}}he.prototype.unpipe=function(S){const x=this._readableState,Y={hasUnpiped:!1};if(x.pipes.length===0)return this;if(!S){const ue=x.pipes;x.pipes=[],this.pause();for(let Yt=0;Yt0,J.flowing!==!1&&this.resume()):S==="readable"&&!J.endEmitted&&!J.readableListening&&(J.readableListening=J.needReadable=!0,J.flowing=!1,J.emittedReadable=!1,j("on readable",J.length,J.reading),J.length?de(this):J.reading||n.nextTick(ao,this)),Y},he.prototype.addListener=he.prototype.on,he.prototype.removeListener=function(S,x){const Y=O.prototype.removeListener.call(this,S,x);return S==="readable"&&n.nextTick(qr,this),Y},he.prototype.off=he.prototype.removeListener,he.prototype.removeAllListeners=function(S){const x=O.prototype.removeAllListeners.apply(this,arguments);return(S==="readable"||S===void 0)&&n.nextTick(qr,this),x};function qr(S){const x=S._readableState;x.readableListening=S.listenerCount("readable")>0,x.resumeScheduled&&x[we]===!1?x.flowing=!0:S.listenerCount("data")>0?S.resume():x.readableListening||(x.flowing=null)}function ao(S){j("readable nexttick read 0"),S.read(0)}he.prototype.resume=function(){const S=this._readableState;return S.flowing||(j("resume"),S.flowing=!S.readableListening,ki(this,S)),S[we]=!1,this};function ki(S,x){x.resumeScheduled||(x.resumeScheduled=!0,n.nextTick(Ri,S,x))}function Ri(S,x){j("resume",x.reading),x.reading||S.read(0),x.resumeScheduled=!1,S.emit("resume"),xi(S),x.flowing&&!x.reading&&S.read(0)}he.prototype.pause=function(){return j("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(j("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[we]=!0,this};function xi(S){const x=S._readableState;for(j("flow",x.flowing);x.flowing&&S.read()!==null;);}he.prototype.wrap=function(S){let x=!1;S.on("data",J=>{!this.push(J)&&S.pause&&(x=!0,S.pause())}),S.on("end",()=>{this.push(null)}),S.on("error",J=>{Ge(this,J)}),S.on("close",()=>{this.destroy()}),S.on("destroy",()=>{this.destroy()}),this._read=()=>{x&&S.resume&&(x=!1,S.resume())};const Y=h(S);for(let J=1;J{ue=An?Re(ue,An):null,Y(),Y=Ue});try{for(;;){const An=S.destroyed?null:S.read();if(An!==null)yield An;else{if(ue)throw ue;if(ue===null)return;await new v(J)}}}catch(An){throw ue=Re(ue,An),ue}finally{(ue||(x==null?void 0:x.destroyOnReturn)!==!1)&&(ue===void 0||S._readableState.autoDestroy)?te.destroyer(S,null):(S.off("readable",J),Yt())}}d(he.prototype,{readable:{__proto__:null,get(){const S=this._readableState;return!!S&&S.readable!==!1&&!S.destroyed&&!S.errorEmitted&&!S.endEmitted},set(S){this._readableState&&(this._readableState.readable=!!S)}},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(S){this._readableState&&(this._readableState.flowing=S)}},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(S){this._readableState&&(this._readableState.destroyed=S)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),d(_t.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[we]!==!1},set(S){this[we]=!!S}}}),he._fromList=Al;function Al(S,x){if(x.length===0)return null;let Y;return x.objectMode?Y=x.buffer.shift():!S||S>=x.length?(x.decoder?Y=x.buffer.join(""):x.buffer.length===1?Y=x.buffer.first():Y=x.buffer.concat(x.length),x.buffer.clear()):Y=x.buffer.consume(S,x.decoder),Y}function co(S){const x=S._readableState;j("endReadable",x.endEmitted),x.endEmitted||(x.ended=!0,n.nextTick(Zc,x,S))}function Zc(S,x){if(j("endReadableNT",S.endEmitted,S.length),!S.errored&&!S.closeEmitted&&!S.endEmitted&&S.length===0){if(S.endEmitted=!0,x.emit("end"),x.writable&&x.allowHalfOpen===!1)n.nextTick(bu,x);else if(S.autoDestroy){const Y=x._writableState;(!Y||Y.autoDestroy&&(Y.finished||Y.writable===!1))&&x.destroy()}}}function bu(S){S.writable&&!S.writableEnded&&!S.destroyed&&S.end()}he.from=function(S,x){return He(he,S,x)};let So;function ql(){return So===void 0&&(So={}),So}return he.fromWeb=function(S,x){return ql().newStreamReadableFromReadableStream(S,x)},he.toWeb=function(S,x){return ql().newReadableStreamFromStreamReadable(S,x)},he.wrap=function(S,x){var Y,J;return new he({objectMode:(Y=(J=S.readableObjectMode)!==null&&J!==void 0?J:S.objectMode)!==null&&Y!==void 0?Y:!0,...x,destroy(ue,Yt){te.destroyer(S,ue),Yt(ue)}}).wrap(S)},DNe}var LNe,THt;function $Ue(){if(THt)return LNe;THt=1;const n=ui,{ArrayPrototypeSlice:r,Error:o,FunctionPrototypeSymbolHasInstance:l,ObjectDefineProperty:u,ObjectDefineProperties:d,ObjectSetPrototypeOf:h,StringPrototypeToLowerCase:w,Symbol:v,SymbolHasInstance:y}=Lf;LNe=ye,ye.WritableState=F;const{EventEmitter:E}=Ns,A=TUe.Stream,{Buffer:C}=Kr,R=gj,{addAbortSignal:O}=cbe,{getHighWaterMark:M,getDefaultHighWaterMark:L}=ube,{ERR_INVALID_ARG_TYPE:H,ERR_METHOD_NOT_IMPLEMENTED:G,ERR_MULTIPLE_CALLBACK:j,ERR_STREAM_CANNOT_PIPE:Q,ERR_STREAM_DESTROYED:te,ERR_STREAM_ALREADY_FINISHED:pe,ERR_STREAM_NULL_VALUES:De,ERR_STREAM_WRITE_AFTER_END:Re,ERR_UNKNOWN_ENCODING:le}=T0.codes,{errorOrDestroy:xe}=R;h(ye.prototype,A.prototype),h(ye,A);function be(){}const ae=v("kOnFinished");function F(T,$,B){typeof B!="boolean"&&(B=$ instanceof tx()),this.objectMode=!!(T&&T.objectMode),B&&(this.objectMode=this.objectMode||!!(T&&T.writableObjectMode)),this.highWaterMark=T?M(this,T,"writableHighWaterMark",B):L(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const K=!!(T&&T.decodeStrings===!1);this.decodeStrings=!K,this.defaultEncoding=T&&T.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=Ge.bind(void 0,$),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,me(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[ae]=[]}function me(T){T.buffered=[],T.bufferedIndex=0,T.allBuffers=!0,T.allNoop=!0}F.prototype.getBuffer=function(){return r(this.buffered,this.bufferedIndex)},u(F.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function ye(T){const $=this instanceof tx();if(!$&&!l(ye,this))return new ye(T);this._writableState=new F(T,this,$),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&&O(T.signal,this)),A.call(this,T),R.construct(this,()=>{const B=this._writableState;B.writing||Te(this,B),yt(this,B)})}u(ye,y,{__proto__:null,value:function(T){return l(this,T)?!0:this!==ye?!1:T&&T._writableState instanceof F}}),ye.prototype.pipe=function(){xe(this,new Q)};function we(T,$,B,K){const q=T._writableState;if(typeof B=="function")K=B,B=q.defaultEncoding;else{if(!B)B=q.defaultEncoding;else if(B!=="buffer"&&!C.isEncoding(B))throw new le(B);typeof K!="function"&&(K=be)}if($===null)throw new De;if(!q.objectMode)if(typeof $=="string")q.decodeStrings!==!1&&($=C.from($,B),B="buffer");else if($ instanceof C)B="buffer";else if(A._isUint8Array($))$=A._uint8ArrayToBuffer($),B="buffer";else throw new H("chunk",["string","Buffer","Uint8Array"],$);let ke;return q.ending?ke=new Re:q.destroyed&&(ke=new te("write")),ke?(n.nextTick(K,ke),xe(T,ke,!0),ke):(q.pendingcb++,Be(T,q,$,B,K))}ye.prototype.write=function(T,$,B){return we(this,T,$,B)===!0},ye.prototype.cork=function(){this._writableState.corked++},ye.prototype.uncork=function(){const T=this._writableState;T.corked&&(T.corked--,T.writing||Te(this,T))},ye.prototype.setDefaultEncoding=function($){if(typeof $=="string"&&($=w($)),!C.isEncoding($))throw new le($);return this._writableState.defaultEncoding=$,this};function Be(T,$,B,K,q){const ke=$.objectMode?1:B.length;$.length+=ke;const Ee=$.length<$.highWaterMark;return Ee||($.needDrain=!0),$.writing||$.corked||$.errored||!$.constructed?($.buffered.push({chunk:B,encoding:K,callback:q}),$.allBuffers&&K!=="buffer"&&($.allBuffers=!1),$.allNoop&&q!==be&&($.allNoop=!1)):($.writelen=ke,$.writecb=q,$.writing=!0,$.sync=!0,T._write(B,K,$.onwrite),$.sync=!1),Ee&&!$.errored&&!$.destroyed}function He(T,$,B,K,q,ke,Ee){$.writelen=K,$.writecb=Ee,$.writing=!0,$.sync=!0,$.destroyed?$.onwrite(new te("write")):B?T._writev(q,$.onwrite):T._write(q,ke,$.onwrite),$.sync=!1}function Ue(T,$,B,K){--$.pendingcb,K(B),re($),xe(T,B)}function Ge(T,$){const B=T._writableState,K=B.sync,q=B.writecb;if(typeof q!="function"){xe(T,new j);return}B.writing=!1,B.writecb=null,B.length-=B.writelen,B.writelen=0,$?($.stack,B.errored||(B.errored=$),T._readableState&&!T._readableState.errored&&(T._readableState.errored=$),K?n.nextTick(Ue,T,B,$,q):Ue(T,B,$,q)):(B.buffered.length>B.bufferedIndex&&Te(T,B),K?B.afterWriteTickInfo!==null&&B.afterWriteTickInfo.cb===q?B.afterWriteTickInfo.count++:(B.afterWriteTickInfo={count:1,cb:q,stream:T,state:B},n.nextTick(Le,B.afterWriteTickInfo)):ft(T,B,1,q))}function Le({stream:T,state:$,count:B,cb:K}){return $.afterWriteTickInfo=null,ft(T,$,B,K)}function ft(T,$,B,K){for(!$.ending&&!T.destroyed&&$.length===0&&$.needDrain&&($.needDrain=!1,T.emit("drain"));B-- >0;)$.pendingcb--,K();$.destroyed&&re($),yt(T,$)}function re(T){if(T.writing)return;for(let q=T.bufferedIndex;q1&&T._writev){$.pendingcb-=ke-1;const Ie=$.allNoop?be:he=>{for(let Xt=Ee;Xt256?(B.splice(0,Ee),$.bufferedIndex=0):$.bufferedIndex=Ee}$.bufferProcessing=!1}ye.prototype._write=function(T,$,B){if(this._writev)this._writev([{chunk:T,encoding:$}],B);else throw new G("_write()")},ye.prototype._writev=null,ye.prototype.end=function(T,$,B){const K=this._writableState;typeof T=="function"?(B=T,T=null,$=null):typeof $=="function"&&(B=$,$=null);let q;if(T!=null){const ke=we(this,T,$);ke instanceof o&&(q=ke)}return K.corked&&(K.corked=1,this.uncork()),q||(!K.errored&&!K.ending?(K.ending=!0,yt(this,K,!0),K.ended=!0):K.finished?q=new pe("end"):K.destroyed&&(q=new te("end"))),typeof B=="function"&&(q||K.finished?n.nextTick(B,q):K[ae].push(B)),this};function dt(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 at(T,$){let B=!1;function K(q){if(B){xe(T,q??j());return}if(B=!0,$.pendingcb--,q){const ke=$[ae].splice(0);for(let Ee=0;Ee{dt(q)?Lt(K,q):q.pendingcb--},T,$)):dt($)&&($.pendingcb++,Lt(T,$))))}function Lt(T,$){$.pendingcb--,$.finished=!0;const B=$[ae].splice(0);for(let K=0;K{if(re!=null)throw new O("nully","body",re)},re=>{M(Le,re)});return Le=new le({objectMode:!0,readable:!1,write:Be,final(re){He(async()=>{try{await ft,n.nextTick(re,null)}catch(Te){n.nextTick(re,Te)}})},destroy:Ue})}throw new O("Iterable, AsyncIterable or AsyncFunction",me,we)}if(pe(F))return ae(F.arrayBuffer());if(u(F))return Q(le,F,{objectMode:!0,writable:!1});if(y(F==null?void 0:F.readable)&&E(F==null?void 0:F.writable))return le.fromWeb(F);if(typeof(F==null?void 0:F.writable)=="object"||typeof(F==null?void 0:F.readable)=="object"){const we=F!=null&&F.readable?h(F==null?void 0:F.readable)?F==null?void 0:F.readable:ae(F.readable):void 0,Be=F!=null&&F.writable?w(F==null?void 0:F.writable)?F==null?void 0:F.writable:ae(F.writable):void 0;return be({readable:we,writable:Be})}const ye=F==null?void 0:F.then;if(typeof ye=="function"){let we;return Re(ye,F,Be=>{Be!=null&&we.push(Be),we.push(null)},Be=>{M(we,Be)}),we=new le({objectMode:!0,writable:!1,read(){}})}throw new R(me,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],F)};function xe(ae){let{promise:F,resolve:me}=j();const ye=new De,we=ye.signal;return{value:ae(async function*(){for(;;){const He=F;F=null;const{chunk:Ue,done:Ge,cb:Le}=await He;if(n.nextTick(Le),Ge)return;if(we.aborted)throw new C(void 0,{cause:we.reason});({promise:F,resolve:me}=j()),yield Ue}}(),{signal:we}),write(He,Ue,Ge){const Le=me;me=null,Le({chunk:He,done:!1,cb:Ge})},final(He){const Ue=me;me=null,Ue({done:!0,cb:He})},destroy(He,Ue){ye.abort(),Ue(He)}}}function be(ae){const F=ae.readable&&typeof ae.readable.read!="function"?H.wrap(ae.readable):ae.readable,me=ae.writable;let ye=!!o(F),we=!!l(me),Be,He,Ue,Ge,Le;function ft(re){const Te=Ge;Ge=null,Te?Te(re):re&&Le.destroy(re)}return Le=new le({readableObjectMode:!!(F!=null&&F.readableObjectMode),writableObjectMode:!!(me!=null&&me.writableObjectMode),readable:ye,writable:we}),we&&(A(me,re=>{we=!1,re&&M(F,re),ft(re)}),Le._write=function(re,Te,dt){me.write(re,Te)?dt():Be=dt},Le._final=function(re){me.end(),He=re},me.on("drain",function(){if(Be){const re=Be;Be=null,re()}}),me.on("finish",function(){if(He){const re=He;He=null,re()}})),ye&&(A(F,re=>{ye=!1,re&&M(F,re),ft(re)}),F.on("readable",function(){if(Ue){const re=Ue;Ue=null,re()}}),F.on("end",function(){Le.push(null)}),Le._read=function(){for(;;){const re=F.read();if(re===null){Ue=Le._read;return}if(!Le.push(re))return}}),Le._destroy=function(re,Te){!re&&Ge!==null&&(re=new C),Ue=null,Be=null,He=null,Ge===null?Te(re):(Ge=Te,M(me,re),M(F,re))},Le}return jNe}var FNe,IHt;function tx(){if(IHt)return FNe;IHt=1;const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:o,ObjectSetPrototypeOf:l}=Lf;FNe=h;const u=fbe(),d=$Ue();l(h.prototype,u.prototype),l(h,u);{const E=o(d.prototype);for(let A=0;A{if(r){n?n(r):this.destroy(r);return}o!=null&&this.push(o),this.push(null),n&&n()}):(this.push(null),n&&n())}function Jfr(){this._final!==qje&&qje.call(this)}nx.prototype._final=qje;nx.prototype._transform=function(n,r,o){throw new qfr("_transform()")};nx.prototype._write=function(n,r,o){const l=this._readableState,u=this._writableState,d=l.length;this._transform(n,r,(h,w)=>{if(h){o(h);return}w!=null&&this.push(w),u.ended||d===l.length||l.length{l=!0});const u=ohe(n,{readable:r,writable:o},d=>{l=!d});return{destroy:d=>{l||(l=!0,ndr.destroyer(n,d||new odr("pipe")))},cleanup:u}}function hdr(n){return adr(n[n.length-1],"streams[stream.length - 1]"),n.pop()}function zNe(n){if(x8(n))return n;if(nde(n))return pdr(n);throw new Xje("val",["Readable","Iterable","AsyncIterable"],n)}async function*pdr(n){GNe||(GNe=fbe()),yield*GNe.prototype[Zfr].call(n)}async function wue(n,r,o,{end:l}){let u,d=null;const h=y=>{if(y&&(u=y),d){const E=d;d=null,E()}},w=()=>new Qfr((y,E)=>{u?E(u):d=()=>{u?E(u):y()}});r.on("drain",h);const v=ohe(r,{readable:!1},h);try{r.writableNeedDrain&&await w();for await(const y of n)r.write(y)||await w();l&&(r.end(),await w()),o()}catch(y){o(u!==y?rdr(u,y):y)}finally{v(),r.off("drain",h)}}async function KNe(n,r,o,{end:l}){SD(r)&&(r=r.writable);const u=r.getWriter();try{for await(const d of n)await u.ready,u.write(d).catch(()=>{});await u.ready,l&&await u.close(),o()}catch(d){try{await u.abort(d),o(d)}catch(h){o(h)}}}function bdr(...n){return hin(n,tdr(hdr(n)))}function hin(n,r,o){if(n.length===1&&Yfr(n[0])&&(n=n[0]),n.length<2)throw new idr("streams");const l=new ddr,u=l.signal,d=o==null?void 0:o.signal,h=[];cdr(d,"options.signal");function w(){O(new ldr)}VNe=VNe||c1.addAbortListener;let v;d&&(v=VNe(d,w));let y,E;const A=[];let C=0;function R(G){O(G,--C===0)}function O(G,j){var Q;if(G&&(!y||y.code==="ERR_STREAM_PREMATURE_CLOSE")&&(y=G),!(!y&&!j)){for(;A.length;)A.shift()(y);(Q=v)===null||Q===void 0||Q[edr](),l.abort(),j&&(y||h.forEach(te=>te()),TK.nextTick(r,y,E))}}let M;for(let G=0;G0,pe=Q||(o==null?void 0:o.end)!==!1,De=G===n.length-1;if(OHt(j)){let Re=function(le){le&&le.name!=="AbortError"&&le.code!=="ERR_STREAM_PREMATURE_CLOSE"&&R(le)};if(pe){const{destroy:le,cleanup:xe}=NHt(j,Q,te);A.push(le),WNe(j)&&De&&h.push(xe)}j.on("error",Re),WNe(j)&&De&&h.push(()=>{j.removeListener("error",Re)})}if(G===0)if(typeof j=="function"){if(M=j({signal:u}),!x8(M))throw new BNe("Iterable, AsyncIterable or Stream","source",M)}else x8(j)||nde(j)||SD(j)?M=j:M=PHt.from(j);else if(typeof j=="function"){if(SD(M)){var L;M=zNe((L=M)===null||L===void 0?void 0:L.readable)}else M=zNe(M);if(M=j(M,{signal:u}),Q){if(!x8(M,!0))throw new BNe("AsyncIterable",`transform[${G-1}]`,M)}else{var H;UNe||(UNe=din);const Re=new UNe({objectMode:!0}),le=(H=M)===null||H===void 0?void 0:H.then;if(typeof le=="function")C++,le.call(M,ae=>{E=ae,ae!=null&&Re.write(ae),pe&&Re.end(),TK.nextTick(R)},ae=>{Re.destroy(ae),TK.nextTick(R,ae)});else if(x8(M,!0))C++,wue(M,Re,R,{end:pe});else if(HNe(M)||SD(M)){const ae=M.readable||M;C++,wue(ae,Re,R,{end:pe})}else throw new BNe("AsyncIterable or Promise","destination",M);M=Re;const{destroy:xe,cleanup:be}=NHt(M,!1,!0);A.push(xe),De&&h.push(be)}}else if(OHt(j)){if(nde(M)){C+=2;const Re=gdr(M,j,R,{end:pe});WNe(j)&&De&&h.push(Re)}else if(SD(M)||HNe(M)){const Re=M.readable||M;C++,wue(Re,j,R,{end:pe})}else if(x8(M))C++,wue(M,j,R,{end:pe});else throw new Xje("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else if(udr(j)){if(nde(M))C++,KNe(zNe(M),j,R,{end:pe});else if(HNe(M)||x8(M))C++,KNe(M,j,R,{end:pe});else if(SD(M))C++,KNe(M.readable,j,R,{end:pe});else throw new Xje("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else M=PHt.from(j)}return(u!=null&&u.aborted||d!=null&&d.aborted)&&TK.nextTick(w),M}function gdr(n,r,o,{end:l}){let u=!1;if(r.on("close",()=>{u||o(new sdr)}),n.pipe(r,{end:!1}),l){let d=function(){u=!0,r.end()};fdr(n)?TK.nextTick(d):n.once("end",d)}else o();return ohe(n,{readable:!0,writable:!1},d=>{const h=n._readableState;d&&d.code==="ERR_STREAM_PREMATURE_CLOSE"&&h&&h.ended&&!h.errored&&!h.errorEmitted?n.once("end",o).once("error",o):o(d)}),ohe(r,{readable:!1,writable:!0},o)}var OUe={pipelineImpl:hin,pipeline:bdr};const{pipeline:wdr}=OUe,mue=tx(),{destroyer:mdr}=gj,{isNodeStream:yue,isReadable:MHt,isWritable:DHt,isWebStream:qNe,isTransformStream:s8,isWritableStream:LHt,isReadableStream:jHt}=xx,{AbortError:ydr,codes:{ERR_INVALID_ARG_VALUE:FHt,ERR_MISSING_ARGS:vdr}}=T0,_dr=FT;var pin=function(...r){if(r.length===0)throw new vdr("streams");if(r.length===1)return mue.from(r[0]);const o=[...r];if(typeof r[0]=="function"&&(r[0]=mue.from(r[0])),typeof r[r.length-1]=="function"){const R=r.length-1;r[R]=mue.from(r[R])}for(let R=0;R0&&!(DHt(r[R])||LHt(r[R])||s8(r[R])))throw new FHt(`streams[${R}]`,o[R],"must be writable")}let l,u,d,h,w;function v(R){const O=h;h=null,O?O(R):R?w.destroy(R):!C&&!A&&w.destroy()}const y=r[0],E=wdr(r,v),A=!!(DHt(y)||LHt(y)||s8(y)),C=!!(MHt(E)||jHt(E)||s8(E));if(w=new mue({writableObjectMode:!!(y!=null&&y.writableObjectMode),readableObjectMode:!!(E!=null&&E.readableObjectMode),writable:A,readable:C}),A){if(yue(y))w._write=function(O,M,L){y.write(O,M)?L():l=L},w._final=function(O){y.end(),u=O},y.on("drain",function(){if(l){const O=l;l=null,O()}});else if(qNe(y)){const M=(s8(y)?y.writable:y).getWriter();w._write=async function(L,H,G){try{await M.ready,M.write(L).catch(()=>{}),G()}catch(j){G(j)}},w._final=async function(L){try{await M.ready,M.close().catch(()=>{}),u=L}catch(H){L(H)}}}const R=s8(E)?E.readable:E;_dr(R,()=>{if(u){const O=u;u=null,O()}})}if(C){if(yue(E))E.on("readable",function(){if(d){const R=d;d=null,R()}}),E.on("end",function(){w.push(null)}),w._read=function(){for(;;){const R=E.read();if(R===null){d=w._read;return}if(!w.push(R))return}};else if(qNe(E)){const O=(s8(E)?E.readable:E).getReader();w._read=async function(){for(;;)try{const{value:M,done:L}=await O.read();if(!w.push(M))return;if(L){w.push(null);return}}catch{return}}}}return w._destroy=function(R,O){!R&&h!==null&&(R=new ydr),d=null,l=null,u=null,h===null?O(R):(h=O,yue(E)&&mdr(E,R))},w};const Sdr=globalThis.AbortController||$o().AbortController,{codes:{ERR_INVALID_ARG_VALUE:Edr,ERR_INVALID_ARG_TYPE:_J,ERR_MISSING_ARGS:kdr,ERR_OUT_OF_RANGE:Rdr},AbortError:sk}=T0,{validateAbortSignal:ZP,validateInteger:BHt,validateObject:eO}=vJ,xdr=Lf.Symbol("kWeak"),Cdr=Lf.Symbol("kResistStopPropagation"),{finished:Adr}=FT,Tdr=pin,{addAbortSignalNoValidate:$dr}=cbe,{isWritable:Idr,isNodeStream:Pdr}=xx,{deprecate:Odr}=c1,{ArrayPrototypePush:Ndr,Boolean:Mdr,MathFloor:WHt,Number:Ddr,NumberIsNaN:Ldr,Promise:HHt,PromiseReject:UHt,PromiseResolve:jdr,PromisePrototypeThen:GHt,Symbol:bin}=Lf,she=bin("kEmpty"),VHt=bin("kEof");function Fdr(n,r){if(r!=null&&eO(r,"options"),(r==null?void 0:r.signal)!=null&&ZP(r.signal,"options.signal"),Pdr(n)&&!Idr(n))throw new Edr("stream",n,"must be writable");const o=Tdr(this,n);return r!=null&&r.signal&&$dr(r.signal,o),o}function dbe(n,r){if(typeof n!="function")throw new _J("fn",["Function","AsyncFunction"],n);r!=null&&eO(r,"options"),(r==null?void 0:r.signal)!=null&&ZP(r.signal,"options.signal");let o=1;(r==null?void 0:r.concurrency)!=null&&(o=WHt(r.concurrency));let l=o-1;return(r==null?void 0:r.highWaterMark)!=null&&(l=WHt(r.highWaterMark)),BHt(o,"options.concurrency",1),BHt(l,"options.highWaterMark",0),l+=o,(async function*(){const d=c1.AbortSignalAny([r==null?void 0:r.signal].filter(Mdr)),h=this,w=[],v={signal:d};let y,E,A=!1,C=0;function R(){A=!0,O()}function O(){C-=1,M()}function M(){E&&!A&&C=l||C>=o)&&await new HHt(G=>{E=G})}w.push(VHt)}catch(H){const G=UHt(H);GHt(G,O,R),w.push(G)}finally{A=!0,y&&(y(),y=null)}}L();try{for(;;){for(;w.length>0;){const H=await w[0];if(H===VHt)return;if(d.aborted)throw new sk;H!==she&&(yield H),w.shift(),M()}await new HHt(H=>{y=H})}}finally{A=!0,E&&(E(),E=null)}}).call(this)}function Bdr(n=void 0){return n!=null&&eO(n,"options"),(n==null?void 0:n.signal)!=null&&ZP(n.signal,"options.signal"),(async function*(){let o=0;for await(const u of this){var l;if(n!=null&&(l=n.signal)!==null&&l!==void 0&&l.aborted)throw new sk({cause:n.signal.reason});yield[o++,u]}}).call(this)}async function gin(n,r=void 0){for await(const o of NUe.call(this,n,r))return!0;return!1}async function Wdr(n,r=void 0){if(typeof n!="function")throw new _J("fn",["Function","AsyncFunction"],n);return!await gin.call(this,async(...o)=>!await n(...o),r)}async function Hdr(n,r){for await(const o of NUe.call(this,n,r))return o}async function Udr(n,r){if(typeof n!="function")throw new _J("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u),she}for await(const l of dbe.call(this,o,r));}function NUe(n,r){if(typeof n!="function")throw new _J("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u)?l:she}return dbe.call(this,o,r)}let Gdr=class extends kdr{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function Vdr(n,r,o){var l;if(typeof n!="function")throw new _J("reducer",["Function","AsyncFunction"],n);o!=null&&eO(o,"options"),(o==null?void 0:o.signal)!=null&&ZP(o.signal,"options.signal");let u=arguments.length>1;if(o!=null&&(l=o.signal)!==null&&l!==void 0&&l.aborted){const y=new sk(void 0,{cause:o.signal.reason});throw this.once("error",()=>{}),await Adr(this.destroy(y)),y}const d=new Sdr,h=d.signal;if(o!=null&&o.signal){const y={once:!0,[xdr]:this,[Cdr]:!0};o.signal.addEventListener("abort",()=>d.abort(),y)}let w=!1;try{for await(const y of this){var v;if(w=!0,o!=null&&(v=o.signal)!==null&&v!==void 0&&v.aborted)throw new sk;u?r=await n(r,y,{signal:h}):(r=y,u=!0)}if(!w&&!u)throw new Gdr}finally{d.abort()}return r}async function zdr(n){n!=null&&eO(n,"options"),(n==null?void 0:n.signal)!=null&&ZP(n.signal,"options.signal");const r=[];for await(const l of this){var o;if(n!=null&&(o=n.signal)!==null&&o!==void 0&&o.aborted)throw new sk(void 0,{cause:n.signal.reason});Ndr(r,l)}return r}function Kdr(n,r){const o=dbe.call(this,n,r);return(async function*(){for await(const u of o)yield*u}).call(this)}function win(n){if(n=Ddr(n),Ldr(n))return 0;if(n<0)throw new Rdr("number",">= 0",n);return n}function qdr(n,r=void 0){return r!=null&&eO(r,"options"),(r==null?void 0:r.signal)!=null&&ZP(r.signal,"options.signal"),n=win(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new sk;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new sk;n--<=0&&(yield d)}}).call(this)}function Xdr(n,r=void 0){return r!=null&&eO(r,"options"),(r==null?void 0:r.signal)!=null&&ZP(r.signal,"options.signal"),n=win(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new sk;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new sk;if(n-- >0&&(yield d),n<=0)return}}).call(this)}kUe.streamReturningOperators={asIndexedPairs:Odr(Bdr,"readable.asIndexedPairs will be removed in a future version."),drop:qdr,filter:NUe,flatMap:Kdr,map:dbe,take:Xdr,compose:Fdr};kUe.promiseReturningOperators={every:Wdr,forEach:Udr,reduce:Vdr,toArray:zdr,some:gin,find:Hdr};var XNe,zHt;function min(){if(zHt)return XNe;zHt=1;const{ArrayPrototypePop:n,Promise:r}=Lf,{isIterable:o,isNodeStream:l,isWebStream:u}=xx,{pipelineImpl:d}=OUe,{finished:h}=FT;yin();function w(...v){return new r((y,E)=>{let A,C;const R=v[v.length-1];if(R&&typeof R=="object"&&!l(R)&&!o(R)&&!u(R)){const O=n(v);A=O.signal,C=O.end}d(v,(O,M)=>{O?E(O):y(M)},{signal:A,end:C})})}return XNe={finished:h,pipeline:w},XNe}var KHt;function yin(){if(KHt)return PNe.exports;KHt=1;const{Buffer:n}=Kr,{ObjectDefineProperty:r,ObjectKeys:o,ReflectApply:l}=Lf,{promisify:{custom:u}}=c1,{streamReturningOperators:d,promiseReturningOperators:h}=kUe,{codes:{ERR_ILLEGAL_CONSTRUCTOR:w}}=T0,v=pin,{setDefaultHighWaterMark:y,getDefaultHighWaterMark:E}=ube,{pipeline:A}=OUe,{destroyer:C}=gj,R=FT,O=min(),M=xx,L=PNe.exports=TUe.Stream;L.isDestroyed=M.isDestroyed,L.isDisturbed=M.isDisturbed,L.isErrored=M.isErrored,L.isReadable=M.isReadable,L.isWritable=M.isWritable,L.Readable=fbe();for(const G of o(d)){let Q=function(...te){if(new.target)throw w();return L.Readable.from(l(j,this,te))};const j=d[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}for(const G of o(h)){let Q=function(...te){if(new.target)throw w();return l(j,this,te)};const j=h[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}L.Writable=$Ue(),L.Duplex=tx(),L.Transform=uin,L.PassThrough=din,L.pipeline=A;const{addAbortSignal:H}=cbe;return L.addAbortSignal=H,L.finished=R,L.destroy=C,L.compose=v,L.setDefaultHighWaterMark=y,L.getDefaultHighWaterMark=E,r(L,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return O}}),r(A,u,{__proto__:null,enumerable:!0,get(){return O.pipeline}}),r(R,u,{__proto__:null,enumerable:!0,get(){return O.finished}}),L.Stream=L,L._isUint8Array=function(j){return j instanceof Uint8Array},L._uint8ArrayToBuffer=function(j){return n.from(j.buffer,j.byteOffset,j.byteLength)},PNe.exports}(function(n){const r=yin(),o=min(),l=r.Readable.destroy;n.exports=r.Readable,n.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer,n.exports._isUint8Array=r._isUint8Array,n.exports.isDisturbed=r.isDisturbed,n.exports.isErrored=r.isErrored,n.exports.isReadable=r.isReadable,n.exports.Readable=r.Readable,n.exports.Writable=r.Writable,n.exports.Duplex=r.Duplex,n.exports.Transform=r.Transform,n.exports.PassThrough=r.PassThrough,n.exports.addAbortSignal=r.addAbortSignal,n.exports.finished=r.finished,n.exports.destroy=r.destroy,n.exports.destroy=l,n.exports.pipeline=r.pipeline,n.exports.compose=r.compose,Object.defineProperty(r,"promises",{configurable:!0,enumerable:!0,get(){return o}}),n.exports.Stream=r.Stream,n.exports.default=n.exports})(Trn);var Jdr=Trn.exports,hbe={},nK={},MUe={},SJ={};Object.defineProperty(SJ,"__esModule",{value:!0});SJ.BlankNode=void 0;let Ydr=class{constructor(r){this.termType="BlankNode",this.value=r}equals(r){return!!r&&r.termType==="BlankNode"&&r.value===this.value}};SJ.BlankNode=Ydr;var pbe={},EJ={};Object.defineProperty(EJ,"__esModule",{value:!0});EJ.DefaultGraph=void 0;let Jje=class{constructor(){this.termType="DefaultGraph",this.value=""}equals(r){return!!r&&r.termType==="DefaultGraph"}};EJ.DefaultGraph=Jje;Jje.INSTANCE=new Jje;var kJ={},wj={};Object.defineProperty(wj,"__esModule",{value:!0});wj.NamedNode=void 0;let Qdr=class{constructor(r){this.termType="NamedNode",this.value=r}equals(r){return!!r&&r.termType==="NamedNode"&&r.value===this.value}};wj.NamedNode=Qdr;Object.defineProperty(kJ,"__esModule",{value:!0});kJ.Literal=void 0;const vin=wj;let DUe=class Yje{constructor(r,o){this.termType="Literal",this.value=r,typeof o=="string"?(this.language=o,this.datatype=Yje.RDF_LANGUAGE_STRING):o?(this.language="",this.datatype=o):(this.language="",this.datatype=Yje.XSD_STRING)}equals(r){return!!r&&r.termType==="Literal"&&r.value===this.value&&r.language===this.language&&this.datatype.equals(r.datatype)}};kJ.Literal=DUe;DUe.RDF_LANGUAGE_STRING=new vin.NamedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString");DUe.XSD_STRING=new vin.NamedNode("http://www.w3.org/2001/XMLSchema#string");var RJ={};Object.defineProperty(RJ,"__esModule",{value:!0});RJ.Quad=void 0;let Zdr=class{constructor(r,o,l,u){this.termType="Quad",this.value="",this.subject=r,this.predicate=o,this.object=l,this.graph=u}equals(r){return!!r&&(r.termType==="Quad"||!r.termType)&&this.subject.equals(r.subject)&&this.predicate.equals(r.predicate)&&this.object.equals(r.object)&&this.graph.equals(r.graph)}};RJ.Quad=Zdr;var xJ={};Object.defineProperty(xJ,"__esModule",{value:!0});xJ.Variable=void 0;let ehr=class{constructor(r){this.termType="Variable",this.value=r}equals(r){return!!r&&r.termType==="Variable"&&r.value===this.value}};xJ.Variable=ehr;Object.defineProperty(pbe,"__esModule",{value:!0});pbe.DataFactory=void 0;const thr=SJ,nhr=EJ,qHt=kJ,rhr=wj,ihr=RJ,ohr=xJ;let shr=0,lhr=class{constructor(r){this.blankNodeCounter=0,r=r||{},this.blankNodePrefix=r.blankNodePrefix||`df_${shr++}_`}namedNode(r){return new rhr.NamedNode(r)}blankNode(r){return new thr.BlankNode(r||`${this.blankNodePrefix}${this.blankNodeCounter++}`)}literal(r,o){return new qHt.Literal(r,o)}variable(r){return new ohr.Variable(r)}defaultGraph(){return nhr.DefaultGraph.INSTANCE}quad(r,o,l,u){return new ihr.Quad(r,o,l,u||this.defaultGraph())}fromTerm(r){switch(r.termType){case"NamedNode":return this.namedNode(r.value);case"BlankNode":return this.blankNode(r.value);case"Literal":return r.language?this.literal(r.value,r.language):r.datatype.equals(qHt.Literal.XSD_STRING)?this.literal(r.value):this.literal(r.value,this.fromTerm(r.datatype));case"Variable":return this.variable(r.value);case"DefaultGraph":return this.defaultGraph();case"Quad":return this.quad(this.fromTerm(r.subject),this.fromTerm(r.predicate),this.fromTerm(r.object),this.fromTerm(r.graph))}}fromQuad(r){return this.fromTerm(r)}resetBlankNodeCounter(){this.blankNodeCounter=0}};pbe.DataFactory=lhr;(function(n){var r=fu&&fu.__createBinding||(Object.create?function(l,u,d,h){h===void 0&&(h=d),Object.defineProperty(l,h,{enumerable:!0,get:function(){return u[d]}})}:function(l,u,d,h){h===void 0&&(h=d),l[h]=u[d]}),o=fu&&fu.__exportStar||function(l,u){for(var d in l)d!=="default"&&!Object.prototype.hasOwnProperty.call(u,d)&&r(u,l,d)};Object.defineProperty(n,"__esModule",{value:!0}),o(SJ,n),o(pbe,n),o(EJ,n),o(kJ,n),o(wj,n),o(RJ,n),o(xJ,n)})(MUe);var rK={},bbe={};Object.defineProperty(bbe,"__esModule",{value:!0});bbe.ContainerHandlerIdentifier=void 0;class ahr{canCombineWithGraph(){return!0}async handle(r,o,l,u,d,h){let w;if(o.emittedStack[h+1]&&o.idStack[h+1])w=o.idStack[h+1][0];else{const E=await l.getContainerKey(u[h],u,h)!==null?await l.resourceToTerm(await o.getContext(u),u[h]):l.dataFactory.blankNode();if(!E){o.emittedStack[h]=!1;return}w=E,o.idStack[h+1]=[w]}let v=o.idStack[h];v||(v=o.idStack[h]=[]),v.some(y=>y.equals(w))||v.push(w),await o.handlePendingContainerFlushBuffers()||(o.emittedStack[h]=!1)}}bbe.ContainerHandlerIdentifier=ahr;var iK={},oK={},XHt;function gbe(){if(XHt)return oK;XHt=1,Object.defineProperty(oK,"__esModule",{value:!0}),oK.EntryHandlerPredicate=void 0;const n=a1,r=tO();let o=class _in{static async handlePredicateObject(u,d,h,w,v,y,E,A,C){const R=await d.getPropertiesDepth(h,w),O=await d.getDepthOffsetGraph(w,h),M=w-O,L=u.idStack[R];if(L&&!C)for(const H of L)if(O>=0){const j=u.idStack[M-1];if(j)for(const Q of j)d.emitQuadChecked(w,H,v,y,Q,E,A);else E?(d.validateReverseSubject(y),u.getUnidentifiedGraphBufferSafe(M-1).push({subject:y,predicate:v,object:H,isEmbedded:A})):u.getUnidentifiedGraphBufferSafe(M-1).push({subject:H,predicate:v,object:y,isEmbedded:A})}else{const j=await d.getGraphContainerValue(h,R);d.emitQuadChecked(w,H,v,y,j,E,A)}else if(E&&d.validateReverseSubject(y),C){if(u.rdfstar){u.idStack[w]&&u.emitError(new n.ErrorCoded(`Found an illegal @id inside an annotation: ${u.idStack[w][0].value}`,n.ERROR_CODES.INVALID_ANNOTATION));for(let j=0;j=0;j--){const Q=H[j];Q.depth>R&&(G.nestedAnnotations.push(Q),H.splice(j,1))}}}else u.getUnidentifiedValueBufferSafe(R).push({predicate:v,object:y,reverse:E,isEmbedded:A})}isPropertyHandler(){return!0}isStackProcessor(){return!0}async validate(u,d,h,w,v){const y=h[w];if(y){const E=await u.getContext(h);if(!u.jsonLiteralStack[w]&&await d.predicateToTerm(E,h[w]))return r.Util.getContextValueType(E,y)==="@json"&&(u.jsonLiteralStack[w+1]=!0),!0}return!1}async test(u,d,h,w,v){return w[v]}async handle(u,d,h,w,v,y,E){const A=w[y],C=await u.getContext(w),R=await d.predicateToTerm(C,h);if(R){const O=await d.valueToTerm(C,h,v,y,w);if(O.length)for(let M of O){let L=await d.unaliasKeywordParent(w,y);const H=r.Util.isPropertyReverse(C,A,L);let G=0;for(;L==="@reverse"||typeof L=="number";)typeof L=="number"?G++:y--,L=await d.unaliasKeywordParent(w,y-G);const j=r.Util.isPropertyInEmbeddedNode(L);d.validateReverseInEmbeddedNode(h,H,j);const Q=r.Util.isPropertyInAnnotationObject(L);if(v){const te="@list"in r.Util.getContextValueContainer(C,h);if(te||v["@list"]){if((te&&!Array.isArray(v)&&!v["@list"]||v["@list"]&&!Array.isArray(v["@list"]))&&M!==d.rdfNil){const pe=d.dataFactory.blankNode();u.emitQuad(y,d.dataFactory.quad(pe,d.rdfRest,d.rdfNil,d.getDefaultGraph())),u.emitQuad(y,d.dataFactory.quad(pe,d.rdfFirst,M,d.getDefaultGraph())),M=pe}if(H&&!u.allowSubjectList)throw new n.ErrorCoded(`Found illegal list value in subject position at ${h}`,n.ERROR_CODES.INVALID_REVERSE_PROPERTY_VALUE)}}await _in.handlePredicateObject(u,d,w,y,R,M,H,j,Q)}}}};return oK.EntryHandlerPredicate=o,oK}var JHt;function chr(){if(JHt)return iK;JHt=1,Object.defineProperty(iK,"__esModule",{value:!0}),iK.ContainerHandlerIndex=void 0;const n=a1,r=gbe(),o=tO();let l=class{canCombineWithGraph(){return!0}async handle(d,h,w,v,y,E){if(!Array.isArray(y)){const A="@graph"in d,C=await h.getContext(v),R=v[E-1],O=o.Util.getContextValueIndex(C,R);if(O){if(n.Util.isPotentialKeyword(O))throw new n.ErrorCoded(`Keywords can not be used as @index value, got: ${O}`,n.ERROR_CODES.INVALID_TERM_DEFINITION);if(typeof O!="string")throw new n.ErrorCoded(`@index values must be strings, got: ${O}`,n.ERROR_CODES.INVALID_TERM_DEFINITION);if(typeof y!="object"){if(o.Util.getContextValueType(C,R)!=="@id")throw new n.ErrorCoded(`Property-based index containers require nodes as values or strings with @type: @id, but got: ${y}`,n.ERROR_CODES.INVALID_VALUE_OBJECT);const H=w.resourceToTerm(C,y);H&&(h.idStack[E+1]=[H])}const L=w.createVocabOrBaseTerm(C,O);if(L){const H=await w.valueToTerm(C,O,await w.getContainerKey(v[E],v,E),E,v);if(A){const G=await w.getGraphContainerValue(v,E+1);for(const j of H)h.emitQuad(E,w.dataFactory.quad(G,L,j,w.getDefaultGraph()))}else for(const G of H)await r.EntryHandlerPredicate.handlePredicateObject(h,w,v,E+1,L,G,!1,!1,!1)}}const M=A?2:1;await h.newOnValueJob(v.slice(0,v.length-M),y,E-M,!0),await h.handlePendingContainerFlushBuffers()}h.emittedStack[E]=!1}};return iK.ContainerHandlerIndex=l,iK}var wbe={};Object.defineProperty(wbe,"__esModule",{value:!0});wbe.ContainerHandlerLanguage=void 0;const YHt=a1;class uhr{canCombineWithGraph(){return!1}async handle(r,o,l,u,d,h){const w=await l.getContainerKey(u[h],u,h);if(Array.isArray(d))d=d.map(v=>({"@value":v,"@language":w}));else{if(typeof d!="string")throw new YHt.ErrorCoded(`Got invalid language map value, got '${JSON.stringify(d)}', but expected string`,YHt.ERROR_CODES.INVALID_LANGUAGE_MAP_VALUE);d={"@value":d,"@language":w}}await o.newOnValueJob(u.slice(0,u.length-1),d,h-1,!0),o.emittedStack[h]=!1}}wbe.ContainerHandlerLanguage=uhr;var sK={},QHt;function fhr(){if(QHt)return sK;QHt=1,Object.defineProperty(sK,"__esModule",{value:!0}),sK.ContainerHandlerType=void 0;const n=gbe(),r=tO();let o=class{canCombineWithGraph(){return!1}async handle(u,d,h,w,v,y){if(!Array.isArray(v)){if(typeof v=="string"){const C=await d.getContext(w),O=r.Util.getContextValueType(C,w[y-1])==="@vocab"?await h.createVocabOrBaseTerm(C,v):await h.resourceToTerm(C,v);if(O){const M={"@id":O.termType==="NamedNode"?O.value:v};await d.newOnValueJob(w.slice(0,w.length-1),M,y-1,!0),d.idStack[y+1]=[O]}}else{const C=!!d.idStack[y+1];C||delete d.idStack[y],await d.newOnValueJob(w.slice(0,w.length-1),v,y-1,!0),C||(d.idStack[y+1]=d.idStack[y])}const E=await h.getContainerKey(w[y],w,y),A=E!==null?h.createVocabOrBaseTerm(await d.getContext(w),E):null;A&&await n.EntryHandlerPredicate.handlePredicateObject(d,h,w,y+1,h.rdfType,A,!1,!1,!1),await d.handlePendingContainerFlushBuffers()}d.emittedStack[y]=!1}};return sK.ContainerHandlerType=o,sK}var ZHt;function Sin(){if(ZHt)return rK;ZHt=1,Object.defineProperty(rK,"__esModule",{value:!0}),rK.EntryHandlerContainer=void 0;const n=bbe,r=chr(),o=wbe,l=fhr(),u=tO();let d=class F4{static isSimpleGraphContainer(w){return"@graph"in w&&("@set"in w&&Object.keys(w).length===2||Object.keys(w).length===1)}static isComplexGraphContainer(w){return"@graph"in w&&("@set"in w&&Object.keys(w).length>2||!("@set"in w)&&Object.keys(w).length>1)}static getContainerGraphIndex(w,v,y){let E=F4.isSimpleGraphContainer(w),A="";for(let C=v;C=0;R--)if(typeof v[R]!="number"){const O=u.Util.getContextValue(C,"@container",v[R],!1);if(O&&F4.isSimpleGraphContainer(O))return{containers:O,depth:R+1,fallback:!1};const M=u.Util.getContextValue(C,"@container",v[R-1],!1);if(M){const L="@graph"in M;for(const H in F4.CONTAINER_HANDLERS)if(M[H])return L?F4.CONTAINER_HANDLERS[H].canCombineWithGraph()?{containers:M,depth:R,fallback:!1}:E:A?E:{containers:M,depth:R,fallback:!1};return E}else{if(A)return E;A=!0}}return E}static async isBufferableContainerHandler(w,v,y){const E=await F4.getContainerHandler(w,v,y);return!E.fallback&&!("@graph"in E.containers)}isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(w,v,y,E,A){return!!await this.test(w,v,null,y,E)}async test(w,v,y,E,A){const C=u.Util.getContextValueContainer(await w.getContext(E,2),E[A-1]);for(const R in F4.CONTAINER_HANDLERS)if(C[R])return{containers:C,handler:F4.CONTAINER_HANDLERS[R]};return null}async handle(w,v,y,E,A,C,R){return R.handler.handle(R.containers,w,v,E,A,C)}};return d.CONTAINER_HANDLERS={"@id":new n.ContainerHandlerIdentifier,"@index":new r.ContainerHandlerIndex,"@language":new o.ContainerHandlerLanguage,"@type":new l.ContainerHandlerType},rK.EntryHandlerContainer=d,rK}var Ein=function n(r){return r===null||typeof r!="object"||r.toJSON!=null?JSON.stringify(r):Array.isArray(r)?"["+r.reduce((o,l,u)=>{const d=u===0?"":",",h=l===void 0||typeof l=="symbol"?null:l;return o+d+n(h)},"")+"]":"{"+Object.keys(r).sort().reduce((o,l,u)=>{if(r[l]===void 0||typeof r[l]=="symbol")return o;const d=o.length===0?"":",";return o+d+n(l)+":"+n(r[l])},"")+"}"},eUt;function tO(){if(eUt)return nK;eUt=1,Object.defineProperty(nK,"__esModule",{value:!0}),nK.Util=void 0;const n=a1,r=MUe,o=Sin(),l=Ein;let u=class ic{constructor(h){this.parsingContext=h.parsingContext,this.dataFactory=h.dataFactory||new r.DataFactory,this.rdfFirst=this.dataFactory.namedNode(ic.RDF+"first"),this.rdfRest=this.dataFactory.namedNode(ic.RDF+"rest"),this.rdfNil=this.dataFactory.namedNode(ic.RDF+"nil"),this.rdfType=this.dataFactory.namedNode(ic.RDF+"type"),this.rdfJson=this.dataFactory.namedNode(ic.RDF+"JSON")}static getContextValue(h,w,v,y){const E=h.getContextRaw()[v];if(!E)return y;const A=E[w];return A===void 0?y:A}static getContextValueContainer(h,w){return ic.getContextValue(h,"@container",w,{"@set":!0})}static getContextValueType(h,w){const v=ic.getContextValue(h,"@type",w,null);return v==="@none"?null:v}static getContextValueLanguage(h,w){return ic.getContextValue(h,"@language",w,h.getContextRaw()["@language"]||null)}static getContextValueDirection(h,w){return ic.getContextValue(h,"@direction",w,h.getContextRaw()["@direction"]||null)}static isContextValueReverse(h,w){return!!ic.getContextValue(h,"@reverse",w,null)}static getContextValueIndex(h,w){return ic.getContextValue(h,"@index",w,h.getContextRaw()["@index"]||null)}static isPropertyReverse(h,w,v){return v==="@reverse"!==ic.isContextValueReverse(h,w)}static isPropertyInEmbeddedNode(h){return h==="@id"}static isPropertyInAnnotationObject(h){return h==="@annotation"}static isValidIri(h){return h!==null&&n.Util.isValidIri(h)}static isPrefixArray(h,w){if(h.length>w.length)return!1;for(let v=0;v1)throw new n.ErrorCoded(`Found illegal neighbouring entries next to @set for key: '${w}'`,n.ERROR_CODES.INVALID_SET_OR_LIST_OBJECT);return[]}else if("@list"in v){if(Object.keys(v).length>1)throw new n.ErrorCoded(`Found illegal neighbouring entries next to @list for key: '${w}'`,n.ERROR_CODES.INVALID_SET_OR_LIST_OBJECT);const C=v["@list"];return Array.isArray(C)?C.length===0?[this.rdfNil]:this.parsingContext.idStack[y+1]||[]:await this.valueToTerm(await this.parsingContext.getContext(E),w,C,y-1,E.slice(0,-1))}else{if("@reverse"in v&&typeof v["@reverse"]=="boolean")return[];if("@graph"in ic.getContextValueContainer(await this.parsingContext.getContext(E),w)){const C=this.parsingContext.graphContainerTermStack[y+1];return C?Object.values(C):[this.dataFactory.blankNode()]}else if("@id"in v){if(Object.keys(v).length>1&&(h=await this.parsingContext.getContext(E,0)),"@context"in v&&(h=await this.parsingContext.parseContext(v["@context"],h.getContextRaw())),v["@type"]==="@vocab")return this.nullableTermToArray(this.createVocabOrBaseTerm(h,v["@id"]));{const C=v["@id"];let R;if(typeof C=="object")if(this.parsingContext.rdfstar)R=this.parsingContext.idStack[y+1][0];else throw new n.ErrorCoded(`Found illegal @id '${v}'`,n.ERROR_CODES.INVALID_ID_VALUE);else R=this.resourceToTerm(h,C);return this.nullableTermToArray(R)}}else return this.parsingContext.emittedStack[y+1]||v&&typeof v=="object"&&Object.keys(v).length===0?this.parsingContext.idStack[y+1]||(this.parsingContext.idStack[y+1]=[this.dataFactory.blankNode()]):[]}case"string":return this.nullableTermToArray(this.stringValueToTerm(y,await this.getContextSelfOrPropertyScoped(h,w),w,v,null));case"boolean":return this.nullableTermToArray(this.stringValueToTerm(y,await this.getContextSelfOrPropertyScoped(h,w),w,(!!v).toString(),this.dataFactory.namedNode(ic.XSD_BOOLEAN)));case"number":return this.nullableTermToArray(this.stringValueToTerm(y,await this.getContextSelfOrPropertyScoped(h,w),w,v,this.dataFactory.namedNode(v%1===0&&v<1e21?ic.XSD_INTEGER:ic.XSD_DOUBLE)));default:return this.parsingContext.emitError(new Error(`Could not determine the RDF type of a ${A}`)),[]}}async getContextSelfOrPropertyScoped(h,w){const v=h.getContextRaw()[w];return v&&typeof v=="object"&&"@context"in v&&(h=await this.parsingContext.parseContext(v,h.getContextRaw(),!0)),h}nullableTermToArray(h){return h?[h]:[]}predicateToTerm(h,w){const v=h.expandTerm(w,!0,this.parsingContext.getExpandOptions());if(!v)return null;if(v[0]==="_"&&v[1]===":")return this.parsingContext.produceGeneralizedRdf?this.dataFactory.blankNode(v.substr(2)):null;if(ic.isValidIri(v))return this.dataFactory.namedNode(v);if(v&&this.parsingContext.strictValues)this.parsingContext.emitError(new n.ErrorCoded(`Invalid predicate IRI: ${v}`,n.ERROR_CODES.INVALID_IRI_MAPPING));else return null;return null}resourceToTerm(h,w){if(w.startsWith("_:"))return this.dataFactory.blankNode(w.substr(2));const v=h.expandTerm(w,!1,this.parsingContext.getExpandOptions());if(!ic.isValidIri(v))if(v&&this.parsingContext.strictValues)this.parsingContext.emitError(new Error(`Invalid resource IRI: ${v}`));else return null;return this.dataFactory.namedNode(v)}createVocabOrBaseTerm(h,w){if(w.startsWith("_:"))return this.dataFactory.blankNode(w.substr(2));const v=this.parsingContext.getExpandOptions();let y=h.expandTerm(w,!0,v);if(y===w&&(y=h.expandTerm(w,!1,v)),!ic.isValidIri(y))if(y&&this.parsingContext.strictValues&&!y.startsWith("@"))this.parsingContext.emitError(new Error(`Invalid term IRI: ${y}`));else return null;return this.dataFactory.namedNode(y)}intToString(h,w){return typeof h=="number"?Number.isFinite(h)?h%1===0&&(!w||w.value!==ic.XSD_DOUBLE)?Number(h).toString():h.toExponential(15).replace(/(\d)0*e\+?/,"$1E"):h>0?"INF":"-INF":h}stringValueToTerm(h,w,v,y,E){const A=ic.getContextValueType(w,v);if(A)if(A==="@id"){if(!E)return this.resourceToTerm(w,this.intToString(y,E))}else if(A==="@vocab"){if(!E)return this.createVocabOrBaseTerm(w,this.intToString(y,E))}else E=this.dataFactory.namedNode(A);if(!E){const C=ic.getContextValueLanguage(w,v),R=ic.getContextValueDirection(w,v);return R&&this.parsingContext.rdfDirection?this.createLanguageDirectionLiteral(h,this.intToString(y,E),C,R):this.dataFactory.literal(this.intToString(y,E),C)}return this.dataFactory.literal(this.intToString(y,E),E)}createLanguageDirectionLiteral(h,w,v,y){if(this.parsingContext.rdfDirection==="i18n-datatype")return v||(v=""),this.dataFactory.literal(w,this.dataFactory.namedNode(`https://www.w3.org/ns/i18n#${v}_${y}`));{const E=this.dataFactory.blankNode(),A=this.getDefaultGraph();return this.parsingContext.emitQuad(h,this.dataFactory.quad(E,this.dataFactory.namedNode(ic.RDF+"value"),this.dataFactory.literal(w),A)),v&&this.parsingContext.emitQuad(h,this.dataFactory.quad(E,this.dataFactory.namedNode(ic.RDF+"language"),this.dataFactory.literal(v),A)),this.parsingContext.emitQuad(h,this.dataFactory.quad(E,this.dataFactory.namedNode(ic.RDF+"direction"),this.dataFactory.literal(y),A)),E}}valueToJsonString(h){return l(h)}async unaliasKeyword(h,w,v,y,E){if(Number.isInteger(h))return h;if(!y){const A=this.parsingContext.unaliasedKeywordCacheStack[v];if(A)return A}if(!n.Util.isPotentialKeyword(h)){E=E||await this.parsingContext.getContext(w);let A=E.getContextRaw()[h];A&&typeof A=="object"&&(A=A["@id"]),n.Util.isValidKeyword(A)&&(h=A)}return y?h:this.parsingContext.unaliasedKeywordCacheStack[v]=h}async unaliasKeywordParent(h,w){return await this.unaliasKeyword(w>0&&h[w-1],h,w-1)}async unaliasKeywords(h,w,v,y){const E={};for(const A in h)E[await this.unaliasKeyword(A,w,v+1,!0,y)]=h[A];return E}async isLiteral(h,w){for(let v=w;v>=0;v--){if(await this.unaliasKeyword(h[v],h,v)==="@annotation")return!1;if(this.parsingContext.literalStack[v]||this.parsingContext.jsonLiteralStack[v])return!0}return!1}async getDepthOffsetGraph(h,w){for(let v=h-1;v>0;v--)if(await this.unaliasKeyword(w[v],w,v)==="@graph"){const y=(await o.EntryHandlerContainer.getContainerHandler(this.parsingContext,w,v)).containers;return o.EntryHandlerContainer.isComplexGraphContainer(y)?-1:h-v-1}return-1}validateReverseSubject(h){if(h.termType==="Literal")throw new n.ErrorCoded(`Found illegal literal in subject position: ${h.value}`,n.ERROR_CODES.INVALID_REVERSE_PROPERTY_VALUE)}getDefaultGraph(){return this.parsingContext.defaultGraph||this.dataFactory.defaultGraph()}async getGraphContainerValue(h,w){let v=this.getDefaultGraph();const{containers:y,depth:E}=await o.EntryHandlerContainer.getContainerHandler(this.parsingContext,h,w);if("@graph"in y){const A=o.EntryHandlerContainer.getContainerGraphIndex(y,E,h),C=this.parsingContext.graphContainerTermStack[E];if(v=C?C[A]:null,!v){let R=null;if("@id"in y){const O=await this.getContainerKey(h[E],h,E);O!==null&&(R=await this.resourceToTerm(await this.parsingContext.getContext(h),O))}R||(R=this.dataFactory.blankNode()),this.parsingContext.graphContainerTermStack[E]||(this.parsingContext.graphContainerTermStack[E]={}),v=this.parsingContext.graphContainerTermStack[E][A]=R}}return v}async getPropertiesDepth(h,w){let v=w;for(let y=w-1;y>0;y--)if(typeof h[y]!="number"){const E=await this.unaliasKeyword(h[y],h,y);if(E==="@reverse")return y;if(E==="@nest")v=y;else return v}return v}async getContainerKey(h,w,v){const y=await this.unaliasKeyword(h,w,v);return y==="@none"?null:y}validateReverseInEmbeddedNode(h,w,v){if(v&&w&&!this.parsingContext.rdfstarReverseInEmbedded)throw new n.ErrorCoded(`Illegal reverse property in embedded node in ${h}`,n.ERROR_CODES.INVALID_EMBEDDED_NODE)}emitQuadChecked(h,w,v,y,E,A,C){let R;if(A?(this.validateReverseSubject(y),R=this.dataFactory.quad(y,v,w,E)):R=this.dataFactory.quad(w,v,y,E),C){if(R.graph.termType!=="DefaultGraph"&&(R=this.dataFactory.quad(R.subject,R.predicate,R.object)),this.parsingContext.idStack[h-1])throw new n.ErrorCoded("Illegal multiple properties in an embedded node",n.ERROR_CODES.INVALID_EMBEDDED_NODE);this.parsingContext.idStack[h-1]=[R]}else this.parsingContext.emitQuad(h,R);const O=this.parsingContext.annotationsBuffer[h];if(O){for(const M of O)this.emitAnnotation(h,R,M);delete this.parsingContext.annotationsBuffer[h]}}emitAnnotation(h,w,v){let y;v.reverse?(this.validateReverseSubject(v.object),y=this.dataFactory.quad(v.object,v.predicate,w)):y=this.dataFactory.quad(w,v.predicate,v.object),this.parsingContext.emitQuad(h,y);for(const E of v.nestedAnnotations)this.emitAnnotation(h,y,E)}};return u.XSD="http://www.w3.org/2001/XMLSchema#",u.XSD_BOOLEAN=u.XSD+"boolean",u.XSD_INTEGER=u.XSD+"integer",u.XSD_DOUBLE=u.XSD+"double",u.RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#",nK.Util=u,nK}Object.defineProperty(hbe,"__esModule",{value:!0});hbe.EntryHandlerArrayValue=void 0;const dhr=tO(),tUt=a1;class hhr{isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(r,o,l,u,d){return this.test(r,o,null,l,u)}async test(r,o,l,u,d){return typeof u[d]=="number"}async handle(r,o,l,u,d,h){let w=await o.unaliasKeywordParent(u,h);if(w==="@list"){let v=null,y=0;for(let E=h-2;E>0;E--){const A=u[E];if(typeof A=="string"||typeof A=="number"){y=E,v=A;break}}if(v!==null){const E=await o.valueToTerm(await r.getContext(u),v,d,h,u);for(const A of E)await this.handleListElement(r,o,A,d,h,u.slice(0,y),y);E.length===0&&await this.handleListElement(r,o,null,d,h,u.slice(0,y),y)}}else if(w==="@set")await r.newOnValueJob(u.slice(0,-2),d,h-2,!1);else if(w!==void 0&&w!=="@type"){for(let y=h-1;y>0;y--)if(typeof u[y]!="number"){w=await o.unaliasKeyword(u[y],u,y);break}const v=await r.getContext(u.slice(0,-1));if("@list"in dhr.Util.getContextValueContainer(v,w)){r.emittedStack[h+1]=!0;const y=await o.valueToTerm(await r.getContext(u),w,d,h,u);for(const E of y)await this.handleListElement(r,o,E,d,h,u.slice(0,-1),h-1);y.length===0&&await this.handleListElement(r,o,null,d,h,u.slice(0,-1),h-1)}else r.shiftStack(h,1),await r.newOnValueJob(u.slice(0,-1),d,h-1,!1),r.contextTree.removeContext(u.slice(0,-1))}}async handleListElement(r,o,l,u,d,h,w){let v=r.listPointerStack[d];if(u!==null&&(await o.unaliasKeywords(u,h,d))["@value"]!==null){if(!v||!v.value){const y=o.dataFactory.blankNode();v={value:y,listRootDepth:w,listId:y}}else{const y=o.dataFactory.blankNode();r.emitQuad(d,o.dataFactory.quad(v.value,o.rdfRest,y,o.getDefaultGraph())),v.value=y}l&&r.emitQuad(d,o.dataFactory.quad(v.value,o.rdfFirst,l,o.getDefaultGraph()))}else v||(v={listRootDepth:w,listId:o.rdfNil});r.listPointerStack[d]=v,r.rdfstar&&r.annotationsBuffer[d]&&r.emitError(new tUt.ErrorCoded("Found an illegal annotation inside a list",tUt.ERROR_CODES.INVALID_ANNOTATION))}}hbe.EntryHandlerArrayValue=hhr;var mbe={};Object.defineProperty(mbe,"__esModule",{value:!0});mbe.EntryHandlerInvalidFallback=void 0;class phr{isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(r,o,l,u,d){return!1}async test(r,o,l,u,d){return!0}async handle(r,o,l,u,d,h){r.emittedStack[h]=!1}}mbe.EntryHandlerInvalidFallback=phr;var ybe={},IS={};Object.defineProperty(IS,"__esModule",{value:!0});IS.EntryHandlerKeyword=void 0;class bhr{constructor(r){this.keyword=r}isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(r,o,l,u,d){return!1}async test(r,o,l,u,d){return l===this.keyword}}IS.EntryHandlerKeyword=bhr;Object.defineProperty(ybe,"__esModule",{value:!0});ybe.EntryHandlerKeywordContext=void 0;const nUt=a1,ghr=IS;class whr extends ghr.EntryHandlerKeyword{constructor(){super("@context")}isStackProcessor(){return!1}async handle(r,o,l,u,d,h){r.streamingProfile&&(r.processingStack[h]||r.processingType[h]||r.idStack[h]!==void 0)&&r.emitError(new nUt.ErrorCoded("Found an out-of-order context, while streaming is enabled.(disable `streamingProfile`)",nUt.ERROR_CODES.INVALID_STREAMING_KEY_ORDER));const w=r.getContext(u),v=r.parseContext(d,(await w).getContextRaw());r.contextTree.setContext(u.slice(0,-1),v),r.emitContext(d),await r.validateContext(await v)}}ybe.EntryHandlerKeywordContext=whr;var vbe={};Object.defineProperty(vbe,"__esModule",{value:!0});vbe.EntryHandlerKeywordGraph=void 0;const mhr=IS;class yhr extends mhr.EntryHandlerKeyword{constructor(){super("@graph")}async handle(r,o,l,u,d,h){r.graphStack[h+1]=!0}}vbe.EntryHandlerKeywordGraph=yhr;var _be={};Object.defineProperty(_be,"__esModule",{value:!0});_be.EntryHandlerKeywordId=void 0;const kE=a1,vhr=IS;class _hr extends vhr.EntryHandlerKeyword{constructor(){super("@id")}isStackProcessor(){return!1}async handle(r,o,l,u,d,h){if(typeof d!="string"){if(r.rdfstar&&typeof d=="object"){const v=Object.keys(d);v.length===1&&v[0]==="@id"&&r.emitError(new kE.ErrorCoded(`Invalid embedded node without property with @id ${d["@id"]}`,kE.ERROR_CODES.INVALID_EMBEDDED_NODE))}else r.emitError(new kE.ErrorCoded(`Found illegal @id '${d}'`,kE.ERROR_CODES.INVALID_ID_VALUE));return}const w=await o.getPropertiesDepth(u,h);if(r.idStack[w]!==void 0&&(r.idStack[w][0].listHead?r.emitError(new kE.ErrorCoded(`Found illegal neighbouring entries next to @list for key: '${u[h-1]}'`,kE.ERROR_CODES.INVALID_SET_OR_LIST_OBJECT)):r.emitError(new kE.ErrorCoded(`Found duplicate @ids '${r.idStack[w][0].value}' and '${d}'`,kE.ERROR_CODES.COLLIDING_KEYWORDS))),r.rdfstar&&r.annotationsBuffer[h])for(const v of r.annotationsBuffer[h])v.depth===h&&r.emitError(new kE.ErrorCoded(`Found an illegal @id inside an annotation: ${d}`,kE.ERROR_CODES.INVALID_ANNOTATION));r.idStack[w]=o.nullableTermToArray(await o.resourceToTerm(await r.getContext(u),d))}}_be.EntryHandlerKeywordId=_hr;var Sbe={};Object.defineProperty(Sbe,"__esModule",{value:!0});Sbe.EntryHandlerKeywordIncluded=void 0;const lD=a1,Shr=IS;class Ehr extends Shr.EntryHandlerKeyword{constructor(){super("@included")}async handle(r,o,l,u,d,h){typeof d!="object"&&r.emitError(new lD.ErrorCoded(`Found illegal @included '${d}'`,lD.ERROR_CODES.INVALID_INCLUDED_VALUE));const w=await o.unaliasKeywords(d,u,h,await r.getContext(u));"@value"in w&&r.emitError(new lD.ErrorCoded(`Found an illegal @included @value node '${JSON.stringify(d)}'`,lD.ERROR_CODES.INVALID_INCLUDED_VALUE)),"@list"in w&&r.emitError(new lD.ErrorCoded(`Found an illegal @included @list node '${JSON.stringify(d)}'`,lD.ERROR_CODES.INVALID_INCLUDED_VALUE)),r.emittedStack[h]=!1}}Sbe.EntryHandlerKeywordIncluded=Ehr;var Ebe={};Object.defineProperty(Ebe,"__esModule",{value:!0});Ebe.EntryHandlerKeywordNest=void 0;const vue=a1,khr=IS;class Rhr extends khr.EntryHandlerKeyword{constructor(){super("@nest")}async handle(r,o,l,u,d,h){typeof d!="object"&&r.emitError(new vue.ErrorCoded(`Found invalid @nest entry for '${l}': '${d}'`,vue.ERROR_CODES.INVALID_NEST_VALUE)),"@value"in await o.unaliasKeywords(d,u,h,await r.getContext(u))&&r.emitError(new vue.ErrorCoded(`Found an invalid @value node for '${l}'`,vue.ERROR_CODES.INVALID_NEST_VALUE)),r.emittedStack[h]=!1}}Ebe.EntryHandlerKeywordNest=Rhr;var kbe={};Object.defineProperty(kbe,"__esModule",{value:!0});kbe.EntryHandlerKeywordType=void 0;const lK=a1,_ue=tO(),xhr=gbe(),Chr=IS;class Ahr extends Chr.EntryHandlerKeyword{constructor(){super("@type")}isStackProcessor(){return!1}async handle(r,o,l,u,d,h){const w=u[h],v=await r.getContext(u),y=o.rdfType,E=await o.unaliasKeywordParent(u,h),A=_ue.Util.isPropertyReverse(v,w,E),C=_ue.Util.isPropertyInEmbeddedNode(E);o.validateReverseInEmbeddedNode(l,A,C);const R=_ue.Util.isPropertyInAnnotationObject(E),O=Array.isArray(d)?d:[d];for(const H of O){typeof H!="string"&&r.emitError(new lK.ErrorCoded(`Found illegal @type '${H}'`,lK.ERROR_CODES.INVALID_TYPE_VALUE));const G=o.createVocabOrBaseTerm(v,H);G&&await xhr.EntryHandlerPredicate.handlePredicateObject(r,o,u,h,y,G,A,C,R)}let M=Promise.resolve(v),L=!1;for(const H of O.sort()){const G=_ue.Util.getContextValue(v,"@context",H,null);G&&(L=!0,M=M.then(j=>r.parseContext(G,j.getContextRaw())))}r.streamingProfile&&(L||!r.streamingProfileAllowOutOfOrderPlainType)&&(r.processingStack[h]||r.idStack[h])&&r.emitError(new lK.ErrorCoded("Found an out-of-order type-scoped context, while streaming is enabled.(disable `streamingProfile`)",lK.ERROR_CODES.INVALID_STREAMING_KEY_ORDER)),L&&(M=M.then(H=>H.getContextRaw()["@propagate"]!==!0?new lK.JsonLdContextNormalized(Object.assign(Object.assign({},H.getContextRaw()),{"@propagate":!1,"@__propagateFallback":v.getContextRaw()})):H),r.contextTree.setContext(u.slice(0,u.length-1),M)),r.processingType[h]=!0}}kbe.EntryHandlerKeywordType=Ahr;var Rbe={};Object.defineProperty(Rbe,"__esModule",{value:!0});Rbe.EntryHandlerKeywordUnknownFallback=void 0;const gq=a1;class xbe{isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(r,o,l,u,d){const h=await o.unaliasKeyword(l[u],l,u);return gq.Util.isPotentialKeyword(h)?!(!d&&h==="@list"):!1}async test(r,o,l,u,d){return gq.Util.isPotentialKeyword(l)}async handle(r,o,l,u,d,h){const w=xbe.VALID_KEYWORDS_TYPES[l];w!==void 0?w&&typeof d!==w.type&&r.emitError(new gq.ErrorCoded(`Invalid value type for '${l}' with value '${d}'`,w.errorCode)):r.strictValues&&r.emitError(new Error(`Unknown keyword '${l}' with value '${d}'`)),r.emittedStack[h]=!1}}xbe.VALID_KEYWORDS_TYPES={"@index":{type:"string",errorCode:gq.ERROR_CODES.INVALID_INDEX_VALUE},"@list":null,"@reverse":{type:"object",errorCode:gq.ERROR_CODES.INVALID_REVERSE_VALUE},"@set":null,"@value":null};Rbe.EntryHandlerKeywordUnknownFallback=xbe;var Cbe={};Object.defineProperty(Cbe,"__esModule",{value:!0});Cbe.EntryHandlerKeywordValue=void 0;const Thr=IS;class $hr extends Thr.EntryHandlerKeyword{constructor(){super("@value")}async validate(r,o,l,u,d){const h=l[u];return h&&!r.literalStack[u]&&await this.test(r,o,h,l,u)&&(r.literalStack[u]=!0),super.validate(r,o,l,u,d)}async test(r,o,l,u,d){return await o.unaliasKeyword(u[d],u.slice(0,u.length-1),d-1,!0)==="@value"}async handle(r,o,l,u,d,h){r.literalStack[h]=!0,delete r.unidentifiedValuesBuffer[h],delete r.unidentifiedGraphsBuffer[h],r.emittedStack[h]=!1}}Cbe.EntryHandlerKeywordValue=$hr;var aK={},Abe={};Object.defineProperty(Abe,"__esModule",{value:!0});Abe.ContextTree=void 0;class LUe{constructor(){this.subTrees={}}getContext(r){if(r.length>0){const[o,...l]=r,u=this.subTrees[o];if(u){const d=u.getContext(l);if(d)return d.then(({context:h,depth:w})=>({context:h,depth:w+1}))}}return this.context?this.context.then(o=>({context:o,depth:0})):null}setContext(r,o){if(r.length===0)this.context=o;else{const[l,...u]=r;let d=this.subTrees[l];d||(d=this.subTrees[l]=new LUe),d.setContext(u,o)}}removeContext(r){this.setContext(r,null)}}Abe.ContextTree=LUe;var rUt;function Ihr(){if(rUt)return aK;rUt=1,Object.defineProperty(aK,"__esModule",{value:!0}),aK.ParsingContext=void 0;const n=a1,r=hj,o=Abe,l=Rin();let u=class kin{constructor(h){this.contextParser=new n.ContextParser({documentLoader:h.documentLoader,skipValidation:h.skipContextValidation}),this.streamingProfile=!!h.streamingProfile,this.baseIRI=h.baseIRI,this.produceGeneralizedRdf=!!h.produceGeneralizedRdf,this.allowSubjectList=!!h.allowSubjectList,this.processingMode=h.processingMode||l.JsonLdParser.DEFAULT_PROCESSING_MODE,this.strictValues=!!h.strictValues,this.validateValueIndexes=!!h.validateValueIndexes,this.defaultGraph=h.defaultGraph,this.rdfDirection=h.rdfDirection,this.normalizeLanguageTags=h.normalizeLanguageTags,this.streamingProfileAllowOutOfOrderPlainType=h.streamingProfileAllowOutOfOrderPlainType,this.rdfstar=h.rdfstar!==!1,this.rdfstarReverseInEmbedded=h.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 o.ContextTree,this.literalStack=[],this.validationStack=[],this.unaliasedKeywordCacheStack=[],this.jsonLiteralStack=[],this.unidentifiedValuesBuffer=[],this.unidentifiedGraphsBuffer=[],this.annotationsBuffer=[],this.pendingContainerFlushBuffers=[],this.parser=h.parser,h.context?(this.rootContext=this.parseContext(h.context),this.rootContext.then(w=>this.validateContext(w))):this.rootContext=Promise.resolve(new n.JsonLdContextNormalized(this.baseIRI?{"@base":this.baseIRI,"@__baseDocument":!0}:{}))}async parseContext(h,w,v){return this.contextParser.parse(h,{baseIRI:this.baseIRI,ignoreProtection:v,normalizeLanguageTags:this.normalizeLanguageTags,parentContext:w,processingMode:this.activeProcessingMode})}validateContext(h){const w=h.getContextRaw()["@version"];if(w){if(this.activeProcessingMode&&w>this.activeProcessingMode)throw new r.ErrorCoded(`Unsupported JSON-LD version '${w}' under active processing mode ${this.activeProcessingMode}.`,r.ERROR_CODES.PROCESSING_MODE_CONFLICT);if(this.activeProcessingMode&&w0&&v.context.getContextRaw()["@propagate"]===!1&&v.depth!==w&&!y);return v.depth===0&&v.context.getContextRaw()["@propagate"]===!1&&v.depth!==w&&(v.context=new n.JsonLdContextNormalized({})),v}async newOnValueJob(h,w,v,y){await this.parser.newOnValueJob(h,w,v,y)}async handlePendingContainerFlushBuffers(){if(this.pendingContainerFlushBuffers.length>0){for(const h of this.pendingContainerFlushBuffers)await this.parser.flushBuffer(h.depth,h.keys),this.parser.flushStacks(h.depth);return this.pendingContainerFlushBuffers.splice(0,this.pendingContainerFlushBuffers.length),!0}else return!1}emitQuad(h,w){h===1&&(this.topLevelProperties=!0),this.parser.push(w)}emitError(h){this.parser.emit("error",h)}emitContext(h){this.parser.emit("context",h)}getUnidentifiedValueBufferSafe(h){let w=this.unidentifiedValuesBuffer[h];return w||(w=[],this.unidentifiedValuesBuffer[h]=w),w}getUnidentifiedGraphBufferSafe(h){let w=this.unidentifiedGraphsBuffer[h];return w||(w=[],this.unidentifiedGraphsBuffer[h]=w),w}getAnnotationsBufferSafe(h){let w=this.annotationsBuffer[h];return w||(w=[],this.annotationsBuffer[h]=w),w}getExpandOptions(){return kin.EXPAND_OPTIONS[this.activeProcessingMode]}shiftStack(h,w){const v=this.idStack[h+w];if(v&&(this.idStack[h]=v,this.emittedStack[h]=!0,delete this.idStack[h+w]),this.pendingContainerFlushBuffers.length)for(const y of this.pendingContainerFlushBuffers)y.depth>=h+w&&(y.depth-=w,y.keys.splice(h,w));this.unidentifiedValuesBuffer[h+w]&&(this.unidentifiedValuesBuffer[h]=this.unidentifiedValuesBuffer[h+w],delete this.unidentifiedValuesBuffer[h+w]),this.annotationsBuffer[h+w-1]&&(this.annotationsBuffer[h-1]||(this.annotationsBuffer[h-1]=[]),this.annotationsBuffer[h-1]=[...this.annotationsBuffer[h-1],...this.annotationsBuffer[h+w-1]],delete this.annotationsBuffer[h+w-1])}};return u.EXPAND_OPTIONS={1:{allowPrefixForcing:!1,allowPrefixNonGenDelims:!1,allowVocabRelativeToBase:!1},1.1:{allowPrefixForcing:!0,allowPrefixNonGenDelims:!1,allowVocabRelativeToBase:!0}},aK.ParsingContext=u,aK}var Tbe={};Object.defineProperty(Tbe,"__esModule",{value:!0});Tbe.EntryHandlerKeywordAnnotation=void 0;const Phr=IS,iUt=a1;class Ohr extends Phr.EntryHandlerKeyword{constructor(){super("@annotation")}async handle(r,o,l,u,d,h){(typeof d=="string"||typeof d=="object"&&d["@value"])&&r.emitError(new iUt.ErrorCoded(`Found illegal annotation value: ${JSON.stringify(d)}`,iUt.ERROR_CODES.INVALID_ANNOTATION))}}Tbe.EntryHandlerKeywordAnnotation=Ohr;var oUt;function Rin(){if(oUt)return tK;oUt=1,Object.defineProperty(tK,"__esModule",{value:!0}),tK.JsonLdParser=void 0;const n=Acr,r=a1,o=Jdr,l=hbe,u=Sin(),d=mbe,h=gbe(),w=ybe,v=vbe,y=_be,E=Sbe,A=Ebe,C=kbe,R=Rbe,O=Cbe,M=Ihr(),L=tO(),H=xrn,G=Tbe;let j=class ED extends o.Transform{constructor(te){super({readableObjectMode:!0}),te=te||{},this.options=te,this.parsingContext=new M.ParsingContext(Object.assign({parser:this},te)),this.util=new L.Util({dataFactory:te.dataFactory,parsingContext:this.parsingContext}),this.jsonParser=new n,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(te,pe,De,Re){let le,xe=["application/activity+json"];if(Re&&Re.wellKnownMediaTypes&&(xe=Re.wellKnownMediaTypes),pe!=="application/ld+json"&&!xe.includes(pe)){if(pe!=="application/json"&&!pe.endsWith("+json"))throw new r.ErrorCoded(`Unsupported JSON-LD media type ${pe}`,r.ERROR_CODES.LOADING_DOCUMENT_FAILED);if(De&&De.has("Link")&&De.forEach((ae,F)=>{if(F==="link"){const me=(0,H.parse)(ae);for(const ye of me.get("rel","http://www.w3.org/ns/json-ld#context")){if(le)throw new r.ErrorCoded("Multiple JSON-LD context link headers were found on "+te,r.ERROR_CODES.MULTIPLE_CONTEXT_LINK_HEADERS);le=ye.uri}}}),!le&&!(Re!=null&&Re.ignoreMissingContextLinkHeader))throw new r.ErrorCoded(`Missing context link header for media type ${pe} on ${te}`,r.ERROR_CODES.LOADING_DOCUMENT_FAILED)}let be;if(De&&De.has("Content-Type")){const ae=De.get("Content-Type"),F=/; *profile=([^"]*)/.exec(ae);F&&F[1]==="http://www.w3.org/ns/json-ld#streaming"&&(be=!0)}return new ED(Object.assign({baseIRI:te,context:le,streamingProfile:be},Re||{}))}import(te){if("pipe"in te){te.on("error",De=>pe.emit("error",De));const pe=te.pipe(new ED(this.options));return pe}else{const pe=new o.PassThrough({readableObjectMode:!0});te.on("error",Re=>De.emit("error",Re)),te.on("data",Re=>pe.push(Re)),te.on("end",()=>pe.push(null));const De=pe.pipe(new ED(this.options));return De}}_transform(te,pe,De){this.jsonParser.write(te),this.lastOnValueJob.then(()=>De(),Re=>De(Re))}async newOnValueJob(te,pe,De,Re){let le=!0;if(Re&&De1&&(F=this.parsingContext.validationStack[this.parsingContext.validationStack.length-1].property);for(let me=Math.max(1,this.parsingContext.validationStack.length-1);me=0?this.parsingContext.idStack[te-F-1]:[await this.util.getGraphContainerValue(pe,te)];if(me)for(const ye of me){this.parsingContext.emittedStack[te]=!0;for(const we of le)this.util.emitQuadChecked(te,ae,we.predicate,we.object,ye,we.reverse,we.isEmbedded)}else{const ye=this.parsingContext.getUnidentifiedGraphBufferSafe(te-await this.util.getDepthOffsetGraph(te,pe)-1);for(const we of le)we.reverse?ye.push({object:ae,predicate:we.predicate,subject:we.object,isEmbedded:we.isEmbedded}):ye.push({object:we.object,predicate:we.predicate,subject:ae,isEmbedded:we.isEmbedded})}}this.parsingContext.unidentifiedValuesBuffer.splice(te,1),this.parsingContext.literalStack.splice(te,1),this.parsingContext.jsonLiteralStack.splice(te,1)}const xe=this.parsingContext.unidentifiedGraphsBuffer[te];if(xe){for(const ae of De){const F=te===1&&ae.termType==="BlankNode"&&!this.parsingContext.topLevelProperties?this.util.getDefaultGraph():ae;this.parsingContext.emittedStack[te]=!0;for(const me of xe)this.parsingContext.emitQuad(te,this.util.dataFactory.quad(me.subject,me.predicate,me.object,F))}this.parsingContext.unidentifiedGraphsBuffer.splice(te,1)}const be=this.parsingContext.annotationsBuffer[te];if(be){be.length>0&&te===1&&this.parsingContext.emitError(new r.ErrorCoded("Annotations can not be made on top-level nodes",r.ERROR_CODES.INVALID_ANNOTATION));const ae=this.parsingContext.getAnnotationsBufferSafe(te-1);for(const F of be)ae.push(F);delete this.parsingContext.annotationsBuffer[te]}}async validateKey(te,pe,De){for(const Re of ED.ENTRY_HANDLERS)if(await Re.validate(this.parsingContext,this.util,te,pe,De))return{valid:!0,property:De||Re.isPropertyHandler()};return{valid:!1,property:!1}}attachJsonParserListeners(){this.jsonParser.onValue=te=>{const pe=this.jsonParser.stack.length,De=new Array(pe+1).fill(0).map((Re,le)=>le===pe?this.jsonParser.key:this.jsonParser.stack[le].key);if(!this.isParsingContextInner(pe)){const Re=()=>this.newOnValueJob(De,te,pe,!0);if(!this.parsingContext.streamingProfile&&!this.parsingContext.contextTree.getContext(De.slice(0,-1)))if(De[pe]==="@context"){let le=this.contextJobs[pe];le||(le=this.contextJobs[pe]=[]),le.push(Re)}else this.contextAwaitingJobs.push({job:Re,keys:De,depth:pe});else this.lastOnValueJob=this.lastOnValueJob.then(Re);!this.parsingContext.streamingProfile&&pe===0&&(this.lastOnValueJob=this.lastOnValueJob.then(()=>this.executeBufferedJobs()))}},this.jsonParser.onError=te=>{this.emit("error",te)}}isParsingContextInner(te){for(let pe=te;pe>0;pe--)if(this.jsonParser.stack[pe-1].key==="@context")return!0;return!1}async executeBufferedJobs(){for(const pe of this.contextJobs)if(pe)for(const De of pe)await De();this.parsingContext.unaliasedKeywordCacheStack.splice(0);const te=[];for(const pe of this.contextAwaitingJobs)await this.util.unaliasKeyword(pe.keys[pe.depth],pe.keys,pe.depth,!0)==="@type"||typeof pe.keys[pe.depth]=="number"&&await this.util.unaliasKeyword(pe.keys[pe.depth-1],pe.keys,pe.depth-1,!0)==="@type"?this.typeJobs.push({job:pe.job,keys:pe.keys.slice(0,pe.keys.length-1)}):te.push(pe);for(const pe of te){if(this.typeJobs.length>0){const De=[],Re=[];for(let be=0;bebe.keys.length-ae.keys.length);for(const be of le)await be.job();const xe=Re.sort().reverse();for(const be of xe)this.typeJobs.splice(be,1)}await pe.job()}}};return j.DEFAULT_PROCESSING_MODE="1.1",j.ENTRY_HANDLERS=[new l.EntryHandlerArrayValue,new w.EntryHandlerKeywordContext,new y.EntryHandlerKeywordId,new E.EntryHandlerKeywordIncluded,new v.EntryHandlerKeywordGraph,new A.EntryHandlerKeywordNest,new C.EntryHandlerKeywordType,new O.EntryHandlerKeywordValue,new G.EntryHandlerKeywordAnnotation,new u.EntryHandlerContainer,new R.EntryHandlerKeywordUnknownFallback,new h.EntryHandlerPredicate,new d.EntryHandlerInvalidFallback],tK.JsonLdParser=j,tK}(function(n){var r=fu&&fu.__createBinding||(Object.create?function(l,u,d,h){h===void 0&&(h=d);var w=Object.getOwnPropertyDescriptor(u,d);(!w||("get"in w?!u.__esModule:w.writable||w.configurable))&&(w={enumerable:!0,get:function(){return u[d]}}),Object.defineProperty(l,h,w)}:function(l,u,d,h){h===void 0&&(h=d),l[h]=u[d]}),o=fu&&fu.__exportStar||function(l,u){for(var d in l)d!=="default"&&!Object.prototype.hasOwnProperty.call(u,d)&&r(u,l,d)};Object.defineProperty(n,"__esModule",{value:!0}),o(Rin(),n)})(mrn);var xin={exports:{}},JNe={exports:{}},jf={ArrayIsArray(n){return Array.isArray(n)},ArrayPrototypeIncludes(n,r){return n.includes(r)},ArrayPrototypeIndexOf(n,r){return n.indexOf(r)},ArrayPrototypeJoin(n,r){return n.join(r)},ArrayPrototypeMap(n,r){return n.map(r)},ArrayPrototypePop(n,r){return n.pop(r)},ArrayPrototypePush(n,r){return n.push(r)},ArrayPrototypeSlice(n,r,o){return n.slice(r,o)},Error,FunctionPrototypeCall(n,r,...o){return n.call(r,...o)},FunctionPrototypeSymbolHasInstance(n,r){return Function.prototype[Symbol.hasInstance].call(n,r)},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(n,r){return Object.defineProperties(n,r)},ObjectDefineProperty(n,r,o){return Object.defineProperty(n,r,o)},ObjectGetOwnPropertyDescriptor(n,r){return Object.getOwnPropertyDescriptor(n,r)},ObjectKeys(n){return Object.keys(n)},ObjectSetPrototypeOf(n,r){return Object.setPrototypeOf(n,r)},Promise,PromisePrototypeCatch(n,r){return n.catch(r)},PromisePrototypeThen(n,r,o){return n.then(r,o)},PromiseReject(n){return Promise.reject(n)},PromiseResolve(n){return Promise.resolve(n)},ReflectApply:Reflect.apply,RegExpPrototypeTest(n,r){return n.test(r)},SafeSet:Set,String,StringPrototypeSlice(n,r,o){return n.slice(r,o)},StringPrototypeToLowerCase(n){return n.toLowerCase()},StringPrototypeToUpperCase(n){return n.toUpperCase()},StringPrototypeTrim(n){return n.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(n,r,o){return n.set(r,o)},Boolean,Uint8Array},Cin={exports:{}};(function(n){const r=Kr,{kResistStopPropagation:o,SymbolDispose:l}=jf,u=globalThis.AbortSignal||$o().AbortSignal,d=globalThis.AbortController||$o().AbortController,h=Object.getPrototypeOf(async function(){}).constructor,w=globalThis.Blob||r.Blob,v=typeof w<"u"?function(R){return R instanceof w}:function(R){return!1},y=(C,R)=>{if(C!==void 0&&(C===null||typeof C!="object"||!("aborted"in C)))throw new ERR_INVALID_ARG_TYPE(R,"AbortSignal",C)},E=(C,R)=>{if(typeof C!="function")throw new ERR_INVALID_ARG_TYPE(R,"Function",C)};class A extends Error{constructor(R){if(!Array.isArray(R))throw new TypeError(`Expected input to be an Array, got ${typeof R}`);let O="";for(let M=0;M{C=M,R=L}),resolve:C,reject:R}},promisify(C){return new Promise((R,O)=>{C((M,...L)=>M?O(M):R(...L))})},debuglog(){return function(){}},format(C,...R){return C.replace(/%([sdifj])/g,function(...[O,M]){const L=R.shift();return M==="f"?L.toFixed(6):M==="j"?JSON.stringify(L):M==="s"&&typeof L=="object"?`${L.constructor!==Object?L.constructor.name:""} {}`.trim():L.toString()})},inspect(C){switch(typeof C){case"string":if(C.includes("'"))if(C.includes('"')){if(!C.includes("`")&&!C.includes("${"))return`\`${C}\``}else return`"${C}"`;return`'${C}'`;case"number":return isNaN(C)?"NaN":Object.is(C,-0)?String(C):C;case"bigint":return`${String(C)}n`;case"boolean":case"undefined":return String(C);case"object":return"{}"}},types:{isAsyncFunction(C){return C instanceof h},isArrayBufferView(C){return ArrayBuffer.isView(C)}},isBlob:v,deprecate(C,R){return C},addAbortListener:Ns.addAbortListener||function(R,O){if(R===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",R);y(R,"signal"),E(O,"listener");let M;return R.aborted?queueMicrotask(()=>O()):(R.addEventListener("abort",O,{__proto__:null,once:!0,[o]:!0}),M=()=>{R.removeEventListener("abort",O)}),{__proto__:null,[l](){var L;(L=M)===null||L===void 0||L()}}},AbortSignalAny:u.any||function(R){if(R.length===1)return R[0];const O=new d,M=()=>O.abort();return R.forEach(L=>{y(L,"signals"),L.addEventListener("abort",M,{once:!0})}),O.signal.addEventListener("abort",()=>{R.forEach(L=>L.removeEventListener("abort",M))},{once:!0}),O.signal}},n.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(Cin);var u1=Cin.exports,jUe={};const{format:Nhr,inspect:lhe,AggregateError:Mhr}=u1,Dhr=globalThis.AggregateError||Mhr,Lhr=Symbol("kIsNodeError"),jhr=["string","function","number","object","Function","Object","boolean","bigint","symbol"],Fhr=/^([A-Z][a-z0-9]*)+$/,Bhr="__node_internal_",$be={};function oP(n,r){if(!n)throw new $be.ERR_INTERNAL_ASSERTION(r)}function sUt(n){let r="",o=n.length;const l=n[0]==="-"?1:0;for(;o>=l+4;o-=3)r=`_${n.slice(o-3,o)}${r}`;return`${n.slice(0,o)}${r}`}function Whr(n,r,o){if(typeof r=="function")return oP(r.length<=o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${r.length}).`),r(...o);const l=(r.match(/%[dfijoOs]/g)||[]).length;return oP(l===o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${l}).`),o.length===0?r:Nhr(r,...o)}function Yp(n,r,o){o||(o=Error);class l extends o{constructor(...d){super(Whr(n,r,d))}toString(){return`${this.name} [${n}]: ${this.message}`}}Object.defineProperties(l.prototype,{name:{value:o.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${n}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),l.prototype.code=n,l.prototype[Lhr]=!0,$be[n]=l}function lUt(n){const r=Bhr+n.name;return Object.defineProperty(n,"name",{value:r}),n}function Hhr(n,r){if(n&&r&&n!==r){if(Array.isArray(r.errors))return r.errors.push(n),r;const o=new Dhr([r,n],r.message);return o.code=r.code,o}return n||r}let Uhr=class extends Error{constructor(r="The operation was aborted",o=void 0){if(o!==void 0&&typeof o!="object")throw new $be.ERR_INVALID_ARG_TYPE("options","Object",o);super(r,o),this.code="ABORT_ERR",this.name="AbortError"}};Yp("ERR_ASSERTION","%s",Error);Yp("ERR_INVALID_ARG_TYPE",(n,r,o)=>{oP(typeof n=="string","'name' must be a string"),Array.isArray(r)||(r=[r]);let l="The ";n.endsWith(" argument")?l+=`${n} `:l+=`"${n}" ${n.includes(".")?"property":"argument"} `,l+="must be ";const u=[],d=[],h=[];for(const v of r)oP(typeof v=="string","All expected entries have to be of type string"),jhr.includes(v)?u.push(v.toLowerCase()):Fhr.test(v)?d.push(v):(oP(v!=="object",'The value "object" should be written as "Object"'),h.push(v));if(d.length>0){const v=u.indexOf("object");v!==-1&&(u.splice(u,v,1),d.push("Object"))}if(u.length>0){switch(u.length){case 1:l+=`of type ${u[0]}`;break;case 2:l+=`one of type ${u[0]} or ${u[1]}`;break;default:{const v=u.pop();l+=`one of type ${u.join(", ")}, or ${v}`}}(d.length>0||h.length>0)&&(l+=" or ")}if(d.length>0){switch(d.length){case 1:l+=`an instance of ${d[0]}`;break;case 2:l+=`an instance of ${d[0]} or ${d[1]}`;break;default:{const v=d.pop();l+=`an instance of ${d.join(", ")}, or ${v}`}}h.length>0&&(l+=" or ")}switch(h.length){case 0:break;case 1:h[0].toLowerCase()!==h[0]&&(l+="an "),l+=`${h[0]}`;break;case 2:l+=`one of ${h[0]} or ${h[1]}`;break;default:{const v=h.pop();l+=`one of ${h.join(", ")}, or ${v}`}}if(o==null)l+=`. Received ${o}`;else if(typeof o=="function"&&o.name)l+=`. Received function ${o.name}`;else if(typeof o=="object"){var w;if((w=o.constructor)!==null&&w!==void 0&&w.name)l+=`. Received an instance of ${o.constructor.name}`;else{const v=lhe(o,{depth:-1});l+=`. Received ${v}`}}else{let v=lhe(o,{colors:!1});v.length>25&&(v=`${v.slice(0,25)}...`),l+=`. Received type ${typeof o} (${v})`}return l},TypeError);Yp("ERR_INVALID_ARG_VALUE",(n,r,o="is invalid")=>{let l=lhe(r);return l.length>128&&(l=l.slice(0,128)+"..."),`The ${n.includes(".")?"property":"argument"} '${n}' ${o}. Received ${l}`},TypeError);Yp("ERR_INVALID_RETURN_VALUE",(n,r,o)=>{var l;const u=o!=null&&(l=o.constructor)!==null&&l!==void 0&&l.name?`instance of ${o.constructor.name}`:`type ${typeof o}`;return`Expected ${n} to be returned from the "${r}" function but got ${u}.`},TypeError);Yp("ERR_MISSING_ARGS",(...n)=>{oP(n.length>0,"At least one arg needs to be specified");let r;const o=n.length;switch(n=(Array.isArray(n)?n:[n]).map(l=>`"${l}"`).join(" or "),o){case 1:r+=`The ${n[0]} argument`;break;case 2:r+=`The ${n[0]} and ${n[1]} arguments`;break;default:{const l=n.pop();r+=`The ${n.join(", ")}, and ${l} arguments`}break}return`${r} must be specified`},TypeError);Yp("ERR_OUT_OF_RANGE",(n,r,o)=>{oP(r,'Missing "range" argument');let l;return Number.isInteger(o)&&Math.abs(o)>2**32?l=sUt(String(o)):typeof o=="bigint"?(l=String(o),(o>2n**32n||o<-(2n**32n))&&(l=sUt(l)),l+="n"):l=lhe(o),`The value of "${n}" is out of range. It must be ${r}. Received ${l}`},RangeError);Yp("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);Yp("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);Yp("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);Yp("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);Yp("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);Yp("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Yp("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);Yp("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);Yp("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);Yp("ERR_STREAM_WRITE_AFTER_END","write after end",Error);Yp("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var $0={AbortError:Uhr,aggregateTwoErrors:lUt(Hhr),hideStackFrames:lUt,codes:$be};const{ArrayIsArray:FUe,ArrayPrototypeIncludes:Ain,ArrayPrototypeJoin:Tin,ArrayPrototypeMap:Ghr,NumberIsInteger:BUe,NumberIsNaN:Vhr,NumberMAX_SAFE_INTEGER:zhr,NumberMIN_SAFE_INTEGER:Khr,NumberParseInt:qhr,ObjectPrototypeHasOwnProperty:Xhr,RegExpPrototypeExec:$in,String:Jhr,StringPrototypeToUpperCase:Yhr,StringPrototypeTrim:Qhr}=jf,{hideStackFrames:bv,codes:{ERR_SOCKET_BAD_PORT:Zhr,ERR_INVALID_ARG_TYPE:qb,ERR_INVALID_ARG_VALUE:mj,ERR_OUT_OF_RANGE:CP,ERR_UNKNOWN_SIGNAL:aUt}}=$0,{normalizeEncoding:epr}=u1,{isAsyncFunction:tpr,isArrayBufferView:npr}=u1.types,cUt={};function rpr(n){return n===(n|0)}function ipr(n){return n===n>>>0}const opr=/^[0-7]+$/,spr="must be a 32-bit unsigned integer or an octal string";function lpr(n,r,o){if(typeof n>"u"&&(n=o),typeof n=="string"){if($in(opr,n)===null)throw new mj(r,n,spr);n=qhr(n,8)}return Iin(n,r),n}const apr=bv((n,r,o=Khr,l=zhr)=>{if(typeof n!="number")throw new qb(r,"number",n);if(!BUe(n))throw new CP(r,"an integer",n);if(nl)throw new CP(r,`>= ${o} && <= ${l}`,n)}),cpr=bv((n,r,o=-2147483648,l=2147483647)=>{if(typeof n!="number")throw new qb(r,"number",n);if(!BUe(n))throw new CP(r,"an integer",n);if(nl)throw new CP(r,`>= ${o} && <= ${l}`,n)}),Iin=bv((n,r,o=!1)=>{if(typeof n!="number")throw new qb(r,"number",n);if(!BUe(n))throw new CP(r,"an integer",n);const l=o?1:0,u=4294967295;if(nu)throw new CP(r,`>= ${l} && <= ${u}`,n)});function WUe(n,r){if(typeof n!="string")throw new qb(r,"string",n)}function upr(n,r,o=void 0,l){if(typeof n!="number")throw new qb(r,"number",n);if(o!=null&&nl||(o!=null||l!=null)&&Vhr(n))throw new CP(r,`${o!=null?`>= ${o}`:""}${o!=null&&l!=null?" && ":""}${l!=null?`<= ${l}`:""}`,n)}const fpr=bv((n,r,o)=>{if(!Ain(o,n)){const u="must be one of: "+Tin(Ghr(o,d=>typeof d=="string"?`'${d}'`:Jhr(d)),", ");throw new mj(r,n,u)}});function Pin(n,r){if(typeof n!="boolean")throw new qb(r,"boolean",n)}function YNe(n,r,o){return n==null||!Xhr(n,r)?o:n[r]}const dpr=bv((n,r,o=null)=>{const l=YNe(o,"allowArray",!1),u=YNe(o,"allowFunction",!1);if(!YNe(o,"nullable",!1)&&n===null||!l&&FUe(n)||typeof n!="object"&&(!u||typeof n!="function"))throw new qb(r,"Object",n)}),hpr=bv((n,r)=>{if(n!=null&&typeof n!="object"&&typeof n!="function")throw new qb(r,"a dictionary",n)}),Ibe=bv((n,r,o=0)=>{if(!FUe(n))throw new qb(r,"Array",n);if(n.length{if(!npr(n))throw new qb(r,["Buffer","TypedArray","DataView"],n)});function ypr(n,r){const o=epr(r),l=n.length;if(o==="hex"&&l%2!==0)throw new mj("encoding",r,`is invalid for data of length ${l}`)}function vpr(n,r="Port",o=!0){if(typeof n!="number"&&typeof n!="string"||typeof n=="string"&&Qhr(n).length===0||+n!==+n>>>0||n>65535||n===0&&!o)throw new Zhr(r,n,o);return n|0}const Oin=bv((n,r)=>{if(n!==void 0&&(n===null||typeof n!="object"||!("aborted"in n)))throw new qb(r,"AbortSignal",n)}),_pr=bv((n,r)=>{if(typeof n!="function")throw new qb(r,"Function",n)}),Spr=bv((n,r)=>{if(typeof n!="function"||tpr(n))throw new qb(r,"Function",n)}),Epr=bv((n,r)=>{if(n!==void 0)throw new qb(r,"undefined",n)});function kpr(n,r,o){if(!Ain(o,n))throw new qb(r,`('${Tin(o,"|")}')`,n)}const Rpr=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function uUt(n,r){if(typeof n>"u"||!$in(Rpr,n))throw new mj(r,n,'must be an array or string of format "; rel=preload; as=style"')}function xpr(n){if(typeof n=="string")return uUt(n,"hints"),n;if(FUe(n)){const r=n.length;let o="";if(r===0)return o;for(let l=0;l; rel=preload; as=style"')}var CJ={isInt32:rpr,isUint32:ipr,parseFileMode:lpr,validateArray:Ibe,validateStringArray:ppr,validateBooleanArray:bpr,validateAbortSignalArray:gpr,validateBoolean:Pin,validateBuffer:mpr,validateDictionary:hpr,validateEncoding:ypr,validateFunction:_pr,validateInt32:cpr,validateInteger:apr,validateNumber:upr,validateObject:dpr,validateOneOf:fpr,validatePlainFunction:Spr,validatePort:vpr,validateSignalName:wpr,validateString:WUe,validateUint32:Iin,validateUndefined:Epr,validateUnion:kpr,validateAbortSignal:Oin,validateLinkHeaderValue:xpr},HUe={exports:{}};const{SymbolAsyncIterator:fUt,SymbolIterator:dUt,SymbolFor:nO}=jf,Nin=nO("nodejs.stream.destroyed"),Min=nO("nodejs.stream.errored"),Qje=nO("nodejs.stream.readable"),Zje=nO("nodejs.stream.writable"),Din=nO("nodejs.stream.disturbed"),Cpr=nO("nodejs.webstream.isClosedPromise"),Apr=nO("nodejs.webstream.controllerErrorFunction");function Pbe(n,r=!1){var o;return!!(n&&typeof n.pipe=="function"&&typeof n.on=="function"&&(!r||typeof n.pause=="function"&&typeof n.resume=="function")&&(!n._writableState||((o=n._readableState)===null||o===void 0?void 0:o.readable)!==!1)&&(!n._writableState||n._readableState))}function Obe(n){var r;return!!(n&&typeof n.write=="function"&&typeof n.on=="function"&&(!n._readableState||((r=n._writableState)===null||r===void 0?void 0:r.writable)!==!1))}function Tpr(n){return!!(n&&typeof n.pipe=="function"&&n._readableState&&typeof n.on=="function"&&typeof n.write=="function")}function mk(n){return n&&(n._readableState||n._writableState||typeof n.write=="function"&&typeof n.on=="function"||typeof n.pipe=="function"&&typeof n.on=="function")}function Lin(n){return!!(n&&!mk(n)&&typeof n.pipeThrough=="function"&&typeof n.getReader=="function"&&typeof n.cancel=="function")}function jin(n){return!!(n&&!mk(n)&&typeof n.getWriter=="function"&&typeof n.abort=="function")}function Fin(n){return!!(n&&!mk(n)&&typeof n.readable=="object"&&typeof n.writable=="object")}function $pr(n){return Lin(n)||jin(n)||Fin(n)}function Ipr(n,r){return n==null?!1:r===!0?typeof n[fUt]=="function":r===!1?typeof n[dUt]=="function":typeof n[fUt]=="function"||typeof n[dUt]=="function"}function Nbe(n){if(!mk(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!!(n.destroyed||n[Nin]||l!=null&&l.destroyed)}function Bin(n){if(!Obe(n))return null;if(n.writableEnded===!0)return!0;const r=n._writableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function Ppr(n,r){if(!Obe(n))return null;if(n.writableFinished===!0)return!0;const o=n._writableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.finished)!="boolean"?null:!!(o.finished||r===!1&&o.ended===!0&&o.length===0)}function Opr(n){if(!Pbe(n))return null;if(n.readableEnded===!0)return!0;const r=n._readableState;return!r||r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function Win(n,r){if(!Pbe(n))return null;const o=n._readableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.endEmitted)!="boolean"?null:!!(o.endEmitted||r===!1&&o.ended===!0&&o.length===0)}function Hin(n){return n&&n[Qje]!=null?n[Qje]:typeof(n==null?void 0:n.readable)!="boolean"?null:Nbe(n)?!1:Pbe(n)&&n.readable&&!Win(n)}function Uin(n){return n&&n[Zje]!=null?n[Zje]:typeof(n==null?void 0:n.writable)!="boolean"?null:Nbe(n)?!1:Obe(n)&&n.writable&&!Bin(n)}function Npr(n,r){return mk(n)?Nbe(n)?!0:!((r==null?void 0:r.readable)!==!1&&Hin(n)||(r==null?void 0:r.writable)!==!1&&Uin(n)):null}function Mpr(n){var r,o;return mk(n)?n.writableErrored?n.writableErrored:(r=(o=n._writableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function Dpr(n){var r,o;return mk(n)?n.readableErrored?n.readableErrored:(r=(o=n._readableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function Lpr(n){if(!mk(n))return null;if(typeof n.closed=="boolean")return n.closed;const r=n._writableState,o=n._readableState;return typeof(r==null?void 0:r.closed)=="boolean"||typeof(o==null?void 0:o.closed)=="boolean"?(r==null?void 0:r.closed)||(o==null?void 0:o.closed):typeof n._closed=="boolean"&&Gin(n)?n._closed:null}function Gin(n){return typeof n._closed=="boolean"&&typeof n._defaultKeepAlive=="boolean"&&typeof n._removedConnection=="boolean"&&typeof n._removedContLen=="boolean"}function Vin(n){return typeof n._sent100=="boolean"&&Gin(n)}function jpr(n){var r;return typeof n._consuming=="boolean"&&typeof n._dumped=="boolean"&&((r=n.req)===null||r===void 0?void 0:r.upgradeOrConnect)===void 0}function Fpr(n){if(!mk(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!l&&Vin(n)||!!(l&&l.autoDestroy&&l.emitClose&&l.closed===!1)}function Bpr(n){var r;return!!(n&&((r=n[Din])!==null&&r!==void 0?r:n.readableDidRead||n.readableAborted))}function Wpr(n){var r,o,l,u,d,h,w,v,y,E;return!!(n&&((r=(o=(l=(u=(d=(h=n[Min])!==null&&h!==void 0?h:n.readableErrored)!==null&&d!==void 0?d:n.writableErrored)!==null&&u!==void 0?u:(w=n._readableState)===null||w===void 0?void 0:w.errorEmitted)!==null&&l!==void 0?l:(v=n._writableState)===null||v===void 0?void 0:v.errorEmitted)!==null&&o!==void 0?o:(y=n._readableState)===null||y===void 0?void 0:y.errored)!==null&&r!==void 0?r:!((E=n._writableState)===null||E===void 0)&&E.errored))}var Cx={isDestroyed:Nbe,kIsDestroyed:Nin,isDisturbed:Bpr,kIsDisturbed:Din,isErrored:Wpr,kIsErrored:Min,isReadable:Hin,kIsReadable:Qje,kIsClosedPromise:Cpr,kControllerErrorFunction:Apr,kIsWritable:Zje,isClosed:Lpr,isDuplexNodeStream:Tpr,isFinished:Npr,isIterable:Ipr,isReadableNodeStream:Pbe,isReadableStream:Lin,isReadableEnded:Opr,isReadableFinished:Win,isReadableErrored:Dpr,isNodeStream:mk,isWebStream:$pr,isWritable:Uin,isWritableNodeStream:Obe,isWritableStream:jin,isWritableEnded:Bin,isWritableFinished:Ppr,isWritableErrored:Mpr,isServerRequest:jpr,isServerResponse:Vin,willEmitClose:Fpr,isTransformStream:Fin};const q4=ui,{AbortError:zin,codes:Hpr}=$0,{ERR_INVALID_ARG_TYPE:Upr,ERR_STREAM_PREMATURE_CLOSE:hUt}=Hpr,{kEmptyObject:eFe,once:tFe}=u1,{validateAbortSignal:Gpr,validateFunction:Vpr,validateObject:zpr,validateBoolean:Kpr}=CJ,{Promise:qpr,PromisePrototypeThen:Xpr,SymbolDispose:Kin}=jf,{isClosed:Jpr,isReadable:pUt,isReadableNodeStream:QNe,isReadableStream:Ypr,isReadableFinished:bUt,isReadableErrored:gUt,isWritable:wUt,isWritableNodeStream:mUt,isWritableStream:Qpr,isWritableFinished:yUt,isWritableErrored:vUt,isNodeStream:Zpr,willEmitClose:ebr,kIsClosedPromise:tbr}=Cx;let sL;function nbr(n){return n.setHeader&&typeof n.abort=="function"}const nFe=()=>{};function qin(n,r,o){var l,u;if(arguments.length===2?(o=r,r=eFe):r==null?r=eFe:zpr(r,"options"),Vpr(o,"callback"),Gpr(r.signal,"options.signal"),o=tFe(o),Ypr(n)||Qpr(n))return rbr(n,r,o);if(!Zpr(n))throw new Upr("stream",["ReadableStream","WritableStream","Stream"],n);const d=(l=r.readable)!==null&&l!==void 0?l:QNe(n),h=(u=r.writable)!==null&&u!==void 0?u:mUt(n),w=n._writableState,v=n._readableState,y=()=>{n.writable||C()};let E=ebr(n)&&QNe(n)===d&&mUt(n)===h,A=yUt(n,!1);const C=()=>{A=!0,n.destroyed&&(E=!1),!(E&&(!n.readable||d))&&(!d||R)&&o.call(n)};let R=bUt(n,!1);const O=()=>{R=!0,n.destroyed&&(E=!1),!(E&&(!n.writable||h))&&(!h||A)&&o.call(n)},M=te=>{o.call(n,te)};let L=Jpr(n);const H=()=>{L=!0;const te=vUt(n)||gUt(n);if(te&&typeof te!="boolean")return o.call(n,te);if(d&&!R&&QNe(n,!0)&&!bUt(n,!1))return o.call(n,new hUt);if(h&&!A&&!yUt(n,!1))return o.call(n,new hUt);o.call(n)},G=()=>{L=!0;const te=vUt(n)||gUt(n);if(te&&typeof te!="boolean")return o.call(n,te);o.call(n)},j=()=>{n.req.on("finish",C)};nbr(n)?(n.on("complete",C),E||n.on("abort",H),n.req?j():n.on("request",j)):h&&!w&&(n.on("end",y),n.on("close",y)),!E&&typeof n.aborted=="boolean"&&n.on("aborted",H),n.on("end",O),n.on("finish",C),r.error!==!1&&n.on("error",M),n.on("close",H),L?q4.nextTick(H):w!=null&&w.errorEmitted||v!=null&&v.errorEmitted?E||q4.nextTick(G):(!d&&(!E||pUt(n))&&(A||wUt(n)===!1)||!h&&(!E||wUt(n))&&(R||pUt(n)===!1)||v&&n.req&&n.aborted)&&q4.nextTick(G);const Q=()=>{o=nFe,n.removeListener("aborted",H),n.removeListener("complete",C),n.removeListener("abort",H),n.removeListener("request",j),n.req&&n.req.removeListener("finish",C),n.removeListener("end",y),n.removeListener("close",y),n.removeListener("finish",C),n.removeListener("end",O),n.removeListener("error",M),n.removeListener("close",H)};if(r.signal&&!L){const te=()=>{const pe=o;Q(),pe.call(n,new zin(void 0,{cause:r.signal.reason}))};if(r.signal.aborted)q4.nextTick(te);else{sL=sL||u1.addAbortListener;const pe=sL(r.signal,te),De=o;o=tFe((...Re)=>{pe[Kin](),De.apply(n,Re)})}}return Q}function rbr(n,r,o){let l=!1,u=nFe;if(r.signal)if(u=()=>{l=!0,o.call(n,new zin(void 0,{cause:r.signal.reason}))},r.signal.aborted)q4.nextTick(u);else{sL=sL||u1.addAbortListener;const h=sL(r.signal,u),w=o;o=tFe((...v)=>{h[Kin](),w.apply(n,v)})}const d=(...h)=>{l||q4.nextTick(()=>o.apply(n,h))};return Xpr(n[tbr].promise,d,d),nFe}function ibr(n,r){var o;let l=!1;return r===null&&(r=eFe),(o=r)!==null&&o!==void 0&&o.cleanup&&(Kpr(r.cleanup,"cleanup"),l=r.cleanup),new qpr((u,d)=>{const h=qin(n,r,w=>{l&&h(),w?d(w):u()})})}HUe.exports=qin;HUe.exports.finished=ibr;var BT=HUe.exports;const GE=ui,{aggregateTwoErrors:obr,codes:{ERR_MULTIPLE_CALLBACK:sbr},AbortError:lbr}=$0,{Symbol:Xin}=jf,{kIsDestroyed:abr,isDestroyed:cbr,isFinished:ubr,isServerRequest:fbr}=Cx,Jin=Xin("kDestroy"),rFe=Xin("kConstruct");function Yin(n,r,o){n&&(n.stack,r&&!r.errored&&(r.errored=n),o&&!o.errored&&(o.errored=n))}function dbr(n,r){const o=this._readableState,l=this._writableState,u=l||o;return l!=null&&l.destroyed||o!=null&&o.destroyed?(typeof r=="function"&&r(),this):(Yin(n,l,o),l&&(l.destroyed=!0),o&&(o.destroyed=!0),u.constructed?_Ut(this,n,r):this.once(Jin,function(d){_Ut(this,obr(d,n),r)}),this)}function _Ut(n,r,o){let l=!1;function u(d){if(l)return;l=!0;const h=n._readableState,w=n._writableState;Yin(d,w,h),w&&(w.closed=!0),h&&(h.closed=!0),typeof o=="function"&&o(d),d?GE.nextTick(hbr,n,d):GE.nextTick(Qin,n)}try{n._destroy(r||null,u)}catch(d){u(d)}}function hbr(n,r){iFe(n,r),Qin(n)}function Qin(n){const r=n._readableState,o=n._writableState;o&&(o.closeEmitted=!0),r&&(r.closeEmitted=!0),(o!=null&&o.emitClose||r!=null&&r.emitClose)&&n.emit("close")}function iFe(n,r){const o=n._readableState,l=n._writableState;l!=null&&l.errorEmitted||o!=null&&o.errorEmitted||(l&&(l.errorEmitted=!0),o&&(o.errorEmitted=!0),n.emit("error",r))}function pbr(){const n=this._readableState,r=this._writableState;n&&(n.constructed=!0,n.closed=!1,n.closeEmitted=!1,n.destroyed=!1,n.errored=null,n.errorEmitted=!1,n.reading=!1,n.ended=n.readable===!1,n.endEmitted=n.readable===!1),r&&(r.constructed=!0,r.destroyed=!1,r.closed=!1,r.closeEmitted=!1,r.errored=null,r.errorEmitted=!1,r.finalCalled=!1,r.prefinished=!1,r.ended=r.writable===!1,r.ending=r.writable===!1,r.finished=r.writable===!1)}function oFe(n,r,o){const l=n._readableState,u=n._writableState;if(u!=null&&u.destroyed||l!=null&&l.destroyed)return this;l!=null&&l.autoDestroy||u!=null&&u.autoDestroy?n.destroy(r):r&&(r.stack,u&&!u.errored&&(u.errored=r),l&&!l.errored&&(l.errored=r),o?GE.nextTick(iFe,n,r):iFe(n,r))}function bbr(n,r){if(typeof n._construct!="function")return;const o=n._readableState,l=n._writableState;o&&(o.constructed=!1),l&&(l.constructed=!1),n.once(rFe,r),!(n.listenerCount(rFe)>1)&&GE.nextTick(gbr,n)}function gbr(n){let r=!1;function o(l){if(r){oFe(n,l??new sbr);return}r=!0;const u=n._readableState,d=n._writableState,h=d||u;u&&(u.constructed=!0),d&&(d.constructed=!0),h.destroyed?n.emit(Jin,l):l?oFe(n,l,!0):GE.nextTick(wbr,n)}try{n._construct(l=>{GE.nextTick(o,l)})}catch(l){GE.nextTick(o,l)}}function wbr(n){n.emit(rFe)}function SUt(n){return(n==null?void 0:n.setHeader)&&typeof n.abort=="function"}function Zin(n){n.emit("close")}function mbr(n,r){n.emit("error",r),GE.nextTick(Zin,n)}function ybr(n,r){!n||cbr(n)||(!r&&!ubr(n)&&(r=new lbr),fbr(n)?(n.socket=null,n.destroy(r)):SUt(n)?n.abort():SUt(n.req)?n.req.abort():typeof n.destroy=="function"?n.destroy(r):typeof n.close=="function"?n.close():r?GE.nextTick(mbr,n,r):GE.nextTick(Zin,n),n.destroyed||(n[abr]=!0))}var yj={construct:bbr,destroyer:ybr,destroy:dbr,undestroy:pbr,errorOrDestroy:oFe};const{ArrayIsArray:vbr,ObjectSetPrototypeOf:eon}=jf,{EventEmitter:Mbe}=Ns;function Dbe(n){Mbe.call(this,n)}eon(Dbe.prototype,Mbe.prototype);eon(Dbe,Mbe);Dbe.prototype.pipe=function(n,r){const o=this;function l(E){n.writable&&n.write(E)===!1&&o.pause&&o.pause()}o.on("data",l);function u(){o.readable&&o.resume&&o.resume()}n.on("drain",u),!n._isStdio&&(!r||r.end!==!1)&&(o.on("end",h),o.on("close",w));let d=!1;function h(){d||(d=!0,n.end())}function w(){d||(d=!0,typeof n.destroy=="function"&&n.destroy())}function v(E){y(),Mbe.listenerCount(this,"error")===0&&this.emit("error",E)}sFe(o,"error",v),sFe(n,"error",v);function y(){o.removeListener("data",l),n.removeListener("drain",u),o.removeListener("end",h),o.removeListener("close",w),o.removeListener("error",v),n.removeListener("error",v),o.removeListener("end",y),o.removeListener("close",y),n.removeListener("close",y)}return o.on("end",y),o.on("close",y),n.on("close",y),n.emit("pipe",o),n};function sFe(n,r,o){if(typeof n.prependListener=="function")return n.prependListener(r,o);!n._events||!n._events[r]?n.on(r,o):vbr(n._events[r])?n._events[r].unshift(o):n._events[r]=[o,n._events[r]]}var UUe={Stream:Dbe,prependListener:sFe},ton={exports:{}};(function(n){const{SymbolDispose:r}=jf,{AbortError:o,codes:l}=$0,{isNodeStream:u,isWebStream:d,kControllerErrorFunction:h}=Cx,w=BT,{ERR_INVALID_ARG_TYPE:v}=l;let y;const E=(A,C)=>{if(typeof A!="object"||!("aborted"in A))throw new v(C,"AbortSignal",A)};n.exports.addAbortSignal=function(C,R){if(E(C,"signal"),!u(R)&&!d(R))throw new v("stream",["ReadableStream","WritableStream","Stream"],R);return n.exports.addAbortSignalNoValidate(C,R)},n.exports.addAbortSignalNoValidate=function(A,C){if(typeof A!="object"||!("aborted"in A))return C;const R=u(C)?()=>{C.destroy(new o(void 0,{cause:A.reason}))}:()=>{C[h](new o(void 0,{cause:A.reason}))};if(A.aborted)R();else{y=y||u1.addAbortListener;const O=y(A,R);w(C,O[r])}return C}})(ton);var Lbe=ton.exports;const{StringPrototypeSlice:EUt,SymbolIterator:_br,TypedArrayPrototypeSet:Sue,Uint8Array:Sbr}=jf,{Buffer:ZNe}=Kr,{inspect:Ebr}=u1;var kbr=class{constructor(){this.head=null,this.tail=null,this.length=0}push(r){const o={data:r,next:null};this.length>0?this.tail.next=o:this.head=o,this.tail=o,++this.length}unshift(r){const o={data:r,next:this.head};this.length===0&&(this.tail=o),this.head=o,++this.length}shift(){if(this.length===0)return;const r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}clear(){this.head=this.tail=null,this.length=0}join(r){if(this.length===0)return"";let o=this.head,l=""+o.data;for(;(o=o.next)!==null;)l+=r+o.data;return l}concat(r){if(this.length===0)return ZNe.alloc(0);const o=ZNe.allocUnsafe(r>>>0);let l=this.head,u=0;for(;l;)Sue(o,l.data,u),u+=l.data.length,l=l.next;return o}consume(r,o){const l=this.head.data;if(rd.length)o+=d,r-=d.length;else{r===d.length?(o+=d,++u,l.next?this.head=l.next:this.head=this.tail=null):(o+=EUt(d,0,r),this.head=l,l.data=EUt(d,r));break}++u}while((l=l.next)!==null);return this.length-=u,o}_getBuffer(r){const o=ZNe.allocUnsafe(r),l=r;let u=this.head,d=0;do{const h=u.data;if(r>h.length)Sue(o,h,l-r),r-=h.length;else{r===h.length?(Sue(o,h,l-r),++d,u.next?this.head=u.next:this.head=this.tail=null):(Sue(o,new Sbr(h.buffer,h.byteOffset,r),l-r),this.head=u,u.data=h.slice(r));break}++d}while((u=u.next)!==null);return this.length-=d,o}[Symbol.for("nodejs.util.inspect.custom")](r,o){return Ebr(this,{...o,depth:0,customInspect:!1})}};const{MathFloor:Rbr,NumberIsInteger:xbr}=jf,{validateInteger:Cbr}=CJ,{ERR_INVALID_ARG_VALUE:Abr}=$0.codes;let non=16*1024,ron=16;function Tbr(n,r,o){return n.highWaterMark!=null?n.highWaterMark:r?n[o]:null}function ion(n){return n?ron:non}function $br(n,r){Cbr(r,"value",0),n?ron=r:non=r}function Ibr(n,r,o,l){const u=Tbr(r,l,o);if(u!=null){if(!xbr(u)||u<0){const d=l?`options.${o}`:"options.highWaterMark";throw new Abr(d,u)}return Rbr(u)}return ion(n.objectMode)}var jbe={getHighWaterMark:Ibr,getDefaultHighWaterMark:ion,setDefaultHighWaterMark:$br};const kUt=ui,{PromisePrototypeThen:Pbr,SymbolAsyncIterator:RUt,SymbolIterator:xUt}=jf,{Buffer:Obr}=Kr,{ERR_INVALID_ARG_TYPE:Nbr,ERR_STREAM_NULL_VALUES:Mbr}=$0.codes;function Dbr(n,r,o){let l;if(typeof r=="string"||r instanceof Obr)return new n({objectMode:!0,...o,read(){this.push(r),this.push(null)}});let u;if(r&&r[RUt])u=!0,l=r[RUt]();else if(r&&r[xUt])u=!1,l=r[xUt]();else throw new Nbr("iterable",["Iterable"],r);const d=new n({objectMode:!0,highWaterMark:1,...o});let h=!1;d._read=function(){h||(h=!0,v())},d._destroy=function(y,E){Pbr(w(y),()=>kUt.nextTick(E,y),A=>kUt.nextTick(E,A||y))};async function w(y){const E=y!=null,A=typeof l.throw=="function";if(E&&A){const{value:C,done:R}=await l.throw(y);if(await C,R)return}if(typeof l.return=="function"){const{value:C}=await l.return();await C}}async function v(){for(;;){try{const{value:y,done:E}=u?await l.next():l.next();if(E)d.push(null);else{const A=y&&typeof y.then=="function"?await y:y;if(A===null)throw h=!1,new Mbr;if(d.push(A))continue;h=!1}}catch(y){d.destroy(y)}break}}return d}var oon=Dbr,eMe,CUt;function Fbe(){if(CUt)return eMe;CUt=1;const n=ui,{ArrayPrototypeIndexOf:r,NumberIsInteger:o,NumberIsNaN:l,NumberParseInt:u,ObjectDefineProperties:d,ObjectKeys:h,ObjectSetPrototypeOf:w,Promise:v,SafeSet:y,SymbolAsyncDispose:E,SymbolAsyncIterator:A,Symbol:C}=jf;eMe=he,he.ReadableState=_t;const{EventEmitter:R}=Ns,{Stream:O,prependListener:M}=UUe,{Buffer:L}=Kr,{addAbortSignal:H}=Lbe,G=BT;let j=u1.debuglog("stream",S=>{j=S});const Q=kbr,te=yj,{getHighWaterMark:pe,getDefaultHighWaterMark:De}=jbe,{aggregateTwoErrors:Re,codes:{ERR_INVALID_ARG_TYPE:le,ERR_METHOD_NOT_IMPLEMENTED:xe,ERR_OUT_OF_RANGE:be,ERR_STREAM_PUSH_AFTER_EOF:ae,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:F},AbortError:me}=$0,{validateObject:ye}=CJ,we=C("kPaused"),{StringDecoder:Be}=rm,He=oon;w(he.prototype,O.prototype),w(he,O);const Ue=()=>{},{errorOrDestroy:Ge}=te,Le=1,ft=2,re=4,Te=8,dt=16,at=32,Qe=64,yt=128,Lt=256,nn=512,Pe=1024,Ne=2048,T=4096,$=8192,B=16384,K=32768,q=65536,ke=1<<17,Ee=1<<18;function Ie(S){return{enumerable:!1,get(){return(this.state&S)!==0},set(x){x?this.state|=S:this.state&=~S}}}d(_t.prototype,{objectMode:Ie(Le),ended:Ie(ft),endEmitted:Ie(re),reading:Ie(Te),constructed:Ie(dt),sync:Ie(at),needReadable:Ie(Qe),emittedReadable:Ie(yt),readableListening:Ie(Lt),resumeScheduled:Ie(nn),errorEmitted:Ie(Pe),emitClose:Ie(Ne),autoDestroy:Ie(T),destroyed:Ie($),closed:Ie(B),closeEmitted:Ie(K),multiAwaitDrain:Ie(q),readingMore:Ie(ke),dataEmitted:Ie(Ee)});function _t(S,x,Y){typeof Y!="boolean"&&(Y=x instanceof rx()),this.state=Ne|T|dt|at,S&&S.objectMode&&(this.state|=Le),Y&&S&&S.readableObjectMode&&(this.state|=Le),this.highWaterMark=S?pe(this,S,"readableHighWaterMark",Y):De(!1),this.buffer=new Q,this.length=0,this.pipes=[],this.flowing=null,this[we]=null,S&&S.emitClose===!1&&(this.state&=~Ne),S&&S.autoDestroy===!1&&(this.state&=~T),this.errored=null,this.defaultEncoding=S&&S.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,S&&S.encoding&&(this.decoder=new Be(S.encoding),this.encoding=S.encoding)}function he(S){if(!(this instanceof he))return new he(S);const x=this instanceof rx();this._readableState=new _t(S,this,x),S&&(typeof S.read=="function"&&(this._read=S.read),typeof S.destroy=="function"&&(this._destroy=S.destroy),typeof S.construct=="function"&&(this._construct=S.construct),S.signal&&!x&&H(S.signal,this)),O.call(this,S),te.construct(this,()=>{this._readableState.needReadable&&pt(this,this._readableState)})}he.prototype.destroy=te.destroy,he.prototype._undestroy=te.undestroy,he.prototype._destroy=function(S,x){x(S)},he.prototype[R.captureRejectionSymbol]=function(S){this.destroy(S)},he.prototype[E]=function(){let S;return this.destroyed||(S=this.readableEnded?null:new me,this.destroy(S)),new v((x,Y)=>G(this,J=>J&&J!==S?Y(J):x(null)))},he.prototype.push=function(S,x){return Xt(this,S,x,!1)},he.prototype.unshift=function(S,x){return Xt(this,S,x,!0)};function Xt(S,x,Y,J){j("readableAddChunk",x);const ue=S._readableState;let Yt;if(ue.state&Le||(typeof x=="string"?(Y=Y||ue.defaultEncoding,ue.encoding!==Y&&(J&&ue.encoding?x=L.from(x,Y).toString(ue.encoding):(x=L.from(x,Y),Y=""))):x instanceof L?Y="":O._isUint8Array(x)?(x=O._uint8ArrayToBuffer(x),Y=""):x!=null&&(Yt=new le("chunk",["string","Buffer","Uint8Array"],x))),Yt)Ge(S,Yt);else if(x===null)ue.state&=~Te,ce(S,ue);else if(ue.state&Le||x&&x.length>0)if(J)if(ue.state&re)Ge(S,new F);else{if(ue.destroyed||ue.errored)return!1;Zt(S,ue,x,!0)}else if(ue.ended)Ge(S,new ae);else{if(ue.destroyed||ue.errored)return!1;ue.state&=~Te,ue.decoder&&!Y?(x=ue.decoder.write(x),ue.objectMode||x.length!==0?Zt(S,ue,x,!1):pt(S,ue)):Zt(S,ue,x,!1)}else J||(ue.state&=~Te,pt(S,ue));return!ue.ended&&(ue.length0?(x.state&q?x.awaitDrainWriters.clear():x.awaitDrainWriters=null,x.dataEmitted=!0,S.emit("data",Y)):(x.length+=x.objectMode?1:Y.length,J?x.buffer.unshift(Y):x.buffer.push(Y),x.state&Qe&&de(S)),pt(S,x)}he.prototype.isPaused=function(){const S=this._readableState;return S[we]===!0||S.flowing===!1},he.prototype.setEncoding=function(S){const x=new Be(S);this._readableState.decoder=x,this._readableState.encoding=this._readableState.decoder.encoding;const Y=this._readableState.buffer;let J="";for(const ue of Y)J+=x.write(ue);return Y.clear(),J!==""&&Y.push(J),this._readableState.length=J.length,this};const $n=1073741824;function Gn(S){if(S>$n)throw new be("size","<= 1GiB",S);return S--,S|=S>>>1,S|=S>>>2,S|=S>>>4,S|=S>>>8,S|=S>>>16,S++,S}function $e(S,x){return S<=0||x.length===0&&x.ended?0:x.state&Le?1:l(S)?x.flowing&&x.length?x.buffer.first().length:x.length:S<=x.length?S:x.ended?x.length:0}he.prototype.read=function(S){j("read",S),S===void 0?S=NaN:o(S)||(S=u(S,10));const x=this._readableState,Y=S;if(S>x.highWaterMark&&(x.highWaterMark=Gn(S)),S!==0&&(x.state&=~yt),S===0&&x.needReadable&&((x.highWaterMark!==0?x.length>=x.highWaterMark:x.length>0)||x.ended))return j("read: emitReadable",x.length,x.ended),x.length===0&&x.ended?co(this):de(this),null;if(S=$e(S,x),S===0&&x.ended)return x.length===0&&co(this),null;let J=(x.state&Qe)!==0;if(j("need readable",J),(x.length===0||x.length-S0?ue=Al(S,x):ue=null,ue===null?(x.needReadable=x.length<=x.highWaterMark,S=0):(x.length-=S,x.multiAwaitDrain?x.awaitDrainWriters.clear():x.awaitDrainWriters=null),x.length===0&&(x.ended||(x.needReadable=!0),Y!==S&&x.ended&&co(this)),ue!==null&&!x.errorEmitted&&!x.closeEmitted&&(x.dataEmitted=!0,this.emit("data",ue)),ue};function ce(S,x){if(j("onEofChunk"),!x.ended){if(x.decoder){const Y=x.decoder.end();Y&&Y.length&&(x.buffer.push(Y),x.length+=x.objectMode?1:Y.length)}x.ended=!0,x.sync?de(S):(x.needReadable=!1,x.emittedReadable=!0,et(S))}}function de(S){const x=S._readableState;j("emitReadable",x.needReadable,x.emittedReadable),x.needReadable=!1,x.emittedReadable||(j("emitReadable",x.flowing),x.emittedReadable=!0,n.nextTick(et,S))}function et(S){const x=S._readableState;j("emitReadable_",x.destroyed,x.length,x.ended),!x.destroyed&&!x.errored&&(x.length||x.ended)&&(S.emit("readable"),x.emittedReadable=!1),x.needReadable=!x.flowing&&!x.ended&&x.length<=x.highWaterMark,xi(S)}function pt(S,x){!x.readingMore&&x.constructed&&(x.readingMore=!0,n.nextTick(Jt,S,x))}function Jt(S,x){for(;!x.reading&&!x.ended&&(x.length1&&J.pipes.includes(S)&&(j("false write response, pause",J.awaitDrainWriters.size),J.awaitDrainWriters.add(S)),Y.pause()),Fr||(Fr=Qt(Y,S),S.on("drain",Fr))}Y.on("data",ml);function ml(jr){j("ondata");const lr=S.write(jr);j("dest.write",lr),lr===!1&&Rs()}function gs(jr){if(j("onerror",jr),wi(),S.removeListener("error",gs),S.listenerCount("error")===0){const lr=S._writableState||S._readableState;lr&&!lr.errorEmitted?Ge(S,jr):S.emit("error",jr)}}M(S,"error",gs);function as(){S.removeListener("finish",ws),wi()}S.once("close",as);function ws(){j("onfinish"),S.removeListener("close",as),wi()}S.once("finish",ws);function wi(){j("unpipe"),Y.unpipe(S)}return S.emit("pipe",Y),S.writableNeedDrain===!0?Rs():J.flowing||(j("pipe resume"),Y.resume()),S};function Qt(S,x){return function(){const J=S._readableState;J.awaitDrainWriters===x?(j("pipeOnDrain",1),J.awaitDrainWriters=null):J.multiAwaitDrain&&(j("pipeOnDrain",J.awaitDrainWriters.size),J.awaitDrainWriters.delete(x)),(!J.awaitDrainWriters||J.awaitDrainWriters.size===0)&&S.listenerCount("data")&&S.resume()}}he.prototype.unpipe=function(S){const x=this._readableState,Y={hasUnpiped:!1};if(x.pipes.length===0)return this;if(!S){const ue=x.pipes;x.pipes=[],this.pause();for(let Yt=0;Yt0,J.flowing!==!1&&this.resume()):S==="readable"&&!J.endEmitted&&!J.readableListening&&(J.readableListening=J.needReadable=!0,J.flowing=!1,J.emittedReadable=!1,j("on readable",J.length,J.reading),J.length?de(this):J.reading||n.nextTick(ao,this)),Y},he.prototype.addListener=he.prototype.on,he.prototype.removeListener=function(S,x){const Y=O.prototype.removeListener.call(this,S,x);return S==="readable"&&n.nextTick(qr,this),Y},he.prototype.off=he.prototype.removeListener,he.prototype.removeAllListeners=function(S){const x=O.prototype.removeAllListeners.apply(this,arguments);return(S==="readable"||S===void 0)&&n.nextTick(qr,this),x};function qr(S){const x=S._readableState;x.readableListening=S.listenerCount("readable")>0,x.resumeScheduled&&x[we]===!1?x.flowing=!0:S.listenerCount("data")>0?S.resume():x.readableListening||(x.flowing=null)}function ao(S){j("readable nexttick read 0"),S.read(0)}he.prototype.resume=function(){const S=this._readableState;return S.flowing||(j("resume"),S.flowing=!S.readableListening,ki(this,S)),S[we]=!1,this};function ki(S,x){x.resumeScheduled||(x.resumeScheduled=!0,n.nextTick(Ri,S,x))}function Ri(S,x){j("resume",x.reading),x.reading||S.read(0),x.resumeScheduled=!1,S.emit("resume"),xi(S),x.flowing&&!x.reading&&S.read(0)}he.prototype.pause=function(){return j("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(j("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[we]=!0,this};function xi(S){const x=S._readableState;for(j("flow",x.flowing);x.flowing&&S.read()!==null;);}he.prototype.wrap=function(S){let x=!1;S.on("data",J=>{!this.push(J)&&S.pause&&(x=!0,S.pause())}),S.on("end",()=>{this.push(null)}),S.on("error",J=>{Ge(this,J)}),S.on("close",()=>{this.destroy()}),S.on("destroy",()=>{this.destroy()}),this._read=()=>{x&&S.resume&&(x=!1,S.resume())};const Y=h(S);for(let J=1;J{ue=An?Re(ue,An):null,Y(),Y=Ue});try{for(;;){const An=S.destroyed?null:S.read();if(An!==null)yield An;else{if(ue)throw ue;if(ue===null)return;await new v(J)}}}catch(An){throw ue=Re(ue,An),ue}finally{(ue||(x==null?void 0:x.destroyOnReturn)!==!1)&&(ue===void 0||S._readableState.autoDestroy)?te.destroyer(S,null):(S.off("readable",J),Yt())}}d(he.prototype,{readable:{__proto__:null,get(){const S=this._readableState;return!!S&&S.readable!==!1&&!S.destroyed&&!S.errorEmitted&&!S.endEmitted},set(S){this._readableState&&(this._readableState.readable=!!S)}},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(S){this._readableState&&(this._readableState.flowing=S)}},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(S){this._readableState&&(this._readableState.destroyed=S)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),d(_t.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[we]!==!1},set(S){this[we]=!!S}}}),he._fromList=Al;function Al(S,x){if(x.length===0)return null;let Y;return x.objectMode?Y=x.buffer.shift():!S||S>=x.length?(x.decoder?Y=x.buffer.join(""):x.buffer.length===1?Y=x.buffer.first():Y=x.buffer.concat(x.length),x.buffer.clear()):Y=x.buffer.consume(S,x.decoder),Y}function co(S){const x=S._readableState;j("endReadable",x.endEmitted),x.endEmitted||(x.ended=!0,n.nextTick(Zc,x,S))}function Zc(S,x){if(j("endReadableNT",S.endEmitted,S.length),!S.errored&&!S.closeEmitted&&!S.endEmitted&&S.length===0){if(S.endEmitted=!0,x.emit("end"),x.writable&&x.allowHalfOpen===!1)n.nextTick(bu,x);else if(S.autoDestroy){const Y=x._writableState;(!Y||Y.autoDestroy&&(Y.finished||Y.writable===!1))&&x.destroy()}}}function bu(S){S.writable&&!S.writableEnded&&!S.destroyed&&S.end()}he.from=function(S,x){return He(he,S,x)};let So;function ql(){return So===void 0&&(So={}),So}return he.fromWeb=function(S,x){return ql().newStreamReadableFromReadableStream(S,x)},he.toWeb=function(S,x){return ql().newReadableStreamFromStreamReadable(S,x)},he.wrap=function(S,x){var Y,J;return new he({objectMode:(Y=(J=S.readableObjectMode)!==null&&J!==void 0?J:S.objectMode)!==null&&Y!==void 0?Y:!0,...x,destroy(ue,Yt){te.destroyer(S,ue),Yt(ue)}}).wrap(S)},eMe}var tMe,AUt;function GUe(){if(AUt)return tMe;AUt=1;const n=ui,{ArrayPrototypeSlice:r,Error:o,FunctionPrototypeSymbolHasInstance:l,ObjectDefineProperty:u,ObjectDefineProperties:d,ObjectSetPrototypeOf:h,StringPrototypeToLowerCase:w,Symbol:v,SymbolHasInstance:y}=jf;tMe=ye,ye.WritableState=F;const{EventEmitter:E}=Ns,A=UUe.Stream,{Buffer:C}=Kr,R=yj,{addAbortSignal:O}=Lbe,{getHighWaterMark:M,getDefaultHighWaterMark:L}=jbe,{ERR_INVALID_ARG_TYPE:H,ERR_METHOD_NOT_IMPLEMENTED:G,ERR_MULTIPLE_CALLBACK:j,ERR_STREAM_CANNOT_PIPE:Q,ERR_STREAM_DESTROYED:te,ERR_STREAM_ALREADY_FINISHED:pe,ERR_STREAM_NULL_VALUES:De,ERR_STREAM_WRITE_AFTER_END:Re,ERR_UNKNOWN_ENCODING:le}=$0.codes,{errorOrDestroy:xe}=R;h(ye.prototype,A.prototype),h(ye,A);function be(){}const ae=v("kOnFinished");function F(T,$,B){typeof B!="boolean"&&(B=$ instanceof rx()),this.objectMode=!!(T&&T.objectMode),B&&(this.objectMode=this.objectMode||!!(T&&T.writableObjectMode)),this.highWaterMark=T?M(this,T,"writableHighWaterMark",B):L(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const K=!!(T&&T.decodeStrings===!1);this.decodeStrings=!K,this.defaultEncoding=T&&T.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=Ge.bind(void 0,$),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,me(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[ae]=[]}function me(T){T.buffered=[],T.bufferedIndex=0,T.allBuffers=!0,T.allNoop=!0}F.prototype.getBuffer=function(){return r(this.buffered,this.bufferedIndex)},u(F.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function ye(T){const $=this instanceof rx();if(!$&&!l(ye,this))return new ye(T);this._writableState=new F(T,this,$),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&&O(T.signal,this)),A.call(this,T),R.construct(this,()=>{const B=this._writableState;B.writing||Te(this,B),yt(this,B)})}u(ye,y,{__proto__:null,value:function(T){return l(this,T)?!0:this!==ye?!1:T&&T._writableState instanceof F}}),ye.prototype.pipe=function(){xe(this,new Q)};function we(T,$,B,K){const q=T._writableState;if(typeof B=="function")K=B,B=q.defaultEncoding;else{if(!B)B=q.defaultEncoding;else if(B!=="buffer"&&!C.isEncoding(B))throw new le(B);typeof K!="function"&&(K=be)}if($===null)throw new De;if(!q.objectMode)if(typeof $=="string")q.decodeStrings!==!1&&($=C.from($,B),B="buffer");else if($ instanceof C)B="buffer";else if(A._isUint8Array($))$=A._uint8ArrayToBuffer($),B="buffer";else throw new H("chunk",["string","Buffer","Uint8Array"],$);let ke;return q.ending?ke=new Re:q.destroyed&&(ke=new te("write")),ke?(n.nextTick(K,ke),xe(T,ke,!0),ke):(q.pendingcb++,Be(T,q,$,B,K))}ye.prototype.write=function(T,$,B){return we(this,T,$,B)===!0},ye.prototype.cork=function(){this._writableState.corked++},ye.prototype.uncork=function(){const T=this._writableState;T.corked&&(T.corked--,T.writing||Te(this,T))},ye.prototype.setDefaultEncoding=function($){if(typeof $=="string"&&($=w($)),!C.isEncoding($))throw new le($);return this._writableState.defaultEncoding=$,this};function Be(T,$,B,K,q){const ke=$.objectMode?1:B.length;$.length+=ke;const Ee=$.length<$.highWaterMark;return Ee||($.needDrain=!0),$.writing||$.corked||$.errored||!$.constructed?($.buffered.push({chunk:B,encoding:K,callback:q}),$.allBuffers&&K!=="buffer"&&($.allBuffers=!1),$.allNoop&&q!==be&&($.allNoop=!1)):($.writelen=ke,$.writecb=q,$.writing=!0,$.sync=!0,T._write(B,K,$.onwrite),$.sync=!1),Ee&&!$.errored&&!$.destroyed}function He(T,$,B,K,q,ke,Ee){$.writelen=K,$.writecb=Ee,$.writing=!0,$.sync=!0,$.destroyed?$.onwrite(new te("write")):B?T._writev(q,$.onwrite):T._write(q,ke,$.onwrite),$.sync=!1}function Ue(T,$,B,K){--$.pendingcb,K(B),re($),xe(T,B)}function Ge(T,$){const B=T._writableState,K=B.sync,q=B.writecb;if(typeof q!="function"){xe(T,new j);return}B.writing=!1,B.writecb=null,B.length-=B.writelen,B.writelen=0,$?($.stack,B.errored||(B.errored=$),T._readableState&&!T._readableState.errored&&(T._readableState.errored=$),K?n.nextTick(Ue,T,B,$,q):Ue(T,B,$,q)):(B.buffered.length>B.bufferedIndex&&Te(T,B),K?B.afterWriteTickInfo!==null&&B.afterWriteTickInfo.cb===q?B.afterWriteTickInfo.count++:(B.afterWriteTickInfo={count:1,cb:q,stream:T,state:B},n.nextTick(Le,B.afterWriteTickInfo)):ft(T,B,1,q))}function Le({stream:T,state:$,count:B,cb:K}){return $.afterWriteTickInfo=null,ft(T,$,B,K)}function ft(T,$,B,K){for(!$.ending&&!T.destroyed&&$.length===0&&$.needDrain&&($.needDrain=!1,T.emit("drain"));B-- >0;)$.pendingcb--,K();$.destroyed&&re($),yt(T,$)}function re(T){if(T.writing)return;for(let q=T.bufferedIndex;q1&&T._writev){$.pendingcb-=ke-1;const Ie=$.allNoop?be:he=>{for(let Xt=Ee;Xt256?(B.splice(0,Ee),$.bufferedIndex=0):$.bufferedIndex=Ee}$.bufferProcessing=!1}ye.prototype._write=function(T,$,B){if(this._writev)this._writev([{chunk:T,encoding:$}],B);else throw new G("_write()")},ye.prototype._writev=null,ye.prototype.end=function(T,$,B){const K=this._writableState;typeof T=="function"?(B=T,T=null,$=null):typeof $=="function"&&(B=$,$=null);let q;if(T!=null){const ke=we(this,T,$);ke instanceof o&&(q=ke)}return K.corked&&(K.corked=1,this.uncork()),q||(!K.errored&&!K.ending?(K.ending=!0,yt(this,K,!0),K.ended=!0):K.finished?q=new pe("end"):K.destroyed&&(q=new te("end"))),typeof B=="function"&&(q||K.finished?n.nextTick(B,q):K[ae].push(B)),this};function dt(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 at(T,$){let B=!1;function K(q){if(B){xe(T,q??j());return}if(B=!0,$.pendingcb--,q){const ke=$[ae].splice(0);for(let Ee=0;Ee{dt(q)?Lt(K,q):q.pendingcb--},T,$)):dt($)&&($.pendingcb++,Lt(T,$))))}function Lt(T,$){$.pendingcb--,$.finished=!0;const B=$[ae].splice(0);for(let K=0;K{if(re!=null)throw new O("nully","body",re)},re=>{M(Le,re)});return Le=new le({objectMode:!0,readable:!1,write:Be,final(re){He(async()=>{try{await ft,n.nextTick(re,null)}catch(Te){n.nextTick(re,Te)}})},destroy:Ue})}throw new O("Iterable, AsyncIterable or AsyncFunction",me,we)}if(pe(F))return ae(F.arrayBuffer());if(u(F))return Q(le,F,{objectMode:!0,writable:!1});if(y(F==null?void 0:F.readable)&&E(F==null?void 0:F.writable))return le.fromWeb(F);if(typeof(F==null?void 0:F.writable)=="object"||typeof(F==null?void 0:F.readable)=="object"){const we=F!=null&&F.readable?h(F==null?void 0:F.readable)?F==null?void 0:F.readable:ae(F.readable):void 0,Be=F!=null&&F.writable?w(F==null?void 0:F.writable)?F==null?void 0:F.writable:ae(F.writable):void 0;return be({readable:we,writable:Be})}const ye=F==null?void 0:F.then;if(typeof ye=="function"){let we;return Re(ye,F,Be=>{Be!=null&&we.push(Be),we.push(null)},Be=>{M(we,Be)}),we=new le({objectMode:!0,writable:!1,read(){}})}throw new R(me,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],F)};function xe(ae){let{promise:F,resolve:me}=j();const ye=new De,we=ye.signal;return{value:ae(async function*(){for(;;){const He=F;F=null;const{chunk:Ue,done:Ge,cb:Le}=await He;if(n.nextTick(Le),Ge)return;if(we.aborted)throw new C(void 0,{cause:we.reason});({promise:F,resolve:me}=j()),yield Ue}}(),{signal:we}),write(He,Ue,Ge){const Le=me;me=null,Le({chunk:He,done:!1,cb:Ge})},final(He){const Ue=me;me=null,Ue({done:!0,cb:He})},destroy(He,Ue){ye.abort(),Ue(He)}}}function be(ae){const F=ae.readable&&typeof ae.readable.read!="function"?H.wrap(ae.readable):ae.readable,me=ae.writable;let ye=!!o(F),we=!!l(me),Be,He,Ue,Ge,Le;function ft(re){const Te=Ge;Ge=null,Te?Te(re):re&&Le.destroy(re)}return Le=new le({readableObjectMode:!!(F!=null&&F.readableObjectMode),writableObjectMode:!!(me!=null&&me.writableObjectMode),readable:ye,writable:we}),we&&(A(me,re=>{we=!1,re&&M(F,re),ft(re)}),Le._write=function(re,Te,dt){me.write(re,Te)?dt():Be=dt},Le._final=function(re){me.end(),He=re},me.on("drain",function(){if(Be){const re=Be;Be=null,re()}}),me.on("finish",function(){if(He){const re=He;He=null,re()}})),ye&&(A(F,re=>{ye=!1,re&&M(F,re),ft(re)}),F.on("readable",function(){if(Ue){const re=Ue;Ue=null,re()}}),F.on("end",function(){Le.push(null)}),Le._read=function(){for(;;){const re=F.read();if(re===null){Ue=Le._read;return}if(!Le.push(re))return}}),Le._destroy=function(re,Te){!re&&Ge!==null&&(re=new C),Ue=null,Be=null,He=null,Ge===null?Te(re):(Ge=Te,M(me,re),M(F,re))},Le}return nMe}var rMe,$Ut;function rx(){if($Ut)return rMe;$Ut=1;const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:o,ObjectSetPrototypeOf:l}=jf;rMe=h;const u=Fbe(),d=GUe();l(h.prototype,u.prototype),l(h,u);{const E=o(d.prototype);for(let A=0;A{if(r){n?n(r):this.destroy(r);return}o!=null&&this.push(o),this.push(null),n&&n()}):(this.push(null),n&&n())}function Wbr(){this._final!==lFe&&lFe.call(this)}ix.prototype._final=lFe;ix.prototype._transform=function(n,r,o){throw new Fbr("_transform()")};ix.prototype._write=function(n,r,o){const l=this._readableState,u=this._writableState,d=l.length;this._transform(n,r,(h,w)=>{if(h){o(h);return}w!=null&&this.push(w),u.ended||d===l.length||l.length{l=!0});const u=ahe(n,{readable:r,writable:o},d=>{l=!d});return{destroy:d=>{l||(l=!0,Kbr.destroyer(n,d||new Jbr("pipe")))},cleanup:u}}function igr(n){return Zbr(n[n.length-1],"streams[stream.length - 1]"),n.pop()}function uMe(n){if(C8(n))return n;if(rde(n))return ogr(n);throw new aFe("val",["Readable","Iterable","AsyncIterable"],n)}async function*ogr(n){aMe||(aMe=Fbe()),yield*aMe.prototype[Gbr].call(n)}async function Eue(n,r,o,{end:l}){let u,d=null;const h=y=>{if(y&&(u=y),d){const E=d;d=null,E()}},w=()=>new Ubr((y,E)=>{u?E(u):d=()=>{u?E(u):y()}});r.on("drain",h);const v=ahe(r,{readable:!1},h);try{r.writableNeedDrain&&await w();for await(const y of n)r.write(y)||await w();l&&(r.end(),await w()),o()}catch(y){o(u!==y?qbr(u,y):y)}finally{v(),r.off("drain",h)}}async function fMe(n,r,o,{end:l}){kD(r)&&(r=r.writable);const u=r.getWriter();try{for await(const d of n)await u.ready,u.write(d).catch(()=>{});await u.ready,l&&await u.close(),o()}catch(d){try{await u.abort(d),o(d)}catch(h){o(h)}}}function sgr(...n){return uon(n,zbr(igr(n)))}function uon(n,r,o){if(n.length===1&&Hbr(n[0])&&(n=n[0]),n.length<2)throw new Xbr("streams");const l=new rgr,u=l.signal,d=o==null?void 0:o.signal,h=[];egr(d,"options.signal");function w(){O(new Qbr)}cMe=cMe||u1.addAbortListener;let v;d&&(v=cMe(d,w));let y,E;const A=[];let C=0;function R(G){O(G,--C===0)}function O(G,j){var Q;if(G&&(!y||y.code==="ERR_STREAM_PREMATURE_CLOSE")&&(y=G),!(!y&&!j)){for(;A.length;)A.shift()(y);(Q=v)===null||Q===void 0||Q[Vbr](),l.abort(),j&&(y||h.forEach(te=>te()),$K.nextTick(r,y,E))}}let M;for(let G=0;G0,pe=Q||(o==null?void 0:o.end)!==!1,De=G===n.length-1;if(PUt(j)){let Re=function(le){le&&le.name!=="AbortError"&&le.code!=="ERR_STREAM_PREMATURE_CLOSE"&&R(le)};if(pe){const{destroy:le,cleanup:xe}=OUt(j,Q,te);A.push(le),oMe(j)&&De&&h.push(xe)}j.on("error",Re),oMe(j)&&De&&h.push(()=>{j.removeListener("error",Re)})}if(G===0)if(typeof j=="function"){if(M=j({signal:u}),!C8(M))throw new iMe("Iterable, AsyncIterable or Stream","source",M)}else C8(j)||rde(j)||kD(j)?M=j:M=IUt.from(j);else if(typeof j=="function"){if(kD(M)){var L;M=uMe((L=M)===null||L===void 0?void 0:L.readable)}else M=uMe(M);if(M=j(M,{signal:u}),Q){if(!C8(M,!0))throw new iMe("AsyncIterable",`transform[${G-1}]`,M)}else{var H;lMe||(lMe=con);const Re=new lMe({objectMode:!0}),le=(H=M)===null||H===void 0?void 0:H.then;if(typeof le=="function")C++,le.call(M,ae=>{E=ae,ae!=null&&Re.write(ae),pe&&Re.end(),$K.nextTick(R)},ae=>{Re.destroy(ae),$K.nextTick(R,ae)});else if(C8(M,!0))C++,Eue(M,Re,R,{end:pe});else if(sMe(M)||kD(M)){const ae=M.readable||M;C++,Eue(ae,Re,R,{end:pe})}else throw new iMe("AsyncIterable or Promise","destination",M);M=Re;const{destroy:xe,cleanup:be}=OUt(M,!1,!0);A.push(xe),De&&h.push(be)}}else if(PUt(j)){if(rde(M)){C+=2;const Re=lgr(M,j,R,{end:pe});oMe(j)&&De&&h.push(Re)}else if(kD(M)||sMe(M)){const Re=M.readable||M;C++,Eue(Re,j,R,{end:pe})}else if(C8(M))C++,Eue(M,j,R,{end:pe});else throw new aFe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else if(tgr(j)){if(rde(M))C++,fMe(uMe(M),j,R,{end:pe});else if(sMe(M)||C8(M))C++,fMe(M,j,R,{end:pe});else if(kD(M))C++,fMe(M.readable,j,R,{end:pe});else throw new aFe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else M=IUt.from(j)}return(u!=null&&u.aborted||d!=null&&d.aborted)&&$K.nextTick(w),M}function lgr(n,r,o,{end:l}){let u=!1;if(r.on("close",()=>{u||o(new Ybr)}),n.pipe(r,{end:!1}),l){let d=function(){u=!0,r.end()};ngr(n)?$K.nextTick(d):n.once("end",d)}else o();return ahe(n,{readable:!0,writable:!1},d=>{const h=n._readableState;d&&d.code==="ERR_STREAM_PREMATURE_CLOSE"&&h&&h.ended&&!h.errored&&!h.errorEmitted?n.once("end",o).once("error",o):o(d)}),ahe(r,{readable:!1,writable:!0},o)}var KUe={pipelineImpl:uon,pipeline:sgr};const{pipeline:agr}=KUe,kue=rx(),{destroyer:cgr}=yj,{isNodeStream:Rue,isReadable:NUt,isWritable:MUt,isWebStream:dMe,isTransformStream:l8,isWritableStream:DUt,isReadableStream:LUt}=Cx,{AbortError:ugr,codes:{ERR_INVALID_ARG_VALUE:jUt,ERR_MISSING_ARGS:fgr}}=$0,dgr=BT;var fon=function(...r){if(r.length===0)throw new fgr("streams");if(r.length===1)return kue.from(r[0]);const o=[...r];if(typeof r[0]=="function"&&(r[0]=kue.from(r[0])),typeof r[r.length-1]=="function"){const R=r.length-1;r[R]=kue.from(r[R])}for(let R=0;R0&&!(MUt(r[R])||DUt(r[R])||l8(r[R])))throw new jUt(`streams[${R}]`,o[R],"must be writable")}let l,u,d,h,w;function v(R){const O=h;h=null,O?O(R):R?w.destroy(R):!C&&!A&&w.destroy()}const y=r[0],E=agr(r,v),A=!!(MUt(y)||DUt(y)||l8(y)),C=!!(NUt(E)||LUt(E)||l8(E));if(w=new kue({writableObjectMode:!!(y!=null&&y.writableObjectMode),readableObjectMode:!!(E!=null&&E.readableObjectMode),writable:A,readable:C}),A){if(Rue(y))w._write=function(O,M,L){y.write(O,M)?L():l=L},w._final=function(O){y.end(),u=O},y.on("drain",function(){if(l){const O=l;l=null,O()}});else if(dMe(y)){const M=(l8(y)?y.writable:y).getWriter();w._write=async function(L,H,G){try{await M.ready,M.write(L).catch(()=>{}),G()}catch(j){G(j)}},w._final=async function(L){try{await M.ready,M.close().catch(()=>{}),u=L}catch(H){L(H)}}}const R=l8(E)?E.readable:E;dgr(R,()=>{if(u){const O=u;u=null,O()}})}if(C){if(Rue(E))E.on("readable",function(){if(d){const R=d;d=null,R()}}),E.on("end",function(){w.push(null)}),w._read=function(){for(;;){const R=E.read();if(R===null){d=w._read;return}if(!w.push(R))return}};else if(dMe(E)){const O=(l8(E)?E.readable:E).getReader();w._read=async function(){for(;;)try{const{value:M,done:L}=await O.read();if(!w.push(M))return;if(L){w.push(null);return}}catch{return}}}}return w._destroy=function(R,O){!R&&h!==null&&(R=new ugr),d=null,l=null,u=null,h===null?O(R):(h=O,Rue(E)&&cgr(E,R))},w};const hgr=globalThis.AbortController||$o().AbortController,{codes:{ERR_INVALID_ARG_VALUE:pgr,ERR_INVALID_ARG_TYPE:AJ,ERR_MISSING_ARGS:bgr,ERR_OUT_OF_RANGE:ggr},AbortError:lk}=$0,{validateAbortSignal:rO,validateInteger:FUt,validateObject:iO}=CJ,wgr=jf.Symbol("kWeak"),mgr=jf.Symbol("kResistStopPropagation"),{finished:ygr}=BT,vgr=fon,{addAbortSignalNoValidate:_gr}=Lbe,{isWritable:Sgr,isNodeStream:Egr}=Cx,{deprecate:kgr}=u1,{ArrayPrototypePush:Rgr,Boolean:xgr,MathFloor:BUt,Number:Cgr,NumberIsNaN:Agr,Promise:WUt,PromiseReject:HUt,PromiseResolve:Tgr,PromisePrototypeThen:UUt,Symbol:don}=jf,che=don("kEmpty"),GUt=don("kEof");function $gr(n,r){if(r!=null&&iO(r,"options"),(r==null?void 0:r.signal)!=null&&rO(r.signal,"options.signal"),Egr(n)&&!Sgr(n))throw new pgr("stream",n,"must be writable");const o=vgr(this,n);return r!=null&&r.signal&&_gr(r.signal,o),o}function Bbe(n,r){if(typeof n!="function")throw new AJ("fn",["Function","AsyncFunction"],n);r!=null&&iO(r,"options"),(r==null?void 0:r.signal)!=null&&rO(r.signal,"options.signal");let o=1;(r==null?void 0:r.concurrency)!=null&&(o=BUt(r.concurrency));let l=o-1;return(r==null?void 0:r.highWaterMark)!=null&&(l=BUt(r.highWaterMark)),FUt(o,"options.concurrency",1),FUt(l,"options.highWaterMark",0),l+=o,(async function*(){const d=u1.AbortSignalAny([r==null?void 0:r.signal].filter(xgr)),h=this,w=[],v={signal:d};let y,E,A=!1,C=0;function R(){A=!0,O()}function O(){C-=1,M()}function M(){E&&!A&&C=l||C>=o)&&await new WUt(G=>{E=G})}w.push(GUt)}catch(H){const G=HUt(H);UUt(G,O,R),w.push(G)}finally{A=!0,y&&(y(),y=null)}}L();try{for(;;){for(;w.length>0;){const H=await w[0];if(H===GUt)return;if(d.aborted)throw new lk;H!==che&&(yield H),w.shift(),M()}await new WUt(H=>{y=H})}}finally{A=!0,E&&(E(),E=null)}}).call(this)}function Igr(n=void 0){return n!=null&&iO(n,"options"),(n==null?void 0:n.signal)!=null&&rO(n.signal,"options.signal"),(async function*(){let o=0;for await(const u of this){var l;if(n!=null&&(l=n.signal)!==null&&l!==void 0&&l.aborted)throw new lk({cause:n.signal.reason});yield[o++,u]}}).call(this)}async function hon(n,r=void 0){for await(const o of qUe.call(this,n,r))return!0;return!1}async function Pgr(n,r=void 0){if(typeof n!="function")throw new AJ("fn",["Function","AsyncFunction"],n);return!await hon.call(this,async(...o)=>!await n(...o),r)}async function Ogr(n,r){for await(const o of qUe.call(this,n,r))return o}async function Ngr(n,r){if(typeof n!="function")throw new AJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u),che}for await(const l of Bbe.call(this,o,r));}function qUe(n,r){if(typeof n!="function")throw new AJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u)?l:che}return Bbe.call(this,o,r)}let Mgr=class extends bgr{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function Dgr(n,r,o){var l;if(typeof n!="function")throw new AJ("reducer",["Function","AsyncFunction"],n);o!=null&&iO(o,"options"),(o==null?void 0:o.signal)!=null&&rO(o.signal,"options.signal");let u=arguments.length>1;if(o!=null&&(l=o.signal)!==null&&l!==void 0&&l.aborted){const y=new lk(void 0,{cause:o.signal.reason});throw this.once("error",()=>{}),await ygr(this.destroy(y)),y}const d=new hgr,h=d.signal;if(o!=null&&o.signal){const y={once:!0,[wgr]:this,[mgr]:!0};o.signal.addEventListener("abort",()=>d.abort(),y)}let w=!1;try{for await(const y of this){var v;if(w=!0,o!=null&&(v=o.signal)!==null&&v!==void 0&&v.aborted)throw new lk;u?r=await n(r,y,{signal:h}):(r=y,u=!0)}if(!w&&!u)throw new Mgr}finally{d.abort()}return r}async function Lgr(n){n!=null&&iO(n,"options"),(n==null?void 0:n.signal)!=null&&rO(n.signal,"options.signal");const r=[];for await(const l of this){var o;if(n!=null&&(o=n.signal)!==null&&o!==void 0&&o.aborted)throw new lk(void 0,{cause:n.signal.reason});Rgr(r,l)}return r}function jgr(n,r){const o=Bbe.call(this,n,r);return(async function*(){for await(const u of o)yield*u}).call(this)}function pon(n){if(n=Cgr(n),Agr(n))return 0;if(n<0)throw new ggr("number",">= 0",n);return n}function Fgr(n,r=void 0){return r!=null&&iO(r,"options"),(r==null?void 0:r.signal)!=null&&rO(r.signal,"options.signal"),n=pon(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new lk;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new lk;n--<=0&&(yield d)}}).call(this)}function Bgr(n,r=void 0){return r!=null&&iO(r,"options"),(r==null?void 0:r.signal)!=null&&rO(r.signal,"options.signal"),n=pon(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new lk;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new lk;if(n-- >0&&(yield d),n<=0)return}}).call(this)}jUe.streamReturningOperators={asIndexedPairs:kgr(Igr,"readable.asIndexedPairs will be removed in a future version."),drop:Fgr,filter:qUe,flatMap:jgr,map:Bbe,take:Bgr,compose:$gr};jUe.promiseReturningOperators={every:Pgr,forEach:Ngr,reduce:Dgr,toArray:Lgr,some:hon,find:Ogr};var hMe,VUt;function bon(){if(VUt)return hMe;VUt=1;const{ArrayPrototypePop:n,Promise:r}=jf,{isIterable:o,isNodeStream:l,isWebStream:u}=Cx,{pipelineImpl:d}=KUe,{finished:h}=BT;gon();function w(...v){return new r((y,E)=>{let A,C;const R=v[v.length-1];if(R&&typeof R=="object"&&!l(R)&&!o(R)&&!u(R)){const O=n(v);A=O.signal,C=O.end}d(v,(O,M)=>{O?E(O):y(M)},{signal:A,end:C})})}return hMe={finished:h,pipeline:w},hMe}var zUt;function gon(){if(zUt)return JNe.exports;zUt=1;const{Buffer:n}=Kr,{ObjectDefineProperty:r,ObjectKeys:o,ReflectApply:l}=jf,{promisify:{custom:u}}=u1,{streamReturningOperators:d,promiseReturningOperators:h}=jUe,{codes:{ERR_ILLEGAL_CONSTRUCTOR:w}}=$0,v=fon,{setDefaultHighWaterMark:y,getDefaultHighWaterMark:E}=jbe,{pipeline:A}=KUe,{destroyer:C}=yj,R=BT,O=bon(),M=Cx,L=JNe.exports=UUe.Stream;L.isDestroyed=M.isDestroyed,L.isDisturbed=M.isDisturbed,L.isErrored=M.isErrored,L.isReadable=M.isReadable,L.isWritable=M.isWritable,L.Readable=Fbe();for(const G of o(d)){let Q=function(...te){if(new.target)throw w();return L.Readable.from(l(j,this,te))};const j=d[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}for(const G of o(h)){let Q=function(...te){if(new.target)throw w();return l(j,this,te)};const j=h[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}L.Writable=GUe(),L.Duplex=rx(),L.Transform=lon,L.PassThrough=con,L.pipeline=A;const{addAbortSignal:H}=Lbe;return L.addAbortSignal=H,L.finished=R,L.destroy=C,L.compose=v,L.setDefaultHighWaterMark=y,L.getDefaultHighWaterMark=E,r(L,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return O}}),r(A,u,{__proto__:null,enumerable:!0,get(){return O.pipeline}}),r(R,u,{__proto__:null,enumerable:!0,get(){return O.finished}}),L.Stream=L,L._isUint8Array=function(j){return j instanceof Uint8Array},L._uint8ArrayToBuffer=function(j){return n.from(j.buffer,j.byteOffset,j.byteLength)},JNe.exports}(function(n){const r=gon(),o=bon(),l=r.Readable.destroy;n.exports=r.Readable,n.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer,n.exports._isUint8Array=r._isUint8Array,n.exports.isDisturbed=r.isDisturbed,n.exports.isErrored=r.isErrored,n.exports.isReadable=r.isReadable,n.exports.Readable=r.Readable,n.exports.Writable=r.Writable,n.exports.Duplex=r.Duplex,n.exports.Transform=r.Transform,n.exports.PassThrough=r.PassThrough,n.exports.addAbortSignal=r.addAbortSignal,n.exports.finished=r.finished,n.exports.destroy=r.destroy,n.exports.destroy=l,n.exports.pipeline=r.pipeline,n.exports.compose=r.compose,Object.defineProperty(r,"promises",{configurable:!0,enumerable:!0,get(){return o}}),n.exports.Stream=r.Stream,n.exports.default=n.exports})(xin);var Wgr=xin.exports;const cFe="null:";function Hgr(n){return r=>r.termType!=="NamedNode"||!r.value.startsWith(cFe)?null:n.namedNode(r.value.slice(cFe.length))}function Ugr(n){const r=Hgr(n);return o=>{const l=r(o.subject),u=r(o.predicate),d=r(o.object),h=r(o.graph);return l||u||d||h?n.quad(l||o.subject,u||o.predicate,d||o.object,h||o.graph):o}}let Ggr=class{constructor(r,{baseIRI:o=cFe,context:l=null,documentLoader:u,factory:d=hHe}={}){const h=new mrn.JsonLdParser({baseIRI:o,context:l,dataFactory:d,documentLoader:u,streamingProfile:!1});r.pipe(h);const w=Ugr(d),v=new Wgr.Transform({objectMode:!0,transform:(y,E,A)=>{A(null,w(y))}});return h.on("context",y=>{Object.entries(y).forEach(([E,A])=>{v.emit("prefix",E,d.namedNode(A))})}),h.on("error",y=>v.destroy(y)),h.pipe(v),_Ue(v)}},won=class extends ebe{constructor(r){super(Ggr,r)}};const Vgr=Object.freeze(Object.defineProperty({__proto__:null,default:won},Symbol.toStringTag,{value:"Module"}));/*! queue-microtask. MIT License. Feross Aboukhadijeh */let KUt;var zgr=typeof queueMicrotask=="function"?queueMicrotask.bind(window):n=>(KUt||(KUt=Promise.resolve())).then(n).catch(r=>setTimeout(()=>{throw r},0));const Kgr=cv(zgr),cK="http://www.w3.org/1999/02/22-rdf-syntax-ns#",uK="http://www.w3.org/2001/XMLSchema#",pMe="http://www.w3.org/2000/10/swap/",$E={xsd:{decimal:`${uK}decimal`,boolean:`${uK}boolean`,double:`${uK}double`,integer:`${uK}integer`,string:`${uK}string`},rdf:{type:`${cK}type`,nil:`${cK}nil`,first:`${cK}first`,rest:`${cK}rest`,langString:`${cK}langString`},owl:{sameAs:"http://www.w3.org/2002/07/owl#sameAs"},r:{forSome:`${pMe}reify#forSome`,forAll:`${pMe}reify#forAll`},log:{implies:`${pMe}log#implies`}},{xsd:xue}=$E,qgr=/\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{8})|\\([^])/g,qUt={"\\":"\\","'":"'",'"':'"',n:` +`,r:"\r",t:" ",f:"\f",b:"\b",_:"_","~":"~",".":".","-":"-","!":"!",$:"$","&":"&","(":"(",")":")","*":"*","+":"+",",":",",";":";","=":"=","/":"/","?":"?","#":"#","@":"@","%":"%"},Xgr=/[\x00-\x20<>\\"\{\}\|\^\`]/,Jgr={_iri:!0,_unescapedIri:!0,_simpleQuotedString:!0,_langcode:!0,_blank:!0,_newline:!0,_comment:!0,_whitespace:!0,_endOfFile:!0},Ygr=/$0^/;class Qgr{constructor(r){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]*)?$/,r=r||{},this._lineMode=!!r.lineMode){this._n3Mode=!1;for(const o in this)!(o in Jgr)&&this[o]instanceof RegExp&&(this[o]=Ygr)}else this._n3Mode=r.n3!==!1;this.comments=!!r.comments,this._literalClosingPos=0}_tokenizeToEnd(r,o){let l=this._input,u=l.length;for(;;){let w,v;for(;w=this._newline.exec(l);)this.comments&&(v=this._comment.exec(w[0]))&&d("comment",v[1],"",this._line,w[0].length),l=l.substr(w[0].length,l.length),u=l.length,this._line++;if(!w&&(w=this._whitespace.exec(l))&&(l=l.substr(w[0].length,l.length)),this._endOfFile.test(l))return o&&(this.comments&&(v=this._comment.exec(l))&&d("comment",v[1],"",this._line,l.length),l=null,d("eof","","",this._line,0)),this._input=l;const y=this._line,E=l[0];let A="",C="",R="",O=null,M=0,L=!1;switch(E){case"^":if(l.length<3)break;if(l[1]==="^"){if(this._previousMarker="^^",l=l.substr(2),l[0]!=="<"){L=!0;break}}else{this._n3Mode&&(M=1,A="^");break}case"<":if(O=this._unescapedIri.exec(l))A="IRI",C=O[1];else if(O=this._iri.exec(l)){if(C=this._unescape(O[1]),C===null||Xgr.test(C))return h(this);A="IRI"}else l.length>1&&l[1]==="<"?(A="<<",M=2):this._n3Mode&&l.length>1&&l[1]==="="&&(A="inverse",M=2,C=">");break;case">":l.length>1&&l[1]===">"&&(A=">>",M=2);break;case"_":((O=this._blank.exec(l))||o&&(O=this._blank.exec(`${l} `)))&&(A="blank",R="_",C=O[1]);break;case'"':if(O=this._simpleQuotedString.exec(l))C=O[1];else if({value:C,matchLength:M}=this._parseLiteral(l),C===null)return h(this);(O!==null||M!==0)&&(A="literal",this._literalClosingPos=0);break;case"'":if(!this._lineMode){if(O=this._simpleApostropheString.exec(l))C=O[1];else if({value:C,matchLength:M}=this._parseLiteral(l),C===null)return h(this);(O!==null||M!==0)&&(A="literal",this._literalClosingPos=0)}break;case"?":this._n3Mode&&(O=this._variable.exec(l))&&(A="var",C=O[0]);break;case"@":this._previousMarker==="literal"&&(O=this._langcode.exec(l))?(A="langcode",C=O[1]):(O=this._keyword.exec(l))&&(A=O[0]);break;case".":if(l.length===1?o:l[1]<"0"||l[1]>"9"){A=".",M=1;break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"+":case"-":(O=this._number.exec(l)||o&&(O=this._number.exec(`${l} `)))&&(A="literal",C=O[0],R=typeof O[1]=="string"?xue.double:typeof O[2]=="string"?xue.decimal:xue.integer);break;case"B":case"b":case"p":case"P":case"G":case"g":(O=this._sparqlKeyword.exec(l))?A=O[0].toUpperCase():L=!0;break;case"f":case"t":(O=this._boolean.exec(l))?(A="literal",C=O[0],R=xue.boolean):L=!0;break;case"a":(O=this._shortPredicates.exec(l))?(A="abbreviation",C="a"):L=!0;break;case"=":this._n3Mode&&l.length>1&&(A="abbreviation",l[1]!==">"?(M=1,C="="):(M=2,C=">"));break;case"!":if(!this._n3Mode)break;case",":case";":case"[":case"]":case"(":case")":case"}":this._lineMode||(M=1,A=E);break;case"{":!this._lineMode&&l.length>=2&&(l[1]==="|"?(A="{|",M=2):(A=E,M=1));break;case"|":l.length>=2&&l[1]==="}"&&(A="|}",M=2);break;default:L=!0}if(L&&((this._previousMarker==="@prefix"||this._previousMarker==="PREFIX")&&(O=this._prefix.exec(l))?(A="prefix",C=O[1]||""):((O=this._prefixed.exec(l))||o&&(O=this._prefixed.exec(`${l} `)))&&(A="prefixed",R=O[1]||"",C=this._unescape(O[2]))),this._previousMarker==="^^")switch(A){case"prefixed":A="type";break;case"IRI":A="typeIRI";break;default:A=""}if(!A)return o||!/^'''|^"""/.test(l)&&/\n|\r/.test(l)?h(this):this._input=l;const H=M||O[0].length,G=d(A,C,R,y,H);this.previousToken=G,this._previousMarker=A,l=l.substr(H,l.length)}function d(w,v,y,E,A){const C=l?u-l.length:u,R=C+A,O={type:w,value:v,prefix:y,line:E,start:C,end:R};return r(null,O),O}function h(w){r(w._syntaxError(/^\S*/.exec(l)[0]))}}_unescape(r){let o=!1;const l=r.replace(qgr,(u,d,h,w)=>{if(typeof d=="string")return String.fromCharCode(Number.parseInt(d,16));if(typeof h=="string"){let v=Number.parseInt(h,16);return v<=65535?String.fromCharCode(Number.parseInt(h,16)):String.fromCharCode(55296+((v-=65536)>>10),56320+(v&1023))}return w in qUt?qUt[w]:(o=!0,"")});return o?null:l}_parseLiteral(r){if(r.length>=3){const o=r.match(/^(?:"""|"|'''|'|)/)[0],l=o.length;let u=Math.max(this._literalClosingPos,l);for(;(u=r.indexOf(o,u))>0;){let d=0;for(;r[u-d-1]==="\\";)d++;if(d%2===0){const h=r.substring(l,u),w=h.split(/\r\n|\r|\n/).length-1,v=u+l;if(l===1&&w!==0||l===3&&this._lineMode)break;return this._line+=w,{value:this._unescape(h),matchLength:v}}u++}this._literalClosingPos=r.length-l+1}return{value:"",matchLength:0}}_syntaxError(r){this._input=null;const o=new Error(`Unexpected "${r}" on line ${this._line}.`);return o.context={token:void 0,line:this._line,previousToken:this.previousToken},o}_readStartingBom(r){return r.startsWith("\uFEFF")?r.substr(1):r}tokenize(r,o){if(this._line=1,typeof r=="string")if(this._input=this._readStartingBom(r),typeof o=="function")Kgr(()=>this._tokenizeToEnd(o,!0));else{const l=[];let u;if(this._tokenizeToEnd((d,h)=>d?u=d:l.push(h),!0),u)throw u;return l}else this._pendingBuffer=null,typeof r.setEncoding=="function"&&r.setEncoding("utf8"),r.on("data",l=>{this._input!==null&&l.length!==0&&(this._pendingBuffer&&(l=Kr.Buffer.concat([this._pendingBuffer,l]),this._pendingBuffer=null),l[l.length-1]&128?this._pendingBuffer=l:(typeof this._input>"u"?this._input=this._readStartingBom(typeof l=="string"?l:l.toString()):this._input+=l,this._tokenizeToEnd(o,!1)))}),r.on("end",()=>{typeof this._input=="string"&&this._tokenizeToEnd(o,!0)}),r.on("error",o)}}const{rdf:Zgr,xsd:L8}=$E;let vj,e1r=0;const uFe={namedNode:von,blankNode:_on,variable:Eon,literal:Son,defaultGraph:i1r,quad:fFe,triple:fFe,fromTerm:IK,fromQuad:kon};class yk{constructor(r){this.id=r}get value(){return this.id}equals(r){return r instanceof yk?this.id===r.id:!!r&&this.termType===r.termType&&this.value===r.value}hashCode(){return 0}toJSON(){return{termType:this.termType,value:this.value}}}class mon extends yk{get termType(){return"NamedNode"}}class lL extends yk{get termType(){return"Literal"}get value(){return this.id.substring(1,this.id.lastIndexOf('"'))}get language(){const r=this.id;let o=r.lastIndexOf('"')+1;return o0?"INF":"-INF")))),o===""||o===L8.string?new lL(`"${n}"`):new lL(`"${n}"^^${o}`)}function Eon(n){return new n1r(n)}function i1r(){return vj}function fFe(n,r,o,l){return new yon(n,r,o,l)}function IK(n){if(n instanceof yk)return n;switch(n.termType){case"NamedNode":return von(n.value);case"BlankNode":return _on(n.value);case"Variable":return Eon(n.value);case"DefaultGraph":return vj;case"Literal":return Son(n.value,n.language||n.datatype);case"Quad":return kon(n);default:throw new Error(`Unexpected termType: ${n.termType}`)}}function kon(n){if(n instanceof yon)return n;if(n.termType!=="Quad")throw new Error(`Unexpected termType: ${n.termType}`);return fFe(IK(n.subject),IK(n.predicate),IK(n.object),IK(n.graph))}let XUt=0;class Ron{constructor(r){this._contextStack=[],this._graph=null,r=r||{},this._setBase(r.baseIRI),r.factory&&xon(this,r.factory);const o=typeof r.format=="string"?r.format.match(/\w*$/)[0].toLowerCase():"",l=/turtle/.test(o),u=/trig/.test(o),d=/triple/.test(o),h=/quad/.test(o),w=this._n3Mode=/n3/.test(o),v=d||h;(this._supportsNamedGraphs=!(l||w))||(this._readPredicateOrNamedGraph=this._readPredicate),this._supportsQuads=!(l||u||d||w),this._supportsRDFStar=o===""||/star|\*$/.test(o),v&&(this._resolveRelativeIRI=y=>null),this._blankNodePrefix=typeof r.blankNodePrefix!="string"?"":r.blankNodePrefix.replace(/^(?!_:)/,"_:"),this._lexer=r.lexer||new Qgr({lineMode:v,n3:w}),this._explicitQuantifiers=!!r.explicitQuantifiers}static _resetBlankNodePrefix(){XUt=0}_setBase(r){if(!r)this._base="",this._basePath="";else{const o=r.indexOf("#");o>=0&&(r=r.substr(0,o)),this._base=r,this._basePath=r.indexOf("/")<0?r:r.replace(/[^\/?]*(?:\?.*)?$/,""),r=r.match(/^(?:([a-z][a-z0-9+.-]*:))?(?:\/\/[^\/]*)?/i),this._baseRoot=r[0],this._baseScheme=r[1]}}_saveContext(r,o,l,u,d){const h=this._n3Mode;this._contextStack.push({type:r,subject:l,predicate:u,object:d,graph:o,inverse:h?this._inversePredicate:!1,blankPrefix:h?this._prefixes._:"",quantified:h?this._quantified:null}),h&&(this._inversePredicate=!1,this._prefixes._=this._graph?`${this._graph.value}.`:".",this._quantified=Object.create(this._quantified))}_restoreContext(r,o){const l=this._contextStack.pop();if(!l||l.type!==r)return this._error(`Unexpected ${o.type}`,o);this._subject=l.subject,this._predicate=l.predicate,this._object=l.object,this._graph=l.graph,this._n3Mode&&(this._inversePredicate=l.inverse,this._prefixes._=l.blankPrefix,this._quantified=l.quantified)}_readInTopContext(r){switch(r.type){case"eof":return this._graph!==null?this._error("Unclosed graph",r):(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(r)}}_readEntity(r,o){let l;switch(r.type){case"IRI":case"typeIRI":const u=this._resolveIRI(r.value);if(u===null)return this._error("Invalid IRI",r);l=this._factory.namedNode(u);break;case"type":case"prefixed":const d=this._prefixes[r.prefix];if(d===void 0)return this._error(`Undefined prefix "${r.prefix}:"`,r);l=this._factory.namedNode(d+r.value);break;case"blank":l=this._factory.blankNode(this._prefixes[r.prefix]+r.value);break;case"var":l=this._factory.variable(r.value.substr(1));break;default:return this._error(`Expected entity but got ${r.type}`,r)}return!o&&this._n3Mode&&l.id in this._quantified&&(l=this._quantified[l.id]),l}_readSubject(r){switch(this._predicate=null,r.type){case"[":return this._saveContext("blank",this._graph,this._subject=this._factory.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._factory.blankNode(),null,null),this._readSubject):this._error("Unexpected graph",r);case"}":return this._readPunctuation(r);case"@forSome":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORSOME,this._quantifier="blankNode",this._readQuantifierList):this._error('Unexpected "@forSome"',r);case"@forAll":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORALL,this._quantifier="variable",this._readQuantifierList):this._error('Unexpected "@forAll"',r);case"literal":if(!this._n3Mode)return this._error("Unexpected literal",r);if(r.prefix.length===0)return this._literalValue=r.value,this._completeSubjectLiteral;this._subject=this._factory.literal(r.value,this._factory.namedNode(r.prefix));break;case"<<":return this._supportsRDFStar?(this._saveContext("<<",this._graph,null,null,null),this._graph=null,this._readSubject):this._error("Unexpected RDF-star syntax",r);default:if((this._subject=this._readEntity(r))===void 0)return;if(this._n3Mode)return this._getPathReader(this._readPredicateOrNamedGraph)}return this._readPredicateOrNamedGraph}_readPredicate(r){const o=r.type;switch(o){case"inverse":this._inversePredicate=!0;case"abbreviation":this._predicate=this.ABBREVIATIONS[r.value];break;case".":case"]":case"}":return this._predicate===null?this._error(`Unexpected ${o}`,r):(this._subject=null,o==="]"?this._readBlankNodeTail(r):this._readPunctuation(r));case";":return this._predicate!==null?this._readPredicate:this._error("Expected predicate but got ;",r);case"[":if(this._n3Mode)return this._saveContext("blank",this._graph,this._subject,this._subject=this._factory.blankNode(),null),this._readBlankNodeHead;case"blank":if(!this._n3Mode)return this._error("Disallowed blank node as predicate",r);default:if((this._predicate=this._readEntity(r))===void 0)return}return this._readObject}_readObject(r){switch(r.type){case"literal":if(r.prefix.length===0)return this._literalValue=r.value,this._readDataTypeOrLang;this._object=this._factory.literal(r.value,this._factory.namedNode(r.prefix));break;case"[":return this._saveContext("blank",this._graph,this._subject,this._predicate,this._subject=this._factory.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._factory.blankNode()),this._readSubject):this._error("Unexpected graph",r);case"<<":return this._supportsRDFStar?(this._saveContext("<<",this._graph,this._subject,this._predicate,null),this._graph=null,this._readSubject):this._error("Unexpected RDF-star syntax",r);default:if((this._object=this._readEntity(r))===void 0)return;if(this._n3Mode)return this._getPathReader(this._getContextEndReader())}return this._getContextEndReader()}_readPredicateOrNamedGraph(r){return r.type==="{"?this._readGraph(r):this._readPredicate(r)}_readGraph(r){return r.type!=="{"?this._error(`Expected graph but got ${r.type}`,r):(this._graph=this._subject,this._subject=null,this._readSubject)}_readBlankNodeHead(r){return r.type==="]"?(this._subject=null,this._readBlankNodeTail(r)):(this._predicate=null,this._readPredicate(r))}_readBlankNodeTail(r){if(r.type!=="]")return this._readBlankNodePunctuation(r);this._subject!==null&&this._emit(this._subject,this._predicate,this._object,this._graph);const o=this._predicate===null;return this._restoreContext("blank",r),this._object!==null?this._getContextEndReader():this._predicate!==null?this._readObject:o?this._readPredicateOrNamedGraph:this._readPredicateAfterBlank}_readPredicateAfterBlank(r){switch(r.type){case".":case"}":return this._subject=null,this._readPunctuation(r);default:return this._readPredicate(r)}}_readListItem(r){let o=null,l=null,u=this._readListItem;const d=this._subject,h=this._contextStack,w=h[h.length-1];switch(r.type){case"[":this._saveContext("blank",this._graph,l=this._factory.blankNode(),this.RDF_FIRST,this._subject=o=this._factory.blankNode()),u=this._readBlankNodeHead;break;case"(":this._saveContext("list",this._graph,l=this._factory.blankNode(),this.RDF_FIRST,this.RDF_NIL),this._subject=null;break;case")":if(this._restoreContext("list",r),h.length!==0&&h[h.length-1].type==="list"&&this._emit(this._subject,this._predicate,this._object,this._graph),this._predicate===null){if(u=this._readPredicate,this._subject===this.RDF_NIL)return u}else if(u=this._getContextEndReader(),this._object===this.RDF_NIL)return u;l=this.RDF_NIL;break;case"literal":r.prefix.length===0?(this._literalValue=r.value,u=this._readListItemDataTypeOrLang):(o=this._factory.literal(r.value,this._factory.namedNode(r.prefix)),u=this._getContextEndReader());break;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._subject,this._predicate,this._graph=this._factory.blankNode()),this._readSubject):this._error("Unexpected graph",r);default:if((o=this._readEntity(r))===void 0)return}if(l===null&&(this._subject=l=this._factory.blankNode()),d===null?w.predicate===null?w.subject=l:w.object=l:this._emit(d,this.RDF_REST,l,this._graph),o!==null){if(this._n3Mode&&(r.type==="IRI"||r.type==="prefixed"))return this._saveContext("item",this._graph,l,this.RDF_FIRST,o),this._subject=o,this._predicate=null,this._getPathReader(this._readListItem);this._emit(l,this.RDF_FIRST,o,this._graph)}return u}_readDataTypeOrLang(r){return this._completeObjectLiteral(r,!1)}_readListItemDataTypeOrLang(r){return this._completeObjectLiteral(r,!0)}_completeLiteral(r){let o=this._factory.literal(this._literalValue);switch(r.type){case"type":case"typeIRI":const l=this._readEntity(r);if(l===void 0)return;o=this._factory.literal(this._literalValue,l),r=null;break;case"langcode":o=this._factory.literal(this._literalValue,r.value),r=null;break}return{token:r,literal:o}}_completeSubjectLiteral(r){return this._subject=this._completeLiteral(r).literal,this._readPredicateOrNamedGraph}_completeObjectLiteral(r,o){const l=this._completeLiteral(r);if(l)return this._object=l.literal,o&&this._emit(this._subject,this.RDF_FIRST,this._object,this._graph),l.token===null?this._getContextEndReader():(this._readCallback=this._getContextEndReader(),this._readCallback(l.token))}_readFormulaTail(r){return r.type!=="}"?this._readPunctuation(r):(this._subject!==null&&this._emit(this._subject,this._predicate,this._object,this._graph),this._restoreContext("formula",r),this._object===null?this._readPredicate:this._getContextEndReader())}_readPunctuation(r){let o,l=this._graph;const u=this._subject,d=this._inversePredicate;switch(r.type){case"}":if(this._graph===null)return this._error("Unexpected graph closing",r);if(this._n3Mode)return this._readFormulaTail(r);this._graph=null;case".":this._subject=null,o=this._contextStack.length?this._readSubject:this._readInTopContext,d&&(this._inversePredicate=!1);break;case";":o=this._readPredicate;break;case",":o=this._readObject;break;case"{|":if(!this._supportsRDFStar)return this._error("Unexpected RDF-star syntax",r);const h=this._predicate,w=this._object;this._subject=this._factory.quad(u,h,w,this.DEFAULTGRAPH),o=this._readPredicate;break;case"|}":if(this._subject.termType!=="Quad")return this._error("Unexpected asserted triple closing",r);this._subject=null,o=this._readPunctuation;break;default:if(this._supportsQuads&&this._graph===null&&(l=this._readEntity(r))!==void 0){o=this._readQuadPunctuation;break}return this._error(`Expected punctuation to follow "${this._object.id}"`,r)}if(u!==null){const h=this._predicate,w=this._object;d?this._emit(w,h,u,l):this._emit(u,h,w,l)}return o}_readBlankNodePunctuation(r){let o;switch(r.type){case";":o=this._readPredicate;break;case",":o=this._readObject;break;default:return this._error(`Expected punctuation to follow "${this._object.id}"`,r)}return this._emit(this._subject,this._predicate,this._object,this._graph),o}_readQuadPunctuation(r){return r.type!=="."?this._error("Expected dot to follow quad",r):this._readInTopContext}_readPrefix(r){return r.type!=="prefix"?this._error("Expected prefix to follow @prefix",r):(this._prefix=r.value,this._readPrefixIRI)}_readPrefixIRI(r){if(r.type!=="IRI")return this._error(`Expected IRI to follow prefix "${this._prefix}:"`,r);const o=this._readEntity(r);return this._prefixes[this._prefix]=o.value,this._prefixCallback(this._prefix,o),this._readDeclarationPunctuation}_readBaseIRI(r){const o=r.type==="IRI"&&this._resolveIRI(r.value);return o?(this._setBase(o),this._readDeclarationPunctuation):this._error("Expected valid IRI to follow base declaration",r)}_readNamedGraphLabel(r){switch(r.type){case"IRI":case"blank":case"prefixed":return this._readSubject(r),this._readGraph;case"[":return this._readNamedGraphBlankLabel;default:return this._error("Invalid graph label",r)}}_readNamedGraphBlankLabel(r){return r.type!=="]"?this._error("Invalid graph label",r):(this._subject=this._factory.blankNode(),this._readGraph)}_readDeclarationPunctuation(r){return this._sparqlStyle?(this._sparqlStyle=!1,this._readInTopContext(r)):r.type!=="."?this._error("Expected declaration to end with a dot",r):this._readInTopContext}_readQuantifierList(r){let o;switch(r.type){case"IRI":case"prefixed":if((o=this._readEntity(r,!0))!==void 0)break;default:return this._error(`Unexpected ${r.type}`,r)}return this._explicitQuantifiers?(this._subject===null?this._emit(this._graph||this.DEFAULTGRAPH,this._predicate,this._subject=this._factory.blankNode(),this.QUANTIFIERS_GRAPH):this._emit(this._subject,this.RDF_REST,this._subject=this._factory.blankNode(),this.QUANTIFIERS_GRAPH),this._emit(this._subject,this.RDF_FIRST,o,this.QUANTIFIERS_GRAPH)):this._quantified[o.id]=this._factory[this._quantifier](this._factory.blankNode().value),this._readQuantifierPunctuation}_readQuantifierPunctuation(r){return r.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(r))}_getPathReader(r){return this._afterPath=r,this._readPath}_readPath(r){switch(r.type){case"!":return this._readForwardPath;case"^":return this._readBackwardPath;default:const o=this._contextStack,l=o.length&&o[o.length-1];if(l&&l.type==="item"){const u=this._subject;this._restoreContext("item",r),this._emit(this._subject,this.RDF_FIRST,u,this._graph)}return this._afterPath(r)}}_readForwardPath(r){let o,l;const u=this._factory.blankNode();if((l=this._readEntity(r))!==void 0)return this._predicate===null?(o=this._subject,this._subject=u):(o=this._object,this._object=u),this._emit(o,l,u,this._graph),this._readPath}_readBackwardPath(r){const o=this._factory.blankNode();let l,u;if((l=this._readEntity(r))!==void 0)return this._predicate===null?(u=this._subject,this._subject=o):(u=this._object,this._object=o),this._emit(o,l,u,this._graph),this._readPath}_readRDFStarTailOrGraph(r){return r.type!==">>"?this._supportsQuads&&this._graph===null&&(this._graph=this._readEntity(r))!==void 0?this._readRDFStarTail:this._error(`Expected >> to follow "${this._object.id}"`,r):this._readRDFStarTail(r)}_readRDFStarTail(r){if(r.type!==">>")return this._error(`Expected >> but got ${r.type}`,r);const o=this._factory.quad(this._subject,this._predicate,this._object,this._graph||this.DEFAULTGRAPH);return this._restoreContext("<<",r),this._subject===null?(this._subject=o,this._readPredicate):(this._object=o,this._getContextEndReader())}_getContextEndReader(){const r=this._contextStack;if(!r.length)return this._readPunctuation;switch(r[r.length-1].type){case"blank":return this._readBlankNodeTail;case"list":return this._readListItem;case"formula":return this._readFormulaTail;case"<<":return this._readRDFStarTailOrGraph}}_emit(r,o,l,u){this._callback(null,this._factory.quad(r,o,l,u||this.DEFAULTGRAPH))}_error(r,o){const l=new Error(`${r} on line ${o.line}.`);l.context={token:o,line:o.line,previousToken:this._lexer.previousToken},this._callback(l),this._callback=Tue}_resolveIRI(r){return/^[a-z][a-z0-9+.-]*:/i.test(r)?r:this._resolveRelativeIRI(r)}_resolveRelativeIRI(r){if(!r.length)return this._base;switch(r[0]){case"#":return this._base+r;case"?":return this._base.replace(/(?:\?.*)?$/,r);case"/":return(r[1]==="/"?this._baseScheme:this._baseRoot)+this._removeDotSegments(r);default:return/^[^/:]*:/.test(r)?null:this._removeDotSegments(this._basePath+r)}}_removeDotSegments(r){if(!/(^|\/)\.\.?($|[/#?])/.test(r))return r;const o=r.length;let l="",u=-1,d=-1,h=0,w="/";for(;u=d&&(l=l.substr(0,h)),w!=="/")return`${l}/${r.substr(u+1)}`;h=u+1}}}w=r[++u]}return l+r.substring(h)}parse(r,o,l){let u,d,h;if(o&&(o.onQuad||o.onPrefix||o.onComment)?(u=o.onQuad,d=o.onPrefix,h=o.onComment):(u=o,d=l),this._readCallback=this._readInTopContext,this._sparqlStyle=!1,this._prefixes=Object.create(null),this._prefixes._=this._blankNodePrefix?this._blankNodePrefix.substr(2):`b${XUt++}_`,this._prefixCallback=d||Tue,this._inversePredicate=!1,this._quantified=Object.create(null),!u){const v=[];let y;if(this._callback=(E,A)=>{E?y=E:A&&v.push(A)},this._lexer.tokenize(r).every(E=>this._readCallback=this._readCallback(E)),y)throw y;return v}let w=(v,y)=>{v!==null?(this._callback(v),this._callback=Tue):this._readCallback&&(this._readCallback=this._readCallback(y))};h&&(this._lexer.comments=!0,w=(v,y)=>{v!==null?(this._callback(v),this._callback=Tue):this._readCallback&&(y.type==="comment"?h(y.value):this._readCallback=this._readCallback(y))}),this._callback=u,this._lexer.tokenize(r,w)}}function Tue(){}function xon(n,r){n._factory=r,n.DEFAULTGRAPH=r.defaultGraph(),n.RDF_FIRST=r.namedNode($E.rdf.first),n.RDF_REST=r.namedNode($E.rdf.rest),n.RDF_NIL=r.namedNode($E.rdf.nil),n.N3_FORALL=r.namedNode($E.r.forAll),n.N3_FORSOME=r.namedNode($E.r.forSome),n.ABBREVIATIONS={a:r.namedNode($E.rdf.type),"=":r.namedNode($E.owl.sameAs),">":r.namedNode($E.log.implies)},n.QUANTIFIERS_GRAPH=r.namedNode("urn:n3:quantifiers")}xon(Ron.prototype,uFe);var Con={exports:{}},bMe={exports:{}},Ff={ArrayIsArray(n){return Array.isArray(n)},ArrayPrototypeIncludes(n,r){return n.includes(r)},ArrayPrototypeIndexOf(n,r){return n.indexOf(r)},ArrayPrototypeJoin(n,r){return n.join(r)},ArrayPrototypeMap(n,r){return n.map(r)},ArrayPrototypePop(n,r){return n.pop(r)},ArrayPrototypePush(n,r){return n.push(r)},ArrayPrototypeSlice(n,r,o){return n.slice(r,o)},Error,FunctionPrototypeCall(n,r,...o){return n.call(r,...o)},FunctionPrototypeSymbolHasInstance(n,r){return Function.prototype[Symbol.hasInstance].call(n,r)},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(n,r){return Object.defineProperties(n,r)},ObjectDefineProperty(n,r,o){return Object.defineProperty(n,r,o)},ObjectGetOwnPropertyDescriptor(n,r){return Object.getOwnPropertyDescriptor(n,r)},ObjectKeys(n){return Object.keys(n)},ObjectSetPrototypeOf(n,r){return Object.setPrototypeOf(n,r)},Promise,PromisePrototypeCatch(n,r){return n.catch(r)},PromisePrototypeThen(n,r,o){return n.then(r,o)},PromiseReject(n){return Promise.reject(n)},PromiseResolve(n){return Promise.resolve(n)},ReflectApply:Reflect.apply,RegExpPrototypeTest(n,r){return n.test(r)},SafeSet:Set,String,StringPrototypeSlice(n,r,o){return n.slice(r,o)},StringPrototypeToLowerCase(n){return n.toLowerCase()},StringPrototypeToUpperCase(n){return n.toUpperCase()},StringPrototypeTrim(n){return n.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(n,r,o){return n.set(r,o)},Boolean,Uint8Array},Aon={exports:{}};(function(n){const r=Kr,{kResistStopPropagation:o,SymbolDispose:l}=Ff,u=globalThis.AbortSignal||$o().AbortSignal,d=globalThis.AbortController||$o().AbortController,h=Object.getPrototypeOf(async function(){}).constructor,w=globalThis.Blob||r.Blob,v=typeof w<"u"?function(R){return R instanceof w}:function(R){return!1},y=(C,R)=>{if(C!==void 0&&(C===null||typeof C!="object"||!("aborted"in C)))throw new ERR_INVALID_ARG_TYPE(R,"AbortSignal",C)},E=(C,R)=>{if(typeof C!="function")throw new ERR_INVALID_ARG_TYPE(R,"Function",C)};class A extends Error{constructor(R){if(!Array.isArray(R))throw new TypeError(`Expected input to be an Array, got ${typeof R}`);let O="";for(let M=0;M{C=M,R=L}),resolve:C,reject:R}},promisify(C){return new Promise((R,O)=>{C((M,...L)=>M?O(M):R(...L))})},debuglog(){return function(){}},format(C,...R){return C.replace(/%([sdifj])/g,function(...[O,M]){const L=R.shift();return M==="f"?L.toFixed(6):M==="j"?JSON.stringify(L):M==="s"&&typeof L=="object"?`${L.constructor!==Object?L.constructor.name:""} {}`.trim():L.toString()})},inspect(C){switch(typeof C){case"string":if(C.includes("'"))if(C.includes('"')){if(!C.includes("`")&&!C.includes("${"))return`\`${C}\``}else return`"${C}"`;return`'${C}'`;case"number":return isNaN(C)?"NaN":Object.is(C,-0)?String(C):C;case"bigint":return`${String(C)}n`;case"boolean":case"undefined":return String(C);case"object":return"{}"}},types:{isAsyncFunction(C){return C instanceof h},isArrayBufferView(C){return ArrayBuffer.isView(C)}},isBlob:v,deprecate(C,R){return C},addAbortListener:Ns.addAbortListener||function(R,O){if(R===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",R);y(R,"signal"),E(O,"listener");let M;return R.aborted?queueMicrotask(()=>O()):(R.addEventListener("abort",O,{__proto__:null,once:!0,[o]:!0}),M=()=>{R.removeEventListener("abort",O)}),{__proto__:null,[l](){var L;(L=M)===null||L===void 0||L()}}},AbortSignalAny:u.any||function(R){if(R.length===1)return R[0];const O=new d,M=()=>O.abort();return R.forEach(L=>{y(L,"signals"),L.addEventListener("abort",M,{once:!0})}),O.signal.addEventListener("abort",()=>{R.forEach(L=>L.removeEventListener("abort",M))},{once:!0}),O.signal}},n.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(Aon);var f1=Aon.exports,XUe={};const{format:o1r,inspect:uhe,AggregateError:s1r}=f1,l1r=globalThis.AggregateError||s1r,a1r=Symbol("kIsNodeError"),c1r=["string","function","number","object","Function","Object","boolean","bigint","symbol"],u1r=/^([A-Z][a-z0-9]*)+$/,f1r="__node_internal_",Wbe={};function sP(n,r){if(!n)throw new Wbe.ERR_INTERNAL_ASSERTION(r)}function JUt(n){let r="",o=n.length;const l=n[0]==="-"?1:0;for(;o>=l+4;o-=3)r=`_${n.slice(o-3,o)}${r}`;return`${n.slice(0,o)}${r}`}function d1r(n,r,o){if(typeof r=="function")return sP(r.length<=o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${r.length}).`),r(...o);const l=(r.match(/%[dfijoOs]/g)||[]).length;return sP(l===o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${l}).`),o.length===0?r:o1r(r,...o)}function Qp(n,r,o){o||(o=Error);class l extends o{constructor(...d){super(d1r(n,r,d))}toString(){return`${this.name} [${n}]: ${this.message}`}}Object.defineProperties(l.prototype,{name:{value:o.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${n}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),l.prototype.code=n,l.prototype[a1r]=!0,Wbe[n]=l}function YUt(n){const r=f1r+n.name;return Object.defineProperty(n,"name",{value:r}),n}function h1r(n,r){if(n&&r&&n!==r){if(Array.isArray(r.errors))return r.errors.push(n),r;const o=new l1r([r,n],r.message);return o.code=r.code,o}return n||r}let p1r=class extends Error{constructor(r="The operation was aborted",o=void 0){if(o!==void 0&&typeof o!="object")throw new Wbe.ERR_INVALID_ARG_TYPE("options","Object",o);super(r,o),this.code="ABORT_ERR",this.name="AbortError"}};Qp("ERR_ASSERTION","%s",Error);Qp("ERR_INVALID_ARG_TYPE",(n,r,o)=>{sP(typeof n=="string","'name' must be a string"),Array.isArray(r)||(r=[r]);let l="The ";n.endsWith(" argument")?l+=`${n} `:l+=`"${n}" ${n.includes(".")?"property":"argument"} `,l+="must be ";const u=[],d=[],h=[];for(const v of r)sP(typeof v=="string","All expected entries have to be of type string"),c1r.includes(v)?u.push(v.toLowerCase()):u1r.test(v)?d.push(v):(sP(v!=="object",'The value "object" should be written as "Object"'),h.push(v));if(d.length>0){const v=u.indexOf("object");v!==-1&&(u.splice(u,v,1),d.push("Object"))}if(u.length>0){switch(u.length){case 1:l+=`of type ${u[0]}`;break;case 2:l+=`one of type ${u[0]} or ${u[1]}`;break;default:{const v=u.pop();l+=`one of type ${u.join(", ")}, or ${v}`}}(d.length>0||h.length>0)&&(l+=" or ")}if(d.length>0){switch(d.length){case 1:l+=`an instance of ${d[0]}`;break;case 2:l+=`an instance of ${d[0]} or ${d[1]}`;break;default:{const v=d.pop();l+=`an instance of ${d.join(", ")}, or ${v}`}}h.length>0&&(l+=" or ")}switch(h.length){case 0:break;case 1:h[0].toLowerCase()!==h[0]&&(l+="an "),l+=`${h[0]}`;break;case 2:l+=`one of ${h[0]} or ${h[1]}`;break;default:{const v=h.pop();l+=`one of ${h.join(", ")}, or ${v}`}}if(o==null)l+=`. Received ${o}`;else if(typeof o=="function"&&o.name)l+=`. Received function ${o.name}`;else if(typeof o=="object"){var w;if((w=o.constructor)!==null&&w!==void 0&&w.name)l+=`. Received an instance of ${o.constructor.name}`;else{const v=uhe(o,{depth:-1});l+=`. Received ${v}`}}else{let v=uhe(o,{colors:!1});v.length>25&&(v=`${v.slice(0,25)}...`),l+=`. Received type ${typeof o} (${v})`}return l},TypeError);Qp("ERR_INVALID_ARG_VALUE",(n,r,o="is invalid")=>{let l=uhe(r);return l.length>128&&(l=l.slice(0,128)+"..."),`The ${n.includes(".")?"property":"argument"} '${n}' ${o}. Received ${l}`},TypeError);Qp("ERR_INVALID_RETURN_VALUE",(n,r,o)=>{var l;const u=o!=null&&(l=o.constructor)!==null&&l!==void 0&&l.name?`instance of ${o.constructor.name}`:`type ${typeof o}`;return`Expected ${n} to be returned from the "${r}" function but got ${u}.`},TypeError);Qp("ERR_MISSING_ARGS",(...n)=>{sP(n.length>0,"At least one arg needs to be specified");let r;const o=n.length;switch(n=(Array.isArray(n)?n:[n]).map(l=>`"${l}"`).join(" or "),o){case 1:r+=`The ${n[0]} argument`;break;case 2:r+=`The ${n[0]} and ${n[1]} arguments`;break;default:{const l=n.pop();r+=`The ${n.join(", ")}, and ${l} arguments`}break}return`${r} must be specified`},TypeError);Qp("ERR_OUT_OF_RANGE",(n,r,o)=>{sP(r,'Missing "range" argument');let l;return Number.isInteger(o)&&Math.abs(o)>2**32?l=JUt(String(o)):typeof o=="bigint"?(l=String(o),(o>2n**32n||o<-(2n**32n))&&(l=JUt(l)),l+="n"):l=uhe(o),`The value of "${n}" is out of range. It must be ${r}. Received ${l}`},RangeError);Qp("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);Qp("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);Qp("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);Qp("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);Qp("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);Qp("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Qp("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);Qp("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);Qp("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);Qp("ERR_STREAM_WRITE_AFTER_END","write after end",Error);Qp("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var I0={AbortError:p1r,aggregateTwoErrors:YUt(h1r),hideStackFrames:YUt,codes:Wbe};const{ArrayIsArray:JUe,ArrayPrototypeIncludes:Ton,ArrayPrototypeJoin:$on,ArrayPrototypeMap:b1r,NumberIsInteger:YUe,NumberIsNaN:g1r,NumberMAX_SAFE_INTEGER:w1r,NumberMIN_SAFE_INTEGER:m1r,NumberParseInt:y1r,ObjectPrototypeHasOwnProperty:v1r,RegExpPrototypeExec:Ion,String:_1r,StringPrototypeToUpperCase:S1r,StringPrototypeTrim:E1r}=Ff,{hideStackFrames:gv,codes:{ERR_SOCKET_BAD_PORT:k1r,ERR_INVALID_ARG_TYPE:Xb,ERR_INVALID_ARG_VALUE:_j,ERR_OUT_OF_RANGE:AP,ERR_UNKNOWN_SIGNAL:QUt}}=I0,{normalizeEncoding:R1r}=f1,{isAsyncFunction:x1r,isArrayBufferView:C1r}=f1.types,ZUt={};function A1r(n){return n===(n|0)}function T1r(n){return n===n>>>0}const $1r=/^[0-7]+$/,I1r="must be a 32-bit unsigned integer or an octal string";function P1r(n,r,o){if(typeof n>"u"&&(n=o),typeof n=="string"){if(Ion($1r,n)===null)throw new _j(r,n,I1r);n=y1r(n,8)}return Pon(n,r),n}const O1r=gv((n,r,o=m1r,l=w1r)=>{if(typeof n!="number")throw new Xb(r,"number",n);if(!YUe(n))throw new AP(r,"an integer",n);if(nl)throw new AP(r,`>= ${o} && <= ${l}`,n)}),N1r=gv((n,r,o=-2147483648,l=2147483647)=>{if(typeof n!="number")throw new Xb(r,"number",n);if(!YUe(n))throw new AP(r,"an integer",n);if(nl)throw new AP(r,`>= ${o} && <= ${l}`,n)}),Pon=gv((n,r,o=!1)=>{if(typeof n!="number")throw new Xb(r,"number",n);if(!YUe(n))throw new AP(r,"an integer",n);const l=o?1:0,u=4294967295;if(nu)throw new AP(r,`>= ${l} && <= ${u}`,n)});function QUe(n,r){if(typeof n!="string")throw new Xb(r,"string",n)}function M1r(n,r,o=void 0,l){if(typeof n!="number")throw new Xb(r,"number",n);if(o!=null&&nl||(o!=null||l!=null)&&g1r(n))throw new AP(r,`${o!=null?`>= ${o}`:""}${o!=null&&l!=null?" && ":""}${l!=null?`<= ${l}`:""}`,n)}const D1r=gv((n,r,o)=>{if(!Ton(o,n)){const u="must be one of: "+$on(b1r(o,d=>typeof d=="string"?`'${d}'`:_1r(d)),", ");throw new _j(r,n,u)}});function Oon(n,r){if(typeof n!="boolean")throw new Xb(r,"boolean",n)}function gMe(n,r,o){return n==null||!v1r(n,r)?o:n[r]}const L1r=gv((n,r,o=null)=>{const l=gMe(o,"allowArray",!1),u=gMe(o,"allowFunction",!1);if(!gMe(o,"nullable",!1)&&n===null||!l&&JUe(n)||typeof n!="object"&&(!u||typeof n!="function"))throw new Xb(r,"Object",n)}),j1r=gv((n,r)=>{if(n!=null&&typeof n!="object"&&typeof n!="function")throw new Xb(r,"a dictionary",n)}),Hbe=gv((n,r,o=0)=>{if(!JUe(n))throw new Xb(r,"Array",n);if(n.length{if(!C1r(n))throw new Xb(r,["Buffer","TypedArray","DataView"],n)});function G1r(n,r){const o=R1r(r),l=n.length;if(o==="hex"&&l%2!==0)throw new _j("encoding",r,`is invalid for data of length ${l}`)}function V1r(n,r="Port",o=!0){if(typeof n!="number"&&typeof n!="string"||typeof n=="string"&&E1r(n).length===0||+n!==+n>>>0||n>65535||n===0&&!o)throw new k1r(r,n,o);return n|0}const Non=gv((n,r)=>{if(n!==void 0&&(n===null||typeof n!="object"||!("aborted"in n)))throw new Xb(r,"AbortSignal",n)}),z1r=gv((n,r)=>{if(typeof n!="function")throw new Xb(r,"Function",n)}),K1r=gv((n,r)=>{if(typeof n!="function"||x1r(n))throw new Xb(r,"Function",n)}),q1r=gv((n,r)=>{if(n!==void 0)throw new Xb(r,"undefined",n)});function X1r(n,r,o){if(!Ton(o,n))throw new Xb(r,`('${$on(o,"|")}')`,n)}const J1r=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function eGt(n,r){if(typeof n>"u"||!Ion(J1r,n))throw new _j(r,n,'must be an array or string of format "; rel=preload; as=style"')}function Y1r(n){if(typeof n=="string")return eGt(n,"hints"),n;if(JUe(n)){const r=n.length;let o="";if(r===0)return o;for(let l=0;l; rel=preload; as=style"')}var TJ={isInt32:A1r,isUint32:T1r,parseFileMode:P1r,validateArray:Hbe,validateStringArray:F1r,validateBooleanArray:B1r,validateAbortSignalArray:W1r,validateBoolean:Oon,validateBuffer:U1r,validateDictionary:j1r,validateEncoding:G1r,validateFunction:z1r,validateInt32:N1r,validateInteger:O1r,validateNumber:M1r,validateObject:L1r,validateOneOf:D1r,validatePlainFunction:K1r,validatePort:V1r,validateSignalName:H1r,validateString:QUe,validateUint32:Pon,validateUndefined:q1r,validateUnion:X1r,validateAbortSignal:Non,validateLinkHeaderValue:Y1r},ZUe={exports:{}};const{SymbolAsyncIterator:tGt,SymbolIterator:nGt,SymbolFor:oO}=Ff,Mon=oO("nodejs.stream.destroyed"),Don=oO("nodejs.stream.errored"),dFe=oO("nodejs.stream.readable"),hFe=oO("nodejs.stream.writable"),Lon=oO("nodejs.stream.disturbed"),Q1r=oO("nodejs.webstream.isClosedPromise"),Z1r=oO("nodejs.webstream.controllerErrorFunction");function Ube(n,r=!1){var o;return!!(n&&typeof n.pipe=="function"&&typeof n.on=="function"&&(!r||typeof n.pause=="function"&&typeof n.resume=="function")&&(!n._writableState||((o=n._readableState)===null||o===void 0?void 0:o.readable)!==!1)&&(!n._writableState||n._readableState))}function Gbe(n){var r;return!!(n&&typeof n.write=="function"&&typeof n.on=="function"&&(!n._readableState||((r=n._writableState)===null||r===void 0?void 0:r.writable)!==!1))}function e0r(n){return!!(n&&typeof n.pipe=="function"&&n._readableState&&typeof n.on=="function"&&typeof n.write=="function")}function vk(n){return n&&(n._readableState||n._writableState||typeof n.write=="function"&&typeof n.on=="function"||typeof n.pipe=="function"&&typeof n.on=="function")}function jon(n){return!!(n&&!vk(n)&&typeof n.pipeThrough=="function"&&typeof n.getReader=="function"&&typeof n.cancel=="function")}function Fon(n){return!!(n&&!vk(n)&&typeof n.getWriter=="function"&&typeof n.abort=="function")}function Bon(n){return!!(n&&!vk(n)&&typeof n.readable=="object"&&typeof n.writable=="object")}function t0r(n){return jon(n)||Fon(n)||Bon(n)}function n0r(n,r){return n==null?!1:r===!0?typeof n[tGt]=="function":r===!1?typeof n[nGt]=="function":typeof n[tGt]=="function"||typeof n[nGt]=="function"}function Vbe(n){if(!vk(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!!(n.destroyed||n[Mon]||l!=null&&l.destroyed)}function Won(n){if(!Gbe(n))return null;if(n.writableEnded===!0)return!0;const r=n._writableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function r0r(n,r){if(!Gbe(n))return null;if(n.writableFinished===!0)return!0;const o=n._writableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.finished)!="boolean"?null:!!(o.finished||r===!1&&o.ended===!0&&o.length===0)}function i0r(n){if(!Ube(n))return null;if(n.readableEnded===!0)return!0;const r=n._readableState;return!r||r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function Hon(n,r){if(!Ube(n))return null;const o=n._readableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.endEmitted)!="boolean"?null:!!(o.endEmitted||r===!1&&o.ended===!0&&o.length===0)}function Uon(n){return n&&n[dFe]!=null?n[dFe]:typeof(n==null?void 0:n.readable)!="boolean"?null:Vbe(n)?!1:Ube(n)&&n.readable&&!Hon(n)}function Gon(n){return n&&n[hFe]!=null?n[hFe]:typeof(n==null?void 0:n.writable)!="boolean"?null:Vbe(n)?!1:Gbe(n)&&n.writable&&!Won(n)}function o0r(n,r){return vk(n)?Vbe(n)?!0:!((r==null?void 0:r.readable)!==!1&&Uon(n)||(r==null?void 0:r.writable)!==!1&&Gon(n)):null}function s0r(n){var r,o;return vk(n)?n.writableErrored?n.writableErrored:(r=(o=n._writableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function l0r(n){var r,o;return vk(n)?n.readableErrored?n.readableErrored:(r=(o=n._readableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function a0r(n){if(!vk(n))return null;if(typeof n.closed=="boolean")return n.closed;const r=n._writableState,o=n._readableState;return typeof(r==null?void 0:r.closed)=="boolean"||typeof(o==null?void 0:o.closed)=="boolean"?(r==null?void 0:r.closed)||(o==null?void 0:o.closed):typeof n._closed=="boolean"&&Von(n)?n._closed:null}function Von(n){return typeof n._closed=="boolean"&&typeof n._defaultKeepAlive=="boolean"&&typeof n._removedConnection=="boolean"&&typeof n._removedContLen=="boolean"}function zon(n){return typeof n._sent100=="boolean"&&Von(n)}function c0r(n){var r;return typeof n._consuming=="boolean"&&typeof n._dumped=="boolean"&&((r=n.req)===null||r===void 0?void 0:r.upgradeOrConnect)===void 0}function u0r(n){if(!vk(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!l&&zon(n)||!!(l&&l.autoDestroy&&l.emitClose&&l.closed===!1)}function f0r(n){var r;return!!(n&&((r=n[Lon])!==null&&r!==void 0?r:n.readableDidRead||n.readableAborted))}function d0r(n){var r,o,l,u,d,h,w,v,y,E;return!!(n&&((r=(o=(l=(u=(d=(h=n[Don])!==null&&h!==void 0?h:n.readableErrored)!==null&&d!==void 0?d:n.writableErrored)!==null&&u!==void 0?u:(w=n._readableState)===null||w===void 0?void 0:w.errorEmitted)!==null&&l!==void 0?l:(v=n._writableState)===null||v===void 0?void 0:v.errorEmitted)!==null&&o!==void 0?o:(y=n._readableState)===null||y===void 0?void 0:y.errored)!==null&&r!==void 0?r:!((E=n._writableState)===null||E===void 0)&&E.errored))}var Ax={isDestroyed:Vbe,kIsDestroyed:Mon,isDisturbed:f0r,kIsDisturbed:Lon,isErrored:d0r,kIsErrored:Don,isReadable:Uon,kIsReadable:dFe,kIsClosedPromise:Q1r,kControllerErrorFunction:Z1r,kIsWritable:hFe,isClosed:a0r,isDuplexNodeStream:e0r,isFinished:o0r,isIterable:n0r,isReadableNodeStream:Ube,isReadableStream:jon,isReadableEnded:i0r,isReadableFinished:Hon,isReadableErrored:l0r,isNodeStream:vk,isWebStream:t0r,isWritable:Gon,isWritableNodeStream:Gbe,isWritableStream:Fon,isWritableEnded:Won,isWritableFinished:r0r,isWritableErrored:s0r,isServerRequest:c0r,isServerResponse:zon,willEmitClose:u0r,isTransformStream:Bon};const X4=ui,{AbortError:Kon,codes:h0r}=I0,{ERR_INVALID_ARG_TYPE:p0r,ERR_STREAM_PREMATURE_CLOSE:rGt}=h0r,{kEmptyObject:pFe,once:bFe}=f1,{validateAbortSignal:b0r,validateFunction:g0r,validateObject:w0r,validateBoolean:m0r}=TJ,{Promise:y0r,PromisePrototypeThen:v0r,SymbolDispose:qon}=Ff,{isClosed:_0r,isReadable:iGt,isReadableNodeStream:wMe,isReadableStream:S0r,isReadableFinished:oGt,isReadableErrored:sGt,isWritable:lGt,isWritableNodeStream:aGt,isWritableStream:E0r,isWritableFinished:cGt,isWritableErrored:uGt,isNodeStream:k0r,willEmitClose:R0r,kIsClosedPromise:x0r}=Ax;let aL;function C0r(n){return n.setHeader&&typeof n.abort=="function"}const gFe=()=>{};function Xon(n,r,o){var l,u;if(arguments.length===2?(o=r,r=pFe):r==null?r=pFe:w0r(r,"options"),g0r(o,"callback"),b0r(r.signal,"options.signal"),o=bFe(o),S0r(n)||E0r(n))return A0r(n,r,o);if(!k0r(n))throw new p0r("stream",["ReadableStream","WritableStream","Stream"],n);const d=(l=r.readable)!==null&&l!==void 0?l:wMe(n),h=(u=r.writable)!==null&&u!==void 0?u:aGt(n),w=n._writableState,v=n._readableState,y=()=>{n.writable||C()};let E=R0r(n)&&wMe(n)===d&&aGt(n)===h,A=cGt(n,!1);const C=()=>{A=!0,n.destroyed&&(E=!1),!(E&&(!n.readable||d))&&(!d||R)&&o.call(n)};let R=oGt(n,!1);const O=()=>{R=!0,n.destroyed&&(E=!1),!(E&&(!n.writable||h))&&(!h||A)&&o.call(n)},M=te=>{o.call(n,te)};let L=_0r(n);const H=()=>{L=!0;const te=uGt(n)||sGt(n);if(te&&typeof te!="boolean")return o.call(n,te);if(d&&!R&&wMe(n,!0)&&!oGt(n,!1))return o.call(n,new rGt);if(h&&!A&&!cGt(n,!1))return o.call(n,new rGt);o.call(n)},G=()=>{L=!0;const te=uGt(n)||sGt(n);if(te&&typeof te!="boolean")return o.call(n,te);o.call(n)},j=()=>{n.req.on("finish",C)};C0r(n)?(n.on("complete",C),E||n.on("abort",H),n.req?j():n.on("request",j)):h&&!w&&(n.on("end",y),n.on("close",y)),!E&&typeof n.aborted=="boolean"&&n.on("aborted",H),n.on("end",O),n.on("finish",C),r.error!==!1&&n.on("error",M),n.on("close",H),L?X4.nextTick(H):w!=null&&w.errorEmitted||v!=null&&v.errorEmitted?E||X4.nextTick(G):(!d&&(!E||iGt(n))&&(A||lGt(n)===!1)||!h&&(!E||lGt(n))&&(R||iGt(n)===!1)||v&&n.req&&n.aborted)&&X4.nextTick(G);const Q=()=>{o=gFe,n.removeListener("aborted",H),n.removeListener("complete",C),n.removeListener("abort",H),n.removeListener("request",j),n.req&&n.req.removeListener("finish",C),n.removeListener("end",y),n.removeListener("close",y),n.removeListener("finish",C),n.removeListener("end",O),n.removeListener("error",M),n.removeListener("close",H)};if(r.signal&&!L){const te=()=>{const pe=o;Q(),pe.call(n,new Kon(void 0,{cause:r.signal.reason}))};if(r.signal.aborted)X4.nextTick(te);else{aL=aL||f1.addAbortListener;const pe=aL(r.signal,te),De=o;o=bFe((...Re)=>{pe[qon](),De.apply(n,Re)})}}return Q}function A0r(n,r,o){let l=!1,u=gFe;if(r.signal)if(u=()=>{l=!0,o.call(n,new Kon(void 0,{cause:r.signal.reason}))},r.signal.aborted)X4.nextTick(u);else{aL=aL||f1.addAbortListener;const h=aL(r.signal,u),w=o;o=bFe((...v)=>{h[qon](),w.apply(n,v)})}const d=(...h)=>{l||X4.nextTick(()=>o.apply(n,h))};return v0r(n[x0r].promise,d,d),gFe}function T0r(n,r){var o;let l=!1;return r===null&&(r=pFe),(o=r)!==null&&o!==void 0&&o.cleanup&&(m0r(r.cleanup,"cleanup"),l=r.cleanup),new y0r((u,d)=>{const h=Xon(n,r,w=>{l&&h(),w?d(w):u()})})}ZUe.exports=Xon;ZUe.exports.finished=T0r;var WT=ZUe.exports;const VE=ui,{aggregateTwoErrors:$0r,codes:{ERR_MULTIPLE_CALLBACK:I0r},AbortError:P0r}=I0,{Symbol:Jon}=Ff,{kIsDestroyed:O0r,isDestroyed:N0r,isFinished:M0r,isServerRequest:D0r}=Ax,Yon=Jon("kDestroy"),wFe=Jon("kConstruct");function Qon(n,r,o){n&&(n.stack,r&&!r.errored&&(r.errored=n),o&&!o.errored&&(o.errored=n))}function L0r(n,r){const o=this._readableState,l=this._writableState,u=l||o;return l!=null&&l.destroyed||o!=null&&o.destroyed?(typeof r=="function"&&r(),this):(Qon(n,l,o),l&&(l.destroyed=!0),o&&(o.destroyed=!0),u.constructed?fGt(this,n,r):this.once(Yon,function(d){fGt(this,$0r(d,n),r)}),this)}function fGt(n,r,o){let l=!1;function u(d){if(l)return;l=!0;const h=n._readableState,w=n._writableState;Qon(d,w,h),w&&(w.closed=!0),h&&(h.closed=!0),typeof o=="function"&&o(d),d?VE.nextTick(j0r,n,d):VE.nextTick(Zon,n)}try{n._destroy(r||null,u)}catch(d){u(d)}}function j0r(n,r){mFe(n,r),Zon(n)}function Zon(n){const r=n._readableState,o=n._writableState;o&&(o.closeEmitted=!0),r&&(r.closeEmitted=!0),(o!=null&&o.emitClose||r!=null&&r.emitClose)&&n.emit("close")}function mFe(n,r){const o=n._readableState,l=n._writableState;l!=null&&l.errorEmitted||o!=null&&o.errorEmitted||(l&&(l.errorEmitted=!0),o&&(o.errorEmitted=!0),n.emit("error",r))}function F0r(){const n=this._readableState,r=this._writableState;n&&(n.constructed=!0,n.closed=!1,n.closeEmitted=!1,n.destroyed=!1,n.errored=null,n.errorEmitted=!1,n.reading=!1,n.ended=n.readable===!1,n.endEmitted=n.readable===!1),r&&(r.constructed=!0,r.destroyed=!1,r.closed=!1,r.closeEmitted=!1,r.errored=null,r.errorEmitted=!1,r.finalCalled=!1,r.prefinished=!1,r.ended=r.writable===!1,r.ending=r.writable===!1,r.finished=r.writable===!1)}function yFe(n,r,o){const l=n._readableState,u=n._writableState;if(u!=null&&u.destroyed||l!=null&&l.destroyed)return this;l!=null&&l.autoDestroy||u!=null&&u.autoDestroy?n.destroy(r):r&&(r.stack,u&&!u.errored&&(u.errored=r),l&&!l.errored&&(l.errored=r),o?VE.nextTick(mFe,n,r):mFe(n,r))}function B0r(n,r){if(typeof n._construct!="function")return;const o=n._readableState,l=n._writableState;o&&(o.constructed=!1),l&&(l.constructed=!1),n.once(wFe,r),!(n.listenerCount(wFe)>1)&&VE.nextTick(W0r,n)}function W0r(n){let r=!1;function o(l){if(r){yFe(n,l??new I0r);return}r=!0;const u=n._readableState,d=n._writableState,h=d||u;u&&(u.constructed=!0),d&&(d.constructed=!0),h.destroyed?n.emit(Yon,l):l?yFe(n,l,!0):VE.nextTick(H0r,n)}try{n._construct(l=>{VE.nextTick(o,l)})}catch(l){VE.nextTick(o,l)}}function H0r(n){n.emit(wFe)}function dGt(n){return(n==null?void 0:n.setHeader)&&typeof n.abort=="function"}function esn(n){n.emit("close")}function U0r(n,r){n.emit("error",r),VE.nextTick(esn,n)}function G0r(n,r){!n||N0r(n)||(!r&&!M0r(n)&&(r=new P0r),D0r(n)?(n.socket=null,n.destroy(r)):dGt(n)?n.abort():dGt(n.req)?n.req.abort():typeof n.destroy=="function"?n.destroy(r):typeof n.close=="function"?n.close():r?VE.nextTick(U0r,n,r):VE.nextTick(esn,n),n.destroyed||(n[O0r]=!0))}var Sj={construct:B0r,destroyer:G0r,destroy:L0r,undestroy:F0r,errorOrDestroy:yFe};const{ArrayIsArray:V0r,ObjectSetPrototypeOf:tsn}=Ff,{EventEmitter:zbe}=Ns;function Kbe(n){zbe.call(this,n)}tsn(Kbe.prototype,zbe.prototype);tsn(Kbe,zbe);Kbe.prototype.pipe=function(n,r){const o=this;function l(E){n.writable&&n.write(E)===!1&&o.pause&&o.pause()}o.on("data",l);function u(){o.readable&&o.resume&&o.resume()}n.on("drain",u),!n._isStdio&&(!r||r.end!==!1)&&(o.on("end",h),o.on("close",w));let d=!1;function h(){d||(d=!0,n.end())}function w(){d||(d=!0,typeof n.destroy=="function"&&n.destroy())}function v(E){y(),zbe.listenerCount(this,"error")===0&&this.emit("error",E)}vFe(o,"error",v),vFe(n,"error",v);function y(){o.removeListener("data",l),n.removeListener("drain",u),o.removeListener("end",h),o.removeListener("close",w),o.removeListener("error",v),n.removeListener("error",v),o.removeListener("end",y),o.removeListener("close",y),n.removeListener("close",y)}return o.on("end",y),o.on("close",y),n.on("close",y),n.emit("pipe",o),n};function vFe(n,r,o){if(typeof n.prependListener=="function")return n.prependListener(r,o);!n._events||!n._events[r]?n.on(r,o):V0r(n._events[r])?n._events[r].unshift(o):n._events[r]=[o,n._events[r]]}var eGe={Stream:Kbe,prependListener:vFe},nsn={exports:{}};(function(n){const{SymbolDispose:r}=Ff,{AbortError:o,codes:l}=I0,{isNodeStream:u,isWebStream:d,kControllerErrorFunction:h}=Ax,w=WT,{ERR_INVALID_ARG_TYPE:v}=l;let y;const E=(A,C)=>{if(typeof A!="object"||!("aborted"in A))throw new v(C,"AbortSignal",A)};n.exports.addAbortSignal=function(C,R){if(E(C,"signal"),!u(R)&&!d(R))throw new v("stream",["ReadableStream","WritableStream","Stream"],R);return n.exports.addAbortSignalNoValidate(C,R)},n.exports.addAbortSignalNoValidate=function(A,C){if(typeof A!="object"||!("aborted"in A))return C;const R=u(C)?()=>{C.destroy(new o(void 0,{cause:A.reason}))}:()=>{C[h](new o(void 0,{cause:A.reason}))};if(A.aborted)R();else{y=y||f1.addAbortListener;const O=y(A,R);w(C,O[r])}return C}})(nsn);var qbe=nsn.exports;const{StringPrototypeSlice:hGt,SymbolIterator:z0r,TypedArrayPrototypeSet:$ue,Uint8Array:K0r}=Ff,{Buffer:mMe}=Kr,{inspect:q0r}=f1;var X0r=class{constructor(){this.head=null,this.tail=null,this.length=0}push(r){const o={data:r,next:null};this.length>0?this.tail.next=o:this.head=o,this.tail=o,++this.length}unshift(r){const o={data:r,next:this.head};this.length===0&&(this.tail=o),this.head=o,++this.length}shift(){if(this.length===0)return;const r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}clear(){this.head=this.tail=null,this.length=0}join(r){if(this.length===0)return"";let o=this.head,l=""+o.data;for(;(o=o.next)!==null;)l+=r+o.data;return l}concat(r){if(this.length===0)return mMe.alloc(0);const o=mMe.allocUnsafe(r>>>0);let l=this.head,u=0;for(;l;)$ue(o,l.data,u),u+=l.data.length,l=l.next;return o}consume(r,o){const l=this.head.data;if(rd.length)o+=d,r-=d.length;else{r===d.length?(o+=d,++u,l.next?this.head=l.next:this.head=this.tail=null):(o+=hGt(d,0,r),this.head=l,l.data=hGt(d,r));break}++u}while((l=l.next)!==null);return this.length-=u,o}_getBuffer(r){const o=mMe.allocUnsafe(r),l=r;let u=this.head,d=0;do{const h=u.data;if(r>h.length)$ue(o,h,l-r),r-=h.length;else{r===h.length?($ue(o,h,l-r),++d,u.next?this.head=u.next:this.head=this.tail=null):($ue(o,new K0r(h.buffer,h.byteOffset,r),l-r),this.head=u,u.data=h.slice(r));break}++d}while((u=u.next)!==null);return this.length-=d,o}[Symbol.for("nodejs.util.inspect.custom")](r,o){return q0r(this,{...o,depth:0,customInspect:!1})}};const{MathFloor:J0r,NumberIsInteger:Y0r}=Ff,{validateInteger:Q0r}=TJ,{ERR_INVALID_ARG_VALUE:Z0r}=I0.codes;let rsn=16*1024,isn=16;function ewr(n,r,o){return n.highWaterMark!=null?n.highWaterMark:r?n[o]:null}function osn(n){return n?isn:rsn}function twr(n,r){Q0r(r,"value",0),n?isn=r:rsn=r}function nwr(n,r,o,l){const u=ewr(r,l,o);if(u!=null){if(!Y0r(u)||u<0){const d=l?`options.${o}`:"options.highWaterMark";throw new Z0r(d,u)}return J0r(u)}return osn(n.objectMode)}var Xbe={getHighWaterMark:nwr,getDefaultHighWaterMark:osn,setDefaultHighWaterMark:twr};const pGt=ui,{PromisePrototypeThen:rwr,SymbolAsyncIterator:bGt,SymbolIterator:gGt}=Ff,{Buffer:iwr}=Kr,{ERR_INVALID_ARG_TYPE:owr,ERR_STREAM_NULL_VALUES:swr}=I0.codes;function lwr(n,r,o){let l;if(typeof r=="string"||r instanceof iwr)return new n({objectMode:!0,...o,read(){this.push(r),this.push(null)}});let u;if(r&&r[bGt])u=!0,l=r[bGt]();else if(r&&r[gGt])u=!1,l=r[gGt]();else throw new owr("iterable",["Iterable"],r);const d=new n({objectMode:!0,highWaterMark:1,...o});let h=!1;d._read=function(){h||(h=!0,v())},d._destroy=function(y,E){rwr(w(y),()=>pGt.nextTick(E,y),A=>pGt.nextTick(E,A||y))};async function w(y){const E=y!=null,A=typeof l.throw=="function";if(E&&A){const{value:C,done:R}=await l.throw(y);if(await C,R)return}if(typeof l.return=="function"){const{value:C}=await l.return();await C}}async function v(){for(;;){try{const{value:y,done:E}=u?await l.next():l.next();if(E)d.push(null);else{const A=y&&typeof y.then=="function"?await y:y;if(A===null)throw h=!1,new swr;if(d.push(A))continue;h=!1}}catch(y){d.destroy(y)}break}}return d}var ssn=lwr,yMe,wGt;function Jbe(){if(wGt)return yMe;wGt=1;const n=ui,{ArrayPrototypeIndexOf:r,NumberIsInteger:o,NumberIsNaN:l,NumberParseInt:u,ObjectDefineProperties:d,ObjectKeys:h,ObjectSetPrototypeOf:w,Promise:v,SafeSet:y,SymbolAsyncDispose:E,SymbolAsyncIterator:A,Symbol:C}=Ff;yMe=he,he.ReadableState=_t;const{EventEmitter:R}=Ns,{Stream:O,prependListener:M}=eGe,{Buffer:L}=Kr,{addAbortSignal:H}=qbe,G=WT;let j=f1.debuglog("stream",S=>{j=S});const Q=X0r,te=Sj,{getHighWaterMark:pe,getDefaultHighWaterMark:De}=Xbe,{aggregateTwoErrors:Re,codes:{ERR_INVALID_ARG_TYPE:le,ERR_METHOD_NOT_IMPLEMENTED:xe,ERR_OUT_OF_RANGE:be,ERR_STREAM_PUSH_AFTER_EOF:ae,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:F},AbortError:me}=I0,{validateObject:ye}=TJ,we=C("kPaused"),{StringDecoder:Be}=rm,He=ssn;w(he.prototype,O.prototype),w(he,O);const Ue=()=>{},{errorOrDestroy:Ge}=te,Le=1,ft=2,re=4,Te=8,dt=16,at=32,Qe=64,yt=128,Lt=256,nn=512,Pe=1024,Ne=2048,T=4096,$=8192,B=16384,K=32768,q=65536,ke=1<<17,Ee=1<<18;function Ie(S){return{enumerable:!1,get(){return(this.state&S)!==0},set(x){x?this.state|=S:this.state&=~S}}}d(_t.prototype,{objectMode:Ie(Le),ended:Ie(ft),endEmitted:Ie(re),reading:Ie(Te),constructed:Ie(dt),sync:Ie(at),needReadable:Ie(Qe),emittedReadable:Ie(yt),readableListening:Ie(Lt),resumeScheduled:Ie(nn),errorEmitted:Ie(Pe),emitClose:Ie(Ne),autoDestroy:Ie(T),destroyed:Ie($),closed:Ie(B),closeEmitted:Ie(K),multiAwaitDrain:Ie(q),readingMore:Ie(ke),dataEmitted:Ie(Ee)});function _t(S,x,Y){typeof Y!="boolean"&&(Y=x instanceof ox()),this.state=Ne|T|dt|at,S&&S.objectMode&&(this.state|=Le),Y&&S&&S.readableObjectMode&&(this.state|=Le),this.highWaterMark=S?pe(this,S,"readableHighWaterMark",Y):De(!1),this.buffer=new Q,this.length=0,this.pipes=[],this.flowing=null,this[we]=null,S&&S.emitClose===!1&&(this.state&=~Ne),S&&S.autoDestroy===!1&&(this.state&=~T),this.errored=null,this.defaultEncoding=S&&S.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,S&&S.encoding&&(this.decoder=new Be(S.encoding),this.encoding=S.encoding)}function he(S){if(!(this instanceof he))return new he(S);const x=this instanceof ox();this._readableState=new _t(S,this,x),S&&(typeof S.read=="function"&&(this._read=S.read),typeof S.destroy=="function"&&(this._destroy=S.destroy),typeof S.construct=="function"&&(this._construct=S.construct),S.signal&&!x&&H(S.signal,this)),O.call(this,S),te.construct(this,()=>{this._readableState.needReadable&&pt(this,this._readableState)})}he.prototype.destroy=te.destroy,he.prototype._undestroy=te.undestroy,he.prototype._destroy=function(S,x){x(S)},he.prototype[R.captureRejectionSymbol]=function(S){this.destroy(S)},he.prototype[E]=function(){let S;return this.destroyed||(S=this.readableEnded?null:new me,this.destroy(S)),new v((x,Y)=>G(this,J=>J&&J!==S?Y(J):x(null)))},he.prototype.push=function(S,x){return Xt(this,S,x,!1)},he.prototype.unshift=function(S,x){return Xt(this,S,x,!0)};function Xt(S,x,Y,J){j("readableAddChunk",x);const ue=S._readableState;let Yt;if(ue.state&Le||(typeof x=="string"?(Y=Y||ue.defaultEncoding,ue.encoding!==Y&&(J&&ue.encoding?x=L.from(x,Y).toString(ue.encoding):(x=L.from(x,Y),Y=""))):x instanceof L?Y="":O._isUint8Array(x)?(x=O._uint8ArrayToBuffer(x),Y=""):x!=null&&(Yt=new le("chunk",["string","Buffer","Uint8Array"],x))),Yt)Ge(S,Yt);else if(x===null)ue.state&=~Te,ce(S,ue);else if(ue.state&Le||x&&x.length>0)if(J)if(ue.state&re)Ge(S,new F);else{if(ue.destroyed||ue.errored)return!1;Zt(S,ue,x,!0)}else if(ue.ended)Ge(S,new ae);else{if(ue.destroyed||ue.errored)return!1;ue.state&=~Te,ue.decoder&&!Y?(x=ue.decoder.write(x),ue.objectMode||x.length!==0?Zt(S,ue,x,!1):pt(S,ue)):Zt(S,ue,x,!1)}else J||(ue.state&=~Te,pt(S,ue));return!ue.ended&&(ue.length0?(x.state&q?x.awaitDrainWriters.clear():x.awaitDrainWriters=null,x.dataEmitted=!0,S.emit("data",Y)):(x.length+=x.objectMode?1:Y.length,J?x.buffer.unshift(Y):x.buffer.push(Y),x.state&Qe&&de(S)),pt(S,x)}he.prototype.isPaused=function(){const S=this._readableState;return S[we]===!0||S.flowing===!1},he.prototype.setEncoding=function(S){const x=new Be(S);this._readableState.decoder=x,this._readableState.encoding=this._readableState.decoder.encoding;const Y=this._readableState.buffer;let J="";for(const ue of Y)J+=x.write(ue);return Y.clear(),J!==""&&Y.push(J),this._readableState.length=J.length,this};const $n=1073741824;function Gn(S){if(S>$n)throw new be("size","<= 1GiB",S);return S--,S|=S>>>1,S|=S>>>2,S|=S>>>4,S|=S>>>8,S|=S>>>16,S++,S}function $e(S,x){return S<=0||x.length===0&&x.ended?0:x.state&Le?1:l(S)?x.flowing&&x.length?x.buffer.first().length:x.length:S<=x.length?S:x.ended?x.length:0}he.prototype.read=function(S){j("read",S),S===void 0?S=NaN:o(S)||(S=u(S,10));const x=this._readableState,Y=S;if(S>x.highWaterMark&&(x.highWaterMark=Gn(S)),S!==0&&(x.state&=~yt),S===0&&x.needReadable&&((x.highWaterMark!==0?x.length>=x.highWaterMark:x.length>0)||x.ended))return j("read: emitReadable",x.length,x.ended),x.length===0&&x.ended?co(this):de(this),null;if(S=$e(S,x),S===0&&x.ended)return x.length===0&&co(this),null;let J=(x.state&Qe)!==0;if(j("need readable",J),(x.length===0||x.length-S0?ue=Al(S,x):ue=null,ue===null?(x.needReadable=x.length<=x.highWaterMark,S=0):(x.length-=S,x.multiAwaitDrain?x.awaitDrainWriters.clear():x.awaitDrainWriters=null),x.length===0&&(x.ended||(x.needReadable=!0),Y!==S&&x.ended&&co(this)),ue!==null&&!x.errorEmitted&&!x.closeEmitted&&(x.dataEmitted=!0,this.emit("data",ue)),ue};function ce(S,x){if(j("onEofChunk"),!x.ended){if(x.decoder){const Y=x.decoder.end();Y&&Y.length&&(x.buffer.push(Y),x.length+=x.objectMode?1:Y.length)}x.ended=!0,x.sync?de(S):(x.needReadable=!1,x.emittedReadable=!0,et(S))}}function de(S){const x=S._readableState;j("emitReadable",x.needReadable,x.emittedReadable),x.needReadable=!1,x.emittedReadable||(j("emitReadable",x.flowing),x.emittedReadable=!0,n.nextTick(et,S))}function et(S){const x=S._readableState;j("emitReadable_",x.destroyed,x.length,x.ended),!x.destroyed&&!x.errored&&(x.length||x.ended)&&(S.emit("readable"),x.emittedReadable=!1),x.needReadable=!x.flowing&&!x.ended&&x.length<=x.highWaterMark,xi(S)}function pt(S,x){!x.readingMore&&x.constructed&&(x.readingMore=!0,n.nextTick(Jt,S,x))}function Jt(S,x){for(;!x.reading&&!x.ended&&(x.length1&&J.pipes.includes(S)&&(j("false write response, pause",J.awaitDrainWriters.size),J.awaitDrainWriters.add(S)),Y.pause()),Fr||(Fr=Qt(Y,S),S.on("drain",Fr))}Y.on("data",ml);function ml(jr){j("ondata");const lr=S.write(jr);j("dest.write",lr),lr===!1&&Rs()}function gs(jr){if(j("onerror",jr),wi(),S.removeListener("error",gs),S.listenerCount("error")===0){const lr=S._writableState||S._readableState;lr&&!lr.errorEmitted?Ge(S,jr):S.emit("error",jr)}}M(S,"error",gs);function as(){S.removeListener("finish",ws),wi()}S.once("close",as);function ws(){j("onfinish"),S.removeListener("close",as),wi()}S.once("finish",ws);function wi(){j("unpipe"),Y.unpipe(S)}return S.emit("pipe",Y),S.writableNeedDrain===!0?Rs():J.flowing||(j("pipe resume"),Y.resume()),S};function Qt(S,x){return function(){const J=S._readableState;J.awaitDrainWriters===x?(j("pipeOnDrain",1),J.awaitDrainWriters=null):J.multiAwaitDrain&&(j("pipeOnDrain",J.awaitDrainWriters.size),J.awaitDrainWriters.delete(x)),(!J.awaitDrainWriters||J.awaitDrainWriters.size===0)&&S.listenerCount("data")&&S.resume()}}he.prototype.unpipe=function(S){const x=this._readableState,Y={hasUnpiped:!1};if(x.pipes.length===0)return this;if(!S){const ue=x.pipes;x.pipes=[],this.pause();for(let Yt=0;Yt0,J.flowing!==!1&&this.resume()):S==="readable"&&!J.endEmitted&&!J.readableListening&&(J.readableListening=J.needReadable=!0,J.flowing=!1,J.emittedReadable=!1,j("on readable",J.length,J.reading),J.length?de(this):J.reading||n.nextTick(ao,this)),Y},he.prototype.addListener=he.prototype.on,he.prototype.removeListener=function(S,x){const Y=O.prototype.removeListener.call(this,S,x);return S==="readable"&&n.nextTick(qr,this),Y},he.prototype.off=he.prototype.removeListener,he.prototype.removeAllListeners=function(S){const x=O.prototype.removeAllListeners.apply(this,arguments);return(S==="readable"||S===void 0)&&n.nextTick(qr,this),x};function qr(S){const x=S._readableState;x.readableListening=S.listenerCount("readable")>0,x.resumeScheduled&&x[we]===!1?x.flowing=!0:S.listenerCount("data")>0?S.resume():x.readableListening||(x.flowing=null)}function ao(S){j("readable nexttick read 0"),S.read(0)}he.prototype.resume=function(){const S=this._readableState;return S.flowing||(j("resume"),S.flowing=!S.readableListening,ki(this,S)),S[we]=!1,this};function ki(S,x){x.resumeScheduled||(x.resumeScheduled=!0,n.nextTick(Ri,S,x))}function Ri(S,x){j("resume",x.reading),x.reading||S.read(0),x.resumeScheduled=!1,S.emit("resume"),xi(S),x.flowing&&!x.reading&&S.read(0)}he.prototype.pause=function(){return j("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(j("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[we]=!0,this};function xi(S){const x=S._readableState;for(j("flow",x.flowing);x.flowing&&S.read()!==null;);}he.prototype.wrap=function(S){let x=!1;S.on("data",J=>{!this.push(J)&&S.pause&&(x=!0,S.pause())}),S.on("end",()=>{this.push(null)}),S.on("error",J=>{Ge(this,J)}),S.on("close",()=>{this.destroy()}),S.on("destroy",()=>{this.destroy()}),this._read=()=>{x&&S.resume&&(x=!1,S.resume())};const Y=h(S);for(let J=1;J{ue=An?Re(ue,An):null,Y(),Y=Ue});try{for(;;){const An=S.destroyed?null:S.read();if(An!==null)yield An;else{if(ue)throw ue;if(ue===null)return;await new v(J)}}}catch(An){throw ue=Re(ue,An),ue}finally{(ue||(x==null?void 0:x.destroyOnReturn)!==!1)&&(ue===void 0||S._readableState.autoDestroy)?te.destroyer(S,null):(S.off("readable",J),Yt())}}d(he.prototype,{readable:{__proto__:null,get(){const S=this._readableState;return!!S&&S.readable!==!1&&!S.destroyed&&!S.errorEmitted&&!S.endEmitted},set(S){this._readableState&&(this._readableState.readable=!!S)}},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(S){this._readableState&&(this._readableState.flowing=S)}},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(S){this._readableState&&(this._readableState.destroyed=S)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),d(_t.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[we]!==!1},set(S){this[we]=!!S}}}),he._fromList=Al;function Al(S,x){if(x.length===0)return null;let Y;return x.objectMode?Y=x.buffer.shift():!S||S>=x.length?(x.decoder?Y=x.buffer.join(""):x.buffer.length===1?Y=x.buffer.first():Y=x.buffer.concat(x.length),x.buffer.clear()):Y=x.buffer.consume(S,x.decoder),Y}function co(S){const x=S._readableState;j("endReadable",x.endEmitted),x.endEmitted||(x.ended=!0,n.nextTick(Zc,x,S))}function Zc(S,x){if(j("endReadableNT",S.endEmitted,S.length),!S.errored&&!S.closeEmitted&&!S.endEmitted&&S.length===0){if(S.endEmitted=!0,x.emit("end"),x.writable&&x.allowHalfOpen===!1)n.nextTick(bu,x);else if(S.autoDestroy){const Y=x._writableState;(!Y||Y.autoDestroy&&(Y.finished||Y.writable===!1))&&x.destroy()}}}function bu(S){S.writable&&!S.writableEnded&&!S.destroyed&&S.end()}he.from=function(S,x){return He(he,S,x)};let So;function ql(){return So===void 0&&(So={}),So}return he.fromWeb=function(S,x){return ql().newStreamReadableFromReadableStream(S,x)},he.toWeb=function(S,x){return ql().newReadableStreamFromStreamReadable(S,x)},he.wrap=function(S,x){var Y,J;return new he({objectMode:(Y=(J=S.readableObjectMode)!==null&&J!==void 0?J:S.objectMode)!==null&&Y!==void 0?Y:!0,...x,destroy(ue,Yt){te.destroyer(S,ue),Yt(ue)}}).wrap(S)},yMe}var vMe,mGt;function tGe(){if(mGt)return vMe;mGt=1;const n=ui,{ArrayPrototypeSlice:r,Error:o,FunctionPrototypeSymbolHasInstance:l,ObjectDefineProperty:u,ObjectDefineProperties:d,ObjectSetPrototypeOf:h,StringPrototypeToLowerCase:w,Symbol:v,SymbolHasInstance:y}=Ff;vMe=ye,ye.WritableState=F;const{EventEmitter:E}=Ns,A=eGe.Stream,{Buffer:C}=Kr,R=Sj,{addAbortSignal:O}=qbe,{getHighWaterMark:M,getDefaultHighWaterMark:L}=Xbe,{ERR_INVALID_ARG_TYPE:H,ERR_METHOD_NOT_IMPLEMENTED:G,ERR_MULTIPLE_CALLBACK:j,ERR_STREAM_CANNOT_PIPE:Q,ERR_STREAM_DESTROYED:te,ERR_STREAM_ALREADY_FINISHED:pe,ERR_STREAM_NULL_VALUES:De,ERR_STREAM_WRITE_AFTER_END:Re,ERR_UNKNOWN_ENCODING:le}=I0.codes,{errorOrDestroy:xe}=R;h(ye.prototype,A.prototype),h(ye,A);function be(){}const ae=v("kOnFinished");function F(T,$,B){typeof B!="boolean"&&(B=$ instanceof ox()),this.objectMode=!!(T&&T.objectMode),B&&(this.objectMode=this.objectMode||!!(T&&T.writableObjectMode)),this.highWaterMark=T?M(this,T,"writableHighWaterMark",B):L(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const K=!!(T&&T.decodeStrings===!1);this.decodeStrings=!K,this.defaultEncoding=T&&T.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=Ge.bind(void 0,$),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,me(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[ae]=[]}function me(T){T.buffered=[],T.bufferedIndex=0,T.allBuffers=!0,T.allNoop=!0}F.prototype.getBuffer=function(){return r(this.buffered,this.bufferedIndex)},u(F.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function ye(T){const $=this instanceof ox();if(!$&&!l(ye,this))return new ye(T);this._writableState=new F(T,this,$),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&&O(T.signal,this)),A.call(this,T),R.construct(this,()=>{const B=this._writableState;B.writing||Te(this,B),yt(this,B)})}u(ye,y,{__proto__:null,value:function(T){return l(this,T)?!0:this!==ye?!1:T&&T._writableState instanceof F}}),ye.prototype.pipe=function(){xe(this,new Q)};function we(T,$,B,K){const q=T._writableState;if(typeof B=="function")K=B,B=q.defaultEncoding;else{if(!B)B=q.defaultEncoding;else if(B!=="buffer"&&!C.isEncoding(B))throw new le(B);typeof K!="function"&&(K=be)}if($===null)throw new De;if(!q.objectMode)if(typeof $=="string")q.decodeStrings!==!1&&($=C.from($,B),B="buffer");else if($ instanceof C)B="buffer";else if(A._isUint8Array($))$=A._uint8ArrayToBuffer($),B="buffer";else throw new H("chunk",["string","Buffer","Uint8Array"],$);let ke;return q.ending?ke=new Re:q.destroyed&&(ke=new te("write")),ke?(n.nextTick(K,ke),xe(T,ke,!0),ke):(q.pendingcb++,Be(T,q,$,B,K))}ye.prototype.write=function(T,$,B){return we(this,T,$,B)===!0},ye.prototype.cork=function(){this._writableState.corked++},ye.prototype.uncork=function(){const T=this._writableState;T.corked&&(T.corked--,T.writing||Te(this,T))},ye.prototype.setDefaultEncoding=function($){if(typeof $=="string"&&($=w($)),!C.isEncoding($))throw new le($);return this._writableState.defaultEncoding=$,this};function Be(T,$,B,K,q){const ke=$.objectMode?1:B.length;$.length+=ke;const Ee=$.length<$.highWaterMark;return Ee||($.needDrain=!0),$.writing||$.corked||$.errored||!$.constructed?($.buffered.push({chunk:B,encoding:K,callback:q}),$.allBuffers&&K!=="buffer"&&($.allBuffers=!1),$.allNoop&&q!==be&&($.allNoop=!1)):($.writelen=ke,$.writecb=q,$.writing=!0,$.sync=!0,T._write(B,K,$.onwrite),$.sync=!1),Ee&&!$.errored&&!$.destroyed}function He(T,$,B,K,q,ke,Ee){$.writelen=K,$.writecb=Ee,$.writing=!0,$.sync=!0,$.destroyed?$.onwrite(new te("write")):B?T._writev(q,$.onwrite):T._write(q,ke,$.onwrite),$.sync=!1}function Ue(T,$,B,K){--$.pendingcb,K(B),re($),xe(T,B)}function Ge(T,$){const B=T._writableState,K=B.sync,q=B.writecb;if(typeof q!="function"){xe(T,new j);return}B.writing=!1,B.writecb=null,B.length-=B.writelen,B.writelen=0,$?($.stack,B.errored||(B.errored=$),T._readableState&&!T._readableState.errored&&(T._readableState.errored=$),K?n.nextTick(Ue,T,B,$,q):Ue(T,B,$,q)):(B.buffered.length>B.bufferedIndex&&Te(T,B),K?B.afterWriteTickInfo!==null&&B.afterWriteTickInfo.cb===q?B.afterWriteTickInfo.count++:(B.afterWriteTickInfo={count:1,cb:q,stream:T,state:B},n.nextTick(Le,B.afterWriteTickInfo)):ft(T,B,1,q))}function Le({stream:T,state:$,count:B,cb:K}){return $.afterWriteTickInfo=null,ft(T,$,B,K)}function ft(T,$,B,K){for(!$.ending&&!T.destroyed&&$.length===0&&$.needDrain&&($.needDrain=!1,T.emit("drain"));B-- >0;)$.pendingcb--,K();$.destroyed&&re($),yt(T,$)}function re(T){if(T.writing)return;for(let q=T.bufferedIndex;q1&&T._writev){$.pendingcb-=ke-1;const Ie=$.allNoop?be:he=>{for(let Xt=Ee;Xt256?(B.splice(0,Ee),$.bufferedIndex=0):$.bufferedIndex=Ee}$.bufferProcessing=!1}ye.prototype._write=function(T,$,B){if(this._writev)this._writev([{chunk:T,encoding:$}],B);else throw new G("_write()")},ye.prototype._writev=null,ye.prototype.end=function(T,$,B){const K=this._writableState;typeof T=="function"?(B=T,T=null,$=null):typeof $=="function"&&(B=$,$=null);let q;if(T!=null){const ke=we(this,T,$);ke instanceof o&&(q=ke)}return K.corked&&(K.corked=1,this.uncork()),q||(!K.errored&&!K.ending?(K.ending=!0,yt(this,K,!0),K.ended=!0):K.finished?q=new pe("end"):K.destroyed&&(q=new te("end"))),typeof B=="function"&&(q||K.finished?n.nextTick(B,q):K[ae].push(B)),this};function dt(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 at(T,$){let B=!1;function K(q){if(B){xe(T,q??j());return}if(B=!0,$.pendingcb--,q){const ke=$[ae].splice(0);for(let Ee=0;Ee{dt(q)?Lt(K,q):q.pendingcb--},T,$)):dt($)&&($.pendingcb++,Lt(T,$))))}function Lt(T,$){$.pendingcb--,$.finished=!0;const B=$[ae].splice(0);for(let K=0;K{if(re!=null)throw new O("nully","body",re)},re=>{M(Le,re)});return Le=new le({objectMode:!0,readable:!1,write:Be,final(re){He(async()=>{try{await ft,n.nextTick(re,null)}catch(Te){n.nextTick(re,Te)}})},destroy:Ue})}throw new O("Iterable, AsyncIterable or AsyncFunction",me,we)}if(pe(F))return ae(F.arrayBuffer());if(u(F))return Q(le,F,{objectMode:!0,writable:!1});if(y(F==null?void 0:F.readable)&&E(F==null?void 0:F.writable))return le.fromWeb(F);if(typeof(F==null?void 0:F.writable)=="object"||typeof(F==null?void 0:F.readable)=="object"){const we=F!=null&&F.readable?h(F==null?void 0:F.readable)?F==null?void 0:F.readable:ae(F.readable):void 0,Be=F!=null&&F.writable?w(F==null?void 0:F.writable)?F==null?void 0:F.writable:ae(F.writable):void 0;return be({readable:we,writable:Be})}const ye=F==null?void 0:F.then;if(typeof ye=="function"){let we;return Re(ye,F,Be=>{Be!=null&&we.push(Be),we.push(null)},Be=>{M(we,Be)}),we=new le({objectMode:!0,writable:!1,read(){}})}throw new R(me,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],F)};function xe(ae){let{promise:F,resolve:me}=j();const ye=new De,we=ye.signal;return{value:ae(async function*(){for(;;){const He=F;F=null;const{chunk:Ue,done:Ge,cb:Le}=await He;if(n.nextTick(Le),Ge)return;if(we.aborted)throw new C(void 0,{cause:we.reason});({promise:F,resolve:me}=j()),yield Ue}}(),{signal:we}),write(He,Ue,Ge){const Le=me;me=null,Le({chunk:He,done:!1,cb:Ge})},final(He){const Ue=me;me=null,Ue({done:!0,cb:He})},destroy(He,Ue){ye.abort(),Ue(He)}}}function be(ae){const F=ae.readable&&typeof ae.readable.read!="function"?H.wrap(ae.readable):ae.readable,me=ae.writable;let ye=!!o(F),we=!!l(me),Be,He,Ue,Ge,Le;function ft(re){const Te=Ge;Ge=null,Te?Te(re):re&&Le.destroy(re)}return Le=new le({readableObjectMode:!!(F!=null&&F.readableObjectMode),writableObjectMode:!!(me!=null&&me.writableObjectMode),readable:ye,writable:we}),we&&(A(me,re=>{we=!1,re&&M(F,re),ft(re)}),Le._write=function(re,Te,dt){me.write(re,Te)?dt():Be=dt},Le._final=function(re){me.end(),He=re},me.on("drain",function(){if(Be){const re=Be;Be=null,re()}}),me.on("finish",function(){if(He){const re=He;He=null,re()}})),ye&&(A(F,re=>{ye=!1,re&&M(F,re),ft(re)}),F.on("readable",function(){if(Ue){const re=Ue;Ue=null,re()}}),F.on("end",function(){Le.push(null)}),Le._read=function(){for(;;){const re=F.read();if(re===null){Ue=Le._read;return}if(!Le.push(re))return}}),Le._destroy=function(re,Te){!re&&Ge!==null&&(re=new C),Ue=null,Be=null,He=null,Ge===null?Te(re):(Ge=Te,M(me,re),M(F,re))},Le}return _Me}var SMe,vGt;function ox(){if(vGt)return SMe;vGt=1;const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:o,ObjectSetPrototypeOf:l}=Ff;SMe=h;const u=Jbe(),d=tGe();l(h.prototype,u.prototype),l(h,u);{const E=o(d.prototype);for(let A=0;A{if(r){n?n(r):this.destroy(r);return}o!=null&&this.push(o),this.push(null),n&&n()}):(this.push(null),n&&n())}function dwr(){this._final!==_Fe&&_Fe.call(this)}sx.prototype._final=_Fe;sx.prototype._transform=function(n,r,o){throw new uwr("_transform()")};sx.prototype._write=function(n,r,o){const l=this._readableState,u=this._writableState,d=l.length;this._transform(n,r,(h,w)=>{if(h){o(h);return}w!=null&&this.push(w),u.ended||d===l.length||l.length{l=!0});const u=fhe(n,{readable:r,writable:o},d=>{l=!d});return{destroy:d=>{l||(l=!0,mwr.destroyer(n,d||new _wr("pipe")))},cleanup:u}}function Twr(n){return kwr(n[n.length-1],"streams[stream.length - 1]"),n.pop()}function TMe(n){if(A8(n))return n;if(ide(n))return $wr(n);throw new SFe("val",["Readable","Iterable","AsyncIterable"],n)}async function*$wr(n){CMe||(CMe=Jbe()),yield*CMe.prototype[bwr].call(n)}async function Iue(n,r,o,{end:l}){let u,d=null;const h=y=>{if(y&&(u=y),d){const E=d;d=null,E()}},w=()=>new pwr((y,E)=>{u?E(u):d=()=>{u?E(u):y()}});r.on("drain",h);const v=fhe(r,{readable:!1},h);try{r.writableNeedDrain&&await w();for await(const y of n)r.write(y)||await w();l&&(r.end(),await w()),o()}catch(y){o(u!==y?ywr(u,y):y)}finally{v(),r.off("drain",h)}}async function $Me(n,r,o,{end:l}){RD(r)&&(r=r.writable);const u=r.getWriter();try{for await(const d of n)await u.ready,u.write(d).catch(()=>{});await u.ready,l&&await u.close(),o()}catch(d){try{await u.abort(d),o(d)}catch(h){o(h)}}}function Iwr(...n){return fsn(n,wwr(Twr(n)))}function fsn(n,r,o){if(n.length===1&&hwr(n[0])&&(n=n[0]),n.length<2)throw new vwr("streams");const l=new Awr,u=l.signal,d=o==null?void 0:o.signal,h=[];Rwr(d,"options.signal");function w(){O(new Ewr)}AMe=AMe||f1.addAbortListener;let v;d&&(v=AMe(d,w));let y,E;const A=[];let C=0;function R(G){O(G,--C===0)}function O(G,j){var Q;if(G&&(!y||y.code==="ERR_STREAM_PREMATURE_CLOSE")&&(y=G),!(!y&&!j)){for(;A.length;)A.shift()(y);(Q=v)===null||Q===void 0||Q[gwr](),l.abort(),j&&(y||h.forEach(te=>te()),PK.nextTick(r,y,E))}}let M;for(let G=0;G0,pe=Q||(o==null?void 0:o.end)!==!1,De=G===n.length-1;if(SGt(j)){let Re=function(le){le&&le.name!=="AbortError"&&le.code!=="ERR_STREAM_PREMATURE_CLOSE"&&R(le)};if(pe){const{destroy:le,cleanup:xe}=EGt(j,Q,te);A.push(le),kMe(j)&&De&&h.push(xe)}j.on("error",Re),kMe(j)&&De&&h.push(()=>{j.removeListener("error",Re)})}if(G===0)if(typeof j=="function"){if(M=j({signal:u}),!A8(M))throw new EMe("Iterable, AsyncIterable or Stream","source",M)}else A8(j)||ide(j)||RD(j)?M=j:M=_Gt.from(j);else if(typeof j=="function"){if(RD(M)){var L;M=TMe((L=M)===null||L===void 0?void 0:L.readable)}else M=TMe(M);if(M=j(M,{signal:u}),Q){if(!A8(M,!0))throw new EMe("AsyncIterable",`transform[${G-1}]`,M)}else{var H;xMe||(xMe=usn);const Re=new xMe({objectMode:!0}),le=(H=M)===null||H===void 0?void 0:H.then;if(typeof le=="function")C++,le.call(M,ae=>{E=ae,ae!=null&&Re.write(ae),pe&&Re.end(),PK.nextTick(R)},ae=>{Re.destroy(ae),PK.nextTick(R,ae)});else if(A8(M,!0))C++,Iue(M,Re,R,{end:pe});else if(RMe(M)||RD(M)){const ae=M.readable||M;C++,Iue(ae,Re,R,{end:pe})}else throw new EMe("AsyncIterable or Promise","destination",M);M=Re;const{destroy:xe,cleanup:be}=EGt(M,!1,!0);A.push(xe),De&&h.push(be)}}else if(SGt(j)){if(ide(M)){C+=2;const Re=Pwr(M,j,R,{end:pe});kMe(j)&&De&&h.push(Re)}else if(RD(M)||RMe(M)){const Re=M.readable||M;C++,Iue(Re,j,R,{end:pe})}else if(A8(M))C++,Iue(M,j,R,{end:pe});else throw new SFe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else if(xwr(j)){if(ide(M))C++,$Me(TMe(M),j,R,{end:pe});else if(RMe(M)||A8(M))C++,$Me(M,j,R,{end:pe});else if(RD(M))C++,$Me(M.readable,j,R,{end:pe});else throw new SFe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else M=_Gt.from(j)}return(u!=null&&u.aborted||d!=null&&d.aborted)&&PK.nextTick(w),M}function Pwr(n,r,o,{end:l}){let u=!1;if(r.on("close",()=>{u||o(new Swr)}),n.pipe(r,{end:!1}),l){let d=function(){u=!0,r.end()};Cwr(n)?PK.nextTick(d):n.once("end",d)}else o();return fhe(n,{readable:!0,writable:!1},d=>{const h=n._readableState;d&&d.code==="ERR_STREAM_PREMATURE_CLOSE"&&h&&h.ended&&!h.errored&&!h.errorEmitted?n.once("end",o).once("error",o):o(d)}),fhe(r,{readable:!1,writable:!0},o)}var iGe={pipelineImpl:fsn,pipeline:Iwr};const{pipeline:Owr}=iGe,Pue=ox(),{destroyer:Nwr}=Sj,{isNodeStream:Oue,isReadable:kGt,isWritable:RGt,isWebStream:IMe,isTransformStream:a8,isWritableStream:xGt,isReadableStream:CGt}=Ax,{AbortError:Mwr,codes:{ERR_INVALID_ARG_VALUE:AGt,ERR_MISSING_ARGS:Dwr}}=I0,Lwr=WT;var dsn=function(...r){if(r.length===0)throw new Dwr("streams");if(r.length===1)return Pue.from(r[0]);const o=[...r];if(typeof r[0]=="function"&&(r[0]=Pue.from(r[0])),typeof r[r.length-1]=="function"){const R=r.length-1;r[R]=Pue.from(r[R])}for(let R=0;R0&&!(RGt(r[R])||xGt(r[R])||a8(r[R])))throw new AGt(`streams[${R}]`,o[R],"must be writable")}let l,u,d,h,w;function v(R){const O=h;h=null,O?O(R):R?w.destroy(R):!C&&!A&&w.destroy()}const y=r[0],E=Owr(r,v),A=!!(RGt(y)||xGt(y)||a8(y)),C=!!(kGt(E)||CGt(E)||a8(E));if(w=new Pue({writableObjectMode:!!(y!=null&&y.writableObjectMode),readableObjectMode:!!(E!=null&&E.readableObjectMode),writable:A,readable:C}),A){if(Oue(y))w._write=function(O,M,L){y.write(O,M)?L():l=L},w._final=function(O){y.end(),u=O},y.on("drain",function(){if(l){const O=l;l=null,O()}});else if(IMe(y)){const M=(a8(y)?y.writable:y).getWriter();w._write=async function(L,H,G){try{await M.ready,M.write(L).catch(()=>{}),G()}catch(j){G(j)}},w._final=async function(L){try{await M.ready,M.close().catch(()=>{}),u=L}catch(H){L(H)}}}const R=a8(E)?E.readable:E;Lwr(R,()=>{if(u){const O=u;u=null,O()}})}if(C){if(Oue(E))E.on("readable",function(){if(d){const R=d;d=null,R()}}),E.on("end",function(){w.push(null)}),w._read=function(){for(;;){const R=E.read();if(R===null){d=w._read;return}if(!w.push(R))return}};else if(IMe(E)){const O=(a8(E)?E.readable:E).getReader();w._read=async function(){for(;;)try{const{value:M,done:L}=await O.read();if(!w.push(M))return;if(L){w.push(null);return}}catch{return}}}}return w._destroy=function(R,O){!R&&h!==null&&(R=new Mwr),d=null,l=null,u=null,h===null?O(R):(h=O,Oue(E)&&Nwr(E,R))},w};const jwr=globalThis.AbortController||$o().AbortController,{codes:{ERR_INVALID_ARG_VALUE:Fwr,ERR_INVALID_ARG_TYPE:$J,ERR_MISSING_ARGS:Bwr,ERR_OUT_OF_RANGE:Wwr},AbortError:ak}=I0,{validateAbortSignal:sO,validateInteger:TGt,validateObject:lO}=TJ,Hwr=Ff.Symbol("kWeak"),Uwr=Ff.Symbol("kResistStopPropagation"),{finished:Gwr}=WT,Vwr=dsn,{addAbortSignalNoValidate:zwr}=qbe,{isWritable:Kwr,isNodeStream:qwr}=Ax,{deprecate:Xwr}=f1,{ArrayPrototypePush:Jwr,Boolean:Ywr,MathFloor:$Gt,Number:Qwr,NumberIsNaN:Zwr,Promise:IGt,PromiseReject:PGt,PromiseResolve:emr,PromisePrototypeThen:OGt,Symbol:hsn}=Ff,dhe=hsn("kEmpty"),NGt=hsn("kEof");function tmr(n,r){if(r!=null&&lO(r,"options"),(r==null?void 0:r.signal)!=null&&sO(r.signal,"options.signal"),qwr(n)&&!Kwr(n))throw new Fwr("stream",n,"must be writable");const o=Vwr(this,n);return r!=null&&r.signal&&zwr(r.signal,o),o}function Ybe(n,r){if(typeof n!="function")throw new $J("fn",["Function","AsyncFunction"],n);r!=null&&lO(r,"options"),(r==null?void 0:r.signal)!=null&&sO(r.signal,"options.signal");let o=1;(r==null?void 0:r.concurrency)!=null&&(o=$Gt(r.concurrency));let l=o-1;return(r==null?void 0:r.highWaterMark)!=null&&(l=$Gt(r.highWaterMark)),TGt(o,"options.concurrency",1),TGt(l,"options.highWaterMark",0),l+=o,(async function*(){const d=f1.AbortSignalAny([r==null?void 0:r.signal].filter(Ywr)),h=this,w=[],v={signal:d};let y,E,A=!1,C=0;function R(){A=!0,O()}function O(){C-=1,M()}function M(){E&&!A&&C=l||C>=o)&&await new IGt(G=>{E=G})}w.push(NGt)}catch(H){const G=PGt(H);OGt(G,O,R),w.push(G)}finally{A=!0,y&&(y(),y=null)}}L();try{for(;;){for(;w.length>0;){const H=await w[0];if(H===NGt)return;if(d.aborted)throw new ak;H!==dhe&&(yield H),w.shift(),M()}await new IGt(H=>{y=H})}}finally{A=!0,E&&(E(),E=null)}}).call(this)}function nmr(n=void 0){return n!=null&&lO(n,"options"),(n==null?void 0:n.signal)!=null&&sO(n.signal,"options.signal"),(async function*(){let o=0;for await(const u of this){var l;if(n!=null&&(l=n.signal)!==null&&l!==void 0&&l.aborted)throw new ak({cause:n.signal.reason});yield[o++,u]}}).call(this)}async function psn(n,r=void 0){for await(const o of oGe.call(this,n,r))return!0;return!1}async function rmr(n,r=void 0){if(typeof n!="function")throw new $J("fn",["Function","AsyncFunction"],n);return!await psn.call(this,async(...o)=>!await n(...o),r)}async function imr(n,r){for await(const o of oGe.call(this,n,r))return o}async function omr(n,r){if(typeof n!="function")throw new $J("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u),dhe}for await(const l of Ybe.call(this,o,r));}function oGe(n,r){if(typeof n!="function")throw new $J("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u)?l:dhe}return Ybe.call(this,o,r)}let smr=class extends Bwr{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function lmr(n,r,o){var l;if(typeof n!="function")throw new $J("reducer",["Function","AsyncFunction"],n);o!=null&&lO(o,"options"),(o==null?void 0:o.signal)!=null&&sO(o.signal,"options.signal");let u=arguments.length>1;if(o!=null&&(l=o.signal)!==null&&l!==void 0&&l.aborted){const y=new ak(void 0,{cause:o.signal.reason});throw this.once("error",()=>{}),await Gwr(this.destroy(y)),y}const d=new jwr,h=d.signal;if(o!=null&&o.signal){const y={once:!0,[Hwr]:this,[Uwr]:!0};o.signal.addEventListener("abort",()=>d.abort(),y)}let w=!1;try{for await(const y of this){var v;if(w=!0,o!=null&&(v=o.signal)!==null&&v!==void 0&&v.aborted)throw new ak;u?r=await n(r,y,{signal:h}):(r=y,u=!0)}if(!w&&!u)throw new smr}finally{d.abort()}return r}async function amr(n){n!=null&&lO(n,"options"),(n==null?void 0:n.signal)!=null&&sO(n.signal,"options.signal");const r=[];for await(const l of this){var o;if(n!=null&&(o=n.signal)!==null&&o!==void 0&&o.aborted)throw new ak(void 0,{cause:n.signal.reason});Jwr(r,l)}return r}function cmr(n,r){const o=Ybe.call(this,n,r);return(async function*(){for await(const u of o)yield*u}).call(this)}function bsn(n){if(n=Qwr(n),Zwr(n))return 0;if(n<0)throw new Wwr("number",">= 0",n);return n}function umr(n,r=void 0){return r!=null&&lO(r,"options"),(r==null?void 0:r.signal)!=null&&sO(r.signal,"options.signal"),n=bsn(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new ak;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new ak;n--<=0&&(yield d)}}).call(this)}function fmr(n,r=void 0){return r!=null&&lO(r,"options"),(r==null?void 0:r.signal)!=null&&sO(r.signal,"options.signal"),n=bsn(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new ak;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new ak;if(n-- >0&&(yield d),n<=0)return}}).call(this)}XUe.streamReturningOperators={asIndexedPairs:Xwr(nmr,"readable.asIndexedPairs will be removed in a future version."),drop:umr,filter:oGe,flatMap:cmr,map:Ybe,take:fmr,compose:tmr};XUe.promiseReturningOperators={every:rmr,forEach:omr,reduce:lmr,toArray:amr,some:psn,find:imr};var PMe,MGt;function gsn(){if(MGt)return PMe;MGt=1;const{ArrayPrototypePop:n,Promise:r}=Ff,{isIterable:o,isNodeStream:l,isWebStream:u}=Ax,{pipelineImpl:d}=iGe,{finished:h}=WT;wsn();function w(...v){return new r((y,E)=>{let A,C;const R=v[v.length-1];if(R&&typeof R=="object"&&!l(R)&&!o(R)&&!u(R)){const O=n(v);A=O.signal,C=O.end}d(v,(O,M)=>{O?E(O):y(M)},{signal:A,end:C})})}return PMe={finished:h,pipeline:w},PMe}var DGt;function wsn(){if(DGt)return bMe.exports;DGt=1;const{Buffer:n}=Kr,{ObjectDefineProperty:r,ObjectKeys:o,ReflectApply:l}=Ff,{promisify:{custom:u}}=f1,{streamReturningOperators:d,promiseReturningOperators:h}=XUe,{codes:{ERR_ILLEGAL_CONSTRUCTOR:w}}=I0,v=dsn,{setDefaultHighWaterMark:y,getDefaultHighWaterMark:E}=Xbe,{pipeline:A}=iGe,{destroyer:C}=Sj,R=WT,O=gsn(),M=Ax,L=bMe.exports=eGe.Stream;L.isDestroyed=M.isDestroyed,L.isDisturbed=M.isDisturbed,L.isErrored=M.isErrored,L.isReadable=M.isReadable,L.isWritable=M.isWritable,L.Readable=Jbe();for(const G of o(d)){let Q=function(...te){if(new.target)throw w();return L.Readable.from(l(j,this,te))};const j=d[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}for(const G of o(h)){let Q=function(...te){if(new.target)throw w();return l(j,this,te)};const j=h[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}L.Writable=tGe(),L.Duplex=ox(),L.Transform=asn,L.PassThrough=usn,L.pipeline=A;const{addAbortSignal:H}=qbe;return L.addAbortSignal=H,L.finished=R,L.destroy=C,L.compose=v,L.setDefaultHighWaterMark=y,L.getDefaultHighWaterMark=E,r(L,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return O}}),r(A,u,{__proto__:null,enumerable:!0,get(){return O.pipeline}}),r(R,u,{__proto__:null,enumerable:!0,get(){return O.finished}}),L.Stream=L,L._isUint8Array=function(j){return j instanceof Uint8Array},L._uint8ArrayToBuffer=function(j){return n.from(j.buffer,j.byteOffset,j.byteLength)},bMe.exports}(function(n){const r=wsn(),o=gsn(),l=r.Readable.destroy;n.exports=r.Readable,n.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer,n.exports._isUint8Array=r._isUint8Array,n.exports.isDisturbed=r.isDisturbed,n.exports.isErrored=r.isErrored,n.exports.isReadable=r.isReadable,n.exports.Readable=r.Readable,n.exports.Writable=r.Writable,n.exports.Duplex=r.Duplex,n.exports.Transform=r.Transform,n.exports.PassThrough=r.PassThrough,n.exports.addAbortSignal=r.addAbortSignal,n.exports.finished=r.finished,n.exports.destroy=r.destroy,n.exports.destroy=l,n.exports.pipeline=r.pipeline,n.exports.compose=r.compose,Object.defineProperty(r,"promises",{configurable:!0,enumerable:!0,get(){return o}}),n.exports.Stream=r.Stream,n.exports.default=n.exports})(Con);var dmr=Con.exports;class hmr extends dmr.Transform{constructor(r){super({decodeStrings:!0}),this._readableState.objectMode=!0;const o=new Ron(r);let l,u;const d={onQuad:(h,w)=>{h&&this.emit("error",h)||w&&this.push(w)},onPrefix:(h,w)=>{this.emit("prefix",h,w)}};r&&r.comments&&(d.onComment=h=>{this.emit("comment",h)}),o.parse({on:(h,w)=>{switch(h){case"data":l=w;break;case"end":u=w;break}}},d),this._transform=(h,w,v)=>{l(h),v()},this._flush=h=>{u(),h()}}import(r){return r.on("data",o=>{this.write(o)}),r.on("end",()=>{this.end()}),r.on("error",o=>{this.emit("error",o)}),this}}class pmr{constructor(r,{baseIRI:o="",factory:l=hHe,...u}={}){const d={blankNode:l.blankNode.bind(l),defaultGraph:l.defaultGraph.bind(l),literal:l.literal.bind(l),namedNode:l.namedNode.bind(l),quad:l.quad.bind(l)},h=new hmr({baseIRI:o,factory:d,...u});return r.pipe(h),_Ue(h)}}class xD extends ebe{constructor(r){super(pmr,r)}}const bmr=Object.freeze(Object.defineProperty({__proto__:null,default:xD},Symbol.toStringTag,{value:"Module"}));var msn={exports:{}},OMe={exports:{}},Bf={ArrayIsArray(n){return Array.isArray(n)},ArrayPrototypeIncludes(n,r){return n.includes(r)},ArrayPrototypeIndexOf(n,r){return n.indexOf(r)},ArrayPrototypeJoin(n,r){return n.join(r)},ArrayPrototypeMap(n,r){return n.map(r)},ArrayPrototypePop(n,r){return n.pop(r)},ArrayPrototypePush(n,r){return n.push(r)},ArrayPrototypeSlice(n,r,o){return n.slice(r,o)},Error,FunctionPrototypeCall(n,r,...o){return n.call(r,...o)},FunctionPrototypeSymbolHasInstance(n,r){return Function.prototype[Symbol.hasInstance].call(n,r)},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(n,r){return Object.defineProperties(n,r)},ObjectDefineProperty(n,r,o){return Object.defineProperty(n,r,o)},ObjectGetOwnPropertyDescriptor(n,r){return Object.getOwnPropertyDescriptor(n,r)},ObjectKeys(n){return Object.keys(n)},ObjectSetPrototypeOf(n,r){return Object.setPrototypeOf(n,r)},Promise,PromisePrototypeCatch(n,r){return n.catch(r)},PromisePrototypeThen(n,r,o){return n.then(r,o)},PromiseReject(n){return Promise.reject(n)},PromiseResolve(n){return Promise.resolve(n)},ReflectApply:Reflect.apply,RegExpPrototypeTest(n,r){return n.test(r)},SafeSet:Set,String,StringPrototypeSlice(n,r,o){return n.slice(r,o)},StringPrototypeToLowerCase(n){return n.toLowerCase()},StringPrototypeToUpperCase(n){return n.toUpperCase()},StringPrototypeTrim(n){return n.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(n,r,o){return n.set(r,o)},Boolean,Uint8Array},ysn={exports:{}};(function(n){const r=Kr,{kResistStopPropagation:o,SymbolDispose:l}=Bf,u=globalThis.AbortSignal||$o().AbortSignal,d=globalThis.AbortController||$o().AbortController,h=Object.getPrototypeOf(async function(){}).constructor,w=globalThis.Blob||r.Blob,v=typeof w<"u"?function(R){return R instanceof w}:function(R){return!1},y=(C,R)=>{if(C!==void 0&&(C===null||typeof C!="object"||!("aborted"in C)))throw new ERR_INVALID_ARG_TYPE(R,"AbortSignal",C)},E=(C,R)=>{if(typeof C!="function")throw new ERR_INVALID_ARG_TYPE(R,"Function",C)};class A extends Error{constructor(R){if(!Array.isArray(R))throw new TypeError(`Expected input to be an Array, got ${typeof R}`);let O="";for(let M=0;M{C=M,R=L}),resolve:C,reject:R}},promisify(C){return new Promise((R,O)=>{C((M,...L)=>M?O(M):R(...L))})},debuglog(){return function(){}},format(C,...R){return C.replace(/%([sdifj])/g,function(...[O,M]){const L=R.shift();return M==="f"?L.toFixed(6):M==="j"?JSON.stringify(L):M==="s"&&typeof L=="object"?`${L.constructor!==Object?L.constructor.name:""} {}`.trim():L.toString()})},inspect(C){switch(typeof C){case"string":if(C.includes("'"))if(C.includes('"')){if(!C.includes("`")&&!C.includes("${"))return`\`${C}\``}else return`"${C}"`;return`'${C}'`;case"number":return isNaN(C)?"NaN":Object.is(C,-0)?String(C):C;case"bigint":return`${String(C)}n`;case"boolean":case"undefined":return String(C);case"object":return"{}"}},types:{isAsyncFunction(C){return C instanceof h},isArrayBufferView(C){return ArrayBuffer.isView(C)}},isBlob:v,deprecate(C,R){return C},addAbortListener:Ns.addAbortListener||function(R,O){if(R===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",R);y(R,"signal"),E(O,"listener");let M;return R.aborted?queueMicrotask(()=>O()):(R.addEventListener("abort",O,{__proto__:null,once:!0,[o]:!0}),M=()=>{R.removeEventListener("abort",O)}),{__proto__:null,[l](){var L;(L=M)===null||L===void 0||L()}}},AbortSignalAny:u.any||function(R){if(R.length===1)return R[0];const O=new d,M=()=>O.abort();return R.forEach(L=>{y(L,"signals"),L.addEventListener("abort",M,{once:!0})}),O.signal.addEventListener("abort",()=>{R.forEach(L=>L.removeEventListener("abort",M))},{once:!0}),O.signal}},n.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(ysn);var d1=ysn.exports,sGe={};const{format:gmr,inspect:hhe,AggregateError:wmr}=d1,mmr=globalThis.AggregateError||wmr,ymr=Symbol("kIsNodeError"),vmr=["string","function","number","object","Function","Object","boolean","bigint","symbol"],_mr=/^([A-Z][a-z0-9]*)+$/,Smr="__node_internal_",Qbe={};function lP(n,r){if(!n)throw new Qbe.ERR_INTERNAL_ASSERTION(r)}function LGt(n){let r="",o=n.length;const l=n[0]==="-"?1:0;for(;o>=l+4;o-=3)r=`_${n.slice(o-3,o)}${r}`;return`${n.slice(0,o)}${r}`}function Emr(n,r,o){if(typeof r=="function")return lP(r.length<=o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${r.length}).`),r(...o);const l=(r.match(/%[dfijoOs]/g)||[]).length;return lP(l===o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${l}).`),o.length===0?r:gmr(r,...o)}function Zp(n,r,o){o||(o=Error);class l extends o{constructor(...d){super(Emr(n,r,d))}toString(){return`${this.name} [${n}]: ${this.message}`}}Object.defineProperties(l.prototype,{name:{value:o.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${n}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),l.prototype.code=n,l.prototype[ymr]=!0,Qbe[n]=l}function jGt(n){const r=Smr+n.name;return Object.defineProperty(n,"name",{value:r}),n}function kmr(n,r){if(n&&r&&n!==r){if(Array.isArray(r.errors))return r.errors.push(n),r;const o=new mmr([r,n],r.message);return o.code=r.code,o}return n||r}let Rmr=class extends Error{constructor(r="The operation was aborted",o=void 0){if(o!==void 0&&typeof o!="object")throw new Qbe.ERR_INVALID_ARG_TYPE("options","Object",o);super(r,o),this.code="ABORT_ERR",this.name="AbortError"}};Zp("ERR_ASSERTION","%s",Error);Zp("ERR_INVALID_ARG_TYPE",(n,r,o)=>{lP(typeof n=="string","'name' must be a string"),Array.isArray(r)||(r=[r]);let l="The ";n.endsWith(" argument")?l+=`${n} `:l+=`"${n}" ${n.includes(".")?"property":"argument"} `,l+="must be ";const u=[],d=[],h=[];for(const v of r)lP(typeof v=="string","All expected entries have to be of type string"),vmr.includes(v)?u.push(v.toLowerCase()):_mr.test(v)?d.push(v):(lP(v!=="object",'The value "object" should be written as "Object"'),h.push(v));if(d.length>0){const v=u.indexOf("object");v!==-1&&(u.splice(u,v,1),d.push("Object"))}if(u.length>0){switch(u.length){case 1:l+=`of type ${u[0]}`;break;case 2:l+=`one of type ${u[0]} or ${u[1]}`;break;default:{const v=u.pop();l+=`one of type ${u.join(", ")}, or ${v}`}}(d.length>0||h.length>0)&&(l+=" or ")}if(d.length>0){switch(d.length){case 1:l+=`an instance of ${d[0]}`;break;case 2:l+=`an instance of ${d[0]} or ${d[1]}`;break;default:{const v=d.pop();l+=`an instance of ${d.join(", ")}, or ${v}`}}h.length>0&&(l+=" or ")}switch(h.length){case 0:break;case 1:h[0].toLowerCase()!==h[0]&&(l+="an "),l+=`${h[0]}`;break;case 2:l+=`one of ${h[0]} or ${h[1]}`;break;default:{const v=h.pop();l+=`one of ${h.join(", ")}, or ${v}`}}if(o==null)l+=`. Received ${o}`;else if(typeof o=="function"&&o.name)l+=`. Received function ${o.name}`;else if(typeof o=="object"){var w;if((w=o.constructor)!==null&&w!==void 0&&w.name)l+=`. Received an instance of ${o.constructor.name}`;else{const v=hhe(o,{depth:-1});l+=`. Received ${v}`}}else{let v=hhe(o,{colors:!1});v.length>25&&(v=`${v.slice(0,25)}...`),l+=`. Received type ${typeof o} (${v})`}return l},TypeError);Zp("ERR_INVALID_ARG_VALUE",(n,r,o="is invalid")=>{let l=hhe(r);return l.length>128&&(l=l.slice(0,128)+"..."),`The ${n.includes(".")?"property":"argument"} '${n}' ${o}. Received ${l}`},TypeError);Zp("ERR_INVALID_RETURN_VALUE",(n,r,o)=>{var l;const u=o!=null&&(l=o.constructor)!==null&&l!==void 0&&l.name?`instance of ${o.constructor.name}`:`type ${typeof o}`;return`Expected ${n} to be returned from the "${r}" function but got ${u}.`},TypeError);Zp("ERR_MISSING_ARGS",(...n)=>{lP(n.length>0,"At least one arg needs to be specified");let r;const o=n.length;switch(n=(Array.isArray(n)?n:[n]).map(l=>`"${l}"`).join(" or "),o){case 1:r+=`The ${n[0]} argument`;break;case 2:r+=`The ${n[0]} and ${n[1]} arguments`;break;default:{const l=n.pop();r+=`The ${n.join(", ")}, and ${l} arguments`}break}return`${r} must be specified`},TypeError);Zp("ERR_OUT_OF_RANGE",(n,r,o)=>{lP(r,'Missing "range" argument');let l;return Number.isInteger(o)&&Math.abs(o)>2**32?l=LGt(String(o)):typeof o=="bigint"?(l=String(o),(o>2n**32n||o<-(2n**32n))&&(l=LGt(l)),l+="n"):l=hhe(o),`The value of "${n}" is out of range. It must be ${r}. Received ${l}`},RangeError);Zp("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);Zp("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);Zp("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);Zp("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);Zp("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);Zp("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Zp("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);Zp("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);Zp("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);Zp("ERR_STREAM_WRITE_AFTER_END","write after end",Error);Zp("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var P0={AbortError:Rmr,aggregateTwoErrors:jGt(kmr),hideStackFrames:jGt,codes:Qbe};const{ArrayIsArray:lGe,ArrayPrototypeIncludes:vsn,ArrayPrototypeJoin:_sn,ArrayPrototypeMap:xmr,NumberIsInteger:aGe,NumberIsNaN:Cmr,NumberMAX_SAFE_INTEGER:Amr,NumberMIN_SAFE_INTEGER:Tmr,NumberParseInt:$mr,ObjectPrototypeHasOwnProperty:Imr,RegExpPrototypeExec:Ssn,String:Pmr,StringPrototypeToUpperCase:Omr,StringPrototypeTrim:Nmr}=Bf,{hideStackFrames:wv,codes:{ERR_SOCKET_BAD_PORT:Mmr,ERR_INVALID_ARG_TYPE:Jb,ERR_INVALID_ARG_VALUE:Ej,ERR_OUT_OF_RANGE:TP,ERR_UNKNOWN_SIGNAL:FGt}}=P0,{normalizeEncoding:Dmr}=d1,{isAsyncFunction:Lmr,isArrayBufferView:jmr}=d1.types,BGt={};function Fmr(n){return n===(n|0)}function Bmr(n){return n===n>>>0}const Wmr=/^[0-7]+$/,Hmr="must be a 32-bit unsigned integer or an octal string";function Umr(n,r,o){if(typeof n>"u"&&(n=o),typeof n=="string"){if(Ssn(Wmr,n)===null)throw new Ej(r,n,Hmr);n=$mr(n,8)}return Esn(n,r),n}const Gmr=wv((n,r,o=Tmr,l=Amr)=>{if(typeof n!="number")throw new Jb(r,"number",n);if(!aGe(n))throw new TP(r,"an integer",n);if(nl)throw new TP(r,`>= ${o} && <= ${l}`,n)}),Vmr=wv((n,r,o=-2147483648,l=2147483647)=>{if(typeof n!="number")throw new Jb(r,"number",n);if(!aGe(n))throw new TP(r,"an integer",n);if(nl)throw new TP(r,`>= ${o} && <= ${l}`,n)}),Esn=wv((n,r,o=!1)=>{if(typeof n!="number")throw new Jb(r,"number",n);if(!aGe(n))throw new TP(r,"an integer",n);const l=o?1:0,u=4294967295;if(nu)throw new TP(r,`>= ${l} && <= ${u}`,n)});function cGe(n,r){if(typeof n!="string")throw new Jb(r,"string",n)}function zmr(n,r,o=void 0,l){if(typeof n!="number")throw new Jb(r,"number",n);if(o!=null&&nl||(o!=null||l!=null)&&Cmr(n))throw new TP(r,`${o!=null?`>= ${o}`:""}${o!=null&&l!=null?" && ":""}${l!=null?`<= ${l}`:""}`,n)}const Kmr=wv((n,r,o)=>{if(!vsn(o,n)){const u="must be one of: "+_sn(xmr(o,d=>typeof d=="string"?`'${d}'`:Pmr(d)),", ");throw new Ej(r,n,u)}});function ksn(n,r){if(typeof n!="boolean")throw new Jb(r,"boolean",n)}function NMe(n,r,o){return n==null||!Imr(n,r)?o:n[r]}const qmr=wv((n,r,o=null)=>{const l=NMe(o,"allowArray",!1),u=NMe(o,"allowFunction",!1);if(!NMe(o,"nullable",!1)&&n===null||!l&&lGe(n)||typeof n!="object"&&(!u||typeof n!="function"))throw new Jb(r,"Object",n)}),Xmr=wv((n,r)=>{if(n!=null&&typeof n!="object"&&typeof n!="function")throw new Jb(r,"a dictionary",n)}),Zbe=wv((n,r,o=0)=>{if(!lGe(n))throw new Jb(r,"Array",n);if(n.length{if(!jmr(n))throw new Jb(r,["Buffer","TypedArray","DataView"],n)});function tyr(n,r){const o=Dmr(r),l=n.length;if(o==="hex"&&l%2!==0)throw new Ej("encoding",r,`is invalid for data of length ${l}`)}function nyr(n,r="Port",o=!0){if(typeof n!="number"&&typeof n!="string"||typeof n=="string"&&Nmr(n).length===0||+n!==+n>>>0||n>65535||n===0&&!o)throw new Mmr(r,n,o);return n|0}const Rsn=wv((n,r)=>{if(n!==void 0&&(n===null||typeof n!="object"||!("aborted"in n)))throw new Jb(r,"AbortSignal",n)}),ryr=wv((n,r)=>{if(typeof n!="function")throw new Jb(r,"Function",n)}),iyr=wv((n,r)=>{if(typeof n!="function"||Lmr(n))throw new Jb(r,"Function",n)}),oyr=wv((n,r)=>{if(n!==void 0)throw new Jb(r,"undefined",n)});function syr(n,r,o){if(!vsn(o,n))throw new Jb(r,`('${_sn(o,"|")}')`,n)}const lyr=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function WGt(n,r){if(typeof n>"u"||!Ssn(lyr,n))throw new Ej(r,n,'must be an array or string of format "; rel=preload; as=style"')}function ayr(n){if(typeof n=="string")return WGt(n,"hints"),n;if(lGe(n)){const r=n.length;let o="";if(r===0)return o;for(let l=0;l; rel=preload; as=style"')}var IJ={isInt32:Fmr,isUint32:Bmr,parseFileMode:Umr,validateArray:Zbe,validateStringArray:Jmr,validateBooleanArray:Ymr,validateAbortSignalArray:Qmr,validateBoolean:ksn,validateBuffer:eyr,validateDictionary:Xmr,validateEncoding:tyr,validateFunction:ryr,validateInt32:Vmr,validateInteger:Gmr,validateNumber:zmr,validateObject:qmr,validateOneOf:Kmr,validatePlainFunction:iyr,validatePort:nyr,validateSignalName:Zmr,validateString:cGe,validateUint32:Esn,validateUndefined:oyr,validateUnion:syr,validateAbortSignal:Rsn,validateLinkHeaderValue:ayr},uGe={exports:{}};const{SymbolAsyncIterator:HGt,SymbolIterator:UGt,SymbolFor:aO}=Bf,xsn=aO("nodejs.stream.destroyed"),Csn=aO("nodejs.stream.errored"),EFe=aO("nodejs.stream.readable"),kFe=aO("nodejs.stream.writable"),Asn=aO("nodejs.stream.disturbed"),cyr=aO("nodejs.webstream.isClosedPromise"),uyr=aO("nodejs.webstream.controllerErrorFunction");function ege(n,r=!1){var o;return!!(n&&typeof n.pipe=="function"&&typeof n.on=="function"&&(!r||typeof n.pause=="function"&&typeof n.resume=="function")&&(!n._writableState||((o=n._readableState)===null||o===void 0?void 0:o.readable)!==!1)&&(!n._writableState||n._readableState))}function tge(n){var r;return!!(n&&typeof n.write=="function"&&typeof n.on=="function"&&(!n._readableState||((r=n._writableState)===null||r===void 0?void 0:r.writable)!==!1))}function fyr(n){return!!(n&&typeof n.pipe=="function"&&n._readableState&&typeof n.on=="function"&&typeof n.write=="function")}function _k(n){return n&&(n._readableState||n._writableState||typeof n.write=="function"&&typeof n.on=="function"||typeof n.pipe=="function"&&typeof n.on=="function")}function Tsn(n){return!!(n&&!_k(n)&&typeof n.pipeThrough=="function"&&typeof n.getReader=="function"&&typeof n.cancel=="function")}function $sn(n){return!!(n&&!_k(n)&&typeof n.getWriter=="function"&&typeof n.abort=="function")}function Isn(n){return!!(n&&!_k(n)&&typeof n.readable=="object"&&typeof n.writable=="object")}function dyr(n){return Tsn(n)||$sn(n)||Isn(n)}function hyr(n,r){return n==null?!1:r===!0?typeof n[HGt]=="function":r===!1?typeof n[UGt]=="function":typeof n[HGt]=="function"||typeof n[UGt]=="function"}function nge(n){if(!_k(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!!(n.destroyed||n[xsn]||l!=null&&l.destroyed)}function Psn(n){if(!tge(n))return null;if(n.writableEnded===!0)return!0;const r=n._writableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function pyr(n,r){if(!tge(n))return null;if(n.writableFinished===!0)return!0;const o=n._writableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.finished)!="boolean"?null:!!(o.finished||r===!1&&o.ended===!0&&o.length===0)}function byr(n){if(!ege(n))return null;if(n.readableEnded===!0)return!0;const r=n._readableState;return!r||r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function Osn(n,r){if(!ege(n))return null;const o=n._readableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.endEmitted)!="boolean"?null:!!(o.endEmitted||r===!1&&o.ended===!0&&o.length===0)}function Nsn(n){return n&&n[EFe]!=null?n[EFe]:typeof(n==null?void 0:n.readable)!="boolean"?null:nge(n)?!1:ege(n)&&n.readable&&!Osn(n)}function Msn(n){return n&&n[kFe]!=null?n[kFe]:typeof(n==null?void 0:n.writable)!="boolean"?null:nge(n)?!1:tge(n)&&n.writable&&!Psn(n)}function gyr(n,r){return _k(n)?nge(n)?!0:!((r==null?void 0:r.readable)!==!1&&Nsn(n)||(r==null?void 0:r.writable)!==!1&&Msn(n)):null}function wyr(n){var r,o;return _k(n)?n.writableErrored?n.writableErrored:(r=(o=n._writableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function myr(n){var r,o;return _k(n)?n.readableErrored?n.readableErrored:(r=(o=n._readableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function yyr(n){if(!_k(n))return null;if(typeof n.closed=="boolean")return n.closed;const r=n._writableState,o=n._readableState;return typeof(r==null?void 0:r.closed)=="boolean"||typeof(o==null?void 0:o.closed)=="boolean"?(r==null?void 0:r.closed)||(o==null?void 0:o.closed):typeof n._closed=="boolean"&&Dsn(n)?n._closed:null}function Dsn(n){return typeof n._closed=="boolean"&&typeof n._defaultKeepAlive=="boolean"&&typeof n._removedConnection=="boolean"&&typeof n._removedContLen=="boolean"}function Lsn(n){return typeof n._sent100=="boolean"&&Dsn(n)}function vyr(n){var r;return typeof n._consuming=="boolean"&&typeof n._dumped=="boolean"&&((r=n.req)===null||r===void 0?void 0:r.upgradeOrConnect)===void 0}function _yr(n){if(!_k(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!l&&Lsn(n)||!!(l&&l.autoDestroy&&l.emitClose&&l.closed===!1)}function Syr(n){var r;return!!(n&&((r=n[Asn])!==null&&r!==void 0?r:n.readableDidRead||n.readableAborted))}function Eyr(n){var r,o,l,u,d,h,w,v,y,E;return!!(n&&((r=(o=(l=(u=(d=(h=n[Csn])!==null&&h!==void 0?h:n.readableErrored)!==null&&d!==void 0?d:n.writableErrored)!==null&&u!==void 0?u:(w=n._readableState)===null||w===void 0?void 0:w.errorEmitted)!==null&&l!==void 0?l:(v=n._writableState)===null||v===void 0?void 0:v.errorEmitted)!==null&&o!==void 0?o:(y=n._readableState)===null||y===void 0?void 0:y.errored)!==null&&r!==void 0?r:!((E=n._writableState)===null||E===void 0)&&E.errored))}var Tx={isDestroyed:nge,kIsDestroyed:xsn,isDisturbed:Syr,kIsDisturbed:Asn,isErrored:Eyr,kIsErrored:Csn,isReadable:Nsn,kIsReadable:EFe,kIsClosedPromise:cyr,kControllerErrorFunction:uyr,kIsWritable:kFe,isClosed:yyr,isDuplexNodeStream:fyr,isFinished:gyr,isIterable:hyr,isReadableNodeStream:ege,isReadableStream:Tsn,isReadableEnded:byr,isReadableFinished:Osn,isReadableErrored:myr,isNodeStream:_k,isWebStream:dyr,isWritable:Msn,isWritableNodeStream:tge,isWritableStream:$sn,isWritableEnded:Psn,isWritableFinished:pyr,isWritableErrored:wyr,isServerRequest:vyr,isServerResponse:Lsn,willEmitClose:_yr,isTransformStream:Isn};const J4=ui,{AbortError:jsn,codes:kyr}=P0,{ERR_INVALID_ARG_TYPE:Ryr,ERR_STREAM_PREMATURE_CLOSE:GGt}=kyr,{kEmptyObject:RFe,once:xFe}=d1,{validateAbortSignal:xyr,validateFunction:Cyr,validateObject:Ayr,validateBoolean:Tyr}=IJ,{Promise:$yr,PromisePrototypeThen:Iyr,SymbolDispose:Fsn}=Bf,{isClosed:Pyr,isReadable:VGt,isReadableNodeStream:MMe,isReadableStream:Oyr,isReadableFinished:zGt,isReadableErrored:KGt,isWritable:qGt,isWritableNodeStream:XGt,isWritableStream:Nyr,isWritableFinished:JGt,isWritableErrored:YGt,isNodeStream:Myr,willEmitClose:Dyr,kIsClosedPromise:Lyr}=Tx;let cL;function jyr(n){return n.setHeader&&typeof n.abort=="function"}const CFe=()=>{};function Bsn(n,r,o){var l,u;if(arguments.length===2?(o=r,r=RFe):r==null?r=RFe:Ayr(r,"options"),Cyr(o,"callback"),xyr(r.signal,"options.signal"),o=xFe(o),Oyr(n)||Nyr(n))return Fyr(n,r,o);if(!Myr(n))throw new Ryr("stream",["ReadableStream","WritableStream","Stream"],n);const d=(l=r.readable)!==null&&l!==void 0?l:MMe(n),h=(u=r.writable)!==null&&u!==void 0?u:XGt(n),w=n._writableState,v=n._readableState,y=()=>{n.writable||C()};let E=Dyr(n)&&MMe(n)===d&&XGt(n)===h,A=JGt(n,!1);const C=()=>{A=!0,n.destroyed&&(E=!1),!(E&&(!n.readable||d))&&(!d||R)&&o.call(n)};let R=zGt(n,!1);const O=()=>{R=!0,n.destroyed&&(E=!1),!(E&&(!n.writable||h))&&(!h||A)&&o.call(n)},M=te=>{o.call(n,te)};let L=Pyr(n);const H=()=>{L=!0;const te=YGt(n)||KGt(n);if(te&&typeof te!="boolean")return o.call(n,te);if(d&&!R&&MMe(n,!0)&&!zGt(n,!1))return o.call(n,new GGt);if(h&&!A&&!JGt(n,!1))return o.call(n,new GGt);o.call(n)},G=()=>{L=!0;const te=YGt(n)||KGt(n);if(te&&typeof te!="boolean")return o.call(n,te);o.call(n)},j=()=>{n.req.on("finish",C)};jyr(n)?(n.on("complete",C),E||n.on("abort",H),n.req?j():n.on("request",j)):h&&!w&&(n.on("end",y),n.on("close",y)),!E&&typeof n.aborted=="boolean"&&n.on("aborted",H),n.on("end",O),n.on("finish",C),r.error!==!1&&n.on("error",M),n.on("close",H),L?J4.nextTick(H):w!=null&&w.errorEmitted||v!=null&&v.errorEmitted?E||J4.nextTick(G):(!d&&(!E||VGt(n))&&(A||qGt(n)===!1)||!h&&(!E||qGt(n))&&(R||VGt(n)===!1)||v&&n.req&&n.aborted)&&J4.nextTick(G);const Q=()=>{o=CFe,n.removeListener("aborted",H),n.removeListener("complete",C),n.removeListener("abort",H),n.removeListener("request",j),n.req&&n.req.removeListener("finish",C),n.removeListener("end",y),n.removeListener("close",y),n.removeListener("finish",C),n.removeListener("end",O),n.removeListener("error",M),n.removeListener("close",H)};if(r.signal&&!L){const te=()=>{const pe=o;Q(),pe.call(n,new jsn(void 0,{cause:r.signal.reason}))};if(r.signal.aborted)J4.nextTick(te);else{cL=cL||d1.addAbortListener;const pe=cL(r.signal,te),De=o;o=xFe((...Re)=>{pe[Fsn](),De.apply(n,Re)})}}return Q}function Fyr(n,r,o){let l=!1,u=CFe;if(r.signal)if(u=()=>{l=!0,o.call(n,new jsn(void 0,{cause:r.signal.reason}))},r.signal.aborted)J4.nextTick(u);else{cL=cL||d1.addAbortListener;const h=cL(r.signal,u),w=o;o=xFe((...v)=>{h[Fsn](),w.apply(n,v)})}const d=(...h)=>{l||J4.nextTick(()=>o.apply(n,h))};return Iyr(n[Lyr].promise,d,d),CFe}function Byr(n,r){var o;let l=!1;return r===null&&(r=RFe),(o=r)!==null&&o!==void 0&&o.cleanup&&(Tyr(r.cleanup,"cleanup"),l=r.cleanup),new $yr((u,d)=>{const h=Bsn(n,r,w=>{l&&h(),w?d(w):u()})})}uGe.exports=Bsn;uGe.exports.finished=Byr;var HT=uGe.exports;const zE=ui,{aggregateTwoErrors:Wyr,codes:{ERR_MULTIPLE_CALLBACK:Hyr},AbortError:Uyr}=P0,{Symbol:Wsn}=Bf,{kIsDestroyed:Gyr,isDestroyed:Vyr,isFinished:zyr,isServerRequest:Kyr}=Tx,Hsn=Wsn("kDestroy"),AFe=Wsn("kConstruct");function Usn(n,r,o){n&&(n.stack,r&&!r.errored&&(r.errored=n),o&&!o.errored&&(o.errored=n))}function qyr(n,r){const o=this._readableState,l=this._writableState,u=l||o;return l!=null&&l.destroyed||o!=null&&o.destroyed?(typeof r=="function"&&r(),this):(Usn(n,l,o),l&&(l.destroyed=!0),o&&(o.destroyed=!0),u.constructed?QGt(this,n,r):this.once(Hsn,function(d){QGt(this,Wyr(d,n),r)}),this)}function QGt(n,r,o){let l=!1;function u(d){if(l)return;l=!0;const h=n._readableState,w=n._writableState;Usn(d,w,h),w&&(w.closed=!0),h&&(h.closed=!0),typeof o=="function"&&o(d),d?zE.nextTick(Xyr,n,d):zE.nextTick(Gsn,n)}try{n._destroy(r||null,u)}catch(d){u(d)}}function Xyr(n,r){TFe(n,r),Gsn(n)}function Gsn(n){const r=n._readableState,o=n._writableState;o&&(o.closeEmitted=!0),r&&(r.closeEmitted=!0),(o!=null&&o.emitClose||r!=null&&r.emitClose)&&n.emit("close")}function TFe(n,r){const o=n._readableState,l=n._writableState;l!=null&&l.errorEmitted||o!=null&&o.errorEmitted||(l&&(l.errorEmitted=!0),o&&(o.errorEmitted=!0),n.emit("error",r))}function Jyr(){const n=this._readableState,r=this._writableState;n&&(n.constructed=!0,n.closed=!1,n.closeEmitted=!1,n.destroyed=!1,n.errored=null,n.errorEmitted=!1,n.reading=!1,n.ended=n.readable===!1,n.endEmitted=n.readable===!1),r&&(r.constructed=!0,r.destroyed=!1,r.closed=!1,r.closeEmitted=!1,r.errored=null,r.errorEmitted=!1,r.finalCalled=!1,r.prefinished=!1,r.ended=r.writable===!1,r.ending=r.writable===!1,r.finished=r.writable===!1)}function $Fe(n,r,o){const l=n._readableState,u=n._writableState;if(u!=null&&u.destroyed||l!=null&&l.destroyed)return this;l!=null&&l.autoDestroy||u!=null&&u.autoDestroy?n.destroy(r):r&&(r.stack,u&&!u.errored&&(u.errored=r),l&&!l.errored&&(l.errored=r),o?zE.nextTick(TFe,n,r):TFe(n,r))}function Yyr(n,r){if(typeof n._construct!="function")return;const o=n._readableState,l=n._writableState;o&&(o.constructed=!1),l&&(l.constructed=!1),n.once(AFe,r),!(n.listenerCount(AFe)>1)&&zE.nextTick(Qyr,n)}function Qyr(n){let r=!1;function o(l){if(r){$Fe(n,l??new Hyr);return}r=!0;const u=n._readableState,d=n._writableState,h=d||u;u&&(u.constructed=!0),d&&(d.constructed=!0),h.destroyed?n.emit(Hsn,l):l?$Fe(n,l,!0):zE.nextTick(Zyr,n)}try{n._construct(l=>{zE.nextTick(o,l)})}catch(l){zE.nextTick(o,l)}}function Zyr(n){n.emit(AFe)}function ZGt(n){return(n==null?void 0:n.setHeader)&&typeof n.abort=="function"}function Vsn(n){n.emit("close")}function evr(n,r){n.emit("error",r),zE.nextTick(Vsn,n)}function tvr(n,r){!n||Vyr(n)||(!r&&!zyr(n)&&(r=new Uyr),Kyr(n)?(n.socket=null,n.destroy(r)):ZGt(n)?n.abort():ZGt(n.req)?n.req.abort():typeof n.destroy=="function"?n.destroy(r):typeof n.close=="function"?n.close():r?zE.nextTick(evr,n,r):zE.nextTick(Vsn,n),n.destroyed||(n[Gyr]=!0))}var kj={construct:Yyr,destroyer:tvr,destroy:qyr,undestroy:Jyr,errorOrDestroy:$Fe};const{ArrayIsArray:nvr,ObjectSetPrototypeOf:zsn}=Bf,{EventEmitter:rge}=Ns;function ige(n){rge.call(this,n)}zsn(ige.prototype,rge.prototype);zsn(ige,rge);ige.prototype.pipe=function(n,r){const o=this;function l(E){n.writable&&n.write(E)===!1&&o.pause&&o.pause()}o.on("data",l);function u(){o.readable&&o.resume&&o.resume()}n.on("drain",u),!n._isStdio&&(!r||r.end!==!1)&&(o.on("end",h),o.on("close",w));let d=!1;function h(){d||(d=!0,n.end())}function w(){d||(d=!0,typeof n.destroy=="function"&&n.destroy())}function v(E){y(),rge.listenerCount(this,"error")===0&&this.emit("error",E)}IFe(o,"error",v),IFe(n,"error",v);function y(){o.removeListener("data",l),n.removeListener("drain",u),o.removeListener("end",h),o.removeListener("close",w),o.removeListener("error",v),n.removeListener("error",v),o.removeListener("end",y),o.removeListener("close",y),n.removeListener("close",y)}return o.on("end",y),o.on("close",y),n.on("close",y),n.emit("pipe",o),n};function IFe(n,r,o){if(typeof n.prependListener=="function")return n.prependListener(r,o);!n._events||!n._events[r]?n.on(r,o):nvr(n._events[r])?n._events[r].unshift(o):n._events[r]=[o,n._events[r]]}var fGe={Stream:ige,prependListener:IFe},Ksn={exports:{}};(function(n){const{SymbolDispose:r}=Bf,{AbortError:o,codes:l}=P0,{isNodeStream:u,isWebStream:d,kControllerErrorFunction:h}=Tx,w=HT,{ERR_INVALID_ARG_TYPE:v}=l;let y;const E=(A,C)=>{if(typeof A!="object"||!("aborted"in A))throw new v(C,"AbortSignal",A)};n.exports.addAbortSignal=function(C,R){if(E(C,"signal"),!u(R)&&!d(R))throw new v("stream",["ReadableStream","WritableStream","Stream"],R);return n.exports.addAbortSignalNoValidate(C,R)},n.exports.addAbortSignalNoValidate=function(A,C){if(typeof A!="object"||!("aborted"in A))return C;const R=u(C)?()=>{C.destroy(new o(void 0,{cause:A.reason}))}:()=>{C[h](new o(void 0,{cause:A.reason}))};if(A.aborted)R();else{y=y||d1.addAbortListener;const O=y(A,R);w(C,O[r])}return C}})(Ksn);var oge=Ksn.exports;const{StringPrototypeSlice:eVt,SymbolIterator:rvr,TypedArrayPrototypeSet:Nue,Uint8Array:ivr}=Bf,{Buffer:DMe}=Kr,{inspect:ovr}=d1;var svr=class{constructor(){this.head=null,this.tail=null,this.length=0}push(r){const o={data:r,next:null};this.length>0?this.tail.next=o:this.head=o,this.tail=o,++this.length}unshift(r){const o={data:r,next:this.head};this.length===0&&(this.tail=o),this.head=o,++this.length}shift(){if(this.length===0)return;const r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}clear(){this.head=this.tail=null,this.length=0}join(r){if(this.length===0)return"";let o=this.head,l=""+o.data;for(;(o=o.next)!==null;)l+=r+o.data;return l}concat(r){if(this.length===0)return DMe.alloc(0);const o=DMe.allocUnsafe(r>>>0);let l=this.head,u=0;for(;l;)Nue(o,l.data,u),u+=l.data.length,l=l.next;return o}consume(r,o){const l=this.head.data;if(rd.length)o+=d,r-=d.length;else{r===d.length?(o+=d,++u,l.next?this.head=l.next:this.head=this.tail=null):(o+=eVt(d,0,r),this.head=l,l.data=eVt(d,r));break}++u}while((l=l.next)!==null);return this.length-=u,o}_getBuffer(r){const o=DMe.allocUnsafe(r),l=r;let u=this.head,d=0;do{const h=u.data;if(r>h.length)Nue(o,h,l-r),r-=h.length;else{r===h.length?(Nue(o,h,l-r),++d,u.next?this.head=u.next:this.head=this.tail=null):(Nue(o,new ivr(h.buffer,h.byteOffset,r),l-r),this.head=u,u.data=h.slice(r));break}++d}while((u=u.next)!==null);return this.length-=d,o}[Symbol.for("nodejs.util.inspect.custom")](r,o){return ovr(this,{...o,depth:0,customInspect:!1})}};const{MathFloor:lvr,NumberIsInteger:avr}=Bf,{validateInteger:cvr}=IJ,{ERR_INVALID_ARG_VALUE:uvr}=P0.codes;let qsn=16*1024,Xsn=16;function fvr(n,r,o){return n.highWaterMark!=null?n.highWaterMark:r?n[o]:null}function Jsn(n){return n?Xsn:qsn}function dvr(n,r){cvr(r,"value",0),n?Xsn=r:qsn=r}function hvr(n,r,o,l){const u=fvr(r,l,o);if(u!=null){if(!avr(u)||u<0){const d=l?`options.${o}`:"options.highWaterMark";throw new uvr(d,u)}return lvr(u)}return Jsn(n.objectMode)}var sge={getHighWaterMark:hvr,getDefaultHighWaterMark:Jsn,setDefaultHighWaterMark:dvr};const tVt=ui,{PromisePrototypeThen:pvr,SymbolAsyncIterator:nVt,SymbolIterator:rVt}=Bf,{Buffer:bvr}=Kr,{ERR_INVALID_ARG_TYPE:gvr,ERR_STREAM_NULL_VALUES:wvr}=P0.codes;function mvr(n,r,o){let l;if(typeof r=="string"||r instanceof bvr)return new n({objectMode:!0,...o,read(){this.push(r),this.push(null)}});let u;if(r&&r[nVt])u=!0,l=r[nVt]();else if(r&&r[rVt])u=!1,l=r[rVt]();else throw new gvr("iterable",["Iterable"],r);const d=new n({objectMode:!0,highWaterMark:1,...o});let h=!1;d._read=function(){h||(h=!0,v())},d._destroy=function(y,E){pvr(w(y),()=>tVt.nextTick(E,y),A=>tVt.nextTick(E,A||y))};async function w(y){const E=y!=null,A=typeof l.throw=="function";if(E&&A){const{value:C,done:R}=await l.throw(y);if(await C,R)return}if(typeof l.return=="function"){const{value:C}=await l.return();await C}}async function v(){for(;;){try{const{value:y,done:E}=u?await l.next():l.next();if(E)d.push(null);else{const A=y&&typeof y.then=="function"?await y:y;if(A===null)throw h=!1,new wvr;if(d.push(A))continue;h=!1}}catch(y){d.destroy(y)}break}}return d}var Ysn=mvr,LMe,iVt;function lge(){if(iVt)return LMe;iVt=1;const n=ui,{ArrayPrototypeIndexOf:r,NumberIsInteger:o,NumberIsNaN:l,NumberParseInt:u,ObjectDefineProperties:d,ObjectKeys:h,ObjectSetPrototypeOf:w,Promise:v,SafeSet:y,SymbolAsyncDispose:E,SymbolAsyncIterator:A,Symbol:C}=Bf;LMe=he,he.ReadableState=_t;const{EventEmitter:R}=Ns,{Stream:O,prependListener:M}=fGe,{Buffer:L}=Kr,{addAbortSignal:H}=oge,G=HT;let j=d1.debuglog("stream",S=>{j=S});const Q=svr,te=kj,{getHighWaterMark:pe,getDefaultHighWaterMark:De}=sge,{aggregateTwoErrors:Re,codes:{ERR_INVALID_ARG_TYPE:le,ERR_METHOD_NOT_IMPLEMENTED:xe,ERR_OUT_OF_RANGE:be,ERR_STREAM_PUSH_AFTER_EOF:ae,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:F},AbortError:me}=P0,{validateObject:ye}=IJ,we=C("kPaused"),{StringDecoder:Be}=rm,He=Ysn;w(he.prototype,O.prototype),w(he,O);const Ue=()=>{},{errorOrDestroy:Ge}=te,Le=1,ft=2,re=4,Te=8,dt=16,at=32,Qe=64,yt=128,Lt=256,nn=512,Pe=1024,Ne=2048,T=4096,$=8192,B=16384,K=32768,q=65536,ke=1<<17,Ee=1<<18;function Ie(S){return{enumerable:!1,get(){return(this.state&S)!==0},set(x){x?this.state|=S:this.state&=~S}}}d(_t.prototype,{objectMode:Ie(Le),ended:Ie(ft),endEmitted:Ie(re),reading:Ie(Te),constructed:Ie(dt),sync:Ie(at),needReadable:Ie(Qe),emittedReadable:Ie(yt),readableListening:Ie(Lt),resumeScheduled:Ie(nn),errorEmitted:Ie(Pe),emitClose:Ie(Ne),autoDestroy:Ie(T),destroyed:Ie($),closed:Ie(B),closeEmitted:Ie(K),multiAwaitDrain:Ie(q),readingMore:Ie(ke),dataEmitted:Ie(Ee)});function _t(S,x,Y){typeof Y!="boolean"&&(Y=x instanceof lx()),this.state=Ne|T|dt|at,S&&S.objectMode&&(this.state|=Le),Y&&S&&S.readableObjectMode&&(this.state|=Le),this.highWaterMark=S?pe(this,S,"readableHighWaterMark",Y):De(!1),this.buffer=new Q,this.length=0,this.pipes=[],this.flowing=null,this[we]=null,S&&S.emitClose===!1&&(this.state&=~Ne),S&&S.autoDestroy===!1&&(this.state&=~T),this.errored=null,this.defaultEncoding=S&&S.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,S&&S.encoding&&(this.decoder=new Be(S.encoding),this.encoding=S.encoding)}function he(S){if(!(this instanceof he))return new he(S);const x=this instanceof lx();this._readableState=new _t(S,this,x),S&&(typeof S.read=="function"&&(this._read=S.read),typeof S.destroy=="function"&&(this._destroy=S.destroy),typeof S.construct=="function"&&(this._construct=S.construct),S.signal&&!x&&H(S.signal,this)),O.call(this,S),te.construct(this,()=>{this._readableState.needReadable&&pt(this,this._readableState)})}he.prototype.destroy=te.destroy,he.prototype._undestroy=te.undestroy,he.prototype._destroy=function(S,x){x(S)},he.prototype[R.captureRejectionSymbol]=function(S){this.destroy(S)},he.prototype[E]=function(){let S;return this.destroyed||(S=this.readableEnded?null:new me,this.destroy(S)),new v((x,Y)=>G(this,J=>J&&J!==S?Y(J):x(null)))},he.prototype.push=function(S,x){return Xt(this,S,x,!1)},he.prototype.unshift=function(S,x){return Xt(this,S,x,!0)};function Xt(S,x,Y,J){j("readableAddChunk",x);const ue=S._readableState;let Yt;if(ue.state&Le||(typeof x=="string"?(Y=Y||ue.defaultEncoding,ue.encoding!==Y&&(J&&ue.encoding?x=L.from(x,Y).toString(ue.encoding):(x=L.from(x,Y),Y=""))):x instanceof L?Y="":O._isUint8Array(x)?(x=O._uint8ArrayToBuffer(x),Y=""):x!=null&&(Yt=new le("chunk",["string","Buffer","Uint8Array"],x))),Yt)Ge(S,Yt);else if(x===null)ue.state&=~Te,ce(S,ue);else if(ue.state&Le||x&&x.length>0)if(J)if(ue.state&re)Ge(S,new F);else{if(ue.destroyed||ue.errored)return!1;Zt(S,ue,x,!0)}else if(ue.ended)Ge(S,new ae);else{if(ue.destroyed||ue.errored)return!1;ue.state&=~Te,ue.decoder&&!Y?(x=ue.decoder.write(x),ue.objectMode||x.length!==0?Zt(S,ue,x,!1):pt(S,ue)):Zt(S,ue,x,!1)}else J||(ue.state&=~Te,pt(S,ue));return!ue.ended&&(ue.length0?(x.state&q?x.awaitDrainWriters.clear():x.awaitDrainWriters=null,x.dataEmitted=!0,S.emit("data",Y)):(x.length+=x.objectMode?1:Y.length,J?x.buffer.unshift(Y):x.buffer.push(Y),x.state&Qe&&de(S)),pt(S,x)}he.prototype.isPaused=function(){const S=this._readableState;return S[we]===!0||S.flowing===!1},he.prototype.setEncoding=function(S){const x=new Be(S);this._readableState.decoder=x,this._readableState.encoding=this._readableState.decoder.encoding;const Y=this._readableState.buffer;let J="";for(const ue of Y)J+=x.write(ue);return Y.clear(),J!==""&&Y.push(J),this._readableState.length=J.length,this};const $n=1073741824;function Gn(S){if(S>$n)throw new be("size","<= 1GiB",S);return S--,S|=S>>>1,S|=S>>>2,S|=S>>>4,S|=S>>>8,S|=S>>>16,S++,S}function $e(S,x){return S<=0||x.length===0&&x.ended?0:x.state&Le?1:l(S)?x.flowing&&x.length?x.buffer.first().length:x.length:S<=x.length?S:x.ended?x.length:0}he.prototype.read=function(S){j("read",S),S===void 0?S=NaN:o(S)||(S=u(S,10));const x=this._readableState,Y=S;if(S>x.highWaterMark&&(x.highWaterMark=Gn(S)),S!==0&&(x.state&=~yt),S===0&&x.needReadable&&((x.highWaterMark!==0?x.length>=x.highWaterMark:x.length>0)||x.ended))return j("read: emitReadable",x.length,x.ended),x.length===0&&x.ended?co(this):de(this),null;if(S=$e(S,x),S===0&&x.ended)return x.length===0&&co(this),null;let J=(x.state&Qe)!==0;if(j("need readable",J),(x.length===0||x.length-S0?ue=Al(S,x):ue=null,ue===null?(x.needReadable=x.length<=x.highWaterMark,S=0):(x.length-=S,x.multiAwaitDrain?x.awaitDrainWriters.clear():x.awaitDrainWriters=null),x.length===0&&(x.ended||(x.needReadable=!0),Y!==S&&x.ended&&co(this)),ue!==null&&!x.errorEmitted&&!x.closeEmitted&&(x.dataEmitted=!0,this.emit("data",ue)),ue};function ce(S,x){if(j("onEofChunk"),!x.ended){if(x.decoder){const Y=x.decoder.end();Y&&Y.length&&(x.buffer.push(Y),x.length+=x.objectMode?1:Y.length)}x.ended=!0,x.sync?de(S):(x.needReadable=!1,x.emittedReadable=!0,et(S))}}function de(S){const x=S._readableState;j("emitReadable",x.needReadable,x.emittedReadable),x.needReadable=!1,x.emittedReadable||(j("emitReadable",x.flowing),x.emittedReadable=!0,n.nextTick(et,S))}function et(S){const x=S._readableState;j("emitReadable_",x.destroyed,x.length,x.ended),!x.destroyed&&!x.errored&&(x.length||x.ended)&&(S.emit("readable"),x.emittedReadable=!1),x.needReadable=!x.flowing&&!x.ended&&x.length<=x.highWaterMark,xi(S)}function pt(S,x){!x.readingMore&&x.constructed&&(x.readingMore=!0,n.nextTick(Jt,S,x))}function Jt(S,x){for(;!x.reading&&!x.ended&&(x.length1&&J.pipes.includes(S)&&(j("false write response, pause",J.awaitDrainWriters.size),J.awaitDrainWriters.add(S)),Y.pause()),Fr||(Fr=Qt(Y,S),S.on("drain",Fr))}Y.on("data",ml);function ml(jr){j("ondata");const lr=S.write(jr);j("dest.write",lr),lr===!1&&Rs()}function gs(jr){if(j("onerror",jr),wi(),S.removeListener("error",gs),S.listenerCount("error")===0){const lr=S._writableState||S._readableState;lr&&!lr.errorEmitted?Ge(S,jr):S.emit("error",jr)}}M(S,"error",gs);function as(){S.removeListener("finish",ws),wi()}S.once("close",as);function ws(){j("onfinish"),S.removeListener("close",as),wi()}S.once("finish",ws);function wi(){j("unpipe"),Y.unpipe(S)}return S.emit("pipe",Y),S.writableNeedDrain===!0?Rs():J.flowing||(j("pipe resume"),Y.resume()),S};function Qt(S,x){return function(){const J=S._readableState;J.awaitDrainWriters===x?(j("pipeOnDrain",1),J.awaitDrainWriters=null):J.multiAwaitDrain&&(j("pipeOnDrain",J.awaitDrainWriters.size),J.awaitDrainWriters.delete(x)),(!J.awaitDrainWriters||J.awaitDrainWriters.size===0)&&S.listenerCount("data")&&S.resume()}}he.prototype.unpipe=function(S){const x=this._readableState,Y={hasUnpiped:!1};if(x.pipes.length===0)return this;if(!S){const ue=x.pipes;x.pipes=[],this.pause();for(let Yt=0;Yt0,J.flowing!==!1&&this.resume()):S==="readable"&&!J.endEmitted&&!J.readableListening&&(J.readableListening=J.needReadable=!0,J.flowing=!1,J.emittedReadable=!1,j("on readable",J.length,J.reading),J.length?de(this):J.reading||n.nextTick(ao,this)),Y},he.prototype.addListener=he.prototype.on,he.prototype.removeListener=function(S,x){const Y=O.prototype.removeListener.call(this,S,x);return S==="readable"&&n.nextTick(qr,this),Y},he.prototype.off=he.prototype.removeListener,he.prototype.removeAllListeners=function(S){const x=O.prototype.removeAllListeners.apply(this,arguments);return(S==="readable"||S===void 0)&&n.nextTick(qr,this),x};function qr(S){const x=S._readableState;x.readableListening=S.listenerCount("readable")>0,x.resumeScheduled&&x[we]===!1?x.flowing=!0:S.listenerCount("data")>0?S.resume():x.readableListening||(x.flowing=null)}function ao(S){j("readable nexttick read 0"),S.read(0)}he.prototype.resume=function(){const S=this._readableState;return S.flowing||(j("resume"),S.flowing=!S.readableListening,ki(this,S)),S[we]=!1,this};function ki(S,x){x.resumeScheduled||(x.resumeScheduled=!0,n.nextTick(Ri,S,x))}function Ri(S,x){j("resume",x.reading),x.reading||S.read(0),x.resumeScheduled=!1,S.emit("resume"),xi(S),x.flowing&&!x.reading&&S.read(0)}he.prototype.pause=function(){return j("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(j("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[we]=!0,this};function xi(S){const x=S._readableState;for(j("flow",x.flowing);x.flowing&&S.read()!==null;);}he.prototype.wrap=function(S){let x=!1;S.on("data",J=>{!this.push(J)&&S.pause&&(x=!0,S.pause())}),S.on("end",()=>{this.push(null)}),S.on("error",J=>{Ge(this,J)}),S.on("close",()=>{this.destroy()}),S.on("destroy",()=>{this.destroy()}),this._read=()=>{x&&S.resume&&(x=!1,S.resume())};const Y=h(S);for(let J=1;J{ue=An?Re(ue,An):null,Y(),Y=Ue});try{for(;;){const An=S.destroyed?null:S.read();if(An!==null)yield An;else{if(ue)throw ue;if(ue===null)return;await new v(J)}}}catch(An){throw ue=Re(ue,An),ue}finally{(ue||(x==null?void 0:x.destroyOnReturn)!==!1)&&(ue===void 0||S._readableState.autoDestroy)?te.destroyer(S,null):(S.off("readable",J),Yt())}}d(he.prototype,{readable:{__proto__:null,get(){const S=this._readableState;return!!S&&S.readable!==!1&&!S.destroyed&&!S.errorEmitted&&!S.endEmitted},set(S){this._readableState&&(this._readableState.readable=!!S)}},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(S){this._readableState&&(this._readableState.flowing=S)}},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(S){this._readableState&&(this._readableState.destroyed=S)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),d(_t.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[we]!==!1},set(S){this[we]=!!S}}}),he._fromList=Al;function Al(S,x){if(x.length===0)return null;let Y;return x.objectMode?Y=x.buffer.shift():!S||S>=x.length?(x.decoder?Y=x.buffer.join(""):x.buffer.length===1?Y=x.buffer.first():Y=x.buffer.concat(x.length),x.buffer.clear()):Y=x.buffer.consume(S,x.decoder),Y}function co(S){const x=S._readableState;j("endReadable",x.endEmitted),x.endEmitted||(x.ended=!0,n.nextTick(Zc,x,S))}function Zc(S,x){if(j("endReadableNT",S.endEmitted,S.length),!S.errored&&!S.closeEmitted&&!S.endEmitted&&S.length===0){if(S.endEmitted=!0,x.emit("end"),x.writable&&x.allowHalfOpen===!1)n.nextTick(bu,x);else if(S.autoDestroy){const Y=x._writableState;(!Y||Y.autoDestroy&&(Y.finished||Y.writable===!1))&&x.destroy()}}}function bu(S){S.writable&&!S.writableEnded&&!S.destroyed&&S.end()}he.from=function(S,x){return He(he,S,x)};let So;function ql(){return So===void 0&&(So={}),So}return he.fromWeb=function(S,x){return ql().newStreamReadableFromReadableStream(S,x)},he.toWeb=function(S,x){return ql().newReadableStreamFromStreamReadable(S,x)},he.wrap=function(S,x){var Y,J;return new he({objectMode:(Y=(J=S.readableObjectMode)!==null&&J!==void 0?J:S.objectMode)!==null&&Y!==void 0?Y:!0,...x,destroy(ue,Yt){te.destroyer(S,ue),Yt(ue)}}).wrap(S)},LMe}var jMe,oVt;function dGe(){if(oVt)return jMe;oVt=1;const n=ui,{ArrayPrototypeSlice:r,Error:o,FunctionPrototypeSymbolHasInstance:l,ObjectDefineProperty:u,ObjectDefineProperties:d,ObjectSetPrototypeOf:h,StringPrototypeToLowerCase:w,Symbol:v,SymbolHasInstance:y}=Bf;jMe=ye,ye.WritableState=F;const{EventEmitter:E}=Ns,A=fGe.Stream,{Buffer:C}=Kr,R=kj,{addAbortSignal:O}=oge,{getHighWaterMark:M,getDefaultHighWaterMark:L}=sge,{ERR_INVALID_ARG_TYPE:H,ERR_METHOD_NOT_IMPLEMENTED:G,ERR_MULTIPLE_CALLBACK:j,ERR_STREAM_CANNOT_PIPE:Q,ERR_STREAM_DESTROYED:te,ERR_STREAM_ALREADY_FINISHED:pe,ERR_STREAM_NULL_VALUES:De,ERR_STREAM_WRITE_AFTER_END:Re,ERR_UNKNOWN_ENCODING:le}=P0.codes,{errorOrDestroy:xe}=R;h(ye.prototype,A.prototype),h(ye,A);function be(){}const ae=v("kOnFinished");function F(T,$,B){typeof B!="boolean"&&(B=$ instanceof lx()),this.objectMode=!!(T&&T.objectMode),B&&(this.objectMode=this.objectMode||!!(T&&T.writableObjectMode)),this.highWaterMark=T?M(this,T,"writableHighWaterMark",B):L(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const K=!!(T&&T.decodeStrings===!1);this.decodeStrings=!K,this.defaultEncoding=T&&T.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=Ge.bind(void 0,$),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,me(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[ae]=[]}function me(T){T.buffered=[],T.bufferedIndex=0,T.allBuffers=!0,T.allNoop=!0}F.prototype.getBuffer=function(){return r(this.buffered,this.bufferedIndex)},u(F.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function ye(T){const $=this instanceof lx();if(!$&&!l(ye,this))return new ye(T);this._writableState=new F(T,this,$),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&&O(T.signal,this)),A.call(this,T),R.construct(this,()=>{const B=this._writableState;B.writing||Te(this,B),yt(this,B)})}u(ye,y,{__proto__:null,value:function(T){return l(this,T)?!0:this!==ye?!1:T&&T._writableState instanceof F}}),ye.prototype.pipe=function(){xe(this,new Q)};function we(T,$,B,K){const q=T._writableState;if(typeof B=="function")K=B,B=q.defaultEncoding;else{if(!B)B=q.defaultEncoding;else if(B!=="buffer"&&!C.isEncoding(B))throw new le(B);typeof K!="function"&&(K=be)}if($===null)throw new De;if(!q.objectMode)if(typeof $=="string")q.decodeStrings!==!1&&($=C.from($,B),B="buffer");else if($ instanceof C)B="buffer";else if(A._isUint8Array($))$=A._uint8ArrayToBuffer($),B="buffer";else throw new H("chunk",["string","Buffer","Uint8Array"],$);let ke;return q.ending?ke=new Re:q.destroyed&&(ke=new te("write")),ke?(n.nextTick(K,ke),xe(T,ke,!0),ke):(q.pendingcb++,Be(T,q,$,B,K))}ye.prototype.write=function(T,$,B){return we(this,T,$,B)===!0},ye.prototype.cork=function(){this._writableState.corked++},ye.prototype.uncork=function(){const T=this._writableState;T.corked&&(T.corked--,T.writing||Te(this,T))},ye.prototype.setDefaultEncoding=function($){if(typeof $=="string"&&($=w($)),!C.isEncoding($))throw new le($);return this._writableState.defaultEncoding=$,this};function Be(T,$,B,K,q){const ke=$.objectMode?1:B.length;$.length+=ke;const Ee=$.length<$.highWaterMark;return Ee||($.needDrain=!0),$.writing||$.corked||$.errored||!$.constructed?($.buffered.push({chunk:B,encoding:K,callback:q}),$.allBuffers&&K!=="buffer"&&($.allBuffers=!1),$.allNoop&&q!==be&&($.allNoop=!1)):($.writelen=ke,$.writecb=q,$.writing=!0,$.sync=!0,T._write(B,K,$.onwrite),$.sync=!1),Ee&&!$.errored&&!$.destroyed}function He(T,$,B,K,q,ke,Ee){$.writelen=K,$.writecb=Ee,$.writing=!0,$.sync=!0,$.destroyed?$.onwrite(new te("write")):B?T._writev(q,$.onwrite):T._write(q,ke,$.onwrite),$.sync=!1}function Ue(T,$,B,K){--$.pendingcb,K(B),re($),xe(T,B)}function Ge(T,$){const B=T._writableState,K=B.sync,q=B.writecb;if(typeof q!="function"){xe(T,new j);return}B.writing=!1,B.writecb=null,B.length-=B.writelen,B.writelen=0,$?($.stack,B.errored||(B.errored=$),T._readableState&&!T._readableState.errored&&(T._readableState.errored=$),K?n.nextTick(Ue,T,B,$,q):Ue(T,B,$,q)):(B.buffered.length>B.bufferedIndex&&Te(T,B),K?B.afterWriteTickInfo!==null&&B.afterWriteTickInfo.cb===q?B.afterWriteTickInfo.count++:(B.afterWriteTickInfo={count:1,cb:q,stream:T,state:B},n.nextTick(Le,B.afterWriteTickInfo)):ft(T,B,1,q))}function Le({stream:T,state:$,count:B,cb:K}){return $.afterWriteTickInfo=null,ft(T,$,B,K)}function ft(T,$,B,K){for(!$.ending&&!T.destroyed&&$.length===0&&$.needDrain&&($.needDrain=!1,T.emit("drain"));B-- >0;)$.pendingcb--,K();$.destroyed&&re($),yt(T,$)}function re(T){if(T.writing)return;for(let q=T.bufferedIndex;q1&&T._writev){$.pendingcb-=ke-1;const Ie=$.allNoop?be:he=>{for(let Xt=Ee;Xt256?(B.splice(0,Ee),$.bufferedIndex=0):$.bufferedIndex=Ee}$.bufferProcessing=!1}ye.prototype._write=function(T,$,B){if(this._writev)this._writev([{chunk:T,encoding:$}],B);else throw new G("_write()")},ye.prototype._writev=null,ye.prototype.end=function(T,$,B){const K=this._writableState;typeof T=="function"?(B=T,T=null,$=null):typeof $=="function"&&(B=$,$=null);let q;if(T!=null){const ke=we(this,T,$);ke instanceof o&&(q=ke)}return K.corked&&(K.corked=1,this.uncork()),q||(!K.errored&&!K.ending?(K.ending=!0,yt(this,K,!0),K.ended=!0):K.finished?q=new pe("end"):K.destroyed&&(q=new te("end"))),typeof B=="function"&&(q||K.finished?n.nextTick(B,q):K[ae].push(B)),this};function dt(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 at(T,$){let B=!1;function K(q){if(B){xe(T,q??j());return}if(B=!0,$.pendingcb--,q){const ke=$[ae].splice(0);for(let Ee=0;Ee{dt(q)?Lt(K,q):q.pendingcb--},T,$)):dt($)&&($.pendingcb++,Lt(T,$))))}function Lt(T,$){$.pendingcb--,$.finished=!0;const B=$[ae].splice(0);for(let K=0;K{if(re!=null)throw new O("nully","body",re)},re=>{M(Le,re)});return Le=new le({objectMode:!0,readable:!1,write:Be,final(re){He(async()=>{try{await ft,n.nextTick(re,null)}catch(Te){n.nextTick(re,Te)}})},destroy:Ue})}throw new O("Iterable, AsyncIterable or AsyncFunction",me,we)}if(pe(F))return ae(F.arrayBuffer());if(u(F))return Q(le,F,{objectMode:!0,writable:!1});if(y(F==null?void 0:F.readable)&&E(F==null?void 0:F.writable))return le.fromWeb(F);if(typeof(F==null?void 0:F.writable)=="object"||typeof(F==null?void 0:F.readable)=="object"){const we=F!=null&&F.readable?h(F==null?void 0:F.readable)?F==null?void 0:F.readable:ae(F.readable):void 0,Be=F!=null&&F.writable?w(F==null?void 0:F.writable)?F==null?void 0:F.writable:ae(F.writable):void 0;return be({readable:we,writable:Be})}const ye=F==null?void 0:F.then;if(typeof ye=="function"){let we;return Re(ye,F,Be=>{Be!=null&&we.push(Be),we.push(null)},Be=>{M(we,Be)}),we=new le({objectMode:!0,writable:!1,read(){}})}throw new R(me,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],F)};function xe(ae){let{promise:F,resolve:me}=j();const ye=new De,we=ye.signal;return{value:ae(async function*(){for(;;){const He=F;F=null;const{chunk:Ue,done:Ge,cb:Le}=await He;if(n.nextTick(Le),Ge)return;if(we.aborted)throw new C(void 0,{cause:we.reason});({promise:F,resolve:me}=j()),yield Ue}}(),{signal:we}),write(He,Ue,Ge){const Le=me;me=null,Le({chunk:He,done:!1,cb:Ge})},final(He){const Ue=me;me=null,Ue({done:!0,cb:He})},destroy(He,Ue){ye.abort(),Ue(He)}}}function be(ae){const F=ae.readable&&typeof ae.readable.read!="function"?H.wrap(ae.readable):ae.readable,me=ae.writable;let ye=!!o(F),we=!!l(me),Be,He,Ue,Ge,Le;function ft(re){const Te=Ge;Ge=null,Te?Te(re):re&&Le.destroy(re)}return Le=new le({readableObjectMode:!!(F!=null&&F.readableObjectMode),writableObjectMode:!!(me!=null&&me.writableObjectMode),readable:ye,writable:we}),we&&(A(me,re=>{we=!1,re&&M(F,re),ft(re)}),Le._write=function(re,Te,dt){me.write(re,Te)?dt():Be=dt},Le._final=function(re){me.end(),He=re},me.on("drain",function(){if(Be){const re=Be;Be=null,re()}}),me.on("finish",function(){if(He){const re=He;He=null,re()}})),ye&&(A(F,re=>{ye=!1,re&&M(F,re),ft(re)}),F.on("readable",function(){if(Ue){const re=Ue;Ue=null,re()}}),F.on("end",function(){Le.push(null)}),Le._read=function(){for(;;){const re=F.read();if(re===null){Ue=Le._read;return}if(!Le.push(re))return}}),Le._destroy=function(re,Te){!re&&Ge!==null&&(re=new C),Ue=null,Be=null,He=null,Ge===null?Te(re):(Ge=Te,M(me,re),M(F,re))},Le}return FMe}var BMe,lVt;function lx(){if(lVt)return BMe;lVt=1;const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:o,ObjectSetPrototypeOf:l}=Bf;BMe=h;const u=lge(),d=dGe();l(h.prototype,u.prototype),l(h,u);{const E=o(d.prototype);for(let A=0;A{if(r){n?n(r):this.destroy(r);return}o!=null&&this.push(o),this.push(null),n&&n()}):(this.push(null),n&&n())}function Evr(){this._final!==PFe&&PFe.call(this)}ax.prototype._final=PFe;ax.prototype._transform=function(n,r,o){throw new _vr("_transform()")};ax.prototype._write=function(n,r,o){const l=this._readableState,u=this._writableState,d=l.length;this._transform(n,r,(h,w)=>{if(h){o(h);return}w!=null&&this.push(w),u.ended||d===l.length||l.length{l=!0});const u=phe(n,{readable:r,writable:o},d=>{l=!d});return{destroy:d=>{l||(l=!0,Tvr.destroyer(n,d||new Pvr("pipe")))},cleanup:u}}function Bvr(n){return Mvr(n[n.length-1],"streams[stream.length - 1]"),n.pop()}function KMe(n){if(T8(n))return n;if(ode(n))return Wvr(n);throw new OFe("val",["Readable","Iterable","AsyncIterable"],n)}async function*Wvr(n){VMe||(VMe=lge()),yield*VMe.prototype[xvr].call(n)}async function Mue(n,r,o,{end:l}){let u,d=null;const h=y=>{if(y&&(u=y),d){const E=d;d=null,E()}},w=()=>new Rvr((y,E)=>{u?E(u):d=()=>{u?E(u):y()}});r.on("drain",h);const v=phe(r,{readable:!1},h);try{r.writableNeedDrain&&await w();for await(const y of n)r.write(y)||await w();l&&(r.end(),await w()),o()}catch(y){o(u!==y?$vr(u,y):y)}finally{v(),r.off("drain",h)}}async function qMe(n,r,o,{end:l}){CD(r)&&(r=r.writable);const u=r.getWriter();try{for await(const d of n)await u.ready,u.write(d).catch(()=>{});await u.ready,l&&await u.close(),o()}catch(d){try{await u.abort(d),o(d)}catch(h){o(h)}}}function Hvr(...n){return nln(n,Avr(Bvr(n)))}function nln(n,r,o){if(n.length===1&&kvr(n[0])&&(n=n[0]),n.length<2)throw new Ivr("streams");const l=new Fvr,u=l.signal,d=o==null?void 0:o.signal,h=[];Dvr(d,"options.signal");function w(){O(new Nvr)}zMe=zMe||d1.addAbortListener;let v;d&&(v=zMe(d,w));let y,E;const A=[];let C=0;function R(G){O(G,--C===0)}function O(G,j){var Q;if(G&&(!y||y.code==="ERR_STREAM_PREMATURE_CLOSE")&&(y=G),!(!y&&!j)){for(;A.length;)A.shift()(y);(Q=v)===null||Q===void 0||Q[Cvr](),l.abort(),j&&(y||h.forEach(te=>te()),OK.nextTick(r,y,E))}}let M;for(let G=0;G0,pe=Q||(o==null?void 0:o.end)!==!1,De=G===n.length-1;if(cVt(j)){let Re=function(le){le&&le.name!=="AbortError"&&le.code!=="ERR_STREAM_PREMATURE_CLOSE"&&R(le)};if(pe){const{destroy:le,cleanup:xe}=uVt(j,Q,te);A.push(le),HMe(j)&&De&&h.push(xe)}j.on("error",Re),HMe(j)&&De&&h.push(()=>{j.removeListener("error",Re)})}if(G===0)if(typeof j=="function"){if(M=j({signal:u}),!T8(M))throw new WMe("Iterable, AsyncIterable or Stream","source",M)}else T8(j)||ode(j)||CD(j)?M=j:M=aVt.from(j);else if(typeof j=="function"){if(CD(M)){var L;M=KMe((L=M)===null||L===void 0?void 0:L.readable)}else M=KMe(M);if(M=j(M,{signal:u}),Q){if(!T8(M,!0))throw new WMe("AsyncIterable",`transform[${G-1}]`,M)}else{var H;GMe||(GMe=tln);const Re=new GMe({objectMode:!0}),le=(H=M)===null||H===void 0?void 0:H.then;if(typeof le=="function")C++,le.call(M,ae=>{E=ae,ae!=null&&Re.write(ae),pe&&Re.end(),OK.nextTick(R)},ae=>{Re.destroy(ae),OK.nextTick(R,ae)});else if(T8(M,!0))C++,Mue(M,Re,R,{end:pe});else if(UMe(M)||CD(M)){const ae=M.readable||M;C++,Mue(ae,Re,R,{end:pe})}else throw new WMe("AsyncIterable or Promise","destination",M);M=Re;const{destroy:xe,cleanup:be}=uVt(M,!1,!0);A.push(xe),De&&h.push(be)}}else if(cVt(j)){if(ode(M)){C+=2;const Re=Uvr(M,j,R,{end:pe});HMe(j)&&De&&h.push(Re)}else if(CD(M)||UMe(M)){const Re=M.readable||M;C++,Mue(Re,j,R,{end:pe})}else if(T8(M))C++,Mue(M,j,R,{end:pe});else throw new OFe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else if(Lvr(j)){if(ode(M))C++,qMe(KMe(M),j,R,{end:pe});else if(UMe(M)||T8(M))C++,qMe(M,j,R,{end:pe});else if(CD(M))C++,qMe(M.readable,j,R,{end:pe});else throw new OFe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else M=aVt.from(j)}return(u!=null&&u.aborted||d!=null&&d.aborted)&&OK.nextTick(w),M}function Uvr(n,r,o,{end:l}){let u=!1;if(r.on("close",()=>{u||o(new Ovr)}),n.pipe(r,{end:!1}),l){let d=function(){u=!0,r.end()};jvr(n)?OK.nextTick(d):n.once("end",d)}else o();return phe(n,{readable:!0,writable:!1},d=>{const h=n._readableState;d&&d.code==="ERR_STREAM_PREMATURE_CLOSE"&&h&&h.ended&&!h.errored&&!h.errorEmitted?n.once("end",o).once("error",o):o(d)}),phe(r,{readable:!1,writable:!0},o)}var bGe={pipelineImpl:nln,pipeline:Hvr};const{pipeline:Gvr}=bGe,Due=lx(),{destroyer:Vvr}=kj,{isNodeStream:Lue,isReadable:fVt,isWritable:dVt,isWebStream:XMe,isTransformStream:c8,isWritableStream:hVt,isReadableStream:pVt}=Tx,{AbortError:zvr,codes:{ERR_INVALID_ARG_VALUE:bVt,ERR_MISSING_ARGS:Kvr}}=P0,qvr=HT;var rln=function(...r){if(r.length===0)throw new Kvr("streams");if(r.length===1)return Due.from(r[0]);const o=[...r];if(typeof r[0]=="function"&&(r[0]=Due.from(r[0])),typeof r[r.length-1]=="function"){const R=r.length-1;r[R]=Due.from(r[R])}for(let R=0;R0&&!(dVt(r[R])||hVt(r[R])||c8(r[R])))throw new bVt(`streams[${R}]`,o[R],"must be writable")}let l,u,d,h,w;function v(R){const O=h;h=null,O?O(R):R?w.destroy(R):!C&&!A&&w.destroy()}const y=r[0],E=Gvr(r,v),A=!!(dVt(y)||hVt(y)||c8(y)),C=!!(fVt(E)||pVt(E)||c8(E));if(w=new Due({writableObjectMode:!!(y!=null&&y.writableObjectMode),readableObjectMode:!!(E!=null&&E.readableObjectMode),writable:A,readable:C}),A){if(Lue(y))w._write=function(O,M,L){y.write(O,M)?L():l=L},w._final=function(O){y.end(),u=O},y.on("drain",function(){if(l){const O=l;l=null,O()}});else if(XMe(y)){const M=(c8(y)?y.writable:y).getWriter();w._write=async function(L,H,G){try{await M.ready,M.write(L).catch(()=>{}),G()}catch(j){G(j)}},w._final=async function(L){try{await M.ready,M.close().catch(()=>{}),u=L}catch(H){L(H)}}}const R=c8(E)?E.readable:E;qvr(R,()=>{if(u){const O=u;u=null,O()}})}if(C){if(Lue(E))E.on("readable",function(){if(d){const R=d;d=null,R()}}),E.on("end",function(){w.push(null)}),w._read=function(){for(;;){const R=E.read();if(R===null){d=w._read;return}if(!w.push(R))return}};else if(XMe(E)){const O=(c8(E)?E.readable:E).getReader();w._read=async function(){for(;;)try{const{value:M,done:L}=await O.read();if(!w.push(M))return;if(L){w.push(null);return}}catch{return}}}}return w._destroy=function(R,O){!R&&h!==null&&(R=new zvr),d=null,l=null,u=null,h===null?O(R):(h=O,Lue(E)&&Vvr(E,R))},w};const Xvr=globalThis.AbortController||$o().AbortController,{codes:{ERR_INVALID_ARG_VALUE:Jvr,ERR_INVALID_ARG_TYPE:PJ,ERR_MISSING_ARGS:Yvr,ERR_OUT_OF_RANGE:Qvr},AbortError:ck}=P0,{validateAbortSignal:cO,validateInteger:gVt,validateObject:uO}=IJ,Zvr=Bf.Symbol("kWeak"),e_r=Bf.Symbol("kResistStopPropagation"),{finished:t_r}=HT,n_r=rln,{addAbortSignalNoValidate:r_r}=oge,{isWritable:i_r,isNodeStream:o_r}=Tx,{deprecate:s_r}=d1,{ArrayPrototypePush:l_r,Boolean:a_r,MathFloor:wVt,Number:c_r,NumberIsNaN:u_r,Promise:mVt,PromiseReject:yVt,PromiseResolve:f_r,PromisePrototypeThen:vVt,Symbol:iln}=Bf,bhe=iln("kEmpty"),_Vt=iln("kEof");function d_r(n,r){if(r!=null&&uO(r,"options"),(r==null?void 0:r.signal)!=null&&cO(r.signal,"options.signal"),o_r(n)&&!i_r(n))throw new Jvr("stream",n,"must be writable");const o=n_r(this,n);return r!=null&&r.signal&&r_r(r.signal,o),o}function age(n,r){if(typeof n!="function")throw new PJ("fn",["Function","AsyncFunction"],n);r!=null&&uO(r,"options"),(r==null?void 0:r.signal)!=null&&cO(r.signal,"options.signal");let o=1;(r==null?void 0:r.concurrency)!=null&&(o=wVt(r.concurrency));let l=o-1;return(r==null?void 0:r.highWaterMark)!=null&&(l=wVt(r.highWaterMark)),gVt(o,"options.concurrency",1),gVt(l,"options.highWaterMark",0),l+=o,(async function*(){const d=d1.AbortSignalAny([r==null?void 0:r.signal].filter(a_r)),h=this,w=[],v={signal:d};let y,E,A=!1,C=0;function R(){A=!0,O()}function O(){C-=1,M()}function M(){E&&!A&&C=l||C>=o)&&await new mVt(G=>{E=G})}w.push(_Vt)}catch(H){const G=yVt(H);vVt(G,O,R),w.push(G)}finally{A=!0,y&&(y(),y=null)}}L();try{for(;;){for(;w.length>0;){const H=await w[0];if(H===_Vt)return;if(d.aborted)throw new ck;H!==bhe&&(yield H),w.shift(),M()}await new mVt(H=>{y=H})}}finally{A=!0,E&&(E(),E=null)}}).call(this)}function h_r(n=void 0){return n!=null&&uO(n,"options"),(n==null?void 0:n.signal)!=null&&cO(n.signal,"options.signal"),(async function*(){let o=0;for await(const u of this){var l;if(n!=null&&(l=n.signal)!==null&&l!==void 0&&l.aborted)throw new ck({cause:n.signal.reason});yield[o++,u]}}).call(this)}async function oln(n,r=void 0){for await(const o of gGe.call(this,n,r))return!0;return!1}async function p_r(n,r=void 0){if(typeof n!="function")throw new PJ("fn",["Function","AsyncFunction"],n);return!await oln.call(this,async(...o)=>!await n(...o),r)}async function b_r(n,r){for await(const o of gGe.call(this,n,r))return o}async function g_r(n,r){if(typeof n!="function")throw new PJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u),bhe}for await(const l of age.call(this,o,r));}function gGe(n,r){if(typeof n!="function")throw new PJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u)?l:bhe}return age.call(this,o,r)}let w_r=class extends Yvr{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function m_r(n,r,o){var l;if(typeof n!="function")throw new PJ("reducer",["Function","AsyncFunction"],n);o!=null&&uO(o,"options"),(o==null?void 0:o.signal)!=null&&cO(o.signal,"options.signal");let u=arguments.length>1;if(o!=null&&(l=o.signal)!==null&&l!==void 0&&l.aborted){const y=new ck(void 0,{cause:o.signal.reason});throw this.once("error",()=>{}),await t_r(this.destroy(y)),y}const d=new Xvr,h=d.signal;if(o!=null&&o.signal){const y={once:!0,[Zvr]:this,[e_r]:!0};o.signal.addEventListener("abort",()=>d.abort(),y)}let w=!1;try{for await(const y of this){var v;if(w=!0,o!=null&&(v=o.signal)!==null&&v!==void 0&&v.aborted)throw new ck;u?r=await n(r,y,{signal:h}):(r=y,u=!0)}if(!w&&!u)throw new w_r}finally{d.abort()}return r}async function y_r(n){n!=null&&uO(n,"options"),(n==null?void 0:n.signal)!=null&&cO(n.signal,"options.signal");const r=[];for await(const l of this){var o;if(n!=null&&(o=n.signal)!==null&&o!==void 0&&o.aborted)throw new ck(void 0,{cause:n.signal.reason});l_r(r,l)}return r}function v_r(n,r){const o=age.call(this,n,r);return(async function*(){for await(const u of o)yield*u}).call(this)}function sln(n){if(n=c_r(n),u_r(n))return 0;if(n<0)throw new Qvr("number",">= 0",n);return n}function __r(n,r=void 0){return r!=null&&uO(r,"options"),(r==null?void 0:r.signal)!=null&&cO(r.signal,"options.signal"),n=sln(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new ck;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new ck;n--<=0&&(yield d)}}).call(this)}function S_r(n,r=void 0){return r!=null&&uO(r,"options"),(r==null?void 0:r.signal)!=null&&cO(r.signal,"options.signal"),n=sln(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new ck;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new ck;if(n-- >0&&(yield d),n<=0)return}}).call(this)}sGe.streamReturningOperators={asIndexedPairs:s_r(h_r,"readable.asIndexedPairs will be removed in a future version."),drop:__r,filter:gGe,flatMap:v_r,map:age,take:S_r,compose:d_r};sGe.promiseReturningOperators={every:p_r,forEach:g_r,reduce:m_r,toArray:y_r,some:oln,find:b_r};var JMe,SVt;function lln(){if(SVt)return JMe;SVt=1;const{ArrayPrototypePop:n,Promise:r}=Bf,{isIterable:o,isNodeStream:l,isWebStream:u}=Tx,{pipelineImpl:d}=bGe,{finished:h}=HT;aln();function w(...v){return new r((y,E)=>{let A,C;const R=v[v.length-1];if(R&&typeof R=="object"&&!l(R)&&!o(R)&&!u(R)){const O=n(v);A=O.signal,C=O.end}d(v,(O,M)=>{O?E(O):y(M)},{signal:A,end:C})})}return JMe={finished:h,pipeline:w},JMe}var EVt;function aln(){if(EVt)return OMe.exports;EVt=1;const{Buffer:n}=Kr,{ObjectDefineProperty:r,ObjectKeys:o,ReflectApply:l}=Bf,{promisify:{custom:u}}=d1,{streamReturningOperators:d,promiseReturningOperators:h}=sGe,{codes:{ERR_ILLEGAL_CONSTRUCTOR:w}}=P0,v=rln,{setDefaultHighWaterMark:y,getDefaultHighWaterMark:E}=sge,{pipeline:A}=bGe,{destroyer:C}=kj,R=HT,O=lln(),M=Tx,L=OMe.exports=fGe.Stream;L.isDestroyed=M.isDestroyed,L.isDisturbed=M.isDisturbed,L.isErrored=M.isErrored,L.isReadable=M.isReadable,L.isWritable=M.isWritable,L.Readable=lge();for(const G of o(d)){let Q=function(...te){if(new.target)throw w();return L.Readable.from(l(j,this,te))};const j=d[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}for(const G of o(h)){let Q=function(...te){if(new.target)throw w();return l(j,this,te)};const j=h[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}L.Writable=dGe(),L.Duplex=lx(),L.Transform=Zsn,L.PassThrough=tln,L.pipeline=A;const{addAbortSignal:H}=oge;return L.addAbortSignal=H,L.finished=R,L.destroy=C,L.compose=v,L.setDefaultHighWaterMark=y,L.getDefaultHighWaterMark=E,r(L,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return O}}),r(A,u,{__proto__:null,enumerable:!0,get(){return O.pipeline}}),r(R,u,{__proto__:null,enumerable:!0,get(){return O.finished}}),L.Stream=L,L._isUint8Array=function(j){return j instanceof Uint8Array},L._uint8ArrayToBuffer=function(j){return n.from(j.buffer,j.byteOffset,j.byteLength)},OMe.exports}(function(n){const r=aln(),o=lln(),l=r.Readable.destroy;n.exports=r.Readable,n.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer,n.exports._isUint8Array=r._isUint8Array,n.exports.isDisturbed=r.isDisturbed,n.exports.isErrored=r.isErrored,n.exports.isReadable=r.isReadable,n.exports.Readable=r.Readable,n.exports.Writable=r.Writable,n.exports.Duplex=r.Duplex,n.exports.Transform=r.Transform,n.exports.PassThrough=r.PassThrough,n.exports.addAbortSignal=r.addAbortSignal,n.exports.finished=r.finished,n.exports.destroy=r.destroy,n.exports.destroy=l,n.exports.pipeline=r.pipeline,n.exports.compose=r.compose,Object.defineProperty(r,"promises",{configurable:!0,enumerable:!0,get(){return o}}),n.exports.Stream=r.Stream,n.exports.default=n.exports})(msn);var E_r=msn.exports;let k_r=class{constructor(r){const o=new E_r.Transform({objectMode:!0,transform:(l,u,d)=>{d(null,`${_S(l)} +`)}});return r.pipe(o),_Ue(o)}},NK=class extends ebe{constructor(){super(k_r)}};const R_r=Object.freeze(Object.defineProperty({__proto__:null,default:NK},Symbol.toStringTag,{value:"Module"}));var x_r={exports:{}},YMe={exports:{}},Wf={ArrayIsArray(n){return Array.isArray(n)},ArrayPrototypeIncludes(n,r){return n.includes(r)},ArrayPrototypeIndexOf(n,r){return n.indexOf(r)},ArrayPrototypeJoin(n,r){return n.join(r)},ArrayPrototypeMap(n,r){return n.map(r)},ArrayPrototypePop(n,r){return n.pop(r)},ArrayPrototypePush(n,r){return n.push(r)},ArrayPrototypeSlice(n,r,o){return n.slice(r,o)},Error,FunctionPrototypeCall(n,r,...o){return n.call(r,...o)},FunctionPrototypeSymbolHasInstance(n,r){return Function.prototype[Symbol.hasInstance].call(n,r)},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(n,r){return Object.defineProperties(n,r)},ObjectDefineProperty(n,r,o){return Object.defineProperty(n,r,o)},ObjectGetOwnPropertyDescriptor(n,r){return Object.getOwnPropertyDescriptor(n,r)},ObjectKeys(n){return Object.keys(n)},ObjectSetPrototypeOf(n,r){return Object.setPrototypeOf(n,r)},Promise,PromisePrototypeCatch(n,r){return n.catch(r)},PromisePrototypeThen(n,r,o){return n.then(r,o)},PromiseReject(n){return Promise.reject(n)},PromiseResolve(n){return Promise.resolve(n)},ReflectApply:Reflect.apply,RegExpPrototypeTest(n,r){return n.test(r)},SafeSet:Set,String,StringPrototypeSlice(n,r,o){return n.slice(r,o)},StringPrototypeToLowerCase(n){return n.toLowerCase()},StringPrototypeToUpperCase(n){return n.toUpperCase()},StringPrototypeTrim(n){return n.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(n,r,o){return n.set(r,o)},Boolean,Uint8Array},cln={exports:{}};(function(n){const r=Kr,{kResistStopPropagation:o,SymbolDispose:l}=Wf,u=globalThis.AbortSignal||$o().AbortSignal,d=globalThis.AbortController||$o().AbortController,h=Object.getPrototypeOf(async function(){}).constructor,w=globalThis.Blob||r.Blob,v=typeof w<"u"?function(R){return R instanceof w}:function(R){return!1},y=(C,R)=>{if(C!==void 0&&(C===null||typeof C!="object"||!("aborted"in C)))throw new ERR_INVALID_ARG_TYPE(R,"AbortSignal",C)},E=(C,R)=>{if(typeof C!="function")throw new ERR_INVALID_ARG_TYPE(R,"Function",C)};class A extends Error{constructor(R){if(!Array.isArray(R))throw new TypeError(`Expected input to be an Array, got ${typeof R}`);let O="";for(let M=0;M{C=M,R=L}),resolve:C,reject:R}},promisify(C){return new Promise((R,O)=>{C((M,...L)=>M?O(M):R(...L))})},debuglog(){return function(){}},format(C,...R){return C.replace(/%([sdifj])/g,function(...[O,M]){const L=R.shift();return M==="f"?L.toFixed(6):M==="j"?JSON.stringify(L):M==="s"&&typeof L=="object"?`${L.constructor!==Object?L.constructor.name:""} {}`.trim():L.toString()})},inspect(C){switch(typeof C){case"string":if(C.includes("'"))if(C.includes('"')){if(!C.includes("`")&&!C.includes("${"))return`\`${C}\``}else return`"${C}"`;return`'${C}'`;case"number":return isNaN(C)?"NaN":Object.is(C,-0)?String(C):C;case"bigint":return`${String(C)}n`;case"boolean":case"undefined":return String(C);case"object":return"{}"}},types:{isAsyncFunction(C){return C instanceof h},isArrayBufferView(C){return ArrayBuffer.isView(C)}},isBlob:v,deprecate(C,R){return C},addAbortListener:Ns.addAbortListener||function(R,O){if(R===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",R);y(R,"signal"),E(O,"listener");let M;return R.aborted?queueMicrotask(()=>O()):(R.addEventListener("abort",O,{__proto__:null,once:!0,[o]:!0}),M=()=>{R.removeEventListener("abort",O)}),{__proto__:null,[l](){var L;(L=M)===null||L===void 0||L()}}},AbortSignalAny:u.any||function(R){if(R.length===1)return R[0];const O=new d,M=()=>O.abort();return R.forEach(L=>{y(L,"signals"),L.addEventListener("abort",M,{once:!0})}),O.signal.addEventListener("abort",()=>{R.forEach(L=>L.removeEventListener("abort",M))},{once:!0}),O.signal}},n.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(cln);var h1=cln.exports,wGe={};const{format:C_r,inspect:ghe,AggregateError:A_r}=h1,T_r=globalThis.AggregateError||A_r,$_r=Symbol("kIsNodeError"),I_r=["string","function","number","object","Function","Object","boolean","bigint","symbol"],P_r=/^([A-Z][a-z0-9]*)+$/,O_r="__node_internal_",cge={};function aP(n,r){if(!n)throw new cge.ERR_INTERNAL_ASSERTION(r)}function kVt(n){let r="",o=n.length;const l=n[0]==="-"?1:0;for(;o>=l+4;o-=3)r=`_${n.slice(o-3,o)}${r}`;return`${n.slice(0,o)}${r}`}function N_r(n,r,o){if(typeof r=="function")return aP(r.length<=o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${r.length}).`),r(...o);const l=(r.match(/%[dfijoOs]/g)||[]).length;return aP(l===o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${l}).`),o.length===0?r:C_r(r,...o)}function eb(n,r,o){o||(o=Error);class l extends o{constructor(...d){super(N_r(n,r,d))}toString(){return`${this.name} [${n}]: ${this.message}`}}Object.defineProperties(l.prototype,{name:{value:o.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${n}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),l.prototype.code=n,l.prototype[$_r]=!0,cge[n]=l}function RVt(n){const r=O_r+n.name;return Object.defineProperty(n,"name",{value:r}),n}function M_r(n,r){if(n&&r&&n!==r){if(Array.isArray(r.errors))return r.errors.push(n),r;const o=new T_r([r,n],r.message);return o.code=r.code,o}return n||r}let D_r=class extends Error{constructor(r="The operation was aborted",o=void 0){if(o!==void 0&&typeof o!="object")throw new cge.ERR_INVALID_ARG_TYPE("options","Object",o);super(r,o),this.code="ABORT_ERR",this.name="AbortError"}};eb("ERR_ASSERTION","%s",Error);eb("ERR_INVALID_ARG_TYPE",(n,r,o)=>{aP(typeof n=="string","'name' must be a string"),Array.isArray(r)||(r=[r]);let l="The ";n.endsWith(" argument")?l+=`${n} `:l+=`"${n}" ${n.includes(".")?"property":"argument"} `,l+="must be ";const u=[],d=[],h=[];for(const v of r)aP(typeof v=="string","All expected entries have to be of type string"),I_r.includes(v)?u.push(v.toLowerCase()):P_r.test(v)?d.push(v):(aP(v!=="object",'The value "object" should be written as "Object"'),h.push(v));if(d.length>0){const v=u.indexOf("object");v!==-1&&(u.splice(u,v,1),d.push("Object"))}if(u.length>0){switch(u.length){case 1:l+=`of type ${u[0]}`;break;case 2:l+=`one of type ${u[0]} or ${u[1]}`;break;default:{const v=u.pop();l+=`one of type ${u.join(", ")}, or ${v}`}}(d.length>0||h.length>0)&&(l+=" or ")}if(d.length>0){switch(d.length){case 1:l+=`an instance of ${d[0]}`;break;case 2:l+=`an instance of ${d[0]} or ${d[1]}`;break;default:{const v=d.pop();l+=`an instance of ${d.join(", ")}, or ${v}`}}h.length>0&&(l+=" or ")}switch(h.length){case 0:break;case 1:h[0].toLowerCase()!==h[0]&&(l+="an "),l+=`${h[0]}`;break;case 2:l+=`one of ${h[0]} or ${h[1]}`;break;default:{const v=h.pop();l+=`one of ${h.join(", ")}, or ${v}`}}if(o==null)l+=`. Received ${o}`;else if(typeof o=="function"&&o.name)l+=`. Received function ${o.name}`;else if(typeof o=="object"){var w;if((w=o.constructor)!==null&&w!==void 0&&w.name)l+=`. Received an instance of ${o.constructor.name}`;else{const v=ghe(o,{depth:-1});l+=`. Received ${v}`}}else{let v=ghe(o,{colors:!1});v.length>25&&(v=`${v.slice(0,25)}...`),l+=`. Received type ${typeof o} (${v})`}return l},TypeError);eb("ERR_INVALID_ARG_VALUE",(n,r,o="is invalid")=>{let l=ghe(r);return l.length>128&&(l=l.slice(0,128)+"..."),`The ${n.includes(".")?"property":"argument"} '${n}' ${o}. Received ${l}`},TypeError);eb("ERR_INVALID_RETURN_VALUE",(n,r,o)=>{var l;const u=o!=null&&(l=o.constructor)!==null&&l!==void 0&&l.name?`instance of ${o.constructor.name}`:`type ${typeof o}`;return`Expected ${n} to be returned from the "${r}" function but got ${u}.`},TypeError);eb("ERR_MISSING_ARGS",(...n)=>{aP(n.length>0,"At least one arg needs to be specified");let r;const o=n.length;switch(n=(Array.isArray(n)?n:[n]).map(l=>`"${l}"`).join(" or "),o){case 1:r+=`The ${n[0]} argument`;break;case 2:r+=`The ${n[0]} and ${n[1]} arguments`;break;default:{const l=n.pop();r+=`The ${n.join(", ")}, and ${l} arguments`}break}return`${r} must be specified`},TypeError);eb("ERR_OUT_OF_RANGE",(n,r,o)=>{aP(r,'Missing "range" argument');let l;return Number.isInteger(o)&&Math.abs(o)>2**32?l=kVt(String(o)):typeof o=="bigint"?(l=String(o),(o>2n**32n||o<-(2n**32n))&&(l=kVt(l)),l+="n"):l=ghe(o),`The value of "${n}" is out of range. It must be ${r}. Received ${l}`},RangeError);eb("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);eb("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);eb("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);eb("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);eb("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);eb("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);eb("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);eb("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);eb("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);eb("ERR_STREAM_WRITE_AFTER_END","write after end",Error);eb("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var O0={AbortError:D_r,aggregateTwoErrors:RVt(M_r),hideStackFrames:RVt,codes:cge};const{ArrayIsArray:mGe,ArrayPrototypeIncludes:uln,ArrayPrototypeJoin:fln,ArrayPrototypeMap:L_r,NumberIsInteger:yGe,NumberIsNaN:j_r,NumberMAX_SAFE_INTEGER:F_r,NumberMIN_SAFE_INTEGER:B_r,NumberParseInt:W_r,ObjectPrototypeHasOwnProperty:H_r,RegExpPrototypeExec:dln,String:U_r,StringPrototypeToUpperCase:G_r,StringPrototypeTrim:V_r}=Wf,{hideStackFrames:mv,codes:{ERR_SOCKET_BAD_PORT:z_r,ERR_INVALID_ARG_TYPE:Yb,ERR_INVALID_ARG_VALUE:Rj,ERR_OUT_OF_RANGE:$P,ERR_UNKNOWN_SIGNAL:xVt}}=O0,{normalizeEncoding:K_r}=h1,{isAsyncFunction:q_r,isArrayBufferView:X_r}=h1.types,CVt={};function J_r(n){return n===(n|0)}function Y_r(n){return n===n>>>0}const Q_r=/^[0-7]+$/,Z_r="must be a 32-bit unsigned integer or an octal string";function eSr(n,r,o){if(typeof n>"u"&&(n=o),typeof n=="string"){if(dln(Q_r,n)===null)throw new Rj(r,n,Z_r);n=W_r(n,8)}return hln(n,r),n}const tSr=mv((n,r,o=B_r,l=F_r)=>{if(typeof n!="number")throw new Yb(r,"number",n);if(!yGe(n))throw new $P(r,"an integer",n);if(nl)throw new $P(r,`>= ${o} && <= ${l}`,n)}),nSr=mv((n,r,o=-2147483648,l=2147483647)=>{if(typeof n!="number")throw new Yb(r,"number",n);if(!yGe(n))throw new $P(r,"an integer",n);if(nl)throw new $P(r,`>= ${o} && <= ${l}`,n)}),hln=mv((n,r,o=!1)=>{if(typeof n!="number")throw new Yb(r,"number",n);if(!yGe(n))throw new $P(r,"an integer",n);const l=o?1:0,u=4294967295;if(nu)throw new $P(r,`>= ${l} && <= ${u}`,n)});function vGe(n,r){if(typeof n!="string")throw new Yb(r,"string",n)}function rSr(n,r,o=void 0,l){if(typeof n!="number")throw new Yb(r,"number",n);if(o!=null&&nl||(o!=null||l!=null)&&j_r(n))throw new $P(r,`${o!=null?`>= ${o}`:""}${o!=null&&l!=null?" && ":""}${l!=null?`<= ${l}`:""}`,n)}const iSr=mv((n,r,o)=>{if(!uln(o,n)){const u="must be one of: "+fln(L_r(o,d=>typeof d=="string"?`'${d}'`:U_r(d)),", ");throw new Rj(r,n,u)}});function pln(n,r){if(typeof n!="boolean")throw new Yb(r,"boolean",n)}function QMe(n,r,o){return n==null||!H_r(n,r)?o:n[r]}const oSr=mv((n,r,o=null)=>{const l=QMe(o,"allowArray",!1),u=QMe(o,"allowFunction",!1);if(!QMe(o,"nullable",!1)&&n===null||!l&&mGe(n)||typeof n!="object"&&(!u||typeof n!="function"))throw new Yb(r,"Object",n)}),sSr=mv((n,r)=>{if(n!=null&&typeof n!="object"&&typeof n!="function")throw new Yb(r,"a dictionary",n)}),uge=mv((n,r,o=0)=>{if(!mGe(n))throw new Yb(r,"Array",n);if(n.length{if(!X_r(n))throw new Yb(r,["Buffer","TypedArray","DataView"],n)});function dSr(n,r){const o=K_r(r),l=n.length;if(o==="hex"&&l%2!==0)throw new Rj("encoding",r,`is invalid for data of length ${l}`)}function hSr(n,r="Port",o=!0){if(typeof n!="number"&&typeof n!="string"||typeof n=="string"&&V_r(n).length===0||+n!==+n>>>0||n>65535||n===0&&!o)throw new z_r(r,n,o);return n|0}const bln=mv((n,r)=>{if(n!==void 0&&(n===null||typeof n!="object"||!("aborted"in n)))throw new Yb(r,"AbortSignal",n)}),pSr=mv((n,r)=>{if(typeof n!="function")throw new Yb(r,"Function",n)}),bSr=mv((n,r)=>{if(typeof n!="function"||q_r(n))throw new Yb(r,"Function",n)}),gSr=mv((n,r)=>{if(n!==void 0)throw new Yb(r,"undefined",n)});function wSr(n,r,o){if(!uln(o,n))throw new Yb(r,`('${fln(o,"|")}')`,n)}const mSr=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function AVt(n,r){if(typeof n>"u"||!dln(mSr,n))throw new Rj(r,n,'must be an array or string of format "; rel=preload; as=style"')}function ySr(n){if(typeof n=="string")return AVt(n,"hints"),n;if(mGe(n)){const r=n.length;let o="";if(r===0)return o;for(let l=0;l; rel=preload; as=style"')}var OJ={isInt32:J_r,isUint32:Y_r,parseFileMode:eSr,validateArray:uge,validateStringArray:lSr,validateBooleanArray:aSr,validateAbortSignalArray:cSr,validateBoolean:pln,validateBuffer:fSr,validateDictionary:sSr,validateEncoding:dSr,validateFunction:pSr,validateInt32:nSr,validateInteger:tSr,validateNumber:rSr,validateObject:oSr,validateOneOf:iSr,validatePlainFunction:bSr,validatePort:hSr,validateSignalName:uSr,validateString:vGe,validateUint32:hln,validateUndefined:gSr,validateUnion:wSr,validateAbortSignal:bln,validateLinkHeaderValue:ySr},_Ge={exports:{}};const{SymbolAsyncIterator:TVt,SymbolIterator:$Vt,SymbolFor:fO}=Wf,gln=fO("nodejs.stream.destroyed"),wln=fO("nodejs.stream.errored"),NFe=fO("nodejs.stream.readable"),MFe=fO("nodejs.stream.writable"),mln=fO("nodejs.stream.disturbed"),vSr=fO("nodejs.webstream.isClosedPromise"),_Sr=fO("nodejs.webstream.controllerErrorFunction");function fge(n,r=!1){var o;return!!(n&&typeof n.pipe=="function"&&typeof n.on=="function"&&(!r||typeof n.pause=="function"&&typeof n.resume=="function")&&(!n._writableState||((o=n._readableState)===null||o===void 0?void 0:o.readable)!==!1)&&(!n._writableState||n._readableState))}function dge(n){var r;return!!(n&&typeof n.write=="function"&&typeof n.on=="function"&&(!n._readableState||((r=n._writableState)===null||r===void 0?void 0:r.writable)!==!1))}function SSr(n){return!!(n&&typeof n.pipe=="function"&&n._readableState&&typeof n.on=="function"&&typeof n.write=="function")}function Sk(n){return n&&(n._readableState||n._writableState||typeof n.write=="function"&&typeof n.on=="function"||typeof n.pipe=="function"&&typeof n.on=="function")}function yln(n){return!!(n&&!Sk(n)&&typeof n.pipeThrough=="function"&&typeof n.getReader=="function"&&typeof n.cancel=="function")}function vln(n){return!!(n&&!Sk(n)&&typeof n.getWriter=="function"&&typeof n.abort=="function")}function _ln(n){return!!(n&&!Sk(n)&&typeof n.readable=="object"&&typeof n.writable=="object")}function ESr(n){return yln(n)||vln(n)||_ln(n)}function kSr(n,r){return n==null?!1:r===!0?typeof n[TVt]=="function":r===!1?typeof n[$Vt]=="function":typeof n[TVt]=="function"||typeof n[$Vt]=="function"}function hge(n){if(!Sk(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!!(n.destroyed||n[gln]||l!=null&&l.destroyed)}function Sln(n){if(!dge(n))return null;if(n.writableEnded===!0)return!0;const r=n._writableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function RSr(n,r){if(!dge(n))return null;if(n.writableFinished===!0)return!0;const o=n._writableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.finished)!="boolean"?null:!!(o.finished||r===!1&&o.ended===!0&&o.length===0)}function xSr(n){if(!fge(n))return null;if(n.readableEnded===!0)return!0;const r=n._readableState;return!r||r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function Eln(n,r){if(!fge(n))return null;const o=n._readableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.endEmitted)!="boolean"?null:!!(o.endEmitted||r===!1&&o.ended===!0&&o.length===0)}function kln(n){return n&&n[NFe]!=null?n[NFe]:typeof(n==null?void 0:n.readable)!="boolean"?null:hge(n)?!1:fge(n)&&n.readable&&!Eln(n)}function Rln(n){return n&&n[MFe]!=null?n[MFe]:typeof(n==null?void 0:n.writable)!="boolean"?null:hge(n)?!1:dge(n)&&n.writable&&!Sln(n)}function CSr(n,r){return Sk(n)?hge(n)?!0:!((r==null?void 0:r.readable)!==!1&&kln(n)||(r==null?void 0:r.writable)!==!1&&Rln(n)):null}function ASr(n){var r,o;return Sk(n)?n.writableErrored?n.writableErrored:(r=(o=n._writableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function TSr(n){var r,o;return Sk(n)?n.readableErrored?n.readableErrored:(r=(o=n._readableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function $Sr(n){if(!Sk(n))return null;if(typeof n.closed=="boolean")return n.closed;const r=n._writableState,o=n._readableState;return typeof(r==null?void 0:r.closed)=="boolean"||typeof(o==null?void 0:o.closed)=="boolean"?(r==null?void 0:r.closed)||(o==null?void 0:o.closed):typeof n._closed=="boolean"&&xln(n)?n._closed:null}function xln(n){return typeof n._closed=="boolean"&&typeof n._defaultKeepAlive=="boolean"&&typeof n._removedConnection=="boolean"&&typeof n._removedContLen=="boolean"}function Cln(n){return typeof n._sent100=="boolean"&&xln(n)}function ISr(n){var r;return typeof n._consuming=="boolean"&&typeof n._dumped=="boolean"&&((r=n.req)===null||r===void 0?void 0:r.upgradeOrConnect)===void 0}function PSr(n){if(!Sk(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!l&&Cln(n)||!!(l&&l.autoDestroy&&l.emitClose&&l.closed===!1)}function OSr(n){var r;return!!(n&&((r=n[mln])!==null&&r!==void 0?r:n.readableDidRead||n.readableAborted))}function NSr(n){var r,o,l,u,d,h,w,v,y,E;return!!(n&&((r=(o=(l=(u=(d=(h=n[wln])!==null&&h!==void 0?h:n.readableErrored)!==null&&d!==void 0?d:n.writableErrored)!==null&&u!==void 0?u:(w=n._readableState)===null||w===void 0?void 0:w.errorEmitted)!==null&&l!==void 0?l:(v=n._writableState)===null||v===void 0?void 0:v.errorEmitted)!==null&&o!==void 0?o:(y=n._readableState)===null||y===void 0?void 0:y.errored)!==null&&r!==void 0?r:!((E=n._writableState)===null||E===void 0)&&E.errored))}var $x={isDestroyed:hge,kIsDestroyed:gln,isDisturbed:OSr,kIsDisturbed:mln,isErrored:NSr,kIsErrored:wln,isReadable:kln,kIsReadable:NFe,kIsClosedPromise:vSr,kControllerErrorFunction:_Sr,kIsWritable:MFe,isClosed:$Sr,isDuplexNodeStream:SSr,isFinished:CSr,isIterable:kSr,isReadableNodeStream:fge,isReadableStream:yln,isReadableEnded:xSr,isReadableFinished:Eln,isReadableErrored:TSr,isNodeStream:Sk,isWebStream:ESr,isWritable:Rln,isWritableNodeStream:dge,isWritableStream:vln,isWritableEnded:Sln,isWritableFinished:RSr,isWritableErrored:ASr,isServerRequest:ISr,isServerResponse:Cln,willEmitClose:PSr,isTransformStream:_ln};const Y4=ui,{AbortError:Aln,codes:MSr}=O0,{ERR_INVALID_ARG_TYPE:DSr,ERR_STREAM_PREMATURE_CLOSE:IVt}=MSr,{kEmptyObject:DFe,once:LFe}=h1,{validateAbortSignal:LSr,validateFunction:jSr,validateObject:FSr,validateBoolean:BSr}=OJ,{Promise:WSr,PromisePrototypeThen:HSr,SymbolDispose:Tln}=Wf,{isClosed:USr,isReadable:PVt,isReadableNodeStream:ZMe,isReadableStream:GSr,isReadableFinished:OVt,isReadableErrored:NVt,isWritable:MVt,isWritableNodeStream:DVt,isWritableStream:VSr,isWritableFinished:LVt,isWritableErrored:jVt,isNodeStream:zSr,willEmitClose:KSr,kIsClosedPromise:qSr}=$x;let uL;function XSr(n){return n.setHeader&&typeof n.abort=="function"}const jFe=()=>{};function $ln(n,r,o){var l,u;if(arguments.length===2?(o=r,r=DFe):r==null?r=DFe:FSr(r,"options"),jSr(o,"callback"),LSr(r.signal,"options.signal"),o=LFe(o),GSr(n)||VSr(n))return JSr(n,r,o);if(!zSr(n))throw new DSr("stream",["ReadableStream","WritableStream","Stream"],n);const d=(l=r.readable)!==null&&l!==void 0?l:ZMe(n),h=(u=r.writable)!==null&&u!==void 0?u:DVt(n),w=n._writableState,v=n._readableState,y=()=>{n.writable||C()};let E=KSr(n)&&ZMe(n)===d&&DVt(n)===h,A=LVt(n,!1);const C=()=>{A=!0,n.destroyed&&(E=!1),!(E&&(!n.readable||d))&&(!d||R)&&o.call(n)};let R=OVt(n,!1);const O=()=>{R=!0,n.destroyed&&(E=!1),!(E&&(!n.writable||h))&&(!h||A)&&o.call(n)},M=te=>{o.call(n,te)};let L=USr(n);const H=()=>{L=!0;const te=jVt(n)||NVt(n);if(te&&typeof te!="boolean")return o.call(n,te);if(d&&!R&&ZMe(n,!0)&&!OVt(n,!1))return o.call(n,new IVt);if(h&&!A&&!LVt(n,!1))return o.call(n,new IVt);o.call(n)},G=()=>{L=!0;const te=jVt(n)||NVt(n);if(te&&typeof te!="boolean")return o.call(n,te);o.call(n)},j=()=>{n.req.on("finish",C)};XSr(n)?(n.on("complete",C),E||n.on("abort",H),n.req?j():n.on("request",j)):h&&!w&&(n.on("end",y),n.on("close",y)),!E&&typeof n.aborted=="boolean"&&n.on("aborted",H),n.on("end",O),n.on("finish",C),r.error!==!1&&n.on("error",M),n.on("close",H),L?Y4.nextTick(H):w!=null&&w.errorEmitted||v!=null&&v.errorEmitted?E||Y4.nextTick(G):(!d&&(!E||PVt(n))&&(A||MVt(n)===!1)||!h&&(!E||MVt(n))&&(R||PVt(n)===!1)||v&&n.req&&n.aborted)&&Y4.nextTick(G);const Q=()=>{o=jFe,n.removeListener("aborted",H),n.removeListener("complete",C),n.removeListener("abort",H),n.removeListener("request",j),n.req&&n.req.removeListener("finish",C),n.removeListener("end",y),n.removeListener("close",y),n.removeListener("finish",C),n.removeListener("end",O),n.removeListener("error",M),n.removeListener("close",H)};if(r.signal&&!L){const te=()=>{const pe=o;Q(),pe.call(n,new Aln(void 0,{cause:r.signal.reason}))};if(r.signal.aborted)Y4.nextTick(te);else{uL=uL||h1.addAbortListener;const pe=uL(r.signal,te),De=o;o=LFe((...Re)=>{pe[Tln](),De.apply(n,Re)})}}return Q}function JSr(n,r,o){let l=!1,u=jFe;if(r.signal)if(u=()=>{l=!0,o.call(n,new Aln(void 0,{cause:r.signal.reason}))},r.signal.aborted)Y4.nextTick(u);else{uL=uL||h1.addAbortListener;const h=uL(r.signal,u),w=o;o=LFe((...v)=>{h[Tln](),w.apply(n,v)})}const d=(...h)=>{l||Y4.nextTick(()=>o.apply(n,h))};return HSr(n[qSr].promise,d,d),jFe}function YSr(n,r){var o;let l=!1;return r===null&&(r=DFe),(o=r)!==null&&o!==void 0&&o.cleanup&&(BSr(r.cleanup,"cleanup"),l=r.cleanup),new WSr((u,d)=>{const h=$ln(n,r,w=>{l&&h(),w?d(w):u()})})}_Ge.exports=$ln;_Ge.exports.finished=YSr;var UT=_Ge.exports;const KE=ui,{aggregateTwoErrors:QSr,codes:{ERR_MULTIPLE_CALLBACK:ZSr},AbortError:e2r}=O0,{Symbol:Iln}=Wf,{kIsDestroyed:t2r,isDestroyed:n2r,isFinished:r2r,isServerRequest:i2r}=$x,Pln=Iln("kDestroy"),FFe=Iln("kConstruct");function Oln(n,r,o){n&&(n.stack,r&&!r.errored&&(r.errored=n),o&&!o.errored&&(o.errored=n))}function o2r(n,r){const o=this._readableState,l=this._writableState,u=l||o;return l!=null&&l.destroyed||o!=null&&o.destroyed?(typeof r=="function"&&r(),this):(Oln(n,l,o),l&&(l.destroyed=!0),o&&(o.destroyed=!0),u.constructed?FVt(this,n,r):this.once(Pln,function(d){FVt(this,QSr(d,n),r)}),this)}function FVt(n,r,o){let l=!1;function u(d){if(l)return;l=!0;const h=n._readableState,w=n._writableState;Oln(d,w,h),w&&(w.closed=!0),h&&(h.closed=!0),typeof o=="function"&&o(d),d?KE.nextTick(s2r,n,d):KE.nextTick(Nln,n)}try{n._destroy(r||null,u)}catch(d){u(d)}}function s2r(n,r){BFe(n,r),Nln(n)}function Nln(n){const r=n._readableState,o=n._writableState;o&&(o.closeEmitted=!0),r&&(r.closeEmitted=!0),(o!=null&&o.emitClose||r!=null&&r.emitClose)&&n.emit("close")}function BFe(n,r){const o=n._readableState,l=n._writableState;l!=null&&l.errorEmitted||o!=null&&o.errorEmitted||(l&&(l.errorEmitted=!0),o&&(o.errorEmitted=!0),n.emit("error",r))}function l2r(){const n=this._readableState,r=this._writableState;n&&(n.constructed=!0,n.closed=!1,n.closeEmitted=!1,n.destroyed=!1,n.errored=null,n.errorEmitted=!1,n.reading=!1,n.ended=n.readable===!1,n.endEmitted=n.readable===!1),r&&(r.constructed=!0,r.destroyed=!1,r.closed=!1,r.closeEmitted=!1,r.errored=null,r.errorEmitted=!1,r.finalCalled=!1,r.prefinished=!1,r.ended=r.writable===!1,r.ending=r.writable===!1,r.finished=r.writable===!1)}function WFe(n,r,o){const l=n._readableState,u=n._writableState;if(u!=null&&u.destroyed||l!=null&&l.destroyed)return this;l!=null&&l.autoDestroy||u!=null&&u.autoDestroy?n.destroy(r):r&&(r.stack,u&&!u.errored&&(u.errored=r),l&&!l.errored&&(l.errored=r),o?KE.nextTick(BFe,n,r):BFe(n,r))}function a2r(n,r){if(typeof n._construct!="function")return;const o=n._readableState,l=n._writableState;o&&(o.constructed=!1),l&&(l.constructed=!1),n.once(FFe,r),!(n.listenerCount(FFe)>1)&&KE.nextTick(c2r,n)}function c2r(n){let r=!1;function o(l){if(r){WFe(n,l??new ZSr);return}r=!0;const u=n._readableState,d=n._writableState,h=d||u;u&&(u.constructed=!0),d&&(d.constructed=!0),h.destroyed?n.emit(Pln,l):l?WFe(n,l,!0):KE.nextTick(u2r,n)}try{n._construct(l=>{KE.nextTick(o,l)})}catch(l){KE.nextTick(o,l)}}function u2r(n){n.emit(FFe)}function BVt(n){return(n==null?void 0:n.setHeader)&&typeof n.abort=="function"}function Mln(n){n.emit("close")}function f2r(n,r){n.emit("error",r),KE.nextTick(Mln,n)}function d2r(n,r){!n||n2r(n)||(!r&&!r2r(n)&&(r=new e2r),i2r(n)?(n.socket=null,n.destroy(r)):BVt(n)?n.abort():BVt(n.req)?n.req.abort():typeof n.destroy=="function"?n.destroy(r):typeof n.close=="function"?n.close():r?KE.nextTick(f2r,n,r):KE.nextTick(Mln,n),n.destroyed||(n[t2r]=!0))}var xj={construct:a2r,destroyer:d2r,destroy:o2r,undestroy:l2r,errorOrDestroy:WFe};const{ArrayIsArray:h2r,ObjectSetPrototypeOf:Dln}=Wf,{EventEmitter:pge}=Ns;function bge(n){pge.call(this,n)}Dln(bge.prototype,pge.prototype);Dln(bge,pge);bge.prototype.pipe=function(n,r){const o=this;function l(E){n.writable&&n.write(E)===!1&&o.pause&&o.pause()}o.on("data",l);function u(){o.readable&&o.resume&&o.resume()}n.on("drain",u),!n._isStdio&&(!r||r.end!==!1)&&(o.on("end",h),o.on("close",w));let d=!1;function h(){d||(d=!0,n.end())}function w(){d||(d=!0,typeof n.destroy=="function"&&n.destroy())}function v(E){y(),pge.listenerCount(this,"error")===0&&this.emit("error",E)}HFe(o,"error",v),HFe(n,"error",v);function y(){o.removeListener("data",l),n.removeListener("drain",u),o.removeListener("end",h),o.removeListener("close",w),o.removeListener("error",v),n.removeListener("error",v),o.removeListener("end",y),o.removeListener("close",y),n.removeListener("close",y)}return o.on("end",y),o.on("close",y),n.on("close",y),n.emit("pipe",o),n};function HFe(n,r,o){if(typeof n.prependListener=="function")return n.prependListener(r,o);!n._events||!n._events[r]?n.on(r,o):h2r(n._events[r])?n._events[r].unshift(o):n._events[r]=[o,n._events[r]]}var SGe={Stream:bge,prependListener:HFe},Lln={exports:{}};(function(n){const{SymbolDispose:r}=Wf,{AbortError:o,codes:l}=O0,{isNodeStream:u,isWebStream:d,kControllerErrorFunction:h}=$x,w=UT,{ERR_INVALID_ARG_TYPE:v}=l;let y;const E=(A,C)=>{if(typeof A!="object"||!("aborted"in A))throw new v(C,"AbortSignal",A)};n.exports.addAbortSignal=function(C,R){if(E(C,"signal"),!u(R)&&!d(R))throw new v("stream",["ReadableStream","WritableStream","Stream"],R);return n.exports.addAbortSignalNoValidate(C,R)},n.exports.addAbortSignalNoValidate=function(A,C){if(typeof A!="object"||!("aborted"in A))return C;const R=u(C)?()=>{C.destroy(new o(void 0,{cause:A.reason}))}:()=>{C[h](new o(void 0,{cause:A.reason}))};if(A.aborted)R();else{y=y||h1.addAbortListener;const O=y(A,R);w(C,O[r])}return C}})(Lln);var gge=Lln.exports;const{StringPrototypeSlice:WVt,SymbolIterator:p2r,TypedArrayPrototypeSet:jue,Uint8Array:b2r}=Wf,{Buffer:e9e}=Kr,{inspect:g2r}=h1;var w2r=class{constructor(){this.head=null,this.tail=null,this.length=0}push(r){const o={data:r,next:null};this.length>0?this.tail.next=o:this.head=o,this.tail=o,++this.length}unshift(r){const o={data:r,next:this.head};this.length===0&&(this.tail=o),this.head=o,++this.length}shift(){if(this.length===0)return;const r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}clear(){this.head=this.tail=null,this.length=0}join(r){if(this.length===0)return"";let o=this.head,l=""+o.data;for(;(o=o.next)!==null;)l+=r+o.data;return l}concat(r){if(this.length===0)return e9e.alloc(0);const o=e9e.allocUnsafe(r>>>0);let l=this.head,u=0;for(;l;)jue(o,l.data,u),u+=l.data.length,l=l.next;return o}consume(r,o){const l=this.head.data;if(rd.length)o+=d,r-=d.length;else{r===d.length?(o+=d,++u,l.next?this.head=l.next:this.head=this.tail=null):(o+=WVt(d,0,r),this.head=l,l.data=WVt(d,r));break}++u}while((l=l.next)!==null);return this.length-=u,o}_getBuffer(r){const o=e9e.allocUnsafe(r),l=r;let u=this.head,d=0;do{const h=u.data;if(r>h.length)jue(o,h,l-r),r-=h.length;else{r===h.length?(jue(o,h,l-r),++d,u.next?this.head=u.next:this.head=this.tail=null):(jue(o,new b2r(h.buffer,h.byteOffset,r),l-r),this.head=u,u.data=h.slice(r));break}++d}while((u=u.next)!==null);return this.length-=d,o}[Symbol.for("nodejs.util.inspect.custom")](r,o){return g2r(this,{...o,depth:0,customInspect:!1})}};const{MathFloor:m2r,NumberIsInteger:y2r}=Wf,{validateInteger:v2r}=OJ,{ERR_INVALID_ARG_VALUE:_2r}=O0.codes;let jln=16*1024,Fln=16;function S2r(n,r,o){return n.highWaterMark!=null?n.highWaterMark:r?n[o]:null}function Bln(n){return n?Fln:jln}function E2r(n,r){v2r(r,"value",0),n?Fln=r:jln=r}function k2r(n,r,o,l){const u=S2r(r,l,o);if(u!=null){if(!y2r(u)||u<0){const d=l?`options.${o}`:"options.highWaterMark";throw new _2r(d,u)}return m2r(u)}return Bln(n.objectMode)}var wge={getHighWaterMark:k2r,getDefaultHighWaterMark:Bln,setDefaultHighWaterMark:E2r};const HVt=ui,{PromisePrototypeThen:R2r,SymbolAsyncIterator:UVt,SymbolIterator:GVt}=Wf,{Buffer:x2r}=Kr,{ERR_INVALID_ARG_TYPE:C2r,ERR_STREAM_NULL_VALUES:A2r}=O0.codes;function T2r(n,r,o){let l;if(typeof r=="string"||r instanceof x2r)return new n({objectMode:!0,...o,read(){this.push(r),this.push(null)}});let u;if(r&&r[UVt])u=!0,l=r[UVt]();else if(r&&r[GVt])u=!1,l=r[GVt]();else throw new C2r("iterable",["Iterable"],r);const d=new n({objectMode:!0,highWaterMark:1,...o});let h=!1;d._read=function(){h||(h=!0,v())},d._destroy=function(y,E){R2r(w(y),()=>HVt.nextTick(E,y),A=>HVt.nextTick(E,A||y))};async function w(y){const E=y!=null,A=typeof l.throw=="function";if(E&&A){const{value:C,done:R}=await l.throw(y);if(await C,R)return}if(typeof l.return=="function"){const{value:C}=await l.return();await C}}async function v(){for(;;){try{const{value:y,done:E}=u?await l.next():l.next();if(E)d.push(null);else{const A=y&&typeof y.then=="function"?await y:y;if(A===null)throw h=!1,new A2r;if(d.push(A))continue;h=!1}}catch(y){d.destroy(y)}break}}return d}var Wln=T2r,t9e,VVt;function mge(){if(VVt)return t9e;VVt=1;const n=ui,{ArrayPrototypeIndexOf:r,NumberIsInteger:o,NumberIsNaN:l,NumberParseInt:u,ObjectDefineProperties:d,ObjectKeys:h,ObjectSetPrototypeOf:w,Promise:v,SafeSet:y,SymbolAsyncDispose:E,SymbolAsyncIterator:A,Symbol:C}=Wf;t9e=he,he.ReadableState=_t;const{EventEmitter:R}=Ns,{Stream:O,prependListener:M}=SGe,{Buffer:L}=Kr,{addAbortSignal:H}=gge,G=UT;let j=h1.debuglog("stream",S=>{j=S});const Q=w2r,te=xj,{getHighWaterMark:pe,getDefaultHighWaterMark:De}=wge,{aggregateTwoErrors:Re,codes:{ERR_INVALID_ARG_TYPE:le,ERR_METHOD_NOT_IMPLEMENTED:xe,ERR_OUT_OF_RANGE:be,ERR_STREAM_PUSH_AFTER_EOF:ae,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:F},AbortError:me}=O0,{validateObject:ye}=OJ,we=C("kPaused"),{StringDecoder:Be}=rm,He=Wln;w(he.prototype,O.prototype),w(he,O);const Ue=()=>{},{errorOrDestroy:Ge}=te,Le=1,ft=2,re=4,Te=8,dt=16,at=32,Qe=64,yt=128,Lt=256,nn=512,Pe=1024,Ne=2048,T=4096,$=8192,B=16384,K=32768,q=65536,ke=1<<17,Ee=1<<18;function Ie(S){return{enumerable:!1,get(){return(this.state&S)!==0},set(x){x?this.state|=S:this.state&=~S}}}d(_t.prototype,{objectMode:Ie(Le),ended:Ie(ft),endEmitted:Ie(re),reading:Ie(Te),constructed:Ie(dt),sync:Ie(at),needReadable:Ie(Qe),emittedReadable:Ie(yt),readableListening:Ie(Lt),resumeScheduled:Ie(nn),errorEmitted:Ie(Pe),emitClose:Ie(Ne),autoDestroy:Ie(T),destroyed:Ie($),closed:Ie(B),closeEmitted:Ie(K),multiAwaitDrain:Ie(q),readingMore:Ie(ke),dataEmitted:Ie(Ee)});function _t(S,x,Y){typeof Y!="boolean"&&(Y=x instanceof cx()),this.state=Ne|T|dt|at,S&&S.objectMode&&(this.state|=Le),Y&&S&&S.readableObjectMode&&(this.state|=Le),this.highWaterMark=S?pe(this,S,"readableHighWaterMark",Y):De(!1),this.buffer=new Q,this.length=0,this.pipes=[],this.flowing=null,this[we]=null,S&&S.emitClose===!1&&(this.state&=~Ne),S&&S.autoDestroy===!1&&(this.state&=~T),this.errored=null,this.defaultEncoding=S&&S.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,S&&S.encoding&&(this.decoder=new Be(S.encoding),this.encoding=S.encoding)}function he(S){if(!(this instanceof he))return new he(S);const x=this instanceof cx();this._readableState=new _t(S,this,x),S&&(typeof S.read=="function"&&(this._read=S.read),typeof S.destroy=="function"&&(this._destroy=S.destroy),typeof S.construct=="function"&&(this._construct=S.construct),S.signal&&!x&&H(S.signal,this)),O.call(this,S),te.construct(this,()=>{this._readableState.needReadable&&pt(this,this._readableState)})}he.prototype.destroy=te.destroy,he.prototype._undestroy=te.undestroy,he.prototype._destroy=function(S,x){x(S)},he.prototype[R.captureRejectionSymbol]=function(S){this.destroy(S)},he.prototype[E]=function(){let S;return this.destroyed||(S=this.readableEnded?null:new me,this.destroy(S)),new v((x,Y)=>G(this,J=>J&&J!==S?Y(J):x(null)))},he.prototype.push=function(S,x){return Xt(this,S,x,!1)},he.prototype.unshift=function(S,x){return Xt(this,S,x,!0)};function Xt(S,x,Y,J){j("readableAddChunk",x);const ue=S._readableState;let Yt;if(ue.state&Le||(typeof x=="string"?(Y=Y||ue.defaultEncoding,ue.encoding!==Y&&(J&&ue.encoding?x=L.from(x,Y).toString(ue.encoding):(x=L.from(x,Y),Y=""))):x instanceof L?Y="":O._isUint8Array(x)?(x=O._uint8ArrayToBuffer(x),Y=""):x!=null&&(Yt=new le("chunk",["string","Buffer","Uint8Array"],x))),Yt)Ge(S,Yt);else if(x===null)ue.state&=~Te,ce(S,ue);else if(ue.state&Le||x&&x.length>0)if(J)if(ue.state&re)Ge(S,new F);else{if(ue.destroyed||ue.errored)return!1;Zt(S,ue,x,!0)}else if(ue.ended)Ge(S,new ae);else{if(ue.destroyed||ue.errored)return!1;ue.state&=~Te,ue.decoder&&!Y?(x=ue.decoder.write(x),ue.objectMode||x.length!==0?Zt(S,ue,x,!1):pt(S,ue)):Zt(S,ue,x,!1)}else J||(ue.state&=~Te,pt(S,ue));return!ue.ended&&(ue.length0?(x.state&q?x.awaitDrainWriters.clear():x.awaitDrainWriters=null,x.dataEmitted=!0,S.emit("data",Y)):(x.length+=x.objectMode?1:Y.length,J?x.buffer.unshift(Y):x.buffer.push(Y),x.state&Qe&&de(S)),pt(S,x)}he.prototype.isPaused=function(){const S=this._readableState;return S[we]===!0||S.flowing===!1},he.prototype.setEncoding=function(S){const x=new Be(S);this._readableState.decoder=x,this._readableState.encoding=this._readableState.decoder.encoding;const Y=this._readableState.buffer;let J="";for(const ue of Y)J+=x.write(ue);return Y.clear(),J!==""&&Y.push(J),this._readableState.length=J.length,this};const $n=1073741824;function Gn(S){if(S>$n)throw new be("size","<= 1GiB",S);return S--,S|=S>>>1,S|=S>>>2,S|=S>>>4,S|=S>>>8,S|=S>>>16,S++,S}function $e(S,x){return S<=0||x.length===0&&x.ended?0:x.state&Le?1:l(S)?x.flowing&&x.length?x.buffer.first().length:x.length:S<=x.length?S:x.ended?x.length:0}he.prototype.read=function(S){j("read",S),S===void 0?S=NaN:o(S)||(S=u(S,10));const x=this._readableState,Y=S;if(S>x.highWaterMark&&(x.highWaterMark=Gn(S)),S!==0&&(x.state&=~yt),S===0&&x.needReadable&&((x.highWaterMark!==0?x.length>=x.highWaterMark:x.length>0)||x.ended))return j("read: emitReadable",x.length,x.ended),x.length===0&&x.ended?co(this):de(this),null;if(S=$e(S,x),S===0&&x.ended)return x.length===0&&co(this),null;let J=(x.state&Qe)!==0;if(j("need readable",J),(x.length===0||x.length-S0?ue=Al(S,x):ue=null,ue===null?(x.needReadable=x.length<=x.highWaterMark,S=0):(x.length-=S,x.multiAwaitDrain?x.awaitDrainWriters.clear():x.awaitDrainWriters=null),x.length===0&&(x.ended||(x.needReadable=!0),Y!==S&&x.ended&&co(this)),ue!==null&&!x.errorEmitted&&!x.closeEmitted&&(x.dataEmitted=!0,this.emit("data",ue)),ue};function ce(S,x){if(j("onEofChunk"),!x.ended){if(x.decoder){const Y=x.decoder.end();Y&&Y.length&&(x.buffer.push(Y),x.length+=x.objectMode?1:Y.length)}x.ended=!0,x.sync?de(S):(x.needReadable=!1,x.emittedReadable=!0,et(S))}}function de(S){const x=S._readableState;j("emitReadable",x.needReadable,x.emittedReadable),x.needReadable=!1,x.emittedReadable||(j("emitReadable",x.flowing),x.emittedReadable=!0,n.nextTick(et,S))}function et(S){const x=S._readableState;j("emitReadable_",x.destroyed,x.length,x.ended),!x.destroyed&&!x.errored&&(x.length||x.ended)&&(S.emit("readable"),x.emittedReadable=!1),x.needReadable=!x.flowing&&!x.ended&&x.length<=x.highWaterMark,xi(S)}function pt(S,x){!x.readingMore&&x.constructed&&(x.readingMore=!0,n.nextTick(Jt,S,x))}function Jt(S,x){for(;!x.reading&&!x.ended&&(x.length1&&J.pipes.includes(S)&&(j("false write response, pause",J.awaitDrainWriters.size),J.awaitDrainWriters.add(S)),Y.pause()),Fr||(Fr=Qt(Y,S),S.on("drain",Fr))}Y.on("data",ml);function ml(jr){j("ondata");const lr=S.write(jr);j("dest.write",lr),lr===!1&&Rs()}function gs(jr){if(j("onerror",jr),wi(),S.removeListener("error",gs),S.listenerCount("error")===0){const lr=S._writableState||S._readableState;lr&&!lr.errorEmitted?Ge(S,jr):S.emit("error",jr)}}M(S,"error",gs);function as(){S.removeListener("finish",ws),wi()}S.once("close",as);function ws(){j("onfinish"),S.removeListener("close",as),wi()}S.once("finish",ws);function wi(){j("unpipe"),Y.unpipe(S)}return S.emit("pipe",Y),S.writableNeedDrain===!0?Rs():J.flowing||(j("pipe resume"),Y.resume()),S};function Qt(S,x){return function(){const J=S._readableState;J.awaitDrainWriters===x?(j("pipeOnDrain",1),J.awaitDrainWriters=null):J.multiAwaitDrain&&(j("pipeOnDrain",J.awaitDrainWriters.size),J.awaitDrainWriters.delete(x)),(!J.awaitDrainWriters||J.awaitDrainWriters.size===0)&&S.listenerCount("data")&&S.resume()}}he.prototype.unpipe=function(S){const x=this._readableState,Y={hasUnpiped:!1};if(x.pipes.length===0)return this;if(!S){const ue=x.pipes;x.pipes=[],this.pause();for(let Yt=0;Yt0,J.flowing!==!1&&this.resume()):S==="readable"&&!J.endEmitted&&!J.readableListening&&(J.readableListening=J.needReadable=!0,J.flowing=!1,J.emittedReadable=!1,j("on readable",J.length,J.reading),J.length?de(this):J.reading||n.nextTick(ao,this)),Y},he.prototype.addListener=he.prototype.on,he.prototype.removeListener=function(S,x){const Y=O.prototype.removeListener.call(this,S,x);return S==="readable"&&n.nextTick(qr,this),Y},he.prototype.off=he.prototype.removeListener,he.prototype.removeAllListeners=function(S){const x=O.prototype.removeAllListeners.apply(this,arguments);return(S==="readable"||S===void 0)&&n.nextTick(qr,this),x};function qr(S){const x=S._readableState;x.readableListening=S.listenerCount("readable")>0,x.resumeScheduled&&x[we]===!1?x.flowing=!0:S.listenerCount("data")>0?S.resume():x.readableListening||(x.flowing=null)}function ao(S){j("readable nexttick read 0"),S.read(0)}he.prototype.resume=function(){const S=this._readableState;return S.flowing||(j("resume"),S.flowing=!S.readableListening,ki(this,S)),S[we]=!1,this};function ki(S,x){x.resumeScheduled||(x.resumeScheduled=!0,n.nextTick(Ri,S,x))}function Ri(S,x){j("resume",x.reading),x.reading||S.read(0),x.resumeScheduled=!1,S.emit("resume"),xi(S),x.flowing&&!x.reading&&S.read(0)}he.prototype.pause=function(){return j("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(j("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[we]=!0,this};function xi(S){const x=S._readableState;for(j("flow",x.flowing);x.flowing&&S.read()!==null;);}he.prototype.wrap=function(S){let x=!1;S.on("data",J=>{!this.push(J)&&S.pause&&(x=!0,S.pause())}),S.on("end",()=>{this.push(null)}),S.on("error",J=>{Ge(this,J)}),S.on("close",()=>{this.destroy()}),S.on("destroy",()=>{this.destroy()}),this._read=()=>{x&&S.resume&&(x=!1,S.resume())};const Y=h(S);for(let J=1;J{ue=An?Re(ue,An):null,Y(),Y=Ue});try{for(;;){const An=S.destroyed?null:S.read();if(An!==null)yield An;else{if(ue)throw ue;if(ue===null)return;await new v(J)}}}catch(An){throw ue=Re(ue,An),ue}finally{(ue||(x==null?void 0:x.destroyOnReturn)!==!1)&&(ue===void 0||S._readableState.autoDestroy)?te.destroyer(S,null):(S.off("readable",J),Yt())}}d(he.prototype,{readable:{__proto__:null,get(){const S=this._readableState;return!!S&&S.readable!==!1&&!S.destroyed&&!S.errorEmitted&&!S.endEmitted},set(S){this._readableState&&(this._readableState.readable=!!S)}},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(S){this._readableState&&(this._readableState.flowing=S)}},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(S){this._readableState&&(this._readableState.destroyed=S)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),d(_t.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[we]!==!1},set(S){this[we]=!!S}}}),he._fromList=Al;function Al(S,x){if(x.length===0)return null;let Y;return x.objectMode?Y=x.buffer.shift():!S||S>=x.length?(x.decoder?Y=x.buffer.join(""):x.buffer.length===1?Y=x.buffer.first():Y=x.buffer.concat(x.length),x.buffer.clear()):Y=x.buffer.consume(S,x.decoder),Y}function co(S){const x=S._readableState;j("endReadable",x.endEmitted),x.endEmitted||(x.ended=!0,n.nextTick(Zc,x,S))}function Zc(S,x){if(j("endReadableNT",S.endEmitted,S.length),!S.errored&&!S.closeEmitted&&!S.endEmitted&&S.length===0){if(S.endEmitted=!0,x.emit("end"),x.writable&&x.allowHalfOpen===!1)n.nextTick(bu,x);else if(S.autoDestroy){const Y=x._writableState;(!Y||Y.autoDestroy&&(Y.finished||Y.writable===!1))&&x.destroy()}}}function bu(S){S.writable&&!S.writableEnded&&!S.destroyed&&S.end()}he.from=function(S,x){return He(he,S,x)};let So;function ql(){return So===void 0&&(So={}),So}return he.fromWeb=function(S,x){return ql().newStreamReadableFromReadableStream(S,x)},he.toWeb=function(S,x){return ql().newReadableStreamFromStreamReadable(S,x)},he.wrap=function(S,x){var Y,J;return new he({objectMode:(Y=(J=S.readableObjectMode)!==null&&J!==void 0?J:S.objectMode)!==null&&Y!==void 0?Y:!0,...x,destroy(ue,Yt){te.destroyer(S,ue),Yt(ue)}}).wrap(S)},t9e}var n9e,zVt;function EGe(){if(zVt)return n9e;zVt=1;const n=ui,{ArrayPrototypeSlice:r,Error:o,FunctionPrototypeSymbolHasInstance:l,ObjectDefineProperty:u,ObjectDefineProperties:d,ObjectSetPrototypeOf:h,StringPrototypeToLowerCase:w,Symbol:v,SymbolHasInstance:y}=Wf;n9e=ye,ye.WritableState=F;const{EventEmitter:E}=Ns,A=SGe.Stream,{Buffer:C}=Kr,R=xj,{addAbortSignal:O}=gge,{getHighWaterMark:M,getDefaultHighWaterMark:L}=wge,{ERR_INVALID_ARG_TYPE:H,ERR_METHOD_NOT_IMPLEMENTED:G,ERR_MULTIPLE_CALLBACK:j,ERR_STREAM_CANNOT_PIPE:Q,ERR_STREAM_DESTROYED:te,ERR_STREAM_ALREADY_FINISHED:pe,ERR_STREAM_NULL_VALUES:De,ERR_STREAM_WRITE_AFTER_END:Re,ERR_UNKNOWN_ENCODING:le}=O0.codes,{errorOrDestroy:xe}=R;h(ye.prototype,A.prototype),h(ye,A);function be(){}const ae=v("kOnFinished");function F(T,$,B){typeof B!="boolean"&&(B=$ instanceof cx()),this.objectMode=!!(T&&T.objectMode),B&&(this.objectMode=this.objectMode||!!(T&&T.writableObjectMode)),this.highWaterMark=T?M(this,T,"writableHighWaterMark",B):L(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const K=!!(T&&T.decodeStrings===!1);this.decodeStrings=!K,this.defaultEncoding=T&&T.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=Ge.bind(void 0,$),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,me(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[ae]=[]}function me(T){T.buffered=[],T.bufferedIndex=0,T.allBuffers=!0,T.allNoop=!0}F.prototype.getBuffer=function(){return r(this.buffered,this.bufferedIndex)},u(F.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function ye(T){const $=this instanceof cx();if(!$&&!l(ye,this))return new ye(T);this._writableState=new F(T,this,$),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&&O(T.signal,this)),A.call(this,T),R.construct(this,()=>{const B=this._writableState;B.writing||Te(this,B),yt(this,B)})}u(ye,y,{__proto__:null,value:function(T){return l(this,T)?!0:this!==ye?!1:T&&T._writableState instanceof F}}),ye.prototype.pipe=function(){xe(this,new Q)};function we(T,$,B,K){const q=T._writableState;if(typeof B=="function")K=B,B=q.defaultEncoding;else{if(!B)B=q.defaultEncoding;else if(B!=="buffer"&&!C.isEncoding(B))throw new le(B);typeof K!="function"&&(K=be)}if($===null)throw new De;if(!q.objectMode)if(typeof $=="string")q.decodeStrings!==!1&&($=C.from($,B),B="buffer");else if($ instanceof C)B="buffer";else if(A._isUint8Array($))$=A._uint8ArrayToBuffer($),B="buffer";else throw new H("chunk",["string","Buffer","Uint8Array"],$);let ke;return q.ending?ke=new Re:q.destroyed&&(ke=new te("write")),ke?(n.nextTick(K,ke),xe(T,ke,!0),ke):(q.pendingcb++,Be(T,q,$,B,K))}ye.prototype.write=function(T,$,B){return we(this,T,$,B)===!0},ye.prototype.cork=function(){this._writableState.corked++},ye.prototype.uncork=function(){const T=this._writableState;T.corked&&(T.corked--,T.writing||Te(this,T))},ye.prototype.setDefaultEncoding=function($){if(typeof $=="string"&&($=w($)),!C.isEncoding($))throw new le($);return this._writableState.defaultEncoding=$,this};function Be(T,$,B,K,q){const ke=$.objectMode?1:B.length;$.length+=ke;const Ee=$.length<$.highWaterMark;return Ee||($.needDrain=!0),$.writing||$.corked||$.errored||!$.constructed?($.buffered.push({chunk:B,encoding:K,callback:q}),$.allBuffers&&K!=="buffer"&&($.allBuffers=!1),$.allNoop&&q!==be&&($.allNoop=!1)):($.writelen=ke,$.writecb=q,$.writing=!0,$.sync=!0,T._write(B,K,$.onwrite),$.sync=!1),Ee&&!$.errored&&!$.destroyed}function He(T,$,B,K,q,ke,Ee){$.writelen=K,$.writecb=Ee,$.writing=!0,$.sync=!0,$.destroyed?$.onwrite(new te("write")):B?T._writev(q,$.onwrite):T._write(q,ke,$.onwrite),$.sync=!1}function Ue(T,$,B,K){--$.pendingcb,K(B),re($),xe(T,B)}function Ge(T,$){const B=T._writableState,K=B.sync,q=B.writecb;if(typeof q!="function"){xe(T,new j);return}B.writing=!1,B.writecb=null,B.length-=B.writelen,B.writelen=0,$?($.stack,B.errored||(B.errored=$),T._readableState&&!T._readableState.errored&&(T._readableState.errored=$),K?n.nextTick(Ue,T,B,$,q):Ue(T,B,$,q)):(B.buffered.length>B.bufferedIndex&&Te(T,B),K?B.afterWriteTickInfo!==null&&B.afterWriteTickInfo.cb===q?B.afterWriteTickInfo.count++:(B.afterWriteTickInfo={count:1,cb:q,stream:T,state:B},n.nextTick(Le,B.afterWriteTickInfo)):ft(T,B,1,q))}function Le({stream:T,state:$,count:B,cb:K}){return $.afterWriteTickInfo=null,ft(T,$,B,K)}function ft(T,$,B,K){for(!$.ending&&!T.destroyed&&$.length===0&&$.needDrain&&($.needDrain=!1,T.emit("drain"));B-- >0;)$.pendingcb--,K();$.destroyed&&re($),yt(T,$)}function re(T){if(T.writing)return;for(let q=T.bufferedIndex;q1&&T._writev){$.pendingcb-=ke-1;const Ie=$.allNoop?be:he=>{for(let Xt=Ee;Xt256?(B.splice(0,Ee),$.bufferedIndex=0):$.bufferedIndex=Ee}$.bufferProcessing=!1}ye.prototype._write=function(T,$,B){if(this._writev)this._writev([{chunk:T,encoding:$}],B);else throw new G("_write()")},ye.prototype._writev=null,ye.prototype.end=function(T,$,B){const K=this._writableState;typeof T=="function"?(B=T,T=null,$=null):typeof $=="function"&&(B=$,$=null);let q;if(T!=null){const ke=we(this,T,$);ke instanceof o&&(q=ke)}return K.corked&&(K.corked=1,this.uncork()),q||(!K.errored&&!K.ending?(K.ending=!0,yt(this,K,!0),K.ended=!0):K.finished?q=new pe("end"):K.destroyed&&(q=new te("end"))),typeof B=="function"&&(q||K.finished?n.nextTick(B,q):K[ae].push(B)),this};function dt(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 at(T,$){let B=!1;function K(q){if(B){xe(T,q??j());return}if(B=!0,$.pendingcb--,q){const ke=$[ae].splice(0);for(let Ee=0;Ee{dt(q)?Lt(K,q):q.pendingcb--},T,$)):dt($)&&($.pendingcb++,Lt(T,$))))}function Lt(T,$){$.pendingcb--,$.finished=!0;const B=$[ae].splice(0);for(let K=0;K{if(re!=null)throw new O("nully","body",re)},re=>{M(Le,re)});return Le=new le({objectMode:!0,readable:!1,write:Be,final(re){He(async()=>{try{await ft,n.nextTick(re,null)}catch(Te){n.nextTick(re,Te)}})},destroy:Ue})}throw new O("Iterable, AsyncIterable or AsyncFunction",me,we)}if(pe(F))return ae(F.arrayBuffer());if(u(F))return Q(le,F,{objectMode:!0,writable:!1});if(y(F==null?void 0:F.readable)&&E(F==null?void 0:F.writable))return le.fromWeb(F);if(typeof(F==null?void 0:F.writable)=="object"||typeof(F==null?void 0:F.readable)=="object"){const we=F!=null&&F.readable?h(F==null?void 0:F.readable)?F==null?void 0:F.readable:ae(F.readable):void 0,Be=F!=null&&F.writable?w(F==null?void 0:F.writable)?F==null?void 0:F.writable:ae(F.writable):void 0;return be({readable:we,writable:Be})}const ye=F==null?void 0:F.then;if(typeof ye=="function"){let we;return Re(ye,F,Be=>{Be!=null&&we.push(Be),we.push(null)},Be=>{M(we,Be)}),we=new le({objectMode:!0,writable:!1,read(){}})}throw new R(me,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],F)};function xe(ae){let{promise:F,resolve:me}=j();const ye=new De,we=ye.signal;return{value:ae(async function*(){for(;;){const He=F;F=null;const{chunk:Ue,done:Ge,cb:Le}=await He;if(n.nextTick(Le),Ge)return;if(we.aborted)throw new C(void 0,{cause:we.reason});({promise:F,resolve:me}=j()),yield Ue}}(),{signal:we}),write(He,Ue,Ge){const Le=me;me=null,Le({chunk:He,done:!1,cb:Ge})},final(He){const Ue=me;me=null,Ue({done:!0,cb:He})},destroy(He,Ue){ye.abort(),Ue(He)}}}function be(ae){const F=ae.readable&&typeof ae.readable.read!="function"?H.wrap(ae.readable):ae.readable,me=ae.writable;let ye=!!o(F),we=!!l(me),Be,He,Ue,Ge,Le;function ft(re){const Te=Ge;Ge=null,Te?Te(re):re&&Le.destroy(re)}return Le=new le({readableObjectMode:!!(F!=null&&F.readableObjectMode),writableObjectMode:!!(me!=null&&me.writableObjectMode),readable:ye,writable:we}),we&&(A(me,re=>{we=!1,re&&M(F,re),ft(re)}),Le._write=function(re,Te,dt){me.write(re,Te)?dt():Be=dt},Le._final=function(re){me.end(),He=re},me.on("drain",function(){if(Be){const re=Be;Be=null,re()}}),me.on("finish",function(){if(He){const re=He;He=null,re()}})),ye&&(A(F,re=>{ye=!1,re&&M(F,re),ft(re)}),F.on("readable",function(){if(Ue){const re=Ue;Ue=null,re()}}),F.on("end",function(){Le.push(null)}),Le._read=function(){for(;;){const re=F.read();if(re===null){Ue=Le._read;return}if(!Le.push(re))return}}),Le._destroy=function(re,Te){!re&&Ge!==null&&(re=new C),Ue=null,Be=null,He=null,Ge===null?Te(re):(Ge=Te,M(me,re),M(F,re))},Le}return r9e}var i9e,qVt;function cx(){if(qVt)return i9e;qVt=1;const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:o,ObjectSetPrototypeOf:l}=Wf;i9e=h;const u=mge(),d=EGe();l(h.prototype,u.prototype),l(h,u);{const E=o(d.prototype);for(let A=0;A{if(r){n?n(r):this.destroy(r);return}o!=null&&this.push(o),this.push(null),n&&n()}):(this.push(null),n&&n())}function N2r(){this._final!==UFe&&UFe.call(this)}ux.prototype._final=UFe;ux.prototype._transform=function(n,r,o){throw new P2r("_transform()")};ux.prototype._write=function(n,r,o){const l=this._readableState,u=this._writableState,d=l.length;this._transform(n,r,(h,w)=>{if(h){o(h);return}w!=null&&this.push(w),u.ended||d===l.length||l.length{l=!0});const u=whe(n,{readable:r,writable:o},d=>{l=!d});return{destroy:d=>{l||(l=!0,B2r.destroyer(n,d||new U2r("pipe")))},cleanup:u}}function Y2r(n){return z2r(n[n.length-1],"streams[stream.length - 1]"),n.pop()}function f9e(n){if($8(n))return n;if(sde(n))return Q2r(n);throw new GFe("val",["Readable","Iterable","AsyncIterable"],n)}async function*Q2r(n){c9e||(c9e=mge()),yield*c9e.prototype[L2r].call(n)}async function Fue(n,r,o,{end:l}){let u,d=null;const h=y=>{if(y&&(u=y),d){const E=d;d=null,E()}},w=()=>new D2r((y,E)=>{u?E(u):d=()=>{u?E(u):y()}});r.on("drain",h);const v=whe(r,{readable:!1},h);try{r.writableNeedDrain&&await w();for await(const y of n)r.write(y)||await w();l&&(r.end(),await w()),o()}catch(y){o(u!==y?W2r(u,y):y)}finally{v(),r.off("drain",h)}}async function d9e(n,r,o,{end:l}){AD(r)&&(r=r.writable);const u=r.getWriter();try{for await(const d of n)await u.ready,u.write(d).catch(()=>{});await u.ready,l&&await u.close(),o()}catch(d){try{await u.abort(d),o(d)}catch(h){o(h)}}}function Z2r(...n){return zln(n,F2r(Y2r(n)))}function zln(n,r,o){if(n.length===1&&M2r(n[0])&&(n=n[0]),n.length<2)throw new H2r("streams");const l=new J2r,u=l.signal,d=o==null?void 0:o.signal,h=[];K2r(d,"options.signal");function w(){O(new V2r)}u9e=u9e||h1.addAbortListener;let v;d&&(v=u9e(d,w));let y,E;const A=[];let C=0;function R(G){O(G,--C===0)}function O(G,j){var Q;if(G&&(!y||y.code==="ERR_STREAM_PREMATURE_CLOSE")&&(y=G),!(!y&&!j)){for(;A.length;)A.shift()(y);(Q=v)===null||Q===void 0||Q[j2r](),l.abort(),j&&(y||h.forEach(te=>te()),MK.nextTick(r,y,E))}}let M;for(let G=0;G0,pe=Q||(o==null?void 0:o.end)!==!1,De=G===n.length-1;if(JVt(j)){let Re=function(le){le&&le.name!=="AbortError"&&le.code!=="ERR_STREAM_PREMATURE_CLOSE"&&R(le)};if(pe){const{destroy:le,cleanup:xe}=YVt(j,Q,te);A.push(le),s9e(j)&&De&&h.push(xe)}j.on("error",Re),s9e(j)&&De&&h.push(()=>{j.removeListener("error",Re)})}if(G===0)if(typeof j=="function"){if(M=j({signal:u}),!$8(M))throw new o9e("Iterable, AsyncIterable or Stream","source",M)}else $8(j)||sde(j)||AD(j)?M=j:M=XVt.from(j);else if(typeof j=="function"){if(AD(M)){var L;M=f9e((L=M)===null||L===void 0?void 0:L.readable)}else M=f9e(M);if(M=j(M,{signal:u}),Q){if(!$8(M,!0))throw new o9e("AsyncIterable",`transform[${G-1}]`,M)}else{var H;a9e||(a9e=Vln);const Re=new a9e({objectMode:!0}),le=(H=M)===null||H===void 0?void 0:H.then;if(typeof le=="function")C++,le.call(M,ae=>{E=ae,ae!=null&&Re.write(ae),pe&&Re.end(),MK.nextTick(R)},ae=>{Re.destroy(ae),MK.nextTick(R,ae)});else if($8(M,!0))C++,Fue(M,Re,R,{end:pe});else if(l9e(M)||AD(M)){const ae=M.readable||M;C++,Fue(ae,Re,R,{end:pe})}else throw new o9e("AsyncIterable or Promise","destination",M);M=Re;const{destroy:xe,cleanup:be}=YVt(M,!1,!0);A.push(xe),De&&h.push(be)}}else if(JVt(j)){if(sde(M)){C+=2;const Re=eEr(M,j,R,{end:pe});s9e(j)&&De&&h.push(Re)}else if(AD(M)||l9e(M)){const Re=M.readable||M;C++,Fue(Re,j,R,{end:pe})}else if($8(M))C++,Fue(M,j,R,{end:pe});else throw new GFe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else if(q2r(j)){if(sde(M))C++,d9e(f9e(M),j,R,{end:pe});else if(l9e(M)||$8(M))C++,d9e(M,j,R,{end:pe});else if(AD(M))C++,d9e(M.readable,j,R,{end:pe});else throw new GFe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else M=XVt.from(j)}return(u!=null&&u.aborted||d!=null&&d.aborted)&&MK.nextTick(w),M}function eEr(n,r,o,{end:l}){let u=!1;if(r.on("close",()=>{u||o(new G2r)}),n.pipe(r,{end:!1}),l){let d=function(){u=!0,r.end()};X2r(n)?MK.nextTick(d):n.once("end",d)}else o();return whe(n,{readable:!0,writable:!1},d=>{const h=n._readableState;d&&d.code==="ERR_STREAM_PREMATURE_CLOSE"&&h&&h.ended&&!h.errored&&!h.errorEmitted?n.once("end",o).once("error",o):o(d)}),whe(r,{readable:!1,writable:!0},o)}var xGe={pipelineImpl:zln,pipeline:Z2r};const{pipeline:tEr}=xGe,Bue=cx(),{destroyer:nEr}=xj,{isNodeStream:Wue,isReadable:QVt,isWritable:ZVt,isWebStream:h9e,isTransformStream:u8,isWritableStream:ezt,isReadableStream:tzt}=$x,{AbortError:rEr,codes:{ERR_INVALID_ARG_VALUE:nzt,ERR_MISSING_ARGS:iEr}}=O0,oEr=UT;var Kln=function(...r){if(r.length===0)throw new iEr("streams");if(r.length===1)return Bue.from(r[0]);const o=[...r];if(typeof r[0]=="function"&&(r[0]=Bue.from(r[0])),typeof r[r.length-1]=="function"){const R=r.length-1;r[R]=Bue.from(r[R])}for(let R=0;R0&&!(ZVt(r[R])||ezt(r[R])||u8(r[R])))throw new nzt(`streams[${R}]`,o[R],"must be writable")}let l,u,d,h,w;function v(R){const O=h;h=null,O?O(R):R?w.destroy(R):!C&&!A&&w.destroy()}const y=r[0],E=tEr(r,v),A=!!(ZVt(y)||ezt(y)||u8(y)),C=!!(QVt(E)||tzt(E)||u8(E));if(w=new Bue({writableObjectMode:!!(y!=null&&y.writableObjectMode),readableObjectMode:!!(E!=null&&E.readableObjectMode),writable:A,readable:C}),A){if(Wue(y))w._write=function(O,M,L){y.write(O,M)?L():l=L},w._final=function(O){y.end(),u=O},y.on("drain",function(){if(l){const O=l;l=null,O()}});else if(h9e(y)){const M=(u8(y)?y.writable:y).getWriter();w._write=async function(L,H,G){try{await M.ready,M.write(L).catch(()=>{}),G()}catch(j){G(j)}},w._final=async function(L){try{await M.ready,M.close().catch(()=>{}),u=L}catch(H){L(H)}}}const R=u8(E)?E.readable:E;oEr(R,()=>{if(u){const O=u;u=null,O()}})}if(C){if(Wue(E))E.on("readable",function(){if(d){const R=d;d=null,R()}}),E.on("end",function(){w.push(null)}),w._read=function(){for(;;){const R=E.read();if(R===null){d=w._read;return}if(!w.push(R))return}};else if(h9e(E)){const O=(u8(E)?E.readable:E).getReader();w._read=async function(){for(;;)try{const{value:M,done:L}=await O.read();if(!w.push(M))return;if(L){w.push(null);return}}catch{return}}}}return w._destroy=function(R,O){!R&&h!==null&&(R=new rEr),d=null,l=null,u=null,h===null?O(R):(h=O,Wue(E)&&nEr(E,R))},w};const sEr=globalThis.AbortController||$o().AbortController,{codes:{ERR_INVALID_ARG_VALUE:lEr,ERR_INVALID_ARG_TYPE:NJ,ERR_MISSING_ARGS:aEr,ERR_OUT_OF_RANGE:cEr},AbortError:uk}=O0,{validateAbortSignal:dO,validateInteger:rzt,validateObject:hO}=OJ,uEr=Wf.Symbol("kWeak"),fEr=Wf.Symbol("kResistStopPropagation"),{finished:dEr}=UT,hEr=Kln,{addAbortSignalNoValidate:pEr}=gge,{isWritable:bEr,isNodeStream:gEr}=$x,{deprecate:wEr}=h1,{ArrayPrototypePush:mEr,Boolean:yEr,MathFloor:izt,Number:vEr,NumberIsNaN:_Er,Promise:ozt,PromiseReject:szt,PromiseResolve:SEr,PromisePrototypeThen:lzt,Symbol:qln}=Wf,mhe=qln("kEmpty"),azt=qln("kEof");function EEr(n,r){if(r!=null&&hO(r,"options"),(r==null?void 0:r.signal)!=null&&dO(r.signal,"options.signal"),gEr(n)&&!bEr(n))throw new lEr("stream",n,"must be writable");const o=hEr(this,n);return r!=null&&r.signal&&pEr(r.signal,o),o}function yge(n,r){if(typeof n!="function")throw new NJ("fn",["Function","AsyncFunction"],n);r!=null&&hO(r,"options"),(r==null?void 0:r.signal)!=null&&dO(r.signal,"options.signal");let o=1;(r==null?void 0:r.concurrency)!=null&&(o=izt(r.concurrency));let l=o-1;return(r==null?void 0:r.highWaterMark)!=null&&(l=izt(r.highWaterMark)),rzt(o,"options.concurrency",1),rzt(l,"options.highWaterMark",0),l+=o,(async function*(){const d=h1.AbortSignalAny([r==null?void 0:r.signal].filter(yEr)),h=this,w=[],v={signal:d};let y,E,A=!1,C=0;function R(){A=!0,O()}function O(){C-=1,M()}function M(){E&&!A&&C=l||C>=o)&&await new ozt(G=>{E=G})}w.push(azt)}catch(H){const G=szt(H);lzt(G,O,R),w.push(G)}finally{A=!0,y&&(y(),y=null)}}L();try{for(;;){for(;w.length>0;){const H=await w[0];if(H===azt)return;if(d.aborted)throw new uk;H!==mhe&&(yield H),w.shift(),M()}await new ozt(H=>{y=H})}}finally{A=!0,E&&(E(),E=null)}}).call(this)}function kEr(n=void 0){return n!=null&&hO(n,"options"),(n==null?void 0:n.signal)!=null&&dO(n.signal,"options.signal"),(async function*(){let o=0;for await(const u of this){var l;if(n!=null&&(l=n.signal)!==null&&l!==void 0&&l.aborted)throw new uk({cause:n.signal.reason});yield[o++,u]}}).call(this)}async function Xln(n,r=void 0){for await(const o of CGe.call(this,n,r))return!0;return!1}async function REr(n,r=void 0){if(typeof n!="function")throw new NJ("fn",["Function","AsyncFunction"],n);return!await Xln.call(this,async(...o)=>!await n(...o),r)}async function xEr(n,r){for await(const o of CGe.call(this,n,r))return o}async function CEr(n,r){if(typeof n!="function")throw new NJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u),mhe}for await(const l of yge.call(this,o,r));}function CGe(n,r){if(typeof n!="function")throw new NJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u)?l:mhe}return yge.call(this,o,r)}let AEr=class extends aEr{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function TEr(n,r,o){var l;if(typeof n!="function")throw new NJ("reducer",["Function","AsyncFunction"],n);o!=null&&hO(o,"options"),(o==null?void 0:o.signal)!=null&&dO(o.signal,"options.signal");let u=arguments.length>1;if(o!=null&&(l=o.signal)!==null&&l!==void 0&&l.aborted){const y=new uk(void 0,{cause:o.signal.reason});throw this.once("error",()=>{}),await dEr(this.destroy(y)),y}const d=new sEr,h=d.signal;if(o!=null&&o.signal){const y={once:!0,[uEr]:this,[fEr]:!0};o.signal.addEventListener("abort",()=>d.abort(),y)}let w=!1;try{for await(const y of this){var v;if(w=!0,o!=null&&(v=o.signal)!==null&&v!==void 0&&v.aborted)throw new uk;u?r=await n(r,y,{signal:h}):(r=y,u=!0)}if(!w&&!u)throw new AEr}finally{d.abort()}return r}async function $Er(n){n!=null&&hO(n,"options"),(n==null?void 0:n.signal)!=null&&dO(n.signal,"options.signal");const r=[];for await(const l of this){var o;if(n!=null&&(o=n.signal)!==null&&o!==void 0&&o.aborted)throw new uk(void 0,{cause:n.signal.reason});mEr(r,l)}return r}function IEr(n,r){const o=yge.call(this,n,r);return(async function*(){for await(const u of o)yield*u}).call(this)}function Jln(n){if(n=vEr(n),_Er(n))return 0;if(n<0)throw new cEr("number",">= 0",n);return n}function PEr(n,r=void 0){return r!=null&&hO(r,"options"),(r==null?void 0:r.signal)!=null&&dO(r.signal,"options.signal"),n=Jln(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new uk;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new uk;n--<=0&&(yield d)}}).call(this)}function OEr(n,r=void 0){return r!=null&&hO(r,"options"),(r==null?void 0:r.signal)!=null&&dO(r.signal,"options.signal"),n=Jln(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new uk;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new uk;if(n-- >0&&(yield d),n<=0)return}}).call(this)}wGe.streamReturningOperators={asIndexedPairs:wEr(kEr,"readable.asIndexedPairs will be removed in a future version."),drop:PEr,filter:CGe,flatMap:IEr,map:yge,take:OEr,compose:EEr};wGe.promiseReturningOperators={every:REr,forEach:CEr,reduce:TEr,toArray:$Er,some:Xln,find:xEr};var p9e,czt;function Yln(){if(czt)return p9e;czt=1;const{ArrayPrototypePop:n,Promise:r}=Wf,{isIterable:o,isNodeStream:l,isWebStream:u}=$x,{pipelineImpl:d}=xGe,{finished:h}=UT;Qln();function w(...v){return new r((y,E)=>{let A,C;const R=v[v.length-1];if(R&&typeof R=="object"&&!l(R)&&!o(R)&&!u(R)){const O=n(v);A=O.signal,C=O.end}d(v,(O,M)=>{O?E(O):y(M)},{signal:A,end:C})})}return p9e={finished:h,pipeline:w},p9e}var uzt;function Qln(){if(uzt)return YMe.exports;uzt=1;const{Buffer:n}=Kr,{ObjectDefineProperty:r,ObjectKeys:o,ReflectApply:l}=Wf,{promisify:{custom:u}}=h1,{streamReturningOperators:d,promiseReturningOperators:h}=wGe,{codes:{ERR_ILLEGAL_CONSTRUCTOR:w}}=O0,v=Kln,{setDefaultHighWaterMark:y,getDefaultHighWaterMark:E}=wge,{pipeline:A}=xGe,{destroyer:C}=xj,R=UT,O=Yln(),M=$x,L=YMe.exports=SGe.Stream;L.isDestroyed=M.isDestroyed,L.isDisturbed=M.isDisturbed,L.isErrored=M.isErrored,L.isReadable=M.isReadable,L.isWritable=M.isWritable,L.Readable=mge();for(const G of o(d)){let Q=function(...te){if(new.target)throw w();return L.Readable.from(l(j,this,te))};const j=d[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}for(const G of o(h)){let Q=function(...te){if(new.target)throw w();return l(j,this,te)};const j=h[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}L.Writable=EGe(),L.Duplex=cx(),L.Transform=Uln,L.PassThrough=Vln,L.pipeline=A;const{addAbortSignal:H}=gge;return L.addAbortSignal=H,L.finished=R,L.destroy=C,L.compose=v,L.setDefaultHighWaterMark=y,L.getDefaultHighWaterMark=E,r(L,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return O}}),r(A,u,{__proto__:null,enumerable:!0,get(){return O.pipeline}}),r(R,u,{__proto__:null,enumerable:!0,get(){return O.finished}}),L.Stream=L,L._isUint8Array=function(j){return j instanceof Uint8Array},L._uint8ArrayToBuffer=function(j){return n.from(j.buffer,j.byteOffset,j.byteLength)},YMe.exports}(function(n){const r=Qln(),o=Yln(),l=r.Readable.destroy;n.exports=r.Readable,n.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer,n.exports._isUint8Array=r._isUint8Array,n.exports.isDisturbed=r.isDisturbed,n.exports.isErrored=r.isErrored,n.exports.isReadable=r.isReadable,n.exports.Readable=r.Readable,n.exports.Writable=r.Writable,n.exports.Duplex=r.Duplex,n.exports.Transform=r.Transform,n.exports.PassThrough=r.PassThrough,n.exports.addAbortSignal=r.addAbortSignal,n.exports.finished=r.finished,n.exports.destroy=r.destroy,n.exports.destroy=l,n.exports.pipeline=r.pipeline,n.exports.compose=r.compose,Object.defineProperty(r,"promises",{configurable:!0,enumerable:!0,get(){return o}}),n.exports.Stream=r.Stream,n.exports.default=n.exports})(x_r);var NEr={exports:{}},b9e={exports:{}},Hf={ArrayIsArray(n){return Array.isArray(n)},ArrayPrototypeIncludes(n,r){return n.includes(r)},ArrayPrototypeIndexOf(n,r){return n.indexOf(r)},ArrayPrototypeJoin(n,r){return n.join(r)},ArrayPrototypeMap(n,r){return n.map(r)},ArrayPrototypePop(n,r){return n.pop(r)},ArrayPrototypePush(n,r){return n.push(r)},ArrayPrototypeSlice(n,r,o){return n.slice(r,o)},Error,FunctionPrototypeCall(n,r,...o){return n.call(r,...o)},FunctionPrototypeSymbolHasInstance(n,r){return Function.prototype[Symbol.hasInstance].call(n,r)},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(n,r){return Object.defineProperties(n,r)},ObjectDefineProperty(n,r,o){return Object.defineProperty(n,r,o)},ObjectGetOwnPropertyDescriptor(n,r){return Object.getOwnPropertyDescriptor(n,r)},ObjectKeys(n){return Object.keys(n)},ObjectSetPrototypeOf(n,r){return Object.setPrototypeOf(n,r)},Promise,PromisePrototypeCatch(n,r){return n.catch(r)},PromisePrototypeThen(n,r,o){return n.then(r,o)},PromiseReject(n){return Promise.reject(n)},PromiseResolve(n){return Promise.resolve(n)},ReflectApply:Reflect.apply,RegExpPrototypeTest(n,r){return n.test(r)},SafeSet:Set,String,StringPrototypeSlice(n,r,o){return n.slice(r,o)},StringPrototypeToLowerCase(n){return n.toLowerCase()},StringPrototypeToUpperCase(n){return n.toUpperCase()},StringPrototypeTrim(n){return n.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(n,r,o){return n.set(r,o)},Boolean,Uint8Array},Zln={exports:{}};(function(n){const r=Kr,{kResistStopPropagation:o,SymbolDispose:l}=Hf,u=globalThis.AbortSignal||$o().AbortSignal,d=globalThis.AbortController||$o().AbortController,h=Object.getPrototypeOf(async function(){}).constructor,w=globalThis.Blob||r.Blob,v=typeof w<"u"?function(R){return R instanceof w}:function(R){return!1},y=(C,R)=>{if(C!==void 0&&(C===null||typeof C!="object"||!("aborted"in C)))throw new ERR_INVALID_ARG_TYPE(R,"AbortSignal",C)},E=(C,R)=>{if(typeof C!="function")throw new ERR_INVALID_ARG_TYPE(R,"Function",C)};class A extends Error{constructor(R){if(!Array.isArray(R))throw new TypeError(`Expected input to be an Array, got ${typeof R}`);let O="";for(let M=0;M{C=M,R=L}),resolve:C,reject:R}},promisify(C){return new Promise((R,O)=>{C((M,...L)=>M?O(M):R(...L))})},debuglog(){return function(){}},format(C,...R){return C.replace(/%([sdifj])/g,function(...[O,M]){const L=R.shift();return M==="f"?L.toFixed(6):M==="j"?JSON.stringify(L):M==="s"&&typeof L=="object"?`${L.constructor!==Object?L.constructor.name:""} {}`.trim():L.toString()})},inspect(C){switch(typeof C){case"string":if(C.includes("'"))if(C.includes('"')){if(!C.includes("`")&&!C.includes("${"))return`\`${C}\``}else return`"${C}"`;return`'${C}'`;case"number":return isNaN(C)?"NaN":Object.is(C,-0)?String(C):C;case"bigint":return`${String(C)}n`;case"boolean":case"undefined":return String(C);case"object":return"{}"}},types:{isAsyncFunction(C){return C instanceof h},isArrayBufferView(C){return ArrayBuffer.isView(C)}},isBlob:v,deprecate(C,R){return C},addAbortListener:Ns.addAbortListener||function(R,O){if(R===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",R);y(R,"signal"),E(O,"listener");let M;return R.aborted?queueMicrotask(()=>O()):(R.addEventListener("abort",O,{__proto__:null,once:!0,[o]:!0}),M=()=>{R.removeEventListener("abort",O)}),{__proto__:null,[l](){var L;(L=M)===null||L===void 0||L()}}},AbortSignalAny:u.any||function(R){if(R.length===1)return R[0];const O=new d,M=()=>O.abort();return R.forEach(L=>{y(L,"signals"),L.addEventListener("abort",M,{once:!0})}),O.signal.addEventListener("abort",()=>{R.forEach(L=>L.removeEventListener("abort",M))},{once:!0}),O.signal}},n.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(Zln);var p1=Zln.exports,AGe={};const{format:MEr,inspect:yhe,AggregateError:DEr}=p1,LEr=globalThis.AggregateError||DEr,jEr=Symbol("kIsNodeError"),FEr=["string","function","number","object","Function","Object","boolean","bigint","symbol"],BEr=/^([A-Z][a-z0-9]*)+$/,WEr="__node_internal_",vge={};function cP(n,r){if(!n)throw new vge.ERR_INTERNAL_ASSERTION(r)}function fzt(n){let r="",o=n.length;const l=n[0]==="-"?1:0;for(;o>=l+4;o-=3)r=`_${n.slice(o-3,o)}${r}`;return`${n.slice(0,o)}${r}`}function HEr(n,r,o){if(typeof r=="function")return cP(r.length<=o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${r.length}).`),r(...o);const l=(r.match(/%[dfijoOs]/g)||[]).length;return cP(l===o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${l}).`),o.length===0?r:MEr(r,...o)}function tb(n,r,o){o||(o=Error);class l extends o{constructor(...d){super(HEr(n,r,d))}toString(){return`${this.name} [${n}]: ${this.message}`}}Object.defineProperties(l.prototype,{name:{value:o.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${n}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),l.prototype.code=n,l.prototype[jEr]=!0,vge[n]=l}function dzt(n){const r=WEr+n.name;return Object.defineProperty(n,"name",{value:r}),n}function UEr(n,r){if(n&&r&&n!==r){if(Array.isArray(r.errors))return r.errors.push(n),r;const o=new LEr([r,n],r.message);return o.code=r.code,o}return n||r}let GEr=class extends Error{constructor(r="The operation was aborted",o=void 0){if(o!==void 0&&typeof o!="object")throw new vge.ERR_INVALID_ARG_TYPE("options","Object",o);super(r,o),this.code="ABORT_ERR",this.name="AbortError"}};tb("ERR_ASSERTION","%s",Error);tb("ERR_INVALID_ARG_TYPE",(n,r,o)=>{cP(typeof n=="string","'name' must be a string"),Array.isArray(r)||(r=[r]);let l="The ";n.endsWith(" argument")?l+=`${n} `:l+=`"${n}" ${n.includes(".")?"property":"argument"} `,l+="must be ";const u=[],d=[],h=[];for(const v of r)cP(typeof v=="string","All expected entries have to be of type string"),FEr.includes(v)?u.push(v.toLowerCase()):BEr.test(v)?d.push(v):(cP(v!=="object",'The value "object" should be written as "Object"'),h.push(v));if(d.length>0){const v=u.indexOf("object");v!==-1&&(u.splice(u,v,1),d.push("Object"))}if(u.length>0){switch(u.length){case 1:l+=`of type ${u[0]}`;break;case 2:l+=`one of type ${u[0]} or ${u[1]}`;break;default:{const v=u.pop();l+=`one of type ${u.join(", ")}, or ${v}`}}(d.length>0||h.length>0)&&(l+=" or ")}if(d.length>0){switch(d.length){case 1:l+=`an instance of ${d[0]}`;break;case 2:l+=`an instance of ${d[0]} or ${d[1]}`;break;default:{const v=d.pop();l+=`an instance of ${d.join(", ")}, or ${v}`}}h.length>0&&(l+=" or ")}switch(h.length){case 0:break;case 1:h[0].toLowerCase()!==h[0]&&(l+="an "),l+=`${h[0]}`;break;case 2:l+=`one of ${h[0]} or ${h[1]}`;break;default:{const v=h.pop();l+=`one of ${h.join(", ")}, or ${v}`}}if(o==null)l+=`. Received ${o}`;else if(typeof o=="function"&&o.name)l+=`. Received function ${o.name}`;else if(typeof o=="object"){var w;if((w=o.constructor)!==null&&w!==void 0&&w.name)l+=`. Received an instance of ${o.constructor.name}`;else{const v=yhe(o,{depth:-1});l+=`. Received ${v}`}}else{let v=yhe(o,{colors:!1});v.length>25&&(v=`${v.slice(0,25)}...`),l+=`. Received type ${typeof o} (${v})`}return l},TypeError);tb("ERR_INVALID_ARG_VALUE",(n,r,o="is invalid")=>{let l=yhe(r);return l.length>128&&(l=l.slice(0,128)+"..."),`The ${n.includes(".")?"property":"argument"} '${n}' ${o}. Received ${l}`},TypeError);tb("ERR_INVALID_RETURN_VALUE",(n,r,o)=>{var l;const u=o!=null&&(l=o.constructor)!==null&&l!==void 0&&l.name?`instance of ${o.constructor.name}`:`type ${typeof o}`;return`Expected ${n} to be returned from the "${r}" function but got ${u}.`},TypeError);tb("ERR_MISSING_ARGS",(...n)=>{cP(n.length>0,"At least one arg needs to be specified");let r;const o=n.length;switch(n=(Array.isArray(n)?n:[n]).map(l=>`"${l}"`).join(" or "),o){case 1:r+=`The ${n[0]} argument`;break;case 2:r+=`The ${n[0]} and ${n[1]} arguments`;break;default:{const l=n.pop();r+=`The ${n.join(", ")}, and ${l} arguments`}break}return`${r} must be specified`},TypeError);tb("ERR_OUT_OF_RANGE",(n,r,o)=>{cP(r,'Missing "range" argument');let l;return Number.isInteger(o)&&Math.abs(o)>2**32?l=fzt(String(o)):typeof o=="bigint"?(l=String(o),(o>2n**32n||o<-(2n**32n))&&(l=fzt(l)),l+="n"):l=yhe(o),`The value of "${n}" is out of range. It must be ${r}. Received ${l}`},RangeError);tb("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);tb("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);tb("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);tb("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);tb("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);tb("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);tb("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);tb("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);tb("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);tb("ERR_STREAM_WRITE_AFTER_END","write after end",Error);tb("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var N0={AbortError:GEr,aggregateTwoErrors:dzt(UEr),hideStackFrames:dzt,codes:vge};const{ArrayIsArray:TGe,ArrayPrototypeIncludes:ean,ArrayPrototypeJoin:tan,ArrayPrototypeMap:VEr,NumberIsInteger:$Ge,NumberIsNaN:zEr,NumberMAX_SAFE_INTEGER:KEr,NumberMIN_SAFE_INTEGER:qEr,NumberParseInt:XEr,ObjectPrototypeHasOwnProperty:JEr,RegExpPrototypeExec:nan,String:YEr,StringPrototypeToUpperCase:QEr,StringPrototypeTrim:ZEr}=Hf,{hideStackFrames:yv,codes:{ERR_SOCKET_BAD_PORT:ekr,ERR_INVALID_ARG_TYPE:Qb,ERR_INVALID_ARG_VALUE:Cj,ERR_OUT_OF_RANGE:IP,ERR_UNKNOWN_SIGNAL:hzt}}=N0,{normalizeEncoding:tkr}=p1,{isAsyncFunction:nkr,isArrayBufferView:rkr}=p1.types,pzt={};function ikr(n){return n===(n|0)}function okr(n){return n===n>>>0}const skr=/^[0-7]+$/,lkr="must be a 32-bit unsigned integer or an octal string";function akr(n,r,o){if(typeof n>"u"&&(n=o),typeof n=="string"){if(nan(skr,n)===null)throw new Cj(r,n,lkr);n=XEr(n,8)}return ran(n,r),n}const ckr=yv((n,r,o=qEr,l=KEr)=>{if(typeof n!="number")throw new Qb(r,"number",n);if(!$Ge(n))throw new IP(r,"an integer",n);if(nl)throw new IP(r,`>= ${o} && <= ${l}`,n)}),ukr=yv((n,r,o=-2147483648,l=2147483647)=>{if(typeof n!="number")throw new Qb(r,"number",n);if(!$Ge(n))throw new IP(r,"an integer",n);if(nl)throw new IP(r,`>= ${o} && <= ${l}`,n)}),ran=yv((n,r,o=!1)=>{if(typeof n!="number")throw new Qb(r,"number",n);if(!$Ge(n))throw new IP(r,"an integer",n);const l=o?1:0,u=4294967295;if(nu)throw new IP(r,`>= ${l} && <= ${u}`,n)});function IGe(n,r){if(typeof n!="string")throw new Qb(r,"string",n)}function fkr(n,r,o=void 0,l){if(typeof n!="number")throw new Qb(r,"number",n);if(o!=null&&nl||(o!=null||l!=null)&&zEr(n))throw new IP(r,`${o!=null?`>= ${o}`:""}${o!=null&&l!=null?" && ":""}${l!=null?`<= ${l}`:""}`,n)}const dkr=yv((n,r,o)=>{if(!ean(o,n)){const u="must be one of: "+tan(VEr(o,d=>typeof d=="string"?`'${d}'`:YEr(d)),", ");throw new Cj(r,n,u)}});function ian(n,r){if(typeof n!="boolean")throw new Qb(r,"boolean",n)}function g9e(n,r,o){return n==null||!JEr(n,r)?o:n[r]}const hkr=yv((n,r,o=null)=>{const l=g9e(o,"allowArray",!1),u=g9e(o,"allowFunction",!1);if(!g9e(o,"nullable",!1)&&n===null||!l&&TGe(n)||typeof n!="object"&&(!u||typeof n!="function"))throw new Qb(r,"Object",n)}),pkr=yv((n,r)=>{if(n!=null&&typeof n!="object"&&typeof n!="function")throw new Qb(r,"a dictionary",n)}),_ge=yv((n,r,o=0)=>{if(!TGe(n))throw new Qb(r,"Array",n);if(n.length{if(!rkr(n))throw new Qb(r,["Buffer","TypedArray","DataView"],n)});function vkr(n,r){const o=tkr(r),l=n.length;if(o==="hex"&&l%2!==0)throw new Cj("encoding",r,`is invalid for data of length ${l}`)}function _kr(n,r="Port",o=!0){if(typeof n!="number"&&typeof n!="string"||typeof n=="string"&&ZEr(n).length===0||+n!==+n>>>0||n>65535||n===0&&!o)throw new ekr(r,n,o);return n|0}const oan=yv((n,r)=>{if(n!==void 0&&(n===null||typeof n!="object"||!("aborted"in n)))throw new Qb(r,"AbortSignal",n)}),Skr=yv((n,r)=>{if(typeof n!="function")throw new Qb(r,"Function",n)}),Ekr=yv((n,r)=>{if(typeof n!="function"||nkr(n))throw new Qb(r,"Function",n)}),kkr=yv((n,r)=>{if(n!==void 0)throw new Qb(r,"undefined",n)});function Rkr(n,r,o){if(!ean(o,n))throw new Qb(r,`('${tan(o,"|")}')`,n)}const xkr=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function bzt(n,r){if(typeof n>"u"||!nan(xkr,n))throw new Cj(r,n,'must be an array or string of format "; rel=preload; as=style"')}function Ckr(n){if(typeof n=="string")return bzt(n,"hints"),n;if(TGe(n)){const r=n.length;let o="";if(r===0)return o;for(let l=0;l; rel=preload; as=style"')}var MJ={isInt32:ikr,isUint32:okr,parseFileMode:akr,validateArray:_ge,validateStringArray:bkr,validateBooleanArray:gkr,validateAbortSignalArray:wkr,validateBoolean:ian,validateBuffer:ykr,validateDictionary:pkr,validateEncoding:vkr,validateFunction:Skr,validateInt32:ukr,validateInteger:ckr,validateNumber:fkr,validateObject:hkr,validateOneOf:dkr,validatePlainFunction:Ekr,validatePort:_kr,validateSignalName:mkr,validateString:IGe,validateUint32:ran,validateUndefined:kkr,validateUnion:Rkr,validateAbortSignal:oan,validateLinkHeaderValue:Ckr},PGe={exports:{}};const{SymbolAsyncIterator:gzt,SymbolIterator:wzt,SymbolFor:pO}=Hf,san=pO("nodejs.stream.destroyed"),lan=pO("nodejs.stream.errored"),VFe=pO("nodejs.stream.readable"),zFe=pO("nodejs.stream.writable"),aan=pO("nodejs.stream.disturbed"),Akr=pO("nodejs.webstream.isClosedPromise"),Tkr=pO("nodejs.webstream.controllerErrorFunction");function Sge(n,r=!1){var o;return!!(n&&typeof n.pipe=="function"&&typeof n.on=="function"&&(!r||typeof n.pause=="function"&&typeof n.resume=="function")&&(!n._writableState||((o=n._readableState)===null||o===void 0?void 0:o.readable)!==!1)&&(!n._writableState||n._readableState))}function Ege(n){var r;return!!(n&&typeof n.write=="function"&&typeof n.on=="function"&&(!n._readableState||((r=n._writableState)===null||r===void 0?void 0:r.writable)!==!1))}function $kr(n){return!!(n&&typeof n.pipe=="function"&&n._readableState&&typeof n.on=="function"&&typeof n.write=="function")}function Ek(n){return n&&(n._readableState||n._writableState||typeof n.write=="function"&&typeof n.on=="function"||typeof n.pipe=="function"&&typeof n.on=="function")}function can(n){return!!(n&&!Ek(n)&&typeof n.pipeThrough=="function"&&typeof n.getReader=="function"&&typeof n.cancel=="function")}function uan(n){return!!(n&&!Ek(n)&&typeof n.getWriter=="function"&&typeof n.abort=="function")}function fan(n){return!!(n&&!Ek(n)&&typeof n.readable=="object"&&typeof n.writable=="object")}function Ikr(n){return can(n)||uan(n)||fan(n)}function Pkr(n,r){return n==null?!1:r===!0?typeof n[gzt]=="function":r===!1?typeof n[wzt]=="function":typeof n[gzt]=="function"||typeof n[wzt]=="function"}function kge(n){if(!Ek(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!!(n.destroyed||n[san]||l!=null&&l.destroyed)}function dan(n){if(!Ege(n))return null;if(n.writableEnded===!0)return!0;const r=n._writableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function Okr(n,r){if(!Ege(n))return null;if(n.writableFinished===!0)return!0;const o=n._writableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.finished)!="boolean"?null:!!(o.finished||r===!1&&o.ended===!0&&o.length===0)}function Nkr(n){if(!Sge(n))return null;if(n.readableEnded===!0)return!0;const r=n._readableState;return!r||r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function han(n,r){if(!Sge(n))return null;const o=n._readableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.endEmitted)!="boolean"?null:!!(o.endEmitted||r===!1&&o.ended===!0&&o.length===0)}function pan(n){return n&&n[VFe]!=null?n[VFe]:typeof(n==null?void 0:n.readable)!="boolean"?null:kge(n)?!1:Sge(n)&&n.readable&&!han(n)}function ban(n){return n&&n[zFe]!=null?n[zFe]:typeof(n==null?void 0:n.writable)!="boolean"?null:kge(n)?!1:Ege(n)&&n.writable&&!dan(n)}function Mkr(n,r){return Ek(n)?kge(n)?!0:!((r==null?void 0:r.readable)!==!1&&pan(n)||(r==null?void 0:r.writable)!==!1&&ban(n)):null}function Dkr(n){var r,o;return Ek(n)?n.writableErrored?n.writableErrored:(r=(o=n._writableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function Lkr(n){var r,o;return Ek(n)?n.readableErrored?n.readableErrored:(r=(o=n._readableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function jkr(n){if(!Ek(n))return null;if(typeof n.closed=="boolean")return n.closed;const r=n._writableState,o=n._readableState;return typeof(r==null?void 0:r.closed)=="boolean"||typeof(o==null?void 0:o.closed)=="boolean"?(r==null?void 0:r.closed)||(o==null?void 0:o.closed):typeof n._closed=="boolean"&&gan(n)?n._closed:null}function gan(n){return typeof n._closed=="boolean"&&typeof n._defaultKeepAlive=="boolean"&&typeof n._removedConnection=="boolean"&&typeof n._removedContLen=="boolean"}function wan(n){return typeof n._sent100=="boolean"&&gan(n)}function Fkr(n){var r;return typeof n._consuming=="boolean"&&typeof n._dumped=="boolean"&&((r=n.req)===null||r===void 0?void 0:r.upgradeOrConnect)===void 0}function Bkr(n){if(!Ek(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!l&&wan(n)||!!(l&&l.autoDestroy&&l.emitClose&&l.closed===!1)}function Wkr(n){var r;return!!(n&&((r=n[aan])!==null&&r!==void 0?r:n.readableDidRead||n.readableAborted))}function Hkr(n){var r,o,l,u,d,h,w,v,y,E;return!!(n&&((r=(o=(l=(u=(d=(h=n[lan])!==null&&h!==void 0?h:n.readableErrored)!==null&&d!==void 0?d:n.writableErrored)!==null&&u!==void 0?u:(w=n._readableState)===null||w===void 0?void 0:w.errorEmitted)!==null&&l!==void 0?l:(v=n._writableState)===null||v===void 0?void 0:v.errorEmitted)!==null&&o!==void 0?o:(y=n._readableState)===null||y===void 0?void 0:y.errored)!==null&&r!==void 0?r:!((E=n._writableState)===null||E===void 0)&&E.errored))}var Ix={isDestroyed:kge,kIsDestroyed:san,isDisturbed:Wkr,kIsDisturbed:aan,isErrored:Hkr,kIsErrored:lan,isReadable:pan,kIsReadable:VFe,kIsClosedPromise:Akr,kControllerErrorFunction:Tkr,kIsWritable:zFe,isClosed:jkr,isDuplexNodeStream:$kr,isFinished:Mkr,isIterable:Pkr,isReadableNodeStream:Sge,isReadableStream:can,isReadableEnded:Nkr,isReadableFinished:han,isReadableErrored:Lkr,isNodeStream:Ek,isWebStream:Ikr,isWritable:ban,isWritableNodeStream:Ege,isWritableStream:uan,isWritableEnded:dan,isWritableFinished:Okr,isWritableErrored:Dkr,isServerRequest:Fkr,isServerResponse:wan,willEmitClose:Bkr,isTransformStream:fan};const Q4=ui,{AbortError:man,codes:Ukr}=N0,{ERR_INVALID_ARG_TYPE:Gkr,ERR_STREAM_PREMATURE_CLOSE:mzt}=Ukr,{kEmptyObject:KFe,once:qFe}=p1,{validateAbortSignal:Vkr,validateFunction:zkr,validateObject:Kkr,validateBoolean:qkr}=MJ,{Promise:Xkr,PromisePrototypeThen:Jkr,SymbolDispose:yan}=Hf,{isClosed:Ykr,isReadable:yzt,isReadableNodeStream:w9e,isReadableStream:Qkr,isReadableFinished:vzt,isReadableErrored:_zt,isWritable:Szt,isWritableNodeStream:Ezt,isWritableStream:Zkr,isWritableFinished:kzt,isWritableErrored:Rzt,isNodeStream:e3r,willEmitClose:t3r,kIsClosedPromise:n3r}=Ix;let fL;function r3r(n){return n.setHeader&&typeof n.abort=="function"}const XFe=()=>{};function van(n,r,o){var l,u;if(arguments.length===2?(o=r,r=KFe):r==null?r=KFe:Kkr(r,"options"),zkr(o,"callback"),Vkr(r.signal,"options.signal"),o=qFe(o),Qkr(n)||Zkr(n))return i3r(n,r,o);if(!e3r(n))throw new Gkr("stream",["ReadableStream","WritableStream","Stream"],n);const d=(l=r.readable)!==null&&l!==void 0?l:w9e(n),h=(u=r.writable)!==null&&u!==void 0?u:Ezt(n),w=n._writableState,v=n._readableState,y=()=>{n.writable||C()};let E=t3r(n)&&w9e(n)===d&&Ezt(n)===h,A=kzt(n,!1);const C=()=>{A=!0,n.destroyed&&(E=!1),!(E&&(!n.readable||d))&&(!d||R)&&o.call(n)};let R=vzt(n,!1);const O=()=>{R=!0,n.destroyed&&(E=!1),!(E&&(!n.writable||h))&&(!h||A)&&o.call(n)},M=te=>{o.call(n,te)};let L=Ykr(n);const H=()=>{L=!0;const te=Rzt(n)||_zt(n);if(te&&typeof te!="boolean")return o.call(n,te);if(d&&!R&&w9e(n,!0)&&!vzt(n,!1))return o.call(n,new mzt);if(h&&!A&&!kzt(n,!1))return o.call(n,new mzt);o.call(n)},G=()=>{L=!0;const te=Rzt(n)||_zt(n);if(te&&typeof te!="boolean")return o.call(n,te);o.call(n)},j=()=>{n.req.on("finish",C)};r3r(n)?(n.on("complete",C),E||n.on("abort",H),n.req?j():n.on("request",j)):h&&!w&&(n.on("end",y),n.on("close",y)),!E&&typeof n.aborted=="boolean"&&n.on("aborted",H),n.on("end",O),n.on("finish",C),r.error!==!1&&n.on("error",M),n.on("close",H),L?Q4.nextTick(H):w!=null&&w.errorEmitted||v!=null&&v.errorEmitted?E||Q4.nextTick(G):(!d&&(!E||yzt(n))&&(A||Szt(n)===!1)||!h&&(!E||Szt(n))&&(R||yzt(n)===!1)||v&&n.req&&n.aborted)&&Q4.nextTick(G);const Q=()=>{o=XFe,n.removeListener("aborted",H),n.removeListener("complete",C),n.removeListener("abort",H),n.removeListener("request",j),n.req&&n.req.removeListener("finish",C),n.removeListener("end",y),n.removeListener("close",y),n.removeListener("finish",C),n.removeListener("end",O),n.removeListener("error",M),n.removeListener("close",H)};if(r.signal&&!L){const te=()=>{const pe=o;Q(),pe.call(n,new man(void 0,{cause:r.signal.reason}))};if(r.signal.aborted)Q4.nextTick(te);else{fL=fL||p1.addAbortListener;const pe=fL(r.signal,te),De=o;o=qFe((...Re)=>{pe[yan](),De.apply(n,Re)})}}return Q}function i3r(n,r,o){let l=!1,u=XFe;if(r.signal)if(u=()=>{l=!0,o.call(n,new man(void 0,{cause:r.signal.reason}))},r.signal.aborted)Q4.nextTick(u);else{fL=fL||p1.addAbortListener;const h=fL(r.signal,u),w=o;o=qFe((...v)=>{h[yan](),w.apply(n,v)})}const d=(...h)=>{l||Q4.nextTick(()=>o.apply(n,h))};return Jkr(n[n3r].promise,d,d),XFe}function o3r(n,r){var o;let l=!1;return r===null&&(r=KFe),(o=r)!==null&&o!==void 0&&o.cleanup&&(qkr(r.cleanup,"cleanup"),l=r.cleanup),new Xkr((u,d)=>{const h=van(n,r,w=>{l&&h(),w?d(w):u()})})}PGe.exports=van;PGe.exports.finished=o3r;var GT=PGe.exports;const qE=ui,{aggregateTwoErrors:s3r,codes:{ERR_MULTIPLE_CALLBACK:l3r},AbortError:a3r}=N0,{Symbol:_an}=Hf,{kIsDestroyed:c3r,isDestroyed:u3r,isFinished:f3r,isServerRequest:d3r}=Ix,San=_an("kDestroy"),JFe=_an("kConstruct");function Ean(n,r,o){n&&(n.stack,r&&!r.errored&&(r.errored=n),o&&!o.errored&&(o.errored=n))}function h3r(n,r){const o=this._readableState,l=this._writableState,u=l||o;return l!=null&&l.destroyed||o!=null&&o.destroyed?(typeof r=="function"&&r(),this):(Ean(n,l,o),l&&(l.destroyed=!0),o&&(o.destroyed=!0),u.constructed?xzt(this,n,r):this.once(San,function(d){xzt(this,s3r(d,n),r)}),this)}function xzt(n,r,o){let l=!1;function u(d){if(l)return;l=!0;const h=n._readableState,w=n._writableState;Ean(d,w,h),w&&(w.closed=!0),h&&(h.closed=!0),typeof o=="function"&&o(d),d?qE.nextTick(p3r,n,d):qE.nextTick(kan,n)}try{n._destroy(r||null,u)}catch(d){u(d)}}function p3r(n,r){YFe(n,r),kan(n)}function kan(n){const r=n._readableState,o=n._writableState;o&&(o.closeEmitted=!0),r&&(r.closeEmitted=!0),(o!=null&&o.emitClose||r!=null&&r.emitClose)&&n.emit("close")}function YFe(n,r){const o=n._readableState,l=n._writableState;l!=null&&l.errorEmitted||o!=null&&o.errorEmitted||(l&&(l.errorEmitted=!0),o&&(o.errorEmitted=!0),n.emit("error",r))}function b3r(){const n=this._readableState,r=this._writableState;n&&(n.constructed=!0,n.closed=!1,n.closeEmitted=!1,n.destroyed=!1,n.errored=null,n.errorEmitted=!1,n.reading=!1,n.ended=n.readable===!1,n.endEmitted=n.readable===!1),r&&(r.constructed=!0,r.destroyed=!1,r.closed=!1,r.closeEmitted=!1,r.errored=null,r.errorEmitted=!1,r.finalCalled=!1,r.prefinished=!1,r.ended=r.writable===!1,r.ending=r.writable===!1,r.finished=r.writable===!1)}function QFe(n,r,o){const l=n._readableState,u=n._writableState;if(u!=null&&u.destroyed||l!=null&&l.destroyed)return this;l!=null&&l.autoDestroy||u!=null&&u.autoDestroy?n.destroy(r):r&&(r.stack,u&&!u.errored&&(u.errored=r),l&&!l.errored&&(l.errored=r),o?qE.nextTick(YFe,n,r):YFe(n,r))}function g3r(n,r){if(typeof n._construct!="function")return;const o=n._readableState,l=n._writableState;o&&(o.constructed=!1),l&&(l.constructed=!1),n.once(JFe,r),!(n.listenerCount(JFe)>1)&&qE.nextTick(w3r,n)}function w3r(n){let r=!1;function o(l){if(r){QFe(n,l??new l3r);return}r=!0;const u=n._readableState,d=n._writableState,h=d||u;u&&(u.constructed=!0),d&&(d.constructed=!0),h.destroyed?n.emit(San,l):l?QFe(n,l,!0):qE.nextTick(m3r,n)}try{n._construct(l=>{qE.nextTick(o,l)})}catch(l){qE.nextTick(o,l)}}function m3r(n){n.emit(JFe)}function Czt(n){return(n==null?void 0:n.setHeader)&&typeof n.abort=="function"}function Ran(n){n.emit("close")}function y3r(n,r){n.emit("error",r),qE.nextTick(Ran,n)}function v3r(n,r){!n||u3r(n)||(!r&&!f3r(n)&&(r=new a3r),d3r(n)?(n.socket=null,n.destroy(r)):Czt(n)?n.abort():Czt(n.req)?n.req.abort():typeof n.destroy=="function"?n.destroy(r):typeof n.close=="function"?n.close():r?qE.nextTick(y3r,n,r):qE.nextTick(Ran,n),n.destroyed||(n[c3r]=!0))}var Aj={construct:g3r,destroyer:v3r,destroy:h3r,undestroy:b3r,errorOrDestroy:QFe};const{ArrayIsArray:_3r,ObjectSetPrototypeOf:xan}=Hf,{EventEmitter:Rge}=Ns;function xge(n){Rge.call(this,n)}xan(xge.prototype,Rge.prototype);xan(xge,Rge);xge.prototype.pipe=function(n,r){const o=this;function l(E){n.writable&&n.write(E)===!1&&o.pause&&o.pause()}o.on("data",l);function u(){o.readable&&o.resume&&o.resume()}n.on("drain",u),!n._isStdio&&(!r||r.end!==!1)&&(o.on("end",h),o.on("close",w));let d=!1;function h(){d||(d=!0,n.end())}function w(){d||(d=!0,typeof n.destroy=="function"&&n.destroy())}function v(E){y(),Rge.listenerCount(this,"error")===0&&this.emit("error",E)}ZFe(o,"error",v),ZFe(n,"error",v);function y(){o.removeListener("data",l),n.removeListener("drain",u),o.removeListener("end",h),o.removeListener("close",w),o.removeListener("error",v),n.removeListener("error",v),o.removeListener("end",y),o.removeListener("close",y),n.removeListener("close",y)}return o.on("end",y),o.on("close",y),n.on("close",y),n.emit("pipe",o),n};function ZFe(n,r,o){if(typeof n.prependListener=="function")return n.prependListener(r,o);!n._events||!n._events[r]?n.on(r,o):_3r(n._events[r])?n._events[r].unshift(o):n._events[r]=[o,n._events[r]]}var OGe={Stream:xge,prependListener:ZFe},Can={exports:{}};(function(n){const{SymbolDispose:r}=Hf,{AbortError:o,codes:l}=N0,{isNodeStream:u,isWebStream:d,kControllerErrorFunction:h}=Ix,w=GT,{ERR_INVALID_ARG_TYPE:v}=l;let y;const E=(A,C)=>{if(typeof A!="object"||!("aborted"in A))throw new v(C,"AbortSignal",A)};n.exports.addAbortSignal=function(C,R){if(E(C,"signal"),!u(R)&&!d(R))throw new v("stream",["ReadableStream","WritableStream","Stream"],R);return n.exports.addAbortSignalNoValidate(C,R)},n.exports.addAbortSignalNoValidate=function(A,C){if(typeof A!="object"||!("aborted"in A))return C;const R=u(C)?()=>{C.destroy(new o(void 0,{cause:A.reason}))}:()=>{C[h](new o(void 0,{cause:A.reason}))};if(A.aborted)R();else{y=y||p1.addAbortListener;const O=y(A,R);w(C,O[r])}return C}})(Can);var Cge=Can.exports;const{StringPrototypeSlice:Azt,SymbolIterator:S3r,TypedArrayPrototypeSet:Hue,Uint8Array:E3r}=Hf,{Buffer:m9e}=Kr,{inspect:k3r}=p1;var R3r=class{constructor(){this.head=null,this.tail=null,this.length=0}push(r){const o={data:r,next:null};this.length>0?this.tail.next=o:this.head=o,this.tail=o,++this.length}unshift(r){const o={data:r,next:this.head};this.length===0&&(this.tail=o),this.head=o,++this.length}shift(){if(this.length===0)return;const r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}clear(){this.head=this.tail=null,this.length=0}join(r){if(this.length===0)return"";let o=this.head,l=""+o.data;for(;(o=o.next)!==null;)l+=r+o.data;return l}concat(r){if(this.length===0)return m9e.alloc(0);const o=m9e.allocUnsafe(r>>>0);let l=this.head,u=0;for(;l;)Hue(o,l.data,u),u+=l.data.length,l=l.next;return o}consume(r,o){const l=this.head.data;if(rd.length)o+=d,r-=d.length;else{r===d.length?(o+=d,++u,l.next?this.head=l.next:this.head=this.tail=null):(o+=Azt(d,0,r),this.head=l,l.data=Azt(d,r));break}++u}while((l=l.next)!==null);return this.length-=u,o}_getBuffer(r){const o=m9e.allocUnsafe(r),l=r;let u=this.head,d=0;do{const h=u.data;if(r>h.length)Hue(o,h,l-r),r-=h.length;else{r===h.length?(Hue(o,h,l-r),++d,u.next?this.head=u.next:this.head=this.tail=null):(Hue(o,new E3r(h.buffer,h.byteOffset,r),l-r),this.head=u,u.data=h.slice(r));break}++d}while((u=u.next)!==null);return this.length-=d,o}[Symbol.for("nodejs.util.inspect.custom")](r,o){return k3r(this,{...o,depth:0,customInspect:!1})}};const{MathFloor:x3r,NumberIsInteger:C3r}=Hf,{validateInteger:A3r}=MJ,{ERR_INVALID_ARG_VALUE:T3r}=N0.codes;let Aan=16*1024,Tan=16;function $3r(n,r,o){return n.highWaterMark!=null?n.highWaterMark:r?n[o]:null}function $an(n){return n?Tan:Aan}function I3r(n,r){A3r(r,"value",0),n?Tan=r:Aan=r}function P3r(n,r,o,l){const u=$3r(r,l,o);if(u!=null){if(!C3r(u)||u<0){const d=l?`options.${o}`:"options.highWaterMark";throw new T3r(d,u)}return x3r(u)}return $an(n.objectMode)}var Age={getHighWaterMark:P3r,getDefaultHighWaterMark:$an,setDefaultHighWaterMark:I3r};const Tzt=ui,{PromisePrototypeThen:O3r,SymbolAsyncIterator:$zt,SymbolIterator:Izt}=Hf,{Buffer:N3r}=Kr,{ERR_INVALID_ARG_TYPE:M3r,ERR_STREAM_NULL_VALUES:D3r}=N0.codes;function L3r(n,r,o){let l;if(typeof r=="string"||r instanceof N3r)return new n({objectMode:!0,...o,read(){this.push(r),this.push(null)}});let u;if(r&&r[$zt])u=!0,l=r[$zt]();else if(r&&r[Izt])u=!1,l=r[Izt]();else throw new M3r("iterable",["Iterable"],r);const d=new n({objectMode:!0,highWaterMark:1,...o});let h=!1;d._read=function(){h||(h=!0,v())},d._destroy=function(y,E){O3r(w(y),()=>Tzt.nextTick(E,y),A=>Tzt.nextTick(E,A||y))};async function w(y){const E=y!=null,A=typeof l.throw=="function";if(E&&A){const{value:C,done:R}=await l.throw(y);if(await C,R)return}if(typeof l.return=="function"){const{value:C}=await l.return();await C}}async function v(){for(;;){try{const{value:y,done:E}=u?await l.next():l.next();if(E)d.push(null);else{const A=y&&typeof y.then=="function"?await y:y;if(A===null)throw h=!1,new D3r;if(d.push(A))continue;h=!1}}catch(y){d.destroy(y)}break}}return d}var Ian=L3r,y9e,Pzt;function Tge(){if(Pzt)return y9e;Pzt=1;const n=ui,{ArrayPrototypeIndexOf:r,NumberIsInteger:o,NumberIsNaN:l,NumberParseInt:u,ObjectDefineProperties:d,ObjectKeys:h,ObjectSetPrototypeOf:w,Promise:v,SafeSet:y,SymbolAsyncDispose:E,SymbolAsyncIterator:A,Symbol:C}=Hf;y9e=he,he.ReadableState=_t;const{EventEmitter:R}=Ns,{Stream:O,prependListener:M}=OGe,{Buffer:L}=Kr,{addAbortSignal:H}=Cge,G=GT;let j=p1.debuglog("stream",S=>{j=S});const Q=R3r,te=Aj,{getHighWaterMark:pe,getDefaultHighWaterMark:De}=Age,{aggregateTwoErrors:Re,codes:{ERR_INVALID_ARG_TYPE:le,ERR_METHOD_NOT_IMPLEMENTED:xe,ERR_OUT_OF_RANGE:be,ERR_STREAM_PUSH_AFTER_EOF:ae,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:F},AbortError:me}=N0,{validateObject:ye}=MJ,we=C("kPaused"),{StringDecoder:Be}=rm,He=Ian;w(he.prototype,O.prototype),w(he,O);const Ue=()=>{},{errorOrDestroy:Ge}=te,Le=1,ft=2,re=4,Te=8,dt=16,at=32,Qe=64,yt=128,Lt=256,nn=512,Pe=1024,Ne=2048,T=4096,$=8192,B=16384,K=32768,q=65536,ke=1<<17,Ee=1<<18;function Ie(S){return{enumerable:!1,get(){return(this.state&S)!==0},set(x){x?this.state|=S:this.state&=~S}}}d(_t.prototype,{objectMode:Ie(Le),ended:Ie(ft),endEmitted:Ie(re),reading:Ie(Te),constructed:Ie(dt),sync:Ie(at),needReadable:Ie(Qe),emittedReadable:Ie(yt),readableListening:Ie(Lt),resumeScheduled:Ie(nn),errorEmitted:Ie(Pe),emitClose:Ie(Ne),autoDestroy:Ie(T),destroyed:Ie($),closed:Ie(B),closeEmitted:Ie(K),multiAwaitDrain:Ie(q),readingMore:Ie(ke),dataEmitted:Ie(Ee)});function _t(S,x,Y){typeof Y!="boolean"&&(Y=x instanceof fx()),this.state=Ne|T|dt|at,S&&S.objectMode&&(this.state|=Le),Y&&S&&S.readableObjectMode&&(this.state|=Le),this.highWaterMark=S?pe(this,S,"readableHighWaterMark",Y):De(!1),this.buffer=new Q,this.length=0,this.pipes=[],this.flowing=null,this[we]=null,S&&S.emitClose===!1&&(this.state&=~Ne),S&&S.autoDestroy===!1&&(this.state&=~T),this.errored=null,this.defaultEncoding=S&&S.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,S&&S.encoding&&(this.decoder=new Be(S.encoding),this.encoding=S.encoding)}function he(S){if(!(this instanceof he))return new he(S);const x=this instanceof fx();this._readableState=new _t(S,this,x),S&&(typeof S.read=="function"&&(this._read=S.read),typeof S.destroy=="function"&&(this._destroy=S.destroy),typeof S.construct=="function"&&(this._construct=S.construct),S.signal&&!x&&H(S.signal,this)),O.call(this,S),te.construct(this,()=>{this._readableState.needReadable&&pt(this,this._readableState)})}he.prototype.destroy=te.destroy,he.prototype._undestroy=te.undestroy,he.prototype._destroy=function(S,x){x(S)},he.prototype[R.captureRejectionSymbol]=function(S){this.destroy(S)},he.prototype[E]=function(){let S;return this.destroyed||(S=this.readableEnded?null:new me,this.destroy(S)),new v((x,Y)=>G(this,J=>J&&J!==S?Y(J):x(null)))},he.prototype.push=function(S,x){return Xt(this,S,x,!1)},he.prototype.unshift=function(S,x){return Xt(this,S,x,!0)};function Xt(S,x,Y,J){j("readableAddChunk",x);const ue=S._readableState;let Yt;if(ue.state&Le||(typeof x=="string"?(Y=Y||ue.defaultEncoding,ue.encoding!==Y&&(J&&ue.encoding?x=L.from(x,Y).toString(ue.encoding):(x=L.from(x,Y),Y=""))):x instanceof L?Y="":O._isUint8Array(x)?(x=O._uint8ArrayToBuffer(x),Y=""):x!=null&&(Yt=new le("chunk",["string","Buffer","Uint8Array"],x))),Yt)Ge(S,Yt);else if(x===null)ue.state&=~Te,ce(S,ue);else if(ue.state&Le||x&&x.length>0)if(J)if(ue.state&re)Ge(S,new F);else{if(ue.destroyed||ue.errored)return!1;Zt(S,ue,x,!0)}else if(ue.ended)Ge(S,new ae);else{if(ue.destroyed||ue.errored)return!1;ue.state&=~Te,ue.decoder&&!Y?(x=ue.decoder.write(x),ue.objectMode||x.length!==0?Zt(S,ue,x,!1):pt(S,ue)):Zt(S,ue,x,!1)}else J||(ue.state&=~Te,pt(S,ue));return!ue.ended&&(ue.length0?(x.state&q?x.awaitDrainWriters.clear():x.awaitDrainWriters=null,x.dataEmitted=!0,S.emit("data",Y)):(x.length+=x.objectMode?1:Y.length,J?x.buffer.unshift(Y):x.buffer.push(Y),x.state&Qe&&de(S)),pt(S,x)}he.prototype.isPaused=function(){const S=this._readableState;return S[we]===!0||S.flowing===!1},he.prototype.setEncoding=function(S){const x=new Be(S);this._readableState.decoder=x,this._readableState.encoding=this._readableState.decoder.encoding;const Y=this._readableState.buffer;let J="";for(const ue of Y)J+=x.write(ue);return Y.clear(),J!==""&&Y.push(J),this._readableState.length=J.length,this};const $n=1073741824;function Gn(S){if(S>$n)throw new be("size","<= 1GiB",S);return S--,S|=S>>>1,S|=S>>>2,S|=S>>>4,S|=S>>>8,S|=S>>>16,S++,S}function $e(S,x){return S<=0||x.length===0&&x.ended?0:x.state&Le?1:l(S)?x.flowing&&x.length?x.buffer.first().length:x.length:S<=x.length?S:x.ended?x.length:0}he.prototype.read=function(S){j("read",S),S===void 0?S=NaN:o(S)||(S=u(S,10));const x=this._readableState,Y=S;if(S>x.highWaterMark&&(x.highWaterMark=Gn(S)),S!==0&&(x.state&=~yt),S===0&&x.needReadable&&((x.highWaterMark!==0?x.length>=x.highWaterMark:x.length>0)||x.ended))return j("read: emitReadable",x.length,x.ended),x.length===0&&x.ended?co(this):de(this),null;if(S=$e(S,x),S===0&&x.ended)return x.length===0&&co(this),null;let J=(x.state&Qe)!==0;if(j("need readable",J),(x.length===0||x.length-S0?ue=Al(S,x):ue=null,ue===null?(x.needReadable=x.length<=x.highWaterMark,S=0):(x.length-=S,x.multiAwaitDrain?x.awaitDrainWriters.clear():x.awaitDrainWriters=null),x.length===0&&(x.ended||(x.needReadable=!0),Y!==S&&x.ended&&co(this)),ue!==null&&!x.errorEmitted&&!x.closeEmitted&&(x.dataEmitted=!0,this.emit("data",ue)),ue};function ce(S,x){if(j("onEofChunk"),!x.ended){if(x.decoder){const Y=x.decoder.end();Y&&Y.length&&(x.buffer.push(Y),x.length+=x.objectMode?1:Y.length)}x.ended=!0,x.sync?de(S):(x.needReadable=!1,x.emittedReadable=!0,et(S))}}function de(S){const x=S._readableState;j("emitReadable",x.needReadable,x.emittedReadable),x.needReadable=!1,x.emittedReadable||(j("emitReadable",x.flowing),x.emittedReadable=!0,n.nextTick(et,S))}function et(S){const x=S._readableState;j("emitReadable_",x.destroyed,x.length,x.ended),!x.destroyed&&!x.errored&&(x.length||x.ended)&&(S.emit("readable"),x.emittedReadable=!1),x.needReadable=!x.flowing&&!x.ended&&x.length<=x.highWaterMark,xi(S)}function pt(S,x){!x.readingMore&&x.constructed&&(x.readingMore=!0,n.nextTick(Jt,S,x))}function Jt(S,x){for(;!x.reading&&!x.ended&&(x.length1&&J.pipes.includes(S)&&(j("false write response, pause",J.awaitDrainWriters.size),J.awaitDrainWriters.add(S)),Y.pause()),Fr||(Fr=Qt(Y,S),S.on("drain",Fr))}Y.on("data",ml);function ml(jr){j("ondata");const lr=S.write(jr);j("dest.write",lr),lr===!1&&Rs()}function gs(jr){if(j("onerror",jr),wi(),S.removeListener("error",gs),S.listenerCount("error")===0){const lr=S._writableState||S._readableState;lr&&!lr.errorEmitted?Ge(S,jr):S.emit("error",jr)}}M(S,"error",gs);function as(){S.removeListener("finish",ws),wi()}S.once("close",as);function ws(){j("onfinish"),S.removeListener("close",as),wi()}S.once("finish",ws);function wi(){j("unpipe"),Y.unpipe(S)}return S.emit("pipe",Y),S.writableNeedDrain===!0?Rs():J.flowing||(j("pipe resume"),Y.resume()),S};function Qt(S,x){return function(){const J=S._readableState;J.awaitDrainWriters===x?(j("pipeOnDrain",1),J.awaitDrainWriters=null):J.multiAwaitDrain&&(j("pipeOnDrain",J.awaitDrainWriters.size),J.awaitDrainWriters.delete(x)),(!J.awaitDrainWriters||J.awaitDrainWriters.size===0)&&S.listenerCount("data")&&S.resume()}}he.prototype.unpipe=function(S){const x=this._readableState,Y={hasUnpiped:!1};if(x.pipes.length===0)return this;if(!S){const ue=x.pipes;x.pipes=[],this.pause();for(let Yt=0;Yt0,J.flowing!==!1&&this.resume()):S==="readable"&&!J.endEmitted&&!J.readableListening&&(J.readableListening=J.needReadable=!0,J.flowing=!1,J.emittedReadable=!1,j("on readable",J.length,J.reading),J.length?de(this):J.reading||n.nextTick(ao,this)),Y},he.prototype.addListener=he.prototype.on,he.prototype.removeListener=function(S,x){const Y=O.prototype.removeListener.call(this,S,x);return S==="readable"&&n.nextTick(qr,this),Y},he.prototype.off=he.prototype.removeListener,he.prototype.removeAllListeners=function(S){const x=O.prototype.removeAllListeners.apply(this,arguments);return(S==="readable"||S===void 0)&&n.nextTick(qr,this),x};function qr(S){const x=S._readableState;x.readableListening=S.listenerCount("readable")>0,x.resumeScheduled&&x[we]===!1?x.flowing=!0:S.listenerCount("data")>0?S.resume():x.readableListening||(x.flowing=null)}function ao(S){j("readable nexttick read 0"),S.read(0)}he.prototype.resume=function(){const S=this._readableState;return S.flowing||(j("resume"),S.flowing=!S.readableListening,ki(this,S)),S[we]=!1,this};function ki(S,x){x.resumeScheduled||(x.resumeScheduled=!0,n.nextTick(Ri,S,x))}function Ri(S,x){j("resume",x.reading),x.reading||S.read(0),x.resumeScheduled=!1,S.emit("resume"),xi(S),x.flowing&&!x.reading&&S.read(0)}he.prototype.pause=function(){return j("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(j("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[we]=!0,this};function xi(S){const x=S._readableState;for(j("flow",x.flowing);x.flowing&&S.read()!==null;);}he.prototype.wrap=function(S){let x=!1;S.on("data",J=>{!this.push(J)&&S.pause&&(x=!0,S.pause())}),S.on("end",()=>{this.push(null)}),S.on("error",J=>{Ge(this,J)}),S.on("close",()=>{this.destroy()}),S.on("destroy",()=>{this.destroy()}),this._read=()=>{x&&S.resume&&(x=!1,S.resume())};const Y=h(S);for(let J=1;J{ue=An?Re(ue,An):null,Y(),Y=Ue});try{for(;;){const An=S.destroyed?null:S.read();if(An!==null)yield An;else{if(ue)throw ue;if(ue===null)return;await new v(J)}}}catch(An){throw ue=Re(ue,An),ue}finally{(ue||(x==null?void 0:x.destroyOnReturn)!==!1)&&(ue===void 0||S._readableState.autoDestroy)?te.destroyer(S,null):(S.off("readable",J),Yt())}}d(he.prototype,{readable:{__proto__:null,get(){const S=this._readableState;return!!S&&S.readable!==!1&&!S.destroyed&&!S.errorEmitted&&!S.endEmitted},set(S){this._readableState&&(this._readableState.readable=!!S)}},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(S){this._readableState&&(this._readableState.flowing=S)}},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(S){this._readableState&&(this._readableState.destroyed=S)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),d(_t.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[we]!==!1},set(S){this[we]=!!S}}}),he._fromList=Al;function Al(S,x){if(x.length===0)return null;let Y;return x.objectMode?Y=x.buffer.shift():!S||S>=x.length?(x.decoder?Y=x.buffer.join(""):x.buffer.length===1?Y=x.buffer.first():Y=x.buffer.concat(x.length),x.buffer.clear()):Y=x.buffer.consume(S,x.decoder),Y}function co(S){const x=S._readableState;j("endReadable",x.endEmitted),x.endEmitted||(x.ended=!0,n.nextTick(Zc,x,S))}function Zc(S,x){if(j("endReadableNT",S.endEmitted,S.length),!S.errored&&!S.closeEmitted&&!S.endEmitted&&S.length===0){if(S.endEmitted=!0,x.emit("end"),x.writable&&x.allowHalfOpen===!1)n.nextTick(bu,x);else if(S.autoDestroy){const Y=x._writableState;(!Y||Y.autoDestroy&&(Y.finished||Y.writable===!1))&&x.destroy()}}}function bu(S){S.writable&&!S.writableEnded&&!S.destroyed&&S.end()}he.from=function(S,x){return He(he,S,x)};let So;function ql(){return So===void 0&&(So={}),So}return he.fromWeb=function(S,x){return ql().newStreamReadableFromReadableStream(S,x)},he.toWeb=function(S,x){return ql().newReadableStreamFromStreamReadable(S,x)},he.wrap=function(S,x){var Y,J;return new he({objectMode:(Y=(J=S.readableObjectMode)!==null&&J!==void 0?J:S.objectMode)!==null&&Y!==void 0?Y:!0,...x,destroy(ue,Yt){te.destroyer(S,ue),Yt(ue)}}).wrap(S)},y9e}var v9e,Ozt;function NGe(){if(Ozt)return v9e;Ozt=1;const n=ui,{ArrayPrototypeSlice:r,Error:o,FunctionPrototypeSymbolHasInstance:l,ObjectDefineProperty:u,ObjectDefineProperties:d,ObjectSetPrototypeOf:h,StringPrototypeToLowerCase:w,Symbol:v,SymbolHasInstance:y}=Hf;v9e=ye,ye.WritableState=F;const{EventEmitter:E}=Ns,A=OGe.Stream,{Buffer:C}=Kr,R=Aj,{addAbortSignal:O}=Cge,{getHighWaterMark:M,getDefaultHighWaterMark:L}=Age,{ERR_INVALID_ARG_TYPE:H,ERR_METHOD_NOT_IMPLEMENTED:G,ERR_MULTIPLE_CALLBACK:j,ERR_STREAM_CANNOT_PIPE:Q,ERR_STREAM_DESTROYED:te,ERR_STREAM_ALREADY_FINISHED:pe,ERR_STREAM_NULL_VALUES:De,ERR_STREAM_WRITE_AFTER_END:Re,ERR_UNKNOWN_ENCODING:le}=N0.codes,{errorOrDestroy:xe}=R;h(ye.prototype,A.prototype),h(ye,A);function be(){}const ae=v("kOnFinished");function F(T,$,B){typeof B!="boolean"&&(B=$ instanceof fx()),this.objectMode=!!(T&&T.objectMode),B&&(this.objectMode=this.objectMode||!!(T&&T.writableObjectMode)),this.highWaterMark=T?M(this,T,"writableHighWaterMark",B):L(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const K=!!(T&&T.decodeStrings===!1);this.decodeStrings=!K,this.defaultEncoding=T&&T.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=Ge.bind(void 0,$),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,me(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[ae]=[]}function me(T){T.buffered=[],T.bufferedIndex=0,T.allBuffers=!0,T.allNoop=!0}F.prototype.getBuffer=function(){return r(this.buffered,this.bufferedIndex)},u(F.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function ye(T){const $=this instanceof fx();if(!$&&!l(ye,this))return new ye(T);this._writableState=new F(T,this,$),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&&O(T.signal,this)),A.call(this,T),R.construct(this,()=>{const B=this._writableState;B.writing||Te(this,B),yt(this,B)})}u(ye,y,{__proto__:null,value:function(T){return l(this,T)?!0:this!==ye?!1:T&&T._writableState instanceof F}}),ye.prototype.pipe=function(){xe(this,new Q)};function we(T,$,B,K){const q=T._writableState;if(typeof B=="function")K=B,B=q.defaultEncoding;else{if(!B)B=q.defaultEncoding;else if(B!=="buffer"&&!C.isEncoding(B))throw new le(B);typeof K!="function"&&(K=be)}if($===null)throw new De;if(!q.objectMode)if(typeof $=="string")q.decodeStrings!==!1&&($=C.from($,B),B="buffer");else if($ instanceof C)B="buffer";else if(A._isUint8Array($))$=A._uint8ArrayToBuffer($),B="buffer";else throw new H("chunk",["string","Buffer","Uint8Array"],$);let ke;return q.ending?ke=new Re:q.destroyed&&(ke=new te("write")),ke?(n.nextTick(K,ke),xe(T,ke,!0),ke):(q.pendingcb++,Be(T,q,$,B,K))}ye.prototype.write=function(T,$,B){return we(this,T,$,B)===!0},ye.prototype.cork=function(){this._writableState.corked++},ye.prototype.uncork=function(){const T=this._writableState;T.corked&&(T.corked--,T.writing||Te(this,T))},ye.prototype.setDefaultEncoding=function($){if(typeof $=="string"&&($=w($)),!C.isEncoding($))throw new le($);return this._writableState.defaultEncoding=$,this};function Be(T,$,B,K,q){const ke=$.objectMode?1:B.length;$.length+=ke;const Ee=$.length<$.highWaterMark;return Ee||($.needDrain=!0),$.writing||$.corked||$.errored||!$.constructed?($.buffered.push({chunk:B,encoding:K,callback:q}),$.allBuffers&&K!=="buffer"&&($.allBuffers=!1),$.allNoop&&q!==be&&($.allNoop=!1)):($.writelen=ke,$.writecb=q,$.writing=!0,$.sync=!0,T._write(B,K,$.onwrite),$.sync=!1),Ee&&!$.errored&&!$.destroyed}function He(T,$,B,K,q,ke,Ee){$.writelen=K,$.writecb=Ee,$.writing=!0,$.sync=!0,$.destroyed?$.onwrite(new te("write")):B?T._writev(q,$.onwrite):T._write(q,ke,$.onwrite),$.sync=!1}function Ue(T,$,B,K){--$.pendingcb,K(B),re($),xe(T,B)}function Ge(T,$){const B=T._writableState,K=B.sync,q=B.writecb;if(typeof q!="function"){xe(T,new j);return}B.writing=!1,B.writecb=null,B.length-=B.writelen,B.writelen=0,$?($.stack,B.errored||(B.errored=$),T._readableState&&!T._readableState.errored&&(T._readableState.errored=$),K?n.nextTick(Ue,T,B,$,q):Ue(T,B,$,q)):(B.buffered.length>B.bufferedIndex&&Te(T,B),K?B.afterWriteTickInfo!==null&&B.afterWriteTickInfo.cb===q?B.afterWriteTickInfo.count++:(B.afterWriteTickInfo={count:1,cb:q,stream:T,state:B},n.nextTick(Le,B.afterWriteTickInfo)):ft(T,B,1,q))}function Le({stream:T,state:$,count:B,cb:K}){return $.afterWriteTickInfo=null,ft(T,$,B,K)}function ft(T,$,B,K){for(!$.ending&&!T.destroyed&&$.length===0&&$.needDrain&&($.needDrain=!1,T.emit("drain"));B-- >0;)$.pendingcb--,K();$.destroyed&&re($),yt(T,$)}function re(T){if(T.writing)return;for(let q=T.bufferedIndex;q1&&T._writev){$.pendingcb-=ke-1;const Ie=$.allNoop?be:he=>{for(let Xt=Ee;Xt256?(B.splice(0,Ee),$.bufferedIndex=0):$.bufferedIndex=Ee}$.bufferProcessing=!1}ye.prototype._write=function(T,$,B){if(this._writev)this._writev([{chunk:T,encoding:$}],B);else throw new G("_write()")},ye.prototype._writev=null,ye.prototype.end=function(T,$,B){const K=this._writableState;typeof T=="function"?(B=T,T=null,$=null):typeof $=="function"&&(B=$,$=null);let q;if(T!=null){const ke=we(this,T,$);ke instanceof o&&(q=ke)}return K.corked&&(K.corked=1,this.uncork()),q||(!K.errored&&!K.ending?(K.ending=!0,yt(this,K,!0),K.ended=!0):K.finished?q=new pe("end"):K.destroyed&&(q=new te("end"))),typeof B=="function"&&(q||K.finished?n.nextTick(B,q):K[ae].push(B)),this};function dt(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 at(T,$){let B=!1;function K(q){if(B){xe(T,q??j());return}if(B=!0,$.pendingcb--,q){const ke=$[ae].splice(0);for(let Ee=0;Ee{dt(q)?Lt(K,q):q.pendingcb--},T,$)):dt($)&&($.pendingcb++,Lt(T,$))))}function Lt(T,$){$.pendingcb--,$.finished=!0;const B=$[ae].splice(0);for(let K=0;K{if(re!=null)throw new O("nully","body",re)},re=>{M(Le,re)});return Le=new le({objectMode:!0,readable:!1,write:Be,final(re){He(async()=>{try{await ft,n.nextTick(re,null)}catch(Te){n.nextTick(re,Te)}})},destroy:Ue})}throw new O("Iterable, AsyncIterable or AsyncFunction",me,we)}if(pe(F))return ae(F.arrayBuffer());if(u(F))return Q(le,F,{objectMode:!0,writable:!1});if(y(F==null?void 0:F.readable)&&E(F==null?void 0:F.writable))return le.fromWeb(F);if(typeof(F==null?void 0:F.writable)=="object"||typeof(F==null?void 0:F.readable)=="object"){const we=F!=null&&F.readable?h(F==null?void 0:F.readable)?F==null?void 0:F.readable:ae(F.readable):void 0,Be=F!=null&&F.writable?w(F==null?void 0:F.writable)?F==null?void 0:F.writable:ae(F.writable):void 0;return be({readable:we,writable:Be})}const ye=F==null?void 0:F.then;if(typeof ye=="function"){let we;return Re(ye,F,Be=>{Be!=null&&we.push(Be),we.push(null)},Be=>{M(we,Be)}),we=new le({objectMode:!0,writable:!1,read(){}})}throw new R(me,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],F)};function xe(ae){let{promise:F,resolve:me}=j();const ye=new De,we=ye.signal;return{value:ae(async function*(){for(;;){const He=F;F=null;const{chunk:Ue,done:Ge,cb:Le}=await He;if(n.nextTick(Le),Ge)return;if(we.aborted)throw new C(void 0,{cause:we.reason});({promise:F,resolve:me}=j()),yield Ue}}(),{signal:we}),write(He,Ue,Ge){const Le=me;me=null,Le({chunk:He,done:!1,cb:Ge})},final(He){const Ue=me;me=null,Ue({done:!0,cb:He})},destroy(He,Ue){ye.abort(),Ue(He)}}}function be(ae){const F=ae.readable&&typeof ae.readable.read!="function"?H.wrap(ae.readable):ae.readable,me=ae.writable;let ye=!!o(F),we=!!l(me),Be,He,Ue,Ge,Le;function ft(re){const Te=Ge;Ge=null,Te?Te(re):re&&Le.destroy(re)}return Le=new le({readableObjectMode:!!(F!=null&&F.readableObjectMode),writableObjectMode:!!(me!=null&&me.writableObjectMode),readable:ye,writable:we}),we&&(A(me,re=>{we=!1,re&&M(F,re),ft(re)}),Le._write=function(re,Te,dt){me.write(re,Te)?dt():Be=dt},Le._final=function(re){me.end(),He=re},me.on("drain",function(){if(Be){const re=Be;Be=null,re()}}),me.on("finish",function(){if(He){const re=He;He=null,re()}})),ye&&(A(F,re=>{ye=!1,re&&M(F,re),ft(re)}),F.on("readable",function(){if(Ue){const re=Ue;Ue=null,re()}}),F.on("end",function(){Le.push(null)}),Le._read=function(){for(;;){const re=F.read();if(re===null){Ue=Le._read;return}if(!Le.push(re))return}}),Le._destroy=function(re,Te){!re&&Ge!==null&&(re=new C),Ue=null,Be=null,He=null,Ge===null?Te(re):(Ge=Te,M(me,re),M(F,re))},Le}return _9e}var S9e,Mzt;function fx(){if(Mzt)return S9e;Mzt=1;const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:o,ObjectSetPrototypeOf:l}=Hf;S9e=h;const u=Tge(),d=NGe();l(h.prototype,u.prototype),l(h,u);{const E=o(d.prototype);for(let A=0;A{if(r){n?n(r):this.destroy(r);return}o!=null&&this.push(o),this.push(null),n&&n()}):(this.push(null),n&&n())}function H3r(){this._final!==eBe&&eBe.call(this)}dx.prototype._final=eBe;dx.prototype._transform=function(n,r,o){throw new B3r("_transform()")};dx.prototype._write=function(n,r,o){const l=this._readableState,u=this._writableState,d=l.length;this._transform(n,r,(h,w)=>{if(h){o(h);return}w!=null&&this.push(w),u.ended||d===l.length||l.length{l=!0});const u=vhe(n,{readable:r,writable:o},d=>{l=!d});return{destroy:d=>{l||(l=!0,q3r.destroyer(n,d||new Y3r("pipe")))},cleanup:u}}function oRr(n){return eRr(n[n.length-1],"streams[stream.length - 1]"),n.pop()}function T9e(n){if(I8(n))return n;if(lde(n))return sRr(n);throw new tBe("val",["Readable","Iterable","AsyncIterable"],n)}async function*sRr(n){C9e||(C9e=Tge()),yield*C9e.prototype[V3r].call(n)}async function Uue(n,r,o,{end:l}){let u,d=null;const h=y=>{if(y&&(u=y),d){const E=d;d=null,E()}},w=()=>new G3r((y,E)=>{u?E(u):d=()=>{u?E(u):y()}});r.on("drain",h);const v=vhe(r,{readable:!1},h);try{r.writableNeedDrain&&await w();for await(const y of n)r.write(y)||await w();l&&(r.end(),await w()),o()}catch(y){o(u!==y?X3r(u,y):y)}finally{v(),r.off("drain",h)}}async function $9e(n,r,o,{end:l}){TD(r)&&(r=r.writable);const u=r.getWriter();try{for await(const d of n)await u.ready,u.write(d).catch(()=>{});await u.ready,l&&await u.close(),o()}catch(d){try{await u.abort(d),o(d)}catch(h){o(h)}}}function lRr(...n){return Dan(n,K3r(oRr(n)))}function Dan(n,r,o){if(n.length===1&&U3r(n[0])&&(n=n[0]),n.length<2)throw new J3r("streams");const l=new iRr,u=l.signal,d=o==null?void 0:o.signal,h=[];tRr(d,"options.signal");function w(){O(new Z3r)}A9e=A9e||p1.addAbortListener;let v;d&&(v=A9e(d,w));let y,E;const A=[];let C=0;function R(G){O(G,--C===0)}function O(G,j){var Q;if(G&&(!y||y.code==="ERR_STREAM_PREMATURE_CLOSE")&&(y=G),!(!y&&!j)){for(;A.length;)A.shift()(y);(Q=v)===null||Q===void 0||Q[z3r](),l.abort(),j&&(y||h.forEach(te=>te()),DK.nextTick(r,y,E))}}let M;for(let G=0;G0,pe=Q||(o==null?void 0:o.end)!==!1,De=G===n.length-1;if(Lzt(j)){let Re=function(le){le&&le.name!=="AbortError"&&le.code!=="ERR_STREAM_PREMATURE_CLOSE"&&R(le)};if(pe){const{destroy:le,cleanup:xe}=jzt(j,Q,te);A.push(le),k9e(j)&&De&&h.push(xe)}j.on("error",Re),k9e(j)&&De&&h.push(()=>{j.removeListener("error",Re)})}if(G===0)if(typeof j=="function"){if(M=j({signal:u}),!I8(M))throw new E9e("Iterable, AsyncIterable or Stream","source",M)}else I8(j)||lde(j)||TD(j)?M=j:M=Dzt.from(j);else if(typeof j=="function"){if(TD(M)){var L;M=T9e((L=M)===null||L===void 0?void 0:L.readable)}else M=T9e(M);if(M=j(M,{signal:u}),Q){if(!I8(M,!0))throw new E9e("AsyncIterable",`transform[${G-1}]`,M)}else{var H;x9e||(x9e=Man);const Re=new x9e({objectMode:!0}),le=(H=M)===null||H===void 0?void 0:H.then;if(typeof le=="function")C++,le.call(M,ae=>{E=ae,ae!=null&&Re.write(ae),pe&&Re.end(),DK.nextTick(R)},ae=>{Re.destroy(ae),DK.nextTick(R,ae)});else if(I8(M,!0))C++,Uue(M,Re,R,{end:pe});else if(R9e(M)||TD(M)){const ae=M.readable||M;C++,Uue(ae,Re,R,{end:pe})}else throw new E9e("AsyncIterable or Promise","destination",M);M=Re;const{destroy:xe,cleanup:be}=jzt(M,!1,!0);A.push(xe),De&&h.push(be)}}else if(Lzt(j)){if(lde(M)){C+=2;const Re=aRr(M,j,R,{end:pe});k9e(j)&&De&&h.push(Re)}else if(TD(M)||R9e(M)){const Re=M.readable||M;C++,Uue(Re,j,R,{end:pe})}else if(I8(M))C++,Uue(M,j,R,{end:pe});else throw new tBe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else if(nRr(j)){if(lde(M))C++,$9e(T9e(M),j,R,{end:pe});else if(R9e(M)||I8(M))C++,$9e(M,j,R,{end:pe});else if(TD(M))C++,$9e(M.readable,j,R,{end:pe});else throw new tBe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else M=Dzt.from(j)}return(u!=null&&u.aborted||d!=null&&d.aborted)&&DK.nextTick(w),M}function aRr(n,r,o,{end:l}){let u=!1;if(r.on("close",()=>{u||o(new Q3r)}),n.pipe(r,{end:!1}),l){let d=function(){u=!0,r.end()};rRr(n)?DK.nextTick(d):n.once("end",d)}else o();return vhe(n,{readable:!0,writable:!1},d=>{const h=n._readableState;d&&d.code==="ERR_STREAM_PREMATURE_CLOSE"&&h&&h.ended&&!h.errored&&!h.errorEmitted?n.once("end",o).once("error",o):o(d)}),vhe(r,{readable:!1,writable:!0},o)}var LGe={pipelineImpl:Dan,pipeline:lRr};const{pipeline:cRr}=LGe,Gue=fx(),{destroyer:uRr}=Aj,{isNodeStream:Vue,isReadable:Fzt,isWritable:Bzt,isWebStream:I9e,isTransformStream:f8,isWritableStream:Wzt,isReadableStream:Hzt}=Ix,{AbortError:fRr,codes:{ERR_INVALID_ARG_VALUE:Uzt,ERR_MISSING_ARGS:dRr}}=N0,hRr=GT;var Lan=function(...r){if(r.length===0)throw new dRr("streams");if(r.length===1)return Gue.from(r[0]);const o=[...r];if(typeof r[0]=="function"&&(r[0]=Gue.from(r[0])),typeof r[r.length-1]=="function"){const R=r.length-1;r[R]=Gue.from(r[R])}for(let R=0;R0&&!(Bzt(r[R])||Wzt(r[R])||f8(r[R])))throw new Uzt(`streams[${R}]`,o[R],"must be writable")}let l,u,d,h,w;function v(R){const O=h;h=null,O?O(R):R?w.destroy(R):!C&&!A&&w.destroy()}const y=r[0],E=cRr(r,v),A=!!(Bzt(y)||Wzt(y)||f8(y)),C=!!(Fzt(E)||Hzt(E)||f8(E));if(w=new Gue({writableObjectMode:!!(y!=null&&y.writableObjectMode),readableObjectMode:!!(E!=null&&E.readableObjectMode),writable:A,readable:C}),A){if(Vue(y))w._write=function(O,M,L){y.write(O,M)?L():l=L},w._final=function(O){y.end(),u=O},y.on("drain",function(){if(l){const O=l;l=null,O()}});else if(I9e(y)){const M=(f8(y)?y.writable:y).getWriter();w._write=async function(L,H,G){try{await M.ready,M.write(L).catch(()=>{}),G()}catch(j){G(j)}},w._final=async function(L){try{await M.ready,M.close().catch(()=>{}),u=L}catch(H){L(H)}}}const R=f8(E)?E.readable:E;hRr(R,()=>{if(u){const O=u;u=null,O()}})}if(C){if(Vue(E))E.on("readable",function(){if(d){const R=d;d=null,R()}}),E.on("end",function(){w.push(null)}),w._read=function(){for(;;){const R=E.read();if(R===null){d=w._read;return}if(!w.push(R))return}};else if(I9e(E)){const O=(f8(E)?E.readable:E).getReader();w._read=async function(){for(;;)try{const{value:M,done:L}=await O.read();if(!w.push(M))return;if(L){w.push(null);return}}catch{return}}}}return w._destroy=function(R,O){!R&&h!==null&&(R=new fRr),d=null,l=null,u=null,h===null?O(R):(h=O,Vue(E)&&uRr(E,R))},w};const pRr=globalThis.AbortController||$o().AbortController,{codes:{ERR_INVALID_ARG_VALUE:bRr,ERR_INVALID_ARG_TYPE:DJ,ERR_MISSING_ARGS:gRr,ERR_OUT_OF_RANGE:wRr},AbortError:fk}=N0,{validateAbortSignal:bO,validateInteger:Gzt,validateObject:gO}=MJ,mRr=Hf.Symbol("kWeak"),yRr=Hf.Symbol("kResistStopPropagation"),{finished:vRr}=GT,_Rr=Lan,{addAbortSignalNoValidate:SRr}=Cge,{isWritable:ERr,isNodeStream:kRr}=Ix,{deprecate:RRr}=p1,{ArrayPrototypePush:xRr,Boolean:CRr,MathFloor:Vzt,Number:ARr,NumberIsNaN:TRr,Promise:zzt,PromiseReject:Kzt,PromiseResolve:$Rr,PromisePrototypeThen:qzt,Symbol:jan}=Hf,_he=jan("kEmpty"),Xzt=jan("kEof");function IRr(n,r){if(r!=null&&gO(r,"options"),(r==null?void 0:r.signal)!=null&&bO(r.signal,"options.signal"),kRr(n)&&!ERr(n))throw new bRr("stream",n,"must be writable");const o=_Rr(this,n);return r!=null&&r.signal&&SRr(r.signal,o),o}function $ge(n,r){if(typeof n!="function")throw new DJ("fn",["Function","AsyncFunction"],n);r!=null&&gO(r,"options"),(r==null?void 0:r.signal)!=null&&bO(r.signal,"options.signal");let o=1;(r==null?void 0:r.concurrency)!=null&&(o=Vzt(r.concurrency));let l=o-1;return(r==null?void 0:r.highWaterMark)!=null&&(l=Vzt(r.highWaterMark)),Gzt(o,"options.concurrency",1),Gzt(l,"options.highWaterMark",0),l+=o,(async function*(){const d=p1.AbortSignalAny([r==null?void 0:r.signal].filter(CRr)),h=this,w=[],v={signal:d};let y,E,A=!1,C=0;function R(){A=!0,O()}function O(){C-=1,M()}function M(){E&&!A&&C=l||C>=o)&&await new zzt(G=>{E=G})}w.push(Xzt)}catch(H){const G=Kzt(H);qzt(G,O,R),w.push(G)}finally{A=!0,y&&(y(),y=null)}}L();try{for(;;){for(;w.length>0;){const H=await w[0];if(H===Xzt)return;if(d.aborted)throw new fk;H!==_he&&(yield H),w.shift(),M()}await new zzt(H=>{y=H})}}finally{A=!0,E&&(E(),E=null)}}).call(this)}function PRr(n=void 0){return n!=null&&gO(n,"options"),(n==null?void 0:n.signal)!=null&&bO(n.signal,"options.signal"),(async function*(){let o=0;for await(const u of this){var l;if(n!=null&&(l=n.signal)!==null&&l!==void 0&&l.aborted)throw new fk({cause:n.signal.reason});yield[o++,u]}}).call(this)}async function Fan(n,r=void 0){for await(const o of jGe.call(this,n,r))return!0;return!1}async function ORr(n,r=void 0){if(typeof n!="function")throw new DJ("fn",["Function","AsyncFunction"],n);return!await Fan.call(this,async(...o)=>!await n(...o),r)}async function NRr(n,r){for await(const o of jGe.call(this,n,r))return o}async function MRr(n,r){if(typeof n!="function")throw new DJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u),_he}for await(const l of $ge.call(this,o,r));}function jGe(n,r){if(typeof n!="function")throw new DJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u)?l:_he}return $ge.call(this,o,r)}let DRr=class extends gRr{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function LRr(n,r,o){var l;if(typeof n!="function")throw new DJ("reducer",["Function","AsyncFunction"],n);o!=null&&gO(o,"options"),(o==null?void 0:o.signal)!=null&&bO(o.signal,"options.signal");let u=arguments.length>1;if(o!=null&&(l=o.signal)!==null&&l!==void 0&&l.aborted){const y=new fk(void 0,{cause:o.signal.reason});throw this.once("error",()=>{}),await vRr(this.destroy(y)),y}const d=new pRr,h=d.signal;if(o!=null&&o.signal){const y={once:!0,[mRr]:this,[yRr]:!0};o.signal.addEventListener("abort",()=>d.abort(),y)}let w=!1;try{for await(const y of this){var v;if(w=!0,o!=null&&(v=o.signal)!==null&&v!==void 0&&v.aborted)throw new fk;u?r=await n(r,y,{signal:h}):(r=y,u=!0)}if(!w&&!u)throw new DRr}finally{d.abort()}return r}async function jRr(n){n!=null&&gO(n,"options"),(n==null?void 0:n.signal)!=null&&bO(n.signal,"options.signal");const r=[];for await(const l of this){var o;if(n!=null&&(o=n.signal)!==null&&o!==void 0&&o.aborted)throw new fk(void 0,{cause:n.signal.reason});xRr(r,l)}return r}function FRr(n,r){const o=$ge.call(this,n,r);return(async function*(){for await(const u of o)yield*u}).call(this)}function Ban(n){if(n=ARr(n),TRr(n))return 0;if(n<0)throw new wRr("number",">= 0",n);return n}function BRr(n,r=void 0){return r!=null&&gO(r,"options"),(r==null?void 0:r.signal)!=null&&bO(r.signal,"options.signal"),n=Ban(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new fk;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new fk;n--<=0&&(yield d)}}).call(this)}function WRr(n,r=void 0){return r!=null&&gO(r,"options"),(r==null?void 0:r.signal)!=null&&bO(r.signal,"options.signal"),n=Ban(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new fk;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new fk;if(n-- >0&&(yield d),n<=0)return}}).call(this)}AGe.streamReturningOperators={asIndexedPairs:RRr(PRr,"readable.asIndexedPairs will be removed in a future version."),drop:BRr,filter:jGe,flatMap:FRr,map:$ge,take:WRr,compose:IRr};AGe.promiseReturningOperators={every:ORr,forEach:MRr,reduce:LRr,toArray:jRr,some:Fan,find:NRr};var P9e,Jzt;function Wan(){if(Jzt)return P9e;Jzt=1;const{ArrayPrototypePop:n,Promise:r}=Hf,{isIterable:o,isNodeStream:l,isWebStream:u}=Ix,{pipelineImpl:d}=LGe,{finished:h}=GT;Han();function w(...v){return new r((y,E)=>{let A,C;const R=v[v.length-1];if(R&&typeof R=="object"&&!l(R)&&!o(R)&&!u(R)){const O=n(v);A=O.signal,C=O.end}d(v,(O,M)=>{O?E(O):y(M)},{signal:A,end:C})})}return P9e={finished:h,pipeline:w},P9e}var Yzt;function Han(){if(Yzt)return b9e.exports;Yzt=1;const{Buffer:n}=Kr,{ObjectDefineProperty:r,ObjectKeys:o,ReflectApply:l}=Hf,{promisify:{custom:u}}=p1,{streamReturningOperators:d,promiseReturningOperators:h}=AGe,{codes:{ERR_ILLEGAL_CONSTRUCTOR:w}}=N0,v=Lan,{setDefaultHighWaterMark:y,getDefaultHighWaterMark:E}=Age,{pipeline:A}=LGe,{destroyer:C}=Aj,R=GT,O=Wan(),M=Ix,L=b9e.exports=OGe.Stream;L.isDestroyed=M.isDestroyed,L.isDisturbed=M.isDisturbed,L.isErrored=M.isErrored,L.isReadable=M.isReadable,L.isWritable=M.isWritable,L.Readable=Tge();for(const G of o(d)){let Q=function(...te){if(new.target)throw w();return L.Readable.from(l(j,this,te))};const j=d[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}for(const G of o(h)){let Q=function(...te){if(new.target)throw w();return l(j,this,te)};const j=h[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}L.Writable=NGe(),L.Duplex=fx(),L.Transform=Oan,L.PassThrough=Man,L.pipeline=A;const{addAbortSignal:H}=Cge;return L.addAbortSignal=H,L.finished=R,L.destroy=C,L.compose=v,L.setDefaultHighWaterMark=y,L.getDefaultHighWaterMark=E,r(L,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return O}}),r(A,u,{__proto__:null,enumerable:!0,get(){return O.pipeline}}),r(R,u,{__proto__:null,enumerable:!0,get(){return O.finished}}),L.Stream=L,L._isUint8Array=function(j){return j instanceof Uint8Array},L._uint8ArrayToBuffer=function(j){return n.from(j.buffer,j.byteOffset,j.byteLength)},b9e.exports}(function(n){const r=Han(),o=Wan(),l=r.Readable.destroy;n.exports=r.Readable,n.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer,n.exports._isUint8Array=r._isUint8Array,n.exports.isDisturbed=r.isDisturbed,n.exports.isErrored=r.isErrored,n.exports.isReadable=r.isReadable,n.exports.Readable=r.Readable,n.exports.Writable=r.Writable,n.exports.Duplex=r.Duplex,n.exports.Transform=r.Transform,n.exports.PassThrough=r.PassThrough,n.exports.addAbortSignal=r.addAbortSignal,n.exports.finished=r.finished,n.exports.destroy=r.destroy,n.exports.destroy=l,n.exports.pipeline=r.pipeline,n.exports.compose=r.compose,Object.defineProperty(r,"promises",{configurable:!0,enumerable:!0,get(){return o}}),n.exports.Stream=r.Stream,n.exports.default=n.exports})(NEr);Kn("http://www.w3.org/1999/02/22-rdf-syntax-ns#");Kn("http://www.w3.org/1999/02/22-rdf-syntax-ns#");Kn("http://www.w3.org/2001/XMLSchema#");var Uan={exports:{}},O9e={exports:{}},Uf={ArrayIsArray(n){return Array.isArray(n)},ArrayPrototypeIncludes(n,r){return n.includes(r)},ArrayPrototypeIndexOf(n,r){return n.indexOf(r)},ArrayPrototypeJoin(n,r){return n.join(r)},ArrayPrototypeMap(n,r){return n.map(r)},ArrayPrototypePop(n,r){return n.pop(r)},ArrayPrototypePush(n,r){return n.push(r)},ArrayPrototypeSlice(n,r,o){return n.slice(r,o)},Error,FunctionPrototypeCall(n,r,...o){return n.call(r,...o)},FunctionPrototypeSymbolHasInstance(n,r){return Function.prototype[Symbol.hasInstance].call(n,r)},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(n,r){return Object.defineProperties(n,r)},ObjectDefineProperty(n,r,o){return Object.defineProperty(n,r,o)},ObjectGetOwnPropertyDescriptor(n,r){return Object.getOwnPropertyDescriptor(n,r)},ObjectKeys(n){return Object.keys(n)},ObjectSetPrototypeOf(n,r){return Object.setPrototypeOf(n,r)},Promise,PromisePrototypeCatch(n,r){return n.catch(r)},PromisePrototypeThen(n,r,o){return n.then(r,o)},PromiseReject(n){return Promise.reject(n)},PromiseResolve(n){return Promise.resolve(n)},ReflectApply:Reflect.apply,RegExpPrototypeTest(n,r){return n.test(r)},SafeSet:Set,String,StringPrototypeSlice(n,r,o){return n.slice(r,o)},StringPrototypeToLowerCase(n){return n.toLowerCase()},StringPrototypeToUpperCase(n){return n.toUpperCase()},StringPrototypeTrim(n){return n.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(n,r,o){return n.set(r,o)},Boolean,Uint8Array},Gan={exports:{}};(function(n){const r=Kr,{kResistStopPropagation:o,SymbolDispose:l}=Uf,u=globalThis.AbortSignal||$o().AbortSignal,d=globalThis.AbortController||$o().AbortController,h=Object.getPrototypeOf(async function(){}).constructor,w=globalThis.Blob||r.Blob,v=typeof w<"u"?function(R){return R instanceof w}:function(R){return!1},y=(C,R)=>{if(C!==void 0&&(C===null||typeof C!="object"||!("aborted"in C)))throw new ERR_INVALID_ARG_TYPE(R,"AbortSignal",C)},E=(C,R)=>{if(typeof C!="function")throw new ERR_INVALID_ARG_TYPE(R,"Function",C)};class A extends Error{constructor(R){if(!Array.isArray(R))throw new TypeError(`Expected input to be an Array, got ${typeof R}`);let O="";for(let M=0;M{C=M,R=L}),resolve:C,reject:R}},promisify(C){return new Promise((R,O)=>{C((M,...L)=>M?O(M):R(...L))})},debuglog(){return function(){}},format(C,...R){return C.replace(/%([sdifj])/g,function(...[O,M]){const L=R.shift();return M==="f"?L.toFixed(6):M==="j"?JSON.stringify(L):M==="s"&&typeof L=="object"?`${L.constructor!==Object?L.constructor.name:""} {}`.trim():L.toString()})},inspect(C){switch(typeof C){case"string":if(C.includes("'"))if(C.includes('"')){if(!C.includes("`")&&!C.includes("${"))return`\`${C}\``}else return`"${C}"`;return`'${C}'`;case"number":return isNaN(C)?"NaN":Object.is(C,-0)?String(C):C;case"bigint":return`${String(C)}n`;case"boolean":case"undefined":return String(C);case"object":return"{}"}},types:{isAsyncFunction(C){return C instanceof h},isArrayBufferView(C){return ArrayBuffer.isView(C)}},isBlob:v,deprecate(C,R){return C},addAbortListener:Ns.addAbortListener||function(R,O){if(R===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",R);y(R,"signal"),E(O,"listener");let M;return R.aborted?queueMicrotask(()=>O()):(R.addEventListener("abort",O,{__proto__:null,once:!0,[o]:!0}),M=()=>{R.removeEventListener("abort",O)}),{__proto__:null,[l](){var L;(L=M)===null||L===void 0||L()}}},AbortSignalAny:u.any||function(R){if(R.length===1)return R[0];const O=new d,M=()=>O.abort();return R.forEach(L=>{y(L,"signals"),L.addEventListener("abort",M,{once:!0})}),O.signal.addEventListener("abort",()=>{R.forEach(L=>L.removeEventListener("abort",M))},{once:!0}),O.signal}},n.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(Gan);var b1=Gan.exports,FGe={};const{format:HRr,inspect:She,AggregateError:URr}=b1,GRr=globalThis.AggregateError||URr,VRr=Symbol("kIsNodeError"),zRr=["string","function","number","object","Function","Object","boolean","bigint","symbol"],KRr=/^([A-Z][a-z0-9]*)+$/,qRr="__node_internal_",Ige={};function uP(n,r){if(!n)throw new Ige.ERR_INTERNAL_ASSERTION(r)}function Qzt(n){let r="",o=n.length;const l=n[0]==="-"?1:0;for(;o>=l+4;o-=3)r=`_${n.slice(o-3,o)}${r}`;return`${n.slice(0,o)}${r}`}function XRr(n,r,o){if(typeof r=="function")return uP(r.length<=o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${r.length}).`),r(...o);const l=(r.match(/%[dfijoOs]/g)||[]).length;return uP(l===o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${l}).`),o.length===0?r:HRr(r,...o)}function nb(n,r,o){o||(o=Error);class l extends o{constructor(...d){super(XRr(n,r,d))}toString(){return`${this.name} [${n}]: ${this.message}`}}Object.defineProperties(l.prototype,{name:{value:o.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${n}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),l.prototype.code=n,l.prototype[VRr]=!0,Ige[n]=l}function Zzt(n){const r=qRr+n.name;return Object.defineProperty(n,"name",{value:r}),n}function JRr(n,r){if(n&&r&&n!==r){if(Array.isArray(r.errors))return r.errors.push(n),r;const o=new GRr([r,n],r.message);return o.code=r.code,o}return n||r}let YRr=class extends Error{constructor(r="The operation was aborted",o=void 0){if(o!==void 0&&typeof o!="object")throw new Ige.ERR_INVALID_ARG_TYPE("options","Object",o);super(r,o),this.code="ABORT_ERR",this.name="AbortError"}};nb("ERR_ASSERTION","%s",Error);nb("ERR_INVALID_ARG_TYPE",(n,r,o)=>{uP(typeof n=="string","'name' must be a string"),Array.isArray(r)||(r=[r]);let l="The ";n.endsWith(" argument")?l+=`${n} `:l+=`"${n}" ${n.includes(".")?"property":"argument"} `,l+="must be ";const u=[],d=[],h=[];for(const v of r)uP(typeof v=="string","All expected entries have to be of type string"),zRr.includes(v)?u.push(v.toLowerCase()):KRr.test(v)?d.push(v):(uP(v!=="object",'The value "object" should be written as "Object"'),h.push(v));if(d.length>0){const v=u.indexOf("object");v!==-1&&(u.splice(u,v,1),d.push("Object"))}if(u.length>0){switch(u.length){case 1:l+=`of type ${u[0]}`;break;case 2:l+=`one of type ${u[0]} or ${u[1]}`;break;default:{const v=u.pop();l+=`one of type ${u.join(", ")}, or ${v}`}}(d.length>0||h.length>0)&&(l+=" or ")}if(d.length>0){switch(d.length){case 1:l+=`an instance of ${d[0]}`;break;case 2:l+=`an instance of ${d[0]} or ${d[1]}`;break;default:{const v=d.pop();l+=`an instance of ${d.join(", ")}, or ${v}`}}h.length>0&&(l+=" or ")}switch(h.length){case 0:break;case 1:h[0].toLowerCase()!==h[0]&&(l+="an "),l+=`${h[0]}`;break;case 2:l+=`one of ${h[0]} or ${h[1]}`;break;default:{const v=h.pop();l+=`one of ${h.join(", ")}, or ${v}`}}if(o==null)l+=`. Received ${o}`;else if(typeof o=="function"&&o.name)l+=`. Received function ${o.name}`;else if(typeof o=="object"){var w;if((w=o.constructor)!==null&&w!==void 0&&w.name)l+=`. Received an instance of ${o.constructor.name}`;else{const v=She(o,{depth:-1});l+=`. Received ${v}`}}else{let v=She(o,{colors:!1});v.length>25&&(v=`${v.slice(0,25)}...`),l+=`. Received type ${typeof o} (${v})`}return l},TypeError);nb("ERR_INVALID_ARG_VALUE",(n,r,o="is invalid")=>{let l=She(r);return l.length>128&&(l=l.slice(0,128)+"..."),`The ${n.includes(".")?"property":"argument"} '${n}' ${o}. Received ${l}`},TypeError);nb("ERR_INVALID_RETURN_VALUE",(n,r,o)=>{var l;const u=o!=null&&(l=o.constructor)!==null&&l!==void 0&&l.name?`instance of ${o.constructor.name}`:`type ${typeof o}`;return`Expected ${n} to be returned from the "${r}" function but got ${u}.`},TypeError);nb("ERR_MISSING_ARGS",(...n)=>{uP(n.length>0,"At least one arg needs to be specified");let r;const o=n.length;switch(n=(Array.isArray(n)?n:[n]).map(l=>`"${l}"`).join(" or "),o){case 1:r+=`The ${n[0]} argument`;break;case 2:r+=`The ${n[0]} and ${n[1]} arguments`;break;default:{const l=n.pop();r+=`The ${n.join(", ")}, and ${l} arguments`}break}return`${r} must be specified`},TypeError);nb("ERR_OUT_OF_RANGE",(n,r,o)=>{uP(r,'Missing "range" argument');let l;return Number.isInteger(o)&&Math.abs(o)>2**32?l=Qzt(String(o)):typeof o=="bigint"?(l=String(o),(o>2n**32n||o<-(2n**32n))&&(l=Qzt(l)),l+="n"):l=She(o),`The value of "${n}" is out of range. It must be ${r}. Received ${l}`},RangeError);nb("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);nb("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);nb("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);nb("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);nb("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);nb("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);nb("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);nb("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);nb("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);nb("ERR_STREAM_WRITE_AFTER_END","write after end",Error);nb("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var M0={AbortError:YRr,aggregateTwoErrors:Zzt(JRr),hideStackFrames:Zzt,codes:Ige};const{ArrayIsArray:BGe,ArrayPrototypeIncludes:Van,ArrayPrototypeJoin:zan,ArrayPrototypeMap:QRr,NumberIsInteger:WGe,NumberIsNaN:ZRr,NumberMAX_SAFE_INTEGER:exr,NumberMIN_SAFE_INTEGER:txr,NumberParseInt:nxr,ObjectPrototypeHasOwnProperty:rxr,RegExpPrototypeExec:Kan,String:ixr,StringPrototypeToUpperCase:oxr,StringPrototypeTrim:sxr}=Uf,{hideStackFrames:vv,codes:{ERR_SOCKET_BAD_PORT:lxr,ERR_INVALID_ARG_TYPE:Zb,ERR_INVALID_ARG_VALUE:Tj,ERR_OUT_OF_RANGE:PP,ERR_UNKNOWN_SIGNAL:eKt}}=M0,{normalizeEncoding:axr}=b1,{isAsyncFunction:cxr,isArrayBufferView:uxr}=b1.types,tKt={};function fxr(n){return n===(n|0)}function dxr(n){return n===n>>>0}const hxr=/^[0-7]+$/,pxr="must be a 32-bit unsigned integer or an octal string";function bxr(n,r,o){if(typeof n>"u"&&(n=o),typeof n=="string"){if(Kan(hxr,n)===null)throw new Tj(r,n,pxr);n=nxr(n,8)}return qan(n,r),n}const gxr=vv((n,r,o=txr,l=exr)=>{if(typeof n!="number")throw new Zb(r,"number",n);if(!WGe(n))throw new PP(r,"an integer",n);if(nl)throw new PP(r,`>= ${o} && <= ${l}`,n)}),wxr=vv((n,r,o=-2147483648,l=2147483647)=>{if(typeof n!="number")throw new Zb(r,"number",n);if(!WGe(n))throw new PP(r,"an integer",n);if(nl)throw new PP(r,`>= ${o} && <= ${l}`,n)}),qan=vv((n,r,o=!1)=>{if(typeof n!="number")throw new Zb(r,"number",n);if(!WGe(n))throw new PP(r,"an integer",n);const l=o?1:0,u=4294967295;if(nu)throw new PP(r,`>= ${l} && <= ${u}`,n)});function HGe(n,r){if(typeof n!="string")throw new Zb(r,"string",n)}function mxr(n,r,o=void 0,l){if(typeof n!="number")throw new Zb(r,"number",n);if(o!=null&&nl||(o!=null||l!=null)&&ZRr(n))throw new PP(r,`${o!=null?`>= ${o}`:""}${o!=null&&l!=null?" && ":""}${l!=null?`<= ${l}`:""}`,n)}const yxr=vv((n,r,o)=>{if(!Van(o,n)){const u="must be one of: "+zan(QRr(o,d=>typeof d=="string"?`'${d}'`:ixr(d)),", ");throw new Tj(r,n,u)}});function Xan(n,r){if(typeof n!="boolean")throw new Zb(r,"boolean",n)}function N9e(n,r,o){return n==null||!rxr(n,r)?o:n[r]}const vxr=vv((n,r,o=null)=>{const l=N9e(o,"allowArray",!1),u=N9e(o,"allowFunction",!1);if(!N9e(o,"nullable",!1)&&n===null||!l&&BGe(n)||typeof n!="object"&&(!u||typeof n!="function"))throw new Zb(r,"Object",n)}),_xr=vv((n,r)=>{if(n!=null&&typeof n!="object"&&typeof n!="function")throw new Zb(r,"a dictionary",n)}),Pge=vv((n,r,o=0)=>{if(!BGe(n))throw new Zb(r,"Array",n);if(n.length{if(!uxr(n))throw new Zb(r,["Buffer","TypedArray","DataView"],n)});function Cxr(n,r){const o=axr(r),l=n.length;if(o==="hex"&&l%2!==0)throw new Tj("encoding",r,`is invalid for data of length ${l}`)}function Axr(n,r="Port",o=!0){if(typeof n!="number"&&typeof n!="string"||typeof n=="string"&&sxr(n).length===0||+n!==+n>>>0||n>65535||n===0&&!o)throw new lxr(r,n,o);return n|0}const Jan=vv((n,r)=>{if(n!==void 0&&(n===null||typeof n!="object"||!("aborted"in n)))throw new Zb(r,"AbortSignal",n)}),Txr=vv((n,r)=>{if(typeof n!="function")throw new Zb(r,"Function",n)}),$xr=vv((n,r)=>{if(typeof n!="function"||cxr(n))throw new Zb(r,"Function",n)}),Ixr=vv((n,r)=>{if(n!==void 0)throw new Zb(r,"undefined",n)});function Pxr(n,r,o){if(!Van(o,n))throw new Zb(r,`('${zan(o,"|")}')`,n)}const Oxr=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function nKt(n,r){if(typeof n>"u"||!Kan(Oxr,n))throw new Tj(r,n,'must be an array or string of format "; rel=preload; as=style"')}function Nxr(n){if(typeof n=="string")return nKt(n,"hints"),n;if(BGe(n)){const r=n.length;let o="";if(r===0)return o;for(let l=0;l; rel=preload; as=style"')}var LJ={isInt32:fxr,isUint32:dxr,parseFileMode:bxr,validateArray:Pge,validateStringArray:Sxr,validateBooleanArray:Exr,validateAbortSignalArray:kxr,validateBoolean:Xan,validateBuffer:xxr,validateDictionary:_xr,validateEncoding:Cxr,validateFunction:Txr,validateInt32:wxr,validateInteger:gxr,validateNumber:mxr,validateObject:vxr,validateOneOf:yxr,validatePlainFunction:$xr,validatePort:Axr,validateSignalName:Rxr,validateString:HGe,validateUint32:qan,validateUndefined:Ixr,validateUnion:Pxr,validateAbortSignal:Jan,validateLinkHeaderValue:Nxr},UGe={exports:{}};const{SymbolAsyncIterator:rKt,SymbolIterator:iKt,SymbolFor:wO}=Uf,Yan=wO("nodejs.stream.destroyed"),Qan=wO("nodejs.stream.errored"),nBe=wO("nodejs.stream.readable"),rBe=wO("nodejs.stream.writable"),Zan=wO("nodejs.stream.disturbed"),Mxr=wO("nodejs.webstream.isClosedPromise"),Dxr=wO("nodejs.webstream.controllerErrorFunction");function Oge(n,r=!1){var o;return!!(n&&typeof n.pipe=="function"&&typeof n.on=="function"&&(!r||typeof n.pause=="function"&&typeof n.resume=="function")&&(!n._writableState||((o=n._readableState)===null||o===void 0?void 0:o.readable)!==!1)&&(!n._writableState||n._readableState))}function Nge(n){var r;return!!(n&&typeof n.write=="function"&&typeof n.on=="function"&&(!n._readableState||((r=n._writableState)===null||r===void 0?void 0:r.writable)!==!1))}function Lxr(n){return!!(n&&typeof n.pipe=="function"&&n._readableState&&typeof n.on=="function"&&typeof n.write=="function")}function kk(n){return n&&(n._readableState||n._writableState||typeof n.write=="function"&&typeof n.on=="function"||typeof n.pipe=="function"&&typeof n.on=="function")}function ecn(n){return!!(n&&!kk(n)&&typeof n.pipeThrough=="function"&&typeof n.getReader=="function"&&typeof n.cancel=="function")}function tcn(n){return!!(n&&!kk(n)&&typeof n.getWriter=="function"&&typeof n.abort=="function")}function ncn(n){return!!(n&&!kk(n)&&typeof n.readable=="object"&&typeof n.writable=="object")}function jxr(n){return ecn(n)||tcn(n)||ncn(n)}function Fxr(n,r){return n==null?!1:r===!0?typeof n[rKt]=="function":r===!1?typeof n[iKt]=="function":typeof n[rKt]=="function"||typeof n[iKt]=="function"}function Mge(n){if(!kk(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!!(n.destroyed||n[Yan]||l!=null&&l.destroyed)}function rcn(n){if(!Nge(n))return null;if(n.writableEnded===!0)return!0;const r=n._writableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function Bxr(n,r){if(!Nge(n))return null;if(n.writableFinished===!0)return!0;const o=n._writableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.finished)!="boolean"?null:!!(o.finished||r===!1&&o.ended===!0&&o.length===0)}function Wxr(n){if(!Oge(n))return null;if(n.readableEnded===!0)return!0;const r=n._readableState;return!r||r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function icn(n,r){if(!Oge(n))return null;const o=n._readableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.endEmitted)!="boolean"?null:!!(o.endEmitted||r===!1&&o.ended===!0&&o.length===0)}function ocn(n){return n&&n[nBe]!=null?n[nBe]:typeof(n==null?void 0:n.readable)!="boolean"?null:Mge(n)?!1:Oge(n)&&n.readable&&!icn(n)}function scn(n){return n&&n[rBe]!=null?n[rBe]:typeof(n==null?void 0:n.writable)!="boolean"?null:Mge(n)?!1:Nge(n)&&n.writable&&!rcn(n)}function Hxr(n,r){return kk(n)?Mge(n)?!0:!((r==null?void 0:r.readable)!==!1&&ocn(n)||(r==null?void 0:r.writable)!==!1&&scn(n)):null}function Uxr(n){var r,o;return kk(n)?n.writableErrored?n.writableErrored:(r=(o=n._writableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function Gxr(n){var r,o;return kk(n)?n.readableErrored?n.readableErrored:(r=(o=n._readableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function Vxr(n){if(!kk(n))return null;if(typeof n.closed=="boolean")return n.closed;const r=n._writableState,o=n._readableState;return typeof(r==null?void 0:r.closed)=="boolean"||typeof(o==null?void 0:o.closed)=="boolean"?(r==null?void 0:r.closed)||(o==null?void 0:o.closed):typeof n._closed=="boolean"&&lcn(n)?n._closed:null}function lcn(n){return typeof n._closed=="boolean"&&typeof n._defaultKeepAlive=="boolean"&&typeof n._removedConnection=="boolean"&&typeof n._removedContLen=="boolean"}function acn(n){return typeof n._sent100=="boolean"&&lcn(n)}function zxr(n){var r;return typeof n._consuming=="boolean"&&typeof n._dumped=="boolean"&&((r=n.req)===null||r===void 0?void 0:r.upgradeOrConnect)===void 0}function Kxr(n){if(!kk(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!l&&acn(n)||!!(l&&l.autoDestroy&&l.emitClose&&l.closed===!1)}function qxr(n){var r;return!!(n&&((r=n[Zan])!==null&&r!==void 0?r:n.readableDidRead||n.readableAborted))}function Xxr(n){var r,o,l,u,d,h,w,v,y,E;return!!(n&&((r=(o=(l=(u=(d=(h=n[Qan])!==null&&h!==void 0?h:n.readableErrored)!==null&&d!==void 0?d:n.writableErrored)!==null&&u!==void 0?u:(w=n._readableState)===null||w===void 0?void 0:w.errorEmitted)!==null&&l!==void 0?l:(v=n._writableState)===null||v===void 0?void 0:v.errorEmitted)!==null&&o!==void 0?o:(y=n._readableState)===null||y===void 0?void 0:y.errored)!==null&&r!==void 0?r:!((E=n._writableState)===null||E===void 0)&&E.errored))}var Px={isDestroyed:Mge,kIsDestroyed:Yan,isDisturbed:qxr,kIsDisturbed:Zan,isErrored:Xxr,kIsErrored:Qan,isReadable:ocn,kIsReadable:nBe,kIsClosedPromise:Mxr,kControllerErrorFunction:Dxr,kIsWritable:rBe,isClosed:Vxr,isDuplexNodeStream:Lxr,isFinished:Hxr,isIterable:Fxr,isReadableNodeStream:Oge,isReadableStream:ecn,isReadableEnded:Wxr,isReadableFinished:icn,isReadableErrored:Gxr,isNodeStream:kk,isWebStream:jxr,isWritable:scn,isWritableNodeStream:Nge,isWritableStream:tcn,isWritableEnded:rcn,isWritableFinished:Bxr,isWritableErrored:Uxr,isServerRequest:zxr,isServerResponse:acn,willEmitClose:Kxr,isTransformStream:ncn};const Z4=ui,{AbortError:ccn,codes:Jxr}=M0,{ERR_INVALID_ARG_TYPE:Yxr,ERR_STREAM_PREMATURE_CLOSE:oKt}=Jxr,{kEmptyObject:iBe,once:oBe}=b1,{validateAbortSignal:Qxr,validateFunction:Zxr,validateObject:eCr,validateBoolean:tCr}=LJ,{Promise:nCr,PromisePrototypeThen:rCr,SymbolDispose:ucn}=Uf,{isClosed:iCr,isReadable:sKt,isReadableNodeStream:M9e,isReadableStream:oCr,isReadableFinished:lKt,isReadableErrored:aKt,isWritable:cKt,isWritableNodeStream:uKt,isWritableStream:sCr,isWritableFinished:fKt,isWritableErrored:dKt,isNodeStream:lCr,willEmitClose:aCr,kIsClosedPromise:cCr}=Px;let dL;function uCr(n){return n.setHeader&&typeof n.abort=="function"}const sBe=()=>{};function fcn(n,r,o){var l,u;if(arguments.length===2?(o=r,r=iBe):r==null?r=iBe:eCr(r,"options"),Zxr(o,"callback"),Qxr(r.signal,"options.signal"),o=oBe(o),oCr(n)||sCr(n))return fCr(n,r,o);if(!lCr(n))throw new Yxr("stream",["ReadableStream","WritableStream","Stream"],n);const d=(l=r.readable)!==null&&l!==void 0?l:M9e(n),h=(u=r.writable)!==null&&u!==void 0?u:uKt(n),w=n._writableState,v=n._readableState,y=()=>{n.writable||C()};let E=aCr(n)&&M9e(n)===d&&uKt(n)===h,A=fKt(n,!1);const C=()=>{A=!0,n.destroyed&&(E=!1),!(E&&(!n.readable||d))&&(!d||R)&&o.call(n)};let R=lKt(n,!1);const O=()=>{R=!0,n.destroyed&&(E=!1),!(E&&(!n.writable||h))&&(!h||A)&&o.call(n)},M=te=>{o.call(n,te)};let L=iCr(n);const H=()=>{L=!0;const te=dKt(n)||aKt(n);if(te&&typeof te!="boolean")return o.call(n,te);if(d&&!R&&M9e(n,!0)&&!lKt(n,!1))return o.call(n,new oKt);if(h&&!A&&!fKt(n,!1))return o.call(n,new oKt);o.call(n)},G=()=>{L=!0;const te=dKt(n)||aKt(n);if(te&&typeof te!="boolean")return o.call(n,te);o.call(n)},j=()=>{n.req.on("finish",C)};uCr(n)?(n.on("complete",C),E||n.on("abort",H),n.req?j():n.on("request",j)):h&&!w&&(n.on("end",y),n.on("close",y)),!E&&typeof n.aborted=="boolean"&&n.on("aborted",H),n.on("end",O),n.on("finish",C),r.error!==!1&&n.on("error",M),n.on("close",H),L?Z4.nextTick(H):w!=null&&w.errorEmitted||v!=null&&v.errorEmitted?E||Z4.nextTick(G):(!d&&(!E||sKt(n))&&(A||cKt(n)===!1)||!h&&(!E||cKt(n))&&(R||sKt(n)===!1)||v&&n.req&&n.aborted)&&Z4.nextTick(G);const Q=()=>{o=sBe,n.removeListener("aborted",H),n.removeListener("complete",C),n.removeListener("abort",H),n.removeListener("request",j),n.req&&n.req.removeListener("finish",C),n.removeListener("end",y),n.removeListener("close",y),n.removeListener("finish",C),n.removeListener("end",O),n.removeListener("error",M),n.removeListener("close",H)};if(r.signal&&!L){const te=()=>{const pe=o;Q(),pe.call(n,new ccn(void 0,{cause:r.signal.reason}))};if(r.signal.aborted)Z4.nextTick(te);else{dL=dL||b1.addAbortListener;const pe=dL(r.signal,te),De=o;o=oBe((...Re)=>{pe[ucn](),De.apply(n,Re)})}}return Q}function fCr(n,r,o){let l=!1,u=sBe;if(r.signal)if(u=()=>{l=!0,o.call(n,new ccn(void 0,{cause:r.signal.reason}))},r.signal.aborted)Z4.nextTick(u);else{dL=dL||b1.addAbortListener;const h=dL(r.signal,u),w=o;o=oBe((...v)=>{h[ucn](),w.apply(n,v)})}const d=(...h)=>{l||Z4.nextTick(()=>o.apply(n,h))};return rCr(n[cCr].promise,d,d),sBe}function dCr(n,r){var o;let l=!1;return r===null&&(r=iBe),(o=r)!==null&&o!==void 0&&o.cleanup&&(tCr(r.cleanup,"cleanup"),l=r.cleanup),new nCr((u,d)=>{const h=fcn(n,r,w=>{l&&h(),w?d(w):u()})})}UGe.exports=fcn;UGe.exports.finished=dCr;var VT=UGe.exports;const XE=ui,{aggregateTwoErrors:hCr,codes:{ERR_MULTIPLE_CALLBACK:pCr},AbortError:bCr}=M0,{Symbol:dcn}=Uf,{kIsDestroyed:gCr,isDestroyed:wCr,isFinished:mCr,isServerRequest:yCr}=Px,hcn=dcn("kDestroy"),lBe=dcn("kConstruct");function pcn(n,r,o){n&&(n.stack,r&&!r.errored&&(r.errored=n),o&&!o.errored&&(o.errored=n))}function vCr(n,r){const o=this._readableState,l=this._writableState,u=l||o;return l!=null&&l.destroyed||o!=null&&o.destroyed?(typeof r=="function"&&r(),this):(pcn(n,l,o),l&&(l.destroyed=!0),o&&(o.destroyed=!0),u.constructed?hKt(this,n,r):this.once(hcn,function(d){hKt(this,hCr(d,n),r)}),this)}function hKt(n,r,o){let l=!1;function u(d){if(l)return;l=!0;const h=n._readableState,w=n._writableState;pcn(d,w,h),w&&(w.closed=!0),h&&(h.closed=!0),typeof o=="function"&&o(d),d?XE.nextTick(_Cr,n,d):XE.nextTick(bcn,n)}try{n._destroy(r||null,u)}catch(d){u(d)}}function _Cr(n,r){aBe(n,r),bcn(n)}function bcn(n){const r=n._readableState,o=n._writableState;o&&(o.closeEmitted=!0),r&&(r.closeEmitted=!0),(o!=null&&o.emitClose||r!=null&&r.emitClose)&&n.emit("close")}function aBe(n,r){const o=n._readableState,l=n._writableState;l!=null&&l.errorEmitted||o!=null&&o.errorEmitted||(l&&(l.errorEmitted=!0),o&&(o.errorEmitted=!0),n.emit("error",r))}function SCr(){const n=this._readableState,r=this._writableState;n&&(n.constructed=!0,n.closed=!1,n.closeEmitted=!1,n.destroyed=!1,n.errored=null,n.errorEmitted=!1,n.reading=!1,n.ended=n.readable===!1,n.endEmitted=n.readable===!1),r&&(r.constructed=!0,r.destroyed=!1,r.closed=!1,r.closeEmitted=!1,r.errored=null,r.errorEmitted=!1,r.finalCalled=!1,r.prefinished=!1,r.ended=r.writable===!1,r.ending=r.writable===!1,r.finished=r.writable===!1)}function cBe(n,r,o){const l=n._readableState,u=n._writableState;if(u!=null&&u.destroyed||l!=null&&l.destroyed)return this;l!=null&&l.autoDestroy||u!=null&&u.autoDestroy?n.destroy(r):r&&(r.stack,u&&!u.errored&&(u.errored=r),l&&!l.errored&&(l.errored=r),o?XE.nextTick(aBe,n,r):aBe(n,r))}function ECr(n,r){if(typeof n._construct!="function")return;const o=n._readableState,l=n._writableState;o&&(o.constructed=!1),l&&(l.constructed=!1),n.once(lBe,r),!(n.listenerCount(lBe)>1)&&XE.nextTick(kCr,n)}function kCr(n){let r=!1;function o(l){if(r){cBe(n,l??new pCr);return}r=!0;const u=n._readableState,d=n._writableState,h=d||u;u&&(u.constructed=!0),d&&(d.constructed=!0),h.destroyed?n.emit(hcn,l):l?cBe(n,l,!0):XE.nextTick(RCr,n)}try{n._construct(l=>{XE.nextTick(o,l)})}catch(l){XE.nextTick(o,l)}}function RCr(n){n.emit(lBe)}function pKt(n){return(n==null?void 0:n.setHeader)&&typeof n.abort=="function"}function gcn(n){n.emit("close")}function xCr(n,r){n.emit("error",r),XE.nextTick(gcn,n)}function CCr(n,r){!n||wCr(n)||(!r&&!mCr(n)&&(r=new bCr),yCr(n)?(n.socket=null,n.destroy(r)):pKt(n)?n.abort():pKt(n.req)?n.req.abort():typeof n.destroy=="function"?n.destroy(r):typeof n.close=="function"?n.close():r?XE.nextTick(xCr,n,r):XE.nextTick(gcn,n),n.destroyed||(n[gCr]=!0))}var $j={construct:ECr,destroyer:CCr,destroy:vCr,undestroy:SCr,errorOrDestroy:cBe};const{ArrayIsArray:ACr,ObjectSetPrototypeOf:wcn}=Uf,{EventEmitter:Dge}=Ns;function Lge(n){Dge.call(this,n)}wcn(Lge.prototype,Dge.prototype);wcn(Lge,Dge);Lge.prototype.pipe=function(n,r){const o=this;function l(E){n.writable&&n.write(E)===!1&&o.pause&&o.pause()}o.on("data",l);function u(){o.readable&&o.resume&&o.resume()}n.on("drain",u),!n._isStdio&&(!r||r.end!==!1)&&(o.on("end",h),o.on("close",w));let d=!1;function h(){d||(d=!0,n.end())}function w(){d||(d=!0,typeof n.destroy=="function"&&n.destroy())}function v(E){y(),Dge.listenerCount(this,"error")===0&&this.emit("error",E)}uBe(o,"error",v),uBe(n,"error",v);function y(){o.removeListener("data",l),n.removeListener("drain",u),o.removeListener("end",h),o.removeListener("close",w),o.removeListener("error",v),n.removeListener("error",v),o.removeListener("end",y),o.removeListener("close",y),n.removeListener("close",y)}return o.on("end",y),o.on("close",y),n.on("close",y),n.emit("pipe",o),n};function uBe(n,r,o){if(typeof n.prependListener=="function")return n.prependListener(r,o);!n._events||!n._events[r]?n.on(r,o):ACr(n._events[r])?n._events[r].unshift(o):n._events[r]=[o,n._events[r]]}var GGe={Stream:Lge,prependListener:uBe},mcn={exports:{}};(function(n){const{SymbolDispose:r}=Uf,{AbortError:o,codes:l}=M0,{isNodeStream:u,isWebStream:d,kControllerErrorFunction:h}=Px,w=VT,{ERR_INVALID_ARG_TYPE:v}=l;let y;const E=(A,C)=>{if(typeof A!="object"||!("aborted"in A))throw new v(C,"AbortSignal",A)};n.exports.addAbortSignal=function(C,R){if(E(C,"signal"),!u(R)&&!d(R))throw new v("stream",["ReadableStream","WritableStream","Stream"],R);return n.exports.addAbortSignalNoValidate(C,R)},n.exports.addAbortSignalNoValidate=function(A,C){if(typeof A!="object"||!("aborted"in A))return C;const R=u(C)?()=>{C.destroy(new o(void 0,{cause:A.reason}))}:()=>{C[h](new o(void 0,{cause:A.reason}))};if(A.aborted)R();else{y=y||b1.addAbortListener;const O=y(A,R);w(C,O[r])}return C}})(mcn);var jge=mcn.exports;const{StringPrototypeSlice:bKt,SymbolIterator:TCr,TypedArrayPrototypeSet:zue,Uint8Array:$Cr}=Uf,{Buffer:D9e}=Kr,{inspect:ICr}=b1;var PCr=class{constructor(){this.head=null,this.tail=null,this.length=0}push(r){const o={data:r,next:null};this.length>0?this.tail.next=o:this.head=o,this.tail=o,++this.length}unshift(r){const o={data:r,next:this.head};this.length===0&&(this.tail=o),this.head=o,++this.length}shift(){if(this.length===0)return;const r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}clear(){this.head=this.tail=null,this.length=0}join(r){if(this.length===0)return"";let o=this.head,l=""+o.data;for(;(o=o.next)!==null;)l+=r+o.data;return l}concat(r){if(this.length===0)return D9e.alloc(0);const o=D9e.allocUnsafe(r>>>0);let l=this.head,u=0;for(;l;)zue(o,l.data,u),u+=l.data.length,l=l.next;return o}consume(r,o){const l=this.head.data;if(rd.length)o+=d,r-=d.length;else{r===d.length?(o+=d,++u,l.next?this.head=l.next:this.head=this.tail=null):(o+=bKt(d,0,r),this.head=l,l.data=bKt(d,r));break}++u}while((l=l.next)!==null);return this.length-=u,o}_getBuffer(r){const o=D9e.allocUnsafe(r),l=r;let u=this.head,d=0;do{const h=u.data;if(r>h.length)zue(o,h,l-r),r-=h.length;else{r===h.length?(zue(o,h,l-r),++d,u.next?this.head=u.next:this.head=this.tail=null):(zue(o,new $Cr(h.buffer,h.byteOffset,r),l-r),this.head=u,u.data=h.slice(r));break}++d}while((u=u.next)!==null);return this.length-=d,o}[Symbol.for("nodejs.util.inspect.custom")](r,o){return ICr(this,{...o,depth:0,customInspect:!1})}};const{MathFloor:OCr,NumberIsInteger:NCr}=Uf,{validateInteger:MCr}=LJ,{ERR_INVALID_ARG_VALUE:DCr}=M0.codes;let ycn=16*1024,vcn=16;function LCr(n,r,o){return n.highWaterMark!=null?n.highWaterMark:r?n[o]:null}function _cn(n){return n?vcn:ycn}function jCr(n,r){MCr(r,"value",0),n?vcn=r:ycn=r}function FCr(n,r,o,l){const u=LCr(r,l,o);if(u!=null){if(!NCr(u)||u<0){const d=l?`options.${o}`:"options.highWaterMark";throw new DCr(d,u)}return OCr(u)}return _cn(n.objectMode)}var Fge={getHighWaterMark:FCr,getDefaultHighWaterMark:_cn,setDefaultHighWaterMark:jCr};const gKt=ui,{PromisePrototypeThen:BCr,SymbolAsyncIterator:wKt,SymbolIterator:mKt}=Uf,{Buffer:WCr}=Kr,{ERR_INVALID_ARG_TYPE:HCr,ERR_STREAM_NULL_VALUES:UCr}=M0.codes;function GCr(n,r,o){let l;if(typeof r=="string"||r instanceof WCr)return new n({objectMode:!0,...o,read(){this.push(r),this.push(null)}});let u;if(r&&r[wKt])u=!0,l=r[wKt]();else if(r&&r[mKt])u=!1,l=r[mKt]();else throw new HCr("iterable",["Iterable"],r);const d=new n({objectMode:!0,highWaterMark:1,...o});let h=!1;d._read=function(){h||(h=!0,v())},d._destroy=function(y,E){BCr(w(y),()=>gKt.nextTick(E,y),A=>gKt.nextTick(E,A||y))};async function w(y){const E=y!=null,A=typeof l.throw=="function";if(E&&A){const{value:C,done:R}=await l.throw(y);if(await C,R)return}if(typeof l.return=="function"){const{value:C}=await l.return();await C}}async function v(){for(;;){try{const{value:y,done:E}=u?await l.next():l.next();if(E)d.push(null);else{const A=y&&typeof y.then=="function"?await y:y;if(A===null)throw h=!1,new UCr;if(d.push(A))continue;h=!1}}catch(y){d.destroy(y)}break}}return d}var Scn=GCr,L9e,yKt;function Bge(){if(yKt)return L9e;yKt=1;const n=ui,{ArrayPrototypeIndexOf:r,NumberIsInteger:o,NumberIsNaN:l,NumberParseInt:u,ObjectDefineProperties:d,ObjectKeys:h,ObjectSetPrototypeOf:w,Promise:v,SafeSet:y,SymbolAsyncDispose:E,SymbolAsyncIterator:A,Symbol:C}=Uf;L9e=he,he.ReadableState=_t;const{EventEmitter:R}=Ns,{Stream:O,prependListener:M}=GGe,{Buffer:L}=Kr,{addAbortSignal:H}=jge,G=VT;let j=b1.debuglog("stream",S=>{j=S});const Q=PCr,te=$j,{getHighWaterMark:pe,getDefaultHighWaterMark:De}=Fge,{aggregateTwoErrors:Re,codes:{ERR_INVALID_ARG_TYPE:le,ERR_METHOD_NOT_IMPLEMENTED:xe,ERR_OUT_OF_RANGE:be,ERR_STREAM_PUSH_AFTER_EOF:ae,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:F},AbortError:me}=M0,{validateObject:ye}=LJ,we=C("kPaused"),{StringDecoder:Be}=rm,He=Scn;w(he.prototype,O.prototype),w(he,O);const Ue=()=>{},{errorOrDestroy:Ge}=te,Le=1,ft=2,re=4,Te=8,dt=16,at=32,Qe=64,yt=128,Lt=256,nn=512,Pe=1024,Ne=2048,T=4096,$=8192,B=16384,K=32768,q=65536,ke=1<<17,Ee=1<<18;function Ie(S){return{enumerable:!1,get(){return(this.state&S)!==0},set(x){x?this.state|=S:this.state&=~S}}}d(_t.prototype,{objectMode:Ie(Le),ended:Ie(ft),endEmitted:Ie(re),reading:Ie(Te),constructed:Ie(dt),sync:Ie(at),needReadable:Ie(Qe),emittedReadable:Ie(yt),readableListening:Ie(Lt),resumeScheduled:Ie(nn),errorEmitted:Ie(Pe),emitClose:Ie(Ne),autoDestroy:Ie(T),destroyed:Ie($),closed:Ie(B),closeEmitted:Ie(K),multiAwaitDrain:Ie(q),readingMore:Ie(ke),dataEmitted:Ie(Ee)});function _t(S,x,Y){typeof Y!="boolean"&&(Y=x instanceof hx()),this.state=Ne|T|dt|at,S&&S.objectMode&&(this.state|=Le),Y&&S&&S.readableObjectMode&&(this.state|=Le),this.highWaterMark=S?pe(this,S,"readableHighWaterMark",Y):De(!1),this.buffer=new Q,this.length=0,this.pipes=[],this.flowing=null,this[we]=null,S&&S.emitClose===!1&&(this.state&=~Ne),S&&S.autoDestroy===!1&&(this.state&=~T),this.errored=null,this.defaultEncoding=S&&S.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,S&&S.encoding&&(this.decoder=new Be(S.encoding),this.encoding=S.encoding)}function he(S){if(!(this instanceof he))return new he(S);const x=this instanceof hx();this._readableState=new _t(S,this,x),S&&(typeof S.read=="function"&&(this._read=S.read),typeof S.destroy=="function"&&(this._destroy=S.destroy),typeof S.construct=="function"&&(this._construct=S.construct),S.signal&&!x&&H(S.signal,this)),O.call(this,S),te.construct(this,()=>{this._readableState.needReadable&&pt(this,this._readableState)})}he.prototype.destroy=te.destroy,he.prototype._undestroy=te.undestroy,he.prototype._destroy=function(S,x){x(S)},he.prototype[R.captureRejectionSymbol]=function(S){this.destroy(S)},he.prototype[E]=function(){let S;return this.destroyed||(S=this.readableEnded?null:new me,this.destroy(S)),new v((x,Y)=>G(this,J=>J&&J!==S?Y(J):x(null)))},he.prototype.push=function(S,x){return Xt(this,S,x,!1)},he.prototype.unshift=function(S,x){return Xt(this,S,x,!0)};function Xt(S,x,Y,J){j("readableAddChunk",x);const ue=S._readableState;let Yt;if(ue.state&Le||(typeof x=="string"?(Y=Y||ue.defaultEncoding,ue.encoding!==Y&&(J&&ue.encoding?x=L.from(x,Y).toString(ue.encoding):(x=L.from(x,Y),Y=""))):x instanceof L?Y="":O._isUint8Array(x)?(x=O._uint8ArrayToBuffer(x),Y=""):x!=null&&(Yt=new le("chunk",["string","Buffer","Uint8Array"],x))),Yt)Ge(S,Yt);else if(x===null)ue.state&=~Te,ce(S,ue);else if(ue.state&Le||x&&x.length>0)if(J)if(ue.state&re)Ge(S,new F);else{if(ue.destroyed||ue.errored)return!1;Zt(S,ue,x,!0)}else if(ue.ended)Ge(S,new ae);else{if(ue.destroyed||ue.errored)return!1;ue.state&=~Te,ue.decoder&&!Y?(x=ue.decoder.write(x),ue.objectMode||x.length!==0?Zt(S,ue,x,!1):pt(S,ue)):Zt(S,ue,x,!1)}else J||(ue.state&=~Te,pt(S,ue));return!ue.ended&&(ue.length0?(x.state&q?x.awaitDrainWriters.clear():x.awaitDrainWriters=null,x.dataEmitted=!0,S.emit("data",Y)):(x.length+=x.objectMode?1:Y.length,J?x.buffer.unshift(Y):x.buffer.push(Y),x.state&Qe&&de(S)),pt(S,x)}he.prototype.isPaused=function(){const S=this._readableState;return S[we]===!0||S.flowing===!1},he.prototype.setEncoding=function(S){const x=new Be(S);this._readableState.decoder=x,this._readableState.encoding=this._readableState.decoder.encoding;const Y=this._readableState.buffer;let J="";for(const ue of Y)J+=x.write(ue);return Y.clear(),J!==""&&Y.push(J),this._readableState.length=J.length,this};const $n=1073741824;function Gn(S){if(S>$n)throw new be("size","<= 1GiB",S);return S--,S|=S>>>1,S|=S>>>2,S|=S>>>4,S|=S>>>8,S|=S>>>16,S++,S}function $e(S,x){return S<=0||x.length===0&&x.ended?0:x.state&Le?1:l(S)?x.flowing&&x.length?x.buffer.first().length:x.length:S<=x.length?S:x.ended?x.length:0}he.prototype.read=function(S){j("read",S),S===void 0?S=NaN:o(S)||(S=u(S,10));const x=this._readableState,Y=S;if(S>x.highWaterMark&&(x.highWaterMark=Gn(S)),S!==0&&(x.state&=~yt),S===0&&x.needReadable&&((x.highWaterMark!==0?x.length>=x.highWaterMark:x.length>0)||x.ended))return j("read: emitReadable",x.length,x.ended),x.length===0&&x.ended?co(this):de(this),null;if(S=$e(S,x),S===0&&x.ended)return x.length===0&&co(this),null;let J=(x.state&Qe)!==0;if(j("need readable",J),(x.length===0||x.length-S0?ue=Al(S,x):ue=null,ue===null?(x.needReadable=x.length<=x.highWaterMark,S=0):(x.length-=S,x.multiAwaitDrain?x.awaitDrainWriters.clear():x.awaitDrainWriters=null),x.length===0&&(x.ended||(x.needReadable=!0),Y!==S&&x.ended&&co(this)),ue!==null&&!x.errorEmitted&&!x.closeEmitted&&(x.dataEmitted=!0,this.emit("data",ue)),ue};function ce(S,x){if(j("onEofChunk"),!x.ended){if(x.decoder){const Y=x.decoder.end();Y&&Y.length&&(x.buffer.push(Y),x.length+=x.objectMode?1:Y.length)}x.ended=!0,x.sync?de(S):(x.needReadable=!1,x.emittedReadable=!0,et(S))}}function de(S){const x=S._readableState;j("emitReadable",x.needReadable,x.emittedReadable),x.needReadable=!1,x.emittedReadable||(j("emitReadable",x.flowing),x.emittedReadable=!0,n.nextTick(et,S))}function et(S){const x=S._readableState;j("emitReadable_",x.destroyed,x.length,x.ended),!x.destroyed&&!x.errored&&(x.length||x.ended)&&(S.emit("readable"),x.emittedReadable=!1),x.needReadable=!x.flowing&&!x.ended&&x.length<=x.highWaterMark,xi(S)}function pt(S,x){!x.readingMore&&x.constructed&&(x.readingMore=!0,n.nextTick(Jt,S,x))}function Jt(S,x){for(;!x.reading&&!x.ended&&(x.length1&&J.pipes.includes(S)&&(j("false write response, pause",J.awaitDrainWriters.size),J.awaitDrainWriters.add(S)),Y.pause()),Fr||(Fr=Qt(Y,S),S.on("drain",Fr))}Y.on("data",ml);function ml(jr){j("ondata");const lr=S.write(jr);j("dest.write",lr),lr===!1&&Rs()}function gs(jr){if(j("onerror",jr),wi(),S.removeListener("error",gs),S.listenerCount("error")===0){const lr=S._writableState||S._readableState;lr&&!lr.errorEmitted?Ge(S,jr):S.emit("error",jr)}}M(S,"error",gs);function as(){S.removeListener("finish",ws),wi()}S.once("close",as);function ws(){j("onfinish"),S.removeListener("close",as),wi()}S.once("finish",ws);function wi(){j("unpipe"),Y.unpipe(S)}return S.emit("pipe",Y),S.writableNeedDrain===!0?Rs():J.flowing||(j("pipe resume"),Y.resume()),S};function Qt(S,x){return function(){const J=S._readableState;J.awaitDrainWriters===x?(j("pipeOnDrain",1),J.awaitDrainWriters=null):J.multiAwaitDrain&&(j("pipeOnDrain",J.awaitDrainWriters.size),J.awaitDrainWriters.delete(x)),(!J.awaitDrainWriters||J.awaitDrainWriters.size===0)&&S.listenerCount("data")&&S.resume()}}he.prototype.unpipe=function(S){const x=this._readableState,Y={hasUnpiped:!1};if(x.pipes.length===0)return this;if(!S){const ue=x.pipes;x.pipes=[],this.pause();for(let Yt=0;Yt0,J.flowing!==!1&&this.resume()):S==="readable"&&!J.endEmitted&&!J.readableListening&&(J.readableListening=J.needReadable=!0,J.flowing=!1,J.emittedReadable=!1,j("on readable",J.length,J.reading),J.length?de(this):J.reading||n.nextTick(ao,this)),Y},he.prototype.addListener=he.prototype.on,he.prototype.removeListener=function(S,x){const Y=O.prototype.removeListener.call(this,S,x);return S==="readable"&&n.nextTick(qr,this),Y},he.prototype.off=he.prototype.removeListener,he.prototype.removeAllListeners=function(S){const x=O.prototype.removeAllListeners.apply(this,arguments);return(S==="readable"||S===void 0)&&n.nextTick(qr,this),x};function qr(S){const x=S._readableState;x.readableListening=S.listenerCount("readable")>0,x.resumeScheduled&&x[we]===!1?x.flowing=!0:S.listenerCount("data")>0?S.resume():x.readableListening||(x.flowing=null)}function ao(S){j("readable nexttick read 0"),S.read(0)}he.prototype.resume=function(){const S=this._readableState;return S.flowing||(j("resume"),S.flowing=!S.readableListening,ki(this,S)),S[we]=!1,this};function ki(S,x){x.resumeScheduled||(x.resumeScheduled=!0,n.nextTick(Ri,S,x))}function Ri(S,x){j("resume",x.reading),x.reading||S.read(0),x.resumeScheduled=!1,S.emit("resume"),xi(S),x.flowing&&!x.reading&&S.read(0)}he.prototype.pause=function(){return j("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(j("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[we]=!0,this};function xi(S){const x=S._readableState;for(j("flow",x.flowing);x.flowing&&S.read()!==null;);}he.prototype.wrap=function(S){let x=!1;S.on("data",J=>{!this.push(J)&&S.pause&&(x=!0,S.pause())}),S.on("end",()=>{this.push(null)}),S.on("error",J=>{Ge(this,J)}),S.on("close",()=>{this.destroy()}),S.on("destroy",()=>{this.destroy()}),this._read=()=>{x&&S.resume&&(x=!1,S.resume())};const Y=h(S);for(let J=1;J{ue=An?Re(ue,An):null,Y(),Y=Ue});try{for(;;){const An=S.destroyed?null:S.read();if(An!==null)yield An;else{if(ue)throw ue;if(ue===null)return;await new v(J)}}}catch(An){throw ue=Re(ue,An),ue}finally{(ue||(x==null?void 0:x.destroyOnReturn)!==!1)&&(ue===void 0||S._readableState.autoDestroy)?te.destroyer(S,null):(S.off("readable",J),Yt())}}d(he.prototype,{readable:{__proto__:null,get(){const S=this._readableState;return!!S&&S.readable!==!1&&!S.destroyed&&!S.errorEmitted&&!S.endEmitted},set(S){this._readableState&&(this._readableState.readable=!!S)}},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(S){this._readableState&&(this._readableState.flowing=S)}},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(S){this._readableState&&(this._readableState.destroyed=S)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),d(_t.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[we]!==!1},set(S){this[we]=!!S}}}),he._fromList=Al;function Al(S,x){if(x.length===0)return null;let Y;return x.objectMode?Y=x.buffer.shift():!S||S>=x.length?(x.decoder?Y=x.buffer.join(""):x.buffer.length===1?Y=x.buffer.first():Y=x.buffer.concat(x.length),x.buffer.clear()):Y=x.buffer.consume(S,x.decoder),Y}function co(S){const x=S._readableState;j("endReadable",x.endEmitted),x.endEmitted||(x.ended=!0,n.nextTick(Zc,x,S))}function Zc(S,x){if(j("endReadableNT",S.endEmitted,S.length),!S.errored&&!S.closeEmitted&&!S.endEmitted&&S.length===0){if(S.endEmitted=!0,x.emit("end"),x.writable&&x.allowHalfOpen===!1)n.nextTick(bu,x);else if(S.autoDestroy){const Y=x._writableState;(!Y||Y.autoDestroy&&(Y.finished||Y.writable===!1))&&x.destroy()}}}function bu(S){S.writable&&!S.writableEnded&&!S.destroyed&&S.end()}he.from=function(S,x){return He(he,S,x)};let So;function ql(){return So===void 0&&(So={}),So}return he.fromWeb=function(S,x){return ql().newStreamReadableFromReadableStream(S,x)},he.toWeb=function(S,x){return ql().newReadableStreamFromStreamReadable(S,x)},he.wrap=function(S,x){var Y,J;return new he({objectMode:(Y=(J=S.readableObjectMode)!==null&&J!==void 0?J:S.objectMode)!==null&&Y!==void 0?Y:!0,...x,destroy(ue,Yt){te.destroyer(S,ue),Yt(ue)}}).wrap(S)},L9e}var j9e,vKt;function VGe(){if(vKt)return j9e;vKt=1;const n=ui,{ArrayPrototypeSlice:r,Error:o,FunctionPrototypeSymbolHasInstance:l,ObjectDefineProperty:u,ObjectDefineProperties:d,ObjectSetPrototypeOf:h,StringPrototypeToLowerCase:w,Symbol:v,SymbolHasInstance:y}=Uf;j9e=ye,ye.WritableState=F;const{EventEmitter:E}=Ns,A=GGe.Stream,{Buffer:C}=Kr,R=$j,{addAbortSignal:O}=jge,{getHighWaterMark:M,getDefaultHighWaterMark:L}=Fge,{ERR_INVALID_ARG_TYPE:H,ERR_METHOD_NOT_IMPLEMENTED:G,ERR_MULTIPLE_CALLBACK:j,ERR_STREAM_CANNOT_PIPE:Q,ERR_STREAM_DESTROYED:te,ERR_STREAM_ALREADY_FINISHED:pe,ERR_STREAM_NULL_VALUES:De,ERR_STREAM_WRITE_AFTER_END:Re,ERR_UNKNOWN_ENCODING:le}=M0.codes,{errorOrDestroy:xe}=R;h(ye.prototype,A.prototype),h(ye,A);function be(){}const ae=v("kOnFinished");function F(T,$,B){typeof B!="boolean"&&(B=$ instanceof hx()),this.objectMode=!!(T&&T.objectMode),B&&(this.objectMode=this.objectMode||!!(T&&T.writableObjectMode)),this.highWaterMark=T?M(this,T,"writableHighWaterMark",B):L(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const K=!!(T&&T.decodeStrings===!1);this.decodeStrings=!K,this.defaultEncoding=T&&T.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=Ge.bind(void 0,$),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,me(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[ae]=[]}function me(T){T.buffered=[],T.bufferedIndex=0,T.allBuffers=!0,T.allNoop=!0}F.prototype.getBuffer=function(){return r(this.buffered,this.bufferedIndex)},u(F.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function ye(T){const $=this instanceof hx();if(!$&&!l(ye,this))return new ye(T);this._writableState=new F(T,this,$),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&&O(T.signal,this)),A.call(this,T),R.construct(this,()=>{const B=this._writableState;B.writing||Te(this,B),yt(this,B)})}u(ye,y,{__proto__:null,value:function(T){return l(this,T)?!0:this!==ye?!1:T&&T._writableState instanceof F}}),ye.prototype.pipe=function(){xe(this,new Q)};function we(T,$,B,K){const q=T._writableState;if(typeof B=="function")K=B,B=q.defaultEncoding;else{if(!B)B=q.defaultEncoding;else if(B!=="buffer"&&!C.isEncoding(B))throw new le(B);typeof K!="function"&&(K=be)}if($===null)throw new De;if(!q.objectMode)if(typeof $=="string")q.decodeStrings!==!1&&($=C.from($,B),B="buffer");else if($ instanceof C)B="buffer";else if(A._isUint8Array($))$=A._uint8ArrayToBuffer($),B="buffer";else throw new H("chunk",["string","Buffer","Uint8Array"],$);let ke;return q.ending?ke=new Re:q.destroyed&&(ke=new te("write")),ke?(n.nextTick(K,ke),xe(T,ke,!0),ke):(q.pendingcb++,Be(T,q,$,B,K))}ye.prototype.write=function(T,$,B){return we(this,T,$,B)===!0},ye.prototype.cork=function(){this._writableState.corked++},ye.prototype.uncork=function(){const T=this._writableState;T.corked&&(T.corked--,T.writing||Te(this,T))},ye.prototype.setDefaultEncoding=function($){if(typeof $=="string"&&($=w($)),!C.isEncoding($))throw new le($);return this._writableState.defaultEncoding=$,this};function Be(T,$,B,K,q){const ke=$.objectMode?1:B.length;$.length+=ke;const Ee=$.length<$.highWaterMark;return Ee||($.needDrain=!0),$.writing||$.corked||$.errored||!$.constructed?($.buffered.push({chunk:B,encoding:K,callback:q}),$.allBuffers&&K!=="buffer"&&($.allBuffers=!1),$.allNoop&&q!==be&&($.allNoop=!1)):($.writelen=ke,$.writecb=q,$.writing=!0,$.sync=!0,T._write(B,K,$.onwrite),$.sync=!1),Ee&&!$.errored&&!$.destroyed}function He(T,$,B,K,q,ke,Ee){$.writelen=K,$.writecb=Ee,$.writing=!0,$.sync=!0,$.destroyed?$.onwrite(new te("write")):B?T._writev(q,$.onwrite):T._write(q,ke,$.onwrite),$.sync=!1}function Ue(T,$,B,K){--$.pendingcb,K(B),re($),xe(T,B)}function Ge(T,$){const B=T._writableState,K=B.sync,q=B.writecb;if(typeof q!="function"){xe(T,new j);return}B.writing=!1,B.writecb=null,B.length-=B.writelen,B.writelen=0,$?($.stack,B.errored||(B.errored=$),T._readableState&&!T._readableState.errored&&(T._readableState.errored=$),K?n.nextTick(Ue,T,B,$,q):Ue(T,B,$,q)):(B.buffered.length>B.bufferedIndex&&Te(T,B),K?B.afterWriteTickInfo!==null&&B.afterWriteTickInfo.cb===q?B.afterWriteTickInfo.count++:(B.afterWriteTickInfo={count:1,cb:q,stream:T,state:B},n.nextTick(Le,B.afterWriteTickInfo)):ft(T,B,1,q))}function Le({stream:T,state:$,count:B,cb:K}){return $.afterWriteTickInfo=null,ft(T,$,B,K)}function ft(T,$,B,K){for(!$.ending&&!T.destroyed&&$.length===0&&$.needDrain&&($.needDrain=!1,T.emit("drain"));B-- >0;)$.pendingcb--,K();$.destroyed&&re($),yt(T,$)}function re(T){if(T.writing)return;for(let q=T.bufferedIndex;q1&&T._writev){$.pendingcb-=ke-1;const Ie=$.allNoop?be:he=>{for(let Xt=Ee;Xt256?(B.splice(0,Ee),$.bufferedIndex=0):$.bufferedIndex=Ee}$.bufferProcessing=!1}ye.prototype._write=function(T,$,B){if(this._writev)this._writev([{chunk:T,encoding:$}],B);else throw new G("_write()")},ye.prototype._writev=null,ye.prototype.end=function(T,$,B){const K=this._writableState;typeof T=="function"?(B=T,T=null,$=null):typeof $=="function"&&(B=$,$=null);let q;if(T!=null){const ke=we(this,T,$);ke instanceof o&&(q=ke)}return K.corked&&(K.corked=1,this.uncork()),q||(!K.errored&&!K.ending?(K.ending=!0,yt(this,K,!0),K.ended=!0):K.finished?q=new pe("end"):K.destroyed&&(q=new te("end"))),typeof B=="function"&&(q||K.finished?n.nextTick(B,q):K[ae].push(B)),this};function dt(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 at(T,$){let B=!1;function K(q){if(B){xe(T,q??j());return}if(B=!0,$.pendingcb--,q){const ke=$[ae].splice(0);for(let Ee=0;Ee{dt(q)?Lt(K,q):q.pendingcb--},T,$)):dt($)&&($.pendingcb++,Lt(T,$))))}function Lt(T,$){$.pendingcb--,$.finished=!0;const B=$[ae].splice(0);for(let K=0;K{if(re!=null)throw new O("nully","body",re)},re=>{M(Le,re)});return Le=new le({objectMode:!0,readable:!1,write:Be,final(re){He(async()=>{try{await ft,n.nextTick(re,null)}catch(Te){n.nextTick(re,Te)}})},destroy:Ue})}throw new O("Iterable, AsyncIterable or AsyncFunction",me,we)}if(pe(F))return ae(F.arrayBuffer());if(u(F))return Q(le,F,{objectMode:!0,writable:!1});if(y(F==null?void 0:F.readable)&&E(F==null?void 0:F.writable))return le.fromWeb(F);if(typeof(F==null?void 0:F.writable)=="object"||typeof(F==null?void 0:F.readable)=="object"){const we=F!=null&&F.readable?h(F==null?void 0:F.readable)?F==null?void 0:F.readable:ae(F.readable):void 0,Be=F!=null&&F.writable?w(F==null?void 0:F.writable)?F==null?void 0:F.writable:ae(F.writable):void 0;return be({readable:we,writable:Be})}const ye=F==null?void 0:F.then;if(typeof ye=="function"){let we;return Re(ye,F,Be=>{Be!=null&&we.push(Be),we.push(null)},Be=>{M(we,Be)}),we=new le({objectMode:!0,writable:!1,read(){}})}throw new R(me,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],F)};function xe(ae){let{promise:F,resolve:me}=j();const ye=new De,we=ye.signal;return{value:ae(async function*(){for(;;){const He=F;F=null;const{chunk:Ue,done:Ge,cb:Le}=await He;if(n.nextTick(Le),Ge)return;if(we.aborted)throw new C(void 0,{cause:we.reason});({promise:F,resolve:me}=j()),yield Ue}}(),{signal:we}),write(He,Ue,Ge){const Le=me;me=null,Le({chunk:He,done:!1,cb:Ge})},final(He){const Ue=me;me=null,Ue({done:!0,cb:He})},destroy(He,Ue){ye.abort(),Ue(He)}}}function be(ae){const F=ae.readable&&typeof ae.readable.read!="function"?H.wrap(ae.readable):ae.readable,me=ae.writable;let ye=!!o(F),we=!!l(me),Be,He,Ue,Ge,Le;function ft(re){const Te=Ge;Ge=null,Te?Te(re):re&&Le.destroy(re)}return Le=new le({readableObjectMode:!!(F!=null&&F.readableObjectMode),writableObjectMode:!!(me!=null&&me.writableObjectMode),readable:ye,writable:we}),we&&(A(me,re=>{we=!1,re&&M(F,re),ft(re)}),Le._write=function(re,Te,dt){me.write(re,Te)?dt():Be=dt},Le._final=function(re){me.end(),He=re},me.on("drain",function(){if(Be){const re=Be;Be=null,re()}}),me.on("finish",function(){if(He){const re=He;He=null,re()}})),ye&&(A(F,re=>{ye=!1,re&&M(F,re),ft(re)}),F.on("readable",function(){if(Ue){const re=Ue;Ue=null,re()}}),F.on("end",function(){Le.push(null)}),Le._read=function(){for(;;){const re=F.read();if(re===null){Ue=Le._read;return}if(!Le.push(re))return}}),Le._destroy=function(re,Te){!re&&Ge!==null&&(re=new C),Ue=null,Be=null,He=null,Ge===null?Te(re):(Ge=Te,M(me,re),M(F,re))},Le}return F9e}var B9e,SKt;function hx(){if(SKt)return B9e;SKt=1;const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:o,ObjectSetPrototypeOf:l}=Uf;B9e=h;const u=Bge(),d=VGe();l(h.prototype,u.prototype),l(h,u);{const E=o(d.prototype);for(let A=0;A{if(r){n?n(r):this.destroy(r);return}o!=null&&this.push(o),this.push(null),n&&n()}):(this.push(null),n&&n())}function XCr(){this._final!==fBe&&fBe.call(this)}px.prototype._final=fBe;px.prototype._transform=function(n,r,o){throw new KCr("_transform()")};px.prototype._write=function(n,r,o){const l=this._readableState,u=this._writableState,d=l.length;this._transform(n,r,(h,w)=>{if(h){o(h);return}w!=null&&this.push(w),u.ended||d===l.length||l.length{l=!0});const u=Ehe(n,{readable:r,writable:o},d=>{l=!d});return{destroy:d=>{l||(l=!0,tAr.destroyer(n,d||new iAr("pipe")))},cleanup:u}}function dAr(n){return lAr(n[n.length-1],"streams[stream.length - 1]"),n.pop()}function K9e(n){if(P8(n))return n;if(ade(n))return hAr(n);throw new dBe("val",["Readable","Iterable","AsyncIterable"],n)}async function*hAr(n){V9e||(V9e=Bge()),yield*V9e.prototype[QCr].call(n)}async function Kue(n,r,o,{end:l}){let u,d=null;const h=y=>{if(y&&(u=y),d){const E=d;d=null,E()}},w=()=>new YCr((y,E)=>{u?E(u):d=()=>{u?E(u):y()}});r.on("drain",h);const v=Ehe(r,{readable:!1},h);try{r.writableNeedDrain&&await w();for await(const y of n)r.write(y)||await w();l&&(r.end(),await w()),o()}catch(y){o(u!==y?nAr(u,y):y)}finally{v(),r.off("drain",h)}}async function q9e(n,r,o,{end:l}){$D(r)&&(r=r.writable);const u=r.getWriter();try{for await(const d of n)await u.ready,u.write(d).catch(()=>{});await u.ready,l&&await u.close(),o()}catch(d){try{await u.abort(d),o(d)}catch(h){o(h)}}}function pAr(...n){return Ccn(n,eAr(dAr(n)))}function Ccn(n,r,o){if(n.length===1&&JCr(n[0])&&(n=n[0]),n.length<2)throw new rAr("streams");const l=new fAr,u=l.signal,d=o==null?void 0:o.signal,h=[];aAr(d,"options.signal");function w(){O(new sAr)}z9e=z9e||b1.addAbortListener;let v;d&&(v=z9e(d,w));let y,E;const A=[];let C=0;function R(G){O(G,--C===0)}function O(G,j){var Q;if(G&&(!y||y.code==="ERR_STREAM_PREMATURE_CLOSE")&&(y=G),!(!y&&!j)){for(;A.length;)A.shift()(y);(Q=v)===null||Q===void 0||Q[ZCr](),l.abort(),j&&(y||h.forEach(te=>te()),LK.nextTick(r,y,E))}}let M;for(let G=0;G0,pe=Q||(o==null?void 0:o.end)!==!1,De=G===n.length-1;if(kKt(j)){let Re=function(le){le&&le.name!=="AbortError"&&le.code!=="ERR_STREAM_PREMATURE_CLOSE"&&R(le)};if(pe){const{destroy:le,cleanup:xe}=RKt(j,Q,te);A.push(le),H9e(j)&&De&&h.push(xe)}j.on("error",Re),H9e(j)&&De&&h.push(()=>{j.removeListener("error",Re)})}if(G===0)if(typeof j=="function"){if(M=j({signal:u}),!P8(M))throw new W9e("Iterable, AsyncIterable or Stream","source",M)}else P8(j)||ade(j)||$D(j)?M=j:M=EKt.from(j);else if(typeof j=="function"){if($D(M)){var L;M=K9e((L=M)===null||L===void 0?void 0:L.readable)}else M=K9e(M);if(M=j(M,{signal:u}),Q){if(!P8(M,!0))throw new W9e("AsyncIterable",`transform[${G-1}]`,M)}else{var H;G9e||(G9e=xcn);const Re=new G9e({objectMode:!0}),le=(H=M)===null||H===void 0?void 0:H.then;if(typeof le=="function")C++,le.call(M,ae=>{E=ae,ae!=null&&Re.write(ae),pe&&Re.end(),LK.nextTick(R)},ae=>{Re.destroy(ae),LK.nextTick(R,ae)});else if(P8(M,!0))C++,Kue(M,Re,R,{end:pe});else if(U9e(M)||$D(M)){const ae=M.readable||M;C++,Kue(ae,Re,R,{end:pe})}else throw new W9e("AsyncIterable or Promise","destination",M);M=Re;const{destroy:xe,cleanup:be}=RKt(M,!1,!0);A.push(xe),De&&h.push(be)}}else if(kKt(j)){if(ade(M)){C+=2;const Re=bAr(M,j,R,{end:pe});H9e(j)&&De&&h.push(Re)}else if($D(M)||U9e(M)){const Re=M.readable||M;C++,Kue(Re,j,R,{end:pe})}else if(P8(M))C++,Kue(M,j,R,{end:pe});else throw new dBe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else if(cAr(j)){if(ade(M))C++,q9e(K9e(M),j,R,{end:pe});else if(U9e(M)||P8(M))C++,q9e(M,j,R,{end:pe});else if($D(M))C++,q9e(M.readable,j,R,{end:pe});else throw new dBe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else M=EKt.from(j)}return(u!=null&&u.aborted||d!=null&&d.aborted)&&LK.nextTick(w),M}function bAr(n,r,o,{end:l}){let u=!1;if(r.on("close",()=>{u||o(new oAr)}),n.pipe(r,{end:!1}),l){let d=function(){u=!0,r.end()};uAr(n)?LK.nextTick(d):n.once("end",d)}else o();return Ehe(n,{readable:!0,writable:!1},d=>{const h=n._readableState;d&&d.code==="ERR_STREAM_PREMATURE_CLOSE"&&h&&h.ended&&!h.errored&&!h.errorEmitted?n.once("end",o).once("error",o):o(d)}),Ehe(r,{readable:!1,writable:!0},o)}var qGe={pipelineImpl:Ccn,pipeline:pAr};const{pipeline:gAr}=qGe,que=hx(),{destroyer:wAr}=$j,{isNodeStream:Xue,isReadable:xKt,isWritable:CKt,isWebStream:X9e,isTransformStream:d8,isWritableStream:AKt,isReadableStream:TKt}=Px,{AbortError:mAr,codes:{ERR_INVALID_ARG_VALUE:$Kt,ERR_MISSING_ARGS:yAr}}=M0,vAr=VT;var Acn=function(...r){if(r.length===0)throw new yAr("streams");if(r.length===1)return que.from(r[0]);const o=[...r];if(typeof r[0]=="function"&&(r[0]=que.from(r[0])),typeof r[r.length-1]=="function"){const R=r.length-1;r[R]=que.from(r[R])}for(let R=0;R0&&!(CKt(r[R])||AKt(r[R])||d8(r[R])))throw new $Kt(`streams[${R}]`,o[R],"must be writable")}let l,u,d,h,w;function v(R){const O=h;h=null,O?O(R):R?w.destroy(R):!C&&!A&&w.destroy()}const y=r[0],E=gAr(r,v),A=!!(CKt(y)||AKt(y)||d8(y)),C=!!(xKt(E)||TKt(E)||d8(E));if(w=new que({writableObjectMode:!!(y!=null&&y.writableObjectMode),readableObjectMode:!!(E!=null&&E.readableObjectMode),writable:A,readable:C}),A){if(Xue(y))w._write=function(O,M,L){y.write(O,M)?L():l=L},w._final=function(O){y.end(),u=O},y.on("drain",function(){if(l){const O=l;l=null,O()}});else if(X9e(y)){const M=(d8(y)?y.writable:y).getWriter();w._write=async function(L,H,G){try{await M.ready,M.write(L).catch(()=>{}),G()}catch(j){G(j)}},w._final=async function(L){try{await M.ready,M.close().catch(()=>{}),u=L}catch(H){L(H)}}}const R=d8(E)?E.readable:E;vAr(R,()=>{if(u){const O=u;u=null,O()}})}if(C){if(Xue(E))E.on("readable",function(){if(d){const R=d;d=null,R()}}),E.on("end",function(){w.push(null)}),w._read=function(){for(;;){const R=E.read();if(R===null){d=w._read;return}if(!w.push(R))return}};else if(X9e(E)){const O=(d8(E)?E.readable:E).getReader();w._read=async function(){for(;;)try{const{value:M,done:L}=await O.read();if(!w.push(M))return;if(L){w.push(null);return}}catch{return}}}}return w._destroy=function(R,O){!R&&h!==null&&(R=new mAr),d=null,l=null,u=null,h===null?O(R):(h=O,Xue(E)&&wAr(E,R))},w};const _Ar=globalThis.AbortController||$o().AbortController,{codes:{ERR_INVALID_ARG_VALUE:SAr,ERR_INVALID_ARG_TYPE:jJ,ERR_MISSING_ARGS:EAr,ERR_OUT_OF_RANGE:kAr},AbortError:dk}=M0,{validateAbortSignal:mO,validateInteger:IKt,validateObject:yO}=LJ,RAr=Uf.Symbol("kWeak"),xAr=Uf.Symbol("kResistStopPropagation"),{finished:CAr}=VT,AAr=Acn,{addAbortSignalNoValidate:TAr}=jge,{isWritable:$Ar,isNodeStream:IAr}=Px,{deprecate:PAr}=b1,{ArrayPrototypePush:OAr,Boolean:NAr,MathFloor:PKt,Number:MAr,NumberIsNaN:DAr,Promise:OKt,PromiseReject:NKt,PromiseResolve:LAr,PromisePrototypeThen:MKt,Symbol:Tcn}=Uf,khe=Tcn("kEmpty"),DKt=Tcn("kEof");function jAr(n,r){if(r!=null&&yO(r,"options"),(r==null?void 0:r.signal)!=null&&mO(r.signal,"options.signal"),IAr(n)&&!$Ar(n))throw new SAr("stream",n,"must be writable");const o=AAr(this,n);return r!=null&&r.signal&&TAr(r.signal,o),o}function Wge(n,r){if(typeof n!="function")throw new jJ("fn",["Function","AsyncFunction"],n);r!=null&&yO(r,"options"),(r==null?void 0:r.signal)!=null&&mO(r.signal,"options.signal");let o=1;(r==null?void 0:r.concurrency)!=null&&(o=PKt(r.concurrency));let l=o-1;return(r==null?void 0:r.highWaterMark)!=null&&(l=PKt(r.highWaterMark)),IKt(o,"options.concurrency",1),IKt(l,"options.highWaterMark",0),l+=o,(async function*(){const d=b1.AbortSignalAny([r==null?void 0:r.signal].filter(NAr)),h=this,w=[],v={signal:d};let y,E,A=!1,C=0;function R(){A=!0,O()}function O(){C-=1,M()}function M(){E&&!A&&C=l||C>=o)&&await new OKt(G=>{E=G})}w.push(DKt)}catch(H){const G=NKt(H);MKt(G,O,R),w.push(G)}finally{A=!0,y&&(y(),y=null)}}L();try{for(;;){for(;w.length>0;){const H=await w[0];if(H===DKt)return;if(d.aborted)throw new dk;H!==khe&&(yield H),w.shift(),M()}await new OKt(H=>{y=H})}}finally{A=!0,E&&(E(),E=null)}}).call(this)}function FAr(n=void 0){return n!=null&&yO(n,"options"),(n==null?void 0:n.signal)!=null&&mO(n.signal,"options.signal"),(async function*(){let o=0;for await(const u of this){var l;if(n!=null&&(l=n.signal)!==null&&l!==void 0&&l.aborted)throw new dk({cause:n.signal.reason});yield[o++,u]}}).call(this)}async function $cn(n,r=void 0){for await(const o of XGe.call(this,n,r))return!0;return!1}async function BAr(n,r=void 0){if(typeof n!="function")throw new jJ("fn",["Function","AsyncFunction"],n);return!await $cn.call(this,async(...o)=>!await n(...o),r)}async function WAr(n,r){for await(const o of XGe.call(this,n,r))return o}async function HAr(n,r){if(typeof n!="function")throw new jJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u),khe}for await(const l of Wge.call(this,o,r));}function XGe(n,r){if(typeof n!="function")throw new jJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u)?l:khe}return Wge.call(this,o,r)}let UAr=class extends EAr{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function GAr(n,r,o){var l;if(typeof n!="function")throw new jJ("reducer",["Function","AsyncFunction"],n);o!=null&&yO(o,"options"),(o==null?void 0:o.signal)!=null&&mO(o.signal,"options.signal");let u=arguments.length>1;if(o!=null&&(l=o.signal)!==null&&l!==void 0&&l.aborted){const y=new dk(void 0,{cause:o.signal.reason});throw this.once("error",()=>{}),await CAr(this.destroy(y)),y}const d=new _Ar,h=d.signal;if(o!=null&&o.signal){const y={once:!0,[RAr]:this,[xAr]:!0};o.signal.addEventListener("abort",()=>d.abort(),y)}let w=!1;try{for await(const y of this){var v;if(w=!0,o!=null&&(v=o.signal)!==null&&v!==void 0&&v.aborted)throw new dk;u?r=await n(r,y,{signal:h}):(r=y,u=!0)}if(!w&&!u)throw new UAr}finally{d.abort()}return r}async function VAr(n){n!=null&&yO(n,"options"),(n==null?void 0:n.signal)!=null&&mO(n.signal,"options.signal");const r=[];for await(const l of this){var o;if(n!=null&&(o=n.signal)!==null&&o!==void 0&&o.aborted)throw new dk(void 0,{cause:n.signal.reason});OAr(r,l)}return r}function zAr(n,r){const o=Wge.call(this,n,r);return(async function*(){for await(const u of o)yield*u}).call(this)}function Icn(n){if(n=MAr(n),DAr(n))return 0;if(n<0)throw new kAr("number",">= 0",n);return n}function KAr(n,r=void 0){return r!=null&&yO(r,"options"),(r==null?void 0:r.signal)!=null&&mO(r.signal,"options.signal"),n=Icn(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new dk;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new dk;n--<=0&&(yield d)}}).call(this)}function qAr(n,r=void 0){return r!=null&&yO(r,"options"),(r==null?void 0:r.signal)!=null&&mO(r.signal,"options.signal"),n=Icn(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new dk;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new dk;if(n-- >0&&(yield d),n<=0)return}}).call(this)}FGe.streamReturningOperators={asIndexedPairs:PAr(FAr,"readable.asIndexedPairs will be removed in a future version."),drop:KAr,filter:XGe,flatMap:zAr,map:Wge,take:qAr,compose:jAr};FGe.promiseReturningOperators={every:BAr,forEach:HAr,reduce:GAr,toArray:VAr,some:$cn,find:WAr};var J9e,LKt;function Pcn(){if(LKt)return J9e;LKt=1;const{ArrayPrototypePop:n,Promise:r}=Uf,{isIterable:o,isNodeStream:l,isWebStream:u}=Px,{pipelineImpl:d}=qGe,{finished:h}=VT;Ocn();function w(...v){return new r((y,E)=>{let A,C;const R=v[v.length-1];if(R&&typeof R=="object"&&!l(R)&&!o(R)&&!u(R)){const O=n(v);A=O.signal,C=O.end}d(v,(O,M)=>{O?E(O):y(M)},{signal:A,end:C})})}return J9e={finished:h,pipeline:w},J9e}var jKt;function Ocn(){if(jKt)return O9e.exports;jKt=1;const{Buffer:n}=Kr,{ObjectDefineProperty:r,ObjectKeys:o,ReflectApply:l}=Uf,{promisify:{custom:u}}=b1,{streamReturningOperators:d,promiseReturningOperators:h}=FGe,{codes:{ERR_ILLEGAL_CONSTRUCTOR:w}}=M0,v=Acn,{setDefaultHighWaterMark:y,getDefaultHighWaterMark:E}=Fge,{pipeline:A}=qGe,{destroyer:C}=$j,R=VT,O=Pcn(),M=Px,L=O9e.exports=GGe.Stream;L.isDestroyed=M.isDestroyed,L.isDisturbed=M.isDisturbed,L.isErrored=M.isErrored,L.isReadable=M.isReadable,L.isWritable=M.isWritable,L.Readable=Bge();for(const G of o(d)){let Q=function(...te){if(new.target)throw w();return L.Readable.from(l(j,this,te))};const j=d[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}for(const G of o(h)){let Q=function(...te){if(new.target)throw w();return l(j,this,te)};const j=h[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}L.Writable=VGe(),L.Duplex=hx(),L.Transform=kcn,L.PassThrough=xcn,L.pipeline=A;const{addAbortSignal:H}=jge;return L.addAbortSignal=H,L.finished=R,L.destroy=C,L.compose=v,L.setDefaultHighWaterMark=y,L.getDefaultHighWaterMark=E,r(L,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return O}}),r(A,u,{__proto__:null,enumerable:!0,get(){return O.pipeline}}),r(R,u,{__proto__:null,enumerable:!0,get(){return O.finished}}),L.Stream=L,L._isUint8Array=function(j){return j instanceof Uint8Array},L._uint8ArrayToBuffer=function(j){return n.from(j.buffer,j.byteOffset,j.byteLength)},O9e.exports}(function(n){const r=Ocn(),o=Pcn(),l=r.Readable.destroy;n.exports=r.Readable,n.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer,n.exports._isUint8Array=r._isUint8Array,n.exports.isDisturbed=r.isDisturbed,n.exports.isErrored=r.isErrored,n.exports.isReadable=r.isReadable,n.exports.Readable=r.Readable,n.exports.Writable=r.Writable,n.exports.Duplex=r.Duplex,n.exports.Transform=r.Transform,n.exports.PassThrough=r.PassThrough,n.exports.addAbortSignal=r.addAbortSignal,n.exports.finished=r.finished,n.exports.destroy=r.destroy,n.exports.destroy=l,n.exports.pipeline=r.pipeline,n.exports.compose=r.compose,Object.defineProperty(r,"promises",{configurable:!0,enumerable:!0,get(){return o}}),n.exports.Stream=r.Stream,n.exports.default=n.exports})(Uan);var XAr=Uan.exports;class JAr{constructor(r){this.stream=r,this.array=[]}push(r){this.array.push(r)}end(){this.stream.push(this.array),this.stream.push(null)}}class YAr{constructor(r){this.stream=r,this.first=!0,this.stream.push("[")}push(r){this.first?this.first=!1:this.stream.push(","),this.stream.push(JSON.stringify(r))}end(){this.stream.push("]"),this.stream.push(null)}}class Eq extends XAr.Readable{constructor(r,{encoding:o="object"}={}){if(super({objectMode:!0,read:()=>{}}),o==="object"&&(this.encoder=new JAr(this)),o==="string"&&(this.encoder=new YAr(this)),!this.encoder)throw new Error(`unknown encoding: ${o}`);r.on("data",l=>{const u={};let d=u;l.graph.termType!=="DefaultGraph"&&(u["@id"]=l.graph.value,u["@graph"]={},d=u["@graph"]),d["@id"]=Eq.subjectValue(l.subject),l.predicate.value==="http://www.w3.org/1999/02/22-rdf-syntax-ns#type"?d["@type"]=Eq.subjectValue(l.object):d[l.predicate.value]=Eq.objectValue(l.object),this.encoder.push(u)}),r.on("end",()=>this.encoder.end()),r.on("error",l=>this.emit("error",l))}static subjectValue(r){return r.termType==="BlankNode"?"_:"+r.value:r.value}static objectValue(r){return r.termType==="NamedNode"?{"@id":r.value}:r.termType==="BlankNode"?{"@id":"_:"+r.value}:r.language?{"@language":r.language,"@value":r.value}:r.datatype&&r.datatype.value!=="http://www.w3.org/2001/XMLSchema#string"?{"@type":r.datatype.value,"@value":r.value}:r.value}}class QAr extends ebe{constructor(r){super(Eq,r)}}class ZAr extends QAr{constructor({...r}={}){super({...r,encoding:"string"})}}var Ncn={};/*! * Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved. - */const PKt=lUe,DAr=Xpe,LAr=qnn,OKt=aUe;var xcn=class{constructor({createMessageDigest:r=()=>new DAr("sha256"),canonicalIdMap:o=new Map,maxDeepIterations:l=1/0}={}){this.name="URDNA2015",this.blankNodeInfo=new Map,this.canonicalIssuer=new PKt("_:c14n",o),this.createMessageDigest=r,this.maxDeepIterations=l,this.quads=null,this.deepIterations=null}async main(r){this.deepIterations=new Map,this.quads=r;for(const v of r)this._addBlankNodeQuadInfo({quad:v,component:v.subject}),this._addBlankNodeQuadInfo({quad:v,component:v.object}),this._addBlankNodeQuadInfo({quad:v,component:v.graph});const o=new Map,l=[...this.blankNodeInfo.keys()];let u=0;for(const v of l)++u%100===0&&await this._yield(),await this._hashAndTrackBlankNode({id:v,hashToBlankNodes:o});const d=[...o.keys()].sort(),h=[];for(const v of d){const y=o.get(v);if(y.length>1){h.push(y);continue}const E=y[0];this.canonicalIssuer.getId(E)}for(const v of h){const y=[];for(const E of v){if(this.canonicalIssuer.hasId(E))continue;const A=new PKt("_:b");A.getId(E);const C=await this.hashNDegreeQuads(E,A);y.push(C)}y.sort(jAr);for(const E of y){const A=E.issuer.getOldIds();for(const C of A)this.canonicalIssuer.getId(C)}}const w=[];for(const v of this.quads){const y=OKt.serializeQuadComponents(this._componentWithCanonicalId(v.subject),v.predicate,this._componentWithCanonicalId(v.object),this._componentWithCanonicalId(v.graph));w.push(y)}return w.sort(),w.join("")}async hashFirstDegreeQuads(r){const o=[],l=this.blankNodeInfo.get(r),u=l.quads;for(const h of u){const w={subject:null,predicate:h.predicate,object:null,graph:null};w.subject=this.modifyFirstDegreeComponent(r,h.subject,"subject"),w.object=this.modifyFirstDegreeComponent(r,h.object,"object"),w.graph=this.modifyFirstDegreeComponent(r,h.graph,"graph"),o.push(OKt.serializeQuad(w))}o.sort();const d=this.createMessageDigest();for(const h of o)d.update(h);return l.hash=await d.digest(),l.hash}async hashRelatedBlankNode(r,o,l,u){let d;this.canonicalIssuer.hasId(r)?d=this.canonicalIssuer.getId(r):l.hasId(r)?d=l.getId(r):d=this.blankNodeInfo.get(r).hash;const h=this.createMessageDigest();return h.update(u),u!=="g"&&h.update(this.getRelatedPredicate(o)),h.update(d),h.digest()}async hashNDegreeQuads(r,o){const l=this.deepIterations.get(r)||0;if(l>this.maxDeepIterations)throw new Error(`Maximum deep iterations (${this.maxDeepIterations}) exceeded.`);this.deepIterations.set(r,l+1);const u=this.createMessageDigest(),d=await this.createHashToRelated(r,o),h=[...d.keys()].sort();for(const w of h){u.update(w);let v="",y;const E=new LAr(d.get(w));let A=0;for(;E.hasNext();){const C=E.next();++A%3===0&&await this._yield();let R=o.clone(),O="";const M=[];let L=!1;for(const H of C)if(this.canonicalIssuer.hasId(H)?O+=this.canonicalIssuer.getId(H):(R.hasId(H)||M.push(H),O+=R.getId(H)),v.length!==0&&O>v){L=!0;break}if(!L){for(const H of M){const G=await this.hashNDegreeQuads(H,R);if(O+=R.getId(H),O+=`<${G.hash}>`,R=G.issuer,v.length!==0&&O>v){L=!0;break}}L||(v.length===0||O`}async createHashToRelated(r,o){const l=new Map,u=this.blankNodeInfo.get(r).quads;let d=0;for(const h of u)++d%100===0&&await this._yield(),await Promise.all([this._addRelatedBlankNodeHash({quad:h,component:h.subject,position:"s",id:r,issuer:o,hashToRelated:l}),this._addRelatedBlankNodeHash({quad:h,component:h.object,position:"o",id:r,issuer:o,hashToRelated:l}),this._addRelatedBlankNodeHash({quad:h,component:h.graph,position:"g",id:r,issuer:o,hashToRelated:l})]);return l}async _hashAndTrackBlankNode({id:r,hashToBlankNodes:o}){const l=await this.hashFirstDegreeQuads(r),u=o.get(l);u?u.push(r):o.set(l,[r])}_addBlankNodeQuadInfo({quad:r,component:o}){if(o.termType!=="BlankNode")return;const l=o.value,u=this.blankNodeInfo.get(l);u?u.quads.add(r):this.blankNodeInfo.set(l,{quads:new Set([r]),hash:null})}async _addRelatedBlankNodeHash({quad:r,component:o,position:l,id:u,issuer:d,hashToRelated:h}){if(!(o.termType==="BlankNode"&&o.value!==u))return;const w=o.value,v=await this.hashRelatedBlankNode(w,r,d,l),y=h.get(v);y?y.push(w):h.set(v,[w])}_componentWithCanonicalId(r){return r.termType==="BlankNode"&&!r.value.startsWith(this.canonicalIssuer.prefix)?{termType:"BlankNode",value:this.canonicalIssuer.getId(r.value)}:r}async _yield(){return new Promise(r=>setImmediate(r))}};function jAr(n,r){return n.hashr.hash?1:0}/*! + */const FKt=hUe,e4r=Zpe,t4r=rrn,BKt=pUe;var Mcn=class{constructor({createMessageDigest:r=()=>new e4r("sha256"),canonicalIdMap:o=new Map,maxDeepIterations:l=1/0}={}){this.name="URDNA2015",this.blankNodeInfo=new Map,this.canonicalIssuer=new FKt("_:c14n",o),this.createMessageDigest=r,this.maxDeepIterations=l,this.quads=null,this.deepIterations=null}async main(r){this.deepIterations=new Map,this.quads=r;for(const v of r)this._addBlankNodeQuadInfo({quad:v,component:v.subject}),this._addBlankNodeQuadInfo({quad:v,component:v.object}),this._addBlankNodeQuadInfo({quad:v,component:v.graph});const o=new Map,l=[...this.blankNodeInfo.keys()];let u=0;for(const v of l)++u%100===0&&await this._yield(),await this._hashAndTrackBlankNode({id:v,hashToBlankNodes:o});const d=[...o.keys()].sort(),h=[];for(const v of d){const y=o.get(v);if(y.length>1){h.push(y);continue}const E=y[0];this.canonicalIssuer.getId(E)}for(const v of h){const y=[];for(const E of v){if(this.canonicalIssuer.hasId(E))continue;const A=new FKt("_:b");A.getId(E);const C=await this.hashNDegreeQuads(E,A);y.push(C)}y.sort(n4r);for(const E of y){const A=E.issuer.getOldIds();for(const C of A)this.canonicalIssuer.getId(C)}}const w=[];for(const v of this.quads){const y=BKt.serializeQuadComponents(this._componentWithCanonicalId(v.subject),v.predicate,this._componentWithCanonicalId(v.object),this._componentWithCanonicalId(v.graph));w.push(y)}return w.sort(),w.join("")}async hashFirstDegreeQuads(r){const o=[],l=this.blankNodeInfo.get(r),u=l.quads;for(const h of u){const w={subject:null,predicate:h.predicate,object:null,graph:null};w.subject=this.modifyFirstDegreeComponent(r,h.subject,"subject"),w.object=this.modifyFirstDegreeComponent(r,h.object,"object"),w.graph=this.modifyFirstDegreeComponent(r,h.graph,"graph"),o.push(BKt.serializeQuad(w))}o.sort();const d=this.createMessageDigest();for(const h of o)d.update(h);return l.hash=await d.digest(),l.hash}async hashRelatedBlankNode(r,o,l,u){let d;this.canonicalIssuer.hasId(r)?d=this.canonicalIssuer.getId(r):l.hasId(r)?d=l.getId(r):d=this.blankNodeInfo.get(r).hash;const h=this.createMessageDigest();return h.update(u),u!=="g"&&h.update(this.getRelatedPredicate(o)),h.update(d),h.digest()}async hashNDegreeQuads(r,o){const l=this.deepIterations.get(r)||0;if(l>this.maxDeepIterations)throw new Error(`Maximum deep iterations (${this.maxDeepIterations}) exceeded.`);this.deepIterations.set(r,l+1);const u=this.createMessageDigest(),d=await this.createHashToRelated(r,o),h=[...d.keys()].sort();for(const w of h){u.update(w);let v="",y;const E=new t4r(d.get(w));let A=0;for(;E.hasNext();){const C=E.next();++A%3===0&&await this._yield();let R=o.clone(),O="";const M=[];let L=!1;for(const H of C)if(this.canonicalIssuer.hasId(H)?O+=this.canonicalIssuer.getId(H):(R.hasId(H)||M.push(H),O+=R.getId(H)),v.length!==0&&O>v){L=!0;break}if(!L){for(const H of M){const G=await this.hashNDegreeQuads(H,R);if(O+=R.getId(H),O+=`<${G.hash}>`,R=G.issuer,v.length!==0&&O>v){L=!0;break}}L||(v.length===0||O`}async createHashToRelated(r,o){const l=new Map,u=this.blankNodeInfo.get(r).quads;let d=0;for(const h of u)++d%100===0&&await this._yield(),await Promise.all([this._addRelatedBlankNodeHash({quad:h,component:h.subject,position:"s",id:r,issuer:o,hashToRelated:l}),this._addRelatedBlankNodeHash({quad:h,component:h.object,position:"o",id:r,issuer:o,hashToRelated:l}),this._addRelatedBlankNodeHash({quad:h,component:h.graph,position:"g",id:r,issuer:o,hashToRelated:l})]);return l}async _hashAndTrackBlankNode({id:r,hashToBlankNodes:o}){const l=await this.hashFirstDegreeQuads(r),u=o.get(l);u?u.push(r):o.set(l,[r])}_addBlankNodeQuadInfo({quad:r,component:o}){if(o.termType!=="BlankNode")return;const l=o.value,u=this.blankNodeInfo.get(l);u?u.quads.add(r):this.blankNodeInfo.set(l,{quads:new Set([r]),hash:null})}async _addRelatedBlankNodeHash({quad:r,component:o,position:l,id:u,issuer:d,hashToRelated:h}){if(!(o.termType==="BlankNode"&&o.value!==u))return;const w=o.value,v=await this.hashRelatedBlankNode(w,r,d,l),y=h.get(v);y?y.push(w):h.set(v,[w])}_componentWithCanonicalId(r){return r.termType==="BlankNode"&&!r.value.startsWith(this.canonicalIssuer.prefix)?{termType:"BlankNode",value:this.canonicalIssuer.getId(r.value)}:r}async _yield(){return new Promise(r=>setImmediate(r))}};function n4r(n,r){return n.hashr.hash?1:0}/*! * Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved. - */const FAr=Xpe,BAr=xcn;var WAr=class extends BAr{constructor(){super(),this.name="URGNA2012",this.createMessageDigest=()=>new FAr("sha1")}modifyFirstDegreeComponent(r,o,l){return o.termType!=="BlankNode"?o:l==="graph"?{termType:"BlankNode",value:"_:g"}:{termType:"BlankNode",value:o.value===r?"_:a":"_:z"}}getRelatedPredicate(r){return r.predicate.value}async createHashToRelated(r,o){const l=new Map,u=this.blankNodeInfo.get(r).quads;let d=0;for(const h of u){let w,v;if(h.subject.termType==="BlankNode"&&h.subject.value!==r)v=h.subject.value,w="p";else if(h.object.termType==="BlankNode"&&h.object.value!==r)v=h.object.value,w="r";else continue;++d%100===0&&await this._yield();const y=await this.hashRelatedBlankNode(v,h,o,w),E=l.get(y);E?E.push(v):l.set(y,[v])}return l}};/*! + */const r4r=Zpe,i4r=Mcn;var o4r=class extends i4r{constructor(){super(),this.name="URGNA2012",this.createMessageDigest=()=>new r4r("sha1")}modifyFirstDegreeComponent(r,o,l){return o.termType!=="BlankNode"?o:l==="graph"?{termType:"BlankNode",value:"_:g"}:{termType:"BlankNode",value:o.value===r?"_:a":"_:z"}}getRelatedPredicate(r){return r.predicate.value}async createHashToRelated(r,o){const l=new Map,u=this.blankNodeInfo.get(r).quads;let d=0;for(const h of u){let w,v;if(h.subject.termType==="BlankNode"&&h.subject.value!==r)v=h.subject.value,w="p";else if(h.object.termType==="BlankNode"&&h.object.value!==r)v=h.object.value,w="r";else continue;++d%100===0&&await this._yield();const y=await this.hashRelatedBlankNode(v,h,o,w),E=l.get(y);E?E.push(v):l.set(y,[v])}return l}};/*! * Copyright (c) 2016-2021 Digital Bazaar, Inc. All rights reserved. - */const HAr=Xpe,UAr=cUe;var GAr=class extends UAr{constructor(){super(),this.name="URGNA2012",this.createMessageDigest=()=>new HAr("sha1")}modifyFirstDegreeComponent(r,o,l){return o.termType!=="BlankNode"?o:l==="graph"?{termType:"BlankNode",value:"_:g"}:{termType:"BlankNode",value:o.value===r?"_:a":"_:z"}}getRelatedPredicate(r){return r.predicate.value}createHashToRelated(r,o){const l=new Map,u=this.blankNodeInfo.get(r).quads;for(const d of u){let h,w;if(d.subject.termType==="BlankNode"&&d.subject.value!==r)w=d.subject.value,h="p";else if(d.object.termType==="BlankNode"&&d.object.value!==r)w=d.object.value,h="r";else continue;const v=this.hashRelatedBlankNode(w,d,o,h),y=l.get(v);y?y.push(w):l.set(v,[w])}return l}};(function(n){const r=xcn,o=WAr,l=cUe,u=GAr;let d;try{d=Epe}catch{}function h(w){return Array.isArray(w)?w:n.NQuads.legacyDatasetToQuads(w)}n.NQuads=aUe,n.IdentifierIssuer=lUe,n._rdfCanonizeNative=function(w){return w&&(d=w),d},n.canonize=async function(w,v){const y=h(w);if(v.useNative){if(!d)throw new Error("rdf-canonize-native not available");if(v.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "useNative".');return new Promise((E,A)=>d.canonize(y,v,(C,R)=>C?A(C):E(R)))}if(v.algorithm==="URDNA2015")return new r(v).main(y);if(v.algorithm==="URGNA2012"){if(v.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "URGNA2012".');return new o(v).main(y)}throw"algorithm"in v?new Error("Invalid RDF Dataset Canonicalization algorithm: "+v.algorithm):new Error("No RDF Dataset Canonicalization algorithm specified.")},n._canonizeSync=function(w,v){const y=h(w);if(v.useNative){if(!d)throw new Error("rdf-canonize-native not available");if(v.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "useNative".');return d.canonizeSync(y,v)}if(v.algorithm==="URDNA2015")return new l(v).main(y);if(v.algorithm==="URGNA2012"){if(v.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "URGNA2012".');return new u(v).main(y)}throw"algorithm"in v?new Error("Invalid RDF Dataset Canonicalization algorithm: "+v.algorithm):new Error("No RDF Dataset Canonicalization algorithm specified.")}})(Rcn);var GGe=Rcn;const av={};var um=av;av.isArray=Array.isArray;av.isBoolean=n=>typeof n=="boolean"||Object.prototype.toString.call(n)==="[object Boolean]";av.isDouble=n=>av.isNumber(n)&&(String(n).indexOf(".")!==-1||Math.abs(n)>=1e21);av.isEmptyObject=n=>av.isObject(n)&&Object.keys(n).length===0;av.isNumber=n=>typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]";av.isNumeric=n=>!isNaN(parseFloat(n))&&isFinite(n);av.isObject=n=>Object.prototype.toString.call(n)==="[object Object]";av.isString=n=>typeof n=="string"||Object.prototype.toString.call(n)==="[object String]";av.isUndefined=n=>typeof n>"u";const NP=um,bx={};var Ox=bx;bx.isSubject=n=>NP.isObject(n)&&!("@value"in n||"@set"in n||"@list"in n)?Object.keys(n).length>1||!("@id"in n):!1;bx.isSubjectReference=n=>NP.isObject(n)&&Object.keys(n).length===1&&"@id"in n;bx.isValue=n=>NP.isObject(n)&&"@value"in n;bx.isList=n=>NP.isObject(n)&&"@list"in n;bx.isGraph=n=>NP.isObject(n)&&"@graph"in n&&Object.keys(n).filter(r=>r!=="@id"&&r!=="@index").length===1;bx.isSimpleGraph=n=>bx.isGraph(n)&&!("@id"in n);bx.isBlankNode=n=>{if(NP.isObject(n)){if("@id"in n){const r=n["@id"];return!NP.isString(r)||r.indexOf("_:")===0}return Object.keys(n).length===0||!("@value"in n||"@set"in n||"@list"in n)}return!1};var _v=class extends Error{constructor(r="An unspecified JSON-LD error occurred.",o="jsonld.Error",l={}){super(r),this.name=o,this.message=r,this.details=l}};const kX=Ox,Hb=um,Ccn=GGe.IdentifierIssuer,VAr=_v,zAr=/^[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*$/,KAr=/(?:<[^>]*?>|"[^"]*?"|[^,])+/g,qAr=/\s*<([^>]*?)>\s*(?:;\s*(.*))?/,XAr=/(.*?)=(?:(?:"([^"]*?)")|([^"]*?))\s*(?:(?:;\s*)|$)/g,JAr=/^@[a-zA-Z]+$/,NKt={headers:{accept:"application/ld+json, application/json"}},Ia={};var Sv=Ia;Ia.IdentifierIssuer=Ccn;Ia.REGEX_BCP47=zAr;Ia.REGEX_KEYWORD=JAr;Ia.clone=function(n){if(n&&typeof n=="object"){let r;if(Hb.isArray(n)){r=[];for(let o=0;o{if(Object.keys(n).some(o=>o.toLowerCase()==="accept"))throw new RangeError('Accept header may not be specified; only "'+NKt.headers.accept+'" is supported.');return Object.assign({Accept:NKt.headers.accept},n)};Ia.parseLinkHeader=n=>{const r={},o=n.match(KAr);for(let l=0;l{if(!Hb.isString(n)&&!(Hb.isArray(n)&&n.every(o=>Hb.isString(o)))){if(r&&Hb.isObject(n))switch(Object.keys(n).length){case 0:return;case 1:if("@default"in n&&Ia.asArray(n["@default"]).every(o=>Hb.isString(o)))return}throw new VAr('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:n})}};Ia.hasProperty=(n,r)=>{if(n.hasOwnProperty(r)){const o=n[r];return!Hb.isArray(o)||o.length>0}return!1};Ia.hasValue=(n,r,o)=>{if(Ia.hasProperty(n,r)){let l=n[r];const u=kX.isList(l);if(Hb.isArray(l)||u){u&&(l=l["@list"]);for(let d=0;d{if(l=l||{},"propertyIsArray"in l||(l.propertyIsArray=!1),"valueIsArray"in l||(l.valueIsArray=!1),"allowDuplicate"in l||(l.allowDuplicate=!0),"prependValue"in l||(l.prependValue=!1),l.valueIsArray)n[r]=o;else if(Hb.isArray(o)){o.length===0&&l.propertyIsArray&&!n.hasOwnProperty(r)&&(n[r]=[]),l.prependValue&&(o=o.concat(n[r]),n[r]=[]);for(let u=0;u[].concat(n[r]||[]);Ia.removeProperty=(n,r)=>{delete n[r]};Ia.removeValue=(n,r,o,l)=>{l=l||{},"propertyIsArray"in l||(l.propertyIsArray=!1);const u=Ia.getValues(n,r).filter(d=>!Ia.compareValues(d,o));u.length===0?Ia.removeProperty(n,r):u.length===1&&!l.propertyIsArray?n[r]=u[0]:n[r]=u};Ia.relabelBlankNodes=(n,r)=>{r=r||{};const o=r.issuer||new Ccn("_:b");return sde(o,n)};Ia.compareValues=(n,r)=>n===r||kX.isValue(n)&&kX.isValue(r)&&n["@value"]===r["@value"]&&n["@type"]===r["@type"]&&n["@language"]===r["@language"]&&n["@index"]===r["@index"]?!0:Hb.isObject(n)&&"@id"in n&&Hb.isObject(r)&&"@id"in r?n["@id"]===r["@id"]:!1;Ia.compareShortestLeast=(n,r)=>n.length{const o={},l=Ub.parsers[r||"full"],u=l.regex.exec(n);let d=l.keys.length;for(;d--;)o[l.keys[d]]=u[d]===void 0?null:u[d];return(o.scheme==="https"&&o.port==="443"||o.scheme==="http"&&o.port==="80")&&(o.href=o.href.replace(":"+o.port,""),o.authority=o.authority.replace(":"+o.port,""),o.port=null),o.normalizedPath=Ub.removeDotSegments(o.path),o};Ub.prependBase=(n,r)=>{if(n===null||Ub.isAbsolute(r))return r;(!n||jge.isString(n))&&(n=Ub.parse(n||""));const o=Ub.parse(r),l={protocol:n.protocol||""};if(o.authority!==null)l.authority=o.authority,l.path=o.path,l.query=o.query;else if(l.authority=n.authority,o.path==="")l.path=n.path,o.query!==null?l.query=o.query:l.query=n.query;else{if(o.path.indexOf("/")===0)l.path=o.path;else{let d=n.path;d=d.substr(0,d.lastIndexOf("/")+1),(d.length>0||n.authority)&&d.substr(-1)!=="/"&&(d+="/"),d+=o.path,l.path=d}l.query=o.query}o.path!==""&&(l.path=Ub.removeDotSegments(l.path));let u=l.protocol;return l.authority!==null&&(u+="//"+l.authority),u+=l.path,l.query!==null&&(u+="?"+l.query),o.fragment!==null&&(u+="#"+o.fragment),u===""&&(u="./"),u};Ub.removeBase=(n,r)=>{if(n===null)return r;(!n||jge.isString(n))&&(n=Ub.parse(n||""));let o="";if(n.href!==""?o+=(n.protocol||"")+"//"+(n.authority||""):r.indexOf("//")&&(o+="//"),r.indexOf(o)!==0)return r;const l=Ub.parse(r.substr(o.length)),u=n.normalizedPath.split("/"),d=l.normalizedPath.split("/"),h=l.fragment||l.query?0:1;for(;u.length>0&&d.length>h&&u[0]===d[0];)u.shift(),d.shift();let w="";if(u.length>0){u.pop();for(let v=0;v{if(n.length===0)return"";const r=n.split("/"),o=[];for(;r.length>0;){const l=r.shift(),u=r.length===0;if(l==="."){u&&o.push("");continue}if(l===".."){o.pop(),u&&o.push("");continue}o.push(l)}return n[0]==="/"&&o.length>0&&o[0]!==""&&o.unshift(""),o.length===1&&o[0]===""?"/":o.join("/")};const YAr=/^([A-Za-z][A-Za-z0-9+-.]*|_):[^\s]*$/;Ub.isAbsolute=n=>jge.isString(n)&&YAr.test(n);Ub.isRelative=n=>jge.isString(n);const{parseLinkHeader:QAr,buildHeaders:ZAr}=Sv,{LINK_HEADER_CONTEXT:e4r}=VGe,hK=_v,t4r=Acn(),{prependBase:n4r}=zT,r4r=/(^|(\r\n))link:/i;var i4r=({secure:n,headers:r={},xhr:o}={headers:{}})=>{return r=ZAr(r),new t4r().wrapLoader(u);async function u(d){if(d.indexOf("http:")!==0&&d.indexOf("https:")!==0)throw new hK('URL could not be dereferenced; only "http" and "https" URLs are supported.',"jsonld.InvalidUrl",{code:"loading document failed",url:d});if(n&&d.indexOf("https")!==0)throw new hK(`URL could not be dereferenced; secure mode is enabled and the URL's scheme is not "https".`,"jsonld.InvalidUrl",{code:"loading document failed",url:d});let h;try{h=await o4r(o,d,r)}catch(A){throw new hK("URL could not be dereferenced, an error occurred.","jsonld.LoadDocumentError",{code:"loading document failed",url:d,cause:A})}if(h.status>=400)throw new hK("URL could not be dereferenced: "+h.statusText,"jsonld.LoadDocumentError",{code:"loading document failed",url:d,httpStatusCode:h.status});let w={contextUrl:null,documentUrl:d,document:h.response},v=null;const y=h.getResponseHeader("Content-Type");let E;if(r4r.test(h.getAllResponseHeaders())&&(E=h.getResponseHeader("Link")),E&&y!=="application/ld+json"){const A=QAr(E),C=A[e4r];if(Array.isArray(C))throw new hK("URL could not be dereferenced, it has more than one associated HTTP Link Header.","jsonld.InvalidUrl",{code:"multiple context link headers",url:d});C&&(w.contextUrl=C.target),v=A.alternate,v&&v.type=="application/ld+json"&&!(y||"").match(/^application\/(\w*\+)?json$/)&&(w=await u(n4r(d,v.target)))}return w}};function o4r(n,r,o){n=n||XMLHttpRequest;const l=new n;return new Promise((u,d)=>{l.onload=()=>u(l),l.onerror=h=>d(h),l.open("GET",r,!0);for(const h in o)l.setRequestHeader(h,o[h]);l.send()})}const s4r=i4r,zGe={};var l4r=zGe;zGe.setupDocumentLoaders=function(n){typeof XMLHttpRequest<"u"&&(n.documentLoaders.xhr=s4r,n.useDocumentLoader("xhr"))};zGe.setupGlobals=function(n){typeof globalThis.JsonLdProcessor>"u"&&Object.defineProperty(globalThis,"JsonLdProcessor",{writable:!0,enumerable:!1,configurable:!0,value:n.JsonLdProcessor})};var K9e,DKt;function a4r(){return DKt||(DKt=1,K9e=function(n){n.prototype[Symbol.iterator]=function*(){for(let r=this.head;r;r=r.next)yield r.value}}),K9e}var c4r=Ea;Ea.Node=MP;Ea.create=Ea;function Ea(n){var r=this;if(r instanceof Ea||(r=new Ea),r.tail=null,r.head=null,r.length=0,n&&typeof n.forEach=="function")n.forEach(function(u){r.push(u)});else if(arguments.length>0)for(var o=0,l=arguments.length;o1)o=r;else if(this.head)l=this.head.next,o=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var u=0;l!==null;u++)o=n(o,l.value,u),l=l.next;return o};Ea.prototype.reduceReverse=function(n,r){var o,l=this.tail;if(arguments.length>1)o=r;else if(this.tail)l=this.tail.prev,o=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var u=this.length-1;l!==null;u--)o=n(o,l.value,u),l=l.prev;return o};Ea.prototype.toArray=function(){for(var n=new Array(this.length),r=0,o=this.head;o!==null;r++)n[r]=o.value,o=o.next;return n};Ea.prototype.toArrayReverse=function(){for(var n=new Array(this.length),r=0,o=this.tail;o!==null;r++)n[r]=o.value,o=o.prev;return n};Ea.prototype.slice=function(n,r){r=r||this.length,r<0&&(r+=this.length),n=n||0,n<0&&(n+=this.length);var o=new Ea;if(rthis.length&&(r=this.length);for(var l=0,u=this.head;u!==null&&lthis.length&&(r=this.length);for(var l=this.length,u=this.tail;u!==null&&l>r;l--)u=u.prev;for(;u!==null&&l>n;l--,u=u.prev)o.push(u.value);return o};Ea.prototype.splice=function(n,r,...o){n>this.length&&(n=this.length-1),n<0&&(n=this.length+n);for(var l=0,u=this.head;u!==null&&l1;class p4r{constructor(r){if(typeof r=="number"&&(r={max:r}),r||(r={}),r.max&&(typeof r.max!="number"||r.max<0))throw new TypeError("max must be a non-negative number");this[j8]=r.max||1/0;const o=r.length||q9e;if(this[cD]=typeof o!="function"?q9e:o,this[Rq]=r.stale||!1,r.maxAge&&typeof r.maxAge!="number")throw new TypeError("maxAge must be a number");this[z8]=r.maxAge||0,this[TR]=r.dispose,this[LKt]=r.noDisposeOnSet||!1,this[Tcn]=r.updateAgeOnGet||!1,this.reset()}set max(r){if(typeof r!="number"||r<0)throw new TypeError("max must be a non-negative number");this[j8]=r||1/0,pK(this)}get max(){return this[j8]}set allowStale(r){this[Rq]=!!r}get allowStale(){return this[Rq]}set maxAge(r){if(typeof r!="number")throw new TypeError("maxAge must be a non-negative number");this[z8]=r,pK(this)}get maxAge(){return this[z8]}set lengthCalculator(r){typeof r!="function"&&(r=q9e),r!==this[cD]&&(this[cD]=r,this[PR]=0,this[ap].forEach(o=>{o.length=this[cD](o.value,o.key),this[PR]+=o.length})),pK(this)}get lengthCalculator(){return this[cD]}get length(){return this[PR]}get itemCount(){return this[ap].length}rforEach(r,o){o=o||this;for(let l=this[ap].tail;l!==null;){const u=l.prev;jKt(this,r,l,o),l=u}}forEach(r,o){o=o||this;for(let l=this[ap].head;l!==null;){const u=l.next;jKt(this,r,l,o),l=u}}keys(){return this[ap].toArray().map(r=>r.key)}values(){return this[ap].toArray().map(r=>r.value)}reset(){this[TR]&&this[ap]&&this[ap].length&&this[ap].forEach(r=>this[TR](r.key,r.value)),this[dS]=new Map,this[ap]=new h4r,this[PR]=0}dump(){return this[ap].map(r=>She(this,r)?!1:{k:r.key,v:r.value,e:r.now+(r.maxAge||0)}).toArray().filter(r=>r)}dumpLru(){return this[ap]}set(r,o,l){if(l=l||this[z8],l&&typeof l!="number")throw new TypeError("maxAge must be a number");const u=l?Date.now():0,d=this[cD](o,r);if(this[dS].has(r)){if(d>this[j8])return pL(this,this[dS].get(r)),!1;const v=this[dS].get(r).value;return this[TR]&&(this[LKt]||this[TR](r,v.value)),v.now=u,v.maxAge=l,v.value=o,this[PR]+=d-v.length,v.length=d,this.get(r),pK(this),!0}const h=new b4r(r,o,d,u,l);return h.length>this[j8]?(this[TR]&&this[TR](r,o),!1):(this[PR]+=h.length,this[ap].unshift(h),this[dS].set(r,this[ap].head),pK(this),!0)}has(r){if(!this[dS].has(r))return!1;const o=this[dS].get(r).value;return!She(this,o)}get(r){return X9e(this,r,!0)}peek(r){return X9e(this,r,!1)}pop(){const r=this[ap].tail;return r?(pL(this,r),r.value):null}del(r){pL(this,this[dS].get(r))}load(r){this.reset();const o=Date.now();for(let l=r.length-1;l>=0;l--){const u=r[l],d=u.e||0;if(d===0)this.set(u.k,u.v);else{const h=d-o;h>0&&this.set(u.k,u.v,h)}}}prune(){this[dS].forEach((r,o)=>X9e(this,o,!1))}}const X9e=(n,r,o)=>{const l=n[dS].get(r);if(l){const u=l.value;if(She(n,u)){if(pL(n,l),!n[Rq])return}else o&&(n[Tcn]&&(l.value.now=Date.now()),n[ap].unshiftNode(l));return u.value}},She=(n,r)=>{if(!r||!r.maxAge&&!n[z8])return!1;const o=Date.now()-r.now;return r.maxAge?o>r.maxAge:n[z8]&&o>n[z8]},pK=n=>{if(n[PR]>n[j8])for(let r=n[ap].tail;n[PR]>n[j8]&&r!==null;){const o=r.prev;pL(n,r),r=o}},pL=(n,r)=>{if(r){const o=r.value;n[TR]&&n[TR](o.key,o.value),n[PR]-=o.length,n[dS].delete(o.key),n[ap].removeNode(r)}};class b4r{constructor(r,o,l,u,d){this.key=r,this.value=o,this.length=l,this.now=u,this.maxAge=d||0}}const jKt=(n,r,o,l)=>{let u=o.value;She(n,u)&&(pL(n,o),n[Rq]||(u=void 0)),u&&r.call(l,u.value,u.key,n)};var $cn=p4r;const g4r=$cn,w4r=10;var m4r=class{constructor({document:r}){this.document=r,this.cache=new g4r({max:w4r})}getProcessed(r){return this.cache.get(r)}setProcessed(r,o){this.cache.set(r,o)}};const{isArray:sBe,isObject:xq,isString:Ehe}=um,{asArray:y4r}=Sv,{prependBase:lBe}=zT,FK=_v,FKt=m4r,BKt=10;var v4r=class{constructor({sharedCache:r}){this.perOpCache=new Map,this.sharedCache=r}async resolve({activeCtx:r,context:o,documentLoader:l,base:u,cycles:d=new Set}){o&&xq(o)&&o["@context"]&&(o=o["@context"]),o=y4r(o);const h=[];for(const w of o){if(Ehe(w)){let E=this._get(w);E||(E=await this._resolveRemoteContext({activeCtx:r,url:w,documentLoader:l,base:u,cycles:d})),sBe(E)?h.push(...E):h.push(E);continue}if(w===null){h.push(new FKt({document:null}));continue}xq(w)||_4r(o);const v=JSON.stringify(w);let y=this._get(v);y||(y=new FKt({document:w}),this._cacheResolvedContext({key:v,resolved:y,tag:"static"})),h.push(y)}return h}_get(r){let o=this.perOpCache.get(r);if(!o){const l=this.sharedCache.get(r);l&&(o=l.get("static"),o&&this.perOpCache.set(r,o))}return o}_cacheResolvedContext({key:r,resolved:o,tag:l}){if(this.perOpCache.set(r,o),l!==void 0){let u=this.sharedCache.get(r);u||(u=new Map,this.sharedCache.set(r,u)),u.set(l,o)}return o}async _resolveRemoteContext({activeCtx:r,url:o,documentLoader:l,base:u,cycles:d}){o=lBe(u,o);const{context:h,remoteDoc:w}=await this._fetchContext({activeCtx:r,url:o,documentLoader:l,cycles:d});u=w.documentUrl||o,aBe({context:h,base:u});const v=await this.resolve({activeCtx:r,context:h,documentLoader:l,base:u,cycles:d});return this._cacheResolvedContext({key:o,resolved:v,tag:w.tag}),v}async _fetchContext({activeCtx:r,url:o,documentLoader:l,cycles:u}){if(u.size>BKt)throw new FK("Maximum number of @context URLs exceeded.","jsonld.ContextUrlError",{code:r.processingMode==="json-ld-1.0"?"loading remote context failed":"context overflow",max:BKt});if(u.has(o))throw new FK("Cyclical @context URLs detected.","jsonld.ContextUrlError",{code:r.processingMode==="json-ld-1.0"?"recursive context inclusion":"context overflow",url:o});u.add(o);let d,h;try{h=await l(o),d=h.document||null,Ehe(d)&&(d=JSON.parse(d))}catch(w){throw new FK("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:o,cause:w})}if(!xq(d))throw new FK("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:o});return"@context"in d?d={"@context":d["@context"]}:d={"@context":{}},h.contextUrl&&(sBe(d["@context"])||(d["@context"]=[d["@context"]]),d["@context"].push(h.contextUrl)),{context:d,remoteDoc:h}}};function _4r(n){throw new FK("Invalid JSON-LD syntax; @context must be an object.","jsonld.SyntaxError",{code:"invalid local context",context:n})}function aBe({context:n,base:r}){if(!n)return;const o=n["@context"];if(Ehe(o)){n["@context"]=lBe(r,o);return}if(sBe(o)){for(let l=0;l{const r=[].concat(n.safe?tm.safeEventHandler:[],n.eventHandler?Icn(n.eventHandler):[],tm.defaultEventHandler?tm.defaultEventHandler:[]);return r.length===0?null:r};tm.handleEvent=({event:n,options:r})=>{Pcn({event:n,handlers:r.eventHandler})};function Pcn({event:n,handlers:r}){let o=!0;for(let l=0;o&&l{o=!0}});else if(typeof u=="object")n.code in u?u[n.code]({event:n,next:()=>{o=!0}}):o=!0;else throw new KGe("Invalid event handler.","jsonld.InvalidEventHandler",{event:n})}return o}const k4r=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"]);tm.safeEventHandler=function({event:r,next:o}){if(r.level==="warning"&&k4r.has(r.code))throw new KGe("Safe mode validation error.","jsonld.ValidationError",{event:r});o()};tm.logEventHandler=function({event:r,next:o}){console.log(`EVENT: ${r.message}`,{event:r}),o()};tm.logWarningEventHandler=function({event:r,next:o}){r.level==="warning"&&console.warn(`WARNING: ${r.message}`,{event:r}),o()};tm.unhandledEventHandler=function({event:r}){throw new KGe("No handler for event.","jsonld.UnhandledEvent",{event:r})};tm.setDefaultEventHandler=function({eventHandler:n}={}){tm.defaultEventHandler=n?Icn(n):null};const WKt=Sv,Ao=_v,{isArray:Ocn,isObject:fT,isString:E0,isUndefined:R4r}=um,{isAbsolute:dP,isRelative:x4r,prependBase:Cq}=zT,{handleEvent:bL}=LJ,{REGEX_BCP47:C4r,REGEX_KEYWORD:lde,asArray:Ncn,compareShortestLeast:A4r}=Sv,que=new Map,T4r=1e4,au={};var _O=au;au.process=async({activeCtx:n,localCtx:r,options:o,propagate:l=!0,overrideProtected:u=!1,cycles:d=new Set})=>{if(fT(r)&&"@context"in r&&Ocn(r["@context"])&&(r=r["@context"]),Ncn(r).length===0)return n;const w=[],v=[({event:C,next:R})=>{w.push(C),R()}];o.eventHandler&&v.push(o.eventHandler);const y=o;o={...o,eventHandler:v};const E=await o.contextResolver.resolve({activeCtx:n,context:r,documentLoader:o.documentLoader,base:o.base});fT(E[0].document)&&typeof E[0].document["@propagate"]=="boolean"&&(l=E[0].document["@propagate"]);let A=n;!l&&!A.previousContext&&(A=A.clone(),A.previousContext=n);for(const C of E){let{document:R}=C;if(n=A,R===null){if(!u&&Object.keys(n.protected).length!==0)throw new Ao("Tried to nullify a context with protected terms outside of a term definition.","jsonld.SyntaxError",{code:"invalid context nullification"});A=n=au.getInitialContext(o).clone();continue}const O=C.getProcessed(n);if(O){if(y.eventHandler)for(const L of O.events)bL({event:L,options:y});A=n=O.context;continue}if(fT(R)&&"@context"in R&&(R=R["@context"]),!fT(R))throw new Ao("Invalid JSON-LD syntax; @context must be an object.","jsonld.SyntaxError",{code:"invalid local context",context:R});A=A.clone();const M=new Map;if("@version"in R){if(R["@version"]!==1.1)throw new Ao("Unsupported JSON-LD version: "+R["@version"],"jsonld.UnsupportedVersion",{code:"invalid @version value",context:R});if(n.processingMode&&n.processingMode==="json-ld-1.0")throw new Ao("@version: "+R["@version"]+" not compatible with "+n.processingMode,"jsonld.ProcessingModeConflict",{code:"processing mode conflict",context:R});A.processingMode="json-ld-1.1",A["@version"]=R["@version"],M.set("@version",!0)}if(A.processingMode=A.processingMode||n.processingMode,"@base"in R){let L=R["@base"];if(!(L===null||dP(L)))if(x4r(L))L=Cq(A["@base"],L);else throw new Ao('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:R});A["@base"]=L,M.set("@base",!0)}if("@vocab"in R){const L=R["@vocab"];if(L===null)delete A["@vocab"];else if(E0(L)){if(!dP(L)&&au.processingMode(A,1))throw new Ao('Invalid JSON-LD syntax; the value of "@vocab" in a @context must be an absolute IRI.',"jsonld.SyntaxError",{code:"invalid vocab mapping",context:R});{const H=UD(A,L,{vocab:!0,base:!0},void 0,void 0,o);dP(H)||o.eventHandler&&bL({event:{type:["JsonLdEvent"],code:"relative @vocab reference",level:"warning",message:"Relative @vocab reference found.",details:{vocab:H}},options:o}),A["@vocab"]=H}}else throw new Ao('Invalid JSON-LD syntax; the value of "@vocab" in a @context must be a string or null.',"jsonld.SyntaxError",{code:"invalid vocab mapping",context:R});M.set("@vocab",!0)}if("@language"in R){const L=R["@language"];if(L===null)delete A["@language"];else if(E0(L))L.match(C4r)||o.eventHandler&&bL({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:L}},options:o}),A["@language"]=L.toLowerCase();else throw new Ao('Invalid JSON-LD syntax; the value of "@language" in a @context must be a string or null.',"jsonld.SyntaxError",{code:"invalid default language",context:R});M.set("@language",!0)}if("@direction"in R){const L=R["@direction"];if(n.processingMode==="json-ld-1.0")throw new Ao("Invalid JSON-LD syntax; @direction not compatible with "+n.processingMode,"jsonld.SyntaxError",{code:"invalid context member",context:R});if(L===null)delete A["@direction"];else{if(L!=="ltr"&&L!=="rtl")throw new Ao('Invalid JSON-LD syntax; the value of "@direction" in a @context must be null, "ltr", or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",context:R});A["@direction"]=L}M.set("@direction",!0)}if("@propagate"in R){const L=R["@propagate"];if(n.processingMode==="json-ld-1.0")throw new Ao("Invalid JSON-LD syntax; @propagate not compatible with "+n.processingMode,"jsonld.SyntaxError",{code:"invalid context entry",context:R});if(typeof L!="boolean")throw new Ao("Invalid JSON-LD syntax; @propagate value must be a boolean.","jsonld.SyntaxError",{code:"invalid @propagate value",context:r});M.set("@propagate",!0)}if("@import"in R){const L=R["@import"];if(n.processingMode==="json-ld-1.0")throw new Ao("Invalid JSON-LD syntax; @import not compatible with "+n.processingMode,"jsonld.SyntaxError",{code:"invalid context entry",context:R});if(!E0(L))throw new Ao("Invalid JSON-LD syntax; @import must be a string.","jsonld.SyntaxError",{code:"invalid @import value",context:r});const H=await o.contextResolver.resolve({activeCtx:n,context:L,documentLoader:o.documentLoader,base:o.base});if(H.length!==1)throw new Ao("Invalid JSON-LD syntax; @import must reference a single context.","jsonld.SyntaxError",{code:"invalid remote context",context:r});const G=H[0].getProcessed(n);if(G)R=G;else{const j=H[0].document;if("@import"in j)throw new Ao("Invalid JSON-LD syntax: imported context must not include @import.","jsonld.SyntaxError",{code:"invalid context entry",context:r});for(const Q in j)R.hasOwnProperty(Q)||(R[Q]=j[Q]);H[0].setProcessed(n,R)}M.set("@import",!0)}M.set("@protected",R["@protected"]||!1);for(const L in R)if(au.createTermDefinition({activeCtx:A,localCtx:R,term:L,defined:M,options:o,overrideProtected:u}),fT(R[L])&&"@context"in R[L]){const H=R[L]["@context"];let G=!0;if(E0(H)){const j=Cq(o.base,H);d.has(j)?G=!1:d.add(j)}if(G)try{await au.process({activeCtx:A.clone(),localCtx:R[L]["@context"],overrideProtected:!0,options:o,cycles:d})}catch{throw new Ao("Invalid JSON-LD syntax; invalid scoped context.","jsonld.SyntaxError",{code:"invalid scoped context",context:R[L]["@context"],term:L})}}C.setProcessed(n,{context:A,events:w})}return A};au.createTermDefinition=({activeCtx:n,localCtx:r,term:o,defined:l,options:u,overrideProtected:d=!1})=>{if(l.has(o)){if(l.get(o))return;throw new Ao("Cyclical context definition detected.","jsonld.CyclicalContext",{code:"cyclic IRI mapping",context:r,term:o})}l.set(o,!1);let h;if(r.hasOwnProperty(o)&&(h=r[o]),o==="@type"&&fT(h)&&(h["@container"]||"@set")==="@set"&&au.processingMode(n,1.1)){const R=["@container","@id","@protected"],O=Object.keys(h);if(O.length===0||O.some(M=>!R.includes(M)))throw new Ao("Invalid JSON-LD syntax; keywords cannot be overridden.","jsonld.SyntaxError",{code:"keyword redefinition",context:r,term:o})}else{if(au.isKeyword(o))throw new Ao("Invalid JSON-LD syntax; keywords cannot be overridden.","jsonld.SyntaxError",{code:"keyword redefinition",context:r,term:o});if(o.match(lde)){u.eventHandler&&bL({event:{type:["JsonLdEvent"],code:"reserved term",level:"warning",message:'Terms beginning with "@" are reserved for future use and dropped.',details:{term:o}},options:u});return}else if(o==="")throw new Ao("Invalid JSON-LD syntax; a term cannot be an empty string.","jsonld.SyntaxError",{code:"invalid term definition",context:r})}const w=n.mappings.get(o);n.mappings.has(o)&&n.mappings.delete(o);let v=!1;if((E0(h)||h===null)&&(v=!0,h={"@id":h}),!fT(h))throw new Ao("Invalid JSON-LD syntax; @context term values must be strings or objects.","jsonld.SyntaxError",{code:"invalid term definition",context:r});const y={};n.mappings.set(o,y),y.reverse=!1;const E=["@container","@id","@language","@reverse","@type"];au.processingMode(n,1.1)&&E.push("@context","@direction","@index","@nest","@prefix","@protected");for(const R in h)if(!E.includes(R))throw new Ao("Invalid JSON-LD syntax; a term definition must not contain "+R,"jsonld.SyntaxError",{code:"invalid term definition",context:r});const A=o.indexOf(":");if(y._termHasColon=A>0,"@reverse"in h){if("@id"in h)throw new Ao("Invalid JSON-LD syntax; a @reverse term definition must not contain @id.","jsonld.SyntaxError",{code:"invalid reverse property",context:r});if("@nest"in h)throw new Ao("Invalid JSON-LD syntax; a @reverse term definition must not contain @nest.","jsonld.SyntaxError",{code:"invalid reverse property",context:r});const R=h["@reverse"];if(!E0(R))throw new Ao("Invalid JSON-LD syntax; a @context @reverse value must be a string.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:r});if(R.match(lde)){u.eventHandler&&bL({event:{type:["JsonLdEvent"],code:"reserved @reverse value",level:"warning",message:'@reverse values beginning with "@" are reserved for future use and dropped.',details:{reverse:R}},options:u}),w?n.mappings.set(o,w):n.mappings.delete(o);return}const O=UD(n,R,{vocab:!0,base:!1},r,l,u);if(!dP(O))throw new Ao("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:r});y["@id"]=O,y.reverse=!0}else if("@id"in h){let R=h["@id"];if(R&&!E0(R))throw new Ao("Invalid JSON-LD syntax; a @context @id value must be an array of strings or a string.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:r});if(R===null)y["@id"]=null;else if(!au.isKeyword(R)&&R.match(lde)){u.eventHandler&&bL({event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:'@id values beginning with "@" are reserved for future use and dropped.',details:{id:R}},options:u}),w?n.mappings.set(o,w):n.mappings.delete(o);return}else if(R!==o){if(R=UD(n,R,{vocab:!0,base:!1},r,l,u),!dP(R)&&!au.isKeyword(R))throw new Ao("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:r});if(o.match(/(?::[^:])|\//)){const O=new Map(l).set(o,!0);if(UD(n,o,{vocab:!0,base:!1},r,O,u)!==R)throw new Ao("Invalid JSON-LD syntax; term in form of IRI must expand to definition.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:r})}y["@id"]=R,y._prefix=v&&!y._termHasColon&&R.match(/[:\/\?#\[\]@]$/)!==null}}if(!("@id"in y))if(y._termHasColon){const R=o.substr(0,A);if(r.hasOwnProperty(R)&&au.createTermDefinition({activeCtx:n,localCtx:r,term:R,defined:l,options:u}),n.mappings.has(R)){const O=o.substr(A+1);y["@id"]=n.mappings.get(R)["@id"]+O}else y["@id"]=o}else if(o==="@type")y["@id"]=o;else{if(!("@vocab"in n))throw new Ao("Invalid JSON-LD syntax; @context terms must define an @id.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:r,term:o});y["@id"]=n["@vocab"]+o}if((h["@protected"]===!0||l.get("@protected")===!0&&h["@protected"]!==!1)&&(n.protected[o]=!0,y.protected=!0),l.set(o,!0),"@type"in h){let R=h["@type"];if(!E0(R))throw new Ao("Invalid JSON-LD syntax; an @context @type value must be a string.","jsonld.SyntaxError",{code:"invalid type mapping",context:r});if(R==="@json"||R==="@none"){if(au.processingMode(n,1))throw new Ao(`Invalid JSON-LD syntax; an @context @type value must not be "${R}" in JSON-LD 1.0 mode.`,"jsonld.SyntaxError",{code:"invalid type mapping",context:r})}else if(R!=="@id"&&R!=="@vocab"){if(R=UD(n,R,{vocab:!0,base:!1},r,l,u),!dP(R))throw new Ao("Invalid JSON-LD syntax; an @context @type value must be an absolute IRI.","jsonld.SyntaxError",{code:"invalid type mapping",context:r});if(R.indexOf("_:")===0)throw new Ao("Invalid JSON-LD syntax; an @context @type value must be an IRI, not a blank node identifier.","jsonld.SyntaxError",{code:"invalid type mapping",context:r})}y["@type"]=R}if("@container"in h){const R=E0(h["@container"])?[h["@container"]]:h["@container"]||[],O=["@list","@set","@index","@language"];let M=!0;const L=R.includes("@set");if(au.processingMode(n,1.1)){if(O.push("@graph","@id","@type"),R.includes("@list")){if(R.length!==1)throw new Ao("Invalid JSON-LD syntax; @context @container with @list must have no other values","jsonld.SyntaxError",{code:"invalid container mapping",context:r})}else if(R.includes("@graph")){if(R.some(H=>H!=="@graph"&&H!=="@id"&&H!=="@index"&&H!=="@set"))throw new Ao("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:r})}else M&=R.length<=(L?2:1);if(R.includes("@type")&&(y["@type"]=y["@type"]||"@id",!["@id","@vocab"].includes(y["@type"])))throw new Ao("Invalid JSON-LD syntax; container: @type requires @type to be @id or @vocab.","jsonld.SyntaxError",{code:"invalid type mapping",context:r})}else M&=!Ocn(h["@container"]),M&=R.length<=1;if(M&=R.every(H=>O.includes(H)),M&=!(L&&R.includes("@list")),!M)throw new Ao("Invalid JSON-LD syntax; @context @container value must be one of the following: "+O.join(", "),"jsonld.SyntaxError",{code:"invalid container mapping",context:r});if(y.reverse&&!R.every(H=>["@index","@set"].includes(H)))throw new Ao("Invalid JSON-LD syntax; @context @container value for a @reverse type definition must be @index or @set.","jsonld.SyntaxError",{code:"invalid reverse property",context:r});y["@container"]=R}if("@index"in h){if(!("@container"in h)||!y["@container"].includes("@index"))throw new Ao(`Invalid JSON-LD syntax; @index without @index in @container: "${h["@index"]}" on term "${o}".`,"jsonld.SyntaxError",{code:"invalid term definition",context:r});if(!E0(h["@index"])||h["@index"].indexOf("@")===0)throw new Ao(`Invalid JSON-LD syntax; @index must expand to an IRI: "${h["@index"]}" on term "${o}".`,"jsonld.SyntaxError",{code:"invalid term definition",context:r});y["@index"]=h["@index"]}if("@context"in h&&(y["@context"]=h["@context"]),"@language"in h&&!("@type"in h)){let R=h["@language"];if(R!==null&&!E0(R))throw new Ao("Invalid JSON-LD syntax; @context @language value must be a string or null.","jsonld.SyntaxError",{code:"invalid language mapping",context:r});R!==null&&(R=R.toLowerCase()),y["@language"]=R}if("@prefix"in h){if(o.match(/:|\//))throw new Ao("Invalid JSON-LD syntax; @context @prefix used on a compact IRI term","jsonld.SyntaxError",{code:"invalid term definition",context:r});if(au.isKeyword(y["@id"]))throw new Ao("Invalid JSON-LD syntax; keywords may not be used as prefixes","jsonld.SyntaxError",{code:"invalid term definition",context:r});if(typeof h["@prefix"]=="boolean")y._prefix=h["@prefix"]===!0;else throw new Ao("Invalid JSON-LD syntax; @context value for @prefix must be boolean","jsonld.SyntaxError",{code:"invalid @prefix value",context:r})}if("@direction"in h){const R=h["@direction"];if(R!==null&&R!=="ltr"&&R!=="rtl")throw new Ao('Invalid JSON-LD syntax; @direction value must be null, "ltr", or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",context:r});y["@direction"]=R}if("@nest"in h){const R=h["@nest"];if(!E0(R)||R!=="@nest"&&R.indexOf("@")===0)throw new Ao("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:r});y["@nest"]=R}// disallow aliasing @context and @preserve -const C=y["@id"];if(C==="@context"||C==="@preserve")throw new Ao("Invalid JSON-LD syntax; @context and @preserve cannot be aliased.","jsonld.SyntaxError",{code:"invalid keyword alias",context:r});if(w&&w.protected&&!d&&(n.protected[o]=!0,y.protected=!0,!cBe(w,y)))throw new Ao("Invalid JSON-LD syntax; tried to redefine a protected term.","jsonld.SyntaxError",{code:"protected term redefinition",context:r,term:o})};au.expandIri=(n,r,o,l)=>UD(n,r,o,void 0,void 0,l);function UD(n,r,o,l,u,d){if(r===null||!E0(r)||au.isKeyword(r))return r;if(r.match(lde))return null;if(l&&l.hasOwnProperty(r)&&u.get(r)!==!0&&au.createTermDefinition({activeCtx:n,localCtx:l,term:r,defined:u,options:d}),o=o||{},o.vocab){const w=n.mappings.get(r);if(w===null)return null;if(fT(w)&&"@id"in w)return w["@id"]}const h=r.indexOf(":");if(h>0){const w=r.substr(0,h),v=r.substr(h+1);if(w==="_"||v.indexOf("//")===0)return r;l&&l.hasOwnProperty(w)&&au.createTermDefinition({activeCtx:n,localCtx:l,term:w,defined:u,options:d});const y=n.mappings.get(w);if(y&&y._prefix)return y["@id"]+v;if(dP(r))return r}if(o.vocab&&"@vocab"in n)r=n["@vocab"]+r;else if(o.base){let w,v;"@base"in n?n["@base"]?(v=Cq(d.base,n["@base"]),w=Cq(v,r)):(v=n["@base"],w=r):(v=d.base,w=Cq(d.base,r)),r=w}return r}au.getInitialContext=n=>{const r=JSON.stringify({processingMode:n.processingMode}),o=que.get(r);if(o)return o;const l={processingMode:n.processingMode,mappings:new Map,inverse:null,getInverse:u,clone:w,revertToPreviousContext:v,protected:{}};return que.size===T4r&&que.clear(),que.set(r,l),l;function u(){const y=this;if(y.inverse)return y.inverse;const E=y.inverse={},A=y.fastCurieMap={},C={},R=(y["@language"]||"@none").toLowerCase(),O=y["@direction"],M=y.mappings,L=[...M.keys()].sort(A4r);for(const H of L){const G=M.get(H);if(G===null)continue;let j=G["@container"]||"@none";if(j=[].concat(j).sort().join(""),G["@id"]===null)continue;const Q=Ncn(G["@id"]);for(const te of Q){let pe=E[te];const Le=au.isKeyword(te);if(pe)!Le&&!G._termHasColon&&C[te].push(H);else if(E[te]=pe={},!Le&&!G._termHasColon){C[te]=[H];const Ee={iri:te,terms:C[te]};te[0]in A?A[te[0]].push(Ee):A[te[0]]=[Ee]}if(pe[j]||(pe[j]={"@language":{},"@type":{},"@any":{}}),pe=pe[j],h(H,pe["@any"],"@none"),G.reverse)h(H,pe["@type"],"@reverse");else if(G["@type"]==="@none")h(H,pe["@any"],"@none"),h(H,pe["@language"],"@none"),h(H,pe["@type"],"@none");else if("@type"in G)h(H,pe["@type"],G["@type"]);else if("@language"in G&&"@direction"in G){const Ee=G["@language"],le=G["@direction"];Ee&&le?h(H,pe["@language"],`${Ee}_${le}`.toLowerCase()):Ee?h(H,pe["@language"],Ee.toLowerCase()):le?h(H,pe["@language"],`_${le}`):h(H,pe["@language"],"@null")}else"@language"in G?h(H,pe["@language"],(G["@language"]||"@null").toLowerCase()):"@direction"in G?G["@direction"]?h(H,pe["@language"],`_${G["@direction"]}`):h(H,pe["@language"],"@none"):O?(h(H,pe["@language"],`_${O}`),h(H,pe["@language"],"@none"),h(H,pe["@type"],"@none")):(h(H,pe["@language"],R),h(H,pe["@language"],"@none"),h(H,pe["@type"],"@none"))}}for(const H in A)d(A,H,1);return E}function d(y,E,A){const C=y[E],R=y[E]={};let O,M;for(const L of C)O=L.iri,A>=O.length?M="":M=O[A],M in R?R[M].push(L):R[M]=[L];for(const L in R)L!==""&&d(R,L,A+1)}function h(y,E,A){E.hasOwnProperty(A)||(E[A]=y)}function w(){const y={};return y.mappings=WKt.clone(this.mappings),y.clone=this.clone,y.inverse=null,y.getInverse=this.getInverse,y.protected=WKt.clone(this.protected),this.previousContext&&(y.previousContext=this.previousContext.clone()),y.revertToPreviousContext=this.revertToPreviousContext,"@base"in this&&(y["@base"]=this["@base"]),"@language"in this&&(y["@language"]=this["@language"]),"@vocab"in this&&(y["@vocab"]=this["@vocab"]),y}function v(){return this.previousContext?this.previousContext.clone():this}};au.getContextValue=(n,r,o)=>{if(r===null)return o==="@context"?void 0:null;if(n.mappings.has(r)){const l=n.mappings.get(r);if(R4r(o))return l;if(l.hasOwnProperty(o))return l[o]}if(o==="@language"&&o in n||o==="@direction"&&o in n)return n[o];if(o!=="@context")return null};au.processingMode=(n,r)=>r.toString()>="1.1"?!n.processingMode||n.processingMode>="json-ld-"+r.toString():n.processingMode==="json-ld-1.0";au.isKeyword=n=>{if(!E0(n)||n[0]!=="@")return!1;switch(n){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};function cBe(n,r){if(!(n&&typeof n=="object")||!(r&&typeof r=="object"))return n===r;const o=Array.isArray(n);if(o!==Array.isArray(r))return!1;if(o){if(n.length!==r.length)return!1;for(let d=0;d{if(o==null)return null;if(r==="@default"&&(l=Object.assign({},l,{isFrame:!1})),!Yy(o)&&!Vy(o))return!u&&(r===null||Ud(n,r,{vocab:!0},l)==="@graph")?(l.eventHandler&&qy({event:{type:["JsonLdEvent"],code:"free-floating scalar",level:"warning",message:"Dropping free-floating scalar not in a list.",details:{value:o}},options:l}),null):jcn({activeCtx:n,activeProperty:r,value:o,options:l});if(Yy(o)){let O=[];const M=Zw(n,r,"@container")||[];u=u||M.includes("@list");for(let L=0;L1?L.slice().sort():L:[L];for(const G of H){const j=Zw(h,G,"@context");khe(j)||(n=await Aq({activeCtx:n,localCtx:j,options:l,propagate:!1}))}}let C={};await Lcn({activeCtx:n,activeProperty:r,expandedActiveProperty:w,element:o,expandedParent:C,options:l,insideList:u,typeKey:A,typeScopedContext:h}),y=Object.keys(C);let R=y.length;if("@value"in C){if("@type"in C&&("@language"in C||"@direction"in C))throw new ju('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:C});let O=R-1;if("@type"in C&&(O-=1),"@index"in C&&(O-=1),"@language"in C&&(O-=1),"@direction"in C&&(O-=1),O!==0)throw new ju('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:C});const M=C["@value"]===null?[]:uS(C["@value"]),L=O4r(C,"@type");if(!(ade(n,1.1)&&L.includes("@json")&&L.length===1))if(M.length===0)l.eventHandler&&qy({event:{type:["JsonLdEvent"],code:"null @value value",level:"warning",message:"Dropping null @value value.",details:{value:C}},options:l}),C=null;else{if(!M.every(H=>Fb(H)||uBe(H))&&"@language"in C)throw new ju("Invalid JSON-LD syntax; only strings may be language-tagged.","jsonld.SyntaxError",{code:"invalid language-tagged value",element:C});if(!L.every(H=>cde(H)&&!(Fb(H)&&H.indexOf("_:")===0)||uBe(H)))throw new ju('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:C})}}else if("@type"in C&&!Yy(C["@type"]))C["@type"]=[C["@type"]];else if("@set"in C||"@list"in C){if(R>1&&!(R===2&&"@index"in C))throw new ju('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:C});"@set"in C&&(C=C["@set"],y=Object.keys(C),R=y.length)}else R===1&&"@language"in C&&(l.eventHandler&&qy({event:{type:["JsonLdEvent"],code:"object with only @language",level:"warning",message:"Dropping object with only @language.",details:{value:C}},options:l}),C=null);return Vy(C)&&!l.keepFreeFloatingNodes&&!u&&(r===null||w==="@graph"||(Zw(n,r,"@container")||[]).includes("@graph"))&&(C=Dcn({value:C,count:R,options:l})),C};function Dcn({value:n,count:r,options:o}){if(r===0||"@value"in n||"@list"in n||r===1&&"@id"in n){if(o.eventHandler){let l,u;r===0?(l="empty object",u="Dropping empty object."):"@value"in n?(l="object with only @value",u="Dropping object with only @value."):"@list"in n?(l="object with only @list",u="Dropping object with only @list."):r===1&&"@id"in n&&(l="object with only @id",u="Dropping object with only @id."),qy({event:{type:["JsonLdEvent"],code:l,level:"warning",message:u,details:{value:n}},options:o})}return null}return n}async function Lcn({activeCtx:n,activeProperty:r,expandedActiveProperty:o,element:l,expandedParent:u,options:d={},insideList:h,typeKey:w,typeScopedContext:v}){const y=Object.keys(l).sort(),E=[];let A;const C=l[w]&&Ud(n,Yy(l[w])?l[w][0]:l[w],{vocab:!0},{...d,typeExpansion:!0})==="@json";for(const R of y){let O=l[R],M;if(R==="@context")continue;const L=Ud(n,R,{vocab:!0},d);if(L===null||!(cde(L)||dBe(L))){d.eventHandler&&qy({event:{type:["JsonLdEvent"],code:"invalid property",level:"warning",message:"Dropping property that did not expand into an absolute IRI or keyword.",details:{property:R,expandedProperty:L}},options:d});continue}if(dBe(L)){if(o==="@reverse")throw new ju("Invalid JSON-LD syntax; a keyword cannot be used as a @reverse property.","jsonld.SyntaxError",{code:"invalid reverse property map",value:O});if(L in u&&L!=="@included"&&L!=="@type")throw new ju("Invalid JSON-LD syntax; colliding keywords detected.","jsonld.SyntaxError",{code:"colliding keywords",keyword:L})}if(L==="@id"){if(!Fb(O)){if(!d.isFrame)throw new ju('Invalid JSON-LD syntax; "@id" value must a string.',"jsonld.SyntaxError",{code:"invalid @id value",value:O});if(Vy(O)){if(!uBe(O))throw new ju('Invalid JSON-LD syntax; "@id" value an empty object or array of strings, if framing',"jsonld.SyntaxError",{code:"invalid @id value",value:O})}else if(Yy(O)){if(!O.every(Q=>Fb(Q)))throw new ju('Invalid JSON-LD syntax; "@id" value an empty object or array of strings, if framing',"jsonld.SyntaxError",{code:"invalid @id value",value:O})}else throw new ju('Invalid JSON-LD syntax; "@id" value an empty object or array of strings, if framing',"jsonld.SyntaxError",{code:"invalid @id value",value:O})}Yw(u,"@id",uS(O).map(Q=>{if(Fb(Q)){const te=Ud(n,Q,{base:!0},d);return d.eventHandler&&(te===null?qy(Q===null?{event:{type:["JsonLdEvent"],code:"null @id value",level:"warning",message:"Null @id found.",details:{id:Q}},options:d}:{event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:"Reserved @id found.",details:{id:Q}},options:d}):cde(te)||qy({event:{type:["JsonLdEvent"],code:"relative @id reference",level:"warning",message:"Relative @id reference found.",details:{id:Q,expandedId:te}},options:d})),te}return Q}),{propertyIsArray:d.isFrame});continue}if(L==="@type"){Vy(O)&&(O=Object.fromEntries(Object.entries(O).map(([Q,te])=>[Ud(v,Q,{vocab:!0}),uS(te).map(pe=>Ud(v,pe,{base:!0,vocab:!0},{...d,typeExpansion:!0}))]))),N4r(O,d.isFrame),Yw(u,"@type",uS(O).map(Q=>{if(Fb(Q)){const te=Ud(v,Q,{base:!0,vocab:!0},{...d,typeExpansion:!0});return te!=="@json"&&!cde(te)&&d.eventHandler&&qy({event:{type:["JsonLdEvent"],code:"relative @type reference",level:"warning",message:"Relative @type reference found.",details:{type:Q}},options:d}),te}return Q}),{propertyIsArray:!!d.isFrame});continue}if(L==="@included"&&ade(n,1.1)){const Q=uS(await gT.expand({activeCtx:n,activeProperty:r,element:O,options:d}));if(!Q.every(te=>I4r(te)))throw new ju("Invalid JSON-LD syntax; values of @included must expand to node objects.","jsonld.SyntaxError",{code:"invalid @included value",value:O});Yw(u,"@included",Q,{propertyIsArray:!0});continue}if(L==="@graph"&&!(Vy(O)||Yy(O)))throw new ju('Invalid JSON-LD syntax; "@graph" value must not be an object or an array.',"jsonld.SyntaxError",{code:"invalid @graph value",value:O});if(L==="@value"){A=O,C&&ade(n,1.1)?u["@value"]=O:Yw(u,"@value",O,{propertyIsArray:d.isFrame});continue}if(L==="@language"){if(O===null)continue;if(!Fb(O)&&!d.isFrame)throw new ju('Invalid JSON-LD syntax; "@language" value must be a string.',"jsonld.SyntaxError",{code:"invalid language-tagged string",value:O});O=uS(O).map(Q=>Fb(Q)?Q.toLowerCase():Q);for(const Q of O)Fb(Q)&&!Q.match(Mcn)&&d.eventHandler&&qy({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:Q}},options:d});Yw(u,"@language",O,{propertyIsArray:d.isFrame});continue}if(L==="@direction"){if(!Fb(O)&&!d.isFrame)throw new ju('Invalid JSON-LD syntax; "@direction" value must be a string.',"jsonld.SyntaxError",{code:"invalid base direction",value:O});O=uS(O);for(const Q of O)if(Fb(Q)&&Q!=="ltr"&&Q!=="rtl")throw new ju('Invalid JSON-LD syntax; "@direction" must be "ltr" or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",value:O});Yw(u,"@direction",O,{propertyIsArray:d.isFrame});continue}if(L==="@index"){if(!Fb(O))throw new ju('Invalid JSON-LD syntax; "@index" value must be a string.',"jsonld.SyntaxError",{code:"invalid @index value",value:O});Yw(u,"@index",O);continue}if(L==="@reverse"){if(!Vy(O))throw new ju('Invalid JSON-LD syntax; "@reverse" value must be an object.',"jsonld.SyntaxError",{code:"invalid @reverse value",value:O});if(M=await gT.expand({activeCtx:n,activeProperty:"@reverse",element:O,options:d}),"@reverse"in M)for(const te in M["@reverse"])Yw(u,te,M["@reverse"][te],{propertyIsArray:!0});let Q=u["@reverse"]||null;for(const te in M){if(te==="@reverse")continue;Q===null&&(Q=u["@reverse"]={}),Yw(Q,te,[],{propertyIsArray:!0});const pe=M[te];for(let Le=0;LeQ==="@id"||Q==="@index")){if(M=uS(M),d.isFrame||(M=M.filter(Q=>{const te=Object.keys(Q).length;return Dcn({value:Q,count:te,options:d})!==null})),M.length===0)continue;M=M.map(Q=>({"@graph":uS(Q)}))}if(H.mappings.has(R)&&H.mappings.get(R).reverse){const Q=u["@reverse"]=u["@reverse"]||{};M=uS(M);for(let te=0;teUd(n,L,{vocab:!0},d)==="@value"))throw new ju("Invalid JSON-LD syntax; nested value must be a node object.","jsonld.SyntaxError",{code:"invalid @nest value",value:M});await Lcn({activeCtx:n,activeProperty:r,expandedActiveProperty:o,element:M,expandedParent:u,options:d,insideList:h,typeScopedContext:v,typeKey:w})}}}function jcn({activeCtx:n,activeProperty:r,value:o,options:l}){if(o==null)return null;const u=Ud(n,r,{vocab:!0},l);if(u==="@id")return Ud(n,o,{base:!0},l);if(u==="@type")return Ud(n,o,{vocab:!0,base:!0},{...l,typeExpansion:!0});const d=Zw(n,r,"@type");if((d==="@id"||u==="@graph")&&Fb(o)){const w=Ud(n,o,{base:!0},l);return w===null&&o.match(P4r)&&l.eventHandler&&qy({event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:"Reserved @id found.",details:{id:r}},options:l}),{"@id":w}}if(d==="@vocab"&&Fb(o))return{"@id":Ud(n,o,{vocab:!0,base:!0},l)};if(dBe(u))return o;const h={};if(d&&!["@id","@vocab","@none"].includes(d))h["@type"]=d;else if(Fb(o)){const w=Zw(n,r,"@language");w!==null&&(h["@language"]=w);const v=Zw(n,r,"@direction");v!==null&&(h["@direction"]=v)}return["boolean","number","string"].includes(typeof o)||(o=o.toString()),h["@value"]=o,h}function D4r(n,r,o,l){const u=[],d=Object.keys(r).sort();for(const h of d){const w=Ud(n,h,{vocab:!0},l);let v=r[h];Yy(v)||(v=[v]);for(const y of v){if(y===null)continue;if(!Fb(y))throw new ju("Invalid JSON-LD syntax; language map values must be strings.","jsonld.SyntaxError",{code:"invalid language map value",languageMap:r});const E={"@value":y};w!=="@none"&&(h.match(Mcn)||l.eventHandler&&qy({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:h}},options:l}),E["@language"]=h.toLowerCase()),o&&(E["@direction"]=o),u.push(E)}}return u}async function Y9e({activeCtx:n,options:r,activeProperty:o,value:l,asGraph:u,indexKey:d,propertyIndex:h}){const w=[],v=Object.keys(l).sort(),y=d==="@type";for(let E of v){if(y){const R=Zw(n,E,"@context");khe(R)||(n=await Aq({activeCtx:n,localCtx:R,propagate:!1,options:r}))}let A=l[E];Yy(A)||(A=[A]),A=await gT.expand({activeCtx:n,activeProperty:o,element:A,options:r,insideList:!1,insideIndex:!0});let C;h?E==="@none"?C="@none":C=jcn({activeCtx:n,activeProperty:d,value:E,options:r}):C=Ud(n,E,{vocab:!0},r),d==="@id"?E=Ud(n,E,{base:!0},r):y&&(E=C);for(let R of A){if(u&&!$4r(R)&&(R={"@graph":[R]}),d==="@type")C==="@none"||(R["@type"]?R["@type"]=[E].concat(R["@type"]):R["@type"]=[E]);else{if(fBe(R)&&!["@language","@type","@index"].includes(d))throw new ju(`Invalid JSON-LD syntax; Attempt to add illegal key to value object: "${d}".`,"jsonld.SyntaxError",{code:"invalid value object",value:R});h?C!=="@none"&&Yw(R,h,C,{propertyIsArray:!0,prependValue:!0}):C!=="@none"&&!(d in R)&&(R[d]=E)}w.push(R)}}return w}const{isKeyword:Fcn}=_O,AE=Ox,Q9e=um,LE=Sv,L4r=_v,e1={};var Fge=e1;e1.createMergedNodeMap=(n,r)=>{r=r||{};const o=r.issuer||new LE.IdentifierIssuer("_:b"),l={"@default":{}};return e1.createNodeMap(n,l,"@default",o),e1.mergeNodeMaps(l)};e1.createNodeMap=(n,r,o,l,u,d)=>{if(Q9e.isArray(n)){for(const y of n)e1.createNodeMap(y,r,o,l,void 0,d);return}if(!Q9e.isObject(n)){d&&d.push(n);return}if(AE.isValue(n)){if("@type"in n){let y=n["@type"];y.indexOf("_:")===0&&(n["@type"]=y=l.getId(y))}d&&d.push(n);return}else if(d&&AE.isList(n)){const y=[];e1.createNodeMap(n["@list"],r,o,l,u,y),d.push({"@list":y});return}if("@type"in n){const y=n["@type"];for(const E of y)E.indexOf("_:")===0&&l.getId(E)}Q9e.isUndefined(u)&&(u=AE.isBlankNode(n)?l.getId(n["@id"]):n["@id"]),d&&d.push({"@id":u});const h=r[o],w=h[u]=h[u]||{};w["@id"]=u;const v=Object.keys(n).sort();for(let y of v){if(y==="@id")continue;if(y==="@reverse"){const A={"@id":u},C=n["@reverse"];for(const R in C){const O=C[R];for(const M of O){let L=M["@id"];AE.isBlankNode(M)&&(L=l.getId(L)),e1.createNodeMap(M,r,o,l,L),LE.addValue(h[L],R,A,{propertyIsArray:!0,allowDuplicate:!1})}}continue}if(y==="@graph"){u in r||(r[u]={}),e1.createNodeMap(n[y],r,u,l);continue}if(y==="@included"){e1.createNodeMap(n[y],r,o,l);continue}if(y!=="@type"&&Fcn(y)){if(y==="@index"&&y in w&&(n[y]!==w[y]||n[y]["@id"]!==w[y]["@id"]))throw new L4r("Invalid JSON-LD syntax; conflicting @index property detected.","jsonld.SyntaxError",{code:"conflicting indexes",subject:w});w[y]=n[y];continue}const E=n[y];if(y.indexOf("_:")===0&&(y=l.getId(y)),E.length===0){LE.addValue(w,y,[],{propertyIsArray:!0});continue}for(let A of E)if(y==="@type"&&(A=A.indexOf("_:")===0?l.getId(A):A),AE.isSubject(A)||AE.isSubjectReference(A)){if("@id"in A&&!A["@id"])continue;const C=AE.isBlankNode(A)?l.getId(A["@id"]):A["@id"];LE.addValue(w,y,{"@id":C},{propertyIsArray:!0,allowDuplicate:!1}),e1.createNodeMap(A,r,o,l,C)}else if(AE.isValue(A))LE.addValue(w,y,A,{propertyIsArray:!0,allowDuplicate:!1});else if(AE.isList(A)){const C=[];e1.createNodeMap(A["@list"],r,o,l,u,C),A={"@list":C},LE.addValue(w,y,A,{propertyIsArray:!0,allowDuplicate:!1})}else e1.createNodeMap(A,r,o,l,u),LE.addValue(w,y,A,{propertyIsArray:!0,allowDuplicate:!1})}};e1.mergeNodeMapGraphs=n=>{const r={};for(const o of Object.keys(n).sort())for(const l of Object.keys(n[o]).sort()){const u=n[o][l];l in r||(r[l]={"@id":l});const d=r[l];for(const h of Object.keys(u).sort())if(Fcn(h)&&h!=="@type")d[h]=LE.clone(u[h]);else for(const w of u[h])LE.addValue(d,h,LE.clone(w),{propertyIsArray:!0,allowDuplicate:!1})}return r};e1.mergeNodeMaps=n=>{const r=n["@default"],o=Object.keys(n).sort();for(const l of o){if(l==="@default")continue;const u=n[l];let d=r[l];d?"@graph"in d||(d["@graph"]=[]):r[l]=d={"@id":l,"@graph":[]};const h=d["@graph"];for(const w of Object.keys(u).sort()){const v=u[w];AE.isSubjectReference(v)||h.push(v)}}return r};const{isSubjectReference:j4r}=Ox,{createMergedNodeMap:F4r}=Fge,Bcn={};var B4r=Bcn;Bcn.flatten=n=>{const r=F4r(n),o=[],l=Object.keys(r).sort();for(let u=0;u{const{useRdfType:o=!1,useNativeTypes:l=!1,rdfDirection:u=null}=r,d={},h={"@default":d},w={};if(u){if(u==="compound-literal")throw new hBe("Unsupported rdfDirection value.","jsonld.InvalidRdfDirection",{value:u});if(u!=="i18n-datatype")throw new hBe("Unknown rdfDirection value.","jsonld.InvalidRdfDirection",{value:u})}for(const E of n){const A=E.graph.termType==="DefaultGraph"?"@default":E.graph.value;A in h||(h[A]={}),A!=="@default"&&!(A in d)&&(d[A]={"@id":A});const C=h[A],R=E.subject.value,O=E.predicate.value,M=E.object;R in C||(C[R]={"@id":R});const L=C[R],H=M.termType.endsWith("Node");if(H&&!(M.value in C)&&(C[M.value]={"@id":M.value}),O===H4r&&!o&&H){UKt(L,"@type",M.value,{propertyIsArray:!0});continue}const G=V4r(M,l,u,r);if(UKt(L,O,G,{propertyIsArray:!0}),H)if(M.value===nDe){const j=C[M.value];"usages"in j||(j.usages=[]),j.usages.push({node:L,property:O,value:G})}else M.value in w?w[M.value]=!1:w[M.value]={node:L,property:O,value:G}}for(const E in h){const A=h[E];if(!(nDe in A))continue;const C=A[nDe];if(C.usages){for(let R of C.usages){let O=R.node,M=R.property,L=R.value;const H=[],G=[];let j=Object.keys(O).length;for(;M===tDe&&BK.isObject(w[O["@id"]])&&BK.isArray(O[eDe])&&O[eDe].length===1&&BK.isArray(O[tDe])&&O[tDe].length===1&&(j===3||j===4&&BK.isArray(O["@type"])&&O["@type"].length===1&&O["@type"][0]===W4r)&&(H.push(O[eDe][0]),G.push(O["@id"]),R=w[O["@id"]],O=R.node,M=R.property,L=R.value,j=Object.keys(O).length,!!Z9e.isBlankNode(O)););delete L["@id"],L["@list"]=H.reverse();for(const Q of G)delete A[Q]}delete C.usages}}const v=[],y=Object.keys(d).sort();for(const E of y){const A=d[E];if(E in h){const C=A["@graph"]=[],R=h[E],O=Object.keys(R).sort();for(const M of O){const L=R[M];Z9e.isSubjectReference(L)||C.push(L)}}Z9e.isSubjectReference(A)||v.push(A)}return v};function V4r(n,r,o,l){if(n.termType.endsWith("Node"))return{"@id":n.value};const u={"@value":n.value};if(n.language)n.language.match(HKt)||l.eventHandler&&GKt({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:n.language}},options:l}),u["@language"]=n.language;else{let d=n.datatype.value;if(d||(d=rDe),d===U4r){d="@json";try{u["@value"]=JSON.parse(u["@value"])}catch(h){throw new hBe("JSON literal could not be parsed.","jsonld.InvalidJsonLiteral",{code:"invalid JSON literal",value:u["@value"],cause:h})}}if(r){if(d===VKt)u["@value"]==="true"?u["@value"]=!0:u["@value"]==="false"&&(u["@value"]=!1);else if(BK.isNumeric(u["@value"]))if(d===KKt){const h=parseInt(u["@value"],10);h.toFixed(0)===u["@value"]&&(u["@value"]=h)}else d===zKt&&(u["@value"]=parseFloat(u["@value"]));[VKt,KKt,zKt,rDe].includes(d)||(u["@type"]=d)}else if(o==="i18n-datatype"&&d.startsWith("https://www.w3.org/ns/i18n#")){const[,h,w]=d.split(/[#_]/);h.length>0&&(u["@language"]=h,h.match(HKt)||l.eventHandler&&GKt({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:h}},options:l})),u["@direction"]=w}else d!==rDe&&(u["@type"]=d)}return u}const{createNodeMap:z4r}=Fge,{isKeyword:K4r}=_O,qKt=Ox,q4r=pin,XKt=_v,bK=um,X4r=Sv,{handleEvent:hP}=LJ,{RDF_FIRST:J4r,RDF_REST:Y4r,RDF_NIL:Q4r,RDF_TYPE:Z4r,RDF_JSON_LITERAL:eTr,RDF_LANGSTRING:tTr,XSD_BOOLEAN:nTr,XSD_DOUBLE:JKt,XSD_INTEGER:rTr,XSD_STRING:iTr}=VGe,{isAbsolute:Rhe}=zT,Hcn={};var oTr=Hcn;Hcn.toRDF=(n,r)=>{const o=new X4r.IdentifierIssuer("_:b"),l={"@default":{}};z4r(n,l,"@default",o);const u=[],d=Object.keys(l).sort();for(const h of d){let w;if(h==="@default")w={termType:"DefaultGraph",value:""};else if(Rhe(h))h.startsWith("_:")?w={termType:"BlankNode"}:w={termType:"NamedNode"},w.value=h;else{r.eventHandler&&hP({event:{type:["JsonLdEvent"],code:"relative graph reference",level:"warning",message:"Relative graph reference found.",details:{graph:h}},options:r});continue}sTr(u,l[h],w,o,r)}return u};function sTr(n,r,o,l,u){const d=Object.keys(r).sort();for(const h of d){const w=r[h],v=Object.keys(w).sort();for(let y of v){const E=w[y];if(y==="@type")y=Z4r;else if(K4r(y))continue;for(const A of E){const C={termType:h.startsWith("_:")?"BlankNode":"NamedNode",value:h};if(!Rhe(h)){u.eventHandler&&hP({event:{type:["JsonLdEvent"],code:"relative subject reference",level:"warning",message:"Relative subject reference found.",details:{subject:h}},options:u});continue}const R={termType:y.startsWith("_:")?"BlankNode":"NamedNode",value:y};if(!Rhe(y)){u.eventHandler&&hP({event:{type:["JsonLdEvent"],code:"relative predicate reference",level:"warning",message:"Relative predicate reference found.",details:{predicate:y}},options:u});continue}if(R.termType==="BlankNode"&&!u.produceGeneralizedRdf){u.eventHandler&&hP({event:{type:["JsonLdEvent"],code:"blank node predicate",level:"warning",message:"Dropping blank node predicate.",details:{property:l.getOldIds().find(M=>l.getId(M)===y)}},options:u});continue}const O=pBe(A,l,n,o,u.rdfDirection,u);O&&n.push({subject:C,predicate:R,object:O,graph:o})}}}}function lTr(n,r,o,l,u,d){const h={termType:"NamedNode",value:J4r},w={termType:"NamedNode",value:Y4r},v={termType:"NamedNode",value:Q4r},y=n.pop(),E=y?{termType:"BlankNode",value:r.getId()}:v;let A=E;for(const C of n){const R=pBe(C,r,o,l,u,d),O={termType:"BlankNode",value:r.getId()};o.push({subject:A,predicate:h,object:R,graph:l}),o.push({subject:A,predicate:w,object:O,graph:l}),A=O}if(y){const C=pBe(y,r,o,l,u,d);o.push({subject:A,predicate:h,object:C,graph:l}),o.push({subject:A,predicate:w,object:v,graph:l})}return E}function pBe(n,r,o,l,u,d){const h={};if(qKt.isValue(n)){h.termType="Literal",h.value=void 0,h.datatype={termType:"NamedNode"};let w=n["@value"];const v=n["@type"]||null;if(v==="@json")h.value=q4r(w),h.datatype.value=eTr;else if(bK.isBoolean(w))h.value=w.toString(),h.datatype.value=v||nTr;else if(bK.isDouble(w)||v===JKt)bK.isDouble(w)||(w=parseFloat(w)),h.value=w.toExponential(15).replace(/(\d)0*e\+?/,"$1E"),h.datatype.value=v||JKt;else if(bK.isNumber(w))h.value=w.toFixed(0),h.datatype.value=v||rTr;else if("@direction"in n&&u==="i18n-datatype"){const y=(n["@language"]||"").toLowerCase(),E=n["@direction"],A=`https://www.w3.org/ns/i18n#${y}_${E}`;h.datatype.value=A,h.value=w}else{if("@direction"in n&&u==="compound-literal")throw new XKt("Unsupported rdfDirection value.","jsonld.InvalidRdfDirection",{value:u});if("@direction"in n&&u)throw new XKt("Unknown rdfDirection value.","jsonld.InvalidRdfDirection",{value:u});"@language"in n?("@direction"in n&&!u&&d.eventHandler&&hP({event:{type:["JsonLdEvent"],code:"rdfDirection not set",level:"warning",message:"rdfDirection not set for @direction.",details:{object:h.value}},options:d}),h.value=w,h.datatype.value=v||tTr,h.language=n["@language"]):("@direction"in n&&!u&&d.eventHandler&&hP({event:{type:["JsonLdEvent"],code:"rdfDirection not set",level:"warning",message:"rdfDirection not set for @direction.",details:{object:h.value}},options:d}),h.value=w,h.datatype.value=v||iTr)}}else if(qKt.isList(n)){const w=lTr(n["@list"],r,o,l,u,d);h.termType=w.termType,h.value=w.value}else{const w=bK.isObject(n)?n["@id"]:n;h.termType=w.startsWith("_:")?"BlankNode":"NamedNode",h.value=w}return h.termType==="NamedNode"&&!Rhe(h.value)?(d.eventHandler&&hP({event:{type:["JsonLdEvent"],code:"relative object reference",level:"warning",message:"Relative object reference found.",details:{object:h.value}},options:d}),null):h}const{isKeyword:bBe}=_O,Ky=Ox,jc=um,fp=Sv,YKt=zT,Tq=_v,{createNodeMap:aTr,mergeNodeMapGraphs:cTr}=Fge,Xy={};var uTr=Xy;Xy.frameMergedOrDefault=(n,r,o)=>{const l={options:o,embedded:!1,graph:"@default",graphMap:{"@default":{}},subjectStack:[],link:{},bnodeMap:{}},u=new fp.IdentifierIssuer("_:b");aTr(n,l.graphMap,"@default",u),o.merged&&(l.graphMap["@merged"]=cTr(l.graphMap),l.graph="@merged"),l.subjects=l.graphMap[l.graph];const d=[];Xy.frame(l,Object.keys(l.subjects).sort(),r,d),o.pruneBlankNodeIdentifiers&&(o.bnodesToClear=Object.keys(l.bnodeMap).filter(h=>l.bnodeMap[h].length===1));// remove @preserve from results -return o.link={},ude(d,o)};Xy.frame=(n,r,o,l,u=null)=>{Ucn(o),o=o[0];const d=n.options,h={embed:Xue(o,d,"embed"),explicit:Xue(o,d,"explicit"),requireAll:Xue(o,d,"requireAll")};n.link.hasOwnProperty(n.graph)||(n.link[n.graph]={});const w=n.link[n.graph],v=dTr(n,r,o,h),y=Object.keys(v).sort();for(const E of y){const A=v[E];if(u===null?n.uniqueEmbeds={[n.graph]:{}}:n.uniqueEmbeds[n.graph]=n.uniqueEmbeds[n.graph]||{},h.embed==="@link"&&E in w){h8(l,u,w[E]);continue}const C={"@id":E};if(E.indexOf("_:")===0&&fp.addValue(n.bnodeMap,E,C,{propertyIsArray:!0}),w[E]=C,(h.embed==="@first"||h.embed==="@last")&&n.is11)throw new Tq("Invalid JSON-LD syntax; invalid value of @embed.","jsonld.SyntaxError",{code:"invalid @embed value",frame:o});if(!(!n.embedded&&n.uniqueEmbeds[n.graph].hasOwnProperty(E))){if(n.embedded&&(h.embed==="@never"||fTr(A,n.graph,n.subjectStack))){h8(l,u,C);continue}if(n.embedded&&(h.embed=="@first"||h.embed=="@once")&&n.uniqueEmbeds[n.graph].hasOwnProperty(E)){h8(l,u,C);continue}if(h.embed==="@last"&&E in n.uniqueEmbeds[n.graph]&&hTr(n,E),n.uniqueEmbeds[n.graph][E]={parent:l,property:u},n.subjectStack.push({subject:A,graph:n.graph}),E in n.graphMap){let R=!1,O=null;"@graph"in o?(O=o["@graph"][0],R=!(E==="@merged"||E==="@default"),jc.isObject(O)||(O={})):(R=n.graph!=="@merged",O={}),R&&Xy.frame({...n,graph:E,embedded:!1},Object.keys(n.graphMap[E]).sort(),[O],C,"@graph")}"@included"in o&&Xy.frame({...n,embedded:!1},r,o["@included"],C,"@included");for(const R of Object.keys(A).sort()){if(bBe(R)){if(C[R]=fp.clone(A[R]),R==="@type")for(const O of A["@type"])O.indexOf("_:")===0&&fp.addValue(n.bnodeMap,O,C,{propertyIsArray:!0});continue}if(!(h.explicit&&!(R in o)))for(const O of A[R]){const M=R in o?o[R]:QKt(h);if(Ky.isList(O)){const L=o[R]&&o[R][0]&&o[R][0]["@list"]?o[R][0]["@list"]:QKt(h),H={"@list":[]};h8(C,R,H);const G=O["@list"];for(const j of G)Ky.isSubjectReference(j)?Xy.frame({...n,embedded:!0},[j["@id"]],L,H,"@list"):h8(H,"@list",fp.clone(j))}else Ky.isSubjectReference(O)?Xy.frame({...n,embedded:!0},[O["@id"]],M,C,R):gBe(M[0],O)&&h8(C,R,fp.clone(O))}}for(const R of Object.keys(o).sort()){if(R==="@type"){if(!jc.isObject(o[R][0])||!("@default"in o[R][0]))continue}else if(bBe(R))continue;const O=o[R][0]||{};if(!Xue(O,d,"omitDefault")&&!(R in C)){let L="@null";"@default"in O&&(L=fp.clone(O["@default"])),jc.isArray(L)||(L=[L]),C[R]=[{"@preserve":L}]}}for(const R of Object.keys(o["@reverse"]||{}).sort()){const O=o["@reverse"][R];for(const M of Object.keys(n.subjects))fp.getValues(n.subjects[M],R).some(H=>H["@id"]===E)&&(C["@reverse"]=C["@reverse"]||{},fp.addValue(C["@reverse"],R,[],{propertyIsArray:!0}),Xy.frame({...n,embedded:!0},[M],O,C["@reverse"][R],u))}h8(l,u,C),n.subjectStack.pop()}}};Xy.cleanupNull=(n,r)=>{if(jc.isArray(n))return n.map(l=>Xy.cleanupNull(l,r)).filter(l=>l);if(n==="@null")return null;if(jc.isObject(n)){if("@id"in n){const o=n["@id"];if(r.link.hasOwnProperty(o)){const l=r.link[o].indexOf(n);if(l!==-1)return r.link[o][l];r.link[o].push(n)}else r.link[o]=[n]}for(const o in n)n[o]=Xy.cleanupNull(n[o],r)}return n};function QKt(n){const r={};for(const o in n)n[o]!==void 0&&(r["@"+o]=[n[o]]);return[r]}function fTr(n,r,o){for(let l=o.length-1;l>=0;--l){const u=o[l];if(u.graph===r&&u.subject["@id"]===n["@id"])return!0}return!1}function Xue(n,r,o){const l="@"+o;let u=l in n?n[l][0]:r[o];if(o==="embed"){if(u===!0)u="@once";else if(u===!1)u="@never";else if(u!=="@always"&&u!=="@never"&&u!=="@link"&&u!=="@first"&&u!=="@last"&&u!=="@once")throw new Tq("Invalid JSON-LD syntax; invalid value of @embed.","jsonld.SyntaxError",{code:"invalid @embed value",frame:n})}return u}function Ucn(n){if(!jc.isArray(n)||n.length!==1||!jc.isObject(n[0]))throw new Tq("Invalid JSON-LD syntax; a JSON-LD frame must be a single object.","jsonld.SyntaxError",{frame:n});if("@id"in n[0]){for(const r of fp.asArray(n[0]["@id"]))if(!(jc.isObject(r)||YKt.isAbsolute(r))||jc.isString(r)&&r.indexOf("_:")===0)throw new Tq("Invalid JSON-LD syntax; invalid @id in frame.","jsonld.SyntaxError",{code:"invalid frame",frame:n})}if("@type"in n[0]){for(const r of fp.asArray(n[0]["@type"]))if(!(jc.isObject(r)||YKt.isAbsolute(r)||r==="@json")||jc.isString(r)&&r.indexOf("_:")===0)throw new Tq("Invalid JSON-LD syntax; invalid @type in frame.","jsonld.SyntaxError",{code:"invalid frame",frame:n})}}function dTr(n,r,o,l){const u={};for(const d of r){const h=n.graphMap[n.graph][d];Gcn(n,h,o,l)&&(u[d]=h)}return u}function Gcn(n,r,o,l){let u=!0,d=!1;for(const h in o){let w=!1;const v=fp.getValues(r,h),y=fp.getValues(o,h).length===0;if(h==="@id"){if(jc.isEmptyObject(o["@id"][0]||{})?w=!0:o["@id"].length>=0&&(w=o["@id"].includes(v[0])),!l.requireAll)return w}else if(h==="@type"){if(u=!1,y){if(v.length>0)return!1;w=!0}else if(o["@type"].length===1&&jc.isEmptyObject(o["@type"][0]))w=v.length>0;else for(const E of o["@type"])jc.isObject(E)&&"@default"in E?w=!0:w=w||v.some(A=>A===E);if(!l.requireAll)return w}else{if(bBe(h))continue;{const E=fp.getValues(o,h)[0];let A=!1;if(E&&(Ucn([E]),A="@default"in E),u=!1,v.length===0&&A)continue;if(v.length>0&&y)return!1;if(E===void 0){if(v.length>0)return!1;w=!0}else if(Ky.isList(E)){const C=E["@list"][0];if(Ky.isList(v[0])){const R=v[0]["@list"];Ky.isValue(C)?w=R.some(O=>gBe(C,O)):(Ky.isSubject(C)||Ky.isSubjectReference(C))&&(w=R.some(O=>ZKt(n,C,O,l)))}}else Ky.isValue(E)?w=v.some(C=>gBe(E,C)):Ky.isSubjectReference(E)?w=v.some(C=>ZKt(n,E,C,l)):jc.isObject(E)?w=v.length>0:w=!1}}if(!w&&l.requireAll)return!1;d=d||w}return u||d}function hTr(n,r){const o=n.uniqueEmbeds[n.graph],l=o[r],u=l.parent,d=l.property,h={"@id":r};if(jc.isArray(u)){for(let v=0;v{const y=Object.keys(o);for(const E of y)E in o&&jc.isObject(o[E].parent)&&o[E].parent["@id"]===v&&(delete o[E],w(E))};w(r)}/** + */const s4r=Zpe,l4r=bUe;var a4r=class extends l4r{constructor(){super(),this.name="URGNA2012",this.createMessageDigest=()=>new s4r("sha1")}modifyFirstDegreeComponent(r,o,l){return o.termType!=="BlankNode"?o:l==="graph"?{termType:"BlankNode",value:"_:g"}:{termType:"BlankNode",value:o.value===r?"_:a":"_:z"}}getRelatedPredicate(r){return r.predicate.value}createHashToRelated(r,o){const l=new Map,u=this.blankNodeInfo.get(r).quads;for(const d of u){let h,w;if(d.subject.termType==="BlankNode"&&d.subject.value!==r)w=d.subject.value,h="p";else if(d.object.termType==="BlankNode"&&d.object.value!==r)w=d.object.value,h="r";else continue;const v=this.hashRelatedBlankNode(w,d,o,h),y=l.get(v);y?y.push(w):l.set(v,[w])}return l}};(function(n){const r=Mcn,o=o4r,l=bUe,u=a4r;let d;try{d=xpe}catch{}function h(w){return Array.isArray(w)?w:n.NQuads.legacyDatasetToQuads(w)}n.NQuads=pUe,n.IdentifierIssuer=hUe,n._rdfCanonizeNative=function(w){return w&&(d=w),d},n.canonize=async function(w,v){const y=h(w);if(v.useNative){if(!d)throw new Error("rdf-canonize-native not available");if(v.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "useNative".');return new Promise((E,A)=>d.canonize(y,v,(C,R)=>C?A(C):E(R)))}if(v.algorithm==="URDNA2015")return new r(v).main(y);if(v.algorithm==="URGNA2012"){if(v.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "URGNA2012".');return new o(v).main(y)}throw"algorithm"in v?new Error("Invalid RDF Dataset Canonicalization algorithm: "+v.algorithm):new Error("No RDF Dataset Canonicalization algorithm specified.")},n._canonizeSync=function(w,v){const y=h(w);if(v.useNative){if(!d)throw new Error("rdf-canonize-native not available");if(v.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "useNative".');return d.canonizeSync(y,v)}if(v.algorithm==="URDNA2015")return new l(v).main(y);if(v.algorithm==="URGNA2012"){if(v.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "URGNA2012".');return new u(v).main(y)}throw"algorithm"in v?new Error("Invalid RDF Dataset Canonicalization algorithm: "+v.algorithm):new Error("No RDF Dataset Canonicalization algorithm specified.")}})(Ncn);var JGe=Ncn;const lv={};var cm=lv;lv.isArray=Array.isArray;lv.isBoolean=n=>typeof n=="boolean"||Object.prototype.toString.call(n)==="[object Boolean]";lv.isDouble=n=>lv.isNumber(n)&&(String(n).indexOf(".")!==-1||Math.abs(n)>=1e21);lv.isEmptyObject=n=>lv.isObject(n)&&Object.keys(n).length===0;lv.isNumber=n=>typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]";lv.isNumeric=n=>!isNaN(parseFloat(n))&&isFinite(n);lv.isObject=n=>Object.prototype.toString.call(n)==="[object Object]";lv.isString=n=>typeof n=="string"||Object.prototype.toString.call(n)==="[object String]";lv.isUndefined=n=>typeof n>"u";const OP=cm,bx={};var Ox=bx;bx.isSubject=n=>OP.isObject(n)&&!("@value"in n||"@set"in n||"@list"in n)?Object.keys(n).length>1||!("@id"in n):!1;bx.isSubjectReference=n=>OP.isObject(n)&&Object.keys(n).length===1&&"@id"in n;bx.isValue=n=>OP.isObject(n)&&"@value"in n;bx.isList=n=>OP.isObject(n)&&"@list"in n;bx.isGraph=n=>OP.isObject(n)&&"@graph"in n&&Object.keys(n).filter(r=>r!=="@id"&&r!=="@index").length===1;bx.isSimpleGraph=n=>bx.isGraph(n)&&!("@id"in n);bx.isBlankNode=n=>{if(OP.isObject(n)){if("@id"in n){const r=n["@id"];return!OP.isString(r)||r.indexOf("_:")===0}return Object.keys(n).length===0||!("@value"in n||"@set"in n||"@list"in n)}return!1};var _v=class extends Error{constructor(r="An unspecified JSON-LD error occurred.",o="jsonld.Error",l={}){super(r),this.name=o,this.message=r,this.details=l}};const kX=Ox,Hb=cm,Dcn=JGe.IdentifierIssuer,c4r=_v,u4r=/^[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*$/,f4r=/(?:<[^>]*?>|"[^"]*?"|[^,])+/g,d4r=/\s*<([^>]*?)>\s*(?:;\s*(.*))?/,h4r=/(.*?)=(?:(?:"([^"]*?)")|([^"]*?))\s*(?:(?:;\s*)|$)/g,p4r=/^@[a-zA-Z]+$/,WKt={headers:{accept:"application/ld+json, application/json"}},Ia={};var Sv=Ia;Ia.IdentifierIssuer=Dcn;Ia.REGEX_BCP47=u4r;Ia.REGEX_KEYWORD=p4r;Ia.clone=function(n){if(n&&typeof n=="object"){let r;if(Hb.isArray(n)){r=[];for(let o=0;o{if(Object.keys(n).some(o=>o.toLowerCase()==="accept"))throw new RangeError('Accept header may not be specified; only "'+WKt.headers.accept+'" is supported.');return Object.assign({Accept:WKt.headers.accept},n)};Ia.parseLinkHeader=n=>{const r={},o=n.match(f4r);for(let l=0;l{if(!Hb.isString(n)&&!(Hb.isArray(n)&&n.every(o=>Hb.isString(o)))){if(r&&Hb.isObject(n))switch(Object.keys(n).length){case 0:return;case 1:if("@default"in n&&Ia.asArray(n["@default"]).every(o=>Hb.isString(o)))return}throw new c4r('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:n})}};Ia.hasProperty=(n,r)=>{if(n.hasOwnProperty(r)){const o=n[r];return!Hb.isArray(o)||o.length>0}return!1};Ia.hasValue=(n,r,o)=>{if(Ia.hasProperty(n,r)){let l=n[r];const u=kX.isList(l);if(Hb.isArray(l)||u){u&&(l=l["@list"]);for(let d=0;d{if(l=l||{},"propertyIsArray"in l||(l.propertyIsArray=!1),"valueIsArray"in l||(l.valueIsArray=!1),"allowDuplicate"in l||(l.allowDuplicate=!0),"prependValue"in l||(l.prependValue=!1),l.valueIsArray)n[r]=o;else if(Hb.isArray(o)){o.length===0&&l.propertyIsArray&&!n.hasOwnProperty(r)&&(n[r]=[]),l.prependValue&&(o=o.concat(n[r]),n[r]=[]);for(let u=0;u[].concat(n[r]||[]);Ia.removeProperty=(n,r)=>{delete n[r]};Ia.removeValue=(n,r,o,l)=>{l=l||{},"propertyIsArray"in l||(l.propertyIsArray=!1);const u=Ia.getValues(n,r).filter(d=>!Ia.compareValues(d,o));u.length===0?Ia.removeProperty(n,r):u.length===1&&!l.propertyIsArray?n[r]=u[0]:n[r]=u};Ia.relabelBlankNodes=(n,r)=>{r=r||{};const o=r.issuer||new Dcn("_:b");return cde(o,n)};Ia.compareValues=(n,r)=>n===r||kX.isValue(n)&&kX.isValue(r)&&n["@value"]===r["@value"]&&n["@type"]===r["@type"]&&n["@language"]===r["@language"]&&n["@index"]===r["@index"]?!0:Hb.isObject(n)&&"@id"in n&&Hb.isObject(r)&&"@id"in r?n["@id"]===r["@id"]:!1;Ia.compareShortestLeast=(n,r)=>n.length{const o={},l=Ub.parsers[r||"full"],u=l.regex.exec(n);let d=l.keys.length;for(;d--;)o[l.keys[d]]=u[d]===void 0?null:u[d];return(o.scheme==="https"&&o.port==="443"||o.scheme==="http"&&o.port==="80")&&(o.href=o.href.replace(":"+o.port,""),o.authority=o.authority.replace(":"+o.port,""),o.port=null),o.normalizedPath=Ub.removeDotSegments(o.path),o};Ub.prependBase=(n,r)=>{if(n===null||Ub.isAbsolute(r))return r;(!n||Hge.isString(n))&&(n=Ub.parse(n||""));const o=Ub.parse(r),l={protocol:n.protocol||""};if(o.authority!==null)l.authority=o.authority,l.path=o.path,l.query=o.query;else if(l.authority=n.authority,o.path==="")l.path=n.path,o.query!==null?l.query=o.query:l.query=n.query;else{if(o.path.indexOf("/")===0)l.path=o.path;else{let d=n.path;d=d.substr(0,d.lastIndexOf("/")+1),(d.length>0||n.authority)&&d.substr(-1)!=="/"&&(d+="/"),d+=o.path,l.path=d}l.query=o.query}o.path!==""&&(l.path=Ub.removeDotSegments(l.path));let u=l.protocol;return l.authority!==null&&(u+="//"+l.authority),u+=l.path,l.query!==null&&(u+="?"+l.query),o.fragment!==null&&(u+="#"+o.fragment),u===""&&(u="./"),u};Ub.removeBase=(n,r)=>{if(n===null)return r;(!n||Hge.isString(n))&&(n=Ub.parse(n||""));let o="";if(n.href!==""?o+=(n.protocol||"")+"//"+(n.authority||""):r.indexOf("//")&&(o+="//"),r.indexOf(o)!==0)return r;const l=Ub.parse(r.substr(o.length)),u=n.normalizedPath.split("/"),d=l.normalizedPath.split("/"),h=l.fragment||l.query?0:1;for(;u.length>0&&d.length>h&&u[0]===d[0];)u.shift(),d.shift();let w="";if(u.length>0){u.pop();for(let v=0;v{if(n.length===0)return"";const r=n.split("/"),o=[];for(;r.length>0;){const l=r.shift(),u=r.length===0;if(l==="."){u&&o.push("");continue}if(l===".."){o.pop(),u&&o.push("");continue}o.push(l)}return n[0]==="/"&&o.length>0&&o[0]!==""&&o.unshift(""),o.length===1&&o[0]===""?"/":o.join("/")};const b4r=/^([A-Za-z][A-Za-z0-9+-.]*|_):[^\s]*$/;Ub.isAbsolute=n=>Hge.isString(n)&&b4r.test(n);Ub.isRelative=n=>Hge.isString(n);const{parseLinkHeader:g4r,buildHeaders:w4r}=Sv,{LINK_HEADER_CONTEXT:m4r}=YGe,dK=_v,y4r=Lcn(),{prependBase:v4r}=zT,_4r=/(^|(\r\n))link:/i;var S4r=({secure:n,headers:r={},xhr:o}={headers:{}})=>{return r=w4r(r),new y4r().wrapLoader(u);async function u(d){if(d.indexOf("http:")!==0&&d.indexOf("https:")!==0)throw new dK('URL could not be dereferenced; only "http" and "https" URLs are supported.',"jsonld.InvalidUrl",{code:"loading document failed",url:d});if(n&&d.indexOf("https")!==0)throw new dK(`URL could not be dereferenced; secure mode is enabled and the URL's scheme is not "https".`,"jsonld.InvalidUrl",{code:"loading document failed",url:d});let h;try{h=await E4r(o,d,r)}catch(A){throw new dK("URL could not be dereferenced, an error occurred.","jsonld.LoadDocumentError",{code:"loading document failed",url:d,cause:A})}if(h.status>=400)throw new dK("URL could not be dereferenced: "+h.statusText,"jsonld.LoadDocumentError",{code:"loading document failed",url:d,httpStatusCode:h.status});let w={contextUrl:null,documentUrl:d,document:h.response},v=null;const y=h.getResponseHeader("Content-Type");let E;if(_4r.test(h.getAllResponseHeaders())&&(E=h.getResponseHeader("Link")),E&&y!=="application/ld+json"){const A=g4r(E),C=A[m4r];if(Array.isArray(C))throw new dK("URL could not be dereferenced, it has more than one associated HTTP Link Header.","jsonld.InvalidUrl",{code:"multiple context link headers",url:d});C&&(w.contextUrl=C.target),v=A.alternate,v&&v.type=="application/ld+json"&&!(y||"").match(/^application\/(\w*\+)?json$/)&&(w=await u(v4r(d,v.target)))}return w}};function E4r(n,r,o){n=n||XMLHttpRequest;const l=new n;return new Promise((u,d)=>{l.onload=()=>u(l),l.onerror=h=>d(h),l.open("GET",r,!0);for(const h in o)l.setRequestHeader(h,o[h]);l.send()})}const k4r=S4r,QGe={};var R4r=QGe;QGe.setupDocumentLoaders=function(n){typeof XMLHttpRequest<"u"&&(n.documentLoaders.xhr=k4r,n.useDocumentLoader("xhr"))};QGe.setupGlobals=function(n){typeof globalThis.JsonLdProcessor>"u"&&Object.defineProperty(globalThis,"JsonLdProcessor",{writable:!0,enumerable:!1,configurable:!0,value:n.JsonLdProcessor})};var Q9e,UKt;function x4r(){return UKt||(UKt=1,Q9e=function(n){n.prototype[Symbol.iterator]=function*(){for(let r=this.head;r;r=r.next)yield r.value}}),Q9e}var C4r=Ea;Ea.Node=NP;Ea.create=Ea;function Ea(n){var r=this;if(r instanceof Ea||(r=new Ea),r.tail=null,r.head=null,r.length=0,n&&typeof n.forEach=="function")n.forEach(function(u){r.push(u)});else if(arguments.length>0)for(var o=0,l=arguments.length;o1)o=r;else if(this.head)l=this.head.next,o=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var u=0;l!==null;u++)o=n(o,l.value,u),l=l.next;return o};Ea.prototype.reduceReverse=function(n,r){var o,l=this.tail;if(arguments.length>1)o=r;else if(this.tail)l=this.tail.prev,o=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var u=this.length-1;l!==null;u--)o=n(o,l.value,u),l=l.prev;return o};Ea.prototype.toArray=function(){for(var n=new Array(this.length),r=0,o=this.head;o!==null;r++)n[r]=o.value,o=o.next;return n};Ea.prototype.toArrayReverse=function(){for(var n=new Array(this.length),r=0,o=this.tail;o!==null;r++)n[r]=o.value,o=o.prev;return n};Ea.prototype.slice=function(n,r){r=r||this.length,r<0&&(r+=this.length),n=n||0,n<0&&(n+=this.length);var o=new Ea;if(rthis.length&&(r=this.length);for(var l=0,u=this.head;u!==null&&lthis.length&&(r=this.length);for(var l=this.length,u=this.tail;u!==null&&l>r;l--)u=u.prev;for(;u!==null&&l>n;l--,u=u.prev)o.push(u.value);return o};Ea.prototype.splice=function(n,r,...o){n>this.length&&(n=this.length-1),n<0&&(n=this.length+n);for(var l=0,u=this.head;u!==null&&l1;class P4r{constructor(r){if(typeof r=="number"&&(r={max:r}),r||(r={}),r.max&&(typeof r.max!="number"||r.max<0))throw new TypeError("max must be a non-negative number");this[j8]=r.max||1/0;const o=r.length||Z9e;if(this[aD]=typeof o!="function"?Z9e:o,this[kq]=r.stale||!1,r.maxAge&&typeof r.maxAge!="number")throw new TypeError("maxAge must be a number");this[z8]=r.maxAge||0,this[TR]=r.dispose,this[GKt]=r.noDisposeOnSet||!1,this[jcn]=r.updateAgeOnGet||!1,this.reset()}set max(r){if(typeof r!="number"||r<0)throw new TypeError("max must be a non-negative number");this[j8]=r||1/0,hK(this)}get max(){return this[j8]}set allowStale(r){this[kq]=!!r}get allowStale(){return this[kq]}set maxAge(r){if(typeof r!="number")throw new TypeError("maxAge must be a non-negative number");this[z8]=r,hK(this)}get maxAge(){return this[z8]}set lengthCalculator(r){typeof r!="function"&&(r=Z9e),r!==this[aD]&&(this[aD]=r,this[PR]=0,this[ap].forEach(o=>{o.length=this[aD](o.value,o.key),this[PR]+=o.length})),hK(this)}get lengthCalculator(){return this[aD]}get length(){return this[PR]}get itemCount(){return this[ap].length}rforEach(r,o){o=o||this;for(let l=this[ap].tail;l!==null;){const u=l.prev;VKt(this,r,l,o),l=u}}forEach(r,o){o=o||this;for(let l=this[ap].head;l!==null;){const u=l.next;VKt(this,r,l,o),l=u}}keys(){return this[ap].toArray().map(r=>r.key)}values(){return this[ap].toArray().map(r=>r.value)}reset(){this[TR]&&this[ap]&&this[ap].length&&this[ap].forEach(r=>this[TR](r.key,r.value)),this[dS]=new Map,this[ap]=new I4r,this[PR]=0}dump(){return this[ap].map(r=>Rhe(this,r)?!1:{k:r.key,v:r.value,e:r.now+(r.maxAge||0)}).toArray().filter(r=>r)}dumpLru(){return this[ap]}set(r,o,l){if(l=l||this[z8],l&&typeof l!="number")throw new TypeError("maxAge must be a number");const u=l?Date.now():0,d=this[aD](o,r);if(this[dS].has(r)){if(d>this[j8])return hL(this,this[dS].get(r)),!1;const v=this[dS].get(r).value;return this[TR]&&(this[GKt]||this[TR](r,v.value)),v.now=u,v.maxAge=l,v.value=o,this[PR]+=d-v.length,v.length=d,this.get(r),hK(this),!0}const h=new O4r(r,o,d,u,l);return h.length>this[j8]?(this[TR]&&this[TR](r,o),!1):(this[PR]+=h.length,this[ap].unshift(h),this[dS].set(r,this[ap].head),hK(this),!0)}has(r){if(!this[dS].has(r))return!1;const o=this[dS].get(r).value;return!Rhe(this,o)}get(r){return eDe(this,r,!0)}peek(r){return eDe(this,r,!1)}pop(){const r=this[ap].tail;return r?(hL(this,r),r.value):null}del(r){hL(this,this[dS].get(r))}load(r){this.reset();const o=Date.now();for(let l=r.length-1;l>=0;l--){const u=r[l],d=u.e||0;if(d===0)this.set(u.k,u.v);else{const h=d-o;h>0&&this.set(u.k,u.v,h)}}}prune(){this[dS].forEach((r,o)=>eDe(this,o,!1))}}const eDe=(n,r,o)=>{const l=n[dS].get(r);if(l){const u=l.value;if(Rhe(n,u)){if(hL(n,l),!n[kq])return}else o&&(n[jcn]&&(l.value.now=Date.now()),n[ap].unshiftNode(l));return u.value}},Rhe=(n,r)=>{if(!r||!r.maxAge&&!n[z8])return!1;const o=Date.now()-r.now;return r.maxAge?o>r.maxAge:n[z8]&&o>n[z8]},hK=n=>{if(n[PR]>n[j8])for(let r=n[ap].tail;n[PR]>n[j8]&&r!==null;){const o=r.prev;hL(n,r),r=o}},hL=(n,r)=>{if(r){const o=r.value;n[TR]&&n[TR](o.key,o.value),n[PR]-=o.length,n[dS].delete(o.key),n[ap].removeNode(r)}};class O4r{constructor(r,o,l,u,d){this.key=r,this.value=o,this.length=l,this.now=u,this.maxAge=d||0}}const VKt=(n,r,o,l)=>{let u=o.value;Rhe(n,u)&&(hL(n,o),n[kq]||(u=void 0)),u&&r.call(l,u.value,u.key,n)};var Fcn=P4r;const N4r=Fcn,M4r=10;var D4r=class{constructor({document:r}){this.document=r,this.cache=new N4r({max:M4r})}getProcessed(r){return this.cache.get(r)}setProcessed(r,o){this.cache.set(r,o)}};const{isArray:hBe,isObject:Rq,isString:xhe}=cm,{asArray:L4r}=Sv,{prependBase:pBe}=zT,jK=_v,zKt=D4r,KKt=10;var j4r=class{constructor({sharedCache:r}){this.perOpCache=new Map,this.sharedCache=r}async resolve({activeCtx:r,context:o,documentLoader:l,base:u,cycles:d=new Set}){o&&Rq(o)&&o["@context"]&&(o=o["@context"]),o=L4r(o);const h=[];for(const w of o){if(xhe(w)){let E=this._get(w);E||(E=await this._resolveRemoteContext({activeCtx:r,url:w,documentLoader:l,base:u,cycles:d})),hBe(E)?h.push(...E):h.push(E);continue}if(w===null){h.push(new zKt({document:null}));continue}Rq(w)||F4r(o);const v=JSON.stringify(w);let y=this._get(v);y||(y=new zKt({document:w}),this._cacheResolvedContext({key:v,resolved:y,tag:"static"})),h.push(y)}return h}_get(r){let o=this.perOpCache.get(r);if(!o){const l=this.sharedCache.get(r);l&&(o=l.get("static"),o&&this.perOpCache.set(r,o))}return o}_cacheResolvedContext({key:r,resolved:o,tag:l}){if(this.perOpCache.set(r,o),l!==void 0){let u=this.sharedCache.get(r);u||(u=new Map,this.sharedCache.set(r,u)),u.set(l,o)}return o}async _resolveRemoteContext({activeCtx:r,url:o,documentLoader:l,base:u,cycles:d}){o=pBe(u,o);const{context:h,remoteDoc:w}=await this._fetchContext({activeCtx:r,url:o,documentLoader:l,cycles:d});u=w.documentUrl||o,bBe({context:h,base:u});const v=await this.resolve({activeCtx:r,context:h,documentLoader:l,base:u,cycles:d});return this._cacheResolvedContext({key:o,resolved:v,tag:w.tag}),v}async _fetchContext({activeCtx:r,url:o,documentLoader:l,cycles:u}){if(u.size>KKt)throw new jK("Maximum number of @context URLs exceeded.","jsonld.ContextUrlError",{code:r.processingMode==="json-ld-1.0"?"loading remote context failed":"context overflow",max:KKt});if(u.has(o))throw new jK("Cyclical @context URLs detected.","jsonld.ContextUrlError",{code:r.processingMode==="json-ld-1.0"?"recursive context inclusion":"context overflow",url:o});u.add(o);let d,h;try{h=await l(o),d=h.document||null,xhe(d)&&(d=JSON.parse(d))}catch(w){throw new jK("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:o,cause:w})}if(!Rq(d))throw new jK("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:o});return"@context"in d?d={"@context":d["@context"]}:d={"@context":{}},h.contextUrl&&(hBe(d["@context"])||(d["@context"]=[d["@context"]]),d["@context"].push(h.contextUrl)),{context:d,remoteDoc:h}}};function F4r(n){throw new jK("Invalid JSON-LD syntax; @context must be an object.","jsonld.SyntaxError",{code:"invalid local context",context:n})}function bBe({context:n,base:r}){if(!n)return;const o=n["@context"];if(xhe(o)){n["@context"]=pBe(r,o);return}if(hBe(o)){for(let l=0;l{const r=[].concat(n.safe?tm.safeEventHandler:[],n.eventHandler?Bcn(n.eventHandler):[],tm.defaultEventHandler?tm.defaultEventHandler:[]);return r.length===0?null:r};tm.handleEvent=({event:n,options:r})=>{Wcn({event:n,handlers:r.eventHandler})};function Wcn({event:n,handlers:r}){let o=!0;for(let l=0;o&&l{o=!0}});else if(typeof u=="object")n.code in u?u[n.code]({event:n,next:()=>{o=!0}}):o=!0;else throw new ZGe("Invalid event handler.","jsonld.InvalidEventHandler",{event:n})}return o}const H4r=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"]);tm.safeEventHandler=function({event:r,next:o}){if(r.level==="warning"&&H4r.has(r.code))throw new ZGe("Safe mode validation error.","jsonld.ValidationError",{event:r});o()};tm.logEventHandler=function({event:r,next:o}){console.log(`EVENT: ${r.message}`,{event:r}),o()};tm.logWarningEventHandler=function({event:r,next:o}){r.level==="warning"&&console.warn(`WARNING: ${r.message}`,{event:r}),o()};tm.unhandledEventHandler=function({event:r}){throw new ZGe("No handler for event.","jsonld.UnhandledEvent",{event:r})};tm.setDefaultEventHandler=function({eventHandler:n}={}){tm.defaultEventHandler=n?Bcn(n):null};const qKt=Sv,Ao=_v,{isArray:Hcn,isObject:fT,isString:E0,isUndefined:U4r}=cm,{isAbsolute:fP,isRelative:G4r,prependBase:xq}=zT,{handleEvent:pL}=FJ,{REGEX_BCP47:V4r,REGEX_KEYWORD:ude,asArray:Ucn,compareShortestLeast:z4r}=Sv,Jue=new Map,K4r=1e4,au={};var vO=au;au.process=async({activeCtx:n,localCtx:r,options:o,propagate:l=!0,overrideProtected:u=!1,cycles:d=new Set})=>{if(fT(r)&&"@context"in r&&Hcn(r["@context"])&&(r=r["@context"]),Ucn(r).length===0)return n;const w=[],v=[({event:C,next:R})=>{w.push(C),R()}];o.eventHandler&&v.push(o.eventHandler);const y=o;o={...o,eventHandler:v};const E=await o.contextResolver.resolve({activeCtx:n,context:r,documentLoader:o.documentLoader,base:o.base});fT(E[0].document)&&typeof E[0].document["@propagate"]=="boolean"&&(l=E[0].document["@propagate"]);let A=n;!l&&!A.previousContext&&(A=A.clone(),A.previousContext=n);for(const C of E){let{document:R}=C;if(n=A,R===null){if(!u&&Object.keys(n.protected).length!==0)throw new Ao("Tried to nullify a context with protected terms outside of a term definition.","jsonld.SyntaxError",{code:"invalid context nullification"});A=n=au.getInitialContext(o).clone();continue}const O=C.getProcessed(n);if(O){if(y.eventHandler)for(const L of O.events)pL({event:L,options:y});A=n=O.context;continue}if(fT(R)&&"@context"in R&&(R=R["@context"]),!fT(R))throw new Ao("Invalid JSON-LD syntax; @context must be an object.","jsonld.SyntaxError",{code:"invalid local context",context:R});A=A.clone();const M=new Map;if("@version"in R){if(R["@version"]!==1.1)throw new Ao("Unsupported JSON-LD version: "+R["@version"],"jsonld.UnsupportedVersion",{code:"invalid @version value",context:R});if(n.processingMode&&n.processingMode==="json-ld-1.0")throw new Ao("@version: "+R["@version"]+" not compatible with "+n.processingMode,"jsonld.ProcessingModeConflict",{code:"processing mode conflict",context:R});A.processingMode="json-ld-1.1",A["@version"]=R["@version"],M.set("@version",!0)}if(A.processingMode=A.processingMode||n.processingMode,"@base"in R){let L=R["@base"];if(!(L===null||fP(L)))if(G4r(L))L=xq(A["@base"],L);else throw new Ao('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:R});A["@base"]=L,M.set("@base",!0)}if("@vocab"in R){const L=R["@vocab"];if(L===null)delete A["@vocab"];else if(E0(L)){if(!fP(L)&&au.processingMode(A,1))throw new Ao('Invalid JSON-LD syntax; the value of "@vocab" in a @context must be an absolute IRI.',"jsonld.SyntaxError",{code:"invalid vocab mapping",context:R});{const H=HD(A,L,{vocab:!0,base:!0},void 0,void 0,o);fP(H)||o.eventHandler&&pL({event:{type:["JsonLdEvent"],code:"relative @vocab reference",level:"warning",message:"Relative @vocab reference found.",details:{vocab:H}},options:o}),A["@vocab"]=H}}else throw new Ao('Invalid JSON-LD syntax; the value of "@vocab" in a @context must be a string or null.',"jsonld.SyntaxError",{code:"invalid vocab mapping",context:R});M.set("@vocab",!0)}if("@language"in R){const L=R["@language"];if(L===null)delete A["@language"];else if(E0(L))L.match(V4r)||o.eventHandler&&pL({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:L}},options:o}),A["@language"]=L.toLowerCase();else throw new Ao('Invalid JSON-LD syntax; the value of "@language" in a @context must be a string or null.',"jsonld.SyntaxError",{code:"invalid default language",context:R});M.set("@language",!0)}if("@direction"in R){const L=R["@direction"];if(n.processingMode==="json-ld-1.0")throw new Ao("Invalid JSON-LD syntax; @direction not compatible with "+n.processingMode,"jsonld.SyntaxError",{code:"invalid context member",context:R});if(L===null)delete A["@direction"];else{if(L!=="ltr"&&L!=="rtl")throw new Ao('Invalid JSON-LD syntax; the value of "@direction" in a @context must be null, "ltr", or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",context:R});A["@direction"]=L}M.set("@direction",!0)}if("@propagate"in R){const L=R["@propagate"];if(n.processingMode==="json-ld-1.0")throw new Ao("Invalid JSON-LD syntax; @propagate not compatible with "+n.processingMode,"jsonld.SyntaxError",{code:"invalid context entry",context:R});if(typeof L!="boolean")throw new Ao("Invalid JSON-LD syntax; @propagate value must be a boolean.","jsonld.SyntaxError",{code:"invalid @propagate value",context:r});M.set("@propagate",!0)}if("@import"in R){const L=R["@import"];if(n.processingMode==="json-ld-1.0")throw new Ao("Invalid JSON-LD syntax; @import not compatible with "+n.processingMode,"jsonld.SyntaxError",{code:"invalid context entry",context:R});if(!E0(L))throw new Ao("Invalid JSON-LD syntax; @import must be a string.","jsonld.SyntaxError",{code:"invalid @import value",context:r});const H=await o.contextResolver.resolve({activeCtx:n,context:L,documentLoader:o.documentLoader,base:o.base});if(H.length!==1)throw new Ao("Invalid JSON-LD syntax; @import must reference a single context.","jsonld.SyntaxError",{code:"invalid remote context",context:r});const G=H[0].getProcessed(n);if(G)R=G;else{const j=H[0].document;if("@import"in j)throw new Ao("Invalid JSON-LD syntax: imported context must not include @import.","jsonld.SyntaxError",{code:"invalid context entry",context:r});for(const Q in j)R.hasOwnProperty(Q)||(R[Q]=j[Q]);H[0].setProcessed(n,R)}M.set("@import",!0)}M.set("@protected",R["@protected"]||!1);for(const L in R)if(au.createTermDefinition({activeCtx:A,localCtx:R,term:L,defined:M,options:o,overrideProtected:u}),fT(R[L])&&"@context"in R[L]){const H=R[L]["@context"];let G=!0;if(E0(H)){const j=xq(o.base,H);d.has(j)?G=!1:d.add(j)}if(G)try{await au.process({activeCtx:A.clone(),localCtx:R[L]["@context"],overrideProtected:!0,options:o,cycles:d})}catch{throw new Ao("Invalid JSON-LD syntax; invalid scoped context.","jsonld.SyntaxError",{code:"invalid scoped context",context:R[L]["@context"],term:L})}}C.setProcessed(n,{context:A,events:w})}return A};au.createTermDefinition=({activeCtx:n,localCtx:r,term:o,defined:l,options:u,overrideProtected:d=!1})=>{if(l.has(o)){if(l.get(o))return;throw new Ao("Cyclical context definition detected.","jsonld.CyclicalContext",{code:"cyclic IRI mapping",context:r,term:o})}l.set(o,!1);let h;if(r.hasOwnProperty(o)&&(h=r[o]),o==="@type"&&fT(h)&&(h["@container"]||"@set")==="@set"&&au.processingMode(n,1.1)){const R=["@container","@id","@protected"],O=Object.keys(h);if(O.length===0||O.some(M=>!R.includes(M)))throw new Ao("Invalid JSON-LD syntax; keywords cannot be overridden.","jsonld.SyntaxError",{code:"keyword redefinition",context:r,term:o})}else{if(au.isKeyword(o))throw new Ao("Invalid JSON-LD syntax; keywords cannot be overridden.","jsonld.SyntaxError",{code:"keyword redefinition",context:r,term:o});if(o.match(ude)){u.eventHandler&&pL({event:{type:["JsonLdEvent"],code:"reserved term",level:"warning",message:'Terms beginning with "@" are reserved for future use and dropped.',details:{term:o}},options:u});return}else if(o==="")throw new Ao("Invalid JSON-LD syntax; a term cannot be an empty string.","jsonld.SyntaxError",{code:"invalid term definition",context:r})}const w=n.mappings.get(o);n.mappings.has(o)&&n.mappings.delete(o);let v=!1;if((E0(h)||h===null)&&(v=!0,h={"@id":h}),!fT(h))throw new Ao("Invalid JSON-LD syntax; @context term values must be strings or objects.","jsonld.SyntaxError",{code:"invalid term definition",context:r});const y={};n.mappings.set(o,y),y.reverse=!1;const E=["@container","@id","@language","@reverse","@type"];au.processingMode(n,1.1)&&E.push("@context","@direction","@index","@nest","@prefix","@protected");for(const R in h)if(!E.includes(R))throw new Ao("Invalid JSON-LD syntax; a term definition must not contain "+R,"jsonld.SyntaxError",{code:"invalid term definition",context:r});const A=o.indexOf(":");if(y._termHasColon=A>0,"@reverse"in h){if("@id"in h)throw new Ao("Invalid JSON-LD syntax; a @reverse term definition must not contain @id.","jsonld.SyntaxError",{code:"invalid reverse property",context:r});if("@nest"in h)throw new Ao("Invalid JSON-LD syntax; a @reverse term definition must not contain @nest.","jsonld.SyntaxError",{code:"invalid reverse property",context:r});const R=h["@reverse"];if(!E0(R))throw new Ao("Invalid JSON-LD syntax; a @context @reverse value must be a string.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:r});if(R.match(ude)){u.eventHandler&&pL({event:{type:["JsonLdEvent"],code:"reserved @reverse value",level:"warning",message:'@reverse values beginning with "@" are reserved for future use and dropped.',details:{reverse:R}},options:u}),w?n.mappings.set(o,w):n.mappings.delete(o);return}const O=HD(n,R,{vocab:!0,base:!1},r,l,u);if(!fP(O))throw new Ao("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:r});y["@id"]=O,y.reverse=!0}else if("@id"in h){let R=h["@id"];if(R&&!E0(R))throw new Ao("Invalid JSON-LD syntax; a @context @id value must be an array of strings or a string.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:r});if(R===null)y["@id"]=null;else if(!au.isKeyword(R)&&R.match(ude)){u.eventHandler&&pL({event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:'@id values beginning with "@" are reserved for future use and dropped.',details:{id:R}},options:u}),w?n.mappings.set(o,w):n.mappings.delete(o);return}else if(R!==o){if(R=HD(n,R,{vocab:!0,base:!1},r,l,u),!fP(R)&&!au.isKeyword(R))throw new Ao("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:r});if(o.match(/(?::[^:])|\//)){const O=new Map(l).set(o,!0);if(HD(n,o,{vocab:!0,base:!1},r,O,u)!==R)throw new Ao("Invalid JSON-LD syntax; term in form of IRI must expand to definition.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:r})}y["@id"]=R,y._prefix=v&&!y._termHasColon&&R.match(/[:\/\?#\[\]@]$/)!==null}}if(!("@id"in y))if(y._termHasColon){const R=o.substr(0,A);if(r.hasOwnProperty(R)&&au.createTermDefinition({activeCtx:n,localCtx:r,term:R,defined:l,options:u}),n.mappings.has(R)){const O=o.substr(A+1);y["@id"]=n.mappings.get(R)["@id"]+O}else y["@id"]=o}else if(o==="@type")y["@id"]=o;else{if(!("@vocab"in n))throw new Ao("Invalid JSON-LD syntax; @context terms must define an @id.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:r,term:o});y["@id"]=n["@vocab"]+o}if((h["@protected"]===!0||l.get("@protected")===!0&&h["@protected"]!==!1)&&(n.protected[o]=!0,y.protected=!0),l.set(o,!0),"@type"in h){let R=h["@type"];if(!E0(R))throw new Ao("Invalid JSON-LD syntax; an @context @type value must be a string.","jsonld.SyntaxError",{code:"invalid type mapping",context:r});if(R==="@json"||R==="@none"){if(au.processingMode(n,1))throw new Ao(`Invalid JSON-LD syntax; an @context @type value must not be "${R}" in JSON-LD 1.0 mode.`,"jsonld.SyntaxError",{code:"invalid type mapping",context:r})}else if(R!=="@id"&&R!=="@vocab"){if(R=HD(n,R,{vocab:!0,base:!1},r,l,u),!fP(R))throw new Ao("Invalid JSON-LD syntax; an @context @type value must be an absolute IRI.","jsonld.SyntaxError",{code:"invalid type mapping",context:r});if(R.indexOf("_:")===0)throw new Ao("Invalid JSON-LD syntax; an @context @type value must be an IRI, not a blank node identifier.","jsonld.SyntaxError",{code:"invalid type mapping",context:r})}y["@type"]=R}if("@container"in h){const R=E0(h["@container"])?[h["@container"]]:h["@container"]||[],O=["@list","@set","@index","@language"];let M=!0;const L=R.includes("@set");if(au.processingMode(n,1.1)){if(O.push("@graph","@id","@type"),R.includes("@list")){if(R.length!==1)throw new Ao("Invalid JSON-LD syntax; @context @container with @list must have no other values","jsonld.SyntaxError",{code:"invalid container mapping",context:r})}else if(R.includes("@graph")){if(R.some(H=>H!=="@graph"&&H!=="@id"&&H!=="@index"&&H!=="@set"))throw new Ao("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:r})}else M&=R.length<=(L?2:1);if(R.includes("@type")&&(y["@type"]=y["@type"]||"@id",!["@id","@vocab"].includes(y["@type"])))throw new Ao("Invalid JSON-LD syntax; container: @type requires @type to be @id or @vocab.","jsonld.SyntaxError",{code:"invalid type mapping",context:r})}else M&=!Hcn(h["@container"]),M&=R.length<=1;if(M&=R.every(H=>O.includes(H)),M&=!(L&&R.includes("@list")),!M)throw new Ao("Invalid JSON-LD syntax; @context @container value must be one of the following: "+O.join(", "),"jsonld.SyntaxError",{code:"invalid container mapping",context:r});if(y.reverse&&!R.every(H=>["@index","@set"].includes(H)))throw new Ao("Invalid JSON-LD syntax; @context @container value for a @reverse type definition must be @index or @set.","jsonld.SyntaxError",{code:"invalid reverse property",context:r});y["@container"]=R}if("@index"in h){if(!("@container"in h)||!y["@container"].includes("@index"))throw new Ao(`Invalid JSON-LD syntax; @index without @index in @container: "${h["@index"]}" on term "${o}".`,"jsonld.SyntaxError",{code:"invalid term definition",context:r});if(!E0(h["@index"])||h["@index"].indexOf("@")===0)throw new Ao(`Invalid JSON-LD syntax; @index must expand to an IRI: "${h["@index"]}" on term "${o}".`,"jsonld.SyntaxError",{code:"invalid term definition",context:r});y["@index"]=h["@index"]}if("@context"in h&&(y["@context"]=h["@context"]),"@language"in h&&!("@type"in h)){let R=h["@language"];if(R!==null&&!E0(R))throw new Ao("Invalid JSON-LD syntax; @context @language value must be a string or null.","jsonld.SyntaxError",{code:"invalid language mapping",context:r});R!==null&&(R=R.toLowerCase()),y["@language"]=R}if("@prefix"in h){if(o.match(/:|\//))throw new Ao("Invalid JSON-LD syntax; @context @prefix used on a compact IRI term","jsonld.SyntaxError",{code:"invalid term definition",context:r});if(au.isKeyword(y["@id"]))throw new Ao("Invalid JSON-LD syntax; keywords may not be used as prefixes","jsonld.SyntaxError",{code:"invalid term definition",context:r});if(typeof h["@prefix"]=="boolean")y._prefix=h["@prefix"]===!0;else throw new Ao("Invalid JSON-LD syntax; @context value for @prefix must be boolean","jsonld.SyntaxError",{code:"invalid @prefix value",context:r})}if("@direction"in h){const R=h["@direction"];if(R!==null&&R!=="ltr"&&R!=="rtl")throw new Ao('Invalid JSON-LD syntax; @direction value must be null, "ltr", or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",context:r});y["@direction"]=R}if("@nest"in h){const R=h["@nest"];if(!E0(R)||R!=="@nest"&&R.indexOf("@")===0)throw new Ao("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:r});y["@nest"]=R}// disallow aliasing @context and @preserve +const C=y["@id"];if(C==="@context"||C==="@preserve")throw new Ao("Invalid JSON-LD syntax; @context and @preserve cannot be aliased.","jsonld.SyntaxError",{code:"invalid keyword alias",context:r});if(w&&w.protected&&!d&&(n.protected[o]=!0,y.protected=!0,!gBe(w,y)))throw new Ao("Invalid JSON-LD syntax; tried to redefine a protected term.","jsonld.SyntaxError",{code:"protected term redefinition",context:r,term:o})};au.expandIri=(n,r,o,l)=>HD(n,r,o,void 0,void 0,l);function HD(n,r,o,l,u,d){if(r===null||!E0(r)||au.isKeyword(r))return r;if(r.match(ude))return null;if(l&&l.hasOwnProperty(r)&&u.get(r)!==!0&&au.createTermDefinition({activeCtx:n,localCtx:l,term:r,defined:u,options:d}),o=o||{},o.vocab){const w=n.mappings.get(r);if(w===null)return null;if(fT(w)&&"@id"in w)return w["@id"]}const h=r.indexOf(":");if(h>0){const w=r.substr(0,h),v=r.substr(h+1);if(w==="_"||v.indexOf("//")===0)return r;l&&l.hasOwnProperty(w)&&au.createTermDefinition({activeCtx:n,localCtx:l,term:w,defined:u,options:d});const y=n.mappings.get(w);if(y&&y._prefix)return y["@id"]+v;if(fP(r))return r}if(o.vocab&&"@vocab"in n)r=n["@vocab"]+r;else if(o.base){let w,v;"@base"in n?n["@base"]?(v=xq(d.base,n["@base"]),w=xq(v,r)):(v=n["@base"],w=r):(v=d.base,w=xq(d.base,r)),r=w}return r}au.getInitialContext=n=>{const r=JSON.stringify({processingMode:n.processingMode}),o=Jue.get(r);if(o)return o;const l={processingMode:n.processingMode,mappings:new Map,inverse:null,getInverse:u,clone:w,revertToPreviousContext:v,protected:{}};return Jue.size===K4r&&Jue.clear(),Jue.set(r,l),l;function u(){const y=this;if(y.inverse)return y.inverse;const E=y.inverse={},A=y.fastCurieMap={},C={},R=(y["@language"]||"@none").toLowerCase(),O=y["@direction"],M=y.mappings,L=[...M.keys()].sort(z4r);for(const H of L){const G=M.get(H);if(G===null)continue;let j=G["@container"]||"@none";if(j=[].concat(j).sort().join(""),G["@id"]===null)continue;const Q=Ucn(G["@id"]);for(const te of Q){let pe=E[te];const De=au.isKeyword(te);if(pe)!De&&!G._termHasColon&&C[te].push(H);else if(E[te]=pe={},!De&&!G._termHasColon){C[te]=[H];const Re={iri:te,terms:C[te]};te[0]in A?A[te[0]].push(Re):A[te[0]]=[Re]}if(pe[j]||(pe[j]={"@language":{},"@type":{},"@any":{}}),pe=pe[j],h(H,pe["@any"],"@none"),G.reverse)h(H,pe["@type"],"@reverse");else if(G["@type"]==="@none")h(H,pe["@any"],"@none"),h(H,pe["@language"],"@none"),h(H,pe["@type"],"@none");else if("@type"in G)h(H,pe["@type"],G["@type"]);else if("@language"in G&&"@direction"in G){const Re=G["@language"],le=G["@direction"];Re&&le?h(H,pe["@language"],`${Re}_${le}`.toLowerCase()):Re?h(H,pe["@language"],Re.toLowerCase()):le?h(H,pe["@language"],`_${le}`):h(H,pe["@language"],"@null")}else"@language"in G?h(H,pe["@language"],(G["@language"]||"@null").toLowerCase()):"@direction"in G?G["@direction"]?h(H,pe["@language"],`_${G["@direction"]}`):h(H,pe["@language"],"@none"):O?(h(H,pe["@language"],`_${O}`),h(H,pe["@language"],"@none"),h(H,pe["@type"],"@none")):(h(H,pe["@language"],R),h(H,pe["@language"],"@none"),h(H,pe["@type"],"@none"))}}for(const H in A)d(A,H,1);return E}function d(y,E,A){const C=y[E],R=y[E]={};let O,M;for(const L of C)O=L.iri,A>=O.length?M="":M=O[A],M in R?R[M].push(L):R[M]=[L];for(const L in R)L!==""&&d(R,L,A+1)}function h(y,E,A){E.hasOwnProperty(A)||(E[A]=y)}function w(){const y={};return y.mappings=qKt.clone(this.mappings),y.clone=this.clone,y.inverse=null,y.getInverse=this.getInverse,y.protected=qKt.clone(this.protected),this.previousContext&&(y.previousContext=this.previousContext.clone()),y.revertToPreviousContext=this.revertToPreviousContext,"@base"in this&&(y["@base"]=this["@base"]),"@language"in this&&(y["@language"]=this["@language"]),"@vocab"in this&&(y["@vocab"]=this["@vocab"]),y}function v(){return this.previousContext?this.previousContext.clone():this}};au.getContextValue=(n,r,o)=>{if(r===null)return o==="@context"?void 0:null;if(n.mappings.has(r)){const l=n.mappings.get(r);if(U4r(o))return l;if(l.hasOwnProperty(o))return l[o]}if(o==="@language"&&o in n||o==="@direction"&&o in n)return n[o];if(o!=="@context")return null};au.processingMode=(n,r)=>r.toString()>="1.1"?!n.processingMode||n.processingMode>="json-ld-"+r.toString():n.processingMode==="json-ld-1.0";au.isKeyword=n=>{if(!E0(n)||n[0]!=="@")return!1;switch(n){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};function gBe(n,r){if(!(n&&typeof n=="object")||!(r&&typeof r=="object"))return n===r;const o=Array.isArray(n);if(o!==Array.isArray(r))return!1;if(o){if(n.length!==r.length)return!1;for(let d=0;d{if(o==null)return null;if(r==="@default"&&(l=Object.assign({},l,{isFrame:!1})),!Jy(o)&&!Gy(o))return!u&&(r===null||Ud(n,r,{vocab:!0},l)==="@graph")?(l.eventHandler&&Ky({event:{type:["JsonLdEvent"],code:"free-floating scalar",level:"warning",message:"Dropping free-floating scalar not in a list.",details:{value:o}},options:l}),null):Kcn({activeCtx:n,activeProperty:r,value:o,options:l});if(Jy(o)){let O=[];const M=Zw(n,r,"@container")||[];u=u||M.includes("@list");for(let L=0;L1?L.slice().sort():L:[L];for(const G of H){const j=Zw(h,G,"@context");Che(j)||(n=await Cq({activeCtx:n,localCtx:j,options:l,propagate:!1}))}}let C={};await zcn({activeCtx:n,activeProperty:r,expandedActiveProperty:w,element:o,expandedParent:C,options:l,insideList:u,typeKey:A,typeScopedContext:h}),y=Object.keys(C);let R=y.length;if("@value"in C){if("@type"in C&&("@language"in C||"@direction"in C))throw new ju('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:C});let O=R-1;if("@type"in C&&(O-=1),"@index"in C&&(O-=1),"@language"in C&&(O-=1),"@direction"in C&&(O-=1),O!==0)throw new ju('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:C});const M=C["@value"]===null?[]:uS(C["@value"]),L=Y4r(C,"@type");if(!(fde(n,1.1)&&L.includes("@json")&&L.length===1))if(M.length===0)l.eventHandler&&Ky({event:{type:["JsonLdEvent"],code:"null @value value",level:"warning",message:"Dropping null @value value.",details:{value:C}},options:l}),C=null;else{if(!M.every(H=>Fb(H)||wBe(H))&&"@language"in C)throw new ju("Invalid JSON-LD syntax; only strings may be language-tagged.","jsonld.SyntaxError",{code:"invalid language-tagged value",element:C});if(!L.every(H=>dde(H)&&!(Fb(H)&&H.indexOf("_:")===0)||wBe(H)))throw new ju('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:C})}}else if("@type"in C&&!Jy(C["@type"]))C["@type"]=[C["@type"]];else if("@set"in C||"@list"in C){if(R>1&&!(R===2&&"@index"in C))throw new ju('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:C});"@set"in C&&(C=C["@set"],y=Object.keys(C),R=y.length)}else R===1&&"@language"in C&&(l.eventHandler&&Ky({event:{type:["JsonLdEvent"],code:"object with only @language",level:"warning",message:"Dropping object with only @language.",details:{value:C}},options:l}),C=null);return Gy(C)&&!l.keepFreeFloatingNodes&&!u&&(r===null||w==="@graph"||(Zw(n,r,"@container")||[]).includes("@graph"))&&(C=Vcn({value:C,count:R,options:l})),C};function Vcn({value:n,count:r,options:o}){if(r===0||"@value"in n||"@list"in n||r===1&&"@id"in n){if(o.eventHandler){let l,u;r===0?(l="empty object",u="Dropping empty object."):"@value"in n?(l="object with only @value",u="Dropping object with only @value."):"@list"in n?(l="object with only @list",u="Dropping object with only @list."):r===1&&"@id"in n&&(l="object with only @id",u="Dropping object with only @id."),Ky({event:{type:["JsonLdEvent"],code:l,level:"warning",message:u,details:{value:n}},options:o})}return null}return n}async function zcn({activeCtx:n,activeProperty:r,expandedActiveProperty:o,element:l,expandedParent:u,options:d={},insideList:h,typeKey:w,typeScopedContext:v}){const y=Object.keys(l).sort(),E=[];let A;const C=l[w]&&Ud(n,Jy(l[w])?l[w][0]:l[w],{vocab:!0},{...d,typeExpansion:!0})==="@json";for(const R of y){let O=l[R],M;if(R==="@context")continue;const L=Ud(n,R,{vocab:!0},d);if(L===null||!(dde(L)||yBe(L))){d.eventHandler&&Ky({event:{type:["JsonLdEvent"],code:"invalid property",level:"warning",message:"Dropping property that did not expand into an absolute IRI or keyword.",details:{property:R,expandedProperty:L}},options:d});continue}if(yBe(L)){if(o==="@reverse")throw new ju("Invalid JSON-LD syntax; a keyword cannot be used as a @reverse property.","jsonld.SyntaxError",{code:"invalid reverse property map",value:O});if(L in u&&L!=="@included"&&L!=="@type")throw new ju("Invalid JSON-LD syntax; colliding keywords detected.","jsonld.SyntaxError",{code:"colliding keywords",keyword:L})}if(L==="@id"){if(!Fb(O)){if(!d.isFrame)throw new ju('Invalid JSON-LD syntax; "@id" value must a string.',"jsonld.SyntaxError",{code:"invalid @id value",value:O});if(Gy(O)){if(!wBe(O))throw new ju('Invalid JSON-LD syntax; "@id" value an empty object or array of strings, if framing',"jsonld.SyntaxError",{code:"invalid @id value",value:O})}else if(Jy(O)){if(!O.every(Q=>Fb(Q)))throw new ju('Invalid JSON-LD syntax; "@id" value an empty object or array of strings, if framing',"jsonld.SyntaxError",{code:"invalid @id value",value:O})}else throw new ju('Invalid JSON-LD syntax; "@id" value an empty object or array of strings, if framing',"jsonld.SyntaxError",{code:"invalid @id value",value:O})}Yw(u,"@id",uS(O).map(Q=>{if(Fb(Q)){const te=Ud(n,Q,{base:!0},d);return d.eventHandler&&(te===null?Ky(Q===null?{event:{type:["JsonLdEvent"],code:"null @id value",level:"warning",message:"Null @id found.",details:{id:Q}},options:d}:{event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:"Reserved @id found.",details:{id:Q}},options:d}):dde(te)||Ky({event:{type:["JsonLdEvent"],code:"relative @id reference",level:"warning",message:"Relative @id reference found.",details:{id:Q,expandedId:te}},options:d})),te}return Q}),{propertyIsArray:d.isFrame});continue}if(L==="@type"){Gy(O)&&(O=Object.fromEntries(Object.entries(O).map(([Q,te])=>[Ud(v,Q,{vocab:!0}),uS(te).map(pe=>Ud(v,pe,{base:!0,vocab:!0},{...d,typeExpansion:!0}))]))),Q4r(O,d.isFrame),Yw(u,"@type",uS(O).map(Q=>{if(Fb(Q)){const te=Ud(v,Q,{base:!0,vocab:!0},{...d,typeExpansion:!0});return te!=="@json"&&!dde(te)&&d.eventHandler&&Ky({event:{type:["JsonLdEvent"],code:"relative @type reference",level:"warning",message:"Relative @type reference found.",details:{type:Q}},options:d}),te}return Q}),{propertyIsArray:!!d.isFrame});continue}if(L==="@included"&&fde(n,1.1)){const Q=uS(await gT.expand({activeCtx:n,activeProperty:r,element:O,options:d}));if(!Q.every(te=>X4r(te)))throw new ju("Invalid JSON-LD syntax; values of @included must expand to node objects.","jsonld.SyntaxError",{code:"invalid @included value",value:O});Yw(u,"@included",Q,{propertyIsArray:!0});continue}if(L==="@graph"&&!(Gy(O)||Jy(O)))throw new ju('Invalid JSON-LD syntax; "@graph" value must not be an object or an array.',"jsonld.SyntaxError",{code:"invalid @graph value",value:O});if(L==="@value"){A=O,C&&fde(n,1.1)?u["@value"]=O:Yw(u,"@value",O,{propertyIsArray:d.isFrame});continue}if(L==="@language"){if(O===null)continue;if(!Fb(O)&&!d.isFrame)throw new ju('Invalid JSON-LD syntax; "@language" value must be a string.',"jsonld.SyntaxError",{code:"invalid language-tagged string",value:O});O=uS(O).map(Q=>Fb(Q)?Q.toLowerCase():Q);for(const Q of O)Fb(Q)&&!Q.match(Gcn)&&d.eventHandler&&Ky({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:Q}},options:d});Yw(u,"@language",O,{propertyIsArray:d.isFrame});continue}if(L==="@direction"){if(!Fb(O)&&!d.isFrame)throw new ju('Invalid JSON-LD syntax; "@direction" value must be a string.',"jsonld.SyntaxError",{code:"invalid base direction",value:O});O=uS(O);for(const Q of O)if(Fb(Q)&&Q!=="ltr"&&Q!=="rtl")throw new ju('Invalid JSON-LD syntax; "@direction" must be "ltr" or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",value:O});Yw(u,"@direction",O,{propertyIsArray:d.isFrame});continue}if(L==="@index"){if(!Fb(O))throw new ju('Invalid JSON-LD syntax; "@index" value must be a string.',"jsonld.SyntaxError",{code:"invalid @index value",value:O});Yw(u,"@index",O);continue}if(L==="@reverse"){if(!Gy(O))throw new ju('Invalid JSON-LD syntax; "@reverse" value must be an object.',"jsonld.SyntaxError",{code:"invalid @reverse value",value:O});if(M=await gT.expand({activeCtx:n,activeProperty:"@reverse",element:O,options:d}),"@reverse"in M)for(const te in M["@reverse"])Yw(u,te,M["@reverse"][te],{propertyIsArray:!0});let Q=u["@reverse"]||null;for(const te in M){if(te==="@reverse")continue;Q===null&&(Q=u["@reverse"]={}),Yw(Q,te,[],{propertyIsArray:!0});const pe=M[te];for(let De=0;DeQ==="@id"||Q==="@index")){if(M=uS(M),d.isFrame||(M=M.filter(Q=>{const te=Object.keys(Q).length;return Vcn({value:Q,count:te,options:d})!==null})),M.length===0)continue;M=M.map(Q=>({"@graph":uS(Q)}))}if(H.mappings.has(R)&&H.mappings.get(R).reverse){const Q=u["@reverse"]=u["@reverse"]||{};M=uS(M);for(let te=0;teUd(n,L,{vocab:!0},d)==="@value"))throw new ju("Invalid JSON-LD syntax; nested value must be a node object.","jsonld.SyntaxError",{code:"invalid @nest value",value:M});await zcn({activeCtx:n,activeProperty:r,expandedActiveProperty:o,element:M,expandedParent:u,options:d,insideList:h,typeScopedContext:v,typeKey:w})}}}function Kcn({activeCtx:n,activeProperty:r,value:o,options:l}){if(o==null)return null;const u=Ud(n,r,{vocab:!0},l);if(u==="@id")return Ud(n,o,{base:!0},l);if(u==="@type")return Ud(n,o,{vocab:!0,base:!0},{...l,typeExpansion:!0});const d=Zw(n,r,"@type");if((d==="@id"||u==="@graph")&&Fb(o)){const w=Ud(n,o,{base:!0},l);return w===null&&o.match(J4r)&&l.eventHandler&&Ky({event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:"Reserved @id found.",details:{id:r}},options:l}),{"@id":w}}if(d==="@vocab"&&Fb(o))return{"@id":Ud(n,o,{vocab:!0,base:!0},l)};if(yBe(u))return o;const h={};if(d&&!["@id","@vocab","@none"].includes(d))h["@type"]=d;else if(Fb(o)){const w=Zw(n,r,"@language");w!==null&&(h["@language"]=w);const v=Zw(n,r,"@direction");v!==null&&(h["@direction"]=v)}return["boolean","number","string"].includes(typeof o)||(o=o.toString()),h["@value"]=o,h}function eTr(n,r,o,l){const u=[],d=Object.keys(r).sort();for(const h of d){const w=Ud(n,h,{vocab:!0},l);let v=r[h];Jy(v)||(v=[v]);for(const y of v){if(y===null)continue;if(!Fb(y))throw new ju("Invalid JSON-LD syntax; language map values must be strings.","jsonld.SyntaxError",{code:"invalid language map value",languageMap:r});const E={"@value":y};w!=="@none"&&(h.match(Gcn)||l.eventHandler&&Ky({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:h}},options:l}),E["@language"]=h.toLowerCase()),o&&(E["@direction"]=o),u.push(E)}}return u}async function nDe({activeCtx:n,options:r,activeProperty:o,value:l,asGraph:u,indexKey:d,propertyIndex:h}){const w=[],v=Object.keys(l).sort(),y=d==="@type";for(let E of v){if(y){const R=Zw(n,E,"@context");Che(R)||(n=await Cq({activeCtx:n,localCtx:R,propagate:!1,options:r}))}let A=l[E];Jy(A)||(A=[A]),A=await gT.expand({activeCtx:n,activeProperty:o,element:A,options:r,insideList:!1,insideIndex:!0});let C;h?E==="@none"?C="@none":C=Kcn({activeCtx:n,activeProperty:d,value:E,options:r}):C=Ud(n,E,{vocab:!0},r),d==="@id"?E=Ud(n,E,{base:!0},r):y&&(E=C);for(let R of A){if(u&&!q4r(R)&&(R={"@graph":[R]}),d==="@type")C==="@none"||(R["@type"]?R["@type"]=[E].concat(R["@type"]):R["@type"]=[E]);else{if(mBe(R)&&!["@language","@type","@index"].includes(d))throw new ju(`Invalid JSON-LD syntax; Attempt to add illegal key to value object: "${d}".`,"jsonld.SyntaxError",{code:"invalid value object",value:R});h?C!=="@none"&&Yw(R,h,C,{propertyIsArray:!0,prependValue:!0}):C!=="@none"&&!(d in R)&&(R[d]=E)}w.push(R)}}return w}const{isKeyword:qcn}=vO,AE=Ox,rDe=cm,LE=Sv,tTr=_v,e1={};var Uge=e1;e1.createMergedNodeMap=(n,r)=>{r=r||{};const o=r.issuer||new LE.IdentifierIssuer("_:b"),l={"@default":{}};return e1.createNodeMap(n,l,"@default",o),e1.mergeNodeMaps(l)};e1.createNodeMap=(n,r,o,l,u,d)=>{if(rDe.isArray(n)){for(const y of n)e1.createNodeMap(y,r,o,l,void 0,d);return}if(!rDe.isObject(n)){d&&d.push(n);return}if(AE.isValue(n)){if("@type"in n){let y=n["@type"];y.indexOf("_:")===0&&(n["@type"]=y=l.getId(y))}d&&d.push(n);return}else if(d&&AE.isList(n)){const y=[];e1.createNodeMap(n["@list"],r,o,l,u,y),d.push({"@list":y});return}if("@type"in n){const y=n["@type"];for(const E of y)E.indexOf("_:")===0&&l.getId(E)}rDe.isUndefined(u)&&(u=AE.isBlankNode(n)?l.getId(n["@id"]):n["@id"]),d&&d.push({"@id":u});const h=r[o],w=h[u]=h[u]||{};w["@id"]=u;const v=Object.keys(n).sort();for(let y of v){if(y==="@id")continue;if(y==="@reverse"){const A={"@id":u},C=n["@reverse"];for(const R in C){const O=C[R];for(const M of O){let L=M["@id"];AE.isBlankNode(M)&&(L=l.getId(L)),e1.createNodeMap(M,r,o,l,L),LE.addValue(h[L],R,A,{propertyIsArray:!0,allowDuplicate:!1})}}continue}if(y==="@graph"){u in r||(r[u]={}),e1.createNodeMap(n[y],r,u,l);continue}if(y==="@included"){e1.createNodeMap(n[y],r,o,l);continue}if(y!=="@type"&&qcn(y)){if(y==="@index"&&y in w&&(n[y]!==w[y]||n[y]["@id"]!==w[y]["@id"]))throw new tTr("Invalid JSON-LD syntax; conflicting @index property detected.","jsonld.SyntaxError",{code:"conflicting indexes",subject:w});w[y]=n[y];continue}const E=n[y];if(y.indexOf("_:")===0&&(y=l.getId(y)),E.length===0){LE.addValue(w,y,[],{propertyIsArray:!0});continue}for(let A of E)if(y==="@type"&&(A=A.indexOf("_:")===0?l.getId(A):A),AE.isSubject(A)||AE.isSubjectReference(A)){if("@id"in A&&!A["@id"])continue;const C=AE.isBlankNode(A)?l.getId(A["@id"]):A["@id"];LE.addValue(w,y,{"@id":C},{propertyIsArray:!0,allowDuplicate:!1}),e1.createNodeMap(A,r,o,l,C)}else if(AE.isValue(A))LE.addValue(w,y,A,{propertyIsArray:!0,allowDuplicate:!1});else if(AE.isList(A)){const C=[];e1.createNodeMap(A["@list"],r,o,l,u,C),A={"@list":C},LE.addValue(w,y,A,{propertyIsArray:!0,allowDuplicate:!1})}else e1.createNodeMap(A,r,o,l,u),LE.addValue(w,y,A,{propertyIsArray:!0,allowDuplicate:!1})}};e1.mergeNodeMapGraphs=n=>{const r={};for(const o of Object.keys(n).sort())for(const l of Object.keys(n[o]).sort()){const u=n[o][l];l in r||(r[l]={"@id":l});const d=r[l];for(const h of Object.keys(u).sort())if(qcn(h)&&h!=="@type")d[h]=LE.clone(u[h]);else for(const w of u[h])LE.addValue(d,h,LE.clone(w),{propertyIsArray:!0,allowDuplicate:!1})}return r};e1.mergeNodeMaps=n=>{const r=n["@default"],o=Object.keys(n).sort();for(const l of o){if(l==="@default")continue;const u=n[l];let d=r[l];d?"@graph"in d||(d["@graph"]=[]):r[l]=d={"@id":l,"@graph":[]};const h=d["@graph"];for(const w of Object.keys(u).sort()){const v=u[w];AE.isSubjectReference(v)||h.push(v)}}return r};const{isSubjectReference:nTr}=Ox,{createMergedNodeMap:rTr}=Uge,Xcn={};var iTr=Xcn;Xcn.flatten=n=>{const r=rTr(n),o=[],l=Object.keys(r).sort();for(let u=0;u{const{useRdfType:o=!1,useNativeTypes:l=!1,rdfDirection:u=null}=r,d={},h={"@default":d},w={};if(u){if(u==="compound-literal")throw new vBe("Unsupported rdfDirection value.","jsonld.InvalidRdfDirection",{value:u});if(u!=="i18n-datatype")throw new vBe("Unknown rdfDirection value.","jsonld.InvalidRdfDirection",{value:u})}for(const E of n){const A=E.graph.termType==="DefaultGraph"?"@default":E.graph.value;A in h||(h[A]={}),A!=="@default"&&!(A in d)&&(d[A]={"@id":A});const C=h[A],R=E.subject.value,O=E.predicate.value,M=E.object;R in C||(C[R]={"@id":R});const L=C[R],H=M.termType.endsWith("Node");if(H&&!(M.value in C)&&(C[M.value]={"@id":M.value}),O===sTr&&!o&&H){JKt(L,"@type",M.value,{propertyIsArray:!0});continue}const G=cTr(M,l,u,r);if(JKt(L,O,G,{propertyIsArray:!0}),H)if(M.value===lDe){const j=C[M.value];"usages"in j||(j.usages=[]),j.usages.push({node:L,property:O,value:G})}else M.value in w?w[M.value]=!1:w[M.value]={node:L,property:O,value:G}}for(const E in h){const A=h[E];if(!(lDe in A))continue;const C=A[lDe];if(C.usages){for(let R of C.usages){let O=R.node,M=R.property,L=R.value;const H=[],G=[];let j=Object.keys(O).length;for(;M===sDe&&FK.isObject(w[O["@id"]])&&FK.isArray(O[oDe])&&O[oDe].length===1&&FK.isArray(O[sDe])&&O[sDe].length===1&&(j===3||j===4&&FK.isArray(O["@type"])&&O["@type"].length===1&&O["@type"][0]===oTr)&&(H.push(O[oDe][0]),G.push(O["@id"]),R=w[O["@id"]],O=R.node,M=R.property,L=R.value,j=Object.keys(O).length,!!iDe.isBlankNode(O)););delete L["@id"],L["@list"]=H.reverse();for(const Q of G)delete A[Q]}delete C.usages}}const v=[],y=Object.keys(d).sort();for(const E of y){const A=d[E];if(E in h){const C=A["@graph"]=[],R=h[E],O=Object.keys(R).sort();for(const M of O){const L=R[M];iDe.isSubjectReference(L)||C.push(L)}}iDe.isSubjectReference(A)||v.push(A)}return v};function cTr(n,r,o,l){if(n.termType.endsWith("Node"))return{"@id":n.value};const u={"@value":n.value};if(n.language)n.language.match(XKt)||l.eventHandler&&YKt({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:n.language}},options:l}),u["@language"]=n.language;else{let d=n.datatype.value;if(d||(d=aDe),d===lTr){d="@json";try{u["@value"]=JSON.parse(u["@value"])}catch(h){throw new vBe("JSON literal could not be parsed.","jsonld.InvalidJsonLiteral",{code:"invalid JSON literal",value:u["@value"],cause:h})}}if(r){if(d===QKt)u["@value"]==="true"?u["@value"]=!0:u["@value"]==="false"&&(u["@value"]=!1);else if(FK.isNumeric(u["@value"]))if(d===eqt){const h=parseInt(u["@value"],10);h.toFixed(0)===u["@value"]&&(u["@value"]=h)}else d===ZKt&&(u["@value"]=parseFloat(u["@value"]));[QKt,eqt,ZKt,aDe].includes(d)||(u["@type"]=d)}else if(o==="i18n-datatype"&&d.startsWith("https://www.w3.org/ns/i18n#")){const[,h,w]=d.split(/[#_]/);h.length>0&&(u["@language"]=h,h.match(XKt)||l.eventHandler&&YKt({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:h}},options:l})),u["@direction"]=w}else d!==aDe&&(u["@type"]=d)}return u}const{createNodeMap:uTr}=Uge,{isKeyword:fTr}=vO,tqt=Ox,dTr=Ein,nqt=_v,pK=cm,hTr=Sv,{handleEvent:dP}=FJ,{RDF_FIRST:pTr,RDF_REST:bTr,RDF_NIL:gTr,RDF_TYPE:wTr,RDF_JSON_LITERAL:mTr,RDF_LANGSTRING:yTr,XSD_BOOLEAN:vTr,XSD_DOUBLE:rqt,XSD_INTEGER:_Tr,XSD_STRING:STr}=YGe,{isAbsolute:Ahe}=zT,Ycn={};var ETr=Ycn;Ycn.toRDF=(n,r)=>{const o=new hTr.IdentifierIssuer("_:b"),l={"@default":{}};uTr(n,l,"@default",o);const u=[],d=Object.keys(l).sort();for(const h of d){let w;if(h==="@default")w={termType:"DefaultGraph",value:""};else if(Ahe(h))h.startsWith("_:")?w={termType:"BlankNode"}:w={termType:"NamedNode"},w.value=h;else{r.eventHandler&&dP({event:{type:["JsonLdEvent"],code:"relative graph reference",level:"warning",message:"Relative graph reference found.",details:{graph:h}},options:r});continue}kTr(u,l[h],w,o,r)}return u};function kTr(n,r,o,l,u){const d=Object.keys(r).sort();for(const h of d){const w=r[h],v=Object.keys(w).sort();for(let y of v){const E=w[y];if(y==="@type")y=wTr;else if(fTr(y))continue;for(const A of E){const C={termType:h.startsWith("_:")?"BlankNode":"NamedNode",value:h};if(!Ahe(h)){u.eventHandler&&dP({event:{type:["JsonLdEvent"],code:"relative subject reference",level:"warning",message:"Relative subject reference found.",details:{subject:h}},options:u});continue}const R={termType:y.startsWith("_:")?"BlankNode":"NamedNode",value:y};if(!Ahe(y)){u.eventHandler&&dP({event:{type:["JsonLdEvent"],code:"relative predicate reference",level:"warning",message:"Relative predicate reference found.",details:{predicate:y}},options:u});continue}if(R.termType==="BlankNode"&&!u.produceGeneralizedRdf){u.eventHandler&&dP({event:{type:["JsonLdEvent"],code:"blank node predicate",level:"warning",message:"Dropping blank node predicate.",details:{property:l.getOldIds().find(M=>l.getId(M)===y)}},options:u});continue}const O=_Be(A,l,n,o,u.rdfDirection,u);O&&n.push({subject:C,predicate:R,object:O,graph:o})}}}}function RTr(n,r,o,l,u,d){const h={termType:"NamedNode",value:pTr},w={termType:"NamedNode",value:bTr},v={termType:"NamedNode",value:gTr},y=n.pop(),E=y?{termType:"BlankNode",value:r.getId()}:v;let A=E;for(const C of n){const R=_Be(C,r,o,l,u,d),O={termType:"BlankNode",value:r.getId()};o.push({subject:A,predicate:h,object:R,graph:l}),o.push({subject:A,predicate:w,object:O,graph:l}),A=O}if(y){const C=_Be(y,r,o,l,u,d);o.push({subject:A,predicate:h,object:C,graph:l}),o.push({subject:A,predicate:w,object:v,graph:l})}return E}function _Be(n,r,o,l,u,d){const h={};if(tqt.isValue(n)){h.termType="Literal",h.value=void 0,h.datatype={termType:"NamedNode"};let w=n["@value"];const v=n["@type"]||null;if(v==="@json")h.value=dTr(w),h.datatype.value=mTr;else if(pK.isBoolean(w))h.value=w.toString(),h.datatype.value=v||vTr;else if(pK.isDouble(w)||v===rqt)pK.isDouble(w)||(w=parseFloat(w)),h.value=w.toExponential(15).replace(/(\d)0*e\+?/,"$1E"),h.datatype.value=v||rqt;else if(pK.isNumber(w))h.value=w.toFixed(0),h.datatype.value=v||_Tr;else if("@direction"in n&&u==="i18n-datatype"){const y=(n["@language"]||"").toLowerCase(),E=n["@direction"],A=`https://www.w3.org/ns/i18n#${y}_${E}`;h.datatype.value=A,h.value=w}else{if("@direction"in n&&u==="compound-literal")throw new nqt("Unsupported rdfDirection value.","jsonld.InvalidRdfDirection",{value:u});if("@direction"in n&&u)throw new nqt("Unknown rdfDirection value.","jsonld.InvalidRdfDirection",{value:u});"@language"in n?("@direction"in n&&!u&&d.eventHandler&&dP({event:{type:["JsonLdEvent"],code:"rdfDirection not set",level:"warning",message:"rdfDirection not set for @direction.",details:{object:h.value}},options:d}),h.value=w,h.datatype.value=v||yTr,h.language=n["@language"]):("@direction"in n&&!u&&d.eventHandler&&dP({event:{type:["JsonLdEvent"],code:"rdfDirection not set",level:"warning",message:"rdfDirection not set for @direction.",details:{object:h.value}},options:d}),h.value=w,h.datatype.value=v||STr)}}else if(tqt.isList(n)){const w=RTr(n["@list"],r,o,l,u,d);h.termType=w.termType,h.value=w.value}else{const w=pK.isObject(n)?n["@id"]:n;h.termType=w.startsWith("_:")?"BlankNode":"NamedNode",h.value=w}return h.termType==="NamedNode"&&!Ahe(h.value)?(d.eventHandler&&dP({event:{type:["JsonLdEvent"],code:"relative object reference",level:"warning",message:"Relative object reference found.",details:{object:h.value}},options:d}),null):h}const{isKeyword:SBe}=vO,zy=Ox,jc=cm,fp=Sv,iqt=zT,Aq=_v,{createNodeMap:xTr,mergeNodeMapGraphs:CTr}=Uge,qy={};var ATr=qy;qy.frameMergedOrDefault=(n,r,o)=>{const l={options:o,embedded:!1,graph:"@default",graphMap:{"@default":{}},subjectStack:[],link:{},bnodeMap:{}},u=new fp.IdentifierIssuer("_:b");xTr(n,l.graphMap,"@default",u),o.merged&&(l.graphMap["@merged"]=CTr(l.graphMap),l.graph="@merged"),l.subjects=l.graphMap[l.graph];const d=[];qy.frame(l,Object.keys(l.subjects).sort(),r,d),o.pruneBlankNodeIdentifiers&&(o.bnodesToClear=Object.keys(l.bnodeMap).filter(h=>l.bnodeMap[h].length===1));// remove @preserve from results +return o.link={},hde(d,o)};qy.frame=(n,r,o,l,u=null)=>{Qcn(o),o=o[0];const d=n.options,h={embed:Yue(o,d,"embed"),explicit:Yue(o,d,"explicit"),requireAll:Yue(o,d,"requireAll")};n.link.hasOwnProperty(n.graph)||(n.link[n.graph]={});const w=n.link[n.graph],v=$Tr(n,r,o,h),y=Object.keys(v).sort();for(const E of y){const A=v[E];if(u===null?n.uniqueEmbeds={[n.graph]:{}}:n.uniqueEmbeds[n.graph]=n.uniqueEmbeds[n.graph]||{},h.embed==="@link"&&E in w){h8(l,u,w[E]);continue}const C={"@id":E};if(E.indexOf("_:")===0&&fp.addValue(n.bnodeMap,E,C,{propertyIsArray:!0}),w[E]=C,(h.embed==="@first"||h.embed==="@last")&&n.is11)throw new Aq("Invalid JSON-LD syntax; invalid value of @embed.","jsonld.SyntaxError",{code:"invalid @embed value",frame:o});if(!(!n.embedded&&n.uniqueEmbeds[n.graph].hasOwnProperty(E))){if(n.embedded&&(h.embed==="@never"||TTr(A,n.graph,n.subjectStack))){h8(l,u,C);continue}if(n.embedded&&(h.embed=="@first"||h.embed=="@once")&&n.uniqueEmbeds[n.graph].hasOwnProperty(E)){h8(l,u,C);continue}if(h.embed==="@last"&&E in n.uniqueEmbeds[n.graph]&&ITr(n,E),n.uniqueEmbeds[n.graph][E]={parent:l,property:u},n.subjectStack.push({subject:A,graph:n.graph}),E in n.graphMap){let R=!1,O=null;"@graph"in o?(O=o["@graph"][0],R=!(E==="@merged"||E==="@default"),jc.isObject(O)||(O={})):(R=n.graph!=="@merged",O={}),R&&qy.frame({...n,graph:E,embedded:!1},Object.keys(n.graphMap[E]).sort(),[O],C,"@graph")}"@included"in o&&qy.frame({...n,embedded:!1},r,o["@included"],C,"@included");for(const R of Object.keys(A).sort()){if(SBe(R)){if(C[R]=fp.clone(A[R]),R==="@type")for(const O of A["@type"])O.indexOf("_:")===0&&fp.addValue(n.bnodeMap,O,C,{propertyIsArray:!0});continue}if(!(h.explicit&&!(R in o)))for(const O of A[R]){const M=R in o?o[R]:oqt(h);if(zy.isList(O)){const L=o[R]&&o[R][0]&&o[R][0]["@list"]?o[R][0]["@list"]:oqt(h),H={"@list":[]};h8(C,R,H);const G=O["@list"];for(const j of G)zy.isSubjectReference(j)?qy.frame({...n,embedded:!0},[j["@id"]],L,H,"@list"):h8(H,"@list",fp.clone(j))}else zy.isSubjectReference(O)?qy.frame({...n,embedded:!0},[O["@id"]],M,C,R):EBe(M[0],O)&&h8(C,R,fp.clone(O))}}for(const R of Object.keys(o).sort()){if(R==="@type"){if(!jc.isObject(o[R][0])||!("@default"in o[R][0]))continue}else if(SBe(R))continue;const O=o[R][0]||{};if(!Yue(O,d,"omitDefault")&&!(R in C)){let L="@null";"@default"in O&&(L=fp.clone(O["@default"])),jc.isArray(L)||(L=[L]),C[R]=[{"@preserve":L}]}}for(const R of Object.keys(o["@reverse"]||{}).sort()){const O=o["@reverse"][R];for(const M of Object.keys(n.subjects))fp.getValues(n.subjects[M],R).some(H=>H["@id"]===E)&&(C["@reverse"]=C["@reverse"]||{},fp.addValue(C["@reverse"],R,[],{propertyIsArray:!0}),qy.frame({...n,embedded:!0},[M],O,C["@reverse"][R],u))}h8(l,u,C),n.subjectStack.pop()}}};qy.cleanupNull=(n,r)=>{if(jc.isArray(n))return n.map(l=>qy.cleanupNull(l,r)).filter(l=>l);if(n==="@null")return null;if(jc.isObject(n)){if("@id"in n){const o=n["@id"];if(r.link.hasOwnProperty(o)){const l=r.link[o].indexOf(n);if(l!==-1)return r.link[o][l];r.link[o].push(n)}else r.link[o]=[n]}for(const o in n)n[o]=qy.cleanupNull(n[o],r)}return n};function oqt(n){const r={};for(const o in n)n[o]!==void 0&&(r["@"+o]=[n[o]]);return[r]}function TTr(n,r,o){for(let l=o.length-1;l>=0;--l){const u=o[l];if(u.graph===r&&u.subject["@id"]===n["@id"])return!0}return!1}function Yue(n,r,o){const l="@"+o;let u=l in n?n[l][0]:r[o];if(o==="embed"){if(u===!0)u="@once";else if(u===!1)u="@never";else if(u!=="@always"&&u!=="@never"&&u!=="@link"&&u!=="@first"&&u!=="@last"&&u!=="@once")throw new Aq("Invalid JSON-LD syntax; invalid value of @embed.","jsonld.SyntaxError",{code:"invalid @embed value",frame:n})}return u}function Qcn(n){if(!jc.isArray(n)||n.length!==1||!jc.isObject(n[0]))throw new Aq("Invalid JSON-LD syntax; a JSON-LD frame must be a single object.","jsonld.SyntaxError",{frame:n});if("@id"in n[0]){for(const r of fp.asArray(n[0]["@id"]))if(!(jc.isObject(r)||iqt.isAbsolute(r))||jc.isString(r)&&r.indexOf("_:")===0)throw new Aq("Invalid JSON-LD syntax; invalid @id in frame.","jsonld.SyntaxError",{code:"invalid frame",frame:n})}if("@type"in n[0]){for(const r of fp.asArray(n[0]["@type"]))if(!(jc.isObject(r)||iqt.isAbsolute(r)||r==="@json")||jc.isString(r)&&r.indexOf("_:")===0)throw new Aq("Invalid JSON-LD syntax; invalid @type in frame.","jsonld.SyntaxError",{code:"invalid frame",frame:n})}}function $Tr(n,r,o,l){const u={};for(const d of r){const h=n.graphMap[n.graph][d];Zcn(n,h,o,l)&&(u[d]=h)}return u}function Zcn(n,r,o,l){let u=!0,d=!1;for(const h in o){let w=!1;const v=fp.getValues(r,h),y=fp.getValues(o,h).length===0;if(h==="@id"){if(jc.isEmptyObject(o["@id"][0]||{})?w=!0:o["@id"].length>=0&&(w=o["@id"].includes(v[0])),!l.requireAll)return w}else if(h==="@type"){if(u=!1,y){if(v.length>0)return!1;w=!0}else if(o["@type"].length===1&&jc.isEmptyObject(o["@type"][0]))w=v.length>0;else for(const E of o["@type"])jc.isObject(E)&&"@default"in E?w=!0:w=w||v.some(A=>A===E);if(!l.requireAll)return w}else{if(SBe(h))continue;{const E=fp.getValues(o,h)[0];let A=!1;if(E&&(Qcn([E]),A="@default"in E),u=!1,v.length===0&&A)continue;if(v.length>0&&y)return!1;if(E===void 0){if(v.length>0)return!1;w=!0}else if(zy.isList(E)){const C=E["@list"][0];if(zy.isList(v[0])){const R=v[0]["@list"];zy.isValue(C)?w=R.some(O=>EBe(C,O)):(zy.isSubject(C)||zy.isSubjectReference(C))&&(w=R.some(O=>sqt(n,C,O,l)))}}else zy.isValue(E)?w=v.some(C=>EBe(E,C)):zy.isSubjectReference(E)?w=v.some(C=>sqt(n,E,C,l)):jc.isObject(E)?w=v.length>0:w=!1}}if(!w&&l.requireAll)return!1;d=d||w}return u||d}function ITr(n,r){const o=n.uniqueEmbeds[n.graph],l=o[r],u=l.parent,d=l.property,h={"@id":r};if(jc.isArray(u)){for(let v=0;v{const y=Object.keys(o);for(const E of y)E in o&&jc.isObject(o[E].parent)&&o[E].parent["@id"]===v&&(delete o[E],w(E))};w(r)}/** * Removes the @preserve keywords from expanded result of framing. * * @param input the framed, framed output. * @param options the framing options used. * * @return the resulting output. - */function ude(n,r){if(jc.isArray(n))return n.map(o=>ude(o,r));if(jc.isObject(n)){// remove @preserve -if("@preserve"in n)return n["@preserve"][0];if(Ky.isValue(n))return n;if(Ky.isList(n))return n["@list"]=ude(n["@list"],r),n;if("@id"in n){const o=n["@id"];if(r.link.hasOwnProperty(o)){const l=r.link[o].indexOf(n);if(l!==-1)return r.link[o][l];r.link[o].push(n)}else r.link[o]=[n]}for(const o in n){if(o==="@id"&&r.bnodesToClear.includes(n[o])){delete n["@id"];continue}n[o]=ude(n[o],r)}}return n}function h8(n,r,o){jc.isObject(n)?fp.addValue(n,r,o,{propertyIsArray:!0}):n.push(o)}function ZKt(n,r,o,l){if(!("@id"in o))return!1;const u=n.subjects[o["@id"]];return u&&Gcn(n,u,r,l)}function gBe(n,r){const o=r["@value"],l=r["@type"],u=r["@language"],d=n["@value"]?jc.isArray(n["@value"])?n["@value"]:[n["@value"]]:[],h=n["@type"]?jc.isArray(n["@type"])?n["@type"]:[n["@type"]]:[],w=n["@language"]?jc.isArray(n["@language"])?n["@language"]:[n["@language"]]:[];return d.length===0&&h.length===0&&w.length===0?!0:!(!(d.includes(o)||jc.isEmptyObject(d[0]))||!(!l&&h.length===0||h.includes(l)||l&&jc.isEmptyObject(h[0]))||!(!u&&w.length===0||w.includes(u)||u&&jc.isEmptyObject(w[0])))}const qGe=_v,{isArray:D4,isObject:wT,isString:Vcn,isUndefined:iDe}=um,{isList:wBe,isValue:LR,isGraph:zcn,isSimpleGraph:eqt,isSubjectReference:oDe}=Ox,{expandIri:Kcn,getContextValue:Qg,isKeyword:qcn,process:sDe,processingMode:pTr}=_O,{removeBase:tqt,prependBase:bTr}=zT,{REGEX_KEYWORD:gTr,addValue:Xw,asArray:Jue,compareShortestLeast:wTr}=Sv,Qs={};var mTr=Qs;Qs.compact=async({activeCtx:n,activeProperty:r=null,element:o,options:l={}})=>{if(D4(o)){let d=[];for(let h=0;h1&&(y=Array.from(y).sort());const E=n;for(const C of y){const R=Qs.compactIri({activeCtx:E,iri:C,relativeTo:{vocab:!0}}),O=Qg(w,R,"@context");iDe(O)||(n=await sDe({activeCtx:n,localCtx:O,options:l,propagate:!1}))}const A=Object.keys(o).sort();for(const C of A){const R=o[C];if(C==="@id"){let O=Jue(R).map(L=>Qs.compactIri({activeCtx:n,iri:L,relativeTo:{vocab:!1},base:l.base}));O.length===1&&(O=O[0]);const M=Qs.compactIri({activeCtx:n,iri:"@id",relativeTo:{vocab:!0}});h[M]=O;continue}if(C==="@type"){let O=Jue(R).map(j=>Qs.compactIri({activeCtx:w,iri:j,relativeTo:{vocab:!0}}));O.length===1&&(O=O[0]);const M=Qs.compactIri({activeCtx:n,iri:"@type",relativeTo:{vocab:!0}}),G=(Qg(n,M,"@container")||[]).includes("@set")&&pTr(n,1.1)||D4(O)&&R.length===0;Xw(h,M,O,{propertyIsArray:G});continue}if(C==="@reverse"){const O=await Qs.compact({activeCtx:n,activeProperty:"@reverse",element:R,options:l});for(const M in O)if(n.mappings.has(M)&&n.mappings.get(M).reverse){const L=O[M],G=(Qg(n,M,"@container")||[]).includes("@set")||!l.compactArrays;Xw(h,M,L,{propertyIsArray:G}),delete O[M]}if(Object.keys(O).length>0){const M=Qs.compactIri({activeCtx:n,iri:C,relativeTo:{vocab:!0}});Xw(h,M,O)}continue}if(C==="@preserve"){const O=await Qs.compact({activeCtx:n,activeProperty:r,element:R,options:l});D4(O)&&O.length===0||Xw(h,C,O);continue}if(C==="@index"){if((Qg(n,r,"@container")||[]).includes("@index"))continue;const M=Qs.compactIri({activeCtx:n,iri:C,relativeTo:{vocab:!0}});Xw(h,M,R);continue}if(C!=="@graph"&&C!=="@list"&&C!=="@included"&&qcn(C)){const O=Qs.compactIri({activeCtx:n,iri:C,relativeTo:{vocab:!0}});Xw(h,O,R);continue}if(!D4(R))throw new qGe("JSON-LD expansion error; expanded value must be an array.","jsonld.SyntaxError");if(R.length===0){const O=Qs.compactIri({activeCtx:n,iri:C,value:R,relativeTo:{vocab:!0},reverse:d}),M=n.mappings.has(O)?n.mappings.get(O)["@nest"]:null;let L=h;M&&(nqt(n,M,l),wT(h[M])||(h[M]={}),L=h[M]),Xw(L,O,R,{propertyIsArray:!0})}for(const O of R){const M=Qs.compactIri({activeCtx:n,iri:C,value:O,relativeTo:{vocab:!0},reverse:d}),L=n.mappings.has(M)?n.mappings.get(M)["@nest"]:null;let H=h;L&&(nqt(n,L,l),wT(h[L])||(h[L]={}),H=h[L]);const G=Qg(n,M,"@container")||[],j=zcn(O),Q=wBe(O);let te;Q?te=O["@list"]:j&&(te=O["@graph"]);let pe=await Qs.compact({activeCtx:n,activeProperty:M,element:Q||j?te:O,options:l});if(Q)if(D4(pe)||(pe=[pe]),!G.includes("@list"))pe={[Qs.compactIri({activeCtx:n,iri:"@list",relativeTo:{vocab:!0}})]:pe},"@index"in O&&(pe[Qs.compactIri({activeCtx:n,iri:"@index",relativeTo:{vocab:!0}})]=O["@index"]);else{Xw(H,M,pe,{valueIsArray:!0,allowDuplicate:!0});continue}if(j)if(G.includes("@graph")&&(G.includes("@id")||G.includes("@index")&&eqt(O))){let Le;H.hasOwnProperty(M)?Le=H[M]:H[M]=Le={};const Ee=(G.includes("@id")?O["@id"]:O["@index"])||Qs.compactIri({activeCtx:n,iri:"@none",relativeTo:{vocab:!0}});Xw(Le,Ee,pe,{propertyIsArray:!l.compactArrays||G.includes("@set")})}else G.includes("@graph")&&eqt(O)?(D4(pe)&&pe.length>1&&(pe={"@included":pe}),Xw(H,M,pe,{propertyIsArray:!l.compactArrays||G.includes("@set")})):(D4(pe)&&pe.length===1&&l.compactArrays&&(pe=pe[0]),pe={[Qs.compactIri({activeCtx:n,iri:"@graph",relativeTo:{vocab:!0}})]:pe},"@id"in O&&(pe[Qs.compactIri({activeCtx:n,iri:"@id",relativeTo:{vocab:!0}})]=O["@id"]),"@index"in O&&(pe[Qs.compactIri({activeCtx:n,iri:"@index",relativeTo:{vocab:!0}})]=O["@index"]),Xw(H,M,pe,{propertyIsArray:!l.compactArrays||G.includes("@set")}));else if(G.includes("@language")||G.includes("@index")||G.includes("@id")||G.includes("@type")){let Le;H.hasOwnProperty(M)?Le=H[M]:H[M]=Le={};let Ee;if(G.includes("@language"))LR(pe)&&(pe=pe["@value"]),Ee=O["@language"];else if(G.includes("@index")){const le=Qg(n,M,"@index")||"@index",xe=Qs.compactIri({activeCtx:n,iri:le,relativeTo:{vocab:!0}});if(le==="@index")Ee=O["@index"],delete pe[xe];else{let be;if([Ee,...be]=Jue(pe[le]||[]),!Vcn(Ee))Ee=null;else switch(be.length){case 0:delete pe[le];break;case 1:pe[le]=be[0];break;default:pe[le]=be;break}}}else if(G.includes("@id")){const le=Qs.compactIri({activeCtx:n,iri:"@id",relativeTo:{vocab:!0}});Ee=pe[le],delete pe[le]}else if(G.includes("@type")){const le=Qs.compactIri({activeCtx:n,iri:"@type",relativeTo:{vocab:!0}});let xe;switch([Ee,...xe]=Jue(pe[le]||[]),xe.length){case 0:delete pe[le];break;case 1:pe[le]=xe[0];break;default:pe[le]=xe;break}Object.keys(pe).length===1&&"@id"in O&&(pe=await Qs.compact({activeCtx:n,activeProperty:M,element:{"@id":O["@id"]},options:l}))}Ee||(Ee=Qs.compactIri({activeCtx:n,iri:"@none",relativeTo:{vocab:!0}})),Xw(Le,Ee,pe,{propertyIsArray:G.includes("@set")})}else{const Le=!l.compactArrays||G.includes("@set")||G.includes("@list")||D4(pe)&&pe.length===0||C==="@list"||C==="@graph";Xw(H,M,pe,{propertyIsArray:Le})}}}return h}return o};Qs.compactIri=({activeCtx:n,iri:r,value:o=null,relativeTo:l={vocab:!1},reverse:u=!1,base:d=null})=>{if(r===null)return r;n.isPropertyTermScoped&&n.previousContext&&(n=n.previousContext);const h=n.getInverse();if(qcn(r)&&r in h&&"@none"in h[r]&&"@type"in h[r]["@none"]&&"@none"in h[r]["@none"]["@type"])return h[r]["@none"]["@type"]["@none"];if(l.vocab&&r in h){const A=n["@language"]||"@none",C=[];wT(o)&&"@index"in o&&!("@graph"in o)&&C.push("@index","@index@set"),wT(o)&&"@preserve"in o&&(o=o["@preserve"][0]),zcn(o)?("@index"in o&&C.push("@graph@index","@graph@index@set","@index","@index@set"),"@id"in o&&C.push("@graph@id","@graph@id@set"),C.push("@graph","@graph@set","@set"),"@index"in o||C.push("@graph@index","@graph@index@set","@index","@index@set"),"@id"in o||C.push("@graph@id","@graph@id@set")):wT(o)&&!LR(o)&&C.push("@id","@id@set","@type","@set@type");let R="@language",O="@null";if(u)R="@type",O="@reverse",C.push("@set");else if(wBe(o)){"@index"in o||C.push("@list");const L=o["@list"];if(L.length===0)R="@any",O="@none";else{let H=L.length===0?A:null,G=null;for(let j=0;j=0;--A){const C=v[A],R=C.terms;for(const O of R){const M=O+":"+r.substr(C.iri.length);n.mappings.get(O)._prefix&&(!n.mappings.has(M)||o===null&&n.mappings.get(M)["@id"]===r)&&(w===null||wTr(M,w)<0)&&(w=M)}}if(w!==null)return w;for(const[A,C]of n.mappings)if(C&&C._prefix&&r.startsWith(A+":"))throw new qGe(`Absolute IRI "${r}" confused with prefix "${A}".`,"jsonld.SyntaxError",{code:"IRI confused with prefix",context:n});if(!l.vocab)if("@base"in n)if(n["@base"]){const A=tqt(bTr(d,n["@base"]),r);return gTr.test(A)?`./${A}`:A}else return r;else return tqt(d,r);return r};Qs.compactValue=({activeCtx:n,activeProperty:r,value:o,options:l})=>{if(LR(o)){const w=Qg(n,r,"@type"),v=Qg(n,r,"@language"),y=Qg(n,r,"@direction"),E=Qg(n,r,"@container")||[],A="@index"in o&&!E.includes("@index");if(!A&&w!=="@none"&&(o["@type"]===w||"@language"in o&&o["@language"]===v&&"@direction"in o&&o["@direction"]===y||"@language"in o&&o["@language"]===v||"@direction"in o&&o["@direction"]===y))return o["@value"];const C=Object.keys(o).length,R=C===1||C===2&&"@index"in o&&!A,O="@language"in n,M=Vcn(o["@value"]),L=n.mappings.has(r)&&n.mappings.get(r)["@language"]===null;if(R&&w!=="@none"&&(!O||!M||L))return o["@value"];const H={};return A&&(H[Qs.compactIri({activeCtx:n,iri:"@index",relativeTo:{vocab:!0}})]=o["@index"]),"@type"in o?H[Qs.compactIri({activeCtx:n,iri:"@type",relativeTo:{vocab:!0}})]=Qs.compactIri({activeCtx:n,iri:o["@type"],relativeTo:{vocab:!0}}):"@language"in o&&(H[Qs.compactIri({activeCtx:n,iri:"@language",relativeTo:{vocab:!0}})]=o["@language"]),"@direction"in o&&(H[Qs.compactIri({activeCtx:n,iri:"@direction",relativeTo:{vocab:!0}})]=o["@direction"]),H[Qs.compactIri({activeCtx:n,iri:"@value",relativeTo:{vocab:!0}})]=o["@value"],H}const u=Kcn(n,r,{vocab:!0},l),d=Qg(n,r,"@type"),h=Qs.compactIri({activeCtx:n,iri:o["@id"],relativeTo:{vocab:d==="@vocab"},base:l.base});return d==="@id"||d==="@vocab"||u==="@graph"?h:{[Qs.compactIri({activeCtx:n,iri:"@id",relativeTo:{vocab:!0}})]:h}};function yTr(n,r,o,l,u,d){d===null&&(d="@null");const h=[];if((d==="@id"||d==="@reverse")&&wT(o)&&"@id"in o){d==="@reverse"&&h.push("@reverse");const v=Qs.compactIri({activeCtx:n,iri:o["@id"],relativeTo:{vocab:!0}});n.mappings.has(v)&&n.mappings.get(v)&&n.mappings.get(v)["@id"]===o["@id"]?h.push.apply(h,["@vocab","@id"]):h.push.apply(h,["@id","@vocab"])}else{h.push(d);const v=h.find(y=>y.includes("_"));v&&h.push(v.replace(/^[^_]+_/,"_"))}h.push("@none");const w=n.inverse[r];for(const v of l){if(!(v in w))continue;const y=w[v][u];for(const E of h)if(E in y)return y[E]}return null}function nqt(n,r,o){if(Kcn(n,r,{vocab:!0},o)!=="@nest")throw new qGe("JSON-LD compact error; nested property must have an @nest value resolving to @nest.","jsonld.SyntaxError",{code:"invalid @nest value"})}var lDe,rqt;function vTr(){return rqt||(rqt=1,lDe=n=>{class r{toString(){return"[object JsonLdProcessor]"}}return Object.defineProperty(r,"prototype",{writable:!1,enumerable:!1}),Object.defineProperty(r.prototype,"constructor",{writable:!0,enumerable:!1,configurable:!0,value:r}),r.compact=function(o,l){return arguments.length<2?Promise.reject(new TypeError("Could not compact, too few arguments.")):n.compact(o,l)},r.expand=function(o){return arguments.length<1?Promise.reject(new TypeError("Could not expand, too few arguments.")):n.expand(o)},r.flatten=function(o){return arguments.length<1?Promise.reject(new TypeError("Could not flatten, too few arguments.")):n.flatten(o)},r}),lDe}/** + */function hde(n,r){if(jc.isArray(n))return n.map(o=>hde(o,r));if(jc.isObject(n)){// remove @preserve +if("@preserve"in n)return n["@preserve"][0];if(zy.isValue(n))return n;if(zy.isList(n))return n["@list"]=hde(n["@list"],r),n;if("@id"in n){const o=n["@id"];if(r.link.hasOwnProperty(o)){const l=r.link[o].indexOf(n);if(l!==-1)return r.link[o][l];r.link[o].push(n)}else r.link[o]=[n]}for(const o in n){if(o==="@id"&&r.bnodesToClear.includes(n[o])){delete n["@id"];continue}n[o]=hde(n[o],r)}}return n}function h8(n,r,o){jc.isObject(n)?fp.addValue(n,r,o,{propertyIsArray:!0}):n.push(o)}function sqt(n,r,o,l){if(!("@id"in o))return!1;const u=n.subjects[o["@id"]];return u&&Zcn(n,u,r,l)}function EBe(n,r){const o=r["@value"],l=r["@type"],u=r["@language"],d=n["@value"]?jc.isArray(n["@value"])?n["@value"]:[n["@value"]]:[],h=n["@type"]?jc.isArray(n["@type"])?n["@type"]:[n["@type"]]:[],w=n["@language"]?jc.isArray(n["@language"])?n["@language"]:[n["@language"]]:[];return d.length===0&&h.length===0&&w.length===0?!0:!(!(d.includes(o)||jc.isEmptyObject(d[0]))||!(!l&&h.length===0||h.includes(l)||l&&jc.isEmptyObject(h[0]))||!(!u&&w.length===0||w.includes(u)||u&&jc.isEmptyObject(w[0])))}const eVe=_v,{isArray:D4,isObject:wT,isString:eun,isUndefined:cDe}=cm,{isList:kBe,isValue:LR,isGraph:tun,isSimpleGraph:lqt,isSubjectReference:uDe}=Ox,{expandIri:nun,getContextValue:Qg,isKeyword:run,process:fDe,processingMode:PTr}=vO,{removeBase:aqt,prependBase:OTr}=zT,{REGEX_KEYWORD:NTr,addValue:Xw,asArray:Que,compareShortestLeast:MTr}=Sv,Qs={};var DTr=Qs;Qs.compact=async({activeCtx:n,activeProperty:r=null,element:o,options:l={}})=>{if(D4(o)){let d=[];for(let h=0;h1&&(y=Array.from(y).sort());const E=n;for(const C of y){const R=Qs.compactIri({activeCtx:E,iri:C,relativeTo:{vocab:!0}}),O=Qg(w,R,"@context");cDe(O)||(n=await fDe({activeCtx:n,localCtx:O,options:l,propagate:!1}))}const A=Object.keys(o).sort();for(const C of A){const R=o[C];if(C==="@id"){let O=Que(R).map(L=>Qs.compactIri({activeCtx:n,iri:L,relativeTo:{vocab:!1},base:l.base}));O.length===1&&(O=O[0]);const M=Qs.compactIri({activeCtx:n,iri:"@id",relativeTo:{vocab:!0}});h[M]=O;continue}if(C==="@type"){let O=Que(R).map(j=>Qs.compactIri({activeCtx:w,iri:j,relativeTo:{vocab:!0}}));O.length===1&&(O=O[0]);const M=Qs.compactIri({activeCtx:n,iri:"@type",relativeTo:{vocab:!0}}),G=(Qg(n,M,"@container")||[]).includes("@set")&&PTr(n,1.1)||D4(O)&&R.length===0;Xw(h,M,O,{propertyIsArray:G});continue}if(C==="@reverse"){const O=await Qs.compact({activeCtx:n,activeProperty:"@reverse",element:R,options:l});for(const M in O)if(n.mappings.has(M)&&n.mappings.get(M).reverse){const L=O[M],G=(Qg(n,M,"@container")||[]).includes("@set")||!l.compactArrays;Xw(h,M,L,{propertyIsArray:G}),delete O[M]}if(Object.keys(O).length>0){const M=Qs.compactIri({activeCtx:n,iri:C,relativeTo:{vocab:!0}});Xw(h,M,O)}continue}if(C==="@preserve"){const O=await Qs.compact({activeCtx:n,activeProperty:r,element:R,options:l});D4(O)&&O.length===0||Xw(h,C,O);continue}if(C==="@index"){if((Qg(n,r,"@container")||[]).includes("@index"))continue;const M=Qs.compactIri({activeCtx:n,iri:C,relativeTo:{vocab:!0}});Xw(h,M,R);continue}if(C!=="@graph"&&C!=="@list"&&C!=="@included"&&run(C)){const O=Qs.compactIri({activeCtx:n,iri:C,relativeTo:{vocab:!0}});Xw(h,O,R);continue}if(!D4(R))throw new eVe("JSON-LD expansion error; expanded value must be an array.","jsonld.SyntaxError");if(R.length===0){const O=Qs.compactIri({activeCtx:n,iri:C,value:R,relativeTo:{vocab:!0},reverse:d}),M=n.mappings.has(O)?n.mappings.get(O)["@nest"]:null;let L=h;M&&(cqt(n,M,l),wT(h[M])||(h[M]={}),L=h[M]),Xw(L,O,R,{propertyIsArray:!0})}for(const O of R){const M=Qs.compactIri({activeCtx:n,iri:C,value:O,relativeTo:{vocab:!0},reverse:d}),L=n.mappings.has(M)?n.mappings.get(M)["@nest"]:null;let H=h;L&&(cqt(n,L,l),wT(h[L])||(h[L]={}),H=h[L]);const G=Qg(n,M,"@container")||[],j=tun(O),Q=kBe(O);let te;Q?te=O["@list"]:j&&(te=O["@graph"]);let pe=await Qs.compact({activeCtx:n,activeProperty:M,element:Q||j?te:O,options:l});if(Q)if(D4(pe)||(pe=[pe]),!G.includes("@list"))pe={[Qs.compactIri({activeCtx:n,iri:"@list",relativeTo:{vocab:!0}})]:pe},"@index"in O&&(pe[Qs.compactIri({activeCtx:n,iri:"@index",relativeTo:{vocab:!0}})]=O["@index"]);else{Xw(H,M,pe,{valueIsArray:!0,allowDuplicate:!0});continue}if(j)if(G.includes("@graph")&&(G.includes("@id")||G.includes("@index")&&lqt(O))){let De;H.hasOwnProperty(M)?De=H[M]:H[M]=De={};const Re=(G.includes("@id")?O["@id"]:O["@index"])||Qs.compactIri({activeCtx:n,iri:"@none",relativeTo:{vocab:!0}});Xw(De,Re,pe,{propertyIsArray:!l.compactArrays||G.includes("@set")})}else G.includes("@graph")&&lqt(O)?(D4(pe)&&pe.length>1&&(pe={"@included":pe}),Xw(H,M,pe,{propertyIsArray:!l.compactArrays||G.includes("@set")})):(D4(pe)&&pe.length===1&&l.compactArrays&&(pe=pe[0]),pe={[Qs.compactIri({activeCtx:n,iri:"@graph",relativeTo:{vocab:!0}})]:pe},"@id"in O&&(pe[Qs.compactIri({activeCtx:n,iri:"@id",relativeTo:{vocab:!0}})]=O["@id"]),"@index"in O&&(pe[Qs.compactIri({activeCtx:n,iri:"@index",relativeTo:{vocab:!0}})]=O["@index"]),Xw(H,M,pe,{propertyIsArray:!l.compactArrays||G.includes("@set")}));else if(G.includes("@language")||G.includes("@index")||G.includes("@id")||G.includes("@type")){let De;H.hasOwnProperty(M)?De=H[M]:H[M]=De={};let Re;if(G.includes("@language"))LR(pe)&&(pe=pe["@value"]),Re=O["@language"];else if(G.includes("@index")){const le=Qg(n,M,"@index")||"@index",xe=Qs.compactIri({activeCtx:n,iri:le,relativeTo:{vocab:!0}});if(le==="@index")Re=O["@index"],delete pe[xe];else{let be;if([Re,...be]=Que(pe[le]||[]),!eun(Re))Re=null;else switch(be.length){case 0:delete pe[le];break;case 1:pe[le]=be[0];break;default:pe[le]=be;break}}}else if(G.includes("@id")){const le=Qs.compactIri({activeCtx:n,iri:"@id",relativeTo:{vocab:!0}});Re=pe[le],delete pe[le]}else if(G.includes("@type")){const le=Qs.compactIri({activeCtx:n,iri:"@type",relativeTo:{vocab:!0}});let xe;switch([Re,...xe]=Que(pe[le]||[]),xe.length){case 0:delete pe[le];break;case 1:pe[le]=xe[0];break;default:pe[le]=xe;break}Object.keys(pe).length===1&&"@id"in O&&(pe=await Qs.compact({activeCtx:n,activeProperty:M,element:{"@id":O["@id"]},options:l}))}Re||(Re=Qs.compactIri({activeCtx:n,iri:"@none",relativeTo:{vocab:!0}})),Xw(De,Re,pe,{propertyIsArray:G.includes("@set")})}else{const De=!l.compactArrays||G.includes("@set")||G.includes("@list")||D4(pe)&&pe.length===0||C==="@list"||C==="@graph";Xw(H,M,pe,{propertyIsArray:De})}}}return h}return o};Qs.compactIri=({activeCtx:n,iri:r,value:o=null,relativeTo:l={vocab:!1},reverse:u=!1,base:d=null})=>{if(r===null)return r;n.isPropertyTermScoped&&n.previousContext&&(n=n.previousContext);const h=n.getInverse();if(run(r)&&r in h&&"@none"in h[r]&&"@type"in h[r]["@none"]&&"@none"in h[r]["@none"]["@type"])return h[r]["@none"]["@type"]["@none"];if(l.vocab&&r in h){const A=n["@language"]||"@none",C=[];wT(o)&&"@index"in o&&!("@graph"in o)&&C.push("@index","@index@set"),wT(o)&&"@preserve"in o&&(o=o["@preserve"][0]),tun(o)?("@index"in o&&C.push("@graph@index","@graph@index@set","@index","@index@set"),"@id"in o&&C.push("@graph@id","@graph@id@set"),C.push("@graph","@graph@set","@set"),"@index"in o||C.push("@graph@index","@graph@index@set","@index","@index@set"),"@id"in o||C.push("@graph@id","@graph@id@set")):wT(o)&&!LR(o)&&C.push("@id","@id@set","@type","@set@type");let R="@language",O="@null";if(u)R="@type",O="@reverse",C.push("@set");else if(kBe(o)){"@index"in o||C.push("@list");const L=o["@list"];if(L.length===0)R="@any",O="@none";else{let H=L.length===0?A:null,G=null;for(let j=0;j=0;--A){const C=v[A],R=C.terms;for(const O of R){const M=O+":"+r.substr(C.iri.length);n.mappings.get(O)._prefix&&(!n.mappings.has(M)||o===null&&n.mappings.get(M)["@id"]===r)&&(w===null||MTr(M,w)<0)&&(w=M)}}if(w!==null)return w;for(const[A,C]of n.mappings)if(C&&C._prefix&&r.startsWith(A+":"))throw new eVe(`Absolute IRI "${r}" confused with prefix "${A}".`,"jsonld.SyntaxError",{code:"IRI confused with prefix",context:n});if(!l.vocab)if("@base"in n)if(n["@base"]){const A=aqt(OTr(d,n["@base"]),r);return NTr.test(A)?`./${A}`:A}else return r;else return aqt(d,r);return r};Qs.compactValue=({activeCtx:n,activeProperty:r,value:o,options:l})=>{if(LR(o)){const w=Qg(n,r,"@type"),v=Qg(n,r,"@language"),y=Qg(n,r,"@direction"),E=Qg(n,r,"@container")||[],A="@index"in o&&!E.includes("@index");if(!A&&w!=="@none"&&(o["@type"]===w||"@language"in o&&o["@language"]===v&&"@direction"in o&&o["@direction"]===y||"@language"in o&&o["@language"]===v||"@direction"in o&&o["@direction"]===y))return o["@value"];const C=Object.keys(o).length,R=C===1||C===2&&"@index"in o&&!A,O="@language"in n,M=eun(o["@value"]),L=n.mappings.has(r)&&n.mappings.get(r)["@language"]===null;if(R&&w!=="@none"&&(!O||!M||L))return o["@value"];const H={};return A&&(H[Qs.compactIri({activeCtx:n,iri:"@index",relativeTo:{vocab:!0}})]=o["@index"]),"@type"in o?H[Qs.compactIri({activeCtx:n,iri:"@type",relativeTo:{vocab:!0}})]=Qs.compactIri({activeCtx:n,iri:o["@type"],relativeTo:{vocab:!0}}):"@language"in o&&(H[Qs.compactIri({activeCtx:n,iri:"@language",relativeTo:{vocab:!0}})]=o["@language"]),"@direction"in o&&(H[Qs.compactIri({activeCtx:n,iri:"@direction",relativeTo:{vocab:!0}})]=o["@direction"]),H[Qs.compactIri({activeCtx:n,iri:"@value",relativeTo:{vocab:!0}})]=o["@value"],H}const u=nun(n,r,{vocab:!0},l),d=Qg(n,r,"@type"),h=Qs.compactIri({activeCtx:n,iri:o["@id"],relativeTo:{vocab:d==="@vocab"},base:l.base});return d==="@id"||d==="@vocab"||u==="@graph"?h:{[Qs.compactIri({activeCtx:n,iri:"@id",relativeTo:{vocab:!0}})]:h}};function LTr(n,r,o,l,u,d){d===null&&(d="@null");const h=[];if((d==="@id"||d==="@reverse")&&wT(o)&&"@id"in o){d==="@reverse"&&h.push("@reverse");const v=Qs.compactIri({activeCtx:n,iri:o["@id"],relativeTo:{vocab:!0}});n.mappings.has(v)&&n.mappings.get(v)&&n.mappings.get(v)["@id"]===o["@id"]?h.push.apply(h,["@vocab","@id"]):h.push.apply(h,["@id","@vocab"])}else{h.push(d);const v=h.find(y=>y.includes("_"));v&&h.push(v.replace(/^[^_]+_/,"_"))}h.push("@none");const w=n.inverse[r];for(const v of l){if(!(v in w))continue;const y=w[v][u];for(const E of h)if(E in y)return y[E]}return null}function cqt(n,r,o){if(nun(n,r,{vocab:!0},o)!=="@nest")throw new eVe("JSON-LD compact error; nested property must have an @nest value resolving to @nest.","jsonld.SyntaxError",{code:"invalid @nest value"})}var dDe,uqt;function jTr(){return uqt||(uqt=1,dDe=n=>{class r{toString(){return"[object JsonLdProcessor]"}}return Object.defineProperty(r,"prototype",{writable:!1,enumerable:!1}),Object.defineProperty(r.prototype,"constructor",{writable:!0,enumerable:!1,configurable:!0,value:r}),r.compact=function(o,l){return arguments.length<2?Promise.reject(new TypeError("Could not compact, too few arguments.")):n.compact(o,l)},r.expand=function(o){return arguments.length<1?Promise.reject(new TypeError("Could not expand, too few arguments.")):n.expand(o)},r.flatten=function(o){return arguments.length<1?Promise.reject(new TypeError("Could not flatten, too few arguments.")):n.flatten(o)},r}),dDe}/** * A JavaScript implementation of the JSON-LD API. * * @author Dave Longley @@ -2094,8 +2094,8 @@ if("@preserve"in n)return n["@preserve"][0];if(Ky.isValue(n))return n;if(Ky.isLi * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */const iqt=GGe,oqt=l4r,B4=Sv,RR=v4r,aDe=B4.IdentifierIssuer,RE=_v,_Tr=$cn,Yue=S4r,{expand:STr}=M4r,{flatten:ETr}=B4r,{fromRDF:kTr}=G4r,{toRDF:RTr}=oTr,{frameMergedOrDefault:xTr,cleanupNull:CTr}=uTr,{isArray:uD,isObject:p8,isString:xE}=um,{isSubjectReference:ATr}=Ox,{expandIri:TTr,getInitialContext:Que,process:sqt,processingMode:cDe}=_O,{compact:$Tr,compactIri:ITr}=mTr,{createNodeMap:PTr,createMergedNodeMap:OTr,mergeNodeMaps:NTr}=Fge,{logEventHandler:MTr,logWarningEventHandler:DTr,safeEventHandler:LTr,setDefaultEventHandler:jTr,setupEventHandler:FTr,strictEventHandler:BTr,unhandledEventHandler:WTr}=LJ,Xcn=function(n){const r={},l=new _Tr({max:100});n.compact=async function(d,h,w){if(arguments.length<2)throw new TypeError("Could not compact, too few arguments.");if(h===null)throw new RE("The compaction context must not be null.","jsonld.CompactError",{code:"invalid local context"});if(d===null)return null;w=u(w,{base:xE(d)?d:"",compactArrays:!0,compactToRelative:!0,graph:!1,skipExpansion:!1,link:!1,issuer:new aDe("_:b"),contextResolver:new RR({sharedCache:l})}),w.link&&(w.skipExpansion=!0),w.compactToRelative||delete w.base;let v;w.skipExpansion?v=d:v=await n.expand(d,w);const y=await n.processContext(Que(w),h,w);let E=await $Tr({activeCtx:y,element:v,options:w});w.compactArrays&&!w.graph&&uD(E)?E.length===1?E=E[0]:E.length===0&&(E={}):w.graph&&p8(E)&&(E=[E]),p8(h)&&"@context"in h&&(h=h["@context"]),h=B4.clone(h),uD(h)||(h=[h]);const A=h;h=[];for(let R=0;R0)&&h.push(A[R]);const C=h.length>0;if(h.length===1&&(h=h[0]),uD(E)){const R=ITr({activeCtx:y,iri:"@graph",relativeTo:{vocab:!0}}),O=E;E={},C&&(E["@context"]=h),E[R]=O}else if(p8(E)&&C){const R=E;E={"@context":h};for(const O in R)E[O]=R[O]}return E},n.expand=async function(d,h){if(arguments.length<1)throw new TypeError("Could not expand, too few arguments.");h=u(h,{keepFreeFloatingNodes:!1,contextResolver:new RR({sharedCache:l})});const w={},v=[];if("expandContext"in h){const C=B4.clone(h.expandContext);p8(C)&&"@context"in C?w.expandContext=C:w.expandContext={"@context":C},v.push(w.expandContext)}let y;if(!xE(d))w.input=B4.clone(d);else{const C=await n.get(d,h);y=C.documentUrl,w.input=C.document,C.contextUrl&&(w.remoteContext={"@context":C.contextUrl},v.push(w.remoteContext))}"base"in h||(h.base=y||"");let E=Que(h);for(const C of v)E=await sqt({activeCtx:E,localCtx:C,options:h});let A=await STr({activeCtx:E,element:w.input,options:h});return p8(A)&&"@graph"in A&&Object.keys(A).length===1?A=A["@graph"]:A===null&&(A=[]),uD(A)||(A=[A]),A},n.flatten=async function(d,h,w){if(arguments.length<1)return new TypeError("Could not flatten, too few arguments.");typeof h=="function"?h=null:h=h||null,w=u(w,{base:xE(d)?d:"",contextResolver:new RR({sharedCache:l})});const v=await n.expand(d,w),y=ETr(v);return h===null?y:(w.graph=!0,w.skipExpansion=!0,await n.compact(y,h,w))},n.frame=async function(d,h,w){if(arguments.length<2)throw new TypeError("Could not frame, too few arguments.");if(w=u(w,{base:xE(d)?d:"",embed:"@once",explicit:!1,requireAll:!1,omitDefault:!1,bnodesToClear:[],contextResolver:new RR({sharedCache:l})}),xE(h)){const L=await n.get(h,w);if(h=L.document,L.contextUrl){let H=h["@context"];H?uD(H)?H.push(L.contextUrl):H=[H,L.contextUrl]:H=L.contextUrl,h["@context"]=H}}const v=h?h["@context"]||{}:{},y=await n.processContext(Que(w),v,w);w.hasOwnProperty("omitGraph")||(w.omitGraph=cDe(y,1.1)),w.hasOwnProperty("pruneBlankNodeIdentifiers")||(w.pruneBlankNodeIdentifiers=cDe(y,1.1));const E=await n.expand(d,w),A={...w};A.isFrame=!0,A.keepFreeFloatingNodes=!0;const C=await n.expand(h,A),R=Object.keys(h).map(L=>TTr(y,L,{vocab:!0}));A.merged=!R.includes("@graph"),A.is11=cDe(y,1.1);const O=xTr(E,C,A);A.graph=!w.omitGraph,A.skipExpansion=!0,A.link={},A.framing=!0;let M=await n.compact(O,v,A);return A.link={},M=CTr(M,A),M},n.link=async function(d,h,w){const v={};return h&&(v["@context"]=h),v["@embed"]="@link",n.frame(d,v,w)},n.normalize=n.canonize=async function(d,h){if(arguments.length<1)throw new TypeError("Could not canonize, too few arguments.");if(h=u(h,{base:xE(d)?d:null,algorithm:"URDNA2015",skipExpansion:!1,safe:!0,contextResolver:new RR({sharedCache:l})}),"inputFormat"in h){if(h.inputFormat!=="application/n-quads"&&h.inputFormat!=="application/nquads")throw new RE("Unknown canonicalization input format.","jsonld.CanonizeError");const y=Yue.parse(d);return iqt.canonize(y,h)}const w={...h};delete w.format,w.produceGeneralizedRdf=!1;const v=await n.toRDF(d,w);return iqt.canonize(v,h)},n.fromRDF=async function(d,h){if(arguments.length<1)throw new TypeError("Could not convert from RDF, too few arguments.");h=u(h,{format:xE(d)?"application/n-quads":void 0});const{format:w}=h;let{rdfParser:v}=h;if(w){if(v=v||r[w],!v)throw new RE("Unknown input format.","jsonld.UnknownFormat",{format:w})}else v=()=>d;const y=await v(d);return kTr(y,h)},n.toRDF=async function(d,h){if(arguments.length<1)throw new TypeError("Could not convert to RDF, too few arguments.");h=u(h,{base:xE(d)?d:"",skipExpansion:!1,contextResolver:new RR({sharedCache:l})});let w;h.skipExpansion?w=d:w=await n.expand(d,h);const v=RTr(w,h);if(h.format){if(h.format==="application/n-quads"||h.format==="application/nquads")return Yue.serialize(v);throw new RE("Unknown output format.","jsonld.UnknownFormat",{format:h.format})}return v},n.createNodeMap=async function(d,h){if(arguments.length<1)throw new TypeError("Could not create node map, too few arguments.");h=u(h,{base:xE(d)?d:"",contextResolver:new RR({sharedCache:l})});const w=await n.expand(d,h);return OTr(w,h)},n.merge=async function(d,h,w){if(arguments.length<1)throw new TypeError("Could not merge, too few arguments.");if(!uD(d))throw new TypeError('Could not merge, "docs" must be an array.');typeof h=="function"?h=null:h=h||null,w=u(w,{contextResolver:new RR({sharedCache:l})});const v=await Promise.all(d.map(L=>{const H={...w};return n.expand(L,H)}));let y=!0;"mergeNodes"in w&&(y=w.mergeNodes);const E=w.issuer||new aDe("_:b"),A={"@default":{}};for(let L=0;Ln._documentLoader,set:d=>n._documentLoader=d}),n.documentLoader=async d=>{throw new RE("Could not retrieve a JSON-LD document from the URL. URL dereferencing not implemented.","jsonld.LoadDocumentError",{code:"loading document failed",url:d})},n.get=async function(d,h){let w;typeof h.documentLoader=="function"?w=h.documentLoader:w=n.documentLoader;const v=await w(d);try{if(!v.document)throw new RE("No remote document found at the given URL.","jsonld.NullRemoteDocument");xE(v.document)&&(v.document=JSON.parse(v.document))}catch(y){throw new RE("Could not retrieve a JSON-LD document from the URL.","jsonld.LoadDocumentError",{code:"loading document failed",cause:y,remoteDoc:v})}return v},n.processContext=async function(d,h,w){return w=u(w,{base:"",contextResolver:new RR({sharedCache:l})}),h===null?Que(w):(h=B4.clone(h),p8(h)&&"@context"in h||(h={"@context":h}),sqt({activeCtx:d,localCtx:h,options:w}))},n.getContextValue=_O.getContextValue,n.documentLoaders={},n.useDocumentLoader=function(d){if(!(d in n.documentLoaders))throw new RE('Unknown document loader type: "'+d+'"',"jsonld.UnknownDocumentLoader",{type:d});n.documentLoader=n.documentLoaders[d].apply(n,Array.prototype.slice.call(arguments,1))},n.registerRDFParser=function(d,h){r[d]=h},n.unregisterRDFParser=function(d){delete r[d]},n.registerRDFParser("application/n-quads",Yue.parse),n.registerRDFParser("application/nquads",Yue.parse),n.url=zT,n.logEventHandler=MTr,n.logWarningEventHandler=DTr,n.safeEventHandler=LTr,n.setDefaultEventHandler=jTr,n.strictEventHandler=BTr,n.unhandledEventHandler=WTr,n.util=B4,Object.assign(n,B4),n.promises=n,n.RequestQueue=Acn(),n.JsonLdProcessor=vTr()(n),oqt.setupGlobals(n),oqt.setupDocumentLoaders(n);function u(d,{documentLoader:h=n.documentLoader,...w}){if(d&&"compactionMap"in d)throw new RE('"compactionMap" not supported.',"jsonld.OptionsError");if(d&&"expansionMap"in d)throw new RE('"expansionMap" not supported.',"jsonld.OptionsError");return Object.assign({},{documentLoader:h},w,d,{eventHandler:FTr({options:d})})}return n},XGe=function(){return Xcn(function(){return XGe()})};Xcn(XGe);var HTr=XGe;const rUr=cv(HTr);var Jcn={exports:{}},uDe={exports:{}},Gf={ArrayIsArray(n){return Array.isArray(n)},ArrayPrototypeIncludes(n,r){return n.includes(r)},ArrayPrototypeIndexOf(n,r){return n.indexOf(r)},ArrayPrototypeJoin(n,r){return n.join(r)},ArrayPrototypeMap(n,r){return n.map(r)},ArrayPrototypePop(n,r){return n.pop(r)},ArrayPrototypePush(n,r){return n.push(r)},ArrayPrototypeSlice(n,r,o){return n.slice(r,o)},Error,FunctionPrototypeCall(n,r,...o){return n.call(r,...o)},FunctionPrototypeSymbolHasInstance(n,r){return Function.prototype[Symbol.hasInstance].call(n,r)},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(n,r){return Object.defineProperties(n,r)},ObjectDefineProperty(n,r,o){return Object.defineProperty(n,r,o)},ObjectGetOwnPropertyDescriptor(n,r){return Object.getOwnPropertyDescriptor(n,r)},ObjectKeys(n){return Object.keys(n)},ObjectSetPrototypeOf(n,r){return Object.setPrototypeOf(n,r)},Promise,PromisePrototypeCatch(n,r){return n.catch(r)},PromisePrototypeThen(n,r,o){return n.then(r,o)},PromiseReject(n){return Promise.reject(n)},PromiseResolve(n){return Promise.resolve(n)},ReflectApply:Reflect.apply,RegExpPrototypeTest(n,r){return n.test(r)},SafeSet:Set,String,StringPrototypeSlice(n,r,o){return n.slice(r,o)},StringPrototypeToLowerCase(n){return n.toLowerCase()},StringPrototypeToUpperCase(n){return n.toUpperCase()},StringPrototypeTrim(n){return n.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(n,r,o){return n.set(r,o)},Boolean,Uint8Array},Ycn={exports:{}};(function(n){const r=Kr,{kResistStopPropagation:o,SymbolDispose:l}=Gf,u=globalThis.AbortSignal||$o().AbortSignal,d=globalThis.AbortController||$o().AbortController,h=Object.getPrototypeOf(async function(){}).constructor,w=globalThis.Blob||r.Blob,v=typeof w<"u"?function(R){return R instanceof w}:function(R){return!1},y=(C,R)=>{if(C!==void 0&&(C===null||typeof C!="object"||!("aborted"in C)))throw new ERR_INVALID_ARG_TYPE(R,"AbortSignal",C)},E=(C,R)=>{if(typeof C!="function")throw new ERR_INVALID_ARG_TYPE(R,"Function",C)};class A extends Error{constructor(R){if(!Array.isArray(R))throw new TypeError(`Expected input to be an Array, got ${typeof R}`);let O="";for(let M=0;M{C=M,R=L}),resolve:C,reject:R}},promisify(C){return new Promise((R,O)=>{C((M,...L)=>M?O(M):R(...L))})},debuglog(){return function(){}},format(C,...R){return C.replace(/%([sdifj])/g,function(...[O,M]){const L=R.shift();return M==="f"?L.toFixed(6):M==="j"?JSON.stringify(L):M==="s"&&typeof L=="object"?`${L.constructor!==Object?L.constructor.name:""} {}`.trim():L.toString()})},inspect(C){switch(typeof C){case"string":if(C.includes("'"))if(C.includes('"')){if(!C.includes("`")&&!C.includes("${"))return`\`${C}\``}else return`"${C}"`;return`'${C}'`;case"number":return isNaN(C)?"NaN":Object.is(C,-0)?String(C):C;case"bigint":return`${String(C)}n`;case"boolean":case"undefined":return String(C);case"object":return"{}"}},types:{isAsyncFunction(C){return C instanceof h},isArrayBufferView(C){return ArrayBuffer.isView(C)}},isBlob:v,deprecate(C,R){return C},addAbortListener:Ns.addAbortListener||function(R,O){if(R===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",R);y(R,"signal"),E(O,"listener");let M;return R.aborted?queueMicrotask(()=>O()):(R.addEventListener("abort",O,{__proto__:null,once:!0,[o]:!0}),M=()=>{R.removeEventListener("abort",O)}),{__proto__:null,[l](){var L;(L=M)===null||L===void 0||L()}}},AbortSignalAny:u.any||function(R){if(R.length===1)return R[0];const O=new d,M=()=>O.abort();return R.forEach(L=>{y(L,"signals"),L.addEventListener("abort",M,{once:!0})}),O.signal.addEventListener("abort",()=>{R.forEach(L=>L.removeEventListener("abort",M))},{once:!0}),O.signal}},n.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(Ycn);var g1=Ycn.exports,JGe={};const{format:UTr,inspect:xhe,AggregateError:GTr}=g1,VTr=globalThis.AggregateError||GTr,zTr=Symbol("kIsNodeError"),KTr=["string","function","number","object","Function","Object","boolean","bigint","symbol"],qTr=/^([A-Z][a-z0-9]*)+$/,XTr="__node_internal_",Bge={};function pP(n,r){if(!n)throw new Bge.ERR_INTERNAL_ASSERTION(r)}function lqt(n){let r="",o=n.length;const l=n[0]==="-"?1:0;for(;o>=l+4;o-=3)r=`_${n.slice(o-3,o)}${r}`;return`${n.slice(0,o)}${r}`}function JTr(n,r,o){if(typeof r=="function")return pP(r.length<=o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${r.length}).`),r(...o);const l=(r.match(/%[dfijoOs]/g)||[]).length;return pP(l===o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${l}).`),o.length===0?r:UTr(r,...o)}function rb(n,r,o){o||(o=Error);class l extends o{constructor(...d){super(JTr(n,r,d))}toString(){return`${this.name} [${n}]: ${this.message}`}}Object.defineProperties(l.prototype,{name:{value:o.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${n}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),l.prototype.code=n,l.prototype[zTr]=!0,Bge[n]=l}function aqt(n){const r=XTr+n.name;return Object.defineProperty(n,"name",{value:r}),n}function YTr(n,r){if(n&&r&&n!==r){if(Array.isArray(r.errors))return r.errors.push(n),r;const o=new VTr([r,n],r.message);return o.code=r.code,o}return n||r}let QTr=class extends Error{constructor(r="The operation was aborted",o=void 0){if(o!==void 0&&typeof o!="object")throw new Bge.ERR_INVALID_ARG_TYPE("options","Object",o);super(r,o),this.code="ABORT_ERR",this.name="AbortError"}};rb("ERR_ASSERTION","%s",Error);rb("ERR_INVALID_ARG_TYPE",(n,r,o)=>{pP(typeof n=="string","'name' must be a string"),Array.isArray(r)||(r=[r]);let l="The ";n.endsWith(" argument")?l+=`${n} `:l+=`"${n}" ${n.includes(".")?"property":"argument"} `,l+="must be ";const u=[],d=[],h=[];for(const v of r)pP(typeof v=="string","All expected entries have to be of type string"),KTr.includes(v)?u.push(v.toLowerCase()):qTr.test(v)?d.push(v):(pP(v!=="object",'The value "object" should be written as "Object"'),h.push(v));if(d.length>0){const v=u.indexOf("object");v!==-1&&(u.splice(u,v,1),d.push("Object"))}if(u.length>0){switch(u.length){case 1:l+=`of type ${u[0]}`;break;case 2:l+=`one of type ${u[0]} or ${u[1]}`;break;default:{const v=u.pop();l+=`one of type ${u.join(", ")}, or ${v}`}}(d.length>0||h.length>0)&&(l+=" or ")}if(d.length>0){switch(d.length){case 1:l+=`an instance of ${d[0]}`;break;case 2:l+=`an instance of ${d[0]} or ${d[1]}`;break;default:{const v=d.pop();l+=`an instance of ${d.join(", ")}, or ${v}`}}h.length>0&&(l+=" or ")}switch(h.length){case 0:break;case 1:h[0].toLowerCase()!==h[0]&&(l+="an "),l+=`${h[0]}`;break;case 2:l+=`one of ${h[0]} or ${h[1]}`;break;default:{const v=h.pop();l+=`one of ${h.join(", ")}, or ${v}`}}if(o==null)l+=`. Received ${o}`;else if(typeof o=="function"&&o.name)l+=`. Received function ${o.name}`;else if(typeof o=="object"){var w;if((w=o.constructor)!==null&&w!==void 0&&w.name)l+=`. Received an instance of ${o.constructor.name}`;else{const v=xhe(o,{depth:-1});l+=`. Received ${v}`}}else{let v=xhe(o,{colors:!1});v.length>25&&(v=`${v.slice(0,25)}...`),l+=`. Received type ${typeof o} (${v})`}return l},TypeError);rb("ERR_INVALID_ARG_VALUE",(n,r,o="is invalid")=>{let l=xhe(r);return l.length>128&&(l=l.slice(0,128)+"..."),`The ${n.includes(".")?"property":"argument"} '${n}' ${o}. Received ${l}`},TypeError);rb("ERR_INVALID_RETURN_VALUE",(n,r,o)=>{var l;const u=o!=null&&(l=o.constructor)!==null&&l!==void 0&&l.name?`instance of ${o.constructor.name}`:`type ${typeof o}`;return`Expected ${n} to be returned from the "${r}" function but got ${u}.`},TypeError);rb("ERR_MISSING_ARGS",(...n)=>{pP(n.length>0,"At least one arg needs to be specified");let r;const o=n.length;switch(n=(Array.isArray(n)?n:[n]).map(l=>`"${l}"`).join(" or "),o){case 1:r+=`The ${n[0]} argument`;break;case 2:r+=`The ${n[0]} and ${n[1]} arguments`;break;default:{const l=n.pop();r+=`The ${n.join(", ")}, and ${l} arguments`}break}return`${r} must be specified`},TypeError);rb("ERR_OUT_OF_RANGE",(n,r,o)=>{pP(r,'Missing "range" argument');let l;return Number.isInteger(o)&&Math.abs(o)>2**32?l=lqt(String(o)):typeof o=="bigint"?(l=String(o),(o>2n**32n||o<-(2n**32n))&&(l=lqt(l)),l+="n"):l=xhe(o),`The value of "${n}" is out of range. It must be ${r}. Received ${l}`},RangeError);rb("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);rb("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);rb("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);rb("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);rb("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);rb("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);rb("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);rb("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);rb("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);rb("ERR_STREAM_WRITE_AFTER_END","write after end",Error);rb("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var D0={AbortError:QTr,aggregateTwoErrors:aqt(YTr),hideStackFrames:aqt,codes:Bge};const{ArrayIsArray:YGe,ArrayPrototypeIncludes:Qcn,ArrayPrototypeJoin:Zcn,ArrayPrototypeMap:ZTr,NumberIsInteger:QGe,NumberIsNaN:e$r,NumberMAX_SAFE_INTEGER:t$r,NumberMIN_SAFE_INTEGER:n$r,NumberParseInt:r$r,ObjectPrototypeHasOwnProperty:i$r,RegExpPrototypeExec:eun,String:o$r,StringPrototypeToUpperCase:s$r,StringPrototypeTrim:l$r}=Gf,{hideStackFrames:Ev,codes:{ERR_SOCKET_BAD_PORT:a$r,ERR_INVALID_ARG_TYPE:eg,ERR_INVALID_ARG_VALUE:Pj,ERR_OUT_OF_RANGE:DP,ERR_UNKNOWN_SIGNAL:cqt}}=D0,{normalizeEncoding:c$r}=g1,{isAsyncFunction:u$r,isArrayBufferView:f$r}=g1.types,uqt={};function d$r(n){return n===(n|0)}function h$r(n){return n===n>>>0}const p$r=/^[0-7]+$/,b$r="must be a 32-bit unsigned integer or an octal string";function g$r(n,r,o){if(typeof n>"u"&&(n=o),typeof n=="string"){if(eun(p$r,n)===null)throw new Pj(r,n,b$r);n=r$r(n,8)}return tun(n,r),n}const w$r=Ev((n,r,o=n$r,l=t$r)=>{if(typeof n!="number")throw new eg(r,"number",n);if(!QGe(n))throw new DP(r,"an integer",n);if(nl)throw new DP(r,`>= ${o} && <= ${l}`,n)}),m$r=Ev((n,r,o=-2147483648,l=2147483647)=>{if(typeof n!="number")throw new eg(r,"number",n);if(!QGe(n))throw new DP(r,"an integer",n);if(nl)throw new DP(r,`>= ${o} && <= ${l}`,n)}),tun=Ev((n,r,o=!1)=>{if(typeof n!="number")throw new eg(r,"number",n);if(!QGe(n))throw new DP(r,"an integer",n);const l=o?1:0,u=4294967295;if(nu)throw new DP(r,`>= ${l} && <= ${u}`,n)});function ZGe(n,r){if(typeof n!="string")throw new eg(r,"string",n)}function y$r(n,r,o=void 0,l){if(typeof n!="number")throw new eg(r,"number",n);if(o!=null&&nl||(o!=null||l!=null)&&e$r(n))throw new DP(r,`${o!=null?`>= ${o}`:""}${o!=null&&l!=null?" && ":""}${l!=null?`<= ${l}`:""}`,n)}const v$r=Ev((n,r,o)=>{if(!Qcn(o,n)){const u="must be one of: "+Zcn(ZTr(o,d=>typeof d=="string"?`'${d}'`:o$r(d)),", ");throw new Pj(r,n,u)}});function nun(n,r){if(typeof n!="boolean")throw new eg(r,"boolean",n)}function fDe(n,r,o){return n==null||!i$r(n,r)?o:n[r]}const _$r=Ev((n,r,o=null)=>{const l=fDe(o,"allowArray",!1),u=fDe(o,"allowFunction",!1);if(!fDe(o,"nullable",!1)&&n===null||!l&&YGe(n)||typeof n!="object"&&(!u||typeof n!="function"))throw new eg(r,"Object",n)}),S$r=Ev((n,r)=>{if(n!=null&&typeof n!="object"&&typeof n!="function")throw new eg(r,"a dictionary",n)}),Wge=Ev((n,r,o=0)=>{if(!YGe(n))throw new eg(r,"Array",n);if(n.length{if(!f$r(n))throw new eg(r,["Buffer","TypedArray","DataView"],n)});function A$r(n,r){const o=c$r(r),l=n.length;if(o==="hex"&&l%2!==0)throw new Pj("encoding",r,`is invalid for data of length ${l}`)}function T$r(n,r="Port",o=!0){if(typeof n!="number"&&typeof n!="string"||typeof n=="string"&&l$r(n).length===0||+n!==+n>>>0||n>65535||n===0&&!o)throw new a$r(r,n,o);return n|0}const run=Ev((n,r)=>{if(n!==void 0&&(n===null||typeof n!="object"||!("aborted"in n)))throw new eg(r,"AbortSignal",n)}),$$r=Ev((n,r)=>{if(typeof n!="function")throw new eg(r,"Function",n)}),I$r=Ev((n,r)=>{if(typeof n!="function"||u$r(n))throw new eg(r,"Function",n)}),P$r=Ev((n,r)=>{if(n!==void 0)throw new eg(r,"undefined",n)});function O$r(n,r,o){if(!Qcn(o,n))throw new eg(r,`('${Zcn(o,"|")}')`,n)}const N$r=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function fqt(n,r){if(typeof n>"u"||!eun(N$r,n))throw new Pj(r,n,'must be an array or string of format "; rel=preload; as=style"')}function M$r(n){if(typeof n=="string")return fqt(n,"hints"),n;if(YGe(n)){const r=n.length;let o="";if(r===0)return o;for(let l=0;l; rel=preload; as=style"')}var jJ={isInt32:d$r,isUint32:h$r,parseFileMode:g$r,validateArray:Wge,validateStringArray:E$r,validateBooleanArray:k$r,validateAbortSignalArray:R$r,validateBoolean:nun,validateBuffer:C$r,validateDictionary:S$r,validateEncoding:A$r,validateFunction:$$r,validateInt32:m$r,validateInteger:w$r,validateNumber:y$r,validateObject:_$r,validateOneOf:v$r,validatePlainFunction:I$r,validatePort:T$r,validateSignalName:x$r,validateString:ZGe,validateUint32:tun,validateUndefined:P$r,validateUnion:O$r,validateAbortSignal:run,validateLinkHeaderValue:M$r},eVe={exports:{}};const{SymbolAsyncIterator:dqt,SymbolIterator:hqt,SymbolFor:SO}=Gf,iun=SO("nodejs.stream.destroyed"),oun=SO("nodejs.stream.errored"),mBe=SO("nodejs.stream.readable"),yBe=SO("nodejs.stream.writable"),sun=SO("nodejs.stream.disturbed"),D$r=SO("nodejs.webstream.isClosedPromise"),L$r=SO("nodejs.webstream.controllerErrorFunction");function Hge(n,r=!1){var o;return!!(n&&typeof n.pipe=="function"&&typeof n.on=="function"&&(!r||typeof n.pause=="function"&&typeof n.resume=="function")&&(!n._writableState||((o=n._readableState)===null||o===void 0?void 0:o.readable)!==!1)&&(!n._writableState||n._readableState))}function Uge(n){var r;return!!(n&&typeof n.write=="function"&&typeof n.on=="function"&&(!n._readableState||((r=n._writableState)===null||r===void 0?void 0:r.writable)!==!1))}function j$r(n){return!!(n&&typeof n.pipe=="function"&&n._readableState&&typeof n.on=="function"&&typeof n.write=="function")}function Rk(n){return n&&(n._readableState||n._writableState||typeof n.write=="function"&&typeof n.on=="function"||typeof n.pipe=="function"&&typeof n.on=="function")}function lun(n){return!!(n&&!Rk(n)&&typeof n.pipeThrough=="function"&&typeof n.getReader=="function"&&typeof n.cancel=="function")}function aun(n){return!!(n&&!Rk(n)&&typeof n.getWriter=="function"&&typeof n.abort=="function")}function cun(n){return!!(n&&!Rk(n)&&typeof n.readable=="object"&&typeof n.writable=="object")}function F$r(n){return lun(n)||aun(n)||cun(n)}function B$r(n,r){return n==null?!1:r===!0?typeof n[dqt]=="function":r===!1?typeof n[hqt]=="function":typeof n[dqt]=="function"||typeof n[hqt]=="function"}function Gge(n){if(!Rk(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!!(n.destroyed||n[iun]||l!=null&&l.destroyed)}function uun(n){if(!Uge(n))return null;if(n.writableEnded===!0)return!0;const r=n._writableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function W$r(n,r){if(!Uge(n))return null;if(n.writableFinished===!0)return!0;const o=n._writableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.finished)!="boolean"?null:!!(o.finished||r===!1&&o.ended===!0&&o.length===0)}function H$r(n){if(!Hge(n))return null;if(n.readableEnded===!0)return!0;const r=n._readableState;return!r||r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function fun(n,r){if(!Hge(n))return null;const o=n._readableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.endEmitted)!="boolean"?null:!!(o.endEmitted||r===!1&&o.ended===!0&&o.length===0)}function dun(n){return n&&n[mBe]!=null?n[mBe]:typeof(n==null?void 0:n.readable)!="boolean"?null:Gge(n)?!1:Hge(n)&&n.readable&&!fun(n)}function hun(n){return n&&n[yBe]!=null?n[yBe]:typeof(n==null?void 0:n.writable)!="boolean"?null:Gge(n)?!1:Uge(n)&&n.writable&&!uun(n)}function U$r(n,r){return Rk(n)?Gge(n)?!0:!((r==null?void 0:r.readable)!==!1&&dun(n)||(r==null?void 0:r.writable)!==!1&&hun(n)):null}function G$r(n){var r,o;return Rk(n)?n.writableErrored?n.writableErrored:(r=(o=n._writableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function V$r(n){var r,o;return Rk(n)?n.readableErrored?n.readableErrored:(r=(o=n._readableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function z$r(n){if(!Rk(n))return null;if(typeof n.closed=="boolean")return n.closed;const r=n._writableState,o=n._readableState;return typeof(r==null?void 0:r.closed)=="boolean"||typeof(o==null?void 0:o.closed)=="boolean"?(r==null?void 0:r.closed)||(o==null?void 0:o.closed):typeof n._closed=="boolean"&&pun(n)?n._closed:null}function pun(n){return typeof n._closed=="boolean"&&typeof n._defaultKeepAlive=="boolean"&&typeof n._removedConnection=="boolean"&&typeof n._removedContLen=="boolean"}function bun(n){return typeof n._sent100=="boolean"&&pun(n)}function K$r(n){var r;return typeof n._consuming=="boolean"&&typeof n._dumped=="boolean"&&((r=n.req)===null||r===void 0?void 0:r.upgradeOrConnect)===void 0}function q$r(n){if(!Rk(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!l&&bun(n)||!!(l&&l.autoDestroy&&l.emitClose&&l.closed===!1)}function X$r(n){var r;return!!(n&&((r=n[sun])!==null&&r!==void 0?r:n.readableDidRead||n.readableAborted))}function J$r(n){var r,o,l,u,d,h,w,v,y,E;return!!(n&&((r=(o=(l=(u=(d=(h=n[oun])!==null&&h!==void 0?h:n.readableErrored)!==null&&d!==void 0?d:n.writableErrored)!==null&&u!==void 0?u:(w=n._readableState)===null||w===void 0?void 0:w.errorEmitted)!==null&&l!==void 0?l:(v=n._writableState)===null||v===void 0?void 0:v.errorEmitted)!==null&&o!==void 0?o:(y=n._readableState)===null||y===void 0?void 0:y.errored)!==null&&r!==void 0?r:!((E=n._writableState)===null||E===void 0)&&E.errored))}var Nx={isDestroyed:Gge,kIsDestroyed:iun,isDisturbed:X$r,kIsDisturbed:sun,isErrored:J$r,kIsErrored:oun,isReadable:dun,kIsReadable:mBe,kIsClosedPromise:D$r,kControllerErrorFunction:L$r,kIsWritable:yBe,isClosed:z$r,isDuplexNodeStream:j$r,isFinished:U$r,isIterable:B$r,isReadableNodeStream:Hge,isReadableStream:lun,isReadableEnded:H$r,isReadableFinished:fun,isReadableErrored:V$r,isNodeStream:Rk,isWebStream:F$r,isWritable:hun,isWritableNodeStream:Uge,isWritableStream:aun,isWritableEnded:uun,isWritableFinished:W$r,isWritableErrored:G$r,isServerRequest:K$r,isServerResponse:bun,willEmitClose:q$r,isTransformStream:cun};const eT=ui,{AbortError:gun,codes:Y$r}=D0,{ERR_INVALID_ARG_TYPE:Q$r,ERR_STREAM_PREMATURE_CLOSE:pqt}=Y$r,{kEmptyObject:vBe,once:_Be}=g1,{validateAbortSignal:Z$r,validateFunction:e6r,validateObject:t6r,validateBoolean:n6r}=jJ,{Promise:r6r,PromisePrototypeThen:i6r,SymbolDispose:wun}=Gf,{isClosed:o6r,isReadable:bqt,isReadableNodeStream:dDe,isReadableStream:s6r,isReadableFinished:gqt,isReadableErrored:wqt,isWritable:mqt,isWritableNodeStream:yqt,isWritableStream:l6r,isWritableFinished:vqt,isWritableErrored:_qt,isNodeStream:a6r,willEmitClose:c6r,kIsClosedPromise:u6r}=Nx;let gL;function f6r(n){return n.setHeader&&typeof n.abort=="function"}const SBe=()=>{};function mun(n,r,o){var l,u;if(arguments.length===2?(o=r,r=vBe):r==null?r=vBe:t6r(r,"options"),e6r(o,"callback"),Z$r(r.signal,"options.signal"),o=_Be(o),s6r(n)||l6r(n))return d6r(n,r,o);if(!a6r(n))throw new Q$r("stream",["ReadableStream","WritableStream","Stream"],n);const d=(l=r.readable)!==null&&l!==void 0?l:dDe(n),h=(u=r.writable)!==null&&u!==void 0?u:yqt(n),w=n._writableState,v=n._readableState,y=()=>{n.writable||C()};let E=c6r(n)&&dDe(n)===d&&yqt(n)===h,A=vqt(n,!1);const C=()=>{A=!0,n.destroyed&&(E=!1),!(E&&(!n.readable||d))&&(!d||R)&&o.call(n)};let R=gqt(n,!1);const O=()=>{R=!0,n.destroyed&&(E=!1),!(E&&(!n.writable||h))&&(!h||A)&&o.call(n)},M=te=>{o.call(n,te)};let L=o6r(n);const H=()=>{L=!0;const te=_qt(n)||wqt(n);if(te&&typeof te!="boolean")return o.call(n,te);if(d&&!R&&dDe(n,!0)&&!gqt(n,!1))return o.call(n,new pqt);if(h&&!A&&!vqt(n,!1))return o.call(n,new pqt);o.call(n)},G=()=>{L=!0;const te=_qt(n)||wqt(n);if(te&&typeof te!="boolean")return o.call(n,te);o.call(n)},j=()=>{n.req.on("finish",C)};f6r(n)?(n.on("complete",C),E||n.on("abort",H),n.req?j():n.on("request",j)):h&&!w&&(n.on("end",y),n.on("close",y)),!E&&typeof n.aborted=="boolean"&&n.on("aborted",H),n.on("end",O),n.on("finish",C),r.error!==!1&&n.on("error",M),n.on("close",H),L?eT.nextTick(H):w!=null&&w.errorEmitted||v!=null&&v.errorEmitted?E||eT.nextTick(G):(!d&&(!E||bqt(n))&&(A||mqt(n)===!1)||!h&&(!E||mqt(n))&&(R||bqt(n)===!1)||v&&n.req&&n.aborted)&&eT.nextTick(G);const Q=()=>{o=SBe,n.removeListener("aborted",H),n.removeListener("complete",C),n.removeListener("abort",H),n.removeListener("request",j),n.req&&n.req.removeListener("finish",C),n.removeListener("end",y),n.removeListener("close",y),n.removeListener("finish",C),n.removeListener("end",O),n.removeListener("error",M),n.removeListener("close",H)};if(r.signal&&!L){const te=()=>{const pe=o;Q(),pe.call(n,new gun(void 0,{cause:r.signal.reason}))};if(r.signal.aborted)eT.nextTick(te);else{gL=gL||g1.addAbortListener;const pe=gL(r.signal,te),Le=o;o=_Be((...Ee)=>{pe[wun](),Le.apply(n,Ee)})}}return Q}function d6r(n,r,o){let l=!1,u=SBe;if(r.signal)if(u=()=>{l=!0,o.call(n,new gun(void 0,{cause:r.signal.reason}))},r.signal.aborted)eT.nextTick(u);else{gL=gL||g1.addAbortListener;const h=gL(r.signal,u),w=o;o=_Be((...v)=>{h[wun](),w.apply(n,v)})}const d=(...h)=>{l||eT.nextTick(()=>o.apply(n,h))};return i6r(n[u6r].promise,d,d),SBe}function h6r(n,r){var o;let l=!1;return r===null&&(r=vBe),(o=r)!==null&&o!==void 0&&o.cleanup&&(n6r(r.cleanup,"cleanup"),l=r.cleanup),new r6r((u,d)=>{const h=mun(n,r,w=>{l&&h(),w?d(w):u()})})}eVe.exports=mun;eVe.exports.finished=h6r;var KT=eVe.exports;const JE=ui,{aggregateTwoErrors:p6r,codes:{ERR_MULTIPLE_CALLBACK:b6r},AbortError:g6r}=D0,{Symbol:yun}=Gf,{kIsDestroyed:w6r,isDestroyed:m6r,isFinished:y6r,isServerRequest:v6r}=Nx,vun=yun("kDestroy"),EBe=yun("kConstruct");function _un(n,r,o){n&&(n.stack,r&&!r.errored&&(r.errored=n),o&&!o.errored&&(o.errored=n))}function _6r(n,r){const o=this._readableState,l=this._writableState,u=l||o;return l!=null&&l.destroyed||o!=null&&o.destroyed?(typeof r=="function"&&r(),this):(_un(n,l,o),l&&(l.destroyed=!0),o&&(o.destroyed=!0),u.constructed?Sqt(this,n,r):this.once(vun,function(d){Sqt(this,p6r(d,n),r)}),this)}function Sqt(n,r,o){let l=!1;function u(d){if(l)return;l=!0;const h=n._readableState,w=n._writableState;_un(d,w,h),w&&(w.closed=!0),h&&(h.closed=!0),typeof o=="function"&&o(d),d?JE.nextTick(S6r,n,d):JE.nextTick(Sun,n)}try{n._destroy(r||null,u)}catch(d){u(d)}}function S6r(n,r){kBe(n,r),Sun(n)}function Sun(n){const r=n._readableState,o=n._writableState;o&&(o.closeEmitted=!0),r&&(r.closeEmitted=!0),(o!=null&&o.emitClose||r!=null&&r.emitClose)&&n.emit("close")}function kBe(n,r){const o=n._readableState,l=n._writableState;l!=null&&l.errorEmitted||o!=null&&o.errorEmitted||(l&&(l.errorEmitted=!0),o&&(o.errorEmitted=!0),n.emit("error",r))}function E6r(){const n=this._readableState,r=this._writableState;n&&(n.constructed=!0,n.closed=!1,n.closeEmitted=!1,n.destroyed=!1,n.errored=null,n.errorEmitted=!1,n.reading=!1,n.ended=n.readable===!1,n.endEmitted=n.readable===!1),r&&(r.constructed=!0,r.destroyed=!1,r.closed=!1,r.closeEmitted=!1,r.errored=null,r.errorEmitted=!1,r.finalCalled=!1,r.prefinished=!1,r.ended=r.writable===!1,r.ending=r.writable===!1,r.finished=r.writable===!1)}function RBe(n,r,o){const l=n._readableState,u=n._writableState;if(u!=null&&u.destroyed||l!=null&&l.destroyed)return this;l!=null&&l.autoDestroy||u!=null&&u.autoDestroy?n.destroy(r):r&&(r.stack,u&&!u.errored&&(u.errored=r),l&&!l.errored&&(l.errored=r),o?JE.nextTick(kBe,n,r):kBe(n,r))}function k6r(n,r){if(typeof n._construct!="function")return;const o=n._readableState,l=n._writableState;o&&(o.constructed=!1),l&&(l.constructed=!1),n.once(EBe,r),!(n.listenerCount(EBe)>1)&&JE.nextTick(R6r,n)}function R6r(n){let r=!1;function o(l){if(r){RBe(n,l??new b6r);return}r=!0;const u=n._readableState,d=n._writableState,h=d||u;u&&(u.constructed=!0),d&&(d.constructed=!0),h.destroyed?n.emit(vun,l):l?RBe(n,l,!0):JE.nextTick(x6r,n)}try{n._construct(l=>{JE.nextTick(o,l)})}catch(l){JE.nextTick(o,l)}}function x6r(n){n.emit(EBe)}function Eqt(n){return(n==null?void 0:n.setHeader)&&typeof n.abort=="function"}function Eun(n){n.emit("close")}function C6r(n,r){n.emit("error",r),JE.nextTick(Eun,n)}function A6r(n,r){!n||m6r(n)||(!r&&!y6r(n)&&(r=new g6r),v6r(n)?(n.socket=null,n.destroy(r)):Eqt(n)?n.abort():Eqt(n.req)?n.req.abort():typeof n.destroy=="function"?n.destroy(r):typeof n.close=="function"?n.close():r?JE.nextTick(C6r,n,r):JE.nextTick(Eun,n),n.destroyed||(n[w6r]=!0))}var Oj={construct:k6r,destroyer:A6r,destroy:_6r,undestroy:E6r,errorOrDestroy:RBe};const{ArrayIsArray:T6r,ObjectSetPrototypeOf:kun}=Gf,{EventEmitter:Vge}=Ns;function zge(n){Vge.call(this,n)}kun(zge.prototype,Vge.prototype);kun(zge,Vge);zge.prototype.pipe=function(n,r){const o=this;function l(E){n.writable&&n.write(E)===!1&&o.pause&&o.pause()}o.on("data",l);function u(){o.readable&&o.resume&&o.resume()}n.on("drain",u),!n._isStdio&&(!r||r.end!==!1)&&(o.on("end",h),o.on("close",w));let d=!1;function h(){d||(d=!0,n.end())}function w(){d||(d=!0,typeof n.destroy=="function"&&n.destroy())}function v(E){y(),Vge.listenerCount(this,"error")===0&&this.emit("error",E)}xBe(o,"error",v),xBe(n,"error",v);function y(){o.removeListener("data",l),n.removeListener("drain",u),o.removeListener("end",h),o.removeListener("close",w),o.removeListener("error",v),n.removeListener("error",v),o.removeListener("end",y),o.removeListener("close",y),n.removeListener("close",y)}return o.on("end",y),o.on("close",y),n.on("close",y),n.emit("pipe",o),n};function xBe(n,r,o){if(typeof n.prependListener=="function")return n.prependListener(r,o);!n._events||!n._events[r]?n.on(r,o):T6r(n._events[r])?n._events[r].unshift(o):n._events[r]=[o,n._events[r]]}var tVe={Stream:zge,prependListener:xBe},Run={exports:{}};(function(n){const{SymbolDispose:r}=Gf,{AbortError:o,codes:l}=D0,{isNodeStream:u,isWebStream:d,kControllerErrorFunction:h}=Nx,w=KT,{ERR_INVALID_ARG_TYPE:v}=l;let y;const E=(A,C)=>{if(typeof A!="object"||!("aborted"in A))throw new v(C,"AbortSignal",A)};n.exports.addAbortSignal=function(C,R){if(E(C,"signal"),!u(R)&&!d(R))throw new v("stream",["ReadableStream","WritableStream","Stream"],R);return n.exports.addAbortSignalNoValidate(C,R)},n.exports.addAbortSignalNoValidate=function(A,C){if(typeof A!="object"||!("aborted"in A))return C;const R=u(C)?()=>{C.destroy(new o(void 0,{cause:A.reason}))}:()=>{C[h](new o(void 0,{cause:A.reason}))};if(A.aborted)R();else{y=y||g1.addAbortListener;const O=y(A,R);w(C,O[r])}return C}})(Run);var Kge=Run.exports;const{StringPrototypeSlice:kqt,SymbolIterator:$6r,TypedArrayPrototypeSet:Zue,Uint8Array:I6r}=Gf,{Buffer:hDe}=Kr,{inspect:P6r}=g1;var O6r=class{constructor(){this.head=null,this.tail=null,this.length=0}push(r){const o={data:r,next:null};this.length>0?this.tail.next=o:this.head=o,this.tail=o,++this.length}unshift(r){const o={data:r,next:this.head};this.length===0&&(this.tail=o),this.head=o,++this.length}shift(){if(this.length===0)return;const r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}clear(){this.head=this.tail=null,this.length=0}join(r){if(this.length===0)return"";let o=this.head,l=""+o.data;for(;(o=o.next)!==null;)l+=r+o.data;return l}concat(r){if(this.length===0)return hDe.alloc(0);const o=hDe.allocUnsafe(r>>>0);let l=this.head,u=0;for(;l;)Zue(o,l.data,u),u+=l.data.length,l=l.next;return o}consume(r,o){const l=this.head.data;if(rd.length)o+=d,r-=d.length;else{r===d.length?(o+=d,++u,l.next?this.head=l.next:this.head=this.tail=null):(o+=kqt(d,0,r),this.head=l,l.data=kqt(d,r));break}++u}while((l=l.next)!==null);return this.length-=u,o}_getBuffer(r){const o=hDe.allocUnsafe(r),l=r;let u=this.head,d=0;do{const h=u.data;if(r>h.length)Zue(o,h,l-r),r-=h.length;else{r===h.length?(Zue(o,h,l-r),++d,u.next?this.head=u.next:this.head=this.tail=null):(Zue(o,new I6r(h.buffer,h.byteOffset,r),l-r),this.head=u,u.data=h.slice(r));break}++d}while((u=u.next)!==null);return this.length-=d,o}[Symbol.for("nodejs.util.inspect.custom")](r,o){return P6r(this,{...o,depth:0,customInspect:!1})}};const{MathFloor:N6r,NumberIsInteger:M6r}=Gf,{validateInteger:D6r}=jJ,{ERR_INVALID_ARG_VALUE:L6r}=D0.codes;let xun=16*1024,Cun=16;function j6r(n,r,o){return n.highWaterMark!=null?n.highWaterMark:r?n[o]:null}function Aun(n){return n?Cun:xun}function F6r(n,r){D6r(r,"value",0),n?Cun=r:xun=r}function B6r(n,r,o,l){const u=j6r(r,l,o);if(u!=null){if(!M6r(u)||u<0){const d=l?`options.${o}`:"options.highWaterMark";throw new L6r(d,u)}return N6r(u)}return Aun(n.objectMode)}var qge={getHighWaterMark:B6r,getDefaultHighWaterMark:Aun,setDefaultHighWaterMark:F6r};const Rqt=ui,{PromisePrototypeThen:W6r,SymbolAsyncIterator:xqt,SymbolIterator:Cqt}=Gf,{Buffer:H6r}=Kr,{ERR_INVALID_ARG_TYPE:U6r,ERR_STREAM_NULL_VALUES:G6r}=D0.codes;function V6r(n,r,o){let l;if(typeof r=="string"||r instanceof H6r)return new n({objectMode:!0,...o,read(){this.push(r),this.push(null)}});let u;if(r&&r[xqt])u=!0,l=r[xqt]();else if(r&&r[Cqt])u=!1,l=r[Cqt]();else throw new U6r("iterable",["Iterable"],r);const d=new n({objectMode:!0,highWaterMark:1,...o});let h=!1;d._read=function(){h||(h=!0,v())},d._destroy=function(y,E){W6r(w(y),()=>Rqt.nextTick(E,y),A=>Rqt.nextTick(E,A||y))};async function w(y){const E=y!=null,A=typeof l.throw=="function";if(E&&A){const{value:C,done:R}=await l.throw(y);if(await C,R)return}if(typeof l.return=="function"){const{value:C}=await l.return();await C}}async function v(){for(;;){try{const{value:y,done:E}=u?await l.next():l.next();if(E)d.push(null);else{const A=y&&typeof y.then=="function"?await y:y;if(A===null)throw h=!1,new G6r;if(d.push(A))continue;h=!1}}catch(y){d.destroy(y)}break}}return d}var Tun=V6r,pDe,Aqt;function Xge(){if(Aqt)return pDe;Aqt=1;const n=ui,{ArrayPrototypeIndexOf:r,NumberIsInteger:o,NumberIsNaN:l,NumberParseInt:u,ObjectDefineProperties:d,ObjectKeys:h,ObjectSetPrototypeOf:w,Promise:v,SafeSet:y,SymbolAsyncDispose:E,SymbolAsyncIterator:A,Symbol:C}=Gf;pDe=he,he.ReadableState=St;const{EventEmitter:R}=Ns,{Stream:O,prependListener:M}=tVe,{Buffer:L}=Kr,{addAbortSignal:H}=Kge,G=KT;let j=g1.debuglog("stream",S=>{j=S});const Q=O6r,te=Oj,{getHighWaterMark:pe,getDefaultHighWaterMark:Le}=qge,{aggregateTwoErrors:Ee,codes:{ERR_INVALID_ARG_TYPE:le,ERR_METHOD_NOT_IMPLEMENTED:xe,ERR_OUT_OF_RANGE:be,ERR_STREAM_PUSH_AFTER_EOF:ae,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:F},AbortError:me}=D0,{validateObject:ye}=jJ,we=C("kPaused"),{StringDecoder:Be}=rm,He=Tun;w(he.prototype,O.prototype),w(he,O);const Ue=()=>{},{errorOrDestroy:Ge}=te,Me=1,vt=2,re=4,Te=8,ct=16,at=32,Ye=64,mt=128,jt=256,rn=512,Pe=1024,Oe=2048,T=4096,$=8192,B=16384,K=32768,q=65536,ke=1<<17,Re=1<<18;function Ie(S){return{enumerable:!1,get(){return(this.state&S)!==0},set(x){x?this.state|=S:this.state&=~S}}}d(St.prototype,{objectMode:Ie(Me),ended:Ie(vt),endEmitted:Ie(re),reading:Ie(Te),constructed:Ie(ct),sync:Ie(at),needReadable:Ie(Ye),emittedReadable:Ie(mt),readableListening:Ie(jt),resumeScheduled:Ie(rn),errorEmitted:Ie(Pe),emitClose:Ie(Oe),autoDestroy:Ie(T),destroyed:Ie($),closed:Ie(B),closeEmitted:Ie(K),multiAwaitDrain:Ie(q),readingMore:Ie(ke),dataEmitted:Ie(Re)});function St(S,x,Y){typeof Y!="boolean"&&(Y=x instanceof gx()),this.state=Oe|T|ct|at,S&&S.objectMode&&(this.state|=Me),Y&&S&&S.readableObjectMode&&(this.state|=Me),this.highWaterMark=S?pe(this,S,"readableHighWaterMark",Y):Le(!1),this.buffer=new Q,this.length=0,this.pipes=[],this.flowing=null,this[we]=null,S&&S.emitClose===!1&&(this.state&=~Oe),S&&S.autoDestroy===!1&&(this.state&=~T),this.errored=null,this.defaultEncoding=S&&S.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,S&&S.encoding&&(this.decoder=new Be(S.encoding),this.encoding=S.encoding)}function he(S){if(!(this instanceof he))return new he(S);const x=this instanceof gx();this._readableState=new St(S,this,x),S&&(typeof S.read=="function"&&(this._read=S.read),typeof S.destroy=="function"&&(this._destroy=S.destroy),typeof S.construct=="function"&&(this._construct=S.construct),S.signal&&!x&&H(S.signal,this)),O.call(this,S),te.construct(this,()=>{this._readableState.needReadable&&ht(this,this._readableState)})}he.prototype.destroy=te.destroy,he.prototype._undestroy=te.undestroy,he.prototype._destroy=function(S,x){x(S)},he.prototype[R.captureRejectionSymbol]=function(S){this.destroy(S)},he.prototype[E]=function(){let S;return this.destroyed||(S=this.readableEnded?null:new me,this.destroy(S)),new v((x,Y)=>G(this,J=>J&&J!==S?Y(J):x(null)))},he.prototype.push=function(S,x){return zt(this,S,x,!1)},he.prototype.unshift=function(S,x){return zt(this,S,x,!0)};function zt(S,x,Y,J){j("readableAddChunk",x);const ue=S._readableState;let Yt;if(ue.state&Me||(typeof x=="string"?(Y=Y||ue.defaultEncoding,ue.encoding!==Y&&(J&&ue.encoding?x=L.from(x,Y).toString(ue.encoding):(x=L.from(x,Y),Y=""))):x instanceof L?Y="":O._isUint8Array(x)?(x=O._uint8ArrayToBuffer(x),Y=""):x!=null&&(Yt=new le("chunk",["string","Buffer","Uint8Array"],x))),Yt)Ge(S,Yt);else if(x===null)ue.state&=~Te,ce(S,ue);else if(ue.state&Me||x&&x.length>0)if(J)if(ue.state&re)Ge(S,new F);else{if(ue.destroyed||ue.errored)return!1;Qt(S,ue,x,!0)}else if(ue.ended)Ge(S,new ae);else{if(ue.destroyed||ue.errored)return!1;ue.state&=~Te,ue.decoder&&!Y?(x=ue.decoder.write(x),ue.objectMode||x.length!==0?Qt(S,ue,x,!1):ht(S,ue)):Qt(S,ue,x,!1)}else J||(ue.state&=~Te,ht(S,ue));return!ue.ended&&(ue.length0?(x.state&q?x.awaitDrainWriters.clear():x.awaitDrainWriters=null,x.dataEmitted=!0,S.emit("data",Y)):(x.length+=x.objectMode?1:Y.length,J?x.buffer.unshift(Y):x.buffer.push(Y),x.state&Ye&&de(S)),ht(S,x)}he.prototype.isPaused=function(){const S=this._readableState;return S[we]===!0||S.flowing===!1},he.prototype.setEncoding=function(S){const x=new Be(S);this._readableState.decoder=x,this._readableState.encoding=this._readableState.decoder.encoding;const Y=this._readableState.buffer;let J="";for(const ue of Y)J+=x.write(ue);return Y.clear(),J!==""&&Y.push(J),this._readableState.length=J.length,this};const $n=1073741824;function Gn(S){if(S>$n)throw new be("size","<= 1GiB",S);return S--,S|=S>>>1,S|=S>>>2,S|=S>>>4,S|=S>>>8,S|=S>>>16,S++,S}function $e(S,x){return S<=0||x.length===0&&x.ended?0:x.state&Me?1:l(S)?x.flowing&&x.length?x.buffer.first().length:x.length:S<=x.length?S:x.ended?x.length:0}he.prototype.read=function(S){j("read",S),S===void 0?S=NaN:o(S)||(S=u(S,10));const x=this._readableState,Y=S;if(S>x.highWaterMark&&(x.highWaterMark=Gn(S)),S!==0&&(x.state&=~mt),S===0&&x.needReadable&&((x.highWaterMark!==0?x.length>=x.highWaterMark:x.length>0)||x.ended))return j("read: emitReadable",x.length,x.ended),x.length===0&&x.ended?co(this):de(this),null;if(S=$e(S,x),S===0&&x.ended)return x.length===0&&co(this),null;let J=(x.state&Ye)!==0;if(j("need readable",J),(x.length===0||x.length-S0?ue=Al(S,x):ue=null,ue===null?(x.needReadable=x.length<=x.highWaterMark,S=0):(x.length-=S,x.multiAwaitDrain?x.awaitDrainWriters.clear():x.awaitDrainWriters=null),x.length===0&&(x.ended||(x.needReadable=!0),Y!==S&&x.ended&&co(this)),ue!==null&&!x.errorEmitted&&!x.closeEmitted&&(x.dataEmitted=!0,this.emit("data",ue)),ue};function ce(S,x){if(j("onEofChunk"),!x.ended){if(x.decoder){const Y=x.decoder.end();Y&&Y.length&&(x.buffer.push(Y),x.length+=x.objectMode?1:Y.length)}x.ended=!0,x.sync?de(S):(x.needReadable=!1,x.emittedReadable=!0,et(S))}}function de(S){const x=S._readableState;j("emitReadable",x.needReadable,x.emittedReadable),x.needReadable=!1,x.emittedReadable||(j("emitReadable",x.flowing),x.emittedReadable=!0,n.nextTick(et,S))}function et(S){const x=S._readableState;j("emitReadable_",x.destroyed,x.length,x.ended),!x.destroyed&&!x.errored&&(x.length||x.ended)&&(S.emit("readable"),x.emittedReadable=!1),x.needReadable=!x.flowing&&!x.ended&&x.length<=x.highWaterMark,xi(S)}function ht(S,x){!x.readingMore&&x.constructed&&(x.readingMore=!0,n.nextTick(Jt,S,x))}function Jt(S,x){for(;!x.reading&&!x.ended&&(x.length1&&J.pipes.includes(S)&&(j("false write response, pause",J.awaitDrainWriters.size),J.awaitDrainWriters.add(S)),Y.pause()),Fr||(Fr=Zt(Y,S),S.on("drain",Fr))}Y.on("data",ml);function ml(jr){j("ondata");const lr=S.write(jr);j("dest.write",lr),lr===!1&&Rs()}function gs(jr){if(j("onerror",jr),wi(),S.removeListener("error",gs),S.listenerCount("error")===0){const lr=S._writableState||S._readableState;lr&&!lr.errorEmitted?Ge(S,jr):S.emit("error",jr)}}M(S,"error",gs);function as(){S.removeListener("finish",ws),wi()}S.once("close",as);function ws(){j("onfinish"),S.removeListener("close",as),wi()}S.once("finish",ws);function wi(){j("unpipe"),Y.unpipe(S)}return S.emit("pipe",Y),S.writableNeedDrain===!0?Rs():J.flowing||(j("pipe resume"),Y.resume()),S};function Zt(S,x){return function(){const J=S._readableState;J.awaitDrainWriters===x?(j("pipeOnDrain",1),J.awaitDrainWriters=null):J.multiAwaitDrain&&(j("pipeOnDrain",J.awaitDrainWriters.size),J.awaitDrainWriters.delete(x)),(!J.awaitDrainWriters||J.awaitDrainWriters.size===0)&&S.listenerCount("data")&&S.resume()}}he.prototype.unpipe=function(S){const x=this._readableState,Y={hasUnpiped:!1};if(x.pipes.length===0)return this;if(!S){const ue=x.pipes;x.pipes=[],this.pause();for(let Yt=0;Yt0,J.flowing!==!1&&this.resume()):S==="readable"&&!J.endEmitted&&!J.readableListening&&(J.readableListening=J.needReadable=!0,J.flowing=!1,J.emittedReadable=!1,j("on readable",J.length,J.reading),J.length?de(this):J.reading||n.nextTick(ao,this)),Y},he.prototype.addListener=he.prototype.on,he.prototype.removeListener=function(S,x){const Y=O.prototype.removeListener.call(this,S,x);return S==="readable"&&n.nextTick(qr,this),Y},he.prototype.off=he.prototype.removeListener,he.prototype.removeAllListeners=function(S){const x=O.prototype.removeAllListeners.apply(this,arguments);return(S==="readable"||S===void 0)&&n.nextTick(qr,this),x};function qr(S){const x=S._readableState;x.readableListening=S.listenerCount("readable")>0,x.resumeScheduled&&x[we]===!1?x.flowing=!0:S.listenerCount("data")>0?S.resume():x.readableListening||(x.flowing=null)}function ao(S){j("readable nexttick read 0"),S.read(0)}he.prototype.resume=function(){const S=this._readableState;return S.flowing||(j("resume"),S.flowing=!S.readableListening,ki(this,S)),S[we]=!1,this};function ki(S,x){x.resumeScheduled||(x.resumeScheduled=!0,n.nextTick(Ri,S,x))}function Ri(S,x){j("resume",x.reading),x.reading||S.read(0),x.resumeScheduled=!1,S.emit("resume"),xi(S),x.flowing&&!x.reading&&S.read(0)}he.prototype.pause=function(){return j("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(j("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[we]=!0,this};function xi(S){const x=S._readableState;for(j("flow",x.flowing);x.flowing&&S.read()!==null;);}he.prototype.wrap=function(S){let x=!1;S.on("data",J=>{!this.push(J)&&S.pause&&(x=!0,S.pause())}),S.on("end",()=>{this.push(null)}),S.on("error",J=>{Ge(this,J)}),S.on("close",()=>{this.destroy()}),S.on("destroy",()=>{this.destroy()}),this._read=()=>{x&&S.resume&&(x=!1,S.resume())};const Y=h(S);for(let J=1;J{ue=An?Ee(ue,An):null,Y(),Y=Ue});try{for(;;){const An=S.destroyed?null:S.read();if(An!==null)yield An;else{if(ue)throw ue;if(ue===null)return;await new v(J)}}}catch(An){throw ue=Ee(ue,An),ue}finally{(ue||(x==null?void 0:x.destroyOnReturn)!==!1)&&(ue===void 0||S._readableState.autoDestroy)?te.destroyer(S,null):(S.off("readable",J),Yt())}}d(he.prototype,{readable:{__proto__:null,get(){const S=this._readableState;return!!S&&S.readable!==!1&&!S.destroyed&&!S.errorEmitted&&!S.endEmitted},set(S){this._readableState&&(this._readableState.readable=!!S)}},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(S){this._readableState&&(this._readableState.flowing=S)}},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(S){this._readableState&&(this._readableState.destroyed=S)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),d(St.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[we]!==!1},set(S){this[we]=!!S}}}),he._fromList=Al;function Al(S,x){if(x.length===0)return null;let Y;return x.objectMode?Y=x.buffer.shift():!S||S>=x.length?(x.decoder?Y=x.buffer.join(""):x.buffer.length===1?Y=x.buffer.first():Y=x.buffer.concat(x.length),x.buffer.clear()):Y=x.buffer.consume(S,x.decoder),Y}function co(S){const x=S._readableState;j("endReadable",x.endEmitted),x.endEmitted||(x.ended=!0,n.nextTick(Zc,x,S))}function Zc(S,x){if(j("endReadableNT",S.endEmitted,S.length),!S.errored&&!S.closeEmitted&&!S.endEmitted&&S.length===0){if(S.endEmitted=!0,x.emit("end"),x.writable&&x.allowHalfOpen===!1)n.nextTick(bu,x);else if(S.autoDestroy){const Y=x._writableState;(!Y||Y.autoDestroy&&(Y.finished||Y.writable===!1))&&x.destroy()}}}function bu(S){S.writable&&!S.writableEnded&&!S.destroyed&&S.end()}he.from=function(S,x){return He(he,S,x)};let So;function ql(){return So===void 0&&(So={}),So}return he.fromWeb=function(S,x){return ql().newStreamReadableFromReadableStream(S,x)},he.toWeb=function(S,x){return ql().newReadableStreamFromStreamReadable(S,x)},he.wrap=function(S,x){var Y,J;return new he({objectMode:(Y=(J=S.readableObjectMode)!==null&&J!==void 0?J:S.objectMode)!==null&&Y!==void 0?Y:!0,...x,destroy(ue,Yt){te.destroyer(S,ue),Yt(ue)}}).wrap(S)},pDe}var bDe,Tqt;function nVe(){if(Tqt)return bDe;Tqt=1;const n=ui,{ArrayPrototypeSlice:r,Error:o,FunctionPrototypeSymbolHasInstance:l,ObjectDefineProperty:u,ObjectDefineProperties:d,ObjectSetPrototypeOf:h,StringPrototypeToLowerCase:w,Symbol:v,SymbolHasInstance:y}=Gf;bDe=ye,ye.WritableState=F;const{EventEmitter:E}=Ns,A=tVe.Stream,{Buffer:C}=Kr,R=Oj,{addAbortSignal:O}=Kge,{getHighWaterMark:M,getDefaultHighWaterMark:L}=qge,{ERR_INVALID_ARG_TYPE:H,ERR_METHOD_NOT_IMPLEMENTED:G,ERR_MULTIPLE_CALLBACK:j,ERR_STREAM_CANNOT_PIPE:Q,ERR_STREAM_DESTROYED:te,ERR_STREAM_ALREADY_FINISHED:pe,ERR_STREAM_NULL_VALUES:Le,ERR_STREAM_WRITE_AFTER_END:Ee,ERR_UNKNOWN_ENCODING:le}=D0.codes,{errorOrDestroy:xe}=R;h(ye.prototype,A.prototype),h(ye,A);function be(){}const ae=v("kOnFinished");function F(T,$,B){typeof B!="boolean"&&(B=$ instanceof gx()),this.objectMode=!!(T&&T.objectMode),B&&(this.objectMode=this.objectMode||!!(T&&T.writableObjectMode)),this.highWaterMark=T?M(this,T,"writableHighWaterMark",B):L(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const K=!!(T&&T.decodeStrings===!1);this.decodeStrings=!K,this.defaultEncoding=T&&T.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=Ge.bind(void 0,$),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,me(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[ae]=[]}function me(T){T.buffered=[],T.bufferedIndex=0,T.allBuffers=!0,T.allNoop=!0}F.prototype.getBuffer=function(){return r(this.buffered,this.bufferedIndex)},u(F.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function ye(T){const $=this instanceof gx();if(!$&&!l(ye,this))return new ye(T);this._writableState=new F(T,this,$),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&&O(T.signal,this)),A.call(this,T),R.construct(this,()=>{const B=this._writableState;B.writing||Te(this,B),mt(this,B)})}u(ye,y,{__proto__:null,value:function(T){return l(this,T)?!0:this!==ye?!1:T&&T._writableState instanceof F}}),ye.prototype.pipe=function(){xe(this,new Q)};function we(T,$,B,K){const q=T._writableState;if(typeof B=="function")K=B,B=q.defaultEncoding;else{if(!B)B=q.defaultEncoding;else if(B!=="buffer"&&!C.isEncoding(B))throw new le(B);typeof K!="function"&&(K=be)}if($===null)throw new Le;if(!q.objectMode)if(typeof $=="string")q.decodeStrings!==!1&&($=C.from($,B),B="buffer");else if($ instanceof C)B="buffer";else if(A._isUint8Array($))$=A._uint8ArrayToBuffer($),B="buffer";else throw new H("chunk",["string","Buffer","Uint8Array"],$);let ke;return q.ending?ke=new Ee:q.destroyed&&(ke=new te("write")),ke?(n.nextTick(K,ke),xe(T,ke,!0),ke):(q.pendingcb++,Be(T,q,$,B,K))}ye.prototype.write=function(T,$,B){return we(this,T,$,B)===!0},ye.prototype.cork=function(){this._writableState.corked++},ye.prototype.uncork=function(){const T=this._writableState;T.corked&&(T.corked--,T.writing||Te(this,T))},ye.prototype.setDefaultEncoding=function($){if(typeof $=="string"&&($=w($)),!C.isEncoding($))throw new le($);return this._writableState.defaultEncoding=$,this};function Be(T,$,B,K,q){const ke=$.objectMode?1:B.length;$.length+=ke;const Re=$.length<$.highWaterMark;return Re||($.needDrain=!0),$.writing||$.corked||$.errored||!$.constructed?($.buffered.push({chunk:B,encoding:K,callback:q}),$.allBuffers&&K!=="buffer"&&($.allBuffers=!1),$.allNoop&&q!==be&&($.allNoop=!1)):($.writelen=ke,$.writecb=q,$.writing=!0,$.sync=!0,T._write(B,K,$.onwrite),$.sync=!1),Re&&!$.errored&&!$.destroyed}function He(T,$,B,K,q,ke,Re){$.writelen=K,$.writecb=Re,$.writing=!0,$.sync=!0,$.destroyed?$.onwrite(new te("write")):B?T._writev(q,$.onwrite):T._write(q,ke,$.onwrite),$.sync=!1}function Ue(T,$,B,K){--$.pendingcb,K(B),re($),xe(T,B)}function Ge(T,$){const B=T._writableState,K=B.sync,q=B.writecb;if(typeof q!="function"){xe(T,new j);return}B.writing=!1,B.writecb=null,B.length-=B.writelen,B.writelen=0,$?($.stack,B.errored||(B.errored=$),T._readableState&&!T._readableState.errored&&(T._readableState.errored=$),K?n.nextTick(Ue,T,B,$,q):Ue(T,B,$,q)):(B.buffered.length>B.bufferedIndex&&Te(T,B),K?B.afterWriteTickInfo!==null&&B.afterWriteTickInfo.cb===q?B.afterWriteTickInfo.count++:(B.afterWriteTickInfo={count:1,cb:q,stream:T,state:B},n.nextTick(Me,B.afterWriteTickInfo)):vt(T,B,1,q))}function Me({stream:T,state:$,count:B,cb:K}){return $.afterWriteTickInfo=null,vt(T,$,B,K)}function vt(T,$,B,K){for(!$.ending&&!T.destroyed&&$.length===0&&$.needDrain&&($.needDrain=!1,T.emit("drain"));B-- >0;)$.pendingcb--,K();$.destroyed&&re($),mt(T,$)}function re(T){if(T.writing)return;for(let q=T.bufferedIndex;q1&&T._writev){$.pendingcb-=ke-1;const Ie=$.allNoop?be:he=>{for(let zt=Re;zt256?(B.splice(0,Re),$.bufferedIndex=0):$.bufferedIndex=Re}$.bufferProcessing=!1}ye.prototype._write=function(T,$,B){if(this._writev)this._writev([{chunk:T,encoding:$}],B);else throw new G("_write()")},ye.prototype._writev=null,ye.prototype.end=function(T,$,B){const K=this._writableState;typeof T=="function"?(B=T,T=null,$=null):typeof $=="function"&&(B=$,$=null);let q;if(T!=null){const ke=we(this,T,$);ke instanceof o&&(q=ke)}return K.corked&&(K.corked=1,this.uncork()),q||(!K.errored&&!K.ending?(K.ending=!0,mt(this,K,!0),K.ended=!0):K.finished?q=new pe("end"):K.destroyed&&(q=new te("end"))),typeof B=="function"&&(q||K.finished?n.nextTick(B,q):K[ae].push(B)),this};function ct(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 at(T,$){let B=!1;function K(q){if(B){xe(T,q??j());return}if(B=!0,$.pendingcb--,q){const ke=$[ae].splice(0);for(let Re=0;Re{ct(q)?jt(K,q):q.pendingcb--},T,$)):ct($)&&($.pendingcb++,jt(T,$))))}function jt(T,$){$.pendingcb--,$.finished=!0;const B=$[ae].splice(0);for(let K=0;K{if(re!=null)throw new O("nully","body",re)},re=>{M(Me,re)});return Me=new le({objectMode:!0,readable:!1,write:Be,final(re){He(async()=>{try{await vt,n.nextTick(re,null)}catch(Te){n.nextTick(re,Te)}})},destroy:Ue})}throw new O("Iterable, AsyncIterable or AsyncFunction",me,we)}if(pe(F))return ae(F.arrayBuffer());if(u(F))return Q(le,F,{objectMode:!0,writable:!1});if(y(F==null?void 0:F.readable)&&E(F==null?void 0:F.writable))return le.fromWeb(F);if(typeof(F==null?void 0:F.writable)=="object"||typeof(F==null?void 0:F.readable)=="object"){const we=F!=null&&F.readable?h(F==null?void 0:F.readable)?F==null?void 0:F.readable:ae(F.readable):void 0,Be=F!=null&&F.writable?w(F==null?void 0:F.writable)?F==null?void 0:F.writable:ae(F.writable):void 0;return be({readable:we,writable:Be})}const ye=F==null?void 0:F.then;if(typeof ye=="function"){let we;return Ee(ye,F,Be=>{Be!=null&&we.push(Be),we.push(null)},Be=>{M(we,Be)}),we=new le({objectMode:!0,writable:!1,read(){}})}throw new R(me,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],F)};function xe(ae){let{promise:F,resolve:me}=j();const ye=new Le,we=ye.signal;return{value:ae(async function*(){for(;;){const He=F;F=null;const{chunk:Ue,done:Ge,cb:Me}=await He;if(n.nextTick(Me),Ge)return;if(we.aborted)throw new C(void 0,{cause:we.reason});({promise:F,resolve:me}=j()),yield Ue}}(),{signal:we}),write(He,Ue,Ge){const Me=me;me=null,Me({chunk:He,done:!1,cb:Ge})},final(He){const Ue=me;me=null,Ue({done:!0,cb:He})},destroy(He,Ue){ye.abort(),Ue(He)}}}function be(ae){const F=ae.readable&&typeof ae.readable.read!="function"?H.wrap(ae.readable):ae.readable,me=ae.writable;let ye=!!o(F),we=!!l(me),Be,He,Ue,Ge,Me;function vt(re){const Te=Ge;Ge=null,Te?Te(re):re&&Me.destroy(re)}return Me=new le({readableObjectMode:!!(F!=null&&F.readableObjectMode),writableObjectMode:!!(me!=null&&me.writableObjectMode),readable:ye,writable:we}),we&&(A(me,re=>{we=!1,re&&M(F,re),vt(re)}),Me._write=function(re,Te,ct){me.write(re,Te)?ct():Be=ct},Me._final=function(re){me.end(),He=re},me.on("drain",function(){if(Be){const re=Be;Be=null,re()}}),me.on("finish",function(){if(He){const re=He;He=null,re()}})),ye&&(A(F,re=>{ye=!1,re&&M(F,re),vt(re)}),F.on("readable",function(){if(Ue){const re=Ue;Ue=null,re()}}),F.on("end",function(){Me.push(null)}),Me._read=function(){for(;;){const re=F.read();if(re===null){Ue=Me._read;return}if(!Me.push(re))return}}),Me._destroy=function(re,Te){!re&&Ge!==null&&(re=new C),Ue=null,Be=null,He=null,Ge===null?Te(re):(Ge=Te,M(me,re),M(F,re))},Me}return gDe}var wDe,Iqt;function gx(){if(Iqt)return wDe;Iqt=1;const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:o,ObjectSetPrototypeOf:l}=Gf;wDe=h;const u=Xge(),d=nVe();l(h.prototype,u.prototype),l(h,u);{const E=o(d.prototype);for(let A=0;A{if(r){n?n(r):this.destroy(r);return}o!=null&&this.push(o),this.push(null),n&&n()}):(this.push(null),n&&n())}function J6r(){this._final!==CBe&&CBe.call(this)}wx.prototype._final=CBe;wx.prototype._transform=function(n,r,o){throw new q6r("_transform()")};wx.prototype._write=function(n,r,o){const l=this._readableState,u=this._writableState,d=l.length;this._transform(n,r,(h,w)=>{if(h){o(h);return}w!=null&&this.push(w),u.ended||d===l.length||l.length{l=!0});const u=Che(n,{readable:r,writable:o},d=>{l=!d});return{destroy:d=>{l||(l=!0,nIr.destroyer(n,d||new oIr("pipe")))},cleanup:u}}function hIr(n){return aIr(n[n.length-1],"streams[stream.length - 1]"),n.pop()}function kDe(n){if(O8(n))return n;if(fde(n))return pIr(n);throw new ABe("val",["Readable","Iterable","AsyncIterable"],n)}async function*pIr(n){SDe||(SDe=Xge()),yield*SDe.prototype[Z6r].call(n)}async function efe(n,r,o,{end:l}){let u,d=null;const h=y=>{if(y&&(u=y),d){const E=d;d=null,E()}},w=()=>new Q6r((y,E)=>{u?E(u):d=()=>{u?E(u):y()}});r.on("drain",h);const v=Che(r,{readable:!1},h);try{r.writableNeedDrain&&await w();for await(const y of n)r.write(y)||await w();l&&(r.end(),await w()),o()}catch(y){o(u!==y?rIr(u,y):y)}finally{v(),r.off("drain",h)}}async function RDe(n,r,o,{end:l}){PD(r)&&(r=r.writable);const u=r.getWriter();try{for await(const d of n)await u.ready,u.write(d).catch(()=>{});await u.ready,l&&await u.close(),o()}catch(d){try{await u.abort(d),o(d)}catch(h){o(h)}}}function bIr(...n){return Nun(n,tIr(hIr(n)))}function Nun(n,r,o){if(n.length===1&&Y6r(n[0])&&(n=n[0]),n.length<2)throw new iIr("streams");const l=new dIr,u=l.signal,d=o==null?void 0:o.signal,h=[];cIr(d,"options.signal");function w(){O(new lIr)}EDe=EDe||g1.addAbortListener;let v;d&&(v=EDe(d,w));let y,E;const A=[];let C=0;function R(G){O(G,--C===0)}function O(G,j){var Q;if(G&&(!y||y.code==="ERR_STREAM_PREMATURE_CLOSE")&&(y=G),!(!y&&!j)){for(;A.length;)A.shift()(y);(Q=v)===null||Q===void 0||Q[eIr](),l.abort(),j&&(y||h.forEach(te=>te()),WK.nextTick(r,y,E))}}let M;for(let G=0;G0,pe=Q||(o==null?void 0:o.end)!==!1,Le=G===n.length-1;if(Oqt(j)){let Ee=function(le){le&&le.name!=="AbortError"&&le.code!=="ERR_STREAM_PREMATURE_CLOSE"&&R(le)};if(pe){const{destroy:le,cleanup:xe}=Nqt(j,Q,te);A.push(le),yDe(j)&&Le&&h.push(xe)}j.on("error",Ee),yDe(j)&&Le&&h.push(()=>{j.removeListener("error",Ee)})}if(G===0)if(typeof j=="function"){if(M=j({signal:u}),!O8(M))throw new mDe("Iterable, AsyncIterable or Stream","source",M)}else O8(j)||fde(j)||PD(j)?M=j:M=Pqt.from(j);else if(typeof j=="function"){if(PD(M)){var L;M=kDe((L=M)===null||L===void 0?void 0:L.readable)}else M=kDe(M);if(M=j(M,{signal:u}),Q){if(!O8(M,!0))throw new mDe("AsyncIterable",`transform[${G-1}]`,M)}else{var H;_De||(_De=Oun);const Ee=new _De({objectMode:!0}),le=(H=M)===null||H===void 0?void 0:H.then;if(typeof le=="function")C++,le.call(M,ae=>{E=ae,ae!=null&&Ee.write(ae),pe&&Ee.end(),WK.nextTick(R)},ae=>{Ee.destroy(ae),WK.nextTick(R,ae)});else if(O8(M,!0))C++,efe(M,Ee,R,{end:pe});else if(vDe(M)||PD(M)){const ae=M.readable||M;C++,efe(ae,Ee,R,{end:pe})}else throw new mDe("AsyncIterable or Promise","destination",M);M=Ee;const{destroy:xe,cleanup:be}=Nqt(M,!1,!0);A.push(xe),Le&&h.push(be)}}else if(Oqt(j)){if(fde(M)){C+=2;const Ee=gIr(M,j,R,{end:pe});yDe(j)&&Le&&h.push(Ee)}else if(PD(M)||vDe(M)){const Ee=M.readable||M;C++,efe(Ee,j,R,{end:pe})}else if(O8(M))C++,efe(M,j,R,{end:pe});else throw new ABe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else if(uIr(j)){if(fde(M))C++,RDe(kDe(M),j,R,{end:pe});else if(vDe(M)||O8(M))C++,RDe(M,j,R,{end:pe});else if(PD(M))C++,RDe(M.readable,j,R,{end:pe});else throw new ABe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else M=Pqt.from(j)}return(u!=null&&u.aborted||d!=null&&d.aborted)&&WK.nextTick(w),M}function gIr(n,r,o,{end:l}){let u=!1;if(r.on("close",()=>{u||o(new sIr)}),n.pipe(r,{end:!1}),l){let d=function(){u=!0,r.end()};fIr(n)?WK.nextTick(d):n.once("end",d)}else o();return Che(n,{readable:!0,writable:!1},d=>{const h=n._readableState;d&&d.code==="ERR_STREAM_PREMATURE_CLOSE"&&h&&h.ended&&!h.errored&&!h.errorEmitted?n.once("end",o).once("error",o):o(d)}),Che(r,{readable:!1,writable:!0},o)}var oVe={pipelineImpl:Nun,pipeline:bIr};const{pipeline:wIr}=oVe,tfe=gx(),{destroyer:mIr}=Oj,{isNodeStream:nfe,isReadable:Mqt,isWritable:Dqt,isWebStream:xDe,isTransformStream:b8,isWritableStream:Lqt,isReadableStream:jqt}=Nx,{AbortError:yIr,codes:{ERR_INVALID_ARG_VALUE:Fqt,ERR_MISSING_ARGS:vIr}}=D0,_Ir=KT;var Mun=function(...r){if(r.length===0)throw new vIr("streams");if(r.length===1)return tfe.from(r[0]);const o=[...r];if(typeof r[0]=="function"&&(r[0]=tfe.from(r[0])),typeof r[r.length-1]=="function"){const R=r.length-1;r[R]=tfe.from(r[R])}for(let R=0;R0&&!(Dqt(r[R])||Lqt(r[R])||b8(r[R])))throw new Fqt(`streams[${R}]`,o[R],"must be writable")}let l,u,d,h,w;function v(R){const O=h;h=null,O?O(R):R?w.destroy(R):!C&&!A&&w.destroy()}const y=r[0],E=wIr(r,v),A=!!(Dqt(y)||Lqt(y)||b8(y)),C=!!(Mqt(E)||jqt(E)||b8(E));if(w=new tfe({writableObjectMode:!!(y!=null&&y.writableObjectMode),readableObjectMode:!!(E!=null&&E.readableObjectMode),writable:A,readable:C}),A){if(nfe(y))w._write=function(O,M,L){y.write(O,M)?L():l=L},w._final=function(O){y.end(),u=O},y.on("drain",function(){if(l){const O=l;l=null,O()}});else if(xDe(y)){const M=(b8(y)?y.writable:y).getWriter();w._write=async function(L,H,G){try{await M.ready,M.write(L).catch(()=>{}),G()}catch(j){G(j)}},w._final=async function(L){try{await M.ready,M.close().catch(()=>{}),u=L}catch(H){L(H)}}}const R=b8(E)?E.readable:E;_Ir(R,()=>{if(u){const O=u;u=null,O()}})}if(C){if(nfe(E))E.on("readable",function(){if(d){const R=d;d=null,R()}}),E.on("end",function(){w.push(null)}),w._read=function(){for(;;){const R=E.read();if(R===null){d=w._read;return}if(!w.push(R))return}};else if(xDe(E)){const O=(b8(E)?E.readable:E).getReader();w._read=async function(){for(;;)try{const{value:M,done:L}=await O.read();if(!w.push(M))return;if(L){w.push(null);return}}catch{return}}}}return w._destroy=function(R,O){!R&&h!==null&&(R=new yIr),d=null,l=null,u=null,h===null?O(R):(h=O,nfe(E)&&mIr(E,R))},w};const SIr=globalThis.AbortController||$o().AbortController,{codes:{ERR_INVALID_ARG_VALUE:EIr,ERR_INVALID_ARG_TYPE:FJ,ERR_MISSING_ARGS:kIr,ERR_OUT_OF_RANGE:RIr},AbortError:hk}=D0,{validateAbortSignal:EO,validateInteger:Bqt,validateObject:kO}=jJ,xIr=Gf.Symbol("kWeak"),CIr=Gf.Symbol("kResistStopPropagation"),{finished:AIr}=KT,TIr=Mun,{addAbortSignalNoValidate:$Ir}=Kge,{isWritable:IIr,isNodeStream:PIr}=Nx,{deprecate:OIr}=g1,{ArrayPrototypePush:NIr,Boolean:MIr,MathFloor:Wqt,Number:DIr,NumberIsNaN:LIr,Promise:Hqt,PromiseReject:Uqt,PromiseResolve:jIr,PromisePrototypeThen:Gqt,Symbol:Dun}=Gf,Ahe=Dun("kEmpty"),Vqt=Dun("kEof");function FIr(n,r){if(r!=null&&kO(r,"options"),(r==null?void 0:r.signal)!=null&&EO(r.signal,"options.signal"),PIr(n)&&!IIr(n))throw new EIr("stream",n,"must be writable");const o=TIr(this,n);return r!=null&&r.signal&&$Ir(r.signal,o),o}function Jge(n,r){if(typeof n!="function")throw new FJ("fn",["Function","AsyncFunction"],n);r!=null&&kO(r,"options"),(r==null?void 0:r.signal)!=null&&EO(r.signal,"options.signal");let o=1;(r==null?void 0:r.concurrency)!=null&&(o=Wqt(r.concurrency));let l=o-1;return(r==null?void 0:r.highWaterMark)!=null&&(l=Wqt(r.highWaterMark)),Bqt(o,"options.concurrency",1),Bqt(l,"options.highWaterMark",0),l+=o,(async function*(){const d=g1.AbortSignalAny([r==null?void 0:r.signal].filter(MIr)),h=this,w=[],v={signal:d};let y,E,A=!1,C=0;function R(){A=!0,O()}function O(){C-=1,M()}function M(){E&&!A&&C=l||C>=o)&&await new Hqt(G=>{E=G})}w.push(Vqt)}catch(H){const G=Uqt(H);Gqt(G,O,R),w.push(G)}finally{A=!0,y&&(y(),y=null)}}L();try{for(;;){for(;w.length>0;){const H=await w[0];if(H===Vqt)return;if(d.aborted)throw new hk;H!==Ahe&&(yield H),w.shift(),M()}await new Hqt(H=>{y=H})}}finally{A=!0,E&&(E(),E=null)}}).call(this)}function BIr(n=void 0){return n!=null&&kO(n,"options"),(n==null?void 0:n.signal)!=null&&EO(n.signal,"options.signal"),(async function*(){let o=0;for await(const u of this){var l;if(n!=null&&(l=n.signal)!==null&&l!==void 0&&l.aborted)throw new hk({cause:n.signal.reason});yield[o++,u]}}).call(this)}async function Lun(n,r=void 0){for await(const o of sVe.call(this,n,r))return!0;return!1}async function WIr(n,r=void 0){if(typeof n!="function")throw new FJ("fn",["Function","AsyncFunction"],n);return!await Lun.call(this,async(...o)=>!await n(...o),r)}async function HIr(n,r){for await(const o of sVe.call(this,n,r))return o}async function UIr(n,r){if(typeof n!="function")throw new FJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u),Ahe}for await(const l of Jge.call(this,o,r));}function sVe(n,r){if(typeof n!="function")throw new FJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u)?l:Ahe}return Jge.call(this,o,r)}let GIr=class extends kIr{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function VIr(n,r,o){var l;if(typeof n!="function")throw new FJ("reducer",["Function","AsyncFunction"],n);o!=null&&kO(o,"options"),(o==null?void 0:o.signal)!=null&&EO(o.signal,"options.signal");let u=arguments.length>1;if(o!=null&&(l=o.signal)!==null&&l!==void 0&&l.aborted){const y=new hk(void 0,{cause:o.signal.reason});throw this.once("error",()=>{}),await AIr(this.destroy(y)),y}const d=new SIr,h=d.signal;if(o!=null&&o.signal){const y={once:!0,[xIr]:this,[CIr]:!0};o.signal.addEventListener("abort",()=>d.abort(),y)}let w=!1;try{for await(const y of this){var v;if(w=!0,o!=null&&(v=o.signal)!==null&&v!==void 0&&v.aborted)throw new hk;u?r=await n(r,y,{signal:h}):(r=y,u=!0)}if(!w&&!u)throw new GIr}finally{d.abort()}return r}async function zIr(n){n!=null&&kO(n,"options"),(n==null?void 0:n.signal)!=null&&EO(n.signal,"options.signal");const r=[];for await(const l of this){var o;if(n!=null&&(o=n.signal)!==null&&o!==void 0&&o.aborted)throw new hk(void 0,{cause:n.signal.reason});NIr(r,l)}return r}function KIr(n,r){const o=Jge.call(this,n,r);return(async function*(){for await(const u of o)yield*u}).call(this)}function jun(n){if(n=DIr(n),LIr(n))return 0;if(n<0)throw new RIr("number",">= 0",n);return n}function qIr(n,r=void 0){return r!=null&&kO(r,"options"),(r==null?void 0:r.signal)!=null&&EO(r.signal,"options.signal"),n=jun(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new hk;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new hk;n--<=0&&(yield d)}}).call(this)}function XIr(n,r=void 0){return r!=null&&kO(r,"options"),(r==null?void 0:r.signal)!=null&&EO(r.signal,"options.signal"),n=jun(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new hk;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new hk;if(n-- >0&&(yield d),n<=0)return}}).call(this)}JGe.streamReturningOperators={asIndexedPairs:OIr(BIr,"readable.asIndexedPairs will be removed in a future version."),drop:qIr,filter:sVe,flatMap:KIr,map:Jge,take:XIr,compose:FIr};JGe.promiseReturningOperators={every:WIr,forEach:UIr,reduce:VIr,toArray:zIr,some:Lun,find:HIr};var CDe,zqt;function Fun(){if(zqt)return CDe;zqt=1;const{ArrayPrototypePop:n,Promise:r}=Gf,{isIterable:o,isNodeStream:l,isWebStream:u}=Nx,{pipelineImpl:d}=oVe,{finished:h}=KT;Bun();function w(...v){return new r((y,E)=>{let A,C;const R=v[v.length-1];if(R&&typeof R=="object"&&!l(R)&&!o(R)&&!u(R)){const O=n(v);A=O.signal,C=O.end}d(v,(O,M)=>{O?E(O):y(M)},{signal:A,end:C})})}return CDe={finished:h,pipeline:w},CDe}var Kqt;function Bun(){if(Kqt)return uDe.exports;Kqt=1;const{Buffer:n}=Kr,{ObjectDefineProperty:r,ObjectKeys:o,ReflectApply:l}=Gf,{promisify:{custom:u}}=g1,{streamReturningOperators:d,promiseReturningOperators:h}=JGe,{codes:{ERR_ILLEGAL_CONSTRUCTOR:w}}=D0,v=Mun,{setDefaultHighWaterMark:y,getDefaultHighWaterMark:E}=qge,{pipeline:A}=oVe,{destroyer:C}=Oj,R=KT,O=Fun(),M=Nx,L=uDe.exports=tVe.Stream;L.isDestroyed=M.isDestroyed,L.isDisturbed=M.isDisturbed,L.isErrored=M.isErrored,L.isReadable=M.isReadable,L.isWritable=M.isWritable,L.Readable=Xge();for(const G of o(d)){let Q=function(...te){if(new.target)throw w();return L.Readable.from(l(j,this,te))};const j=d[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}for(const G of o(h)){let Q=function(...te){if(new.target)throw w();return l(j,this,te)};const j=h[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}L.Writable=nVe(),L.Duplex=gx(),L.Transform=Iun,L.PassThrough=Oun,L.pipeline=A;const{addAbortSignal:H}=Kge;return L.addAbortSignal=H,L.finished=R,L.destroy=C,L.compose=v,L.setDefaultHighWaterMark=y,L.getDefaultHighWaterMark=E,r(L,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return O}}),r(A,u,{__proto__:null,enumerable:!0,get(){return O.pipeline}}),r(R,u,{__proto__:null,enumerable:!0,get(){return O.finished}}),L.Stream=L,L._isUint8Array=function(j){return j instanceof Uint8Array},L._uint8ArrayToBuffer=function(j){return n.from(j.buffer,j.byteOffset,j.byteLength)},uDe.exports}(function(n){const r=Bun(),o=Fun(),l=r.Readable.destroy;n.exports=r.Readable,n.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer,n.exports._isUint8Array=r._isUint8Array,n.exports.isDisturbed=r.isDisturbed,n.exports.isErrored=r.isErrored,n.exports.isReadable=r.isReadable,n.exports.Readable=r.Readable,n.exports.Writable=r.Writable,n.exports.Duplex=r.Duplex,n.exports.Transform=r.Transform,n.exports.PassThrough=r.PassThrough,n.exports.addAbortSignal=r.addAbortSignal,n.exports.finished=r.finished,n.exports.destroy=r.destroy,n.exports.destroy=l,n.exports.pipeline=r.pipeline,n.exports.compose=r.compose,Object.defineProperty(r,"promises",{configurable:!0,enumerable:!0,get(){return o}}),n.exports.Stream=r.Stream,n.exports.default=n.exports})(Jcn);var lUr=Jcn.exports,Wun={},qL={},XL={},Hun={};(function(n){/** + */const fqt=JGe,dqt=R4r,B4=Sv,RR=j4r,hDe=B4.IdentifierIssuer,RE=_v,FTr=Fcn,Zue=B4r,{expand:BTr}=Z4r,{flatten:WTr}=iTr,{fromRDF:HTr}=aTr,{toRDF:UTr}=ETr,{frameMergedOrDefault:GTr,cleanupNull:VTr}=ATr,{isArray:cD,isObject:p8,isString:xE}=cm,{isSubjectReference:zTr}=Ox,{expandIri:KTr,getInitialContext:efe,process:hqt,processingMode:pDe}=vO,{compact:qTr,compactIri:XTr}=DTr,{createNodeMap:JTr,createMergedNodeMap:YTr,mergeNodeMaps:QTr}=Uge,{logEventHandler:ZTr,logWarningEventHandler:e$r,safeEventHandler:t$r,setDefaultEventHandler:n$r,setupEventHandler:r$r,strictEventHandler:i$r,unhandledEventHandler:o$r}=FJ,iun=function(n){const r={},l=new FTr({max:100});n.compact=async function(d,h,w){if(arguments.length<2)throw new TypeError("Could not compact, too few arguments.");if(h===null)throw new RE("The compaction context must not be null.","jsonld.CompactError",{code:"invalid local context"});if(d===null)return null;w=u(w,{base:xE(d)?d:"",compactArrays:!0,compactToRelative:!0,graph:!1,skipExpansion:!1,link:!1,issuer:new hDe("_:b"),contextResolver:new RR({sharedCache:l})}),w.link&&(w.skipExpansion=!0),w.compactToRelative||delete w.base;let v;w.skipExpansion?v=d:v=await n.expand(d,w);const y=await n.processContext(efe(w),h,w);let E=await qTr({activeCtx:y,element:v,options:w});w.compactArrays&&!w.graph&&cD(E)?E.length===1?E=E[0]:E.length===0&&(E={}):w.graph&&p8(E)&&(E=[E]),p8(h)&&"@context"in h&&(h=h["@context"]),h=B4.clone(h),cD(h)||(h=[h]);const A=h;h=[];for(let R=0;R0)&&h.push(A[R]);const C=h.length>0;if(h.length===1&&(h=h[0]),cD(E)){const R=XTr({activeCtx:y,iri:"@graph",relativeTo:{vocab:!0}}),O=E;E={},C&&(E["@context"]=h),E[R]=O}else if(p8(E)&&C){const R=E;E={"@context":h};for(const O in R)E[O]=R[O]}return E},n.expand=async function(d,h){if(arguments.length<1)throw new TypeError("Could not expand, too few arguments.");h=u(h,{keepFreeFloatingNodes:!1,contextResolver:new RR({sharedCache:l})});const w={},v=[];if("expandContext"in h){const C=B4.clone(h.expandContext);p8(C)&&"@context"in C?w.expandContext=C:w.expandContext={"@context":C},v.push(w.expandContext)}let y;if(!xE(d))w.input=B4.clone(d);else{const C=await n.get(d,h);y=C.documentUrl,w.input=C.document,C.contextUrl&&(w.remoteContext={"@context":C.contextUrl},v.push(w.remoteContext))}"base"in h||(h.base=y||"");let E=efe(h);for(const C of v)E=await hqt({activeCtx:E,localCtx:C,options:h});let A=await BTr({activeCtx:E,element:w.input,options:h});return p8(A)&&"@graph"in A&&Object.keys(A).length===1?A=A["@graph"]:A===null&&(A=[]),cD(A)||(A=[A]),A},n.flatten=async function(d,h,w){if(arguments.length<1)return new TypeError("Could not flatten, too few arguments.");typeof h=="function"?h=null:h=h||null,w=u(w,{base:xE(d)?d:"",contextResolver:new RR({sharedCache:l})});const v=await n.expand(d,w),y=WTr(v);return h===null?y:(w.graph=!0,w.skipExpansion=!0,await n.compact(y,h,w))},n.frame=async function(d,h,w){if(arguments.length<2)throw new TypeError("Could not frame, too few arguments.");if(w=u(w,{base:xE(d)?d:"",embed:"@once",explicit:!1,requireAll:!1,omitDefault:!1,bnodesToClear:[],contextResolver:new RR({sharedCache:l})}),xE(h)){const L=await n.get(h,w);if(h=L.document,L.contextUrl){let H=h["@context"];H?cD(H)?H.push(L.contextUrl):H=[H,L.contextUrl]:H=L.contextUrl,h["@context"]=H}}const v=h?h["@context"]||{}:{},y=await n.processContext(efe(w),v,w);w.hasOwnProperty("omitGraph")||(w.omitGraph=pDe(y,1.1)),w.hasOwnProperty("pruneBlankNodeIdentifiers")||(w.pruneBlankNodeIdentifiers=pDe(y,1.1));const E=await n.expand(d,w),A={...w};A.isFrame=!0,A.keepFreeFloatingNodes=!0;const C=await n.expand(h,A),R=Object.keys(h).map(L=>KTr(y,L,{vocab:!0}));A.merged=!R.includes("@graph"),A.is11=pDe(y,1.1);const O=GTr(E,C,A);A.graph=!w.omitGraph,A.skipExpansion=!0,A.link={},A.framing=!0;let M=await n.compact(O,v,A);return A.link={},M=VTr(M,A),M},n.link=async function(d,h,w){const v={};return h&&(v["@context"]=h),v["@embed"]="@link",n.frame(d,v,w)},n.normalize=n.canonize=async function(d,h){if(arguments.length<1)throw new TypeError("Could not canonize, too few arguments.");if(h=u(h,{base:xE(d)?d:null,algorithm:"URDNA2015",skipExpansion:!1,safe:!0,contextResolver:new RR({sharedCache:l})}),"inputFormat"in h){if(h.inputFormat!=="application/n-quads"&&h.inputFormat!=="application/nquads")throw new RE("Unknown canonicalization input format.","jsonld.CanonizeError");const y=Zue.parse(d);return fqt.canonize(y,h)}const w={...h};delete w.format,w.produceGeneralizedRdf=!1;const v=await n.toRDF(d,w);return fqt.canonize(v,h)},n.fromRDF=async function(d,h){if(arguments.length<1)throw new TypeError("Could not convert from RDF, too few arguments.");h=u(h,{format:xE(d)?"application/n-quads":void 0});const{format:w}=h;let{rdfParser:v}=h;if(w){if(v=v||r[w],!v)throw new RE("Unknown input format.","jsonld.UnknownFormat",{format:w})}else v=()=>d;const y=await v(d);return HTr(y,h)},n.toRDF=async function(d,h){if(arguments.length<1)throw new TypeError("Could not convert to RDF, too few arguments.");h=u(h,{base:xE(d)?d:"",skipExpansion:!1,contextResolver:new RR({sharedCache:l})});let w;h.skipExpansion?w=d:w=await n.expand(d,h);const v=UTr(w,h);if(h.format){if(h.format==="application/n-quads"||h.format==="application/nquads")return Zue.serialize(v);throw new RE("Unknown output format.","jsonld.UnknownFormat",{format:h.format})}return v},n.createNodeMap=async function(d,h){if(arguments.length<1)throw new TypeError("Could not create node map, too few arguments.");h=u(h,{base:xE(d)?d:"",contextResolver:new RR({sharedCache:l})});const w=await n.expand(d,h);return YTr(w,h)},n.merge=async function(d,h,w){if(arguments.length<1)throw new TypeError("Could not merge, too few arguments.");if(!cD(d))throw new TypeError('Could not merge, "docs" must be an array.');typeof h=="function"?h=null:h=h||null,w=u(w,{contextResolver:new RR({sharedCache:l})});const v=await Promise.all(d.map(L=>{const H={...w};return n.expand(L,H)}));let y=!0;"mergeNodes"in w&&(y=w.mergeNodes);const E=w.issuer||new hDe("_:b"),A={"@default":{}};for(let L=0;Ln._documentLoader,set:d=>n._documentLoader=d}),n.documentLoader=async d=>{throw new RE("Could not retrieve a JSON-LD document from the URL. URL dereferencing not implemented.","jsonld.LoadDocumentError",{code:"loading document failed",url:d})},n.get=async function(d,h){let w;typeof h.documentLoader=="function"?w=h.documentLoader:w=n.documentLoader;const v=await w(d);try{if(!v.document)throw new RE("No remote document found at the given URL.","jsonld.NullRemoteDocument");xE(v.document)&&(v.document=JSON.parse(v.document))}catch(y){throw new RE("Could not retrieve a JSON-LD document from the URL.","jsonld.LoadDocumentError",{code:"loading document failed",cause:y,remoteDoc:v})}return v},n.processContext=async function(d,h,w){return w=u(w,{base:"",contextResolver:new RR({sharedCache:l})}),h===null?efe(w):(h=B4.clone(h),p8(h)&&"@context"in h||(h={"@context":h}),hqt({activeCtx:d,localCtx:h,options:w}))},n.getContextValue=vO.getContextValue,n.documentLoaders={},n.useDocumentLoader=function(d){if(!(d in n.documentLoaders))throw new RE('Unknown document loader type: "'+d+'"',"jsonld.UnknownDocumentLoader",{type:d});n.documentLoader=n.documentLoaders[d].apply(n,Array.prototype.slice.call(arguments,1))},n.registerRDFParser=function(d,h){r[d]=h},n.unregisterRDFParser=function(d){delete r[d]},n.registerRDFParser("application/n-quads",Zue.parse),n.registerRDFParser("application/nquads",Zue.parse),n.url=zT,n.logEventHandler=ZTr,n.logWarningEventHandler=e$r,n.safeEventHandler=t$r,n.setDefaultEventHandler=n$r,n.strictEventHandler=i$r,n.unhandledEventHandler=o$r,n.util=B4,Object.assign(n,B4),n.promises=n,n.RequestQueue=Lcn(),n.JsonLdProcessor=jTr()(n),dqt.setupGlobals(n),dqt.setupDocumentLoaders(n);function u(d,{documentLoader:h=n.documentLoader,...w}){if(d&&"compactionMap"in d)throw new RE('"compactionMap" not supported.',"jsonld.OptionsError");if(d&&"expansionMap"in d)throw new RE('"expansionMap" not supported.',"jsonld.OptionsError");return Object.assign({},{documentLoader:h},w,d,{eventHandler:r$r({options:d})})}return n},tVe=function(){return iun(function(){return tVe()})};iun(tVe);var s$r=tVe;const _Ur=cv(s$r);var oun={exports:{}},bDe={exports:{}},Gf={ArrayIsArray(n){return Array.isArray(n)},ArrayPrototypeIncludes(n,r){return n.includes(r)},ArrayPrototypeIndexOf(n,r){return n.indexOf(r)},ArrayPrototypeJoin(n,r){return n.join(r)},ArrayPrototypeMap(n,r){return n.map(r)},ArrayPrototypePop(n,r){return n.pop(r)},ArrayPrototypePush(n,r){return n.push(r)},ArrayPrototypeSlice(n,r,o){return n.slice(r,o)},Error,FunctionPrototypeCall(n,r,...o){return n.call(r,...o)},FunctionPrototypeSymbolHasInstance(n,r){return Function.prototype[Symbol.hasInstance].call(n,r)},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(n,r){return Object.defineProperties(n,r)},ObjectDefineProperty(n,r,o){return Object.defineProperty(n,r,o)},ObjectGetOwnPropertyDescriptor(n,r){return Object.getOwnPropertyDescriptor(n,r)},ObjectKeys(n){return Object.keys(n)},ObjectSetPrototypeOf(n,r){return Object.setPrototypeOf(n,r)},Promise,PromisePrototypeCatch(n,r){return n.catch(r)},PromisePrototypeThen(n,r,o){return n.then(r,o)},PromiseReject(n){return Promise.reject(n)},PromiseResolve(n){return Promise.resolve(n)},ReflectApply:Reflect.apply,RegExpPrototypeTest(n,r){return n.test(r)},SafeSet:Set,String,StringPrototypeSlice(n,r,o){return n.slice(r,o)},StringPrototypeToLowerCase(n){return n.toLowerCase()},StringPrototypeToUpperCase(n){return n.toUpperCase()},StringPrototypeTrim(n){return n.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(n,r,o){return n.set(r,o)},Boolean,Uint8Array},sun={exports:{}};(function(n){const r=Kr,{kResistStopPropagation:o,SymbolDispose:l}=Gf,u=globalThis.AbortSignal||$o().AbortSignal,d=globalThis.AbortController||$o().AbortController,h=Object.getPrototypeOf(async function(){}).constructor,w=globalThis.Blob||r.Blob,v=typeof w<"u"?function(R){return R instanceof w}:function(R){return!1},y=(C,R)=>{if(C!==void 0&&(C===null||typeof C!="object"||!("aborted"in C)))throw new ERR_INVALID_ARG_TYPE(R,"AbortSignal",C)},E=(C,R)=>{if(typeof C!="function")throw new ERR_INVALID_ARG_TYPE(R,"Function",C)};class A extends Error{constructor(R){if(!Array.isArray(R))throw new TypeError(`Expected input to be an Array, got ${typeof R}`);let O="";for(let M=0;M{C=M,R=L}),resolve:C,reject:R}},promisify(C){return new Promise((R,O)=>{C((M,...L)=>M?O(M):R(...L))})},debuglog(){return function(){}},format(C,...R){return C.replace(/%([sdifj])/g,function(...[O,M]){const L=R.shift();return M==="f"?L.toFixed(6):M==="j"?JSON.stringify(L):M==="s"&&typeof L=="object"?`${L.constructor!==Object?L.constructor.name:""} {}`.trim():L.toString()})},inspect(C){switch(typeof C){case"string":if(C.includes("'"))if(C.includes('"')){if(!C.includes("`")&&!C.includes("${"))return`\`${C}\``}else return`"${C}"`;return`'${C}'`;case"number":return isNaN(C)?"NaN":Object.is(C,-0)?String(C):C;case"bigint":return`${String(C)}n`;case"boolean":case"undefined":return String(C);case"object":return"{}"}},types:{isAsyncFunction(C){return C instanceof h},isArrayBufferView(C){return ArrayBuffer.isView(C)}},isBlob:v,deprecate(C,R){return C},addAbortListener:Ns.addAbortListener||function(R,O){if(R===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",R);y(R,"signal"),E(O,"listener");let M;return R.aborted?queueMicrotask(()=>O()):(R.addEventListener("abort",O,{__proto__:null,once:!0,[o]:!0}),M=()=>{R.removeEventListener("abort",O)}),{__proto__:null,[l](){var L;(L=M)===null||L===void 0||L()}}},AbortSignalAny:u.any||function(R){if(R.length===1)return R[0];const O=new d,M=()=>O.abort();return R.forEach(L=>{y(L,"signals"),L.addEventListener("abort",M,{once:!0})}),O.signal.addEventListener("abort",()=>{R.forEach(L=>L.removeEventListener("abort",M))},{once:!0}),O.signal}},n.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(sun);var g1=sun.exports,nVe={};const{format:l$r,inspect:The,AggregateError:a$r}=g1,c$r=globalThis.AggregateError||a$r,u$r=Symbol("kIsNodeError"),f$r=["string","function","number","object","Function","Object","boolean","bigint","symbol"],d$r=/^([A-Z][a-z0-9]*)+$/,h$r="__node_internal_",Gge={};function hP(n,r){if(!n)throw new Gge.ERR_INTERNAL_ASSERTION(r)}function pqt(n){let r="",o=n.length;const l=n[0]==="-"?1:0;for(;o>=l+4;o-=3)r=`_${n.slice(o-3,o)}${r}`;return`${n.slice(0,o)}${r}`}function p$r(n,r,o){if(typeof r=="function")return hP(r.length<=o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${r.length}).`),r(...o);const l=(r.match(/%[dfijoOs]/g)||[]).length;return hP(l===o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${l}).`),o.length===0?r:l$r(r,...o)}function rb(n,r,o){o||(o=Error);class l extends o{constructor(...d){super(p$r(n,r,d))}toString(){return`${this.name} [${n}]: ${this.message}`}}Object.defineProperties(l.prototype,{name:{value:o.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${n}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),l.prototype.code=n,l.prototype[u$r]=!0,Gge[n]=l}function bqt(n){const r=h$r+n.name;return Object.defineProperty(n,"name",{value:r}),n}function b$r(n,r){if(n&&r&&n!==r){if(Array.isArray(r.errors))return r.errors.push(n),r;const o=new c$r([r,n],r.message);return o.code=r.code,o}return n||r}let g$r=class extends Error{constructor(r="The operation was aborted",o=void 0){if(o!==void 0&&typeof o!="object")throw new Gge.ERR_INVALID_ARG_TYPE("options","Object",o);super(r,o),this.code="ABORT_ERR",this.name="AbortError"}};rb("ERR_ASSERTION","%s",Error);rb("ERR_INVALID_ARG_TYPE",(n,r,o)=>{hP(typeof n=="string","'name' must be a string"),Array.isArray(r)||(r=[r]);let l="The ";n.endsWith(" argument")?l+=`${n} `:l+=`"${n}" ${n.includes(".")?"property":"argument"} `,l+="must be ";const u=[],d=[],h=[];for(const v of r)hP(typeof v=="string","All expected entries have to be of type string"),f$r.includes(v)?u.push(v.toLowerCase()):d$r.test(v)?d.push(v):(hP(v!=="object",'The value "object" should be written as "Object"'),h.push(v));if(d.length>0){const v=u.indexOf("object");v!==-1&&(u.splice(u,v,1),d.push("Object"))}if(u.length>0){switch(u.length){case 1:l+=`of type ${u[0]}`;break;case 2:l+=`one of type ${u[0]} or ${u[1]}`;break;default:{const v=u.pop();l+=`one of type ${u.join(", ")}, or ${v}`}}(d.length>0||h.length>0)&&(l+=" or ")}if(d.length>0){switch(d.length){case 1:l+=`an instance of ${d[0]}`;break;case 2:l+=`an instance of ${d[0]} or ${d[1]}`;break;default:{const v=d.pop();l+=`an instance of ${d.join(", ")}, or ${v}`}}h.length>0&&(l+=" or ")}switch(h.length){case 0:break;case 1:h[0].toLowerCase()!==h[0]&&(l+="an "),l+=`${h[0]}`;break;case 2:l+=`one of ${h[0]} or ${h[1]}`;break;default:{const v=h.pop();l+=`one of ${h.join(", ")}, or ${v}`}}if(o==null)l+=`. Received ${o}`;else if(typeof o=="function"&&o.name)l+=`. Received function ${o.name}`;else if(typeof o=="object"){var w;if((w=o.constructor)!==null&&w!==void 0&&w.name)l+=`. Received an instance of ${o.constructor.name}`;else{const v=The(o,{depth:-1});l+=`. Received ${v}`}}else{let v=The(o,{colors:!1});v.length>25&&(v=`${v.slice(0,25)}...`),l+=`. Received type ${typeof o} (${v})`}return l},TypeError);rb("ERR_INVALID_ARG_VALUE",(n,r,o="is invalid")=>{let l=The(r);return l.length>128&&(l=l.slice(0,128)+"..."),`The ${n.includes(".")?"property":"argument"} '${n}' ${o}. Received ${l}`},TypeError);rb("ERR_INVALID_RETURN_VALUE",(n,r,o)=>{var l;const u=o!=null&&(l=o.constructor)!==null&&l!==void 0&&l.name?`instance of ${o.constructor.name}`:`type ${typeof o}`;return`Expected ${n} to be returned from the "${r}" function but got ${u}.`},TypeError);rb("ERR_MISSING_ARGS",(...n)=>{hP(n.length>0,"At least one arg needs to be specified");let r;const o=n.length;switch(n=(Array.isArray(n)?n:[n]).map(l=>`"${l}"`).join(" or "),o){case 1:r+=`The ${n[0]} argument`;break;case 2:r+=`The ${n[0]} and ${n[1]} arguments`;break;default:{const l=n.pop();r+=`The ${n.join(", ")}, and ${l} arguments`}break}return`${r} must be specified`},TypeError);rb("ERR_OUT_OF_RANGE",(n,r,o)=>{hP(r,'Missing "range" argument');let l;return Number.isInteger(o)&&Math.abs(o)>2**32?l=pqt(String(o)):typeof o=="bigint"?(l=String(o),(o>2n**32n||o<-(2n**32n))&&(l=pqt(l)),l+="n"):l=The(o),`The value of "${n}" is out of range. It must be ${r}. Received ${l}`},RangeError);rb("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);rb("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);rb("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);rb("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);rb("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);rb("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);rb("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);rb("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);rb("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);rb("ERR_STREAM_WRITE_AFTER_END","write after end",Error);rb("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var D0={AbortError:g$r,aggregateTwoErrors:bqt(b$r),hideStackFrames:bqt,codes:Gge};const{ArrayIsArray:rVe,ArrayPrototypeIncludes:lun,ArrayPrototypeJoin:aun,ArrayPrototypeMap:w$r,NumberIsInteger:iVe,NumberIsNaN:m$r,NumberMAX_SAFE_INTEGER:y$r,NumberMIN_SAFE_INTEGER:v$r,NumberParseInt:_$r,ObjectPrototypeHasOwnProperty:S$r,RegExpPrototypeExec:cun,String:E$r,StringPrototypeToUpperCase:k$r,StringPrototypeTrim:R$r}=Gf,{hideStackFrames:Ev,codes:{ERR_SOCKET_BAD_PORT:x$r,ERR_INVALID_ARG_TYPE:eg,ERR_INVALID_ARG_VALUE:Ij,ERR_OUT_OF_RANGE:MP,ERR_UNKNOWN_SIGNAL:gqt}}=D0,{normalizeEncoding:C$r}=g1,{isAsyncFunction:A$r,isArrayBufferView:T$r}=g1.types,wqt={};function $$r(n){return n===(n|0)}function I$r(n){return n===n>>>0}const P$r=/^[0-7]+$/,O$r="must be a 32-bit unsigned integer or an octal string";function N$r(n,r,o){if(typeof n>"u"&&(n=o),typeof n=="string"){if(cun(P$r,n)===null)throw new Ij(r,n,O$r);n=_$r(n,8)}return uun(n,r),n}const M$r=Ev((n,r,o=v$r,l=y$r)=>{if(typeof n!="number")throw new eg(r,"number",n);if(!iVe(n))throw new MP(r,"an integer",n);if(nl)throw new MP(r,`>= ${o} && <= ${l}`,n)}),D$r=Ev((n,r,o=-2147483648,l=2147483647)=>{if(typeof n!="number")throw new eg(r,"number",n);if(!iVe(n))throw new MP(r,"an integer",n);if(nl)throw new MP(r,`>= ${o} && <= ${l}`,n)}),uun=Ev((n,r,o=!1)=>{if(typeof n!="number")throw new eg(r,"number",n);if(!iVe(n))throw new MP(r,"an integer",n);const l=o?1:0,u=4294967295;if(nu)throw new MP(r,`>= ${l} && <= ${u}`,n)});function oVe(n,r){if(typeof n!="string")throw new eg(r,"string",n)}function L$r(n,r,o=void 0,l){if(typeof n!="number")throw new eg(r,"number",n);if(o!=null&&nl||(o!=null||l!=null)&&m$r(n))throw new MP(r,`${o!=null?`>= ${o}`:""}${o!=null&&l!=null?" && ":""}${l!=null?`<= ${l}`:""}`,n)}const j$r=Ev((n,r,o)=>{if(!lun(o,n)){const u="must be one of: "+aun(w$r(o,d=>typeof d=="string"?`'${d}'`:E$r(d)),", ");throw new Ij(r,n,u)}});function fun(n,r){if(typeof n!="boolean")throw new eg(r,"boolean",n)}function gDe(n,r,o){return n==null||!S$r(n,r)?o:n[r]}const F$r=Ev((n,r,o=null)=>{const l=gDe(o,"allowArray",!1),u=gDe(o,"allowFunction",!1);if(!gDe(o,"nullable",!1)&&n===null||!l&&rVe(n)||typeof n!="object"&&(!u||typeof n!="function"))throw new eg(r,"Object",n)}),B$r=Ev((n,r)=>{if(n!=null&&typeof n!="object"&&typeof n!="function")throw new eg(r,"a dictionary",n)}),Vge=Ev((n,r,o=0)=>{if(!rVe(n))throw new eg(r,"Array",n);if(n.length{if(!T$r(n))throw new eg(r,["Buffer","TypedArray","DataView"],n)});function z$r(n,r){const o=C$r(r),l=n.length;if(o==="hex"&&l%2!==0)throw new Ij("encoding",r,`is invalid for data of length ${l}`)}function K$r(n,r="Port",o=!0){if(typeof n!="number"&&typeof n!="string"||typeof n=="string"&&R$r(n).length===0||+n!==+n>>>0||n>65535||n===0&&!o)throw new x$r(r,n,o);return n|0}const dun=Ev((n,r)=>{if(n!==void 0&&(n===null||typeof n!="object"||!("aborted"in n)))throw new eg(r,"AbortSignal",n)}),q$r=Ev((n,r)=>{if(typeof n!="function")throw new eg(r,"Function",n)}),X$r=Ev((n,r)=>{if(typeof n!="function"||A$r(n))throw new eg(r,"Function",n)}),J$r=Ev((n,r)=>{if(n!==void 0)throw new eg(r,"undefined",n)});function Y$r(n,r,o){if(!lun(o,n))throw new eg(r,`('${aun(o,"|")}')`,n)}const Q$r=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function mqt(n,r){if(typeof n>"u"||!cun(Q$r,n))throw new Ij(r,n,'must be an array or string of format "; rel=preload; as=style"')}function Z$r(n){if(typeof n=="string")return mqt(n,"hints"),n;if(rVe(n)){const r=n.length;let o="";if(r===0)return o;for(let l=0;l; rel=preload; as=style"')}var BJ={isInt32:$$r,isUint32:I$r,parseFileMode:N$r,validateArray:Vge,validateStringArray:W$r,validateBooleanArray:H$r,validateAbortSignalArray:U$r,validateBoolean:fun,validateBuffer:V$r,validateDictionary:B$r,validateEncoding:z$r,validateFunction:q$r,validateInt32:D$r,validateInteger:M$r,validateNumber:L$r,validateObject:F$r,validateOneOf:j$r,validatePlainFunction:X$r,validatePort:K$r,validateSignalName:G$r,validateString:oVe,validateUint32:uun,validateUndefined:J$r,validateUnion:Y$r,validateAbortSignal:dun,validateLinkHeaderValue:Z$r},sVe={exports:{}};const{SymbolAsyncIterator:yqt,SymbolIterator:vqt,SymbolFor:_O}=Gf,hun=_O("nodejs.stream.destroyed"),pun=_O("nodejs.stream.errored"),RBe=_O("nodejs.stream.readable"),xBe=_O("nodejs.stream.writable"),bun=_O("nodejs.stream.disturbed"),e6r=_O("nodejs.webstream.isClosedPromise"),t6r=_O("nodejs.webstream.controllerErrorFunction");function zge(n,r=!1){var o;return!!(n&&typeof n.pipe=="function"&&typeof n.on=="function"&&(!r||typeof n.pause=="function"&&typeof n.resume=="function")&&(!n._writableState||((o=n._readableState)===null||o===void 0?void 0:o.readable)!==!1)&&(!n._writableState||n._readableState))}function Kge(n){var r;return!!(n&&typeof n.write=="function"&&typeof n.on=="function"&&(!n._readableState||((r=n._writableState)===null||r===void 0?void 0:r.writable)!==!1))}function n6r(n){return!!(n&&typeof n.pipe=="function"&&n._readableState&&typeof n.on=="function"&&typeof n.write=="function")}function Rk(n){return n&&(n._readableState||n._writableState||typeof n.write=="function"&&typeof n.on=="function"||typeof n.pipe=="function"&&typeof n.on=="function")}function gun(n){return!!(n&&!Rk(n)&&typeof n.pipeThrough=="function"&&typeof n.getReader=="function"&&typeof n.cancel=="function")}function wun(n){return!!(n&&!Rk(n)&&typeof n.getWriter=="function"&&typeof n.abort=="function")}function mun(n){return!!(n&&!Rk(n)&&typeof n.readable=="object"&&typeof n.writable=="object")}function r6r(n){return gun(n)||wun(n)||mun(n)}function i6r(n,r){return n==null?!1:r===!0?typeof n[yqt]=="function":r===!1?typeof n[vqt]=="function":typeof n[yqt]=="function"||typeof n[vqt]=="function"}function qge(n){if(!Rk(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!!(n.destroyed||n[hun]||l!=null&&l.destroyed)}function yun(n){if(!Kge(n))return null;if(n.writableEnded===!0)return!0;const r=n._writableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function o6r(n,r){if(!Kge(n))return null;if(n.writableFinished===!0)return!0;const o=n._writableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.finished)!="boolean"?null:!!(o.finished||r===!1&&o.ended===!0&&o.length===0)}function s6r(n){if(!zge(n))return null;if(n.readableEnded===!0)return!0;const r=n._readableState;return!r||r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function vun(n,r){if(!zge(n))return null;const o=n._readableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.endEmitted)!="boolean"?null:!!(o.endEmitted||r===!1&&o.ended===!0&&o.length===0)}function _un(n){return n&&n[RBe]!=null?n[RBe]:typeof(n==null?void 0:n.readable)!="boolean"?null:qge(n)?!1:zge(n)&&n.readable&&!vun(n)}function Sun(n){return n&&n[xBe]!=null?n[xBe]:typeof(n==null?void 0:n.writable)!="boolean"?null:qge(n)?!1:Kge(n)&&n.writable&&!yun(n)}function l6r(n,r){return Rk(n)?qge(n)?!0:!((r==null?void 0:r.readable)!==!1&&_un(n)||(r==null?void 0:r.writable)!==!1&&Sun(n)):null}function a6r(n){var r,o;return Rk(n)?n.writableErrored?n.writableErrored:(r=(o=n._writableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function c6r(n){var r,o;return Rk(n)?n.readableErrored?n.readableErrored:(r=(o=n._readableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function u6r(n){if(!Rk(n))return null;if(typeof n.closed=="boolean")return n.closed;const r=n._writableState,o=n._readableState;return typeof(r==null?void 0:r.closed)=="boolean"||typeof(o==null?void 0:o.closed)=="boolean"?(r==null?void 0:r.closed)||(o==null?void 0:o.closed):typeof n._closed=="boolean"&&Eun(n)?n._closed:null}function Eun(n){return typeof n._closed=="boolean"&&typeof n._defaultKeepAlive=="boolean"&&typeof n._removedConnection=="boolean"&&typeof n._removedContLen=="boolean"}function kun(n){return typeof n._sent100=="boolean"&&Eun(n)}function f6r(n){var r;return typeof n._consuming=="boolean"&&typeof n._dumped=="boolean"&&((r=n.req)===null||r===void 0?void 0:r.upgradeOrConnect)===void 0}function d6r(n){if(!Rk(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!l&&kun(n)||!!(l&&l.autoDestroy&&l.emitClose&&l.closed===!1)}function h6r(n){var r;return!!(n&&((r=n[bun])!==null&&r!==void 0?r:n.readableDidRead||n.readableAborted))}function p6r(n){var r,o,l,u,d,h,w,v,y,E;return!!(n&&((r=(o=(l=(u=(d=(h=n[pun])!==null&&h!==void 0?h:n.readableErrored)!==null&&d!==void 0?d:n.writableErrored)!==null&&u!==void 0?u:(w=n._readableState)===null||w===void 0?void 0:w.errorEmitted)!==null&&l!==void 0?l:(v=n._writableState)===null||v===void 0?void 0:v.errorEmitted)!==null&&o!==void 0?o:(y=n._readableState)===null||y===void 0?void 0:y.errored)!==null&&r!==void 0?r:!((E=n._writableState)===null||E===void 0)&&E.errored))}var Nx={isDestroyed:qge,kIsDestroyed:hun,isDisturbed:h6r,kIsDisturbed:bun,isErrored:p6r,kIsErrored:pun,isReadable:_un,kIsReadable:RBe,kIsClosedPromise:e6r,kControllerErrorFunction:t6r,kIsWritable:xBe,isClosed:u6r,isDuplexNodeStream:n6r,isFinished:l6r,isIterable:i6r,isReadableNodeStream:zge,isReadableStream:gun,isReadableEnded:s6r,isReadableFinished:vun,isReadableErrored:c6r,isNodeStream:Rk,isWebStream:r6r,isWritable:Sun,isWritableNodeStream:Kge,isWritableStream:wun,isWritableEnded:yun,isWritableFinished:o6r,isWritableErrored:a6r,isServerRequest:f6r,isServerResponse:kun,willEmitClose:d6r,isTransformStream:mun};const eT=ui,{AbortError:Run,codes:b6r}=D0,{ERR_INVALID_ARG_TYPE:g6r,ERR_STREAM_PREMATURE_CLOSE:_qt}=b6r,{kEmptyObject:CBe,once:ABe}=g1,{validateAbortSignal:w6r,validateFunction:m6r,validateObject:y6r,validateBoolean:v6r}=BJ,{Promise:_6r,PromisePrototypeThen:S6r,SymbolDispose:xun}=Gf,{isClosed:E6r,isReadable:Sqt,isReadableNodeStream:wDe,isReadableStream:k6r,isReadableFinished:Eqt,isReadableErrored:kqt,isWritable:Rqt,isWritableNodeStream:xqt,isWritableStream:R6r,isWritableFinished:Cqt,isWritableErrored:Aqt,isNodeStream:x6r,willEmitClose:C6r,kIsClosedPromise:A6r}=Nx;let bL;function T6r(n){return n.setHeader&&typeof n.abort=="function"}const TBe=()=>{};function Cun(n,r,o){var l,u;if(arguments.length===2?(o=r,r=CBe):r==null?r=CBe:y6r(r,"options"),m6r(o,"callback"),w6r(r.signal,"options.signal"),o=ABe(o),k6r(n)||R6r(n))return $6r(n,r,o);if(!x6r(n))throw new g6r("stream",["ReadableStream","WritableStream","Stream"],n);const d=(l=r.readable)!==null&&l!==void 0?l:wDe(n),h=(u=r.writable)!==null&&u!==void 0?u:xqt(n),w=n._writableState,v=n._readableState,y=()=>{n.writable||C()};let E=C6r(n)&&wDe(n)===d&&xqt(n)===h,A=Cqt(n,!1);const C=()=>{A=!0,n.destroyed&&(E=!1),!(E&&(!n.readable||d))&&(!d||R)&&o.call(n)};let R=Eqt(n,!1);const O=()=>{R=!0,n.destroyed&&(E=!1),!(E&&(!n.writable||h))&&(!h||A)&&o.call(n)},M=te=>{o.call(n,te)};let L=E6r(n);const H=()=>{L=!0;const te=Aqt(n)||kqt(n);if(te&&typeof te!="boolean")return o.call(n,te);if(d&&!R&&wDe(n,!0)&&!Eqt(n,!1))return o.call(n,new _qt);if(h&&!A&&!Cqt(n,!1))return o.call(n,new _qt);o.call(n)},G=()=>{L=!0;const te=Aqt(n)||kqt(n);if(te&&typeof te!="boolean")return o.call(n,te);o.call(n)},j=()=>{n.req.on("finish",C)};T6r(n)?(n.on("complete",C),E||n.on("abort",H),n.req?j():n.on("request",j)):h&&!w&&(n.on("end",y),n.on("close",y)),!E&&typeof n.aborted=="boolean"&&n.on("aborted",H),n.on("end",O),n.on("finish",C),r.error!==!1&&n.on("error",M),n.on("close",H),L?eT.nextTick(H):w!=null&&w.errorEmitted||v!=null&&v.errorEmitted?E||eT.nextTick(G):(!d&&(!E||Sqt(n))&&(A||Rqt(n)===!1)||!h&&(!E||Rqt(n))&&(R||Sqt(n)===!1)||v&&n.req&&n.aborted)&&eT.nextTick(G);const Q=()=>{o=TBe,n.removeListener("aborted",H),n.removeListener("complete",C),n.removeListener("abort",H),n.removeListener("request",j),n.req&&n.req.removeListener("finish",C),n.removeListener("end",y),n.removeListener("close",y),n.removeListener("finish",C),n.removeListener("end",O),n.removeListener("error",M),n.removeListener("close",H)};if(r.signal&&!L){const te=()=>{const pe=o;Q(),pe.call(n,new Run(void 0,{cause:r.signal.reason}))};if(r.signal.aborted)eT.nextTick(te);else{bL=bL||g1.addAbortListener;const pe=bL(r.signal,te),De=o;o=ABe((...Re)=>{pe[xun](),De.apply(n,Re)})}}return Q}function $6r(n,r,o){let l=!1,u=TBe;if(r.signal)if(u=()=>{l=!0,o.call(n,new Run(void 0,{cause:r.signal.reason}))},r.signal.aborted)eT.nextTick(u);else{bL=bL||g1.addAbortListener;const h=bL(r.signal,u),w=o;o=ABe((...v)=>{h[xun](),w.apply(n,v)})}const d=(...h)=>{l||eT.nextTick(()=>o.apply(n,h))};return S6r(n[A6r].promise,d,d),TBe}function I6r(n,r){var o;let l=!1;return r===null&&(r=CBe),(o=r)!==null&&o!==void 0&&o.cleanup&&(v6r(r.cleanup,"cleanup"),l=r.cleanup),new _6r((u,d)=>{const h=Cun(n,r,w=>{l&&h(),w?d(w):u()})})}sVe.exports=Cun;sVe.exports.finished=I6r;var KT=sVe.exports;const JE=ui,{aggregateTwoErrors:P6r,codes:{ERR_MULTIPLE_CALLBACK:O6r},AbortError:N6r}=D0,{Symbol:Aun}=Gf,{kIsDestroyed:M6r,isDestroyed:D6r,isFinished:L6r,isServerRequest:j6r}=Nx,Tun=Aun("kDestroy"),$Be=Aun("kConstruct");function $un(n,r,o){n&&(n.stack,r&&!r.errored&&(r.errored=n),o&&!o.errored&&(o.errored=n))}function F6r(n,r){const o=this._readableState,l=this._writableState,u=l||o;return l!=null&&l.destroyed||o!=null&&o.destroyed?(typeof r=="function"&&r(),this):($un(n,l,o),l&&(l.destroyed=!0),o&&(o.destroyed=!0),u.constructed?Tqt(this,n,r):this.once(Tun,function(d){Tqt(this,P6r(d,n),r)}),this)}function Tqt(n,r,o){let l=!1;function u(d){if(l)return;l=!0;const h=n._readableState,w=n._writableState;$un(d,w,h),w&&(w.closed=!0),h&&(h.closed=!0),typeof o=="function"&&o(d),d?JE.nextTick(B6r,n,d):JE.nextTick(Iun,n)}try{n._destroy(r||null,u)}catch(d){u(d)}}function B6r(n,r){IBe(n,r),Iun(n)}function Iun(n){const r=n._readableState,o=n._writableState;o&&(o.closeEmitted=!0),r&&(r.closeEmitted=!0),(o!=null&&o.emitClose||r!=null&&r.emitClose)&&n.emit("close")}function IBe(n,r){const o=n._readableState,l=n._writableState;l!=null&&l.errorEmitted||o!=null&&o.errorEmitted||(l&&(l.errorEmitted=!0),o&&(o.errorEmitted=!0),n.emit("error",r))}function W6r(){const n=this._readableState,r=this._writableState;n&&(n.constructed=!0,n.closed=!1,n.closeEmitted=!1,n.destroyed=!1,n.errored=null,n.errorEmitted=!1,n.reading=!1,n.ended=n.readable===!1,n.endEmitted=n.readable===!1),r&&(r.constructed=!0,r.destroyed=!1,r.closed=!1,r.closeEmitted=!1,r.errored=null,r.errorEmitted=!1,r.finalCalled=!1,r.prefinished=!1,r.ended=r.writable===!1,r.ending=r.writable===!1,r.finished=r.writable===!1)}function PBe(n,r,o){const l=n._readableState,u=n._writableState;if(u!=null&&u.destroyed||l!=null&&l.destroyed)return this;l!=null&&l.autoDestroy||u!=null&&u.autoDestroy?n.destroy(r):r&&(r.stack,u&&!u.errored&&(u.errored=r),l&&!l.errored&&(l.errored=r),o?JE.nextTick(IBe,n,r):IBe(n,r))}function H6r(n,r){if(typeof n._construct!="function")return;const o=n._readableState,l=n._writableState;o&&(o.constructed=!1),l&&(l.constructed=!1),n.once($Be,r),!(n.listenerCount($Be)>1)&&JE.nextTick(U6r,n)}function U6r(n){let r=!1;function o(l){if(r){PBe(n,l??new O6r);return}r=!0;const u=n._readableState,d=n._writableState,h=d||u;u&&(u.constructed=!0),d&&(d.constructed=!0),h.destroyed?n.emit(Tun,l):l?PBe(n,l,!0):JE.nextTick(G6r,n)}try{n._construct(l=>{JE.nextTick(o,l)})}catch(l){JE.nextTick(o,l)}}function G6r(n){n.emit($Be)}function $qt(n){return(n==null?void 0:n.setHeader)&&typeof n.abort=="function"}function Pun(n){n.emit("close")}function V6r(n,r){n.emit("error",r),JE.nextTick(Pun,n)}function z6r(n,r){!n||D6r(n)||(!r&&!L6r(n)&&(r=new N6r),j6r(n)?(n.socket=null,n.destroy(r)):$qt(n)?n.abort():$qt(n.req)?n.req.abort():typeof n.destroy=="function"?n.destroy(r):typeof n.close=="function"?n.close():r?JE.nextTick(V6r,n,r):JE.nextTick(Pun,n),n.destroyed||(n[M6r]=!0))}var Pj={construct:H6r,destroyer:z6r,destroy:F6r,undestroy:W6r,errorOrDestroy:PBe};const{ArrayIsArray:K6r,ObjectSetPrototypeOf:Oun}=Gf,{EventEmitter:Xge}=Ns;function Jge(n){Xge.call(this,n)}Oun(Jge.prototype,Xge.prototype);Oun(Jge,Xge);Jge.prototype.pipe=function(n,r){const o=this;function l(E){n.writable&&n.write(E)===!1&&o.pause&&o.pause()}o.on("data",l);function u(){o.readable&&o.resume&&o.resume()}n.on("drain",u),!n._isStdio&&(!r||r.end!==!1)&&(o.on("end",h),o.on("close",w));let d=!1;function h(){d||(d=!0,n.end())}function w(){d||(d=!0,typeof n.destroy=="function"&&n.destroy())}function v(E){y(),Xge.listenerCount(this,"error")===0&&this.emit("error",E)}OBe(o,"error",v),OBe(n,"error",v);function y(){o.removeListener("data",l),n.removeListener("drain",u),o.removeListener("end",h),o.removeListener("close",w),o.removeListener("error",v),n.removeListener("error",v),o.removeListener("end",y),o.removeListener("close",y),n.removeListener("close",y)}return o.on("end",y),o.on("close",y),n.on("close",y),n.emit("pipe",o),n};function OBe(n,r,o){if(typeof n.prependListener=="function")return n.prependListener(r,o);!n._events||!n._events[r]?n.on(r,o):K6r(n._events[r])?n._events[r].unshift(o):n._events[r]=[o,n._events[r]]}var lVe={Stream:Jge,prependListener:OBe},Nun={exports:{}};(function(n){const{SymbolDispose:r}=Gf,{AbortError:o,codes:l}=D0,{isNodeStream:u,isWebStream:d,kControllerErrorFunction:h}=Nx,w=KT,{ERR_INVALID_ARG_TYPE:v}=l;let y;const E=(A,C)=>{if(typeof A!="object"||!("aborted"in A))throw new v(C,"AbortSignal",A)};n.exports.addAbortSignal=function(C,R){if(E(C,"signal"),!u(R)&&!d(R))throw new v("stream",["ReadableStream","WritableStream","Stream"],R);return n.exports.addAbortSignalNoValidate(C,R)},n.exports.addAbortSignalNoValidate=function(A,C){if(typeof A!="object"||!("aborted"in A))return C;const R=u(C)?()=>{C.destroy(new o(void 0,{cause:A.reason}))}:()=>{C[h](new o(void 0,{cause:A.reason}))};if(A.aborted)R();else{y=y||g1.addAbortListener;const O=y(A,R);w(C,O[r])}return C}})(Nun);var Yge=Nun.exports;const{StringPrototypeSlice:Iqt,SymbolIterator:q6r,TypedArrayPrototypeSet:tfe,Uint8Array:X6r}=Gf,{Buffer:mDe}=Kr,{inspect:J6r}=g1;var Y6r=class{constructor(){this.head=null,this.tail=null,this.length=0}push(r){const o={data:r,next:null};this.length>0?this.tail.next=o:this.head=o,this.tail=o,++this.length}unshift(r){const o={data:r,next:this.head};this.length===0&&(this.tail=o),this.head=o,++this.length}shift(){if(this.length===0)return;const r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}clear(){this.head=this.tail=null,this.length=0}join(r){if(this.length===0)return"";let o=this.head,l=""+o.data;for(;(o=o.next)!==null;)l+=r+o.data;return l}concat(r){if(this.length===0)return mDe.alloc(0);const o=mDe.allocUnsafe(r>>>0);let l=this.head,u=0;for(;l;)tfe(o,l.data,u),u+=l.data.length,l=l.next;return o}consume(r,o){const l=this.head.data;if(rd.length)o+=d,r-=d.length;else{r===d.length?(o+=d,++u,l.next?this.head=l.next:this.head=this.tail=null):(o+=Iqt(d,0,r),this.head=l,l.data=Iqt(d,r));break}++u}while((l=l.next)!==null);return this.length-=u,o}_getBuffer(r){const o=mDe.allocUnsafe(r),l=r;let u=this.head,d=0;do{const h=u.data;if(r>h.length)tfe(o,h,l-r),r-=h.length;else{r===h.length?(tfe(o,h,l-r),++d,u.next?this.head=u.next:this.head=this.tail=null):(tfe(o,new X6r(h.buffer,h.byteOffset,r),l-r),this.head=u,u.data=h.slice(r));break}++d}while((u=u.next)!==null);return this.length-=d,o}[Symbol.for("nodejs.util.inspect.custom")](r,o){return J6r(this,{...o,depth:0,customInspect:!1})}};const{MathFloor:Q6r,NumberIsInteger:Z6r}=Gf,{validateInteger:eIr}=BJ,{ERR_INVALID_ARG_VALUE:tIr}=D0.codes;let Mun=16*1024,Dun=16;function nIr(n,r,o){return n.highWaterMark!=null?n.highWaterMark:r?n[o]:null}function Lun(n){return n?Dun:Mun}function rIr(n,r){eIr(r,"value",0),n?Dun=r:Mun=r}function iIr(n,r,o,l){const u=nIr(r,l,o);if(u!=null){if(!Z6r(u)||u<0){const d=l?`options.${o}`:"options.highWaterMark";throw new tIr(d,u)}return Q6r(u)}return Lun(n.objectMode)}var Qge={getHighWaterMark:iIr,getDefaultHighWaterMark:Lun,setDefaultHighWaterMark:rIr};const Pqt=ui,{PromisePrototypeThen:oIr,SymbolAsyncIterator:Oqt,SymbolIterator:Nqt}=Gf,{Buffer:sIr}=Kr,{ERR_INVALID_ARG_TYPE:lIr,ERR_STREAM_NULL_VALUES:aIr}=D0.codes;function cIr(n,r,o){let l;if(typeof r=="string"||r instanceof sIr)return new n({objectMode:!0,...o,read(){this.push(r),this.push(null)}});let u;if(r&&r[Oqt])u=!0,l=r[Oqt]();else if(r&&r[Nqt])u=!1,l=r[Nqt]();else throw new lIr("iterable",["Iterable"],r);const d=new n({objectMode:!0,highWaterMark:1,...o});let h=!1;d._read=function(){h||(h=!0,v())},d._destroy=function(y,E){oIr(w(y),()=>Pqt.nextTick(E,y),A=>Pqt.nextTick(E,A||y))};async function w(y){const E=y!=null,A=typeof l.throw=="function";if(E&&A){const{value:C,done:R}=await l.throw(y);if(await C,R)return}if(typeof l.return=="function"){const{value:C}=await l.return();await C}}async function v(){for(;;){try{const{value:y,done:E}=u?await l.next():l.next();if(E)d.push(null);else{const A=y&&typeof y.then=="function"?await y:y;if(A===null)throw h=!1,new aIr;if(d.push(A))continue;h=!1}}catch(y){d.destroy(y)}break}}return d}var jun=cIr,yDe,Mqt;function Zge(){if(Mqt)return yDe;Mqt=1;const n=ui,{ArrayPrototypeIndexOf:r,NumberIsInteger:o,NumberIsNaN:l,NumberParseInt:u,ObjectDefineProperties:d,ObjectKeys:h,ObjectSetPrototypeOf:w,Promise:v,SafeSet:y,SymbolAsyncDispose:E,SymbolAsyncIterator:A,Symbol:C}=Gf;yDe=he,he.ReadableState=_t;const{EventEmitter:R}=Ns,{Stream:O,prependListener:M}=lVe,{Buffer:L}=Kr,{addAbortSignal:H}=Yge,G=KT;let j=g1.debuglog("stream",S=>{j=S});const Q=Y6r,te=Pj,{getHighWaterMark:pe,getDefaultHighWaterMark:De}=Qge,{aggregateTwoErrors:Re,codes:{ERR_INVALID_ARG_TYPE:le,ERR_METHOD_NOT_IMPLEMENTED:xe,ERR_OUT_OF_RANGE:be,ERR_STREAM_PUSH_AFTER_EOF:ae,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:F},AbortError:me}=D0,{validateObject:ye}=BJ,we=C("kPaused"),{StringDecoder:Be}=rm,He=jun;w(he.prototype,O.prototype),w(he,O);const Ue=()=>{},{errorOrDestroy:Ge}=te,Le=1,ft=2,re=4,Te=8,dt=16,at=32,Qe=64,yt=128,Lt=256,nn=512,Pe=1024,Ne=2048,T=4096,$=8192,B=16384,K=32768,q=65536,ke=1<<17,Ee=1<<18;function Ie(S){return{enumerable:!1,get(){return(this.state&S)!==0},set(x){x?this.state|=S:this.state&=~S}}}d(_t.prototype,{objectMode:Ie(Le),ended:Ie(ft),endEmitted:Ie(re),reading:Ie(Te),constructed:Ie(dt),sync:Ie(at),needReadable:Ie(Qe),emittedReadable:Ie(yt),readableListening:Ie(Lt),resumeScheduled:Ie(nn),errorEmitted:Ie(Pe),emitClose:Ie(Ne),autoDestroy:Ie(T),destroyed:Ie($),closed:Ie(B),closeEmitted:Ie(K),multiAwaitDrain:Ie(q),readingMore:Ie(ke),dataEmitted:Ie(Ee)});function _t(S,x,Y){typeof Y!="boolean"&&(Y=x instanceof gx()),this.state=Ne|T|dt|at,S&&S.objectMode&&(this.state|=Le),Y&&S&&S.readableObjectMode&&(this.state|=Le),this.highWaterMark=S?pe(this,S,"readableHighWaterMark",Y):De(!1),this.buffer=new Q,this.length=0,this.pipes=[],this.flowing=null,this[we]=null,S&&S.emitClose===!1&&(this.state&=~Ne),S&&S.autoDestroy===!1&&(this.state&=~T),this.errored=null,this.defaultEncoding=S&&S.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,S&&S.encoding&&(this.decoder=new Be(S.encoding),this.encoding=S.encoding)}function he(S){if(!(this instanceof he))return new he(S);const x=this instanceof gx();this._readableState=new _t(S,this,x),S&&(typeof S.read=="function"&&(this._read=S.read),typeof S.destroy=="function"&&(this._destroy=S.destroy),typeof S.construct=="function"&&(this._construct=S.construct),S.signal&&!x&&H(S.signal,this)),O.call(this,S),te.construct(this,()=>{this._readableState.needReadable&&pt(this,this._readableState)})}he.prototype.destroy=te.destroy,he.prototype._undestroy=te.undestroy,he.prototype._destroy=function(S,x){x(S)},he.prototype[R.captureRejectionSymbol]=function(S){this.destroy(S)},he.prototype[E]=function(){let S;return this.destroyed||(S=this.readableEnded?null:new me,this.destroy(S)),new v((x,Y)=>G(this,J=>J&&J!==S?Y(J):x(null)))},he.prototype.push=function(S,x){return Xt(this,S,x,!1)},he.prototype.unshift=function(S,x){return Xt(this,S,x,!0)};function Xt(S,x,Y,J){j("readableAddChunk",x);const ue=S._readableState;let Yt;if(ue.state&Le||(typeof x=="string"?(Y=Y||ue.defaultEncoding,ue.encoding!==Y&&(J&&ue.encoding?x=L.from(x,Y).toString(ue.encoding):(x=L.from(x,Y),Y=""))):x instanceof L?Y="":O._isUint8Array(x)?(x=O._uint8ArrayToBuffer(x),Y=""):x!=null&&(Yt=new le("chunk",["string","Buffer","Uint8Array"],x))),Yt)Ge(S,Yt);else if(x===null)ue.state&=~Te,ce(S,ue);else if(ue.state&Le||x&&x.length>0)if(J)if(ue.state&re)Ge(S,new F);else{if(ue.destroyed||ue.errored)return!1;Zt(S,ue,x,!0)}else if(ue.ended)Ge(S,new ae);else{if(ue.destroyed||ue.errored)return!1;ue.state&=~Te,ue.decoder&&!Y?(x=ue.decoder.write(x),ue.objectMode||x.length!==0?Zt(S,ue,x,!1):pt(S,ue)):Zt(S,ue,x,!1)}else J||(ue.state&=~Te,pt(S,ue));return!ue.ended&&(ue.length0?(x.state&q?x.awaitDrainWriters.clear():x.awaitDrainWriters=null,x.dataEmitted=!0,S.emit("data",Y)):(x.length+=x.objectMode?1:Y.length,J?x.buffer.unshift(Y):x.buffer.push(Y),x.state&Qe&&de(S)),pt(S,x)}he.prototype.isPaused=function(){const S=this._readableState;return S[we]===!0||S.flowing===!1},he.prototype.setEncoding=function(S){const x=new Be(S);this._readableState.decoder=x,this._readableState.encoding=this._readableState.decoder.encoding;const Y=this._readableState.buffer;let J="";for(const ue of Y)J+=x.write(ue);return Y.clear(),J!==""&&Y.push(J),this._readableState.length=J.length,this};const $n=1073741824;function Gn(S){if(S>$n)throw new be("size","<= 1GiB",S);return S--,S|=S>>>1,S|=S>>>2,S|=S>>>4,S|=S>>>8,S|=S>>>16,S++,S}function $e(S,x){return S<=0||x.length===0&&x.ended?0:x.state&Le?1:l(S)?x.flowing&&x.length?x.buffer.first().length:x.length:S<=x.length?S:x.ended?x.length:0}he.prototype.read=function(S){j("read",S),S===void 0?S=NaN:o(S)||(S=u(S,10));const x=this._readableState,Y=S;if(S>x.highWaterMark&&(x.highWaterMark=Gn(S)),S!==0&&(x.state&=~yt),S===0&&x.needReadable&&((x.highWaterMark!==0?x.length>=x.highWaterMark:x.length>0)||x.ended))return j("read: emitReadable",x.length,x.ended),x.length===0&&x.ended?co(this):de(this),null;if(S=$e(S,x),S===0&&x.ended)return x.length===0&&co(this),null;let J=(x.state&Qe)!==0;if(j("need readable",J),(x.length===0||x.length-S0?ue=Al(S,x):ue=null,ue===null?(x.needReadable=x.length<=x.highWaterMark,S=0):(x.length-=S,x.multiAwaitDrain?x.awaitDrainWriters.clear():x.awaitDrainWriters=null),x.length===0&&(x.ended||(x.needReadable=!0),Y!==S&&x.ended&&co(this)),ue!==null&&!x.errorEmitted&&!x.closeEmitted&&(x.dataEmitted=!0,this.emit("data",ue)),ue};function ce(S,x){if(j("onEofChunk"),!x.ended){if(x.decoder){const Y=x.decoder.end();Y&&Y.length&&(x.buffer.push(Y),x.length+=x.objectMode?1:Y.length)}x.ended=!0,x.sync?de(S):(x.needReadable=!1,x.emittedReadable=!0,et(S))}}function de(S){const x=S._readableState;j("emitReadable",x.needReadable,x.emittedReadable),x.needReadable=!1,x.emittedReadable||(j("emitReadable",x.flowing),x.emittedReadable=!0,n.nextTick(et,S))}function et(S){const x=S._readableState;j("emitReadable_",x.destroyed,x.length,x.ended),!x.destroyed&&!x.errored&&(x.length||x.ended)&&(S.emit("readable"),x.emittedReadable=!1),x.needReadable=!x.flowing&&!x.ended&&x.length<=x.highWaterMark,xi(S)}function pt(S,x){!x.readingMore&&x.constructed&&(x.readingMore=!0,n.nextTick(Jt,S,x))}function Jt(S,x){for(;!x.reading&&!x.ended&&(x.length1&&J.pipes.includes(S)&&(j("false write response, pause",J.awaitDrainWriters.size),J.awaitDrainWriters.add(S)),Y.pause()),Fr||(Fr=Qt(Y,S),S.on("drain",Fr))}Y.on("data",ml);function ml(jr){j("ondata");const lr=S.write(jr);j("dest.write",lr),lr===!1&&Rs()}function gs(jr){if(j("onerror",jr),wi(),S.removeListener("error",gs),S.listenerCount("error")===0){const lr=S._writableState||S._readableState;lr&&!lr.errorEmitted?Ge(S,jr):S.emit("error",jr)}}M(S,"error",gs);function as(){S.removeListener("finish",ws),wi()}S.once("close",as);function ws(){j("onfinish"),S.removeListener("close",as),wi()}S.once("finish",ws);function wi(){j("unpipe"),Y.unpipe(S)}return S.emit("pipe",Y),S.writableNeedDrain===!0?Rs():J.flowing||(j("pipe resume"),Y.resume()),S};function Qt(S,x){return function(){const J=S._readableState;J.awaitDrainWriters===x?(j("pipeOnDrain",1),J.awaitDrainWriters=null):J.multiAwaitDrain&&(j("pipeOnDrain",J.awaitDrainWriters.size),J.awaitDrainWriters.delete(x)),(!J.awaitDrainWriters||J.awaitDrainWriters.size===0)&&S.listenerCount("data")&&S.resume()}}he.prototype.unpipe=function(S){const x=this._readableState,Y={hasUnpiped:!1};if(x.pipes.length===0)return this;if(!S){const ue=x.pipes;x.pipes=[],this.pause();for(let Yt=0;Yt0,J.flowing!==!1&&this.resume()):S==="readable"&&!J.endEmitted&&!J.readableListening&&(J.readableListening=J.needReadable=!0,J.flowing=!1,J.emittedReadable=!1,j("on readable",J.length,J.reading),J.length?de(this):J.reading||n.nextTick(ao,this)),Y},he.prototype.addListener=he.prototype.on,he.prototype.removeListener=function(S,x){const Y=O.prototype.removeListener.call(this,S,x);return S==="readable"&&n.nextTick(qr,this),Y},he.prototype.off=he.prototype.removeListener,he.prototype.removeAllListeners=function(S){const x=O.prototype.removeAllListeners.apply(this,arguments);return(S==="readable"||S===void 0)&&n.nextTick(qr,this),x};function qr(S){const x=S._readableState;x.readableListening=S.listenerCount("readable")>0,x.resumeScheduled&&x[we]===!1?x.flowing=!0:S.listenerCount("data")>0?S.resume():x.readableListening||(x.flowing=null)}function ao(S){j("readable nexttick read 0"),S.read(0)}he.prototype.resume=function(){const S=this._readableState;return S.flowing||(j("resume"),S.flowing=!S.readableListening,ki(this,S)),S[we]=!1,this};function ki(S,x){x.resumeScheduled||(x.resumeScheduled=!0,n.nextTick(Ri,S,x))}function Ri(S,x){j("resume",x.reading),x.reading||S.read(0),x.resumeScheduled=!1,S.emit("resume"),xi(S),x.flowing&&!x.reading&&S.read(0)}he.prototype.pause=function(){return j("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(j("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[we]=!0,this};function xi(S){const x=S._readableState;for(j("flow",x.flowing);x.flowing&&S.read()!==null;);}he.prototype.wrap=function(S){let x=!1;S.on("data",J=>{!this.push(J)&&S.pause&&(x=!0,S.pause())}),S.on("end",()=>{this.push(null)}),S.on("error",J=>{Ge(this,J)}),S.on("close",()=>{this.destroy()}),S.on("destroy",()=>{this.destroy()}),this._read=()=>{x&&S.resume&&(x=!1,S.resume())};const Y=h(S);for(let J=1;J{ue=An?Re(ue,An):null,Y(),Y=Ue});try{for(;;){const An=S.destroyed?null:S.read();if(An!==null)yield An;else{if(ue)throw ue;if(ue===null)return;await new v(J)}}}catch(An){throw ue=Re(ue,An),ue}finally{(ue||(x==null?void 0:x.destroyOnReturn)!==!1)&&(ue===void 0||S._readableState.autoDestroy)?te.destroyer(S,null):(S.off("readable",J),Yt())}}d(he.prototype,{readable:{__proto__:null,get(){const S=this._readableState;return!!S&&S.readable!==!1&&!S.destroyed&&!S.errorEmitted&&!S.endEmitted},set(S){this._readableState&&(this._readableState.readable=!!S)}},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(S){this._readableState&&(this._readableState.flowing=S)}},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(S){this._readableState&&(this._readableState.destroyed=S)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),d(_t.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[we]!==!1},set(S){this[we]=!!S}}}),he._fromList=Al;function Al(S,x){if(x.length===0)return null;let Y;return x.objectMode?Y=x.buffer.shift():!S||S>=x.length?(x.decoder?Y=x.buffer.join(""):x.buffer.length===1?Y=x.buffer.first():Y=x.buffer.concat(x.length),x.buffer.clear()):Y=x.buffer.consume(S,x.decoder),Y}function co(S){const x=S._readableState;j("endReadable",x.endEmitted),x.endEmitted||(x.ended=!0,n.nextTick(Zc,x,S))}function Zc(S,x){if(j("endReadableNT",S.endEmitted,S.length),!S.errored&&!S.closeEmitted&&!S.endEmitted&&S.length===0){if(S.endEmitted=!0,x.emit("end"),x.writable&&x.allowHalfOpen===!1)n.nextTick(bu,x);else if(S.autoDestroy){const Y=x._writableState;(!Y||Y.autoDestroy&&(Y.finished||Y.writable===!1))&&x.destroy()}}}function bu(S){S.writable&&!S.writableEnded&&!S.destroyed&&S.end()}he.from=function(S,x){return He(he,S,x)};let So;function ql(){return So===void 0&&(So={}),So}return he.fromWeb=function(S,x){return ql().newStreamReadableFromReadableStream(S,x)},he.toWeb=function(S,x){return ql().newReadableStreamFromStreamReadable(S,x)},he.wrap=function(S,x){var Y,J;return new he({objectMode:(Y=(J=S.readableObjectMode)!==null&&J!==void 0?J:S.objectMode)!==null&&Y!==void 0?Y:!0,...x,destroy(ue,Yt){te.destroyer(S,ue),Yt(ue)}}).wrap(S)},yDe}var vDe,Dqt;function aVe(){if(Dqt)return vDe;Dqt=1;const n=ui,{ArrayPrototypeSlice:r,Error:o,FunctionPrototypeSymbolHasInstance:l,ObjectDefineProperty:u,ObjectDefineProperties:d,ObjectSetPrototypeOf:h,StringPrototypeToLowerCase:w,Symbol:v,SymbolHasInstance:y}=Gf;vDe=ye,ye.WritableState=F;const{EventEmitter:E}=Ns,A=lVe.Stream,{Buffer:C}=Kr,R=Pj,{addAbortSignal:O}=Yge,{getHighWaterMark:M,getDefaultHighWaterMark:L}=Qge,{ERR_INVALID_ARG_TYPE:H,ERR_METHOD_NOT_IMPLEMENTED:G,ERR_MULTIPLE_CALLBACK:j,ERR_STREAM_CANNOT_PIPE:Q,ERR_STREAM_DESTROYED:te,ERR_STREAM_ALREADY_FINISHED:pe,ERR_STREAM_NULL_VALUES:De,ERR_STREAM_WRITE_AFTER_END:Re,ERR_UNKNOWN_ENCODING:le}=D0.codes,{errorOrDestroy:xe}=R;h(ye.prototype,A.prototype),h(ye,A);function be(){}const ae=v("kOnFinished");function F(T,$,B){typeof B!="boolean"&&(B=$ instanceof gx()),this.objectMode=!!(T&&T.objectMode),B&&(this.objectMode=this.objectMode||!!(T&&T.writableObjectMode)),this.highWaterMark=T?M(this,T,"writableHighWaterMark",B):L(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const K=!!(T&&T.decodeStrings===!1);this.decodeStrings=!K,this.defaultEncoding=T&&T.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=Ge.bind(void 0,$),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,me(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[ae]=[]}function me(T){T.buffered=[],T.bufferedIndex=0,T.allBuffers=!0,T.allNoop=!0}F.prototype.getBuffer=function(){return r(this.buffered,this.bufferedIndex)},u(F.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function ye(T){const $=this instanceof gx();if(!$&&!l(ye,this))return new ye(T);this._writableState=new F(T,this,$),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&&O(T.signal,this)),A.call(this,T),R.construct(this,()=>{const B=this._writableState;B.writing||Te(this,B),yt(this,B)})}u(ye,y,{__proto__:null,value:function(T){return l(this,T)?!0:this!==ye?!1:T&&T._writableState instanceof F}}),ye.prototype.pipe=function(){xe(this,new Q)};function we(T,$,B,K){const q=T._writableState;if(typeof B=="function")K=B,B=q.defaultEncoding;else{if(!B)B=q.defaultEncoding;else if(B!=="buffer"&&!C.isEncoding(B))throw new le(B);typeof K!="function"&&(K=be)}if($===null)throw new De;if(!q.objectMode)if(typeof $=="string")q.decodeStrings!==!1&&($=C.from($,B),B="buffer");else if($ instanceof C)B="buffer";else if(A._isUint8Array($))$=A._uint8ArrayToBuffer($),B="buffer";else throw new H("chunk",["string","Buffer","Uint8Array"],$);let ke;return q.ending?ke=new Re:q.destroyed&&(ke=new te("write")),ke?(n.nextTick(K,ke),xe(T,ke,!0),ke):(q.pendingcb++,Be(T,q,$,B,K))}ye.prototype.write=function(T,$,B){return we(this,T,$,B)===!0},ye.prototype.cork=function(){this._writableState.corked++},ye.prototype.uncork=function(){const T=this._writableState;T.corked&&(T.corked--,T.writing||Te(this,T))},ye.prototype.setDefaultEncoding=function($){if(typeof $=="string"&&($=w($)),!C.isEncoding($))throw new le($);return this._writableState.defaultEncoding=$,this};function Be(T,$,B,K,q){const ke=$.objectMode?1:B.length;$.length+=ke;const Ee=$.length<$.highWaterMark;return Ee||($.needDrain=!0),$.writing||$.corked||$.errored||!$.constructed?($.buffered.push({chunk:B,encoding:K,callback:q}),$.allBuffers&&K!=="buffer"&&($.allBuffers=!1),$.allNoop&&q!==be&&($.allNoop=!1)):($.writelen=ke,$.writecb=q,$.writing=!0,$.sync=!0,T._write(B,K,$.onwrite),$.sync=!1),Ee&&!$.errored&&!$.destroyed}function He(T,$,B,K,q,ke,Ee){$.writelen=K,$.writecb=Ee,$.writing=!0,$.sync=!0,$.destroyed?$.onwrite(new te("write")):B?T._writev(q,$.onwrite):T._write(q,ke,$.onwrite),$.sync=!1}function Ue(T,$,B,K){--$.pendingcb,K(B),re($),xe(T,B)}function Ge(T,$){const B=T._writableState,K=B.sync,q=B.writecb;if(typeof q!="function"){xe(T,new j);return}B.writing=!1,B.writecb=null,B.length-=B.writelen,B.writelen=0,$?($.stack,B.errored||(B.errored=$),T._readableState&&!T._readableState.errored&&(T._readableState.errored=$),K?n.nextTick(Ue,T,B,$,q):Ue(T,B,$,q)):(B.buffered.length>B.bufferedIndex&&Te(T,B),K?B.afterWriteTickInfo!==null&&B.afterWriteTickInfo.cb===q?B.afterWriteTickInfo.count++:(B.afterWriteTickInfo={count:1,cb:q,stream:T,state:B},n.nextTick(Le,B.afterWriteTickInfo)):ft(T,B,1,q))}function Le({stream:T,state:$,count:B,cb:K}){return $.afterWriteTickInfo=null,ft(T,$,B,K)}function ft(T,$,B,K){for(!$.ending&&!T.destroyed&&$.length===0&&$.needDrain&&($.needDrain=!1,T.emit("drain"));B-- >0;)$.pendingcb--,K();$.destroyed&&re($),yt(T,$)}function re(T){if(T.writing)return;for(let q=T.bufferedIndex;q1&&T._writev){$.pendingcb-=ke-1;const Ie=$.allNoop?be:he=>{for(let Xt=Ee;Xt256?(B.splice(0,Ee),$.bufferedIndex=0):$.bufferedIndex=Ee}$.bufferProcessing=!1}ye.prototype._write=function(T,$,B){if(this._writev)this._writev([{chunk:T,encoding:$}],B);else throw new G("_write()")},ye.prototype._writev=null,ye.prototype.end=function(T,$,B){const K=this._writableState;typeof T=="function"?(B=T,T=null,$=null):typeof $=="function"&&(B=$,$=null);let q;if(T!=null){const ke=we(this,T,$);ke instanceof o&&(q=ke)}return K.corked&&(K.corked=1,this.uncork()),q||(!K.errored&&!K.ending?(K.ending=!0,yt(this,K,!0),K.ended=!0):K.finished?q=new pe("end"):K.destroyed&&(q=new te("end"))),typeof B=="function"&&(q||K.finished?n.nextTick(B,q):K[ae].push(B)),this};function dt(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 at(T,$){let B=!1;function K(q){if(B){xe(T,q??j());return}if(B=!0,$.pendingcb--,q){const ke=$[ae].splice(0);for(let Ee=0;Ee{dt(q)?Lt(K,q):q.pendingcb--},T,$)):dt($)&&($.pendingcb++,Lt(T,$))))}function Lt(T,$){$.pendingcb--,$.finished=!0;const B=$[ae].splice(0);for(let K=0;K{if(re!=null)throw new O("nully","body",re)},re=>{M(Le,re)});return Le=new le({objectMode:!0,readable:!1,write:Be,final(re){He(async()=>{try{await ft,n.nextTick(re,null)}catch(Te){n.nextTick(re,Te)}})},destroy:Ue})}throw new O("Iterable, AsyncIterable or AsyncFunction",me,we)}if(pe(F))return ae(F.arrayBuffer());if(u(F))return Q(le,F,{objectMode:!0,writable:!1});if(y(F==null?void 0:F.readable)&&E(F==null?void 0:F.writable))return le.fromWeb(F);if(typeof(F==null?void 0:F.writable)=="object"||typeof(F==null?void 0:F.readable)=="object"){const we=F!=null&&F.readable?h(F==null?void 0:F.readable)?F==null?void 0:F.readable:ae(F.readable):void 0,Be=F!=null&&F.writable?w(F==null?void 0:F.writable)?F==null?void 0:F.writable:ae(F.writable):void 0;return be({readable:we,writable:Be})}const ye=F==null?void 0:F.then;if(typeof ye=="function"){let we;return Re(ye,F,Be=>{Be!=null&&we.push(Be),we.push(null)},Be=>{M(we,Be)}),we=new le({objectMode:!0,writable:!1,read(){}})}throw new R(me,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],F)};function xe(ae){let{promise:F,resolve:me}=j();const ye=new De,we=ye.signal;return{value:ae(async function*(){for(;;){const He=F;F=null;const{chunk:Ue,done:Ge,cb:Le}=await He;if(n.nextTick(Le),Ge)return;if(we.aborted)throw new C(void 0,{cause:we.reason});({promise:F,resolve:me}=j()),yield Ue}}(),{signal:we}),write(He,Ue,Ge){const Le=me;me=null,Le({chunk:He,done:!1,cb:Ge})},final(He){const Ue=me;me=null,Ue({done:!0,cb:He})},destroy(He,Ue){ye.abort(),Ue(He)}}}function be(ae){const F=ae.readable&&typeof ae.readable.read!="function"?H.wrap(ae.readable):ae.readable,me=ae.writable;let ye=!!o(F),we=!!l(me),Be,He,Ue,Ge,Le;function ft(re){const Te=Ge;Ge=null,Te?Te(re):re&&Le.destroy(re)}return Le=new le({readableObjectMode:!!(F!=null&&F.readableObjectMode),writableObjectMode:!!(me!=null&&me.writableObjectMode),readable:ye,writable:we}),we&&(A(me,re=>{we=!1,re&&M(F,re),ft(re)}),Le._write=function(re,Te,dt){me.write(re,Te)?dt():Be=dt},Le._final=function(re){me.end(),He=re},me.on("drain",function(){if(Be){const re=Be;Be=null,re()}}),me.on("finish",function(){if(He){const re=He;He=null,re()}})),ye&&(A(F,re=>{ye=!1,re&&M(F,re),ft(re)}),F.on("readable",function(){if(Ue){const re=Ue;Ue=null,re()}}),F.on("end",function(){Le.push(null)}),Le._read=function(){for(;;){const re=F.read();if(re===null){Ue=Le._read;return}if(!Le.push(re))return}}),Le._destroy=function(re,Te){!re&&Ge!==null&&(re=new C),Ue=null,Be=null,He=null,Ge===null?Te(re):(Ge=Te,M(me,re),M(F,re))},Le}return _De}var SDe,jqt;function gx(){if(jqt)return SDe;jqt=1;const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:o,ObjectSetPrototypeOf:l}=Gf;SDe=h;const u=Zge(),d=aVe();l(h.prototype,u.prototype),l(h,u);{const E=o(d.prototype);for(let A=0;A{if(r){n?n(r):this.destroy(r);return}o!=null&&this.push(o),this.push(null),n&&n()}):(this.push(null),n&&n())}function pIr(){this._final!==NBe&&NBe.call(this)}wx.prototype._final=NBe;wx.prototype._transform=function(n,r,o){throw new dIr("_transform()")};wx.prototype._write=function(n,r,o){const l=this._readableState,u=this._writableState,d=l.length;this._transform(n,r,(h,w)=>{if(h){o(h);return}w!=null&&this.push(w),u.ended||d===l.length||l.length{l=!0});const u=$he(n,{readable:r,writable:o},d=>{l=!d});return{destroy:d=>{l||(l=!0,vIr.destroyer(n,d||new EIr("pipe")))},cleanup:u}}function IIr(n){return xIr(n[n.length-1],"streams[stream.length - 1]"),n.pop()}function TDe(n){if(O8(n))return n;if(pde(n))return PIr(n);throw new MBe("val",["Readable","Iterable","AsyncIterable"],n)}async function*PIr(n){CDe||(CDe=Zge()),yield*CDe.prototype[wIr].call(n)}async function nfe(n,r,o,{end:l}){let u,d=null;const h=y=>{if(y&&(u=y),d){const E=d;d=null,E()}},w=()=>new gIr((y,E)=>{u?E(u):d=()=>{u?E(u):y()}});r.on("drain",h);const v=$he(r,{readable:!1},h);try{r.writableNeedDrain&&await w();for await(const y of n)r.write(y)||await w();l&&(r.end(),await w()),o()}catch(y){o(u!==y?_Ir(u,y):y)}finally{v(),r.off("drain",h)}}async function $De(n,r,o,{end:l}){ID(r)&&(r=r.writable);const u=r.getWriter();try{for await(const d of n)await u.ready,u.write(d).catch(()=>{});await u.ready,l&&await u.close(),o()}catch(d){try{await u.abort(d),o(d)}catch(h){o(h)}}}function OIr(...n){return Uun(n,yIr(IIr(n)))}function Uun(n,r,o){if(n.length===1&&bIr(n[0])&&(n=n[0]),n.length<2)throw new SIr("streams");const l=new $Ir,u=l.signal,d=o==null?void 0:o.signal,h=[];CIr(d,"options.signal");function w(){O(new RIr)}ADe=ADe||g1.addAbortListener;let v;d&&(v=ADe(d,w));let y,E;const A=[];let C=0;function R(G){O(G,--C===0)}function O(G,j){var Q;if(G&&(!y||y.code==="ERR_STREAM_PREMATURE_CLOSE")&&(y=G),!(!y&&!j)){for(;A.length;)A.shift()(y);(Q=v)===null||Q===void 0||Q[mIr](),l.abort(),j&&(y||h.forEach(te=>te()),BK.nextTick(r,y,E))}}let M;for(let G=0;G0,pe=Q||(o==null?void 0:o.end)!==!1,De=G===n.length-1;if(Bqt(j)){let Re=function(le){le&&le.name!=="AbortError"&&le.code!=="ERR_STREAM_PREMATURE_CLOSE"&&R(le)};if(pe){const{destroy:le,cleanup:xe}=Wqt(j,Q,te);A.push(le),kDe(j)&&De&&h.push(xe)}j.on("error",Re),kDe(j)&&De&&h.push(()=>{j.removeListener("error",Re)})}if(G===0)if(typeof j=="function"){if(M=j({signal:u}),!O8(M))throw new EDe("Iterable, AsyncIterable or Stream","source",M)}else O8(j)||pde(j)||ID(j)?M=j:M=Fqt.from(j);else if(typeof j=="function"){if(ID(M)){var L;M=TDe((L=M)===null||L===void 0?void 0:L.readable)}else M=TDe(M);if(M=j(M,{signal:u}),Q){if(!O8(M,!0))throw new EDe("AsyncIterable",`transform[${G-1}]`,M)}else{var H;xDe||(xDe=Hun);const Re=new xDe({objectMode:!0}),le=(H=M)===null||H===void 0?void 0:H.then;if(typeof le=="function")C++,le.call(M,ae=>{E=ae,ae!=null&&Re.write(ae),pe&&Re.end(),BK.nextTick(R)},ae=>{Re.destroy(ae),BK.nextTick(R,ae)});else if(O8(M,!0))C++,nfe(M,Re,R,{end:pe});else if(RDe(M)||ID(M)){const ae=M.readable||M;C++,nfe(ae,Re,R,{end:pe})}else throw new EDe("AsyncIterable or Promise","destination",M);M=Re;const{destroy:xe,cleanup:be}=Wqt(M,!1,!0);A.push(xe),De&&h.push(be)}}else if(Bqt(j)){if(pde(M)){C+=2;const Re=NIr(M,j,R,{end:pe});kDe(j)&&De&&h.push(Re)}else if(ID(M)||RDe(M)){const Re=M.readable||M;C++,nfe(Re,j,R,{end:pe})}else if(O8(M))C++,nfe(M,j,R,{end:pe});else throw new MBe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else if(AIr(j)){if(pde(M))C++,$De(TDe(M),j,R,{end:pe});else if(RDe(M)||O8(M))C++,$De(M,j,R,{end:pe});else if(ID(M))C++,$De(M.readable,j,R,{end:pe});else throw new MBe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else M=Fqt.from(j)}return(u!=null&&u.aborted||d!=null&&d.aborted)&&BK.nextTick(w),M}function NIr(n,r,o,{end:l}){let u=!1;if(r.on("close",()=>{u||o(new kIr)}),n.pipe(r,{end:!1}),l){let d=function(){u=!0,r.end()};TIr(n)?BK.nextTick(d):n.once("end",d)}else o();return $he(n,{readable:!0,writable:!1},d=>{const h=n._readableState;d&&d.code==="ERR_STREAM_PREMATURE_CLOSE"&&h&&h.ended&&!h.errored&&!h.errorEmitted?n.once("end",o).once("error",o):o(d)}),$he(r,{readable:!1,writable:!0},o)}var fVe={pipelineImpl:Uun,pipeline:OIr};const{pipeline:MIr}=fVe,rfe=gx(),{destroyer:DIr}=Pj,{isNodeStream:ife,isReadable:Hqt,isWritable:Uqt,isWebStream:IDe,isTransformStream:b8,isWritableStream:Gqt,isReadableStream:Vqt}=Nx,{AbortError:LIr,codes:{ERR_INVALID_ARG_VALUE:zqt,ERR_MISSING_ARGS:jIr}}=D0,FIr=KT;var Gun=function(...r){if(r.length===0)throw new jIr("streams");if(r.length===1)return rfe.from(r[0]);const o=[...r];if(typeof r[0]=="function"&&(r[0]=rfe.from(r[0])),typeof r[r.length-1]=="function"){const R=r.length-1;r[R]=rfe.from(r[R])}for(let R=0;R0&&!(Uqt(r[R])||Gqt(r[R])||b8(r[R])))throw new zqt(`streams[${R}]`,o[R],"must be writable")}let l,u,d,h,w;function v(R){const O=h;h=null,O?O(R):R?w.destroy(R):!C&&!A&&w.destroy()}const y=r[0],E=MIr(r,v),A=!!(Uqt(y)||Gqt(y)||b8(y)),C=!!(Hqt(E)||Vqt(E)||b8(E));if(w=new rfe({writableObjectMode:!!(y!=null&&y.writableObjectMode),readableObjectMode:!!(E!=null&&E.readableObjectMode),writable:A,readable:C}),A){if(ife(y))w._write=function(O,M,L){y.write(O,M)?L():l=L},w._final=function(O){y.end(),u=O},y.on("drain",function(){if(l){const O=l;l=null,O()}});else if(IDe(y)){const M=(b8(y)?y.writable:y).getWriter();w._write=async function(L,H,G){try{await M.ready,M.write(L).catch(()=>{}),G()}catch(j){G(j)}},w._final=async function(L){try{await M.ready,M.close().catch(()=>{}),u=L}catch(H){L(H)}}}const R=b8(E)?E.readable:E;FIr(R,()=>{if(u){const O=u;u=null,O()}})}if(C){if(ife(E))E.on("readable",function(){if(d){const R=d;d=null,R()}}),E.on("end",function(){w.push(null)}),w._read=function(){for(;;){const R=E.read();if(R===null){d=w._read;return}if(!w.push(R))return}};else if(IDe(E)){const O=(b8(E)?E.readable:E).getReader();w._read=async function(){for(;;)try{const{value:M,done:L}=await O.read();if(!w.push(M))return;if(L){w.push(null);return}}catch{return}}}}return w._destroy=function(R,O){!R&&h!==null&&(R=new LIr),d=null,l=null,u=null,h===null?O(R):(h=O,ife(E)&&DIr(E,R))},w};const BIr=globalThis.AbortController||$o().AbortController,{codes:{ERR_INVALID_ARG_VALUE:WIr,ERR_INVALID_ARG_TYPE:WJ,ERR_MISSING_ARGS:HIr,ERR_OUT_OF_RANGE:UIr},AbortError:hk}=D0,{validateAbortSignal:SO,validateInteger:Kqt,validateObject:EO}=BJ,GIr=Gf.Symbol("kWeak"),VIr=Gf.Symbol("kResistStopPropagation"),{finished:zIr}=KT,KIr=Gun,{addAbortSignalNoValidate:qIr}=Yge,{isWritable:XIr,isNodeStream:JIr}=Nx,{deprecate:YIr}=g1,{ArrayPrototypePush:QIr,Boolean:ZIr,MathFloor:qqt,Number:e5r,NumberIsNaN:t5r,Promise:Xqt,PromiseReject:Jqt,PromiseResolve:n5r,PromisePrototypeThen:Yqt,Symbol:Vun}=Gf,Ihe=Vun("kEmpty"),Qqt=Vun("kEof");function r5r(n,r){if(r!=null&&EO(r,"options"),(r==null?void 0:r.signal)!=null&&SO(r.signal,"options.signal"),JIr(n)&&!XIr(n))throw new WIr("stream",n,"must be writable");const o=KIr(this,n);return r!=null&&r.signal&&qIr(r.signal,o),o}function e1e(n,r){if(typeof n!="function")throw new WJ("fn",["Function","AsyncFunction"],n);r!=null&&EO(r,"options"),(r==null?void 0:r.signal)!=null&&SO(r.signal,"options.signal");let o=1;(r==null?void 0:r.concurrency)!=null&&(o=qqt(r.concurrency));let l=o-1;return(r==null?void 0:r.highWaterMark)!=null&&(l=qqt(r.highWaterMark)),Kqt(o,"options.concurrency",1),Kqt(l,"options.highWaterMark",0),l+=o,(async function*(){const d=g1.AbortSignalAny([r==null?void 0:r.signal].filter(ZIr)),h=this,w=[],v={signal:d};let y,E,A=!1,C=0;function R(){A=!0,O()}function O(){C-=1,M()}function M(){E&&!A&&C=l||C>=o)&&await new Xqt(G=>{E=G})}w.push(Qqt)}catch(H){const G=Jqt(H);Yqt(G,O,R),w.push(G)}finally{A=!0,y&&(y(),y=null)}}L();try{for(;;){for(;w.length>0;){const H=await w[0];if(H===Qqt)return;if(d.aborted)throw new hk;H!==Ihe&&(yield H),w.shift(),M()}await new Xqt(H=>{y=H})}}finally{A=!0,E&&(E(),E=null)}}).call(this)}function i5r(n=void 0){return n!=null&&EO(n,"options"),(n==null?void 0:n.signal)!=null&&SO(n.signal,"options.signal"),(async function*(){let o=0;for await(const u of this){var l;if(n!=null&&(l=n.signal)!==null&&l!==void 0&&l.aborted)throw new hk({cause:n.signal.reason});yield[o++,u]}}).call(this)}async function zun(n,r=void 0){for await(const o of dVe.call(this,n,r))return!0;return!1}async function o5r(n,r=void 0){if(typeof n!="function")throw new WJ("fn",["Function","AsyncFunction"],n);return!await zun.call(this,async(...o)=>!await n(...o),r)}async function s5r(n,r){for await(const o of dVe.call(this,n,r))return o}async function l5r(n,r){if(typeof n!="function")throw new WJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u),Ihe}for await(const l of e1e.call(this,o,r));}function dVe(n,r){if(typeof n!="function")throw new WJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u)?l:Ihe}return e1e.call(this,o,r)}let a5r=class extends HIr{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function c5r(n,r,o){var l;if(typeof n!="function")throw new WJ("reducer",["Function","AsyncFunction"],n);o!=null&&EO(o,"options"),(o==null?void 0:o.signal)!=null&&SO(o.signal,"options.signal");let u=arguments.length>1;if(o!=null&&(l=o.signal)!==null&&l!==void 0&&l.aborted){const y=new hk(void 0,{cause:o.signal.reason});throw this.once("error",()=>{}),await zIr(this.destroy(y)),y}const d=new BIr,h=d.signal;if(o!=null&&o.signal){const y={once:!0,[GIr]:this,[VIr]:!0};o.signal.addEventListener("abort",()=>d.abort(),y)}let w=!1;try{for await(const y of this){var v;if(w=!0,o!=null&&(v=o.signal)!==null&&v!==void 0&&v.aborted)throw new hk;u?r=await n(r,y,{signal:h}):(r=y,u=!0)}if(!w&&!u)throw new a5r}finally{d.abort()}return r}async function u5r(n){n!=null&&EO(n,"options"),(n==null?void 0:n.signal)!=null&&SO(n.signal,"options.signal");const r=[];for await(const l of this){var o;if(n!=null&&(o=n.signal)!==null&&o!==void 0&&o.aborted)throw new hk(void 0,{cause:n.signal.reason});QIr(r,l)}return r}function f5r(n,r){const o=e1e.call(this,n,r);return(async function*(){for await(const u of o)yield*u}).call(this)}function Kun(n){if(n=e5r(n),t5r(n))return 0;if(n<0)throw new UIr("number",">= 0",n);return n}function d5r(n,r=void 0){return r!=null&&EO(r,"options"),(r==null?void 0:r.signal)!=null&&SO(r.signal,"options.signal"),n=Kun(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new hk;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new hk;n--<=0&&(yield d)}}).call(this)}function h5r(n,r=void 0){return r!=null&&EO(r,"options"),(r==null?void 0:r.signal)!=null&&SO(r.signal,"options.signal"),n=Kun(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new hk;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new hk;if(n-- >0&&(yield d),n<=0)return}}).call(this)}nVe.streamReturningOperators={asIndexedPairs:YIr(i5r,"readable.asIndexedPairs will be removed in a future version."),drop:d5r,filter:dVe,flatMap:f5r,map:e1e,take:h5r,compose:r5r};nVe.promiseReturningOperators={every:o5r,forEach:l5r,reduce:c5r,toArray:u5r,some:zun,find:s5r};var PDe,Zqt;function qun(){if(Zqt)return PDe;Zqt=1;const{ArrayPrototypePop:n,Promise:r}=Gf,{isIterable:o,isNodeStream:l,isWebStream:u}=Nx,{pipelineImpl:d}=fVe,{finished:h}=KT;Xun();function w(...v){return new r((y,E)=>{let A,C;const R=v[v.length-1];if(R&&typeof R=="object"&&!l(R)&&!o(R)&&!u(R)){const O=n(v);A=O.signal,C=O.end}d(v,(O,M)=>{O?E(O):y(M)},{signal:A,end:C})})}return PDe={finished:h,pipeline:w},PDe}var eXt;function Xun(){if(eXt)return bDe.exports;eXt=1;const{Buffer:n}=Kr,{ObjectDefineProperty:r,ObjectKeys:o,ReflectApply:l}=Gf,{promisify:{custom:u}}=g1,{streamReturningOperators:d,promiseReturningOperators:h}=nVe,{codes:{ERR_ILLEGAL_CONSTRUCTOR:w}}=D0,v=Gun,{setDefaultHighWaterMark:y,getDefaultHighWaterMark:E}=Qge,{pipeline:A}=fVe,{destroyer:C}=Pj,R=KT,O=qun(),M=Nx,L=bDe.exports=lVe.Stream;L.isDestroyed=M.isDestroyed,L.isDisturbed=M.isDisturbed,L.isErrored=M.isErrored,L.isReadable=M.isReadable,L.isWritable=M.isWritable,L.Readable=Zge();for(const G of o(d)){let Q=function(...te){if(new.target)throw w();return L.Readable.from(l(j,this,te))};const j=d[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}for(const G of o(h)){let Q=function(...te){if(new.target)throw w();return l(j,this,te)};const j=h[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}L.Writable=aVe(),L.Duplex=gx(),L.Transform=Bun,L.PassThrough=Hun,L.pipeline=A;const{addAbortSignal:H}=Yge;return L.addAbortSignal=H,L.finished=R,L.destroy=C,L.compose=v,L.setDefaultHighWaterMark=y,L.getDefaultHighWaterMark=E,r(L,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return O}}),r(A,u,{__proto__:null,enumerable:!0,get(){return O.pipeline}}),r(R,u,{__proto__:null,enumerable:!0,get(){return O.finished}}),L.Stream=L,L._isUint8Array=function(j){return j instanceof Uint8Array},L._uint8ArrayToBuffer=function(j){return n.from(j.buffer,j.byteOffset,j.byteLength)},bDe.exports}(function(n){const r=Xun(),o=qun(),l=r.Readable.destroy;n.exports=r.Readable,n.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer,n.exports._isUint8Array=r._isUint8Array,n.exports.isDisturbed=r.isDisturbed,n.exports.isErrored=r.isErrored,n.exports.isReadable=r.isReadable,n.exports.Readable=r.Readable,n.exports.Writable=r.Writable,n.exports.Duplex=r.Duplex,n.exports.Transform=r.Transform,n.exports.PassThrough=r.PassThrough,n.exports.addAbortSignal=r.addAbortSignal,n.exports.finished=r.finished,n.exports.destroy=r.destroy,n.exports.destroy=l,n.exports.pipeline=r.pipeline,n.exports.compose=r.compose,Object.defineProperty(r,"promises",{configurable:!0,enumerable:!0,get(){return o}}),n.exports.Stream=r.Stream,n.exports.default=n.exports})(oun);var RUr=oun.exports,Jun={},KL={},qL={},Yun={};(function(n){/** * Character classes and associated utilities for the 5th edition of XML 1.0. * * @author Louis-Dominique Dubeau @@ -2103,31 +2103,31 @@ if("@preserve"in n)return n["@preserve"][0];if(Ky.isValue(n))return n;if(Ky.isLi * @copyright Louis-Dominique Dubeau */Object.defineProperty(n,"__esModule",{value:!0}),n.CHAR=` \r -퟿-�𐀀-􏿿`,n.S=` \r -`,n.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",n.NAME_CHAR="-"+n.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",n.CHAR_RE=new RegExp("^["+n.CHAR+"]$","u"),n.S_RE=new RegExp("^["+n.S+"]+$","u"),n.NAME_START_CHAR_RE=new RegExp("^["+n.NAME_START_CHAR+"]$","u"),n.NAME_CHAR_RE=new RegExp("^["+n.NAME_CHAR+"]$","u"),n.NAME_RE=new RegExp("^["+n.NAME_START_CHAR+"]["+n.NAME_CHAR+"]*$","u"),n.NMTOKEN_RE=new RegExp("^["+n.NAME_CHAR+"]+$","u");var r=9,o=10,l=13,u=32;n.S_LIST=[u,o,l,r];function d(y){return y>=u&&y<=55295||y===o||y===l||y===r||y>=57344&&y<=65533||y>=65536&&y<=1114111}n.isChar=d;function h(y){return y===u||y===o||y===l||y===r}n.isS=h;function w(y){return y>=65&&y<=90||y>=97&&y<=122||y===58||y===95||y===8204||y===8205||y>=192&&y<=214||y>=216&&y<=246||y>=248&&y<=767||y>=880&&y<=893||y>=895&&y<=8191||y>=8304&&y<=8591||y>=11264&&y<=12271||y>=12289&&y<=55295||y>=63744&&y<=64975||y>=65008&&y<=65533||y>=65536&&y<=983039}n.isNameStartChar=w;function v(y){return w(y)||y>=48&&y<=57||y===45||y===46||y===183||y>=768&&y<=879||y>=8255&&y<=8256}n.isNameChar=v})(Hun);var Uun={};(function(n){/** +`,n.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",n.NAME_CHAR="-"+n.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",n.CHAR_RE=new RegExp("^["+n.CHAR+"]$","u"),n.S_RE=new RegExp("^["+n.S+"]+$","u"),n.NAME_START_CHAR_RE=new RegExp("^["+n.NAME_START_CHAR+"]$","u"),n.NAME_CHAR_RE=new RegExp("^["+n.NAME_CHAR+"]$","u"),n.NAME_RE=new RegExp("^["+n.NAME_START_CHAR+"]["+n.NAME_CHAR+"]*$","u"),n.NMTOKEN_RE=new RegExp("^["+n.NAME_CHAR+"]+$","u");var r=9,o=10,l=13,u=32;n.S_LIST=[u,o,l,r];function d(y){return y>=u&&y<=55295||y===o||y===l||y===r||y>=57344&&y<=65533||y>=65536&&y<=1114111}n.isChar=d;function h(y){return y===u||y===o||y===l||y===r}n.isS=h;function w(y){return y>=65&&y<=90||y>=97&&y<=122||y===58||y===95||y===8204||y===8205||y>=192&&y<=214||y>=216&&y<=246||y>=248&&y<=767||y>=880&&y<=893||y>=895&&y<=8191||y>=8304&&y<=8591||y>=11264&&y<=12271||y>=12289&&y<=55295||y>=63744&&y<=64975||y>=65008&&y<=65533||y>=65536&&y<=983039}n.isNameStartChar=w;function v(y){return w(y)||y>=48&&y<=57||y===45||y===46||y===183||y>=768&&y<=879||y>=8255&&y<=8256}n.isNameChar=v})(Yun);var Qun={};(function(n){/** * Character classes and associated utilities for the 2nd edition of XML 1.1. * * @author Louis-Dominique Dubeau * @license MIT * @copyright Louis-Dominique Dubeau */Object.defineProperty(n,"__esModule",{value:!0}),n.CHAR="-퟿-�𐀀-􏿿",n.RESTRICTED_CHAR="-\b\v\f--„†-Ÿ",n.S=` \r -`,n.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",n.NAME_CHAR="-"+n.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",n.CHAR_RE=new RegExp("^["+n.CHAR+"]$","u"),n.RESTRICTED_CHAR_RE=new RegExp("^["+n.RESTRICTED_CHAR+"]$","u"),n.S_RE=new RegExp("^["+n.S+"]+$","u"),n.NAME_START_CHAR_RE=new RegExp("^["+n.NAME_START_CHAR+"]$","u"),n.NAME_CHAR_RE=new RegExp("^["+n.NAME_CHAR+"]$","u"),n.NAME_RE=new RegExp("^["+n.NAME_START_CHAR+"]["+n.NAME_CHAR+"]*$","u"),n.NMTOKEN_RE=new RegExp("^["+n.NAME_CHAR+"]+$","u");var r=9,o=10,l=13,u=32;n.S_LIST=[u,o,l,r];function d(A){return A>=1&&A<=55295||A>=57344&&A<=65533||A>=65536&&A<=1114111}n.isChar=d;function h(A){return A>=1&&A<=8||A===11||A===12||A>=14&&A<=31||A>=127&&A<=132||A>=134&&A<=159}n.isRestrictedChar=h;function w(A){return A===9||A===10||A===13||A>31&&A<127||A===133||A>159&&A<=55295||A>=57344&&A<=65533||A>=65536&&A<=1114111}n.isCharAndNotRestricted=w;function v(A){return A===u||A===o||A===l||A===r}n.isS=v;function y(A){return A>=65&&A<=90||A>=97&&A<=122||A===58||A===95||A===8204||A===8205||A>=192&&A<=214||A>=216&&A<=246||A>=248&&A<=767||A>=880&&A<=893||A>=895&&A<=8191||A>=8304&&A<=8591||A>=11264&&A<=12271||A>=12289&&A<=55295||A>=63744&&A<=64975||A>=65008&&A<=65533||A>=65536&&A<=983039}n.isNameStartChar=y;function E(A){return y(A)||A>=48&&A<=57||A===45||A===46||A===183||A>=768&&A<=879||A>=8255&&A<=8256}n.isNameChar=E})(Uun);var Gun={};(function(n){/** +`,n.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",n.NAME_CHAR="-"+n.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",n.CHAR_RE=new RegExp("^["+n.CHAR+"]$","u"),n.RESTRICTED_CHAR_RE=new RegExp("^["+n.RESTRICTED_CHAR+"]$","u"),n.S_RE=new RegExp("^["+n.S+"]+$","u"),n.NAME_START_CHAR_RE=new RegExp("^["+n.NAME_START_CHAR+"]$","u"),n.NAME_CHAR_RE=new RegExp("^["+n.NAME_CHAR+"]$","u"),n.NAME_RE=new RegExp("^["+n.NAME_START_CHAR+"]["+n.NAME_CHAR+"]*$","u"),n.NMTOKEN_RE=new RegExp("^["+n.NAME_CHAR+"]+$","u");var r=9,o=10,l=13,u=32;n.S_LIST=[u,o,l,r];function d(A){return A>=1&&A<=55295||A>=57344&&A<=65533||A>=65536&&A<=1114111}n.isChar=d;function h(A){return A>=1&&A<=8||A===11||A===12||A>=14&&A<=31||A>=127&&A<=132||A>=134&&A<=159}n.isRestrictedChar=h;function w(A){return A===9||A===10||A===13||A>31&&A<127||A===133||A>159&&A<=55295||A>=57344&&A<=65533||A>=65536&&A<=1114111}n.isCharAndNotRestricted=w;function v(A){return A===u||A===o||A===l||A===r}n.isS=v;function y(A){return A>=65&&A<=90||A>=97&&A<=122||A===58||A===95||A===8204||A===8205||A>=192&&A<=214||A>=216&&A<=246||A>=248&&A<=767||A>=880&&A<=893||A>=895&&A<=8191||A>=8304&&A<=8591||A>=11264&&A<=12271||A>=12289&&A<=55295||A>=63744&&A<=64975||A>=65008&&A<=65533||A>=65536&&A<=983039}n.isNameStartChar=y;function E(A){return y(A)||A>=48&&A<=57||A===45||A===46||A===183||A>=768&&A<=879||A>=8255&&A<=8256}n.isNameChar=E})(Qun);var Zun={};(function(n){/** * Character class utilities for XML NS 1.0 edition 3. * * @author Louis-Dominique Dubeau * @license MIT * @copyright Louis-Dominique Dubeau - */Object.defineProperty(n,"__esModule",{value:!0}),n.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",n.NC_NAME_CHAR="-"+n.NC_NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",n.NC_NAME_START_CHAR_RE=new RegExp("^["+n.NC_NAME_START_CHAR+"]$","u"),n.NC_NAME_CHAR_RE=new RegExp("^["+n.NC_NAME_CHAR+"]$","u"),n.NC_NAME_RE=new RegExp("^["+n.NC_NAME_START_CHAR+"]["+n.NC_NAME_CHAR+"]*$","u");function r(l){return l>=65&&l<=90||l===95||l>=97&&l<=122||l>=192&&l<=214||l>=216&&l<=246||l>=248&&l<=767||l>=880&&l<=893||l>=895&&l<=8191||l>=8204&&l<=8205||l>=8304&&l<=8591||l>=11264&&l<=12271||l>=12289&&l<=55295||l>=63744&&l<=64975||l>=65008&&l<=65533||l>=65536&&l<=983039}n.isNCNameStartChar=r;function o(l){return r(l)||l===45||l===46||l>=48&&l<=57||l===183||l>=768&&l<=879||l>=8255&&l<=8256}n.isNCNameChar=o})(Gun);Object.defineProperty(XL,"__esModule",{value:!0});XL.SaxesParser=XL.EVENTS=void 0;const Nj=Hun,JIr=Uun,lVe=Gun;var v0=Nj.isS,YIr=Nj.isChar,gK=Nj.isNameStartChar,qqt=Nj.isNameChar,Vun=Nj.S_LIST,QIr=Nj.NAME_RE,ZIr=JIr.isChar,e5r=lVe.isNCNameStartChar,t5r=lVe.isNCNameChar,n5r=lVe.NC_NAME_RE;const dde="http://www.w3.org/XML/1998/namespace",GD="http://www.w3.org/2000/xmlns/",r5r={__proto__:null,xml:dde,xmlns:GD},i5r={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},Du=-1,CE=-2,Xqt=0,o5r=1,ADe=2,s5r=3,fD=4,l5r=5,a5r=6,c5r=7,TDe=8,u5r=9,f5r=10,d5r=11,h5r=12,Xg=13,rfe=14,$De=15,p5r=16,IDe=17,b5r=18,g5r=19,PDe=20,w5r=21,m5r=22,y5r=23,Jqt=24,ODe=25,ife=26,Yqt=27,v5r=28,_5r=29,Qqt=30,S5r=31,E5r=32,g8=33,k5r=34,NDe=35,wK=36,MDe=37,R5r=38,Zqt=39,eXt=40,x5r=41,tXt=42,C5r=43,A5r=44,DDe=9,cS=10,LDe=13,nXt=32,rXt=33,zun=34,HK=38,Kun=39,ofe=45,sfe=47,T5r=59,tT=60,OD=61,Eh=62,Up=63,qun=91,ND=93,iXt=133,oXt=8232,lfe=n=>n===zun||n===Kun,Xun=[zun,Kun],$5r=[...Xun,qun,Eh],I5r=[...Xun,tT,ND],P5r=[OD,Up,...Vun],O5r=[...Vun,Eh,HK,tT];function TBe(n,r,o){switch(r){case"xml":o!==dde&&n.fail(`xml prefix must be bound to ${dde}.`);break;case"xmlns":o!==GD&&n.fail(`xmlns prefix must be bound to ${GD}.`);break}switch(o){case GD:n.fail(r===""?`the default namespace may not be set to ${o}.`:`may not assign a prefix (even "xmlns") to the URI ${GD}.`);break;case dde:switch(r){case"xml":break;case"":n.fail(`the default namespace may not be set to ${o}.`);break;default:n.fail("may not assign the xml namespace to another prefix.")}break}}function N5r(n,r){for(const o of Object.keys(r))TBe(n,o,r[o])}const M5r=n=>n5r.test(n),D5r=n=>QIr.test(n),w8=0,sXt=1,jDe=2;XL.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"];const lXt={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 L5r{get closed(){return this._closed}constructor(r){this.opt=r??{},this.fragmentOpt=!!this.opt.fragment;const o=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,o){this.nameStartCheck=e5r,this.nameCheck=t5r,this.isName=M5r,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},r5r);const l=this.opt.additionalNamespaces;l!=null&&(N5r(this,l),Object.assign(this.ns,l))}else this.nameStartCheck=gK,this.nameCheck=qqt,this.isName=D5r,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 r;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=w8,this.attribList=[];const{fragmentOpt:o}=this;this.state=o?Xg:Xqt,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=o,this.xmlDeclPossible=!o,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:l}=this.opt;if(l===void 0){if(this.opt.forceXMLVersion===!0)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");l="1.0"}this.setXMLVersion(l),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(i5r),(r=this.readyHandler)===null||r===void 0||r.call(this)}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(r,o){this[lXt[r]]=o}off(r){this[lXt[r]]=void 0}makeError(r){var o;let l=(o=this.fileName)!==null&&o!==void 0?o:"";return this.trackPosition&&(l.length>0&&(l+=":"),l+=`${this.line}:${this.column}`),l.length>0&&(l+=": "),new Error(l+r)}fail(r){const o=this.makeError(r),l=this.errorHandler;if(l===void 0)throw o;return l(o),this}write(r){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");let o=!1;r===null?(o=!0,r=""):typeof r=="object"&&(r=r.toString()),this.carriedFromPrevious!==void 0&&(r=`${this.carriedFromPrevious}${r}`,this.carriedFromPrevious=void 0);let l=r.length;const u=r.charCodeAt(l-1);!o&&(u===LDe||u>=55296&&u<=56319)&&(this.carriedFromPrevious=r[l-1],l--,r=r.slice(0,l));const{stateTable:d}=this;for(this.chunk=r,this.i=0;this.i=r.length)return Du;const l=r.charCodeAt(o);if(this.column++,l<55296){if(l>=nXt||l===DDe)return l;switch(l){case cS:return this.line++,this.column=0,this.positionAtNewLine=this.position,cS;case LDe:return r.charCodeAt(o+1)===cS&&(this.i=o+2),this.line++,this.column=0,this.positionAtNewLine=this.position,CE;default:return this.fail("disallowed character."),l}}if(l>56319)return l>=57344&&l<=65533||this.fail("disallowed character."),l;const u=65536+(l-55296)*1024+(r.charCodeAt(o+1)-56320);return this.i=o+2,u>1114111&&this.fail("disallowed character."),u}getCode11(){const{chunk:r,i:o}=this;if(this.prevI=o,this.i=o+1,o>=r.length)return Du;const l=r.charCodeAt(o);if(this.column++,l<55296){if(l>31&&l<127||l>159&&l!==oXt||l===DDe)return l;switch(l){case cS:return this.line++,this.column=0,this.positionAtNewLine=this.position,cS;case LDe:{const d=r.charCodeAt(o+1);(d===cS||d===iXt)&&(this.i=o+2)}case iXt:case oXt:return this.line++,this.column=0,this.positionAtNewLine=this.position,CE;default:return this.fail("disallowed character."),l}}if(l>56319)return l>=57344&&l<=65533||this.fail("disallowed character."),l;const u=65536+(l-55296)*1024+(r.charCodeAt(o+1)-56320);return this.i=o+2,u>1114111&&this.fail("disallowed character."),u}getCodeNorm(){const r=this.getCode();return r===CE?cS:r}unget(){this.i=this.prevI,this.column--}captureTo(r){let{i:o}=this;const{chunk:l}=this;for(;;){const u=this.getCode(),d=u===CE,h=d?cS:u;if(h===Du||r.includes(h))return this.text+=l.slice(o,this.prevI),h;d&&(this.text+=`${l.slice(o,this.prevI)} + */Object.defineProperty(n,"__esModule",{value:!0}),n.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",n.NC_NAME_CHAR="-"+n.NC_NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",n.NC_NAME_START_CHAR_RE=new RegExp("^["+n.NC_NAME_START_CHAR+"]$","u"),n.NC_NAME_CHAR_RE=new RegExp("^["+n.NC_NAME_CHAR+"]$","u"),n.NC_NAME_RE=new RegExp("^["+n.NC_NAME_START_CHAR+"]["+n.NC_NAME_CHAR+"]*$","u");function r(l){return l>=65&&l<=90||l===95||l>=97&&l<=122||l>=192&&l<=214||l>=216&&l<=246||l>=248&&l<=767||l>=880&&l<=893||l>=895&&l<=8191||l>=8204&&l<=8205||l>=8304&&l<=8591||l>=11264&&l<=12271||l>=12289&&l<=55295||l>=63744&&l<=64975||l>=65008&&l<=65533||l>=65536&&l<=983039}n.isNCNameStartChar=r;function o(l){return r(l)||l===45||l===46||l>=48&&l<=57||l===183||l>=768&&l<=879||l>=8255&&l<=8256}n.isNCNameChar=o})(Zun);Object.defineProperty(qL,"__esModule",{value:!0});qL.SaxesParser=qL.EVENTS=void 0;const Oj=Yun,p5r=Qun,hVe=Zun;var v0=Oj.isS,b5r=Oj.isChar,bK=Oj.isNameStartChar,tXt=Oj.isNameChar,efn=Oj.S_LIST,g5r=Oj.NAME_RE,w5r=p5r.isChar,m5r=hVe.isNCNameStartChar,y5r=hVe.isNCNameChar,v5r=hVe.NC_NAME_RE;const bde="http://www.w3.org/XML/1998/namespace",UD="http://www.w3.org/2000/xmlns/",_5r={__proto__:null,xml:bde,xmlns:UD},S5r={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},Du=-1,CE=-2,nXt=0,E5r=1,ODe=2,k5r=3,uD=4,R5r=5,x5r=6,C5r=7,NDe=8,A5r=9,T5r=10,$5r=11,I5r=12,Xg=13,ofe=14,MDe=15,P5r=16,DDe=17,O5r=18,N5r=19,LDe=20,M5r=21,D5r=22,L5r=23,rXt=24,jDe=25,sfe=26,iXt=27,j5r=28,F5r=29,oXt=30,B5r=31,W5r=32,g8=33,H5r=34,FDe=35,gK=36,BDe=37,U5r=38,sXt=39,lXt=40,G5r=41,aXt=42,V5r=43,z5r=44,WDe=9,cS=10,HDe=13,cXt=32,uXt=33,tfn=34,WK=38,nfn=39,lfe=45,afe=47,K5r=59,tT=60,PD=61,Eh=62,Up=63,rfn=91,OD=93,fXt=133,dXt=8232,cfe=n=>n===tfn||n===nfn,ifn=[tfn,nfn],q5r=[...ifn,rfn,Eh],X5r=[...ifn,tT,OD],J5r=[PD,Up,...efn],Y5r=[...efn,Eh,WK,tT];function DBe(n,r,o){switch(r){case"xml":o!==bde&&n.fail(`xml prefix must be bound to ${bde}.`);break;case"xmlns":o!==UD&&n.fail(`xmlns prefix must be bound to ${UD}.`);break}switch(o){case UD:n.fail(r===""?`the default namespace may not be set to ${o}.`:`may not assign a prefix (even "xmlns") to the URI ${UD}.`);break;case bde:switch(r){case"xml":break;case"":n.fail(`the default namespace may not be set to ${o}.`);break;default:n.fail("may not assign the xml namespace to another prefix.")}break}}function Q5r(n,r){for(const o of Object.keys(r))DBe(n,o,r[o])}const Z5r=n=>v5r.test(n),e8r=n=>g5r.test(n),w8=0,hXt=1,UDe=2;qL.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"];const pXt={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 t8r{get closed(){return this._closed}constructor(r){this.opt=r??{},this.fragmentOpt=!!this.opt.fragment;const o=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,o){this.nameStartCheck=m5r,this.nameCheck=y5r,this.isName=Z5r,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},_5r);const l=this.opt.additionalNamespaces;l!=null&&(Q5r(this,l),Object.assign(this.ns,l))}else this.nameStartCheck=bK,this.nameCheck=tXt,this.isName=e8r,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 r;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=w8,this.attribList=[];const{fragmentOpt:o}=this;this.state=o?Xg:nXt,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=o,this.xmlDeclPossible=!o,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:l}=this.opt;if(l===void 0){if(this.opt.forceXMLVersion===!0)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");l="1.0"}this.setXMLVersion(l),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(S5r),(r=this.readyHandler)===null||r===void 0||r.call(this)}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(r,o){this[pXt[r]]=o}off(r){this[pXt[r]]=void 0}makeError(r){var o;let l=(o=this.fileName)!==null&&o!==void 0?o:"";return this.trackPosition&&(l.length>0&&(l+=":"),l+=`${this.line}:${this.column}`),l.length>0&&(l+=": "),new Error(l+r)}fail(r){const o=this.makeError(r),l=this.errorHandler;if(l===void 0)throw o;return l(o),this}write(r){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");let o=!1;r===null?(o=!0,r=""):typeof r=="object"&&(r=r.toString()),this.carriedFromPrevious!==void 0&&(r=`${this.carriedFromPrevious}${r}`,this.carriedFromPrevious=void 0);let l=r.length;const u=r.charCodeAt(l-1);!o&&(u===HDe||u>=55296&&u<=56319)&&(this.carriedFromPrevious=r[l-1],l--,r=r.slice(0,l));const{stateTable:d}=this;for(this.chunk=r,this.i=0;this.i=r.length)return Du;const l=r.charCodeAt(o);if(this.column++,l<55296){if(l>=cXt||l===WDe)return l;switch(l){case cS:return this.line++,this.column=0,this.positionAtNewLine=this.position,cS;case HDe:return r.charCodeAt(o+1)===cS&&(this.i=o+2),this.line++,this.column=0,this.positionAtNewLine=this.position,CE;default:return this.fail("disallowed character."),l}}if(l>56319)return l>=57344&&l<=65533||this.fail("disallowed character."),l;const u=65536+(l-55296)*1024+(r.charCodeAt(o+1)-56320);return this.i=o+2,u>1114111&&this.fail("disallowed character."),u}getCode11(){const{chunk:r,i:o}=this;if(this.prevI=o,this.i=o+1,o>=r.length)return Du;const l=r.charCodeAt(o);if(this.column++,l<55296){if(l>31&&l<127||l>159&&l!==dXt||l===WDe)return l;switch(l){case cS:return this.line++,this.column=0,this.positionAtNewLine=this.position,cS;case HDe:{const d=r.charCodeAt(o+1);(d===cS||d===fXt)&&(this.i=o+2)}case fXt:case dXt:return this.line++,this.column=0,this.positionAtNewLine=this.position,CE;default:return this.fail("disallowed character."),l}}if(l>56319)return l>=57344&&l<=65533||this.fail("disallowed character."),l;const u=65536+(l-55296)*1024+(r.charCodeAt(o+1)-56320);return this.i=o+2,u>1114111&&this.fail("disallowed character."),u}getCodeNorm(){const r=this.getCode();return r===CE?cS:r}unget(){this.i=this.prevI,this.column--}captureTo(r){let{i:o}=this;const{chunk:l}=this;for(;;){const u=this.getCode(),d=u===CE,h=d?cS:u;if(h===Du||r.includes(h))return this.text+=l.slice(o,this.prevI),h;d&&(this.text+=`${l.slice(o,this.prevI)} `,o=this.i)}}captureToChar(r){let{i:o}=this;const{chunk:l}=this;for(;;){let u=this.getCode();switch(u){case CE:this.text+=`${l.slice(o,this.prevI)} -`,o=this.i,u=cS;break;case Du:return this.text+=l.slice(o),!1}if(u===r)return this.text+=l.slice(o,this.prevI),!0}}captureNameChars(){const{chunk:r,i:o}=this;for(;;){const l=this.getCode();if(l===Du)return this.name+=r.slice(o),Du;if(!qqt(l))return this.name+=r.slice(o,this.prevI),l===CE?cS:l}}skipSpaces(){for(;;){const r=this.getCodeNorm();if(r===Du||!v0(r))return r}}setXMLVersion(r){this.currentXMLVersion=r,r==="1.0"?(this.isChar=YIr,this.getCode=this.getCode10):(this.isChar=ZIr,this.getCode=this.getCode11)}sBegin(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=o5r}sBeginWhitespace(){const r=this.i,o=this.skipSpaces();switch(this.prevI!==r&&(this.xmlDeclPossible=!1),o){case tT:if(this.state=$De,this.text.length!==0)throw new Error("no-empty text at start");break;case Du:break;default:this.unget(),this.state=Xg,this.xmlDeclPossible=!1}}sDoctype(){var r;const o=this.captureTo($5r);switch(o){case Eh:{(r=this.doctypeHandler)===null||r===void 0||r.call(this,this.text),this.text="",this.state=Xg,this.doctype=!0;break}case Du:break;default:this.text+=String.fromCodePoint(o),o===qun?this.state=fD:lfe(o)&&(this.state=s5r,this.q=o)}}sDoctypeQuote(){const r=this.q;this.captureToChar(r)&&(this.text+=String.fromCodePoint(r),this.q=null,this.state=ADe)}sDTD(){const r=this.captureTo(I5r);r!==Du&&(this.text+=String.fromCodePoint(r),r===ND?this.state=ADe:r===tT?this.state=a5r:lfe(r)&&(this.state=l5r,this.q=r))}sDTDQuoted(){const r=this.q;this.captureToChar(r)&&(this.text+=String.fromCodePoint(r),this.state=fD,this.q=null)}sDTDOpenWaka(){const r=this.getCodeNorm();switch(this.text+=String.fromCodePoint(r),r){case rXt:this.state=c5r,this.openWakaBang="";break;case Up:this.state=d5r;break;default:this.state=fD}}sDTDOpenWakaBang(){const r=String.fromCodePoint(this.getCodeNorm()),o=this.openWakaBang+=r;this.text+=r,o!=="-"&&(this.state=o==="--"?TDe:fD,this.openWakaBang="")}sDTDComment(){this.captureToChar(ofe)&&(this.text+="-",this.state=u5r)}sDTDCommentEnding(){const r=this.getCodeNorm();this.text+=String.fromCodePoint(r),this.state=r===ofe?f5r:TDe}sDTDCommentEnded(){const r=this.getCodeNorm();this.text+=String.fromCodePoint(r),r===Eh?this.state=fD:(this.fail("malformed comment."),this.state=TDe)}sDTDPI(){this.captureToChar(Up)&&(this.text+="?",this.state=h5r)}sDTDPIEnding(){const r=this.getCodeNorm();this.text+=String.fromCodePoint(r),r===Eh&&(this.state=fD)}sText(){this.tags.length!==0?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let{i:r}=this;const{chunk:o}=this;e:for(;;)switch(this.getCode()){case CE:this.entity+=`${o.slice(r,this.prevI)} -`,r=this.i;break;case T5r:{const{entityReturnState:l}=this,u=this.entity+o.slice(r,this.prevI);this.state=l;let d;u===""?(this.fail("empty entity name."),d="&;"):(d=this.parseEntity(u),this.entity=""),(l!==Xg||this.textHandler!==void 0)&&(this.text+=d);break e}case Du:this.entity+=o.slice(r);break e}}sOpenWaka(){const r=this.getCode();if(gK(r))this.state=k5r,this.unget(),this.xmlDeclPossible=!1;else switch(r){case sfe:this.state=C5r,this.xmlDeclPossible=!1;break;case rXt:this.state=p5r,this.openWakaBang="",this.xmlDeclPossible=!1;break;case Up:this.state=y5r;break;default:this.fail("disallowed character in tag name"),this.state=Xg,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=PDe,this.openWakaBang="";break;case"--":this.state=IDe,this.openWakaBang="";break;case"DOCTYPE":this.state=ADe,(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(ofe)&&(this.state=b5r)}sCommentEnding(){var r;const o=this.getCodeNorm();o===ofe?(this.state=g5r,(r=this.commentHandler)===null||r===void 0||r.call(this,this.text),this.text=""):(this.text+=`-${String.fromCodePoint(o)}`,this.state=IDe)}sCommentEnded(){const r=this.getCodeNorm();r!==Eh?(this.fail("malformed comment."),this.text+=`--${String.fromCodePoint(r)}`,this.state=IDe):this.state=Xg}sCData(){this.captureToChar(ND)&&(this.state=w5r)}sCDataEnding(){const r=this.getCodeNorm();r===ND?this.state=m5r:(this.text+=`]${String.fromCodePoint(r)}`,this.state=PDe)}sCDataEnding2(){var r;const o=this.getCodeNorm();switch(o){case Eh:{(r=this.cdataHandler)===null||r===void 0||r.call(this,this.text),this.text="",this.state=Xg;break}case ND:this.text+="]";break;default:this.text+=`]]${String.fromCodePoint(o)}`,this.state=PDe}}sPIFirstChar(){const r=this.getCodeNorm();this.nameStartCheck(r)?(this.piTarget+=String.fromCodePoint(r),this.state=Jqt):r===Up||v0(r)?(this.fail("processing instruction without a target."),this.state=r===Up?ife:ODe):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(r),this.state=Jqt)}sPIRest(){const{chunk:r,i:o}=this;for(;;){const l=this.getCodeNorm();if(l===Du){this.piTarget+=r.slice(o);return}if(!this.nameCheck(l)){this.piTarget+=r.slice(o,this.prevI);const u=l===Up;u||v0(l)?this.piTarget==="xml"?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=u?g8:Yqt):this.state=u?ife:ODe:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(l));break}}}sPIBody(){if(this.text.length===0){const r=this.getCodeNorm();r===Up?this.state=ife:v0(r)||(this.text=String.fromCodePoint(r))}else this.captureToChar(Up)&&(this.state=ife)}sPIEnding(){var r;const o=this.getCodeNorm();if(o===Eh){const{piTarget:l}=this;l.toLowerCase()==="xml"&&this.fail("the XML declaration must appear at the start of the document."),(r=this.piHandler)===null||r===void 0||r.call(this,{target:l,body:this.text}),this.piTarget=this.text="",this.state=Xg}else o===Up?this.text+="?":(this.text+=`?${String.fromCodePoint(o)}`,this.state=ODe);this.xmlDeclPossible=!1}sXMLDeclNameStart(){const r=this.skipSpaces();if(r===Up){this.state=g8;return}r!==Du&&(this.state=v5r,this.name=String.fromCodePoint(r))}sXMLDeclName(){const r=this.captureTo(P5r);if(r===Up){this.state=g8,this.name+=this.text,this.text="",this.fail("XML declaration is incomplete.");return}if(v0(r)||r===OD){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=r===OD?Qqt:_5r}}sXMLDeclEq(){const r=this.getCodeNorm();if(r===Up){this.state=g8,this.fail("XML declaration is incomplete.");return}v0(r)||(r!==OD&&this.fail("value required."),this.state=Qqt)}sXMLDeclValueStart(){const r=this.getCodeNorm();if(r===Up){this.state=g8,this.fail("XML declaration is incomplete.");return}v0(r)||(lfe(r)?this.q=r:(this.fail("value must be quoted."),this.q=nXt),this.state=S5r)}sXMLDeclValue(){const r=this.captureTo([this.q,Up]);if(r===Up){this.state=g8,this.text="",this.fail("XML declaration is incomplete.");return}if(r===Du)return;const o=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];const l=o;this.xmlDecl.version=l,/^1\.[0-9]+$/.test(l)?this.opt.forceXMLVersion||this.setXMLVersion(l):this.fail("version number must match /^1\\.[0-9]+$/.");break}case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(o)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=o;break;case"standalone":o!=="yes"&&o!=="no"&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=o;break}this.name="",this.state=E5r}sXMLDeclSeparator(){const r=this.getCodeNorm();if(r===Up){this.state=g8;return}v0(r)||(this.fail("whitespace required."),this.unget()),this.state=Yqt}sXMLDeclEnding(){var r;this.getCodeNorm()===Eh?(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."),(r=this.xmldeclHandler)===null||r===void 0||r.call(this,this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=Xg):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}sOpenTag(){var r;const o=this.captureNameChars();if(o===Du)return;const l=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=l.ns=Object.create(null)),(r=this.openTagStartHandler)===null||r===void 0||r.call(this,l),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),o){case Eh:this.openTag();break;case sfe:this.state=NDe;break;default:v0(o)||this.fail("disallowed character in tag name."),this.state=wK}}sOpenTagSlash(){this.getCode()===Eh?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=wK)}sAttrib(){const r=this.skipSpaces();r!==Du&&(gK(r)?(this.unget(),this.state=MDe):r===Eh?this.openTag():r===sfe?this.state=NDe:this.fail("disallowed character in attribute name."))}sAttribName(){const r=this.captureNameChars();r===OD?this.state=Zqt:v0(r)?this.state=R5r:r===Eh?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):r!==Du&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){const r=this.skipSpaces();switch(r){case Du:return;case OD:this.state=Zqt;break;default:this.fail("attribute without value."),this.text="",this.name="",r===Eh?this.openTag():gK(r)?(this.unget(),this.state=MDe):(this.fail("disallowed character in attribute name."),this.state=wK)}}sAttribValue(){const r=this.getCodeNorm();lfe(r)?(this.q=r,this.state=eXt):v0(r)||(this.fail("unquoted attribute value."),this.state=tXt,this.unget())}sAttribValueQuoted(){const{q:r,chunk:o}=this;let{i:l}=this;for(;;)switch(this.getCode()){case r:this.pushAttrib(this.name,this.text+o.slice(l,this.prevI)),this.name=this.text="",this.q=null,this.state=x5r;return;case HK:this.text+=o.slice(l,this.prevI),this.state=rfe,this.entityReturnState=eXt;return;case cS:case CE:case DDe:this.text+=`${o.slice(l,this.prevI)} `,l=this.i;break;case tT:this.text+=o.slice(l,this.prevI),this.fail("disallowed character.");return;case Du:this.text+=o.slice(l);return}}sAttribValueClosed(){const r=this.getCodeNorm();v0(r)?this.state=wK:r===Eh?this.openTag():r===sfe?this.state=NDe:gK(r)?(this.fail("no whitespace between attributes."),this.unget(),this.state=MDe):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){const r=this.captureTo(O5r);switch(r){case HK:this.state=rfe,this.entityReturnState=tXt;break;case tT:this.fail("disallowed character.");break;case Du:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",r===Eh?this.openTag():this.state=wK}}sCloseTag(){const r=this.captureNameChars();r===Eh?this.closeTag():v0(r)?this.state=A5r:r!==Du&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case Eh:this.closeTag();break;case Du:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:r,forbiddenState:o}=this;const{chunk:l,textHandler:u}=this;e:for(;;)switch(this.getCode()){case tT:{if(this.state=$De,u!==void 0){const{text:d}=this,h=l.slice(r,this.prevI);d.length!==0?(u(d+h),this.text=""):h.length!==0&&u(h)}o=w8;break e}case HK:this.state=rfe,this.entityReturnState=Xg,u!==void 0&&(this.text+=l.slice(r,this.prevI)),o=w8;break e;case ND:switch(o){case w8:o=sXt;break;case sXt:o=jDe;break;case jDe:break;default:throw new Error("impossible state")}break;case Eh:o===jDe&&this.fail('the string "]]>" is disallowed in char data.'),o=w8;break;case CE:u!==void 0&&(this.text+=`${l.slice(r,this.prevI)} -`),r=this.i,o=w8;break;case Du:u!==void 0&&(this.text+=l.slice(r));break e;default:o=w8}this.forbiddenState=o}handleTextOutsideRoot(){let{i:r}=this;const{chunk:o,textHandler:l}=this;let u=!1;e:for(;;){const d=this.getCode();switch(d){case tT:{if(this.state=$De,l!==void 0){const{text:h}=this,w=o.slice(r,this.prevI);h.length!==0?(l(h+w),this.text=""):w.length!==0&&l(w)}break e}case HK:this.state=rfe,this.entityReturnState=Xg,l!==void 0&&(this.text+=o.slice(r,this.prevI)),u=!0;break e;case CE:l!==void 0&&(this.text+=`${o.slice(r,this.prevI)} -`),r=this.i;break;case Du:l!==void 0&&(this.text+=o.slice(r));break e;default:v0(d)||(u=!0)}}u&&(!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(r,o){var l;const{prefix:u,local:d}=this.qname(r),h={name:r,prefix:u,local:d,value:o};if(this.attribList.push(h),(l=this.attributeHandler)===null||l===void 0||l.call(this,h),u==="xmlns"){const w=o.trim();this.currentXMLVersion==="1.0"&&w===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[d]=w,TBe(this,d,w)}else if(r==="xmlns"){const w=o.trim();this.topNS[""]=w,TBe(this,"",w)}}pushAttribPlain(r,o){var l;const u={name:r,value:o};this.attribList.push(u),(l=this.attributeHandler)===null||l===void 0||l.call(this,u)}end(){var r,o;this.sawRoot||this.fail("document must contain a root element.");const{tags:l}=this;for(;l.length>0;){const d=l.pop();this.fail(`unclosed tag: ${d.name}`)}this.state!==Xqt&&this.state!==Xg&&this.fail("unexpected end.");const{text:u}=this;return u.length!==0&&((r=this.textHandler)===null||r===void 0||r.call(this,u),this.text=""),this._closed=!0,(o=this.endHandler)===null||o===void 0||o.call(this),this._init(),this}resolve(r){var o,l;let u=this.topNS[r];if(u!==void 0)return u;const{tags:d}=this;for(let h=d.length-1;h>=0;h--)if(u=d[h].ns[r],u!==void 0)return u;return u=this.ns[r],u!==void 0?u:(l=(o=this.opt).resolvePrefix)===null||l===void 0?void 0:l.call(o,r)}qname(r){const o=r.indexOf(":");if(o===-1)return{prefix:"",local:r};const l=r.slice(o+1),u=r.slice(0,o);return(u===""||l===""||l.includes(":"))&&this.fail(`malformed name: ${r}.`),{prefix:u,local:l}}processAttribsNS(){var r;const{attribList:o}=this,l=this.tag;{const{prefix:h,local:w}=this.qname(l.name);l.prefix=h,l.local=w;const v=l.uri=(r=this.resolve(h))!==null&&r!==void 0?r:"";h!==""&&(h==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),v===""&&(this.fail(`unbound namespace prefix: ${JSON.stringify(h)}.`),l.uri=h))}if(o.length===0)return;const{attributes:u}=l,d=new Set;for(const h of o){const{name:w,prefix:v,local:y}=h;let E,A;v===""?(E=w==="xmlns"?GD:"",A=w):(E=this.resolve(v),E===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(v)}.`),E=v),A=`{${E}}${y}`),d.has(A)&&this.fail(`duplicate attribute: ${A}.`),d.add(A),h.uri=E,u[w]=h}this.attribList=[]}processAttribsPlain(){const{attribList:r}=this,o=this.tag.attributes;for(const{name:l,value:u}of r)o[l]!==void 0&&this.fail(`duplicate attribute: ${l}.`),o[l]=u;this.attribList=[]}openTag(){var r;this.processAttribs();const{tags:o}=this,l=this.tag;l.isSelfClosing=!1,(r=this.openTagHandler)===null||r===void 0||r.call(this,l),o.push(l),this.state=Xg,this.name=""}openSelfClosingTag(){var r,o,l;this.processAttribs();const{tags:u}=this,d=this.tag;d.isSelfClosing=!0,(r=this.openTagHandler)===null||r===void 0||r.call(this,d),(o=this.closeTagHandler)===null||o===void 0||o.call(this,d),(this.tag=(l=u[u.length-1])!==null&&l!==void 0?l:null)===null&&(this.closedRoot=!0),this.state=Xg,this.name=""}closeTag(){const{tags:r,name:o}=this;if(this.state=Xg,this.name="",o===""){this.fail("weird empty close tag."),this.text+="";return}const l=this.closeTagHandler;let u=r.length;for(;u-- >0;){const d=this.tag=r.pop();if(this.topNS=d.ns,l==null||l(d),d.name===o)break;this.fail("unexpected close tag.")}u===0?this.closedRoot=!0:u<0&&(this.fail(`unmatched closing tag: ${o}.`),this.text+=``)}parseEntity(r){if(r[0]!=="#"){const l=this.ENTITIES[r];return l!==void 0?l:(this.fail(this.isName(r)?"undefined entity.":"disallowed character in entity name."),`&${r};`)}let o=NaN;return r[1]==="x"&&/^#x[0-9a-f]+$/i.test(r)?o=parseInt(r.slice(2),16):/^#[0-9]+$/.test(r)&&(o=parseInt(r.slice(1),10)),this.isChar(o)?String.fromCodePoint(o):(this.fail("malformed character entity."),`&${r};`)}}XL.SaxesParser=L5r;var Jun={exports:{}},FDe={exports:{}},Vf={ArrayIsArray(n){return Array.isArray(n)},ArrayPrototypeIncludes(n,r){return n.includes(r)},ArrayPrototypeIndexOf(n,r){return n.indexOf(r)},ArrayPrototypeJoin(n,r){return n.join(r)},ArrayPrototypeMap(n,r){return n.map(r)},ArrayPrototypePop(n,r){return n.pop(r)},ArrayPrototypePush(n,r){return n.push(r)},ArrayPrototypeSlice(n,r,o){return n.slice(r,o)},Error,FunctionPrototypeCall(n,r,...o){return n.call(r,...o)},FunctionPrototypeSymbolHasInstance(n,r){return Function.prototype[Symbol.hasInstance].call(n,r)},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(n,r){return Object.defineProperties(n,r)},ObjectDefineProperty(n,r,o){return Object.defineProperty(n,r,o)},ObjectGetOwnPropertyDescriptor(n,r){return Object.getOwnPropertyDescriptor(n,r)},ObjectKeys(n){return Object.keys(n)},ObjectSetPrototypeOf(n,r){return Object.setPrototypeOf(n,r)},Promise,PromisePrototypeCatch(n,r){return n.catch(r)},PromisePrototypeThen(n,r,o){return n.then(r,o)},PromiseReject(n){return Promise.reject(n)},PromiseResolve(n){return Promise.resolve(n)},ReflectApply:Reflect.apply,RegExpPrototypeTest(n,r){return n.test(r)},SafeSet:Set,String,StringPrototypeSlice(n,r,o){return n.slice(r,o)},StringPrototypeToLowerCase(n){return n.toLowerCase()},StringPrototypeToUpperCase(n){return n.toUpperCase()},StringPrototypeTrim(n){return n.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(n,r,o){return n.set(r,o)},Boolean,Uint8Array},Yun={exports:{}};(function(n){const r=Kr,{kResistStopPropagation:o,SymbolDispose:l}=Vf,u=globalThis.AbortSignal||$o().AbortSignal,d=globalThis.AbortController||$o().AbortController,h=Object.getPrototypeOf(async function(){}).constructor,w=globalThis.Blob||r.Blob,v=typeof w<"u"?function(R){return R instanceof w}:function(R){return!1},y=(C,R)=>{if(C!==void 0&&(C===null||typeof C!="object"||!("aborted"in C)))throw new ERR_INVALID_ARG_TYPE(R,"AbortSignal",C)},E=(C,R)=>{if(typeof C!="function")throw new ERR_INVALID_ARG_TYPE(R,"Function",C)};class A extends Error{constructor(R){if(!Array.isArray(R))throw new TypeError(`Expected input to be an Array, got ${typeof R}`);let O="";for(let M=0;M{C=M,R=L}),resolve:C,reject:R}},promisify(C){return new Promise((R,O)=>{C((M,...L)=>M?O(M):R(...L))})},debuglog(){return function(){}},format(C,...R){return C.replace(/%([sdifj])/g,function(...[O,M]){const L=R.shift();return M==="f"?L.toFixed(6):M==="j"?JSON.stringify(L):M==="s"&&typeof L=="object"?`${L.constructor!==Object?L.constructor.name:""} {}`.trim():L.toString()})},inspect(C){switch(typeof C){case"string":if(C.includes("'"))if(C.includes('"')){if(!C.includes("`")&&!C.includes("${"))return`\`${C}\``}else return`"${C}"`;return`'${C}'`;case"number":return isNaN(C)?"NaN":Object.is(C,-0)?String(C):C;case"bigint":return`${String(C)}n`;case"boolean":case"undefined":return String(C);case"object":return"{}"}},types:{isAsyncFunction(C){return C instanceof h},isArrayBufferView(C){return ArrayBuffer.isView(C)}},isBlob:v,deprecate(C,R){return C},addAbortListener:Ns.addAbortListener||function(R,O){if(R===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",R);y(R,"signal"),E(O,"listener");let M;return R.aborted?queueMicrotask(()=>O()):(R.addEventListener("abort",O,{__proto__:null,once:!0,[o]:!0}),M=()=>{R.removeEventListener("abort",O)}),{__proto__:null,[l](){var L;(L=M)===null||L===void 0||L()}}},AbortSignalAny:u.any||function(R){if(R.length===1)return R[0];const O=new d,M=()=>O.abort();return R.forEach(L=>{y(L,"signals"),L.addEventListener("abort",M,{once:!0})}),O.signal.addEventListener("abort",()=>{R.forEach(L=>L.removeEventListener("abort",M))},{once:!0}),O.signal}},n.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(Yun);var w1=Yun.exports,aVe={};const{format:j5r,inspect:The,AggregateError:F5r}=w1,B5r=globalThis.AggregateError||F5r,W5r=Symbol("kIsNodeError"),H5r=["string","function","number","object","Function","Object","boolean","bigint","symbol"],U5r=/^([A-Z][a-z0-9]*)+$/,G5r="__node_internal_",Yge={};function bP(n,r){if(!n)throw new Yge.ERR_INTERNAL_ASSERTION(r)}function aXt(n){let r="",o=n.length;const l=n[0]==="-"?1:0;for(;o>=l+4;o-=3)r=`_${n.slice(o-3,o)}${r}`;return`${n.slice(0,o)}${r}`}function V5r(n,r,o){if(typeof r=="function")return bP(r.length<=o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${r.length}).`),r(...o);const l=(r.match(/%[dfijoOs]/g)||[]).length;return bP(l===o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${l}).`),o.length===0?r:j5r(r,...o)}function ib(n,r,o){o||(o=Error);class l extends o{constructor(...d){super(V5r(n,r,d))}toString(){return`${this.name} [${n}]: ${this.message}`}}Object.defineProperties(l.prototype,{name:{value:o.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${n}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),l.prototype.code=n,l.prototype[W5r]=!0,Yge[n]=l}function cXt(n){const r=G5r+n.name;return Object.defineProperty(n,"name",{value:r}),n}function z5r(n,r){if(n&&r&&n!==r){if(Array.isArray(r.errors))return r.errors.push(n),r;const o=new B5r([r,n],r.message);return o.code=r.code,o}return n||r}let K5r=class extends Error{constructor(r="The operation was aborted",o=void 0){if(o!==void 0&&typeof o!="object")throw new Yge.ERR_INVALID_ARG_TYPE("options","Object",o);super(r,o),this.code="ABORT_ERR",this.name="AbortError"}};ib("ERR_ASSERTION","%s",Error);ib("ERR_INVALID_ARG_TYPE",(n,r,o)=>{bP(typeof n=="string","'name' must be a string"),Array.isArray(r)||(r=[r]);let l="The ";n.endsWith(" argument")?l+=`${n} `:l+=`"${n}" ${n.includes(".")?"property":"argument"} `,l+="must be ";const u=[],d=[],h=[];for(const v of r)bP(typeof v=="string","All expected entries have to be of type string"),H5r.includes(v)?u.push(v.toLowerCase()):U5r.test(v)?d.push(v):(bP(v!=="object",'The value "object" should be written as "Object"'),h.push(v));if(d.length>0){const v=u.indexOf("object");v!==-1&&(u.splice(u,v,1),d.push("Object"))}if(u.length>0){switch(u.length){case 1:l+=`of type ${u[0]}`;break;case 2:l+=`one of type ${u[0]} or ${u[1]}`;break;default:{const v=u.pop();l+=`one of type ${u.join(", ")}, or ${v}`}}(d.length>0||h.length>0)&&(l+=" or ")}if(d.length>0){switch(d.length){case 1:l+=`an instance of ${d[0]}`;break;case 2:l+=`an instance of ${d[0]} or ${d[1]}`;break;default:{const v=d.pop();l+=`an instance of ${d.join(", ")}, or ${v}`}}h.length>0&&(l+=" or ")}switch(h.length){case 0:break;case 1:h[0].toLowerCase()!==h[0]&&(l+="an "),l+=`${h[0]}`;break;case 2:l+=`one of ${h[0]} or ${h[1]}`;break;default:{const v=h.pop();l+=`one of ${h.join(", ")}, or ${v}`}}if(o==null)l+=`. Received ${o}`;else if(typeof o=="function"&&o.name)l+=`. Received function ${o.name}`;else if(typeof o=="object"){var w;if((w=o.constructor)!==null&&w!==void 0&&w.name)l+=`. Received an instance of ${o.constructor.name}`;else{const v=The(o,{depth:-1});l+=`. Received ${v}`}}else{let v=The(o,{colors:!1});v.length>25&&(v=`${v.slice(0,25)}...`),l+=`. Received type ${typeof o} (${v})`}return l},TypeError);ib("ERR_INVALID_ARG_VALUE",(n,r,o="is invalid")=>{let l=The(r);return l.length>128&&(l=l.slice(0,128)+"..."),`The ${n.includes(".")?"property":"argument"} '${n}' ${o}. Received ${l}`},TypeError);ib("ERR_INVALID_RETURN_VALUE",(n,r,o)=>{var l;const u=o!=null&&(l=o.constructor)!==null&&l!==void 0&&l.name?`instance of ${o.constructor.name}`:`type ${typeof o}`;return`Expected ${n} to be returned from the "${r}" function but got ${u}.`},TypeError);ib("ERR_MISSING_ARGS",(...n)=>{bP(n.length>0,"At least one arg needs to be specified");let r;const o=n.length;switch(n=(Array.isArray(n)?n:[n]).map(l=>`"${l}"`).join(" or "),o){case 1:r+=`The ${n[0]} argument`;break;case 2:r+=`The ${n[0]} and ${n[1]} arguments`;break;default:{const l=n.pop();r+=`The ${n.join(", ")}, and ${l} arguments`}break}return`${r} must be specified`},TypeError);ib("ERR_OUT_OF_RANGE",(n,r,o)=>{bP(r,'Missing "range" argument');let l;return Number.isInteger(o)&&Math.abs(o)>2**32?l=aXt(String(o)):typeof o=="bigint"?(l=String(o),(o>2n**32n||o<-(2n**32n))&&(l=aXt(l)),l+="n"):l=The(o),`The value of "${n}" is out of range. It must be ${r}. Received ${l}`},RangeError);ib("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);ib("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);ib("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);ib("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);ib("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);ib("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);ib("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);ib("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);ib("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);ib("ERR_STREAM_WRITE_AFTER_END","write after end",Error);ib("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var L0={AbortError:K5r,aggregateTwoErrors:cXt(z5r),hideStackFrames:cXt,codes:Yge};const{ArrayIsArray:cVe,ArrayPrototypeIncludes:Qun,ArrayPrototypeJoin:Zun,ArrayPrototypeMap:q5r,NumberIsInteger:uVe,NumberIsNaN:X5r,NumberMAX_SAFE_INTEGER:J5r,NumberMIN_SAFE_INTEGER:Y5r,NumberParseInt:Q5r,ObjectPrototypeHasOwnProperty:Z5r,RegExpPrototypeExec:efn,String:e8r,StringPrototypeToUpperCase:t8r,StringPrototypeTrim:n8r}=Vf,{hideStackFrames:kv,codes:{ERR_SOCKET_BAD_PORT:r8r,ERR_INVALID_ARG_TYPE:tg,ERR_INVALID_ARG_VALUE:Mj,ERR_OUT_OF_RANGE:LP,ERR_UNKNOWN_SIGNAL:uXt}}=L0,{normalizeEncoding:i8r}=w1,{isAsyncFunction:o8r,isArrayBufferView:s8r}=w1.types,fXt={};function l8r(n){return n===(n|0)}function a8r(n){return n===n>>>0}const c8r=/^[0-7]+$/,u8r="must be a 32-bit unsigned integer or an octal string";function f8r(n,r,o){if(typeof n>"u"&&(n=o),typeof n=="string"){if(efn(c8r,n)===null)throw new Mj(r,n,u8r);n=Q5r(n,8)}return tfn(n,r),n}const d8r=kv((n,r,o=Y5r,l=J5r)=>{if(typeof n!="number")throw new tg(r,"number",n);if(!uVe(n))throw new LP(r,"an integer",n);if(nl)throw new LP(r,`>= ${o} && <= ${l}`,n)}),h8r=kv((n,r,o=-2147483648,l=2147483647)=>{if(typeof n!="number")throw new tg(r,"number",n);if(!uVe(n))throw new LP(r,"an integer",n);if(nl)throw new LP(r,`>= ${o} && <= ${l}`,n)}),tfn=kv((n,r,o=!1)=>{if(typeof n!="number")throw new tg(r,"number",n);if(!uVe(n))throw new LP(r,"an integer",n);const l=o?1:0,u=4294967295;if(nu)throw new LP(r,`>= ${l} && <= ${u}`,n)});function fVe(n,r){if(typeof n!="string")throw new tg(r,"string",n)}function p8r(n,r,o=void 0,l){if(typeof n!="number")throw new tg(r,"number",n);if(o!=null&&nl||(o!=null||l!=null)&&X5r(n))throw new LP(r,`${o!=null?`>= ${o}`:""}${o!=null&&l!=null?" && ":""}${l!=null?`<= ${l}`:""}`,n)}const b8r=kv((n,r,o)=>{if(!Qun(o,n)){const u="must be one of: "+Zun(q5r(o,d=>typeof d=="string"?`'${d}'`:e8r(d)),", ");throw new Mj(r,n,u)}});function nfn(n,r){if(typeof n!="boolean")throw new tg(r,"boolean",n)}function BDe(n,r,o){return n==null||!Z5r(n,r)?o:n[r]}const g8r=kv((n,r,o=null)=>{const l=BDe(o,"allowArray",!1),u=BDe(o,"allowFunction",!1);if(!BDe(o,"nullable",!1)&&n===null||!l&&cVe(n)||typeof n!="object"&&(!u||typeof n!="function"))throw new tg(r,"Object",n)}),w8r=kv((n,r)=>{if(n!=null&&typeof n!="object"&&typeof n!="function")throw new tg(r,"a dictionary",n)}),Qge=kv((n,r,o=0)=>{if(!cVe(n))throw new tg(r,"Array",n);if(n.length{if(!s8r(n))throw new tg(r,["Buffer","TypedArray","DataView"],n)});function E8r(n,r){const o=i8r(r),l=n.length;if(o==="hex"&&l%2!==0)throw new Mj("encoding",r,`is invalid for data of length ${l}`)}function k8r(n,r="Port",o=!0){if(typeof n!="number"&&typeof n!="string"||typeof n=="string"&&n8r(n).length===0||+n!==+n>>>0||n>65535||n===0&&!o)throw new r8r(r,n,o);return n|0}const rfn=kv((n,r)=>{if(n!==void 0&&(n===null||typeof n!="object"||!("aborted"in n)))throw new tg(r,"AbortSignal",n)}),R8r=kv((n,r)=>{if(typeof n!="function")throw new tg(r,"Function",n)}),x8r=kv((n,r)=>{if(typeof n!="function"||o8r(n))throw new tg(r,"Function",n)}),C8r=kv((n,r)=>{if(n!==void 0)throw new tg(r,"undefined",n)});function A8r(n,r,o){if(!Qun(o,n))throw new tg(r,`('${Zun(o,"|")}')`,n)}const T8r=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function dXt(n,r){if(typeof n>"u"||!efn(T8r,n))throw new Mj(r,n,'must be an array or string of format "; rel=preload; as=style"')}function $8r(n){if(typeof n=="string")return dXt(n,"hints"),n;if(cVe(n)){const r=n.length;let o="";if(r===0)return o;for(let l=0;l; rel=preload; as=style"')}var BJ={isInt32:l8r,isUint32:a8r,parseFileMode:f8r,validateArray:Qge,validateStringArray:m8r,validateBooleanArray:y8r,validateAbortSignalArray:v8r,validateBoolean:nfn,validateBuffer:S8r,validateDictionary:w8r,validateEncoding:E8r,validateFunction:R8r,validateInt32:h8r,validateInteger:d8r,validateNumber:p8r,validateObject:g8r,validateOneOf:b8r,validatePlainFunction:x8r,validatePort:k8r,validateSignalName:_8r,validateString:fVe,validateUint32:tfn,validateUndefined:C8r,validateUnion:A8r,validateAbortSignal:rfn,validateLinkHeaderValue:$8r},dVe={exports:{}};const{SymbolAsyncIterator:hXt,SymbolIterator:pXt,SymbolFor:RO}=Vf,ifn=RO("nodejs.stream.destroyed"),ofn=RO("nodejs.stream.errored"),$Be=RO("nodejs.stream.readable"),IBe=RO("nodejs.stream.writable"),sfn=RO("nodejs.stream.disturbed"),I8r=RO("nodejs.webstream.isClosedPromise"),P8r=RO("nodejs.webstream.controllerErrorFunction");function Zge(n,r=!1){var o;return!!(n&&typeof n.pipe=="function"&&typeof n.on=="function"&&(!r||typeof n.pause=="function"&&typeof n.resume=="function")&&(!n._writableState||((o=n._readableState)===null||o===void 0?void 0:o.readable)!==!1)&&(!n._writableState||n._readableState))}function e1e(n){var r;return!!(n&&typeof n.write=="function"&&typeof n.on=="function"&&(!n._readableState||((r=n._writableState)===null||r===void 0?void 0:r.writable)!==!1))}function O8r(n){return!!(n&&typeof n.pipe=="function"&&n._readableState&&typeof n.on=="function"&&typeof n.write=="function")}function xk(n){return n&&(n._readableState||n._writableState||typeof n.write=="function"&&typeof n.on=="function"||typeof n.pipe=="function"&&typeof n.on=="function")}function lfn(n){return!!(n&&!xk(n)&&typeof n.pipeThrough=="function"&&typeof n.getReader=="function"&&typeof n.cancel=="function")}function afn(n){return!!(n&&!xk(n)&&typeof n.getWriter=="function"&&typeof n.abort=="function")}function cfn(n){return!!(n&&!xk(n)&&typeof n.readable=="object"&&typeof n.writable=="object")}function N8r(n){return lfn(n)||afn(n)||cfn(n)}function M8r(n,r){return n==null?!1:r===!0?typeof n[hXt]=="function":r===!1?typeof n[pXt]=="function":typeof n[hXt]=="function"||typeof n[pXt]=="function"}function t1e(n){if(!xk(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!!(n.destroyed||n[ifn]||l!=null&&l.destroyed)}function ufn(n){if(!e1e(n))return null;if(n.writableEnded===!0)return!0;const r=n._writableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function D8r(n,r){if(!e1e(n))return null;if(n.writableFinished===!0)return!0;const o=n._writableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.finished)!="boolean"?null:!!(o.finished||r===!1&&o.ended===!0&&o.length===0)}function L8r(n){if(!Zge(n))return null;if(n.readableEnded===!0)return!0;const r=n._readableState;return!r||r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function ffn(n,r){if(!Zge(n))return null;const o=n._readableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.endEmitted)!="boolean"?null:!!(o.endEmitted||r===!1&&o.ended===!0&&o.length===0)}function dfn(n){return n&&n[$Be]!=null?n[$Be]:typeof(n==null?void 0:n.readable)!="boolean"?null:t1e(n)?!1:Zge(n)&&n.readable&&!ffn(n)}function hfn(n){return n&&n[IBe]!=null?n[IBe]:typeof(n==null?void 0:n.writable)!="boolean"?null:t1e(n)?!1:e1e(n)&&n.writable&&!ufn(n)}function j8r(n,r){return xk(n)?t1e(n)?!0:!((r==null?void 0:r.readable)!==!1&&dfn(n)||(r==null?void 0:r.writable)!==!1&&hfn(n)):null}function F8r(n){var r,o;return xk(n)?n.writableErrored?n.writableErrored:(r=(o=n._writableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function B8r(n){var r,o;return xk(n)?n.readableErrored?n.readableErrored:(r=(o=n._readableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function W8r(n){if(!xk(n))return null;if(typeof n.closed=="boolean")return n.closed;const r=n._writableState,o=n._readableState;return typeof(r==null?void 0:r.closed)=="boolean"||typeof(o==null?void 0:o.closed)=="boolean"?(r==null?void 0:r.closed)||(o==null?void 0:o.closed):typeof n._closed=="boolean"&&pfn(n)?n._closed:null}function pfn(n){return typeof n._closed=="boolean"&&typeof n._defaultKeepAlive=="boolean"&&typeof n._removedConnection=="boolean"&&typeof n._removedContLen=="boolean"}function bfn(n){return typeof n._sent100=="boolean"&&pfn(n)}function H8r(n){var r;return typeof n._consuming=="boolean"&&typeof n._dumped=="boolean"&&((r=n.req)===null||r===void 0?void 0:r.upgradeOrConnect)===void 0}function U8r(n){if(!xk(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!l&&bfn(n)||!!(l&&l.autoDestroy&&l.emitClose&&l.closed===!1)}function G8r(n){var r;return!!(n&&((r=n[sfn])!==null&&r!==void 0?r:n.readableDidRead||n.readableAborted))}function V8r(n){var r,o,l,u,d,h,w,v,y,E;return!!(n&&((r=(o=(l=(u=(d=(h=n[ofn])!==null&&h!==void 0?h:n.readableErrored)!==null&&d!==void 0?d:n.writableErrored)!==null&&u!==void 0?u:(w=n._readableState)===null||w===void 0?void 0:w.errorEmitted)!==null&&l!==void 0?l:(v=n._writableState)===null||v===void 0?void 0:v.errorEmitted)!==null&&o!==void 0?o:(y=n._readableState)===null||y===void 0?void 0:y.errored)!==null&&r!==void 0?r:!((E=n._writableState)===null||E===void 0)&&E.errored))}var Mx={isDestroyed:t1e,kIsDestroyed:ifn,isDisturbed:G8r,kIsDisturbed:sfn,isErrored:V8r,kIsErrored:ofn,isReadable:dfn,kIsReadable:$Be,kIsClosedPromise:I8r,kControllerErrorFunction:P8r,kIsWritable:IBe,isClosed:W8r,isDuplexNodeStream:O8r,isFinished:j8r,isIterable:M8r,isReadableNodeStream:Zge,isReadableStream:lfn,isReadableEnded:L8r,isReadableFinished:ffn,isReadableErrored:B8r,isNodeStream:xk,isWebStream:N8r,isWritable:hfn,isWritableNodeStream:e1e,isWritableStream:afn,isWritableEnded:ufn,isWritableFinished:D8r,isWritableErrored:F8r,isServerRequest:H8r,isServerResponse:bfn,willEmitClose:U8r,isTransformStream:cfn};const nT=ui,{AbortError:gfn,codes:z8r}=L0,{ERR_INVALID_ARG_TYPE:K8r,ERR_STREAM_PREMATURE_CLOSE:bXt}=z8r,{kEmptyObject:PBe,once:OBe}=w1,{validateAbortSignal:q8r,validateFunction:X8r,validateObject:J8r,validateBoolean:Y8r}=BJ,{Promise:Q8r,PromisePrototypeThen:Z8r,SymbolDispose:wfn}=Vf,{isClosed:ePr,isReadable:gXt,isReadableNodeStream:WDe,isReadableStream:tPr,isReadableFinished:wXt,isReadableErrored:mXt,isWritable:yXt,isWritableNodeStream:vXt,isWritableStream:nPr,isWritableFinished:_Xt,isWritableErrored:SXt,isNodeStream:rPr,willEmitClose:iPr,kIsClosedPromise:oPr}=Mx;let wL;function sPr(n){return n.setHeader&&typeof n.abort=="function"}const NBe=()=>{};function mfn(n,r,o){var l,u;if(arguments.length===2?(o=r,r=PBe):r==null?r=PBe:J8r(r,"options"),X8r(o,"callback"),q8r(r.signal,"options.signal"),o=OBe(o),tPr(n)||nPr(n))return lPr(n,r,o);if(!rPr(n))throw new K8r("stream",["ReadableStream","WritableStream","Stream"],n);const d=(l=r.readable)!==null&&l!==void 0?l:WDe(n),h=(u=r.writable)!==null&&u!==void 0?u:vXt(n),w=n._writableState,v=n._readableState,y=()=>{n.writable||C()};let E=iPr(n)&&WDe(n)===d&&vXt(n)===h,A=_Xt(n,!1);const C=()=>{A=!0,n.destroyed&&(E=!1),!(E&&(!n.readable||d))&&(!d||R)&&o.call(n)};let R=wXt(n,!1);const O=()=>{R=!0,n.destroyed&&(E=!1),!(E&&(!n.writable||h))&&(!h||A)&&o.call(n)},M=te=>{o.call(n,te)};let L=ePr(n);const H=()=>{L=!0;const te=SXt(n)||mXt(n);if(te&&typeof te!="boolean")return o.call(n,te);if(d&&!R&&WDe(n,!0)&&!wXt(n,!1))return o.call(n,new bXt);if(h&&!A&&!_Xt(n,!1))return o.call(n,new bXt);o.call(n)},G=()=>{L=!0;const te=SXt(n)||mXt(n);if(te&&typeof te!="boolean")return o.call(n,te);o.call(n)},j=()=>{n.req.on("finish",C)};sPr(n)?(n.on("complete",C),E||n.on("abort",H),n.req?j():n.on("request",j)):h&&!w&&(n.on("end",y),n.on("close",y)),!E&&typeof n.aborted=="boolean"&&n.on("aborted",H),n.on("end",O),n.on("finish",C),r.error!==!1&&n.on("error",M),n.on("close",H),L?nT.nextTick(H):w!=null&&w.errorEmitted||v!=null&&v.errorEmitted?E||nT.nextTick(G):(!d&&(!E||gXt(n))&&(A||yXt(n)===!1)||!h&&(!E||yXt(n))&&(R||gXt(n)===!1)||v&&n.req&&n.aborted)&&nT.nextTick(G);const Q=()=>{o=NBe,n.removeListener("aborted",H),n.removeListener("complete",C),n.removeListener("abort",H),n.removeListener("request",j),n.req&&n.req.removeListener("finish",C),n.removeListener("end",y),n.removeListener("close",y),n.removeListener("finish",C),n.removeListener("end",O),n.removeListener("error",M),n.removeListener("close",H)};if(r.signal&&!L){const te=()=>{const pe=o;Q(),pe.call(n,new gfn(void 0,{cause:r.signal.reason}))};if(r.signal.aborted)nT.nextTick(te);else{wL=wL||w1.addAbortListener;const pe=wL(r.signal,te),Le=o;o=OBe((...Ee)=>{pe[wfn](),Le.apply(n,Ee)})}}return Q}function lPr(n,r,o){let l=!1,u=NBe;if(r.signal)if(u=()=>{l=!0,o.call(n,new gfn(void 0,{cause:r.signal.reason}))},r.signal.aborted)nT.nextTick(u);else{wL=wL||w1.addAbortListener;const h=wL(r.signal,u),w=o;o=OBe((...v)=>{h[wfn](),w.apply(n,v)})}const d=(...h)=>{l||nT.nextTick(()=>o.apply(n,h))};return Z8r(n[oPr].promise,d,d),NBe}function aPr(n,r){var o;let l=!1;return r===null&&(r=PBe),(o=r)!==null&&o!==void 0&&o.cleanup&&(Y8r(r.cleanup,"cleanup"),l=r.cleanup),new Q8r((u,d)=>{const h=mfn(n,r,w=>{l&&h(),w?d(w):u()})})}dVe.exports=mfn;dVe.exports.finished=aPr;var qT=dVe.exports;const YE=ui,{aggregateTwoErrors:cPr,codes:{ERR_MULTIPLE_CALLBACK:uPr},AbortError:fPr}=L0,{Symbol:yfn}=Vf,{kIsDestroyed:dPr,isDestroyed:hPr,isFinished:pPr,isServerRequest:bPr}=Mx,vfn=yfn("kDestroy"),MBe=yfn("kConstruct");function _fn(n,r,o){n&&(n.stack,r&&!r.errored&&(r.errored=n),o&&!o.errored&&(o.errored=n))}function gPr(n,r){const o=this._readableState,l=this._writableState,u=l||o;return l!=null&&l.destroyed||o!=null&&o.destroyed?(typeof r=="function"&&r(),this):(_fn(n,l,o),l&&(l.destroyed=!0),o&&(o.destroyed=!0),u.constructed?EXt(this,n,r):this.once(vfn,function(d){EXt(this,cPr(d,n),r)}),this)}function EXt(n,r,o){let l=!1;function u(d){if(l)return;l=!0;const h=n._readableState,w=n._writableState;_fn(d,w,h),w&&(w.closed=!0),h&&(h.closed=!0),typeof o=="function"&&o(d),d?YE.nextTick(wPr,n,d):YE.nextTick(Sfn,n)}try{n._destroy(r||null,u)}catch(d){u(d)}}function wPr(n,r){DBe(n,r),Sfn(n)}function Sfn(n){const r=n._readableState,o=n._writableState;o&&(o.closeEmitted=!0),r&&(r.closeEmitted=!0),(o!=null&&o.emitClose||r!=null&&r.emitClose)&&n.emit("close")}function DBe(n,r){const o=n._readableState,l=n._writableState;l!=null&&l.errorEmitted||o!=null&&o.errorEmitted||(l&&(l.errorEmitted=!0),o&&(o.errorEmitted=!0),n.emit("error",r))}function mPr(){const n=this._readableState,r=this._writableState;n&&(n.constructed=!0,n.closed=!1,n.closeEmitted=!1,n.destroyed=!1,n.errored=null,n.errorEmitted=!1,n.reading=!1,n.ended=n.readable===!1,n.endEmitted=n.readable===!1),r&&(r.constructed=!0,r.destroyed=!1,r.closed=!1,r.closeEmitted=!1,r.errored=null,r.errorEmitted=!1,r.finalCalled=!1,r.prefinished=!1,r.ended=r.writable===!1,r.ending=r.writable===!1,r.finished=r.writable===!1)}function LBe(n,r,o){const l=n._readableState,u=n._writableState;if(u!=null&&u.destroyed||l!=null&&l.destroyed)return this;l!=null&&l.autoDestroy||u!=null&&u.autoDestroy?n.destroy(r):r&&(r.stack,u&&!u.errored&&(u.errored=r),l&&!l.errored&&(l.errored=r),o?YE.nextTick(DBe,n,r):DBe(n,r))}function yPr(n,r){if(typeof n._construct!="function")return;const o=n._readableState,l=n._writableState;o&&(o.constructed=!1),l&&(l.constructed=!1),n.once(MBe,r),!(n.listenerCount(MBe)>1)&&YE.nextTick(vPr,n)}function vPr(n){let r=!1;function o(l){if(r){LBe(n,l??new uPr);return}r=!0;const u=n._readableState,d=n._writableState,h=d||u;u&&(u.constructed=!0),d&&(d.constructed=!0),h.destroyed?n.emit(vfn,l):l?LBe(n,l,!0):YE.nextTick(_Pr,n)}try{n._construct(l=>{YE.nextTick(o,l)})}catch(l){YE.nextTick(o,l)}}function _Pr(n){n.emit(MBe)}function kXt(n){return(n==null?void 0:n.setHeader)&&typeof n.abort=="function"}function Efn(n){n.emit("close")}function SPr(n,r){n.emit("error",r),YE.nextTick(Efn,n)}function EPr(n,r){!n||hPr(n)||(!r&&!pPr(n)&&(r=new fPr),bPr(n)?(n.socket=null,n.destroy(r)):kXt(n)?n.abort():kXt(n.req)?n.req.abort():typeof n.destroy=="function"?n.destroy(r):typeof n.close=="function"?n.close():r?YE.nextTick(SPr,n,r):YE.nextTick(Efn,n),n.destroyed||(n[dPr]=!0))}var Dj={construct:yPr,destroyer:EPr,destroy:gPr,undestroy:mPr,errorOrDestroy:LBe};const{ArrayIsArray:kPr,ObjectSetPrototypeOf:kfn}=Vf,{EventEmitter:n1e}=Ns;function r1e(n){n1e.call(this,n)}kfn(r1e.prototype,n1e.prototype);kfn(r1e,n1e);r1e.prototype.pipe=function(n,r){const o=this;function l(E){n.writable&&n.write(E)===!1&&o.pause&&o.pause()}o.on("data",l);function u(){o.readable&&o.resume&&o.resume()}n.on("drain",u),!n._isStdio&&(!r||r.end!==!1)&&(o.on("end",h),o.on("close",w));let d=!1;function h(){d||(d=!0,n.end())}function w(){d||(d=!0,typeof n.destroy=="function"&&n.destroy())}function v(E){y(),n1e.listenerCount(this,"error")===0&&this.emit("error",E)}jBe(o,"error",v),jBe(n,"error",v);function y(){o.removeListener("data",l),n.removeListener("drain",u),o.removeListener("end",h),o.removeListener("close",w),o.removeListener("error",v),n.removeListener("error",v),o.removeListener("end",y),o.removeListener("close",y),n.removeListener("close",y)}return o.on("end",y),o.on("close",y),n.on("close",y),n.emit("pipe",o),n};function jBe(n,r,o){if(typeof n.prependListener=="function")return n.prependListener(r,o);!n._events||!n._events[r]?n.on(r,o):kPr(n._events[r])?n._events[r].unshift(o):n._events[r]=[o,n._events[r]]}var hVe={Stream:r1e,prependListener:jBe},Rfn={exports:{}};(function(n){const{SymbolDispose:r}=Vf,{AbortError:o,codes:l}=L0,{isNodeStream:u,isWebStream:d,kControllerErrorFunction:h}=Mx,w=qT,{ERR_INVALID_ARG_TYPE:v}=l;let y;const E=(A,C)=>{if(typeof A!="object"||!("aborted"in A))throw new v(C,"AbortSignal",A)};n.exports.addAbortSignal=function(C,R){if(E(C,"signal"),!u(R)&&!d(R))throw new v("stream",["ReadableStream","WritableStream","Stream"],R);return n.exports.addAbortSignalNoValidate(C,R)},n.exports.addAbortSignalNoValidate=function(A,C){if(typeof A!="object"||!("aborted"in A))return C;const R=u(C)?()=>{C.destroy(new o(void 0,{cause:A.reason}))}:()=>{C[h](new o(void 0,{cause:A.reason}))};if(A.aborted)R();else{y=y||w1.addAbortListener;const O=y(A,R);w(C,O[r])}return C}})(Rfn);var i1e=Rfn.exports;const{StringPrototypeSlice:RXt,SymbolIterator:RPr,TypedArrayPrototypeSet:afe,Uint8Array:xPr}=Vf,{Buffer:HDe}=Kr,{inspect:CPr}=w1;var APr=class{constructor(){this.head=null,this.tail=null,this.length=0}push(r){const o={data:r,next:null};this.length>0?this.tail.next=o:this.head=o,this.tail=o,++this.length}unshift(r){const o={data:r,next:this.head};this.length===0&&(this.tail=o),this.head=o,++this.length}shift(){if(this.length===0)return;const r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}clear(){this.head=this.tail=null,this.length=0}join(r){if(this.length===0)return"";let o=this.head,l=""+o.data;for(;(o=o.next)!==null;)l+=r+o.data;return l}concat(r){if(this.length===0)return HDe.alloc(0);const o=HDe.allocUnsafe(r>>>0);let l=this.head,u=0;for(;l;)afe(o,l.data,u),u+=l.data.length,l=l.next;return o}consume(r,o){const l=this.head.data;if(rd.length)o+=d,r-=d.length;else{r===d.length?(o+=d,++u,l.next?this.head=l.next:this.head=this.tail=null):(o+=RXt(d,0,r),this.head=l,l.data=RXt(d,r));break}++u}while((l=l.next)!==null);return this.length-=u,o}_getBuffer(r){const o=HDe.allocUnsafe(r),l=r;let u=this.head,d=0;do{const h=u.data;if(r>h.length)afe(o,h,l-r),r-=h.length;else{r===h.length?(afe(o,h,l-r),++d,u.next?this.head=u.next:this.head=this.tail=null):(afe(o,new xPr(h.buffer,h.byteOffset,r),l-r),this.head=u,u.data=h.slice(r));break}++d}while((u=u.next)!==null);return this.length-=d,o}[Symbol.for("nodejs.util.inspect.custom")](r,o){return CPr(this,{...o,depth:0,customInspect:!1})}};const{MathFloor:TPr,NumberIsInteger:$Pr}=Vf,{validateInteger:IPr}=BJ,{ERR_INVALID_ARG_VALUE:PPr}=L0.codes;let xfn=16*1024,Cfn=16;function OPr(n,r,o){return n.highWaterMark!=null?n.highWaterMark:r?n[o]:null}function Afn(n){return n?Cfn:xfn}function NPr(n,r){IPr(r,"value",0),n?Cfn=r:xfn=r}function MPr(n,r,o,l){const u=OPr(r,l,o);if(u!=null){if(!$Pr(u)||u<0){const d=l?`options.${o}`:"options.highWaterMark";throw new PPr(d,u)}return TPr(u)}return Afn(n.objectMode)}var o1e={getHighWaterMark:MPr,getDefaultHighWaterMark:Afn,setDefaultHighWaterMark:NPr};const xXt=ui,{PromisePrototypeThen:DPr,SymbolAsyncIterator:CXt,SymbolIterator:AXt}=Vf,{Buffer:LPr}=Kr,{ERR_INVALID_ARG_TYPE:jPr,ERR_STREAM_NULL_VALUES:FPr}=L0.codes;function BPr(n,r,o){let l;if(typeof r=="string"||r instanceof LPr)return new n({objectMode:!0,...o,read(){this.push(r),this.push(null)}});let u;if(r&&r[CXt])u=!0,l=r[CXt]();else if(r&&r[AXt])u=!1,l=r[AXt]();else throw new jPr("iterable",["Iterable"],r);const d=new n({objectMode:!0,highWaterMark:1,...o});let h=!1;d._read=function(){h||(h=!0,v())},d._destroy=function(y,E){DPr(w(y),()=>xXt.nextTick(E,y),A=>xXt.nextTick(E,A||y))};async function w(y){const E=y!=null,A=typeof l.throw=="function";if(E&&A){const{value:C,done:R}=await l.throw(y);if(await C,R)return}if(typeof l.return=="function"){const{value:C}=await l.return();await C}}async function v(){for(;;){try{const{value:y,done:E}=u?await l.next():l.next();if(E)d.push(null);else{const A=y&&typeof y.then=="function"?await y:y;if(A===null)throw h=!1,new FPr;if(d.push(A))continue;h=!1}}catch(y){d.destroy(y)}break}}return d}var Tfn=BPr,UDe,TXt;function s1e(){if(TXt)return UDe;TXt=1;const n=ui,{ArrayPrototypeIndexOf:r,NumberIsInteger:o,NumberIsNaN:l,NumberParseInt:u,ObjectDefineProperties:d,ObjectKeys:h,ObjectSetPrototypeOf:w,Promise:v,SafeSet:y,SymbolAsyncDispose:E,SymbolAsyncIterator:A,Symbol:C}=Vf;UDe=he,he.ReadableState=St;const{EventEmitter:R}=Ns,{Stream:O,prependListener:M}=hVe,{Buffer:L}=Kr,{addAbortSignal:H}=i1e,G=qT;let j=w1.debuglog("stream",S=>{j=S});const Q=APr,te=Dj,{getHighWaterMark:pe,getDefaultHighWaterMark:Le}=o1e,{aggregateTwoErrors:Ee,codes:{ERR_INVALID_ARG_TYPE:le,ERR_METHOD_NOT_IMPLEMENTED:xe,ERR_OUT_OF_RANGE:be,ERR_STREAM_PUSH_AFTER_EOF:ae,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:F},AbortError:me}=L0,{validateObject:ye}=BJ,we=C("kPaused"),{StringDecoder:Be}=rm,He=Tfn;w(he.prototype,O.prototype),w(he,O);const Ue=()=>{},{errorOrDestroy:Ge}=te,Me=1,vt=2,re=4,Te=8,ct=16,at=32,Ye=64,mt=128,jt=256,rn=512,Pe=1024,Oe=2048,T=4096,$=8192,B=16384,K=32768,q=65536,ke=1<<17,Re=1<<18;function Ie(S){return{enumerable:!1,get(){return(this.state&S)!==0},set(x){x?this.state|=S:this.state&=~S}}}d(St.prototype,{objectMode:Ie(Me),ended:Ie(vt),endEmitted:Ie(re),reading:Ie(Te),constructed:Ie(ct),sync:Ie(at),needReadable:Ie(Ye),emittedReadable:Ie(mt),readableListening:Ie(jt),resumeScheduled:Ie(rn),errorEmitted:Ie(Pe),emitClose:Ie(Oe),autoDestroy:Ie(T),destroyed:Ie($),closed:Ie(B),closeEmitted:Ie(K),multiAwaitDrain:Ie(q),readingMore:Ie(ke),dataEmitted:Ie(Re)});function St(S,x,Y){typeof Y!="boolean"&&(Y=x instanceof mx()),this.state=Oe|T|ct|at,S&&S.objectMode&&(this.state|=Me),Y&&S&&S.readableObjectMode&&(this.state|=Me),this.highWaterMark=S?pe(this,S,"readableHighWaterMark",Y):Le(!1),this.buffer=new Q,this.length=0,this.pipes=[],this.flowing=null,this[we]=null,S&&S.emitClose===!1&&(this.state&=~Oe),S&&S.autoDestroy===!1&&(this.state&=~T),this.errored=null,this.defaultEncoding=S&&S.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,S&&S.encoding&&(this.decoder=new Be(S.encoding),this.encoding=S.encoding)}function he(S){if(!(this instanceof he))return new he(S);const x=this instanceof mx();this._readableState=new St(S,this,x),S&&(typeof S.read=="function"&&(this._read=S.read),typeof S.destroy=="function"&&(this._destroy=S.destroy),typeof S.construct=="function"&&(this._construct=S.construct),S.signal&&!x&&H(S.signal,this)),O.call(this,S),te.construct(this,()=>{this._readableState.needReadable&&ht(this,this._readableState)})}he.prototype.destroy=te.destroy,he.prototype._undestroy=te.undestroy,he.prototype._destroy=function(S,x){x(S)},he.prototype[R.captureRejectionSymbol]=function(S){this.destroy(S)},he.prototype[E]=function(){let S;return this.destroyed||(S=this.readableEnded?null:new me,this.destroy(S)),new v((x,Y)=>G(this,J=>J&&J!==S?Y(J):x(null)))},he.prototype.push=function(S,x){return zt(this,S,x,!1)},he.prototype.unshift=function(S,x){return zt(this,S,x,!0)};function zt(S,x,Y,J){j("readableAddChunk",x);const ue=S._readableState;let Yt;if(ue.state&Me||(typeof x=="string"?(Y=Y||ue.defaultEncoding,ue.encoding!==Y&&(J&&ue.encoding?x=L.from(x,Y).toString(ue.encoding):(x=L.from(x,Y),Y=""))):x instanceof L?Y="":O._isUint8Array(x)?(x=O._uint8ArrayToBuffer(x),Y=""):x!=null&&(Yt=new le("chunk",["string","Buffer","Uint8Array"],x))),Yt)Ge(S,Yt);else if(x===null)ue.state&=~Te,ce(S,ue);else if(ue.state&Me||x&&x.length>0)if(J)if(ue.state&re)Ge(S,new F);else{if(ue.destroyed||ue.errored)return!1;Qt(S,ue,x,!0)}else if(ue.ended)Ge(S,new ae);else{if(ue.destroyed||ue.errored)return!1;ue.state&=~Te,ue.decoder&&!Y?(x=ue.decoder.write(x),ue.objectMode||x.length!==0?Qt(S,ue,x,!1):ht(S,ue)):Qt(S,ue,x,!1)}else J||(ue.state&=~Te,ht(S,ue));return!ue.ended&&(ue.length0?(x.state&q?x.awaitDrainWriters.clear():x.awaitDrainWriters=null,x.dataEmitted=!0,S.emit("data",Y)):(x.length+=x.objectMode?1:Y.length,J?x.buffer.unshift(Y):x.buffer.push(Y),x.state&Ye&&de(S)),ht(S,x)}he.prototype.isPaused=function(){const S=this._readableState;return S[we]===!0||S.flowing===!1},he.prototype.setEncoding=function(S){const x=new Be(S);this._readableState.decoder=x,this._readableState.encoding=this._readableState.decoder.encoding;const Y=this._readableState.buffer;let J="";for(const ue of Y)J+=x.write(ue);return Y.clear(),J!==""&&Y.push(J),this._readableState.length=J.length,this};const $n=1073741824;function Gn(S){if(S>$n)throw new be("size","<= 1GiB",S);return S--,S|=S>>>1,S|=S>>>2,S|=S>>>4,S|=S>>>8,S|=S>>>16,S++,S}function $e(S,x){return S<=0||x.length===0&&x.ended?0:x.state&Me?1:l(S)?x.flowing&&x.length?x.buffer.first().length:x.length:S<=x.length?S:x.ended?x.length:0}he.prototype.read=function(S){j("read",S),S===void 0?S=NaN:o(S)||(S=u(S,10));const x=this._readableState,Y=S;if(S>x.highWaterMark&&(x.highWaterMark=Gn(S)),S!==0&&(x.state&=~mt),S===0&&x.needReadable&&((x.highWaterMark!==0?x.length>=x.highWaterMark:x.length>0)||x.ended))return j("read: emitReadable",x.length,x.ended),x.length===0&&x.ended?co(this):de(this),null;if(S=$e(S,x),S===0&&x.ended)return x.length===0&&co(this),null;let J=(x.state&Ye)!==0;if(j("need readable",J),(x.length===0||x.length-S0?ue=Al(S,x):ue=null,ue===null?(x.needReadable=x.length<=x.highWaterMark,S=0):(x.length-=S,x.multiAwaitDrain?x.awaitDrainWriters.clear():x.awaitDrainWriters=null),x.length===0&&(x.ended||(x.needReadable=!0),Y!==S&&x.ended&&co(this)),ue!==null&&!x.errorEmitted&&!x.closeEmitted&&(x.dataEmitted=!0,this.emit("data",ue)),ue};function ce(S,x){if(j("onEofChunk"),!x.ended){if(x.decoder){const Y=x.decoder.end();Y&&Y.length&&(x.buffer.push(Y),x.length+=x.objectMode?1:Y.length)}x.ended=!0,x.sync?de(S):(x.needReadable=!1,x.emittedReadable=!0,et(S))}}function de(S){const x=S._readableState;j("emitReadable",x.needReadable,x.emittedReadable),x.needReadable=!1,x.emittedReadable||(j("emitReadable",x.flowing),x.emittedReadable=!0,n.nextTick(et,S))}function et(S){const x=S._readableState;j("emitReadable_",x.destroyed,x.length,x.ended),!x.destroyed&&!x.errored&&(x.length||x.ended)&&(S.emit("readable"),x.emittedReadable=!1),x.needReadable=!x.flowing&&!x.ended&&x.length<=x.highWaterMark,xi(S)}function ht(S,x){!x.readingMore&&x.constructed&&(x.readingMore=!0,n.nextTick(Jt,S,x))}function Jt(S,x){for(;!x.reading&&!x.ended&&(x.length1&&J.pipes.includes(S)&&(j("false write response, pause",J.awaitDrainWriters.size),J.awaitDrainWriters.add(S)),Y.pause()),Fr||(Fr=Zt(Y,S),S.on("drain",Fr))}Y.on("data",ml);function ml(jr){j("ondata");const lr=S.write(jr);j("dest.write",lr),lr===!1&&Rs()}function gs(jr){if(j("onerror",jr),wi(),S.removeListener("error",gs),S.listenerCount("error")===0){const lr=S._writableState||S._readableState;lr&&!lr.errorEmitted?Ge(S,jr):S.emit("error",jr)}}M(S,"error",gs);function as(){S.removeListener("finish",ws),wi()}S.once("close",as);function ws(){j("onfinish"),S.removeListener("close",as),wi()}S.once("finish",ws);function wi(){j("unpipe"),Y.unpipe(S)}return S.emit("pipe",Y),S.writableNeedDrain===!0?Rs():J.flowing||(j("pipe resume"),Y.resume()),S};function Zt(S,x){return function(){const J=S._readableState;J.awaitDrainWriters===x?(j("pipeOnDrain",1),J.awaitDrainWriters=null):J.multiAwaitDrain&&(j("pipeOnDrain",J.awaitDrainWriters.size),J.awaitDrainWriters.delete(x)),(!J.awaitDrainWriters||J.awaitDrainWriters.size===0)&&S.listenerCount("data")&&S.resume()}}he.prototype.unpipe=function(S){const x=this._readableState,Y={hasUnpiped:!1};if(x.pipes.length===0)return this;if(!S){const ue=x.pipes;x.pipes=[],this.pause();for(let Yt=0;Yt0,J.flowing!==!1&&this.resume()):S==="readable"&&!J.endEmitted&&!J.readableListening&&(J.readableListening=J.needReadable=!0,J.flowing=!1,J.emittedReadable=!1,j("on readable",J.length,J.reading),J.length?de(this):J.reading||n.nextTick(ao,this)),Y},he.prototype.addListener=he.prototype.on,he.prototype.removeListener=function(S,x){const Y=O.prototype.removeListener.call(this,S,x);return S==="readable"&&n.nextTick(qr,this),Y},he.prototype.off=he.prototype.removeListener,he.prototype.removeAllListeners=function(S){const x=O.prototype.removeAllListeners.apply(this,arguments);return(S==="readable"||S===void 0)&&n.nextTick(qr,this),x};function qr(S){const x=S._readableState;x.readableListening=S.listenerCount("readable")>0,x.resumeScheduled&&x[we]===!1?x.flowing=!0:S.listenerCount("data")>0?S.resume():x.readableListening||(x.flowing=null)}function ao(S){j("readable nexttick read 0"),S.read(0)}he.prototype.resume=function(){const S=this._readableState;return S.flowing||(j("resume"),S.flowing=!S.readableListening,ki(this,S)),S[we]=!1,this};function ki(S,x){x.resumeScheduled||(x.resumeScheduled=!0,n.nextTick(Ri,S,x))}function Ri(S,x){j("resume",x.reading),x.reading||S.read(0),x.resumeScheduled=!1,S.emit("resume"),xi(S),x.flowing&&!x.reading&&S.read(0)}he.prototype.pause=function(){return j("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(j("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[we]=!0,this};function xi(S){const x=S._readableState;for(j("flow",x.flowing);x.flowing&&S.read()!==null;);}he.prototype.wrap=function(S){let x=!1;S.on("data",J=>{!this.push(J)&&S.pause&&(x=!0,S.pause())}),S.on("end",()=>{this.push(null)}),S.on("error",J=>{Ge(this,J)}),S.on("close",()=>{this.destroy()}),S.on("destroy",()=>{this.destroy()}),this._read=()=>{x&&S.resume&&(x=!1,S.resume())};const Y=h(S);for(let J=1;J{ue=An?Ee(ue,An):null,Y(),Y=Ue});try{for(;;){const An=S.destroyed?null:S.read();if(An!==null)yield An;else{if(ue)throw ue;if(ue===null)return;await new v(J)}}}catch(An){throw ue=Ee(ue,An),ue}finally{(ue||(x==null?void 0:x.destroyOnReturn)!==!1)&&(ue===void 0||S._readableState.autoDestroy)?te.destroyer(S,null):(S.off("readable",J),Yt())}}d(he.prototype,{readable:{__proto__:null,get(){const S=this._readableState;return!!S&&S.readable!==!1&&!S.destroyed&&!S.errorEmitted&&!S.endEmitted},set(S){this._readableState&&(this._readableState.readable=!!S)}},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(S){this._readableState&&(this._readableState.flowing=S)}},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(S){this._readableState&&(this._readableState.destroyed=S)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),d(St.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[we]!==!1},set(S){this[we]=!!S}}}),he._fromList=Al;function Al(S,x){if(x.length===0)return null;let Y;return x.objectMode?Y=x.buffer.shift():!S||S>=x.length?(x.decoder?Y=x.buffer.join(""):x.buffer.length===1?Y=x.buffer.first():Y=x.buffer.concat(x.length),x.buffer.clear()):Y=x.buffer.consume(S,x.decoder),Y}function co(S){const x=S._readableState;j("endReadable",x.endEmitted),x.endEmitted||(x.ended=!0,n.nextTick(Zc,x,S))}function Zc(S,x){if(j("endReadableNT",S.endEmitted,S.length),!S.errored&&!S.closeEmitted&&!S.endEmitted&&S.length===0){if(S.endEmitted=!0,x.emit("end"),x.writable&&x.allowHalfOpen===!1)n.nextTick(bu,x);else if(S.autoDestroy){const Y=x._writableState;(!Y||Y.autoDestroy&&(Y.finished||Y.writable===!1))&&x.destroy()}}}function bu(S){S.writable&&!S.writableEnded&&!S.destroyed&&S.end()}he.from=function(S,x){return He(he,S,x)};let So;function ql(){return So===void 0&&(So={}),So}return he.fromWeb=function(S,x){return ql().newStreamReadableFromReadableStream(S,x)},he.toWeb=function(S,x){return ql().newReadableStreamFromStreamReadable(S,x)},he.wrap=function(S,x){var Y,J;return new he({objectMode:(Y=(J=S.readableObjectMode)!==null&&J!==void 0?J:S.objectMode)!==null&&Y!==void 0?Y:!0,...x,destroy(ue,Yt){te.destroyer(S,ue),Yt(ue)}}).wrap(S)},UDe}var GDe,$Xt;function pVe(){if($Xt)return GDe;$Xt=1;const n=ui,{ArrayPrototypeSlice:r,Error:o,FunctionPrototypeSymbolHasInstance:l,ObjectDefineProperty:u,ObjectDefineProperties:d,ObjectSetPrototypeOf:h,StringPrototypeToLowerCase:w,Symbol:v,SymbolHasInstance:y}=Vf;GDe=ye,ye.WritableState=F;const{EventEmitter:E}=Ns,A=hVe.Stream,{Buffer:C}=Kr,R=Dj,{addAbortSignal:O}=i1e,{getHighWaterMark:M,getDefaultHighWaterMark:L}=o1e,{ERR_INVALID_ARG_TYPE:H,ERR_METHOD_NOT_IMPLEMENTED:G,ERR_MULTIPLE_CALLBACK:j,ERR_STREAM_CANNOT_PIPE:Q,ERR_STREAM_DESTROYED:te,ERR_STREAM_ALREADY_FINISHED:pe,ERR_STREAM_NULL_VALUES:Le,ERR_STREAM_WRITE_AFTER_END:Ee,ERR_UNKNOWN_ENCODING:le}=L0.codes,{errorOrDestroy:xe}=R;h(ye.prototype,A.prototype),h(ye,A);function be(){}const ae=v("kOnFinished");function F(T,$,B){typeof B!="boolean"&&(B=$ instanceof mx()),this.objectMode=!!(T&&T.objectMode),B&&(this.objectMode=this.objectMode||!!(T&&T.writableObjectMode)),this.highWaterMark=T?M(this,T,"writableHighWaterMark",B):L(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const K=!!(T&&T.decodeStrings===!1);this.decodeStrings=!K,this.defaultEncoding=T&&T.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=Ge.bind(void 0,$),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,me(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[ae]=[]}function me(T){T.buffered=[],T.bufferedIndex=0,T.allBuffers=!0,T.allNoop=!0}F.prototype.getBuffer=function(){return r(this.buffered,this.bufferedIndex)},u(F.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function ye(T){const $=this instanceof mx();if(!$&&!l(ye,this))return new ye(T);this._writableState=new F(T,this,$),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&&O(T.signal,this)),A.call(this,T),R.construct(this,()=>{const B=this._writableState;B.writing||Te(this,B),mt(this,B)})}u(ye,y,{__proto__:null,value:function(T){return l(this,T)?!0:this!==ye?!1:T&&T._writableState instanceof F}}),ye.prototype.pipe=function(){xe(this,new Q)};function we(T,$,B,K){const q=T._writableState;if(typeof B=="function")K=B,B=q.defaultEncoding;else{if(!B)B=q.defaultEncoding;else if(B!=="buffer"&&!C.isEncoding(B))throw new le(B);typeof K!="function"&&(K=be)}if($===null)throw new Le;if(!q.objectMode)if(typeof $=="string")q.decodeStrings!==!1&&($=C.from($,B),B="buffer");else if($ instanceof C)B="buffer";else if(A._isUint8Array($))$=A._uint8ArrayToBuffer($),B="buffer";else throw new H("chunk",["string","Buffer","Uint8Array"],$);let ke;return q.ending?ke=new Ee:q.destroyed&&(ke=new te("write")),ke?(n.nextTick(K,ke),xe(T,ke,!0),ke):(q.pendingcb++,Be(T,q,$,B,K))}ye.prototype.write=function(T,$,B){return we(this,T,$,B)===!0},ye.prototype.cork=function(){this._writableState.corked++},ye.prototype.uncork=function(){const T=this._writableState;T.corked&&(T.corked--,T.writing||Te(this,T))},ye.prototype.setDefaultEncoding=function($){if(typeof $=="string"&&($=w($)),!C.isEncoding($))throw new le($);return this._writableState.defaultEncoding=$,this};function Be(T,$,B,K,q){const ke=$.objectMode?1:B.length;$.length+=ke;const Re=$.length<$.highWaterMark;return Re||($.needDrain=!0),$.writing||$.corked||$.errored||!$.constructed?($.buffered.push({chunk:B,encoding:K,callback:q}),$.allBuffers&&K!=="buffer"&&($.allBuffers=!1),$.allNoop&&q!==be&&($.allNoop=!1)):($.writelen=ke,$.writecb=q,$.writing=!0,$.sync=!0,T._write(B,K,$.onwrite),$.sync=!1),Re&&!$.errored&&!$.destroyed}function He(T,$,B,K,q,ke,Re){$.writelen=K,$.writecb=Re,$.writing=!0,$.sync=!0,$.destroyed?$.onwrite(new te("write")):B?T._writev(q,$.onwrite):T._write(q,ke,$.onwrite),$.sync=!1}function Ue(T,$,B,K){--$.pendingcb,K(B),re($),xe(T,B)}function Ge(T,$){const B=T._writableState,K=B.sync,q=B.writecb;if(typeof q!="function"){xe(T,new j);return}B.writing=!1,B.writecb=null,B.length-=B.writelen,B.writelen=0,$?($.stack,B.errored||(B.errored=$),T._readableState&&!T._readableState.errored&&(T._readableState.errored=$),K?n.nextTick(Ue,T,B,$,q):Ue(T,B,$,q)):(B.buffered.length>B.bufferedIndex&&Te(T,B),K?B.afterWriteTickInfo!==null&&B.afterWriteTickInfo.cb===q?B.afterWriteTickInfo.count++:(B.afterWriteTickInfo={count:1,cb:q,stream:T,state:B},n.nextTick(Me,B.afterWriteTickInfo)):vt(T,B,1,q))}function Me({stream:T,state:$,count:B,cb:K}){return $.afterWriteTickInfo=null,vt(T,$,B,K)}function vt(T,$,B,K){for(!$.ending&&!T.destroyed&&$.length===0&&$.needDrain&&($.needDrain=!1,T.emit("drain"));B-- >0;)$.pendingcb--,K();$.destroyed&&re($),mt(T,$)}function re(T){if(T.writing)return;for(let q=T.bufferedIndex;q1&&T._writev){$.pendingcb-=ke-1;const Ie=$.allNoop?be:he=>{for(let zt=Re;zt256?(B.splice(0,Re),$.bufferedIndex=0):$.bufferedIndex=Re}$.bufferProcessing=!1}ye.prototype._write=function(T,$,B){if(this._writev)this._writev([{chunk:T,encoding:$}],B);else throw new G("_write()")},ye.prototype._writev=null,ye.prototype.end=function(T,$,B){const K=this._writableState;typeof T=="function"?(B=T,T=null,$=null):typeof $=="function"&&(B=$,$=null);let q;if(T!=null){const ke=we(this,T,$);ke instanceof o&&(q=ke)}return K.corked&&(K.corked=1,this.uncork()),q||(!K.errored&&!K.ending?(K.ending=!0,mt(this,K,!0),K.ended=!0):K.finished?q=new pe("end"):K.destroyed&&(q=new te("end"))),typeof B=="function"&&(q||K.finished?n.nextTick(B,q):K[ae].push(B)),this};function ct(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 at(T,$){let B=!1;function K(q){if(B){xe(T,q??j());return}if(B=!0,$.pendingcb--,q){const ke=$[ae].splice(0);for(let Re=0;Re{ct(q)?jt(K,q):q.pendingcb--},T,$)):ct($)&&($.pendingcb++,jt(T,$))))}function jt(T,$){$.pendingcb--,$.finished=!0;const B=$[ae].splice(0);for(let K=0;K{if(re!=null)throw new O("nully","body",re)},re=>{M(Me,re)});return Me=new le({objectMode:!0,readable:!1,write:Be,final(re){He(async()=>{try{await vt,n.nextTick(re,null)}catch(Te){n.nextTick(re,Te)}})},destroy:Ue})}throw new O("Iterable, AsyncIterable or AsyncFunction",me,we)}if(pe(F))return ae(F.arrayBuffer());if(u(F))return Q(le,F,{objectMode:!0,writable:!1});if(y(F==null?void 0:F.readable)&&E(F==null?void 0:F.writable))return le.fromWeb(F);if(typeof(F==null?void 0:F.writable)=="object"||typeof(F==null?void 0:F.readable)=="object"){const we=F!=null&&F.readable?h(F==null?void 0:F.readable)?F==null?void 0:F.readable:ae(F.readable):void 0,Be=F!=null&&F.writable?w(F==null?void 0:F.writable)?F==null?void 0:F.writable:ae(F.writable):void 0;return be({readable:we,writable:Be})}const ye=F==null?void 0:F.then;if(typeof ye=="function"){let we;return Ee(ye,F,Be=>{Be!=null&&we.push(Be),we.push(null)},Be=>{M(we,Be)}),we=new le({objectMode:!0,writable:!1,read(){}})}throw new R(me,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],F)};function xe(ae){let{promise:F,resolve:me}=j();const ye=new Le,we=ye.signal;return{value:ae(async function*(){for(;;){const He=F;F=null;const{chunk:Ue,done:Ge,cb:Me}=await He;if(n.nextTick(Me),Ge)return;if(we.aborted)throw new C(void 0,{cause:we.reason});({promise:F,resolve:me}=j()),yield Ue}}(),{signal:we}),write(He,Ue,Ge){const Me=me;me=null,Me({chunk:He,done:!1,cb:Ge})},final(He){const Ue=me;me=null,Ue({done:!0,cb:He})},destroy(He,Ue){ye.abort(),Ue(He)}}}function be(ae){const F=ae.readable&&typeof ae.readable.read!="function"?H.wrap(ae.readable):ae.readable,me=ae.writable;let ye=!!o(F),we=!!l(me),Be,He,Ue,Ge,Me;function vt(re){const Te=Ge;Ge=null,Te?Te(re):re&&Me.destroy(re)}return Me=new le({readableObjectMode:!!(F!=null&&F.readableObjectMode),writableObjectMode:!!(me!=null&&me.writableObjectMode),readable:ye,writable:we}),we&&(A(me,re=>{we=!1,re&&M(F,re),vt(re)}),Me._write=function(re,Te,ct){me.write(re,Te)?ct():Be=ct},Me._final=function(re){me.end(),He=re},me.on("drain",function(){if(Be){const re=Be;Be=null,re()}}),me.on("finish",function(){if(He){const re=He;He=null,re()}})),ye&&(A(F,re=>{ye=!1,re&&M(F,re),vt(re)}),F.on("readable",function(){if(Ue){const re=Ue;Ue=null,re()}}),F.on("end",function(){Me.push(null)}),Me._read=function(){for(;;){const re=F.read();if(re===null){Ue=Me._read;return}if(!Me.push(re))return}}),Me._destroy=function(re,Te){!re&&Ge!==null&&(re=new C),Ue=null,Be=null,He=null,Ge===null?Te(re):(Ge=Te,M(me,re),M(F,re))},Me}return VDe}var zDe,PXt;function mx(){if(PXt)return zDe;PXt=1;const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:o,ObjectSetPrototypeOf:l}=Vf;zDe=h;const u=s1e(),d=pVe();l(h.prototype,u.prototype),l(h,u);{const E=o(d.prototype);for(let A=0;A{if(r){n?n(r):this.destroy(r);return}o!=null&&this.push(o),this.push(null),n&&n()}):(this.push(null),n&&n())}function VPr(){this._final!==FBe&&FBe.call(this)}yx.prototype._final=FBe;yx.prototype._transform=function(n,r,o){throw new UPr("_transform()")};yx.prototype._write=function(n,r,o){const l=this._readableState,u=this._writableState,d=l.length;this._transform(n,r,(h,w)=>{if(h){o(h);return}w!=null&&this.push(w),u.ended||d===l.length||l.length{l=!0});const u=$he(n,{readable:r,writable:o},d=>{l=!d});return{destroy:d=>{l||(l=!0,YPr.destroyer(n,d||new eOr("pipe")))},cleanup:u}}function aOr(n){return rOr(n[n.length-1],"streams[stream.length - 1]"),n.pop()}function ZDe(n){if(N8(n))return n;if(hde(n))return cOr(n);throw new BBe("val",["Readable","Iterable","AsyncIterable"],n)}async function*cOr(n){YDe||(YDe=s1e()),yield*YDe.prototype[qPr].call(n)}async function cfe(n,r,o,{end:l}){let u,d=null;const h=y=>{if(y&&(u=y),d){const E=d;d=null,E()}},w=()=>new KPr((y,E)=>{u?E(u):d=()=>{u?E(u):y()}});r.on("drain",h);const v=$he(r,{readable:!1},h);try{r.writableNeedDrain&&await w();for await(const y of n)r.write(y)||await w();l&&(r.end(),await w()),o()}catch(y){o(u!==y?QPr(u,y):y)}finally{v(),r.off("drain",h)}}async function eLe(n,r,o,{end:l}){MD(r)&&(r=r.writable);const u=r.getWriter();try{for await(const d of n)await u.ready,u.write(d).catch(()=>{});await u.ready,l&&await u.close(),o()}catch(d){try{await u.abort(d),o(d)}catch(h){o(h)}}}function uOr(...n){return Nfn(n,JPr(aOr(n)))}function Nfn(n,r,o){if(n.length===1&&zPr(n[0])&&(n=n[0]),n.length<2)throw new ZPr("streams");const l=new lOr,u=l.signal,d=o==null?void 0:o.signal,h=[];iOr(d,"options.signal");function w(){O(new nOr)}QDe=QDe||w1.addAbortListener;let v;d&&(v=QDe(d,w));let y,E;const A=[];let C=0;function R(G){O(G,--C===0)}function O(G,j){var Q;if(G&&(!y||y.code==="ERR_STREAM_PREMATURE_CLOSE")&&(y=G),!(!y&&!j)){for(;A.length;)A.shift()(y);(Q=v)===null||Q===void 0||Q[XPr](),l.abort(),j&&(y||h.forEach(te=>te()),UK.nextTick(r,y,E))}}let M;for(let G=0;G0,pe=Q||(o==null?void 0:o.end)!==!1,Le=G===n.length-1;if(NXt(j)){let Ee=function(le){le&&le.name!=="AbortError"&&le.code!=="ERR_STREAM_PREMATURE_CLOSE"&&R(le)};if(pe){const{destroy:le,cleanup:xe}=MXt(j,Q,te);A.push(le),qDe(j)&&Le&&h.push(xe)}j.on("error",Ee),qDe(j)&&Le&&h.push(()=>{j.removeListener("error",Ee)})}if(G===0)if(typeof j=="function"){if(M=j({signal:u}),!N8(M))throw new KDe("Iterable, AsyncIterable or Stream","source",M)}else N8(j)||hde(j)||MD(j)?M=j:M=OXt.from(j);else if(typeof j=="function"){if(MD(M)){var L;M=ZDe((L=M)===null||L===void 0?void 0:L.readable)}else M=ZDe(M);if(M=j(M,{signal:u}),Q){if(!N8(M,!0))throw new KDe("AsyncIterable",`transform[${G-1}]`,M)}else{var H;JDe||(JDe=Ofn);const Ee=new JDe({objectMode:!0}),le=(H=M)===null||H===void 0?void 0:H.then;if(typeof le=="function")C++,le.call(M,ae=>{E=ae,ae!=null&&Ee.write(ae),pe&&Ee.end(),UK.nextTick(R)},ae=>{Ee.destroy(ae),UK.nextTick(R,ae)});else if(N8(M,!0))C++,cfe(M,Ee,R,{end:pe});else if(XDe(M)||MD(M)){const ae=M.readable||M;C++,cfe(ae,Ee,R,{end:pe})}else throw new KDe("AsyncIterable or Promise","destination",M);M=Ee;const{destroy:xe,cleanup:be}=MXt(M,!1,!0);A.push(xe),Le&&h.push(be)}}else if(NXt(j)){if(hde(M)){C+=2;const Ee=fOr(M,j,R,{end:pe});qDe(j)&&Le&&h.push(Ee)}else if(MD(M)||XDe(M)){const Ee=M.readable||M;C++,cfe(Ee,j,R,{end:pe})}else if(N8(M))C++,cfe(M,j,R,{end:pe});else throw new BBe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else if(oOr(j)){if(hde(M))C++,eLe(ZDe(M),j,R,{end:pe});else if(XDe(M)||N8(M))C++,eLe(M,j,R,{end:pe});else if(MD(M))C++,eLe(M.readable,j,R,{end:pe});else throw new BBe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else M=OXt.from(j)}return(u!=null&&u.aborted||d!=null&&d.aborted)&&UK.nextTick(w),M}function fOr(n,r,o,{end:l}){let u=!1;if(r.on("close",()=>{u||o(new tOr)}),n.pipe(r,{end:!1}),l){let d=function(){u=!0,r.end()};sOr(n)?UK.nextTick(d):n.once("end",d)}else o();return $he(n,{readable:!0,writable:!1},d=>{const h=n._readableState;d&&d.code==="ERR_STREAM_PREMATURE_CLOSE"&&h&&h.ended&&!h.errored&&!h.errorEmitted?n.once("end",o).once("error",o):o(d)}),$he(r,{readable:!1,writable:!0},o)}var wVe={pipelineImpl:Nfn,pipeline:uOr};const{pipeline:dOr}=wVe,ufe=mx(),{destroyer:hOr}=Dj,{isNodeStream:ffe,isReadable:DXt,isWritable:LXt,isWebStream:tLe,isTransformStream:m8,isWritableStream:jXt,isReadableStream:FXt}=Mx,{AbortError:pOr,codes:{ERR_INVALID_ARG_VALUE:BXt,ERR_MISSING_ARGS:bOr}}=L0,gOr=qT;var Mfn=function(...r){if(r.length===0)throw new bOr("streams");if(r.length===1)return ufe.from(r[0]);const o=[...r];if(typeof r[0]=="function"&&(r[0]=ufe.from(r[0])),typeof r[r.length-1]=="function"){const R=r.length-1;r[R]=ufe.from(r[R])}for(let R=0;R0&&!(LXt(r[R])||jXt(r[R])||m8(r[R])))throw new BXt(`streams[${R}]`,o[R],"must be writable")}let l,u,d,h,w;function v(R){const O=h;h=null,O?O(R):R?w.destroy(R):!C&&!A&&w.destroy()}const y=r[0],E=dOr(r,v),A=!!(LXt(y)||jXt(y)||m8(y)),C=!!(DXt(E)||FXt(E)||m8(E));if(w=new ufe({writableObjectMode:!!(y!=null&&y.writableObjectMode),readableObjectMode:!!(E!=null&&E.readableObjectMode),writable:A,readable:C}),A){if(ffe(y))w._write=function(O,M,L){y.write(O,M)?L():l=L},w._final=function(O){y.end(),u=O},y.on("drain",function(){if(l){const O=l;l=null,O()}});else if(tLe(y)){const M=(m8(y)?y.writable:y).getWriter();w._write=async function(L,H,G){try{await M.ready,M.write(L).catch(()=>{}),G()}catch(j){G(j)}},w._final=async function(L){try{await M.ready,M.close().catch(()=>{}),u=L}catch(H){L(H)}}}const R=m8(E)?E.readable:E;gOr(R,()=>{if(u){const O=u;u=null,O()}})}if(C){if(ffe(E))E.on("readable",function(){if(d){const R=d;d=null,R()}}),E.on("end",function(){w.push(null)}),w._read=function(){for(;;){const R=E.read();if(R===null){d=w._read;return}if(!w.push(R))return}};else if(tLe(E)){const O=(m8(E)?E.readable:E).getReader();w._read=async function(){for(;;)try{const{value:M,done:L}=await O.read();if(!w.push(M))return;if(L){w.push(null);return}}catch{return}}}}return w._destroy=function(R,O){!R&&h!==null&&(R=new pOr),d=null,l=null,u=null,h===null?O(R):(h=O,ffe(E)&&hOr(E,R))},w};const wOr=globalThis.AbortController||$o().AbortController,{codes:{ERR_INVALID_ARG_VALUE:mOr,ERR_INVALID_ARG_TYPE:WJ,ERR_MISSING_ARGS:yOr,ERR_OUT_OF_RANGE:vOr},AbortError:pk}=L0,{validateAbortSignal:xO,validateInteger:WXt,validateObject:CO}=BJ,_Or=Vf.Symbol("kWeak"),SOr=Vf.Symbol("kResistStopPropagation"),{finished:EOr}=qT,kOr=Mfn,{addAbortSignalNoValidate:ROr}=i1e,{isWritable:xOr,isNodeStream:COr}=Mx,{deprecate:AOr}=w1,{ArrayPrototypePush:TOr,Boolean:$Or,MathFloor:HXt,Number:IOr,NumberIsNaN:POr,Promise:UXt,PromiseReject:GXt,PromiseResolve:OOr,PromisePrototypeThen:VXt,Symbol:Dfn}=Vf,Ihe=Dfn("kEmpty"),zXt=Dfn("kEof");function NOr(n,r){if(r!=null&&CO(r,"options"),(r==null?void 0:r.signal)!=null&&xO(r.signal,"options.signal"),COr(n)&&!xOr(n))throw new mOr("stream",n,"must be writable");const o=kOr(this,n);return r!=null&&r.signal&&ROr(r.signal,o),o}function l1e(n,r){if(typeof n!="function")throw new WJ("fn",["Function","AsyncFunction"],n);r!=null&&CO(r,"options"),(r==null?void 0:r.signal)!=null&&xO(r.signal,"options.signal");let o=1;(r==null?void 0:r.concurrency)!=null&&(o=HXt(r.concurrency));let l=o-1;return(r==null?void 0:r.highWaterMark)!=null&&(l=HXt(r.highWaterMark)),WXt(o,"options.concurrency",1),WXt(l,"options.highWaterMark",0),l+=o,(async function*(){const d=w1.AbortSignalAny([r==null?void 0:r.signal].filter($Or)),h=this,w=[],v={signal:d};let y,E,A=!1,C=0;function R(){A=!0,O()}function O(){C-=1,M()}function M(){E&&!A&&C=l||C>=o)&&await new UXt(G=>{E=G})}w.push(zXt)}catch(H){const G=GXt(H);VXt(G,O,R),w.push(G)}finally{A=!0,y&&(y(),y=null)}}L();try{for(;;){for(;w.length>0;){const H=await w[0];if(H===zXt)return;if(d.aborted)throw new pk;H!==Ihe&&(yield H),w.shift(),M()}await new UXt(H=>{y=H})}}finally{A=!0,E&&(E(),E=null)}}).call(this)}function MOr(n=void 0){return n!=null&&CO(n,"options"),(n==null?void 0:n.signal)!=null&&xO(n.signal,"options.signal"),(async function*(){let o=0;for await(const u of this){var l;if(n!=null&&(l=n.signal)!==null&&l!==void 0&&l.aborted)throw new pk({cause:n.signal.reason});yield[o++,u]}}).call(this)}async function Lfn(n,r=void 0){for await(const o of mVe.call(this,n,r))return!0;return!1}async function DOr(n,r=void 0){if(typeof n!="function")throw new WJ("fn",["Function","AsyncFunction"],n);return!await Lfn.call(this,async(...o)=>!await n(...o),r)}async function LOr(n,r){for await(const o of mVe.call(this,n,r))return o}async function jOr(n,r){if(typeof n!="function")throw new WJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u),Ihe}for await(const l of l1e.call(this,o,r));}function mVe(n,r){if(typeof n!="function")throw new WJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u)?l:Ihe}return l1e.call(this,o,r)}class FOr extends yOr{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}async function BOr(n,r,o){var l;if(typeof n!="function")throw new WJ("reducer",["Function","AsyncFunction"],n);o!=null&&CO(o,"options"),(o==null?void 0:o.signal)!=null&&xO(o.signal,"options.signal");let u=arguments.length>1;if(o!=null&&(l=o.signal)!==null&&l!==void 0&&l.aborted){const y=new pk(void 0,{cause:o.signal.reason});throw this.once("error",()=>{}),await EOr(this.destroy(y)),y}const d=new wOr,h=d.signal;if(o!=null&&o.signal){const y={once:!0,[_Or]:this,[SOr]:!0};o.signal.addEventListener("abort",()=>d.abort(),y)}let w=!1;try{for await(const y of this){var v;if(w=!0,o!=null&&(v=o.signal)!==null&&v!==void 0&&v.aborted)throw new pk;u?r=await n(r,y,{signal:h}):(r=y,u=!0)}if(!w&&!u)throw new FOr}finally{d.abort()}return r}async function WOr(n){n!=null&&CO(n,"options"),(n==null?void 0:n.signal)!=null&&xO(n.signal,"options.signal");const r=[];for await(const l of this){var o;if(n!=null&&(o=n.signal)!==null&&o!==void 0&&o.aborted)throw new pk(void 0,{cause:n.signal.reason});TOr(r,l)}return r}function HOr(n,r){const o=l1e.call(this,n,r);return(async function*(){for await(const u of o)yield*u}).call(this)}function jfn(n){if(n=IOr(n),POr(n))return 0;if(n<0)throw new vOr("number",">= 0",n);return n}function UOr(n,r=void 0){return r!=null&&CO(r,"options"),(r==null?void 0:r.signal)!=null&&xO(r.signal,"options.signal"),n=jfn(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new pk;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new pk;n--<=0&&(yield d)}}).call(this)}function GOr(n,r=void 0){return r!=null&&CO(r,"options"),(r==null?void 0:r.signal)!=null&&xO(r.signal,"options.signal"),n=jfn(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new pk;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new pk;if(n-- >0&&(yield d),n<=0)return}}).call(this)}aVe.streamReturningOperators={asIndexedPairs:AOr(MOr,"readable.asIndexedPairs will be removed in a future version."),drop:UOr,filter:mVe,flatMap:HOr,map:l1e,take:GOr,compose:NOr};aVe.promiseReturningOperators={every:DOr,forEach:jOr,reduce:BOr,toArray:WOr,some:Lfn,find:LOr};var nLe,KXt;function Ffn(){if(KXt)return nLe;KXt=1;const{ArrayPrototypePop:n,Promise:r}=Vf,{isIterable:o,isNodeStream:l,isWebStream:u}=Mx,{pipelineImpl:d}=wVe,{finished:h}=qT;Bfn();function w(...v){return new r((y,E)=>{let A,C;const R=v[v.length-1];if(R&&typeof R=="object"&&!l(R)&&!o(R)&&!u(R)){const O=n(v);A=O.signal,C=O.end}d(v,(O,M)=>{O?E(O):y(M)},{signal:A,end:C})})}return nLe={finished:h,pipeline:w},nLe}var qXt;function Bfn(){if(qXt)return FDe.exports;qXt=1;const{Buffer:n}=Kr,{ObjectDefineProperty:r,ObjectKeys:o,ReflectApply:l}=Vf,{promisify:{custom:u}}=w1,{streamReturningOperators:d,promiseReturningOperators:h}=aVe,{codes:{ERR_ILLEGAL_CONSTRUCTOR:w}}=L0,v=Mfn,{setDefaultHighWaterMark:y,getDefaultHighWaterMark:E}=o1e,{pipeline:A}=wVe,{destroyer:C}=Dj,R=qT,O=Ffn(),M=Mx,L=FDe.exports=hVe.Stream;L.isDestroyed=M.isDestroyed,L.isDisturbed=M.isDisturbed,L.isErrored=M.isErrored,L.isReadable=M.isReadable,L.isWritable=M.isWritable,L.Readable=s1e();for(const G of o(d)){let Q=function(...te){if(new.target)throw w();return L.Readable.from(l(j,this,te))};const j=d[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}for(const G of o(h)){let Q=function(...te){if(new.target)throw w();return l(j,this,te)};const j=h[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}L.Writable=pVe(),L.Duplex=mx(),L.Transform=Ifn,L.PassThrough=Ofn,L.pipeline=A;const{addAbortSignal:H}=i1e;return L.addAbortSignal=H,L.finished=R,L.destroy=C,L.compose=v,L.setDefaultHighWaterMark=y,L.getDefaultHighWaterMark=E,r(L,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return O}}),r(A,u,{__proto__:null,enumerable:!0,get(){return O.pipeline}}),r(R,u,{__proto__:null,enumerable:!0,get(){return O.finished}}),L.Stream=L,L._isUint8Array=function(j){return j instanceof Uint8Array},L._uint8ArrayToBuffer=function(j){return n.from(j.buffer,j.byteOffset,j.byteLength)},FDe.exports}(function(n){const r=Bfn(),o=Ffn(),l=r.Readable.destroy;n.exports=r.Readable,n.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer,n.exports._isUint8Array=r._isUint8Array,n.exports.isDisturbed=r.isDisturbed,n.exports.isErrored=r.isErrored,n.exports.isReadable=r.isReadable,n.exports.Readable=r.Readable,n.exports.Writable=r.Writable,n.exports.Duplex=r.Duplex,n.exports.Transform=r.Transform,n.exports.PassThrough=r.PassThrough,n.exports.addAbortSignal=r.addAbortSignal,n.exports.finished=r.finished,n.exports.destroy=r.destroy,n.exports.destroy=l,n.exports.pipeline=r.pipeline,n.exports.compose=r.compose,Object.defineProperty(r,"promises",{configurable:!0,enumerable:!0,get(){return o}}),n.exports.Stream=r.Stream,n.exports.default=n.exports})(Jun);var VOr=Jun.exports,a1e={};Object.defineProperty(a1e,"__esModule",{value:!0});a1e.ParseError=void 0;class zOr extends Error{constructor(r,o){const l=r.saxParser;super(r.trackPosition?`Line ${l.line} column ${l.column+1}: ${o}`:o)}}a1e.ParseError=zOr;var Wfn={},Hfn={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.validateIri=n.IriValidationStrategy=void 0;function r(){const w="[!$&'()*+,;=]",v="%[a-fA-F0-9]{2}",y="([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",E=`${y}\\.${y}\\.${y}\\.${y}`,A="[a-fA-F0-9]{1,4}",C=`(${A}:${A}|${E})`,R=`((${A}:){6}${C}|::(${A}:){5}${C}|(${A})?::(${A}:){4}${C}|((${A}:){0,1}${A})?::(${A}:){3}${C}|((${A}:){0,2}${A})?::(${A}:){2}${C}|((${A}:){0,3}${A})?::${A}:${C}|((${A}:){0,4}${A})?::${C}|((${A}:){0,5}${A})?::${A}|((${A}:){0,6}${A})?::)`,O=`v[a-fA-F0-9]+\\.(${w}|${w}|":)+`,M=`\\[(${R}|${O})\\]`,L="[0-9]*",H="[a-zA-Z][a-zA-Z0-9+\\-.]*",j="[-󰀀-󿿽􀀀-􏿽]",pe="[a-zA-Z0-9\\-._~ -퟿豈-﷏ﷰ-￯𐀀-🿽𠀀-𯿽𰀀-𿿽񀀀-񏿽񐀀-񟿽񠀀-񯿽񰀀-񿿽򀀀-򏿽򐀀-򟿽򠀀-򯿽򰀀-򿿽󀀀-󏿽󐀀-󟿽󡀀-󯿽]",Le=`(${pe}|${v}|${w}|[:@])*`,Ee=`(${Le}|[\\/?])*`,le=`(${Le}|${j}|[\\/?])*`,xe=`(${Le})+`,be=`(${Le})*`,ae="",F=`${xe}(\\/${be})*`,me=`\\/(${xe}(\\/${be})*)?`,ye=`(\\/${be})*`,we=`(${pe}|${v}|${w})*`,Be=`(${M}|${E}|${we})`,Ge=`(\\/\\/${`(${`(${pe}|${v}|${w}|:)*`}@)?${Be}(:${L})?`}${ye}|${me}|${F}|${ae})`,Me=`^${H}:${Ge}(\\?${le})?(#${Ee})?$`;return new RegExp(Me,"u")}const o=r(),l=/^[A-Za-z][\d+-.A-Za-z]*:[^\u0000-\u0020"<>\\^`{|}]*$/u;var u;(function(h){h.Strict="strict",h.Pragmatic="pragmatic",h.None="none"})(u=n.IriValidationStrategy||(n.IriValidationStrategy={}));function d(h,w=u.Strict){switch(w){case u.Strict:return o.test(h)?void 0:new Error(`Invalid IRI according to RFC 3987: '${h}'`);case u.Pragmatic:return l.test(h)?void 0:new Error(`Invalid IRI according to RDF Turtle: '${h}'`);case u.None:return;default:return new Error(`Not supported validation strategy "${w}"`)}}n.validateIri=d})(Hfn);(function(n){var r=fu&&fu.__createBinding||(Object.create?function(l,u,d,h){h===void 0&&(h=d);var w=Object.getOwnPropertyDescriptor(u,d);(!w||("get"in w?!u.__esModule:w.writable||w.configurable))&&(w={enumerable:!0,get:function(){return u[d]}}),Object.defineProperty(l,h,w)}:function(l,u,d,h){h===void 0&&(h=d),l[h]=u[d]}),o=fu&&fu.__exportStar||function(l,u){for(var d in l)d!=="default"&&!Object.prototype.hasOwnProperty.call(u,d)&&r(u,l,d)};Object.defineProperty(n,"__esModule",{value:!0}),o(Hfn,n)})(Wfn);Object.defineProperty(qL,"__esModule",{value:!0});qL.ParseType=qL.RdfXmlParser=void 0;const XXt=gJ,KOr=XL,JXt=VOr,qOr=a1e,XOr=TUe,rLe=Wfn;let AO=class hf extends JXt.Transform{constructor(r){super({readableObjectMode:!0}),this.activeTagStack=[],this.nodeIds={},r&&(Object.assign(this,r),this.options=r),this.dataFactory||(this.dataFactory=new XOr.DataFactory),this.baseIRI||(this.baseIRI=""),this.defaultGraph||(this.defaultGraph=this.dataFactory.defaultGraph()),this.validateUri!==!1&&(this.validateUri=!0),this.iriValidationStrategy||(this.iriValidationStrategy=this.validateUri?rLe.IriValidationStrategy.Pragmatic:rLe.IriValidationStrategy.None),this.saxParser=new KOr.SaxesParser({xmlns:!0,position:this.trackPosition}),this.attachSaxListeners()}import(r){const o=new JXt.PassThrough({readableObjectMode:!0});r.on("error",u=>l.emit("error",u)),r.on("data",u=>o.push(u)),r.on("end",()=>o.push(null));const l=o.pipe(new hf(this.options));return l}_transform(r,o,l){try{this.saxParser.write(r)}catch(u){return l(u)}l()}newParseError(r){return new qOr.ParseError(this,r)}valueToUri(r,o){return this.uriToNamedNode((0,XXt.resolve)(r,o.baseIRI))}uriToNamedNode(r){const o=(0,rLe.validateIri)(r,this.iriValidationStrategy);if(o instanceof Error)throw this.newParseError(o.message);return this.dataFactory.namedNode(r)}validateNcname(r){if(!hf.NCNAME_MATCHER.test(r))throw this.newParseError(`Not a valid NCName: ${r}`)}attachSaxListeners(){this.saxParser.on("error",r=>this.emit("error",r)),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(r){const o=this.activeTagStack.length?this.activeTagStack[this.activeTagStack.length-1]:null;let l=$R.RESOURCE;if(o&&(o.hadChildren=!0,l=o.childrenParseType),o&&o.childrenStringTags){const d=r.name;let h="";for(const E in r.attributes)h+=` ${E}="${r.attributes[E].value}"`;const v=`<${`${d}${h}`}>`;o.childrenStringTags.push(v);const y={childrenStringTags:o.childrenStringTags};y.childrenStringEmitClosingTag=``,this.activeTagStack.push(y);return}const u={};o?(u.language=o.language,u.baseIRI=o.baseIRI):u.baseIRI=this.baseIRI,this.activeTagStack.push(u),l===$R.RESOURCE?this.onTagResource(r,u,o,!o):this.onTagProperty(r,u,o)}onTagResource(r,o,l,u){o.childrenParseType=$R.PROPERTY;let d=!0;if(r.uri===hf.RDF){if(!u&&hf.FORBIDDEN_NODE_ELEMENTS.indexOf(r.local)>=0)throw this.newParseError(`Illegal node element name: ${r.local}`);switch(r.local){case"RDF":o.childrenParseType=$R.RESOURCE;case"Description":d=!1}}const h=[],w=[];let v=null,y=!1,E=!1,A=null;for(const C in r.attributes){const R=r.attributes[C];if(l&&R.uri===hf.RDF)switch(R.local){case"about":if(v)throw this.newParseError(`Only one of rdf:about, rdf:nodeID and rdf:ID can be present, while ${R.value} and ${v} where found.`);v=R.value;continue;case"ID":if(v)throw this.newParseError(`Only one of rdf:about, rdf:nodeID and rdf:ID can be present, while ${R.value} and ${v} where found.`);this.validateNcname(R.value),v="#"+R.value,y=!0;continue;case"nodeID":if(v)throw this.newParseError(`Only one of rdf:about, rdf:nodeID and rdf:ID can be present, while ${R.value} and ${v} where found.`);this.validateNcname(R.value),v=R.value,E=!0;continue;case"bagID":throw this.newParseError("rdf:bagID is not supported.");case"type":A=R.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(R.uri===hf.XML){if(R.local==="lang"){o.language=R.value===""?null:R.value.toLowerCase();continue}else if(R.local==="base"){o.baseIRI=(0,XXt.resolve)(R.value,o.baseIRI);continue}}R.prefix!=="xml"&&R.prefix!=="xmlns"&&(R.prefix!==""||R.local!=="xmlns")&&R.uri&&(h.push(this.uriToNamedNode(R.uri+R.local)),w.push(R.value))}if(v!==null&&(o.subject=E?this.dataFactory.blankNode(v):this.valueToUri(v,o),y&&this.claimNodeId(o.subject)),o.subject||(o.subject=this.dataFactory.blankNode()),d){const C=this.uriToNamedNode(r.uri+r.local);this.emitTriple(o.subject,this.dataFactory.namedNode(hf.RDF+"type"),C,l?l.reifiedStatementId:null)}if(l){if(l.predicate)if(l.childrenCollectionSubject){const C=this.dataFactory.blankNode();this.emitTriple(l.childrenCollectionSubject,l.childrenCollectionPredicate,C,l.reifiedStatementId),this.emitTriple(C,this.dataFactory.namedNode(hf.RDF+"first"),o.subject,o.reifiedStatementId),l.childrenCollectionSubject=C,l.childrenCollectionPredicate=this.dataFactory.namedNode(hf.RDF+"rest")}else{this.emitTriple(l.subject,l.predicate,o.subject,l.reifiedStatementId);for(let C=0;C=0)throw this.newParseError(`Illegal property element name: ${r.local}`);o.predicateSubPredicates=[],o.predicateSubObjects=[];let u=!1,d=!1,h=null,w=!0;const v=[],y=[];for(const E in r.attributes){const A=r.attributes[E];if(A.uri===hf.RDF)switch(A.local){case"resource":if(h)throw this.newParseError(`Found both rdf:resource (${A.value}) and rdf:nodeID (${h}).`);if(u)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:resource (${A.value})`);o.hadChildren=!0,h=A.value,w=!1;continue;case"datatype":if(d)throw this.newParseError(`Found both non-rdf:* property attributes and rdf:datatype (${A.value}).`);if(u)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:datatype (${A.value})`);o.datatype=this.valueToUri(A.value,o);continue;case"nodeID":if(d)throw this.newParseError(`Found both non-rdf:* property attributes and rdf:nodeID (${A.value}).`);if(o.hadChildren)throw this.newParseError(`Found both rdf:resource and rdf:nodeID (${A.value}).`);if(u)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:nodeID (${A.value})`);this.validateNcname(A.value),o.hadChildren=!0,h=A.value,w=!0;continue;case"bagID":throw this.newParseError("rdf:bagID is not supported.");case"parseType":if(d)throw this.newParseError("rdf:parseType is not allowed when non-rdf:* property attributes are present");if(o.datatype)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:datatype (${o.datatype.value})`);if(h)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:nodeID or rdf:resource (${h})`);if(A.value==="Resource"){u=!0,o.childrenParseType=$R.PROPERTY;const C=this.dataFactory.blankNode();this.emitTriple(o.subject,o.predicate,C,o.reifiedStatementId),o.subject=C,o.predicate=null}else A.value==="Collection"?(u=!0,o.hadChildren=!0,o.childrenCollectionSubject=o.subject,o.childrenCollectionPredicate=o.predicate,w=!1):A.value==="Literal"&&(u=!0,o.childrenTagsToString=!0,o.childrenStringTags=[]);continue;case"ID":this.validateNcname(A.value),o.reifiedStatementId=this.valueToUri("#"+A.value,o),this.claimNodeId(o.reifiedStatementId);continue}else if(A.uri===hf.XML&&A.local==="lang"){o.language=A.value===""?null:A.value.toLowerCase();continue}if(A.prefix!=="xml"&&A.prefix!=="xmlns"&&(A.prefix!==""||A.local!=="xmlns")&&A.uri){if(u||o.datatype)throw this.newParseError(`Found illegal rdf:* properties on property element with attribute: ${A.value}`);o.hadChildren=!0,d=!0,v.push(this.uriToNamedNode(A.uri+A.local)),y.push(this.dataFactory.literal(A.value,o.datatype||o.language))}}if(h!==null){const E=o.subject;o.subject=w?this.dataFactory.blankNode(h):this.valueToUri(h,o),this.emitTriple(E,o.predicate,o.subject,o.reifiedStatementId);for(let A=0;A/g,(o,l,u)=>(this.saxParser.ENTITIES[l]=u,""))}};qL.RdfXmlParser=AO;AO.MIME_TYPE="application/rdf+xml";AO.RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#";AO.XML="http://www.w3.org/XML/1998/namespace";AO.FORBIDDEN_NODE_ELEMENTS=["RDF","ID","about","bagID","parseType","resource","nodeID","li","aboutEach","aboutEachPrefix"];AO.FORBIDDEN_PROPERTY_ELEMENTS=["Description","RDF","ID","about","bagID","parseType","resource","nodeID","aboutEach","aboutEachPrefix"];AO.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 $R;(function(n){n[n.RESOURCE=0]="RESOURCE",n[n.PROPERTY=1]="PROPERTY"})($R||(qL.ParseType=$R={}));(function(n){var r=fu&&fu.__createBinding||(Object.create?function(l,u,d,h){h===void 0&&(h=d);var w=Object.getOwnPropertyDescriptor(u,d);(!w||("get"in w?!u.__esModule:w.writable||w.configurable))&&(w={enumerable:!0,get:function(){return u[d]}}),Object.defineProperty(l,h,w)}:function(l,u,d,h){h===void 0&&(h=d),l[h]=u[d]}),o=fu&&fu.__exportStar||function(l,u){for(var d in l)d!=="default"&&!Object.prototype.hasOwnProperty.call(u,d)&&r(u,l,d)};Object.defineProperty(n,"__esModule",{value:!0}),o(qL,n)})(Wun);class JOr extends Wun.RdfXmlParser{constructor({factory:r,...o}={}){super({...o,dataFactory:r})}}const YOr=new AL([["application/ld+json",new aon],["application/trig",new CD],["application/n-quads",new CD],["application/n-triples",new CD],["text/n3",new CD],["text/turtle",new CD],["application/rdf+xml",new JOr]]),QOr=new AL([["application/ld+json",new MAr],["application/n-quads",new MK],["application/n-triples",new MK],["text/n3",new MK],["text/turtle",new MK]]),ZOr={parsers:YOr,serializers:QOr};arn.formats.import(ZOr);const WBe=arn;var SL;class e7r{constructor(){J5(this,SL,{})}update(r){_E(this,SL,{}),r.forEach(o=>{Hp(this,SL)[o.prefix]=o.uri})}get prefixes(){return Hp(this,SL)}}SL=new WeakMap;const Ufn=new e7r;function mL(n){if(n.termType==="NamedNode"){const r=Den(n.value,Ufn.prefixes);return r||n.value}return n.value}function t7r(n){const r=[...n].map(d=>d.subject),o=[...n].filter(d=>!d.predicate.equals(WBe.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"))).map(d=>d.object).filter(d=>d.termType==="BlankNode"||d.termType==="NamedNode");return[...new Yde([...r,...o])].map(d=>{const v=[...[...n.match(d)].reduce((y,{predicate:E,object:A})=>{if(!y.has(E.value)){const C={id:E.value,term:E,name:mL(E),values:new Yde};y.set(E.value,C)}return y.get(E.value).values.add(A),y},new Map).values()].sort((y,E)=>y.name==="rdf:type"?-1:E.name==="rdf:type"?1:y.name.localeCompare(E.name));return{id:d.value===""?"_:nobody":d.value,term:d,name:mL(d),properties:v}})}function n7r(n){const r=new Yde(n.map(l=>l.term));return n.flatMap(l=>l.properties.map(u=>({...u,resource:l}))).reduce((l,u)=>(u.values.forEach(d=>{const h=u.resource.term,w=d;r.has(w)&&l.push({source:h.value,target:w.value,sourceProperty:u.id,label:u.name})}),l),[])}function c1e(n){return zhe()?(qK(n),!0):!1}function jR(n){return typeof n=="function"?n():Wr(n)}const r7r=typeof window<"u"&&typeof document<"u",i7r=n=>typeof n<"u",o7r=Object.prototype.toString,s7r=n=>o7r.call(n)==="[object Object]",l7r=()=>{};function a7r(n,r){function o(...l){return new Promise((u,d)=>{Promise.resolve(n(()=>r.apply(this,l),{fn:r,thisArg:this,args:l})).then(u).catch(d)})}return o}const Gfn=n=>n();function c7r(n=Gfn){const r=Fo(!0);function o(){r.value=!1}function l(){r.value=!0}const u=(...d)=>{r.value&&n(...d)};return{isActive:zX(r),pause:o,resume:l,eventFilter:u}}function YXt(n,r=!1,o="Timeout"){return new Promise((l,u)=>{setTimeout(r?()=>u(o):l,n)})}function u7r(n,r,o={}){const{eventFilter:l=Gfn,...u}=o;return Zs(n,a7r(l,r),u)}function dD(n,r,o={}){const{eventFilter:l,...u}=o,{eventFilter:d,pause:h,resume:w,isActive:v}=c7r(l);return{stop:u7r(n,r,{...u,eventFilter:d}),pause:h,resume:w,isActive:v}}function f7r(n,r={}){if(!_d(n))return yBn(n);const o=Array.isArray(n.value)?Array.from({length:n.value.length}):{};for(const l in n.value)o[l]=mBn(()=>({get(){return n.value[l]},set(u){var d;if((d=jR(r.replaceRef))!=null?d:!0)if(Array.isArray(n.value)){const w=[...n.value];w[l]=u,n.value=w}else{const w={...n.value,[l]:u};Object.setPrototypeOf(w,Object.getPrototypeOf(n.value)),n.value=w}else n.value[l]=u}}));return o}function HBe(n,r=!1){function o(A,{flush:C="sync",deep:R=!1,timeout:O,throwOnTimeout:M}={}){let L=null;const G=[new Promise(j=>{L=Zs(n,Q=>{A(Q)!==r&&(L==null||L(),j(Q))},{flush:C,deep:R,immediate:!0})})];return O!=null&&G.push(YXt(O,M).then(()=>jR(n)).finally(()=>L==null?void 0:L())),Promise.race(G)}function l(A,C){if(!_d(A))return o(Q=>Q===A,C);const{flush:R="sync",deep:O=!1,timeout:M,throwOnTimeout:L}=C??{};let H=null;const j=[new Promise(Q=>{H=Zs([n,A],([te,pe])=>{r!==(te===pe)&&(H==null||H(),Q(te))},{flush:R,deep:O,immediate:!0})})];return M!=null&&j.push(YXt(M,L).then(()=>jR(n)).finally(()=>(H==null||H(),jR(n)))),Promise.race(j)}function u(A){return o(C=>!!C,A)}function d(A){return l(null,A)}function h(A){return l(void 0,A)}function w(A){return o(Number.isNaN,A)}function v(A,C){return o(R=>{const O=Array.from(R);return O.includes(A)||O.includes(jR(A))},C)}function y(A){return E(1,A)}function E(A=1,C){let R=-1;return o(()=>(R+=1,R>=A),C)}return Array.isArray(jR(n))?{toMatch:o,toContains:v,changed:y,changedTimes:E,get not(){return HBe(n,!r)}}:{toMatch:o,toBe:l,toBeTruthy:u,toBeNull:d,toBeNaN:w,toBeUndefined:h,changed:y,changedTimes:E,get not(){return HBe(n,!r)}}}function UBe(n){return HBe(n)}function d7r(n){var r;const o=jR(n);return(r=o==null?void 0:o.$el)!=null?r:o}const Vfn=r7r?window:void 0;function zfn(...n){let r,o,l,u;if(typeof n[0]=="string"||Array.isArray(n[0])?([o,l,u]=n,r=Vfn):[r,o,l,u]=n,!r)return l7r;Array.isArray(o)||(o=[o]),Array.isArray(l)||(l=[l]);const d=[],h=()=>{d.forEach(E=>E()),d.length=0},w=(E,A,C,R)=>(E.addEventListener(A,C,R),()=>E.removeEventListener(A,C,R)),v=Zs(()=>[d7r(r),jR(u)],([E,A])=>{if(h(),!E)return;const C=s7r(A)?{...A}:A;d.push(...o.flatMap(R=>l.map(O=>w(E,R,O,C))))},{immediate:!0,flush:"post"}),y=()=>{v(),h()};return c1e(y),y}function h7r(n){return typeof n=="function"?n:typeof n=="string"?r=>r.key===n:Array.isArray(n)?r=>n.includes(r.key):()=>!0}function QXt(...n){let r,o,l={};n.length===3?(r=n[0],o=n[1],l=n[2]):n.length===2?typeof n[1]=="object"?(r=!0,o=n[0],l=n[1]):(r=n[0],o=n[1]):(r=!0,o=n[0]);const{target:u=Vfn,eventName:d="keydown",passive:h=!1,dedupe:w=!1}=l,v=h7r(r);return zfn(u,d,E=>{E.repeat&&jR(w)||v(E)&&o(E)},h)}function p7r(n){return JSON.parse(JSON.stringify(n))}function iLe(n,r,o,l={}){var u,d,h;const{clone:w=!1,passive:v=!1,eventName:y,deep:E=!1,defaultValue:A,shouldEmit:C}=l,R=NT(),O=o||(R==null?void 0:R.emit)||((u=R==null?void 0:R.$emit)==null?void 0:u.bind(R))||((h=(d=R==null?void 0:R.proxy)==null?void 0:d.$emit)==null?void 0:h.bind(R==null?void 0:R.proxy));let M=y;r||(r="modelValue"),M=M||`update:${r.toString()}`;const L=j=>w?typeof w=="function"?w(j):p7r(j):j,H=()=>i7r(n[r])?L(n[r]):A,G=j=>{C?C(j)&&O(M,j):O(M,j)};if(v){const j=H(),Q=Fo(j);let te=!1;return Zs(()=>n[r],pe=>{te||(te=!0,Q.value=L(pe),RS(()=>te=!1))}),Zs(Q,pe=>{!te&&(pe!==n[r]||E)&&G(pe)},{deep:E}),Q}else return To({get(){return H()},set(j){G(j)}})}var b7r={value:()=>{}};function u1e(){for(var n=0,r=arguments.length,o={},l;n=0&&(l=o.slice(u+1),o=o.slice(0,u)),o&&!r.hasOwnProperty(o))throw new Error("unknown type: "+o);return{type:o,name:l}})}pde.prototype=u1e.prototype={constructor:pde,on:function(n,r){var o=this._,l=g7r(n+"",o),u,d=-1,h=l.length;if(arguments.length<2){for(;++d0)for(var o=new Array(u),l=0,u,d;l=0&&(r=n.slice(0,o))!=="xmlns"&&(n=n.slice(o+1)),eJt.hasOwnProperty(r)?{space:eJt[r],local:n}:n}function m7r(n){return function(){var r=this.ownerDocument,o=this.namespaceURI;return o===GBe&&r.documentElement.namespaceURI===GBe?r.createElement(n):r.createElementNS(o,n)}}function y7r(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function Kfn(n){var r=f1e(n);return(r.local?y7r:m7r)(r)}function v7r(){}function yVe(n){return n==null?v7r:function(){return this.querySelector(n)}}function _7r(n){typeof n!="function"&&(n=yVe(n));for(var r=this._groups,o=r.length,l=new Array(o),u=0;u=j&&(j=G+1);!(te=L[j])&&++j=0;)(h=l[u])&&(d&&h.compareDocumentPosition(d)^4&&d.parentNode.insertBefore(h,d),d=h);return this}function z7r(n){n||(n=K7r);function r(A,C){return A&&C?n(A.__data__,C.__data__):!A-!C}for(var o=this._groups,l=o.length,u=new Array(l),d=0;dr?1:n>=r?0:NaN}function q7r(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this}function X7r(){return Array.from(this)}function J7r(){for(var n=this._groups,r=0,o=n.length;r1?this.each((r==null?lNr:typeof r=="function"?cNr:aNr)(n,r,o??"")):YL(this.node(),n)}function YL(n,r){return n.style.getPropertyValue(r)||Qfn(n).getComputedStyle(n,null).getPropertyValue(r)}function fNr(n){return function(){delete this[n]}}function dNr(n,r){return function(){this[n]=r}}function hNr(n,r){return function(){var o=r.apply(this,arguments);o==null?delete this[n]:this[n]=o}}function pNr(n,r){return arguments.length>1?this.each((r==null?fNr:typeof r=="function"?hNr:dNr)(n,r)):this.node()[n]}function Zfn(n){return n.trim().split(/^|\s+/)}function vVe(n){return n.classList||new edn(n)}function edn(n){this._node=n,this._names=Zfn(n.getAttribute("class")||"")}edn.prototype={add:function(n){var r=this._names.indexOf(n);r<0&&(this._names.push(n),this._node.setAttribute("class",this._names.join(" ")))},remove:function(n){var r=this._names.indexOf(n);r>=0&&(this._names.splice(r,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(n){return this._names.indexOf(n)>=0}};function tdn(n,r){for(var o=vVe(n),l=-1,u=r.length;++l=0&&(o=r.slice(l+1),r=r.slice(0,l)),{type:r,name:o}})}function HNr(n){return function(){var r=this.__on;if(r){for(var o=0,l=-1,u=r.length,d;o()=>n;function VBe(n,{sourceEvent:r,subject:o,target:l,identifier:u,active:d,x:h,y:w,dx:v,dy:y,dispatch:E}){Object.defineProperties(this,{type:{value:n,enumerable:!0,configurable:!0},sourceEvent:{value:r,enumerable:!0,configurable:!0},subject:{value:o,enumerable:!0,configurable:!0},target:{value:l,enumerable:!0,configurable:!0},identifier:{value:u,enumerable:!0,configurable:!0},active:{value:d,enumerable:!0,configurable:!0},x:{value:h,enumerable:!0,configurable:!0},y:{value:w,enumerable:!0,configurable:!0},dx:{value:v,enumerable:!0,configurable:!0},dy:{value:y,enumerable:!0,configurable:!0},_:{value:E}})}VBe.prototype.on=function(){var n=this._.on.apply(this._,arguments);return n===this._?this:n};function QNr(n){return!n.ctrlKey&&!n.button}function ZNr(){return this.parentNode}function eMr(n,r){return r??{x:n.x,y:n.y}}function tMr(){return navigator.maxTouchPoints||"ontouchstart"in this}function nMr(){var n=QNr,r=ZNr,o=eMr,l=tMr,u={},d=u1e("start","drag","end"),h=0,w,v,y,E,A=0;function C(Q){Q.on("mousedown.drag",R).filter(l).on("touchstart.drag",L).on("touchmove.drag",H,YNr).on("touchend.drag touchcancel.drag",G).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function R(Q,te){if(!(E||!n.call(this,Q,te))){var pe=j(this,r.call(this,Q,te),Q,te,"mouse");pe&&(yS(Q.view).on("mousemove.drag",O,RX).on("mouseup.drag",M,RX),odn(Q.view),oLe(Q),y=!1,w=Q.clientX,v=Q.clientY,pe("start",Q))}}function O(Q){if(yL(Q),!y){var te=Q.clientX-w,pe=Q.clientY-v;y=te*te+pe*pe>A}u.mouse("drag",Q)}function M(Q){yS(Q.view).on("mousemove.drag mouseup.drag",null),sdn(Q.view,y),yL(Q),u.mouse("end",Q)}function L(Q,te){if(n.call(this,Q,te)){var pe=Q.changedTouches,Le=r.call(this,Q,te),Ee=pe.length,le,xe;for(le=0;le>8&15|r>>4&240,r>>4&15|r&240,(r&15)<<4|r&15,1):o===8?hfe(r>>24&255,r>>16&255,r>>8&255,(r&255)/255):o===4?hfe(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|r&240,((r&15)<<4|r&15)/255):null):(r=iMr.exec(n))?new k0(r[1],r[2],r[3],1):(r=oMr.exec(n))?new k0(r[1]*255/100,r[2]*255/100,r[3]*255/100,1):(r=sMr.exec(n))?hfe(r[1],r[2],r[3],r[4]):(r=lMr.exec(n))?hfe(r[1]*255/100,r[2]*255/100,r[3]*255/100,r[4]):(r=aMr.exec(n))?lJt(r[1],r[2]/100,r[3]/100,1):(r=cMr.exec(n))?lJt(r[1],r[2]/100,r[3]/100,r[4]):tJt.hasOwnProperty(n)?iJt(tJt[n]):n==="transparent"?new k0(NaN,NaN,NaN,0):null}function iJt(n){return new k0(n>>16&255,n>>8&255,n&255,1)}function hfe(n,r,o,l){return l<=0&&(n=r=o=NaN),new k0(n,r,o,l)}function dMr(n){return n instanceof UJ||(n=AX(n)),n?(n=n.rgb(),new k0(n.r,n.g,n.b,n.opacity)):new k0}function zBe(n,r,o,l){return arguments.length===1?dMr(n):new k0(n,r,o,l??1)}function k0(n,r,o,l){this.r=+n,this.g=+r,this.b=+o,this.opacity=+l}_Ve(k0,zBe,ldn(UJ,{brighter(n){return n=n==null?Ohe:Math.pow(Ohe,n),new k0(this.r*n,this.g*n,this.b*n,this.opacity)},darker(n){return n=n==null?xX:Math.pow(xX,n),new k0(this.r*n,this.g*n,this.b*n,this.opacity)},rgb(){return this},clamp(){return new k0(gP(this.r),gP(this.g),gP(this.b),Nhe(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:oJt,formatHex:oJt,formatHex8:hMr,formatRgb:sJt,toString:sJt}));function oJt(){return`#${K8(this.r)}${K8(this.g)}${K8(this.b)}`}function hMr(){return`#${K8(this.r)}${K8(this.g)}${K8(this.b)}${K8((isNaN(this.opacity)?1:this.opacity)*255)}`}function sJt(){const n=Nhe(this.opacity);return`${n===1?"rgb(":"rgba("}${gP(this.r)}, ${gP(this.g)}, ${gP(this.b)}${n===1?")":`, ${n})`}`}function Nhe(n){return isNaN(n)?1:Math.max(0,Math.min(1,n))}function gP(n){return Math.max(0,Math.min(255,Math.round(n)||0))}function K8(n){return n=gP(n),(n<16?"0":"")+n.toString(16)}function lJt(n,r,o,l){return l<=0?n=r=o=NaN:o<=0||o>=1?n=r=NaN:r<=0&&(n=NaN),new vS(n,r,o,l)}function adn(n){if(n instanceof vS)return new vS(n.h,n.s,n.l,n.opacity);if(n instanceof UJ||(n=AX(n)),!n)return new vS;if(n instanceof vS)return n;n=n.rgb();var r=n.r/255,o=n.g/255,l=n.b/255,u=Math.min(r,o,l),d=Math.max(r,o,l),h=NaN,w=d-u,v=(d+u)/2;return w?(r===d?h=(o-l)/w+(o0&&v<1?0:h,new vS(h,w,v,n.opacity)}function pMr(n,r,o,l){return arguments.length===1?adn(n):new vS(n,r,o,l??1)}function vS(n,r,o,l){this.h=+n,this.s=+r,this.l=+o,this.opacity=+l}_Ve(vS,pMr,ldn(UJ,{brighter(n){return n=n==null?Ohe:Math.pow(Ohe,n),new vS(this.h,this.s,this.l*n,this.opacity)},darker(n){return n=n==null?xX:Math.pow(xX,n),new vS(this.h,this.s,this.l*n,this.opacity)},rgb(){var n=this.h%360+(this.h<0)*360,r=isNaN(n)||isNaN(this.s)?0:this.s,o=this.l,l=o+(o<.5?o:1-o)*r,u=2*o-l;return new k0(sLe(n>=240?n-240:n+120,u,l),sLe(n,u,l),sLe(n<120?n+240:n-120,u,l),this.opacity)},clamp(){return new vS(aJt(this.h),pfe(this.s),pfe(this.l),Nhe(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const n=Nhe(this.opacity);return`${n===1?"hsl(":"hsla("}${aJt(this.h)}, ${pfe(this.s)*100}%, ${pfe(this.l)*100}%${n===1?")":`, ${n})`}`}}));function aJt(n){return n=(n||0)%360,n<0?n+360:n}function pfe(n){return Math.max(0,Math.min(1,n||0))}function sLe(n,r,o){return(n<60?r+(o-r)*n/60:n<180?o:n<240?r+(o-r)*(240-n)/60:r)*255}const cdn=n=>()=>n;function bMr(n,r){return function(o){return n+o*r}}function gMr(n,r,o){return n=Math.pow(n,o),r=Math.pow(r,o)-n,o=1/o,function(l){return Math.pow(n+l*r,o)}}function wMr(n){return(n=+n)==1?udn:function(r,o){return o-r?gMr(r,o,n):cdn(isNaN(r)?o:r)}}function udn(n,r){var o=r-n;return o?bMr(n,o):cdn(isNaN(n)?r:n)}const cJt=function n(r){var o=wMr(r);function l(u,d){var h=o((u=zBe(u)).r,(d=zBe(d)).r),w=o(u.g,d.g),v=o(u.b,d.b),y=udn(u.opacity,d.opacity);return function(E){return u.r=h(E),u.g=w(E),u.b=v(E),u.opacity=y(E),u+""}}return l.gamma=n,l}(1);function rT(n,r){return n=+n,r=+r,function(o){return n*(1-o)+r*o}}var KBe=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,lLe=new RegExp(KBe.source,"g");function mMr(n){return function(){return n}}function yMr(n){return function(r){return n(r)+""}}function vMr(n,r){var o=KBe.lastIndex=lLe.lastIndex=0,l,u,d,h=-1,w=[],v=[];for(n=n+"",r=r+"";(l=KBe.exec(n))&&(u=lLe.exec(r));)(d=u.index)>o&&(d=r.slice(o,d),w[h]?w[h]+=d:w[++h]=d),(l=l[0])===(u=u[0])?w[h]?w[h]+=u:w[++h]=u:(w[++h]=null,v.push({i:h,x:rT(l,u)})),o=lLe.lastIndex;return o180?E+=360:E-y>180&&(y+=360),C.push({i:A.push(u(A)+"rotate(",null,l)-2,x:rT(y,E)})):E&&A.push(u(A)+"rotate("+E+l)}function w(y,E,A,C){y!==E?C.push({i:A.push(u(A)+"skewX(",null,l)-2,x:rT(y,E)}):E&&A.push(u(A)+"skewX("+E+l)}function v(y,E,A,C,R,O){if(y!==A||E!==C){var M=R.push(u(R)+"scale(",null,",",null,")");O.push({i:M-4,x:rT(y,A)},{i:M-2,x:rT(E,C)})}else(A!==1||C!==1)&&R.push(u(R)+"scale("+A+","+C+")")}return function(y,E){var A=[],C=[];return y=n(y),E=n(E),d(y.translateX,y.translateY,E.translateX,E.translateY,A,C),h(y.rotate,E.rotate,A,C),w(y.skewX,E.skewX,A,C),v(y.scaleX,y.scaleY,E.scaleX,E.scaleY,A,C),y=E=null,function(R){for(var O=-1,M=C.length,L;++O=0&&n._call.call(void 0,r),n=n._next;--QL}function dJt(){jP=(Dhe=TX.now())+d1e,QL=GK=0;try{$Mr()}finally{QL=0,PMr(),jP=0}}function IMr(){var n=TX.now(),r=n-Dhe;r>hdn&&(d1e-=r,Dhe=n)}function PMr(){for(var n,r=Mhe,o,l=1/0;r;)r._call?(l>r._time&&(l=r._time),n=r,r=r._next):(o=r._next,r._next=null,r=n?n._next=o:Mhe=o);VK=n,XBe(l)}function XBe(n){if(!QL){GK&&(GK=clearTimeout(GK));var r=n-jP;r>24?(n<1/0&&(GK=setTimeout(dJt,n-TX.now()-d1e)),mK&&(mK=clearInterval(mK))):(mK||(Dhe=TX.now(),mK=setInterval(IMr,hdn)),QL=1,pdn(dJt))}}function hJt(n,r,o){var l=new Lhe;return r=r==null?0:+r,l.restart(u=>{l.stop(),n(u+r)},r,o),l}var OMr=u1e("start","end","cancel","interrupt"),NMr=[],gdn=0,pJt=1,JBe=2,bde=3,bJt=4,YBe=5,gde=6;function h1e(n,r,o,l,u,d){var h=n.__transition;if(!h)n.__transition={};else if(o in h)return;MMr(n,o,{name:r,index:l,group:u,on:OMr,tween:NMr,time:d.time,delay:d.delay,duration:d.duration,ease:d.ease,timer:null,state:gdn})}function EVe(n,r){var o=PS(n,r);if(o.state>gdn)throw new Error("too late; already scheduled");return o}function Ck(n,r){var o=PS(n,r);if(o.state>bde)throw new Error("too late; already running");return o}function PS(n,r){var o=n.__transition;if(!o||!(o=o[r]))throw new Error("transition not found");return o}function MMr(n,r,o){var l=n.__transition,u;l[r]=o,o.timer=bdn(d,0,o.time);function d(y){o.state=pJt,o.timer.restart(h,o.delay,o.time),o.delay<=y&&h(y-o.delay)}function h(y){var E,A,C,R;if(o.state!==pJt)return v();for(E in l)if(R=l[E],R.name===o.name){if(R.state===bde)return hJt(h);R.state===bJt?(R.state=gde,R.timer.stop(),R.on.call("interrupt",n,n.__data__,R.index,R.group),delete l[E]):+EJBe&&l.state=0&&(r=r.slice(0,o)),!r||r==="start"})}function f9r(n,r,o){var l,u,d=u9r(r)?EVe:Ck;return function(){var h=d(this,n),w=h.on;w!==l&&(u=(l=w).copy()).on(r,o),h.on=u}}function d9r(n,r){var o=this._id;return arguments.length<2?PS(this.node(),o).on.on(n):this.each(f9r(o,n,r))}function h9r(n){return function(){var r=this.parentNode;for(var o in this.__transition)if(+o!==n)return;r&&r.removeChild(this)}}function p9r(){return this.on("end.remove",h9r(this._id))}function b9r(n){var r=this._name,o=this._id;typeof n!="function"&&(n=yVe(n));for(var l=this._groups,u=l.length,d=new Array(u),h=0;h()=>n;function B9r(n,{sourceEvent:r,target:o,transform:l,dispatch:u}){Object.defineProperties(this,{type:{value:n,enumerable:!0,configurable:!0},sourceEvent:{value:r,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},transform:{value:l,enumerable:!0,configurable:!0},_:{value:u}})}function UR(n,r,o){this.k=n,this.x=r,this.y=o}UR.prototype={constructor:UR,scale:function(n){return n===1?this:new UR(this.k*n,this.x,this.y)},translate:function(n,r){return n===0&r===0?this:new UR(this.k,this.x+this.k*n,this.y+this.k*r)},apply:function(n){return[n[0]*this.k+this.x,n[1]*this.k+this.y]},applyX:function(n){return n*this.k+this.x},applyY:function(n){return n*this.k+this.y},invert:function(n){return[(n[0]-this.x)/this.k,(n[1]-this.y)/this.k]},invertX:function(n){return(n-this.x)/this.k},invertY:function(n){return(n-this.y)/this.k},rescaleX:function(n){return n.copy().domain(n.range().map(this.invertX,this).map(n.invert,n))},rescaleY:function(n){return n.copy().domain(n.range().map(this.invertY,this).map(n.invert,n))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var ZL=new UR(1,0,0);UR.prototype;function aLe(n){n.stopImmediatePropagation()}function yK(n){n.preventDefault(),n.stopImmediatePropagation()}function W9r(n){return(!n.ctrlKey||n.type==="wheel")&&!n.button}function H9r(){var n=this;return n instanceof SVGElement?(n=n.ownerSVGElement||n,n.hasAttribute("viewBox")?(n=n.viewBox.baseVal,[[n.x,n.y],[n.x+n.width,n.y+n.height]]):[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]):[[0,0],[n.clientWidth,n.clientHeight]]}function gJt(){return this.__zoom||ZL}function U9r(n){return-n.deltaY*(n.deltaMode===1?.05:n.deltaMode?1:.002)*(n.ctrlKey?10:1)}function G9r(){return navigator.maxTouchPoints||"ontouchstart"in this}function V9r(n,r,o){var l=n.invertX(r[0][0])-o[0][0],u=n.invertX(r[1][0])-o[1][0],d=n.invertY(r[0][1])-o[0][1],h=n.invertY(r[1][1])-o[1][1];return n.translate(u>l?(l+u)/2:Math.min(0,l)||Math.max(0,u),h>d?(d+h)/2:Math.min(0,d)||Math.max(0,h))}function z9r(){var n=W9r,r=H9r,o=V9r,l=U9r,u=G9r,d=[0,1/0],h=[[-1/0,-1/0],[1/0,1/0]],w=250,v=AMr,y=u1e("start","zoom","end"),E,A,C,R=500,O=150,M=0,L=10;function H(me){me.property("__zoom",gJt).on("wheel.zoom",Ee,{passive:!1}).on("mousedown.zoom",le).on("dblclick.zoom",xe).filter(u).on("touchstart.zoom",be).on("touchmove.zoom",ae).on("touchend.zoom touchcancel.zoom",F).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}H.transform=function(me,ye,we,Be){var He=me.selection?me.selection():me;He.property("__zoom",gJt),me!==He?te(me,ye,we,Be):He.interrupt().each(function(){pe(this,arguments).event(Be).start().zoom(null,typeof ye=="function"?ye.apply(this,arguments):ye).end()})},H.scaleBy=function(me,ye,we,Be){H.scaleTo(me,function(){var He=this.__zoom.k,Ue=typeof ye=="function"?ye.apply(this,arguments):ye;return He*Ue},we,Be)},H.scaleTo=function(me,ye,we,Be){H.transform(me,function(){var He=r.apply(this,arguments),Ue=this.__zoom,Ge=we==null?Q(He):typeof we=="function"?we.apply(this,arguments):we,Me=Ue.invert(Ge),vt=typeof ye=="function"?ye.apply(this,arguments):ye;return o(j(G(Ue,vt),Ge,Me),He,h)},we,Be)},H.translateBy=function(me,ye,we,Be){H.transform(me,function(){return o(this.__zoom.translate(typeof ye=="function"?ye.apply(this,arguments):ye,typeof we=="function"?we.apply(this,arguments):we),r.apply(this,arguments),h)},null,Be)},H.translateTo=function(me,ye,we,Be,He){H.transform(me,function(){var Ue=r.apply(this,arguments),Ge=this.__zoom,Me=Be==null?Q(Ue):typeof Be=="function"?Be.apply(this,arguments):Be;return o(ZL.translate(Me[0],Me[1]).scale(Ge.k).translate(typeof ye=="function"?-ye.apply(this,arguments):-ye,typeof we=="function"?-we.apply(this,arguments):-we),Ue,h)},Be,He)};function G(me,ye){return ye=Math.max(d[0],Math.min(d[1],ye)),ye===me.k?me:new UR(ye,me.x,me.y)}function j(me,ye,we){var Be=ye[0]-we[0]*me.k,He=ye[1]-we[1]*me.k;return Be===me.x&&He===me.y?me:new UR(me.k,Be,He)}function Q(me){return[(+me[0][0]+ +me[1][0])/2,(+me[0][1]+ +me[1][1])/2]}function te(me,ye,we,Be){me.on("start.zoom",function(){pe(this,arguments).event(Be).start()}).on("interrupt.zoom end.zoom",function(){pe(this,arguments).event(Be).end()}).tween("zoom",function(){var He=this,Ue=arguments,Ge=pe(He,Ue).event(Be),Me=r.apply(He,Ue),vt=we==null?Q(Me):typeof we=="function"?we.apply(He,Ue):we,re=Math.max(Me[1][0]-Me[0][0],Me[1][1]-Me[0][1]),Te=He.__zoom,ct=typeof ye=="function"?ye.apply(He,Ue):ye,at=v(Te.invert(vt).concat(re/Te.k),ct.invert(vt).concat(re/ct.k));return function(Ye){if(Ye===1)Ye=ct;else{var mt=at(Ye),jt=re/mt[2];Ye=new UR(jt,vt[0]-mt[0]*jt,vt[1]-mt[1]*jt)}Ge.zoom(null,Ye)}})}function pe(me,ye,we){return!we&&me.__zooming||new Le(me,ye)}function Le(me,ye){this.that=me,this.args=ye,this.active=0,this.sourceEvent=null,this.extent=r.apply(me,ye),this.taps=0}Le.prototype={event:function(me){return me&&(this.sourceEvent=me),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(me,ye){return this.mouse&&me!=="mouse"&&(this.mouse[1]=ye.invert(this.mouse[0])),this.touch0&&me!=="touch"&&(this.touch0[1]=ye.invert(this.touch0[0])),this.touch1&&me!=="touch"&&(this.touch1[1]=ye.invert(this.touch1[0])),this.that.__zoom=ye,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(me){var ye=yS(this.that).datum();y.call(me,this.that,new B9r(me,{sourceEvent:this.sourceEvent,target:H,type:me,transform:this.that.__zoom,dispatch:y}),ye)}};function Ee(me,...ye){if(!n.apply(this,arguments))return;var we=pe(this,ye).event(me),Be=this.__zoom,He=Math.max(d[0],Math.min(d[1],Be.k*Math.pow(2,l.apply(this,arguments)))),Ue=OE(me);if(we.wheel)(we.mouse[0][0]!==Ue[0]||we.mouse[0][1]!==Ue[1])&&(we.mouse[1]=Be.invert(we.mouse[0]=Ue)),clearTimeout(we.wheel);else{if(Be.k===He)return;we.mouse=[Ue,Be.invert(Ue)],wde(this),we.start()}yK(me),we.wheel=setTimeout(Ge,O),we.zoom("mouse",o(j(G(Be,He),we.mouse[0],we.mouse[1]),we.extent,h));function Ge(){we.wheel=null,we.end()}}function le(me,...ye){if(C||!n.apply(this,arguments))return;var we=me.currentTarget,Be=pe(this,ye,!0).event(me),He=yS(me.view).on("mousemove.zoom",vt,!0).on("mouseup.zoom",re,!0),Ue=OE(me,we),Ge=me.clientX,Me=me.clientY;odn(me.view),aLe(me),Be.mouse=[Ue,this.__zoom.invert(Ue)],wde(this),Be.start();function vt(Te){if(yK(Te),!Be.moved){var ct=Te.clientX-Ge,at=Te.clientY-Me;Be.moved=ct*ct+at*at>M}Be.event(Te).zoom("mouse",o(j(Be.that.__zoom,Be.mouse[0]=OE(Te,we),Be.mouse[1]),Be.extent,h))}function re(Te){He.on("mousemove.zoom mouseup.zoom",null),sdn(Te.view,Be.moved),yK(Te),Be.event(Te).end()}}function xe(me,...ye){if(n.apply(this,arguments)){var we=this.__zoom,Be=OE(me.changedTouches?me.changedTouches[0]:me,this),He=we.invert(Be),Ue=we.k*(me.shiftKey?.5:2),Ge=o(j(G(we,Ue),Be,He),r.apply(this,ye),h);yK(me),w>0?yS(this).transition().duration(w).call(te,Ge,Be,me):yS(this).call(H.transform,Ge,Be,me)}}function be(me,...ye){if(n.apply(this,arguments)){var we=me.touches,Be=we.length,He=pe(this,ye,me.changedTouches.length===Be).event(me),Ue,Ge,Me,vt;for(aLe(me),Ge=0;Ge(n.Left="left",n.Top="top",n.Right="right",n.Bottom="bottom",n))($i||{}),RVe=(n=>(n.Partial="partial",n.Full="full",n))(RVe||{}),F8=(n=>(n.Bezier="default",n.SimpleBezier="simple-bezier",n.Straight="straight",n.Step="step",n.SmoothStep="smoothstep",n))(F8||{}),FP=(n=>(n.Strict="strict",n.Loose="loose",n))(FP||{}),jhe=(n=>(n.Arrow="arrow",n.ArrowClosed="arrowclosed",n))(jhe||{}),Pq=(n=>(n.Free="free",n.Vertical="vertical",n.Horizontal="horizontal",n))(Pq||{});function QBe(n){var r,o;const l=((o=(r=n.composedPath)==null?void 0:r.call(n))==null?void 0:o[0])||n.target,u=typeof(l==null?void 0:l.hasAttribute)=="function"?l.hasAttribute("contenteditable"):!1,d=typeof(l==null?void 0:l.closest)=="function"?l.closest(".nokey"):null;return["INPUT","SELECT","TEXTAREA"].includes(l==null?void 0:l.nodeName)||u||!!d}function K9r(n){return n.ctrlKey||n.metaKey||n.shiftKey}function wJt(n,r,o,l){const u=r.replace("+",` +`,o=this.i,u=cS;break;case Du:return this.text+=l.slice(o),!1}if(u===r)return this.text+=l.slice(o,this.prevI),!0}}captureNameChars(){const{chunk:r,i:o}=this;for(;;){const l=this.getCode();if(l===Du)return this.name+=r.slice(o),Du;if(!tXt(l))return this.name+=r.slice(o,this.prevI),l===CE?cS:l}}skipSpaces(){for(;;){const r=this.getCodeNorm();if(r===Du||!v0(r))return r}}setXMLVersion(r){this.currentXMLVersion=r,r==="1.0"?(this.isChar=b5r,this.getCode=this.getCode10):(this.isChar=w5r,this.getCode=this.getCode11)}sBegin(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=E5r}sBeginWhitespace(){const r=this.i,o=this.skipSpaces();switch(this.prevI!==r&&(this.xmlDeclPossible=!1),o){case tT:if(this.state=MDe,this.text.length!==0)throw new Error("no-empty text at start");break;case Du:break;default:this.unget(),this.state=Xg,this.xmlDeclPossible=!1}}sDoctype(){var r;const o=this.captureTo(q5r);switch(o){case Eh:{(r=this.doctypeHandler)===null||r===void 0||r.call(this,this.text),this.text="",this.state=Xg,this.doctype=!0;break}case Du:break;default:this.text+=String.fromCodePoint(o),o===rfn?this.state=uD:cfe(o)&&(this.state=k5r,this.q=o)}}sDoctypeQuote(){const r=this.q;this.captureToChar(r)&&(this.text+=String.fromCodePoint(r),this.q=null,this.state=ODe)}sDTD(){const r=this.captureTo(X5r);r!==Du&&(this.text+=String.fromCodePoint(r),r===OD?this.state=ODe:r===tT?this.state=x5r:cfe(r)&&(this.state=R5r,this.q=r))}sDTDQuoted(){const r=this.q;this.captureToChar(r)&&(this.text+=String.fromCodePoint(r),this.state=uD,this.q=null)}sDTDOpenWaka(){const r=this.getCodeNorm();switch(this.text+=String.fromCodePoint(r),r){case uXt:this.state=C5r,this.openWakaBang="";break;case Up:this.state=$5r;break;default:this.state=uD}}sDTDOpenWakaBang(){const r=String.fromCodePoint(this.getCodeNorm()),o=this.openWakaBang+=r;this.text+=r,o!=="-"&&(this.state=o==="--"?NDe:uD,this.openWakaBang="")}sDTDComment(){this.captureToChar(lfe)&&(this.text+="-",this.state=A5r)}sDTDCommentEnding(){const r=this.getCodeNorm();this.text+=String.fromCodePoint(r),this.state=r===lfe?T5r:NDe}sDTDCommentEnded(){const r=this.getCodeNorm();this.text+=String.fromCodePoint(r),r===Eh?this.state=uD:(this.fail("malformed comment."),this.state=NDe)}sDTDPI(){this.captureToChar(Up)&&(this.text+="?",this.state=I5r)}sDTDPIEnding(){const r=this.getCodeNorm();this.text+=String.fromCodePoint(r),r===Eh&&(this.state=uD)}sText(){this.tags.length!==0?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let{i:r}=this;const{chunk:o}=this;e:for(;;)switch(this.getCode()){case CE:this.entity+=`${o.slice(r,this.prevI)} +`,r=this.i;break;case K5r:{const{entityReturnState:l}=this,u=this.entity+o.slice(r,this.prevI);this.state=l;let d;u===""?(this.fail("empty entity name."),d="&;"):(d=this.parseEntity(u),this.entity=""),(l!==Xg||this.textHandler!==void 0)&&(this.text+=d);break e}case Du:this.entity+=o.slice(r);break e}}sOpenWaka(){const r=this.getCode();if(bK(r))this.state=H5r,this.unget(),this.xmlDeclPossible=!1;else switch(r){case afe:this.state=V5r,this.xmlDeclPossible=!1;break;case uXt:this.state=P5r,this.openWakaBang="",this.xmlDeclPossible=!1;break;case Up:this.state=L5r;break;default:this.fail("disallowed character in tag name"),this.state=Xg,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=LDe,this.openWakaBang="";break;case"--":this.state=DDe,this.openWakaBang="";break;case"DOCTYPE":this.state=ODe,(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(lfe)&&(this.state=O5r)}sCommentEnding(){var r;const o=this.getCodeNorm();o===lfe?(this.state=N5r,(r=this.commentHandler)===null||r===void 0||r.call(this,this.text),this.text=""):(this.text+=`-${String.fromCodePoint(o)}`,this.state=DDe)}sCommentEnded(){const r=this.getCodeNorm();r!==Eh?(this.fail("malformed comment."),this.text+=`--${String.fromCodePoint(r)}`,this.state=DDe):this.state=Xg}sCData(){this.captureToChar(OD)&&(this.state=M5r)}sCDataEnding(){const r=this.getCodeNorm();r===OD?this.state=D5r:(this.text+=`]${String.fromCodePoint(r)}`,this.state=LDe)}sCDataEnding2(){var r;const o=this.getCodeNorm();switch(o){case Eh:{(r=this.cdataHandler)===null||r===void 0||r.call(this,this.text),this.text="",this.state=Xg;break}case OD:this.text+="]";break;default:this.text+=`]]${String.fromCodePoint(o)}`,this.state=LDe}}sPIFirstChar(){const r=this.getCodeNorm();this.nameStartCheck(r)?(this.piTarget+=String.fromCodePoint(r),this.state=rXt):r===Up||v0(r)?(this.fail("processing instruction without a target."),this.state=r===Up?sfe:jDe):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(r),this.state=rXt)}sPIRest(){const{chunk:r,i:o}=this;for(;;){const l=this.getCodeNorm();if(l===Du){this.piTarget+=r.slice(o);return}if(!this.nameCheck(l)){this.piTarget+=r.slice(o,this.prevI);const u=l===Up;u||v0(l)?this.piTarget==="xml"?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=u?g8:iXt):this.state=u?sfe:jDe:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(l));break}}}sPIBody(){if(this.text.length===0){const r=this.getCodeNorm();r===Up?this.state=sfe:v0(r)||(this.text=String.fromCodePoint(r))}else this.captureToChar(Up)&&(this.state=sfe)}sPIEnding(){var r;const o=this.getCodeNorm();if(o===Eh){const{piTarget:l}=this;l.toLowerCase()==="xml"&&this.fail("the XML declaration must appear at the start of the document."),(r=this.piHandler)===null||r===void 0||r.call(this,{target:l,body:this.text}),this.piTarget=this.text="",this.state=Xg}else o===Up?this.text+="?":(this.text+=`?${String.fromCodePoint(o)}`,this.state=jDe);this.xmlDeclPossible=!1}sXMLDeclNameStart(){const r=this.skipSpaces();if(r===Up){this.state=g8;return}r!==Du&&(this.state=j5r,this.name=String.fromCodePoint(r))}sXMLDeclName(){const r=this.captureTo(J5r);if(r===Up){this.state=g8,this.name+=this.text,this.text="",this.fail("XML declaration is incomplete.");return}if(v0(r)||r===PD){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=r===PD?oXt:F5r}}sXMLDeclEq(){const r=this.getCodeNorm();if(r===Up){this.state=g8,this.fail("XML declaration is incomplete.");return}v0(r)||(r!==PD&&this.fail("value required."),this.state=oXt)}sXMLDeclValueStart(){const r=this.getCodeNorm();if(r===Up){this.state=g8,this.fail("XML declaration is incomplete.");return}v0(r)||(cfe(r)?this.q=r:(this.fail("value must be quoted."),this.q=cXt),this.state=B5r)}sXMLDeclValue(){const r=this.captureTo([this.q,Up]);if(r===Up){this.state=g8,this.text="",this.fail("XML declaration is incomplete.");return}if(r===Du)return;const o=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];const l=o;this.xmlDecl.version=l,/^1\.[0-9]+$/.test(l)?this.opt.forceXMLVersion||this.setXMLVersion(l):this.fail("version number must match /^1\\.[0-9]+$/.");break}case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(o)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=o;break;case"standalone":o!=="yes"&&o!=="no"&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=o;break}this.name="",this.state=W5r}sXMLDeclSeparator(){const r=this.getCodeNorm();if(r===Up){this.state=g8;return}v0(r)||(this.fail("whitespace required."),this.unget()),this.state=iXt}sXMLDeclEnding(){var r;this.getCodeNorm()===Eh?(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."),(r=this.xmldeclHandler)===null||r===void 0||r.call(this,this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=Xg):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}sOpenTag(){var r;const o=this.captureNameChars();if(o===Du)return;const l=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=l.ns=Object.create(null)),(r=this.openTagStartHandler)===null||r===void 0||r.call(this,l),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),o){case Eh:this.openTag();break;case afe:this.state=FDe;break;default:v0(o)||this.fail("disallowed character in tag name."),this.state=gK}}sOpenTagSlash(){this.getCode()===Eh?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=gK)}sAttrib(){const r=this.skipSpaces();r!==Du&&(bK(r)?(this.unget(),this.state=BDe):r===Eh?this.openTag():r===afe?this.state=FDe:this.fail("disallowed character in attribute name."))}sAttribName(){const r=this.captureNameChars();r===PD?this.state=sXt:v0(r)?this.state=U5r:r===Eh?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):r!==Du&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){const r=this.skipSpaces();switch(r){case Du:return;case PD:this.state=sXt;break;default:this.fail("attribute without value."),this.text="",this.name="",r===Eh?this.openTag():bK(r)?(this.unget(),this.state=BDe):(this.fail("disallowed character in attribute name."),this.state=gK)}}sAttribValue(){const r=this.getCodeNorm();cfe(r)?(this.q=r,this.state=lXt):v0(r)||(this.fail("unquoted attribute value."),this.state=aXt,this.unget())}sAttribValueQuoted(){const{q:r,chunk:o}=this;let{i:l}=this;for(;;)switch(this.getCode()){case r:this.pushAttrib(this.name,this.text+o.slice(l,this.prevI)),this.name=this.text="",this.q=null,this.state=G5r;return;case WK:this.text+=o.slice(l,this.prevI),this.state=ofe,this.entityReturnState=lXt;return;case cS:case CE:case WDe:this.text+=`${o.slice(l,this.prevI)} `,l=this.i;break;case tT:this.text+=o.slice(l,this.prevI),this.fail("disallowed character.");return;case Du:this.text+=o.slice(l);return}}sAttribValueClosed(){const r=this.getCodeNorm();v0(r)?this.state=gK:r===Eh?this.openTag():r===afe?this.state=FDe:bK(r)?(this.fail("no whitespace between attributes."),this.unget(),this.state=BDe):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){const r=this.captureTo(Y5r);switch(r){case WK:this.state=ofe,this.entityReturnState=aXt;break;case tT:this.fail("disallowed character.");break;case Du:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",r===Eh?this.openTag():this.state=gK}}sCloseTag(){const r=this.captureNameChars();r===Eh?this.closeTag():v0(r)?this.state=z5r:r!==Du&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case Eh:this.closeTag();break;case Du:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:r,forbiddenState:o}=this;const{chunk:l,textHandler:u}=this;e:for(;;)switch(this.getCode()){case tT:{if(this.state=MDe,u!==void 0){const{text:d}=this,h=l.slice(r,this.prevI);d.length!==0?(u(d+h),this.text=""):h.length!==0&&u(h)}o=w8;break e}case WK:this.state=ofe,this.entityReturnState=Xg,u!==void 0&&(this.text+=l.slice(r,this.prevI)),o=w8;break e;case OD:switch(o){case w8:o=hXt;break;case hXt:o=UDe;break;case UDe:break;default:throw new Error("impossible state")}break;case Eh:o===UDe&&this.fail('the string "]]>" is disallowed in char data.'),o=w8;break;case CE:u!==void 0&&(this.text+=`${l.slice(r,this.prevI)} +`),r=this.i,o=w8;break;case Du:u!==void 0&&(this.text+=l.slice(r));break e;default:o=w8}this.forbiddenState=o}handleTextOutsideRoot(){let{i:r}=this;const{chunk:o,textHandler:l}=this;let u=!1;e:for(;;){const d=this.getCode();switch(d){case tT:{if(this.state=MDe,l!==void 0){const{text:h}=this,w=o.slice(r,this.prevI);h.length!==0?(l(h+w),this.text=""):w.length!==0&&l(w)}break e}case WK:this.state=ofe,this.entityReturnState=Xg,l!==void 0&&(this.text+=o.slice(r,this.prevI)),u=!0;break e;case CE:l!==void 0&&(this.text+=`${o.slice(r,this.prevI)} +`),r=this.i;break;case Du:l!==void 0&&(this.text+=o.slice(r));break e;default:v0(d)||(u=!0)}}u&&(!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(r,o){var l;const{prefix:u,local:d}=this.qname(r),h={name:r,prefix:u,local:d,value:o};if(this.attribList.push(h),(l=this.attributeHandler)===null||l===void 0||l.call(this,h),u==="xmlns"){const w=o.trim();this.currentXMLVersion==="1.0"&&w===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[d]=w,DBe(this,d,w)}else if(r==="xmlns"){const w=o.trim();this.topNS[""]=w,DBe(this,"",w)}}pushAttribPlain(r,o){var l;const u={name:r,value:o};this.attribList.push(u),(l=this.attributeHandler)===null||l===void 0||l.call(this,u)}end(){var r,o;this.sawRoot||this.fail("document must contain a root element.");const{tags:l}=this;for(;l.length>0;){const d=l.pop();this.fail(`unclosed tag: ${d.name}`)}this.state!==nXt&&this.state!==Xg&&this.fail("unexpected end.");const{text:u}=this;return u.length!==0&&((r=this.textHandler)===null||r===void 0||r.call(this,u),this.text=""),this._closed=!0,(o=this.endHandler)===null||o===void 0||o.call(this),this._init(),this}resolve(r){var o,l;let u=this.topNS[r];if(u!==void 0)return u;const{tags:d}=this;for(let h=d.length-1;h>=0;h--)if(u=d[h].ns[r],u!==void 0)return u;return u=this.ns[r],u!==void 0?u:(l=(o=this.opt).resolvePrefix)===null||l===void 0?void 0:l.call(o,r)}qname(r){const o=r.indexOf(":");if(o===-1)return{prefix:"",local:r};const l=r.slice(o+1),u=r.slice(0,o);return(u===""||l===""||l.includes(":"))&&this.fail(`malformed name: ${r}.`),{prefix:u,local:l}}processAttribsNS(){var r;const{attribList:o}=this,l=this.tag;{const{prefix:h,local:w}=this.qname(l.name);l.prefix=h,l.local=w;const v=l.uri=(r=this.resolve(h))!==null&&r!==void 0?r:"";h!==""&&(h==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),v===""&&(this.fail(`unbound namespace prefix: ${JSON.stringify(h)}.`),l.uri=h))}if(o.length===0)return;const{attributes:u}=l,d=new Set;for(const h of o){const{name:w,prefix:v,local:y}=h;let E,A;v===""?(E=w==="xmlns"?UD:"",A=w):(E=this.resolve(v),E===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(v)}.`),E=v),A=`{${E}}${y}`),d.has(A)&&this.fail(`duplicate attribute: ${A}.`),d.add(A),h.uri=E,u[w]=h}this.attribList=[]}processAttribsPlain(){const{attribList:r}=this,o=this.tag.attributes;for(const{name:l,value:u}of r)o[l]!==void 0&&this.fail(`duplicate attribute: ${l}.`),o[l]=u;this.attribList=[]}openTag(){var r;this.processAttribs();const{tags:o}=this,l=this.tag;l.isSelfClosing=!1,(r=this.openTagHandler)===null||r===void 0||r.call(this,l),o.push(l),this.state=Xg,this.name=""}openSelfClosingTag(){var r,o,l;this.processAttribs();const{tags:u}=this,d=this.tag;d.isSelfClosing=!0,(r=this.openTagHandler)===null||r===void 0||r.call(this,d),(o=this.closeTagHandler)===null||o===void 0||o.call(this,d),(this.tag=(l=u[u.length-1])!==null&&l!==void 0?l:null)===null&&(this.closedRoot=!0),this.state=Xg,this.name=""}closeTag(){const{tags:r,name:o}=this;if(this.state=Xg,this.name="",o===""){this.fail("weird empty close tag."),this.text+="";return}const l=this.closeTagHandler;let u=r.length;for(;u-- >0;){const d=this.tag=r.pop();if(this.topNS=d.ns,l==null||l(d),d.name===o)break;this.fail("unexpected close tag.")}u===0?this.closedRoot=!0:u<0&&(this.fail(`unmatched closing tag: ${o}.`),this.text+=``)}parseEntity(r){if(r[0]!=="#"){const l=this.ENTITIES[r];return l!==void 0?l:(this.fail(this.isName(r)?"undefined entity.":"disallowed character in entity name."),`&${r};`)}let o=NaN;return r[1]==="x"&&/^#x[0-9a-f]+$/i.test(r)?o=parseInt(r.slice(2),16):/^#[0-9]+$/.test(r)&&(o=parseInt(r.slice(1),10)),this.isChar(o)?String.fromCodePoint(o):(this.fail("malformed character entity."),`&${r};`)}}qL.SaxesParser=t8r;var ofn={exports:{}},GDe={exports:{}},Vf={ArrayIsArray(n){return Array.isArray(n)},ArrayPrototypeIncludes(n,r){return n.includes(r)},ArrayPrototypeIndexOf(n,r){return n.indexOf(r)},ArrayPrototypeJoin(n,r){return n.join(r)},ArrayPrototypeMap(n,r){return n.map(r)},ArrayPrototypePop(n,r){return n.pop(r)},ArrayPrototypePush(n,r){return n.push(r)},ArrayPrototypeSlice(n,r,o){return n.slice(r,o)},Error,FunctionPrototypeCall(n,r,...o){return n.call(r,...o)},FunctionPrototypeSymbolHasInstance(n,r){return Function.prototype[Symbol.hasInstance].call(n,r)},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(n,r){return Object.defineProperties(n,r)},ObjectDefineProperty(n,r,o){return Object.defineProperty(n,r,o)},ObjectGetOwnPropertyDescriptor(n,r){return Object.getOwnPropertyDescriptor(n,r)},ObjectKeys(n){return Object.keys(n)},ObjectSetPrototypeOf(n,r){return Object.setPrototypeOf(n,r)},Promise,PromisePrototypeCatch(n,r){return n.catch(r)},PromisePrototypeThen(n,r,o){return n.then(r,o)},PromiseReject(n){return Promise.reject(n)},PromiseResolve(n){return Promise.resolve(n)},ReflectApply:Reflect.apply,RegExpPrototypeTest(n,r){return n.test(r)},SafeSet:Set,String,StringPrototypeSlice(n,r,o){return n.slice(r,o)},StringPrototypeToLowerCase(n){return n.toLowerCase()},StringPrototypeToUpperCase(n){return n.toUpperCase()},StringPrototypeTrim(n){return n.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(n,r,o){return n.set(r,o)},Boolean,Uint8Array},sfn={exports:{}};(function(n){const r=Kr,{kResistStopPropagation:o,SymbolDispose:l}=Vf,u=globalThis.AbortSignal||$o().AbortSignal,d=globalThis.AbortController||$o().AbortController,h=Object.getPrototypeOf(async function(){}).constructor,w=globalThis.Blob||r.Blob,v=typeof w<"u"?function(R){return R instanceof w}:function(R){return!1},y=(C,R)=>{if(C!==void 0&&(C===null||typeof C!="object"||!("aborted"in C)))throw new ERR_INVALID_ARG_TYPE(R,"AbortSignal",C)},E=(C,R)=>{if(typeof C!="function")throw new ERR_INVALID_ARG_TYPE(R,"Function",C)};class A extends Error{constructor(R){if(!Array.isArray(R))throw new TypeError(`Expected input to be an Array, got ${typeof R}`);let O="";for(let M=0;M{C=M,R=L}),resolve:C,reject:R}},promisify(C){return new Promise((R,O)=>{C((M,...L)=>M?O(M):R(...L))})},debuglog(){return function(){}},format(C,...R){return C.replace(/%([sdifj])/g,function(...[O,M]){const L=R.shift();return M==="f"?L.toFixed(6):M==="j"?JSON.stringify(L):M==="s"&&typeof L=="object"?`${L.constructor!==Object?L.constructor.name:""} {}`.trim():L.toString()})},inspect(C){switch(typeof C){case"string":if(C.includes("'"))if(C.includes('"')){if(!C.includes("`")&&!C.includes("${"))return`\`${C}\``}else return`"${C}"`;return`'${C}'`;case"number":return isNaN(C)?"NaN":Object.is(C,-0)?String(C):C;case"bigint":return`${String(C)}n`;case"boolean":case"undefined":return String(C);case"object":return"{}"}},types:{isAsyncFunction(C){return C instanceof h},isArrayBufferView(C){return ArrayBuffer.isView(C)}},isBlob:v,deprecate(C,R){return C},addAbortListener:Ns.addAbortListener||function(R,O){if(R===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",R);y(R,"signal"),E(O,"listener");let M;return R.aborted?queueMicrotask(()=>O()):(R.addEventListener("abort",O,{__proto__:null,once:!0,[o]:!0}),M=()=>{R.removeEventListener("abort",O)}),{__proto__:null,[l](){var L;(L=M)===null||L===void 0||L()}}},AbortSignalAny:u.any||function(R){if(R.length===1)return R[0];const O=new d,M=()=>O.abort();return R.forEach(L=>{y(L,"signals"),L.addEventListener("abort",M,{once:!0})}),O.signal.addEventListener("abort",()=>{R.forEach(L=>L.removeEventListener("abort",M))},{once:!0}),O.signal}},n.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(sfn);var w1=sfn.exports,pVe={};const{format:n8r,inspect:Phe,AggregateError:r8r}=w1,i8r=globalThis.AggregateError||r8r,o8r=Symbol("kIsNodeError"),s8r=["string","function","number","object","Function","Object","boolean","bigint","symbol"],l8r=/^([A-Z][a-z0-9]*)+$/,a8r="__node_internal_",t1e={};function pP(n,r){if(!n)throw new t1e.ERR_INTERNAL_ASSERTION(r)}function bXt(n){let r="",o=n.length;const l=n[0]==="-"?1:0;for(;o>=l+4;o-=3)r=`_${n.slice(o-3,o)}${r}`;return`${n.slice(0,o)}${r}`}function c8r(n,r,o){if(typeof r=="function")return pP(r.length<=o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${r.length}).`),r(...o);const l=(r.match(/%[dfijoOs]/g)||[]).length;return pP(l===o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${l}).`),o.length===0?r:n8r(r,...o)}function ib(n,r,o){o||(o=Error);class l extends o{constructor(...d){super(c8r(n,r,d))}toString(){return`${this.name} [${n}]: ${this.message}`}}Object.defineProperties(l.prototype,{name:{value:o.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${n}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),l.prototype.code=n,l.prototype[o8r]=!0,t1e[n]=l}function gXt(n){const r=a8r+n.name;return Object.defineProperty(n,"name",{value:r}),n}function u8r(n,r){if(n&&r&&n!==r){if(Array.isArray(r.errors))return r.errors.push(n),r;const o=new i8r([r,n],r.message);return o.code=r.code,o}return n||r}let f8r=class extends Error{constructor(r="The operation was aborted",o=void 0){if(o!==void 0&&typeof o!="object")throw new t1e.ERR_INVALID_ARG_TYPE("options","Object",o);super(r,o),this.code="ABORT_ERR",this.name="AbortError"}};ib("ERR_ASSERTION","%s",Error);ib("ERR_INVALID_ARG_TYPE",(n,r,o)=>{pP(typeof n=="string","'name' must be a string"),Array.isArray(r)||(r=[r]);let l="The ";n.endsWith(" argument")?l+=`${n} `:l+=`"${n}" ${n.includes(".")?"property":"argument"} `,l+="must be ";const u=[],d=[],h=[];for(const v of r)pP(typeof v=="string","All expected entries have to be of type string"),s8r.includes(v)?u.push(v.toLowerCase()):l8r.test(v)?d.push(v):(pP(v!=="object",'The value "object" should be written as "Object"'),h.push(v));if(d.length>0){const v=u.indexOf("object");v!==-1&&(u.splice(u,v,1),d.push("Object"))}if(u.length>0){switch(u.length){case 1:l+=`of type ${u[0]}`;break;case 2:l+=`one of type ${u[0]} or ${u[1]}`;break;default:{const v=u.pop();l+=`one of type ${u.join(", ")}, or ${v}`}}(d.length>0||h.length>0)&&(l+=" or ")}if(d.length>0){switch(d.length){case 1:l+=`an instance of ${d[0]}`;break;case 2:l+=`an instance of ${d[0]} or ${d[1]}`;break;default:{const v=d.pop();l+=`an instance of ${d.join(", ")}, or ${v}`}}h.length>0&&(l+=" or ")}switch(h.length){case 0:break;case 1:h[0].toLowerCase()!==h[0]&&(l+="an "),l+=`${h[0]}`;break;case 2:l+=`one of ${h[0]} or ${h[1]}`;break;default:{const v=h.pop();l+=`one of ${h.join(", ")}, or ${v}`}}if(o==null)l+=`. Received ${o}`;else if(typeof o=="function"&&o.name)l+=`. Received function ${o.name}`;else if(typeof o=="object"){var w;if((w=o.constructor)!==null&&w!==void 0&&w.name)l+=`. Received an instance of ${o.constructor.name}`;else{const v=Phe(o,{depth:-1});l+=`. Received ${v}`}}else{let v=Phe(o,{colors:!1});v.length>25&&(v=`${v.slice(0,25)}...`),l+=`. Received type ${typeof o} (${v})`}return l},TypeError);ib("ERR_INVALID_ARG_VALUE",(n,r,o="is invalid")=>{let l=Phe(r);return l.length>128&&(l=l.slice(0,128)+"..."),`The ${n.includes(".")?"property":"argument"} '${n}' ${o}. Received ${l}`},TypeError);ib("ERR_INVALID_RETURN_VALUE",(n,r,o)=>{var l;const u=o!=null&&(l=o.constructor)!==null&&l!==void 0&&l.name?`instance of ${o.constructor.name}`:`type ${typeof o}`;return`Expected ${n} to be returned from the "${r}" function but got ${u}.`},TypeError);ib("ERR_MISSING_ARGS",(...n)=>{pP(n.length>0,"At least one arg needs to be specified");let r;const o=n.length;switch(n=(Array.isArray(n)?n:[n]).map(l=>`"${l}"`).join(" or "),o){case 1:r+=`The ${n[0]} argument`;break;case 2:r+=`The ${n[0]} and ${n[1]} arguments`;break;default:{const l=n.pop();r+=`The ${n.join(", ")}, and ${l} arguments`}break}return`${r} must be specified`},TypeError);ib("ERR_OUT_OF_RANGE",(n,r,o)=>{pP(r,'Missing "range" argument');let l;return Number.isInteger(o)&&Math.abs(o)>2**32?l=bXt(String(o)):typeof o=="bigint"?(l=String(o),(o>2n**32n||o<-(2n**32n))&&(l=bXt(l)),l+="n"):l=Phe(o),`The value of "${n}" is out of range. It must be ${r}. Received ${l}`},RangeError);ib("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);ib("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);ib("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);ib("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);ib("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);ib("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);ib("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);ib("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);ib("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);ib("ERR_STREAM_WRITE_AFTER_END","write after end",Error);ib("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var L0={AbortError:f8r,aggregateTwoErrors:gXt(u8r),hideStackFrames:gXt,codes:t1e};const{ArrayIsArray:bVe,ArrayPrototypeIncludes:lfn,ArrayPrototypeJoin:afn,ArrayPrototypeMap:d8r,NumberIsInteger:gVe,NumberIsNaN:h8r,NumberMAX_SAFE_INTEGER:p8r,NumberMIN_SAFE_INTEGER:b8r,NumberParseInt:g8r,ObjectPrototypeHasOwnProperty:w8r,RegExpPrototypeExec:cfn,String:m8r,StringPrototypeToUpperCase:y8r,StringPrototypeTrim:v8r}=Vf,{hideStackFrames:kv,codes:{ERR_SOCKET_BAD_PORT:_8r,ERR_INVALID_ARG_TYPE:tg,ERR_INVALID_ARG_VALUE:Nj,ERR_OUT_OF_RANGE:DP,ERR_UNKNOWN_SIGNAL:wXt}}=L0,{normalizeEncoding:S8r}=w1,{isAsyncFunction:E8r,isArrayBufferView:k8r}=w1.types,mXt={};function R8r(n){return n===(n|0)}function x8r(n){return n===n>>>0}const C8r=/^[0-7]+$/,A8r="must be a 32-bit unsigned integer or an octal string";function T8r(n,r,o){if(typeof n>"u"&&(n=o),typeof n=="string"){if(cfn(C8r,n)===null)throw new Nj(r,n,A8r);n=g8r(n,8)}return ufn(n,r),n}const $8r=kv((n,r,o=b8r,l=p8r)=>{if(typeof n!="number")throw new tg(r,"number",n);if(!gVe(n))throw new DP(r,"an integer",n);if(nl)throw new DP(r,`>= ${o} && <= ${l}`,n)}),I8r=kv((n,r,o=-2147483648,l=2147483647)=>{if(typeof n!="number")throw new tg(r,"number",n);if(!gVe(n))throw new DP(r,"an integer",n);if(nl)throw new DP(r,`>= ${o} && <= ${l}`,n)}),ufn=kv((n,r,o=!1)=>{if(typeof n!="number")throw new tg(r,"number",n);if(!gVe(n))throw new DP(r,"an integer",n);const l=o?1:0,u=4294967295;if(nu)throw new DP(r,`>= ${l} && <= ${u}`,n)});function wVe(n,r){if(typeof n!="string")throw new tg(r,"string",n)}function P8r(n,r,o=void 0,l){if(typeof n!="number")throw new tg(r,"number",n);if(o!=null&&nl||(o!=null||l!=null)&&h8r(n))throw new DP(r,`${o!=null?`>= ${o}`:""}${o!=null&&l!=null?" && ":""}${l!=null?`<= ${l}`:""}`,n)}const O8r=kv((n,r,o)=>{if(!lfn(o,n)){const u="must be one of: "+afn(d8r(o,d=>typeof d=="string"?`'${d}'`:m8r(d)),", ");throw new Nj(r,n,u)}});function ffn(n,r){if(typeof n!="boolean")throw new tg(r,"boolean",n)}function VDe(n,r,o){return n==null||!w8r(n,r)?o:n[r]}const N8r=kv((n,r,o=null)=>{const l=VDe(o,"allowArray",!1),u=VDe(o,"allowFunction",!1);if(!VDe(o,"nullable",!1)&&n===null||!l&&bVe(n)||typeof n!="object"&&(!u||typeof n!="function"))throw new tg(r,"Object",n)}),M8r=kv((n,r)=>{if(n!=null&&typeof n!="object"&&typeof n!="function")throw new tg(r,"a dictionary",n)}),n1e=kv((n,r,o=0)=>{if(!bVe(n))throw new tg(r,"Array",n);if(n.length{if(!k8r(n))throw new tg(r,["Buffer","TypedArray","DataView"],n)});function W8r(n,r){const o=S8r(r),l=n.length;if(o==="hex"&&l%2!==0)throw new Nj("encoding",r,`is invalid for data of length ${l}`)}function H8r(n,r="Port",o=!0){if(typeof n!="number"&&typeof n!="string"||typeof n=="string"&&v8r(n).length===0||+n!==+n>>>0||n>65535||n===0&&!o)throw new _8r(r,n,o);return n|0}const dfn=kv((n,r)=>{if(n!==void 0&&(n===null||typeof n!="object"||!("aborted"in n)))throw new tg(r,"AbortSignal",n)}),U8r=kv((n,r)=>{if(typeof n!="function")throw new tg(r,"Function",n)}),G8r=kv((n,r)=>{if(typeof n!="function"||E8r(n))throw new tg(r,"Function",n)}),V8r=kv((n,r)=>{if(n!==void 0)throw new tg(r,"undefined",n)});function z8r(n,r,o){if(!lfn(o,n))throw new tg(r,`('${afn(o,"|")}')`,n)}const K8r=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function yXt(n,r){if(typeof n>"u"||!cfn(K8r,n))throw new Nj(r,n,'must be an array or string of format "; rel=preload; as=style"')}function q8r(n){if(typeof n=="string")return yXt(n,"hints"),n;if(bVe(n)){const r=n.length;let o="";if(r===0)return o;for(let l=0;l; rel=preload; as=style"')}var HJ={isInt32:R8r,isUint32:x8r,parseFileMode:T8r,validateArray:n1e,validateStringArray:D8r,validateBooleanArray:L8r,validateAbortSignalArray:j8r,validateBoolean:ffn,validateBuffer:B8r,validateDictionary:M8r,validateEncoding:W8r,validateFunction:U8r,validateInt32:I8r,validateInteger:$8r,validateNumber:P8r,validateObject:N8r,validateOneOf:O8r,validatePlainFunction:G8r,validatePort:H8r,validateSignalName:F8r,validateString:wVe,validateUint32:ufn,validateUndefined:V8r,validateUnion:z8r,validateAbortSignal:dfn,validateLinkHeaderValue:q8r},mVe={exports:{}};const{SymbolAsyncIterator:vXt,SymbolIterator:_Xt,SymbolFor:kO}=Vf,hfn=kO("nodejs.stream.destroyed"),pfn=kO("nodejs.stream.errored"),LBe=kO("nodejs.stream.readable"),jBe=kO("nodejs.stream.writable"),bfn=kO("nodejs.stream.disturbed"),X8r=kO("nodejs.webstream.isClosedPromise"),J8r=kO("nodejs.webstream.controllerErrorFunction");function r1e(n,r=!1){var o;return!!(n&&typeof n.pipe=="function"&&typeof n.on=="function"&&(!r||typeof n.pause=="function"&&typeof n.resume=="function")&&(!n._writableState||((o=n._readableState)===null||o===void 0?void 0:o.readable)!==!1)&&(!n._writableState||n._readableState))}function i1e(n){var r;return!!(n&&typeof n.write=="function"&&typeof n.on=="function"&&(!n._readableState||((r=n._writableState)===null||r===void 0?void 0:r.writable)!==!1))}function Y8r(n){return!!(n&&typeof n.pipe=="function"&&n._readableState&&typeof n.on=="function"&&typeof n.write=="function")}function xk(n){return n&&(n._readableState||n._writableState||typeof n.write=="function"&&typeof n.on=="function"||typeof n.pipe=="function"&&typeof n.on=="function")}function gfn(n){return!!(n&&!xk(n)&&typeof n.pipeThrough=="function"&&typeof n.getReader=="function"&&typeof n.cancel=="function")}function wfn(n){return!!(n&&!xk(n)&&typeof n.getWriter=="function"&&typeof n.abort=="function")}function mfn(n){return!!(n&&!xk(n)&&typeof n.readable=="object"&&typeof n.writable=="object")}function Q8r(n){return gfn(n)||wfn(n)||mfn(n)}function Z8r(n,r){return n==null?!1:r===!0?typeof n[vXt]=="function":r===!1?typeof n[_Xt]=="function":typeof n[vXt]=="function"||typeof n[_Xt]=="function"}function o1e(n){if(!xk(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!!(n.destroyed||n[hfn]||l!=null&&l.destroyed)}function yfn(n){if(!i1e(n))return null;if(n.writableEnded===!0)return!0;const r=n._writableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function ePr(n,r){if(!i1e(n))return null;if(n.writableFinished===!0)return!0;const o=n._writableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.finished)!="boolean"?null:!!(o.finished||r===!1&&o.ended===!0&&o.length===0)}function tPr(n){if(!r1e(n))return null;if(n.readableEnded===!0)return!0;const r=n._readableState;return!r||r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function vfn(n,r){if(!r1e(n))return null;const o=n._readableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.endEmitted)!="boolean"?null:!!(o.endEmitted||r===!1&&o.ended===!0&&o.length===0)}function _fn(n){return n&&n[LBe]!=null?n[LBe]:typeof(n==null?void 0:n.readable)!="boolean"?null:o1e(n)?!1:r1e(n)&&n.readable&&!vfn(n)}function Sfn(n){return n&&n[jBe]!=null?n[jBe]:typeof(n==null?void 0:n.writable)!="boolean"?null:o1e(n)?!1:i1e(n)&&n.writable&&!yfn(n)}function nPr(n,r){return xk(n)?o1e(n)?!0:!((r==null?void 0:r.readable)!==!1&&_fn(n)||(r==null?void 0:r.writable)!==!1&&Sfn(n)):null}function rPr(n){var r,o;return xk(n)?n.writableErrored?n.writableErrored:(r=(o=n._writableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function iPr(n){var r,o;return xk(n)?n.readableErrored?n.readableErrored:(r=(o=n._readableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function oPr(n){if(!xk(n))return null;if(typeof n.closed=="boolean")return n.closed;const r=n._writableState,o=n._readableState;return typeof(r==null?void 0:r.closed)=="boolean"||typeof(o==null?void 0:o.closed)=="boolean"?(r==null?void 0:r.closed)||(o==null?void 0:o.closed):typeof n._closed=="boolean"&&Efn(n)?n._closed:null}function Efn(n){return typeof n._closed=="boolean"&&typeof n._defaultKeepAlive=="boolean"&&typeof n._removedConnection=="boolean"&&typeof n._removedContLen=="boolean"}function kfn(n){return typeof n._sent100=="boolean"&&Efn(n)}function sPr(n){var r;return typeof n._consuming=="boolean"&&typeof n._dumped=="boolean"&&((r=n.req)===null||r===void 0?void 0:r.upgradeOrConnect)===void 0}function lPr(n){if(!xk(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!l&&kfn(n)||!!(l&&l.autoDestroy&&l.emitClose&&l.closed===!1)}function aPr(n){var r;return!!(n&&((r=n[bfn])!==null&&r!==void 0?r:n.readableDidRead||n.readableAborted))}function cPr(n){var r,o,l,u,d,h,w,v,y,E;return!!(n&&((r=(o=(l=(u=(d=(h=n[pfn])!==null&&h!==void 0?h:n.readableErrored)!==null&&d!==void 0?d:n.writableErrored)!==null&&u!==void 0?u:(w=n._readableState)===null||w===void 0?void 0:w.errorEmitted)!==null&&l!==void 0?l:(v=n._writableState)===null||v===void 0?void 0:v.errorEmitted)!==null&&o!==void 0?o:(y=n._readableState)===null||y===void 0?void 0:y.errored)!==null&&r!==void 0?r:!((E=n._writableState)===null||E===void 0)&&E.errored))}var Mx={isDestroyed:o1e,kIsDestroyed:hfn,isDisturbed:aPr,kIsDisturbed:bfn,isErrored:cPr,kIsErrored:pfn,isReadable:_fn,kIsReadable:LBe,kIsClosedPromise:X8r,kControllerErrorFunction:J8r,kIsWritable:jBe,isClosed:oPr,isDuplexNodeStream:Y8r,isFinished:nPr,isIterable:Z8r,isReadableNodeStream:r1e,isReadableStream:gfn,isReadableEnded:tPr,isReadableFinished:vfn,isReadableErrored:iPr,isNodeStream:xk,isWebStream:Q8r,isWritable:Sfn,isWritableNodeStream:i1e,isWritableStream:wfn,isWritableEnded:yfn,isWritableFinished:ePr,isWritableErrored:rPr,isServerRequest:sPr,isServerResponse:kfn,willEmitClose:lPr,isTransformStream:mfn};const nT=ui,{AbortError:Rfn,codes:uPr}=L0,{ERR_INVALID_ARG_TYPE:fPr,ERR_STREAM_PREMATURE_CLOSE:SXt}=uPr,{kEmptyObject:FBe,once:BBe}=w1,{validateAbortSignal:dPr,validateFunction:hPr,validateObject:pPr,validateBoolean:bPr}=HJ,{Promise:gPr,PromisePrototypeThen:wPr,SymbolDispose:xfn}=Vf,{isClosed:mPr,isReadable:EXt,isReadableNodeStream:zDe,isReadableStream:yPr,isReadableFinished:kXt,isReadableErrored:RXt,isWritable:xXt,isWritableNodeStream:CXt,isWritableStream:vPr,isWritableFinished:AXt,isWritableErrored:TXt,isNodeStream:_Pr,willEmitClose:SPr,kIsClosedPromise:EPr}=Mx;let gL;function kPr(n){return n.setHeader&&typeof n.abort=="function"}const WBe=()=>{};function Cfn(n,r,o){var l,u;if(arguments.length===2?(o=r,r=FBe):r==null?r=FBe:pPr(r,"options"),hPr(o,"callback"),dPr(r.signal,"options.signal"),o=BBe(o),yPr(n)||vPr(n))return RPr(n,r,o);if(!_Pr(n))throw new fPr("stream",["ReadableStream","WritableStream","Stream"],n);const d=(l=r.readable)!==null&&l!==void 0?l:zDe(n),h=(u=r.writable)!==null&&u!==void 0?u:CXt(n),w=n._writableState,v=n._readableState,y=()=>{n.writable||C()};let E=SPr(n)&&zDe(n)===d&&CXt(n)===h,A=AXt(n,!1);const C=()=>{A=!0,n.destroyed&&(E=!1),!(E&&(!n.readable||d))&&(!d||R)&&o.call(n)};let R=kXt(n,!1);const O=()=>{R=!0,n.destroyed&&(E=!1),!(E&&(!n.writable||h))&&(!h||A)&&o.call(n)},M=te=>{o.call(n,te)};let L=mPr(n);const H=()=>{L=!0;const te=TXt(n)||RXt(n);if(te&&typeof te!="boolean")return o.call(n,te);if(d&&!R&&zDe(n,!0)&&!kXt(n,!1))return o.call(n,new SXt);if(h&&!A&&!AXt(n,!1))return o.call(n,new SXt);o.call(n)},G=()=>{L=!0;const te=TXt(n)||RXt(n);if(te&&typeof te!="boolean")return o.call(n,te);o.call(n)},j=()=>{n.req.on("finish",C)};kPr(n)?(n.on("complete",C),E||n.on("abort",H),n.req?j():n.on("request",j)):h&&!w&&(n.on("end",y),n.on("close",y)),!E&&typeof n.aborted=="boolean"&&n.on("aborted",H),n.on("end",O),n.on("finish",C),r.error!==!1&&n.on("error",M),n.on("close",H),L?nT.nextTick(H):w!=null&&w.errorEmitted||v!=null&&v.errorEmitted?E||nT.nextTick(G):(!d&&(!E||EXt(n))&&(A||xXt(n)===!1)||!h&&(!E||xXt(n))&&(R||EXt(n)===!1)||v&&n.req&&n.aborted)&&nT.nextTick(G);const Q=()=>{o=WBe,n.removeListener("aborted",H),n.removeListener("complete",C),n.removeListener("abort",H),n.removeListener("request",j),n.req&&n.req.removeListener("finish",C),n.removeListener("end",y),n.removeListener("close",y),n.removeListener("finish",C),n.removeListener("end",O),n.removeListener("error",M),n.removeListener("close",H)};if(r.signal&&!L){const te=()=>{const pe=o;Q(),pe.call(n,new Rfn(void 0,{cause:r.signal.reason}))};if(r.signal.aborted)nT.nextTick(te);else{gL=gL||w1.addAbortListener;const pe=gL(r.signal,te),De=o;o=BBe((...Re)=>{pe[xfn](),De.apply(n,Re)})}}return Q}function RPr(n,r,o){let l=!1,u=WBe;if(r.signal)if(u=()=>{l=!0,o.call(n,new Rfn(void 0,{cause:r.signal.reason}))},r.signal.aborted)nT.nextTick(u);else{gL=gL||w1.addAbortListener;const h=gL(r.signal,u),w=o;o=BBe((...v)=>{h[xfn](),w.apply(n,v)})}const d=(...h)=>{l||nT.nextTick(()=>o.apply(n,h))};return wPr(n[EPr].promise,d,d),WBe}function xPr(n,r){var o;let l=!1;return r===null&&(r=FBe),(o=r)!==null&&o!==void 0&&o.cleanup&&(bPr(r.cleanup,"cleanup"),l=r.cleanup),new gPr((u,d)=>{const h=Cfn(n,r,w=>{l&&h(),w?d(w):u()})})}mVe.exports=Cfn;mVe.exports.finished=xPr;var qT=mVe.exports;const YE=ui,{aggregateTwoErrors:CPr,codes:{ERR_MULTIPLE_CALLBACK:APr},AbortError:TPr}=L0,{Symbol:Afn}=Vf,{kIsDestroyed:$Pr,isDestroyed:IPr,isFinished:PPr,isServerRequest:OPr}=Mx,Tfn=Afn("kDestroy"),HBe=Afn("kConstruct");function $fn(n,r,o){n&&(n.stack,r&&!r.errored&&(r.errored=n),o&&!o.errored&&(o.errored=n))}function NPr(n,r){const o=this._readableState,l=this._writableState,u=l||o;return l!=null&&l.destroyed||o!=null&&o.destroyed?(typeof r=="function"&&r(),this):($fn(n,l,o),l&&(l.destroyed=!0),o&&(o.destroyed=!0),u.constructed?$Xt(this,n,r):this.once(Tfn,function(d){$Xt(this,CPr(d,n),r)}),this)}function $Xt(n,r,o){let l=!1;function u(d){if(l)return;l=!0;const h=n._readableState,w=n._writableState;$fn(d,w,h),w&&(w.closed=!0),h&&(h.closed=!0),typeof o=="function"&&o(d),d?YE.nextTick(MPr,n,d):YE.nextTick(Ifn,n)}try{n._destroy(r||null,u)}catch(d){u(d)}}function MPr(n,r){UBe(n,r),Ifn(n)}function Ifn(n){const r=n._readableState,o=n._writableState;o&&(o.closeEmitted=!0),r&&(r.closeEmitted=!0),(o!=null&&o.emitClose||r!=null&&r.emitClose)&&n.emit("close")}function UBe(n,r){const o=n._readableState,l=n._writableState;l!=null&&l.errorEmitted||o!=null&&o.errorEmitted||(l&&(l.errorEmitted=!0),o&&(o.errorEmitted=!0),n.emit("error",r))}function DPr(){const n=this._readableState,r=this._writableState;n&&(n.constructed=!0,n.closed=!1,n.closeEmitted=!1,n.destroyed=!1,n.errored=null,n.errorEmitted=!1,n.reading=!1,n.ended=n.readable===!1,n.endEmitted=n.readable===!1),r&&(r.constructed=!0,r.destroyed=!1,r.closed=!1,r.closeEmitted=!1,r.errored=null,r.errorEmitted=!1,r.finalCalled=!1,r.prefinished=!1,r.ended=r.writable===!1,r.ending=r.writable===!1,r.finished=r.writable===!1)}function GBe(n,r,o){const l=n._readableState,u=n._writableState;if(u!=null&&u.destroyed||l!=null&&l.destroyed)return this;l!=null&&l.autoDestroy||u!=null&&u.autoDestroy?n.destroy(r):r&&(r.stack,u&&!u.errored&&(u.errored=r),l&&!l.errored&&(l.errored=r),o?YE.nextTick(UBe,n,r):UBe(n,r))}function LPr(n,r){if(typeof n._construct!="function")return;const o=n._readableState,l=n._writableState;o&&(o.constructed=!1),l&&(l.constructed=!1),n.once(HBe,r),!(n.listenerCount(HBe)>1)&&YE.nextTick(jPr,n)}function jPr(n){let r=!1;function o(l){if(r){GBe(n,l??new APr);return}r=!0;const u=n._readableState,d=n._writableState,h=d||u;u&&(u.constructed=!0),d&&(d.constructed=!0),h.destroyed?n.emit(Tfn,l):l?GBe(n,l,!0):YE.nextTick(FPr,n)}try{n._construct(l=>{YE.nextTick(o,l)})}catch(l){YE.nextTick(o,l)}}function FPr(n){n.emit(HBe)}function IXt(n){return(n==null?void 0:n.setHeader)&&typeof n.abort=="function"}function Pfn(n){n.emit("close")}function BPr(n,r){n.emit("error",r),YE.nextTick(Pfn,n)}function WPr(n,r){!n||IPr(n)||(!r&&!PPr(n)&&(r=new TPr),OPr(n)?(n.socket=null,n.destroy(r)):IXt(n)?n.abort():IXt(n.req)?n.req.abort():typeof n.destroy=="function"?n.destroy(r):typeof n.close=="function"?n.close():r?YE.nextTick(BPr,n,r):YE.nextTick(Pfn,n),n.destroyed||(n[$Pr]=!0))}var Mj={construct:LPr,destroyer:WPr,destroy:NPr,undestroy:DPr,errorOrDestroy:GBe};const{ArrayIsArray:HPr,ObjectSetPrototypeOf:Ofn}=Vf,{EventEmitter:s1e}=Ns;function l1e(n){s1e.call(this,n)}Ofn(l1e.prototype,s1e.prototype);Ofn(l1e,s1e);l1e.prototype.pipe=function(n,r){const o=this;function l(E){n.writable&&n.write(E)===!1&&o.pause&&o.pause()}o.on("data",l);function u(){o.readable&&o.resume&&o.resume()}n.on("drain",u),!n._isStdio&&(!r||r.end!==!1)&&(o.on("end",h),o.on("close",w));let d=!1;function h(){d||(d=!0,n.end())}function w(){d||(d=!0,typeof n.destroy=="function"&&n.destroy())}function v(E){y(),s1e.listenerCount(this,"error")===0&&this.emit("error",E)}VBe(o,"error",v),VBe(n,"error",v);function y(){o.removeListener("data",l),n.removeListener("drain",u),o.removeListener("end",h),o.removeListener("close",w),o.removeListener("error",v),n.removeListener("error",v),o.removeListener("end",y),o.removeListener("close",y),n.removeListener("close",y)}return o.on("end",y),o.on("close",y),n.on("close",y),n.emit("pipe",o),n};function VBe(n,r,o){if(typeof n.prependListener=="function")return n.prependListener(r,o);!n._events||!n._events[r]?n.on(r,o):HPr(n._events[r])?n._events[r].unshift(o):n._events[r]=[o,n._events[r]]}var yVe={Stream:l1e,prependListener:VBe},Nfn={exports:{}};(function(n){const{SymbolDispose:r}=Vf,{AbortError:o,codes:l}=L0,{isNodeStream:u,isWebStream:d,kControllerErrorFunction:h}=Mx,w=qT,{ERR_INVALID_ARG_TYPE:v}=l;let y;const E=(A,C)=>{if(typeof A!="object"||!("aborted"in A))throw new v(C,"AbortSignal",A)};n.exports.addAbortSignal=function(C,R){if(E(C,"signal"),!u(R)&&!d(R))throw new v("stream",["ReadableStream","WritableStream","Stream"],R);return n.exports.addAbortSignalNoValidate(C,R)},n.exports.addAbortSignalNoValidate=function(A,C){if(typeof A!="object"||!("aborted"in A))return C;const R=u(C)?()=>{C.destroy(new o(void 0,{cause:A.reason}))}:()=>{C[h](new o(void 0,{cause:A.reason}))};if(A.aborted)R();else{y=y||w1.addAbortListener;const O=y(A,R);w(C,O[r])}return C}})(Nfn);var a1e=Nfn.exports;const{StringPrototypeSlice:PXt,SymbolIterator:UPr,TypedArrayPrototypeSet:ufe,Uint8Array:GPr}=Vf,{Buffer:KDe}=Kr,{inspect:VPr}=w1;var zPr=class{constructor(){this.head=null,this.tail=null,this.length=0}push(r){const o={data:r,next:null};this.length>0?this.tail.next=o:this.head=o,this.tail=o,++this.length}unshift(r){const o={data:r,next:this.head};this.length===0&&(this.tail=o),this.head=o,++this.length}shift(){if(this.length===0)return;const r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}clear(){this.head=this.tail=null,this.length=0}join(r){if(this.length===0)return"";let o=this.head,l=""+o.data;for(;(o=o.next)!==null;)l+=r+o.data;return l}concat(r){if(this.length===0)return KDe.alloc(0);const o=KDe.allocUnsafe(r>>>0);let l=this.head,u=0;for(;l;)ufe(o,l.data,u),u+=l.data.length,l=l.next;return o}consume(r,o){const l=this.head.data;if(rd.length)o+=d,r-=d.length;else{r===d.length?(o+=d,++u,l.next?this.head=l.next:this.head=this.tail=null):(o+=PXt(d,0,r),this.head=l,l.data=PXt(d,r));break}++u}while((l=l.next)!==null);return this.length-=u,o}_getBuffer(r){const o=KDe.allocUnsafe(r),l=r;let u=this.head,d=0;do{const h=u.data;if(r>h.length)ufe(o,h,l-r),r-=h.length;else{r===h.length?(ufe(o,h,l-r),++d,u.next?this.head=u.next:this.head=this.tail=null):(ufe(o,new GPr(h.buffer,h.byteOffset,r),l-r),this.head=u,u.data=h.slice(r));break}++d}while((u=u.next)!==null);return this.length-=d,o}[Symbol.for("nodejs.util.inspect.custom")](r,o){return VPr(this,{...o,depth:0,customInspect:!1})}};const{MathFloor:KPr,NumberIsInteger:qPr}=Vf,{validateInteger:XPr}=HJ,{ERR_INVALID_ARG_VALUE:JPr}=L0.codes;let Mfn=16*1024,Dfn=16;function YPr(n,r,o){return n.highWaterMark!=null?n.highWaterMark:r?n[o]:null}function Lfn(n){return n?Dfn:Mfn}function QPr(n,r){XPr(r,"value",0),n?Dfn=r:Mfn=r}function ZPr(n,r,o,l){const u=YPr(r,l,o);if(u!=null){if(!qPr(u)||u<0){const d=l?`options.${o}`:"options.highWaterMark";throw new JPr(d,u)}return KPr(u)}return Lfn(n.objectMode)}var c1e={getHighWaterMark:ZPr,getDefaultHighWaterMark:Lfn,setDefaultHighWaterMark:QPr};const OXt=ui,{PromisePrototypeThen:eOr,SymbolAsyncIterator:NXt,SymbolIterator:MXt}=Vf,{Buffer:tOr}=Kr,{ERR_INVALID_ARG_TYPE:nOr,ERR_STREAM_NULL_VALUES:rOr}=L0.codes;function iOr(n,r,o){let l;if(typeof r=="string"||r instanceof tOr)return new n({objectMode:!0,...o,read(){this.push(r),this.push(null)}});let u;if(r&&r[NXt])u=!0,l=r[NXt]();else if(r&&r[MXt])u=!1,l=r[MXt]();else throw new nOr("iterable",["Iterable"],r);const d=new n({objectMode:!0,highWaterMark:1,...o});let h=!1;d._read=function(){h||(h=!0,v())},d._destroy=function(y,E){eOr(w(y),()=>OXt.nextTick(E,y),A=>OXt.nextTick(E,A||y))};async function w(y){const E=y!=null,A=typeof l.throw=="function";if(E&&A){const{value:C,done:R}=await l.throw(y);if(await C,R)return}if(typeof l.return=="function"){const{value:C}=await l.return();await C}}async function v(){for(;;){try{const{value:y,done:E}=u?await l.next():l.next();if(E)d.push(null);else{const A=y&&typeof y.then=="function"?await y:y;if(A===null)throw h=!1,new rOr;if(d.push(A))continue;h=!1}}catch(y){d.destroy(y)}break}}return d}var jfn=iOr,qDe,DXt;function u1e(){if(DXt)return qDe;DXt=1;const n=ui,{ArrayPrototypeIndexOf:r,NumberIsInteger:o,NumberIsNaN:l,NumberParseInt:u,ObjectDefineProperties:d,ObjectKeys:h,ObjectSetPrototypeOf:w,Promise:v,SafeSet:y,SymbolAsyncDispose:E,SymbolAsyncIterator:A,Symbol:C}=Vf;qDe=he,he.ReadableState=_t;const{EventEmitter:R}=Ns,{Stream:O,prependListener:M}=yVe,{Buffer:L}=Kr,{addAbortSignal:H}=a1e,G=qT;let j=w1.debuglog("stream",S=>{j=S});const Q=zPr,te=Mj,{getHighWaterMark:pe,getDefaultHighWaterMark:De}=c1e,{aggregateTwoErrors:Re,codes:{ERR_INVALID_ARG_TYPE:le,ERR_METHOD_NOT_IMPLEMENTED:xe,ERR_OUT_OF_RANGE:be,ERR_STREAM_PUSH_AFTER_EOF:ae,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:F},AbortError:me}=L0,{validateObject:ye}=HJ,we=C("kPaused"),{StringDecoder:Be}=rm,He=jfn;w(he.prototype,O.prototype),w(he,O);const Ue=()=>{},{errorOrDestroy:Ge}=te,Le=1,ft=2,re=4,Te=8,dt=16,at=32,Qe=64,yt=128,Lt=256,nn=512,Pe=1024,Ne=2048,T=4096,$=8192,B=16384,K=32768,q=65536,ke=1<<17,Ee=1<<18;function Ie(S){return{enumerable:!1,get(){return(this.state&S)!==0},set(x){x?this.state|=S:this.state&=~S}}}d(_t.prototype,{objectMode:Ie(Le),ended:Ie(ft),endEmitted:Ie(re),reading:Ie(Te),constructed:Ie(dt),sync:Ie(at),needReadable:Ie(Qe),emittedReadable:Ie(yt),readableListening:Ie(Lt),resumeScheduled:Ie(nn),errorEmitted:Ie(Pe),emitClose:Ie(Ne),autoDestroy:Ie(T),destroyed:Ie($),closed:Ie(B),closeEmitted:Ie(K),multiAwaitDrain:Ie(q),readingMore:Ie(ke),dataEmitted:Ie(Ee)});function _t(S,x,Y){typeof Y!="boolean"&&(Y=x instanceof mx()),this.state=Ne|T|dt|at,S&&S.objectMode&&(this.state|=Le),Y&&S&&S.readableObjectMode&&(this.state|=Le),this.highWaterMark=S?pe(this,S,"readableHighWaterMark",Y):De(!1),this.buffer=new Q,this.length=0,this.pipes=[],this.flowing=null,this[we]=null,S&&S.emitClose===!1&&(this.state&=~Ne),S&&S.autoDestroy===!1&&(this.state&=~T),this.errored=null,this.defaultEncoding=S&&S.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,S&&S.encoding&&(this.decoder=new Be(S.encoding),this.encoding=S.encoding)}function he(S){if(!(this instanceof he))return new he(S);const x=this instanceof mx();this._readableState=new _t(S,this,x),S&&(typeof S.read=="function"&&(this._read=S.read),typeof S.destroy=="function"&&(this._destroy=S.destroy),typeof S.construct=="function"&&(this._construct=S.construct),S.signal&&!x&&H(S.signal,this)),O.call(this,S),te.construct(this,()=>{this._readableState.needReadable&&pt(this,this._readableState)})}he.prototype.destroy=te.destroy,he.prototype._undestroy=te.undestroy,he.prototype._destroy=function(S,x){x(S)},he.prototype[R.captureRejectionSymbol]=function(S){this.destroy(S)},he.prototype[E]=function(){let S;return this.destroyed||(S=this.readableEnded?null:new me,this.destroy(S)),new v((x,Y)=>G(this,J=>J&&J!==S?Y(J):x(null)))},he.prototype.push=function(S,x){return Xt(this,S,x,!1)},he.prototype.unshift=function(S,x){return Xt(this,S,x,!0)};function Xt(S,x,Y,J){j("readableAddChunk",x);const ue=S._readableState;let Yt;if(ue.state&Le||(typeof x=="string"?(Y=Y||ue.defaultEncoding,ue.encoding!==Y&&(J&&ue.encoding?x=L.from(x,Y).toString(ue.encoding):(x=L.from(x,Y),Y=""))):x instanceof L?Y="":O._isUint8Array(x)?(x=O._uint8ArrayToBuffer(x),Y=""):x!=null&&(Yt=new le("chunk",["string","Buffer","Uint8Array"],x))),Yt)Ge(S,Yt);else if(x===null)ue.state&=~Te,ce(S,ue);else if(ue.state&Le||x&&x.length>0)if(J)if(ue.state&re)Ge(S,new F);else{if(ue.destroyed||ue.errored)return!1;Zt(S,ue,x,!0)}else if(ue.ended)Ge(S,new ae);else{if(ue.destroyed||ue.errored)return!1;ue.state&=~Te,ue.decoder&&!Y?(x=ue.decoder.write(x),ue.objectMode||x.length!==0?Zt(S,ue,x,!1):pt(S,ue)):Zt(S,ue,x,!1)}else J||(ue.state&=~Te,pt(S,ue));return!ue.ended&&(ue.length0?(x.state&q?x.awaitDrainWriters.clear():x.awaitDrainWriters=null,x.dataEmitted=!0,S.emit("data",Y)):(x.length+=x.objectMode?1:Y.length,J?x.buffer.unshift(Y):x.buffer.push(Y),x.state&Qe&&de(S)),pt(S,x)}he.prototype.isPaused=function(){const S=this._readableState;return S[we]===!0||S.flowing===!1},he.prototype.setEncoding=function(S){const x=new Be(S);this._readableState.decoder=x,this._readableState.encoding=this._readableState.decoder.encoding;const Y=this._readableState.buffer;let J="";for(const ue of Y)J+=x.write(ue);return Y.clear(),J!==""&&Y.push(J),this._readableState.length=J.length,this};const $n=1073741824;function Gn(S){if(S>$n)throw new be("size","<= 1GiB",S);return S--,S|=S>>>1,S|=S>>>2,S|=S>>>4,S|=S>>>8,S|=S>>>16,S++,S}function $e(S,x){return S<=0||x.length===0&&x.ended?0:x.state&Le?1:l(S)?x.flowing&&x.length?x.buffer.first().length:x.length:S<=x.length?S:x.ended?x.length:0}he.prototype.read=function(S){j("read",S),S===void 0?S=NaN:o(S)||(S=u(S,10));const x=this._readableState,Y=S;if(S>x.highWaterMark&&(x.highWaterMark=Gn(S)),S!==0&&(x.state&=~yt),S===0&&x.needReadable&&((x.highWaterMark!==0?x.length>=x.highWaterMark:x.length>0)||x.ended))return j("read: emitReadable",x.length,x.ended),x.length===0&&x.ended?co(this):de(this),null;if(S=$e(S,x),S===0&&x.ended)return x.length===0&&co(this),null;let J=(x.state&Qe)!==0;if(j("need readable",J),(x.length===0||x.length-S0?ue=Al(S,x):ue=null,ue===null?(x.needReadable=x.length<=x.highWaterMark,S=0):(x.length-=S,x.multiAwaitDrain?x.awaitDrainWriters.clear():x.awaitDrainWriters=null),x.length===0&&(x.ended||(x.needReadable=!0),Y!==S&&x.ended&&co(this)),ue!==null&&!x.errorEmitted&&!x.closeEmitted&&(x.dataEmitted=!0,this.emit("data",ue)),ue};function ce(S,x){if(j("onEofChunk"),!x.ended){if(x.decoder){const Y=x.decoder.end();Y&&Y.length&&(x.buffer.push(Y),x.length+=x.objectMode?1:Y.length)}x.ended=!0,x.sync?de(S):(x.needReadable=!1,x.emittedReadable=!0,et(S))}}function de(S){const x=S._readableState;j("emitReadable",x.needReadable,x.emittedReadable),x.needReadable=!1,x.emittedReadable||(j("emitReadable",x.flowing),x.emittedReadable=!0,n.nextTick(et,S))}function et(S){const x=S._readableState;j("emitReadable_",x.destroyed,x.length,x.ended),!x.destroyed&&!x.errored&&(x.length||x.ended)&&(S.emit("readable"),x.emittedReadable=!1),x.needReadable=!x.flowing&&!x.ended&&x.length<=x.highWaterMark,xi(S)}function pt(S,x){!x.readingMore&&x.constructed&&(x.readingMore=!0,n.nextTick(Jt,S,x))}function Jt(S,x){for(;!x.reading&&!x.ended&&(x.length1&&J.pipes.includes(S)&&(j("false write response, pause",J.awaitDrainWriters.size),J.awaitDrainWriters.add(S)),Y.pause()),Fr||(Fr=Qt(Y,S),S.on("drain",Fr))}Y.on("data",ml);function ml(jr){j("ondata");const lr=S.write(jr);j("dest.write",lr),lr===!1&&Rs()}function gs(jr){if(j("onerror",jr),wi(),S.removeListener("error",gs),S.listenerCount("error")===0){const lr=S._writableState||S._readableState;lr&&!lr.errorEmitted?Ge(S,jr):S.emit("error",jr)}}M(S,"error",gs);function as(){S.removeListener("finish",ws),wi()}S.once("close",as);function ws(){j("onfinish"),S.removeListener("close",as),wi()}S.once("finish",ws);function wi(){j("unpipe"),Y.unpipe(S)}return S.emit("pipe",Y),S.writableNeedDrain===!0?Rs():J.flowing||(j("pipe resume"),Y.resume()),S};function Qt(S,x){return function(){const J=S._readableState;J.awaitDrainWriters===x?(j("pipeOnDrain",1),J.awaitDrainWriters=null):J.multiAwaitDrain&&(j("pipeOnDrain",J.awaitDrainWriters.size),J.awaitDrainWriters.delete(x)),(!J.awaitDrainWriters||J.awaitDrainWriters.size===0)&&S.listenerCount("data")&&S.resume()}}he.prototype.unpipe=function(S){const x=this._readableState,Y={hasUnpiped:!1};if(x.pipes.length===0)return this;if(!S){const ue=x.pipes;x.pipes=[],this.pause();for(let Yt=0;Yt0,J.flowing!==!1&&this.resume()):S==="readable"&&!J.endEmitted&&!J.readableListening&&(J.readableListening=J.needReadable=!0,J.flowing=!1,J.emittedReadable=!1,j("on readable",J.length,J.reading),J.length?de(this):J.reading||n.nextTick(ao,this)),Y},he.prototype.addListener=he.prototype.on,he.prototype.removeListener=function(S,x){const Y=O.prototype.removeListener.call(this,S,x);return S==="readable"&&n.nextTick(qr,this),Y},he.prototype.off=he.prototype.removeListener,he.prototype.removeAllListeners=function(S){const x=O.prototype.removeAllListeners.apply(this,arguments);return(S==="readable"||S===void 0)&&n.nextTick(qr,this),x};function qr(S){const x=S._readableState;x.readableListening=S.listenerCount("readable")>0,x.resumeScheduled&&x[we]===!1?x.flowing=!0:S.listenerCount("data")>0?S.resume():x.readableListening||(x.flowing=null)}function ao(S){j("readable nexttick read 0"),S.read(0)}he.prototype.resume=function(){const S=this._readableState;return S.flowing||(j("resume"),S.flowing=!S.readableListening,ki(this,S)),S[we]=!1,this};function ki(S,x){x.resumeScheduled||(x.resumeScheduled=!0,n.nextTick(Ri,S,x))}function Ri(S,x){j("resume",x.reading),x.reading||S.read(0),x.resumeScheduled=!1,S.emit("resume"),xi(S),x.flowing&&!x.reading&&S.read(0)}he.prototype.pause=function(){return j("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(j("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[we]=!0,this};function xi(S){const x=S._readableState;for(j("flow",x.flowing);x.flowing&&S.read()!==null;);}he.prototype.wrap=function(S){let x=!1;S.on("data",J=>{!this.push(J)&&S.pause&&(x=!0,S.pause())}),S.on("end",()=>{this.push(null)}),S.on("error",J=>{Ge(this,J)}),S.on("close",()=>{this.destroy()}),S.on("destroy",()=>{this.destroy()}),this._read=()=>{x&&S.resume&&(x=!1,S.resume())};const Y=h(S);for(let J=1;J{ue=An?Re(ue,An):null,Y(),Y=Ue});try{for(;;){const An=S.destroyed?null:S.read();if(An!==null)yield An;else{if(ue)throw ue;if(ue===null)return;await new v(J)}}}catch(An){throw ue=Re(ue,An),ue}finally{(ue||(x==null?void 0:x.destroyOnReturn)!==!1)&&(ue===void 0||S._readableState.autoDestroy)?te.destroyer(S,null):(S.off("readable",J),Yt())}}d(he.prototype,{readable:{__proto__:null,get(){const S=this._readableState;return!!S&&S.readable!==!1&&!S.destroyed&&!S.errorEmitted&&!S.endEmitted},set(S){this._readableState&&(this._readableState.readable=!!S)}},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(S){this._readableState&&(this._readableState.flowing=S)}},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(S){this._readableState&&(this._readableState.destroyed=S)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),d(_t.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[we]!==!1},set(S){this[we]=!!S}}}),he._fromList=Al;function Al(S,x){if(x.length===0)return null;let Y;return x.objectMode?Y=x.buffer.shift():!S||S>=x.length?(x.decoder?Y=x.buffer.join(""):x.buffer.length===1?Y=x.buffer.first():Y=x.buffer.concat(x.length),x.buffer.clear()):Y=x.buffer.consume(S,x.decoder),Y}function co(S){const x=S._readableState;j("endReadable",x.endEmitted),x.endEmitted||(x.ended=!0,n.nextTick(Zc,x,S))}function Zc(S,x){if(j("endReadableNT",S.endEmitted,S.length),!S.errored&&!S.closeEmitted&&!S.endEmitted&&S.length===0){if(S.endEmitted=!0,x.emit("end"),x.writable&&x.allowHalfOpen===!1)n.nextTick(bu,x);else if(S.autoDestroy){const Y=x._writableState;(!Y||Y.autoDestroy&&(Y.finished||Y.writable===!1))&&x.destroy()}}}function bu(S){S.writable&&!S.writableEnded&&!S.destroyed&&S.end()}he.from=function(S,x){return He(he,S,x)};let So;function ql(){return So===void 0&&(So={}),So}return he.fromWeb=function(S,x){return ql().newStreamReadableFromReadableStream(S,x)},he.toWeb=function(S,x){return ql().newReadableStreamFromStreamReadable(S,x)},he.wrap=function(S,x){var Y,J;return new he({objectMode:(Y=(J=S.readableObjectMode)!==null&&J!==void 0?J:S.objectMode)!==null&&Y!==void 0?Y:!0,...x,destroy(ue,Yt){te.destroyer(S,ue),Yt(ue)}}).wrap(S)},qDe}var XDe,LXt;function vVe(){if(LXt)return XDe;LXt=1;const n=ui,{ArrayPrototypeSlice:r,Error:o,FunctionPrototypeSymbolHasInstance:l,ObjectDefineProperty:u,ObjectDefineProperties:d,ObjectSetPrototypeOf:h,StringPrototypeToLowerCase:w,Symbol:v,SymbolHasInstance:y}=Vf;XDe=ye,ye.WritableState=F;const{EventEmitter:E}=Ns,A=yVe.Stream,{Buffer:C}=Kr,R=Mj,{addAbortSignal:O}=a1e,{getHighWaterMark:M,getDefaultHighWaterMark:L}=c1e,{ERR_INVALID_ARG_TYPE:H,ERR_METHOD_NOT_IMPLEMENTED:G,ERR_MULTIPLE_CALLBACK:j,ERR_STREAM_CANNOT_PIPE:Q,ERR_STREAM_DESTROYED:te,ERR_STREAM_ALREADY_FINISHED:pe,ERR_STREAM_NULL_VALUES:De,ERR_STREAM_WRITE_AFTER_END:Re,ERR_UNKNOWN_ENCODING:le}=L0.codes,{errorOrDestroy:xe}=R;h(ye.prototype,A.prototype),h(ye,A);function be(){}const ae=v("kOnFinished");function F(T,$,B){typeof B!="boolean"&&(B=$ instanceof mx()),this.objectMode=!!(T&&T.objectMode),B&&(this.objectMode=this.objectMode||!!(T&&T.writableObjectMode)),this.highWaterMark=T?M(this,T,"writableHighWaterMark",B):L(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const K=!!(T&&T.decodeStrings===!1);this.decodeStrings=!K,this.defaultEncoding=T&&T.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=Ge.bind(void 0,$),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,me(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[ae]=[]}function me(T){T.buffered=[],T.bufferedIndex=0,T.allBuffers=!0,T.allNoop=!0}F.prototype.getBuffer=function(){return r(this.buffered,this.bufferedIndex)},u(F.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function ye(T){const $=this instanceof mx();if(!$&&!l(ye,this))return new ye(T);this._writableState=new F(T,this,$),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&&O(T.signal,this)),A.call(this,T),R.construct(this,()=>{const B=this._writableState;B.writing||Te(this,B),yt(this,B)})}u(ye,y,{__proto__:null,value:function(T){return l(this,T)?!0:this!==ye?!1:T&&T._writableState instanceof F}}),ye.prototype.pipe=function(){xe(this,new Q)};function we(T,$,B,K){const q=T._writableState;if(typeof B=="function")K=B,B=q.defaultEncoding;else{if(!B)B=q.defaultEncoding;else if(B!=="buffer"&&!C.isEncoding(B))throw new le(B);typeof K!="function"&&(K=be)}if($===null)throw new De;if(!q.objectMode)if(typeof $=="string")q.decodeStrings!==!1&&($=C.from($,B),B="buffer");else if($ instanceof C)B="buffer";else if(A._isUint8Array($))$=A._uint8ArrayToBuffer($),B="buffer";else throw new H("chunk",["string","Buffer","Uint8Array"],$);let ke;return q.ending?ke=new Re:q.destroyed&&(ke=new te("write")),ke?(n.nextTick(K,ke),xe(T,ke,!0),ke):(q.pendingcb++,Be(T,q,$,B,K))}ye.prototype.write=function(T,$,B){return we(this,T,$,B)===!0},ye.prototype.cork=function(){this._writableState.corked++},ye.prototype.uncork=function(){const T=this._writableState;T.corked&&(T.corked--,T.writing||Te(this,T))},ye.prototype.setDefaultEncoding=function($){if(typeof $=="string"&&($=w($)),!C.isEncoding($))throw new le($);return this._writableState.defaultEncoding=$,this};function Be(T,$,B,K,q){const ke=$.objectMode?1:B.length;$.length+=ke;const Ee=$.length<$.highWaterMark;return Ee||($.needDrain=!0),$.writing||$.corked||$.errored||!$.constructed?($.buffered.push({chunk:B,encoding:K,callback:q}),$.allBuffers&&K!=="buffer"&&($.allBuffers=!1),$.allNoop&&q!==be&&($.allNoop=!1)):($.writelen=ke,$.writecb=q,$.writing=!0,$.sync=!0,T._write(B,K,$.onwrite),$.sync=!1),Ee&&!$.errored&&!$.destroyed}function He(T,$,B,K,q,ke,Ee){$.writelen=K,$.writecb=Ee,$.writing=!0,$.sync=!0,$.destroyed?$.onwrite(new te("write")):B?T._writev(q,$.onwrite):T._write(q,ke,$.onwrite),$.sync=!1}function Ue(T,$,B,K){--$.pendingcb,K(B),re($),xe(T,B)}function Ge(T,$){const B=T._writableState,K=B.sync,q=B.writecb;if(typeof q!="function"){xe(T,new j);return}B.writing=!1,B.writecb=null,B.length-=B.writelen,B.writelen=0,$?($.stack,B.errored||(B.errored=$),T._readableState&&!T._readableState.errored&&(T._readableState.errored=$),K?n.nextTick(Ue,T,B,$,q):Ue(T,B,$,q)):(B.buffered.length>B.bufferedIndex&&Te(T,B),K?B.afterWriteTickInfo!==null&&B.afterWriteTickInfo.cb===q?B.afterWriteTickInfo.count++:(B.afterWriteTickInfo={count:1,cb:q,stream:T,state:B},n.nextTick(Le,B.afterWriteTickInfo)):ft(T,B,1,q))}function Le({stream:T,state:$,count:B,cb:K}){return $.afterWriteTickInfo=null,ft(T,$,B,K)}function ft(T,$,B,K){for(!$.ending&&!T.destroyed&&$.length===0&&$.needDrain&&($.needDrain=!1,T.emit("drain"));B-- >0;)$.pendingcb--,K();$.destroyed&&re($),yt(T,$)}function re(T){if(T.writing)return;for(let q=T.bufferedIndex;q1&&T._writev){$.pendingcb-=ke-1;const Ie=$.allNoop?be:he=>{for(let Xt=Ee;Xt256?(B.splice(0,Ee),$.bufferedIndex=0):$.bufferedIndex=Ee}$.bufferProcessing=!1}ye.prototype._write=function(T,$,B){if(this._writev)this._writev([{chunk:T,encoding:$}],B);else throw new G("_write()")},ye.prototype._writev=null,ye.prototype.end=function(T,$,B){const K=this._writableState;typeof T=="function"?(B=T,T=null,$=null):typeof $=="function"&&(B=$,$=null);let q;if(T!=null){const ke=we(this,T,$);ke instanceof o&&(q=ke)}return K.corked&&(K.corked=1,this.uncork()),q||(!K.errored&&!K.ending?(K.ending=!0,yt(this,K,!0),K.ended=!0):K.finished?q=new pe("end"):K.destroyed&&(q=new te("end"))),typeof B=="function"&&(q||K.finished?n.nextTick(B,q):K[ae].push(B)),this};function dt(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 at(T,$){let B=!1;function K(q){if(B){xe(T,q??j());return}if(B=!0,$.pendingcb--,q){const ke=$[ae].splice(0);for(let Ee=0;Ee{dt(q)?Lt(K,q):q.pendingcb--},T,$)):dt($)&&($.pendingcb++,Lt(T,$))))}function Lt(T,$){$.pendingcb--,$.finished=!0;const B=$[ae].splice(0);for(let K=0;K{if(re!=null)throw new O("nully","body",re)},re=>{M(Le,re)});return Le=new le({objectMode:!0,readable:!1,write:Be,final(re){He(async()=>{try{await ft,n.nextTick(re,null)}catch(Te){n.nextTick(re,Te)}})},destroy:Ue})}throw new O("Iterable, AsyncIterable or AsyncFunction",me,we)}if(pe(F))return ae(F.arrayBuffer());if(u(F))return Q(le,F,{objectMode:!0,writable:!1});if(y(F==null?void 0:F.readable)&&E(F==null?void 0:F.writable))return le.fromWeb(F);if(typeof(F==null?void 0:F.writable)=="object"||typeof(F==null?void 0:F.readable)=="object"){const we=F!=null&&F.readable?h(F==null?void 0:F.readable)?F==null?void 0:F.readable:ae(F.readable):void 0,Be=F!=null&&F.writable?w(F==null?void 0:F.writable)?F==null?void 0:F.writable:ae(F.writable):void 0;return be({readable:we,writable:Be})}const ye=F==null?void 0:F.then;if(typeof ye=="function"){let we;return Re(ye,F,Be=>{Be!=null&&we.push(Be),we.push(null)},Be=>{M(we,Be)}),we=new le({objectMode:!0,writable:!1,read(){}})}throw new R(me,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],F)};function xe(ae){let{promise:F,resolve:me}=j();const ye=new De,we=ye.signal;return{value:ae(async function*(){for(;;){const He=F;F=null;const{chunk:Ue,done:Ge,cb:Le}=await He;if(n.nextTick(Le),Ge)return;if(we.aborted)throw new C(void 0,{cause:we.reason});({promise:F,resolve:me}=j()),yield Ue}}(),{signal:we}),write(He,Ue,Ge){const Le=me;me=null,Le({chunk:He,done:!1,cb:Ge})},final(He){const Ue=me;me=null,Ue({done:!0,cb:He})},destroy(He,Ue){ye.abort(),Ue(He)}}}function be(ae){const F=ae.readable&&typeof ae.readable.read!="function"?H.wrap(ae.readable):ae.readable,me=ae.writable;let ye=!!o(F),we=!!l(me),Be,He,Ue,Ge,Le;function ft(re){const Te=Ge;Ge=null,Te?Te(re):re&&Le.destroy(re)}return Le=new le({readableObjectMode:!!(F!=null&&F.readableObjectMode),writableObjectMode:!!(me!=null&&me.writableObjectMode),readable:ye,writable:we}),we&&(A(me,re=>{we=!1,re&&M(F,re),ft(re)}),Le._write=function(re,Te,dt){me.write(re,Te)?dt():Be=dt},Le._final=function(re){me.end(),He=re},me.on("drain",function(){if(Be){const re=Be;Be=null,re()}}),me.on("finish",function(){if(He){const re=He;He=null,re()}})),ye&&(A(F,re=>{ye=!1,re&&M(F,re),ft(re)}),F.on("readable",function(){if(Ue){const re=Ue;Ue=null,re()}}),F.on("end",function(){Le.push(null)}),Le._read=function(){for(;;){const re=F.read();if(re===null){Ue=Le._read;return}if(!Le.push(re))return}}),Le._destroy=function(re,Te){!re&&Ge!==null&&(re=new C),Ue=null,Be=null,He=null,Ge===null?Te(re):(Ge=Te,M(me,re),M(F,re))},Le}return JDe}var YDe,FXt;function mx(){if(FXt)return YDe;FXt=1;const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:o,ObjectSetPrototypeOf:l}=Vf;YDe=h;const u=u1e(),d=vVe();l(h.prototype,u.prototype),l(h,u);{const E=o(d.prototype);for(let A=0;A{if(r){n?n(r):this.destroy(r);return}o!=null&&this.push(o),this.push(null),n&&n()}):(this.push(null),n&&n())}function cOr(){this._final!==zBe&&zBe.call(this)}yx.prototype._final=zBe;yx.prototype._transform=function(n,r,o){throw new lOr("_transform()")};yx.prototype._write=function(n,r,o){const l=this._readableState,u=this._writableState,d=l.length;this._transform(n,r,(h,w)=>{if(h){o(h);return}w!=null&&this.push(w),u.ended||d===l.length||l.length{l=!0});const u=Ohe(n,{readable:r,writable:o},d=>{l=!d});return{destroy:d=>{l||(l=!0,bOr.destroyer(n,d||new mOr("pipe")))},cleanup:u}}function xOr(n){return _Or(n[n.length-1],"streams[stream.length - 1]"),n.pop()}function iLe(n){if(N8(n))return n;if(gde(n))return COr(n);throw new KBe("val",["Readable","Iterable","AsyncIterable"],n)}async function*COr(n){nLe||(nLe=u1e()),yield*nLe.prototype[dOr].call(n)}async function ffe(n,r,o,{end:l}){let u,d=null;const h=y=>{if(y&&(u=y),d){const E=d;d=null,E()}},w=()=>new fOr((y,E)=>{u?E(u):d=()=>{u?E(u):y()}});r.on("drain",h);const v=Ohe(r,{readable:!1},h);try{r.writableNeedDrain&&await w();for await(const y of n)r.write(y)||await w();l&&(r.end(),await w()),o()}catch(y){o(u!==y?gOr(u,y):y)}finally{v(),r.off("drain",h)}}async function oLe(n,r,o,{end:l}){ND(r)&&(r=r.writable);const u=r.getWriter();try{for await(const d of n)await u.ready,u.write(d).catch(()=>{});await u.ready,l&&await u.close(),o()}catch(d){try{await u.abort(d),o(d)}catch(h){o(h)}}}function AOr(...n){return Ufn(n,pOr(xOr(n)))}function Ufn(n,r,o){if(n.length===1&&uOr(n[0])&&(n=n[0]),n.length<2)throw new wOr("streams");const l=new ROr,u=l.signal,d=o==null?void 0:o.signal,h=[];SOr(d,"options.signal");function w(){O(new vOr)}rLe=rLe||w1.addAbortListener;let v;d&&(v=rLe(d,w));let y,E;const A=[];let C=0;function R(G){O(G,--C===0)}function O(G,j){var Q;if(G&&(!y||y.code==="ERR_STREAM_PREMATURE_CLOSE")&&(y=G),!(!y&&!j)){for(;A.length;)A.shift()(y);(Q=v)===null||Q===void 0||Q[hOr](),l.abort(),j&&(y||h.forEach(te=>te()),HK.nextTick(r,y,E))}}let M;for(let G=0;G0,pe=Q||(o==null?void 0:o.end)!==!1,De=G===n.length-1;if(WXt(j)){let Re=function(le){le&&le.name!=="AbortError"&&le.code!=="ERR_STREAM_PREMATURE_CLOSE"&&R(le)};if(pe){const{destroy:le,cleanup:xe}=HXt(j,Q,te);A.push(le),ZDe(j)&&De&&h.push(xe)}j.on("error",Re),ZDe(j)&&De&&h.push(()=>{j.removeListener("error",Re)})}if(G===0)if(typeof j=="function"){if(M=j({signal:u}),!N8(M))throw new QDe("Iterable, AsyncIterable or Stream","source",M)}else N8(j)||gde(j)||ND(j)?M=j:M=BXt.from(j);else if(typeof j=="function"){if(ND(M)){var L;M=iLe((L=M)===null||L===void 0?void 0:L.readable)}else M=iLe(M);if(M=j(M,{signal:u}),Q){if(!N8(M,!0))throw new QDe("AsyncIterable",`transform[${G-1}]`,M)}else{var H;tLe||(tLe=Hfn);const Re=new tLe({objectMode:!0}),le=(H=M)===null||H===void 0?void 0:H.then;if(typeof le=="function")C++,le.call(M,ae=>{E=ae,ae!=null&&Re.write(ae),pe&&Re.end(),HK.nextTick(R)},ae=>{Re.destroy(ae),HK.nextTick(R,ae)});else if(N8(M,!0))C++,ffe(M,Re,R,{end:pe});else if(eLe(M)||ND(M)){const ae=M.readable||M;C++,ffe(ae,Re,R,{end:pe})}else throw new QDe("AsyncIterable or Promise","destination",M);M=Re;const{destroy:xe,cleanup:be}=HXt(M,!1,!0);A.push(xe),De&&h.push(be)}}else if(WXt(j)){if(gde(M)){C+=2;const Re=TOr(M,j,R,{end:pe});ZDe(j)&&De&&h.push(Re)}else if(ND(M)||eLe(M)){const Re=M.readable||M;C++,ffe(Re,j,R,{end:pe})}else if(N8(M))C++,ffe(M,j,R,{end:pe});else throw new KBe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else if(EOr(j)){if(gde(M))C++,oLe(iLe(M),j,R,{end:pe});else if(eLe(M)||N8(M))C++,oLe(M,j,R,{end:pe});else if(ND(M))C++,oLe(M.readable,j,R,{end:pe});else throw new KBe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else M=BXt.from(j)}return(u!=null&&u.aborted||d!=null&&d.aborted)&&HK.nextTick(w),M}function TOr(n,r,o,{end:l}){let u=!1;if(r.on("close",()=>{u||o(new yOr)}),n.pipe(r,{end:!1}),l){let d=function(){u=!0,r.end()};kOr(n)?HK.nextTick(d):n.once("end",d)}else o();return Ohe(n,{readable:!0,writable:!1},d=>{const h=n._readableState;d&&d.code==="ERR_STREAM_PREMATURE_CLOSE"&&h&&h.ended&&!h.errored&&!h.errorEmitted?n.once("end",o).once("error",o):o(d)}),Ohe(r,{readable:!1,writable:!0},o)}var EVe={pipelineImpl:Ufn,pipeline:AOr};const{pipeline:$Or}=EVe,dfe=mx(),{destroyer:IOr}=Mj,{isNodeStream:hfe,isReadable:UXt,isWritable:GXt,isWebStream:sLe,isTransformStream:m8,isWritableStream:VXt,isReadableStream:zXt}=Mx,{AbortError:POr,codes:{ERR_INVALID_ARG_VALUE:KXt,ERR_MISSING_ARGS:OOr}}=L0,NOr=qT;var Gfn=function(...r){if(r.length===0)throw new OOr("streams");if(r.length===1)return dfe.from(r[0]);const o=[...r];if(typeof r[0]=="function"&&(r[0]=dfe.from(r[0])),typeof r[r.length-1]=="function"){const R=r.length-1;r[R]=dfe.from(r[R])}for(let R=0;R0&&!(GXt(r[R])||VXt(r[R])||m8(r[R])))throw new KXt(`streams[${R}]`,o[R],"must be writable")}let l,u,d,h,w;function v(R){const O=h;h=null,O?O(R):R?w.destroy(R):!C&&!A&&w.destroy()}const y=r[0],E=$Or(r,v),A=!!(GXt(y)||VXt(y)||m8(y)),C=!!(UXt(E)||zXt(E)||m8(E));if(w=new dfe({writableObjectMode:!!(y!=null&&y.writableObjectMode),readableObjectMode:!!(E!=null&&E.readableObjectMode),writable:A,readable:C}),A){if(hfe(y))w._write=function(O,M,L){y.write(O,M)?L():l=L},w._final=function(O){y.end(),u=O},y.on("drain",function(){if(l){const O=l;l=null,O()}});else if(sLe(y)){const M=(m8(y)?y.writable:y).getWriter();w._write=async function(L,H,G){try{await M.ready,M.write(L).catch(()=>{}),G()}catch(j){G(j)}},w._final=async function(L){try{await M.ready,M.close().catch(()=>{}),u=L}catch(H){L(H)}}}const R=m8(E)?E.readable:E;NOr(R,()=>{if(u){const O=u;u=null,O()}})}if(C){if(hfe(E))E.on("readable",function(){if(d){const R=d;d=null,R()}}),E.on("end",function(){w.push(null)}),w._read=function(){for(;;){const R=E.read();if(R===null){d=w._read;return}if(!w.push(R))return}};else if(sLe(E)){const O=(m8(E)?E.readable:E).getReader();w._read=async function(){for(;;)try{const{value:M,done:L}=await O.read();if(!w.push(M))return;if(L){w.push(null);return}}catch{return}}}}return w._destroy=function(R,O){!R&&h!==null&&(R=new POr),d=null,l=null,u=null,h===null?O(R):(h=O,hfe(E)&&IOr(E,R))},w};const MOr=globalThis.AbortController||$o().AbortController,{codes:{ERR_INVALID_ARG_VALUE:DOr,ERR_INVALID_ARG_TYPE:UJ,ERR_MISSING_ARGS:LOr,ERR_OUT_OF_RANGE:jOr},AbortError:pk}=L0,{validateAbortSignal:RO,validateInteger:qXt,validateObject:xO}=HJ,FOr=Vf.Symbol("kWeak"),BOr=Vf.Symbol("kResistStopPropagation"),{finished:WOr}=qT,HOr=Gfn,{addAbortSignalNoValidate:UOr}=a1e,{isWritable:GOr,isNodeStream:VOr}=Mx,{deprecate:zOr}=w1,{ArrayPrototypePush:KOr,Boolean:qOr,MathFloor:XXt,Number:XOr,NumberIsNaN:JOr,Promise:JXt,PromiseReject:YXt,PromiseResolve:YOr,PromisePrototypeThen:QXt,Symbol:Vfn}=Vf,Nhe=Vfn("kEmpty"),ZXt=Vfn("kEof");function QOr(n,r){if(r!=null&&xO(r,"options"),(r==null?void 0:r.signal)!=null&&RO(r.signal,"options.signal"),VOr(n)&&!GOr(n))throw new DOr("stream",n,"must be writable");const o=HOr(this,n);return r!=null&&r.signal&&UOr(r.signal,o),o}function f1e(n,r){if(typeof n!="function")throw new UJ("fn",["Function","AsyncFunction"],n);r!=null&&xO(r,"options"),(r==null?void 0:r.signal)!=null&&RO(r.signal,"options.signal");let o=1;(r==null?void 0:r.concurrency)!=null&&(o=XXt(r.concurrency));let l=o-1;return(r==null?void 0:r.highWaterMark)!=null&&(l=XXt(r.highWaterMark)),qXt(o,"options.concurrency",1),qXt(l,"options.highWaterMark",0),l+=o,(async function*(){const d=w1.AbortSignalAny([r==null?void 0:r.signal].filter(qOr)),h=this,w=[],v={signal:d};let y,E,A=!1,C=0;function R(){A=!0,O()}function O(){C-=1,M()}function M(){E&&!A&&C=l||C>=o)&&await new JXt(G=>{E=G})}w.push(ZXt)}catch(H){const G=YXt(H);QXt(G,O,R),w.push(G)}finally{A=!0,y&&(y(),y=null)}}L();try{for(;;){for(;w.length>0;){const H=await w[0];if(H===ZXt)return;if(d.aborted)throw new pk;H!==Nhe&&(yield H),w.shift(),M()}await new JXt(H=>{y=H})}}finally{A=!0,E&&(E(),E=null)}}).call(this)}function ZOr(n=void 0){return n!=null&&xO(n,"options"),(n==null?void 0:n.signal)!=null&&RO(n.signal,"options.signal"),(async function*(){let o=0;for await(const u of this){var l;if(n!=null&&(l=n.signal)!==null&&l!==void 0&&l.aborted)throw new pk({cause:n.signal.reason});yield[o++,u]}}).call(this)}async function zfn(n,r=void 0){for await(const o of kVe.call(this,n,r))return!0;return!1}async function e7r(n,r=void 0){if(typeof n!="function")throw new UJ("fn",["Function","AsyncFunction"],n);return!await zfn.call(this,async(...o)=>!await n(...o),r)}async function t7r(n,r){for await(const o of kVe.call(this,n,r))return o}async function n7r(n,r){if(typeof n!="function")throw new UJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u),Nhe}for await(const l of f1e.call(this,o,r));}function kVe(n,r){if(typeof n!="function")throw new UJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u)?l:Nhe}return f1e.call(this,o,r)}class r7r extends LOr{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}async function i7r(n,r,o){var l;if(typeof n!="function")throw new UJ("reducer",["Function","AsyncFunction"],n);o!=null&&xO(o,"options"),(o==null?void 0:o.signal)!=null&&RO(o.signal,"options.signal");let u=arguments.length>1;if(o!=null&&(l=o.signal)!==null&&l!==void 0&&l.aborted){const y=new pk(void 0,{cause:o.signal.reason});throw this.once("error",()=>{}),await WOr(this.destroy(y)),y}const d=new MOr,h=d.signal;if(o!=null&&o.signal){const y={once:!0,[FOr]:this,[BOr]:!0};o.signal.addEventListener("abort",()=>d.abort(),y)}let w=!1;try{for await(const y of this){var v;if(w=!0,o!=null&&(v=o.signal)!==null&&v!==void 0&&v.aborted)throw new pk;u?r=await n(r,y,{signal:h}):(r=y,u=!0)}if(!w&&!u)throw new r7r}finally{d.abort()}return r}async function o7r(n){n!=null&&xO(n,"options"),(n==null?void 0:n.signal)!=null&&RO(n.signal,"options.signal");const r=[];for await(const l of this){var o;if(n!=null&&(o=n.signal)!==null&&o!==void 0&&o.aborted)throw new pk(void 0,{cause:n.signal.reason});KOr(r,l)}return r}function s7r(n,r){const o=f1e.call(this,n,r);return(async function*(){for await(const u of o)yield*u}).call(this)}function Kfn(n){if(n=XOr(n),JOr(n))return 0;if(n<0)throw new jOr("number",">= 0",n);return n}function l7r(n,r=void 0){return r!=null&&xO(r,"options"),(r==null?void 0:r.signal)!=null&&RO(r.signal,"options.signal"),n=Kfn(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new pk;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new pk;n--<=0&&(yield d)}}).call(this)}function a7r(n,r=void 0){return r!=null&&xO(r,"options"),(r==null?void 0:r.signal)!=null&&RO(r.signal,"options.signal"),n=Kfn(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new pk;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new pk;if(n-- >0&&(yield d),n<=0)return}}).call(this)}pVe.streamReturningOperators={asIndexedPairs:zOr(ZOr,"readable.asIndexedPairs will be removed in a future version."),drop:l7r,filter:kVe,flatMap:s7r,map:f1e,take:a7r,compose:QOr};pVe.promiseReturningOperators={every:e7r,forEach:n7r,reduce:i7r,toArray:o7r,some:zfn,find:t7r};var lLe,eJt;function qfn(){if(eJt)return lLe;eJt=1;const{ArrayPrototypePop:n,Promise:r}=Vf,{isIterable:o,isNodeStream:l,isWebStream:u}=Mx,{pipelineImpl:d}=EVe,{finished:h}=qT;Xfn();function w(...v){return new r((y,E)=>{let A,C;const R=v[v.length-1];if(R&&typeof R=="object"&&!l(R)&&!o(R)&&!u(R)){const O=n(v);A=O.signal,C=O.end}d(v,(O,M)=>{O?E(O):y(M)},{signal:A,end:C})})}return lLe={finished:h,pipeline:w},lLe}var tJt;function Xfn(){if(tJt)return GDe.exports;tJt=1;const{Buffer:n}=Kr,{ObjectDefineProperty:r,ObjectKeys:o,ReflectApply:l}=Vf,{promisify:{custom:u}}=w1,{streamReturningOperators:d,promiseReturningOperators:h}=pVe,{codes:{ERR_ILLEGAL_CONSTRUCTOR:w}}=L0,v=Gfn,{setDefaultHighWaterMark:y,getDefaultHighWaterMark:E}=c1e,{pipeline:A}=EVe,{destroyer:C}=Mj,R=qT,O=qfn(),M=Mx,L=GDe.exports=yVe.Stream;L.isDestroyed=M.isDestroyed,L.isDisturbed=M.isDisturbed,L.isErrored=M.isErrored,L.isReadable=M.isReadable,L.isWritable=M.isWritable,L.Readable=u1e();for(const G of o(d)){let Q=function(...te){if(new.target)throw w();return L.Readable.from(l(j,this,te))};const j=d[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}for(const G of o(h)){let Q=function(...te){if(new.target)throw w();return l(j,this,te)};const j=h[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}L.Writable=vVe(),L.Duplex=mx(),L.Transform=Bfn,L.PassThrough=Hfn,L.pipeline=A;const{addAbortSignal:H}=a1e;return L.addAbortSignal=H,L.finished=R,L.destroy=C,L.compose=v,L.setDefaultHighWaterMark=y,L.getDefaultHighWaterMark=E,r(L,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return O}}),r(A,u,{__proto__:null,enumerable:!0,get(){return O.pipeline}}),r(R,u,{__proto__:null,enumerable:!0,get(){return O.finished}}),L.Stream=L,L._isUint8Array=function(j){return j instanceof Uint8Array},L._uint8ArrayToBuffer=function(j){return n.from(j.buffer,j.byteOffset,j.byteLength)},GDe.exports}(function(n){const r=Xfn(),o=qfn(),l=r.Readable.destroy;n.exports=r.Readable,n.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer,n.exports._isUint8Array=r._isUint8Array,n.exports.isDisturbed=r.isDisturbed,n.exports.isErrored=r.isErrored,n.exports.isReadable=r.isReadable,n.exports.Readable=r.Readable,n.exports.Writable=r.Writable,n.exports.Duplex=r.Duplex,n.exports.Transform=r.Transform,n.exports.PassThrough=r.PassThrough,n.exports.addAbortSignal=r.addAbortSignal,n.exports.finished=r.finished,n.exports.destroy=r.destroy,n.exports.destroy=l,n.exports.pipeline=r.pipeline,n.exports.compose=r.compose,Object.defineProperty(r,"promises",{configurable:!0,enumerable:!0,get(){return o}}),n.exports.Stream=r.Stream,n.exports.default=n.exports})(ofn);var c7r=ofn.exports,d1e={};Object.defineProperty(d1e,"__esModule",{value:!0});d1e.ParseError=void 0;class u7r extends Error{constructor(r,o){const l=r.saxParser;super(r.trackPosition?`Line ${l.line} column ${l.column+1}: ${o}`:o)}}d1e.ParseError=u7r;var Jfn={},Yfn={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.validateIri=n.IriValidationStrategy=void 0;function r(){const w="[!$&'()*+,;=]",v="%[a-fA-F0-9]{2}",y="([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",E=`${y}\\.${y}\\.${y}\\.${y}`,A="[a-fA-F0-9]{1,4}",C=`(${A}:${A}|${E})`,R=`((${A}:){6}${C}|::(${A}:){5}${C}|(${A})?::(${A}:){4}${C}|((${A}:){0,1}${A})?::(${A}:){3}${C}|((${A}:){0,2}${A})?::(${A}:){2}${C}|((${A}:){0,3}${A})?::${A}:${C}|((${A}:){0,4}${A})?::${C}|((${A}:){0,5}${A})?::${A}|((${A}:){0,6}${A})?::)`,O=`v[a-fA-F0-9]+\\.(${w}|${w}|":)+`,M=`\\[(${R}|${O})\\]`,L="[0-9]*",H="[a-zA-Z][a-zA-Z0-9+\\-.]*",j="[-󰀀-󿿽􀀀-􏿽]",pe="[a-zA-Z0-9\\-._~ -퟿豈-﷏ﷰ-￯𐀀-🿽𠀀-𯿽𰀀-𿿽񀀀-񏿽񐀀-񟿽񠀀-񯿽񰀀-񿿽򀀀-򏿽򐀀-򟿽򠀀-򯿽򰀀-򿿽󀀀-󏿽󐀀-󟿽󡀀-󯿽]",De=`(${pe}|${v}|${w}|[:@])*`,Re=`(${De}|[\\/?])*`,le=`(${De}|${j}|[\\/?])*`,xe=`(${De})+`,be=`(${De})*`,ae="",F=`${xe}(\\/${be})*`,me=`\\/(${xe}(\\/${be})*)?`,ye=`(\\/${be})*`,we=`(${pe}|${v}|${w})*`,Be=`(${M}|${E}|${we})`,Ge=`(\\/\\/${`(${`(${pe}|${v}|${w}|:)*`}@)?${Be}(:${L})?`}${ye}|${me}|${F}|${ae})`,Le=`^${H}:${Ge}(\\?${le})?(#${Re})?$`;return new RegExp(Le,"u")}const o=r(),l=/^[A-Za-z][\d+-.A-Za-z]*:[^\u0000-\u0020"<>\\^`{|}]*$/u;var u;(function(h){h.Strict="strict",h.Pragmatic="pragmatic",h.None="none"})(u=n.IriValidationStrategy||(n.IriValidationStrategy={}));function d(h,w=u.Strict){switch(w){case u.Strict:return o.test(h)?void 0:new Error(`Invalid IRI according to RFC 3987: '${h}'`);case u.Pragmatic:return l.test(h)?void 0:new Error(`Invalid IRI according to RDF Turtle: '${h}'`);case u.None:return;default:return new Error(`Not supported validation strategy "${w}"`)}}n.validateIri=d})(Yfn);(function(n){var r=fu&&fu.__createBinding||(Object.create?function(l,u,d,h){h===void 0&&(h=d);var w=Object.getOwnPropertyDescriptor(u,d);(!w||("get"in w?!u.__esModule:w.writable||w.configurable))&&(w={enumerable:!0,get:function(){return u[d]}}),Object.defineProperty(l,h,w)}:function(l,u,d,h){h===void 0&&(h=d),l[h]=u[d]}),o=fu&&fu.__exportStar||function(l,u){for(var d in l)d!=="default"&&!Object.prototype.hasOwnProperty.call(u,d)&&r(u,l,d)};Object.defineProperty(n,"__esModule",{value:!0}),o(Yfn,n)})(Jfn);Object.defineProperty(KL,"__esModule",{value:!0});KL.ParseType=KL.RdfXmlParser=void 0;const nJt=mJ,f7r=qL,rJt=c7r,d7r=d1e,h7r=MUe,aLe=Jfn;let CO=class hf extends rJt.Transform{constructor(r){super({readableObjectMode:!0}),this.activeTagStack=[],this.nodeIds={},r&&(Object.assign(this,r),this.options=r),this.dataFactory||(this.dataFactory=new h7r.DataFactory),this.baseIRI||(this.baseIRI=""),this.defaultGraph||(this.defaultGraph=this.dataFactory.defaultGraph()),this.validateUri!==!1&&(this.validateUri=!0),this.iriValidationStrategy||(this.iriValidationStrategy=this.validateUri?aLe.IriValidationStrategy.Pragmatic:aLe.IriValidationStrategy.None),this.saxParser=new f7r.SaxesParser({xmlns:!0,position:this.trackPosition}),this.attachSaxListeners()}import(r){const o=new rJt.PassThrough({readableObjectMode:!0});r.on("error",u=>l.emit("error",u)),r.on("data",u=>o.push(u)),r.on("end",()=>o.push(null));const l=o.pipe(new hf(this.options));return l}_transform(r,o,l){try{this.saxParser.write(r)}catch(u){return l(u)}l()}newParseError(r){return new d7r.ParseError(this,r)}valueToUri(r,o){return this.uriToNamedNode((0,nJt.resolve)(r,o.baseIRI))}uriToNamedNode(r){const o=(0,aLe.validateIri)(r,this.iriValidationStrategy);if(o instanceof Error)throw this.newParseError(o.message);return this.dataFactory.namedNode(r)}validateNcname(r){if(!hf.NCNAME_MATCHER.test(r))throw this.newParseError(`Not a valid NCName: ${r}`)}attachSaxListeners(){this.saxParser.on("error",r=>this.emit("error",r)),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(r){const o=this.activeTagStack.length?this.activeTagStack[this.activeTagStack.length-1]:null;let l=$R.RESOURCE;if(o&&(o.hadChildren=!0,l=o.childrenParseType),o&&o.childrenStringTags){const d=r.name;let h="";for(const E in r.attributes)h+=` ${E}="${r.attributes[E].value}"`;const v=`<${`${d}${h}`}>`;o.childrenStringTags.push(v);const y={childrenStringTags:o.childrenStringTags};y.childrenStringEmitClosingTag=``,this.activeTagStack.push(y);return}const u={};o?(u.language=o.language,u.baseIRI=o.baseIRI):u.baseIRI=this.baseIRI,this.activeTagStack.push(u),l===$R.RESOURCE?this.onTagResource(r,u,o,!o):this.onTagProperty(r,u,o)}onTagResource(r,o,l,u){o.childrenParseType=$R.PROPERTY;let d=!0;if(r.uri===hf.RDF){if(!u&&hf.FORBIDDEN_NODE_ELEMENTS.indexOf(r.local)>=0)throw this.newParseError(`Illegal node element name: ${r.local}`);switch(r.local){case"RDF":o.childrenParseType=$R.RESOURCE;case"Description":d=!1}}const h=[],w=[];let v=null,y=!1,E=!1,A=null;for(const C in r.attributes){const R=r.attributes[C];if(l&&R.uri===hf.RDF)switch(R.local){case"about":if(v)throw this.newParseError(`Only one of rdf:about, rdf:nodeID and rdf:ID can be present, while ${R.value} and ${v} where found.`);v=R.value;continue;case"ID":if(v)throw this.newParseError(`Only one of rdf:about, rdf:nodeID and rdf:ID can be present, while ${R.value} and ${v} where found.`);this.validateNcname(R.value),v="#"+R.value,y=!0;continue;case"nodeID":if(v)throw this.newParseError(`Only one of rdf:about, rdf:nodeID and rdf:ID can be present, while ${R.value} and ${v} where found.`);this.validateNcname(R.value),v=R.value,E=!0;continue;case"bagID":throw this.newParseError("rdf:bagID is not supported.");case"type":A=R.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(R.uri===hf.XML){if(R.local==="lang"){o.language=R.value===""?null:R.value.toLowerCase();continue}else if(R.local==="base"){o.baseIRI=(0,nJt.resolve)(R.value,o.baseIRI);continue}}R.prefix!=="xml"&&R.prefix!=="xmlns"&&(R.prefix!==""||R.local!=="xmlns")&&R.uri&&(h.push(this.uriToNamedNode(R.uri+R.local)),w.push(R.value))}if(v!==null&&(o.subject=E?this.dataFactory.blankNode(v):this.valueToUri(v,o),y&&this.claimNodeId(o.subject)),o.subject||(o.subject=this.dataFactory.blankNode()),d){const C=this.uriToNamedNode(r.uri+r.local);this.emitTriple(o.subject,this.dataFactory.namedNode(hf.RDF+"type"),C,l?l.reifiedStatementId:null)}if(l){if(l.predicate)if(l.childrenCollectionSubject){const C=this.dataFactory.blankNode();this.emitTriple(l.childrenCollectionSubject,l.childrenCollectionPredicate,C,l.reifiedStatementId),this.emitTriple(C,this.dataFactory.namedNode(hf.RDF+"first"),o.subject,o.reifiedStatementId),l.childrenCollectionSubject=C,l.childrenCollectionPredicate=this.dataFactory.namedNode(hf.RDF+"rest")}else{this.emitTriple(l.subject,l.predicate,o.subject,l.reifiedStatementId);for(let C=0;C=0)throw this.newParseError(`Illegal property element name: ${r.local}`);o.predicateSubPredicates=[],o.predicateSubObjects=[];let u=!1,d=!1,h=null,w=!0;const v=[],y=[];for(const E in r.attributes){const A=r.attributes[E];if(A.uri===hf.RDF)switch(A.local){case"resource":if(h)throw this.newParseError(`Found both rdf:resource (${A.value}) and rdf:nodeID (${h}).`);if(u)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:resource (${A.value})`);o.hadChildren=!0,h=A.value,w=!1;continue;case"datatype":if(d)throw this.newParseError(`Found both non-rdf:* property attributes and rdf:datatype (${A.value}).`);if(u)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:datatype (${A.value})`);o.datatype=this.valueToUri(A.value,o);continue;case"nodeID":if(d)throw this.newParseError(`Found both non-rdf:* property attributes and rdf:nodeID (${A.value}).`);if(o.hadChildren)throw this.newParseError(`Found both rdf:resource and rdf:nodeID (${A.value}).`);if(u)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:nodeID (${A.value})`);this.validateNcname(A.value),o.hadChildren=!0,h=A.value,w=!0;continue;case"bagID":throw this.newParseError("rdf:bagID is not supported.");case"parseType":if(d)throw this.newParseError("rdf:parseType is not allowed when non-rdf:* property attributes are present");if(o.datatype)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:datatype (${o.datatype.value})`);if(h)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:nodeID or rdf:resource (${h})`);if(A.value==="Resource"){u=!0,o.childrenParseType=$R.PROPERTY;const C=this.dataFactory.blankNode();this.emitTriple(o.subject,o.predicate,C,o.reifiedStatementId),o.subject=C,o.predicate=null}else A.value==="Collection"?(u=!0,o.hadChildren=!0,o.childrenCollectionSubject=o.subject,o.childrenCollectionPredicate=o.predicate,w=!1):A.value==="Literal"&&(u=!0,o.childrenTagsToString=!0,o.childrenStringTags=[]);continue;case"ID":this.validateNcname(A.value),o.reifiedStatementId=this.valueToUri("#"+A.value,o),this.claimNodeId(o.reifiedStatementId);continue}else if(A.uri===hf.XML&&A.local==="lang"){o.language=A.value===""?null:A.value.toLowerCase();continue}if(A.prefix!=="xml"&&A.prefix!=="xmlns"&&(A.prefix!==""||A.local!=="xmlns")&&A.uri){if(u||o.datatype)throw this.newParseError(`Found illegal rdf:* properties on property element with attribute: ${A.value}`);o.hadChildren=!0,d=!0,v.push(this.uriToNamedNode(A.uri+A.local)),y.push(this.dataFactory.literal(A.value,o.datatype||o.language))}}if(h!==null){const E=o.subject;o.subject=w?this.dataFactory.blankNode(h):this.valueToUri(h,o),this.emitTriple(E,o.predicate,o.subject,o.reifiedStatementId);for(let A=0;A/g,(o,l,u)=>(this.saxParser.ENTITIES[l]=u,""))}};KL.RdfXmlParser=CO;CO.MIME_TYPE="application/rdf+xml";CO.RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#";CO.XML="http://www.w3.org/XML/1998/namespace";CO.FORBIDDEN_NODE_ELEMENTS=["RDF","ID","about","bagID","parseType","resource","nodeID","li","aboutEach","aboutEachPrefix"];CO.FORBIDDEN_PROPERTY_ELEMENTS=["Description","RDF","ID","about","bagID","parseType","resource","nodeID","aboutEach","aboutEachPrefix"];CO.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 $R;(function(n){n[n.RESOURCE=0]="RESOURCE",n[n.PROPERTY=1]="PROPERTY"})($R||(KL.ParseType=$R={}));(function(n){var r=fu&&fu.__createBinding||(Object.create?function(l,u,d,h){h===void 0&&(h=d);var w=Object.getOwnPropertyDescriptor(u,d);(!w||("get"in w?!u.__esModule:w.writable||w.configurable))&&(w={enumerable:!0,get:function(){return u[d]}}),Object.defineProperty(l,h,w)}:function(l,u,d,h){h===void 0&&(h=d),l[h]=u[d]}),o=fu&&fu.__exportStar||function(l,u){for(var d in l)d!=="default"&&!Object.prototype.hasOwnProperty.call(u,d)&&r(u,l,d)};Object.defineProperty(n,"__esModule",{value:!0}),o(KL,n)})(Jun);class p7r extends Jun.RdfXmlParser{constructor({factory:r,...o}={}){super({...o,dataFactory:r})}}const b7r=new CL([["application/ld+json",new won],["application/trig",new xD],["application/n-quads",new xD],["application/n-triples",new xD],["text/n3",new xD],["text/turtle",new xD],["application/rdf+xml",new p7r]]),g7r=new CL([["application/ld+json",new ZAr],["application/n-quads",new NK],["application/n-triples",new NK],["text/n3",new NK],["text/turtle",new NK]]),w7r={parsers:b7r,serializers:g7r};wrn.formats.import(w7r);const qBe=wrn;var _L;class m7r{constructor(){J5(this,_L,{})}update(r){_E(this,_L,{}),r.forEach(o=>{Hp(this,_L)[o.prefix]=o.uri})}get prefixes(){return Hp(this,_L)}}_L=new WeakMap;const Qfn=new m7r;function wL(n){if(n.termType==="NamedNode"){const r=Wen(n.value,Qfn.prefixes);return r||n.value}return n.value}function y7r(n){const r=[...n].map(d=>d.subject),o=[...n].filter(d=>!d.predicate.equals(qBe.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"))).map(d=>d.object).filter(d=>d.termType==="BlankNode"||d.termType==="NamedNode");return[...new ehe([...r,...o])].map(d=>{const v=[...[...n.match(d)].reduce((y,{predicate:E,object:A})=>{if(!y.has(E.value)){const C={id:E.value,term:E,name:wL(E),values:new ehe};y.set(E.value,C)}return y.get(E.value).values.add(A),y},new Map).values()].sort((y,E)=>y.name==="rdf:type"?-1:E.name==="rdf:type"?1:y.name.localeCompare(E.name));return{id:d.value===""?"_:nobody":d.value,term:d,name:wL(d),properties:v}})}function v7r(n){const r=new ehe(n.map(l=>l.term));return n.flatMap(l=>l.properties.map(u=>({...u,resource:l}))).reduce((l,u)=>(u.values.forEach(d=>{const h=u.resource.term,w=d;r.has(w)&&l.push({source:h.value,target:w.value,sourceProperty:u.id,label:u.name})}),l),[])}function h1e(n){return Xhe()?(KK(n),!0):!1}function jR(n){return typeof n=="function"?n():Wr(n)}const _7r=typeof window<"u"&&typeof document<"u",S7r=n=>typeof n<"u",E7r=Object.prototype.toString,k7r=n=>E7r.call(n)==="[object Object]",R7r=()=>{};function x7r(n,r){function o(...l){return new Promise((u,d)=>{Promise.resolve(n(()=>r.apply(this,l),{fn:r,thisArg:this,args:l})).then(u).catch(d)})}return o}const Zfn=n=>n();function C7r(n=Zfn){const r=Fo(!0);function o(){r.value=!1}function l(){r.value=!0}const u=(...d)=>{r.value&&n(...d)};return{isActive:zX(r),pause:o,resume:l,eventFilter:u}}function iJt(n,r=!1,o="Timeout"){return new Promise((l,u)=>{setTimeout(r?()=>u(o):l,n)})}function A7r(n,r,o={}){const{eventFilter:l=Zfn,...u}=o;return Zs(n,x7r(l,r),u)}function fD(n,r,o={}){const{eventFilter:l,...u}=o,{eventFilter:d,pause:h,resume:w,isActive:v}=C7r(l);return{stop:A7r(n,r,{...u,eventFilter:d}),pause:h,resume:w,isActive:v}}function T7r(n,r={}){if(!_d(n))return ABn(n);const o=Array.isArray(n.value)?Array.from({length:n.value.length}):{};for(const l in n.value)o[l]=CBn(()=>({get(){return n.value[l]},set(u){var d;if((d=jR(r.replaceRef))!=null?d:!0)if(Array.isArray(n.value)){const w=[...n.value];w[l]=u,n.value=w}else{const w={...n.value,[l]:u};Object.setPrototypeOf(w,Object.getPrototypeOf(n.value)),n.value=w}else n.value[l]=u}}));return o}function XBe(n,r=!1){function o(A,{flush:C="sync",deep:R=!1,timeout:O,throwOnTimeout:M}={}){let L=null;const G=[new Promise(j=>{L=Zs(n,Q=>{A(Q)!==r&&(L==null||L(),j(Q))},{flush:C,deep:R,immediate:!0})})];return O!=null&&G.push(iJt(O,M).then(()=>jR(n)).finally(()=>L==null?void 0:L())),Promise.race(G)}function l(A,C){if(!_d(A))return o(Q=>Q===A,C);const{flush:R="sync",deep:O=!1,timeout:M,throwOnTimeout:L}=C??{};let H=null;const j=[new Promise(Q=>{H=Zs([n,A],([te,pe])=>{r!==(te===pe)&&(H==null||H(),Q(te))},{flush:R,deep:O,immediate:!0})})];return M!=null&&j.push(iJt(M,L).then(()=>jR(n)).finally(()=>(H==null||H(),jR(n)))),Promise.race(j)}function u(A){return o(C=>!!C,A)}function d(A){return l(null,A)}function h(A){return l(void 0,A)}function w(A){return o(Number.isNaN,A)}function v(A,C){return o(R=>{const O=Array.from(R);return O.includes(A)||O.includes(jR(A))},C)}function y(A){return E(1,A)}function E(A=1,C){let R=-1;return o(()=>(R+=1,R>=A),C)}return Array.isArray(jR(n))?{toMatch:o,toContains:v,changed:y,changedTimes:E,get not(){return XBe(n,!r)}}:{toMatch:o,toBe:l,toBeTruthy:u,toBeNull:d,toBeNaN:w,toBeUndefined:h,changed:y,changedTimes:E,get not(){return XBe(n,!r)}}}function JBe(n){return XBe(n)}function $7r(n){var r;const o=jR(n);return(r=o==null?void 0:o.$el)!=null?r:o}const edn=_7r?window:void 0;function tdn(...n){let r,o,l,u;if(typeof n[0]=="string"||Array.isArray(n[0])?([o,l,u]=n,r=edn):[r,o,l,u]=n,!r)return R7r;Array.isArray(o)||(o=[o]),Array.isArray(l)||(l=[l]);const d=[],h=()=>{d.forEach(E=>E()),d.length=0},w=(E,A,C,R)=>(E.addEventListener(A,C,R),()=>E.removeEventListener(A,C,R)),v=Zs(()=>[$7r(r),jR(u)],([E,A])=>{if(h(),!E)return;const C=k7r(A)?{...A}:A;d.push(...o.flatMap(R=>l.map(O=>w(E,R,O,C))))},{immediate:!0,flush:"post"}),y=()=>{v(),h()};return h1e(y),y}function I7r(n){return typeof n=="function"?n:typeof n=="string"?r=>r.key===n:Array.isArray(n)?r=>n.includes(r.key):()=>!0}function oJt(...n){let r,o,l={};n.length===3?(r=n[0],o=n[1],l=n[2]):n.length===2?typeof n[1]=="object"?(r=!0,o=n[0],l=n[1]):(r=n[0],o=n[1]):(r=!0,o=n[0]);const{target:u=edn,eventName:d="keydown",passive:h=!1,dedupe:w=!1}=l,v=I7r(r);return tdn(u,d,E=>{E.repeat&&jR(w)||v(E)&&o(E)},h)}function P7r(n){return JSON.parse(JSON.stringify(n))}function cLe(n,r,o,l={}){var u,d,h;const{clone:w=!1,passive:v=!1,eventName:y,deep:E=!1,defaultValue:A,shouldEmit:C}=l,R=NT(),O=o||(R==null?void 0:R.emit)||((u=R==null?void 0:R.$emit)==null?void 0:u.bind(R))||((h=(d=R==null?void 0:R.proxy)==null?void 0:d.$emit)==null?void 0:h.bind(R==null?void 0:R.proxy));let M=y;r||(r="modelValue"),M=M||`update:${r.toString()}`;const L=j=>w?typeof w=="function"?w(j):P7r(j):j,H=()=>S7r(n[r])?L(n[r]):A,G=j=>{C?C(j)&&O(M,j):O(M,j)};if(v){const j=H(),Q=Fo(j);let te=!1;return Zs(()=>n[r],pe=>{te||(te=!0,Q.value=L(pe),RS(()=>te=!1))}),Zs(Q,pe=>{!te&&(pe!==n[r]||E)&&G(pe)},{deep:E}),Q}else return To({get(){return H()},set(j){G(j)}})}var O7r={value:()=>{}};function p1e(){for(var n=0,r=arguments.length,o={},l;n=0&&(l=o.slice(u+1),o=o.slice(0,u)),o&&!r.hasOwnProperty(o))throw new Error("unknown type: "+o);return{type:o,name:l}})}wde.prototype=p1e.prototype={constructor:wde,on:function(n,r){var o=this._,l=N7r(n+"",o),u,d=-1,h=l.length;if(arguments.length<2){for(;++d0)for(var o=new Array(u),l=0,u,d;l=0&&(r=n.slice(0,o))!=="xmlns"&&(n=n.slice(o+1)),lJt.hasOwnProperty(r)?{space:lJt[r],local:n}:n}function D7r(n){return function(){var r=this.ownerDocument,o=this.namespaceURI;return o===YBe&&r.documentElement.namespaceURI===YBe?r.createElement(n):r.createElementNS(o,n)}}function L7r(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function ndn(n){var r=b1e(n);return(r.local?L7r:D7r)(r)}function j7r(){}function RVe(n){return n==null?j7r:function(){return this.querySelector(n)}}function F7r(n){typeof n!="function"&&(n=RVe(n));for(var r=this._groups,o=r.length,l=new Array(o),u=0;u=j&&(j=G+1);!(te=L[j])&&++j=0;)(h=l[u])&&(d&&h.compareDocumentPosition(d)^4&&d.parentNode.insertBefore(h,d),d=h);return this}function uNr(n){n||(n=fNr);function r(A,C){return A&&C?n(A.__data__,C.__data__):!A-!C}for(var o=this._groups,l=o.length,u=new Array(l),d=0;dr?1:n>=r?0:NaN}function dNr(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this}function hNr(){return Array.from(this)}function pNr(){for(var n=this._groups,r=0,o=n.length;r1?this.each((r==null?RNr:typeof r=="function"?CNr:xNr)(n,r,o??"")):JL(this.node(),n)}function JL(n,r){return n.style.getPropertyValue(r)||ldn(n).getComputedStyle(n,null).getPropertyValue(r)}function TNr(n){return function(){delete this[n]}}function $Nr(n,r){return function(){this[n]=r}}function INr(n,r){return function(){var o=r.apply(this,arguments);o==null?delete this[n]:this[n]=o}}function PNr(n,r){return arguments.length>1?this.each((r==null?TNr:typeof r=="function"?INr:$Nr)(n,r)):this.node()[n]}function adn(n){return n.trim().split(/^|\s+/)}function xVe(n){return n.classList||new cdn(n)}function cdn(n){this._node=n,this._names=adn(n.getAttribute("class")||"")}cdn.prototype={add:function(n){var r=this._names.indexOf(n);r<0&&(this._names.push(n),this._node.setAttribute("class",this._names.join(" ")))},remove:function(n){var r=this._names.indexOf(n);r>=0&&(this._names.splice(r,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(n){return this._names.indexOf(n)>=0}};function udn(n,r){for(var o=xVe(n),l=-1,u=r.length;++l=0&&(o=r.slice(l+1),r=r.slice(0,l)),{type:r,name:o}})}function sMr(n){return function(){var r=this.__on;if(r){for(var o=0,l=-1,u=r.length,d;o()=>n;function QBe(n,{sourceEvent:r,subject:o,target:l,identifier:u,active:d,x:h,y:w,dx:v,dy:y,dispatch:E}){Object.defineProperties(this,{type:{value:n,enumerable:!0,configurable:!0},sourceEvent:{value:r,enumerable:!0,configurable:!0},subject:{value:o,enumerable:!0,configurable:!0},target:{value:l,enumerable:!0,configurable:!0},identifier:{value:u,enumerable:!0,configurable:!0},active:{value:d,enumerable:!0,configurable:!0},x:{value:h,enumerable:!0,configurable:!0},y:{value:w,enumerable:!0,configurable:!0},dx:{value:v,enumerable:!0,configurable:!0},dy:{value:y,enumerable:!0,configurable:!0},_:{value:E}})}QBe.prototype.on=function(){var n=this._.on.apply(this._,arguments);return n===this._?this:n};function gMr(n){return!n.ctrlKey&&!n.button}function wMr(){return this.parentNode}function mMr(n,r){return r??{x:n.x,y:n.y}}function yMr(){return navigator.maxTouchPoints||"ontouchstart"in this}function vMr(){var n=gMr,r=wMr,o=mMr,l=yMr,u={},d=p1e("start","drag","end"),h=0,w,v,y,E,A=0;function C(Q){Q.on("mousedown.drag",R).filter(l).on("touchstart.drag",L).on("touchmove.drag",H,bMr).on("touchend.drag touchcancel.drag",G).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function R(Q,te){if(!(E||!n.call(this,Q,te))){var pe=j(this,r.call(this,Q,te),Q,te,"mouse");pe&&(yS(Q.view).on("mousemove.drag",O,RX).on("mouseup.drag",M,RX),pdn(Q.view),uLe(Q),y=!1,w=Q.clientX,v=Q.clientY,pe("start",Q))}}function O(Q){if(mL(Q),!y){var te=Q.clientX-w,pe=Q.clientY-v;y=te*te+pe*pe>A}u.mouse("drag",Q)}function M(Q){yS(Q.view).on("mousemove.drag mouseup.drag",null),bdn(Q.view,y),mL(Q),u.mouse("end",Q)}function L(Q,te){if(n.call(this,Q,te)){var pe=Q.changedTouches,De=r.call(this,Q,te),Re=pe.length,le,xe;for(le=0;le>8&15|r>>4&240,r>>4&15|r&240,(r&15)<<4|r&15,1):o===8?bfe(r>>24&255,r>>16&255,r>>8&255,(r&255)/255):o===4?bfe(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|r&240,((r&15)<<4|r&15)/255):null):(r=SMr.exec(n))?new k0(r[1],r[2],r[3],1):(r=EMr.exec(n))?new k0(r[1]*255/100,r[2]*255/100,r[3]*255/100,1):(r=kMr.exec(n))?bfe(r[1],r[2],r[3],r[4]):(r=RMr.exec(n))?bfe(r[1]*255/100,r[2]*255/100,r[3]*255/100,r[4]):(r=xMr.exec(n))?pJt(r[1],r[2]/100,r[3]/100,1):(r=CMr.exec(n))?pJt(r[1],r[2]/100,r[3]/100,r[4]):aJt.hasOwnProperty(n)?fJt(aJt[n]):n==="transparent"?new k0(NaN,NaN,NaN,0):null}function fJt(n){return new k0(n>>16&255,n>>8&255,n&255,1)}function bfe(n,r,o,l){return l<=0&&(n=r=o=NaN),new k0(n,r,o,l)}function $Mr(n){return n instanceof VJ||(n=AX(n)),n?(n=n.rgb(),new k0(n.r,n.g,n.b,n.opacity)):new k0}function ZBe(n,r,o,l){return arguments.length===1?$Mr(n):new k0(n,r,o,l??1)}function k0(n,r,o,l){this.r=+n,this.g=+r,this.b=+o,this.opacity=+l}CVe(k0,ZBe,gdn(VJ,{brighter(n){return n=n==null?Dhe:Math.pow(Dhe,n),new k0(this.r*n,this.g*n,this.b*n,this.opacity)},darker(n){return n=n==null?xX:Math.pow(xX,n),new k0(this.r*n,this.g*n,this.b*n,this.opacity)},rgb(){return this},clamp(){return new k0(bP(this.r),bP(this.g),bP(this.b),Lhe(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:dJt,formatHex:dJt,formatHex8:IMr,formatRgb:hJt,toString:hJt}));function dJt(){return`#${K8(this.r)}${K8(this.g)}${K8(this.b)}`}function IMr(){return`#${K8(this.r)}${K8(this.g)}${K8(this.b)}${K8((isNaN(this.opacity)?1:this.opacity)*255)}`}function hJt(){const n=Lhe(this.opacity);return`${n===1?"rgb(":"rgba("}${bP(this.r)}, ${bP(this.g)}, ${bP(this.b)}${n===1?")":`, ${n})`}`}function Lhe(n){return isNaN(n)?1:Math.max(0,Math.min(1,n))}function bP(n){return Math.max(0,Math.min(255,Math.round(n)||0))}function K8(n){return n=bP(n),(n<16?"0":"")+n.toString(16)}function pJt(n,r,o,l){return l<=0?n=r=o=NaN:o<=0||o>=1?n=r=NaN:r<=0&&(n=NaN),new vS(n,r,o,l)}function wdn(n){if(n instanceof vS)return new vS(n.h,n.s,n.l,n.opacity);if(n instanceof VJ||(n=AX(n)),!n)return new vS;if(n instanceof vS)return n;n=n.rgb();var r=n.r/255,o=n.g/255,l=n.b/255,u=Math.min(r,o,l),d=Math.max(r,o,l),h=NaN,w=d-u,v=(d+u)/2;return w?(r===d?h=(o-l)/w+(o0&&v<1?0:h,new vS(h,w,v,n.opacity)}function PMr(n,r,o,l){return arguments.length===1?wdn(n):new vS(n,r,o,l??1)}function vS(n,r,o,l){this.h=+n,this.s=+r,this.l=+o,this.opacity=+l}CVe(vS,PMr,gdn(VJ,{brighter(n){return n=n==null?Dhe:Math.pow(Dhe,n),new vS(this.h,this.s,this.l*n,this.opacity)},darker(n){return n=n==null?xX:Math.pow(xX,n),new vS(this.h,this.s,this.l*n,this.opacity)},rgb(){var n=this.h%360+(this.h<0)*360,r=isNaN(n)||isNaN(this.s)?0:this.s,o=this.l,l=o+(o<.5?o:1-o)*r,u=2*o-l;return new k0(fLe(n>=240?n-240:n+120,u,l),fLe(n,u,l),fLe(n<120?n+240:n-120,u,l),this.opacity)},clamp(){return new vS(bJt(this.h),gfe(this.s),gfe(this.l),Lhe(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const n=Lhe(this.opacity);return`${n===1?"hsl(":"hsla("}${bJt(this.h)}, ${gfe(this.s)*100}%, ${gfe(this.l)*100}%${n===1?")":`, ${n})`}`}}));function bJt(n){return n=(n||0)%360,n<0?n+360:n}function gfe(n){return Math.max(0,Math.min(1,n||0))}function fLe(n,r,o){return(n<60?r+(o-r)*n/60:n<180?o:n<240?r+(o-r)*(240-n)/60:r)*255}const mdn=n=>()=>n;function OMr(n,r){return function(o){return n+o*r}}function NMr(n,r,o){return n=Math.pow(n,o),r=Math.pow(r,o)-n,o=1/o,function(l){return Math.pow(n+l*r,o)}}function MMr(n){return(n=+n)==1?ydn:function(r,o){return o-r?NMr(r,o,n):mdn(isNaN(r)?o:r)}}function ydn(n,r){var o=r-n;return o?OMr(n,o):mdn(isNaN(n)?r:n)}const gJt=function n(r){var o=MMr(r);function l(u,d){var h=o((u=ZBe(u)).r,(d=ZBe(d)).r),w=o(u.g,d.g),v=o(u.b,d.b),y=ydn(u.opacity,d.opacity);return function(E){return u.r=h(E),u.g=w(E),u.b=v(E),u.opacity=y(E),u+""}}return l.gamma=n,l}(1);function rT(n,r){return n=+n,r=+r,function(o){return n*(1-o)+r*o}}var eWe=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,dLe=new RegExp(eWe.source,"g");function DMr(n){return function(){return n}}function LMr(n){return function(r){return n(r)+""}}function jMr(n,r){var o=eWe.lastIndex=dLe.lastIndex=0,l,u,d,h=-1,w=[],v=[];for(n=n+"",r=r+"";(l=eWe.exec(n))&&(u=dLe.exec(r));)(d=u.index)>o&&(d=r.slice(o,d),w[h]?w[h]+=d:w[++h]=d),(l=l[0])===(u=u[0])?w[h]?w[h]+=u:w[++h]=u:(w[++h]=null,v.push({i:h,x:rT(l,u)})),o=dLe.lastIndex;return o180?E+=360:E-y>180&&(y+=360),C.push({i:A.push(u(A)+"rotate(",null,l)-2,x:rT(y,E)})):E&&A.push(u(A)+"rotate("+E+l)}function w(y,E,A,C){y!==E?C.push({i:A.push(u(A)+"skewX(",null,l)-2,x:rT(y,E)}):E&&A.push(u(A)+"skewX("+E+l)}function v(y,E,A,C,R,O){if(y!==A||E!==C){var M=R.push(u(R)+"scale(",null,",",null,")");O.push({i:M-4,x:rT(y,A)},{i:M-2,x:rT(E,C)})}else(A!==1||C!==1)&&R.push(u(R)+"scale("+A+","+C+")")}return function(y,E){var A=[],C=[];return y=n(y),E=n(E),d(y.translateX,y.translateY,E.translateX,E.translateY,A,C),h(y.rotate,E.rotate,A,C),w(y.skewX,E.skewX,A,C),v(y.scaleX,y.scaleY,E.scaleX,E.scaleY,A,C),y=E=null,function(R){for(var O=-1,M=C.length,L;++O=0&&n._call.call(void 0,r),n=n._next;--YL}function yJt(){LP=(Fhe=TX.now())+g1e,YL=UK=0;try{qMr()}finally{YL=0,JMr(),LP=0}}function XMr(){var n=TX.now(),r=n-Fhe;r>Sdn&&(g1e-=r,Fhe=n)}function JMr(){for(var n,r=jhe,o,l=1/0;r;)r._call?(l>r._time&&(l=r._time),n=r,r=r._next):(o=r._next,r._next=null,r=n?n._next=o:jhe=o);GK=n,nWe(l)}function nWe(n){if(!YL){UK&&(UK=clearTimeout(UK));var r=n-LP;r>24?(n<1/0&&(UK=setTimeout(yJt,n-TX.now()-g1e)),wK&&(wK=clearInterval(wK))):(wK||(Fhe=TX.now(),wK=setInterval(XMr,Sdn)),YL=1,Edn(yJt))}}function vJt(n,r,o){var l=new Bhe;return r=r==null?0:+r,l.restart(u=>{l.stop(),n(u+r)},r,o),l}var YMr=p1e("start","end","cancel","interrupt"),QMr=[],Rdn=0,_Jt=1,rWe=2,mde=3,SJt=4,iWe=5,yde=6;function w1e(n,r,o,l,u,d){var h=n.__transition;if(!h)n.__transition={};else if(o in h)return;ZMr(n,o,{name:r,index:l,group:u,on:YMr,tween:QMr,time:d.time,delay:d.delay,duration:d.duration,ease:d.ease,timer:null,state:Rdn})}function TVe(n,r){var o=PS(n,r);if(o.state>Rdn)throw new Error("too late; already scheduled");return o}function Ck(n,r){var o=PS(n,r);if(o.state>mde)throw new Error("too late; already running");return o}function PS(n,r){var o=n.__transition;if(!o||!(o=o[r]))throw new Error("transition not found");return o}function ZMr(n,r,o){var l=n.__transition,u;l[r]=o,o.timer=kdn(d,0,o.time);function d(y){o.state=_Jt,o.timer.restart(h,o.delay,o.time),o.delay<=y&&h(y-o.delay)}function h(y){var E,A,C,R;if(o.state!==_Jt)return v();for(E in l)if(R=l[E],R.name===o.name){if(R.state===mde)return vJt(h);R.state===SJt?(R.state=yde,R.timer.stop(),R.on.call("interrupt",n,n.__data__,R.index,R.group),delete l[E]):+ErWe&&l.state=0&&(r=r.slice(0,o)),!r||r==="start"})}function T9r(n,r,o){var l,u,d=A9r(r)?TVe:Ck;return function(){var h=d(this,n),w=h.on;w!==l&&(u=(l=w).copy()).on(r,o),h.on=u}}function $9r(n,r){var o=this._id;return arguments.length<2?PS(this.node(),o).on.on(n):this.each(T9r(o,n,r))}function I9r(n){return function(){var r=this.parentNode;for(var o in this.__transition)if(+o!==n)return;r&&r.removeChild(this)}}function P9r(){return this.on("end.remove",I9r(this._id))}function O9r(n){var r=this._name,o=this._id;typeof n!="function"&&(n=RVe(n));for(var l=this._groups,u=l.length,d=new Array(u),h=0;h()=>n;function iDr(n,{sourceEvent:r,target:o,transform:l,dispatch:u}){Object.defineProperties(this,{type:{value:n,enumerable:!0,configurable:!0},sourceEvent:{value:r,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},transform:{value:l,enumerable:!0,configurable:!0},_:{value:u}})}function UR(n,r,o){this.k=n,this.x=r,this.y=o}UR.prototype={constructor:UR,scale:function(n){return n===1?this:new UR(this.k*n,this.x,this.y)},translate:function(n,r){return n===0&r===0?this:new UR(this.k,this.x+this.k*n,this.y+this.k*r)},apply:function(n){return[n[0]*this.k+this.x,n[1]*this.k+this.y]},applyX:function(n){return n*this.k+this.x},applyY:function(n){return n*this.k+this.y},invert:function(n){return[(n[0]-this.x)/this.k,(n[1]-this.y)/this.k]},invertX:function(n){return(n-this.x)/this.k},invertY:function(n){return(n-this.y)/this.k},rescaleX:function(n){return n.copy().domain(n.range().map(this.invertX,this).map(n.invert,n))},rescaleY:function(n){return n.copy().domain(n.range().map(this.invertY,this).map(n.invert,n))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var QL=new UR(1,0,0);UR.prototype;function hLe(n){n.stopImmediatePropagation()}function mK(n){n.preventDefault(),n.stopImmediatePropagation()}function oDr(n){return(!n.ctrlKey||n.type==="wheel")&&!n.button}function sDr(){var n=this;return n instanceof SVGElement?(n=n.ownerSVGElement||n,n.hasAttribute("viewBox")?(n=n.viewBox.baseVal,[[n.x,n.y],[n.x+n.width,n.y+n.height]]):[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]):[[0,0],[n.clientWidth,n.clientHeight]]}function EJt(){return this.__zoom||QL}function lDr(n){return-n.deltaY*(n.deltaMode===1?.05:n.deltaMode?1:.002)*(n.ctrlKey?10:1)}function aDr(){return navigator.maxTouchPoints||"ontouchstart"in this}function cDr(n,r,o){var l=n.invertX(r[0][0])-o[0][0],u=n.invertX(r[1][0])-o[1][0],d=n.invertY(r[0][1])-o[0][1],h=n.invertY(r[1][1])-o[1][1];return n.translate(u>l?(l+u)/2:Math.min(0,l)||Math.max(0,u),h>d?(d+h)/2:Math.min(0,d)||Math.max(0,h))}function uDr(){var n=oDr,r=sDr,o=cDr,l=lDr,u=aDr,d=[0,1/0],h=[[-1/0,-1/0],[1/0,1/0]],w=250,v=zMr,y=p1e("start","zoom","end"),E,A,C,R=500,O=150,M=0,L=10;function H(me){me.property("__zoom",EJt).on("wheel.zoom",Re,{passive:!1}).on("mousedown.zoom",le).on("dblclick.zoom",xe).filter(u).on("touchstart.zoom",be).on("touchmove.zoom",ae).on("touchend.zoom touchcancel.zoom",F).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}H.transform=function(me,ye,we,Be){var He=me.selection?me.selection():me;He.property("__zoom",EJt),me!==He?te(me,ye,we,Be):He.interrupt().each(function(){pe(this,arguments).event(Be).start().zoom(null,typeof ye=="function"?ye.apply(this,arguments):ye).end()})},H.scaleBy=function(me,ye,we,Be){H.scaleTo(me,function(){var He=this.__zoom.k,Ue=typeof ye=="function"?ye.apply(this,arguments):ye;return He*Ue},we,Be)},H.scaleTo=function(me,ye,we,Be){H.transform(me,function(){var He=r.apply(this,arguments),Ue=this.__zoom,Ge=we==null?Q(He):typeof we=="function"?we.apply(this,arguments):we,Le=Ue.invert(Ge),ft=typeof ye=="function"?ye.apply(this,arguments):ye;return o(j(G(Ue,ft),Ge,Le),He,h)},we,Be)},H.translateBy=function(me,ye,we,Be){H.transform(me,function(){return o(this.__zoom.translate(typeof ye=="function"?ye.apply(this,arguments):ye,typeof we=="function"?we.apply(this,arguments):we),r.apply(this,arguments),h)},null,Be)},H.translateTo=function(me,ye,we,Be,He){H.transform(me,function(){var Ue=r.apply(this,arguments),Ge=this.__zoom,Le=Be==null?Q(Ue):typeof Be=="function"?Be.apply(this,arguments):Be;return o(QL.translate(Le[0],Le[1]).scale(Ge.k).translate(typeof ye=="function"?-ye.apply(this,arguments):-ye,typeof we=="function"?-we.apply(this,arguments):-we),Ue,h)},Be,He)};function G(me,ye){return ye=Math.max(d[0],Math.min(d[1],ye)),ye===me.k?me:new UR(ye,me.x,me.y)}function j(me,ye,we){var Be=ye[0]-we[0]*me.k,He=ye[1]-we[1]*me.k;return Be===me.x&&He===me.y?me:new UR(me.k,Be,He)}function Q(me){return[(+me[0][0]+ +me[1][0])/2,(+me[0][1]+ +me[1][1])/2]}function te(me,ye,we,Be){me.on("start.zoom",function(){pe(this,arguments).event(Be).start()}).on("interrupt.zoom end.zoom",function(){pe(this,arguments).event(Be).end()}).tween("zoom",function(){var He=this,Ue=arguments,Ge=pe(He,Ue).event(Be),Le=r.apply(He,Ue),ft=we==null?Q(Le):typeof we=="function"?we.apply(He,Ue):we,re=Math.max(Le[1][0]-Le[0][0],Le[1][1]-Le[0][1]),Te=He.__zoom,dt=typeof ye=="function"?ye.apply(He,Ue):ye,at=v(Te.invert(ft).concat(re/Te.k),dt.invert(ft).concat(re/dt.k));return function(Qe){if(Qe===1)Qe=dt;else{var yt=at(Qe),Lt=re/yt[2];Qe=new UR(Lt,ft[0]-yt[0]*Lt,ft[1]-yt[1]*Lt)}Ge.zoom(null,Qe)}})}function pe(me,ye,we){return!we&&me.__zooming||new De(me,ye)}function De(me,ye){this.that=me,this.args=ye,this.active=0,this.sourceEvent=null,this.extent=r.apply(me,ye),this.taps=0}De.prototype={event:function(me){return me&&(this.sourceEvent=me),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(me,ye){return this.mouse&&me!=="mouse"&&(this.mouse[1]=ye.invert(this.mouse[0])),this.touch0&&me!=="touch"&&(this.touch0[1]=ye.invert(this.touch0[0])),this.touch1&&me!=="touch"&&(this.touch1[1]=ye.invert(this.touch1[0])),this.that.__zoom=ye,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(me){var ye=yS(this.that).datum();y.call(me,this.that,new iDr(me,{sourceEvent:this.sourceEvent,target:H,type:me,transform:this.that.__zoom,dispatch:y}),ye)}};function Re(me,...ye){if(!n.apply(this,arguments))return;var we=pe(this,ye).event(me),Be=this.__zoom,He=Math.max(d[0],Math.min(d[1],Be.k*Math.pow(2,l.apply(this,arguments)))),Ue=OE(me);if(we.wheel)(we.mouse[0][0]!==Ue[0]||we.mouse[0][1]!==Ue[1])&&(we.mouse[1]=Be.invert(we.mouse[0]=Ue)),clearTimeout(we.wheel);else{if(Be.k===He)return;we.mouse=[Ue,Be.invert(Ue)],vde(this),we.start()}mK(me),we.wheel=setTimeout(Ge,O),we.zoom("mouse",o(j(G(Be,He),we.mouse[0],we.mouse[1]),we.extent,h));function Ge(){we.wheel=null,we.end()}}function le(me,...ye){if(C||!n.apply(this,arguments))return;var we=me.currentTarget,Be=pe(this,ye,!0).event(me),He=yS(me.view).on("mousemove.zoom",ft,!0).on("mouseup.zoom",re,!0),Ue=OE(me,we),Ge=me.clientX,Le=me.clientY;pdn(me.view),hLe(me),Be.mouse=[Ue,this.__zoom.invert(Ue)],vde(this),Be.start();function ft(Te){if(mK(Te),!Be.moved){var dt=Te.clientX-Ge,at=Te.clientY-Le;Be.moved=dt*dt+at*at>M}Be.event(Te).zoom("mouse",o(j(Be.that.__zoom,Be.mouse[0]=OE(Te,we),Be.mouse[1]),Be.extent,h))}function re(Te){He.on("mousemove.zoom mouseup.zoom",null),bdn(Te.view,Be.moved),mK(Te),Be.event(Te).end()}}function xe(me,...ye){if(n.apply(this,arguments)){var we=this.__zoom,Be=OE(me.changedTouches?me.changedTouches[0]:me,this),He=we.invert(Be),Ue=we.k*(me.shiftKey?.5:2),Ge=o(j(G(we,Ue),Be,He),r.apply(this,ye),h);mK(me),w>0?yS(this).transition().duration(w).call(te,Ge,Be,me):yS(this).call(H.transform,Ge,Be,me)}}function be(me,...ye){if(n.apply(this,arguments)){var we=me.touches,Be=we.length,He=pe(this,ye,me.changedTouches.length===Be).event(me),Ue,Ge,Le,ft;for(hLe(me),Ge=0;Ge(n.Left="left",n.Top="top",n.Right="right",n.Bottom="bottom",n))($i||{}),IVe=(n=>(n.Partial="partial",n.Full="full",n))(IVe||{}),F8=(n=>(n.Bezier="default",n.SimpleBezier="simple-bezier",n.Straight="straight",n.Step="step",n.SmoothStep="smoothstep",n))(F8||{}),jP=(n=>(n.Strict="strict",n.Loose="loose",n))(jP||{}),Whe=(n=>(n.Arrow="arrow",n.ArrowClosed="arrowclosed",n))(Whe||{}),Iq=(n=>(n.Free="free",n.Vertical="vertical",n.Horizontal="horizontal",n))(Iq||{});function oWe(n){var r,o;const l=((o=(r=n.composedPath)==null?void 0:r.call(n))==null?void 0:o[0])||n.target,u=typeof(l==null?void 0:l.hasAttribute)=="function"?l.hasAttribute("contenteditable"):!1,d=typeof(l==null?void 0:l.closest)=="function"?l.closest(".nokey"):null;return["INPUT","SELECT","TEXTAREA"].includes(l==null?void 0:l.nodeName)||u||!!d}function fDr(n){return n.ctrlKey||n.metaKey||n.shiftKey}function kJt(n,r,o,l){const u=r.replace("+",` `).replace(` `,` +`).split(` -`).map(h=>h.trim().toLowerCase());if(u.length===1)return n.toLowerCase()===r.toLowerCase();l||o.add(n.toLowerCase());const d=u.every((h,w)=>o.has(h)&&Array.from(o.values())[w]===u[w]);return l&&o.delete(n.toLowerCase()),d}function q9r(n,r){return o=>{if(!o.code&&!o.key)return!1;const l=X9r(o.code,n);return Array.isArray(n)?n.some(u=>wJt(o[l],u,r,o.type==="keyup")):wJt(o[l],n,r,o.type==="keyup")}}function X9r(n,r){return r.includes(n)?"code":"key"}function Oq(n,r){const o=bf(()=>_a(r==null?void 0:r.actInsideInputWithModifier)??!1),l=bf(()=>_a(r==null?void 0:r.target)??window),u=Fo(_a(n)===!0);let d=!1;const h=new Set;let w=y(_a(n));Zs(()=>_a(n),(E,A)=>{typeof A=="boolean"&&typeof E!="boolean"&&v(),w=y(E)},{immediate:!0}),sm(()=>{zfn(window,["blur","contextmenu"],v)}),QXt((...E)=>w(...E),E=>{d=K9r(E),!((!d||d&&!o.value)&&QBe(E))&&(E.preventDefault(),u.value=!0)},{eventName:"keydown",target:l}),QXt((...E)=>w(...E),E=>{if(u.value){if((!d||d&&!o.value)&&QBe(E))return;d=!1,u.value=!1}},{eventName:"keyup",target:l});function v(){d=!1,h.clear(),u.value=_a(n)===!0}function y(E){return E===null?(v(),()=>!1):typeof E=="boolean"?(v(),u.value=E,()=>!1):Array.isArray(E)||typeof E=="string"?q9r(E,h):E}return u}const vdn="vue-flow__node-desc",_dn="vue-flow__edge-desc",J9r="vue-flow__aria-live",Sdn=["Enter"," ","Escape"],_L={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}};function ZBe(n){return{...n.computedPosition||{x:0,y:0},width:n.dimensions.width||0,height:n.dimensions.height||0}}function eWe(n,r){const o=Math.max(0,Math.min(n.x+n.width,r.x+r.width)-Math.max(n.x,r.x)),l=Math.max(0,Math.min(n.y+n.height,r.y+r.height)-Math.max(n.y,r.y));return Math.ceil(o*l)}function p1e(n){return{width:n.offsetWidth,height:n.offsetHeight}}function BP(n,r=0,o=1){return Math.min(Math.max(n,r),o)}function Edn(n,r){return{x:BP(n.x,r[0][0],r[1][0]),y:BP(n.y,r[0][1],r[1][1])}}function mJt(n){const r=n.getRootNode();return"elementFromPoint"in r?r:window.document}function $T(n){return n&&typeof n=="object"&&"id"in n&&"source"in n&&"target"in n}function wP(n){return n&&typeof n=="object"&&"id"in n&&"position"in n&&!$T(n)}function zK(n){return wP(n)&&"computedPosition"in n}function wfe(n){return!Number.isNaN(n)&&Number.isFinite(n)}function Y9r(n){return wfe(n.width)&&wfe(n.height)&&wfe(n.x)&&wfe(n.y)}function Q9r(n,r,o){const l={id:n.id.toString(),type:n.type??"default",dimensions:X8({width:0,height:0}),computedPosition:X8({z:0,...n.position}),handleBounds:{source:[],target:[]},draggable:void 0,selectable:void 0,connectable:void 0,focusable:void 0,selected:!1,dragging:!1,resizing:!1,initialized:!1,isParent:!1,position:{x:0,y:0},data:Gd(n.data)?n.data:{},events:X8(Gd(n.events)?n.events:{})};return Object.assign(r??l,n,{id:n.id.toString(),parentNode:o})}function kdn(n,r,o){var l,u;const d={id:n.id.toString(),type:n.type??(r==null?void 0:r.type)??"default",source:n.source.toString(),target:n.target.toString(),sourceHandle:(l=n.sourceHandle)==null?void 0:l.toString(),targetHandle:(u=n.targetHandle)==null?void 0:u.toString(),updatable:n.updatable??(o==null?void 0:o.updatable),selectable:n.selectable??(o==null?void 0:o.selectable),focusable:n.focusable??(o==null?void 0:o.focusable),data:Gd(n.data)?n.data:{},events:X8(Gd(n.events)?n.events:{}),label:n.label??"",interactionWidth:n.interactionWidth??(o==null?void 0:o.interactionWidth),...o??{}};return Object.assign(r??d,n,{id:n.id.toString()})}function Rdn(n,r,o,l){const u=typeof n=="string"?n:n.id,d=new Set,h=l==="source"?"target":"source";for(const w of o)w[h]===u&&d.add(w[l]);return r.filter(w=>d.has(w.id))}function Z9r(...n){if(n.length===3){const[d,h,w]=n;return Rdn(d,h,w,"target")}const[r,o]=n,l=typeof r=="string"?r:r.id;return o.filter(d=>$T(d)&&d.source===l).map(d=>o.find(h=>wP(h)&&h.id===d.target))}function eDr(...n){if(n.length===3){const[d,h,w]=n;return Rdn(d,h,w,"source")}const[r,o]=n,l=typeof r=="string"?r:r.id;return o.filter(d=>$T(d)&&d.target===l).map(d=>o.find(h=>wP(h)&&h.id===d.source))}function xdn({source:n,sourceHandle:r,target:o,targetHandle:l}){return`vueflow__edge-${n}${r??""}-${o}${l??""}`}function tDr(n,r){return r.some(o=>$T(o)&&o.source===n.source&&o.target===n.target&&(o.sourceHandle===n.sourceHandle||!o.sourceHandle&&!n.sourceHandle)&&(o.targetHandle===n.targetHandle||!o.targetHandle&&!n.targetHandle))}function Cdn({x:n,y:r},{x:o,y:l,zoom:u}){return{x:n*u+o,y:r*u+l}}function $X({x:n,y:r},{x:o,y:l,zoom:u},d=!1,h=[1,1]){const w={x:(n-o)/u,y:(r-l)/u};return d?b1e(w,h):w}function nDr(n,r){return{x:Math.min(n.x,r.x),y:Math.min(n.y,r.y),x2:Math.max(n.x2,r.x2),y2:Math.max(n.y2,r.y2)}}function Adn({x:n,y:r,width:o,height:l}){return{x:n,y:r,x2:n+o,y2:r+l}}function rDr({x:n,y:r,x2:o,y2:l}){return{x:n,y:r,width:o-n,height:l-r}}function Tdn(n){let r={x:Number.POSITIVE_INFINITY,y:Number.POSITIVE_INFINITY,x2:Number.NEGATIVE_INFINITY,y2:Number.NEGATIVE_INFINITY};for(let o=0;o0,L=(A??0)*(C??0);(O||M||R>=L||w.dragging)&&h.push(w)}return h}function Idn(n,r){const o=new Set;if(typeof n=="string")o.add(n);else if(n.length>=1)for(const l of n)o.add(l.id);return r.filter(l=>o.has(l.source)||o.has(l.target))}function yJt(n,r,o,l,u,d=.1,h={x:0,y:0}){const w=r/(n.width*(1+d)),v=o/(n.height*(1+d)),y=Math.min(w,v),E=BP(y,l,u),A=n.x+n.width/2,C=n.y+n.height/2,R=r/2-A*E+(h.x??0),O=o/2-C*E+(h.y??0);return{x:R,y:O,zoom:E}}function iDr(n,r){return{x:r.x+n.x,y:r.y+n.y,z:(n.z>r.z?n.z:r.z)+1}}function Pdn(n,r){if(!n.parentNode)return!1;const o=r(n.parentNode);return o?o.selected?!0:Pdn(o,r):!1}function IX(n,r){return typeof n>"u"?"":typeof n=="string"?n:`${r?`${r}__`:""}${Object.keys(n).sort().map(l=>`${l}=${n[l]}`).join("&")}`}function vJt(n,r,o){return no?-BP(Math.abs(n-o),1,r)/r:0}function Odn(n,r,o=15,l=40){const u=vJt(n.x,l,r.width-l)*o,d=vJt(n.y,l,r.height-l)*o;return[u,d]}function cLe(n,r){if(r){const o=n.position.x+n.dimensions.width-r.dimensions.width,l=n.position.y+n.dimensions.height-r.dimensions.height;if(o>0||l>0||n.position.x<0||n.position.y<0){let u={};if(typeof r.style=="function"?u={...r.style(r)}:r.style&&(u={...r.style}),u.width=u.width??`${r.dimensions.width}px`,u.height=u.height??`${r.dimensions.height}px`,o>0)if(typeof u.width=="string"){const d=Number(u.width.replace("px",""));u.width=`${d+o}px`}else u.width+=o;if(l>0)if(typeof u.height=="string"){const d=Number(u.height.replace("px",""));u.height=`${d+l}px`}else u.height+=l;if(n.position.x<0){const d=Math.abs(n.position.x);if(r.position.x=r.position.x-d,typeof u.width=="string"){const h=Number(u.width.replace("px",""));u.width=`${h+d}px`}else u.width+=d;n.position.x=0}if(n.position.y<0){const d=Math.abs(n.position.y);if(r.position.y=r.position.y-d,typeof u.height=="string"){const h=Number(u.height.replace("px",""));u.height=`${h+d}px`}else u.height+=d;n.position.y=0}r.dimensions.width=Number(u.width.toString().replace("px","")),r.dimensions.height=Number(u.height.toString().replace("px","")),typeof r.style=="function"?r.style=d=>{const h=r.style;return{...h(d),...u}}:r.style={...r.style,...u}}}}function _Jt(n,r){var o,l;const u=n.filter(h=>h.type==="add"||h.type==="remove");for(const h of u)if(h.type==="add")r.findIndex(v=>v.id===h.item.id)===-1&&r.push(h.item);else if(h.type==="remove"){const w=r.findIndex(v=>v.id===h.id);w!==-1&&r.splice(w,1)}const d=r.map(h=>h.id);for(const h of r)for(const w of n)if(w.id===h.id)switch(w.type){case"select":h.selected=w.selected;break;case"position":if(zK(h)&&(typeof w.position<"u"&&(h.position=w.position),typeof w.dragging<"u"&&(h.dragging=w.dragging),h.expandParent&&h.parentNode)){const v=r[d.indexOf(h.parentNode)];v&&zK(v)&&cLe(h,v)}break;case"dimensions":if(zK(h)&&(typeof w.dimensions<"u"&&(h.dimensions=w.dimensions),typeof w.updateStyle<"u"&&w.updateStyle&&(h.style={...h.style||{},width:`${(o=w.dimensions)==null?void 0:o.width}px`,height:`${(l=w.dimensions)==null?void 0:l.height}px`}),typeof w.resizing<"u"&&(h.resizing=w.resizing),h.expandParent&&h.parentNode)){const v=r[d.indexOf(h.parentNode)];v&&zK(v)&&(!!v.dimensions.width&&!!v.dimensions.height?cLe(h,v):RS(()=>{cLe(h,v)}))}break}return r}function W4(n,r){return{id:n,type:"select",selected:r}}function SJt(n){return{item:n,type:"add"}}function EJt(n){return{id:n,type:"remove"}}function kJt(n,r,o,l,u){return{id:n,source:r,target:o,sourceHandle:l||null,targetHandle:u||null,type:"remove"}}function iT(n,r=new Set,o=!1){const l=[];for(const[u,d]of n){const h=r.has(u);!(d.selected===void 0&&!h)&&d.selected!==h&&(o&&(d.selected=h),l.push(W4(d.id,h)))}return l}function ci(n){const r=new Set;let o=!1;const l=()=>r.size>0;n&&(o=!0,r.add(n));const u=w=>{r.delete(w)};return{on:w=>{n&&o&&r.delete(n),r.add(w);const v=()=>{u(w),n&&o&&r.add(n)};return c1e(v),{off:v}},off:u,trigger:w=>Promise.all(Array.from(r).map(v=>v(w))),hasListeners:l,fns:r}}function RJt(n,r,o){let l=n;do{if(l&&l.matches(r))return!0;if(l===o)return!1;l=l.parentElement}while(l);return!1}function oDr(n,r,o,l,u){var d,h;const w=[];for(const v of n)(v.selected||v.id===u)&&(!v.parentNode||!Pdn(v,l))&&(v.draggable||r&&typeof v.draggable>"u")&&w.push(X8({id:v.id,position:v.position||{x:0,y:0},distance:{x:o.x-((d=v.computedPosition)==null?void 0:d.x)||0,y:o.y-((h=v.computedPosition)==null?void 0:h.y)||0},from:v.computedPosition,extent:v.extent,parentNode:v.parentNode,dimensions:v.dimensions,expandParent:v.expandParent}));return w}function uLe({id:n,dragItems:r,findNode:o}){const l=[];for(const u of r){const d=o(u.id);d&&l.push(d)}return[n?l.find(u=>u.id===n):l[0],l]}function Ndn(n){if(Array.isArray(n))switch(n.length){case 1:return[n[0],n[0],n[0],n[0]];case 2:return[n[0],n[1],n[0],n[1]];case 3:return[n[0],n[1],n[2],n[1]];case 4:return n;default:return[0,0,0,0]}return[n,n,n,n]}function sDr(n,r,o){const[l,u,d,h]=typeof n!="string"?Ndn(n.padding):[0,0,0,0];return o&&typeof o.computedPosition.x<"u"&&typeof o.computedPosition.y<"u"&&typeof o.dimensions.width<"u"&&typeof o.dimensions.height<"u"?[[o.computedPosition.x+h,o.computedPosition.y+l],[o.computedPosition.x+o.dimensions.width-u,o.computedPosition.y+o.dimensions.height-d]]:!1}function lDr(n,r,o,l){let u=n.extent||o;if((u==="parent"||!Array.isArray(u)&&(u==null?void 0:u.range)==="parent")&&!n.expandParent)if(n.parentNode&&l&&n.dimensions.width&&n.dimensions.height){const d=sDr(u,n,l);d&&(u=d)}else r(new Ch(Vd.NODE_EXTENT_INVALID,n.id)),u=o;else if(Array.isArray(u)){const d=(l==null?void 0:l.computedPosition.x)||0,h=(l==null?void 0:l.computedPosition.y)||0;u=[[u[0][0]+d,u[0][1]+h],[u[1][0]+d,u[1][1]+h]]}else if(u!=="parent"&&(u!=null&&u.range)&&Array.isArray(u.range)){const[d,h,w,v]=Ndn(u.padding),y=(l==null?void 0:l.computedPosition.x)||0,E=(l==null?void 0:l.computedPosition.y)||0;u=[[u.range[0][0]+y+v,u.range[0][1]+E+d],[u.range[1][0]+y-h,u.range[1][1]+E-w]]}return u==="parent"?[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]]:u}function aDr({width:n,height:r},o){return[o[0],[o[1][0]-(n||0),o[1][1]-(r||0)]]}function xVe(n,r,o,l,u){const d=aDr(n.dimensions,lDr(n,o,l,u)),h=Edn(r,d);return{position:{x:h.x-((u==null?void 0:u.computedPosition.x)||0),y:h.y-((u==null?void 0:u.computedPosition.y)||0)},computedPosition:h}}function Fhe(n,r,o=$i.Left){const l=((r==null?void 0:r.x)??0)+n.computedPosition.x,u=((r==null?void 0:r.y)??0)+n.computedPosition.y,{width:d,height:h}=r??fDr(n);switch((r==null?void 0:r.position)??o){case $i.Top:return{x:l+d/2,y:u};case $i.Right:return{x:l+d,y:u+h/2};case $i.Bottom:return{x:l+d/2,y:u+h};case $i.Left:return{x:l,y:u+h/2}}}function xJt(n=[],r){return n.length&&(r?n.find(o=>o.id===r):n[0])||null}function cDr({sourcePos:n,targetPos:r,sourceWidth:o,sourceHeight:l,targetWidth:u,targetHeight:d,width:h,height:w,viewport:v}){const y={x:Math.min(n.x,r.x),y:Math.min(n.y,r.y),x2:Math.max(n.x+o,r.x+u),y2:Math.max(n.y+l,r.y+d)};y.x===y.x2&&(y.x2+=1),y.y===y.y2&&(y.y2+=1);const E=Adn({x:(0-v.x)/v.zoom,y:(0-v.y)/v.zoom,width:h/v.zoom,height:w/v.zoom}),A=Math.max(0,Math.min(E.x2,y.x2)-Math.max(E.x,y.x)),C=Math.max(0,Math.min(E.y2,y.y2)-Math.max(E.y,y.y));return Math.ceil(A*C)>0}function uDr(n,r,o=!1){const l=typeof n.zIndex=="number";let u=l?n.zIndex:0;const d=r(n.source),h=r(n.target);return!d||!h?0:(o&&(u=l?n.zIndex:Math.max(d.computedPosition.z||0,h.computedPosition.z||0)),u)}var Vd=(n=>(n.MISSING_STYLES="MISSING_STYLES",n.MISSING_VIEWPORT_DIMENSIONS="MISSING_VIEWPORT_DIMENSIONS",n.NODE_INVALID="NODE_INVALID",n.NODE_NOT_FOUND="NODE_NOT_FOUND",n.NODE_MISSING_PARENT="NODE_MISSING_PARENT",n.NODE_TYPE_MISSING="NODE_TYPE_MISSING",n.NODE_EXTENT_INVALID="NODE_EXTENT_INVALID",n.EDGE_INVALID="EDGE_INVALID",n.EDGE_NOT_FOUND="EDGE_NOT_FOUND",n.EDGE_SOURCE_MISSING="EDGE_SOURCE_MISSING",n.EDGE_TARGET_MISSING="EDGE_TARGET_MISSING",n.EDGE_TYPE_MISSING="EDGE_TYPE_MISSING",n.EDGE_SOURCE_TARGET_SAME="EDGE_SOURCE_TARGET_SAME",n.EDGE_SOURCE_TARGET_MISSING="EDGE_SOURCE_TARGET_MISSING",n.EDGE_ORPHANED="EDGE_ORPHANED",n.USEVUEFLOW_OPTIONS="USEVUEFLOW_OPTIONS",n))(Vd||{});const CJt={MISSING_STYLES:()=>"It seems that you haven't loaded the necessary styles. Please import '@vue-flow/core/dist/style.css' to ensure that the graph is rendered correctly",MISSING_VIEWPORT_DIMENSIONS:()=>"The Vue Flow parent container needs a width and a height to render the graph",NODE_INVALID:n=>`Node is invalid +`).map(h=>h.trim().toLowerCase());if(u.length===1)return n.toLowerCase()===r.toLowerCase();l||o.add(n.toLowerCase());const d=u.every((h,w)=>o.has(h)&&Array.from(o.values())[w]===u[w]);return l&&o.delete(n.toLowerCase()),d}function dDr(n,r){return o=>{if(!o.code&&!o.key)return!1;const l=hDr(o.code,n);return Array.isArray(n)?n.some(u=>kJt(o[l],u,r,o.type==="keyup")):kJt(o[l],n,r,o.type==="keyup")}}function hDr(n,r){return r.includes(n)?"code":"key"}function Pq(n,r){const o=bf(()=>_a(r==null?void 0:r.actInsideInputWithModifier)??!1),l=bf(()=>_a(r==null?void 0:r.target)??window),u=Fo(_a(n)===!0);let d=!1;const h=new Set;let w=y(_a(n));Zs(()=>_a(n),(E,A)=>{typeof A=="boolean"&&typeof E!="boolean"&&v(),w=y(E)},{immediate:!0}),tdn(["blur","contextmenu"],v),oJt((...E)=>w(...E),E=>{d=fDr(E),!((!d||d&&!o.value)&&oWe(E))&&(E.preventDefault(),u.value=!0)},{eventName:"keydown",target:l}),oJt((...E)=>w(...E),E=>{if(u.value){if((!d||d&&!o.value)&&oWe(E))return;d=!1,u.value=!1}},{eventName:"keyup",target:l});function v(){d=!1,h.clear(),u.value=_a(n)===!0}function y(E){return E===null?(v(),()=>!1):typeof E=="boolean"?(v(),u.value=E,()=>!1):Array.isArray(E)||typeof E=="string"?dDr(E,h):E}return u}const Tdn="vue-flow__node-desc",$dn="vue-flow__edge-desc",pDr="vue-flow__aria-live",Idn=["Enter"," ","Escape"],vL={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}};function sWe(n){return{...n.computedPosition||{x:0,y:0},width:n.dimensions.width||0,height:n.dimensions.height||0}}function lWe(n,r){const o=Math.max(0,Math.min(n.x+n.width,r.x+r.width)-Math.max(n.x,r.x)),l=Math.max(0,Math.min(n.y+n.height,r.y+r.height)-Math.max(n.y,r.y));return Math.ceil(o*l)}function m1e(n){return{width:n.offsetWidth,height:n.offsetHeight}}function FP(n,r=0,o=1){return Math.min(Math.max(n,r),o)}function Pdn(n,r){return{x:FP(n.x,r[0][0],r[1][0]),y:FP(n.y,r[0][1],r[1][1])}}function RJt(n){const r=n.getRootNode();return"elementFromPoint"in r?r:window.document}function $T(n){return n&&typeof n=="object"&&"id"in n&&"source"in n&&"target"in n}function gP(n){return n&&typeof n=="object"&&"id"in n&&"position"in n&&!$T(n)}function VK(n){return gP(n)&&"computedPosition"in n}function yfe(n){return!Number.isNaN(n)&&Number.isFinite(n)}function bDr(n){return yfe(n.width)&&yfe(n.height)&&yfe(n.x)&&yfe(n.y)}function gDr(n,r,o){const l={id:n.id.toString(),type:n.type??"default",dimensions:X8({width:0,height:0}),computedPosition:X8({z:0,...n.position}),handleBounds:{source:[],target:[]},draggable:void 0,selectable:void 0,connectable:void 0,focusable:void 0,selected:!1,dragging:!1,resizing:!1,initialized:!1,isParent:!1,position:{x:0,y:0},data:Gd(n.data)?n.data:{},events:X8(Gd(n.events)?n.events:{})};return Object.assign(r??l,n,{id:n.id.toString(),parentNode:o})}function Odn(n,r,o){var l,u;const d={id:n.id.toString(),type:n.type??(r==null?void 0:r.type)??"default",source:n.source.toString(),target:n.target.toString(),sourceHandle:(l=n.sourceHandle)==null?void 0:l.toString(),targetHandle:(u=n.targetHandle)==null?void 0:u.toString(),updatable:n.updatable??(o==null?void 0:o.updatable),selectable:n.selectable??(o==null?void 0:o.selectable),focusable:n.focusable??(o==null?void 0:o.focusable),data:Gd(n.data)?n.data:{},events:X8(Gd(n.events)?n.events:{}),label:n.label??"",interactionWidth:n.interactionWidth??(o==null?void 0:o.interactionWidth),...o??{}};return Object.assign(r??d,n,{id:n.id.toString()})}function Ndn(n,r,o,l){const u=typeof n=="string"?n:n.id,d=new Set,h=l==="source"?"target":"source";for(const w of o)w[h]===u&&d.add(w[l]);return r.filter(w=>d.has(w.id))}function wDr(...n){if(n.length===3){const[d,h,w]=n;return Ndn(d,h,w,"target")}const[r,o]=n,l=typeof r=="string"?r:r.id;return o.filter(d=>$T(d)&&d.source===l).map(d=>o.find(h=>gP(h)&&h.id===d.target))}function mDr(...n){if(n.length===3){const[d,h,w]=n;return Ndn(d,h,w,"source")}const[r,o]=n,l=typeof r=="string"?r:r.id;return o.filter(d=>$T(d)&&d.target===l).map(d=>o.find(h=>gP(h)&&h.id===d.source))}function Mdn({source:n,sourceHandle:r,target:o,targetHandle:l}){return`vueflow__edge-${n}${r??""}-${o}${l??""}`}function yDr(n,r){return r.some(o=>$T(o)&&o.source===n.source&&o.target===n.target&&(o.sourceHandle===n.sourceHandle||!o.sourceHandle&&!n.sourceHandle)&&(o.targetHandle===n.targetHandle||!o.targetHandle&&!n.targetHandle))}function Ddn({x:n,y:r},{x:o,y:l,zoom:u}){return{x:n*u+o,y:r*u+l}}function $X({x:n,y:r},{x:o,y:l,zoom:u},d=!1,h=[1,1]){const w={x:(n-o)/u,y:(r-l)/u};return d?y1e(w,h):w}function vDr(n,r){return{x:Math.min(n.x,r.x),y:Math.min(n.y,r.y),x2:Math.max(n.x2,r.x2),y2:Math.max(n.y2,r.y2)}}function Ldn({x:n,y:r,width:o,height:l}){return{x:n,y:r,x2:n+o,y2:r+l}}function _Dr({x:n,y:r,x2:o,y2:l}){return{x:n,y:r,width:o-n,height:l-r}}function jdn(n){let r={x:Number.POSITIVE_INFINITY,y:Number.POSITIVE_INFINITY,x2:Number.NEGATIVE_INFINITY,y2:Number.NEGATIVE_INFINITY};for(let o=0;o0,L=(A??0)*(C??0);(O||M||R>=L||w.dragging)&&h.push(w)}return h}function Bdn(n,r){const o=new Set;if(typeof n=="string")o.add(n);else if(n.length>=1)for(const l of n)o.add(l.id);return r.filter(l=>o.has(l.source)||o.has(l.target))}function xJt(n,r,o,l,u,d=.1,h={x:0,y:0}){const w=r/(n.width*(1+d)),v=o/(n.height*(1+d)),y=Math.min(w,v),E=FP(y,l,u),A=n.x+n.width/2,C=n.y+n.height/2,R=r/2-A*E+(h.x??0),O=o/2-C*E+(h.y??0);return{x:R,y:O,zoom:E}}function SDr(n,r){return{x:r.x+n.x,y:r.y+n.y,z:(n.z>r.z?n.z:r.z)+1}}function Wdn(n,r){if(!n.parentNode)return!1;const o=r(n.parentNode);return o?o.selected?!0:Wdn(o,r):!1}function IX(n,r){return typeof n>"u"?"":typeof n=="string"?n:`${r?`${r}__`:""}${Object.keys(n).sort().map(l=>`${l}=${n[l]}`).join("&")}`}function CJt(n,r,o){return no?-FP(Math.abs(n-o),1,r)/r:0}function Hdn(n,r,o=15,l=40){const u=CJt(n.x,l,r.width-l)*o,d=CJt(n.y,l,r.height-l)*o;return[u,d]}function pLe(n,r){if(r){const o=n.position.x+n.dimensions.width-r.dimensions.width,l=n.position.y+n.dimensions.height-r.dimensions.height;if(o>0||l>0||n.position.x<0||n.position.y<0){let u={};if(typeof r.style=="function"?u={...r.style(r)}:r.style&&(u={...r.style}),u.width=u.width??`${r.dimensions.width}px`,u.height=u.height??`${r.dimensions.height}px`,o>0)if(typeof u.width=="string"){const d=Number(u.width.replace("px",""));u.width=`${d+o}px`}else u.width+=o;if(l>0)if(typeof u.height=="string"){const d=Number(u.height.replace("px",""));u.height=`${d+l}px`}else u.height+=l;if(n.position.x<0){const d=Math.abs(n.position.x);if(r.position.x=r.position.x-d,typeof u.width=="string"){const h=Number(u.width.replace("px",""));u.width=`${h+d}px`}else u.width+=d;n.position.x=0}if(n.position.y<0){const d=Math.abs(n.position.y);if(r.position.y=r.position.y-d,typeof u.height=="string"){const h=Number(u.height.replace("px",""));u.height=`${h+d}px`}else u.height+=d;n.position.y=0}r.dimensions.width=Number(u.width.toString().replace("px","")),r.dimensions.height=Number(u.height.toString().replace("px","")),typeof r.style=="function"?r.style=d=>{const h=r.style;return{...h(d),...u}}:r.style={...r.style,...u}}}}function AJt(n,r){var o,l;const u=n.filter(h=>h.type==="add"||h.type==="remove");for(const h of u)if(h.type==="add")r.findIndex(v=>v.id===h.item.id)===-1&&r.push(h.item);else if(h.type==="remove"){const w=r.findIndex(v=>v.id===h.id);w!==-1&&r.splice(w,1)}const d=r.map(h=>h.id);for(const h of r)for(const w of n)if(w.id===h.id)switch(w.type){case"select":h.selected=w.selected;break;case"position":if(VK(h)&&(typeof w.position<"u"&&(h.position=w.position),typeof w.dragging<"u"&&(h.dragging=w.dragging),h.expandParent&&h.parentNode)){const v=r[d.indexOf(h.parentNode)];v&&VK(v)&&pLe(h,v)}break;case"dimensions":if(VK(h)&&(typeof w.dimensions<"u"&&(h.dimensions=w.dimensions),typeof w.updateStyle<"u"&&w.updateStyle&&(h.style={...h.style||{},width:`${(o=w.dimensions)==null?void 0:o.width}px`,height:`${(l=w.dimensions)==null?void 0:l.height}px`}),typeof w.resizing<"u"&&(h.resizing=w.resizing),h.expandParent&&h.parentNode)){const v=r[d.indexOf(h.parentNode)];v&&VK(v)&&(!!v.dimensions.width&&!!v.dimensions.height?pLe(h,v):RS(()=>{pLe(h,v)}))}break}return r}function W4(n,r){return{id:n,type:"select",selected:r}}function TJt(n){return{item:n,type:"add"}}function $Jt(n){return{id:n,type:"remove"}}function IJt(n,r,o,l,u){return{id:n,source:r,target:o,sourceHandle:l||null,targetHandle:u||null,type:"remove"}}function iT(n,r=new Set,o=!1){const l=[];for(const[u,d]of n){const h=r.has(u);!(d.selected===void 0&&!h)&&d.selected!==h&&(o&&(d.selected=h),l.push(W4(d.id,h)))}return l}function ci(n){const r=new Set;let o=!1;const l=()=>r.size>0;n&&(o=!0,r.add(n));const u=w=>{r.delete(w)};return{on:w=>{n&&o&&r.delete(n),r.add(w);const v=()=>{u(w),n&&o&&r.add(n)};return h1e(v),{off:v}},off:u,trigger:w=>Promise.all(Array.from(r).map(v=>v(w))),hasListeners:l,fns:r}}function PJt(n,r,o){let l=n;do{if(l&&l.matches(r))return!0;if(l===o)return!1;l=l.parentElement}while(l);return!1}function EDr(n,r,o,l,u){var d,h;const w=[];for(const v of n)(v.selected||v.id===u)&&(!v.parentNode||!Wdn(v,l))&&(v.draggable||r&&typeof v.draggable>"u")&&w.push(X8({id:v.id,position:v.position||{x:0,y:0},distance:{x:o.x-((d=v.computedPosition)==null?void 0:d.x)||0,y:o.y-((h=v.computedPosition)==null?void 0:h.y)||0},from:v.computedPosition,extent:v.extent,parentNode:v.parentNode,dimensions:v.dimensions,expandParent:v.expandParent}));return w}function bLe({id:n,dragItems:r,findNode:o}){const l=[];for(const u of r){const d=o(u.id);d&&l.push(d)}return[n?l.find(u=>u.id===n):l[0],l]}function Udn(n){if(Array.isArray(n))switch(n.length){case 1:return[n[0],n[0],n[0],n[0]];case 2:return[n[0],n[1],n[0],n[1]];case 3:return[n[0],n[1],n[2],n[1]];case 4:return n;default:return[0,0,0,0]}return[n,n,n,n]}function kDr(n,r,o){const[l,u,d,h]=typeof n!="string"?Udn(n.padding):[0,0,0,0];return o&&typeof o.computedPosition.x<"u"&&typeof o.computedPosition.y<"u"&&typeof o.dimensions.width<"u"&&typeof o.dimensions.height<"u"?[[o.computedPosition.x+h,o.computedPosition.y+l],[o.computedPosition.x+o.dimensions.width-u,o.computedPosition.y+o.dimensions.height-d]]:!1}function RDr(n,r,o,l){let u=n.extent||o;if((u==="parent"||!Array.isArray(u)&&(u==null?void 0:u.range)==="parent")&&!n.expandParent)if(n.parentNode&&l&&n.dimensions.width&&n.dimensions.height){const d=kDr(u,n,l);d&&(u=d)}else r(new Ch(Vd.NODE_EXTENT_INVALID,n.id)),u=o;else if(Array.isArray(u)){const d=(l==null?void 0:l.computedPosition.x)||0,h=(l==null?void 0:l.computedPosition.y)||0;u=[[u[0][0]+d,u[0][1]+h],[u[1][0]+d,u[1][1]+h]]}else if(u!=="parent"&&(u!=null&&u.range)&&Array.isArray(u.range)){const[d,h,w,v]=Udn(u.padding),y=(l==null?void 0:l.computedPosition.x)||0,E=(l==null?void 0:l.computedPosition.y)||0;u=[[u.range[0][0]+y+v,u.range[0][1]+E+d],[u.range[1][0]+y-h,u.range[1][1]+E-w]]}return u==="parent"?[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]]:u}function xDr({width:n,height:r},o){return[o[0],[o[1][0]-(n||0),o[1][1]-(r||0)]]}function PVe(n,r,o,l,u){const d=xDr(n.dimensions,RDr(n,o,l,u)),h=Pdn(r,d);return{position:{x:h.x-((u==null?void 0:u.computedPosition.x)||0),y:h.y-((u==null?void 0:u.computedPosition.y)||0)},computedPosition:h}}function Hhe(n,r,o=$i.Left){const l=((r==null?void 0:r.x)??0)+n.computedPosition.x,u=((r==null?void 0:r.y)??0)+n.computedPosition.y,{width:d,height:h}=r??TDr(n);switch((r==null?void 0:r.position)??o){case $i.Top:return{x:l+d/2,y:u};case $i.Right:return{x:l+d,y:u+h/2};case $i.Bottom:return{x:l+d/2,y:u+h};case $i.Left:return{x:l,y:u+h/2}}}function OJt(n=[],r){return n.length&&(r?n.find(o=>o.id===r):n[0])||null}function CDr({sourcePos:n,targetPos:r,sourceWidth:o,sourceHeight:l,targetWidth:u,targetHeight:d,width:h,height:w,viewport:v}){const y={x:Math.min(n.x,r.x),y:Math.min(n.y,r.y),x2:Math.max(n.x+o,r.x+u),y2:Math.max(n.y+l,r.y+d)};y.x===y.x2&&(y.x2+=1),y.y===y.y2&&(y.y2+=1);const E=Ldn({x:(0-v.x)/v.zoom,y:(0-v.y)/v.zoom,width:h/v.zoom,height:w/v.zoom}),A=Math.max(0,Math.min(E.x2,y.x2)-Math.max(E.x,y.x)),C=Math.max(0,Math.min(E.y2,y.y2)-Math.max(E.y,y.y));return Math.ceil(A*C)>0}function ADr(n,r,o=!1){const l=typeof n.zIndex=="number";let u=l?n.zIndex:0;const d=r(n.source),h=r(n.target);return!d||!h?0:(o&&(u=l?n.zIndex:Math.max(d.computedPosition.z||0,h.computedPosition.z||0)),u)}var Vd=(n=>(n.MISSING_STYLES="MISSING_STYLES",n.MISSING_VIEWPORT_DIMENSIONS="MISSING_VIEWPORT_DIMENSIONS",n.NODE_INVALID="NODE_INVALID",n.NODE_NOT_FOUND="NODE_NOT_FOUND",n.NODE_MISSING_PARENT="NODE_MISSING_PARENT",n.NODE_TYPE_MISSING="NODE_TYPE_MISSING",n.NODE_EXTENT_INVALID="NODE_EXTENT_INVALID",n.EDGE_INVALID="EDGE_INVALID",n.EDGE_NOT_FOUND="EDGE_NOT_FOUND",n.EDGE_SOURCE_MISSING="EDGE_SOURCE_MISSING",n.EDGE_TARGET_MISSING="EDGE_TARGET_MISSING",n.EDGE_TYPE_MISSING="EDGE_TYPE_MISSING",n.EDGE_SOURCE_TARGET_SAME="EDGE_SOURCE_TARGET_SAME",n.EDGE_SOURCE_TARGET_MISSING="EDGE_SOURCE_TARGET_MISSING",n.EDGE_ORPHANED="EDGE_ORPHANED",n.USEVUEFLOW_OPTIONS="USEVUEFLOW_OPTIONS",n))(Vd||{});const NJt={MISSING_STYLES:()=>"It seems that you haven't loaded the necessary styles. Please import '@vue-flow/core/dist/style.css' to ensure that the graph is rendered correctly",MISSING_VIEWPORT_DIMENSIONS:()=>"The Vue Flow parent container needs a width and a height to render the graph",NODE_INVALID:n=>`Node is invalid Node: ${n}`,NODE_NOT_FOUND:n=>`Node not found Node: ${n}`,NODE_MISSING_PARENT:(n,r)=>`Node is missing a parent Node: ${n} @@ -2147,17 +2147,17 @@ Edge: ${n} Source: ${r} Target: ${o}`,EDGE_ORPHANED:n=>`Edge was orphaned (suddenly missing source or target) and has been removed Edge: ${n}`,EDGE_NOT_FOUND:n=>`Edge not found -Edge: ${n}`,USEVUEFLOW_OPTIONS:()=>"The options parameter is deprecated and will be removed in the next major version. Please use the id parameter instead"};class Ch extends Error{constructor(r,...o){var l;super((l=CJt[r])==null?void 0:l.call(CJt,...o)),this.name="VueFlowError",this.code=r,this.args=o}}function CVe(n){return"clientX"in n}function Mdn(n){return"sourceEvent"in n}function zR(n,r){var o,l;const u=CVe(n),d=u?n.clientX:(o=n.touches)==null?void 0:o[0].clientX,h=u?n.clientY:(l=n.touches)==null?void 0:l[0].clientY;return{x:d-((r==null?void 0:r.left)??0),y:h-((r==null?void 0:r.top)??0)}}const Bhe=()=>{var n;return typeof navigator<"u"&&((n=navigator==null?void 0:navigator.userAgent)==null?void 0:n.indexOf("Mac"))>=0};function fDr(n){var r,o;return{width:((r=n.dimensions)==null?void 0:r.width)??n.width??0,height:((o=n.dimensions)==null?void 0:o.height)??n.height??0}}function b1e(n,r=[1,1]){return{x:r[0]*Math.round(n.x/r[0]),y:r[1]*Math.round(n.y/r[1])}}function Ddn(){return{handleDomNode:null,isValid:!1,connection:{source:"",target:"",sourceHandle:null,targetHandle:null},endHandle:null}}function fLe(n){n==null||n.classList.remove("valid","connecting","vue-flow__handle-valid","vue-flow__handle-connecting")}function AJt(n,r,o,l){const u=[];for(const d of r[o]||[])if(`${n.id}-${d.id}-${o}`!==l){const{x:h,y:w}=Fhe(n,d);u.push({id:d.id||null,type:o,nodeId:n.id,x:h,y:w})}return u}function dDr(n,r,o,l,u,d){const{x:h,y:w}=zR(n),y=r.elementsFromPoint(h,w).find(O=>O.classList.contains("vue-flow__handle"));if(y){const O=y.getAttribute("data-nodeid");if(O){const M=AVe(void 0,y),L=y.getAttribute("data-handleid"),H=d({nodeId:O,id:L,type:M});if(H){const G=u.find(j=>j.nodeId===O&&j.type===M&&j.id===L);return{handle:{id:L,type:M,nodeId:O,x:(G==null?void 0:G.x)||o.x,y:(G==null?void 0:G.y)||o.y},validHandleResult:H}}}}let E=[],A=Number.POSITIVE_INFINITY;for(const O of u){const M=Math.sqrt((O.x-o.x)**2+(O.y-o.y)**2);if(M<=l){const L=d(O);M<=A&&(MO.isValid),R=E.some(({handle:O})=>O.type==="target");return E.find(({handle:O,validHandleResult:M})=>R?O.type==="target":C?M.isValid:!0)||E[0]}function TJt(n,r,o,l,u,d,h,w,v,y,E){const A=d==="target",C=w.querySelector(`.vue-flow__handle[data-id="${r==null?void 0:r.nodeId}-${r==null?void 0:r.id}-${r==null?void 0:r.type}"]`),{x:R,y:O}=zR(n),M=w.elementFromPoint(R,O),L=M!=null&&M.classList.contains("vue-flow__handle")?M:C,H=Ddn();if(L){H.handleDomNode=L;const G=AVe(void 0,L),j=L.getAttribute("data-nodeid"),Q=L.getAttribute("data-handleid"),te=L.classList.contains("connectable"),pe=L.classList.contains("connectableend"),Le={source:A?j:l,sourceHandle:A?Q:u,target:A?l:j,targetHandle:A?u:Q};H.connection=Le,te&&pe&&(o===FP.Strict?A&&G==="source"||!A&&G==="target":j!==l||Q!==u)&&(H.isValid=h(Le,{edges:v,nodes:y,sourceNode:E(Le.source),targetNode:E(Le.target)}),H.endHandle={nodeId:j,handleId:Q,type:G,position:H.isValid?L.getAttribute("data-handlepos"):null})}return H}function hDr({nodes:n,nodeId:r,handleId:o,handleType:l}){const u=[];for(let d=0;d{const w=h.getBoundingClientRect();return{id:h.getAttribute("data-handleid"),position:h.getAttribute("data-handlepos"),x:(w.left-o.left)/l,y:(w.top-o.top)/l,...p1e(h)}})}function tWe(n,r,o,l,u,d=!1,h){u.value=!1,n.selected?(d||n.selected&&r)&&(l([n]),RS(()=>{h.blur()})):o([n])}function Gd(n){return typeof Wr(n)<"u"}function gDr(n,r,o,l){if(!n||!n.source||!n.target)return o(new Ch(Vd.EDGE_INVALID,(n==null?void 0:n.id)??"[ID UNKNOWN]")),!1;let u;return $T(n)?u=n:u={...n,id:xdn(n)},u=kdn(u,void 0,l),tDr(u,r)?!1:u}function wDr(n,r,o,l,u,d){if(!r.source||!r.target)return d(new Ch(Vd.EDGE_INVALID,n.id)),!1;const h=l(n.id);if(!h)return d(new Ch(Vd.EDGE_NOT_FOUND,n.id)),!1;const{id:w,...v}=n,y={...v,id:u?xdn(r):w,source:r.source,target:r.target,sourceHandle:r.sourceHandle,targetHandle:r.targetHandle};return o.splice(o.indexOf(h),1,y),y}function IJt(n,r,o){const l={},u=[];for(let d=0;dw.id===d.parentNode);d.parentNode&&!h&&o(new Ch(Vd.NODE_MISSING_PARENT,d.id,d.parentNode)),(d.parentNode||l[d.id])&&(l[d.id]&&(d.isParent=!0),h&&(h.isParent=!0))}return u}function PJt(n,r){n.clear();for(const o of r){const{id:l,source:u,target:d,sourceHandle:h=null,targetHandle:w=null}=o,v=`${u}-source-${h}`,y=`${d}-target-${w}`,E=n.get(v)||new Map,A=n.get(y)||new Map,C=X8({edgeId:l,source:u,target:d,sourceHandle:h,targetHandle:w});n.set(v,E.set(`${d}-${w}`,C)),n.set(y,A.set(`${u}-${h}`,C))}}function OJt(n,r,o,l,u,d,h,w){const v=[];for(const y of n){const E=$T(y)?y:gDr(y,w,u,d);if(!E)continue;const A=o(E.source),C=o(E.target);if(!A||!C){u(new Ch(Vd.EDGE_SOURCE_TARGET_MISSING,E.id,E.source,E.target));continue}if(!A){u(new Ch(Vd.EDGE_SOURCE_MISSING,E.id,E.source));continue}if(!C){u(new Ch(Vd.EDGE_TARGET_MISSING,E.id,E.target));continue}if(r&&!r(E,{edges:w,nodes:h,sourceNode:A,targetNode:C})){u(new Ch(Vd.EDGE_INVALID,E.id));continue}const R=l(E.id);v.push({...kdn(E,R,d),sourceNode:A,targetNode:C})}return v}const NJt=Symbol("vueFlow"),jdn=Symbol("nodeId"),Fdn=Symbol("nodeRef"),mDr=Symbol("edgeId"),yDr=Symbol("edgeRef"),w1e=Symbol("slots");function Bdn(n){const{vueFlowRef:r,snapToGrid:o,snapGrid:l,noDragClassName:u,nodes:d,nodeExtent:h,nodeDragThreshold:w,viewport:v,autoPanOnNodeDrag:y,autoPanSpeed:E,nodesDraggable:A,panBy:C,findNode:R,multiSelectionActive:O,nodesSelectionActive:M,selectNodesOnDrag:L,removeSelectedElements:H,addSelectedNodes:G,updateNodePositions:j,emits:Q}=hu(),{onStart:te,onDrag:pe,onStop:Le,onClick:Ee,el:le,disabled:xe,id:be,selectable:ae,dragHandle:F}=n,me=Fo(!1);let ye=[],we,Be=null,He={x:void 0,y:void 0},Ue={x:0,y:0},Ge=null,Me=!1,vt=0,re=!1;const Te=SDr(),ct=({x:Pe,y:Oe})=>{He={x:Pe,y:Oe};let T=!1;if(ye=ye.map($=>{const B={x:Pe-$.distance.x,y:Oe-$.distance.y},{computedPosition:K}=xVe($,o.value?b1e(B,l.value):B,Q.error,h.value,$.parentNode?R($.parentNode):void 0);return T=T||$.position.x!==K.x||$.position.y!==K.y,$.position=K,$}),!!T&&(j(ye,!0,!0),me.value=!0,Ge)){const[$,B]=uLe({id:be,dragItems:ye,findNode:R});pe({event:Ge,node:$,nodes:B})}},at=()=>{if(!Be)return;const[Pe,Oe]=Odn(Ue,Be,E.value);if(Pe!==0||Oe!==0){const T={x:(He.x??0)-Pe/v.value.zoom,y:(He.y??0)-Oe/v.value.zoom};C({x:Pe,y:Oe})&&ct(T)}vt=requestAnimationFrame(at)},Ye=(Pe,Oe)=>{Me=!0;const T=R(be);!L.value&&!O.value&&T&&(T.selected||H()),T&&_a(ae)&&L.value&&tWe(T,O.value,G,H,M,!1,Oe);const $=Te(Pe.sourceEvent);if(He=$,ye=oDr(d.value,A.value,$,R,be),ye.length){const[B,K]=uLe({id:be,dragItems:ye,findNode:R});te({event:Pe.sourceEvent,node:B,nodes:K})}},mt=(Pe,Oe)=>{var T;Pe.sourceEvent.type==="touchmove"&&Pe.sourceEvent.touches.length>1||(w.value===0&&Ye(Pe,Oe),He=Te(Pe.sourceEvent),Be=((T=r.value)==null?void 0:T.getBoundingClientRect())||null,Ue=zR(Pe.sourceEvent,Be))},jt=(Pe,Oe)=>{const T=Te(Pe.sourceEvent);if(!re&&Me&&y.value&&(re=!0,at()),!Me){const $=T.xSnapped-(He.x??0),B=T.ySnapped-(He.y??0);Math.sqrt($*$+B*B)>w.value&&Ye(Pe,Oe)}(He.x!==T.xSnapped||He.y!==T.ySnapped)&&ye.length&&Me&&(Ge=Pe.sourceEvent,Ue=zR(Pe.sourceEvent,Be),ct(T))},rn=Pe=>{if(!Mdn(Pe)&&!Me&&!me.value&&!O.value){const Oe=Pe,T=Te(Oe),$=T.xSnapped-(He.x??0),B=T.ySnapped-(He.y??0),K=Math.sqrt($*$+B*B);K!==0&&K<=w.value&&(Ee==null||Ee(Oe));return}if(me.value=!1,re=!1,Me=!1,He={x:void 0,y:void 0},cancelAnimationFrame(vt),ye.length){j(ye,!1,!1);const[Oe,T]=uLe({id:be,dragItems:ye,findNode:R});Le({event:Pe.sourceEvent,node:Oe,nodes:T})}};return Zs([()=>_a(xe),le],([Pe,Oe],T,$)=>{if(Oe){const B=yS(Oe);Pe||(we=nMr().on("start",K=>mt(K,Oe)).on("drag",K=>jt(K,Oe)).on("end",K=>rn(K)).filter(K=>{const q=K.target,ke=_a(F);return!K.button&&(!u.value||!RJt(q,`.${u.value}`,Oe)&&(!ke||RJt(q,ke,Oe)))}),B.call(we)),$(()=>{B.on(".drag",null),we&&(we.on("start",null),we.on("drag",null),we.on("end",null))})}}),me}function vDr(){return{doubleClick:ci(),click:ci(),mouseEnter:ci(),mouseMove:ci(),mouseLeave:ci(),contextMenu:ci(),updateStart:ci(),update:ci(),updateEnd:ci()}}function _Dr(n,r){const o=vDr();return o.doubleClick.on(l=>{var u,d;r.edgeDoubleClick(l),(d=(u=n.events)==null?void 0:u.doubleClick)==null||d.call(u,l)}),o.click.on(l=>{var u,d;r.edgeClick(l),(d=(u=n.events)==null?void 0:u.click)==null||d.call(u,l)}),o.mouseEnter.on(l=>{var u,d;r.edgeMouseEnter(l),(d=(u=n.events)==null?void 0:u.mouseEnter)==null||d.call(u,l)}),o.mouseMove.on(l=>{var u,d;r.edgeMouseMove(l),(d=(u=n.events)==null?void 0:u.mouseMove)==null||d.call(u,l)}),o.mouseLeave.on(l=>{var u,d;r.edgeMouseLeave(l),(d=(u=n.events)==null?void 0:u.mouseLeave)==null||d.call(u,l)}),o.contextMenu.on(l=>{var u,d;r.edgeContextMenu(l),(d=(u=n.events)==null?void 0:u.contextMenu)==null||d.call(u,l)}),o.updateStart.on(l=>{var u,d;r.edgeUpdateStart(l),(d=(u=n.events)==null?void 0:u.updateStart)==null||d.call(u,l)}),o.update.on(l=>{var u,d;r.edgeUpdate(l),(d=(u=n.events)==null?void 0:u.update)==null||d.call(u,l)}),o.updateEnd.on(l=>{var u,d;r.edgeUpdateEnd(l),(d=(u=n.events)==null?void 0:u.updateEnd)==null||d.call(u,l)}),Object.entries(o).reduce((l,[u,d])=>(l.emit[u]=d.trigger,l.on[u]=d.on,l),{emit:{},on:{}})}function SDr(){const{viewport:n,snapGrid:r,snapToGrid:o}=hu();return l=>{const u=Mdn(l)?l.sourceEvent:l,{x:d,y:h}=zR(u),w=$X({x:d,y:h},n.value),{x:v,y}=o.value?b1e(w,r.value):w;return{xSnapped:v,ySnapped:y,...w}}}function mfe(){return!0}function Wdn({handleId:n,nodeId:r,type:o,isValidConnection:l,edgeUpdaterType:u,onEdgeUpdate:d,onEdgeUpdateEnd:h}){const{vueFlowRef:w,connectionMode:v,connectionRadius:y,connectOnClick:E,connectionClickStartHandle:A,nodesConnectable:C,autoPanOnConnect:R,autoPanSpeed:O,findNode:M,panBy:L,startConnection:H,updateConnection:G,endConnection:j,emits:Q,viewport:te,edges:pe,nodes:Le,isValidConnection:Ee}=hu();let le=null,xe=!1,be=null,ae=null;function F(ye){var we;const Be=_a(o)==="target",He=CVe(ye),Ue=mJt(ye.target);if(He&&ye.button===0||!He){let Ge=function(K){Oe=zR(K,rn);const{handle:q,validHandleResult:ke}=dDr(K,Ue,$X(Oe,te.value,!1,[1,1]),y.value,$,Re=>TJt(K,Re,v.value,_a(r),_a(n),Be?"target":"source",re,Ue,pe.value,Le.value,M));if(Te=q,T||(B(),T=!0),le=ke.connection,xe=ke.isValid,be=ke.handleDomNode,!(xe&&Te&&(ae!=null&&ae.endHandle)&&ke.endHandle&&ae.endHandle.type===ke.endHandle.type&&ae.endHandle.nodeId===ke.endHandle.nodeId&&ae.endHandle.handleId===ke.endHandle.handleId)){if(G(Te&&xe?Cdn({x:Te.x,y:Te.y},te.value):Oe,ke.endHandle,pDr(!!Te,xe)),ae=ke,!Te&&!xe&&!be)return fLe(Pe);le&&le.source!==le.target&&be&&(fLe(Pe),Pe=be,be.classList.add("connecting","vue-flow__handle-connecting"),be.classList.toggle("valid",xe),be.classList.toggle("vue-flow__handle-valid",xe))}},Me=function(K){(Te||be)&&le&&xe&&(d?d(K,le):Q.connect(le)),Q.connectEnd(K),u&&(h==null||h(K)),fLe(Pe),cancelAnimationFrame(ct),j(K),T=!1,xe=!1,le=null,be=null,Ue.removeEventListener("mousemove",Ge),Ue.removeEventListener("mouseup",Me),Ue.removeEventListener("touchmove",Ge),Ue.removeEventListener("touchend",Me)};const vt=M(_a(r));let re=_a(l)||Ee.value||mfe;!re&&vt&&(re=(Be?vt.isValidSourcePos:vt.isValidTargetPos)||mfe);let Te,ct=0;const{x:at,y:Ye}=zR(ye),mt=Ue==null?void 0:Ue.elementFromPoint(at,Ye),jt=AVe(_a(u),mt),rn=(we=w.value)==null?void 0:we.getBoundingClientRect();if(!rn||!jt)return;let Pe,Oe=zR(ye,rn),T=!1;const $=hDr({nodes:Le.value,nodeId:_a(r),handleId:_a(n),handleType:jt}),B=()=>{if(!R.value)return;const[K,q]=Odn(Oe,rn,O.value);L({x:K,y:q}),ct=requestAnimationFrame(B)};H({nodeId:_a(r),handleId:_a(n),type:jt,position:(mt==null?void 0:mt.getAttribute("data-handlepos"))||$i.Top},{x:at-rn.left,y:Ye-rn.top}),Q.connectStart({event:ye,nodeId:_a(r),handleId:_a(n),handleType:jt}),Ue.addEventListener("mousemove",Ge),Ue.addEventListener("mouseup",Me),Ue.addEventListener("touchmove",Ge),Ue.addEventListener("touchend",Me)}}function me(ye){if(!E.value)return;const we=_a(o)==="target";if(!A.value)Q.clickConnectStart({event:ye,nodeId:_a(r),handleId:_a(n)}),H({nodeId:_a(r),type:_a(o),handleId:_a(n)},void 0,!0);else{let Be=_a(l)||Ee.value||mfe;const He=M(_a(r));if(!Be&&He&&(Be=(we?He.isValidSourcePos:He.isValidTargetPos)||mfe),He&&(typeof He.connectable>"u"?C.value:He.connectable)===!1)return;const Ue=mJt(ye.target),{connection:Ge,isValid:Me}=TJt(ye,{nodeId:_a(r),id:_a(n),type:_a(o)},v.value,A.value.nodeId,A.value.handleId||null,A.value.type,Be,Ue,pe.value,Le.value,M),vt=Ge.source===Ge.target;Me&&!vt&&Q.connect(Ge),Q.clickConnectEnd(ye),j(ye,!0)}}return{handlePointerDown:F,handleClick:me}}function EDr(){return BE(jdn,"")}function Hdn(n){const r=n??EDr()??"",o=BE(Fdn,Fo(null)),{findNode:l,edges:u,emits:d}=hu(),h=l(r);return h||d.error(new Ch(Vd.NODE_NOT_FOUND,r)),{id:r,nodeEl:o,node:h,parentNode:To(()=>l(h.parentNode)),connectedEdges:To(()=>Idn([h],u.value))}}function kDr(){return{doubleClick:ci(),click:ci(),mouseEnter:ci(),mouseMove:ci(),mouseLeave:ci(),contextMenu:ci(),dragStart:ci(),drag:ci(),dragStop:ci()}}function RDr(n,r){const o=kDr();return o.doubleClick.on(l=>{var u,d;r.nodeDoubleClick(l),(d=(u=n.events)==null?void 0:u.doubleClick)==null||d.call(u,l)}),o.click.on(l=>{var u,d;r.nodeClick(l),(d=(u=n.events)==null?void 0:u.click)==null||d.call(u,l)}),o.mouseEnter.on(l=>{var u,d;r.nodeMouseEnter(l),(d=(u=n.events)==null?void 0:u.mouseEnter)==null||d.call(u,l)}),o.mouseMove.on(l=>{var u,d;r.nodeMouseMove(l),(d=(u=n.events)==null?void 0:u.mouseMove)==null||d.call(u,l)}),o.mouseLeave.on(l=>{var u,d;r.nodeMouseLeave(l),(d=(u=n.events)==null?void 0:u.mouseLeave)==null||d.call(u,l)}),o.contextMenu.on(l=>{var u,d;r.nodeContextMenu(l),(d=(u=n.events)==null?void 0:u.contextMenu)==null||d.call(u,l)}),o.dragStart.on(l=>{var u,d;r.nodeDragStart(l),(d=(u=n.events)==null?void 0:u.dragStart)==null||d.call(u,l)}),o.drag.on(l=>{var u,d;r.nodeDrag(l),(d=(u=n.events)==null?void 0:u.drag)==null||d.call(u,l)}),o.dragStop.on(l=>{var u,d;r.nodeDragStop(l),(d=(u=n.events)==null?void 0:u.dragStop)==null||d.call(u,l)}),Object.entries(o).reduce((l,[u,d])=>(l.emit[u]=d.trigger,l.on[u]=d.on,l),{emit:{},on:{}})}function Udn(){const{getSelectedNodes:n,nodeExtent:r,updateNodePositions:o,findNode:l,snapGrid:u,snapToGrid:d,nodesDraggable:h,emits:w}=hu();return(v,y=!1)=>{const E=d.value?u.value[0]:5,A=d.value?u.value[1]:5,C=y?4:1,R=v.x*E*C,O=v.y*A*C,M=[];for(const L of n.value)if(L.draggable||h&&typeof L.draggable>"u"){const H={x:L.computedPosition.x+R,y:L.computedPosition.y+O},{computedPosition:G}=xVe(L,H,w.error,r.value,L.parentNode?l(L.parentNode):void 0);M.push({id:L.id,position:G,from:L.position,distance:{x:v.x,y:v.y},dimensions:L.dimensions})}o(M,!0,!1)}}const dLe=.1;function L4(){return g1e("Viewport not initialized yet."),Promise.resolve(!1)}const xDr={zoomIn:L4,zoomOut:L4,zoomTo:L4,fitView:L4,setCenter:L4,fitBounds:L4,project:n=>n,screenToFlowCoordinate:n=>n,flowToScreenCoordinate:n=>n,setViewport:L4,setTransform:L4,getViewport:()=>({x:0,y:0,zoom:1}),getTransform:()=>({x:0,y:0,zoom:1}),viewportInitialized:!1};function CDr(n){function r(l,u){return new Promise(d=>{n.d3Selection&&n.d3Zoom?n.d3Zoom.scaleBy(hLe(n.d3Selection,u,()=>{d(!0)}),l):d(!1)})}function o(l,u,d,h){return new Promise(w=>{const{x:v,y}=Edn({x:-l,y:-u},n.translateExtent),E=ZL.translate(-v,-y).scale(d);n.d3Selection&&n.d3Zoom?n.d3Zoom.transform(hLe(n.d3Selection,h,()=>{w(!0)}),E):w(!1)})}return To(()=>n.d3Zoom&&n.d3Selection&&n.dimensions.width&&n.dimensions.height?{viewportInitialized:!0,zoomIn:u=>r(1.2,u==null?void 0:u.duration),zoomOut:u=>r(1/1.2,u==null?void 0:u.duration),zoomTo:(u,d)=>new Promise(h=>{n.d3Selection&&n.d3Zoom?n.d3Zoom.scaleTo(hLe(n.d3Selection,d==null?void 0:d.duration,()=>{h(!0)}),u):h(!1)}),setViewport:(u,d)=>o(u.x,u.y,u.zoom,d==null?void 0:d.duration),setTransform:(u,d)=>o(u.x,u.y,u.zoom,d==null?void 0:d.duration),getViewport:()=>({x:n.viewport.x,y:n.viewport.y,zoom:n.viewport.zoom}),getTransform:()=>({x:n.viewport.x,y:n.viewport.y,zoom:n.viewport.zoom}),fitView:(u={padding:dLe,includeHiddenNodes:!1,duration:0})=>{var d,h;const w=[];for(const C of n.nodes)C.dimensions.width&&C.dimensions.height&&((u==null?void 0:u.includeHiddenNodes)||!C.hidden)&&(!((d=u.nodes)!=null&&d.length)||(h=u.nodes)!=null&&h.length&&u.nodes.includes(C.id))&&w.push(C);if(!w.length)return Promise.resolve(!1);const v=Tdn(w),{x:y,y:E,zoom:A}=yJt(v,n.dimensions.width,n.dimensions.height,u.minZoom??n.minZoom,u.maxZoom??n.maxZoom,u.padding??dLe,u.offset);return o(y,E,A,u==null?void 0:u.duration)},setCenter:(u,d,h)=>{const w=typeof(h==null?void 0:h.zoom)<"u"?h.zoom:n.maxZoom,v=n.dimensions.width/2-u*w,y=n.dimensions.height/2-d*w;return o(v,y,w,h==null?void 0:h.duration)},fitBounds:(u,d={padding:dLe})=>{const{x:h,y:w,zoom:v}=yJt(u,n.dimensions.width,n.dimensions.height,n.minZoom,n.maxZoom,d.padding);return o(h,w,v,d==null?void 0:d.duration)},project:u=>$X(u,n.viewport,n.snapToGrid,n.snapGrid),screenToFlowCoordinate:u=>{if(n.vueFlowRef){const{x:d,y:h}=n.vueFlowRef.getBoundingClientRect(),w={x:u.x-d,y:u.y-h};return $X(w,n.viewport,n.snapToGrid,n.snapGrid)}return{x:0,y:0}},flowToScreenCoordinate:u=>{if(n.vueFlowRef){const{x:d,y:h}=n.vueFlowRef.getBoundingClientRect(),w={x:u.x+d,y:u.y+h};return Cdn(w,n.viewport)}return{x:0,y:0}}}:xDr)}function hLe(n,r=0,o){return n.transition().duration(r).on("end",o)}function ADr(n,r,o){const l=SYt(!0);return l.run(()=>{const u=()=>{l.run(()=>{let M,L,H=!!(o.nodes.value.length||o.edges.value.length);M=dD([n.modelValue,()=>{var G,j;return(j=(G=n.modelValue)==null?void 0:G.value)==null?void 0:j.length}],([G])=>{G&&Array.isArray(G)&&(L==null||L.pause(),o.setElements(G),!L&&!H&&G.length?H=!0:L==null||L.resume())}),L=dD([o.nodes,o.edges,()=>o.edges.value.length,()=>o.nodes.value.length],([G,j])=>{var Q;(Q=n.modelValue)!=null&&Q.value&&Array.isArray(n.modelValue.value)&&(M==null||M.pause(),n.modelValue.value=[...G,...j],RS(()=>{M==null||M.resume()}))},{immediate:H}),qK(()=>{M==null||M.stop(),L==null||L.stop()})})},d=()=>{l.run(()=>{let M,L,H=!!o.nodes.value.length;M=dD([n.nodes,()=>{var G,j;return(j=(G=n.nodes)==null?void 0:G.value)==null?void 0:j.length}],([G])=>{G&&Array.isArray(G)&&(L==null||L.pause(),o.setNodes(G),!L&&!H&&G.length?H=!0:L==null||L.resume())}),L=dD([o.nodes,()=>o.nodes.value.length],([G])=>{var j;(j=n.nodes)!=null&&j.value&&Array.isArray(n.nodes.value)&&(M==null||M.pause(),n.nodes.value=[...G],RS(()=>{M==null||M.resume()}))},{immediate:H}),qK(()=>{M==null||M.stop(),L==null||L.stop()})})},h=()=>{l.run(()=>{let M,L,H=!!o.edges.value.length;M=dD([n.edges,()=>{var G,j;return(j=(G=n.edges)==null?void 0:G.value)==null?void 0:j.length}],([G])=>{G&&Array.isArray(G)&&(L==null||L.pause(),o.setEdges(G),!L&&!H&&G.length?H=!0:L==null||L.resume())}),L=dD([o.edges,()=>o.edges.value.length],([G])=>{var j;(j=n.edges)!=null&&j.value&&Array.isArray(n.edges.value)&&(M==null||M.pause(),n.edges.value=[...G],RS(()=>{M==null||M.resume()}))},{immediate:H}),qK(()=>{M==null||M.stop(),L==null||L.stop()})})},w=()=>{l.run(()=>{Zs(()=>r.maxZoom,()=>{r.maxZoom&&Gd(r.maxZoom)&&o.setMaxZoom(r.maxZoom)},{immediate:!0})})},v=()=>{l.run(()=>{Zs(()=>r.minZoom,()=>{r.minZoom&&Gd(r.minZoom)&&o.setMinZoom(r.minZoom)},{immediate:!0})})},y=()=>{l.run(()=>{Zs(()=>r.translateExtent,()=>{r.translateExtent&&Gd(r.translateExtent)&&o.setTranslateExtent(r.translateExtent)},{immediate:!0})})},E=()=>{l.run(()=>{Zs(()=>r.nodeExtent,()=>{r.nodeExtent&&Gd(r.nodeExtent)&&o.setNodeExtent(r.nodeExtent)},{immediate:!0})})},A=()=>{l.run(()=>{Zs(()=>r.applyDefault,()=>{Gd(r.applyDefault)&&(o.applyDefault.value=r.applyDefault)},{immediate:!0})})},C=()=>{l.run(()=>{const M=async L=>{let H=L;typeof r.autoConnect=="function"&&(H=await r.autoConnect(L)),H!==!1&&o.addEdges([H])};Zs(()=>r.autoConnect,()=>{Gd(r.autoConnect)&&(o.autoConnect.value=r.autoConnect)},{immediate:!0}),Zs(o.autoConnect,(L,H,G)=>{L?o.onConnect(M):o.hooks.value.connect.off(M),G(()=>{o.hooks.value.connect.off(M)})},{immediate:!0})})},R=()=>{const M=["id","modelValue","translateExtent","nodeExtent","edges","nodes","maxZoom","minZoom","applyDefault","autoConnect"];for(const L of Object.keys(r)){const H=L;if(!M.includes(H)){const G=bf(()=>r[H]),j=o[H];_d(j)&&l.run(()=>{Zs(G,Q=>{Gd(Q)&&(j.value=Q)},{immediate:!0})})}}};(()=>{u(),d(),h(),v(),w(),y(),E(),A(),C(),R()})()}),()=>l.stop()}function TDr(){return{edgesChange:ci(),nodesChange:ci(),nodeDoubleClick:ci(),nodeClick:ci(),nodeMouseEnter:ci(),nodeMouseMove:ci(),nodeMouseLeave:ci(),nodeContextMenu:ci(),nodeDragStart:ci(),nodeDrag:ci(),nodeDragStop:ci(),nodesInitialized:ci(),miniMapNodeClick:ci(),miniMapNodeDoubleClick:ci(),miniMapNodeMouseEnter:ci(),miniMapNodeMouseMove:ci(),miniMapNodeMouseLeave:ci(),connect:ci(),connectStart:ci(),connectEnd:ci(),clickConnectStart:ci(),clickConnectEnd:ci(),paneReady:ci(),init:ci(),move:ci(),moveStart:ci(),moveEnd:ci(),selectionDragStart:ci(),selectionDrag:ci(),selectionDragStop:ci(),selectionContextMenu:ci(),selectionStart:ci(),selectionEnd:ci(),viewportChangeStart:ci(),viewportChange:ci(),viewportChangeEnd:ci(),paneScroll:ci(),paneClick:ci(),paneContextMenu:ci(),paneMouseEnter:ci(),paneMouseMove:ci(),paneMouseLeave:ci(),edgeContextMenu:ci(),edgeMouseEnter:ci(),edgeMouseMove:ci(),edgeMouseLeave:ci(),edgeDoubleClick:ci(),edgeClick:ci(),edgeUpdateStart:ci(),edgeUpdate:ci(),edgeUpdateEnd:ci(),updateNodeInternals:ci(),error:ci(n=>g1e(n.message))}}function $Dr(n,r){tQt(()=>{for(const[o,l]of Object.entries(r.value)){const u=d=>{n(o,d)};l.fns.add(u),c1e(()=>{l.off(u)})}})}function Gdn(){return{vueFlowRef:null,viewportRef:null,nodes:[],edges:[],connectionLookup:new Map,nodeTypes:{},edgeTypes:{},initialized:!1,dimensions:{width:0,height:0},viewport:{x:0,y:0,zoom:1},d3Zoom:null,d3Selection:null,d3ZoomHandler:null,minZoom:.5,maxZoom:2,translateExtent:[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],nodeExtent:[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],selectionMode:RVe.Full,paneDragging:!1,preventScrolling:!0,zoomOnScroll:!0,zoomOnPinch:!0,zoomOnDoubleClick:!0,panOnScroll:!1,panOnScrollSpeed:.5,panOnScrollMode:Pq.Free,paneClickDistance:0,panOnDrag:!0,edgeUpdaterRadius:10,onlyRenderVisibleElements:!1,defaultViewport:{x:0,y:0,zoom:1},nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,defaultMarkerColor:"#b1b1b7",connectionLineStyle:{},connectionLineType:null,connectionLineOptions:{type:F8.Bezier,style:{}},connectionMode:FP.Loose,connectionStartHandle:null,connectionEndHandle:null,connectionClickStartHandle:null,connectionPosition:{x:Number.NaN,y:Number.NaN},connectionRadius:20,connectOnClick:!0,connectionStatus:null,isValidConnection:null,snapGrid:[15,15],snapToGrid:!1,edgesUpdatable:!1,edgesFocusable:!0,nodesFocusable:!0,nodesConnectable:!0,nodesDraggable:!0,nodeDragThreshold:1,elementsSelectable:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,selectionKeyCode:"Shift",multiSelectionKeyCode:Bhe()?"Meta":"Control",zoomActivationKeyCode:Bhe()?"Meta":"Control",deleteKeyCode:"Backspace",panActivationKeyCode:"Space",hooks:TDr(),applyDefault:!0,autoConnect:!1,fitViewOnInit:!1,fitViewOnInitDone:!1,noDragClassName:"nodrag",noWheelClassName:"nowheel",noPanClassName:"nopan",defaultEdgeOptions:void 0,elevateEdgesOnSelect:!1,elevateNodesOnSelect:!0,autoPanOnNodeDrag:!0,autoPanOnConnect:!0,autoPanSpeed:15,disableKeyboardA11y:!1,ariaLiveMessage:""}}const IDr=["id","vueFlowRef","viewportRef","initialized","modelValue","nodes","edges","maxZoom","minZoom","translateExtent","hooks","defaultEdgeOptions"];function PDr(n,r,o){const l=CDr(n),u=$=>{const B=$??[];n.hooks.updateNodeInternals.trigger(B)},d=$=>eDr($,n.nodes,n.edges),h=$=>Z9r($,n.nodes,n.edges),w=$=>Idn($,n.edges),v=({id:$,type:B,nodeId:K})=>{var q;return Array.from(((q=n.connectionLookup.get(`${K}-${B}-${$??null}`))==null?void 0:q.values())??[])},y=$=>{if($)return r.value.get($)},E=$=>{if($)return o.value.get($)},A=($,B,K)=>{var q,ke;const Re=[];for(const Ie of $){const St={id:Ie.id,type:"position",dragging:K,from:Ie.from};if(B&&(St.position=Ie.position,Ie.parentNode)){const he=y(Ie.parentNode);St.position={x:St.position.x-(((q=he==null?void 0:he.computedPosition)==null?void 0:q.x)??0),y:St.position.y-(((ke=he==null?void 0:he.computedPosition)==null?void 0:ke.y)??0)}}Re.push(St)}Re!=null&&Re.length&&n.hooks.nodesChange.trigger(Re)},C=$=>{if(!n.vueFlowRef)return;const B=n.vueFlowRef.querySelector(".vue-flow__transformationpane");if(!B)return;const K=window.getComputedStyle(B),{m22:q}=new window.DOMMatrixReadOnly(K.transform),ke=[];for(let Re=0;Re<$.length;++Re){const Ie=$[Re],St=y(Ie.id);if(St){const he=p1e(Ie.nodeElement);if(!!(he.width&&he.height&&(St.dimensions.width!==he.width||St.dimensions.height!==he.height||Ie.forceUpdate))){const Qt=Ie.nodeElement.getBoundingClientRect();St.dimensions=he,St.handleBounds.source=$Jt(".source",Ie.nodeElement,Qt,q),St.handleBounds.target=$Jt(".target",Ie.nodeElement,Qt,q),ke.push({id:St.id,type:"dimensions",dimensions:he})}}}!n.fitViewOnInitDone&&n.fitViewOnInit&&l.value.fitView().then(()=>{n.fitViewOnInitDone=!0}),ke.length&&n.hooks.nodesChange.trigger(ke)},R=($,B)=>{const K=new Set,q=new Set;for(const Ie of $)wP(Ie)?K.add(Ie.id):$T(Ie)&&q.add(Ie.id);const ke=iT(r.value,K,!0),Re=iT(o.value,q);if(n.multiSelectionActive){for(const Ie of K)ke.push(W4(Ie,B));for(const Ie of q)Re.push(W4(Ie,B))}ke.length&&n.hooks.nodesChange.trigger(ke),Re.length&&n.hooks.edgesChange.trigger(Re)},O=$=>{if(n.multiSelectionActive){const B=$.map(K=>W4(K.id,!0));n.hooks.nodesChange.trigger(B);return}n.hooks.nodesChange.trigger(iT(r.value,new Set($.map(B=>B.id)),!0)),n.hooks.edgesChange.trigger(iT(o.value))},M=$=>{if(n.multiSelectionActive){const B=$.map(K=>W4(K.id,!0));n.hooks.edgesChange.trigger(B);return}n.hooks.edgesChange.trigger(iT(o.value,new Set($.map(B=>B.id)))),n.hooks.nodesChange.trigger(iT(r.value,new Set,!0))},L=$=>{R($,!0)},H=$=>{const K=($||n.nodes).map(q=>(q.selected=!1,W4(q.id,!1)));n.hooks.nodesChange.trigger(K)},G=$=>{const K=($||n.edges).map(q=>(q.selected=!1,W4(q.id,!1)));n.hooks.edgesChange.trigger(K)},j=$=>{if(!$||!$.length)return R([],!1);const B=$.reduce((K,q)=>{const ke=W4(q.id,!1);return wP(q)?K.nodes.push(ke):K.edges.push(ke),K},{nodes:[],edges:[]});B.nodes.length&&n.hooks.nodesChange.trigger(B.nodes),B.edges.length&&n.hooks.edgesChange.trigger(B.edges)},Q=$=>{var B;(B=n.d3Zoom)==null||B.scaleExtent([$,n.maxZoom]),n.minZoom=$},te=$=>{var B;(B=n.d3Zoom)==null||B.scaleExtent([n.minZoom,$]),n.maxZoom=$},pe=$=>{var B;(B=n.d3Zoom)==null||B.translateExtent($),n.translateExtent=$},Le=$=>{n.nodeExtent=$,u()},Ee=$=>{var B;(B=n.d3Zoom)==null||B.clickDistance($)},le=$=>{n.nodesDraggable=$,n.nodesConnectable=$,n.elementsSelectable=$},xe=$=>{const B=$ instanceof Function?$(n.nodes):$;!n.initialized&&!B.length||(n.nodes=IJt(B,y,n.hooks.error.trigger))},be=$=>{const B=$ instanceof Function?$(n.edges):$;if(!n.initialized&&!B.length)return;const K=OJt(B,n.isValidConnection,y,E,n.hooks.error.trigger,n.defaultEdgeOptions,n.nodes,n.edges);PJt(n.connectionLookup,K),n.edges=K},ae=$=>{const B=$ instanceof Function?$([...n.nodes,...n.edges]):$;!n.initialized&&!B.length||(xe(B.filter(wP)),be(B.filter($T)))},F=$=>{let B=$ instanceof Function?$(n.nodes):$;B=Array.isArray(B)?B:[B];const K=IJt(B,y,n.hooks.error.trigger),q=[];for(const ke of K)q.push(SJt(ke));q.length&&n.hooks.nodesChange.trigger(q)},me=$=>{let B=$ instanceof Function?$(n.edges):$;B=Array.isArray(B)?B:[B];const K=OJt(B,n.isValidConnection,y,E,n.hooks.error.trigger,n.defaultEdgeOptions,n.nodes,n.edges),q=[];for(const ke of K)q.push(SJt(ke));q.length&&n.hooks.edgesChange.trigger(q)},ye=($,B=!0,K=!1)=>{const q=$ instanceof Function?$(n.nodes):$,ke=Array.isArray(q)?q:[q],Re=[],Ie=[];function St(zt){const Qt=w(zt);for(const $n of Qt)(!Gd($n.deletable)||$n.deletable)&&Ie.push(kJt($n.id,$n.source,$n.target,$n.sourceHandle,$n.targetHandle))}function he(zt){const Qt=[];for(const $n of n.nodes)$n.parentNode===zt&&Qt.push($n);if(Qt.length){for(const $n of Qt)Re.push(EJt($n.id));B&&St(Qt);for(const $n of Qt)he($n.id)}}for(const zt of ke){const Qt=typeof zt=="string"?y(zt):zt;Qt&&(Gd(Qt.deletable)&&!Qt.deletable||(Re.push(EJt(Qt.id)),B&&St([Qt]),K&&he(Qt.id)))}Ie.length&&n.hooks.edgesChange.trigger(Ie),Re.length&&n.hooks.nodesChange.trigger(Re)},we=$=>{const B=$ instanceof Function?$(n.edges):$,K=Array.isArray(B)?B:[B],q=[];for(const ke of K){const Re=typeof ke=="string"?E(ke):ke;Re&&(Gd(Re.deletable)&&!Re.deletable||q.push(kJt(typeof ke=="string"?ke:ke.id,Re.source,Re.target,Re.sourceHandle,Re.targetHandle)))}n.hooks.edgesChange.trigger(q)},Be=($,B,K=!0)=>wDr($,B,n.edges,E,K,n.hooks.error.trigger),He=($,B,K={replace:!1})=>{const q=E($);if(!q)return;const ke=typeof B=="function"?B(q):B;q.data=K.replace?ke:{...q.data,...ke}},Ue=$=>_Jt($,n.nodes),Ge=$=>{const B=_Jt($,n.edges);return PJt(n.connectionLookup,B),B},Me=($,B,K={replace:!1})=>{const q=y($);if(!q)return;const ke=typeof B=="function"?B(q):B;K.replace?n.nodes.splice(n.nodes.indexOf(q),1,ke):Object.assign(q,ke)},vt=($,B,K={replace:!1})=>{const q=y($);if(!q)return;const ke=typeof B=="function"?B(q):B;q.data=K.replace?ke:{...q.data,...ke}},re=($,B,K=!1)=>{K?n.connectionClickStartHandle=$:n.connectionStartHandle=$,n.connectionEndHandle=null,n.connectionStatus=null,B&&(n.connectionPosition=B)},Te=($,B=null,K=null)=>{n.connectionStartHandle&&(n.connectionPosition=$,n.connectionEndHandle=B,n.connectionStatus=K)},ct=($,B)=>{n.connectionPosition={x:Number.NaN,y:Number.NaN},n.connectionEndHandle=null,n.connectionStatus=null,B?n.connectionClickStartHandle=null:n.connectionStartHandle=null},at=$=>{const B=Y9r($),K=B?null:zK($)?$:y($.id);return!B&&!K?[null,null,B]:[B?$:ZBe(K),K,B]},Ye=($,B=!0,K=n.nodes)=>{const[q,ke,Re]=at($);if(!q)return[];const Ie=[];for(const St of K||n.nodes){if(!Re&&(St.id===ke.id||!St.computedPosition))continue;const he=ZBe(St),zt=eWe(he,q);(B&&zt>0||zt>=Number(q.width)*Number(q.height))&&Ie.push(St)}return Ie},mt=($,B,K=!0)=>{const[q]=at($);if(!q)return!1;const ke=eWe(q,B);return K&&ke>0||ke>=Number(q.width)*Number(q.height)},jt=$=>{const{viewport:B,dimensions:K,d3Zoom:q,d3Selection:ke,translateExtent:Re}=n;if(!q||!ke||!$.x&&!$.y)return!1;const Ie=ZL.translate(B.x+$.x,B.y+$.y).scale(B.zoom),St=[[0,0],[K.width,K.height]],he=q.constrain()(Ie,St,Re),zt=n.viewport.x!==he.x||n.viewport.y!==he.y||n.viewport.zoom!==he.k;return q.transform(ke,he),zt},rn=$=>{const B=$ instanceof Function?$(n):$,K=["d3Zoom","d3Selection","d3ZoomHandler","viewportRef","vueFlowRef","dimensions","hooks"];Gd(B.defaultEdgeOptions)&&(n.defaultEdgeOptions=B.defaultEdgeOptions);const q=B.modelValue||B.nodes||B.edges?[]:void 0;q&&(B.modelValue&&q.push(...B.modelValue),B.nodes&&q.push(...B.nodes),B.edges&&q.push(...B.edges),ae(q));const ke=()=>{Gd(B.maxZoom)&&te(B.maxZoom),Gd(B.minZoom)&&Q(B.minZoom),Gd(B.translateExtent)&&pe(B.translateExtent)};for(const Re of Object.keys(B)){const Ie=Re,St=B[Ie];![...IDr,...K].includes(Ie)&&Gd(St)&&(n[Ie]=St)}UBe(()=>n.d3Zoom).not.toBeNull().then(ke),n.initialized||(n.initialized=!0)};return{updateNodePositions:A,updateNodeDimensions:C,setElements:ae,setNodes:xe,setEdges:be,addNodes:F,addEdges:me,removeNodes:ye,removeEdges:we,findNode:y,findEdge:E,updateEdge:Be,updateEdgeData:He,updateNode:Me,updateNodeData:vt,applyEdgeChanges:Ge,applyNodeChanges:Ue,addSelectedElements:L,addSelectedNodes:O,addSelectedEdges:M,setMinZoom:Q,setMaxZoom:te,setTranslateExtent:pe,setNodeExtent:Le,setPaneClickDistance:Ee,removeSelectedElements:j,removeSelectedNodes:H,removeSelectedEdges:G,startConnection:re,updateConnection:Te,endConnection:ct,setInteractive:le,setState:rn,getIntersectingNodes:Ye,getIncomers:d,getOutgoers:h,getConnectedEdges:w,getHandleConnections:v,isNodeIntersecting:mt,panBy:jt,fitView:$=>l.value.fitView($),zoomIn:$=>l.value.zoomIn($),zoomOut:$=>l.value.zoomOut($),zoomTo:($,B)=>l.value.zoomTo($,B),setViewport:($,B)=>l.value.setViewport($,B),setTransform:($,B)=>l.value.setTransform($,B),getViewport:()=>l.value.getViewport(),getTransform:()=>l.value.getTransform(),setCenter:($,B,K)=>l.value.setCenter($,B,K),fitBounds:($,B)=>l.value.fitBounds($,B),project:$=>l.value.project($),screenToFlowCoordinate:$=>l.value.screenToFlowCoordinate($),flowToScreenCoordinate:$=>l.value.flowToScreenCoordinate($),toObject:()=>{const $=[],B=[];for(const K of n.nodes){const{computedPosition:q,handleBounds:ke,selected:Re,dimensions:Ie,isParent:St,resizing:he,dragging:zt,events:Qt,...$n}=K;$.push($n)}for(const K of n.edges){const{selected:q,sourceNode:ke,targetNode:Re,events:Ie,...St}=K;B.push(St)}return JSON.parse(JSON.stringify({nodes:$,edges:B,position:[n.viewport.x,n.viewport.y],zoom:n.viewport.zoom,viewport:n.viewport}))},fromObject:$=>new Promise(B=>{const{nodes:K,edges:q,position:ke,zoom:Re,viewport:Ie}=$;if(K&&xe(K),q&&be(q),Ie!=null&&Ie.x&&(Ie!=null&&Ie.y)||ke){const St=(Ie==null?void 0:Ie.x)||ke[0],he=(Ie==null?void 0:Ie.y)||ke[1],zt=(Ie==null?void 0:Ie.zoom)||Re||n.viewport.zoom;return UBe(()=>l.value.viewportInitialized).toBe(!0).then(()=>{l.value.setViewport({x:St,y:he,zoom:zt}).then(()=>{B(!0)})})}else B(!0)}),updateNodeInternals:u,viewportHelper:l,$reset:()=>{const $=Gdn();if(n.edges=[],n.nodes=[],n.d3Zoom&&n.d3Selection){const B=ZL.translate($.defaultViewport.x??0,$.defaultViewport.y??0).scale(BP($.defaultViewport.zoom??1,$.minZoom,$.maxZoom)),K=n.viewportRef.getBoundingClientRect(),q=[[0,0],[K.width,K.height]],ke=n.d3Zoom.constrain()(B,q,$.translateExtent);n.d3Zoom.transform(n.d3Selection,ke)}rn($)},$destroy:()=>{}}}const ODr=["data-id","data-handleid","data-nodeid","data-handlepos"],NDr={name:"Handle",compatConfig:{MODE:3}},ej=Ka({...NDr,props:{id:{default:null},type:{},position:{default:()=>$i.Top},isValidConnection:{type:Function},connectable:{type:[Boolean,Number,String,Function],default:void 0},connectableStart:{type:Boolean,default:!0},connectableEnd:{type:Boolean,default:!0}},setup(n,{expose:r}){const o=oQt(n,["position","connectable","connectableStart","connectableEnd","id"]),l=bf(()=>o.type??"source"),u=bf(()=>o.isValidConnection??null),{connectionStartHandle:d,connectionClickStartHandle:h,connectionEndHandle:w,vueFlowRef:v,nodesConnectable:y,noDragClassName:E,noPanClassName:A}=hu(),{id:C,node:R,nodeEl:O,connectedEdges:M}=Hdn(),L=Fo(),H=bf(()=>typeof n.connectableStart<"u"?n.connectableStart:!0),G=bf(()=>typeof n.connectableEnd<"u"?n.connectableEnd:!0),j=bf(()=>{var xe,be,ae,F,me,ye;return((xe=d.value)==null?void 0:xe.nodeId)===C&&((be=d.value)==null?void 0:be.handleId)===n.id&&((ae=d.value)==null?void 0:ae.type)===l.value||((F=w.value)==null?void 0:F.nodeId)===C&&((me=w.value)==null?void 0:me.handleId)===n.id&&((ye=w.value)==null?void 0:ye.type)===l.value}),Q=bf(()=>{var xe,be,ae;return((xe=h.value)==null?void 0:xe.nodeId)===C&&((be=h.value)==null?void 0:be.handleId)===n.id&&((ae=h.value)==null?void 0:ae.type)===l.value}),{handlePointerDown:te,handleClick:pe}=Wdn({nodeId:C,handleId:n.id,isValidConnection:u,type:l}),Le=To(()=>typeof n.connectable=="string"&&n.connectable==="single"?!M.value.some(xe=>{const be=xe[`${l.value}Handle`];return xe[l.value]!==C?!1:be?be===n.id:!0}):typeof n.connectable=="number"?M.value.filter(xe=>{const be=xe[`${l.value}Handle`];return xe[l.value]!==C?!1:be?be===n.id:!0}).length{var xe;if(!R.dimensions.width||!R.dimensions.height)return;const be=(xe=R.handleBounds[l.value])==null?void 0:xe.find(He=>He.id===n.id);if(!v.value||be)return;const ae=v.value.querySelector(".vue-flow__transformationpane");if(!O.value||!L.value||!ae||!n.id)return;const F=O.value.getBoundingClientRect(),me=L.value.getBoundingClientRect(),ye=window.getComputedStyle(ae),{m22:we}=new window.DOMMatrixReadOnly(ye.transform),Be={id:n.id,position:n.position,x:(me.left-F.left)/we,y:(me.top-F.top)/we,...p1e(L.value)};R.handleBounds[l.value]=[...R.handleBounds[l.value]??[],Be]}),Zhe(()=>{const xe=R.handleBounds[l.value];xe&&(R.handleBounds[l.value]=xe.filter(be=>be.id!==n.id))});function Ee(xe){const be=CVe(xe);Le.value&&H.value&&(be&&xe.button===0||!be)&&te(xe)}function le(xe){!C||!h.value&&!H.value||Le.value&&pe(xe)}return r({handleClick:pe,handlePointerDown:te,onClick:le,onPointerDown:Ee}),(xe,be)=>(ze(),Lt("div",{ref_key:"handle",ref:L,"data-id":`${Wr(C)}-${n.id}-${l.value}`,"data-handleid":n.id,"data-nodeid":Wr(C),"data-handlepos":xe.position,class:Lo(["vue-flow__handle",[`vue-flow__handle-${xe.position}`,`vue-flow__handle-${n.id}`,Wr(E),Wr(A),l.value,{connectable:Le.value,connecting:Q.value,connectablestart:H.value,connectableend:G.value,connectionindicator:Le.value&&(H.value&&!j.value||G.value&&j.value)}]]),onMousedown:Ee,onTouchstartPassive:Ee,onClick:le},[Vr(xe.$slots,"default",{id:xe.id})],42,ODr))}}),m1e=function({sourcePosition:n=$i.Bottom,targetPosition:r=$i.Top,label:o,connectable:l=!0,isValidTargetPos:u,isValidSourcePos:d,data:h}){const w=h.label||o;return[sc(ej,{type:"target",position:r,connectable:l,isValidConnection:u}),typeof w!="string"&&w?sc(w):sc(gi,[w]),sc(ej,{type:"source",position:n,connectable:l,isValidConnection:d})]};m1e.props=["sourcePosition","targetPosition","label","isValidTargetPos","isValidSourcePos","connectable","data"];m1e.inheritAttrs=!1;m1e.compatConfig={MODE:3};const MDr=m1e,y1e=function({targetPosition:n=$i.Top,label:r,connectable:o=!0,isValidTargetPos:l,data:u}){const d=u.label||r;return[sc(ej,{type:"target",position:n,connectable:o,isValidConnection:l}),typeof d!="string"&&d?sc(d):sc(gi,[d])]};y1e.props=["targetPosition","label","isValidTargetPos","connectable","data"];y1e.inheritAttrs=!1;y1e.compatConfig={MODE:3};const DDr=y1e,v1e=function({sourcePosition:n=$i.Bottom,label:r,connectable:o=!0,isValidSourcePos:l,data:u}){const d=u.label||r;return[typeof d!="string"&&d?sc(d):sc(gi,[d]),sc(ej,{type:"source",position:n,connectable:o,isValidConnection:l})]};v1e.props=["sourcePosition","label","isValidSourcePos","connectable","data"];v1e.inheritAttrs=!1;v1e.compatConfig={MODE:3};const LDr=v1e,jDr=["transform"],FDr=["width","height","x","y","rx","ry"],BDr=["y"],WDr={name:"EdgeText",compatConfig:{MODE:3}},HDr=Ka({...WDr,props:{x:{},y:{},label:{},labelStyle:{default:()=>({})},labelShowBg:{type:Boolean,default:!0},labelBgStyle:{default:()=>({})},labelBgPadding:{default:()=>[2,4]},labelBgBorderRadius:{default:2}},setup(n){const r=Fo({x:0,y:0,width:0,height:0}),o=Fo(null),l=To(()=>`translate(${n.x-r.value.width/2} ${n.y-r.value.height/2})`);sm(u),Zs([()=>n.x,()=>n.y,o,()=>n.label],u);function u(){if(!o.value)return;const d=o.value.getBBox();(d.width!==r.value.width||d.height!==r.value.height)&&(r.value=d)}return(d,h)=>(ze(),Lt("g",{transform:l.value,class:"vue-flow__edge-textwrapper"},[d.labelShowBg?(ze(),Lt("rect",{key:0,class:"vue-flow__edge-textbg",width:`${r.value.width+2*d.labelBgPadding[0]}px`,height:`${r.value.height+2*d.labelBgPadding[1]}px`,x:-d.labelBgPadding[0],y:-d.labelBgPadding[1],style:Vb(d.labelBgStyle),rx:d.labelBgBorderRadius,ry:d.labelBgBorderRadius},null,12,FDr)):fr("",!0),mr("text",Et(d.$attrs,{ref_key:"el",ref:o,class:"vue-flow__edge-text",y:r.value.height/2,dy:"0.3em",style:d.labelStyle}),[Vr(d.$slots,"default",{},()=>[typeof d.label!="string"?(ze(),Nn(jo(d.label),{key:0})):(ze(),Lt(gi,{key:1},[nm(na(d.label),1)],64))])],16,BDr)],8,jDr))}}),UDr=["id","d","marker-end","marker-start"],GDr=["d","stroke-width"],VDr={name:"BaseEdge",inheritAttrs:!1,compatConfig:{MODE:3}},GJ=Ka({...VDr,props:{id:{},labelX:{},labelY:{},path:{},label:{},markerStart:{},markerEnd:{},interactionWidth:{default:20},style:{},labelStyle:{},labelShowBg:{type:Boolean,default:!0},labelBgStyle:{},labelBgPadding:{},labelBgBorderRadius:{}},setup(n,{expose:r}){const o=oQt(n,["interactionWidth","labelShowBg"]),l=Fo(null),u=Fo(null),d=Fo(null),h=zBn();return r({pathEl:l,interactionEl:u,labelEl:d}),(w,v)=>(ze(),Lt(gi,null,[mr("path",{id:w.id,ref_key:"pathEl",ref:l,d:w.path,style:Vb(o.style),class:Lo(["vue-flow__edge-path",Wr(h).class]),"marker-end":w.markerEnd,"marker-start":w.markerStart},null,14,UDr),w.interactionWidth?(ze(),Lt("path",{key:0,ref_key:"interactionEl",ref:u,fill:"none",d:w.path,"stroke-width":w.interactionWidth,"stroke-opacity":0,class:"vue-flow__edge-interaction"},null,8,GDr)):fr("",!0),w.label&&w.labelX&&w.labelY?(ze(),Nn(HDr,{key:1,ref_key:"labelEl",ref:d,x:w.labelX,y:w.labelY,label:w.label,"label-show-bg":w.labelShowBg,"label-bg-style":w.labelBgStyle,"label-bg-padding":w.labelBgPadding,"label-bg-border-radius":w.labelBgBorderRadius,"label-style":w.labelStyle},null,8,["x","y","label","label-show-bg","label-bg-style","label-bg-padding","label-bg-border-radius","label-style"])):fr("",!0)],64))}});function Vdn({sourceX:n,sourceY:r,targetX:o,targetY:l}){const u=Math.abs(o-n)/2,d=o=0?.5*n:r*25*Math.sqrt(-n)}function MJt({pos:n,x1:r,y1:o,x2:l,y2:u,c:d}){let h,w;switch(n){case $i.Left:h=r-yfe(r-l,d),w=o;break;case $i.Right:h=r+yfe(l-r,d),w=o;break;case $i.Top:h=r,w=o-yfe(o-u,d);break;case $i.Bottom:h=r,w=o+yfe(u-o,d);break}return[h,w]}function TVe(n){const{sourceX:r,sourceY:o,sourcePosition:l=$i.Bottom,targetX:u,targetY:d,targetPosition:h=$i.Top,curvature:w=.25}=n,[v,y]=MJt({pos:l,x1:r,y1:o,x2:u,y2:d,c:w}),[E,A]=MJt({pos:h,x1:u,y1:d,x2:r,y2:o,c:w}),[C,R,O,M]=zdn({sourceX:r,sourceY:o,targetX:u,targetY:d,sourceControlX:v,sourceControlY:y,targetControlX:E,targetControlY:A});return[`M${r},${o} C${v},${y} ${E},${A} ${u},${d}`,C,R,O,M]}function DJt({pos:n,x1:r,y1:o,x2:l,y2:u}){let d,h;switch(n){case $i.Left:case $i.Right:d=.5*(r+l),h=o;break;case $i.Top:case $i.Bottom:d=r,h=.5*(o+u);break}return[d,h]}function Kdn(n){const{sourceX:r,sourceY:o,sourcePosition:l=$i.Bottom,targetX:u,targetY:d,targetPosition:h=$i.Top}=n,[w,v]=DJt({pos:l,x1:r,y1:o,x2:u,y2:d}),[y,E]=DJt({pos:h,x1:u,y1:d,x2:r,y2:o}),[A,C,R,O]=zdn({sourceX:r,sourceY:o,targetX:u,targetY:d,sourceControlX:w,sourceControlY:v,targetControlX:y,targetControlY:E});return[`M${r},${o} C${w},${v} ${y},${E} ${u},${d}`,A,C,R,O]}const LJt={[$i.Left]:{x:-1,y:0},[$i.Right]:{x:1,y:0},[$i.Top]:{x:0,y:-1},[$i.Bottom]:{x:0,y:1}};function zDr({source:n,sourcePosition:r=$i.Bottom,target:o}){return r===$i.Left||r===$i.Right?n.xn[A]?-1:1)*me:H[A]=(y[A]>o[A]?-1:1)*me}}if(r!==l){const F=A==="x"?"y":"x",me=h[A]===w[F],ye=v[F]>y[F],we=v[F]=ae?(O=(le.x+xe.x)/2,M=R[0].y):(O=R[0].x,M=(le.y+xe.y)/2)}return[[n,{x:v.x+L.x,y:v.y+L.y},...R,{x:y.x+H.x,y:y.y+H.y},o],O,M,Q,te]}function qDr(n,r,o,l){const u=Math.min(jJt(n,r)/2,jJt(r,o)/2,l),{x:d,y:h}=r;if(n.x===d&&d===o.x||n.y===h&&h===o.y)return`L${d} ${h}`;if(n.y===h){const y=n.x{let Q;return j>0&&j{const[o,l,u]=XDr(n);return sc(GJ,{path:o,labelX:l,labelY:u,...r,...n})}}}),YDr=JDr,QDr=Ka({name:"SmoothStepEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","borderRadius","markerEnd","markerStart","interactionWidth","offset"],compatConfig:{MODE:3},setup(n,{attrs:r}){return()=>{const[o,l,u]=nWe({...n,sourcePosition:n.sourcePosition??$i.Bottom,targetPosition:n.targetPosition??$i.Top});return sc(GJ,{path:o,labelX:l,labelY:u,...r,...n})}}}),qdn=QDr,ZDr=Ka({name:"StepEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","markerEnd","markerStart","interactionWidth"],setup(n,{attrs:r}){return()=>sc(qdn,{...n,...r,borderRadius:0})}}),eLr=ZDr,tLr=Ka({name:"BezierEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","curvature","markerEnd","markerStart","interactionWidth"],compatConfig:{MODE:3},setup(n,{attrs:r}){return()=>{const[o,l,u]=TVe({...n,sourcePosition:n.sourcePosition??$i.Bottom,targetPosition:n.targetPosition??$i.Top});return sc(GJ,{path:o,labelX:l,labelY:u,...r,...n})}}}),nLr=tLr,rLr=Ka({name:"SimpleBezierEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","markerEnd","markerStart","interactionWidth"],compatConfig:{MODE:3},setup(n,{attrs:r}){return()=>{const[o,l,u]=Kdn({...n,sourcePosition:n.sourcePosition??$i.Bottom,targetPosition:n.targetPosition??$i.Top});return sc(GJ,{path:o,labelX:l,labelY:u,...r,...n})}}}),iLr=rLr,oLr={input:LDr,default:MDr,output:DDr},sLr={default:nLr,straight:YDr,step:eLr,smoothstep:qdn,simplebezier:iLr};function lLr(n,r,o){const l=To(()=>M=>r.value.get(M)),u=To(()=>M=>o.value.get(M)),d=To(()=>{const M={...sLr,...n.edgeTypes},L=Object.keys(M);for(const H of n.edges)H.type&&!L.includes(H.type)&&(M[H.type]=H.type);return M}),h=To(()=>{const M={...oLr,...n.nodeTypes},L=Object.keys(M);for(const H of n.nodes)H.type&&!L.includes(H.type)&&(M[H.type]=H.type);return M}),w=To(()=>n.onlyRenderVisibleElements?$dn(n.nodes,{x:0,y:0,width:n.dimensions.width,height:n.dimensions.height},n.viewport,!0):n.nodes),v=To(()=>{if(n.onlyRenderVisibleElements){const M=[];for(const L of n.edges){const H=r.value.get(L.source),G=r.value.get(L.target);cDr({sourcePos:H.computedPosition||{x:0,y:0},targetPos:G.computedPosition||{x:0,y:0},sourceWidth:H.dimensions.width,sourceHeight:H.dimensions.height,targetWidth:G.dimensions.width,targetHeight:G.dimensions.height,width:n.dimensions.width,height:n.dimensions.height,viewport:n.viewport})&&M.push(L)}return M}return n.edges}),y=To(()=>[...w.value,...v.value]),E=To(()=>{const M=[];for(const L of n.nodes)L.selected&&M.push(L);return M}),A=To(()=>{const M=[];for(const L of n.edges)L.selected&&M.push(L);return M}),C=To(()=>[...E.value,...A.value]),R=To(()=>{const M=[];for(const L of n.nodes)L.dimensions.width&&L.dimensions.height&&L.handleBounds!==void 0&&M.push(L);return M}),O=To(()=>w.value.length>0&&R.value.length===w.value.length);return{getNode:l,getEdge:u,getElements:y,getEdgeTypes:d,getNodeTypes:h,getEdges:v,getNodes:w,getSelectedElements:C,getSelectedNodes:E,getSelectedEdges:A,getNodesInitialized:R,areNodesInitialized:O}}class B8{constructor(){this.currentId=0,this.flows=new Map}static getInstance(){var r;const o=(r=NT())==null?void 0:r.appContext.app,l=(o==null?void 0:o.config.globalProperties.$vueFlowStorage)??B8.instance;return B8.instance=l??new B8,o&&(o.config.globalProperties.$vueFlowStorage=B8.instance),B8.instance}set(r,o){return this.flows.set(r,o)}get(r){return this.flows.get(r)}remove(r){return this.flows.delete(r)}create(r,o){const l=Gdn(),u=mP(l),d={};for(const[C,R]of Object.entries(u.hooks)){const O=`on${C.charAt(0).toUpperCase()+C.slice(1)}`;d[O]=R.on}const h={};for(const[C,R]of Object.entries(u.hooks))h[C]=R.trigger;const w=To(()=>{const C=new Map;for(const R of u.nodes)C.set(R.id,R);return C}),v=To(()=>{const C=new Map;for(const R of u.edges)C.set(R.id,R);return C}),y=lLr(u,w,v),E=PDr(u,w,v);E.setState({...u,...o});const A={...d,...y,...E,...f7r(u),nodeLookup:w,edgeLookup:v,emits:h,id:r,vueFlowVersion:"1.41.5",$destroy:()=>{this.remove(r)}};return this.set(r,A),A}getId(){return`vue-flow-${this.currentId++}`}}function hu(n){const r=B8.getInstance(),o=zhe(),l=typeof n=="object",u=l?n:{id:n},d=u.id,h=d??(o==null?void 0:o.vueFlowId);let w;if(o){const v=BE(NJt,null);typeof v<"u"&&v!==null&&(!h||v.id===h)&&(w=v)}if(w||h&&(w=r.get(h)),!w||h&&w.id!==h){const v=d??r.getId(),y=r.create(v,u);w=y,(o??SYt(!0)).run(()=>{Zs(y.applyDefault,(A,C,R)=>{const O=L=>{y.applyNodeChanges(L)},M=L=>{y.applyEdgeChanges(L)};A?(y.onNodesChange(O),y.onEdgesChange(M)):(y.hooks.value.nodesChange.off(O),y.hooks.value.edgesChange.off(M)),R(()=>{y.hooks.value.nodesChange.off(O),y.hooks.value.edgesChange.off(M)})},{immediate:!0}),c1e(()=>{if(w){const A=r.get(w.id);A?A.$destroy():g1e(`No store instance found for id ${w.id} in storage.`)}})})}else l&&w.setState(u);if(o&&(vP(NJt,w),o.vueFlowId=w.id),l){const v=NT();(v==null?void 0:v.type.name)!=="VueFlow"&&w.emits.error(new Ch(Vd.USEVUEFLOW_OPTIONS))}return w}function aLr(n){const{emits:r,dimensions:o}=hu();let l;sm(()=>{const u=n.value,d=()=>{if(!u)return;const h=p1e(u);(h.width===0||h.height===0)&&r.error(new Ch(Vd.MISSING_VIEWPORT_DIMENSIONS)),o.value={width:h.width||500,height:h.height||500}};d(),window.addEventListener("resize",d),u&&(l=new ResizeObserver(()=>d()),l.observe(u)),Qhe(()=>{window.removeEventListener("resize",d),l&&u&&l.unobserve(u)})})}const cLr={name:"UserSelection",compatConfig:{MODE:3}},uLr=Ka({...cLr,props:{userSelectionRect:{}},setup(n){return(r,o)=>(ze(),Lt("div",{class:"vue-flow__selection vue-flow__container",style:Vb({width:`${r.userSelectionRect.width}px`,height:`${r.userSelectionRect.height}px`,transform:`translate(${r.userSelectionRect.x}px, ${r.userSelectionRect.y}px)`})},null,4))}}),fLr=["tabIndex"],dLr={name:"NodesSelection",compatConfig:{MODE:3}},hLr=Ka({...dLr,setup(n){const{emits:r,viewport:o,getSelectedNodes:l,noPanClassName:u,disableKeyboardA11y:d,userSelectionActive:h}=hu(),w=Udn(),v=Fo(null),y=Bdn({el:v,onStart(O){r.selectionDragStart(O)},onDrag(O){r.selectionDrag(O)},onStop(O){r.selectionDragStop(O)}});sm(()=>{var O;d.value||(O=v.value)==null||O.focus({preventScroll:!0})});const E=To(()=>Tdn(l.value)),A=To(()=>({width:`${E.value.width}px`,height:`${E.value.height}px`,top:`${E.value.y}px`,left:`${E.value.x}px`}));function C(O){r.selectionContextMenu({event:O,nodes:l.value})}function R(O){d||_L[O.key]&&w({x:_L[O.key].x,y:_L[O.key].y},O.shiftKey)}return(O,M)=>!Wr(h)&&E.value.width&&E.value.height?(ze(),Lt("div",{key:0,class:Lo(["vue-flow__nodesselection vue-flow__container",Wr(u)]),style:Vb({transform:`translate(${Wr(o).x}px,${Wr(o).y}px) scale(${Wr(o).zoom})`})},[mr("div",{ref_key:"el",ref:v,class:Lo([{dragging:Wr(y)},"vue-flow__nodesselection-rect"]),style:Vb(A.value),tabIndex:Wr(d)?void 0:-1,onContextmenu:C,onKeydown:R},null,46,fLr)],6)):fr("",!0)}});function pLr(n,r){return{x:n.clientX-r.left,y:n.clientY-r.top}}const bLr={name:"Pane",compatConfig:{MODE:3}},gLr=Ka({...bLr,props:{isSelecting:{type:Boolean},selectionKeyPressed:{type:Boolean}},setup(n){const{vueFlowRef:r,nodes:o,viewport:l,emits:u,userSelectionActive:d,removeSelectedElements:h,panOnDrag:w,userSelectionRect:v,elementsSelectable:y,nodesSelectionActive:E,getSelectedEdges:A,getSelectedNodes:C,removeNodes:R,removeEdges:O,selectionMode:M,deleteKeyCode:L,multiSelectionKeyCode:H,multiSelectionActive:G,edgeLookup:j,nodeLookup:Q}=hu(),te=Fo(null),pe=Fo(0),Le=Fo(0),Ee=Fo(),le=Fo(new Map),xe=bf(()=>y.value&&(n.isSelecting||d.value));let be=!1,ae=!1;const F=Oq(L,{actInsideInputWithModifier:!1}),me=Oq(H);Zs(F,re=>{re&&(R(C.value),O(A.value),E.value=!1)}),Zs(me,re=>{G.value=re});function ye(re,Te){return ct=>{ct.target===Te&&(re==null||re(ct))}}function we(){d.value=!1,v.value=null,pe.value=0,Le.value=0}function Be(re){if(be){be=!1;return}u.paneClick(re),h(),E.value=!1}function He(re){var Te;if(Array.isArray(w.value)&&((Te=w.value)!=null&&Te.includes(2))){re.preventDefault();return}u.paneContextMenu(re)}function Ue(re){u.paneScroll(re)}function Ge(re){var Te,ct,at,Ye,mt;if(Ee.value=(Te=r.value)==null?void 0:Te.getBoundingClientRect(),!y.value||!n.isSelecting||re.button!==0||re.target!==te.value||!Ee.value)return;(at=(ct=re.target)==null?void 0:ct.setPointerCapture)==null||at.call(ct,re.pointerId);const{x:jt,y:rn}=pLr(re,Ee.value);ae=!0,be=!1,le.value=new Map;for(const[Pe,Oe]of j.value)le.value.set(Oe.source,((Ye=le.value.get(Oe.source))==null?void 0:Ye.add(Pe))||new Set([Pe])),le.value.set(Oe.target,((mt=le.value.get(Oe.target))==null?void 0:mt.add(Pe))||new Set([Pe]));h(),v.value={width:0,height:0,startX:jt,startY:rn,x:jt,y:rn},u.selectionStart(re)}function Me(re){if(!Ee.value||!v.value)return;be=!0;const{x:Te,y:ct}=zR(re,Ee.value),{startX:at=0,startY:Ye=0}=v.value,mt={startX:at,startY:Ye,x:Te0&&(E.value=!0),we(),u.selectionEnd(re),n.selectionKeyPressed&&(be=!1),ae=!1)}return(re,Te)=>(ze(),Lt("div",{ref_key:"container",ref:te,class:Lo(["vue-flow__pane vue-flow__container",{selection:re.isSelecting}]),onClick:Te[0]||(Te[0]=ct=>xe.value?void 0:ye(Be,te.value)(ct)),onContextmenu:Te[1]||(Te[1]=ct=>ye(He,te.value)(ct)),onWheelPassive:Te[2]||(Te[2]=ct=>ye(Ue,te.value)(ct)),onPointerenter:Te[3]||(Te[3]=ct=>xe.value?void 0:Wr(u).paneMouseEnter(ct)),onPointerdown:Te[4]||(Te[4]=ct=>xe.value?Ge(ct):Wr(u).paneMouseMove(ct)),onPointermove:Te[5]||(Te[5]=ct=>xe.value?Me(ct):Wr(u).paneMouseMove(ct)),onPointerup:Te[6]||(Te[6]=ct=>xe.value?vt(ct):void 0),onPointerleave:Te[7]||(Te[7]=ct=>Wr(u).paneMouseLeave(ct))},[Vr(re.$slots,"default"),Wr(d)&&Wr(v)?(ze(),Nn(uLr,{key:0,"user-selection-rect":Wr(v)},null,8,["user-selection-rect"])):fr("",!0),Wr(E)&&Wr(C).length?(ze(),Nn(hLr,{key:1})):fr("",!0)],34))}}),wLr={name:"Transform",compatConfig:{MODE:3}},mLr=Ka({...wLr,setup(n){const{viewport:r,fitViewOnInit:o,fitViewOnInitDone:l}=hu(),u=To(()=>o.value?!l.value:!1),d=To(()=>`translate(${r.value.x}px,${r.value.y}px) scale(${r.value.zoom})`);return(h,w)=>(ze(),Lt("div",{class:"vue-flow__transformationpane vue-flow__container",style:Vb({transform:d.value,opacity:u.value?0:void 0})},[Vr(h.$slots,"default")],4))}}),yLr={name:"Viewport",compatConfig:{MODE:3}},vLr=Ka({...yLr,setup(n){const{minZoom:r,maxZoom:o,defaultViewport:l,translateExtent:u,zoomActivationKeyCode:d,selectionKeyCode:h,panActivationKeyCode:w,panOnScroll:v,panOnScrollMode:y,panOnScrollSpeed:E,panOnDrag:A,zoomOnDoubleClick:C,zoomOnPinch:R,zoomOnScroll:O,preventScrolling:M,noWheelClassName:L,noPanClassName:H,emits:G,connectionStartHandle:j,userSelectionActive:Q,paneDragging:te,d3Zoom:pe,d3Selection:Le,d3ZoomHandler:Ee,viewport:le,viewportRef:xe,paneClickDistance:be}=hu();aLr(xe);const ae=Fo(!1),F=Fo(!1);let me=null,ye=!1,we=0,Be={x:0,y:0,zoom:0};const He=Oq(w),Ue=Oq(h),Ge=Oq(d),Me=bf(()=>(!Ue.value||Ue.value&&h.value===!0)&&(He.value||A.value)),vt=bf(()=>He.value||v.value),re=bf(()=>Ue.value||h.value===!0&&Me.value!==!0);sm(()=>{if(!xe.value){g1e("Viewport element is missing");return}const jt=xe.value,rn=jt.getBoundingClientRect(),Pe=z9r().clickDistance(be.value).scaleExtent([r.value,o.value]).translateExtent(u.value),Oe=yS(jt).call(Pe),T=Oe.on("wheel.zoom"),$=ZL.translate(l.value.x??0,l.value.y??0).scale(BP(l.value.zoom??1,r.value,o.value)),B=[[0,0],[rn.width,rn.height]],K=Pe.constrain()($,B,u.value);Pe.transform(Oe,K),Pe.wheelDelta(ct),pe.value=Pe,Le.value=Oe,Ee.value=T,le.value={x:K.x,y:K.y,zoom:K.k},Pe.on("start",q=>{var ke;if(!q.sourceEvent)return null;we=q.sourceEvent.button,ae.value=!0;const Re=Ye(q.transform);((ke=q.sourceEvent)==null?void 0:ke.type)==="mousedown"&&(te.value=!0),Be=Re,G.viewportChangeStart(Re),G.moveStart({event:q,flowTransform:Re})}),Pe.on("end",q=>{if(!q.sourceEvent)return null;if(ae.value=!1,te.value=!1,Te(Me.value,we??0)&&!ye&&G.paneContextMenu(q.sourceEvent),ye=!1,at(Be,q.transform)){const ke=Ye(q.transform);Be=ke,G.viewportChangeEnd(ke),G.moveEnd({event:q,flowTransform:ke})}}),Pe.filter(q=>{var ke,Re,Ie;const St=Ge.value||O.value,he=R.value&&q.ctrlKey,zt=q.button;if((Me.value===!0||Array.isArray(Me.value)&&Me.value.includes(1))&&zt===1&&q.type==="mousedown"&&((ke=q.target)!=null&&ke.closest(".vue-flow__node")||(Re=q.target)!=null&&Re.closest(".vue-flow__edge")))return!0;if(!Me.value&&!St&&!vt.value&&!C.value&&!R.value||Q.value||!C.value&&q.type==="dblclick"||mt(q,L.value)&&q.type==="wheel"||mt(q,H.value)&&(q.type!=="wheel"||vt.value&&q.type==="wheel"&&!Ge.value)||!R.value&&q.ctrlKey&&q.type==="wheel"||!St&&!vt.value&&!he&&q.type==="wheel")return!1;if(!R&&q.type==="touchstart"&&((Ie=q.touches)==null?void 0:Ie.length)>1)return q.preventDefault(),!1;if(!Me.value&&(q.type==="mousedown"||q.type==="touchstart")||h.value===!0&&Array.isArray(A.value)&&A.value.includes(0)&&zt===0||Array.isArray(Me.value)&&!Me.value.includes(zt)&&(q.type==="mousedown"||q.type==="touchstart"))return!1;const Qt=Array.isArray(Me.value)&&Me.value.includes(zt)||h.value===!0&&Array.isArray(Me.value)&&!Me.value.includes(0)||!zt||zt<=1;return(!q.ctrlKey||q.type==="wheel")&&Qt}),Zs([Q,Me],()=>{Q.value&&!ae.value?Pe.on("zoom",null):Q.value||Pe.on("zoom",q=>{le.value={x:q.transform.x,y:q.transform.y,zoom:q.transform.k};const ke=Ye(q.transform);ye=Te(Me.value,we??0),G.viewportChange(ke),G.move({event:q,flowTransform:ke})})},{immediate:!0}),Zs([Q,vt,y,Ge,R,M,L],()=>{vt.value&&!Ge.value&&!Q.value?Oe.on("wheel.zoom",q=>{if(mt(q,L.value))return!1;const ke=Ge.value||O.value,Re=R.value&&q.ctrlKey;if(!(!M.value||vt.value||ke||Re))return!1;q.preventDefault(),q.stopImmediatePropagation();const St=Oe.property("__zoom").k||1,he=Bhe();if(q.ctrlKey&&R.value&&he){const $e=OE(q),ce=ct(q),de=St*2**ce;Pe.scaleTo(Oe,de,$e,q);return}const zt=q.deltaMode===1?20:1;let Qt=y.value===Pq.Vertical?0:q.deltaX*zt,$n=y.value===Pq.Horizontal?0:q.deltaY*zt;!he&&q.shiftKey&&y.value!==Pq.Vertical&&!Qt&&$n&&(Qt=$n,$n=0),Pe.translateBy(Oe,-(Qt/St)*E.value,-($n/St)*E.value);const Gn=Ye(Oe.property("__zoom"));me&&clearTimeout(me),F.value?(G.move({event:q,flowTransform:Gn}),G.viewportChange(Gn),me=setTimeout(()=>{G.moveEnd({event:q,flowTransform:Gn}),G.viewportChangeEnd(Gn),F.value=!1},150)):(F.value=!0,G.moveStart({event:q,flowTransform:Gn}),G.viewportChangeStart(Gn))},{passive:!1}):typeof T<"u"&&Oe.on("wheel.zoom",function(q,ke){const Re=!M.value&&q.type==="wheel"&&!q.ctrlKey,Ie=Ge.value||O.value,St=R.value&&q.ctrlKey;if(!Ie&&!v.value&&!St&&q.type==="wheel"||Re||mt(q,L.value))return null;q.preventDefault(),T.call(this,q,ke)},{passive:!1})},{immediate:!0})});function Te(jt,rn){return rn===2&&Array.isArray(jt)&&jt.includes(2)}function ct(jt){const rn=jt.ctrlKey&&Bhe()?10:1;return-jt.deltaY*(jt.deltaMode===1?.05:jt.deltaMode?1:.002)*rn}function at(jt,rn){return jt.x!==rn.x&&!Number.isNaN(rn.x)||jt.y!==rn.y&&!Number.isNaN(rn.y)||jt.zoom!==rn.k&&!Number.isNaN(rn.k)}function Ye(jt){return{x:jt.x,y:jt.y,zoom:jt.k}}function mt(jt,rn){return jt.target.closest(`.${rn}`)}return(jt,rn)=>(ze(),Lt("div",{ref_key:"viewportRef",ref:xe,class:"vue-flow__viewport vue-flow__container"},[bi(gLr,{"is-selecting":re.value,"selection-key-pressed":Wr(Ue),class:Lo({connecting:!!Wr(j),dragging:Wr(te),draggable:Wr(A)===!0||Array.isArray(Wr(A))&&Wr(A).includes(0)})},{default:vi(()=>[bi(mLr,null,{default:vi(()=>[Vr(jt.$slots,"default")]),_:3})]),_:3},8,["is-selecting","selection-key-pressed","class"])],512))}}),_Lr=["id"],SLr=["id"],ELr=["id"],kLr={name:"A11yDescriptions",compatConfig:{MODE:3}},RLr=Ka({...kLr,setup(n){const{id:r,disableKeyboardA11y:o,ariaLiveMessage:l}=hu();return(u,d)=>(ze(),Lt(gi,null,[mr("div",{id:`${Wr(vdn)}-${Wr(r)}`,style:{display:"none"}}," Press enter or space to select a node. "+na(Wr(o)?"":"You can then use the arrow keys to move the node around.")+" You can then use the arrow keys to move the node around, press delete to remove it and press escape to cancel. ",9,_Lr),mr("div",{id:`${Wr(_dn)}-${Wr(r)}`,style:{display:"none"}}," Press enter or space to select an edge. You can then press delete to remove it or press escape to cancel. ",8,SLr),Wr(o)?fr("",!0):(ze(),Lt("div",{key:0,id:`${Wr(J9r)}-${Wr(r)}`,"aria-live":"assertive","aria-atomic":"true",style:{position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)","clip-path":"inset(100%)"}},na(Wr(l)),9,ELr))],64))}});function xLr(){const n=hu();Zs(()=>n.viewportHelper.value.viewportInitialized,r=>{r&&setTimeout(()=>{n.emits.init(n),n.emits.paneReady(n)},1)})}function CLr(n,r,o){return o===$i.Left?n-r:o===$i.Right?n+r:n}function ALr(n,r,o){return o===$i.Top?n-r:o===$i.Bottom?n+r:n}const $Ve=function({radius:n=10,centerX:r=0,centerY:o=0,position:l=$i.Top,type:u}){return sc("circle",{class:`vue-flow__edgeupdater vue-flow__edgeupdater-${u}`,cx:CLr(r,n,l),cy:ALr(o,n,l),r:n,stroke:"transparent",fill:"transparent"})};$Ve.props=["radius","centerX","centerY","position","type"];$Ve.compatConfig={MODE:3};const FJt=$Ve,TLr=Ka({name:"Edge",compatConfig:{MODE:3},props:["id"],setup(n){const{id:r,addSelectedEdges:o,connectionMode:l,edgeUpdaterRadius:u,emits:d,nodesSelectionActive:h,noPanClassName:w,getEdgeTypes:v,removeSelectedEdges:y,findEdge:E,findNode:A,isValidConnection:C,multiSelectionActive:R,disableKeyboardA11y:O,elementsSelectable:M,edgesUpdatable:L,edgesFocusable:H,hooks:G}=hu(),j=To(()=>E(n.id)),{emit:Q,on:te}=_Dr(j.value,d),pe=BE(w1e),Le=NT(),Ee=Fo(!1),le=Fo(!1),xe=Fo(""),be=Fo(null),ae=Fo("source"),F=Fo(null),me=bf(()=>typeof j.value.selectable>"u"?M.value:j.value.selectable),ye=bf(()=>typeof j.value.updatable>"u"?L.value:j.value.updatable),we=bf(()=>typeof j.value.focusable>"u"?H.value:j.value.focusable);vP(mDr,n.id),vP(yDr,F);const Be=To(()=>j.value.class instanceof Function?j.value.class(j.value):j.value.class),He=To(()=>j.value.style instanceof Function?j.value.style(j.value):j.value.style),Ue=To(()=>{const B=j.value.type||"default",K=pe==null?void 0:pe[`edge-${B}`];if(K)return K;let q=j.value.template??v.value[B];if(typeof q=="string"&&Le){const ke=Object.keys(Le.appContext.components);ke&&ke.includes(B)&&(q=Ni(B,!1))}return q&&typeof q!="string"?q:(d.error(new Ch(Vd.EDGE_TYPE_MISSING,q)),!1)}),{handlePointerDown:Ge}=Wdn({nodeId:xe,handleId:be,type:ae,isValidConnection:C,edgeUpdaterType:ae,onEdgeUpdate:re,onEdgeUpdateEnd:Te});return()=>{const B=A(j.value.source),K=A(j.value.target),q="pathOptions"in j.value?j.value.pathOptions:{};if(!B&&!K)return d.error(new Ch(Vd.EDGE_SOURCE_TARGET_MISSING,j.value.id,j.value.source,j.value.target)),null;if(!B)return d.error(new Ch(Vd.EDGE_SOURCE_MISSING,j.value.id,j.value.source)),null;if(!K)return d.error(new Ch(Vd.EDGE_TARGET_MISSING,j.value.id,j.value.target)),null;if(!j.value||j.value.hidden||B.hidden||K.hidden)return null;let ke;l.value===FP.Strict?ke=B.handleBounds.source:ke=[...B.handleBounds.source||[],...B.handleBounds.target||[]];const Re=xJt(ke,j.value.sourceHandle);let Ie;l.value===FP.Strict?Ie=K.handleBounds.target:Ie=[...K.handleBounds.target||[],...K.handleBounds.source||[]];const St=xJt(Ie,j.value.targetHandle),he=(Re==null?void 0:Re.position)||$i.Bottom,zt=(St==null?void 0:St.position)||$i.Top,{x:Qt,y:$n}=Fhe(B,Re,he),{x:Gn,y:$e}=Fhe(K,St,zt);return j.value.sourceX=Qt,j.value.sourceY=$n,j.value.targetX=Gn,j.value.targetY=$e,sc("g",{ref:F,key:n.id,"data-id":n.id,class:["vue-flow__edge",`vue-flow__edge-${Ue.value===!1?"default":j.value.type||"default"}`,w.value,Be.value,{updating:Ee.value,selected:j.value.selected,animated:j.value.animated,inactive:!me.value&&!G.value.edgeClick.hasListeners()}],onClick:at,onContextmenu:Ye,onDblclick:mt,onMouseenter:jt,onMousemove:rn,onMouseleave:Pe,onKeyDown:we.value?$:void 0,tabIndex:we.value?0:void 0,"aria-label":j.value.ariaLabel===null?void 0:j.value.ariaLabel||`Edge from ${j.value.source} to ${j.value.target}`,"aria-describedby":we.value?`${_dn}-${r}`:void 0,role:we.value?"button":"img"},[le.value?null:sc(Ue.value===!1?v.value.default:Ue.value,{id:n.id,sourceNode:B,targetNode:K,source:j.value.source,target:j.value.target,type:j.value.type,updatable:ye.value,selected:j.value.selected,animated:j.value.animated,label:j.value.label,labelStyle:j.value.labelStyle,labelShowBg:j.value.labelShowBg,labelBgStyle:j.value.labelBgStyle,labelBgPadding:j.value.labelBgPadding,labelBgBorderRadius:j.value.labelBgBorderRadius,data:j.value.data,events:{...j.value.events,...te},style:He.value,markerStart:`url('#${IX(j.value.markerStart,r)}')`,markerEnd:`url('#${IX(j.value.markerEnd,r)}')`,sourcePosition:he,targetPosition:zt,sourceX:Qt,sourceY:$n,targetX:Gn,targetY:$e,sourceHandleId:j.value.sourceHandle,targetHandleId:j.value.targetHandle,interactionWidth:j.value.interactionWidth,...q}),[ye.value==="source"||ye.value===!0?[sc("g",{onMousedown:Oe,onMouseenter:Me,onMouseout:vt},sc(FJt,{position:he,centerX:Qt,centerY:$n,radius:u.value,type:"source","data-type":"source"}))]:null,ye.value==="target"||ye.value===!0?[sc("g",{onMousedown:T,onMouseenter:Me,onMouseout:vt},sc(FJt,{position:zt,centerX:Gn,centerY:$e,radius:u.value,type:"target","data-type":"target"}))]:null]])};function Me(){Ee.value=!0}function vt(){Ee.value=!1}function re(B,K){Q.update({event:B,edge:j.value,connection:K})}function Te(B){Q.updateEnd({event:B,edge:j.value}),le.value=!1}function ct(B,K){B.button===0&&(le.value=!0,xe.value=K?j.value.target:j.value.source,be.value=(K?j.value.targetHandle:j.value.sourceHandle)??"",ae.value=K?"target":"source",Q.updateStart({event:B,edge:j.value}),Ge(B))}function at(B){var K;const q={event:B,edge:j.value};me.value&&(h.value=!1,j.value.selected&&R.value?(y([j.value]),(K=F.value)==null||K.blur()):o([j.value])),Q.click(q)}function Ye(B){Q.contextMenu({event:B,edge:j.value})}function mt(B){Q.doubleClick({event:B,edge:j.value})}function jt(B){Q.mouseEnter({event:B,edge:j.value})}function rn(B){Q.mouseMove({event:B,edge:j.value})}function Pe(B){Q.mouseLeave({event:B,edge:j.value})}function Oe(B){ct(B,!0)}function T(B){ct(B,!1)}function $(B){var K;!O.value&&Sdn.includes(B.key)&&me.value&&(B.key==="Escape"?((K=F.value)==null||K.blur(),y([E(n.id)])):o([E(n.id)]))}}}),$Lr=TLr,ILr={[$i.Left]:$i.Right,[$i.Right]:$i.Left,[$i.Top]:$i.Bottom,[$i.Bottom]:$i.Top},PLr=Ka({name:"ConnectionLine",compatConfig:{MODE:3},setup(){var n;const{id:r,connectionMode:o,connectionStartHandle:l,connectionEndHandle:u,connectionPosition:d,connectionLineType:h,connectionLineStyle:w,connectionLineOptions:v,connectionStatus:y,viewport:E,findNode:A}=hu(),C=(n=BE(w1e))==null?void 0:n["connection-line"],R=To(()=>{var G;return A((G=l.value)==null?void 0:G.nodeId)}),O=To(()=>{var G;return A((G=u.value)==null?void 0:G.nodeId)??null}),M=To(()=>({x:(d.value.x-E.value.x)/E.value.zoom,y:(d.value.y-E.value.y)/E.value.zoom})),L=To(()=>v.value.markerStart?`url(#${IX(v.value.markerStart,r)})`:""),H=To(()=>v.value.markerEnd?`url(#${IX(v.value.markerEnd,r)})`:"");return()=>{var G,j,Q,te;if(!R.value||!l.value)return null;const pe=l.value.handleId,Le=l.value.type,Ee=R.value.handleBounds;let le=(Ee==null?void 0:Ee[Le])||[];if(o.value===FP.Loose){const Ue=(Ee==null?void 0:Ee[Le==="source"?"target":"source"])||[];le=[...le,...Ue]}if(!le)return null;const xe=(pe?le.find(Ue=>Ue.id===pe):le[0])??null,be=(xe==null?void 0:xe.position)||$i.Top,{x:ae,y:F}=Fhe(R.value,xe,be);let me=null;O.value&&((G=u.value)!=null&&G.handleId)&&(o.value===FP.Strict?me=((j=O.value.handleBounds[Le==="source"?"target":"source"])==null?void 0:j.find(Ue=>{var Ge;return Ue.id===((Ge=u.value)==null?void 0:Ge.handleId)}))||null:me=((Q=[...O.value.handleBounds.source||[],...O.value.handleBounds.target||[]])==null?void 0:Q.find(Ue=>{var Ge;return Ue.id===((Ge=u.value)==null?void 0:Ge.handleId)}))||null);const ye=((te=u.value)==null?void 0:te.position)??(be?ILr[be]:null);if(!be||!ye)return null;const we=h.value??v.value.type??F8.Bezier;let Be="";const He={sourceX:ae,sourceY:F,sourcePosition:be,targetX:M.value.x,targetY:M.value.y,targetPosition:ye};return we===F8.Bezier?[Be]=TVe(He):we===F8.Step?[Be]=nWe({...He,borderRadius:0}):we===F8.SmoothStep?[Be]=nWe(He):we===F8.SimpleBezier?[Be]=Kdn(He):Be=`M${ae},${F} ${M.value.x},${M.value.y}`,sc("svg",{class:"vue-flow__edges vue-flow__connectionline vue-flow__container"},sc("g",{class:"vue-flow__connection"},C?sc(C,{sourceX:ae,sourceY:F,sourcePosition:be,targetX:M.value.x,targetY:M.value.y,targetPosition:ye,sourceNode:R.value,sourceHandle:xe,targetNode:O.value,targetHandle:me,markerEnd:H.value,markerStart:L.value,connectionStatus:y.value}):sc("path",{d:Be,class:[v.value.class,y,"vue-flow__connection-path"],style:{...w.value,...v.value.style},"marker-end":H.value,"marker-start":L.value})))}}}),OLr=PLr,NLr=["id","markerWidth","markerHeight","markerUnits","orient"],MLr={name:"MarkerType",compatConfig:{MODE:3}},DLr=Ka({...MLr,props:{id:{},type:{},color:{default:"none"},width:{default:12.5},height:{default:12.5},markerUnits:{default:"strokeWidth"},orient:{default:"auto-start-reverse"},strokeWidth:{default:1}},setup(n){return(r,o)=>(ze(),Lt("marker",{id:r.id,class:"vue-flow__arrowhead",viewBox:"-10 -10 20 20",refX:"0",refY:"0",markerWidth:`${r.width}`,markerHeight:`${r.height}`,markerUnits:r.markerUnits,orient:r.orient},[r.type===Wr(jhe).ArrowClosed?(ze(),Lt("polyline",{key:0,style:Vb({stroke:r.color,fill:r.color,strokeWidth:r.strokeWidth}),"stroke-linecap":"round","stroke-linejoin":"round",points:"-5,-4 0,0 -5,4 -5,-4"},null,4)):fr("",!0),r.type===Wr(jhe).Arrow?(ze(),Lt("polyline",{key:1,style:Vb({stroke:r.color,strokeWidth:r.strokeWidth}),"stroke-linecap":"round","stroke-linejoin":"round",fill:"none",points:"-5,-4 0,0 -5,4"},null,4)):fr("",!0)],8,NLr))}}),LLr={class:"vue-flow__marker vue-flow__container"},jLr={name:"MarkerDefinitions",compatConfig:{MODE:3}},FLr=Ka({...jLr,setup(n){const{id:r,edges:o,connectionLineOptions:l,defaultMarkerColor:u}=hu(),d=To(()=>{const h=new Set,w=[],v=y=>{if(y){const E=IX(y,r);h.has(E)||(typeof y=="object"?w.push({...y,id:E,color:y.color||u.value}):w.push({id:E,color:u.value,type:y}),h.add(E))}};for(const y of[l.value.markerEnd,l.value.markerStart])v(y);for(const y of o.value)for(const E of[y.markerStart,y.markerEnd])v(E);return w.sort((y,E)=>y.id.localeCompare(E.id))});return(h,w)=>(ze(),Lt("svg",LLr,[mr("defs",null,[(ze(!0),Lt(gi,null,uu(d.value,v=>(ze(),Nn(DLr,{id:v.id,key:v.id,type:v.type,color:v.color,width:v.width,height:v.height,markerUnits:v.markerUnits,"stroke-width":v.strokeWidth,orient:v.orient},null,8,["id","type","color","width","height","markerUnits","stroke-width","orient"]))),128))])]))}}),BLr={name:"Edges",compatConfig:{MODE:3}},WLr=Ka({...BLr,setup(n){const{findNode:r,getEdges:o,elevateEdgesOnSelect:l}=hu();return(u,d)=>(ze(),Lt(gi,null,[bi(FLr),(ze(!0),Lt(gi,null,uu(Wr(o),h=>(ze(),Lt("svg",{key:h.id,class:"vue-flow__edges vue-flow__container",style:Vb({zIndex:Wr(uDr)(h,Wr(r),Wr(l))})},[bi(Wr($Lr),{id:h.id},null,8,["id"])],4))),128)),bi(Wr(OLr))],64))}}),HLr=Ka({name:"Node",compatConfig:{MODE:3},props:["id","resizeObserver"],setup(n){const{id:r,noPanClassName:o,selectNodesOnDrag:l,nodesSelectionActive:u,multiSelectionActive:d,emits:h,removeSelectedNodes:w,addSelectedNodes:v,updateNodeDimensions:y,onUpdateNodeInternals:E,getNodeTypes:A,nodeExtent:C,elevateNodesOnSelect:R,disableKeyboardA11y:O,ariaLiveMessage:M,snapToGrid:L,snapGrid:H,nodeDragThreshold:G,nodesDraggable:j,elementsSelectable:Q,nodesConnectable:te,nodesFocusable:pe,hooks:Le}=hu(),Ee=Fo(null);vP(Fdn,Ee),vP(jdn,n.id);const le=BE(w1e),xe=NT(),be=Udn(),{node:ae,parentNode:F}=Hdn(n.id),{emit:me,on:ye}=RDr(ae,h),we=bf(()=>typeof ae.draggable>"u"?j.value:ae.draggable),Be=bf(()=>typeof ae.selectable>"u"?Q.value:ae.selectable),He=bf(()=>typeof ae.connectable>"u"?te.value:ae.connectable),Ue=bf(()=>typeof ae.focusable>"u"?pe.value:ae.focusable),Ge=bf(()=>Be.value||we.value||Le.value.nodeClick.hasListeners()||Le.value.nodeDoubleClick.hasListeners()||Le.value.nodeMouseEnter.hasListeners()||Le.value.nodeMouseMove.hasListeners()||Le.value.nodeMouseLeave.hasListeners()),Me=bf(()=>!!ae.dimensions.width&&!!ae.dimensions.height),vt=To(()=>{const K=ae.type||"default",q=le==null?void 0:le[`node-${K}`];if(q)return q;let ke=ae.template||A.value[K];if(typeof ke=="string"&&xe){const Re=Object.keys(xe.appContext.components);Re&&Re.includes(K)&&(ke=Ni(K,!1))}return ke&&typeof ke!="string"?ke:(h.error(new Ch(Vd.NODE_TYPE_MISSING,ke)),!1)}),re=Bdn({id:n.id,el:Ee,disabled:()=>!we.value,selectable:Be,dragHandle:()=>ae.dragHandle,onStart(K){me.dragStart(K)},onDrag(K){me.drag(K)},onStop(K){me.dragStop(K)},onClick(K){$(K)}}),Te=To(()=>ae.class instanceof Function?ae.class(ae):ae.class),ct=To(()=>{const K=(ae.style instanceof Function?ae.style(ae):ae.style)||{},q=ae.width instanceof Function?ae.width(ae):ae.width,ke=ae.height instanceof Function?ae.height(ae):ae.height;return!K.width&&q&&(K.width=typeof q=="string"?q:`${q}px`),!K.height&&ke&&(K.height=typeof ke=="string"?ke:`${ke}px`),K}),at=bf(()=>Number(ae.zIndex??ct.value.zIndex??0));return E(K=>{(K.includes(n.id)||!K.length)&&mt()}),sm(()=>{Zs(()=>ae.hidden,(K=!1,q,ke)=>{!K&&Ee.value&&(n.resizeObserver.observe(Ee.value),ke(()=>{Ee.value&&n.resizeObserver.unobserve(Ee.value)}))},{immediate:!0,flush:"post"})}),Zs([()=>ae.type,()=>ae.sourcePosition,()=>ae.targetPosition],()=>{RS(()=>{y([{id:n.id,nodeElement:Ee.value,forceUpdate:!0}])})}),Zs([()=>ae.position.x,()=>ae.position.y,()=>{var K;return(K=F.value)==null?void 0:K.computedPosition.x},()=>{var K;return(K=F.value)==null?void 0:K.computedPosition.y},()=>{var K;return(K=F.value)==null?void 0:K.computedPosition.z},at,()=>ae.selected,()=>ae.dimensions.height,()=>ae.dimensions.width,()=>{var K;return(K=F.value)==null?void 0:K.dimensions.height},()=>{var K;return(K=F.value)==null?void 0:K.dimensions.width}],([K,q,ke,Re,Ie,St])=>{const he={x:K,y:q,z:St+(R.value&&ae.selected?1e3:0)};typeof ke<"u"&&typeof Re<"u"?ae.computedPosition=iDr({x:ke,y:Re,z:Ie},he):ae.computedPosition=he},{flush:"post",immediate:!0}),Zs([()=>ae.extent,C],([K,q],[ke,Re])=>{(K!==ke||q!==Re)&&Ye()}),ae.extent==="parent"||typeof ae.extent=="object"&&"range"in ae.extent&&ae.extent.range==="parent"?UBe(()=>Me).toBe(!0).then(Ye):Ye(),()=>ae.hidden?null:sc("div",{ref:Ee,"data-id":ae.id,class:["vue-flow__node",`vue-flow__node-${vt.value===!1?"default":ae.type||"default"}`,{[o.value]:we.value,dragging:re==null?void 0:re.value,draggable:we.value,selected:ae.selected,selectable:Be.value,parent:ae.isParent},Te.value],style:{visibility:Me.value?"visible":"hidden",zIndex:ae.computedPosition.z??at.value,transform:`translate(${ae.computedPosition.x}px,${ae.computedPosition.y}px)`,pointerEvents:Ge.value?"all":"none",...ct.value},tabIndex:Ue.value?0:void 0,role:Ue.value?"button":void 0,"aria-describedby":O.value?void 0:`${vdn}-${r}`,"aria-label":ae.ariaLabel,onMouseenter:jt,onMousemove:rn,onMouseleave:Pe,onContextmenu:Oe,onClick:$,onDblclick:T,onKeydown:B},[sc(vt.value===!1?A.value.default:vt.value,{id:ae.id,type:ae.type,data:ae.data,events:{...ae.events,...ye},selected:ae.selected,resizing:ae.resizing,dragging:re.value,connectable:He.value,position:ae.computedPosition,dimensions:ae.dimensions,isValidTargetPos:ae.isValidTargetPos,isValidSourcePos:ae.isValidSourcePos,parent:ae.parentNode,parentNodeId:ae.parentNode,zIndex:ae.computedPosition.z??at.value,targetPosition:ae.targetPosition,sourcePosition:ae.sourcePosition,label:ae.label,dragHandle:ae.dragHandle,onUpdateNodeInternals:mt})]);function Ye(){const K=ae.computedPosition,{computedPosition:q,position:ke}=xVe(ae,L.value?b1e(K,H.value):K,h.error,C.value,F.value);(ae.computedPosition.x!==q.x||ae.computedPosition.y!==q.y)&&(ae.computedPosition={...ae.computedPosition,...q}),(ae.position.x!==ke.x||ae.position.y!==ke.y)&&(ae.position=ke)}function mt(){Ee.value&&y([{id:n.id,nodeElement:Ee.value,forceUpdate:!0}])}function jt(K){re!=null&&re.value||me.mouseEnter({event:K,node:ae})}function rn(K){re!=null&&re.value||me.mouseMove({event:K,node:ae})}function Pe(K){re!=null&&re.value||me.mouseLeave({event:K,node:ae})}function Oe(K){return me.contextMenu({event:K,node:ae})}function T(K){return me.doubleClick({event:K,node:ae})}function $(K){Be.value&&(!l.value||!we.value||G.value>0)&&tWe(ae,d.value,v,w,u,!1,Ee.value),me.click({event:K,node:ae})}function B(K){if(!(QBe(K)||O.value))if(Sdn.includes(K.key)&&Be.value){const q=K.key==="Escape";tWe(ae,d.value,v,w,u,q,Ee.value)}else we.value&&ae.selected&&_L[K.key]&&(M.value=`Moved selected node ${K.key.replace("Arrow","").toLowerCase()}. New position, x: ${~~ae.position.x}, y: ${~~ae.position.y}`,be({x:_L[K.key].x,y:_L[K.key].y},K.shiftKey))}}}),ULr=HLr;function GLr(n={includeHiddenNodes:!1}){const{nodes:r}=hu();return To(()=>{if(r.value.length===0)return!1;for(const o of r.value)if((n.includeHiddenNodes||!o.hidden)&&((o==null?void 0:o.handleBounds)===void 0||o.dimensions.width===0||o.dimensions.height===0))return!1;return!0})}const VLr={class:"vue-flow__nodes vue-flow__container"},zLr={name:"Nodes",compatConfig:{MODE:3}},KLr=Ka({...zLr,setup(n){const{getNodes:r,updateNodeDimensions:o,emits:l}=hu(),u=GLr(),d=Fo();return Zs(u,h=>{h&&RS(()=>{l.nodesInitialized(r.value)})},{immediate:!0}),sm(()=>{d.value=new ResizeObserver(h=>{const w=h.map(v=>({id:v.target.getAttribute("data-id"),nodeElement:v.target,forceUpdate:!0}));RS(()=>o(w))})}),Qhe(()=>{var h;return(h=d.value)==null?void 0:h.disconnect()}),(h,w)=>(ze(),Lt("div",VLr,[d.value?(ze(!0),Lt(gi,{key:0},uu(Wr(r),(v,y,E,A)=>{const C=[v.id];if(A&&A.key===v.id&&$Wn(A,C))return A;const R=(ze(),Nn(Wr(ULr),{id:v.id,key:v.id,"resize-observer":d.value},null,8,["id","resize-observer"]));return R.memo=C,R},w,0),128)):fr("",!0)]))}});function qLr(){const{emits:n}=hu();sm(()=>{if(Ldn()){const r=document.querySelector(".vue-flow__pane");r&&window.getComputedStyle(r).zIndex!=="1"&&n.error(new Ch(Vd.MISSING_STYLES))}})}const XLr=mr("div",{class:"vue-flow__edge-labels"},null,-1),JLr={name:"VueFlow",compatConfig:{MODE:3}},YLr=Ka({...JLr,props:{id:{},modelValue:{},nodes:{},edges:{},edgeTypes:{},nodeTypes:{},connectionMode:{},connectionLineType:{},connectionLineStyle:{default:void 0},connectionLineOptions:{default:void 0},connectionRadius:{},isValidConnection:{type:[Function,null],default:void 0},deleteKeyCode:{default:void 0},selectionKeyCode:{type:[Boolean,null],default:void 0},multiSelectionKeyCode:{default:void 0},zoomActivationKeyCode:{default:void 0},panActivationKeyCode:{default:void 0},snapToGrid:{type:Boolean,default:void 0},snapGrid:{},onlyRenderVisibleElements:{type:Boolean,default:void 0},edgesUpdatable:{type:[Boolean,String],default:void 0},nodesDraggable:{type:Boolean,default:void 0},nodesConnectable:{type:Boolean,default:void 0},nodeDragThreshold:{},elementsSelectable:{type:Boolean,default:void 0},selectNodesOnDrag:{type:Boolean,default:void 0},panOnDrag:{type:[Boolean,Array],default:void 0},minZoom:{},maxZoom:{},defaultViewport:{},translateExtent:{},nodeExtent:{},defaultMarkerColor:{},zoomOnScroll:{type:Boolean,default:void 0},zoomOnPinch:{type:Boolean,default:void 0},panOnScroll:{type:Boolean,default:void 0},panOnScrollSpeed:{},panOnScrollMode:{},paneClickDistance:{},zoomOnDoubleClick:{type:Boolean,default:void 0},preventScrolling:{type:Boolean,default:void 0},selectionMode:{},edgeUpdaterRadius:{},fitViewOnInit:{type:Boolean,default:void 0},connectOnClick:{type:Boolean,default:void 0},applyDefault:{type:Boolean,default:void 0},autoConnect:{type:[Boolean,Function],default:void 0},noDragClassName:{},noWheelClassName:{},noPanClassName:{},defaultEdgeOptions:{},elevateEdgesOnSelect:{type:Boolean,default:void 0},elevateNodesOnSelect:{type:Boolean,default:void 0},disableKeyboardA11y:{type:Boolean,default:void 0},edgesFocusable:{type:Boolean,default:void 0},nodesFocusable:{type:Boolean,default:void 0},autoPanOnConnect:{type:Boolean,default:void 0},autoPanOnNodeDrag:{type:Boolean,default:void 0},autoPanSpeed:{}},emits:["nodesChange","edgesChange","nodesInitialized","paneReady","init","updateNodeInternals","error","connect","connectStart","connectEnd","clickConnectStart","clickConnectEnd","moveStart","move","moveEnd","selectionDragStart","selectionDrag","selectionDragStop","selectionContextMenu","selectionStart","selectionEnd","viewportChangeStart","viewportChange","viewportChangeEnd","paneScroll","paneClick","paneContextMenu","paneMouseEnter","paneMouseMove","paneMouseLeave","edgeUpdate","edgeContextMenu","edgeMouseEnter","edgeMouseMove","edgeMouseLeave","edgeDoubleClick","edgeClick","edgeUpdateStart","edgeUpdateEnd","nodeContextMenu","nodeMouseEnter","nodeMouseMove","nodeMouseLeave","nodeDoubleClick","nodeClick","nodeDragStart","nodeDrag","nodeDragStop","miniMapNodeClick","miniMapNodeDoubleClick","miniMapNodeMouseEnter","miniMapNodeMouseMove","miniMapNodeMouseLeave","update:modelValue","update:nodes","update:edges"],setup(n,{expose:r,emit:o}){const l=n,u=VBn(),d=iLe(l,"modelValue",o),h=iLe(l,"nodes",o),w=iLe(l,"edges",o),v=hu(l),y=ADr({modelValue:d,nodes:h,edges:w},l,v);return $Dr(o,v.hooks),xLr(),qLr(),vP(w1e,u),Zhe(()=>{y()}),r(v),(E,A)=>(ze(),Lt("div",{ref:Wr(v).vueFlowRef,class:"vue-flow"},[bi(vLr,null,{default:vi(()=>[bi(WLr),XLr,bi(KLr),Vr(E.$slots,"zoom-pane")]),_:3}),Vr(E.$slots,"default"),bi(RLr)],512))}});function BJt(n,r){const{dimensions:{width:o,height:l},computedPosition:u}=n,d=r.computedPosition,h=o/2,w=l/2,v=u.x+h,y=u.y+w,E=d.x+h,A=d.y+w,C=(E-v)/(2*h)-(A-y)/(2*w),R=(E-v)/(2*h)+(A-y)/(2*w),O=1/(Math.abs(C)+Math.abs(R)),M=O*C,L=O*R,H=h*(M+L)+v,G=w*(-M+L)+y;return{x:H,y:G}}function WJt(n,r){const o={...n.computedPosition,...n.dimensions},l=Math.round(o.x),u=Math.round(o.y),d=Math.round(r.x),h=Math.round(r.y);return d<=l+1?$i.Left:d>=l+o.width-1?$i.Right:h<=u+1?$i.Top:h>=o.y+o.height-1?$i.Bottom:$i.Top}function QLr(n,r){const o=BJt(n,r),l=BJt(r,n),u=WJt(n,o),d=WJt(r,l);return{sx:o.x,sy:o.y,tx:l.x,ty:l.y,sourcePos:u,targetPos:d}}const ZLr=Ka({__name:"FloatingEdge",props:{id:{},source:{},target:{},markerEndId:{},sourceNode:{},targetNode:{},style:{},markerEnd:{},markerStart:{},type:{},label:{},selected:{type:Boolean},sourcePosition:{},targetPosition:{},sourceHandleId:{},targetHandleId:{},animated:{type:Boolean},updatable:{type:Boolean},curvature:{},interactionWidth:{},data:{},events:{},labelStyle:{},labelShowBg:{type:Boolean},labelBgStyle:{},labelBgPadding:{},labelBgBorderRadius:{},sourceX:{},sourceY:{},targetX:{},targetY:{}},setup(n){const r=n,o=To(()=>QLr(r.sourceNode,r.targetNode)),l=To(()=>{if(!o.value.sx)return"";const u=r.sourceX(ze(),Nn(Wr(GJ),{id:u.id,path:l.value[0],"marker-start":u.markerStart,"marker-end":u.markerEnd,style:Vb(u.style)},null,8,["id","path","marker-start","marker-end","style"]))}});function vfe(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Xdn={exports:{}};(function(n,r){(function(o){n.exports=o()})(function(){return function(){function o(l,u,d){function h(y,E){if(!u[y]){if(!l[y]){var A=typeof vfe=="function"&&vfe;if(!E&&A)return A(y,!0);if(w)return w(y,!0);var C=new Error("Cannot find module '"+y+"'");throw C.code="MODULE_NOT_FOUND",C}var R=u[y]={exports:{}};l[y][0].call(R.exports,function(O){var M=l[y][1][O];return h(M||O)},R,R.exports,o,l,u,d)}return u[y].exports}for(var w=typeof vfe=="function"&&vfe,v=0;v0&&arguments[0]!==void 0?arguments[0]:{},C=A.defaultLayoutOptions,R=C===void 0?{}:C,O=A.algorithms,M=O===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:O,L=A.workerFactory,H=A.workerUrl;if(h(this,y),this.defaultLayoutOptions=R,this.initialized=!1,typeof H>"u"&&typeof L>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var G=L;typeof H<"u"&&typeof L>"u"&&(G=function(te){return new Worker(te)});var j=G(H);if(typeof j.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new v(j),this.worker.postMessage({cmd:"register",algorithms:M}).then(function(Q){return E.initialized=!0}).catch(console.err)}return d(y,[{key:"layout",value:function(A){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},R=C.layoutOptions,O=R===void 0?this.defaultLayoutOptions:R,M=C.logging,L=M===void 0?!1:M,H=C.measureExecutionTime,G=H===void 0?!1:H;return A?this.worker.postMessage({cmd:"layout",graph:A,layoutOptions:O,options:{logging:L,measureExecutionTime:G}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker&&this.worker.terminate()}}]),y}();u.default=w;var v=function(){function y(E){var A=this;if(h(this,y),E===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=E,this.worker.onmessage=function(C){setTimeout(function(){A.receive(A,C)},0)}}return d(y,[{key:"postMessage",value:function(A){var C=this.id||0;this.id=C+1,A.id=C;var R=this;return new Promise(function(O,M){R.resolvers[C]=function(L,H){L?(R.convertGwtStyleError(L),M(L)):O(H)},R.worker.postMessage(A)})}},{key:"receive",value:function(A,C){var R=C.data,O=A.resolvers[R.id];O&&(delete A.resolvers[R.id],R.error?O(R.error):O(null,R.data))}},{key:"terminate",value:function(){this.worker&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(A){if(A){var C=A.__java$exception;C&&(C.cause&&C.cause.backingJsObject&&(A.cause=C.cause.backingJsObject,this.convertGwtStyleError(A.cause)),delete A.__java$exception)}}}]),y}()},{}],2:[function(o,l,u){(function(d){(function(){var h;typeof window<"u"?h=window:typeof d<"u"?h=d:typeof self<"u"&&(h=self);var w;function v(){}function y(){}function E(){}function A(){}function C(){}function R(){}function O(){}function M(){}function L(){}function H(){}function G(){}function j(){}function Q(){}function te(){}function pe(){}function Le(){}function Ee(){}function le(){}function xe(){}function be(){}function ae(){}function F(){}function me(){}function ye(){}function we(){}function Be(){}function He(){}function Ue(){}function Ge(){}function Me(){}function vt(){}function re(){}function Te(){}function ct(){}function at(){}function Ye(){}function mt(){}function jt(){}function rn(){}function Pe(){}function Oe(){}function T(){}function $(){}function B(){}function K(){}function q(){}function ke(){}function Re(){}function Ie(){}function St(){}function he(){}function zt(){}function Qt(){}function $n(){}function Gn(){}function $e(){}function ce(){}function de(){}function et(){}function ht(){}function Jt(){}function Zt(){}function qr(){}function ao(){}function ki(){}function Ri(){}function xi(){}function wl(){}function pu(){}function Al(){}function co(){}function Zc(){}function bu(){}function So(){}function ql(){}function S(){}function x(){}function Y(){}function J(){}function ue(){}function Yt(){}function An(){}function Ws(){}function Fr(){}function Hl(){}function Ec(){}function Rs(){}function ml(){}function gs(){}function as(){}function ws(){}function wi(){}function jr(){}function lr(){}function TO(){}function VJ(){}function XT(){}function $O(){}function JT(){}function Lj(){}function We(){}function bt(){}function Mn(){}function yr(){}function Wo(){}function el(){}function Pa(){}function Th(){}function j0(){}function zJ(){}function DVe(){}function LVe(){}function jVe(){}function FVe(){}function BVe(){}function _1e(){}function WVe(){}function HVe(){}function S1e(){}function UVe(){}function GVe(){}function VVe(){}function zVe(){}function KVe(){}function qVe(){}function XVe(){}function JVe(){}function YVe(){}function QVe(){}function ZVe(){}function eze(){}function tze(){}function KJ(){}function nze(){}function rze(){}function ize(){}function oze(){}function sze(){}function lze(){}function aze(){}function cze(){}function uze(){}function E1e(){}function k1e(){}function fze(){}function dze(){}function hze(){}function pze(){}function bze(){}function gze(){}function wze(){}function mze(){}function yze(){}function vze(){}function _ze(){}function Sze(){}function Eze(){}function kze(){}function Rze(){}function xze(){}function Cze(){}function Aze(){}function Tze(){}function $ze(){}function Ize(){}function Pze(){}function Oze(){}function Nze(){}function Mze(){}function Dze(){}function Lze(){}function jze(){}function Fze(){}function Bze(){}function Wze(){}function Hze(){}function Uze(){}function Gze(){}function Vze(){}function zze(){}function Kze(){}function qze(){}function Xze(){}function Jze(){}function Yze(){}function Qze(){}function Zze(){}function eKe(){}function tKe(){}function nKe(){}function rKe(){}function iKe(){}function oKe(){}function sKe(){}function lKe(){}function aKe(){}function cKe(){}function uKe(){}function fKe(){}function dKe(){}function hKe(){}function pKe(){}function bKe(){}function gKe(){}function wKe(){}function mKe(){}function yKe(){}function vKe(){}function _Ke(){}function SKe(){}function EKe(){}function kKe(){}function RKe(){}function xKe(){}function CKe(){}function AKe(){}function TKe(){}function $Ke(){}function IKe(){}function PKe(){}function OKe(){}function NKe(){}function MKe(){}function DKe(){}function LKe(){}function jKe(){}function FKe(){}function BKe(){}function WKe(){}function HKe(){}function UKe(){}function GKe(){}function VKe(){}function zKe(){}function KKe(){}function qKe(){}function XKe(){}function JKe(){}function YKe(){}function QKe(){}function ZKe(){}function eqe(){}function tqe(){}function nqe(){}function R1e(){}function rqe(){}function iqe(){}function oqe(){}function sqe(){}function lqe(){}function aqe(){}function cqe(){}function uqe(){}function fqe(){}function dqe(){}function hqe(){}function pqe(){}function bqe(){}function gqe(){}function wqe(){}function mqe(){}function yqe(){}function vqe(){}function _qe(){}function Sqe(){}function Eqe(){}function kqe(){}function Rqe(){}function xqe(){}function Cqe(){}function Aqe(){}function Tqe(){}function $qe(){}function Iqe(){}function Pqe(){}function Oqe(){}function Nqe(){}function Mqe(){}function Dqe(){}function Lqe(){}function jqe(){}function Fqe(){}function Bqe(){}function Wqe(){}function Hqe(){}function Uqe(){}function Gqe(){}function Vqe(){}function zqe(){}function Kqe(){}function qqe(){}function Xqe(){}function Jqe(){}function Yqe(){}function Qqe(){}function Zqe(){}function eXe(){}function tXe(){}function nXe(){}function rXe(){}function iXe(){}function oXe(){}function sXe(){}function lXe(){}function aXe(){}function cXe(){}function uXe(){}function fXe(){}function dXe(){}function hXe(){}function pXe(){}function bXe(){}function gXe(){}function wXe(){}function mXe(){}function yXe(){}function vXe(){}function _Xe(){}function x1e(){}function SXe(){}function EXe(){}function kXe(){}function RXe(){}function xXe(){}function CXe(){}function AXe(){}function TXe(){}function $Xe(){}function IXe(){}function C1e(){}function PXe(){}function OXe(){}function NXe(){}function MXe(){}function DXe(){}function LXe(){}function A1e(){}function T1e(){}function jXe(){}function $1e(){}function I1e(){}function FXe(){}function BXe(){}function WXe(){}function HXe(){}function UXe(){}function GXe(){}function VXe(){}function zXe(){}function KXe(){}function qXe(){}function XXe(){}function P1e(){}function JXe(){}function YXe(){}function QXe(){}function ZXe(){}function eJe(){}function tJe(){}function nJe(){}function rJe(){}function iJe(){}function oJe(){}function sJe(){}function lJe(){}function aJe(){}function cJe(){}function uJe(){}function fJe(){}function dJe(){}function hJe(){}function pJe(){}function bJe(){}function gJe(){}function wJe(){}function mJe(){}function yJe(){}function vJe(){}function _Je(){}function SJe(){}function EJe(){}function kJe(){}function RJe(){}function xJe(){}function CJe(){}function AJe(){}function TJe(){}function $Je(){}function IJe(){}function PJe(){}function OJe(){}function NJe(){}function MJe(){}function DJe(){}function LJe(){}function jJe(){}function FJe(){}function BJe(){}function WJe(){}function HJe(){}function UJe(){}function GJe(){}function VJe(){}function zJe(){}function KJe(){}function qJe(){}function XJe(){}function JJe(){}function YJe(){}function QJe(){}function ZJe(){}function eYe(){}function tYe(){}function nYe(){}function rYe(){}function iYe(){}function oYe(){}function sYe(){}function lYe(){}function aYe(){}function cYe(){}function uYe(){}function fYe(){}function dYe(){}function hYe(){}function pYe(){}function bYe(){}function gYe(){}function wYe(){}function mYe(){}function yYe(){}function vYe(){}function _Ye(){}function SYe(){}function EYe(){}function kYe(){}function RYe(){}function xYe(){}function CYe(){}function jhn(){}function AYe(){}function TYe(){}function $Ye(){}function IYe(){}function PYe(){}function OYe(){}function NYe(){}function MYe(){}function DYe(){}function LYe(){}function jYe(){}function FYe(){}function BYe(){}function WYe(){}function HYe(){}function UYe(){}function GYe(){}function VYe(){}function zYe(){}function KYe(){}function qYe(){}function XYe(){}function JYe(){}function YYe(){}function QYe(){}function ZYe(){}function eQe(){}function qJ(){}function XJ(){}function tQe(){}function JJ(){}function nQe(){}function rQe(){}function iQe(){}function oQe(){}function sQe(){}function lQe(){}function aQe(){}function cQe(){}function uQe(){}function fQe(){}function O1e(){}function dQe(){}function hQe(){}function pQe(){}function Fhn(){}function bQe(){}function gQe(){}function wQe(){}function mQe(){}function yQe(){}function vQe(){}function _Qe(){}function F0(){}function SQe(){}function Ak(){}function N1e(){}function EQe(){}function kQe(){}function RQe(){}function xQe(){}function CQe(){}function AQe(){}function TQe(){}function $Qe(){}function IQe(){}function PQe(){}function OQe(){}function NQe(){}function MQe(){}function DQe(){}function LQe(){}function jQe(){}function FQe(){}function BQe(){}function WQe(){}function kt(){}function HQe(){}function UQe(){}function GQe(){}function VQe(){}function zQe(){}function KQe(){}function qQe(){}function XQe(){}function JQe(){}function YQe(){}function QQe(){}function ZQe(){}function eZe(){}function YJ(){}function tZe(){}function nZe(){}function rZe(){}function jj(){}function iZe(){}function QJ(){}function Fj(){}function oZe(){}function M1e(){}function sZe(){}function lZe(){}function aZe(){}function cZe(){}function uZe(){}function fZe(){}function Bj(){}function dZe(){}function hZe(){}function Wj(){}function pZe(){}function Hj(){}function bZe(){}function D1e(){}function gZe(){}function ZJ(){}function L1e(){}function wZe(){}function mZe(){}function yZe(){}function vZe(){}function Bhn(){}function _Ze(){}function SZe(){}function EZe(){}function kZe(){}function RZe(){}function xZe(){}function CZe(){}function AZe(){}function TZe(){}function $Ze(){}function Dx(){}function eY(){}function IZe(){}function PZe(){}function OZe(){}function NZe(){}function MZe(){}function DZe(){}function LZe(){}function jZe(){}function FZe(){}function BZe(){}function WZe(){}function HZe(){}function UZe(){}function GZe(){}function VZe(){}function zZe(){}function KZe(){}function qZe(){}function XZe(){}function JZe(){}function YZe(){}function QZe(){}function ZZe(){}function eet(){}function tet(){}function net(){}function ret(){}function iet(){}function oet(){}function set(){}function aet(){}function cet(){}function uet(){}function fet(){}function det(){}function het(){}function pet(){}function bet(){}function get(){}function wet(){}function met(){}function yet(){}function vet(){}function _et(){}function Eet(){}function ket(){}function Ret(){}function xet(){}function Cet(){}function Aet(){}function Tet(){}function $et(){}function Iet(){}function Pet(){}function Oet(){}function Net(){}function Met(){}function Det(){}function Let(){}function jet(){}function Fet(){}function Bet(){}function Wet(){}function Het(){}function Uet(){}function Get(){}function Vet(){}function zet(){}function Ket(){}function qet(){}function Xet(){}function Jet(){}function Yet(){}function Qet(){}function Zet(){}function ett(){}function ttt(){}function ntt(){}function rtt(){}function itt(){}function ott(){}function stt(){}function ltt(){}function att(){}function ctt(){}function utt(){}function ftt(){}function dtt(){}function htt(){}function ptt(){}function btt(){}function gtt(){}function wtt(){}function mtt(){}function ytt(){}function vtt(){}function _tt(){}function Stt(){}function Ett(){}function ktt(){}function Rtt(){}function j1e(){}function xtt(){}function Ctt(){}function tY(){i$()}function Att(){VO()}function Ttt(){TH()}function $tt(){lte()}function Itt(){T6()}function Ptt(){zEe()}function Ott(){od()}function Ntt(){nEe()}function Mtt(){IN()}function Dtt(){zO()}function Ltt(){v7()}function jtt(){uct()}function Ftt(){b3()}function Btt(){j0t()}function Wtt(){tSe()}function Htt(){xgt()}function Utt(){nSe()}function Gtt(){bwt()}function Vtt(){Rgt()}function ztt(){zC()}function Ktt(){Qmt()}function qtt(){Ymt()}function Xtt(){_1t()}function Jtt(){Zmt()}function Ytt(){W1()}function Qtt(){gF()}function Ztt(){V3e()}function ent(){pt()}function tnt(){eyt()}function nnt(){Cyt()}function rnt(){Cgt()}function int(){QSt()}function ont(){Agt()}function snt(){dRt()}function lnt(){Eke()}function ant(){mb()}function cnt(){h_t()}function unt(){Il()}function fnt(){Lgt()}function dnt(){p3()}function hnt(){o3e()}function pnt(){H1()}function bnt(){s3e()}function gnt(){sh()}function wnt(){DN()}function mnt(){One()}function ynt(){Hte()}function Ed(){hht()}function vnt(){bW()}function _nt(){MH()}function F1e(){Er()}function Snt(){YW()}function Ent(){P2e()}function B1e(){Hee()}function W1e(){rU()}function knt(){w3e()}function H1e(e){mn(e)}function Rnt(e){this.a=e}function Uj(e){this.a=e}function xnt(e){this.a=e}function Cnt(e){this.a=e}function Ant(e){this.a=e}function Tnt(e){this.a=e}function $nt(e){this.a=e}function Int(e){this.a=e}function U1e(e){this.a=e}function G1e(e){this.a=e}function Pnt(e){this.a=e}function Ont(e){this.a=e}function nY(e){this.a=e}function Nnt(e){this.a=e}function Mnt(e){this.a=e}function rY(e){this.a=e}function iY(e){this.a=e}function Dnt(e){this.a=e}function oY(e){this.a=e}function Lnt(e){this.a=e}function jnt(e){this.a=e}function Fnt(e){this.a=e}function V1e(e){this.b=e}function Bnt(e){this.c=e}function Wnt(e){this.a=e}function Hnt(e){this.a=e}function Unt(e){this.a=e}function Gnt(e){this.a=e}function Vnt(e){this.a=e}function znt(e){this.a=e}function Knt(e){this.a=e}function qnt(e){this.a=e}function Xnt(e){this.a=e}function Jnt(e){this.a=e}function Ynt(e){this.a=e}function Qnt(e){this.a=e}function Znt(e){this.a=e}function z1e(e){this.a=e}function K1e(e){this.a=e}function Gj(e){this.a=e}function IO(e){this.a=e}function B0(){this.a=[]}function ert(e,t){e.a=t}function Whn(e,t){e.a=t}function Hhn(e,t){e.b=t}function Uhn(e,t){e.b=t}function Ghn(e,t){e.b=t}function q1e(e,t){e.j=t}function Vhn(e,t){e.g=t}function zhn(e,t){e.i=t}function Khn(e,t){e.c=t}function qhn(e,t){e.c=t}function Xhn(e,t){e.d=t}function Jhn(e,t){e.d=t}function W0(e,t){e.k=t}function Yhn(e,t){e.c=t}function X1e(e,t){e.c=t}function J1e(e,t){e.a=t}function Qhn(e,t){e.a=t}function Zhn(e,t){e.f=t}function epn(e,t){e.a=t}function tpn(e,t){e.b=t}function sY(e,t){e.d=t}function Vj(e,t){e.i=t}function Y1e(e,t){e.o=t}function npn(e,t){e.r=t}function rpn(e,t){e.a=t}function ipn(e,t){e.b=t}function trt(e,t){e.e=t}function opn(e,t){e.f=t}function Q1e(e,t){e.g=t}function spn(e,t){e.e=t}function lpn(e,t){e.f=t}function apn(e,t){e.f=t}function lY(e,t){e.a=t}function aY(e,t){e.b=t}function cpn(e,t){e.n=t}function upn(e,t){e.a=t}function fpn(e,t){e.c=t}function dpn(e,t){e.c=t}function hpn(e,t){e.c=t}function ppn(e,t){e.a=t}function bpn(e,t){e.a=t}function gpn(e,t){e.d=t}function wpn(e,t){e.d=t}function mpn(e,t){e.e=t}function ypn(e,t){e.e=t}function vpn(e,t){e.g=t}function _pn(e,t){e.f=t}function Spn(e,t){e.j=t}function Epn(e,t){e.a=t}function kpn(e,t){e.a=t}function Rpn(e,t){e.b=t}function nrt(e){e.b=e.a}function rrt(e){e.c=e.d.d}function Z1e(e){this.a=e}function e0e(e){this.a=e}function t0e(e){this.a=e}function H0(e){this.a=e}function U0(e){this.a=e}function PO(e){this.a=e}function irt(e){this.a=e}function n0e(e){this.a=e}function OO(e){this.a=e}function zj(e){this.a=e}function ob(e){this.a=e}function Rv(e){this.a=e}function ort(e){this.a=e}function srt(e){this.a=e}function cY(e){this.b=e}function Lx(e){this.b=e}function jx(e){this.b=e}function uY(e){this.a=e}function lrt(e){this.a=e}function fY(e){this.c=e}function ee(e){this.c=e}function art(e){this.c=e}function YT(e){this.d=e}function r0e(e){this.a=e}function er(e){this.a=e}function crt(e){this.a=e}function i0e(e){this.a=e}function o0e(e){this.a=e}function s0e(e){this.a=e}function l0e(e){this.a=e}function a0e(e){this.a=e}function c0e(e){this.a=e}function Fx(e){this.a=e}function urt(e){this.a=e}function frt(e){this.a=e}function Bx(e){this.a=e}function drt(e){this.a=e}function hrt(e){this.a=e}function prt(e){this.a=e}function brt(e){this.a=e}function grt(e){this.a=e}function wrt(e){this.a=e}function mrt(e){this.a=e}function yrt(e){this.a=e}function vrt(e){this.a=e}function _rt(e){this.a=e}function Srt(e){this.a=e}function Ert(e){this.a=e}function krt(e){this.a=e}function Rrt(e){this.a=e}function xrt(e){this.a=e}function QT(e){this.a=e}function Crt(e){this.a=e}function Art(e){this.a=e}function Trt(e){this.a=e}function $rt(e){this.a=e}function Kj(e){this.a=e}function Irt(e){this.a=e}function Prt(e){this.a=e}function Wx(e){this.a=e}function u0e(e){this.a=e}function Ort(e){this.a=e}function Nrt(e){this.a=e}function Mrt(e){this.a=e}function Drt(e){this.a=e}function Lrt(e){this.a=e}function jrt(e){this.a=e}function f0e(e){this.a=e}function d0e(e){this.a=e}function h0e(e){this.a=e}function ZT(e){this.a=e}function qj(e){this.e=e}function Hx(e){this.a=e}function Frt(e){this.a=e}function Tk(e){this.a=e}function p0e(e){this.a=e}function Brt(e){this.a=e}function Wrt(e){this.a=e}function Hrt(e){this.a=e}function Urt(e){this.a=e}function Grt(e){this.a=e}function Vrt(e){this.a=e}function zrt(e){this.a=e}function Krt(e){this.a=e}function qrt(e){this.a=e}function Xrt(e){this.a=e}function Jrt(e){this.a=e}function b0e(e){this.a=e}function Yrt(e){this.a=e}function Qrt(e){this.a=e}function Zrt(e){this.a=e}function eit(e){this.a=e}function tit(e){this.a=e}function nit(e){this.a=e}function rit(e){this.a=e}function iit(e){this.a=e}function oit(e){this.a=e}function sit(e){this.a=e}function lit(e){this.a=e}function ait(e){this.a=e}function cit(e){this.a=e}function uit(e){this.a=e}function fit(e){this.a=e}function dit(e){this.a=e}function hit(e){this.a=e}function pit(e){this.a=e}function bit(e){this.a=e}function git(e){this.a=e}function wit(e){this.a=e}function mit(e){this.a=e}function yit(e){this.a=e}function vit(e){this.a=e}function _it(e){this.a=e}function Sit(e){this.a=e}function Eit(e){this.a=e}function kit(e){this.a=e}function Rit(e){this.a=e}function xit(e){this.a=e}function Cit(e){this.a=e}function Ait(e){this.a=e}function Tit(e){this.a=e}function $it(e){this.a=e}function Iit(e){this.a=e}function Pit(e){this.a=e}function Oit(e){this.a=e}function Nit(e){this.a=e}function Mit(e){this.c=e}function Dit(e){this.b=e}function Lit(e){this.a=e}function jit(e){this.a=e}function Fit(e){this.a=e}function Bit(e){this.a=e}function Wit(e){this.a=e}function Hit(e){this.a=e}function Uit(e){this.a=e}function Git(e){this.a=e}function Vit(e){this.a=e}function zit(e){this.a=e}function Kit(e){this.a=e}function qit(e){this.a=e}function Xit(e){this.a=e}function Jit(e){this.a=e}function Yit(e){this.a=e}function Qit(e){this.a=e}function Zit(e){this.a=e}function eot(e){this.a=e}function tot(e){this.a=e}function not(e){this.a=e}function rot(e){this.a=e}function iot(e){this.a=e}function oot(e){this.a=e}function sot(e){this.a=e}function lot(e){this.a=e}function aot(e){this.a=e}function cot(e){this.a=e}function sb(e){this.a=e}function OS(e){this.a=e}function uot(e){this.a=e}function fot(e){this.a=e}function dot(e){this.a=e}function hot(e){this.a=e}function pot(e){this.a=e}function bot(e){this.a=e}function got(e){this.a=e}function wot(e){this.a=e}function mot(e){this.a=e}function yot(e){this.a=e}function vot(e){this.a=e}function _ot(e){this.a=e}function Sot(e){this.a=e}function Eot(e){this.a=e}function kot(e){this.a=e}function Rot(e){this.a=e}function xot(e){this.a=e}function Cot(e){this.a=e}function Aot(e){this.a=e}function Tot(e){this.a=e}function $ot(e){this.a=e}function Iot(e){this.a=e}function Pot(e){this.a=e}function Oot(e){this.a=e}function Not(e){this.a=e}function Mot(e){this.a=e}function Xj(e){this.a=e}function Dot(e){this.f=e}function Lot(e){this.a=e}function jot(e){this.a=e}function Fot(e){this.a=e}function Bot(e){this.a=e}function Wot(e){this.a=e}function Hot(e){this.a=e}function Uot(e){this.a=e}function Got(e){this.a=e}function Vot(e){this.a=e}function zot(e){this.a=e}function Kot(e){this.a=e}function qot(e){this.a=e}function Xot(e){this.a=e}function Jot(e){this.a=e}function Yot(e){this.a=e}function Qot(e){this.a=e}function Zot(e){this.a=e}function est(e){this.a=e}function tst(e){this.a=e}function nst(e){this.a=e}function rst(e){this.a=e}function ist(e){this.a=e}function ost(e){this.a=e}function sst(e){this.a=e}function lst(e){this.a=e}function ast(e){this.a=e}function cst(e){this.a=e}function ust(e){this.a=e}function dY(e){this.a=e}function g0e(e){this.a=e}function Xr(e){this.b=e}function fst(e){this.a=e}function dst(e){this.a=e}function hst(e){this.a=e}function pst(e){this.a=e}function bst(e){this.a=e}function gst(e){this.a=e}function wst(e){this.a=e}function mst(e){this.b=e}function yst(e){this.a=e}function NO(e){this.a=e}function vst(e){this.a=e}function _st(e){this.a=e}function w0e(e){this.c=e}function Jj(e){this.e=e}function Yj(e){this.a=e}function Qj(e){this.a=e}function hY(e){this.a=e}function Sst(e){this.d=e}function Est(e){this.a=e}function m0e(e){this.a=e}function y0e(e){this.a=e}function fm(e){this.e=e}function xpn(){this.a=0}function Fn(){xc(this)}function st(){CQ(this)}function pY(){sbt(this)}function kst(){}function dm(){this.c=ROe}function Rst(e,t){e.b+=t}function Cpn(e,t){t.Wb(e)}function Apn(e){return e.a}function Tpn(e){return e.a}function $pn(e){return e.a}function Ipn(e){return e.a}function Ppn(e){return e.a}function ne(e){return e.e}function Opn(){return null}function Npn(){return null}function Mpn(){iwe(),pjn()}function Dpn(e){e.b.Of(e.e)}function xst(e){e.b=new NY}function e$(e,t){e.b=t-e.b}function t$(e,t){e.a=t-e.a}function sn(e,t){e.push(t)}function Cst(e,t){e.sort(t)}function Ast(e,t){t.jd(e.a)}function Lpn(e,t){so(t,e)}function jpn(e,t,i){e.Yd(i,t)}function MO(e,t){e.e=t,t.b=e}function v0e(e){Dh(),this.a=e}function Tst(e){Dh(),this.a=e}function $st(e){Dh(),this.a=e}function bY(e){Nm(),this.a=e}function Ist(e){mC(),ise.le(e)}function _0e(){_0e=F,new Fn}function G0(){Jft.call(this)}function S0e(){Jft.call(this)}function E0e(){G0.call(this)}function gY(){G0.call(this)}function Pst(){G0.call(this)}function DO(){G0.call(this)}function ac(){G0.call(this)}function $k(){G0.call(this)}function rr(){G0.call(this)}function Bu(){G0.call(this)}function Ost(){G0.call(this)}function yl(){G0.call(this)}function Nst(){G0.call(this)}function Mst(){this.a=this}function Zj(){this.Bb|=256}function Dst(){this.b=new Uut}function xv(e,t){e.length=t}function eF(e,t){lt(e.a,t)}function Fpn(e,t){qEe(e.c,t)}function Bpn(e,t){Zi(e.b,t)}function Wpn(e,t){EH(e.a,t)}function Hpn(e,t){bte(e.a,t)}function Ux(e,t){Dr(e.e,t)}function Ik(e){FH(e.c,e.b)}function Upn(e,t){e.kc().Nb(t)}function k0e(e){this.a=MCn(e)}function Gi(){this.a=new Fn}function Lst(){this.a=new Fn}function R0e(){this.a=new nct}function tF(){this.a=new st}function wY(){this.a=new st}function x0e(){this.a=new st}function gf(){this.a=new Al}function V0(){this.a=new P0t}function C0e(){this.a=new _1e}function A0e(){this.a=new kgt}function T0e(){this.a=new Ddt}function jst(){this.a=new st}function Fst(){this.a=new st}function Bst(){this.a=new st}function $0e(){this.a=new st}function Wst(){this.d=new st}function Hst(){this.a=new Ggt}function Ust(){this.a=new Gi}function Gst(){this.a=new Fn}function Vst(){this.b=new Fn}function zst(){this.b=new st}function I0e(){this.e=new st}function Kst(){this.a=new Ytt}function qst(){this.d=new st}function Xst(){Xbt.call(this)}function Jst(){Xbt.call(this)}function Yst(){st.call(this)}function P0e(){E0e.call(this)}function O0e(){tF.call(this)}function Qst(){sB.call(this)}function Zst(){$0e.call(this)}function n$(){kst.call(this)}function mY(){n$.call(this)}function Pk(){kst.call(this)}function N0e(){Pk.call(this)}function elt(){j0e.call(this)}function tlt(){j0e.call(this)}function nlt(){j0e.call(this)}function rlt(){F0e.call(this)}function r$(){iZe.call(this)}function M0e(){iZe.call(this)}function cc(){li.call(this)}function ilt(){ylt.call(this)}function olt(){ylt.call(this)}function slt(){Fn.call(this)}function llt(){Fn.call(this)}function alt(){Fn.call(this)}function yY(){ryt.call(this)}function clt(){Gi.call(this)}function ult(){Zj.call(this)}function vY(){mme.call(this)}function D0e(){Fn.call(this)}function _Y(){mme.call(this)}function SY(){Fn.call(this)}function flt(){Fn.call(this)}function L0e(){Hj.call(this)}function dlt(){L0e.call(this)}function hlt(){Hj.call(this)}function plt(){j1e.call(this)}function j0e(){this.a=new Gi}function blt(){this.a=new Fn}function glt(){this.a=new st}function F0e(){this.a=new Fn}function Ok(){this.a=new li}function wlt(){this.j=new st}function mlt(){this.a=new gat}function ylt(){this.a=new pZe}function B0e(){this.a=new XYe}function i$(){i$=F,Joe=new y}function EY(){EY=F,Yoe=new _lt}function kY(){kY=F,Qoe=new vlt}function vlt(){rY.call(this,"")}function _lt(){rY.call(this,"")}function Slt(e){xmt.call(this,e)}function Elt(e){xmt.call(this,e)}function W0e(e){U1e.call(this,e)}function H0e(e){Vat.call(this,e)}function Gpn(e){Vat.call(this,e)}function Vpn(e){H0e.call(this,e)}function zpn(e){H0e.call(this,e)}function Kpn(e){H0e.call(this,e)}function klt(e){nee.call(this,e)}function Rlt(e){nee.call(this,e)}function xlt(e){iht.call(this,e)}function Clt(e){fwe.call(this,e)}function o$(e){dF.call(this,e)}function U0e(e){dF.call(this,e)}function Alt(e){dF.call(this,e)}function G0e(e){bIn.call(this,e)}function V0e(e){G0e.call(this,e)}function vl(e){Rpt.call(this,e)}function Tlt(e){vl.call(this,e)}function Nk(){IO.call(this,{})}function $lt(){$lt=F,f6t=new be}function nF(){nF=F,tse=new xft}function Ilt(){Ilt=F,WAe=new v}function z0e(){z0e=F,HAe=new te}function rF(){rF=F,OI=new Ee}function RY(e){tC(),this.a=e}function xY(e){ySe(),this.a=e}function hm(e){uZ(),this.f=e}function CY(e){uZ(),this.f=e}function Plt(e){dht(),this.a=e}function Olt(e){e.b=null,e.c=0}function qpn(e,t){e.e=t,d3t(e,t)}function Xpn(e,t){e.a=t,n5n(e)}function AY(e,t,i){e.a[t.g]=i}function Jpn(e,t,i){w$n(i,e,t)}function Ypn(e,t){z0n(t.i,e.n)}function Nlt(e,t){gxn(e).Cd(t)}function Qpn(e,t){e.a.ec().Mc(t)}function Mlt(e,t){return e.g-t.g}function Zpn(e,t){return e*e/t}function wt(e){return mn(e),e}function Ae(e){return mn(e),e}function LO(e){return mn(e),e}function ebn(e){return new Gj(e)}function tbn(e){return new Bv(e)}function K0e(e){return mn(e),e}function nbn(e){return mn(e),e}function iF(e){vl.call(this,e)}function Hs(e){vl.call(this,e)}function Dlt(e){vl.call(this,e)}function TY(e){Rpt.call(this,e)}function Gx(e){vl.call(this,e)}function hn(e){vl.call(this,e)}function Us(e){vl.call(this,e)}function Llt(e){vl.call(this,e)}function Mk(e){vl.call(this,e)}function ng(e){vl.call(this,e)}function rg(e){vl.call(this,e)}function Dk(e){vl.call(this,e)}function $h(e){vl.call(this,e)}function $Y(e){vl.call(this,e)}function ar(e){vl.call(this,e)}function kc(e){mn(e),this.a=e}function q0e(e){return fw(e),e}function s$(e){sve(e,e.length)}function l$(e){return e.b==e.c}function Cv(e){return!!e&&e.b}function rbn(e){return!!e&&e.k}function ibn(e){return!!e&&e.j}function obn(e,t,i){e.c.Ef(t,i)}function jlt(e,t){e.be(t),t.ae(e)}function Lk(e){Dh(),this.a=nr(e)}function IY(){this.a=or(nr(ds))}function Flt(){throw ne(new rr)}function sbn(){throw ne(new rr)}function X0e(){throw ne(new rr)}function Blt(){throw ne(new rr)}function lbn(){throw ne(new rr)}function abn(){throw ne(new rr)}function oF(){oF=F,mC()}function ig(){PO.call(this,"")}function a$(){PO.call(this,"")}function m1(){PO.call(this,"")}function jk(){PO.call(this,"")}function J0e(e){Hs.call(this,e)}function Y0e(e){Hs.call(this,e)}function Ih(e){hn.call(this,e)}function Vx(e){jx.call(this,e)}function Wlt(e){Vx.call(this,e)}function PY(e){tB.call(this,e)}function OY(e){$me.call(this,e,0)}function NY(){Hve.call(this,12,3)}function ie(e,t){return mgt(e,t)}function sF(e,t){return wee(e,t)}function cbn(e,t){return e.a-t.a}function ubn(e,t){return e.a-t.a}function fbn(e,t){return e.a-t.a}function dbn(e,t){return t in e.a}function Hlt(e){return e.a?e.b:0}function hbn(e){return e.a?e.b:0}function pbn(e,t,i){t.Cd(e.a[i])}function bbn(e,t,i){t.Pe(e.a[i])}function gbn(e,t){e.b=new us(t)}function wbn(e,t){return e.b=t,e}function Ult(e,t){return e.c=t,e}function Glt(e,t){return e.f=t,e}function mbn(e,t){return e.g=t,e}function Q0e(e,t){return e.a=t,e}function Z0e(e,t){return e.f=t,e}function ybn(e,t){return e.k=t,e}function ewe(e,t){return e.a=t,e}function vbn(e,t){return e.e=t,e}function twe(e,t){return e.e=t,e}function _bn(e,t){return e.f=t,e}function Sbn(e,t){e.b=!0,e.d=t}function Ebn(e,t){return e.b-t.b}function kbn(e,t){return e.g-t.g}function Rbn(e,t){return e?0:t-1}function Vlt(e,t){return e?0:t-1}function xbn(e,t){return e?t-1:0}function Cbn(e,t){return e.s-t.s}function Abn(e,t){return t.rg(e)}function pm(e,t){return e.b=t,e}function lF(e,t){return e.a=t,e}function bm(e,t){return e.c=t,e}function gm(e,t){return e.d=t,e}function wm(e,t){return e.e=t,e}function nwe(e,t){return e.f=t,e}function c$(e,t){return e.a=t,e}function zx(e,t){return e.b=t,e}function Kx(e,t){return e.c=t,e}function xt(e,t){return e.c=t,e}function Ut(e,t){return e.b=t,e}function Ct(e,t){return e.d=t,e}function At(e,t){return e.e=t,e}function Tbn(e,t){return e.f=t,e}function Tt(e,t){return e.g=t,e}function $t(e,t){return e.a=t,e}function It(e,t){return e.i=t,e}function Pt(e,t){return e.j=t,e}function $bn(e,t){W1(),Sl(t,e)}function Ibn(e,t,i){Kyn(e.a,t,i)}function aF(e){VQ.call(this,e)}function zlt(e){JCn.call(this,e)}function Klt(e){xbt.call(this,e)}function rwe(e){xbt.call(this,e)}function y1(e){Gm.call(this,e)}function qlt(e){NZ.call(this,e)}function Xlt(e){NZ.call(this,e)}function Jlt(){dme.call(this,"")}function Io(){this.a=0,this.b=0}function Ylt(){this.b=0,this.a=0}function Qlt(e,t){e.b=0,Jv(e,t)}function Zlt(e,t){return e.k=t,e}function Pbn(e,t){return e.j=t,e}function Obn(e,t){e.c=t,e.b=!0}function eat(){eat=F,k6t=G$n()}function v1(){v1=F,wDt=t$n()}function tat(){tat=F,_o=h6n()}function iwe(){iwe=F,h0=OC()}function qx(){qx=F,kOe=n$n()}function nat(){nat=F,tLt=r$n()}function owe(){owe=F,zl=ZIn()}function kd(e){return e.e&&e.e()}function rat(e){return e.l|e.m<<22}function iat(e,t){return e.c._b(t)}function oat(e,t){return n_t(e.b,t)}function MY(e){return e?e.d:null}function Nbn(e){return e?e.g:null}function Mbn(e){return e?e.i:null}function z0(e){return cb(e),e.o}function NS(e,t){return e.a+=t,e}function DY(e,t){return e.a+=t,e}function og(e,t){return e.a+=t,e}function mm(e,t){return e.a+=t,e}function swe(e,t){for(;e.Bd(t););}function cF(e){this.a=new Fk(e)}function sat(){throw ne(new rr)}function lat(){throw ne(new rr)}function aat(){throw ne(new rr)}function cat(){throw ne(new rr)}function uat(){throw ne(new rr)}function fat(){throw ne(new rr)}function sg(e){this.a=new hZ(e)}function dat(){this.a=new G6(y5e)}function hat(){this.b=new G6(jIe)}function pat(){this.a=new G6(U5e)}function bat(){this.b=new G6(Kae)}function gat(){this.b=new G6(Kae)}function uF(e){this.a=0,this.b=e}function lwe(e){Gxt(),Cjn(this,e)}function Xx(e){return A1(e),e.a}function jO(e){return e.b!=e.d.c}function awe(e,t){return e.d[t.p]}function wat(e,t){return GOn(e,t)}function cwe(e,t,i){e.splice(t,i)}function MS(e,t){for(;e.Re(t););}function mat(e){e.c?$3t(e):I3t(e)}function yat(){throw ne(new rr)}function vat(){throw ne(new rr)}function _at(){throw ne(new rr)}function Sat(){throw ne(new rr)}function Eat(){throw ne(new rr)}function kat(){throw ne(new rr)}function Rat(){throw ne(new rr)}function xat(){throw ne(new rr)}function Cat(){throw ne(new rr)}function Aat(){throw ne(new rr)}function Dbn(){throw ne(new yl)}function Lbn(){throw ne(new yl)}function FO(e){this.a=new Tat(e)}function Tat(e){W3n(this,e,yIn())}function BO(e){return!e||obt(e)}function WO(e){return _h[e]!=-1}function jbn(){SG!=0&&(SG=0),EG=-1}function $at(){Xoe==null&&(Xoe=[])}function HO(e,t){XS.call(this,e,t)}function Jx(e,t){HO.call(this,e,t)}function Iat(e,t){this.a=e,this.b=t}function Pat(e,t){this.a=e,this.b=t}function Oat(e,t){this.a=e,this.b=t}function Nat(e,t){this.a=e,this.b=t}function Mat(e,t){this.a=e,this.b=t}function Dat(e,t){this.a=e,this.b=t}function Lat(e,t){this.a=e,this.b=t}function Yx(e,t){this.e=e,this.d=t}function uwe(e,t){this.b=e,this.c=t}function jat(e,t){this.b=e,this.a=t}function Fat(e,t){this.b=e,this.a=t}function Bat(e,t){this.b=e,this.a=t}function Wat(e,t){this.b=e,this.a=t}function Hat(e,t){this.a=e,this.b=t}function LY(e,t){this.a=e,this.b=t}function Uat(e,t){this.a=e,this.f=t}function ym(e,t){this.g=e,this.i=t}function Jn(e,t){this.f=e,this.g=t}function Gat(e,t){this.b=e,this.c=t}function Vat(e){vme(e.dc()),this.c=e}function Fbn(e,t){this.a=e,this.b=t}function zat(e,t){this.a=e,this.b=t}function Kat(e){this.a=f(nr(e),15)}function fwe(e){this.a=f(nr(e),15)}function qat(e){this.a=f(nr(e),85)}function fF(e){this.b=f(nr(e),85)}function dF(e){this.b=f(nr(e),51)}function hF(){this.q=new h.Date}function jY(e,t){this.a=e,this.b=t}function Xat(e,t){return Na(e.b,t)}function UO(e,t){return e.b.Hc(t)}function Jat(e,t){return e.b.Ic(t)}function Yat(e,t){return e.b.Qc(t)}function Qat(e,t){return e.b.Hc(t)}function Zat(e,t){return e.c.uc(t)}function ect(e,t){return Lr(e.c,t)}function Rd(e,t){return e.a._b(t)}function tct(e,t){return e>t&&t0}function GY(e,t){return Jl(e,t)<0}function wct(e,t){return sZ(e.a,t)}function ign(e,t){ygt.call(this,e,t)}function mwe(e){RZ(),iht.call(this,e)}function ywe(e,t){dpt(e,e.length,t)}function KO(e,t){Bpt(e,e.length,t)}function w$(e,t){return e.a.get(t)}function mct(e,t){return Na(e.e,t)}function vwe(e){return mn(e),!1}function _we(e){this.a=f(nr(e),229)}function SF(e){Vt.call(this,e,21)}function EF(e,t){Jn.call(this,e,t)}function VY(e,t){Jn.call(this,e,t)}function yct(e,t){this.b=e,this.a=t}function kF(e,t){this.d=e,this.e=t}function vct(e,t){this.a=e,this.b=t}function _ct(e,t){this.a=e,this.b=t}function Sct(e,t){this.a=e,this.b=t}function Ect(e,t){this.a=e,this.b=t}function Wk(e,t){this.a=e,this.b=t}function kct(e,t){this.b=e,this.a=t}function Swe(e,t){this.b=e,this.a=t}function Ewe(e,t){Jn.call(this,e,t)}function kwe(e,t){Jn.call(this,e,t)}function DS(e,t){Jn.call(this,e,t)}function zY(e,t){Jn.call(this,e,t)}function KY(e,t){Jn.call(this,e,t)}function qY(e,t){Jn.call(this,e,t)}function RF(e,t){Jn.call(this,e,t)}function Rwe(e,t){this.b=e,this.a=t}function xF(e,t){Jn.call(this,e,t)}function xwe(e,t){this.b=e,this.a=t}function CF(e,t){Jn.call(this,e,t)}function Rct(e,t){this.b=e,this.a=t}function Cwe(e,t){Jn.call(this,e,t)}function XY(e,t){Jn.call(this,e,t)}function qO(e,t){Jn.call(this,e,t)}function m$(e,t,i){e.splice(t,0,i)}function ogn(e,t,i){e.Mb(i)&&t.Cd(i)}function sgn(e,t,i){t.Pe(e.a.Ye(i))}function lgn(e,t,i){t.Dd(e.a.Ze(i))}function agn(e,t,i){t.Cd(e.a.Kb(i))}function cgn(e,t){return fc(e.c,t)}function ugn(e,t){return fc(e.e,t)}function AF(e,t){Jn.call(this,e,t)}function TF(e,t){Jn.call(this,e,t)}function y$(e,t){Jn.call(this,e,t)}function Awe(e,t){Jn.call(this,e,t)}function Vi(e,t){Jn.call(this,e,t)}function $F(e,t){Jn.call(this,e,t)}function xct(e,t){this.a=e,this.b=t}function Cct(e,t){this.a=e,this.b=t}function Act(e,t){this.a=e,this.b=t}function Tct(e,t){this.a=e,this.b=t}function $ct(e,t){this.a=e,this.b=t}function Ict(e,t){this.a=e,this.b=t}function Pct(e,t){this.b=e,this.a=t}function Oct(e,t){this.b=e,this.a=t}function Twe(e,t){this.b=e,this.a=t}function eC(e,t){this.c=e,this.d=t}function Nct(e,t){this.e=e,this.d=t}function Mct(e,t){this.a=e,this.b=t}function Dct(e,t){this.a=e,this.b=t}function Lct(e,t){this.a=e,this.b=t}function jct(e,t){this.b=e,this.a=t}function Fct(e,t){this.b=t,this.c=e}function IF(e,t){Jn.call(this,e,t)}function XO(e,t){Jn.call(this,e,t)}function JY(e,t){Jn.call(this,e,t)}function $we(e,t){Jn.call(this,e,t)}function v$(e,t){Jn.call(this,e,t)}function YY(e,t){Jn.call(this,e,t)}function QY(e,t){Jn.call(this,e,t)}function JO(e,t){Jn.call(this,e,t)}function Iwe(e,t){Jn.call(this,e,t)}function ZY(e,t){Jn.call(this,e,t)}function _$(e,t){Jn.call(this,e,t)}function Pwe(e,t){Jn.call(this,e,t)}function S$(e,t){Jn.call(this,e,t)}function E$(e,t){Jn.call(this,e,t)}function Tv(e,t){Jn.call(this,e,t)}function eQ(e,t){Jn.call(this,e,t)}function tQ(e,t){Jn.call(this,e,t)}function Owe(e,t){Jn.call(this,e,t)}function YO(e,t){Jn.call(this,e,t)}function LS(e,t){Jn.call(this,e,t)}function nQ(e,t){Jn.call(this,e,t)}function PF(e,t){Jn.call(this,e,t)}function QO(e,t){Jn.call(this,e,t)}function $v(e,t){Jn.call(this,e,t)}function OF(e,t){Jn.call(this,e,t)}function Nwe(e,t){Jn.call(this,e,t)}function rQ(e,t){Jn.call(this,e,t)}function iQ(e,t){Jn.call(this,e,t)}function oQ(e,t){Jn.call(this,e,t)}function sQ(e,t){Jn.call(this,e,t)}function lQ(e,t){Jn.call(this,e,t)}function aQ(e,t){Jn.call(this,e,t)}function cQ(e,t){Jn.call(this,e,t)}function Bct(e,t){this.b=e,this.a=t}function Mwe(e,t){Jn.call(this,e,t)}function Wct(e,t){this.a=e,this.b=t}function Hct(e,t){this.a=e,this.b=t}function Uct(e,t){this.a=e,this.b=t}function Dwe(e,t){Jn.call(this,e,t)}function Lwe(e,t){Jn.call(this,e,t)}function Gct(e,t){this.a=e,this.b=t}function fgn(e,t){return lC(),t!=e}function ZO(e){return In(e.a),e.b}function uQ(e){return m8n(e,e.c),e}function Vct(){return eat(),new k6t}function zct(){fB(),this.a=new eye}function Kct(){qH(),this.a=new Gi}function qct(){GZ(),this.b=new Gi}function Xct(e,t){this.b=e,this.d=t}function Jct(e,t){this.a=e,this.b=t}function Yct(e,t){this.a=e,this.b=t}function Qct(e,t){this.a=e,this.b=t}function Zct(e,t){this.b=e,this.a=t}function jwe(e,t){Jn.call(this,e,t)}function Fwe(e,t){Jn.call(this,e,t)}function NF(e,t){Jn.call(this,e,t)}function Sm(e,t){Jn.call(this,e,t)}function fQ(e,t){Jn.call(this,e,t)}function MF(e,t){Jn.call(this,e,t)}function Bwe(e,t){Jn.call(this,e,t)}function Wwe(e,t){Jn.call(this,e,t)}function e7(e,t){Jn.call(this,e,t)}function Hwe(e,t){Jn.call(this,e,t)}function dQ(e,t){Jn.call(this,e,t)}function DF(e,t){Jn.call(this,e,t)}function hQ(e,t){Jn.call(this,e,t)}function pQ(e,t){Jn.call(this,e,t)}function bQ(e,t){Jn.call(this,e,t)}function gQ(e,t){Jn.call(this,e,t)}function Uwe(e,t){Jn.call(this,e,t)}function wQ(e,t){Jn.call(this,e,t)}function Gwe(e,t){Jn.call(this,e,t)}function t7(e,t){Jn.call(this,e,t)}function mQ(e,t){Jn.call(this,e,t)}function Vwe(e,t){Jn.call(this,e,t)}function n7(e,t){Jn.call(this,e,t)}function zwe(e,t){Jn.call(this,e,t)}function eut(e,t){this.b=e,this.a=t}function tut(e,t){this.b=e,this.a=t}function nut(e,t){this.b=e,this.a=t}function rut(e,t){this.b=e,this.a=t}function Kwe(e,t){this.a=e,this.b=t}function iut(e,t){this.a=e,this.b=t}function out(e,t){this.a=e,this.b=t}function tt(e,t){this.a=e,this.b=t}function k$(e,t){Jn.call(this,e,t)}function r7(e,t){Jn.call(this,e,t)}function Hk(e,t){Jn.call(this,e,t)}function R$(e,t){Jn.call(this,e,t)}function i7(e,t){Jn.call(this,e,t)}function yQ(e,t){Jn.call(this,e,t)}function LF(e,t){Jn.call(this,e,t)}function x$(e,t){Jn.call(this,e,t)}function vQ(e,t){Jn.call(this,e,t)}function jF(e,t){Jn.call(this,e,t)}function jS(e,t){Jn.call(this,e,t)}function o7(e,t){Jn.call(this,e,t)}function C$(e,t){Jn.call(this,e,t)}function A$(e,t){Jn.call(this,e,t)}function s7(e,t){Jn.call(this,e,t)}function FF(e,t){Jn.call(this,e,t)}function FS(e,t){Jn.call(this,e,t)}function _Q(e,t){Jn.call(this,e,t)}function sut(e,t){Jn.call(this,e,t)}function BF(e,t){Jn.call(this,e,t)}function lut(e,t){this.a=e,this.b=t}function aut(e,t){this.a=e,this.b=t}function cut(e,t){this.a=e,this.b=t}function uut(e,t){this.a=e,this.b=t}function fut(e,t){this.a=e,this.b=t}function dut(e,t){this.a=e,this.b=t}function io(e,t){this.a=e,this.b=t}function hut(e,t){this.a=e,this.b=t}function put(e,t){this.a=e,this.b=t}function but(e,t){this.a=e,this.b=t}function gut(e,t){this.a=e,this.b=t}function wut(e,t){this.a=e,this.b=t}function mut(e,t){this.a=e,this.b=t}function yut(e,t){this.b=e,this.a=t}function vut(e,t){this.b=e,this.a=t}function _ut(e,t){this.b=e,this.a=t}function Sut(e,t){this.b=e,this.a=t}function Eut(e,t){this.a=e,this.b=t}function kut(e,t){this.a=e,this.b=t}function WF(e,t){Jn.call(this,e,t)}function Rut(e,t){this.a=e,this.b=t}function xut(e,t){this.a=e,this.b=t}function Uk(e,t){Jn.call(this,e,t)}function Cut(e,t){this.f=e,this.c=t}function qwe(e,t){return fc(e.g,t)}function dgn(e,t){return fc(t.b,e)}function Aut(e,t){return Rte(e.a,t)}function hgn(e,t){return-e.b.af(t)}function pgn(e,t){e&&xr(X9,e,t)}function Xwe(e,t){e.i=null,LW(e,t)}function bgn(e,t,i){y2t(t,wne(e,i))}function ggn(e,t,i){y2t(t,wne(e,i))}function wgn(e,t){VPn(e.a,f(t,58))}function Tut(e,t){Wkn(e.a,f(t,12))}function HF(e,t){this.a=e,this.b=t}function $ut(e,t){this.a=e,this.b=t}function Iut(e,t){this.a=e,this.b=t}function Put(e,t){this.a=e,this.b=t}function Out(e,t){this.a=e,this.b=t}function Nut(e,t){this.d=e,this.b=t}function Mut(e,t){this.e=e,this.a=t}function l7(e,t){this.b=e,this.c=t}function Jwe(e,t){this.i=e,this.g=t}function Ywe(e,t){this.d=e,this.e=t}function mgn(e,t){n3n(new Sn(e),t)}function UF(e){return kN(e.c,e.b)}function tl(e){return e?e.md():null}function Ne(e){return e??null}function Eo(e){return typeof e===ure}function Iv(e){return typeof e===$3}function Pv(e){return typeof e===K3e}function Em(e,t){return Jl(e,t)==0}function GF(e,t){return Jl(e,t)>=0}function T$(e,t){return Jl(e,t)!=0}function VF(e,t){return yRn(e.Kc(),t)}function E1(e,t){return e.Rd().Xb(t)}function Dut(e){return Hc(e),e.d.gc()}function zF(e){return W$(e==null),e}function $$(e,t){return e.a+=""+t,e}function Ms(e,t){return e.a+=""+t,e}function I$(e,t){return e.a+=""+t,e}function aa(e,t){return e.a+=""+t,e}function br(e,t){return e.a+=""+t,e}function Qwe(e,t){return e.a+=""+t,e}function ygn(e){return""+(mn(e),e)}function Lut(e){xc(this),h6(this,e)}function jut(){Wve(),Kye.call(this)}function Fut(e,t){Qye.call(this,e,t)}function But(e,t){Qye.call(this,e,t)}function KF(e,t){Qye.call(this,e,t)}function cs(e,t){Ai(e,t,e.c.b,e.c)}function BS(e,t){Ai(e,t,e.a,e.a.a)}function Zwe(e){return Xt(e,0),null}function Wut(){this.b=0,this.a=!1}function Hut(){this.b=0,this.a=!1}function Uut(){this.b=new Fk(qv(12))}function Gut(){Gut=F,mIt=Qn(Pte())}function Vut(){Vut=F,B5t=Qn(t3t())}function zut(){zut=F,cNt=Qn(Nyt())}function eme(){eme=F,_0e(),UAe=new Fn}function xd(e){return e.a=0,e.b=0,e}function Kut(e,t){return e.a=t.g+1,e}function SQ(e,t){Lv.call(this,e,t)}function Bt(e,t){_i.call(this,e,t)}function WS(e,t){Jwe.call(this,e,t)}function qut(e,t){f7.call(this,e,t)}function EQ(e,t){FC.call(this,e,t)}function kr(e,t){vF(),xr(jz,e,t)}function Xut(e,t){e.q.setTime(rw(t))}function vgn(e){h.clearTimeout(e)}function _gn(e){return nr(e),new P$(e)}function Jut(e,t){return Ne(e)===Ne(t)}function Yut(e,t){return e.a.a.a.cc(t)}function kQ(e,t){return Vu(e.a,0,t)}function tme(e){return kvn(f(e,74))}function Gk(e){return oo((mn(e),e))}function Sgn(e){return oo((mn(e),e))}function Qut(e){return Oa(e.l,e.m,e.h)}function nme(e,t){return Xl(e.a,t.a)}function Egn(e,t){return jpt(e.a,t.a)}function kgn(e,t){return Qr(e.a,t.a)}function Ph(e,t){return e.indexOf(t)}function Rgn(e,t){return e.j[t.p]==2}function km(e,t){return e==t?0:e?1:-1}function qF(e){return e<10?"0"+e:""+e}function ul(e){return typeof e===K3e}function xgn(e){return e==vy||e==C_}function Cgn(e){return e==vy||e==x_}function Zut(e,t){return Xl(e.g,t.g)}function rme(e){return il(e.b.b,e,0)}function eft(){_B.call(this,0,0,0,0)}function Oh(){i0e.call(this,new hg)}function ime(e,t){kC(e,0,e.length,t)}function Agn(e,t){return lt(e.a,t),t}function Tgn(e,t){return Qf(),t.a+=e}function $gn(e,t){return Qf(),t.a+=e}function Ign(e,t){return Qf(),t.c+=e}function Pgn(e,t){return lt(e.c,t),e}function ome(e,t){return Eu(e.a,t),e}function tft(e){this.a=Vct(),this.b=e}function nft(e){this.a=Vct(),this.b=e}function us(e){this.a=e.a,this.b=e.b}function P$(e){this.a=e,tY.call(this)}function rft(e){this.a=e,tY.call(this)}function Vk(){Gu.call(this,0,0,0,0)}function XF(e){return Eu(new Ki,e)}function ift(e){return FB(f(e,123))}function eu(e){return e.vh()&&e.wh()}function HS(e){return e!=mh&&e!=u0}function ab(e){return e==Js||e==al}function US(e){return e==cf||e==gh}function oft(e){return e==Z2||e==Q2}function Ogn(e,t){return Xl(e.g,t.g)}function sft(e,t){return new FC(t,e)}function Ngn(e,t){return new FC(t,e)}function sme(e){return tyn(e.b.Kc(),e.a)}function RQ(e,t){KC(e,t),PC(e,e.D)}function xQ(e,t,i){TW(e,t),AW(e,i)}function GS(e,t,i){zm(e,t),Vm(e,i)}function Wu(e,t,i){Da(e,t),La(e,i)}function a7(e,t,i){AC(e,t),$C(e,i)}function c7(e,t,i){TC(e,t),IC(e,i)}function lft(e,t,i){Hme.call(this,e,t,i)}function lme(e){Cut.call(this,e,!0)}function aft(){EF.call(this,"Tail",3)}function cft(){EF.call(this,"Head",1)}function k1(e){Uh(),bRn.call(this,e)}function Rm(e){_B.call(this,e,e,e,e)}function CQ(e){e.c=Fe(ho,on,1,0,5,1)}function ame(e){return e.b&&zne(e),e.a}function cme(e){return e.b&&zne(e),e.c}function Mgn(e,t){fh||(e.b=t)}function Dgn(e,t){return e[e.length]=t}function Lgn(e,t){return e[e.length]=t}function jgn(e,t){return Xv(t,Xd(e))}function Fgn(e,t){return Xv(t,Xd(e))}function Bgn(e,t){return NW(EZ(e.d),t)}function Wgn(e,t){return NW(EZ(e.g),t)}function Hgn(e,t){return NW(EZ(e.j),t)}function Po(e,t){_i.call(this,e.b,t)}function Ugn(e,t){zn(ra(e.a),$gt(t))}function Ggn(e,t){zn(Wc(e.a),Igt(t))}function Vgn(e,t,i){Wu(i,i.i+e,i.j+t)}function uft(e,t,i){Ci(e.c[t.g],t.g,i)}function zgn(e,t,i){f(e.c,71).Gi(t,i)}function AQ(e,t,i){return Ci(e,t,i),i}function fft(e){Ma(e.Sf(),new $rt(e))}function VS(e){return e!=null?ti(e):0}function Kgn(e){return e==null?0:ti(e)}function O$(e){Or(),fm.call(this,e)}function dft(e){this.a=e,Eye.call(this,e)}function Kd(){Kd=F,h.Math.log(2)}function Hu(){Hu=F,Bp=(bct(),EDt)}function hft(){hft=F,aae=new x6(Sce)}function ir(){ir=F,new pft,new st}function pft(){new Fn,new Fn,new Fn}function qgn(){throw ne(new ng(X$t))}function Xgn(){throw ne(new ng(X$t))}function Jgn(){throw ne(new ng(J$t))}function Ygn(){throw ne(new ng(J$t))}function TQ(e){this.a=e,fF.call(this,e)}function $Q(e){this.a=e,fF.call(this,e)}function bft(e,t){Nm(),this.a=e,this.b=t}function Qgn(e,t){nr(t),YS(e).Jc(new H)}function Hi(e,t){lZ(e.c,e.c.length,t)}function _l(e){return e.at?1:0}function fme(e,t){return Jl(e,t)>0?e:t}function Oa(e,t,i){return{l:e,m:t,h:i}}function Zgn(e,t){e.a!=null&&Tut(t,e.a)}function e1n(e){rs(e,null),xo(e,null)}function t1n(e,t,i){return xr(e.g,i,t)}function zS(e,t,i){return N2e(t,i,e.c)}function n1n(e,t,i){return xr(e.k,i,t)}function r1n(e,t,i){return HDn(e,t,i),i}function i1n(e,t){return mu(),t.n.b+=e}function wft(e){Nve.call(this),this.b=e}function dme(e){Zme.call(this),this.a=e}function mft(){EF.call(this,"Range",2)}function JF(e){this.b=e,this.a=new st}function yft(e){this.b=new Wo,this.a=e}function vft(e){e.a=new ct,e.c=new ct}function _ft(e){e.a=new Fn,e.d=new Fn}function Sft(e){VZ(e,null),zZ(e,null)}function Eft(e,t){return GDn(e.a,t,null)}function o1n(e,t){return xr(e.a,t.a,t)}function Ho(e){return new tt(e.a,e.b)}function hme(e){return new tt(e.c,e.d)}function s1n(e){return new tt(e.c,e.d)}function N$(e,t){return nDn(e.c,e.b,t)}function ve(e,t){return e!=null&&Dte(e,t)}function IQ(e,t){return XRn(e.Kc(),t)!=-1}function YF(e){return e.Ob()?e.Pb():null}function l1n(e){this.b=(qt(),new fY(e))}function pme(e){this.a=e,Fn.call(this)}function kft(){f7.call(this,null,null)}function Rft(){iB.call(this,null,null)}function xft(){Jn.call(this,"INSTANCE",0)}function Cft(){hEe(),this.a=new G6(uTe)}function Aft(e){return Bh(e,0,e.length)}function a1n(e,t){return new zft(e.Kc(),t)}function bme(e,t){return e.a.Bc(t)!=null}function Tft(e,t){Vn(e),e.Gc(f(t,15))}function c1n(e,t,i){e.c.bd(t,f(i,136))}function u1n(e,t,i){e.c.Ui(t,f(i,136))}function $ft(e,t){e.c&&(Dye(t),ngt(t))}function f1n(e,t){e.q.setHours(t),X6(e,t)}function d1n(e,t){Am(t,e.a.a.a,e.a.a.b)}function h1n(e,t,i,s){Ci(e.a[t.g],i.g,s)}function PQ(e,t,i){return e.a[t.g][i.g]}function p1n(e,t){return e.e[t.c.p][t.p]}function b1n(e,t){return e.c[t.c.p][t.p]}function qd(e,t){return e.a[t.c.p][t.p]}function g1n(e,t){return e.j[t.p]=CPn(t)}function OQ(e,t){return e.a.Bc(t)!=null}function w1n(e,t){return Ae(je(t.a))<=e}function m1n(e,t){return Ae(je(t.a))>=e}function y1n(e,t){return y_e(e.f,t.Pg())}function zk(e,t){return e.a*t.a+e.b*t.b}function v1n(e,t){return e.a0?t/(e*e):t*100}function V1n(e,t){return e>0?t*t/e:t*t*100}function Ov(e,t){return f(th(e.a,t),34)}function z1n(e,t){return W1(),Gt(e,t.e,t)}function K1n(e,t,i){return wF(),i.Mg(e,t)}function q1n(e){return mb(),e.e.a+e.f.a/2}function X1n(e,t,i){return mb(),i.e.a-e*t}function J1n(e){return mb(),e.e.b+e.f.b/2}function Y1n(e,t,i){return mb(),i.e.b-e*t}function sdt(e){e.d=new rdt(e),e.e=new Fn}function ldt(){this.a=new Bm,this.b=new Bm}function adt(e){this.c=e,this.a=1,this.b=1}function cdt(e){are(),xst(this),this.Ff(e)}function Q1n(e,t,i){bW(),e.pf(t)&&i.Cd(e)}function Z1n(e,t,i){return lt(t,v_t(e,i))}function Am(e,t,i){return e.a+=t,e.b+=i,e}function e0n(e,t,i){return e.a*=t,e.b*=i,e}function Ome(e,t){return e.a=t.a,e.b=t.b,e}function oB(e){return e.a=-e.a,e.b=-e.b,e}function j$(e,t,i){return e.a-=t,e.b-=i,e}function udt(e){li.call(this),c6(this,e)}function fdt(){Jn.call(this,"GROW_TREE",0)}function ddt(){Jn.call(this,"POLYOMINO",0)}function nu(e,t,i){pc.call(this,e,t,i,2)}function t0n(e,t,i){k6(ra(e.a),t,$gt(i))}function hdt(e,t){g$(),f7.call(this,e,t)}function Nme(e,t){lg(),iB.call(this,e,t)}function pdt(e,t){lg(),Nme.call(this,e,t)}function bdt(e,t){lg(),iB.call(this,e,t)}function n0n(e,t){return e.c.Fc(f(t,136))}function r0n(e,t,i){k6(Wc(e.a),t,Igt(i))}function gdt(e){this.c=e,Da(e,0),La(e,0)}function FQ(e,t){Hu(),kB.call(this,e,t)}function wdt(e,t){Hu(),FQ.call(this,e,t)}function Mme(e,t){Hu(),FQ.call(this,e,t)}function Dme(e,t){Hu(),kB.call(this,e,t)}function mdt(e,t){Hu(),Mme.call(this,e,t)}function ydt(e,t){Hu(),Dme.call(this,e,t)}function vdt(e,t){Hu(),kB.call(this,e,t)}function i0n(e,t,i){return t.zl(e.e,e.c,i)}function o0n(e,t,i){return t.Al(e.e,e.c,i)}function Lme(e,t,i){return sU(Y7(e,t),i)}function BQ(e,t){return D1(e.e,f(t,54))}function s0n(e){return e==null?null:ILn(e)}function l0n(e){return e==null?null:kIn(e)}function a0n(e){return e==null?null:dl(e)}function c0n(e){return e==null?null:dl(e)}function gt(e){return W$(e==null||Iv(e)),e}function je(e){return W$(e==null||Pv(e)),e}function or(e){return W$(e==null||Eo(e)),e}function cb(e){e.o==null&&nPn(e)}function jme(e){if(!e)throw ne(new DO)}function u0n(e){if(!e)throw ne(new gY)}function In(e){if(!e)throw ne(new yl)}function Nv(e){if(!e)throw ne(new ac)}function _dt(e){if(!e)throw ne(new Bu)}function oC(){oC=F,Y9=new ilt,new olt}function JS(){JS=F,nE=new Xr("root")}function Fme(){ryt.call(this),this.Bb|=ys}function f0n(e,t){this.d=e,rrt(this),this.b=t}function Bme(e,t){hee.call(this,e),this.a=t}function Wme(e,t){hee.call(this,e),this.a=t}function Hme(e,t,i){fW.call(this,e,t,i,null)}function Sdt(e,t,i){fW.call(this,e,t,i,null)}function p7(e,t){this.c=e,Yx.call(this,e,t)}function F$(e,t){this.a=e,p7.call(this,e,t)}function Ume(e){this.q=new h.Date(rw(e))}function Edt(e){return e>8?0:e+1}function kdt(e,t){fh||lt(e.a,t)}function d0n(e,t){return zO(),jC(t.d.i,e)}function h0n(e,t){return b3(),new eRt(t,e)}function p0n(e,t,i){return e.Ne(t,i)<=0?i:t}function b0n(e,t,i){return e.Ne(t,i)<=0?t:i}function g0n(e,t){return f(th(e.b,t),143)}function w0n(e,t){return f(th(e.c,t),233)}function WQ(e){return f(yt(e.a,e.b),294)}function Rdt(e){return new tt(e.c,e.d+e.a)}function xdt(e){return mn(e),e?1231:1237}function Cdt(e){return mu(),oft(f(e,203))}function Mv(){Mv=F,j4e=Mt((su(),Vw))}function m0n(e,t){t.a?S8n(e,t):OQ(e.a,t.b)}function b7(e,t,i){++e.j,e.tj(),dee(e,t,i)}function Adt(e,t,i){++e.j,e.qj(t,e.Zi(t,i))}function Tdt(e,t,i){var s;s=e.fd(t),s.Rb(i)}function Gme(e,t,i){return i=xu(e,t,6,i),i}function Vme(e,t,i){return i=xu(e,t,3,i),i}function zme(e,t,i){return i=xu(e,t,9,i),i}function Mh(e,t){return P7(t,gRe),e.f=t,e}function Kme(e,t){return(t&Nr)%e.d.length}function $dt(e,t,i){return x3e(e.c,e.b,t,i)}function Idt(e,t){this.c=e,Gm.call(this,t)}function Pdt(e,t){this.a=e,mst.call(this,t)}function g7(e,t){this.a=e,mst.call(this,t)}function _i(e,t){Xr.call(this,e),this.a=t}function qme(e,t){w0e.call(this,e),this.a=t}function HQ(e,t){w0e.call(this,e),this.a=t}function y0n(e){A2e.call(this,0,0),this.f=e}function Odt(e,t,i){return e.a+=Bh(t,0,i),e}function w7(e){return!e.a&&(e.a=new xe),e.a}function Xme(e,t){var i;return i=e.e,e.e=t,i}function Jme(e,t){var i;return i=t,!!e.Fe(i)}function v0n(e,t){return cn(),e==t?0:e?1:-1}function Dv(e,t){e.a.bd(e.b,t),++e.b,e.c=-1}function m7(e){e.b?m7(e.b):e.f.c.zc(e.e,e.d)}function Ndt(e){xc(e.e),e.d.b=e.d,e.d.a=e.d}function _0n(e,t,i){K0(),ert(e,t.Ve(e.a,i))}function Yme(e,t,i){return n3(e,f(t,22),i)}function Yf(e,t){return sF(new Array(t),e)}function S0n(e){return tr(x1(e,32))^tr(e)}function UQ(e){return String.fromCharCode(e)}function E0n(e){return e==null?null:e.message}function k0n(e,t,i){return e.apply(t,i)}function R0n(e,t){var i;i=e[Hre],i.call(e,t)}function x0n(e,t){var i;i=e[Hre],i.call(e,t)}function C0n(e,t){return zO(),!jC(t.d.i,e)}function Qme(e,t,i,s){_B.call(this,e,t,i,s)}function Mdt(){sB.call(this),this.a=new Io}function Zme(){this.n=new Io,this.o=new Io}function Ddt(){this.b=new Io,this.c=new st}function Ldt(){this.a=new st,this.b=new st}function jdt(){this.a=new _1e,this.b=new Dst}function eye(){this.b=new hg,this.a=new hg}function Fdt(){this.b=new Gi,this.a=new Gi}function Bdt(){this.b=new Fn,this.a=new Fn}function Wdt(){this.b=new hat,this.a=new jJe}function Hdt(){this.a=new Qtt,this.b=new TXe}function Udt(){this.a=new st,this.d=new st}function sB(){this.n=new Pk,this.i=new Vk}function Gdt(e){this.a=(Su(e,b_),new ka(e))}function Vdt(e){this.a=(Su(e,b_),new ka(e))}function A0n(e){return e<100?null:new y1(e)}function T0n(e,t){return e.n.a=(mn(t),t+10)}function $0n(e,t){return e.n.a=(mn(t),t+10)}function I0n(e,t){return t==e||lA(UH(t),e)}function zdt(e,t){return xr(e.a,t,"")==null}function P0n(e,t){var i;return i=t.qi(e.a),i}function Mr(e,t){return e.a+=t.a,e.b+=t.b,e}function uo(e,t){return e.a-=t.a,e.b-=t.b,e}function O0n(e){return xv(e.j.c,0),e.a=-1,e}function tye(e,t,i){return i=xu(e,t,11,i),i}function N0n(e,t,i){i!=null&&MW(t,Kte(e,i))}function M0n(e,t,i){i!=null&&DW(t,Kte(e,i))}function Xk(e,t,i,s){qe.call(this,e,t,i,s)}function nye(e,t,i,s){qe.call(this,e,t,i,s)}function Kdt(e,t,i,s){nye.call(this,e,t,i,s)}function qdt(e,t,i,s){IB.call(this,e,t,i,s)}function GQ(e,t,i,s){IB.call(this,e,t,i,s)}function rye(e,t,i,s){IB.call(this,e,t,i,s)}function Xdt(e,t,i,s){GQ.call(this,e,t,i,s)}function iye(e,t,i,s){GQ.call(this,e,t,i,s)}function en(e,t,i,s){rye.call(this,e,t,i,s)}function Jdt(e,t,i,s){iye.call(this,e,t,i,s)}function Ydt(e,t,i,s){nve.call(this,e,t,i,s)}function Lv(e,t){Hs.call(this,kI+e+xw+t)}function oye(e,t){return e.jk().wi().ri(e,t)}function sye(e,t){return e.jk().wi().ti(e,t)}function Qdt(e,t){return mn(e),Ne(e)===Ne(t)}function Ht(e,t){return mn(e),Ne(e)===Ne(t)}function D0n(e,t){return e.b.Bd(new _ct(e,t))}function L0n(e,t){return e.b.Bd(new Sct(e,t))}function Zdt(e,t){return e.b.Bd(new Ect(e,t))}function j0n(e,t){return e.e=f(e.d.Kb(t),159)}function lye(e,t,i){return e.lastIndexOf(t,i)}function F0n(e,t,i){return Qr(e[t.a],e[i.a])}function B0n(e,t){return Xe(t,(pt(),c9),e)}function W0n(e,t){return Xl(t.a.d.p,e.a.d.p)}function H0n(e,t){return Xl(e.a.d.p,t.a.d.p)}function U0n(e,t){return Qr(e.c-e.s,t.c-t.s)}function G0n(e,t){return Qr(e.b.e.a,t.b.e.a)}function V0n(e,t){return Qr(e.c.e.a,t.c.e.a)}function eht(e){return e.c?il(e.c.a,e,0):-1}function Jk(e){return e==Gw||e==jp||e==ya}function aye(e,t){this.c=e,wZ.call(this,e,t)}function tht(e,t,i){this.a=e,$me.call(this,t,i)}function nht(e){this.c=e,KF.call(this,aM,0)}function rht(e,t,i){this.c=t,this.b=i,this.a=e}function y7(e){lC(),this.d=e,this.a=new qS}function iht(e){Dh(),this.a=(qt(),new Vx(e))}function z0n(e,t){ab(e.f)?q8n(e,t):R6n(e,t)}function oht(e,t){oyn.call(this,e,e.length,t)}function K0n(e,t){fh||t&&(e.d=t)}function sht(e,t){return ve(t,15)&&N3t(e.c,t)}function q0n(e,t,i){return f(e.c,71).Wk(t,i)}function lB(e,t,i){return f(e.c,71).Xk(t,i)}function X0n(e,t,i){return i0n(e,f(t,343),i)}function cye(e,t,i){return o0n(e,f(t,343),i)}function J0n(e,t,i){return C2t(e,f(t,343),i)}function lht(e,t,i){return j6n(e,f(t,343),i)}function B$(e,t){return t==null?null:Zv(e.b,t)}function uye(e){return Pv(e)?(mn(e),e):e.ue()}function aB(e){return!isNaN(e)&&!isFinite(e)}function VQ(e){vft(this),wu(this),Do(this,e)}function Rc(e){CQ(this),xye(this.c,0,e.Pc())}function Uu(e,t,i){this.a=e,this.b=t,this.c=i}function aht(e,t,i){this.a=e,this.b=t,this.c=i}function cht(e,t,i){this.d=e,this.b=i,this.a=t}function uht(e){this.a=e,lb(),Gl(Date.now())}function fht(e){iu(e.a),R_e(e.c,e.b),e.b=null}function zQ(){zQ=F,f4e=new at,R6t=new Ye}function dht(){dht=F,ADt=Fe(ho,on,1,0,5,1)}function hht(){hht=F,zDt=Fe(ho,on,1,0,5,1)}function fye(){fye=F,KDt=Fe(ho,on,1,0,5,1)}function Dh(){Dh=F,new v0e((qt(),qt(),ps))}function Y0n(e){return RC(),Yn((ywt(),A6t),e)}function Q0n(e){return Tc(),Yn((cwt(),N6t),e)}function Z0n(e){return bH(),Yn((q1t(),B6t),e)}function ewn(e){return SW(),Yn((X1t(),W6t),e)}function twn(e){return YH(),Yn((qyt(),H6t),e)}function nwn(e){return Pd(),Yn((lwt(),V6t),e)}function rwn(e){return Ac(),Yn((swt(),K6t),e)}function iwn(e){return Ya(),Yn((awt(),X6t),e)}function own(e){return fU(),Yn((Gut(),mIt),e)}function swn(e){return Jm(),Yn((_wt(),vIt),e)}function lwn(e){return _3(),Yn((Ewt(),SIt),e)}function awn(e){return I6(),Yn((Swt(),RIt),e)}function cwn(e){return bF(),Yn((v1t(),xIt),e)}function uwn(e){return EW(),Yn((J1t(),UIt),e)}function fwn(e){return l6(),Yn((uwt(),b5t),e)}function dwn(e){return Yo(),Yn((imt(),y5t),e)}function hwn(e){return WC(),Yn((Rwt(),k5t),e)}function pwn(e){return hw(),Yn((kwt(),$5t),e)}function dye(e,t){if(!e)throw ne(new hn(t))}function sC(e){if(!e)throw ne(new Us(q3e))}function KQ(e,t){if(e!=t)throw ne(new Bu)}function pht(e,t,i){this.a=e,this.b=t,this.c=i}function hye(e,t,i){this.a=e,this.b=t,this.c=i}function bht(e,t,i){this.a=e,this.b=t,this.c=i}function cB(e,t,i){this.b=e,this.a=t,this.c=i}function pye(e,t,i){this.b=e,this.c=t,this.a=i}function bye(e,t,i){this.a=e,this.b=t,this.c=i}function uB(e,t,i){this.e=t,this.b=e,this.d=i}function ght(e,t,i){this.b=e,this.a=t,this.c=i}function bwn(e,t,i){return K0(),e.a.Yd(t,i),t}function qQ(e){var t;return t=new co,t.e=e,t}function gye(e){var t;return t=new Wst,t.b=e,t}function v7(){v7=F,WG=new iKe,HG=new oKe}function fB(){fB=F,V5t=new PKe,G5t=new OKe}function Qf(){Qf=F,J5t=new Wqe,Y5t=new Hqe}function gwn(e){return qm(),Yn((W0t(),l8t),e)}function wwn(e){return ss(),Yn((Vut(),B5t),e)}function mwn(e){return qW(),Yn((Cwt(),U5t),e)}function ywn(e){return rh(),Yn((xwt(),e8t),e)}function vwn(e){return i_(),Yn((omt(),n8t),e)}function _wn(e){return XH(),Yn((Oyt(),a8t),e)}function Swn(e){return R3(),Yn(($mt(),c8t),e)}function Ewn(e){return pW(),Yn((r0t(),u8t),e)}function kwn(e){return u6(),Yn((F0t(),f8t),e)}function Rwn(e){return IW(),Yn((B0t(),d8t),e)}function xwn(e){return Eg(),Yn((smt(),h8t),e)}function Cwn(e){return nN(),Yn((Z1t(),p8t),e)}function Awn(e){return cA(),Yn((Omt(),v8t),e)}function Twn(e){return As(),Yn((uvt(),_8t),e)}function $wn(e){return BC(),Yn((U0t(),S8t),e)}function Iwn(e){return wb(),Yn((G0t(),k8t),e)}function Pwn(e){return rW(),Yn((Q1t(),R8t),e)}function Own(e){return MN(),Yn((Pmt(),y8t),e)}function Nwn(e){return uw(),Yn((H0t(),g8t),e)}function Mwn(e){return DH(),Yn((Imt(),w8t),e)}function Dwn(e){return X7(),Yn((e0t(),m8t),e)}function Lwn(e){return ef(),Yn((amt(),x8t),e)}function jwn(e){return Ag(),Yn((Vyt(),JOt),e)}function Fwn(e){return v6(),Yn((V0t(),YOt),e)}function Bwn(e){return n_(),Yn((Awt(),QOt),e)}function Wwn(e){return $6(),Yn((lmt(),ZOt),e)}function Hwn(e){return Sf(),Yn((fvt(),e7t),e)}function Uwn(e){return Wh(),Yn((Twt(),t7t),e)}function Gwn(e){return eN(),Yn((t0t(),n7t),e)}function Vwn(e){return Cs(),Yn((q0t(),i7t),e)}function zwn(e){return VW(),Yn((z0t(),o7t),e)}function Kwn(e){return w6(),Yn((K0t(),s7t),e)}function qwn(e){return qC(),Yn((X0t(),l7t),e)}function Xwn(e){return $W(),Yn((J0t(),a7t),e)}function Jwn(e){return XW(),Yn((Y0t(),c7t),e)}function Ywn(e){return Km(),Yn((owt(),R7t),e)}function Qwn(e){return i6(),Yn((n0t(),$7t),e)}function Zwn(e){return jh(),Yn((s0t(),L7t),e)}function emn(e){return Jd(),Yn((l0t(),F7t),e)}function tmn(e){return Td(),Yn((a0t(),eNt),e)}function nmn(e){return Wm(),Yn((c0t(),lNt),e)}function rmn(e){return k3(),Yn((Dwt(),aNt),e)}function imn(e){return K6(),Yn((zut(),cNt),e)}function omn(e){return m6(),Yn((Q0t(),uNt),e)}function smn(e){return y6(),Yn((Mwt(),ONt),e)}function lmn(e){return eW(),Yn((i0t(),NNt),e)}function amn(e){return jW(),Yn((o0t(),FNt),e)}function cmn(e){return PH(),Yn((cmt(),WNt),e)}function umn(e){return gN(),Yn((Z0t(),UNt),e)}function fmn(e){return gW(),Yn((u0t(),HNt),e)}function dmn(e){return RH(),Yn((Nwt(),cMt),e)}function hmn(e){return GW(),Yn((ewt(),uMt),e)}function pmn(e){return uH(),Yn((twt(),fMt),e)}function bmn(e){return _H(),Yn((nwt(),hMt),e)}function gmn(e){return iH(),Yn((rwt(),gMt),e)}function wmn(e){return aW(),Yn((f0t(),LMt),e)}function mmn(e){return MC(),Yn((Y1t(),F5t),e)}function ymn(e){return gn(),Yn((Nmt(),N5t),e)}function vmn(e){return wW(),Yn((iwt(),jMt),e)}function _mn(e){return Gee(),Yn((d0t(),FMt),e)}function Smn(e){return U6(),Yn((umt(),WMt),e)}function Emn(e){return mF(),Yn((A1t(),UMt),e)}function kmn(e){return SN(),Yn((dwt(),HMt),e)}function Rmn(e){return yF(),Yn((T1t(),VMt),e)}function xmn(e){return G7(),Yn((h0t(),zMt),e)}function Cmn(e){return LN(),Yn((fmt(),KMt),e)}function Amn(e){return h$(),Yn(($1t(),c9t),e)}function Tmn(e){return dN(),Yn((p0t(),u9t),e)}function $mn(e){return Nd(),Yn((hmt(),g9t),e)}function Imn(e){return Cg(),Yn((Iyt(),m9t),e)}function Pmn(e){return _p(),Yn((Mmt(),y9t),e)}function Omn(e){return bw(),Yn((Dmt(),R9t),e)}function Nmn(e){return Xi(),Yn((dmt(),G9t),e)}function Mmn(e){return nh(),Yn((hwt(),V9t),e)}function Dmn(e){return _b(),Yn((Lwt(),z9t),e)}function Lmn(e){return NH(),Yn((Lmt(),K9t),e)}function jmn(e){return vb(),Yn((fwt(),X9t),e)}function Fmn(e){return ku(),Yn((jwt(),Y9t),e)}function Bmn(e){return a_(),Yn((Kyt(),Q9t),e)}function Wmn(e){return a2(),Yn((pmt(),Z9t),e)}function Hmn(e){return Co(),Yn((jmt(),eDt),e)}function Umn(e){return $c(),Yn((Fmt(),tDt),e)}function Gmn(e){return ft(),Yn((bmt(),nDt),e)}function Vmn(e){return su(),Yn((Fwt(),lDt),e)}function zmn(e){return Gc(),Yn((zyt(),aDt),e)}function Kmn(e){return m3(),Yn((pwt(),cDt),e)}function qmn(e,t){return mn(e),e+(mn(t),t)}function Xmn(e){return XQ(),Yn((b0t(),uDt),e)}function Jmn(e){return sH(),Yn((Bwt(),fDt),e)}function Ymn(e){return JW(),Yn((Wwt(),pDt),e)}function lC(){lC=F,DIe=(ft(),wn),KV=_n}function XQ(){XQ=F,ZPe=new zht,eOe=new Ipt}function Qmn(e){return!e.e&&(e.e=new st),e.e}function JQ(e,t){this.c=e,this.a=t,this.b=t-e}function wht(e,t,i){this.a=e,this.b=t,this.c=i}function YQ(e,t,i){this.a=e,this.b=t,this.c=i}function wye(e,t,i){this.a=e,this.b=t,this.c=i}function mye(e,t,i){this.a=e,this.b=t,this.c=i}function mht(e,t,i){this.a=e,this.b=t,this.c=i}function yht(e,t,i){this.a=e,this.b=t,this.c=i}function cg(e,t,i){this.e=e,this.a=t,this.c=i}function vht(e,t,i){Hu(),Dve.call(this,e,t,i)}function QQ(e,t,i){Hu(),yve.call(this,e,t,i)}function yye(e,t,i){Hu(),yve.call(this,e,t,i)}function vye(e,t,i){Hu(),yve.call(this,e,t,i)}function _ht(e,t,i){Hu(),QQ.call(this,e,t,i)}function _ye(e,t,i){Hu(),QQ.call(this,e,t,i)}function Sht(e,t,i){Hu(),_ye.call(this,e,t,i)}function Eht(e,t,i){Hu(),yye.call(this,e,t,i)}function kht(e,t,i){Hu(),vye.call(this,e,t,i)}function ZQ(e){_B.call(this,e.d,e.c,e.a,e.b)}function Sye(e){_B.call(this,e.d,e.c,e.a,e.b)}function Eye(e){this.d=e,rrt(this),this.b=Yyn(e.d)}function Zmn(e){return fA(),Yn((Pyt(),CDt),e)}function _7(e,t){return nr(e),nr(t),new Pat(e,t)}function Yk(e,t){return nr(e),nr(t),new Lht(e,t)}function eyn(e,t){return nr(e),nr(t),new jht(e,t)}function tyn(e,t){return nr(e),nr(t),new Wat(e,t)}function eZ(e){return In(e.b!=0),Xu(e,e.a.a)}function nyn(e){return In(e.b!=0),Xu(e,e.c.b)}function ryn(e){return!e.c&&(e.c=new Dx),e.c}function aC(e){var t;return t=new st,kee(t,e),t}function iyn(e){var t;return t=new Gi,kee(t,e),t}function Rht(e){var t;return t=new R0e,Lee(t,e),t}function S7(e){var t;return t=new li,Lee(t,e),t}function f(e,t){return W$(e==null||Dte(e,t)),e}function oyn(e,t,i){kpt.call(this,t,i),this.a=e}function xht(e,t){this.c=e,this.b=t,this.a=!1}function Cht(){this.a=";,;",this.b="",this.c=""}function Aht(e,t,i){this.b=e,Fut.call(this,t,i)}function kye(e,t,i){this.c=e,kF.call(this,t,i)}function Rye(e,t,i){eC.call(this,e,t),this.b=i}function xye(e,t,i){mke(i,0,e,t,i.length,!1)}function bp(e,t,i,s,a){e.b=t,e.c=i,e.d=s,e.a=a}function Cye(e,t,i,s,a){e.d=t,e.c=i,e.a=s,e.b=a}function syn(e,t){t&&(e.b=t,e.a=(A1(t),t.a))}function E7(e,t){if(!e)throw ne(new hn(t))}function Qk(e,t){if(!e)throw ne(new Us(t))}function Aye(e,t){if(!e)throw ne(new Dlt(t))}function lyn(e,t){return gF(),Xl(e.d.p,t.d.p)}function ayn(e,t){return mb(),Qr(e.e.b,t.e.b)}function cyn(e,t){return mb(),Qr(e.e.a,t.e.a)}function uyn(e,t){return Xl(Uht(e.d),Uht(t.d))}function dB(e,t){return t&&DB(e,t.d)?t:null}function fyn(e,t){return t==(ft(),wn)?e.c:e.d}function Tye(e){return O1(uvn(ul(e)?yf(e):e))}function dyn(e){return new tt(e.c+e.b,e.d+e.a)}function Tht(e){return e!=null&&!_te(e,j5,F5)}function hyn(e,t){return(l_t(e)<<4|l_t(t))&Ji}function $ht(e,t,i,s,a){e.c=t,e.d=i,e.b=s,e.a=a}function $ye(e){var t,i;t=e.b,i=e.c,e.b=i,e.c=t}function Iye(e){var t,i;i=e.d,t=e.a,e.d=t,e.a=i}function pyn(e,t){var i;return i=e.c,cSe(e,t),i}function Pye(e,t){return t<0?e.g=-1:e.g=t,e}function hB(e,t){return S3n(e),e.a*=t,e.b*=t,e}function Iht(e,t,i){Rmt.call(this,t,i),this.d=e}function k7(e,t,i){Ywe.call(this,e,t),this.c=i}function pB(e,t,i){Ywe.call(this,e,t),this.c=i}function Oye(e){fye(),Hj.call(this),this.ci(e)}function Pht(){SC(),Mvn.call(this,(_1(),Nf))}function Oht(e){return Or(),new gp(0,e)}function Nht(){Nht=F,Lce=(qt(),new uY(Boe))}function bB(){bB=F,new G2e((kY(),Qoe),(EY(),Yoe))}function Mht(){Mht=F,YAe=Fe(Ko,rt,17,256,0,1)}function Dht(){this.b=Ae(je(dt((od(),Ise))))}function tZ(e){this.b=e,this.a=X0(this.b.a).Od()}function Lht(e,t){this.b=e,this.a=t,tY.call(this)}function jht(e,t){this.a=e,this.b=t,tY.call(this)}function Fht(e,t,i){this.a=e,WS.call(this,t,i)}function Bht(e,t,i){this.a=e,WS.call(this,t,i)}function cC(e,t,i){var s;s=new Bv(i),Id(e,t,s)}function Nye(e,t,i){var s;return s=e[t],e[t]=i,s}function gB(e){var t;return t=e.slice(),wee(t,e)}function wB(e){var t;return t=e.n,e.a.b+t.d+t.a}function Wht(e){var t;return t=e.n,e.e.b+t.d+t.a}function Mye(e){var t;return t=e.n,e.e.a+t.b+t.c}function Dye(e){e.a.b=e.b,e.b.a=e.a,e.a=e.b=null}function hr(e,t){return Ai(e,t,e.c.b,e.c),!0}function byn(e){return e.a?e.a:TZ(e)}function gyn(e){return s3(),Sp(e)==di(F1(e))}function wyn(e){return s3(),F1(e)==di(Sp(e))}function Tm(e,t){return M6(e,new eC(t.a,t.b))}function myn(e,t){return jB(),Gte(e,t),new cbt(e,t)}function yyn(e,t){return e.c=t)throw ne(new P0e)}function jv(e,t){return vN(e,(mn(t),new urt(t)))}function e3(e,t){return vN(e,(mn(t),new frt(t)))}function xpt(e,t,i){return Vjn(e,f(t,12),f(i,12))}function Cpt(e){return bc(),f(e,12).g.c.length!=0}function Apt(e){return bc(),f(e,12).e.c.length!=0}function rvn(e,t){return b3(),Qr(t.a.o.a,e.a.o.a)}function ivn(e,t){t.Bb&Vl&&!e.a.o&&(e.a.o=t)}function ovn(e,t){t.Ug("General 'Rotator",1),yLn(e)}function svn(e,t,i){t.qf(i,Ae(je(En(e.b,i)))*e.a)}function Tpt(e,t,i){return m2(),DC(e,t)&&DC(e,i)}function V$(e){return $c(),!e.Hc(Mb)&&!e.Hc(f0)}function lvn(e){return e.e?E_e(e.e):null}function z$(e){return ul(e)?""+e:O3t(e)}function tve(e){var t;for(t=e;t.f;)t=t.f;return t}function avn(e,t,i){return Ci(t,0,Wye(t[0],i[0])),t}function ug(e,t,i,s){var a;a=e.i,a.i=t,a.a=i,a.b=s}function qe(e,t,i,s){zi.call(this,e,t,i),this.b=s}function yo(e,t,i,s,a){bee.call(this,e,t,i,s,a,-1)}function K$(e,t,i,s,a){z7.call(this,e,t,i,s,a,-1)}function IB(e,t,i,s){k7.call(this,e,t,i),this.b=s}function $pt(e){Cut.call(this,e,!1),this.a=!1}function Ipt(){sut.call(this,"LOOKAHEAD_LAYOUT",1)}function Ppt(e){this.b=e,Kk.call(this,e),Lft(this)}function Opt(e){this.b=e,d7.call(this,e),jft(this)}function Fv(e,t,i){this.a=e,Xk.call(this,t,i,5,6)}function nve(e,t,i,s){this.b=e,zi.call(this,t,i,s)}function Npt(e,t){this.b=e,Bnt.call(this,e.b),this.a=t}function Mpt(e){this.a=mSt(e.a),this.b=new Rc(e.b)}function rve(e,t){Nm(),Fbn.call(this,e,eH(new kc(t)))}function PB(e,t){return Or(),new mve(e,t,0)}function pZ(e,t){return Or(),new mve(6,e,t)}function Uo(e,t){for(mn(t);e.Ob();)t.Cd(e.Pb())}function Na(e,t){return Eo(t)?LZ(e,t):!!xs(e.f,t)}function bZ(e,t){return t.Vh()?D1(e.b,f(t,54)):t}function cvn(e,t){return Ht(e.substr(0,t.length),t)}function wp(e){return new kn(new kme(e.a.length,e.a))}function OB(e){return new tt(e.c+e.b/2,e.d+e.a/2)}function uvn(e){return Oa(~e.l&Vc,~e.m&Vc,~e.h&Ab)}function gZ(e){return typeof e===iM||typeof e===fre}function xc(e){e.f=new tft(e),e.i=new nft(e),++e.g}function Dpt(e){if(!e)throw ne(new yl);return e.d}function t3(e){var t;return t=g6(e),In(t!=null),t}function fvn(e){var t;return t=CCn(e),In(t!=null),t}function fC(e,t){var i;return i=e.a.gc(),m_e(t,i),i-t}function Zi(e,t){var i;return i=e.a.zc(t,e),i==null}function x7(e,t){return e.a.zc(t,(cn(),Y1))==null}function ive(e){return new Wt(null,gvn(e,e.length))}function ove(e,t,i){return rxt(e,f(t,42),f(i,176))}function n3(e,t,i){return nd(e.a,t),Nye(e.b,t.g,i)}function dvn(e,t,i){uC(i,e.a.c.length),Ku(e.a,i,t)}function De(e,t,i,s){Nvt(t,i,e.length),hvn(e,t,i,s)}function hvn(e,t,i,s){var a;for(a=t;a0?h.Math.log(e/t):-100}function jpt(e,t){return Jl(e,t)<0?-1:Jl(e,t)>0?1:0}function C7(e,t){Tft(e,ve(t,160)?t:f(t,2036).Rl())}function cve(e,t){if(e==null)throw ne(new Mk(t))}function gvn(e,t){return m3n(t,e.length),new Vht(e,t)}function uve(e,t){return t?Do(e,t):!1}function wvn(){return nF(),se(ie(i6t,1),Je,549,0,[tse])}function X$(e){return e.e==0?e:new Y0(-e.e,e.d,e.a)}function mvn(e,t){return Qr(e.c.c+e.c.b,t.c.c+t.c.b)}function A7(e,t){Ai(e.d,t,e.b.b,e.b),++e.a,e.c=null}function Fpt(e,t){return e.c?Fpt(e.c,t):lt(e.b,t),e}function yvn(e,t,i){var s;return s=Kv(e,t),ZZ(e,t,i),s}function Bpt(e,t,i){var s;for(s=0;s=e.g}function Ci(e,t,i){return u0n(i==null||iMn(e,i)),e[t]=i}function bve(e,t){return pn(t,e.length+1),e.substr(t)}function xZ(e,t){for(mn(t);e.c=e?new dwe:H3n(e-1)}function Go(e){return!e.a&&e.c?e.c.b:e.a}function vve(e){return ve(e,616)?e:new ogt(e)}function A1(e){e.c?A1(e.c):(L1(e),e.d=!0)}function Q$(e){e.c?e.c.$e():(e.d=!0,sOn(e))}function sbt(e){e.b=!1,e.c=!1,e.d=!1,e.a=!1}function lbt(e){var t,i;return t=e.c.i.c,i=e.d.i.c,t==i}function jvn(e,t){var i;i=e.Ih(t),i>=0?e.ki(i):cke(e,t)}function abt(e,t){e.c<0||e.b.b0;)e=e<<1|(e<0?1:0);return e}function gbt(e,t){var i;return i=new ca(e),sn(t.c,i),i}function wbt(e,t){e.u.Hc(($c(),Mb))&&U5n(e,t),lkn(e,t)}function Ul(e,t){return Ne(e)===Ne(t)||e!=null&&Lr(e,t)}function Ds(e,t){return sZ(e.a,t)?e.b[f(t,22).g]:null}function Yvn(){return bF(),se(ie(W4e,1),Je,489,0,[kse])}function Qvn(){return mF(),se(ie(b8e,1),Je,490,0,[qae])}function Zvn(){return yF(),se(ie(GMt,1),Je,558,0,[Xae])}function e_n(){return h$(),se(ie(D8e,1),Je,539,0,[C9])}function FB(e){return!e.n&&(e.n=new qe(Fs,e,1,7)),e.n}function AZ(e){return!e.c&&(e.c=new qe(Mc,e,9,9)),e.c}function kve(e){return!e.c&&(e.c=new en(Dn,e,5,8)),e.c}function t_n(e){return!e.b&&(e.b=new en(Dn,e,4,7)),e.b}function T7(e){return e.j.c.length=0,xve(e.c),O0n(e.a),e}function gC(e){return e.e==VA&&ypn(e,XAn(e.g,e.b)),e.e}function $7(e){return e.f==VA&&_pn(e,BTn(e.g,e.b)),e.f}function Cr(e,t,i,s){return Byt(e,t,i,!1),tH(e,s),e}function mbt(e,t){this.b=e,wZ.call(this,e,t),Lft(this)}function ybt(e,t){this.b=e,aye.call(this,e,t),jft(this)}function Z$(e){this.d=e,this.a=this.d.b,this.b=this.d.c}function Rve(e,t){this.b=e,this.c=t,this.a=new Bk(this.b)}function Jo(e,t){return pn(t,e.length),e.charCodeAt(t)}function n_n(e,t){d2e(e,Ae(yb(t,"x")),Ae(yb(t,"y")))}function r_n(e,t){d2e(e,Ae(yb(t,"x")),Ae(yb(t,"y")))}function Br(e,t){return L1(e),new Wt(e,new D_e(t,e.a))}function nl(e,t){return L1(e),new Wt(e,new __e(t,e.a))}function Wv(e,t){return L1(e),new Bme(e,new A0t(t,e.a))}function BB(e,t){return L1(e),new Wme(e,new T0t(t,e.a))}function i_n(e,t){return new Ubt(f(nr(e),50),f(nr(t),50))}function o_n(e,t){return Qr(e.d.c+e.d.b/2,t.d.c+t.d.b/2)}function vbt(e,t,i){i.a?La(e,t.b-e.f/2):Da(e,t.a-e.g/2)}function s_n(e,t){return Qr(e.g.c+e.g.b/2,t.g.c+t.g.b/2)}function l_n(e,t){return bwe(),Qr((mn(e),e),(mn(t),t))}function a_n(e){return e!=null&&UO(Fz,e.toLowerCase())}function xve(e){var t;for(t=e.Kc();t.Ob();)t.Pb(),t.Qb()}function YS(e){var t;return t=e.b,!t&&(e.b=t=new Pnt(e)),t}function TZ(e){var t;return t=z3n(e),t||null}function _bt(e,t){var i,s;return i=e/t,s=oo(i),i>s&&++s,s}function c_n(e,t,i){var s;s=f(e.d.Kb(i),159),s&&s.Nb(t)}function u_n(e,t,i){d9n(e.a,i),URn(i),O8n(e.b,i),P9n(t,i)}function WB(e,t,i,s){this.a=e,this.c=t,this.b=i,this.d=s}function Cve(e,t,i,s){this.c=e,this.b=t,this.a=i,this.d=s}function Sbt(e,t,i,s){this.c=e,this.b=t,this.d=i,this.a=s}function Gu(e,t,i,s){this.c=e,this.d=t,this.b=i,this.a=s}function Ebt(e,t,i,s){this.a=e,this.d=t,this.c=i,this.b=s}function $Z(e,t,i,s){this.a=e,this.e=t,this.d=i,this.c=s}function kbt(e,t,i,s){this.a=e,this.c=t,this.d=i,this.b=s}function IZ(e,t,i){this.a=eRe,this.d=e,this.b=t,this.c=i}function i3(e,t,i,s){Jn.call(this,e,t),this.a=i,this.b=s}function Rbt(e,t){this.d=(mn(e),e),this.a=16449,this.c=t}function xbt(e){this.a=new st,this.e=Fe(Xn,rt,53,e,0,2)}function f_n(e){e.Ug("No crossing minimization",1),e.Vg()}function Cbt(){vl.call(this,"There is no more element.")}function Abt(e,t,i,s){this.a=e,this.b=t,this.c=i,this.d=s}function Tbt(e,t,i,s){this.a=e,this.b=t,this.c=i,this.d=s}function Z0(e,t,i,s){this.e=e,this.a=t,this.c=i,this.d=s}function $bt(e,t,i,s){this.a=e,this.c=t,this.d=i,this.b=s}function Ibt(e,t,i,s){Hu(),$0t.call(this,t,i,s),this.a=e}function Pbt(e,t,i,s){Hu(),$0t.call(this,t,i,s),this.a=e}function PZ(e,t,i){var s,a;return s=B3e(e),a=t.ti(i,s),a}function ub(e){var t,i;return i=(t=new dm,t),CC(i,e),i}function OZ(e){var t,i;return i=(t=new dm,t),UEe(i,e),i}function d_n(e,t){var i;return i=En(e.f,t),SSe(t,i),null}function Obt(e){return!e.b&&(e.b=new qe(Fi,e,12,3)),e.b}function Nbt(e){return W$(e==null||gZ(e)&&e.Tm!==ae),e}function HB(e){return e.n&&(e.e!==MCt&&e.je(),e.j=null),e}function wC(e){if(Hc(e.d),e.d.d!=e.c)throw ne(new Bu)}function Ave(e){return In(e.b0&&d2t(this)}function Mbt(e,t){this.a=e,f0n.call(this,e,f(e.d,15).fd(t))}function h_n(e,t){return Qr(dc(e)*ru(e),dc(t)*ru(t))}function p_n(e,t){return Qr(dc(e)*ru(e),dc(t)*ru(t))}function b_n(e){return ry(e)&&wt(gt(Qe(e,(pt(),Nw))))}function g_n(e,t){return Gt(e,f(V(t,(pt(),f4)),17),t)}function w_n(e,t){return f(V(e,(nt(),Z3)),15).Fc(t),t}function Tve(e,t){return e.b=t.b,e.c=t.c,e.d=t.d,e.a=t.a,e}function Dbt(e,t,i,s){this.b=e,this.c=s,KF.call(this,t,i)}function m_n(e,t,i){e.i=0,e.e=0,t!=i&&yvt(e,t,i)}function y_n(e,t,i){e.i=0,e.e=0,t!=i&&vvt(e,t,i)}function v_n(e,t,i){return d$(),KCn(f(En(e.e,t),529),i)}function o3(e){var t;return t=e.f,t||(e.f=new Yx(e,e.c))}function Lbt(e,t){return l2(e.j,t.s,t.c)+l2(t.e,e.s,e.c)}function jbt(e,t){e.e&&!e.e.a&&(Rst(e.e,t),jbt(e.e,t))}function Fbt(e,t){e.d&&!e.d.a&&(Rst(e.d,t),Fbt(e.d,t))}function __n(e,t){return-Qr(dc(e)*ru(e),dc(t)*ru(t))}function S_n(e){return f(e.ld(),149).Pg()+":"+dl(e.md())}function Bbt(){dne(this,new W1e),this.wb=(C1(),un),qx()}function Wbt(e){this.b=new st,eo(this.b,this.b),this.a=e}function $ve(e,t){new li,this.a=new cc,this.b=e,this.c=t}function jm(){jm=F,c4e=new Me,cse=new Me,u4e=new vt}function qt(){qt=F,ps=new we,Ip=new He,CG=new Ue}function Ive(){Ive=F,L6t=new ki,F6t=new zye,j6t=new Ri}function s3(){s3=F,MG=new st,Ase=new Fn,Cse=new st}function UB(e,t){if(e==null)throw ne(new Mk(t));return e}function GB(e){return!e.a&&(e.a=new qe($r,e,10,11)),e.a}function Gr(e){return!e.q&&(e.q=new qe(Of,e,11,10)),e.q}function Ve(e){return!e.s&&(e.s=new qe(rc,e,21,17)),e.s}function E_n(e){return nr(e),ASt(new kn(xn(e.a.Kc(),new O)))}function k_n(e,t){return ou(e),ou(t),Mlt(f(e,22),f(t,22))}function ew(e,t,i){var s,a;s=uye(i),a=new Gj(s),Id(e,t,a)}function MZ(e,t,i,s,a,c){z7.call(this,e,t,i,s,a,c?-2:-1)}function Hbt(e,t,i,s){Ywe.call(this,t,i),this.b=e,this.a=s}function Ubt(e,t){Vpn.call(this,new hZ(e)),this.a=e,this.b=t}function Pve(e){this.b=e,this.c=e,e.e=null,e.c=null,this.a=1}function R_n(e){Qf();var t;t=f(e.g,10),t.n.a=e.d.c+t.d.b}function mC(){mC=F;var e,t;t=!PAn(),e=new Le,ise=t?new pe:e}function DZ(e){return qt(),ve(e,59)?new PY(e):new tB(e)}function VB(e){return ve(e,16)?new H$(f(e,16)):iyn(e.Kc())}function x_n(e){return new Bft(e,e.e.Rd().gc()*e.c.Rd().gc())}function C_n(e){return new Wft(e,e.e.Rd().gc()*e.c.Rd().gc())}function Ove(e){return e&&e.hashCode?e.hashCode():Cm(e)}function LZ(e,t){return t==null?!!xs(e.f,null):Uyn(e.i,t)}function A_n(e,t){var i;return i=bme(e.a,t),i&&(t.d=null),i}function Gbt(e,t,i){return e.f?e.f.ef(t,i):!1}function I7(e,t,i,s){Ci(e.c[t.g],i.g,s),Ci(e.c[i.g],t.g,s)}function jZ(e,t,i,s){Ci(e.c[t.g],t.g,i),Ci(e.b[t.g],t.g,s)}function T_n(e,t,i){return Ae(je(i.a))<=e&&Ae(je(i.b))>=t}function Vbt(e,t){this.g=e,this.d=se(ie(Op,1),$g,10,0,[t])}function zbt(e){this.c=e,this.b=new sg(f(nr(new xi),50))}function Kbt(e){this.c=e,this.b=new sg(f(nr(new YVe),50))}function qbt(e){this.b=e,this.a=new sg(f(nr(new yr),50))}function Xbt(){this.b=new Gi,this.d=new li,this.e=new O0e}function Nve(){this.c=new Io,this.d=new Io,this.e=new Io}function Fm(){this.a=new cc,this.b=(Su(3,b_),new ka(3))}function fg(e,t){this.e=e,this.a=ho,this.b=X3t(t),this.c=t}function zB(e){this.c=e.c,this.d=e.d,this.b=e.b,this.a=e.a}function Jbt(e,t,i,s,a,c){this.a=e,$ee.call(this,t,i,s,a,c)}function Ybt(e,t,i,s,a,c){this.a=e,$ee.call(this,t,i,s,a,c)}function T1(e,t,i,s,a,c,b){return new tee(e.e,t,i,s,a,c,b)}function $_n(e,t,i){return i>=0&&Ht(e.substr(i,t.length),t)}function Qbt(e,t){return ve(t,149)&&Ht(e.b,f(t,149).Pg())}function I_n(e,t){return e.a?t.Gh().Kc():f(t.Gh(),71).Ii()}function Zbt(e,t){var i;return i=e.b.Qc(t),K1t(i,e.b.gc()),i}function P7(e,t){if(e==null)throw ne(new Mk(t));return e}function rl(e){return e.u||(Bc(e),e.u=new Pdt(e,e)),e.u}function FZ(e){this.a=(qt(),ve(e,59)?new PY(e):new tB(e))}function Xa(e){var t;return t=f(dn(e,16),29),t||e.ii()}function KB(e,t){var i;return i=z0(e.Rm),t==null?i:i+": "+t}function Vu(e,t,i){return Mo(t,i,e.length),e.substr(t,i-t)}function egt(e,t){sB.call(this),V_e(this),this.a=e,this.c=t}function P_n(e){e&&KB(e,e.ie())}function O_n(e){oF(),h.setTimeout(function(){throw e},0)}function N_n(){return bH(),se(ie(m4e,1),Je,436,0,[wse,w4e])}function M_n(){return SW(),se(ie(v4e,1),Je,435,0,[y4e,mse])}function D_n(){return EW(),se(ie(q4e,1),Je,432,0,[Tse,DG])}function L_n(){return MC(),se(ie(j5t,1),Je,517,0,[QM,Use])}function j_n(){return rW(),se(ie(I$e,1),Je,429,0,[yle,$$e])}function F_n(){return nN(),se(ie(b$e,1),Je,428,0,[dV,p$e])}function B_n(){return pW(),se(ie(l$e,1),Je,431,0,[s$e,ile])}function W_n(){return eN(),se(ie(EIe,1),Je,430,0,[eae,tae])}function H_n(){return i6(),se(ie(T7t,1),Je,531,0,[a5,l5])}function U_n(){return jW(),se(ie(y5e,1),Je,501,0,[nz,rE])}function G_n(){return jh(),se(ie(D7t,1),Je,523,0,[Ny,Lg])}function V_n(){return Jd(),se(ie(j7t,1),Je,522,0,[Fw,ph])}function z_n(){return Td(),se(ie(Z7t,1),Je,528,0,[U_,i0])}function K_n(){return X7(),se(ie(m$e,1),Je,488,0,[w$e,pV])}function q_n(){return aW(),se(ie(a8e,1),Je,491,0,[Vae,l8e])}function X_n(){return Gee(),se(ie(p8e,1),Je,492,0,[d8e,h8e])}function J_n(){return eW(),se(ie(m5e,1),Je,433,0,[Eae,w5e])}function Y_n(){return gW(),se(ie(_5e,1),Je,434,0,[v5e,Tae])}function Q_n(){return Wm(),se(ie(sNt,1),Je,465,0,[o0,eE])}function Z_n(){return G7(),se(ie(g8e,1),Je,438,0,[Jae,hz])}function eSn(){return dN(),se(ie(j8e,1),Je,437,0,[bz,L8e])}function tSn(){return XQ(),se(ie($z,1),Je,347,0,[ZPe,eOe])}function qB(e,t,i,s){return i>=0?e.Uh(t,i,s):e.Ch(null,i,s)}function O7(e){return e.b.b==0?e.a.sf():eZ(e.b)}function nSn(e){if(e.p!=5)throw ne(new ac);return tr(e.f)}function rSn(e){if(e.p!=5)throw ne(new ac);return tr(e.k)}function Mve(e){return Ne(e.a)===Ne((Hee(),Nce))&&tDn(e),e.a}function iSn(e,t){e.b=t,e.c>0&&e.b>0&&(e.g=SB(e.c,e.b,e.a))}function oSn(e,t){e.c=t,e.c>0&&e.b>0&&(e.g=SB(e.c,e.b,e.a))}function tgt(e,t){rpn(this,new tt(e.a,e.b)),ipn(this,S7(t))}function Bm(){zpn.call(this,new Fk(qv(12))),vme(!0),this.a=2}function BZ(e,t,i){Or(),fm.call(this,e),this.b=t,this.a=i}function Dve(e,t,i){Hu(),Jj.call(this,t),this.a=e,this.b=i}function ngt(e){var t;t=e.c.d.b,e.b=t,e.a=e.c.d,t.a=e.c.d.b=e}function sSn(e){return e.b==0?null:(In(e.b!=0),Xu(e,e.a.a))}function ua(e,t){return t==null?tl(xs(e.f,null)):w$(e.i,t)}function rgt(e,t,i,s,a){return new pne(e,(RC(),hse),t,i,s,a)}function XB(e,t){return G1t(t),$3n(e,Fe(Xn,wr,28,t,15,1),t)}function JB(e,t){return UB(e,"set1"),UB(t,"set2"),new zat(e,t)}function lSn(e,t){var i=rse[e.charCodeAt(0)];return i??e}function igt(e,t){var i,s;return i=t,s=new jt,Ixt(e,i,s),s.d}function WZ(e,t,i,s){var a;a=new Mdt,t.a[i.g]=a,n3(e.b,s,a)}function aSn(e,t){var i;return i=C3n(e.f,t),Mr(oB(i),e.f.d)}function N7(e){var t;j3n(e.a),fft(e.a),t=new Kj(e.a),S2e(t)}function cSn(e,t){F3t(e,!0),Ma(e.e.Rf(),new pye(e,!0,t))}function uSn(e,t){return s3(),e==di(Sp(t))||e==di(F1(t))}function fSn(e,t){return mb(),f(V(t,(Il(),ip)),17).a==e}function oo(e){return Math.max(Math.min(e,Nr),-2147483648)|0}function ogt(e){this.a=f(nr(e),277),this.b=(qt(),new Cme(e))}function sgt(e,t,i){this.i=new st,this.b=e,this.g=t,this.a=i}function Lve(e,t,i){this.a=new st,this.e=e,this.f=t,this.c=i}function YB(e,t,i){this.c=new st,this.e=e,this.f=t,this.b=i}function lgt(e){sB.call(this),V_e(this),this.a=e,this.c=!0}function dSn(e){function t(){}return t.prototype=e||{},new t}function hSn(e){if(e.Ae())return null;var t=e.n;return _G[t]}function M7(e){return e.Db>>16!=3?null:f(e.Cb,27)}function Xd(e){return e.Db>>16!=9?null:f(e.Cb,27)}function agt(e){return e.Db>>16!=6?null:f(e.Cb,74)}function Wm(){Wm=F,o0=new Fwe(M3,0),eE=new Fwe(D3,1)}function jh(){jh=F,Ny=new Dwe(D3,0),Lg=new Dwe(M3,1)}function Jd(){Jd=F,Fw=new Lwe(Yre,0),ph=new Lwe("UP",1)}function cgt(){cgt=F,o6t=Qn((nF(),se(ie(i6t,1),Je,549,0,[tse])))}function ugt(e){var t;return t=new cF(qv(e.length)),MSe(t,e),t}function fgt(e,t){return e.b+=t.b,e.c+=t.c,e.d+=t.d,e.a+=t.a,e}function pSn(e,t){return Yyt(e,t)?(Kmt(e),!0):!1}function fb(e,t){if(t==null)throw ne(new $k);return NAn(e,t)}function D7(e,t){var i;i=e.q.getHours(),e.q.setDate(t),X6(e,i)}function jve(e,t,i){var s;s=e.Ih(t),s>=0?e.bi(s,i):Dke(e,t,i)}function dgt(e,t){var i;return i=e.Ih(t),i>=0?e.Wh(i):vne(e,t)}function hgt(e,t){var i;for(nr(t),i=e.a;i;i=i.c)t.Yd(i.g,i.i)}function HZ(e,t,i){var s;s=wvt(e,t,i),e.b=new BW(s.c.length)}function QS(e,t,i){QB(),e&&xr(Ice,e,t),e&&xr(X9,e,i)}function bSn(e,t){return fB(),cn(),f(t.a,17).a0}function Fve(e){var t;return t=e.d,t=e.bj(e.f),zn(e,t),t.Ob()}function pgt(e,t){var i;return i=new Uye(t),F2t(i,e),new Rc(i)}function mSn(e){if(e.p!=0)throw ne(new ac);return T$(e.f,0)}function ySn(e){if(e.p!=0)throw ne(new ac);return T$(e.k,0)}function bgt(e){return e.Db>>16!=7?null:f(e.Cb,241)}function yC(e){return e.Db>>16!=6?null:f(e.Cb,241)}function ggt(e){return e.Db>>16!=7?null:f(e.Cb,167)}function di(e){return e.Db>>16!=11?null:f(e.Cb,27)}function Hv(e){return e.Db>>16!=17?null:f(e.Cb,29)}function wgt(e){return e.Db>>16!=3?null:f(e.Cb,155)}function Bve(e){var t;return L1(e),t=new Gi,Br(e,new Ert(t))}function mgt(e,t){var i=e.a=e.a||[];return i[t]||(i[t]=e.ve(t))}function vSn(e,t){var i;i=e.q.getHours(),e.q.setMonth(t),X6(e,i)}function ygt(e,t){ZF(this),this.f=t,this.g=e,HB(this),this.je()}function vgt(e,t){this.a=e,this.c=Ho(this.a),this.b=new zB(t)}function _gt(e,t,i){this.a=t,this.c=e,this.b=(nr(i),new Rc(i))}function Sgt(e,t,i){this.a=t,this.c=e,this.b=(nr(i),new Rc(i))}function Egt(e){this.a=e,this.b=Fe(x7t,rt,2043,e.e.length,0,2)}function kgt(){this.a=new Oh,this.e=new Gi,this.g=0,this.i=0}function QB(){QB=F,Ice=new Fn,X9=new Fn,pgn(E6t,new fZe)}function Rgt(){Rgt=F,u7t=hc(new Ki,(Yo(),ll),(ss(),ZM))}function Wve(){Wve=F,f7t=hc(new Ki,(Yo(),ll),(ss(),ZM))}function xgt(){xgt=F,h7t=hc(new Ki,(Yo(),ll),(ss(),ZM))}function Cgt(){Cgt=F,I7t=gr(new Ki,(Yo(),ll),(ss(),BI))}function mu(){mu=F,N7t=gr(new Ki,(Yo(),ll),(ss(),BI))}function Agt(){Agt=F,M7t=gr(new Ki,(Yo(),ll),(ss(),BI))}function GZ(){GZ=F,B7t=gr(new Ki,(Yo(),ll),(ss(),BI))}function e6(e,t,i,s,a,c){return new gb(e.e,t,e.Lj(),i,s,a,c)}function Gs(e,t,i){return t==null?Ca(e.f,null,i):Ym(e.i,t,i)}function rs(e,t){e.c&&Ja(e.c.g,e),e.c=t,e.c&<(e.c.g,e)}function Oo(e,t){e.c&&Ja(e.c.a,e),e.c=t,e.c&<(e.c.a,e)}function Sl(e,t){e.i&&Ja(e.i.j,e),e.i=t,e.i&<(e.i.j,e)}function xo(e,t){e.d&&Ja(e.d.e,e),e.d=t,e.d&<(e.d.e,e)}function VZ(e,t){e.a&&Ja(e.a.k,e),e.a=t,e.a&<(e.a.k,e)}function zZ(e,t){e.b&&Ja(e.b.f,e),e.b=t,e.b&<(e.b.f,e)}function Tgt(e,t){Pvn(e,e.b,e.c),f(e.b.b,68),t&&f(t.b,68).b}function _Sn(e,t){return Qr(f(e.c,65).c.e.b,f(t.c,65).c.e.b)}function SSn(e,t){return Qr(f(e.c,65).c.e.a,f(t.c,65).c.e.a)}function ESn(e){return ate(),cn(),f(e.a,86).d.e!=0}function ZB(e,t){ve(e.Cb,184)&&(f(e.Cb,184).tb=null),Ra(e,t)}function KZ(e,t){ve(e.Cb,90)&&l_(Bc(f(e.Cb,90)),4),Ra(e,t)}function kSn(e,t){h2e(e,t),ve(e.Cb,90)&&l_(Bc(f(e.Cb,90)),2)}function RSn(e,t){var i,s;i=t.c,s=i!=null,s&&r3(e,new Bv(t.c))}function $gt(e){var t,i;return i=(qx(),t=new dm,t),CC(i,e),i}function Igt(e){var t,i;return i=(qx(),t=new dm,t),CC(i,e),i}function Pgt(e){for(var t;;)if(t=e.Pb(),!e.Ob())return t}function xSn(e,t,i){return lt(e.a,(jB(),Gte(t,i),new ym(t,i))),e}function fa(e,t){return Ss(),See(t)?new mB(t,e):new l7(t,e)}function L7(e){return Uh(),Jl(e,0)>=0?j1(e):X$(j1(gg(e)))}function CSn(e){var t;return t=f(gB(e.b),9),new Uu(e.a,t,e.c)}function Ogt(e,t){var i;return i=f(Zv(o3(e.a),t),16),i?i.gc():0}function Ngt(e,t,i){var s;o_t(t,i,e.c.length),s=i-t,cwe(e.c,t,s)}function dg(e,t,i){o_t(t,i,e.gc()),this.c=e,this.a=t,this.b=i-t}function l3(e){this.c=new li,this.b=e.b,this.d=e.c,this.a=e.a}function qZ(e){this.a=h.Math.cos(e),this.b=h.Math.sin(e)}function tw(e,t,i,s){this.c=e,this.d=s,VZ(this,t),zZ(this,i)}function Hve(e,t){Gpn.call(this,new Fk(qv(e))),Su(t,TCt),this.a=t}function Mgt(e,t,i){return new pne(e,(RC(),dse),null,!1,t,i)}function Dgt(e,t,i){return new pne(e,(RC(),pse),t,i,null,!1)}function ASn(){return Tc(),se(ie(qs,1),Je,108,0,[g4e,pl,k_])}function TSn(){return Ya(),se(ie(q6t,1),Je,472,0,[Ld,Z1,ad])}function $Sn(){return Ac(),se(ie(z6t,1),Je,471,0,[tp,Q1,ld])}function ISn(){return Pd(),se(ie(R_,1),Je,237,0,[Nl,Aa,Ml])}function PSn(){return l6(),se(ie(cTe,1),Je,391,0,[Ose,Pse,Nse])}function OSn(){return qm(),se(ie(Xse,1),Je,372,0,[Sy,e0,_y])}function NSn(){return u6(),se(ie(c$e,1),Je,322,0,[HI,n9,a$e])}function MSn(){return IW(),se(ie(f$e,1),Je,351,0,[u$e,fV,ole])}function DSn(){return uw(),se(ie(b8t,1),Je,460,0,[ale,o4,H2])}function LSn(){return BC(),se(ie(mle,1),Je,299,0,[gle,wle,r9])}function jSn(){return wb(),se(ie(E8t,1),Je,311,0,[i9,G2,J3])}function FSn(){return v6(),se(ie(hIe,1),Je,390,0,[Kle,dIe,HV])}function BSn(){return Cs(),se(ie(r7t,1),Je,463,0,[i5,Pc,Ta])}function WSn(){return VW(),se(ie(xIe,1),Je,387,0,[kIe,nae,RIe])}function HSn(){return w6(),se(ie(CIe,1),Je,349,0,[iae,rae,b9])}function USn(){return qC(),se(ie(TIe,1),Je,350,0,[oae,AIe,o5])}function GSn(){return $W(),se(ie(PIe,1),Je,352,0,[IIe,sae,$Ie])}function VSn(){return XW(),se(ie(OIe,1),Je,388,0,[lae,m4,H_])}function zSn(){return Km(),se(ie(k7t,1),Je,464,0,[g9,s5,zV])}function Yd(e){return kl(se(ie(wo,1),rt,8,0,[e.i.n,e.n,e.a]))}function KSn(){return m6(),se(ie(JIe,1),Je,392,0,[XIe,uae,m9])}function Lgt(){Lgt=F,MNt=hc(new Ki,(k3(),u5),(K6(),BIe))}function eW(){eW=F,Eae=new Bwe("DFS",0),w5e=new Bwe("BFS",1)}function jgt(e,t,i){var s;s=new yJe,s.b=t,s.a=i,++t.b,lt(e.d,s)}function qSn(e,t,i){var s;s=new us(i.d),Mr(s,e),d2e(t,s.a,s.b)}function XSn(e,t){Ift(e,tr(fo(Im(t,24),bU)),tr(fo(t,bU)))}function Uv(e,t){if(e<0||e>t)throw ne(new Hs(cRe+e+uRe+t))}function Xt(e,t){if(e<0||e>=t)throw ne(new Hs(cRe+e+uRe+t))}function pn(e,t){if(e<0||e>=t)throw ne(new J0e(cRe+e+uRe+t))}function Vt(e,t){this.b=(mn(e),e),this.a=t&g_?t:t|64|Vh}function Uve(e){var t;return L1(e),t=(jm(),jm(),cse),xW(e,t)}function JSn(e,t,i){var s;return s=Q6(e,t,!1),s.b<=t&&s.a<=i}function YSn(){return wW(),se(ie(f8e,1),Je,439,0,[zae,u8e,c8e])}function QSn(){return iH(),se(ie(z5e,1),Je,394,0,[V5e,Wae,G5e])}function ZSn(){return uH(),se(ie(U5e,1),Je,445,0,[E9,sz,Mae])}function e2n(){return _H(),se(ie(dMt,1),Je,456,0,[Dae,jae,Lae])}function t2n(){return gN(),se(ie(k5e,1),Je,393,0,[rz,S5e,E5e])}function n2n(){return GW(),se(ie(H5e,1),Je,300,0,[Nae,W5e,B5e])}function r2n(){return vb(),se(ie(VPe,1),Je,346,0,[Ez,Wg,T5])}function i2n(){return SN(),se(ie(Kae,1),Je,444,0,[uz,fz,dz])}function o2n(){return nh(),se(ie(OPe,1),Je,278,0,[R4,K_,x4])}function s2n(){return m3(),se(ie(QPe,1),Je,280,0,[YPe,X_,Tz])}function Hm(e){return nr(e),ve(e,16)?new Rc(f(e,16)):aC(e.Kc())}function Gve(e,t){return e&&e.equals?e.equals(t):Ne(e)===Ne(t)}function fo(e,t){return O1(Qyn(ul(e)?yf(e):e,ul(t)?yf(t):t))}function Ad(e,t){return O1(Zyn(ul(e)?yf(e):e,ul(t)?yf(t):t))}function XZ(e,t){return O1(evn(ul(e)?yf(e):e,ul(t)?yf(t):t))}function l2n(e,t){var i;return i=(mn(e),e).g,jme(!!i),mn(t),i(t)}function Fgt(e,t){var i,s;return s=fC(e,t),i=e.a.fd(s),new Gat(e,i)}function a2n(e){return e.Db>>16!=6?null:f(Ene(e),241)}function c2n(e){if(e.p!=2)throw ne(new ac);return tr(e.f)&Ji}function u2n(e){if(e.p!=2)throw ne(new ac);return tr(e.k)&Ji}function Z(e){return In(e.as?1:0}function Ugt(e,t){var i,s;return i=mee(t),s=i,f(En(e.c,s),17).a}function JZ(e,t,i){var s;s=e.d[t.p],e.d[t.p]=e.d[i.p],e.d[i.p]=s}function _2n(e,t,i){var s;e.n&&t&&i&&(s=new nZe,lt(e.e,s))}function YZ(e,t){if(Zi(e.a,t),t.d)throw ne(new vl(QCt));t.d=e}function Kve(e,t){this.a=new st,this.d=new st,this.f=e,this.c=t}function Ggt(){this.c=new Cft,this.a=new O0t,this.b=new Vst,cct()}function Vgt(){g3(),this.b=new Fn,this.a=new Fn,this.c=new st}function zgt(e,t,i){this.d=e,this.j=t,this.e=i,this.o=-1,this.p=3}function Kgt(e,t,i){this.d=e,this.k=t,this.f=i,this.o=-1,this.p=5}function qgt(e,t,i,s,a,c){K_e.call(this,e,t,i,s,a),c&&(this.o=-2)}function Xgt(e,t,i,s,a,c){q_e.call(this,e,t,i,s,a),c&&(this.o=-2)}function Jgt(e,t,i,s,a,c){f_e.call(this,e,t,i,s,a),c&&(this.o=-2)}function Ygt(e,t,i,s,a,c){Y_e.call(this,e,t,i,s,a),c&&(this.o=-2)}function Qgt(e,t,i,s,a,c){d_e.call(this,e,t,i,s,a),c&&(this.o=-2)}function Zgt(e,t,i,s,a,c){X_e.call(this,e,t,i,s,a),c&&(this.o=-2)}function e1t(e,t,i,s,a,c){J_e.call(this,e,t,i,s,a),c&&(this.o=-2)}function t1t(e,t,i,s,a,c){h_e.call(this,e,t,i,s,a),c&&(this.o=-2)}function n1t(e,t,i,s){Jj.call(this,i),this.b=e,this.c=t,this.d=s}function r1t(e,t){this.f=e,this.a=(SC(),Hz),this.c=Hz,this.b=t}function i1t(e,t){this.g=e,this.d=(SC(),Uz),this.a=Uz,this.b=t}function qve(e,t){!e.c&&(e.c=new Pi(e,0)),oU(e.c,(Jr(),W5),t)}function S2n(e,t){return iPn(e,t,ve(t,102)&&(f(t,19).Bb&ys)!=0)}function E2n(e,t){return jpt(Gl(e.q.getTime()),Gl(t.q.getTime()))}function o1t(e){return rZ(e.e.Rd().gc()*e.c.Rd().gc(),16,new Tnt(e))}function k2n(e){return!!e.u&&ra(e.u.a).i!=0&&!(e.n&&Bte(e.n))}function R2n(e){return!!e.a&&Wc(e.a.a).i!=0&&!(e.b&&Wte(e.b))}function Xve(e,t){return t==0?!!e.o&&e.o.f!=0:Nte(e,t)}function x2n(e,t,i){var s;return s=f(e.Zb().xc(t),16),!!s&&s.Hc(i)}function s1t(e,t,i){var s;return s=f(e.Zb().xc(t),16),!!s&&s.Mc(i)}function l1t(e,t){var i;return i=1-t,e.a[i]=FW(e.a[i],i),FW(e,t)}function a1t(e,t){var i,s;return s=fo(e,Ts),i=Zf(t,32),Ad(i,s)}function c1t(e,t,i){var s;s=(nr(e),new Rc(e)),ATn(new _gt(s,t,i))}function j7(e,t,i){var s;s=(nr(e),new Rc(e)),TTn(new Sgt(s,t,i))}function Tl(e,t,i,s,a,c){return Byt(e,t,i,c),i2e(e,s),o2e(e,a),e}function u1t(e,t,i,s){return e.a+=""+Vu(t==null?Za:dl(t),i,s),e}function No(e,t){this.a=e,YT.call(this,e),Uv(t,e.gc()),this.b=t}function f1t(e){this.a=Fe(ho,on,1,ISe(h.Math.max(8,e))<<1,5,1)}function F7(e){return f(ih(e,Fe(Op,$g,10,e.c.length,0,1)),199)}function Fh(e){return f(ih(e,Fe(Wse,pie,18,e.c.length,0,1)),483)}function d1t(e){return e.a?e.e.length==0?e.a.a:e.a.a+(""+e.e):e.c}function t6(e){for(;e.d>0&&e.a[--e.d]==0;);e.a[e.d++]==0&&(e.e=0)}function h1t(e){return In(e.b.b!=e.d.a),e.c=e.b=e.b.b,--e.a,e.c.c}function C2n(e,t,i){e.a=t,e.c=i,e.b.a.$b(),wu(e.d),xv(e.e.a.c,0)}function p1t(e,t){var i;e.e=new B0e,i=c_(t),Hi(i,e.c),A3t(e,i,0)}function qi(e,t,i,s){var a;a=new N1e,a.a=t,a.b=i,a.c=s,hr(e.a,a)}function it(e,t,i,s){var a;a=new N1e,a.a=t,a.b=i,a.c=s,hr(e.b,a)}function b1t(e,t,i){if(e<0||ti)throw ne(new Hs(BIn(e,t,i)))}function B7(e,t){if(e<0||e>=t)throw ne(new Hs(w5n(e,t)));return e}function A2n(e){if(!("stack"in e))try{throw e}catch{}return e}function ZS(e){return d$(),ve(e.g,10)?f(e.g,10):null}function T2n(e){return YS(e).dc()?!1:(Qgn(e,new G),!0)}function rw(e){var t;return ul(e)?(t=e,t==-0?0:t):Gkn(e)}function g1t(e,t){return ve(t,44)?zte(e.a,f(t,44)):!1}function w1t(e,t){return ve(t,44)?zte(e.a,f(t,44)):!1}function m1t(e,t){return ve(t,44)?zte(e.a,f(t,44)):!1}function Jve(e){var t;return A1(e),t=new re,MS(e.a,new vrt(t)),t}function Yve(){var e,t,i;return t=(i=(e=new dm,e),i),lt(NOe,t),t}function tW(e){var t;return A1(e),t=new Te,MS(e.a,new _rt(t)),t}function $2n(e,t){return e.a<=e.b?(t.Dd(e.a++),!0):!1}function y1t(e){Fee.call(this,e,(RC(),fse),null,!1,null,!1)}function v1t(){v1t=F,xIt=Qn((bF(),se(ie(W4e,1),Je,489,0,[kse])))}function _1t(){_1t=F,MIe=hbt(ot(1),ot(4)),NIe=hbt(ot(1),ot(2))}function I2n(e,t){return new YQ(t,j$(Ho(t.e),e,e),(cn(),!0))}function nW(e){return new ka((Su(e,bre),kW(is(is(5,e),e/10|0))))}function P2n(e){return rZ(e.e.Rd().gc()*e.c.Rd().gc(),273,new Ant(e))}function S1t(e){return f(ih(e,Fe(M5t,$At,12,e.c.length,0,1)),2042)}function O2n(e){return mu(),!ms(e)&&!(!ms(e)&&e.c.i.c==e.d.i.c)}function N2n(e,t){return p3(),f(V(t,(Il(),tE)),17).a>=e.gc()}function n6(e,t){gjn(t,e),$ye(e.d),$ye(f(V(e,(pt(),MV)),214))}function QZ(e,t){wjn(t,e),Iye(e.d),Iye(f(V(e,(pt(),MV)),214))}function M2n(e,t,i){e.d&&Ja(e.d.e,e),e.d=t,e.d&&$m(e.d.e,i,e)}function D2n(e,t,i){return i.f.c.length>0?ove(e.a,t,i):ove(e.b,t,i)}function L2n(e,t,i){var s;s=e4n();try{return k0n(e,t,i)}finally{TEn(s)}}function Um(e,t){var i,s;return i=fb(e,t),s=null,i&&(s=i.pe()),s}function r6(e,t){var i,s;return i=fb(e,t),s=null,i&&(s=i.se()),s}function vC(e,t){var i,s;return i=Kv(e,t),s=null,i&&(s=i.se()),s}function db(e,t){var i,s;return i=fb(e,t),s=null,i&&(s=JEe(i)),s}function j2n(e,t,i){var s;return s=nA(i),eU(e.g,s,t),eU(e.i,t,i),t}function Qve(e,t,i){this.d=new Oit(this),this.e=e,this.i=t,this.f=i}function E1t(e,t,i,s){this.e=null,this.c=e,this.d=t,this.a=i,this.b=s}function k1t(e,t,i,s){_ft(this),this.c=e,this.e=t,this.f=i,this.b=s}function Zve(e,t,i,s){this.d=e,this.n=t,this.g=i,this.o=s,this.p=-1}function R1t(e,t,i,s){return ve(i,59)?new tdt(e,t,i,s):new Zye(e,t,i,s)}function _C(e){return ve(e,16)?f(e,16).dc():!e.Kc().Ob()}function x1t(e){if(e.e.g!=e.b)throw ne(new Bu);return!!e.c&&e.d>0}function Bn(e){return In(e.b!=e.d.c),e.c=e.b,e.b=e.b.a,++e.a,e.c.c}function e_e(e,t){mn(t),Ci(e.a,e.c,t),e.c=e.c+1&e.a.length-1,qSt(e)}function $1(e,t){mn(t),e.b=e.b-1&e.a.length-1,Ci(e.a,e.b,t),qSt(e)}function C1t(e){var t;t=e.Gh(),this.a=ve(t,71)?f(t,71).Ii():t.Kc()}function F2n(e){return new Vt(k3n(f(e.a.md(),16).gc(),e.a.ld()),16)}function A1t(){A1t=F,UMt=Qn((mF(),se(ie(b8e,1),Je,490,0,[qae])))}function T1t(){T1t=F,VMt=Qn((yF(),se(ie(GMt,1),Je,558,0,[Xae])))}function $1t(){$1t=F,c9t=Qn((h$(),se(ie(D8e,1),Je,539,0,[C9])))}function B2n(){return hw(),se(ie(hTe,1),Je,389,0,[A_,dTe,Fse,Bse])}function W2n(){return RC(),se(ie(AG,1),Je,304,0,[fse,dse,hse,pse])}function H2n(){return _3(),se(ie(_It,1),Je,332,0,[VM,GM,zM,KM])}function U2n(){return I6(),se(ie(kIt,1),Je,406,0,[qM,PG,OG,XM])}function G2n(){return Jm(),se(ie(yIt,1),Je,417,0,[UM,HM,Sse,Ese])}function V2n(){return WC(),se(ie(E5t,1),Je,416,0,[vy,C_,x_,L2])}function z2n(){return rh(),se(ie(Z5t,1),Je,421,0,[X3,QA,ZA,qse])}function K2n(){return qW(),se(ie(H5t,1),Je,371,0,[Kse,oV,sV,e9])}function q2n(){return n_(),se(ie(Xle,1),Je,203,0,[UV,qle,Z2,Q2])}function X2n(){return Wh(),se(ie(SIe,1),Je,284,0,[Dg,_Ie,Qle,Zle])}function J2n(e){var t;return e.j==(ft(),jn)&&(t=gkt(e),fc(t,_n))}function Y2n(e,t){var i;i=t.a,rs(i,t.c.d),xo(i,t.d.d),Yv(i.a,e.n)}function t_e(e,t){var i;return i=f(th(e.b,t),67),!i&&(i=new li),i}function c3(e){return d$(),ve(e.g,154)?f(e.g,154):null}function Q2n(e){e.a=null,e.e=null,xv(e.b.c,0),xv(e.f.c,0),e.c=null}function rW(){rW=F,yle=new Owe($A,0),$$e=new Owe("TOP_LEFT",1)}function i6(){i6=F,a5=new Mwe("UPPER",0),l5=new Mwe("LOWER",1)}function Z2n(e,t){return zk(new tt(t.e.a+t.f.a/2,t.e.b+t.f.b/2),e)}function I1t(e,t){return f(tu(jv(f(Hr(e.k,t),15).Oc(),F2)),113)}function P1t(e,t){return f(tu(e3(f(Hr(e.k,t),15).Oc(),F2)),113)}function eEn(){return k3(),se(ie(jIe,1),Je,405,0,[JV,c5,u5,f5])}function tEn(){return y6(),se(ie(g5e,1),Je,353,0,[Sae,tz,_ae,vae])}function nEn(){return RH(),se(ie(F5e,1),Je,354,0,[Oae,L5e,j5e,D5e])}function rEn(){return su(),se(ie(N5,1),Je,386,0,[U9,Vw,H9,q_])}function iEn(){return ku(),se(ie(J9t,1),Je,291,0,[F9,Dp,a0,j9])}function oEn(){return _b(),se(ie(Sce,1),Je,223,0,[_ce,L9,C4,uR])}function sEn(){return sH(),se(ie(iOe,1),Je,320,0,[Rce,tOe,rOe,nOe])}function lEn(){return JW(),se(ie(hDt,1),Je,415,0,[xce,sOe,oOe,lOe])}function aEn(e){return QB(),Na(Ice,e)?f(En(Ice,e),341).Qg():null}function zu(e,t,i){return t<0?vne(e,i):f(i,69).wk().Bk(e,e.hi(),t)}function cEn(e,t,i){var s;return s=nA(i),eU(e.j,s,t),xr(e.k,t,i),t}function uEn(e,t,i){var s;return s=nA(i),eU(e.d,s,t),xr(e.e,t,i),t}function O1t(e){var t,i;return t=(v1(),i=new QJ,i),e&&GH(t,e),t}function n_e(e){var t;return t=e.aj(e.i),e.i>0&&oa(e.g,0,t,0,e.i),t}function N1t(e,t){var i;for(i=e.j.c.length;i>24}function dEn(e){if(e.p!=1)throw ne(new ac);return tr(e.k)<<24>>24}function hEn(e){if(e.p!=7)throw ne(new ac);return tr(e.k)<<16>>16}function pEn(e){if(e.p!=7)throw ne(new ac);return tr(e.f)<<16>>16}function e2(e,t){return t.e==0||e.e==0?MI:(pA(),Tne(e,t))}function L1t(e,t){return Ne(t)===Ne(e)?"(this Map)":t==null?Za:dl(t)}function bEn(e,t,i){return dZ(je(tl(xs(e.f,t))),je(tl(xs(e.f,i))))}function gEn(e,t,i){var s;s=f(En(e.g,i),60),lt(e.a.c,new io(t,s))}function j1t(e,t,i){e.i=0,e.e=0,t!=i&&(vvt(e,t,i),yvt(e,t,i))}function wEn(e,t,i,s,a){var c;c=mPn(a,i,s),lt(t,u5n(a,c)),tIn(e,a,t)}function r_e(e,t,i,s,a){this.i=e,this.a=t,this.e=i,this.j=s,this.f=a}function F1t(e,t){Nve.call(this),this.a=e,this.b=t,lt(this.a.b,this)}function B1t(e){this.b=new Fn,this.c=new Fn,this.d=new Fn,this.a=e}function W1t(e,t){var i;return i=new jk,e.Gd(i),i.a+="..",t.Hd(i),i.a}function H1t(e,t){var i;for(i=t;i;)Am(e,i.i,i.j),i=di(i);return e}function U1t(e,t,i){var s;return s=nA(i),xr(e.b,s,t),xr(e.c,t,i),t}function hb(e){var t;for(t=0;e.Ob();)e.Pb(),t=is(t,1);return kW(t)}function yp(e,t){Ss();var i;return i=f(e,69).vk(),wIn(i,t),i.xl(t)}function mEn(e,t,i){if(i){var s=i.oe();e.a[t]=s(i)}else delete e.a[t]}function i_e(e,t){var i;i=e.q.getHours(),e.q.setFullYear(t+V1),X6(e,i)}function yEn(e,t){return f(t==null?tl(xs(e.f,null)):w$(e.i,t),288)}function o_e(e,t){return e==(gn(),ji)&&t==ji?4:e==ji||t==ji?8:32}function iW(e,t,i){return nU(e,t,i,ve(t,102)&&(f(t,19).Bb&ys)!=0)}function vEn(e,t,i){return mA(e,t,i,ve(t,102)&&(f(t,19).Bb&ys)!=0)}function _En(e,t,i){return fPn(e,t,i,ve(t,102)&&(f(t,19).Bb&ys)!=0)}function s_e(e){e.b!=e.c&&(e.a=Fe(ho,on,1,8,5,1),e.b=0,e.c=0)}function o6(e){return In(e.a=0&&e.a[i]===t[i];i--);return i<0}function oW(e){var t;return e?new Uye(e):(t=new Oh,Lee(t,e),t)}function AEn(e,t){var i,s;s=!1;do i=cvt(e,t),s=s|i;while(i);return s}function TEn(e){e&&t3n((z0e(),HAe)),--SG,e&&EG!=-1&&(vgn(EG),EG=-1)}function sW(e){NEe(),Ift(this,tr(fo(Im(e,24),bU)),tr(fo(e,bU)))}function q1t(){q1t=F,B6t=Qn((bH(),se(ie(m4e,1),Je,436,0,[wse,w4e])))}function X1t(){X1t=F,W6t=Qn((SW(),se(ie(v4e,1),Je,435,0,[y4e,mse])))}function J1t(){J1t=F,UIt=Qn((EW(),se(ie(q4e,1),Je,432,0,[Tse,DG])))}function Y1t(){Y1t=F,F5t=Qn((MC(),se(ie(j5t,1),Je,517,0,[QM,Use])))}function Q1t(){Q1t=F,R8t=Qn((rW(),se(ie(I$e,1),Je,429,0,[yle,$$e])))}function Z1t(){Z1t=F,p8t=Qn((nN(),se(ie(b$e,1),Je,428,0,[dV,p$e])))}function e0t(){e0t=F,m8t=Qn((X7(),se(ie(m$e,1),Je,488,0,[w$e,pV])))}function t0t(){t0t=F,n7t=Qn((eN(),se(ie(EIe,1),Je,430,0,[eae,tae])))}function n0t(){n0t=F,$7t=Qn((i6(),se(ie(T7t,1),Je,531,0,[a5,l5])))}function r0t(){r0t=F,u8t=Qn((pW(),se(ie(l$e,1),Je,431,0,[s$e,ile])))}function i0t(){i0t=F,NNt=Qn((eW(),se(ie(m5e,1),Je,433,0,[Eae,w5e])))}function o0t(){o0t=F,FNt=Qn((jW(),se(ie(y5e,1),Je,501,0,[nz,rE])))}function s0t(){s0t=F,L7t=Qn((jh(),se(ie(D7t,1),Je,523,0,[Ny,Lg])))}function l0t(){l0t=F,F7t=Qn((Jd(),se(ie(j7t,1),Je,522,0,[Fw,ph])))}function a0t(){a0t=F,eNt=Qn((Td(),se(ie(Z7t,1),Je,528,0,[U_,i0])))}function c0t(){c0t=F,lNt=Qn((Wm(),se(ie(sNt,1),Je,465,0,[o0,eE])))}function u0t(){u0t=F,HNt=Qn((gW(),se(ie(_5e,1),Je,434,0,[v5e,Tae])))}function f0t(){f0t=F,LMt=Qn((aW(),se(ie(a8e,1),Je,491,0,[Vae,l8e])))}function d0t(){d0t=F,FMt=Qn((Gee(),se(ie(p8e,1),Je,492,0,[d8e,h8e])))}function h0t(){h0t=F,zMt=Qn((G7(),se(ie(g8e,1),Je,438,0,[Jae,hz])))}function p0t(){p0t=F,u9t=Qn((dN(),se(ie(j8e,1),Je,437,0,[bz,L8e])))}function b0t(){b0t=F,uDt=Qn((XQ(),se(ie($z,1),Je,347,0,[ZPe,eOe])))}function $En(){return Xi(),se(ie(C5,1),Je,88,0,[wh,al,Js,gh,cf])}function IEn(){return ft(),se(ie(vs,1),Ql,64,0,[Cl,bn,_n,jn,wn])}function PEn(e,t,i){return f(t==null?Ca(e.f,null,i):Ym(e.i,t,i),288)}function OEn(e){return(e.k==(gn(),ji)||e.k==Ui)&&ri(e,(nt(),zI))}function ree(e){return e.c&&e.d?zve(e.c)+"->"+zve(e.d):"e_"+Cm(e)}function Vo(e,t){var i,s;for(mn(t),s=e.Kc();s.Ob();)i=s.Pb(),t.Cd(i)}function NEn(e,t){var i;i=new Nk,ew(i,"x",t.a),ew(i,"y",t.b),r3(e,i)}function MEn(e,t){var i;i=new Nk,ew(i,"x",t.a),ew(i,"y",t.b),r3(e,i)}function g0t(e,t){var i;for(i=t;i;)Am(e,-i.i,-i.j),i=di(i);return e}function a_e(e,t){var i,s;for(i=t,s=0;i>0;)s+=e.a[i],i-=i&-i;return s}function Ku(e,t,i){var s;return s=(Xt(t,e.c.length),e.c[t]),e.c[t]=i,s}function c_e(e,t,i){e.a.c.length=0,sDn(e,t,i),e.a.c.length==0||ONn(e,t)}function W7(e){e.i=0,KO(e.b,null),KO(e.c,null),e.a=null,e.e=null,++e.g}function lW(){lW=F,fh=!0,$6t=!1,I6t=!1,O6t=!1,P6t=!1}function iee(e){lW(),!fh&&(this.c=e,this.e=!0,this.a=new st)}function w0t(e,t){this.c=0,this.b=t,But.call(this,e,17493),this.a=this.c}function m0t(e){vCt(),xst(this),this.a=new li,HSe(this,e),hr(this.a,e)}function y0t(){CQ(this),this.b=new tt(hi,hi),this.a=new tt(to,to)}function aW(){aW=F,Vae=new Uwe(FRe,0),l8e=new Uwe("TARGET_WIDTH",1)}function t2(e,t){return(L1(e),Xx(new Wt(e,new D_e(t,e.a)))).Bd(z3)}function DEn(){return Yo(),se(ie(uTe,1),Je,367,0,[cd,Pp,sa,ga,ll])}function LEn(){return i_(),se(ie(t8t,1),Je,375,0,[t9,cV,uV,aV,lV])}function jEn(){return Eg(),se(ie(h$e,1),Je,348,0,[sle,d$e,lle,i4,r4])}function FEn(){return $6(),se(ie(bIe,1),Je,323,0,[pIe,Jle,Yle,n5,r5])}function BEn(){return ef(),se(ie(G$e,1),Je,171,0,[a9,qI,n0,XI,O_])}function WEn(){return PH(),se(ie(BNt,1),Je,368,0,[Cae,kae,Aae,Rae,xae])}function HEn(){return U6(),se(ie(BMt,1),Je,373,0,[iE,oR,v5,y5,x9])}function UEn(){return LN(),se(ie(v8e,1),Je,324,0,[w8e,Yae,y8e,Qae,m8e])}function GEn(){return Nd(),se(ie(Mp,1),Je,170,0,[nn,lo,op,Bw,Fg])}function VEn(){return a2(),se(ie(I5,1),Je,256,0,[c0,B9,zPe,$5,KPe])}function zEn(e){return oF(),function(){return L2n(e,this,arguments)}}function ms(e){return!e.c||!e.d?!1:!!e.c.i&&e.c.i==e.d.i}function u_e(e,t){return ve(t,143)?Ht(e.c,f(t,143).c):!1}function Bc(e){return e.t||(e.t=new gst(e),k6(new Plt(e),0,e.t)),e.t}function v0t(e){this.b=e,Sn.call(this,e),this.a=f(dn(this.b.a,4),129)}function _0t(e){this.b=e,qk.call(this,e),this.a=f(dn(this.b.a,4),129)}function ed(e,t,i,s,a){I0t.call(this,t,s,a),this.c=e,this.b=i}function f_e(e,t,i,s,a){zgt.call(this,t,s,a),this.c=e,this.a=i}function d_e(e,t,i,s,a){Kgt.call(this,t,s,a),this.c=e,this.a=i}function h_e(e,t,i,s,a){I0t.call(this,t,s,a),this.c=e,this.a=i}function oee(e,t){var i;return i=f(th(e.d,t),23),i||f(th(e.e,t),23)}function S0t(e,t){var i,s;return i=t.ld(),s=e.Fe(i),!!s&&Ul(s.e,t.md())}function E0t(e,t){var i;return i=t.ld(),new ym(i,e.e.pc(i,f(t.md(),16)))}function KEn(e,t){var i;return i=e.a.get(t),i??Fe(ho,on,1,0,5,1)}function k0t(e){var t;return t=e.length,Ht(vn.substr(vn.length-t,t),e)}function On(e){if(Un(e))return e.c=e.a,e.a.Pb();throw ne(new yl)}function p_e(e,t){return t==0||e.e==0?e:t>0?h3t(e,t):L_t(e,-t)}function u3(e,t){return t==0||e.e==0?e:t>0?L_t(e,t):h3t(e,-t)}function b_e(e){ign.call(this,e==null?Za:dl(e),ve(e,82)?f(e,82):null)}function R0t(e){var t;return e.c||(t=e.r,ve(t,90)&&(e.c=f(t,29))),e.c}function see(e){var t;return t=new Fm,ol(t,e),Xe(t,(pt(),Xs),null),t}function x0t(e){var t,i;return t=e.c.i,i=e.d.i,t.k==(gn(),Ui)&&i.k==Ui}function lee(e){var t,i,s;return t=e&Vc,i=e>>22&Vc,s=e<0?Ab:0,Oa(t,i,s)}function qEn(e){var t,i,s,a;for(i=e,s=0,a=i.length;s=0?e.Lh(s,i,!0):iy(e,t,i)}function JEn(e,t,i){return Qr(zk(iA(e),Ho(t.b)),zk(iA(e),Ho(i.b)))}function YEn(e,t,i){return Qr(zk(iA(e),Ho(t.e)),zk(iA(e),Ho(i.e)))}function QEn(e,t){return h.Math.min(I1(t.a,e.d.d.c),I1(t.b,e.d.d.c))}function H7(e,t){e._i(e.i+1),M$(e,e.i,e.Zi(e.i,t)),e.Mi(e.i++,t),e.Ni()}function s6(e){var t,i;++e.j,t=e.g,i=e.i,e.g=null,e.i=0,e.Oi(i,t),e.Ni()}function C0t(e,t,i){var s;s=new pme(e.a),h6(s,e.a.a),Ca(s.f,t,i),e.a.a=s}function g_e(e,t,i,s){var a;for(a=0;a<$G;a++)CB(e.a[a][t.g],i,s[t.g])}function w_e(e,t,i,s){var a;for(a=0;at)throw ne(new Hs(oke(e,t,"index")));return e}function pg(e,t){var i;return i=(Xt(t,e.c.length),e.c[t]),cwe(e.c,t,1),i}function y_e(e,t){var i,s;return i=(mn(e),e),s=(mn(t),t),i==s?0:it.p?-1:0}function M0t(e){var t;return e.a||(t=e.r,ve(t,156)&&(e.a=f(t,156))),e.a}function ikn(e,t,i){var s;return++e.e,--e.f,s=f(e.d[t].gd(i),136),s.md()}function okn(e){var t,i;return t=e.ld(),i=f(e.md(),16),_7(i.Nc(),new Int(t))}function D0t(e,t){return Na(e.a,t)?(f3(e.a,t),!0):!1}function d3(e,t,i){return B7(t,e.e.Rd().gc()),B7(i,e.c.Rd().gc()),e.a[t][i]}function uW(e,t,i){this.a=e,this.b=t,this.c=i,lt(e.t,this),lt(t.i,this)}function fW(e,t,i,s){this.f=e,this.e=t,this.d=i,this.b=s,this.c=s?s.d:null}function U7(){this.b=new li,this.a=new li,this.b=new li,this.a=new li}function SC(){SC=F;var e,t;Hz=(qx(),t=new Zj,t),Uz=(e=new yY,e)}function skn(e){var t;return L1(e),t=new Aht(e,e.a.e,e.a.d|4),new Bme(e,t)}function L0t(e){var t;for(A1(e),t=0;e.a.Bd(new ht);)t=is(t,1);return t}function dW(e,t){return mn(t),e.c=0,"Initial capacity must not be negative")}function hW(){hW=F,_5=new Xr("org.eclipse.elk.labels.labelManager")}function j0t(){j0t=F,t$e=new _i("separateLayerConnections",(qW(),Kse))}function Td(){Td=F,U_=new jwe("REGULAR",0),i0=new jwe("CRITICAL",1)}function G7(){G7=F,Jae=new Vwe("FIXED",0),hz=new Vwe("CENTER_NODE",1)}function pW(){pW=F,s$e=new $we("QUADRATIC",0),ile=new $we("SCANLINE",1)}function F0t(){F0t=F,f8t=Qn((u6(),se(ie(c$e,1),Je,322,0,[HI,n9,a$e])))}function B0t(){B0t=F,d8t=Qn((IW(),se(ie(f$e,1),Je,351,0,[u$e,fV,ole])))}function W0t(){W0t=F,l8t=Qn((qm(),se(ie(Xse,1),Je,372,0,[Sy,e0,_y])))}function H0t(){H0t=F,g8t=Qn((uw(),se(ie(b8t,1),Je,460,0,[ale,o4,H2])))}function U0t(){U0t=F,S8t=Qn((BC(),se(ie(mle,1),Je,299,0,[gle,wle,r9])))}function G0t(){G0t=F,k8t=Qn((wb(),se(ie(E8t,1),Je,311,0,[i9,G2,J3])))}function V0t(){V0t=F,YOt=Qn((v6(),se(ie(hIe,1),Je,390,0,[Kle,dIe,HV])))}function z0t(){z0t=F,o7t=Qn((VW(),se(ie(xIe,1),Je,387,0,[kIe,nae,RIe])))}function K0t(){K0t=F,s7t=Qn((w6(),se(ie(CIe,1),Je,349,0,[iae,rae,b9])))}function q0t(){q0t=F,i7t=Qn((Cs(),se(ie(r7t,1),Je,463,0,[i5,Pc,Ta])))}function X0t(){X0t=F,l7t=Qn((qC(),se(ie(TIe,1),Je,350,0,[oae,AIe,o5])))}function J0t(){J0t=F,a7t=Qn(($W(),se(ie(PIe,1),Je,352,0,[IIe,sae,$Ie])))}function Y0t(){Y0t=F,c7t=Qn((XW(),se(ie(OIe,1),Je,388,0,[lae,m4,H_])))}function Q0t(){Q0t=F,uNt=Qn((m6(),se(ie(JIe,1),Je,392,0,[XIe,uae,m9])))}function Z0t(){Z0t=F,UNt=Qn((gN(),se(ie(k5e,1),Je,393,0,[rz,S5e,E5e])))}function ewt(){ewt=F,uMt=Qn((GW(),se(ie(H5e,1),Je,300,0,[Nae,W5e,B5e])))}function twt(){twt=F,fMt=Qn((uH(),se(ie(U5e,1),Je,445,0,[E9,sz,Mae])))}function nwt(){nwt=F,hMt=Qn((_H(),se(ie(dMt,1),Je,456,0,[Dae,jae,Lae])))}function rwt(){rwt=F,gMt=Qn((iH(),se(ie(z5e,1),Je,394,0,[V5e,Wae,G5e])))}function iwt(){iwt=F,jMt=Qn((wW(),se(ie(f8e,1),Je,439,0,[zae,u8e,c8e])))}function owt(){owt=F,R7t=Qn((Km(),se(ie(k7t,1),Je,464,0,[g9,s5,zV])))}function swt(){swt=F,K6t=Qn((Ac(),se(ie(z6t,1),Je,471,0,[tp,Q1,ld])))}function lwt(){lwt=F,V6t=Qn((Pd(),se(ie(R_,1),Je,237,0,[Nl,Aa,Ml])))}function awt(){awt=F,X6t=Qn((Ya(),se(ie(q6t,1),Je,472,0,[Ld,Z1,ad])))}function cwt(){cwt=F,N6t=Qn((Tc(),se(ie(qs,1),Je,108,0,[g4e,pl,k_])))}function uwt(){uwt=F,b5t=Qn((l6(),se(ie(cTe,1),Je,391,0,[Ose,Pse,Nse])))}function fwt(){fwt=F,X9t=Qn((vb(),se(ie(VPe,1),Je,346,0,[Ez,Wg,T5])))}function dwt(){dwt=F,HMt=Qn((SN(),se(ie(Kae,1),Je,444,0,[uz,fz,dz])))}function hwt(){hwt=F,V9t=Qn((nh(),se(ie(OPe,1),Je,278,0,[R4,K_,x4])))}function pwt(){pwt=F,cDt=Qn((m3(),se(ie(QPe,1),Je,280,0,[YPe,X_,Tz])))}function eh(e,t){return!e.o&&(e.o=new pc((Yl(),Fp),Hg,e,0)),Rte(e.o,t)}function lkn(e,t){var i;e.C&&(i=f(Ds(e.b,t),127).n,i.d=e.C.d,i.a=e.C.a)}function k_e(e){var t,i,s,a;a=e.d,t=e.a,i=e.b,s=e.c,e.d=i,e.a=s,e.b=a,e.c=t}function akn(e){return!e.g&&(e.g=new Wj),!e.g.b&&(e.g.b=new dst(e)),e.g.b}function V7(e){return!e.g&&(e.g=new Wj),!e.g.c&&(e.g.c=new bst(e)),e.g.c}function ckn(e){return!e.g&&(e.g=new Wj),!e.g.d&&(e.g.d=new hst(e)),e.g.d}function ukn(e){return!e.g&&(e.g=new Wj),!e.g.a&&(e.g.a=new pst(e)),e.g.a}function fkn(e,t,i,s){return i&&(s=i.Rh(t,yi(i.Dh(),e.c.uk()),null,s)),s}function dkn(e,t,i,s){return i&&(s=i.Th(t,yi(i.Dh(),e.c.uk()),null,s)),s}function fee(e,t,i,s){var a;return a=Fe(Xn,wr,28,t+1,15,1),gMn(a,e,t,i,s),a}function Fe(e,t,i,s,a,c){var b;return b=FSt(a,s),a!=10&&se(ie(e,c),t,i,a,b),b}function hkn(e,t,i){var s,a;for(a=new FC(t,e),s=0;si||t=0?e.Lh(i,!0,!0):iy(e,t,!0)}function $kn(e,t,i){var s;return s=wvt(e,t,i),e.b=new BW(s.c.length),Kke(e,s)}function Ikn(e){if(e.b<=0)throw ne(new yl);return--e.b,e.a-=e.c.c,ot(e.a)}function Pkn(e){var t;if(!e.a)throw ne(new Cbt);return t=e.a,e.a=di(e.a),t}function Okn(e){for(;!e.a;)if(!Zdt(e.c,new Srt(e)))return!1;return!0}function h3(e){var t;return nr(e),ve(e,204)?(t=f(e,204),t):new Fnt(e)}function Nkn(e){bW(),f(e.of((Er(),z_)),181).Fc(($c(),W9)),e.qf(mce,null)}function bW(){bW=F,h9t=new yQe,b9t=new vQe,p9t=Sxn((Er(),mce),h9t,l0,b9t)}function gW(){gW=F,v5e=new Hwe("LEAF_NUMBER",0),Tae=new Hwe("NODE_SIZE",1)}function gee(e){e.a=Fe(Xn,wr,28,e.b+1,15,1),e.c=Fe(Xn,wr,28,e.b,15,1),e.d=0}function Mkn(e,t){e.a.Ne(t.d,e.b)>0&&(lt(e.c,new Rye(t.c,t.d,e.d)),e.b=t.d)}function N_e(e,t){if(e.g==null||t>=e.i)throw ne(new SQ(t,e.i));return e.g[t]}function mwt(e,t,i){if(VC(e,i),i!=null&&!e.fk(i))throw ne(new gY);return i}function wee(e,t){return tN(t)!=10&&se(ou(t),t.Sm,t.__elementTypeId$,tN(t),e),e}function kC(e,t,i,s){var a;s=(jm(),s||c4e),a=e.slice(t,i),ske(a,e,t,i,-t,s)}function qu(e,t,i,s,a){return t<0?iy(e,i,s):f(i,69).wk().yk(e,e.hi(),t,s,a)}function Dkn(e,t){return Qr(Ae(je(V(e,(nt(),Ry)))),Ae(je(V(t,Ry))))}function ywt(){ywt=F,A6t=Qn((RC(),se(ie(AG,1),Je,304,0,[fse,dse,hse,pse])))}function RC(){RC=F,fse=new EF("All",0),dse=new cft,hse=new mft,pse=new aft}function Ac(){Ac=F,tp=new KY(M3,0),Q1=new KY($A,1),ld=new KY(D3,2)}function vwt(){vwt=F,rU(),HOe=hi,gLt=to,UOe=new OO(hi),wLt=new OO(to)}function _wt(){_wt=F,vIt=Qn((Jm(),se(ie(yIt,1),Je,417,0,[UM,HM,Sse,Ese])))}function Swt(){Swt=F,RIt=Qn((I6(),se(ie(kIt,1),Je,406,0,[qM,PG,OG,XM])))}function Ewt(){Ewt=F,SIt=Qn((_3(),se(ie(_It,1),Je,332,0,[VM,GM,zM,KM])))}function kwt(){kwt=F,$5t=Qn((hw(),se(ie(hTe,1),Je,389,0,[A_,dTe,Fse,Bse])))}function Rwt(){Rwt=F,k5t=Qn((WC(),se(ie(E5t,1),Je,416,0,[vy,C_,x_,L2])))}function xwt(){xwt=F,e8t=Qn((rh(),se(ie(Z5t,1),Je,421,0,[X3,QA,ZA,qse])))}function Cwt(){Cwt=F,U5t=Qn((qW(),se(ie(H5t,1),Je,371,0,[Kse,oV,sV,e9])))}function Awt(){Awt=F,QOt=Qn((n_(),se(ie(Xle,1),Je,203,0,[UV,qle,Z2,Q2])))}function Twt(){Twt=F,t7t=Qn((Wh(),se(ie(SIe,1),Je,284,0,[Dg,_Ie,Qle,Zle])))}function X7(){X7=F,w$e=new Pwe(Jh,0),pV=new Pwe("IMPROVE_STRAIGHTNESS",1)}function $wt(e,t){var i,s;return s=t/e.c.Rd().gc()|0,i=t%e.c.Rd().gc(),d3(e,s,i)}function Iwt(e){var t;if(e.nl())for(t=e.i-1;t>=0;--t)Se(e,t);return n_e(e)}function M_e(e){var t,i;if(!e.b)return null;for(i=e.b;t=i.a[0];)i=t;return i}function Pwt(e){var t,i;if(!e.b)return null;for(i=e.b;t=i.a[1];)i=t;return i}function Lkn(e){return ve(e,180)?""+f(e,180).a:e==null?null:dl(e)}function jkn(e){return ve(e,180)?""+f(e,180).a:e==null?null:dl(e)}function Owt(e,t){if(t.a)throw ne(new vl(QCt));Zi(e.a,t),t.a=e,!e.j&&(e.j=t)}function D_e(e,t){KF.call(this,t.zd(),t.yd()&-16449),mn(e),this.a=e,this.c=t}function Fkn(e,t){return new YQ(t,Am(Ho(t.e),t.f.a+e,t.f.b+e),(cn(),!1))}function Bkn(e,t){return lC(),lt(e,new io(t,ot(t.e.c.length+t.g.c.length)))}function Wkn(e,t){return lC(),lt(e,new io(t,ot(t.e.c.length+t.g.c.length)))}function Nwt(){Nwt=F,cMt=Qn((RH(),se(ie(F5e,1),Je,354,0,[Oae,L5e,j5e,D5e])))}function Mwt(){Mwt=F,ONt=Qn((y6(),se(ie(g5e,1),Je,353,0,[Sae,tz,_ae,vae])))}function Dwt(){Dwt=F,aNt=Qn((k3(),se(ie(jIe,1),Je,405,0,[JV,c5,u5,f5])))}function Lwt(){Lwt=F,z9t=Qn((_b(),se(ie(Sce,1),Je,223,0,[_ce,L9,C4,uR])))}function jwt(){jwt=F,Y9t=Qn((ku(),se(ie(J9t,1),Je,291,0,[F9,Dp,a0,j9])))}function Fwt(){Fwt=F,lDt=Qn((su(),se(ie(N5,1),Je,386,0,[U9,Vw,H9,q_])))}function Bwt(){Bwt=F,fDt=Qn((sH(),se(ie(iOe,1),Je,320,0,[Rce,tOe,rOe,nOe])))}function Wwt(){Wwt=F,pDt=Qn((JW(),se(ie(hDt,1),Je,415,0,[xce,sOe,oOe,lOe])))}function wW(){wW=F,zae=new wQ(g4t,0),u8e=new wQ(iCe,1),c8e=new wQ(Jh,2)}function zv(e,t,i,s,a){return mn(e),mn(t),mn(i),mn(s),mn(a),new lve(e,t,s)}function Hwt(e,t){var i;return i=f(f3(e.e,t),400),i?(Dye(i),i.e):null}function Ja(e,t){var i;return i=il(e,t,0),i==-1?!1:(pg(e,i),!0)}function Uwt(e,t,i){var s;return A1(e),s=new de,s.a=t,e.a.Nb(new kct(s,i)),s.a}function Hkn(e){var t;return A1(e),t=Fe(Ro,js,28,0,15,1),MS(e.a,new yrt(t)),t}function L_e(e){var t;if(!Oee(e))throw ne(new yl);return e.e=1,t=e.d,e.d=null,t}function gg(e){var t;return ul(e)&&(t=0-e,!isNaN(t))?t:O1(UC(e))}function il(e,t,i){for(;i=0?yH(e,i,!0,!0):iy(e,t,!0)}function F_e(e){var t;return t=ow(dn(e,32)),t==null&&(ja(e),t=ow(dn(e,32))),t}function B_e(e){var t;return e.Oh()||(t=Pn(e.Dh())-e.ji(),e.$h().Mk(t)),e.zh()}function Xwt(e,t){F4e=new el,EIt=t,LI=e,f(LI.b,68),C_e(LI,F4e,null),uxt(LI)}function l6(){l6=F,Ose=new XY("XY",0),Pse=new XY("X",1),Nse=new XY("Y",2)}function Ya(){Ya=F,Ld=new qY("TOP",0),Z1=new qY($A,1),ad=new qY(wRe,2)}function wb(){wb=F,i9=new tQ(Jh,0),G2=new tQ("TOP",1),J3=new tQ(wRe,2)}function eN(){eN=F,eae=new Nwe("INPUT_ORDER",0),tae=new Nwe("PORT_DEGREE",1)}function xC(){xC=F,GAe=Oa(Vc,Vc,524287),d6t=Oa(0,0,fM),VAe=lee(1),lee(2),zAe=lee(0)}function See(e){var t;return e.d!=e.r&&(t=_f(e),e.e=!!t&&t.lk()==d$t,e.d=t),e.e}function Eee(e,t,i){var s;return s=e.g[t],M$(e,t,e.Zi(t,i)),e.Ri(t,i,s),e.Ni(),s}function _W(e,t){var i;return i=e.dd(t),i>=0?(e.gd(i),!0):!1}function kee(e,t){var i;for(nr(e),nr(t),i=!1;t.Ob();)i=i|e.Fc(t.Pb());return i}function th(e,t){var i;return i=f(En(e.e,t),400),i?($ft(e,i),i.e):null}function Jwt(e){var t,i;return t=e/60|0,i=e%60,i==0?""+t:""+t+":"+(""+i)}function Kv(e,t){var i=e.a[t],s=(Jee(),ose)[typeof i];return s?s(i):XSe(typeof i)}function El(e,t){var i,s;return L1(e),s=new __e(t,e.a),i=new nht(s),new Wt(e,i)}function Ree(e){var t;return t=e.b.c.length==0?null:yt(e.b,0),t!=null&&Mee(e,0),t}function zkn(e,t){var i,s,a;a=t.c.i,i=f(En(e.f,a),60),s=i.d.c-i.e.c,mSe(t.a,s,0)}function W_e(e,t){var i;for(++e.d,++e.c[t],i=t+1;i=0;)++t[0]}function Kkn(e,t){Da(e,t==null||aB((mn(t),t))||isNaN((mn(t),t))?0:(mn(t),t))}function qkn(e,t){La(e,t==null||aB((mn(t),t))||isNaN((mn(t),t))?0:(mn(t),t))}function Xkn(e,t){zm(e,t==null||aB((mn(t),t))||isNaN((mn(t),t))?0:(mn(t),t))}function Jkn(e,t){Vm(e,t==null||aB((mn(t),t))||isNaN((mn(t),t))?0:(mn(t),t))}function Ykn(e,t,i){return zk(new tt(i.e.a+i.f.a/2,i.e.b+i.f.b/2),e)==(mn(t),t)}function Qkn(e,t){return ve(t,102)&&f(t,19).Bb&ys?new EQ(t,e):new FC(t,e)}function Zkn(e,t){return ve(t,102)&&f(t,19).Bb&ys?new EQ(t,e):new FC(t,e)}function tN(e){return e.__elementTypeCategory$==null?10:e.__elementTypeCategory$}function Zwt(e,t){return t==(zQ(),zQ(),R6t)?e.toLocaleLowerCase():e.toLowerCase()}function emt(e){if(!e.e)throw ne(new yl);return e.c=e.a=e.e,e.e=e.e.e,--e.d,e.a.f}function H_e(e){if(!e.c)throw ne(new yl);return e.e=e.a=e.c,e.c=e.c.c,++e.d,e.a.f}function tmt(e){var t;for(++e.a,t=e.c.a.length;e.ae.a[s]&&(s=i);return s}function nmt(e){var t;return t=f(V(e,(nt(),Ey)),313),t?t.a==e:!1}function rmt(e){var t;return t=f(V(e,(nt(),Ey)),313),t?t.i==e:!1}function imt(){imt=F,y5t=Qn((Yo(),se(ie(uTe,1),Je,367,0,[cd,Pp,sa,ga,ll])))}function omt(){omt=F,n8t=Qn((i_(),se(ie(t8t,1),Je,375,0,[t9,cV,uV,aV,lV])))}function smt(){smt=F,h8t=Qn((Eg(),se(ie(h$e,1),Je,348,0,[sle,d$e,lle,i4,r4])))}function lmt(){lmt=F,ZOt=Qn(($6(),se(ie(bIe,1),Je,323,0,[pIe,Jle,Yle,n5,r5])))}function amt(){amt=F,x8t=Qn((ef(),se(ie(G$e,1),Je,171,0,[a9,qI,n0,XI,O_])))}function cmt(){cmt=F,WNt=Qn((PH(),se(ie(BNt,1),Je,368,0,[Cae,kae,Aae,Rae,xae])))}function umt(){umt=F,WMt=Qn((U6(),se(ie(BMt,1),Je,373,0,[iE,oR,v5,y5,x9])))}function fmt(){fmt=F,KMt=Qn((LN(),se(ie(v8e,1),Je,324,0,[w8e,Yae,y8e,Qae,m8e])))}function dmt(){dmt=F,G9t=Qn((Xi(),se(ie(C5,1),Je,88,0,[wh,al,Js,gh,cf])))}function hmt(){hmt=F,g9t=Qn((Nd(),se(ie(Mp,1),Je,170,0,[nn,lo,op,Bw,Fg])))}function pmt(){pmt=F,Z9t=Qn((a2(),se(ie(I5,1),Je,256,0,[c0,B9,zPe,$5,KPe])))}function bmt(){bmt=F,nDt=Qn((ft(),se(ie(vs,1),Ql,64,0,[Cl,bn,_n,jn,wn])))}function SW(){SW=F,y4e=new kwe("BY_SIZE",0),mse=new kwe("BY_SIZE_AND_SHAPE",1)}function EW(){EW=F,Tse=new Cwe("EADES",0),DG=new Cwe("FRUCHTERMAN_REINGOLD",1)}function nN(){nN=F,dV=new Iwe("READING_DIRECTION",0),p$e=new Iwe("ROTATION",1)}function a6(){a6=F,C5t=new eze,A5t=new rze,R5t=new ize,x5t=new nze,T5t=new oze}function gmt(e){this.b=new st,this.a=new st,this.c=new st,this.d=new st,this.e=e}function wmt(e){this.g=e,this.f=new st,this.a=h.Math.min(this.g.c.c,this.g.d.c)}function mmt(e,t,i){sB.call(this),V_e(this),this.a=e,this.c=i,this.b=t.d,this.f=t.e}function o3n(e,t,i){var s,a;for(a=new ee(i);a.a=0&&t0?t-1:t,Zlt(Pbn(Hmt(Pye(new Ok,i),e.n),e.j),e.k)}function zs(e){var t,i;i=(t=new vY,t),zn((!e.q&&(e.q=new qe(Of,e,11,10)),e.q),i)}function U_e(e){return(e.i&2?"interface ":e.i&1?"":"class ")+(cb(e),e.o)}function kW(e){return Jl(e,Nr)>0?Nr:Jl(e,Qo)<0?Qo:tr(e)}function qv(e){return e<3?(Su(e,OCt),e+1):e=-.01&&e.a<=ah&&(e.a=0),e.b>=-.01&&e.b<=ah&&(e.b=0),e}function n2(e){m2();var t,i;for(i=lCe,t=0;ti&&(i=e[t]);return i}function Smt(e,t){var i;if(i=zN(e.Dh(),t),!i)throw ne(new hn(X1+t+moe));return i}function Xv(e,t){var i;for(i=e;di(i);)if(i=di(i),i==t)return!0;return!1}function g3n(e,t){var i,s,a;for(s=t.a.ld(),i=f(t.a.md(),16).gc(),a=0;ae||e>t)throw ne(new Y0e("fromIndex: 0, toIndex: "+e+oRe+t))}function Gm(e){if(e<0)throw ne(new hn("Illegal Capacity: "+e));this.g=this.aj(e)}function G_e(e,t){return Kd(),td(G1),h.Math.abs(e-t)<=G1||e==t||isNaN(e)&&isNaN(t)}function Aee(e,t){var i,s,a,c;for(s=e.d,a=0,c=s.length;a0&&(e.a/=t,e.b/=t),e}function vu(e){var t;return e.w?e.w:(t=a2n(e),t&&!t.Vh()&&(e.w=t),t)}function CC(e,t){var i,s;s=e.a,i=dCn(e,t,null),s!=t&&!e.e&&(i=_A(e,t,i)),i&&i.oj()}function Cmt(e,t,i){var s,a;s=t;do a=Ae(e.p[s.p])+i,e.p[s.p]=a,s=e.a[s.p];while(s!=t)}function Amt(e,t,i){var s=function(){return e.apply(s,arguments)};return t.apply(s,i),s}function E3n(e){var t;return e==null?null:(t=f(e,195),M6n(t,t.length))}function Se(e,t){if(e.g==null||t>=e.i)throw ne(new SQ(t,e.i));return e.Wi(t,e.g[t])}function k3n(e,t){qt();var i,s;for(s=new st,i=0;i=14&&t<=16))),e}function Yn(e,t){var i;return mn(t),i=e[":"+t],E7(!!i,"Enum constant undefined: "+t),i}function Wn(e,t,i,s,a,c){var b;return b=kZ(e,t),Umt(i,b),b.i=a?8:0,b.f=s,b.e=a,b.g=c,b}function K_e(e,t,i,s,a){this.d=t,this.k=s,this.f=a,this.o=-1,this.p=1,this.c=e,this.a=i}function q_e(e,t,i,s,a){this.d=t,this.k=s,this.f=a,this.o=-1,this.p=2,this.c=e,this.a=i}function X_e(e,t,i,s,a){this.d=t,this.k=s,this.f=a,this.o=-1,this.p=6,this.c=e,this.a=i}function J_e(e,t,i,s,a){this.d=t,this.k=s,this.f=a,this.o=-1,this.p=7,this.c=e,this.a=i}function Y_e(e,t,i,s,a){this.d=t,this.j=s,this.e=a,this.o=-1,this.p=4,this.c=e,this.a=i}function Gmt(e,t){var i,s,a,c;for(s=t,a=0,c=s.length;a=0))throw ne(new hn("tolerance ("+e+") must be >= 0"));return e}function zmt(e,t){var i;return ve(t,44)?e.c.Mc(t):(i=Rte(e,t),fH(e,t),i)}function Ls(e,t,i){return dw(e,t),Ra(e,i),wg(e,0),Jv(e,1),Sg(e,!0),_g(e,!0),e}function iN(e,t){var i;if(i=e.gc(),t<0||t>i)throw ne(new Lv(t,i));return new aye(e,t)}function PW(e,t){e.b=h.Math.max(e.b,t.d),e.e+=t.r+(e.a.c.length==0?0:e.c),lt(e.a,t)}function Kmt(e){Nv(e.c>=0),jAn(e.d,e.c)<0&&(e.a=e.a-1&e.d.a.length-1,e.b=e.d.c),e.c=-1}function OW(e){var t,i;for(i=e.c.Cc().Kc();i.Ob();)t=f(i.Pb(),16),t.$b();e.c.$b(),e.d=0}function N3n(e){var t,i,s,a;for(i=e.a,s=0,a=i.length;s=0}function iSe(e,t){e.r>0&&e.c0&&e.g!=0&&iSe(e.i,t/e.r*e.i.d))}function oSe(e,t){var i;i=e.c,e.c=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,1,i,e.c))}function Iee(e,t){var i;i=e.c,e.c=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,4,i,e.c))}function NC(e,t){var i;i=e.k,e.k=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,2,i,e.k))}function Pee(e,t){var i;i=e.D,e.D=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,2,i,e.D))}function MW(e,t){var i;i=e.f,e.f=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,8,i,e.f))}function DW(e,t){var i;i=e.i,e.i=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,7,i,e.i))}function sSe(e,t){var i;i=e.a,e.a=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,8,i,e.a))}function lSe(e,t){var i;i=e.b,e.b=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,0,i,e.b))}function aSe(e,t){var i;i=e.b,e.b=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,0,i,e.b))}function cSe(e,t){var i;i=e.c,e.c=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,1,i,e.c))}function uSe(e,t){var i;i=e.d,e.d=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,1,i,e.d))}function W3n(e,t,i){var s;e.b=t,e.a=i,s=(e.a&512)==512?new plt:new j1e,e.c=t7n(s,e.b,e.a)}function oyt(e,t){return xb(e.e,t)?(Ss(),See(t)?new mB(t,e):new l7(t,e)):new Out(t,e)}function H3n(e){var t,i;return 0>e?new dwe:(t=e+1,i=new w0t(t,e),new Wme(null,i))}function U3n(e,t){qt();var i;return i=new Fk(1),Eo(e)?Gs(i,e,t):Ca(i.f,e,t),new fY(i)}function G3n(e,t){var i,s;return i=e.c,s=t.e[e.p],s>0?f(yt(i.a,s-1),10):null}function V3n(e,t){var i,s;return i=e.o+e.p,s=t.o+t.p,it?(t<<=1,t>0?t:nI):t}function Oee(e){switch(_me(e.e!=3),e.e){case 2:return!1;case 0:return!0}return ekn(e)}function lyt(e,t){var i;return ve(t,8)?(i=f(t,8),e.a==i.a&&e.b==i.b):!1}function K3n(e,t){var i;i=new el,f(t.b,68),f(t.b,68),f(t.b,68),Ma(t.a,new mye(e,i,t))}function ayt(e,t){var i,s;for(s=t.vc().Kc();s.Ob();)i=f(s.Pb(),44),ON(e,i.ld(),i.md())}function fSe(e,t){var i;i=e.d,e.d=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,11,i,e.d))}function LW(e,t){var i;i=e.j,e.j=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,13,i,e.j))}function dSe(e,t){var i;i=e.b,e.b=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,21,i,e.b))}function q3n(e,t){(lW(),fh?null:t.c).length==0&&kdt(t,new Oe),Gs(e.a,fh?null:t.c,t)}function X3n(e,t){t.Ug("Hierarchical port constraint processing",1),h4n(e),Ojn(e),t.Vg()}function qm(){qm=F,Sy=new JY("START",0),e0=new JY("MIDDLE",1),_y=new JY("END",2)}function jW(){jW=F,nz=new Wwe("P1_NODE_PLACEMENT",0),rE=new Wwe("P2_EDGE_ROUTING",1)}function P1(){P1=F,q3=new Xr($Re),FG=new Xr(EAt),FI=new Xr(kAt),JM=new Xr(RAt)}function Xm(e){var t;return KQ(e.f.g,e.d),In(e.b),e.c=e.a,t=f(e.a.Pb(),44),e.b=RSe(e),t}function hSe(e){var t;return e.b==null?(lg(),lg(),Q9):(t=e.ul()?e.tl():e.sl(),t)}function cyt(e,t){var i;return i=t==null?-1:il(e.b,t,0),i<0?!1:(Mee(e,i),!0)}function nd(e,t){var i;return mn(t),i=t.g,e.b[i]?!1:(Ci(e.b,i,t),++e.c,!0)}function FW(e,t){var i,s;return i=1-t,s=e.a[i],e.a[i]=s.a[t],s.a[t]=e,e.b=!0,s.b=!1,s}function J3n(e,t){var i,s;for(s=t.Kc();s.Ob();)i=f(s.Pb(),272),e.b=!0,Zi(e.e,i),i.b=e}function Y3n(e,t){var i,s;return i=f(V(e,(pt(),F_)),8),s=f(V(t,F_),8),Qr(i.b,s.b)}function Nee(e,t,i){var s,a,c;return c=t>>5,a=t&31,s=fo(x1(e.n[i][c],tr(Zf(a,1))),3),s}function uyt(e,t,i){var s,a,c;for(c=e.a.length-1,a=e.b,s=0;s0?1:0:(!e.c&&(e.c=L7(Gl(e.f))),e.c).e}function yyt(e,t){t?e.B==null&&(e.B=e.D,e.D=null):e.B!=null&&(e.D=e.B,e.B=null)}function tRn(e,t){return WC(),e==vy&&t==C_||e==C_&&t==vy||e==L2&&t==x_||e==x_&&t==L2}function nRn(e,t){return WC(),e==vy&&t==x_||e==vy&&t==L2||e==C_&&t==L2||e==C_&&t==x_}function vyt(e,t){return Kd(),td(ah),h.Math.abs(0-t)<=ah||t==0||isNaN(0)&&isNaN(t)?0:e/t}function _yt(e,t){return Ae(je(tu(vN(nl(new Wt(null,new Vt(e.c.b,16)),new Ait(e)),t))))}function wSe(e,t){return Ae(je(tu(vN(nl(new Wt(null,new Vt(e.c.b,16)),new Cit(e)),t))))}function rRn(){return As(),se(ie(ble,1),Je,259,0,[gV,af,GI,wV,a4,U2,VI,s4,l4,mV])}function iRn(){return Sf(),se(ie(vIe,1),Je,243,0,[GV,h9,p9,wIe,mIe,gIe,yIe,VV,Oy,W_])}function oRn(e,t){var i;t.Ug("General Compactor",1),i=uAn(f(Qe(e,(H1(),Iae)),393)),i.Cg(e)}function sRn(e,t){var i,s;return i=f(Qe(e,(H1(),iz)),17),s=f(Qe(t,iz),17),Xl(i.a,s.a)}function mSe(e,t,i){var s,a;for(a=Hn(e,0);a.b!=a.d.c;)s=f(Bn(a),8),s.a+=t,s.b+=i;return e}function f6(e,t,i){var s;for(s=e.b[i&e.f];s;s=s.b)if(i==s.a&&Lh(t,s.g))return s;return null}function d6(e,t,i){var s;for(s=e.c[i&e.f];s;s=s.d)if(i==s.f&&Lh(t,s.i))return s;return null}function lRn(e,t,i){var s,a,c;for(s=0,a=0;a>>31;s!=0&&(e[i]=s)}function Fee(e,t,i,s,a,c){var b;this.c=e,b=new st,Y2e(e,b,t,e.b,i,s,a,c),this.a=new No(b,0)}function Syt(){this.c=new uF(0),this.b=new uF(sCe),this.d=new uF(c4t),this.a=new uF(lie)}function Ju(e,t,i,s,a,c,b){Jn.call(this,e,t),this.d=i,this.e=s,this.c=a,this.b=c,this.a=Qd(b)}function Di(e,t,i,s,a,c,b,g,m,_,k,I,D){return CEt(e,t,i,s,a,c,b,g,m,_,k,I,D),mte(e,!1),e}function aRn(e){return e.b.c.i.k==(gn(),Ui)?f(V(e.b.c.i,(nt(),Ur)),12):e.b.c}function Eyt(e){return e.b.d.i.k==(gn(),Ui)?f(V(e.b.d.i,(nt(),Ur)),12):e.b.d}function cRn(e){var t;return t=tW(e),Em(t.a,0)?(pF(),pF(),x6t):(pF(),new idt(t.b))}function Bee(e){var t;return t=Jve(e),Em(t.a,0)?(Av(),Av(),use):(Av(),new LQ(t.b))}function Wee(e){var t;return t=Jve(e),Em(t.a,0)?(Av(),Av(),use):(Av(),new LQ(t.c))}function kyt(e){switch(e.g){case 2:return ft(),wn;case 4:return ft(),_n;default:return e}}function Ryt(e){switch(e.g){case 1:return ft(),jn;case 3:return ft(),bn;default:return e}}function xyt(e){switch(e.g){case 0:return new sQe;case 1:return new lQe;default:return null}}function b3(){b3=F,zse=new _i("edgelabelcenterednessanalysis.includelabel",(cn(),Y1))}function ySe(){ySe=F,E7t=Hh(Kut(gr(gr(new Ki,(Yo(),sa),(ss(),YG)),ga,zG),ll),JG)}function Cyt(){Cyt=F,C7t=Hh(Kut(gr(gr(new Ki,(Yo(),sa),(ss(),YG)),ga,zG),ll),JG)}function Hee(){Hee=F,B5=new clt,Nce=se(ie(rc,1),O2,179,0,[]),qDt=se(ie(Of,1),RAe,62,0,[])}function MC(){MC=F,QM=new Awe("TO_INTERNAL_LTR",0),Use=new Awe("TO_INPUT_DIRECTION",1)}function bc(){bc=F,yTe=new fze,wTe=new dze,mTe=new hze,gTe=new pze,vTe=new bze,_Te=new gze}function uRn(e,t){t.Ug(BAt,1),S2e(qbn(new Kj((f$(),new $Z(e,!1,!1,new E1e))))),t.Vg()}function fRn(e,t,i){i.Ug("DFS Treeifying phase",1),AAn(e,t),xOn(e,t),e.a=null,e.b=null,i.Vg()}function oN(e,t){return cn(),Eo(e)?y_e(e,or(t)):Pv(e)?dZ(e,je(t)):Iv(e)?tvn(e,gt(t)):e.Fd(t)}function h6(e,t){var i,s;for(mn(t),s=t.vc().Kc();s.Ob();)i=f(s.Pb(),44),e.zc(i.ld(),i.md())}function dRn(e,t,i){var s;for(s=i.Kc();s.Ob();)if(!iW(e,t,s.Pb()))return!1;return!0}function hRn(e,t,i,s,a){var c;return i&&(c=yi(t.Dh(),e.c),a=i.Rh(t,-1-(c==-1?s:c),null,a)),a}function pRn(e,t,i,s,a){var c;return i&&(c=yi(t.Dh(),e.c),a=i.Th(t,-1-(c==-1?s:c),null,a)),a}function Ayt(e){var t;if(e.b==-2){if(e.e==0)t=-1;else for(t=0;e.a[t]==0;t++);e.b=t}return e.b}function bRn(e){if(mn(e),e.length==0)throw ne(new Ih("Zero length BigInteger"));vNn(this,e)}function vSe(e){this.i=e.gc(),this.i>0&&(this.g=this.aj(this.i+(this.i/8|0)+1),e.Qc(this.g))}function Tyt(e,t,i){this.g=e,this.d=t,this.e=i,this.a=new st,C5n(this),qt(),Hi(this.a,null)}function _Se(e,t){t.q=e,e.d=h.Math.max(e.d,t.r),e.b+=t.d+(e.a.c.length==0?0:e.c),lt(e.a,t)}function DC(e,t){var i,s,a,c;return a=e.c,i=e.c+e.b,c=e.d,s=e.d+e.a,t.a>a&&t.ac&&t.ba?i=a:pn(t,i+1),e.a=Vu(e.a,0,t)+(""+s)+bve(e.a,i)}function jyt(e,t){e.a=is(e.a,1),e.c=h.Math.min(e.c,t),e.b=h.Math.max(e.b,t),e.d=is(e.d,t)}function SRn(e,t){return t1||e.Ob())return++e.a,e.g=0,t=e.i,e.Ob(),t;throw ne(new yl)}function Hyt(e){switch(e.a.g){case 1:return new Kct;case 3:return new KSt;default:return new snt}}function ESe(e,t){switch(t){case 1:return!!e.n&&e.n.i!=0;case 2:return e.k!=null}return Xve(e,t)}function Gl(e){return dM>22),a=e.h+t.h+(s>>22),Oa(i&Vc,s&Vc,a&Ab)}function Jyt(e,t){var i,s,a;return i=e.l-t.l,s=e.m-t.m+(i>>22),a=e.h-t.h+(s>>22),Oa(i&Vc,s&Vc,a&Ab)}function URn(e){var t,i;for(DLn(e),i=new ee(e.d);i.as)throw ne(new Lv(t,s));return e.Si()&&(i=pgt(e,i)),e.Ei(t,i)}function HC(e,t,i,s,a){var c,b;for(b=i;b<=a;b++)for(c=t;c<=s;c++)u2(e,c,b)||ZH(e,c,b,!0,!1)}function rxn(e){m2();var t,i,s;for(i=Fe(wo,rt,8,2,0,1),s=0,t=0;t<2;t++)s+=.5,i[t]=J4n(s,e);return i}function UC(e){var t,i,s;return t=~e.l+1&Vc,i=~e.m+(t==0?1:0)&Vc,s=~e.h+(t==0&&i==0?1:0)&Ab,Oa(t,i,s)}function ISe(e){var t;if(e<0)return Qo;if(e==0)return 0;for(t=nI;!(t&e);t>>=1);return t}function Xee(e,t,i){return e>=128?!1:e<64?T$(fo(Zf(1,e),i),0):T$(fo(Zf(1,e-64),t),0)}function pN(e,t,i){return i==null?(!e.q&&(e.q=new Fn),f3(e.q,t)):(!e.q&&(e.q=new Fn),xr(e.q,t,i)),e}function Xe(e,t,i){return i==null?(!e.q&&(e.q=new Fn),f3(e.q,t)):(!e.q&&(e.q=new Fn),xr(e.q,t,i)),e}function lvt(e){var t,i;return i=new cW,ol(i,e),Xe(i,(P1(),q3),e),t=new Fn,PMn(e,i,t),sLn(e,i,t),i}function avt(e){var t,i;return t=e.t-e.k[e.o.p]*e.d+e.j[e.o.p]>e.f,i=e.u+e.e[e.o.p]*e.d>e.f*e.s*e.d,t||i}function cvt(e,t){var i,s,a,c;for(i=!1,s=e.a[t].length,c=0;c=0,"Negative initial capacity"),E7(t>=0,"Non-positive load factor"),xc(this)}function oxn(e,t,i,s,a){var c,b;if(b=e.length,c=i.length,t<0||s<0||a<0||t+a>b||s+a>c)throw ne(new E0e)}function MSe(e,t){qt();var i,s,a,c,b;for(b=!1,s=t,a=0,c=s.length;a1||t>=0&&e.b<3)}function Qee(e){var t,i,s;t=~e.l+1&Vc,i=~e.m+(t==0?1:0)&Vc,s=~e.h+(t==0&&i==0?1:0)&Ab,e.l=t,e.m=i,e.h=s}function jSe(e){qt();var t,i,s;for(s=1,i=e.Kc();i.Ob();)t=i.Pb(),s=31*s+(t!=null?ti(t):0),s=s|0;return s}function uxn(e,t,i,s,a){var c;return c=Cke(e,t),i&&Qee(c),a&&(e=rTn(e,t),s?J1=UC(e):J1=Oa(e.l,e.m,e.h)),c}function yvt(e,t,i){e.g=gne(e,t,(ft(),_n),e.b),e.d=gne(e,i,_n,e.b),!(e.g.c==0||e.d.c==0)&&J2t(e)}function vvt(e,t,i){e.g=gne(e,t,(ft(),wn),e.j),e.d=gne(e,i,wn,e.j),!(e.g.c==0||e.d.c==0)&&J2t(e)}function FSe(e,t){switch(t){case 7:return!!e.e&&e.e.i!=0;case 8:return!!e.d&&e.d.i!=0}return E2e(e,t)}function fxn(e,t){switch(t.g){case 0:ve(e.b,641)||(e.b=new Lyt);break;case 1:ve(e.b,642)||(e.b=new Dht)}}function _vt(e){switch(e.g){case 0:return new dQe;default:throw ne(new hn(ZU+(e.f!=null?e.f:""+e.g)))}}function Svt(e){switch(e.g){case 0:return new fQe;default:throw ne(new hn(ZU+(e.f!=null?e.f:""+e.g)))}}function dxn(e,t,i){return!Xx(Br(new Wt(null,new Vt(e.c,16)),new Bx(new aut(t,i)))).Bd((K0(),z3))}function Evt(e,t){return zk(iA(f(V(t,(Il(),My)),88)),new tt(e.c.e.a-e.b.e.a,e.c.e.b-e.b.e.b))<=0}function hxn(e,t){for(;e.g==null&&!e.c?Fve(e):e.g==null||e.i!=0&&f(e.g[e.i-1],51).Ob();)wgn(t,WH(e))}function fw(e){var t,i;for(i=new ee(e.a.b);i.as?1:0}function gxn(e){return lt(e.c,(g3(),d9t)),G_e(e.a,Ae(je(dt((kte(),BV)))))?new QQe:new Oot(e)}function wxn(e){for(;!e.d||!e.d.Ob();)if(e.b&&!l$(e.b))e.d=f(t3(e.b),51);else return null;return e.d}function WSe(e){switch(e.g){case 1:return c4t;default:case 2:return 0;case 3:return lie;case 4:return sCe}}function mxn(){Or();var e;return Bce||(e=j1n(U1("M",!0)),e=EB(U1("M",!1),e),Bce=e,Bce)}function JW(){JW=F,xce=new WF("ELK",0),sOe=new WF("JSON",1),oOe=new WF("DOT",2),lOe=new WF("SVG",3)}function w6(){w6=F,iae=new oQ("STACKED",0),rae=new oQ("REVERSE_STACKED",1),b9=new oQ("SEQUENCED",2)}function m6(){m6=F,XIe=new fQ(Jh,0),uae=new fQ("MIDDLE_TO_MIDDLE",1),m9=new fQ("AVOID_OVERLAP",2)}function zC(){zC=F,r$e=new qKe,i$e=new XKe,q5t=new zKe,K5t=new JKe,z5t=new KKe,n$e=(mn(z5t),new Ge)}function YW(){YW=F,GPe=new Rm(15),q9t=new Po((Er(),Bg),GPe),A5=lR,BPe=C9t,WPe=Hw,UPe=fE,HPe=V_}function i2(e,t){var i,s,a,c,b;for(s=t,a=0,c=s.length;a=e.b.c.length||(USe(e,2*t+1),i=2*t+2,i0&&(t.Cd(i),i.i&&vCn(i))}function GSe(e,t,i){var s;for(s=i-1;s>=0&&e[s]===t[s];s--);return s<0?0:GY(fo(e[s],Ts),fo(t[s],Ts))?-1:1}function xvt(e,t,i){var s,a;this.g=e,this.c=t,this.a=this,this.d=this,a=syt(i),s=Fe(s6t,cM,227,a,0,1),this.b=s}function rte(e,t,i,s,a){var c,b;for(b=i;b<=a;b++)for(c=t;c<=s;c++)if(u2(e,c,b))return!0;return!1}function kxn(e,t){var i,s;for(s=e.Zb().Cc().Kc();s.Ob();)if(i=f(s.Pb(),16),i.Hc(t))return!0;return!1}function Cvt(e,t,i){var s,a,c,b;for(mn(i),b=!1,c=e.fd(t),a=i.Kc();a.Ob();)s=a.Pb(),c.Rb(s),b=!0;return b}function ite(e,t){var i,s;return s=f(dn(e.a,4),129),i=Fe(Pce,Moe,424,t,0,1),s!=null&&oa(s,0,i,0,s.length),i}function Avt(e,t){var i;return i=new Pne((e.f&256)!=0,e.i,e.a,e.d,(e.f&16)!=0,e.j,e.g,t),e.e!=null||(i.c=e),i}function Rxn(e,t){var i;return e===t?!0:ve(t,85)?(i=f(t,85),KEe(X0(e),i.vc())):!1}function Tvt(e,t,i){var s,a;for(a=i.Kc();a.Ob();)if(s=f(a.Pb(),44),e.Be(t,s.md()))return!0;return!1}function $vt(e,t,i){return e.d[t.p][i.p]||(A4n(e,t,i),e.d[t.p][i.p]=!0,e.d[i.p][t.p]=!0),e.a[t.p][i.p]}function xxn(e,t){var i;return!e||e==t||!ri(t,(nt(),ky))?!1:(i=f(V(t,(nt(),ky)),10),i!=e)}function ote(e){switch(e.i){case 2:return!0;case 1:return!1;case-1:++e.c;default:return e.$l()}}function Ivt(e){switch(e.i){case-2:return!0;case-1:return!1;case 1:--e.c;default:return e._l()}}function Pvt(e){ygt.call(this,"The given string does not match the expected format for individual spacings.",e)}function Cxn(e,t){var i;t.Ug("Min Size Preprocessing",1),i=nke(e),zr(e,(Ep(),g5),i.a),zr(e,lz,i.b),t.Vg()}function Axn(e){var t,i,s;for(t=0,s=Fe(wo,rt,8,e.b,0,1),i=Hn(e,0);i.b!=i.d.c;)s[t++]=f(Bn(i),8);return s}function ste(e,t,i){var s,a,c;for(s=new li,c=Hn(i,0);c.b!=c.d.c;)a=f(Bn(c),8),hr(s,new us(a));Cvt(e,t,s)}function Txn(e,t){var i;return i=is(e,t),GY(XZ(e,t),0)|GF(XZ(e,i),0)?i:is(aM,XZ(x1(i,63),1))}function $xn(e,t){var i,s;return i=f(e.d.Bc(t),16),i?(s=e.e.hc(),s.Gc(i),e.e.d-=i.gc(),i.$b(),s):null}function Ovt(e){var t;if(t=e.a.c.length,t>0)return uC(t-1,e.a.c.length),pg(e.a,t-1);throw ne(new Ost)}function Nvt(e,t,i){if(e>t)throw ne(new hn(gU+e+XCt+t));if(e<0||t>i)throw ne(new Y0e(gU+e+aRe+t+oRe+i))}function KC(e,t){e.D==null&&e.B!=null&&(e.D=e.B,e.B=null),Pee(e,t==null?null:(mn(t),t)),e.C&&e.hl(null)}function Ixn(e,t){var i;i=dt((kte(),BV))!=null&&t.Sg()!=null?Ae(je(t.Sg()))/Ae(je(dt(BV))):1,xr(e.b,t,i)}function VSe(e,t){var i,s;if(s=e.c[t],s!=0)for(e.c[t]=0,e.d-=s,i=t+1;izU?e-i>zU:i-e>zU}function Vvt(e,t){var i;for(i=0;ia&&(_2t(t.q,a),s=i!=t.q.d)),s}function zvt(e,t){var i,s,a,c,b,g,m,_;return m=t.i,_=t.j,s=e.f,a=s.i,c=s.j,b=m-a,g=_-c,i=h.Math.sqrt(b*b+g*g),i}function YSe(e,t){var i,s;return s=dH(e),s||(i=(ere(),Okt(t)),s=new Sst(i),zn(s.El(),e)),s}function mN(e,t){var i,s;return i=f(e.c.Bc(t),16),i?(s=e.hc(),s.Gc(i),e.d-=i.gc(),i.$b(),e.mc(s)):e.jc()}function Hxn(e,t){var i,s;for(s=Uc(e.d,1)!=0,i=!0;i;)i=!1,i=t.c.mg(t.e,s),i=i|KN(e,t,s,!1),s=!s;bSe(e)}function Kvt(e,t,i,s){var a,c;e.a=t,c=s?0:1,e.f=(a=new sEt(e.c,e.a,i,c),new j3t(i,e.a,a,e.e,e.b,e.c==(Km(),s5)))}function ZW(e){var t;return In(e.a!=e.b),t=e.d.a[e.a],_dt(e.b==e.d.c&&t!=null),e.c=e.a,e.a=e.a+1&e.d.a.length-1,t}function qvt(e){var t;if(e.c!=0)return e.c;for(t=0;t=e.c.b:e.a<=e.c.b))throw ne(new yl);return t=e.a,e.a+=e.c.c,++e.b,ot(t)}function fte(e){var t;return t=new dme(e.a),ol(t,e),Xe(t,(nt(),Ur),e),t.o.a=e.g,t.o.b=e.f,t.n.a=e.i,t.n.b=e.j,t}function dte(e){return(ft(),tc).Hc(e.j)?Ae(je(V(e,(nt(),c4)))):kl(se(ie(wo,1),rt,8,0,[e.i.n,e.n,e.a])).b}function Gxn(e){var t;return t=XF(S7t),f(V(e,(nt(),ma)),21).Hc((As(),a4))&&gr(t,(Yo(),sa),(ss(),eV)),t}function Vxn(e){var t,i,s,a;for(a=new Gi,s=new ee(e);s.a=0?t:-t;s>0;)s%2==0?(i*=i,s=s/2|0):(a*=i,s-=1);return t<0?1/a:a}function Jxn(e,t){var i,s,a;for(a=1,i=e,s=t>=0?t:-t;s>0;)s%2==0?(i*=i,s=s/2|0):(a*=i,s-=1);return t<0?1/a:a}function D1(e,t){var i,s,a,c;return c=(a=e?dH(e):null,TEt((s=t,a&&a.Gl(),s))),c==t&&(i=dH(e),i&&i.Gl()),c}function Xvt(e,t,i){var s,a;return a=e.f,e.f=t,e.Db&4&&!(e.Db&1)&&(s=new yo(e,1,0,a,t),i?i.nj(s):i=s),i}function Jvt(e,t,i){var s,a;return a=e.b,e.b=t,e.Db&4&&!(e.Db&1)&&(s=new yo(e,1,3,a,t),i?i.nj(s):i=s),i}function ZSe(e,t,i){var s,a;return a=e.a,e.a=t,e.Db&4&&!(e.Db&1)&&(s=new yo(e,1,1,a,t),i?i.nj(s):i=s),i}function Yvt(e){var t,i;if(e!=null)for(i=0;i=s||t-129&&e<128?(Mht(),t=e+128,i=YAe[t],!i&&(i=YAe[t]=new Z1e(e)),i):new Z1e(e)}function XC(e){var t,i;return e>-129&&e<128?(Qht(),t=e+128,i=t4e[t],!i&&(i=t4e[t]=new t0e(e)),i):new t0e(e)}function e_t(e,t){var i;e.a.c.length>0&&(i=f(yt(e.a,e.a.c.length-1),579),HSe(i,t))||lt(e.a,new m0t(t))}function nCn(e){Qf();var t,i;t=e.d.c-e.e.c,i=f(e.g,154),Ma(i.b,new bit(t)),Ma(i.c,new git(t)),Vo(i.i,new wit(t))}function t_t(e){var t;return t=new m1,t.a+="VerticalSegment ",aa(t,e.e),t.a+=" ",br(t,yme(new IY,new ee(e.k))),t.a}function hte(e,t){var i,s,a;for(i=0,a=Rl(e,t).Kc();a.Ob();)s=f(a.Pb(),12),i+=V(s,(nt(),Ic))!=null?1:0;return i}function l2(e,t,i){var s,a,c;for(s=0,c=Hn(e,0);c.b!=c.d.c&&(a=Ae(je(Bn(c))),!(a>i));)a>=t&&++s;return s}function n_t(e,t){nr(e);try{return e._b(t)}catch(i){if(i=mi(i),ve(i,212)||ve(i,169))return!1;throw ne(i)}}function t2e(e,t){nr(e);try{return e.Hc(t)}catch(i){if(i=mi(i),ve(i,212)||ve(i,169))return!1;throw ne(i)}}function rCn(e,t){nr(e);try{return e.Mc(t)}catch(i){if(i=mi(i),ve(i,212)||ve(i,169))return!1;throw ne(i)}}function Zv(e,t){nr(e);try{return e.xc(t)}catch(i){if(i=mi(i),ve(i,212)||ve(i,169))return null;throw ne(i)}}function iCn(e,t){nr(e);try{return e.Bc(t)}catch(i){if(i=mi(i),ve(i,212)||ve(i,169))return null;throw ne(i)}}function _6(e,t){switch(t.g){case 2:case 1:return Rl(e,t);case 3:case 4:return Zu(Rl(e,t))}return qt(),qt(),ps}function S6(e){var t;return e.Db&64?rd(e):(t=new wf(rd(e)),t.a+=" (name: ",Ms(t,e.zb),t.a+=")",t.a)}function oCn(e){var t;return t=f(th(e.c.c,""),233),t||(t=new l3(Kx(zx(new Ak,""),"Other")),kg(e.c.c,"",t)),t}function n2e(e,t,i){var s,a;return a=e.sb,e.sb=t,e.Db&4&&!(e.Db&1)&&(s=new yo(e,1,4,a,t),i?i.nj(s):i=s),i}function r2e(e,t,i){var s,a;return a=e.r,e.r=t,e.Db&4&&!(e.Db&1)&&(s=new yo(e,1,8,a,e.r),i?i.nj(s):i=s),i}function sCn(e,t,i){var s,a;return s=new gb(e.e,4,13,(a=t.c,a||(Kt(),vh)),null,Rg(e,t),!1),i?i.nj(s):i=s,i}function lCn(e,t,i){var s,a;return s=new gb(e.e,3,13,null,(a=t.c,a||(Kt(),vh)),Rg(e,t),!1),i?i.nj(s):i=s,i}function vg(e,t){var i,s;return i=f(t,691),s=i.el(),!s&&i.fl(s=ve(t,90)?new Nut(e,f(t,29)):new r1t(e,f(t,156))),s}function yN(e,t,i){var s;e._i(e.i+1),s=e.Zi(t,i),t!=e.i&&oa(e.g,t,e.g,t+1,e.i-t),Ci(e.g,t,s),++e.i,e.Mi(t,i),e.Ni()}function aCn(e,t){var i;return t.a&&(i=t.a.a.length,e.a?br(e.a,e.b):e.a=new gu(e.d),u1t(e.a,t.a,t.d.length,i)),e}function cCn(e,t){var i;e.c=t,e.a=pAn(t),e.a<54&&(e.f=(i=t.d>1?a1t(t.a[0],t.a[1]):a1t(t.a[0],0),rw(t.e>0?i:gg(i))))}function vN(e,t){var i;return i=new de,e.a.Bd(i)?(tC(),new RY(mn(Uwt(e,i.a,t)))):(A1(e),tC(),tC(),d4e)}function r_t(e,t){var i;e.c.length!=0&&(i=f(ih(e,Fe(Op,$g,10,e.c.length,0,1)),199),ime(i,new eKe),JEt(i,t))}function i_t(e,t){var i;e.c.length!=0&&(i=f(ih(e,Fe(Op,$g,10,e.c.length,0,1)),199),ime(i,new tKe),JEt(i,t))}function Lr(e,t){return Eo(e)?Ht(e,t):Pv(e)?Qdt(e,t):Iv(e)?(mn(e),Ne(e)===Ne(t)):Yye(e)?e.Fb(t):Gye(e)?Jut(e,t):Gve(e,t)}function Yu(e,t,i){if(t<0)cke(e,i);else{if(!i.rk())throw ne(new hn(X1+i.xe()+_I));f(i,69).wk().Ek(e,e.hi(),t)}}function o_t(e,t,i){if(e<0||t>i)throw ne(new Hs(gU+e+aRe+t+", size: "+i));if(e>t)throw ne(new hn(gU+e+XCt+t))}function s_t(e){var t;return e.Db&64?rd(e):(t=new wf(rd(e)),t.a+=" (source: ",Ms(t,e.d),t.a+=")",t.a)}function l_t(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e>=48&&e<=57?e-48:0}function uCn(e){fU();var t,i,s,a;for(i=Pte(),s=0,a=i.length;s=0?j1(e):X$(j1(gg(e))))}function u_t(e,t,i,s,a,c){this.e=new st,this.f=(Cs(),i5),lt(this.e,e),this.d=t,this.a=i,this.b=s,this.f=a,this.c=c}function hCn(e,t,i){e.n=q0(m0,[rt,jre],[376,28],14,[i,oo(h.Math.ceil(t/32))],2),e.o=t,e.p=i,e.j=t-1>>1,e.k=i-1>>1}function f_t(e){return e-=e>>1&1431655765,e=(e>>2&858993459)+(e&858993459),e=(e>>4)+e&252645135,e+=e>>8,e+=e>>16,e&63}function d_t(e,t){var i,s;for(s=new Sn(e);s.e!=s.i.gc();)if(i=f(Cn(s),142),Ne(t)===Ne(i))return!0;return!1}function pCn(e,t,i){var s,a,c;return c=(a=dA(e.b,t),a),c&&(s=f(sU(Y7(e,c),""),29),s)?Ike(e,s,t,i):null}function pte(e,t,i){var s,a,c;return c=(a=dA(e.b,t),a),c&&(s=f(sU(Y7(e,c),""),29),s)?Pke(e,s,t,i):null}function bCn(e,t){var i;if(i=r2(e.i,t),i==null)throw ne(new $h("Node did not exist in input."));return SSe(t,i),null}function gCn(e,t){var i;if(i=zN(e,t),ve(i,331))return f(i,35);throw ne(new hn(X1+t+"' is not a valid attribute"))}function k6(e,t,i){var s;if(s=e.gc(),t>s)throw ne(new Lv(t,s));if(e.Si()&&e.Hc(i))throw ne(new hn(OM));e.Gi(t,i)}function wCn(e,t){t.Ug("Sort end labels",1),Mi(Br(El(new Wt(null,new Vt(e.b,16)),new jze),new Fze),new Bze),t.Vg()}function Xi(){Xi=F,wh=new i7(lI,0),al=new i7(D3,1),Js=new i7(M3,2),gh=new i7(Yre,3),cf=new i7("UP",4)}function SN(){SN=F,uz=new mQ("P1_STRUCTURE",0),fz=new mQ("P2_PROCESSING_ORDER",1),dz=new mQ("P3_EXECUTION",2)}function h_t(){h_t=F,LNt=Hh(Hh(b$(Hh(Hh(b$(gr(new Ki,(k3(),c5),(K6(),cae)),u5),VIe),KIe),f5),WIe),qIe)}function mCn(e){switch(f(V(e,(nt(),Iw)),311).g){case 1:Xe(e,Iw,(wb(),J3));break;case 2:Xe(e,Iw,(wb(),G2))}}function yCn(e){switch(e){case 0:return new nlt;case 1:return new elt;case 2:return new tlt;default:throw ne(new DO)}}function p_t(e){switch(e.g){case 2:return al;case 1:return Js;case 4:return gh;case 3:return cf;default:return wh}}function l2e(e,t){switch(e.b.g){case 0:case 1:return t;case 2:case 3:return new Gu(t.d,0,t.a,t.b);default:return null}}function a2e(e){switch(e.g){case 1:return wn;case 2:return bn;case 3:return _n;case 4:return jn;default:return Cl}}function EN(e){switch(e.g){case 1:return jn;case 2:return wn;case 3:return bn;case 4:return _n;default:return Cl}}function nH(e){switch(e.g){case 1:return _n;case 2:return jn;case 3:return wn;case 4:return bn;default:return Cl}}function c2e(e,t,i,s){switch(t){case 1:return!e.n&&(e.n=new qe(Fs,e,1,7)),e.n;case 2:return e.k}return tEe(e,t,i,s)}function R6(e,t,i){var s,a;return e.Pj()?(a=e.Qj(),s=_ne(e,t,i),e.Jj(e.Ij(7,ot(i),s,t,a)),s):_ne(e,t,i)}function bte(e,t){var i,s,a;e.d==null?(++e.e,--e.f):(a=t.ld(),i=t.Bi(),s=(i&Nr)%e.d.length,ikn(e,s,Lkt(e,s,i,a)))}function JC(e,t){var i;i=(e.Bb&sd)!=0,t?e.Bb|=sd:e.Bb&=-1025,e.Db&4&&!(e.Db&1)&&Dr(e,new ed(e,1,10,i,t))}function YC(e,t){var i;i=(e.Bb&g_)!=0,t?e.Bb|=g_:e.Bb&=-4097,e.Db&4&&!(e.Db&1)&&Dr(e,new ed(e,1,12,i,t))}function QC(e,t){var i;i=(e.Bb&yc)!=0,t?e.Bb|=yc:e.Bb&=-8193,e.Db&4&&!(e.Db&1)&&Dr(e,new ed(e,1,15,i,t))}function ZC(e,t){var i;i=(e.Bb&E_)!=0,t?e.Bb|=E_:e.Bb&=-2049,e.Db&4&&!(e.Db&1)&&Dr(e,new ed(e,1,11,i,t))}function vCn(e){var t;e.g&&(t=e.c.kg()?e.f:e.a,Vke(t.a,e.o,!0),Vke(t.a,e.o,!1),Xe(e.o,(pt(),Oi),(Co(),Gw)))}function _Cn(e){var t;if(!e.a)throw ne(new Us("Cannot offset an unassigned cut."));t=e.c-e.b,e.b+=t,Fbt(e,t),jbt(e,t)}function SCn(e,t){var i;if(i=En(e.k,t),i==null)throw ne(new $h("Port did not exist in input."));return SSe(t,i),null}function ECn(e){var t,i;for(i=Nkt(vu(e)).Kc();i.Ob();)if(t=or(i.Pb()),q6(e,t))return kEn((gct(),DDt),t);return null}function b_t(e){var t,i;for(i=e.p.a.ec().Kc();i.Ob();)if(t=f(i.Pb(),218),t.f&&e.b[t.c]<-1e-10)return t;return null}function kCn(e){var t,i;for(i=Q0(new m1,91),t=!0;e.Ob();)t||(i.a+=ds),t=!1,aa(i,e.Pb());return(i.a+="]",i).a}function RCn(e){var t,i,s;for(t=new st,s=new ee(e.b);s.at?1:e==t?e==0?Qr(1/e,1/t):0:isNaN(e)?isNaN(t)?0:1:-1}function CCn(e){var t;return t=e.a[e.c-1&e.a.length-1],t==null?null:(e.c=e.c-1&e.a.length-1,Ci(e.a,e.c,null),t)}function ACn(e){var t,i,s;for(s=0,i=e.length,t=0;t=1?al:gh):i}function PCn(e){switch(f(V(e,(pt(),Ob)),223).g){case 1:return new RXe;case 3:return new $Xe;default:return new kXe}}function L1(e){if(e.c)L1(e.c);else if(e.d)throw ne(new Us("Stream already terminated, can't be modified or used"))}function Ym(e,t,i){var s;return s=e.a.get(t),e.a.set(t,i===void 0?null:i),s===void 0?(++e.c,++e.b.g):++e.d,s}function OCn(e,t,i){var s,a;for(a=e.a.ec().Kc();a.Ob();)if(s=f(a.Pb(),10),uN(i,f(yt(t,s.p),16)))return s;return null}function f2e(e,t,i){var s;return s=0,t&&(US(e.a)?s+=t.f.a/2:s+=t.f.b/2),i&&(US(e.a)?s+=i.f.a/2:s+=i.f.b/2),s}function NCn(e,t,i){var s;s=i,!s&&(s=Pye(new Ok,0)),s.Ug(CAt,2),vSt(e.b,t,s.eh(1)),X9n(e,t,s.eh(1)),QLn(t,s.eh(1)),s.Vg()}function d2e(e,t,i){var s,a;return s=(v1(),a=new jj,a),TW(s,t),AW(s,i),e&&zn((!e.a&&(e.a=new zi(Nu,e,5)),e.a),s),s}function wte(e){var t;return e.Db&64?rd(e):(t=new wf(rd(e)),t.a+=" (identifier: ",Ms(t,e.k),t.a+=")",t.a)}function mte(e,t){var i;i=(e.Bb&Vl)!=0,t?e.Bb|=Vl:e.Bb&=-32769,e.Db&4&&!(e.Db&1)&&Dr(e,new ed(e,1,18,i,t))}function h2e(e,t){var i;i=(e.Bb&Vl)!=0,t?e.Bb|=Vl:e.Bb&=-32769,e.Db&4&&!(e.Db&1)&&Dr(e,new ed(e,1,18,i,t))}function eA(e,t){var i;i=(e.Bb&Vh)!=0,t?e.Bb|=Vh:e.Bb&=-16385,e.Db&4&&!(e.Db&1)&&Dr(e,new ed(e,1,16,i,t))}function p2e(e,t){var i;i=(e.Bb&ys)!=0,t?e.Bb|=ys:e.Bb&=-65537,e.Db&4&&!(e.Db&1)&&Dr(e,new ed(e,1,20,i,t))}function b2e(e){var t;return t=Fe(df,zh,28,2,15,1),e-=ys,t[0]=(e>>10)+hM&Ji,t[1]=(e&1023)+56320&Ji,Bh(t,0,t.length)}function MCn(e){var t;return t=o_(e),t>34028234663852886e22?hi:t<-34028234663852886e22?to:t}function is(e,t){var i;return ul(e)&&ul(t)&&(i=e+t,dM"+nw(t.c):"e_"+ti(t),e.b&&e.c?nw(e.b)+"->"+nw(e.c):"e_"+ti(e))}function jCn(e,t){return Ht(t.b&&t.c?nw(t.b)+"->"+nw(t.c):"e_"+ti(t),e.b&&e.c?nw(e.b)+"->"+nw(e.c):"e_"+ti(e))}function Qm(e,t){return Kd(),td(G1),h.Math.abs(e-t)<=G1||e==t||isNaN(e)&&isNaN(t)?0:et?1:km(isNaN(e),isNaN(t))}function _b(){_b=F,_ce=new LF(lI,0),L9=new LF("POLYLINE",1),C4=new LF("ORTHOGONAL",2),uR=new LF("SPLINES",3)}function iH(){iH=F,V5e=new gQ("ASPECT_RATIO_DRIVEN",0),Wae=new gQ("MAX_SCALE_DRIVEN",1),G5e=new gQ("AREA_DRIVEN",2)}function FCn(e,t,i){var s;try{axn(e,t,i)}catch(a){throw a=mi(a),ve(a,606)?(s=a,ne(new b_e(s))):ne(a)}return t}function BCn(e){var t,i,s;for(i=0,s=e.length;it&&s.Ne(e[c-1],e[c])>0;--c)b=e[c],Ci(e,c,e[c-1]),Ci(e,c-1,b)}function Ot(e,t){var i,s,a,c,b;if(i=t.f,kg(e.c.d,i,t),t.g!=null)for(a=t.g,c=0,b=a.length;ct){h1t(i);break}}A7(i,t)}function GCn(e,t){var i,s,a;s=ZS(t),a=Ae(je(t_(s,(pt(),ud)))),i=h.Math.max(0,a/2-.5),N6(t,i,1),lt(e,new Pct(t,i))}function VCn(e,t,i){var s;i.Ug("Straight Line Edge Routing",1),i.dh(t,gCe),s=f(Qe(t,(JS(),nE)),27),txt(e,s),i.dh(t,XU)}function g2e(e,t){e.n.c.length==0&<(e.n,new YB(e.s,e.t,e.i)),lt(e.b,t),J2e(f(yt(e.n,e.n.c.length-1),209),t),LRt(e,t)}function x6(e){var t;this.a=(t=f(e.e&&e.e(),9),new Uu(t,f(Yf(t,t.length),9),0)),this.b=Fe(ho,on,1,this.a.a.length,5,1)}function dl(e){var t;return Array.isArray(e)&&e.Tm===ae?z0(ou(e))+"@"+(t=ti(e)>>>0,t.toString(16)):e.toString()}function zCn(e,t){return e.h==fM&&e.m==0&&e.l==0?(t&&(J1=Oa(0,0,0)),Qut((xC(),VAe))):(t&&(J1=Oa(e.l,e.m,e.h)),Oa(0,0,0))}function KCn(e,t){switch(t.g){case 2:return e.b;case 1:return e.c;case 4:return e.d;case 3:return e.a;default:return!1}}function y_t(e,t){switch(t.g){case 2:return e.b;case 1:return e.c;case 4:return e.d;case 3:return e.a;default:return!1}}function w2e(e,t,i,s){switch(t){case 3:return e.f;case 4:return e.g;case 5:return e.i;case 6:return e.j}return c2e(e,t,i,s)}function oH(e,t){if(t==e.d)return e.e;if(t==e.e)return e.d;throw ne(new hn("Node "+t+" not part of edge "+e))}function qCn(e,t){var i;if(i=zN(e.Dh(),t),ve(i,102))return f(i,19);throw ne(new hn(X1+t+"' is not a valid reference"))}function Qu(e,t,i,s){if(t<0)Dke(e,i,s);else{if(!i.rk())throw ne(new hn(X1+i.xe()+_I));f(i,69).wk().Ck(e,e.hi(),t,s)}}function Hc(e){var t;if(e.b){if(Hc(e.b),e.b.d!=e.c)throw ne(new Bu)}else e.d.dc()&&(t=f(e.f.c.xc(e.e),16),t&&(e.d=t))}function XCn(e){Mv();var t,i,s,a;for(t=e.o.b,s=f(f(Hr(e.r,(ft(),jn)),21),87).Kc();s.Ob();)i=f(s.Pb(),117),a=i.e,a.b+=t}function JCn(e){var t,i,s;for(this.a=new Oh,s=new ee(e);s.a=a)return t.c+i;return t.c+t.b.gc()}function QCn(e,t){oC();var i,s,a,c;for(s=Iwt(e),a=t,kC(s,0,s.length,a),i=0;i0&&(s+=a,++i);return i>1&&(s+=e.d*(i-1)),s}function eAn(e){var t,i,s,a,c;return c=MEe(e),i=BO(e.c),s=!i,s&&(a=new B0,Id(c,"knownLayouters",a),t=new cst(a),Vo(e.c,t)),c}function v2e(e){var t,i,s;for(s=new ig,s.a+="[",t=0,i=e.gc();t0&&(pn(t-1,e.length),e.charCodeAt(t-1)==58)&&!_te(e,j5,F5))}function _2e(e,t){var i;return Ne(e)===Ne(t)?!0:ve(t,92)?(i=f(t,92),e.e==i.e&&e.d==i.d&&CEn(e,i.a)):!1}function y3(e){switch(ft(),e.g){case 4:return bn;case 1:return _n;case 3:return jn;case 2:return wn;default:return Cl}}function iAn(e){var t,i;if(e.b)return e.b;for(i=fh?null:e.d;i;){if(t=fh?null:i.b,t)return t;i=fh?null:i.d}return Zx(),b4e}function S2e(e){var t,i,s;for(s=Ae(je(e.a.of((Er(),vz)))),i=new ee(e.a.Sf());i.a>5,t=e&31,s=Fe(Xn,wr,28,i+1,15,1),s[i]=1<3;)a*=10,--c;e=(e+(a>>1))/a|0}return s.i=e,!0}function yi(e,t){var i,s,a;if(i=(e.i==null&&Gh(e),e.i),s=t.Lj(),s!=-1){for(a=i.length;s=0;--s)for(t=i[s],a=0;a>1,this.k=t-1>>1}function yAn(e){bW(),f(e.of((Er(),l0)),181).Hc((Gc(),Cz))&&(f(e.of(z_),181).Fc(($c(),fR)),f(e.of(l0),181).Mc(Cz))}function x_t(e){var t,i;t=e.d==(R3(),e4),i=REe(e),t&&!i||!t&&i?Xe(e.a,(pt(),np),(_p(),T9)):Xe(e.a,(pt(),np),(_p(),A9))}function kte(){kte=F,wF(),BV=(pt(),Py),XOt=Qd(se(ie(rce,1),rCe,149,0,[f9,ud,J2,Iy,B_,Ble,p4,b4,Wle,e5,X2,jw,Y2]))}function vAn(e,t){var i;return i=f(fl(e,Cc(new K,new B,new Qt,se(ie(qs,1),Je,108,0,[(Tc(),pl)]))),15),i.Qc(Kht(i.gc()))}function C_t(e,t){var i,s;if(s=new Fx(e.a.ad(t,!0)),s.a.gc()<=1)throw ne(new $k);return i=s.a.ec().Kc(),i.Pb(),f(i.Pb(),40)}function _An(e,t,i){var s,a;return s=Ae(e.p[t.i.p])+Ae(e.d[t.i.p])+t.n.b+t.a.b,a=Ae(e.p[i.i.p])+Ae(e.d[i.i.p])+i.n.b+i.a.b,a-s}function T2e(e,t){var i;return e.i>0&&(t.lengthe.i&&Ci(t,e.i,null),t}function lH(e){var t;return e.Db&64?S6(e):(t=new wf(S6(e)),t.a+=" (instanceClassName: ",Ms(t,e.D),t.a+=")",t.a)}function aH(e){var t,i,s,a;for(a=0,i=0,s=e.length;i0?(e._j(),s=t==null?0:ti(t),a=(s&Nr)%e.d.length,i=Lkt(e,a,s,t),i!=-1):!1}function A_t(e,t){var i,s;e.a=is(e.a,1),e.c=h.Math.min(e.c,t),e.b=h.Math.max(e.b,t),e.d+=t,i=t-e.f,s=e.e+i,e.f=s-e.e-i,e.e=s}function $2e(e,t){switch(t){case 3:Vm(e,0);return;case 4:zm(e,0);return;case 5:Da(e,0);return;case 6:La(e,0);return}e2e(e,t)}function Zm(e,t){switch(t.g){case 1:return Yk(e.j,(bc(),wTe));case 2:return Yk(e.j,(bc(),yTe));default:return qt(),qt(),ps}}function I2e(e){Nm();var t;switch(t=e.Pc(),t.length){case 0:return Zoe;case 1:return new iZ(nr(t[0]));default:return new FZ(BCn(t))}}function T_t(e,t){e.Xj();try{e.d.bd(e.e++,t),e.f=e.d.j,e.g=-1}catch(i){throw i=mi(i),ve(i,77)?ne(new Bu):ne(i)}}function xte(){xte=F,Dce=new SZe,xOe=new EZe,COe=new kZe,AOe=new RZe,TOe=new xZe,$Oe=new CZe,IOe=new AZe,POe=new TZe,OOe=new $Ze}function cH(e,t){eme();var i,s;return i=w7((rF(),rF(),OI)),s=null,t==i&&(s=f(ua(UAe,e),624)),s||(s=new qpt(e),t==i&&Gs(UAe,e,s)),s}function $_t(e){n_();var t;return(e.q?e.q:(qt(),qt(),Ip))._b((pt(),Ty))?t=f(V(e,Ty),203):t=f(V(Go(e),ZI),203),t}function t_(e,t){var i,s;return s=null,ri(e,(pt(),jV))&&(i=f(V(e,jV),96),i.pf(t)&&(s=i.of(t))),s==null&&(s=V(Go(e),t)),s}function I_t(e,t){var i,s,a;return ve(t,44)?(i=f(t,44),s=i.ld(),a=Zv(e.Rc(),s),Lh(a,i.md())&&(a!=null||e.Rc()._b(s))):!1}function Od(e,t){var i,s,a;return e.f>0&&(e._j(),s=t==null?0:ti(t),a=(s&Nr)%e.d.length,i=gke(e,a,s,t),i)?i.md():null}function xa(e,t,i){var s,a,c;return e.Pj()?(s=e.i,c=e.Qj(),yN(e,s,t),a=e.Ij(3,null,t,s,c),i?i.nj(a):i=a):yN(e,e.i,t),i}function EAn(e,t,i){var s,a;return s=new gb(e.e,4,10,(a=t.c,ve(a,90)?f(a,29):(Kt(),Mf)),null,Rg(e,t),!1),i?i.nj(s):i=s,i}function kAn(e,t,i){var s,a;return s=new gb(e.e,3,10,null,(a=t.c,ve(a,90)?f(a,29):(Kt(),Mf)),Rg(e,t),!1),i?i.nj(s):i=s,i}function P_t(e){Mv();var t;return t=new us(f(e.e.of((Er(),fE)),8)),e.B.Hc((Gc(),T4))&&(t.a<=0&&(t.a=20),t.b<=0&&(t.b=20)),t}function j1(e){Uh();var t,i;return i=tr(e),t=tr(x1(e,32)),t!=0?new Bgt(i,t):i>10||i<0?new pb(1,i):m6t[i]}function RN(e,t){var i;return ul(e)&&ul(t)&&(i=e%t,dM=0?c=c.a[1]:(a=c,c=c.a[0])}return a}function CN(e,t,i){var s,a,c;for(a=null,c=e.b;c;){if(s=e.a.Ne(t,c.d),i&&s==0)return c;s<=0?c=c.a[0]:(a=c,c=c.a[1])}return a}function $An(e,t,i,s){var a,c,b;return a=!1,ODn(e.f,i,s)&&(QAn(e.f,e.a[t][i],e.a[t][s]),c=e.a[t],b=c[s],c[s]=c[i],c[i]=b,a=!0),a}function D_t(e,t,i){var s,a,c,b;for(a=f(En(e.b,i),183),s=0,b=new ee(t.j);b.a>5,t&=31,a=e.d+i+(t==0?0:1),s=Fe(Xn,wr,28,a,15,1),A6n(s,e.a,i,t),c=new Y0(e.e,a,s),t6(c),c}function IAn(e,t){var i,s,a;for(s=new kn(xn(Wi(e).a.Kc(),new O));Un(s);)if(i=f(On(s),18),a=i.d.i,a.c==t)return!1;return!0}function N2e(e,t,i){var s,a,c,b,g;return b=e.k,g=t.k,s=i[b.g][g.g],a=je(t_(e,s)),c=je(t_(t,s)),h.Math.max((mn(a),a),(mn(c),c))}function PAn(){return Error.stackTraceLimit>0?(h.Error.stackTraceLimit=Error.stackTraceLimit=64,!0):"stack"in new Error}function OAn(e,t){return Kd(),Kd(),td(G1),(h.Math.abs(e-t)<=G1||e==t||isNaN(e)&&isNaN(t)?0:et?1:km(isNaN(e),isNaN(t)))>0}function M2e(e,t){return Kd(),Kd(),td(G1),(h.Math.abs(e-t)<=G1||e==t||isNaN(e)&&isNaN(t)?0:et?1:km(isNaN(e),isNaN(t)))<0}function j_t(e,t){return Kd(),Kd(),td(G1),(h.Math.abs(e-t)<=G1||e==t||isNaN(e)&&isNaN(t)?0:et?1:km(isNaN(e),isNaN(t)))<=0}function Ate(e,t){for(var i=0;!t[i]||t[i]=="";)i++;for(var s=t[i++];i0&&this.b>0&&(this.g=SB(this.c,this.b,this.a))}function NAn(e,t){var i=e.a,s;t=String(t),i.hasOwnProperty(t)&&(s=i[t]);var a=(Jee(),ose)[typeof s],c=a?a(s):XSe(typeof s);return c}function nA(e){var t,i,s;if(s=null,t=Zh in e.a,i=!t,i)throw ne(new $h("Every element must have an id."));return s=x3(fb(e,Zh)),s}function ey(e){var t,i;for(i=uEt(e),t=null;e.c==2;)Ir(e),t||(t=(Or(),Or(),new O$(2)),ww(t,i),i=t),i.Jm(uEt(e));return i}function fH(e,t){var i,s,a;return e._j(),s=t==null?0:ti(t),a=(s&Nr)%e.d.length,i=gke(e,a,s,t),i?(zmt(e,i),i.md()):null}function V_t(e,t){return e.e>t.e?1:e.et.d?e.e:e.d=48&&e<48+h.Math.min(10,10)?e-48:e>=97&&e<97?e-97+10:e>=65&&e<65?e-65+10:-1}function MAn(e,t){if(t.c==e)return t.d;if(t.d==e)return t.c;throw ne(new hn("Input edge is not connected to the input port."))}function DAn(e){if(hH(WA,e))return cn(),qA;if(hH(boe,e))return cn(),Y1;throw ne(new hn("Expecting true or false"))}function j2e(e){switch(typeof e){case ure:return mg(e);case K3e:return Gk(e);case $3:return xdt(e);default:return e==null?0:Cm(e)}}function Hh(e,t){if(e.a<0)throw ne(new Us("Did not call before(...) or after(...) before calling add(...)."));return Pme(e,e.a,t),e}function F2e(e){return QB(),ve(e,162)?f(En(X9,E6t),295).Rg(e):Na(X9,ou(e))?f(En(X9,ou(e)),295).Rg(e):null}function ja(e){var t,i;return e.Db&32||(i=(t=f(dn(e,16),29),Pn(t||e.ii())-Pn(e.ii())),i!=0&&v3(e,32,Fe(ho,on,1,i,5,1))),e}function v3(e,t,i){var s;e.Db&t?i==null?y8n(e,t):(s=Xte(e,t),s==-1?e.Eb=i:Ci(ow(e.Eb),s,i)):i!=null&&HOn(e,t,i)}function LAn(e,t,i,s){var a,c;t.c.length!=0&&(a=PPn(i,s),c=O5n(t),Mi(xW(new Wt(null,new Vt(c,1)),new TJe),new Ebt(e,i,a,s)))}function jAn(e,t){var i,s,a,c;return s=e.a.length-1,i=t-e.b&s,c=e.c-t&s,a=e.c-e.b&s,_dt(i=c?(Dxn(e,t),-1):(Mxn(e,t),1)}function dH(e){var t,i,s;if(s=e.Jh(),!s)for(t=0,i=e.Ph();i;i=i.Ph()){if(++t>Fre)return i.Qh();if(s=i.Jh(),s||i==e)break}return s}function K_t(e,t){var i;return Ne(t)===Ne(e)?!0:!ve(t,21)||(i=f(t,21),i.gc()!=e.gc())?!1:e.Ic(i)}function FAn(e,t){return e.et.e?1:e.ft.f?1:ti(e)-ti(t)}function hH(e,t){return mn(e),t==null?!1:Ht(e,t)?!0:e.length==t.length&&Ht(e.toLowerCase(),t.toLowerCase())}function Eb(e){var t,i;return Jl(e,-129)>0&&Jl(e,128)<0?(Yht(),t=tr(e)+128,i=QAe[t],!i&&(i=QAe[t]=new e0e(e)),i):new e0e(e)}function hw(){hw=F,A_=new TF(Jh,0),dTe=new TF("INSIDE_PORT_SIDE_GROUPS",1),Fse=new TF("GROUP_MODEL_ORDER",2),Bse=new TF(DRe,3)}function BAn(e){var t;return e.b||Obn(e,(t=P0n(e.e,e.a),!t||!Ht(boe,Od((!t.b&&(t.b=new nu((Kt(),_s),Ll,t)),t.b),"qualified")))),e.c}function WAn(e,t){var i,s;for(i=(pn(t,e.length),e.charCodeAt(t)),s=t+1;s2e3&&(a6t=e,EG=h.setTimeout(jbn,10))),SG++==0?(e3n((z0e(),HAe)),!0):!1}function t4n(e,t,i){var s;($6t?(iAn(e),!0):I6t||O6t?(Zx(),!0):P6t&&(Zx(),!1))&&(s=new uht(t),s.b=i,cIn(e,s))}function $te(e,t){var i;i=!e.A.Hc((su(),Vw))||e.q==(Co(),ya),e.u.Hc(($c(),Mb))?i?GLn(e,t):Hxt(e,t):e.u.Hc(f0)&&(i?uLn(e,t):rCt(e,t))}function Z_t(e){var t;Ne(Qe(e,(Er(),cE)))===Ne((vb(),Ez))&&(di(e)?(t=f(Qe(di(e),cE),346),zr(e,cE,t)):zr(e,cE,T5))}function n4n(e){var t,i;return ri(e.d.i,(pt(),f4))?(t=f(V(e.c.i,f4),17),i=f(V(e.d.i,f4),17),Xl(t.a,i.a)>0):!1}function eSt(e,t,i){return new Gu(h.Math.min(e.a,t.a)-i/2,h.Math.min(e.b,t.b)-i/2,h.Math.abs(e.a-t.a)+i,h.Math.abs(e.b-t.b)+i)}function tSt(e){var t;this.d=new st,this.j=new Io,this.g=new Io,t=e.g.b,this.f=f(V(Go(t),(pt(),$u)),88),this.e=Ae(je(wH(t,B_)))}function nSt(e){this.d=new st,this.e=new hg,this.c=Fe(Xn,wr,28,(ft(),se(ie(vs,1),Ql,64,0,[Cl,bn,_n,jn,wn])).length,15,1),this.b=e}function H2e(e,t,i){var s;switch(s=i[e.g][t],e.g){case 1:case 3:return new tt(0,s);case 2:case 4:return new tt(s,0);default:return null}}function rSt(e,t,i){var s,a;a=f(O7(t.f),205);try{a.rf(e,i),abt(t.f,a)}catch(c){throw c=mi(c),ve(c,103)?(s=c,ne(s)):ne(c)}}function iSt(e,t,i){var s,a,c,b,g,m;return s=null,g=O3e(OC(),t),c=null,g&&(a=null,m=I3e(g,i),b=null,m!=null&&(b=e.qf(g,m)),a=b,c=a),s=c,s}function Ite(e,t,i,s){var a;if(a=e.length,t>=a)return a;for(t=t>0?t:0;ts&&Ci(t,s,null),t}function oSt(e,t){var i,s;for(s=e.a.length,t.lengths&&Ci(t,s,null),t}function rA(e,t){var i,s;if(++e.j,t!=null&&(i=(s=e.a.Cb,ve(s,99)?f(s,99).th():null),l8n(t,i))){v3(e.a,4,i);return}v3(e.a,4,f(t,129))}function r4n(e){var t;if(e==null)return null;if(t=aPn(ha(e,!0)),t==null)throw ne(new $Y("Invalid hexBinary value: '"+e+"'"));return t}function pH(e,t,i){var s;t.a.length>0&&(lt(e.b,new xht(t.a,i)),s=t.a.length,0s&&(t.a+=Aft(Fe(df,zh,28,-s,15,1))))}function sSt(e,t,i){var s,a,c;if(!i[t.d])for(i[t.d]=!0,a=new ee(s2(t));a.a=e.b>>1)for(s=e.c,i=e.b;i>t;--i)s=s.b;else for(s=e.a.a,i=0;i=0?e.Wh(a):vne(e,s)):i<0?vne(e,s):f(s,69).wk().Bk(e,e.hi(),i)}function uSt(e){var t,i,s;for(s=(!e.o&&(e.o=new pc((Yl(),Fp),Hg,e,0)),e.o),i=s.c.Kc();i.e!=i.i.gc();)t=f(i.Yj(),44),t.md();return V7(s)}function dt(e){var t;if(ve(e.a,4)){if(t=F2e(e.a),t==null)throw ne(new Us(P4t+e.b+"'. "+I4t+(cb(J9),J9.k)+qCe));return t}else return e.a}function f4n(e,t){var i,s;if(e.j.length!=t.j.length)return!1;for(i=0,s=e.j.length;i=64&&t<128&&(a=Ad(a,Zf(1,t-64)));return a}function wH(e,t){var i,s;return s=null,ri(e,(Er(),aR))&&(i=f(V(e,aR),96),i.pf(t)&&(s=i.of(t))),s==null&&Go(e)&&(s=V(Go(e),t)),s}function d4n(e,t){var i;return i=f(V(e,(pt(),Xs)),75),IQ(t,I5t)?i?wu(i):(i=new cc,Xe(e,Xs,i)):i&&Xe(e,Xs,null),i}function T6(){T6=F,z4e=(Er(),EPe),xse=rPe,$It=sE,V4e=Bg,NIt=(TH(),k4e),OIt=S4e,MIt=x4e,PIt=_4e,IIt=(lte(),H4e),Rse=CIt,G4e=AIt,NG=TIt}function mH(e){switch(bwe(),this.c=new st,this.d=e,e.g){case 0:case 2:this.a=Eve(fTe),this.b=hi;break;case 3:case 1:this.a=fTe,this.b=to}}function h4n(e){var t;Jk(f(V(e,(pt(),Oi)),101))&&(t=e.b,QEt((Xt(0,t.c.length),f(t.c[0],30))),QEt(f(yt(t,t.c.length-1),30)))}function p4n(e,t){t.Ug("Self-Loop post-processing",1),Mi(Br(Br(El(new Wt(null,new Vt(e.b,16)),new iqe),new oqe),new sqe),new lqe),t.Vg()}function fSt(e,t,i){var s,a;if(e.c)Da(e.c,e.c.i+t),La(e.c,e.c.j+i);else for(a=new ee(e.b);a.a=0&&(i.d=e.t);break;case 3:e.t>=0&&(i.a=e.t)}e.C&&(i.b=e.C.b,i.c=e.C.c)}function $6(){$6=F,pIe=new QO(iCe,0),Jle=new QO(mie,1),Yle=new QO("LINEAR_SEGMENTS",2),n5=new QO("BRANDES_KOEPF",3),r5=new QO(s4t,4)}function I6(){I6=F,qM=new CF(mU,0),PG=new CF(Qre,1),OG=new CF(Zre,2),XM=new CF(eie,3),qM.a=!1,PG.a=!0,OG.a=!1,XM.a=!0}function _3(){_3=F,VM=new xF(mU,0),GM=new xF(Qre,1),zM=new xF(Zre,2),KM=new xF(eie,3),VM.a=!1,GM.a=!0,zM.a=!1,KM.a=!0}function S3(e,t,i,s){var a;return i>=0?e.Sh(t,i,s):(e.Ph()&&(s=(a=e.Fh(),a>=0?e.Ah(s):e.Ph().Th(e,-1-a,null,s))),e.Ch(t,i,s))}function U2e(e,t){switch(t){case 7:!e.e&&(e.e=new en(Fi,e,7,4)),Vn(e.e);return;case 8:!e.d&&(e.d=new en(Fi,e,8,5)),Vn(e.d);return}$2e(e,t)}function zr(e,t,i){return i==null?(!e.o&&(e.o=new pc((Yl(),Fp),Hg,e,0)),fH(e.o,t)):(!e.o&&(e.o=new pc((Yl(),Fp),Hg,e,0)),ON(e.o,t,i)),e}function bSt(e,t){qt();var i,s,a,c;for(i=e,c=t,ve(e,21)&&!ve(t,21)&&(i=t,c=e),a=i.Kc();a.Ob();)if(s=a.Pb(),c.Hc(s))return!1;return!0}function y4n(e,t,i,s){if(t.ai.b)return!0}return!1}function Dte(e,t){return Eo(e)?!!t6t[t]:e.Sm?!!e.Sm[t]:Pv(e)?!!e6t[t]:Iv(e)?!!Z$t[t]:!1}function v4n(e){var t;t=e.a;do t=f(On(new kn(xn(go(t).a.Kc(),new O))),18).c.i,t.k==(gn(),vo)&&e.b.Fc(t);while(t.k==(gn(),vo));e.b=Zu(e.b)}function gSt(e,t){var i,s,a;for(a=e,s=new kn(xn(go(t).a.Kc(),new O));Un(s);)i=f(On(s),18),i.c.i.c&&(a=h.Math.max(a,i.c.i.c.p));return a}function _4n(e,t){var i,s,a;for(a=0,s=f(f(Hr(e.r,t),21),87).Kc();s.Ob();)i=f(s.Pb(),117),a+=i.d.d+i.b.Mf().b+i.d.a,s.Ob()&&(a+=e.w);return a}function S4n(e,t){var i,s,a;for(a=0,s=f(f(Hr(e.r,t),21),87).Kc();s.Ob();)i=f(s.Pb(),117),a+=i.d.b+i.b.Mf().a+i.d.c,s.Ob()&&(a+=e.w);return a}function wSt(e){var t,i,s,a;if(s=0,a=c_(e),a.c.length==0)return 1;for(i=new ee(a);i.a=0?e.Lh(b,i,!0):iy(e,c,i)):f(c,69).wk().yk(e,e.hi(),a,i,s)}function x4n(e,t,i,s){var a,c;c=t.pf((Er(),uE))?f(t.of(uE),21):e.j,a=uCn(c),a!=(fU(),_se)&&(i&&!D2e(a)||qEe(cPn(e,a,s),t))}function C4n(e){switch(e.g){case 1:return Jm(),UM;case 3:return Jm(),HM;case 2:return Jm(),Ese;case 4:return Jm(),Sse;default:return null}}function A4n(e,t,i){if(e.e)switch(e.b){case 1:m_n(e.c,t,i);break;case 0:y_n(e.c,t,i)}else j1t(e.c,t,i);e.a[t.p][i.p]=e.c.i,e.a[i.p][t.p]=e.c.e}function mSt(e){var t,i;if(e==null)return null;for(i=Fe(Op,rt,199,e.length,0,2),t=0;t=0)return a;if(e.ol()){for(s=0;s=a)throw ne(new Lv(t,a));if(e.Si()&&(s=e.dd(i),s>=0&&s!=t))throw ne(new hn(OM));return e.Xi(t,i)}function G2e(e,t){if(this.a=f(nr(e),253),this.b=f(nr(t),253),e.Ed(t)>0||e==(EY(),Yoe)||t==(kY(),Qoe))throw ne(new hn("Invalid range: "+W1t(e,t)))}function ySt(e){var t,i;for(this.b=new st,this.c=e,this.a=!1,i=new ee(e.a);i.a0),(t&-t)==t)return oo(t*Uc(e,31)*4656612873077393e-25);do i=Uc(e,31),s=i%t;while(i-s+(t-1)<0);return oo(s)}function N4n(e,t,i){switch(i.g){case 1:e.a=t.a/2,e.b=0;break;case 2:e.a=t.a,e.b=t.b/2;break;case 3:e.a=t.a/2,e.b=t.b;break;case 4:e.a=0,e.b=t.b/2}}function AN(e,t,i,s){var a,c;for(a=t;a1&&(c=$4n(e,t)),c}function SSt(e){var t;return t=Ae(je(Qe(e,(Er(),D9))))*h.Math.sqrt((!e.a&&(e.a=new qe($r,e,10,11)),e.a).i),new tt(t,t/Ae(je(Qe(e,_z))))}function jte(e){var t;return e.f&&e.f.Vh()&&(t=f(e.f,54),e.f=f(D1(e,t),84),e.f!=t&&e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,9,8,t,e.f))),e.f}function Fte(e){var t;return e.i&&e.i.Vh()&&(t=f(e.i,54),e.i=f(D1(e,t),84),e.i!=t&&e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,9,7,t,e.i))),e.i}function Es(e){var t;return e.b&&e.b.Db&64&&(t=e.b,e.b=f(D1(e,t),19),e.b!=t&&e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,9,21,t,e.b))),e.b}function EH(e,t){var i,s,a;e.d==null?(++e.e,++e.f):(s=t.Bi(),rOn(e,e.f+1),a=(s&Nr)%e.d.length,i=e.d[a],!i&&(i=e.d[a]=e.dk()),i.Fc(t),++e.f)}function K2e(e,t,i){var s;return t.tk()?!1:t.Ik()!=-2?(s=t.ik(),s==null?i==null:Lr(s,i)):t.qk()==e.e.Dh()&&i==null}function kH(){var e;Su(16,OCt),e=syt(16),this.b=Fe(ese,cM,303,e,0,1),this.c=Fe(ese,cM,303,e,0,1),this.a=null,this.e=null,this.i=0,this.f=e-1,this.g=0}function kb(e){Zme.call(this),this.k=(gn(),ji),this.j=(Su(6,b_),new ka(6)),this.b=(Su(2,b_),new ka(2)),this.d=new mY,this.f=new N0e,this.a=e}function D4n(e){var t,i;e.c.length<=1||(t=x3t(e,(ft(),jn)),hEt(e,f(t.a,17).a,f(t.b,17).a),i=x3t(e,wn),hEt(e,f(i.a,17).a,f(i.b,17).a))}function L4n(e,t,i){var s,a;for(a=e.a.b,s=a.c.length;s102?-1:e<=57?e-48:e<65?-1:e<=70?e-65+10:e<97?-1:e-97+10}function Gte(e,t){if(e==null)throw ne(new Mk("null key in entry: null="+t));if(t==null)throw ne(new Mk("null value in entry: "+e+"=null"))}function B4n(e,t){for(var i,s;e.Ob();)if(!t.Ob()||(i=e.Pb(),s=t.Pb(),!(Ne(i)===Ne(s)||i!=null&&Lr(i,s))))return!1;return!t.Ob()}function RSt(e,t){var i;return i=se(ie(Ro,1),js,28,15,[cte(e.a[0],t),cte(e.a[1],t),cte(e.a[2],t)]),e.d&&(i[0]=h.Math.max(i[0],i[2]),i[2]=i[0]),i}function xSt(e,t){var i;return i=se(ie(Ro,1),js,28,15,[QW(e.a[0],t),QW(e.a[1],t),QW(e.a[2],t)]),e.d&&(i[0]=h.Math.max(i[0],i[2]),i[2]=i[0]),i}function X2e(e,t,i){Jk(f(V(t,(pt(),Oi)),101))||(c_e(e,t,xg(t,i)),c_e(e,t,xg(t,(ft(),jn))),c_e(e,t,xg(t,bn)),qt(),Hi(t.j,new Pit(e)))}function CSt(e){var t,i;for(e.c||oDn(e),i=new cc,t=new ee(e.a),Z(t);t.a0&&(pn(0,t.length),t.charCodeAt(0)==43)?(pn(1,t.length+1),t.substr(1)):t))}function eTn(e){var t;return e==null?null:new k1((t=ha(e,!0),t.length>0&&(pn(0,t.length),t.charCodeAt(0)==43)?(pn(1,t.length+1),t.substr(1)):t))}function Y2e(e,t,i,s,a,c,b,g){var m,_;s&&(m=s.a[0],m&&Y2e(e,t,i,m,a,c,b,g),Zte(e,i,s.d,a,c,b,g)&&t.Fc(s),_=s.a[1],_&&Y2e(e,t,i,_,a,c,b,g))}function u2(e,t,i){try{return Em(Nee(e,t,i),1)}catch(s){throw s=mi(s),ve(s,333)?ne(new Hs(tie+e.o+"*"+e.p+nie+t+ds+i+rie)):ne(s)}}function PSt(e,t,i){try{return Em(Nee(e,t,i),0)}catch(s){throw s=mi(s),ve(s,333)?ne(new Hs(tie+e.o+"*"+e.p+nie+t+ds+i+rie)):ne(s)}}function OSt(e,t,i){try{return Em(Nee(e,t,i),2)}catch(s){throw s=mi(s),ve(s,333)?ne(new Hs(tie+e.o+"*"+e.p+nie+t+ds+i+rie)):ne(s)}}function NSt(e,t){if(e.g==-1)throw ne(new ac);e.Xj();try{e.d.hd(e.g,t),e.f=e.d.j}catch(i){throw i=mi(i),ve(i,77)?ne(new Bu):ne(i)}}function tTn(e){var t,i,s,a,c;for(s=new ee(e.b);s.ac&&Ci(t,c,null),t}function nTn(e,t){var i,s;if(s=e.gc(),t==null){for(i=0;i0&&(m+=a),_[k]=b,b+=g*(m+s)}function DSt(e){var t,i,s;for(s=e.f,e.n=Fe(Ro,js,28,s,15,1),e.d=Fe(Ro,js,28,s,15,1),t=0;t0?e.c:0),++a;e.b=s,e.d=c}function WSt(e,t){var i;return i=se(ie(Ro,1),js,28,15,[z2e(e,(Pd(),Nl),t),z2e(e,Aa,t),z2e(e,Ml,t)]),e.f&&(i[0]=h.Math.max(i[0],i[2]),i[2]=i[0]),i}function uTn(e,t,i){var s;try{ZH(e,t+e.j,i+e.k,!1,!0)}catch(a){throw a=mi(a),ve(a,77)?(s=a,ne(new Hs(s.g+vU+t+ds+i+")."))):ne(a)}}function fTn(e,t,i){var s;try{ZH(e,t+e.j,i+e.k,!0,!1)}catch(a){throw a=mi(a),ve(a,77)?(s=a,ne(new Hs(s.g+vU+t+ds+i+")."))):ne(a)}}function HSt(e){var t;ri(e,(pt(),Ay))&&(t=f(V(e,Ay),21),t.Hc((a_(),dd))?(t.Mc(dd),t.Fc(hd)):t.Hc(hd)&&(t.Mc(hd),t.Fc(dd)))}function USt(e){var t;ri(e,(pt(),Ay))&&(t=f(V(e,Ay),21),t.Hc((a_(),bd))?(t.Mc(bd),t.Fc($f)):t.Hc($f)&&(t.Mc($f),t.Fc(bd)))}function Jte(e,t,i,s){var a,c,b,g;return e.a==null&&hIn(e,t),b=t.b.j.c.length,c=i.d.p,g=s.d.p,a=g-1,a<0&&(a=b-1),c<=a?e.a[a]-e.a[c]:e.a[b-1]-e.a[c]+e.a[a]}function dTn(e){var t,i;if(!e.b)for(e.b=nW(f(e.f,27).kh().i),i=new Sn(f(e.f,27).kh());i.e!=i.i.gc();)t=f(Cn(i),135),lt(e.b,new CY(t));return e.b}function hTn(e){var t,i;if(!e.e)for(e.e=nW(AZ(f(e.f,27)).i),i=new Sn(AZ(f(e.f,27)));i.e!=i.i.gc();)t=f(Cn(i),123),lt(e.e,new Dot(t));return e.e}function GSt(e){var t,i;if(!e.a)for(e.a=nW(GB(f(e.f,27)).i),i=new Sn(GB(f(e.f,27)));i.e!=i.i.gc();)t=f(Cn(i),27),lt(e.a,new MQ(e,t));return e.a}function ny(e){var t;if(!e.C&&(e.D!=null||e.B!=null))if(t=eLn(e),t)e.hl(t);else try{e.hl(null)}catch(i){if(i=mi(i),!ve(i,63))throw ne(i)}return e.C}function pTn(e){switch(e.q.g){case 5:p2t(e,(ft(),bn)),p2t(e,jn);break;case 4:gxt(e,(ft(),bn)),gxt(e,jn);break;default:yEt(e,(ft(),bn)),yEt(e,jn)}}function bTn(e){switch(e.q.g){case 5:b2t(e,(ft(),_n)),b2t(e,wn);break;case 4:wxt(e,(ft(),_n)),wxt(e,wn);break;default:vEt(e,(ft(),_n)),vEt(e,wn)}}function f2(e,t){var i,s,a;for(a=new Io,s=e.Kc();s.Ob();)i=f(s.Pb(),36),bA(i,a.a,0),a.a+=i.f.a+t,a.b=h.Math.max(a.b,i.f.b);return a.b>0&&(a.b+=t),a}function CH(e,t){var i,s,a;for(a=new Io,s=e.Kc();s.Ob();)i=f(s.Pb(),36),bA(i,0,a.b),a.b+=i.f.b+t,a.a=h.Math.max(a.a,i.f.a);return a.a>0&&(a.a+=t),a}function VSt(e){var t,i,s;for(s=Nr,i=new ee(e.a);i.a>16==6?e.Cb.Th(e,5,Bd,t):(s=Es(f(tn((i=f(dn(e,16),29),i||e.ii()),e.Db>>16),19)),e.Cb.Th(e,s.n,s.f,t))}function gTn(e){mC();var t=e.e;if(t&&t.stack){var i=t.stack,s=t+` +Edge: ${n}`,USEVUEFLOW_OPTIONS:()=>"The options parameter is deprecated and will be removed in the next major version. Please use the id parameter instead"};class Ch extends Error{constructor(r,...o){var l;super((l=NJt[r])==null?void 0:l.call(NJt,...o)),this.name="VueFlowError",this.code=r,this.args=o}}function OVe(n){return"clientX"in n}function Gdn(n){return"sourceEvent"in n}function zR(n,r){var o,l;const u=OVe(n),d=u?n.clientX:(o=n.touches)==null?void 0:o[0].clientX,h=u?n.clientY:(l=n.touches)==null?void 0:l[0].clientY;return{x:d-((r==null?void 0:r.left)??0),y:h-((r==null?void 0:r.top)??0)}}const Uhe=()=>{var n;return typeof navigator<"u"&&((n=navigator==null?void 0:navigator.userAgent)==null?void 0:n.indexOf("Mac"))>=0};function TDr(n){var r,o;return{width:((r=n.dimensions)==null?void 0:r.width)??n.width??0,height:((o=n.dimensions)==null?void 0:o.height)??n.height??0}}function y1e(n,r=[1,1]){return{x:r[0]*Math.round(n.x/r[0]),y:r[1]*Math.round(n.y/r[1])}}function Vdn(){return{handleDomNode:null,isValid:!1,connection:{source:"",target:"",sourceHandle:null,targetHandle:null},endHandle:null}}function gLe(n){n==null||n.classList.remove("valid","connecting","vue-flow__handle-valid","vue-flow__handle-connecting")}function MJt(n,r,o,l){const u=[];for(const d of r[o]||[])if(`${n.id}-${d.id}-${o}`!==l){const{x:h,y:w}=Hhe(n,d);u.push({id:d.id||null,type:o,nodeId:n.id,x:h,y:w})}return u}function $Dr(n,r,o,l,u,d){const{x:h,y:w}=zR(n),y=r.elementsFromPoint(h,w).find(O=>O.classList.contains("vue-flow__handle"));if(y){const O=y.getAttribute("data-nodeid");if(O){const M=NVe(void 0,y),L=y.getAttribute("data-handleid"),H=d({nodeId:O,id:L,type:M});if(H){const G=u.find(j=>j.nodeId===O&&j.type===M&&j.id===L);return{handle:{id:L,type:M,nodeId:O,x:(G==null?void 0:G.x)||o.x,y:(G==null?void 0:G.y)||o.y},validHandleResult:H}}}}let E=[],A=Number.POSITIVE_INFINITY;for(const O of u){const M=Math.sqrt((O.x-o.x)**2+(O.y-o.y)**2);if(M<=l){const L=d(O);M<=A&&(MO.isValid),R=E.some(({handle:O})=>O.type==="target");return E.find(({handle:O,validHandleResult:M})=>R?O.type==="target":C?M.isValid:!0)||E[0]}function DJt(n,r,o,l,u,d,h,w,v,y,E){const A=d==="target",C=w.querySelector(`.vue-flow__handle[data-id="${r==null?void 0:r.nodeId}-${r==null?void 0:r.id}-${r==null?void 0:r.type}"]`),{x:R,y:O}=zR(n),M=w.elementFromPoint(R,O),L=M!=null&&M.classList.contains("vue-flow__handle")?M:C,H=Vdn();if(L){H.handleDomNode=L;const G=NVe(void 0,L),j=L.getAttribute("data-nodeid"),Q=L.getAttribute("data-handleid"),te=L.classList.contains("connectable"),pe=L.classList.contains("connectableend"),De={source:A?j:l,sourceHandle:A?Q:u,target:A?l:j,targetHandle:A?u:Q};H.connection=De,te&&pe&&(o===jP.Strict?A&&G==="source"||!A&&G==="target":j!==l||Q!==u)&&(H.isValid=h(De,{edges:v,nodes:y,sourceNode:E(De.source),targetNode:E(De.target)}),H.endHandle={nodeId:j,handleId:Q,type:G,position:H.isValid?L.getAttribute("data-handlepos"):null})}return H}function IDr({nodes:n,nodeId:r,handleId:o,handleType:l}){const u=[];for(let d=0;d{const w=h.getBoundingClientRect();return{id:h.getAttribute("data-handleid"),position:h.getAttribute("data-handlepos"),x:(w.left-o.left)/l,y:(w.top-o.top)/l,...m1e(h)}})}function aWe(n,r,o,l,u,d=!1,h){u.value=!1,n.selected?(d||n.selected&&r)&&(l([n]),RS(()=>{h.blur()})):o([n])}function Gd(n){return typeof Wr(n)<"u"}function NDr(n,r,o,l){if(!n||!n.source||!n.target)return o(new Ch(Vd.EDGE_INVALID,(n==null?void 0:n.id)??"[ID UNKNOWN]")),!1;let u;return $T(n)?u=n:u={...n,id:Mdn(n)},u=Odn(u,void 0,l),yDr(u,r)?!1:u}function MDr(n,r,o,l,u){if(!r.source||!r.target)return u(new Ch(Vd.EDGE_INVALID,n.id)),!1;if(!o)return u(new Ch(Vd.EDGE_NOT_FOUND,n.id)),!1;const{id:d,...h}=n;return{...h,id:l?Mdn(r):d,source:r.source,target:r.target,sourceHandle:r.sourceHandle,targetHandle:r.targetHandle}}function jJt(n,r,o){const l={},u=[];for(let d=0;dw.id===d.parentNode);d.parentNode&&!h&&o(new Ch(Vd.NODE_MISSING_PARENT,d.id,d.parentNode)),(d.parentNode||l[d.id])&&(l[d.id]&&(d.isParent=!0),h&&(h.isParent=!0))}return u}function wLe(n,r){n.clear();for(const o of r){const{id:l,source:u,target:d,sourceHandle:h=null,targetHandle:w=null}=o,v=`${u}-source-${h}`,y=`${d}-target-${w}`,E=n.get(v)||new Map,A=n.get(y)||new Map,C=X8({edgeId:l,source:u,target:d,sourceHandle:h,targetHandle:w});n.set(v,E.set(`${d}-${w}`,C)),n.set(y,A.set(`${u}-${h}`,C))}}function mLe(n,r,o,l,u,d,h,w){const v=[];for(const y of n){const E=$T(y)?y:NDr(y,w,u,d);if(!E)continue;const A=o(E.source),C=o(E.target);if(!A||!C){u(new Ch(Vd.EDGE_SOURCE_TARGET_MISSING,E.id,E.source,E.target));continue}if(!A){u(new Ch(Vd.EDGE_SOURCE_MISSING,E.id,E.source));continue}if(!C){u(new Ch(Vd.EDGE_TARGET_MISSING,E.id,E.target));continue}if(r&&!r(E,{edges:w,nodes:h,sourceNode:A,targetNode:C})){u(new Ch(Vd.EDGE_INVALID,E.id));continue}const R=l(E.id);v.push({...Odn(E,R,d),sourceNode:A,targetNode:C})}return v}const FJt=Symbol("vueFlow"),Kdn=Symbol("nodeId"),qdn=Symbol("nodeRef"),DDr=Symbol("edgeId"),LDr=Symbol("edgeRef"),_1e=Symbol("slots");function Xdn(n){const{vueFlowRef:r,snapToGrid:o,snapGrid:l,noDragClassName:u,nodes:d,nodeExtent:h,nodeDragThreshold:w,viewport:v,autoPanOnNodeDrag:y,autoPanSpeed:E,nodesDraggable:A,panBy:C,findNode:R,multiSelectionActive:O,nodesSelectionActive:M,selectNodesOnDrag:L,removeSelectedElements:H,addSelectedNodes:G,updateNodePositions:j,emits:Q}=hu(),{onStart:te,onDrag:pe,onStop:De,onClick:Re,el:le,disabled:xe,id:be,selectable:ae,dragHandle:F}=n,me=Fo(!1);let ye=[],we,Be=null,He={x:void 0,y:void 0},Ue={x:0,y:0},Ge=null,Le=!1,ft=0,re=!1;const Te=BDr(),dt=({x:Pe,y:Ne})=>{He={x:Pe,y:Ne};let T=!1;if(ye=ye.map($=>{const B={x:Pe-$.distance.x,y:Ne-$.distance.y},{computedPosition:K}=PVe($,o.value?y1e(B,l.value):B,Q.error,h.value,$.parentNode?R($.parentNode):void 0);return T=T||$.position.x!==K.x||$.position.y!==K.y,$.position=K,$}),!!T&&(j(ye,!0,!0),me.value=!0,Ge)){const[$,B]=bLe({id:be,dragItems:ye,findNode:R});pe({event:Ge,node:$,nodes:B})}},at=()=>{if(!Be)return;const[Pe,Ne]=Hdn(Ue,Be,E.value);if(Pe!==0||Ne!==0){const T={x:(He.x??0)-Pe/v.value.zoom,y:(He.y??0)-Ne/v.value.zoom};C({x:Pe,y:Ne})&&dt(T)}ft=requestAnimationFrame(at)},Qe=(Pe,Ne)=>{Le=!0;const T=R(be);!L.value&&!O.value&&T&&(T.selected||H()),T&&_a(ae)&&L.value&&aWe(T,O.value,G,H,M,!1,Ne);const $=Te(Pe.sourceEvent);if(He=$,ye=EDr(d.value,A.value,$,R,be),ye.length){const[B,K]=bLe({id:be,dragItems:ye,findNode:R});te({event:Pe.sourceEvent,node:B,nodes:K})}},yt=(Pe,Ne)=>{var T;Pe.sourceEvent.type==="touchmove"&&Pe.sourceEvent.touches.length>1||(w.value===0&&Qe(Pe,Ne),He=Te(Pe.sourceEvent),Be=((T=r.value)==null?void 0:T.getBoundingClientRect())||null,Ue=zR(Pe.sourceEvent,Be))},Lt=(Pe,Ne)=>{const T=Te(Pe.sourceEvent);if(!re&&Le&&y.value&&(re=!0,at()),!Le){const $=T.xSnapped-(He.x??0),B=T.ySnapped-(He.y??0);Math.sqrt($*$+B*B)>w.value&&Qe(Pe,Ne)}(He.x!==T.xSnapped||He.y!==T.ySnapped)&&ye.length&&Le&&(Ge=Pe.sourceEvent,Ue=zR(Pe.sourceEvent,Be),dt(T))},nn=Pe=>{if(!Gdn(Pe)&&!Le&&!me.value&&!O.value){const Ne=Pe,T=Te(Ne),$=T.xSnapped-(He.x??0),B=T.ySnapped-(He.y??0),K=Math.sqrt($*$+B*B);K!==0&&K<=w.value&&(Re==null||Re(Ne));return}if(me.value=!1,re=!1,Le=!1,He={x:void 0,y:void 0},cancelAnimationFrame(ft),ye.length){j(ye,!1,!1);const[Ne,T]=bLe({id:be,dragItems:ye,findNode:R});De({event:Pe.sourceEvent,node:Ne,nodes:T})}};return Zs([()=>_a(xe),le],([Pe,Ne],T,$)=>{if(Ne){const B=yS(Ne);Pe||(we=vMr().on("start",K=>yt(K,Ne)).on("drag",K=>Lt(K,Ne)).on("end",K=>nn(K)).filter(K=>{const q=K.target,ke=_a(F);return!K.button&&(!u.value||!PJt(q,`.${u.value}`,Ne)&&(!ke||PJt(q,ke,Ne)))}),B.call(we)),$(()=>{B.on(".drag",null),we&&(we.on("start",null),we.on("drag",null),we.on("end",null))})}}),me}function jDr(){return{doubleClick:ci(),click:ci(),mouseEnter:ci(),mouseMove:ci(),mouseLeave:ci(),contextMenu:ci(),updateStart:ci(),update:ci(),updateEnd:ci()}}function FDr(n,r){const o=jDr();return o.doubleClick.on(l=>{var u,d;r.edgeDoubleClick(l),(d=(u=n.events)==null?void 0:u.doubleClick)==null||d.call(u,l)}),o.click.on(l=>{var u,d;r.edgeClick(l),(d=(u=n.events)==null?void 0:u.click)==null||d.call(u,l)}),o.mouseEnter.on(l=>{var u,d;r.edgeMouseEnter(l),(d=(u=n.events)==null?void 0:u.mouseEnter)==null||d.call(u,l)}),o.mouseMove.on(l=>{var u,d;r.edgeMouseMove(l),(d=(u=n.events)==null?void 0:u.mouseMove)==null||d.call(u,l)}),o.mouseLeave.on(l=>{var u,d;r.edgeMouseLeave(l),(d=(u=n.events)==null?void 0:u.mouseLeave)==null||d.call(u,l)}),o.contextMenu.on(l=>{var u,d;r.edgeContextMenu(l),(d=(u=n.events)==null?void 0:u.contextMenu)==null||d.call(u,l)}),o.updateStart.on(l=>{var u,d;r.edgeUpdateStart(l),(d=(u=n.events)==null?void 0:u.updateStart)==null||d.call(u,l)}),o.update.on(l=>{var u,d;r.edgeUpdate(l),(d=(u=n.events)==null?void 0:u.update)==null||d.call(u,l)}),o.updateEnd.on(l=>{var u,d;r.edgeUpdateEnd(l),(d=(u=n.events)==null?void 0:u.updateEnd)==null||d.call(u,l)}),Object.entries(o).reduce((l,[u,d])=>(l.emit[u]=d.trigger,l.on[u]=d.on,l),{emit:{},on:{}})}function BDr(){const{viewport:n,snapGrid:r,snapToGrid:o}=hu();return l=>{const u=Gdn(l)?l.sourceEvent:l,{x:d,y:h}=zR(u),w=$X({x:d,y:h},n.value),{x:v,y}=o.value?y1e(w,r.value):w;return{xSnapped:v,ySnapped:y,...w}}}function vfe(){return!0}function Jdn({handleId:n,nodeId:r,type:o,isValidConnection:l,edgeUpdaterType:u,onEdgeUpdate:d,onEdgeUpdateEnd:h}){const{vueFlowRef:w,connectionMode:v,connectionRadius:y,connectOnClick:E,connectionClickStartHandle:A,nodesConnectable:C,autoPanOnConnect:R,autoPanSpeed:O,findNode:M,panBy:L,startConnection:H,updateConnection:G,endConnection:j,emits:Q,viewport:te,edges:pe,nodes:De,isValidConnection:Re}=hu();let le=null,xe=!1,be=null,ae=null;function F(ye){var we;const Be=_a(o)==="target",He=OVe(ye),Ue=RJt(ye.target);if(He&&ye.button===0||!He){let Ge=function(K){Ne=zR(K,nn);const{handle:q,validHandleResult:ke}=$Dr(K,Ue,$X(Ne,te.value,!1,[1,1]),y.value,$,Ee=>DJt(K,Ee,v.value,_a(r),_a(n),Be?"target":"source",re,Ue,pe.value,De.value,M));if(Te=q,T||(B(),T=!0),le=ke.connection,xe=ke.isValid,be=ke.handleDomNode,!(xe&&Te&&(ae!=null&&ae.endHandle)&&ke.endHandle&&ae.endHandle.type===ke.endHandle.type&&ae.endHandle.nodeId===ke.endHandle.nodeId&&ae.endHandle.handleId===ke.endHandle.handleId)){if(G(Te&&xe?Ddn({x:Te.x,y:Te.y},te.value):Ne,ke.endHandle,PDr(!!Te,xe)),ae=ke,!Te&&!xe&&!be)return gLe(Pe);le&&le.source!==le.target&&be&&(gLe(Pe),Pe=be,be.classList.add("connecting","vue-flow__handle-connecting"),be.classList.toggle("valid",xe),be.classList.toggle("vue-flow__handle-valid",xe))}},Le=function(K){(Te||be)&&le&&xe&&(d?d(K,le):Q.connect(le)),Q.connectEnd(K),u&&(h==null||h(K)),gLe(Pe),cancelAnimationFrame(dt),j(K),T=!1,xe=!1,le=null,be=null,Ue.removeEventListener("mousemove",Ge),Ue.removeEventListener("mouseup",Le),Ue.removeEventListener("touchmove",Ge),Ue.removeEventListener("touchend",Le)};const ft=M(_a(r));let re=_a(l)||Re.value||vfe;!re&&ft&&(re=(Be?ft.isValidSourcePos:ft.isValidTargetPos)||vfe);let Te,dt=0;const{x:at,y:Qe}=zR(ye),yt=Ue==null?void 0:Ue.elementFromPoint(at,Qe),Lt=NVe(_a(u),yt),nn=(we=w.value)==null?void 0:we.getBoundingClientRect();if(!nn||!Lt)return;let Pe,Ne=zR(ye,nn),T=!1;const $=IDr({nodes:De.value,nodeId:_a(r),handleId:_a(n),handleType:Lt}),B=()=>{if(!R.value)return;const[K,q]=Hdn(Ne,nn,O.value);L({x:K,y:q}),dt=requestAnimationFrame(B)};H({nodeId:_a(r),handleId:_a(n),type:Lt,position:(yt==null?void 0:yt.getAttribute("data-handlepos"))||$i.Top},{x:at-nn.left,y:Qe-nn.top}),Q.connectStart({event:ye,nodeId:_a(r),handleId:_a(n),handleType:Lt}),Ue.addEventListener("mousemove",Ge),Ue.addEventListener("mouseup",Le),Ue.addEventListener("touchmove",Ge),Ue.addEventListener("touchend",Le)}}function me(ye){if(!E.value)return;const we=_a(o)==="target";if(!A.value)Q.clickConnectStart({event:ye,nodeId:_a(r),handleId:_a(n)}),H({nodeId:_a(r),type:_a(o),handleId:_a(n)},void 0,!0);else{let Be=_a(l)||Re.value||vfe;const He=M(_a(r));if(!Be&&He&&(Be=(we?He.isValidSourcePos:He.isValidTargetPos)||vfe),He&&(typeof He.connectable>"u"?C.value:He.connectable)===!1)return;const Ue=RJt(ye.target),{connection:Ge,isValid:Le}=DJt(ye,{nodeId:_a(r),id:_a(n),type:_a(o)},v.value,A.value.nodeId,A.value.handleId||null,A.value.type,Be,Ue,pe.value,De.value,M),ft=Ge.source===Ge.target;Le&&!ft&&Q.connect(Ge),Q.clickConnectEnd(ye),j(ye,!0)}}return{handlePointerDown:F,handleClick:me}}function WDr(){return BE(Kdn,"")}function Ydn(n){const r=n??WDr()??"",o=BE(qdn,Fo(null)),{findNode:l,edges:u,emits:d}=hu(),h=l(r);return h||d.error(new Ch(Vd.NODE_NOT_FOUND,r)),{id:r,nodeEl:o,node:h,parentNode:To(()=>l(h.parentNode)),connectedEdges:To(()=>Bdn([h],u.value))}}function HDr(){return{doubleClick:ci(),click:ci(),mouseEnter:ci(),mouseMove:ci(),mouseLeave:ci(),contextMenu:ci(),dragStart:ci(),drag:ci(),dragStop:ci()}}function UDr(n,r){const o=HDr();return o.doubleClick.on(l=>{var u,d;r.nodeDoubleClick(l),(d=(u=n.events)==null?void 0:u.doubleClick)==null||d.call(u,l)}),o.click.on(l=>{var u,d;r.nodeClick(l),(d=(u=n.events)==null?void 0:u.click)==null||d.call(u,l)}),o.mouseEnter.on(l=>{var u,d;r.nodeMouseEnter(l),(d=(u=n.events)==null?void 0:u.mouseEnter)==null||d.call(u,l)}),o.mouseMove.on(l=>{var u,d;r.nodeMouseMove(l),(d=(u=n.events)==null?void 0:u.mouseMove)==null||d.call(u,l)}),o.mouseLeave.on(l=>{var u,d;r.nodeMouseLeave(l),(d=(u=n.events)==null?void 0:u.mouseLeave)==null||d.call(u,l)}),o.contextMenu.on(l=>{var u,d;r.nodeContextMenu(l),(d=(u=n.events)==null?void 0:u.contextMenu)==null||d.call(u,l)}),o.dragStart.on(l=>{var u,d;r.nodeDragStart(l),(d=(u=n.events)==null?void 0:u.dragStart)==null||d.call(u,l)}),o.drag.on(l=>{var u,d;r.nodeDrag(l),(d=(u=n.events)==null?void 0:u.drag)==null||d.call(u,l)}),o.dragStop.on(l=>{var u,d;r.nodeDragStop(l),(d=(u=n.events)==null?void 0:u.dragStop)==null||d.call(u,l)}),Object.entries(o).reduce((l,[u,d])=>(l.emit[u]=d.trigger,l.on[u]=d.on,l),{emit:{},on:{}})}function Qdn(){const{getSelectedNodes:n,nodeExtent:r,updateNodePositions:o,findNode:l,snapGrid:u,snapToGrid:d,nodesDraggable:h,emits:w}=hu();return(v,y=!1)=>{const E=d.value?u.value[0]:5,A=d.value?u.value[1]:5,C=y?4:1,R=v.x*E*C,O=v.y*A*C,M=[];for(const L of n.value)if(L.draggable||h&&typeof L.draggable>"u"){const H={x:L.computedPosition.x+R,y:L.computedPosition.y+O},{computedPosition:G}=PVe(L,H,w.error,r.value,L.parentNode?l(L.parentNode):void 0);M.push({id:L.id,position:G,from:L.position,distance:{x:v.x,y:v.y},dimensions:L.dimensions})}o(M,!0,!1)}}const yLe=.1;function L4(){return v1e("Viewport not initialized yet."),Promise.resolve(!1)}const GDr={zoomIn:L4,zoomOut:L4,zoomTo:L4,fitView:L4,setCenter:L4,fitBounds:L4,project:n=>n,screenToFlowCoordinate:n=>n,flowToScreenCoordinate:n=>n,setViewport:L4,setTransform:L4,getViewport:()=>({x:0,y:0,zoom:1}),getTransform:()=>({x:0,y:0,zoom:1}),viewportInitialized:!1};function VDr(n){function r(l,u){return new Promise(d=>{n.d3Selection&&n.d3Zoom?n.d3Zoom.scaleBy(vLe(n.d3Selection,u,()=>{d(!0)}),l):d(!1)})}function o(l,u,d,h){return new Promise(w=>{const{x:v,y}=Pdn({x:-l,y:-u},n.translateExtent),E=QL.translate(-v,-y).scale(d);n.d3Selection&&n.d3Zoom?n.d3Zoom.transform(vLe(n.d3Selection,h,()=>{w(!0)}),E):w(!1)})}return To(()=>n.d3Zoom&&n.d3Selection&&n.dimensions.width&&n.dimensions.height?{viewportInitialized:!0,zoomIn:u=>r(1.2,u==null?void 0:u.duration),zoomOut:u=>r(1/1.2,u==null?void 0:u.duration),zoomTo:(u,d)=>new Promise(h=>{n.d3Selection&&n.d3Zoom?n.d3Zoom.scaleTo(vLe(n.d3Selection,d==null?void 0:d.duration,()=>{h(!0)}),u):h(!1)}),setViewport:(u,d)=>o(u.x,u.y,u.zoom,d==null?void 0:d.duration),setTransform:(u,d)=>o(u.x,u.y,u.zoom,d==null?void 0:d.duration),getViewport:()=>({x:n.viewport.x,y:n.viewport.y,zoom:n.viewport.zoom}),getTransform:()=>({x:n.viewport.x,y:n.viewport.y,zoom:n.viewport.zoom}),fitView:(u={padding:yLe,includeHiddenNodes:!1,duration:0})=>{var d,h;const w=[];for(const C of n.nodes)C.dimensions.width&&C.dimensions.height&&((u==null?void 0:u.includeHiddenNodes)||!C.hidden)&&(!((d=u.nodes)!=null&&d.length)||(h=u.nodes)!=null&&h.length&&u.nodes.includes(C.id))&&w.push(C);if(!w.length)return Promise.resolve(!1);const v=jdn(w),{x:y,y:E,zoom:A}=xJt(v,n.dimensions.width,n.dimensions.height,u.minZoom??n.minZoom,u.maxZoom??n.maxZoom,u.padding??yLe,u.offset);return o(y,E,A,u==null?void 0:u.duration)},setCenter:(u,d,h)=>{const w=typeof(h==null?void 0:h.zoom)<"u"?h.zoom:n.maxZoom,v=n.dimensions.width/2-u*w,y=n.dimensions.height/2-d*w;return o(v,y,w,h==null?void 0:h.duration)},fitBounds:(u,d={padding:yLe})=>{const{x:h,y:w,zoom:v}=xJt(u,n.dimensions.width,n.dimensions.height,n.minZoom,n.maxZoom,d.padding);return o(h,w,v,d==null?void 0:d.duration)},project:u=>$X(u,n.viewport,n.snapToGrid,n.snapGrid),screenToFlowCoordinate:u=>{if(n.vueFlowRef){const{x:d,y:h}=n.vueFlowRef.getBoundingClientRect(),w={x:u.x-d,y:u.y-h};return $X(w,n.viewport,n.snapToGrid,n.snapGrid)}return{x:0,y:0}},flowToScreenCoordinate:u=>{if(n.vueFlowRef){const{x:d,y:h}=n.vueFlowRef.getBoundingClientRect(),w={x:u.x+d,y:u.y+h};return Ddn(w,n.viewport)}return{x:0,y:0}}}:GDr)}function vLe(n,r=0,o){return n.transition().duration(r).on("end",o)}function zDr(n,r,o){const l=CYt(!0);return l.run(()=>{const u=()=>{l.run(()=>{let M,L,H=!!(o.nodes.value.length||o.edges.value.length);M=fD([n.modelValue,()=>{var G,j;return(j=(G=n.modelValue)==null?void 0:G.value)==null?void 0:j.length}],([G])=>{G&&Array.isArray(G)&&(L==null||L.pause(),o.setElements(G),!L&&!H&&G.length?H=!0:L==null||L.resume())}),L=fD([o.nodes,o.edges,()=>o.edges.value.length,()=>o.nodes.value.length],([G,j])=>{var Q;(Q=n.modelValue)!=null&&Q.value&&Array.isArray(n.modelValue.value)&&(M==null||M.pause(),n.modelValue.value=[...G,...j],RS(()=>{M==null||M.resume()}))},{immediate:H}),KK(()=>{M==null||M.stop(),L==null||L.stop()})})},d=()=>{l.run(()=>{let M,L,H=!!o.nodes.value.length;M=fD([n.nodes,()=>{var G,j;return(j=(G=n.nodes)==null?void 0:G.value)==null?void 0:j.length}],([G])=>{G&&Array.isArray(G)&&(L==null||L.pause(),o.setNodes(G),!L&&!H&&G.length?H=!0:L==null||L.resume())}),L=fD([o.nodes,()=>o.nodes.value.length],([G])=>{var j;(j=n.nodes)!=null&&j.value&&Array.isArray(n.nodes.value)&&(M==null||M.pause(),n.nodes.value=[...G],RS(()=>{M==null||M.resume()}))},{immediate:H}),KK(()=>{M==null||M.stop(),L==null||L.stop()})})},h=()=>{l.run(()=>{let M,L,H=!!o.edges.value.length;M=fD([n.edges,()=>{var G,j;return(j=(G=n.edges)==null?void 0:G.value)==null?void 0:j.length}],([G])=>{G&&Array.isArray(G)&&(L==null||L.pause(),o.setEdges(G),!L&&!H&&G.length?H=!0:L==null||L.resume())}),L=fD([o.edges,()=>o.edges.value.length],([G])=>{var j;(j=n.edges)!=null&&j.value&&Array.isArray(n.edges.value)&&(M==null||M.pause(),n.edges.value=[...G],RS(()=>{M==null||M.resume()}))},{immediate:H}),KK(()=>{M==null||M.stop(),L==null||L.stop()})})},w=()=>{l.run(()=>{Zs(()=>r.maxZoom,()=>{r.maxZoom&&Gd(r.maxZoom)&&o.setMaxZoom(r.maxZoom)},{immediate:!0})})},v=()=>{l.run(()=>{Zs(()=>r.minZoom,()=>{r.minZoom&&Gd(r.minZoom)&&o.setMinZoom(r.minZoom)},{immediate:!0})})},y=()=>{l.run(()=>{Zs(()=>r.translateExtent,()=>{r.translateExtent&&Gd(r.translateExtent)&&o.setTranslateExtent(r.translateExtent)},{immediate:!0})})},E=()=>{l.run(()=>{Zs(()=>r.nodeExtent,()=>{r.nodeExtent&&Gd(r.nodeExtent)&&o.setNodeExtent(r.nodeExtent)},{immediate:!0})})},A=()=>{l.run(()=>{Zs(()=>r.applyDefault,()=>{Gd(r.applyDefault)&&(o.applyDefault.value=r.applyDefault)},{immediate:!0})})},C=()=>{l.run(()=>{const M=async L=>{let H=L;typeof r.autoConnect=="function"&&(H=await r.autoConnect(L)),H!==!1&&o.addEdges([H])};Zs(()=>r.autoConnect,()=>{Gd(r.autoConnect)&&(o.autoConnect.value=r.autoConnect)},{immediate:!0}),Zs(o.autoConnect,(L,H,G)=>{L?o.onConnect(M):o.hooks.value.connect.off(M),G(()=>{o.hooks.value.connect.off(M)})},{immediate:!0})})},R=()=>{const M=["id","modelValue","translateExtent","nodeExtent","edges","nodes","maxZoom","minZoom","applyDefault","autoConnect"];for(const L of Object.keys(r)){const H=L;if(!M.includes(H)){const G=bf(()=>r[H]),j=o[H];_d(j)&&l.run(()=>{Zs(G,Q=>{Gd(Q)&&(j.value=Q)},{immediate:!0})})}}};(()=>{u(),d(),h(),v(),w(),y(),E(),A(),C(),R()})()}),()=>l.stop()}function KDr(){return{edgesChange:ci(),nodesChange:ci(),nodeDoubleClick:ci(),nodeClick:ci(),nodeMouseEnter:ci(),nodeMouseMove:ci(),nodeMouseLeave:ci(),nodeContextMenu:ci(),nodeDragStart:ci(),nodeDrag:ci(),nodeDragStop:ci(),nodesInitialized:ci(),miniMapNodeClick:ci(),miniMapNodeDoubleClick:ci(),miniMapNodeMouseEnter:ci(),miniMapNodeMouseMove:ci(),miniMapNodeMouseLeave:ci(),connect:ci(),connectStart:ci(),connectEnd:ci(),clickConnectStart:ci(),clickConnectEnd:ci(),paneReady:ci(),init:ci(),move:ci(),moveStart:ci(),moveEnd:ci(),selectionDragStart:ci(),selectionDrag:ci(),selectionDragStop:ci(),selectionContextMenu:ci(),selectionStart:ci(),selectionEnd:ci(),viewportChangeStart:ci(),viewportChange:ci(),viewportChangeEnd:ci(),paneScroll:ci(),paneClick:ci(),paneContextMenu:ci(),paneMouseEnter:ci(),paneMouseMove:ci(),paneMouseLeave:ci(),edgeContextMenu:ci(),edgeMouseEnter:ci(),edgeMouseMove:ci(),edgeMouseLeave:ci(),edgeDoubleClick:ci(),edgeClick:ci(),edgeUpdateStart:ci(),edgeUpdate:ci(),edgeUpdateEnd:ci(),updateNodeInternals:ci(),error:ci(n=>v1e(n.message))}}function qDr(n,r){sQt(()=>{for(const[o,l]of Object.entries(r.value)){const u=d=>{n(o,d)};l.fns.add(u),h1e(()=>{l.off(u)})}})}function Zdn(){return{vueFlowRef:null,viewportRef:null,nodes:[],edges:[],connectionLookup:new Map,nodeTypes:{},edgeTypes:{},initialized:!1,dimensions:{width:0,height:0},viewport:{x:0,y:0,zoom:1},d3Zoom:null,d3Selection:null,d3ZoomHandler:null,minZoom:.5,maxZoom:2,translateExtent:[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],nodeExtent:[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],selectionMode:IVe.Full,paneDragging:!1,preventScrolling:!0,zoomOnScroll:!0,zoomOnPinch:!0,zoomOnDoubleClick:!0,panOnScroll:!1,panOnScrollSpeed:.5,panOnScrollMode:Iq.Free,paneClickDistance:0,panOnDrag:!0,edgeUpdaterRadius:10,onlyRenderVisibleElements:!1,defaultViewport:{x:0,y:0,zoom:1},nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,defaultMarkerColor:"#b1b1b7",connectionLineStyle:{},connectionLineType:null,connectionLineOptions:{type:F8.Bezier,style:{}},connectionMode:jP.Loose,connectionStartHandle:null,connectionEndHandle:null,connectionClickStartHandle:null,connectionPosition:{x:Number.NaN,y:Number.NaN},connectionRadius:20,connectOnClick:!0,connectionStatus:null,isValidConnection:null,snapGrid:[15,15],snapToGrid:!1,edgesUpdatable:!1,edgesFocusable:!0,nodesFocusable:!0,nodesConnectable:!0,nodesDraggable:!0,nodeDragThreshold:1,elementsSelectable:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,selectionKeyCode:"Shift",multiSelectionKeyCode:Uhe()?"Meta":"Control",zoomActivationKeyCode:Uhe()?"Meta":"Control",deleteKeyCode:"Backspace",panActivationKeyCode:"Space",hooks:KDr(),applyDefault:!0,autoConnect:!1,fitViewOnInit:!1,fitViewOnInitDone:!1,noDragClassName:"nodrag",noWheelClassName:"nowheel",noPanClassName:"nopan",defaultEdgeOptions:void 0,elevateEdgesOnSelect:!1,elevateNodesOnSelect:!0,autoPanOnNodeDrag:!0,autoPanOnConnect:!0,autoPanSpeed:15,disableKeyboardA11y:!1,ariaLiveMessage:""}}const XDr=["id","vueFlowRef","viewportRef","initialized","modelValue","nodes","edges","maxZoom","minZoom","translateExtent","hooks","defaultEdgeOptions"];function JDr(n,r,o){const l=VDr(n),u=$=>{const B=$??[];n.hooks.updateNodeInternals.trigger(B)},d=$=>mDr($,n.nodes,n.edges),h=$=>wDr($,n.nodes,n.edges),w=$=>Bdn($,n.edges),v=({id:$,type:B,nodeId:K})=>{var q;return Array.from(((q=n.connectionLookup.get(`${K}-${B}-${$??null}`))==null?void 0:q.values())??[])},y=$=>{if($)return r.value.get($)},E=$=>{if($)return o.value.get($)},A=($,B,K)=>{var q,ke;const Ee=[];for(const Ie of $){const _t={id:Ie.id,type:"position",dragging:K,from:Ie.from};if(B&&(_t.position=Ie.position,Ie.parentNode)){const he=y(Ie.parentNode);_t.position={x:_t.position.x-(((q=he==null?void 0:he.computedPosition)==null?void 0:q.x)??0),y:_t.position.y-(((ke=he==null?void 0:he.computedPosition)==null?void 0:ke.y)??0)}}Ee.push(_t)}Ee!=null&&Ee.length&&n.hooks.nodesChange.trigger(Ee)},C=$=>{if(!n.vueFlowRef)return;const B=n.vueFlowRef.querySelector(".vue-flow__transformationpane");if(!B)return;const K=window.getComputedStyle(B),{m22:q}=new window.DOMMatrixReadOnly(K.transform),ke=[];for(let Ee=0;Ee<$.length;++Ee){const Ie=$[Ee],_t=y(Ie.id);if(_t){const he=m1e(Ie.nodeElement);if(!!(he.width&&he.height&&(_t.dimensions.width!==he.width||_t.dimensions.height!==he.height||Ie.forceUpdate))){const Zt=Ie.nodeElement.getBoundingClientRect();_t.dimensions=he,_t.handleBounds.source=LJt(".source",Ie.nodeElement,Zt,q),_t.handleBounds.target=LJt(".target",Ie.nodeElement,Zt,q),ke.push({id:_t.id,type:"dimensions",dimensions:he})}}}!n.fitViewOnInitDone&&n.fitViewOnInit&&l.value.fitView().then(()=>{n.fitViewOnInitDone=!0}),ke.length&&n.hooks.nodesChange.trigger(ke)},R=($,B)=>{const K=new Set,q=new Set;for(const Ie of $)gP(Ie)?K.add(Ie.id):$T(Ie)&&q.add(Ie.id);const ke=iT(r.value,K,!0),Ee=iT(o.value,q);if(n.multiSelectionActive){for(const Ie of K)ke.push(W4(Ie,B));for(const Ie of q)Ee.push(W4(Ie,B))}ke.length&&n.hooks.nodesChange.trigger(ke),Ee.length&&n.hooks.edgesChange.trigger(Ee)},O=$=>{if(n.multiSelectionActive){const B=$.map(K=>W4(K.id,!0));n.hooks.nodesChange.trigger(B);return}n.hooks.nodesChange.trigger(iT(r.value,new Set($.map(B=>B.id)),!0)),n.hooks.edgesChange.trigger(iT(o.value))},M=$=>{if(n.multiSelectionActive){const B=$.map(K=>W4(K.id,!0));n.hooks.edgesChange.trigger(B);return}n.hooks.edgesChange.trigger(iT(o.value,new Set($.map(B=>B.id)))),n.hooks.nodesChange.trigger(iT(r.value,new Set,!0))},L=$=>{R($,!0)},H=$=>{const K=($||n.nodes).map(q=>(q.selected=!1,W4(q.id,!1)));n.hooks.nodesChange.trigger(K)},G=$=>{const K=($||n.edges).map(q=>(q.selected=!1,W4(q.id,!1)));n.hooks.edgesChange.trigger(K)},j=$=>{if(!$||!$.length)return R([],!1);const B=$.reduce((K,q)=>{const ke=W4(q.id,!1);return gP(q)?K.nodes.push(ke):K.edges.push(ke),K},{nodes:[],edges:[]});B.nodes.length&&n.hooks.nodesChange.trigger(B.nodes),B.edges.length&&n.hooks.edgesChange.trigger(B.edges)},Q=$=>{var B;(B=n.d3Zoom)==null||B.scaleExtent([$,n.maxZoom]),n.minZoom=$},te=$=>{var B;(B=n.d3Zoom)==null||B.scaleExtent([n.minZoom,$]),n.maxZoom=$},pe=$=>{var B;(B=n.d3Zoom)==null||B.translateExtent($),n.translateExtent=$},De=$=>{n.nodeExtent=$,u()},Re=$=>{var B;(B=n.d3Zoom)==null||B.clickDistance($)},le=$=>{n.nodesDraggable=$,n.nodesConnectable=$,n.elementsSelectable=$},xe=$=>{const B=$ instanceof Function?$(n.nodes):$;!n.initialized&&!B.length||(n.nodes=jJt(B,y,n.hooks.error.trigger))},be=$=>{const B=$ instanceof Function?$(n.edges):$;if(!n.initialized&&!B.length)return;const K=mLe(B,n.isValidConnection,y,E,n.hooks.error.trigger,n.defaultEdgeOptions,n.nodes,n.edges);wLe(n.connectionLookup,K),n.edges=K},ae=$=>{const B=$ instanceof Function?$([...n.nodes,...n.edges]):$;!n.initialized&&!B.length||(xe(B.filter(gP)),be(B.filter($T)))},F=$=>{let B=$ instanceof Function?$(n.nodes):$;B=Array.isArray(B)?B:[B];const K=jJt(B,y,n.hooks.error.trigger),q=[];for(const ke of K)q.push(TJt(ke));q.length&&n.hooks.nodesChange.trigger(q)},me=$=>{let B=$ instanceof Function?$(n.edges):$;B=Array.isArray(B)?B:[B];const K=mLe(B,n.isValidConnection,y,E,n.hooks.error.trigger,n.defaultEdgeOptions,n.nodes,n.edges),q=[];for(const ke of K)q.push(TJt(ke));q.length&&n.hooks.edgesChange.trigger(q)},ye=($,B=!0,K=!1)=>{const q=$ instanceof Function?$(n.nodes):$,ke=Array.isArray(q)?q:[q],Ee=[],Ie=[];function _t(Xt){const Zt=w(Xt);for(const $n of Zt)(!Gd($n.deletable)||$n.deletable)&&Ie.push(IJt($n.id,$n.source,$n.target,$n.sourceHandle,$n.targetHandle))}function he(Xt){const Zt=[];for(const $n of n.nodes)$n.parentNode===Xt&&Zt.push($n);if(Zt.length){for(const $n of Zt)Ee.push($Jt($n.id));B&&_t(Zt);for(const $n of Zt)he($n.id)}}for(const Xt of ke){const Zt=typeof Xt=="string"?y(Xt):Xt;Zt&&(Gd(Zt.deletable)&&!Zt.deletable||(Ee.push($Jt(Zt.id)),B&&_t([Zt]),K&&he(Zt.id)))}Ie.length&&n.hooks.edgesChange.trigger(Ie),Ee.length&&n.hooks.nodesChange.trigger(Ee)},we=$=>{const B=$ instanceof Function?$(n.edges):$,K=Array.isArray(B)?B:[B],q=[];for(const ke of K){const Ee=typeof ke=="string"?E(ke):ke;Ee&&(Gd(Ee.deletable)&&!Ee.deletable||q.push(IJt(typeof ke=="string"?ke:ke.id,Ee.source,Ee.target,Ee.sourceHandle,Ee.targetHandle)))}n.hooks.edgesChange.trigger(q)},Be=($,B,K=!0)=>{const q=E($.id),ke=MDr($,B,q,K,n.hooks.error.trigger);if(ke){const[Ee]=mLe([ke],n.isValidConnection,y,E,n.hooks.error.trigger,n.defaultEdgeOptions,n.nodes,n.edges);return n.edges.splice(n.edges.indexOf(q),1,Ee),wLe(n.connectionLookup,[Ee]),Ee}return!1},He=($,B,K={replace:!1})=>{const q=E($);if(!q)return;const ke=typeof B=="function"?B(q):B;q.data=K.replace?ke:{...q.data,...ke}},Ue=$=>AJt($,n.nodes),Ge=$=>{const B=AJt($,n.edges);return wLe(n.connectionLookup,B),B},Le=($,B,K={replace:!1})=>{const q=y($);if(!q)return;const ke=typeof B=="function"?B(q):B;K.replace?n.nodes.splice(n.nodes.indexOf(q),1,ke):Object.assign(q,ke)},ft=($,B,K={replace:!1})=>{const q=y($);if(!q)return;const ke=typeof B=="function"?B(q):B;q.data=K.replace?ke:{...q.data,...ke}},re=($,B,K=!1)=>{K?n.connectionClickStartHandle=$:n.connectionStartHandle=$,n.connectionEndHandle=null,n.connectionStatus=null,B&&(n.connectionPosition=B)},Te=($,B=null,K=null)=>{n.connectionStartHandle&&(n.connectionPosition=$,n.connectionEndHandle=B,n.connectionStatus=K)},dt=($,B)=>{n.connectionPosition={x:Number.NaN,y:Number.NaN},n.connectionEndHandle=null,n.connectionStatus=null,B?n.connectionClickStartHandle=null:n.connectionStartHandle=null},at=$=>{const B=bDr($),K=B?null:VK($)?$:y($.id);return!B&&!K?[null,null,B]:[B?$:sWe(K),K,B]},Qe=($,B=!0,K=n.nodes)=>{const[q,ke,Ee]=at($);if(!q)return[];const Ie=[];for(const _t of K||n.nodes){if(!Ee&&(_t.id===ke.id||!_t.computedPosition))continue;const he=sWe(_t),Xt=lWe(he,q);(B&&Xt>0||Xt>=Number(q.width)*Number(q.height))&&Ie.push(_t)}return Ie},yt=($,B,K=!0)=>{const[q]=at($);if(!q)return!1;const ke=lWe(q,B);return K&&ke>0||ke>=Number(q.width)*Number(q.height)},Lt=$=>{const{viewport:B,dimensions:K,d3Zoom:q,d3Selection:ke,translateExtent:Ee}=n;if(!q||!ke||!$.x&&!$.y)return!1;const Ie=QL.translate(B.x+$.x,B.y+$.y).scale(B.zoom),_t=[[0,0],[K.width,K.height]],he=q.constrain()(Ie,_t,Ee),Xt=n.viewport.x!==he.x||n.viewport.y!==he.y||n.viewport.zoom!==he.k;return q.transform(ke,he),Xt},nn=$=>{const B=$ instanceof Function?$(n):$,K=["d3Zoom","d3Selection","d3ZoomHandler","viewportRef","vueFlowRef","dimensions","hooks"];Gd(B.defaultEdgeOptions)&&(n.defaultEdgeOptions=B.defaultEdgeOptions);const q=B.modelValue||B.nodes||B.edges?[]:void 0;q&&(B.modelValue&&q.push(...B.modelValue),B.nodes&&q.push(...B.nodes),B.edges&&q.push(...B.edges),ae(q));const ke=()=>{Gd(B.maxZoom)&&te(B.maxZoom),Gd(B.minZoom)&&Q(B.minZoom),Gd(B.translateExtent)&&pe(B.translateExtent)};for(const Ee of Object.keys(B)){const Ie=Ee,_t=B[Ie];![...XDr,...K].includes(Ie)&&Gd(_t)&&(n[Ie]=_t)}JBe(()=>n.d3Zoom).not.toBeNull().then(ke),n.initialized||(n.initialized=!0)};return{updateNodePositions:A,updateNodeDimensions:C,setElements:ae,setNodes:xe,setEdges:be,addNodes:F,addEdges:me,removeNodes:ye,removeEdges:we,findNode:y,findEdge:E,updateEdge:Be,updateEdgeData:He,updateNode:Le,updateNodeData:ft,applyEdgeChanges:Ge,applyNodeChanges:Ue,addSelectedElements:L,addSelectedNodes:O,addSelectedEdges:M,setMinZoom:Q,setMaxZoom:te,setTranslateExtent:pe,setNodeExtent:De,setPaneClickDistance:Re,removeSelectedElements:j,removeSelectedNodes:H,removeSelectedEdges:G,startConnection:re,updateConnection:Te,endConnection:dt,setInteractive:le,setState:nn,getIntersectingNodes:Qe,getIncomers:d,getOutgoers:h,getConnectedEdges:w,getHandleConnections:v,isNodeIntersecting:yt,panBy:Lt,fitView:$=>l.value.fitView($),zoomIn:$=>l.value.zoomIn($),zoomOut:$=>l.value.zoomOut($),zoomTo:($,B)=>l.value.zoomTo($,B),setViewport:($,B)=>l.value.setViewport($,B),setTransform:($,B)=>l.value.setTransform($,B),getViewport:()=>l.value.getViewport(),getTransform:()=>l.value.getTransform(),setCenter:($,B,K)=>l.value.setCenter($,B,K),fitBounds:($,B)=>l.value.fitBounds($,B),project:$=>l.value.project($),screenToFlowCoordinate:$=>l.value.screenToFlowCoordinate($),flowToScreenCoordinate:$=>l.value.flowToScreenCoordinate($),toObject:()=>{const $=[],B=[];for(const K of n.nodes){const{computedPosition:q,handleBounds:ke,selected:Ee,dimensions:Ie,isParent:_t,resizing:he,dragging:Xt,events:Zt,...$n}=K;$.push($n)}for(const K of n.edges){const{selected:q,sourceNode:ke,targetNode:Ee,events:Ie,..._t}=K;B.push(_t)}return JSON.parse(JSON.stringify({nodes:$,edges:B,position:[n.viewport.x,n.viewport.y],zoom:n.viewport.zoom,viewport:n.viewport}))},fromObject:$=>new Promise(B=>{const{nodes:K,edges:q,position:ke,zoom:Ee,viewport:Ie}=$;if(K&&xe(K),q&&be(q),Ie!=null&&Ie.x&&(Ie!=null&&Ie.y)||ke){const _t=(Ie==null?void 0:Ie.x)||ke[0],he=(Ie==null?void 0:Ie.y)||ke[1],Xt=(Ie==null?void 0:Ie.zoom)||Ee||n.viewport.zoom;return JBe(()=>l.value.viewportInitialized).toBe(!0).then(()=>{l.value.setViewport({x:_t,y:he,zoom:Xt}).then(()=>{B(!0)})})}else B(!0)}),updateNodeInternals:u,viewportHelper:l,$reset:()=>{const $=Zdn();if(n.edges=[],n.nodes=[],n.d3Zoom&&n.d3Selection){const B=QL.translate($.defaultViewport.x??0,$.defaultViewport.y??0).scale(FP($.defaultViewport.zoom??1,$.minZoom,$.maxZoom)),K=n.viewportRef.getBoundingClientRect(),q=[[0,0],[K.width,K.height]],ke=n.d3Zoom.constrain()(B,q,$.translateExtent);n.d3Zoom.transform(n.d3Selection,ke)}nn($)},$destroy:()=>{}}}const YDr=["data-id","data-handleid","data-nodeid","data-handlepos"],QDr={name:"Handle",compatConfig:{MODE:3}},ZL=Ka({...QDr,props:{id:{default:null},type:{},position:{default:()=>$i.Top},isValidConnection:{type:Function},connectable:{type:[Boolean,Number,String,Function],default:void 0},connectableStart:{type:Boolean,default:!0},connectableEnd:{type:Boolean,default:!0}},setup(n,{expose:r}){const o=uQt(n,["position","connectable","connectableStart","connectableEnd","id"]),l=bf(()=>o.type??"source"),u=bf(()=>o.isValidConnection??null),{connectionStartHandle:d,connectionClickStartHandle:h,connectionEndHandle:w,vueFlowRef:v,nodesConnectable:y,noDragClassName:E,noPanClassName:A}=hu(),{id:C,node:R,nodeEl:O,connectedEdges:M}=Ydn(),L=Fo(),H=bf(()=>typeof n.connectableStart<"u"?n.connectableStart:!0),G=bf(()=>typeof n.connectableEnd<"u"?n.connectableEnd:!0),j=bf(()=>{var xe,be,ae,F,me,ye;return((xe=d.value)==null?void 0:xe.nodeId)===C&&((be=d.value)==null?void 0:be.handleId)===n.id&&((ae=d.value)==null?void 0:ae.type)===l.value||((F=w.value)==null?void 0:F.nodeId)===C&&((me=w.value)==null?void 0:me.handleId)===n.id&&((ye=w.value)==null?void 0:ye.type)===l.value}),Q=bf(()=>{var xe,be,ae;return((xe=h.value)==null?void 0:xe.nodeId)===C&&((be=h.value)==null?void 0:be.handleId)===n.id&&((ae=h.value)==null?void 0:ae.type)===l.value}),{handlePointerDown:te,handleClick:pe}=Jdn({nodeId:C,handleId:n.id,isValidConnection:u,type:l}),De=To(()=>typeof n.connectable=="string"&&n.connectable==="single"?!M.value.some(xe=>{const be=xe[`${l.value}Handle`];return xe[l.value]!==C?!1:be?be===n.id:!0}):typeof n.connectable=="number"?M.value.filter(xe=>{const be=xe[`${l.value}Handle`];return xe[l.value]!==C?!1:be?be===n.id:!0}).length{var xe;if(!R.dimensions.width||!R.dimensions.height)return;const be=(xe=R.handleBounds[l.value])==null?void 0:xe.find(He=>He.id===n.id);if(!v.value||be)return;const ae=v.value.querySelector(".vue-flow__transformationpane");if(!O.value||!L.value||!ae||!n.id)return;const F=O.value.getBoundingClientRect(),me=L.value.getBoundingClientRect(),ye=window.getComputedStyle(ae),{m22:we}=new window.DOMMatrixReadOnly(ye.transform),Be={id:n.id,position:n.position,x:(me.left-F.left)/we,y:(me.top-F.top)/we,...m1e(L.value)};R.handleBounds[l.value]=[...R.handleBounds[l.value]??[],Be]}),npe(()=>{const xe=R.handleBounds[l.value];xe&&(R.handleBounds[l.value]=xe.filter(be=>be.id!==n.id))});function Re(xe){const be=OVe(xe);De.value&&H.value&&(be&&xe.button===0||!be)&&te(xe)}function le(xe){!C||!h.value&&!H.value||De.value&&pe(xe)}return r({handleClick:pe,handlePointerDown:te,onClick:le,onPointerDown:Re}),(xe,be)=>(ze(),jt("div",{ref_key:"handle",ref:L,"data-id":`${Wr(C)}-${n.id}-${l.value}`,"data-handleid":n.id,"data-nodeid":Wr(C),"data-handlepos":xe.position,class:Lo(["vue-flow__handle",[`vue-flow__handle-${xe.position}`,`vue-flow__handle-${n.id}`,Wr(E),Wr(A),l.value,{connectable:De.value,connecting:Q.value,connectablestart:H.value,connectableend:G.value,connectionindicator:De.value&&(H.value&&!j.value||G.value&&j.value)}]]),onMousedown:Re,onTouchstartPassive:Re,onClick:le},[Vr(xe.$slots,"default",{id:xe.id})],42,YDr))}}),S1e=function({sourcePosition:n=$i.Bottom,targetPosition:r=$i.Top,label:o,connectable:l=!0,isValidTargetPos:u,isValidSourcePos:d,data:h}){const w=h.label||o;return[sc(ZL,{type:"target",position:r,connectable:l,isValidConnection:u}),typeof w!="string"&&w?sc(w):sc(gi,[w]),sc(ZL,{type:"source",position:n,connectable:l,isValidConnection:d})]};S1e.props=["sourcePosition","targetPosition","label","isValidTargetPos","isValidSourcePos","connectable","data"];S1e.inheritAttrs=!1;S1e.compatConfig={MODE:3};const ZDr=S1e,E1e=function({targetPosition:n=$i.Top,label:r,connectable:o=!0,isValidTargetPos:l,data:u}){const d=u.label||r;return[sc(ZL,{type:"target",position:n,connectable:o,isValidConnection:l}),typeof d!="string"&&d?sc(d):sc(gi,[d])]};E1e.props=["targetPosition","label","isValidTargetPos","connectable","data"];E1e.inheritAttrs=!1;E1e.compatConfig={MODE:3};const eLr=E1e,k1e=function({sourcePosition:n=$i.Bottom,label:r,connectable:o=!0,isValidSourcePos:l,data:u}){const d=u.label||r;return[typeof d!="string"&&d?sc(d):sc(gi,[d]),sc(ZL,{type:"source",position:n,connectable:o,isValidConnection:l})]};k1e.props=["sourcePosition","label","isValidSourcePos","connectable","data"];k1e.inheritAttrs=!1;k1e.compatConfig={MODE:3};const tLr=k1e,nLr=["transform"],rLr=["width","height","x","y","rx","ry"],iLr=["y"],oLr={name:"EdgeText",compatConfig:{MODE:3}},sLr=Ka({...oLr,props:{x:{},y:{},label:{},labelStyle:{default:()=>({})},labelShowBg:{type:Boolean,default:!0},labelBgStyle:{default:()=>({})},labelBgPadding:{default:()=>[2,4]},labelBgBorderRadius:{default:2}},setup(n){const r=Fo({x:0,y:0,width:0,height:0}),o=Fo(null),l=To(()=>`translate(${n.x-r.value.width/2} ${n.y-r.value.height/2})`);av(u),Zs([()=>n.x,()=>n.y,o,()=>n.label],u);function u(){if(!o.value)return;const d=o.value.getBBox();(d.width!==r.value.width||d.height!==r.value.height)&&(r.value=d)}return(d,h)=>(ze(),jt("g",{transform:l.value,class:"vue-flow__edge-textwrapper"},[d.labelShowBg?(ze(),jt("rect",{key:0,class:"vue-flow__edge-textbg",width:`${r.value.width+2*d.labelBgPadding[0]}px`,height:`${r.value.height+2*d.labelBgPadding[1]}px`,x:-d.labelBgPadding[0],y:-d.labelBgPadding[1],style:Vb(d.labelBgStyle),rx:d.labelBgBorderRadius,ry:d.labelBgBorderRadius},null,12,rLr)):fr("",!0),mr("text",Et(d.$attrs,{ref_key:"el",ref:o,class:"vue-flow__edge-text",y:r.value.height/2,dy:"0.3em",style:d.labelStyle}),[Vr(d.$slots,"default",{},()=>[typeof d.label!="string"?(ze(),Nn(jo(d.label),{key:0})):(ze(),jt(gi,{key:1},[nm(na(d.label),1)],64))])],16,iLr)],8,nLr))}}),lLr=["id","d","marker-end","marker-start"],aLr=["d","stroke-width"],cLr={name:"BaseEdge",inheritAttrs:!1,compatConfig:{MODE:3}},zJ=Ka({...cLr,props:{id:{},labelX:{},labelY:{},path:{},label:{},markerStart:{},markerEnd:{},interactionWidth:{default:20},style:{},labelStyle:{},labelShowBg:{type:Boolean,default:!0},labelBgStyle:{},labelBgPadding:{},labelBgBorderRadius:{}},setup(n,{expose:r}){const o=uQt(n,["interactionWidth","labelShowBg"]),l=Fo(null),u=Fo(null),d=Fo(null),h=tWn();return r({pathEl:l,interactionEl:u,labelEl:d}),(w,v)=>(ze(),jt(gi,null,[mr("path",{id:w.id,ref_key:"pathEl",ref:l,d:w.path,style:Vb(o.style),class:Lo(["vue-flow__edge-path",Wr(h).class]),"marker-end":w.markerEnd,"marker-start":w.markerStart},null,14,lLr),w.interactionWidth?(ze(),jt("path",{key:0,ref_key:"interactionEl",ref:u,fill:"none",d:w.path,"stroke-width":w.interactionWidth,"stroke-opacity":0,class:"vue-flow__edge-interaction"},null,8,aLr)):fr("",!0),w.label&&w.labelX&&w.labelY?(ze(),Nn(sLr,{key:1,ref_key:"labelEl",ref:d,x:w.labelX,y:w.labelY,label:w.label,"label-show-bg":w.labelShowBg,"label-bg-style":w.labelBgStyle,"label-bg-padding":w.labelBgPadding,"label-bg-border-radius":w.labelBgBorderRadius,"label-style":w.labelStyle},null,8,["x","y","label","label-show-bg","label-bg-style","label-bg-padding","label-bg-border-radius","label-style"])):fr("",!0)],64))}});function ehn({sourceX:n,sourceY:r,targetX:o,targetY:l}){const u=Math.abs(o-n)/2,d=o=0?.5*n:r*25*Math.sqrt(-n)}function BJt({pos:n,x1:r,y1:o,x2:l,y2:u,c:d}){let h,w;switch(n){case $i.Left:h=r-_fe(r-l,d),w=o;break;case $i.Right:h=r+_fe(l-r,d),w=o;break;case $i.Top:h=r,w=o-_fe(o-u,d);break;case $i.Bottom:h=r,w=o+_fe(u-o,d);break}return[h,w]}function MVe(n){const{sourceX:r,sourceY:o,sourcePosition:l=$i.Bottom,targetX:u,targetY:d,targetPosition:h=$i.Top,curvature:w=.25}=n,[v,y]=BJt({pos:l,x1:r,y1:o,x2:u,y2:d,c:w}),[E,A]=BJt({pos:h,x1:u,y1:d,x2:r,y2:o,c:w}),[C,R,O,M]=thn({sourceX:r,sourceY:o,targetX:u,targetY:d,sourceControlX:v,sourceControlY:y,targetControlX:E,targetControlY:A});return[`M${r},${o} C${v},${y} ${E},${A} ${u},${d}`,C,R,O,M]}function WJt({pos:n,x1:r,y1:o,x2:l,y2:u}){let d,h;switch(n){case $i.Left:case $i.Right:d=.5*(r+l),h=o;break;case $i.Top:case $i.Bottom:d=r,h=.5*(o+u);break}return[d,h]}function nhn(n){const{sourceX:r,sourceY:o,sourcePosition:l=$i.Bottom,targetX:u,targetY:d,targetPosition:h=$i.Top}=n,[w,v]=WJt({pos:l,x1:r,y1:o,x2:u,y2:d}),[y,E]=WJt({pos:h,x1:u,y1:d,x2:r,y2:o}),[A,C,R,O]=thn({sourceX:r,sourceY:o,targetX:u,targetY:d,sourceControlX:w,sourceControlY:v,targetControlX:y,targetControlY:E});return[`M${r},${o} C${w},${v} ${y},${E} ${u},${d}`,A,C,R,O]}const HJt={[$i.Left]:{x:-1,y:0},[$i.Right]:{x:1,y:0},[$i.Top]:{x:0,y:-1},[$i.Bottom]:{x:0,y:1}};function uLr({source:n,sourcePosition:r=$i.Bottom,target:o}){return r===$i.Left||r===$i.Right?n.xn[A]?-1:1)*me:H[A]=(y[A]>o[A]?-1:1)*me}}if(r!==l){const F=A==="x"?"y":"x",me=h[A]===w[F],ye=v[F]>y[F],we=v[F]=ae?(O=(le.x+xe.x)/2,M=R[0].y):(O=R[0].x,M=(le.y+xe.y)/2)}return[[n,{x:v.x+L.x,y:v.y+L.y},...R,{x:y.x+H.x,y:y.y+H.y},o],O,M,Q,te]}function dLr(n,r,o,l){const u=Math.min(UJt(n,r)/2,UJt(r,o)/2,l),{x:d,y:h}=r;if(n.x===d&&d===o.x||n.y===h&&h===o.y)return`L${d} ${h}`;if(n.y===h){const y=n.x{let Q;return j>0&&j{const[o,l,u]=hLr(n);return sc(zJ,{path:o,labelX:l,labelY:u,...r,...n})}}}),bLr=pLr,gLr=Ka({name:"SmoothStepEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","borderRadius","markerEnd","markerStart","interactionWidth","offset"],compatConfig:{MODE:3},setup(n,{attrs:r}){return()=>{const[o,l,u]=cWe({...n,sourcePosition:n.sourcePosition??$i.Bottom,targetPosition:n.targetPosition??$i.Top});return sc(zJ,{path:o,labelX:l,labelY:u,...r,...n})}}}),rhn=gLr,wLr=Ka({name:"StepEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","markerEnd","markerStart","interactionWidth"],setup(n,{attrs:r}){return()=>sc(rhn,{...n,...r,borderRadius:0})}}),mLr=wLr,yLr=Ka({name:"BezierEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","curvature","markerEnd","markerStart","interactionWidth"],compatConfig:{MODE:3},setup(n,{attrs:r}){return()=>{const[o,l,u]=MVe({...n,sourcePosition:n.sourcePosition??$i.Bottom,targetPosition:n.targetPosition??$i.Top});return sc(zJ,{path:o,labelX:l,labelY:u,...r,...n})}}}),vLr=yLr,_Lr=Ka({name:"SimpleBezierEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","markerEnd","markerStart","interactionWidth"],compatConfig:{MODE:3},setup(n,{attrs:r}){return()=>{const[o,l,u]=nhn({...n,sourcePosition:n.sourcePosition??$i.Bottom,targetPosition:n.targetPosition??$i.Top});return sc(zJ,{path:o,labelX:l,labelY:u,...r,...n})}}}),SLr=_Lr,ELr={input:tLr,default:ZDr,output:eLr},kLr={default:vLr,straight:bLr,step:mLr,smoothstep:rhn,simplebezier:SLr};function RLr(n,r,o){const l=To(()=>M=>r.value.get(M)),u=To(()=>M=>o.value.get(M)),d=To(()=>{const M={...kLr,...n.edgeTypes},L=Object.keys(M);for(const H of n.edges)H.type&&!L.includes(H.type)&&(M[H.type]=H.type);return M}),h=To(()=>{const M={...ELr,...n.nodeTypes},L=Object.keys(M);for(const H of n.nodes)H.type&&!L.includes(H.type)&&(M[H.type]=H.type);return M}),w=To(()=>n.onlyRenderVisibleElements?Fdn(n.nodes,{x:0,y:0,width:n.dimensions.width,height:n.dimensions.height},n.viewport,!0):n.nodes),v=To(()=>{if(n.onlyRenderVisibleElements){const M=[];for(const L of n.edges){const H=r.value.get(L.source),G=r.value.get(L.target);CDr({sourcePos:H.computedPosition||{x:0,y:0},targetPos:G.computedPosition||{x:0,y:0},sourceWidth:H.dimensions.width,sourceHeight:H.dimensions.height,targetWidth:G.dimensions.width,targetHeight:G.dimensions.height,width:n.dimensions.width,height:n.dimensions.height,viewport:n.viewport})&&M.push(L)}return M}return n.edges}),y=To(()=>[...w.value,...v.value]),E=To(()=>{const M=[];for(const L of n.nodes)L.selected&&M.push(L);return M}),A=To(()=>{const M=[];for(const L of n.edges)L.selected&&M.push(L);return M}),C=To(()=>[...E.value,...A.value]),R=To(()=>{const M=[];for(const L of n.nodes)L.dimensions.width&&L.dimensions.height&&L.handleBounds!==void 0&&M.push(L);return M}),O=To(()=>w.value.length>0&&R.value.length===w.value.length);return{getNode:l,getEdge:u,getElements:y,getEdgeTypes:d,getNodeTypes:h,getEdges:v,getNodes:w,getSelectedElements:C,getSelectedNodes:E,getSelectedEdges:A,getNodesInitialized:R,areNodesInitialized:O}}class B8{constructor(){this.currentId=0,this.flows=new Map}static getInstance(){var r;const o=(r=NT())==null?void 0:r.appContext.app,l=(o==null?void 0:o.config.globalProperties.$vueFlowStorage)??B8.instance;return B8.instance=l??new B8,o&&(o.config.globalProperties.$vueFlowStorage=B8.instance),B8.instance}set(r,o){return this.flows.set(r,o)}get(r){return this.flows.get(r)}remove(r){return this.flows.delete(r)}create(r,o){const l=Zdn(),u=wP(l),d={};for(const[C,R]of Object.entries(u.hooks)){const O=`on${C.charAt(0).toUpperCase()+C.slice(1)}`;d[O]=R.on}const h={};for(const[C,R]of Object.entries(u.hooks))h[C]=R.trigger;const w=To(()=>{const C=new Map;for(const R of u.nodes)C.set(R.id,R);return C}),v=To(()=>{const C=new Map;for(const R of u.edges)C.set(R.id,R);return C}),y=RLr(u,w,v),E=JDr(u,w,v);E.setState({...u,...o});const A={...d,...y,...E,...T7r(u),nodeLookup:w,edgeLookup:v,emits:h,id:r,vueFlowVersion:"1.41.6",$destroy:()=>{this.remove(r)}};return this.set(r,A),A}getId(){return`vue-flow-${this.currentId++}`}}function hu(n){const r=B8.getInstance(),o=Xhe(),l=typeof n=="object",u=l?n:{id:n},d=u.id,h=d??(o==null?void 0:o.vueFlowId);let w;if(o){const v=BE(FJt,null);typeof v<"u"&&v!==null&&(!h||v.id===h)&&(w=v)}if(w||h&&(w=r.get(h)),!w||h&&w.id!==h){const v=d??r.getId(),y=r.create(v,u);w=y,(o??CYt(!0)).run(()=>{Zs(y.applyDefault,(A,C,R)=>{const O=L=>{y.applyNodeChanges(L)},M=L=>{y.applyEdgeChanges(L)};A?(y.onNodesChange(O),y.onEdgesChange(M)):(y.hooks.value.nodesChange.off(O),y.hooks.value.edgesChange.off(M)),R(()=>{y.hooks.value.nodesChange.off(O),y.hooks.value.edgesChange.off(M)})},{immediate:!0}),h1e(()=>{if(w){const A=r.get(w.id);A?A.$destroy():v1e(`No store instance found for id ${w.id} in storage.`)}})})}else l&&w.setState(u);if(o&&(yP(FJt,w),o.vueFlowId=w.id),l){const v=NT();(v==null?void 0:v.type.name)!=="VueFlow"&&w.emits.error(new Ch(Vd.USEVUEFLOW_OPTIONS))}return w}function xLr(n){const{emits:r,dimensions:o}=hu();let l;av(()=>{const u=n.value,d=()=>{if(!u)return;const h=m1e(u);(h.width===0||h.height===0)&&r.error(new Ch(Vd.MISSING_VIEWPORT_DIMENSIONS)),o.value={width:h.width||500,height:h.height||500}};d(),window.addEventListener("resize",d),u&&(l=new ResizeObserver(()=>d()),l.observe(u)),tpe(()=>{window.removeEventListener("resize",d),l&&u&&l.unobserve(u)})})}const CLr={name:"UserSelection",compatConfig:{MODE:3}},ALr=Ka({...CLr,props:{userSelectionRect:{}},setup(n){return(r,o)=>(ze(),jt("div",{class:"vue-flow__selection vue-flow__container",style:Vb({width:`${r.userSelectionRect.width}px`,height:`${r.userSelectionRect.height}px`,transform:`translate(${r.userSelectionRect.x}px, ${r.userSelectionRect.y}px)`})},null,4))}}),TLr=["tabIndex"],$Lr={name:"NodesSelection",compatConfig:{MODE:3}},ILr=Ka({...$Lr,setup(n){const{emits:r,viewport:o,getSelectedNodes:l,noPanClassName:u,disableKeyboardA11y:d,userSelectionActive:h}=hu(),w=Qdn(),v=Fo(null),y=Xdn({el:v,onStart(O){r.selectionDragStart(O)},onDrag(O){r.selectionDrag(O)},onStop(O){r.selectionDragStop(O)}});av(()=>{var O;d.value||(O=v.value)==null||O.focus({preventScroll:!0})});const E=To(()=>jdn(l.value)),A=To(()=>({width:`${E.value.width}px`,height:`${E.value.height}px`,top:`${E.value.y}px`,left:`${E.value.x}px`}));function C(O){r.selectionContextMenu({event:O,nodes:l.value})}function R(O){d||vL[O.key]&&(O.preventDefault(),w({x:vL[O.key].x,y:vL[O.key].y},O.shiftKey))}return(O,M)=>!Wr(h)&&E.value.width&&E.value.height?(ze(),jt("div",{key:0,class:Lo(["vue-flow__nodesselection vue-flow__container",Wr(u)]),style:Vb({transform:`translate(${Wr(o).x}px,${Wr(o).y}px) scale(${Wr(o).zoom})`})},[mr("div",{ref_key:"el",ref:v,class:Lo([{dragging:Wr(y)},"vue-flow__nodesselection-rect"]),style:Vb(A.value),tabIndex:Wr(d)?void 0:-1,onContextmenu:C,onKeydown:R},null,46,TLr)],6)):fr("",!0)}});function PLr(n,r){return{x:n.clientX-r.left,y:n.clientY-r.top}}const OLr={name:"Pane",compatConfig:{MODE:3}},NLr=Ka({...OLr,props:{isSelecting:{type:Boolean},selectionKeyPressed:{type:Boolean}},setup(n){const{vueFlowRef:r,nodes:o,viewport:l,emits:u,userSelectionActive:d,removeSelectedElements:h,userSelectionRect:w,elementsSelectable:v,nodesSelectionActive:y,getSelectedEdges:E,getSelectedNodes:A,removeNodes:C,removeEdges:R,selectionMode:O,deleteKeyCode:M,multiSelectionKeyCode:L,multiSelectionActive:H,edgeLookup:G,nodeLookup:j}=hu(),Q=Fo(null),te=Fo(0),pe=Fo(0),De=Fo(),Re=Fo(new Map),le=bf(()=>v.value&&(n.isSelecting||d.value));let xe=!1,be=!1;const ae=Pq(M,{actInsideInputWithModifier:!1}),F=Pq(L);Zs(ae,ft=>{ft&&(C(A.value),R(E.value),y.value=!1)}),Zs(F,ft=>{H.value=ft});function me(ft,re){return Te=>{Te.target===re&&(ft==null||ft(Te))}}function ye(){d.value=!1,w.value=null,te.value=0,pe.value=0}function we(ft){if(xe){xe=!1;return}u.paneClick(ft),h(),y.value=!1}function Be(ft){ft.preventDefault(),ft.stopPropagation(),u.paneContextMenu(ft)}function He(ft){u.paneScroll(ft)}function Ue(ft){var re,Te,dt,at,Qe;if(De.value=(re=r.value)==null?void 0:re.getBoundingClientRect(),!v.value||!n.isSelecting||ft.button!==0||ft.target!==Q.value||!De.value)return;(dt=(Te=ft.target)==null?void 0:Te.setPointerCapture)==null||dt.call(Te,ft.pointerId);const{x:yt,y:Lt}=PLr(ft,De.value);be=!0,xe=!1,Re.value=new Map;for(const[nn,Pe]of G.value)Re.value.set(Pe.source,((at=Re.value.get(Pe.source))==null?void 0:at.add(nn))||new Set([nn])),Re.value.set(Pe.target,((Qe=Re.value.get(Pe.target))==null?void 0:Qe.add(nn))||new Set([nn]));h(),w.value={width:0,height:0,startX:yt,startY:Lt,x:yt,y:Lt},u.selectionStart(ft)}function Ge(ft){if(!De.value||!w.value)return;xe=!0;const{x:re,y:Te}=zR(ft,De.value),{startX:dt=0,startY:at=0}=w.value,Qe={startX:dt,startY:at,x:re0&&(y.value=!0),ye(),u.selectionEnd(ft),n.selectionKeyPressed&&(xe=!1),be=!1)}return(ft,re)=>(ze(),jt("div",{ref_key:"container",ref:Q,class:Lo(["vue-flow__pane vue-flow__container",{selection:ft.isSelecting}]),onClick:re[0]||(re[0]=Te=>le.value?void 0:me(we,Q.value)(Te)),onContextmenu:re[1]||(re[1]=Te=>me(Be,Q.value)(Te)),onWheelPassive:re[2]||(re[2]=Te=>me(He,Q.value)(Te)),onPointerenter:re[3]||(re[3]=Te=>le.value?void 0:Wr(u).paneMouseEnter(Te)),onPointerdown:re[4]||(re[4]=Te=>le.value?Ue(Te):Wr(u).paneMouseMove(Te)),onPointermove:re[5]||(re[5]=Te=>le.value?Ge(Te):Wr(u).paneMouseMove(Te)),onPointerup:re[6]||(re[6]=Te=>le.value?Le(Te):void 0),onPointerleave:re[7]||(re[7]=Te=>Wr(u).paneMouseLeave(Te))},[Vr(ft.$slots,"default"),Wr(d)&&Wr(w)?(ze(),Nn(ALr,{key:0,"user-selection-rect":Wr(w)},null,8,["user-selection-rect"])):fr("",!0),Wr(y)&&Wr(A).length?(ze(),Nn(ILr,{key:1})):fr("",!0)],34))}}),MLr={name:"Transform",compatConfig:{MODE:3}},DLr=Ka({...MLr,setup(n){const{viewport:r,fitViewOnInit:o,fitViewOnInitDone:l}=hu(),u=To(()=>o.value?!l.value:!1),d=To(()=>`translate(${r.value.x}px,${r.value.y}px) scale(${r.value.zoom})`);return(h,w)=>(ze(),jt("div",{class:"vue-flow__transformationpane vue-flow__container",style:Vb({transform:d.value,opacity:u.value?0:void 0})},[Vr(h.$slots,"default")],4))}}),LLr={name:"Viewport",compatConfig:{MODE:3}},jLr=Ka({...LLr,setup(n){const{minZoom:r,maxZoom:o,defaultViewport:l,translateExtent:u,zoomActivationKeyCode:d,selectionKeyCode:h,panActivationKeyCode:w,panOnScroll:v,panOnScrollMode:y,panOnScrollSpeed:E,panOnDrag:A,zoomOnDoubleClick:C,zoomOnPinch:R,zoomOnScroll:O,preventScrolling:M,noWheelClassName:L,noPanClassName:H,emits:G,connectionStartHandle:j,userSelectionActive:Q,paneDragging:te,d3Zoom:pe,d3Selection:De,d3ZoomHandler:Re,viewport:le,viewportRef:xe,paneClickDistance:be}=hu();xLr(xe);const ae=Fo(!1),F=Fo(!1);let me=null,ye=!1,we=0,Be={x:0,y:0,zoom:0};const He=Pq(w),Ue=Pq(h),Ge=Pq(d),Le=bf(()=>(!Ue.value||Ue.value&&h.value===!0)&&(He.value||A.value)),ft=bf(()=>He.value||v.value),re=bf(()=>Ue.value||h.value===!0&&Le.value!==!0);av(()=>{if(!xe.value){v1e("Viewport element is missing");return}const Lt=xe.value,nn=Lt.getBoundingClientRect(),Pe=uDr().clickDistance(be.value).scaleExtent([r.value,o.value]).translateExtent(u.value),Ne=yS(Lt).call(Pe),T=Ne.on("wheel.zoom"),$=QL.translate(l.value.x??0,l.value.y??0).scale(FP(l.value.zoom??1,r.value,o.value)),B=[[0,0],[nn.width,nn.height]],K=Pe.constrain()($,B,u.value);Pe.transform(Ne,K),Pe.wheelDelta(dt),pe.value=Pe,De.value=Ne,Re.value=T,le.value={x:K.x,y:K.y,zoom:K.k},Pe.on("start",q=>{var ke;if(!q.sourceEvent)return null;we=q.sourceEvent.button,ae.value=!0;const Ee=Qe(q.transform);((ke=q.sourceEvent)==null?void 0:ke.type)==="mousedown"&&(te.value=!0),Be=Ee,G.viewportChangeStart(Ee),G.moveStart({event:q,flowTransform:Ee})}),Pe.on("end",q=>{if(!q.sourceEvent)return null;if(ae.value=!1,te.value=!1,Te(Le.value,we??0)&&!ye&&G.paneContextMenu(q.sourceEvent),ye=!1,at(Be,q.transform)){const ke=Qe(q.transform);Be=ke,G.viewportChangeEnd(ke),G.moveEnd({event:q,flowTransform:ke})}}),Pe.filter(q=>{var ke;const Ee=Ge.value||O.value,Ie=R.value&&q.ctrlKey,_t=q.button;if(_t===1&&q.type==="mousedown"&&(yt(q,"vue-flow__node")||yt(q,"vue-flow__edge")))return!0;if(!Le.value&&!Ee&&!ft.value&&!C.value&&!R.value||Q.value||!C.value&&q.type==="dblclick"||yt(q,L.value)&&q.type==="wheel"||yt(q,H.value)&&(q.type!=="wheel"||ft.value&&q.type==="wheel"&&!Ge.value)||!R.value&&q.ctrlKey&&q.type==="wheel"||!Ee&&!ft.value&&!Ie&&q.type==="wheel")return!1;if(!R&&q.type==="touchstart"&&((ke=q.touches)==null?void 0:ke.length)>1)return q.preventDefault(),!1;if(!Le.value&&(q.type==="mousedown"||q.type==="touchstart")||h.value===!0&&Array.isArray(A.value)&&A.value.includes(0)&&_t===0||Array.isArray(A.value)&&!A.value.includes(_t)&&(q.type==="mousedown"||q.type==="touchstart"))return!1;const he=Array.isArray(A.value)&&A.value.includes(_t)||h.value===!0&&Array.isArray(A.value)&&!A.value.includes(0)||!_t||_t<=1;return(!q.ctrlKey||He.value||q.type==="wheel")&&he}),Zs([Q,Le],()=>{Q.value&&!ae.value?Pe.on("zoom",null):Q.value||Pe.on("zoom",q=>{le.value={x:q.transform.x,y:q.transform.y,zoom:q.transform.k};const ke=Qe(q.transform);ye=Te(Le.value,we??0),G.viewportChange(ke),G.move({event:q,flowTransform:ke})})},{immediate:!0}),Zs([Q,ft,y,Ge,R,M,L],()=>{ft.value&&!Ge.value&&!Q.value?Ne.on("wheel.zoom",q=>{if(yt(q,L.value))return!1;const ke=Ge.value||O.value,Ee=R.value&&q.ctrlKey;if(!(!M.value||ft.value||ke||Ee))return!1;q.preventDefault(),q.stopImmediatePropagation();const _t=Ne.property("__zoom").k||1,he=Uhe();if(!He.value&&q.ctrlKey&&R.value&&he){const $e=OE(q),ce=dt(q),de=_t*2**ce;Pe.scaleTo(Ne,de,$e,q);return}const Xt=q.deltaMode===1?20:1;let Zt=y.value===Iq.Vertical?0:q.deltaX*Xt,$n=y.value===Iq.Horizontal?0:q.deltaY*Xt;!he&&q.shiftKey&&y.value!==Iq.Vertical&&!Zt&&$n&&(Zt=$n,$n=0),Pe.translateBy(Ne,-(Zt/_t)*E.value,-($n/_t)*E.value);const Gn=Qe(Ne.property("__zoom"));me&&clearTimeout(me),F.value?(G.move({event:q,flowTransform:Gn}),G.viewportChange(Gn),me=setTimeout(()=>{G.moveEnd({event:q,flowTransform:Gn}),G.viewportChangeEnd(Gn),F.value=!1},150)):(F.value=!0,G.moveStart({event:q,flowTransform:Gn}),G.viewportChangeStart(Gn))},{passive:!1}):typeof T<"u"&&Ne.on("wheel.zoom",function(q,ke){const Ee=!M.value&&q.type==="wheel"&&!q.ctrlKey,Ie=Ge.value||O.value,_t=R.value&&q.ctrlKey;if(!Ie&&!v.value&&!_t&&q.type==="wheel"||Ee||yt(q,L.value))return null;q.preventDefault(),T.call(this,q,ke)},{passive:!1})},{immediate:!0})});function Te(Lt,nn){return nn===2&&Array.isArray(Lt)&&Lt.includes(2)}function dt(Lt){const nn=Lt.ctrlKey&&Uhe()?10:1;return-Lt.deltaY*(Lt.deltaMode===1?.05:Lt.deltaMode?1:.002)*nn}function at(Lt,nn){return Lt.x!==nn.x&&!Number.isNaN(nn.x)||Lt.y!==nn.y&&!Number.isNaN(nn.y)||Lt.zoom!==nn.k&&!Number.isNaN(nn.k)}function Qe(Lt){return{x:Lt.x,y:Lt.y,zoom:Lt.k}}function yt(Lt,nn){return Lt.target.closest(`.${nn}`)}return(Lt,nn)=>(ze(),jt("div",{ref_key:"viewportRef",ref:xe,class:"vue-flow__viewport vue-flow__container"},[bi(NLr,{"is-selecting":re.value,"selection-key-pressed":Wr(Ue),class:Lo({connecting:!!Wr(j),dragging:Wr(te),draggable:Wr(A)===!0||Array.isArray(Wr(A))&&Wr(A).includes(0)})},{default:vi(()=>[bi(DLr,null,{default:vi(()=>[Vr(Lt.$slots,"default")]),_:3})]),_:3},8,["is-selecting","selection-key-pressed","class"])],512))}}),FLr=["id"],BLr=["id"],WLr=["id"],HLr={name:"A11yDescriptions",compatConfig:{MODE:3}},ULr=Ka({...HLr,setup(n){const{id:r,disableKeyboardA11y:o,ariaLiveMessage:l}=hu();return(u,d)=>(ze(),jt(gi,null,[mr("div",{id:`${Wr(Tdn)}-${Wr(r)}`,style:{display:"none"}}," Press enter or space to select a node. "+na(Wr(o)?"":"You can then use the arrow keys to move the node around.")+" You can then use the arrow keys to move the node around, press delete to remove it and press escape to cancel. ",9,FLr),mr("div",{id:`${Wr($dn)}-${Wr(r)}`,style:{display:"none"}}," Press enter or space to select an edge. You can then press delete to remove it or press escape to cancel. ",8,BLr),Wr(o)?fr("",!0):(ze(),jt("div",{key:0,id:`${Wr(pDr)}-${Wr(r)}`,"aria-live":"assertive","aria-atomic":"true",style:{position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)","clip-path":"inset(100%)"}},na(Wr(l)),9,WLr))],64))}});function GLr(){const n=hu();Zs(()=>n.viewportHelper.value.viewportInitialized,r=>{r&&setTimeout(()=>{n.emits.init(n),n.emits.paneReady(n)},1)})}function VLr(n,r,o){return o===$i.Left?n-r:o===$i.Right?n+r:n}function zLr(n,r,o){return o===$i.Top?n-r:o===$i.Bottom?n+r:n}const DVe=function({radius:n=10,centerX:r=0,centerY:o=0,position:l=$i.Top,type:u}){return sc("circle",{class:`vue-flow__edgeupdater vue-flow__edgeupdater-${u}`,cx:VLr(r,n,l),cy:zLr(o,n,l),r:n,stroke:"transparent",fill:"transparent"})};DVe.props=["radius","centerX","centerY","position","type"];DVe.compatConfig={MODE:3};const GJt=DVe,KLr=Ka({name:"Edge",compatConfig:{MODE:3},props:["id"],setup(n){const{id:r,addSelectedEdges:o,connectionMode:l,edgeUpdaterRadius:u,emits:d,nodesSelectionActive:h,noPanClassName:w,getEdgeTypes:v,removeSelectedEdges:y,findEdge:E,findNode:A,isValidConnection:C,multiSelectionActive:R,disableKeyboardA11y:O,elementsSelectable:M,edgesUpdatable:L,edgesFocusable:H,hooks:G}=hu(),j=To(()=>E(n.id)),{emit:Q,on:te}=FDr(j.value,d),pe=BE(_1e),De=NT(),Re=Fo(!1),le=Fo(!1),xe=Fo(""),be=Fo(null),ae=Fo("source"),F=Fo(null),me=bf(()=>typeof j.value.selectable>"u"?M.value:j.value.selectable),ye=bf(()=>typeof j.value.updatable>"u"?L.value:j.value.updatable),we=bf(()=>typeof j.value.focusable>"u"?H.value:j.value.focusable);yP(DDr,n.id),yP(LDr,F);const Be=To(()=>j.value.class instanceof Function?j.value.class(j.value):j.value.class),He=To(()=>j.value.style instanceof Function?j.value.style(j.value):j.value.style),Ue=To(()=>{const B=j.value.type||"default",K=pe==null?void 0:pe[`edge-${B}`];if(K)return K;let q=j.value.template??v.value[B];if(typeof q=="string"&&De){const ke=Object.keys(De.appContext.components);ke&&ke.includes(B)&&(q=Ni(B,!1))}return q&&typeof q!="string"?q:(d.error(new Ch(Vd.EDGE_TYPE_MISSING,q)),!1)}),{handlePointerDown:Ge}=Jdn({nodeId:xe,handleId:be,type:ae,isValidConnection:C,edgeUpdaterType:ae,onEdgeUpdate:re,onEdgeUpdateEnd:Te});return()=>{const B=A(j.value.source),K=A(j.value.target),q="pathOptions"in j.value?j.value.pathOptions:{};if(!B&&!K)return d.error(new Ch(Vd.EDGE_SOURCE_TARGET_MISSING,j.value.id,j.value.source,j.value.target)),null;if(!B)return d.error(new Ch(Vd.EDGE_SOURCE_MISSING,j.value.id,j.value.source)),null;if(!K)return d.error(new Ch(Vd.EDGE_TARGET_MISSING,j.value.id,j.value.target)),null;if(!j.value||j.value.hidden||B.hidden||K.hidden)return null;let ke;l.value===jP.Strict?ke=B.handleBounds.source:ke=[...B.handleBounds.source||[],...B.handleBounds.target||[]];const Ee=OJt(ke,j.value.sourceHandle);let Ie;l.value===jP.Strict?Ie=K.handleBounds.target:Ie=[...K.handleBounds.target||[],...K.handleBounds.source||[]];const _t=OJt(Ie,j.value.targetHandle),he=(Ee==null?void 0:Ee.position)||$i.Bottom,Xt=(_t==null?void 0:_t.position)||$i.Top,{x:Zt,y:$n}=Hhe(B,Ee,he),{x:Gn,y:$e}=Hhe(K,_t,Xt);return j.value.sourceX=Zt,j.value.sourceY=$n,j.value.targetX=Gn,j.value.targetY=$e,sc("g",{ref:F,key:n.id,"data-id":n.id,class:["vue-flow__edge",`vue-flow__edge-${Ue.value===!1?"default":j.value.type||"default"}`,w.value,Be.value,{updating:Re.value,selected:j.value.selected,animated:j.value.animated,inactive:!me.value&&!G.value.edgeClick.hasListeners()}],onClick:at,onContextmenu:Qe,onDblclick:yt,onMouseenter:Lt,onMousemove:nn,onMouseleave:Pe,onKeyDown:we.value?$:void 0,tabIndex:we.value?0:void 0,"aria-label":j.value.ariaLabel===null?void 0:j.value.ariaLabel||`Edge from ${j.value.source} to ${j.value.target}`,"aria-describedby":we.value?`${$dn}-${r}`:void 0,role:we.value?"button":"img"},[le.value?null:sc(Ue.value===!1?v.value.default:Ue.value,{id:n.id,sourceNode:B,targetNode:K,source:j.value.source,target:j.value.target,type:j.value.type,updatable:ye.value,selected:j.value.selected,animated:j.value.animated,label:j.value.label,labelStyle:j.value.labelStyle,labelShowBg:j.value.labelShowBg,labelBgStyle:j.value.labelBgStyle,labelBgPadding:j.value.labelBgPadding,labelBgBorderRadius:j.value.labelBgBorderRadius,data:j.value.data,events:{...j.value.events,...te},style:He.value,markerStart:`url('#${IX(j.value.markerStart,r)}')`,markerEnd:`url('#${IX(j.value.markerEnd,r)}')`,sourcePosition:he,targetPosition:Xt,sourceX:Zt,sourceY:$n,targetX:Gn,targetY:$e,sourceHandleId:j.value.sourceHandle,targetHandleId:j.value.targetHandle,interactionWidth:j.value.interactionWidth,...q}),[ye.value==="source"||ye.value===!0?[sc("g",{onMousedown:Ne,onMouseenter:Le,onMouseout:ft},sc(GJt,{position:he,centerX:Zt,centerY:$n,radius:u.value,type:"source","data-type":"source"}))]:null,ye.value==="target"||ye.value===!0?[sc("g",{onMousedown:T,onMouseenter:Le,onMouseout:ft},sc(GJt,{position:Xt,centerX:Gn,centerY:$e,radius:u.value,type:"target","data-type":"target"}))]:null]])};function Le(){Re.value=!0}function ft(){Re.value=!1}function re(B,K){Q.update({event:B,edge:j.value,connection:K})}function Te(B){Q.updateEnd({event:B,edge:j.value}),le.value=!1}function dt(B,K){B.button===0&&(le.value=!0,xe.value=K?j.value.target:j.value.source,be.value=(K?j.value.targetHandle:j.value.sourceHandle)??"",ae.value=K?"target":"source",Q.updateStart({event:B,edge:j.value}),Ge(B))}function at(B){var K;const q={event:B,edge:j.value};me.value&&(h.value=!1,j.value.selected&&R.value?(y([j.value]),(K=F.value)==null||K.blur()):o([j.value])),Q.click(q)}function Qe(B){Q.contextMenu({event:B,edge:j.value})}function yt(B){Q.doubleClick({event:B,edge:j.value})}function Lt(B){Q.mouseEnter({event:B,edge:j.value})}function nn(B){Q.mouseMove({event:B,edge:j.value})}function Pe(B){Q.mouseLeave({event:B,edge:j.value})}function Ne(B){dt(B,!0)}function T(B){dt(B,!1)}function $(B){var K;!O.value&&Idn.includes(B.key)&&me.value&&(B.key==="Escape"?((K=F.value)==null||K.blur(),y([E(n.id)])):o([E(n.id)]))}}}),qLr=KLr,XLr={[$i.Left]:$i.Right,[$i.Right]:$i.Left,[$i.Top]:$i.Bottom,[$i.Bottom]:$i.Top},JLr=Ka({name:"ConnectionLine",compatConfig:{MODE:3},setup(){var n;const{id:r,connectionMode:o,connectionStartHandle:l,connectionEndHandle:u,connectionPosition:d,connectionLineType:h,connectionLineStyle:w,connectionLineOptions:v,connectionStatus:y,viewport:E,findNode:A}=hu(),C=(n=BE(_1e))==null?void 0:n["connection-line"],R=To(()=>{var G;return A((G=l.value)==null?void 0:G.nodeId)}),O=To(()=>{var G;return A((G=u.value)==null?void 0:G.nodeId)??null}),M=To(()=>({x:(d.value.x-E.value.x)/E.value.zoom,y:(d.value.y-E.value.y)/E.value.zoom})),L=To(()=>v.value.markerStart?`url(#${IX(v.value.markerStart,r)})`:""),H=To(()=>v.value.markerEnd?`url(#${IX(v.value.markerEnd,r)})`:"");return()=>{var G,j,Q,te;if(!R.value||!l.value)return null;const pe=l.value.handleId,De=l.value.type,Re=R.value.handleBounds;let le=(Re==null?void 0:Re[De])||[];if(o.value===jP.Loose){const Ue=(Re==null?void 0:Re[De==="source"?"target":"source"])||[];le=[...le,...Ue]}if(!le)return null;const xe=(pe?le.find(Ue=>Ue.id===pe):le[0])??null,be=(xe==null?void 0:xe.position)||$i.Top,{x:ae,y:F}=Hhe(R.value,xe,be);let me=null;O.value&&((G=u.value)!=null&&G.handleId)&&(o.value===jP.Strict?me=((j=O.value.handleBounds[De==="source"?"target":"source"])==null?void 0:j.find(Ue=>{var Ge;return Ue.id===((Ge=u.value)==null?void 0:Ge.handleId)}))||null:me=((Q=[...O.value.handleBounds.source||[],...O.value.handleBounds.target||[]])==null?void 0:Q.find(Ue=>{var Ge;return Ue.id===((Ge=u.value)==null?void 0:Ge.handleId)}))||null);const ye=((te=u.value)==null?void 0:te.position)??(be?XLr[be]:null);if(!be||!ye)return null;const we=h.value??v.value.type??F8.Bezier;let Be="";const He={sourceX:ae,sourceY:F,sourcePosition:be,targetX:M.value.x,targetY:M.value.y,targetPosition:ye};return we===F8.Bezier?[Be]=MVe(He):we===F8.Step?[Be]=cWe({...He,borderRadius:0}):we===F8.SmoothStep?[Be]=cWe(He):we===F8.SimpleBezier?[Be]=nhn(He):Be=`M${ae},${F} ${M.value.x},${M.value.y}`,sc("svg",{class:"vue-flow__edges vue-flow__connectionline vue-flow__container"},sc("g",{class:"vue-flow__connection"},C?sc(C,{sourceX:ae,sourceY:F,sourcePosition:be,targetX:M.value.x,targetY:M.value.y,targetPosition:ye,sourceNode:R.value,sourceHandle:xe,targetNode:O.value,targetHandle:me,markerEnd:H.value,markerStart:L.value,connectionStatus:y.value}):sc("path",{d:Be,class:[v.value.class,y,"vue-flow__connection-path"],style:{...w.value,...v.value.style},"marker-end":H.value,"marker-start":L.value})))}}}),YLr=JLr,QLr=["id","markerWidth","markerHeight","markerUnits","orient"],ZLr={name:"MarkerType",compatConfig:{MODE:3}},ejr=Ka({...ZLr,props:{id:{},type:{},color:{default:"none"},width:{default:12.5},height:{default:12.5},markerUnits:{default:"strokeWidth"},orient:{default:"auto-start-reverse"},strokeWidth:{default:1}},setup(n){return(r,o)=>(ze(),jt("marker",{id:r.id,class:"vue-flow__arrowhead",viewBox:"-10 -10 20 20",refX:"0",refY:"0",markerWidth:`${r.width}`,markerHeight:`${r.height}`,markerUnits:r.markerUnits,orient:r.orient},[r.type===Wr(Whe).ArrowClosed?(ze(),jt("polyline",{key:0,style:Vb({stroke:r.color,fill:r.color,strokeWidth:r.strokeWidth}),"stroke-linecap":"round","stroke-linejoin":"round",points:"-5,-4 0,0 -5,4 -5,-4"},null,4)):fr("",!0),r.type===Wr(Whe).Arrow?(ze(),jt("polyline",{key:1,style:Vb({stroke:r.color,strokeWidth:r.strokeWidth}),"stroke-linecap":"round","stroke-linejoin":"round",fill:"none",points:"-5,-4 0,0 -5,4"},null,4)):fr("",!0)],8,QLr))}}),tjr={class:"vue-flow__marker vue-flow__container"},njr={name:"MarkerDefinitions",compatConfig:{MODE:3}},rjr=Ka({...njr,setup(n){const{id:r,edges:o,connectionLineOptions:l,defaultMarkerColor:u}=hu(),d=To(()=>{const h=new Set,w=[],v=y=>{if(y){const E=IX(y,r);h.has(E)||(typeof y=="object"?w.push({...y,id:E,color:y.color||u.value}):w.push({id:E,color:u.value,type:y}),h.add(E))}};for(const y of[l.value.markerEnd,l.value.markerStart])v(y);for(const y of o.value)for(const E of[y.markerStart,y.markerEnd])v(E);return w.sort((y,E)=>y.id.localeCompare(E.id))});return(h,w)=>(ze(),jt("svg",tjr,[mr("defs",null,[(ze(!0),jt(gi,null,uu(d.value,v=>(ze(),Nn(ejr,{id:v.id,key:v.id,type:v.type,color:v.color,width:v.width,height:v.height,markerUnits:v.markerUnits,"stroke-width":v.strokeWidth,orient:v.orient},null,8,["id","type","color","width","height","markerUnits","stroke-width","orient"]))),128))])]))}}),ijr={name:"Edges",compatConfig:{MODE:3}},ojr=Ka({...ijr,setup(n){const{findNode:r,getEdges:o,elevateEdgesOnSelect:l}=hu();return(u,d)=>(ze(),jt(gi,null,[bi(rjr),(ze(!0),jt(gi,null,uu(Wr(o),h=>(ze(),jt("svg",{key:h.id,class:"vue-flow__edges vue-flow__container",style:Vb({zIndex:Wr(ADr)(h,Wr(r),Wr(l))})},[bi(Wr(qLr),{id:h.id},null,8,["id"])],4))),128)),bi(Wr(YLr))],64))}}),sjr=Ka({name:"Node",compatConfig:{MODE:3},props:["id","resizeObserver"],setup(n){const{id:r,noPanClassName:o,selectNodesOnDrag:l,nodesSelectionActive:u,multiSelectionActive:d,emits:h,removeSelectedNodes:w,addSelectedNodes:v,updateNodeDimensions:y,onUpdateNodeInternals:E,getNodeTypes:A,nodeExtent:C,elevateNodesOnSelect:R,disableKeyboardA11y:O,ariaLiveMessage:M,snapToGrid:L,snapGrid:H,nodeDragThreshold:G,nodesDraggable:j,elementsSelectable:Q,nodesConnectable:te,nodesFocusable:pe,hooks:De}=hu(),Re=Fo(null);yP(qdn,Re),yP(Kdn,n.id);const le=BE(_1e),xe=NT(),be=Qdn(),{node:ae,parentNode:F}=Ydn(n.id),{emit:me,on:ye}=UDr(ae,h),we=bf(()=>typeof ae.draggable>"u"?j.value:ae.draggable),Be=bf(()=>typeof ae.selectable>"u"?Q.value:ae.selectable),He=bf(()=>typeof ae.connectable>"u"?te.value:ae.connectable),Ue=bf(()=>typeof ae.focusable>"u"?pe.value:ae.focusable),Ge=bf(()=>Be.value||we.value||De.value.nodeClick.hasListeners()||De.value.nodeDoubleClick.hasListeners()||De.value.nodeMouseEnter.hasListeners()||De.value.nodeMouseMove.hasListeners()||De.value.nodeMouseLeave.hasListeners()),Le=bf(()=>!!ae.dimensions.width&&!!ae.dimensions.height),ft=To(()=>{const K=ae.type||"default",q=le==null?void 0:le[`node-${K}`];if(q)return q;let ke=ae.template||A.value[K];if(typeof ke=="string"&&xe){const Ee=Object.keys(xe.appContext.components);Ee&&Ee.includes(K)&&(ke=Ni(K,!1))}return ke&&typeof ke!="string"?ke:(h.error(new Ch(Vd.NODE_TYPE_MISSING,ke)),!1)}),re=Xdn({id:n.id,el:Re,disabled:()=>!we.value,selectable:Be,dragHandle:()=>ae.dragHandle,onStart(K){me.dragStart(K)},onDrag(K){me.drag(K)},onStop(K){me.dragStop(K)},onClick(K){$(K)}}),Te=To(()=>ae.class instanceof Function?ae.class(ae):ae.class),dt=To(()=>{const K=(ae.style instanceof Function?ae.style(ae):ae.style)||{},q=ae.width instanceof Function?ae.width(ae):ae.width,ke=ae.height instanceof Function?ae.height(ae):ae.height;return!K.width&&q&&(K.width=typeof q=="string"?q:`${q}px`),!K.height&&ke&&(K.height=typeof ke=="string"?ke:`${ke}px`),K}),at=bf(()=>Number(ae.zIndex??dt.value.zIndex??0));return E(K=>{(K.includes(n.id)||!K.length)&&yt()}),av(()=>{Zs(()=>ae.hidden,(K=!1,q,ke)=>{!K&&Re.value&&(n.resizeObserver.observe(Re.value),ke(()=>{Re.value&&n.resizeObserver.unobserve(Re.value)}))},{immediate:!0,flush:"post"})}),Zs([()=>ae.type,()=>ae.sourcePosition,()=>ae.targetPosition],()=>{RS(()=>{y([{id:n.id,nodeElement:Re.value,forceUpdate:!0}])})}),Zs([()=>ae.position.x,()=>ae.position.y,()=>{var K;return(K=F.value)==null?void 0:K.computedPosition.x},()=>{var K;return(K=F.value)==null?void 0:K.computedPosition.y},()=>{var K;return(K=F.value)==null?void 0:K.computedPosition.z},at,()=>ae.selected,()=>ae.dimensions.height,()=>ae.dimensions.width,()=>{var K;return(K=F.value)==null?void 0:K.dimensions.height},()=>{var K;return(K=F.value)==null?void 0:K.dimensions.width}],([K,q,ke,Ee,Ie,_t])=>{const he={x:K,y:q,z:_t+(R.value&&ae.selected?1e3:0)};typeof ke<"u"&&typeof Ee<"u"?ae.computedPosition=SDr({x:ke,y:Ee,z:Ie},he):ae.computedPosition=he},{flush:"post",immediate:!0}),Zs([()=>ae.extent,C],([K,q],[ke,Ee])=>{(K!==ke||q!==Ee)&&Qe()}),ae.extent==="parent"||typeof ae.extent=="object"&&"range"in ae.extent&&ae.extent.range==="parent"?JBe(()=>Le).toBe(!0).then(Qe):Qe(),()=>ae.hidden?null:sc("div",{ref:Re,"data-id":ae.id,class:["vue-flow__node",`vue-flow__node-${ft.value===!1?"default":ae.type||"default"}`,{[o.value]:we.value,dragging:re==null?void 0:re.value,draggable:we.value,selected:ae.selected,selectable:Be.value,parent:ae.isParent},Te.value],style:{visibility:Le.value?"visible":"hidden",zIndex:ae.computedPosition.z??at.value,transform:`translate(${ae.computedPosition.x}px,${ae.computedPosition.y}px)`,pointerEvents:Ge.value?"all":"none",...dt.value},tabIndex:Ue.value?0:void 0,role:Ue.value?"button":void 0,"aria-describedby":O.value?void 0:`${Tdn}-${r}`,"aria-label":ae.ariaLabel,onMouseenter:Lt,onMousemove:nn,onMouseleave:Pe,onContextmenu:Ne,onClick:$,onDblclick:T,onKeydown:B},[sc(ft.value===!1?A.value.default:ft.value,{id:ae.id,type:ae.type,data:ae.data,events:{...ae.events,...ye},selected:ae.selected,resizing:ae.resizing,dragging:re.value,connectable:He.value,position:ae.computedPosition,dimensions:ae.dimensions,isValidTargetPos:ae.isValidTargetPos,isValidSourcePos:ae.isValidSourcePos,parent:ae.parentNode,parentNodeId:ae.parentNode,zIndex:ae.computedPosition.z??at.value,targetPosition:ae.targetPosition,sourcePosition:ae.sourcePosition,label:ae.label,dragHandle:ae.dragHandle,onUpdateNodeInternals:yt})]);function Qe(){const K=ae.computedPosition,{computedPosition:q,position:ke}=PVe(ae,L.value?y1e(K,H.value):K,h.error,C.value,F.value);(ae.computedPosition.x!==q.x||ae.computedPosition.y!==q.y)&&(ae.computedPosition={...ae.computedPosition,...q}),(ae.position.x!==ke.x||ae.position.y!==ke.y)&&(ae.position=ke)}function yt(){Re.value&&y([{id:n.id,nodeElement:Re.value,forceUpdate:!0}])}function Lt(K){re!=null&&re.value||me.mouseEnter({event:K,node:ae})}function nn(K){re!=null&&re.value||me.mouseMove({event:K,node:ae})}function Pe(K){re!=null&&re.value||me.mouseLeave({event:K,node:ae})}function Ne(K){return me.contextMenu({event:K,node:ae})}function T(K){return me.doubleClick({event:K,node:ae})}function $(K){Be.value&&(!l.value||!we.value||G.value>0)&&aWe(ae,d.value,v,w,u,!1,Re.value),me.click({event:K,node:ae})}function B(K){if(!(oWe(K)||O.value))if(Idn.includes(K.key)&&Be.value){const q=K.key==="Escape";aWe(ae,d.value,v,w,u,q,Re.value)}else we.value&&ae.selected&&vL[K.key]&&(K.preventDefault(),M.value=`Moved selected node ${K.key.replace("Arrow","").toLowerCase()}. New position, x: ${~~ae.position.x}, y: ${~~ae.position.y}`,be({x:vL[K.key].x,y:vL[K.key].y},K.shiftKey))}}}),ljr=sjr;function ajr(n={includeHiddenNodes:!1}){const{nodes:r}=hu();return To(()=>{if(r.value.length===0)return!1;for(const o of r.value)if((n.includeHiddenNodes||!o.hidden)&&((o==null?void 0:o.handleBounds)===void 0||o.dimensions.width===0||o.dimensions.height===0))return!1;return!0})}const cjr={class:"vue-flow__nodes vue-flow__container"},ujr={name:"Nodes",compatConfig:{MODE:3}},fjr=Ka({...ujr,setup(n){const{getNodes:r,updateNodeDimensions:o,emits:l}=hu(),u=ajr(),d=Fo();return Zs(u,h=>{h&&RS(()=>{l.nodesInitialized(r.value)})},{immediate:!0}),av(()=>{d.value=new ResizeObserver(h=>{const w=h.map(v=>({id:v.target.getAttribute("data-id"),nodeElement:v.target,forceUpdate:!0}));RS(()=>o(w))})}),tpe(()=>{var h;return(h=d.value)==null?void 0:h.disconnect()}),(h,w)=>(ze(),jt("div",cjr,[d.value?(ze(!0),jt(gi,{key:0},uu(Wr(r),(v,y,E,A)=>{const C=[v.id];if(A&&A.key===v.id&&FWn(A,C))return A;const R=(ze(),Nn(Wr(ljr),{id:v.id,key:v.id,"resize-observer":d.value},null,8,["id","resize-observer"]));return R.memo=C,R},w,0),128)):fr("",!0)]))}});function djr(){const{emits:n}=hu();av(()=>{if(zdn()){const r=document.querySelector(".vue-flow__pane");r&&window.getComputedStyle(r).zIndex!=="1"&&n.error(new Ch(Vd.MISSING_STYLES))}})}const hjr=mr("div",{class:"vue-flow__edge-labels"},null,-1),pjr={name:"VueFlow",compatConfig:{MODE:3}},bjr=Ka({...pjr,props:{id:{},modelValue:{},nodes:{},edges:{},edgeTypes:{},nodeTypes:{},connectionMode:{},connectionLineType:{},connectionLineStyle:{default:void 0},connectionLineOptions:{default:void 0},connectionRadius:{},isValidConnection:{type:[Function,null],default:void 0},deleteKeyCode:{default:void 0},selectionKeyCode:{type:[Boolean,null],default:void 0},multiSelectionKeyCode:{default:void 0},zoomActivationKeyCode:{default:void 0},panActivationKeyCode:{default:void 0},snapToGrid:{type:Boolean,default:void 0},snapGrid:{},onlyRenderVisibleElements:{type:Boolean,default:void 0},edgesUpdatable:{type:[Boolean,String],default:void 0},nodesDraggable:{type:Boolean,default:void 0},nodesConnectable:{type:Boolean,default:void 0},nodeDragThreshold:{},elementsSelectable:{type:Boolean,default:void 0},selectNodesOnDrag:{type:Boolean,default:void 0},panOnDrag:{type:[Boolean,Array],default:void 0},minZoom:{},maxZoom:{},defaultViewport:{},translateExtent:{},nodeExtent:{},defaultMarkerColor:{},zoomOnScroll:{type:Boolean,default:void 0},zoomOnPinch:{type:Boolean,default:void 0},panOnScroll:{type:Boolean,default:void 0},panOnScrollSpeed:{},panOnScrollMode:{},paneClickDistance:{},zoomOnDoubleClick:{type:Boolean,default:void 0},preventScrolling:{type:Boolean,default:void 0},selectionMode:{},edgeUpdaterRadius:{},fitViewOnInit:{type:Boolean,default:void 0},connectOnClick:{type:Boolean,default:void 0},applyDefault:{type:Boolean,default:void 0},autoConnect:{type:[Boolean,Function],default:void 0},noDragClassName:{},noWheelClassName:{},noPanClassName:{},defaultEdgeOptions:{},elevateEdgesOnSelect:{type:Boolean,default:void 0},elevateNodesOnSelect:{type:Boolean,default:void 0},disableKeyboardA11y:{type:Boolean,default:void 0},edgesFocusable:{type:Boolean,default:void 0},nodesFocusable:{type:Boolean,default:void 0},autoPanOnConnect:{type:Boolean,default:void 0},autoPanOnNodeDrag:{type:Boolean,default:void 0},autoPanSpeed:{}},emits:["nodesChange","edgesChange","nodesInitialized","paneReady","init","updateNodeInternals","error","connect","connectStart","connectEnd","clickConnectStart","clickConnectEnd","moveStart","move","moveEnd","selectionDragStart","selectionDrag","selectionDragStop","selectionContextMenu","selectionStart","selectionEnd","viewportChangeStart","viewportChange","viewportChangeEnd","paneScroll","paneClick","paneContextMenu","paneMouseEnter","paneMouseMove","paneMouseLeave","edgeUpdate","edgeContextMenu","edgeMouseEnter","edgeMouseMove","edgeMouseLeave","edgeDoubleClick","edgeClick","edgeUpdateStart","edgeUpdateEnd","nodeContextMenu","nodeMouseEnter","nodeMouseMove","nodeMouseLeave","nodeDoubleClick","nodeClick","nodeDragStart","nodeDrag","nodeDragStop","miniMapNodeClick","miniMapNodeDoubleClick","miniMapNodeMouseEnter","miniMapNodeMouseMove","miniMapNodeMouseLeave","update:modelValue","update:nodes","update:edges"],setup(n,{expose:r,emit:o}){const l=n,u=eWn(),d=cLe(l,"modelValue",o),h=cLe(l,"nodes",o),w=cLe(l,"edges",o),v=hu(l),y=zDr({modelValue:d,nodes:h,edges:w},l,v);return qDr(o,v.hooks),GLr(),djr(),yP(_1e,u),npe(()=>{y()}),r(v),(E,A)=>(ze(),jt("div",{ref:Wr(v).vueFlowRef,class:"vue-flow"},[bi(jLr,null,{default:vi(()=>[bi(ojr),hjr,bi(fjr),Vr(E.$slots,"zoom-pane")]),_:3}),Vr(E.$slots,"default"),bi(ULr)],512))}});function VJt(n,r){const{dimensions:{width:o,height:l},computedPosition:u}=n,d=r.computedPosition,h=o/2,w=l/2,v=u.x+h,y=u.y+w,E=d.x+h,A=d.y+w,C=(E-v)/(2*h)-(A-y)/(2*w),R=(E-v)/(2*h)+(A-y)/(2*w),O=1/(Math.abs(C)+Math.abs(R)),M=O*C,L=O*R,H=h*(M+L)+v,G=w*(-M+L)+y;return{x:H,y:G}}function zJt(n,r){const o={...n.computedPosition,...n.dimensions},l=Math.round(o.x),u=Math.round(o.y),d=Math.round(r.x),h=Math.round(r.y);return d<=l+1?$i.Left:d>=l+o.width-1?$i.Right:h<=u+1?$i.Top:h>=o.y+o.height-1?$i.Bottom:$i.Top}function gjr(n,r){const o=VJt(n,r),l=VJt(r,n),u=zJt(n,o),d=zJt(r,l);return{sx:o.x,sy:o.y,tx:l.x,ty:l.y,sourcePos:u,targetPos:d}}const wjr=Ka({__name:"FloatingEdge",props:{id:{},source:{},target:{},markerEndId:{},sourceNode:{},targetNode:{},style:{},markerEnd:{},markerStart:{},type:{},label:{},selected:{type:Boolean},sourcePosition:{},targetPosition:{},sourceHandleId:{},targetHandleId:{},animated:{type:Boolean},updatable:{type:Boolean},curvature:{},interactionWidth:{},data:{},events:{},labelStyle:{},labelShowBg:{type:Boolean},labelBgStyle:{},labelBgPadding:{},labelBgBorderRadius:{},sourceX:{},sourceY:{},targetX:{},targetY:{}},setup(n){const r=n,o=To(()=>gjr(r.sourceNode,r.targetNode)),l=To(()=>{if(!o.value.sx)return"";const u=r.sourceX(ze(),Nn(Wr(zJ),{id:u.id,path:l.value[0],"marker-start":u.markerStart,"marker-end":u.markerEnd,style:Vb(u.style)},null,8,["id","path","marker-start","marker-end","style"]))}});function Sfe(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ihn={exports:{}};(function(n,r){(function(o){n.exports=o()})(function(){return function(){function o(l,u,d){function h(y,E){if(!u[y]){if(!l[y]){var A=typeof Sfe=="function"&&Sfe;if(!E&&A)return A(y,!0);if(w)return w(y,!0);var C=new Error("Cannot find module '"+y+"'");throw C.code="MODULE_NOT_FOUND",C}var R=u[y]={exports:{}};l[y][0].call(R.exports,function(O){var M=l[y][1][O];return h(M||O)},R,R.exports,o,l,u,d)}return u[y].exports}for(var w=typeof Sfe=="function"&&Sfe,v=0;v0&&arguments[0]!==void 0?arguments[0]:{},C=A.defaultLayoutOptions,R=C===void 0?{}:C,O=A.algorithms,M=O===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:O,L=A.workerFactory,H=A.workerUrl;if(h(this,y),this.defaultLayoutOptions=R,this.initialized=!1,typeof H>"u"&&typeof L>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var G=L;typeof H<"u"&&typeof L>"u"&&(G=function(te){return new Worker(te)});var j=G(H);if(typeof j.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new v(j),this.worker.postMessage({cmd:"register",algorithms:M}).then(function(Q){return E.initialized=!0}).catch(console.err)}return d(y,[{key:"layout",value:function(A){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},R=C.layoutOptions,O=R===void 0?this.defaultLayoutOptions:R,M=C.logging,L=M===void 0?!1:M,H=C.measureExecutionTime,G=H===void 0?!1:H;return A?this.worker.postMessage({cmd:"layout",graph:A,layoutOptions:O,options:{logging:L,measureExecutionTime:G}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker&&this.worker.terminate()}}]),y}();u.default=w;var v=function(){function y(E){var A=this;if(h(this,y),E===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=E,this.worker.onmessage=function(C){setTimeout(function(){A.receive(A,C)},0)}}return d(y,[{key:"postMessage",value:function(A){var C=this.id||0;this.id=C+1,A.id=C;var R=this;return new Promise(function(O,M){R.resolvers[C]=function(L,H){L?(R.convertGwtStyleError(L),M(L)):O(H)},R.worker.postMessage(A)})}},{key:"receive",value:function(A,C){var R=C.data,O=A.resolvers[R.id];O&&(delete A.resolvers[R.id],R.error?O(R.error):O(null,R.data))}},{key:"terminate",value:function(){this.worker&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(A){if(A){var C=A.__java$exception;C&&(C.cause&&C.cause.backingJsObject&&(A.cause=C.cause.backingJsObject,this.convertGwtStyleError(A.cause)),delete A.__java$exception)}}}]),y}()},{}],2:[function(o,l,u){(function(d){(function(){var h;typeof window<"u"?h=window:typeof d<"u"?h=d:typeof self<"u"&&(h=self);var w;function v(){}function y(){}function E(){}function A(){}function C(){}function R(){}function O(){}function M(){}function L(){}function H(){}function G(){}function j(){}function Q(){}function te(){}function pe(){}function De(){}function Re(){}function le(){}function xe(){}function be(){}function ae(){}function F(){}function me(){}function ye(){}function we(){}function Be(){}function He(){}function Ue(){}function Ge(){}function Le(){}function ft(){}function re(){}function Te(){}function dt(){}function at(){}function Qe(){}function yt(){}function Lt(){}function nn(){}function Pe(){}function Ne(){}function T(){}function $(){}function B(){}function K(){}function q(){}function ke(){}function Ee(){}function Ie(){}function _t(){}function he(){}function Xt(){}function Zt(){}function $n(){}function Gn(){}function $e(){}function ce(){}function de(){}function et(){}function pt(){}function Jt(){}function Qt(){}function qr(){}function ao(){}function ki(){}function Ri(){}function xi(){}function wl(){}function pu(){}function Al(){}function co(){}function Zc(){}function bu(){}function So(){}function ql(){}function S(){}function x(){}function Y(){}function J(){}function ue(){}function Yt(){}function An(){}function Ws(){}function Fr(){}function Hl(){}function Ec(){}function Rs(){}function ml(){}function gs(){}function as(){}function ws(){}function wi(){}function jr(){}function lr(){}function AO(){}function KJ(){}function XT(){}function TO(){}function JT(){}function Dj(){}function We(){}function gt(){}function Mn(){}function yr(){}function Wo(){}function el(){}function Pa(){}function Th(){}function j0(){}function qJ(){}function HVe(){}function UVe(){}function GVe(){}function VVe(){}function zVe(){}function R1e(){}function KVe(){}function qVe(){}function x1e(){}function XVe(){}function JVe(){}function YVe(){}function QVe(){}function ZVe(){}function eze(){}function tze(){}function nze(){}function rze(){}function ize(){}function oze(){}function sze(){}function lze(){}function XJ(){}function aze(){}function cze(){}function uze(){}function fze(){}function dze(){}function hze(){}function pze(){}function bze(){}function gze(){}function C1e(){}function A1e(){}function wze(){}function mze(){}function yze(){}function vze(){}function _ze(){}function Sze(){}function Eze(){}function kze(){}function Rze(){}function xze(){}function Cze(){}function Aze(){}function Tze(){}function $ze(){}function Ize(){}function Pze(){}function Oze(){}function Nze(){}function Mze(){}function Dze(){}function Lze(){}function jze(){}function Fze(){}function Bze(){}function Wze(){}function Hze(){}function Uze(){}function Gze(){}function Vze(){}function zze(){}function Kze(){}function qze(){}function Xze(){}function Jze(){}function Yze(){}function Qze(){}function Zze(){}function eKe(){}function tKe(){}function nKe(){}function rKe(){}function iKe(){}function oKe(){}function sKe(){}function lKe(){}function aKe(){}function cKe(){}function uKe(){}function fKe(){}function dKe(){}function hKe(){}function pKe(){}function bKe(){}function gKe(){}function wKe(){}function mKe(){}function yKe(){}function vKe(){}function _Ke(){}function SKe(){}function EKe(){}function kKe(){}function RKe(){}function xKe(){}function CKe(){}function AKe(){}function TKe(){}function $Ke(){}function IKe(){}function PKe(){}function OKe(){}function NKe(){}function MKe(){}function DKe(){}function LKe(){}function jKe(){}function FKe(){}function BKe(){}function WKe(){}function HKe(){}function UKe(){}function GKe(){}function VKe(){}function zKe(){}function KKe(){}function qKe(){}function XKe(){}function JKe(){}function YKe(){}function QKe(){}function ZKe(){}function eqe(){}function tqe(){}function nqe(){}function rqe(){}function iqe(){}function oqe(){}function sqe(){}function lqe(){}function aqe(){}function T1e(){}function cqe(){}function uqe(){}function fqe(){}function dqe(){}function hqe(){}function pqe(){}function bqe(){}function gqe(){}function wqe(){}function mqe(){}function yqe(){}function vqe(){}function _qe(){}function Sqe(){}function Eqe(){}function kqe(){}function Rqe(){}function xqe(){}function Cqe(){}function Aqe(){}function Tqe(){}function $qe(){}function Iqe(){}function Pqe(){}function Oqe(){}function Nqe(){}function Mqe(){}function Dqe(){}function Lqe(){}function jqe(){}function Fqe(){}function Bqe(){}function Wqe(){}function Hqe(){}function Uqe(){}function Gqe(){}function Vqe(){}function zqe(){}function Kqe(){}function qqe(){}function Xqe(){}function Jqe(){}function Yqe(){}function Qqe(){}function Zqe(){}function eXe(){}function tXe(){}function nXe(){}function rXe(){}function iXe(){}function oXe(){}function sXe(){}function lXe(){}function aXe(){}function cXe(){}function uXe(){}function fXe(){}function dXe(){}function hXe(){}function pXe(){}function bXe(){}function gXe(){}function wXe(){}function mXe(){}function yXe(){}function vXe(){}function _Xe(){}function SXe(){}function EXe(){}function kXe(){}function RXe(){}function xXe(){}function CXe(){}function $1e(){}function AXe(){}function TXe(){}function $Xe(){}function IXe(){}function PXe(){}function OXe(){}function NXe(){}function MXe(){}function DXe(){}function LXe(){}function I1e(){}function jXe(){}function FXe(){}function BXe(){}function WXe(){}function HXe(){}function UXe(){}function P1e(){}function O1e(){}function GXe(){}function N1e(){}function M1e(){}function VXe(){}function zXe(){}function KXe(){}function qXe(){}function XXe(){}function JXe(){}function YXe(){}function QXe(){}function ZXe(){}function eJe(){}function tJe(){}function D1e(){}function nJe(){}function rJe(){}function iJe(){}function oJe(){}function sJe(){}function lJe(){}function aJe(){}function cJe(){}function uJe(){}function fJe(){}function dJe(){}function hJe(){}function pJe(){}function bJe(){}function gJe(){}function wJe(){}function mJe(){}function yJe(){}function vJe(){}function _Je(){}function SJe(){}function EJe(){}function kJe(){}function RJe(){}function xJe(){}function CJe(){}function AJe(){}function TJe(){}function $Je(){}function IJe(){}function PJe(){}function OJe(){}function NJe(){}function MJe(){}function DJe(){}function LJe(){}function jJe(){}function FJe(){}function BJe(){}function WJe(){}function HJe(){}function UJe(){}function GJe(){}function VJe(){}function zJe(){}function KJe(){}function qJe(){}function XJe(){}function JJe(){}function YJe(){}function QJe(){}function ZJe(){}function eYe(){}function tYe(){}function nYe(){}function rYe(){}function iYe(){}function oYe(){}function sYe(){}function lYe(){}function aYe(){}function cYe(){}function uYe(){}function fYe(){}function dYe(){}function hYe(){}function pYe(){}function bYe(){}function gYe(){}function wYe(){}function mYe(){}function yYe(){}function vYe(){}function _Ye(){}function SYe(){}function EYe(){}function kYe(){}function RYe(){}function xYe(){}function CYe(){}function AYe(){}function TYe(){}function $Ye(){}function IYe(){}function PYe(){}function OYe(){}function Khn(){}function NYe(){}function MYe(){}function DYe(){}function LYe(){}function jYe(){}function FYe(){}function BYe(){}function WYe(){}function HYe(){}function UYe(){}function GYe(){}function VYe(){}function zYe(){}function KYe(){}function qYe(){}function XYe(){}function JYe(){}function YYe(){}function QYe(){}function ZYe(){}function eQe(){}function tQe(){}function nQe(){}function rQe(){}function iQe(){}function oQe(){}function sQe(){}function JJ(){}function YJ(){}function lQe(){}function QJ(){}function aQe(){}function cQe(){}function uQe(){}function fQe(){}function dQe(){}function hQe(){}function pQe(){}function bQe(){}function gQe(){}function wQe(){}function L1e(){}function mQe(){}function yQe(){}function vQe(){}function qhn(){}function _Qe(){}function SQe(){}function EQe(){}function kQe(){}function RQe(){}function xQe(){}function CQe(){}function F0(){}function AQe(){}function Ak(){}function j1e(){}function TQe(){}function $Qe(){}function IQe(){}function PQe(){}function OQe(){}function NQe(){}function MQe(){}function DQe(){}function LQe(){}function jQe(){}function FQe(){}function BQe(){}function WQe(){}function HQe(){}function UQe(){}function GQe(){}function VQe(){}function zQe(){}function KQe(){}function kt(){}function qQe(){}function XQe(){}function JQe(){}function YQe(){}function QQe(){}function ZQe(){}function eZe(){}function tZe(){}function nZe(){}function rZe(){}function iZe(){}function oZe(){}function sZe(){}function ZJ(){}function lZe(){}function aZe(){}function cZe(){}function Lj(){}function uZe(){}function eY(){}function jj(){}function fZe(){}function F1e(){}function dZe(){}function hZe(){}function pZe(){}function bZe(){}function gZe(){}function wZe(){}function Fj(){}function mZe(){}function yZe(){}function Bj(){}function vZe(){}function Wj(){}function _Ze(){}function B1e(){}function SZe(){}function tY(){}function W1e(){}function EZe(){}function kZe(){}function RZe(){}function xZe(){}function Xhn(){}function CZe(){}function AZe(){}function TZe(){}function $Ze(){}function IZe(){}function PZe(){}function OZe(){}function NZe(){}function MZe(){}function DZe(){}function Dx(){}function nY(){}function LZe(){}function jZe(){}function FZe(){}function BZe(){}function WZe(){}function HZe(){}function UZe(){}function GZe(){}function VZe(){}function zZe(){}function KZe(){}function qZe(){}function XZe(){}function JZe(){}function YZe(){}function QZe(){}function ZZe(){}function eet(){}function tet(){}function net(){}function ret(){}function iet(){}function oet(){}function set(){}function aet(){}function cet(){}function uet(){}function fet(){}function det(){}function het(){}function pet(){}function bet(){}function get(){}function wet(){}function met(){}function yet(){}function vet(){}function _et(){}function Eet(){}function ket(){}function Ret(){}function xet(){}function Cet(){}function Aet(){}function Tet(){}function $et(){}function Iet(){}function Pet(){}function Oet(){}function Net(){}function Met(){}function Det(){}function Let(){}function jet(){}function Fet(){}function Bet(){}function Wet(){}function Het(){}function Uet(){}function Get(){}function Vet(){}function zet(){}function Ket(){}function qet(){}function Xet(){}function Jet(){}function Yet(){}function Qet(){}function Zet(){}function ett(){}function ttt(){}function ntt(){}function rtt(){}function itt(){}function ott(){}function stt(){}function ltt(){}function att(){}function ctt(){}function utt(){}function ftt(){}function dtt(){}function htt(){}function ptt(){}function btt(){}function gtt(){}function wtt(){}function mtt(){}function ytt(){}function vtt(){}function _tt(){}function Stt(){}function Ett(){}function ktt(){}function Rtt(){}function xtt(){}function Ctt(){}function Att(){}function Ttt(){}function $tt(){}function Itt(){}function H1e(){}function Ptt(){}function Ott(){}function rY(){i$()}function Ntt(){GO()}function Mtt(){AH()}function Dtt(){cte()}function Ltt(){T6()}function jtt(){JEe()}function Ftt(){od()}function Btt(){sEe()}function Wtt(){$N()}function Htt(){VO()}function Utt(){y7()}function Gtt(){gct()}function Vtt(){b3()}function ztt(){G0t()}function Ktt(){oSe()}function qtt(){Pgt()}function Xtt(){sSe()}function Jtt(){_wt()}function Ytt(){Igt()}function Qtt(){zC()}function Ztt(){iyt()}function ent(){ryt()}function tnt(){C1t()}function nnt(){oyt()}function rnt(){W1()}function int(){bF()}function ont(){X3e()}function snt(){bt()}function lnt(){syt()}function ant(){Oyt()}function cnt(){Ogt()}function unt(){i2t()}function fnt(){Ngt()}function dnt(){mRt()}function hnt(){Cke()}function pnt(){mb()}function bnt(){y_t()}function gnt(){Il()}function wnt(){Ugt()}function mnt(){p3()}function ynt(){c3e()}function vnt(){H1()}function _nt(){u3e()}function Snt(){sh()}function Ent(){MN()}function knt(){Mne()}function Rnt(){Gte()}function Ed(){yht()}function xnt(){pW()}function Cnt(){NH()}function U1e(){Er()}function Ant(){JW()}function Tnt(){D2e()}function G1e(){Gee()}function V1e(){nU()}function $nt(){_3e()}function z1e(e){mn(e)}function Int(e){this.a=e}function Hj(e){this.a=e}function Pnt(e){this.a=e}function Ont(e){this.a=e}function Nnt(e){this.a=e}function Mnt(e){this.a=e}function Dnt(e){this.a=e}function Lnt(e){this.a=e}function K1e(e){this.a=e}function q1e(e){this.a=e}function jnt(e){this.a=e}function Fnt(e){this.a=e}function iY(e){this.a=e}function Bnt(e){this.a=e}function Wnt(e){this.a=e}function oY(e){this.a=e}function sY(e){this.a=e}function Hnt(e){this.a=e}function lY(e){this.a=e}function Unt(e){this.a=e}function Gnt(e){this.a=e}function Vnt(e){this.a=e}function X1e(e){this.b=e}function znt(e){this.c=e}function Knt(e){this.a=e}function qnt(e){this.a=e}function Xnt(e){this.a=e}function Jnt(e){this.a=e}function Ynt(e){this.a=e}function Qnt(e){this.a=e}function Znt(e){this.a=e}function ert(e){this.a=e}function trt(e){this.a=e}function nrt(e){this.a=e}function rrt(e){this.a=e}function irt(e){this.a=e}function ort(e){this.a=e}function J1e(e){this.a=e}function Y1e(e){this.a=e}function Uj(e){this.a=e}function $O(e){this.a=e}function B0(){this.a=[]}function srt(e,t){e.a=t}function Jhn(e,t){e.a=t}function Yhn(e,t){e.b=t}function Qhn(e,t){e.b=t}function Zhn(e,t){e.b=t}function Q1e(e,t){e.j=t}function epn(e,t){e.g=t}function tpn(e,t){e.i=t}function npn(e,t){e.c=t}function rpn(e,t){e.c=t}function ipn(e,t){e.d=t}function opn(e,t){e.d=t}function W0(e,t){e.k=t}function spn(e,t){e.c=t}function Z1e(e,t){e.c=t}function e0e(e,t){e.a=t}function lpn(e,t){e.a=t}function apn(e,t){e.f=t}function cpn(e,t){e.a=t}function upn(e,t){e.b=t}function aY(e,t){e.d=t}function Gj(e,t){e.i=t}function t0e(e,t){e.o=t}function fpn(e,t){e.r=t}function dpn(e,t){e.a=t}function hpn(e,t){e.b=t}function lrt(e,t){e.e=t}function ppn(e,t){e.f=t}function n0e(e,t){e.g=t}function bpn(e,t){e.e=t}function gpn(e,t){e.f=t}function wpn(e,t){e.f=t}function cY(e,t){e.a=t}function uY(e,t){e.b=t}function mpn(e,t){e.n=t}function ypn(e,t){e.a=t}function vpn(e,t){e.c=t}function _pn(e,t){e.c=t}function Spn(e,t){e.c=t}function Epn(e,t){e.a=t}function kpn(e,t){e.a=t}function Rpn(e,t){e.d=t}function xpn(e,t){e.d=t}function Cpn(e,t){e.e=t}function Apn(e,t){e.e=t}function Tpn(e,t){e.g=t}function $pn(e,t){e.f=t}function Ipn(e,t){e.j=t}function Ppn(e,t){e.a=t}function Opn(e,t){e.a=t}function Npn(e,t){e.b=t}function art(e){e.b=e.a}function crt(e){e.c=e.d.d}function r0e(e){this.a=e}function i0e(e){this.a=e}function o0e(e){this.a=e}function H0(e){this.a=e}function U0(e){this.a=e}function IO(e){this.a=e}function urt(e){this.a=e}function s0e(e){this.a=e}function PO(e){this.a=e}function Vj(e){this.a=e}function ob(e){this.a=e}function Rv(e){this.a=e}function frt(e){this.a=e}function drt(e){this.a=e}function fY(e){this.b=e}function Lx(e){this.b=e}function jx(e){this.b=e}function dY(e){this.a=e}function hrt(e){this.a=e}function hY(e){this.c=e}function ee(e){this.c=e}function prt(e){this.c=e}function YT(e){this.d=e}function l0e(e){this.a=e}function er(e){this.a=e}function brt(e){this.a=e}function a0e(e){this.a=e}function c0e(e){this.a=e}function u0e(e){this.a=e}function f0e(e){this.a=e}function d0e(e){this.a=e}function h0e(e){this.a=e}function Fx(e){this.a=e}function grt(e){this.a=e}function wrt(e){this.a=e}function Bx(e){this.a=e}function mrt(e){this.a=e}function yrt(e){this.a=e}function vrt(e){this.a=e}function _rt(e){this.a=e}function Srt(e){this.a=e}function Ert(e){this.a=e}function krt(e){this.a=e}function Rrt(e){this.a=e}function xrt(e){this.a=e}function Crt(e){this.a=e}function Art(e){this.a=e}function Trt(e){this.a=e}function $rt(e){this.a=e}function Irt(e){this.a=e}function Prt(e){this.a=e}function QT(e){this.a=e}function Ort(e){this.a=e}function Nrt(e){this.a=e}function Mrt(e){this.a=e}function Drt(e){this.a=e}function zj(e){this.a=e}function Lrt(e){this.a=e}function jrt(e){this.a=e}function Wx(e){this.a=e}function p0e(e){this.a=e}function Frt(e){this.a=e}function Brt(e){this.a=e}function Wrt(e){this.a=e}function Hrt(e){this.a=e}function Urt(e){this.a=e}function Grt(e){this.a=e}function b0e(e){this.a=e}function g0e(e){this.a=e}function w0e(e){this.a=e}function ZT(e){this.a=e}function Kj(e){this.e=e}function Hx(e){this.a=e}function Vrt(e){this.a=e}function Tk(e){this.a=e}function m0e(e){this.a=e}function zrt(e){this.a=e}function Krt(e){this.a=e}function qrt(e){this.a=e}function Xrt(e){this.a=e}function Jrt(e){this.a=e}function Yrt(e){this.a=e}function Qrt(e){this.a=e}function Zrt(e){this.a=e}function eit(e){this.a=e}function tit(e){this.a=e}function nit(e){this.a=e}function y0e(e){this.a=e}function rit(e){this.a=e}function iit(e){this.a=e}function oit(e){this.a=e}function sit(e){this.a=e}function lit(e){this.a=e}function ait(e){this.a=e}function cit(e){this.a=e}function uit(e){this.a=e}function fit(e){this.a=e}function dit(e){this.a=e}function hit(e){this.a=e}function pit(e){this.a=e}function bit(e){this.a=e}function git(e){this.a=e}function wit(e){this.a=e}function mit(e){this.a=e}function yit(e){this.a=e}function vit(e){this.a=e}function _it(e){this.a=e}function Sit(e){this.a=e}function Eit(e){this.a=e}function kit(e){this.a=e}function Rit(e){this.a=e}function xit(e){this.a=e}function Cit(e){this.a=e}function Ait(e){this.a=e}function Tit(e){this.a=e}function $it(e){this.a=e}function Iit(e){this.a=e}function Pit(e){this.a=e}function Oit(e){this.a=e}function Nit(e){this.a=e}function Mit(e){this.a=e}function Dit(e){this.a=e}function Lit(e){this.a=e}function jit(e){this.a=e}function Fit(e){this.a=e}function Bit(e){this.a=e}function Wit(e){this.c=e}function Hit(e){this.b=e}function Uit(e){this.a=e}function Git(e){this.a=e}function Vit(e){this.a=e}function zit(e){this.a=e}function Kit(e){this.a=e}function qit(e){this.a=e}function Xit(e){this.a=e}function Jit(e){this.a=e}function Yit(e){this.a=e}function Qit(e){this.a=e}function Zit(e){this.a=e}function eot(e){this.a=e}function tot(e){this.a=e}function not(e){this.a=e}function rot(e){this.a=e}function iot(e){this.a=e}function oot(e){this.a=e}function sot(e){this.a=e}function lot(e){this.a=e}function aot(e){this.a=e}function cot(e){this.a=e}function uot(e){this.a=e}function fot(e){this.a=e}function dot(e){this.a=e}function hot(e){this.a=e}function pot(e){this.a=e}function bot(e){this.a=e}function sb(e){this.a=e}function OS(e){this.a=e}function got(e){this.a=e}function wot(e){this.a=e}function mot(e){this.a=e}function yot(e){this.a=e}function vot(e){this.a=e}function _ot(e){this.a=e}function Sot(e){this.a=e}function Eot(e){this.a=e}function kot(e){this.a=e}function Rot(e){this.a=e}function xot(e){this.a=e}function Cot(e){this.a=e}function Aot(e){this.a=e}function Tot(e){this.a=e}function $ot(e){this.a=e}function Iot(e){this.a=e}function Pot(e){this.a=e}function Oot(e){this.a=e}function Not(e){this.a=e}function Mot(e){this.a=e}function Dot(e){this.a=e}function Lot(e){this.a=e}function jot(e){this.a=e}function Fot(e){this.a=e}function Bot(e){this.a=e}function Wot(e){this.a=e}function qj(e){this.a=e}function Hot(e){this.f=e}function Uot(e){this.a=e}function Got(e){this.a=e}function Vot(e){this.a=e}function zot(e){this.a=e}function Kot(e){this.a=e}function qot(e){this.a=e}function Xot(e){this.a=e}function Jot(e){this.a=e}function Yot(e){this.a=e}function Qot(e){this.a=e}function Zot(e){this.a=e}function est(e){this.a=e}function tst(e){this.a=e}function nst(e){this.a=e}function rst(e){this.a=e}function ist(e){this.a=e}function ost(e){this.a=e}function sst(e){this.a=e}function lst(e){this.a=e}function ast(e){this.a=e}function cst(e){this.a=e}function ust(e){this.a=e}function fst(e){this.a=e}function dst(e){this.a=e}function hst(e){this.a=e}function pst(e){this.a=e}function bst(e){this.a=e}function gst(e){this.a=e}function pY(e){this.a=e}function v0e(e){this.a=e}function Xr(e){this.b=e}function wst(e){this.a=e}function mst(e){this.a=e}function yst(e){this.a=e}function vst(e){this.a=e}function _st(e){this.a=e}function Sst(e){this.a=e}function Est(e){this.a=e}function kst(e){this.b=e}function Rst(e){this.a=e}function OO(e){this.a=e}function xst(e){this.a=e}function Cst(e){this.a=e}function _0e(e){this.c=e}function Xj(e){this.e=e}function Jj(e){this.a=e}function Yj(e){this.a=e}function bY(e){this.a=e}function Ast(e){this.d=e}function Tst(e){this.a=e}function S0e(e){this.a=e}function E0e(e){this.a=e}function um(e){this.e=e}function Mpn(){this.a=0}function Fn(){xc(this)}function st(){TQ(this)}function gY(){dbt(this)}function $st(){}function fm(){this.c=TOe}function Ist(e,t){e.b+=t}function Dpn(e,t){t.Wb(e)}function Lpn(e){return e.a}function jpn(e){return e.a}function Fpn(e){return e.a}function Bpn(e){return e.a}function Wpn(e){return e.a}function ne(e){return e.e}function Hpn(){return null}function Upn(){return null}function Gpn(){awe(),Ejn()}function Vpn(e){e.b.Of(e.e)}function Pst(e){e.b=new DY}function e$(e,t){e.b=t-e.b}function t$(e,t){e.a=t-e.a}function sn(e,t){e.push(t)}function Ost(e,t){e.sort(t)}function Nst(e,t){t.jd(e.a)}function zpn(e,t){so(t,e)}function Kpn(e,t,i){e.Yd(i,t)}function NO(e,t){e.e=t,t.b=e}function k0e(e){Dh(),this.a=e}function Mst(e){Dh(),this.a=e}function Dst(e){Dh(),this.a=e}function wY(e){Om(),this.a=e}function Lst(e){mC(),sse.le(e)}function R0e(){R0e=F,new Fn}function G0(){ndt.call(this)}function x0e(){ndt.call(this)}function C0e(){G0.call(this)}function mY(){G0.call(this)}function jst(){G0.call(this)}function MO(){G0.call(this)}function ac(){G0.call(this)}function $k(){G0.call(this)}function rr(){G0.call(this)}function Bu(){G0.call(this)}function Fst(){G0.call(this)}function yl(){G0.call(this)}function Bst(){G0.call(this)}function Wst(){this.a=this}function Qj(){this.Bb|=256}function Hst(){this.b=new Xut}function xv(e,t){e.length=t}function Zj(e,t){lt(e.a,t)}function qpn(e,t){QEe(e.c,t)}function Xpn(e,t){Zi(e.b,t)}function Jpn(e,t){SH(e.a,t)}function Ypn(e,t){wte(e.a,t)}function Ux(e,t){Dr(e.e,t)}function Ik(e){jH(e.c,e.b)}function Qpn(e,t){e.kc().Nb(t)}function A0e(e){this.a=GCn(e)}function Gi(){this.a=new Fn}function Ust(){this.a=new Fn}function T0e(){this.a=new act}function eF(){this.a=new st}function yY(){this.a=new st}function $0e(){this.a=new st}function gf(){this.a=new Al}function V0(){this.a=new j0t}function I0e(){this.a=new R1e}function P0e(){this.a=new $gt}function O0e(){this.a=new Hdt}function Gst(){this.a=new st}function Vst(){this.a=new st}function zst(){this.a=new st}function N0e(){this.a=new st}function Kst(){this.d=new st}function qst(){this.a=new Jgt}function Xst(){this.a=new Gi}function Jst(){this.a=new Fn}function Yst(){this.b=new Fn}function Qst(){this.b=new st}function M0e(){this.e=new st}function Zst(){this.a=new rnt}function elt(){this.d=new st}function tlt(){tgt.call(this)}function nlt(){tgt.call(this)}function rlt(){st.call(this)}function D0e(){C0e.call(this)}function L0e(){eF.call(this)}function ilt(){oB.call(this)}function olt(){N0e.call(this)}function n$(){$st.call(this)}function vY(){n$.call(this)}function Pk(){$st.call(this)}function j0e(){Pk.call(this)}function slt(){H0e.call(this)}function llt(){H0e.call(this)}function alt(){H0e.call(this)}function clt(){U0e.call(this)}function r$(){uZe.call(this)}function F0e(){uZe.call(this)}function cc(){li.call(this)}function ult(){Rlt.call(this)}function flt(){Rlt.call(this)}function dlt(){Fn.call(this)}function hlt(){Fn.call(this)}function plt(){Fn.call(this)}function _Y(){cyt.call(this)}function blt(){Gi.call(this)}function glt(){Qj.call(this)}function SY(){Sme.call(this)}function B0e(){Fn.call(this)}function EY(){Sme.call(this)}function kY(){Fn.call(this)}function wlt(){Fn.call(this)}function W0e(){Wj.call(this)}function mlt(){W0e.call(this)}function ylt(){Wj.call(this)}function vlt(){H1e.call(this)}function H0e(){this.a=new Gi}function _lt(){this.a=new Fn}function Slt(){this.a=new st}function U0e(){this.a=new Fn}function Ok(){this.a=new li}function Elt(){this.j=new st}function klt(){this.a=new Sat}function Rlt(){this.a=new vZe}function G0e(){this.a=new tQe}function i$(){i$=F,Qoe=new y}function RY(){RY=F,Zoe=new Clt}function xY(){xY=F,ese=new xlt}function xlt(){oY.call(this,"")}function Clt(){oY.call(this,"")}function Alt(e){Pmt.call(this,e)}function Tlt(e){Pmt.call(this,e)}function V0e(e){K1e.call(this,e)}function z0e(e){Yat.call(this,e)}function Zpn(e){Yat.call(this,e)}function ebn(e){z0e.call(this,e)}function tbn(e){z0e.call(this,e)}function nbn(e){z0e.call(this,e)}function $lt(e){iee.call(this,e)}function Ilt(e){iee.call(this,e)}function Plt(e){uht.call(this,e)}function Olt(e){bwe.call(this,e)}function o$(e){fF.call(this,e)}function K0e(e){fF.call(this,e)}function Nlt(e){fF.call(this,e)}function q0e(e){kIn.call(this,e)}function X0e(e){q0e.call(this,e)}function vl(e){Ipt.call(this,e)}function Mlt(e){vl.call(this,e)}function Nk(){$O.call(this,{})}function Dlt(){Dlt=F,w6t=new be}function tF(){tF=F,rse=new Pft}function Llt(){Llt=F,VAe=new v}function J0e(){J0e=F,zAe=new te}function nF(){nF=F,OI=new Re}function CY(e){tC(),this.a=e}function AY(e){ESe(),this.a=e}function dm(e){dZ(),this.f=e}function TY(e){dZ(),this.f=e}function jlt(e){mht(),this.a=e}function Flt(e){e.b=null,e.c=0}function rbn(e,t){e.e=t,m3t(e,t)}function ibn(e,t){e.a=t,f5n(e)}function $Y(e,t,i){e.a[t.g]=i}function obn(e,t,i){x$n(i,e,t)}function sbn(e,t){twn(t.i,e.n)}function Blt(e,t){Rxn(e).Cd(t)}function lbn(e,t){e.a.ec().Mc(t)}function Wlt(e,t){return e.g-t.g}function abn(e,t){return e*e/t}function mt(e){return mn(e),e}function Ae(e){return mn(e),e}function DO(e){return mn(e),e}function cbn(e){return new Uj(e)}function ubn(e){return new Bv(e)}function Y0e(e){return mn(e),e}function fbn(e){return mn(e),e}function rF(e){vl.call(this,e)}function Hs(e){vl.call(this,e)}function Hlt(e){vl.call(this,e)}function IY(e){Ipt.call(this,e)}function Gx(e){vl.call(this,e)}function hn(e){vl.call(this,e)}function Us(e){vl.call(this,e)}function Ult(e){vl.call(this,e)}function Mk(e){vl.call(this,e)}function ng(e){vl.call(this,e)}function rg(e){vl.call(this,e)}function Dk(e){vl.call(this,e)}function $h(e){vl.call(this,e)}function PY(e){vl.call(this,e)}function ar(e){vl.call(this,e)}function kc(e){mn(e),this.a=e}function Q0e(e){return fw(e),e}function s$(e){uve(e,e.length)}function l$(e){return e.b==e.c}function Cv(e){return!!e&&e.b}function dbn(e){return!!e&&e.k}function hbn(e){return!!e&&e.j}function pbn(e,t,i){e.c.Ef(t,i)}function Glt(e,t){e.be(t),t.ae(e)}function Lk(e){Dh(),this.a=nr(e)}function OY(){this.a=or(nr(ds))}function Vlt(){throw ne(new rr)}function bbn(){throw ne(new rr)}function Z0e(){throw ne(new rr)}function zlt(){throw ne(new rr)}function gbn(){throw ne(new rr)}function wbn(){throw ne(new rr)}function iF(){iF=F,mC()}function ig(){IO.call(this,"")}function a$(){IO.call(this,"")}function m1(){IO.call(this,"")}function jk(){IO.call(this,"")}function ewe(e){Hs.call(this,e)}function twe(e){Hs.call(this,e)}function Ih(e){hn.call(this,e)}function Vx(e){jx.call(this,e)}function Klt(e){Vx.call(this,e)}function NY(e){eB.call(this,e)}function MY(e){Nme.call(this,e,0)}function DY(){zve.call(this,12,3)}function ie(e,t){return kgt(e,t)}function oF(e,t){return yee(e,t)}function mbn(e,t){return e.a-t.a}function ybn(e,t){return e.a-t.a}function vbn(e,t){return e.a-t.a}function _bn(e,t){return t in e.a}function qlt(e){return e.a?e.b:0}function Sbn(e){return e.a?e.b:0}function Ebn(e,t,i){t.Cd(e.a[i])}function kbn(e,t,i){t.Pe(e.a[i])}function Rbn(e,t){e.b=new us(t)}function xbn(e,t){return e.b=t,e}function Xlt(e,t){return e.c=t,e}function Jlt(e,t){return e.f=t,e}function Cbn(e,t){return e.g=t,e}function nwe(e,t){return e.a=t,e}function rwe(e,t){return e.f=t,e}function Abn(e,t){return e.k=t,e}function iwe(e,t){return e.a=t,e}function Tbn(e,t){return e.e=t,e}function owe(e,t){return e.e=t,e}function $bn(e,t){return e.f=t,e}function Ibn(e,t){e.b=!0,e.d=t}function Pbn(e,t){return e.b-t.b}function Obn(e,t){return e.g-t.g}function Nbn(e,t){return e?0:t-1}function Ylt(e,t){return e?0:t-1}function Mbn(e,t){return e?t-1:0}function Dbn(e,t){return e.s-t.s}function Lbn(e,t){return t.rg(e)}function hm(e,t){return e.b=t,e}function sF(e,t){return e.a=t,e}function pm(e,t){return e.c=t,e}function bm(e,t){return e.d=t,e}function gm(e,t){return e.e=t,e}function swe(e,t){return e.f=t,e}function c$(e,t){return e.a=t,e}function zx(e,t){return e.b=t,e}function Kx(e,t){return e.c=t,e}function xt(e,t){return e.c=t,e}function Ut(e,t){return e.b=t,e}function Ct(e,t){return e.d=t,e}function At(e,t){return e.e=t,e}function jbn(e,t){return e.f=t,e}function Tt(e,t){return e.g=t,e}function $t(e,t){return e.a=t,e}function It(e,t){return e.i=t,e}function Pt(e,t){return e.j=t,e}function Fbn(e,t){W1(),Sl(t,e)}function Bbn(e,t,i){nvn(e.a,t,i)}function lF(e){KQ.call(this,e)}function Qlt(e){oAn.call(this,e)}function Zlt(e){Pbt.call(this,e)}function lwe(e){Pbt.call(this,e)}function y1(e){Um.call(this,e)}function eat(e){DZ.call(this,e)}function tat(e){DZ.call(this,e)}function nat(){gme.call(this,"")}function Io(){this.a=0,this.b=0}function rat(){this.b=0,this.a=0}function iat(e,t){e.b=0,Jv(e,t)}function oat(e,t){return e.k=t,e}function Wbn(e,t){return e.j=t,e}function Hbn(e,t){e.c=t,e.b=!0}function sat(){sat=F,$6t=Z$n()}function v1(){v1=F,EDt=u$n()}function lat(){lat=F,_o=S6n()}function awe(){awe=F,h0=OC()}function qx(){qx=F,AOe=f$n()}function aat(){aat=F,lLt=d$n()}function cwe(){cwe=F,zl=a5n()}function kd(e){return e.e&&e.e()}function cat(e){return e.l|e.m<<22}function uat(e,t){return e.c._b(t)}function fat(e,t){return a_t(e.b,t)}function LY(e){return e?e.d:null}function Ubn(e){return e?e.g:null}function Gbn(e){return e?e.i:null}function z0(e){return cb(e),e.o}function NS(e,t){return e.a+=t,e}function jY(e,t){return e.a+=t,e}function og(e,t){return e.a+=t,e}function wm(e,t){return e.a+=t,e}function uwe(e,t){for(;e.Bd(t););}function aF(e){this.a=new Fk(e)}function dat(){throw ne(new rr)}function hat(){throw ne(new rr)}function pat(){throw ne(new rr)}function bat(){throw ne(new rr)}function gat(){throw ne(new rr)}function wat(){throw ne(new rr)}function sg(e){this.a=new bZ(e)}function mat(){this.a=new G6(E5e)}function yat(){this.b=new G6(HIe)}function vat(){this.a=new G6(K5e)}function _at(){this.b=new G6(Xae)}function Sat(){this.b=new G6(Xae)}function cF(e){this.a=0,this.b=e}function fwe(e){Jxt(),Djn(this,e)}function Xx(e){return A1(e),e.a}function LO(e){return e.b!=e.d.c}function dwe(e,t){return e.d[t.p]}function Eat(e,t){return ZOn(e,t)}function hwe(e,t,i){e.splice(t,i)}function MS(e,t){for(;e.Re(t););}function kat(e){e.c?D3t(e):L3t(e)}function Rat(){throw ne(new rr)}function xat(){throw ne(new rr)}function Cat(){throw ne(new rr)}function Aat(){throw ne(new rr)}function Tat(){throw ne(new rr)}function $at(){throw ne(new rr)}function Iat(){throw ne(new rr)}function Pat(){throw ne(new rr)}function Oat(){throw ne(new rr)}function Nat(){throw ne(new rr)}function Vbn(){throw ne(new yl)}function zbn(){throw ne(new yl)}function jO(e){this.a=new Mat(e)}function Mat(e){J3n(this,e,AIn())}function FO(e){return!e||fbt(e)}function BO(e){return _h[e]!=-1}function Kbn(){_G!=0&&(_G=0),SG=-1}function Dat(){Yoe==null&&(Yoe=[])}function WO(e,t){XS.call(this,e,t)}function Jx(e,t){WO.call(this,e,t)}function Lat(e,t){this.a=e,this.b=t}function jat(e,t){this.a=e,this.b=t}function Fat(e,t){this.a=e,this.b=t}function Bat(e,t){this.a=e,this.b=t}function Wat(e,t){this.a=e,this.b=t}function Hat(e,t){this.a=e,this.b=t}function Uat(e,t){this.a=e,this.b=t}function Yx(e,t){this.e=e,this.d=t}function pwe(e,t){this.b=e,this.c=t}function Gat(e,t){this.b=e,this.a=t}function Vat(e,t){this.b=e,this.a=t}function zat(e,t){this.b=e,this.a=t}function Kat(e,t){this.b=e,this.a=t}function qat(e,t){this.a=e,this.b=t}function FY(e,t){this.a=e,this.b=t}function Xat(e,t){this.a=e,this.f=t}function mm(e,t){this.g=e,this.i=t}function Jn(e,t){this.f=e,this.g=t}function Jat(e,t){this.b=e,this.c=t}function Yat(e){kme(e.dc()),this.c=e}function qbn(e,t){this.a=e,this.b=t}function Qat(e,t){this.a=e,this.b=t}function Zat(e){this.a=f(nr(e),15)}function bwe(e){this.a=f(nr(e),15)}function ect(e){this.a=f(nr(e),85)}function uF(e){this.b=f(nr(e),85)}function fF(e){this.b=f(nr(e),51)}function dF(){this.q=new h.Date}function BY(e,t){this.a=e,this.b=t}function tct(e,t){return Na(e.b,t)}function HO(e,t){return e.b.Hc(t)}function nct(e,t){return e.b.Ic(t)}function rct(e,t){return e.b.Qc(t)}function ict(e,t){return e.b.Hc(t)}function oct(e,t){return e.c.uc(t)}function sct(e,t){return Lr(e.c,t)}function Rd(e,t){return e.a._b(t)}function lct(e,t){return e>t&&t0}function zY(e,t){return Jl(e,t)<0}function Ect(e,t){return aZ(e.a,t)}function hgn(e,t){Rgt.call(this,e,t)}function Swe(e){CZ(),uht.call(this,e)}function Ewe(e,t){mpt(e,e.length,t)}function zO(e,t){zpt(e,e.length,t)}function w$(e,t){return e.a.get(t)}function kct(e,t){return Na(e.e,t)}function kwe(e){return mn(e),!1}function Rwe(e){this.a=f(nr(e),229)}function _F(e){Vt.call(this,e,21)}function SF(e,t){Jn.call(this,e,t)}function KY(e,t){Jn.call(this,e,t)}function Rct(e,t){this.b=e,this.a=t}function EF(e,t){this.d=e,this.e=t}function xct(e,t){this.a=e,this.b=t}function Cct(e,t){this.a=e,this.b=t}function Act(e,t){this.a=e,this.b=t}function Tct(e,t){this.a=e,this.b=t}function Wk(e,t){this.a=e,this.b=t}function $ct(e,t){this.b=e,this.a=t}function xwe(e,t){this.b=e,this.a=t}function Cwe(e,t){Jn.call(this,e,t)}function Awe(e,t){Jn.call(this,e,t)}function DS(e,t){Jn.call(this,e,t)}function qY(e,t){Jn.call(this,e,t)}function XY(e,t){Jn.call(this,e,t)}function JY(e,t){Jn.call(this,e,t)}function kF(e,t){Jn.call(this,e,t)}function Twe(e,t){this.b=e,this.a=t}function RF(e,t){Jn.call(this,e,t)}function $we(e,t){this.b=e,this.a=t}function xF(e,t){Jn.call(this,e,t)}function Ict(e,t){this.b=e,this.a=t}function Iwe(e,t){Jn.call(this,e,t)}function YY(e,t){Jn.call(this,e,t)}function KO(e,t){Jn.call(this,e,t)}function m$(e,t,i){e.splice(t,0,i)}function pgn(e,t,i){e.Mb(i)&&t.Cd(i)}function bgn(e,t,i){t.Pe(e.a.Ye(i))}function ggn(e,t,i){t.Dd(e.a.Ze(i))}function wgn(e,t,i){t.Cd(e.a.Kb(i))}function mgn(e,t){return fc(e.c,t)}function ygn(e,t){return fc(e.e,t)}function CF(e,t){Jn.call(this,e,t)}function AF(e,t){Jn.call(this,e,t)}function y$(e,t){Jn.call(this,e,t)}function Pwe(e,t){Jn.call(this,e,t)}function Vi(e,t){Jn.call(this,e,t)}function TF(e,t){Jn.call(this,e,t)}function Pct(e,t){this.a=e,this.b=t}function Oct(e,t){this.a=e,this.b=t}function Nct(e,t){this.a=e,this.b=t}function Mct(e,t){this.a=e,this.b=t}function Dct(e,t){this.a=e,this.b=t}function Lct(e,t){this.a=e,this.b=t}function jct(e,t){this.b=e,this.a=t}function Fct(e,t){this.b=e,this.a=t}function Owe(e,t){this.b=e,this.a=t}function eC(e,t){this.c=e,this.d=t}function Bct(e,t){this.e=e,this.d=t}function Wct(e,t){this.a=e,this.b=t}function Hct(e,t){this.a=e,this.b=t}function Uct(e,t){this.a=e,this.b=t}function Gct(e,t){this.b=e,this.a=t}function Vct(e,t){this.b=t,this.c=e}function $F(e,t){Jn.call(this,e,t)}function qO(e,t){Jn.call(this,e,t)}function QY(e,t){Jn.call(this,e,t)}function Nwe(e,t){Jn.call(this,e,t)}function v$(e,t){Jn.call(this,e,t)}function ZY(e,t){Jn.call(this,e,t)}function eQ(e,t){Jn.call(this,e,t)}function XO(e,t){Jn.call(this,e,t)}function Mwe(e,t){Jn.call(this,e,t)}function tQ(e,t){Jn.call(this,e,t)}function _$(e,t){Jn.call(this,e,t)}function Dwe(e,t){Jn.call(this,e,t)}function S$(e,t){Jn.call(this,e,t)}function E$(e,t){Jn.call(this,e,t)}function Tv(e,t){Jn.call(this,e,t)}function nQ(e,t){Jn.call(this,e,t)}function rQ(e,t){Jn.call(this,e,t)}function Lwe(e,t){Jn.call(this,e,t)}function JO(e,t){Jn.call(this,e,t)}function LS(e,t){Jn.call(this,e,t)}function iQ(e,t){Jn.call(this,e,t)}function IF(e,t){Jn.call(this,e,t)}function YO(e,t){Jn.call(this,e,t)}function $v(e,t){Jn.call(this,e,t)}function PF(e,t){Jn.call(this,e,t)}function jwe(e,t){Jn.call(this,e,t)}function oQ(e,t){Jn.call(this,e,t)}function sQ(e,t){Jn.call(this,e,t)}function lQ(e,t){Jn.call(this,e,t)}function aQ(e,t){Jn.call(this,e,t)}function cQ(e,t){Jn.call(this,e,t)}function uQ(e,t){Jn.call(this,e,t)}function fQ(e,t){Jn.call(this,e,t)}function zct(e,t){this.b=e,this.a=t}function Fwe(e,t){Jn.call(this,e,t)}function Kct(e,t){this.a=e,this.b=t}function qct(e,t){this.a=e,this.b=t}function Xct(e,t){this.a=e,this.b=t}function Bwe(e,t){Jn.call(this,e,t)}function Wwe(e,t){Jn.call(this,e,t)}function Jct(e,t){this.a=e,this.b=t}function vgn(e,t){return lC(),t!=e}function QO(e){return In(e.a),e.b}function dQ(e){return C8n(e,e.c),e}function Yct(){return sat(),new $6t}function Qct(){uB(),this.a=new iye}function Zct(){KH(),this.a=new Gi}function eut(){zZ(),this.b=new Gi}function tut(e,t){this.b=e,this.d=t}function nut(e,t){this.a=e,this.b=t}function rut(e,t){this.a=e,this.b=t}function iut(e,t){this.a=e,this.b=t}function out(e,t){this.b=e,this.a=t}function Hwe(e,t){Jn.call(this,e,t)}function Uwe(e,t){Jn.call(this,e,t)}function OF(e,t){Jn.call(this,e,t)}function _m(e,t){Jn.call(this,e,t)}function hQ(e,t){Jn.call(this,e,t)}function NF(e,t){Jn.call(this,e,t)}function Gwe(e,t){Jn.call(this,e,t)}function Vwe(e,t){Jn.call(this,e,t)}function ZO(e,t){Jn.call(this,e,t)}function zwe(e,t){Jn.call(this,e,t)}function pQ(e,t){Jn.call(this,e,t)}function MF(e,t){Jn.call(this,e,t)}function bQ(e,t){Jn.call(this,e,t)}function gQ(e,t){Jn.call(this,e,t)}function wQ(e,t){Jn.call(this,e,t)}function mQ(e,t){Jn.call(this,e,t)}function Kwe(e,t){Jn.call(this,e,t)}function yQ(e,t){Jn.call(this,e,t)}function qwe(e,t){Jn.call(this,e,t)}function e7(e,t){Jn.call(this,e,t)}function vQ(e,t){Jn.call(this,e,t)}function Xwe(e,t){Jn.call(this,e,t)}function t7(e,t){Jn.call(this,e,t)}function Jwe(e,t){Jn.call(this,e,t)}function sut(e,t){this.b=e,this.a=t}function lut(e,t){this.b=e,this.a=t}function aut(e,t){this.b=e,this.a=t}function cut(e,t){this.b=e,this.a=t}function Ywe(e,t){this.a=e,this.b=t}function uut(e,t){this.a=e,this.b=t}function fut(e,t){this.a=e,this.b=t}function tt(e,t){this.a=e,this.b=t}function k$(e,t){Jn.call(this,e,t)}function n7(e,t){Jn.call(this,e,t)}function Hk(e,t){Jn.call(this,e,t)}function R$(e,t){Jn.call(this,e,t)}function r7(e,t){Jn.call(this,e,t)}function _Q(e,t){Jn.call(this,e,t)}function DF(e,t){Jn.call(this,e,t)}function x$(e,t){Jn.call(this,e,t)}function SQ(e,t){Jn.call(this,e,t)}function LF(e,t){Jn.call(this,e,t)}function jS(e,t){Jn.call(this,e,t)}function i7(e,t){Jn.call(this,e,t)}function C$(e,t){Jn.call(this,e,t)}function A$(e,t){Jn.call(this,e,t)}function o7(e,t){Jn.call(this,e,t)}function jF(e,t){Jn.call(this,e,t)}function FS(e,t){Jn.call(this,e,t)}function EQ(e,t){Jn.call(this,e,t)}function dut(e,t){Jn.call(this,e,t)}function FF(e,t){Jn.call(this,e,t)}function hut(e,t){this.a=e,this.b=t}function put(e,t){this.a=e,this.b=t}function but(e,t){this.a=e,this.b=t}function gut(e,t){this.a=e,this.b=t}function wut(e,t){this.a=e,this.b=t}function mut(e,t){this.a=e,this.b=t}function io(e,t){this.a=e,this.b=t}function yut(e,t){this.a=e,this.b=t}function vut(e,t){this.a=e,this.b=t}function _ut(e,t){this.a=e,this.b=t}function Sut(e,t){this.a=e,this.b=t}function Eut(e,t){this.a=e,this.b=t}function kut(e,t){this.a=e,this.b=t}function Rut(e,t){this.b=e,this.a=t}function xut(e,t){this.b=e,this.a=t}function Cut(e,t){this.b=e,this.a=t}function Aut(e,t){this.b=e,this.a=t}function Tut(e,t){this.a=e,this.b=t}function $ut(e,t){this.a=e,this.b=t}function BF(e,t){Jn.call(this,e,t)}function Iut(e,t){this.a=e,this.b=t}function Put(e,t){this.a=e,this.b=t}function Uk(e,t){Jn.call(this,e,t)}function Out(e,t){this.f=e,this.c=t}function Qwe(e,t){return fc(e.g,t)}function _gn(e,t){return fc(t.b,e)}function Nut(e,t){return Cte(e.a,t)}function Sgn(e,t){return-e.b.af(t)}function Egn(e,t){e&&xr(q9,e,t)}function Zwe(e,t){e.i=null,DW(e,t)}function kgn(e,t,i){R2t(t,yne(e,i))}function Rgn(e,t,i){R2t(t,yne(e,i))}function xgn(e,t){eOn(e.a,f(t,58))}function Mut(e,t){Jkn(e.a,f(t,12))}function WF(e,t){this.a=e,this.b=t}function Dut(e,t){this.a=e,this.b=t}function Lut(e,t){this.a=e,this.b=t}function jut(e,t){this.a=e,this.b=t}function Fut(e,t){this.a=e,this.b=t}function But(e,t){this.d=e,this.b=t}function Wut(e,t){this.e=e,this.a=t}function s7(e,t){this.b=e,this.c=t}function eme(e,t){this.i=e,this.g=t}function tme(e,t){this.d=e,this.e=t}function Cgn(e,t){f3n(new Sn(e),t)}function HF(e){return EN(e.c,e.b)}function tl(e){return e?e.md():null}function Oe(e){return e??null}function Eo(e){return typeof e===dre}function Iv(e){return typeof e===$3}function Pv(e){return typeof e===Y3e}function Sm(e,t){return Jl(e,t)==0}function UF(e,t){return Jl(e,t)>=0}function T$(e,t){return Jl(e,t)!=0}function GF(e,t){return ARn(e.Kc(),t)}function E1(e,t){return e.Rd().Xb(t)}function Hut(e){return Hc(e),e.d.gc()}function VF(e){return W$(e==null),e}function $$(e,t){return e.a+=""+t,e}function Ms(e,t){return e.a+=""+t,e}function I$(e,t){return e.a+=""+t,e}function aa(e,t){return e.a+=""+t,e}function br(e,t){return e.a+=""+t,e}function nme(e,t){return e.a+=""+t,e}function Agn(e){return""+(mn(e),e)}function Uut(e){xc(this),h6(this,e)}function Gut(){Vve(),Yye.call(this)}function Vut(e,t){nve.call(this,e,t)}function zut(e,t){nve.call(this,e,t)}function zF(e,t){nve.call(this,e,t)}function cs(e,t){Ai(e,t,e.c.b,e.c)}function BS(e,t){Ai(e,t,e.a,e.a.a)}function rme(e){return qt(e,0),null}function Kut(){this.b=0,this.a=!1}function qut(){this.b=0,this.a=!1}function Xut(){this.b=new Fk(qv(12))}function Jut(){Jut=F,kIt=Qn(Nte())}function Yut(){Yut=F,z5t=Qn(l3t())}function Qut(){Qut=F,bNt=Qn(Byt())}function ime(){ime=F,R0e(),KAe=new Fn}function xd(e){return e.a=0,e.b=0,e}function Zut(e,t){return e.a=t.g+1,e}function kQ(e,t){Lv.call(this,e,t)}function Bt(e,t){_i.call(this,e,t)}function WS(e,t){eme.call(this,e,t)}function eft(e,t){u7.call(this,e,t)}function RQ(e,t){FC.call(this,e,t)}function kr(e,t){yF(),xr(Lz,e,t)}function tft(e,t){e.q.setTime(rw(t))}function Tgn(e){h.clearTimeout(e)}function $gn(e){return nr(e),new P$(e)}function nft(e,t){return Oe(e)===Oe(t)}function rft(e,t){return e.a.a.a.cc(t)}function xQ(e,t){return Vu(e.a,0,t)}function ome(e){return Ovn(f(e,74))}function Gk(e){return oo((mn(e),e))}function Ign(e){return oo((mn(e),e))}function ift(e){return Oa(e.l,e.m,e.h)}function sme(e,t){return Xl(e.a,t.a)}function Pgn(e,t){return Gpt(e.a,t.a)}function Ogn(e,t){return Qr(e.a,t.a)}function Ph(e,t){return e.indexOf(t)}function Ngn(e,t){return e.j[t.p]==2}function Em(e,t){return e==t?0:e?1:-1}function KF(e){return e<10?"0"+e:""+e}function ul(e){return typeof e===Y3e}function Mgn(e){return e==yy||e==C_}function Dgn(e){return e==yy||e==x_}function oft(e,t){return Xl(e.g,t.g)}function lme(e){return il(e.b.b,e,0)}function sft(){vB.call(this,0,0,0,0)}function Oh(){a0e.call(this,new hg)}function ame(e,t){kC(e,0,e.length,t)}function Lgn(e,t){return lt(e.a,t),t}function jgn(e,t){return Qf(),t.a+=e}function Fgn(e,t){return Qf(),t.a+=e}function Bgn(e,t){return Qf(),t.c+=e}function Wgn(e,t){return lt(e.c,t),e}function cme(e,t){return Eu(e.a,t),e}function lft(e){this.a=Yct(),this.b=e}function aft(e){this.a=Yct(),this.b=e}function us(e){this.a=e.a,this.b=e.b}function P$(e){this.a=e,rY.call(this)}function cft(e){this.a=e,rY.call(this)}function Vk(){Gu.call(this,0,0,0,0)}function qF(e){return Eu(new Ki,e)}function uft(e){return jB(f(e,123))}function eu(e){return e.vh()&&e.wh()}function HS(e){return e!=mh&&e!=u0}function ab(e){return e==Js||e==al}function US(e){return e==cf||e==gh}function fft(e){return e==Z2||e==Q2}function Hgn(e,t){return Xl(e.g,t.g)}function dft(e,t){return new FC(t,e)}function Ugn(e,t){return new FC(t,e)}function ume(e){return uyn(e.b.Kc(),e.a)}function CQ(e,t){KC(e,t),PC(e,e.D)}function AQ(e,t,i){AW(e,t),CW(e,i)}function GS(e,t,i){Vm(e,t),Gm(e,i)}function Wu(e,t,i){Da(e,t),La(e,i)}function l7(e,t,i){AC(e,t),$C(e,i)}function a7(e,t,i){TC(e,t),IC(e,i)}function hft(e,t,i){zme.call(this,e,t,i)}function fme(e){Out.call(this,e,!0)}function pft(){SF.call(this,"Tail",3)}function bft(){SF.call(this,"Head",1)}function k1(e){Uh(),kRn.call(this,e)}function km(e){vB.call(this,e,e,e,e)}function TQ(e){e.c=Fe(ho,on,1,0,5,1)}function dme(e){return e.b&&qne(e),e.a}function hme(e){return e.b&&qne(e),e.c}function Ggn(e,t){fh||(e.b=t)}function Vgn(e,t){return e[e.length]=t}function zgn(e,t){return e[e.length]=t}function Kgn(e,t){return Xv(t,Xd(e))}function qgn(e,t){return Xv(t,Xd(e))}function Xgn(e,t){return OW(RZ(e.d),t)}function Jgn(e,t){return OW(RZ(e.g),t)}function Ygn(e,t){return OW(RZ(e.j),t)}function Po(e,t){_i.call(this,e.b,t)}function Qgn(e,t){zn(ra(e.a),Dgt(t))}function Zgn(e,t){zn(Wc(e.a),Lgt(t))}function e1n(e,t,i){Wu(i,i.i+e,i.j+t)}function gft(e,t,i){Ci(e.c[t.g],t.g,i)}function t1n(e,t,i){f(e.c,71).Gi(t,i)}function $Q(e,t,i){return Ci(e,t,i),i}function wft(e){Ma(e.Sf(),new Drt(e))}function VS(e){return e!=null?ti(e):0}function n1n(e){return e==null?0:ti(e)}function O$(e){Or(),um.call(this,e)}function mft(e){this.a=e,Cye.call(this,e)}function Kd(){Kd=F,h.Math.log(2)}function Hu(){Hu=F,Bp=(_ct(),TDt)}function yft(){yft=F,uae=new x6(kce)}function ir(){ir=F,new vft,new st}function vft(){new Fn,new Fn,new Fn}function r1n(){throw ne(new ng(t6t))}function i1n(){throw ne(new ng(t6t))}function o1n(){throw ne(new ng(n6t))}function s1n(){throw ne(new ng(n6t))}function IQ(e){this.a=e,uF.call(this,e)}function PQ(e){this.a=e,uF.call(this,e)}function _ft(e,t){Om(),this.a=e,this.b=t}function l1n(e,t){nr(t),YS(e).Jc(new H)}function Hi(e,t){cZ(e.c,e.c.length,t)}function _l(e){return e.at?1:0}function bme(e,t){return Jl(e,t)>0?e:t}function Oa(e,t,i){return{l:e,m:t,h:i}}function a1n(e,t){e.a!=null&&Mut(t,e.a)}function c1n(e){rs(e,null),xo(e,null)}function u1n(e,t,i){return xr(e.g,i,t)}function zS(e,t,i){return j2e(t,i,e.c)}function f1n(e,t,i){return xr(e.k,i,t)}function d1n(e,t,i){return YDn(e,t,i),i}function h1n(e,t){return mu(),t.n.b+=e}function Eft(e){jve.call(this),this.b=e}function gme(e){rye.call(this),this.a=e}function kft(){SF.call(this,"Range",2)}function XF(e){this.b=e,this.a=new st}function Rft(e){this.b=new Wo,this.a=e}function xft(e){e.a=new dt,e.c=new dt}function Cft(e){e.a=new Fn,e.d=new Fn}function Aft(e){KZ(e,null),qZ(e,null)}function Tft(e,t){return ZDn(e.a,t,null)}function p1n(e,t){return xr(e.a,t.a,t)}function Ho(e){return new tt(e.a,e.b)}function wme(e){return new tt(e.c,e.d)}function b1n(e){return new tt(e.c,e.d)}function N$(e,t){return fDn(e.c,e.b,t)}function ve(e,t){return e!=null&&jte(e,t)}function OQ(e,t){return ixn(e.Kc(),t)!=-1}function JF(e){return e.Ob()?e.Pb():null}function g1n(e){this.b=(Kt(),new hY(e))}function mme(e){this.a=e,Fn.call(this)}function $ft(){u7.call(this,null,null)}function Ift(){rB.call(this,null,null)}function Pft(){Jn.call(this,"INSTANCE",0)}function Oft(){wEe(),this.a=new G6(pTe)}function Nft(e){return Bh(e,0,e.length)}function w1n(e,t){return new Qft(e.Kc(),t)}function yme(e,t){return e.a.Bc(t)!=null}function Mft(e,t){Vn(e),e.Gc(f(t,15))}function m1n(e,t,i){e.c.bd(t,f(i,136))}function y1n(e,t,i){e.c.Ui(t,f(i,136))}function Dft(e,t){e.c&&(Bye(t),agt(t))}function v1n(e,t){e.q.setHours(t),X6(e,t)}function _1n(e,t){Cm(t,e.a.a.a,e.a.a.b)}function S1n(e,t,i,s){Ci(e.a[t.g],i.g,s)}function NQ(e,t,i){return e.a[t.g][i.g]}function E1n(e,t){return e.e[t.c.p][t.p]}function k1n(e,t){return e.c[t.c.p][t.p]}function qd(e,t){return e.a[t.c.p][t.p]}function R1n(e,t){return e.j[t.p]=DPn(t)}function MQ(e,t){return e.a.Bc(t)!=null}function x1n(e,t){return Ae(je(t.a))<=e}function C1n(e,t){return Ae(je(t.a))>=e}function A1n(e,t){return E_e(e.f,t.Pg())}function zk(e,t){return e.a*t.a+e.b*t.b}function T1n(e,t){return e.a0?t/(e*e):t*100}function e0n(e,t){return e>0?t*t/e:t*t*100}function Ov(e,t){return f(th(e.a,t),34)}function t0n(e,t){return W1(),Gt(e,t.e,t)}function n0n(e,t,i){return gF(),i.Mg(e,t)}function r0n(e){return mb(),e.e.a+e.f.a/2}function i0n(e,t,i){return mb(),i.e.a-e*t}function o0n(e){return mb(),e.e.b+e.f.b/2}function s0n(e,t,i){return mb(),i.e.b-e*t}function ddt(e){e.d=new cdt(e),e.e=new Fn}function hdt(){this.a=new Fm,this.b=new Fm}function pdt(e){this.c=e,this.a=1,this.b=1}function bdt(e){ure(),Pst(this),this.Ff(e)}function l0n(e,t,i){pW(),e.pf(t)&&i.Cd(e)}function a0n(e,t,i){return lt(t,x_t(e,i))}function Cm(e,t,i){return e.a+=t,e.b+=i,e}function c0n(e,t,i){return e.a*=t,e.b*=i,e}function Lme(e,t){return e.a=t.a,e.b=t.b,e}function iB(e){return e.a=-e.a,e.b=-e.b,e}function j$(e,t,i){return e.a-=t,e.b-=i,e}function gdt(e){li.call(this),c6(this,e)}function wdt(){Jn.call(this,"GROW_TREE",0)}function mdt(){Jn.call(this,"POLYOMINO",0)}function nu(e,t,i){pc.call(this,e,t,i,2)}function u0n(e,t,i){k6(ra(e.a),t,Dgt(i))}function ydt(e,t){g$(),u7.call(this,e,t)}function jme(e,t){lg(),rB.call(this,e,t)}function vdt(e,t){lg(),jme.call(this,e,t)}function _dt(e,t){lg(),rB.call(this,e,t)}function f0n(e,t){return e.c.Fc(f(t,136))}function d0n(e,t,i){k6(Wc(e.a),t,Lgt(i))}function Sdt(e){this.c=e,Da(e,0),La(e,0)}function WQ(e,t){Hu(),EB.call(this,e,t)}function Edt(e,t){Hu(),WQ.call(this,e,t)}function Fme(e,t){Hu(),WQ.call(this,e,t)}function Bme(e,t){Hu(),EB.call(this,e,t)}function kdt(e,t){Hu(),Fme.call(this,e,t)}function Rdt(e,t){Hu(),Bme.call(this,e,t)}function xdt(e,t){Hu(),EB.call(this,e,t)}function h0n(e,t,i){return t.zl(e.e,e.c,i)}function p0n(e,t,i){return t.Al(e.e,e.c,i)}function Wme(e,t,i){return oU(J7(e,t),i)}function HQ(e,t){return D1(e.e,f(t,54))}function b0n(e){return e==null?null:BLn(e)}function g0n(e){return e==null?null:OIn(e)}function w0n(e){return e==null?null:dl(e)}function m0n(e){return e==null?null:dl(e)}function wt(e){return W$(e==null||Iv(e)),e}function je(e){return W$(e==null||Pv(e)),e}function or(e){return W$(e==null||Eo(e)),e}function cb(e){e.o==null&&fPn(e)}function Hme(e){if(!e)throw ne(new MO)}function y0n(e){if(!e)throw ne(new mY)}function In(e){if(!e)throw ne(new yl)}function Nv(e){if(!e)throw ne(new ac)}function Cdt(e){if(!e)throw ne(new Bu)}function oC(){oC=F,J9=new ult,new flt}function JS(){JS=F,nE=new Xr("root")}function Ume(){cyt.call(this),this.Bb|=ys}function v0n(e,t){this.d=e,crt(this),this.b=t}function Gme(e,t){bee.call(this,e),this.a=t}function Vme(e,t){bee.call(this,e),this.a=t}function zme(e,t,i){uW.call(this,e,t,i,null)}function Adt(e,t,i){uW.call(this,e,t,i,null)}function h7(e,t){this.c=e,Yx.call(this,e,t)}function F$(e,t){this.a=e,h7.call(this,e,t)}function Kme(e){this.q=new h.Date(rw(e))}function Tdt(e){return e>8?0:e+1}function $dt(e,t){fh||lt(e.a,t)}function _0n(e,t){return VO(),jC(t.d.i,e)}function S0n(e,t){return b3(),new sRt(t,e)}function E0n(e,t,i){return e.Ne(t,i)<=0?i:t}function k0n(e,t,i){return e.Ne(t,i)<=0?t:i}function R0n(e,t){return f(th(e.b,t),143)}function x0n(e,t){return f(th(e.c,t),233)}function UQ(e){return f(vt(e.a,e.b),294)}function Idt(e){return new tt(e.c,e.d+e.a)}function Pdt(e){return mn(e),e?1231:1237}function Odt(e){return mu(),fft(f(e,203))}function Mv(){Mv=F,H4e=Mt((su(),Vw))}function C0n(e,t){t.a?I8n(e,t):MQ(e.a,t.b)}function p7(e,t,i){++e.j,e.tj(),pee(e,t,i)}function Ndt(e,t,i){++e.j,e.qj(t,e.Zi(t,i))}function Mdt(e,t,i){var s;s=e.fd(t),s.Rb(i)}function qme(e,t,i){return i=xu(e,t,6,i),i}function Xme(e,t,i){return i=xu(e,t,3,i),i}function Jme(e,t,i){return i=xu(e,t,9,i),i}function Mh(e,t){return I7(t,vRe),e.f=t,e}function Yme(e,t){return(t&Nr)%e.d.length}function Ddt(e,t,i){return $3e(e.c,e.b,t,i)}function Ldt(e,t){this.c=e,Um.call(this,t)}function jdt(e,t){this.a=e,kst.call(this,t)}function b7(e,t){this.a=e,kst.call(this,t)}function _i(e,t){Xr.call(this,e),this.a=t}function Qme(e,t){_0e.call(this,e),this.a=t}function GQ(e,t){_0e.call(this,e),this.a=t}function A0n(e){P2e.call(this,0,0),this.f=e}function Fdt(e,t,i){return e.a+=Bh(t,0,i),e}function g7(e){return!e.a&&(e.a=new xe),e.a}function Zme(e,t){var i;return i=e.e,e.e=t,i}function eye(e,t){var i;return i=t,!!e.Fe(i)}function T0n(e,t){return cn(),e==t?0:e?1:-1}function Dv(e,t){e.a.bd(e.b,t),++e.b,e.c=-1}function w7(e){e.b?w7(e.b):e.f.c.zc(e.e,e.d)}function Bdt(e){xc(e.e),e.d.b=e.d,e.d.a=e.d}function $0n(e,t,i){K0(),srt(e,t.Ve(e.a,i))}function tye(e,t,i){return n3(e,f(t,22),i)}function Yf(e,t){return oF(new Array(t),e)}function I0n(e){return tr(x1(e,32))^tr(e)}function VQ(e){return String.fromCharCode(e)}function P0n(e){return e==null?null:e.message}function O0n(e,t,i){return e.apply(t,i)}function N0n(e,t){var i;i=e[Gre],i.call(e,t)}function M0n(e,t){var i;i=e[Gre],i.call(e,t)}function D0n(e,t){return VO(),!jC(t.d.i,e)}function nye(e,t,i,s){vB.call(this,e,t,i,s)}function Wdt(){oB.call(this),this.a=new Io}function rye(){this.n=new Io,this.o=new Io}function Hdt(){this.b=new Io,this.c=new st}function Udt(){this.a=new st,this.b=new st}function Gdt(){this.a=new R1e,this.b=new Hst}function iye(){this.b=new hg,this.a=new hg}function Vdt(){this.b=new Gi,this.a=new Gi}function zdt(){this.b=new Fn,this.a=new Fn}function Kdt(){this.b=new yat,this.a=new GJe}function qdt(){this.a=new int,this.b=new MXe}function Xdt(){this.a=new st,this.d=new st}function oB(){this.n=new Pk,this.i=new Vk}function Jdt(e){this.a=(Su(e,b_),new ka(e))}function Ydt(e){this.a=(Su(e,b_),new ka(e))}function L0n(e){return e<100?null:new y1(e)}function j0n(e,t){return e.n.a=(mn(t),t+10)}function F0n(e,t){return e.n.a=(mn(t),t+10)}function B0n(e,t){return t==e||lA(HH(t),e)}function Qdt(e,t){return xr(e.a,t,"")==null}function W0n(e,t){var i;return i=t.qi(e.a),i}function Mr(e,t){return e.a+=t.a,e.b+=t.b,e}function uo(e,t){return e.a-=t.a,e.b-=t.b,e}function H0n(e){return xv(e.j.c,0),e.a=-1,e}function oye(e,t,i){return i=xu(e,t,11,i),i}function U0n(e,t,i){i!=null&&NW(t,Xte(e,i))}function G0n(e,t,i){i!=null&&MW(t,Xte(e,i))}function Xk(e,t,i,s){qe.call(this,e,t,i,s)}function sye(e,t,i,s){qe.call(this,e,t,i,s)}function Zdt(e,t,i,s){sye.call(this,e,t,i,s)}function eht(e,t,i,s){$B.call(this,e,t,i,s)}function zQ(e,t,i,s){$B.call(this,e,t,i,s)}function lye(e,t,i,s){$B.call(this,e,t,i,s)}function tht(e,t,i,s){zQ.call(this,e,t,i,s)}function aye(e,t,i,s){zQ.call(this,e,t,i,s)}function en(e,t,i,s){lye.call(this,e,t,i,s)}function nht(e,t,i,s){aye.call(this,e,t,i,s)}function rht(e,t,i,s){sve.call(this,e,t,i,s)}function Lv(e,t){Hs.call(this,kI+e+xw+t)}function cye(e,t){return e.jk().wi().ri(e,t)}function uye(e,t){return e.jk().wi().ti(e,t)}function iht(e,t){return mn(e),Oe(e)===Oe(t)}function Ht(e,t){return mn(e),Oe(e)===Oe(t)}function V0n(e,t){return e.b.Bd(new Cct(e,t))}function z0n(e,t){return e.b.Bd(new Act(e,t))}function oht(e,t){return e.b.Bd(new Tct(e,t))}function K0n(e,t){return e.e=f(e.d.Kb(t),159)}function fye(e,t,i){return e.lastIndexOf(t,i)}function q0n(e,t,i){return Qr(e[t.a],e[i.a])}function X0n(e,t){return Xe(t,(bt(),a9),e)}function J0n(e,t){return Xl(t.a.d.p,e.a.d.p)}function Y0n(e,t){return Xl(e.a.d.p,t.a.d.p)}function Q0n(e,t){return Qr(e.c-e.s,t.c-t.s)}function Z0n(e,t){return Qr(e.b.e.a,t.b.e.a)}function ewn(e,t){return Qr(e.c.e.a,t.c.e.a)}function sht(e){return e.c?il(e.c.a,e,0):-1}function Jk(e){return e==Gw||e==jp||e==ya}function dye(e,t){this.c=e,yZ.call(this,e,t)}function lht(e,t,i){this.a=e,Nme.call(this,t,i)}function aht(e){this.c=e,zF.call(this,lM,0)}function cht(e,t,i){this.c=t,this.b=i,this.a=e}function m7(e){lC(),this.d=e,this.a=new qS}function uht(e){Dh(),this.a=(Kt(),new Vx(e))}function twn(e,t){ab(e.f)?rPn(e,t):N6n(e,t)}function fht(e,t){pyn.call(this,e,e.length,t)}function nwn(e,t){fh||t&&(e.d=t)}function dht(e,t){return ve(t,15)&&B3t(e.c,t)}function rwn(e,t,i){return f(e.c,71).Wk(t,i)}function sB(e,t,i){return f(e.c,71).Xk(t,i)}function iwn(e,t,i){return h0n(e,f(t,343),i)}function hye(e,t,i){return p0n(e,f(t,343),i)}function own(e,t,i){return O2t(e,f(t,343),i)}function hht(e,t,i){return K6n(e,f(t,343),i)}function B$(e,t){return t==null?null:Zv(e.b,t)}function pye(e){return Pv(e)?(mn(e),e):e.ue()}function lB(e){return!isNaN(e)&&!isFinite(e)}function KQ(e){xft(this),wu(this),Do(this,e)}function Rc(e){TQ(this),$ye(this.c,0,e.Pc())}function Uu(e,t,i){this.a=e,this.b=t,this.c=i}function pht(e,t,i){this.a=e,this.b=t,this.c=i}function bht(e,t,i){this.d=e,this.b=i,this.a=t}function ght(e){this.a=e,lb(),Gl(Date.now())}function wht(e){iu(e.a),T_e(e.c,e.b),e.b=null}function qQ(){qQ=F,b4e=new at,I6t=new Qe}function mht(){mht=F,NDt=Fe(ho,on,1,0,5,1)}function yht(){yht=F,QDt=Fe(ho,on,1,0,5,1)}function bye(){bye=F,ZDt=Fe(ho,on,1,0,5,1)}function Dh(){Dh=F,new k0e((Kt(),Kt(),ps))}function swn(e){return RC(),Yn((Rwt(),N6t),e)}function lwn(e){return Tc(),Yn((bwt(),B6t),e)}function awn(e){return pH(),Yn((e0t(),z6t),e)}function cwn(e){return _W(),Yn((t0t(),K6t),e)}function uwn(e){return JH(),Yn((evt(),q6t),e)}function fwn(e){return Pd(),Yn((hwt(),Y6t),e)}function dwn(e){return Ac(),Yn((dwt(),Z6t),e)}function hwn(e){return Ya(),Yn((pwt(),tIt),e)}function pwn(e){return uU(),Yn((Jut(),kIt),e)}function bwn(e){return Xm(),Yn((Cwt(),xIt),e)}function gwn(e){return _3(),Yn((Twt(),AIt),e)}function wwn(e){return I6(),Yn((Awt(),IIt),e)}function mwn(e){return pF(),Yn((x1t(),PIt),e)}function ywn(e){return SW(),Yn((n0t(),XIt),e)}function vwn(e){return l6(),Yn((gwt(),_5t),e)}function _wn(e){return Yo(),Yn((umt(),R5t),e)}function Swn(e){return WC(),Yn((Iwt(),$5t),e)}function Ewn(e){return hw(),Yn(($wt(),D5t),e)}function gye(e,t){if(!e)throw ne(new hn(t))}function sC(e){if(!e)throw ne(new Us(Q3e))}function XQ(e,t){if(e!=t)throw ne(new Bu)}function vht(e,t,i){this.a=e,this.b=t,this.c=i}function wye(e,t,i){this.a=e,this.b=t,this.c=i}function _ht(e,t,i){this.a=e,this.b=t,this.c=i}function aB(e,t,i){this.b=e,this.a=t,this.c=i}function mye(e,t,i){this.b=e,this.c=t,this.a=i}function yye(e,t,i){this.a=e,this.b=t,this.c=i}function cB(e,t,i){this.e=t,this.b=e,this.d=i}function Sht(e,t,i){this.b=e,this.a=t,this.c=i}function kwn(e,t,i){return K0(),e.a.Yd(t,i),t}function JQ(e){var t;return t=new co,t.e=e,t}function vye(e){var t;return t=new Kst,t.b=e,t}function y7(){y7=F,BG=new uKe,WG=new fKe}function uB(){uB=F,Y5t=new jKe,J5t=new FKe}function Qf(){Qf=F,n8t=new Kqe,r8t=new qqe}function Rwn(e){return Km(),Yn((K0t(),h8t),e)}function xwn(e){return ss(),Yn((Yut(),z5t),e)}function Cwn(e){return KW(),Yn((Owt(),X5t),e)}function Awn(e){return rh(),Yn((Pwt(),s8t),e)}function Twn(e){return i_(),Yn((fmt(),a8t),e)}function $wn(e){return qH(),Yn((Fyt(),p8t),e)}function Iwn(e){return R3(),Yn((Dmt(),b8t),e)}function Pwn(e){return hW(),Yn((c0t(),g8t),e)}function Own(e){return u6(),Yn((V0t(),w8t),e)}function Nwn(e){return $W(),Yn((z0t(),m8t),e)}function Mwn(e){return Eg(),Yn((dmt(),y8t),e)}function Dwn(e){return tN(),Yn((o0t(),v8t),e)}function Lwn(e){return cA(),Yn((Fmt(),x8t),e)}function jwn(e){return As(),Yn((gvt(),C8t),e)}function Fwn(e){return BC(),Yn((X0t(),A8t),e)}function Bwn(e){return wb(),Yn((J0t(),$8t),e)}function Wwn(e){return nW(),Yn((i0t(),I8t),e)}function Hwn(e){return NN(),Yn((jmt(),R8t),e)}function Uwn(e){return uw(),Yn((q0t(),S8t),e)}function Gwn(e){return MH(),Yn((Lmt(),E8t),e)}function Vwn(e){return q7(),Yn((s0t(),k8t),e)}function zwn(e){return ef(),Yn((pmt(),P8t),e)}function Kwn(e){return Ag(),Yn((Yyt(),n7t),e)}function qwn(e){return v6(),Yn((Y0t(),r7t),e)}function Xwn(e){return n_(),Yn((Nwt(),i7t),e)}function Jwn(e){return $6(),Yn((hmt(),o7t),e)}function Ywn(e){return Sf(),Yn((wvt(),s7t),e)}function Qwn(e){return Wh(),Yn((Mwt(),l7t),e)}function Zwn(e){return Z7(),Yn((l0t(),a7t),e)}function emn(e){return Cs(),Yn((ewt(),u7t),e)}function tmn(e){return GW(),Yn((Q0t(),f7t),e)}function nmn(e){return w6(),Yn((Z0t(),d7t),e)}function rmn(e){return qC(),Yn((twt(),h7t),e)}function imn(e){return TW(),Yn((nwt(),p7t),e)}function omn(e){return qW(),Yn((rwt(),b7t),e)}function smn(e){return zm(),Yn((fwt(),I7t),e)}function lmn(e){return i6(),Yn((a0t(),D7t),e)}function amn(e){return jh(),Yn((d0t(),U7t),e)}function cmn(e){return Jd(),Yn((h0t(),V7t),e)}function umn(e){return Td(),Yn((p0t(),sNt),e)}function fmn(e){return Bm(),Yn((b0t(),hNt),e)}function dmn(e){return k3(),Yn((Hwt(),pNt),e)}function hmn(e){return K6(),Yn((Qut(),bNt),e)}function pmn(e){return m6(),Yn((iwt(),gNt),e)}function bmn(e){return y6(),Yn((Wwt(),FNt),e)}function gmn(e){return ZB(),Yn((u0t(),BNt),e)}function wmn(e){return LW(),Yn((f0t(),VNt),e)}function mmn(e){return IH(),Yn((bmt(),KNt),e)}function ymn(e){return bN(),Yn((owt(),XNt),e)}function vmn(e){return bW(),Yn((g0t(),qNt),e)}function _mn(e){return kH(),Yn((Bwt(),bMt),e)}function Smn(e){return UW(),Yn((swt(),gMt),e)}function Emn(e){return cH(),Yn((lwt(),wMt),e)}function kmn(e){return vH(),Yn((awt(),yMt),e)}function Rmn(e){return rH(),Yn((cwt(),SMt),e)}function xmn(e){return lW(),Yn((w0t(),UMt),e)}function Cmn(e){return MC(),Yn((r0t(),V5t),e)}function Amn(e){return gn(),Yn((Bmt(),B5t),e)}function Tmn(e){return gW(),Yn((uwt(),GMt),e)}function $mn(e){return zee(),Yn((m0t(),VMt),e)}function Imn(e){return U6(),Yn((gmt(),KMt),e)}function Pmn(e){return wF(),Yn((N1t(),XMt),e)}function Omn(e){return _N(),Yn((mwt(),qMt),e)}function Nmn(e){return mF(),Yn((M1t(),YMt),e)}function Mmn(e){return U7(),Yn((y0t(),QMt),e)}function Dmn(e){return DN(),Yn((wmt(),ZMt),e)}function Lmn(e){return h$(),Yn((D1t(),b9t),e)}function jmn(e){return fN(),Yn((v0t(),g9t),e)}function Fmn(e){return Nd(),Yn((ymt(),S9t),e)}function Bmn(e){return Cg(),Yn((Lyt(),k9t),e)}function Wmn(e){return _p(),Yn((Wmt(),R9t),e)}function Hmn(e){return bw(),Yn((Hmt(),I9t),e)}function Umn(e){return Xi(),Yn((mmt(),J9t),e)}function Gmn(e){return nh(),Yn((ywt(),Y9t),e)}function Vmn(e){return _b(),Yn((Uwt(),Q9t),e)}function zmn(e){return OH(),Yn((Umt(),Z9t),e)}function Kmn(e){return vb(),Yn((wwt(),tDt),e)}function qmn(e){return ku(),Yn((Gwt(),rDt),e)}function Xmn(e){return a_(),Yn((Zyt(),iDt),e)}function Jmn(e){return a2(),Yn((vmt(),oDt),e)}function Ymn(e){return Co(),Yn((Gmt(),sDt),e)}function Qmn(e){return $c(),Yn((Vmt(),lDt),e)}function Zmn(e){return ut(),Yn((_mt(),aDt),e)}function eyn(e){return su(),Yn((Vwt(),hDt),e)}function tyn(e){return Gc(),Yn((Qyt(),pDt),e)}function nyn(e){return m3(),Yn((vwt(),bDt),e)}function ryn(e,t){return mn(e),e+(mn(t),t)}function iyn(e){return YQ(),Yn((_0t(),gDt),e)}function oyn(e){return oH(),Yn((zwt(),wDt),e)}function syn(e){return XW(),Yn((Kwt(),vDt),e)}function lC(){lC=F,BIe=(ut(),wn),zV=_n}function YQ(){YQ=F,rOe=new Qht,iOe=new Lpt}function lyn(e){return!e.e&&(e.e=new st),e.e}function QQ(e,t){this.c=e,this.a=t,this.b=t-e}function Eht(e,t,i){this.a=e,this.b=t,this.c=i}function ZQ(e,t,i){this.a=e,this.b=t,this.c=i}function _ye(e,t,i){this.a=e,this.b=t,this.c=i}function Sye(e,t,i){this.a=e,this.b=t,this.c=i}function kht(e,t,i){this.a=e,this.b=t,this.c=i}function Rht(e,t,i){this.a=e,this.b=t,this.c=i}function cg(e,t,i){this.e=e,this.a=t,this.c=i}function xht(e,t,i){Hu(),Bve.call(this,e,t,i)}function eZ(e,t,i){Hu(),Eve.call(this,e,t,i)}function Eye(e,t,i){Hu(),Eve.call(this,e,t,i)}function kye(e,t,i){Hu(),Eve.call(this,e,t,i)}function Cht(e,t,i){Hu(),eZ.call(this,e,t,i)}function Rye(e,t,i){Hu(),eZ.call(this,e,t,i)}function Aht(e,t,i){Hu(),Rye.call(this,e,t,i)}function Tht(e,t,i){Hu(),Eye.call(this,e,t,i)}function $ht(e,t,i){Hu(),kye.call(this,e,t,i)}function tZ(e){vB.call(this,e.d,e.c,e.a,e.b)}function xye(e){vB.call(this,e.d,e.c,e.a,e.b)}function Cye(e){this.d=e,crt(this),this.b=svn(e.d)}function ayn(e){return fA(),Yn((jyt(),ODt),e)}function v7(e,t){return nr(e),nr(t),new jat(e,t)}function Yk(e,t){return nr(e),nr(t),new Uht(e,t)}function cyn(e,t){return nr(e),nr(t),new Ght(e,t)}function uyn(e,t){return nr(e),nr(t),new Kat(e,t)}function nZ(e){return In(e.b!=0),Xu(e,e.a.a)}function fyn(e){return In(e.b!=0),Xu(e,e.c.b)}function dyn(e){return!e.c&&(e.c=new Dx),e.c}function aC(e){var t;return t=new st,xee(t,e),t}function hyn(e){var t;return t=new Gi,xee(t,e),t}function Iht(e){var t;return t=new T0e,Fee(t,e),t}function _7(e){var t;return t=new li,Fee(t,e),t}function f(e,t){return W$(e==null||jte(e,t)),e}function pyn(e,t,i){$pt.call(this,t,i),this.a=e}function Pht(e,t){this.c=e,this.b=t,this.a=!1}function Oht(){this.a=";,;",this.b="",this.c=""}function Nht(e,t,i){this.b=e,Vut.call(this,t,i)}function Aye(e,t,i){this.c=e,EF.call(this,t,i)}function Tye(e,t,i){eC.call(this,e,t),this.b=i}function $ye(e,t,i){Ske(i,0,e,t,i.length,!1)}function bp(e,t,i,s,a){e.b=t,e.c=i,e.d=s,e.a=a}function Iye(e,t,i,s,a){e.d=t,e.c=i,e.a=s,e.b=a}function byn(e,t){t&&(e.b=t,e.a=(A1(t),t.a))}function S7(e,t){if(!e)throw ne(new hn(t))}function Qk(e,t){if(!e)throw ne(new Us(t))}function Pye(e,t){if(!e)throw ne(new Hlt(t))}function gyn(e,t){return bF(),Xl(e.d.p,t.d.p)}function wyn(e,t){return mb(),Qr(e.e.b,t.e.b)}function myn(e,t){return mb(),Qr(e.e.a,t.e.a)}function yyn(e,t){return Xl(Xht(e.d),Xht(t.d))}function fB(e,t){return t&&MB(e,t.d)?t:null}function vyn(e,t){return t==(ut(),wn)?e.c:e.d}function Oye(e){return O1(yvn(ul(e)?yf(e):e))}function _yn(e){return new tt(e.c+e.b,e.d+e.a)}function Mht(e){return e!=null&&!Ete(e,j5,F5)}function Syn(e,t){return(h_t(e)<<4|h_t(t))&Ji}function Dht(e,t,i,s,a){e.c=t,e.d=i,e.b=s,e.a=a}function Nye(e){var t,i;t=e.b,i=e.c,e.b=i,e.c=t}function Mye(e){var t,i;i=e.d,t=e.a,e.d=t,e.a=i}function Eyn(e,t){var i;return i=e.c,hSe(e,t),i}function Dye(e,t){return t<0?e.g=-1:e.g=t,e}function dB(e,t){return I3n(e),e.a*=t,e.b*=t,e}function Lht(e,t,i){Imt.call(this,t,i),this.d=e}function E7(e,t,i){tme.call(this,e,t),this.c=i}function hB(e,t,i){tme.call(this,e,t),this.c=i}function Lye(e){bye(),Wj.call(this),this.ci(e)}function jht(){SC(),Gvn.call(this,(_1(),Nf))}function Fht(e){return Or(),new gp(0,e)}function Bht(){Bht=F,Fce=(Kt(),new dY(Hoe))}function pB(){pB=F,new q2e((xY(),ese),(RY(),Zoe))}function Wht(){Wht=F,t4e=Fe(Ko,rt,17,256,0,1)}function Hht(){this.b=Ae(je(ht((od(),Ose))))}function rZ(e){this.b=e,this.a=X0(this.b.a).Od()}function Uht(e,t){this.b=e,this.a=t,rY.call(this)}function Ght(e,t){this.a=e,this.b=t,rY.call(this)}function Vht(e,t,i){this.a=e,WS.call(this,t,i)}function zht(e,t,i){this.a=e,WS.call(this,t,i)}function cC(e,t,i){var s;s=new Bv(i),Id(e,t,s)}function jye(e,t,i){var s;return s=e[t],e[t]=i,s}function bB(e){var t;return t=e.slice(),yee(t,e)}function gB(e){var t;return t=e.n,e.a.b+t.d+t.a}function Kht(e){var t;return t=e.n,e.e.b+t.d+t.a}function Fye(e){var t;return t=e.n,e.e.a+t.b+t.c}function Bye(e){e.a.b=e.b,e.b.a=e.a,e.a=e.b=null}function hr(e,t){return Ai(e,t,e.c.b,e.c),!0}function kyn(e){return e.a?e.a:IZ(e)}function Ryn(e){return s3(),Sp(e)==di(F1(e))}function xyn(e){return s3(),F1(e)==di(Sp(e))}function Am(e,t){return M6(e,new eC(t.a,t.b))}function Cyn(e,t){return LB(),zte(e,t),new bbt(e,t)}function Ayn(e,t){return e.c=t)throw ne(new D0e)}function jv(e,t){return yN(e,(mn(t),new grt(t)))}function e3(e,t){return yN(e,(mn(t),new wrt(t)))}function Ppt(e,t,i){return eFn(e,f(t,12),f(i,12))}function Opt(e){return bc(),f(e,12).g.c.length!=0}function Npt(e){return bc(),f(e,12).e.c.length!=0}function dvn(e,t){return b3(),Qr(t.a.o.a,e.a.o.a)}function hvn(e,t){t.Bb&Vl&&!e.a.o&&(e.a.o=t)}function pvn(e,t){t.Ug("General 'Rotator",1),ALn(e)}function bvn(e,t,i){t.qf(i,Ae(je(En(e.b,i)))*e.a)}function Mpt(e,t,i){return m2(),DC(e,t)&&DC(e,i)}function V$(e){return $c(),!e.Hc(Mb)&&!e.Hc(f0)}function gvn(e){return e.e?C_e(e.e):null}function z$(e){return ul(e)?""+e:F3t(e)}function ove(e){var t;for(t=e;t.f;)t=t.f;return t}function wvn(e,t,i){return Ci(t,0,Vye(t[0],i[0])),t}function ug(e,t,i,s){var a;a=e.i,a.i=t,a.a=i,a.b=s}function qe(e,t,i,s){zi.call(this,e,t,i),this.b=s}function yo(e,t,i,s,a){wee.call(this,e,t,i,s,a,-1)}function K$(e,t,i,s,a){V7.call(this,e,t,i,s,a,-1)}function $B(e,t,i,s){E7.call(this,e,t,i),this.b=s}function Dpt(e){Out.call(this,e,!1),this.a=!1}function Lpt(){dut.call(this,"LOOKAHEAD_LAYOUT",1)}function jpt(e){this.b=e,Kk.call(this,e),Uft(this)}function Fpt(e){this.b=e,f7.call(this,e),Gft(this)}function Fv(e,t,i){this.a=e,Xk.call(this,t,i,5,6)}function sve(e,t,i,s){this.b=e,zi.call(this,t,i,s)}function Bpt(e,t){this.b=e,znt.call(this,e.b),this.a=t}function Wpt(e){this.a=kSt(e.a),this.b=new Rc(e.b)}function lve(e,t){Om(),qbn.call(this,e,ZW(new kc(t)))}function IB(e,t){return Or(),new Sve(e,t,0)}function gZ(e,t){return Or(),new Sve(6,e,t)}function Uo(e,t){for(mn(t);e.Ob();)t.Cd(e.Pb())}function Na(e,t){return Eo(t)?FZ(e,t):!!xs(e.f,t)}function wZ(e,t){return t.Vh()?D1(e.b,f(t,54)):t}function mvn(e,t){return Ht(e.substr(0,t.length),t)}function wp(e){return new kn(new Ame(e.a.length,e.a))}function PB(e){return new tt(e.c+e.b/2,e.d+e.a/2)}function yvn(e){return Oa(~e.l&Vc,~e.m&Vc,~e.h&Ab)}function mZ(e){return typeof e===rM||typeof e===hre}function xc(e){e.f=new lft(e),e.i=new aft(e),++e.g}function Hpt(e){if(!e)throw ne(new yl);return e.d}function t3(e){var t;return t=g6(e),In(t!=null),t}function vvn(e){var t;return t=DCn(e),In(t!=null),t}function fC(e,t){var i;return i=e.a.gc(),S_e(t,i),i-t}function Zi(e,t){var i;return i=e.a.zc(t,e),i==null}function R7(e,t){return e.a.zc(t,(cn(),Y1))==null}function ave(e){return new Wt(null,Rvn(e,e.length))}function cve(e,t,i){return cxt(e,f(t,42),f(i,176))}function n3(e,t,i){return nd(e.a,t),jye(e.b,t.g,i)}function _vn(e,t,i){uC(i,e.a.c.length),Ku(e.a,i,t)}function Me(e,t,i,s){Bvt(t,i,e.length),Svn(e,t,i,s)}function Svn(e,t,i,s){var a;for(a=t;a0?h.Math.log(e/t):-100}function Gpt(e,t){return Jl(e,t)<0?-1:Jl(e,t)>0?1:0}function x7(e,t){Mft(e,ve(t,160)?t:f(t,2036).Rl())}function hve(e,t){if(e==null)throw ne(new Mk(t))}function Rvn(e,t){return C3n(t,e.length),new Yht(e,t)}function pve(e,t){return t?Do(e,t):!1}function xvn(){return tF(),se(ie(u6t,1),Je,549,0,[rse])}function X$(e){return e.e==0?e:new Y0(-e.e,e.d,e.a)}function Cvn(e,t){return Qr(e.c.c+e.c.b,t.c.c+t.c.b)}function C7(e,t){Ai(e.d,t,e.b.b,e.b),++e.a,e.c=null}function Vpt(e,t){return e.c?Vpt(e.c,t):lt(e.b,t),e}function Avn(e,t,i){var s;return s=Kv(e,t),tee(e,t,i),s}function zpt(e,t,i){var s;for(s=0;s=e.g}function Ci(e,t,i){return y0n(i==null||hMn(e,i)),e[t]=i}function yve(e,t){return pn(t,e.length+1),e.substr(t)}function AZ(e,t){for(mn(t);e.c=e?new gwe:Y3n(e-1)}function Go(e){return!e.a&&e.c?e.c.b:e.a}function kve(e){return ve(e,616)?e:new fgt(e)}function A1(e){e.c?A1(e.c):(L1(e),e.d=!0)}function Q$(e){e.c?e.c.$e():(e.d=!0,bOn(e))}function dbt(e){e.b=!1,e.c=!1,e.d=!1,e.a=!1}function hbt(e){var t,i;return t=e.c.i.c,i=e.d.i.c,t==i}function Kvn(e,t){var i;i=e.Ih(t),i>=0?e.ki(i):hke(e,t)}function pbt(e,t){e.c<0||e.b.b0;)e=e<<1|(e<0?1:0);return e}function Sbt(e,t){var i;return i=new ca(e),sn(t.c,i),i}function Ebt(e,t){e.u.Hc(($c(),Mb))&&Q5n(e,t),gkn(e,t)}function Ul(e,t){return Oe(e)===Oe(t)||e!=null&&Lr(e,t)}function Ds(e,t){return aZ(e.a,t)?e.b[f(t,22).g]:null}function s_n(){return pF(),se(ie(V4e,1),Je,489,0,[xse])}function l_n(){return wF(),se(ie(y8e,1),Je,490,0,[Jae])}function a_n(){return mF(),se(ie(JMt,1),Je,558,0,[Yae])}function c_n(){return h$(),se(ie(B8e,1),Je,539,0,[x9])}function jB(e){return!e.n&&(e.n=new qe(Fs,e,1,7)),e.n}function $Z(e){return!e.c&&(e.c=new qe(Mc,e,9,9)),e.c}function Ave(e){return!e.c&&(e.c=new en(Dn,e,5,8)),e.c}function u_n(e){return!e.b&&(e.b=new en(Dn,e,4,7)),e.b}function A7(e){return e.j.c.length=0,$ve(e.c),H0n(e.a),e}function gC(e){return e.e==VA&&Apn(e,i4n(e.g,e.b)),e.e}function T7(e){return e.f==VA&&$pn(e,XTn(e.g,e.b)),e.f}function Cr(e,t,i,s){return zyt(e,t,i,!1),eH(e,s),e}function kbt(e,t){this.b=e,yZ.call(this,e,t),Uft(this)}function Rbt(e,t){this.b=e,dye.call(this,e,t),Gft(this)}function Z$(e){this.d=e,this.a=this.d.b,this.b=this.d.c}function Tve(e,t){this.b=e,this.c=t,this.a=new Bk(this.b)}function Jo(e,t){return pn(t,e.length),e.charCodeAt(t)}function f_n(e,t){g2e(e,Ae(yb(t,"x")),Ae(yb(t,"y")))}function d_n(e,t){g2e(e,Ae(yb(t,"x")),Ae(yb(t,"y")))}function Br(e,t){return L1(e),new Wt(e,new B_e(t,e.a))}function nl(e,t){return L1(e),new Wt(e,new R_e(t,e.a))}function Wv(e,t){return L1(e),new Gme(e,new N0t(t,e.a))}function FB(e,t){return L1(e),new Vme(e,new M0t(t,e.a))}function h_n(e,t){return new Xbt(f(nr(e),50),f(nr(t),50))}function p_n(e,t){return Qr(e.d.c+e.d.b/2,t.d.c+t.d.b/2)}function xbt(e,t,i){i.a?La(e,t.b-e.f/2):Da(e,t.a-e.g/2)}function b_n(e,t){return Qr(e.g.c+e.g.b/2,t.g.c+t.g.b/2)}function g_n(e,t){return ywe(),Qr((mn(e),e),(mn(t),t))}function w_n(e){return e!=null&&HO(jz,e.toLowerCase())}function $ve(e){var t;for(t=e.Kc();t.Ob();)t.Pb(),t.Qb()}function YS(e){var t;return t=e.b,!t&&(e.b=t=new jnt(e)),t}function IZ(e){var t;return t=tRn(e),t||null}function Cbt(e,t){var i,s;return i=e/t,s=oo(i),i>s&&++s,s}function m_n(e,t,i){var s;s=f(e.d.Kb(i),159),s&&s.Nb(t)}function y_n(e,t,i){_9n(e.a,i),QRn(i),H8n(e.b,i),W9n(t,i)}function BB(e,t,i,s){this.a=e,this.c=t,this.b=i,this.d=s}function Ive(e,t,i,s){this.c=e,this.b=t,this.a=i,this.d=s}function Abt(e,t,i,s){this.c=e,this.b=t,this.d=i,this.a=s}function Gu(e,t,i,s){this.c=e,this.d=t,this.b=i,this.a=s}function Tbt(e,t,i,s){this.a=e,this.d=t,this.c=i,this.b=s}function PZ(e,t,i,s){this.a=e,this.e=t,this.d=i,this.c=s}function $bt(e,t,i,s){this.a=e,this.c=t,this.d=i,this.b=s}function OZ(e,t,i){this.a=iRe,this.d=e,this.b=t,this.c=i}function i3(e,t,i,s){Jn.call(this,e,t),this.a=i,this.b=s}function Ibt(e,t){this.d=(mn(e),e),this.a=16449,this.c=t}function Pbt(e){this.a=new st,this.e=Fe(Xn,rt,53,e,0,2)}function v_n(e){e.Ug("No crossing minimization",1),e.Vg()}function Obt(){vl.call(this,"There is no more element.")}function Nbt(e,t,i,s){this.a=e,this.b=t,this.c=i,this.d=s}function Mbt(e,t,i,s){this.a=e,this.b=t,this.c=i,this.d=s}function Z0(e,t,i,s){this.e=e,this.a=t,this.c=i,this.d=s}function Dbt(e,t,i,s){this.a=e,this.c=t,this.d=i,this.b=s}function Lbt(e,t,i,s){Hu(),D0t.call(this,t,i,s),this.a=e}function jbt(e,t,i,s){Hu(),D0t.call(this,t,i,s),this.a=e}function NZ(e,t,i){var s,a;return s=G3e(e),a=t.ti(i,s),a}function ub(e){var t,i;return i=(t=new fm,t),CC(i,e),i}function MZ(e){var t,i;return i=(t=new fm,t),KEe(i,e),i}function __n(e,t){var i;return i=En(e.f,t),xSe(t,i),null}function Fbt(e){return!e.b&&(e.b=new qe(Fi,e,12,3)),e.b}function Bbt(e){return W$(e==null||mZ(e)&&e.Tm!==ae),e}function WB(e){return e.n&&(e.e!==WCt&&e.je(),e.j=null),e}function wC(e){if(Hc(e.d),e.d.d!=e.c)throw ne(new Bu)}function Pve(e){return In(e.b0&&m2t(this)}function Wbt(e,t){this.a=e,v0n.call(this,e,f(e.d,15).fd(t))}function S_n(e,t){return Qr(dc(e)*ru(e),dc(t)*ru(t))}function E_n(e,t){return Qr(dc(e)*ru(e),dc(t)*ru(t))}function k_n(e){return ny(e)&&mt(wt(Ye(e,(bt(),Nw))))}function R_n(e,t){return Gt(e,f(V(t,(bt(),f4)),17),t)}function x_n(e,t){return f(V(e,(nt(),Z3)),15).Fc(t),t}function Ove(e,t){return e.b=t.b,e.c=t.c,e.d=t.d,e.a=t.a,e}function Hbt(e,t,i,s){this.b=e,this.c=s,zF.call(this,t,i)}function C_n(e,t,i){e.i=0,e.e=0,t!=i&&Rvt(e,t,i)}function A_n(e,t,i){e.i=0,e.e=0,t!=i&&xvt(e,t,i)}function T_n(e,t,i){return d$(),nAn(f(En(e.e,t),529),i)}function o3(e){var t;return t=e.f,t||(e.f=new Yx(e,e.c))}function Ubt(e,t){return l2(e.j,t.s,t.c)+l2(t.e,e.s,e.c)}function Gbt(e,t){e.e&&!e.e.a&&(Ist(e.e,t),Gbt(e.e,t))}function Vbt(e,t){e.d&&!e.d.a&&(Ist(e.d,t),Vbt(e.d,t))}function $_n(e,t){return-Qr(dc(e)*ru(e),dc(t)*ru(t))}function I_n(e){return f(e.ld(),149).Pg()+":"+dl(e.md())}function zbt(){pne(this,new V1e),this.wb=(C1(),un),qx()}function Kbt(e){this.b=new st,eo(this.b,this.b),this.a=e}function Nve(e,t){new li,this.a=new cc,this.b=e,this.c=t}function Lm(){Lm=F,h4e=new Le,fse=new Le,p4e=new ft}function Kt(){Kt=F,ps=new we,Ip=new He,xG=new Ue}function Mve(){Mve=F,U6t=new ki,V6t=new Jye,G6t=new Ri}function s3(){s3=F,NG=new st,$se=new Fn,Tse=new st}function HB(e,t){if(e==null)throw ne(new Mk(t));return e}function UB(e){return!e.a&&(e.a=new qe($r,e,10,11)),e.a}function Gr(e){return!e.q&&(e.q=new qe(Of,e,11,10)),e.q}function Ve(e){return!e.s&&(e.s=new qe(rc,e,21,17)),e.s}function P_n(e){return nr(e),NSt(new kn(xn(e.a.Kc(),new O)))}function O_n(e,t){return ou(e),ou(t),Wlt(f(e,22),f(t,22))}function ew(e,t,i){var s,a;s=pye(i),a=new Uj(s),Id(e,t,a)}function LZ(e,t,i,s,a,c){V7.call(this,e,t,i,s,a,c?-2:-1)}function qbt(e,t,i,s){tme.call(this,t,i),this.b=e,this.a=s}function Xbt(e,t){ebn.call(this,new bZ(e)),this.a=e,this.b=t}function Dve(e){this.b=e,this.c=e,e.e=null,e.c=null,this.a=1}function N_n(e){Qf();var t;t=f(e.g,10),t.n.a=e.d.c+t.d.b}function mC(){mC=F;var e,t;t=!WAn(),e=new De,sse=t?new pe:e}function jZ(e){return Kt(),ve(e,59)?new NY(e):new eB(e)}function GB(e){return ve(e,16)?new H$(f(e,16)):hyn(e.Kc())}function M_n(e){return new zft(e,e.e.Rd().gc()*e.c.Rd().gc())}function D_n(e){return new Kft(e,e.e.Rd().gc()*e.c.Rd().gc())}function Lve(e){return e&&e.hashCode?e.hashCode():xm(e)}function FZ(e,t){return t==null?!!xs(e.f,null):Qyn(e.i,t)}function L_n(e,t){var i;return i=yme(e.a,t),i&&(t.d=null),i}function Jbt(e,t,i){return e.f?e.f.ef(t,i):!1}function $7(e,t,i,s){Ci(e.c[t.g],i.g,s),Ci(e.c[i.g],t.g,s)}function BZ(e,t,i,s){Ci(e.c[t.g],t.g,i),Ci(e.b[t.g],t.g,s)}function j_n(e,t,i){return Ae(je(i.a))<=e&&Ae(je(i.b))>=t}function Ybt(e,t){this.g=e,this.d=se(ie(Op,1),$g,10,0,[t])}function Qbt(e){this.c=e,this.b=new sg(f(nr(new xi),50))}function Zbt(e){this.c=e,this.b=new sg(f(nr(new rze),50))}function egt(e){this.b=e,this.a=new sg(f(nr(new yr),50))}function tgt(){this.b=new Gi,this.d=new li,this.e=new L0e}function jve(){this.c=new Io,this.d=new Io,this.e=new Io}function jm(){this.a=new cc,this.b=(Su(3,b_),new ka(3))}function fg(e,t){this.e=e,this.a=ho,this.b=tRt(t),this.c=t}function VB(e){this.c=e.c,this.d=e.d,this.b=e.b,this.a=e.a}function ngt(e,t,i,s,a,c){this.a=e,Pee.call(this,t,i,s,a,c)}function rgt(e,t,i,s,a,c){this.a=e,Pee.call(this,t,i,s,a,c)}function T1(e,t,i,s,a,c,b){return new ree(e.e,t,i,s,a,c,b)}function F_n(e,t,i){return i>=0&&Ht(e.substr(i,t.length),t)}function igt(e,t){return ve(t,149)&&Ht(e.b,f(t,149).Pg())}function B_n(e,t){return e.a?t.Gh().Kc():f(t.Gh(),71).Ii()}function ogt(e,t){var i;return i=e.b.Qc(t),Z1t(i,e.b.gc()),i}function I7(e,t){if(e==null)throw ne(new Mk(t));return e}function rl(e){return e.u||(Bc(e),e.u=new jdt(e,e)),e.u}function WZ(e){this.a=(Kt(),ve(e,59)?new NY(e):new eB(e))}function Xa(e){var t;return t=f(dn(e,16),29),t||e.ii()}function zB(e,t){var i;return i=z0(e.Rm),t==null?i:i+": "+t}function Vu(e,t,i){return Mo(t,i,e.length),e.substr(t,i-t)}function sgt(e,t){oB.call(this),X_e(this),this.a=e,this.c=t}function W_n(e){e&&zB(e,e.ie())}function H_n(e){iF(),h.setTimeout(function(){throw e},0)}function U_n(){return pH(),se(ie(S4e,1),Je,436,0,[yse,_4e])}function G_n(){return _W(),se(ie(k4e,1),Je,435,0,[E4e,vse])}function V_n(){return SW(),se(ie(Q4e,1),Je,432,0,[Ise,MG])}function z_n(){return MC(),se(ie(G5t,1),Je,517,0,[YM,Vse])}function K_n(){return nW(),se(ie(M$e,1),Je,429,0,[_le,N$e])}function q_n(){return tN(),se(ie(y$e,1),Je,428,0,[fV,m$e])}function X_n(){return hW(),se(ie(f$e,1),Je,431,0,[u$e,sle])}function J_n(){return Z7(),se(ie(CIe,1),Je,430,0,[nae,rae])}function Y_n(){return i6(),se(ie(M7t,1),Je,531,0,[a5,l5])}function Q_n(){return LW(),se(ie(E5e,1),Je,501,0,[tz,rE])}function Z_n(){return jh(),se(ie(H7t,1),Je,523,0,[Oy,Lg])}function eSn(){return Jd(),se(ie(G7t,1),Je,522,0,[Fw,ph])}function tSn(){return Td(),se(ie(oNt,1),Je,528,0,[U_,i0])}function nSn(){return q7(),se(ie(S$e,1),Je,488,0,[_$e,hV])}function rSn(){return lW(),se(ie(d8e,1),Je,491,0,[Kae,f8e])}function iSn(){return zee(),se(ie(m8e,1),Je,492,0,[g8e,w8e])}function oSn(){return ZB(),se(ie(S5e,1),Je,433,0,[Rae,_5e])}function sSn(){return bW(),se(ie(R5e,1),Je,434,0,[k5e,Iae])}function lSn(){return Bm(),se(ie(dNt,1),Je,465,0,[o0,eE])}function aSn(){return U7(),se(ie(v8e,1),Je,438,0,[Qae,dz])}function cSn(){return fN(),se(ie(H8e,1),Je,437,0,[pz,W8e])}function uSn(){return YQ(),se(ie(Tz,1),Je,347,0,[rOe,iOe])}function KB(e,t,i,s){return i>=0?e.Uh(t,i,s):e.Ch(null,i,s)}function P7(e){return e.b.b==0?e.a.sf():nZ(e.b)}function fSn(e){if(e.p!=5)throw ne(new ac);return tr(e.f)}function dSn(e){if(e.p!=5)throw ne(new ac);return tr(e.k)}function Fve(e){return Oe(e.a)===Oe((Gee(),Dce))&&uDn(e),e.a}function hSn(e,t){e.b=t,e.c>0&&e.b>0&&(e.g=_B(e.c,e.b,e.a))}function pSn(e,t){e.c=t,e.c>0&&e.b>0&&(e.g=_B(e.c,e.b,e.a))}function lgt(e,t){dpn(this,new tt(e.a,e.b)),hpn(this,_7(t))}function Fm(){tbn.call(this,new Fk(qv(12))),kme(!0),this.a=2}function HZ(e,t,i){Or(),um.call(this,e),this.b=t,this.a=i}function Bve(e,t,i){Hu(),Xj.call(this,t),this.a=e,this.b=i}function agt(e){var t;t=e.c.d.b,e.b=t,e.a=e.c.d,t.a=e.c.d.b=e}function bSn(e){return e.b==0?null:(In(e.b!=0),Xu(e,e.a.a))}function ua(e,t){return t==null?tl(xs(e.f,null)):w$(e.i,t)}function cgt(e,t,i,s,a){return new gne(e,(RC(),bse),t,i,s,a)}function qB(e,t){return J1t(t),F3n(e,Fe(Xn,wr,28,t,15,1),t)}function XB(e,t){return HB(e,"set1"),HB(t,"set2"),new Qat(e,t)}function gSn(e,t){var i=ose[e.charCodeAt(0)];return i??e}function ugt(e,t){var i,s;return i=t,s=new Lt,Lxt(e,i,s),s.d}function UZ(e,t,i,s){var a;a=new Wdt,t.a[i.g]=a,n3(e.b,s,a)}function wSn(e,t){var i;return i=D3n(e.f,t),Mr(iB(i),e.f.d)}function O7(e){var t;K3n(e.a),wft(e.a),t=new zj(e.a),x2e(t)}function mSn(e,t){V3t(e,!0),Ma(e.e.Rf(),new mye(e,!0,t))}function ySn(e,t){return s3(),e==di(Sp(t))||e==di(F1(t))}function vSn(e,t){return mb(),f(V(t,(Il(),ip)),17).a==e}function oo(e){return Math.max(Math.min(e,Nr),-2147483648)|0}function fgt(e){this.a=f(nr(e),277),this.b=(Kt(),new Ime(e))}function dgt(e,t,i){this.i=new st,this.b=e,this.g=t,this.a=i}function Wve(e,t,i){this.a=new st,this.e=e,this.f=t,this.c=i}function JB(e,t,i){this.c=new st,this.e=e,this.f=t,this.b=i}function hgt(e){oB.call(this),X_e(this),this.a=e,this.c=!0}function _Sn(e){function t(){}return t.prototype=e||{},new t}function SSn(e){if(e.Ae())return null;var t=e.n;return vG[t]}function N7(e){return e.Db>>16!=3?null:f(e.Cb,27)}function Xd(e){return e.Db>>16!=9?null:f(e.Cb,27)}function pgt(e){return e.Db>>16!=6?null:f(e.Cb,74)}function Bm(){Bm=F,o0=new Uwe(M3,0),eE=new Uwe(D3,1)}function jh(){jh=F,Oy=new Bwe(D3,0),Lg=new Bwe(M3,1)}function Jd(){Jd=F,Fw=new Wwe(Zre,0),ph=new Wwe("UP",1)}function bgt(){bgt=F,f6t=Qn((tF(),se(ie(u6t,1),Je,549,0,[rse])))}function ggt(e){var t;return t=new aF(qv(e.length)),FSe(t,e),t}function wgt(e,t){return e.b+=t.b,e.c+=t.c,e.d+=t.d,e.a+=t.a,e}function ESn(e,t){return rvt(e,t)?(Zmt(e),!0):!1}function fb(e,t){if(t==null)throw ne(new $k);return UAn(e,t)}function M7(e,t){var i;i=e.q.getHours(),e.q.setDate(t),X6(e,i)}function Hve(e,t,i){var s;s=e.Ih(t),s>=0?e.bi(s,i):Bke(e,t,i)}function mgt(e,t){var i;return i=e.Ih(t),i>=0?e.Wh(i):Sne(e,t)}function ygt(e,t){var i;for(nr(t),i=e.a;i;i=i.c)t.Yd(i.g,i.i)}function GZ(e,t,i){var s;s=Evt(e,t,i),e.b=new FW(s.c.length)}function QS(e,t,i){YB(),e&&xr(Oce,e,t),e&&xr(q9,e,i)}function kSn(e,t){return uB(),cn(),f(t.a,17).a0}function Uve(e){var t;return t=e.d,t=e.bj(e.f),zn(e,t),t.Ob()}function vgt(e,t){var i;return i=new Kye(t),V2t(i,e),new Rc(i)}function CSn(e){if(e.p!=0)throw ne(new ac);return T$(e.f,0)}function ASn(e){if(e.p!=0)throw ne(new ac);return T$(e.k,0)}function _gt(e){return e.Db>>16!=7?null:f(e.Cb,241)}function yC(e){return e.Db>>16!=6?null:f(e.Cb,241)}function Sgt(e){return e.Db>>16!=7?null:f(e.Cb,167)}function di(e){return e.Db>>16!=11?null:f(e.Cb,27)}function Hv(e){return e.Db>>16!=17?null:f(e.Cb,29)}function Egt(e){return e.Db>>16!=3?null:f(e.Cb,155)}function Gve(e){var t;return L1(e),t=new Gi,Br(e,new Trt(t))}function kgt(e,t){var i=e.a=e.a||[];return i[t]||(i[t]=e.ve(t))}function TSn(e,t){var i;i=e.q.getHours(),e.q.setMonth(t),X6(e,i)}function Rgt(e,t){QF(this),this.f=t,this.g=e,WB(this),this.je()}function xgt(e,t){this.a=e,this.c=Ho(this.a),this.b=new VB(t)}function Cgt(e,t,i){this.a=t,this.c=e,this.b=(nr(i),new Rc(i))}function Agt(e,t,i){this.a=t,this.c=e,this.b=(nr(i),new Rc(i))}function Tgt(e){this.a=e,this.b=Fe(P7t,rt,2043,e.e.length,0,2)}function $gt(){this.a=new Oh,this.e=new Gi,this.g=0,this.i=0}function YB(){YB=F,Oce=new Fn,q9=new Fn,Egn(T6t,new wZe)}function Igt(){Igt=F,g7t=hc(new Ki,(Yo(),ll),(ss(),QM))}function Vve(){Vve=F,w7t=hc(new Ki,(Yo(),ll),(ss(),QM))}function Pgt(){Pgt=F,y7t=hc(new Ki,(Yo(),ll),(ss(),QM))}function Ogt(){Ogt=F,L7t=gr(new Ki,(Yo(),ll),(ss(),BI))}function mu(){mu=F,B7t=gr(new Ki,(Yo(),ll),(ss(),BI))}function Ngt(){Ngt=F,W7t=gr(new Ki,(Yo(),ll),(ss(),BI))}function zZ(){zZ=F,z7t=gr(new Ki,(Yo(),ll),(ss(),BI))}function e6(e,t,i,s,a,c){return new gb(e.e,t,e.Lj(),i,s,a,c)}function Gs(e,t,i){return t==null?Ca(e.f,null,i):Jm(e.i,t,i)}function rs(e,t){e.c&&Ja(e.c.g,e),e.c=t,e.c&<(e.c.g,e)}function Oo(e,t){e.c&&Ja(e.c.a,e),e.c=t,e.c&<(e.c.a,e)}function Sl(e,t){e.i&&Ja(e.i.j,e),e.i=t,e.i&<(e.i.j,e)}function xo(e,t){e.d&&Ja(e.d.e,e),e.d=t,e.d&<(e.d.e,e)}function KZ(e,t){e.a&&Ja(e.a.k,e),e.a=t,e.a&<(e.a.k,e)}function qZ(e,t){e.b&&Ja(e.b.f,e),e.b=t,e.b&<(e.b.f,e)}function Mgt(e,t){Wvn(e,e.b,e.c),f(e.b.b,68),t&&f(t.b,68).b}function $Sn(e,t){return Qr(f(e.c,65).c.e.b,f(t.c,65).c.e.b)}function ISn(e,t){return Qr(f(e.c,65).c.e.a,f(t.c,65).c.e.a)}function PSn(e){return ute(),cn(),f(e.a,86).d.e!=0}function QB(e,t){ve(e.Cb,184)&&(f(e.Cb,184).tb=null),Ra(e,t)}function XZ(e,t){ve(e.Cb,90)&&l_(Bc(f(e.Cb,90)),4),Ra(e,t)}function OSn(e,t){w2e(e,t),ve(e.Cb,90)&&l_(Bc(f(e.Cb,90)),2)}function NSn(e,t){var i,s;i=t.c,s=i!=null,s&&r3(e,new Bv(t.c))}function Dgt(e){var t,i;return i=(qx(),t=new fm,t),CC(i,e),i}function Lgt(e){var t,i;return i=(qx(),t=new fm,t),CC(i,e),i}function jgt(e){for(var t;;)if(t=e.Pb(),!e.Ob())return t}function MSn(e,t,i){return lt(e.a,(LB(),zte(t,i),new mm(t,i))),e}function fa(e,t){return Ss(),kee(t)?new wB(t,e):new s7(t,e)}function D7(e){return Uh(),Jl(e,0)>=0?j1(e):X$(j1(gg(e)))}function DSn(e){var t;return t=f(bB(e.b),9),new Uu(e.a,t,e.c)}function Fgt(e,t){var i;return i=f(Zv(o3(e.a),t),16),i?i.gc():0}function Bgt(e,t,i){var s;f_t(t,i,e.c.length),s=i-t,hwe(e.c,t,s)}function dg(e,t,i){f_t(t,i,e.gc()),this.c=e,this.a=t,this.b=i-t}function l3(e){this.c=new li,this.b=e.b,this.d=e.c,this.a=e.a}function JZ(e){this.a=h.Math.cos(e),this.b=h.Math.sin(e)}function tw(e,t,i,s){this.c=e,this.d=s,KZ(this,t),qZ(this,i)}function zve(e,t){Zpn.call(this,new Fk(qv(e))),Su(t,MCt),this.a=t}function Wgt(e,t,i){return new gne(e,(RC(),pse),null,!1,t,i)}function Hgt(e,t,i){return new gne(e,(RC(),gse),t,i,null,!1)}function LSn(){return Tc(),se(ie(qs,1),Je,108,0,[v4e,pl,k_])}function jSn(){return Ya(),se(ie(eIt,1),Je,472,0,[Ld,Z1,ad])}function FSn(){return Ac(),se(ie(Q6t,1),Je,471,0,[tp,Q1,ld])}function BSn(){return Pd(),se(ie(R_,1),Je,237,0,[Nl,Aa,Ml])}function WSn(){return l6(),se(ie(hTe,1),Je,391,0,[Mse,Nse,Dse])}function HSn(){return Km(),se(ie(Yse,1),Je,372,0,[_y,e0,vy])}function USn(){return u6(),se(ie(h$e,1),Je,322,0,[HI,t9,d$e])}function GSn(){return $W(),se(ie(b$e,1),Je,351,0,[p$e,uV,lle])}function VSn(){return uw(),se(ie(_8t,1),Je,460,0,[ule,o4,H2])}function zSn(){return BC(),se(ie(vle,1),Je,299,0,[mle,yle,n9])}function KSn(){return wb(),se(ie(T8t,1),Je,311,0,[r9,G2,J3])}function qSn(){return v6(),se(ie(wIe,1),Je,390,0,[Xle,gIe,WV])}function XSn(){return Cs(),se(ie(c7t,1),Je,463,0,[i5,Pc,Ta])}function JSn(){return GW(),se(ie($Ie,1),Je,387,0,[AIe,iae,TIe])}function YSn(){return w6(),se(ie(IIe,1),Je,349,0,[sae,oae,p9])}function QSn(){return qC(),se(ie(OIe,1),Je,350,0,[lae,PIe,o5])}function ZSn(){return TW(),se(ie(DIe,1),Je,352,0,[MIe,aae,NIe])}function e2n(){return qW(),se(ie(LIe,1),Je,388,0,[cae,m4,H_])}function t2n(){return zm(),se(ie($7t,1),Je,464,0,[b9,s5,VV])}function Yd(e){return kl(se(ie(wo,1),rt,8,0,[e.i.n,e.n,e.a]))}function n2n(){return m6(),se(ie(e5e,1),Je,392,0,[ZIe,dae,w9])}function Ugt(){Ugt=F,WNt=hc(new Ki,(k3(),u5),(K6(),GIe))}function ZB(){ZB=F,Rae=new Gwe("DFS",0),_5e=new Gwe("BFS",1)}function Ggt(e,t,i){var s;s=new RJe,s.b=t,s.a=i,++t.b,lt(e.d,s)}function r2n(e,t,i){var s;s=new us(i.d),Mr(s,e),g2e(t,s.a,s.b)}function i2n(e,t){Lft(e,tr(fo($m(t,24),pU)),tr(fo(t,pU)))}function Uv(e,t){if(e<0||e>t)throw ne(new Hs(hRe+e+pRe+t))}function qt(e,t){if(e<0||e>=t)throw ne(new Hs(hRe+e+pRe+t))}function pn(e,t){if(e<0||e>=t)throw ne(new ewe(hRe+e+pRe+t))}function Vt(e,t){this.b=(mn(e),e),this.a=t&g_?t:t|64|Vh}function Kve(e){var t;return L1(e),t=(Lm(),Lm(),fse),RW(e,t)}function o2n(e,t,i){var s;return s=Q6(e,t,!1),s.b<=t&&s.a<=i}function s2n(){return gW(),se(ie(b8e,1),Je,439,0,[qae,p8e,h8e])}function l2n(){return rH(),se(ie(J5e,1),Je,394,0,[X5e,Uae,q5e])}function a2n(){return cH(),se(ie(K5e,1),Je,445,0,[S9,oz,Lae])}function c2n(){return vH(),se(ie(mMt,1),Je,456,0,[jae,Bae,Fae])}function u2n(){return bN(),se(ie(A5e,1),Je,393,0,[nz,x5e,C5e])}function f2n(){return UW(),se(ie(z5e,1),Je,300,0,[Dae,V5e,G5e])}function d2n(){return vb(),se(ie(XPe,1),Je,346,0,[Sz,Wg,T5])}function h2n(){return _N(),se(ie(Xae,1),Je,444,0,[cz,uz,fz])}function p2n(){return nh(),se(ie(LPe,1),Je,278,0,[R4,K_,x4])}function b2n(){return m3(),se(ie(nOe,1),Je,280,0,[tOe,X_,Az])}function Wm(e){return nr(e),ve(e,16)?new Rc(f(e,16)):aC(e.Kc())}function qve(e,t){return e&&e.equals?e.equals(t):Oe(e)===Oe(t)}function fo(e,t){return O1(lvn(ul(e)?yf(e):e,ul(t)?yf(t):t))}function Ad(e,t){return O1(avn(ul(e)?yf(e):e,ul(t)?yf(t):t))}function YZ(e,t){return O1(cvn(ul(e)?yf(e):e,ul(t)?yf(t):t))}function g2n(e,t){var i;return i=(mn(e),e).g,Hme(!!i),mn(t),i(t)}function Vgt(e,t){var i,s;return s=fC(e,t),i=e.a.fd(s),new Jat(e,i)}function w2n(e){return e.Db>>16!=6?null:f(Rne(e),241)}function m2n(e){if(e.p!=2)throw ne(new ac);return tr(e.f)&Ji}function y2n(e){if(e.p!=2)throw ne(new ac);return tr(e.k)&Ji}function Z(e){return In(e.as?1:0}function Xgt(e,t){var i,s;return i=vee(t),s=i,f(En(e.c,s),17).a}function QZ(e,t,i){var s;s=e.d[t.p],e.d[t.p]=e.d[i.p],e.d[i.p]=s}function $2n(e,t,i){var s;e.n&&t&&i&&(s=new aZe,lt(e.e,s))}function ZZ(e,t){if(Zi(e.a,t),t.d)throw ne(new vl(iAt));t.d=e}function Yve(e,t){this.a=new st,this.d=new st,this.f=e,this.c=t}function Jgt(){this.c=new Oft,this.a=new F0t,this.b=new Yst,bct()}function Ygt(){g3(),this.b=new Fn,this.a=new Fn,this.c=new st}function Qgt(e,t,i){this.d=e,this.j=t,this.e=i,this.o=-1,this.p=3}function Zgt(e,t,i){this.d=e,this.k=t,this.f=i,this.o=-1,this.p=5}function e1t(e,t,i,s,a,c){Y_e.call(this,e,t,i,s,a),c&&(this.o=-2)}function t1t(e,t,i,s,a,c){Q_e.call(this,e,t,i,s,a),c&&(this.o=-2)}function n1t(e,t,i,s,a,c){b_e.call(this,e,t,i,s,a),c&&(this.o=-2)}function r1t(e,t,i,s,a,c){tSe.call(this,e,t,i,s,a),c&&(this.o=-2)}function i1t(e,t,i,s,a,c){g_e.call(this,e,t,i,s,a),c&&(this.o=-2)}function o1t(e,t,i,s,a,c){Z_e.call(this,e,t,i,s,a),c&&(this.o=-2)}function s1t(e,t,i,s,a,c){eSe.call(this,e,t,i,s,a),c&&(this.o=-2)}function l1t(e,t,i,s,a,c){w_e.call(this,e,t,i,s,a),c&&(this.o=-2)}function a1t(e,t,i,s){Xj.call(this,i),this.b=e,this.c=t,this.d=s}function c1t(e,t){this.f=e,this.a=(SC(),Wz),this.c=Wz,this.b=t}function u1t(e,t){this.g=e,this.d=(SC(),Hz),this.a=Hz,this.b=t}function Qve(e,t){!e.c&&(e.c=new Pi(e,0)),iU(e.c,(Jr(),W5),t)}function I2n(e,t){return hPn(e,t,ve(t,102)&&(f(t,19).Bb&ys)!=0)}function P2n(e,t){return Gpt(Gl(e.q.getTime()),Gl(t.q.getTime()))}function f1t(e){return oZ(e.e.Rd().gc()*e.c.Rd().gc(),16,new Mnt(e))}function O2n(e){return!!e.u&&ra(e.u.a).i!=0&&!(e.n&&Hte(e.n))}function N2n(e){return!!e.a&&Wc(e.a.a).i!=0&&!(e.b&&Ute(e.b))}function Zve(e,t){return t==0?!!e.o&&e.o.f!=0:Dte(e,t)}function M2n(e,t,i){var s;return s=f(e.Zb().xc(t),16),!!s&&s.Hc(i)}function d1t(e,t,i){var s;return s=f(e.Zb().xc(t),16),!!s&&s.Mc(i)}function h1t(e,t){var i;return i=1-t,e.a[i]=jW(e.a[i],i),jW(e,t)}function p1t(e,t){var i,s;return s=fo(e,Ts),i=Zf(t,32),Ad(i,s)}function b1t(e,t,i){var s;s=(nr(e),new Rc(e)),LTn(new Cgt(s,t,i))}function L7(e,t,i){var s;s=(nr(e),new Rc(e)),jTn(new Agt(s,t,i))}function Tl(e,t,i,s,a,c){return zyt(e,t,i,c),a2e(e,s),c2e(e,a),e}function g1t(e,t,i,s){return e.a+=""+Vu(t==null?Za:dl(t),i,s),e}function No(e,t){this.a=e,YT.call(this,e),Uv(t,e.gc()),this.b=t}function w1t(e){this.a=Fe(ho,on,1,MSe(h.Math.max(8,e))<<1,5,1)}function j7(e){return f(ih(e,Fe(Op,$g,10,e.c.length,0,1)),199)}function Fh(e){return f(ih(e,Fe(Use,gie,18,e.c.length,0,1)),483)}function m1t(e){return e.a?e.e.length==0?e.a.a:e.a.a+(""+e.e):e.c}function t6(e){for(;e.d>0&&e.a[--e.d]==0;);e.a[e.d++]==0&&(e.e=0)}function y1t(e){return In(e.b.b!=e.d.a),e.c=e.b=e.b.b,--e.a,e.c.c}function D2n(e,t,i){e.a=t,e.c=i,e.b.a.$b(),wu(e.d),xv(e.e.a.c,0)}function v1t(e,t){var i;e.e=new G0e,i=c_(t),Hi(i,e.c),N3t(e,i,0)}function qi(e,t,i,s){var a;a=new j1e,a.a=t,a.b=i,a.c=s,hr(e.a,a)}function it(e,t,i,s){var a;a=new j1e,a.a=t,a.b=i,a.c=s,hr(e.b,a)}function _1t(e,t,i){if(e<0||ti)throw ne(new Hs(XIn(e,t,i)))}function F7(e,t){if(e<0||e>=t)throw ne(new Hs(x5n(e,t)));return e}function L2n(e){if(!("stack"in e))try{throw e}catch{}return e}function ZS(e){return d$(),ve(e.g,10)?f(e.g,10):null}function j2n(e){return YS(e).dc()?!1:(l1n(e,new G),!0)}function rw(e){var t;return ul(e)?(t=e,t==-0?0:t):Zkn(e)}function S1t(e,t){return ve(t,44)?qte(e.a,f(t,44)):!1}function E1t(e,t){return ve(t,44)?qte(e.a,f(t,44)):!1}function k1t(e,t){return ve(t,44)?qte(e.a,f(t,44)):!1}function e_e(e){var t;return A1(e),t=new re,MS(e.a,new xrt(t)),t}function t_e(){var e,t,i;return t=(i=(e=new fm,e),i),lt(jOe,t),t}function eW(e){var t;return A1(e),t=new Te,MS(e.a,new Crt(t)),t}function F2n(e,t){return e.a<=e.b?(t.Dd(e.a++),!0):!1}function R1t(e){Wee.call(this,e,(RC(),hse),null,!1,null,!1)}function x1t(){x1t=F,PIt=Qn((pF(),se(ie(V4e,1),Je,489,0,[xse])))}function C1t(){C1t=F,FIe=ybt(ot(1),ot(4)),jIe=ybt(ot(1),ot(2))}function B2n(e,t){return new ZQ(t,j$(Ho(t.e),e,e),(cn(),!0))}function tW(e){return new ka((Su(e,wre),EW(is(is(5,e),e/10|0))))}function W2n(e){return oZ(e.e.Rd().gc()*e.c.Rd().gc(),273,new Nnt(e))}function A1t(e){return f(ih(e,Fe(W5t,DAt,12,e.c.length,0,1)),2042)}function H2n(e){return mu(),!ms(e)&&!(!ms(e)&&e.c.i.c==e.d.i.c)}function U2n(e,t){return p3(),f(V(t,(Il(),tE)),17).a>=e.gc()}function n6(e,t){Rjn(t,e),Nye(e.d),Nye(f(V(e,(bt(),NV)),214))}function eee(e,t){xjn(t,e),Mye(e.d),Mye(f(V(e,(bt(),NV)),214))}function G2n(e,t,i){e.d&&Ja(e.d.e,e),e.d=t,e.d&&Tm(e.d.e,i,e)}function V2n(e,t,i){return i.f.c.length>0?cve(e.a,t,i):cve(e.b,t,i)}function z2n(e,t,i){var s;s=c4n();try{return O0n(e,t,i)}finally{jEn(s)}}function Hm(e,t){var i,s;return i=fb(e,t),s=null,i&&(s=i.pe()),s}function r6(e,t){var i,s;return i=fb(e,t),s=null,i&&(s=i.se()),s}function vC(e,t){var i,s;return i=Kv(e,t),s=null,i&&(s=i.se()),s}function db(e,t){var i,s;return i=fb(e,t),s=null,i&&(s=eke(i)),s}function K2n(e,t,i){var s;return s=nA(i),ZH(e.g,s,t),ZH(e.i,t,i),t}function n_e(e,t,i){this.d=new Fit(this),this.e=e,this.i=t,this.f=i}function T1t(e,t,i,s){this.e=null,this.c=e,this.d=t,this.a=i,this.b=s}function $1t(e,t,i,s){Cft(this),this.c=e,this.e=t,this.f=i,this.b=s}function r_e(e,t,i,s){this.d=e,this.n=t,this.g=i,this.o=s,this.p=-1}function I1t(e,t,i,s){return ve(i,59)?new ldt(e,t,i,s):new rve(e,t,i,s)}function _C(e){return ve(e,16)?f(e,16).dc():!e.Kc().Ob()}function P1t(e){if(e.e.g!=e.b)throw ne(new Bu);return!!e.c&&e.d>0}function Bn(e){return In(e.b!=e.d.c),e.c=e.b,e.b=e.b.a,++e.a,e.c.c}function i_e(e,t){mn(t),Ci(e.a,e.c,t),e.c=e.c+1&e.a.length-1,e2t(e)}function $1(e,t){mn(t),e.b=e.b-1&e.a.length-1,Ci(e.a,e.b,t),e2t(e)}function O1t(e){var t;t=e.Gh(),this.a=ve(t,71)?f(t,71).Ii():t.Kc()}function q2n(e){return new Vt(O3n(f(e.a.md(),16).gc(),e.a.ld()),16)}function N1t(){N1t=F,XMt=Qn((wF(),se(ie(y8e,1),Je,490,0,[Jae])))}function M1t(){M1t=F,YMt=Qn((mF(),se(ie(JMt,1),Je,558,0,[Yae])))}function D1t(){D1t=F,b9t=Qn((h$(),se(ie(B8e,1),Je,539,0,[x9])))}function X2n(){return hw(),se(ie(wTe,1),Je,389,0,[A_,gTe,Wse,Hse])}function J2n(){return RC(),se(ie(CG,1),Je,304,0,[hse,pse,bse,gse])}function Y2n(){return _3(),se(ie(CIt,1),Je,332,0,[GM,UM,VM,zM])}function Q2n(){return I6(),se(ie($It,1),Je,406,0,[KM,IG,PG,qM])}function Z2n(){return Xm(),se(ie(RIt,1),Je,417,0,[HM,WM,kse,Rse])}function eEn(){return WC(),se(ie(T5t,1),Je,416,0,[yy,C_,x_,L2])}function tEn(){return rh(),se(ie(o8t,1),Je,421,0,[X3,QA,ZA,Jse])}function nEn(){return KW(),se(ie(q5t,1),Je,371,0,[Xse,iV,oV,ZM])}function rEn(){return n_(),se(ie(Yle,1),Je,203,0,[HV,Jle,Z2,Q2])}function iEn(){return Wh(),se(ie(xIe,1),Je,284,0,[Dg,RIe,eae,tae])}function oEn(e){var t;return e.j==(ut(),jn)&&(t=Skt(e),fc(t,_n))}function sEn(e,t){var i;i=t.a,rs(i,t.c.d),xo(i,t.d.d),Yv(i.a,e.n)}function o_e(e,t){var i;return i=f(th(e.b,t),67),!i&&(i=new li),i}function c3(e){return d$(),ve(e.g,154)?f(e.g,154):null}function lEn(e){e.a=null,e.e=null,xv(e.b.c,0),xv(e.f.c,0),e.c=null}function nW(){nW=F,_le=new Lwe($A,0),N$e=new Lwe("TOP_LEFT",1)}function i6(){i6=F,a5=new Fwe("UPPER",0),l5=new Fwe("LOWER",1)}function aEn(e,t){return zk(new tt(t.e.a+t.f.a/2,t.e.b+t.f.b/2),e)}function L1t(e,t){return f(tu(jv(f(Hr(e.k,t),15).Oc(),F2)),113)}function j1t(e,t){return f(tu(e3(f(Hr(e.k,t),15).Oc(),F2)),113)}function cEn(){return k3(),se(ie(HIe,1),Je,405,0,[XV,c5,u5,f5])}function uEn(){return y6(),se(ie(v5e,1),Je,353,0,[kae,ez,Eae,Sae])}function fEn(){return kH(),se(ie(U5e,1),Je,354,0,[Mae,W5e,H5e,B5e])}function dEn(){return su(),se(ie(N5,1),Je,386,0,[H9,Vw,W9,q_])}function hEn(){return ku(),se(ie(nDt,1),Je,291,0,[j9,Dp,a0,L9])}function pEn(){return _b(),se(ie(kce,1),Je,223,0,[Ece,D9,C4,uR])}function bEn(){return oH(),se(ie(aOe,1),Je,320,0,[Cce,oOe,lOe,sOe])}function gEn(){return XW(),se(ie(yDt,1),Je,415,0,[Ace,uOe,cOe,fOe])}function wEn(e){return YB(),Na(Oce,e)?f(En(Oce,e),341).Qg():null}function zu(e,t,i){return t<0?Sne(e,i):f(i,69).wk().Bk(e,e.hi(),t)}function mEn(e,t,i){var s;return s=nA(i),ZH(e.j,s,t),xr(e.k,t,i),t}function yEn(e,t,i){var s;return s=nA(i),ZH(e.d,s,t),xr(e.e,t,i),t}function F1t(e){var t,i;return t=(v1(),i=new eY,i),e&&UH(t,e),t}function s_e(e){var t;return t=e.aj(e.i),e.i>0&&oa(e.g,0,t,0,e.i),t}function B1t(e,t){var i;for(i=e.j.c.length;i>24}function _En(e){if(e.p!=1)throw ne(new ac);return tr(e.k)<<24>>24}function SEn(e){if(e.p!=7)throw ne(new ac);return tr(e.k)<<16>>16}function EEn(e){if(e.p!=7)throw ne(new ac);return tr(e.f)<<16>>16}function e2(e,t){return t.e==0||e.e==0?MI:(pA(),Ine(e,t))}function U1t(e,t){return Oe(t)===Oe(e)?"(this Map)":t==null?Za:dl(t)}function kEn(e,t,i){return pZ(je(tl(xs(e.f,t))),je(tl(xs(e.f,i))))}function REn(e,t,i){var s;s=f(En(e.g,i),60),lt(e.a.c,new io(t,s))}function G1t(e,t,i){e.i=0,e.e=0,t!=i&&(xvt(e,t,i),Rvt(e,t,i))}function xEn(e,t,i,s,a){var c;c=CPn(a,i,s),lt(t,y5n(a,c)),uIn(e,a,t)}function l_e(e,t,i,s,a){this.i=e,this.a=t,this.e=i,this.j=s,this.f=a}function V1t(e,t){jve.call(this),this.a=e,this.b=t,lt(this.a.b,this)}function z1t(e){this.b=new Fn,this.c=new Fn,this.d=new Fn,this.a=e}function K1t(e,t){var i;return i=new jk,e.Gd(i),i.a+="..",t.Hd(i),i.a}function q1t(e,t){var i;for(i=t;i;)Cm(e,i.i,i.j),i=di(i);return e}function X1t(e,t,i){var s;return s=nA(i),xr(e.b,s,t),xr(e.c,t,i),t}function hb(e){var t;for(t=0;e.Ob();)e.Pb(),t=is(t,1);return EW(t)}function yp(e,t){Ss();var i;return i=f(e,69).vk(),xIn(i,t),i.xl(t)}function CEn(e,t,i){if(i){var s=i.oe();e.a[t]=s(i)}else delete e.a[t]}function a_e(e,t){var i;i=e.q.getHours(),e.q.setFullYear(t+V1),X6(e,i)}function AEn(e,t){return f(t==null?tl(xs(e.f,null)):w$(e.i,t),288)}function c_e(e,t){return e==(gn(),ji)&&t==ji?4:e==ji||t==ji?8:32}function rW(e,t,i){return tU(e,t,i,ve(t,102)&&(f(t,19).Bb&ys)!=0)}function TEn(e,t,i){return mA(e,t,i,ve(t,102)&&(f(t,19).Bb&ys)!=0)}function $En(e,t,i){return vPn(e,t,i,ve(t,102)&&(f(t,19).Bb&ys)!=0)}function u_e(e){e.b!=e.c&&(e.a=Fe(ho,on,1,8,5,1),e.b=0,e.c=0)}function o6(e){return In(e.a=0&&e.a[i]===t[i];i--);return i<0}function iW(e){var t;return e?new Kye(e):(t=new Oh,Fee(t,e),t)}function LEn(e,t){var i,s;s=!1;do i=bvt(e,t),s=s|i;while(i);return s}function jEn(e){e&&u3n((J0e(),zAe)),--_G,e&&SG!=-1&&(Tgn(SG),SG=-1)}function oW(e){jEe(),Lft(this,tr(fo($m(e,24),pU)),tr(fo(e,pU)))}function e0t(){e0t=F,z6t=Qn((pH(),se(ie(S4e,1),Je,436,0,[yse,_4e])))}function t0t(){t0t=F,K6t=Qn((_W(),se(ie(k4e,1),Je,435,0,[E4e,vse])))}function n0t(){n0t=F,XIt=Qn((SW(),se(ie(Q4e,1),Je,432,0,[Ise,MG])))}function r0t(){r0t=F,V5t=Qn((MC(),se(ie(G5t,1),Je,517,0,[YM,Vse])))}function i0t(){i0t=F,I8t=Qn((nW(),se(ie(M$e,1),Je,429,0,[_le,N$e])))}function o0t(){o0t=F,v8t=Qn((tN(),se(ie(y$e,1),Je,428,0,[fV,m$e])))}function s0t(){s0t=F,k8t=Qn((q7(),se(ie(S$e,1),Je,488,0,[_$e,hV])))}function l0t(){l0t=F,a7t=Qn((Z7(),se(ie(CIe,1),Je,430,0,[nae,rae])))}function a0t(){a0t=F,D7t=Qn((i6(),se(ie(M7t,1),Je,531,0,[a5,l5])))}function c0t(){c0t=F,g8t=Qn((hW(),se(ie(f$e,1),Je,431,0,[u$e,sle])))}function u0t(){u0t=F,BNt=Qn((ZB(),se(ie(S5e,1),Je,433,0,[Rae,_5e])))}function f0t(){f0t=F,VNt=Qn((LW(),se(ie(E5e,1),Je,501,0,[tz,rE])))}function d0t(){d0t=F,U7t=Qn((jh(),se(ie(H7t,1),Je,523,0,[Oy,Lg])))}function h0t(){h0t=F,V7t=Qn((Jd(),se(ie(G7t,1),Je,522,0,[Fw,ph])))}function p0t(){p0t=F,sNt=Qn((Td(),se(ie(oNt,1),Je,528,0,[U_,i0])))}function b0t(){b0t=F,hNt=Qn((Bm(),se(ie(dNt,1),Je,465,0,[o0,eE])))}function g0t(){g0t=F,qNt=Qn((bW(),se(ie(R5e,1),Je,434,0,[k5e,Iae])))}function w0t(){w0t=F,UMt=Qn((lW(),se(ie(d8e,1),Je,491,0,[Kae,f8e])))}function m0t(){m0t=F,VMt=Qn((zee(),se(ie(m8e,1),Je,492,0,[g8e,w8e])))}function y0t(){y0t=F,QMt=Qn((U7(),se(ie(v8e,1),Je,438,0,[Qae,dz])))}function v0t(){v0t=F,g9t=Qn((fN(),se(ie(H8e,1),Je,437,0,[pz,W8e])))}function _0t(){_0t=F,gDt=Qn((YQ(),se(ie(Tz,1),Je,347,0,[rOe,iOe])))}function FEn(){return Xi(),se(ie(C5,1),Je,88,0,[wh,al,Js,gh,cf])}function BEn(){return ut(),se(ie(vs,1),Ql,64,0,[Cl,bn,_n,jn,wn])}function WEn(e,t,i){return f(t==null?Ca(e.f,null,i):Jm(e.i,t,i),288)}function HEn(e){return(e.k==(gn(),ji)||e.k==Ui)&&ri(e,(nt(),zI))}function oee(e){return e.c&&e.d?Jve(e.c)+"->"+Jve(e.d):"e_"+xm(e)}function Vo(e,t){var i,s;for(mn(t),s=e.Kc();s.Ob();)i=s.Pb(),t.Cd(i)}function UEn(e,t){var i;i=new Nk,ew(i,"x",t.a),ew(i,"y",t.b),r3(e,i)}function GEn(e,t){var i;i=new Nk,ew(i,"x",t.a),ew(i,"y",t.b),r3(e,i)}function S0t(e,t){var i;for(i=t;i;)Cm(e,-i.i,-i.j),i=di(i);return e}function d_e(e,t){var i,s;for(i=t,s=0;i>0;)s+=e.a[i],i-=i&-i;return s}function Ku(e,t,i){var s;return s=(qt(t,e.c.length),e.c[t]),e.c[t]=i,s}function h_e(e,t,i){e.a.c.length=0,bDn(e,t,i),e.a.c.length==0||HNn(e,t)}function B7(e){e.i=0,zO(e.b,null),zO(e.c,null),e.a=null,e.e=null,++e.g}function sW(){sW=F,fh=!0,D6t=!1,L6t=!1,F6t=!1,j6t=!1}function see(e){sW(),!fh&&(this.c=e,this.e=!0,this.a=new st)}function E0t(e,t){this.c=0,this.b=t,zut.call(this,e,17493),this.a=this.c}function k0t(e){xCt(),Pst(this),this.a=new li,zSe(this,e),hr(this.a,e)}function R0t(){TQ(this),this.b=new tt(hi,hi),this.a=new tt(to,to)}function lW(){lW=F,Kae=new Kwe(URe,0),f8e=new Kwe("TARGET_WIDTH",1)}function t2(e,t){return(L1(e),Xx(new Wt(e,new B_e(t,e.a)))).Bd(z3)}function VEn(){return Yo(),se(ie(pTe,1),Je,367,0,[cd,Pp,sa,ga,ll])}function zEn(){return i_(),se(ie(l8t,1),Je,375,0,[e9,aV,cV,lV,sV])}function KEn(){return Eg(),se(ie(w$e,1),Je,348,0,[ale,g$e,cle,i4,r4])}function qEn(){return $6(),se(ie(yIe,1),Je,323,0,[mIe,Qle,Zle,n5,r5])}function XEn(){return ef(),se(ie(q$e,1),Je,171,0,[l9,qI,n0,XI,O_])}function JEn(){return IH(),se(ie(zNt,1),Je,368,0,[Tae,xae,$ae,Cae,Aae])}function YEn(){return U6(),se(ie(zMt,1),Je,373,0,[iE,oR,v5,y5,R9])}function QEn(){return DN(),se(ie(k8e,1),Je,324,0,[_8e,Zae,E8e,ece,S8e])}function ZEn(){return Nd(),se(ie(Mp,1),Je,170,0,[rn,lo,op,Bw,Fg])}function ekn(){return a2(),se(ie(I5,1),Je,256,0,[c0,F9,JPe,$5,YPe])}function tkn(e){return iF(),function(){return z2n(e,this,arguments)}}function ms(e){return!e.c||!e.d?!1:!!e.c.i&&e.c.i==e.d.i}function p_e(e,t){return ve(t,143)?Ht(e.c,f(t,143).c):!1}function Bc(e){return e.t||(e.t=new Sst(e),k6(new jlt(e),0,e.t)),e.t}function x0t(e){this.b=e,Sn.call(this,e),this.a=f(dn(this.b.a,4),129)}function C0t(e){this.b=e,qk.call(this,e),this.a=f(dn(this.b.a,4),129)}function ed(e,t,i,s,a){L0t.call(this,t,s,a),this.c=e,this.b=i}function b_e(e,t,i,s,a){Qgt.call(this,t,s,a),this.c=e,this.a=i}function g_e(e,t,i,s,a){Zgt.call(this,t,s,a),this.c=e,this.a=i}function w_e(e,t,i,s,a){L0t.call(this,t,s,a),this.c=e,this.a=i}function lee(e,t){var i;return i=f(th(e.d,t),23),i||f(th(e.e,t),23)}function A0t(e,t){var i,s;return i=t.ld(),s=e.Fe(i),!!s&&Ul(s.e,t.md())}function T0t(e,t){var i;return i=t.ld(),new mm(i,e.e.pc(i,f(t.md(),16)))}function nkn(e,t){var i;return i=e.a.get(t),i??Fe(ho,on,1,0,5,1)}function $0t(e){var t;return t=e.length,Ht(vn.substr(vn.length-t,t),e)}function On(e){if(Un(e))return e.c=e.a,e.a.Pb();throw ne(new yl)}function m_e(e,t){return t==0||e.e==0?e:t>0?y3t(e,t):U_t(e,-t)}function u3(e,t){return t==0||e.e==0?e:t>0?U_t(e,t):y3t(e,-t)}function y_e(e){hgn.call(this,e==null?Za:dl(e),ve(e,82)?f(e,82):null)}function I0t(e){var t;return e.c||(t=e.r,ve(t,90)&&(e.c=f(t,29))),e.c}function aee(e){var t;return t=new jm,ol(t,e),Xe(t,(bt(),Xs),null),t}function P0t(e){var t,i;return t=e.c.i,i=e.d.i,t.k==(gn(),Ui)&&i.k==Ui}function cee(e){var t,i,s;return t=e&Vc,i=e>>22&Vc,s=e<0?Ab:0,Oa(t,i,s)}function rkn(e){var t,i,s,a;for(i=e,s=0,a=i.length;s=0?e.Lh(s,i,!0):ry(e,t,i)}function okn(e,t,i){return Qr(zk(iA(e),Ho(t.b)),zk(iA(e),Ho(i.b)))}function skn(e,t,i){return Qr(zk(iA(e),Ho(t.e)),zk(iA(e),Ho(i.e)))}function lkn(e,t){return h.Math.min(I1(t.a,e.d.d.c),I1(t.b,e.d.d.c))}function W7(e,t){e._i(e.i+1),M$(e,e.i,e.Zi(e.i,t)),e.Mi(e.i++,t),e.Ni()}function s6(e){var t,i;++e.j,t=e.g,i=e.i,e.g=null,e.i=0,e.Oi(i,t),e.Ni()}function O0t(e,t,i){var s;s=new mme(e.a),h6(s,e.a.a),Ca(s.f,t,i),e.a.a=s}function v_e(e,t,i,s){var a;for(a=0;at)throw ne(new Hs(cke(e,t,"index")));return e}function pg(e,t){var i;return i=(qt(t,e.c.length),e.c[t]),hwe(e.c,t,1),i}function E_e(e,t){var i,s;return i=(mn(e),e),s=(mn(t),t),i==s?0:it.p?-1:0}function W0t(e){var t;return e.a||(t=e.r,ve(t,156)&&(e.a=f(t,156))),e.a}function hkn(e,t,i){var s;return++e.e,--e.f,s=f(e.d[t].gd(i),136),s.md()}function pkn(e){var t,i;return t=e.ld(),i=f(e.md(),16),v7(i.Nc(),new Lnt(t))}function H0t(e,t){return Na(e.a,t)?(f3(e.a,t),!0):!1}function d3(e,t,i){return F7(t,e.e.Rd().gc()),F7(i,e.c.Rd().gc()),e.a[t][i]}function cW(e,t,i){this.a=e,this.b=t,this.c=i,lt(e.t,this),lt(t.i,this)}function uW(e,t,i,s){this.f=e,this.e=t,this.d=i,this.b=s,this.c=s?s.d:null}function H7(){this.b=new li,this.a=new li,this.b=new li,this.a=new li}function SC(){SC=F;var e,t;Wz=(qx(),t=new Qj,t),Hz=(e=new _Y,e)}function bkn(e){var t;return L1(e),t=new Nht(e,e.a.e,e.a.d|4),new Gme(e,t)}function U0t(e){var t;for(A1(e),t=0;e.a.Bd(new pt);)t=is(t,1);return t}function fW(e,t){return mn(t),e.c=0,"Initial capacity must not be negative")}function dW(){dW=F,_5=new Xr("org.eclipse.elk.labels.labelManager")}function G0t(){G0t=F,o$e=new _i("separateLayerConnections",(KW(),Xse))}function Td(){Td=F,U_=new Hwe("REGULAR",0),i0=new Hwe("CRITICAL",1)}function U7(){U7=F,Qae=new Xwe("FIXED",0),dz=new Xwe("CENTER_NODE",1)}function hW(){hW=F,u$e=new Nwe("QUADRATIC",0),sle=new Nwe("SCANLINE",1)}function V0t(){V0t=F,w8t=Qn((u6(),se(ie(h$e,1),Je,322,0,[HI,t9,d$e])))}function z0t(){z0t=F,m8t=Qn(($W(),se(ie(b$e,1),Je,351,0,[p$e,uV,lle])))}function K0t(){K0t=F,h8t=Qn((Km(),se(ie(Yse,1),Je,372,0,[_y,e0,vy])))}function q0t(){q0t=F,S8t=Qn((uw(),se(ie(_8t,1),Je,460,0,[ule,o4,H2])))}function X0t(){X0t=F,A8t=Qn((BC(),se(ie(vle,1),Je,299,0,[mle,yle,n9])))}function J0t(){J0t=F,$8t=Qn((wb(),se(ie(T8t,1),Je,311,0,[r9,G2,J3])))}function Y0t(){Y0t=F,r7t=Qn((v6(),se(ie(wIe,1),Je,390,0,[Xle,gIe,WV])))}function Q0t(){Q0t=F,f7t=Qn((GW(),se(ie($Ie,1),Je,387,0,[AIe,iae,TIe])))}function Z0t(){Z0t=F,d7t=Qn((w6(),se(ie(IIe,1),Je,349,0,[sae,oae,p9])))}function ewt(){ewt=F,u7t=Qn((Cs(),se(ie(c7t,1),Je,463,0,[i5,Pc,Ta])))}function twt(){twt=F,h7t=Qn((qC(),se(ie(OIe,1),Je,350,0,[lae,PIe,o5])))}function nwt(){nwt=F,p7t=Qn((TW(),se(ie(DIe,1),Je,352,0,[MIe,aae,NIe])))}function rwt(){rwt=F,b7t=Qn((qW(),se(ie(LIe,1),Je,388,0,[cae,m4,H_])))}function iwt(){iwt=F,gNt=Qn((m6(),se(ie(e5e,1),Je,392,0,[ZIe,dae,w9])))}function owt(){owt=F,XNt=Qn((bN(),se(ie(A5e,1),Je,393,0,[nz,x5e,C5e])))}function swt(){swt=F,gMt=Qn((UW(),se(ie(z5e,1),Je,300,0,[Dae,V5e,G5e])))}function lwt(){lwt=F,wMt=Qn((cH(),se(ie(K5e,1),Je,445,0,[S9,oz,Lae])))}function awt(){awt=F,yMt=Qn((vH(),se(ie(mMt,1),Je,456,0,[jae,Bae,Fae])))}function cwt(){cwt=F,SMt=Qn((rH(),se(ie(J5e,1),Je,394,0,[X5e,Uae,q5e])))}function uwt(){uwt=F,GMt=Qn((gW(),se(ie(b8e,1),Je,439,0,[qae,p8e,h8e])))}function fwt(){fwt=F,I7t=Qn((zm(),se(ie($7t,1),Je,464,0,[b9,s5,VV])))}function dwt(){dwt=F,Z6t=Qn((Ac(),se(ie(Q6t,1),Je,471,0,[tp,Q1,ld])))}function hwt(){hwt=F,Y6t=Qn((Pd(),se(ie(R_,1),Je,237,0,[Nl,Aa,Ml])))}function pwt(){pwt=F,tIt=Qn((Ya(),se(ie(eIt,1),Je,472,0,[Ld,Z1,ad])))}function bwt(){bwt=F,B6t=Qn((Tc(),se(ie(qs,1),Je,108,0,[v4e,pl,k_])))}function gwt(){gwt=F,_5t=Qn((l6(),se(ie(hTe,1),Je,391,0,[Mse,Nse,Dse])))}function wwt(){wwt=F,tDt=Qn((vb(),se(ie(XPe,1),Je,346,0,[Sz,Wg,T5])))}function mwt(){mwt=F,qMt=Qn((_N(),se(ie(Xae,1),Je,444,0,[cz,uz,fz])))}function ywt(){ywt=F,Y9t=Qn((nh(),se(ie(LPe,1),Je,278,0,[R4,K_,x4])))}function vwt(){vwt=F,bDt=Qn((m3(),se(ie(nOe,1),Je,280,0,[tOe,X_,Az])))}function eh(e,t){return!e.o&&(e.o=new pc((Yl(),Fp),Hg,e,0)),Cte(e.o,t)}function gkn(e,t){var i;e.C&&(i=f(Ds(e.b,t),127).n,i.d=e.C.d,i.a=e.C.a)}function A_e(e){var t,i,s,a;a=e.d,t=e.a,i=e.b,s=e.c,e.d=i,e.a=s,e.b=a,e.c=t}function wkn(e){return!e.g&&(e.g=new Bj),!e.g.b&&(e.g.b=new mst(e)),e.g.b}function G7(e){return!e.g&&(e.g=new Bj),!e.g.c&&(e.g.c=new _st(e)),e.g.c}function mkn(e){return!e.g&&(e.g=new Bj),!e.g.d&&(e.g.d=new yst(e)),e.g.d}function ykn(e){return!e.g&&(e.g=new Bj),!e.g.a&&(e.g.a=new vst(e)),e.g.a}function vkn(e,t,i,s){return i&&(s=i.Rh(t,yi(i.Dh(),e.c.uk()),null,s)),s}function _kn(e,t,i,s){return i&&(s=i.Th(t,yi(i.Dh(),e.c.uk()),null,s)),s}function hee(e,t,i,s){var a;return a=Fe(Xn,wr,28,t+1,15,1),RMn(a,e,t,i,s),a}function Fe(e,t,i,s,a,c){var b;return b=VSt(a,s),a!=10&&se(ie(e,c),t,i,a,b),b}function Skn(e,t,i){var s,a;for(a=new FC(t,e),s=0;si||t=0?e.Lh(i,!0,!0):ry(e,t,!0)}function Fkn(e,t,i){var s;return s=Evt(e,t,i),e.b=new FW(s.c.length),Yke(e,s)}function Bkn(e){if(e.b<=0)throw ne(new yl);return--e.b,e.a-=e.c.c,ot(e.a)}function Wkn(e){var t;if(!e.a)throw ne(new Obt);return t=e.a,e.a=di(e.a),t}function Hkn(e){for(;!e.a;)if(!oht(e.c,new Art(e)))return!1;return!0}function h3(e){var t;return nr(e),ve(e,204)?(t=f(e,204),t):new Vnt(e)}function Ukn(e){pW(),f(e.of((Er(),z_)),181).Fc(($c(),B9)),e.qf(vce,null)}function pW(){pW=F,y9t=new RQe,_9t=new xQe,v9t=Ixn((Er(),vce),y9t,l0,_9t)}function bW(){bW=F,k5e=new zwe("LEAF_NUMBER",0),Iae=new zwe("NODE_SIZE",1)}function mee(e){e.a=Fe(Xn,wr,28,e.b+1,15,1),e.c=Fe(Xn,wr,28,e.b,15,1),e.d=0}function Gkn(e,t){e.a.Ne(t.d,e.b)>0&&(lt(e.c,new Tye(t.c,t.d,e.d)),e.b=t.d)}function j_e(e,t){if(e.g==null||t>=e.i)throw ne(new kQ(t,e.i));return e.g[t]}function kwt(e,t,i){if(VC(e,i),i!=null&&!e.fk(i))throw ne(new mY);return i}function yee(e,t){return eN(t)!=10&&se(ou(t),t.Sm,t.__elementTypeId$,eN(t),e),e}function kC(e,t,i,s){var a;s=(Lm(),s||h4e),a=e.slice(t,i),uke(a,e,t,i,-t,s)}function qu(e,t,i,s,a){return t<0?ry(e,i,s):f(i,69).wk().yk(e,e.hi(),t,s,a)}function Vkn(e,t){return Qr(Ae(je(V(e,(nt(),ky)))),Ae(je(V(t,ky))))}function Rwt(){Rwt=F,N6t=Qn((RC(),se(ie(CG,1),Je,304,0,[hse,pse,bse,gse])))}function RC(){RC=F,hse=new SF("All",0),pse=new bft,bse=new kft,gse=new pft}function Ac(){Ac=F,tp=new XY(M3,0),Q1=new XY($A,1),ld=new XY(D3,2)}function xwt(){xwt=F,nU(),zOe=hi,SLt=to,KOe=new PO(hi),ELt=new PO(to)}function Cwt(){Cwt=F,xIt=Qn((Xm(),se(ie(RIt,1),Je,417,0,[HM,WM,kse,Rse])))}function Awt(){Awt=F,IIt=Qn((I6(),se(ie($It,1),Je,406,0,[KM,IG,PG,qM])))}function Twt(){Twt=F,AIt=Qn((_3(),se(ie(CIt,1),Je,332,0,[GM,UM,VM,zM])))}function $wt(){$wt=F,D5t=Qn((hw(),se(ie(wTe,1),Je,389,0,[A_,gTe,Wse,Hse])))}function Iwt(){Iwt=F,$5t=Qn((WC(),se(ie(T5t,1),Je,416,0,[yy,C_,x_,L2])))}function Pwt(){Pwt=F,s8t=Qn((rh(),se(ie(o8t,1),Je,421,0,[X3,QA,ZA,Jse])))}function Owt(){Owt=F,X5t=Qn((KW(),se(ie(q5t,1),Je,371,0,[Xse,iV,oV,ZM])))}function Nwt(){Nwt=F,i7t=Qn((n_(),se(ie(Yle,1),Je,203,0,[HV,Jle,Z2,Q2])))}function Mwt(){Mwt=F,l7t=Qn((Wh(),se(ie(xIe,1),Je,284,0,[Dg,RIe,eae,tae])))}function q7(){q7=F,_$e=new Dwe(Jh,0),hV=new Dwe("IMPROVE_STRAIGHTNESS",1)}function Dwt(e,t){var i,s;return s=t/e.c.Rd().gc()|0,i=t%e.c.Rd().gc(),d3(e,s,i)}function Lwt(e){var t;if(e.nl())for(t=e.i-1;t>=0;--t)Se(e,t);return s_e(e)}function F_e(e){var t,i;if(!e.b)return null;for(i=e.b;t=i.a[0];)i=t;return i}function jwt(e){var t,i;if(!e.b)return null;for(i=e.b;t=i.a[1];)i=t;return i}function zkn(e){return ve(e,180)?""+f(e,180).a:e==null?null:dl(e)}function Kkn(e){return ve(e,180)?""+f(e,180).a:e==null?null:dl(e)}function Fwt(e,t){if(t.a)throw ne(new vl(iAt));Zi(e.a,t),t.a=e,!e.j&&(e.j=t)}function B_e(e,t){zF.call(this,t.zd(),t.yd()&-16449),mn(e),this.a=e,this.c=t}function qkn(e,t){return new ZQ(t,Cm(Ho(t.e),t.f.a+e,t.f.b+e),(cn(),!1))}function Xkn(e,t){return lC(),lt(e,new io(t,ot(t.e.c.length+t.g.c.length)))}function Jkn(e,t){return lC(),lt(e,new io(t,ot(t.e.c.length+t.g.c.length)))}function Bwt(){Bwt=F,bMt=Qn((kH(),se(ie(U5e,1),Je,354,0,[Mae,W5e,H5e,B5e])))}function Wwt(){Wwt=F,FNt=Qn((y6(),se(ie(v5e,1),Je,353,0,[kae,ez,Eae,Sae])))}function Hwt(){Hwt=F,pNt=Qn((k3(),se(ie(HIe,1),Je,405,0,[XV,c5,u5,f5])))}function Uwt(){Uwt=F,Q9t=Qn((_b(),se(ie(kce,1),Je,223,0,[Ece,D9,C4,uR])))}function Gwt(){Gwt=F,rDt=Qn((ku(),se(ie(nDt,1),Je,291,0,[j9,Dp,a0,L9])))}function Vwt(){Vwt=F,hDt=Qn((su(),se(ie(N5,1),Je,386,0,[H9,Vw,W9,q_])))}function zwt(){zwt=F,wDt=Qn((oH(),se(ie(aOe,1),Je,320,0,[Cce,oOe,lOe,sOe])))}function Kwt(){Kwt=F,vDt=Qn((XW(),se(ie(yDt,1),Je,415,0,[Ace,uOe,cOe,fOe])))}function gW(){gW=F,qae=new yQ(S4t,0),p8e=new yQ(aCe,1),h8e=new yQ(Jh,2)}function zv(e,t,i,s,a){return mn(e),mn(t),mn(i),mn(s),mn(a),new fve(e,t,s)}function qwt(e,t){var i;return i=f(f3(e.e,t),400),i?(Bye(i),i.e):null}function Ja(e,t){var i;return i=il(e,t,0),i==-1?!1:(pg(e,i),!0)}function Xwt(e,t,i){var s;return A1(e),s=new de,s.a=t,e.a.Nb(new $ct(s,i)),s.a}function Ykn(e){var t;return A1(e),t=Fe(Ro,js,28,0,15,1),MS(e.a,new Rrt(t)),t}function W_e(e){var t;if(!Mee(e))throw ne(new yl);return e.e=1,t=e.d,e.d=null,t}function gg(e){var t;return ul(e)&&(t=0-e,!isNaN(t))?t:O1(UC(e))}function il(e,t,i){for(;i=0?mH(e,i,!0,!0):ry(e,t,!0)}function U_e(e){var t;return t=ow(dn(e,32)),t==null&&(ja(e),t=ow(dn(e,32))),t}function G_e(e){var t;return e.Oh()||(t=Pn(e.Dh())-e.ji(),e.$h().Mk(t)),e.zh()}function tmt(e,t){U4e=new el,TIt=t,LI=e,f(LI.b,68),I_e(LI,U4e,null),gxt(LI)}function l6(){l6=F,Mse=new YY("XY",0),Nse=new YY("X",1),Dse=new YY("Y",2)}function Ya(){Ya=F,Ld=new JY("TOP",0),Z1=new JY($A,1),ad=new JY(_Re,2)}function wb(){wb=F,r9=new rQ(Jh,0),G2=new rQ("TOP",1),J3=new rQ(_Re,2)}function Z7(){Z7=F,nae=new jwe("INPUT_ORDER",0),rae=new jwe("PORT_DEGREE",1)}function xC(){xC=F,qAe=Oa(Vc,Vc,524287),m6t=Oa(0,0,uM),XAe=cee(1),cee(2),JAe=cee(0)}function kee(e){var t;return e.d!=e.r&&(t=_f(e),e.e=!!t&&t.lk()==m$t,e.d=t),e.e}function Ree(e,t,i){var s;return s=e.g[t],M$(e,t,e.Zi(t,i)),e.Ri(t,i,s),e.Ni(),s}function vW(e,t){var i;return i=e.dd(t),i>=0?(e.gd(i),!0):!1}function xee(e,t){var i;for(nr(e),nr(t),i=!1;t.Ob();)i=i|e.Fc(t.Pb());return i}function th(e,t){var i;return i=f(En(e.e,t),400),i?(Dft(e,i),i.e):null}function nmt(e){var t,i;return t=e/60|0,i=e%60,i==0?""+t:""+t+":"+(""+i)}function Kv(e,t){var i=e.a[t],s=(Qee(),lse)[typeof i];return s?s(i):ZSe(typeof i)}function El(e,t){var i,s;return L1(e),s=new R_e(t,e.a),i=new aht(s),new Wt(e,i)}function Cee(e){var t;return t=e.b.c.length==0?null:vt(e.b,0),t!=null&&Lee(e,0),t}function t3n(e,t){var i,s,a;a=t.c.i,i=f(En(e.f,a),60),s=i.d.c-i.e.c,SSe(t.a,s,0)}function V_e(e,t){var i;for(++e.d,++e.c[t],i=t+1;i=0;)++t[0]}function n3n(e,t){Da(e,t==null||lB((mn(t),t))||isNaN((mn(t),t))?0:(mn(t),t))}function r3n(e,t){La(e,t==null||lB((mn(t),t))||isNaN((mn(t),t))?0:(mn(t),t))}function i3n(e,t){Vm(e,t==null||lB((mn(t),t))||isNaN((mn(t),t))?0:(mn(t),t))}function o3n(e,t){Gm(e,t==null||lB((mn(t),t))||isNaN((mn(t),t))?0:(mn(t),t))}function s3n(e,t,i){return zk(new tt(i.e.a+i.f.a/2,i.e.b+i.f.b/2),e)==(mn(t),t)}function l3n(e,t){return ve(t,102)&&f(t,19).Bb&ys?new RQ(t,e):new FC(t,e)}function a3n(e,t){return ve(t,102)&&f(t,19).Bb&ys?new RQ(t,e):new FC(t,e)}function eN(e){return e.__elementTypeCategory$==null?10:e.__elementTypeCategory$}function omt(e,t){return t==(qQ(),qQ(),I6t)?e.toLocaleLowerCase():e.toLowerCase()}function smt(e){if(!e.e)throw ne(new yl);return e.c=e.a=e.e,e.e=e.e.e,--e.d,e.a.f}function z_e(e){if(!e.c)throw ne(new yl);return e.e=e.a=e.c,e.c=e.c.c,++e.d,e.a.f}function lmt(e){var t;for(++e.a,t=e.c.a.length;e.ae.a[s]&&(s=i);return s}function amt(e){var t;return t=f(V(e,(nt(),Sy)),313),t?t.a==e:!1}function cmt(e){var t;return t=f(V(e,(nt(),Sy)),313),t?t.i==e:!1}function umt(){umt=F,R5t=Qn((Yo(),se(ie(pTe,1),Je,367,0,[cd,Pp,sa,ga,ll])))}function fmt(){fmt=F,a8t=Qn((i_(),se(ie(l8t,1),Je,375,0,[e9,aV,cV,lV,sV])))}function dmt(){dmt=F,y8t=Qn((Eg(),se(ie(w$e,1),Je,348,0,[ale,g$e,cle,i4,r4])))}function hmt(){hmt=F,o7t=Qn(($6(),se(ie(yIe,1),Je,323,0,[mIe,Qle,Zle,n5,r5])))}function pmt(){pmt=F,P8t=Qn((ef(),se(ie(q$e,1),Je,171,0,[l9,qI,n0,XI,O_])))}function bmt(){bmt=F,KNt=Qn((IH(),se(ie(zNt,1),Je,368,0,[Tae,xae,$ae,Cae,Aae])))}function gmt(){gmt=F,KMt=Qn((U6(),se(ie(zMt,1),Je,373,0,[iE,oR,v5,y5,R9])))}function wmt(){wmt=F,ZMt=Qn((DN(),se(ie(k8e,1),Je,324,0,[_8e,Zae,E8e,ece,S8e])))}function mmt(){mmt=F,J9t=Qn((Xi(),se(ie(C5,1),Je,88,0,[wh,al,Js,gh,cf])))}function ymt(){ymt=F,S9t=Qn((Nd(),se(ie(Mp,1),Je,170,0,[rn,lo,op,Bw,Fg])))}function vmt(){vmt=F,oDt=Qn((a2(),se(ie(I5,1),Je,256,0,[c0,F9,JPe,$5,YPe])))}function _mt(){_mt=F,aDt=Qn((ut(),se(ie(vs,1),Ql,64,0,[Cl,bn,_n,jn,wn])))}function _W(){_W=F,E4e=new Awe("BY_SIZE",0),vse=new Awe("BY_SIZE_AND_SHAPE",1)}function SW(){SW=F,Ise=new Iwe("EADES",0),MG=new Iwe("FRUCHTERMAN_REINGOLD",1)}function tN(){tN=F,fV=new Mwe("READING_DIRECTION",0),m$e=new Mwe("ROTATION",1)}function a6(){a6=F,O5t=new sze,N5t=new cze,I5t=new uze,P5t=new aze,M5t=new fze}function Smt(e){this.b=new st,this.a=new st,this.c=new st,this.d=new st,this.e=e}function Emt(e){this.g=e,this.f=new st,this.a=h.Math.min(this.g.c.c,this.g.d.c)}function kmt(e,t,i){oB.call(this),X_e(this),this.a=e,this.c=i,this.b=t.d,this.f=t.e}function p3n(e,t,i){var s,a;for(a=new ee(i);a.a=0&&t0?t-1:t,oat(Wbn(qmt(Dye(new Ok,i),e.n),e.j),e.k)}function zs(e){var t,i;i=(t=new SY,t),zn((!e.q&&(e.q=new qe(Of,e,11,10)),e.q),i)}function K_e(e){return(e.i&2?"interface ":e.i&1?"":"class ")+(cb(e),e.o)}function EW(e){return Jl(e,Nr)>0?Nr:Jl(e,Qo)<0?Qo:tr(e)}function qv(e){return e<3?(Su(e,FCt),e+1):e=-.01&&e.a<=ah&&(e.a=0),e.b>=-.01&&e.b<=ah&&(e.b=0),e}function n2(e){m2();var t,i;for(i=fCe,t=0;ti&&(i=e[t]);return i}function Amt(e,t){var i;if(i=VN(e.Dh(),t),!i)throw ne(new hn(X1+t+voe));return i}function Xv(e,t){var i;for(i=e;di(i);)if(i=di(i),i==t)return!0;return!1}function R3n(e,t){var i,s,a;for(s=t.a.ld(),i=f(t.a.md(),16).gc(),a=0;ae||e>t)throw ne(new twe("fromIndex: 0, toIndex: "+e+cRe+t))}function Um(e){if(e<0)throw ne(new hn("Illegal Capacity: "+e));this.g=this.aj(e)}function q_e(e,t){return Kd(),td(G1),h.Math.abs(e-t)<=G1||e==t||isNaN(e)&&isNaN(t)}function $ee(e,t){var i,s,a,c;for(s=e.d,a=0,c=s.length;a0&&(e.a/=t,e.b/=t),e}function vu(e){var t;return e.w?e.w:(t=w2n(e),t&&!t.Vh()&&(e.w=t),t)}function CC(e,t){var i,s;s=e.a,i=_Cn(e,t,null),s!=t&&!e.e&&(i=_A(e,t,i)),i&&i.oj()}function Omt(e,t,i){var s,a;s=t;do a=Ae(e.p[s.p])+i,e.p[s.p]=a,s=e.a[s.p];while(s!=t)}function Nmt(e,t,i){var s=function(){return e.apply(s,arguments)};return t.apply(s,i),s}function P3n(e){var t;return e==null?null:(t=f(e,195),G6n(t,t.length))}function Se(e,t){if(e.g==null||t>=e.i)throw ne(new kQ(t,e.i));return e.Wi(t,e.g[t])}function O3n(e,t){Kt();var i,s;for(s=new st,i=0;i=14&&t<=16))),e}function Yn(e,t){var i;return mn(t),i=e[":"+t],S7(!!i,"Enum constant undefined: "+t),i}function Wn(e,t,i,s,a,c){var b;return b=xZ(e,t),Xmt(i,b),b.i=a?8:0,b.f=s,b.e=a,b.g=c,b}function Y_e(e,t,i,s,a){this.d=t,this.k=s,this.f=a,this.o=-1,this.p=1,this.c=e,this.a=i}function Q_e(e,t,i,s,a){this.d=t,this.k=s,this.f=a,this.o=-1,this.p=2,this.c=e,this.a=i}function Z_e(e,t,i,s,a){this.d=t,this.k=s,this.f=a,this.o=-1,this.p=6,this.c=e,this.a=i}function eSe(e,t,i,s,a){this.d=t,this.k=s,this.f=a,this.o=-1,this.p=7,this.c=e,this.a=i}function tSe(e,t,i,s,a){this.d=t,this.j=s,this.e=a,this.o=-1,this.p=4,this.c=e,this.a=i}function Jmt(e,t){var i,s,a,c;for(s=t,a=0,c=s.length;a=0))throw ne(new hn("tolerance ("+e+") must be >= 0"));return e}function Qmt(e,t){var i;return ve(t,44)?e.c.Mc(t):(i=Cte(e,t),uH(e,t),i)}function Ls(e,t,i){return dw(e,t),Ra(e,i),wg(e,0),Jv(e,1),Sg(e,!0),_g(e,!0),e}function rN(e,t){var i;if(i=e.gc(),t<0||t>i)throw ne(new Lv(t,i));return new dye(e,t)}function IW(e,t){e.b=h.Math.max(e.b,t.d),e.e+=t.r+(e.a.c.length==0?0:e.c),lt(e.a,t)}function Zmt(e){Nv(e.c>=0),KAn(e.d,e.c)<0&&(e.a=e.a-1&e.d.a.length-1,e.b=e.d.c),e.c=-1}function PW(e){var t,i;for(i=e.c.Cc().Kc();i.Ob();)t=f(i.Pb(),16),t.$b();e.c.$b(),e.d=0}function U3n(e){var t,i,s,a;for(i=e.a,s=0,a=i.length;s=0}function aSe(e,t){e.r>0&&e.c0&&e.g!=0&&aSe(e.i,t/e.r*e.i.d))}function cSe(e,t){var i;i=e.c,e.c=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,1,i,e.c))}function Oee(e,t){var i;i=e.c,e.c=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,4,i,e.c))}function NC(e,t){var i;i=e.k,e.k=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,2,i,e.k))}function Nee(e,t){var i;i=e.D,e.D=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,2,i,e.D))}function NW(e,t){var i;i=e.f,e.f=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,8,i,e.f))}function MW(e,t){var i;i=e.i,e.i=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,7,i,e.i))}function uSe(e,t){var i;i=e.a,e.a=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,8,i,e.a))}function fSe(e,t){var i;i=e.b,e.b=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,0,i,e.b))}function dSe(e,t){var i;i=e.b,e.b=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,0,i,e.b))}function hSe(e,t){var i;i=e.c,e.c=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,1,i,e.c))}function pSe(e,t){var i;i=e.d,e.d=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,1,i,e.d))}function J3n(e,t,i){var s;e.b=t,e.a=i,s=(e.a&512)==512?new vlt:new H1e,e.c=u7n(s,e.b,e.a)}function fyt(e,t){return xb(e.e,t)?(Ss(),kee(t)?new wB(t,e):new s7(t,e)):new Fut(t,e)}function Y3n(e){var t,i;return 0>e?new gwe:(t=e+1,i=new E0t(t,e),new Vme(null,i))}function Q3n(e,t){Kt();var i;return i=new Fk(1),Eo(e)?Gs(i,e,t):Ca(i.f,e,t),new hY(i)}function Z3n(e,t){var i,s;return i=e.c,s=t.e[e.p],s>0?f(vt(i.a,s-1),10):null}function eRn(e,t){var i,s;return i=e.o+e.p,s=t.o+t.p,it?(t<<=1,t>0?t:nI):t}function Mee(e){switch(Rme(e.e!=3),e.e){case 2:return!1;case 0:return!0}return ckn(e)}function hyt(e,t){var i;return ve(t,8)?(i=f(t,8),e.a==i.a&&e.b==i.b):!1}function nRn(e,t){var i;i=new el,f(t.b,68),f(t.b,68),f(t.b,68),Ma(t.a,new Sye(e,i,t))}function pyt(e,t){var i,s;for(s=t.vc().Kc();s.Ob();)i=f(s.Pb(),44),PN(e,i.ld(),i.md())}function bSe(e,t){var i;i=e.d,e.d=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,11,i,e.d))}function DW(e,t){var i;i=e.j,e.j=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,13,i,e.j))}function gSe(e,t){var i;i=e.b,e.b=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,21,i,e.b))}function rRn(e,t){(sW(),fh?null:t.c).length==0&&$dt(t,new Ne),Gs(e.a,fh?null:t.c,t)}function iRn(e,t){t.Ug("Hierarchical port constraint processing",1),S4n(e),Hjn(e),t.Vg()}function Km(){Km=F,_y=new QY("START",0),e0=new QY("MIDDLE",1),vy=new QY("END",2)}function LW(){LW=F,tz=new Vwe("P1_NODE_PLACEMENT",0),rE=new Vwe("P2_EDGE_ROUTING",1)}function P1(){P1=F,q3=new Xr(NRe),jG=new Xr(TAt),FI=new Xr($At),XM=new Xr(IAt)}function qm(e){var t;return XQ(e.f.g,e.d),In(e.b),e.c=e.a,t=f(e.a.Pb(),44),e.b=TSe(e),t}function wSe(e){var t;return e.b==null?(lg(),lg(),Y9):(t=e.ul()?e.tl():e.sl(),t)}function byt(e,t){var i;return i=t==null?-1:il(e.b,t,0),i<0?!1:(Lee(e,i),!0)}function nd(e,t){var i;return mn(t),i=t.g,e.b[i]?!1:(Ci(e.b,i,t),++e.c,!0)}function jW(e,t){var i,s;return i=1-t,s=e.a[i],e.a[i]=s.a[t],s.a[t]=e,e.b=!0,s.b=!1,s}function oRn(e,t){var i,s;for(s=t.Kc();s.Ob();)i=f(s.Pb(),272),e.b=!0,Zi(e.e,i),i.b=e}function sRn(e,t){var i,s;return i=f(V(e,(bt(),F_)),8),s=f(V(t,F_),8),Qr(i.b,s.b)}function Dee(e,t,i){var s,a,c;return c=t>>5,a=t&31,s=fo(x1(e.n[i][c],tr(Zf(a,1))),3),s}function gyt(e,t,i){var s,a,c;for(c=e.a.length-1,a=e.b,s=0;s0?1:0:(!e.c&&(e.c=D7(Gl(e.f))),e.c).e}function Ryt(e,t){t?e.B==null&&(e.B=e.D,e.D=null):e.B!=null&&(e.D=e.B,e.B=null)}function uRn(e,t){return WC(),e==yy&&t==C_||e==C_&&t==yy||e==L2&&t==x_||e==x_&&t==L2}function fRn(e,t){return WC(),e==yy&&t==x_||e==yy&&t==L2||e==C_&&t==L2||e==C_&&t==x_}function xyt(e,t){return Kd(),td(ah),h.Math.abs(0-t)<=ah||t==0||isNaN(0)&&isNaN(t)?0:e/t}function Cyt(e,t){return Ae(je(tu(yN(nl(new Wt(null,new Vt(e.c.b,16)),new Nit(e)),t))))}function _Se(e,t){return Ae(je(tu(yN(nl(new Wt(null,new Vt(e.c.b,16)),new Oit(e)),t))))}function dRn(){return As(),se(ie(wle,1),Je,259,0,[bV,af,GI,gV,a4,U2,VI,s4,l4,wV])}function hRn(){return Sf(),se(ie(kIe,1),Je,243,0,[UV,d9,h9,_Ie,SIe,vIe,EIe,GV,Py,W_])}function pRn(e,t){var i;t.Ug("General Compactor",1),i=yAn(f(Ye(e,(H1(),Oae)),393)),i.Cg(e)}function bRn(e,t){var i,s;return i=f(Ye(e,(H1(),rz)),17),s=f(Ye(t,rz),17),Xl(i.a,s.a)}function SSe(e,t,i){var s,a;for(a=Hn(e,0);a.b!=a.d.c;)s=f(Bn(a),8),s.a+=t,s.b+=i;return e}function f6(e,t,i){var s;for(s=e.b[i&e.f];s;s=s.b)if(i==s.a&&Lh(t,s.g))return s;return null}function d6(e,t,i){var s;for(s=e.c[i&e.f];s;s=s.d)if(i==s.f&&Lh(t,s.i))return s;return null}function gRn(e,t,i){var s,a,c;for(s=0,a=0;a>>31;s!=0&&(e[i]=s)}function Wee(e,t,i,s,a,c){var b;this.c=e,b=new st,tEe(e,b,t,e.b,i,s,a,c),this.a=new No(b,0)}function Ayt(){this.c=new cF(0),this.b=new cF(uCe),this.d=new cF(b4t),this.a=new cF(cie)}function Ju(e,t,i,s,a,c,b){Jn.call(this,e,t),this.d=i,this.e=s,this.c=a,this.b=c,this.a=Qd(b)}function Di(e,t,i,s,a,c,b,g,m,_,k,I,D){return OEt(e,t,i,s,a,c,b,g,m,_,k,I,D),vte(e,!1),e}function wRn(e){return e.b.c.i.k==(gn(),Ui)?f(V(e.b.c.i,(nt(),Ur)),12):e.b.c}function Tyt(e){return e.b.d.i.k==(gn(),Ui)?f(V(e.b.d.i,(nt(),Ur)),12):e.b.d}function mRn(e){var t;return t=eW(e),Sm(t.a,0)?(hF(),hF(),P6t):(hF(),new udt(t.b))}function Hee(e){var t;return t=e_e(e),Sm(t.a,0)?(Av(),Av(),dse):(Av(),new FQ(t.b))}function Uee(e){var t;return t=e_e(e),Sm(t.a,0)?(Av(),Av(),dse):(Av(),new FQ(t.c))}function $yt(e){switch(e.g){case 2:return ut(),wn;case 4:return ut(),_n;default:return e}}function Iyt(e){switch(e.g){case 1:return ut(),jn;case 3:return ut(),bn;default:return e}}function Pyt(e){switch(e.g){case 0:return new dQe;case 1:return new hQe;default:return null}}function b3(){b3=F,qse=new _i("edgelabelcenterednessanalysis.includelabel",(cn(),Y1))}function ESe(){ESe=F,T7t=Hh(Zut(gr(gr(new Ki,(Yo(),sa),(ss(),JG)),ga,VG),ll),XG)}function Oyt(){Oyt=F,O7t=Hh(Zut(gr(gr(new Ki,(Yo(),sa),(ss(),JG)),ga,VG),ll),XG)}function Gee(){Gee=F,B5=new blt,Dce=se(ie(rc,1),O2,179,0,[]),eLt=se(ie(Of,1),TAe,62,0,[])}function MC(){MC=F,YM=new Pwe("TO_INTERNAL_LTR",0),Vse=new Pwe("TO_INPUT_DIRECTION",1)}function bc(){bc=F,ETe=new wze,_Te=new mze,STe=new yze,vTe=new vze,kTe=new _ze,RTe=new Sze}function yRn(e,t){t.Ug(zAt,1),x2e(rgn(new zj((f$(),new PZ(e,!1,!1,new C1e))))),t.Vg()}function vRn(e,t,i){i.Ug("DFS Treeifying phase",1),LAn(e,t),MOn(e,t),e.a=null,e.b=null,i.Vg()}function iN(e,t){return cn(),Eo(e)?E_e(e,or(t)):Pv(e)?pZ(e,je(t)):Iv(e)?uvn(e,wt(t)):e.Fd(t)}function h6(e,t){var i,s;for(mn(t),s=t.vc().Kc();s.Ob();)i=f(s.Pb(),44),e.zc(i.ld(),i.md())}function _Rn(e,t,i){var s;for(s=i.Kc();s.Ob();)if(!rW(e,t,s.Pb()))return!1;return!0}function SRn(e,t,i,s,a){var c;return i&&(c=yi(t.Dh(),e.c),a=i.Rh(t,-1-(c==-1?s:c),null,a)),a}function ERn(e,t,i,s,a){var c;return i&&(c=yi(t.Dh(),e.c),a=i.Th(t,-1-(c==-1?s:c),null,a)),a}function Nyt(e){var t;if(e.b==-2){if(e.e==0)t=-1;else for(t=0;e.a[t]==0;t++);e.b=t}return e.b}function kRn(e){if(mn(e),e.length==0)throw ne(new Ih("Zero length BigInteger"));TNn(this,e)}function kSe(e){this.i=e.gc(),this.i>0&&(this.g=this.aj(this.i+(this.i/8|0)+1),e.Qc(this.g))}function Myt(e,t,i){this.g=e,this.d=t,this.e=i,this.a=new st,D5n(this),Kt(),Hi(this.a,null)}function RSe(e,t){t.q=e,e.d=h.Math.max(e.d,t.r),e.b+=t.d+(e.a.c.length==0?0:e.c),lt(e.a,t)}function DC(e,t){var i,s,a,c;return a=e.c,i=e.c+e.b,c=e.d,s=e.d+e.a,t.a>a&&t.ac&&t.ba?i=a:pn(t,i+1),e.a=Vu(e.a,0,t)+(""+s)+yve(e.a,i)}function Gyt(e,t){e.a=is(e.a,1),e.c=h.Math.min(e.c,t),e.b=h.Math.max(e.b,t),e.d=is(e.d,t)}function IRn(e,t){return t1||e.Ob())return++e.a,e.g=0,t=e.i,e.Ob(),t;throw ne(new yl)}function qyt(e){switch(e.a.g){case 1:return new Zct;case 3:return new ZSt;default:return new dnt}}function CSe(e,t){switch(t){case 1:return!!e.n&&e.n.i!=0;case 2:return e.k!=null}return Zve(e,t)}function Gl(e){return fM>22),a=e.h+t.h+(s>>22),Oa(i&Vc,s&Vc,a&Ab)}function nvt(e,t){var i,s,a;return i=e.l-t.l,s=e.m-t.m+(i>>22),a=e.h-t.h+(s>>22),Oa(i&Vc,s&Vc,a&Ab)}function QRn(e){var t,i;for(VLn(e),i=new ee(e.d);i.as)throw ne(new Lv(t,s));return e.Si()&&(i=vgt(e,i)),e.Ei(t,i)}function HC(e,t,i,s,a){var c,b;for(b=i;b<=a;b++)for(c=t;c<=s;c++)u2(e,c,b)||QH(e,c,b,!0,!1)}function dxn(e){m2();var t,i,s;for(i=Fe(wo,rt,8,2,0,1),s=0,t=0;t<2;t++)s+=.5,i[t]=oTn(s,e);return i}function UC(e){var t,i,s;return t=~e.l+1&Vc,i=~e.m+(t==0?1:0)&Vc,s=~e.h+(t==0&&i==0?1:0)&Ab,Oa(t,i,s)}function MSe(e){var t;if(e<0)return Qo;if(e==0)return 0;for(t=nI;!(t&e);t>>=1);return t}function Yee(e,t,i){return e>=128?!1:e<64?T$(fo(Zf(1,e),i),0):T$(fo(Zf(1,e-64),t),0)}function hN(e,t,i){return i==null?(!e.q&&(e.q=new Fn),f3(e.q,t)):(!e.q&&(e.q=new Fn),xr(e.q,t,i)),e}function Xe(e,t,i){return i==null?(!e.q&&(e.q=new Fn),f3(e.q,t)):(!e.q&&(e.q=new Fn),xr(e.q,t,i)),e}function hvt(e){var t,i;return i=new aW,ol(i,e),Xe(i,(P1(),q3),e),t=new Fn,WMn(e,i,t),bLn(e,i,t),i}function pvt(e){var t,i;return t=e.t-e.k[e.o.p]*e.d+e.j[e.o.p]>e.f,i=e.u+e.e[e.o.p]*e.d>e.f*e.s*e.d,t||i}function bvt(e,t){var i,s,a,c;for(i=!1,s=e.a[t].length,c=0;c=0,"Negative initial capacity"),S7(t>=0,"Non-positive load factor"),xc(this)}function pxn(e,t,i,s,a){var c,b;if(b=e.length,c=i.length,t<0||s<0||a<0||t+a>b||s+a>c)throw ne(new C0e)}function FSe(e,t){Kt();var i,s,a,c,b;for(b=!1,s=t,a=0,c=s.length;a1||t>=0&&e.b<3)}function ete(e){var t,i,s;t=~e.l+1&Vc,i=~e.m+(t==0?1:0)&Vc,s=~e.h+(t==0&&i==0?1:0)&Ab,e.l=t,e.m=i,e.h=s}function HSe(e){Kt();var t,i,s;for(s=1,i=e.Kc();i.Ob();)t=i.Pb(),s=31*s+(t!=null?ti(t):0),s=s|0;return s}function yxn(e,t,i,s,a){var c;return c=Ike(e,t),i&&ete(c),a&&(e=dTn(e,t),s?J1=UC(e):J1=Oa(e.l,e.m,e.h)),c}function Rvt(e,t,i){e.g=mne(e,t,(ut(),_n),e.b),e.d=mne(e,i,_n,e.b),!(e.g.c==0||e.d.c==0)&&nEt(e)}function xvt(e,t,i){e.g=mne(e,t,(ut(),wn),e.j),e.d=mne(e,i,wn,e.j),!(e.g.c==0||e.d.c==0)&&nEt(e)}function USe(e,t){switch(t){case 7:return!!e.e&&e.e.i!=0;case 8:return!!e.d&&e.d.i!=0}return C2e(e,t)}function vxn(e,t){switch(t.g){case 0:ve(e.b,641)||(e.b=new Uyt);break;case 1:ve(e.b,642)||(e.b=new Hht)}}function Cvt(e){switch(e.g){case 0:return new mQe;default:throw ne(new hn(QU+(e.f!=null?e.f:""+e.g)))}}function Avt(e){switch(e.g){case 0:return new wQe;default:throw ne(new hn(QU+(e.f!=null?e.f:""+e.g)))}}function _xn(e,t,i){return!Xx(Br(new Wt(null,new Vt(e.c,16)),new Bx(new put(t,i)))).Bd((K0(),z3))}function Tvt(e,t){return zk(iA(f(V(t,(Il(),Ny)),88)),new tt(e.c.e.a-e.b.e.a,e.c.e.b-e.b.e.b))<=0}function Sxn(e,t){for(;e.g==null&&!e.c?Uve(e):e.g==null||e.i!=0&&f(e.g[e.i-1],51).Ob();)xgn(t,BH(e))}function fw(e){var t,i;for(i=new ee(e.a.b);i.as?1:0}function Rxn(e){return lt(e.c,(g3(),m9t)),q_e(e.a,Ae(je(ht((xte(),FV)))))?new iZe:new Fot(e)}function xxn(e){for(;!e.d||!e.d.Ob();)if(e.b&&!l$(e.b))e.d=f(t3(e.b),51);else return null;return e.d}function VSe(e){switch(e.g){case 1:return b4t;default:case 2:return 0;case 3:return cie;case 4:return uCe}}function Cxn(){Or();var e;return Hce||(e=K1n(U1("M",!0)),e=SB(U1("M",!1),e),Hce=e,Hce)}function XW(){XW=F,Ace=new BF("ELK",0),uOe=new BF("JSON",1),cOe=new BF("DOT",2),fOe=new BF("SVG",3)}function w6(){w6=F,sae=new lQ("STACKED",0),oae=new lQ("REVERSE_STACKED",1),p9=new lQ("SEQUENCED",2)}function m6(){m6=F,ZIe=new hQ(Jh,0),dae=new hQ("MIDDLE_TO_MIDDLE",1),w9=new hQ("AVOID_OVERLAP",2)}function zC(){zC=F,l$e=new eqe,a$e=new tqe,e8t=new QKe,Z5t=new nqe,Q5t=new ZKe,s$e=(mn(Q5t),new Ge)}function JW(){JW=F,qPe=new km(15),eDt=new Po((Er(),Bg),qPe),A5=lR,GPe=O9t,VPe=Hw,KPe=fE,zPe=V_}function i2(e,t){var i,s,a,c,b;for(s=t,a=0,c=s.length;a=e.b.c.length||(KSe(e,2*t+1),i=2*t+2,i0&&(t.Cd(i),i.i&&TCn(i))}function qSe(e,t,i){var s;for(s=i-1;s>=0&&e[s]===t[s];s--);return s<0?0:zY(fo(e[s],Ts),fo(t[s],Ts))?-1:1}function Pvt(e,t,i){var s,a;this.g=e,this.c=t,this.a=this,this.d=this,a=dyt(i),s=Fe(d6t,aM,227,a,0,1),this.b=s}function ote(e,t,i,s,a){var c,b;for(b=i;b<=a;b++)for(c=t;c<=s;c++)if(u2(e,c,b))return!0;return!1}function Oxn(e,t){var i,s;for(s=e.Zb().Cc().Kc();s.Ob();)if(i=f(s.Pb(),16),i.Hc(t))return!0;return!1}function Ovt(e,t,i){var s,a,c,b;for(mn(i),b=!1,c=e.fd(t),a=i.Kc();a.Ob();)s=a.Pb(),c.Rb(s),b=!0;return b}function ste(e,t){var i,s;return s=f(dn(e.a,4),129),i=Fe(Nce,Loe,424,t,0,1),s!=null&&oa(s,0,i,0,s.length),i}function Nvt(e,t){var i;return i=new Nne((e.f&256)!=0,e.i,e.a,e.d,(e.f&16)!=0,e.j,e.g,t),e.e!=null||(i.c=e),i}function Nxn(e,t){var i;return e===t?!0:ve(t,85)?(i=f(t,85),YEe(X0(e),i.vc())):!1}function Mvt(e,t,i){var s,a;for(a=i.Kc();a.Ob();)if(s=f(a.Pb(),44),e.Be(t,s.md()))return!0;return!1}function Dvt(e,t,i){return e.d[t.p][i.p]||(L4n(e,t,i),e.d[t.p][i.p]=!0,e.d[i.p][t.p]=!0),e.a[t.p][i.p]}function Mxn(e,t){var i;return!e||e==t||!ri(t,(nt(),Ey))?!1:(i=f(V(t,(nt(),Ey)),10),i!=e)}function lte(e){switch(e.i){case 2:return!0;case 1:return!1;case-1:++e.c;default:return e.$l()}}function Lvt(e){switch(e.i){case-2:return!0;case-1:return!1;case 1:--e.c;default:return e._l()}}function jvt(e){Rgt.call(this,"The given string does not match the expected format for individual spacings.",e)}function Dxn(e,t){var i;t.Ug("Min Size Preprocessing",1),i=ske(e),zr(e,(Ep(),g5),i.a),zr(e,sz,i.b),t.Vg()}function Lxn(e){var t,i,s;for(t=0,s=Fe(wo,rt,8,e.b,0,1),i=Hn(e,0);i.b!=i.d.c;)s[t++]=f(Bn(i),8);return s}function ate(e,t,i){var s,a,c;for(s=new li,c=Hn(i,0);c.b!=c.d.c;)a=f(Bn(c),8),hr(s,new us(a));Ovt(e,t,s)}function jxn(e,t){var i;return i=is(e,t),zY(YZ(e,t),0)|UF(YZ(e,i),0)?i:is(lM,YZ(x1(i,63),1))}function Fxn(e,t){var i,s;return i=f(e.d.Bc(t),16),i?(s=e.e.hc(),s.Gc(i),e.e.d-=i.gc(),i.$b(),s):null}function Fvt(e){var t;if(t=e.a.c.length,t>0)return uC(t-1,e.a.c.length),pg(e.a,t-1);throw ne(new Fst)}function Bvt(e,t,i){if(e>t)throw ne(new hn(bU+e+tAt+t));if(e<0||t>i)throw ne(new twe(bU+e+dRe+t+cRe+i))}function KC(e,t){e.D==null&&e.B!=null&&(e.D=e.B,e.B=null),Nee(e,t==null?null:(mn(t),t)),e.C&&e.hl(null)}function Bxn(e,t){var i;i=ht((xte(),FV))!=null&&t.Sg()!=null?Ae(je(t.Sg()))/Ae(je(ht(FV))):1,xr(e.b,t,i)}function XSe(e,t){var i,s;if(s=e.c[t],s!=0)for(e.c[t]=0,e.d-=s,i=t+1;iVU?e-i>VU:i-e>VU}function Yvt(e,t){var i;for(i=0;ia&&(C2t(t.q,a),s=i!=t.q.d)),s}function Qvt(e,t){var i,s,a,c,b,g,m,_;return m=t.i,_=t.j,s=e.f,a=s.i,c=s.j,b=m-a,g=_-c,i=h.Math.sqrt(b*b+g*g),i}function t2e(e,t){var i,s;return s=fH(e),s||(i=(nre(),Fkt(t)),s=new Ast(i),zn(s.El(),e)),s}function wN(e,t){var i,s;return i=f(e.c.Bc(t),16),i?(s=e.hc(),s.Gc(i),e.d-=i.gc(),i.$b(),e.mc(s)):e.jc()}function Yxn(e,t){var i,s;for(s=Uc(e.d,1)!=0,i=!0;i;)i=!1,i=t.c.mg(t.e,s),i=i|zN(e,t,s,!1),s=!s;ySe(e)}function Zvt(e,t,i,s){var a,c;e.a=t,c=s?0:1,e.f=(a=new dEt(e.c,e.a,i,c),new G3t(i,e.a,a,e.e,e.b,e.c==(zm(),s5)))}function QW(e){var t;return In(e.a!=e.b),t=e.d.a[e.a],Cdt(e.b==e.d.c&&t!=null),e.c=e.a,e.a=e.a+1&e.d.a.length-1,t}function e_t(e){var t;if(e.c!=0)return e.c;for(t=0;t=e.c.b:e.a<=e.c.b))throw ne(new yl);return t=e.a,e.a+=e.c.c,++e.b,ot(t)}function hte(e){var t;return t=new gme(e.a),ol(t,e),Xe(t,(nt(),Ur),e),t.o.a=e.g,t.o.b=e.f,t.n.a=e.i,t.n.b=e.j,t}function pte(e){return(ut(),tc).Hc(e.j)?Ae(je(V(e,(nt(),c4)))):kl(se(ie(wo,1),rt,8,0,[e.i.n,e.n,e.a])).b}function Zxn(e){var t;return t=qF(A7t),f(V(e,(nt(),ma)),21).Hc((As(),a4))&&gr(t,(Yo(),sa),(ss(),ZG)),t}function eCn(e){var t,i,s,a;for(a=new Gi,s=new ee(e);s.a=0?t:-t;s>0;)s%2==0?(i*=i,s=s/2|0):(a*=i,s-=1);return t<0?1/a:a}function oCn(e,t){var i,s,a;for(a=1,i=e,s=t>=0?t:-t;s>0;)s%2==0?(i*=i,s=s/2|0):(a*=i,s-=1);return t<0?1/a:a}function D1(e,t){var i,s,a,c;return c=(a=e?fH(e):null,MEt((s=t,a&&a.Gl(),s))),c==t&&(i=fH(e),i&&i.Gl()),c}function t_t(e,t,i){var s,a;return a=e.f,e.f=t,e.Db&4&&!(e.Db&1)&&(s=new yo(e,1,0,a,t),i?i.nj(s):i=s),i}function n_t(e,t,i){var s,a;return a=e.b,e.b=t,e.Db&4&&!(e.Db&1)&&(s=new yo(e,1,3,a,t),i?i.nj(s):i=s),i}function r2e(e,t,i){var s,a;return a=e.a,e.a=t,e.Db&4&&!(e.Db&1)&&(s=new yo(e,1,1,a,t),i?i.nj(s):i=s),i}function r_t(e){var t,i;if(e!=null)for(i=0;i=s||t-129&&e<128?(Wht(),t=e+128,i=t4e[t],!i&&(i=t4e[t]=new r0e(e)),i):new r0e(e)}function XC(e){var t,i;return e>-129&&e<128?(ipt(),t=e+128,i=o4e[t],!i&&(i=o4e[t]=new o0e(e)),i):new o0e(e)}function s_t(e,t){var i;e.a.c.length>0&&(i=f(vt(e.a,e.a.c.length-1),579),zSe(i,t))||lt(e.a,new k0t(t))}function fCn(e){Qf();var t,i;t=e.d.c-e.e.c,i=f(e.g,154),Ma(i.b,new _it(t)),Ma(i.c,new Sit(t)),Vo(i.i,new Eit(t))}function l_t(e){var t;return t=new m1,t.a+="VerticalSegment ",aa(t,e.e),t.a+=" ",br(t,Eme(new OY,new ee(e.k))),t.a}function bte(e,t){var i,s,a;for(i=0,a=Rl(e,t).Kc();a.Ob();)s=f(a.Pb(),12),i+=V(s,(nt(),Ic))!=null?1:0;return i}function l2(e,t,i){var s,a,c;for(s=0,c=Hn(e,0);c.b!=c.d.c&&(a=Ae(je(Bn(c))),!(a>i));)a>=t&&++s;return s}function a_t(e,t){nr(e);try{return e._b(t)}catch(i){if(i=mi(i),ve(i,212)||ve(i,169))return!1;throw ne(i)}}function o2e(e,t){nr(e);try{return e.Hc(t)}catch(i){if(i=mi(i),ve(i,212)||ve(i,169))return!1;throw ne(i)}}function dCn(e,t){nr(e);try{return e.Mc(t)}catch(i){if(i=mi(i),ve(i,212)||ve(i,169))return!1;throw ne(i)}}function Zv(e,t){nr(e);try{return e.xc(t)}catch(i){if(i=mi(i),ve(i,212)||ve(i,169))return null;throw ne(i)}}function hCn(e,t){nr(e);try{return e.Bc(t)}catch(i){if(i=mi(i),ve(i,212)||ve(i,169))return null;throw ne(i)}}function _6(e,t){switch(t.g){case 2:case 1:return Rl(e,t);case 3:case 4:return Zu(Rl(e,t))}return Kt(),Kt(),ps}function S6(e){var t;return e.Db&64?rd(e):(t=new wf(rd(e)),t.a+=" (name: ",Ms(t,e.zb),t.a+=")",t.a)}function pCn(e){var t;return t=f(th(e.c.c,""),233),t||(t=new l3(Kx(zx(new Ak,""),"Other")),kg(e.c.c,"",t)),t}function s2e(e,t,i){var s,a;return a=e.sb,e.sb=t,e.Db&4&&!(e.Db&1)&&(s=new yo(e,1,4,a,t),i?i.nj(s):i=s),i}function l2e(e,t,i){var s,a;return a=e.r,e.r=t,e.Db&4&&!(e.Db&1)&&(s=new yo(e,1,8,a,e.r),i?i.nj(s):i=s),i}function bCn(e,t,i){var s,a;return s=new gb(e.e,4,13,(a=t.c,a||(zt(),vh)),null,Rg(e,t),!1),i?i.nj(s):i=s,i}function gCn(e,t,i){var s,a;return s=new gb(e.e,3,13,null,(a=t.c,a||(zt(),vh)),Rg(e,t),!1),i?i.nj(s):i=s,i}function vg(e,t){var i,s;return i=f(t,691),s=i.el(),!s&&i.fl(s=ve(t,90)?new But(e,f(t,29)):new c1t(e,f(t,156))),s}function mN(e,t,i){var s;e._i(e.i+1),s=e.Zi(t,i),t!=e.i&&oa(e.g,t,e.g,t+1,e.i-t),Ci(e.g,t,s),++e.i,e.Mi(t,i),e.Ni()}function wCn(e,t){var i;return t.a&&(i=t.a.a.length,e.a?br(e.a,e.b):e.a=new gu(e.d),g1t(e.a,t.a,t.d.length,i)),e}function mCn(e,t){var i;e.c=t,e.a=EAn(t),e.a<54&&(e.f=(i=t.d>1?p1t(t.a[0],t.a[1]):p1t(t.a[0],0),rw(t.e>0?i:gg(i))))}function yN(e,t){var i;return i=new de,e.a.Bd(i)?(tC(),new CY(mn(Xwt(e,i.a,t)))):(A1(e),tC(),tC(),g4e)}function c_t(e,t){var i;e.c.length!=0&&(i=f(ih(e,Fe(Op,$g,10,e.c.length,0,1)),199),ame(i,new sKe),nkt(i,t))}function u_t(e,t){var i;e.c.length!=0&&(i=f(ih(e,Fe(Op,$g,10,e.c.length,0,1)),199),ame(i,new lKe),nkt(i,t))}function Lr(e,t){return Eo(e)?Ht(e,t):Pv(e)?iht(e,t):Iv(e)?(mn(e),Oe(e)===Oe(t)):tve(e)?e.Fb(t):qye(e)?nft(e,t):qve(e,t)}function Yu(e,t,i){if(t<0)hke(e,i);else{if(!i.rk())throw ne(new hn(X1+i.xe()+_I));f(i,69).wk().Ek(e,e.hi(),t)}}function f_t(e,t,i){if(e<0||t>i)throw ne(new Hs(bU+e+dRe+t+", size: "+i));if(e>t)throw ne(new hn(bU+e+tAt+t))}function d_t(e){var t;return e.Db&64?rd(e):(t=new wf(rd(e)),t.a+=" (source: ",Ms(t,e.d),t.a+=")",t.a)}function h_t(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e>=48&&e<=57?e-48:0}function yCn(e){uU();var t,i,s,a;for(i=Nte(),s=0,a=i.length;s=0?j1(e):X$(j1(gg(e))))}function g_t(e,t,i,s,a,c){this.e=new st,this.f=(Cs(),i5),lt(this.e,e),this.d=t,this.a=i,this.b=s,this.f=a,this.c=c}function SCn(e,t,i){e.n=q0(m0,[rt,Bre],[376,28],14,[i,oo(h.Math.ceil(t/32))],2),e.o=t,e.p=i,e.j=t-1>>1,e.k=i-1>>1}function w_t(e){return e-=e>>1&1431655765,e=(e>>2&858993459)+(e&858993459),e=(e>>4)+e&252645135,e+=e>>8,e+=e>>16,e&63}function m_t(e,t){var i,s;for(s=new Sn(e);s.e!=s.i.gc();)if(i=f(Cn(s),142),Oe(t)===Oe(i))return!0;return!1}function ECn(e,t,i){var s,a,c;return c=(a=dA(e.b,t),a),c&&(s=f(oU(J7(e,c),""),29),s)?Mke(e,s,t,i):null}function gte(e,t,i){var s,a,c;return c=(a=dA(e.b,t),a),c&&(s=f(oU(J7(e,c),""),29),s)?Dke(e,s,t,i):null}function kCn(e,t){var i;if(i=r2(e.i,t),i==null)throw ne(new $h("Node did not exist in input."));return xSe(t,i),null}function RCn(e,t){var i;if(i=VN(e,t),ve(i,331))return f(i,35);throw ne(new hn(X1+t+"' is not a valid attribute"))}function k6(e,t,i){var s;if(s=e.gc(),t>s)throw ne(new Lv(t,s));if(e.Si()&&e.Hc(i))throw ne(new hn(PM));e.Gi(t,i)}function xCn(e,t){t.Ug("Sort end labels",1),Mi(Br(El(new Wt(null,new Vt(e.b,16)),new Gze),new Vze),new zze),t.Vg()}function Xi(){Xi=F,wh=new r7(lI,0),al=new r7(D3,1),Js=new r7(M3,2),gh=new r7(Zre,3),cf=new r7("UP",4)}function _N(){_N=F,cz=new vQ("P1_STRUCTURE",0),uz=new vQ("P2_PROCESSING_ORDER",1),fz=new vQ("P3_EXECUTION",2)}function y_t(){y_t=F,UNt=Hh(Hh(b$(Hh(Hh(b$(gr(new Ki,(k3(),c5),(K6(),fae)),u5),XIe),YIe),f5),VIe),QIe)}function CCn(e){switch(f(V(e,(nt(),Iw)),311).g){case 1:Xe(e,Iw,(wb(),J3));break;case 2:Xe(e,Iw,(wb(),G2))}}function ACn(e){switch(e){case 0:return new alt;case 1:return new slt;case 2:return new llt;default:throw ne(new MO)}}function v_t(e){switch(e.g){case 2:return al;case 1:return Js;case 4:return gh;case 3:return cf;default:return wh}}function f2e(e,t){switch(e.b.g){case 0:case 1:return t;case 2:case 3:return new Gu(t.d,0,t.a,t.b);default:return null}}function d2e(e){switch(e.g){case 1:return wn;case 2:return bn;case 3:return _n;case 4:return jn;default:return Cl}}function SN(e){switch(e.g){case 1:return jn;case 2:return wn;case 3:return bn;case 4:return _n;default:return Cl}}function tH(e){switch(e.g){case 1:return _n;case 2:return jn;case 3:return wn;case 4:return bn;default:return Cl}}function h2e(e,t,i,s){switch(t){case 1:return!e.n&&(e.n=new qe(Fs,e,1,7)),e.n;case 2:return e.k}return oEe(e,t,i,s)}function R6(e,t,i){var s,a;return e.Pj()?(a=e.Qj(),s=Ene(e,t,i),e.Jj(e.Ij(7,ot(i),s,t,a)),s):Ene(e,t,i)}function wte(e,t){var i,s,a;e.d==null?(++e.e,--e.f):(a=t.ld(),i=t.Bi(),s=(i&Nr)%e.d.length,hkn(e,s,Ukt(e,s,i,a)))}function JC(e,t){var i;i=(e.Bb&sd)!=0,t?e.Bb|=sd:e.Bb&=-1025,e.Db&4&&!(e.Db&1)&&Dr(e,new ed(e,1,10,i,t))}function YC(e,t){var i;i=(e.Bb&g_)!=0,t?e.Bb|=g_:e.Bb&=-4097,e.Db&4&&!(e.Db&1)&&Dr(e,new ed(e,1,12,i,t))}function QC(e,t){var i;i=(e.Bb&yc)!=0,t?e.Bb|=yc:e.Bb&=-8193,e.Db&4&&!(e.Db&1)&&Dr(e,new ed(e,1,15,i,t))}function ZC(e,t){var i;i=(e.Bb&E_)!=0,t?e.Bb|=E_:e.Bb&=-2049,e.Db&4&&!(e.Db&1)&&Dr(e,new ed(e,1,11,i,t))}function TCn(e){var t;e.g&&(t=e.c.kg()?e.f:e.a,Xke(t.a,e.o,!0),Xke(t.a,e.o,!1),Xe(e.o,(bt(),Oi),(Co(),Gw)))}function $Cn(e){var t;if(!e.a)throw ne(new Us("Cannot offset an unassigned cut."));t=e.c-e.b,e.b+=t,Vbt(e,t),Gbt(e,t)}function ICn(e,t){var i;if(i=En(e.k,t),i==null)throw ne(new $h("Port did not exist in input."));return xSe(t,i),null}function PCn(e){var t,i;for(i=Bkt(vu(e)).Kc();i.Ob();)if(t=or(i.Pb()),q6(e,t))return OEn((Sct(),HDt),t);return null}function __t(e){var t,i;for(i=e.p.a.ec().Kc();i.Ob();)if(t=f(i.Pb(),218),t.f&&e.b[t.c]<-1e-10)return t;return null}function OCn(e){var t,i;for(i=Q0(new m1,91),t=!0;e.Ob();)t||(i.a+=ds),t=!1,aa(i,e.Pb());return(i.a+="]",i).a}function NCn(e){var t,i,s;for(t=new st,s=new ee(e.b);s.at?1:e==t?e==0?Qr(1/e,1/t):0:isNaN(e)?isNaN(t)?0:1:-1}function DCn(e){var t;return t=e.a[e.c-1&e.a.length-1],t==null?null:(e.c=e.c-1&e.a.length-1,Ci(e.a,e.c,null),t)}function LCn(e){var t,i,s;for(s=0,i=e.length,t=0;t=1?al:gh):i}function WCn(e){switch(f(V(e,(bt(),Ob)),223).g){case 1:return new IXe;case 3:return new DXe;default:return new $Xe}}function L1(e){if(e.c)L1(e.c);else if(e.d)throw ne(new Us("Stream already terminated, can't be modified or used"))}function Jm(e,t,i){var s;return s=e.a.get(t),e.a.set(t,i===void 0?null:i),s===void 0?(++e.c,++e.b.g):++e.d,s}function HCn(e,t,i){var s,a;for(a=e.a.ec().Kc();a.Ob();)if(s=f(a.Pb(),10),cN(i,f(vt(t,s.p),16)))return s;return null}function b2e(e,t,i){var s;return s=0,t&&(US(e.a)?s+=t.f.a/2:s+=t.f.b/2),i&&(US(e.a)?s+=i.f.a/2:s+=i.f.b/2),s}function UCn(e,t,i){var s;s=i,!s&&(s=Dye(new Ok,0)),s.Ug(OAt,2),xSt(e.b,t,s.eh(1)),iDn(e,t,s.eh(1)),ljn(t,s.eh(1)),s.Vg()}function g2e(e,t,i){var s,a;return s=(v1(),a=new Lj,a),AW(s,t),CW(s,i),e&&zn((!e.a&&(e.a=new zi(Nu,e,5)),e.a),s),s}function yte(e){var t;return e.Db&64?rd(e):(t=new wf(rd(e)),t.a+=" (identifier: ",Ms(t,e.k),t.a+=")",t.a)}function vte(e,t){var i;i=(e.Bb&Vl)!=0,t?e.Bb|=Vl:e.Bb&=-32769,e.Db&4&&!(e.Db&1)&&Dr(e,new ed(e,1,18,i,t))}function w2e(e,t){var i;i=(e.Bb&Vl)!=0,t?e.Bb|=Vl:e.Bb&=-32769,e.Db&4&&!(e.Db&1)&&Dr(e,new ed(e,1,18,i,t))}function eA(e,t){var i;i=(e.Bb&Vh)!=0,t?e.Bb|=Vh:e.Bb&=-16385,e.Db&4&&!(e.Db&1)&&Dr(e,new ed(e,1,16,i,t))}function m2e(e,t){var i;i=(e.Bb&ys)!=0,t?e.Bb|=ys:e.Bb&=-65537,e.Db&4&&!(e.Db&1)&&Dr(e,new ed(e,1,20,i,t))}function y2e(e){var t;return t=Fe(df,zh,28,2,15,1),e-=ys,t[0]=(e>>10)+dM&Ji,t[1]=(e&1023)+56320&Ji,Bh(t,0,t.length)}function GCn(e){var t;return t=o_(e),t>34028234663852886e22?hi:t<-34028234663852886e22?to:t}function is(e,t){var i;return ul(e)&&ul(t)&&(i=e+t,fM"+nw(t.c):"e_"+ti(t),e.b&&e.c?nw(e.b)+"->"+nw(e.c):"e_"+ti(e))}function KCn(e,t){return Ht(t.b&&t.c?nw(t.b)+"->"+nw(t.c):"e_"+ti(t),e.b&&e.c?nw(e.b)+"->"+nw(e.c):"e_"+ti(e))}function Ym(e,t){return Kd(),td(G1),h.Math.abs(e-t)<=G1||e==t||isNaN(e)&&isNaN(t)?0:et?1:Em(isNaN(e),isNaN(t))}function _b(){_b=F,Ece=new DF(lI,0),D9=new DF("POLYLINE",1),C4=new DF("ORTHOGONAL",2),uR=new DF("SPLINES",3)}function rH(){rH=F,X5e=new mQ("ASPECT_RATIO_DRIVEN",0),Uae=new mQ("MAX_SCALE_DRIVEN",1),q5e=new mQ("AREA_DRIVEN",2)}function qCn(e,t,i){var s;try{wxn(e,t,i)}catch(a){throw a=mi(a),ve(a,606)?(s=a,ne(new y_e(s))):ne(a)}return t}function XCn(e){var t,i,s;for(i=0,s=e.length;it&&s.Ne(e[c-1],e[c])>0;--c)b=e[c],Ci(e,c,e[c-1]),Ci(e,c-1,b)}function Ot(e,t){var i,s,a,c,b;if(i=t.f,kg(e.c.d,i,t),t.g!=null)for(a=t.g,c=0,b=a.length;ct){y1t(i);break}}C7(i,t)}function ZCn(e,t){var i,s,a;s=ZS(t),a=Ae(je(t_(s,(bt(),ud)))),i=h.Math.max(0,a/2-.5),N6(t,i,1),lt(e,new jct(t,i))}function eAn(e,t,i){var s;i.Ug("Straight Line Edge Routing",1),i.dh(t,vCe),s=f(Ye(t,(JS(),nE)),27),lxt(e,s),i.dh(t,qU)}function v2e(e,t){e.n.c.length==0&<(e.n,new JB(e.s,e.t,e.i)),lt(e.b,t),eEe(f(vt(e.n,e.n.c.length-1),209),t),URt(e,t)}function x6(e){var t;this.a=(t=f(e.e&&e.e(),9),new Uu(t,f(Yf(t,t.length),9),0)),this.b=Fe(ho,on,1,this.a.a.length,5,1)}function dl(e){var t;return Array.isArray(e)&&e.Tm===ae?z0(ou(e))+"@"+(t=ti(e)>>>0,t.toString(16)):e.toString()}function tAn(e,t){return e.h==uM&&e.m==0&&e.l==0?(t&&(J1=Oa(0,0,0)),ift((xC(),XAe))):(t&&(J1=Oa(e.l,e.m,e.h)),Oa(0,0,0))}function nAn(e,t){switch(t.g){case 2:return e.b;case 1:return e.c;case 4:return e.d;case 3:return e.a;default:return!1}}function R_t(e,t){switch(t.g){case 2:return e.b;case 1:return e.c;case 4:return e.d;case 3:return e.a;default:return!1}}function _2e(e,t,i,s){switch(t){case 3:return e.f;case 4:return e.g;case 5:return e.i;case 6:return e.j}return h2e(e,t,i,s)}function iH(e,t){if(t==e.d)return e.e;if(t==e.e)return e.d;throw ne(new hn("Node "+t+" not part of edge "+e))}function rAn(e,t){var i;if(i=VN(e.Dh(),t),ve(i,102))return f(i,19);throw ne(new hn(X1+t+"' is not a valid reference"))}function Qu(e,t,i,s){if(t<0)Bke(e,i,s);else{if(!i.rk())throw ne(new hn(X1+i.xe()+_I));f(i,69).wk().Ck(e,e.hi(),t,s)}}function Hc(e){var t;if(e.b){if(Hc(e.b),e.b.d!=e.c)throw ne(new Bu)}else e.d.dc()&&(t=f(e.f.c.xc(e.e),16),t&&(e.d=t))}function iAn(e){Mv();var t,i,s,a;for(t=e.o.b,s=f(f(Hr(e.r,(ut(),jn)),21),87).Kc();s.Ob();)i=f(s.Pb(),117),a=i.e,a.b+=t}function oAn(e){var t,i,s;for(this.a=new Oh,s=new ee(e);s.a=a)return t.c+i;return t.c+t.b.gc()}function lAn(e,t){oC();var i,s,a,c;for(s=Lwt(e),a=t,kC(s,0,s.length,a),i=0;i0&&(s+=a,++i);return i>1&&(s+=e.d*(i-1)),s}function cAn(e){var t,i,s,a,c;return c=FEe(e),i=FO(e.c),s=!i,s&&(a=new B0,Id(c,"knownLayouters",a),t=new bst(a),Vo(e.c,t)),c}function k2e(e){var t,i,s;for(s=new ig,s.a+="[",t=0,i=e.gc();t0&&(pn(t-1,e.length),e.charCodeAt(t-1)==58)&&!Ete(e,j5,F5))}function R2e(e,t){var i;return Oe(e)===Oe(t)?!0:ve(t,92)?(i=f(t,92),e.e==i.e&&e.d==i.d&&DEn(e,i.a)):!1}function y3(e){switch(ut(),e.g){case 4:return bn;case 1:return _n;case 3:return jn;case 2:return wn;default:return Cl}}function hAn(e){var t,i;if(e.b)return e.b;for(i=fh?null:e.d;i;){if(t=fh?null:i.b,t)return t;i=fh?null:i.d}return Zx(),y4e}function x2e(e){var t,i,s;for(s=Ae(je(e.a.of((Er(),yz)))),i=new ee(e.a.Sf());i.a>5,t=e&31,s=Fe(Xn,wr,28,i+1,15,1),s[i]=1<3;)a*=10,--c;e=(e+(a>>1))/a|0}return s.i=e,!0}function yi(e,t){var i,s,a;if(i=(e.i==null&&Gh(e),e.i),s=t.Lj(),s!=-1){for(a=i.length;s=0;--s)for(t=i[s],a=0;a>1,this.k=t-1>>1}function AAn(e){pW(),f(e.of((Er(),l0)),181).Hc((Gc(),xz))&&(f(e.of(z_),181).Fc(($c(),fR)),f(e.of(l0),181).Mc(xz))}function P_t(e){var t,i;t=e.d==(R3(),e4),i=TEe(e),t&&!i||!t&&i?Xe(e.a,(bt(),np),(_p(),A9)):Xe(e.a,(bt(),np),(_p(),C9))}function xte(){xte=F,gF(),FV=(bt(),Iy),t7t=Qd(se(ie(oce,1),lCe,149,0,[u9,ud,J2,$y,B_,Hle,p4,b4,Ule,e5,X2,jw,Y2]))}function TAn(e,t){var i;return i=f(fl(e,Cc(new K,new B,new Zt,se(ie(qs,1),Je,108,0,[(Tc(),pl)]))),15),i.Qc(Zht(i.gc()))}function O_t(e,t){var i,s;if(s=new Fx(e.a.ad(t,!0)),s.a.gc()<=1)throw ne(new $k);return i=s.a.ec().Kc(),i.Pb(),f(i.Pb(),40)}function $An(e,t,i){var s,a;return s=Ae(e.p[t.i.p])+Ae(e.d[t.i.p])+t.n.b+t.a.b,a=Ae(e.p[i.i.p])+Ae(e.d[i.i.p])+i.n.b+i.a.b,a-s}function O2e(e,t){var i;return e.i>0&&(t.lengthe.i&&Ci(t,e.i,null),t}function sH(e){var t;return e.Db&64?S6(e):(t=new wf(S6(e)),t.a+=" (instanceClassName: ",Ms(t,e.D),t.a+=")",t.a)}function lH(e){var t,i,s,a;for(a=0,i=0,s=e.length;i0?(e._j(),s=t==null?0:ti(t),a=(s&Nr)%e.d.length,i=Ukt(e,a,s,t),i!=-1):!1}function N_t(e,t){var i,s;e.a=is(e.a,1),e.c=h.Math.min(e.c,t),e.b=h.Math.max(e.b,t),e.d+=t,i=t-e.f,s=e.e+i,e.f=s-e.e-i,e.e=s}function N2e(e,t){switch(t){case 3:Gm(e,0);return;case 4:Vm(e,0);return;case 5:Da(e,0);return;case 6:La(e,0);return}i2e(e,t)}function Qm(e,t){switch(t.g){case 1:return Yk(e.j,(bc(),_Te));case 2:return Yk(e.j,(bc(),ETe));default:return Kt(),Kt(),ps}}function M2e(e){Om();var t;switch(t=e.Pc(),t.length){case 0:return tse;case 1:return new sZ(nr(t[0]));default:return new WZ(XCn(t))}}function M_t(e,t){e.Xj();try{e.d.bd(e.e++,t),e.f=e.d.j,e.g=-1}catch(i){throw i=mi(i),ve(i,77)?ne(new Bu):ne(i)}}function Ate(){Ate=F,jce=new AZe,$Oe=new TZe,IOe=new $Ze,POe=new IZe,OOe=new PZe,NOe=new OZe,MOe=new NZe,DOe=new MZe,LOe=new DZe}function aH(e,t){ime();var i,s;return i=g7((nF(),nF(),OI)),s=null,t==i&&(s=f(ua(KAe,e),624)),s||(s=new ebt(e),t==i&&Gs(KAe,e,s)),s}function D_t(e){n_();var t;return(e.q?e.q:(Kt(),Kt(),Ip))._b((bt(),Ay))?t=f(V(e,Ay),203):t=f(V(Go(e),ZI),203),t}function t_(e,t){var i,s;return s=null,ri(e,(bt(),LV))&&(i=f(V(e,LV),96),i.pf(t)&&(s=i.of(t))),s==null&&(s=V(Go(e),t)),s}function L_t(e,t){var i,s,a;return ve(t,44)?(i=f(t,44),s=i.ld(),a=Zv(e.Rc(),s),Lh(a,i.md())&&(a!=null||e.Rc()._b(s))):!1}function Od(e,t){var i,s,a;return e.f>0&&(e._j(),s=t==null?0:ti(t),a=(s&Nr)%e.d.length,i=vke(e,a,s,t),i)?i.md():null}function xa(e,t,i){var s,a,c;return e.Pj()?(s=e.i,c=e.Qj(),mN(e,s,t),a=e.Ij(3,null,t,s,c),i?i.nj(a):i=a):mN(e,e.i,t),i}function PAn(e,t,i){var s,a;return s=new gb(e.e,4,10,(a=t.c,ve(a,90)?f(a,29):(zt(),Mf)),null,Rg(e,t),!1),i?i.nj(s):i=s,i}function OAn(e,t,i){var s,a;return s=new gb(e.e,3,10,null,(a=t.c,ve(a,90)?f(a,29):(zt(),Mf)),Rg(e,t),!1),i?i.nj(s):i=s,i}function j_t(e){Mv();var t;return t=new us(f(e.e.of((Er(),fE)),8)),e.B.Hc((Gc(),T4))&&(t.a<=0&&(t.a=20),t.b<=0&&(t.b=20)),t}function j1(e){Uh();var t,i;return i=tr(e),t=tr(x1(e,32)),t!=0?new zgt(i,t):i>10||i<0?new pb(1,i):k6t[i]}function kN(e,t){var i;return ul(e)&&ul(t)&&(i=e%t,fM=0?c=c.a[1]:(a=c,c=c.a[0])}return a}function xN(e,t,i){var s,a,c;for(a=null,c=e.b;c;){if(s=e.a.Ne(t,c.d),i&&s==0)return c;s<=0?c=c.a[0]:(a=c,c=c.a[1])}return a}function FAn(e,t,i,s){var a,c,b;return a=!1,HDn(e.f,i,s)&&(l4n(e.f,e.a[t][i],e.a[t][s]),c=e.a[t],b=c[s],c[s]=c[i],c[i]=b,a=!0),a}function H_t(e,t,i){var s,a,c,b;for(a=f(En(e.b,i),183),s=0,b=new ee(t.j);b.a>5,t&=31,a=e.d+i+(t==0?0:1),s=Fe(Xn,wr,28,a,15,1),L6n(s,e.a,i,t),c=new Y0(e.e,a,s),t6(c),c}function BAn(e,t){var i,s,a;for(s=new kn(xn(Wi(e).a.Kc(),new O));Un(s);)if(i=f(On(s),18),a=i.d.i,a.c==t)return!1;return!0}function j2e(e,t,i){var s,a,c,b,g;return b=e.k,g=t.k,s=i[b.g][g.g],a=je(t_(e,s)),c=je(t_(t,s)),h.Math.max((mn(a),a),(mn(c),c))}function WAn(){return Error.stackTraceLimit>0?(h.Error.stackTraceLimit=Error.stackTraceLimit=64,!0):"stack"in new Error}function HAn(e,t){return Kd(),Kd(),td(G1),(h.Math.abs(e-t)<=G1||e==t||isNaN(e)&&isNaN(t)?0:et?1:Em(isNaN(e),isNaN(t)))>0}function F2e(e,t){return Kd(),Kd(),td(G1),(h.Math.abs(e-t)<=G1||e==t||isNaN(e)&&isNaN(t)?0:et?1:Em(isNaN(e),isNaN(t)))<0}function G_t(e,t){return Kd(),Kd(),td(G1),(h.Math.abs(e-t)<=G1||e==t||isNaN(e)&&isNaN(t)?0:et?1:Em(isNaN(e),isNaN(t)))<=0}function $te(e,t){for(var i=0;!t[i]||t[i]=="";)i++;for(var s=t[i++];i0&&this.b>0&&(this.g=_B(this.c,this.b,this.a))}function UAn(e,t){var i=e.a,s;t=String(t),i.hasOwnProperty(t)&&(s=i[t]);var a=(Qee(),lse)[typeof s],c=a?a(s):ZSe(typeof s);return c}function nA(e){var t,i,s;if(s=null,t=Zh in e.a,i=!t,i)throw ne(new $h("Every element must have an id."));return s=x3(fb(e,Zh)),s}function Zm(e){var t,i;for(i=gEt(e),t=null;e.c==2;)Ir(e),t||(t=(Or(),Or(),new O$(2)),ww(t,i),i=t),i.Jm(gEt(e));return i}function uH(e,t){var i,s,a;return e._j(),s=t==null?0:ti(t),a=(s&Nr)%e.d.length,i=vke(e,a,s,t),i?(Qmt(e,i),i.md()):null}function Y_t(e,t){return e.e>t.e?1:e.et.d?e.e:e.d=48&&e<48+h.Math.min(10,10)?e-48:e>=97&&e<97?e-97+10:e>=65&&e<65?e-65+10:-1}function GAn(e,t){if(t.c==e)return t.d;if(t.d==e)return t.c;throw ne(new hn("Input edge is not connected to the input port."))}function VAn(e){if(dH(WA,e))return cn(),qA;if(dH(woe,e))return cn(),Y1;throw ne(new hn("Expecting true or false"))}function H2e(e){switch(typeof e){case dre:return mg(e);case Y3e:return Gk(e);case $3:return Pdt(e);default:return e==null?0:xm(e)}}function Hh(e,t){if(e.a<0)throw ne(new Us("Did not call before(...) or after(...) before calling add(...)."));return Dme(e,e.a,t),e}function U2e(e){return YB(),ve(e,162)?f(En(q9,T6t),295).Rg(e):Na(q9,ou(e))?f(En(q9,ou(e)),295).Rg(e):null}function ja(e){var t,i;return e.Db&32||(i=(t=f(dn(e,16),29),Pn(t||e.ii())-Pn(e.ii())),i!=0&&v3(e,32,Fe(ho,on,1,i,5,1))),e}function v3(e,t,i){var s;e.Db&t?i==null?A8n(e,t):(s=Yte(e,t),s==-1?e.Eb=i:Ci(ow(e.Eb),s,i)):i!=null&&YOn(e,t,i)}function zAn(e,t,i,s){var a,c;t.c.length!=0&&(a=WPn(i,s),c=H5n(t),Mi(RW(new Wt(null,new Vt(c,1)),new MJe),new Tbt(e,i,a,s)))}function KAn(e,t){var i,s,a,c;return s=e.a.length-1,i=t-e.b&s,c=e.c-t&s,a=e.c-e.b&s,Cdt(i=c?(Vxn(e,t),-1):(Gxn(e,t),1)}function fH(e){var t,i,s;if(s=e.Jh(),!s)for(t=0,i=e.Ph();i;i=i.Ph()){if(++t>Wre)return i.Qh();if(s=i.Jh(),s||i==e)break}return s}function Z_t(e,t){var i;return Oe(t)===Oe(e)?!0:!ve(t,21)||(i=f(t,21),i.gc()!=e.gc())?!1:e.Ic(i)}function qAn(e,t){return e.et.e?1:e.ft.f?1:ti(e)-ti(t)}function dH(e,t){return mn(e),t==null?!1:Ht(e,t)?!0:e.length==t.length&&Ht(e.toLowerCase(),t.toLowerCase())}function Eb(e){var t,i;return Jl(e,-129)>0&&Jl(e,128)<0?(rpt(),t=tr(e)+128,i=n4e[t],!i&&(i=n4e[t]=new i0e(e)),i):new i0e(e)}function hw(){hw=F,A_=new AF(Jh,0),gTe=new AF("INSIDE_PORT_SIDE_GROUPS",1),Wse=new AF("GROUP_MODEL_ORDER",2),Hse=new AF(BRe,3)}function XAn(e){var t;return e.b||Hbn(e,(t=W0n(e.e,e.a),!t||!Ht(woe,Od((!t.b&&(t.b=new nu((zt(),_s),Ll,t)),t.b),"qualified")))),e.c}function JAn(e,t){var i,s;for(i=(pn(t,e.length),e.charCodeAt(t)),s=t+1;s2e3&&(p6t=e,SG=h.setTimeout(Kbn,10))),_G++==0?(c3n((J0e(),zAe)),!0):!1}function u4n(e,t,i){var s;(D6t?(hAn(e),!0):L6t||F6t?(Zx(),!0):j6t&&(Zx(),!1))&&(s=new ght(t),s.b=i,mIn(e,s))}function Pte(e,t){var i;i=!e.A.Hc((su(),Vw))||e.q==(Co(),ya),e.u.Hc(($c(),Mb))?i?ZLn(e,t):qxt(e,t):e.u.Hc(f0)&&(i?yLn(e,t):cCt(e,t))}function oSt(e){var t;Oe(Ye(e,(Er(),cE)))===Oe((vb(),Sz))&&(di(e)?(t=f(Ye(di(e),cE),346),zr(e,cE,t)):zr(e,cE,T5))}function f4n(e){var t,i;return ri(e.d.i,(bt(),f4))?(t=f(V(e.c.i,f4),17),i=f(V(e.d.i,f4),17),Xl(t.a,i.a)>0):!1}function sSt(e,t,i){return new Gu(h.Math.min(e.a,t.a)-i/2,h.Math.min(e.b,t.b)-i/2,h.Math.abs(e.a-t.a)+i,h.Math.abs(e.b-t.b)+i)}function lSt(e){var t;this.d=new st,this.j=new Io,this.g=new Io,t=e.g.b,this.f=f(V(Go(t),(bt(),$u)),88),this.e=Ae(je(gH(t,B_)))}function aSt(e){this.d=new st,this.e=new hg,this.c=Fe(Xn,wr,28,(ut(),se(ie(vs,1),Ql,64,0,[Cl,bn,_n,jn,wn])).length,15,1),this.b=e}function z2e(e,t,i){var s;switch(s=i[e.g][t],e.g){case 1:case 3:return new tt(0,s);case 2:case 4:return new tt(s,0);default:return null}}function cSt(e,t,i){var s,a;a=f(P7(t.f),205);try{a.rf(e,i),pbt(t.f,a)}catch(c){throw c=mi(c),ve(c,103)?(s=c,ne(s)):ne(c)}}function uSt(e,t,i){var s,a,c,b,g,m;return s=null,g=L3e(OC(),t),c=null,g&&(a=null,m=M3e(g,i),b=null,m!=null&&(b=e.qf(g,m)),a=b,c=a),s=c,s}function Ote(e,t,i,s){var a;if(a=e.length,t>=a)return a;for(t=t>0?t:0;ts&&Ci(t,s,null),t}function fSt(e,t){var i,s;for(s=e.a.length,t.lengths&&Ci(t,s,null),t}function rA(e,t){var i,s;if(++e.j,t!=null&&(i=(s=e.a.Cb,ve(s,99)?f(s,99).th():null),g8n(t,i))){v3(e.a,4,i);return}v3(e.a,4,f(t,129))}function d4n(e){var t;if(e==null)return null;if(t=wPn(ha(e,!0)),t==null)throw ne(new PY("Invalid hexBinary value: '"+e+"'"));return t}function hH(e,t,i){var s;t.a.length>0&&(lt(e.b,new Pht(t.a,i)),s=t.a.length,0s&&(t.a+=Nft(Fe(df,zh,28,-s,15,1))))}function dSt(e,t,i){var s,a,c;if(!i[t.d])for(i[t.d]=!0,a=new ee(s2(t));a.a=e.b>>1)for(s=e.c,i=e.b;i>t;--i)s=s.b;else for(s=e.a.a,i=0;i=0?e.Wh(a):Sne(e,s)):i<0?Sne(e,s):f(s,69).wk().Bk(e,e.hi(),i)}function gSt(e){var t,i,s;for(s=(!e.o&&(e.o=new pc((Yl(),Fp),Hg,e,0)),e.o),i=s.c.Kc();i.e!=i.i.gc();)t=f(i.Yj(),44),t.md();return G7(s)}function ht(e){var t;if(ve(e.a,4)){if(t=U2e(e.a),t==null)throw ne(new Us(j4t+e.b+"'. "+L4t+(cb(X9),X9.k)+QCe));return t}else return e.a}function v4n(e,t){var i,s;if(e.j.length!=t.j.length)return!1;for(i=0,s=e.j.length;i=64&&t<128&&(a=Ad(a,Zf(1,t-64)));return a}function gH(e,t){var i,s;return s=null,ri(e,(Er(),aR))&&(i=f(V(e,aR),96),i.pf(t)&&(s=i.of(t))),s==null&&Go(e)&&(s=V(Go(e),t)),s}function _4n(e,t){var i;return i=f(V(e,(bt(),Xs)),75),OQ(t,L5t)?i?wu(i):(i=new cc,Xe(e,Xs,i)):i&&Xe(e,Xs,null),i}function T6(){T6=F,J4e=(Er(),CPe),Ase=lPe,DIt=sE,X4e=Bg,BIt=(AH(),A4e),FIt=x4e,WIt=$4e,jIt=R4e,LIt=(cte(),z4e),Cse=OIt,q4e=NIt,OG=MIt}function wH(e){switch(ywe(),this.c=new st,this.d=e,e.g){case 0:case 2:this.a=Cve(bTe),this.b=hi;break;case 3:case 1:this.a=bTe,this.b=to}}function S4n(e){var t;Jk(f(V(e,(bt(),Oi)),101))&&(t=e.b,ikt((qt(0,t.c.length),f(t.c[0],30))),ikt(f(vt(t,t.c.length-1),30)))}function E4n(e,t){t.Ug("Self-Loop post-processing",1),Mi(Br(Br(El(new Wt(null,new Vt(e.b,16)),new uqe),new fqe),new dqe),new hqe),t.Vg()}function wSt(e,t,i){var s,a;if(e.c)Da(e.c,e.c.i+t),La(e.c,e.c.j+i);else for(a=new ee(e.b);a.a=0&&(i.d=e.t);break;case 3:e.t>=0&&(i.a=e.t)}e.C&&(i.b=e.C.b,i.c=e.C.c)}function $6(){$6=F,mIe=new YO(aCe,0),Qle=new YO(vie,1),Zle=new YO("LINEAR_SEGMENTS",2),n5=new YO("BRANDES_KOEPF",3),r5=new YO(d4t,4)}function I6(){I6=F,KM=new xF(wU,0),IG=new xF(eie,1),PG=new xF(tie,2),qM=new xF(nie,3),KM.a=!1,IG.a=!0,PG.a=!1,qM.a=!0}function _3(){_3=F,GM=new RF(wU,0),UM=new RF(eie,1),VM=new RF(tie,2),zM=new RF(nie,3),GM.a=!1,UM.a=!0,VM.a=!1,zM.a=!0}function S3(e,t,i,s){var a;return i>=0?e.Sh(t,i,s):(e.Ph()&&(s=(a=e.Fh(),a>=0?e.Ah(s):e.Ph().Th(e,-1-a,null,s))),e.Ch(t,i,s))}function K2e(e,t){switch(t){case 7:!e.e&&(e.e=new en(Fi,e,7,4)),Vn(e.e);return;case 8:!e.d&&(e.d=new en(Fi,e,8,5)),Vn(e.d);return}N2e(e,t)}function zr(e,t,i){return i==null?(!e.o&&(e.o=new pc((Yl(),Fp),Hg,e,0)),uH(e.o,t)):(!e.o&&(e.o=new pc((Yl(),Fp),Hg,e,0)),PN(e.o,t,i)),e}function _St(e,t){Kt();var i,s,a,c;for(i=e,c=t,ve(e,21)&&!ve(t,21)&&(i=t,c=e),a=i.Kc();a.Ob();)if(s=a.Pb(),c.Hc(s))return!1;return!0}function A4n(e,t,i,s){if(t.ai.b)return!0}return!1}function jte(e,t){return Eo(e)?!!l6t[t]:e.Sm?!!e.Sm[t]:Pv(e)?!!s6t[t]:Iv(e)?!!o6t[t]:!1}function T4n(e){var t;t=e.a;do t=f(On(new kn(xn(go(t).a.Kc(),new O))),18).c.i,t.k==(gn(),vo)&&e.b.Fc(t);while(t.k==(gn(),vo));e.b=Zu(e.b)}function SSt(e,t){var i,s,a;for(a=e,s=new kn(xn(go(t).a.Kc(),new O));Un(s);)i=f(On(s),18),i.c.i.c&&(a=h.Math.max(a,i.c.i.c.p));return a}function $4n(e,t){var i,s,a;for(a=0,s=f(f(Hr(e.r,t),21),87).Kc();s.Ob();)i=f(s.Pb(),117),a+=i.d.d+i.b.Mf().b+i.d.a,s.Ob()&&(a+=e.w);return a}function I4n(e,t){var i,s,a;for(a=0,s=f(f(Hr(e.r,t),21),87).Kc();s.Ob();)i=f(s.Pb(),117),a+=i.d.b+i.b.Mf().a+i.d.c,s.Ob()&&(a+=e.w);return a}function ESt(e){var t,i,s,a;if(s=0,a=c_(e),a.c.length==0)return 1;for(i=new ee(a);i.a=0?e.Lh(b,i,!0):ry(e,c,i)):f(c,69).wk().yk(e,e.hi(),a,i,s)}function M4n(e,t,i,s){var a,c;c=t.pf((Er(),uE))?f(t.of(uE),21):e.j,a=yCn(c),a!=(uU(),Ese)&&(i&&!B2e(a)||QEe(mPn(e,a,s),t))}function D4n(e){switch(e.g){case 1:return Xm(),HM;case 3:return Xm(),WM;case 2:return Xm(),Rse;case 4:return Xm(),kse;default:return null}}function L4n(e,t,i){if(e.e)switch(e.b){case 1:C_n(e.c,t,i);break;case 0:A_n(e.c,t,i)}else G1t(e.c,t,i);e.a[t.p][i.p]=e.c.i,e.a[i.p][t.p]=e.c.e}function kSt(e){var t,i;if(e==null)return null;for(i=Fe(Op,rt,199,e.length,0,2),t=0;t=0)return a;if(e.ol()){for(s=0;s=a)throw ne(new Lv(t,a));if(e.Si()&&(s=e.dd(i),s>=0&&s!=t))throw ne(new hn(PM));return e.Xi(t,i)}function q2e(e,t){if(this.a=f(nr(e),253),this.b=f(nr(t),253),e.Ed(t)>0||e==(RY(),Zoe)||t==(xY(),ese))throw ne(new hn("Invalid range: "+K1t(e,t)))}function RSt(e){var t,i;for(this.b=new st,this.c=e,this.a=!1,i=new ee(e.a);i.a0),(t&-t)==t)return oo(t*Uc(e,31)*4656612873077393e-25);do i=Uc(e,31),s=i%t;while(i-s+(t-1)<0);return oo(s)}function U4n(e,t,i){switch(i.g){case 1:e.a=t.a/2,e.b=0;break;case 2:e.a=t.a,e.b=t.b/2;break;case 3:e.a=t.a/2,e.b=t.b;break;case 4:e.a=0,e.b=t.b/2}}function CN(e,t,i,s){var a,c;for(a=t;a1&&(c=F4n(e,t)),c}function ASt(e){var t;return t=Ae(je(Ye(e,(Er(),M9))))*h.Math.sqrt((!e.a&&(e.a=new qe($r,e,10,11)),e.a).i),new tt(t,t/Ae(je(Ye(e,vz))))}function Bte(e){var t;return e.f&&e.f.Vh()&&(t=f(e.f,54),e.f=f(D1(e,t),84),e.f!=t&&e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,9,8,t,e.f))),e.f}function Wte(e){var t;return e.i&&e.i.Vh()&&(t=f(e.i,54),e.i=f(D1(e,t),84),e.i!=t&&e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,9,7,t,e.i))),e.i}function Es(e){var t;return e.b&&e.b.Db&64&&(t=e.b,e.b=f(D1(e,t),19),e.b!=t&&e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,9,21,t,e.b))),e.b}function SH(e,t){var i,s,a;e.d==null?(++e.e,++e.f):(s=t.Bi(),dOn(e,e.f+1),a=(s&Nr)%e.d.length,i=e.d[a],!i&&(i=e.d[a]=e.dk()),i.Fc(t),++e.f)}function Y2e(e,t,i){var s;return t.tk()?!1:t.Ik()!=-2?(s=t.ik(),s==null?i==null:Lr(s,i)):t.qk()==e.e.Dh()&&i==null}function EH(){var e;Su(16,FCt),e=dyt(16),this.b=Fe(nse,aM,303,e,0,1),this.c=Fe(nse,aM,303,e,0,1),this.a=null,this.e=null,this.i=0,this.f=e-1,this.g=0}function kb(e){rye.call(this),this.k=(gn(),ji),this.j=(Su(6,b_),new ka(6)),this.b=(Su(2,b_),new ka(2)),this.d=new vY,this.f=new j0e,this.a=e}function V4n(e){var t,i;e.c.length<=1||(t=P3t(e,(ut(),jn)),yEt(e,f(t.a,17).a,f(t.b,17).a),i=P3t(e,wn),yEt(e,f(i.a,17).a,f(i.b,17).a))}function z4n(e,t,i){var s,a;for(a=e.a.b,s=a.c.length;s102?-1:e<=57?e-48:e<65?-1:e<=70?e-65+10:e<97?-1:e-97+10}function zte(e,t){if(e==null)throw ne(new Mk("null key in entry: null="+t));if(t==null)throw ne(new Mk("null value in entry: "+e+"=null"))}function X4n(e,t){for(var i,s;e.Ob();)if(!t.Ob()||(i=e.Pb(),s=t.Pb(),!(Oe(i)===Oe(s)||i!=null&&Lr(i,s))))return!1;return!t.Ob()}function ISt(e,t){var i;return i=se(ie(Ro,1),js,28,15,[fte(e.a[0],t),fte(e.a[1],t),fte(e.a[2],t)]),e.d&&(i[0]=h.Math.max(i[0],i[2]),i[2]=i[0]),i}function PSt(e,t){var i;return i=se(ie(Ro,1),js,28,15,[YW(e.a[0],t),YW(e.a[1],t),YW(e.a[2],t)]),e.d&&(i[0]=h.Math.max(i[0],i[2]),i[2]=i[0]),i}function Z2e(e,t,i){Jk(f(V(t,(bt(),Oi)),101))||(h_e(e,t,xg(t,i)),h_e(e,t,xg(t,(ut(),jn))),h_e(e,t,xg(t,bn)),Kt(),Hi(t.j,new jit(e)))}function OSt(e){var t,i;for(e.c||pDn(e),i=new cc,t=new ee(e.a),Z(t);t.a0&&(pn(0,t.length),t.charCodeAt(0)==43)?(pn(1,t.length+1),t.substr(1)):t))}function cTn(e){var t;return e==null?null:new k1((t=ha(e,!0),t.length>0&&(pn(0,t.length),t.charCodeAt(0)==43)?(pn(1,t.length+1),t.substr(1)):t))}function tEe(e,t,i,s,a,c,b,g){var m,_;s&&(m=s.a[0],m&&tEe(e,t,i,m,a,c,b,g),tne(e,i,s.d,a,c,b,g)&&t.Fc(s),_=s.a[1],_&&tEe(e,t,i,_,a,c,b,g))}function u2(e,t,i){try{return Sm(Dee(e,t,i),1)}catch(s){throw s=mi(s),ve(s,333)?ne(new Hs(rie+e.o+"*"+e.p+iie+t+ds+i+oie)):ne(s)}}function jSt(e,t,i){try{return Sm(Dee(e,t,i),0)}catch(s){throw s=mi(s),ve(s,333)?ne(new Hs(rie+e.o+"*"+e.p+iie+t+ds+i+oie)):ne(s)}}function FSt(e,t,i){try{return Sm(Dee(e,t,i),2)}catch(s){throw s=mi(s),ve(s,333)?ne(new Hs(rie+e.o+"*"+e.p+iie+t+ds+i+oie)):ne(s)}}function BSt(e,t){if(e.g==-1)throw ne(new ac);e.Xj();try{e.d.hd(e.g,t),e.f=e.d.j}catch(i){throw i=mi(i),ve(i,77)?ne(new Bu):ne(i)}}function uTn(e){var t,i,s,a,c;for(s=new ee(e.b);s.ac&&Ci(t,c,null),t}function fTn(e,t){var i,s;if(s=e.gc(),t==null){for(i=0;i0&&(m+=a),_[k]=b,b+=g*(m+s)}function HSt(e){var t,i,s;for(s=e.f,e.n=Fe(Ro,js,28,s,15,1),e.d=Fe(Ro,js,28,s,15,1),t=0;t0?e.c:0),++a;e.b=s,e.d=c}function KSt(e,t){var i;return i=se(ie(Ro,1),js,28,15,[J2e(e,(Pd(),Nl),t),J2e(e,Aa,t),J2e(e,Ml,t)]),e.f&&(i[0]=h.Math.max(i[0],i[2]),i[2]=i[0]),i}function yTn(e,t,i){var s;try{QH(e,t+e.j,i+e.k,!1,!0)}catch(a){throw a=mi(a),ve(a,77)?(s=a,ne(new Hs(s.g+yU+t+ds+i+")."))):ne(a)}}function vTn(e,t,i){var s;try{QH(e,t+e.j,i+e.k,!0,!1)}catch(a){throw a=mi(a),ve(a,77)?(s=a,ne(new Hs(s.g+yU+t+ds+i+")."))):ne(a)}}function qSt(e){var t;ri(e,(bt(),Cy))&&(t=f(V(e,Cy),21),t.Hc((a_(),dd))?(t.Mc(dd),t.Fc(hd)):t.Hc(hd)&&(t.Mc(hd),t.Fc(dd)))}function XSt(e){var t;ri(e,(bt(),Cy))&&(t=f(V(e,Cy),21),t.Hc((a_(),bd))?(t.Mc(bd),t.Fc($f)):t.Hc($f)&&(t.Mc($f),t.Fc(bd)))}function Qte(e,t,i,s){var a,c,b,g;return e.a==null&&SIn(e,t),b=t.b.j.c.length,c=i.d.p,g=s.d.p,a=g-1,a<0&&(a=b-1),c<=a?e.a[a]-e.a[c]:e.a[b-1]-e.a[c]+e.a[a]}function _Tn(e){var t,i;if(!e.b)for(e.b=tW(f(e.f,27).kh().i),i=new Sn(f(e.f,27).kh());i.e!=i.i.gc();)t=f(Cn(i),135),lt(e.b,new TY(t));return e.b}function STn(e){var t,i;if(!e.e)for(e.e=tW($Z(f(e.f,27)).i),i=new Sn($Z(f(e.f,27)));i.e!=i.i.gc();)t=f(Cn(i),123),lt(e.e,new Hot(t));return e.e}function JSt(e){var t,i;if(!e.a)for(e.a=tW(UB(f(e.f,27)).i),i=new Sn(UB(f(e.f,27)));i.e!=i.i.gc();)t=f(Cn(i),27),lt(e.a,new LQ(e,t));return e.a}function ty(e){var t;if(!e.C&&(e.D!=null||e.B!=null))if(t=cLn(e),t)e.hl(t);else try{e.hl(null)}catch(i){if(i=mi(i),!ve(i,63))throw ne(i)}return e.C}function ETn(e){switch(e.q.g){case 5:v2t(e,(ut(),bn)),v2t(e,jn);break;case 4:Sxt(e,(ut(),bn)),Sxt(e,jn);break;default:REt(e,(ut(),bn)),REt(e,jn)}}function kTn(e){switch(e.q.g){case 5:_2t(e,(ut(),_n)),_2t(e,wn);break;case 4:Ext(e,(ut(),_n)),Ext(e,wn);break;default:xEt(e,(ut(),_n)),xEt(e,wn)}}function f2(e,t){var i,s,a;for(a=new Io,s=e.Kc();s.Ob();)i=f(s.Pb(),36),bA(i,a.a,0),a.a+=i.f.a+t,a.b=h.Math.max(a.b,i.f.b);return a.b>0&&(a.b+=t),a}function xH(e,t){var i,s,a;for(a=new Io,s=e.Kc();s.Ob();)i=f(s.Pb(),36),bA(i,0,a.b),a.b+=i.f.b+t,a.a=h.Math.max(a.a,i.f.a);return a.a>0&&(a.a+=t),a}function YSt(e){var t,i,s;for(s=Nr,i=new ee(e.a);i.a>16==6?e.Cb.Th(e,5,Bd,t):(s=Es(f(tn((i=f(dn(e,16),29),i||e.ii()),e.Db>>16),19)),e.Cb.Th(e,s.n,s.f,t))}function RTn(e){mC();var t=e.e;if(t&&t.stack){var i=t.stack,s=t+` `;return i.substring(0,s.length)==s&&(i=i.substring(s.length)),i.split(` -`)}return[]}function wTn(e){var t;return t=(Xmt(),h6t),t[e>>>28]|t[e>>24&15]<<4|t[e>>20&15]<<8|t[e>>16&15]<<12|t[e>>12&15]<<16|t[e>>8&15]<<20|t[e>>4&15]<<24|t[e&15]<<28}function qSt(e){var t,i,s;e.b==e.c&&(s=e.a.length,i=ISe(h.Math.max(8,s))<<1,e.b!=0?(t=Yf(e.a,i),uyt(e,t,s),e.a=t,e.b=0):xv(e.a,i),e.c=s)}function mTn(e,t){var i;return i=e.b,i.pf((Er(),qc))?i.ag()==(ft(),wn)?-i.Mf().a-Ae(je(i.of(qc))):t+Ae(je(i.of(qc))):i.ag()==(ft(),wn)?-i.Mf().a:t}function $N(e){var t;return e.b.c.length!=0&&f(yt(e.b,0),72).a?f(yt(e.b,0),72).a:(t=TZ(e),t??""+(e.c?il(e.c.a,e,0):-1))}function AH(e){var t;return e.f.c.length!=0&&f(yt(e.f,0),72).a?f(yt(e.f,0),72).a:(t=TZ(e),t??""+(e.i?il(e.i.j,e,0):-1))}function yTn(e,t){var i,s;if(t<0||t>=e.gc())return null;for(i=t;i0?e.c:0),a=h.Math.max(a,t.d),++s;e.e=c,e.b=a}function _Tn(e){var t,i;if(!e.b)for(e.b=nW(f(e.f,123).kh().i),i=new Sn(f(e.f,123).kh());i.e!=i.i.gc();)t=f(Cn(i),135),lt(e.b,new CY(t));return e.b}function STn(e,t){var i,s,a;if(t.dc())return oC(),oC(),Y9;for(i=new Idt(e,t.gc()),a=new Sn(e);a.e!=a.i.gc();)s=Cn(a),t.Hc(s)&&zn(i,s);return i}function tEe(e,t,i,s){return t==0?s?(!e.o&&(e.o=new pc((Yl(),Fp),Hg,e,0)),e.o):(!e.o&&(e.o=new pc((Yl(),Fp),Hg,e,0)),V7(e.o)):yH(e,t,i,s)}function Qte(e){var t,i;if(e.rb)for(t=0,i=e.rb.i;t>22),a+=s>>22,a<0)?!1:(e.l=i&Vc,e.m=s&Vc,e.h=a&Ab,!0)}function Zte(e,t,i,s,a,c,b){var g,m;return!(t.Te()&&(m=e.a.Ne(i,s),m<0||!a&&m==0)||t.Ue()&&(g=e.a.Ne(i,c),g>0||!b&&g==0))}function xTn(e,t){zC();var i;if(i=e.j.g-t.j.g,i!=0)return 0;switch(e.j.g){case 2:return yte(t,i$e)-yte(e,i$e);case 4:return yte(e,r$e)-yte(t,r$e)}return 0}function CTn(e){switch(e.g){case 0:return cle;case 1:return ule;case 2:return fle;case 3:return dle;case 4:return hV;case 5:return hle;default:return null}}function Ks(e,t,i){var s,a;return s=(a=new _Y,dw(a,t),Ra(a,i),zn((!e.c&&(e.c=new qe(Ly,e,12,10)),e.c),a),a),wg(s,0),Jv(s,1),Sg(s,!0),_g(s,!0),s}function E3(e,t){var i,s;if(t>=e.i)throw ne(new SQ(t,e.i));return++e.j,i=e.g[t],s=e.i-t-1,s>0&&oa(e.g,t+1,e.g,t,s),Ci(e.g,--e.i,null),e.Qi(t,i),e.Ni(),i}function XSt(e,t){var i,s;return e.Db>>16==17?e.Cb.Th(e,21,Pf,t):(s=Es(f(tn((i=f(dn(e,16),29),i||e.ii()),e.Db>>16),19)),e.Cb.Th(e,s.n,s.f,t))}function ATn(e){var t,i,s,a;for(qt(),Hi(e.c,e.a),a=new ee(e.c);a.ai.a.c.length))throw ne(new hn("index must be >= 0 and <= layer node count"));e.c&&Ja(e.c.a,e),e.c=i,i&&$m(i.a,t,e)}function e2t(e,t){var i,s,a;for(s=new kn(xn(Sb(e).a.Kc(),new O));Un(s);)return i=f(On(s),18),a=f(t.Kb(i),10),new Uj(nr(a.n.b+a.o.b/2));return i$(),i$(),Joe}function t2t(e,t){this.c=new Fn,this.a=e,this.b=t,this.d=f(V(e,(nt(),K2)),312),Ne(V(e,(pt(),H6e)))===Ne((X7(),pV))?this.e=new Jst:this.e=new Xst}function O6(e,t){var i,s;return s=null,e.pf((Er(),aR))&&(i=f(e.of(aR),96),i.pf(t)&&(s=i.of(t))),s==null&&e.Tf()&&(s=e.Tf().of(t)),s==null&&(s=dt(t)),s}function ene(e,t){var i,s;i=e.fd(t);try{return s=i.Pb(),i.Qb(),s}catch(a){throw a=mi(a),ve(a,112)?ne(new Hs("Can't remove element "+t)):ne(a)}}function DTn(e,t){var i,s,a;if(s=new hF,a=new NSe(s.q.getFullYear()-V1,s.q.getMonth(),s.q.getDate()),i=KMn(e,t,a),i==0||i0?t:0),++i;return new tt(s,a)}function sEe(e,t){var i,s;return e.Db>>16==6?e.Cb.Th(e,6,Fi,t):(s=Es(f(tn((i=f(dn(e,16),29),i||(Yl(),Iz)),e.Db>>16),19)),e.Cb.Th(e,s.n,s.f,t))}function lEe(e,t){var i,s;return e.Db>>16==7?e.Cb.Th(e,1,z9,t):(s=Es(f(tn((i=f(dn(e,16),29),i||(Yl(),cOe)),e.Db>>16),19)),e.Cb.Th(e,s.n,s.f,t))}function aEe(e,t){var i,s;return e.Db>>16==9?e.Cb.Th(e,9,$r,t):(s=Es(f(tn((i=f(dn(e,16),29),i||(Yl(),fOe)),e.Db>>16),19)),e.Cb.Th(e,s.n,s.f,t))}function i2t(e,t){var i,s;return e.Db>>16==5?e.Cb.Th(e,9,Bz,t):(s=Es(f(tn((i=f(dn(e,16),29),i||(Kt(),Gg)),e.Db>>16),19)),e.Cb.Th(e,s.n,s.f,t))}function o2t(e,t){var i,s;return e.Db>>16==7?e.Cb.Th(e,6,Bd,t):(s=Es(f(tn((i=f(dn(e,16),29),i||(Kt(),zg)),e.Db>>16),19)),e.Cb.Th(e,s.n,s.f,t))}function cEe(e,t){var i,s;return e.Db>>16==3?e.Cb.Th(e,0,q9,t):(s=Es(f(tn((i=f(dn(e,16),29),i||(Kt(),Ug)),e.Db>>16),19)),e.Cb.Th(e,s.n,s.f,t))}function s2t(){this.a=new cZe,this.g=new kH,this.j=new kH,this.b=new Fn,this.d=new kH,this.i=new kH,this.k=new Fn,this.c=new Fn,this.e=new Fn,this.f=new Fn}function FTn(e,t,i){var s,a,c;for(i<0&&(i=0),c=e.i,a=i;aFre)return oA(e,s);if(s==e)return!0}}return!1}function WTn(e){switch(rB(),e.q.g){case 5:HEt(e,(ft(),bn)),HEt(e,jn);break;case 4:Ukt(e,(ft(),bn)),Ukt(e,jn);break;default:zxt(e,(ft(),bn)),zxt(e,jn)}}function HTn(e){switch(rB(),e.q.g){case 5:lkt(e,(ft(),_n)),lkt(e,wn);break;case 4:dSt(e,(ft(),_n)),dSt(e,wn);break;default:Kxt(e,(ft(),_n)),Kxt(e,wn)}}function UTn(e){var t,i;t=f(V(e,(od(),QIt)),17),t?(i=t.a,i==0?Xe(e,(P1(),FG),new Ete):Xe(e,(P1(),FG),new sW(i))):Xe(e,(P1(),FG),new sW(1))}function GTn(e,t){var i;switch(i=e.i,t.g){case 1:return-(e.n.b+e.o.b);case 2:return e.n.a-i.o.a;case 3:return e.n.b-i.o.b;case 4:return-(e.n.a+e.o.a)}return 0}function VTn(e,t){switch(e.g){case 0:return t==(ef(),n0)?oV:sV;case 1:return t==(ef(),n0)?oV:e9;case 2:return t==(ef(),n0)?e9:sV;default:return e9}}function PN(e,t){var i,s,a;for(Ja(e.a,t),e.e-=t.r+(e.a.c.length==0?0:e.c),a=wCe,s=new ee(e.a);s.a>16==3?e.Cb.Th(e,12,$r,t):(s=Es(f(tn((i=f(dn(e,16),29),i||(Yl(),aOe)),e.Db>>16),19)),e.Cb.Th(e,s.n,s.f,t))}function fEe(e,t){var i,s;return e.Db>>16==11?e.Cb.Th(e,10,$r,t):(s=Es(f(tn((i=f(dn(e,16),29),i||(Yl(),uOe)),e.Db>>16),19)),e.Cb.Th(e,s.n,s.f,t))}function l2t(e,t){var i,s;return e.Db>>16==10?e.Cb.Th(e,11,Pf,t):(s=Es(f(tn((i=f(dn(e,16),29),i||(Kt(),Vg)),e.Db>>16),19)),e.Cb.Th(e,s.n,s.f,t))}function a2t(e,t){var i,s;return e.Db>>16==10?e.Cb.Th(e,12,Of,t):(s=Es(f(tn((i=f(dn(e,16),29),i||(Kt(),eS)),e.Db>>16),19)),e.Cb.Th(e,s.n,s.f,t))}function _f(e){var t;return!(e.Bb&1)&&e.r&&e.r.Vh()&&(t=f(e.r,54),e.r=f(D1(e,t),142),e.r!=t&&e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,9,8,t,e.r))),e.r}function tne(e,t,i){var s;return s=se(ie(Ro,1),js,28,15,[LEe(e,(Pd(),Nl),t,i),LEe(e,Aa,t,i),LEe(e,Ml,t,i)]),e.f&&(s[0]=h.Math.max(s[0],s[2]),s[2]=s[0]),s}function zTn(e,t){var i,s,a;if(a=g4n(e,t),a.c.length!=0)for(Hi(a,new RKe),i=a.c.length,s=0;s>19,_=t.h>>19,m!=_?_-m:(a=e.h,g=t.h,a!=g?a-g:(s=e.m,b=t.m,s!=b?s-b:(i=e.l,c=t.l,i-c)))}function TH(){TH=F,C4e=(YH(),yse),x4e=new Bt(fRe,C4e),R4e=(SW(),mse),k4e=new Bt(dRe,R4e),E4e=(bH(),wse),S4e=new Bt(hRe,E4e),_4e=new Bt(pRe,(cn(),!0))}function N6(e,t,i){var s,a;s=t*i,ve(e.g,154)?(a=c3(e),a.f.d?a.f.a||(e.d.a+=s+ah):(e.d.d-=s+ah,e.d.a+=s+ah)):ve(e.g,10)&&(e.d.d-=s,e.d.a+=2*s)}function c2t(e,t,i){var s,a,c,b,g;for(a=e[i.g],g=new ee(t.d);g.a0?e.b:0),++i;t.b=s,t.e=a}function u2t(e){var t,i,s;if(s=e.b,tct(e.i,s.length)){for(i=s.length*2,e.b=Fe(ese,cM,303,i,0,1),e.c=Fe(ese,cM,303,i,0,1),e.f=i-1,e.i=0,t=e.a;t;t=t.c)WN(e,t,t);++e.g}}function ZTn(e,t,i,s){var a,c,b,g;for(a=0;ab&&(g=b/s),a>c&&(m=c/a),Nh(e,h.Math.min(g,m)),e}function t$n(){rU();var e,t;try{if(t=f(SEe((_1(),Nf),UA),2113),t)return t}catch(i){if(i=mi(i),ve(i,103))e=i,fve((ir(),e));else throw ne(i)}return new oZe}function n$n(){rU();var e,t;try{if(t=f(SEe((_1(),Nf),Rf),2040),t)return t}catch(i){if(i=mi(i),ve(i,103))e=i,fve((ir(),e));else throw ne(i)}return new IZe}function r$n(){vwt();var e,t;try{if(t=f(SEe((_1(),Nf),Aw),2122),t)return t}catch(i){if(i=mi(i),ve(i,103))e=i,fve((ir(),e));else throw ne(i)}return new xet}function i$n(e,t,i){var s,a;return a=e.e,e.e=t,e.Db&4&&!(e.Db&1)&&(s=new yo(e,1,4,a,t),i?i.nj(s):i=s),a!=t&&(t?i=_A(e,HH(e,t),i):i=_A(e,e.a,i)),i}function f2t(){hF.call(this),this.e=-1,this.a=!1,this.p=Qo,this.k=-1,this.c=-1,this.b=-1,this.g=!1,this.f=-1,this.j=-1,this.n=-1,this.i=-1,this.d=-1,this.o=Qo}function o$n(e,t){var i,s,a;if(s=e.b.d.d,e.a||(s+=e.b.d.a),a=t.b.d.d,t.a||(a+=t.b.d.a),i=Qr(s,a),i==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return i}function s$n(e,t){var i,s,a;if(s=e.b.b.d,e.a||(s+=e.b.b.a),a=t.b.b.d,t.a||(a+=t.b.b.a),i=Qr(s,a),i==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return i}function l$n(e,t){var i,s,a;if(s=e.b.g.d,e.a||(s+=e.b.g.a),a=t.b.g.d,t.a||(a+=t.b.g.a),i=Qr(s,a),i==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return i}function hEe(){hEe=F,g5t=hc(gr(gr(gr(new Ki,(Yo(),ga),(ss(),UTe)),ga,GTe),ll,VTe),ll,PTe),m5t=gr(gr(new Ki,ga,RTe),ga,OTe),w5t=hc(new Ki,ll,MTe)}function a$n(e){var t,i,s,a,c;for(t=f(V(e,(nt(),zI)),85),c=e.n,s=t.Cc().Kc();s.Ob();)i=f(s.Pb(),314),a=i.i,a.c+=c.a,a.d+=c.b,i.c?$3t(i):I3t(i);Xe(e,zI,null)}function c$n(e,t,i){var s,a;switch(a=e.b,s=a.d,t.g){case 1:return-s.d-i;case 2:return a.o.a+s.c+i;case 3:return a.o.b+s.a+i;case 4:return-s.b-i;default:return-1}}function u$n(e,t,i){var s,a;for(i.Ug("Interactive node placement",1),e.a=f(V(t,(nt(),K2)),312),a=new ee(t.b);a.a0&&(b=(c&Nr)%e.d.length,a=gke(e,b,c,t),a)?(g=a.nd(i),g):(s=e.ck(c,t,i),e.c.Fc(s),null)}function gEe(e,t){var i,s,a,c;switch(vg(e,t).Kl()){case 3:case 2:{for(i=v2(t),a=0,c=i.i;a=0;s--)if(Ht(e[s].d,t)||Ht(e[s].d,i)){e.length>=s+1&&e.splice(0,s+1);break}return e}function NN(e,t){var i;return ul(e)&&ul(t)&&(i=e/t,dM0&&(e.b+=2,e.a+=s):(e.b+=1,e.a+=h.Math.min(s,a))}function m2t(e){var t;t=f(V(f(tf(e.b,0),40),(Il(),u5e)),107),Xe(e,(ei(),y4),new tt(0,0)),cRt(new U7,e,t.b+t.c-Ae(je(V(e,pae))),t.d+t.a-Ae(je(V(e,bae))))}function y2t(e,t){var i,s;if(s=!1,Eo(t)&&(s=!0,r3(e,new Bv(or(t)))),s||ve(t,242)&&(s=!0,r3(e,(i=uye(f(t,242)),new Gj(i)))),!s)throw ne(new TY(hAe))}function C$n(e,t,i,s){var a,c,b;return a=new gb(e.e,1,10,(b=t.c,ve(b,90)?f(b,29):(Kt(),Mf)),(c=i.c,ve(c,90)?f(c,29):(Kt(),Mf)),Rg(e,t),!1),s?s.nj(a):s=a,s}function yEe(e){var t,i;switch(f(V(Go(e),(pt(),M6e)),429).g){case 0:return t=e.n,i=e.o,new tt(t.a+i.a/2,t.b+i.b/2);case 1:return new us(e.n);default:return null}}function MN(){MN=F,bV=new S$(Jh,0),v$e=new S$("LEFTUP",1),S$e=new S$("RIGHTUP",2),y$e=new S$("LEFTDOWN",3),_$e=new S$("RIGHTDOWN",4),ple=new S$("BALANCED",5)}function A$n(e,t,i){var s,a,c;if(s=Qr(e.a[t.p],e.a[i.p]),s==0){if(a=f(V(t,(nt(),Z3)),15),c=f(V(i,Z3),15),a.Hc(i))return-1;if(c.Hc(t))return 1}return s}function T$n(e){switch(e.g){case 1:return new BYe;case 2:return new WYe;case 3:return new FYe;case 0:return null;default:throw ne(new hn(toe+(e.f!=null?e.f:""+e.g)))}}function vEe(e,t,i){switch(t){case 1:!e.n&&(e.n=new qe(Fs,e,1,7)),Vn(e.n),!e.n&&(e.n=new qe(Fs,e,1,7)),Ii(e.n,f(i,16));return;case 2:NC(e,or(i));return}BSe(e,t,i)}function _Ee(e,t,i){switch(t){case 3:Vm(e,Ae(je(i)));return;case 4:zm(e,Ae(je(i)));return;case 5:Da(e,Ae(je(i)));return;case 6:La(e,Ae(je(i)));return}vEe(e,t,i)}function $H(e,t,i){var s,a,c;c=(s=new _Y,s),a=oh(c,t,null),a&&a.oj(),Ra(c,i),zn((!e.c&&(e.c=new qe(Ly,e,12,10)),e.c),c),wg(c,0),Jv(c,1),Sg(c,!0),_g(c,!0)}function SEe(e,t){var i,s,a;return i=w$(e.i,t),ve(i,241)?(a=f(i,241),a.zi()==null,a.wi()):ve(i,507)?(s=f(i,2037),a=s.b,a):null}function $$n(e,t,i,s){var a,c;return nr(t),nr(i),c=f(B$(e.d,t),17),zwt(!!c,"Row %s not in %s",t,e.e),a=f(B$(e.b,i),17),zwt(!!a,"Column %s not in %s",i,e.c),rvt(e,c.a,a.a,s)}function v2t(e,t,i,s,a,c,b){var g,m,_,k,I;if(k=a[c],_=c==b-1,g=_?s:0,I=FSt(g,k),s!=10&&se(ie(e,b-c),t[c],i[c],g,I),!_)for(++c,m=0;m1||g==-1?(c=f(m,15),a.Wb(hAn(e,c))):a.Wb(Bne(e,f(m,58)))))}function L$n(e,t,i,s){$at();var a=Xoe;function c(){for(var b=0;b0)return!1;return!0}function B$n(e){var t,i,s,a,c;for(s=new aw(new U0(e.b).a);s.b;)i=Xm(s),t=f(i.ld(),10),c=f(f(i.md(),42).a,10),a=f(f(i.md(),42).b,8),Mr(xd(t.n),Mr(Ho(c.n),a))}function W$n(e){switch(f(V(e.b,(pt(),A6e)),387).g){case 1:Mi(nl(El(new Wt(null,new Vt(e.d,16)),new wXe),new mXe),new yXe);break;case 2:D7n(e);break;case 0:p5n(e)}}function H$n(e,t,i){var s,a,c;for(s=i,!s&&(s=new Ok),s.Ug("Layout",e.a.c.length),c=new ee(e.a);c.aYie)return i;a>-1e-6&&++i}return i}function kEe(e,t){var i;t!=e.b?(i=null,e.b&&(i=qB(e.b,e,-4,i)),t&&(i=S3(t,e,-4,i)),i=Jvt(e,t,i),i&&i.oj()):e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,3,t,t))}function E2t(e,t){var i;t!=e.f?(i=null,e.f&&(i=qB(e.f,e,-1,i)),t&&(i=S3(t,e,-1,i)),i=Xvt(e,t,i),i&&i.oj()):e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,0,t,t))}function z$n(e,t,i,s){var a,c,b,g;return eu(e.e)&&(a=t.Lk(),g=t.md(),c=i.md(),b=T1(e,1,a,g,c,a.Jk()?mA(e,a,c,ve(a,102)&&(f(a,19).Bb&ys)!=0):-1,!0),s?s.nj(b):s=b),s}function k2t(e){var t,i,s;if(e==null)return null;if(i=f(e,15),i.dc())return"";for(s=new ig,t=i.Kc();t.Ob();)Ms(s,(Jr(),or(t.Pb()))),s.a+=" ";return kQ(s,s.a.length-1)}function R2t(e){var t,i,s;if(e==null)return null;if(i=f(e,15),i.dc())return"";for(s=new ig,t=i.Kc();t.Ob();)Ms(s,(Jr(),or(t.Pb()))),s.a+=" ";return kQ(s,s.a.length-1)}function K$n(e,t,i){var s,a;return s=e.c[t.c.p][t.p],a=e.c[i.c.p][i.p],s.a!=null&&a.a!=null?dZ(s.a,a.a):s.a!=null?-1:a.a!=null?1:0}function q$n(e,t,i){return i.Ug("Tree layout",1),T7(e.b),Cd(e.b,(k3(),JV),JV),Cd(e.b,c5,c5),Cd(e.b,u5,u5),Cd(e.b,f5,f5),e.a=tM(e.b,t),H$n(e,t,i.eh(1)),i.Vg(),t}function X$n(e,t){var i,s,a,c,b,g;if(t)for(c=t.a.length,i=new J0(c),g=(i.b-i.a)*i.c<0?(S1(),w0):new R1(i);g.Ob();)b=f(g.Pb(),17),a=vC(t,b.a),s=new zot(e),r_n(s.a,a)}function J$n(e,t){var i,s,a,c,b,g;if(t)for(c=t.a.length,i=new J0(c),g=(i.b-i.a)*i.c<0?(S1(),w0):new R1(i);g.Ob();)b=f(g.Pb(),17),a=vC(t,b.a),s=new Lot(e),n_n(s.a,a)}function Y$n(e){var t;if(e!=null&&e.length>0&&Jo(e,e.length-1)==33)try{return t=Okt(Vu(e,0,e.length-1)),t.e==null}catch(i){if(i=mi(i),!ve(i,33))throw ne(i)}return!1}function Q$n(e,t,i){var s,a,c;switch(s=Go(t),a=rH(s),c=new ia,Sl(c,t),i.g){case 1:so(c,EN(y3(a)));break;case 2:so(c,y3(a))}return Xe(c,(pt(),L_),je(V(e,L_))),c}function REe(e){var t,i;return t=f(On(new kn(xn(go(e.a).a.Kc(),new O))),18),i=f(On(new kn(xn(Wi(e.a).a.Kc(),new O))),18),wt(gt(V(t,(nt(),hh))))||wt(gt(V(i,hh)))}function i_(){i_=F,t9=new XO("ONE_SIDE",0),cV=new XO("TWO_SIDES_CORNER",1),uV=new XO("TWO_SIDES_OPPOSING",2),aV=new XO("THREE_SIDES",3),lV=new XO("FOUR_SIDES",4)}function x2t(e,t){var i,s,a,c;for(c=new st,a=0,s=t.Kc();s.Ob();){for(i=ot(f(s.Pb(),17).a+a);i.a=e.f)break;sn(c.c,i)}return c}function Z$n(e,t){var i,s,a,c,b;for(c=new ee(t.a);c.a0&&JSt(this,this.c-1,(ft(),_n)),this.c0&&e[0].length>0&&(this.c=wt(gt(V(Go(e[0][0]),(nt(),L$e))))),this.a=Fe(v7t,rt,2117,e.length,0,2),this.b=Fe(_7t,rt,2118,e.length,0,2),this.d=new Gvt}function i6n(e){return e.c.length==0?!1:(Xt(0,e.c.length),f(e.c[0],18)).c.i.k==(gn(),vo)?!0:t2(nl(new Wt(null,new Vt(e,16)),new QXe),new ZXe)}function T2t(e,t){var i,s,a,c,b,g,m;for(g=c_(t),c=t.f,m=t.g,b=h.Math.sqrt(c*c+m*m),a=0,s=new ee(g);s.a=0?(i=NN(e,pU),s=RN(e,pU)):(t=x1(e,1),i=NN(t,5e8),s=RN(t,5e8),s=is(Zf(s,1),fo(e,1))),Ad(Zf(s,32),fo(i,Ts))}function P2t(e,t,i){var s,a;switch(s=(In(t.b!=0),f(Xu(t,t.a.a),8)),i.g){case 0:s.b=0;break;case 2:s.b=e.f;break;case 3:s.a=0;break;default:s.a=e.g}return a=Hn(t,0),A7(a,s),t}function O2t(e,t,i,s){var a,c,b,g,m;switch(m=e.b,c=t.d,b=c.j,g=H2e(b,m.d[b.g],i),a=Mr(Ho(c.n),c.a),c.j.g){case 1:case 3:g.a+=a.a;break;case 2:case 4:g.b+=a.b}Ai(s,g,s.c.b,s.c)}function g6n(e,t,i){var s,a,c,b;for(b=il(e.e,t,0),c=new I0e,c.b=i,s=new No(e.e,b);s.b1;t>>=1)t&1&&(s=e2(s,i)),i.d==1?i=e2(i,i):i=new X_t(bRt(i.a,i.d,Fe(Xn,wr,28,i.d<<1,15,1)));return s=e2(s,i),s}function NEe(){NEe=F;var e,t,i,s;for(h4e=Fe(Ro,js,28,25,15,1),p4e=Fe(Ro,js,28,33,15,1),s=152587890625e-16,t=32;t>=0;t--)p4e[t]=s,s*=.5;for(i=1,e=24;e>=0;e--)h4e[e]=i,i*=.5}function S6n(e){var t,i;if(wt(gt(Qe(e,(pt(),D_))))){for(i=new kn(xn(Rb(e).a.Kc(),new O));Un(i);)if(t=f(On(i),74),ry(t)&&wt(gt(Qe(t,Nw))))return!0}return!1}function N2t(e,t){var i,s,a;Zi(e.f,t)&&(t.b=e,s=t.c,il(e.j,s,0)!=-1||lt(e.j,s),a=t.d,il(e.j,a,0)!=-1||lt(e.j,a),i=t.a.b,i.c.length!=0&&(!e.i&&(e.i=new tSt(e)),CRn(e.i,i)))}function E6n(e){var t,i,s,a,c;return i=e.c.d,s=i.j,a=e.d.d,c=a.j,s==c?i.p=0&&Ht(e.substr(t,3),"GMT")||t>=0&&Ht(e.substr(t,3),"UTC"))&&(i[0]=t+3),h3e(e,i,s)}function R6n(e,t){var i,s,a,c,b;for(c=e.g.a,b=e.g.b,s=new ee(e.d);s.ai;c--)e[c]|=t[c-i-1]>>>b,e[c-1]=t[c-i-1]<0&&oa(e.g,t,e.g,t+s,g),b=i.Kc(),e.i+=s,a=0;a>4&15,c=e[s]&15,b[a++]=dOe[i],b[a++]=dOe[c];return Bh(b,0,b.length)}function Qa(e){var t,i;return e>=ys?(t=hM+(e-ys>>10&1023)&Ji,i=56320+(e-ys&1023)&Ji,String.fromCharCode(t)+(""+String.fromCharCode(i))):String.fromCharCode(e&Ji)}function D6n(e,t){Mv();var i,s,a,c;return a=f(f(Hr(e.r,t),21),87),a.gc()>=2?(s=f(a.Kc().Pb(),117),i=e.u.Hc(($c(),O5)),c=e.u.Hc(fR),!s.a&&!i&&(a.gc()==2||c)):!1}function L2t(e,t,i,s,a){var c,b,g;for(c=S3t(e,t,i,s,a),g=!1;!c;)BH(e,a,!0),g=!0,c=S3t(e,t,i,s,a);g&&BH(e,a,!1),b=qee(a),b.c.length!=0&&(e.d&&e.d.Gg(b),L2t(e,a,i,s,b))}function NH(){NH=F,Ece=new x$(Jh,0),DPe=new x$("DIRECTED",1),jPe=new x$("UNDIRECTED",2),NPe=new x$("ASSOCIATION",3),LPe=new x$("GENERALIZATION",4),MPe=new x$("DEPENDENCY",5)}function L6n(e,t){var i;if(!Xd(e))throw ne(new Us(Z4t));switch(i=Xd(e),t.g){case 1:return-(e.j+e.f);case 2:return e.i-i.g;case 3:return e.j-i.f;case 4:return-(e.i+e.g)}return 0}function j6n(e,t,i){var s,a,c;return s=t.Lk(),c=t.md(),a=s.Jk()?T1(e,4,s,c,null,mA(e,s,c,ve(s,102)&&(f(s,19).Bb&ys)!=0),!0):T1(e,s.tk()?2:1,s,c,s.ik(),-1,!0),i?i.nj(a):i=a,i}function aA(e,t){var i,s;for(mn(t),s=e.b.c.length,lt(e.b,t);s>0;){if(i=s,s=(s-1)/2|0,e.a.Ne(yt(e.b,s),t)<=0)return Ku(e.b,i,t),!0;Ku(e.b,i,yt(e.b,s))}return Ku(e.b,s,t),!0}function LEe(e,t,i,s){var a,c;if(a=0,i)a=QW(e.a[i.g][t.g],s);else for(c=0;c<$G;c++)a=h.Math.max(a,QW(e.a[c][t.g],s));return t==(Pd(),Aa)&&e.b&&(a=h.Math.max(a,e.b.a)),a}function F6n(e,t){var i,s,a,c,b,g;return a=e.i,c=t.i,!a||!c||a.i!=c.i||a.i==(ft(),_n)||a.i==(ft(),wn)?!1:(b=a.g.a,i=b+a.j.a,g=c.g.a,s=g+c.j.a,b<=s&&i>=g)}function j2t(e){switch(e.g){case 0:return new tQe;case 1:return new nQe;default:throw ne(new hn("No implementation is available for the width approximator "+(e.f!=null?e.f:""+e.g)))}}function jEe(e,t,i,s){var a;if(a=!1,Eo(s)&&(a=!0,cC(t,i,or(s))),a||Iv(s)&&(a=!0,jEe(e,t,i,s)),a||ve(s,242)&&(a=!0,ew(t,i,f(s,242))),!a)throw ne(new TY(hAe))}function B6n(e,t){var i,s,a;if(i=t.qi(e.a),i&&(a=Od((!i.b&&(i.b=new nu((Kt(),_s),Ll,i)),i.b),kf),a!=null)){for(s=1;s<(gc(),DOe).length;++s)if(Ht(DOe[s],a))return s}return 0}function W6n(e,t){var i,s,a;if(i=t.qi(e.a),i&&(a=Od((!i.b&&(i.b=new nu((Kt(),_s),Ll,i)),i.b),kf),a!=null)){for(s=1;s<(gc(),LOe).length;++s)if(Ht(LOe[s],a))return s}return 0}function F2t(e,t){var i,s,a,c;if(mn(t),c=e.a.gc(),c0?1:0;c.a[a]!=i;)c=c.a[a],a=e.a.Ne(i.d,c.d)>0?1:0;c.a[a]=s,s.b=i.b,s.a[0]=i.a[0],s.a[1]=i.a[1],i.a[0]=null,i.a[1]=null}function G6n(e){var t,i,s,a;for(t=new st,i=Fe(Xc,Tp,28,e.a.c.length,16,1),sve(i,i.length),a=new ee(e.a);a.a0&&fRt((Xt(0,i.c.length),f(i.c[0],30)),e),i.c.length>1&&fRt(f(yt(i,i.c.length-1),30),e),t.Vg()}function z6n(e){$c();var t,i;return t=ii(Mb,se(ie(kz,1),Je,279,0,[f0])),!(lN(JB(t,e))>1||(i=ii(O5,se(ie(kz,1),Je,279,0,[P5,fR])),lN(JB(i,e))>1))}function BEe(e,t){var i;i=ua((_1(),Nf),e),ve(i,507)?Gs(Nf,e,new Iut(this,t)):Gs(Nf,e,this),dne(this,t),t==(qx(),kOe)?(this.wb=f(this,2038),f(t,2040)):this.wb=(C1(),un)}function K6n(e){var t,i,s;if(e==null)return null;for(t=null,i=0;i=Tg?"error":s>=900?"warn":s>=800?"info":"log"),Qpt(i,e.a),e.b&&Hke(t,i,e.b,"Exception: ",!0))}function V(e,t){var i,s;return s=(!e.q&&(e.q=new Fn),En(e.q,t)),s??(i=t.Sg(),ve(i,4)&&(i==null?(!e.q&&(e.q=new Fn),f3(e.q,t)):(!e.q&&(e.q=new Fn),xr(e.q,t,i))),i)}function Yo(){Yo=F,cd=new qO("P1_CYCLE_BREAKING",0),Pp=new qO("P2_LAYERING",1),sa=new qO("P3_NODE_ORDERING",2),ga=new qO("P4_NODE_PLACEMENT",3),ll=new qO("P5_EDGE_ROUTING",4)}function q6n(e,t){a6();var i;if(e.c==t.c){if(e.b==t.b||tRn(e.b,t.b)){if(i=xgn(e.b)?1:-1,e.a&&!t.a)return i;if(!e.a&&t.a)return-i}return Xl(e.b.g,t.b.g)}else return Qr(e.c,t.c)}function G2t(e,t){var i,s,a;if(HEe(e,t))return!0;for(s=new ee(t);s.a=a||t<0)throw ne(new Hs(Toe+t+xw+a));if(i>=a||i<0)throw ne(new Hs($oe+i+xw+a));return t!=i?s=(c=e.Cj(i),e.qj(t,c),c):s=e.xj(i),s}function K2t(e){var t,i,s;if(s=e,e)for(t=0,i=e.Eh();i;i=i.Eh()){if(++t>Fre)return K2t(i);if(s=i,i==e)throw ne(new Us("There is a cycle in the containment hierarchy of "+e))}return s}function B1(e){var t,i,s;for(s=new cw(ds,"[","]"),i=e.Kc();i.Ob();)t=i.Pb(),bb(s,Ne(t)===Ne(e)?"(this Collection)":t==null?Za:dl(t));return s.a?s.e.length==0?s.a.a:s.a.a+(""+s.e):s.c}function HEe(e,t){var i,s;if(s=!1,t.gc()<2)return!1;for(i=0;i1&&(e.j.b+=e.e)):(e.j.a+=i.a,e.j.b=h.Math.max(e.j.b,i.b),e.d.c.length>1&&(e.j.a+=e.e))}function W1(){W1=F,i8t=se(ie(vs,1),Ql,64,0,[(ft(),bn),_n,jn]),r8t=se(ie(vs,1),Ql,64,0,[_n,jn,wn]),o8t=se(ie(vs,1),Ql,64,0,[jn,wn,bn]),s8t=se(ie(vs,1),Ql,64,0,[wn,bn,_n])}function J6n(e,t,i,s){var a,c,b,g,m,_,k;if(b=e.c.d,g=e.d.d,b.j!=g.j)for(k=e.b,a=b.j,m=null;a!=g.j;)m=t==0?nH(a):a2e(a),c=H2e(a,k.d[a.g],i),_=H2e(m,k.d[m.g],i),hr(s,Mr(c,_)),a=m}function Y6n(e,t,i,s){var a,c,b,g,m;return b=YSt(e.a,t,i),g=f(b.a,17).a,c=f(b.b,17).a,s&&(m=f(V(t,(nt(),Ic)),10),a=f(V(i,Ic),10),m&&a&&(j1t(e.b,m,a),g+=e.b.i,c+=e.b.e)),g>c}function X2t(e){var t,i,s,a,c,b,g,m,_;for(this.a=mSt(e),this.b=new st,i=e,s=0,a=i.length;sWQ(e.d).c?(e.i+=e.g.c,Cte(e.d)):WQ(e.d).c>WQ(e.g).c?(e.e+=e.d.c,Cte(e.g)):(e.i+=spt(e.g),e.e+=spt(e.d),Cte(e.g),Cte(e.d))}function tIn(e,t,i){var s,a,c,b;for(c=t.q,b=t.r,new tw((Td(),i0),t,c,1),new tw(i0,c,b,1),a=new ee(i);a.ag&&(m=g/s),a>c&&(_=c/a),b=h.Math.min(m,_),e.a+=b*(t.a-e.a),e.b+=b*(t.b-e.b)}function oIn(e,t,i,s,a){var c,b;for(b=!1,c=f(yt(i.b,0),27);NMn(e,t,c,s,a)&&(b=!0,M$n(i,c),i.b.c.length!=0);)c=f(yt(i.b,0),27);return i.b.c.length==0&&PN(i.j,i),b&&xH(t.q),b}function sIn(e,t){m2();var i,s,a,c;if(t.b<2)return!1;for(c=Hn(t,0),i=f(Bn(c),8),s=i;c.b!=c.d.c;){if(a=f(Bn(c),8),Ane(e,s,a))return!0;s=a}return!!Ane(e,s,i)}function GEe(e,t,i,s){var a,c;return i==0?(!e.o&&(e.o=new pc((Yl(),Fp),Hg,e,0)),lB(e.o,t,s)):(c=f(tn((a=f(dn(e,16),29),a||e.ii()),i),69),c.wk().Ak(e,ja(e),i-Pn(e.ii()),t,s))}function dne(e,t){var i;t!=e.sb?(i=null,e.sb&&(i=f(e.sb,54).Th(e,1,D5,i)),t&&(i=f(t,54).Rh(e,1,D5,i)),i=n2e(e,t,i),i&&i.oj()):e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,4,t,t))}function lIn(e,t){var i,s,a,c;if(t)a=yb(t,"x"),i=new Uot(e),AC(i.a,(mn(a),a)),c=yb(t,"y"),s=new Got(e),$C(s.a,(mn(c),c));else throw ne(new $h("All edge sections need an end point."))}function aIn(e,t){var i,s,a,c;if(t)a=yb(t,"x"),i=new Bot(e),TC(i.a,(mn(a),a)),c=yb(t,"y"),s=new Wot(e),IC(s.a,(mn(c),c));else throw ne(new $h("All edge sections need a start point."))}function cIn(e,t){var i,s,a,c,b,g,m;for(s=Rvt(e),c=0,g=s.length;c>22-t,a=e.h<>22-t):t<44?(i=0,s=e.l<>44-t):(i=0,s=0,a=e.l<e)throw ne(new hn("k must be smaller than n"));return t==0||t==e?1:e==0?0:wEe(e)/(wEe(t)*wEe(e-t))}function VEe(e,t){var i,s,a,c;for(i=new lme(e);i.g==null&&!i.c?Fve(i):i.g==null||i.i!=0&&f(i.g[i.i-1],51).Ob();)if(c=f(WH(i),58),ve(c,167))for(s=f(c,167),a=0;a>4],t[i*2+1]=Vz[c&15];return Bh(t,0,t.length)}function RIn(e){jB();var t,i,s;switch(s=e.c.length,s){case 0:return n6t;case 1:return t=f(DEt(new ee(e)),44),myn(t.ld(),t.md());default:return i=f(ih(e,Fe(Tw,dU,44,e.c.length,0,1)),173),new G0e(i)}}function xIn(e){var t,i,s,a,c,b;for(t=new qS,i=new qS,$1(t,e),$1(i,e);i.b!=i.c;)for(a=f(t3(i),36),b=new ee(a.a);b.a0&&XN(e,i,t),a):p8n(e,t,i)}function H1(){H1=F,lMt=(Er(),lR),aMt=Uw,rMt=Hw,iMt=fE,oMt=l0,nMt=uE,$5e=N9,sMt=z_,$ae=(o3e(),VNt),Iae=zNt,P5e=JNt,Pae=ZNt,O5e=YNt,N5e=QNt,I5e=KNt,iz=qNt,oz=XNt,S9=eMt,M5e=tMt,T5e=GNt}function rEt(e,t){var i,s,a,c,b;if(e.e<=t||JSn(e,e.g,t))return e.g;for(c=e.r,s=e.g,b=e.r,a=(c-s)/2+s;s+11&&(e.e.b+=e.a)):(e.e.a+=i.a,e.e.b=h.Math.max(e.e.b,i.b),e.d.c.length>1&&(e.e.a+=e.a))}function IIn(e){var t,i,s,a;switch(a=e.i,t=a.b,s=a.j,i=a.g,a.a.g){case 0:i.a=(e.g.b.o.a-s.a)/2;break;case 1:i.a=t.d.n.a+t.d.a.a;break;case 2:i.a=t.d.n.a+t.d.a.a-s.a;break;case 3:i.b=t.d.n.b+t.d.a.b}}function PIn(e,t,i){var s,a,c;for(a=new kn(xn(Sb(i).a.Kc(),new O));Un(a);)s=f(On(a),18),!ms(s)&&!(!ms(s)&&s.c.i.c==s.d.i.c)&&(c=Kkt(e,s,i,new Yst),c.c.length>1&&sn(t.c,c))}function oEt(e,t,i,s,a){if(ss&&(e.a=s),e.ba&&(e.b=a),e}function OIn(e){if(ve(e,143))return uOn(f(e,143));if(ve(e,233))return eAn(f(e,233));if(ve(e,23))return fIn(f(e,23));throw ne(new hn(pAe+B1(new kc(se(ie(ho,1),on,1,5,[e])))))}function NIn(e,t,i,s,a){var c,b,g;for(c=!0,b=0;b>>a|i[b+s+1]<>>a,++b}return c}function XEe(e,t,i,s){var a,c,b;if(t.k==(gn(),vo)){for(c=new kn(xn(go(t).a.Kc(),new O));Un(c);)if(a=f(On(c),18),b=a.c.i.k,b==vo&&e.c.a[a.c.i.c.p]==s&&e.c.a[t.c.p]==i)return!0}return!1}function MIn(e,t){var i,s,a,c;return t&=63,i=e.h&Ab,t<22?(c=i>>>t,a=e.m>>t|i<<22-t,s=e.l>>t|e.m<<22-t):t<44?(c=0,a=i>>>t-22,s=e.m>>t-22|e.h<<44-t):(c=0,a=0,s=i>>>t-44),Oa(s&Vc,a&Vc,c&Ab)}function sEt(e,t,i,s){var a;this.b=s,this.e=e==(Km(),s5),a=t[i],this.d=q0(Xc,[rt,Tp],[183,28],16,[a.length,a.length],2),this.a=q0(Xn,[rt,wr],[53,28],15,[a.length,a.length],2),this.c=new $Ee(t,i)}function DIn(e){var t,i,s;for(e.k=new Hve((ft(),se(ie(vs,1),Ql,64,0,[Cl,bn,_n,jn,wn])).length,e.j.c.length),s=new ee(e.j);s.a=i)return uA(e,t,s.p),!0;return!1}function p2(e,t,i,s){var a,c,b,g,m,_;for(b=i.length,c=0,a=-1,_=Zwt((pn(t,e.length+1),e.substr(t)),(zQ(),f4e)),g=0;gc&&cvn(_,Zwt(i[g],f4e))&&(a=g,c=m);return a>=0&&(s[0]=t+c),a}function aEt(e){var t;return e.Db&64?hne(e):(t=new gu(rAe),!e.a||br(br((t.a+=' "',t),e.a),'"'),br(mm(br(mm(br(mm(br(mm((t.a+=" (",t),e.i),","),e.j)," | "),e.g),","),e.f),")"),t.a)}function cEt(e,t,i){var s,a,c,b,g;for(g=Fa(e.e.Dh(),t),a=f(e.g,124),s=0,b=0;bi?oke(e,i,"start index"):t<0||t>i?oke(t,i,"end index"):z6("end index (%s) must not be less than start index (%s)",se(ie(ho,1),on,1,5,[ot(t),ot(e)]))}function fEt(e,t){var i,s,a,c;for(s=0,a=e.length;s0&&dEt(e,c,i));t.p=0}function Rt(e){var t;this.c=new li,this.f=e.e,this.e=e.d,this.i=e.g,this.d=e.c,this.b=e.b,this.k=e.j,this.a=e.a,e.i?this.j=e.i:this.j=(t=f(kd(Mp),9),new Uu(t,f(Yf(t,t.length),9),0)),this.g=e.f}function HIn(e){var t,i,s,a;for(t=Q0(br(new gu("Predicates."),"and"),40),i=!0,a=new YT(e);a.b0?g[b-1]:Fe(Op,$g,10,0,0,1),a=g[b],_=b=0?e.ki(a):cke(e,s);else throw ne(new hn(X1+s.xe()+_I));else throw ne(new hn(uTt+t+fTt));else Yu(e,i,s)}function JEe(e){var t,i;if(i=null,t=!1,ve(e,211)&&(t=!0,i=f(e,211).a),t||ve(e,263)&&(t=!0,i=""+f(e,263).a),t||ve(e,493)&&(t=!0,i=""+f(e,493).a),!t)throw ne(new TY(hAe));return i}function YEe(e,t,i){var s,a,c,b,g,m;for(m=Fa(e.e.Dh(),t),s=0,g=e.i,a=f(e.g,124),b=0;b=e.d.b.c.length&&(t=new ca(e.d),t.p=s.p-1,lt(e.d.b,t),i=new ca(e.d),i.p=s.p,lt(e.d.b,i)),Oo(s,f(yt(e.d.b,s.p),30))}function eke(e,t,i){var s,a,c;if(!e.b[t.g]){for(e.b[t.g]=!0,s=i,!s&&(s=new U7),hr(s.b,t),c=e.a[t.g].Kc();c.Ob();)a=f(c.Pb(),65),a.b!=t&&eke(e,a.b,s),a.c!=t&&eke(e,a.c,s),hr(s.a,a);return s}return null}function zIn(e){switch(e.g){case 0:case 1:case 2:return ft(),bn;case 3:case 4:case 5:return ft(),jn;case 6:case 7:case 8:return ft(),wn;case 9:case 10:case 11:return ft(),_n;default:return ft(),Cl}}function KIn(e,t){var i;return e.c.length==0?!1:(i=$_t((Xt(0,e.c.length),f(e.c[0],18)).c.i),mu(),i==(n_(),Z2)||i==Q2?!0:t2(nl(new Wt(null,new Vt(e,16)),new eJe),new Jit(t)))}function wne(e,t){if(ve(t,207))return Wgn(e,f(t,27));if(ve(t,193))return Hgn(e,f(t,123));if(ve(t,452))return Bgn(e,f(t,166));throw ne(new hn(pAe+B1(new kc(se(ie(ho,1),on,1,5,[t])))))}function mEt(e,t,i){var s,a;if(this.f=e,s=f(En(e.b,t),260),a=s?s.a:0,m_e(i,a),i>=(a/2|0))for(this.e=s?s.c:null,this.d=a;i++0;)H_e(this);this.b=t,this.a=null}function qIn(e,t){var i,s;t.a?AOn(e,t):(i=f(BY(e.b,t.b),60),i&&i==e.a[t.b.f]&&i.a&&i.a!=t.b.a&&i.c.Fc(t.b),s=f(FY(e.b,t.b),60),s&&e.a[s.f]==t.b&&s.a&&s.a!=t.b.a&&t.b.c.Fc(s),OQ(e.b,t.b))}function yEt(e,t){var i,s;if(i=f(Ds(e.b,t),127),f(f(Hr(e.r,t),21),87).dc()){i.n.b=0,i.n.c=0;return}i.n.b=e.C.b,i.n.c=e.C.c,e.A.Hc((su(),Vw))&&V3t(e,t),s=S4n(e,t),$ne(e,t)==(a2(),c0)&&(s+=2*e.w),i.a.a=s}function vEt(e,t){var i,s;if(i=f(Ds(e.b,t),127),f(f(Hr(e.r,t),21),87).dc()){i.n.d=0,i.n.a=0;return}i.n.d=e.C.d,i.n.a=e.C.a,e.A.Hc((su(),Vw))&&z3t(e,t),s=_4n(e,t),$ne(e,t)==(a2(),c0)&&(s+=2*e.w),i.a.b=s}function XIn(e,t){var i,s,a,c;for(c=new st,s=new ee(t);s.as&&(pn(t-1,e.length),e.charCodeAt(t-1)<=32);)--t;return s>0||ti.a&&(s.Hc((bw(),S5))?a=(t.a-i.a)/2:s.Hc(E5)&&(a=t.a-i.a)),t.b>i.b&&(s.Hc((bw(),R5))?c=(t.b-i.b)/2:s.Hc(k5)&&(c=t.b-i.b)),FEe(e,a,c)}function CEt(e,t,i,s,a,c,b,g,m,_,k,I,D){ve(e.Cb,90)&&l_(Bc(f(e.Cb,90)),4),Ra(e,i),e.f=b,YC(e,g),ZC(e,m),JC(e,_),QC(e,k),Sg(e,I),eA(e,D),_g(e,!0),wg(e,a),e.Zk(c),dw(e,t),s!=null&&(e.i=null,LW(e,s))}function oke(e,t,i){if(e<0)return z6(kCt,se(ie(ho,1),on,1,5,[i,ot(e)]));if(t<0)throw ne(new hn(RCt+t));return z6("%s (%s) must not be greater than size (%s)",se(ie(ho,1),on,1,5,[i,ot(e),ot(t)]))}function ske(e,t,i,s,a,c){var b,g,m,_;if(b=s-i,b<7){UCn(t,i,s,c);return}if(m=i+a,g=s+a,_=m+(g-m>>1),ske(t,e,m,_,-a,c),ske(t,e,_,g,-a,c),c.Ne(e[_-1],e[_])<=0){for(;i=0?e.bi(c,i):Dke(e,a,i);else throw ne(new hn(X1+a.xe()+_I));else throw ne(new hn(uTt+t+fTt));else Qu(e,s,a,i)}function AEt(e){var t,i;if(e.f){for(;e.n>0;){if(t=f(e.k.Xb(e.n-1),76),i=t.Lk(),ve(i,102)&&f(i,19).Bb&Vl&&(!e.e||i.pk()!=$4||i.Lj()!=0)&&t.md()!=null)return!0;--e.n}return!1}else return e.n>0}function TEt(e){var t,i,s,a;if(i=f(e,54)._h(),i)try{if(s=null,t=dA((_1(),Nf),pRt(tAn(i))),t&&(a=t.ai(),a&&(s=a.Fl(nbn(i.e)))),s&&s!=e)return TEt(s)}catch(c){if(c=mi(c),!ve(c,63))throw ne(c)}return e}function f5n(e,t,i){var s,a,c;i.Ug("Remove overlaps",1),i.dh(t,gCe),s=f(Qe(t,(JS(),nE)),27),e.f=s,e.a=Lte(f(Qe(t,(H1(),S9)),300)),a=je(Qe(t,(Er(),Uw))),Q1e(e,(mn(a),a)),c=c_(s),Dxt(e,t,c,i),i.dh(t,XU)}function d5n(e){var t,i,s;if(wt(gt(Qe(e,(Er(),P9))))){for(s=new st,i=new kn(xn(Rb(e).a.Kc(),new O));Un(i);)t=f(On(i),74),ry(t)&&wt(gt(Qe(t,fce)))&&sn(s.c,t);return s}else return qt(),qt(),ps}function $Et(e){if(!e)return $lt(),f6t;var t=e.valueOf?e.valueOf():e;if(t!==e){var i=ose[typeof t];return i?i(t):XSe(typeof t)}else return e instanceof Array||e instanceof h.Array?new z1e(e):new IO(e)}function IEt(e,t,i){var s,a,c;switch(c=e.o,s=f(Ds(e.p,i),252),a=s.i,a.b=F6(s),a.a=j6(s),a.b=h.Math.max(a.b,c.a),a.b>c.a&&!t&&(a.b=c.a),a.c=-(a.b-c.a)/2,i.g){case 1:a.d=-a.a;break;case 3:a.d=c.b}Une(s),Gne(s)}function PEt(e,t,i){var s,a,c;switch(c=e.o,s=f(Ds(e.p,i),252),a=s.i,a.b=F6(s),a.a=j6(s),a.a=h.Math.max(a.a,c.b),a.a>c.b&&!t&&(a.a=c.b),a.d=-(a.a-c.b)/2,i.g){case 4:a.c=-a.b;break;case 2:a.c=c.a}Une(s),Gne(s)}function h5n(e,t){var i,s,a,c,b;if(!t.dc()){if(a=f(t.Xb(0),131),t.gc()==1){c3t(e,a,a,1,0,t);return}for(i=1;i0)try{a=Ru(t,Qo,Nr)}catch(c){throw c=mi(c),ve(c,130)?(s=c,ne(new mW(s))):ne(c)}return i=(!e.a&&(e.a=new hY(e)),e.a),a=0?f(Se(i,a),58):null}function w5n(e,t){if(e<0)return z6(kCt,se(ie(ho,1),on,1,5,["index",ot(e)]));if(t<0)throw ne(new hn(RCt+t));return z6("%s (%s) must be less than size (%s)",se(ie(ho,1),on,1,5,["index",ot(e),ot(t)]))}function m5n(e){var t,i,s,a,c;if(e==null)return Za;for(c=new cw(ds,"[","]"),i=e,s=0,a=i.length;s=0?e.Lh(i,!0,!0):iy(e,a,!0),160)),f(s,220).Zl(t);else throw ne(new hn(X1+t.xe()+_I))}function uke(e){var t,i;return e>-0x800000000000&&e<0x800000000000?e==0?0:(t=e<0,t&&(e=-e),i=oo(h.Math.floor(h.Math.log(e)/.6931471805599453)),(!t||e!=h.Math.pow(2,i))&&++i,i):Xyt(Gl(e))}function O5n(e){var t,i,s,a,c,b,g;for(c=new Oh,i=new ee(e);i.a2&&g.e.b+g.j.b<=2&&(a=g,s=b),c.a.zc(a,c),a.q=s);return c}function N5n(e,t,i){i.Ug("Eades radial",1),i.dh(t,XU),e.d=f(Qe(t,(JS(),nE)),27),e.c=Ae(je(Qe(t,(H1(),oz)))),e.e=Lte(f(Qe(t,S9),300)),e.a=cAn(f(Qe(t,M5e),434)),e.b=T$n(f(Qe(t,I5e),354)),f$n(e),i.dh(t,XU)}function M5n(e,t){if(t.Ug("Target Width Setter",1),eh(e,(sh(),Gae)))zr(e,(Ep(),G_),je(Qe(e,Gae)));else throw ne(new rg("A target width has to be set if the TargetWidthWidthApproximator should be used."));t.Vg()}function LEt(e,t){var i,s,a;return s=new kb(e),ol(s,t),Xe(s,(nt(),SV),t),Xe(s,(pt(),Oi),(Co(),ya)),Xe(s,np,(_p(),wz)),W0(s,(gn(),Ui)),i=new ia,Sl(i,s),so(i,(ft(),wn)),a=new ia,Sl(a,s),so(a,_n),s}function jEt(e){switch(e.g){case 0:return new xY((Km(),g9));case 1:return new tnt;case 2:return new nnt;default:throw ne(new hn("No implementation is available for the crossing minimizer "+(e.f!=null?e.f:""+e.g)))}}function FEt(e,t){var i,s,a,c,b;for(e.c[t.p]=!0,lt(e.a,t),b=new ee(t.j);b.a=c)b.$b();else for(a=b.Kc(),s=0;s0?X0e():b<0&&UEt(e,t,-b),!0):!1}function j6(e){var t,i,s,a,c,b,g;if(g=0,e.b==0){for(b=RSt(e,!0),t=0,s=b,a=0,c=s.length;a0&&(g+=i,++t);t>1&&(g+=e.c*(t-1))}else g=Hlt(Bee(Wv(Br(ive(e.a),new So),new ql)));return g>0?g+e.n.d+e.n.a:0}function F6(e){var t,i,s,a,c,b,g;if(g=0,e.b==0)g=Hlt(Bee(Wv(Br(ive(e.a),new Zc),new bu)));else{for(b=xSt(e,!0),t=0,s=b,a=0,c=s.length;a0&&(g+=i,++t);t>1&&(g+=e.c*(t-1))}return g>0?g+e.n.b+e.n.c:0}function H5n(e){var t,i;if(e.c.length!=2)throw ne(new Us("Order only allowed for two paths."));t=(Xt(0,e.c.length),f(e.c[0],18)),i=(Xt(1,e.c.length),f(e.c[1],18)),t.d.i!=i.c.i&&(e.c.length=0,sn(e.c,i),sn(e.c,t))}function GEt(e,t,i){var s;for(GS(i,t.g,t.f),Wu(i,t.i,t.j),s=0;s<(!t.a&&(t.a=new qe($r,t,10,11)),t.a).i;s++)GEt(e,f(Se((!t.a&&(t.a=new qe($r,t,10,11)),t.a),s),27),f(Se((!i.a&&(i.a=new qe($r,i,10,11)),i.a),s),27))}function U5n(e,t){var i,s,a,c;for(c=f(Ds(e.b,t),127),i=c.a,a=f(f(Hr(e.r,t),21),87).Kc();a.Ob();)s=f(a.Pb(),117),s.c&&(i.a=h.Math.max(i.a,Mye(s.c)));if(i.a>0)switch(t.g){case 2:c.n.c=e.s;break;case 4:c.n.b=e.s}}function G5n(e,t){var i,s,a;return i=f(V(t,(od(),K3)),17).a-f(V(e,K3),17).a,i==0?(s=uo(Ho(f(V(e,(P1(),JM)),8)),f(V(e,FI),8)),a=uo(Ho(f(V(t,JM),8)),f(V(t,FI),8)),Qr(s.a*s.b,a.a*a.b)):i}function V5n(e,t){var i,s,a;return i=f(V(t,(Il(),ez)),17).a-f(V(e,ez),17).a,i==0?(s=uo(Ho(f(V(e,(ei(),y9)),8)),f(V(e,y4),8)),a=uo(Ho(f(V(t,y9),8)),f(V(t,y4),8)),Qr(s.a*s.b,a.a*a.b)):i}function VEt(e){var t,i;return i=new m1,i.a+="e_",t=jRn(e),t!=null&&(i.a+=""+t),e.c&&e.d&&(br((i.a+=" ",i),AH(e.c)),br(aa((i.a+="[",i),e.c.i),"]"),br((i.a+=hie,i),AH(e.d)),br(aa((i.a+="[",i),e.d.i),"]")),i.a}function zEt(e){switch(e.g){case 0:return new fnt;case 1:return new dnt;case 2:return new cnt;case 3:return new ant;default:throw ne(new hn("No implementation is available for the layout phase "+(e.f!=null?e.f:""+e.g)))}}function hke(e,t,i,s,a){var c;switch(c=0,a.g){case 1:c=h.Math.max(0,t.b+e.b-(i.b+s));break;case 3:c=h.Math.max(0,-e.b-s);break;case 2:c=h.Math.max(0,-e.a-s);break;case 4:c=h.Math.max(0,t.a+e.a-(i.a+s))}return c}function z5n(e,t,i){var s,a,c,b,g;if(i)for(a=i.a.length,s=new J0(a),g=(s.b-s.a)*s.c<0?(S1(),w0):new R1(s);g.Ob();)b=f(g.Pb(),17),c=vC(i,b.a),lAe in c.a||Coe in c.a?sNn(e,c,t):Rjn(e,c,t),k1n(f(En(e.b,nA(c)),74))}function pke(e){var t,i;switch(e.b){case-1:return!0;case 0:return i=e.t,i>1||i==-1?(e.b=-1,!0):(t=_f(e),t&&(Ss(),t.lk()==d$t)?(e.b=-1,!0):(e.b=1,!1));default:case 1:return!1}}function bke(e,t){var i,s,a,c;if(Ir(e),e.c!=0||e.a!=123)throw ne(new ar(dr((ir(),NTt))));if(c=t==112,s=e.d,i=nC(e.i,125,s),i<0)throw ne(new ar(dr((ir(),MTt))));return a=Vu(e.i,s,i),e.d=i+1,gwt(a,c,(e.e&512)==512)}function KEt(e){var t,i,s,a,c,b,g;if(s=e.a.c.length,s>0)for(b=e.c.d,g=e.d.d,a=Nh(uo(new tt(g.a,g.b),b),1/(s+1)),c=new tt(b.a,b.b),i=new ee(e.a);i.a=0&&s=0?e.Lh(i,!0,!0):iy(e,a,!0),160)),f(s,220).Wl(t);throw ne(new hn(X1+t.xe()+moe))}function J5n(){wwe();var e;return JDt?f(dA((_1(),Nf),Rf),2038):(kr(Tw,new wet),VDn(),e=f(ve(ua((_1(),Nf),Rf),560)?ua(Nf,Rf):new ubt,560),JDt=!0,zjn(e),Zjn(e),xr((gwe(),EOe),e,new PZe),Gs(Nf,Rf,e),e)}function Y5n(e,t){var i,s,a,c;e.j=-1,eu(e.e)?(i=e.i,c=e.i!=0,H7(e,t),s=new gb(e.e,3,e.c,null,t,i,c),a=t.zl(e.e,e.c,null),a=C2t(e,t,a),a?(a.nj(s),a.oj()):Dr(e.e,s)):(H7(e,t),a=t.zl(e.e,e.c,null),a&&a.oj())}function jH(e,t){var i,s,a;if(a=0,s=t[0],s>=e.length)return-1;for(i=(pn(s,e.length),e.charCodeAt(s));i>=48&&i<=57&&(a=a*10+(i-48),++s,!(s>=e.length));)i=(pn(s,e.length),e.charCodeAt(s));return s>t[0]?t[0]=s:a=-1,a}function Q5n(e){var t,i,s,a,c;return a=f(e.a,17).a,c=f(e.b,17).a,i=a,s=c,t=h.Math.max(h.Math.abs(a),h.Math.abs(c)),a<=0&&a==c?(i=0,s=c-1):a==-t&&c!=t?(i=c,s=a,c>=0&&++i):(i=-c,s=a),new io(ot(i),ot(s))}function Z5n(e,t,i,s){var a,c,b,g,m,_;for(a=0;a=0&&_>=0&&m=e.i)throw ne(new Hs(Toe+t+xw+e.i));if(i>=e.i)throw ne(new Hs($oe+i+xw+e.i));return s=e.g[i],t!=i&&(t>16),t=s>>16&16,i=16-t,e=e>>t,s=e-256,t=s>>16&8,i+=t,e<<=t,s=e-g_,t=s>>16&4,i+=t,e<<=t,s=e-Vh,t=s>>16&2,i+=t,e<<=t,s=e>>14,t=s&~(s>>1),i+2-t)}function t8n(e){s3();var t,i,s,a;for(MG=new st,Ase=new Fn,Cse=new st,t=(!e.a&&(e.a=new qe($r,e,10,11)),e.a),VLn(t),a=new Sn(t);a.e!=a.i.gc();)s=f(Cn(a),27),il(MG,s,0)==-1&&(i=new st,lt(Cse,i),Y_t(s,i));return Cse}function n8n(e,t,i){var s,a,c,b;e.a=i.b.d,ve(t,326)?(a=w2(f(t,74),!1,!1),c=jN(a),s=new Mrt(e),Vo(c,s),QN(c,a),t.of((Er(),Dy))!=null&&Vo(f(t.of(Dy),75),s)):(b=f(t,422),b.rh(b.nh()+e.a.a),b.sh(b.oh()+e.a.b))}function r8n(e,t){var i,s,a;for(a=new st,s=Hn(t.a,0);s.b!=s.d.c;)i=f(Bn(s),65),i.c.g==e.g&&Ne(V(i.b,(Il(),ip)))!==Ne(V(i.c,ip))&&!t2(new Wt(null,new Vt(a,16)),new aot(i))&&sn(a.c,i);return Hi(a,new BJe),a}function XEt(e,t,i){var s,a,c,b;return ve(t,153)&&ve(i,153)?(c=f(t,153),b=f(i,153),e.a[c.a][b.a]+e.a[b.a][c.a]):ve(t,250)&&ve(i,250)&&(s=f(t,250),a=f(i,250),s.a==a.a)?f(V(a.a,(od(),K3)),17).a:0}function JEt(e,t){var i,s,a,c,b,g,m,_;for(_=Ae(je(V(t,(pt(),e5)))),m=e[0].n.a+e[0].o.a+e[0].d.c+_,g=1;g=0?i:(g=Y$(uo(new tt(b.c+b.b/2,b.d+b.a/2),new tt(c.c+c.b/2,c.d+c.a/2))),-(SRt(c,b)-1)*g)}function o8n(e,t,i){var s;Mi(new Wt(null,(!i.a&&(i.a=new qe(ai,i,6,6)),new Vt(i.a,16))),new fut(e,t)),Mi(new Wt(null,(!i.n&&(i.n=new qe(Fs,i,1,7)),new Vt(i.n,16))),new dut(e,t)),s=f(Qe(i,(Er(),Dy)),75),s&&mSe(s,e,t)}function iy(e,t,i){var s,a,c;if(c=_2((gc(),qo),e.Dh(),t),c)return Ss(),f(c,69).xk()||(c=a3(Vs(qo,c))),a=(s=e.Ih(c),f(s>=0?e.Lh(s,!0,!0):iy(e,c,!0),160)),f(a,220).Sl(t,i);throw ne(new hn(X1+t.xe()+moe))}function gke(e,t,i,s){var a,c,b,g,m;if(a=e.d[t],a){if(c=a.g,m=a.i,s!=null){for(g=0;g=i&&(s=t,_=(m.c+m.a)/2,b=_-i,m.c<=_-i&&(a=new JQ(m.c,b),$m(e,s++,a)),g=_+i,g<=m.a&&(c=new JQ(g,m.a),Uv(s,e.c.length),m$(e.c,s,c)))}function ZEt(e,t,i){var s,a,c,b,g,m;if(!t.dc()){for(a=new li,m=t.Kc();m.Ob();)for(g=f(m.Pb(),40),xr(e.a,ot(g.g),ot(i)),b=(s=Hn(new sb(g).a.d,0),new OS(s));jO(b.a);)c=f(Bn(b.a),65).c,Ai(a,c,a.c.b,a.c);ZEt(e,a,i+1)}}function wke(e){var t;if(!e.c&&e.g==null)e.d=e.bj(e.f),zn(e,e.d),t=e.d;else{if(e.g==null)return!0;if(e.i==0)return!1;t=f(e.g[e.i-1],51)}return t==e.b&&null.Vm>=null.Um()?(WH(e),wke(e)):t.Ob()}function ekt(e){if(this.a=e,e.c.i.k==(gn(),Ui))this.c=e.c,this.d=f(V(e.c.i,(nt(),Dl)),64);else if(e.d.i.k==Ui)this.c=e.d,this.d=f(V(e.d.i,(nt(),Dl)),64);else throw ne(new hn("Edge "+e+" is not an external edge."))}function tkt(e,t){var i,s,a;a=e.b,e.b=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,3,a,e.b)),t?t!=e&&(Ra(e,t.zb),Tee(e,t.d),i=(s=t.c,s??t.zb),Iee(e,i==null||Ht(i,t.zb)?null:i)):(Ra(e,null),Tee(e,0),Iee(e,null))}function nkt(e,t){var i;this.e=(Nm(),nr(e),Nm(),I2e(e)),this.c=(nr(t),I2e(t)),vme(this.e.Rd().dc()==this.c.Rd().dc()),this.d=w_t(this.e),this.b=w_t(this.c),i=q0(ho,[rt,on],[5,1],5,[this.e.Rd().gc(),this.c.Rd().gc()],2),this.a=i,N3n(this)}function rkt(e){!rse&&(rse=rjn());var t=e.replace(/[\x00-\x1f\xad\u0600-\u0603\u06dd\u070f\u17b4\u17b5\u200b-\u200f\u2028-\u202e\u2060-\u2064\u206a-\u206f\ufeff\ufff9-\ufffb"\\]/g,function(i){return lSn(i)});return'"'+t+'"'}function mke(e,t,i,s,a,c){var b,g,m,_,k;if(a!=0)for(Ne(e)===Ne(i)&&(e=e.slice(t,t+a),t=0),m=i,g=t,_=t+a;g<_;)b=h.Math.min(g+1e4,_),a=b-g,k=e.slice(g,b),k.splice(0,0,s,c?a:0),Array.prototype.splice.apply(m,k),g=b,s+=a}function ikt(e){Ive();var t,i;for(this.b=L6t,this.c=F6t,this.g=(lct(),D6t),this.d=(Xi(),wh),this.a=e,Bke(this),i=new ee(e.b);i.a=b)throw ne(new Lv(t,b));return a=i[t],b==1?s=null:(s=Fe(Pce,Moe,424,b-1,0,1),oa(i,0,s,0,t),c=b-t-1,c>0&&oa(i,t+1,s,t,c)),rA(e,s),xEt(e,t,a),a}function okt(e){var t,i;if(e.f){for(;e.n0?c=y3(i):c=EN(y3(i))),zr(t,d4,c)}function d8n(e,t){var i;t.Ug("Partition preprocessing",1),i=f(fl(Br(El(Br(new Wt(null,new Vt(e.a,16)),new HKe),new UKe),new GKe),Cc(new K,new B,new Qt,se(ie(qs,1),Je,108,0,[(Tc(),pl)]))),15),Mi(i.Oc(),new VKe),t.Vg()}function h8n(e,t){var i,s,a,c,b;for(b=e.j,t.a!=t.b&&Hi(b,new _Xe),a=b.c.length/2|0,s=0;s0&&XN(e,i,t),c):s.a!=null?(XN(e,t,i),-1):a.a!=null?(XN(e,i,t),1):0}function b8n(e,t){var i,s,a,c,b;for(a=t.b.b,e.a=Fe(lf,w_,15,a,0,1),e.b=Fe(Xc,Tp,28,a,16,1),b=Hn(t.b,0);b.b!=b.d.c;)c=f(Bn(b),40),e.a[c.g]=new li;for(s=Hn(t.a,0);s.b!=s.d.c;)i=f(Bn(s),65),e.a[i.b.g].Fc(i),e.a[i.c.g].Fc(i)}function ckt(e,t){var i,s,a,c;e.Pj()?(i=e.Ej(),c=e.Qj(),++e.j,e.qj(i,e.Zi(i,t)),s=e.Ij(3,null,t,i,c),e.Mj()?(a=e.Nj(t,null),a?(a.nj(s),a.oj()):e.Jj(s)):e.Jj(s)):(Zpt(e,t),e.Mj()&&(a=e.Nj(t,null),a&&a.oj()))}function yke(e,t,i){var s,a,c;e.Pj()?(c=e.Qj(),yN(e,t,i),s=e.Ij(3,null,i,t,c),e.Mj()?(a=e.Nj(i,null),e.Tj()&&(a=e.Uj(i,a)),a?(a.nj(s),a.oj()):e.Jj(s)):e.Jj(s)):(yN(e,t,i),e.Mj()&&(a=e.Nj(i,null),a&&a.oj()))}function FH(e,t){var i,s,a,c,b;for(b=Fa(e.e.Dh(),t),a=new Bj,i=f(e.g,124),c=e.i;--c>=0;)s=i[c],b.am(s.Lk())&&zn(a,s);!iCt(e,a)&&eu(e.e)&&Ux(e,t.Jk()?T1(e,6,t,(qt(),ps),null,-1,!1):T1(e,t.tk()?2:1,t,null,null,-1,!1))}function g8n(e,t){var i,s,a,c,b;return e.a==(cA(),UI)?!0:(c=t.a.c,i=t.a.c+t.a.b,!(t.j&&(s=t.A,b=s.c.c.a-s.o.a/2,a=c-(s.n.a+s.o.a),a>b)||t.q&&(s=t.C,b=s.c.c.a-s.o.a/2,a=s.n.a-i,a>b)))}function ukt(e){GZ();var t,i,s,a,c,b,g;for(i=new hg,a=new ee(e.e.b);a.a1?e.e*=Ae(e.a):e.f/=Ae(e.a),jxn(e),GAn(e),W7n(e),Xe(e.b,(T6(),NG),e.g)}function pkt(e,t,i){var s,a,c,b,g,m;for(s=0,m=i,t||(s=i*(e.c.length-1),m*=-1),c=new ee(e);c.a=0?e.Ah(null):e.Ph().Th(e,-1-t,null,null)),e.Bh(f(a,54),i),s&&s.oj(),e.vh()&&e.wh()&&i>-1&&Dr(e,new yo(e,9,i,c,a)),a):c}function Ske(e,t){var i,s,a,c,b;for(c=e.b.Ce(t),s=(i=e.a.get(c),i??Fe(ho,on,1,0,5,1)),b=0;b>5,a>=e.d)return e.e<0;if(i=e.a[a],t=1<<(t&31),e.e<0){if(s=Ayt(e),a>16)),15).dd(c),g0&&(!(ab(e.a.c)&&t.n.d)&&!(US(e.a.c)&&t.n.b)&&(t.g.d+=h.Math.max(0,s/2-.5)),!(ab(e.a.c)&&t.n.a)&&!(US(e.a.c)&&t.n.c)&&(t.g.a-=s-1))}function Ekt(e){var t,i,s,a,c;if(a=new st,c=mRt(e,a),t=f(V(e,(nt(),Ic)),10),t)for(s=new ee(t.j);s.a>t,c=e.m>>t|i<<22-t,a=e.l>>t|e.m<<22-t):t<44?(b=s?Ab:0,c=i>>t-22,a=e.m>>t-22|i<<44-t):(b=s?Ab:0,c=s?Vc:0,a=i>>t-44),Oa(a&Vc,c&Vc,b&Ab)}function kne(e){var t,i,s,a,c,b;for(this.c=new st,this.d=e,s=hi,a=hi,t=to,i=to,b=Hn(e,0);b.b!=b.d.c;)c=f(Bn(b),8),s=h.Math.min(s,c.a),a=h.Math.min(a,c.b),t=h.Math.max(t,c.a),i=h.Math.max(i,c.b);this.a=new Gu(s,a,t-s,i-a)}function Rkt(e,t){var i,s,a,c,b,g;for(c=new ee(e.b);c.a0&&ve(t,44)&&(e.a._j(),_=f(t,44),m=_.ld(),c=m==null?0:ti(m),b=Kme(e.a,c),i=e.a.d[b],i)){for(s=f(i.g,379),k=i.i,g=0;g=2)for(i=a.Kc(),t=je(i.Pb());i.Ob();)c=t,t=je(i.Pb()),s=h.Math.min(s,(mn(t),t-(mn(c),c)));return s}function j8n(e,t){var i,s,a;for(a=new st,s=Hn(t.a,0);s.b!=s.d.c;)i=f(Bn(s),65),i.b.g==e.g&&!Ht(i.b.c,KU)&&Ne(V(i.b,(Il(),ip)))!==Ne(V(i.c,ip))&&!t2(new Wt(null,new Vt(a,16)),new cot(i))&&sn(a.c,i);return Hi(a,new GJe),a}function F8n(e,t){var i,s,a;if(Ne(t)===Ne(nr(e)))return!0;if(!ve(t,15)||(s=f(t,15),a=e.gc(),a!=s.gc()))return!1;if(ve(s,59)){for(i=0;i0&&(a=i),b=new ee(e.f.e);b.a0?(t-=1,i-=1):s>=0&&a<0?(t+=1,i+=1):s>0&&a>=0?(t-=1,i+=1):(t+=1,i-=1),new io(ot(t),ot(i))}function Z8n(e,t){return e.ct.c?1:e.bt.b?1:e.a!=t.a?ti(e.a)-ti(t.a):e.d==(i6(),a5)&&t.d==l5?-1:e.d==l5&&t.d==a5?1:0}function Pkt(e,t){var i,s,a,c,b;return c=t.a,c.c.i==t.b?b=c.d:b=c.c,c.c.i==t.b?s=c.c:s=c.d,a=_An(e.a,b,s),a>0&&a0):a<0&&-a0):!1}function ePn(e,t,i,s){var a,c,b,g,m,_,k,I;for(a=(t-e.d)/e.c.c.length,c=0,e.a+=i,e.d=t,I=new ee(e.c);I.a>24;return b}function nPn(e){if(e.ze()){var t=e.c;t.Ae()?e.o="["+t.n:t.ze()?e.o="["+t.xe():e.o="[L"+t.xe()+";",e.b=t.we()+"[]",e.k=t.ye()+"[]";return}var i=e.j,s=e.d;s=s.split("/"),e.o=Ate(".",[i,Ate("$",s)]),e.b=Ate(".",[i,Ate(".",s)]),e.k=s[s.length-1]}function rPn(e,t){var i,s,a,c,b;for(b=null,c=new ee(e.e.a);c.a=0;t-=2)for(i=0;i<=t;i+=2)(e.b[i]>e.b[i+2]||e.b[i]===e.b[i+2]&&e.b[i+1]>e.b[i+3])&&(s=e.b[i+2],e.b[i+2]=e.b[i],e.b[i]=s,s=e.b[i+3],e.b[i+3]=e.b[i+1],e.b[i+1]=s);e.c=!0}}function sPn(e,t){var i,s,a,c,b,g,m,_,k;for(_=-1,k=0,b=e,g=0,m=b.length;g0&&++k;++_}return k}function rd(e){var t,i;return i=new gu(z0(e.Rm)),i.a+="@",br(i,(t=ti(e)>>>0,t.toString(16))),e.Vh()?(i.a+=" (eProxyURI: ",aa(i,e._h()),e.Kh()&&(i.a+=" eClass: ",aa(i,e.Kh())),i.a+=")"):e.Kh()&&(i.a+=" (eClass: ",aa(i,e.Kh()),i.a+=")"),i.a}function H6(e){var t,i,s,a;if(e.e)throw ne(new Us((cb(gse),Kre+gse.k+qre)));for(e.d==(Xi(),wh)&&lU(e,Js),i=new ee(e.a.a);i.a>24}return i}function cPn(e,t,i){var s,a,c;if(a=f(Ds(e.i,t),314),!a)if(a=new mmt(e.d,t,i),n3(e.i,t,a),D2e(t))h1n(e.a,t.c,t.b,a);else switch(c=zIn(t),s=f(Ds(e.p,c),252),c.g){case 1:case 3:a.j=!0,AY(s,t.b,a);break;case 4:case 2:a.k=!0,AY(s,t.c,a)}return a}function uPn(e,t){var i,s,a,c,b,g,m,_,k;for(m=pp(e.c-e.b&e.a.length-1),_=null,k=null,c=new Z$(e);c.a!=c.b;)a=f(ZW(c),10),i=(g=f(V(a,(nt(),jd)),12),g?g.i:null),s=(b=f(V(a,Af),12),b?b.i:null),(_!=i||k!=s)&&(bkt(m,t),_=i,k=s),sn(m.c,a);bkt(m,t)}function fPn(e,t,i,s){var a,c,b,g,m,_;if(g=new Bj,m=Fa(e.e.Dh(),t),a=f(e.g,124),Ss(),f(t,69).xk())for(b=0;b=0)return a;for(c=1,g=new ee(t.j);g.a=0)return a;for(c=1,g=new ee(t.j);g.a0&&t.Ne((Xt(a-1,e.c.length),f(e.c[a-1],10)),c)>0;)Ku(e,a,(Xt(a-1,e.c.length),f(e.c[a-1],10))),--a;Xt(a,e.c.length),e.c[a]=c}i.a=new Fn,i.b=new Fn}function dPn(e,t,i){var s,a,c,b,g,m,_,k;for(k=(s=f(t.e&&t.e(),9),new Uu(s,f(Yf(s,s.length),9),0)),m=d_(i,"[\\[\\]\\s,]+"),c=m,b=0,g=c.length;b=0?(t||(t=new a$,s>0&&Ms(t,(Mo(0,s,e.length),e.substr(0,s)))),t.a+="\\",hC(t,i&Ji)):t&&hC(t,i&Ji);return t?t.a:e}function pPn(e){var t,i,s;for(i=new ee(e.a.a.b);i.a0&&(!(ab(e.a.c)&&t.n.d)&&!(US(e.a.c)&&t.n.b)&&(t.g.d-=h.Math.max(0,s/2-.5)),!(ab(e.a.c)&&t.n.a)&&!(US(e.a.c)&&t.n.c)&&(t.g.a+=h.Math.max(0,s-1)))}function Wkt(e,t,i){var s,a;if((e.c-e.b&e.a.length-1)==2)t==(ft(),bn)||t==_n?(RW(f(g6(e),15),(ku(),Dp)),RW(f(g6(e),15),a0)):(RW(f(g6(e),15),(ku(),a0)),RW(f(g6(e),15),Dp));else for(a=new Z$(e);a.a!=a.b;)s=f(ZW(a),15),RW(s,i)}function bPn(e,t){var i,s,a,c,b,g,m;for(a=aC(new g0e(e)),g=new No(a,a.c.length),c=aC(new g0e(t)),m=new No(c,c.c.length),b=null;g.b>0&&m.b>0&&(i=(In(g.b>0),f(g.a.Xb(g.c=--g.b),27)),s=(In(m.b>0),f(m.a.Xb(m.c=--m.b),27)),i==s);)b=i;return b}function Hkt(e,t,i){var s,a,c,b;Ugt(e,t)>Ugt(e,i)?(s=Rl(i,(ft(),_n)),e.d=s.dc()?0:nZ(f(s.Xb(0),12)),b=Rl(t,wn),e.b=b.dc()?0:nZ(f(b.Xb(0),12))):(a=Rl(i,(ft(),wn)),e.d=a.dc()?0:nZ(f(a.Xb(0),12)),c=Rl(t,_n),e.b=c.dc()?0:nZ(f(c.Xb(0),12)))}function Ukt(e,t){var i,s,a,c;for(i=e.o.a,c=f(f(Hr(e.r,t),21),87).Kc();c.Ob();)a=f(c.Pb(),117),a.e.a=i*Ae(je(a.b.of(IG))),a.e.b=(s=a.b,s.pf((Er(),qc))?s.ag()==(ft(),bn)?-s.Mf().b-Ae(je(s.of(qc))):Ae(je(s.of(qc))):s.ag()==(ft(),bn)?-s.Mf().b:0)}function gPn(e,t){var i,s,a,c;for(t.Ug("Self-Loop pre-processing",1),s=new ee(e.a);s.ae.c));b++)a.a>=e.s&&(c<0&&(c=b),g=b);return m=(e.s+e.c)/2,c>=0&&(s=iNn(e,t,c,g),m=ngn((Xt(s,t.c.length),f(t.c[s],339))),c8n(t,s,i)),m}function Zn(e,t,i){var s,a,c,b,g,m,_;for(b=(c=new D1e,c),uSe(b,(mn(t),t)),_=(!b.b&&(b.b=new nu((Kt(),_s),Ll,b)),b.b),m=1;m0&&eDn(this,a)}function Oke(e,t,i,s,a,c){var b,g,m;if(!a[t.a]){for(a[t.a]=!0,b=s,!b&&(b=new cW),lt(b.e,t),m=c[t.a].Kc();m.Ob();)g=f(m.Pb(),290),!(g.d==i||g.c==i)&&(g.c!=t&&Oke(e,g.c,t,b,a,c),g.d!=t&&Oke(e,g.d,t,b,a,c),lt(b.c,g),eo(b.d,g.b));return b}return null}function yPn(e){var t,i,s,a,c,b,g;for(t=0,a=new ee(e.e);a.a=2}function vPn(e,t,i,s,a){var c,b,g,m,_,k;for(c=e.c.d.j,b=f(tf(i,0),8),k=1;k1||(t=ii(dd,se(ie(Ps,1),Je,95,0,[Nb,hd])),lN(JB(t,e))>1)||(s=ii(bd,se(ie(Ps,1),Je,95,0,[Lp,$f])),lN(JB(s,e))>1))}function Nke(e,t,i){var s,a,c;for(c=new ee(e.t);c.a0&&(s.b.n-=s.c,s.b.n<=0&&s.b.u>0&&hr(t,s.b));for(a=new ee(e.i);a.a0&&(s.a.u-=s.c,s.a.u<=0&&s.a.n>0&&hr(i,s.a))}function WH(e){var t,i,s,a,c;if(e.g==null&&(e.d=e.bj(e.f),zn(e,e.d),e.c))return c=e.f,c;if(t=f(e.g[e.i-1],51),a=t.Pb(),e.e=t,i=e.bj(a),i.Ob())e.d=i,zn(e,i);else for(e.d=null;!t.Ob()&&(Ci(e.g,--e.i,null),e.i!=0);)s=f(e.g[e.i-1],51),t=s;return a}function SPn(e,t){var i,s,a,c,b,g;if(s=t,a=s.Lk(),xb(e.e,a)){if(a.Si()&&iW(e,a,s.md()))return!1}else for(g=Fa(e.e.Dh(),a),i=f(e.g,124),c=0;c1||i>1)return 2;return t+i==1?2:0}function Uc(e,t){var i,s,a,c,b,g;return c=e.a*Ure+e.b*1502,g=e.b*Ure+11,i=h.Math.floor(g*bM),c+=i,g-=i*iRe,c%=iRe,e.a=c,e.b=g,t<=24?h.Math.floor(e.a*h4e[t]):(a=e.a*(1<=2147483648&&(s-=4294967296),s)}function qkt(e,t,i){var s,a,c,b,g,m,_;for(c=new st,_=new li,b=new li,GMn(e,_,b,t),SDn(e,_,b,t,i),m=new ee(e);m.as.b.g&&sn(c.c,s);return c}function APn(e,t,i){var s,a,c,b,g,m;for(g=e.c,b=(i.q?i.q:(qt(),qt(),Ip)).vc().Kc();b.Ob();)c=f(b.Pb(),44),s=!Xx(Br(new Wt(null,new Vt(g,16)),new Bx(new iut(t,c)))).Bd((K0(),z3)),s&&(m=c.md(),ve(m,4)&&(a=F2e(m),a!=null&&(m=a)),t.qf(f(c.ld(),149),m))}function TPn(e,t,i){var s,a;if(T7(e.b),Cd(e.b,(SN(),uz),(h$(),C9)),Cd(e.b,fz,t.g),Cd(e.b,dz,t.a),e.a=tM(e.b,t),i.Ug("Compaction by shrinking a tree",e.a.c.length),t.i.c.length>1)for(a=new ee(e.a);a.a=0?e.Lh(s,!0,!0):iy(e,c,!0),160)),f(a,220).Xl(t,i)}else throw ne(new hn(X1+t.xe()+_I))}function HH(e,t){var i,s,a,c,b;if(t){for(c=ve(e.Cb,90)||ve(e.Cb,102),b=!c&&ve(e.Cb,331),s=new Sn((!t.a&&(t.a=new U$(t,Os,t)),t.a));s.e!=s.i.gc();)if(i=f(Cn(s),89),a=tU(i),c?ve(a,90):b?ve(a,156):a)return a;return c?(Kt(),Mf):(Kt(),vh)}else return null}function $Pn(e,t){var i,s,a,c;for(t.Ug("Resize child graph to fit parent.",1),s=new ee(e.b);s.a=2*t&<(i,new JQ(b[s-1]+t,b[s]-t));return i}function OPn(e,t,i){var s,a,c,b,g,m,_,k;if(i)for(c=i.a.length,s=new J0(c),g=(s.b-s.a)*s.c<0?(S1(),w0):new R1(s);g.Ob();)b=f(g.Pb(),17),a=vC(i,b.a),a&&(m=cEn(e,(_=(v1(),k=new M0e,k),t&&Lke(_,t),_),a),NC(m,db(a,Zh)),OH(a,m),lke(a,m),Yee(e,a,m))}function UH(e){var t,i,s,a,c,b;if(!e.j){if(b=new vZe,t=B5,c=t.a.zc(e,t),c==null){for(s=new Sn(rl(e));s.e!=s.i.gc();)i=f(Cn(s),29),a=UH(i),Ii(b,a),zn(b,i);t.a.Bc(e)!=null}Qv(b),e.j=new WS((f(Se(Ve((C1(),un).o),11),19),b.i),b.g),Bc(e).b&=-33}return e.j}function NPn(e){var t,i,s,a;if(e==null)return null;if(s=ha(e,!0),a=FM.length,Ht(s.substr(s.length-a,a),FM)){if(i=s.length,i==4){if(t=(pn(0,s.length),s.charCodeAt(0)),t==43)return UOe;if(t==45)return wLt}else if(i==3)return UOe}return new k0e(s)}function MPn(e){var t,i,s;return i=e.l,i&i-1||(s=e.m,s&s-1)||(t=e.h,t&t-1)||t==0&&s==0&&i==0?-1:t==0&&s==0&&i!=0?eSe(i):t==0&&s!=0&&i==0?eSe(s)+22:t!=0&&s==0&&i==0?eSe(t)+44:-1}function g2(e,t){var i,s,a,c,b;for(a=t.a&e.f,c=null,s=e.b[a];;s=s.b){if(s==t){c?c.b=t.b:e.b[a]=t.b;break}c=s}for(b=t.f&e.f,c=null,i=e.c[b];;i=i.d){if(i==t){c?c.d=t.d:e.c[b]=t.d;break}c=i}t.e?t.e.c=t.c:e.a=t.c,t.c?t.c.e=t.e:e.e=t.e,--e.i,++e.g}function DPn(e,t){var i;t.d?t.d.b=t.b:e.a=t.b,t.b?t.b.d=t.d:e.e=t.d,!t.e&&!t.c?(i=f(mf(f(f3(e.b,t.a),260)),260),i.a=0,++e.c):(i=f(mf(f(En(e.b,t.a),260)),260),--i.a,t.e?t.e.c=t.c:i.b=f(mf(t.c),511),t.c?t.c.e=t.e:i.c=f(mf(t.e),511)),--e.d}function LPn(e){var t,i,s,a,c,b,g,m,_,k;for(i=e.o,t=e.p,b=Nr,a=Qo,g=Nr,c=Qo,_=0;_0),c.a.Xb(c.c=--c.b),Dv(c,a),In(c.b3&&vp(e,0,t-3))}function FPn(e){var t,i,s,a;return Ne(V(e,(pt(),M_)))===Ne((vb(),Wg))?!e.e&&Ne(V(e,c9))!==Ne((BC(),r9)):(s=f(V(e,Ile),299),a=wt(gt(V(e,Ple)))||Ne(V(e,YI))===Ne((u6(),n9)),t=f(V(e,S6e),17).a,i=e.a.c.length,!a&&s!=(BC(),r9)&&(t==0||t>i))}function BPn(e){var t,i;for(i=0;i0);i++);if(i>0&&i0);t++);return t>0&&i>16!=6&&t){if(oA(e,t))throw ne(new hn(SI+fkt(e)));s=null,e.Cb&&(s=(i=e.Db>>16,i>=0?sEe(e,s):e.Cb.Th(e,-1-i,null,s))),t&&(s=S3(t,e,6,s)),s=Gme(e,t,s),s&&s.oj()}else e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,6,t,t))}function GH(e,t){var i,s;if(t!=e.Cb||e.Db>>16!=3&&t){if(oA(e,t))throw ne(new hn(SI+QRt(e)));s=null,e.Cb&&(s=(i=e.Db>>16,i>=0?uEe(e,s):e.Cb.Th(e,-1-i,null,s))),t&&(s=S3(t,e,12,s)),s=Vme(e,t,s),s&&s.oj()}else e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,3,t,t))}function Lke(e,t){var i,s;if(t!=e.Cb||e.Db>>16!=9&&t){if(oA(e,t))throw ne(new hn(SI+J3t(e)));s=null,e.Cb&&(s=(i=e.Db>>16,i>=0?aEe(e,s):e.Cb.Th(e,-1-i,null,s))),t&&(s=S3(t,e,9,s)),s=zme(e,t,s),s&&s.oj()}else e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,9,t,t))}function hA(e){var t,i,s,a,c;if(s=_f(e),c=e.j,c==null&&s)return e.Jk()?null:s.ik();if(ve(s,156)){if(i=s.jk(),i&&(a=i.wi(),a!=e.i)){if(t=f(s,156),t.nk())try{e.g=a.ti(t,c)}catch(b){if(b=mi(b),ve(b,82))e.g=null;else throw ne(b)}e.i=a}return e.g}return null}function Qkt(e){var t;return t=new st,lt(t,new Wk(new tt(e.c,e.d),new tt(e.c+e.b,e.d))),lt(t,new Wk(new tt(e.c,e.d),new tt(e.c,e.d+e.a))),lt(t,new Wk(new tt(e.c+e.b,e.d+e.a),new tt(e.c+e.b,e.d))),lt(t,new Wk(new tt(e.c+e.b,e.d+e.a),new tt(e.c,e.d+e.a))),t}function WPn(e){var t,i,s;if(e==null)return Za;try{return dl(e)}catch(a){if(a=mi(a),ve(a,103))return t=a,s=z0(ou(e))+"@"+(i=(lb(),j2e(e)>>>0),i.toString(16)),t4n(BRn(),(Zx(),"Exception during lenientFormat for "+s),t),"<"+s+" threw "+z0(t.Rm)+">";throw ne(a)}}function HPn(e,t,i){var s,a,c;for(c=t.a.ec().Kc();c.Ob();)a=f(c.Pb(),74),s=f(En(e.b,a),272),!s&&(di(Sp(a))==di(F1(a))?TOn(e,a,i):Sp(a)==di(F1(a))?En(e.c,a)==null&&En(e.b,F1(a))!=null&&$xt(e,a,i,!1):En(e.d,a)==null&&En(e.b,Sp(a))!=null&&$xt(e,a,i,!0))}function UPn(e,t){var i,s,a,c,b,g,m;for(a=e.Kc();a.Ob();)for(s=f(a.Pb(),10),g=new ia,Sl(g,s),so(g,(ft(),_n)),Xe(g,(nt(),EV),(cn(),!0)),b=t.Kc();b.Ob();)c=f(b.Pb(),10),m=new ia,Sl(m,c),so(m,wn),Xe(m,EV,!0),i=new Fm,Xe(i,EV,!0),rs(i,g),xo(i,m)}function GPn(e,t,i,s){var a,c,b,g;a=D_t(e,t,i),c=D_t(e,i,t),b=f(En(e.c,t),118),g=f(En(e.c,i),118),a1)for(t=xm((i=new V0,++e.b,i),e.d),g=Hn(c,0);g.b!=g.d.c;)b=f(Bn(g),125),id(qf(Kf(Xf(zf(new gf,1),0),t),b))}function KPn(e,t,i){var s,a,c,b,g;for(i.Ug("Breaking Point Removing",1),e.a=f(V(t,(pt(),Ob)),223),c=new ee(t.b);c.a>16!=11&&t){if(oA(e,t))throw ne(new hn(SI+r3e(e)));s=null,e.Cb&&(s=(i=e.Db>>16,i>=0?fEe(e,s):e.Cb.Th(e,-1-i,null,s))),t&&(s=S3(t,e,10,s)),s=tye(e,t,s),s&&s.oj()}else e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,11,t,t))}function qPn(e){var t,i,s,a;for(s=new aw(new U0(e.b).a);s.b;)i=Xm(s),a=f(i.ld(),12),t=f(i.md(),10),Xe(t,(nt(),Ur),a),Xe(a,Ic,t),Xe(a,s9,(cn(),!0)),so(a,f(V(t,Dl),64)),V(t,Dl),Xe(a.i,(pt(),Oi),(Co(),A4)),f(V(Go(a.i),ma),21).Fc((As(),a4))}function XPn(e,t,i){var s,a,c,b,g,m;if(c=0,b=0,e.c)for(m=new ee(e.d.i.j);m.ac.a?-1:a.am){for(k=e.d,e.d=Fe(pOe,EAe,66,2*m+4,0,1),c=0;c=9223372036854776e3?(xC(),GAe):(a=!1,e<0&&(a=!0,e=-e),s=0,e>=yw&&(s=oo(e/yw),e-=s*yw),i=0,e>=N3&&(i=oo(e/N3),e-=i*N3),t=oo(e),c=Oa(t,i,s),a&&Qee(c),c)}function sOn(e){var t,i,s,a,c;if(c=new st,Ma(e.b,new xrt(c)),e.b.c.length=0,c.c.length!=0){for(t=(Xt(0,c.c.length),f(c.c[0],82)),i=1,s=c.c.length;i=-t&&s==t?new io(ot(i-1),ot(s)):new io(ot(i),ot(s-1))}function t3t(){return ss(),se(ie(mFn,1),Je,81,0,[ITe,ATe,j2,Gse,JTe,KG,rV,$_,qTe,FTe,zTe,T_,XTe,DTe,YTe,STe,YG,Vse,VG,eV,ZTe,ZG,ETe,KTe,e$e,tV,QTe,zG,OTe,GTe,UTe,iV,xTe,GG,XG,RTe,YA,WTe,LTe,VTe,BI,TTe,CTe,HTe,jTe,JG,nV,kTe,QG,BTe,qG,NTe,PTe,ZM,UG,MTe,$Te])}function cOn(e,t,i){e.d=0,e.b=0,t.k==(gn(),wa)&&i.k==wa&&f(V(t,(nt(),Ur)),10)==f(V(i,Ur),10)&&(mee(t).j==(ft(),bn)?Hkt(e,t,i):Hkt(e,i,t)),t.k==wa&&i.k==vo?mee(t).j==(ft(),bn)?e.d=1:e.b=1:i.k==wa&&t.k==vo&&(mee(i).j==(ft(),bn)?e.b=1:e.d=1),K4n(e,t,i)}function uOn(e){var t,i,s,a,c,b,g,m,_,k,I;return I=MEe(e),t=e.a,m=t!=null,m&&cC(I,"category",e.a),a=BO(new H0(e.d)),b=!a,b&&(_=new B0,Id(I,"knownOptions",_),i=new lst(_),Vo(new H0(e.d),i)),c=BO(e.g),g=!c,g&&(k=new B0,Id(I,"supportedFeatures",k),s=new ast(k),Vo(e.g,s)),I}function fOn(e){var t,i,s,a,c,b,g,m,_;for(s=!1,t=336,i=0,c=new Gdt(e.length),g=e,m=0,_=g.length;m<_;++m)b=g[m],s=s|(L1(b),!1),a=(A1(b),b.a),lt(c.a,nr(a)),t&=a.yd(),i=Txn(i,a.zd());return f(f(Fpt(new Wt(null,une(new Vt((Nm(),I2e(c.a)),16),new Q,t,i)),new Znt(e)),687),848)}function dOn(e,t){var i;e.d&&(t.c!=e.e.c||nRn(e.e.b,t.b))&&(lt(e.f,e.d),e.a=e.d.c+e.d.b,e.d=null,e.e=null),Cgn(t.b)?e.c=t:e.b=t,(t.b==(WC(),vy)&&!t.a||t.b==x_&&t.a||t.b==L2&&t.a||t.b==C_&&!t.a)&&e.c&&e.b&&(i=new Gu(e.a,e.c.d,t.c-e.a,e.b.d-e.c.d),e.d=i,e.e=t)}function G6(e){var t;if(wlt.call(this),this.i=new mQe,this.g=e,this.f=f(e.e&&e.e(),9).length,this.f==0)throw ne(new hn("There must be at least one phase in the phase enumeration."));this.c=(t=f(kd(this.g),9),new Uu(t,f(Yf(t,t.length),9),0)),this.a=new Ki,this.b=new Fn}function Wke(e,t){var i,s;if(t!=e.Cb||e.Db>>16!=7&&t){if(oA(e,t))throw ne(new hn(SI+aEt(e)));s=null,e.Cb&&(s=(i=e.Db>>16,i>=0?lEe(e,s):e.Cb.Th(e,-1-i,null,s))),t&&(s=f(t,54).Rh(e,1,z9,s)),s=qye(e,t,s),s&&s.oj()}else e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,7,t,t))}function n3t(e,t){var i,s;if(t!=e.Cb||e.Db>>16!=3&&t){if(oA(e,t))throw ne(new hn(SI+s_t(e)));s=null,e.Cb&&(s=(i=e.Db>>16,i>=0?cEe(e,s):e.Cb.Th(e,-1-i,null,s))),t&&(s=f(t,54).Rh(e,0,q9,s)),s=Xye(e,t,s),s&&s.oj()}else e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,3,t,t))}function Tne(e,t){pA();var i,s,a,c,b,g,m,_,k;return t.d>e.d&&(g=e,e=t,t=g),t.d<63?ZOn(e,t):(b=(e.d&-2)<<4,_=p_e(e,b),k=p_e(t,b),s=Xne(e,u3(_,b)),a=Xne(t,u3(k,b)),m=Tne(_,k),i=Tne(s,a),c=Tne(Xne(_,s),Xne(a,k)),c=nre(nre(c,m),i),c=u3(c,b),m=u3(m,b<<1),nre(nre(m,c),i))}function Ag(){Ag=F,zle=new LS(s4t,0),aIe=new LS("LONGEST_PATH",1),cIe=new LS("LONGEST_PATH_SOURCE",2),Vle=new LS("COFFMAN_GRAHAM",3),lIe=new LS(mie,4),uIe=new LS("STRETCH_WIDTH",5),WV=new LS("MIN_WIDTH",6),g4=new LS("BF_MODEL_ORDER",7),w4=new LS("DF_MODEL_ORDER",8)}function hOn(e,t,i){var s,a,c,b,g;for(b=_6(e,i),g=Fe(Op,$g,10,t.length,0,1),s=0,c=b.Kc();c.Ob();)a=f(c.Pb(),12),wt(gt(V(a,(nt(),s9))))&&(g[s++]=f(V(a,Ic),10));if(s=0;c+=i?1:-1)b=b|t.c.lg(m,c,i,s&&!wt(gt(V(t.j,(nt(),t0))))&&!wt(gt(V(t.j,(nt(),z2))))),b=b|t.q.ug(m,c,i),b=b|U3t(e,m[c],i,s);return Zi(e.c,t),b}function KH(e,t,i){var s,a,c,b,g,m,_,k,I,D;for(k=S1t(e.j),I=0,D=k.length;I1&&(e.a=!0),zyn(f(i.b,68),Mr(Ho(f(t.b,68).c),Nh(uo(Ho(f(i.b,68).a),f(t.b,68).a),a))),Tgt(e,t),r3t(e,i)}function i3t(e){var t,i,s,a,c,b,g;for(c=new ee(e.a.a);c.a0&&c>0?b.p=t++:s>0?b.p=i++:c>0?b.p=a++:b.p=i++}qt(),Hi(e.j,new LKe)}function mOn(e){var t,i;i=null,t=f(yt(e.g,0),18);do{if(i=t.d.i,ri(i,(nt(),Af)))return f(V(i,Af),12).i;if(i.k!=(gn(),ji)&&Un(new kn(xn(Wi(i).a.Kc(),new O))))t=f(On(new kn(xn(Wi(i).a.Kc(),new O))),18);else if(i.k!=ji)return null}while(i&&i.k!=(gn(),ji));return i}function yOn(e,t){var i,s,a,c,b,g,m,_,k;for(g=t.j,b=t.g,m=f(yt(g,g.c.length-1),113),k=(Xt(0,g.c.length),f(g.c[0],113)),_=Jte(e,b,m,k),c=1;c_&&(m=i,k=a,_=s);t.a=k,t.c=m}function vOn(e,t,i){var s,a,c,b,g,m,_;for(_=new sg(new Vit(e)),b=se(ie(M5t,1),$At,12,0,[t,i]),g=0,m=b.length;gm-e.b&&gm-e.a&&g0?c.a?(g=c.b.Mf().a,i>g&&(a=(i-g)/2,c.d.b=a,c.d.c=a)):c.d.c=e.s+i:V$(e.u)&&(s=DEe(c.b),s.c<0&&(c.d.b=-s.c),s.c+s.b>c.b.Mf().a&&(c.d.c=s.c+s.b-c.b.Mf().a))}function LOn(e,t){var i,s,a,c,b;b=new st,i=t;do c=f(En(e.b,i),131),c.B=i.c,c.D=i.d,sn(b.c,c),i=f(En(e.k,i),18);while(i);return s=(Xt(0,b.c.length),f(b.c[0],131)),s.j=!0,s.A=f(s.d.a.ec().Kc().Pb(),18).c.i,a=f(yt(b,b.c.length-1),131),a.q=!0,a.C=f(a.d.a.ec().Kc().Pb(),18).d.i,b}function jOn(e){var t,i;if(t=f(e.a,17).a,i=f(e.b,17).a,t>=0){if(t==i)return new io(ot(-t-1),ot(-t-1));if(t==-i)return new io(ot(-t),ot(i+1))}return h.Math.abs(t)>h.Math.abs(i)?t<0?new io(ot(-t),ot(i)):new io(ot(-t),ot(i+1)):new io(ot(t+1),ot(i))}function FOn(e){var t,i;i=f(V(e,(pt(),Ha)),171),t=f(V(e,(nt(),Iw)),311),i==(ef(),n0)?(Xe(e,Ha,a9),Xe(e,Iw,(wb(),G2))):i==O_?(Xe(e,Ha,a9),Xe(e,Iw,(wb(),J3))):t==(wb(),G2)?(Xe(e,Ha,n0),Xe(e,Iw,i9)):t==J3&&(Xe(e,Ha,O_),Xe(e,Iw,i9))}function qH(){qH=F,w9=new EJe,q7t=gr(new Ki,(Yo(),sa),(ss(),VG)),Y7t=hc(gr(new Ki,sa,ZG),ll,QG),Q7t=Hh(Hh(b$(hc(gr(new Ki,cd,rV),ll,nV),ga),tV),iV),X7t=hc(gr(gr(gr(new Ki,Pp,KG),ga,XG),ga,YA),ll,qG),J7t=hc(gr(gr(new Ki,ga,YA),ga,GG),ll,UG)}function V6(){V6=F,tNt=gr(hc(new Ki,(Yo(),ll),(ss(),NTe)),sa,VG),oNt=Hh(Hh(b$(hc(gr(new Ki,cd,rV),ll,nV),ga),tV),iV),nNt=hc(gr(gr(gr(new Ki,Pp,KG),ga,XG),ga,YA),ll,qG),iNt=gr(gr(new Ki,sa,ZG),ll,QG),rNt=hc(gr(gr(new Ki,ga,YA),ga,GG),ll,UG)}function BOn(e,t,i,s,a){var c,b;(!ms(t)&&t.c.i.c==t.d.i.c||!lyt(kl(se(ie(wo,1),rt,8,0,[a.i.n,a.n,a.a])),i))&&!ms(t)&&(t.c==a?rC(t.a,0,new us(i)):hr(t.a,new us(i)),s&&!Rd(e.a,i)&&(b=f(V(t,(pt(),Xs)),75),b||(b=new cc,Xe(t,Xs,b)),c=new us(i),Ai(b,c,b.c.b,b.c),Zi(e.a,c)))}function l3t(e,t){var i,s,a,c;for(c=tr(os(xp,mp(tr(os(t==null?0:ti(t),Cp)),15))),i=c&e.b.length-1,a=null,s=e.b[i];s;a=s,s=s.a)if(s.d==c&&Lh(s.i,t))return a?a.a=s.a:e.b[i]=s.a,jlt(f(mf(s.c),604),f(mf(s.f),604)),MO(f(mf(s.b),227),f(mf(s.e),227)),--e.f,++e.e,!0;return!1}function WOn(e){var t,i;for(i=new kn(xn(go(e).a.Kc(),new O));Un(i);)if(t=f(On(i),18),t.c.i.k!=(gn(),ea))throw ne(new rg(wie+$N(e)+"' has its layer constraint set to FIRST, but has at least one incoming edge that does not come from a FIRST_SEPARATE node. That must not happen."))}function HOn(e,t,i){var s,a,c,b,g,m,_;if(a=f_t(e.Db&254),a==0)e.Eb=i;else{if(a==1)g=Fe(ho,on,1,2,5,1),c=Xte(e,t),c==0?(g[0]=i,g[1]=e.Eb):(g[0]=e.Eb,g[1]=i);else for(g=Fe(ho,on,1,a+1,5,1),b=ow(e.Eb),s=2,m=0,_=0;s<=128;s<<=1)s==t?g[_++]=i:e.Db&s&&(g[_++]=b[m++]);e.Eb=g}e.Db|=t}function a3t(e,t,i){var s,a,c,b;for(this.b=new st,a=0,s=0,b=new ee(e);b.a0&&(c=f(yt(this.b,0),176),a+=c.o,s+=c.p),a*=2,s*=2,t>1?a=oo(h.Math.ceil(a*t)):s=oo(h.Math.ceil(s/t)),this.a=new A2e(a,s)}function c3t(e,t,i,s,a,c){var b,g,m,_,k,I,D,W,U,z,X,oe;for(k=s,t.j&&t.o?(W=f(En(e.f,t.A),60),z=W.d.c+W.d.b,--k):z=t.a.c+t.a.b,I=a,i.q&&i.o?(W=f(En(e.f,i.C),60),_=W.d.c,++I):_=i.a.c,X=_-z,m=h.Math.max(2,I-k),g=X/m,U=z+g,D=k;D=0;b+=a?1:-1){for(g=t[b],m=s==(ft(),_n)?a?Rl(g,s):Zu(Rl(g,s)):a?Zu(Rl(g,s)):Rl(g,s),c&&(e.c[g.p]=m.gc()),I=m.Kc();I.Ob();)k=f(I.Pb(),12),e.d[k.p]=_++;eo(i,m)}}function f3t(e,t,i){var s,a,c,b,g,m,_,k;for(c=Ae(je(e.b.Kc().Pb())),_=Ae(je(FRn(t.b))),s=Nh(Ho(e.a),_-i),a=Nh(Ho(t.a),i-c),k=Mr(s,a),Nh(k,1/(_-c)),this.a=k,this.b=new st,g=!0,b=e.b.Kc(),b.Pb();b.Ob();)m=Ae(je(b.Pb())),g&&m-i>Yie&&(this.b.Fc(i),g=!1),this.b.Fc(m);g&&this.b.Fc(i)}function UOn(e){var t,i,s,a;if(lNn(e,e.n),e.d.c.length>0){for(s$(e.c);Rke(e,f(Z(new ee(e.e.a)),125))>5,t&=31,s>=e.d)return e.e<0?(Uh(),w6t):(Uh(),MI);if(c=e.d-s,a=Fe(Xn,wr,28,c+1,15,1),NIn(a,c,e.a,s,t),e.e<0){for(i=0;i0&&e.a[i]<<32-t){for(i=0;i=0?!1:(i=_2((gc(),qo),a,t),i?(s=i.Ik(),(s>1||s==-1)&&Lm(Vs(qo,i))!=3):!0)):!1}function KOn(e,t,i,s){var a,c,b,g,m;return g=sl(f(Se((!t.b&&(t.b=new en(Dn,t,4,7)),t.b),0),84)),m=sl(f(Se((!t.c&&(t.c=new en(Dn,t,5,8)),t.c),0),84)),di(g)==di(m)||Xv(m,g)?null:(b=M7(t),b==i?s:(c=f(En(e.a,b),10),c&&(a=c.e,a)?a:null))}function qOn(e,t,i){var s,a,c,b,g;for(i.Ug("Longest path to source layering",1),e.a=t,g=e.a.a,e.b=Fe(Xn,wr,28,g.c.length,15,1),s=0,b=new ee(g);b.a0&&(i[0]+=e.d,b-=i[0]),i[2]>0&&(i[2]+=e.d,b-=i[2]),c=h.Math.max(0,b),i[1]=h.Math.max(i[1],b),g_e(e,Aa,a.c+s.b+i[0]-(i[1]-b)/2,i),t==Aa&&(e.c.b=c,e.c.c=a.c+s.b+(c-b)/2)}function _3t(){this.c=Fe(Ro,js,28,(ft(),se(ie(vs,1),Ql,64,0,[Cl,bn,_n,jn,wn])).length,15,1),this.b=Fe(Ro,js,28,se(ie(vs,1),Ql,64,0,[Cl,bn,_n,jn,wn]).length,15,1),this.a=Fe(Ro,js,28,se(ie(vs,1),Ql,64,0,[Cl,bn,_n,jn,wn]).length,15,1),ywe(this.c,hi),ywe(this.b,to),ywe(this.a,to)}function da(e,t,i){var s,a,c,b;if(t<=i?(a=t,c=i):(a=i,c=t),s=0,e.b==null)e.b=Fe(Xn,wr,28,2,15,1),e.b[0]=a,e.b[1]=c,e.c=!0;else{if(s=e.b.length,e.b[s-1]+1==a){e.b[s-1]=c;return}b=Fe(Xn,wr,28,s+2,15,1),oa(e.b,0,b,0,s),e.b=b,e.b[s-1]>=a&&(e.c=!1,e.a=!1),e.b[s++]=a,e.b[s]=c,e.c||b2(e)}}function e7n(e,t,i){var s,a,c,b,g,m,_;for(_=t.d,e.a=new ka(_.c.length),e.c=new Fn,g=new ee(_);g.a=0?e.Lh(_,!1,!0):iy(e,i,!1),61));e:for(c=I.Kc();c.Ob();){for(a=f(c.Pb(),58),k=0;k1;)u_(a,a.i-1);return s}function E3t(e,t){var i,s,a,c,b,g,m;for(i=new qS,c=new ee(e.b);c.ae.d[b.p]&&(i+=a_e(e.b,c),$1(e.a,ot(c)));for(;!l$(e.a);)W_e(e.b,f(t3(e.a),17).a)}return i}function s7n(e){var t,i,s,a,c,b,g,m,_;for(e.a=new eye,_=0,a=0,s=new ee(e.i.b);s.ag.d&&(k=g.d+g.a+_));i.c.d=k,t.a.zc(i,t),m=h.Math.max(m,i.c.d+i.c.a)}return m}function As(){As=F,gV=new Tv("COMMENTS",0),af=new Tv("EXTERNAL_PORTS",1),GI=new Tv("HYPEREDGES",2),wV=new Tv("HYPERNODES",3),a4=new Tv("NON_FREE_PORTS",4),U2=new Tv("NORTH_SOUTH_PORTS",5),VI=new Tv(qAt,6),s4=new Tv("CENTER_LABELS",7),l4=new Tv("END_LABELS",8),mV=new Tv("PARTITIONS",9)}function a7n(e,t,i,s,a){return s<0?(s=p2(e,a,se(ie(_t,1),rt,2,6,[mre,yre,vre,_re,P3,Sre,Ere,kre,Rre,xre,Cre,Are]),t),s<0&&(s=p2(e,a,se(ie(_t,1),rt,2,6,["Jan","Feb","Mar","Apr",P3,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),t)),s<0?!1:(i.k=s,!0)):s>0?(i.k=s-1,!0):!1}function c7n(e,t,i,s,a){return s<0?(s=p2(e,a,se(ie(_t,1),rt,2,6,[mre,yre,vre,_re,P3,Sre,Ere,kre,Rre,xre,Cre,Are]),t),s<0&&(s=p2(e,a,se(ie(_t,1),rt,2,6,["Jan","Feb","Mar","Apr",P3,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),t)),s<0?!1:(i.k=s,!0)):s>0?(i.k=s-1,!0):!1}function u7n(e,t,i,s,a,c){var b,g,m,_;if(g=32,s<0){if(t[0]>=e.length||(g=Jo(e,t[0]),g!=43&&g!=45)||(++t[0],s=jH(e,t),s<0))return!1;g==45&&(s=-s)}return g==32&&t[0]-i==2&&a.b==2&&(m=new hF,_=m.q.getFullYear()-V1+V1-80,b=_%100,c.a=s==b,s+=(_/100|0)*100+(s=0?j1(e):X$(j1(gg(e)))),DI[t]=GF(Zf(e,t),0)?j1(Zf(e,t)):X$(j1(gg(Zf(e,t)))),e=os(e,5);for(;t=_&&(m=s);m&&(k=h.Math.max(k,m.a.o.a)),k>D&&(I=_,D=k)}return I}function g7n(e){var t,i,s,a,c,b,g;for(c=new sg(f(nr(new Hl),50)),g=to,i=new ee(e.d);i.av4t?Hi(m,e.b):s<=v4t&&s>_4t?Hi(m,e.d):s<=_4t&&s>S4t?Hi(m,e.c):s<=S4t&&Hi(m,e.a),c=A3t(e,m,c);return a}function T3t(e,t,i,s){var a,c,b,g,m,_;for(a=(s.c+s.a)/2,wu(t.j),hr(t.j,a),wu(i.e),hr(i.e,a),_=new Ylt,g=new ee(e.f);g.a1,g&&(s=new tt(a,i.b),hr(t.a,s)),c6(t.a,se(ie(wo,1),rt,8,0,[D,I]))}function qke(e,t,i){var s,a;for(t=48;i--)G5[i]=i-48<<24>>24;for(s=70;s>=65;s--)G5[s]=s-65+10<<24>>24;for(a=102;a>=97;a--)G5[a]=a-97+10<<24>>24;for(c=0;c<10;c++)Vz[c]=48+c&Ji;for(e=10;e<=15;e++)Vz[e]=65+e-10&Ji}function v7n(e,t){t.Ug("Process graph bounds",1),Xe(e,(ei(),pae),ZO(Wee(Wv(new Wt(null,new Vt(e.b,16)),new eYe)))),Xe(e,bae,ZO(Wee(Wv(new Wt(null,new Vt(e.b,16)),new tYe)))),Xe(e,ZIe,ZO(Bee(Wv(new Wt(null,new Vt(e.b,16)),new nYe)))),Xe(e,e5e,ZO(Bee(Wv(new Wt(null,new Vt(e.b,16)),new rYe)))),t.Vg()}function _7n(e){var t,i,s,a,c;a=f(V(e,(pt(),Dw)),21),c=f(V(e,LV),21),i=new tt(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a),t=new us(i),a.Hc((su(),q_))&&(s=f(V(e,u4),8),c.Hc((Gc(),T4))&&(s.a<=0&&(s.a=20),s.b<=0&&(s.b=20)),t.a=h.Math.max(i.a,s.a),t.b=h.Math.max(i.b,s.b)),wt(gt(V(e,jle)))||YMn(e,i,t)}function S7n(e,t){var i,s,a,c;for(c=Rl(t,(ft(),jn)).Kc();c.Ob();)s=f(c.Pb(),12),i=f(V(s,(nt(),Ic)),10),i&&id(qf(Kf(Xf(zf(new gf,0),.1),e.i[t.p].d),e.i[i.p].a));for(a=Rl(t,bn).Kc();a.Ob();)s=f(a.Pb(),12),i=f(V(s,(nt(),Ic)),10),i&&id(qf(Kf(Xf(zf(new gf,0),.1),e.i[i.p].d),e.i[t.p].a))}function Ine(e){var t,i,s,a,c,b;if(!e.c){if(b=new gZe,t=B5,c=t.a.zc(e,t),c==null){for(s=new Sn(ra(e));s.e!=s.i.gc();)i=f(Cn(s),89),a=tU(i),ve(a,90)&&Ii(b,Ine(f(a,29))),zn(b,i);t.a.Bc(e)!=null,t.a.gc()==0}wAn(b),Qv(b),e.c=new WS((f(Se(Ve((C1(),un).o),15),19),b.i),b.g),Bc(e).b&=-33}return e.c}function Jke(e){var t;if(e.c!=10)throw ne(new ar(dr((ir(),sG))));switch(t=e.a,t){case 110:t=10;break;case 114:t=13;break;case 116:t=9;break;case 92:case 124:case 46:case 94:case 45:case 63:case 42:case 43:case 123:case 125:case 40:case 41:case 91:case 93:break;default:throw ne(new ar(dr((ir(),sf))))}return t}function O3t(e){var t,i,s,a,c;if(e.l==0&&e.m==0&&e.h==0)return"0";if(e.h==fM&&e.m==0&&e.l==0)return"-9223372036854775808";if(e.h>>19)return"-"+O3t(UC(e));for(i=e,s="";!(i.l==0&&i.m==0&&i.h==0);){if(a=lee(pU),i=$3e(i,a,!0),t=""+rat(J1),!(i.l==0&&i.m==0&&i.h==0))for(c=9-t.length;c>0;c--)t="0"+t;s=t+s}return s}function E7n(e){var t,i,s,a,c,b,g;for(t=!1,i=0,a=new ee(e.d.b);a.a=e.a||!PEe(t,i))return-1;if(_C(f(s.Kb(t),20)))return 1;for(a=0,b=f(s.Kb(t),20).Kc();b.Ob();)if(c=f(b.Pb(),18),m=c.c.i==t?c.d.i:c.c.i,g=Yke(e,m,i,s),g==-1||(a=h.Math.max(a,g),a>e.c-1))return-1;return a+1}function N3t(e,t){var i,s,a,c,b,g;if(Ne(t)===Ne(e))return!0;if(!ve(t,15)||(s=f(t,15),g=e.gc(),s.gc()!=g))return!1;if(b=s.Kc(),e.Yi()){for(i=0;i0){if(e._j(),t!=null){for(c=0;c>24;case 97:case 98:case 99:case 100:case 101:case 102:return e-97+10<<24>>24;case 65:case 66:case 67:case 68:case 69:case 70:return e-65+10<<24>>24;default:throw ne(new Ih("Invalid hexadecimal"))}}function YH(){YH=F,M4e=new DS("SPIRAL",0),I4e=new DS("LINE_BY_LINE",1),P4e=new DS("MANHATTAN",2),$4e=new DS("JITTER",3),yse=new DS("QUADRANTS_LINE_BY_LINE",4),N4e=new DS("QUADRANTS_MANHATTAN",5),O4e=new DS("QUADRANTS_JITTER",6),T4e=new DS("COMBINE_LINE_BY_LINE_MANHATTAN",7),A4e=new DS("COMBINE_JITTER_MANHATTAN",8)}function D3t(e,t,i,s){var a,c,b,g,m,_;for(m=nne(e,i),_=nne(t,i),a=!1;m&&_&&(s||vTn(m,_,i));)b=nne(m,i),g=nne(_,i),J7(t),J7(e),c=m.c,rre(m,!1),rre(_,!1),i?(r_(t,_.p,c),t.p=_.p,r_(e,m.p+1,c),e.p=m.p):(r_(e,m.p,c),e.p=m.p,r_(t,_.p+1,c),t.p=_.p),Oo(m,null),Oo(_,null),m=b,_=g,a=!0;return a}function L3t(e){switch(e.g){case 0:return new Jtt;case 1:return new qtt;case 3:return new fct;case 4:return new UXe;case 5:return new Fdt;case 6:return new Xtt;case 2:return new Ktt;case 7:return new Wtt;case 8:return new Utt;default:throw ne(new hn("No implementation is available for the layerer "+(e.f!=null?e.f:""+e.g)))}}function T7n(e,t,i,s){var a,c,b,g,m;for(a=!1,c=!1,g=new ee(s.j);g.a=t.length)throw ne(new Hs("Greedy SwitchDecider: Free layer not in graph."));this.c=t[e],this.e=new y7(s),Dee(this.e,this.c,(ft(),wn)),this.i=new y7(s),Dee(this.i,this.c,_n),this.f=new npt(this.c),this.a=!c&&a.i&&!a.s&&this.c[0].k==(gn(),Ui),this.a&&UIn(this,e,t.length)}function F3t(e,t){var i,s,a,c,b,g;c=!e.B.Hc((Gc(),G9)),b=e.B.Hc(kce),e.a=new R_t(b,c,e.c),e.n&&Tve(e.a.n,e.n),AY(e.g,(Pd(),Aa),e.a),t||(s=new A6(1,c,e.c),s.n.a=e.k,n3(e.p,(ft(),bn),s),a=new A6(1,c,e.c),a.n.d=e.k,n3(e.p,jn,a),g=new A6(0,c,e.c),g.n.c=e.k,n3(e.p,wn,g),i=new A6(0,c,e.c),i.n.b=e.k,n3(e.p,_n,i))}function I7n(e){var t,i,s;switch(t=f(V(e.d,(pt(),Ob)),223),t.g){case 2:i=yjn(e);break;case 3:i=(s=new st,Mi(Br(nl(El(El(new Wt(null,new Vt(e.d.b,16)),new Zqe),new eXe),new tXe),new Bqe),new _it(s)),s);break;default:throw ne(new Us("Compaction not supported for "+t+" edges."))}W9n(e,i),Vo(new H0(e.g),new yit(e))}function P7n(e,t){var i,s,a,c,b,g,m;if(t.Ug("Process directions",1),i=f(V(e,(Il(),My)),88),i!=(Xi(),gh))for(a=Hn(e.b,0);a.b!=a.d.c;){switch(s=f(Bn(a),40),g=f(V(s,(ei(),v9)),17).a,m=f(V(s,_9),17).a,i.g){case 4:m*=-1;break;case 1:c=g,g=m,m=c;break;case 2:b=g,g=-m,m=b}Xe(s,v9,ot(g)),Xe(s,_9,ot(m))}t.Vg()}function O7n(e,t){var i;return i=new bt,t&&ol(i,f(En(e.a,z9),96)),ve(t,422)&&ol(i,f(En(e.a,K9),96)),ve(t,366)?(ol(i,f(En(e.a,Fs),96)),i):(ve(t,84)&&ol(i,f(En(e.a,Dn),96)),ve(t,207)?(ol(i,f(En(e.a,$r),96)),i):ve(t,193)?(ol(i,f(En(e.a,Mc),96)),i):(ve(t,326)&&ol(i,f(En(e.a,Fi),96)),i))}function N7n(e){var t,i,s,a,c,b,g,m;for(m=new y0t,g=new ee(e.a);g.a0&&t=0)return!1;if(t.p=i.b,lt(i.e,t),a==(gn(),vo)||a==wa){for(b=new ee(t.j);b.ae.d[g.p]&&(i+=a_e(e.b,c),$1(e.a,ot(c)))):++b;for(i+=e.b.d*b;!l$(e.a);)W_e(e.b,f(t3(e.a),17).a)}return i}function X3t(e){var t,i,s,a,c,b;return c=0,t=_f(e),t.kk()&&(c|=4),e.Bb&yc&&(c|=2),ve(e,102)?(i=f(e,19),a=Es(i),i.Bb&Vl&&(c|=32),a&&(Pn(Hv(a)),c|=8,b=a.t,(b>1||b==-1)&&(c|=16),a.Bb&Vl&&(c|=64)),i.Bb&ys&&(c|=E_),c|=sd):ve(t,469)?c|=512:(s=t.kk(),s&&s.i&1&&(c|=256)),e.Bb&512&&(c|=128),c}function z7n(e,t){var i;return e.f==Lce?(i=Lm(Vs((gc(),qo),t)),e.e?i==4&&t!=(C3(),pR)&&t!=(C3(),hR)&&t!=(C3(),jce)&&t!=(C3(),Fce):i==2):e.d&&(e.d.Hc(t)||e.d.Hc(a3(Vs((gc(),qo),t)))||e.d.Hc(_2((gc(),qo),e.b,t)))?!0:e.f&&jke((gc(),e.f),$7(Vs(qo,t)))?(i=Lm(Vs(qo,t)),e.e?i==4:i==2):!1}function K7n(e){var t,i,s,a,c,b,g,m,_,k,I,D,W;for(D=-1,W=0,_=e,k=0,I=_.length;k0&&++W;++D}return W}function q7n(e,t,i,s){var a,c,b,g,m,_,k,I;return b=f(Qe(i,(Er(),lR)),8),m=b.a,k=b.b+e,a=h.Math.atan2(k,m),a<0&&(a+=kw),a+=t,a>kw&&(a-=kw),g=f(Qe(s,lR),8),_=g.a,I=g.b+e,c=h.Math.atan2(I,_),c<0&&(c+=kw),c+=t,c>kw&&(c-=kw),Kd(),td(1e-10),h.Math.abs(a-c)<=1e-10||a==c||isNaN(a)&&isNaN(c)?0:ac?1:km(isNaN(a),isNaN(c))}function Nne(e){var t,i,s,a,c,b,g;for(g=new Fn,s=new ee(e.a.b);s.a=e.o)throw ne(new P0e);g=t>>5,b=t&31,c=Zf(1,tr(Zf(b,1))),a?e.n[i][g]=Ad(e.n[i][g],c):e.n[i][g]=fo(e.n[i][g],Tye(c)),c=Zf(c,1),s?e.n[i][g]=Ad(e.n[i][g],c):e.n[i][g]=fo(e.n[i][g],Tye(c))}catch(m){throw m=mi(m),ve(m,333)?ne(new Hs(tie+e.o+"*"+e.p+nie+t+ds+i+rie)):ne(m)}}function Y7n(e,t,i,s){var a,c,b,g,m,_,k,I,D;for(D=new sg(new Git(e)),g=se(ie(Op,1),$g,10,0,[t,i]),m=0,_=g.length;m<_;++m)for(b=g[m],I=_6(b,s).Kc();I.Ob();)for(k=f(I.Pb(),12),c=new Zd(k.b);_l(c.a)||_l(c.b);)a=f(_l(c.a)?Z(c.a):Z(c.b),18),ms(a)||(D.a.zc(k,(cn(),Y1))==null,lbt(a)&&x7(D,k==a.c?a.d:a.c));return nr(D),new Rc(D)}function n3e(e,t,i,s){var a,c,b;t&&(c=Ae(je(V(t,(ei(),jg))))+s,b=i+Ae(je(V(t,ZV)))/2,Xe(t,v9,ot(tr(Gl(h.Math.round(c))))),Xe(t,_9,ot(tr(Gl(h.Math.round(b))))),t.d.b==0||n3e(e,f(YF((a=Hn(new sb(t).a.d,0),new OS(a))),40),i+Ae(je(V(t,ZV)))+e.b,s+Ae(je(V(t,v4)))),V(t,wae)!=null&&n3e(e,f(V(t,wae),40),i,s))}function Q7n(e,t){var i,s,a,c,b,g,m,_,k,I,D;for(m=Go(t.a),a=Ae(je(V(m,(pt(),jw))))*2,k=Ae(je(V(m,Y2))),_=h.Math.max(a,k),c=Fe(Ro,js,28,t.f-t.c+1,15,1),s=-_,i=0,g=t.b.Kc();g.Ob();)b=f(g.Pb(),10),s+=e.a[b.c.p]+_,c[i++]=s;for(s+=e.a[t.a.c.p]+_,c[i++]=s,D=new ee(t.e);D.a0&&(s=(!e.n&&(e.n=new qe(Fs,e,1,7)),f(Se(e.n,0),135)).a,!s||br(br((t.a+=' "',t),s),'"'))),br(mm(br(mm(br(mm(br(mm((t.a+=" (",t),e.i),","),e.j)," | "),e.g),","),e.f),")"),t.a)}function J3t(e){var t,i,s;return e.Db&64?hne(e):(t=new gu(oAe),i=e.k,i?br(br((t.a+=' "',t),i),'"'):(!e.n&&(e.n=new qe(Fs,e,1,7)),e.n.i>0&&(s=(!e.n&&(e.n=new qe(Fs,e,1,7)),f(Se(e.n,0),135)).a,!s||br(br((t.a+=' "',t),s),'"'))),br(mm(br(mm(br(mm(br(mm((t.a+=" (",t),e.i),","),e.j)," | "),e.g),","),e.f),")"),t.a)}function eNn(e,t){var i,s,a,c,b;for(t==(w6(),rae)&&FN(f(Hr(e.a,(i_(),t9)),15)),a=f(Hr(e.a,(i_(),t9)),15).Kc();a.Ob();)switch(s=f(a.Pb(),105),i=f(yt(s.j,0),113).d.j,c=new Rc(s.j),Hi(c,new aXe),t.g){case 2:lne(e,c,i,(qm(),e0),1);break;case 1:case 0:b=BPn(c),lne(e,new dg(c,0,b),i,(qm(),e0),0),lne(e,new dg(c,b,c.c.length),i,e0,1)}}function Dne(e,t){var i,s,a,c,b,g,m;if(t==null||t.length==0)return null;if(a=f(ua(e.a,t),143),!a){for(s=(g=new ob(e.b).a.vc().Kc(),new Rv(g));s.a.Ob();)if(i=(c=f(s.a.Pb(),44),f(c.md(),143)),b=i.c,m=t.length,Ht(b.substr(b.length-m,m),t)&&(t.length==b.length||Jo(b,b.length-t.length-1)==46)){if(a)return null;a=i}a&&Gs(e.a,t,a)}return a}function tNn(e,t){var i,s,a,c;return i=new ws,s=f(fl(nl(new Wt(null,new Vt(e.f,16)),i),zv(new q,new ke,new $n,new Gn,se(ie(qs,1),Je,108,0,[(Tc(),k_),pl]))),21),a=s.gc(),s=f(fl(nl(new Wt(null,new Vt(t.f,16)),i),zv(new q,new ke,new $n,new Gn,se(ie(qs,1),Je,108,0,[k_,pl]))),21),c=s.gc(),aa.p?(so(c,jn),c.d&&(g=c.o.b,t=c.a.b,c.a.b=g-t)):c.j==jn&&a.p>e.p&&(so(c,bn),c.d&&(g=c.o.b,t=c.a.b,c.a.b=-(g-t)));break}return a}function qN(e,t,i,s,a){var c,b,g,m,_,k,I;if(!(ve(t,207)||ve(t,366)||ve(t,193)))throw ne(new hn("Method only works for ElkNode-, ElkLabel and ElkPort-objects."));return b=e.a/2,m=t.i+s-b,k=t.j+a-b,_=m+t.g+e.a,I=k+t.f+e.a,c=new cc,hr(c,new tt(m,k)),hr(c,new tt(m,I)),hr(c,new tt(_,I)),hr(c,new tt(_,k)),g=new kne(c),ol(g,t),i&&xr(e.b,t,g),g}function bA(e,t,i){var s,a,c,b,g,m,_,k,I,D;for(c=new tt(t,i),k=new ee(e.a);k.a1,g&&(s=new tt(a,i.b),hr(t.a,s)),c6(t.a,se(ie(wo,1),rt,8,0,[D,I]))}function Sf(){Sf=F,GV=new $v(Jh,0),h9=new $v("NIKOLOV",1),p9=new $v("NIKOLOV_PIXEL",2),wIe=new $v("NIKOLOV_IMPROVED",3),mIe=new $v("NIKOLOV_IMPROVED_PIXEL",4),gIe=new $v("DUMMYNODE_PERCENTAGE",5),yIe=new $v("NODECOUNT_PERCENTAGE",6),VV=new $v("NO_BOUNDARY",7),Oy=new $v("MODEL_ORDER_LEFT_TO_RIGHT",8),W_=new $v("MODEL_ORDER_RIGHT_TO_LEFT",9)}function fNn(e){var t,i,s,a,c;for(s=e.length,t=new a$,c=0;c=40,b&&dMn(e),v9n(e),UOn(e),i=b_t(e),s=0;i&&s0&&hr(e.f,c)):(e.c[b]-=_+1,e.c[b]<=0&&e.a[b]>0&&hr(e.e,c))))}function cRt(e,t,i,s){var a,c,b,g,m,_,k;for(m=new tt(i,s),uo(m,f(V(t,(ei(),y4)),8)),k=Hn(t.b,0);k.b!=k.d.c;)_=f(Bn(k),40),Mr(_.e,m),hr(e.b,_);for(g=f(fl(Bve(new Wt(null,new Vt(t.a,16))),Cc(new K,new B,new Qt,se(ie(qs,1),Je,108,0,[(Tc(),pl)]))),15).Kc();g.Ob();){for(b=f(g.Pb(),65),c=Hn(b.a,0);c.b!=c.d.c;)a=f(Bn(c),8),a.a+=m.a,a.b+=m.b;hr(e.a,b)}}function d3e(e,t){var i,s,a,c;if(0<(ve(e,16)?f(e,16).gc():hb(e.Kc()))){if(a=t,1=0&&mc*2?(k=new CW(I),_=dc(b)/ru(b),m=lre(k,t,new Pk,i,s,a,_),Mr(xd(k.e),m),I.c.length=0,c=0,sn(I.c,k),sn(I.c,b),c=dc(k)*ru(k)+dc(b)*ru(b)):(sn(I.c,b),c+=dc(b)*ru(b));return I}function fRt(e,t){var i,s,a,c,b,g;if(g=f(V(t,(pt(),Oi)),101),g==(Co(),jp)||g==ya)for(a=new tt(t.f.a+t.d.b+t.d.c,t.f.b+t.d.d+t.d.a).b,b=new ee(e.a);b.ai?t:i;_<=I;++_)_==i?g=s++:(c=a[_],k=U.am(c.Lk()),_==t&&(m=_==I&&!k?s-1:s),k&&++s);return D=f(R6(e,t,i),76),g!=m&&Ux(e,new z7(e.e,7,b,ot(g),W.md(),m)),D}}else return f(_ne(e,t,i),76);return f(R6(e,t,i),76)}function $Nn(e,t){var i,s,a,c,b,g,m;for(t.Ug("Port order processing",1),m=f(V(e,(pt(),X6e)),430),s=new ee(e.b);s.a=0&&(g=RTn(e,b),!(g&&(_<22?m.l|=1<<_:_<44?m.m|=1<<_-22:m.h|=1<<_-44,e.l==0&&e.m==0&&e.h==0)));)k=b.m,I=b.h,D=b.l,b.h=I>>>1,b.m=k>>>1|(I&1)<<21,b.l=D>>>1|(k&1)<<21,--_;return i&&Qee(m),c&&(s?(J1=UC(e),a&&(J1=Jyt(J1,(xC(),VAe)))):J1=Oa(e.l,e.m,e.h)),m}function ONn(e,t){var i,s,a,c,b,g,m,_,k,I;for(_=e.e[t.c.p][t.p]+1,m=t.c.a.c.length+1,g=new ee(e.a);g.a0&&(pn(0,e.length),e.charCodeAt(0)==45||(pn(0,e.length),e.charCodeAt(0)==43))?1:0,s=b;si)throw ne(new Ih(uy+e+'"'));return g}function NNn(e){var t,i,s,a,c,b,g;for(b=new li,c=new ee(e.a);c.a1)&&t==1&&f(e.a[e.b],10).k==(gn(),ea)?T3(f(e.a[e.b],10),(ku(),Dp)):s&&(!i||(e.c-e.b&e.a.length-1)>1)&&t==1&&f(e.a[e.c-1&e.a.length-1],10).k==(gn(),ea)?T3(f(e.a[e.c-1&e.a.length-1],10),(ku(),a0)):(e.c-e.b&e.a.length-1)==2?(T3(f(g6(e),10),(ku(),Dp)),T3(f(g6(e),10),a0)):uPn(e,a),s_e(e)}function LNn(e,t,i){var s,a,c,b,g;for(c=0,a=new Sn((!e.a&&(e.a=new qe($r,e,10,11)),e.a));a.e!=a.i.gc();)s=f(Cn(a),27),b="",(!s.n&&(s.n=new qe(Fs,s,1,7)),s.n).i==0||(b=f(Se((!s.n&&(s.n=new qe(Fs,s,1,7)),s.n),0),135).a),g=new Zee(c++,t,b),ol(g,s),Xe(g,(ei(),h5),s),g.e.b=s.j+s.f/2,g.f.a=h.Math.max(s.g,1),g.e.a=s.i+s.g/2,g.f.b=h.Math.max(s.f,1),hr(t.b,g),Ca(i.f,s,g)}function jNn(e){var t,i,s,a,c;s=f(V(e,(nt(),Ur)),27),c=f(Qe(s,(pt(),Dw)),181).Hc((su(),Vw)),e.e||(a=f(V(e,ma),21),t=new tt(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a),a.Hc((As(),af))?(zr(s,Oi,(Co(),ya)),ly(s,t.a,t.b,!1,!0)):wt(gt(Qe(s,jle)))||ly(s,t.a,t.b,!0,!0)),c?zr(s,Dw,Mt(Vw)):zr(s,Dw,(i=f(kd(N5),9),new Uu(i,f(Yf(i,i.length),9),0)))}function h3e(e,t,i){var s,a,c,b;if(t[0]>=e.length)return i.o=0,!0;switch(Jo(e,t[0])){case 43:a=1;break;case 45:a=-1;break;default:return i.o=0,!0}if(++t[0],c=t[0],b=jH(e,t),b==0&&t[0]==c)return!1;if(t[0]g&&(g=a,k.c.length=0),a==g&<(k,new io(i.c.i,i)));qt(),Hi(k,e.c),$m(e.b,m.p,k)}}function HNn(e,t){var i,s,a,c,b,g,m,_,k;for(b=new ee(t.b);b.ag&&(g=a,k.c.length=0),a==g&<(k,new io(i.d.i,i)));qt(),Hi(k,e.c),$m(e.f,m.p,k)}}function UNn(e,t){var i,s,a,c,b,g,m,_;if(_=gt(V(t,(Il(),ANt))),_==null||(mn(_),_)){for(b8n(e,t),a=new st,m=Hn(t.b,0);m.b!=m.d.c;)b=f(Bn(m),40),i=eke(e,b,null),i&&(ol(i,t),sn(a.c,i));if(e.a=null,e.b=null,a.c.length>1)for(s=new ee(a);s.a=0&&g!=i&&(c=new yo(e,1,g,b,null),s?s.nj(c):s=c),i>=0&&(c=new yo(e,1,i,g==i?b:null,t),s?s.nj(c):s=c)),s}function pRt(e){var t,i,s;if(e.b==null){if(s=new ig,e.i!=null&&(Ms(s,e.i),s.a+=":"),e.f&256){for(e.f&256&&e.a!=null&&(a_n(e.i)||(s.a+="//"),Ms(s,e.a)),e.d!=null&&(s.a+="/",Ms(s,e.d)),e.f&16&&(s.a+="/"),t=0,i=e.j.length;tD?!1:(I=(m=Q6(s,D,!1),m.a),k+g+I<=t.b&&(K7(i,c-i.s),i.c=!0,K7(s,c-i.s),TN(s,i.s,i.t+i.d+g),s.k=!0,_Se(i.q,s),W=!0,a&&(PW(t,s),s.j=t,e.c.length>b&&(PN((Xt(b,e.c.length),f(e.c[b],186)),s),(Xt(b,e.c.length),f(e.c[b],186)).a.c.length==0&&pg(e,b)))),W)}function JNn(e,t){var i,s,a,c,b,g;if(t.Ug("Partition midprocessing",1),a=new Bm,Mi(Br(new Wt(null,new Vt(e.a,16)),new FKe),new ait(a)),a.d!=0){for(g=f(fl(Uve((c=a.i,new Wt(null,(c||(a.i=new XS(a,a.c))).Nc()))),Cc(new K,new B,new Qt,se(ie(qs,1),Je,108,0,[(Tc(),pl)]))),15),s=g.Kc(),i=f(s.Pb(),17);s.Ob();)b=f(s.Pb(),17),UPn(f(Hr(a,i),21),f(Hr(a,b),21)),i=b;t.Vg()}}function wRt(e,t,i){var s,a,c,b,g,m,_,k;if(t.p==0){for(t.p=1,b=i,b||(a=new st,c=(s=f(kd(vs),9),new Uu(s,f(Yf(s,s.length),9),0)),b=new io(a,c)),f(b.a,15).Fc(t),t.k==(gn(),Ui)&&f(b.b,21).Fc(f(V(t,(nt(),Dl)),64)),m=new ee(t.j);m.a0){if(a=f(e.Ab.g,2033),t==null){for(c=0;ci.s&&gb)return ft(),_n;break;case 4:case 3:if(k<0)return ft(),bn;if(k+i>c)return ft(),jn}return m=(_+g/2)/b,s=(k+i/2)/c,m+s<=1&&m-s<=0?(ft(),wn):m+s>=1&&m-s>=0?(ft(),_n):s<.5?(ft(),bn):(ft(),jn)}function tMn(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z;for(i=!1,k=Ae(je(V(t,(pt(),Py)))),U=G1*k,a=new ee(t.b);a.am+U&&(z=I.g+D.g,D.a=(D.g*D.a+I.g*I.a)/z,D.g=z,I.f=D,i=!0)),c=g,I=D;return i}function _Rt(e,t,i,s,a,c,b){var g,m,_,k,I,D;for(D=new Vk,_=t.Kc();_.Ob();)for(g=f(_.Pb(),853),I=new ee(g.Rf());I.a0?g.a?(_=g.b.Mf().b,a>_&&(e.v||g.c.d.c.length==1?(b=(a-_)/2,g.d.d=b,g.d.a=b):(i=f(yt(g.c.d,0),187).Mf().b,s=(i-_)/2,g.d.d=h.Math.max(0,s),g.d.a=a-s-_))):g.d.a=e.t+a:V$(e.u)&&(c=DEe(g.b),c.d<0&&(g.d.d=-c.d),c.d+c.a>g.b.Mf().b&&(g.d.a=c.d+c.a-g.b.Mf().b))}function od(){od=F,K3=new Po((Er(),M9),ot(1)),jG=new Po(Uw,80),e5t=new Po(kPe,5),GIt=new Po(sE,PA),QIt=new Po(yce,ot(1)),ZIt=new Po(vce,(cn(),!0)),Q4e=new Rm(50),JIt=new Po(Bg,Q4e),X4e=O9,Z4e=x5,VIt=new Po(cce,!1),Y4e=N9,qIt=V_,XIt=l0,KIt=Hw,zIt=uE,YIt=z_,J4e=(zEe(),LIt),Ise=WIt,LG=DIt,$se=jIt,eTe=BIt,r5t=k4,i5t=Sz,n5t=D9,t5t=_z,tTe=(m3(),X_),new Po(cR,tTe)}function iMn(e,t){var i;switch(tN(e)){case 6:return Eo(t);case 7:return Pv(t);case 8:return Iv(t);case 3:return Array.isArray(t)&&(i=tN(t),!(i>=14&&i<=16));case 11:return t!=null&&typeof t===fre;case 12:return t!=null&&(typeof t===iM||typeof t==fre);case 0:return Dte(t,e.__elementTypeId$);case 2:return gZ(t)&&t.Tm!==ae;case 1:return gZ(t)&&t.Tm!==ae||Dte(t,e.__elementTypeId$);default:return!0}}function oMn(e){var t,i,s,a;s=e.o,Mv(),e.A.dc()||Lr(e.A,j4e)?a=s.a:(e.D?a=h.Math.max(s.a,F6(e.f)):a=F6(e.f),e.A.Hc((su(),H9))&&!e.B.Hc((Gc(),M5))&&(a=h.Math.max(a,F6(f(Ds(e.p,(ft(),bn)),252))),a=h.Math.max(a,F6(f(Ds(e.p,jn),252)))),t=Dyt(e),t&&(a=h.Math.max(a,t.a))),wt(gt(e.e.Tf().of((Er(),V_))))?s.a=h.Math.max(s.a,a):s.a=a,i=e.f.i,i.c=0,i.b=a,Une(e.f)}function SRt(e,t){var i,s,a,c;return s=h.Math.min(h.Math.abs(e.c-(t.c+t.b)),h.Math.abs(e.c+e.b-t.c)),c=h.Math.min(h.Math.abs(e.d-(t.d+t.a)),h.Math.abs(e.d+e.a-t.d)),i=h.Math.abs(e.c+e.b/2-(t.c+t.b/2)),i>e.b/2+t.b/2||(a=h.Math.abs(e.d+e.a/2-(t.d+t.a/2)),a>e.a/2+t.a/2)?1:i==0&&a==0?0:i==0?c/a+1:a==0?s/i+1:h.Math.min(s/i,c/a)+1}function sMn(e,t){var i,s,a,c,b,g,m;for(c=0,g=0,m=0,a=new ee(e.f.e);a.a0&&e.d!=(l6(),Nse)&&(g+=b*(s.d.a+e.a[t.a][s.a]*(t.d.a-s.d.a)/i)),i>0&&e.d!=(l6(),Pse)&&(m+=b*(s.d.b+e.a[t.a][s.a]*(t.d.b-s.d.b)/i)));switch(e.d.g){case 1:return new tt(g/c,t.d.b);case 2:return new tt(t.d.a,m/c);default:return new tt(g/c,m/c)}}function ERt(e){var t,i,s,a,c,b;for(i=(!e.a&&(e.a=new zi(Nu,e,5)),e.a).i+2,b=new ka(i),lt(b,new tt(e.j,e.k)),Mi(new Wt(null,(!e.a&&(e.a=new zi(Nu,e,5)),new Vt(e.a,16))),new Not(b)),lt(b,new tt(e.b,e.c)),t=1;t0&&(hN(m,!1,(Xi(),Js)),hN(m,!0,al)),Ma(t.g,new Lct(e,i)),xr(e.g,t,i)}function xRt(){xRt=F;var e;for(ZAe=se(ie(Xn,1),wr,28,15,[-1,-1,30,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5]),sse=Fe(Xn,wr,28,37,15,1),p6t=se(ie(Xn,1),wr,28,15,[-1,-1,63,40,32,28,25,23,21,20,19,19,18,18,17,17,16,16,16,15,15,15,15,14,14,14,14,14,14,13,13,13,13,13,13,13,13]),e4e=Fe(m0,jre,28,37,14,1),e=2;e<=36;e++)sse[e]=oo(h.Math.pow(e,ZAe[e])),e4e[e]=NN(aM,sse[e])}function lMn(e){var t;if((!e.a&&(e.a=new qe(ai,e,6,6)),e.a).i!=1)throw ne(new hn(eTt+(!e.a&&(e.a=new qe(ai,e,6,6)),e.a).i));return t=new cc,fN(f(Se((!e.b&&(e.b=new en(Dn,e,4,7)),e.b),0),84))&&Do(t,pCt(e,fN(f(Se((!e.b&&(e.b=new en(Dn,e,4,7)),e.b),0),84)),!1)),fN(f(Se((!e.c&&(e.c=new en(Dn,e,5,8)),e.c),0),84))&&Do(t,pCt(e,fN(f(Se((!e.c&&(e.c=new en(Dn,e,5,8)),e.c),0),84)),!0)),t}function CRt(e,t){var i,s,a,c,b;for(t.d?a=e.a.c==(jh(),Ny)?go(t.b):Wi(t.b):a=e.a.c==(jh(),Lg)?go(t.b):Wi(t.b),c=!1,s=new kn(xn(a.a.Kc(),new O));Un(s);)if(i=f(On(s),18),b=wt(e.a.f[e.a.g[t.b.p].p]),!(!b&&!ms(i)&&i.c.i.c==i.d.i.c)&&!(wt(e.a.n[e.a.g[t.b.p].p])||wt(e.a.n[e.a.g[t.b.p].p]))&&(c=!0,Rd(e.b,e.a.g[lTn(i,t.b).p])))return t.c=!0,t.a=i,t;return t.c=c,t.a=null,t}function b3e(e,t,i){var s,a,c,b,g,m,_;if(s=i.gc(),s==0)return!1;if(e.Pj())if(m=e.Qj(),k2e(e,t,i),b=s==1?e.Ij(3,null,i.Kc().Pb(),t,m):e.Ij(5,null,i,t,m),e.Mj()){for(g=s<100?null:new y1(s),c=t+s,a=t;a0){for(b=0;b>16==-15&&e.Cb.Yh()&&vee(new bee(e.Cb,9,13,i,e.c,Rg(Wc(f(e.Cb,62)),e))):ve(e.Cb,90)&&e.Db>>16==-23&&e.Cb.Yh()&&(t=e.c,ve(t,90)||(t=(Kt(),Mf)),ve(i,90)||(i=(Kt(),Mf)),vee(new bee(e.Cb,9,10,i,t,Rg(ra(f(e.Cb,29)),e)))))),e.c}function uMn(e,t,i){var s,a,c,b,g,m,_,k,I;for(i.Ug("Hyperedge merging",1),N8n(e,t),m=new No(t.b,0);m.b0,g=oH(t,c),Ame(i?g.b:g.g,t),s2(g).c.length==1&&Ai(s,g,s.c.b,s.c),a=new io(c,t),$1(e.o,a),Ja(e.e.a,c))}function NRt(e,t){var i,s,a,c,b,g,m;return s=h.Math.abs(OB(e.b).a-OB(t.b).a),g=h.Math.abs(OB(e.b).b-OB(t.b).b),a=0,m=0,i=1,b=1,s>e.b.b/2+t.b.b/2&&(a=h.Math.min(h.Math.abs(e.b.c-(t.b.c+t.b.b)),h.Math.abs(e.b.c+e.b.b-t.b.c)),i=1-a/s),g>e.b.a/2+t.b.a/2&&(m=h.Math.min(h.Math.abs(e.b.d-(t.b.d+t.b.a)),h.Math.abs(e.b.d+e.b.a-t.b.d)),b=1-m/g),c=h.Math.min(i,b),(1-c)*h.Math.sqrt(s*s+g*g)}function hMn(e){var t,i,s,a;for(sre(e,e.e,e.f,(Wm(),o0),!0,e.c,e.i),sre(e,e.e,e.f,o0,!1,e.c,e.i),sre(e,e.e,e.f,eE,!0,e.c,e.i),sre(e,e.e,e.f,eE,!1,e.c,e.i),cMn(e,e.c,e.e,e.f,e.i),s=new No(e.i,0);s.b=65;i--)_h[i]=i-65<<24>>24;for(s=122;s>=97;s--)_h[s]=s-97+26<<24>>24;for(a=57;a>=48;a--)_h[a]=a-48+52<<24>>24;for(_h[43]=62,_h[47]=63,c=0;c<=25;c++)Kg[c]=65+c&Ji;for(b=26,m=0;b<=51;++b,m++)Kg[b]=97+m&Ji;for(e=52,g=0;e<=61;++e,g++)Kg[e]=48+g&Ji;Kg[62]=43,Kg[63]=47}function MRt(e,t){var i,s,a,c,b,g;return a=gSe(e),g=gSe(t),a==g?e.e==t.e&&e.a<54&&t.a<54?e.ft.f?1:0:(s=e.e-t.e,i=(e.d>0?e.d:h.Math.floor((e.a-1)*HCt)+1)-(t.d>0?t.d:h.Math.floor((t.a-1)*HCt)+1),i>s+1?a:i0&&(b=e2(b,zRt(s))),V_t(c,b))):a_&&(D=0,W+=m+t,m=0),bA(b,D,W),i=h.Math.max(i,D+k.a),m=h.Math.max(m,k.b),D+=k.a+t;return new tt(i+t,W+m+t)}function y3e(e,t){var i,s,a,c,b,g,m;if(!Xd(e))throw ne(new Us(Z4t));if(s=Xd(e),c=s.g,a=s.f,c<=0&&a<=0)return ft(),Cl;switch(g=e.i,m=e.j,t.g){case 2:case 1:if(g<0)return ft(),wn;if(g+e.g>c)return ft(),_n;break;case 4:case 3:if(m<0)return ft(),bn;if(m+e.f>a)return ft(),jn}return b=(g+e.g/2)/c,i=(m+e.f/2)/a,b+i<=1&&b-i<=0?(ft(),wn):b+i>=1&&b-i>=0?(ft(),_n):i<.5?(ft(),bn):(ft(),jn)}function gMn(e,t,i,s,a){var c,b;if(c=is(fo(t[0],Ts),fo(s[0],Ts)),e[0]=tr(c),c=Im(c,32),i>=a){for(b=1;b0&&(a.b[b++]=0,a.b[b++]=c.b[0]-1),t=1;t0&&(sY(m,m.d-a.d),a.c==(Td(),i0)&&epn(m,m.a-a.d),m.d<=0&&m.i>0&&Ai(t,m,t.c.b,t.c)));for(c=new ee(e.f);c.a0&&(Vj(g,g.i-a.d),a.c==(Td(),i0)&&tpn(g,g.b-a.d),g.i<=0&&g.d>0&&Ai(i,g,i.c.b,i.c)))}function yMn(e,t,i,s,a){var c,b,g,m,_,k,I,D,W;for(qt(),Hi(e,new zQe),b=S7(e),W=new st,D=new st,g=null,m=0;b.b!=0;)c=f(b.b==0?null:(In(b.b!=0),Xu(b,b.a.a)),163),!g||dc(g)*ru(g)/21&&(m>dc(g)*ru(g)/2||b.b==0)&&(I=new CW(D),k=dc(g)/ru(g),_=lre(I,t,new Pk,i,s,a,k),Mr(xd(I.e),_),g=I,sn(W.c,I),m=0,D.c.length=0));return eo(W,D),W}function oa(e,t,i,s,a){lb();var c,b,g,m,_,k,I;if(cve(e,"src"),cve(i,"dest"),I=ou(e),m=ou(i),Aye((I.i&4)!=0,"srcType is not an array"),Aye((m.i&4)!=0,"destType is not an array"),k=I.c,b=m.c,Aye(k.i&1?k==b:(b.i&1)==0,"Array types don't match"),oxn(e,t,i,s,a),!(k.i&1)&&I!=m)if(_=ow(e),c=ow(i),Ne(e)===Ne(i)&&ts;)Ci(c,g,_[--t]);else for(g=s+a;s0),s.a.Xb(s.c=--s.b),I>D+m&&iu(s);for(b=new ee(W);b.a0),s.a.Xb(s.c=--s.b)}}function _Mn(){Or();var e,t,i,s,a,c;if(Wce)return Wce;for(e=new yu(4),h_(e,U1(Koe,!0)),tI(e,U1("M",!0)),tI(e,U1("C",!0)),c=new yu(4),s=0;s<11;s++)da(c,s,s);return t=new yu(4),h_(t,U1("M",!0)),da(t,4448,4607),da(t,65438,65439),a=new O$(2),ww(a,e),ww(a,z5),i=new O$(2),i.Jm(EB(c,U1("L",!0))),i.Jm(t),i=new Gv(3,i),i=new ave(a,i),Wce=i,Wce}function d_(e,t){var i,s,a,c,b,g,m,_;for(i=new RegExp(t,"g"),m=Fe(_t,rt,2,0,6,1),s=0,_=e,c=null;;)if(g=i.exec(_),g==null||_==""){m[s]=_;break}else b=g.index,m[s]=(Mo(0,b,_.length),_.substr(0,b)),_=Vu(_,b+g[0].length,_.length),i.lastIndex=0,c==_&&(m[s]=(Mo(0,1,_.length),_.substr(0,1)),_=(pn(1,_.length+1),_.substr(1))),c=_,++s;if(e.length>0){for(a=m.length;a>0&&m[a-1]=="";)--a;a0&&(I-=s[0]+e.c,s[0]+=e.c),s[2]>0&&(I-=s[2]+e.c),s[1]=h.Math.max(s[1],I),CB(e.a[1],i.c+t.b+s[0]-(s[1]-I)/2,s[1]);for(c=e.a,g=0,_=c.length;g<_;++g)a=c[g],ve(a,336)&&f(a,336).lf()}function EMn(e){var t,i,s,a,c,b,g,m,_,k,I;for(I=new vJe,I.d=0,b=new ee(e.b);b.a0?(e.n.c.length-1)*e.i:0,s=new ee(e.n);s.a1)for(s=Hn(a,0);s.b!=s.d.c;)for(i=f(Bn(s),235),c=0,m=new ee(i.e);m.a0&&(t[0]+=e.c,I-=t[0]),t[2]>0&&(I-=t[2]+e.c),t[1]=h.Math.max(t[1],I),AB(e.a[1],s.d+i.d+t[0]-(t[1]-I)/2,t[1]);else for(U=s.d+i.d,W=s.a-i.d-i.a,b=e.a,m=0,k=b.length;m0||Qm(a.b.d,e.b.d+e.b.a)==0&&s.b<0||Qm(a.b.d+a.b.a,e.b.d)==0&&s.b>0){g=0;break}}else g=h.Math.min(g,NEt(e,a,s));g=h.Math.min(g,FRt(e,c,g,s))}return g}function QN(e,t){var i,s,a,c,b,g,m;if(e.b<2)throw ne(new hn("The vector chain must contain at least a source and a target point."));for(a=(In(e.b!=0),f(e.a.a.c,8)),c7(t,a.a,a.b),m=new Kk((!t.a&&(t.a=new zi(Nu,t,5)),t.a)),b=Hn(e,1);b.a=0&&c!=i))throw ne(new hn(OM));for(a=0,m=0;mAe(qd(b.g,b.d[0]).a)?(In(m.b>0),m.a.Xb(m.c=--m.b),Dv(m,b),a=!0):g.e&&g.e.gc()>0&&(c=(!g.e&&(g.e=new st),g.e).Mc(t),_=(!g.e&&(g.e=new st),g.e).Mc(i),(c||_)&&((!g.e&&(g.e=new st),g.e).Fc(b),++b.c));a||sn(s.c,b)}function AMn(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe;return I=e.a.i+e.a.g/2,D=e.a.i+e.a.g/2,U=t.i+t.g/2,X=t.j+t.f/2,g=new tt(U,X),_=f(Qe(t,(Er(),lR)),8),_.a=_.a+I,_.b=_.b+D,c=(g.b-_.b)/(g.a-_.a),s=g.b-c*g.a,z=i.i+i.g/2,oe=i.j+i.f/2,m=new tt(z,oe),k=f(Qe(i,lR),8),k.a=k.a+I,k.b=k.b+D,b=(m.b-k.b)/(m.a-k.a),a=m.b-b*m.a,W=(s-a)/(b-c),_.a>>0,"0"+t.toString(16)),s="\\x"+Vu(i,i.length-2,i.length)):e>=ys?(i=(t=e>>>0,"0"+t.toString(16)),s="\\v"+Vu(i,i.length-6,i.length)):s=""+String.fromCharCode(e&Ji)}return s}function URt(e){var t,i,s;if(HS(f(V(e,(pt(),Oi)),101)))for(i=new ee(e.j);i.a=t.o&&i.f<=t.f||t.a*.5<=i.f&&t.a*1.5>=i.f){if(b=f(yt(t.n,t.n.c.length-1),209),b.e+b.d+i.g+a<=s&&(c=f(yt(t.n,t.n.c.length-1),209),c.f-e.f+i.f<=e.b||e.a.c.length==1))return g2e(t,i),!0;if(t.s+i.g<=s&&(t.t+t.d+i.f+a<=e.b||e.a.c.length==1))return lt(t.b,i),g=f(yt(t.n,t.n.c.length-1),209),lt(t.n,new YB(t.s,g.f+g.a+t.i,t.i)),J2e(f(yt(t.n,t.n.c.length-1),209),i),LRt(t,i),!0}return!1}function VRt(e,t,i){var s,a,c,b;return e.Pj()?(a=null,c=e.Qj(),s=e.Ij(1,b=Eee(e,t,i),i,t,c),e.Mj()&&!(e.Yi()&&b!=null?Lr(b,i):Ne(b)===Ne(i))?(b!=null&&(a=e.Oj(b,a)),a=e.Nj(i,a),e.Tj()&&(a=e.Wj(b,i,a)),a?(a.nj(s),a.oj()):e.Jj(s)):(e.Tj()&&(a=e.Wj(b,i,a)),a?(a.nj(s),a.oj()):e.Jj(s)),b):(b=Eee(e,t,i),e.Mj()&&!(e.Yi()&&b!=null?Lr(b,i):Ne(b)===Ne(i))&&(a=null,b!=null&&(a=e.Oj(b,null)),a=e.Nj(i,a),a&&a.oj()),b)}function MMn(e,t){var i,s,a,c,b;if(t.Ug("Path-Like Graph Wrapping",1),e.b.c.length==0){t.Vg();return}if(a=new xke(e),b=(a.i==null&&(a.i=wSe(a,new A1e)),Ae(a.i)*a.f),i=b/(a.i==null&&(a.i=wSe(a,new A1e)),Ae(a.i)),a.b>i){t.Vg();return}switch(f(V(e,(pt(),Ule)),351).g){case 2:c=new $1e;break;case 0:c=new C1e;break;default:c=new I1e}if(s=c.og(e,a),!c.pg())switch(f(V(e,FV),352).g){case 2:s=MEt(a,s);break;case 1:s=x2t(a,s)}$9n(e,a,s),t.Vg()}function X6(e,t){var i,s,a,c,b,g,m,_;t%=24,e.q.getHours()!=t&&(s=new h.Date(e.q.getTime()),s.setDate(s.getDate()+1),g=e.q.getTimezoneOffset()-s.getTimezoneOffset(),g>0&&(m=g/60|0,_=g%60,a=e.q.getDate(),i=e.q.getHours(),i+m>=24&&++a,c=new h.Date(e.q.getFullYear(),e.q.getMonth(),a,t+m,e.q.getMinutes()+_,e.q.getSeconds(),e.q.getMilliseconds()),e.q.setTime(c.getTime()))),b=e.q.getTime(),e.q.setTime(b+36e5),e.q.getHours()!=t&&e.q.setTime(b)}function DMn(e,t){var i,s,a,c;if(XSn(e.d,e.e),e.c.a.$b(),Ae(je(V(t.j,(pt(),CV))))!=0||Ae(je(V(t.j,CV)))!=0)for(i=C2,Ne(V(t.j,Np))!==Ne((Wh(),Dg))&&Xe(t.j,(nt(),t0),(cn(),!0)),c=f(V(t.j,t5),17).a,a=0;aa&&++_,lt(b,(Xt(g+_,t.c.length),f(t.c[g+_],17))),m+=(Xt(g+_,t.c.length),f(t.c[g+_],17)).a-s,++i;i=X&&e.e[m.p]>U*e.b||_e>=i*X)&&(sn(D.c,g),g=new st,Do(b,c),c.a.$b(),_-=k,W=h.Math.max(W,_*e.b+z),_+=_e,ge=_e,_e=0,k=0,z=0);return new io(W,D)}function Vne(e){var t,i,s,a,c,b,g;if(!e.d){if(g=new mZe,t=B5,c=t.a.zc(e,t),c==null){for(s=new Sn(rl(e));s.e!=s.i.gc();)i=f(Cn(s),29),Ii(g,Vne(i));t.a.Bc(e)!=null,t.a.gc()==0}for(b=g.i,a=(!e.q&&(e.q=new qe(Of,e,11,10)),new Sn(e.q));a.e!=a.i.gc();++b)f(Cn(a),411);Ii(g,(!e.q&&(e.q=new qe(Of,e,11,10)),e.q)),Qv(g),e.d=new WS((f(Se(Ve((C1(),un).o),9),19),g.i),g.g),e.e=f(g.g,688),e.e==null&&(e.e=qDt),Bc(e).b&=-17}return e.d}function mA(e,t,i,s){var a,c,b,g,m,_;if(_=Fa(e.e.Dh(),t),m=0,a=f(e.g,124),Ss(),f(t,69).xk()){for(b=0;b1||U==-1)if(I=f(z,71),D=f(k,71),I.dc())D.$b();else for(b=!!Es(t),c=0,g=e.a?I.Kc():I.Ii();g.Ob();)_=f(g.Pb(),58),a=f(th(e,_),58),a?(b?(m=D.dd(a),m==-1?D.Gi(c,a):c!=m&&D.Ui(c,a)):D.Gi(c,a),++c):e.b&&!b&&(D.Gi(c,_),++c);else z==null?k.Wb(null):(a=th(e,z),a==null?e.b&&!Es(t)&&k.Wb(z):k.Wb(a))}function WMn(e,t){var i,s,a,c,b,g,m,_;for(i=new rKe,a=new kn(xn(go(t).a.Kc(),new O));Un(a);)if(s=f(On(a),18),!ms(s)&&(g=s.c.i,PEe(g,HG))){if(_=Yke(e,g,HG,WG),_==-1)continue;i.b=h.Math.max(i.b,_),!i.a&&(i.a=new st),lt(i.a,g)}for(b=new kn(xn(Wi(t).a.Kc(),new O));Un(b);)if(c=f(On(b),18),!ms(c)&&(m=c.d.i,PEe(m,WG))){if(_=Yke(e,m,WG,HG),_==-1)continue;i.d=h.Math.max(i.d,_),!i.c&&(i.c=new st),lt(i.c,m)}return i}function HMn(e,t,i,s){var a,c,b,g,m,_,k;if(i.d.i!=t.i){for(a=new kb(e),W0(a,(gn(),vo)),Xe(a,(nt(),Ur),i),Xe(a,(pt(),Oi),(Co(),ya)),sn(s.c,a),b=new ia,Sl(b,a),so(b,(ft(),wn)),g=new ia,Sl(g,a),so(g,_n),k=i.d,xo(i,b),c=new Fm,ol(c,i),Xe(c,Xs,null),rs(c,g),xo(c,k),_=new No(i.b,0);_.b<_.d.gc();)m=(In(_.b<_.d.gc()),f(_.d.Xb(_.c=_.b++),72)),Ne(V(m,rp))===Ne((nh(),K_))&&(Xe(m,Q3,i),iu(_),lt(c.b,m));kkt(a,b,g)}}function UMn(e,t,i,s){var a,c,b,g,m,_,k;if(i.c.i!=t.i)for(a=new kb(e),W0(a,(gn(),vo)),Xe(a,(nt(),Ur),i),Xe(a,(pt(),Oi),(Co(),ya)),sn(s.c,a),b=new ia,Sl(b,a),so(b,(ft(),wn)),g=new ia,Sl(g,a),so(g,_n),xo(i,b),c=new Fm,ol(c,i),Xe(c,Xs,null),rs(c,g),xo(c,t),kkt(a,b,g),_=new No(i.b,0);_.b<_.d.gc();)m=(In(_.b<_.d.gc()),f(_.d.Xb(_.c=_.b++),72)),k=f(V(m,rp),278),k==(nh(),K_)&&(ri(m,Q3)||Xe(m,Q3,i),iu(_),lt(c.b,m))}function zRt(e){pA();var t,i,s,a;if(t=oo(e),e1e6)throw ne(new iF("power of ten too big"));if(e<=Nr)return u3(UN(V3[1],t),t);for(s=UN(V3[1],Nr),a=s,i=Gl(e-Nr),t=oo(e%Nr);Jl(i,Nr)>0;)a=e2(a,s),i=vf(i,Nr);for(a=e2(a,UN(V3[1],t)),a=u3(a,Nr),i=Gl(e-Nr);Jl(i,Nr)>0;)a=u3(a,Nr),i=vf(i,Nr);return a=u3(a,t),a}function KRt(e){var t,i,s,a,c,b,g,m,_,k;for(m=new ee(e.a);m.a_&&s>_)k=g,_=Ae(t.p[g.p])+Ae(t.d[g.p])+g.o.b+g.d.a;else{a=!1,i._g()&&i.bh("bk node placement breaks on "+g+" which should have been after "+k);break}if(!a)break}return i._g()&&i.bh(t+" is feasible: "+a),a}function E3e(e,t,i,s){var a,c,b,g,m,_,k,I,D;if(c=new kb(e),W0(c,(gn(),wa)),Xe(c,(pt(),Oi),(Co(),ya)),a=0,t){for(b=new ia,Xe(b,(nt(),Ur),t),Xe(c,Ur,t.i),so(b,(ft(),wn)),Sl(b,c),D=Fh(t.e),_=D,k=0,I=_.length;k0){if(a<0&&k.a&&(a=m,c=_[0],s=0),a>=0){if(g=k.b,m==a&&(g-=s++,g==0))return 0;if(!Yxt(t,_,k,g,b)){m=a-1,_[0]=c;continue}}else if(a=-1,!Yxt(t,_,k,0,b))return 0}else{if(a=-1,Jo(k.c,0)==32){if(I=_[0],Qwt(t,_),_[0]>I)continue}else if($_n(t,k.c,_[0])){_[0]+=k.c.length;continue}return 0}return PLn(b,i)?_[0]:0}function qMn(e,t,i){var s,a,c,b,g,m,_,k,I,D;for(k=new $B(new Drt(i)),g=Fe(Xc,Tp,28,e.f.e.c.length,16,1),sve(g,g.length),i[t.a]=0,_=new ee(e.f.e);_.a<_.c.c.length;)m=f(Z(_),153),m.a!=t.a&&(i[m.a]=Nr),Qk(aA(k,m),AA);for(;k.b.c.length!=0;)for(I=f(Ree(k),153),g[I.a]=!0,c=Kft(new LY(e.b,I),0);c.c;)a=f(H_e(c),290),D=sTn(a,I),!g[D.a]&&(ri(a,(IN(),BG))?b=Ae(je(V(a,BG))):b=e.c,s=i[I.a]+b,s=0&&!u2(e,k,I);)--I;a[k]=I}for(W=0;W=0&&!u2(e,g,U);)--g;c[U]=g}for(m=0;mt[D]&&Ds[m]&&ZH(e,m,D,!1,!0)}function k3e(e){var t,i,s,a,c,b,g,m;i=wt(gt(V(e,(od(),VIt)))),c=e.a.c.d,g=e.a.d.d,i?(b=Nh(uo(new tt(g.a,g.b),c),.5),m=Nh(Ho(e.e),.5),t=uo(Mr(new tt(c.a,c.b),b),m),Ome(e.d,t)):(a=Ae(je(V(e.a,e5t))),s=e.d,c.a>=g.a?c.b>=g.b?(s.a=g.a+(c.a-g.a)/2+a,s.b=g.b+(c.b-g.b)/2-a-e.e.b):(s.a=g.a+(c.a-g.a)/2+a,s.b=c.b+(g.b-c.b)/2+a):c.b>=g.b?(s.a=c.a+(g.a-c.a)/2+a,s.b=g.b+(c.b-g.b)/2+a):(s.a=c.a+(g.a-c.a)/2+a,s.b=c.b+(g.b-c.b)/2-a-e.e.b))}function Y6(e){var t,i,s,a,c,b,g,m;if(!e.f){if(m=new L1e,g=new L1e,t=B5,b=t.a.zc(e,t),b==null){for(c=new Sn(rl(e));c.e!=c.i.gc();)a=f(Cn(c),29),Ii(m,Y6(a));t.a.Bc(e)!=null,t.a.gc()==0}for(s=(!e.s&&(e.s=new qe(rc,e,21,17)),new Sn(e.s));s.e!=s.i.gc();)i=f(Cn(s),179),ve(i,102)&&zn(g,f(i,19));Qv(g),e.r=new Fht(e,(f(Se(Ve((C1(),un).o),6),19),g.i),g.g),Ii(m,e.r),Qv(m),e.f=new WS((f(Se(Ve(un.o),5),19),m.i),m.g),Bc(e).b&=-3}return e.f}function XRt(e){vm(e,new gw(wm(pm(gm(bm(new F0,Sw),"ELK DisCo"),"Layouter for arranging unconnected subgraphs. The subgraphs themselves are, by default, not laid out."),new j0))),it(e,Sw,oie,dt(z4e)),it(e,Sw,sie,dt(xse)),it(e,Sw,j3,dt($It)),it(e,Sw,fy,dt(V4e)),it(e,Sw,dRe,dt(NIt)),it(e,Sw,hRe,dt(OIt)),it(e,Sw,fRe,dt(MIt)),it(e,Sw,pRe,dt(PIt)),it(e,Sw,_Re,dt(IIt)),it(e,Sw,SRe,dt(Rse)),it(e,Sw,ERe,dt(G4e)),it(e,Sw,kRe,dt(NG))}function rU(){rU=F,dOe=se(ie(df,1),zh,28,15,[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70]),kDt=new RegExp(`[ -\r\f]+`);try{L5=se(ie($Fn,1),on,2114,0,[new NO((eme(),cH("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",w7((rF(),rF(),OI))))),new NO(cH("yyyy-MM-dd'T'HH:mm:ss'.'SSS",w7(OI))),new NO(cH("yyyy-MM-dd'T'HH:mm:ss",w7(OI))),new NO(cH("yyyy-MM-dd'T'HH:mm",w7(OI))),new NO(cH("yyyy-MM-dd",w7(OI)))])}catch(e){if(e=mi(e),!ve(e,82))throw ne(e)}}function JMn(e,t){var i,s,a,c;if(a=Uc(e.d,1)!=0,s=i3e(e,t),s==0&&wt(gt(V(t.j,(nt(),t0)))))return 0;!wt(gt(V(t.j,(nt(),t0))))&&!wt(gt(V(t.j,z2)))||Ne(V(t.j,(pt(),Np)))===Ne((Wh(),Dg))?t.c.mg(t.e,a):a=wt(gt(V(t.j,t0))),KN(e,t,a,!0),wt(gt(V(t.j,z2)))&&Xe(t.j,z2,(cn(),!1)),wt(gt(V(t.j,t0)))&&(Xe(t.j,t0,(cn(),!1)),Xe(t.j,z2,!0)),i=i3e(e,t);do{if(bSe(e),i==0)return 0;a=!a,c=i,KN(e,t,a,!1),i=i3e(e,t)}while(c>i);return c}function JRt(e,t){var i,s,a,c;if(a=Uc(e.d,1)!=0,s=LH(e,t),s==0&&wt(gt(V(t.j,(nt(),t0)))))return 0;!wt(gt(V(t.j,(nt(),t0))))&&!wt(gt(V(t.j,z2)))||Ne(V(t.j,(pt(),Np)))===Ne((Wh(),Dg))?t.c.mg(t.e,a):a=wt(gt(V(t.j,t0))),KN(e,t,a,!0),wt(gt(V(t.j,z2)))&&Xe(t.j,z2,(cn(),!1)),wt(gt(V(t.j,t0)))&&(Xe(t.j,t0,(cn(),!1)),Xe(t.j,z2,!0)),i=LH(e,t);do{if(bSe(e),i==0)return 0;a=!a,c=i,KN(e,t,a,!1),i=LH(e,t)}while(c>i);return c}function R3e(e,t,i,s){var a,c,b,g,m,_,k,I,D;return m=uo(new tt(i.a,i.b),e),_=m.a*t.b-m.b*t.a,k=t.a*s.b-t.b*s.a,I=(m.a*s.b-m.b*s.a)/k,D=_/k,k==0?_==0?(a=Mr(new tt(i.a,i.b),Nh(new tt(s.a,s.b),.5)),c=I1(e,a),b=I1(Mr(new tt(e.a,e.b),t),a),g=h.Math.sqrt(s.a*s.a+s.b*s.b)*.5,c=0&&I<=1&&D>=0&&D<=1?Mr(new tt(e.a,e.b),Nh(new tt(t.a,t.b),I)):null}function YMn(e,t,i){var s,a,c,b,g;if(s=f(V(e,(pt(),$le)),21),i.a>t.a&&(s.Hc((bw(),S5))?e.c.a+=(i.a-t.a)/2:s.Hc(E5)&&(e.c.a+=i.a-t.a)),i.b>t.b&&(s.Hc((bw(),R5))?e.c.b+=(i.b-t.b)/2:s.Hc(k5)&&(e.c.b+=i.b-t.b)),f(V(e,(nt(),ma)),21).Hc((As(),af))&&(i.a>t.a||i.b>t.b))for(g=new ee(e.a);g.at.a&&(s.Hc((bw(),S5))?e.c.a+=(i.a-t.a)/2:s.Hc(E5)&&(e.c.a+=i.a-t.a)),i.b>t.b&&(s.Hc((bw(),R5))?e.c.b+=(i.b-t.b)/2:s.Hc(k5)&&(e.c.b+=i.b-t.b)),f(V(e,(nt(),ma)),21).Hc((As(),af))&&(i.a>t.a||i.b>t.b))for(b=new ee(e.a);b.a0?e.i:0)>t&&m>0&&(c=0,b+=m+e.i,a=h.Math.max(a,D),s+=m+e.i,m=0,D=0,i&&(++I,lt(e.n,new YB(e.s,b,e.i))),g=0),D+=_.g+(g>0?e.i:0),m=h.Math.max(m,_.f),i&&J2e(f(yt(e.n,I),209),_),c+=_.g+(g>0?e.i:0),++g;return a=h.Math.max(a,D),s+=m,i&&(e.r=a,e.d=s,eEe(e.j)),new Gu(e.s,e.t,a,s)}function zne(e){var t,i,s,a,c,b,g,m,_,k,I,D;for(e.b=!1,I=hi,m=to,D=hi,_=to,s=e.e.a.ec().Kc();s.Ob();)for(i=f(s.Pb(),272),a=i.a,I=h.Math.min(I,a.c),m=h.Math.max(m,a.c+a.b),D=h.Math.min(D,a.d),_=h.Math.max(_,a.d+a.a),b=new ee(i.c);b.ae.o.a&&(k=(m-e.o.a)/2,g.b=h.Math.max(g.b,k),g.c=h.Math.max(g.c,k))}}function t9n(e){var t,i,s,a,c,b,g,m;for(c=new Vgt,Pgn(c,(g3(),f9t)),s=(a=jee(e,Fe(_t,rt,2,0,6,1)),new YT(new kc(new jY(e,a).b)));s.bg?1:-1:GSe(e.a,t.a,c),a==-1)I=-m,k=b==m?cee(t.a,g,e.a,c):fee(t.a,g,e.a,c);else if(I=b,b==m){if(a==0)return Uh(),MI;k=cee(e.a,c,t.a,g)}else k=fee(e.a,c,t.a,g);return _=new Y0(I,k.length,k),t6(_),_}function n9n(e,t){var i,s,a,c;if(c=ORt(t),!t.c&&(t.c=new qe(Mc,t,9,9)),Mi(new Wt(null,(!t.c&&(t.c=new qe(Mc,t,9,9)),new Vt(t.c,16))),new Brt(c)),a=f(V(c,(nt(),ma)),21),qDn(t,a),a.Hc((As(),af)))for(s=new Sn((!t.c&&(t.c=new qe(Mc,t,9,9)),t.c));s.e!=s.i.gc();)i=f(Cn(s),123),ELn(e,t,c,i);return f(Qe(t,(pt(),Dw)),181).gc()!=0&&R3t(t,c),wt(gt(V(c,z6e)))&&a.Fc(mV),ri(c,u9)&&Nlt(new C2e(Ae(je(V(c,u9)))),c),Ne(Qe(t,M_))===Ne((vb(),Wg))?Kjn(e,t,c):Ijn(e,t,c),c}function r9n(e){var t,i,s,a,c,b,g,m;for(a=new ee(e.b);a.a0?Vu(i.a,0,c-1):""):(Mo(0,c-1,e.length),e.substr(0,c-1)):i?i.a:e}function i9n(e,t){var i,s,a,c,b,g,m;for(t.Ug("Sort By Input Model "+V(e,(pt(),Np)),1),a=0,s=new ee(e.b);s.a=e.b.length?(c[a++]=b.b[s++],c[a++]=b.b[s++]):s>=b.b.length?(c[a++]=e.b[i++],c[a++]=e.b[i++]):b.b[s]0?e.i:0)),++t;for(u2e(e.n,m),e.d=i,e.r=s,e.g=0,e.f=0,e.e=0,e.o=hi,e.p=hi,c=new ee(e.b);c.a0&&(a=(!e.n&&(e.n=new qe(Fs,e,1,7)),f(Se(e.n,0),135)).a,!a||br(br((t.a+=' "',t),a),'"'))),i=(!e.b&&(e.b=new en(Dn,e,4,7)),!(e.b.i<=1&&(!e.c&&(e.c=new en(Dn,e,5,8)),e.c.i<=1))),i?t.a+=" [":t.a+=" ",br(t,yme(new IY,new Sn(e.b))),i&&(t.a+="]"),t.a+=hie,i&&(t.a+="["),br(t,yme(new IY,new Sn(e.c))),i&&(t.a+="]"),t.a)}function s9n(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ut,Dt,Nt,ln;for(Ke=e.c,Ze=t.c,i=il(Ke.a,e,0),s=il(Ze.a,t,0),_e=f(Zm(e,(Cs(),Pc)).Kc().Pb(),12),Nt=f(Zm(e,Ta).Kc().Pb(),12),Ce=f(Zm(t,Pc).Kc().Pb(),12),ln=f(Zm(t,Ta).Kc().Pb(),12),oe=Fh(_e.e),ut=Fh(Nt.g),ge=Fh(Ce.e),Dt=Fh(ln.g),r_(e,s,Ze),b=ge,k=0,U=b.length;kk?new tw((Td(),U_),i,t,_-k):_>0&&k>0&&(new tw((Td(),U_),t,i,0),new tw(U_,i,t,0))),b)}function c9n(e,t,i){var s,a,c;for(e.a=new st,c=Hn(t.b,0);c.b!=c.d.c;){for(a=f(Bn(c),40);f(V(a,(Il(),ip)),17).a>e.a.c.length-1;)lt(e.a,new io(C2,lCe));s=f(V(a,ip),17).a,i==(Xi(),Js)||i==al?(a.e.aAe(je(f(yt(e.a,s),42).b))&&aY(f(yt(e.a,s),42),a.e.a+a.f.a)):(a.e.bAe(je(f(yt(e.a,s),42).b))&&aY(f(yt(e.a,s),42),a.e.b+a.f.b))}}function ZRt(e,t,i,s){var a,c,b,g,m,_,k;if(c=rH(s),g=wt(gt(V(s,(pt(),B6e)))),(g||wt(gt(V(e,PV))))&&!HS(f(V(e,Oi),101)))a=y3(c),m=p3e(e,i,i==(Cs(),Ta)?a:EN(a));else switch(m=new ia,Sl(m,e),t?(k=m.n,k.a=t.a-e.n.a,k.b=t.b-e.n.b,oEt(k,0,0,e.o.a,e.o.b),so(m,vRt(m,c))):(a=y3(c),so(m,i==(Cs(),Ta)?a:EN(a))),b=f(V(s,(nt(),ma)),21),_=m.j,c.g){case 2:case 1:(_==(ft(),bn)||_==jn)&&b.Fc((As(),U2));break;case 4:case 3:(_==(ft(),_n)||_==wn)&&b.Fc((As(),U2))}return m}function ext(e,t){var i,s,a,c,b,g;for(b=new aw(new U0(e.f.b).a);b.b;){if(c=Xm(b),a=f(c.ld(),602),t==1){if(a.Af()!=(Xi(),cf)&&a.Af()!=gh)continue}else if(a.Af()!=(Xi(),Js)&&a.Af()!=al)continue;switch(s=f(f(c.md(),42).b,86),g=f(f(c.md(),42).a,194),i=g.c,a.Af().g){case 2:s.g.c=e.e.a,s.g.b=h.Math.max(1,s.g.b+i);break;case 1:s.g.c=s.g.c+i,s.g.b=h.Math.max(1,s.g.b-i);break;case 4:s.g.d=e.e.b,s.g.a=h.Math.max(1,s.g.a+i);break;case 3:s.g.d=s.g.d+i,s.g.a=h.Math.max(1,s.g.a-i)}}}function u9n(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z;for(g=Fe(Xn,wr,28,t.b.c.length,15,1),_=Fe(Hse,Je,273,t.b.c.length,0,1),m=Fe(Op,$g,10,t.b.c.length,0,1),I=e.a,D=0,W=I.length;D0&&m[s]&&(U=zS(e.b,m[s],a)),z=h.Math.max(z,a.c.c.b+U);for(c=new ee(k.e);c.a1)throw ne(new hn(jM));m||(c=yp(t,s.Kc().Pb()),b.Fc(c))}return $Se(e,YEe(e,t,i),b)}function oU(e,t,i){var s,a,c,b,g,m,_,k;if(xb(e.e,t))m=(Ss(),f(t,69).xk()?new mB(t,e):new l7(t,e)),FH(m.c,m.b),N$(m,f(i,16));else{for(k=Fa(e.e.Dh(),t),s=f(e.g,124),b=0;b"}m!=null&&(t.a+=""+m)}else e.e?(g=e.e.zb,g!=null&&(t.a+=""+g)):(t.a+="?",e.b?(t.a+=" super ",Yne(e.b,t)):e.f&&(t.a+=" extends ",Yne(e.f,t)))}function b9n(e){e.b=null,e.a=null,e.o=null,e.q=null,e.v=null,e.w=null,e.B=null,e.p=null,e.Q=null,e.R=null,e.S=null,e.T=null,e.U=null,e.V=null,e.W=null,e.bb=null,e.eb=null,e.ab=null,e.H=null,e.db=null,e.c=null,e.d=null,e.f=null,e.n=null,e.r=null,e.s=null,e.u=null,e.G=null,e.J=null,e.e=null,e.j=null,e.i=null,e.g=null,e.k=null,e.t=null,e.F=null,e.I=null,e.L=null,e.M=null,e.O=null,e.P=null,e.$=null,e.N=null,e.Z=null,e.cb=null,e.K=null,e.D=null,e.A=null,e.C=null,e._=null,e.fb=null,e.X=null,e.Y=null,e.gb=!1,e.hb=!1}function g9n(e){var t,i,s,a;if(s=cre((!e.c&&(e.c=L7(Gl(e.f))),e.c),0),e.e==0||e.a==0&&e.f!=-1&&e.e<0)return s;if(t=gSe(e)<0?1:0,i=e.e,a=(s.length+1+h.Math.abs(oo(e.e)),new jk),t==1&&(a.a+="-"),e.e>0)if(i-=s.length-t,i>=0){for(a.a+="0.";i>$w.length;i-=$w.length)Xht(a,$w);Odt(a,$w,oo(i)),br(a,(pn(t,s.length+1),s.substr(t)))}else i=t-i,br(a,Vu(s,t,oo(i))),a.a+=".",br(a,bve(s,oo(i)));else{for(br(a,(pn(t,s.length+1),s.substr(t)));i<-$w.length;i+=$w.length)Xht(a,$w);Odt(a,$w,oo(-i))}return a.a}function Qne(e){var t,i,s,a,c,b,g,m,_;return!(e.k!=(gn(),ji)||e.j.c.length<=1||(c=f(V(e,(pt(),Oi)),101),c==(Co(),ya))||(a=(n_(),(e.q?e.q:(qt(),qt(),Ip))._b(Ty)?s=f(V(e,Ty),203):s=f(V(Go(e),ZI),203),s),a==UV)||!(a==Z2||a==Q2)&&(b=Ae(je(t_(e,e5))),t=f(V(e,d9),140),!t&&(t=new Qme(b,b,b,b)),_=Rl(e,(ft(),wn)),m=t.d+t.a+(_.gc()-1)*b,m>e.o.b||(i=Rl(e,_n),g=t.d+t.a+(i.gc()-1)*b,g>e.o.b)))}function w9n(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X;t.Ug("Orthogonal edge routing",1),_=Ae(je(V(e,(pt(),Y2)))),i=Ae(je(V(e,X2))),s=Ae(je(V(e,jw))),D=new _Z(0,i),X=0,b=new No(e.b,0),g=null,k=null,m=null,I=null;do k=b.b0?(W=(U-1)*i,g&&(W+=s),k&&(W+=s),W<_&&!a&&!c&&(W=_),X+=W):!a&&!c&&(X+=_),g=k,m=I;while(k);e.f.a=X,t.Vg()}function sU(e,t){var i,s,a,c,b,g,m,_,k,I;if(k=null,e.d&&(k=f(ua(e.d,t),142)),!k){if(c=e.a.vi(),I=c.i,!e.d||u$(e.d)!=I){for(m=new Fn,e.d&&h6(m,e.d),_=m.f.c+m.i.c,g=_;gt||wt(gt(Qe(m,(sh(),R9)))))&&(a=0,c+=k.b+i,sn(I.c,k),k=new Kve(c,i),s=new ete(0,k.f,k,i),PW(k,s),a=0),s.b.c.length==0||!wt(gt(Qe(di(m),(sh(),Uae))))&&(m.f>=s.o&&m.f<=s.f||s.a*.5<=m.f&&s.a*1.5>=m.f)?g2e(s,m):(b=new ete(s.s+s.r+i,k.f,k,i),PW(k,b),g2e(b,m)),a=m.i+m.g;return sn(I.c,k),I}function Z6(e){var t,i,s,a;if(!(e.b==null||e.b.length<=2)&&!e.a){for(t=0,a=0;a=e.b[a+1])a+=2;else if(i0)for(s=new Rc(f(Hr(e.a,c),21)),qt(),Hi(s,new h0e(t)),a=new No(c.b,0);a.b0&&s>=-6?s>=0?u7(c,i-oo(e.e),"."):(Uee(c,t-1,t-1,"0."),u7(c,t+1,Bh($w,0,-oo(s)-1))):(i-t>=1&&(u7(c,t,"."),++i),u7(c,i,"E"),s>0&&u7(c,++i,"+"),u7(c,++i,""+z$(Gl(s)))),e.g=c.a,e.g))}function C9n(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ut;s=Ae(je(V(t,(pt(),U6e)))),Ke=f(V(t,t5),17).a,D=4,a=3,Ze=20/Ke,W=!1,m=0,b=Nr;do{for(c=m!=1,I=m!=0,ut=0,X=e.a,ge=0,Ce=X.length;geKe)?(m=2,b=Nr):m==0?(m=1,b=ut):(m=0,b=ut)):(W=ut>=b||b-ut0?1:km(isNaN(s),isNaN(0)))>=0^(td(Qh),(h.Math.abs(g)<=Qh||g==0||isNaN(g)&&isNaN(0)?0:g<0?-1:g>0?1:km(isNaN(g),isNaN(0)))>=0)?h.Math.max(g,s):(td(Qh),(h.Math.abs(s)<=Qh||s==0||isNaN(s)&&isNaN(0)?0:s<0?-1:s>0?1:km(isNaN(s),isNaN(0)))>0?h.Math.sqrt(g*g+s*s):-h.Math.sqrt(g*g+s*s))}function ww(e,t){var i,s,a,c,b,g;if(t){if(!e.a&&(e.a=new tF),e.e==2){eF(e.a,t);return}if(t.e==1){for(a=0;a=ys?Ms(i,b2e(s)):hC(i,s&Ji),b=new BZ(10,null,0),dvn(e.a,b,g-1)):(i=(b.Mm().length+c,new a$),Ms(i,b.Mm())),t.e==0?(s=t.Km(),s>=ys?Ms(i,b2e(s)):hC(i,s&Ji)):Ms(i,t.Mm()),f(b,530).b=i.a}}function $9n(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X;if(!i.dc()){for(g=0,D=0,s=i.Kc(),U=f(s.Pb(),17).a;g1&&(m=_.Hg(m,e.a,g));return m.c.length==1?f(yt(m,m.c.length-1),238):m.c.length==2?y9n((Xt(0,m.c.length),f(m.c[0],238)),(Xt(1,m.c.length),f(m.c[1],238)),b,c):null}function M9n(e,t,i){var s,a,c,b,g,m,_;for(i.Ug("Find roots",1),e.a.c.length=0,a=Hn(t.b,0);a.b!=a.d.c;)s=f(Bn(a),40),s.b.b==0&&(Xe(s,(ei(),s0),(cn(),!0)),lt(e.a,s));switch(e.a.c.length){case 0:c=new Zee(0,t,"DUMMY_ROOT"),Xe(c,(ei(),s0),(cn(),!0)),Xe(c,dae,!0),hr(t.b,c);break;case 1:break;default:for(b=new Zee(0,t,KU),m=new ee(e.a);m.a=h.Math.abs(s.b)?(s.b=0,c.d+c.a>b.d&&c.db.c&&c.c0){if(t=new Jwe(e.i,e.g),i=e.i,c=i<100?null:new y1(i),e.Tj())for(s=0;s0){for(g=e.g,_=e.i,s6(e),c=_<100?null:new y1(_),s=0;s<_;++s)b=g[s],c=e.Oj(b,c);c&&c.oj()}else s6(e);else s6(e)}function A3e(e,t,i){var s,a,c,b,g,m,_,k,I,D;for(Gyt(this),i==(Wm(),o0)?Zi(this.r,e):Zi(this.w,e),k=hi,_=to,b=t.a.ec().Kc();b.Ob();)a=f(b.Pb(),42),g=f(a.a,465),s=f(a.b,18),m=s.c,m==e&&(m=s.d),g==o0?Zi(this.r,m):Zi(this.w,m),D=(ft(),tc).Hc(m.j)?Ae(je(V(m,(nt(),c4)))):kl(se(ie(wo,1),rt,8,0,[m.i.n,m.n,m.a])).b,k=h.Math.min(k,D),_=h.Math.max(_,D);for(I=(ft(),tc).Hc(e.j)?Ae(je(V(e,(nt(),c4)))):kl(se(ie(wo,1),rt,8,0,[e.i.n,e.n,e.a])).b,Y2t(this,I,k,_),c=t.a.ec().Kc();c.Ob();)a=f(c.Pb(),42),lEt(this,f(a.b,18));this.o=!1}function L9n(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ut,Dt,Nt,ln,an,Tn;return i=e.l&8191,s=e.l>>13|(e.m&15)<<9,a=e.m>>4&8191,c=e.m>>17|(e.h&255)<<5,b=(e.h&1048320)>>8,g=t.l&8191,m=t.l>>13|(t.m&15)<<9,_=t.m>>4&8191,k=t.m>>17|(t.h&255)<<5,I=(t.h&1048320)>>8,Dt=i*g,Nt=s*g,ln=a*g,an=c*g,Tn=b*g,m!=0&&(Nt+=i*m,ln+=s*m,an+=a*m,Tn+=c*m),_!=0&&(ln+=i*_,an+=s*_,Tn+=a*_),k!=0&&(an+=i*k,Tn+=s*k),I!=0&&(Tn+=i*I),W=Dt&Vc,U=(Nt&511)<<13,D=W+U,X=Dt>>22,oe=Nt>>9,ge=(ln&262143)<<4,_e=(an&31)<<17,z=X+oe+ge+_e,Ke=ln>>18,Ze=an>>5,ut=(Tn&4095)<<8,Ce=Ke+Ze+ut,z+=D>>22,D&=Vc,Ce+=z>>22,z&=Vc,Ce&=Ab,Oa(D,z,Ce)}function fxt(e){var t,i,s,a,c,b,g;if(g=f(yt(e.j,0),12),g.g.c.length!=0&&g.e.c.length!=0)throw ne(new Us("Interactive layout does not support NORTH/SOUTH ports with incoming _and_ outgoing edges."));if(g.g.c.length!=0){for(c=hi,i=new ee(g.g);i.a4)if(e.fk(t)){if(e.al()){if(a=f(t,54),s=a.Eh(),m=s==e.e&&(e.ml()?a.yh(a.Fh(),e.il())==e.jl():-1-a.Fh()==e.Lj()),e.nl()&&!m&&!s&&a.Jh()){for(c=0;c0&&dEt(e,g,I);for(a=new ee(I);a.ae.d[b.p]&&(i+=a_e(e.b,c)*f(m.b,17).a,$1(e.a,ot(c)));for(;!l$(e.a);)W_e(e.b,f(t3(e.a),17).a)}return i}function B9n(e,t){var i,s,a,c,b,g,m,_,k,I;if(k=f(V(e,(nt(),Dl)),64),s=f(yt(e.j,0),12),k==(ft(),bn)?so(s,jn):k==jn&&so(s,bn),f(V(t,(pt(),Dw)),181).Hc((su(),Vw))){if(m=Ae(je(V(e,p4))),_=Ae(je(V(e,b4))),b=Ae(je(V(e,B_))),g=f(V(t,j_),21),g.Hc(($c(),Mb)))for(i=_,I=e.o.a/2-s.n.a,c=new ee(s.f);c.a0&&(_=e.n.a/c);break;case 2:case 4:a=e.i.o.b,a>0&&(_=e.n.b/a)}Xe(e,(nt(),Ry),_)}if(m=e.o,b=e.a,s)b.a=s.a,b.b=s.b,e.d=!0;else if(t!=mh&&t!=u0&&g!=Cl)switch(g.g){case 1:b.a=m.a/2;break;case 2:b.a=m.a,b.b=m.b/2;break;case 3:b.a=m.a/2,b.b=m.b;break;case 4:b.b=m.b/2}else b.a=m.a/2,b.b=m.b/2}function eI(e){var t,i,s,a,c,b,g,m,_,k;if(e.Pj())if(k=e.Ej(),m=e.Qj(),k>0)if(t=new vSe(e.pj()),i=k,c=i<100?null:new y1(i),b7(e,i,t.g),a=i==1?e.Ij(4,Se(t,0),null,0,m):e.Ij(6,t,null,-1,m),e.Mj()){for(s=new Sn(t);s.e!=s.i.gc();)c=e.Oj(Cn(s),c);c?(c.nj(a),c.oj()):e.Jj(a)}else c?(c.nj(a),c.oj()):e.Jj(a);else b7(e,e.Ej(),e.Fj()),e.Jj(e.Ij(6,(qt(),ps),null,-1,m));else if(e.Mj())if(k=e.Ej(),k>0){for(g=e.Fj(),_=k,b7(e,k,g),c=_<100?null:new y1(_),s=0;s<_;++s)b=g[s],c=e.Oj(b,c);c&&c.oj()}else b7(e,e.Ej(),e.Fj());else b7(e,e.Ej(),e.Fj())}function V9n(e,t,i,s,a){var c,b,g,m,_,k,I,D,W,U,z,X;for(g=Fe(Ro,js,28,e.c.length,15,1),D=new $B(new KQe),iEe(D,e),_=0,z=new st;D.b.c.length!=0;)if(b=f(D.b.c.length==0?null:yt(D.b,0),163),_>1&&dc(b)*ru(b)/2>g[0]){for(c=0;cg[c];)++c;U=new dg(z,0,c+1),I=new CW(U),k=dc(b)/ru(b),m=lre(I,t,new Pk,i,s,a,k),Mr(xd(I.e),m),Qk(aA(D,I),AA),W=new dg(z,c+1,z.c.length),iEe(D,W),z.c.length=0,_=0,dpt(g,g.length,0)}else X=D.b.c.length==0?null:yt(D.b,0),X!=null&&Mee(D,0),_>0&&(g[_]=g[_-1]),g[_]+=dc(b)*ru(b),++_,sn(z.c,b);return z}function z9n(e,t){var i,s,a,c;i=t.b,c=new Rc(i.j),a=0,s=i.j,s.c.length=0,Pm(f(lw(e.b,(ft(),bn),(qm(),Sy)),15),i),a=AN(c,a,new uXe,s),Pm(f(lw(e.b,bn,e0),15),i),a=AN(c,a,new rXe,s),Pm(f(lw(e.b,bn,_y),15),i),Pm(f(lw(e.b,_n,Sy),15),i),Pm(f(lw(e.b,_n,e0),15),i),a=AN(c,a,new fXe,s),Pm(f(lw(e.b,_n,_y),15),i),Pm(f(lw(e.b,jn,Sy),15),i),a=AN(c,a,new dXe,s),Pm(f(lw(e.b,jn,e0),15),i),a=AN(c,a,new hXe,s),Pm(f(lw(e.b,jn,_y),15),i),Pm(f(lw(e.b,wn,Sy),15),i),a=AN(c,a,new sXe,s),Pm(f(lw(e.b,wn,e0),15),i),Pm(f(lw(e.b,wn,_y),15),i)}function K9n(e,t,i){var s,a,c,b,g,m,_,k,I,D,W;for(g=new ee(t);g.a.5?oe-=b*2*(U-.5):U<.5&&(oe+=c*2*(.5-U)),a=g.d.b,oeX.a-z-k&&(oe=X.a-z-k),g.n.a=t+oe}}function Y9n(e){var t,i,s,a,c;if(s=f(V(e,(pt(),Ha)),171),s==(ef(),n0)){for(i=new kn(xn(go(e).a.Kc(),new O));Un(i);)if(t=f(On(i),18),!x0t(t))throw ne(new rg(wie+$N(e)+"' has its layer constraint set to FIRST_SEPARATE, but has at least one incoming edge. FIRST_SEPARATE nodes must not have incoming edges."))}else if(s==O_){for(c=new kn(xn(Wi(e).a.Kc(),new O));Un(c);)if(a=f(On(c),18),!x0t(a))throw ne(new rg(wie+$N(e)+"' has its layer constraint set to LAST_SEPARATE, but has at least one outgoing edge. LAST_SEPARATE nodes must not have outgoing edges."))}}function tM(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U;if(e.e&&e.c.c>19&&(t=UC(t),m=!m),b=MPn(t),c=!1,a=!1,s=!1,e.h==fM&&e.m==0&&e.l==0)if(a=!0,c=!0,b==-1)e=Qut((xC(),GAe)),s=!0,m=!m;else return g=Cke(e,b),m&&Qee(g),i&&(J1=Oa(0,0,0)),g;else e.h>>19&&(c=!0,e=UC(e),s=!0,m=!m);return b!=-1?uxn(e,b,m,c,i):dEe(e,t)<0?(i&&(c?J1=UC(e):J1=Oa(e.l,e.m,e.h)),Oa(0,0,0)):PNn(s?e:Oa(e.l,e.m,e.h),t,m,c,a,i)}function nre(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U;if(b=e.e,m=t.e,b==0)return t;if(m==0)return e;if(c=e.d,g=t.d,c+g==2)return i=fo(e.a[0],Ts),s=fo(t.a[0],Ts),b==m?(k=is(i,s),U=tr(k),W=tr(x1(k,32)),W==0?new pb(b,U):new Y0(b,2,se(ie(Xn,1),wr,28,15,[U,W]))):(Uh(),GF(b<0?vf(s,i):vf(i,s),0)?j1(b<0?vf(s,i):vf(i,s)):X$(j1(gg(b<0?vf(s,i):vf(i,s)))));if(b==m)D=b,I=c>=g?fee(e.a,c,t.a,g):fee(t.a,g,e.a,c);else{if(a=c!=g?c>g?1:-1:GSe(e.a,t.a,c),a==0)return Uh(),MI;a==1?(D=b,I=cee(e.a,c,t.a,g)):(D=m,I=cee(t.a,g,e.a,c))}return _=new Y0(D,I.length,I),t6(_),_}function Z9n(e,t){var i,s,a,c,b,g,m;if(!(e.g>t.f||t.g>e.f)){for(i=0,s=0,b=e.w.a.ec().Kc();b.Ob();)a=f(b.Pb(),12),ute(kl(se(ie(wo,1),rt,8,0,[a.i.n,a.n,a.a])).b,t.g,t.f)&&++i;for(g=e.r.a.ec().Kc();g.Ob();)a=f(g.Pb(),12),ute(kl(se(ie(wo,1),rt,8,0,[a.i.n,a.n,a.a])).b,t.g,t.f)&&--i;for(m=t.w.a.ec().Kc();m.Ob();)a=f(m.Pb(),12),ute(kl(se(ie(wo,1),rt,8,0,[a.i.n,a.n,a.a])).b,e.g,e.f)&&++s;for(c=t.r.a.ec().Kc();c.Ob();)a=f(c.Pb(),12),ute(kl(se(ie(wo,1),rt,8,0,[a.i.n,a.n,a.a])).b,e.g,e.f)&&--s;i=0)return i;switch(Lm(Vs(e,i))){case 2:{if(Ht("",vg(e,i.qk()).xe())){if(m=$7(Vs(e,i)),g=gC(Vs(e,i)),k=Ike(e,t,m,g),k)return k;for(a=l3e(e,t),b=0,I=a.gc();b1)throw ne(new hn(jM));for(k=Fa(e.e.Dh(),t),s=f(e.g,124),b=0;b1,_=new Zd(D.b);_l(_.a)||_l(_.b);)m=f(_l(_.a)?Z(_.a):Z(_.b),18),I=m.c==D?m.d:m.c,h.Math.abs(kl(se(ie(wo,1),rt,8,0,[I.i.n,I.n,I.a])).b-b.b)>1&&BOn(e,m,b,c,D)}}function oDn(e){var t,i,s,a,c,b;if(a=new No(e.e,0),s=new No(e.a,0),e.d)for(i=0;iYie;){for(c=t,b=0;h.Math.abs(t-c)0),a.a.Xb(a.c=--a.b),vMn(e,e.b-b,c,s,a),In(a.b0),s.a.Xb(s.c=--s.b)}if(!e.d)for(i=0;i0?(e.f[k.p]=W/(k.e.c.length+k.g.c.length),e.c=h.Math.min(e.c,e.f[k.p]),e.b=h.Math.max(e.b,e.f[k.p])):g&&(e.f[k.p]=W)}}function lDn(e){e.b=null,e.bb=null,e.fb=null,e.qb=null,e.a=null,e.c=null,e.d=null,e.e=null,e.f=null,e.n=null,e.M=null,e.L=null,e.Q=null,e.R=null,e.K=null,e.db=null,e.eb=null,e.g=null,e.i=null,e.j=null,e.k=null,e.gb=null,e.o=null,e.p=null,e.q=null,e.r=null,e.$=null,e.ib=null,e.S=null,e.T=null,e.t=null,e.s=null,e.u=null,e.v=null,e.w=null,e.B=null,e.A=null,e.C=null,e.D=null,e.F=null,e.G=null,e.H=null,e.I=null,e.J=null,e.P=null,e.Z=null,e.U=null,e.V=null,e.W=null,e.X=null,e.Y=null,e._=null,e.ab=null,e.cb=null,e.hb=null,e.nb=null,e.lb=null,e.mb=null,e.ob=null,e.pb=null,e.jb=null,e.kb=null,e.N=!1,e.O=!1}function aDn(e,t,i){var s,a,c,b;for(i.Ug("Graph transformation ("+e.a+")",1),b=Hm(t.a),c=new ee(t.b);c.a=g.b.c)&&(g.b=t),(!g.c||t.c<=g.c.c)&&(g.d=g.c,g.c=t),(!g.e||t.d>=g.e.d)&&(g.e=t),(!g.f||t.d<=g.f.d)&&(g.f=t);return s=new mH((WC(),vy)),j7(e,A5t,new kc(se(ie(YM,1),on,382,0,[s]))),b=new mH(C_),j7(e,C5t,new kc(se(ie(YM,1),on,382,0,[b]))),a=new mH(x_),j7(e,x5t,new kc(se(ie(YM,1),on,382,0,[a]))),c=new mH(L2),j7(e,R5t,new kc(se(ie(YM,1),on,382,0,[c]))),Cne(s.c,vy),Cne(a.c,x_),Cne(c.c,L2),Cne(b.c,C_),g.a.c.length=0,eo(g.a,s.c),eo(g.a,Zu(a.c)),eo(g.a,c.c),eo(g.a,Zu(b.c)),g}function fDn(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U;for(t.Ug(x4t,1),W=Ae(je(Qe(e,(Ep(),G_)))),b=Ae(je(Qe(e,(sh(),m5)))),g=f(Qe(e,w5),107),pSe((!e.a&&(e.a=new qe($r,e,10,11)),e.a)),k=lxt((!e.a&&(e.a=new qe($r,e,10,11)),e.a),W,b),!e.a&&(e.a=new qe($r,e,10,11)),_=new ee(k);_.a<_.c.c.length;)for(m=f(Z(_),186),a=new ee(m.a);a.a0&&(e.a=m+(W-1)*c,t.c.b+=e.a,t.f.b+=e.a)),U.a.gc()!=0&&(D=new _Z(1,c),W=N3e(D,t,U,z,t.f.b+m-t.c.b),W>0&&(t.f.b+=m+(W-1)*c))}function pxt(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce;for(k=Ae(je(V(e,(pt(),Iy)))),s=Ae(je(V(e,Z6e))),D=new YJ,Xe(D,Iy,k+s),_=t,oe=_.d,z=_.c.i,ge=_.d.i,X=rme(z.c),_e=rme(ge.c),a=new st,I=X;I<=_e;I++)g=new kb(e),W0(g,(gn(),vo)),Xe(g,(nt(),Ur),_),Xe(g,Oi,(Co(),ya)),Xe(g,jV,D),W=f(yt(e.b,I),30),I==X?r_(g,W.a.c.length-i,W):Oo(g,W),Ce=Ae(je(V(_,Ng))),Ce<0&&(Ce=0,Xe(_,Ng,Ce)),g.o.b=Ce,U=h.Math.floor(Ce/2),b=new ia,so(b,(ft(),wn)),Sl(b,g),b.n.b=U,m=new ia,so(m,_n),Sl(m,g),m.n.b=U,xo(_,b),c=new Fm,ol(c,_),Xe(c,Xs,null),rs(c,m),xo(c,oe),e$n(g,_,c),sn(a.c,c),_=c;return a}function rre(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e;for(m=f(xg(e,(ft(),wn)).Kc().Pb(),12).e,W=f(xg(e,_n).Kc().Pb(),12).g,g=m.c.length,_e=Yd(f(yt(e.j,0),12));g-- >0;){for(z=(Xt(0,m.c.length),f(m.c[0],18)),a=(Xt(0,W.c.length),f(W.c[0],18)),ge=a.d.e,c=il(ge,a,0),M2n(z,a.d,c),rs(a,null),xo(a,null),U=z.a,t&&hr(U,new us(_e)),s=Hn(a.a,0);s.b!=s.d.c;)i=f(Bn(s),8),hr(U,new us(i));for(oe=z.b,D=new ee(a.b);D.ab)&&Zi(e.b,f(X.b,18));++g}c=b}}}function I3e(e,t){var i;if(t==null||Ht(t,Za)||t.length==0&&e.k!=(Cg(),sR))return null;switch(e.k.g){case 1:return hH(t,WA)?(cn(),qA):hH(t,boe)?(cn(),Y1):null;case 2:try{return ot(Ru(t,Qo,Nr))}catch(s){if(s=mi(s),ve(s,130))return null;throw ne(s)}case 4:try{return o_(t)}catch(s){if(s=mi(s),ve(s,130))return null;throw ne(s)}case 3:return t;case 5:return Mvt(e),qEt(e,t);case 6:return Mvt(e),dPn(e,e.a,t);case 7:try{return i=E8n(e),i.cg(t),i}catch(s){if(s=mi(s),ve(s,33))return null;throw ne(s)}default:throw ne(new Us("Invalid type set for this layout option."))}}function P3e(e){var t;switch(e.d){case 1:{if(e.Sj())return e.o!=-2;break}case 2:{if(e.Sj())return e.o==-2;break}case 3:case 5:case 4:case 6:case 7:return e.o>-2;default:return!1}switch(t=e.Rj(),e.p){case 0:return t!=null&&wt(gt(t))!=T$(e.k,0);case 1:return t!=null&&f(t,222).a!=tr(e.k)<<24>>24;case 2:return t!=null&&f(t,180).a!=(tr(e.k)&Ji);case 6:return t!=null&&T$(f(t,168).a,e.k);case 5:return t!=null&&f(t,17).a!=tr(e.k);case 7:return t!=null&&f(t,191).a!=tr(e.k)<<16>>16;case 3:return t!=null&&Ae(je(t))!=e.j;case 4:return t!=null&&f(t,161).a!=e.j;default:return t==null?e.n!=null:!Lr(t,e.n)}}function nM(e,t,i){var s,a,c,b;return e.ol()&&e.nl()&&(b=bZ(e,f(i,58)),Ne(b)!==Ne(i))?(e.xj(t),e.Dj(t,mwt(e,t,b)),e.al()&&(c=(a=f(i,54),e.ml()?e.kl()?a.Th(e.b,Es(f(tn(Xa(e.b),e.Lj()),19)).n,f(tn(Xa(e.b),e.Lj()).Hk(),29).kk(),null):a.Th(e.b,yi(a.Dh(),Es(f(tn(Xa(e.b),e.Lj()),19))),null,null):a.Th(e.b,-1-e.Lj(),null,null)),!f(b,54).Ph()&&(c=(s=f(b,54),e.ml()?e.kl()?s.Rh(e.b,Es(f(tn(Xa(e.b),e.Lj()),19)).n,f(tn(Xa(e.b),e.Lj()).Hk(),29).kk(),c):s.Rh(e.b,yi(s.Dh(),Es(f(tn(Xa(e.b),e.Lj()),19))),null,c):s.Rh(e.b,-1-e.Lj(),null,c))),c&&c.oj()),eu(e.b)&&e.Jj(e.Ij(9,i,b,t,!1)),b):i}function bxt(e){var t,i,s,a,c,b,g,m,_,k;for(s=new st,b=new ee(e.e.a);b.a0&&(b=h.Math.max(b,vyt(e.C.b+s.d.b,a))),k=s,I=a,D=c;e.C&&e.C.c>0&&(W=D+e.C.c,_&&(W+=k.d.c),b=h.Math.max(b,(Kd(),td(ah),h.Math.abs(I-1)<=ah||I==1||isNaN(I)&&isNaN(1)?0:W/(1-I)))),i.n.b=0,i.a.a=b}function wxt(e,t){var i,s,a,c,b,g,m,_,k,I,D,W;if(i=f(Ds(e.b,t),127),m=f(f(Hr(e.r,t),21),87),m.dc()){i.n.d=0,i.n.a=0;return}for(_=e.u.Hc(($c(),Mb)),b=0,e.A.Hc((su(),Vw))&&z3t(e,t),g=m.Kc(),k=null,D=0,I=0;g.Ob();)s=f(g.Pb(),117),c=Ae(je(s.b.of((rB(),IG)))),a=s.b.Mf().b,k?(W=I+k.d.a+e.w+s.d.d,b=h.Math.max(b,(Kd(),td(ah),h.Math.abs(D-c)<=ah||D==c||isNaN(D)&&isNaN(c)?0:W/(c-D)))):e.C&&e.C.d>0&&(b=h.Math.max(b,vyt(e.C.d+s.d.d,c))),k=s,D=c,I=a;e.C&&e.C.a>0&&(W=I+e.C.a,_&&(W+=k.d.a),b=h.Math.max(b,(Kd(),td(ah),h.Math.abs(D-1)<=ah||D==1||isNaN(D)&&isNaN(1)?0:W/(1-D)))),i.n.d=0,i.a.b=b}function pDn(e,t,i,s,a,c,b,g){var m,_,k,I,D,W,U,z,X,oe;if(U=!1,_=Fke(i.q,t.f+t.b-i.q.f),W=s.f>t.b&&g,oe=a-(i.q.e+_-b),I=(m=Q6(s,oe,!1),m.a),W&&I>s.f)return!1;if(W){for(D=0,X=new ee(t.d);X.a=(Xt(c,e.c.length),f(e.c[c],186)).e,!W&&I>t.b&&!k)?!1:((k||W||I<=t.b)&&(k&&I>t.b?(i.d=I,K7(i,rEt(i,I))):(_2t(i.q,_),i.c=!0),K7(s,a-(i.s+i.r)),TN(s,i.q.e+i.q.d,t.f),PW(t,s),e.c.length>c&&(PN((Xt(c,e.c.length),f(e.c[c],186)),s),(Xt(c,e.c.length),f(e.c[c],186)).a.c.length==0&&pg(e,c)),U=!0),U)}function mxt(e,t,i){var s,a,c,b,g,m;for(this.g=e,g=t.d.length,m=i.d.length,this.d=Fe(Op,$g,10,g+m,0,1),b=0;b0?Aee(this,this.f/this.a):qd(t.g,t.d[0]).a!=null&&qd(i.g,i.d[0]).a!=null?Aee(this,(Ae(qd(t.g,t.d[0]).a)+Ae(qd(i.g,i.d[0]).a))/2):qd(t.g,t.d[0]).a!=null?Aee(this,qd(t.g,t.d[0]).a):qd(i.g,i.d[0]).a!=null&&Aee(this,qd(i.g,i.d[0]).a)}function bDn(e,t){var i,s,a,c,b,g,m,_,k,I;for(e.a=new Ypt(YRn(C5)),s=new ee(t.a);s.a=1&&(X-b>0&&I>=0?(m.n.a+=z,m.n.b+=c*b):X-b<0&&k>=0&&(m.n.a+=z*X,m.n.b+=c));e.o.a=t.a,e.o.b=t.b,Xe(e,(pt(),Dw),(su(),s=f(kd(N5),9),new Uu(s,f(Yf(s,s.length),9),0)))}function mDn(e,t,i,s,a,c){var b;if(!(t==null||!_te(t,vOe,_Oe)))throw ne(new hn("invalid scheme: "+t));if(!e&&!(i!=null&&Ph(i,Qa(35))==-1&&i.length>0&&(pn(0,i.length),i.charCodeAt(0)!=47)))throw ne(new hn("invalid opaquePart: "+i));if(e&&!(t!=null&&UO(Fz,t.toLowerCase()))&&!(i==null||!_te(i,j5,F5)))throw ne(new hn(e$t+i));if(e&&t!=null&&UO(Fz,t.toLowerCase())&&!Y$n(i))throw ne(new hn(e$t+i));if(!rAn(s))throw ne(new hn("invalid device: "+s));if(!Wxn(a))throw b=a==null?"invalid segments: null":"invalid segment: "+Lxn(a),ne(new hn(b));if(!(c==null||Ph(c,Qa(35))==-1))throw ne(new hn("invalid query: "+c))}function yDn(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe;if(i.Ug("Network simplex layering",1),e.b=t,oe=f(V(t,(pt(),t5)),17).a*4,X=e.b.a,X.c.length<1){i.Vg();return}for(c=gNn(e,X),z=null,a=Hn(c,0);a.b!=a.d.c;){for(s=f(Bn(a),15),g=oe*oo(h.Math.sqrt(s.gc())),b=INn(s),Fne(Q0e(ybn(Z0e(qQ(b),g),z),!0),i.eh(1)),D=e.b.b,U=new ee(b.a);U.a1)for(z=Fe(Xn,wr,28,e.b.b.c.length,15,1),I=0,_=new ee(e.b.b);_.a<_.c.c.length;)m=f(Z(_),30),z[I++]=m.a.c.length}X.c.length=0,e.a=null,e.b=null,e.c=null,i.Vg()}function vDn(e,t){var i,s,a,c,b,g,m,_,k,I;for(k=new st,I=new qS,c=null,a=0,s=0;s0){pH(e,i,0),i.a+=String.fromCharCode(s),a=WAn(t,c),pH(e,i,a),c+=a-1;continue}s==39?c+10&&U.a<=0){m.c.length=0,sn(m.c,U);break}W=U.i-U.d,W>=g&&(W>g&&(m.c.length=0,g=W),sn(m.c,U))}m.c.length!=0&&(b=f(yt(m,SH(a,m.c.length)),118),_e.a.Bc(b)!=null,b.g=k++,v3e(b,t,i,s),m.c.length=0)}for(X=e.c.length+1,D=new ee(e);D.ato||t.o==Fw&&k=g&&a<=m)g<=a&&c<=m?(i[k++]=a,i[k++]=c,s+=2):g<=a?(i[k++]=a,i[k++]=m,e.b[s]=m+1,b+=2):c<=m?(i[k++]=g,i[k++]=c,s+=2):(i[k++]=g,i[k++]=m,e.b[s]=m+1);else if(mG1)&&g<10);twe(e.c,new qVe),Sxt(e),pvn(e.c),cDn(e.f)}function ADn(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z;for(i=f(V(e,(pt(),Oi)),101),b=e.f,c=e.d,g=b.a+c.b+c.c,m=0-c.d-e.c.b,k=b.b+c.d+c.a-e.c.b,_=new st,I=new st,a=new ee(t);a.a=2){for(m=Hn(i,0),b=f(Bn(m),8),g=f(Bn(m),8);g.a0&&hN(_,!0,(Xi(),al)),g.k==(gn(),Ui)&&sbt(_),xr(e.f,g,t)}}function IDn(e){var t,i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce;for(a=f(V(e,(ei(),h5)),27),_=Nr,k=Nr,g=Qo,m=Qo,_e=Hn(e.b,0);_e.b!=_e.d.c;)oe=f(Bn(_e),40),W=oe.e,U=oe.f,_=h.Math.min(_,W.a-U.a/2),k=h.Math.min(k,W.b-U.b/2),g=h.Math.max(g,W.a+U.a/2),m=h.Math.max(m,W.b+U.b/2);for(D=f(Qe(a,(Il(),u5e)),107),ge=Hn(e.b,0);ge.b!=ge.d.c;)oe=f(Bn(ge),40),I=V(oe,h5),ve(I,207)&&(c=f(I,27),Wu(c,oe.e.a,oe.e.b),VN(c,oe));for(X=Hn(e.a,0);X.b!=X.d.c;)z=f(Bn(X),65),s=f(V(z,h5),74),s&&(t=z.a,i=w2(s,!0,!0),QN(t,i));Ce=g-_+(D.b+D.c),b=m-k+(D.d+D.a),wt(gt(Qe(a,(Er(),V_))))||ly(a,Ce,b,!1,!1),zr(a,aE,Ce-(D.b+D.c)),zr(a,lE,b-(D.d+D.a))}function kxt(e,t){var i,s,a,c,b,g,m,_,k,I;for(m=!0,a=0,_=e.g[t.p],k=t.o.b+e.o,i=e.d[t.p][2],Ku(e.b,_,ot(f(yt(e.b,_),17).a-1+i)),Ku(e.c,_,Ae(je(yt(e.c,_)))-k+i*e.f),++_,_>=e.j?(++e.j,lt(e.b,ot(1)),lt(e.c,k)):(s=e.d[t.p][1],Ku(e.b,_,ot(f(yt(e.b,_),17).a+1-s)),Ku(e.c,_,Ae(je(yt(e.c,_)))+k-s*e.f)),(e.r==(Sf(),h9)&&(f(yt(e.b,_),17).a>e.k||f(yt(e.b,_-1),17).a>e.k)||e.r==p9&&(Ae(je(yt(e.c,_)))>e.n||Ae(je(yt(e.c,_-1)))>e.n))&&(m=!1),b=new kn(xn(go(t).a.Kc(),new O));Un(b);)c=f(On(b),18),g=c.c.i,e.g[g.p]==_&&(I=kxt(e,g),a=a+f(I.a,17).a,m=m&&wt(gt(I.b)));return e.g[t.p]=_,a=a+e.d[t.p][0],new io(ot(a),(cn(),!!m))}function Rxt(e,t){var i,s,a,c,b;i=Ae(je(V(t,(pt(),ud)))),i<2&&Xe(t,ud,2),s=f(V(t,$u),88),s==(Xi(),wh)&&Xe(t,$u,rH(t)),a=f(V(t,HOt),17),a.a==0?Xe(t,(nt(),tR),new Ete):Xe(t,(nt(),tR),new sW(a.a)),c=gt(V(t,QI)),c==null&&Xe(t,QI,(cn(),Ne(V(t,Ob))===Ne((_b(),C4)))),Mi(new Wt(null,new Vt(t.a,16)),new f0e(e)),Mi(El(new Wt(null,new Vt(t.b,16)),new S1e),new d0e(e)),b=new yxt(t),Xe(t,(nt(),K2),b),T7(e.a),Cd(e.a,(Yo(),cd),f(V(t,Ow),188)),Cd(e.a,Pp,f(V(t,Mw),188)),Cd(e.a,sa,f(V(t,YI),188)),Cd(e.a,ga,f(V(t,DV),188)),Cd(e.a,ll,IRn(f(V(t,Ob),223))),ome(e.a,xjn(t)),Xe(t,Rle,tM(e.a,t))}function N3e(e,t,i,s,a){var c,b,g,m,_,k,I,D,W,U,z,X,oe;for(I=new Fn,b=new st,kEt(e,i,e.d.Ag(),b,I),kEt(e,s,e.d.Bg(),b,I),e.b=.2*(z=Tkt(El(new Wt(null,new Vt(b,16)),new OJe)),X=Tkt(El(new Wt(null,new Vt(b,16)),new NJe)),h.Math.min(z,X)),c=0,g=0;g=2&&(oe=qkt(b,!0,D),!e.e&&(e.e=new oot(e)),LAn(e.e,oe,b,e.b)),I2t(b,D),LDn(b),W=-1,k=new ee(b);k.ag)}function xxt(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge;for(_=hi,k=hi,g=to,m=to,D=new ee(t.i);D.a-1){for(a=Hn(g,0);a.b!=a.d.c;)s=f(Bn(a),131),s.v=b;for(;g.b!=0;)for(s=f(ene(g,0),131),i=new ee(s.i);i.a-1){for(c=new ee(g);c.a0)&&(Y1e(m,h.Math.min(m.o,a.o-1)),Vj(m,m.i-1),m.i==0&&sn(g.c,m))}}function Axt(e,t,i,s,a){var c,b,g,m;return m=hi,b=!1,g=R3e(e,uo(new tt(t.a,t.b),e),Mr(new tt(i.a,i.b),a),uo(new tt(s.a,s.b),i)),c=!!g&&!(h.Math.abs(g.a-e.a)<=py&&h.Math.abs(g.b-e.b)<=py||h.Math.abs(g.a-t.a)<=py&&h.Math.abs(g.b-t.b)<=py),g=R3e(e,uo(new tt(t.a,t.b),e),i,a),g&&((h.Math.abs(g.a-e.a)<=py&&h.Math.abs(g.b-e.b)<=py)==(h.Math.abs(g.a-t.a)<=py&&h.Math.abs(g.b-t.b)<=py)||c?m=h.Math.min(m,Y$(uo(g,i))):b=!0),g=R3e(e,uo(new tt(t.a,t.b),e),s,a),g&&(b||(h.Math.abs(g.a-e.a)<=py&&h.Math.abs(g.b-e.b)<=py)==(h.Math.abs(g.a-t.a)<=py&&h.Math.abs(g.b-t.b)<=py)||c)&&(m=h.Math.min(m,Y$(uo(g,s)))),m}function Txt(e){vm(e,new gw(lF(wm(pm(gm(bm(new F0,z1),xAt),"Minimizes the stress within a layout using stress majorization. Stress exists if the euclidean distance between a pair of nodes doesn't match their graph theoretic distance, that is, the shortest path between the two nodes. The method allows to specify individual edge lengths."),new UVe),Ba))),it(e,z1,uI,dt(sTe)),it(e,z1,kU,(cn(),!0)),it(e,z1,A2,dt(f5t)),it(e,z1,B3,dt(d5t)),it(e,z1,F3,dt(h5t)),it(e,z1,NA,dt(u5t)),it(e,z1,fI,dt(aTe)),it(e,z1,MA,dt(p5t)),it(e,z1,IRe,dt(oTe)),it(e,z1,ORe,dt(rTe)),it(e,z1,NRe,dt(iTe)),it(e,z1,MRe,dt(lTe)),it(e,z1,PRe,dt(BG))}function jDn(e){var t,i,s,a,c,b,g,m;for(t=null,s=new ee(e);s.a0&&i.c==0&&(!t&&(t=new st),sn(t.c,i));if(t)for(;t.c.length!=0;){if(i=f(pg(t,0),239),i.b&&i.b.c.length>0){for(c=(!i.b&&(i.b=new st),new ee(i.b));c.ail(e,i,0))return new io(a,i)}else if(Ae(qd(a.g,a.d[0]).a)>Ae(qd(i.g,i.d[0]).a))return new io(a,i)}for(g=(!i.e&&(i.e=new st),i.e).Kc();g.Ob();)b=f(g.Pb(),239),m=(!b.b&&(b.b=new st),b.b),Uv(0,m.c.length),m$(m.c,0,i),b.c==m.c.length&&sn(t.c,b)}return null}function FDn(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe;for(t.Ug("Interactive crossing minimization",1),b=0,c=new ee(e.b);c.a0&&(i+=m.n.a+m.o.a/2,++I),U=new ee(m.j);U.a0&&(i/=I),oe=Fe(Ro,js,28,s.a.c.length,15,1),g=0,_=new ee(s.a);_.a<_.c.c.length;)m=f(Z(_),10),m.p=g++,oe[m.p]=TDn(m,i),m.k==(gn(),vo)&&Xe(m,(nt(),F$e),oe[m.p]);qt(),Hi(s.a,new Lit(oe)),uRt(X,D,b,!0),++b}t.Vg()}function tI(e,t){var i,s,a,c,b,g,m,_,k;if(t.e==5){Ext(e,t);return}if(_=t,!(_.b==null||e.b==null)){for(b2(e),Z6(e),b2(_),Z6(_),i=Fe(Xn,wr,28,e.b.length+_.b.length,15,1),k=0,s=0,b=0;s=g&&a<=m)g<=a&&c<=m?s+=2:g<=a?(e.b[s]=m+1,b+=2):c<=m?(i[k++]=a,i[k++]=g-1,s+=2):(i[k++]=a,i[k++]=g-1,e.b[s]=m+1,b+=2);else if(m2?(k=new st,eo(k,new dg(oe,1,oe.b)),c=gCt(k,_e+e.a),ge=new kne(c),ol(ge,t),sn(i.c,ge)):s?ge=f(En(e.b,Sp(t)),272):ge=f(En(e.b,F1(t)),272),m=Sp(t),s&&(m=F1(t)),b=jIn(X,m),_=_e+e.a,b.a?(_+=h.Math.abs(X.b-I.b),z=new tt(I.a,(I.b+X.b)/2)):(_+=h.Math.abs(X.a-I.a),z=new tt((I.a+X.a)/2,I.b)),s?xr(e.d,t,new Q2e(ge,b,z,_)):xr(e.c,t,new Q2e(ge,b,z,_)),xr(e.b,t,ge),U=(!t.n&&(t.n=new qe(Fs,t,1,7)),t.n),W=new Sn(U);W.e!=W.i.gc();)D=f(Cn(W),135),a=qN(e,D,!0,0,0),sn(i.c,a)}function BDn(e){var t,i,s,a,c,b,g;if(!e.A.dc()){if(e.A.Hc((su(),U9))&&(f(Ds(e.b,(ft(),bn)),127).k=!0,f(Ds(e.b,jn),127).k=!0,t=e.q!=(Co(),jp)&&e.q!=ya,q1e(f(Ds(e.b,_n),127),t),q1e(f(Ds(e.b,wn),127),t),q1e(e.g,t),e.A.Hc(Vw)&&(f(Ds(e.b,bn),127).j=!0,f(Ds(e.b,jn),127).j=!0,f(Ds(e.b,_n),127).k=!0,f(Ds(e.b,wn),127).k=!0,e.g.k=!0)),e.A.Hc(H9))for(e.a.j=!0,e.a.k=!0,e.g.j=!0,e.g.k=!0,g=e.B.Hc((Gc(),M5)),a=Pte(),c=0,b=a.length;c0),f(k.a.Xb(k.c=--k.b),18));c!=s&&k.b>0;)e.a[c.p]=!0,e.a[s.p]=!0,c=(In(k.b>0),f(k.a.Xb(k.c=--k.b),18));k.b>0&&iu(k)}}function Ixt(e,t,i){var s,a,c,b,g,m,_,k,I,D,W;if(!e.b)return!1;for(b=null,D=null,m=new pee(null,null),a=1,m.a[1]=e.b,I=m;I.a[a];)_=a,g=D,D=I,I=I.a[a],s=e.a.Ne(t,I.d),a=s<0?0:1,s==0&&(!i.c||Ul(I.e,i.d))&&(b=I),!(I&&I.b)&&!Cv(I.a[a])&&(Cv(I.a[1-a])?D=D.a[_]=FW(I,a):Cv(I.a[1-a])||(W=D.a[1-_],W&&(!Cv(W.a[1-_])&&!Cv(W.a[_])?(D.b=!1,W.b=!0,I.b=!0):(c=g.a[1]==D?1:0,Cv(W.a[_])?g.a[c]=l1t(D,_):Cv(W.a[1-_])&&(g.a[c]=FW(D,_)),I.b=g.a[c].b=!0,g.a[c].a[0].b=!1,g.a[c].a[1].b=!1))));return b&&(i.b=!0,i.d=b.e,I!=b&&(k=new pee(I.d,I.e),U6n(e,m,b,k),D==b&&(D=k)),D.a[D.a[1]==I?1:0]=I.a[I.a[0]?0:1],--e.c),e.b=m.a[1],e.b&&(e.b.b=!1),i.b}function UDn(e){var t,i,s,a,c,b,g,m,_,k,I,D;for(a=new ee(e.a.a.b);a.a0?a-=864e5:a+=864e5,m=new Ume(is(Gl(t.q.getTime()),a))),k=new jk,_=e.a.length,c=0;c<_;)if(s=Jo(e.a,c),s>=97&&s<=122||s>=65&&s<=90){for(b=c+1;b<_&&Jo(e.a,b)==s;++b);Ujn(k,s,b-c,g,m,i),c=b}else if(s==39){if(++c,c<_&&Jo(e.a,c)==39){k.a+="'",++c;continue}for(I=!1;!I;){for(b=c;b<_&&Jo(e.a,b)!=39;)++b;if(b>=_)throw ne(new hn("Missing trailing '"));b+1<_&&Jo(e.a,b+1)==39?++b:I=!0,br(k,Vu(e.a,c,b)),c=b+1}}else k.a+=String.fromCharCode(s),++c;return k.a}function VDn(){kr(Y_,new UZe),kr(_r,new eet),kr(Pf,new det),kr(Wd,new met),kr(Oce,new yet),kr(Bz,new vet),kr(Db,new _et),kr(D5,new Eet),kr(q9,new OZe),kr(Cce,new NZe),kr(d0,new MZe),kr(Of,new DZe),kr(Bd,new LZe),kr(Ly,new jZe),kr(Q_,new FZe),kr(rc,new BZe),kr(J_,new WZe),kr(Ll,new HZe),kr(Os,new GZe),kr(Ga,new VZe),kr(Li,new zZe),kr(ie(_c,1),new KZe),kr(G3,new qZe),kr(NI,new XZe),kr(kG,new JZe),kr(QOe,new YZe),kr(Qi,new QZe),kr(hOe,new ZZe),kr(gOe,new tet),kr(FOe,new net),kr(Wz,new ret),kr(XA,new iet),kr(Ko,new oet),kr(jAe,new set),kr(my,new aet),kr(FAe,new cet),kr(MOe,new uet),kr(ZOe,new fet),kr(yy,new het),kr(_t,new pet),kr(bOe,new bet),kr(e7e,new get)}function Oxt(e,t){var i,s,a,c,b,g,m,_,k;if(e==null)return Za;if(m=t.a.zc(e,t),m!=null)return"[...]";for(i=new cw(ds,"[","]"),a=e,c=0,b=a.length;c=14&&k<=16))?t.a._b(s)?(i.a?br(i.a,i.b):i.a=new gu(i.d),I$(i.a,"[...]")):(g=ow(s),_=new H$(t),bb(i,Oxt(g,_))):ve(s,183)?bb(i,_5n(f(s,183))):ve(s,195)?bb(i,s6n(f(s,195))):ve(s,201)?bb(i,gIn(f(s,201))):ve(s,2111)?bb(i,l6n(f(s,2111))):ve(s,53)?bb(i,v5n(f(s,53))):ve(s,376)?bb(i,j5n(f(s,376))):ve(s,846)?bb(i,y5n(f(s,846))):ve(s,109)&&bb(i,m5n(f(s,109))):bb(i,s==null?Za:dl(s));return i.a?i.e.length==0?i.a.a:i.a.a+(""+i.e):i.c}function vA(e,t){var i,s,a,c;c=e.F,t==null?(e.F=null,KC(e,null)):(e.F=(mn(t),t),s=Ph(t,Qa(60)),s!=-1?(a=(Mo(0,s,t.length),t.substr(0,s)),Ph(t,Qa(46))==-1&&!Ht(a,$3)&&!Ht(a,RI)&&!Ht(a,aG)&&!Ht(a,xI)&&!Ht(a,CI)&&!Ht(a,AI)&&!Ht(a,TI)&&!Ht(a,$I)&&(a=h$t),i=eB(t,Qa(62)),i!=-1&&(a+=""+(pn(i+1,t.length+1),t.substr(i+1))),KC(e,a)):(a=t,Ph(t,Qa(46))==-1&&(s=Ph(t,Qa(91)),s!=-1&&(a=(Mo(0,s,t.length),t.substr(0,s))),!Ht(a,$3)&&!Ht(a,RI)&&!Ht(a,aG)&&!Ht(a,xI)&&!Ht(a,CI)&&!Ht(a,AI)&&!Ht(a,TI)&&!Ht(a,$I)?(a=h$t,s!=-1&&(a+=""+(pn(s,t.length+1),t.substr(s)))):a=t),KC(e,a),a==t&&(e.F=e.D))),e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,5,c,t))}function Nxt(e,t){var i,s,a,c,b,g,m,_,k,I;if(m=t.length-1,g=(pn(m,t.length),t.charCodeAt(m)),g==93){if(b=Ph(t,Qa(91)),b>=0)return a=qCn(e,(Mo(1,b,t.length),t.substr(1,b-1))),k=(Mo(b+1,m,t.length),t.substr(b+1,m-(b+1))),vjn(e,k,a)}else{if(i=-1,XAe==null&&(XAe=new RegExp("\\d")),XAe.test(String.fromCharCode(g))&&(i=lye(t,Qa(46),m-1),i>=0)){s=f(aee(e,Smt(e,(Mo(1,i,t.length),t.substr(1,i-1))),!1),61),_=0;try{_=Ru((pn(i+1,t.length+1),t.substr(i+1)),Qo,Nr)}catch(D){throw D=mi(D),ve(D,130)?(c=D,ne(new mW(c))):ne(D)}if(_>16==-10?i=f(e.Cb,292).Yk(t,i):e.Db>>16==-15&&(!t&&(t=(Kt(),vh)),!_&&(_=(Kt(),vh)),e.Cb.Yh()&&(m=new gb(e.Cb,1,13,_,t,Rg(Wc(f(e.Cb,62)),e),!1),i?i.nj(m):i=m));else if(ve(e.Cb,90))e.Db>>16==-23&&(ve(t,90)||(t=(Kt(),Mf)),ve(_,90)||(_=(Kt(),Mf)),e.Cb.Yh()&&(m=new gb(e.Cb,1,10,_,t,Rg(ra(f(e.Cb,29)),e),!1),i?i.nj(m):i=m));else if(ve(e.Cb,457))for(g=f(e.Cb,850),b=(!g.b&&(g.b=new Yj(new SY)),g.b),c=(s=new aw(new U0(b.a).a),new Qj(s));c.a.b;)a=f(Xm(c.a).ld(),89),i=_A(a,HH(a,g),i)}return i}function qDn(e,t){var i,s,a,c,b,g,m,_,k,I,D;for(b=wt(gt(Qe(e,(pt(),D_)))),D=f(Qe(e,j_),21),m=!1,_=!1,I=new Sn((!e.c&&(e.c=new qe(Mc,e,9,9)),e.c));I.e!=I.i.gc()&&(!m||!_);){for(c=f(Cn(I),123),g=0,a=wp(_u(se(ie(Tu,1),on,20,0,[(!c.d&&(c.d=new en(Fi,c,8,5)),c.d),(!c.e&&(c.e=new en(Fi,c,7,4)),c.e)])));Un(a)&&(s=f(On(a),74),k=b&&ry(s)&&wt(gt(Qe(s,Nw))),i=dxt((!s.b&&(s.b=new en(Dn,s,4,7)),s.b),c)?e==di(sl(f(Se((!s.c&&(s.c=new en(Dn,s,5,8)),s.c),0),84))):e==di(sl(f(Se((!s.b&&(s.b=new en(Dn,s,4,7)),s.b),0),84))),!((k||i)&&(++g,g>1))););(g>0||D.Hc(($c(),Mb))&&(!c.n&&(c.n=new qe(Fs,c,1,7)),c.n).i>0)&&(m=!0),g>1&&(_=!0)}m&&t.Fc((As(),af)),_&&t.Fc((As(),GI))}function Mxt(e){var t,i,s,a,c,b,g,m,_,k,I,D;if(D=f(Qe(e,(Er(),Hw)),21),D.dc())return null;if(g=0,b=0,D.Hc((su(),U9))){for(k=f(Qe(e,x5),101),s=2,i=2,a=2,c=2,t=di(e)?f(Qe(di(e),Ww),88):f(Qe(e,Ww),88),_=new Sn((!e.c&&(e.c=new qe(Mc,e,9,9)),e.c));_.e!=_.i.gc();)if(m=f(Cn(_),123),I=f(Qe(m,dE),64),I==(ft(),Cl)&&(I=y3e(m,t),zr(m,dE,I)),k==(Co(),ya))switch(I.g){case 1:s=h.Math.max(s,m.i+m.g);break;case 2:i=h.Math.max(i,m.j+m.f);break;case 3:a=h.Math.max(a,m.i+m.g);break;case 4:c=h.Math.max(c,m.j+m.f)}else switch(I.g){case 1:s+=m.g+2;break;case 2:i+=m.f+2;break;case 3:a+=m.g+2;break;case 4:c+=m.f+2}g=h.Math.max(s,a),b=h.Math.max(i,c)}return ly(e,g,b,!0,!0)}function ire(e,t,i,s,a){var c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce;for(ge=f(fl(xW(Br(new Wt(null,new Vt(t.d,16)),new Rit(i)),new xit(i)),Cc(new K,new B,new Qt,se(ie(qs,1),Je,108,0,[(Tc(),pl)]))),15),I=Nr,k=Qo,m=new ee(t.b.j);m.a0,_?_&&(D=oe.p,b?++D:--D,I=f(yt(oe.c.a,D),10),s=ovt(I),W=!(Ane(s,Ze,i[0])||Tpt(s,Ze,i[0]))):W=!0),U=!1,Ke=t.D.i,Ke&&Ke.c&&g.e&&(k=b&&Ke.p>0||!b&&Ke.p=0){for(m=null,g=new No(k.a,_+1);g.bb?1:km(isNaN(0),isNaN(b)))<0&&(td(Qh),(h.Math.abs(b-1)<=Qh||b==1||isNaN(b)&&isNaN(1)?0:b<1?-1:b>1?1:km(isNaN(b),isNaN(1)))<0)&&(td(Qh),(h.Math.abs(0-g)<=Qh||g==0||isNaN(0)&&isNaN(g)?0:0g?1:km(isNaN(0),isNaN(g)))<0)&&(td(Qh),(h.Math.abs(g-1)<=Qh||g==1||isNaN(g)&&isNaN(1)?0:g<1?-1:g>1?1:km(isNaN(g),isNaN(1)))<0)),c)}function eLn(e){var t,i,s,a;if(i=e.D!=null?e.D:e.B,t=Ph(i,Qa(91)),t!=-1){s=(Mo(0,t,i.length),i.substr(0,t)),a=new ig;do a.a+="[";while((t=nC(i,91,++t))!=-1);Ht(s,$3)?a.a+="Z":Ht(s,RI)?a.a+="B":Ht(s,aG)?a.a+="C":Ht(s,xI)?a.a+="D":Ht(s,CI)?a.a+="F":Ht(s,AI)?a.a+="I":Ht(s,TI)?a.a+="J":Ht(s,$I)?a.a+="S":(a.a+="L",a.a+=""+s,a.a+=";");try{return null}catch(c){if(c=mi(c),!ve(c,63))throw ne(c)}}else if(Ph(i,Qa(46))==-1){if(Ht(i,$3))return Xc;if(Ht(i,RI))return _c;if(Ht(i,aG))return df;if(Ht(i,xI))return Ro;if(Ht(i,CI))return nS;if(Ht(i,AI))return Xn;if(Ht(i,TI))return m0;if(Ht(i,$I))return mE}return null}function tLn(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ut;for(e.e=t,g=t8n(t),Ze=new st,s=new ee(g);s.a=0&&z=_.c.c.length?k=o_e((gn(),ji),vo):k=o_e((gn(),vo),vo),k*=2,c=i.a.g,i.a.g=h.Math.max(c,c+(k-c)),b=i.b.g,i.b.g=h.Math.max(b,b+(k-b)),a=t}}function oLn(e){var t,i,s,a;for(Mi(Br(new Wt(null,new Vt(e.a.b,16)),new Uqe),new Gqe),B$n(e),Mi(Br(new Wt(null,new Vt(e.a.b,16)),new Vqe),new zqe),e.c==(_b(),uR)&&(Mi(Br(El(new Wt(null,new Vt(new H0(e.f),1)),new Kqe),new qqe),new mit(e)),Mi(Br(nl(El(El(new Wt(null,new Vt(e.d.b,16)),new Xqe),new Jqe),new Yqe),new Qqe),new vit(e))),a=new tt(hi,hi),t=new tt(to,to),s=new ee(e.a.b);s.a0&&(t.a+=ds),aU(f(Cn(g),167),t);for(t.a+=hie,m=new Kk((!s.c&&(s.c=new en(Dn,s,5,8)),s.c));m.e!=m.i.gc();)m.e>0&&(t.a+=ds),aU(f(Cn(m),167),t);t.a+=")"}}function sLn(e,t,i){var s,a,c,b,g,m,_,k;for(m=new Sn((!e.a&&(e.a=new qe($r,e,10,11)),e.a));m.e!=m.i.gc();)for(g=f(Cn(m),27),a=new kn(xn(Rb(g).a.Kc(),new O));Un(a);){if(s=f(On(a),74),!s.b&&(s.b=new en(Dn,s,4,7)),!(s.b.i<=1&&(!s.c&&(s.c=new en(Dn,s,5,8)),s.c.i<=1)))throw ne(new Dk("Graph must not contain hyperedges."));if(!W6(s)&&g!=sl(f(Se((!s.c&&(s.c=new en(Dn,s,5,8)),s.c),0),84)))for(_=new Ldt,ol(_,s),Xe(_,(P1(),q3),s),Khn(_,f(tl(xs(i.f,g)),153)),Jhn(_,f(En(i,sl(f(Se((!s.c&&(s.c=new en(Dn,s,5,8)),s.c),0),84))),153)),lt(t.c,_),b=new Sn((!s.n&&(s.n=new qe(Fs,s,1,7)),s.n));b.e!=b.i.gc();)c=f(Cn(b),135),k=new F1t(_,c.a),ol(k,c),Xe(k,q3,c),k.e.a=h.Math.max(c.g,1),k.e.b=h.Math.max(c.f,1),k3e(k),lt(t.d,k)}}function lLn(e,t,i){var s,a,c,b,g,m,_,k,I,D;switch(i.Ug("Node promotion heuristic",1),e.i=t,e.r=f(V(t,(pt(),r0)),243),e.r!=(Sf(),Oy)&&e.r!=W_?NLn(e):s7n(e),k=f(V(e.i,F6e),17).a,c=new NKe,e.r.g){case 2:case 1:yA(e,c);break;case 3:for(e.r=VV,yA(e,c),m=0,g=new ee(e.b);g.ae.k&&(e.r=h9,yA(e,c));break;case 4:for(e.r=VV,yA(e,c),_=0,a=new ee(e.c);a.ae.n&&(e.r=p9,yA(e,c));break;case 6:D=oo(h.Math.ceil(e.g.length*k/100)),yA(e,new sit(D));break;case 5:I=oo(h.Math.ceil(e.e*k/100)),yA(e,new lit(I));break;case 8:yCt(e,!0);break;case 9:yCt(e,!1);break;default:yA(e,c)}e.r!=Oy&&e.r!=W_?$On(e,t):J7n(e,t),i.Vg()}function aLn(e){var t,i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e;for(I=e.b,k=new No(I,0),Dv(k,new ca(e)),ge=!1,b=1;k.b0&&(D.d+=k.n.d,D.d+=k.d),D.a>0&&(D.a+=k.n.a,D.a+=k.d),D.b>0&&(D.b+=k.n.b,D.b+=k.d),D.c>0&&(D.c+=k.n.c,D.c+=k.d),D}function Lxt(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U;for(D=i.d,I=i.c,c=new tt(i.f.a+i.d.b+i.d.c,i.f.b+i.d.d+i.d.a),b=c.b,_=new ee(e.a);_.a<_.c.c.length;)if(g=f(Z(_),10),g.k==(gn(),Ui)){switch(s=f(V(g,(nt(),Dl)),64),a=f(V(g,D$e),8),k=g.n,s.g){case 2:k.a=i.f.a+D.c-I.a;break;case 4:k.a=-I.a-D.b}switch(U=0,s.g){case 2:case 4:t==(Co(),jp)?(W=Ae(je(V(g,Ry))),k.b=c.b*W-f(V(g,(pt(),$y)),8).b,U=k.b+a.b,KW(g,!1,!0)):t==ya&&(k.b=Ae(je(V(g,Ry)))-f(V(g,(pt(),$y)),8).b,U=k.b+a.b,KW(g,!1,!0))}b=h.Math.max(b,U)}for(i.f.b+=b-c.b,m=new ee(e.a);m.a0&&(e.c[t.c.p][t.p].d+=Uc(e.i,24)*bM*.07000000029802322-.03500000014901161,e.c[t.c.p][t.p].a=e.c[t.c.p][t.p].d/e.c[t.c.p][t.p].b)}}function fLn(e){var t,i,s,a,c,b,g,m,_,k,I,D,W,U,z,X;for(U=new ee(e);U.as.d,s.d=h.Math.max(s.d,t),g&&i&&(s.d=h.Math.max(s.d,s.a),s.a=s.d+a);break;case 3:i=t>s.a,s.a=h.Math.max(s.a,t),g&&i&&(s.a=h.Math.max(s.a,s.d),s.d=s.a+a);break;case 2:i=t>s.c,s.c=h.Math.max(s.c,t),g&&i&&(s.c=h.Math.max(s.b,s.c),s.b=s.c+a);break;case 4:i=t>s.b,s.b=h.Math.max(s.b,t),g&&i&&(s.b=h.Math.max(s.b,s.c),s.c=s.b+a)}}}function Fxt(e,t){var i,s,a,c,b,g,m,_,k;return _="",t.length==0?e.ne(eRe,gre,-1,-1):(k=s_(t),Ht(k.substr(0,3),"at ")&&(k=(pn(3,k.length+1),k.substr(3))),k=k.replace(/\[.*?\]/g,""),b=k.indexOf("("),b==-1?(b=k.indexOf("@"),b==-1?(_=k,k=""):(_=s_((pn(b+1,k.length+1),k.substr(b+1))),k=s_((Mo(0,b,k.length),k.substr(0,b))))):(i=k.indexOf(")",b),_=(Mo(b+1,i,k.length),k.substr(b+1,i-(b+1))),k=s_((Mo(0,b,k.length),k.substr(0,b)))),b=Ph(k,Qa(46)),b!=-1&&(k=(pn(b+1,k.length+1),k.substr(b+1))),(k.length==0||Ht(k,"Anonymous function"))&&(k=gre),g=eB(_,Qa(58)),a=lye(_,Qa(58),g-1),m=-1,s=-1,c=eRe,g!=-1&&a!=-1&&(c=(Mo(0,a,_.length),_.substr(0,a)),m=ndt((Mo(a+1,g,_.length),_.substr(a+1,g-(a+1)))),s=ndt((pn(g+1,_.length+1),_.substr(g+1)))),e.ne(c,k,m,s))}function pLn(e){var t,i,s,a,c,b,g,m,_,k,I;for(_=new ee(e);_.a<_.c.c.length;){switch(m=f(Z(_),10),b=f(V(m,(pt(),Ha)),171),c=null,b.g){case 1:case 2:c=(uw(),H2);break;case 3:case 4:c=(uw(),o4)}if(c)Xe(m,(nt(),_V),(uw(),H2)),c==o4?KH(m,b,(Cs(),Pc)):c==H2&&KH(m,b,(Cs(),Ta));else if(HS(f(V(m,Oi),101))&&m.j.c.length!=0){for(t=!0,I=new ee(m.j);I.a0||k.j==wn&&k.e.c.length-k.g.c.length<0)){t=!1;break}for(a=new ee(k.g);a.a=_&&Ke>=X&&(D+=U.n.b+z.n.b+z.a.b-Ce,++g));if(i)for(b=new ee(ge.e);b.a=_&&Ke>=X&&(D+=U.n.b+z.n.b+z.a.b-Ce,++g))}g>0&&(Ze+=D/g,++W)}W>0?(t.a=a*Ze/W,t.g=W):(t.a=0,t.g=0)}function gLn(e){var t,i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ut;for(c=e.f.b,D=c.a,k=c.b,U=e.e.g,W=e.e.f,GS(e.e,c.a,c.b),Ze=D/U,ut=k/W,_=new Sn(FB(e.e));_.e!=_.i.gc();)m=f(Cn(_),135),Da(m,m.i*Ze),La(m,m.j*ut);for(ge=new Sn(AZ(e.e));ge.e!=ge.i.gc();)oe=f(Cn(ge),123),Ce=oe.i,Ke=oe.j,Ce>0&&Da(oe,Ce*Ze),Ke>0&&La(oe,Ke*ut);for(p6(e.b,new BVe),t=new st,g=new aw(new U0(e.c).a);g.b;)b=Xm(g),s=f(b.ld(),74),i=f(b.md(),407).a,a=w2(s,!1,!1),I=P2t(Sp(s),jN(a),i),QN(I,a),_e=V2t(s),_e&&il(t,_e,0)==-1&&(sn(t.c,_e),vbt(_e,(In(I.b!=0),f(I.a.a.c,8)),i));for(X=new aw(new U0(e.d).a);X.b;)z=Xm(X),s=f(z.ld(),74),i=f(z.md(),407).a,a=w2(s,!1,!1),I=P2t(F1(s),bN(jN(a)),i),I=bN(I),QN(I,a),_e=z2t(s),_e&&il(t,_e,0)==-1&&(sn(t.c,_e),vbt(_e,(In(I.b!=0),f(I.c.b.c,8)),i))}function Bxt(e,t,i,s){var a,c,b,g,m;return g=new j3e(t),lOn(g,s),a=!0,e&&e.pf((Er(),Ww))&&(c=f(e.of((Er(),Ww)),88),a=c==(Xi(),wh)||c==Js||c==al),F3t(g,!1),Ma(g.e.Rf(),new pye(g,!1,a)),WZ(g,g.f,(Pd(),Nl),(ft(),bn)),WZ(g,g.f,Ml,jn),WZ(g,g.g,Nl,wn),WZ(g,g.g,Ml,_n),pSt(g,bn),pSt(g,jn),wbt(g,_n),wbt(g,wn),Mv(),b=g.A.Hc((su(),q_))&&g.B.Hc((Gc(),V9))?P_t(g):null,b&&gbn(g.a,b),hLn(g),pTn(g),bTn(g),BDn(g),oMn(g),WTn(g),$te(g,bn),$te(g,jn),V7n(g),O9n(g),i&&(XCn(g),HTn(g),$te(g,_n),$te(g,wn),m=g.B.Hc((Gc(),M5)),IEt(g,m,bn),IEt(g,m,jn),PEt(g,m,_n),PEt(g,m,wn),Mi(new Wt(null,new Vt(new ob(g.i),0)),new Y),Mi(Br(new Wt(null,dve(g.r).a.oc()),new J),new ue),n6n(g),g.e.Pf(g.o),Mi(new Wt(null,dve(g.r).a.oc()),new Yt)),g.o}function wLn(e){var t,i,s,a,c,b,g,m,_,k,I,D,W,U,z;for(_=hi,s=new ee(e.a.b);s.a1)for(W=new A3e(U,_e,s),Vo(_e,new Jct(e,W)),sn(b.c,W),I=_e.a.ec().Kc();I.Ob();)k=f(I.Pb(),42),Ja(c,k.b);if(g.a.gc()>1)for(W=new A3e(U,g,s),Vo(g,new Yct(e,W)),sn(b.c,W),I=g.a.ec().Kc();I.Ob();)k=f(I.Pb(),42),Ja(c,k.b)}}function _Ln(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe;if(z=e.n,X=e.o,D=e.d,I=Ae(je(t_(e,(pt(),Fle)))),t){for(k=I*(t.gc()-1),W=0,m=t.Kc();m.Ob();)b=f(m.Pb(),10),k+=b.o.a,W=h.Math.max(W,b.o.b);for(oe=z.a-(k-X.a)/2,c=z.b-D.d+W,s=X.a/(t.gc()+1),a=s,g=t.Kc();g.Ob();)b=f(g.Pb(),10),b.n.a=oe,b.n.b=c-b.o.b,oe+=b.o.a+I,_=Xkt(b),_.n.a=b.o.a/2-_.a.a,_.n.b=b.o.b,U=f(V(b,(nt(),yV)),12),U.e.c.length+U.g.c.length==1&&(U.n.a=a-U.a.a,U.n.b=0,Sl(U,e)),a+=s}if(i){for(k=I*(i.gc()-1),W=0,m=i.Kc();m.Ob();)b=f(m.Pb(),10),k+=b.o.a,W=h.Math.max(W,b.o.b);for(oe=z.a-(k-X.a)/2,c=z.b+X.b+D.a-W,s=X.a/(i.gc()+1),a=s,g=i.Kc();g.Ob();)b=f(g.Pb(),10),b.n.a=oe,b.n.b=c,oe+=b.o.a+I,_=Xkt(b),_.n.a=b.o.a/2-_.a.a,_.n.b=0,U=f(V(b,(nt(),yV)),12),U.e.c.length+U.g.c.length==1&&(U.n.a=a-U.a.a,U.n.b=X.b,Sl(U,e)),a+=s}}function SLn(e,t){var i,s,a,c,b,g;if(f(V(t,(nt(),ma)),21).Hc((As(),af))){for(g=new ee(t.a);g.a=0&&b0&&(f(Ds(e.b,t),127).a.b=i)}function CLn(e,t,i,s){var a,c,b,g,m,_,k,I,D,W,U,z;if(D=Ae(je(V(e,(pt(),p4)))),W=Ae(je(V(e,b4))),I=Ae(je(V(e,B_))),g=e.o,c=f(yt(e.j,0),12),b=c.n,z=GIn(c,I),!!z){if(t.Hc(($c(),Mb)))switch(f(V(e,(nt(),Dl)),64).g){case 1:z.c=(g.a-z.b)/2-b.a,z.d=W;break;case 3:z.c=(g.a-z.b)/2-b.a,z.d=-W-z.a;break;case 2:i&&c.e.c.length==0&&c.g.c.length==0?(k=s?z.a:f(yt(c.f,0),72).o.b,z.d=(g.b-k)/2-b.b):z.d=g.b+W-b.b,z.c=-D-z.b;break;case 4:i&&c.e.c.length==0&&c.g.c.length==0?(k=s?z.a:f(yt(c.f,0),72).o.b,z.d=(g.b-k)/2-b.b):z.d=g.b+W-b.b,z.c=D}else if(t.Hc(f0))switch(f(V(e,(nt(),Dl)),64).g){case 1:case 3:z.c=b.a+D;break;case 2:case 4:i&&!c.c?(k=s?z.a:f(yt(c.f,0),72).o.b,z.d=(g.b-k)/2-b.b):z.d=b.b+W}for(a=z.d,_=new ee(c.f);_.a<_.c.c.length;)m=f(Z(_),72),U=m.n,U.a=z.c,U.b=a,a+=m.o.b+I}}function ALn(e){var t,i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ut,Dt,Nt,ln,an;for(Ze=new st,U=new ee(e.b);U.a=t.length)return{done:!0};var a=t[s++];return{value:[a,i.get(a)],done:!1}}}},k7n()||(e.prototype.createObject=function(){return{}},e.prototype.get=function(t){return this.obj[":"+t]},e.prototype.set=function(t,i){this.obj[":"+t]=i},e.prototype[Hre]=function(t){delete this.obj[":"+t]},e.prototype.keys=function(){var t=[];for(var i in this.obj)i.charCodeAt(0)==58&&t.push(i.substring(1));return t}),e}function ei(){ei=F,h5=new Xr($Re),new _i("DEPTH",ot(0)),hae=new _i("FAN",ot(0)),QIe=new _i(d4t,ot(0)),s0=new _i("ROOT",(cn(),!1)),gae=new _i("LEFTNEIGHBOR",null),fNt=new _i("RIGHTNEIGHBOR",null),QV=new _i("LEFTSIBLING",null),wae=new _i("RIGHTSIBLING",null),dae=new _i("DUMMY",!1),new _i("LEVEL",ot(0)),t5e=new _i("REMOVABLE_EDGES",new li),v9=new _i("XCOOR",ot(0)),_9=new _i("YCOOR",ot(0)),ZV=new _i("LEVELHEIGHT",0),Fd=new _i("LEVELMIN",0),fd=new _i("LEVELMAX",0),pae=new _i("GRAPH_XMIN",0),bae=new _i("GRAPH_YMIN",0),ZIe=new _i("GRAPH_XMAX",0),e5e=new _i("GRAPH_YMAX",0),YIe=new _i("COMPACT_LEVEL_ASCENSION",!1),fae=new _i("COMPACT_CONSTRAINTS",new st),d5=new _i("ID",""),p5=new _i("POSITION",ot(0)),jg=new _i("PRELIM",0),v4=new _i("MODIFIER",0),y4=new Xr(kAt),y9=new Xr(RAt)}function ILn(e){m3e();var t,i,s,a,c,b,g,m,_,k,I,D,W,U,z,X;if(e==null)return null;if(I=e.length*8,I==0)return"";for(g=I%24,W=I/24|0,D=g!=0?W+1:W,c=null,c=Fe(df,zh,28,D*4,15,1),_=0,k=0,t=0,i=0,s=0,b=0,a=0,m=0;m>24,_=(t&3)<<24>>24,U=t&-128?(t>>2^192)<<24>>24:t>>2<<24>>24,z=i&-128?(i>>4^240)<<24>>24:i>>4<<24>>24,X=s&-128?(s>>6^252)<<24>>24:s>>6<<24>>24,c[b++]=Kg[U],c[b++]=Kg[z|_<<4],c[b++]=Kg[k<<2|X],c[b++]=Kg[s&63];return g==8?(t=e[a],_=(t&3)<<24>>24,U=t&-128?(t>>2^192)<<24>>24:t>>2<<24>>24,c[b++]=Kg[U],c[b++]=Kg[_<<4],c[b++]=61,c[b++]=61):g==16&&(t=e[a],i=e[a+1],k=(i&15)<<24>>24,_=(t&3)<<24>>24,U=t&-128?(t>>2^192)<<24>>24:t>>2<<24>>24,z=i&-128?(i>>4^240)<<24>>24:i>>4<<24>>24,c[b++]=Kg[U],c[b++]=Kg[z|_<<4],c[b++]=Kg[k<<2],c[b++]=61),Bh(c,0,c.length)}function PLn(e,t){var i,s,a,c,b,g,m;if(e.e==0&&e.p>0&&(e.p=-(e.p-1)),e.p>Qo&&i_e(t,e.p-V1),b=t.q.getDate(),D7(t,1),e.k>=0&&vSn(t,e.k),e.c>=0?D7(t,e.c):e.k>=0?(m=new NSe(t.q.getFullYear()-V1,t.q.getMonth(),35),s=35-m.q.getDate(),D7(t,h.Math.min(s,b))):D7(t,b),e.f<0&&(e.f=t.q.getHours()),e.b>0&&e.f<12&&(e.f+=12),f1n(t,e.f==24&&e.g?0:e.f),e.j>=0&&nkn(t,e.j),e.n>=0&&pkn(t,e.n),e.i>=0&&Xut(t,is(os(NN(Gl(t.q.getTime()),Tg),Tg),e.i)),e.a&&(a=new hF,i_e(a,a.q.getFullYear()-V1-80),GY(Gl(t.q.getTime()),Gl(a.q.getTime()))&&i_e(t,a.q.getFullYear()-V1+100)),e.d>=0){if(e.c==-1)i=(7+e.d-t.q.getDay())%7,i>3&&(i-=7),g=t.q.getMonth(),D7(t,t.q.getDate()+i),t.q.getMonth()!=g&&D7(t,t.q.getDate()+(i>0?-7:7));else if(t.q.getDay()!=e.d)return!1}return e.o>Qo&&(c=t.q.getTimezoneOffset(),Xut(t,is(Gl(t.q.getTime()),(e.o-c)*60*Tg))),!0}function Vxt(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce;if(a=V(t,(nt(),Ur)),!!ve(a,207)){for(U=f(a,27),z=t.e,D=new us(t.c),c=t.d,D.a+=c.b,D.b+=c.d,Ce=f(Qe(U,(pt(),LV)),181),fc(Ce,(Gc(),Rz))&&(W=f(Qe(U,G6e),107),Whn(W,c.a),Xhn(W,c.d),Hhn(W,c.b),qhn(W,c.c)),i=new st,k=new ee(t.a);k.as.c.length-1;)lt(s,new io(C2,lCe));i=f(V(a,ip),17).a,ab(f(V(e,My),88))?(a.e.aAe(je((Xt(i,s.c.length),f(s.c[i],42)).b))&&aY((Xt(i,s.c.length),f(s.c[i],42)),a.e.a+a.f.a)):(a.e.bAe(je((Xt(i,s.c.length),f(s.c[i],42)).b))&&aY((Xt(i,s.c.length),f(s.c[i],42)),a.e.b+a.f.b))}for(c=Hn(e.b,0);c.b!=c.d.c;)a=f(Bn(c),40),i=f(V(a,(Il(),ip)),17).a,Xe(a,(ei(),Fd),je((Xt(i,s.c.length),f(s.c[i],42)).a)),Xe(a,fd,je((Xt(i,s.c.length),f(s.c[i],42)).b));t.Vg()}function NLn(e){var t,i,s,a,c,b,g,m,_,k,I,D,W,U,z;for(e.o=Ae(je(V(e.i,(pt(),Py)))),e.f=Ae(je(V(e.i,jw))),e.j=e.i.b.c.length,g=e.j-1,D=0,e.k=0,e.n=0,e.b=Qd(Fe(Ko,rt,17,e.j,0,1)),e.c=Qd(Fe(Qi,rt,345,e.j,7,1)),b=new ee(e.i.b);b.a0&<(e.q,k),lt(e.p,k);t-=s,W=m+t,_+=t*e.f,Ku(e.b,g,ot(W)),Ku(e.c,g,_),e.k=h.Math.max(e.k,W),e.n=h.Math.max(e.n,_),e.e+=t,t+=z}}function ft(){ft=F;var e;Cl=new s7(lI,0),bn=new s7(mU,1),_n=new s7(Qre,2),jn=new s7(Zre,3),wn=new s7(eie,4),yh=(qt(),new Vx((e=f(kd(vs),9),new Uu(e,f(Yf(e,e.length),9),0)))),gd=yg(ii(bn,se(ie(vs,1),Ql,64,0,[]))),uf=yg(ii(_n,se(ie(vs,1),Ql,64,0,[]))),Pu=yg(ii(jn,se(ie(vs,1),Ql,64,0,[]))),If=yg(ii(wn,se(ie(vs,1),Ql,64,0,[]))),tc=yg(ii(bn,se(ie(vs,1),Ql,64,0,[jn]))),Ua=yg(ii(_n,se(ie(vs,1),Ql,64,0,[wn]))),wd=yg(ii(bn,se(ie(vs,1),Ql,64,0,[wn]))),Oc=yg(ii(bn,se(ie(vs,1),Ql,64,0,[_n]))),Ou=yg(ii(jn,se(ie(vs,1),Ql,64,0,[wn]))),ff=yg(ii(_n,se(ie(vs,1),Ql,64,0,[jn]))),Nc=yg(ii(bn,se(ie(vs,1),Ql,64,0,[_n,wn]))),ec=yg(ii(_n,se(ie(vs,1),Ql,64,0,[jn,wn]))),nc=yg(ii(bn,se(ie(vs,1),Ql,64,0,[jn,wn]))),vc=yg(ii(bn,se(ie(vs,1),Ql,64,0,[_n,jn]))),va=yg(ii(bn,se(ie(vs,1),Ql,64,0,[_n,jn,wn])))}function MLn(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ut;for(t.Ug(VAt,1),z=new st,Ze=new st,_=new ee(e.b);_.a<_.c.c.length;)for(m=f(Z(_),30),oe=-1,U=F7(m.a),I=U,D=0,W=I.length;D0&&(_e-=W),T3e(b,_e),k=0,D=new ee(b.a);D.a0),g.a.Xb(g.c=--g.b)),m=.4*s*k,!c&&g.b0&&(m=(pn(0,t.length),t.charCodeAt(0)),m!=64)){if(m==37&&(I=t.lastIndexOf("%"),_=!1,I!=0&&(I==D-1||(_=(pn(I+1,t.length),t.charCodeAt(I+1)==46))))){if(b=(Mo(1,I,t.length),t.substr(1,I-1)),_e=Ht("%",b)?null:B3e(b),s=0,_)try{s=Ru((pn(I+2,t.length+1),t.substr(I+2)),Qo,Nr)}catch(Ce){throw Ce=mi(Ce),ve(Ce,130)?(g=Ce,ne(new mW(g))):ne(Ce)}for(X=hSe(e.Gh());X.Ob();)if(U=zW(X),ve(U,519)&&(a=f(U,598),ge=a.d,(_e==null?ge==null:Ht(_e,ge))&&s--==0))return a;return null}if(k=t.lastIndexOf("."),W=k==-1?t:(Mo(0,k,t.length),t.substr(0,k)),i=0,k!=-1)try{i=Ru((pn(k+1,t.length+1),t.substr(k+1)),Qo,Nr)}catch(Ce){if(Ce=mi(Ce),ve(Ce,130))W=t;else throw ne(Ce)}for(W=Ht("%",W)?null:B3e(W),z=hSe(e.Gh());z.Ob();)if(U=zW(z),ve(U,197)&&(c=f(U,197),oe=c.xe(),(W==null?oe==null:Ht(W,oe))&&i--==0))return c;return null}return Nxt(e,t)}function ULn(e){var t,i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge;for(k=new Fn,m=new Bm,s=new ee(e.a.a.b);s.at.d.c){if(W=e.c[t.a.d],X=e.c[I.a.d],W==X)continue;id(qf(Kf(Xf(zf(new gf,1),100),W),X))}}}}}function GLn(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze;if(D=f(f(Hr(e.r,t),21),87),t==(ft(),_n)||t==wn){Hxt(e,t);return}for(c=t==bn?(Jm(),HM):(Jm(),UM),Ce=t==bn?(Ya(),Ld):(Ya(),ad),i=f(Ds(e.b,t),127),s=i.i,a=s.c+n2(se(ie(Ro,1),js,28,15,[i.n.b,e.C.b,e.k])),oe=s.c+s.b-n2(se(ie(Ro,1),js,28,15,[i.n.c,e.C.c,e.k])),b=ewe(gye(c),e.t),ge=t==bn?to:hi,I=D.Kc();I.Ob();)_=f(I.Pb(),117),!(!_.c||_.c.d.c.length<=0)&&(X=_.b.Mf(),z=_.e,W=_.c,U=W.i,U.b=(m=W.n,W.e.a+m.b+m.c),U.a=(g=W.n,W.e.b+g.d+g.a),P7(Ce,gRe),W.f=Ce,$d(W,(Ac(),ld)),U.c=z.a-(U.b-X.a)/2,Ke=h.Math.min(a,z.a),Ze=h.Math.max(oe,z.a+X.a),U.cZe&&(U.c=Ze-U.b),lt(b.d,new cZ(U,l2e(b,U))),ge=t==bn?h.Math.max(ge,z.b+_.b.Mf().b):h.Math.min(ge,z.b));for(ge+=t==bn?e.t:-e.t,_e=x2e((b.e=ge,b)),_e>0&&(f(Ds(e.b,t),127).a.b=_e),k=D.Kc();k.Ob();)_=f(k.Pb(),117),!(!_.c||_.c.d.c.length<=0)&&(U=_.c.i,U.c-=_.e.a,U.d-=_.e.b)}function VLn(e){var t,i,s,a,c,b,g,m,_,k,I,D,W;for(t=new Fn,m=new Sn(e);m.e!=m.i.gc();){for(g=f(Cn(m),27),i=new Gi,xr(Ase,g,i),W=new zJ,a=f(fl(new Wt(null,new Om(new kn(xn(GN(g).a.Kc(),new O)))),fpt(W,Cc(new K,new B,new Qt,se(ie(qs,1),Je,108,0,[(Tc(),pl)])))),85),Vmt(i,f(a.xc((cn(),!0)),16),new DVe),s=f(fl(Br(f(a.xc(!1),15).Lc(),new LVe),Cc(new K,new B,new Qt,se(ie(qs,1),Je,108,0,[pl]))),15),b=s.Kc();b.Ob();)c=f(b.Pb(),74),D=V2t(c),D&&(_=f(tl(xs(t.f,D)),21),_||(_=p3t(D),Ca(t.f,D,_)),Do(i,_));for(a=f(fl(new Wt(null,new Om(new kn(xn(Rb(g).a.Kc(),new O)))),fpt(W,Cc(new K,new B,new Qt,se(ie(qs,1),Je,108,0,[pl])))),85),Vmt(i,f(a.xc(!0),16),new jVe),s=f(fl(Br(f(a.xc(!1),15).Lc(),new FVe),Cc(new K,new B,new Qt,se(ie(qs,1),Je,108,0,[pl]))),15),I=s.Kc();I.Ob();)k=f(I.Pb(),74),D=z2t(k),D&&(_=f(tl(xs(t.f,D)),21),_||(_=p3t(D),Ca(t.f,D,_)),Do(i,_))}}function zLn(e,t){qne();var i,s,a,c,b,g,m,_,k,I,D,W,U,z;if(m=Jl(e,0)<0,m&&(e=gg(e)),Jl(e,0)==0)switch(t){case 0:return"0";case 1:return CA;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return W=new m1,t<0?W.a+="0E+":W.a+="0E",W.a+=t==Qo?"2147483648":""+-t,W.a}k=18,I=Fe(df,zh,28,k+1,15,1),i=k,z=e;do _=z,z=NN(z,10),I[--i]=tr(is(48,vf(_,os(z,10))))&Ji;while(Jl(z,0)!=0);if(a=vf(vf(vf(k,i),t),1),t==0)return m&&(I[--i]=45),Bh(I,i,k-i);if(t>0&&Jl(a,-6)>=0){if(Jl(a,0)>=0){for(c=i+tr(a),g=k-1;g>=c;g--)I[g+1]=I[g];return I[++c]=46,m&&(I[--i]=45),Bh(I,i,k-i+1)}for(b=2;GY(b,is(gg(a),1));b++)I[--i]=48;return I[--i]=46,I[--i]=48,m&&(I[--i]=45),Bh(I,i,k-i)}return U=i+1,s=k,D=new jk,m&&(D.a+="-"),s-U>=1?(Q0(D,I[i]),D.a+=".",D.a+=Bh(I,i+1,k-i-1)):D.a+=Bh(I,i,k-i),D.a+="E",Jl(a,0)>0&&(D.a+="+"),D.a+=""+z$(a),D.a}function ly(e,t,i,s,a){var c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze;if(X=new tt(e.g,e.f),z=nke(e),z.a=h.Math.max(z.a,t),z.b=h.Math.max(z.b,i),Ze=z.a/X.a,k=z.b/X.b,Ce=z.a-X.a,m=z.b-X.b,s)for(b=di(e)?f(Qe(di(e),(Er(),Ww)),88):f(Qe(e,(Er(),Ww)),88),g=Ne(Qe(e,(Er(),x5)))===Ne((Co(),ya)),ge=new Sn((!e.c&&(e.c=new qe(Mc,e,9,9)),e.c));ge.e!=ge.i.gc();)switch(oe=f(Cn(ge),123),_e=f(Qe(oe,dE),64),_e==(ft(),Cl)&&(_e=y3e(oe,b),zr(oe,dE,_e)),_e.g){case 1:g||Da(oe,oe.i*Ze);break;case 2:Da(oe,oe.i+Ce),g||La(oe,oe.j*k);break;case 3:g||Da(oe,oe.i*Ze),La(oe,oe.j+m);break;case 4:g||La(oe,oe.j*k)}if(GS(e,z.a,z.b),a)for(D=new Sn((!e.n&&(e.n=new qe(Fs,e,1,7)),e.n));D.e!=D.i.gc();)I=f(Cn(D),135),W=I.i+I.g/2,U=I.j+I.f/2,Ke=W/X.a,_=U/X.b,Ke+_>=1&&(Ke-_>0&&U>=0?(Da(I,I.i+Ce),La(I,I.j+m*_)):Ke-_<0&&W>=0&&(Da(I,I.i+Ce*Ke),La(I,I.j+m)));return zr(e,(Er(),Hw),(su(),c=f(kd(N5),9),new Uu(c,f(Yf(c,c.length),9),0))),new tt(Ze,k)}function Xxt(e){vm(e,new gw(lF(wm(pm(gm(bm(new F0,rf),"ELK Radial"),'A radial layout provider which is based on the algorithm of Peter Eades published in "Drawing free trees.", published by International Institute for Advanced Study of Social Information Science, Fujitsu Limited in 1991. The radial layouter takes a tree and places the nodes in radial order around the root. The nodes of the same tree level are placed on the same radius.'),new GYe),rf))),it(e,rf,UU,dt(lMt)),it(e,rf,m_,dt(aMt)),it(e,rf,A2,dt(rMt)),it(e,rf,B3,dt(iMt)),it(e,rf,F3,dt(oMt)),it(e,rf,NA,dt(nMt)),it(e,rf,fI,dt($5e)),it(e,rf,MA,dt(sMt)),it(e,rf,roe,dt($ae)),it(e,rf,noe,dt(Iae)),it(e,rf,JU,dt(P5e)),it(e,rf,ioe,dt(Pae)),it(e,rf,ooe,dt(O5e)),it(e,rf,xCe,dt(N5e)),it(e,rf,RCe,dt(I5e)),it(e,rf,_Ce,dt(iz)),it(e,rf,SCe,dt(oz)),it(e,rf,ECe,dt(S9)),it(e,rf,kCe,dt(M5e)),it(e,rf,vCe,dt(T5e))}function cU(e){var t,i,s,a,c,b,g,m,_,k,I;if(e==null)throw ne(new Ih(Za));if(_=e,c=e.length,m=!1,c>0&&(t=(pn(0,e.length),e.charCodeAt(0)),(t==45||t==43)&&(e=(pn(1,e.length+1),e.substr(1)),--c,m=t==45)),c==0)throw ne(new Ih(uy+_+'"'));for(;e.length>0&&(pn(0,e.length),e.charCodeAt(0)==48);)e=(pn(1,e.length+1),e.substr(1)),--c;if(c>(xRt(),p6t)[10])throw ne(new Ih(uy+_+'"'));for(a=0;a0&&(I=-parseInt((Mo(0,s,e.length),e.substr(0,s)),10),e=(pn(s,e.length+1),e.substr(s)),c-=s,i=!1);c>=b;){if(s=parseInt((Mo(0,b,e.length),e.substr(0,b)),10),e=(pn(b,e.length+1),e.substr(b)),c-=b,i)i=!1;else{if(Jl(I,g)<0)throw ne(new Ih(uy+_+'"'));I=os(I,k)}I=vf(I,s)}if(Jl(I,0)>0)throw ne(new Ih(uy+_+'"'));if(!m&&(I=gg(I),Jl(I,0)<0))throw ne(new Ih(uy+_+'"'));return I}function B3e(e){ere();var t,i,s,a,c,b,g,m;if(e==null)return null;if(a=Ph(e,Qa(37)),a<0)return e;for(m=new gu((Mo(0,a,e.length),e.substr(0,a))),t=Fe(_c,P2,28,4,15,1),g=0,s=0,b=e.length;aa+2&&Xee((pn(a+1,e.length),e.charCodeAt(a+1)),mOe,yOe)&&Xee((pn(a+2,e.length),e.charCodeAt(a+2)),mOe,yOe))if(i=hyn((pn(a+1,e.length),e.charCodeAt(a+1)),(pn(a+2,e.length),e.charCodeAt(a+2))),a+=2,s>0?(i&192)==128?t[g++]=i<<24>>24:s=0:i>=128&&((i&224)==192?(t[g++]=i<<24>>24,s=2):(i&240)==224?(t[g++]=i<<24>>24,s=3):(i&248)==240&&(t[g++]=i<<24>>24,s=4)),s>0){if(g==s){switch(g){case 2:{Q0(m,((t[0]&31)<<6|t[1]&63)&Ji);break}case 3:{Q0(m,((t[0]&15)<<12|(t[1]&63)<<6|t[2]&63)&Ji);break}}g=0,s=0}}else{for(c=0;c=2){if((!e.a&&(e.a=new qe(ai,e,6,6)),e.a).i==0)i=(v1(),a=new Fj,a),zn((!e.a&&(e.a=new qe(ai,e,6,6)),e.a),i);else if((!e.a&&(e.a=new qe(ai,e,6,6)),e.a).i>1)for(D=new Kk((!e.a&&(e.a=new qe(ai,e,6,6)),e.a));D.e!=D.i.gc();)D6(D);QN(t,f(Se((!e.a&&(e.a=new qe(ai,e,6,6)),e.a),0),166))}if(I)for(s=new Sn((!e.a&&(e.a=new qe(ai,e,6,6)),e.a));s.e!=s.i.gc();)for(i=f(Cn(s),166),_=new Sn((!i.a&&(i.a=new zi(Nu,i,5)),i.a));_.e!=_.i.gc();)m=f(Cn(_),377),g.a=h.Math.max(g.a,m.a),g.b=h.Math.max(g.b,m.b);for(b=new Sn((!e.n&&(e.n=new qe(Fs,e,1,7)),e.n));b.e!=b.i.gc();)c=f(Cn(b),135),k=f(Qe(c,A5),8),k&&Wu(c,k.a,k.b),I&&(g.a=h.Math.max(g.a,c.i+c.g),g.b=h.Math.max(g.b,c.j+c.f));return g}function Yxt(e,t,i,s,a){var c,b,g;if(Qwt(e,t),b=t[0],c=Jo(i.c,0),g=-1,LSe(i))if(s>0){if(b+s>e.length)return!1;g=jH((Mo(0,b+s,e.length),e.substr(0,b+s)),t)}else g=jH(e,t);switch(c){case 71:return g=p2(e,b,se(ie(_t,1),rt,2,6,[DCt,LCt]),t),a.e=g,!0;case 77:return a7n(e,t,a,g,b);case 76:return c7n(e,t,a,g,b);case 69:return e5n(e,t,b,a);case 99:return t5n(e,t,b,a);case 97:return g=p2(e,b,se(ie(_t,1),rt,2,6,["AM","PM"]),t),a.b=g,!0;case 121:return u7n(e,t,b,g,i,a);case 100:return g<=0?!1:(a.c=g,!0);case 83:return g<0?!1:gAn(g,b,t[0],a);case 104:g==12&&(g=0);case 75:case 72:return g<0?!1:(a.f=g,a.g=!1,!0);case 107:return g<0?!1:(a.f=g,a.g=!0,!0);case 109:return g<0?!1:(a.j=g,!0);case 115:return g<0?!1:(a.n=g,!0);case 90:if(bDt[m]&&(X=m),I=new ee(e.a.b);I.a1;){if(a=tOn(t),I=c.g,U=f(Qe(t,w5),107),z=Ae(je(Qe(t,cz))),(!t.a&&(t.a=new qe($r,t,10,11)),t.a).i>1&&Ae(je(Qe(t,(Ep(),Bae))))!=hi&&(c.c+(U.b+U.c))/(c.b+(U.d+U.a))1&&Ae(je(Qe(t,(Ep(),Fae))))!=hi&&(c.c+(U.b+U.c))/(c.b+(U.d+U.a))>z&&zr(a,(Ep(),G_),h.Math.max(Ae(je(Qe(t,g5))),Ae(je(Qe(a,G_)))-Ae(je(Qe(t,Fae))))),W=new Kwe(s,k),m=wCt(W,a,D),_=m.g,_>=I&&_==_){for(b=0;b<(!a.a&&(a.a=new qe($r,a,10,11)),a.a).i;b++)GEt(e,f(Se((!a.a&&(a.a=new qe($r,a,10,11)),a.a),b),27),f(Se((!t.a&&(t.a=new qe($r,t,10,11)),t.a),b),27));kmt(t,W),oSn(c,m.c),iSn(c,m.b)}--g}zr(t,(Ep(),_4),c.b),zr(t,iR,c.c),i.Vg()}function JLn(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge;for(t.Ug("Interactive node layering",1),i=new st,D=new ee(e.a);D.a=g){In(ge.b>0),ge.a.Xb(ge.c=--ge.b);break}else X.a>m&&(s?(eo(s.b,X.b),s.a=h.Math.max(s.a,X.a),iu(ge)):(lt(X.b,k),X.c=h.Math.min(X.c,m),X.a=h.Math.max(X.a,g),s=X));s||(s=new zst,s.c=m,s.a=g,Dv(ge,s),lt(s.b,k))}for(b=e.b,_=0,oe=new ee(i);oe.aW&&(c&&(cs(Ze,D),cs(Dt,ot(_.b-1))),Pr=i.b,Si+=D+t,D=0,k=h.Math.max(k,i.b+i.c+Tn)),Da(g,Pr),La(g,Si),k=h.Math.max(k,Pr+Tn+i.c),D=h.Math.max(D,I),Pr+=Tn+t;if(k=h.Math.max(k,s),an=Si+D+i.a,anXh,Nt=h.Math.abs(D.b-U.b)>Xh,(!i&&Dt&&Nt||i&&(Dt||Nt))&&hr(X.a,Ce)),Do(X.a,s),s.b==0?D=Ce:D=(In(s.b!=0),f(s.c.b.c,8)),DRn(W,I,z),Eyt(a)==ut&&(Go(ut.i)!=a.a&&(z=new Io,QEe(z,Go(ut.i),ge)),Xe(X,Cle,z)),mIn(W,X,ge),k.a.zc(W,k);rs(X,Ke),xo(X,ut)}for(_=k.a.ec().Kc();_.Ob();)m=f(_.Pb(),18),rs(m,null),xo(m,null);t.Vg()}function ZLn(e,t){var i,s,a,c,b,g,m,_,k,I,D;for(a=f(V(e,(Il(),My)),88),k=a==(Xi(),Js)||a==al?gh:al,i=f(fl(Br(new Wt(null,new Vt(e.b,16)),new JJe),Cc(new K,new B,new Qt,se(ie(qs,1),Je,108,0,[(Tc(),pl)]))),15),m=f(fl(nl(i.Oc(),new hot(t)),Cc(new K,new B,new Qt,se(ie(qs,1),Je,108,0,[pl]))),15),m.Gc(f(fl(nl(i.Oc(),new pot(t)),Cc(new K,new B,new Qt,se(ie(qs,1),Je,108,0,[pl]))),16)),m.jd(new bot(k)),D=new sg(new got(a)),s=new Fn,g=m.Kc();g.Ob();)b=f(g.Pb(),240),_=f(b.a,40),wt(gt(b.c))?(D.a.zc(_,(cn(),Y1))==null,new Fx(D.a.Zc(_,!1)).a.gc()>0&&xr(s,_,f(new Fx(D.a.Zc(_,!1)).a.Vc(),40)),new Fx(D.a.ad(_,!0)).a.gc()>1&&xr(s,C_t(D,_),_)):(new Fx(D.a.Zc(_,!1)).a.gc()>0&&(c=f(new Fx(D.a.Zc(_,!1)).a.Vc(),40),Ne(c)===Ne(tl(xs(s.f,_)))&&f(V(_,(ei(),fae)),15).Fc(c)),new Fx(D.a.ad(_,!0)).a.gc()>1&&(I=C_t(D,_),Ne(tl(xs(s.f,I)))===Ne(_)&&f(V(I,(ei(),fae)),15).Fc(_)),D.a.Bc(_)!=null)}function Qxt(e){var t,i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce;if(e.gc()==1)return f(e.Xb(0),235);if(e.gc()<=0)return new cW;for(a=e.Kc();a.Ob();){for(i=f(a.Pb(),235),U=0,k=Nr,I=Nr,m=Qo,_=Qo,W=new ee(i.e);W.ag&&(_e=0,Ce+=b+oe,b=0),RNn(z,i,_e,Ce),t=h.Math.max(t,_e+X.a),b=h.Math.max(b,X.b),_e+=X.a+oe;return z}function ejn(e){m3e();var t,i,s,a,c,b,g,m,_,k,I,D,W,U,z,X;if(e==null||(c=vW(e),U=ACn(c),U%4!=0))return null;if(z=U/4|0,z==0)return Fe(_c,P2,28,0,15,1);for(I=null,t=0,i=0,s=0,a=0,b=0,g=0,m=0,_=0,W=0,D=0,k=0,I=Fe(_c,P2,28,z*3,15,1);W>4)<<24>>24,I[D++]=((i&15)<<4|s>>2&15)<<24>>24,I[D++]=(s<<6|a)<<24>>24}return!WO(b=c[k++])||!WO(g=c[k++])?null:(t=_h[b],i=_h[g],m=c[k++],_=c[k++],_h[m]==-1||_h[_]==-1?m==61&&_==61?i&15?null:(X=Fe(_c,P2,28,W*3+1,15,1),oa(I,0,X,0,W*3),X[D]=(t<<2|i>>4)<<24>>24,X):m!=61&&_==61?(s=_h[m],s&3?null:(X=Fe(_c,P2,28,W*3+2,15,1),oa(I,0,X,0,W*3),X[D++]=(t<<2|i>>4)<<24>>24,X[D]=((i&15)<<4|s>>2&15)<<24>>24,X)):null:(s=_h[m],a=_h[_],I[D++]=(t<<2|i>>4)<<24>>24,I[D++]=((i&15)<<4|s>>2&15)<<24>>24,I[D++]=(s<<6|a)<<24>>24,I))}function tjn(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke;for(t.Ug(VAt,1),U=f(V(e,(pt(),Ob)),223),a=new ee(e.b);a.a=2){for(z=!0,D=new ee(c.j),i=f(Z(D),12),W=null;D.a0)if(s=I.gc(),_=oo(h.Math.floor((s+1)/2))-1,a=oo(h.Math.ceil((s+1)/2))-1,t.o==ph)for(k=a;k>=_;k--)t.a[Ce.p]==Ce&&(z=f(I.Xb(k),42),U=f(z.a,10),!Rd(i,z.b)&&W>e.b.e[U.p]&&(t.a[U.p]=Ce,t.g[Ce.p]=t.g[U.p],t.a[Ce.p]=t.g[Ce.p],t.f[t.g[Ce.p].p]=(cn(),!!(wt(t.f[t.g[Ce.p].p])&Ce.k==(gn(),vo))),W=e.b.e[U.p]));else for(k=_;k<=a;k++)t.a[Ce.p]==Ce&&(oe=f(I.Xb(k),42),X=f(oe.a,10),!Rd(i,oe.b)&&W0&&(a=f(yt(X.c.a,Ze-1),10),b=e.i[a.p],Dt=h.Math.ceil(zS(e.n,a,X)),c=Ke.a.e-X.d.d-(b.a.e+a.o.b+a.d.a)-Dt),_=hi,Ze0&&ut.a.e.e-ut.a.a-(ut.b.e.e-ut.b.a)<0,U=_e.a.e.e-_e.a.a-(_e.b.e.e-_e.b.a)<0&&ut.a.e.e-ut.a.a-(ut.b.e.e-ut.b.a)>0,W=_e.a.e.e+_e.b.aut.b.e.e+ut.a.a,Ce=0,!z&&!U&&(D?c+I>0?Ce=I:_-s>0&&(Ce=s):W&&(c+g>0?Ce=g:_-ge>0&&(Ce=ge))),Ke.a.e+=Ce,Ke.b&&(Ke.d.e+=Ce),!1))}function eCt(e,t,i){var s,a,c,b,g,m,_,k,I,D;if(s=new Gu(t.Lf().a,t.Lf().b,t.Mf().a,t.Mf().b),a=new Vk,e.c)for(b=new ee(t.Rf());b.a_&&(s.a+=Aft(Fe(df,zh,28,-_,15,1))),s.a+="Is",Ph(m,Qa(32))>=0)for(a=0;a=s.o.b/2}else ge=!I;ge?(oe=f(V(s,(nt(),nR)),15),oe?D?c=oe:(a=f(V(s,Y3),15),a?oe.gc()<=a.gc()?c=oe:c=a:(c=new st,Xe(s,Y3,c))):(c=new st,Xe(s,nR,c))):(a=f(V(s,(nt(),Y3)),15),a?I?c=a:(oe=f(V(s,nR),15),oe?a.gc()<=oe.gc()?c=a:c=oe:(c=new st,Xe(s,nR,c))):(c=new st,Xe(s,Y3,c))),c.Fc(e),Xe(e,(nt(),yV),i),t.d==i?(xo(t,null),i.e.c.length+i.g.c.length==0&&Sl(i,null),yxn(i)):(rs(t,null),i.e.c.length+i.g.c.length==0&&Sl(i,null)),wu(t.a)}function ojn(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ut,Dt,Nt,ln,an,Tn,Pr,Si;for(i.Ug("MinWidth layering",1),W=t.b,ut=t.a,Si=f(V(t,(pt(),L6e)),17).a,g=f(V(t,j6e),17).a,e.b=Ae(je(V(t,ud))),e.d=hi,Ce=new ee(ut);Ce.a0?(_=0,X&&(_+=g),_+=(Nt-1)*b,_e&&(_+=g),Dt&&_e&&(_=h.Math.max(_,ROn(_e,b,ge,ut))),_=e.a&&(s=WMn(e,ge),k=h.Math.max(k,s.b),Ce=h.Math.max(Ce,s.d),lt(g,new io(ge,s)));for(Dt=new st,_=0;_0),X.a.Xb(X.c=--X.b),Nt=new ca(e.b),Dv(X,Nt),In(X.b0){for(D=k<100?null:new y1(k),_=new vSe(t),U=_.g,oe=Fe(Xn,wr,28,k,15,1),s=0,Ce=new Gm(k),a=0;a=0;)if(W!=null?Lr(W,U[m]):Ne(W)===Ne(U[m])){oe.length<=s&&(X=oe,oe=Fe(Xn,wr,28,2*oe.length,15,1),oa(X,0,oe,0,s)),oe[s++]=a,zn(Ce,U[m]);break e}if(W=W,Ne(W)===Ne(g))break}}if(_=Ce,U=Ce.g,k=s,s>oe.length&&(X=oe,oe=Fe(Xn,wr,28,s,15,1),oa(X,0,oe,0,s)),s>0){for(_e=!0,c=0;c=0;)E3(e,oe[b]);if(s!=k){for(a=k;--a>=s;)E3(_,a);X=oe,oe=Fe(Xn,wr,28,s,15,1),oa(X,0,oe,0,s)}t=_}}}else for(t=STn(e,t),a=e.i;--a>=0;)t.Hc(e.g[a])&&(E3(e,a),_e=!0);if(_e){if(oe!=null){for(i=t.gc(),I=i==1?e6(e,4,t.Kc().Pb(),null,oe[0],z):e6(e,6,t,oe,oe[0],z),D=i<100?null:new y1(i),a=t.Kc();a.Ob();)W=a.Pb(),D=cye(e,f(W,76),D);D?(D.nj(I),D.oj()):Dr(e.e,I)}else{for(D=A0n(t.gc()),a=t.Kc();a.Ob();)W=a.Pb(),D=cye(e,f(W,76),D);D&&D.oj()}return!0}else return!1}function ajn(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e;for(i=new ySt(t),i.a||DNn(t),_=N7n(t),m=new Bm,X=new _3t,z=new ee(t.a);z.a0||i.o==ph&&a=i}function ujn(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ut,Dt,Nt,ln,an,Tn;for(_e=t,ge=new Bm,Ce=new Bm,k=Um(_e,aAe),s=new Abt(e,i,ge,Ce),$In(s.a,s.b,s.c,s.d,k),m=(ut=ge.i,ut||(ge.i=new XS(ge,ge.c))),Nt=m.Kc();Nt.Ob();)for(Dt=f(Nt.Pb(),166),a=f(Hr(ge,Dt),21),z=a.Kc();z.Ob();)if(U=z.Pb(),Ke=f(r2(e.d,U),166),Ke)g=(!Dt.e&&(Dt.e=new en(ai,Dt,10,9)),Dt.e),zn(g,Ke);else throw b=db(_e,Zh),D=mTt+U+yTt+b,W=D+GA,ne(new $h(W));for(_=(Ze=Ce.i,Ze||(Ce.i=new XS(Ce,Ce.c))),an=_.Kc();an.Ob();)for(ln=f(an.Pb(),166),c=f(Hr(Ce,ln),21),oe=c.Kc();oe.Ob();)if(X=oe.Pb(),Ke=f(r2(e.d,X),166),Ke)I=(!ln.g&&(ln.g=new en(ai,ln,9,10)),ln.g),zn(I,Ke);else throw b=db(_e,Zh),D=mTt+X+yTt+b,W=D+GA,ne(new $h(W));!i.b&&(i.b=new en(Dn,i,4,7)),i.b.i!=0&&(!i.c&&(i.c=new en(Dn,i,5,8)),i.c.i!=0)&&(!i.b&&(i.b=new en(Dn,i,4,7)),i.b.i<=1&&(!i.c&&(i.c=new en(Dn,i,5,8)),i.c.i<=1))&&(!i.a&&(i.a=new qe(ai,i,6,6)),i.a).i==1&&(Tn=f(Se((!i.a&&(i.a=new qe(ai,i,6,6)),i.a),0),166),!jte(Tn)&&!Fte(Tn)&&(MW(Tn,f(Se((!i.b&&(i.b=new en(Dn,i,4,7)),i.b),0),84)),DW(Tn,f(Se((!i.c&&(i.c=new en(Dn,i,5,8)),i.c),0),84))))}function fjn(e){var t,i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ut,Dt,Nt,ln;for(_e=e.a,Ce=0,Ke=_e.length;Ce0?(I=f(yt(D.c.a,b-1),10),Dt=zS(e.b,D,I),X=D.n.b-D.d.d-(I.n.b+I.o.b+I.d.a+Dt)):X=D.n.b-D.d.d,_=h.Math.min(X,_),b1&&(b=h.Math.min(b,h.Math.abs(f(tf(g.a,1),8).b-k.b)))));else for(z=new ee(t.j);z.aa&&(c=D.a-a,b=Nr,s.c.length=0,a=D.a),D.a>=a&&(sn(s.c,g),g.a.b>1&&(b=h.Math.min(b,h.Math.abs(f(tf(g.a,g.a.b-2),8).b-D.b)))));if(s.c.length!=0&&c>t.o.a/2&&b>t.o.b/2){for(W=new ia,Sl(W,t),so(W,(ft(),bn)),W.n.a=t.o.a/2,oe=new ia,Sl(oe,t),so(oe,jn),oe.n.a=t.o.a/2,oe.n.b=t.o.b,m=new ee(s);m.a=_.b?rs(g,oe):rs(g,W)):(_=f(nyn(g.a),8),X=g.a.b==0?Yd(g.c):f(Jf(g.a),8),X.b>=_.b?xo(g,oe):xo(g,W)),I=f(V(g,(pt(),Xs)),75),I&&e_(I,_,!0);t.n.a=a-t.o.a/2}}function hjn(e,t,i){var s,a,c,b,g,m,_,k,I,D;for(g=Hn(e.b,0);g.b!=g.d.c;)if(b=f(Bn(g),40),!Ht(b.c,KU))for(_=j8n(b,e),t==(Xi(),Js)||t==al?Hi(_,new _Ye):Hi(_,new SYe),m=_.c.length,s=0;s=0?W=y3(g):W=EN(y3(g)),e.qf(d4,W)),_=new Io,D=!1,e.pf($y)?(Ome(_,f(e.of($y),8)),D=!0):E1n(_,b.a/2,b.b/2),W.g){case 4:Xe(k,Ha,(ef(),n0)),Xe(k,_V,(uw(),H2)),k.o.b=b.b,z<0&&(k.o.a=-z),so(I,(ft(),_n)),D||(_.a=b.a),_.a-=b.a;break;case 2:Xe(k,Ha,(ef(),O_)),Xe(k,_V,(uw(),o4)),k.o.b=b.b,z<0&&(k.o.a=-z),so(I,(ft(),wn)),D||(_.a=0);break;case 1:Xe(k,Iw,(wb(),G2)),k.o.a=b.a,z<0&&(k.o.b=-z),so(I,(ft(),jn)),D||(_.b=b.b),_.b-=b.b;break;case 3:Xe(k,Iw,(wb(),J3)),k.o.a=b.a,z<0&&(k.o.b=-z),so(I,(ft(),bn)),D||(_.b=0)}if(Ome(I.n,_),Xe(k,$y,_),t==Gw||t==jp||t==ya){if(U=0,t==Gw&&e.pf(Mg))switch(W.g){case 1:case 2:U=f(e.of(Mg),17).a;break;case 3:case 4:U=-f(e.of(Mg),17).a}else switch(W.g){case 4:case 2:U=c.b,t==jp&&(U/=a.b);break;case 1:case 3:U=c.a,t==jp&&(U/=a.a)}Xe(k,Ry,U)}return Xe(k,Dl,W),k}function pjn(){iwe();function e(s){var a=this;this.dispatch=function(c){var b=c.data;switch(b.cmd){case"algorithms":var g=R2e((qt(),new jx(new ob(h0.b))));s.postMessage({id:b.id,data:g});break;case"categories":var m=R2e((qt(),new jx(new ob(h0.c))));s.postMessage({id:b.id,data:m});break;case"options":var _=R2e((qt(),new jx(new ob(h0.d))));s.postMessage({id:b.id,data:_});break;case"register":wDn(b.algorithms),s.postMessage({id:b.id});break;case"layout":zMn(b.graph,b.layoutOptions||{},b.options||{}),s.postMessage({id:b.id,data:b.graph});break}},this.saveDispatch=function(c){try{a.dispatch(c)}catch(b){s.postMessage({id:c.data.id,error:b})}}}function t(s){var a=this;this.dispatcher=new e({postMessage:function(c){a.onmessage({data:c})}}),this.postMessage=function(c){setTimeout(function(){a.dispatcher.saveDispatch({data:c})},0)}}if(typeof document===zre&&typeof self!==zre){var i=new e(self);self.onmessage=i.saveDispatch}else typeof l!==zre&&l.exports&&(Object.defineProperty(u,"__esModule",{value:!0}),l.exports={default:t,Worker:t})}function sCt(e,t,i){var s,a,c,b,g,m,_,k,I,D;for(k=new kb(i),ol(k,t),Xe(k,(nt(),Ur),t),k.o.a=t.g,k.o.b=t.f,k.n.a=t.i,k.n.b=t.j,lt(i.a,k),xr(e.a,t,k),((!t.a&&(t.a=new qe($r,t,10,11)),t.a).i!=0||wt(gt(Qe(t,(pt(),D_)))))&&Xe(k,O$e,(cn(),!0)),_=f(V(i,ma),21),I=f(V(k,(pt(),Oi)),101),I==(Co(),u0)?Xe(k,Oi,mh):I!=mh&&_.Fc((As(),a4)),D=0,s=f(V(i,$u),88),m=new Sn((!t.c&&(t.c=new qe(Mc,t,9,9)),t.c));m.e!=m.i.gc();)g=f(Cn(m),123),a=di(t),(Ne(Qe(a,Np))!==Ne((Wh(),Dg))||Ne(Qe(a,Ow))===Ne((Eg(),i4))||Ne(Qe(a,Ow))===Ne((Eg(),r4))||wt(gt(Qe(a,Cy)))||Ne(Qe(a,N_))!==Ne((hw(),A_))||Ne(Qe(a,r0))===Ne((Sf(),Oy))||Ne(Qe(a,r0))===Ne((Sf(),W_))||Ne(Qe(a,Mw))===Ne((Ag(),g4))||Ne(Qe(a,Mw))===Ne((Ag(),w4)))&&!wt(gt(Qe(t,AV)))&&zr(g,Yr,ot(D++)),wt(gt(Qe(g,Lw)))||kLn(e,g,k,_,s,I);for(b=new Sn((!t.n&&(t.n=new qe(Fs,t,1,7)),t.n));b.e!=b.i.gc();)c=f(Cn(b),135),!wt(gt(Qe(c,Lw)))&&c.a&<(k.b,fte(c));return wt(gt(V(k,JI)))&&_.Fc((As(),gV)),wt(gt(V(k,PV)))&&(_.Fc((As(),wV)),_.Fc(GI),Xe(k,Oi,mh)),k}function lre(e,t,i,s,a,c,b){var g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ut,Dt,Nt,ln,an,Tn,Pr,Si;for(z=0,ln=0,_=new ee(e.b);_.a<_.c.c.length;)m=f(Z(_),163),m.c&&Mxt(m.c),z=h.Math.max(z,dc(m)),ln+=dc(m)*ru(m);for(X=ln/e.b.c.length,Nt=b$n(e.b,X),ln+=e.b.c.length*Nt,z=h.Math.max(z,h.Math.sqrt(ln*b))+i.b,Pr=i.b,Si=i.d,W=0,I=i.b+i.c,Dt=new li,hr(Dt,ot(0)),Ze=new li,k=new No(e.b,0),U=null,g=new st;k.bz&&(c&&(cs(Ze,W),cs(Dt,ot(k.b-1)),lt(e.d,U),g.c.length=0),Pr=i.b,Si+=W+t,W=0,I=h.Math.max(I,i.b+i.c+Tn)),sn(g.c,m),fSt(m,Pr,Si),I=h.Math.max(I,Pr+Tn+i.c),W=h.Math.max(W,D),Pr+=Tn+t,U=m;if(eo(e.a,g),lt(e.d,f(yt(g,g.c.length-1),163)),I=h.Math.max(I,s),an=Si+W+i.a,ana.d.d+a.d.a?k.f.d=!0:(k.f.d=!0,k.f.a=!0))),s.b!=s.d.c&&(t=i);k&&(c=f(En(e.f,b.d.i),60),t.bc.d.d+c.d.a?k.f.d=!0:(k.f.d=!0,k.f.a=!0))}for(g=new kn(xn(go(W).a.Kc(),new O));Un(g);)b=f(On(g),18),b.a.b!=0&&(t=f(Jf(b.a),8),b.d.j==(ft(),bn)&&(X=new J6(t,new tt(t.a,a.d.d),a,b),X.f.a=!0,X.a=b.d,sn(z.c,X)),b.d.j==jn&&(X=new J6(t,new tt(t.a,a.d.d+a.d.a),a,b),X.f.d=!0,X.a=b.d,sn(z.c,X)))}return z}function vjn(e,t,i){var s,a,c,b,g,m,_,k,I,D;for(m=new st,I=t.length,b=DSe(i),_=0;_=U&&(ge>U&&(W.c.length=0,U=ge),sn(W.c,b));W.c.length!=0&&(D=f(yt(W,SH(t,W.c.length)),131),an.a.Bc(D)!=null,D.s=z++,Nke(D,Nt,Ze),W.c.length=0)}for(Ce=e.c.length+1,g=new ee(e);g.aln.s&&(iu(i),Ja(ln.i,s),s.c>0&&(s.a=ln,lt(ln.t,s),s.b=ut,lt(ut.i,s)))}function lCt(e,t,i,s,a){var c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ut,Dt,Nt,ln,an;for(z=new ka(t.b),Ce=new ka(t.b),D=new ka(t.b),Dt=new ka(t.b),X=new ka(t.b),ut=Hn(t,0);ut.b!=ut.d.c;)for(Ke=f(Bn(ut),12),g=new ee(Ke.g);g.a0,oe=Ke.g.c.length>0,_&&oe?sn(D.c,Ke):_?sn(z.c,Ke):oe&&sn(Ce.c,Ke);for(U=new ee(z);U.age.nh()-_.b&&(D=ge.nh()-_.b),W>ge.oh()-_.d&&(W=ge.oh()-_.d),k0){for(_e=Hn(e.f,0);_e.b!=_e.d.c;)ge=f(Bn(_e),10),ge.p+=D-e.e;ZEe(e),wu(e.f),qke(e,s,W)}else{for(hr(e.f,W),W.p=s,e.e=h.Math.max(e.e,s),c=new kn(xn(go(W).a.Kc(),new O));Un(c);)a=f(On(c),18),!a.c.i.c&&a.c.i.k==(gn(),ea)&&(hr(e.f,a.c.i),a.c.i.p=s-1);e.c=s}else ZEe(e),wu(e.f),s=0,Un(new kn(xn(go(W).a.Kc(),new O)))?(D=0,D=gSt(D,W),s=D+2,qke(e,s,W)):(hr(e.f,W),W.p=0,e.e=h.Math.max(e.e,0),e.b=f(yt(e.d.b,0),30),e.c=0);for(e.f.b==0||ZEe(e),e.d.a.c.length=0,oe=new st,_=new ee(e.d.b);_.a<_.c.c.length;)g=f(Z(_),30),g.a.c.length==0&&sn(oe.c,g);for(u2e(e.d.b,oe),I=0,m=new ee(e.d.b);m.a=48&&t<=57){for(s=t-48;a=48&&t<=57;)if(s=s*10+t-48,s<0)throw ne(new ar(dr((ir(),_Ae))))}else throw ne(new ar(dr((ir(),VTt))));if(i=s,t==44){if(a>=e.j)throw ne(new ar(dr((ir(),KTt))));if((t=Jo(e.i,a++))>=48&&t<=57){for(i=t-48;a=48&&t<=57;)if(i=i*10+t-48,i<0)throw ne(new ar(dr((ir(),_Ae))));if(s>i)throw ne(new ar(dr((ir(),qTt))))}else i=-1}if(t!=125)throw ne(new ar(dr((ir(),zTt))));e.bm(a)?(c=(Or(),Or(),new Gv(9,c)),e.d=a+1):(c=(Or(),Or(),new Gv(3,c)),e.d=a),c.Om(s),c.Nm(i),Ir(e)}}return c}function xjn(e){var t,i,s,a,c;switch(i=f(V(e,(nt(),ma)),21),t=XF(g5t),a=f(V(e,(pt(),M_)),346),a==(vb(),Wg)&&Eu(t,w5t),wt(gt(V(e,Dle)))?gr(t,(Yo(),cd),(ss(),Vse)):gr(t,(Yo(),sa),(ss(),Vse)),V(e,(hW(),_5))!=null&&Eu(t,m5t),(wt(gt(V(e,N6e)))||wt(gt(V(e,$6e))))&&hc(t,(Yo(),ll),(ss(),TTe)),f(V(e,$u),88).g){case 2:case 3:case 4:hc(gr(t,(Yo(),cd),(ss(),ITe)),ll,$Te)}switch(i.Hc((As(),gV))&&hc(gr(gr(t,(Yo(),cd),(ss(),ATe)),ga,xTe),ll,CTe),Ne(V(e,r0))!==Ne((Sf(),GV))&&gr(t,(Yo(),sa),(ss(),zTe)),i.Hc(mV)&&(gr(t,(Yo(),cd),(ss(),JTe)),gr(t,Pp,qTe),gr(t,sa,XTe)),Ne(V(e,xV))!==Ne((cA(),UI))&&Ne(V(e,Ob))!==Ne((_b(),L9))&&hc(t,(Yo(),ll),(ss(),BTe)),wt(gt(V(e,P6e)))&&gr(t,(Yo(),sa),(ss(),FTe)),wt(gt(V(e,Ple)))&&gr(t,(Yo(),sa),(ss(),YTe)),FPn(e)&&(Ne(V(e,M_))===Ne(Wg)?s=f(V(e,c9),299):s=f(V(e,Ile),299),c=s==(BC(),gle)?(ss(),KTe):(ss(),e$e),gr(t,(Yo(),ga),c)),f(V(e,sIe),388).g){case 1:gr(t,(Yo(),ga),(ss(),QTe));break;case 2:hc(gr(gr(t,(Yo(),sa),(ss(),STe)),ga,ETe),ll,kTe)}return Ne(V(e,Np))!==Ne((Wh(),Dg))&&gr(t,(Yo(),sa),(ss(),ZTe)),t}function fCt(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e;if(Na(e.a,t)){if(Rd(f(En(e.a,t),49),i))return 1}else xr(e.a,t,new Gi);if(Na(e.a,i)){if(Rd(f(En(e.a,i),49),t))return-1}else xr(e.a,i,new Gi);if(Na(e.e,t)){if(Rd(f(En(e.e,t),49),i))return-1}else xr(e.e,t,new Gi);if(Na(e.e,i)){if(Rd(f(En(e.a,i),49),t))return 1}else xr(e.e,i,new Gi);if(e.c==(Wh(),Qle)||!ri(t,(nt(),Yr))||!ri(i,(nt(),Yr))){for(I=null,_=new ee(t.j);_.a<_.c.c.length;)g=f(Z(_),12),g.e.c.length==0||f(yt(g.e,0),18).c.i.c!=t.c&&(I=f(yt(g.e,0),18).c);for(W=null,m=new ee(i.j);m.ab?gA(e,t,i):gA(e,i,t),ab?1:0}return s=f(V(t,(nt(),Yr)),17).a,c=f(V(i,Yr),17).a,s>c?gA(e,t,i):gA(e,i,t),sc?1:0}function ay(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X;if(i==null)return null;if(e.a!=t.jk())throw ne(new hn(HA+t.xe()+gy));if(ve(t,469)){if(X=w7n(f(t,685),i),!X)throw ne(new hn(yoe+i+"' is not a valid enumerator of '"+t.xe()+"'"));return X}switch(vg((gc(),qo),t).Nl()){case 2:{i=ha(i,!1);break}case 3:{i=ha(i,!0);break}}if(s=vg(qo,t).Jl(),s)return s.jk().wi().ti(s,i);if(D=vg(qo,t).Ll(),D){for(X=new st,_=nte(i),k=0,I=_.length;k1)for(U=new Kk((!e.a&&(e.a=new qe(ai,e,6,6)),e.a));U.e!=U.i.gc();)D6(U);for(b=f(Se((!e.a&&(e.a=new qe(ai,e,6,6)),e.a),0),166),X=Pr,Pr>Ke+Ce?X=Ke+Ce:PrZe+z?oe=Ze+z:SiKe-Ce&&XZe-z&&oePr+Tn?Dt=Pr+Tn:KeSi+ut?Nt=Si+ut:ZePr-Tn&&DtSi-ut&&Nti&&(D=i-1),W=qg+Uc(t,24)*bM*I-I/2,W<0?W=1:W>s&&(W=s-1),a=(v1(),m=new jj,m),TW(a,D),AW(a,W),zn((!b.a&&(b.a=new zi(Nu,b,5)),b.a),a)}function dCt(e){vm(e,new gw(wm(pm(gm(bm(new F0,zc),"ELK Rectangle Packing"),"Algorithm for packing of unconnected boxes, i.e. graphs without edges. The given order of the boxes is always preserved and the main reading direction of the boxes is left to right. The algorithm is divided into two phases. One phase approximates the width in which the rectangles can be placed. The next phase places the rectangles in rows using the previously calculated width as bounding width and bundles rectangles with a similar height in blocks. A compaction step reduces the size of the drawing. Finally, the rectangles are expanded to fill their bounding box and eliminate empty unused spaces."),new eQe))),it(e,zc,j3,1.3),it(e,zc,OA,(cn(),!1)),it(e,zc,fy,e8e),it(e,zc,m_,15),it(e,zc,HU,dt(TMt)),it(e,zc,A2,dt(PMt)),it(e,zc,B3,dt(NMt)),it(e,zc,F3,dt(MMt)),it(e,zc,NA,dt(IMt)),it(e,zc,fI,dt(Hae)),it(e,zc,MA,dt(DMt)),it(e,zc,MCe,dt(i8e)),it(e,zc,DCe,dt(r8e)),it(e,zc,NCe,dt(Gae)),it(e,zc,OCe,dt(o8e)),it(e,zc,LCe,dt(Z5e)),it(e,zc,jCe,dt(Uae)),it(e,zc,FCe,dt(Q5e)),it(e,zc,BCe,dt(n8e)),it(e,zc,uI,dt(Y5e)),it(e,zc,GU,dt($Mt)),it(e,zc,ICe,dt(k9)),it(e,zc,$Ce,dt(J5e)),it(e,zc,PCe,dt(R9)),it(e,zc,TCe,dt(t8e))}function cre(e,t){qne();var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ut;if(_e=e.e,k=e.d,a=e.a,_e==0)switch(t){case 0:return"0";case 1:return CA;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return oe=new m1,oe.a+="0E",oe.a+=-t,oe.a}if(z=k*10+1+7,X=Fe(df,zh,28,z+1,15,1),i=z,k==1)if(c=a[0],c<0){ut=fo(c,Ts);do I=ut,ut=NN(ut,10),X[--i]=48+tr(vf(I,os(ut,10)))&Ji;while(Jl(ut,0)!=0)}else{ut=c;do I=ut,ut=ut/10|0,X[--i]=48+(I-ut*10)&Ji;while(ut!=0)}else{Ce=Fe(Xn,wr,28,k,15,1),Ze=k,oa(a,0,Ce,0,Ze);e:for(;;){for(ge=0,g=Ze-1;g>=0;g--)Ke=is(Zf(ge,32),fo(Ce[g],Ts)),W=b6n(Ke),Ce[g]=tr(W),ge=tr(Im(W,32));U=tr(ge),D=i;do X[--i]=48+U%10&Ji;while((U=U/10|0)!=0&&i!=0);for(s=9-D+i,b=0;b0;b++)X[--i]=48;for(m=Ze-1;Ce[m]==0;m--)if(m==0)break e;Ze=m+1}for(;X[i]==48;)++i}return _=_e<0,_&&(X[--i]=45),Bh(X,i,z-i)}function hCt(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze;switch(e.c=t,e.g=new Fn,i=(_m(),new hm(e.c)),s=new Kj(i),S2e(s),_e=or(Qe(e.c,(DN(),k8e))),m=f(Qe(e.c,ece),324),Ke=f(Qe(e.c,tce),437),b=f(Qe(e.c,_8e),490),Ce=f(Qe(e.c,Zae),438),e.j=Ae(je(Qe(e.c,JMt))),g=e.a,m.g){case 0:g=e.a;break;case 1:g=e.b;break;case 2:g=e.i;break;case 3:g=e.e;break;case 4:g=e.f;break;default:throw ne(new hn(ZU+(m.f!=null?m.f:""+m.g)))}if(e.d=new sgt(g,Ke,b),Xe(e.d,(LC(),jI),gt(Qe(e.c,qMt))),e.d.c=wt(gt(Qe(e.c,S8e))),GB(e.c).i==0)return e.d;for(I=new Sn(GB(e.c));I.e!=I.i.gc();){for(k=f(Cn(I),27),W=k.g/2,D=k.f/2,Ze=new tt(k.i+W,k.j+D);Na(e.g,Ze);)Am(Ze,(h.Math.random()-.5)*Xh,(h.Math.random()-.5)*Xh);z=f(Qe(k,(Er(),E4)),140),X=new vgt(Ze,new Gu(Ze.a-W-e.j/2-z.b,Ze.b-D-e.j/2-z.d,k.g+e.j+(z.b+z.c),k.f+e.j+(z.d+z.a))),lt(e.d.i,X),xr(e.g,Ze,new io(X,k))}switch(Ce.g){case 0:if(_e==null)e.d.d=f(yt(e.d.i,0),68);else for(ge=new ee(e.d.i);ge.a0?Tn+1:1);for(b=new ee(Ze.g);b.a0?Tn+1:1)}e.c[_]==0?hr(e.e,z):e.a[_]==0&&hr(e.f,z),++_}for(U=-1,W=1,I=new st,e.d=f(V(t,(nt(),tR)),234);Mu>0;){for(;e.e.b!=0;)Si=f(eZ(e.e),10),e.b[Si.p]=U--,f3e(e,Si),--Mu;for(;e.f.b!=0;)Dc=f(eZ(e.f),10),e.b[Dc.p]=W++,f3e(e,Dc),--Mu;if(Mu>0){for(D=Qo,ge=new ee(_e);ge.a=D&&(Ce>D&&(I.c.length=0,D=Ce),sn(I.c,z)));k=e.sg(I),e.b[k.p]=W++,f3e(e,k),--Mu}}for(Pr=_e.c.length+1,_=0;_<_e.c.length;_++)e.b[_]<0&&(e.b[_]+=Pr);for(X=new ee(_e);X.ae.b[Ys]&&(sy(s,!0),Xe(t,o9,(cn(),!0)));e.a=null,e.c=null,e.b=null,wu(e.f),wu(e.e),i.Vg()}function pCt(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze;for(Ke=f(Se((!e.a&&(e.a=new qe(ai,e,6,6)),e.a),0),166),k=new cc,Ce=new Fn,Ze=ERt(Ke),Ca(Ce.f,Ke,Ze),D=new Fn,s=new li,U=wp(_u(se(ie(Tu,1),on,20,0,[(!t.d&&(t.d=new en(Fi,t,8,5)),t.d),(!t.e&&(t.e=new en(Fi,t,7,4)),t.e)])));Un(U);){if(W=f(On(U),74),(!e.a&&(e.a=new qe(ai,e,6,6)),e.a).i!=1)throw ne(new hn(eTt+(!e.a&&(e.a=new qe(ai,e,6,6)),e.a).i));W!=e&&(X=f(Se((!W.a&&(W.a=new qe(ai,W,6,6)),W.a),0),166),Ai(s,X,s.c.b,s.c),z=f(tl(xs(Ce.f,X)),13),z||(z=ERt(X),Ca(Ce.f,X,z)),I=i?uo(new us(f(yt(Ze,Ze.c.length-1),8)),f(yt(z,z.c.length-1),8)):uo(new us((Xt(0,Ze.c.length),f(Ze.c[0],8))),(Xt(0,z.c.length),f(z.c[0],8))),Ca(D.f,X,I))}if(s.b!=0)for(oe=f(yt(Ze,i?Ze.c.length-1:0),8),_=1;_1&&Ai(k,oe,k.c.b,k.c),Cee(a)));oe=ge}return k}function bCt(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ut,Dt,Nt,ln;for(i.Ug(b4t,1),ln=f(fl(Br(new Wt(null,new Vt(t,16)),new TYe),Cc(new K,new B,new Qt,se(ie(qs,1),Je,108,0,[(Tc(),pl)]))),15),k=f(fl(Br(new Wt(null,new Vt(t,16)),new mot(t)),Cc(new K,new B,new Qt,se(ie(qs,1),Je,108,0,[pl]))),15),U=f(fl(Br(new Wt(null,new Vt(t,16)),new wot(t)),Cc(new K,new B,new Qt,se(ie(qs,1),Je,108,0,[pl]))),15),z=Fe(YV,qU,40,t.gc(),0,1),b=0;b=0&&Nt=0&&!z[W]){z[W]=a,k.gd(g),--g;break}if(W=Nt-D,W=0&&!z[W]){z[W]=a,k.gd(g),--g;break}}for(U.jd(new $Ye),m=z.length-1;m>=0;m--)!z[m]&&!U.dc()&&(z[m]=f(U.Xb(0),40),U.gd(0));for(_=0;_=0;m--)hr(i,(Xt(m,b.c.length),f(b.c[m],8)));return i}function wCt(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce;for(_e=Ae(je(Qe(t,(Ep(),G_)))),W=Ae(je(Qe(t,g5))),D=Ae(je(Qe(t,lz))),pSe((!t.a&&(t.a=new qe($r,t,10,11)),t.a)),oe=lxt((!t.a&&(t.a=new qe($r,t,10,11)),t.a),_e,e.b),X=0;XD&&PN((Xt(D,t.c.length),f(t.c[D],186)),k),k=null;t.c.length>D&&(Xt(D,t.c.length),f(t.c[D],186)).a.c.length==0;)Ja(t,(Xt(D,t.c.length),t.c[D]));if(!k){--b;continue}if(!wt(gt(f(yt(k.b,0),27).of((sh(),R9))))&&XNn(t,U,c,k,X,i,D,s)){z=!0;continue}if(X){if(W=U.b,I=k.f,!wt(gt(f(yt(k.b,0),27).of(R9)))&&pDn(t,U,c,k,i,D,s,a)){if(z=!0,W=e.j){e.a=-1,e.c=1;return}if(t=Jo(e.i,e.d++),e.a=t,e.b==1){switch(t){case 92:if(s=10,e.d>=e.j)throw ne(new ar(dr((ir(),sG))));e.a=Jo(e.i,e.d++);break;case 45:(e.e&512)==512&&e.d=e.j||Jo(e.i,e.d)!=63)break;if(++e.d>=e.j)throw ne(new ar(dr((ir(),Poe))));switch(t=Jo(e.i,e.d++),t){case 58:s=13;break;case 61:s=14;break;case 33:s=15;break;case 91:s=19;break;case 62:s=18;break;case 60:if(e.d>=e.j)throw ne(new ar(dr((ir(),Poe))));if(t=Jo(e.i,e.d++),t==61)s=16;else if(t==33)s=17;else throw ne(new ar(dr((ir(),CTt))));break;case 35:for(;e.d=e.j)throw ne(new ar(dr((ir(),sG))));e.a=Jo(e.i,e.d++);break;default:s=0}e.c=s}function Djn(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X;if(i.Ug("Process compaction",1),!!wt(gt(V(t,(Il(),o5e))))){for(a=f(V(t,My),88),W=Ae(je(V(t,yae))),c9n(e,t,a),ZLn(t,W/2/2),U=t.b,sw(U,new uot(a)),_=Hn(U,0);_.b!=_.d.c;)if(m=f(Bn(_),40),!wt(gt(V(m,(ei(),s0))))){if(s=M7n(m,a),z=$Mn(m,t),I=0,D=0,s)switch(X=s.e,a.g){case 2:I=X.a-W-m.f.a,z.e.a-W-m.f.aI&&(I=z.e.a+z.f.a+W),D=I+m.f.a;break;case 4:I=X.b-W-m.f.b,z.e.b-W-m.f.bI&&(I=z.e.b+z.f.b+W),D=I+m.f.b}else if(z)switch(a.g){case 2:I=z.e.a-W-m.f.a,D=I+m.f.a;break;case 1:I=z.e.a+z.f.a+W,D=I+m.f.a;break;case 4:I=z.e.b-W-m.f.b,D=I+m.f.b;break;case 3:I=z.e.b+z.f.b+W,D=I+m.f.b}Ne(V(t,mae))===Ne((m6(),m9))?(c=I,b=D,g=GC(Br(new Wt(null,new Vt(e.a,16)),new Zct(c,b))),g.a!=null?a==(Xi(),Js)||a==al?m.e.a=I:m.e.b=I:(a==(Xi(),Js)||a==cf?g=GC(Br(Tmt(new Wt(null,new Vt(e.a,16))),new fot(c))):g=GC(Br(Tmt(new Wt(null,new Vt(e.a,16))),new dot(c))),g.a!=null&&(a==Js||a==al?m.e.a=Ae(je((In(g.a!=null),f(g.a,42)).a)):m.e.b=Ae(je((In(g.a!=null),f(g.a,42)).a)))),g.a!=null&&(k=il(e.a,(In(g.a!=null),g.a),0),k>0&&k!=f(V(m,ip),17).a&&(Xe(m,YIe,(cn(),!0)),Xe(m,ip,ot(k))))):a==(Xi(),Js)||a==al?m.e.a=I:m.e.b=I}i.Vg()}}function mCt(e){var t,i,s,a,c,b,g,m,_;for(e.b=1,Ir(e),t=null,e.c==0&&e.a==94?(Ir(e),t=(Or(),Or(),new yu(4)),da(t,0,zA),g=new yu(4)):g=(Or(),Or(),new yu(4)),a=!0;(_=e.c)!=1;){if(_==0&&e.a==93&&!a){t&&(tI(t,g),g=t);break}if(i=e.a,s=!1,_==10)switch(i){case 100:case 68:case 119:case 87:case 115:case 83:h_(g,wA(i)),s=!0;break;case 105:case 73:case 99:case 67:i=(h_(g,wA(i)),-1),i<0&&(s=!0);break;case 112:case 80:if(m=bke(e,i),!m)throw ne(new ar(dr((ir(),Ooe))));h_(g,m),s=!0;break;default:i=Jke(e)}else if(_==24&&!a){if(t&&(tI(t,g),g=t),c=mCt(e),tI(g,c),e.c!=0||e.a!=93)throw ne(new ar(dr((ir(),LTt))));break}if(Ir(e),!s){if(_==0){if(i==91)throw ne(new ar(dr((ir(),yAe))));if(i==93)throw ne(new ar(dr((ir(),vAe))));if(i==45&&!a&&e.a!=93)throw ne(new ar(dr((ir(),Noe))))}if(e.c!=0||e.a!=45||i==45&&a)da(g,i,i);else{if(Ir(e),(_=e.c)==1)throw ne(new ar(dr((ir(),lG))));if(_==0&&e.a==93)da(g,i,i),da(g,45,45);else{if(_==0&&e.a==93||_==24)throw ne(new ar(dr((ir(),Noe))));if(b=e.a,_==0){if(b==91)throw ne(new ar(dr((ir(),yAe))));if(b==93)throw ne(new ar(dr((ir(),vAe))));if(b==45)throw ne(new ar(dr((ir(),Noe))))}else _==10&&(b=Jke(e));if(Ir(e),i>b)throw ne(new ar(dr((ir(),BTt))));da(g,i,b)}}}a=!1}if(e.c==1)throw ne(new ar(dr((ir(),lG))));return b2(g),Z6(g),e.b=0,Ir(e),g}function Ljn(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke;if(i.Ug("Coffman-Graham Layering",1),t.a.c.length==0){i.Vg();return}for(Ke=f(V(t,(pt(),D6e)),17).a,m=0,b=0,D=new ee(t.a);D.a=Ke||!IAn(oe,s))&&(s=gbt(t,k)),Oo(oe,s),c=new kn(xn(go(oe).a.Kc(),new O));Un(c);)a=f(On(c),18),!e.a[a.p]&&(z=a.c.i,--e.e[z.p],e.e[z.p]==0&&Qk(aA(W,z),AA));for(_=k.c.length-1;_>=0;--_)lt(t.b,(Xt(_,k.c.length),f(k.c[_],30)));t.a.c.length=0,i.Vg()}function yCt(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce;Ce=!1;do for(Ce=!1,c=t?new H0(e.a.b).a.gc()-2:1;t?c>=0:cf(V(X,Yr),17).a)&&(_e=!1);if(_e){for(m=t?c+1:c-1,g=t_e(e.a,ot(m)),b=!1,ge=!0,s=!1,k=Hn(g,0);k.b!=k.d.c;)_=f(Bn(k),10),ri(_,Yr)?_.p!=I.p&&(b=b|(t?f(V(_,Yr),17).af(V(I,Yr),17).a),ge=!1):!b&&ge&&_.k==(gn(),ea)&&(s=!0,t?D=f(On(new kn(xn(go(_).a.Kc(),new O))),18).c.i:D=f(On(new kn(xn(Wi(_).a.Kc(),new O))),18).d.i,D==I&&(t?i=f(On(new kn(xn(Wi(_).a.Kc(),new O))),18).d.i:i=f(On(new kn(xn(go(_).a.Kc(),new O))),18).c.i,(t?f(Ov(e.a,i),17).a-f(Ov(e.a,D),17).a:f(Ov(e.a,D),17).a-f(Ov(e.a,i),17).a)<=2&&(ge=!1)));if(s&&ge&&(t?i=f(On(new kn(xn(Wi(I).a.Kc(),new O))),18).d.i:i=f(On(new kn(xn(go(I).a.Kc(),new O))),18).c.i,(t?f(Ov(e.a,i),17).a-f(Ov(e.a,I),17).a:f(Ov(e.a,I),17).a-f(Ov(e.a,i),17).a)<=2&&i.k==(gn(),ji)&&(ge=!1)),b||ge){for(z=Jkt(e,I,t);z.a.gc()!=0;)U=f(z.a.ec().Kc().Pb(),10),z.a.Bc(U)!=null,Do(z,Jkt(e,U,t));--W,Ce=!0}}}while(Ce)}function jjn(e){Zn(e.c,pr,se(ie(_t,1),rt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#decimal"])),Zn(e.d,pr,se(ie(_t,1),rt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#integer"])),Zn(e.e,pr,se(ie(_t,1),rt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#boolean"])),Zn(e.f,pr,se(ie(_t,1),rt,2,6,[Zo,"EBoolean",Tr,"EBoolean:Object"])),Zn(e.i,pr,se(ie(_t,1),rt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#byte"])),Zn(e.g,pr,se(ie(_t,1),rt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#hexBinary"])),Zn(e.j,pr,se(ie(_t,1),rt,2,6,[Zo,"EByte",Tr,"EByte:Object"])),Zn(e.n,pr,se(ie(_t,1),rt,2,6,[Zo,"EChar",Tr,"EChar:Object"])),Zn(e.t,pr,se(ie(_t,1),rt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#double"])),Zn(e.u,pr,se(ie(_t,1),rt,2,6,[Zo,"EDouble",Tr,"EDouble:Object"])),Zn(e.F,pr,se(ie(_t,1),rt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#float"])),Zn(e.G,pr,se(ie(_t,1),rt,2,6,[Zo,"EFloat",Tr,"EFloat:Object"])),Zn(e.I,pr,se(ie(_t,1),rt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#int"])),Zn(e.J,pr,se(ie(_t,1),rt,2,6,[Zo,"EInt",Tr,"EInt:Object"])),Zn(e.N,pr,se(ie(_t,1),rt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#long"])),Zn(e.O,pr,se(ie(_t,1),rt,2,6,[Zo,"ELong",Tr,"ELong:Object"])),Zn(e.Z,pr,se(ie(_t,1),rt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#short"])),Zn(e.$,pr,se(ie(_t,1),rt,2,6,[Zo,"EShort",Tr,"EShort:Object"])),Zn(e._,pr,se(ie(_t,1),rt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#string"]))}function Fjn(e,t,i,s,a,c,b){var g,m,_,k,I,D,W,U;return D=f(s.a,17).a,W=f(s.b,17).a,I=e.b,U=e.c,g=0,k=0,t==(Xi(),Js)||t==al?(k=ZO(c_t(Wv(nl(new Wt(null,new Vt(i.b,16)),new PYe),new pYe))),I.e.b+I.f.b/2>k?(_=++W,g=Ae(je(tu(jv(nl(new Wt(null,new Vt(i.b,16)),new nut(a,_)),new bYe))))):(m=++D,g=Ae(je(tu(e3(nl(new Wt(null,new Vt(i.b,16)),new rut(a,m)),new gYe)))))):(k=ZO(c_t(Wv(nl(new Wt(null,new Vt(i.b,16)),new vYe),new hYe))),I.e.a+I.f.a/2>k?(_=++W,g=Ae(je(tu(jv(nl(new Wt(null,new Vt(i.b,16)),new eut(a,_)),new wYe))))):(m=++D,g=Ae(je(tu(e3(nl(new Wt(null,new Vt(i.b,16)),new tut(a,m)),new mYe)))))),t==Js?(cs(e.a,new tt(Ae(je(V(I,(ei(),Fd))))-a,g)),cs(e.a,new tt(U.e.a+U.f.a+a+c,g)),cs(e.a,new tt(U.e.a+U.f.a+a+c,U.e.b+U.f.b/2)),cs(e.a,new tt(U.e.a+U.f.a,U.e.b+U.f.b/2))):t==al?(cs(e.a,new tt(Ae(je(V(I,(ei(),fd))))+a,I.e.b+I.f.b/2)),cs(e.a,new tt(I.e.a+I.f.a+a,g)),cs(e.a,new tt(U.e.a-a-c,g)),cs(e.a,new tt(U.e.a-a-c,U.e.b+U.f.b/2)),cs(e.a,new tt(U.e.a,U.e.b+U.f.b/2))):t==cf?(cs(e.a,new tt(g,Ae(je(V(I,(ei(),Fd))))-a)),cs(e.a,new tt(g,U.e.b+U.f.b+a+c)),cs(e.a,new tt(U.e.a+U.f.a/2,U.e.b+U.f.b+a+c)),cs(e.a,new tt(U.e.a+U.f.a/2,U.e.b+U.f.b+a))):(e.a.b==0||(f(Jf(e.a),8).b=Ae(je(V(I,(ei(),fd))))+a*f(b.b,17).a),cs(e.a,new tt(g,Ae(je(V(I,(ei(),fd))))+a*f(b.b,17).a)),cs(e.a,new tt(g,U.e.b-a*f(b.a,17).a-c))),new io(ot(D),ot(W))}function Bjn(e){var t,i,s,a,c,b,g,m,_,k,I,D,W;if(b=!0,I=null,s=null,a=null,t=!1,W=ODt,_=null,c=null,g=0,m=Ite(e,g,vOe,_Oe),m=0&&Ht(e.substr(g,2),"//")?(g+=2,m=Ite(e,g,j5,F5),s=(Mo(g,m,e.length),e.substr(g,m-g)),g=m):I!=null&&(g==e.length||(pn(g,e.length),e.charCodeAt(g)!=47))&&(b=!1,m=Rme(e,Qa(35),g),m==-1&&(m=e.length),s=(Mo(g,m,e.length),e.substr(g,m-g)),g=m);if(!i&&g0&&Jo(k,k.length-1)==58&&(a=k,g=m)),gxne(c))&&(I=c);for(!I&&(I=(Xt(0,X.c.length),f(X.c[0],185))),z=new ee(t.b);z.aI&&(an=0,Tn+=k+ut,k=0),cRt(Ke,b,an,Tn),t=h.Math.max(t,an+Ze.a),k=h.Math.max(k,Ze.b),an+=Ze.a+ut;for(Ce=new Fn,i=new Fn,Nt=new ee(e);Nt.a=-1900?1:0,i>=4?br(e,se(ie(_t,1),rt,2,6,[DCt,LCt])[g]):br(e,se(ie(_t,1),rt,2,6,["BC","AD"])[g]);break;case 121:s4n(e,i,s);break;case 77:kNn(e,i,s);break;case 107:m=a.q.getHours(),m==0?vp(e,24,i):vp(e,m,i);break;case 83:jPn(e,i,a);break;case 69:k=s.q.getDay(),i==5?br(e,se(ie(_t,1),rt,2,6,["S","M","T","W","T","F","S"])[k]):i==4?br(e,se(ie(_t,1),rt,2,6,[Tre,$re,Ire,Pre,Ore,Nre,Mre])[k]):br(e,se(ie(_t,1),rt,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[k]);break;case 97:a.q.getHours()>=12&&a.q.getHours()<24?br(e,se(ie(_t,1),rt,2,6,["AM","PM"])[1]):br(e,se(ie(_t,1),rt,2,6,["AM","PM"])[0]);break;case 104:I=a.q.getHours()%12,I==0?vp(e,12,i):vp(e,I,i);break;case 75:D=a.q.getHours()%12,vp(e,D,i);break;case 72:W=a.q.getHours(),vp(e,W,i);break;case 99:U=s.q.getDay(),i==5?br(e,se(ie(_t,1),rt,2,6,["S","M","T","W","T","F","S"])[U]):i==4?br(e,se(ie(_t,1),rt,2,6,[Tre,$re,Ire,Pre,Ore,Nre,Mre])[U]):i==3?br(e,se(ie(_t,1),rt,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[U]):vp(e,U,1);break;case 76:z=s.q.getMonth(),i==5?br(e,se(ie(_t,1),rt,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[z]):i==4?br(e,se(ie(_t,1),rt,2,6,[mre,yre,vre,_re,P3,Sre,Ere,kre,Rre,xre,Cre,Are])[z]):i==3?br(e,se(ie(_t,1),rt,2,6,["Jan","Feb","Mar","Apr",P3,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[z]):vp(e,z+1,i);break;case 81:X=s.q.getMonth()/3|0,i<4?br(e,se(ie(_t,1),rt,2,6,["Q1","Q2","Q3","Q4"])[X]):br(e,se(ie(_t,1),rt,2,6,["1st quarter","2nd quarter","3rd quarter","4th quarter"])[X]);break;case 100:oe=s.q.getDate(),vp(e,oe,i);break;case 109:_=a.q.getMinutes(),vp(e,_,i);break;case 115:b=a.q.getSeconds(),vp(e,b,i);break;case 122:i<4?br(e,c.c[0]):br(e,c.c[1]);break;case 118:br(e,c.b);break;case 90:i<3?br(e,I5n(c)):i==3?br(e,D5n(c)):br(e,L5n(c.a));break;default:return!1}return!0}function G3e(e,t,i,s){var a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ut,Dt,Nt,ln,an,Tn,Pr;if(Q3t(t),m=f(Se((!t.b&&(t.b=new en(Dn,t,4,7)),t.b),0),84),k=f(Se((!t.c&&(t.c=new en(Dn,t,5,8)),t.c),0),84),g=sl(m),_=sl(k),b=(!t.a&&(t.a=new qe(ai,t,6,6)),t.a).i==0?null:f(Se((!t.a&&(t.a=new qe(ai,t,6,6)),t.a),0),166),ut=f(En(e.a,g),10),an=f(En(e.a,_),10),Dt=null,Tn=null,ve(m,193)&&(Ze=f(En(e.a,m),305),ve(Ze,12)?Dt=f(Ze,12):ve(Ze,10)&&(ut=f(Ze,10),Dt=f(yt(ut.j,0),12))),ve(k,193)&&(ln=f(En(e.a,k),305),ve(ln,12)?Tn=f(ln,12):ve(ln,10)&&(an=f(ln,10),Tn=f(yt(an.j,0),12))),!ut||!an)throw ne(new Dk("The source or the target of edge "+t+" could not be found. This usually happens when an edge connects a node laid out by ELK Layered to a node in another level of hierarchy laid out by either another instance of ELK Layered or another layout algorithm alltogether. The former can be solved by setting the hierarchyHandling option to INCLUDE_CHILDREN."));for(z=new Fm,ol(z,t),Xe(z,(nt(),Ur),t),Xe(z,(pt(),Xs),null),W=f(V(s,ma),21),ut==an&&W.Fc((As(),VI)),Dt||(Ke=(Cs(),Ta),Nt=null,b&&HS(f(V(ut,Oi),101))&&(Nt=new tt(b.j,b.k),H1t(Nt,M7(t)),g0t(Nt,i),Xv(_,g)&&(Ke=Pc,Mr(Nt,ut.n))),Dt=ZRt(ut,Nt,Ke,s)),Tn||(Ke=(Cs(),Pc),Pr=null,b&&HS(f(V(an,Oi),101))&&(Pr=new tt(b.b,b.c),H1t(Pr,M7(t)),g0t(Pr,i)),Tn=ZRt(an,Pr,Ke,Go(an))),rs(z,Dt),xo(z,Tn),(Dt.e.c.length>1||Dt.g.c.length>1||Tn.e.c.length>1||Tn.g.c.length>1)&&W.Fc((As(),GI)),D=new Sn((!t.n&&(t.n=new qe(Fs,t,1,7)),t.n));D.e!=D.i.gc();)if(I=f(Cn(D),135),!wt(gt(Qe(I,Lw)))&&I.a)switch(X=fte(I),lt(z.b,X),f(V(X,rp),278).g){case 1:case 2:W.Fc((As(),l4));break;case 0:W.Fc((As(),s4)),Xe(X,rp,(nh(),R4))}if(c=f(V(s,YI),322),oe=f(V(s,DV),323),a=c==(u6(),n9)||oe==($6(),Jle),b&&(!b.a&&(b.a=new zi(Nu,b,5)),b.a).i!=0&&a){for(ge=jN(b),U=new cc,Ce=Hn(ge,0);Ce.b!=Ce.d.c;)_e=f(Bn(Ce),8),hr(U,new us(_e));Xe(z,j$e,U)}return z}function Gjn(e,t,i,s){var a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ut,Dt,Nt,ln,an,Tn,Pr,Si;for(Nt=0,ln=0,ut=new Fn,Ke=f(tu(jv(nl(new Wt(null,new Vt(e.b,16)),new yYe),new CYe)),17).a+1,Dt=Fe(Xn,wr,28,Ke,15,1),X=Fe(Xn,wr,28,Ke,15,1),z=0;z1)for(g=Tn+1;g_.b.e.b*(1-oe)+_.c.e.b*oe));U++);if(Ze.gc()>0&&(Pr=_.a.b==0?Ho(_.b.e):f(Jf(_.a),8),_e=Mr(Ho(f(Ze.Xb(Ze.gc()-1),40).e),f(Ze.Xb(Ze.gc()-1),40).f),D=Mr(Ho(f(Ze.Xb(0),40).e),f(Ze.Xb(0),40).f),U>=Ze.gc()-1&&Pr.b>_e.b&&_.c.e.b>_e.b||U<=0&&Pr.b_.b.e.a*(1-oe)+_.c.e.a*oe));U++);if(Ze.gc()>0&&(Pr=_.a.b==0?Ho(_.b.e):f(Jf(_.a),8),_e=Mr(Ho(f(Ze.Xb(Ze.gc()-1),40).e),f(Ze.Xb(Ze.gc()-1),40).f),D=Mr(Ho(f(Ze.Xb(0),40).e),f(Ze.Xb(0),40).f),U>=Ze.gc()-1&&Pr.a>_e.a&&_.c.e.a>_e.a||U<=0&&Pr.a=Ae(je(V(e,(ei(),e5e))))&&++ln):(W.f&&W.d.e.a<=Ae(je(V(e,(ei(),pae))))&&++Nt,W.g&&W.c.e.a+W.c.f.a>=Ae(je(V(e,(ei(),ZIe))))&&++ln)}else Ce==0?dke(_):Ce<0&&(++Dt[Tn],++X[Si],an=Fjn(_,t,e,new io(ot(Nt),ot(ln)),i,s,new io(ot(X[Si]),ot(Dt[Tn]))),Nt=f(an.a,17).a,ln=f(an.b,17).a)}function Vjn(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge;if(s=t,m=i,e.b&&s.j==(ft(),wn)&&m.j==(ft(),wn)&&(ge=s,s=m,m=ge),Na(e.a,s)){if(Rd(f(En(e.a,s),49),m))return 1}else xr(e.a,s,new Gi);if(Na(e.a,m)){if(Rd(f(En(e.a,m),49),s))return-1}else xr(e.a,m,new Gi);if(Na(e.d,s)){if(Rd(f(En(e.d,s),49),m))return-1}else xr(e.d,s,new Gi);if(Na(e.d,m)){if(Rd(f(En(e.a,m),49),s))return 1}else xr(e.d,m,new Gi);if(s.j!=m.j)return oe=Ogn(s.j,m.j),oe==-1?nf(e,m,s):nf(e,s,m),oe;if(s.e.c.length!=0&&m.e.c.length!=0){if(e.b&&(oe=Lvt(s,m),oe!=0))return oe==-1?nf(e,m,s):oe==1&&nf(e,s,m),oe;if(c=f(yt(s.e,0),18).c.i,k=f(yt(m.e,0),18).c.i,c==k)return a=f(V(f(yt(s.e,0),18),(nt(),Yr)),17).a,_=f(V(f(yt(m.e,0),18),Yr),17).a,a>_?nf(e,s,m):nf(e,m,s),a<_?-1:a>_?1:0;for(U=e.c,z=0,X=U.length;z_?nf(e,s,m):nf(e,m,s),a<_?-1:a>_?1:0):e.b&&(oe=Lvt(s,m),oe!=0)?(oe==-1?nf(e,m,s):oe==1&&nf(e,s,m),oe):(b=0,I=0,ri(f(yt(s.g,0),18),Yr)&&(b=f(V(f(yt(s.g,0),18),Yr),17).a),ri(f(yt(m.g,0),18),Yr)&&(I=f(V(f(yt(s.g,0),18),Yr),17).a),g&&g==D?wt(gt(V(f(yt(s.g,0),18),hh)))&&!wt(gt(V(f(yt(m.g,0),18),hh)))?(nf(e,s,m),1):!wt(gt(V(f(yt(s.g,0),18),hh)))&&wt(gt(V(f(yt(m.g,0),18),hh)))?(nf(e,m,s),-1):(b>I?nf(e,s,m):nf(e,m,s),bI?1:0):(e.f&&(e.f._b(g)&&(b=f(e.f.xc(g),17).a),e.f._b(D)&&(I=f(e.f.xc(D),17).a)),b>I?nf(e,s,m):nf(e,m,s),bI?1:0))):s.e.c.length!=0&&m.g.c.length!=0?(nf(e,s,m),1):s.g.c.length!=0&&m.e.c.length!=0?(nf(e,m,s),-1):ri(s,(nt(),Yr))&&ri(m,Yr)?(a=f(V(s,Yr),17).a,_=f(V(m,Yr),17).a,a>_?nf(e,s,m):nf(e,m,s),a<_?-1:a>_?1:0):(nf(e,m,s),-1)}function zjn(e){e.gb||(e.gb=!0,e.b=$l(e,0),Ti(e.b,18),oi(e.b,19),e.a=$l(e,1),Ti(e.a,1),oi(e.a,2),oi(e.a,3),oi(e.a,4),oi(e.a,5),e.o=$l(e,2),Ti(e.o,8),Ti(e.o,9),oi(e.o,10),oi(e.o,11),oi(e.o,12),oi(e.o,13),oi(e.o,14),oi(e.o,15),oi(e.o,16),oi(e.o,17),oi(e.o,18),oi(e.o,19),oi(e.o,20),oi(e.o,21),oi(e.o,22),oi(e.o,23),zs(e.o),zs(e.o),zs(e.o),zs(e.o),zs(e.o),zs(e.o),zs(e.o),zs(e.o),zs(e.o),zs(e.o),e.p=$l(e,3),Ti(e.p,2),Ti(e.p,3),Ti(e.p,4),Ti(e.p,5),oi(e.p,6),oi(e.p,7),zs(e.p),zs(e.p),e.q=$l(e,4),Ti(e.q,8),e.v=$l(e,5),oi(e.v,9),zs(e.v),zs(e.v),zs(e.v),e.w=$l(e,6),Ti(e.w,2),Ti(e.w,3),Ti(e.w,4),oi(e.w,5),e.B=$l(e,7),oi(e.B,1),zs(e.B),zs(e.B),zs(e.B),e.Q=$l(e,8),oi(e.Q,0),zs(e.Q),e.R=$l(e,9),Ti(e.R,1),e.S=$l(e,10),zs(e.S),zs(e.S),zs(e.S),zs(e.S),zs(e.S),zs(e.S),zs(e.S),zs(e.S),zs(e.S),zs(e.S),zs(e.S),zs(e.S),zs(e.S),zs(e.S),zs(e.S),e.T=$l(e,11),oi(e.T,10),oi(e.T,11),oi(e.T,12),oi(e.T,13),oi(e.T,14),zs(e.T),zs(e.T),e.U=$l(e,12),Ti(e.U,2),Ti(e.U,3),oi(e.U,4),oi(e.U,5),oi(e.U,6),oi(e.U,7),zs(e.U),e.V=$l(e,13),oi(e.V,10),e.W=$l(e,14),Ti(e.W,18),Ti(e.W,19),Ti(e.W,20),oi(e.W,21),oi(e.W,22),oi(e.W,23),e.bb=$l(e,15),Ti(e.bb,10),Ti(e.bb,11),Ti(e.bb,12),Ti(e.bb,13),Ti(e.bb,14),Ti(e.bb,15),Ti(e.bb,16),oi(e.bb,17),zs(e.bb),zs(e.bb),e.eb=$l(e,16),Ti(e.eb,2),Ti(e.eb,3),Ti(e.eb,4),Ti(e.eb,5),Ti(e.eb,6),Ti(e.eb,7),oi(e.eb,8),oi(e.eb,9),e.ab=$l(e,17),Ti(e.ab,0),Ti(e.ab,1),e.H=$l(e,18),oi(e.H,0),oi(e.H,1),oi(e.H,2),oi(e.H,3),oi(e.H,4),oi(e.H,5),zs(e.H),e.db=$l(e,19),oi(e.db,2),e.c=Ar(e,20),e.d=Ar(e,21),e.e=Ar(e,22),e.f=Ar(e,23),e.i=Ar(e,24),e.g=Ar(e,25),e.j=Ar(e,26),e.k=Ar(e,27),e.n=Ar(e,28),e.r=Ar(e,29),e.s=Ar(e,30),e.t=Ar(e,31),e.u=Ar(e,32),e.fb=Ar(e,33),e.A=Ar(e,34),e.C=Ar(e,35),e.D=Ar(e,36),e.F=Ar(e,37),e.G=Ar(e,38),e.I=Ar(e,39),e.J=Ar(e,40),e.L=Ar(e,41),e.M=Ar(e,42),e.N=Ar(e,43),e.O=Ar(e,44),e.P=Ar(e,45),e.X=Ar(e,46),e.Y=Ar(e,47),e.Z=Ar(e,48),e.$=Ar(e,49),e._=Ar(e,50),e.cb=Ar(e,51),e.K=Ar(e,52))}function Kjn(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ut,Dt,Nt,ln,an,Tn;for(b=new li,Ze=f(V(i,(pt(),$u)),88),z=0,Do(b,(!t.a&&(t.a=new qe($r,t,10,11)),t.a));b.b!=0;)k=f(b.b==0?null:(In(b.b!=0),Xu(b,b.a.a)),27),_=di(k),(Ne(Qe(_,Np))!==Ne((Wh(),Dg))||Ne(Qe(_,Ow))===Ne((Eg(),i4))||Ne(Qe(_,Ow))===Ne((Eg(),r4))||wt(gt(Qe(_,Cy)))||Ne(Qe(_,N_))!==Ne((hw(),A_))||Ne(Qe(_,r0))===Ne((Sf(),Oy))||Ne(Qe(_,r0))===Ne((Sf(),W_))||Ne(Qe(_,Mw))===Ne((Ag(),g4))||Ne(Qe(_,Mw))===Ne((Ag(),w4)))&&!wt(gt(Qe(k,AV)))&&zr(k,(nt(),Yr),ot(z++)),oe=!wt(gt(Qe(k,Lw))),oe&&(D=(!k.a&&(k.a=new qe($r,k,10,11)),k.a).i!=0,U=S6n(k),W=Ne(Qe(k,M_))===Ne((vb(),Wg)),Tn=!eh(k,(Er(),S4))||k0t(or(Qe(k,S4))),Ce=null,Tn&&W&&(D||U)&&(Ce=ORt(k),Xe(Ce,$u,Ze),ri(Ce,u9)&&Nlt(new C2e(Ae(je(V(Ce,u9)))),Ce),f(Qe(k,Dw),181).gc()!=0&&(I=Ce,Mi(new Wt(null,(!k.c&&(k.c=new qe(Mc,k,9,9)),new Vt(k.c,16))),new Wrt(I)),R3t(k,Ce))),ut=i,Dt=f(En(e.a,di(k)),10),Dt&&(ut=Dt.e),_e=sCt(e,k,ut),Ce&&(_e.e=Ce,Ce.e=_e,Do(b,(!k.a&&(k.a=new qe($r,k,10,11)),k.a))));for(z=0,Ai(b,t,b.c.b,b.c);b.b!=0;){for(c=f(b.b==0?null:(In(b.b!=0),Xu(b,b.a.a)),27),m=new Sn((!c.b&&(c.b=new qe(Fi,c,12,3)),c.b));m.e!=m.i.gc();)g=f(Cn(m),74),Q3t(g),(Ne(Qe(t,Np))!==Ne((Wh(),Dg))||Ne(Qe(t,Ow))===Ne((Eg(),i4))||Ne(Qe(t,Ow))===Ne((Eg(),r4))||wt(gt(Qe(t,Cy)))||Ne(Qe(t,N_))!==Ne((hw(),A_))||Ne(Qe(t,r0))===Ne((Sf(),Oy))||Ne(Qe(t,r0))===Ne((Sf(),W_))||Ne(Qe(t,Mw))===Ne((Ag(),g4))||Ne(Qe(t,Mw))===Ne((Ag(),w4)))&&zr(g,(nt(),Yr),ot(z++)),ln=sl(f(Se((!g.b&&(g.b=new en(Dn,g,4,7)),g.b),0),84)),an=sl(f(Se((!g.c&&(g.c=new en(Dn,g,5,8)),g.c),0),84)),!(wt(gt(Qe(g,Lw)))||wt(gt(Qe(ln,Lw)))||wt(gt(Qe(an,Lw))))&&(X=ry(g)&&wt(gt(Qe(ln,D_)))&&wt(gt(Qe(g,Nw))),Ke=c,X||Xv(an,ln)?Ke=ln:Xv(ln,an)&&(Ke=an),ut=i,Dt=f(En(e.a,Ke),10),Dt&&(ut=Dt.e),ge=G3e(e,g,Ke,ut),Xe(ge,(nt(),N$e),KOn(e,g,t,i)));if(W=Ne(Qe(c,M_))===Ne((vb(),Wg)),W)for(a=new Sn((!c.a&&(c.a=new qe($r,c,10,11)),c.a));a.e!=a.i.gc();)s=f(Cn(a),27),Tn=!eh(s,(Er(),S4))||k0t(or(Qe(s,S4))),Nt=Ne(Qe(s,M_))===Ne(Wg),Tn&&Nt&&Ai(b,s,b.c.b,b.c)}}function nt(){nt=F;var e,t;Ur=new Xr($Re),N$e=new Xr("coordinateOrigin"),Rle=new Xr("processors"),O$e=new _i("compoundNode",(cn(),!1)),s9=new _i("insideConnections",!1),j$e=new Xr("originalBendpoints"),F$e=new Xr("originalDummyNodePosition"),B$e=new Xr("originalLabelEdge"),KI=new Xr("representedLabels"),zI=new Xr("endLabels"),Q3=new Xr("endLabel.origin"),eR=new _i("labelSide",(ku(),F9)),V2=new _i("maxEdgeThickness",0),hh=new _i("reversed",!1),tR=new Xr(EAt),jd=new _i("longEdgeSource",null),Af=new _i("longEdgeTarget",null),P_=new _i("longEdgeHasLabelDummies",!1),l9=new _i("longEdgeBeforeLabelDummy",!1),_V=new _i("edgeConstraint",(uw(),ale)),ky=new Xr("inLayerLayoutUnit"),Iw=new _i("inLayerConstraint",(wb(),i9)),Z3=new _i("inLayerSuccessorConstraint",new st),L$e=new _i("inLayerSuccessorConstraintBetweenNonDummies",!1),Ic=new Xr("portDummy"),vV=new _i("crossingHint",ot(0)),ma=new _i("graphProperties",(t=f(kd(ble),9),new Uu(t,f(Yf(t,t.length),9),0))),Dl=new _i("externalPortSide",(ft(),Cl)),D$e=new _i("externalPortSize",new Io),vle=new Xr("externalPortReplacedDummies"),SV=new Xr("externalPortReplacedDummy"),Pb=new _i("externalPortConnections",(e=f(kd(vs),9),new Uu(e,f(Yf(e,e.length),9),0))),Ry=new _i(pAt,0),P$e=new Xr("barycenterAssociates"),nR=new Xr("TopSideComments"),Y3=new Xr("BottomSideComments"),yV=new Xr("CommentConnectionPort"),Sle=new _i("inputCollect",!1),kle=new _i("outputCollect",!1),o9=new _i("cyclic",!1),M$e=new Xr("crossHierarchyMap"),Cle=new Xr("targetOffset"),new _i("splineLabelSize",new Io),K2=new Xr("spacings"),EV=new _i("partitionConstraint",!1),Ey=new Xr("breakingPoint.info"),U$e=new Xr("splines.survivingEdge"),Pw=new Xr("splines.route.start"),q2=new Xr("splines.edgeChain"),H$e=new Xr("originalPortConstraints"),xy=new Xr("selfLoopHolder"),c4=new Xr("splines.nsPortY"),Yr=new Xr("modelOrder"),Ele=new Xr("longEdgeTargetNode"),t0=new _i(XAt,!1),z2=new _i(XAt,!1),_le=new Xr("layerConstraints.hiddenNodes"),W$e=new Xr("layerConstraints.opposidePort"),xle=new Xr("targetNode.modelOrder")}function qjn(e,t,i,s){var a,c,b,g,m,_,k,I,D,W,U;for(I=Hn(e.b,0);I.b!=I.d.c;)if(k=f(Bn(I),40),!Ht(k.c,KU))for(c=f(fl(new Wt(null,new Vt(r8n(k,e),16)),Cc(new K,new B,new Qt,se(ie(qs,1),Je,108,0,[(Tc(),pl)]))),15),t==(Xi(),Js)||t==al?c.jd(new EYe):c.jd(new kYe),U=c.gc(),a=0;a0&&(g=f(Jf(f(c.Xb(a),65).a),8).a,D=k.e.a+k.f.a/2,m=f(Jf(f(c.Xb(a),65).a),8).b,W=k.e.b+k.f.b/2,s>0&&h.Math.abs(m-W)/(h.Math.abs(g-D)/40)>50&&(W>m?cs(f(c.Xb(a),65).a,new tt(k.e.a+k.f.a+s/5.3,k.e.b+k.f.b*b-s/2)):cs(f(c.Xb(a),65).a,new tt(k.e.a+k.f.a+s/5.3,k.e.b+k.f.b*b+s/2)))),cs(f(c.Xb(a),65).a,new tt(k.e.a+k.f.a,k.e.b+k.f.b*b))):t==al?(_=Ae(je(V(k,(ei(),Fd)))),k.e.a-s>_?cs(f(c.Xb(a),65).a,new tt(_-i,k.e.b+k.f.b*b)):f(c.Xb(a),65).a.b>0&&(g=f(Jf(f(c.Xb(a),65).a),8).a,D=k.e.a+k.f.a/2,m=f(Jf(f(c.Xb(a),65).a),8).b,W=k.e.b+k.f.b/2,s>0&&h.Math.abs(m-W)/(h.Math.abs(g-D)/40)>50&&(W>m?cs(f(c.Xb(a),65).a,new tt(k.e.a-s/5.3,k.e.b+k.f.b*b-s/2)):cs(f(c.Xb(a),65).a,new tt(k.e.a-s/5.3,k.e.b+k.f.b*b+s/2)))),cs(f(c.Xb(a),65).a,new tt(k.e.a,k.e.b+k.f.b*b))):t==cf?(_=Ae(je(V(k,(ei(),fd)))),k.e.b+k.f.b+s<_?cs(f(c.Xb(a),65).a,new tt(k.e.a+k.f.a*b,_+i)):f(c.Xb(a),65).a.b>0&&(g=f(Jf(f(c.Xb(a),65).a),8).a,D=k.e.a+k.f.a/2,m=f(Jf(f(c.Xb(a),65).a),8).b,W=k.e.b+k.f.b/2,s>0&&h.Math.abs(g-D)/(h.Math.abs(m-W)/40)>50&&(D>g?cs(f(c.Xb(a),65).a,new tt(k.e.a+k.f.a*b-s/2,k.e.b+s/5.3+k.f.b)):cs(f(c.Xb(a),65).a,new tt(k.e.a+k.f.a*b+s/2,k.e.b+s/5.3+k.f.b)))),cs(f(c.Xb(a),65).a,new tt(k.e.a+k.f.a*b,k.e.b+k.f.b))):(_=Ae(je(V(k,(ei(),Fd)))),Evt(f(c.Xb(a),65),e)?cs(f(c.Xb(a),65).a,new tt(k.e.a+k.f.a*b,f(Jf(f(c.Xb(a),65).a),8).b)):k.e.b-s>_?cs(f(c.Xb(a),65).a,new tt(k.e.a+k.f.a*b,_-i)):f(c.Xb(a),65).a.b>0&&(g=f(Jf(f(c.Xb(a),65).a),8).a,D=k.e.a+k.f.a/2,m=f(Jf(f(c.Xb(a),65).a),8).b,W=k.e.b+k.f.b/2,s>0&&h.Math.abs(g-D)/(h.Math.abs(m-W)/40)>50&&(D>g?cs(f(c.Xb(a),65).a,new tt(k.e.a+k.f.a*b-s/2,k.e.b-s/5.3)):cs(f(c.Xb(a),65).a,new tt(k.e.a+k.f.a*b+s/2,k.e.b-s/5.3)))),cs(f(c.Xb(a),65).a,new tt(k.e.a+k.f.a*b,k.e.b)))}function Er(){Er=F;var e,t;S4=new Xr(N4t),hE=new Xr(M4t),J8e=(_p(),ice),x9t=new Bt(jxe,J8e),sE=new Bt(j3,null),C9t=new Xr(YCe),Q8e=(bw(),ii(lce,se(ie(ace,1),Je,298,0,[sce]))),$9=new Bt(HU,Q8e),I9=new Bt(TM,(cn(),!1)),Z8e=(Xi(),wh),Ww=new Bt(zie,Z8e),nPe=(_b(),_ce),tPe=new Bt(AM,nPe),$9t=new Bt(XCe,!1),oPe=(vb(),Ez),cE=new Bt(WU,oPe),pPe=new Rm(12),Bg=new Bt(fy,pPe),O9=new Bt(uI,!1),dce=new Bt(GU,!1),N9=new Bt(fI,!1),yPe=(Co(),u0),x5=new Bt(die,yPe),lR=new Xr(UU),M9=new Xr(yM),yce=new Xr(EU),vce=new Xr(cI),sPe=new cc,Dy=new Bt(Xxe,sPe),T9t=new Bt(Qxe,!1),I9t=new Bt(Zxe,!1),lPe=new n$,E4=new Bt(tCe,lPe),yz=new Bt(Dxe,!1),M9t=new Bt(D4t,1),aE=new Xr(L4t),lE=new Xr(j4t),k4=new Bt(vM,!1),new Bt(F4t,!0),ot(0),new Bt(B4t,ot(100)),new Bt(W4t,!1),ot(0),new Bt(H4t,ot(4e3)),ot(0),new Bt(U4t,ot(400)),new Bt(G4t,!1),new Bt(V4t,!1),new Bt(z4t,!0),new Bt(K4t,!1),Y8e=(sH(),Rce),A9t=new Bt(JCe,Y8e),D9t=new Bt(Rxe,10),L9t=new Bt(xxe,10),EPe=new Bt(oie,20),j9t=new Bt(Cxe,10),kPe=new Bt(fie,2),RPe=new Bt(Vie,10),xPe=new Bt(Axe,0),vz=new Bt(Ixe,5),CPe=new Bt(Txe,1),APe=new Bt($xe,1),Uw=new Bt(m_,20),F9t=new Bt(Pxe,10),IPe=new Bt(Oxe,10),aR=new Xr(Nxe),$Pe=new eft,TPe=new Bt(nCe,$Pe),O9t=new Xr(qie),bPe=!1,P9t=new Bt(Kie,bPe),cPe=new Rm(5),aPe=new Bt(Wxe,cPe),uPe=(a_(),t=f(kd(Ps),9),new Uu(t,f(Yf(t,t.length),9),0)),uE=new Bt(NA,uPe),wPe=(a2(),c0),gPe=new Bt(Gxe,wPe),pce=new Xr(Vxe),bce=new Xr(zxe),gce=new Xr(Kxe),hce=new Xr(qxe),fPe=(e=f(kd(N5),9),new Uu(e,f(Yf(e,e.length),9),0)),Hw=new Bt(A2,fPe),hPe=Mt((Gc(),T4)),l0=new Bt(F3,hPe),dPe=new tt(0,0),fE=new Bt(B3,dPe),V_=new Bt(OA,!1),ePe=(nh(),R4),uce=new Bt(Jxe,ePe),cce=new Bt(kU,!1),ot(1),new Bt(q4t,null),mPe=new Xr(eCe),wce=new Xr(Yxe),SPe=(ft(),Cl),dE=new Bt(Lxe,SPe),qc=new Xr(Mxe),vPe=($c(),Mt(f0)),z_=new Bt(MA,vPe),mce=new Bt(Hxe,!1),_Pe=new Bt(Uxe,!0),Sz=new Bt(_M,1),PPe=new Bt(QCe,null),D9=new Bt(SM,150),_z=new Bt(EM,1.414),cR=new Bt(dy,null),B9t=new Bt(ZCe,1),P9=new Bt(Fxe,!1),fce=new Bt(Bxe,!1),rPe=new Bt(sie,1),iPe=(NH(),Ece),new Bt(X4t,iPe),N9t=!0,H9t=(m3(),X_),U9t=X_,W9t=X_}function ss(){ss=F,ITe=new Vi("DIRECTION_PREPROCESSOR",0),ATe=new Vi("COMMENT_PREPROCESSOR",1),j2=new Vi("EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER",2),Gse=new Vi("INTERACTIVE_EXTERNAL_PORT_POSITIONER",3),JTe=new Vi("PARTITION_PREPROCESSOR",4),KG=new Vi("LABEL_DUMMY_INSERTER",5),rV=new Vi("SELF_LOOP_PREPROCESSOR",6),$_=new Vi("LAYER_CONSTRAINT_PREPROCESSOR",7),qTe=new Vi("PARTITION_MIDPROCESSOR",8),FTe=new Vi("HIGH_DEGREE_NODE_LAYER_PROCESSOR",9),zTe=new Vi("NODE_PROMOTION",10),T_=new Vi("LAYER_CONSTRAINT_POSTPROCESSOR",11),XTe=new Vi("PARTITION_POSTPROCESSOR",12),DTe=new Vi("HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR",13),YTe=new Vi("SEMI_INTERACTIVE_CROSSMIN_PROCESSOR",14),STe=new Vi("BREAKING_POINT_INSERTER",15),YG=new Vi("LONG_EDGE_SPLITTER",16),Vse=new Vi("PORT_SIDE_PROCESSOR",17),VG=new Vi("INVERTED_PORT_PROCESSOR",18),eV=new Vi("PORT_LIST_SORTER",19),ZTe=new Vi("SORT_BY_INPUT_ORDER_OF_MODEL",20),ZG=new Vi("NORTH_SOUTH_PORT_PREPROCESSOR",21),ETe=new Vi("BREAKING_POINT_PROCESSOR",22),KTe=new Vi(WAt,23),e$e=new Vi(HAt,24),tV=new Vi("SELF_LOOP_PORT_RESTORER",25),QTe=new Vi("SINGLE_EDGE_GRAPH_WRAPPER",26),zG=new Vi("IN_LAYER_CONSTRAINT_PROCESSOR",27),OTe=new Vi("END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR",28),GTe=new Vi("LABEL_AND_NODE_SIZE_PROCESSOR",29),UTe=new Vi("INNERMOST_NODE_MARGIN_CALCULATOR",30),iV=new Vi("SELF_LOOP_ROUTER",31),xTe=new Vi("COMMENT_NODE_MARGIN_CALCULATOR",32),GG=new Vi("END_LABEL_PREPROCESSOR",33),XG=new Vi("LABEL_DUMMY_SWITCHER",34),RTe=new Vi("CENTER_LABEL_MANAGEMENT_PROCESSOR",35),YA=new Vi("LABEL_SIDE_SELECTOR",36),WTe=new Vi("HYPEREDGE_DUMMY_MERGER",37),LTe=new Vi("HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR",38),VTe=new Vi("LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR",39),BI=new Vi("HIERARCHICAL_PORT_POSITION_PROCESSOR",40),TTe=new Vi("CONSTRAINTS_POSTPROCESSOR",41),CTe=new Vi("COMMENT_POSTPROCESSOR",42),HTe=new Vi("HYPERNODE_PROCESSOR",43),jTe=new Vi("HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER",44),JG=new Vi("LONG_EDGE_JOINER",45),nV=new Vi("SELF_LOOP_POSTPROCESSOR",46),kTe=new Vi("BREAKING_POINT_REMOVER",47),QG=new Vi("NORTH_SOUTH_PORT_POSTPROCESSOR",48),BTe=new Vi("HORIZONTAL_COMPACTOR",49),qG=new Vi("LABEL_DUMMY_REMOVER",50),NTe=new Vi("FINAL_SPLINE_BENDPOINTS_CALCULATOR",51),PTe=new Vi("END_LABEL_SORTER",52),ZM=new Vi("REVERSED_EDGE_RESTORER",53),UG=new Vi("END_LABEL_POSTPROCESSOR",54),MTe=new Vi("HIERARCHICAL_NODE_RESIZER",55),$Te=new Vi("DIRECTION_POSTPROCESSOR",56)}function V3e(){V3e=F,e6e=(nN(),dV),tPt=new Bt(BRe,e6e),hPt=new Bt(WRe,(cn(),!1)),s6e=(rW(),yle),mPt=new Bt(AU,s6e),OPt=new Bt(HRe,!1),NPt=new Bt(URe,!0),C8t=new Bt(GRe,!1),p6e=(eN(),eae),XPt=new Bt(VRe,p6e),ot(1),rOt=new Bt(zRe,ot(7)),iOt=new Bt(KRe,!1),pPt=new Bt(qRe,!1),Z$e=(Eg(),sle),ePt=new Bt(yie,Z$e),c6e=(Ag(),zle),PPt=new Bt(CM,c6e),l6e=(ef(),a9),kPt=new Bt(XRe,l6e),ot(-1),EPt=new Bt(JRe,null),ot(-1),RPt=new Bt(YRe,ot(-1)),ot(-1),xPt=new Bt(vie,ot(4)),ot(-1),APt=new Bt(_ie,ot(2)),a6e=(Sf(),GV),IPt=new Bt(Sie,a6e),ot(0),$Pt=new Bt(Eie,ot(0)),_Pt=new Bt(kie,ot(Nr)),Q$e=(u6(),HI),Z8t=new Bt(pI,Q$e),j8t=new Bt(QRe,!1),V8t=new Bt(Rie,.1),Y8t=new Bt(xie,!1),K8t=new Bt(ZRe,null),q8t=new Bt(exe,null),ot(-1),X8t=new Bt(txe,null),ot(-1),J8t=new Bt(nxe,ot(-1)),ot(0),F8t=new Bt(rxe,ot(40)),Y$e=(BC(),wle),U8t=new Bt(Cie,Y$e),J$e=r9,B8t=new Bt(TU,J$e),h6e=($6(),n5),qPt=new Bt(T2,h6e),FPt=new Xr($U),u6e=(X7(),pV),MPt=new Bt(Aie,u6e),f6e=(MN(),bV),LPt=new Bt(Tie,f6e),HPt=new Bt($ie,.3),GPt=new Xr(Iie),d6e=(n_(),UV),VPt=new Bt(Pie,d6e),r6e=(VW(),nae),sPt=new Bt(ixe,r6e),i6e=(w6(),iae),lPt=new Bt(oxe,i6e),o6e=(qC(),o5),aPt=new Bt(IU,o6e),uPt=new Bt(PU,.2),iPt=new Bt(Oie,2),ZPt=new Bt(sxe,null),tOt=new Bt(lxe,10),eOt=new Bt(axe,10),nOt=new Bt(cxe,20),ot(0),JPt=new Bt(uxe,ot(0)),ot(0),YPt=new Bt(fxe,ot(0)),ot(0),QPt=new Bt(dxe,ot(0)),A8t=new Bt(Nie,!1),z$e=(cA(),UI),$8t=new Bt(hxe,z$e),V$e=(pW(),ile),T8t=new Bt(pxe,V$e),gPt=new Bt(OU,!1),ot(0),bPt=new Bt(Mie,ot(16)),ot(0),wPt=new Bt(Die,ot(5)),w6e=(XW(),lae),kOt=new Bt(Tb,w6e),oOt=new Bt(NU,10),aOt=new Bt(MU,1),g6e=(IW(),fV),bOt=new Bt(bI,g6e),fOt=new Xr(Lie),b6e=ot(1),ot(0),hOt=new Bt(jie,b6e),m6e=($W(),sae),AOt=new Bt(DU,m6e),ROt=new Xr(LU),vOt=new Bt(jU,!0),mOt=new Bt(FU,2),SOt=new Bt(Fie,!0),n6e=(DH(),hV),rPt=new Bt(bxe,n6e),t6e=(R3(),t4),nPt=new Bt(gxe,t6e),X$e=(Wh(),Dg),L8t=new Bt(BU,X$e),D8t=new Bt(wxe,!1),M8t=new Bt(mxe,!1),K$e=(hw(),A_),I8t=new Bt(Bie,K$e),q$e=(v6(),Kle),N8t=new Bt(yxe,q$e),P8t=new Bt(Wie,0),O8t=new Bt(Hie,0),vPt=lle,yPt=n9,CPt=WV,TPt=WV,SPt=Vle,z8t=(vb(),Wg),Q8t=HI,G8t=HI,W8t=HI,H8t=Wg,BPt=r5,WPt=n5,DPt=n5,jPt=n5,UPt=Yle,KPt=r5,zPt=r5,cPt=(_b(),uR),fPt=uR,dPt=o5,oPt=L9,sOt=m4,lOt=H_,cOt=m4,uOt=H_,gOt=m4,wOt=H_,dOt=ole,pOt=fV,TOt=m4,$Ot=H_,xOt=m4,COt=H_,_Ot=H_,yOt=H_,EOt=H_}function Xjn(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ut,Dt,Nt,ln,an,Tn,Pr,Si,Dc,Ys,Mu,yE,qg,md,yd,Kw,gR,y0,wR,sp,Wp,Wy,mR,vE,lp,qw,Lb,$Lt,t7e,Hy,K5,Hce,yR,q5,rS,X5,Uce,ILt;for(t7e=0,Pr=t,Ys=0,qg=Pr.length;Ys0&&(e.a[sp.p]=t7e++)}for(q5=0,Si=i,Mu=0,md=Si.length;Mu0;){for(sp=(In(vE.b>0),f(vE.a.Xb(vE.c=--vE.b),12)),mR=0,g=new ee(sp.e);g.a0&&(sp.j==(ft(),bn)?(e.a[sp.p]=q5,++q5):(e.a[sp.p]=q5+yd+gR,++gR))}q5+=gR}for(Wy=new Fn,U=new Oh,Tn=t,Dc=0,yE=Tn.length;Dc_.b&&(_.b=lp)):sp.i.c==$Lt&&(lp<_.f&&(_.f=lp),lp>_.c&&(_.c=lp));for(kC(z,0,z.length,null),yR=Fe(Xn,wr,28,z.length,15,1),s=Fe(Xn,wr,28,q5+1,15,1),oe=0;oe0;)ut%2>0&&(a+=Uce[ut+1]),ut=(ut-1)/2|0,++Uce[ut];for(Nt=Fe(A7t,on,374,z.length*2,0,1),Ce=0;Ce0&&O7(Dc.f),Qe(oe,PPe)!=null&&(g=f(Qe(oe,PPe),347),Wy=g.Tg(oe),GS(oe,h.Math.max(oe.g,Wy.a),h.Math.max(oe.f,Wy.b)));if(md=f(Qe(t,Bg),107),W=t.g-(md.b+md.c),D=t.f-(md.d+md.a),lp.bh("Available Child Area: ("+W+"|"+D+")"),zr(t,sE,W/D),rSt(t,a,s.eh(yE)),f(Qe(t,cR),280)==Tz&&(W3e(t),GS(t,md.b+Ae(je(Qe(t,aE)))+md.c,md.d+Ae(je(Qe(t,lE)))+md.a)),lp.bh("Executed layout algorithm: "+or(Qe(t,S4))+" on node "+t.k),f(Qe(t,cR),280)==X_){if(W<0||D<0)throw ne(new rg("The size defined by the parent parallel node is too small for the space provided by the paddings of the child hierarchical node. "+t.k));for(eh(t,aE)||eh(t,lE)||W3e(t),z=Ae(je(Qe(t,aE))),U=Ae(je(Qe(t,lE))),lp.bh("Desired Child Area: ("+z+"|"+U+")"),Kw=W/z,gR=D/U,yd=h.Math.min(Kw,h.Math.min(gR,Ae(je(Qe(t,B9t))))),zr(t,Sz,yd),lp.bh(t.k+" -- Local Scale Factor (X|Y): ("+Kw+"|"+gR+")"),Ce=f(Qe(t,$9),21),c=0,b=0,yd'?":Ht(CTt,e)?"'(?<' or '(? toIndex: ",aRe=", toIndex: ",cRe="Index: ",uRe=", Size: ",TA="org.eclipse.elk.alg.common",cr={50:1},JCt="org.eclipse.elk.alg.common.compaction",YCt="Scanline/EventHandler",Ap="org.eclipse.elk.alg.common.compaction.oned",QCt="CNode belongs to another CGroup.",ZCt="ISpacingsHandler/1",Kre="The ",qre=" instance has been finished already.",eAt="The direction ",tAt=" is not supported by the CGraph instance.",nAt="OneDimensionalCompactor",rAt="OneDimensionalCompactor/lambda$0$Type",iAt="Quadruplet",oAt="ScanlineConstraintCalculator",sAt="ScanlineConstraintCalculator/ConstraintsScanlineHandler",lAt="ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type",aAt="ScanlineConstraintCalculator/Timestamp",cAt="ScanlineConstraintCalculator/lambda$0$Type",Kh={178:1,46:1},Xre="org.eclipse.elk.alg.common.compaction.options",xl="org.eclipse.elk.core.data",fRe="org.eclipse.elk.polyomino.traversalStrategy",dRe="org.eclipse.elk.polyomino.lowLevelSort",hRe="org.eclipse.elk.polyomino.highLevelSort",pRe="org.eclipse.elk.polyomino.fill",Ef={134:1},Jre="polyomino",sI="org.eclipse.elk.alg.common.networksimplex",Tp={183:1,3:1,4:1},uAt="org.eclipse.elk.alg.common.nodespacing",vw="org.eclipse.elk.alg.common.nodespacing.cellsystem",$A="CENTER",fAt={217:1,336:1},bRe={3:1,4:1,5:1,603:1},M3="LEFT",D3="RIGHT",gRe="Vertical alignment cannot be null",wRe="BOTTOM",wU="org.eclipse.elk.alg.common.nodespacing.internal",lI="UNDEFINED",ah=.01,gM="org.eclipse.elk.alg.common.nodespacing.internal.algorithm",dAt="LabelPlacer/lambda$0$Type",hAt="LabelPlacer/lambda$1$Type",pAt="portRatioOrPosition",IA="org.eclipse.elk.alg.common.overlaps",Yre="DOWN",qh="org.eclipse.elk.alg.common.polyomino",mU="NORTH",Qre="EAST",Zre="SOUTH",eie="WEST",yU="org.eclipse.elk.alg.common.polyomino.structures",mRe="Direction",tie="Grid is only of size ",nie=". Requested point (",rie=") is out of bounds.",vU=" Given center based coordinates were (",wM="org.eclipse.elk.graph.properties",bAt="IPropertyHolder",yRe={3:1,96:1,137:1},L3="org.eclipse.elk.alg.common.spore",gAt="org.eclipse.elk.alg.common.utils",_w={205:1},R2="org.eclipse.elk.core",wAt="Connected Components Compaction",mAt="org.eclipse.elk.alg.disco",_U="org.eclipse.elk.alg.disco.graph",iie="org.eclipse.elk.alg.disco.options",vRe="CompactionStrategy",_Re="org.eclipse.elk.disco.componentCompaction.strategy",SRe="org.eclipse.elk.disco.componentCompaction.componentLayoutAlgorithm",ERe="org.eclipse.elk.disco.debug.discoGraph",kRe="org.eclipse.elk.disco.debug.discoPolys",yAt="componentCompaction",Sw="org.eclipse.elk.disco",oie="org.eclipse.elk.spacing.componentComponent",sie="org.eclipse.elk.edge.thickness",j3="org.eclipse.elk.aspectRatio",fy="org.eclipse.elk.padding",x2="org.eclipse.elk.alg.disco.transform",lie=1.5707963267948966,C2=17976931348623157e292,w_={3:1,4:1,5:1,198:1},vAt={3:1,6:1,4:1,5:1,100:1,115:1},aie="org.eclipse.elk.alg.force",RRe="ComponentsProcessor",_At="ComponentsProcessor/1",xRe="ElkGraphImporter/lambda$0$Type",mM="org.eclipse.elk.alg.force.graph",SAt="Component Layout",CRe="org.eclipse.elk.alg.force.model",SU="org.eclipse.elk.force.model",ARe="org.eclipse.elk.force.iterations",TRe="org.eclipse.elk.force.repulsivePower",cie="org.eclipse.elk.force.temperature",Xh=.001,uie="org.eclipse.elk.force.repulsion",aI="org.eclipse.elk.alg.force.options",PA=1.600000023841858,Ba="org.eclipse.elk.force",yM="org.eclipse.elk.priority",m_="org.eclipse.elk.spacing.nodeNode",fie="org.eclipse.elk.spacing.edgeLabel",EU="org.eclipse.elk.randomSeed",cI="org.eclipse.elk.separateConnectedComponents",uI="org.eclipse.elk.interactive",die="org.eclipse.elk.portConstraints",kU="org.eclipse.elk.edgeLabels.inline",fI="org.eclipse.elk.omitNodeMicroLayout",OA="org.eclipse.elk.nodeSize.fixedGraphSize",F3="org.eclipse.elk.nodeSize.options",A2="org.eclipse.elk.nodeSize.constraints",NA="org.eclipse.elk.nodeLabels.placement",MA="org.eclipse.elk.portLabels.placement",vM="org.eclipse.elk.topdownLayout",_M="org.eclipse.elk.topdown.scaleFactor",SM="org.eclipse.elk.topdown.hierarchicalNodeWidth",EM="org.eclipse.elk.topdown.hierarchicalNodeAspectRatio",dy="org.eclipse.elk.topdown.nodeType",$Re="origin",EAt="random",kAt="boundingBox.upLeft",RAt="boundingBox.lowRight",IRe="org.eclipse.elk.stress.fixed",PRe="org.eclipse.elk.stress.desiredEdgeLength",ORe="org.eclipse.elk.stress.dimension",NRe="org.eclipse.elk.stress.epsilon",MRe="org.eclipse.elk.stress.iterationLimit",z1="org.eclipse.elk.stress",xAt="ELK Stress",B3="org.eclipse.elk.nodeSize.minimum",RU="org.eclipse.elk.alg.force.stress",CAt="Layered layout",W3="org.eclipse.elk.alg.layered",kM="org.eclipse.elk.alg.layered.compaction.components",dI="org.eclipse.elk.alg.layered.compaction.oned",xU="org.eclipse.elk.alg.layered.compaction.oned.algs",Ew="org.eclipse.elk.alg.layered.compaction.recthull",ch="org.eclipse.elk.alg.layered.components",Jh="NONE",DRe="MODEL_ORDER",Ql={3:1,6:1,4:1,9:1,5:1,126:1},AAt={3:1,6:1,4:1,5:1,150:1,100:1,115:1},CU="org.eclipse.elk.alg.layered.compound",ni={47:1},pa="org.eclipse.elk.alg.layered.graph",hie=" -> ",TAt="Not supported by LGraph",LRe="Port side is undefined",pie={3:1,6:1,4:1,5:1,483:1,150:1,100:1,115:1},$g={3:1,6:1,4:1,5:1,150:1,199:1,210:1,100:1,115:1},$At={3:1,6:1,4:1,5:1,150:1,2042:1,210:1,100:1,115:1},IAt=`([{"' \r -`,PAt=`)]}"' \r -`,OAt="The given string contains parts that cannot be parsed as numbers.",RM="org.eclipse.elk.core.math",NAt={3:1,4:1,140:1,214:1,423:1},MAt={3:1,4:1,107:1,214:1,423:1},Ig="org.eclipse.elk.alg.layered.graph.transform",DAt="ElkGraphImporter",LAt="ElkGraphImporter/lambda$1$Type",jAt="ElkGraphImporter/lambda$2$Type",FAt="ElkGraphImporter/lambda$4$Type",yn="org.eclipse.elk.alg.layered.intermediate",BAt="Node margin calculation",WAt="ONE_SIDED_GREEDY_SWITCH",HAt="TWO_SIDED_GREEDY_SWITCH",bie="No implementation is available for the layout processor ",gie="IntermediateProcessorStrategy",wie="Node '",UAt="FIRST_SEPARATE",GAt="LAST_SEPARATE",VAt="Odd port side processing",ro="org.eclipse.elk.alg.layered.intermediate.compaction",hI="org.eclipse.elk.alg.layered.intermediate.greedyswitch",$p="org.eclipse.elk.alg.layered.p3order.counting",xM={230:1},H3="org.eclipse.elk.alg.layered.intermediate.loops",Au="org.eclipse.elk.alg.layered.intermediate.loops.ordering",K1="org.eclipse.elk.alg.layered.intermediate.loops.routing",jRe="org.eclipse.elk.alg.layered.intermediate.preserveorder",Yh="org.eclipse.elk.alg.layered.intermediate.wrapping",Zl="org.eclipse.elk.alg.layered.options",mie="INTERACTIVE",FRe="GREEDY",zAt="DEPTH_FIRST",KAt="EDGE_LENGTH",qAt="SELF_LOOPS",XAt="firstTryWithInitialOrder",BRe="org.eclipse.elk.layered.directionCongruency",WRe="org.eclipse.elk.layered.feedbackEdges",AU="org.eclipse.elk.layered.interactiveReferencePoint",HRe="org.eclipse.elk.layered.mergeEdges",URe="org.eclipse.elk.layered.mergeHierarchyEdges",GRe="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",VRe="org.eclipse.elk.layered.portSortingStrategy",zRe="org.eclipse.elk.layered.thoroughness",KRe="org.eclipse.elk.layered.unnecessaryBendpoints",qRe="org.eclipse.elk.layered.generatePositionAndLayerIds",yie="org.eclipse.elk.layered.cycleBreaking.strategy",CM="org.eclipse.elk.layered.layering.strategy",XRe="org.eclipse.elk.layered.layering.layerConstraint",JRe="org.eclipse.elk.layered.layering.layerChoiceConstraint",YRe="org.eclipse.elk.layered.layering.layerId",vie="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",_ie="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",Sie="org.eclipse.elk.layered.layering.nodePromotion.strategy",Eie="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",kie="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",pI="org.eclipse.elk.layered.crossingMinimization.strategy",QRe="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",Rie="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",xie="org.eclipse.elk.layered.crossingMinimization.semiInteractive",ZRe="org.eclipse.elk.layered.crossingMinimization.inLayerPredOf",exe="org.eclipse.elk.layered.crossingMinimization.inLayerSuccOf",txe="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",nxe="org.eclipse.elk.layered.crossingMinimization.positionId",rxe="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",Cie="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",TU="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",T2="org.eclipse.elk.layered.nodePlacement.strategy",$U="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",Aie="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",Tie="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",$ie="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",Iie="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",Pie="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",ixe="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",oxe="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",IU="org.eclipse.elk.layered.edgeRouting.splines.mode",PU="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",Oie="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",sxe="org.eclipse.elk.layered.spacing.baseValue",lxe="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",axe="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",cxe="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",uxe="org.eclipse.elk.layered.priority.direction",fxe="org.eclipse.elk.layered.priority.shortness",dxe="org.eclipse.elk.layered.priority.straightness",Nie="org.eclipse.elk.layered.compaction.connectedComponents",hxe="org.eclipse.elk.layered.compaction.postCompaction.strategy",pxe="org.eclipse.elk.layered.compaction.postCompaction.constraints",OU="org.eclipse.elk.layered.highDegreeNodes.treatment",Mie="org.eclipse.elk.layered.highDegreeNodes.threshold",Die="org.eclipse.elk.layered.highDegreeNodes.treeHeight",Tb="org.eclipse.elk.layered.wrapping.strategy",NU="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",MU="org.eclipse.elk.layered.wrapping.correctionFactor",bI="org.eclipse.elk.layered.wrapping.cutting.strategy",Lie="org.eclipse.elk.layered.wrapping.cutting.cuts",jie="org.eclipse.elk.layered.wrapping.cutting.msd.freedom",DU="org.eclipse.elk.layered.wrapping.validify.strategy",LU="org.eclipse.elk.layered.wrapping.validify.forbiddenIndices",jU="org.eclipse.elk.layered.wrapping.multiEdge.improveCuts",FU="org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty",Fie="org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges",bxe="org.eclipse.elk.layered.edgeLabels.sideSelection",gxe="org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy",BU="org.eclipse.elk.layered.considerModelOrder.strategy",wxe="org.eclipse.elk.layered.considerModelOrder.portModelOrder",mxe="org.eclipse.elk.layered.considerModelOrder.noModelOrder",Bie="org.eclipse.elk.layered.considerModelOrder.components",yxe="org.eclipse.elk.layered.considerModelOrder.longEdgeStrategy",Wie="org.eclipse.elk.layered.considerModelOrder.crossingCounterNodeInfluence",Hie="org.eclipse.elk.layered.considerModelOrder.crossingCounterPortInfluence",Uie="layering",JAt="layering.minWidth",YAt="layering.nodePromotion",DA="crossingMinimization",WU="org.eclipse.elk.hierarchyHandling",QAt="crossingMinimization.greedySwitch",ZAt="nodePlacement",e4t="nodePlacement.bk",t4t="edgeRouting",AM="org.eclipse.elk.edgeRouting",uh="spacing",vxe="priority",_xe="compaction",n4t="compaction.postCompaction",r4t="Specifies whether and how post-process compaction is applied.",Sxe="highDegreeNodes",Exe="wrapping",i4t="wrapping.cutting",o4t="wrapping.validify",kxe="wrapping.multiEdge",Gie="edgeLabels",gI="considerModelOrder",Rxe="org.eclipse.elk.spacing.commentComment",xxe="org.eclipse.elk.spacing.commentNode",Cxe="org.eclipse.elk.spacing.edgeEdge",Vie="org.eclipse.elk.spacing.edgeNode",Axe="org.eclipse.elk.spacing.labelLabel",Txe="org.eclipse.elk.spacing.labelPortHorizontal",$xe="org.eclipse.elk.spacing.labelPortVertical",Ixe="org.eclipse.elk.spacing.labelNode",Pxe="org.eclipse.elk.spacing.nodeSelfLoop",Oxe="org.eclipse.elk.spacing.portPort",Nxe="org.eclipse.elk.spacing.individual",Mxe="org.eclipse.elk.port.borderOffset",Dxe="org.eclipse.elk.noLayout",Lxe="org.eclipse.elk.port.side",TM="org.eclipse.elk.debugMode",jxe="org.eclipse.elk.alignment",Fxe="org.eclipse.elk.insideSelfLoops.activate",Bxe="org.eclipse.elk.insideSelfLoops.yo",zie="org.eclipse.elk.direction",Wxe="org.eclipse.elk.nodeLabels.padding",Hxe="org.eclipse.elk.portLabels.nextToPortIfPossible",Uxe="org.eclipse.elk.portLabels.treatAsGroup",Gxe="org.eclipse.elk.portAlignment.default",Vxe="org.eclipse.elk.portAlignment.north",zxe="org.eclipse.elk.portAlignment.south",Kxe="org.eclipse.elk.portAlignment.west",qxe="org.eclipse.elk.portAlignment.east",HU="org.eclipse.elk.contentAlignment",Xxe="org.eclipse.elk.junctionPoints",Jxe="org.eclipse.elk.edgeLabels.placement",Yxe="org.eclipse.elk.port.index",Qxe="org.eclipse.elk.commentBox",Zxe="org.eclipse.elk.hypernode",eCe="org.eclipse.elk.port.anchor",Kie="org.eclipse.elk.partitioning.activate",qie="org.eclipse.elk.partitioning.partition",UU="org.eclipse.elk.position",tCe="org.eclipse.elk.margins",nCe="org.eclipse.elk.spacing.portsSurrounding",GU="org.eclipse.elk.interactiveLayout",Ol="org.eclipse.elk.core.util",rCe={3:1,4:1,5:1,601:1},s4t="NETWORK_SIMPLEX",iCe="SIMPLE",$s={106:1,47:1},VU="org.eclipse.elk.alg.layered.p1cycles",$b="org.eclipse.elk.alg.layered.p2layers",oCe={413:1,230:1},l4t={846:1,3:1,4:1},mc="org.eclipse.elk.alg.layered.p3order",Is="org.eclipse.elk.alg.layered.p4nodes",a4t={3:1,4:1,5:1,854:1},Qh=1e-5,q1="org.eclipse.elk.alg.layered.p4nodes.bk",Xie="org.eclipse.elk.alg.layered.p5edges",Md="org.eclipse.elk.alg.layered.p5edges.orthogonal",Jie="org.eclipse.elk.alg.layered.p5edges.orthogonal.direction",Yie=1e-6,y_="org.eclipse.elk.alg.layered.p5edges.splines",Qie=.09999999999999998,zU=1e-8,c4t=4.71238898038469,sCe=3.141592653589793,Ib="org.eclipse.elk.alg.mrtree",Zie=.10000000149011612,KU="SUPER_ROOT",wI="org.eclipse.elk.alg.mrtree.graph",lCe=-17976931348623157e292,ba="org.eclipse.elk.alg.mrtree.intermediate",u4t="Processor compute fanout",qU={3:1,6:1,4:1,5:1,534:1,100:1,115:1},f4t="Set neighbors in level",$M="org.eclipse.elk.alg.mrtree.options",d4t="DESCENDANTS",aCe="org.eclipse.elk.mrtree.compaction",cCe="org.eclipse.elk.mrtree.edgeEndTextureLength",uCe="org.eclipse.elk.mrtree.treeLevel",fCe="org.eclipse.elk.mrtree.positionConstraint",dCe="org.eclipse.elk.mrtree.weighting",hCe="org.eclipse.elk.mrtree.edgeRoutingMode",pCe="org.eclipse.elk.mrtree.searchOrder",h4t="Position Constraint",Wa="org.eclipse.elk.mrtree",p4t="org.eclipse.elk.tree",b4t="Processor arrange level",LA="org.eclipse.elk.alg.mrtree.p2order",lu="org.eclipse.elk.alg.mrtree.p4route",bCe="org.eclipse.elk.alg.radial",kw=6.283185307179586,gCe="Before",wCe=5e-324,XU="After",mCe="org.eclipse.elk.alg.radial.intermediate",g4t="COMPACTION",eoe="org.eclipse.elk.alg.radial.intermediate.compaction",w4t={3:1,4:1,5:1,100:1},yCe="org.eclipse.elk.alg.radial.intermediate.optimization",toe="No implementation is available for the layout option ",mI="org.eclipse.elk.alg.radial.options",vCe="org.eclipse.elk.radial.centerOnRoot",_Ce="org.eclipse.elk.radial.orderId",SCe="org.eclipse.elk.radial.radius",JU="org.eclipse.elk.radial.rotate",noe="org.eclipse.elk.radial.compactor",roe="org.eclipse.elk.radial.compactionStepSize",ECe="org.eclipse.elk.radial.sorter",kCe="org.eclipse.elk.radial.wedgeCriteria",RCe="org.eclipse.elk.radial.optimizationCriteria",ioe="org.eclipse.elk.radial.rotation.targetAngle",ooe="org.eclipse.elk.radial.rotation.computeAdditionalWedgeSpace",xCe="org.eclipse.elk.radial.rotation.outgoingEdgeAngles",m4t="Compaction",CCe="rotation",rf="org.eclipse.elk.radial",y4t="org.eclipse.elk.alg.radial.p1position.wedge",ACe="org.eclipse.elk.alg.radial.sorting",v4t=5.497787143782138,_4t=3.9269908169872414,S4t=2.356194490192345,E4t="org.eclipse.elk.alg.rectpacking",YU="org.eclipse.elk.alg.rectpacking.intermediate",soe="org.eclipse.elk.alg.rectpacking.options",TCe="org.eclipse.elk.rectpacking.trybox",$Ce="org.eclipse.elk.rectpacking.currentPosition",ICe="org.eclipse.elk.rectpacking.desiredPosition",PCe="org.eclipse.elk.rectpacking.inNewRow",OCe="org.eclipse.elk.rectpacking.widthApproximation.strategy",NCe="org.eclipse.elk.rectpacking.widthApproximation.targetWidth",MCe="org.eclipse.elk.rectpacking.widthApproximation.optimizationGoal",DCe="org.eclipse.elk.rectpacking.widthApproximation.lastPlaceShift",LCe="org.eclipse.elk.rectpacking.packing.strategy",jCe="org.eclipse.elk.rectpacking.packing.compaction.rowHeightReevaluation",FCe="org.eclipse.elk.rectpacking.packing.compaction.iterations",BCe="org.eclipse.elk.rectpacking.whiteSpaceElimination.strategy",loe="widthApproximation",k4t="Compaction Strategy",R4t="packing.compaction",zc="org.eclipse.elk.rectpacking",jA="org.eclipse.elk.alg.rectpacking.p1widthapproximation",QU="org.eclipse.elk.alg.rectpacking.p2packing",x4t="No Compaction",WCe="org.eclipse.elk.alg.rectpacking.p3whitespaceelimination",IM="org.eclipse.elk.alg.rectpacking.util",ZU="No implementation available for ",v_="org.eclipse.elk.alg.spore",__="org.eclipse.elk.alg.spore.options",hy="org.eclipse.elk.sporeCompaction",aoe="org.eclipse.elk.underlyingLayoutAlgorithm",HCe="org.eclipse.elk.processingOrder.treeConstruction",UCe="org.eclipse.elk.processingOrder.spanningTreeCostFunction",coe="org.eclipse.elk.processingOrder.preferredRoot",uoe="org.eclipse.elk.processingOrder.rootSelection",foe="org.eclipse.elk.structure.structureExtractionStrategy",GCe="org.eclipse.elk.compaction.compactionStrategy",VCe="org.eclipse.elk.compaction.orthogonal",zCe="org.eclipse.elk.overlapRemoval.maxIterations",KCe="org.eclipse.elk.overlapRemoval.runScanline",doe="processingOrder",C4t="overlapRemoval",FA="org.eclipse.elk.sporeOverlap",A4t="org.eclipse.elk.alg.spore.p1structure",hoe="org.eclipse.elk.alg.spore.p2processingorder",poe="org.eclipse.elk.alg.spore.p3execution",T4t="Topdown Layout",$4t="Invalid index: ",BA="org.eclipse.elk.core.alg",$2={341:1},S_={295:1},I4t="Make sure its type is registered with the ",qCe=" utility class.",WA="true",boe="false",P4t="Couldn't clone property '",py=.05,Kc="org.eclipse.elk.core.options",O4t=1.2999999523162842,by="org.eclipse.elk.box",XCe="org.eclipse.elk.expandNodes",JCe="org.eclipse.elk.box.packingMode",N4t="org.eclipse.elk.algorithm",M4t="org.eclipse.elk.resolvedAlgorithm",YCe="org.eclipse.elk.bendPoints",eFn="org.eclipse.elk.labelManager",D4t="org.eclipse.elk.scaleFactor",L4t="org.eclipse.elk.childAreaWidth",j4t="org.eclipse.elk.childAreaHeight",F4t="org.eclipse.elk.animate",B4t="org.eclipse.elk.animTimeFactor",W4t="org.eclipse.elk.layoutAncestors",H4t="org.eclipse.elk.maxAnimTime",U4t="org.eclipse.elk.minAnimTime",G4t="org.eclipse.elk.progressBar",V4t="org.eclipse.elk.validateGraph",z4t="org.eclipse.elk.validateOptions",K4t="org.eclipse.elk.zoomToFit",tFn="org.eclipse.elk.font.name",q4t="org.eclipse.elk.font.size",QCe="org.eclipse.elk.topdown.sizeApproximator",ZCe="org.eclipse.elk.topdown.scaleCap",X4t="org.eclipse.elk.edge.type",J4t="partitioning",Y4t="nodeLabels",eG="portAlignment",goe="nodeSize",woe="port",eAe="portLabels",PM="topdown",Q4t="insideSelfLoops",yI="org.eclipse.elk.fixed",tG="org.eclipse.elk.random",tAe={3:1,34:1,22:1,347:1},Z4t="port must have a parent node to calculate the port side",eTt="The edge needs to have exactly one edge section. Found: ",vI="org.eclipse.elk.core.util.adapters",of="org.eclipse.emf.ecore",I2="org.eclipse.elk.graph",tTt="EMapPropertyHolder",nTt="ElkBendPoint",rTt="ElkGraphElement",iTt="ElkConnectableShape",nAe="ElkEdge",oTt="ElkEdgeSection",sTt="EModelElement",lTt="ENamedElement",rAe="ElkLabel",iAe="ElkNode",oAe="ElkPort",aTt={94:1,93:1},U3="org.eclipse.emf.common.notify.impl",X1="The feature '",_I="' is not a valid changeable feature",cTt="Expecting null",moe="' is not a valid feature",uTt="The feature ID",fTt=" is not a valid feature ID",Vl=32768,dTt={110:1,94:1,93:1,58:1,54:1,99:1},fn="org.eclipse.emf.ecore.impl",Rw="org.eclipse.elk.graph.impl",SI="Recursive containment not allowed for ",HA="The datatype '",gy="' is not a valid classifier",yoe="The value '",P2={195:1,3:1,4:1},voe="The class '",UA="http://www.eclipse.org/elk/ElkGraph",sAe="property",EI="value",_oe="source",hTt="properties",pTt="identifier",Soe="height",Eoe="width",koe="parent",Roe="text",xoe="children",bTt="hierarchical",lAe="sources",Coe="targets",aAe="sections",nG="bendPoints",cAe="outgoingShape",uAe="incomingShape",fAe="outgoingSections",dAe="incomingSections",hs="org.eclipse.emf.common.util",hAe="Severe implementation error in the Json to ElkGraph importer.",Zh="id",zo="org.eclipse.elk.graph.json",pAe="Unhandled parameter types: ",gTt="startPoint",wTt="An edge must have at least one source and one target (edge id: '",GA="').",mTt="Referenced edge section does not exist: ",yTt=" (edge id: '",bAe="target",vTt="sourcePoint",_Tt="targetPoint",rG="group",Tr="name",STt="connectableShape cannot be null",ETt="edge cannot be null",Aoe="Passed edge is not 'simple'.",iG="org.eclipse.elk.graph.util",OM="The 'no duplicates' constraint is violated",Toe="targetIndex=",xw=", size=",$oe="sourceIndex=",ep={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1},Ioe={3:1,4:1,20:1,31:1,56:1,16:1,51:1,15:1,59:1,70:1,66:1,61:1,596:1},oG="logging",kTt="measureExecutionTime",RTt="parser.parse.1",xTt="parser.parse.2",sG="parser.next.1",Poe="parser.next.2",CTt="parser.next.3",ATt="parser.next.4",Cw="parser.factor.1",gAe="parser.factor.2",TTt="parser.factor.3",$Tt="parser.factor.4",ITt="parser.factor.5",PTt="parser.factor.6",OTt="parser.atom.1",NTt="parser.atom.2",MTt="parser.atom.3",wAe="parser.atom.4",Ooe="parser.atom.5",mAe="parser.cc.1",lG="parser.cc.2",DTt="parser.cc.3",LTt="parser.cc.5",yAe="parser.cc.6",vAe="parser.cc.7",Noe="parser.cc.8",jTt="parser.ope.1",FTt="parser.ope.2",BTt="parser.ope.3",Pg="parser.descape.1",WTt="parser.descape.2",HTt="parser.descape.3",UTt="parser.descape.4",GTt="parser.descape.5",sf="parser.process.1",VTt="parser.quantifier.1",zTt="parser.quantifier.2",KTt="parser.quantifier.3",qTt="parser.quantifier.4",_Ae="parser.quantifier.5",XTt="org.eclipse.emf.common.notify",SAe={424:1,686:1},JTt={3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1},NM={378:1,152:1},kI="index=",Moe={3:1,4:1,5:1,129:1},YTt={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,61:1},EAe={3:1,6:1,4:1,5:1,198:1},QTt={3:1,4:1,5:1,173:1,379:1},ZTt=";/?:@&=+$,",e$t="invalid authority: ",t$t="EAnnotation",n$t="ETypedElement",r$t="EStructuralFeature",i$t="EAttribute",o$t="EClassifier",s$t="EEnumLiteral",l$t="EGenericType",a$t="EOperation",c$t="EParameter",u$t="EReference",f$t="ETypeParameter",fi="org.eclipse.emf.ecore.util",Doe={79:1},kAe={3:1,20:1,16:1,15:1,61:1,597:1,79:1,71:1,97:1},d$t="org.eclipse.emf.ecore.util.FeatureMap$Entry",yc=8192,E_=2048,RI="byte",aG="char",xI="double",CI="float",AI="int",TI="long",$I="short",h$t="java.lang.Object",O2={3:1,4:1,5:1,254:1},RAe={3:1,4:1,5:1,688:1},p$t={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,71:1},hl={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,79:1,71:1,97:1},MM="mixed",pr="http:///org/eclipse/emf/ecore/util/ExtendedMetaData",kf="kind",b$t={3:1,4:1,5:1,689:1},xAe={3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1,79:1,71:1,97:1},cG={20:1,31:1,56:1,16:1,15:1,61:1,71:1},uG={51:1,128:1,287:1},fG={76:1,343:1},dG="The value of type '",hG="' must be of type '",N2=1352,Rf="http://www.eclipse.org/emf/2002/Ecore",pG=-32768,wy="constraints",Zo="baseType",g$t="getEStructuralFeature",w$t="getFeatureID",II="feature",m$t="getOperationID",CAe="operation",y$t="defaultValue",v$t="eTypeParameters",_$t="isInstance",S$t="getEEnumLiteral",E$t="eContainingClass",Rr={57:1},k$t={3:1,4:1,5:1,124:1},R$t="org.eclipse.emf.ecore.resource",x$t={94:1,93:1,599:1,2034:1},Loe="org.eclipse.emf.ecore.resource.impl",AAe="unspecified",DM="simple",bG="attribute",C$t="attributeWildcard",gG="element",joe="elementWildcard",Dd="collapse",Foe="itemType",wG="namespace",LM="##targetNamespace",xf="whiteSpace",TAe="wildcards",Aw="http://www.eclipse.org/emf/2003/XMLType",Boe="##any",VA="uninitialized",jM="The multiplicity constraint is violated",mG="org.eclipse.emf.ecore.xml.type",A$t="ProcessingInstruction",T$t="SimpleAnyType",$$t="XMLTypeDocumentRoot",Yi="org.eclipse.emf.ecore.xml.type.impl",FM="INF",I$t="processing",P$t="ENTITIES_._base",$Ae="minLength",IAe="ENTITY",yG="NCName",O$t="IDREFS_._base",PAe="integer",Woe="token",Hoe="pattern",N$t="[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*",OAe="\\i\\c*",M$t="[\\i-[:]][\\c-[:]]*",D$t="nonPositiveInteger",BM="maxInclusive",NAe="NMTOKEN",L$t="NMTOKENS_._base",MAe="nonNegativeInteger",WM="minInclusive",j$t="normalizedString",F$t="unsignedByte",B$t="unsignedInt",W$t="18446744073709551615",H$t="unsignedShort",U$t="processingInstruction",Og="org.eclipse.emf.ecore.xml.type.internal",zA=1114111,G$t="Internal Error: shorthands: \\u",PI="xml:isDigit",Uoe="xml:isWord",Goe="xml:isSpace",Voe="xml:isNameChar",zoe="xml:isInitialNameChar",V$t="09٠٩۰۹०९০৯੦੯૦૯୦୯௧௯౦౯೦೯൦൯๐๙໐໙༠༩",z$t="AZazÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁΆΆΈΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆאתװײءغفيٱڷںھۀێېۓەەۥۦअहऽऽक़ॡঅঌএঐওনপরললশহড়ঢ়য়ৡৰৱਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹਖ਼ੜਫ਼ਫ਼ੲੴઅઋઍઍએઑઓનપરલળવહઽઽૠૠଅଌଏଐଓନପରଲଳଶହଽଽଡ଼ଢ଼ୟୡஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹఅఌఎఐఒనపళవహౠౡಅಌಎಐಒನಪಳವಹೞೞೠೡഅഌഎഐഒനപഹൠൡกฮะะาำเๅກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະະາຳຽຽເໄཀཇཉཀྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼΩΩKÅ℮℮ↀↂ〇〇〡〩ぁゔァヺㄅㄬ一龥가힣",K$t="Private Use",Koe="ASSIGNED",qoe="\0€ÿĀſƀɏɐʯʰ˿̀ͯͰϿЀӿ԰֏֐׿؀ۿ܀ݏހ޿ऀॿঀ৿਀੿઀૿଀୿஀௿ఀ౿ಀ೿ഀൿ඀෿฀๿຀໿ༀ࿿က႟Ⴀჿᄀᇿሀ፿Ꭰ᏿᐀ᙿ ᚟ᚠ᛿ក៿᠀᢯Ḁỿἀ῿ ⁰₟₠⃏⃐⃿℀⅏⅐↏←⇿∀⋿⌀⏿␀␿⑀⑟①⓿─╿▀▟■◿☀⛿✀➿⠀⣿⺀⻿⼀⿟⿰⿿ 〿぀ゟ゠ヿ㄀ㄯ㄰㆏㆐㆟ㆠㆿ㈀㋿㌀㏿㐀䶵一鿿ꀀ꒏꒐꓏가힣豈﫿ffﭏﭐ﷿︠︯︰﹏﹐﹯ﹰ﻾\uFEFF\uFEFF＀￯",DAe="UNASSIGNED",KA={3:1,122:1},q$t="org.eclipse.emf.ecore.xml.type.util",vG={3:1,4:1,5:1,381:1},LAe="org.eclipse.xtext.xbase.lib",X$t="Cannot add elements to a Range",J$t="Cannot set elements in a Range",Y$t="Cannot remove elements from a Range",Q$t="user.agent",p,_G,Xoe;h.goog=h.goog||{},h.goog.global=h.goog.global||h,_G={},P(1,null,{},v),p.Fb=function(t){return Jut(this,t)},p.Gb=function(){return this.Rm},p.Hb=function(){return Cm(this)},p.Ib=function(){var t;return z0(ou(this))+"@"+(t=ti(this)>>>0,t.toString(16))},p.equals=function(e){return this.Fb(e)},p.hashCode=function(){return this.Hb()},p.toString=function(){return this.Ib()};var Z$t,e6t,t6t;P(297,1,{297:1,2124:1},PSe),p.ve=function(t){var i;return i=new PSe,i.i=4,t>1?i.c=mgt(this,t-1):i.c=this,i},p.we=function(){return cb(this),this.b},p.xe=function(){return z0(this)},p.ye=function(){return cb(this),this.k},p.ze=function(){return(this.i&4)!=0},p.Ae=function(){return(this.i&1)!=0},p.Ib=function(){return U_e(this)},p.i=0;var ho=N(Pl,"Object",1),jAe=N(Pl,"Class",297);P(2096,1,oM),N(sM,"Optional",2096),P(1191,2096,oM,y),p.Fb=function(t){return t===this},p.Hb=function(){return 2040732332},p.Ib=function(){return"Optional.absent()"},p.Jb=function(t){return nr(t),i$(),Joe};var Joe;N(sM,"Absent",1191),P(636,1,{},IY),N(sM,"Joiner",636);var nFn=Ei(sM,"Predicate");P(589,1,{178:1,589:1,3:1,46:1},Rnt),p.Mb=function(t){return mvt(this,t)},p.Lb=function(t){return mvt(this,t)},p.Fb=function(t){var i;return ve(t,589)?(i=f(t,589),Tke(this.a,i.a)):!1},p.Hb=function(){return jSe(this.a)+306654252},p.Ib=function(){return HIn(this.a)},N(sM,"Predicates/AndPredicate",589),P(419,2096,{419:1,3:1},Uj),p.Fb=function(t){var i;return ve(t,419)?(i=f(t,419),Lr(this.a,i.a)):!1},p.Hb=function(){return 1502476572+ti(this.a)},p.Ib=function(){return xCt+this.a+")"},p.Jb=function(t){return new Uj(UB(t.Kb(this.a),"the Function passed to Optional.transform() must not return null."))},N(sM,"Present",419),P(204,1,SA),p.Nb=function(t){Uo(this,t)},p.Qb=function(){Flt()},N(Ft,"UnmodifiableIterator",204),P(2076,204,EA),p.Qb=function(){Flt()},p.Rb=function(t){throw ne(new rr)},p.Wb=function(t){throw ne(new rr)},N(Ft,"UnmodifiableListIterator",2076),P(399,2076,EA),p.Ob=function(){return this.c0},p.Pb=function(){if(this.c>=this.d)throw ne(new yl);return this.Xb(this.c++)},p.Tb=function(){return this.c},p.Ub=function(){if(this.c<=0)throw ne(new yl);return this.Xb(--this.c)},p.Vb=function(){return this.c-1},p.c=0,p.d=0,N(Ft,"AbstractIndexedListIterator",399),P(713,204,SA),p.Ob=function(){return Oee(this)},p.Pb=function(){return L_e(this)},p.e=1,N(Ft,"AbstractIterator",713),P(2084,1,{229:1}),p.Zb=function(){var t;return t=this.f,t||(this.f=this.ac())},p.Fb=function(t){return tte(this,t)},p.Hb=function(){return ti(this.Zb())},p.dc=function(){return this.gc()==0},p.ec=function(){return Zk(this)},p.Ib=function(){return dl(this.Zb())},N(Ft,"AbstractMultimap",2084),P(742,2084,mw),p.$b=function(){OW(this)},p._b=function(t){return iat(this,t)},p.ac=function(){return new Yx(this,this.c)},p.ic=function(t){return this.hc()},p.bc=function(){return new XS(this,this.c)},p.jc=function(){return this.mc(this.hc())},p.kc=function(){return new Elt(this)},p.lc=function(){return une(this.c.vc().Nc(),new A,64,this.d)},p.cc=function(t){return Hr(this,t)},p.fc=function(t){return mN(this,t)},p.gc=function(){return this.d},p.mc=function(t){return qt(),new jx(t)},p.nc=function(){return new Slt(this)},p.oc=function(){return une(this.c.Cc().Nc(),new E,64,this.d)},p.pc=function(t,i){return new fW(this,t,i,null)},p.d=0,N(Ft,"AbstractMapBasedMultimap",742),P(1696,742,mw),p.hc=function(){return new ka(this.a)},p.jc=function(){return qt(),qt(),ps},p.cc=function(t){return f(Hr(this,t),15)},p.fc=function(t){return f(mN(this,t),15)},p.Zb=function(){return o3(this)},p.Fb=function(t){return tte(this,t)},p.qc=function(t){return f(Hr(this,t),15)},p.rc=function(t){return f(mN(this,t),15)},p.mc=function(t){return DZ(f(t,15))},p.pc=function(t,i){return R1t(this,t,f(i,15),null)},N(Ft,"AbstractListMultimap",1696),P(748,1,ko),p.Nb=function(t){Uo(this,t)},p.Ob=function(){return this.c.Ob()||this.e.Ob()},p.Pb=function(){var t;return this.e.Ob()||(t=f(this.c.Pb(),44),this.b=t.ld(),this.a=f(t.md(),16),this.e=this.a.Kc()),this.sc(this.b,this.e.Pb())},p.Qb=function(){this.e.Qb(),f(mf(this.a),16).dc()&&this.c.Qb(),--this.d.d},N(Ft,"AbstractMapBasedMultimap/Itr",748),P(1129,748,ko,Slt),p.sc=function(t,i){return i},N(Ft,"AbstractMapBasedMultimap/1",1129),P(1130,1,{},E),p.Kb=function(t){return f(t,16).Nc()},N(Ft,"AbstractMapBasedMultimap/1methodref$spliterator$Type",1130),P(1131,748,ko,Elt),p.sc=function(t,i){return new ym(t,i)},N(Ft,"AbstractMapBasedMultimap/2",1131);var FAe=Ei(Ln,"Map");P(2065,1,cy),p.wc=function(t){p6(this,t)},p.yc=function(t,i,s){return vte(this,t,i,s)},p.$b=function(){this.vc().$b()},p.tc=function(t){return zte(this,t)},p._b=function(t){return!!CEe(this,t,!1)},p.uc=function(t){var i,s,a;for(s=this.vc().Kc();s.Ob();)if(i=f(s.Pb(),44),a=i.md(),Ne(t)===Ne(a)||t!=null&&Lr(t,a))return!0;return!1},p.Fb=function(t){var i,s,a;if(t===this)return!0;if(!ve(t,85)||(a=f(t,85),this.gc()!=a.gc()))return!1;for(s=a.vc().Kc();s.Ob();)if(i=f(s.Pb(),44),!this.tc(i))return!1;return!0},p.xc=function(t){return tl(CEe(this,t,!1))},p.Hb=function(){return ASe(this.vc())},p.dc=function(){return this.gc()==0},p.ec=function(){return new H0(this)},p.zc=function(t,i){throw ne(new ng("Put not supported on this map"))},p.Ac=function(t){h6(this,t)},p.Bc=function(t){return tl(CEe(this,t,!0))},p.gc=function(){return this.vc().gc()},p.Ib=function(){return $2t(this)},p.Cc=function(){return new ob(this)},N(Ln,"AbstractMap",2065),P(2085,2065,cy),p.bc=function(){return new fF(this)},p.vc=function(){return _pt(this)},p.ec=function(){var t;return t=this.g,t||(this.g=this.bc())},p.Cc=function(){var t;return t=this.i,t||(this.i=new qat(this))},N(Ft,"Maps/ViewCachingAbstractMap",2085),P(402,2085,cy,Yx),p.xc=function(t){return l3n(this,t)},p.Bc=function(t){return $xn(this,t)},p.$b=function(){this.d==this.e.c?this.e.$b():vB(new Bye(this))},p._b=function(t){return n_t(this.d,t)},p.Ec=function(){return new xnt(this)},p.Dc=function(){return this.Ec()},p.Fb=function(t){return this===t||Lr(this.d,t)},p.Hb=function(){return ti(this.d)},p.ec=function(){return this.e.ec()},p.gc=function(){return this.d.gc()},p.Ib=function(){return dl(this.d)},N(Ft,"AbstractMapBasedMultimap/AsMap",402);var Tu=Ei(Pl,"Iterable");P(31,1,p_),p.Jc=function(t){Vo(this,t)},p.Lc=function(){return this.Oc()},p.Nc=function(){return new Vt(this,0)},p.Oc=function(){return new Wt(null,this.Nc())},p.Fc=function(t){throw ne(new ng("Add not supported on this collection"))},p.Gc=function(t){return Do(this,t)},p.$b=function(){xve(this)},p.Hc=function(t){return e_(this,t,!1)},p.Ic=function(t){return uN(this,t)},p.dc=function(){return this.gc()==0},p.Mc=function(t){return e_(this,t,!0)},p.Pc=function(){return Jye(this)},p.Qc=function(t){return P6(this,t)},p.Ib=function(){return B1(this)},N(Ln,"AbstractCollection",31);var Cf=Ei(Ln,"Set");P(lh,31,wc),p.Nc=function(){return new Vt(this,1)},p.Fb=function(t){return K_t(this,t)},p.Hb=function(){return ASe(this)},N(Ln,"AbstractSet",lh),P(2068,lh,wc),N(Ft,"Sets/ImprovedAbstractSet",2068),P(2069,2068,wc),p.$b=function(){this.Rc().$b()},p.Hc=function(t){return I_t(this,t)},p.dc=function(){return this.Rc().dc()},p.Mc=function(t){var i;return this.Hc(t)&&ve(t,44)?(i=f(t,44),this.Rc().ec().Mc(i.ld())):!1},p.gc=function(){return this.Rc().gc()},N(Ft,"Maps/EntrySet",2069),P(1127,2069,wc,xnt),p.Hc=function(t){return t2e(this.a.d.vc(),t)},p.Kc=function(){return new Bye(this.a)},p.Rc=function(){return this.a},p.Mc=function(t){var i;return t2e(this.a.d.vc(),t)?(i=f(mf(f(t,44)),44),XEn(this.a.e,i.ld()),!0):!1},p.Nc=function(){return _7(this.a.d.vc().Nc(),new Cnt(this.a))},N(Ft,"AbstractMapBasedMultimap/AsMap/AsMapEntries",1127),P(1128,1,{},Cnt),p.Kb=function(t){return E0t(this.a,f(t,44))},N(Ft,"AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type",1128),P(746,1,ko,Bye),p.Nb=function(t){Uo(this,t)},p.Pb=function(){var t;return t=f(this.b.Pb(),44),this.a=f(t.md(),16),E0t(this.c,t)},p.Ob=function(){return this.b.Ob()},p.Qb=function(){sC(!!this.a),this.b.Qb(),this.c.e.d-=this.a.gc(),this.a.$b(),this.a=null},N(Ft,"AbstractMapBasedMultimap/AsMap/AsMapIterator",746),P(542,2068,wc,fF),p.$b=function(){this.b.$b()},p.Hc=function(t){return this.b._b(t)},p.Jc=function(t){nr(t),this.b.wc(new Gnt(t))},p.dc=function(){return this.b.dc()},p.Kc=function(){return new o$(this.b.vc().Kc())},p.Mc=function(t){return this.b._b(t)?(this.b.Bc(t),!0):!1},p.gc=function(){return this.b.gc()},N(Ft,"Maps/KeySet",542),P(327,542,wc,XS),p.$b=function(){var t;vB((t=this.b.vc().Kc(),new uwe(this,t)))},p.Ic=function(t){return this.b.ec().Ic(t)},p.Fb=function(t){return this===t||Lr(this.b.ec(),t)},p.Hb=function(){return ti(this.b.ec())},p.Kc=function(){var t;return t=this.b.vc().Kc(),new uwe(this,t)},p.Mc=function(t){var i,s;return s=0,i=f(this.b.Bc(t),16),i&&(s=i.gc(),i.$b(),this.a.d-=s),s>0},p.Nc=function(){return this.b.ec().Nc()},N(Ft,"AbstractMapBasedMultimap/KeySet",327),P(747,1,ko,uwe),p.Nb=function(t){Uo(this,t)},p.Ob=function(){return this.c.Ob()},p.Pb=function(){return this.a=f(this.c.Pb(),44),this.a.ld()},p.Qb=function(){var t;sC(!!this.a),t=f(this.a.md(),16),this.c.Qb(),this.b.a.d-=t.gc(),t.$b(),this.a=null},N(Ft,"AbstractMapBasedMultimap/KeySet/1",747),P(503,402,{85:1,133:1},p7),p.bc=function(){return this.Sc()},p.ec=function(){return this.Uc()},p.Sc=function(){return new HO(this.c,this.Wc())},p.Tc=function(){return this.Wc().Tc()},p.Uc=function(){var t;return t=this.b,t||(this.b=this.Sc())},p.Vc=function(){return this.Wc().Vc()},p.Wc=function(){return f(this.d,133)},N(Ft,"AbstractMapBasedMultimap/SortedAsMap",503),P(446,503,X3e,F$),p.bc=function(){return new Jx(this.a,f(f(this.d,133),139))},p.Sc=function(){return new Jx(this.a,f(f(this.d,133),139))},p.ec=function(){var t;return t=this.b,f(t||(this.b=new Jx(this.a,f(f(this.d,133),139))),277)},p.Uc=function(){var t;return t=this.b,f(t||(this.b=new Jx(this.a,f(f(this.d,133),139))),277)},p.Wc=function(){return f(f(this.d,133),139)},p.Xc=function(t){return f(f(this.d,133),139).Xc(t)},p.Yc=function(t){return f(f(this.d,133),139).Yc(t)},p.Zc=function(t,i){return new F$(this.a,f(f(this.d,133),139).Zc(t,i))},p.$c=function(t){return f(f(this.d,133),139).$c(t)},p._c=function(t){return f(f(this.d,133),139)._c(t)},p.ad=function(t,i){return new F$(this.a,f(f(this.d,133),139).ad(t,i))},N(Ft,"AbstractMapBasedMultimap/NavigableAsMap",446),P(502,327,CCt,HO),p.Nc=function(){return this.b.ec().Nc()},N(Ft,"AbstractMapBasedMultimap/SortedKeySet",502),P(401,502,J3e,Jx),N(Ft,"AbstractMapBasedMultimap/NavigableKeySet",401),P(551,31,p_,fW),p.Fc=function(t){var i,s;return Hc(this),s=this.d.dc(),i=this.d.Fc(t),i&&(++this.f.d,s&&m7(this)),i},p.Gc=function(t){var i,s,a;return t.dc()?!1:(a=(Hc(this),this.d.gc()),i=this.d.Gc(t),i&&(s=this.d.gc(),this.f.d+=s-a,a==0&&m7(this)),i)},p.$b=function(){var t;t=(Hc(this),this.d.gc()),t!=0&&(this.d.$b(),this.f.d-=t,xB(this))},p.Hc=function(t){return Hc(this),this.d.Hc(t)},p.Ic=function(t){return Hc(this),this.d.Ic(t)},p.Fb=function(t){return t===this?!0:(Hc(this),Lr(this.d,t))},p.Hb=function(){return Hc(this),ti(this.d)},p.Kc=function(){return Hc(this),new Eye(this)},p.Mc=function(t){var i;return Hc(this),i=this.d.Mc(t),i&&(--this.f.d,xB(this)),i},p.gc=function(){return Dut(this)},p.Nc=function(){return Hc(this),this.d.Nc()},p.Ib=function(){return Hc(this),dl(this.d)},N(Ft,"AbstractMapBasedMultimap/WrappedCollection",551);var lf=Ei(Ln,"List");P(744,551,{20:1,31:1,16:1,15:1},Zye),p.jd=function(t){sw(this,t)},p.Nc=function(){return Hc(this),this.d.Nc()},p.bd=function(t,i){var s;Hc(this),s=this.d.dc(),f(this.d,15).bd(t,i),++this.a.d,s&&m7(this)},p.cd=function(t,i){var s,a,c;return i.dc()?!1:(c=(Hc(this),this.d.gc()),s=f(this.d,15).cd(t,i),s&&(a=this.d.gc(),this.a.d+=a-c,c==0&&m7(this)),s)},p.Xb=function(t){return Hc(this),f(this.d,15).Xb(t)},p.dd=function(t){return Hc(this),f(this.d,15).dd(t)},p.ed=function(){return Hc(this),new dft(this)},p.fd=function(t){return Hc(this),new Mbt(this,t)},p.gd=function(t){var i;return Hc(this),i=f(this.d,15).gd(t),--this.a.d,xB(this),i},p.hd=function(t,i){return Hc(this),f(this.d,15).hd(t,i)},p.kd=function(t,i){return Hc(this),R1t(this.a,this.e,f(this.d,15).kd(t,i),this.b?this.b:this)},N(Ft,"AbstractMapBasedMultimap/WrappedList",744),P(1126,744,{20:1,31:1,16:1,15:1,59:1},tdt),N(Ft,"AbstractMapBasedMultimap/RandomAccessWrappedList",1126),P(628,1,ko,Eye),p.Nb=function(t){Uo(this,t)},p.Ob=function(){return wC(this),this.b.Ob()},p.Pb=function(){return wC(this),this.b.Pb()},p.Qb=function(){Fft(this)},N(Ft,"AbstractMapBasedMultimap/WrappedCollection/WrappedIterator",628),P(745,628,kp,dft,Mbt),p.Qb=function(){Fft(this)},p.Rb=function(t){var i;i=Dut(this.a)==0,(wC(this),f(this.b,128)).Rb(t),++this.a.a.d,i&&m7(this.a)},p.Sb=function(){return(wC(this),f(this.b,128)).Sb()},p.Tb=function(){return(wC(this),f(this.b,128)).Tb()},p.Ub=function(){return(wC(this),f(this.b,128)).Ub()},p.Vb=function(){return(wC(this),f(this.b,128)).Vb()},p.Wb=function(t){(wC(this),f(this.b,128)).Wb(t)},N(Ft,"AbstractMapBasedMultimap/WrappedList/WrappedListIterator",745),P(743,551,CCt,Hme),p.Nc=function(){return Hc(this),this.d.Nc()},N(Ft,"AbstractMapBasedMultimap/WrappedSortedSet",743),P(1125,743,J3e,lft),N(Ft,"AbstractMapBasedMultimap/WrappedNavigableSet",1125),P(1124,551,wc,Sdt),p.Nc=function(){return Hc(this),this.d.Nc()},N(Ft,"AbstractMapBasedMultimap/WrappedSet",1124),P(1133,1,{},A),p.Kb=function(t){return okn(f(t,44))},N(Ft,"AbstractMapBasedMultimap/lambda$1$Type",1133),P(1132,1,{},Int),p.Kb=function(t){return new ym(this.a,t)},N(Ft,"AbstractMapBasedMultimap/lambda$2$Type",1132);var Tw=Ei(Ln,"Map/Entry");P(358,1,dre),p.Fb=function(t){var i;return ve(t,44)?(i=f(t,44),Lh(this.ld(),i.ld())&&Lh(this.md(),i.md())):!1},p.Hb=function(){var t,i;return t=this.ld(),i=this.md(),(t==null?0:ti(t))^(i==null?0:ti(i))},p.nd=function(t){throw ne(new rr)},p.Ib=function(){return this.ld()+"="+this.md()},N(Ft,ACt,358),P(2086,31,p_),p.$b=function(){this.od().$b()},p.Hc=function(t){var i;return ve(t,44)?(i=f(t,44),x2n(this.od(),i.ld(),i.md())):!1},p.Mc=function(t){var i;return ve(t,44)?(i=f(t,44),s1t(this.od(),i.ld(),i.md())):!1},p.gc=function(){return this.od().d},N(Ft,"Multimaps/Entries",2086),P(749,2086,p_,U1e),p.Kc=function(){return this.a.kc()},p.od=function(){return this.a},p.Nc=function(){return this.a.lc()},N(Ft,"AbstractMultimap/Entries",749),P(750,749,wc,W0e),p.Nc=function(){return this.a.lc()},p.Fb=function(t){return KEe(this,t)},p.Hb=function(){return wyt(this)},N(Ft,"AbstractMultimap/EntrySet",750),P(751,31,p_,G1e),p.$b=function(){this.a.$b()},p.Hc=function(t){return kxn(this.a,t)},p.Kc=function(){return this.a.nc()},p.gc=function(){return this.a.d},p.Nc=function(){return this.a.oc()},N(Ft,"AbstractMultimap/Values",751),P(2087,31,{849:1,20:1,31:1,16:1}),p.Jc=function(t){nr(t),YS(this).Jc(new Jnt(t))},p.Nc=function(){var t;return t=YS(this).Nc(),une(t,new j,64|t.yd()&1296,this.a.d)},p.Fc=function(t){return X0e(),!0},p.Gc=function(t){return nr(this),nr(t),ve(t,552)?T2n(f(t,849)):!t.dc()&&kee(this,t.Kc())},p.Hc=function(t){var i;return i=f(Zv(o3(this.a),t),16),(i?i.gc():0)>0},p.Fb=function(t){return Y8n(this,t)},p.Hb=function(){return ti(YS(this))},p.dc=function(){return YS(this).dc()},p.Mc=function(t){return UEt(this,t,1)>0},p.Ib=function(){return dl(YS(this))},N(Ft,"AbstractMultiset",2087),P(2089,2068,wc),p.$b=function(){OW(this.a.a)},p.Hc=function(t){var i,s;return ve(t,504)?(s=f(t,425),f(s.a.md(),16).gc()<=0?!1:(i=Ogt(this.a,s.a.ld()),i==f(s.a.md(),16).gc())):!1},p.Mc=function(t){var i,s,a,c;return ve(t,504)&&(s=f(t,425),i=s.a.ld(),a=f(s.a.md(),16).gc(),a!=0)?(c=this.a,W5n(c,i,a)):!1},N(Ft,"Multisets/EntrySet",2089),P(1139,2089,wc,Pnt),p.Kc=function(){return new Alt(_pt(o3(this.a.a)).Kc())},p.gc=function(){return o3(this.a.a).gc()},N(Ft,"AbstractMultiset/EntrySet",1139),P(627,742,mw),p.hc=function(){return this.pd()},p.jc=function(){return this.qd()},p.cc=function(t){return this.rd(t)},p.fc=function(t){return this.sd(t)},p.Zb=function(){var t;return t=this.f,t||(this.f=this.ac())},p.qd=function(){return qt(),qt(),CG},p.Fb=function(t){return tte(this,t)},p.rd=function(t){return f(Hr(this,t),21)},p.sd=function(t){return f(mN(this,t),21)},p.mc=function(t){return qt(),new Vx(f(t,21))},p.pc=function(t,i){return new Sdt(this,t,f(i,21))},N(Ft,"AbstractSetMultimap",627),P(1723,627,mw),p.hc=function(){return new sg(this.b)},p.pd=function(){return new sg(this.b)},p.jc=function(){return vve(new sg(this.b))},p.qd=function(){return vve(new sg(this.b))},p.cc=function(t){return f(f(Hr(this,t),21),87)},p.rd=function(t){return f(f(Hr(this,t),21),87)},p.fc=function(t){return f(f(mN(this,t),21),87)},p.sd=function(t){return f(f(mN(this,t),21),87)},p.mc=function(t){return ve(t,277)?vve(f(t,277)):(qt(),new Cme(f(t,87)))},p.Zb=function(){var t;return t=this.f,t||(this.f=ve(this.c,139)?new F$(this,f(this.c,139)):ve(this.c,133)?new p7(this,f(this.c,133)):new Yx(this,this.c))},p.pc=function(t,i){return ve(i,277)?new lft(this,t,f(i,277)):new Hme(this,t,f(i,87))},N(Ft,"AbstractSortedSetMultimap",1723),P(1724,1723,mw),p.Zb=function(){var t;return t=this.f,f(f(t||(this.f=ve(this.c,139)?new F$(this,f(this.c,139)):ve(this.c,133)?new p7(this,f(this.c,133)):new Yx(this,this.c)),133),139)},p.ec=function(){var t;return t=this.i,f(f(t||(this.i=ve(this.c,139)?new Jx(this,f(this.c,139)):ve(this.c,133)?new HO(this,f(this.c,133)):new XS(this,this.c)),87),277)},p.bc=function(){return ve(this.c,139)?new Jx(this,f(this.c,139)):ve(this.c,133)?new HO(this,f(this.c,133)):new XS(this,this.c)},N(Ft,"AbstractSortedKeySortedSetMultimap",1724),P(2109,1,{2046:1}),p.Fb=function(t){return S$n(this,t)},p.Hb=function(){var t;return ASe((t=this.g,t||(this.g=new nY(this))))},p.Ib=function(){var t;return $2t((t=this.f,t||(this.f=new Eme(this))))},N(Ft,"AbstractTable",2109),P(679,lh,wc,nY),p.$b=function(){Blt()},p.Hc=function(t){var i,s;return ve(t,479)?(i=f(t,697),s=f(Zv(Vpt(this.a),E1(i.c.e,i.b)),85),!!s&&t2e(s.vc(),new ym(E1(i.c.c,i.a),d3(i.c,i.b,i.a)))):!1},p.Kc=function(){return x_n(this.a)},p.Mc=function(t){var i,s;return ve(t,479)?(i=f(t,697),s=f(Zv(Vpt(this.a),E1(i.c.e,i.b)),85),!!s&&rCn(s.vc(),new ym(E1(i.c.c,i.a),d3(i.c,i.b,i.a)))):!1},p.gc=function(){return qht(this.a)},p.Nc=function(){return P2n(this.a)},N(Ft,"AbstractTable/CellSet",679),P(2025,31,p_,Nnt),p.$b=function(){Blt()},p.Hc=function(t){return p6n(this.a,t)},p.Kc=function(){return C_n(this.a)},p.gc=function(){return qht(this.a)},p.Nc=function(){return o1t(this.a)},N(Ft,"AbstractTable/Values",2025),P(1697,1696,mw),N(Ft,"ArrayListMultimapGwtSerializationDependencies",1697),P(520,1697,mw,NY,Hve),p.hc=function(){return new ka(this.a)},p.a=0,N(Ft,"ArrayListMultimap",520),P(678,2109,{678:1,2046:1,3:1},nkt),N(Ft,"ArrayTable",678),P(2021,399,EA,Bft),p.Xb=function(t){return new OSe(this.a,t)},N(Ft,"ArrayTable/1",2021),P(2022,1,{},Ant),p.td=function(t){return new OSe(this.a,t)},N(Ft,"ArrayTable/1methodref$getCell$Type",2022),P(2110,1,{697:1}),p.Fb=function(t){var i;return t===this?!0:ve(t,479)?(i=f(t,697),Lh(E1(this.c.e,this.b),E1(i.c.e,i.b))&&Lh(E1(this.c.c,this.a),E1(i.c.c,i.a))&&Lh(d3(this.c,this.b,this.a),d3(i.c,i.b,i.a))):!1},p.Hb=function(){return wN(se(ie(ho,1),on,1,5,[E1(this.c.e,this.b),E1(this.c.c,this.a),d3(this.c,this.b,this.a)]))},p.Ib=function(){return"("+E1(this.c.e,this.b)+","+E1(this.c.c,this.a)+")="+d3(this.c,this.b,this.a)},N(Ft,"Tables/AbstractCell",2110),P(479,2110,{479:1,697:1},OSe),p.a=0,p.b=0,p.d=0,N(Ft,"ArrayTable/2",479),P(2024,1,{},Tnt),p.td=function(t){return $wt(this.a,t)},N(Ft,"ArrayTable/2methodref$getValue$Type",2024),P(2023,399,EA,Wft),p.Xb=function(t){return $wt(this.a,t)},N(Ft,"ArrayTable/3",2023),P(2077,2065,cy),p.$b=function(){vB(this.kc())},p.vc=function(){return new Unt(this)},p.lc=function(){return new Rbt(this.kc(),this.gc())},N(Ft,"Maps/IteratorBasedAbstractMap",2077),P(842,2077,cy),p.$b=function(){throw ne(new rr)},p._b=function(t){return oat(this.c,t)},p.kc=function(){return new Hft(this,this.c.b.c.gc())},p.lc=function(){return rZ(this.c.b.c.gc(),16,new $nt(this))},p.xc=function(t){var i;return i=f(B$(this.c,t),17),i?this.vd(i.a):null},p.dc=function(){return this.c.b.c.dc()},p.ec=function(){return fZ(this.c)},p.zc=function(t,i){var s;if(s=f(B$(this.c,t),17),!s)throw ne(new hn(this.ud()+" "+t+" not in "+fZ(this.c)));return this.wd(s.a,i)},p.Bc=function(t){throw ne(new rr)},p.gc=function(){return this.c.b.c.gc()},N(Ft,"ArrayTable/ArrayMap",842),P(2020,1,{},$nt),p.td=function(t){return Kpt(this.a,t)},N(Ft,"ArrayTable/ArrayMap/0methodref$getEntry$Type",2020),P(2018,358,dre,Iat),p.ld=function(){return B1n(this.a,this.b)},p.md=function(){return this.a.vd(this.b)},p.nd=function(t){return this.a.wd(this.b,t)},p.b=0,N(Ft,"ArrayTable/ArrayMap/1",2018),P(2019,399,EA,Hft),p.Xb=function(t){return Kpt(this.a,t)},N(Ft,"ArrayTable/ArrayMap/2",2019),P(2017,842,cy,Npt),p.ud=function(){return"Column"},p.vd=function(t){return d3(this.b,this.a,t)},p.wd=function(t,i){return rvt(this.b,this.a,t,i)},p.a=0,N(Ft,"ArrayTable/Row",2017),P(843,842,cy,Eme),p.vd=function(t){return new Npt(this.a,t)},p.zc=function(t,i){return f(i,85),lbn()},p.wd=function(t,i){return f(i,85),abn()},p.ud=function(){return"Row"},N(Ft,"ArrayTable/RowMap",843),P(1157,1,Cu,Pat),p.Ad=function(t){return(this.a.yd()&-262&t)!=0},p.yd=function(){return this.a.yd()&-262},p.zd=function(){return this.a.zd()},p.Nb=function(t){this.a.Nb(new Nat(t,this.b))},p.Bd=function(t){return this.a.Bd(new Oat(t,this.b))},N(Ft,"CollectSpliterators/1",1157),P(1158,1,Rn,Oat),p.Cd=function(t){this.a.Cd(this.b.Kb(t))},N(Ft,"CollectSpliterators/1/lambda$0$Type",1158),P(1159,1,Rn,Nat),p.Cd=function(t){this.a.Cd(this.b.Kb(t))},N(Ft,"CollectSpliterators/1/lambda$1$Type",1159),P(1154,1,Cu,rht),p.Ad=function(t){return((16464|this.b)&t)!=0},p.yd=function(){return 16464|this.b},p.zd=function(){return this.a.zd()},p.Nb=function(t){this.a.Qe(new Dat(t,this.c))},p.Bd=function(t){return this.a.Re(new Mat(t,this.c))},p.b=0,N(Ft,"CollectSpliterators/1WithCharacteristics",1154),P(1155,1,lM,Mat),p.Dd=function(t){this.a.Cd(this.b.td(t))},N(Ft,"CollectSpliterators/1WithCharacteristics/lambda$0$Type",1155),P(1156,1,lM,Dat),p.Dd=function(t){this.a.Cd(this.b.td(t))},N(Ft,"CollectSpliterators/1WithCharacteristics/lambda$1$Type",1156),P(1150,1,Cu),p.Ad=function(t){return(this.a&t)!=0},p.yd=function(){return this.a},p.zd=function(){return this.e&&(this.b=fme(this.b,this.e.zd())),fme(this.b,0)},p.Nb=function(t){this.e&&(this.e.Nb(t),this.e=null),this.c.Nb(new Lat(this,t)),this.b=0},p.Bd=function(t){for(;;){if(this.e&&this.e.Bd(t))return T$(this.b,aM)&&(this.b=vf(this.b,1)),!0;if(this.e=null,!this.c.Bd(new Mnt(this)))return!1}},p.a=0,p.b=0,N(Ft,"CollectSpliterators/FlatMapSpliterator",1150),P(1152,1,Rn,Mnt),p.Cd=function(t){j0n(this.a,t)},N(Ft,"CollectSpliterators/FlatMapSpliterator/lambda$0$Type",1152),P(1153,1,Rn,Lat),p.Cd=function(t){c_n(this.a,this.b,t)},N(Ft,"CollectSpliterators/FlatMapSpliterator/lambda$1$Type",1153),P(1151,1150,Cu,E1t),N(Ft,"CollectSpliterators/FlatMapSpliteratorOfObject",1151),P(253,1,hre),p.Fd=function(t){return this.Ed(f(t,253))},p.Ed=function(t){var i;return t==(kY(),Qoe)?1:t==(EY(),Yoe)?-1:(i=(bB(),oN(this.a,t.a)),i!=0?i:ve(this,526)==ve(t,526)?0:ve(this,526)?1:-1)},p.Id=function(){return this.a},p.Fb=function(t){return Z2e(this,t)},N(Ft,"Cut",253),P(1823,253,hre,_lt),p.Ed=function(t){return t==this?0:1},p.Gd=function(t){throw ne(new S0e)},p.Hd=function(t){t.a+="+∞)"},p.Id=function(){throw ne(new Us($Ct))},p.Hb=function(){return lb(),j2e(this)},p.Jd=function(t){return!1},p.Ib=function(){return"+∞"};var Yoe;N(Ft,"Cut/AboveAll",1823),P(526,253,{253:1,526:1,3:1,34:1},qft),p.Gd=function(t){aa((t.a+="(",t),this.a)},p.Hd=function(t){Q0(aa(t,this.a),93)},p.Hb=function(){return~ti(this.a)},p.Jd=function(t){return bB(),oN(this.a,t)<0},p.Ib=function(){return"/"+this.a+"\\"},N(Ft,"Cut/AboveValue",526),P(1822,253,hre,vlt),p.Ed=function(t){return t==this?0:-1},p.Gd=function(t){t.a+="(-∞"},p.Hd=function(t){throw ne(new S0e)},p.Id=function(){throw ne(new Us($Ct))},p.Hb=function(){return lb(),j2e(this)},p.Jd=function(t){return!0},p.Ib=function(){return"-∞"};var Qoe;N(Ft,"Cut/BelowAll",1822),P(1824,253,hre,Xft),p.Gd=function(t){aa((t.a+="[",t),this.a)},p.Hd=function(t){Q0(aa(t,this.a),41)},p.Hb=function(){return ti(this.a)},p.Jd=function(t){return bB(),oN(this.a,t)<=0},p.Ib=function(){return"\\"+this.a+"/"},N(Ft,"Cut/BelowValue",1824),P(547,1,Rp),p.Jc=function(t){Vo(this,t)},p.Ib=function(){return kCn(f(UB(this,"use Optional.orNull() instead of Optional.or(null)"),20).Kc())},N(Ft,"FluentIterable",547),P(442,547,Rp,P$),p.Kc=function(){return new kn(xn(this.a.Kc(),new O))},N(Ft,"FluentIterable/2",442),P(1059,547,Rp,rft),p.Kc=function(){return wp(this)},N(Ft,"FluentIterable/3",1059),P(724,399,EA,kme),p.Xb=function(t){return this.a[t].Kc()},N(Ft,"FluentIterable/3/1",724),P(2070,1,{}),p.Ib=function(){return dl(this.Kd().b)},N(Ft,"ForwardingObject",2070),P(2071,2070,ICt),p.Kd=function(){return this.Ld()},p.Jc=function(t){Vo(this,t)},p.Lc=function(){return this.Oc()},p.Nc=function(){return new Vt(this,0)},p.Oc=function(){return new Wt(null,this.Nc())},p.Fc=function(t){return this.Ld(),lat()},p.Gc=function(t){return this.Ld(),aat()},p.$b=function(){this.Ld(),cat()},p.Hc=function(t){return this.Ld().Hc(t)},p.Ic=function(t){return this.Ld().Ic(t)},p.dc=function(){return this.Ld().b.dc()},p.Kc=function(){return this.Ld().Kc()},p.Mc=function(t){return this.Ld(),uat()},p.gc=function(){return this.Ld().b.gc()},p.Pc=function(){return this.Ld().Pc()},p.Qc=function(t){return this.Ld().Qc(t)},N(Ft,"ForwardingCollection",2071),P(2078,31,Y3e),p.Kc=function(){return this.Od()},p.Fc=function(t){throw ne(new rr)},p.Gc=function(t){throw ne(new rr)},p.Md=function(){var t;return t=this.c,t||(this.c=this.Nd())},p.$b=function(){throw ne(new rr)},p.Hc=function(t){return t!=null&&e_(this,t,!1)},p.Nd=function(){switch(this.gc()){case 0:return Nm(),Nm(),Zoe;case 1:return Nm(),new iZ(nr(this.Od().Pb()));default:return new rve(this,this.Pc())}},p.Mc=function(t){throw ne(new rr)},N(Ft,"ImmutableCollection",2078),P(727,2078,Y3e,v0e),p.Kc=function(){return h3(this.a.Kc())},p.Hc=function(t){return t!=null&&this.a.Hc(t)},p.Ic=function(t){return this.a.Ic(t)},p.dc=function(){return this.a.dc()},p.Od=function(){return h3(this.a.Kc())},p.gc=function(){return this.a.gc()},p.Pc=function(){return this.a.Pc()},p.Qc=function(t){return this.a.Qc(t)},p.Ib=function(){return dl(this.a)},N(Ft,"ForwardingImmutableCollection",727),P(307,2078,kA),p.Kc=function(){return this.Od()},p.ed=function(){return this.Pd(0)},p.fd=function(t){return this.Pd(t)},p.jd=function(t){sw(this,t)},p.Nc=function(){return new Vt(this,16)},p.kd=function(t,i){return this.Qd(t,i)},p.bd=function(t,i){throw ne(new rr)},p.cd=function(t,i){throw ne(new rr)},p.Md=function(){return this},p.Fb=function(t){return F8n(this,t)},p.Hb=function(){return ORn(this)},p.dd=function(t){return t==null?-1:nTn(this,t)},p.Od=function(){return this.Pd(0)},p.Pd=function(t){return DQ(this,t)},p.gd=function(t){throw ne(new rr)},p.hd=function(t,i){throw ne(new rr)},p.Qd=function(t,i){var s;return eH((s=new Kat(this),new dg(s,t,i)))};var Zoe;N(Ft,"ImmutableList",307),P(2105,307,kA),p.Kc=function(){return h3(this.Rd().Kc())},p.kd=function(t,i){return eH(this.Rd().kd(t,i))},p.Hc=function(t){return t!=null&&this.Rd().Hc(t)},p.Ic=function(t){return this.Rd().Ic(t)},p.Fb=function(t){return Lr(this.Rd(),t)},p.Xb=function(t){return E1(this,t)},p.Hb=function(){return ti(this.Rd())},p.dd=function(t){return this.Rd().dd(t)},p.dc=function(){return this.Rd().dc()},p.Od=function(){return h3(this.Rd().Kc())},p.gc=function(){return this.Rd().gc()},p.Qd=function(t,i){return eH(this.Rd().kd(t,i))},p.Pc=function(){return this.Rd().Qc(Fe(ho,on,1,this.Rd().gc(),5,1))},p.Qc=function(t){return this.Rd().Qc(t)},p.Ib=function(){return dl(this.Rd())},N(Ft,"ForwardingImmutableList",2105),P(729,1,RA),p.vc=function(){return X0(this)},p.wc=function(t){p6(this,t)},p.ec=function(){return fZ(this)},p.yc=function(t,i,s){return vte(this,t,i,s)},p.Cc=function(){return this.Vd()},p.$b=function(){throw ne(new rr)},p._b=function(t){return this.xc(t)!=null},p.uc=function(t){return this.Vd().Hc(t)},p.Td=function(){return new Tst(this)},p.Ud=function(){return new $st(this)},p.Fb=function(t){return Rxn(this,t)},p.Hb=function(){return X0(this).Hb()},p.dc=function(){return this.gc()==0},p.zc=function(t,i){return sbn()},p.Bc=function(t){throw ne(new rr)},p.Ib=function(){return dIn(this)},p.Vd=function(){return this.e?this.e:this.e=this.Ud()},p.c=null,p.d=null,p.e=null;var n6t;N(Ft,"ImmutableMap",729),P(730,729,RA),p._b=function(t){return oat(this,t)},p.uc=function(t){return Zat(this.b,t)},p.Sd=function(){return Zvt(new Ont(this))},p.Td=function(){return Zvt(bbt(this.b))},p.Ud=function(){return Dh(),new v0e(pbt(this.b))},p.Fb=function(t){return ect(this.b,t)},p.xc=function(t){return B$(this,t)},p.Hb=function(){return ti(this.b.c)},p.dc=function(){return this.b.c.dc()},p.gc=function(){return this.b.c.gc()},p.Ib=function(){return dl(this.b.c)},N(Ft,"ForwardingImmutableMap",730),P(2072,2071,pre),p.Kd=function(){return this.Wd()},p.Ld=function(){return this.Wd()},p.Nc=function(){return new Vt(this,1)},p.Fb=function(t){return t===this||this.Wd().Fb(t)},p.Hb=function(){return this.Wd().Hb()},N(Ft,"ForwardingSet",2072),P(1085,2072,pre,Ont),p.Kd=function(){return bC(this.a.b)},p.Ld=function(){return bC(this.a.b)},p.Hc=function(t){if(ve(t,44)&&f(t,44).ld()==null)return!1;try{return Qat(bC(this.a.b),t)}catch(i){if(i=mi(i),ve(i,212))return!1;throw ne(i)}},p.Wd=function(){return bC(this.a.b)},p.Qc=function(t){var i;return i=Zbt(bC(this.a.b),t),bC(this.a.b).b.gc()=0?"+":"")+(s/60|0),i=qF(h.Math.abs(s)%60),(H2t(),_6t)[this.q.getDay()]+" "+S6t[this.q.getMonth()]+" "+qF(this.q.getDate())+" "+qF(this.q.getHours())+":"+qF(this.q.getMinutes())+":"+qF(this.q.getSeconds())+" GMT"+t+i+" "+this.q.getFullYear()};var kG=N(Ln,"Date",206);P(2015,206,BCt,f2t),p.a=!1,p.b=0,p.c=0,p.d=0,p.e=0,p.f=0,p.g=!1,p.i=0,p.j=0,p.k=0,p.n=0,p.o=0,p.p=0,N("com.google.gwt.i18n.shared.impl","DateRecord",2015),P(2064,1,{}),p.pe=function(){return null},p.qe=function(){return null},p.re=function(){return null},p.se=function(){return null},p.te=function(){return null},N(O3,"JSONValue",2064),P(221,2064,{221:1},B0,z1e),p.Fb=function(t){return ve(t,221)?Gve(this.a,f(t,221).a):!1},p.oe=function(){return Ipn},p.Hb=function(){return Ove(this.a)},p.pe=function(){return this},p.Ib=function(){var t,i,s;for(s=new gu("["),i=0,t=this.a.length;i0&&(s.a+=","),aa(s,Kv(this,i));return s.a+="]",s.a},N(O3,"JSONArray",221),P(493,2064,{493:1},K1e),p.oe=function(){return Ppn},p.qe=function(){return this},p.Ib=function(){return cn(),""+this.a},p.a=!1;var c6t,u6t;N(O3,"JSONBoolean",493),P(997,63,Cb,Tlt),N(O3,"JSONException",997),P(1036,2064,{},be),p.oe=function(){return Opn},p.Ib=function(){return Za};var f6t;N(O3,"JSONNull",1036),P(263,2064,{263:1},Gj),p.Fb=function(t){return ve(t,263)?this.a==f(t,263).a:!1},p.oe=function(){return Tpn},p.Hb=function(){return Gk(this.a)},p.re=function(){return this},p.Ib=function(){return this.a+""},p.a=0,N(O3,"JSONNumber",263),P(190,2064,{190:1},Nk,IO),p.Fb=function(t){return ve(t,190)?Gve(this.a,f(t,190).a):!1},p.oe=function(){return $pn},p.Hb=function(){return Ove(this.a)},p.se=function(){return this},p.Ib=function(){var t,i,s,a,c,b,g;for(g=new gu("{"),t=!0,b=jee(this,Fe(_t,rt,2,0,6,1)),s=b,a=0,c=s.length;a=0?":"+this.c:"")+")"},p.c=0;var n4e=N(Pl,"StackTraceElement",319);t6t={3:1,484:1,34:1,2:1};var _t=N(Pl,Q3e,2);P(111,427,{484:1},ig,a$,wf),N(Pl,"StringBuffer",111),P(104,427,{484:1},m1,jk,gu),N(Pl,"StringBuilder",104),P(702,77,Lre,J0e),N(Pl,"StringIndexOutOfBoundsException",702),P(2145,1,{});var b6t;P(48,63,{3:1,103:1,63:1,82:1,48:1},rr,ng),N(Pl,"UnsupportedOperationException",48),P(247,242,{3:1,34:1,242:1,247:1},_N,lwe),p.Fd=function(t){return MRt(this,f(t,247))},p.ue=function(){return o_(cxt(this))},p.Fb=function(t){var i;return this===t?!0:ve(t,247)?(i=f(t,247),this.e==i.e&&MRt(this,i)==0):!1},p.Hb=function(){var t;return this.b!=0?this.b:this.a<54?(t=Gl(this.f),this.b=tr(fo(t,-1)),this.b=33*this.b+tr(fo(Im(t,32),-1)),this.b=17*this.b+oo(this.e),this.b):(this.b=17*qvt(this.c)+oo(this.e),this.b)},p.Ib=function(){return cxt(this)},p.a=0,p.b=0,p.d=0,p.e=0,p.f=0;var g6t,$w,r4e,i4e,o4e,s4e,l4e,a4e,lse=N("java.math","BigDecimal",247);P(92,242,{3:1,34:1,242:1,92:1},pb,Bgt,Y0,X_t,k1),p.Fd=function(t){return V_t(this,f(t,92))},p.ue=function(){return o_(cre(this,0))},p.Fb=function(t){return _2e(this,t)},p.Hb=function(){return qvt(this)},p.Ib=function(){return cre(this,0)},p.b=-2,p.c=0,p.d=0,p.e=0;var w6t,RG,m6t,ase,xG,MI,M2=N("java.math","BigInteger",92),y6t,v6t,V3,DI;P(498,2065,cy),p.$b=function(){xc(this)},p._b=function(t){return Na(this,t)},p.uc=function(t){return Tvt(this,t,this.i)||Tvt(this,t,this.f)},p.vc=function(){return new U0(this)},p.xc=function(t){return En(this,t)},p.zc=function(t,i){return xr(this,t,i)},p.Bc=function(t){return f3(this,t)},p.gc=function(){return u$(this)},p.g=0,N(Ln,"AbstractHashMap",498),P(267,lh,wc,U0),p.$b=function(){this.a.$b()},p.Hc=function(t){return g1t(this,t)},p.Kc=function(){return new aw(this.a)},p.Mc=function(t){var i;return g1t(this,t)?(i=f(t,44).ld(),this.a.Bc(i),!0):!1},p.gc=function(){return this.a.gc()},N(Ln,"AbstractHashMap/EntrySet",267),P(268,1,ko,aw),p.Nb=function(t){Uo(this,t)},p.Pb=function(){return Xm(this)},p.Ob=function(){return this.b},p.Qb=function(){Vwt(this)},p.b=!1,p.d=0,N(Ln,"AbstractHashMap/EntrySetIterator",268),P(426,1,ko,YT),p.Nb=function(t){Uo(this,t)},p.Ob=function(){return HY(this)},p.Pb=function(){return Ave(this)},p.Qb=function(){iu(this)},p.b=0,p.c=-1,N(Ln,"AbstractList/IteratorImpl",426),P(98,426,kp,No),p.Qb=function(){iu(this)},p.Rb=function(t){Dv(this,t)},p.Sb=function(){return this.b>0},p.Tb=function(){return this.b},p.Ub=function(){return In(this.b>0),this.a.Xb(this.c=--this.b)},p.Vb=function(){return this.b-1},p.Wb=function(t){Nv(this.c!=-1),this.a.hd(this.c,t)},N(Ln,"AbstractList/ListIteratorImpl",98),P(244,56,xA,dg),p.bd=function(t,i){Uv(t,this.b),this.c.bd(this.a+t,i),++this.b},p.Xb=function(t){return Xt(t,this.b),this.c.Xb(this.a+t)},p.gd=function(t){var i;return Xt(t,this.b),i=this.c.gd(this.a+t),--this.b,i},p.hd=function(t,i){return Xt(t,this.b),this.c.hd(this.a+t,i)},p.gc=function(){return this.b},p.a=0,p.b=0,N(Ln,"AbstractList/SubList",244),P(266,lh,wc,H0),p.$b=function(){this.a.$b()},p.Hc=function(t){return this.a._b(t)},p.Kc=function(){var t;return t=this.a.vc().Kc(),new zj(t)},p.Mc=function(t){return this.a._b(t)?(this.a.Bc(t),!0):!1},p.gc=function(){return this.a.gc()},N(Ln,"AbstractMap/1",266),P(541,1,ko,zj),p.Nb=function(t){Uo(this,t)},p.Ob=function(){return this.a.Ob()},p.Pb=function(){var t;return t=f(this.a.Pb(),44),t.ld()},p.Qb=function(){this.a.Qb()},N(Ln,"AbstractMap/1/1",541),P(231,31,p_,ob),p.$b=function(){this.a.$b()},p.Hc=function(t){return this.a.uc(t)},p.Kc=function(){var t;return t=this.a.vc().Kc(),new Rv(t)},p.gc=function(){return this.a.gc()},N(Ln,"AbstractMap/2",231),P(301,1,ko,Rv),p.Nb=function(t){Uo(this,t)},p.Ob=function(){return this.a.Ob()},p.Pb=function(){var t;return t=f(this.a.Pb(),44),t.md()},p.Qb=function(){this.a.Qb()},N(Ln,"AbstractMap/2/1",301),P(494,1,{494:1,44:1}),p.Fb=function(t){var i;return ve(t,44)?(i=f(t,44),Ul(this.d,i.ld())&&Ul(this.e,i.md())):!1},p.ld=function(){return this.d},p.md=function(){return this.e},p.Hb=function(){return VS(this.d)^VS(this.e)},p.nd=function(t){return Xme(this,t)},p.Ib=function(){return this.d+"="+this.e},N(Ln,"AbstractMap/AbstractEntry",494),P(397,494,{494:1,397:1,44:1},kF),N(Ln,"AbstractMap/SimpleEntry",397),P(2082,1,Bre),p.Fb=function(t){var i;return ve(t,44)?(i=f(t,44),Ul(this.ld(),i.ld())&&Ul(this.md(),i.md())):!1},p.Hb=function(){return VS(this.ld())^VS(this.md())},p.Ib=function(){return this.ld()+"="+this.md()},N(Ln,ACt,2082),P(2090,2065,X3e),p.Xc=function(t){return MY(this.Ee(t))},p.tc=function(t){return S0t(this,t)},p._b=function(t){return Jme(this,t)},p.vc=function(){return new cY(this)},p.Tc=function(){return Dpt(this.Ge())},p.Yc=function(t){return MY(this.He(t))},p.xc=function(t){var i;return i=t,tl(this.Fe(i))},p.$c=function(t){return MY(this.Ie(t))},p.ec=function(){return new ort(this)},p.Vc=function(){return Dpt(this.Je())},p._c=function(t){return MY(this.Ke(t))},N(Ln,"AbstractNavigableMap",2090),P(629,lh,wc,cY),p.Hc=function(t){return ve(t,44)&&S0t(this.b,f(t,44))},p.Kc=function(){return this.b.De()},p.Mc=function(t){var i;return ve(t,44)?(i=f(t,44),this.b.Le(i)):!1},p.gc=function(){return this.b.gc()},N(Ln,"AbstractNavigableMap/EntrySet",629),P(1146,lh,J3e,ort),p.Nc=function(){return new SF(this)},p.$b=function(){this.a.$b()},p.Hc=function(t){return Jme(this.a,t)},p.Kc=function(){var t;return t=this.a.vc().b.De(),new srt(t)},p.Mc=function(t){return Jme(this.a,t)?(this.a.Bc(t),!0):!1},p.gc=function(){return this.a.gc()},N(Ln,"AbstractNavigableMap/NavigableKeySet",1146),P(1147,1,ko,srt),p.Nb=function(t){Uo(this,t)},p.Ob=function(){return HY(this.a.a)},p.Pb=function(){var t;return t=odt(this.a),t.ld()},p.Qb=function(){fht(this.a)},N(Ln,"AbstractNavigableMap/NavigableKeySet/1",1147),P(2103,31,p_),p.Fc=function(t){return Qk(aA(this,t),AA),!0},p.Gc=function(t){return mn(t),E7(t!=this,"Can't add a queue to itself"),Do(this,t)},p.$b=function(){for(;Ree(this)!=null;);},N(Ln,"AbstractQueue",2103),P(310,31,{4:1,20:1,31:1,16:1},qS,f1t),p.Fc=function(t){return e_e(this,t),!0},p.$b=function(){s_e(this)},p.Hc=function(t){return Yyt(new Z$(this),t)},p.dc=function(){return l$(this)},p.Kc=function(){return new Z$(this)},p.Mc=function(t){return pSn(new Z$(this),t)},p.gc=function(){return this.c-this.b&this.a.length-1},p.Nc=function(){return new Vt(this,272)},p.Qc=function(t){var i;return i=this.c-this.b&this.a.length-1,t.lengthi&&Ci(t,i,null),t},p.b=0,p.c=0,N(Ln,"ArrayDeque",310),P(459,1,ko,Z$),p.Nb=function(t){Uo(this,t)},p.Ob=function(){return this.a!=this.b},p.Pb=function(){return ZW(this)},p.Qb=function(){Kmt(this)},p.a=0,p.b=0,p.c=-1,N(Ln,"ArrayDeque/IteratorImpl",459),P(13,56,UCt,st,ka,Rc),p.bd=function(t,i){$m(this,t,i)},p.Fc=function(t){return lt(this,t)},p.cd=function(t,i){return KSe(this,t,i)},p.Gc=function(t){return eo(this,t)},p.$b=function(){xv(this.c,0)},p.Hc=function(t){return il(this,t,0)!=-1},p.Jc=function(t){Ma(this,t)},p.Xb=function(t){return yt(this,t)},p.dd=function(t){return il(this,t,0)},p.dc=function(){return this.c.length==0},p.Kc=function(){return new ee(this)},p.gd=function(t){return pg(this,t)},p.Mc=function(t){return Ja(this,t)},p.ce=function(t,i){Ngt(this,t,i)},p.hd=function(t,i){return Ku(this,t,i)},p.gc=function(){return this.c.length},p.jd=function(t){Hi(this,t)},p.Pc=function(){return gB(this.c)},p.Qc=function(t){return ih(this,t)};var rFn=N(Ln,"ArrayList",13);P(7,1,ko,ee),p.Nb=function(t){Uo(this,t)},p.Ob=function(){return _l(this)},p.Pb=function(){return Z(this)},p.Qb=function(){q$(this)},p.a=0,p.b=-1,N(Ln,"ArrayList/1",7),P(2112,h.Function,{},ye),p.Me=function(t,i){return Qr(t,i)},P(151,56,GCt,kc),p.Hc=function(t){return qmt(this,t)!=-1},p.Jc=function(t){var i,s,a,c;for(mn(t),s=this.a,a=0,c=s.length;a0)throw ne(new hn(sRe+t+" greater than "+this.e));return this.f.Te()?rgt(this.c,this.b,this.a,t,i):Mgt(this.c,t,i)},p.zc=function(t,i){if(!Zte(this.c,this.f,t,this.b,this.a,this.e,this.d))throw ne(new hn(t+" outside the range "+this.b+" to "+this.e));return pvt(this.c,t,i)},p.Bc=function(t){var i;return i=t,Zte(this.c,this.f,i,this.b,this.a,this.e,this.d)?igt(this.c,i):null},p.Le=function(t){return DB(this,t.ld())&&R_e(this.c,t)},p.gc=function(){var t,i,s;if(this.f.Te()?this.a?i=tA(this.c,this.b,!0):i=tA(this.c,this.b,!1):i=M_e(this.c),!(i&&DB(this,i.d)&&i))return 0;for(t=0,s=new Fee(this.c,this.f,this.b,this.a,this.e,this.d);HY(s.a);s.b=f(Ave(s.a),44))++t;return t},p.ad=function(t,i){if(this.f.Te()&&this.c.a.Ne(t,this.b)<0)throw ne(new hn(sRe+t+KCt+this.b));return this.f.Ue()?rgt(this.c,t,i,this.e,this.d):Dgt(this.c,t,i)},p.a=!1,p.d=!1,N(Ln,"TreeMap/SubMap",631),P(304,22,Gre,EF),p.Te=function(){return!1},p.Ue=function(){return!1};var fse,dse,hse,pse,AG=Wn(Ln,"TreeMap/SubMapType",304,qn,W2n,Y0n);P(1143,304,Gre,cft),p.Ue=function(){return!0},Wn(Ln,"TreeMap/SubMapType/1",1143,AG,null,null),P(1144,304,Gre,mft),p.Te=function(){return!0},p.Ue=function(){return!0},Wn(Ln,"TreeMap/SubMapType/2",1144,AG,null,null),P(1145,304,Gre,aft),p.Te=function(){return!0},Wn(Ln,"TreeMap/SubMapType/3",1145,AG,null,null);var A6t;P(157,lh,{3:1,20:1,31:1,16:1,277:1,21:1,87:1,157:1},R0e,sg,Fx),p.Nc=function(){return new SF(this)},p.Fc=function(t){return x7(this,t)},p.$b=function(){this.a.$b()},p.Hc=function(t){return this.a._b(t)},p.Kc=function(){return this.a.ec().Kc()},p.Mc=function(t){return OQ(this,t)},p.gc=function(){return this.a.gc()};var cFn=N(Ln,"TreeSet",157);P(1082,1,{},urt),p.Ve=function(t,i){return p0n(this.a,t,i)},N(Vre,"BinaryOperator/lambda$0$Type",1082),P(1083,1,{},frt),p.Ve=function(t,i){return b0n(this.a,t,i)},N(Vre,"BinaryOperator/lambda$1$Type",1083),P(952,1,{},rn),p.Kb=function(t){return t},N(Vre,"Function/lambda$0$Type",952),P(395,1,sr,Bx),p.Mb=function(t){return!this.a.Mb(t)},N(Vre,"Predicate/lambda$2$Type",395),P(581,1,{581:1});var T6t=N(oI,"Handler",581);P(2107,1,oM),p.xe=function(){return"DUMMY"},p.Ib=function(){return this.xe()};var b4e;N(oI,"Level",2107),P(1706,2107,oM,Pe),p.xe=function(){return"INFO"},N(oI,"Level/LevelInfo",1706),P(1843,1,{},Lst);var bse;N(oI,"LogManager",1843),P(1896,1,oM,uht),p.b=null,N(oI,"LogRecord",1896),P(525,1,{525:1},iee),p.e=!1;var $6t=!1,I6t=!1,fh=!1,P6t=!1,O6t=!1;N(oI,"Logger",525),P(835,581,{581:1},Oe),N(oI,"SimpleConsoleLogHandler",835),P(108,22,{3:1,34:1,22:1,108:1},VY);var g4e,pl,k_,qs=Wn(no,"Collector/Characteristics",108,qn,ASn,Q0n),N6t;P(758,1,{},lve),N(no,"CollectorImpl",758),P(1074,1,{},T),p.Ve=function(t,i){return aCn(f(t,213),f(i,213))},N(no,"Collectors/10methodref$merge$Type",1074),P(1075,1,{},$),p.Kb=function(t){return d1t(f(t,213))},N(no,"Collectors/11methodref$toString$Type",1075),P(1076,1,{},drt),p.Kb=function(t){return cn(),!!tme(t)},N(no,"Collectors/12methodref$test$Type",1076),P(144,1,{},B),p.Yd=function(t,i){f(t,16).Fc(i)},N(no,"Collectors/20methodref$add$Type",144),P(146,1,{},K),p.Xe=function(){return new st},N(no,"Collectors/21methodref$ctor$Type",146),P(359,1,{},q),p.Xe=function(){return new Gi},N(no,"Collectors/23methodref$ctor$Type",359),P(360,1,{},ke),p.Yd=function(t,i){Zi(f(t,49),i)},N(no,"Collectors/24methodref$add$Type",360),P(1069,1,{},Re),p.Ve=function(t,i){return rct(f(t,15),f(i,16))},N(no,"Collectors/4methodref$addAll$Type",1069),P(1073,1,{},Ie),p.Yd=function(t,i){bb(f(t,213),f(i,484))},N(no,"Collectors/9methodref$add$Type",1073),P(1072,1,{},Cht),p.Xe=function(){return new cw(this.a,this.b,this.c)},N(no,"Collectors/lambda$15$Type",1072),P(1077,1,{},St),p.Xe=function(){var t;return t=new hg,kg(t,(cn(),!1),new st),kg(t,!0,new st),t},N(no,"Collectors/lambda$22$Type",1077),P(1078,1,{},hrt),p.Xe=function(){return se(ie(ho,1),on,1,5,[this.a])},N(no,"Collectors/lambda$25$Type",1078),P(1079,1,{},prt),p.Yd=function(t,i){Nyn(this.a,ow(t))},N(no,"Collectors/lambda$26$Type",1079),P(1080,1,{},brt),p.Ve=function(t,i){return avn(this.a,ow(t),ow(i))},N(no,"Collectors/lambda$27$Type",1080),P(1081,1,{},he),p.Kb=function(t){return ow(t)[0]},N(no,"Collectors/lambda$28$Type",1081),P(728,1,{},zt),p.Ve=function(t,i){return Wye(t,i)},N(no,"Collectors/lambda$4$Type",728),P(145,1,{},Qt),p.Ve=function(t,i){return Ubn(f(t,16),f(i,16))},N(no,"Collectors/lambda$42$Type",145),P(361,1,{},$n),p.Ve=function(t,i){return Gbn(f(t,49),f(i,49))},N(no,"Collectors/lambda$50$Type",361),P(362,1,{},Gn),p.Kb=function(t){return f(t,49)},N(no,"Collectors/lambda$51$Type",362),P(1068,1,{},grt),p.Yd=function(t,i){pxn(this.a,f(t,85),i)},N(no,"Collectors/lambda$7$Type",1068),P(1070,1,{},$e),p.Ve=function(t,i){return GRn(f(t,85),f(i,85),new Re)},N(no,"Collectors/lambda$8$Type",1070),P(1071,1,{},wrt),p.Kb=function(t){return WCn(this.a,f(t,85))},N(no,"Collectors/lambda$9$Type",1071),P(550,1,{}),p.$e=function(){Q$(this)},p.d=!1,N(no,"TerminatableStream",550),P(827,550,lRe,Bme),p.$e=function(){Q$(this)},N(no,"DoubleStreamImpl",827),P(1847,736,Cu,Aht),p.Re=function(t){return G4n(this,f(t,189))},p.a=null,N(no,"DoubleStreamImpl/2",1847),P(1848,1,pM,mrt),p.Pe=function(t){Lgn(this.a,t)},N(no,"DoubleStreamImpl/2/lambda$0$Type",1848),P(1845,1,pM,yrt),p.Pe=function(t){Dgn(this.a,t)},N(no,"DoubleStreamImpl/lambda$0$Type",1845),P(1846,1,pM,vrt),p.Pe=function(t){A_t(this.a,t)},N(no,"DoubleStreamImpl/lambda$2$Type",1846),P(1397,735,Cu,w0t),p.Re=function(t){return $2n(this,f(t,202))},p.a=0,p.b=0,p.c=0,N(no,"IntStream/5",1397),P(806,550,lRe,Wme),p.$e=function(){Q$(this)},p._e=function(){return A1(this),this.a},N(no,"IntStreamImpl",806),P(807,550,lRe,dwe),p.$e=function(){Q$(this)},p._e=function(){return A1(this),Sme(),C6t},N(no,"IntStreamImpl/Empty",807),P(1687,1,lM,_rt),p.Dd=function(t){jyt(this.a,t)},N(no,"IntStreamImpl/lambda$4$Type",1687);var uFn=Ei(no,"Stream");P(26,550,{533:1,687:1,848:1},Wt),p.$e=function(){Q$(this)};var z3;N(no,"StreamImpl",26),P(1102,500,Cu,nht),p.Bd=function(t){for(;Okn(this);){if(this.a.Bd(t))return!0;Q$(this.b),this.b=null,this.a=null}return!1},N(no,"StreamImpl/1",1102),P(1103,1,Rn,Srt),p.Cd=function(t){syn(this.a,f(t,848))},N(no,"StreamImpl/1/lambda$0$Type",1103),P(1104,1,sr,Ert),p.Mb=function(t){return Zi(this.a,t)},N(no,"StreamImpl/1methodref$add$Type",1104),P(1105,500,Cu,Dbt),p.Bd=function(t){var i;return this.a||(i=new st,this.b.a.Nb(new krt(i)),qt(),Hi(i,this.c),this.a=new Vt(i,16)),ymt(this.a,t)},p.a=null,N(no,"StreamImpl/5",1105),P(1106,1,Rn,krt),p.Cd=function(t){lt(this.a,t)},N(no,"StreamImpl/5/2methodref$add$Type",1106),P(737,500,Cu,D_e),p.Bd=function(t){for(this.b=!1;!this.b&&this.c.Bd(new vct(this,t)););return this.b},p.b=!1,N(no,"StreamImpl/FilterSpliterator",737),P(1096,1,Rn,vct),p.Cd=function(t){nvn(this.a,this.b,t)},N(no,"StreamImpl/FilterSpliterator/lambda$0$Type",1096),P(1091,736,Cu,A0t),p.Re=function(t){return D0n(this,f(t,189))},N(no,"StreamImpl/MapToDoubleSpliterator",1091),P(1095,1,Rn,_ct),p.Cd=function(t){sgn(this.a,this.b,t)},N(no,"StreamImpl/MapToDoubleSpliterator/lambda$0$Type",1095),P(1090,735,Cu,T0t),p.Re=function(t){return L0n(this,f(t,202))},N(no,"StreamImpl/MapToIntSpliterator",1090),P(1094,1,Rn,Sct),p.Cd=function(t){lgn(this.a,this.b,t)},N(no,"StreamImpl/MapToIntSpliterator/lambda$0$Type",1094),P(734,500,Cu,__e),p.Bd=function(t){return Zdt(this,t)},N(no,"StreamImpl/MapToObjSpliterator",734),P(1093,1,Rn,Ect),p.Cd=function(t){agn(this.a,this.b,t)},N(no,"StreamImpl/MapToObjSpliterator/lambda$0$Type",1093),P(1092,500,Cu,iyt),p.Bd=function(t){for(;UY(this.b,0);){if(!this.a.Bd(new ce))return!1;this.b=vf(this.b,1)}return this.a.Bd(t)},p.b=0,N(no,"StreamImpl/SkipSpliterator",1092),P(1097,1,Rn,ce),p.Cd=function(t){},N(no,"StreamImpl/SkipSpliterator/lambda$0$Type",1097),P(626,1,Rn,de),p.Cd=function(t){ert(this,t)},N(no,"StreamImpl/ValueConsumer",626),P(1098,1,Rn,et),p.Cd=function(t){K0()},N(no,"StreamImpl/lambda$0$Type",1098),P(1099,1,Rn,ht),p.Cd=function(t){K0()},N(no,"StreamImpl/lambda$1$Type",1099),P(1100,1,{},Rrt),p.Ve=function(t,i){return bwn(this.a,t,i)},N(no,"StreamImpl/lambda$4$Type",1100),P(1101,1,Rn,kct),p.Cd=function(t){_0n(this.b,this.a,t)},N(no,"StreamImpl/lambda$5$Type",1101),P(1107,1,Rn,xrt),p.Cd=function(t){PRn(this.a,f(t,380))},N(no,"TerminatableStream/lambda$0$Type",1107),P(2142,1,{}),P(2014,1,{},Jt),N("javaemul.internal","ConsoleLogger",2014);var fFn=0;P(2134,1,{}),P(1830,1,Rn,Zt),p.Cd=function(t){f(t,317)},N(TA,"BowyerWatsonTriangulation/lambda$0$Type",1830),P(1831,1,Rn,Crt),p.Cd=function(t){Do(this.a,f(t,317).e)},N(TA,"BowyerWatsonTriangulation/lambda$1$Type",1831),P(1832,1,Rn,qr),p.Cd=function(t){f(t,177)},N(TA,"BowyerWatsonTriangulation/lambda$2$Type",1832),P(1827,1,cr,Art),p.Ne=function(t,i){return bEn(this.a,f(t,177),f(i,177))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(TA,"NaiveMinST/lambda$0$Type",1827),P(449,1,{},QT),N(TA,"NodeMicroLayout",449),P(177,1,{177:1},Wk),p.Fb=function(t){var i;return ve(t,177)?(i=f(t,177),Ul(this.a,i.a)&&Ul(this.b,i.b)||Ul(this.a,i.b)&&Ul(this.b,i.a)):!1},p.Hb=function(){return VS(this.a)+VS(this.b)};var dFn=N(TA,"TEdge",177);P(317,1,{317:1},_3e),p.Fb=function(t){var i;return ve(t,317)?(i=f(t,317),yW(this,i.a)&&yW(this,i.b)&&yW(this,i.c)):!1},p.Hb=function(){return VS(this.a)+VS(this.b)+VS(this.c)},N(TA,"TTriangle",317),P(225,1,{225:1},JF),N(TA,"Tree",225),P(1218,1,{},_gt),N(JCt,"Scanline",1218);var M6t=Ei(JCt,YCt);P(1758,1,{},gmt),N(Ap,"CGraph",1758),P(316,1,{316:1},kgt),p.b=0,p.c=0,p.d=0,p.g=0,p.i=0,p.k=to,N(Ap,"CGroup",316),P(830,1,{},A0e),N(Ap,"CGroup/CGroupBuilder",830),P(60,1,{60:1},Ddt),p.Ib=function(){var t;return this.j?or(this.j.Kb(this)):(cb(TG),TG.o+"@"+(t=Cm(this)>>>0,t.toString(16)))},p.f=0,p.i=to;var TG=N(Ap,"CNode",60);P(829,1,{},T0e),N(Ap,"CNode/CNodeBuilder",829);var D6t;P(1590,1,{},ao),p.ff=function(t,i){return 0},p.gf=function(t,i){return 0},N(Ap,ZCt,1590),P(1853,1,{},ki),p.cf=function(t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X;for(k=hi,a=new ee(t.a.b);a.aa.d.c||a.d.c==b.d.c&&a.d.b0?t+this.n.d+this.n.a:0},p.kf=function(){var t,i,s,a,c;if(c=0,this.e)this.b?c=this.b.a:this.a[1][1]&&(c=this.a[1][1].kf());else if(this.g)c=y2e(this,tne(this,null,!0));else for(i=(Pd(),se(ie(R_,1),Je,237,0,[Nl,Aa,Ml])),s=0,a=i.length;s0?c+this.n.b+this.n.c:0},p.lf=function(){var t,i,s,a,c;if(this.g)for(t=tne(this,null,!1),s=(Pd(),se(ie(R_,1),Je,237,0,[Nl,Aa,Ml])),a=0,c=s.length;a0&&(a[0]+=this.d,s-=a[0]),a[2]>0&&(a[2]+=this.d,s-=a[2]),this.c.a=h.Math.max(0,s),this.c.d=i.d+t.d+(this.c.a-s)/2,a[1]=h.Math.max(a[1],s),w_e(this,Aa,i.d+t.d+a[0]-(a[1]-s)/2,a)},p.b=null,p.d=0,p.e=!1,p.f=!1,p.g=!1;var vse=0,$G=0;N(vw,"GridContainerCell",1538),P(471,22,{3:1,34:1,22:1,471:1},KY);var Q1,tp,ld,z6t=Wn(vw,"HorizontalLabelAlignment",471,qn,$Sn,rwn),K6t;P(314,217,{217:1,314:1},lgt,mmt,egt),p.jf=function(){return Wht(this)},p.kf=function(){return Mye(this)},p.a=0,p.c=!1;var hFn=N(vw,"LabelCell",314);P(252,336,{217:1,336:1,252:1},A6),p.jf=function(){return j6(this)},p.kf=function(){return F6(this)},p.lf=function(){Une(this)},p.mf=function(){Gne(this)},p.b=0,p.c=0,p.d=!1,N(vw,"StripContainerCell",252),P(1691,1,sr,Zc),p.Mb=function(t){return rbn(f(t,217))},N(vw,"StripContainerCell/lambda$0$Type",1691),P(1692,1,{},bu),p.Ye=function(t){return f(t,217).kf()},N(vw,"StripContainerCell/lambda$1$Type",1692),P(1693,1,sr,So),p.Mb=function(t){return ibn(f(t,217))},N(vw,"StripContainerCell/lambda$2$Type",1693),P(1694,1,{},ql),p.Ye=function(t){return f(t,217).jf()},N(vw,"StripContainerCell/lambda$3$Type",1694),P(472,22,{3:1,34:1,22:1,472:1},qY);var ad,Z1,Ld,q6t=Wn(vw,"VerticalLabelAlignment",472,qn,TSn,iwn),X6t;P(800,1,{},j3e),p.c=0,p.d=0,p.k=0,p.s=0,p.t=0,p.v=!1,p.w=0,p.D=!1,p.F=!1,N(wU,"NodeContext",800),P(1536,1,cr,S),p.Ne=function(t,i){return Zut(f(t,64),f(i,64))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(wU,"NodeContext/0methodref$comparePortSides$Type",1536),P(1537,1,cr,x),p.Ne=function(t,i){return O6n(f(t,117),f(i,117))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(wU,"NodeContext/1methodref$comparePortContexts$Type",1537),P(164,22,{3:1,34:1,22:1,164:1},Ju);var J6t,Y6t,Q6t,Z6t,eIt,tIt,nIt,rIt,iIt,oIt,sIt,lIt,aIt,cIt,uIt,fIt,dIt,hIt,pIt,bIt,gIt,_se,wIt=Wn(wU,"NodeLabelLocation",164,qn,Pte,own),mIt;P(117,1,{117:1},skt),p.a=!1,N(wU,"PortContext",117),P(1541,1,Rn,Y),p.Cd=function(t){mat(f(t,314))},N(gM,dAt,1541),P(1542,1,sr,J),p.Mb=function(t){return!!f(t,117).c},N(gM,hAt,1542),P(1543,1,Rn,ue),p.Cd=function(t){mat(f(t,117).c)},N(gM,"LabelPlacer/lambda$2$Type",1543);var j4e;P(1540,1,Rn,Yt),p.Cd=function(t){Mv(),Dpn(f(t,117))},N(gM,"NodeLabelAndSizeUtilities/lambda$0$Type",1540),P(801,1,Rn,pye),p.Cd=function(t){Jbn(this.b,this.c,this.a,f(t,187))},p.a=!1,p.c=!1,N(gM,"NodeLabelCellCreator/lambda$0$Type",801),P(1539,1,Rn,Irt),p.Cd=function(t){Fpn(this.a,f(t,187))},N(gM,"PortContextCreator/lambda$0$Type",1539);var IG;P(1902,1,{},An),N(IA,"GreedyRectangleStripOverlapRemover",1902),P(1903,1,cr,Ws),p.Ne=function(t,i){return A1n(f(t,226),f(i,226))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(IA,"GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type",1903),P(1849,1,{},Wst),p.a=5,p.e=0,N(IA,"RectangleStripOverlapRemover",1849),P(1850,1,cr,Fr),p.Ne=function(t,i){return T1n(f(t,226),f(i,226))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(IA,"RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type",1850),P(1852,1,cr,Hl),p.Ne=function(t,i){return mvn(f(t,226),f(i,226))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(IA,"RectangleStripOverlapRemover/1methodref$compareRightRectangleBorders$Type",1852),P(417,22,{3:1,34:1,22:1,417:1},RF);var HM,Sse,Ese,UM,yIt=Wn(IA,"RectangleStripOverlapRemover/OverlapRemovalDirection",417,qn,G2n,swn),vIt;P(226,1,{226:1},cZ),N(IA,"RectangleStripOverlapRemover/RectangleNode",226),P(1851,1,Rn,Prt),p.Cd=function(t){oTn(this.a,f(t,226))},N(IA,"RectangleStripOverlapRemover/lambda$1$Type",1851),P(1323,1,cr,Ec),p.Ne=function(t,i){return k9n(f(t,176),f(i,176))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(qh,"PolyominoCompactor/CornerCasesGreaterThanRestComparator",1323),P(1326,1,{},Rs),p.Kb=function(t){return f(t,334).a},N(qh,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$0$Type",1326),P(1327,1,sr,ml),p.Mb=function(t){return f(t,332).a},N(qh,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$1$Type",1327),P(1328,1,sr,gs),p.Mb=function(t){return f(t,332).a},N(qh,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$2$Type",1328),P(1321,1,cr,as),p.Ne=function(t,i){return tNn(f(t,176),f(i,176))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(qh,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator",1321),P(1324,1,{},ws),p.Kb=function(t){return f(t,334).a},N(qh,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator/lambda$0$Type",1324),P(781,1,cr,wi),p.Ne=function(t,i){return LRn(f(t,176),f(i,176))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(qh,"PolyominoCompactor/MinNumOfExtensionsComparator",781),P(1319,1,cr,jr),p.Ne=function(t,i){return V3n(f(t,330),f(i,330))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(qh,"PolyominoCompactor/MinPerimeterComparator",1319),P(1320,1,cr,lr),p.Ne=function(t,i){return T4n(f(t,330),f(i,330))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(qh,"PolyominoCompactor/MinPerimeterComparatorWithShape",1320),P(1322,1,cr,TO),p.Ne=function(t,i){return _Nn(f(t,176),f(i,176))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(qh,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator",1322),P(1325,1,{},VJ),p.Kb=function(t){return f(t,334).a},N(qh,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator/lambda$0$Type",1325),P(782,1,{},Rwe),p.Ve=function(t,i){return D2n(this,f(t,42),f(i,176))},N(qh,"SuccessorCombination",782),P(649,1,{},XT),p.Ve=function(t,i){var s;return Q5n((s=f(t,42),f(i,176),s))},N(qh,"SuccessorJitter",649),P(648,1,{},$O),p.Ve=function(t,i){var s;return jOn((s=f(t,42),f(i,176),s))},N(qh,"SuccessorLineByLine",648),P(573,1,{},JT),p.Ve=function(t,i){var s;return Q8n((s=f(t,42),f(i,176),s))},N(qh,"SuccessorManhattan",573),P(1344,1,{},Lj),p.Ve=function(t,i){var s;return aOn((s=f(t,42),f(i,176),s))},N(qh,"SuccessorMaxNormWindingInMathPosSense",1344),P(409,1,{},Wx),p.Ve=function(t,i){return ove(this,t,i)},p.c=!1,p.d=!1,p.e=!1,p.f=!1,N(qh,"SuccessorQuadrantsGeneric",409),P(1345,1,{},We),p.Kb=function(t){return f(t,334).a},N(qh,"SuccessorQuadrantsGeneric/lambda$0$Type",1345),P(332,22,{3:1,34:1,22:1,332:1},xF),p.a=!1;var GM,VM,zM,KM,_It=Wn(yU,mRe,332,qn,H2n,lwn),SIt;P(1317,1,{}),p.Ib=function(){var t,i,s,a,c,b;for(s=" ",t=ot(0),c=0;c=0?"b"+t+"["+ree(this.a)+"]":"b["+ree(this.a)+"]"):"b_"+Cm(this)},N(mM,"FBendpoint",250),P(290,137,{3:1,290:1,96:1,137:1},Ldt),p.Ib=function(){return ree(this)},N(mM,"FEdge",290),P(235,137,{3:1,235:1,96:1,137:1},cW);var bFn=N(mM,"FGraph",235);P(454,309,{3:1,454:1,309:1,96:1,137:1},F1t),p.Ib=function(){return this.b==null||this.b.length==0?"l["+ree(this.a)+"]":"l_"+this.b},N(mM,"FLabel",454),P(153,309,{3:1,153:1,309:1,96:1,137:1},wft),p.Ib=function(){return zve(this)},p.a=0,N(mM,"FNode",153),P(2100,1,{}),p.vf=function(t){g3e(this,t)},p.wf=function(){BSt(this)},p.d=0,N(CRe,"AbstractForceModel",2100),P(641,2100,{641:1},Lyt),p.uf=function(t,i){var s,a,c,b,g;return hxt(this.f,t,i),c=uo(Ho(i.d),t.d),g=h.Math.sqrt(c.a*c.a+c.b*c.b),a=h.Math.max(0,g-Y$(t.e)/2-Y$(i.e)/2),s=XEt(this.e,t,i),s>0?b=-bvn(a,this.c)*s:b=G1n(a,this.b)*f(V(t,(od(),K3)),17).a,Nh(c,b/g),c},p.vf=function(t){g3e(this,t),this.a=f(V(t,(od(),LG)),17).a,this.c=Ae(je(V(t,jG))),this.b=Ae(je(V(t,$se)))},p.xf=function(t){return t0&&(b-=Zpn(a,this.a)*s),Nh(c,b*this.b/g),c},p.vf=function(t){var i,s,a,c,b,g,m;for(g3e(this,t),this.b=Ae(je(V(t,(od(),Ise)))),this.c=this.b/f(V(t,LG),17).a,a=t.e.c.length,b=0,c=0,m=new ee(t.e);m.a0},p.a=0,p.b=0,p.c=0,N(CRe,"FruchtermanReingoldModel",642),P(860,1,Ef,Ptt),p.hf=function(t){Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,SU),""),"Force Model"),"Determines the model for force calculation."),K4e),(Cg(),pi)),q4e),Mt((Nd(),nn))))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,ARe),""),"Iterations"),"The number of iterations on the force model."),ot(300)),bl),Ko),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,TRe),""),"Repulsive Power"),"Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model"),ot(0)),bl),Ko),Mt(op)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,cie),""),"FR Temperature"),"The temperature is used as a scaling factor for particle displacements."),Xh),es),Qi),Mt(nn)))),qi(t,cie,SU,HIt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,uie),""),"Eades Repulsion"),"Factor for repulsive forces in Eades' model."),5),es),Qi),Mt(nn)))),qi(t,uie,SU,FIt),tCt((new Ott,t))};var DIt,LIt,K4e,jIt,FIt,BIt,WIt,HIt;N(aI,"ForceMetaDataProvider",860),P(432,22,{3:1,34:1,22:1,432:1},Cwe);var Tse,DG,q4e=Wn(aI,"ForceModelStrategy",432,qn,D_n,uwn),UIt;P(Tg,1,Ef,Ott),p.hf=function(t){tCt(t)};var GIt,VIt,X4e,LG,J4e,zIt,KIt,qIt,XIt,Y4e,JIt,Q4e,Z4e,YIt,K3,QIt,$se,eTe,ZIt,e5t,jG,Ise,t5t,n5t,r5t,tTe,i5t;N(aI,"ForceOptions",Tg),P(1001,1,{},VVe),p.sf=function(){var t;return t=new C0e,t},p.tf=function(t){},N(aI,"ForceOptions/ForceFactory",1001);var JM,FI,q3,FG;P(861,1,Ef,Ntt),p.hf=function(t){Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,IRe),""),"Fixed Position"),"Prevent that the node is moved by the layout algorithm."),(cn(),!1)),(Cg(),po)),Li),Mt((Nd(),lo))))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,PRe),""),"Desired Edge Length"),"Either specified for parent nodes or for individual edges, where the latter takes higher precedence."),100),es),Qi),ii(nn,se(ie(Mp,1),Je,170,0,[op]))))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,ORe),""),"Layout Dimension"),"Dimensions that are permitted to be altered during layout."),nTe),pi),cTe),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,NRe),""),"Stress Epsilon"),"Termination criterion for the iterative process."),Xh),es),Qi),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,MRe),""),"Iteration Limit"),"Maximum number of performed iterations. Takes higher precedence than 'epsilon'."),ot(Nr)),bl),Ko),Mt(nn)))),Txt((new Mtt,t))};var o5t,s5t,nTe,l5t,a5t,c5t;N(aI,"StressMetaDataProvider",861),P(1004,1,Ef,Mtt),p.hf=function(t){Txt(t)};var BG,rTe,iTe,oTe,sTe,lTe,u5t,f5t,d5t,h5t,aTe,p5t;N(aI,"StressOptions",1004),P(1005,1,{},UVe),p.sf=function(){var t;return t=new jdt,t},p.tf=function(t){},N(aI,"StressOptions/StressFactory",1005),P(1110,205,_w,jdt),p.rf=function(t,i){var s,a,c,b,g;for(i.Ug(xAt,1),wt(gt(Qe(t,(IN(),sTe))))?wt(gt(Qe(t,aTe)))||N7((s=new QT((_m(),new hm(t))),s)):zkt(new C0e,t,i.eh(1)),c=lvt(t),a=jRt(this.a,c),g=a.Kc();g.Ob();)b=f(g.Pb(),235),!(b.e.c.length<=1)&&(_9n(this.b,b),K8n(this.b),Ma(b.d,new GVe));c=Qxt(a),aCt(c),i.Vg()},N(RU,"StressLayoutProvider",1110),P(1111,1,Rn,GVe),p.Cd=function(t){k3e(f(t,454))},N(RU,"StressLayoutProvider/lambda$0$Type",1111),P(1002,1,{},Dst),p.c=0,p.e=0,p.g=0,N(RU,"StressMajorization",1002),P(391,22,{3:1,34:1,22:1,391:1},XY);var Pse,Ose,Nse,cTe=Wn(RU,"StressMajorization/Dimension",391,qn,PSn,fwn),b5t;P(1003,1,cr,Drt),p.Ne=function(t,i){return F0n(this.a,f(t,153),f(i,153))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(RU,"StressMajorization/lambda$0$Type",1003),P(1192,1,{},Ggt),N(W3,"ElkLayered",1192),P(1193,1,Rn,Lrt),p.Cd=function(t){S5n(this.a,f(t,36))},N(W3,"ElkLayered/lambda$0$Type",1193),P(1194,1,Rn,jrt),p.Cd=function(t){B0n(this.a,f(t,36))},N(W3,"ElkLayered/lambda$1$Type",1194),P(1281,1,{},Cft);var g5t,w5t,m5t;N(W3,"GraphConfigurator",1281),P(770,1,Rn,f0e),p.Cd=function(t){Z2t(this.a,f(t,10))},N(W3,"GraphConfigurator/lambda$0$Type",770),P(771,1,{},S1e),p.Kb=function(t){return hEe(),new Wt(null,new Vt(f(t,30).a,16))},N(W3,"GraphConfigurator/lambda$1$Type",771),P(772,1,Rn,d0e),p.Cd=function(t){Z2t(this.a,f(t,10))},N(W3,"GraphConfigurator/lambda$2$Type",772),P(1109,205,_w,Hst),p.rf=function(t,i){var s;s=n9n(new Gst,t),Ne(Qe(t,(pt(),M_)))===Ne((vb(),Wg))?NCn(this.a,s,i):U8n(this.a,s,i),i.$g()||Vxt(new Dtt,s)},N(W3,"LayeredLayoutProvider",1109),P(367,22,{3:1,34:1,22:1,367:1},qO);var cd,Pp,sa,ga,ll,uTe=Wn(W3,"LayeredPhases",367,qn,DEn,dwn),y5t;P(1717,1,{},tyt),p.i=0;var v5t;N(kM,"ComponentsToCGraphTransformer",1717);var _5t;P(1718,1,{},HVe),p.yf=function(t,i){return h.Math.min(t.a!=null?Ae(t.a):t.c.i,i.a!=null?Ae(i.a):i.c.i)},p.zf=function(t,i){return h.Math.min(t.a!=null?Ae(t.a):t.c.i,i.a!=null?Ae(i.a):i.c.i)},N(kM,"ComponentsToCGraphTransformer/1",1718),P(86,1,{86:1}),p.i=0,p.k=!0,p.o=to;var Mse=N(dI,"CNode",86);P(470,86,{470:1,86:1},Ime,W2e),p.Ib=function(){return""},N(kM,"ComponentsToCGraphTransformer/CRectNode",470),P(1688,1,{},zVe);var Dse,Lse;N(kM,"OneDimensionalComponentsCompaction",1688),P(1689,1,{},KVe),p.Kb=function(t){return ESn(f(t,42))},p.Fb=function(t){return this===t},N(kM,"OneDimensionalComponentsCompaction/lambda$0$Type",1689),P(1690,1,{},qVe),p.Kb=function(t){return DCn(f(t,42))},p.Fb=function(t){return this===t},N(kM,"OneDimensionalComponentsCompaction/lambda$1$Type",1690),P(1720,1,{},Ypt),N(dI,"CGraph",1720),P(194,1,{194:1},Tte),p.b=0,p.c=0,p.e=0,p.g=!0,p.i=to,N(dI,"CGroup",194),P(1719,1,{},XVe),p.yf=function(t,i){return h.Math.max(t.a!=null?Ae(t.a):t.c.i,i.a!=null?Ae(i.a):i.c.i)},p.zf=function(t,i){return h.Math.max(t.a!=null?Ae(t.a):t.c.i,i.a!=null?Ae(i.a):i.c.i)},N(dI,ZCt,1719),P(1721,1,{},YEt),p.d=!1;var S5t,jse=N(dI,nAt,1721);P(1722,1,{},JVe),p.Kb=function(t){return pwe(),cn(),f(f(t,42).a,86).d.e!=0},p.Fb=function(t){return this===t},N(dI,rAt,1722),P(833,1,{},Hye),p.a=!1,p.b=!1,p.c=!1,p.d=!1,N(dI,iAt,833),P(1898,1,{},hpt),N(xU,oAt,1898);var YM=Ei(Ew,YCt);P(1899,1,{382:1},Kbt),p.bf=function(t){YOn(this,f(t,476))},N(xU,sAt,1899),P(V1,1,cr,YVe),p.Ne=function(t,i){return s_n(f(t,86),f(i,86))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(xU,lAt,V1),P(476,1,{476:1},Twe),p.a=!1,N(xU,aAt,476),P(1901,1,cr,QVe),p.Ne=function(t,i){return l$n(f(t,476),f(i,476))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(xU,cAt,1901),P(148,1,{148:1},eC,Rye),p.Fb=function(t){var i;return t==null||gFn!=ou(t)?!1:(i=f(t,148),Ul(this.c,i.c)&&Ul(this.d,i.d))},p.Hb=function(){return wN(se(ie(ho,1),on,1,5,[this.c,this.d]))},p.Ib=function(){return"("+this.c+ds+this.d+(this.a?"cx":"")+this.b+")"},p.a=!0,p.c=0,p.d=0;var gFn=N(Ew,"Point",148);P(416,22,{3:1,34:1,22:1,416:1},AF);var vy,x_,L2,C_,E5t=Wn(Ew,"Point/Quadrant",416,qn,V2n,hwn),k5t;P(1708,1,{},Bst),p.b=null,p.c=null,p.d=null,p.e=null,p.f=null;var R5t,x5t,C5t,A5t,T5t;N(Ew,"RectilinearConvexHull",1708),P(583,1,{382:1},mH),p.bf=function(t){Mkn(this,f(t,148))},p.b=0;var fTe;N(Ew,"RectilinearConvexHull/MaximalElementsEventHandler",583),P(1710,1,cr,ZVe),p.Ne=function(t,i){return l_n(je(t),je(i))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(Ew,"RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type",1710),P(1709,1,{382:1},wmt),p.bf=function(t){dOn(this,f(t,148))},p.a=0,p.b=null,p.c=null,p.d=null,p.e=null,N(Ew,"RectilinearConvexHull/RectangleEventHandler",1709),P(1711,1,cr,eze),p.Ne=function(t,i){return b2n(f(t,148),f(i,148))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(Ew,"RectilinearConvexHull/lambda$0$Type",1711),P(1712,1,cr,rze),p.Ne=function(t,i){return g2n(f(t,148),f(i,148))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(Ew,"RectilinearConvexHull/lambda$1$Type",1712),P(1713,1,cr,ize),p.Ne=function(t,i){return p2n(f(t,148),f(i,148))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(Ew,"RectilinearConvexHull/lambda$2$Type",1713),P(1714,1,cr,nze),p.Ne=function(t,i){return w2n(f(t,148),f(i,148))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(Ew,"RectilinearConvexHull/lambda$3$Type",1714),P(1715,1,cr,oze),p.Ne=function(t,i){return q6n(f(t,148),f(i,148))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(Ew,"RectilinearConvexHull/lambda$4$Type",1715),P(1716,1,{},Sgt),N(Ew,"Scanline",1716),P(2104,1,{}),N(ch,"AbstractGraphPlacer",2104),P(335,1,{335:1},cdt),p.Ff=function(t){return this.Gf(t)?(Gt(this.b,f(V(t,(nt(),Pb)),21),t),!0):!1},p.Gf=function(t){var i,s,a,c;for(i=f(V(t,(nt(),Pb)),21),c=f(Hr(Zr,i),21),a=c.Kc();a.Ob();)if(s=f(a.Pb(),21),!f(Hr(this.b,s),15).dc())return!1;return!0};var Zr;N(ch,"ComponentGroup",335),P(779,2104,{},$0e),p.Hf=function(t){var i,s;for(s=new ee(this.a);s.as&&(I=0,D+=m+a,m=0),_=b.c,bA(b,I+_.a,D+_.b),xd(_),c=h.Math.max(c,I+k.a),m=h.Math.max(m,k.b),I+=k.a+a;i.f.a=c,i.f.b=D+m},p.Jf=function(t,i){var s,a,c,b,g;if(Ne(V(i,(pt(),N_)))===Ne((hw(),A_))){for(a=t.Kc();a.Ob();){for(s=f(a.Pb(),36),g=0,b=new ee(s.a);b.as&&!f(V(b,(nt(),Pb)),21).Hc((ft(),bn))||_&&f(V(_,(nt(),Pb)),21).Hc((ft(),_n))||f(V(b,(nt(),Pb)),21).Hc((ft(),wn)))&&(W=D,U+=m+a,m=0),k=b.c,f(V(b,(nt(),Pb)),21).Hc((ft(),bn))&&(W=c+a),bA(b,W+k.a,U+k.b),c=h.Math.max(c,W+I.a),f(V(b,Pb),21).Hc(jn)&&(D=h.Math.max(D,W+I.a+a)),xd(k),m=h.Math.max(m,I.b),W+=I.a+a,_=b;i.f.a=c,i.f.b=U+m},p.Jf=function(t,i){},N(ch,"ModelOrderRowGraphPlacer",1313),P(1311,1,cr,aze),p.Ne=function(t,i){return NRn(f(t,36),f(i,36))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(ch,"SimpleRowGraphPlacer/1",1311);var I5t;P(1280,1,Kh,cze),p.Lb=function(t){var i;return i=f(V(f(t,249).b,(pt(),Xs)),75),!!i&&i.b!=0},p.Fb=function(t){return this===t},p.Mb=function(t){var i;return i=f(V(f(t,249).b,(pt(),Xs)),75),!!i&&i.b!=0},N(CU,"CompoundGraphPostprocessor/1",1280),P(1279,1,ni,Vst),p.Kf=function(t,i){vSt(this,f(t,36),i)},N(CU,"CompoundGraphPreprocessor",1279),P(453,1,{453:1},u_t),p.c=!1,N(CU,"CompoundGraphPreprocessor/ExternalPort",453),P(249,1,{249:1},cB),p.Ib=function(){return jQ(this.c)+":"+VEt(this.b)},N(CU,"CrossHierarchyEdge",249),P(777,1,cr,h0e),p.Ne=function(t,i){return MTn(this,f(t,249),f(i,249))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(CU,"CrossHierarchyEdgeComparator",777),P(305,137,{3:1,305:1,96:1,137:1}),p.p=0,N(pa,"LGraphElement",305),P(18,305,{3:1,18:1,305:1,96:1,137:1},Fm),p.Ib=function(){return VEt(this)};var Wse=N(pa,"LEdge",18);P(36,305,{3:1,20:1,36:1,305:1,96:1,137:1},rSe),p.Jc=function(t){Vo(this,t)},p.Kc=function(){return new ee(this.b)},p.Ib=function(){return this.b.c.length==0?"G-unlayered"+B1(this.a):this.a.c.length==0?"G-layered"+B1(this.b):"G[layerless"+B1(this.a)+", layers"+B1(this.b)+"]"};var P5t=N(pa,"LGraph",36),O5t;P(666,1,{}),p.Lf=function(){return this.e.n},p.of=function(t){return V(this.e,t)},p.Mf=function(){return this.e.o},p.Nf=function(){return this.e.p},p.pf=function(t){return ri(this.e,t)},p.Of=function(t){this.e.n.a=t.a,this.e.n.b=t.b},p.Pf=function(t){this.e.o.a=t.a,this.e.o.b=t.b},p.Qf=function(t){this.e.p=t},N(pa,"LGraphAdapters/AbstractLShapeAdapter",666),P(474,1,{853:1},ZT),p.Rf=function(){var t,i;if(!this.b)for(this.b=pp(this.a.b.c.length),i=new ee(this.a.b);i.a0&&Wvt((pn(i-1,t.length),t.charCodeAt(i-1)),PAt);)--i;if(b> ",t),AH(s)),br(aa((t.a+="[",t),s.i),"]")),t.a},p.c=!0,p.d=!1;var gTe,wTe,mTe,yTe,vTe,_Te,M5t=N(pa,"LPort",12);P(408,1,Rp,Hx),p.Jc=function(t){Vo(this,t)},p.Kc=function(){var t;return t=new ee(this.a.e),new Frt(t)},N(pa,"LPort/1",408),P(1309,1,ko,Frt),p.Nb=function(t){Uo(this,t)},p.Pb=function(){return f(Z(this.a),18).c},p.Ob=function(){return _l(this.a)},p.Qb=function(){q$(this.a)},N(pa,"LPort/1/1",1309),P(369,1,Rp,Tk),p.Jc=function(t){Vo(this,t)},p.Kc=function(){var t;return t=new ee(this.a.g),new p0e(t)},N(pa,"LPort/2",369),P(776,1,ko,p0e),p.Nb=function(t){Uo(this,t)},p.Pb=function(){return f(Z(this.a),18).d},p.Ob=function(){return _l(this.a)},p.Qb=function(){q$(this.a)},N(pa,"LPort/2/1",776),P(1302,1,Rp,Act),p.Jc=function(t){Vo(this,t)},p.Kc=function(){return new Zd(this)},N(pa,"LPort/CombineIter",1302),P(208,1,ko,Zd),p.Nb=function(t){Uo(this,t)},p.Qb=function(){sat()},p.Ob=function(){return L$(this)},p.Pb=function(){return _l(this.a)?Z(this.a):Z(this.b)},N(pa,"LPort/CombineIter/1",208),P(1303,1,Kh,fze),p.Lb=function(t){return Cpt(t)},p.Fb=function(t){return this===t},p.Mb=function(t){return bc(),f(t,12).g.c.length!=0},N(pa,"LPort/lambda$0$Type",1303),P(1304,1,Kh,dze),p.Lb=function(t){return Apt(t)},p.Fb=function(t){return this===t},p.Mb=function(t){return bc(),f(t,12).e.c.length!=0},N(pa,"LPort/lambda$1$Type",1304),P(1305,1,Kh,hze),p.Lb=function(t){return bc(),f(t,12).j==(ft(),bn)},p.Fb=function(t){return this===t},p.Mb=function(t){return bc(),f(t,12).j==(ft(),bn)},N(pa,"LPort/lambda$2$Type",1305),P(1306,1,Kh,pze),p.Lb=function(t){return bc(),f(t,12).j==(ft(),_n)},p.Fb=function(t){return this===t},p.Mb=function(t){return bc(),f(t,12).j==(ft(),_n)},N(pa,"LPort/lambda$3$Type",1306),P(1307,1,Kh,bze),p.Lb=function(t){return bc(),f(t,12).j==(ft(),jn)},p.Fb=function(t){return this===t},p.Mb=function(t){return bc(),f(t,12).j==(ft(),jn)},N(pa,"LPort/lambda$4$Type",1307),P(1308,1,Kh,gze),p.Lb=function(t){return bc(),f(t,12).j==(ft(),wn)},p.Fb=function(t){return this===t},p.Mb=function(t){return bc(),f(t,12).j==(ft(),wn)},N(pa,"LPort/lambda$5$Type",1308),P(30,305,{3:1,20:1,305:1,30:1,96:1,137:1},ca),p.Jc=function(t){Vo(this,t)},p.Kc=function(){return new ee(this.a)},p.Ib=function(){return"L_"+il(this.b.b,this,0)+B1(this.a)},N(pa,"Layer",30),P(1330,1,{},Gst),N(Ig,DAt,1330),P(1334,1,{},wze),p.Kb=function(t){return sl(f(t,84))},N(Ig,"ElkGraphImporter/0methodref$connectableShapeToNode$Type",1334),P(1337,1,{},mze),p.Kb=function(t){return sl(f(t,84))},N(Ig,"ElkGraphImporter/1methodref$connectableShapeToNode$Type",1337),P(1331,1,Rn,Brt),p.Cd=function(t){akt(this.a,f(t,123))},N(Ig,xRe,1331),P(1332,1,Rn,Wrt),p.Cd=function(t){akt(this.a,f(t,123))},N(Ig,LAt,1332),P(1333,1,{},yze),p.Kb=function(t){return new Wt(null,new Vt(kve(f(t,74)),16))},N(Ig,jAt,1333),P(1335,1,sr,Hrt),p.Mb=function(t){return jgn(this.a,f(t,27))},N(Ig,FAt,1335),P(1336,1,{},vze),p.Kb=function(t){return new Wt(null,new Vt(t_n(f(t,74)),16))},N(Ig,"ElkGraphImporter/lambda$5$Type",1336),P(1338,1,sr,Urt),p.Mb=function(t){return Fgn(this.a,f(t,27))},N(Ig,"ElkGraphImporter/lambda$7$Type",1338),P(1339,1,sr,_ze),p.Mb=function(t){return b_n(f(t,74))},N(Ig,"ElkGraphImporter/lambda$8$Type",1339),P(1297,1,{},Dtt);var D5t;N(Ig,"ElkGraphLayoutTransferrer",1297),P(1298,1,sr,Grt),p.Mb=function(t){return C0n(this.a,f(t,18))},N(Ig,"ElkGraphLayoutTransferrer/lambda$0$Type",1298),P(1299,1,Rn,Vrt),p.Cd=function(t){zO(),lt(this.a,f(t,18))},N(Ig,"ElkGraphLayoutTransferrer/lambda$1$Type",1299),P(1300,1,sr,zrt),p.Mb=function(t){return d0n(this.a,f(t,18))},N(Ig,"ElkGraphLayoutTransferrer/lambda$2$Type",1300),P(1301,1,Rn,Krt),p.Cd=function(t){zO(),lt(this.a,f(t,18))},N(Ig,"ElkGraphLayoutTransferrer/lambda$3$Type",1301),P(819,1,{},eye),N(yn,"BiLinkedHashMultiMap",819),P(1550,1,ni,Sze),p.Kf=function(t,i){eRn(f(t,36),i)},N(yn,"CommentNodeMarginCalculator",1550),P(1551,1,{},Eze),p.Kb=function(t){return new Wt(null,new Vt(f(t,30).a,16))},N(yn,"CommentNodeMarginCalculator/lambda$0$Type",1551),P(1552,1,Rn,kze),p.Cd=function(t){e9n(f(t,10))},N(yn,"CommentNodeMarginCalculator/lambda$1$Type",1552),P(1553,1,ni,Rze),p.Kf=function(t,i){i7n(f(t,36),i)},N(yn,"CommentPostprocessor",1553),P(1554,1,ni,xze),p.Kf=function(t,i){xLn(f(t,36),i)},N(yn,"CommentPreprocessor",1554),P(1555,1,ni,Cze),p.Kf=function(t,i){_On(f(t,36),i)},N(yn,"ConstraintsPostprocessor",1555),P(1556,1,ni,Aze),p.Kf=function(t,i){ARn(f(t,36),i)},N(yn,"EdgeAndLayerConstraintEdgeReverser",1556),P(1557,1,ni,Tze),p.Kf=function(t,i){mAn(f(t,36),i)},N(yn,"EndLabelPostprocessor",1557),P(1558,1,{},$ze),p.Kb=function(t){return new Wt(null,new Vt(f(t,30).a,16))},N(yn,"EndLabelPostprocessor/lambda$0$Type",1558),P(1559,1,sr,Ize),p.Mb=function(t){return OEn(f(t,10))},N(yn,"EndLabelPostprocessor/lambda$1$Type",1559),P(1560,1,Rn,Pze),p.Cd=function(t){a$n(f(t,10))},N(yn,"EndLabelPostprocessor/lambda$2$Type",1560),P(1561,1,ni,Oze),p.Kf=function(t,i){JIn(f(t,36),i)},N(yn,"EndLabelPreprocessor",1561),P(1562,1,{},Nze),p.Kb=function(t){return new Wt(null,new Vt(f(t,30).a,16))},N(yn,"EndLabelPreprocessor/lambda$0$Type",1562),P(1563,1,Rn,bht),p.Cd=function(t){Ybn(this.a,this.b,this.c,f(t,10))},p.a=0,p.b=0,p.c=!1,N(yn,"EndLabelPreprocessor/lambda$1$Type",1563),P(1564,1,sr,Mze),p.Mb=function(t){return Ne(V(f(t,72),(pt(),rp)))===Ne((nh(),x4))},N(yn,"EndLabelPreprocessor/lambda$2$Type",1564),P(1565,1,Rn,qrt),p.Cd=function(t){hr(this.a,f(t,72))},N(yn,"EndLabelPreprocessor/lambda$3$Type",1565),P(1566,1,sr,Dze),p.Mb=function(t){return Ne(V(f(t,72),(pt(),rp)))===Ne((nh(),K_))},N(yn,"EndLabelPreprocessor/lambda$4$Type",1566),P(1567,1,Rn,Xrt),p.Cd=function(t){hr(this.a,f(t,72))},N(yn,"EndLabelPreprocessor/lambda$5$Type",1567),P(1615,1,ni,Att),p.Kf=function(t,i){wCn(f(t,36),i)};var L5t;N(yn,"EndLabelSorter",1615),P(1616,1,cr,Lze),p.Ne=function(t,i){return JAn(f(t,466),f(i,466))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(yn,"EndLabelSorter/1",1616),P(466,1,{466:1},Wbt),N(yn,"EndLabelSorter/LabelGroup",466),P(1617,1,{},jze),p.Kb=function(t){return VO(),new Wt(null,new Vt(f(t,30).a,16))},N(yn,"EndLabelSorter/lambda$0$Type",1617),P(1618,1,sr,Fze),p.Mb=function(t){return VO(),f(t,10).k==(gn(),ji)},N(yn,"EndLabelSorter/lambda$1$Type",1618),P(1619,1,Rn,Bze),p.Cd=function(t){uIn(f(t,10))},N(yn,"EndLabelSorter/lambda$2$Type",1619),P(1620,1,sr,Wze),p.Mb=function(t){return VO(),Ne(V(f(t,72),(pt(),rp)))===Ne((nh(),K_))},N(yn,"EndLabelSorter/lambda$3$Type",1620),P(1621,1,sr,Hze),p.Mb=function(t){return VO(),Ne(V(f(t,72),(pt(),rp)))===Ne((nh(),x4))},N(yn,"EndLabelSorter/lambda$4$Type",1621),P(1568,1,ni,Uze),p.Kf=function(t,i){p9n(this,f(t,36))},p.b=0,p.c=0,N(yn,"FinalSplineBendpointsCalculator",1568),P(1569,1,{},Gze),p.Kb=function(t){return new Wt(null,new Vt(f(t,30).a,16))},N(yn,"FinalSplineBendpointsCalculator/lambda$0$Type",1569),P(1570,1,{},Vze),p.Kb=function(t){return new Wt(null,new Om(new kn(xn(Wi(f(t,10)).a.Kc(),new O))))},N(yn,"FinalSplineBendpointsCalculator/lambda$1$Type",1570),P(1571,1,sr,zze),p.Mb=function(t){return!ms(f(t,18))},N(yn,"FinalSplineBendpointsCalculator/lambda$2$Type",1571),P(1572,1,sr,Kze),p.Mb=function(t){return ri(f(t,18),(nt(),Pw))},N(yn,"FinalSplineBendpointsCalculator/lambda$3$Type",1572),P(1573,1,Rn,Jrt),p.Cd=function(t){ENn(this.a,f(t,131))},N(yn,"FinalSplineBendpointsCalculator/lambda$4$Type",1573),P(1574,1,Rn,qze),p.Cd=function(t){FN(f(t,18).a)},N(yn,"FinalSplineBendpointsCalculator/lambda$5$Type",1574),P(803,1,ni,b0e),p.Kf=function(t,i){aDn(this,f(t,36),i)},N(yn,"GraphTransformer",803),P(517,22,{3:1,34:1,22:1,517:1},Awe);var Use,QM,j5t=Wn(yn,"GraphTransformer/Mode",517,qn,L_n,mmn),F5t;P(1575,1,ni,Xze),p.Kf=function(t,i){$Pn(f(t,36),i)},N(yn,"HierarchicalNodeResizingProcessor",1575),P(1576,1,ni,Jze),p.Kf=function(t,i){X3n(f(t,36),i)},N(yn,"HierarchicalPortConstraintProcessor",1576),P(1577,1,cr,Yze),p.Ne=function(t,i){return w4n(f(t,10),f(i,10))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(yn,"HierarchicalPortConstraintProcessor/NodeComparator",1577),P(1578,1,ni,Qze),p.Kf=function(t,i){mMn(f(t,36),i)},N(yn,"HierarchicalPortDummySizeProcessor",1578),P(1579,1,ni,Zze),p.Kf=function(t,i){A7n(this,f(t,36),i)},p.a=0,N(yn,"HierarchicalPortOrthogonalEdgeRouter",1579),P(1580,1,cr,eKe),p.Ne=function(t,i){return $1n(f(t,10),f(i,10))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(yn,"HierarchicalPortOrthogonalEdgeRouter/1",1580),P(1581,1,cr,tKe),p.Ne=function(t,i){return Dkn(f(t,10),f(i,10))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(yn,"HierarchicalPortOrthogonalEdgeRouter/2",1581),P(1582,1,ni,nKe),p.Kf=function(t,i){V6n(f(t,36),i)},N(yn,"HierarchicalPortPositionProcessor",1582),P(1583,1,ni,Ltt),p.Kf=function(t,i){ljn(this,f(t,36))},p.a=0,p.c=0;var WG,HG;N(yn,"HighDegreeNodeLayeringProcessor",1583),P(580,1,{580:1},rKe),p.b=-1,p.d=-1,N(yn,"HighDegreeNodeLayeringProcessor/HighDegreeNodeInformation",580),P(1584,1,{},iKe),p.Kb=function(t){return v7(),go(f(t,10))},p.Fb=function(t){return this===t},N(yn,"HighDegreeNodeLayeringProcessor/lambda$0$Type",1584),P(1585,1,{},oKe),p.Kb=function(t){return v7(),Wi(f(t,10))},p.Fb=function(t){return this===t},N(yn,"HighDegreeNodeLayeringProcessor/lambda$1$Type",1585),P(1591,1,ni,sKe),p.Kf=function(t,i){uMn(this,f(t,36),i)},N(yn,"HyperedgeDummyMerger",1591),P(804,1,{},bye),p.a=!1,p.b=!1,p.c=!1,N(yn,"HyperedgeDummyMerger/MergeState",804),P(1592,1,{},lKe),p.Kb=function(t){return new Wt(null,new Vt(f(t,30).a,16))},N(yn,"HyperedgeDummyMerger/lambda$0$Type",1592),P(1593,1,{},aKe),p.Kb=function(t){return new Wt(null,new Vt(f(t,10).j,16))},N(yn,"HyperedgeDummyMerger/lambda$1$Type",1593),P(1594,1,Rn,cKe),p.Cd=function(t){f(t,12).p=-1},N(yn,"HyperedgeDummyMerger/lambda$2$Type",1594),P(1595,1,ni,uKe),p.Kf=function(t,i){aMn(f(t,36),i)},N(yn,"HypernodesProcessor",1595),P(1596,1,ni,fKe),p.Kf=function(t,i){wMn(f(t,36),i)},N(yn,"InLayerConstraintProcessor",1596),P(1597,1,ni,dKe),p.Kf=function(t,i){uRn(f(t,36),i)},N(yn,"InnermostNodeMarginCalculator",1597),P(1598,1,ni,hKe),p.Kf=function(t,i){SLn(this,f(t,36))},p.a=to,p.b=to,p.c=hi,p.d=hi;var wFn=N(yn,"InteractiveExternalPortPositioner",1598);P(1599,1,{},pKe),p.Kb=function(t){return f(t,18).d.i},p.Fb=function(t){return this===t},N(yn,"InteractiveExternalPortPositioner/lambda$0$Type",1599),P(1600,1,{},Yrt),p.Kb=function(t){return I1n(this.a,je(t))},p.Fb=function(t){return this===t},N(yn,"InteractiveExternalPortPositioner/lambda$1$Type",1600),P(1601,1,{},bKe),p.Kb=function(t){return f(t,18).c.i},p.Fb=function(t){return this===t},N(yn,"InteractiveExternalPortPositioner/lambda$2$Type",1601),P(1602,1,{},Qrt),p.Kb=function(t){return P1n(this.a,je(t))},p.Fb=function(t){return this===t},N(yn,"InteractiveExternalPortPositioner/lambda$3$Type",1602),P(1603,1,{},Zrt),p.Kb=function(t){return T0n(this.a,je(t))},p.Fb=function(t){return this===t},N(yn,"InteractiveExternalPortPositioner/lambda$4$Type",1603),P(1604,1,{},eit),p.Kb=function(t){return $0n(this.a,je(t))},p.Fb=function(t){return this===t},N(yn,"InteractiveExternalPortPositioner/lambda$5$Type",1604),P(81,22,{3:1,34:1,22:1,81:1,196:1},Vi),p.dg=function(){switch(this.g){case 15:return new PXe;case 22:return new OXe;case 47:return new DXe;case 28:case 35:return new xKe;case 32:return new Sze;case 42:return new Rze;case 1:return new xze;case 41:return new Cze;case 56:return new b0e((MC(),QM));case 0:return new b0e((MC(),Use));case 2:return new Aze;case 54:return new Tze;case 33:return new Oze;case 51:return new Uze;case 55:return new Xze;case 13:return new Jze;case 38:return new Qze;case 44:return new Zze;case 40:return new nKe;case 9:return new Ltt;case 49:return new edt;case 37:return new sKe;case 43:return new uKe;case 27:return new fKe;case 30:return new dKe;case 3:return new hKe;case 18:return new wKe;case 29:return new mKe;case 5:return new jtt;case 50:return new gKe;case 34:return new Ftt;case 36:return new CKe;case 52:return new Att;case 11:return new AKe;case 7:return new Btt;case 39:return new TKe;case 45:return new $Ke;case 16:return new IKe;case 10:return new zct;case 48:return new MKe;case 21:return new DKe;case 23:return new xY((Km(),s5));case 8:return new jKe;case 12:return new BKe;case 4:return new WKe;case 19:return new ztt;case 17:return new YKe;case 53:return new QKe;case 6:return new uqe;case 25:return new Kst;case 46:return new rqe;case 31:return new Hdt;case 14:return new mqe;case 26:return new FXe;case 20:return new Eqe;case 24:return new xY((Km(),zV));default:throw ne(new hn(bie+(this.f!=null?this.f:""+this.g)))}};var STe,ETe,kTe,RTe,xTe,CTe,ATe,TTe,$Te,ITe,j2,UG,GG,PTe,OTe,NTe,MTe,DTe,LTe,jTe,BI,FTe,BTe,WTe,HTe,UTe,Gse,VG,zG,GTe,KG,qG,XG,YA,T_,$_,VTe,JG,YG,zTe,QG,ZG,KTe,qTe,XTe,JTe,eV,Vse,ZM,tV,nV,rV,iV,YTe,QTe,ZTe,e$e,mFn=Wn(yn,gie,81,qn,t3t,wwn),B5t;P(1605,1,ni,wKe),p.Kf=function(t,i){vLn(f(t,36),i)},N(yn,"InvertedPortProcessor",1605),P(1606,1,ni,mKe),p.Kf=function(t,i){bNn(f(t,36),i)},N(yn,"LabelAndNodeSizeProcessor",1606),P(1607,1,sr,yKe),p.Mb=function(t){return f(t,10).k==(gn(),ji)},N(yn,"LabelAndNodeSizeProcessor/lambda$0$Type",1607),P(1608,1,sr,vKe),p.Mb=function(t){return f(t,10).k==(gn(),Ui)},N(yn,"LabelAndNodeSizeProcessor/lambda$1$Type",1608),P(1609,1,Rn,ght),p.Cd=function(t){Qbn(this.b,this.a,this.c,f(t,10))},p.a=!1,p.c=!1,N(yn,"LabelAndNodeSizeProcessor/lambda$2$Type",1609),P(1610,1,ni,jtt),p.Kf=function(t,i){zDn(f(t,36),i)};var W5t;N(yn,"LabelDummyInserter",1610),P(1611,1,Kh,_Ke),p.Lb=function(t){return Ne(V(f(t,72),(pt(),rp)))===Ne((nh(),R4))},p.Fb=function(t){return this===t},p.Mb=function(t){return Ne(V(f(t,72),(pt(),rp)))===Ne((nh(),R4))},N(yn,"LabelDummyInserter/1",1611),P(1612,1,ni,gKe),p.Kf=function(t,i){NDn(f(t,36),i)},N(yn,"LabelDummyRemover",1612),P(1613,1,sr,SKe),p.Mb=function(t){return wt(gt(V(f(t,72),(pt(),Ole))))},N(yn,"LabelDummyRemover/lambda$0$Type",1613),P(1378,1,ni,Ftt),p.Kf=function(t,i){xDn(this,f(t,36),i)},p.a=null;var zse;N(yn,"LabelDummySwitcher",1378),P(293,1,{293:1},eRt),p.c=0,p.d=null,p.f=0,N(yn,"LabelDummySwitcher/LabelDummyInfo",293),P(1379,1,{},EKe),p.Kb=function(t){return b3(),new Wt(null,new Vt(f(t,30).a,16))},N(yn,"LabelDummySwitcher/lambda$0$Type",1379),P(1380,1,sr,kKe),p.Mb=function(t){return b3(),f(t,10).k==(gn(),ea)},N(yn,"LabelDummySwitcher/lambda$1$Type",1380),P(1381,1,{},tit),p.Kb=function(t){return h0n(this.a,f(t,10))},N(yn,"LabelDummySwitcher/lambda$2$Type",1381),P(1382,1,Rn,nit),p.Cd=function(t){Ovn(this.a,f(t,293))},N(yn,"LabelDummySwitcher/lambda$3$Type",1382),P(1383,1,cr,RKe),p.Ne=function(t,i){return rvn(f(t,293),f(i,293))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(yn,"LabelDummySwitcher/lambda$4$Type",1383),P(802,1,ni,xKe),p.Kf=function(t,i){bkn(f(t,36),i)},N(yn,"LabelManagementProcessor",802),P(1614,1,ni,CKe),p.Kf=function(t,i){zOn(f(t,36),i)},N(yn,"LabelSideSelector",1614),P(1622,1,ni,AKe),p.Kf=function(t,i){OMn(f(t,36),i)},N(yn,"LayerConstraintPostprocessor",1622),P(1623,1,ni,Btt),p.Kf=function(t,i){A8n(f(t,36),i)};var t$e;N(yn,"LayerConstraintPreprocessor",1623),P(371,22,{3:1,34:1,22:1,371:1},$F);var e9,oV,sV,Kse,H5t=Wn(yn,"LayerConstraintPreprocessor/HiddenNodeConnections",371,qn,K2n,mwn),U5t;P(1624,1,ni,TKe),p.Kf=function(t,i){J9n(f(t,36),i)},N(yn,"LayerSizeAndGraphHeightCalculator",1624),P(1625,1,ni,$Ke),p.Kf=function(t,i){IPn(f(t,36),i)},N(yn,"LongEdgeJoiner",1625),P(1626,1,ni,IKe),p.Kf=function(t,i){R9n(f(t,36),i)},N(yn,"LongEdgeSplitter",1626),P(1627,1,ni,zct),p.Kf=function(t,i){lLn(this,f(t,36),i)},p.e=0,p.f=0,p.j=0,p.k=0,p.n=0,p.o=0;var G5t,V5t;N(yn,"NodePromotion",1627),P(1628,1,cr,PKe),p.Ne=function(t,i){return vxn(f(t,10),f(i,10))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(yn,"NodePromotion/1",1628),P(1629,1,cr,OKe),p.Ne=function(t,i){return _xn(f(t,10),f(i,10))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(yn,"NodePromotion/2",1629),P(1630,1,{},NKe),p.Kb=function(t){return f(t,42),fB(),cn(),!0},p.Fb=function(t){return this===t},N(yn,"NodePromotion/lambda$0$Type",1630),P(1631,1,{},sit),p.Kb=function(t){return gSn(this.a,f(t,42))},p.Fb=function(t){return this===t},p.a=0,N(yn,"NodePromotion/lambda$1$Type",1631),P(1632,1,{},lit),p.Kb=function(t){return bSn(this.a,f(t,42))},p.Fb=function(t){return this===t},p.a=0,N(yn,"NodePromotion/lambda$2$Type",1632),P(1633,1,ni,MKe),p.Kf=function(t,i){tjn(f(t,36),i)},N(yn,"NorthSouthPortPostprocessor",1633),P(1634,1,ni,DKe),p.Kf=function(t,i){MLn(f(t,36),i)},N(yn,"NorthSouthPortPreprocessor",1634),P(1635,1,cr,LKe),p.Ne=function(t,i){return MRn(f(t,12),f(i,12))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(yn,"NorthSouthPortPreprocessor/lambda$0$Type",1635),P(1636,1,ni,jKe),p.Kf=function(t,i){JNn(f(t,36),i)},N(yn,"PartitionMidprocessor",1636),P(1637,1,sr,FKe),p.Mb=function(t){return ri(f(t,10),(pt(),f4))},N(yn,"PartitionMidprocessor/lambda$0$Type",1637),P(1638,1,Rn,ait),p.Cd=function(t){g_n(this.a,f(t,10))},N(yn,"PartitionMidprocessor/lambda$1$Type",1638),P(1639,1,ni,BKe),p.Kf=function(t,i){QPn(f(t,36),i)},N(yn,"PartitionPostprocessor",1639),P(1640,1,ni,WKe),p.Kf=function(t,i){d8n(f(t,36),i)},N(yn,"PartitionPreprocessor",1640),P(1641,1,sr,HKe),p.Mb=function(t){return ri(f(t,10),(pt(),f4))},N(yn,"PartitionPreprocessor/lambda$0$Type",1641),P(1642,1,{},UKe),p.Kb=function(t){return new Wt(null,new Om(new kn(xn(Wi(f(t,10)).a.Kc(),new O))))},N(yn,"PartitionPreprocessor/lambda$1$Type",1642),P(1643,1,sr,GKe),p.Mb=function(t){return n4n(f(t,18))},N(yn,"PartitionPreprocessor/lambda$2$Type",1643),P(1644,1,Rn,VKe),p.Cd=function(t){QRn(f(t,18))},N(yn,"PartitionPreprocessor/lambda$3$Type",1644),P(1645,1,ni,ztt),p.Kf=function(t,i){$Nn(f(t,36),i)};var n$e,z5t,K5t,q5t,r$e,i$e;N(yn,"PortListSorter",1645),P(1648,1,cr,zKe),p.Ne=function(t,i){return V1t(f(t,12),f(i,12))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(yn,"PortListSorter/lambda$0$Type",1648),P(1650,1,cr,KKe),p.Ne=function(t,i){return kRt(f(t,12),f(i,12))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(yn,"PortListSorter/lambda$1$Type",1650),P(1646,1,{},qKe),p.Kb=function(t){return zC(),f(t,12).e},N(yn,"PortListSorter/lambda$2$Type",1646),P(1647,1,{},XKe),p.Kb=function(t){return zC(),f(t,12).g},N(yn,"PortListSorter/lambda$3$Type",1647),P(1649,1,cr,JKe),p.Ne=function(t,i){return xTn(f(t,12),f(i,12))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(yn,"PortListSorter/lambda$4$Type",1649),P(1651,1,ni,YKe),p.Kf=function(t,i){W8n(f(t,36),i)},N(yn,"PortSideProcessor",1651),P(1652,1,ni,QKe),p.Kf=function(t,i){H7n(f(t,36),i)},N(yn,"ReversedEdgeRestorer",1652),P(1657,1,ni,Kst),p.Kf=function(t,i){aTn(this,f(t,36),i)},N(yn,"SelfLoopPortRestorer",1657),P(1658,1,{},ZKe),p.Kb=function(t){return new Wt(null,new Vt(f(t,30).a,16))},N(yn,"SelfLoopPortRestorer/lambda$0$Type",1658),P(1659,1,sr,eqe),p.Mb=function(t){return f(t,10).k==(gn(),ji)},N(yn,"SelfLoopPortRestorer/lambda$1$Type",1659),P(1660,1,sr,tqe),p.Mb=function(t){return ri(f(t,10),(nt(),xy))},N(yn,"SelfLoopPortRestorer/lambda$2$Type",1660),P(1661,1,{},nqe),p.Kb=function(t){return f(V(f(t,10),(nt(),xy)),337)},N(yn,"SelfLoopPortRestorer/lambda$3$Type",1661),P(1662,1,Rn,iit),p.Cd=function(t){EIn(this.a,f(t,337))},N(yn,"SelfLoopPortRestorer/lambda$4$Type",1662),P(805,1,Rn,R1e),p.Cd=function(t){DIn(f(t,105))},N(yn,"SelfLoopPortRestorer/lambda$5$Type",805),P(1663,1,ni,rqe),p.Kf=function(t,i){p4n(f(t,36),i)},N(yn,"SelfLoopPostProcessor",1663),P(1664,1,{},iqe),p.Kb=function(t){return new Wt(null,new Vt(f(t,30).a,16))},N(yn,"SelfLoopPostProcessor/lambda$0$Type",1664),P(1665,1,sr,oqe),p.Mb=function(t){return f(t,10).k==(gn(),ji)},N(yn,"SelfLoopPostProcessor/lambda$1$Type",1665),P(1666,1,sr,sqe),p.Mb=function(t){return ri(f(t,10),(nt(),xy))},N(yn,"SelfLoopPostProcessor/lambda$2$Type",1666),P(1667,1,Rn,lqe),p.Cd=function(t){R$n(f(t,10))},N(yn,"SelfLoopPostProcessor/lambda$3$Type",1667),P(1668,1,{},aqe),p.Kb=function(t){return new Wt(null,new Vt(f(t,105).f,1))},N(yn,"SelfLoopPostProcessor/lambda$4$Type",1668),P(1669,1,Rn,rit),p.Cd=function(t){Y2n(this.a,f(t,340))},N(yn,"SelfLoopPostProcessor/lambda$5$Type",1669),P(1670,1,sr,cqe),p.Mb=function(t){return!!f(t,105).i},N(yn,"SelfLoopPostProcessor/lambda$6$Type",1670),P(1671,1,Rn,oit),p.Cd=function(t){Ypn(this.a,f(t,105))},N(yn,"SelfLoopPostProcessor/lambda$7$Type",1671),P(1653,1,ni,uqe),p.Kf=function(t,i){gPn(f(t,36),i)},N(yn,"SelfLoopPreProcessor",1653),P(1654,1,{},fqe),p.Kb=function(t){return new Wt(null,new Vt(f(t,105).f,1))},N(yn,"SelfLoopPreProcessor/lambda$0$Type",1654),P(1655,1,{},dqe),p.Kb=function(t){return f(t,340).a},N(yn,"SelfLoopPreProcessor/lambda$1$Type",1655),P(1656,1,Rn,hqe),p.Cd=function(t){e1n(f(t,18))},N(yn,"SelfLoopPreProcessor/lambda$2$Type",1656),P(1672,1,ni,Hdt),p.Kf=function(t,i){iIn(this,f(t,36),i)},N(yn,"SelfLoopRouter",1672),P(1673,1,{},pqe),p.Kb=function(t){return new Wt(null,new Vt(f(t,30).a,16))},N(yn,"SelfLoopRouter/lambda$0$Type",1673),P(1674,1,sr,bqe),p.Mb=function(t){return f(t,10).k==(gn(),ji)},N(yn,"SelfLoopRouter/lambda$1$Type",1674),P(1675,1,sr,gqe),p.Mb=function(t){return ri(f(t,10),(nt(),xy))},N(yn,"SelfLoopRouter/lambda$2$Type",1675),P(1676,1,{},wqe),p.Kb=function(t){return f(V(f(t,10),(nt(),xy)),337)},N(yn,"SelfLoopRouter/lambda$3$Type",1676),P(1677,1,Rn,xct),p.Cd=function(t){u_n(this.a,this.b,f(t,337))},N(yn,"SelfLoopRouter/lambda$4$Type",1677),P(1678,1,ni,mqe),p.Kf=function(t,i){NOn(f(t,36),i)},N(yn,"SemiInteractiveCrossMinProcessor",1678),P(1679,1,sr,yqe),p.Mb=function(t){return f(t,10).k==(gn(),ji)},N(yn,"SemiInteractiveCrossMinProcessor/lambda$0$Type",1679),P(1680,1,sr,vqe),p.Mb=function(t){return opt(f(t,10))._b((pt(),F_))},N(yn,"SemiInteractiveCrossMinProcessor/lambda$1$Type",1680),P(1681,1,cr,_qe),p.Ne=function(t,i){return Y3n(f(t,10),f(i,10))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(yn,"SemiInteractiveCrossMinProcessor/lambda$2$Type",1681),P(1682,1,{},Sqe),p.Ve=function(t,i){return w_n(f(t,10),f(i,10))},N(yn,"SemiInteractiveCrossMinProcessor/lambda$3$Type",1682),P(1684,1,ni,Eqe),p.Kf=function(t,i){i9n(f(t,36),i)},N(yn,"SortByInputModelProcessor",1684),P(1685,1,sr,kqe),p.Mb=function(t){return f(t,12).g.c.length!=0},N(yn,"SortByInputModelProcessor/lambda$0$Type",1685),P(1686,1,Rn,cit),p.Cd=function(t){WIn(this.a,f(t,12))},N(yn,"SortByInputModelProcessor/lambda$1$Type",1686),P(1759,817,{},byt),p.df=function(t){var i,s,a,c;switch(this.c=t,this.a.g){case 2:i=new st,Mi(Br(new Wt(null,new Vt(this.c.a.b,16)),new jqe),new Mct(this,i)),BN(this,new xqe),Ma(i,new Cqe),i.c.length=0,Mi(Br(new Wt(null,new Vt(this.c.a.b,16)),new Aqe),new fit(i)),BN(this,new Tqe),Ma(i,new $qe),i.c.length=0,s=gft(Wee(Wv(new Wt(null,new Vt(this.c.a.b,16)),new dit(this))),new Iqe),Mi(new Wt(null,new Vt(this.c.a.a,16)),new Tct(s,i)),BN(this,new Oqe),Ma(i,new Nqe),i.c.length=0;break;case 3:a=new st,BN(this,new Rqe),c=gft(Wee(Wv(new Wt(null,new Vt(this.c.a.b,16)),new uit(this))),new Pqe),Mi(Br(new Wt(null,new Vt(this.c.a.b,16)),new Mqe),new Ict(c,a)),BN(this,new Dqe),Ma(a,new Lqe),a.c.length=0;break;default:throw ne(new Nst)}},p.b=0,N(ro,"EdgeAwareScanlineConstraintCalculation",1759),P(1760,1,Kh,Rqe),p.Lb=function(t){return ve(f(t,60).g,154)},p.Fb=function(t){return this===t},p.Mb=function(t){return ve(f(t,60).g,154)},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$0$Type",1760),P(1761,1,{},uit),p.Ye=function(t){return k5n(this.a,f(t,60))},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$1$Type",1761),P(1769,1,hU,Cct),p.de=function(){N6(this.a,this.b,-1)},p.b=0,N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$10$Type",1769),P(1771,1,Kh,xqe),p.Lb=function(t){return ve(f(t,60).g,154)},p.Fb=function(t){return this===t},p.Mb=function(t){return ve(f(t,60).g,154)},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$11$Type",1771),P(1772,1,Rn,Cqe),p.Cd=function(t){f(t,380).de()},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$12$Type",1772),P(1773,1,sr,Aqe),p.Mb=function(t){return ve(f(t,60).g,10)},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$13$Type",1773),P(1775,1,Rn,fit),p.Cd=function(t){GCn(this.a,f(t,60))},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$14$Type",1775),P(1774,1,hU,Pct),p.de=function(){N6(this.b,this.a,-1)},p.a=0,N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$15$Type",1774),P(1776,1,Kh,Tqe),p.Lb=function(t){return ve(f(t,60).g,10)},p.Fb=function(t){return this===t},p.Mb=function(t){return ve(f(t,60).g,10)},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$16$Type",1776),P(1777,1,Rn,$qe),p.Cd=function(t){f(t,380).de()},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$17$Type",1777),P(1778,1,{},dit),p.Ye=function(t){return R5n(this.a,f(t,60))},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$18$Type",1778),P(1779,1,{},Iqe),p.We=function(){return 0},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$19$Type",1779),P(1762,1,{},Pqe),p.We=function(){return 0},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$2$Type",1762),P(1781,1,Rn,Tct),p.Cd=function(t){Xyn(this.a,this.b,f(t,316))},p.a=0,N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$20$Type",1781),P(1780,1,hU,$ct),p.de=function(){$kt(this.a,this.b,-1)},p.b=0,N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$21$Type",1780),P(1782,1,Kh,Oqe),p.Lb=function(t){return f(t,60),!0},p.Fb=function(t){return this===t},p.Mb=function(t){return f(t,60),!0},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$22$Type",1782),P(1783,1,Rn,Nqe),p.Cd=function(t){f(t,380).de()},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$23$Type",1783),P(1763,1,sr,Mqe),p.Mb=function(t){return ve(f(t,60).g,10)},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$3$Type",1763),P(1765,1,Rn,Ict),p.Cd=function(t){Jyn(this.a,this.b,f(t,60))},p.a=0,N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$4$Type",1765),P(1764,1,hU,Oct),p.de=function(){N6(this.b,this.a,-1)},p.a=0,N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$5$Type",1764),P(1766,1,Kh,Dqe),p.Lb=function(t){return f(t,60),!0},p.Fb=function(t){return this===t},p.Mb=function(t){return f(t,60),!0},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$6$Type",1766),P(1767,1,Rn,Lqe),p.Cd=function(t){f(t,380).de()},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$7$Type",1767),P(1768,1,sr,jqe),p.Mb=function(t){return ve(f(t,60).g,154)},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$8$Type",1768),P(1770,1,Rn,Mct),p.Cd=function(t){p3n(this.a,this.b,f(t,60))},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$9$Type",1770),P(1586,1,ni,edt),p.Kf=function(t,i){I9n(this,f(t,36),i)};var X5t;N(ro,"HorizontalGraphCompactor",1586),P(1587,1,{},hit),p.ff=function(t,i){var s,a,c;return j_e(t,i)||(s=ZS(t),a=ZS(i),s&&s.k==(gn(),Ui)||a&&a.k==(gn(),Ui))?0:(c=f(V(this.a.a,(nt(),K2)),312),D1n(c,s?s.k:(gn(),vo),a?a.k:(gn(),vo)))},p.gf=function(t,i){var s,a,c;return j_e(t,i)?1:(s=ZS(t),a=ZS(i),c=f(V(this.a.a,(nt(),K2)),312),Tme(c,s?s.k:(gn(),vo),a?a.k:(gn(),vo)))},N(ro,"HorizontalGraphCompactor/1",1587),P(1588,1,{},Fqe),p.ef=function(t,i){return d$(),t.a.i==0},N(ro,"HorizontalGraphCompactor/lambda$0$Type",1588),P(1589,1,{},pit),p.ef=function(t,i){return v_n(this.a,t,i)},N(ro,"HorizontalGraphCompactor/lambda$1$Type",1589),P(1730,1,{},Gwt);var J5t,Y5t;N(ro,"LGraphToCGraphTransformer",1730),P(1738,1,sr,Bqe),p.Mb=function(t){return t!=null},N(ro,"LGraphToCGraphTransformer/0methodref$nonNull$Type",1738),P(1731,1,{},Wqe),p.Kb=function(t){return Qf(),dl(V(f(f(t,60).g,10),(nt(),Ur)))},N(ro,"LGraphToCGraphTransformer/lambda$0$Type",1731),P(1732,1,{},Hqe),p.Kb=function(t){return Qf(),t_t(f(f(t,60).g,154))},N(ro,"LGraphToCGraphTransformer/lambda$1$Type",1732),P(1741,1,sr,Uqe),p.Mb=function(t){return Qf(),ve(f(t,60).g,10)},N(ro,"LGraphToCGraphTransformer/lambda$10$Type",1741),P(1742,1,Rn,Gqe),p.Cd=function(t){R_n(f(t,60))},N(ro,"LGraphToCGraphTransformer/lambda$11$Type",1742),P(1743,1,sr,Vqe),p.Mb=function(t){return Qf(),ve(f(t,60).g,154)},N(ro,"LGraphToCGraphTransformer/lambda$12$Type",1743),P(1747,1,Rn,zqe),p.Cd=function(t){nCn(f(t,60))},N(ro,"LGraphToCGraphTransformer/lambda$13$Type",1747),P(1744,1,Rn,bit),p.Cd=function(t){Tgn(this.a,f(t,8))},p.a=0,N(ro,"LGraphToCGraphTransformer/lambda$14$Type",1744),P(1745,1,Rn,git),p.Cd=function(t){Ign(this.a,f(t,116))},p.a=0,N(ro,"LGraphToCGraphTransformer/lambda$15$Type",1745),P(1746,1,Rn,wit),p.Cd=function(t){$gn(this.a,f(t,8))},p.a=0,N(ro,"LGraphToCGraphTransformer/lambda$16$Type",1746),P(1748,1,{},Kqe),p.Kb=function(t){return Qf(),new Wt(null,new Om(new kn(xn(Wi(f(t,10)).a.Kc(),new O))))},N(ro,"LGraphToCGraphTransformer/lambda$17$Type",1748),P(1749,1,sr,qqe),p.Mb=function(t){return Qf(),ms(f(t,18))},N(ro,"LGraphToCGraphTransformer/lambda$18$Type",1749),P(1750,1,Rn,mit),p.Cd=function(t){zkn(this.a,f(t,18))},N(ro,"LGraphToCGraphTransformer/lambda$19$Type",1750),P(1734,1,Rn,yit),p.Cd=function(t){y2n(this.a,f(t,154))},N(ro,"LGraphToCGraphTransformer/lambda$2$Type",1734),P(1751,1,{},Xqe),p.Kb=function(t){return Qf(),new Wt(null,new Vt(f(t,30).a,16))},N(ro,"LGraphToCGraphTransformer/lambda$20$Type",1751),P(1752,1,{},Jqe),p.Kb=function(t){return Qf(),new Wt(null,new Om(new kn(xn(Wi(f(t,10)).a.Kc(),new O))))},N(ro,"LGraphToCGraphTransformer/lambda$21$Type",1752),P(1753,1,{},Yqe),p.Kb=function(t){return Qf(),f(V(f(t,18),(nt(),Pw)),15)},N(ro,"LGraphToCGraphTransformer/lambda$22$Type",1753),P(1754,1,sr,Qqe),p.Mb=function(t){return L1n(f(t,15))},N(ro,"LGraphToCGraphTransformer/lambda$23$Type",1754),P(1755,1,Rn,vit),p.Cd=function(t){h5n(this.a,f(t,15))},N(ro,"LGraphToCGraphTransformer/lambda$24$Type",1755),P(1733,1,Rn,Dct),p.Cd=function(t){gEn(this.a,this.b,f(t,154))},N(ro,"LGraphToCGraphTransformer/lambda$3$Type",1733),P(1735,1,{},Zqe),p.Kb=function(t){return Qf(),new Wt(null,new Vt(f(t,30).a,16))},N(ro,"LGraphToCGraphTransformer/lambda$4$Type",1735),P(1736,1,{},eXe),p.Kb=function(t){return Qf(),new Wt(null,new Om(new kn(xn(Wi(f(t,10)).a.Kc(),new O))))},N(ro,"LGraphToCGraphTransformer/lambda$5$Type",1736),P(1737,1,{},tXe),p.Kb=function(t){return Qf(),f(V(f(t,18),(nt(),Pw)),15)},N(ro,"LGraphToCGraphTransformer/lambda$6$Type",1737),P(1739,1,Rn,_it),p.Cd=function(t){x5n(this.a,f(t,15))},N(ro,"LGraphToCGraphTransformer/lambda$8$Type",1739),P(1740,1,Rn,Lct),p.Cd=function(t){t1n(this.a,this.b,f(t,154))},N(ro,"LGraphToCGraphTransformer/lambda$9$Type",1740),P(1729,1,{},nXe),p.cf=function(t){var i,s,a,c,b;for(this.a=t,this.d=new wY,this.c=Fe(L4e,on,125,this.a.a.a.c.length,0,1),this.b=0,s=new ee(this.a.a.a);s.a>>28]|t[e>>24&15]<<4|t[e>>20&15]<<8|t[e>>16&15]<<12|t[e>>12&15]<<16|t[e>>8&15]<<20|t[e>>4&15]<<24|t[e&15]<<28}function e2t(e){var t,i,s;e.b==e.c&&(s=e.a.length,i=MSe(h.Math.max(8,s))<<1,e.b!=0?(t=Yf(e.a,i),gyt(e,t,s),e.a=t,e.b=0):xv(e.a,i),e.c=s)}function CTn(e,t){var i;return i=e.b,i.pf((Er(),qc))?i.ag()==(ut(),wn)?-i.Mf().a-Ae(je(i.of(qc))):t+Ae(je(i.of(qc))):i.ag()==(ut(),wn)?-i.Mf().a:t}function TN(e){var t;return e.b.c.length!=0&&f(vt(e.b,0),72).a?f(vt(e.b,0),72).a:(t=IZ(e),t??""+(e.c?il(e.c.a,e,0):-1))}function CH(e){var t;return e.f.c.length!=0&&f(vt(e.f,0),72).a?f(vt(e.f,0),72).a:(t=IZ(e),t??""+(e.i?il(e.i.j,e,0):-1))}function ATn(e,t){var i,s;if(t<0||t>=e.gc())return null;for(i=t;i0?e.c:0),a=h.Math.max(a,t.d),++s;e.e=c,e.b=a}function $Tn(e){var t,i;if(!e.b)for(e.b=tW(f(e.f,123).kh().i),i=new Sn(f(e.f,123).kh());i.e!=i.i.gc();)t=f(Cn(i),135),lt(e.b,new TY(t));return e.b}function ITn(e,t){var i,s,a;if(t.dc())return oC(),oC(),J9;for(i=new Ldt(e,t.gc()),a=new Sn(e);a.e!=a.i.gc();)s=Cn(a),t.Hc(s)&&zn(i,s);return i}function oEe(e,t,i,s){return t==0?s?(!e.o&&(e.o=new pc((Yl(),Fp),Hg,e,0)),e.o):(!e.o&&(e.o=new pc((Yl(),Fp),Hg,e,0)),G7(e.o)):mH(e,t,i,s)}function ene(e){var t,i;if(e.rb)for(t=0,i=e.rb.i;t>22),a+=s>>22,a<0)?!1:(e.l=i&Vc,e.m=s&Vc,e.h=a&Ab,!0)}function tne(e,t,i,s,a,c,b){var g,m;return!(t.Te()&&(m=e.a.Ne(i,s),m<0||!a&&m==0)||t.Ue()&&(g=e.a.Ne(i,c),g>0||!b&&g==0))}function MTn(e,t){zC();var i;if(i=e.j.g-t.j.g,i!=0)return 0;switch(e.j.g){case 2:return _te(t,a$e)-_te(e,a$e);case 4:return _te(e,l$e)-_te(t,l$e)}return 0}function DTn(e){switch(e.g){case 0:return fle;case 1:return dle;case 2:return hle;case 3:return ple;case 4:return dV;case 5:return ble;default:return null}}function Ks(e,t,i){var s,a;return s=(a=new EY,dw(a,t),Ra(a,i),zn((!e.c&&(e.c=new qe(Dy,e,12,10)),e.c),a),a),wg(s,0),Jv(s,1),Sg(s,!0),_g(s,!0),s}function E3(e,t){var i,s;if(t>=e.i)throw ne(new kQ(t,e.i));return++e.j,i=e.g[t],s=e.i-t-1,s>0&&oa(e.g,t+1,e.g,t,s),Ci(e.g,--e.i,null),e.Qi(t,i),e.Ni(),i}function t2t(e,t){var i,s;return e.Db>>16==17?e.Cb.Th(e,21,Pf,t):(s=Es(f(tn((i=f(dn(e,16),29),i||e.ii()),e.Db>>16),19)),e.Cb.Th(e,s.n,s.f,t))}function LTn(e){var t,i,s,a;for(Kt(),Hi(e.c,e.a),a=new ee(e.c);a.ai.a.c.length))throw ne(new hn("index must be >= 0 and <= layer node count"));e.c&&Ja(e.c.a,e),e.c=i,i&&Tm(i.a,t,e)}function s2t(e,t){var i,s,a;for(s=new kn(xn(Sb(e).a.Kc(),new O));Un(s);)return i=f(On(s),18),a=f(t.Kb(i),10),new Hj(nr(a.n.b+a.o.b/2));return i$(),i$(),Qoe}function l2t(e,t){this.c=new Fn,this.a=e,this.b=t,this.d=f(V(e,(nt(),K2)),312),Oe(V(e,(bt(),z6e)))===Oe((q7(),hV))?this.e=new nlt:this.e=new tlt}function O6(e,t){var i,s;return s=null,e.pf((Er(),aR))&&(i=f(e.of(aR),96),i.pf(t)&&(s=i.of(t))),s==null&&e.Tf()&&(s=e.Tf().of(t)),s==null&&(s=ht(t)),s}function nne(e,t){var i,s;i=e.fd(t);try{return s=i.Pb(),i.Qb(),s}catch(a){throw a=mi(a),ve(a,112)?ne(new Hs("Can't remove element "+t)):ne(a)}}function VTn(e,t){var i,s,a;if(s=new dF,a=new jSe(s.q.getFullYear()-V1,s.q.getMonth(),s.q.getDate()),i=n9n(e,t,a),i==0||i0?t:0),++i;return new tt(s,a)}function uEe(e,t){var i,s;return e.Db>>16==6?e.Cb.Th(e,6,Fi,t):(s=Es(f(tn((i=f(dn(e,16),29),i||(Yl(),$z)),e.Db>>16),19)),e.Cb.Th(e,s.n,s.f,t))}function fEe(e,t){var i,s;return e.Db>>16==7?e.Cb.Th(e,1,V9,t):(s=Es(f(tn((i=f(dn(e,16),29),i||(Yl(),hOe)),e.Db>>16),19)),e.Cb.Th(e,s.n,s.f,t))}function dEe(e,t){var i,s;return e.Db>>16==9?e.Cb.Th(e,9,$r,t):(s=Es(f(tn((i=f(dn(e,16),29),i||(Yl(),bOe)),e.Db>>16),19)),e.Cb.Th(e,s.n,s.f,t))}function u2t(e,t){var i,s;return e.Db>>16==5?e.Cb.Th(e,9,Fz,t):(s=Es(f(tn((i=f(dn(e,16),29),i||(zt(),Gg)),e.Db>>16),19)),e.Cb.Th(e,s.n,s.f,t))}function f2t(e,t){var i,s;return e.Db>>16==7?e.Cb.Th(e,6,Bd,t):(s=Es(f(tn((i=f(dn(e,16),29),i||(zt(),zg)),e.Db>>16),19)),e.Cb.Th(e,s.n,s.f,t))}function hEe(e,t){var i,s;return e.Db>>16==3?e.Cb.Th(e,0,K9,t):(s=Es(f(tn((i=f(dn(e,16),29),i||(zt(),Ug)),e.Db>>16),19)),e.Cb.Th(e,s.n,s.f,t))}function d2t(){this.a=new bZe,this.g=new EH,this.j=new EH,this.b=new Fn,this.d=new EH,this.i=new EH,this.k=new Fn,this.c=new Fn,this.e=new Fn,this.f=new Fn}function qTn(e,t,i){var s,a,c;for(i<0&&(i=0),c=e.i,a=i;aWre)return oA(e,s);if(s==e)return!0}}return!1}function JTn(e){switch(nB(),e.q.g){case 5:qEt(e,(ut(),bn)),qEt(e,jn);break;case 4:Xkt(e,(ut(),bn)),Xkt(e,jn);break;default:Qxt(e,(ut(),bn)),Qxt(e,jn)}}function YTn(e){switch(nB(),e.q.g){case 5:hkt(e,(ut(),_n)),hkt(e,wn);break;case 4:mSt(e,(ut(),_n)),mSt(e,wn);break;default:Zxt(e,(ut(),_n)),Zxt(e,wn)}}function QTn(e){var t,i;t=f(V(e,(od(),i5t)),17),t?(i=t.a,i==0?Xe(e,(P1(),jG),new Rte):Xe(e,(P1(),jG),new oW(i))):Xe(e,(P1(),jG),new oW(1))}function ZTn(e,t){var i;switch(i=e.i,t.g){case 1:return-(e.n.b+e.o.b);case 2:return e.n.a-i.o.a;case 3:return e.n.b-i.o.b;case 4:return-(e.n.a+e.o.a)}return 0}function e$n(e,t){switch(e.g){case 0:return t==(ef(),n0)?iV:oV;case 1:return t==(ef(),n0)?iV:ZM;case 2:return t==(ef(),n0)?ZM:oV;default:return ZM}}function IN(e,t){var i,s,a;for(Ja(e.a,t),e.e-=t.r+(e.a.c.length==0?0:e.c),a=_Ce,s=new ee(e.a);s.a>16==3?e.Cb.Th(e,12,$r,t):(s=Es(f(tn((i=f(dn(e,16),29),i||(Yl(),dOe)),e.Db>>16),19)),e.Cb.Th(e,s.n,s.f,t))}function bEe(e,t){var i,s;return e.Db>>16==11?e.Cb.Th(e,10,$r,t):(s=Es(f(tn((i=f(dn(e,16),29),i||(Yl(),pOe)),e.Db>>16),19)),e.Cb.Th(e,s.n,s.f,t))}function h2t(e,t){var i,s;return e.Db>>16==10?e.Cb.Th(e,11,Pf,t):(s=Es(f(tn((i=f(dn(e,16),29),i||(zt(),Vg)),e.Db>>16),19)),e.Cb.Th(e,s.n,s.f,t))}function p2t(e,t){var i,s;return e.Db>>16==10?e.Cb.Th(e,12,Of,t):(s=Es(f(tn((i=f(dn(e,16),29),i||(zt(),eS)),e.Db>>16),19)),e.Cb.Th(e,s.n,s.f,t))}function _f(e){var t;return!(e.Bb&1)&&e.r&&e.r.Vh()&&(t=f(e.r,54),e.r=f(D1(e,t),142),e.r!=t&&e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,9,8,t,e.r))),e.r}function rne(e,t,i){var s;return s=se(ie(Ro,1),js,28,15,[WEe(e,(Pd(),Nl),t,i),WEe(e,Aa,t,i),WEe(e,Ml,t,i)]),e.f&&(s[0]=h.Math.max(s[0],s[2]),s[2]=s[0]),s}function t$n(e,t){var i,s,a;if(a=R4n(e,t),a.c.length!=0)for(Hi(a,new IKe),i=a.c.length,s=0;s>19,_=t.h>>19,m!=_?_-m:(a=e.h,g=t.h,a!=g?a-g:(s=e.m,b=t.m,s!=b?s-b:(i=e.l,c=t.l,i-c)))}function AH(){AH=F,I4e=(JH(),_se),$4e=new Bt(bRe,I4e),T4e=(_W(),vse),A4e=new Bt(gRe,T4e),C4e=(pH(),yse),x4e=new Bt(wRe,C4e),R4e=new Bt(mRe,(cn(),!0))}function N6(e,t,i){var s,a;s=t*i,ve(e.g,154)?(a=c3(e),a.f.d?a.f.a||(e.d.a+=s+ah):(e.d.d-=s+ah,e.d.a+=s+ah)):ve(e.g,10)&&(e.d.d-=s,e.d.a+=2*s)}function b2t(e,t,i){var s,a,c,b,g;for(a=e[i.g],g=new ee(t.d);g.a0?e.b:0),++i;t.b=s,t.e=a}function g2t(e){var t,i,s;if(s=e.b,lct(e.i,s.length)){for(i=s.length*2,e.b=Fe(nse,aM,303,i,0,1),e.c=Fe(nse,aM,303,i,0,1),e.f=i-1,e.i=0,t=e.a;t;t=t.c)BN(e,t,t);++e.g}}function a$n(e,t,i,s){var a,c,b,g;for(a=0;ab&&(g=b/s),a>c&&(m=c/a),Nh(e,h.Math.min(g,m)),e}function u$n(){nU();var e,t;try{if(t=f(xEe((_1(),Nf),UA),2113),t)return t}catch(i){if(i=mi(i),ve(i,103))e=i,bve((ir(),e));else throw ne(i)}return new fZe}function f$n(){nU();var e,t;try{if(t=f(xEe((_1(),Nf),Rf),2040),t)return t}catch(i){if(i=mi(i),ve(i,103))e=i,bve((ir(),e));else throw ne(i)}return new LZe}function d$n(){xwt();var e,t;try{if(t=f(xEe((_1(),Nf),Aw),2122),t)return t}catch(i){if(i=mi(i),ve(i,103))e=i,bve((ir(),e));else throw ne(i)}return new Pet}function h$n(e,t,i){var s,a;return a=e.e,e.e=t,e.Db&4&&!(e.Db&1)&&(s=new yo(e,1,4,a,t),i?i.nj(s):i=s),a!=t&&(t?i=_A(e,WH(e,t),i):i=_A(e,e.a,i)),i}function w2t(){dF.call(this),this.e=-1,this.a=!1,this.p=Qo,this.k=-1,this.c=-1,this.b=-1,this.g=!1,this.f=-1,this.j=-1,this.n=-1,this.i=-1,this.d=-1,this.o=Qo}function p$n(e,t){var i,s,a;if(s=e.b.d.d,e.a||(s+=e.b.d.a),a=t.b.d.d,t.a||(a+=t.b.d.a),i=Qr(s,a),i==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return i}function b$n(e,t){var i,s,a;if(s=e.b.b.d,e.a||(s+=e.b.b.a),a=t.b.b.d,t.a||(a+=t.b.b.a),i=Qr(s,a),i==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return i}function g$n(e,t){var i,s,a;if(s=e.b.g.d,e.a||(s+=e.b.g.a),a=t.b.g.d,t.a||(a+=t.b.g.a),i=Qr(s,a),i==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return i}function wEe(){wEe=F,S5t=hc(gr(gr(gr(new Ki,(Yo(),ga),(ss(),KTe)),ga,qTe),ll,XTe),ll,DTe),k5t=gr(gr(new Ki,ga,TTe),ga,LTe),E5t=hc(new Ki,ll,FTe)}function w$n(e){var t,i,s,a,c;for(t=f(V(e,(nt(),zI)),85),c=e.n,s=t.Cc().Kc();s.Ob();)i=f(s.Pb(),314),a=i.i,a.c+=c.a,a.d+=c.b,i.c?D3t(i):L3t(i);Xe(e,zI,null)}function m$n(e,t,i){var s,a;switch(a=e.b,s=a.d,t.g){case 1:return-s.d-i;case 2:return a.o.a+s.c+i;case 3:return a.o.b+s.a+i;case 4:return-s.b-i;default:return-1}}function y$n(e,t,i){var s,a;for(i.Ug("Interactive node placement",1),e.a=f(V(t,(nt(),K2)),312),a=new ee(t.b);a.a0&&(b=(c&Nr)%e.d.length,a=vke(e,b,c,t),a)?(g=a.nd(i),g):(s=e.ck(c,t,i),e.c.Fc(s),null)}function vEe(e,t){var i,s,a,c;switch(vg(e,t).Kl()){case 3:case 2:{for(i=v2(t),a=0,c=i.i;a=0;s--)if(Ht(e[s].d,t)||Ht(e[s].d,i)){e.length>=s+1&&e.splice(0,s+1);break}return e}function ON(e,t){var i;return ul(e)&&ul(t)&&(i=e/t,fM0&&(e.b+=2,e.a+=s):(e.b+=1,e.a+=h.Math.min(s,a))}function k2t(e){var t;t=f(V(f(tf(e.b,0),40),(Il(),p5e)),107),Xe(e,(ei(),y4),new tt(0,0)),bRt(new H7,e,t.b+t.c-Ae(je(V(e,gae))),t.d+t.a-Ae(je(V(e,wae))))}function R2t(e,t){var i,s;if(s=!1,Eo(t)&&(s=!0,r3(e,new Bv(or(t)))),s||ve(t,242)&&(s=!0,r3(e,(i=pye(f(t,242)),new Uj(i)))),!s)throw ne(new IY(wAe))}function D$n(e,t,i,s){var a,c,b;return a=new gb(e.e,1,10,(b=t.c,ve(b,90)?f(b,29):(zt(),Mf)),(c=i.c,ve(c,90)?f(c,29):(zt(),Mf)),Rg(e,t),!1),s?s.nj(a):s=a,s}function EEe(e){var t,i;switch(f(V(Go(e),(bt(),F6e)),429).g){case 0:return t=e.n,i=e.o,new tt(t.a+i.a/2,t.b+i.b/2);case 1:return new us(e.n);default:return null}}function NN(){NN=F,pV=new S$(Jh,0),k$e=new S$("LEFTUP",1),x$e=new S$("RIGHTUP",2),E$e=new S$("LEFTDOWN",3),R$e=new S$("RIGHTDOWN",4),gle=new S$("BALANCED",5)}function L$n(e,t,i){var s,a,c;if(s=Qr(e.a[t.p],e.a[i.p]),s==0){if(a=f(V(t,(nt(),Z3)),15),c=f(V(i,Z3),15),a.Hc(i))return-1;if(c.Hc(t))return 1}return s}function j$n(e){switch(e.g){case 1:return new zYe;case 2:return new KYe;case 3:return new VYe;case 0:return null;default:throw ne(new hn(roe+(e.f!=null?e.f:""+e.g)))}}function kEe(e,t,i){switch(t){case 1:!e.n&&(e.n=new qe(Fs,e,1,7)),Vn(e.n),!e.n&&(e.n=new qe(Fs,e,1,7)),Ii(e.n,f(i,16));return;case 2:NC(e,or(i));return}GSe(e,t,i)}function REe(e,t,i){switch(t){case 3:Gm(e,Ae(je(i)));return;case 4:Vm(e,Ae(je(i)));return;case 5:Da(e,Ae(je(i)));return;case 6:La(e,Ae(je(i)));return}kEe(e,t,i)}function TH(e,t,i){var s,a,c;c=(s=new EY,s),a=oh(c,t,null),a&&a.oj(),Ra(c,i),zn((!e.c&&(e.c=new qe(Dy,e,12,10)),e.c),c),wg(c,0),Jv(c,1),Sg(c,!0),_g(c,!0)}function xEe(e,t){var i,s,a;return i=w$(e.i,t),ve(i,241)?(a=f(i,241),a.zi()==null,a.wi()):ve(i,507)?(s=f(i,2037),a=s.b,a):null}function F$n(e,t,i,s){var a,c;return nr(t),nr(i),c=f(B$(e.d,t),17),Qwt(!!c,"Row %s not in %s",t,e.e),a=f(B$(e.b,i),17),Qwt(!!a,"Column %s not in %s",i,e.c),cvt(e,c.a,a.a,s)}function x2t(e,t,i,s,a,c,b){var g,m,_,k,I;if(k=a[c],_=c==b-1,g=_?s:0,I=VSt(g,k),s!=10&&se(ie(e,b-c),t[c],i[c],g,I),!_)for(++c,m=0;m1||g==-1?(c=f(m,15),a.Wb(SAn(e,c))):a.Wb(Hne(e,f(m,58)))))}function z$n(e,t,i,s){Dat();var a=Yoe;function c(){for(var b=0;b0)return!1;return!0}function X$n(e){var t,i,s,a,c;for(s=new aw(new U0(e.b).a);s.b;)i=qm(s),t=f(i.ld(),10),c=f(f(i.md(),42).a,10),a=f(f(i.md(),42).b,8),Mr(xd(t.n),Mr(Ho(c.n),a))}function J$n(e){switch(f(V(e.b,(bt(),P6e)),387).g){case 1:Mi(nl(El(new Wt(null,new Vt(e.d,16)),new EXe),new kXe),new RXe);break;case 2:V7n(e);break;case 0:E5n(e)}}function Y$n(e,t,i){var s,a,c;for(s=i,!s&&(s=new Ok),s.Ug("Layout",e.a.c.length),c=new ee(e.a);c.aZie)return i;a>-1e-6&&++i}return i}function AEe(e,t){var i;t!=e.b?(i=null,e.b&&(i=KB(e.b,e,-4,i)),t&&(i=S3(t,e,-4,i)),i=n_t(e,t,i),i&&i.oj()):e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,3,t,t))}function T2t(e,t){var i;t!=e.f?(i=null,e.f&&(i=KB(e.f,e,-1,i)),t&&(i=S3(t,e,-1,i)),i=t_t(e,t,i),i&&i.oj()):e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,0,t,t))}function t6n(e,t,i,s){var a,c,b,g;return eu(e.e)&&(a=t.Lk(),g=t.md(),c=i.md(),b=T1(e,1,a,g,c,a.Jk()?mA(e,a,c,ve(a,102)&&(f(a,19).Bb&ys)!=0):-1,!0),s?s.nj(b):s=b),s}function $2t(e){var t,i,s;if(e==null)return null;if(i=f(e,15),i.dc())return"";for(s=new ig,t=i.Kc();t.Ob();)Ms(s,(Jr(),or(t.Pb()))),s.a+=" ";return xQ(s,s.a.length-1)}function I2t(e){var t,i,s;if(e==null)return null;if(i=f(e,15),i.dc())return"";for(s=new ig,t=i.Kc();t.Ob();)Ms(s,(Jr(),or(t.Pb()))),s.a+=" ";return xQ(s,s.a.length-1)}function n6n(e,t,i){var s,a;return s=e.c[t.c.p][t.p],a=e.c[i.c.p][i.p],s.a!=null&&a.a!=null?pZ(s.a,a.a):s.a!=null?-1:a.a!=null?1:0}function r6n(e,t,i){return i.Ug("Tree layout",1),A7(e.b),Cd(e.b,(k3(),XV),XV),Cd(e.b,c5,c5),Cd(e.b,u5,u5),Cd(e.b,f5,f5),e.a=eM(e.b,t),Y$n(e,t,i.eh(1)),i.Vg(),t}function i6n(e,t){var i,s,a,c,b,g;if(t)for(c=t.a.length,i=new J0(c),g=(i.b-i.a)*i.c<0?(S1(),w0):new R1(i);g.Ob();)b=f(g.Pb(),17),a=vC(t,b.a),s=new Qot(e),d_n(s.a,a)}function o6n(e,t){var i,s,a,c,b,g;if(t)for(c=t.a.length,i=new J0(c),g=(i.b-i.a)*i.c<0?(S1(),w0):new R1(i);g.Ob();)b=f(g.Pb(),17),a=vC(t,b.a),s=new Uot(e),f_n(s.a,a)}function s6n(e){var t;if(e!=null&&e.length>0&&Jo(e,e.length-1)==33)try{return t=Fkt(Vu(e,0,e.length-1)),t.e==null}catch(i){if(i=mi(i),!ve(i,33))throw ne(i)}return!1}function l6n(e,t,i){var s,a,c;switch(s=Go(t),a=nH(s),c=new ia,Sl(c,t),i.g){case 1:so(c,SN(y3(a)));break;case 2:so(c,y3(a))}return Xe(c,(bt(),L_),je(V(e,L_))),c}function TEe(e){var t,i;return t=f(On(new kn(xn(go(e.a).a.Kc(),new O))),18),i=f(On(new kn(xn(Wi(e.a).a.Kc(),new O))),18),mt(wt(V(t,(nt(),hh))))||mt(wt(V(i,hh)))}function i_(){i_=F,e9=new qO("ONE_SIDE",0),aV=new qO("TWO_SIDES_CORNER",1),cV=new qO("TWO_SIDES_OPPOSING",2),lV=new qO("THREE_SIDES",3),sV=new qO("FOUR_SIDES",4)}function P2t(e,t){var i,s,a,c;for(c=new st,a=0,s=t.Kc();s.Ob();){for(i=ot(f(s.Pb(),17).a+a);i.a=e.f)break;sn(c.c,i)}return c}function a6n(e,t){var i,s,a,c,b;for(c=new ee(t.a);c.a0&&n2t(this,this.c-1,(ut(),_n)),this.c0&&e[0].length>0&&(this.c=mt(wt(V(Go(e[0][0]),(nt(),W$e))))),this.a=Fe(x7t,rt,2117,e.length,0,2),this.b=Fe(C7t,rt,2118,e.length,0,2),this.d=new Jvt}function h6n(e){return e.c.length==0?!1:(qt(0,e.c.length),f(e.c[0],18)).c.i.k==(gn(),vo)?!0:t2(nl(new Wt(null,new Vt(e,16)),new iJe),new oJe)}function M2t(e,t){var i,s,a,c,b,g,m;for(g=c_(t),c=t.f,m=t.g,b=h.Math.sqrt(c*c+m*m),a=0,s=new ee(g);s.a=0?(i=ON(e,hU),s=kN(e,hU)):(t=x1(e,1),i=ON(t,5e8),s=kN(t,5e8),s=is(Zf(s,1),fo(e,1))),Ad(Zf(s,32),fo(i,Ts))}function j2t(e,t,i){var s,a;switch(s=(In(t.b!=0),f(Xu(t,t.a.a),8)),i.g){case 0:s.b=0;break;case 2:s.b=e.f;break;case 3:s.a=0;break;default:s.a=e.g}return a=Hn(t,0),C7(a,s),t}function F2t(e,t,i,s){var a,c,b,g,m;switch(m=e.b,c=t.d,b=c.j,g=z2e(b,m.d[b.g],i),a=Mr(Ho(c.n),c.a),c.j.g){case 1:case 3:g.a+=a.a;break;case 2:case 4:g.b+=a.b}Ai(s,g,s.c.b,s.c)}function R6n(e,t,i){var s,a,c,b;for(b=il(e.e,t,0),c=new M0e,c.b=i,s=new No(e.e,b);s.b1;t>>=1)t&1&&(s=e2(s,i)),i.d==1?i=e2(i,i):i=new tSt(_Rt(i.a,i.d,Fe(Xn,wr,28,i.d<<1,15,1)));return s=e2(s,i),s}function jEe(){jEe=F;var e,t,i,s;for(w4e=Fe(Ro,js,28,25,15,1),m4e=Fe(Ro,js,28,33,15,1),s=152587890625e-16,t=32;t>=0;t--)m4e[t]=s,s*=.5;for(i=1,e=24;e>=0;e--)w4e[e]=i,i*=.5}function I6n(e){var t,i;if(mt(wt(Ye(e,(bt(),D_))))){for(i=new kn(xn(Rb(e).a.Kc(),new O));Un(i);)if(t=f(On(i),74),ny(t)&&mt(wt(Ye(t,Nw))))return!0}return!1}function B2t(e,t){var i,s,a;Zi(e.f,t)&&(t.b=e,s=t.c,il(e.j,s,0)!=-1||lt(e.j,s),a=t.d,il(e.j,a,0)!=-1||lt(e.j,a),i=t.a.b,i.c.length!=0&&(!e.i&&(e.i=new lSt(e)),DRn(e.i,i)))}function P6n(e){var t,i,s,a,c;return i=e.c.d,s=i.j,a=e.d.d,c=a.j,s==c?i.p=0&&Ht(e.substr(t,3),"GMT")||t>=0&&Ht(e.substr(t,3),"UTC"))&&(i[0]=t+3),w3e(e,i,s)}function N6n(e,t){var i,s,a,c,b;for(c=e.g.a,b=e.g.b,s=new ee(e.d);s.ai;c--)e[c]|=t[c-i-1]>>>b,e[c-1]=t[c-i-1]<0&&oa(e.g,t,e.g,t+s,g),b=i.Kc(),e.i+=s,a=0;a>4&15,c=e[s]&15,b[a++]=gOe[i],b[a++]=gOe[c];return Bh(b,0,b.length)}function Qa(e){var t,i;return e>=ys?(t=dM+(e-ys>>10&1023)&Ji,i=56320+(e-ys&1023)&Ji,String.fromCharCode(t)+(""+String.fromCharCode(i))):String.fromCharCode(e&Ji)}function V6n(e,t){Mv();var i,s,a,c;return a=f(f(Hr(e.r,t),21),87),a.gc()>=2?(s=f(a.Kc().Pb(),117),i=e.u.Hc(($c(),O5)),c=e.u.Hc(fR),!s.a&&!i&&(a.gc()==2||c)):!1}function U2t(e,t,i,s,a){var c,b,g;for(c=A3t(e,t,i,s,a),g=!1;!c;)FH(e,a,!0),g=!0,c=A3t(e,t,i,s,a);g&&FH(e,a,!1),b=Jee(a),b.c.length!=0&&(e.d&&e.d.Gg(b),U2t(e,a,i,s,b))}function OH(){OH=F,Rce=new x$(Jh,0),BPe=new x$("DIRECTED",1),HPe=new x$("UNDIRECTED",2),jPe=new x$("ASSOCIATION",3),WPe=new x$("GENERALIZATION",4),FPe=new x$("DEPENDENCY",5)}function z6n(e,t){var i;if(!Xd(e))throw ne(new Us(oTt));switch(i=Xd(e),t.g){case 1:return-(e.j+e.f);case 2:return e.i-i.g;case 3:return e.j-i.f;case 4:return-(e.i+e.g)}return 0}function K6n(e,t,i){var s,a,c;return s=t.Lk(),c=t.md(),a=s.Jk()?T1(e,4,s,c,null,mA(e,s,c,ve(s,102)&&(f(s,19).Bb&ys)!=0),!0):T1(e,s.tk()?2:1,s,c,s.ik(),-1,!0),i?i.nj(a):i=a,i}function aA(e,t){var i,s;for(mn(t),s=e.b.c.length,lt(e.b,t);s>0;){if(i=s,s=(s-1)/2|0,e.a.Ne(vt(e.b,s),t)<=0)return Ku(e.b,i,t),!0;Ku(e.b,i,vt(e.b,s))}return Ku(e.b,s,t),!0}function WEe(e,t,i,s){var a,c;if(a=0,i)a=YW(e.a[i.g][t.g],s);else for(c=0;c=g)}function G2t(e){switch(e.g){case 0:return new lQe;case 1:return new aQe;default:throw ne(new hn("No implementation is available for the width approximator "+(e.f!=null?e.f:""+e.g)))}}function HEe(e,t,i,s){var a;if(a=!1,Eo(s)&&(a=!0,cC(t,i,or(s))),a||Iv(s)&&(a=!0,HEe(e,t,i,s)),a||ve(s,242)&&(a=!0,ew(t,i,f(s,242))),!a)throw ne(new IY(wAe))}function X6n(e,t){var i,s,a;if(i=t.qi(e.a),i&&(a=Od((!i.b&&(i.b=new nu((zt(),_s),Ll,i)),i.b),kf),a!=null)){for(s=1;s<(gc(),BOe).length;++s)if(Ht(BOe[s],a))return s}return 0}function J6n(e,t){var i,s,a;if(i=t.qi(e.a),i&&(a=Od((!i.b&&(i.b=new nu((zt(),_s),Ll,i)),i.b),kf),a!=null)){for(s=1;s<(gc(),WOe).length;++s)if(Ht(WOe[s],a))return s}return 0}function V2t(e,t){var i,s,a,c;if(mn(t),c=e.a.gc(),c0?1:0;c.a[a]!=i;)c=c.a[a],a=e.a.Ne(i.d,c.d)>0?1:0;c.a[a]=s,s.b=i.b,s.a[0]=i.a[0],s.a[1]=i.a[1],i.a[0]=null,i.a[1]=null}function Z6n(e){var t,i,s,a;for(t=new st,i=Fe(Xc,Tp,28,e.a.c.length,16,1),uve(i,i.length),a=new ee(e.a);a.a0&&wRt((qt(0,i.c.length),f(i.c[0],30)),e),i.c.length>1&&wRt(f(vt(i,i.c.length-1),30),e),t.Vg()}function tIn(e){$c();var t,i;return t=ii(Mb,se(ie(Ez,1),Je,279,0,[f0])),!(sN(XB(t,e))>1||(i=ii(O5,se(ie(Ez,1),Je,279,0,[P5,fR])),sN(XB(i,e))>1))}function GEe(e,t){var i;i=ua((_1(),Nf),e),ve(i,507)?Gs(Nf,e,new Lut(this,t)):Gs(Nf,e,this),pne(this,t),t==(qx(),AOe)?(this.wb=f(this,2038),f(t,2040)):this.wb=(C1(),un)}function nIn(e){var t,i,s;if(e==null)return null;for(t=null,i=0;i=Tg?"error":s>=900?"warn":s>=800?"info":"log"),ibt(i,e.a),e.b&&zke(t,i,e.b,"Exception: ",!0))}function V(e,t){var i,s;return s=(!e.q&&(e.q=new Fn),En(e.q,t)),s??(i=t.Sg(),ve(i,4)&&(i==null?(!e.q&&(e.q=new Fn),f3(e.q,t)):(!e.q&&(e.q=new Fn),xr(e.q,t,i))),i)}function Yo(){Yo=F,cd=new KO("P1_CYCLE_BREAKING",0),Pp=new KO("P2_LAYERING",1),sa=new KO("P3_NODE_ORDERING",2),ga=new KO("P4_NODE_PLACEMENT",3),ll=new KO("P5_EDGE_ROUTING",4)}function rIn(e,t){a6();var i;if(e.c==t.c){if(e.b==t.b||uRn(e.b,t.b)){if(i=Mgn(e.b)?1:-1,e.a&&!t.a)return i;if(!e.a&&t.a)return-i}return Xl(e.b.g,t.b.g)}else return Qr(e.c,t.c)}function J2t(e,t){var i,s,a;if(zEe(e,t))return!0;for(s=new ee(t);s.a=a||t<0)throw ne(new Hs(Ioe+t+xw+a));if(i>=a||i<0)throw ne(new Hs(Poe+i+xw+a));return t!=i?s=(c=e.Cj(i),e.qj(t,c),c):s=e.xj(i),s}function Z2t(e){var t,i,s;if(s=e,e)for(t=0,i=e.Eh();i;i=i.Eh()){if(++t>Wre)return Z2t(i);if(s=i,i==e)throw ne(new Us("There is a cycle in the containment hierarchy of "+e))}return s}function B1(e){var t,i,s;for(s=new cw(ds,"[","]"),i=e.Kc();i.Ob();)t=i.Pb(),bb(s,Oe(t)===Oe(e)?"(this Collection)":t==null?Za:dl(t));return s.a?s.e.length==0?s.a.a:s.a.a+(""+s.e):s.c}function zEe(e,t){var i,s;if(s=!1,t.gc()<2)return!1;for(i=0;i1&&(e.j.b+=e.e)):(e.j.a+=i.a,e.j.b=h.Math.max(e.j.b,i.b),e.d.c.length>1&&(e.j.a+=e.e))}function W1(){W1=F,u8t=se(ie(vs,1),Ql,64,0,[(ut(),bn),_n,jn]),c8t=se(ie(vs,1),Ql,64,0,[_n,jn,wn]),f8t=se(ie(vs,1),Ql,64,0,[jn,wn,bn]),d8t=se(ie(vs,1),Ql,64,0,[wn,bn,_n])}function oIn(e,t,i,s){var a,c,b,g,m,_,k;if(b=e.c.d,g=e.d.d,b.j!=g.j)for(k=e.b,a=b.j,m=null;a!=g.j;)m=t==0?tH(a):d2e(a),c=z2e(a,k.d[a.g],i),_=z2e(m,k.d[m.g],i),hr(s,Mr(c,_)),a=m}function sIn(e,t,i,s){var a,c,b,g,m;return b=r2t(e.a,t,i),g=f(b.a,17).a,c=f(b.b,17).a,s&&(m=f(V(t,(nt(),Ic)),10),a=f(V(i,Ic),10),m&&a&&(G1t(e.b,m,a),g+=e.b.i,c+=e.b.e)),g>c}function tEt(e){var t,i,s,a,c,b,g,m,_;for(this.a=kSt(e),this.b=new st,i=e,s=0,a=i.length;sUQ(e.d).c?(e.i+=e.g.c,Tte(e.d)):UQ(e.d).c>UQ(e.g).c?(e.e+=e.d.c,Tte(e.g)):(e.i+=dpt(e.g),e.e+=dpt(e.d),Tte(e.g),Tte(e.d))}function uIn(e,t,i){var s,a,c,b;for(c=t.q,b=t.r,new tw((Td(),i0),t,c,1),new tw(i0,c,b,1),a=new ee(i);a.ag&&(m=g/s),a>c&&(_=c/a),b=h.Math.min(m,_),e.a+=b*(t.a-e.a),e.b+=b*(t.b-e.b)}function pIn(e,t,i,s,a){var c,b;for(b=!1,c=f(vt(i.b,0),27);UMn(e,t,c,s,a)&&(b=!0,G$n(i,c),i.b.c.length!=0);)c=f(vt(i.b,0),27);return i.b.c.length==0&&IN(i.j,i),b&&RH(t.q),b}function bIn(e,t){m2();var i,s,a,c;if(t.b<2)return!1;for(c=Hn(t,0),i=f(Bn(c),8),s=i;c.b!=c.d.c;){if(a=f(Bn(c),8),$ne(e,s,a))return!0;s=a}return!!$ne(e,s,i)}function qEe(e,t,i,s){var a,c;return i==0?(!e.o&&(e.o=new pc((Yl(),Fp),Hg,e,0)),sB(e.o,t,s)):(c=f(tn((a=f(dn(e,16),29),a||e.ii()),i),69),c.wk().Ak(e,ja(e),i-Pn(e.ii()),t,s))}function pne(e,t){var i;t!=e.sb?(i=null,e.sb&&(i=f(e.sb,54).Th(e,1,D5,i)),t&&(i=f(t,54).Rh(e,1,D5,i)),i=s2e(e,t,i),i&&i.oj()):e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,4,t,t))}function gIn(e,t){var i,s,a,c;if(t)a=yb(t,"x"),i=new Xot(e),AC(i.a,(mn(a),a)),c=yb(t,"y"),s=new Jot(e),$C(s.a,(mn(c),c));else throw ne(new $h("All edge sections need an end point."))}function wIn(e,t){var i,s,a,c;if(t)a=yb(t,"x"),i=new zot(e),TC(i.a,(mn(a),a)),c=yb(t,"y"),s=new Kot(e),IC(s.a,(mn(c),c));else throw ne(new $h("All edge sections need a start point."))}function mIn(e,t){var i,s,a,c,b,g,m;for(s=Ivt(e),c=0,g=s.length;c>22-t,a=e.h<>22-t):t<44?(i=0,s=e.l<>44-t):(i=0,s=0,a=e.l<e)throw ne(new hn("k must be smaller than n"));return t==0||t==e?1:e==0?0:_Ee(e)/(_Ee(t)*_Ee(e-t))}function XEe(e,t){var i,s,a,c;for(i=new fme(e);i.g==null&&!i.c?Uve(i):i.g==null||i.i!=0&&f(i.g[i.i-1],51).Ob();)if(c=f(BH(i),58),ve(c,167))for(s=f(c,167),a=0;a>4],t[i*2+1]=Gz[c&15];return Bh(t,0,t.length)}function NIn(e){LB();var t,i,s;switch(s=e.c.length,s){case 0:return a6t;case 1:return t=f(HEt(new ee(e)),44),Cyn(t.ld(),t.md());default:return i=f(ih(e,Fe(Tw,fU,44,e.c.length,0,1)),173),new q0e(i)}}function MIn(e){var t,i,s,a,c,b;for(t=new qS,i=new qS,$1(t,e),$1(i,e);i.b!=i.c;)for(a=f(t3(i),36),b=new ee(a.a);b.a0&&qN(e,i,t),a):E8n(e,t,i)}function H1(){H1=F,hMt=(Er(),lR),pMt=Uw,cMt=Hw,uMt=fE,fMt=l0,aMt=uE,N5e=O9,dMt=z_,Pae=(c3e(),YNt),Oae=QNt,D5e=nMt,Nae=oMt,L5e=rMt,j5e=iMt,M5e=ZNt,rz=eMt,iz=tMt,_9=sMt,F5e=lMt,O5e=JNt}function cEt(e,t){var i,s,a,c,b;if(e.e<=t||o2n(e,e.g,t))return e.g;for(c=e.r,s=e.g,b=e.r,a=(c-s)/2+s;s+11&&(e.e.b+=e.a)):(e.e.a+=i.a,e.e.b=h.Math.max(e.e.b,i.b),e.d.c.length>1&&(e.e.a+=e.a))}function BIn(e){var t,i,s,a;switch(a=e.i,t=a.b,s=a.j,i=a.g,a.a.g){case 0:i.a=(e.g.b.o.a-s.a)/2;break;case 1:i.a=t.d.n.a+t.d.a.a;break;case 2:i.a=t.d.n.a+t.d.a.a-s.a;break;case 3:i.b=t.d.n.b+t.d.a.b}}function WIn(e,t,i){var s,a,c;for(a=new kn(xn(Sb(i).a.Kc(),new O));Un(a);)s=f(On(a),18),!ms(s)&&!(!ms(s)&&s.c.i.c==s.d.i.c)&&(c=Zkt(e,s,i,new rlt),c.c.length>1&&sn(t.c,c))}function fEt(e,t,i,s,a){if(ss&&(e.a=s),e.ba&&(e.b=a),e}function HIn(e){if(ve(e,143))return yOn(f(e,143));if(ve(e,233))return cAn(f(e,233));if(ve(e,23))return vIn(f(e,23));throw ne(new hn(mAe+B1(new kc(se(ie(ho,1),on,1,5,[e])))))}function UIn(e,t,i,s,a){var c,b,g;for(c=!0,b=0;b>>a|i[b+s+1]<>>a,++b}return c}function ZEe(e,t,i,s){var a,c,b;if(t.k==(gn(),vo)){for(c=new kn(xn(go(t).a.Kc(),new O));Un(c);)if(a=f(On(c),18),b=a.c.i.k,b==vo&&e.c.a[a.c.i.c.p]==s&&e.c.a[t.c.p]==i)return!0}return!1}function GIn(e,t){var i,s,a,c;return t&=63,i=e.h&Ab,t<22?(c=i>>>t,a=e.m>>t|i<<22-t,s=e.l>>t|e.m<<22-t):t<44?(c=0,a=i>>>t-22,s=e.m>>t-22|e.h<<44-t):(c=0,a=0,s=i>>>t-44),Oa(s&Vc,a&Vc,c&Ab)}function dEt(e,t,i,s){var a;this.b=s,this.e=e==(zm(),s5),a=t[i],this.d=q0(Xc,[rt,Tp],[183,28],16,[a.length,a.length],2),this.a=q0(Xn,[rt,wr],[53,28],15,[a.length,a.length],2),this.c=new NEe(t,i)}function VIn(e){var t,i,s;for(e.k=new zve((ut(),se(ie(vs,1),Ql,64,0,[Cl,bn,_n,jn,wn])).length,e.j.c.length),s=new ee(e.j);s.a=i)return uA(e,t,s.p),!0;return!1}function p2(e,t,i,s){var a,c,b,g,m,_;for(b=i.length,c=0,a=-1,_=omt((pn(t,e.length+1),e.substr(t)),(qQ(),b4e)),g=0;gc&&mvn(_,omt(i[g],b4e))&&(a=g,c=m);return a>=0&&(s[0]=t+c),a}function pEt(e){var t;return e.Db&64?bne(e):(t=new gu(lAe),!e.a||br(br((t.a+=' "',t),e.a),'"'),br(wm(br(wm(br(wm(br(wm((t.a+=" (",t),e.i),","),e.j)," | "),e.g),","),e.f),")"),t.a)}function bEt(e,t,i){var s,a,c,b,g;for(g=Fa(e.e.Dh(),t),a=f(e.g,124),s=0,b=0;bi?cke(e,i,"start index"):t<0||t>i?cke(t,i,"end index"):z6("end index (%s) must not be less than start index (%s)",se(ie(ho,1),on,1,5,[ot(t),ot(e)]))}function wEt(e,t){var i,s,a,c;for(s=0,a=e.length;s0&&mEt(e,c,i));t.p=0}function Rt(e){var t;this.c=new li,this.f=e.e,this.e=e.d,this.i=e.g,this.d=e.c,this.b=e.b,this.k=e.j,this.a=e.a,e.i?this.j=e.i:this.j=(t=f(kd(Mp),9),new Uu(t,f(Yf(t,t.length),9),0)),this.g=e.f}function YIn(e){var t,i,s,a;for(t=Q0(br(new gu("Predicates."),"and"),40),i=!0,a=new YT(e);a.b0?g[b-1]:Fe(Op,$g,10,0,0,1),a=g[b],_=b=0?e.ki(a):hke(e,s);else throw ne(new hn(X1+s.xe()+_I));else throw ne(new hn(gTt+t+wTt));else Yu(e,i,s)}function eke(e){var t,i;if(i=null,t=!1,ve(e,211)&&(t=!0,i=f(e,211).a),t||ve(e,263)&&(t=!0,i=""+f(e,263).a),t||ve(e,493)&&(t=!0,i=""+f(e,493).a),!t)throw ne(new IY(wAe));return i}function tke(e,t,i){var s,a,c,b,g,m;for(m=Fa(e.e.Dh(),t),s=0,g=e.i,a=f(e.g,124),b=0;b=e.d.b.c.length&&(t=new ca(e.d),t.p=s.p-1,lt(e.d.b,t),i=new ca(e.d),i.p=s.p,lt(e.d.b,i)),Oo(s,f(vt(e.d.b,s.p),30))}function ike(e,t,i){var s,a,c;if(!e.b[t.g]){for(e.b[t.g]=!0,s=i,!s&&(s=new H7),hr(s.b,t),c=e.a[t.g].Kc();c.Ob();)a=f(c.Pb(),65),a.b!=t&&ike(e,a.b,s),a.c!=t&&ike(e,a.c,s),hr(s.a,a);return s}return null}function t5n(e){switch(e.g){case 0:case 1:case 2:return ut(),bn;case 3:case 4:case 5:return ut(),jn;case 6:case 7:case 8:return ut(),wn;case 9:case 10:case 11:return ut(),_n;default:return ut(),Cl}}function n5n(e,t){var i;return e.c.length==0?!1:(i=D_t((qt(0,e.c.length),f(e.c[0],18)).c.i),mu(),i==(n_(),Z2)||i==Q2?!0:t2(nl(new Wt(null,new Vt(e,16)),new sJe),new not(t)))}function yne(e,t){if(ve(t,207))return Jgn(e,f(t,27));if(ve(t,193))return Ygn(e,f(t,123));if(ve(t,452))return Xgn(e,f(t,166));throw ne(new hn(mAe+B1(new kc(se(ie(ho,1),on,1,5,[t])))))}function kEt(e,t,i){var s,a;if(this.f=e,s=f(En(e.b,t),260),a=s?s.a:0,S_e(i,a),i>=(a/2|0))for(this.e=s?s.c:null,this.d=a;i++0;)z_e(this);this.b=t,this.a=null}function r5n(e,t){var i,s;t.a?LOn(e,t):(i=f(HY(e.b,t.b),60),i&&i==e.a[t.b.f]&&i.a&&i.a!=t.b.a&&i.c.Fc(t.b),s=f(WY(e.b,t.b),60),s&&e.a[s.f]==t.b&&s.a&&s.a!=t.b.a&&t.b.c.Fc(s),MQ(e.b,t.b))}function REt(e,t){var i,s;if(i=f(Ds(e.b,t),127),f(f(Hr(e.r,t),21),87).dc()){i.n.b=0,i.n.c=0;return}i.n.b=e.C.b,i.n.c=e.C.c,e.A.Hc((su(),Vw))&&Y3t(e,t),s=I4n(e,t),Pne(e,t)==(a2(),c0)&&(s+=2*e.w),i.a.a=s}function xEt(e,t){var i,s;if(i=f(Ds(e.b,t),127),f(f(Hr(e.r,t),21),87).dc()){i.n.d=0,i.n.a=0;return}i.n.d=e.C.d,i.n.a=e.C.a,e.A.Hc((su(),Vw))&&Q3t(e,t),s=$4n(e,t),Pne(e,t)==(a2(),c0)&&(s+=2*e.w),i.a.b=s}function i5n(e,t){var i,s,a,c;for(c=new st,s=new ee(t);s.as&&(pn(t-1,e.length),e.charCodeAt(t-1)<=32);)--t;return s>0||ti.a&&(s.Hc((bw(),S5))?a=(t.a-i.a)/2:s.Hc(E5)&&(a=t.a-i.a)),t.b>i.b&&(s.Hc((bw(),R5))?c=(t.b-i.b)/2:s.Hc(k5)&&(c=t.b-i.b)),UEe(e,a,c)}function OEt(e,t,i,s,a,c,b,g,m,_,k,I,D){ve(e.Cb,90)&&l_(Bc(f(e.Cb,90)),4),Ra(e,i),e.f=b,YC(e,g),ZC(e,m),JC(e,_),QC(e,k),Sg(e,I),eA(e,D),_g(e,!0),wg(e,a),e.Zk(c),dw(e,t),s!=null&&(e.i=null,DW(e,s))}function cke(e,t,i){if(e<0)return z6($Ct,se(ie(ho,1),on,1,5,[i,ot(e)]));if(t<0)throw ne(new hn(ICt+t));return z6("%s (%s) must not be greater than size (%s)",se(ie(ho,1),on,1,5,[i,ot(e),ot(t)]))}function uke(e,t,i,s,a,c){var b,g,m,_;if(b=s-i,b<7){QCn(t,i,s,c);return}if(m=i+a,g=s+a,_=m+(g-m>>1),uke(t,e,m,_,-a,c),uke(t,e,_,g,-a,c),c.Ne(e[_-1],e[_])<=0){for(;i=0?e.bi(c,i):Bke(e,a,i);else throw ne(new hn(X1+a.xe()+_I));else throw ne(new hn(gTt+t+wTt));else Qu(e,s,a,i)}function NEt(e){var t,i;if(e.f){for(;e.n>0;){if(t=f(e.k.Xb(e.n-1),76),i=t.Lk(),ve(i,102)&&f(i,19).Bb&Vl&&(!e.e||i.pk()!=$4||i.Lj()!=0)&&t.md()!=null)return!0;--e.n}return!1}else return e.n>0}function MEt(e){var t,i,s,a;if(i=f(e,54)._h(),i)try{if(s=null,t=dA((_1(),Nf),vRt(uAn(i))),t&&(a=t.ai(),a&&(s=a.Fl(fbn(i.e)))),s&&s!=e)return MEt(s)}catch(c){if(c=mi(c),!ve(c,63))throw ne(c)}return e}function v5n(e,t,i){var s,a,c;i.Ug("Remove overlaps",1),i.dh(t,vCe),s=f(Ye(t,(JS(),nE)),27),e.f=s,e.a=Fte(f(Ye(t,(H1(),_9)),300)),a=je(Ye(t,(Er(),Uw))),n0e(e,(mn(a),a)),c=c_(s),Hxt(e,t,c,i),i.dh(t,qU)}function _5n(e){var t,i,s;if(mt(wt(Ye(e,(Er(),I9))))){for(s=new st,i=new kn(xn(Rb(e).a.Kc(),new O));Un(i);)t=f(On(i),74),ny(t)&&mt(wt(Ye(t,hce)))&&sn(s.c,t);return s}else return Kt(),Kt(),ps}function DEt(e){if(!e)return Dlt(),w6t;var t=e.valueOf?e.valueOf():e;if(t!==e){var i=lse[typeof t];return i?i(t):ZSe(typeof t)}else return e instanceof Array||e instanceof h.Array?new J1e(e):new $O(e)}function LEt(e,t,i){var s,a,c;switch(c=e.o,s=f(Ds(e.p,i),252),a=s.i,a.b=F6(s),a.a=j6(s),a.b=h.Math.max(a.b,c.a),a.b>c.a&&!t&&(a.b=c.a),a.c=-(a.b-c.a)/2,i.g){case 1:a.d=-a.a;break;case 3:a.d=c.b}Vne(s),zne(s)}function jEt(e,t,i){var s,a,c;switch(c=e.o,s=f(Ds(e.p,i),252),a=s.i,a.b=F6(s),a.a=j6(s),a.a=h.Math.max(a.a,c.b),a.a>c.b&&!t&&(a.a=c.b),a.d=-(a.a-c.b)/2,i.g){case 4:a.c=-a.b;break;case 2:a.c=c.a}Vne(s),zne(s)}function S5n(e,t){var i,s,a,c,b;if(!t.dc()){if(a=f(t.Xb(0),131),t.gc()==1){b3t(e,a,a,1,0,t);return}for(i=1;i0)try{a=Ru(t,Qo,Nr)}catch(c){throw c=mi(c),ve(c,130)?(s=c,ne(new wW(s))):ne(c)}return i=(!e.a&&(e.a=new bY(e)),e.a),a=0?f(Se(i,a),58):null}function x5n(e,t){if(e<0)return z6($Ct,se(ie(ho,1),on,1,5,["index",ot(e)]));if(t<0)throw ne(new hn(ICt+t));return z6("%s (%s) must be less than size (%s)",se(ie(ho,1),on,1,5,["index",ot(e),ot(t)]))}function C5n(e){var t,i,s,a,c;if(e==null)return Za;for(c=new cw(ds,"[","]"),i=e,s=0,a=i.length;s=0?e.Lh(i,!0,!0):ry(e,a,!0),160)),f(s,220).Zl(t);else throw ne(new hn(X1+t.xe()+_I))}function pke(e){var t,i;return e>-0x800000000000&&e<0x800000000000?e==0?0:(t=e<0,t&&(e=-e),i=oo(h.Math.floor(h.Math.log(e)/.6931471805599453)),(!t||e!=h.Math.pow(2,i))&&++i,i):tvt(Gl(e))}function H5n(e){var t,i,s,a,c,b,g;for(c=new Oh,i=new ee(e);i.a2&&g.e.b+g.j.b<=2&&(a=g,s=b),c.a.zc(a,c),a.q=s);return c}function U5n(e,t,i){i.Ug("Eades radial",1),i.dh(t,qU),e.d=f(Ye(t,(JS(),nE)),27),e.c=Ae(je(Ye(t,(H1(),iz)))),e.e=Fte(f(Ye(t,_9),300)),e.a=mAn(f(Ye(t,F5e),434)),e.b=j$n(f(Ye(t,M5e),354)),v$n(e),i.dh(t,qU)}function G5n(e,t){if(t.Ug("Target Width Setter",1),eh(e,(sh(),zae)))zr(e,(Ep(),G_),je(Ye(e,zae)));else throw ne(new rg("A target width has to be set if the TargetWidthWidthApproximator should be used."));t.Vg()}function UEt(e,t){var i,s,a;return s=new kb(e),ol(s,t),Xe(s,(nt(),_V),t),Xe(s,(bt(),Oi),(Co(),ya)),Xe(s,np,(_p(),gz)),W0(s,(gn(),Ui)),i=new ia,Sl(i,s),so(i,(ut(),wn)),a=new ia,Sl(a,s),so(a,_n),s}function GEt(e){switch(e.g){case 0:return new AY((zm(),b9));case 1:return new lnt;case 2:return new ant;default:throw ne(new hn("No implementation is available for the crossing minimizer "+(e.f!=null?e.f:""+e.g)))}}function VEt(e,t){var i,s,a,c,b;for(e.c[t.p]=!0,lt(e.a,t),b=new ee(t.j);b.a=c)b.$b();else for(a=b.Kc(),s=0;s0?Z0e():b<0&&XEt(e,t,-b),!0):!1}function j6(e){var t,i,s,a,c,b,g;if(g=0,e.b==0){for(b=ISt(e,!0),t=0,s=b,a=0,c=s.length;a0&&(g+=i,++t);t>1&&(g+=e.c*(t-1))}else g=qlt(Hee(Wv(Br(ave(e.a),new So),new ql)));return g>0?g+e.n.d+e.n.a:0}function F6(e){var t,i,s,a,c,b,g;if(g=0,e.b==0)g=qlt(Hee(Wv(Br(ave(e.a),new Zc),new bu)));else{for(b=PSt(e,!0),t=0,s=b,a=0,c=s.length;a0&&(g+=i,++t);t>1&&(g+=e.c*(t-1))}return g>0?g+e.n.b+e.n.c:0}function Y5n(e){var t,i;if(e.c.length!=2)throw ne(new Us("Order only allowed for two paths."));t=(qt(0,e.c.length),f(e.c[0],18)),i=(qt(1,e.c.length),f(e.c[1],18)),t.d.i!=i.c.i&&(e.c.length=0,sn(e.c,i),sn(e.c,t))}function JEt(e,t,i){var s;for(GS(i,t.g,t.f),Wu(i,t.i,t.j),s=0;s<(!t.a&&(t.a=new qe($r,t,10,11)),t.a).i;s++)JEt(e,f(Se((!t.a&&(t.a=new qe($r,t,10,11)),t.a),s),27),f(Se((!i.a&&(i.a=new qe($r,i,10,11)),i.a),s),27))}function Q5n(e,t){var i,s,a,c;for(c=f(Ds(e.b,t),127),i=c.a,a=f(f(Hr(e.r,t),21),87).Kc();a.Ob();)s=f(a.Pb(),117),s.c&&(i.a=h.Math.max(i.a,Fye(s.c)));if(i.a>0)switch(t.g){case 2:c.n.c=e.s;break;case 4:c.n.b=e.s}}function Z5n(e,t){var i,s,a;return i=f(V(t,(od(),K3)),17).a-f(V(e,K3),17).a,i==0?(s=uo(Ho(f(V(e,(P1(),XM)),8)),f(V(e,FI),8)),a=uo(Ho(f(V(t,XM),8)),f(V(t,FI),8)),Qr(s.a*s.b,a.a*a.b)):i}function e8n(e,t){var i,s,a;return i=f(V(t,(Il(),ZV)),17).a-f(V(e,ZV),17).a,i==0?(s=uo(Ho(f(V(e,(ei(),m9)),8)),f(V(e,y4),8)),a=uo(Ho(f(V(t,m9),8)),f(V(t,y4),8)),Qr(s.a*s.b,a.a*a.b)):i}function YEt(e){var t,i;return i=new m1,i.a+="e_",t=KRn(e),t!=null&&(i.a+=""+t),e.c&&e.d&&(br((i.a+=" ",i),CH(e.c)),br(aa((i.a+="[",i),e.c.i),"]"),br((i.a+=bie,i),CH(e.d)),br(aa((i.a+="[",i),e.d.i),"]")),i.a}function QEt(e){switch(e.g){case 0:return new wnt;case 1:return new mnt;case 2:return new bnt;case 3:return new pnt;default:throw ne(new hn("No implementation is available for the layout phase "+(e.f!=null?e.f:""+e.g)))}}function wke(e,t,i,s,a){var c;switch(c=0,a.g){case 1:c=h.Math.max(0,t.b+e.b-(i.b+s));break;case 3:c=h.Math.max(0,-e.b-s);break;case 2:c=h.Math.max(0,-e.a-s);break;case 4:c=h.Math.max(0,t.a+e.a-(i.a+s))}return c}function t8n(e,t,i){var s,a,c,b,g;if(i)for(a=i.a.length,s=new J0(a),g=(s.b-s.a)*s.c<0?(S1(),w0):new R1(s);g.Ob();)b=f(g.Pb(),17),c=vC(i,b.a),fAe in c.a||Toe in c.a?bNn(e,c,t):Njn(e,c,t),O1n(f(En(e.b,nA(c)),74))}function mke(e){var t,i;switch(e.b){case-1:return!0;case 0:return i=e.t,i>1||i==-1?(e.b=-1,!0):(t=_f(e),t&&(Ss(),t.lk()==m$t)?(e.b=-1,!0):(e.b=1,!1));default:case 1:return!1}}function yke(e,t){var i,s,a,c;if(Ir(e),e.c!=0||e.a!=123)throw ne(new ar(dr((ir(),BTt))));if(c=t==112,s=e.d,i=nC(e.i,125,s),i<0)throw ne(new ar(dr((ir(),WTt))));return a=Vu(e.i,s,i),e.d=i+1,Swt(a,c,(e.e&512)==512)}function ZEt(e){var t,i,s,a,c,b,g;if(s=e.a.c.length,s>0)for(b=e.c.d,g=e.d.d,a=Nh(uo(new tt(g.a,g.b),b),1/(s+1)),c=new tt(b.a,b.b),i=new ee(e.a);i.a=0&&s=0?e.Lh(i,!0,!0):ry(e,a,!0),160)),f(s,220).Wl(t);throw ne(new hn(X1+t.xe()+voe))}function o8n(){_we();var e;return nLt?f(dA((_1(),Nf),Rf),2038):(kr(Tw,new ket),eLn(),e=f(ve(ua((_1(),Nf),Rf),560)?ua(Nf,Rf):new gbt,560),nLt=!0,tFn(e),aFn(e),xr((vwe(),COe),e,new jZe),Gs(Nf,Rf,e),e)}function s8n(e,t){var i,s,a,c;e.j=-1,eu(e.e)?(i=e.i,c=e.i!=0,W7(e,t),s=new gb(e.e,3,e.c,null,t,i,c),a=t.zl(e.e,e.c,null),a=O2t(e,t,a),a?(a.nj(s),a.oj()):Dr(e.e,s)):(W7(e,t),a=t.zl(e.e,e.c,null),a&&a.oj())}function LH(e,t){var i,s,a;if(a=0,s=t[0],s>=e.length)return-1;for(i=(pn(s,e.length),e.charCodeAt(s));i>=48&&i<=57&&(a=a*10+(i-48),++s,!(s>=e.length));)i=(pn(s,e.length),e.charCodeAt(s));return s>t[0]?t[0]=s:a=-1,a}function l8n(e){var t,i,s,a,c;return a=f(e.a,17).a,c=f(e.b,17).a,i=a,s=c,t=h.Math.max(h.Math.abs(a),h.Math.abs(c)),a<=0&&a==c?(i=0,s=c-1):a==-t&&c!=t?(i=c,s=a,c>=0&&++i):(i=-c,s=a),new io(ot(i),ot(s))}function a8n(e,t,i,s){var a,c,b,g,m,_;for(a=0;a=0&&_>=0&&m=e.i)throw ne(new Hs(Ioe+t+xw+e.i));if(i>=e.i)throw ne(new Hs(Poe+i+xw+e.i));return s=e.g[i],t!=i&&(t>16),t=s>>16&16,i=16-t,e=e>>t,s=e-256,t=s>>16&8,i+=t,e<<=t,s=e-g_,t=s>>16&4,i+=t,e<<=t,s=e-Vh,t=s>>16&2,i+=t,e<<=t,s=e>>14,t=s&~(s>>1),i+2-t)}function u8n(e){s3();var t,i,s,a;for(NG=new st,$se=new Fn,Tse=new st,t=(!e.a&&(e.a=new qe($r,e,10,11)),e.a),ejn(t),a=new Sn(t);a.e!=a.i.gc();)s=f(Cn(a),27),il(NG,s,0)==-1&&(i=new st,lt(Tse,i),rSt(s,i));return Tse}function f8n(e,t,i){var s,a,c,b;e.a=i.b.d,ve(t,326)?(a=w2(f(t,74),!1,!1),c=LN(a),s=new Wrt(e),Vo(c,s),YN(c,a),t.of((Er(),My))!=null&&Vo(f(t.of(My),75),s)):(b=f(t,422),b.rh(b.nh()+e.a.a),b.sh(b.oh()+e.a.b))}function d8n(e,t){var i,s,a;for(a=new st,s=Hn(t.a,0);s.b!=s.d.c;)i=f(Bn(s),65),i.c.g==e.g&&Oe(V(i.b,(Il(),ip)))!==Oe(V(i.c,ip))&&!t2(new Wt(null,new Vt(a,16)),new pot(i))&&sn(a.c,i);return Hi(a,new zJe),a}function tkt(e,t,i){var s,a,c,b;return ve(t,153)&&ve(i,153)?(c=f(t,153),b=f(i,153),e.a[c.a][b.a]+e.a[b.a][c.a]):ve(t,250)&&ve(i,250)&&(s=f(t,250),a=f(i,250),s.a==a.a)?f(V(a.a,(od(),K3)),17).a:0}function nkt(e,t){var i,s,a,c,b,g,m,_;for(_=Ae(je(V(t,(bt(),e5)))),m=e[0].n.a+e[0].o.a+e[0].d.c+_,g=1;g=0?i:(g=Y$(uo(new tt(b.c+b.b/2,b.d+b.a/2),new tt(c.c+c.b/2,c.d+c.a/2))),-(ARt(c,b)-1)*g)}function p8n(e,t,i){var s;Mi(new Wt(null,(!i.a&&(i.a=new qe(ai,i,6,6)),new Vt(i.a,16))),new wut(e,t)),Mi(new Wt(null,(!i.n&&(i.n=new qe(Fs,i,1,7)),new Vt(i.n,16))),new mut(e,t)),s=f(Ye(i,(Er(),My)),75),s&&SSe(s,e,t)}function ry(e,t,i){var s,a,c;if(c=_2((gc(),qo),e.Dh(),t),c)return Ss(),f(c,69).xk()||(c=a3(Vs(qo,c))),a=(s=e.Ih(c),f(s>=0?e.Lh(s,!0,!0):ry(e,c,!0),160)),f(a,220).Sl(t,i);throw ne(new hn(X1+t.xe()+voe))}function vke(e,t,i,s){var a,c,b,g,m;if(a=e.d[t],a){if(c=a.g,m=a.i,s!=null){for(g=0;g=i&&(s=t,_=(m.c+m.a)/2,b=_-i,m.c<=_-i&&(a=new QQ(m.c,b),Tm(e,s++,a)),g=_+i,g<=m.a&&(c=new QQ(g,m.a),Uv(s,e.c.length),m$(e.c,s,c)))}function okt(e,t,i){var s,a,c,b,g,m;if(!t.dc()){for(a=new li,m=t.Kc();m.Ob();)for(g=f(m.Pb(),40),xr(e.a,ot(g.g),ot(i)),b=(s=Hn(new sb(g).a.d,0),new OS(s));LO(b.a);)c=f(Bn(b.a),65).c,Ai(a,c,a.c.b,a.c);okt(e,a,i+1)}}function _ke(e){var t;if(!e.c&&e.g==null)e.d=e.bj(e.f),zn(e,e.d),t=e.d;else{if(e.g==null)return!0;if(e.i==0)return!1;t=f(e.g[e.i-1],51)}return t==e.b&&null.Vm>=null.Um()?(BH(e),_ke(e)):t.Ob()}function skt(e){if(this.a=e,e.c.i.k==(gn(),Ui))this.c=e.c,this.d=f(V(e.c.i,(nt(),Dl)),64);else if(e.d.i.k==Ui)this.c=e.d,this.d=f(V(e.d.i,(nt(),Dl)),64);else throw ne(new hn("Edge "+e+" is not an external edge."))}function lkt(e,t){var i,s,a;a=e.b,e.b=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,3,a,e.b)),t?t!=e&&(Ra(e,t.zb),Iee(e,t.d),i=(s=t.c,s??t.zb),Oee(e,i==null||Ht(i,t.zb)?null:i)):(Ra(e,null),Iee(e,0),Oee(e,null))}function akt(e,t){var i;this.e=(Om(),nr(e),Om(),M2e(e)),this.c=(nr(t),M2e(t)),kme(this.e.Rd().dc()==this.c.Rd().dc()),this.d=E_t(this.e),this.b=E_t(this.c),i=q0(ho,[rt,on],[5,1],5,[this.e.Rd().gc(),this.c.Rd().gc()],2),this.a=i,U3n(this)}function ckt(e){!ose&&(ose=djn());var t=e.replace(/[\x00-\x1f\xad\u0600-\u0603\u06dd\u070f\u17b4\u17b5\u200b-\u200f\u2028-\u202e\u2060-\u2064\u206a-\u206f\ufeff\ufff9-\ufffb"\\]/g,function(i){return gSn(i)});return'"'+t+'"'}function Ske(e,t,i,s,a,c){var b,g,m,_,k;if(a!=0)for(Oe(e)===Oe(i)&&(e=e.slice(t,t+a),t=0),m=i,g=t,_=t+a;g<_;)b=h.Math.min(g+1e4,_),a=b-g,k=e.slice(g,b),k.splice(0,0,s,c?a:0),Array.prototype.splice.apply(m,k),g=b,s+=a}function ukt(e){Mve();var t,i;for(this.b=U6t,this.c=V6t,this.g=(hct(),H6t),this.d=(Xi(),wh),this.a=e,Gke(this),i=new ee(e.b);i.a=b)throw ne(new Lv(t,b));return a=i[t],b==1?s=null:(s=Fe(Nce,Loe,424,b-1,0,1),oa(i,0,s,0,t),c=b-t-1,c>0&&oa(i,t+1,s,t,c)),rA(e,s),PEt(e,t,a),a}function fkt(e){var t,i;if(e.f){for(;e.n0?c=y3(i):c=SN(y3(i))),zr(t,d4,c)}function _8n(e,t){var i;t.Ug("Partition preprocessing",1),i=f(fl(Br(El(Br(new Wt(null,new Vt(e.a,16)),new qKe),new XKe),new JKe),Cc(new K,new B,new Zt,se(ie(qs,1),Je,108,0,[(Tc(),pl)]))),15),Mi(i.Oc(),new YKe),t.Vg()}function S8n(e,t){var i,s,a,c,b;for(b=e.j,t.a!=t.b&&Hi(b,new CXe),a=b.c.length/2|0,s=0;s0&&qN(e,i,t),c):s.a!=null?(qN(e,t,i),-1):a.a!=null?(qN(e,i,t),1):0}function k8n(e,t){var i,s,a,c,b;for(a=t.b.b,e.a=Fe(lf,w_,15,a,0,1),e.b=Fe(Xc,Tp,28,a,16,1),b=Hn(t.b,0);b.b!=b.d.c;)c=f(Bn(b),40),e.a[c.g]=new li;for(s=Hn(t.a,0);s.b!=s.d.c;)i=f(Bn(s),65),e.a[i.b.g].Fc(i),e.a[i.c.g].Fc(i)}function bkt(e,t){var i,s,a,c;e.Pj()?(i=e.Ej(),c=e.Qj(),++e.j,e.qj(i,e.Zi(i,t)),s=e.Ij(3,null,t,i,c),e.Mj()?(a=e.Nj(t,null),a?(a.nj(s),a.oj()):e.Jj(s)):e.Jj(s)):(obt(e,t),e.Mj()&&(a=e.Nj(t,null),a&&a.oj()))}function Eke(e,t,i){var s,a,c;e.Pj()?(c=e.Qj(),mN(e,t,i),s=e.Ij(3,null,i,t,c),e.Mj()?(a=e.Nj(i,null),e.Tj()&&(a=e.Uj(i,a)),a?(a.nj(s),a.oj()):e.Jj(s)):e.Jj(s)):(mN(e,t,i),e.Mj()&&(a=e.Nj(i,null),a&&a.oj()))}function jH(e,t){var i,s,a,c,b;for(b=Fa(e.e.Dh(),t),a=new Fj,i=f(e.g,124),c=e.i;--c>=0;)s=i[c],b.am(s.Lk())&&zn(a,s);!uCt(e,a)&&eu(e.e)&&Ux(e,t.Jk()?T1(e,6,t,(Kt(),ps),null,-1,!1):T1(e,t.tk()?2:1,t,null,null,-1,!1))}function R8n(e,t){var i,s,a,c,b;return e.a==(cA(),UI)?!0:(c=t.a.c,i=t.a.c+t.a.b,!(t.j&&(s=t.A,b=s.c.c.a-s.o.a/2,a=c-(s.n.a+s.o.a),a>b)||t.q&&(s=t.C,b=s.c.c.a-s.o.a/2,a=s.n.a-i,a>b)))}function gkt(e){zZ();var t,i,s,a,c,b,g;for(i=new hg,a=new ee(e.e.b);a.a1?e.e*=Ae(e.a):e.f/=Ae(e.a),Kxn(e),ZAn(e),J7n(e),Xe(e.b,(T6(),OG),e.g)}function vkt(e,t,i){var s,a,c,b,g,m;for(s=0,m=i,t||(s=i*(e.c.length-1),m*=-1),c=new ee(e);c.a=0?e.Ah(null):e.Ph().Th(e,-1-t,null,null)),e.Bh(f(a,54),i),s&&s.oj(),e.vh()&&e.wh()&&i>-1&&Dr(e,new yo(e,9,i,c,a)),a):c}function xke(e,t){var i,s,a,c,b;for(c=e.b.Ce(t),s=(i=e.a.get(c),i??Fe(ho,on,1,0,5,1)),b=0;b>5,a>=e.d)return e.e<0;if(i=e.a[a],t=1<<(t&31),e.e<0){if(s=Nyt(e),a>16)),15).dd(c),g0&&(!(ab(e.a.c)&&t.n.d)&&!(US(e.a.c)&&t.n.b)&&(t.g.d+=h.Math.max(0,s/2-.5)),!(ab(e.a.c)&&t.n.a)&&!(US(e.a.c)&&t.n.c)&&(t.g.a-=s-1))}function Tkt(e){var t,i,s,a,c;if(a=new st,c=kRt(e,a),t=f(V(e,(nt(),Ic)),10),t)for(s=new ee(t.j);s.a>t,c=e.m>>t|i<<22-t,a=e.l>>t|e.m<<22-t):t<44?(b=s?Ab:0,c=i>>t-22,a=e.m>>t-22|i<<44-t):(b=s?Ab:0,c=s?Vc:0,a=i>>t-44),Oa(a&Vc,c&Vc,b&Ab)}function xne(e){var t,i,s,a,c,b;for(this.c=new st,this.d=e,s=hi,a=hi,t=to,i=to,b=Hn(e,0);b.b!=b.d.c;)c=f(Bn(b),8),s=h.Math.min(s,c.a),a=h.Math.min(a,c.b),t=h.Math.max(t,c.a),i=h.Math.max(i,c.b);this.a=new Gu(s,a,t-s,i-a)}function Ikt(e,t){var i,s,a,c,b,g;for(c=new ee(e.b);c.a0&&ve(t,44)&&(e.a._j(),_=f(t,44),m=_.ld(),c=m==null?0:ti(m),b=Yme(e.a,c),i=e.a.d[b],i)){for(s=f(i.g,379),k=i.i,g=0;g=2)for(i=a.Kc(),t=je(i.Pb());i.Ob();)c=t,t=je(i.Pb()),s=h.Math.min(s,(mn(t),t-(mn(c),c)));return s}function K8n(e,t){var i,s,a;for(a=new st,s=Hn(t.a,0);s.b!=s.d.c;)i=f(Bn(s),65),i.b.g==e.g&&!Ht(i.b.c,zU)&&Oe(V(i.b,(Il(),ip)))!==Oe(V(i.c,ip))&&!t2(new Wt(null,new Vt(a,16)),new bot(i))&&sn(a.c,i);return Hi(a,new JJe),a}function q8n(e,t){var i,s,a;if(Oe(t)===Oe(nr(e)))return!0;if(!ve(t,15)||(s=f(t,15),a=e.gc(),a!=s.gc()))return!1;if(ve(s,59)){for(i=0;i0&&(a=i),b=new ee(e.f.e);b.a0?(t-=1,i-=1):s>=0&&a<0?(t+=1,i+=1):s>0&&a>=0?(t-=1,i+=1):(t+=1,i-=1),new io(ot(t),ot(i))}function aPn(e,t){return e.ct.c?1:e.bt.b?1:e.a!=t.a?ti(e.a)-ti(t.a):e.d==(i6(),a5)&&t.d==l5?-1:e.d==l5&&t.d==a5?1:0}function jkt(e,t){var i,s,a,c,b;return c=t.a,c.c.i==t.b?b=c.d:b=c.c,c.c.i==t.b?s=c.c:s=c.d,a=$An(e.a,b,s),a>0&&a0):a<0&&-a0):!1}function cPn(e,t,i,s){var a,c,b,g,m,_,k,I;for(a=(t-e.d)/e.c.c.length,c=0,e.a+=i,e.d=t,I=new ee(e.c);I.a>24;return b}function fPn(e){if(e.ze()){var t=e.c;t.Ae()?e.o="["+t.n:t.ze()?e.o="["+t.xe():e.o="[L"+t.xe()+";",e.b=t.we()+"[]",e.k=t.ye()+"[]";return}var i=e.j,s=e.d;s=s.split("/"),e.o=$te(".",[i,$te("$",s)]),e.b=$te(".",[i,$te(".",s)]),e.k=s[s.length-1]}function dPn(e,t){var i,s,a,c,b;for(b=null,c=new ee(e.e.a);c.a=0;t-=2)for(i=0;i<=t;i+=2)(e.b[i]>e.b[i+2]||e.b[i]===e.b[i+2]&&e.b[i+1]>e.b[i+3])&&(s=e.b[i+2],e.b[i+2]=e.b[i],e.b[i]=s,s=e.b[i+3],e.b[i+3]=e.b[i+1],e.b[i+1]=s);e.c=!0}}function bPn(e,t){var i,s,a,c,b,g,m,_,k;for(_=-1,k=0,b=e,g=0,m=b.length;g0&&++k;++_}return k}function rd(e){var t,i;return i=new gu(z0(e.Rm)),i.a+="@",br(i,(t=ti(e)>>>0,t.toString(16))),e.Vh()?(i.a+=" (eProxyURI: ",aa(i,e._h()),e.Kh()&&(i.a+=" eClass: ",aa(i,e.Kh())),i.a+=")"):e.Kh()&&(i.a+=" (eClass: ",aa(i,e.Kh()),i.a+=")"),i.a}function H6(e){var t,i,s,a;if(e.e)throw ne(new Us((cb(mse),Xre+mse.k+Jre)));for(e.d==(Xi(),wh)&&sU(e,Js),i=new ee(e.a.a);i.a>24}return i}function mPn(e,t,i){var s,a,c;if(a=f(Ds(e.i,t),314),!a)if(a=new kmt(e.d,t,i),n3(e.i,t,a),B2e(t))S1n(e.a,t.c,t.b,a);else switch(c=t5n(t),s=f(Ds(e.p,c),252),c.g){case 1:case 3:a.j=!0,$Y(s,t.b,a);break;case 4:case 2:a.k=!0,$Y(s,t.c,a)}return a}function yPn(e,t){var i,s,a,c,b,g,m,_,k;for(m=pp(e.c-e.b&e.a.length-1),_=null,k=null,c=new Z$(e);c.a!=c.b;)a=f(QW(c),10),i=(g=f(V(a,(nt(),jd)),12),g?g.i:null),s=(b=f(V(a,Af),12),b?b.i:null),(_!=i||k!=s)&&(_kt(m,t),_=i,k=s),sn(m.c,a);_kt(m,t)}function vPn(e,t,i,s){var a,c,b,g,m,_;if(g=new Fj,m=Fa(e.e.Dh(),t),a=f(e.g,124),Ss(),f(t,69).xk())for(b=0;b=0)return a;for(c=1,g=new ee(t.j);g.a=0)return a;for(c=1,g=new ee(t.j);g.a0&&t.Ne((qt(a-1,e.c.length),f(e.c[a-1],10)),c)>0;)Ku(e,a,(qt(a-1,e.c.length),f(e.c[a-1],10))),--a;qt(a,e.c.length),e.c[a]=c}i.a=new Fn,i.b=new Fn}function _Pn(e,t,i){var s,a,c,b,g,m,_,k;for(k=(s=f(t.e&&t.e(),9),new Uu(s,f(Yf(s,s.length),9),0)),m=d_(i,"[\\[\\]\\s,]+"),c=m,b=0,g=c.length;b=0?(t||(t=new a$,s>0&&Ms(t,(Mo(0,s,e.length),e.substr(0,s)))),t.a+="\\",hC(t,i&Ji)):t&&hC(t,i&Ji);return t?t.a:e}function EPn(e){var t,i,s;for(i=new ee(e.a.a.b);i.a0&&(!(ab(e.a.c)&&t.n.d)&&!(US(e.a.c)&&t.n.b)&&(t.g.d-=h.Math.max(0,s/2-.5)),!(ab(e.a.c)&&t.n.a)&&!(US(e.a.c)&&t.n.c)&&(t.g.a+=h.Math.max(0,s-1)))}function Kkt(e,t,i){var s,a;if((e.c-e.b&e.a.length-1)==2)t==(ut(),bn)||t==_n?(kW(f(g6(e),15),(ku(),Dp)),kW(f(g6(e),15),a0)):(kW(f(g6(e),15),(ku(),a0)),kW(f(g6(e),15),Dp));else for(a=new Z$(e);a.a!=a.b;)s=f(QW(a),15),kW(s,i)}function kPn(e,t){var i,s,a,c,b,g,m;for(a=aC(new v0e(e)),g=new No(a,a.c.length),c=aC(new v0e(t)),m=new No(c,c.c.length),b=null;g.b>0&&m.b>0&&(i=(In(g.b>0),f(g.a.Xb(g.c=--g.b),27)),s=(In(m.b>0),f(m.a.Xb(m.c=--m.b),27)),i==s);)b=i;return b}function qkt(e,t,i){var s,a,c,b;Xgt(e,t)>Xgt(e,i)?(s=Rl(i,(ut(),_n)),e.d=s.dc()?0:iZ(f(s.Xb(0),12)),b=Rl(t,wn),e.b=b.dc()?0:iZ(f(b.Xb(0),12))):(a=Rl(i,(ut(),wn)),e.d=a.dc()?0:iZ(f(a.Xb(0),12)),c=Rl(t,_n),e.b=c.dc()?0:iZ(f(c.Xb(0),12)))}function Xkt(e,t){var i,s,a,c;for(i=e.o.a,c=f(f(Hr(e.r,t),21),87).Kc();c.Ob();)a=f(c.Pb(),117),a.e.a=i*Ae(je(a.b.of($G))),a.e.b=(s=a.b,s.pf((Er(),qc))?s.ag()==(ut(),bn)?-s.Mf().b-Ae(je(s.of(qc))):Ae(je(s.of(qc))):s.ag()==(ut(),bn)?-s.Mf().b:0)}function RPn(e,t){var i,s,a,c;for(t.Ug("Self-Loop pre-processing",1),s=new ee(e.a);s.ae.c));b++)a.a>=e.s&&(c<0&&(c=b),g=b);return m=(e.s+e.c)/2,c>=0&&(s=hNn(e,t,c,g),m=fgn((qt(s,t.c.length),f(t.c[s],339))),m8n(t,s,i)),m}function Zn(e,t,i){var s,a,c,b,g,m,_;for(b=(c=new B1e,c),pSe(b,(mn(t),t)),_=(!b.b&&(b.b=new nu((zt(),_s),Ll,b)),b.b),m=1;m0&&cDn(this,a)}function Lke(e,t,i,s,a,c){var b,g,m;if(!a[t.a]){for(a[t.a]=!0,b=s,!b&&(b=new aW),lt(b.e,t),m=c[t.a].Kc();m.Ob();)g=f(m.Pb(),290),!(g.d==i||g.c==i)&&(g.c!=t&&Lke(e,g.c,t,b,a,c),g.d!=t&&Lke(e,g.d,t,b,a,c),lt(b.c,g),eo(b.d,g.b));return b}return null}function APn(e){var t,i,s,a,c,b,g;for(t=0,a=new ee(e.e);a.a=2}function TPn(e,t,i,s,a){var c,b,g,m,_,k;for(c=e.c.d.j,b=f(tf(i,0),8),k=1;k1||(t=ii(dd,se(ie(Ps,1),Je,95,0,[Nb,hd])),sN(XB(t,e))>1)||(s=ii(bd,se(ie(Ps,1),Je,95,0,[Lp,$f])),sN(XB(s,e))>1))}function jke(e,t,i){var s,a,c;for(c=new ee(e.t);c.a0&&(s.b.n-=s.c,s.b.n<=0&&s.b.u>0&&hr(t,s.b));for(a=new ee(e.i);a.a0&&(s.a.u-=s.c,s.a.u<=0&&s.a.n>0&&hr(i,s.a))}function BH(e){var t,i,s,a,c;if(e.g==null&&(e.d=e.bj(e.f),zn(e,e.d),e.c))return c=e.f,c;if(t=f(e.g[e.i-1],51),a=t.Pb(),e.e=t,i=e.bj(a),i.Ob())e.d=i,zn(e,i);else for(e.d=null;!t.Ob()&&(Ci(e.g,--e.i,null),e.i!=0);)s=f(e.g[e.i-1],51),t=s;return a}function IPn(e,t){var i,s,a,c,b,g;if(s=t,a=s.Lk(),xb(e.e,a)){if(a.Si()&&rW(e,a,s.md()))return!1}else for(g=Fa(e.e.Dh(),a),i=f(e.g,124),c=0;c1||i>1)return 2;return t+i==1?2:0}function Uc(e,t){var i,s,a,c,b,g;return c=e.a*Vre+e.b*1502,g=e.b*Vre+11,i=h.Math.floor(g*pM),c+=i,g-=i*aRe,c%=aRe,e.a=c,e.b=g,t<=24?h.Math.floor(e.a*w4e[t]):(a=e.a*(1<=2147483648&&(s-=4294967296),s)}function e3t(e,t,i){var s,a,c,b,g,m,_;for(c=new st,_=new li,b=new li,ZMn(e,_,b,t),IDn(e,_,b,t,i),m=new ee(e);m.as.b.g&&sn(c.c,s);return c}function LPn(e,t,i){var s,a,c,b,g,m;for(g=e.c,b=(i.q?i.q:(Kt(),Kt(),Ip)).vc().Kc();b.Ob();)c=f(b.Pb(),44),s=!Xx(Br(new Wt(null,new Vt(g,16)),new Bx(new uut(t,c)))).Bd((K0(),z3)),s&&(m=c.md(),ve(m,4)&&(a=U2e(m),a!=null&&(m=a)),t.qf(f(c.ld(),149),m))}function jPn(e,t,i){var s,a;if(A7(e.b),Cd(e.b,(_N(),cz),(h$(),x9)),Cd(e.b,uz,t.g),Cd(e.b,fz,t.a),e.a=eM(e.b,t),i.Ug("Compaction by shrinking a tree",e.a.c.length),t.i.c.length>1)for(a=new ee(e.a);a.a=0?e.Lh(s,!0,!0):ry(e,c,!0),160)),f(a,220).Xl(t,i)}else throw ne(new hn(X1+t.xe()+_I))}function WH(e,t){var i,s,a,c,b;if(t){for(c=ve(e.Cb,90)||ve(e.Cb,102),b=!c&&ve(e.Cb,331),s=new Sn((!t.a&&(t.a=new U$(t,Os,t)),t.a));s.e!=s.i.gc();)if(i=f(Cn(s),89),a=eU(i),c?ve(a,90):b?ve(a,156):a)return a;return c?(zt(),Mf):(zt(),vh)}else return null}function FPn(e,t){var i,s,a,c;for(t.Ug("Resize child graph to fit parent.",1),s=new ee(e.b);s.a=2*t&<(i,new QQ(b[s-1]+t,b[s]-t));return i}function HPn(e,t,i){var s,a,c,b,g,m,_,k;if(i)for(c=i.a.length,s=new J0(c),g=(s.b-s.a)*s.c<0?(S1(),w0):new R1(s);g.Ob();)b=f(g.Pb(),17),a=vC(i,b.a),a&&(m=mEn(e,(_=(v1(),k=new F0e,k),t&&Wke(_,t),_),a),NC(m,db(a,Zh)),PH(a,m),fke(a,m),Zee(e,a,m))}function HH(e){var t,i,s,a,c,b;if(!e.j){if(b=new xZe,t=B5,c=t.a.zc(e,t),c==null){for(s=new Sn(rl(e));s.e!=s.i.gc();)i=f(Cn(s),29),a=HH(i),Ii(b,a),zn(b,i);t.a.Bc(e)!=null}Qv(b),e.j=new WS((f(Se(Ve((C1(),un).o),11),19),b.i),b.g),Bc(e).b&=-33}return e.j}function UPn(e){var t,i,s,a;if(e==null)return null;if(s=ha(e,!0),a=jM.length,Ht(s.substr(s.length-a,a),jM)){if(i=s.length,i==4){if(t=(pn(0,s.length),s.charCodeAt(0)),t==43)return KOe;if(t==45)return ELt}else if(i==3)return KOe}return new A0e(s)}function GPn(e){var t,i,s;return i=e.l,i&i-1||(s=e.m,s&s-1)||(t=e.h,t&t-1)||t==0&&s==0&&i==0?-1:t==0&&s==0&&i!=0?iSe(i):t==0&&s!=0&&i==0?iSe(s)+22:t!=0&&s==0&&i==0?iSe(t)+44:-1}function g2(e,t){var i,s,a,c,b;for(a=t.a&e.f,c=null,s=e.b[a];;s=s.b){if(s==t){c?c.b=t.b:e.b[a]=t.b;break}c=s}for(b=t.f&e.f,c=null,i=e.c[b];;i=i.d){if(i==t){c?c.d=t.d:e.c[b]=t.d;break}c=i}t.e?t.e.c=t.c:e.a=t.c,t.c?t.c.e=t.e:e.e=t.e,--e.i,++e.g}function VPn(e,t){var i;t.d?t.d.b=t.b:e.a=t.b,t.b?t.b.d=t.d:e.e=t.d,!t.e&&!t.c?(i=f(mf(f(f3(e.b,t.a),260)),260),i.a=0,++e.c):(i=f(mf(f(En(e.b,t.a),260)),260),--i.a,t.e?t.e.c=t.c:i.b=f(mf(t.c),511),t.c?t.c.e=t.e:i.c=f(mf(t.e),511)),--e.d}function zPn(e){var t,i,s,a,c,b,g,m,_,k;for(i=e.o,t=e.p,b=Nr,a=Qo,g=Nr,c=Qo,_=0;_0),c.a.Xb(c.c=--c.b),Dv(c,a),In(c.b3&&vp(e,0,t-3))}function qPn(e){var t,i,s,a;return Oe(V(e,(bt(),M_)))===Oe((vb(),Wg))?!e.e&&Oe(V(e,a9))!==Oe((BC(),n9)):(s=f(V(e,Ole),299),a=mt(wt(V(e,Nle)))||Oe(V(e,YI))===Oe((u6(),t9)),t=f(V(e,x6e),17).a,i=e.a.c.length,!a&&s!=(BC(),n9)&&(t==0||t>i))}function XPn(e){var t,i;for(i=0;i0);i++);if(i>0&&i0);t++);return t>0&&i>16!=6&&t){if(oA(e,t))throw ne(new hn(SI+wkt(e)));s=null,e.Cb&&(s=(i=e.Db>>16,i>=0?uEe(e,s):e.Cb.Th(e,-1-i,null,s))),t&&(s=S3(t,e,6,s)),s=qme(e,t,s),s&&s.oj()}else e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,6,t,t))}function UH(e,t){var i,s;if(t!=e.Cb||e.Db>>16!=3&&t){if(oA(e,t))throw ne(new hn(SI+ixt(e)));s=null,e.Cb&&(s=(i=e.Db>>16,i>=0?pEe(e,s):e.Cb.Th(e,-1-i,null,s))),t&&(s=S3(t,e,12,s)),s=Xme(e,t,s),s&&s.oj()}else e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,3,t,t))}function Wke(e,t){var i,s;if(t!=e.Cb||e.Db>>16!=9&&t){if(oA(e,t))throw ne(new hn(SI+nRt(e)));s=null,e.Cb&&(s=(i=e.Db>>16,i>=0?dEe(e,s):e.Cb.Th(e,-1-i,null,s))),t&&(s=S3(t,e,9,s)),s=Jme(e,t,s),s&&s.oj()}else e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,9,t,t))}function hA(e){var t,i,s,a,c;if(s=_f(e),c=e.j,c==null&&s)return e.Jk()?null:s.ik();if(ve(s,156)){if(i=s.jk(),i&&(a=i.wi(),a!=e.i)){if(t=f(s,156),t.nk())try{e.g=a.ti(t,c)}catch(b){if(b=mi(b),ve(b,82))e.g=null;else throw ne(b)}e.i=a}return e.g}return null}function i3t(e){var t;return t=new st,lt(t,new Wk(new tt(e.c,e.d),new tt(e.c+e.b,e.d))),lt(t,new Wk(new tt(e.c,e.d),new tt(e.c,e.d+e.a))),lt(t,new Wk(new tt(e.c+e.b,e.d+e.a),new tt(e.c+e.b,e.d))),lt(t,new Wk(new tt(e.c+e.b,e.d+e.a),new tt(e.c,e.d+e.a))),t}function JPn(e){var t,i,s;if(e==null)return Za;try{return dl(e)}catch(a){if(a=mi(a),ve(a,103))return t=a,s=z0(ou(e))+"@"+(i=(lb(),H2e(e)>>>0),i.toString(16)),u4n(XRn(),(Zx(),"Exception during lenientFormat for "+s),t),"<"+s+" threw "+z0(t.Rm)+">";throw ne(a)}}function YPn(e,t,i){var s,a,c;for(c=t.a.ec().Kc();c.Ob();)a=f(c.Pb(),74),s=f(En(e.b,a),272),!s&&(di(Sp(a))==di(F1(a))?jOn(e,a,i):Sp(a)==di(F1(a))?En(e.c,a)==null&&En(e.b,F1(a))!=null&&Dxt(e,a,i,!1):En(e.d,a)==null&&En(e.b,Sp(a))!=null&&Dxt(e,a,i,!0))}function QPn(e,t){var i,s,a,c,b,g,m;for(a=e.Kc();a.Ob();)for(s=f(a.Pb(),10),g=new ia,Sl(g,s),so(g,(ut(),_n)),Xe(g,(nt(),SV),(cn(),!0)),b=t.Kc();b.Ob();)c=f(b.Pb(),10),m=new ia,Sl(m,c),so(m,wn),Xe(m,SV,!0),i=new jm,Xe(i,SV,!0),rs(i,g),xo(i,m)}function ZPn(e,t,i,s){var a,c,b,g;a=H_t(e,t,i),c=H_t(e,i,t),b=f(En(e.c,t),118),g=f(En(e.c,i),118),a1)for(t=Rm((i=new V0,++e.b,i),e.d),g=Hn(c,0);g.b!=g.d.c;)b=f(Bn(g),125),id(qf(Kf(Xf(zf(new gf,1),0),t),b))}function nOn(e,t,i){var s,a,c,b,g;for(i.Ug("Breaking Point Removing",1),e.a=f(V(t,(bt(),Ob)),223),c=new ee(t.b);c.a>16!=11&&t){if(oA(e,t))throw ne(new hn(SI+l3e(e)));s=null,e.Cb&&(s=(i=e.Db>>16,i>=0?bEe(e,s):e.Cb.Th(e,-1-i,null,s))),t&&(s=S3(t,e,10,s)),s=oye(e,t,s),s&&s.oj()}else e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,11,t,t))}function rOn(e){var t,i,s,a;for(s=new aw(new U0(e.b).a);s.b;)i=qm(s),a=f(i.ld(),12),t=f(i.md(),10),Xe(t,(nt(),Ur),a),Xe(a,Ic,t),Xe(a,o9,(cn(),!0)),so(a,f(V(t,Dl),64)),V(t,Dl),Xe(a.i,(bt(),Oi),(Co(),A4)),f(V(Go(a.i),ma),21).Fc((As(),a4))}function iOn(e,t,i){var s,a,c,b,g,m;if(c=0,b=0,e.c)for(m=new ee(e.d.i.j);m.ac.a?-1:a.am){for(k=e.d,e.d=Fe(mOe,CAe,66,2*m+4,0,1),c=0;c=9223372036854776e3?(xC(),qAe):(a=!1,e<0&&(a=!0,e=-e),s=0,e>=yw&&(s=oo(e/yw),e-=s*yw),i=0,e>=N3&&(i=oo(e/N3),e-=i*N3),t=oo(e),c=Oa(t,i,s),a&&ete(c),c)}function bOn(e){var t,i,s,a,c;if(c=new st,Ma(e.b,new Prt(c)),e.b.c.length=0,c.c.length!=0){for(t=(qt(0,c.c.length),f(c.c[0],82)),i=1,s=c.c.length;i=-t&&s==t?new io(ot(i-1),ot(s)):new io(ot(i),ot(s-1))}function l3t(){return ss(),se(ie(CFn,1),Je,81,0,[MTe,PTe,j2,zse,e$e,zG,nV,$_,QTe,UTe,JTe,T_,ZTe,BTe,t$e,xTe,JG,Kse,GG,ZG,r$e,QG,CTe,YTe,i$e,eV,n$e,VG,LTe,qTe,KTe,rV,$Te,UG,qG,TTe,YA,VTe,WTe,XTe,BI,OTe,ITe,zTe,HTe,XG,tV,ATe,YG,GTe,KG,jTe,DTe,QM,HG,FTe,NTe])}function mOn(e,t,i){e.d=0,e.b=0,t.k==(gn(),wa)&&i.k==wa&&f(V(t,(nt(),Ur)),10)==f(V(i,Ur),10)&&(vee(t).j==(ut(),bn)?qkt(e,t,i):qkt(e,i,t)),t.k==wa&&i.k==vo?vee(t).j==(ut(),bn)?e.d=1:e.b=1:i.k==wa&&t.k==vo&&(vee(i).j==(ut(),bn)?e.b=1:e.d=1),nTn(e,t,i)}function yOn(e){var t,i,s,a,c,b,g,m,_,k,I;return I=FEe(e),t=e.a,m=t!=null,m&&cC(I,"category",e.a),a=FO(new H0(e.d)),b=!a,b&&(_=new B0,Id(I,"knownOptions",_),i=new hst(_),Vo(new H0(e.d),i)),c=FO(e.g),g=!c,g&&(k=new B0,Id(I,"supportedFeatures",k),s=new pst(k),Vo(e.g,s)),I}function vOn(e){var t,i,s,a,c,b,g,m,_;for(s=!1,t=336,i=0,c=new Jdt(e.length),g=e,m=0,_=g.length;m<_;++m)b=g[m],s=s|(L1(b),!1),a=(A1(b),b.a),lt(c.a,nr(a)),t&=a.yd(),i=jxn(i,a.zd());return f(f(Vpt(new Wt(null,dne(new Vt((Om(),M2e(c.a)),16),new Q,t,i)),new ort(e)),687),848)}function _On(e,t){var i;e.d&&(t.c!=e.e.c||fRn(e.e.b,t.b))&&(lt(e.f,e.d),e.a=e.d.c+e.d.b,e.d=null,e.e=null),Dgn(t.b)?e.c=t:e.b=t,(t.b==(WC(),yy)&&!t.a||t.b==x_&&t.a||t.b==L2&&t.a||t.b==C_&&!t.a)&&e.c&&e.b&&(i=new Gu(e.a,e.c.d,t.c-e.a,e.b.d-e.c.d),e.d=i,e.e=t)}function G6(e){var t;if(Elt.call(this),this.i=new kQe,this.g=e,this.f=f(e.e&&e.e(),9).length,this.f==0)throw ne(new hn("There must be at least one phase in the phase enumeration."));this.c=(t=f(kd(this.g),9),new Uu(t,f(Yf(t,t.length),9),0)),this.a=new Ki,this.b=new Fn}function Vke(e,t){var i,s;if(t!=e.Cb||e.Db>>16!=7&&t){if(oA(e,t))throw ne(new hn(SI+pEt(e)));s=null,e.Cb&&(s=(i=e.Db>>16,i>=0?fEe(e,s):e.Cb.Th(e,-1-i,null,s))),t&&(s=f(t,54).Rh(e,1,V9,s)),s=Qye(e,t,s),s&&s.oj()}else e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,7,t,t))}function a3t(e,t){var i,s;if(t!=e.Cb||e.Db>>16!=3&&t){if(oA(e,t))throw ne(new hn(SI+d_t(e)));s=null,e.Cb&&(s=(i=e.Db>>16,i>=0?hEe(e,s):e.Cb.Th(e,-1-i,null,s))),t&&(s=f(t,54).Rh(e,0,K9,s)),s=Zye(e,t,s),s&&s.oj()}else e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,3,t,t))}function Ine(e,t){pA();var i,s,a,c,b,g,m,_,k;return t.d>e.d&&(g=e,e=t,t=g),t.d<63?a7n(e,t):(b=(e.d&-2)<<4,_=m_e(e,b),k=m_e(t,b),s=Yne(e,u3(_,b)),a=Yne(t,u3(k,b)),m=Ine(_,k),i=Ine(s,a),c=Ine(Yne(_,s),Yne(a,k)),c=ire(ire(c,m),i),c=u3(c,b),m=u3(m,b<<1),ire(ire(m,c),i))}function Ag(){Ag=F,qle=new LS(d4t,0),dIe=new LS("LONGEST_PATH",1),hIe=new LS("LONGEST_PATH_SOURCE",2),Kle=new LS("COFFMAN_GRAHAM",3),fIe=new LS(vie,4),pIe=new LS("STRETCH_WIDTH",5),BV=new LS("MIN_WIDTH",6),g4=new LS("BF_MODEL_ORDER",7),w4=new LS("DF_MODEL_ORDER",8)}function SOn(e,t,i){var s,a,c,b,g;for(b=_6(e,i),g=Fe(Op,$g,10,t.length,0,1),s=0,c=b.Kc();c.Ob();)a=f(c.Pb(),12),mt(wt(V(a,(nt(),o9))))&&(g[s++]=f(V(a,Ic),10));if(s=0;c+=i?1:-1)b=b|t.c.lg(m,c,i,s&&!mt(wt(V(t.j,(nt(),t0))))&&!mt(wt(V(t.j,(nt(),z2))))),b=b|t.q.ug(m,c,i),b=b|X3t(e,m[c],i,s);return Zi(e.c,t),b}function zH(e,t,i){var s,a,c,b,g,m,_,k,I,D;for(k=A1t(e.j),I=0,D=k.length;I1&&(e.a=!0),tvn(f(i.b,68),Mr(Ho(f(t.b,68).c),Nh(uo(Ho(f(i.b,68).a),f(t.b,68).a),a))),Mgt(e,t),c3t(e,i)}function u3t(e){var t,i,s,a,c,b,g;for(c=new ee(e.a.a);c.a0&&c>0?b.p=t++:s>0?b.p=i++:c>0?b.p=a++:b.p=i++}Kt(),Hi(e.j,new UKe)}function COn(e){var t,i;i=null,t=f(vt(e.g,0),18);do{if(i=t.d.i,ri(i,(nt(),Af)))return f(V(i,Af),12).i;if(i.k!=(gn(),ji)&&Un(new kn(xn(Wi(i).a.Kc(),new O))))t=f(On(new kn(xn(Wi(i).a.Kc(),new O))),18);else if(i.k!=ji)return null}while(i&&i.k!=(gn(),ji));return i}function AOn(e,t){var i,s,a,c,b,g,m,_,k;for(g=t.j,b=t.g,m=f(vt(g,g.c.length-1),113),k=(qt(0,g.c.length),f(g.c[0],113)),_=Qte(e,b,m,k),c=1;c_&&(m=i,k=a,_=s);t.a=k,t.c=m}function TOn(e,t,i){var s,a,c,b,g,m,_;for(_=new sg(new Yit(e)),b=se(ie(W5t,1),DAt,12,0,[t,i]),g=0,m=b.length;gm-e.b&&gm-e.a&&g0?c.a?(g=c.b.Mf().a,i>g&&(a=(i-g)/2,c.d.b=a,c.d.c=a)):c.d.c=e.s+i:V$(e.u)&&(s=BEe(c.b),s.c<0&&(c.d.b=-s.c),s.c+s.b>c.b.Mf().a&&(c.d.c=s.c+s.b-c.b.Mf().a))}function zOn(e,t){var i,s,a,c,b;b=new st,i=t;do c=f(En(e.b,i),131),c.B=i.c,c.D=i.d,sn(b.c,c),i=f(En(e.k,i),18);while(i);return s=(qt(0,b.c.length),f(b.c[0],131)),s.j=!0,s.A=f(s.d.a.ec().Kc().Pb(),18).c.i,a=f(vt(b,b.c.length-1),131),a.q=!0,a.C=f(a.d.a.ec().Kc().Pb(),18).d.i,b}function KOn(e){var t,i;if(t=f(e.a,17).a,i=f(e.b,17).a,t>=0){if(t==i)return new io(ot(-t-1),ot(-t-1));if(t==-i)return new io(ot(-t),ot(i+1))}return h.Math.abs(t)>h.Math.abs(i)?t<0?new io(ot(-t),ot(i)):new io(ot(-t),ot(i+1)):new io(ot(t+1),ot(i))}function qOn(e){var t,i;i=f(V(e,(bt(),Ha)),171),t=f(V(e,(nt(),Iw)),311),i==(ef(),n0)?(Xe(e,Ha,l9),Xe(e,Iw,(wb(),G2))):i==O_?(Xe(e,Ha,l9),Xe(e,Iw,(wb(),J3))):t==(wb(),G2)?(Xe(e,Ha,n0),Xe(e,Iw,r9)):t==J3&&(Xe(e,Ha,O_),Xe(e,Iw,r9))}function KH(){KH=F,g9=new TJe,eNt=gr(new Ki,(Yo(),sa),(ss(),GG)),rNt=hc(gr(new Ki,sa,QG),ll,YG),iNt=Hh(Hh(b$(hc(gr(new Ki,cd,nV),ll,tV),ga),eV),rV),tNt=hc(gr(gr(gr(new Ki,Pp,zG),ga,qG),ga,YA),ll,KG),nNt=hc(gr(gr(new Ki,ga,YA),ga,UG),ll,HG)}function V6(){V6=F,lNt=gr(hc(new Ki,(Yo(),ll),(ss(),jTe)),sa,GG),fNt=Hh(Hh(b$(hc(gr(new Ki,cd,nV),ll,tV),ga),eV),rV),aNt=hc(gr(gr(gr(new Ki,Pp,zG),ga,qG),ga,YA),ll,KG),uNt=gr(gr(new Ki,sa,QG),ll,YG),cNt=hc(gr(gr(new Ki,ga,YA),ga,UG),ll,HG)}function XOn(e,t,i,s,a){var c,b;(!ms(t)&&t.c.i.c==t.d.i.c||!hyt(kl(se(ie(wo,1),rt,8,0,[a.i.n,a.n,a.a])),i))&&!ms(t)&&(t.c==a?rC(t.a,0,new us(i)):hr(t.a,new us(i)),s&&!Rd(e.a,i)&&(b=f(V(t,(bt(),Xs)),75),b||(b=new cc,Xe(t,Xs,b)),c=new us(i),Ai(b,c,b.c.b,b.c),Zi(e.a,c)))}function h3t(e,t){var i,s,a,c;for(c=tr(os(xp,mp(tr(os(t==null?0:ti(t),Cp)),15))),i=c&e.b.length-1,a=null,s=e.b[i];s;a=s,s=s.a)if(s.d==c&&Lh(s.i,t))return a?a.a=s.a:e.b[i]=s.a,Glt(f(mf(s.c),604),f(mf(s.f),604)),NO(f(mf(s.b),227),f(mf(s.e),227)),--e.f,++e.e,!0;return!1}function JOn(e){var t,i;for(i=new kn(xn(go(e).a.Kc(),new O));Un(i);)if(t=f(On(i),18),t.c.i.k!=(gn(),ea))throw ne(new rg(yie+TN(e)+"' has its layer constraint set to FIRST, but has at least one incoming edge that does not come from a FIRST_SEPARATE node. That must not happen."))}function YOn(e,t,i){var s,a,c,b,g,m,_;if(a=w_t(e.Db&254),a==0)e.Eb=i;else{if(a==1)g=Fe(ho,on,1,2,5,1),c=Yte(e,t),c==0?(g[0]=i,g[1]=e.Eb):(g[0]=e.Eb,g[1]=i);else for(g=Fe(ho,on,1,a+1,5,1),b=ow(e.Eb),s=2,m=0,_=0;s<=128;s<<=1)s==t?g[_++]=i:e.Db&s&&(g[_++]=b[m++]);e.Eb=g}e.Db|=t}function p3t(e,t,i){var s,a,c,b;for(this.b=new st,a=0,s=0,b=new ee(e);b.a0&&(c=f(vt(this.b,0),176),a+=c.o,s+=c.p),a*=2,s*=2,t>1?a=oo(h.Math.ceil(a*t)):s=oo(h.Math.ceil(s/t)),this.a=new P2e(a,s)}function b3t(e,t,i,s,a,c){var b,g,m,_,k,I,D,W,U,z,X,oe;for(k=s,t.j&&t.o?(W=f(En(e.f,t.A),60),z=W.d.c+W.d.b,--k):z=t.a.c+t.a.b,I=a,i.q&&i.o?(W=f(En(e.f,i.C),60),_=W.d.c,++I):_=i.a.c,X=_-z,m=h.Math.max(2,I-k),g=X/m,U=z+g,D=k;D=0;b+=a?1:-1){for(g=t[b],m=s==(ut(),_n)?a?Rl(g,s):Zu(Rl(g,s)):a?Zu(Rl(g,s)):Rl(g,s),c&&(e.c[g.p]=m.gc()),I=m.Kc();I.Ob();)k=f(I.Pb(),12),e.d[k.p]=_++;eo(i,m)}}function w3t(e,t,i){var s,a,c,b,g,m,_,k;for(c=Ae(je(e.b.Kc().Pb())),_=Ae(je(qRn(t.b))),s=Nh(Ho(e.a),_-i),a=Nh(Ho(t.a),i-c),k=Mr(s,a),Nh(k,1/(_-c)),this.a=k,this.b=new st,g=!0,b=e.b.Kc(),b.Pb();b.Ob();)m=Ae(je(b.Pb())),g&&m-i>Zie&&(this.b.Fc(i),g=!1),this.b.Fc(m);g&&this.b.Fc(i)}function QOn(e){var t,i,s,a;if(gNn(e,e.n),e.d.c.length>0){for(s$(e.c);Tke(e,f(Z(new ee(e.e.a)),125))>5,t&=31,s>=e.d)return e.e<0?(Uh(),E6t):(Uh(),MI);if(c=e.d-s,a=Fe(Xn,wr,28,c+1,15,1),UIn(a,c,e.a,s,t),e.e<0){for(i=0;i0&&e.a[i]<<32-t){for(i=0;i=0?!1:(i=_2((gc(),qo),a,t),i?(s=i.Ik(),(s>1||s==-1)&&Dm(Vs(qo,i))!=3):!0)):!1}function n7n(e,t,i,s){var a,c,b,g,m;return g=sl(f(Se((!t.b&&(t.b=new en(Dn,t,4,7)),t.b),0),84)),m=sl(f(Se((!t.c&&(t.c=new en(Dn,t,5,8)),t.c),0),84)),di(g)==di(m)||Xv(m,g)?null:(b=N7(t),b==i?s:(c=f(En(e.a,b),10),c&&(a=c.e,a)?a:null))}function r7n(e,t,i){var s,a,c,b,g;for(i.Ug("Longest path to source layering",1),e.a=t,g=e.a.a,e.b=Fe(Xn,wr,28,g.c.length,15,1),s=0,b=new ee(g);b.a0&&(i[0]+=e.d,b-=i[0]),i[2]>0&&(i[2]+=e.d,b-=i[2]),c=h.Math.max(0,b),i[1]=h.Math.max(i[1],b),v_e(e,Aa,a.c+s.b+i[0]-(i[1]-b)/2,i),t==Aa&&(e.c.b=c,e.c.c=a.c+s.b+(c-b)/2)}function C3t(){this.c=Fe(Ro,js,28,(ut(),se(ie(vs,1),Ql,64,0,[Cl,bn,_n,jn,wn])).length,15,1),this.b=Fe(Ro,js,28,se(ie(vs,1),Ql,64,0,[Cl,bn,_n,jn,wn]).length,15,1),this.a=Fe(Ro,js,28,se(ie(vs,1),Ql,64,0,[Cl,bn,_n,jn,wn]).length,15,1),Ewe(this.c,hi),Ewe(this.b,to),Ewe(this.a,to)}function da(e,t,i){var s,a,c,b;if(t<=i?(a=t,c=i):(a=i,c=t),s=0,e.b==null)e.b=Fe(Xn,wr,28,2,15,1),e.b[0]=a,e.b[1]=c,e.c=!0;else{if(s=e.b.length,e.b[s-1]+1==a){e.b[s-1]=c;return}b=Fe(Xn,wr,28,s+2,15,1),oa(e.b,0,b,0,s),e.b=b,e.b[s-1]>=a&&(e.c=!1,e.a=!1),e.b[s++]=a,e.b[s]=c,e.c||b2(e)}}function c7n(e,t,i){var s,a,c,b,g,m,_;for(_=t.d,e.a=new ka(_.c.length),e.c=new Fn,g=new ee(_);g.a=0?e.Lh(_,!1,!0):ry(e,i,!1),61));e:for(c=I.Kc();c.Ob();){for(a=f(c.Pb(),58),k=0;k1;)u_(a,a.i-1);return s}function T3t(e,t){var i,s,a,c,b,g,m;for(i=new qS,c=new ee(e.b);c.ae.d[b.p]&&(i+=d_e(e.b,c),$1(e.a,ot(c)));for(;!l$(e.a);)V_e(e.b,f(t3(e.a),17).a)}return i}function b7n(e){var t,i,s,a,c,b,g,m,_;for(e.a=new iye,_=0,a=0,s=new ee(e.i.b);s.ag.d&&(k=g.d+g.a+_));i.c.d=k,t.a.zc(i,t),m=h.Math.max(m,i.c.d+i.c.a)}return m}function As(){As=F,bV=new Tv("COMMENTS",0),af=new Tv("EXTERNAL_PORTS",1),GI=new Tv("HYPEREDGES",2),gV=new Tv("HYPERNODES",3),a4=new Tv("NON_FREE_PORTS",4),U2=new Tv("NORTH_SOUTH_PORTS",5),VI=new Tv(e4t,6),s4=new Tv("CENTER_LABELS",7),l4=new Tv("END_LABELS",8),wV=new Tv("PARTITIONS",9)}function w7n(e,t,i,s,a){return s<0?(s=p2(e,a,se(ie(St,1),rt,2,6,[vre,_re,Sre,Ere,P3,kre,Rre,xre,Cre,Are,Tre,$re]),t),s<0&&(s=p2(e,a,se(ie(St,1),rt,2,6,["Jan","Feb","Mar","Apr",P3,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),t)),s<0?!1:(i.k=s,!0)):s>0?(i.k=s-1,!0):!1}function m7n(e,t,i,s,a){return s<0?(s=p2(e,a,se(ie(St,1),rt,2,6,[vre,_re,Sre,Ere,P3,kre,Rre,xre,Cre,Are,Tre,$re]),t),s<0&&(s=p2(e,a,se(ie(St,1),rt,2,6,["Jan","Feb","Mar","Apr",P3,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),t)),s<0?!1:(i.k=s,!0)):s>0?(i.k=s-1,!0):!1}function y7n(e,t,i,s,a,c){var b,g,m,_;if(g=32,s<0){if(t[0]>=e.length||(g=Jo(e,t[0]),g!=43&&g!=45)||(++t[0],s=LH(e,t),s<0))return!1;g==45&&(s=-s)}return g==32&&t[0]-i==2&&a.b==2&&(m=new dF,_=m.q.getFullYear()-V1+V1-80,b=_%100,c.a=s==b,s+=(_/100|0)*100+(s=0?j1(e):X$(j1(gg(e)))),DI[t]=UF(Zf(e,t),0)?j1(Zf(e,t)):X$(j1(gg(Zf(e,t)))),e=os(e,5);for(;t=_&&(m=s);m&&(k=h.Math.max(k,m.a.o.a)),k>D&&(I=_,D=k)}return I}function R7n(e){var t,i,s,a,c,b,g;for(c=new sg(f(nr(new Hl),50)),g=to,i=new ee(e.d);i.ax4t?Hi(m,e.b):s<=x4t&&s>C4t?Hi(m,e.d):s<=C4t&&s>A4t?Hi(m,e.c):s<=A4t&&Hi(m,e.a),c=N3t(e,m,c);return a}function M3t(e,t,i,s){var a,c,b,g,m,_;for(a=(s.c+s.a)/2,wu(t.j),hr(t.j,a),wu(i.e),hr(i.e,a),_=new rat,g=new ee(e.f);g.a1,g&&(s=new tt(a,i.b),hr(t.a,s)),c6(t.a,se(ie(wo,1),rt,8,0,[D,I]))}function Qke(e,t,i){var s,a;for(t=48;i--)G5[i]=i-48<<24>>24;for(s=70;s>=65;s--)G5[s]=s-65+10<<24>>24;for(a=102;a>=97;a--)G5[a]=a-97+10<<24>>24;for(c=0;c<10;c++)Gz[c]=48+c&Ji;for(e=10;e<=15;e++)Gz[e]=65+e-10&Ji}function T7n(e,t){t.Ug("Process graph bounds",1),Xe(e,(ei(),gae),QO(Uee(Wv(new Wt(null,new Vt(e.b,16)),new sYe)))),Xe(e,wae,QO(Uee(Wv(new Wt(null,new Vt(e.b,16)),new lYe)))),Xe(e,r5e,QO(Hee(Wv(new Wt(null,new Vt(e.b,16)),new aYe)))),Xe(e,i5e,QO(Hee(Wv(new Wt(null,new Vt(e.b,16)),new cYe)))),t.Vg()}function $7n(e){var t,i,s,a,c;a=f(V(e,(bt(),Dw)),21),c=f(V(e,DV),21),i=new tt(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a),t=new us(i),a.Hc((su(),q_))&&(s=f(V(e,u4),8),c.Hc((Gc(),T4))&&(s.a<=0&&(s.a=20),s.b<=0&&(s.b=20)),t.a=h.Math.max(i.a,s.a),t.b=h.Math.max(i.b,s.b)),mt(wt(V(e,Ble)))||s9n(e,i,t)}function I7n(e,t){var i,s,a,c;for(c=Rl(t,(ut(),jn)).Kc();c.Ob();)s=f(c.Pb(),12),i=f(V(s,(nt(),Ic)),10),i&&id(qf(Kf(Xf(zf(new gf,0),.1),e.i[t.p].d),e.i[i.p].a));for(a=Rl(t,bn).Kc();a.Ob();)s=f(a.Pb(),12),i=f(V(s,(nt(),Ic)),10),i&&id(qf(Kf(Xf(zf(new gf,0),.1),e.i[i.p].d),e.i[t.p].a))}function One(e){var t,i,s,a,c,b;if(!e.c){if(b=new SZe,t=B5,c=t.a.zc(e,t),c==null){for(s=new Sn(ra(e));s.e!=s.i.gc();)i=f(Cn(s),89),a=eU(i),ve(a,90)&&Ii(b,One(f(a,29))),zn(b,i);t.a.Bc(e)!=null,t.a.gc()==0}xAn(b),Qv(b),e.c=new WS((f(Se(Ve((C1(),un).o),15),19),b.i),b.g),Bc(e).b&=-33}return e.c}function e3e(e){var t;if(e.c!=10)throw ne(new ar(dr((ir(),oG))));switch(t=e.a,t){case 110:t=10;break;case 114:t=13;break;case 116:t=9;break;case 92:case 124:case 46:case 94:case 45:case 63:case 42:case 43:case 123:case 125:case 40:case 41:case 91:case 93:break;default:throw ne(new ar(dr((ir(),sf))))}return t}function F3t(e){var t,i,s,a,c;if(e.l==0&&e.m==0&&e.h==0)return"0";if(e.h==uM&&e.m==0&&e.l==0)return"-9223372036854775808";if(e.h>>19)return"-"+F3t(UC(e));for(i=e,s="";!(i.l==0&&i.m==0&&i.h==0);){if(a=cee(hU),i=N3e(i,a,!0),t=""+cat(J1),!(i.l==0&&i.m==0&&i.h==0))for(c=9-t.length;c>0;c--)t="0"+t;s=t+s}return s}function P7n(e){var t,i,s,a,c,b,g;for(t=!1,i=0,a=new ee(e.d.b);a.a=e.a||!DEe(t,i))return-1;if(_C(f(s.Kb(t),20)))return 1;for(a=0,b=f(s.Kb(t),20).Kc();b.Ob();)if(c=f(b.Pb(),18),m=c.c.i==t?c.d.i:c.c.i,g=t3e(e,m,i,s),g==-1||(a=h.Math.max(a,g),a>e.c-1))return-1;return a+1}function B3t(e,t){var i,s,a,c,b,g;if(Oe(t)===Oe(e))return!0;if(!ve(t,15)||(s=f(t,15),g=e.gc(),s.gc()!=g))return!1;if(b=s.Kc(),e.Yi()){for(i=0;i0){if(e._j(),t!=null){for(c=0;c>24;case 97:case 98:case 99:case 100:case 101:case 102:return e-97+10<<24>>24;case 65:case 66:case 67:case 68:case 69:case 70:return e-65+10<<24>>24;default:throw ne(new Ih("Invalid hexadecimal"))}}function JH(){JH=F,F4e=new DS("SPIRAL",0),M4e=new DS("LINE_BY_LINE",1),D4e=new DS("MANHATTAN",2),N4e=new DS("JITTER",3),_se=new DS("QUADRANTS_LINE_BY_LINE",4),j4e=new DS("QUADRANTS_MANHATTAN",5),L4e=new DS("QUADRANTS_JITTER",6),O4e=new DS("COMBINE_LINE_BY_LINE_MANHATTAN",7),P4e=new DS("COMBINE_JITTER_MANHATTAN",8)}function H3t(e,t,i,s){var a,c,b,g,m,_;for(m=ine(e,i),_=ine(t,i),a=!1;m&&_&&(s||TTn(m,_,i));)b=ine(m,i),g=ine(_,i),X7(t),X7(e),c=m.c,ore(m,!1),ore(_,!1),i?(r_(t,_.p,c),t.p=_.p,r_(e,m.p+1,c),e.p=m.p):(r_(e,m.p,c),e.p=m.p,r_(t,_.p+1,c),t.p=_.p),Oo(m,null),Oo(_,null),m=b,_=g,a=!0;return a}function U3t(e){switch(e.g){case 0:return new nnt;case 1:return new ent;case 3:return new wct;case 4:return new XXe;case 5:return new Vdt;case 6:return new tnt;case 2:return new Ztt;case 7:return new Ktt;case 8:return new Xtt;default:throw ne(new hn("No implementation is available for the layerer "+(e.f!=null?e.f:""+e.g)))}}function j7n(e,t,i,s){var a,c,b,g,m;for(a=!1,c=!1,g=new ee(s.j);g.a=t.length)throw ne(new Hs("Greedy SwitchDecider: Free layer not in graph."));this.c=t[e],this.e=new m7(s),jee(this.e,this.c,(ut(),wn)),this.i=new m7(s),jee(this.i,this.c,_n),this.f=new apt(this.c),this.a=!c&&a.i&&!a.s&&this.c[0].k==(gn(),Ui),this.a&&QIn(this,e,t.length)}function V3t(e,t){var i,s,a,c,b,g;c=!e.B.Hc((Gc(),U9)),b=e.B.Hc(xce),e.a=new I_t(b,c,e.c),e.n&&Ove(e.a.n,e.n),$Y(e.g,(Pd(),Aa),e.a),t||(s=new A6(1,c,e.c),s.n.a=e.k,n3(e.p,(ut(),bn),s),a=new A6(1,c,e.c),a.n.d=e.k,n3(e.p,jn,a),g=new A6(0,c,e.c),g.n.c=e.k,n3(e.p,wn,g),i=new A6(0,c,e.c),i.n.b=e.k,n3(e.p,_n,i))}function B7n(e){var t,i,s;switch(t=f(V(e.d,(bt(),Ob)),223),t.g){case 2:i=Ajn(e);break;case 3:i=(s=new st,Mi(Br(nl(El(El(new Wt(null,new Vt(e.d.b,16)),new oXe),new sXe),new lXe),new zqe),new Cit(s)),s);break;default:throw ne(new Us("Compaction not supported for "+t+" edges."))}J9n(e,i),Vo(new H0(e.g),new Rit(e))}function W7n(e,t){var i,s,a,c,b,g,m;if(t.Ug("Process directions",1),i=f(V(e,(Il(),Ny)),88),i!=(Xi(),gh))for(a=Hn(e.b,0);a.b!=a.d.c;){switch(s=f(Bn(a),40),g=f(V(s,(ei(),y9)),17).a,m=f(V(s,v9),17).a,i.g){case 4:m*=-1;break;case 1:c=g,g=m,m=c;break;case 2:b=g,g=-m,m=b}Xe(s,y9,ot(g)),Xe(s,v9,ot(m))}t.Vg()}function H7n(e,t){var i;return i=new gt,t&&ol(i,f(En(e.a,V9),96)),ve(t,422)&&ol(i,f(En(e.a,z9),96)),ve(t,366)?(ol(i,f(En(e.a,Fs),96)),i):(ve(t,84)&&ol(i,f(En(e.a,Dn),96)),ve(t,207)?(ol(i,f(En(e.a,$r),96)),i):ve(t,193)?(ol(i,f(En(e.a,Mc),96)),i):(ve(t,326)&&ol(i,f(En(e.a,Fi),96)),i))}function U7n(e){var t,i,s,a,c,b,g,m;for(m=new R0t,g=new ee(e.a);g.a0&&t=0)return!1;if(t.p=i.b,lt(i.e,t),a==(gn(),vo)||a==wa){for(b=new ee(t.j);b.ae.d[g.p]&&(i+=d_e(e.b,c),$1(e.a,ot(c)))):++b;for(i+=e.b.d*b;!l$(e.a);)V_e(e.b,f(t3(e.a),17).a)}return i}function tRt(e){var t,i,s,a,c,b;return c=0,t=_f(e),t.kk()&&(c|=4),e.Bb&yc&&(c|=2),ve(e,102)?(i=f(e,19),a=Es(i),i.Bb&Vl&&(c|=32),a&&(Pn(Hv(a)),c|=8,b=a.t,(b>1||b==-1)&&(c|=16),a.Bb&Vl&&(c|=64)),i.Bb&ys&&(c|=E_),c|=sd):ve(t,469)?c|=512:(s=t.kk(),s&&s.i&1&&(c|=256)),e.Bb&512&&(c|=128),c}function tNn(e,t){var i;return e.f==Fce?(i=Dm(Vs((gc(),qo),t)),e.e?i==4&&t!=(C3(),pR)&&t!=(C3(),hR)&&t!=(C3(),Bce)&&t!=(C3(),Wce):i==2):e.d&&(e.d.Hc(t)||e.d.Hc(a3(Vs((gc(),qo),t)))||e.d.Hc(_2((gc(),qo),e.b,t)))?!0:e.f&&Hke((gc(),e.f),T7(Vs(qo,t)))?(i=Dm(Vs(qo,t)),e.e?i==4:i==2):!1}function nNn(e){var t,i,s,a,c,b,g,m,_,k,I,D,W;for(D=-1,W=0,_=e,k=0,I=_.length;k0&&++W;++D}return W}function rNn(e,t,i,s){var a,c,b,g,m,_,k,I;return b=f(Ye(i,(Er(),lR)),8),m=b.a,k=b.b+e,a=h.Math.atan2(k,m),a<0&&(a+=kw),a+=t,a>kw&&(a-=kw),g=f(Ye(s,lR),8),_=g.a,I=g.b+e,c=h.Math.atan2(I,_),c<0&&(c+=kw),c+=t,c>kw&&(c-=kw),Kd(),td(1e-10),h.Math.abs(a-c)<=1e-10||a==c||isNaN(a)&&isNaN(c)?0:ac?1:Em(isNaN(a),isNaN(c))}function Dne(e){var t,i,s,a,c,b,g;for(g=new Fn,s=new ee(e.a.b);s.a=e.o)throw ne(new D0e);g=t>>5,b=t&31,c=Zf(1,tr(Zf(b,1))),a?e.n[i][g]=Ad(e.n[i][g],c):e.n[i][g]=fo(e.n[i][g],Oye(c)),c=Zf(c,1),s?e.n[i][g]=Ad(e.n[i][g],c):e.n[i][g]=fo(e.n[i][g],Oye(c))}catch(m){throw m=mi(m),ve(m,333)?ne(new Hs(rie+e.o+"*"+e.p+iie+t+ds+i+oie)):ne(m)}}function sNn(e,t,i,s){var a,c,b,g,m,_,k,I,D;for(D=new sg(new Jit(e)),g=se(ie(Op,1),$g,10,0,[t,i]),m=0,_=g.length;m<_;++m)for(b=g[m],I=_6(b,s).Kc();I.Ob();)for(k=f(I.Pb(),12),c=new Zd(k.b);_l(c.a)||_l(c.b);)a=f(_l(c.a)?Z(c.a):Z(c.b),18),ms(a)||(D.a.zc(k,(cn(),Y1))==null,hbt(a)&&R7(D,k==a.c?a.d:a.c));return nr(D),new Rc(D)}function s3e(e,t,i,s){var a,c,b;t&&(c=Ae(je(V(t,(ei(),jg))))+s,b=i+Ae(je(V(t,QV)))/2,Xe(t,y9,ot(tr(Gl(h.Math.round(c))))),Xe(t,v9,ot(tr(Gl(h.Math.round(b))))),t.d.b==0||s3e(e,f(JF((a=Hn(new sb(t).a.d,0),new OS(a))),40),i+Ae(je(V(t,QV)))+e.b,s+Ae(je(V(t,v4)))),V(t,yae)!=null&&s3e(e,f(V(t,yae),40),i,s))}function lNn(e,t){var i,s,a,c,b,g,m,_,k,I,D;for(m=Go(t.a),a=Ae(je(V(m,(bt(),jw))))*2,k=Ae(je(V(m,Y2))),_=h.Math.max(a,k),c=Fe(Ro,js,28,t.f-t.c+1,15,1),s=-_,i=0,g=t.b.Kc();g.Ob();)b=f(g.Pb(),10),s+=e.a[b.c.p]+_,c[i++]=s;for(s+=e.a[t.a.c.p]+_,c[i++]=s,D=new ee(t.e);D.a0&&(s=(!e.n&&(e.n=new qe(Fs,e,1,7)),f(Se(e.n,0),135)).a,!s||br(br((t.a+=' "',t),s),'"'))),br(wm(br(wm(br(wm(br(wm((t.a+=" (",t),e.i),","),e.j)," | "),e.g),","),e.f),")"),t.a)}function nRt(e){var t,i,s;return e.Db&64?bne(e):(t=new gu(cAe),i=e.k,i?br(br((t.a+=' "',t),i),'"'):(!e.n&&(e.n=new qe(Fs,e,1,7)),e.n.i>0&&(s=(!e.n&&(e.n=new qe(Fs,e,1,7)),f(Se(e.n,0),135)).a,!s||br(br((t.a+=' "',t),s),'"'))),br(wm(br(wm(br(wm(br(wm((t.a+=" (",t),e.i),","),e.j)," | "),e.g),","),e.f),")"),t.a)}function cNn(e,t){var i,s,a,c,b;for(t==(w6(),oae)&&jN(f(Hr(e.a,(i_(),e9)),15)),a=f(Hr(e.a,(i_(),e9)),15).Kc();a.Ob();)switch(s=f(a.Pb(),105),i=f(vt(s.j,0),113).d.j,c=new Rc(s.j),Hi(c,new pXe),t.g){case 2:cne(e,c,i,(Km(),e0),1);break;case 1:case 0:b=XPn(c),cne(e,new dg(c,0,b),i,(Km(),e0),0),cne(e,new dg(c,b,c.c.length),i,e0,1)}}function jne(e,t){var i,s,a,c,b,g,m;if(t==null||t.length==0)return null;if(a=f(ua(e.a,t),143),!a){for(s=(g=new ob(e.b).a.vc().Kc(),new Rv(g));s.a.Ob();)if(i=(c=f(s.a.Pb(),44),f(c.md(),143)),b=i.c,m=t.length,Ht(b.substr(b.length-m,m),t)&&(t.length==b.length||Jo(b,b.length-t.length-1)==46)){if(a)return null;a=i}a&&Gs(e.a,t,a)}return a}function uNn(e,t){var i,s,a,c;return i=new ws,s=f(fl(nl(new Wt(null,new Vt(e.f,16)),i),zv(new q,new ke,new $n,new Gn,se(ie(qs,1),Je,108,0,[(Tc(),k_),pl]))),21),a=s.gc(),s=f(fl(nl(new Wt(null,new Vt(t.f,16)),i),zv(new q,new ke,new $n,new Gn,se(ie(qs,1),Je,108,0,[k_,pl]))),21),c=s.gc(),aa.p?(so(c,jn),c.d&&(g=c.o.b,t=c.a.b,c.a.b=g-t)):c.j==jn&&a.p>e.p&&(so(c,bn),c.d&&(g=c.o.b,t=c.a.b,c.a.b=-(g-t)));break}return a}function KN(e,t,i,s,a){var c,b,g,m,_,k,I;if(!(ve(t,207)||ve(t,366)||ve(t,193)))throw ne(new hn("Method only works for ElkNode-, ElkLabel and ElkPort-objects."));return b=e.a/2,m=t.i+s-b,k=t.j+a-b,_=m+t.g+e.a,I=k+t.f+e.a,c=new cc,hr(c,new tt(m,k)),hr(c,new tt(m,I)),hr(c,new tt(_,I)),hr(c,new tt(_,k)),g=new xne(c),ol(g,t),i&&xr(e.b,t,g),g}function bA(e,t,i){var s,a,c,b,g,m,_,k,I,D;for(c=new tt(t,i),k=new ee(e.a);k.a1,g&&(s=new tt(a,i.b),hr(t.a,s)),c6(t.a,se(ie(wo,1),rt,8,0,[D,I]))}function Sf(){Sf=F,UV=new $v(Jh,0),d9=new $v("NIKOLOV",1),h9=new $v("NIKOLOV_PIXEL",2),_Ie=new $v("NIKOLOV_IMPROVED",3),SIe=new $v("NIKOLOV_IMPROVED_PIXEL",4),vIe=new $v("DUMMYNODE_PERCENTAGE",5),EIe=new $v("NODECOUNT_PERCENTAGE",6),GV=new $v("NO_BOUNDARY",7),Py=new $v("MODEL_ORDER_LEFT_TO_RIGHT",8),W_=new $v("MODEL_ORDER_RIGHT_TO_LEFT",9)}function vNn(e){var t,i,s,a,c;for(s=e.length,t=new a$,c=0;c=40,b&&_Mn(e),T9n(e),QOn(e),i=__t(e),s=0;i&&s0&&hr(e.f,c)):(e.c[b]-=_+1,e.c[b]<=0&&e.a[b]>0&&hr(e.e,c))))}function bRt(e,t,i,s){var a,c,b,g,m,_,k;for(m=new tt(i,s),uo(m,f(V(t,(ei(),y4)),8)),k=Hn(t.b,0);k.b!=k.d.c;)_=f(Bn(k),40),Mr(_.e,m),hr(e.b,_);for(g=f(fl(Gve(new Wt(null,new Vt(t.a,16))),Cc(new K,new B,new Zt,se(ie(qs,1),Je,108,0,[(Tc(),pl)]))),15).Kc();g.Ob();){for(b=f(g.Pb(),65),c=Hn(b.a,0);c.b!=c.d.c;)a=f(Bn(c),8),a.a+=m.a,a.b+=m.b;hr(e.a,b)}}function g3e(e,t){var i,s,a,c;if(0<(ve(e,16)?f(e,16).gc():hb(e.Kc()))){if(a=t,1=0&&mc*2?(k=new xW(I),_=dc(b)/ru(b),m=cre(k,t,new Pk,i,s,a,_),Mr(xd(k.e),m),I.c.length=0,c=0,sn(I.c,k),sn(I.c,b),c=dc(k)*ru(k)+dc(b)*ru(b)):(sn(I.c,b),c+=dc(b)*ru(b));return I}function wRt(e,t){var i,s,a,c,b,g;if(g=f(V(t,(bt(),Oi)),101),g==(Co(),jp)||g==ya)for(a=new tt(t.f.a+t.d.b+t.d.c,t.f.b+t.d.d+t.d.a).b,b=new ee(e.a);b.ai?t:i;_<=I;++_)_==i?g=s++:(c=a[_],k=U.am(c.Lk()),_==t&&(m=_==I&&!k?s-1:s),k&&++s);return D=f(R6(e,t,i),76),g!=m&&Ux(e,new V7(e.e,7,b,ot(g),W.md(),m)),D}}else return f(Ene(e,t,i),76);return f(R6(e,t,i),76)}function FNn(e,t){var i,s,a,c,b,g,m;for(t.Ug("Port order processing",1),m=f(V(e,(bt(),Z6e)),430),s=new ee(e.b);s.a=0&&(g=NTn(e,b),!(g&&(_<22?m.l|=1<<_:_<44?m.m|=1<<_-22:m.h|=1<<_-44,e.l==0&&e.m==0&&e.h==0)));)k=b.m,I=b.h,D=b.l,b.h=I>>>1,b.m=k>>>1|(I&1)<<21,b.l=D>>>1|(k&1)<<21,--_;return i&&ete(m),c&&(s?(J1=UC(e),a&&(J1=nvt(J1,(xC(),XAe)))):J1=Oa(e.l,e.m,e.h)),m}function HNn(e,t){var i,s,a,c,b,g,m,_,k,I;for(_=e.e[t.c.p][t.p]+1,m=t.c.a.c.length+1,g=new ee(e.a);g.a0&&(pn(0,e.length),e.charCodeAt(0)==45||(pn(0,e.length),e.charCodeAt(0)==43))?1:0,s=b;si)throw ne(new Ih(cy+e+'"'));return g}function UNn(e){var t,i,s,a,c,b,g;for(b=new li,c=new ee(e.a);c.a1)&&t==1&&f(e.a[e.b],10).k==(gn(),ea)?T3(f(e.a[e.b],10),(ku(),Dp)):s&&(!i||(e.c-e.b&e.a.length-1)>1)&&t==1&&f(e.a[e.c-1&e.a.length-1],10).k==(gn(),ea)?T3(f(e.a[e.c-1&e.a.length-1],10),(ku(),a0)):(e.c-e.b&e.a.length-1)==2?(T3(f(g6(e),10),(ku(),Dp)),T3(f(g6(e),10),a0)):yPn(e,a),u_e(e)}function zNn(e,t,i){var s,a,c,b,g;for(c=0,a=new Sn((!e.a&&(e.a=new qe($r,e,10,11)),e.a));a.e!=a.i.gc();)s=f(Cn(a),27),b="",(!s.n&&(s.n=new qe(Fs,s,1,7)),s.n).i==0||(b=f(Se((!s.n&&(s.n=new qe(Fs,s,1,7)),s.n),0),135).a),g=new tte(c++,t,b),ol(g,s),Xe(g,(ei(),h5),s),g.e.b=s.j+s.f/2,g.f.a=h.Math.max(s.g,1),g.e.a=s.i+s.g/2,g.f.b=h.Math.max(s.f,1),hr(t.b,g),Ca(i.f,s,g)}function KNn(e){var t,i,s,a,c;s=f(V(e,(nt(),Ur)),27),c=f(Ye(s,(bt(),Dw)),181).Hc((su(),Vw)),e.e||(a=f(V(e,ma),21),t=new tt(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a),a.Hc((As(),af))?(zr(s,Oi,(Co(),ya)),sy(s,t.a,t.b,!1,!0)):mt(wt(Ye(s,Ble)))||sy(s,t.a,t.b,!0,!0)),c?zr(s,Dw,Mt(Vw)):zr(s,Dw,(i=f(kd(N5),9),new Uu(i,f(Yf(i,i.length),9),0)))}function w3e(e,t,i){var s,a,c,b;if(t[0]>=e.length)return i.o=0,!0;switch(Jo(e,t[0])){case 43:a=1;break;case 45:a=-1;break;default:return i.o=0,!0}if(++t[0],c=t[0],b=LH(e,t),b==0&&t[0]==c)return!1;if(t[0]g&&(g=a,k.c.length=0),a==g&<(k,new io(i.c.i,i)));Kt(),Hi(k,e.c),Tm(e.b,m.p,k)}}function YNn(e,t){var i,s,a,c,b,g,m,_,k;for(b=new ee(t.b);b.ag&&(g=a,k.c.length=0),a==g&<(k,new io(i.d.i,i)));Kt(),Hi(k,e.c),Tm(e.f,m.p,k)}}function QNn(e,t){var i,s,a,c,b,g,m,_;if(_=wt(V(t,(Il(),NNt))),_==null||(mn(_),_)){for(k8n(e,t),a=new st,m=Hn(t.b,0);m.b!=m.d.c;)b=f(Bn(m),40),i=ike(e,b,null),i&&(ol(i,t),sn(a.c,i));if(e.a=null,e.b=null,a.c.length>1)for(s=new ee(a);s.a=0&&g!=i&&(c=new yo(e,1,g,b,null),s?s.nj(c):s=c),i>=0&&(c=new yo(e,1,i,g==i?b:null,t),s?s.nj(c):s=c)),s}function vRt(e){var t,i,s;if(e.b==null){if(s=new ig,e.i!=null&&(Ms(s,e.i),s.a+=":"),e.f&256){for(e.f&256&&e.a!=null&&(w_n(e.i)||(s.a+="//"),Ms(s,e.a)),e.d!=null&&(s.a+="/",Ms(s,e.d)),e.f&16&&(s.a+="/"),t=0,i=e.j.length;tD?!1:(I=(m=Q6(s,D,!1),m.a),k+g+I<=t.b&&(z7(i,c-i.s),i.c=!0,z7(s,c-i.s),AN(s,i.s,i.t+i.d+g),s.k=!0,RSe(i.q,s),W=!0,a&&(IW(t,s),s.j=t,e.c.length>b&&(IN((qt(b,e.c.length),f(e.c[b],186)),s),(qt(b,e.c.length),f(e.c[b],186)).a.c.length==0&&pg(e,b)))),W)}function oMn(e,t){var i,s,a,c,b,g;if(t.Ug("Partition midprocessing",1),a=new Fm,Mi(Br(new Wt(null,new Vt(e.a,16)),new VKe),new pit(a)),a.d!=0){for(g=f(fl(Kve((c=a.i,new Wt(null,(c||(a.i=new XS(a,a.c))).Nc()))),Cc(new K,new B,new Zt,se(ie(qs,1),Je,108,0,[(Tc(),pl)]))),15),s=g.Kc(),i=f(s.Pb(),17);s.Ob();)b=f(s.Pb(),17),QPn(f(Hr(a,i),21),f(Hr(a,b),21)),i=b;t.Vg()}}function ERt(e,t,i){var s,a,c,b,g,m,_,k;if(t.p==0){for(t.p=1,b=i,b||(a=new st,c=(s=f(kd(vs),9),new Uu(s,f(Yf(s,s.length),9),0)),b=new io(a,c)),f(b.a,15).Fc(t),t.k==(gn(),Ui)&&f(b.b,21).Fc(f(V(t,(nt(),Dl)),64)),m=new ee(t.j);m.a0){if(a=f(e.Ab.g,2033),t==null){for(c=0;ci.s&&gb)return ut(),_n;break;case 4:case 3:if(k<0)return ut(),bn;if(k+i>c)return ut(),jn}return m=(_+g/2)/b,s=(k+i/2)/c,m+s<=1&&m-s<=0?(ut(),wn):m+s>=1&&m-s>=0?(ut(),_n):s<.5?(ut(),bn):(ut(),jn)}function uMn(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z;for(i=!1,k=Ae(je(V(t,(bt(),Iy)))),U=G1*k,a=new ee(t.b);a.am+U&&(z=I.g+D.g,D.a=(D.g*D.a+I.g*I.a)/z,D.g=z,I.f=D,i=!0)),c=g,I=D;return i}function CRt(e,t,i,s,a,c,b){var g,m,_,k,I,D;for(D=new Vk,_=t.Kc();_.Ob();)for(g=f(_.Pb(),853),I=new ee(g.Rf());I.a0?g.a?(_=g.b.Mf().b,a>_&&(e.v||g.c.d.c.length==1?(b=(a-_)/2,g.d.d=b,g.d.a=b):(i=f(vt(g.c.d,0),187).Mf().b,s=(i-_)/2,g.d.d=h.Math.max(0,s),g.d.a=a-s-_))):g.d.a=e.t+a:V$(e.u)&&(c=BEe(g.b),c.d<0&&(g.d.d=-c.d),c.d+c.a>g.b.Mf().b&&(g.d.a=c.d+c.a-g.b.Mf().b))}function od(){od=F,K3=new Po((Er(),N9),ot(1)),LG=new Po(Uw,80),s5t=new Po(APe,5),JIt=new Po(sE,PA),i5t=new Po(_ce,ot(1)),o5t=new Po(Sce,(cn(),!0)),nTe=new km(50),n5t=new Po(Bg,nTe),Z4e=P9,rTe=x5,YIt=new Po(fce,!1),tTe=O9,e5t=V_,t5t=l0,ZIt=Hw,QIt=uE,r5t=z_,eTe=(JEe(),UIt),Ose=KIt,DG=HIt,Pse=GIt,iTe=zIt,c5t=k4,u5t=_z,a5t=M9,l5t=vz,oTe=(m3(),X_),new Po(cR,oTe)}function hMn(e,t){var i;switch(eN(e)){case 6:return Eo(t);case 7:return Pv(t);case 8:return Iv(t);case 3:return Array.isArray(t)&&(i=eN(t),!(i>=14&&i<=16));case 11:return t!=null&&typeof t===hre;case 12:return t!=null&&(typeof t===rM||typeof t==hre);case 0:return jte(t,e.__elementTypeId$);case 2:return mZ(t)&&t.Tm!==ae;case 1:return mZ(t)&&t.Tm!==ae||jte(t,e.__elementTypeId$);default:return!0}}function pMn(e){var t,i,s,a;s=e.o,Mv(),e.A.dc()||Lr(e.A,H4e)?a=s.a:(e.D?a=h.Math.max(s.a,F6(e.f)):a=F6(e.f),e.A.Hc((su(),W9))&&!e.B.Hc((Gc(),M5))&&(a=h.Math.max(a,F6(f(Ds(e.p,(ut(),bn)),252))),a=h.Math.max(a,F6(f(Ds(e.p,jn),252)))),t=Hyt(e),t&&(a=h.Math.max(a,t.a))),mt(wt(e.e.Tf().of((Er(),V_))))?s.a=h.Math.max(s.a,a):s.a=a,i=e.f.i,i.c=0,i.b=a,Vne(e.f)}function ARt(e,t){var i,s,a,c;return s=h.Math.min(h.Math.abs(e.c-(t.c+t.b)),h.Math.abs(e.c+e.b-t.c)),c=h.Math.min(h.Math.abs(e.d-(t.d+t.a)),h.Math.abs(e.d+e.a-t.d)),i=h.Math.abs(e.c+e.b/2-(t.c+t.b/2)),i>e.b/2+t.b/2||(a=h.Math.abs(e.d+e.a/2-(t.d+t.a/2)),a>e.a/2+t.a/2)?1:i==0&&a==0?0:i==0?c/a+1:a==0?s/i+1:h.Math.min(s/i,c/a)+1}function bMn(e,t){var i,s,a,c,b,g,m;for(c=0,g=0,m=0,a=new ee(e.f.e);a.a0&&e.d!=(l6(),Dse)&&(g+=b*(s.d.a+e.a[t.a][s.a]*(t.d.a-s.d.a)/i)),i>0&&e.d!=(l6(),Nse)&&(m+=b*(s.d.b+e.a[t.a][s.a]*(t.d.b-s.d.b)/i)));switch(e.d.g){case 1:return new tt(g/c,t.d.b);case 2:return new tt(t.d.a,m/c);default:return new tt(g/c,m/c)}}function TRt(e){var t,i,s,a,c,b;for(i=(!e.a&&(e.a=new zi(Nu,e,5)),e.a).i+2,b=new ka(i),lt(b,new tt(e.j,e.k)),Mi(new Wt(null,(!e.a&&(e.a=new zi(Nu,e,5)),new Vt(e.a,16))),new Bot(b)),lt(b,new tt(e.b,e.c)),t=1;t0&&(dN(m,!1,(Xi(),Js)),dN(m,!0,al)),Ma(t.g,new Uct(e,i)),xr(e.g,t,i)}function PRt(){PRt=F;var e;for(r4e=se(ie(Xn,1),wr,28,15,[-1,-1,30,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5]),ase=Fe(Xn,wr,28,37,15,1),v6t=se(ie(Xn,1),wr,28,15,[-1,-1,63,40,32,28,25,23,21,20,19,19,18,18,17,17,16,16,16,15,15,15,15,14,14,14,14,14,14,13,13,13,13,13,13,13,13]),i4e=Fe(m0,Bre,28,37,14,1),e=2;e<=36;e++)ase[e]=oo(h.Math.pow(e,r4e[e])),i4e[e]=ON(lM,ase[e])}function gMn(e){var t;if((!e.a&&(e.a=new qe(ai,e,6,6)),e.a).i!=1)throw ne(new hn(sTt+(!e.a&&(e.a=new qe(ai,e,6,6)),e.a).i));return t=new cc,uN(f(Se((!e.b&&(e.b=new en(Dn,e,4,7)),e.b),0),84))&&Do(t,vCt(e,uN(f(Se((!e.b&&(e.b=new en(Dn,e,4,7)),e.b),0),84)),!1)),uN(f(Se((!e.c&&(e.c=new en(Dn,e,5,8)),e.c),0),84))&&Do(t,vCt(e,uN(f(Se((!e.c&&(e.c=new en(Dn,e,5,8)),e.c),0),84)),!0)),t}function ORt(e,t){var i,s,a,c,b;for(t.d?a=e.a.c==(jh(),Oy)?go(t.b):Wi(t.b):a=e.a.c==(jh(),Lg)?go(t.b):Wi(t.b),c=!1,s=new kn(xn(a.a.Kc(),new O));Un(s);)if(i=f(On(s),18),b=mt(e.a.f[e.a.g[t.b.p].p]),!(!b&&!ms(i)&&i.c.i.c==i.d.i.c)&&!(mt(e.a.n[e.a.g[t.b.p].p])||mt(e.a.n[e.a.g[t.b.p].p]))&&(c=!0,Rd(e.b,e.a.g[gTn(i,t.b).p])))return t.c=!0,t.a=i,t;return t.c=c,t.a=null,t}function y3e(e,t,i){var s,a,c,b,g,m,_;if(s=i.gc(),s==0)return!1;if(e.Pj())if(m=e.Qj(),A2e(e,t,i),b=s==1?e.Ij(3,null,i.Kc().Pb(),t,m):e.Ij(5,null,i,t,m),e.Mj()){for(g=s<100?null:new y1(s),c=t+s,a=t;a0){for(b=0;b>16==-15&&e.Cb.Yh()&&See(new wee(e.Cb,9,13,i,e.c,Rg(Wc(f(e.Cb,62)),e))):ve(e.Cb,90)&&e.Db>>16==-23&&e.Cb.Yh()&&(t=e.c,ve(t,90)||(t=(zt(),Mf)),ve(i,90)||(i=(zt(),Mf)),See(new wee(e.Cb,9,10,i,t,Rg(ra(f(e.Cb,29)),e)))))),e.c}function yMn(e,t,i){var s,a,c,b,g,m,_,k,I;for(i.Ug("Hyperedge merging",1),U8n(e,t),m=new No(t.b,0);m.b0,g=iH(t,c),Pme(i?g.b:g.g,t),s2(g).c.length==1&&Ai(s,g,s.c.b,s.c),a=new io(c,t),$1(e.o,a),Ja(e.e.a,c))}function BRt(e,t){var i,s,a,c,b,g,m;return s=h.Math.abs(PB(e.b).a-PB(t.b).a),g=h.Math.abs(PB(e.b).b-PB(t.b).b),a=0,m=0,i=1,b=1,s>e.b.b/2+t.b.b/2&&(a=h.Math.min(h.Math.abs(e.b.c-(t.b.c+t.b.b)),h.Math.abs(e.b.c+e.b.b-t.b.c)),i=1-a/s),g>e.b.a/2+t.b.a/2&&(m=h.Math.min(h.Math.abs(e.b.d-(t.b.d+t.b.a)),h.Math.abs(e.b.d+e.b.a-t.b.d)),b=1-m/g),c=h.Math.min(i,b),(1-c)*h.Math.sqrt(s*s+g*g)}function SMn(e){var t,i,s,a;for(are(e,e.e,e.f,(Bm(),o0),!0,e.c,e.i),are(e,e.e,e.f,o0,!1,e.c,e.i),are(e,e.e,e.f,eE,!0,e.c,e.i),are(e,e.e,e.f,eE,!1,e.c,e.i),mMn(e,e.c,e.e,e.f,e.i),s=new No(e.i,0);s.b=65;i--)_h[i]=i-65<<24>>24;for(s=122;s>=97;s--)_h[s]=s-97+26<<24>>24;for(a=57;a>=48;a--)_h[a]=a-48+52<<24>>24;for(_h[43]=62,_h[47]=63,c=0;c<=25;c++)Kg[c]=65+c&Ji;for(b=26,m=0;b<=51;++b,m++)Kg[b]=97+m&Ji;for(e=52,g=0;e<=61;++e,g++)Kg[e]=48+g&Ji;Kg[62]=43,Kg[63]=47}function WRt(e,t){var i,s,a,c,b,g;return a=vSe(e),g=vSe(t),a==g?e.e==t.e&&e.a<54&&t.a<54?e.ft.f?1:0:(s=e.e-t.e,i=(e.d>0?e.d:h.Math.floor((e.a-1)*qCt)+1)-(t.d>0?t.d:h.Math.floor((t.a-1)*qCt)+1),i>s+1?a:i0&&(b=e2(b,QRt(s))),Y_t(c,b))):a_&&(D=0,W+=m+t,m=0),bA(b,D,W),i=h.Math.max(i,D+k.a),m=h.Math.max(m,k.b),D+=k.a+t;return new tt(i+t,W+m+t)}function E3e(e,t){var i,s,a,c,b,g,m;if(!Xd(e))throw ne(new Us(oTt));if(s=Xd(e),c=s.g,a=s.f,c<=0&&a<=0)return ut(),Cl;switch(g=e.i,m=e.j,t.g){case 2:case 1:if(g<0)return ut(),wn;if(g+e.g>c)return ut(),_n;break;case 4:case 3:if(m<0)return ut(),bn;if(m+e.f>a)return ut(),jn}return b=(g+e.g/2)/c,i=(m+e.f/2)/a,b+i<=1&&b-i<=0?(ut(),wn):b+i>=1&&b-i>=0?(ut(),_n):i<.5?(ut(),bn):(ut(),jn)}function RMn(e,t,i,s,a){var c,b;if(c=is(fo(t[0],Ts),fo(s[0],Ts)),e[0]=tr(c),c=$m(c,32),i>=a){for(b=1;b0&&(a.b[b++]=0,a.b[b++]=c.b[0]-1),t=1;t0&&(aY(m,m.d-a.d),a.c==(Td(),i0)&&cpn(m,m.a-a.d),m.d<=0&&m.i>0&&Ai(t,m,t.c.b,t.c)));for(c=new ee(e.f);c.a0&&(Gj(g,g.i-a.d),a.c==(Td(),i0)&&upn(g,g.b-a.d),g.i<=0&&g.d>0&&Ai(i,g,i.c.b,i.c)))}function AMn(e,t,i,s,a){var c,b,g,m,_,k,I,D,W;for(Kt(),Hi(e,new QQe),b=_7(e),W=new st,D=new st,g=null,m=0;b.b!=0;)c=f(b.b==0?null:(In(b.b!=0),Xu(b,b.a.a)),163),!g||dc(g)*ru(g)/21&&(m>dc(g)*ru(g)/2||b.b==0)&&(I=new xW(D),k=dc(g)/ru(g),_=cre(I,t,new Pk,i,s,a,k),Mr(xd(I.e),_),g=I,sn(W.c,I),m=0,D.c.length=0));return eo(W,D),W}function oa(e,t,i,s,a){lb();var c,b,g,m,_,k,I;if(hve(e,"src"),hve(i,"dest"),I=ou(e),m=ou(i),Pye((I.i&4)!=0,"srcType is not an array"),Pye((m.i&4)!=0,"destType is not an array"),k=I.c,b=m.c,Pye(k.i&1?k==b:(b.i&1)==0,"Array types don't match"),pxn(e,t,i,s,a),!(k.i&1)&&I!=m)if(_=ow(e),c=ow(i),Oe(e)===Oe(i)&&ts;)Ci(c,g,_[--t]);else for(g=s+a;s0),s.a.Xb(s.c=--s.b),I>D+m&&iu(s);for(b=new ee(W);b.a0),s.a.Xb(s.c=--s.b)}}function $Mn(){Or();var e,t,i,s,a,c;if(Uce)return Uce;for(e=new yu(4),h_(e,U1(Xoe,!0)),tI(e,U1("M",!0)),tI(e,U1("C",!0)),c=new yu(4),s=0;s<11;s++)da(c,s,s);return t=new yu(4),h_(t,U1("M",!0)),da(t,4448,4607),da(t,65438,65439),a=new O$(2),ww(a,e),ww(a,z5),i=new O$(2),i.Jm(SB(c,U1("L",!0))),i.Jm(t),i=new Gv(3,i),i=new dve(a,i),Uce=i,Uce}function d_(e,t){var i,s,a,c,b,g,m,_;for(i=new RegExp(t,"g"),m=Fe(St,rt,2,0,6,1),s=0,_=e,c=null;;)if(g=i.exec(_),g==null||_==""){m[s]=_;break}else b=g.index,m[s]=(Mo(0,b,_.length),_.substr(0,b)),_=Vu(_,b+g[0].length,_.length),i.lastIndex=0,c==_&&(m[s]=(Mo(0,1,_.length),_.substr(0,1)),_=(pn(1,_.length+1),_.substr(1))),c=_,++s;if(e.length>0){for(a=m.length;a>0&&m[a-1]=="";)--a;a0&&(I-=s[0]+e.c,s[0]+=e.c),s[2]>0&&(I-=s[2]+e.c),s[1]=h.Math.max(s[1],I),xB(e.a[1],i.c+t.b+s[0]-(s[1]-I)/2,s[1]);for(c=e.a,g=0,_=c.length;g<_;++g)a=c[g],ve(a,336)&&f(a,336).lf()}function PMn(e){var t,i,s,a,c,b,g,m,_,k,I;for(I=new xJe,I.d=0,b=new ee(e.b);b.a0?(e.n.c.length-1)*e.i:0,s=new ee(e.n);s.a1)for(s=Hn(a,0);s.b!=s.d.c;)for(i=f(Bn(s),235),c=0,m=new ee(i.e);m.a0&&(t[0]+=e.c,I-=t[0]),t[2]>0&&(I-=t[2]+e.c),t[1]=h.Math.max(t[1],I),CB(e.a[1],s.d+i.d+t[0]-(t[1]-I)/2,t[1]);else for(U=s.d+i.d,W=s.a-i.d-i.a,b=e.a,m=0,k=b.length;m0||Ym(a.b.d,e.b.d+e.b.a)==0&&s.b<0||Ym(a.b.d+a.b.a,e.b.d)==0&&s.b>0){g=0;break}}else g=h.Math.min(g,BEt(e,a,s));g=h.Math.min(g,VRt(e,c,g,s))}return g}function YN(e,t){var i,s,a,c,b,g,m;if(e.b<2)throw ne(new hn("The vector chain must contain at least a source and a target point."));for(a=(In(e.b!=0),f(e.a.a.c,8)),a7(t,a.a,a.b),m=new Kk((!t.a&&(t.a=new zi(Nu,t,5)),t.a)),b=Hn(e,1);b.a=0&&c!=i))throw ne(new hn(PM));for(a=0,m=0;mAe(qd(b.g,b.d[0]).a)?(In(m.b>0),m.a.Xb(m.c=--m.b),Dv(m,b),a=!0):g.e&&g.e.gc()>0&&(c=(!g.e&&(g.e=new st),g.e).Mc(t),_=(!g.e&&(g.e=new st),g.e).Mc(i),(c||_)&&((!g.e&&(g.e=new st),g.e).Fc(b),++b.c));a||sn(s.c,b)}function LMn(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe;return I=e.a.i+e.a.g/2,D=e.a.i+e.a.g/2,U=t.i+t.g/2,X=t.j+t.f/2,g=new tt(U,X),_=f(Ye(t,(Er(),lR)),8),_.a=_.a+I,_.b=_.b+D,c=(g.b-_.b)/(g.a-_.a),s=g.b-c*g.a,z=i.i+i.g/2,oe=i.j+i.f/2,m=new tt(z,oe),k=f(Ye(i,lR),8),k.a=k.a+I,k.b=k.b+D,b=(m.b-k.b)/(m.a-k.a),a=m.b-b*m.a,W=(s-a)/(b-c),_.a>>0,"0"+t.toString(16)),s="\\x"+Vu(i,i.length-2,i.length)):e>=ys?(i=(t=e>>>0,"0"+t.toString(16)),s="\\v"+Vu(i,i.length-6,i.length)):s=""+String.fromCharCode(e&Ji)}return s}function XRt(e){var t,i,s;if(HS(f(V(e,(bt(),Oi)),101)))for(i=new ee(e.j);i.a=t.o&&i.f<=t.f||t.a*.5<=i.f&&t.a*1.5>=i.f){if(b=f(vt(t.n,t.n.c.length-1),209),b.e+b.d+i.g+a<=s&&(c=f(vt(t.n,t.n.c.length-1),209),c.f-e.f+i.f<=e.b||e.a.c.length==1))return v2e(t,i),!0;if(t.s+i.g<=s&&(t.t+t.d+i.f+a<=e.b||e.a.c.length==1))return lt(t.b,i),g=f(vt(t.n,t.n.c.length-1),209),lt(t.n,new JB(t.s,g.f+g.a+t.i,t.i)),eEe(f(vt(t.n,t.n.c.length-1),209),i),URt(t,i),!0}return!1}function YRt(e,t,i){var s,a,c,b;return e.Pj()?(a=null,c=e.Qj(),s=e.Ij(1,b=Ree(e,t,i),i,t,c),e.Mj()&&!(e.Yi()&&b!=null?Lr(b,i):Oe(b)===Oe(i))?(b!=null&&(a=e.Oj(b,a)),a=e.Nj(i,a),e.Tj()&&(a=e.Wj(b,i,a)),a?(a.nj(s),a.oj()):e.Jj(s)):(e.Tj()&&(a=e.Wj(b,i,a)),a?(a.nj(s),a.oj()):e.Jj(s)),b):(b=Ree(e,t,i),e.Mj()&&!(e.Yi()&&b!=null?Lr(b,i):Oe(b)===Oe(i))&&(a=null,b!=null&&(a=e.Oj(b,null)),a=e.Nj(i,a),a&&a.oj()),b)}function GMn(e,t){var i,s,a,c,b;if(t.Ug("Path-Like Graph Wrapping",1),e.b.c.length==0){t.Vg();return}if(a=new $ke(e),b=(a.i==null&&(a.i=_Se(a,new P1e)),Ae(a.i)*a.f),i=b/(a.i==null&&(a.i=_Se(a,new P1e)),Ae(a.i)),a.b>i){t.Vg();return}switch(f(V(e,(bt(),Vle)),351).g){case 2:c=new N1e;break;case 0:c=new I1e;break;default:c=new M1e}if(s=c.og(e,a),!c.pg())switch(f(V(e,jV),352).g){case 2:s=WEt(a,s);break;case 1:s=P2t(a,s)}F9n(e,a,s),t.Vg()}function X6(e,t){var i,s,a,c,b,g,m,_;t%=24,e.q.getHours()!=t&&(s=new h.Date(e.q.getTime()),s.setDate(s.getDate()+1),g=e.q.getTimezoneOffset()-s.getTimezoneOffset(),g>0&&(m=g/60|0,_=g%60,a=e.q.getDate(),i=e.q.getHours(),i+m>=24&&++a,c=new h.Date(e.q.getFullYear(),e.q.getMonth(),a,t+m,e.q.getMinutes()+_,e.q.getSeconds(),e.q.getMilliseconds()),e.q.setTime(c.getTime()))),b=e.q.getTime(),e.q.setTime(b+36e5),e.q.getHours()!=t&&e.q.setTime(b)}function VMn(e,t){var i,s,a,c;if(i2n(e.d,e.e),e.c.a.$b(),Ae(je(V(t.j,(bt(),xV))))!=0||Ae(je(V(t.j,xV)))!=0)for(i=C2,Oe(V(t.j,Np))!==Oe((Wh(),Dg))&&Xe(t.j,(nt(),t0),(cn(),!0)),c=f(V(t.j,t5),17).a,a=0;aa&&++_,lt(b,(qt(g+_,t.c.length),f(t.c[g+_],17))),m+=(qt(g+_,t.c.length),f(t.c[g+_],17)).a-s,++i;i=X&&e.e[m.p]>U*e.b||_e>=i*X)&&(sn(D.c,g),g=new st,Do(b,c),c.a.$b(),_-=k,W=h.Math.max(W,_*e.b+z),_+=_e,ge=_e,_e=0,k=0,z=0);return new io(W,D)}function Kne(e){var t,i,s,a,c,b,g;if(!e.d){if(g=new kZe,t=B5,c=t.a.zc(e,t),c==null){for(s=new Sn(rl(e));s.e!=s.i.gc();)i=f(Cn(s),29),Ii(g,Kne(i));t.a.Bc(e)!=null,t.a.gc()==0}for(b=g.i,a=(!e.q&&(e.q=new qe(Of,e,11,10)),new Sn(e.q));a.e!=a.i.gc();++b)f(Cn(a),411);Ii(g,(!e.q&&(e.q=new qe(Of,e,11,10)),e.q)),Qv(g),e.d=new WS((f(Se(Ve((C1(),un).o),9),19),g.i),g.g),e.e=f(g.g,688),e.e==null&&(e.e=eLt),Bc(e).b&=-17}return e.d}function mA(e,t,i,s){var a,c,b,g,m,_;if(_=Fa(e.e.Dh(),t),m=0,a=f(e.g,124),Ss(),f(t,69).xk()){for(b=0;b1||U==-1)if(I=f(z,71),D=f(k,71),I.dc())D.$b();else for(b=!!Es(t),c=0,g=e.a?I.Kc():I.Ii();g.Ob();)_=f(g.Pb(),58),a=f(th(e,_),58),a?(b?(m=D.dd(a),m==-1?D.Gi(c,a):c!=m&&D.Ui(c,a)):D.Gi(c,a),++c):e.b&&!b&&(D.Gi(c,_),++c);else z==null?k.Wb(null):(a=th(e,z),a==null?e.b&&!Es(t)&&k.Wb(z):k.Wb(a))}function JMn(e,t){var i,s,a,c,b,g,m,_;for(i=new cKe,a=new kn(xn(go(t).a.Kc(),new O));Un(a);)if(s=f(On(a),18),!ms(s)&&(g=s.c.i,DEe(g,WG))){if(_=t3e(e,g,WG,BG),_==-1)continue;i.b=h.Math.max(i.b,_),!i.a&&(i.a=new st),lt(i.a,g)}for(b=new kn(xn(Wi(t).a.Kc(),new O));Un(b);)if(c=f(On(b),18),!ms(c)&&(m=c.d.i,DEe(m,BG))){if(_=t3e(e,m,BG,WG),_==-1)continue;i.d=h.Math.max(i.d,_),!i.c&&(i.c=new st),lt(i.c,m)}return i}function YMn(e,t,i,s){var a,c,b,g,m,_,k;if(i.d.i!=t.i){for(a=new kb(e),W0(a,(gn(),vo)),Xe(a,(nt(),Ur),i),Xe(a,(bt(),Oi),(Co(),ya)),sn(s.c,a),b=new ia,Sl(b,a),so(b,(ut(),wn)),g=new ia,Sl(g,a),so(g,_n),k=i.d,xo(i,b),c=new jm,ol(c,i),Xe(c,Xs,null),rs(c,g),xo(c,k),_=new No(i.b,0);_.b<_.d.gc();)m=(In(_.b<_.d.gc()),f(_.d.Xb(_.c=_.b++),72)),Oe(V(m,rp))===Oe((nh(),K_))&&(Xe(m,Q3,i),iu(_),lt(c.b,m));$kt(a,b,g)}}function QMn(e,t,i,s){var a,c,b,g,m,_,k;if(i.c.i!=t.i)for(a=new kb(e),W0(a,(gn(),vo)),Xe(a,(nt(),Ur),i),Xe(a,(bt(),Oi),(Co(),ya)),sn(s.c,a),b=new ia,Sl(b,a),so(b,(ut(),wn)),g=new ia,Sl(g,a),so(g,_n),xo(i,b),c=new jm,ol(c,i),Xe(c,Xs,null),rs(c,g),xo(c,t),$kt(a,b,g),_=new No(i.b,0);_.b<_.d.gc();)m=(In(_.b<_.d.gc()),f(_.d.Xb(_.c=_.b++),72)),k=f(V(m,rp),278),k==(nh(),K_)&&(ri(m,Q3)||Xe(m,Q3,i),iu(_),lt(c.b,m))}function QRt(e){pA();var t,i,s,a;if(t=oo(e),e1e6)throw ne(new rF("power of ten too big"));if(e<=Nr)return u3(HN(V3[1],t),t);for(s=HN(V3[1],Nr),a=s,i=Gl(e-Nr),t=oo(e%Nr);Jl(i,Nr)>0;)a=e2(a,s),i=vf(i,Nr);for(a=e2(a,HN(V3[1],t)),a=u3(a,Nr),i=Gl(e-Nr);Jl(i,Nr)>0;)a=u3(a,Nr),i=vf(i,Nr);return a=u3(a,t),a}function ZRt(e){var t,i,s,a,c,b,g,m,_,k;for(m=new ee(e.a);m.a_&&s>_)k=g,_=Ae(t.p[g.p])+Ae(t.d[g.p])+g.o.b+g.d.a;else{a=!1,i._g()&&i.bh("bk node placement breaks on "+g+" which should have been after "+k);break}if(!a)break}return i._g()&&i.bh(t+" is feasible: "+a),a}function C3e(e,t,i,s){var a,c,b,g,m,_,k,I,D;if(c=new kb(e),W0(c,(gn(),wa)),Xe(c,(bt(),Oi),(Co(),ya)),a=0,t){for(b=new ia,Xe(b,(nt(),Ur),t),Xe(c,Ur,t.i),so(b,(ut(),wn)),Sl(b,c),D=Fh(t.e),_=D,k=0,I=_.length;k0){if(a<0&&k.a&&(a=m,c=_[0],s=0),a>=0){if(g=k.b,m==a&&(g-=s++,g==0))return 0;if(!rCt(t,_,k,g,b)){m=a-1,_[0]=c;continue}}else if(a=-1,!rCt(t,_,k,0,b))return 0}else{if(a=-1,Jo(k.c,0)==32){if(I=_[0],imt(t,_),_[0]>I)continue}else if(F_n(t,k.c,_[0])){_[0]+=k.c.length;continue}return 0}return WLn(b,i)?_[0]:0}function r9n(e,t,i){var s,a,c,b,g,m,_,k,I,D;for(k=new TB(new Hrt(i)),g=Fe(Xc,Tp,28,e.f.e.c.length,16,1),uve(g,g.length),i[t.a]=0,_=new ee(e.f.e);_.a<_.c.c.length;)m=f(Z(_),153),m.a!=t.a&&(i[m.a]=Nr),Qk(aA(k,m),AA);for(;k.b.c.length!=0;)for(I=f(Cee(k),153),g[I.a]=!0,c=Zft(new FY(e.b,I),0);c.c;)a=f(z_e(c),290),D=bTn(a,I),!g[D.a]&&(ri(a,($N(),FG))?b=Ae(je(V(a,FG))):b=e.c,s=i[I.a]+b,s=0&&!u2(e,k,I);)--I;a[k]=I}for(W=0;W=0&&!u2(e,g,U);)--g;c[U]=g}for(m=0;mt[D]&&Ds[m]&&QH(e,m,D,!1,!0)}function A3e(e){var t,i,s,a,c,b,g,m;i=mt(wt(V(e,(od(),YIt)))),c=e.a.c.d,g=e.a.d.d,i?(b=Nh(uo(new tt(g.a,g.b),c),.5),m=Nh(Ho(e.e),.5),t=uo(Mr(new tt(c.a,c.b),b),m),Lme(e.d,t)):(a=Ae(je(V(e.a,s5t))),s=e.d,c.a>=g.a?c.b>=g.b?(s.a=g.a+(c.a-g.a)/2+a,s.b=g.b+(c.b-g.b)/2-a-e.e.b):(s.a=g.a+(c.a-g.a)/2+a,s.b=c.b+(g.b-c.b)/2+a):c.b>=g.b?(s.a=c.a+(g.a-c.a)/2+a,s.b=g.b+(c.b-g.b)/2+a):(s.a=c.a+(g.a-c.a)/2+a,s.b=c.b+(g.b-c.b)/2-a-e.e.b))}function Y6(e){var t,i,s,a,c,b,g,m;if(!e.f){if(m=new W1e,g=new W1e,t=B5,b=t.a.zc(e,t),b==null){for(c=new Sn(rl(e));c.e!=c.i.gc();)a=f(Cn(c),29),Ii(m,Y6(a));t.a.Bc(e)!=null,t.a.gc()==0}for(s=(!e.s&&(e.s=new qe(rc,e,21,17)),new Sn(e.s));s.e!=s.i.gc();)i=f(Cn(s),179),ve(i,102)&&zn(g,f(i,19));Qv(g),e.r=new Vht(e,(f(Se(Ve((C1(),un).o),6),19),g.i),g.g),Ii(m,e.r),Qv(m),e.f=new WS((f(Se(Ve(un.o),5),19),m.i),m.g),Bc(e).b&=-3}return e.f}function txt(e){ym(e,new gw(gm(hm(bm(pm(new F0,Sw),"ELK DisCo"),"Layouter for arranging unconnected subgraphs. The subgraphs themselves are, by default, not laid out."),new j0))),it(e,Sw,lie,ht(J4e)),it(e,Sw,aie,ht(Ase)),it(e,Sw,j3,ht(DIt)),it(e,Sw,uy,ht(X4e)),it(e,Sw,gRe,ht(BIt)),it(e,Sw,wRe,ht(FIt)),it(e,Sw,bRe,ht(WIt)),it(e,Sw,mRe,ht(jIt)),it(e,Sw,RRe,ht(LIt)),it(e,Sw,xRe,ht(Cse)),it(e,Sw,CRe,ht(q4e)),it(e,Sw,ARe,ht(OG))}function nU(){nU=F,gOe=se(ie(df,1),zh,28,15,[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70]),$Dt=new RegExp(`[ +\r\f]+`);try{L5=se(ie(FFn,1),on,2114,0,[new OO((ime(),aH("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",g7((nF(),nF(),OI))))),new OO(aH("yyyy-MM-dd'T'HH:mm:ss'.'SSS",g7(OI))),new OO(aH("yyyy-MM-dd'T'HH:mm:ss",g7(OI))),new OO(aH("yyyy-MM-dd'T'HH:mm",g7(OI))),new OO(aH("yyyy-MM-dd",g7(OI)))])}catch(e){if(e=mi(e),!ve(e,82))throw ne(e)}}function o9n(e,t){var i,s,a,c;if(a=Uc(e.d,1)!=0,s=a3e(e,t),s==0&&mt(wt(V(t.j,(nt(),t0)))))return 0;!mt(wt(V(t.j,(nt(),t0))))&&!mt(wt(V(t.j,z2)))||Oe(V(t.j,(bt(),Np)))===Oe((Wh(),Dg))?t.c.mg(t.e,a):a=mt(wt(V(t.j,t0))),zN(e,t,a,!0),mt(wt(V(t.j,z2)))&&Xe(t.j,z2,(cn(),!1)),mt(wt(V(t.j,t0)))&&(Xe(t.j,t0,(cn(),!1)),Xe(t.j,z2,!0)),i=a3e(e,t);do{if(ySe(e),i==0)return 0;a=!a,c=i,zN(e,t,a,!1),i=a3e(e,t)}while(c>i);return c}function nxt(e,t){var i,s,a,c;if(a=Uc(e.d,1)!=0,s=DH(e,t),s==0&&mt(wt(V(t.j,(nt(),t0)))))return 0;!mt(wt(V(t.j,(nt(),t0))))&&!mt(wt(V(t.j,z2)))||Oe(V(t.j,(bt(),Np)))===Oe((Wh(),Dg))?t.c.mg(t.e,a):a=mt(wt(V(t.j,t0))),zN(e,t,a,!0),mt(wt(V(t.j,z2)))&&Xe(t.j,z2,(cn(),!1)),mt(wt(V(t.j,t0)))&&(Xe(t.j,t0,(cn(),!1)),Xe(t.j,z2,!0)),i=DH(e,t);do{if(ySe(e),i==0)return 0;a=!a,c=i,zN(e,t,a,!1),i=DH(e,t)}while(c>i);return c}function T3e(e,t,i,s){var a,c,b,g,m,_,k,I,D;return m=uo(new tt(i.a,i.b),e),_=m.a*t.b-m.b*t.a,k=t.a*s.b-t.b*s.a,I=(m.a*s.b-m.b*s.a)/k,D=_/k,k==0?_==0?(a=Mr(new tt(i.a,i.b),Nh(new tt(s.a,s.b),.5)),c=I1(e,a),b=I1(Mr(new tt(e.a,e.b),t),a),g=h.Math.sqrt(s.a*s.a+s.b*s.b)*.5,c=0&&I<=1&&D>=0&&D<=1?Mr(new tt(e.a,e.b),Nh(new tt(t.a,t.b),I)):null}function s9n(e,t,i){var s,a,c,b,g;if(s=f(V(e,(bt(),Ple)),21),i.a>t.a&&(s.Hc((bw(),S5))?e.c.a+=(i.a-t.a)/2:s.Hc(E5)&&(e.c.a+=i.a-t.a)),i.b>t.b&&(s.Hc((bw(),R5))?e.c.b+=(i.b-t.b)/2:s.Hc(k5)&&(e.c.b+=i.b-t.b)),f(V(e,(nt(),ma)),21).Hc((As(),af))&&(i.a>t.a||i.b>t.b))for(g=new ee(e.a);g.at.a&&(s.Hc((bw(),S5))?e.c.a+=(i.a-t.a)/2:s.Hc(E5)&&(e.c.a+=i.a-t.a)),i.b>t.b&&(s.Hc((bw(),R5))?e.c.b+=(i.b-t.b)/2:s.Hc(k5)&&(e.c.b+=i.b-t.b)),f(V(e,(nt(),ma)),21).Hc((As(),af))&&(i.a>t.a||i.b>t.b))for(b=new ee(e.a);b.a0?e.i:0)>t&&m>0&&(c=0,b+=m+e.i,a=h.Math.max(a,D),s+=m+e.i,m=0,D=0,i&&(++I,lt(e.n,new JB(e.s,b,e.i))),g=0),D+=_.g+(g>0?e.i:0),m=h.Math.max(m,_.f),i&&eEe(f(vt(e.n,I),209),_),c+=_.g+(g>0?e.i:0),++g;return a=h.Math.max(a,D),s+=m,i&&(e.r=a,e.d=s,iEe(e.j)),new Gu(e.s,e.t,a,s)}function qne(e){var t,i,s,a,c,b,g,m,_,k,I,D;for(e.b=!1,I=hi,m=to,D=hi,_=to,s=e.e.a.ec().Kc();s.Ob();)for(i=f(s.Pb(),272),a=i.a,I=h.Math.min(I,a.c),m=h.Math.max(m,a.c+a.b),D=h.Math.min(D,a.d),_=h.Math.max(_,a.d+a.a),b=new ee(i.c);b.ae.o.a&&(k=(m-e.o.a)/2,g.b=h.Math.max(g.b,k),g.c=h.Math.max(g.c,k))}}function u9n(e){var t,i,s,a,c,b,g,m;for(c=new Ygt,Wgn(c,(g3(),w9t)),s=(a=Bee(e,Fe(St,rt,2,0,6,1)),new YT(new kc(new BY(e,a).b)));s.bg?1:-1:qSe(e.a,t.a,c),a==-1)I=-m,k=b==m?fee(t.a,g,e.a,c):hee(t.a,g,e.a,c);else if(I=b,b==m){if(a==0)return Uh(),MI;k=fee(e.a,c,t.a,g)}else k=hee(e.a,c,t.a,g);return _=new Y0(I,k.length,k),t6(_),_}function f9n(e,t){var i,s,a,c;if(c=FRt(t),!t.c&&(t.c=new qe(Mc,t,9,9)),Mi(new Wt(null,(!t.c&&(t.c=new qe(Mc,t,9,9)),new Vt(t.c,16))),new zrt(c)),a=f(V(c,(nt(),ma)),21),rLn(t,a),a.Hc((As(),af)))for(s=new Sn((!t.c&&(t.c=new qe(Mc,t,9,9)),t.c));s.e!=s.i.gc();)i=f(Cn(s),123),PLn(e,t,c,i);return f(Ye(t,(bt(),Dw)),181).gc()!=0&&I3t(t,c),mt(wt(V(c,J6e)))&&a.Fc(wV),ri(c,c9)&&Blt(new I2e(Ae(je(V(c,c9)))),c),Oe(Ye(t,M_))===Oe((vb(),Wg))?nFn(e,t,c):Bjn(e,t,c),c}function d9n(e){var t,i,s,a,c,b,g,m;for(a=new ee(e.b);a.a0?Vu(i.a,0,c-1):""):(Mo(0,c-1,e.length),e.substr(0,c-1)):i?i.a:e}function h9n(e,t){var i,s,a,c,b,g,m;for(t.Ug("Sort By Input Model "+V(e,(bt(),Np)),1),a=0,s=new ee(e.b);s.a=e.b.length?(c[a++]=b.b[s++],c[a++]=b.b[s++]):s>=b.b.length?(c[a++]=e.b[i++],c[a++]=e.b[i++]):b.b[s]0?e.i:0)),++t;for(p2e(e.n,m),e.d=i,e.r=s,e.g=0,e.f=0,e.e=0,e.o=hi,e.p=hi,c=new ee(e.b);c.a0&&(a=(!e.n&&(e.n=new qe(Fs,e,1,7)),f(Se(e.n,0),135)).a,!a||br(br((t.a+=' "',t),a),'"'))),i=(!e.b&&(e.b=new en(Dn,e,4,7)),!(e.b.i<=1&&(!e.c&&(e.c=new en(Dn,e,5,8)),e.c.i<=1))),i?t.a+=" [":t.a+=" ",br(t,Eme(new OY,new Sn(e.b))),i&&(t.a+="]"),t.a+=bie,i&&(t.a+="["),br(t,Eme(new OY,new Sn(e.c))),i&&(t.a+="]"),t.a)}function b9n(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ct,Dt,Nt,ln;for(Ke=e.c,Ze=t.c,i=il(Ke.a,e,0),s=il(Ze.a,t,0),_e=f(Qm(e,(Cs(),Pc)).Kc().Pb(),12),Nt=f(Qm(e,Ta).Kc().Pb(),12),Ce=f(Qm(t,Pc).Kc().Pb(),12),ln=f(Qm(t,Ta).Kc().Pb(),12),oe=Fh(_e.e),ct=Fh(Nt.g),ge=Fh(Ce.e),Dt=Fh(ln.g),r_(e,s,Ze),b=ge,k=0,U=b.length;kk?new tw((Td(),U_),i,t,_-k):_>0&&k>0&&(new tw((Td(),U_),t,i,0),new tw(U_,i,t,0))),b)}function m9n(e,t,i){var s,a,c;for(e.a=new st,c=Hn(t.b,0);c.b!=c.d.c;){for(a=f(Bn(c),40);f(V(a,(Il(),ip)),17).a>e.a.c.length-1;)lt(e.a,new io(C2,fCe));s=f(V(a,ip),17).a,i==(Xi(),Js)||i==al?(a.e.aAe(je(f(vt(e.a,s),42).b))&&uY(f(vt(e.a,s),42),a.e.a+a.f.a)):(a.e.bAe(je(f(vt(e.a,s),42).b))&&uY(f(vt(e.a,s),42),a.e.b+a.f.b))}}function oxt(e,t,i,s){var a,c,b,g,m,_,k;if(c=nH(s),g=mt(wt(V(s,(bt(),G6e)))),(g||mt(wt(V(e,IV))))&&!HS(f(V(e,Oi),101)))a=y3(c),m=m3e(e,i,i==(Cs(),Ta)?a:SN(a));else switch(m=new ia,Sl(m,e),t?(k=m.n,k.a=t.a-e.n.a,k.b=t.b-e.n.b,fEt(k,0,0,e.o.a,e.o.b),so(m,xRt(m,c))):(a=y3(c),so(m,i==(Cs(),Ta)?a:SN(a))),b=f(V(s,(nt(),ma)),21),_=m.j,c.g){case 2:case 1:(_==(ut(),bn)||_==jn)&&b.Fc((As(),U2));break;case 4:case 3:(_==(ut(),_n)||_==wn)&&b.Fc((As(),U2))}return m}function sxt(e,t){var i,s,a,c,b,g;for(b=new aw(new U0(e.f.b).a);b.b;){if(c=qm(b),a=f(c.ld(),602),t==1){if(a.Af()!=(Xi(),cf)&&a.Af()!=gh)continue}else if(a.Af()!=(Xi(),Js)&&a.Af()!=al)continue;switch(s=f(f(c.md(),42).b,86),g=f(f(c.md(),42).a,194),i=g.c,a.Af().g){case 2:s.g.c=e.e.a,s.g.b=h.Math.max(1,s.g.b+i);break;case 1:s.g.c=s.g.c+i,s.g.b=h.Math.max(1,s.g.b-i);break;case 4:s.g.d=e.e.b,s.g.a=h.Math.max(1,s.g.a+i);break;case 3:s.g.d=s.g.d+i,s.g.a=h.Math.max(1,s.g.a-i)}}}function y9n(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z;for(g=Fe(Xn,wr,28,t.b.c.length,15,1),_=Fe(Gse,Je,273,t.b.c.length,0,1),m=Fe(Op,$g,10,t.b.c.length,0,1),I=e.a,D=0,W=I.length;D0&&m[s]&&(U=zS(e.b,m[s],a)),z=h.Math.max(z,a.c.c.b+U);for(c=new ee(k.e);c.a1)throw ne(new hn(LM));m||(c=yp(t,s.Kc().Pb()),b.Fc(c))}return NSe(e,tke(e,t,i),b)}function iU(e,t,i){var s,a,c,b,g,m,_,k;if(xb(e.e,t))m=(Ss(),f(t,69).xk()?new wB(t,e):new s7(t,e)),jH(m.c,m.b),N$(m,f(i,16));else{for(k=Fa(e.e.Dh(),t),s=f(e.g,124),b=0;b"}m!=null&&(t.a+=""+m)}else e.e?(g=e.e.zb,g!=null&&(t.a+=""+g)):(t.a+="?",e.b?(t.a+=" super ",Zne(e.b,t)):e.f&&(t.a+=" extends ",Zne(e.f,t)))}function k9n(e){e.b=null,e.a=null,e.o=null,e.q=null,e.v=null,e.w=null,e.B=null,e.p=null,e.Q=null,e.R=null,e.S=null,e.T=null,e.U=null,e.V=null,e.W=null,e.bb=null,e.eb=null,e.ab=null,e.H=null,e.db=null,e.c=null,e.d=null,e.f=null,e.n=null,e.r=null,e.s=null,e.u=null,e.G=null,e.J=null,e.e=null,e.j=null,e.i=null,e.g=null,e.k=null,e.t=null,e.F=null,e.I=null,e.L=null,e.M=null,e.O=null,e.P=null,e.$=null,e.N=null,e.Z=null,e.cb=null,e.K=null,e.D=null,e.A=null,e.C=null,e._=null,e.fb=null,e.X=null,e.Y=null,e.gb=!1,e.hb=!1}function R9n(e){var t,i,s,a;if(s=fre((!e.c&&(e.c=D7(Gl(e.f))),e.c),0),e.e==0||e.a==0&&e.f!=-1&&e.e<0)return s;if(t=vSe(e)<0?1:0,i=e.e,a=(s.length+1+h.Math.abs(oo(e.e)),new jk),t==1&&(a.a+="-"),e.e>0)if(i-=s.length-t,i>=0){for(a.a+="0.";i>$w.length;i-=$w.length)tpt(a,$w);Fdt(a,$w,oo(i)),br(a,(pn(t,s.length+1),s.substr(t)))}else i=t-i,br(a,Vu(s,t,oo(i))),a.a+=".",br(a,yve(s,oo(i)));else{for(br(a,(pn(t,s.length+1),s.substr(t)));i<-$w.length;i+=$w.length)tpt(a,$w);Fdt(a,$w,oo(-i))}return a.a}function ere(e){var t,i,s,a,c,b,g,m,_;return!(e.k!=(gn(),ji)||e.j.c.length<=1||(c=f(V(e,(bt(),Oi)),101),c==(Co(),ya))||(a=(n_(),(e.q?e.q:(Kt(),Kt(),Ip))._b(Ay)?s=f(V(e,Ay),203):s=f(V(Go(e),ZI),203),s),a==HV)||!(a==Z2||a==Q2)&&(b=Ae(je(t_(e,e5))),t=f(V(e,f9),140),!t&&(t=new nye(b,b,b,b)),_=Rl(e,(ut(),wn)),m=t.d+t.a+(_.gc()-1)*b,m>e.o.b||(i=Rl(e,_n),g=t.d+t.a+(i.gc()-1)*b,g>e.o.b)))}function x9n(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X;t.Ug("Orthogonal edge routing",1),_=Ae(je(V(e,(bt(),Y2)))),i=Ae(je(V(e,X2))),s=Ae(je(V(e,jw))),D=new EZ(0,i),X=0,b=new No(e.b,0),g=null,k=null,m=null,I=null;do k=b.b0?(W=(U-1)*i,g&&(W+=s),k&&(W+=s),W<_&&!a&&!c&&(W=_),X+=W):!a&&!c&&(X+=_),g=k,m=I;while(k);e.f.a=X,t.Vg()}function oU(e,t){var i,s,a,c,b,g,m,_,k,I;if(k=null,e.d&&(k=f(ua(e.d,t),142)),!k){if(c=e.a.vi(),I=c.i,!e.d||u$(e.d)!=I){for(m=new Fn,e.d&&h6(m,e.d),_=m.f.c+m.i.c,g=_;gt||mt(wt(Ye(m,(sh(),k9)))))&&(a=0,c+=k.b+i,sn(I.c,k),k=new Yve(c,i),s=new nte(0,k.f,k,i),IW(k,s),a=0),s.b.c.length==0||!mt(wt(Ye(di(m),(sh(),Vae))))&&(m.f>=s.o&&m.f<=s.f||s.a*.5<=m.f&&s.a*1.5>=m.f)?v2e(s,m):(b=new nte(s.s+s.r+i,k.f,k,i),IW(k,b),v2e(b,m)),a=m.i+m.g;return sn(I.c,k),I}function Z6(e){var t,i,s,a;if(!(e.b==null||e.b.length<=2)&&!e.a){for(t=0,a=0;a=e.b[a+1])a+=2;else if(i0)for(s=new Rc(f(Hr(e.a,c),21)),Kt(),Hi(s,new w0e(t)),a=new No(c.b,0);a.b0&&s>=-6?s>=0?c7(c,i-oo(e.e),"."):(Vee(c,t-1,t-1,"0."),c7(c,t+1,Bh($w,0,-oo(s)-1))):(i-t>=1&&(c7(c,t,"."),++i),c7(c,i,"E"),s>0&&c7(c,++i,"+"),c7(c,++i,""+z$(Gl(s)))),e.g=c.a,e.g))}function D9n(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ct;s=Ae(je(V(t,(bt(),K6e)))),Ke=f(V(t,t5),17).a,D=4,a=3,Ze=20/Ke,W=!1,m=0,b=Nr;do{for(c=m!=1,I=m!=0,ct=0,X=e.a,ge=0,Ce=X.length;geKe)?(m=2,b=Nr):m==0?(m=1,b=ct):(m=0,b=ct)):(W=ct>=b||b-ct0?1:Em(isNaN(s),isNaN(0)))>=0^(td(Qh),(h.Math.abs(g)<=Qh||g==0||isNaN(g)&&isNaN(0)?0:g<0?-1:g>0?1:Em(isNaN(g),isNaN(0)))>=0)?h.Math.max(g,s):(td(Qh),(h.Math.abs(s)<=Qh||s==0||isNaN(s)&&isNaN(0)?0:s<0?-1:s>0?1:Em(isNaN(s),isNaN(0)))>0?h.Math.sqrt(g*g+s*s):-h.Math.sqrt(g*g+s*s))}function ww(e,t){var i,s,a,c,b,g;if(t){if(!e.a&&(e.a=new eF),e.e==2){Zj(e.a,t);return}if(t.e==1){for(a=0;a=ys?Ms(i,y2e(s)):hC(i,s&Ji),b=new HZ(10,null,0),_vn(e.a,b,g-1)):(i=(b.Mm().length+c,new a$),Ms(i,b.Mm())),t.e==0?(s=t.Km(),s>=ys?Ms(i,y2e(s)):hC(i,s&Ji)):Ms(i,t.Mm()),f(b,530).b=i.a}}function F9n(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X;if(!i.dc()){for(g=0,D=0,s=i.Kc(),U=f(s.Pb(),17).a;g1&&(m=_.Hg(m,e.a,g));return m.c.length==1?f(vt(m,m.c.length-1),238):m.c.length==2?A9n((qt(0,m.c.length),f(m.c[0],238)),(qt(1,m.c.length),f(m.c[1],238)),b,c):null}function G9n(e,t,i){var s,a,c,b,g,m,_;for(i.Ug("Find roots",1),e.a.c.length=0,a=Hn(t.b,0);a.b!=a.d.c;)s=f(Bn(a),40),s.b.b==0&&(Xe(s,(ei(),s0),(cn(),!0)),lt(e.a,s));switch(e.a.c.length){case 0:c=new tte(0,t,"DUMMY_ROOT"),Xe(c,(ei(),s0),(cn(),!0)),Xe(c,pae,!0),hr(t.b,c);break;case 1:break;default:for(b=new tte(0,t,zU),m=new ee(e.a);m.a=h.Math.abs(s.b)?(s.b=0,c.d+c.a>b.d&&c.db.c&&c.c0){if(t=new eme(e.i,e.g),i=e.i,c=i<100?null:new y1(i),e.Tj())for(s=0;s0){for(g=e.g,_=e.i,s6(e),c=_<100?null:new y1(_),s=0;s<_;++s)b=g[s],c=e.Oj(b,c);c&&c.oj()}else s6(e);else s6(e)}function P3e(e,t,i){var s,a,c,b,g,m,_,k,I,D;for(Jyt(this),i==(Bm(),o0)?Zi(this.r,e):Zi(this.w,e),k=hi,_=to,b=t.a.ec().Kc();b.Ob();)a=f(b.Pb(),42),g=f(a.a,465),s=f(a.b,18),m=s.c,m==e&&(m=s.d),g==o0?Zi(this.r,m):Zi(this.w,m),D=(ut(),tc).Hc(m.j)?Ae(je(V(m,(nt(),c4)))):kl(se(ie(wo,1),rt,8,0,[m.i.n,m.n,m.a])).b,k=h.Math.min(k,D),_=h.Math.max(_,D);for(I=(ut(),tc).Hc(e.j)?Ae(je(V(e,(nt(),c4)))):kl(se(ie(wo,1),rt,8,0,[e.i.n,e.n,e.a])).b,rEt(this,I,k,_),c=t.a.ec().Kc();c.Ob();)a=f(c.Pb(),42),hEt(this,f(a.b,18));this.o=!1}function z9n(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ct,Dt,Nt,ln,an,Tn;return i=e.l&8191,s=e.l>>13|(e.m&15)<<9,a=e.m>>4&8191,c=e.m>>17|(e.h&255)<<5,b=(e.h&1048320)>>8,g=t.l&8191,m=t.l>>13|(t.m&15)<<9,_=t.m>>4&8191,k=t.m>>17|(t.h&255)<<5,I=(t.h&1048320)>>8,Dt=i*g,Nt=s*g,ln=a*g,an=c*g,Tn=b*g,m!=0&&(Nt+=i*m,ln+=s*m,an+=a*m,Tn+=c*m),_!=0&&(ln+=i*_,an+=s*_,Tn+=a*_),k!=0&&(an+=i*k,Tn+=s*k),I!=0&&(Tn+=i*I),W=Dt&Vc,U=(Nt&511)<<13,D=W+U,X=Dt>>22,oe=Nt>>9,ge=(ln&262143)<<4,_e=(an&31)<<17,z=X+oe+ge+_e,Ke=ln>>18,Ze=an>>5,ct=(Tn&4095)<<8,Ce=Ke+Ze+ct,z+=D>>22,D&=Vc,Ce+=z>>22,z&=Vc,Ce&=Ab,Oa(D,z,Ce)}function wxt(e){var t,i,s,a,c,b,g;if(g=f(vt(e.j,0),12),g.g.c.length!=0&&g.e.c.length!=0)throw ne(new Us("Interactive layout does not support NORTH/SOUTH ports with incoming _and_ outgoing edges."));if(g.g.c.length!=0){for(c=hi,i=new ee(g.g);i.a4)if(e.fk(t)){if(e.al()){if(a=f(t,54),s=a.Eh(),m=s==e.e&&(e.ml()?a.yh(a.Fh(),e.il())==e.jl():-1-a.Fh()==e.Lj()),e.nl()&&!m&&!s&&a.Jh()){for(c=0;c0&&mEt(e,g,I);for(a=new ee(I);a.ae.d[b.p]&&(i+=d_e(e.b,c)*f(m.b,17).a,$1(e.a,ot(c)));for(;!l$(e.a);)V_e(e.b,f(t3(e.a),17).a)}return i}function X9n(e,t){var i,s,a,c,b,g,m,_,k,I;if(k=f(V(e,(nt(),Dl)),64),s=f(vt(e.j,0),12),k==(ut(),bn)?so(s,jn):k==jn&&so(s,bn),f(V(t,(bt(),Dw)),181).Hc((su(),Vw))){if(m=Ae(je(V(e,p4))),_=Ae(je(V(e,b4))),b=Ae(je(V(e,B_))),g=f(V(t,j_),21),g.Hc(($c(),Mb)))for(i=_,I=e.o.a/2-s.n.a,c=new ee(s.f);c.a0&&(_=e.n.a/c);break;case 2:case 4:a=e.i.o.b,a>0&&(_=e.n.b/a)}Xe(e,(nt(),ky),_)}if(m=e.o,b=e.a,s)b.a=s.a,b.b=s.b,e.d=!0;else if(t!=mh&&t!=u0&&g!=Cl)switch(g.g){case 1:b.a=m.a/2;break;case 2:b.a=m.a,b.b=m.b/2;break;case 3:b.a=m.a/2,b.b=m.b;break;case 4:b.b=m.b/2}else b.a=m.a/2,b.b=m.b/2}function eI(e){var t,i,s,a,c,b,g,m,_,k;if(e.Pj())if(k=e.Ej(),m=e.Qj(),k>0)if(t=new kSe(e.pj()),i=k,c=i<100?null:new y1(i),p7(e,i,t.g),a=i==1?e.Ij(4,Se(t,0),null,0,m):e.Ij(6,t,null,-1,m),e.Mj()){for(s=new Sn(t);s.e!=s.i.gc();)c=e.Oj(Cn(s),c);c?(c.nj(a),c.oj()):e.Jj(a)}else c?(c.nj(a),c.oj()):e.Jj(a);else p7(e,e.Ej(),e.Fj()),e.Jj(e.Ij(6,(Kt(),ps),null,-1,m));else if(e.Mj())if(k=e.Ej(),k>0){for(g=e.Fj(),_=k,p7(e,k,g),c=_<100?null:new y1(_),s=0;s<_;++s)b=g[s],c=e.Oj(b,c);c&&c.oj()}else p7(e,e.Ej(),e.Fj());else p7(e,e.Ej(),e.Fj())}function eDn(e,t,i,s,a){var c,b,g,m,_,k,I,D,W,U,z,X;for(g=Fe(Ro,js,28,e.c.length,15,1),D=new TB(new ZQe),aEe(D,e),_=0,z=new st;D.b.c.length!=0;)if(b=f(D.b.c.length==0?null:vt(D.b,0),163),_>1&&dc(b)*ru(b)/2>g[0]){for(c=0;cg[c];)++c;U=new dg(z,0,c+1),I=new xW(U),k=dc(b)/ru(b),m=cre(I,t,new Pk,i,s,a,k),Mr(xd(I.e),m),Qk(aA(D,I),AA),W=new dg(z,c+1,z.c.length),aEe(D,W),z.c.length=0,_=0,mpt(g,g.length,0)}else X=D.b.c.length==0?null:vt(D.b,0),X!=null&&Lee(D,0),_>0&&(g[_]=g[_-1]),g[_]+=dc(b)*ru(b),++_,sn(z.c,b);return z}function tDn(e,t){var i,s,a,c;i=t.b,c=new Rc(i.j),a=0,s=i.j,s.c.length=0,Im(f(lw(e.b,(ut(),bn),(Km(),_y)),15),i),a=CN(c,a,new gXe,s),Im(f(lw(e.b,bn,e0),15),i),a=CN(c,a,new cXe,s),Im(f(lw(e.b,bn,vy),15),i),Im(f(lw(e.b,_n,_y),15),i),Im(f(lw(e.b,_n,e0),15),i),a=CN(c,a,new wXe,s),Im(f(lw(e.b,_n,vy),15),i),Im(f(lw(e.b,jn,_y),15),i),a=CN(c,a,new mXe,s),Im(f(lw(e.b,jn,e0),15),i),a=CN(c,a,new yXe,s),Im(f(lw(e.b,jn,vy),15),i),Im(f(lw(e.b,wn,_y),15),i),a=CN(c,a,new dXe,s),Im(f(lw(e.b,wn,e0),15),i),Im(f(lw(e.b,wn,vy),15),i)}function nDn(e,t,i){var s,a,c,b,g,m,_,k,I,D,W;for(g=new ee(t);g.a.5?oe-=b*2*(U-.5):U<.5&&(oe+=c*2*(.5-U)),a=g.d.b,oeX.a-z-k&&(oe=X.a-z-k),g.n.a=t+oe}}function sDn(e){var t,i,s,a,c;if(s=f(V(e,(bt(),Ha)),171),s==(ef(),n0)){for(i=new kn(xn(go(e).a.Kc(),new O));Un(i);)if(t=f(On(i),18),!P0t(t))throw ne(new rg(yie+TN(e)+"' has its layer constraint set to FIRST_SEPARATE, but has at least one incoming edge. FIRST_SEPARATE nodes must not have incoming edges."))}else if(s==O_){for(c=new kn(xn(Wi(e).a.Kc(),new O));Un(c);)if(a=f(On(c),18),!P0t(a))throw ne(new rg(yie+TN(e)+"' has its layer constraint set to LAST_SEPARATE, but has at least one outgoing edge. LAST_SEPARATE nodes must not have outgoing edges."))}}function eM(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U;if(e.e&&e.c.c>19&&(t=UC(t),m=!m),b=GPn(t),c=!1,a=!1,s=!1,e.h==uM&&e.m==0&&e.l==0)if(a=!0,c=!0,b==-1)e=ift((xC(),qAe)),s=!0,m=!m;else return g=Ike(e,b),m&&ete(g),i&&(J1=Oa(0,0,0)),g;else e.h>>19&&(c=!0,e=UC(e),s=!0,m=!m);return b!=-1?yxn(e,b,m,c,i):gEe(e,t)<0?(i&&(c?J1=UC(e):J1=Oa(e.l,e.m,e.h)),Oa(0,0,0)):WNn(s?e:Oa(e.l,e.m,e.h),t,m,c,a,i)}function ire(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U;if(b=e.e,m=t.e,b==0)return t;if(m==0)return e;if(c=e.d,g=t.d,c+g==2)return i=fo(e.a[0],Ts),s=fo(t.a[0],Ts),b==m?(k=is(i,s),U=tr(k),W=tr(x1(k,32)),W==0?new pb(b,U):new Y0(b,2,se(ie(Xn,1),wr,28,15,[U,W]))):(Uh(),UF(b<0?vf(s,i):vf(i,s),0)?j1(b<0?vf(s,i):vf(i,s)):X$(j1(gg(b<0?vf(s,i):vf(i,s)))));if(b==m)D=b,I=c>=g?hee(e.a,c,t.a,g):hee(t.a,g,e.a,c);else{if(a=c!=g?c>g?1:-1:qSe(e.a,t.a,c),a==0)return Uh(),MI;a==1?(D=b,I=fee(e.a,c,t.a,g)):(D=m,I=fee(t.a,g,e.a,c))}return _=new Y0(D,I.length,I),t6(_),_}function aDn(e,t){var i,s,a,c,b,g,m;if(!(e.g>t.f||t.g>e.f)){for(i=0,s=0,b=e.w.a.ec().Kc();b.Ob();)a=f(b.Pb(),12),dte(kl(se(ie(wo,1),rt,8,0,[a.i.n,a.n,a.a])).b,t.g,t.f)&&++i;for(g=e.r.a.ec().Kc();g.Ob();)a=f(g.Pb(),12),dte(kl(se(ie(wo,1),rt,8,0,[a.i.n,a.n,a.a])).b,t.g,t.f)&&--i;for(m=t.w.a.ec().Kc();m.Ob();)a=f(m.Pb(),12),dte(kl(se(ie(wo,1),rt,8,0,[a.i.n,a.n,a.a])).b,e.g,e.f)&&++s;for(c=t.r.a.ec().Kc();c.Ob();)a=f(c.Pb(),12),dte(kl(se(ie(wo,1),rt,8,0,[a.i.n,a.n,a.a])).b,e.g,e.f)&&--s;i=0)return i;switch(Dm(Vs(e,i))){case 2:{if(Ht("",vg(e,i.qk()).xe())){if(m=T7(Vs(e,i)),g=gC(Vs(e,i)),k=Mke(e,t,m,g),k)return k;for(a=f3e(e,t),b=0,I=a.gc();b1)throw ne(new hn(LM));for(k=Fa(e.e.Dh(),t),s=f(e.g,124),b=0;b1,_=new Zd(D.b);_l(_.a)||_l(_.b);)m=f(_l(_.a)?Z(_.a):Z(_.b),18),I=m.c==D?m.d:m.c,h.Math.abs(kl(se(ie(wo,1),rt,8,0,[I.i.n,I.n,I.a])).b-b.b)>1&&XOn(e,m,b,c,D)}}function pDn(e){var t,i,s,a,c,b;if(a=new No(e.e,0),s=new No(e.a,0),e.d)for(i=0;iZie;){for(c=t,b=0;h.Math.abs(t-c)0),a.a.Xb(a.c=--a.b),TMn(e,e.b-b,c,s,a),In(a.b0),s.a.Xb(s.c=--s.b)}if(!e.d)for(i=0;i0?(e.f[k.p]=W/(k.e.c.length+k.g.c.length),e.c=h.Math.min(e.c,e.f[k.p]),e.b=h.Math.max(e.b,e.f[k.p])):g&&(e.f[k.p]=W)}}function gDn(e){e.b=null,e.bb=null,e.fb=null,e.qb=null,e.a=null,e.c=null,e.d=null,e.e=null,e.f=null,e.n=null,e.M=null,e.L=null,e.Q=null,e.R=null,e.K=null,e.db=null,e.eb=null,e.g=null,e.i=null,e.j=null,e.k=null,e.gb=null,e.o=null,e.p=null,e.q=null,e.r=null,e.$=null,e.ib=null,e.S=null,e.T=null,e.t=null,e.s=null,e.u=null,e.v=null,e.w=null,e.B=null,e.A=null,e.C=null,e.D=null,e.F=null,e.G=null,e.H=null,e.I=null,e.J=null,e.P=null,e.Z=null,e.U=null,e.V=null,e.W=null,e.X=null,e.Y=null,e._=null,e.ab=null,e.cb=null,e.hb=null,e.nb=null,e.lb=null,e.mb=null,e.ob=null,e.pb=null,e.jb=null,e.kb=null,e.N=!1,e.O=!1}function wDn(e,t,i){var s,a,c,b;for(i.Ug("Graph transformation ("+e.a+")",1),b=Wm(t.a),c=new ee(t.b);c.a=g.b.c)&&(g.b=t),(!g.c||t.c<=g.c.c)&&(g.d=g.c,g.c=t),(!g.e||t.d>=g.e.d)&&(g.e=t),(!g.f||t.d<=g.f.d)&&(g.f=t);return s=new wH((WC(),yy)),L7(e,N5t,new kc(se(ie(JM,1),on,382,0,[s]))),b=new wH(C_),L7(e,O5t,new kc(se(ie(JM,1),on,382,0,[b]))),a=new wH(x_),L7(e,P5t,new kc(se(ie(JM,1),on,382,0,[a]))),c=new wH(L2),L7(e,I5t,new kc(se(ie(JM,1),on,382,0,[c]))),Tne(s.c,yy),Tne(a.c,x_),Tne(c.c,L2),Tne(b.c,C_),g.a.c.length=0,eo(g.a,s.c),eo(g.a,Zu(a.c)),eo(g.a,c.c),eo(g.a,Zu(b.c)),g}function vDn(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U;for(t.Ug(P4t,1),W=Ae(je(Ye(e,(Ep(),G_)))),b=Ae(je(Ye(e,(sh(),m5)))),g=f(Ye(e,w5),107),mSe((!e.a&&(e.a=new qe($r,e,10,11)),e.a)),k=hxt((!e.a&&(e.a=new qe($r,e,10,11)),e.a),W,b),!e.a&&(e.a=new qe($r,e,10,11)),_=new ee(k);_.a<_.c.c.length;)for(m=f(Z(_),186),a=new ee(m.a);a.a0&&(e.a=m+(W-1)*c,t.c.b+=e.a,t.f.b+=e.a)),U.a.gc()!=0&&(D=new EZ(1,c),W=j3e(D,t,U,z,t.f.b+m-t.c.b),W>0&&(t.f.b+=m+(W-1)*c))}function vxt(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce;for(k=Ae(je(V(e,(bt(),$y)))),s=Ae(je(V(e,rIe))),D=new ZJ,Xe(D,$y,k+s),_=t,oe=_.d,z=_.c.i,ge=_.d.i,X=lme(z.c),_e=lme(ge.c),a=new st,I=X;I<=_e;I++)g=new kb(e),W0(g,(gn(),vo)),Xe(g,(nt(),Ur),_),Xe(g,Oi,(Co(),ya)),Xe(g,LV,D),W=f(vt(e.b,I),30),I==X?r_(g,W.a.c.length-i,W):Oo(g,W),Ce=Ae(je(V(_,Ng))),Ce<0&&(Ce=0,Xe(_,Ng,Ce)),g.o.b=Ce,U=h.Math.floor(Ce/2),b=new ia,so(b,(ut(),wn)),Sl(b,g),b.n.b=U,m=new ia,so(m,_n),Sl(m,g),m.n.b=U,xo(_,b),c=new jm,ol(c,_),Xe(c,Xs,null),rs(c,m),xo(c,oe),c$n(g,_,c),sn(a.c,c),_=c;return a}function ore(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e;for(m=f(xg(e,(ut(),wn)).Kc().Pb(),12).e,W=f(xg(e,_n).Kc().Pb(),12).g,g=m.c.length,_e=Yd(f(vt(e.j,0),12));g-- >0;){for(z=(qt(0,m.c.length),f(m.c[0],18)),a=(qt(0,W.c.length),f(W.c[0],18)),ge=a.d.e,c=il(ge,a,0),G2n(z,a.d,c),rs(a,null),xo(a,null),U=z.a,t&&hr(U,new us(_e)),s=Hn(a.a,0);s.b!=s.d.c;)i=f(Bn(s),8),hr(U,new us(i));for(oe=z.b,D=new ee(a.b);D.ab)&&Zi(e.b,f(X.b,18));++g}c=b}}}function M3e(e,t){var i;if(t==null||Ht(t,Za)||t.length==0&&e.k!=(Cg(),sR))return null;switch(e.k.g){case 1:return dH(t,WA)?(cn(),qA):dH(t,woe)?(cn(),Y1):null;case 2:try{return ot(Ru(t,Qo,Nr))}catch(s){if(s=mi(s),ve(s,130))return null;throw ne(s)}case 4:try{return o_(t)}catch(s){if(s=mi(s),ve(s,130))return null;throw ne(s)}case 3:return t;case 5:return Wvt(e),ekt(e,t);case 6:return Wvt(e),_Pn(e,e.a,t);case 7:try{return i=P8n(e),i.cg(t),i}catch(s){if(s=mi(s),ve(s,33))return null;throw ne(s)}default:throw ne(new Us("Invalid type set for this layout option."))}}function D3e(e){var t;switch(e.d){case 1:{if(e.Sj())return e.o!=-2;break}case 2:{if(e.Sj())return e.o==-2;break}case 3:case 5:case 4:case 6:case 7:return e.o>-2;default:return!1}switch(t=e.Rj(),e.p){case 0:return t!=null&&mt(wt(t))!=T$(e.k,0);case 1:return t!=null&&f(t,222).a!=tr(e.k)<<24>>24;case 2:return t!=null&&f(t,180).a!=(tr(e.k)&Ji);case 6:return t!=null&&T$(f(t,168).a,e.k);case 5:return t!=null&&f(t,17).a!=tr(e.k);case 7:return t!=null&&f(t,191).a!=tr(e.k)<<16>>16;case 3:return t!=null&&Ae(je(t))!=e.j;case 4:return t!=null&&f(t,161).a!=e.j;default:return t==null?e.n!=null:!Lr(t,e.n)}}function tM(e,t,i){var s,a,c,b;return e.ol()&&e.nl()&&(b=wZ(e,f(i,58)),Oe(b)!==Oe(i))?(e.xj(t),e.Dj(t,kwt(e,t,b)),e.al()&&(c=(a=f(i,54),e.ml()?e.kl()?a.Th(e.b,Es(f(tn(Xa(e.b),e.Lj()),19)).n,f(tn(Xa(e.b),e.Lj()).Hk(),29).kk(),null):a.Th(e.b,yi(a.Dh(),Es(f(tn(Xa(e.b),e.Lj()),19))),null,null):a.Th(e.b,-1-e.Lj(),null,null)),!f(b,54).Ph()&&(c=(s=f(b,54),e.ml()?e.kl()?s.Rh(e.b,Es(f(tn(Xa(e.b),e.Lj()),19)).n,f(tn(Xa(e.b),e.Lj()).Hk(),29).kk(),c):s.Rh(e.b,yi(s.Dh(),Es(f(tn(Xa(e.b),e.Lj()),19))),null,c):s.Rh(e.b,-1-e.Lj(),null,c))),c&&c.oj()),eu(e.b)&&e.Jj(e.Ij(9,i,b,t,!1)),b):i}function _xt(e){var t,i,s,a,c,b,g,m,_,k;for(s=new st,b=new ee(e.e.a);b.a0&&(b=h.Math.max(b,xyt(e.C.b+s.d.b,a))),k=s,I=a,D=c;e.C&&e.C.c>0&&(W=D+e.C.c,_&&(W+=k.d.c),b=h.Math.max(b,(Kd(),td(ah),h.Math.abs(I-1)<=ah||I==1||isNaN(I)&&isNaN(1)?0:W/(1-I)))),i.n.b=0,i.a.a=b}function Ext(e,t){var i,s,a,c,b,g,m,_,k,I,D,W;if(i=f(Ds(e.b,t),127),m=f(f(Hr(e.r,t),21),87),m.dc()){i.n.d=0,i.n.a=0;return}for(_=e.u.Hc(($c(),Mb)),b=0,e.A.Hc((su(),Vw))&&Q3t(e,t),g=m.Kc(),k=null,D=0,I=0;g.Ob();)s=f(g.Pb(),117),c=Ae(je(s.b.of((nB(),$G)))),a=s.b.Mf().b,k?(W=I+k.d.a+e.w+s.d.d,b=h.Math.max(b,(Kd(),td(ah),h.Math.abs(D-c)<=ah||D==c||isNaN(D)&&isNaN(c)?0:W/(c-D)))):e.C&&e.C.d>0&&(b=h.Math.max(b,xyt(e.C.d+s.d.d,c))),k=s,D=c,I=a;e.C&&e.C.a>0&&(W=I+e.C.a,_&&(W+=k.d.a),b=h.Math.max(b,(Kd(),td(ah),h.Math.abs(D-1)<=ah||D==1||isNaN(D)&&isNaN(1)?0:W/(1-D)))),i.n.d=0,i.a.b=b}function EDn(e,t,i,s,a,c,b,g){var m,_,k,I,D,W,U,z,X,oe;if(U=!1,_=Uke(i.q,t.f+t.b-i.q.f),W=s.f>t.b&&g,oe=a-(i.q.e+_-b),I=(m=Q6(s,oe,!1),m.a),W&&I>s.f)return!1;if(W){for(D=0,X=new ee(t.d);X.a=(qt(c,e.c.length),f(e.c[c],186)).e,!W&&I>t.b&&!k)?!1:((k||W||I<=t.b)&&(k&&I>t.b?(i.d=I,z7(i,cEt(i,I))):(C2t(i.q,_),i.c=!0),z7(s,a-(i.s+i.r)),AN(s,i.q.e+i.q.d,t.f),IW(t,s),e.c.length>c&&(IN((qt(c,e.c.length),f(e.c[c],186)),s),(qt(c,e.c.length),f(e.c[c],186)).a.c.length==0&&pg(e,c)),U=!0),U)}function kxt(e,t,i){var s,a,c,b,g,m;for(this.g=e,g=t.d.length,m=i.d.length,this.d=Fe(Op,$g,10,g+m,0,1),b=0;b0?$ee(this,this.f/this.a):qd(t.g,t.d[0]).a!=null&&qd(i.g,i.d[0]).a!=null?$ee(this,(Ae(qd(t.g,t.d[0]).a)+Ae(qd(i.g,i.d[0]).a))/2):qd(t.g,t.d[0]).a!=null?$ee(this,qd(t.g,t.d[0]).a):qd(i.g,i.d[0]).a!=null&&$ee(this,qd(i.g,i.d[0]).a)}function kDn(e,t){var i,s,a,c,b,g,m,_,k,I;for(e.a=new rbt(sxn(C5)),s=new ee(t.a);s.a=1&&(X-b>0&&I>=0?(m.n.a+=z,m.n.b+=c*b):X-b<0&&k>=0&&(m.n.a+=z*X,m.n.b+=c));e.o.a=t.a,e.o.b=t.b,Xe(e,(bt(),Dw),(su(),s=f(kd(N5),9),new Uu(s,f(Yf(s,s.length),9),0)))}function CDn(e,t,i,s,a,c){var b;if(!(t==null||!Ete(t,kOe,ROe)))throw ne(new hn("invalid scheme: "+t));if(!e&&!(i!=null&&Ph(i,Qa(35))==-1&&i.length>0&&(pn(0,i.length),i.charCodeAt(0)!=47)))throw ne(new hn("invalid opaquePart: "+i));if(e&&!(t!=null&&HO(jz,t.toLowerCase()))&&!(i==null||!Ete(i,j5,F5)))throw ne(new hn(s$t+i));if(e&&t!=null&&HO(jz,t.toLowerCase())&&!s6n(i))throw ne(new hn(s$t+i));if(!dAn(s))throw ne(new hn("invalid device: "+s));if(!Jxn(a))throw b=a==null?"invalid segments: null":"invalid segment: "+zxn(a),ne(new hn(b));if(!(c==null||Ph(c,Qa(35))==-1))throw ne(new hn("invalid query: "+c))}function ADn(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe;if(i.Ug("Network simplex layering",1),e.b=t,oe=f(V(t,(bt(),t5)),17).a*4,X=e.b.a,X.c.length<1){i.Vg();return}for(c=RNn(e,X),z=null,a=Hn(c,0);a.b!=a.d.c;){for(s=f(Bn(a),15),g=oe*oo(h.Math.sqrt(s.gc())),b=BNn(s),Wne(nwe(Abn(rwe(JQ(b),g),z),!0),i.eh(1)),D=e.b.b,U=new ee(b.a);U.a1)for(z=Fe(Xn,wr,28,e.b.b.c.length,15,1),I=0,_=new ee(e.b.b);_.a<_.c.c.length;)m=f(Z(_),30),z[I++]=m.a.c.length}X.c.length=0,e.a=null,e.b=null,e.c=null,i.Vg()}function TDn(e,t){var i,s,a,c,b,g,m,_,k,I;for(k=new st,I=new qS,c=null,a=0,s=0;s0){hH(e,i,0),i.a+=String.fromCharCode(s),a=JAn(t,c),hH(e,i,a),c+=a-1;continue}s==39?c+10&&U.a<=0){m.c.length=0,sn(m.c,U);break}W=U.i-U.d,W>=g&&(W>g&&(m.c.length=0,g=W),sn(m.c,U))}m.c.length!=0&&(b=f(vt(m,_H(a,m.c.length)),118),_e.a.Bc(b)!=null,b.g=k++,k3e(b,t,i,s),m.c.length=0)}for(X=e.c.length+1,D=new ee(e);D.ato||t.o==Fw&&k=g&&a<=m)g<=a&&c<=m?(i[k++]=a,i[k++]=c,s+=2):g<=a?(i[k++]=a,i[k++]=m,e.b[s]=m+1,b+=2):c<=m?(i[k++]=g,i[k++]=c,s+=2):(i[k++]=g,i[k++]=m,e.b[s]=m+1);else if(mG1)&&g<10);owe(e.c,new eze),Axt(e),Evn(e.c),mDn(e.f)}function LDn(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z;for(i=f(V(e,(bt(),Oi)),101),b=e.f,c=e.d,g=b.a+c.b+c.c,m=0-c.d-e.c.b,k=b.b+c.d+c.a-e.c.b,_=new st,I=new st,a=new ee(t);a.a=2){for(m=Hn(i,0),b=f(Bn(m),8),g=f(Bn(m),8);g.a0&&dN(_,!0,(Xi(),al)),g.k==(gn(),Ui)&&dbt(_),xr(e.f,g,t)}}function BDn(e){var t,i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce;for(a=f(V(e,(ei(),h5)),27),_=Nr,k=Nr,g=Qo,m=Qo,_e=Hn(e.b,0);_e.b!=_e.d.c;)oe=f(Bn(_e),40),W=oe.e,U=oe.f,_=h.Math.min(_,W.a-U.a/2),k=h.Math.min(k,W.b-U.b/2),g=h.Math.max(g,W.a+U.a/2),m=h.Math.max(m,W.b+U.b/2);for(D=f(Ye(a,(Il(),p5e)),107),ge=Hn(e.b,0);ge.b!=ge.d.c;)oe=f(Bn(ge),40),I=V(oe,h5),ve(I,207)&&(c=f(I,27),Wu(c,oe.e.a,oe.e.b),GN(c,oe));for(X=Hn(e.a,0);X.b!=X.d.c;)z=f(Bn(X),65),s=f(V(z,h5),74),s&&(t=z.a,i=w2(s,!0,!0),YN(t,i));Ce=g-_+(D.b+D.c),b=m-k+(D.d+D.a),mt(wt(Ye(a,(Er(),V_))))||sy(a,Ce,b,!1,!1),zr(a,aE,Ce-(D.b+D.c)),zr(a,lE,b-(D.d+D.a))}function $xt(e,t){var i,s,a,c,b,g,m,_,k,I;for(m=!0,a=0,_=e.g[t.p],k=t.o.b+e.o,i=e.d[t.p][2],Ku(e.b,_,ot(f(vt(e.b,_),17).a-1+i)),Ku(e.c,_,Ae(je(vt(e.c,_)))-k+i*e.f),++_,_>=e.j?(++e.j,lt(e.b,ot(1)),lt(e.c,k)):(s=e.d[t.p][1],Ku(e.b,_,ot(f(vt(e.b,_),17).a+1-s)),Ku(e.c,_,Ae(je(vt(e.c,_)))+k-s*e.f)),(e.r==(Sf(),d9)&&(f(vt(e.b,_),17).a>e.k||f(vt(e.b,_-1),17).a>e.k)||e.r==h9&&(Ae(je(vt(e.c,_)))>e.n||Ae(je(vt(e.c,_-1)))>e.n))&&(m=!1),b=new kn(xn(go(t).a.Kc(),new O));Un(b);)c=f(On(b),18),g=c.c.i,e.g[g.p]==_&&(I=$xt(e,g),a=a+f(I.a,17).a,m=m&&mt(wt(I.b)));return e.g[t.p]=_,a=a+e.d[t.p][0],new io(ot(a),(cn(),!!m))}function Ixt(e,t){var i,s,a,c,b;i=Ae(je(V(t,(bt(),ud)))),i<2&&Xe(t,ud,2),s=f(V(t,$u),88),s==(Xi(),wh)&&Xe(t,$u,nH(t)),a=f(V(t,qOt),17),a.a==0?Xe(t,(nt(),tR),new Rte):Xe(t,(nt(),tR),new oW(a.a)),c=wt(V(t,QI)),c==null&&Xe(t,QI,(cn(),Oe(V(t,Ob))===Oe((_b(),C4)))),Mi(new Wt(null,new Vt(t.a,16)),new b0e(e)),Mi(El(new Wt(null,new Vt(t.b,16)),new x1e),new g0e(e)),b=new Rxt(t),Xe(t,(nt(),K2),b),A7(e.a),Cd(e.a,(Yo(),cd),f(V(t,Ow),188)),Cd(e.a,Pp,f(V(t,Mw),188)),Cd(e.a,sa,f(V(t,YI),188)),Cd(e.a,ga,f(V(t,MV),188)),Cd(e.a,ll,BRn(f(V(t,Ob),223))),cme(e.a,Mjn(t)),Xe(t,Cle,eM(e.a,t))}function j3e(e,t,i,s,a){var c,b,g,m,_,k,I,D,W,U,z,X,oe;for(I=new Fn,b=new st,$Et(e,i,e.d.Ag(),b,I),$Et(e,s,e.d.Bg(),b,I),e.b=.2*(z=Mkt(El(new Wt(null,new Vt(b,16)),new FJe)),X=Mkt(El(new Wt(null,new Vt(b,16)),new BJe)),h.Math.min(z,X)),c=0,g=0;g=2&&(oe=e3t(b,!0,D),!e.e&&(e.e=new fot(e)),zAn(e.e,oe,b,e.b)),L2t(b,D),zDn(b),W=-1,k=new ee(b);k.ag)}function Pxt(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge;for(_=hi,k=hi,g=to,m=to,D=new ee(t.i);D.a-1){for(a=Hn(g,0);a.b!=a.d.c;)s=f(Bn(a),131),s.v=b;for(;g.b!=0;)for(s=f(nne(g,0),131),i=new ee(s.i);i.a-1){for(c=new ee(g);c.a0)&&(t0e(m,h.Math.min(m.o,a.o-1)),Gj(m,m.i-1),m.i==0&&sn(g.c,m))}}function Nxt(e,t,i,s,a){var c,b,g,m;return m=hi,b=!1,g=T3e(e,uo(new tt(t.a,t.b),e),Mr(new tt(i.a,i.b),a),uo(new tt(s.a,s.b),i)),c=!!g&&!(h.Math.abs(g.a-e.a)<=hy&&h.Math.abs(g.b-e.b)<=hy||h.Math.abs(g.a-t.a)<=hy&&h.Math.abs(g.b-t.b)<=hy),g=T3e(e,uo(new tt(t.a,t.b),e),i,a),g&&((h.Math.abs(g.a-e.a)<=hy&&h.Math.abs(g.b-e.b)<=hy)==(h.Math.abs(g.a-t.a)<=hy&&h.Math.abs(g.b-t.b)<=hy)||c?m=h.Math.min(m,Y$(uo(g,i))):b=!0),g=T3e(e,uo(new tt(t.a,t.b),e),s,a),g&&(b||(h.Math.abs(g.a-e.a)<=hy&&h.Math.abs(g.b-e.b)<=hy)==(h.Math.abs(g.a-t.a)<=hy&&h.Math.abs(g.b-t.b)<=hy)||c)&&(m=h.Math.min(m,Y$(uo(g,s)))),m}function Mxt(e){ym(e,new gw(sF(gm(hm(bm(pm(new F0,z1),PAt),"Minimizes the stress within a layout using stress majorization. Stress exists if the euclidean distance between a pair of nodes doesn't match their graph theoretic distance, that is, the shortest path between the two nodes. The method allows to specify individual edge lengths."),new XVe),Ba))),it(e,z1,uI,ht(uTe)),it(e,z1,EU,(cn(),!0)),it(e,z1,A2,ht(w5t)),it(e,z1,B3,ht(m5t)),it(e,z1,F3,ht(y5t)),it(e,z1,NA,ht(g5t)),it(e,z1,fI,ht(dTe)),it(e,z1,MA,ht(v5t)),it(e,z1,MRe,ht(cTe)),it(e,z1,LRe,ht(lTe)),it(e,z1,jRe,ht(aTe)),it(e,z1,FRe,ht(fTe)),it(e,z1,DRe,ht(FG))}function KDn(e){var t,i,s,a,c,b,g,m;for(t=null,s=new ee(e);s.a0&&i.c==0&&(!t&&(t=new st),sn(t.c,i));if(t)for(;t.c.length!=0;){if(i=f(pg(t,0),239),i.b&&i.b.c.length>0){for(c=(!i.b&&(i.b=new st),new ee(i.b));c.ail(e,i,0))return new io(a,i)}else if(Ae(qd(a.g,a.d[0]).a)>Ae(qd(i.g,i.d[0]).a))return new io(a,i)}for(g=(!i.e&&(i.e=new st),i.e).Kc();g.Ob();)b=f(g.Pb(),239),m=(!b.b&&(b.b=new st),b.b),Uv(0,m.c.length),m$(m.c,0,i),b.c==m.c.length&&sn(t.c,b)}return null}function qDn(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe;for(t.Ug("Interactive crossing minimization",1),b=0,c=new ee(e.b);c.a0&&(i+=m.n.a+m.o.a/2,++I),U=new ee(m.j);U.a0&&(i/=I),oe=Fe(Ro,js,28,s.a.c.length,15,1),g=0,_=new ee(s.a);_.a<_.c.c.length;)m=f(Z(_),10),m.p=g++,oe[m.p]=jDn(m,i),m.k==(gn(),vo)&&Xe(m,(nt(),U$e),oe[m.p]);Kt(),Hi(s.a,new Uit(oe)),gRt(X,D,b,!0),++b}t.Vg()}function tI(e,t){var i,s,a,c,b,g,m,_,k;if(t.e==5){Txt(e,t);return}if(_=t,!(_.b==null||e.b==null)){for(b2(e),Z6(e),b2(_),Z6(_),i=Fe(Xn,wr,28,e.b.length+_.b.length,15,1),k=0,s=0,b=0;s=g&&a<=m)g<=a&&c<=m?s+=2:g<=a?(e.b[s]=m+1,b+=2):c<=m?(i[k++]=a,i[k++]=g-1,s+=2):(i[k++]=a,i[k++]=g-1,e.b[s]=m+1,b+=2);else if(m2?(k=new st,eo(k,new dg(oe,1,oe.b)),c=SCt(k,_e+e.a),ge=new xne(c),ol(ge,t),sn(i.c,ge)):s?ge=f(En(e.b,Sp(t)),272):ge=f(En(e.b,F1(t)),272),m=Sp(t),s&&(m=F1(t)),b=KIn(X,m),_=_e+e.a,b.a?(_+=h.Math.abs(X.b-I.b),z=new tt(I.a,(I.b+X.b)/2)):(_+=h.Math.abs(X.a-I.a),z=new tt((I.a+X.a)/2,I.b)),s?xr(e.d,t,new nEe(ge,b,z,_)):xr(e.c,t,new nEe(ge,b,z,_)),xr(e.b,t,ge),U=(!t.n&&(t.n=new qe(Fs,t,1,7)),t.n),W=new Sn(U);W.e!=W.i.gc();)D=f(Cn(W),135),a=KN(e,D,!0,0,0),sn(i.c,a)}function XDn(e){var t,i,s,a,c,b,g;if(!e.A.dc()){if(e.A.Hc((su(),H9))&&(f(Ds(e.b,(ut(),bn)),127).k=!0,f(Ds(e.b,jn),127).k=!0,t=e.q!=(Co(),jp)&&e.q!=ya,Q1e(f(Ds(e.b,_n),127),t),Q1e(f(Ds(e.b,wn),127),t),Q1e(e.g,t),e.A.Hc(Vw)&&(f(Ds(e.b,bn),127).j=!0,f(Ds(e.b,jn),127).j=!0,f(Ds(e.b,_n),127).k=!0,f(Ds(e.b,wn),127).k=!0,e.g.k=!0)),e.A.Hc(W9))for(e.a.j=!0,e.a.k=!0,e.g.j=!0,e.g.k=!0,g=e.B.Hc((Gc(),M5)),a=Nte(),c=0,b=a.length;c0),f(k.a.Xb(k.c=--k.b),18));c!=s&&k.b>0;)e.a[c.p]=!0,e.a[s.p]=!0,c=(In(k.b>0),f(k.a.Xb(k.c=--k.b),18));k.b>0&&iu(k)}}function Lxt(e,t,i){var s,a,c,b,g,m,_,k,I,D,W;if(!e.b)return!1;for(b=null,D=null,m=new gee(null,null),a=1,m.a[1]=e.b,I=m;I.a[a];)_=a,g=D,D=I,I=I.a[a],s=e.a.Ne(t,I.d),a=s<0?0:1,s==0&&(!i.c||Ul(I.e,i.d))&&(b=I),!(I&&I.b)&&!Cv(I.a[a])&&(Cv(I.a[1-a])?D=D.a[_]=jW(I,a):Cv(I.a[1-a])||(W=D.a[1-_],W&&(!Cv(W.a[1-_])&&!Cv(W.a[_])?(D.b=!1,W.b=!0,I.b=!0):(c=g.a[1]==D?1:0,Cv(W.a[_])?g.a[c]=h1t(D,_):Cv(W.a[1-_])&&(g.a[c]=jW(D,_)),I.b=g.a[c].b=!0,g.a[c].a[0].b=!1,g.a[c].a[1].b=!1))));return b&&(i.b=!0,i.d=b.e,I!=b&&(k=new gee(I.d,I.e),Q6n(e,m,b,k),D==b&&(D=k)),D.a[D.a[1]==I?1:0]=I.a[I.a[0]?0:1],--e.c),e.b=m.a[1],e.b&&(e.b.b=!1),i.b}function QDn(e){var t,i,s,a,c,b,g,m,_,k,I,D;for(a=new ee(e.a.a.b);a.a0?a-=864e5:a+=864e5,m=new Kme(is(Gl(t.q.getTime()),a))),k=new jk,_=e.a.length,c=0;c<_;)if(s=Jo(e.a,c),s>=97&&s<=122||s>=65&&s<=90){for(b=c+1;b<_&&Jo(e.a,b)==s;++b);Qjn(k,s,b-c,g,m,i),c=b}else if(s==39){if(++c,c<_&&Jo(e.a,c)==39){k.a+="'",++c;continue}for(I=!1;!I;){for(b=c;b<_&&Jo(e.a,b)!=39;)++b;if(b>=_)throw ne(new hn("Missing trailing '"));b+1<_&&Jo(e.a,b+1)==39?++b:I=!0,br(k,Vu(e.a,c,b)),c=b+1}}else k.a+=String.fromCharCode(s),++c;return k.a}function eLn(){kr(Y_,new XZe),kr(_r,new set),kr(Pf,new met),kr(Wd,new Ret),kr(Mce,new xet),kr(Fz,new Cet),kr(Db,new Aet),kr(D5,new Tet),kr(K9,new FZe),kr(Tce,new BZe),kr(d0,new WZe),kr(Of,new HZe),kr(Bd,new UZe),kr(Dy,new GZe),kr(Q_,new VZe),kr(rc,new zZe),kr(J_,new KZe),kr(Ll,new qZe),kr(Os,new JZe),kr(Ga,new YZe),kr(Li,new QZe),kr(ie(_c,1),new ZZe),kr(G3,new eet),kr(NI,new tet),kr(EG,new net),kr(n7e,new ret),kr(Qi,new iet),kr(wOe,new oet),kr(vOe,new aet),kr(UOe,new cet),kr(Bz,new uet),kr(XA,new fet),kr(Ko,new det),kr(HAe,new het),kr(wy,new pet),kr(UAe,new bet),kr(FOe,new get),kr(r7e,new wet),kr(my,new yet),kr(St,new vet),kr(yOe,new _et),kr(i7e,new Eet)}function Fxt(e,t){var i,s,a,c,b,g,m,_,k;if(e==null)return Za;if(m=t.a.zc(e,t),m!=null)return"[...]";for(i=new cw(ds,"[","]"),a=e,c=0,b=a.length;c=14&&k<=16))?t.a._b(s)?(i.a?br(i.a,i.b):i.a=new gu(i.d),I$(i.a,"[...]")):(g=ow(s),_=new H$(t),bb(i,Fxt(g,_))):ve(s,183)?bb(i,$5n(f(s,183))):ve(s,195)?bb(i,b6n(f(s,195))):ve(s,201)?bb(i,RIn(f(s,201))):ve(s,2111)?bb(i,g6n(f(s,2111))):ve(s,53)?bb(i,T5n(f(s,53))):ve(s,376)?bb(i,K5n(f(s,376))):ve(s,846)?bb(i,A5n(f(s,846))):ve(s,109)&&bb(i,C5n(f(s,109))):bb(i,s==null?Za:dl(s));return i.a?i.e.length==0?i.a.a:i.a.a+(""+i.e):i.c}function vA(e,t){var i,s,a,c;c=e.F,t==null?(e.F=null,KC(e,null)):(e.F=(mn(t),t),s=Ph(t,Qa(60)),s!=-1?(a=(Mo(0,s,t.length),t.substr(0,s)),Ph(t,Qa(46))==-1&&!Ht(a,$3)&&!Ht(a,RI)&&!Ht(a,lG)&&!Ht(a,xI)&&!Ht(a,CI)&&!Ht(a,AI)&&!Ht(a,TI)&&!Ht(a,$I)&&(a=y$t),i=ZF(t,Qa(62)),i!=-1&&(a+=""+(pn(i+1,t.length+1),t.substr(i+1))),KC(e,a)):(a=t,Ph(t,Qa(46))==-1&&(s=Ph(t,Qa(91)),s!=-1&&(a=(Mo(0,s,t.length),t.substr(0,s))),!Ht(a,$3)&&!Ht(a,RI)&&!Ht(a,lG)&&!Ht(a,xI)&&!Ht(a,CI)&&!Ht(a,AI)&&!Ht(a,TI)&&!Ht(a,$I)?(a=y$t,s!=-1&&(a+=""+(pn(s,t.length+1),t.substr(s)))):a=t),KC(e,a),a==t&&(e.F=e.D))),e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,5,c,t))}function Bxt(e,t){var i,s,a,c,b,g,m,_,k,I;if(m=t.length-1,g=(pn(m,t.length),t.charCodeAt(m)),g==93){if(b=Ph(t,Qa(91)),b>=0)return a=rAn(e,(Mo(1,b,t.length),t.substr(1,b-1))),k=(Mo(b+1,m,t.length),t.substr(b+1,m-(b+1))),Tjn(e,k,a)}else{if(i=-1,ZAe==null&&(ZAe=new RegExp("\\d")),ZAe.test(String.fromCharCode(g))&&(i=fye(t,Qa(46),m-1),i>=0)){s=f(uee(e,Amt(e,(Mo(1,i,t.length),t.substr(1,i-1))),!1),61),_=0;try{_=Ru((pn(i+1,t.length+1),t.substr(i+1)),Qo,Nr)}catch(D){throw D=mi(D),ve(D,130)?(c=D,ne(new wW(c))):ne(D)}if(_>16==-10?i=f(e.Cb,292).Yk(t,i):e.Db>>16==-15&&(!t&&(t=(zt(),vh)),!_&&(_=(zt(),vh)),e.Cb.Yh()&&(m=new gb(e.Cb,1,13,_,t,Rg(Wc(f(e.Cb,62)),e),!1),i?i.nj(m):i=m));else if(ve(e.Cb,90))e.Db>>16==-23&&(ve(t,90)||(t=(zt(),Mf)),ve(_,90)||(_=(zt(),Mf)),e.Cb.Yh()&&(m=new gb(e.Cb,1,10,_,t,Rg(ra(f(e.Cb,29)),e),!1),i?i.nj(m):i=m));else if(ve(e.Cb,457))for(g=f(e.Cb,850),b=(!g.b&&(g.b=new Jj(new kY)),g.b),c=(s=new aw(new U0(b.a).a),new Yj(s));c.a.b;)a=f(qm(c.a).ld(),89),i=_A(a,WH(a,g),i)}return i}function rLn(e,t){var i,s,a,c,b,g,m,_,k,I,D;for(b=mt(wt(Ye(e,(bt(),D_)))),D=f(Ye(e,j_),21),m=!1,_=!1,I=new Sn((!e.c&&(e.c=new qe(Mc,e,9,9)),e.c));I.e!=I.i.gc()&&(!m||!_);){for(c=f(Cn(I),123),g=0,a=wp(_u(se(ie(Tu,1),on,20,0,[(!c.d&&(c.d=new en(Fi,c,8,5)),c.d),(!c.e&&(c.e=new en(Fi,c,7,4)),c.e)])));Un(a)&&(s=f(On(a),74),k=b&&ny(s)&&mt(wt(Ye(s,Nw))),i=mxt((!s.b&&(s.b=new en(Dn,s,4,7)),s.b),c)?e==di(sl(f(Se((!s.c&&(s.c=new en(Dn,s,5,8)),s.c),0),84))):e==di(sl(f(Se((!s.b&&(s.b=new en(Dn,s,4,7)),s.b),0),84))),!((k||i)&&(++g,g>1))););(g>0||D.Hc(($c(),Mb))&&(!c.n&&(c.n=new qe(Fs,c,1,7)),c.n).i>0)&&(m=!0),g>1&&(_=!0)}m&&t.Fc((As(),af)),_&&t.Fc((As(),GI))}function Wxt(e){var t,i,s,a,c,b,g,m,_,k,I,D;if(D=f(Ye(e,(Er(),Hw)),21),D.dc())return null;if(g=0,b=0,D.Hc((su(),H9))){for(k=f(Ye(e,x5),101),s=2,i=2,a=2,c=2,t=di(e)?f(Ye(di(e),Ww),88):f(Ye(e,Ww),88),_=new Sn((!e.c&&(e.c=new qe(Mc,e,9,9)),e.c));_.e!=_.i.gc();)if(m=f(Cn(_),123),I=f(Ye(m,dE),64),I==(ut(),Cl)&&(I=E3e(m,t),zr(m,dE,I)),k==(Co(),ya))switch(I.g){case 1:s=h.Math.max(s,m.i+m.g);break;case 2:i=h.Math.max(i,m.j+m.f);break;case 3:a=h.Math.max(a,m.i+m.g);break;case 4:c=h.Math.max(c,m.j+m.f)}else switch(I.g){case 1:s+=m.g+2;break;case 2:i+=m.f+2;break;case 3:a+=m.g+2;break;case 4:c+=m.f+2}g=h.Math.max(s,a),b=h.Math.max(i,c)}return sy(e,g,b,!0,!0)}function sre(e,t,i,s,a){var c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce;for(ge=f(fl(RW(Br(new Wt(null,new Vt(t.d,16)),new Iit(i)),new Pit(i)),Cc(new K,new B,new Zt,se(ie(qs,1),Je,108,0,[(Tc(),pl)]))),15),I=Nr,k=Qo,m=new ee(t.b.j);m.a0,_?_&&(D=oe.p,b?++D:--D,I=f(vt(oe.c.a,D),10),s=fvt(I),W=!($ne(s,Ze,i[0])||Mpt(s,Ze,i[0]))):W=!0),U=!1,Ke=t.D.i,Ke&&Ke.c&&g.e&&(k=b&&Ke.p>0||!b&&Ke.p=0){for(m=null,g=new No(k.a,_+1);g.bb?1:Em(isNaN(0),isNaN(b)))<0&&(td(Qh),(h.Math.abs(b-1)<=Qh||b==1||isNaN(b)&&isNaN(1)?0:b<1?-1:b>1?1:Em(isNaN(b),isNaN(1)))<0)&&(td(Qh),(h.Math.abs(0-g)<=Qh||g==0||isNaN(0)&&isNaN(g)?0:0g?1:Em(isNaN(0),isNaN(g)))<0)&&(td(Qh),(h.Math.abs(g-1)<=Qh||g==1||isNaN(g)&&isNaN(1)?0:g<1?-1:g>1?1:Em(isNaN(g),isNaN(1)))<0)),c)}function cLn(e){var t,i,s,a;if(i=e.D!=null?e.D:e.B,t=Ph(i,Qa(91)),t!=-1){s=(Mo(0,t,i.length),i.substr(0,t)),a=new ig;do a.a+="[";while((t=nC(i,91,++t))!=-1);Ht(s,$3)?a.a+="Z":Ht(s,RI)?a.a+="B":Ht(s,lG)?a.a+="C":Ht(s,xI)?a.a+="D":Ht(s,CI)?a.a+="F":Ht(s,AI)?a.a+="I":Ht(s,TI)?a.a+="J":Ht(s,$I)?a.a+="S":(a.a+="L",a.a+=""+s,a.a+=";");try{return null}catch(c){if(c=mi(c),!ve(c,63))throw ne(c)}}else if(Ph(i,Qa(46))==-1){if(Ht(i,$3))return Xc;if(Ht(i,RI))return _c;if(Ht(i,lG))return df;if(Ht(i,xI))return Ro;if(Ht(i,CI))return nS;if(Ht(i,AI))return Xn;if(Ht(i,TI))return m0;if(Ht(i,$I))return mE}return null}function uLn(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ct;for(e.e=t,g=u8n(t),Ze=new st,s=new ee(g);s.a=0&&z=_.c.c.length?k=c_e((gn(),ji),vo):k=c_e((gn(),vo),vo),k*=2,c=i.a.g,i.a.g=h.Math.max(c,c+(k-c)),b=i.b.g,i.b.g=h.Math.max(b,b+(k-b)),a=t}}function pLn(e){var t,i,s,a;for(Mi(Br(new Wt(null,new Vt(e.a.b,16)),new Xqe),new Jqe),X$n(e),Mi(Br(new Wt(null,new Vt(e.a.b,16)),new Yqe),new Qqe),e.c==(_b(),uR)&&(Mi(Br(El(new Wt(null,new Vt(new H0(e.f),1)),new Zqe),new eXe),new kit(e)),Mi(Br(nl(El(El(new Wt(null,new Vt(e.d.b,16)),new tXe),new nXe),new rXe),new iXe),new xit(e))),a=new tt(hi,hi),t=new tt(to,to),s=new ee(e.a.b);s.a0&&(t.a+=ds),lU(f(Cn(g),167),t);for(t.a+=bie,m=new Kk((!s.c&&(s.c=new en(Dn,s,5,8)),s.c));m.e!=m.i.gc();)m.e>0&&(t.a+=ds),lU(f(Cn(m),167),t);t.a+=")"}}function bLn(e,t,i){var s,a,c,b,g,m,_,k;for(m=new Sn((!e.a&&(e.a=new qe($r,e,10,11)),e.a));m.e!=m.i.gc();)for(g=f(Cn(m),27),a=new kn(xn(Rb(g).a.Kc(),new O));Un(a);){if(s=f(On(a),74),!s.b&&(s.b=new en(Dn,s,4,7)),!(s.b.i<=1&&(!s.c&&(s.c=new en(Dn,s,5,8)),s.c.i<=1)))throw ne(new Dk("Graph must not contain hyperedges."));if(!W6(s)&&g!=sl(f(Se((!s.c&&(s.c=new en(Dn,s,5,8)),s.c),0),84)))for(_=new Udt,ol(_,s),Xe(_,(P1(),q3),s),npn(_,f(tl(xs(i.f,g)),153)),opn(_,f(En(i,sl(f(Se((!s.c&&(s.c=new en(Dn,s,5,8)),s.c),0),84))),153)),lt(t.c,_),b=new Sn((!s.n&&(s.n=new qe(Fs,s,1,7)),s.n));b.e!=b.i.gc();)c=f(Cn(b),135),k=new V1t(_,c.a),ol(k,c),Xe(k,q3,c),k.e.a=h.Math.max(c.g,1),k.e.b=h.Math.max(c.f,1),A3e(k),lt(t.d,k)}}function gLn(e,t,i){var s,a,c,b,g,m,_,k,I,D;switch(i.Ug("Node promotion heuristic",1),e.i=t,e.r=f(V(t,(bt(),r0)),243),e.r!=(Sf(),Py)&&e.r!=W_?ULn(e):b7n(e),k=f(V(e.i,U6e),17).a,c=new BKe,e.r.g){case 2:case 1:yA(e,c);break;case 3:for(e.r=GV,yA(e,c),m=0,g=new ee(e.b);g.ae.k&&(e.r=d9,yA(e,c));break;case 4:for(e.r=GV,yA(e,c),_=0,a=new ee(e.c);a.ae.n&&(e.r=h9,yA(e,c));break;case 6:D=oo(h.Math.ceil(e.g.length*k/100)),yA(e,new dit(D));break;case 5:I=oo(h.Math.ceil(e.e*k/100)),yA(e,new hit(I));break;case 8:RCt(e,!0);break;case 9:RCt(e,!1);break;default:yA(e,c)}e.r!=Py&&e.r!=W_?FOn(e,t):oNn(e,t),i.Vg()}function wLn(e){var t,i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e;for(I=e.b,k=new No(I,0),Dv(k,new ca(e)),ge=!1,b=1;k.b0&&(D.d+=k.n.d,D.d+=k.d),D.a>0&&(D.a+=k.n.a,D.a+=k.d),D.b>0&&(D.b+=k.n.b,D.b+=k.d),D.c>0&&(D.c+=k.n.c,D.c+=k.d),D}function Uxt(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U;for(D=i.d,I=i.c,c=new tt(i.f.a+i.d.b+i.d.c,i.f.b+i.d.d+i.d.a),b=c.b,_=new ee(e.a);_.a<_.c.c.length;)if(g=f(Z(_),10),g.k==(gn(),Ui)){switch(s=f(V(g,(nt(),Dl)),64),a=f(V(g,B$e),8),k=g.n,s.g){case 2:k.a=i.f.a+D.c-I.a;break;case 4:k.a=-I.a-D.b}switch(U=0,s.g){case 2:case 4:t==(Co(),jp)?(W=Ae(je(V(g,ky))),k.b=c.b*W-f(V(g,(bt(),Ty)),8).b,U=k.b+a.b,zW(g,!1,!0)):t==ya&&(k.b=Ae(je(V(g,ky)))-f(V(g,(bt(),Ty)),8).b,U=k.b+a.b,zW(g,!1,!0))}b=h.Math.max(b,U)}for(i.f.b+=b-c.b,m=new ee(e.a);m.a0&&(e.c[t.c.p][t.p].d+=Uc(e.i,24)*pM*.07000000029802322-.03500000014901161,e.c[t.c.p][t.p].a=e.c[t.c.p][t.p].d/e.c[t.c.p][t.p].b)}}function vLn(e){var t,i,s,a,c,b,g,m,_,k,I,D,W,U,z,X;for(U=new ee(e);U.as.d,s.d=h.Math.max(s.d,t),g&&i&&(s.d=h.Math.max(s.d,s.a),s.a=s.d+a);break;case 3:i=t>s.a,s.a=h.Math.max(s.a,t),g&&i&&(s.a=h.Math.max(s.a,s.d),s.d=s.a+a);break;case 2:i=t>s.c,s.c=h.Math.max(s.c,t),g&&i&&(s.c=h.Math.max(s.b,s.c),s.b=s.c+a);break;case 4:i=t>s.b,s.b=h.Math.max(s.b,t),g&&i&&(s.b=h.Math.max(s.b,s.c),s.c=s.b+a)}}}function Vxt(e,t){var i,s,a,c,b,g,m,_,k;return _="",t.length==0?e.ne(iRe,mre,-1,-1):(k=s_(t),Ht(k.substr(0,3),"at ")&&(k=(pn(3,k.length+1),k.substr(3))),k=k.replace(/\[.*?\]/g,""),b=k.indexOf("("),b==-1?(b=k.indexOf("@"),b==-1?(_=k,k=""):(_=s_((pn(b+1,k.length+1),k.substr(b+1))),k=s_((Mo(0,b,k.length),k.substr(0,b))))):(i=k.indexOf(")",b),_=(Mo(b+1,i,k.length),k.substr(b+1,i-(b+1))),k=s_((Mo(0,b,k.length),k.substr(0,b)))),b=Ph(k,Qa(46)),b!=-1&&(k=(pn(b+1,k.length+1),k.substr(b+1))),(k.length==0||Ht(k,"Anonymous function"))&&(k=mre),g=ZF(_,Qa(58)),a=fye(_,Qa(58),g-1),m=-1,s=-1,c=iRe,g!=-1&&a!=-1&&(c=(Mo(0,a,_.length),_.substr(0,a)),m=adt((Mo(a+1,g,_.length),_.substr(a+1,g-(a+1)))),s=adt((pn(g+1,_.length+1),_.substr(g+1)))),e.ne(c,k,m,s))}function ELn(e){var t,i,s,a,c,b,g,m,_,k,I;for(_=new ee(e);_.a<_.c.c.length;){switch(m=f(Z(_),10),b=f(V(m,(bt(),Ha)),171),c=null,b.g){case 1:case 2:c=(uw(),H2);break;case 3:case 4:c=(uw(),o4)}if(c)Xe(m,(nt(),vV),(uw(),H2)),c==o4?zH(m,b,(Cs(),Pc)):c==H2&&zH(m,b,(Cs(),Ta));else if(HS(f(V(m,Oi),101))&&m.j.c.length!=0){for(t=!0,I=new ee(m.j);I.a0||k.j==wn&&k.e.c.length-k.g.c.length<0)){t=!1;break}for(a=new ee(k.g);a.a=_&&Ke>=X&&(D+=U.n.b+z.n.b+z.a.b-Ce,++g));if(i)for(b=new ee(ge.e);b.a=_&&Ke>=X&&(D+=U.n.b+z.n.b+z.a.b-Ce,++g))}g>0&&(Ze+=D/g,++W)}W>0?(t.a=a*Ze/W,t.g=W):(t.a=0,t.g=0)}function RLn(e){var t,i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ct;for(c=e.f.b,D=c.a,k=c.b,U=e.e.g,W=e.e.f,GS(e.e,c.a,c.b),Ze=D/U,ct=k/W,_=new Sn(jB(e.e));_.e!=_.i.gc();)m=f(Cn(_),135),Da(m,m.i*Ze),La(m,m.j*ct);for(ge=new Sn($Z(e.e));ge.e!=ge.i.gc();)oe=f(Cn(ge),123),Ce=oe.i,Ke=oe.j,Ce>0&&Da(oe,Ce*Ze),Ke>0&&La(oe,Ke*ct);for(p6(e.b,new zVe),t=new st,g=new aw(new U0(e.c).a);g.b;)b=qm(g),s=f(b.ld(),74),i=f(b.md(),407).a,a=w2(s,!1,!1),I=j2t(Sp(s),LN(a),i),YN(I,a),_e=Y2t(s),_e&&il(t,_e,0)==-1&&(sn(t.c,_e),xbt(_e,(In(I.b!=0),f(I.a.a.c,8)),i));for(X=new aw(new U0(e.d).a);X.b;)z=qm(X),s=f(z.ld(),74),i=f(z.md(),407).a,a=w2(s,!1,!1),I=j2t(F1(s),pN(LN(a)),i),I=pN(I),YN(I,a),_e=Q2t(s),_e&&il(t,_e,0)==-1&&(sn(t.c,_e),xbt(_e,(In(I.b!=0),f(I.c.b.c,8)),i))}function zxt(e,t,i,s){var a,c,b,g,m;return g=new H3e(t),gOn(g,s),a=!0,e&&e.pf((Er(),Ww))&&(c=f(e.of((Er(),Ww)),88),a=c==(Xi(),wh)||c==Js||c==al),V3t(g,!1),Ma(g.e.Rf(),new mye(g,!1,a)),UZ(g,g.f,(Pd(),Nl),(ut(),bn)),UZ(g,g.f,Ml,jn),UZ(g,g.g,Nl,wn),UZ(g,g.g,Ml,_n),vSt(g,bn),vSt(g,jn),Ebt(g,_n),Ebt(g,wn),Mv(),b=g.A.Hc((su(),q_))&&g.B.Hc((Gc(),G9))?j_t(g):null,b&&Rbn(g.a,b),SLn(g),ETn(g),kTn(g),XDn(g),pMn(g),JTn(g),Pte(g,bn),Pte(g,jn),eNn(g),H9n(g),i&&(iAn(g),YTn(g),Pte(g,_n),Pte(g,wn),m=g.B.Hc((Gc(),M5)),LEt(g,m,bn),LEt(g,m,jn),jEt(g,m,_n),jEt(g,m,wn),Mi(new Wt(null,new Vt(new ob(g.i),0)),new Y),Mi(Br(new Wt(null,gve(g.r).a.oc()),new J),new ue),f6n(g),g.e.Pf(g.o),Mi(new Wt(null,gve(g.r).a.oc()),new Yt)),g.o}function xLn(e){var t,i,s,a,c,b,g,m,_,k,I,D,W,U,z;for(_=hi,s=new ee(e.a.b);s.a1)for(W=new P3e(U,_e,s),Vo(_e,new nut(e,W)),sn(b.c,W),I=_e.a.ec().Kc();I.Ob();)k=f(I.Pb(),42),Ja(c,k.b);if(g.a.gc()>1)for(W=new P3e(U,g,s),Vo(g,new rut(e,W)),sn(b.c,W),I=g.a.ec().Kc();I.Ob();)k=f(I.Pb(),42),Ja(c,k.b)}}function $Ln(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe;if(z=e.n,X=e.o,D=e.d,I=Ae(je(t_(e,(bt(),Wle)))),t){for(k=I*(t.gc()-1),W=0,m=t.Kc();m.Ob();)b=f(m.Pb(),10),k+=b.o.a,W=h.Math.max(W,b.o.b);for(oe=z.a-(k-X.a)/2,c=z.b-D.d+W,s=X.a/(t.gc()+1),a=s,g=t.Kc();g.Ob();)b=f(g.Pb(),10),b.n.a=oe,b.n.b=c-b.o.b,oe+=b.o.a+I,_=t3t(b),_.n.a=b.o.a/2-_.a.a,_.n.b=b.o.b,U=f(V(b,(nt(),mV)),12),U.e.c.length+U.g.c.length==1&&(U.n.a=a-U.a.a,U.n.b=0,Sl(U,e)),a+=s}if(i){for(k=I*(i.gc()-1),W=0,m=i.Kc();m.Ob();)b=f(m.Pb(),10),k+=b.o.a,W=h.Math.max(W,b.o.b);for(oe=z.a-(k-X.a)/2,c=z.b+X.b+D.a-W,s=X.a/(i.gc()+1),a=s,g=i.Kc();g.Ob();)b=f(g.Pb(),10),b.n.a=oe,b.n.b=c,oe+=b.o.a+I,_=t3t(b),_.n.a=b.o.a/2-_.a.a,_.n.b=0,U=f(V(b,(nt(),mV)),12),U.e.c.length+U.g.c.length==1&&(U.n.a=a-U.a.a,U.n.b=X.b,Sl(U,e)),a+=s}}function ILn(e,t){var i,s,a,c,b,g;if(f(V(t,(nt(),ma)),21).Hc((As(),af))){for(g=new ee(t.a);g.a=0&&b0&&(f(Ds(e.b,t),127).a.b=i)}function DLn(e,t,i,s){var a,c,b,g,m,_,k,I,D,W,U,z;if(D=Ae(je(V(e,(bt(),p4)))),W=Ae(je(V(e,b4))),I=Ae(je(V(e,B_))),g=e.o,c=f(vt(e.j,0),12),b=c.n,z=ZIn(c,I),!!z){if(t.Hc(($c(),Mb)))switch(f(V(e,(nt(),Dl)),64).g){case 1:z.c=(g.a-z.b)/2-b.a,z.d=W;break;case 3:z.c=(g.a-z.b)/2-b.a,z.d=-W-z.a;break;case 2:i&&c.e.c.length==0&&c.g.c.length==0?(k=s?z.a:f(vt(c.f,0),72).o.b,z.d=(g.b-k)/2-b.b):z.d=g.b+W-b.b,z.c=-D-z.b;break;case 4:i&&c.e.c.length==0&&c.g.c.length==0?(k=s?z.a:f(vt(c.f,0),72).o.b,z.d=(g.b-k)/2-b.b):z.d=g.b+W-b.b,z.c=D}else if(t.Hc(f0))switch(f(V(e,(nt(),Dl)),64).g){case 1:case 3:z.c=b.a+D;break;case 2:case 4:i&&!c.c?(k=s?z.a:f(vt(c.f,0),72).o.b,z.d=(g.b-k)/2-b.b):z.d=b.b+W}for(a=z.d,_=new ee(c.f);_.a<_.c.c.length;)m=f(Z(_),72),U=m.n,U.a=z.c,U.b=a,a+=m.o.b+I}}function LLn(e){var t,i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ct,Dt,Nt,ln,an;for(Ze=new st,U=new ee(e.b);U.a=t.length)return{done:!0};var a=t[s++];return{value:[a,i.get(a)],done:!1}}}},O7n()||(e.prototype.createObject=function(){return{}},e.prototype.get=function(t){return this.obj[":"+t]},e.prototype.set=function(t,i){this.obj[":"+t]=i},e.prototype[Gre]=function(t){delete this.obj[":"+t]},e.prototype.keys=function(){var t=[];for(var i in this.obj)i.charCodeAt(0)==58&&t.push(i.substring(1));return t}),e}function ei(){ei=F,h5=new Xr(NRe),new _i("DEPTH",ot(0)),bae=new _i("FAN",ot(0)),n5e=new _i(m4t,ot(0)),s0=new _i("ROOT",(cn(),!1)),mae=new _i("LEFTNEIGHBOR",null),wNt=new _i("RIGHTNEIGHBOR",null),YV=new _i("LEFTSIBLING",null),yae=new _i("RIGHTSIBLING",null),pae=new _i("DUMMY",!1),new _i("LEVEL",ot(0)),o5e=new _i("REMOVABLE_EDGES",new li),y9=new _i("XCOOR",ot(0)),v9=new _i("YCOOR",ot(0)),QV=new _i("LEVELHEIGHT",0),Fd=new _i("LEVELMIN",0),fd=new _i("LEVELMAX",0),gae=new _i("GRAPH_XMIN",0),wae=new _i("GRAPH_YMIN",0),r5e=new _i("GRAPH_XMAX",0),i5e=new _i("GRAPH_YMAX",0),t5e=new _i("COMPACT_LEVEL_ASCENSION",!1),hae=new _i("COMPACT_CONSTRAINTS",new st),d5=new _i("ID",""),p5=new _i("POSITION",ot(0)),jg=new _i("PRELIM",0),v4=new _i("MODIFIER",0),y4=new Xr($At),m9=new Xr(IAt)}function BLn(e){S3e();var t,i,s,a,c,b,g,m,_,k,I,D,W,U,z,X;if(e==null)return null;if(I=e.length*8,I==0)return"";for(g=I%24,W=I/24|0,D=g!=0?W+1:W,c=null,c=Fe(df,zh,28,D*4,15,1),_=0,k=0,t=0,i=0,s=0,b=0,a=0,m=0;m>24,_=(t&3)<<24>>24,U=t&-128?(t>>2^192)<<24>>24:t>>2<<24>>24,z=i&-128?(i>>4^240)<<24>>24:i>>4<<24>>24,X=s&-128?(s>>6^252)<<24>>24:s>>6<<24>>24,c[b++]=Kg[U],c[b++]=Kg[z|_<<4],c[b++]=Kg[k<<2|X],c[b++]=Kg[s&63];return g==8?(t=e[a],_=(t&3)<<24>>24,U=t&-128?(t>>2^192)<<24>>24:t>>2<<24>>24,c[b++]=Kg[U],c[b++]=Kg[_<<4],c[b++]=61,c[b++]=61):g==16&&(t=e[a],i=e[a+1],k=(i&15)<<24>>24,_=(t&3)<<24>>24,U=t&-128?(t>>2^192)<<24>>24:t>>2<<24>>24,z=i&-128?(i>>4^240)<<24>>24:i>>4<<24>>24,c[b++]=Kg[U],c[b++]=Kg[z|_<<4],c[b++]=Kg[k<<2],c[b++]=61),Bh(c,0,c.length)}function WLn(e,t){var i,s,a,c,b,g,m;if(e.e==0&&e.p>0&&(e.p=-(e.p-1)),e.p>Qo&&a_e(t,e.p-V1),b=t.q.getDate(),M7(t,1),e.k>=0&&TSn(t,e.k),e.c>=0?M7(t,e.c):e.k>=0?(m=new jSe(t.q.getFullYear()-V1,t.q.getMonth(),35),s=35-m.q.getDate(),M7(t,h.Math.min(s,b))):M7(t,b),e.f<0&&(e.f=t.q.getHours()),e.b>0&&e.f<12&&(e.f+=12),v1n(t,e.f==24&&e.g?0:e.f),e.j>=0&&fkn(t,e.j),e.n>=0&&Ekn(t,e.n),e.i>=0&&tft(t,is(os(ON(Gl(t.q.getTime()),Tg),Tg),e.i)),e.a&&(a=new dF,a_e(a,a.q.getFullYear()-V1-80),zY(Gl(t.q.getTime()),Gl(a.q.getTime()))&&a_e(t,a.q.getFullYear()-V1+100)),e.d>=0){if(e.c==-1)i=(7+e.d-t.q.getDay())%7,i>3&&(i-=7),g=t.q.getMonth(),M7(t,t.q.getDate()+i),t.q.getMonth()!=g&&M7(t,t.q.getDate()+(i>0?-7:7));else if(t.q.getDay()!=e.d)return!1}return e.o>Qo&&(c=t.q.getTimezoneOffset(),tft(t,is(Gl(t.q.getTime()),(e.o-c)*60*Tg))),!0}function Yxt(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce;if(a=V(t,(nt(),Ur)),!!ve(a,207)){for(U=f(a,27),z=t.e,D=new us(t.c),c=t.d,D.a+=c.b,D.b+=c.d,Ce=f(Ye(U,(bt(),DV)),181),fc(Ce,(Gc(),kz))&&(W=f(Ye(U,q6e),107),Jhn(W,c.a),ipn(W,c.d),Yhn(W,c.b),rpn(W,c.c)),i=new st,k=new ee(t.a);k.as.c.length-1;)lt(s,new io(C2,fCe));i=f(V(a,ip),17).a,ab(f(V(e,Ny),88))?(a.e.aAe(je((qt(i,s.c.length),f(s.c[i],42)).b))&&uY((qt(i,s.c.length),f(s.c[i],42)),a.e.a+a.f.a)):(a.e.bAe(je((qt(i,s.c.length),f(s.c[i],42)).b))&&uY((qt(i,s.c.length),f(s.c[i],42)),a.e.b+a.f.b))}for(c=Hn(e.b,0);c.b!=c.d.c;)a=f(Bn(c),40),i=f(V(a,(Il(),ip)),17).a,Xe(a,(ei(),Fd),je((qt(i,s.c.length),f(s.c[i],42)).a)),Xe(a,fd,je((qt(i,s.c.length),f(s.c[i],42)).b));t.Vg()}function ULn(e){var t,i,s,a,c,b,g,m,_,k,I,D,W,U,z;for(e.o=Ae(je(V(e.i,(bt(),Iy)))),e.f=Ae(je(V(e.i,jw))),e.j=e.i.b.c.length,g=e.j-1,D=0,e.k=0,e.n=0,e.b=Qd(Fe(Ko,rt,17,e.j,0,1)),e.c=Qd(Fe(Qi,rt,345,e.j,7,1)),b=new ee(e.i.b);b.a0&<(e.q,k),lt(e.p,k);t-=s,W=m+t,_+=t*e.f,Ku(e.b,g,ot(W)),Ku(e.c,g,_),e.k=h.Math.max(e.k,W),e.n=h.Math.max(e.n,_),e.e+=t,t+=z}}function ut(){ut=F;var e;Cl=new o7(lI,0),bn=new o7(wU,1),_n=new o7(eie,2),jn=new o7(tie,3),wn=new o7(nie,4),yh=(Kt(),new Vx((e=f(kd(vs),9),new Uu(e,f(Yf(e,e.length),9),0)))),gd=yg(ii(bn,se(ie(vs,1),Ql,64,0,[]))),uf=yg(ii(_n,se(ie(vs,1),Ql,64,0,[]))),Pu=yg(ii(jn,se(ie(vs,1),Ql,64,0,[]))),If=yg(ii(wn,se(ie(vs,1),Ql,64,0,[]))),tc=yg(ii(bn,se(ie(vs,1),Ql,64,0,[jn]))),Ua=yg(ii(_n,se(ie(vs,1),Ql,64,0,[wn]))),wd=yg(ii(bn,se(ie(vs,1),Ql,64,0,[wn]))),Oc=yg(ii(bn,se(ie(vs,1),Ql,64,0,[_n]))),Ou=yg(ii(jn,se(ie(vs,1),Ql,64,0,[wn]))),ff=yg(ii(_n,se(ie(vs,1),Ql,64,0,[jn]))),Nc=yg(ii(bn,se(ie(vs,1),Ql,64,0,[_n,wn]))),ec=yg(ii(_n,se(ie(vs,1),Ql,64,0,[jn,wn]))),nc=yg(ii(bn,se(ie(vs,1),Ql,64,0,[jn,wn]))),vc=yg(ii(bn,se(ie(vs,1),Ql,64,0,[_n,jn]))),va=yg(ii(bn,se(ie(vs,1),Ql,64,0,[_n,jn,wn])))}function GLn(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ct;for(t.Ug(YAt,1),z=new st,Ze=new st,_=new ee(e.b);_.a<_.c.c.length;)for(m=f(Z(_),30),oe=-1,U=j7(m.a),I=U,D=0,W=I.length;D0&&(_e-=W),O3e(b,_e),k=0,D=new ee(b.a);D.a0),g.a.Xb(g.c=--g.b)),m=.4*s*k,!c&&g.b0&&(m=(pn(0,t.length),t.charCodeAt(0)),m!=64)){if(m==37&&(I=t.lastIndexOf("%"),_=!1,I!=0&&(I==D-1||(_=(pn(I+1,t.length),t.charCodeAt(I+1)==46))))){if(b=(Mo(1,I,t.length),t.substr(1,I-1)),_e=Ht("%",b)?null:G3e(b),s=0,_)try{s=Ru((pn(I+2,t.length+1),t.substr(I+2)),Qo,Nr)}catch(Ce){throw Ce=mi(Ce),ve(Ce,130)?(g=Ce,ne(new wW(g))):ne(Ce)}for(X=wSe(e.Gh());X.Ob();)if(U=VW(X),ve(U,519)&&(a=f(U,598),ge=a.d,(_e==null?ge==null:Ht(_e,ge))&&s--==0))return a;return null}if(k=t.lastIndexOf("."),W=k==-1?t:(Mo(0,k,t.length),t.substr(0,k)),i=0,k!=-1)try{i=Ru((pn(k+1,t.length+1),t.substr(k+1)),Qo,Nr)}catch(Ce){if(Ce=mi(Ce),ve(Ce,130))W=t;else throw ne(Ce)}for(W=Ht("%",W)?null:G3e(W),z=wSe(e.Gh());z.Ob();)if(U=VW(z),ve(U,197)&&(c=f(U,197),oe=c.xe(),(W==null?oe==null:Ht(W,oe))&&i--==0))return c;return null}return Bxt(e,t)}function QLn(e){var t,i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge;for(k=new Fn,m=new Fm,s=new ee(e.a.a.b);s.at.d.c){if(W=e.c[t.a.d],X=e.c[I.a.d],W==X)continue;id(qf(Kf(Xf(zf(new gf,1),100),W),X))}}}}}function ZLn(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze;if(D=f(f(Hr(e.r,t),21),87),t==(ut(),_n)||t==wn){qxt(e,t);return}for(c=t==bn?(Xm(),WM):(Xm(),HM),Ce=t==bn?(Ya(),Ld):(Ya(),ad),i=f(Ds(e.b,t),127),s=i.i,a=s.c+n2(se(ie(Ro,1),js,28,15,[i.n.b,e.C.b,e.k])),oe=s.c+s.b-n2(se(ie(Ro,1),js,28,15,[i.n.c,e.C.c,e.k])),b=iwe(vye(c),e.t),ge=t==bn?to:hi,I=D.Kc();I.Ob();)_=f(I.Pb(),117),!(!_.c||_.c.d.c.length<=0)&&(X=_.b.Mf(),z=_.e,W=_.c,U=W.i,U.b=(m=W.n,W.e.a+m.b+m.c),U.a=(g=W.n,W.e.b+g.d+g.a),I7(Ce,vRe),W.f=Ce,$d(W,(Ac(),ld)),U.c=z.a-(U.b-X.a)/2,Ke=h.Math.min(a,z.a),Ze=h.Math.max(oe,z.a+X.a),U.cZe&&(U.c=Ze-U.b),lt(b.d,new fZ(U,f2e(b,U))),ge=t==bn?h.Math.max(ge,z.b+_.b.Mf().b):h.Math.min(ge,z.b));for(ge+=t==bn?e.t:-e.t,_e=$2e((b.e=ge,b)),_e>0&&(f(Ds(e.b,t),127).a.b=_e),k=D.Kc();k.Ob();)_=f(k.Pb(),117),!(!_.c||_.c.d.c.length<=0)&&(U=_.c.i,U.c-=_.e.a,U.d-=_.e.b)}function ejn(e){var t,i,s,a,c,b,g,m,_,k,I,D,W;for(t=new Fn,m=new Sn(e);m.e!=m.i.gc();){for(g=f(Cn(m),27),i=new Gi,xr($se,g,i),W=new qJ,a=f(fl(new Wt(null,new Pm(new kn(xn(UN(g).a.Kc(),new O)))),wpt(W,Cc(new K,new B,new Zt,se(ie(qs,1),Je,108,0,[(Tc(),pl)])))),85),Ymt(i,f(a.xc((cn(),!0)),16),new HVe),s=f(fl(Br(f(a.xc(!1),15).Lc(),new UVe),Cc(new K,new B,new Zt,se(ie(qs,1),Je,108,0,[pl]))),15),b=s.Kc();b.Ob();)c=f(b.Pb(),74),D=Y2t(c),D&&(_=f(tl(xs(t.f,D)),21),_||(_=v3t(D),Ca(t.f,D,_)),Do(i,_));for(a=f(fl(new Wt(null,new Pm(new kn(xn(Rb(g).a.Kc(),new O)))),wpt(W,Cc(new K,new B,new Zt,se(ie(qs,1),Je,108,0,[pl])))),85),Ymt(i,f(a.xc(!0),16),new GVe),s=f(fl(Br(f(a.xc(!1),15).Lc(),new VVe),Cc(new K,new B,new Zt,se(ie(qs,1),Je,108,0,[pl]))),15),I=s.Kc();I.Ob();)k=f(I.Pb(),74),D=Q2t(k),D&&(_=f(tl(xs(t.f,D)),21),_||(_=v3t(D),Ca(t.f,D,_)),Do(i,_))}}function tjn(e,t){Jne();var i,s,a,c,b,g,m,_,k,I,D,W,U,z;if(m=Jl(e,0)<0,m&&(e=gg(e)),Jl(e,0)==0)switch(t){case 0:return"0";case 1:return CA;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return W=new m1,t<0?W.a+="0E+":W.a+="0E",W.a+=t==Qo?"2147483648":""+-t,W.a}k=18,I=Fe(df,zh,28,k+1,15,1),i=k,z=e;do _=z,z=ON(z,10),I[--i]=tr(is(48,vf(_,os(z,10))))&Ji;while(Jl(z,0)!=0);if(a=vf(vf(vf(k,i),t),1),t==0)return m&&(I[--i]=45),Bh(I,i,k-i);if(t>0&&Jl(a,-6)>=0){if(Jl(a,0)>=0){for(c=i+tr(a),g=k-1;g>=c;g--)I[g+1]=I[g];return I[++c]=46,m&&(I[--i]=45),Bh(I,i,k-i+1)}for(b=2;zY(b,is(gg(a),1));b++)I[--i]=48;return I[--i]=46,I[--i]=48,m&&(I[--i]=45),Bh(I,i,k-i)}return U=i+1,s=k,D=new jk,m&&(D.a+="-"),s-U>=1?(Q0(D,I[i]),D.a+=".",D.a+=Bh(I,i+1,k-i-1)):D.a+=Bh(I,i,k-i),D.a+="E",Jl(a,0)>0&&(D.a+="+"),D.a+=""+z$(a),D.a}function sy(e,t,i,s,a){var c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze;if(X=new tt(e.g,e.f),z=ske(e),z.a=h.Math.max(z.a,t),z.b=h.Math.max(z.b,i),Ze=z.a/X.a,k=z.b/X.b,Ce=z.a-X.a,m=z.b-X.b,s)for(b=di(e)?f(Ye(di(e),(Er(),Ww)),88):f(Ye(e,(Er(),Ww)),88),g=Oe(Ye(e,(Er(),x5)))===Oe((Co(),ya)),ge=new Sn((!e.c&&(e.c=new qe(Mc,e,9,9)),e.c));ge.e!=ge.i.gc();)switch(oe=f(Cn(ge),123),_e=f(Ye(oe,dE),64),_e==(ut(),Cl)&&(_e=E3e(oe,b),zr(oe,dE,_e)),_e.g){case 1:g||Da(oe,oe.i*Ze);break;case 2:Da(oe,oe.i+Ce),g||La(oe,oe.j*k);break;case 3:g||Da(oe,oe.i*Ze),La(oe,oe.j+m);break;case 4:g||La(oe,oe.j*k)}if(GS(e,z.a,z.b),a)for(D=new Sn((!e.n&&(e.n=new qe(Fs,e,1,7)),e.n));D.e!=D.i.gc();)I=f(Cn(D),135),W=I.i+I.g/2,U=I.j+I.f/2,Ke=W/X.a,_=U/X.b,Ke+_>=1&&(Ke-_>0&&U>=0?(Da(I,I.i+Ce),La(I,I.j+m*_)):Ke-_<0&&W>=0&&(Da(I,I.i+Ce*Ke),La(I,I.j+m)));return zr(e,(Er(),Hw),(su(),c=f(kd(N5),9),new Uu(c,f(Yf(c,c.length),9),0))),new tt(Ze,k)}function tCt(e){ym(e,new gw(sF(gm(hm(bm(pm(new F0,rf),"ELK Radial"),'A radial layout provider which is based on the algorithm of Peter Eades published in "Drawing free trees.", published by International Institute for Advanced Study of Social Information Science, Fujitsu Limited in 1991. The radial layouter takes a tree and places the nodes in radial order around the root. The nodes of the same tree level are placed on the same radius.'),new JYe),rf))),it(e,rf,HU,ht(hMt)),it(e,rf,m_,ht(pMt)),it(e,rf,A2,ht(cMt)),it(e,rf,B3,ht(uMt)),it(e,rf,F3,ht(fMt)),it(e,rf,NA,ht(aMt)),it(e,rf,fI,ht(N5e)),it(e,rf,MA,ht(dMt)),it(e,rf,ooe,ht(Pae)),it(e,rf,ioe,ht(Oae)),it(e,rf,XU,ht(D5e)),it(e,rf,soe,ht(Nae)),it(e,rf,loe,ht(L5e)),it(e,rf,$Ce,ht(j5e)),it(e,rf,TCe,ht(M5e)),it(e,rf,RCe,ht(rz)),it(e,rf,xCe,ht(iz)),it(e,rf,CCe,ht(_9)),it(e,rf,ACe,ht(F5e)),it(e,rf,kCe,ht(O5e))}function aU(e){var t,i,s,a,c,b,g,m,_,k,I;if(e==null)throw ne(new Ih(Za));if(_=e,c=e.length,m=!1,c>0&&(t=(pn(0,e.length),e.charCodeAt(0)),(t==45||t==43)&&(e=(pn(1,e.length+1),e.substr(1)),--c,m=t==45)),c==0)throw ne(new Ih(cy+_+'"'));for(;e.length>0&&(pn(0,e.length),e.charCodeAt(0)==48);)e=(pn(1,e.length+1),e.substr(1)),--c;if(c>(PRt(),v6t)[10])throw ne(new Ih(cy+_+'"'));for(a=0;a0&&(I=-parseInt((Mo(0,s,e.length),e.substr(0,s)),10),e=(pn(s,e.length+1),e.substr(s)),c-=s,i=!1);c>=b;){if(s=parseInt((Mo(0,b,e.length),e.substr(0,b)),10),e=(pn(b,e.length+1),e.substr(b)),c-=b,i)i=!1;else{if(Jl(I,g)<0)throw ne(new Ih(cy+_+'"'));I=os(I,k)}I=vf(I,s)}if(Jl(I,0)>0)throw ne(new Ih(cy+_+'"'));if(!m&&(I=gg(I),Jl(I,0)<0))throw ne(new Ih(cy+_+'"'));return I}function G3e(e){nre();var t,i,s,a,c,b,g,m;if(e==null)return null;if(a=Ph(e,Qa(37)),a<0)return e;for(m=new gu((Mo(0,a,e.length),e.substr(0,a))),t=Fe(_c,P2,28,4,15,1),g=0,s=0,b=e.length;aa+2&&Yee((pn(a+1,e.length),e.charCodeAt(a+1)),SOe,EOe)&&Yee((pn(a+2,e.length),e.charCodeAt(a+2)),SOe,EOe))if(i=Syn((pn(a+1,e.length),e.charCodeAt(a+1)),(pn(a+2,e.length),e.charCodeAt(a+2))),a+=2,s>0?(i&192)==128?t[g++]=i<<24>>24:s=0:i>=128&&((i&224)==192?(t[g++]=i<<24>>24,s=2):(i&240)==224?(t[g++]=i<<24>>24,s=3):(i&248)==240&&(t[g++]=i<<24>>24,s=4)),s>0){if(g==s){switch(g){case 2:{Q0(m,((t[0]&31)<<6|t[1]&63)&Ji);break}case 3:{Q0(m,((t[0]&15)<<12|(t[1]&63)<<6|t[2]&63)&Ji);break}}g=0,s=0}}else{for(c=0;c=2){if((!e.a&&(e.a=new qe(ai,e,6,6)),e.a).i==0)i=(v1(),a=new jj,a),zn((!e.a&&(e.a=new qe(ai,e,6,6)),e.a),i);else if((!e.a&&(e.a=new qe(ai,e,6,6)),e.a).i>1)for(D=new Kk((!e.a&&(e.a=new qe(ai,e,6,6)),e.a));D.e!=D.i.gc();)D6(D);YN(t,f(Se((!e.a&&(e.a=new qe(ai,e,6,6)),e.a),0),166))}if(I)for(s=new Sn((!e.a&&(e.a=new qe(ai,e,6,6)),e.a));s.e!=s.i.gc();)for(i=f(Cn(s),166),_=new Sn((!i.a&&(i.a=new zi(Nu,i,5)),i.a));_.e!=_.i.gc();)m=f(Cn(_),377),g.a=h.Math.max(g.a,m.a),g.b=h.Math.max(g.b,m.b);for(b=new Sn((!e.n&&(e.n=new qe(Fs,e,1,7)),e.n));b.e!=b.i.gc();)c=f(Cn(b),135),k=f(Ye(c,A5),8),k&&Wu(c,k.a,k.b),I&&(g.a=h.Math.max(g.a,c.i+c.g),g.b=h.Math.max(g.b,c.j+c.f));return g}function rCt(e,t,i,s,a){var c,b,g;if(imt(e,t),b=t[0],c=Jo(i.c,0),g=-1,WSe(i))if(s>0){if(b+s>e.length)return!1;g=LH((Mo(0,b+s,e.length),e.substr(0,b+s)),t)}else g=LH(e,t);switch(c){case 71:return g=p2(e,b,se(ie(St,1),rt,2,6,[HCt,UCt]),t),a.e=g,!0;case 77:return w7n(e,t,a,g,b);case 76:return m7n(e,t,a,g,b);case 69:return c5n(e,t,b,a);case 99:return u5n(e,t,b,a);case 97:return g=p2(e,b,se(ie(St,1),rt,2,6,["AM","PM"]),t),a.b=g,!0;case 121:return y7n(e,t,b,g,i,a);case 100:return g<=0?!1:(a.c=g,!0);case 83:return g<0?!1:RAn(g,b,t[0],a);case 104:g==12&&(g=0);case 75:case 72:return g<0?!1:(a.f=g,a.g=!1,!0);case 107:return g<0?!1:(a.f=g,a.g=!0,!0);case 109:return g<0?!1:(a.j=g,!0);case 115:return g<0?!1:(a.n=g,!0);case 90:if(bDt[m]&&(X=m),I=new ee(e.a.b);I.a1;){if(a=uOn(t),I=c.g,U=f(Ye(t,w5),107),z=Ae(je(Ye(t,az))),(!t.a&&(t.a=new qe($r,t,10,11)),t.a).i>1&&Ae(je(Ye(t,(Ep(),Hae))))!=hi&&(c.c+(U.b+U.c))/(c.b+(U.d+U.a))1&&Ae(je(Ye(t,(Ep(),Wae))))!=hi&&(c.c+(U.b+U.c))/(c.b+(U.d+U.a))>z&&zr(a,(Ep(),G_),h.Math.max(Ae(je(Ye(t,g5))),Ae(je(Ye(a,G_)))-Ae(je(Ye(t,Wae))))),W=new Ywe(s,k),m=ECt(W,a,D),_=m.g,_>=I&&_==_){for(b=0;b<(!a.a&&(a.a=new qe($r,a,10,11)),a.a).i;b++)JEt(e,f(Se((!a.a&&(a.a=new qe($r,a,10,11)),a.a),b),27),f(Se((!t.a&&(t.a=new qe($r,t,10,11)),t.a),b),27));$mt(t,W),pSn(c,m.c),hSn(c,m.b)}--g}zr(t,(Ep(),_4),c.b),zr(t,iR,c.c),i.Vg()}function ojn(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge;for(t.Ug("Interactive node layering",1),i=new st,D=new ee(e.a);D.a=g){In(ge.b>0),ge.a.Xb(ge.c=--ge.b);break}else X.a>m&&(s?(eo(s.b,X.b),s.a=h.Math.max(s.a,X.a),iu(ge)):(lt(X.b,k),X.c=h.Math.min(X.c,m),X.a=h.Math.max(X.a,g),s=X));s||(s=new Qst,s.c=m,s.a=g,Dv(ge,s),lt(s.b,k))}for(b=e.b,_=0,oe=new ee(i);oe.aW&&(c&&(cs(Ze,D),cs(Dt,ot(_.b-1))),Pr=i.b,Si+=D+t,D=0,k=h.Math.max(k,i.b+i.c+Tn)),Da(g,Pr),La(g,Si),k=h.Math.max(k,Pr+Tn+i.c),D=h.Math.max(D,I),Pr+=Tn+t;if(k=h.Math.max(k,s),an=Si+D+i.a,anXh,Nt=h.Math.abs(D.b-U.b)>Xh,(!i&&Dt&&Nt||i&&(Dt||Nt))&&hr(X.a,Ce)),Do(X.a,s),s.b==0?D=Ce:D=(In(s.b!=0),f(s.c.b.c,8)),VRn(W,I,z),Tyt(a)==ct&&(Go(ct.i)!=a.a&&(z=new Io,nke(z,Go(ct.i),ge)),Xe(X,Tle,z)),CIn(W,X,ge),k.a.zc(W,k);rs(X,Ke),xo(X,ct)}for(_=k.a.ec().Kc();_.Ob();)m=f(_.Pb(),18),rs(m,null),xo(m,null);t.Vg()}function ajn(e,t){var i,s,a,c,b,g,m,_,k,I,D;for(a=f(V(e,(Il(),Ny)),88),k=a==(Xi(),Js)||a==al?gh:al,i=f(fl(Br(new Wt(null,new Vt(e.b,16)),new nYe),Cc(new K,new B,new Zt,se(ie(qs,1),Je,108,0,[(Tc(),pl)]))),15),m=f(fl(nl(i.Oc(),new yot(t)),Cc(new K,new B,new Zt,se(ie(qs,1),Je,108,0,[pl]))),15),m.Gc(f(fl(nl(i.Oc(),new vot(t)),Cc(new K,new B,new Zt,se(ie(qs,1),Je,108,0,[pl]))),16)),m.jd(new _ot(k)),D=new sg(new Sot(a)),s=new Fn,g=m.Kc();g.Ob();)b=f(g.Pb(),240),_=f(b.a,40),mt(wt(b.c))?(D.a.zc(_,(cn(),Y1))==null,new Fx(D.a.Zc(_,!1)).a.gc()>0&&xr(s,_,f(new Fx(D.a.Zc(_,!1)).a.Vc(),40)),new Fx(D.a.ad(_,!0)).a.gc()>1&&xr(s,O_t(D,_),_)):(new Fx(D.a.Zc(_,!1)).a.gc()>0&&(c=f(new Fx(D.a.Zc(_,!1)).a.Vc(),40),Oe(c)===Oe(tl(xs(s.f,_)))&&f(V(_,(ei(),hae)),15).Fc(c)),new Fx(D.a.ad(_,!0)).a.gc()>1&&(I=O_t(D,_),Oe(tl(xs(s.f,I)))===Oe(_)&&f(V(I,(ei(),hae)),15).Fc(_)),D.a.Bc(_)!=null)}function iCt(e){var t,i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce;if(e.gc()==1)return f(e.Xb(0),235);if(e.gc()<=0)return new aW;for(a=e.Kc();a.Ob();){for(i=f(a.Pb(),235),U=0,k=Nr,I=Nr,m=Qo,_=Qo,W=new ee(i.e);W.ag&&(_e=0,Ce+=b+oe,b=0),NNn(z,i,_e,Ce),t=h.Math.max(t,_e+X.a),b=h.Math.max(b,X.b),_e+=X.a+oe;return z}function cjn(e){S3e();var t,i,s,a,c,b,g,m,_,k,I,D,W,U,z,X;if(e==null||(c=yW(e),U=LCn(c),U%4!=0))return null;if(z=U/4|0,z==0)return Fe(_c,P2,28,0,15,1);for(I=null,t=0,i=0,s=0,a=0,b=0,g=0,m=0,_=0,W=0,D=0,k=0,I=Fe(_c,P2,28,z*3,15,1);W>4)<<24>>24,I[D++]=((i&15)<<4|s>>2&15)<<24>>24,I[D++]=(s<<6|a)<<24>>24}return!BO(b=c[k++])||!BO(g=c[k++])?null:(t=_h[b],i=_h[g],m=c[k++],_=c[k++],_h[m]==-1||_h[_]==-1?m==61&&_==61?i&15?null:(X=Fe(_c,P2,28,W*3+1,15,1),oa(I,0,X,0,W*3),X[D]=(t<<2|i>>4)<<24>>24,X):m!=61&&_==61?(s=_h[m],s&3?null:(X=Fe(_c,P2,28,W*3+2,15,1),oa(I,0,X,0,W*3),X[D++]=(t<<2|i>>4)<<24>>24,X[D]=((i&15)<<4|s>>2&15)<<24>>24,X)):null:(s=_h[m],a=_h[_],I[D++]=(t<<2|i>>4)<<24>>24,I[D++]=((i&15)<<4|s>>2&15)<<24>>24,I[D++]=(s<<6|a)<<24>>24,I))}function ujn(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke;for(t.Ug(YAt,1),U=f(V(e,(bt(),Ob)),223),a=new ee(e.b);a.a=2){for(z=!0,D=new ee(c.j),i=f(Z(D),12),W=null;D.a0)if(s=I.gc(),_=oo(h.Math.floor((s+1)/2))-1,a=oo(h.Math.ceil((s+1)/2))-1,t.o==ph)for(k=a;k>=_;k--)t.a[Ce.p]==Ce&&(z=f(I.Xb(k),42),U=f(z.a,10),!Rd(i,z.b)&&W>e.b.e[U.p]&&(t.a[U.p]=Ce,t.g[Ce.p]=t.g[U.p],t.a[Ce.p]=t.g[Ce.p],t.f[t.g[Ce.p].p]=(cn(),!!(mt(t.f[t.g[Ce.p].p])&Ce.k==(gn(),vo))),W=e.b.e[U.p]));else for(k=_;k<=a;k++)t.a[Ce.p]==Ce&&(oe=f(I.Xb(k),42),X=f(oe.a,10),!Rd(i,oe.b)&&W0&&(a=f(vt(X.c.a,Ze-1),10),b=e.i[a.p],Dt=h.Math.ceil(zS(e.n,a,X)),c=Ke.a.e-X.d.d-(b.a.e+a.o.b+a.d.a)-Dt),_=hi,Ze0&&ct.a.e.e-ct.a.a-(ct.b.e.e-ct.b.a)<0,U=_e.a.e.e-_e.a.a-(_e.b.e.e-_e.b.a)<0&&ct.a.e.e-ct.a.a-(ct.b.e.e-ct.b.a)>0,W=_e.a.e.e+_e.b.act.b.e.e+ct.a.a,Ce=0,!z&&!U&&(D?c+I>0?Ce=I:_-s>0&&(Ce=s):W&&(c+g>0?Ce=g:_-ge>0&&(Ce=ge))),Ke.a.e+=Ce,Ke.b&&(Ke.d.e+=Ce),!1))}function sCt(e,t,i){var s,a,c,b,g,m,_,k,I,D;if(s=new Gu(t.Lf().a,t.Lf().b,t.Mf().a,t.Mf().b),a=new Vk,e.c)for(b=new ee(t.Rf());b.a_&&(s.a+=Nft(Fe(df,zh,28,-_,15,1))),s.a+="Is",Ph(m,Qa(32))>=0)for(a=0;a=s.o.b/2}else ge=!I;ge?(oe=f(V(s,(nt(),nR)),15),oe?D?c=oe:(a=f(V(s,Y3),15),a?oe.gc()<=a.gc()?c=oe:c=a:(c=new st,Xe(s,Y3,c))):(c=new st,Xe(s,nR,c))):(a=f(V(s,(nt(),Y3)),15),a?I?c=a:(oe=f(V(s,nR),15),oe?a.gc()<=oe.gc()?c=a:c=oe:(c=new st,Xe(s,nR,c))):(c=new st,Xe(s,Y3,c))),c.Fc(e),Xe(e,(nt(),mV),i),t.d==i?(xo(t,null),i.e.c.length+i.g.c.length==0&&Sl(i,null),Axn(i)):(rs(t,null),i.e.c.length+i.g.c.length==0&&Sl(i,null)),wu(t.a)}function pjn(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ct,Dt,Nt,ln,an,Tn,Pr,Si;for(i.Ug("MinWidth layering",1),W=t.b,ct=t.a,Si=f(V(t,(bt(),W6e)),17).a,g=f(V(t,H6e),17).a,e.b=Ae(je(V(t,ud))),e.d=hi,Ce=new ee(ct);Ce.a0?(_=0,X&&(_+=g),_+=(Nt-1)*b,_e&&(_+=g),Dt&&_e&&(_=h.Math.max(_,NOn(_e,b,ge,ct))),_=e.a&&(s=JMn(e,ge),k=h.Math.max(k,s.b),Ce=h.Math.max(Ce,s.d),lt(g,new io(ge,s)));for(Dt=new st,_=0;_0),X.a.Xb(X.c=--X.b),Nt=new ca(e.b),Dv(X,Nt),In(X.b0){for(D=k<100?null:new y1(k),_=new kSe(t),U=_.g,oe=Fe(Xn,wr,28,k,15,1),s=0,Ce=new Um(k),a=0;a=0;)if(W!=null?Lr(W,U[m]):Oe(W)===Oe(U[m])){oe.length<=s&&(X=oe,oe=Fe(Xn,wr,28,2*oe.length,15,1),oa(X,0,oe,0,s)),oe[s++]=a,zn(Ce,U[m]);break e}if(W=W,Oe(W)===Oe(g))break}}if(_=Ce,U=Ce.g,k=s,s>oe.length&&(X=oe,oe=Fe(Xn,wr,28,s,15,1),oa(X,0,oe,0,s)),s>0){for(_e=!0,c=0;c=0;)E3(e,oe[b]);if(s!=k){for(a=k;--a>=s;)E3(_,a);X=oe,oe=Fe(Xn,wr,28,s,15,1),oa(X,0,oe,0,s)}t=_}}}else for(t=ITn(e,t),a=e.i;--a>=0;)t.Hc(e.g[a])&&(E3(e,a),_e=!0);if(_e){if(oe!=null){for(i=t.gc(),I=i==1?e6(e,4,t.Kc().Pb(),null,oe[0],z):e6(e,6,t,oe,oe[0],z),D=i<100?null:new y1(i),a=t.Kc();a.Ob();)W=a.Pb(),D=hye(e,f(W,76),D);D?(D.nj(I),D.oj()):Dr(e.e,I)}else{for(D=L0n(t.gc()),a=t.Kc();a.Ob();)W=a.Pb(),D=hye(e,f(W,76),D);D&&D.oj()}return!0}else return!1}function wjn(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e;for(i=new RSt(t),i.a||VNn(t),_=U7n(t),m=new Fm,X=new C3t,z=new ee(t.a);z.a0||i.o==ph&&a=i}function yjn(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ct,Dt,Nt,ln,an,Tn;for(_e=t,ge=new Fm,Ce=new Fm,k=Hm(_e,dAe),s=new Nbt(e,i,ge,Ce),FIn(s.a,s.b,s.c,s.d,k),m=(ct=ge.i,ct||(ge.i=new XS(ge,ge.c))),Nt=m.Kc();Nt.Ob();)for(Dt=f(Nt.Pb(),166),a=f(Hr(ge,Dt),21),z=a.Kc();z.Ob();)if(U=z.Pb(),Ke=f(r2(e.d,U),166),Ke)g=(!Dt.e&&(Dt.e=new en(ai,Dt,10,9)),Dt.e),zn(g,Ke);else throw b=db(_e,Zh),D=kTt+U+RTt+b,W=D+GA,ne(new $h(W));for(_=(Ze=Ce.i,Ze||(Ce.i=new XS(Ce,Ce.c))),an=_.Kc();an.Ob();)for(ln=f(an.Pb(),166),c=f(Hr(Ce,ln),21),oe=c.Kc();oe.Ob();)if(X=oe.Pb(),Ke=f(r2(e.d,X),166),Ke)I=(!ln.g&&(ln.g=new en(ai,ln,9,10)),ln.g),zn(I,Ke);else throw b=db(_e,Zh),D=kTt+X+RTt+b,W=D+GA,ne(new $h(W));!i.b&&(i.b=new en(Dn,i,4,7)),i.b.i!=0&&(!i.c&&(i.c=new en(Dn,i,5,8)),i.c.i!=0)&&(!i.b&&(i.b=new en(Dn,i,4,7)),i.b.i<=1&&(!i.c&&(i.c=new en(Dn,i,5,8)),i.c.i<=1))&&(!i.a&&(i.a=new qe(ai,i,6,6)),i.a).i==1&&(Tn=f(Se((!i.a&&(i.a=new qe(ai,i,6,6)),i.a),0),166),!Bte(Tn)&&!Wte(Tn)&&(NW(Tn,f(Se((!i.b&&(i.b=new en(Dn,i,4,7)),i.b),0),84)),MW(Tn,f(Se((!i.c&&(i.c=new en(Dn,i,5,8)),i.c),0),84))))}function vjn(e){var t,i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ct,Dt,Nt,ln;for(_e=e.a,Ce=0,Ke=_e.length;Ce0?(I=f(vt(D.c.a,b-1),10),Dt=zS(e.b,D,I),X=D.n.b-D.d.d-(I.n.b+I.o.b+I.d.a+Dt)):X=D.n.b-D.d.d,_=h.Math.min(X,_),b1&&(b=h.Math.min(b,h.Math.abs(f(tf(g.a,1),8).b-k.b)))));else for(z=new ee(t.j);z.aa&&(c=D.a-a,b=Nr,s.c.length=0,a=D.a),D.a>=a&&(sn(s.c,g),g.a.b>1&&(b=h.Math.min(b,h.Math.abs(f(tf(g.a,g.a.b-2),8).b-D.b)))));if(s.c.length!=0&&c>t.o.a/2&&b>t.o.b/2){for(W=new ia,Sl(W,t),so(W,(ut(),bn)),W.n.a=t.o.a/2,oe=new ia,Sl(oe,t),so(oe,jn),oe.n.a=t.o.a/2,oe.n.b=t.o.b,m=new ee(s);m.a=_.b?rs(g,oe):rs(g,W)):(_=f(fyn(g.a),8),X=g.a.b==0?Yd(g.c):f(Jf(g.a),8),X.b>=_.b?xo(g,oe):xo(g,W)),I=f(V(g,(bt(),Xs)),75),I&&e_(I,_,!0);t.n.a=a-t.o.a/2}}function Sjn(e,t,i){var s,a,c,b,g,m,_,k,I,D;for(g=Hn(e.b,0);g.b!=g.d.c;)if(b=f(Bn(g),40),!Ht(b.c,zU))for(_=K8n(b,e),t==(Xi(),Js)||t==al?Hi(_,new CYe):Hi(_,new AYe),m=_.c.length,s=0;s=0?W=y3(g):W=SN(y3(g)),e.qf(d4,W)),_=new Io,D=!1,e.pf(Ty)?(Lme(_,f(e.of(Ty),8)),D=!0):P1n(_,b.a/2,b.b/2),W.g){case 4:Xe(k,Ha,(ef(),n0)),Xe(k,vV,(uw(),H2)),k.o.b=b.b,z<0&&(k.o.a=-z),so(I,(ut(),_n)),D||(_.a=b.a),_.a-=b.a;break;case 2:Xe(k,Ha,(ef(),O_)),Xe(k,vV,(uw(),o4)),k.o.b=b.b,z<0&&(k.o.a=-z),so(I,(ut(),wn)),D||(_.a=0);break;case 1:Xe(k,Iw,(wb(),G2)),k.o.a=b.a,z<0&&(k.o.b=-z),so(I,(ut(),jn)),D||(_.b=b.b),_.b-=b.b;break;case 3:Xe(k,Iw,(wb(),J3)),k.o.a=b.a,z<0&&(k.o.b=-z),so(I,(ut(),bn)),D||(_.b=0)}if(Lme(I.n,_),Xe(k,Ty,_),t==Gw||t==jp||t==ya){if(U=0,t==Gw&&e.pf(Mg))switch(W.g){case 1:case 2:U=f(e.of(Mg),17).a;break;case 3:case 4:U=-f(e.of(Mg),17).a}else switch(W.g){case 4:case 2:U=c.b,t==jp&&(U/=a.b);break;case 1:case 3:U=c.a,t==jp&&(U/=a.a)}Xe(k,ky,U)}return Xe(k,Dl,W),k}function Ejn(){awe();function e(s){var a=this;this.dispatch=function(c){var b=c.data;switch(b.cmd){case"algorithms":var g=T2e((Kt(),new jx(new ob(h0.b))));s.postMessage({id:b.id,data:g});break;case"categories":var m=T2e((Kt(),new jx(new ob(h0.c))));s.postMessage({id:b.id,data:m});break;case"options":var _=T2e((Kt(),new jx(new ob(h0.d))));s.postMessage({id:b.id,data:_});break;case"register":xDn(b.algorithms),s.postMessage({id:b.id});break;case"layout":t9n(b.graph,b.layoutOptions||{},b.options||{}),s.postMessage({id:b.id,data:b.graph});break}},this.saveDispatch=function(c){try{a.dispatch(c)}catch(b){s.postMessage({id:c.data.id,error:b})}}}function t(s){var a=this;this.dispatcher=new e({postMessage:function(c){a.onmessage({data:c})}}),this.postMessage=function(c){setTimeout(function(){a.dispatcher.saveDispatch({data:c})},0)}}if(typeof document===qre&&typeof self!==qre){var i=new e(self);self.onmessage=i.saveDispatch}else typeof l!==qre&&l.exports&&(Object.defineProperty(u,"__esModule",{value:!0}),l.exports={default:t,Worker:t})}function dCt(e,t,i){var s,a,c,b,g,m,_,k,I,D;for(k=new kb(i),ol(k,t),Xe(k,(nt(),Ur),t),k.o.a=t.g,k.o.b=t.f,k.n.a=t.i,k.n.b=t.j,lt(i.a,k),xr(e.a,t,k),((!t.a&&(t.a=new qe($r,t,10,11)),t.a).i!=0||mt(wt(Ye(t,(bt(),D_)))))&&Xe(k,L$e,(cn(),!0)),_=f(V(i,ma),21),I=f(V(k,(bt(),Oi)),101),I==(Co(),u0)?Xe(k,Oi,mh):I!=mh&&_.Fc((As(),a4)),D=0,s=f(V(i,$u),88),m=new Sn((!t.c&&(t.c=new qe(Mc,t,9,9)),t.c));m.e!=m.i.gc();)g=f(Cn(m),123),a=di(t),(Oe(Ye(a,Np))!==Oe((Wh(),Dg))||Oe(Ye(a,Ow))===Oe((Eg(),i4))||Oe(Ye(a,Ow))===Oe((Eg(),r4))||mt(wt(Ye(a,xy)))||Oe(Ye(a,N_))!==Oe((hw(),A_))||Oe(Ye(a,r0))===Oe((Sf(),Py))||Oe(Ye(a,r0))===Oe((Sf(),W_))||Oe(Ye(a,Mw))===Oe((Ag(),g4))||Oe(Ye(a,Mw))===Oe((Ag(),w4)))&&!mt(wt(Ye(t,CV)))&&zr(g,Yr,ot(D++)),mt(wt(Ye(g,Lw)))||OLn(e,g,k,_,s,I);for(b=new Sn((!t.n&&(t.n=new qe(Fs,t,1,7)),t.n));b.e!=b.i.gc();)c=f(Cn(b),135),!mt(wt(Ye(c,Lw)))&&c.a&<(k.b,hte(c));return mt(wt(V(k,JI)))&&_.Fc((As(),bV)),mt(wt(V(k,IV)))&&(_.Fc((As(),gV)),_.Fc(GI),Xe(k,Oi,mh)),k}function cre(e,t,i,s,a,c,b){var g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ct,Dt,Nt,ln,an,Tn,Pr,Si;for(z=0,ln=0,_=new ee(e.b);_.a<_.c.c.length;)m=f(Z(_),163),m.c&&Wxt(m.c),z=h.Math.max(z,dc(m)),ln+=dc(m)*ru(m);for(X=ln/e.b.c.length,Nt=k$n(e.b,X),ln+=e.b.c.length*Nt,z=h.Math.max(z,h.Math.sqrt(ln*b))+i.b,Pr=i.b,Si=i.d,W=0,I=i.b+i.c,Dt=new li,hr(Dt,ot(0)),Ze=new li,k=new No(e.b,0),U=null,g=new st;k.bz&&(c&&(cs(Ze,W),cs(Dt,ot(k.b-1)),lt(e.d,U),g.c.length=0),Pr=i.b,Si+=W+t,W=0,I=h.Math.max(I,i.b+i.c+Tn)),sn(g.c,m),wSt(m,Pr,Si),I=h.Math.max(I,Pr+Tn+i.c),W=h.Math.max(W,D),Pr+=Tn+t,U=m;if(eo(e.a,g),lt(e.d,f(vt(g,g.c.length-1),163)),I=h.Math.max(I,s),an=Si+W+i.a,ana.d.d+a.d.a?k.f.d=!0:(k.f.d=!0,k.f.a=!0))),s.b!=s.d.c&&(t=i);k&&(c=f(En(e.f,b.d.i),60),t.bc.d.d+c.d.a?k.f.d=!0:(k.f.d=!0,k.f.a=!0))}for(g=new kn(xn(go(W).a.Kc(),new O));Un(g);)b=f(On(g),18),b.a.b!=0&&(t=f(Jf(b.a),8),b.d.j==(ut(),bn)&&(X=new J6(t,new tt(t.a,a.d.d),a,b),X.f.a=!0,X.a=b.d,sn(z.c,X)),b.d.j==jn&&(X=new J6(t,new tt(t.a,a.d.d+a.d.a),a,b),X.f.d=!0,X.a=b.d,sn(z.c,X)))}return z}function Tjn(e,t,i){var s,a,c,b,g,m,_,k,I,D;for(m=new st,I=t.length,b=BSe(i),_=0;_=U&&(ge>U&&(W.c.length=0,U=ge),sn(W.c,b));W.c.length!=0&&(D=f(vt(W,_H(t,W.c.length)),131),an.a.Bc(D)!=null,D.s=z++,jke(D,Nt,Ze),W.c.length=0)}for(Ce=e.c.length+1,g=new ee(e);g.aln.s&&(iu(i),Ja(ln.i,s),s.c>0&&(s.a=ln,lt(ln.t,s),s.b=ct,lt(ct.i,s)))}function hCt(e,t,i,s,a){var c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ct,Dt,Nt,ln,an;for(z=new ka(t.b),Ce=new ka(t.b),D=new ka(t.b),Dt=new ka(t.b),X=new ka(t.b),ct=Hn(t,0);ct.b!=ct.d.c;)for(Ke=f(Bn(ct),12),g=new ee(Ke.g);g.a0,oe=Ke.g.c.length>0,_&&oe?sn(D.c,Ke):_?sn(z.c,Ke):oe&&sn(Ce.c,Ke);for(U=new ee(z);U.age.nh()-_.b&&(D=ge.nh()-_.b),W>ge.oh()-_.d&&(W=ge.oh()-_.d),k0){for(_e=Hn(e.f,0);_e.b!=_e.d.c;)ge=f(Bn(_e),10),ge.p+=D-e.e;rke(e),wu(e.f),Qke(e,s,W)}else{for(hr(e.f,W),W.p=s,e.e=h.Math.max(e.e,s),c=new kn(xn(go(W).a.Kc(),new O));Un(c);)a=f(On(c),18),!a.c.i.c&&a.c.i.k==(gn(),ea)&&(hr(e.f,a.c.i),a.c.i.p=s-1);e.c=s}else rke(e),wu(e.f),s=0,Un(new kn(xn(go(W).a.Kc(),new O)))?(D=0,D=SSt(D,W),s=D+2,Qke(e,s,W)):(hr(e.f,W),W.p=0,e.e=h.Math.max(e.e,0),e.b=f(vt(e.d.b,0),30),e.c=0);for(e.f.b==0||rke(e),e.d.a.c.length=0,oe=new st,_=new ee(e.d.b);_.a<_.c.c.length;)g=f(Z(_),30),g.a.c.length==0&&sn(oe.c,g);for(p2e(e.d.b,oe),I=0,m=new ee(e.d.b);m.a=48&&t<=57){for(s=t-48;a=48&&t<=57;)if(s=s*10+t-48,s<0)throw ne(new ar(dr((ir(),RAe))))}else throw ne(new ar(dr((ir(),YTt))));if(i=s,t==44){if(a>=e.j)throw ne(new ar(dr((ir(),ZTt))));if((t=Jo(e.i,a++))>=48&&t<=57){for(i=t-48;a=48&&t<=57;)if(i=i*10+t-48,i<0)throw ne(new ar(dr((ir(),RAe))));if(s>i)throw ne(new ar(dr((ir(),e$t))))}else i=-1}if(t!=125)throw ne(new ar(dr((ir(),QTt))));e.bm(a)?(c=(Or(),Or(),new Gv(9,c)),e.d=a+1):(c=(Or(),Or(),new Gv(3,c)),e.d=a),c.Om(s),c.Nm(i),Ir(e)}}return c}function Mjn(e){var t,i,s,a,c;switch(i=f(V(e,(nt(),ma)),21),t=qF(S5t),a=f(V(e,(bt(),M_)),346),a==(vb(),Wg)&&Eu(t,E5t),mt(wt(V(e,jle)))?gr(t,(Yo(),cd),(ss(),Kse)):gr(t,(Yo(),sa),(ss(),Kse)),V(e,(dW(),_5))!=null&&Eu(t,k5t),(mt(wt(V(e,j6e)))||mt(wt(V(e,N6e))))&&hc(t,(Yo(),ll),(ss(),OTe)),f(V(e,$u),88).g){case 2:case 3:case 4:hc(gr(t,(Yo(),cd),(ss(),MTe)),ll,NTe)}switch(i.Hc((As(),bV))&&hc(gr(gr(t,(Yo(),cd),(ss(),PTe)),ga,$Te),ll,ITe),Oe(V(e,r0))!==Oe((Sf(),UV))&&gr(t,(Yo(),sa),(ss(),JTe)),i.Hc(wV)&&(gr(t,(Yo(),cd),(ss(),e$e)),gr(t,Pp,QTe),gr(t,sa,ZTe)),Oe(V(e,RV))!==Oe((cA(),UI))&&Oe(V(e,Ob))!==Oe((_b(),D9))&&hc(t,(Yo(),ll),(ss(),GTe)),mt(wt(V(e,D6e)))&&gr(t,(Yo(),sa),(ss(),UTe)),mt(wt(V(e,Nle)))&&gr(t,(Yo(),sa),(ss(),t$e)),qPn(e)&&(Oe(V(e,M_))===Oe(Wg)?s=f(V(e,a9),299):s=f(V(e,Ole),299),c=s==(BC(),mle)?(ss(),YTe):(ss(),i$e),gr(t,(Yo(),ga),c)),f(V(e,uIe),388).g){case 1:gr(t,(Yo(),ga),(ss(),n$e));break;case 2:hc(gr(gr(t,(Yo(),sa),(ss(),xTe)),ga,CTe),ll,ATe)}return Oe(V(e,Np))!==Oe((Wh(),Dg))&&gr(t,(Yo(),sa),(ss(),r$e)),t}function wCt(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e;if(Na(e.a,t)){if(Rd(f(En(e.a,t),49),i))return 1}else xr(e.a,t,new Gi);if(Na(e.a,i)){if(Rd(f(En(e.a,i),49),t))return-1}else xr(e.a,i,new Gi);if(Na(e.e,t)){if(Rd(f(En(e.e,t),49),i))return-1}else xr(e.e,t,new Gi);if(Na(e.e,i)){if(Rd(f(En(e.a,i),49),t))return 1}else xr(e.e,i,new Gi);if(e.c==(Wh(),eae)||!ri(t,(nt(),Yr))||!ri(i,(nt(),Yr))){for(I=null,_=new ee(t.j);_.a<_.c.c.length;)g=f(Z(_),12),g.e.c.length==0||f(vt(g.e,0),18).c.i.c!=t.c&&(I=f(vt(g.e,0),18).c);for(W=null,m=new ee(i.j);m.ab?gA(e,t,i):gA(e,i,t),ab?1:0}return s=f(V(t,(nt(),Yr)),17).a,c=f(V(i,Yr),17).a,s>c?gA(e,t,i):gA(e,i,t),sc?1:0}function ly(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X;if(i==null)return null;if(e.a!=t.jk())throw ne(new hn(HA+t.xe()+by));if(ve(t,469)){if(X=x7n(f(t,685),i),!X)throw ne(new hn(_oe+i+"' is not a valid enumerator of '"+t.xe()+"'"));return X}switch(vg((gc(),qo),t).Nl()){case 2:{i=ha(i,!1);break}case 3:{i=ha(i,!0);break}}if(s=vg(qo,t).Jl(),s)return s.jk().wi().ti(s,i);if(D=vg(qo,t).Ll(),D){for(X=new st,_=ite(i),k=0,I=_.length;k1)for(U=new Kk((!e.a&&(e.a=new qe(ai,e,6,6)),e.a));U.e!=U.i.gc();)D6(U);for(b=f(Se((!e.a&&(e.a=new qe(ai,e,6,6)),e.a),0),166),X=Pr,Pr>Ke+Ce?X=Ke+Ce:PrZe+z?oe=Ze+z:SiKe-Ce&&XZe-z&&oePr+Tn?Dt=Pr+Tn:KeSi+ct?Nt=Si+ct:ZePr-Tn&&DtSi-ct&&Nti&&(D=i-1),W=qg+Uc(t,24)*pM*I-I/2,W<0?W=1:W>s&&(W=s-1),a=(v1(),m=new Lj,m),AW(a,D),CW(a,W),zn((!b.a&&(b.a=new zi(Nu,b,5)),b.a),a)}function mCt(e){ym(e,new gw(gm(hm(bm(pm(new F0,zc),"ELK Rectangle Packing"),"Algorithm for packing of unconnected boxes, i.e. graphs without edges. The given order of the boxes is always preserved and the main reading direction of the boxes is left to right. The algorithm is divided into two phases. One phase approximates the width in which the rectangles can be placed. The next phase places the rectangles in rows using the previously calculated width as bounding width and bundles rectangles with a similar height in blocks. A compaction step reduces the size of the drawing. Finally, the rectangles are expanded to fill their bounding box and eliminate empty unused spaces."),new sQe))),it(e,zc,j3,1.3),it(e,zc,OA,(cn(),!1)),it(e,zc,uy,i8e),it(e,zc,m_,15),it(e,zc,WU,ht(MMt)),it(e,zc,A2,ht(jMt)),it(e,zc,B3,ht(BMt)),it(e,zc,F3,ht(WMt)),it(e,zc,NA,ht(LMt)),it(e,zc,fI,ht(Gae)),it(e,zc,MA,ht(HMt)),it(e,zc,FCe,ht(a8e)),it(e,zc,BCe,ht(l8e)),it(e,zc,jCe,ht(zae)),it(e,zc,LCe,ht(c8e)),it(e,zc,WCe,ht(r8e)),it(e,zc,HCe,ht(Vae)),it(e,zc,UCe,ht(n8e)),it(e,zc,GCe,ht(s8e)),it(e,zc,uI,ht(t8e)),it(e,zc,UU,ht(DMt)),it(e,zc,MCe,ht(E9)),it(e,zc,NCe,ht(e8e)),it(e,zc,DCe,ht(k9)),it(e,zc,OCe,ht(o8e))}function fre(e,t){Jne();var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ct;if(_e=e.e,k=e.d,a=e.a,_e==0)switch(t){case 0:return"0";case 1:return CA;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return oe=new m1,oe.a+="0E",oe.a+=-t,oe.a}if(z=k*10+1+7,X=Fe(df,zh,28,z+1,15,1),i=z,k==1)if(c=a[0],c<0){ct=fo(c,Ts);do I=ct,ct=ON(ct,10),X[--i]=48+tr(vf(I,os(ct,10)))&Ji;while(Jl(ct,0)!=0)}else{ct=c;do I=ct,ct=ct/10|0,X[--i]=48+(I-ct*10)&Ji;while(ct!=0)}else{Ce=Fe(Xn,wr,28,k,15,1),Ze=k,oa(a,0,Ce,0,Ze);e:for(;;){for(ge=0,g=Ze-1;g>=0;g--)Ke=is(Zf(ge,32),fo(Ce[g],Ts)),W=k6n(Ke),Ce[g]=tr(W),ge=tr($m(W,32));U=tr(ge),D=i;do X[--i]=48+U%10&Ji;while((U=U/10|0)!=0&&i!=0);for(s=9-D+i,b=0;b0;b++)X[--i]=48;for(m=Ze-1;Ce[m]==0;m--)if(m==0)break e;Ze=m+1}for(;X[i]==48;)++i}return _=_e<0,_&&(X[--i]=45),Bh(X,i,z-i)}function yCt(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze;switch(e.c=t,e.g=new Fn,i=(vm(),new dm(e.c)),s=new zj(i),x2e(s),_e=or(Ye(e.c,(MN(),A8e))),m=f(Ye(e.c,nce),324),Ke=f(Ye(e.c,rce),437),b=f(Ye(e.c,R8e),490),Ce=f(Ye(e.c,tce),438),e.j=Ae(je(Ye(e.c,n9t))),g=e.a,m.g){case 0:g=e.a;break;case 1:g=e.b;break;case 2:g=e.i;break;case 3:g=e.e;break;case 4:g=e.f;break;default:throw ne(new hn(QU+(m.f!=null?m.f:""+m.g)))}if(e.d=new dgt(g,Ke,b),Xe(e.d,(LC(),jI),wt(Ye(e.c,e9t))),e.d.c=mt(wt(Ye(e.c,x8e))),UB(e.c).i==0)return e.d;for(I=new Sn(UB(e.c));I.e!=I.i.gc();){for(k=f(Cn(I),27),W=k.g/2,D=k.f/2,Ze=new tt(k.i+W,k.j+D);Na(e.g,Ze);)Cm(Ze,(h.Math.random()-.5)*Xh,(h.Math.random()-.5)*Xh);z=f(Ye(k,(Er(),E4)),140),X=new xgt(Ze,new Gu(Ze.a-W-e.j/2-z.b,Ze.b-D-e.j/2-z.d,k.g+e.j+(z.b+z.c),k.f+e.j+(z.d+z.a))),lt(e.d.i,X),xr(e.g,Ze,new io(X,k))}switch(Ce.g){case 0:if(_e==null)e.d.d=f(vt(e.d.i,0),68);else for(ge=new ee(e.d.i);ge.a0?Tn+1:1);for(b=new ee(Ze.g);b.a0?Tn+1:1)}e.c[_]==0?hr(e.e,z):e.a[_]==0&&hr(e.f,z),++_}for(U=-1,W=1,I=new st,e.d=f(V(t,(nt(),tR)),234);Mu>0;){for(;e.e.b!=0;)Si=f(nZ(e.e),10),e.b[Si.p]=U--,b3e(e,Si),--Mu;for(;e.f.b!=0;)Dc=f(nZ(e.f),10),e.b[Dc.p]=W++,b3e(e,Dc),--Mu;if(Mu>0){for(D=Qo,ge=new ee(_e);ge.a=D&&(Ce>D&&(I.c.length=0,D=Ce),sn(I.c,z)));k=e.sg(I),e.b[k.p]=W++,b3e(e,k),--Mu}}for(Pr=_e.c.length+1,_=0;_<_e.c.length;_++)e.b[_]<0&&(e.b[_]+=Pr);for(X=new ee(_e);X.ae.b[Ys]&&(oy(s,!0),Xe(t,i9,(cn(),!0)));e.a=null,e.c=null,e.b=null,wu(e.f),wu(e.e),i.Vg()}function vCt(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze;for(Ke=f(Se((!e.a&&(e.a=new qe(ai,e,6,6)),e.a),0),166),k=new cc,Ce=new Fn,Ze=TRt(Ke),Ca(Ce.f,Ke,Ze),D=new Fn,s=new li,U=wp(_u(se(ie(Tu,1),on,20,0,[(!t.d&&(t.d=new en(Fi,t,8,5)),t.d),(!t.e&&(t.e=new en(Fi,t,7,4)),t.e)])));Un(U);){if(W=f(On(U),74),(!e.a&&(e.a=new qe(ai,e,6,6)),e.a).i!=1)throw ne(new hn(sTt+(!e.a&&(e.a=new qe(ai,e,6,6)),e.a).i));W!=e&&(X=f(Se((!W.a&&(W.a=new qe(ai,W,6,6)),W.a),0),166),Ai(s,X,s.c.b,s.c),z=f(tl(xs(Ce.f,X)),13),z||(z=TRt(X),Ca(Ce.f,X,z)),I=i?uo(new us(f(vt(Ze,Ze.c.length-1),8)),f(vt(z,z.c.length-1),8)):uo(new us((qt(0,Ze.c.length),f(Ze.c[0],8))),(qt(0,z.c.length),f(z.c[0],8))),Ca(D.f,X,I))}if(s.b!=0)for(oe=f(vt(Ze,i?Ze.c.length-1:0),8),_=1;_1&&Ai(k,oe,k.c.b,k.c),Tee(a)));oe=ge}return k}function _Ct(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ct,Dt,Nt,ln;for(i.Ug(_4t,1),ln=f(fl(Br(new Wt(null,new Vt(t,16)),new MYe),Cc(new K,new B,new Zt,se(ie(qs,1),Je,108,0,[(Tc(),pl)]))),15),k=f(fl(Br(new Wt(null,new Vt(t,16)),new kot(t)),Cc(new K,new B,new Zt,se(ie(qs,1),Je,108,0,[pl]))),15),U=f(fl(Br(new Wt(null,new Vt(t,16)),new Eot(t)),Cc(new K,new B,new Zt,se(ie(qs,1),Je,108,0,[pl]))),15),z=Fe(JV,KU,40,t.gc(),0,1),b=0;b=0&&Nt=0&&!z[W]){z[W]=a,k.gd(g),--g;break}if(W=Nt-D,W=0&&!z[W]){z[W]=a,k.gd(g),--g;break}}for(U.jd(new DYe),m=z.length-1;m>=0;m--)!z[m]&&!U.dc()&&(z[m]=f(U.Xb(0),40),U.gd(0));for(_=0;_=0;m--)hr(i,(qt(m,b.c.length),f(b.c[m],8)));return i}function ECt(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce;for(_e=Ae(je(Ye(t,(Ep(),G_)))),W=Ae(je(Ye(t,g5))),D=Ae(je(Ye(t,sz))),mSe((!t.a&&(t.a=new qe($r,t,10,11)),t.a)),oe=hxt((!t.a&&(t.a=new qe($r,t,10,11)),t.a),_e,e.b),X=0;XD&&IN((qt(D,t.c.length),f(t.c[D],186)),k),k=null;t.c.length>D&&(qt(D,t.c.length),f(t.c[D],186)).a.c.length==0;)Ja(t,(qt(D,t.c.length),t.c[D]));if(!k){--b;continue}if(!mt(wt(f(vt(k.b,0),27).of((sh(),k9))))&&iMn(t,U,c,k,X,i,D,s)){z=!0;continue}if(X){if(W=U.b,I=k.f,!mt(wt(f(vt(k.b,0),27).of(k9)))&&EDn(t,U,c,k,i,D,s,a)){if(z=!0,W=e.j){e.a=-1,e.c=1;return}if(t=Jo(e.i,e.d++),e.a=t,e.b==1){switch(t){case 92:if(s=10,e.d>=e.j)throw ne(new ar(dr((ir(),oG))));e.a=Jo(e.i,e.d++);break;case 45:(e.e&512)==512&&e.d=e.j||Jo(e.i,e.d)!=63)break;if(++e.d>=e.j)throw ne(new ar(dr((ir(),Noe))));switch(t=Jo(e.i,e.d++),t){case 58:s=13;break;case 61:s=14;break;case 33:s=15;break;case 91:s=19;break;case 62:s=18;break;case 60:if(e.d>=e.j)throw ne(new ar(dr((ir(),Noe))));if(t=Jo(e.i,e.d++),t==61)s=16;else if(t==33)s=17;else throw ne(new ar(dr((ir(),OTt))));break;case 35:for(;e.d=e.j)throw ne(new ar(dr((ir(),oG))));e.a=Jo(e.i,e.d++);break;default:s=0}e.c=s}function Vjn(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X;if(i.Ug("Process compaction",1),!!mt(wt(V(t,(Il(),c5e))))){for(a=f(V(t,Ny),88),W=Ae(je(V(t,_ae))),m9n(e,t,a),ajn(t,W/2/2),U=t.b,sw(U,new got(a)),_=Hn(U,0);_.b!=_.d.c;)if(m=f(Bn(_),40),!mt(wt(V(m,(ei(),s0))))){if(s=G7n(m,a),z=FMn(m,t),I=0,D=0,s)switch(X=s.e,a.g){case 2:I=X.a-W-m.f.a,z.e.a-W-m.f.aI&&(I=z.e.a+z.f.a+W),D=I+m.f.a;break;case 4:I=X.b-W-m.f.b,z.e.b-W-m.f.bI&&(I=z.e.b+z.f.b+W),D=I+m.f.b}else if(z)switch(a.g){case 2:I=z.e.a-W-m.f.a,D=I+m.f.a;break;case 1:I=z.e.a+z.f.a+W,D=I+m.f.a;break;case 4:I=z.e.b-W-m.f.b,D=I+m.f.b;break;case 3:I=z.e.b+z.f.b+W,D=I+m.f.b}Oe(V(t,vae))===Oe((m6(),w9))?(c=I,b=D,g=GC(Br(new Wt(null,new Vt(e.a,16)),new out(c,b))),g.a!=null?a==(Xi(),Js)||a==al?m.e.a=I:m.e.b=I:(a==(Xi(),Js)||a==cf?g=GC(Br(Mmt(new Wt(null,new Vt(e.a,16))),new wot(c))):g=GC(Br(Mmt(new Wt(null,new Vt(e.a,16))),new mot(c))),g.a!=null&&(a==Js||a==al?m.e.a=Ae(je((In(g.a!=null),f(g.a,42)).a)):m.e.b=Ae(je((In(g.a!=null),f(g.a,42)).a)))),g.a!=null&&(k=il(e.a,(In(g.a!=null),g.a),0),k>0&&k!=f(V(m,ip),17).a&&(Xe(m,t5e,(cn(),!0)),Xe(m,ip,ot(k))))):a==(Xi(),Js)||a==al?m.e.a=I:m.e.b=I}i.Vg()}}function kCt(e){var t,i,s,a,c,b,g,m,_;for(e.b=1,Ir(e),t=null,e.c==0&&e.a==94?(Ir(e),t=(Or(),Or(),new yu(4)),da(t,0,zA),g=new yu(4)):g=(Or(),Or(),new yu(4)),a=!0;(_=e.c)!=1;){if(_==0&&e.a==93&&!a){t&&(tI(t,g),g=t);break}if(i=e.a,s=!1,_==10)switch(i){case 100:case 68:case 119:case 87:case 115:case 83:h_(g,wA(i)),s=!0;break;case 105:case 73:case 99:case 67:i=(h_(g,wA(i)),-1),i<0&&(s=!0);break;case 112:case 80:if(m=yke(e,i),!m)throw ne(new ar(dr((ir(),Moe))));h_(g,m),s=!0;break;default:i=e3e(e)}else if(_==24&&!a){if(t&&(tI(t,g),g=t),c=kCt(e),tI(g,c),e.c!=0||e.a!=93)throw ne(new ar(dr((ir(),UTt))));break}if(Ir(e),!s){if(_==0){if(i==91)throw ne(new ar(dr((ir(),EAe))));if(i==93)throw ne(new ar(dr((ir(),kAe))));if(i==45&&!a&&e.a!=93)throw ne(new ar(dr((ir(),Doe))))}if(e.c!=0||e.a!=45||i==45&&a)da(g,i,i);else{if(Ir(e),(_=e.c)==1)throw ne(new ar(dr((ir(),sG))));if(_==0&&e.a==93)da(g,i,i),da(g,45,45);else{if(_==0&&e.a==93||_==24)throw ne(new ar(dr((ir(),Doe))));if(b=e.a,_==0){if(b==91)throw ne(new ar(dr((ir(),EAe))));if(b==93)throw ne(new ar(dr((ir(),kAe))));if(b==45)throw ne(new ar(dr((ir(),Doe))))}else _==10&&(b=e3e(e));if(Ir(e),i>b)throw ne(new ar(dr((ir(),zTt))));da(g,i,b)}}}a=!1}if(e.c==1)throw ne(new ar(dr((ir(),sG))));return b2(g),Z6(g),e.b=0,Ir(e),g}function zjn(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke;if(i.Ug("Coffman-Graham Layering",1),t.a.c.length==0){i.Vg();return}for(Ke=f(V(t,(bt(),B6e)),17).a,m=0,b=0,D=new ee(t.a);D.a=Ke||!BAn(oe,s))&&(s=Sbt(t,k)),Oo(oe,s),c=new kn(xn(go(oe).a.Kc(),new O));Un(c);)a=f(On(c),18),!e.a[a.p]&&(z=a.c.i,--e.e[z.p],e.e[z.p]==0&&Qk(aA(W,z),AA));for(_=k.c.length-1;_>=0;--_)lt(t.b,(qt(_,k.c.length),f(k.c[_],30)));t.a.c.length=0,i.Vg()}function RCt(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce;Ce=!1;do for(Ce=!1,c=t?new H0(e.a.b).a.gc()-2:1;t?c>=0:cf(V(X,Yr),17).a)&&(_e=!1);if(_e){for(m=t?c+1:c-1,g=o_e(e.a,ot(m)),b=!1,ge=!0,s=!1,k=Hn(g,0);k.b!=k.d.c;)_=f(Bn(k),10),ri(_,Yr)?_.p!=I.p&&(b=b|(t?f(V(_,Yr),17).af(V(I,Yr),17).a),ge=!1):!b&&ge&&_.k==(gn(),ea)&&(s=!0,t?D=f(On(new kn(xn(go(_).a.Kc(),new O))),18).c.i:D=f(On(new kn(xn(Wi(_).a.Kc(),new O))),18).d.i,D==I&&(t?i=f(On(new kn(xn(Wi(_).a.Kc(),new O))),18).d.i:i=f(On(new kn(xn(go(_).a.Kc(),new O))),18).c.i,(t?f(Ov(e.a,i),17).a-f(Ov(e.a,D),17).a:f(Ov(e.a,D),17).a-f(Ov(e.a,i),17).a)<=2&&(ge=!1)));if(s&&ge&&(t?i=f(On(new kn(xn(Wi(I).a.Kc(),new O))),18).d.i:i=f(On(new kn(xn(go(I).a.Kc(),new O))),18).c.i,(t?f(Ov(e.a,i),17).a-f(Ov(e.a,I),17).a:f(Ov(e.a,I),17).a-f(Ov(e.a,i),17).a)<=2&&i.k==(gn(),ji)&&(ge=!1)),b||ge){for(z=n3t(e,I,t);z.a.gc()!=0;)U=f(z.a.ec().Kc().Pb(),10),z.a.Bc(U)!=null,Do(z,n3t(e,U,t));--W,Ce=!0}}}while(Ce)}function Kjn(e){Zn(e.c,pr,se(ie(St,1),rt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#decimal"])),Zn(e.d,pr,se(ie(St,1),rt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#integer"])),Zn(e.e,pr,se(ie(St,1),rt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#boolean"])),Zn(e.f,pr,se(ie(St,1),rt,2,6,[Zo,"EBoolean",Tr,"EBoolean:Object"])),Zn(e.i,pr,se(ie(St,1),rt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#byte"])),Zn(e.g,pr,se(ie(St,1),rt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#hexBinary"])),Zn(e.j,pr,se(ie(St,1),rt,2,6,[Zo,"EByte",Tr,"EByte:Object"])),Zn(e.n,pr,se(ie(St,1),rt,2,6,[Zo,"EChar",Tr,"EChar:Object"])),Zn(e.t,pr,se(ie(St,1),rt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#double"])),Zn(e.u,pr,se(ie(St,1),rt,2,6,[Zo,"EDouble",Tr,"EDouble:Object"])),Zn(e.F,pr,se(ie(St,1),rt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#float"])),Zn(e.G,pr,se(ie(St,1),rt,2,6,[Zo,"EFloat",Tr,"EFloat:Object"])),Zn(e.I,pr,se(ie(St,1),rt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#int"])),Zn(e.J,pr,se(ie(St,1),rt,2,6,[Zo,"EInt",Tr,"EInt:Object"])),Zn(e.N,pr,se(ie(St,1),rt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#long"])),Zn(e.O,pr,se(ie(St,1),rt,2,6,[Zo,"ELong",Tr,"ELong:Object"])),Zn(e.Z,pr,se(ie(St,1),rt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#short"])),Zn(e.$,pr,se(ie(St,1),rt,2,6,[Zo,"EShort",Tr,"EShort:Object"])),Zn(e._,pr,se(ie(St,1),rt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#string"]))}function qjn(e,t,i,s,a,c,b){var g,m,_,k,I,D,W,U;return D=f(s.a,17).a,W=f(s.b,17).a,I=e.b,U=e.c,g=0,k=0,t==(Xi(),Js)||t==al?(k=QO(b_t(Wv(nl(new Wt(null,new Vt(i.b,16)),new jYe),new vYe))),I.e.b+I.f.b/2>k?(_=++W,g=Ae(je(tu(jv(nl(new Wt(null,new Vt(i.b,16)),new aut(a,_)),new _Ye))))):(m=++D,g=Ae(je(tu(e3(nl(new Wt(null,new Vt(i.b,16)),new cut(a,m)),new SYe)))))):(k=QO(b_t(Wv(nl(new Wt(null,new Vt(i.b,16)),new xYe),new yYe))),I.e.a+I.f.a/2>k?(_=++W,g=Ae(je(tu(jv(nl(new Wt(null,new Vt(i.b,16)),new sut(a,_)),new EYe))))):(m=++D,g=Ae(je(tu(e3(nl(new Wt(null,new Vt(i.b,16)),new lut(a,m)),new kYe)))))),t==Js?(cs(e.a,new tt(Ae(je(V(I,(ei(),Fd))))-a,g)),cs(e.a,new tt(U.e.a+U.f.a+a+c,g)),cs(e.a,new tt(U.e.a+U.f.a+a+c,U.e.b+U.f.b/2)),cs(e.a,new tt(U.e.a+U.f.a,U.e.b+U.f.b/2))):t==al?(cs(e.a,new tt(Ae(je(V(I,(ei(),fd))))+a,I.e.b+I.f.b/2)),cs(e.a,new tt(I.e.a+I.f.a+a,g)),cs(e.a,new tt(U.e.a-a-c,g)),cs(e.a,new tt(U.e.a-a-c,U.e.b+U.f.b/2)),cs(e.a,new tt(U.e.a,U.e.b+U.f.b/2))):t==cf?(cs(e.a,new tt(g,Ae(je(V(I,(ei(),Fd))))-a)),cs(e.a,new tt(g,U.e.b+U.f.b+a+c)),cs(e.a,new tt(U.e.a+U.f.a/2,U.e.b+U.f.b+a+c)),cs(e.a,new tt(U.e.a+U.f.a/2,U.e.b+U.f.b+a))):(e.a.b==0||(f(Jf(e.a),8).b=Ae(je(V(I,(ei(),fd))))+a*f(b.b,17).a),cs(e.a,new tt(g,Ae(je(V(I,(ei(),fd))))+a*f(b.b,17).a)),cs(e.a,new tt(g,U.e.b-a*f(b.a,17).a-c))),new io(ot(D),ot(W))}function Xjn(e){var t,i,s,a,c,b,g,m,_,k,I,D,W;if(b=!0,I=null,s=null,a=null,t=!1,W=FDt,_=null,c=null,g=0,m=Ote(e,g,kOe,ROe),m=0&&Ht(e.substr(g,2),"//")?(g+=2,m=Ote(e,g,j5,F5),s=(Mo(g,m,e.length),e.substr(g,m-g)),g=m):I!=null&&(g==e.length||(pn(g,e.length),e.charCodeAt(g)!=47))&&(b=!1,m=Tme(e,Qa(35),g),m==-1&&(m=e.length),s=(Mo(g,m,e.length),e.substr(g,m-g)),g=m);if(!i&&g0&&Jo(k,k.length-1)==58&&(a=k,g=m)),gAne(c))&&(I=c);for(!I&&(I=(qt(0,X.c.length),f(X.c[0],185))),z=new ee(t.b);z.aI&&(an=0,Tn+=k+ct,k=0),bRt(Ke,b,an,Tn),t=h.Math.max(t,an+Ze.a),k=h.Math.max(k,Ze.b),an+=Ze.a+ct;for(Ce=new Fn,i=new Fn,Nt=new ee(e);Nt.a=-1900?1:0,i>=4?br(e,se(ie(St,1),rt,2,6,[HCt,UCt])[g]):br(e,se(ie(St,1),rt,2,6,["BC","AD"])[g]);break;case 121:b4n(e,i,s);break;case 77:ONn(e,i,s);break;case 107:m=a.q.getHours(),m==0?vp(e,24,i):vp(e,m,i);break;case 83:KPn(e,i,a);break;case 69:k=s.q.getDay(),i==5?br(e,se(ie(St,1),rt,2,6,["S","M","T","W","T","F","S"])[k]):i==4?br(e,se(ie(St,1),rt,2,6,[Ire,Pre,Ore,Nre,Mre,Dre,Lre])[k]):br(e,se(ie(St,1),rt,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[k]);break;case 97:a.q.getHours()>=12&&a.q.getHours()<24?br(e,se(ie(St,1),rt,2,6,["AM","PM"])[1]):br(e,se(ie(St,1),rt,2,6,["AM","PM"])[0]);break;case 104:I=a.q.getHours()%12,I==0?vp(e,12,i):vp(e,I,i);break;case 75:D=a.q.getHours()%12,vp(e,D,i);break;case 72:W=a.q.getHours(),vp(e,W,i);break;case 99:U=s.q.getDay(),i==5?br(e,se(ie(St,1),rt,2,6,["S","M","T","W","T","F","S"])[U]):i==4?br(e,se(ie(St,1),rt,2,6,[Ire,Pre,Ore,Nre,Mre,Dre,Lre])[U]):i==3?br(e,se(ie(St,1),rt,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[U]):vp(e,U,1);break;case 76:z=s.q.getMonth(),i==5?br(e,se(ie(St,1),rt,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[z]):i==4?br(e,se(ie(St,1),rt,2,6,[vre,_re,Sre,Ere,P3,kre,Rre,xre,Cre,Are,Tre,$re])[z]):i==3?br(e,se(ie(St,1),rt,2,6,["Jan","Feb","Mar","Apr",P3,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[z]):vp(e,z+1,i);break;case 81:X=s.q.getMonth()/3|0,i<4?br(e,se(ie(St,1),rt,2,6,["Q1","Q2","Q3","Q4"])[X]):br(e,se(ie(St,1),rt,2,6,["1st quarter","2nd quarter","3rd quarter","4th quarter"])[X]);break;case 100:oe=s.q.getDate(),vp(e,oe,i);break;case 109:_=a.q.getMinutes(),vp(e,_,i);break;case 115:b=a.q.getSeconds(),vp(e,b,i);break;case 122:i<4?br(e,c.c[0]):br(e,c.c[1]);break;case 118:br(e,c.b);break;case 90:i<3?br(e,B5n(c)):i==3?br(e,V5n(c)):br(e,z5n(c.a));break;default:return!1}return!0}function q3e(e,t,i,s){var a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ct,Dt,Nt,ln,an,Tn,Pr;if(iRt(t),m=f(Se((!t.b&&(t.b=new en(Dn,t,4,7)),t.b),0),84),k=f(Se((!t.c&&(t.c=new en(Dn,t,5,8)),t.c),0),84),g=sl(m),_=sl(k),b=(!t.a&&(t.a=new qe(ai,t,6,6)),t.a).i==0?null:f(Se((!t.a&&(t.a=new qe(ai,t,6,6)),t.a),0),166),ct=f(En(e.a,g),10),an=f(En(e.a,_),10),Dt=null,Tn=null,ve(m,193)&&(Ze=f(En(e.a,m),305),ve(Ze,12)?Dt=f(Ze,12):ve(Ze,10)&&(ct=f(Ze,10),Dt=f(vt(ct.j,0),12))),ve(k,193)&&(ln=f(En(e.a,k),305),ve(ln,12)?Tn=f(ln,12):ve(ln,10)&&(an=f(ln,10),Tn=f(vt(an.j,0),12))),!ct||!an)throw ne(new Dk("The source or the target of edge "+t+" could not be found. This usually happens when an edge connects a node laid out by ELK Layered to a node in another level of hierarchy laid out by either another instance of ELK Layered or another layout algorithm alltogether. The former can be solved by setting the hierarchyHandling option to INCLUDE_CHILDREN."));for(z=new jm,ol(z,t),Xe(z,(nt(),Ur),t),Xe(z,(bt(),Xs),null),W=f(V(s,ma),21),ct==an&&W.Fc((As(),VI)),Dt||(Ke=(Cs(),Ta),Nt=null,b&&HS(f(V(ct,Oi),101))&&(Nt=new tt(b.j,b.k),q1t(Nt,N7(t)),S0t(Nt,i),Xv(_,g)&&(Ke=Pc,Mr(Nt,ct.n))),Dt=oxt(ct,Nt,Ke,s)),Tn||(Ke=(Cs(),Pc),Pr=null,b&&HS(f(V(an,Oi),101))&&(Pr=new tt(b.b,b.c),q1t(Pr,N7(t)),S0t(Pr,i)),Tn=oxt(an,Pr,Ke,Go(an))),rs(z,Dt),xo(z,Tn),(Dt.e.c.length>1||Dt.g.c.length>1||Tn.e.c.length>1||Tn.g.c.length>1)&&W.Fc((As(),GI)),D=new Sn((!t.n&&(t.n=new qe(Fs,t,1,7)),t.n));D.e!=D.i.gc();)if(I=f(Cn(D),135),!mt(wt(Ye(I,Lw)))&&I.a)switch(X=hte(I),lt(z.b,X),f(V(X,rp),278).g){case 1:case 2:W.Fc((As(),l4));break;case 0:W.Fc((As(),s4)),Xe(X,rp,(nh(),R4))}if(c=f(V(s,YI),322),oe=f(V(s,MV),323),a=c==(u6(),t9)||oe==($6(),Qle),b&&(!b.a&&(b.a=new zi(Nu,b,5)),b.a).i!=0&&a){for(ge=LN(b),U=new cc,Ce=Hn(ge,0);Ce.b!=Ce.d.c;)_e=f(Bn(Ce),8),hr(U,new us(_e));Xe(z,H$e,U)}return z}function Zjn(e,t,i,s){var a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ct,Dt,Nt,ln,an,Tn,Pr,Si;for(Nt=0,ln=0,ct=new Fn,Ke=f(tu(jv(nl(new Wt(null,new Vt(e.b,16)),new RYe),new OYe)),17).a+1,Dt=Fe(Xn,wr,28,Ke,15,1),X=Fe(Xn,wr,28,Ke,15,1),z=0;z1)for(g=Tn+1;g_.b.e.b*(1-oe)+_.c.e.b*oe));U++);if(Ze.gc()>0&&(Pr=_.a.b==0?Ho(_.b.e):f(Jf(_.a),8),_e=Mr(Ho(f(Ze.Xb(Ze.gc()-1),40).e),f(Ze.Xb(Ze.gc()-1),40).f),D=Mr(Ho(f(Ze.Xb(0),40).e),f(Ze.Xb(0),40).f),U>=Ze.gc()-1&&Pr.b>_e.b&&_.c.e.b>_e.b||U<=0&&Pr.b_.b.e.a*(1-oe)+_.c.e.a*oe));U++);if(Ze.gc()>0&&(Pr=_.a.b==0?Ho(_.b.e):f(Jf(_.a),8),_e=Mr(Ho(f(Ze.Xb(Ze.gc()-1),40).e),f(Ze.Xb(Ze.gc()-1),40).f),D=Mr(Ho(f(Ze.Xb(0),40).e),f(Ze.Xb(0),40).f),U>=Ze.gc()-1&&Pr.a>_e.a&&_.c.e.a>_e.a||U<=0&&Pr.a=Ae(je(V(e,(ei(),i5e))))&&++ln):(W.f&&W.d.e.a<=Ae(je(V(e,(ei(),gae))))&&++Nt,W.g&&W.c.e.a+W.c.f.a>=Ae(je(V(e,(ei(),r5e))))&&++ln)}else Ce==0?gke(_):Ce<0&&(++Dt[Tn],++X[Si],an=qjn(_,t,e,new io(ot(Nt),ot(ln)),i,s,new io(ot(X[Si]),ot(Dt[Tn]))),Nt=f(an.a,17).a,ln=f(an.b,17).a)}function eFn(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge;if(s=t,m=i,e.b&&s.j==(ut(),wn)&&m.j==(ut(),wn)&&(ge=s,s=m,m=ge),Na(e.a,s)){if(Rd(f(En(e.a,s),49),m))return 1}else xr(e.a,s,new Gi);if(Na(e.a,m)){if(Rd(f(En(e.a,m),49),s))return-1}else xr(e.a,m,new Gi);if(Na(e.d,s)){if(Rd(f(En(e.d,s),49),m))return-1}else xr(e.d,s,new Gi);if(Na(e.d,m)){if(Rd(f(En(e.a,m),49),s))return 1}else xr(e.d,m,new Gi);if(s.j!=m.j)return oe=Hgn(s.j,m.j),oe==-1?nf(e,m,s):nf(e,s,m),oe;if(s.e.c.length!=0&&m.e.c.length!=0){if(e.b&&(oe=Uvt(s,m),oe!=0))return oe==-1?nf(e,m,s):oe==1&&nf(e,s,m),oe;if(c=f(vt(s.e,0),18).c.i,k=f(vt(m.e,0),18).c.i,c==k)return a=f(V(f(vt(s.e,0),18),(nt(),Yr)),17).a,_=f(V(f(vt(m.e,0),18),Yr),17).a,a>_?nf(e,s,m):nf(e,m,s),a<_?-1:a>_?1:0;for(U=e.c,z=0,X=U.length;z_?nf(e,s,m):nf(e,m,s),a<_?-1:a>_?1:0):e.b&&(oe=Uvt(s,m),oe!=0)?(oe==-1?nf(e,m,s):oe==1&&nf(e,s,m),oe):(b=0,I=0,ri(f(vt(s.g,0),18),Yr)&&(b=f(V(f(vt(s.g,0),18),Yr),17).a),ri(f(vt(m.g,0),18),Yr)&&(I=f(V(f(vt(s.g,0),18),Yr),17).a),g&&g==D?mt(wt(V(f(vt(s.g,0),18),hh)))&&!mt(wt(V(f(vt(m.g,0),18),hh)))?(nf(e,s,m),1):!mt(wt(V(f(vt(s.g,0),18),hh)))&&mt(wt(V(f(vt(m.g,0),18),hh)))?(nf(e,m,s),-1):(b>I?nf(e,s,m):nf(e,m,s),bI?1:0):(e.f&&(e.f._b(g)&&(b=f(e.f.xc(g),17).a),e.f._b(D)&&(I=f(e.f.xc(D),17).a)),b>I?nf(e,s,m):nf(e,m,s),bI?1:0))):s.e.c.length!=0&&m.g.c.length!=0?(nf(e,s,m),1):s.g.c.length!=0&&m.e.c.length!=0?(nf(e,m,s),-1):ri(s,(nt(),Yr))&&ri(m,Yr)?(a=f(V(s,Yr),17).a,_=f(V(m,Yr),17).a,a>_?nf(e,s,m):nf(e,m,s),a<_?-1:a>_?1:0):(nf(e,m,s),-1)}function tFn(e){e.gb||(e.gb=!0,e.b=$l(e,0),Ti(e.b,18),oi(e.b,19),e.a=$l(e,1),Ti(e.a,1),oi(e.a,2),oi(e.a,3),oi(e.a,4),oi(e.a,5),e.o=$l(e,2),Ti(e.o,8),Ti(e.o,9),oi(e.o,10),oi(e.o,11),oi(e.o,12),oi(e.o,13),oi(e.o,14),oi(e.o,15),oi(e.o,16),oi(e.o,17),oi(e.o,18),oi(e.o,19),oi(e.o,20),oi(e.o,21),oi(e.o,22),oi(e.o,23),zs(e.o),zs(e.o),zs(e.o),zs(e.o),zs(e.o),zs(e.o),zs(e.o),zs(e.o),zs(e.o),zs(e.o),e.p=$l(e,3),Ti(e.p,2),Ti(e.p,3),Ti(e.p,4),Ti(e.p,5),oi(e.p,6),oi(e.p,7),zs(e.p),zs(e.p),e.q=$l(e,4),Ti(e.q,8),e.v=$l(e,5),oi(e.v,9),zs(e.v),zs(e.v),zs(e.v),e.w=$l(e,6),Ti(e.w,2),Ti(e.w,3),Ti(e.w,4),oi(e.w,5),e.B=$l(e,7),oi(e.B,1),zs(e.B),zs(e.B),zs(e.B),e.Q=$l(e,8),oi(e.Q,0),zs(e.Q),e.R=$l(e,9),Ti(e.R,1),e.S=$l(e,10),zs(e.S),zs(e.S),zs(e.S),zs(e.S),zs(e.S),zs(e.S),zs(e.S),zs(e.S),zs(e.S),zs(e.S),zs(e.S),zs(e.S),zs(e.S),zs(e.S),zs(e.S),e.T=$l(e,11),oi(e.T,10),oi(e.T,11),oi(e.T,12),oi(e.T,13),oi(e.T,14),zs(e.T),zs(e.T),e.U=$l(e,12),Ti(e.U,2),Ti(e.U,3),oi(e.U,4),oi(e.U,5),oi(e.U,6),oi(e.U,7),zs(e.U),e.V=$l(e,13),oi(e.V,10),e.W=$l(e,14),Ti(e.W,18),Ti(e.W,19),Ti(e.W,20),oi(e.W,21),oi(e.W,22),oi(e.W,23),e.bb=$l(e,15),Ti(e.bb,10),Ti(e.bb,11),Ti(e.bb,12),Ti(e.bb,13),Ti(e.bb,14),Ti(e.bb,15),Ti(e.bb,16),oi(e.bb,17),zs(e.bb),zs(e.bb),e.eb=$l(e,16),Ti(e.eb,2),Ti(e.eb,3),Ti(e.eb,4),Ti(e.eb,5),Ti(e.eb,6),Ti(e.eb,7),oi(e.eb,8),oi(e.eb,9),e.ab=$l(e,17),Ti(e.ab,0),Ti(e.ab,1),e.H=$l(e,18),oi(e.H,0),oi(e.H,1),oi(e.H,2),oi(e.H,3),oi(e.H,4),oi(e.H,5),zs(e.H),e.db=$l(e,19),oi(e.db,2),e.c=Ar(e,20),e.d=Ar(e,21),e.e=Ar(e,22),e.f=Ar(e,23),e.i=Ar(e,24),e.g=Ar(e,25),e.j=Ar(e,26),e.k=Ar(e,27),e.n=Ar(e,28),e.r=Ar(e,29),e.s=Ar(e,30),e.t=Ar(e,31),e.u=Ar(e,32),e.fb=Ar(e,33),e.A=Ar(e,34),e.C=Ar(e,35),e.D=Ar(e,36),e.F=Ar(e,37),e.G=Ar(e,38),e.I=Ar(e,39),e.J=Ar(e,40),e.L=Ar(e,41),e.M=Ar(e,42),e.N=Ar(e,43),e.O=Ar(e,44),e.P=Ar(e,45),e.X=Ar(e,46),e.Y=Ar(e,47),e.Z=Ar(e,48),e.$=Ar(e,49),e._=Ar(e,50),e.cb=Ar(e,51),e.K=Ar(e,52))}function nFn(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ct,Dt,Nt,ln,an,Tn;for(b=new li,Ze=f(V(i,(bt(),$u)),88),z=0,Do(b,(!t.a&&(t.a=new qe($r,t,10,11)),t.a));b.b!=0;)k=f(b.b==0?null:(In(b.b!=0),Xu(b,b.a.a)),27),_=di(k),(Oe(Ye(_,Np))!==Oe((Wh(),Dg))||Oe(Ye(_,Ow))===Oe((Eg(),i4))||Oe(Ye(_,Ow))===Oe((Eg(),r4))||mt(wt(Ye(_,xy)))||Oe(Ye(_,N_))!==Oe((hw(),A_))||Oe(Ye(_,r0))===Oe((Sf(),Py))||Oe(Ye(_,r0))===Oe((Sf(),W_))||Oe(Ye(_,Mw))===Oe((Ag(),g4))||Oe(Ye(_,Mw))===Oe((Ag(),w4)))&&!mt(wt(Ye(k,CV)))&&zr(k,(nt(),Yr),ot(z++)),oe=!mt(wt(Ye(k,Lw))),oe&&(D=(!k.a&&(k.a=new qe($r,k,10,11)),k.a).i!=0,U=I6n(k),W=Oe(Ye(k,M_))===Oe((vb(),Wg)),Tn=!eh(k,(Er(),S4))||$0t(or(Ye(k,S4))),Ce=null,Tn&&W&&(D||U)&&(Ce=FRt(k),Xe(Ce,$u,Ze),ri(Ce,c9)&&Blt(new I2e(Ae(je(V(Ce,c9)))),Ce),f(Ye(k,Dw),181).gc()!=0&&(I=Ce,Mi(new Wt(null,(!k.c&&(k.c=new qe(Mc,k,9,9)),new Vt(k.c,16))),new Krt(I)),I3t(k,Ce))),ct=i,Dt=f(En(e.a,di(k)),10),Dt&&(ct=Dt.e),_e=dCt(e,k,ct),Ce&&(_e.e=Ce,Ce.e=_e,Do(b,(!k.a&&(k.a=new qe($r,k,10,11)),k.a))));for(z=0,Ai(b,t,b.c.b,b.c);b.b!=0;){for(c=f(b.b==0?null:(In(b.b!=0),Xu(b,b.a.a)),27),m=new Sn((!c.b&&(c.b=new qe(Fi,c,12,3)),c.b));m.e!=m.i.gc();)g=f(Cn(m),74),iRt(g),(Oe(Ye(t,Np))!==Oe((Wh(),Dg))||Oe(Ye(t,Ow))===Oe((Eg(),i4))||Oe(Ye(t,Ow))===Oe((Eg(),r4))||mt(wt(Ye(t,xy)))||Oe(Ye(t,N_))!==Oe((hw(),A_))||Oe(Ye(t,r0))===Oe((Sf(),Py))||Oe(Ye(t,r0))===Oe((Sf(),W_))||Oe(Ye(t,Mw))===Oe((Ag(),g4))||Oe(Ye(t,Mw))===Oe((Ag(),w4)))&&zr(g,(nt(),Yr),ot(z++)),ln=sl(f(Se((!g.b&&(g.b=new en(Dn,g,4,7)),g.b),0),84)),an=sl(f(Se((!g.c&&(g.c=new en(Dn,g,5,8)),g.c),0),84)),!(mt(wt(Ye(g,Lw)))||mt(wt(Ye(ln,Lw)))||mt(wt(Ye(an,Lw))))&&(X=ny(g)&&mt(wt(Ye(ln,D_)))&&mt(wt(Ye(g,Nw))),Ke=c,X||Xv(an,ln)?Ke=ln:Xv(ln,an)&&(Ke=an),ct=i,Dt=f(En(e.a,Ke),10),Dt&&(ct=Dt.e),ge=q3e(e,g,Ke,ct),Xe(ge,(nt(),j$e),n7n(e,g,t,i)));if(W=Oe(Ye(c,M_))===Oe((vb(),Wg)),W)for(a=new Sn((!c.a&&(c.a=new qe($r,c,10,11)),c.a));a.e!=a.i.gc();)s=f(Cn(a),27),Tn=!eh(s,(Er(),S4))||$0t(or(Ye(s,S4))),Nt=Oe(Ye(s,M_))===Oe(Wg),Tn&&Nt&&Ai(b,s,b.c.b,b.c)}}function nt(){nt=F;var e,t;Ur=new Xr(NRe),j$e=new Xr("coordinateOrigin"),Cle=new Xr("processors"),L$e=new _i("compoundNode",(cn(),!1)),o9=new _i("insideConnections",!1),H$e=new Xr("originalBendpoints"),U$e=new Xr("originalDummyNodePosition"),G$e=new Xr("originalLabelEdge"),KI=new Xr("representedLabels"),zI=new Xr("endLabels"),Q3=new Xr("endLabel.origin"),eR=new _i("labelSide",(ku(),j9)),V2=new _i("maxEdgeThickness",0),hh=new _i("reversed",!1),tR=new Xr(TAt),jd=new _i("longEdgeSource",null),Af=new _i("longEdgeTarget",null),P_=new _i("longEdgeHasLabelDummies",!1),s9=new _i("longEdgeBeforeLabelDummy",!1),vV=new _i("edgeConstraint",(uw(),ule)),Ey=new Xr("inLayerLayoutUnit"),Iw=new _i("inLayerConstraint",(wb(),r9)),Z3=new _i("inLayerSuccessorConstraint",new st),W$e=new _i("inLayerSuccessorConstraintBetweenNonDummies",!1),Ic=new Xr("portDummy"),yV=new _i("crossingHint",ot(0)),ma=new _i("graphProperties",(t=f(kd(wle),9),new Uu(t,f(Yf(t,t.length),9),0))),Dl=new _i("externalPortSide",(ut(),Cl)),B$e=new _i("externalPortSize",new Io),Sle=new Xr("externalPortReplacedDummies"),_V=new Xr("externalPortReplacedDummy"),Pb=new _i("externalPortConnections",(e=f(kd(vs),9),new Uu(e,f(Yf(e,e.length),9),0))),ky=new _i(vAt,0),D$e=new Xr("barycenterAssociates"),nR=new Xr("TopSideComments"),Y3=new Xr("BottomSideComments"),mV=new Xr("CommentConnectionPort"),kle=new _i("inputCollect",!1),xle=new _i("outputCollect",!1),i9=new _i("cyclic",!1),F$e=new Xr("crossHierarchyMap"),Tle=new Xr("targetOffset"),new _i("splineLabelSize",new Io),K2=new Xr("spacings"),SV=new _i("partitionConstraint",!1),Sy=new Xr("breakingPoint.info"),K$e=new Xr("splines.survivingEdge"),Pw=new Xr("splines.route.start"),q2=new Xr("splines.edgeChain"),z$e=new Xr("originalPortConstraints"),Ry=new Xr("selfLoopHolder"),c4=new Xr("splines.nsPortY"),Yr=new Xr("modelOrder"),Rle=new Xr("longEdgeTargetNode"),t0=new _i(t4t,!1),z2=new _i(t4t,!1),Ele=new Xr("layerConstraints.hiddenNodes"),V$e=new Xr("layerConstraints.opposidePort"),Ale=new Xr("targetNode.modelOrder")}function rFn(e,t,i,s){var a,c,b,g,m,_,k,I,D,W,U;for(I=Hn(e.b,0);I.b!=I.d.c;)if(k=f(Bn(I),40),!Ht(k.c,zU))for(c=f(fl(new Wt(null,new Vt(d8n(k,e),16)),Cc(new K,new B,new Zt,se(ie(qs,1),Je,108,0,[(Tc(),pl)]))),15),t==(Xi(),Js)||t==al?c.jd(new TYe):c.jd(new $Ye),U=c.gc(),a=0;a0&&(g=f(Jf(f(c.Xb(a),65).a),8).a,D=k.e.a+k.f.a/2,m=f(Jf(f(c.Xb(a),65).a),8).b,W=k.e.b+k.f.b/2,s>0&&h.Math.abs(m-W)/(h.Math.abs(g-D)/40)>50&&(W>m?cs(f(c.Xb(a),65).a,new tt(k.e.a+k.f.a+s/5.3,k.e.b+k.f.b*b-s/2)):cs(f(c.Xb(a),65).a,new tt(k.e.a+k.f.a+s/5.3,k.e.b+k.f.b*b+s/2)))),cs(f(c.Xb(a),65).a,new tt(k.e.a+k.f.a,k.e.b+k.f.b*b))):t==al?(_=Ae(je(V(k,(ei(),Fd)))),k.e.a-s>_?cs(f(c.Xb(a),65).a,new tt(_-i,k.e.b+k.f.b*b)):f(c.Xb(a),65).a.b>0&&(g=f(Jf(f(c.Xb(a),65).a),8).a,D=k.e.a+k.f.a/2,m=f(Jf(f(c.Xb(a),65).a),8).b,W=k.e.b+k.f.b/2,s>0&&h.Math.abs(m-W)/(h.Math.abs(g-D)/40)>50&&(W>m?cs(f(c.Xb(a),65).a,new tt(k.e.a-s/5.3,k.e.b+k.f.b*b-s/2)):cs(f(c.Xb(a),65).a,new tt(k.e.a-s/5.3,k.e.b+k.f.b*b+s/2)))),cs(f(c.Xb(a),65).a,new tt(k.e.a,k.e.b+k.f.b*b))):t==cf?(_=Ae(je(V(k,(ei(),fd)))),k.e.b+k.f.b+s<_?cs(f(c.Xb(a),65).a,new tt(k.e.a+k.f.a*b,_+i)):f(c.Xb(a),65).a.b>0&&(g=f(Jf(f(c.Xb(a),65).a),8).a,D=k.e.a+k.f.a/2,m=f(Jf(f(c.Xb(a),65).a),8).b,W=k.e.b+k.f.b/2,s>0&&h.Math.abs(g-D)/(h.Math.abs(m-W)/40)>50&&(D>g?cs(f(c.Xb(a),65).a,new tt(k.e.a+k.f.a*b-s/2,k.e.b+s/5.3+k.f.b)):cs(f(c.Xb(a),65).a,new tt(k.e.a+k.f.a*b+s/2,k.e.b+s/5.3+k.f.b)))),cs(f(c.Xb(a),65).a,new tt(k.e.a+k.f.a*b,k.e.b+k.f.b))):(_=Ae(je(V(k,(ei(),Fd)))),Tvt(f(c.Xb(a),65),e)?cs(f(c.Xb(a),65).a,new tt(k.e.a+k.f.a*b,f(Jf(f(c.Xb(a),65).a),8).b)):k.e.b-s>_?cs(f(c.Xb(a),65).a,new tt(k.e.a+k.f.a*b,_-i)):f(c.Xb(a),65).a.b>0&&(g=f(Jf(f(c.Xb(a),65).a),8).a,D=k.e.a+k.f.a/2,m=f(Jf(f(c.Xb(a),65).a),8).b,W=k.e.b+k.f.b/2,s>0&&h.Math.abs(g-D)/(h.Math.abs(m-W)/40)>50&&(D>g?cs(f(c.Xb(a),65).a,new tt(k.e.a+k.f.a*b-s/2,k.e.b-s/5.3)):cs(f(c.Xb(a),65).a,new tt(k.e.a+k.f.a*b+s/2,k.e.b-s/5.3)))),cs(f(c.Xb(a),65).a,new tt(k.e.a+k.f.a*b,k.e.b)))}function Er(){Er=F;var e,t;S4=new Xr(B4t),hE=new Xr(W4t),ePe=(_p(),sce),P9t=new Bt(Hxe,ePe),sE=new Bt(j3,null),O9t=new Xr(tAe),nPe=(bw(),ii(cce,se(ie(uce,1),Je,298,0,[ace]))),T9=new Bt(WU,nPe),$9=new Bt(AM,(cn(),!1)),rPe=(Xi(),wh),Ww=new Bt(qie,rPe),sPe=(_b(),Ece),oPe=new Bt(CM,sPe),D9t=new Bt(ZCe,!1),cPe=(vb(),Sz),cE=new Bt(BU,cPe),mPe=new km(12),Bg=new Bt(uy,mPe),P9=new Bt(uI,!1),pce=new Bt(UU,!1),O9=new Bt(fI,!1),EPe=(Co(),u0),x5=new Bt(pie,EPe),lR=new Xr(HU),N9=new Xr(mM),_ce=new Xr(SU),Sce=new Xr(cI),uPe=new cc,My=new Bt(Zxe,uPe),M9t=new Bt(nCe,!1),L9t=new Bt(rCe,!1),fPe=new n$,E4=new Bt(oCe,fPe),mz=new Bt(Bxe,!1),W9t=new Bt(H4t,1),aE=new Xr(U4t),lE=new Xr(G4t),k4=new Bt(yM,!1),new Bt(V4t,!0),ot(0),new Bt(z4t,ot(100)),new Bt(K4t,!1),ot(0),new Bt(q4t,ot(4e3)),ot(0),new Bt(X4t,ot(400)),new Bt(J4t,!1),new Bt(Y4t,!1),new Bt(Q4t,!0),new Bt(Z4t,!1),tPe=(oH(),Cce),N9t=new Bt(eAe,tPe),H9t=new Bt(Txe,10),U9t=new Bt($xe,10),CPe=new Bt(lie,20),G9t=new Bt(Ixe,10),APe=new Bt(hie,2),TPe=new Bt(Kie,10),$Pe=new Bt(Pxe,0),yz=new Bt(Mxe,5),IPe=new Bt(Oxe,1),PPe=new Bt(Nxe,1),Uw=new Bt(m_,20),V9t=new Bt(Dxe,10),MPe=new Bt(Lxe,10),aR=new Xr(jxe),NPe=new sft,OPe=new Bt(sCe,NPe),F9t=new Xr(Jie),yPe=!1,j9t=new Bt(Xie,yPe),hPe=new km(5),dPe=new Bt(Vxe,hPe),pPe=(a_(),t=f(kd(Ps),9),new Uu(t,f(Yf(t,t.length),9),0)),uE=new Bt(NA,pPe),_Pe=(a2(),c0),vPe=new Bt(qxe,_Pe),gce=new Xr(Xxe),wce=new Xr(Jxe),mce=new Xr(Yxe),bce=new Xr(Qxe),bPe=(e=f(kd(N5),9),new Uu(e,f(Yf(e,e.length),9),0)),Hw=new Bt(A2,bPe),wPe=Mt((Gc(),T4)),l0=new Bt(F3,wPe),gPe=new tt(0,0),fE=new Bt(B3,gPe),V_=new Bt(OA,!1),iPe=(nh(),R4),dce=new Bt(eCe,iPe),fce=new Bt(EU,!1),ot(1),new Bt(eTt,null),SPe=new Xr(iCe),yce=new Xr(tCe),xPe=(ut(),Cl),dE=new Bt(Wxe,xPe),qc=new Xr(Fxe),kPe=($c(),Mt(f0)),z_=new Bt(MA,kPe),vce=new Bt(zxe,!1),RPe=new Bt(Kxe,!0),_z=new Bt(vM,1),DPe=new Bt(nAe,null),M9=new Bt(_M,150),vz=new Bt(SM,1.414),cR=new Bt(fy,null),z9t=new Bt(rAe,1),I9=new Bt(Uxe,!1),hce=new Bt(Gxe,!1),lPe=new Bt(aie,1),aPe=(OH(),Rce),new Bt(tTt,aPe),B9t=!0,q9t=(m3(),X_),X9t=X_,K9t=X_}function ss(){ss=F,MTe=new Vi("DIRECTION_PREPROCESSOR",0),PTe=new Vi("COMMENT_PREPROCESSOR",1),j2=new Vi("EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER",2),zse=new Vi("INTERACTIVE_EXTERNAL_PORT_POSITIONER",3),e$e=new Vi("PARTITION_PREPROCESSOR",4),zG=new Vi("LABEL_DUMMY_INSERTER",5),nV=new Vi("SELF_LOOP_PREPROCESSOR",6),$_=new Vi("LAYER_CONSTRAINT_PREPROCESSOR",7),QTe=new Vi("PARTITION_MIDPROCESSOR",8),UTe=new Vi("HIGH_DEGREE_NODE_LAYER_PROCESSOR",9),JTe=new Vi("NODE_PROMOTION",10),T_=new Vi("LAYER_CONSTRAINT_POSTPROCESSOR",11),ZTe=new Vi("PARTITION_POSTPROCESSOR",12),BTe=new Vi("HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR",13),t$e=new Vi("SEMI_INTERACTIVE_CROSSMIN_PROCESSOR",14),xTe=new Vi("BREAKING_POINT_INSERTER",15),JG=new Vi("LONG_EDGE_SPLITTER",16),Kse=new Vi("PORT_SIDE_PROCESSOR",17),GG=new Vi("INVERTED_PORT_PROCESSOR",18),ZG=new Vi("PORT_LIST_SORTER",19),r$e=new Vi("SORT_BY_INPUT_ORDER_OF_MODEL",20),QG=new Vi("NORTH_SOUTH_PORT_PREPROCESSOR",21),CTe=new Vi("BREAKING_POINT_PROCESSOR",22),YTe=new Vi(KAt,23),i$e=new Vi(qAt,24),eV=new Vi("SELF_LOOP_PORT_RESTORER",25),n$e=new Vi("SINGLE_EDGE_GRAPH_WRAPPER",26),VG=new Vi("IN_LAYER_CONSTRAINT_PROCESSOR",27),LTe=new Vi("END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR",28),qTe=new Vi("LABEL_AND_NODE_SIZE_PROCESSOR",29),KTe=new Vi("INNERMOST_NODE_MARGIN_CALCULATOR",30),rV=new Vi("SELF_LOOP_ROUTER",31),$Te=new Vi("COMMENT_NODE_MARGIN_CALCULATOR",32),UG=new Vi("END_LABEL_PREPROCESSOR",33),qG=new Vi("LABEL_DUMMY_SWITCHER",34),TTe=new Vi("CENTER_LABEL_MANAGEMENT_PROCESSOR",35),YA=new Vi("LABEL_SIDE_SELECTOR",36),VTe=new Vi("HYPEREDGE_DUMMY_MERGER",37),WTe=new Vi("HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR",38),XTe=new Vi("LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR",39),BI=new Vi("HIERARCHICAL_PORT_POSITION_PROCESSOR",40),OTe=new Vi("CONSTRAINTS_POSTPROCESSOR",41),ITe=new Vi("COMMENT_POSTPROCESSOR",42),zTe=new Vi("HYPERNODE_PROCESSOR",43),HTe=new Vi("HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER",44),XG=new Vi("LONG_EDGE_JOINER",45),tV=new Vi("SELF_LOOP_POSTPROCESSOR",46),ATe=new Vi("BREAKING_POINT_REMOVER",47),YG=new Vi("NORTH_SOUTH_PORT_POSTPROCESSOR",48),GTe=new Vi("HORIZONTAL_COMPACTOR",49),KG=new Vi("LABEL_DUMMY_REMOVER",50),jTe=new Vi("FINAL_SPLINE_BENDPOINTS_CALCULATOR",51),DTe=new Vi("END_LABEL_SORTER",52),QM=new Vi("REVERSED_EDGE_RESTORER",53),HG=new Vi("END_LABEL_POSTPROCESSOR",54),FTe=new Vi("HIERARCHICAL_NODE_RESIZER",55),NTe=new Vi("DIRECTION_POSTPROCESSOR",56)}function X3e(){X3e=F,i6e=(tN(),fV),lPt=new Bt(GRe,i6e),yPt=new Bt(VRe,(cn(),!1)),u6e=(nW(),_le),kPt=new Bt(CU,u6e),FPt=new Bt(zRe,!1),BPt=new Bt(KRe,!0),O8t=new Bt(qRe,!1),m6e=(Z7(),nae),tOt=new Bt(XRe,m6e),ot(1),cOt=new Bt(JRe,ot(7)),uOt=new Bt(YRe,!1),vPt=new Bt(QRe,!1),r6e=(Eg(),ale),sPt=new Bt(_ie,r6e),h6e=(Ag(),qle),jPt=new Bt(xM,h6e),f6e=(ef(),l9),$Pt=new Bt(ZRe,f6e),ot(-1),TPt=new Bt(exe,null),ot(-1),IPt=new Bt(txe,ot(-1)),ot(-1),PPt=new Bt(Sie,ot(4)),ot(-1),NPt=new Bt(Eie,ot(2)),d6e=(Sf(),UV),LPt=new Bt(kie,d6e),ot(0),DPt=new Bt(Rie,ot(0)),CPt=new Bt(xie,ot(Nr)),n6e=(u6(),HI),oPt=new Bt(pI,n6e),G8t=new Bt(nxe,!1),Y8t=new Bt(Cie,.1),rPt=new Bt(Aie,!1),Z8t=new Bt(rxe,null),ePt=new Bt(ixe,null),ot(-1),tPt=new Bt(oxe,null),ot(-1),nPt=new Bt(sxe,ot(-1)),ot(0),V8t=new Bt(lxe,ot(40)),t6e=(BC(),yle),X8t=new Bt(Tie,t6e),e6e=n9,z8t=new Bt(AU,e6e),w6e=($6(),n5),eOt=new Bt(T2,w6e),VPt=new Xr(TU),p6e=(q7(),hV),WPt=new Bt($ie,p6e),b6e=(NN(),pV),UPt=new Bt(Iie,b6e),qPt=new Bt(Pie,.3),JPt=new Xr(Oie),g6e=(n_(),HV),YPt=new Bt(Nie,g6e),l6e=(GW(),iae),dPt=new Bt(axe,l6e),a6e=(w6(),sae),hPt=new Bt(cxe,a6e),c6e=(qC(),o5),pPt=new Bt($U,c6e),gPt=new Bt(IU,.2),uPt=new Bt(Mie,2),oOt=new Bt(uxe,null),lOt=new Bt(fxe,10),sOt=new Bt(dxe,10),aOt=new Bt(hxe,20),ot(0),nOt=new Bt(pxe,ot(0)),ot(0),rOt=new Bt(bxe,ot(0)),ot(0),iOt=new Bt(gxe,ot(0)),N8t=new Bt(Die,!1),J$e=(cA(),UI),D8t=new Bt(wxe,J$e),X$e=(hW(),sle),M8t=new Bt(mxe,X$e),SPt=new Bt(PU,!1),ot(0),_Pt=new Bt(Lie,ot(16)),ot(0),EPt=new Bt(jie,ot(5)),_6e=(qW(),cae),$Ot=new Bt(Tb,_6e),fOt=new Bt(OU,10),pOt=new Bt(NU,1),v6e=($W(),uV),_Ot=new Bt(bI,v6e),wOt=new Xr(Fie),y6e=ot(1),ot(0),yOt=new Bt(Bie,y6e),S6e=(TW(),aae),NOt=new Bt(MU,S6e),IOt=new Xr(DU),xOt=new Bt(LU,!0),kOt=new Bt(jU,2),AOt=new Bt(Wie,!0),s6e=(MH(),dV),cPt=new Bt(yxe,s6e),o6e=(R3(),t4),aPt=new Bt(vxe,o6e),Z$e=(Wh(),Dg),U8t=new Bt(FU,Z$e),H8t=new Bt(_xe,!1),W8t=new Bt(Sxe,!1),Y$e=(hw(),A_),L8t=new Bt(Hie,Y$e),Q$e=(v6(),Xle),B8t=new Bt(Exe,Q$e),j8t=new Bt(Uie,0),F8t=new Bt(Gie,0),xPt=cle,RPt=t9,OPt=BV,MPt=BV,APt=Kle,Q8t=(vb(),Wg),iPt=HI,J8t=HI,K8t=HI,q8t=Wg,zPt=r5,KPt=n5,HPt=n5,GPt=n5,XPt=Zle,ZPt=r5,QPt=r5,bPt=(_b(),uR),wPt=uR,mPt=o5,fPt=D9,dOt=m4,hOt=H_,bOt=m4,gOt=H_,SOt=m4,EOt=H_,mOt=lle,vOt=uV,MOt=m4,DOt=H_,POt=m4,OOt=H_,COt=H_,ROt=H_,TOt=H_}function iFn(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ct,Dt,Nt,ln,an,Tn,Pr,Si,Dc,Ys,Mu,yE,qg,md,yd,Kw,gR,y0,wR,sp,Wp,By,mR,vE,lp,qw,Lb,DLt,o7e,Wy,K5,Gce,yR,q5,rS,X5,Vce,LLt;for(o7e=0,Pr=t,Ys=0,qg=Pr.length;Ys0&&(e.a[sp.p]=o7e++)}for(q5=0,Si=i,Mu=0,md=Si.length;Mu0;){for(sp=(In(vE.b>0),f(vE.a.Xb(vE.c=--vE.b),12)),mR=0,g=new ee(sp.e);g.a0&&(sp.j==(ut(),bn)?(e.a[sp.p]=q5,++q5):(e.a[sp.p]=q5+yd+gR,++gR))}q5+=gR}for(By=new Fn,U=new Oh,Tn=t,Dc=0,yE=Tn.length;Dc_.b&&(_.b=lp)):sp.i.c==DLt&&(lp<_.f&&(_.f=lp),lp>_.c&&(_.c=lp));for(kC(z,0,z.length,null),yR=Fe(Xn,wr,28,z.length,15,1),s=Fe(Xn,wr,28,q5+1,15,1),oe=0;oe0;)ct%2>0&&(a+=Vce[ct+1]),ct=(ct-1)/2|0,++Vce[ct];for(Nt=Fe(N7t,on,374,z.length*2,0,1),Ce=0;Ce0&&P7(Dc.f),Ye(oe,DPe)!=null&&(g=f(Ye(oe,DPe),347),By=g.Tg(oe),GS(oe,h.Math.max(oe.g,By.a),h.Math.max(oe.f,By.b)));if(md=f(Ye(t,Bg),107),W=t.g-(md.b+md.c),D=t.f-(md.d+md.a),lp.bh("Available Child Area: ("+W+"|"+D+")"),zr(t,sE,W/D),cSt(t,a,s.eh(yE)),f(Ye(t,cR),280)==Az&&(V3e(t),GS(t,md.b+Ae(je(Ye(t,aE)))+md.c,md.d+Ae(je(Ye(t,lE)))+md.a)),lp.bh("Executed layout algorithm: "+or(Ye(t,S4))+" on node "+t.k),f(Ye(t,cR),280)==X_){if(W<0||D<0)throw ne(new rg("The size defined by the parent parallel node is too small for the space provided by the paddings of the child hierarchical node. "+t.k));for(eh(t,aE)||eh(t,lE)||V3e(t),z=Ae(je(Ye(t,aE))),U=Ae(je(Ye(t,lE))),lp.bh("Desired Child Area: ("+z+"|"+U+")"),Kw=W/z,gR=D/U,yd=h.Math.min(Kw,h.Math.min(gR,Ae(je(Ye(t,z9t))))),zr(t,_z,yd),lp.bh(t.k+" -- Local Scale Factor (X|Y): ("+Kw+"|"+gR+")"),Ce=f(Ye(t,T9),21),c=0,b=0,yd'?":Ht(OTt,e)?"'(?<' or '(? toIndex: ",dRe=", toIndex: ",hRe="Index: ",pRe=", Size: ",TA="org.eclipse.elk.alg.common",cr={50:1},nAt="org.eclipse.elk.alg.common.compaction",rAt="Scanline/EventHandler",Ap="org.eclipse.elk.alg.common.compaction.oned",iAt="CNode belongs to another CGroup.",oAt="ISpacingsHandler/1",Xre="The ",Jre=" instance has been finished already.",sAt="The direction ",lAt=" is not supported by the CGraph instance.",aAt="OneDimensionalCompactor",cAt="OneDimensionalCompactor/lambda$0$Type",uAt="Quadruplet",fAt="ScanlineConstraintCalculator",dAt="ScanlineConstraintCalculator/ConstraintsScanlineHandler",hAt="ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type",pAt="ScanlineConstraintCalculator/Timestamp",bAt="ScanlineConstraintCalculator/lambda$0$Type",Kh={178:1,46:1},Yre="org.eclipse.elk.alg.common.compaction.options",xl="org.eclipse.elk.core.data",bRe="org.eclipse.elk.polyomino.traversalStrategy",gRe="org.eclipse.elk.polyomino.lowLevelSort",wRe="org.eclipse.elk.polyomino.highLevelSort",mRe="org.eclipse.elk.polyomino.fill",Ef={134:1},Qre="polyomino",sI="org.eclipse.elk.alg.common.networksimplex",Tp={183:1,3:1,4:1},gAt="org.eclipse.elk.alg.common.nodespacing",vw="org.eclipse.elk.alg.common.nodespacing.cellsystem",$A="CENTER",wAt={217:1,336:1},yRe={3:1,4:1,5:1,603:1},M3="LEFT",D3="RIGHT",vRe="Vertical alignment cannot be null",_Re="BOTTOM",gU="org.eclipse.elk.alg.common.nodespacing.internal",lI="UNDEFINED",ah=.01,bM="org.eclipse.elk.alg.common.nodespacing.internal.algorithm",mAt="LabelPlacer/lambda$0$Type",yAt="LabelPlacer/lambda$1$Type",vAt="portRatioOrPosition",IA="org.eclipse.elk.alg.common.overlaps",Zre="DOWN",qh="org.eclipse.elk.alg.common.polyomino",wU="NORTH",eie="EAST",tie="SOUTH",nie="WEST",mU="org.eclipse.elk.alg.common.polyomino.structures",SRe="Direction",rie="Grid is only of size ",iie=". Requested point (",oie=") is out of bounds.",yU=" Given center based coordinates were (",gM="org.eclipse.elk.graph.properties",_At="IPropertyHolder",ERe={3:1,96:1,137:1},L3="org.eclipse.elk.alg.common.spore",SAt="org.eclipse.elk.alg.common.utils",_w={205:1},R2="org.eclipse.elk.core",EAt="Connected Components Compaction",kAt="org.eclipse.elk.alg.disco",vU="org.eclipse.elk.alg.disco.graph",sie="org.eclipse.elk.alg.disco.options",kRe="CompactionStrategy",RRe="org.eclipse.elk.disco.componentCompaction.strategy",xRe="org.eclipse.elk.disco.componentCompaction.componentLayoutAlgorithm",CRe="org.eclipse.elk.disco.debug.discoGraph",ARe="org.eclipse.elk.disco.debug.discoPolys",RAt="componentCompaction",Sw="org.eclipse.elk.disco",lie="org.eclipse.elk.spacing.componentComponent",aie="org.eclipse.elk.edge.thickness",j3="org.eclipse.elk.aspectRatio",uy="org.eclipse.elk.padding",x2="org.eclipse.elk.alg.disco.transform",cie=1.5707963267948966,C2=17976931348623157e292,w_={3:1,4:1,5:1,198:1},xAt={3:1,6:1,4:1,5:1,100:1,115:1},uie="org.eclipse.elk.alg.force",TRe="ComponentsProcessor",CAt="ComponentsProcessor/1",$Re="ElkGraphImporter/lambda$0$Type",wM="org.eclipse.elk.alg.force.graph",AAt="Component Layout",IRe="org.eclipse.elk.alg.force.model",_U="org.eclipse.elk.force.model",PRe="org.eclipse.elk.force.iterations",ORe="org.eclipse.elk.force.repulsivePower",fie="org.eclipse.elk.force.temperature",Xh=.001,die="org.eclipse.elk.force.repulsion",aI="org.eclipse.elk.alg.force.options",PA=1.600000023841858,Ba="org.eclipse.elk.force",mM="org.eclipse.elk.priority",m_="org.eclipse.elk.spacing.nodeNode",hie="org.eclipse.elk.spacing.edgeLabel",SU="org.eclipse.elk.randomSeed",cI="org.eclipse.elk.separateConnectedComponents",uI="org.eclipse.elk.interactive",pie="org.eclipse.elk.portConstraints",EU="org.eclipse.elk.edgeLabels.inline",fI="org.eclipse.elk.omitNodeMicroLayout",OA="org.eclipse.elk.nodeSize.fixedGraphSize",F3="org.eclipse.elk.nodeSize.options",A2="org.eclipse.elk.nodeSize.constraints",NA="org.eclipse.elk.nodeLabels.placement",MA="org.eclipse.elk.portLabels.placement",yM="org.eclipse.elk.topdownLayout",vM="org.eclipse.elk.topdown.scaleFactor",_M="org.eclipse.elk.topdown.hierarchicalNodeWidth",SM="org.eclipse.elk.topdown.hierarchicalNodeAspectRatio",fy="org.eclipse.elk.topdown.nodeType",NRe="origin",TAt="random",$At="boundingBox.upLeft",IAt="boundingBox.lowRight",MRe="org.eclipse.elk.stress.fixed",DRe="org.eclipse.elk.stress.desiredEdgeLength",LRe="org.eclipse.elk.stress.dimension",jRe="org.eclipse.elk.stress.epsilon",FRe="org.eclipse.elk.stress.iterationLimit",z1="org.eclipse.elk.stress",PAt="ELK Stress",B3="org.eclipse.elk.nodeSize.minimum",kU="org.eclipse.elk.alg.force.stress",OAt="Layered layout",W3="org.eclipse.elk.alg.layered",EM="org.eclipse.elk.alg.layered.compaction.components",dI="org.eclipse.elk.alg.layered.compaction.oned",RU="org.eclipse.elk.alg.layered.compaction.oned.algs",Ew="org.eclipse.elk.alg.layered.compaction.recthull",ch="org.eclipse.elk.alg.layered.components",Jh="NONE",BRe="MODEL_ORDER",Ql={3:1,6:1,4:1,9:1,5:1,126:1},NAt={3:1,6:1,4:1,5:1,150:1,100:1,115:1},xU="org.eclipse.elk.alg.layered.compound",ni={47:1},pa="org.eclipse.elk.alg.layered.graph",bie=" -> ",MAt="Not supported by LGraph",WRe="Port side is undefined",gie={3:1,6:1,4:1,5:1,483:1,150:1,100:1,115:1},$g={3:1,6:1,4:1,5:1,150:1,199:1,210:1,100:1,115:1},DAt={3:1,6:1,4:1,5:1,150:1,2042:1,210:1,100:1,115:1},LAt=`([{"' \r +`,jAt=`)]}"' \r +`,FAt="The given string contains parts that cannot be parsed as numbers.",kM="org.eclipse.elk.core.math",BAt={3:1,4:1,140:1,214:1,423:1},WAt={3:1,4:1,107:1,214:1,423:1},Ig="org.eclipse.elk.alg.layered.graph.transform",HAt="ElkGraphImporter",UAt="ElkGraphImporter/lambda$1$Type",GAt="ElkGraphImporter/lambda$2$Type",VAt="ElkGraphImporter/lambda$4$Type",yn="org.eclipse.elk.alg.layered.intermediate",zAt="Node margin calculation",KAt="ONE_SIDED_GREEDY_SWITCH",qAt="TWO_SIDED_GREEDY_SWITCH",wie="No implementation is available for the layout processor ",mie="IntermediateProcessorStrategy",yie="Node '",XAt="FIRST_SEPARATE",JAt="LAST_SEPARATE",YAt="Odd port side processing",ro="org.eclipse.elk.alg.layered.intermediate.compaction",hI="org.eclipse.elk.alg.layered.intermediate.greedyswitch",$p="org.eclipse.elk.alg.layered.p3order.counting",RM={230:1},H3="org.eclipse.elk.alg.layered.intermediate.loops",Au="org.eclipse.elk.alg.layered.intermediate.loops.ordering",K1="org.eclipse.elk.alg.layered.intermediate.loops.routing",HRe="org.eclipse.elk.alg.layered.intermediate.preserveorder",Yh="org.eclipse.elk.alg.layered.intermediate.wrapping",Zl="org.eclipse.elk.alg.layered.options",vie="INTERACTIVE",URe="GREEDY",QAt="DEPTH_FIRST",ZAt="EDGE_LENGTH",e4t="SELF_LOOPS",t4t="firstTryWithInitialOrder",GRe="org.eclipse.elk.layered.directionCongruency",VRe="org.eclipse.elk.layered.feedbackEdges",CU="org.eclipse.elk.layered.interactiveReferencePoint",zRe="org.eclipse.elk.layered.mergeEdges",KRe="org.eclipse.elk.layered.mergeHierarchyEdges",qRe="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",XRe="org.eclipse.elk.layered.portSortingStrategy",JRe="org.eclipse.elk.layered.thoroughness",YRe="org.eclipse.elk.layered.unnecessaryBendpoints",QRe="org.eclipse.elk.layered.generatePositionAndLayerIds",_ie="org.eclipse.elk.layered.cycleBreaking.strategy",xM="org.eclipse.elk.layered.layering.strategy",ZRe="org.eclipse.elk.layered.layering.layerConstraint",exe="org.eclipse.elk.layered.layering.layerChoiceConstraint",txe="org.eclipse.elk.layered.layering.layerId",Sie="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",Eie="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",kie="org.eclipse.elk.layered.layering.nodePromotion.strategy",Rie="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",xie="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",pI="org.eclipse.elk.layered.crossingMinimization.strategy",nxe="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",Cie="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",Aie="org.eclipse.elk.layered.crossingMinimization.semiInteractive",rxe="org.eclipse.elk.layered.crossingMinimization.inLayerPredOf",ixe="org.eclipse.elk.layered.crossingMinimization.inLayerSuccOf",oxe="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",sxe="org.eclipse.elk.layered.crossingMinimization.positionId",lxe="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",Tie="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",AU="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",T2="org.eclipse.elk.layered.nodePlacement.strategy",TU="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",$ie="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",Iie="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",Pie="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",Oie="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",Nie="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",axe="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",cxe="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",$U="org.eclipse.elk.layered.edgeRouting.splines.mode",IU="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",Mie="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",uxe="org.eclipse.elk.layered.spacing.baseValue",fxe="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",dxe="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",hxe="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",pxe="org.eclipse.elk.layered.priority.direction",bxe="org.eclipse.elk.layered.priority.shortness",gxe="org.eclipse.elk.layered.priority.straightness",Die="org.eclipse.elk.layered.compaction.connectedComponents",wxe="org.eclipse.elk.layered.compaction.postCompaction.strategy",mxe="org.eclipse.elk.layered.compaction.postCompaction.constraints",PU="org.eclipse.elk.layered.highDegreeNodes.treatment",Lie="org.eclipse.elk.layered.highDegreeNodes.threshold",jie="org.eclipse.elk.layered.highDegreeNodes.treeHeight",Tb="org.eclipse.elk.layered.wrapping.strategy",OU="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",NU="org.eclipse.elk.layered.wrapping.correctionFactor",bI="org.eclipse.elk.layered.wrapping.cutting.strategy",Fie="org.eclipse.elk.layered.wrapping.cutting.cuts",Bie="org.eclipse.elk.layered.wrapping.cutting.msd.freedom",MU="org.eclipse.elk.layered.wrapping.validify.strategy",DU="org.eclipse.elk.layered.wrapping.validify.forbiddenIndices",LU="org.eclipse.elk.layered.wrapping.multiEdge.improveCuts",jU="org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty",Wie="org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges",yxe="org.eclipse.elk.layered.edgeLabels.sideSelection",vxe="org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy",FU="org.eclipse.elk.layered.considerModelOrder.strategy",_xe="org.eclipse.elk.layered.considerModelOrder.portModelOrder",Sxe="org.eclipse.elk.layered.considerModelOrder.noModelOrder",Hie="org.eclipse.elk.layered.considerModelOrder.components",Exe="org.eclipse.elk.layered.considerModelOrder.longEdgeStrategy",Uie="org.eclipse.elk.layered.considerModelOrder.crossingCounterNodeInfluence",Gie="org.eclipse.elk.layered.considerModelOrder.crossingCounterPortInfluence",Vie="layering",n4t="layering.minWidth",r4t="layering.nodePromotion",DA="crossingMinimization",BU="org.eclipse.elk.hierarchyHandling",i4t="crossingMinimization.greedySwitch",o4t="nodePlacement",s4t="nodePlacement.bk",l4t="edgeRouting",CM="org.eclipse.elk.edgeRouting",uh="spacing",kxe="priority",Rxe="compaction",a4t="compaction.postCompaction",c4t="Specifies whether and how post-process compaction is applied.",xxe="highDegreeNodes",Cxe="wrapping",u4t="wrapping.cutting",f4t="wrapping.validify",Axe="wrapping.multiEdge",zie="edgeLabels",gI="considerModelOrder",Txe="org.eclipse.elk.spacing.commentComment",$xe="org.eclipse.elk.spacing.commentNode",Ixe="org.eclipse.elk.spacing.edgeEdge",Kie="org.eclipse.elk.spacing.edgeNode",Pxe="org.eclipse.elk.spacing.labelLabel",Oxe="org.eclipse.elk.spacing.labelPortHorizontal",Nxe="org.eclipse.elk.spacing.labelPortVertical",Mxe="org.eclipse.elk.spacing.labelNode",Dxe="org.eclipse.elk.spacing.nodeSelfLoop",Lxe="org.eclipse.elk.spacing.portPort",jxe="org.eclipse.elk.spacing.individual",Fxe="org.eclipse.elk.port.borderOffset",Bxe="org.eclipse.elk.noLayout",Wxe="org.eclipse.elk.port.side",AM="org.eclipse.elk.debugMode",Hxe="org.eclipse.elk.alignment",Uxe="org.eclipse.elk.insideSelfLoops.activate",Gxe="org.eclipse.elk.insideSelfLoops.yo",qie="org.eclipse.elk.direction",Vxe="org.eclipse.elk.nodeLabels.padding",zxe="org.eclipse.elk.portLabels.nextToPortIfPossible",Kxe="org.eclipse.elk.portLabels.treatAsGroup",qxe="org.eclipse.elk.portAlignment.default",Xxe="org.eclipse.elk.portAlignment.north",Jxe="org.eclipse.elk.portAlignment.south",Yxe="org.eclipse.elk.portAlignment.west",Qxe="org.eclipse.elk.portAlignment.east",WU="org.eclipse.elk.contentAlignment",Zxe="org.eclipse.elk.junctionPoints",eCe="org.eclipse.elk.edgeLabels.placement",tCe="org.eclipse.elk.port.index",nCe="org.eclipse.elk.commentBox",rCe="org.eclipse.elk.hypernode",iCe="org.eclipse.elk.port.anchor",Xie="org.eclipse.elk.partitioning.activate",Jie="org.eclipse.elk.partitioning.partition",HU="org.eclipse.elk.position",oCe="org.eclipse.elk.margins",sCe="org.eclipse.elk.spacing.portsSurrounding",UU="org.eclipse.elk.interactiveLayout",Ol="org.eclipse.elk.core.util",lCe={3:1,4:1,5:1,601:1},d4t="NETWORK_SIMPLEX",aCe="SIMPLE",$s={106:1,47:1},GU="org.eclipse.elk.alg.layered.p1cycles",$b="org.eclipse.elk.alg.layered.p2layers",cCe={413:1,230:1},h4t={846:1,3:1,4:1},mc="org.eclipse.elk.alg.layered.p3order",Is="org.eclipse.elk.alg.layered.p4nodes",p4t={3:1,4:1,5:1,854:1},Qh=1e-5,q1="org.eclipse.elk.alg.layered.p4nodes.bk",Yie="org.eclipse.elk.alg.layered.p5edges",Md="org.eclipse.elk.alg.layered.p5edges.orthogonal",Qie="org.eclipse.elk.alg.layered.p5edges.orthogonal.direction",Zie=1e-6,y_="org.eclipse.elk.alg.layered.p5edges.splines",eoe=.09999999999999998,VU=1e-8,b4t=4.71238898038469,uCe=3.141592653589793,Ib="org.eclipse.elk.alg.mrtree",toe=.10000000149011612,zU="SUPER_ROOT",wI="org.eclipse.elk.alg.mrtree.graph",fCe=-17976931348623157e292,ba="org.eclipse.elk.alg.mrtree.intermediate",g4t="Processor compute fanout",KU={3:1,6:1,4:1,5:1,534:1,100:1,115:1},w4t="Set neighbors in level",TM="org.eclipse.elk.alg.mrtree.options",m4t="DESCENDANTS",dCe="org.eclipse.elk.mrtree.compaction",hCe="org.eclipse.elk.mrtree.edgeEndTextureLength",pCe="org.eclipse.elk.mrtree.treeLevel",bCe="org.eclipse.elk.mrtree.positionConstraint",gCe="org.eclipse.elk.mrtree.weighting",wCe="org.eclipse.elk.mrtree.edgeRoutingMode",mCe="org.eclipse.elk.mrtree.searchOrder",y4t="Position Constraint",Wa="org.eclipse.elk.mrtree",v4t="org.eclipse.elk.tree",_4t="Processor arrange level",LA="org.eclipse.elk.alg.mrtree.p2order",lu="org.eclipse.elk.alg.mrtree.p4route",yCe="org.eclipse.elk.alg.radial",kw=6.283185307179586,vCe="Before",_Ce=5e-324,qU="After",SCe="org.eclipse.elk.alg.radial.intermediate",S4t="COMPACTION",noe="org.eclipse.elk.alg.radial.intermediate.compaction",E4t={3:1,4:1,5:1,100:1},ECe="org.eclipse.elk.alg.radial.intermediate.optimization",roe="No implementation is available for the layout option ",mI="org.eclipse.elk.alg.radial.options",kCe="org.eclipse.elk.radial.centerOnRoot",RCe="org.eclipse.elk.radial.orderId",xCe="org.eclipse.elk.radial.radius",XU="org.eclipse.elk.radial.rotate",ioe="org.eclipse.elk.radial.compactor",ooe="org.eclipse.elk.radial.compactionStepSize",CCe="org.eclipse.elk.radial.sorter",ACe="org.eclipse.elk.radial.wedgeCriteria",TCe="org.eclipse.elk.radial.optimizationCriteria",soe="org.eclipse.elk.radial.rotation.targetAngle",loe="org.eclipse.elk.radial.rotation.computeAdditionalWedgeSpace",$Ce="org.eclipse.elk.radial.rotation.outgoingEdgeAngles",k4t="Compaction",ICe="rotation",rf="org.eclipse.elk.radial",R4t="org.eclipse.elk.alg.radial.p1position.wedge",PCe="org.eclipse.elk.alg.radial.sorting",x4t=5.497787143782138,C4t=3.9269908169872414,A4t=2.356194490192345,T4t="org.eclipse.elk.alg.rectpacking",JU="org.eclipse.elk.alg.rectpacking.intermediate",aoe="org.eclipse.elk.alg.rectpacking.options",OCe="org.eclipse.elk.rectpacking.trybox",NCe="org.eclipse.elk.rectpacking.currentPosition",MCe="org.eclipse.elk.rectpacking.desiredPosition",DCe="org.eclipse.elk.rectpacking.inNewRow",LCe="org.eclipse.elk.rectpacking.widthApproximation.strategy",jCe="org.eclipse.elk.rectpacking.widthApproximation.targetWidth",FCe="org.eclipse.elk.rectpacking.widthApproximation.optimizationGoal",BCe="org.eclipse.elk.rectpacking.widthApproximation.lastPlaceShift",WCe="org.eclipse.elk.rectpacking.packing.strategy",HCe="org.eclipse.elk.rectpacking.packing.compaction.rowHeightReevaluation",UCe="org.eclipse.elk.rectpacking.packing.compaction.iterations",GCe="org.eclipse.elk.rectpacking.whiteSpaceElimination.strategy",coe="widthApproximation",$4t="Compaction Strategy",I4t="packing.compaction",zc="org.eclipse.elk.rectpacking",jA="org.eclipse.elk.alg.rectpacking.p1widthapproximation",YU="org.eclipse.elk.alg.rectpacking.p2packing",P4t="No Compaction",VCe="org.eclipse.elk.alg.rectpacking.p3whitespaceelimination",$M="org.eclipse.elk.alg.rectpacking.util",QU="No implementation available for ",v_="org.eclipse.elk.alg.spore",__="org.eclipse.elk.alg.spore.options",dy="org.eclipse.elk.sporeCompaction",uoe="org.eclipse.elk.underlyingLayoutAlgorithm",zCe="org.eclipse.elk.processingOrder.treeConstruction",KCe="org.eclipse.elk.processingOrder.spanningTreeCostFunction",foe="org.eclipse.elk.processingOrder.preferredRoot",doe="org.eclipse.elk.processingOrder.rootSelection",hoe="org.eclipse.elk.structure.structureExtractionStrategy",qCe="org.eclipse.elk.compaction.compactionStrategy",XCe="org.eclipse.elk.compaction.orthogonal",JCe="org.eclipse.elk.overlapRemoval.maxIterations",YCe="org.eclipse.elk.overlapRemoval.runScanline",poe="processingOrder",O4t="overlapRemoval",FA="org.eclipse.elk.sporeOverlap",N4t="org.eclipse.elk.alg.spore.p1structure",boe="org.eclipse.elk.alg.spore.p2processingorder",goe="org.eclipse.elk.alg.spore.p3execution",M4t="Topdown Layout",D4t="Invalid index: ",BA="org.eclipse.elk.core.alg",$2={341:1},S_={295:1},L4t="Make sure its type is registered with the ",QCe=" utility class.",WA="true",woe="false",j4t="Couldn't clone property '",hy=.05,Kc="org.eclipse.elk.core.options",F4t=1.2999999523162842,py="org.eclipse.elk.box",ZCe="org.eclipse.elk.expandNodes",eAe="org.eclipse.elk.box.packingMode",B4t="org.eclipse.elk.algorithm",W4t="org.eclipse.elk.resolvedAlgorithm",tAe="org.eclipse.elk.bendPoints",cFn="org.eclipse.elk.labelManager",H4t="org.eclipse.elk.scaleFactor",U4t="org.eclipse.elk.childAreaWidth",G4t="org.eclipse.elk.childAreaHeight",V4t="org.eclipse.elk.animate",z4t="org.eclipse.elk.animTimeFactor",K4t="org.eclipse.elk.layoutAncestors",q4t="org.eclipse.elk.maxAnimTime",X4t="org.eclipse.elk.minAnimTime",J4t="org.eclipse.elk.progressBar",Y4t="org.eclipse.elk.validateGraph",Q4t="org.eclipse.elk.validateOptions",Z4t="org.eclipse.elk.zoomToFit",uFn="org.eclipse.elk.font.name",eTt="org.eclipse.elk.font.size",nAe="org.eclipse.elk.topdown.sizeApproximator",rAe="org.eclipse.elk.topdown.scaleCap",tTt="org.eclipse.elk.edge.type",nTt="partitioning",rTt="nodeLabels",ZU="portAlignment",moe="nodeSize",yoe="port",iAe="portLabels",IM="topdown",iTt="insideSelfLoops",yI="org.eclipse.elk.fixed",eG="org.eclipse.elk.random",oAe={3:1,34:1,22:1,347:1},oTt="port must have a parent node to calculate the port side",sTt="The edge needs to have exactly one edge section. Found: ",vI="org.eclipse.elk.core.util.adapters",of="org.eclipse.emf.ecore",I2="org.eclipse.elk.graph",lTt="EMapPropertyHolder",aTt="ElkBendPoint",cTt="ElkGraphElement",uTt="ElkConnectableShape",sAe="ElkEdge",fTt="ElkEdgeSection",dTt="EModelElement",hTt="ENamedElement",lAe="ElkLabel",aAe="ElkNode",cAe="ElkPort",pTt={94:1,93:1},U3="org.eclipse.emf.common.notify.impl",X1="The feature '",_I="' is not a valid changeable feature",bTt="Expecting null",voe="' is not a valid feature",gTt="The feature ID",wTt=" is not a valid feature ID",Vl=32768,mTt={110:1,94:1,93:1,58:1,54:1,99:1},fn="org.eclipse.emf.ecore.impl",Rw="org.eclipse.elk.graph.impl",SI="Recursive containment not allowed for ",HA="The datatype '",by="' is not a valid classifier",_oe="The value '",P2={195:1,3:1,4:1},Soe="The class '",UA="http://www.eclipse.org/elk/ElkGraph",uAe="property",EI="value",Eoe="source",yTt="properties",vTt="identifier",koe="height",Roe="width",xoe="parent",Coe="text",Aoe="children",_Tt="hierarchical",fAe="sources",Toe="targets",dAe="sections",tG="bendPoints",hAe="outgoingShape",pAe="incomingShape",bAe="outgoingSections",gAe="incomingSections",hs="org.eclipse.emf.common.util",wAe="Severe implementation error in the Json to ElkGraph importer.",Zh="id",zo="org.eclipse.elk.graph.json",mAe="Unhandled parameter types: ",STt="startPoint",ETt="An edge must have at least one source and one target (edge id: '",GA="').",kTt="Referenced edge section does not exist: ",RTt=" (edge id: '",yAe="target",xTt="sourcePoint",CTt="targetPoint",nG="group",Tr="name",ATt="connectableShape cannot be null",TTt="edge cannot be null",$oe="Passed edge is not 'simple'.",rG="org.eclipse.elk.graph.util",PM="The 'no duplicates' constraint is violated",Ioe="targetIndex=",xw=", size=",Poe="sourceIndex=",ep={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1},Ooe={3:1,4:1,20:1,31:1,56:1,16:1,51:1,15:1,59:1,70:1,66:1,61:1,596:1},iG="logging",$Tt="measureExecutionTime",ITt="parser.parse.1",PTt="parser.parse.2",oG="parser.next.1",Noe="parser.next.2",OTt="parser.next.3",NTt="parser.next.4",Cw="parser.factor.1",vAe="parser.factor.2",MTt="parser.factor.3",DTt="parser.factor.4",LTt="parser.factor.5",jTt="parser.factor.6",FTt="parser.atom.1",BTt="parser.atom.2",WTt="parser.atom.3",_Ae="parser.atom.4",Moe="parser.atom.5",SAe="parser.cc.1",sG="parser.cc.2",HTt="parser.cc.3",UTt="parser.cc.5",EAe="parser.cc.6",kAe="parser.cc.7",Doe="parser.cc.8",GTt="parser.ope.1",VTt="parser.ope.2",zTt="parser.ope.3",Pg="parser.descape.1",KTt="parser.descape.2",qTt="parser.descape.3",XTt="parser.descape.4",JTt="parser.descape.5",sf="parser.process.1",YTt="parser.quantifier.1",QTt="parser.quantifier.2",ZTt="parser.quantifier.3",e$t="parser.quantifier.4",RAe="parser.quantifier.5",t$t="org.eclipse.emf.common.notify",xAe={424:1,686:1},n$t={3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1},OM={378:1,152:1},kI="index=",Loe={3:1,4:1,5:1,129:1},r$t={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,61:1},CAe={3:1,6:1,4:1,5:1,198:1},i$t={3:1,4:1,5:1,173:1,379:1},o$t=";/?:@&=+$,",s$t="invalid authority: ",l$t="EAnnotation",a$t="ETypedElement",c$t="EStructuralFeature",u$t="EAttribute",f$t="EClassifier",d$t="EEnumLiteral",h$t="EGenericType",p$t="EOperation",b$t="EParameter",g$t="EReference",w$t="ETypeParameter",fi="org.eclipse.emf.ecore.util",joe={79:1},AAe={3:1,20:1,16:1,15:1,61:1,597:1,79:1,71:1,97:1},m$t="org.eclipse.emf.ecore.util.FeatureMap$Entry",yc=8192,E_=2048,RI="byte",lG="char",xI="double",CI="float",AI="int",TI="long",$I="short",y$t="java.lang.Object",O2={3:1,4:1,5:1,254:1},TAe={3:1,4:1,5:1,688:1},v$t={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,71:1},hl={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,79:1,71:1,97:1},NM="mixed",pr="http:///org/eclipse/emf/ecore/util/ExtendedMetaData",kf="kind",_$t={3:1,4:1,5:1,689:1},$Ae={3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1,79:1,71:1,97:1},aG={20:1,31:1,56:1,16:1,15:1,61:1,71:1},cG={51:1,128:1,287:1},uG={76:1,343:1},fG="The value of type '",dG="' must be of type '",N2=1352,Rf="http://www.eclipse.org/emf/2002/Ecore",hG=-32768,gy="constraints",Zo="baseType",S$t="getEStructuralFeature",E$t="getFeatureID",II="feature",k$t="getOperationID",IAe="operation",R$t="defaultValue",x$t="eTypeParameters",C$t="isInstance",A$t="getEEnumLiteral",T$t="eContainingClass",Rr={57:1},$$t={3:1,4:1,5:1,124:1},I$t="org.eclipse.emf.ecore.resource",P$t={94:1,93:1,599:1,2034:1},Foe="org.eclipse.emf.ecore.resource.impl",PAe="unspecified",MM="simple",pG="attribute",O$t="attributeWildcard",bG="element",Boe="elementWildcard",Dd="collapse",Woe="itemType",gG="namespace",DM="##targetNamespace",xf="whiteSpace",OAe="wildcards",Aw="http://www.eclipse.org/emf/2003/XMLType",Hoe="##any",VA="uninitialized",LM="The multiplicity constraint is violated",wG="org.eclipse.emf.ecore.xml.type",N$t="ProcessingInstruction",M$t="SimpleAnyType",D$t="XMLTypeDocumentRoot",Yi="org.eclipse.emf.ecore.xml.type.impl",jM="INF",L$t="processing",j$t="ENTITIES_._base",NAe="minLength",MAe="ENTITY",mG="NCName",F$t="IDREFS_._base",DAe="integer",Uoe="token",Goe="pattern",B$t="[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*",LAe="\\i\\c*",W$t="[\\i-[:]][\\c-[:]]*",H$t="nonPositiveInteger",FM="maxInclusive",jAe="NMTOKEN",U$t="NMTOKENS_._base",FAe="nonNegativeInteger",BM="minInclusive",G$t="normalizedString",V$t="unsignedByte",z$t="unsignedInt",K$t="18446744073709551615",q$t="unsignedShort",X$t="processingInstruction",Og="org.eclipse.emf.ecore.xml.type.internal",zA=1114111,J$t="Internal Error: shorthands: \\u",PI="xml:isDigit",Voe="xml:isWord",zoe="xml:isSpace",Koe="xml:isNameChar",qoe="xml:isInitialNameChar",Y$t="09٠٩۰۹०९০৯੦੯૦૯୦୯௧௯౦౯೦೯൦൯๐๙໐໙༠༩",Q$t="AZazÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁΆΆΈΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆאתװײءغفيٱڷںھۀێېۓەەۥۦअहऽऽक़ॡঅঌএঐওনপরললশহড়ঢ়য়ৡৰৱਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹਖ਼ੜਫ਼ਫ਼ੲੴઅઋઍઍએઑઓનપરલળવહઽઽૠૠଅଌଏଐଓନପରଲଳଶହଽଽଡ଼ଢ଼ୟୡஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹఅఌఎఐఒనపళవహౠౡಅಌಎಐಒನಪಳವಹೞೞೠೡഅഌഎഐഒനപഹൠൡกฮะะาำเๅກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະະາຳຽຽເໄཀཇཉཀྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼΩΩKÅ℮℮ↀↂ〇〇〡〩ぁゔァヺㄅㄬ一龥가힣",Z$t="Private Use",Xoe="ASSIGNED",Joe="\0€ÿĀſƀɏɐʯʰ˿̀ͯͰϿЀӿ԰֏֐׿؀ۿ܀ݏހ޿ऀॿঀ৿਀੿઀૿଀୿஀௿ఀ౿ಀ೿ഀൿ඀෿฀๿຀໿ༀ࿿က႟Ⴀჿᄀᇿሀ፿Ꭰ᏿᐀ᙿ ᚟ᚠ᛿ក៿᠀᢯Ḁỿἀ῿ ⁰₟₠⃏⃐⃿℀⅏⅐↏←⇿∀⋿⌀⏿␀␿⑀⑟①⓿─╿▀▟■◿☀⛿✀➿⠀⣿⺀⻿⼀⿟⿰⿿ 〿぀ゟ゠ヿ㄀ㄯ㄰㆏㆐㆟ㆠㆿ㈀㋿㌀㏿㐀䶵一鿿ꀀ꒏꒐꓏가힣豈﫿ffﭏﭐ﷿︠︯︰﹏﹐﹯ﹰ﻾\uFEFF\uFEFF＀￯",BAe="UNASSIGNED",KA={3:1,122:1},e6t="org.eclipse.emf.ecore.xml.type.util",yG={3:1,4:1,5:1,381:1},WAe="org.eclipse.xtext.xbase.lib",t6t="Cannot add elements to a Range",n6t="Cannot set elements in a Range",r6t="Cannot remove elements from a Range",i6t="user.agent",p,vG,Yoe;h.goog=h.goog||{},h.goog.global=h.goog.global||h,vG={},P(1,null,{},v),p.Fb=function(t){return nft(this,t)},p.Gb=function(){return this.Rm},p.Hb=function(){return xm(this)},p.Ib=function(){var t;return z0(ou(this))+"@"+(t=ti(this)>>>0,t.toString(16))},p.equals=function(e){return this.Fb(e)},p.hashCode=function(){return this.Hb()},p.toString=function(){return this.Ib()};var o6t,s6t,l6t;P(297,1,{297:1,2124:1},DSe),p.ve=function(t){var i;return i=new DSe,i.i=4,t>1?i.c=kgt(this,t-1):i.c=this,i},p.we=function(){return cb(this),this.b},p.xe=function(){return z0(this)},p.ye=function(){return cb(this),this.k},p.ze=function(){return(this.i&4)!=0},p.Ae=function(){return(this.i&1)!=0},p.Ib=function(){return K_e(this)},p.i=0;var ho=N(Pl,"Object",1),HAe=N(Pl,"Class",297);P(2096,1,iM),N(oM,"Optional",2096),P(1191,2096,iM,y),p.Fb=function(t){return t===this},p.Hb=function(){return 2040732332},p.Ib=function(){return"Optional.absent()"},p.Jb=function(t){return nr(t),i$(),Qoe};var Qoe;N(oM,"Absent",1191),P(636,1,{},OY),N(oM,"Joiner",636);var fFn=Ei(oM,"Predicate");P(589,1,{178:1,589:1,3:1,46:1},Int),p.Mb=function(t){return kvt(this,t)},p.Lb=function(t){return kvt(this,t)},p.Fb=function(t){var i;return ve(t,589)?(i=f(t,589),Oke(this.a,i.a)):!1},p.Hb=function(){return HSe(this.a)+306654252},p.Ib=function(){return YIn(this.a)},N(oM,"Predicates/AndPredicate",589),P(419,2096,{419:1,3:1},Hj),p.Fb=function(t){var i;return ve(t,419)?(i=f(t,419),Lr(this.a,i.a)):!1},p.Hb=function(){return 1502476572+ti(this.a)},p.Ib=function(){return PCt+this.a+")"},p.Jb=function(t){return new Hj(HB(t.Kb(this.a),"the Function passed to Optional.transform() must not return null."))},N(oM,"Present",419),P(204,1,SA),p.Nb=function(t){Uo(this,t)},p.Qb=function(){Vlt()},N(Ft,"UnmodifiableIterator",204),P(2076,204,EA),p.Qb=function(){Vlt()},p.Rb=function(t){throw ne(new rr)},p.Wb=function(t){throw ne(new rr)},N(Ft,"UnmodifiableListIterator",2076),P(399,2076,EA),p.Ob=function(){return this.c0},p.Pb=function(){if(this.c>=this.d)throw ne(new yl);return this.Xb(this.c++)},p.Tb=function(){return this.c},p.Ub=function(){if(this.c<=0)throw ne(new yl);return this.Xb(--this.c)},p.Vb=function(){return this.c-1},p.c=0,p.d=0,N(Ft,"AbstractIndexedListIterator",399),P(713,204,SA),p.Ob=function(){return Mee(this)},p.Pb=function(){return W_e(this)},p.e=1,N(Ft,"AbstractIterator",713),P(2084,1,{229:1}),p.Zb=function(){var t;return t=this.f,t||(this.f=this.ac())},p.Fb=function(t){return rte(this,t)},p.Hb=function(){return ti(this.Zb())},p.dc=function(){return this.gc()==0},p.ec=function(){return Zk(this)},p.Ib=function(){return dl(this.Zb())},N(Ft,"AbstractMultimap",2084),P(742,2084,mw),p.$b=function(){PW(this)},p._b=function(t){return uat(this,t)},p.ac=function(){return new Yx(this,this.c)},p.ic=function(t){return this.hc()},p.bc=function(){return new XS(this,this.c)},p.jc=function(){return this.mc(this.hc())},p.kc=function(){return new Tlt(this)},p.lc=function(){return dne(this.c.vc().Nc(),new A,64,this.d)},p.cc=function(t){return Hr(this,t)},p.fc=function(t){return wN(this,t)},p.gc=function(){return this.d},p.mc=function(t){return Kt(),new jx(t)},p.nc=function(){return new Alt(this)},p.oc=function(){return dne(this.c.Cc().Nc(),new E,64,this.d)},p.pc=function(t,i){return new uW(this,t,i,null)},p.d=0,N(Ft,"AbstractMapBasedMultimap",742),P(1696,742,mw),p.hc=function(){return new ka(this.a)},p.jc=function(){return Kt(),Kt(),ps},p.cc=function(t){return f(Hr(this,t),15)},p.fc=function(t){return f(wN(this,t),15)},p.Zb=function(){return o3(this)},p.Fb=function(t){return rte(this,t)},p.qc=function(t){return f(Hr(this,t),15)},p.rc=function(t){return f(wN(this,t),15)},p.mc=function(t){return jZ(f(t,15))},p.pc=function(t,i){return I1t(this,t,f(i,15),null)},N(Ft,"AbstractListMultimap",1696),P(748,1,ko),p.Nb=function(t){Uo(this,t)},p.Ob=function(){return this.c.Ob()||this.e.Ob()},p.Pb=function(){var t;return this.e.Ob()||(t=f(this.c.Pb(),44),this.b=t.ld(),this.a=f(t.md(),16),this.e=this.a.Kc()),this.sc(this.b,this.e.Pb())},p.Qb=function(){this.e.Qb(),f(mf(this.a),16).dc()&&this.c.Qb(),--this.d.d},N(Ft,"AbstractMapBasedMultimap/Itr",748),P(1129,748,ko,Alt),p.sc=function(t,i){return i},N(Ft,"AbstractMapBasedMultimap/1",1129),P(1130,1,{},E),p.Kb=function(t){return f(t,16).Nc()},N(Ft,"AbstractMapBasedMultimap/1methodref$spliterator$Type",1130),P(1131,748,ko,Tlt),p.sc=function(t,i){return new mm(t,i)},N(Ft,"AbstractMapBasedMultimap/2",1131);var UAe=Ei(Ln,"Map");P(2065,1,ay),p.wc=function(t){p6(this,t)},p.yc=function(t,i,s){return Ste(this,t,i,s)},p.$b=function(){this.vc().$b()},p.tc=function(t){return qte(this,t)},p._b=function(t){return!!IEe(this,t,!1)},p.uc=function(t){var i,s,a;for(s=this.vc().Kc();s.Ob();)if(i=f(s.Pb(),44),a=i.md(),Oe(t)===Oe(a)||t!=null&&Lr(t,a))return!0;return!1},p.Fb=function(t){var i,s,a;if(t===this)return!0;if(!ve(t,85)||(a=f(t,85),this.gc()!=a.gc()))return!1;for(s=a.vc().Kc();s.Ob();)if(i=f(s.Pb(),44),!this.tc(i))return!1;return!0},p.xc=function(t){return tl(IEe(this,t,!1))},p.Hb=function(){return PSe(this.vc())},p.dc=function(){return this.gc()==0},p.ec=function(){return new H0(this)},p.zc=function(t,i){throw ne(new ng("Put not supported on this map"))},p.Ac=function(t){h6(this,t)},p.Bc=function(t){return tl(IEe(this,t,!0))},p.gc=function(){return this.vc().gc()},p.Ib=function(){return D2t(this)},p.Cc=function(){return new ob(this)},N(Ln,"AbstractMap",2065),P(2085,2065,ay),p.bc=function(){return new uF(this)},p.vc=function(){return Cpt(this)},p.ec=function(){var t;return t=this.g,t||(this.g=this.bc())},p.Cc=function(){var t;return t=this.i,t||(this.i=new ect(this))},N(Ft,"Maps/ViewCachingAbstractMap",2085),P(402,2085,ay,Yx),p.xc=function(t){return g3n(this,t)},p.Bc=function(t){return Fxn(this,t)},p.$b=function(){this.d==this.e.c?this.e.$b():yB(new Gye(this))},p._b=function(t){return a_t(this.d,t)},p.Ec=function(){return new Pnt(this)},p.Dc=function(){return this.Ec()},p.Fb=function(t){return this===t||Lr(this.d,t)},p.Hb=function(){return ti(this.d)},p.ec=function(){return this.e.ec()},p.gc=function(){return this.d.gc()},p.Ib=function(){return dl(this.d)},N(Ft,"AbstractMapBasedMultimap/AsMap",402);var Tu=Ei(Pl,"Iterable");P(31,1,p_),p.Jc=function(t){Vo(this,t)},p.Lc=function(){return this.Oc()},p.Nc=function(){return new Vt(this,0)},p.Oc=function(){return new Wt(null,this.Nc())},p.Fc=function(t){throw ne(new ng("Add not supported on this collection"))},p.Gc=function(t){return Do(this,t)},p.$b=function(){$ve(this)},p.Hc=function(t){return e_(this,t,!1)},p.Ic=function(t){return cN(this,t)},p.dc=function(){return this.gc()==0},p.Mc=function(t){return e_(this,t,!0)},p.Pc=function(){return eve(this)},p.Qc=function(t){return P6(this,t)},p.Ib=function(){return B1(this)},N(Ln,"AbstractCollection",31);var Cf=Ei(Ln,"Set");P(lh,31,wc),p.Nc=function(){return new Vt(this,1)},p.Fb=function(t){return Z_t(this,t)},p.Hb=function(){return PSe(this)},N(Ln,"AbstractSet",lh),P(2068,lh,wc),N(Ft,"Sets/ImprovedAbstractSet",2068),P(2069,2068,wc),p.$b=function(){this.Rc().$b()},p.Hc=function(t){return L_t(this,t)},p.dc=function(){return this.Rc().dc()},p.Mc=function(t){var i;return this.Hc(t)&&ve(t,44)?(i=f(t,44),this.Rc().ec().Mc(i.ld())):!1},p.gc=function(){return this.Rc().gc()},N(Ft,"Maps/EntrySet",2069),P(1127,2069,wc,Pnt),p.Hc=function(t){return o2e(this.a.d.vc(),t)},p.Kc=function(){return new Gye(this.a)},p.Rc=function(){return this.a},p.Mc=function(t){var i;return o2e(this.a.d.vc(),t)?(i=f(mf(f(t,44)),44),ikn(this.a.e,i.ld()),!0):!1},p.Nc=function(){return v7(this.a.d.vc().Nc(),new Ont(this.a))},N(Ft,"AbstractMapBasedMultimap/AsMap/AsMapEntries",1127),P(1128,1,{},Ont),p.Kb=function(t){return T0t(this.a,f(t,44))},N(Ft,"AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type",1128),P(746,1,ko,Gye),p.Nb=function(t){Uo(this,t)},p.Pb=function(){var t;return t=f(this.b.Pb(),44),this.a=f(t.md(),16),T0t(this.c,t)},p.Ob=function(){return this.b.Ob()},p.Qb=function(){sC(!!this.a),this.b.Qb(),this.c.e.d-=this.a.gc(),this.a.$b(),this.a=null},N(Ft,"AbstractMapBasedMultimap/AsMap/AsMapIterator",746),P(542,2068,wc,uF),p.$b=function(){this.b.$b()},p.Hc=function(t){return this.b._b(t)},p.Jc=function(t){nr(t),this.b.wc(new Jnt(t))},p.dc=function(){return this.b.dc()},p.Kc=function(){return new o$(this.b.vc().Kc())},p.Mc=function(t){return this.b._b(t)?(this.b.Bc(t),!0):!1},p.gc=function(){return this.b.gc()},N(Ft,"Maps/KeySet",542),P(327,542,wc,XS),p.$b=function(){var t;yB((t=this.b.vc().Kc(),new pwe(this,t)))},p.Ic=function(t){return this.b.ec().Ic(t)},p.Fb=function(t){return this===t||Lr(this.b.ec(),t)},p.Hb=function(){return ti(this.b.ec())},p.Kc=function(){var t;return t=this.b.vc().Kc(),new pwe(this,t)},p.Mc=function(t){var i,s;return s=0,i=f(this.b.Bc(t),16),i&&(s=i.gc(),i.$b(),this.a.d-=s),s>0},p.Nc=function(){return this.b.ec().Nc()},N(Ft,"AbstractMapBasedMultimap/KeySet",327),P(747,1,ko,pwe),p.Nb=function(t){Uo(this,t)},p.Ob=function(){return this.c.Ob()},p.Pb=function(){return this.a=f(this.c.Pb(),44),this.a.ld()},p.Qb=function(){var t;sC(!!this.a),t=f(this.a.md(),16),this.c.Qb(),this.b.a.d-=t.gc(),t.$b(),this.a=null},N(Ft,"AbstractMapBasedMultimap/KeySet/1",747),P(503,402,{85:1,133:1},h7),p.bc=function(){return this.Sc()},p.ec=function(){return this.Uc()},p.Sc=function(){return new WO(this.c,this.Wc())},p.Tc=function(){return this.Wc().Tc()},p.Uc=function(){var t;return t=this.b,t||(this.b=this.Sc())},p.Vc=function(){return this.Wc().Vc()},p.Wc=function(){return f(this.d,133)},N(Ft,"AbstractMapBasedMultimap/SortedAsMap",503),P(446,503,Z3e,F$),p.bc=function(){return new Jx(this.a,f(f(this.d,133),139))},p.Sc=function(){return new Jx(this.a,f(f(this.d,133),139))},p.ec=function(){var t;return t=this.b,f(t||(this.b=new Jx(this.a,f(f(this.d,133),139))),277)},p.Uc=function(){var t;return t=this.b,f(t||(this.b=new Jx(this.a,f(f(this.d,133),139))),277)},p.Wc=function(){return f(f(this.d,133),139)},p.Xc=function(t){return f(f(this.d,133),139).Xc(t)},p.Yc=function(t){return f(f(this.d,133),139).Yc(t)},p.Zc=function(t,i){return new F$(this.a,f(f(this.d,133),139).Zc(t,i))},p.$c=function(t){return f(f(this.d,133),139).$c(t)},p._c=function(t){return f(f(this.d,133),139)._c(t)},p.ad=function(t,i){return new F$(this.a,f(f(this.d,133),139).ad(t,i))},N(Ft,"AbstractMapBasedMultimap/NavigableAsMap",446),P(502,327,OCt,WO),p.Nc=function(){return this.b.ec().Nc()},N(Ft,"AbstractMapBasedMultimap/SortedKeySet",502),P(401,502,eRe,Jx),N(Ft,"AbstractMapBasedMultimap/NavigableKeySet",401),P(551,31,p_,uW),p.Fc=function(t){var i,s;return Hc(this),s=this.d.dc(),i=this.d.Fc(t),i&&(++this.f.d,s&&w7(this)),i},p.Gc=function(t){var i,s,a;return t.dc()?!1:(a=(Hc(this),this.d.gc()),i=this.d.Gc(t),i&&(s=this.d.gc(),this.f.d+=s-a,a==0&&w7(this)),i)},p.$b=function(){var t;t=(Hc(this),this.d.gc()),t!=0&&(this.d.$b(),this.f.d-=t,RB(this))},p.Hc=function(t){return Hc(this),this.d.Hc(t)},p.Ic=function(t){return Hc(this),this.d.Ic(t)},p.Fb=function(t){return t===this?!0:(Hc(this),Lr(this.d,t))},p.Hb=function(){return Hc(this),ti(this.d)},p.Kc=function(){return Hc(this),new Cye(this)},p.Mc=function(t){var i;return Hc(this),i=this.d.Mc(t),i&&(--this.f.d,RB(this)),i},p.gc=function(){return Hut(this)},p.Nc=function(){return Hc(this),this.d.Nc()},p.Ib=function(){return Hc(this),dl(this.d)},N(Ft,"AbstractMapBasedMultimap/WrappedCollection",551);var lf=Ei(Ln,"List");P(744,551,{20:1,31:1,16:1,15:1},rve),p.jd=function(t){sw(this,t)},p.Nc=function(){return Hc(this),this.d.Nc()},p.bd=function(t,i){var s;Hc(this),s=this.d.dc(),f(this.d,15).bd(t,i),++this.a.d,s&&w7(this)},p.cd=function(t,i){var s,a,c;return i.dc()?!1:(c=(Hc(this),this.d.gc()),s=f(this.d,15).cd(t,i),s&&(a=this.d.gc(),this.a.d+=a-c,c==0&&w7(this)),s)},p.Xb=function(t){return Hc(this),f(this.d,15).Xb(t)},p.dd=function(t){return Hc(this),f(this.d,15).dd(t)},p.ed=function(){return Hc(this),new mft(this)},p.fd=function(t){return Hc(this),new Wbt(this,t)},p.gd=function(t){var i;return Hc(this),i=f(this.d,15).gd(t),--this.a.d,RB(this),i},p.hd=function(t,i){return Hc(this),f(this.d,15).hd(t,i)},p.kd=function(t,i){return Hc(this),I1t(this.a,this.e,f(this.d,15).kd(t,i),this.b?this.b:this)},N(Ft,"AbstractMapBasedMultimap/WrappedList",744),P(1126,744,{20:1,31:1,16:1,15:1,59:1},ldt),N(Ft,"AbstractMapBasedMultimap/RandomAccessWrappedList",1126),P(628,1,ko,Cye),p.Nb=function(t){Uo(this,t)},p.Ob=function(){return wC(this),this.b.Ob()},p.Pb=function(){return wC(this),this.b.Pb()},p.Qb=function(){Vft(this)},N(Ft,"AbstractMapBasedMultimap/WrappedCollection/WrappedIterator",628),P(745,628,kp,mft,Wbt),p.Qb=function(){Vft(this)},p.Rb=function(t){var i;i=Hut(this.a)==0,(wC(this),f(this.b,128)).Rb(t),++this.a.a.d,i&&w7(this.a)},p.Sb=function(){return(wC(this),f(this.b,128)).Sb()},p.Tb=function(){return(wC(this),f(this.b,128)).Tb()},p.Ub=function(){return(wC(this),f(this.b,128)).Ub()},p.Vb=function(){return(wC(this),f(this.b,128)).Vb()},p.Wb=function(t){(wC(this),f(this.b,128)).Wb(t)},N(Ft,"AbstractMapBasedMultimap/WrappedList/WrappedListIterator",745),P(743,551,OCt,zme),p.Nc=function(){return Hc(this),this.d.Nc()},N(Ft,"AbstractMapBasedMultimap/WrappedSortedSet",743),P(1125,743,eRe,hft),N(Ft,"AbstractMapBasedMultimap/WrappedNavigableSet",1125),P(1124,551,wc,Adt),p.Nc=function(){return Hc(this),this.d.Nc()},N(Ft,"AbstractMapBasedMultimap/WrappedSet",1124),P(1133,1,{},A),p.Kb=function(t){return pkn(f(t,44))},N(Ft,"AbstractMapBasedMultimap/lambda$1$Type",1133),P(1132,1,{},Lnt),p.Kb=function(t){return new mm(this.a,t)},N(Ft,"AbstractMapBasedMultimap/lambda$2$Type",1132);var Tw=Ei(Ln,"Map/Entry");P(358,1,pre),p.Fb=function(t){var i;return ve(t,44)?(i=f(t,44),Lh(this.ld(),i.ld())&&Lh(this.md(),i.md())):!1},p.Hb=function(){var t,i;return t=this.ld(),i=this.md(),(t==null?0:ti(t))^(i==null?0:ti(i))},p.nd=function(t){throw ne(new rr)},p.Ib=function(){return this.ld()+"="+this.md()},N(Ft,NCt,358),P(2086,31,p_),p.$b=function(){this.od().$b()},p.Hc=function(t){var i;return ve(t,44)?(i=f(t,44),M2n(this.od(),i.ld(),i.md())):!1},p.Mc=function(t){var i;return ve(t,44)?(i=f(t,44),d1t(this.od(),i.ld(),i.md())):!1},p.gc=function(){return this.od().d},N(Ft,"Multimaps/Entries",2086),P(749,2086,p_,K1e),p.Kc=function(){return this.a.kc()},p.od=function(){return this.a},p.Nc=function(){return this.a.lc()},N(Ft,"AbstractMultimap/Entries",749),P(750,749,wc,V0e),p.Nc=function(){return this.a.lc()},p.Fb=function(t){return YEe(this,t)},p.Hb=function(){return Eyt(this)},N(Ft,"AbstractMultimap/EntrySet",750),P(751,31,p_,q1e),p.$b=function(){this.a.$b()},p.Hc=function(t){return Oxn(this.a,t)},p.Kc=function(){return this.a.nc()},p.gc=function(){return this.a.d},p.Nc=function(){return this.a.oc()},N(Ft,"AbstractMultimap/Values",751),P(2087,31,{849:1,20:1,31:1,16:1}),p.Jc=function(t){nr(t),YS(this).Jc(new nrt(t))},p.Nc=function(){var t;return t=YS(this).Nc(),dne(t,new j,64|t.yd()&1296,this.a.d)},p.Fc=function(t){return Z0e(),!0},p.Gc=function(t){return nr(this),nr(t),ve(t,552)?j2n(f(t,849)):!t.dc()&&xee(this,t.Kc())},p.Hc=function(t){var i;return i=f(Zv(o3(this.a),t),16),(i?i.gc():0)>0},p.Fb=function(t){return sPn(this,t)},p.Hb=function(){return ti(YS(this))},p.dc=function(){return YS(this).dc()},p.Mc=function(t){return XEt(this,t,1)>0},p.Ib=function(){return dl(YS(this))},N(Ft,"AbstractMultiset",2087),P(2089,2068,wc),p.$b=function(){PW(this.a.a)},p.Hc=function(t){var i,s;return ve(t,504)?(s=f(t,425),f(s.a.md(),16).gc()<=0?!1:(i=Fgt(this.a,s.a.ld()),i==f(s.a.md(),16).gc())):!1},p.Mc=function(t){var i,s,a,c;return ve(t,504)&&(s=f(t,425),i=s.a.ld(),a=f(s.a.md(),16).gc(),a!=0)?(c=this.a,J5n(c,i,a)):!1},N(Ft,"Multisets/EntrySet",2089),P(1139,2089,wc,jnt),p.Kc=function(){return new Nlt(Cpt(o3(this.a.a)).Kc())},p.gc=function(){return o3(this.a.a).gc()},N(Ft,"AbstractMultiset/EntrySet",1139),P(627,742,mw),p.hc=function(){return this.pd()},p.jc=function(){return this.qd()},p.cc=function(t){return this.rd(t)},p.fc=function(t){return this.sd(t)},p.Zb=function(){var t;return t=this.f,t||(this.f=this.ac())},p.qd=function(){return Kt(),Kt(),xG},p.Fb=function(t){return rte(this,t)},p.rd=function(t){return f(Hr(this,t),21)},p.sd=function(t){return f(wN(this,t),21)},p.mc=function(t){return Kt(),new Vx(f(t,21))},p.pc=function(t,i){return new Adt(this,t,f(i,21))},N(Ft,"AbstractSetMultimap",627),P(1723,627,mw),p.hc=function(){return new sg(this.b)},p.pd=function(){return new sg(this.b)},p.jc=function(){return kve(new sg(this.b))},p.qd=function(){return kve(new sg(this.b))},p.cc=function(t){return f(f(Hr(this,t),21),87)},p.rd=function(t){return f(f(Hr(this,t),21),87)},p.fc=function(t){return f(f(wN(this,t),21),87)},p.sd=function(t){return f(f(wN(this,t),21),87)},p.mc=function(t){return ve(t,277)?kve(f(t,277)):(Kt(),new Ime(f(t,87)))},p.Zb=function(){var t;return t=this.f,t||(this.f=ve(this.c,139)?new F$(this,f(this.c,139)):ve(this.c,133)?new h7(this,f(this.c,133)):new Yx(this,this.c))},p.pc=function(t,i){return ve(i,277)?new hft(this,t,f(i,277)):new zme(this,t,f(i,87))},N(Ft,"AbstractSortedSetMultimap",1723),P(1724,1723,mw),p.Zb=function(){var t;return t=this.f,f(f(t||(this.f=ve(this.c,139)?new F$(this,f(this.c,139)):ve(this.c,133)?new h7(this,f(this.c,133)):new Yx(this,this.c)),133),139)},p.ec=function(){var t;return t=this.i,f(f(t||(this.i=ve(this.c,139)?new Jx(this,f(this.c,139)):ve(this.c,133)?new WO(this,f(this.c,133)):new XS(this,this.c)),87),277)},p.bc=function(){return ve(this.c,139)?new Jx(this,f(this.c,139)):ve(this.c,133)?new WO(this,f(this.c,133)):new XS(this,this.c)},N(Ft,"AbstractSortedKeySortedSetMultimap",1724),P(2109,1,{2046:1}),p.Fb=function(t){return I$n(this,t)},p.Hb=function(){var t;return PSe((t=this.g,t||(this.g=new iY(this))))},p.Ib=function(){var t;return D2t((t=this.f,t||(this.f=new Cme(this))))},N(Ft,"AbstractTable",2109),P(679,lh,wc,iY),p.$b=function(){zlt()},p.Hc=function(t){var i,s;return ve(t,479)?(i=f(t,697),s=f(Zv(Ypt(this.a),E1(i.c.e,i.b)),85),!!s&&o2e(s.vc(),new mm(E1(i.c.c,i.a),d3(i.c,i.b,i.a)))):!1},p.Kc=function(){return M_n(this.a)},p.Mc=function(t){var i,s;return ve(t,479)?(i=f(t,697),s=f(Zv(Ypt(this.a),E1(i.c.e,i.b)),85),!!s&&dCn(s.vc(),new mm(E1(i.c.c,i.a),d3(i.c,i.b,i.a)))):!1},p.gc=function(){return ept(this.a)},p.Nc=function(){return W2n(this.a)},N(Ft,"AbstractTable/CellSet",679),P(2025,31,p_,Bnt),p.$b=function(){zlt()},p.Hc=function(t){return E6n(this.a,t)},p.Kc=function(){return D_n(this.a)},p.gc=function(){return ept(this.a)},p.Nc=function(){return f1t(this.a)},N(Ft,"AbstractTable/Values",2025),P(1697,1696,mw),N(Ft,"ArrayListMultimapGwtSerializationDependencies",1697),P(520,1697,mw,DY,zve),p.hc=function(){return new ka(this.a)},p.a=0,N(Ft,"ArrayListMultimap",520),P(678,2109,{678:1,2046:1,3:1},akt),N(Ft,"ArrayTable",678),P(2021,399,EA,zft),p.Xb=function(t){return new LSe(this.a,t)},N(Ft,"ArrayTable/1",2021),P(2022,1,{},Nnt),p.td=function(t){return new LSe(this.a,t)},N(Ft,"ArrayTable/1methodref$getCell$Type",2022),P(2110,1,{697:1}),p.Fb=function(t){var i;return t===this?!0:ve(t,479)?(i=f(t,697),Lh(E1(this.c.e,this.b),E1(i.c.e,i.b))&&Lh(E1(this.c.c,this.a),E1(i.c.c,i.a))&&Lh(d3(this.c,this.b,this.a),d3(i.c,i.b,i.a))):!1},p.Hb=function(){return gN(se(ie(ho,1),on,1,5,[E1(this.c.e,this.b),E1(this.c.c,this.a),d3(this.c,this.b,this.a)]))},p.Ib=function(){return"("+E1(this.c.e,this.b)+","+E1(this.c.c,this.a)+")="+d3(this.c,this.b,this.a)},N(Ft,"Tables/AbstractCell",2110),P(479,2110,{479:1,697:1},LSe),p.a=0,p.b=0,p.d=0,N(Ft,"ArrayTable/2",479),P(2024,1,{},Mnt),p.td=function(t){return Dwt(this.a,t)},N(Ft,"ArrayTable/2methodref$getValue$Type",2024),P(2023,399,EA,Kft),p.Xb=function(t){return Dwt(this.a,t)},N(Ft,"ArrayTable/3",2023),P(2077,2065,ay),p.$b=function(){yB(this.kc())},p.vc=function(){return new Xnt(this)},p.lc=function(){return new Ibt(this.kc(),this.gc())},N(Ft,"Maps/IteratorBasedAbstractMap",2077),P(842,2077,ay),p.$b=function(){throw ne(new rr)},p._b=function(t){return fat(this.c,t)},p.kc=function(){return new qft(this,this.c.b.c.gc())},p.lc=function(){return oZ(this.c.b.c.gc(),16,new Dnt(this))},p.xc=function(t){var i;return i=f(B$(this.c,t),17),i?this.vd(i.a):null},p.dc=function(){return this.c.b.c.dc()},p.ec=function(){return hZ(this.c)},p.zc=function(t,i){var s;if(s=f(B$(this.c,t),17),!s)throw ne(new hn(this.ud()+" "+t+" not in "+hZ(this.c)));return this.wd(s.a,i)},p.Bc=function(t){throw ne(new rr)},p.gc=function(){return this.c.b.c.gc()},N(Ft,"ArrayTable/ArrayMap",842),P(2020,1,{},Dnt),p.td=function(t){return Zpt(this.a,t)},N(Ft,"ArrayTable/ArrayMap/0methodref$getEntry$Type",2020),P(2018,358,pre,Lat),p.ld=function(){return X1n(this.a,this.b)},p.md=function(){return this.a.vd(this.b)},p.nd=function(t){return this.a.wd(this.b,t)},p.b=0,N(Ft,"ArrayTable/ArrayMap/1",2018),P(2019,399,EA,qft),p.Xb=function(t){return Zpt(this.a,t)},N(Ft,"ArrayTable/ArrayMap/2",2019),P(2017,842,ay,Bpt),p.ud=function(){return"Column"},p.vd=function(t){return d3(this.b,this.a,t)},p.wd=function(t,i){return cvt(this.b,this.a,t,i)},p.a=0,N(Ft,"ArrayTable/Row",2017),P(843,842,ay,Cme),p.vd=function(t){return new Bpt(this.a,t)},p.zc=function(t,i){return f(i,85),gbn()},p.wd=function(t,i){return f(i,85),wbn()},p.ud=function(){return"Row"},N(Ft,"ArrayTable/RowMap",843),P(1157,1,Cu,jat),p.Ad=function(t){return(this.a.yd()&-262&t)!=0},p.yd=function(){return this.a.yd()&-262},p.zd=function(){return this.a.zd()},p.Nb=function(t){this.a.Nb(new Bat(t,this.b))},p.Bd=function(t){return this.a.Bd(new Fat(t,this.b))},N(Ft,"CollectSpliterators/1",1157),P(1158,1,Rn,Fat),p.Cd=function(t){this.a.Cd(this.b.Kb(t))},N(Ft,"CollectSpliterators/1/lambda$0$Type",1158),P(1159,1,Rn,Bat),p.Cd=function(t){this.a.Cd(this.b.Kb(t))},N(Ft,"CollectSpliterators/1/lambda$1$Type",1159),P(1154,1,Cu,cht),p.Ad=function(t){return((16464|this.b)&t)!=0},p.yd=function(){return 16464|this.b},p.zd=function(){return this.a.zd()},p.Nb=function(t){this.a.Qe(new Hat(t,this.c))},p.Bd=function(t){return this.a.Re(new Wat(t,this.c))},p.b=0,N(Ft,"CollectSpliterators/1WithCharacteristics",1154),P(1155,1,sM,Wat),p.Dd=function(t){this.a.Cd(this.b.td(t))},N(Ft,"CollectSpliterators/1WithCharacteristics/lambda$0$Type",1155),P(1156,1,sM,Hat),p.Dd=function(t){this.a.Cd(this.b.td(t))},N(Ft,"CollectSpliterators/1WithCharacteristics/lambda$1$Type",1156),P(1150,1,Cu),p.Ad=function(t){return(this.a&t)!=0},p.yd=function(){return this.a},p.zd=function(){return this.e&&(this.b=bme(this.b,this.e.zd())),bme(this.b,0)},p.Nb=function(t){this.e&&(this.e.Nb(t),this.e=null),this.c.Nb(new Uat(this,t)),this.b=0},p.Bd=function(t){for(;;){if(this.e&&this.e.Bd(t))return T$(this.b,lM)&&(this.b=vf(this.b,1)),!0;if(this.e=null,!this.c.Bd(new Wnt(this)))return!1}},p.a=0,p.b=0,N(Ft,"CollectSpliterators/FlatMapSpliterator",1150),P(1152,1,Rn,Wnt),p.Cd=function(t){K0n(this.a,t)},N(Ft,"CollectSpliterators/FlatMapSpliterator/lambda$0$Type",1152),P(1153,1,Rn,Uat),p.Cd=function(t){m_n(this.a,this.b,t)},N(Ft,"CollectSpliterators/FlatMapSpliterator/lambda$1$Type",1153),P(1151,1150,Cu,T1t),N(Ft,"CollectSpliterators/FlatMapSpliteratorOfObject",1151),P(253,1,bre),p.Fd=function(t){return this.Ed(f(t,253))},p.Ed=function(t){var i;return t==(xY(),ese)?1:t==(RY(),Zoe)?-1:(i=(pB(),iN(this.a,t.a)),i!=0?i:ve(this,526)==ve(t,526)?0:ve(this,526)?1:-1)},p.Id=function(){return this.a},p.Fb=function(t){return rEe(this,t)},N(Ft,"Cut",253),P(1823,253,bre,Clt),p.Ed=function(t){return t==this?0:1},p.Gd=function(t){throw ne(new x0e)},p.Hd=function(t){t.a+="+∞)"},p.Id=function(){throw ne(new Us(DCt))},p.Hb=function(){return lb(),H2e(this)},p.Jd=function(t){return!1},p.Ib=function(){return"+∞"};var Zoe;N(Ft,"Cut/AboveAll",1823),P(526,253,{253:1,526:1,3:1,34:1},edt),p.Gd=function(t){aa((t.a+="(",t),this.a)},p.Hd=function(t){Q0(aa(t,this.a),93)},p.Hb=function(){return~ti(this.a)},p.Jd=function(t){return pB(),iN(this.a,t)<0},p.Ib=function(){return"/"+this.a+"\\"},N(Ft,"Cut/AboveValue",526),P(1822,253,bre,xlt),p.Ed=function(t){return t==this?0:-1},p.Gd=function(t){t.a+="(-∞"},p.Hd=function(t){throw ne(new x0e)},p.Id=function(){throw ne(new Us(DCt))},p.Hb=function(){return lb(),H2e(this)},p.Jd=function(t){return!0},p.Ib=function(){return"-∞"};var ese;N(Ft,"Cut/BelowAll",1822),P(1824,253,bre,tdt),p.Gd=function(t){aa((t.a+="[",t),this.a)},p.Hd=function(t){Q0(aa(t,this.a),41)},p.Hb=function(){return ti(this.a)},p.Jd=function(t){return pB(),iN(this.a,t)<=0},p.Ib=function(){return"\\"+this.a+"/"},N(Ft,"Cut/BelowValue",1824),P(547,1,Rp),p.Jc=function(t){Vo(this,t)},p.Ib=function(){return OCn(f(HB(this,"use Optional.orNull() instead of Optional.or(null)"),20).Kc())},N(Ft,"FluentIterable",547),P(442,547,Rp,P$),p.Kc=function(){return new kn(xn(this.a.Kc(),new O))},N(Ft,"FluentIterable/2",442),P(1059,547,Rp,cft),p.Kc=function(){return wp(this)},N(Ft,"FluentIterable/3",1059),P(724,399,EA,Ame),p.Xb=function(t){return this.a[t].Kc()},N(Ft,"FluentIterable/3/1",724),P(2070,1,{}),p.Ib=function(){return dl(this.Kd().b)},N(Ft,"ForwardingObject",2070),P(2071,2070,LCt),p.Kd=function(){return this.Ld()},p.Jc=function(t){Vo(this,t)},p.Lc=function(){return this.Oc()},p.Nc=function(){return new Vt(this,0)},p.Oc=function(){return new Wt(null,this.Nc())},p.Fc=function(t){return this.Ld(),hat()},p.Gc=function(t){return this.Ld(),pat()},p.$b=function(){this.Ld(),bat()},p.Hc=function(t){return this.Ld().Hc(t)},p.Ic=function(t){return this.Ld().Ic(t)},p.dc=function(){return this.Ld().b.dc()},p.Kc=function(){return this.Ld().Kc()},p.Mc=function(t){return this.Ld(),gat()},p.gc=function(){return this.Ld().b.gc()},p.Pc=function(){return this.Ld().Pc()},p.Qc=function(t){return this.Ld().Qc(t)},N(Ft,"ForwardingCollection",2071),P(2078,31,tRe),p.Kc=function(){return this.Od()},p.Fc=function(t){throw ne(new rr)},p.Gc=function(t){throw ne(new rr)},p.Md=function(){var t;return t=this.c,t||(this.c=this.Nd())},p.$b=function(){throw ne(new rr)},p.Hc=function(t){return t!=null&&e_(this,t,!1)},p.Nd=function(){switch(this.gc()){case 0:return Om(),Om(),tse;case 1:return Om(),new sZ(nr(this.Od().Pb()));default:return new lve(this,this.Pc())}},p.Mc=function(t){throw ne(new rr)},N(Ft,"ImmutableCollection",2078),P(727,2078,tRe,k0e),p.Kc=function(){return h3(this.a.Kc())},p.Hc=function(t){return t!=null&&this.a.Hc(t)},p.Ic=function(t){return this.a.Ic(t)},p.dc=function(){return this.a.dc()},p.Od=function(){return h3(this.a.Kc())},p.gc=function(){return this.a.gc()},p.Pc=function(){return this.a.Pc()},p.Qc=function(t){return this.a.Qc(t)},p.Ib=function(){return dl(this.a)},N(Ft,"ForwardingImmutableCollection",727),P(307,2078,kA),p.Kc=function(){return this.Od()},p.ed=function(){return this.Pd(0)},p.fd=function(t){return this.Pd(t)},p.jd=function(t){sw(this,t)},p.Nc=function(){return new Vt(this,16)},p.kd=function(t,i){return this.Qd(t,i)},p.bd=function(t,i){throw ne(new rr)},p.cd=function(t,i){throw ne(new rr)},p.Md=function(){return this},p.Fb=function(t){return q8n(this,t)},p.Hb=function(){return HRn(this)},p.dd=function(t){return t==null?-1:fTn(this,t)},p.Od=function(){return this.Pd(0)},p.Pd=function(t){return jQ(this,t)},p.gd=function(t){throw ne(new rr)},p.hd=function(t,i){throw ne(new rr)},p.Qd=function(t,i){var s;return ZW((s=new Zat(this),new dg(s,t,i)))};var tse;N(Ft,"ImmutableList",307),P(2105,307,kA),p.Kc=function(){return h3(this.Rd().Kc())},p.kd=function(t,i){return ZW(this.Rd().kd(t,i))},p.Hc=function(t){return t!=null&&this.Rd().Hc(t)},p.Ic=function(t){return this.Rd().Ic(t)},p.Fb=function(t){return Lr(this.Rd(),t)},p.Xb=function(t){return E1(this,t)},p.Hb=function(){return ti(this.Rd())},p.dd=function(t){return this.Rd().dd(t)},p.dc=function(){return this.Rd().dc()},p.Od=function(){return h3(this.Rd().Kc())},p.gc=function(){return this.Rd().gc()},p.Qd=function(t,i){return ZW(this.Rd().kd(t,i))},p.Pc=function(){return this.Rd().Qc(Fe(ho,on,1,this.Rd().gc(),5,1))},p.Qc=function(t){return this.Rd().Qc(t)},p.Ib=function(){return dl(this.Rd())},N(Ft,"ForwardingImmutableList",2105),P(729,1,RA),p.vc=function(){return X0(this)},p.wc=function(t){p6(this,t)},p.ec=function(){return hZ(this)},p.yc=function(t,i,s){return Ste(this,t,i,s)},p.Cc=function(){return this.Vd()},p.$b=function(){throw ne(new rr)},p._b=function(t){return this.xc(t)!=null},p.uc=function(t){return this.Vd().Hc(t)},p.Td=function(){return new Mst(this)},p.Ud=function(){return new Dst(this)},p.Fb=function(t){return Nxn(this,t)},p.Hb=function(){return X0(this).Hb()},p.dc=function(){return this.gc()==0},p.zc=function(t,i){return bbn()},p.Bc=function(t){throw ne(new rr)},p.Ib=function(){return _In(this)},p.Vd=function(){return this.e?this.e:this.e=this.Ud()},p.c=null,p.d=null,p.e=null;var a6t;N(Ft,"ImmutableMap",729),P(730,729,RA),p._b=function(t){return fat(this,t)},p.uc=function(t){return oct(this.b,t)},p.Sd=function(){return o_t(new Fnt(this))},p.Td=function(){return o_t(_bt(this.b))},p.Ud=function(){return Dh(),new k0e(vbt(this.b))},p.Fb=function(t){return sct(this.b,t)},p.xc=function(t){return B$(this,t)},p.Hb=function(){return ti(this.b.c)},p.dc=function(){return this.b.c.dc()},p.gc=function(){return this.b.c.gc()},p.Ib=function(){return dl(this.b.c)},N(Ft,"ForwardingImmutableMap",730),P(2072,2071,gre),p.Kd=function(){return this.Wd()},p.Ld=function(){return this.Wd()},p.Nc=function(){return new Vt(this,1)},p.Fb=function(t){return t===this||this.Wd().Fb(t)},p.Hb=function(){return this.Wd().Hb()},N(Ft,"ForwardingSet",2072),P(1085,2072,gre,Fnt),p.Kd=function(){return bC(this.a.b)},p.Ld=function(){return bC(this.a.b)},p.Hc=function(t){if(ve(t,44)&&f(t,44).ld()==null)return!1;try{return ict(bC(this.a.b),t)}catch(i){if(i=mi(i),ve(i,212))return!1;throw ne(i)}},p.Wd=function(){return bC(this.a.b)},p.Qc=function(t){var i;return i=ogt(bC(this.a.b),t),bC(this.a.b).b.gc()=0?"+":"")+(s/60|0),i=KF(h.Math.abs(s)%60),(q2t(),C6t)[this.q.getDay()]+" "+A6t[this.q.getMonth()]+" "+KF(this.q.getDate())+" "+KF(this.q.getHours())+":"+KF(this.q.getMinutes())+":"+KF(this.q.getSeconds())+" GMT"+t+i+" "+this.q.getFullYear()};var EG=N(Ln,"Date",206);P(2015,206,zCt,w2t),p.a=!1,p.b=0,p.c=0,p.d=0,p.e=0,p.f=0,p.g=!1,p.i=0,p.j=0,p.k=0,p.n=0,p.o=0,p.p=0,N("com.google.gwt.i18n.shared.impl","DateRecord",2015),P(2064,1,{}),p.pe=function(){return null},p.qe=function(){return null},p.re=function(){return null},p.se=function(){return null},p.te=function(){return null},N(O3,"JSONValue",2064),P(221,2064,{221:1},B0,J1e),p.Fb=function(t){return ve(t,221)?qve(this.a,f(t,221).a):!1},p.oe=function(){return Bpn},p.Hb=function(){return Lve(this.a)},p.pe=function(){return this},p.Ib=function(){var t,i,s;for(s=new gu("["),i=0,t=this.a.length;i0&&(s.a+=","),aa(s,Kv(this,i));return s.a+="]",s.a},N(O3,"JSONArray",221),P(493,2064,{493:1},Y1e),p.oe=function(){return Wpn},p.qe=function(){return this},p.Ib=function(){return cn(),""+this.a},p.a=!1;var b6t,g6t;N(O3,"JSONBoolean",493),P(997,63,Cb,Mlt),N(O3,"JSONException",997),P(1036,2064,{},be),p.oe=function(){return Hpn},p.Ib=function(){return Za};var w6t;N(O3,"JSONNull",1036),P(263,2064,{263:1},Uj),p.Fb=function(t){return ve(t,263)?this.a==f(t,263).a:!1},p.oe=function(){return jpn},p.Hb=function(){return Gk(this.a)},p.re=function(){return this},p.Ib=function(){return this.a+""},p.a=0,N(O3,"JSONNumber",263),P(190,2064,{190:1},Nk,$O),p.Fb=function(t){return ve(t,190)?qve(this.a,f(t,190).a):!1},p.oe=function(){return Fpn},p.Hb=function(){return Lve(this.a)},p.se=function(){return this},p.Ib=function(){var t,i,s,a,c,b,g;for(g=new gu("{"),t=!0,b=Bee(this,Fe(St,rt,2,0,6,1)),s=b,a=0,c=s.length;a=0?":"+this.c:"")+")"},p.c=0;var s4e=N(Pl,"StackTraceElement",319);l6t={3:1,484:1,34:1,2:1};var St=N(Pl,nRe,2);P(111,427,{484:1},ig,a$,wf),N(Pl,"StringBuffer",111),P(104,427,{484:1},m1,jk,gu),N(Pl,"StringBuilder",104),P(702,77,Fre,ewe),N(Pl,"StringIndexOutOfBoundsException",702),P(2145,1,{});var _6t;P(48,63,{3:1,103:1,63:1,82:1,48:1},rr,ng),N(Pl,"UnsupportedOperationException",48),P(247,242,{3:1,34:1,242:1,247:1},vN,fwe),p.Fd=function(t){return WRt(this,f(t,247))},p.ue=function(){return o_(bxt(this))},p.Fb=function(t){var i;return this===t?!0:ve(t,247)?(i=f(t,247),this.e==i.e&&WRt(this,i)==0):!1},p.Hb=function(){var t;return this.b!=0?this.b:this.a<54?(t=Gl(this.f),this.b=tr(fo(t,-1)),this.b=33*this.b+tr(fo($m(t,32),-1)),this.b=17*this.b+oo(this.e),this.b):(this.b=17*e_t(this.c)+oo(this.e),this.b)},p.Ib=function(){return bxt(this)},p.a=0,p.b=0,p.d=0,p.e=0,p.f=0;var S6t,$w,l4e,a4e,c4e,u4e,f4e,d4e,cse=N("java.math","BigDecimal",247);P(92,242,{3:1,34:1,242:1,92:1},pb,zgt,Y0,tSt,k1),p.Fd=function(t){return Y_t(this,f(t,92))},p.ue=function(){return o_(fre(this,0))},p.Fb=function(t){return R2e(this,t)},p.Hb=function(){return e_t(this)},p.Ib=function(){return fre(this,0)},p.b=-2,p.c=0,p.d=0,p.e=0;var E6t,kG,k6t,use,RG,MI,M2=N("java.math","BigInteger",92),R6t,x6t,V3,DI;P(498,2065,ay),p.$b=function(){xc(this)},p._b=function(t){return Na(this,t)},p.uc=function(t){return Mvt(this,t,this.i)||Mvt(this,t,this.f)},p.vc=function(){return new U0(this)},p.xc=function(t){return En(this,t)},p.zc=function(t,i){return xr(this,t,i)},p.Bc=function(t){return f3(this,t)},p.gc=function(){return u$(this)},p.g=0,N(Ln,"AbstractHashMap",498),P(267,lh,wc,U0),p.$b=function(){this.a.$b()},p.Hc=function(t){return S1t(this,t)},p.Kc=function(){return new aw(this.a)},p.Mc=function(t){var i;return S1t(this,t)?(i=f(t,44).ld(),this.a.Bc(i),!0):!1},p.gc=function(){return this.a.gc()},N(Ln,"AbstractHashMap/EntrySet",267),P(268,1,ko,aw),p.Nb=function(t){Uo(this,t)},p.Pb=function(){return qm(this)},p.Ob=function(){return this.b},p.Qb=function(){Ywt(this)},p.b=!1,p.d=0,N(Ln,"AbstractHashMap/EntrySetIterator",268),P(426,1,ko,YT),p.Nb=function(t){Uo(this,t)},p.Ob=function(){return GY(this)},p.Pb=function(){return Pve(this)},p.Qb=function(){iu(this)},p.b=0,p.c=-1,N(Ln,"AbstractList/IteratorImpl",426),P(98,426,kp,No),p.Qb=function(){iu(this)},p.Rb=function(t){Dv(this,t)},p.Sb=function(){return this.b>0},p.Tb=function(){return this.b},p.Ub=function(){return In(this.b>0),this.a.Xb(this.c=--this.b)},p.Vb=function(){return this.b-1},p.Wb=function(t){Nv(this.c!=-1),this.a.hd(this.c,t)},N(Ln,"AbstractList/ListIteratorImpl",98),P(244,56,xA,dg),p.bd=function(t,i){Uv(t,this.b),this.c.bd(this.a+t,i),++this.b},p.Xb=function(t){return qt(t,this.b),this.c.Xb(this.a+t)},p.gd=function(t){var i;return qt(t,this.b),i=this.c.gd(this.a+t),--this.b,i},p.hd=function(t,i){return qt(t,this.b),this.c.hd(this.a+t,i)},p.gc=function(){return this.b},p.a=0,p.b=0,N(Ln,"AbstractList/SubList",244),P(266,lh,wc,H0),p.$b=function(){this.a.$b()},p.Hc=function(t){return this.a._b(t)},p.Kc=function(){var t;return t=this.a.vc().Kc(),new Vj(t)},p.Mc=function(t){return this.a._b(t)?(this.a.Bc(t),!0):!1},p.gc=function(){return this.a.gc()},N(Ln,"AbstractMap/1",266),P(541,1,ko,Vj),p.Nb=function(t){Uo(this,t)},p.Ob=function(){return this.a.Ob()},p.Pb=function(){var t;return t=f(this.a.Pb(),44),t.ld()},p.Qb=function(){this.a.Qb()},N(Ln,"AbstractMap/1/1",541),P(231,31,p_,ob),p.$b=function(){this.a.$b()},p.Hc=function(t){return this.a.uc(t)},p.Kc=function(){var t;return t=this.a.vc().Kc(),new Rv(t)},p.gc=function(){return this.a.gc()},N(Ln,"AbstractMap/2",231),P(301,1,ko,Rv),p.Nb=function(t){Uo(this,t)},p.Ob=function(){return this.a.Ob()},p.Pb=function(){var t;return t=f(this.a.Pb(),44),t.md()},p.Qb=function(){this.a.Qb()},N(Ln,"AbstractMap/2/1",301),P(494,1,{494:1,44:1}),p.Fb=function(t){var i;return ve(t,44)?(i=f(t,44),Ul(this.d,i.ld())&&Ul(this.e,i.md())):!1},p.ld=function(){return this.d},p.md=function(){return this.e},p.Hb=function(){return VS(this.d)^VS(this.e)},p.nd=function(t){return Zme(this,t)},p.Ib=function(){return this.d+"="+this.e},N(Ln,"AbstractMap/AbstractEntry",494),P(397,494,{494:1,397:1,44:1},EF),N(Ln,"AbstractMap/SimpleEntry",397),P(2082,1,Hre),p.Fb=function(t){var i;return ve(t,44)?(i=f(t,44),Ul(this.ld(),i.ld())&&Ul(this.md(),i.md())):!1},p.Hb=function(){return VS(this.ld())^VS(this.md())},p.Ib=function(){return this.ld()+"="+this.md()},N(Ln,NCt,2082),P(2090,2065,Z3e),p.Xc=function(t){return LY(this.Ee(t))},p.tc=function(t){return A0t(this,t)},p._b=function(t){return eye(this,t)},p.vc=function(){return new fY(this)},p.Tc=function(){return Hpt(this.Ge())},p.Yc=function(t){return LY(this.He(t))},p.xc=function(t){var i;return i=t,tl(this.Fe(i))},p.$c=function(t){return LY(this.Ie(t))},p.ec=function(){return new frt(this)},p.Vc=function(){return Hpt(this.Je())},p._c=function(t){return LY(this.Ke(t))},N(Ln,"AbstractNavigableMap",2090),P(629,lh,wc,fY),p.Hc=function(t){return ve(t,44)&&A0t(this.b,f(t,44))},p.Kc=function(){return this.b.De()},p.Mc=function(t){var i;return ve(t,44)?(i=f(t,44),this.b.Le(i)):!1},p.gc=function(){return this.b.gc()},N(Ln,"AbstractNavigableMap/EntrySet",629),P(1146,lh,eRe,frt),p.Nc=function(){return new _F(this)},p.$b=function(){this.a.$b()},p.Hc=function(t){return eye(this.a,t)},p.Kc=function(){var t;return t=this.a.vc().b.De(),new drt(t)},p.Mc=function(t){return eye(this.a,t)?(this.a.Bc(t),!0):!1},p.gc=function(){return this.a.gc()},N(Ln,"AbstractNavigableMap/NavigableKeySet",1146),P(1147,1,ko,drt),p.Nb=function(t){Uo(this,t)},p.Ob=function(){return GY(this.a.a)},p.Pb=function(){var t;return t=fdt(this.a),t.ld()},p.Qb=function(){wht(this.a)},N(Ln,"AbstractNavigableMap/NavigableKeySet/1",1147),P(2103,31,p_),p.Fc=function(t){return Qk(aA(this,t),AA),!0},p.Gc=function(t){return mn(t),S7(t!=this,"Can't add a queue to itself"),Do(this,t)},p.$b=function(){for(;Cee(this)!=null;);},N(Ln,"AbstractQueue",2103),P(310,31,{4:1,20:1,31:1,16:1},qS,w1t),p.Fc=function(t){return i_e(this,t),!0},p.$b=function(){u_e(this)},p.Hc=function(t){return rvt(new Z$(this),t)},p.dc=function(){return l$(this)},p.Kc=function(){return new Z$(this)},p.Mc=function(t){return ESn(new Z$(this),t)},p.gc=function(){return this.c-this.b&this.a.length-1},p.Nc=function(){return new Vt(this,272)},p.Qc=function(t){var i;return i=this.c-this.b&this.a.length-1,t.lengthi&&Ci(t,i,null),t},p.b=0,p.c=0,N(Ln,"ArrayDeque",310),P(459,1,ko,Z$),p.Nb=function(t){Uo(this,t)},p.Ob=function(){return this.a!=this.b},p.Pb=function(){return QW(this)},p.Qb=function(){Zmt(this)},p.a=0,p.b=0,p.c=-1,N(Ln,"ArrayDeque/IteratorImpl",459),P(13,56,XCt,st,ka,Rc),p.bd=function(t,i){Tm(this,t,i)},p.Fc=function(t){return lt(this,t)},p.cd=function(t,i){return YSe(this,t,i)},p.Gc=function(t){return eo(this,t)},p.$b=function(){xv(this.c,0)},p.Hc=function(t){return il(this,t,0)!=-1},p.Jc=function(t){Ma(this,t)},p.Xb=function(t){return vt(this,t)},p.dd=function(t){return il(this,t,0)},p.dc=function(){return this.c.length==0},p.Kc=function(){return new ee(this)},p.gd=function(t){return pg(this,t)},p.Mc=function(t){return Ja(this,t)},p.ce=function(t,i){Bgt(this,t,i)},p.hd=function(t,i){return Ku(this,t,i)},p.gc=function(){return this.c.length},p.jd=function(t){Hi(this,t)},p.Pc=function(){return bB(this.c)},p.Qc=function(t){return ih(this,t)};var dFn=N(Ln,"ArrayList",13);P(7,1,ko,ee),p.Nb=function(t){Uo(this,t)},p.Ob=function(){return _l(this)},p.Pb=function(){return Z(this)},p.Qb=function(){q$(this)},p.a=0,p.b=-1,N(Ln,"ArrayList/1",7),P(2112,h.Function,{},ye),p.Me=function(t,i){return Qr(t,i)},P(151,56,JCt,kc),p.Hc=function(t){return eyt(this,t)!=-1},p.Jc=function(t){var i,s,a,c;for(mn(t),s=this.a,a=0,c=s.length;a0)throw ne(new hn(uRe+t+" greater than "+this.e));return this.f.Te()?cgt(this.c,this.b,this.a,t,i):Wgt(this.c,t,i)},p.zc=function(t,i){if(!tne(this.c,this.f,t,this.b,this.a,this.e,this.d))throw ne(new hn(t+" outside the range "+this.b+" to "+this.e));return vvt(this.c,t,i)},p.Bc=function(t){var i;return i=t,tne(this.c,this.f,i,this.b,this.a,this.e,this.d)?ugt(this.c,i):null},p.Le=function(t){return MB(this,t.ld())&&T_e(this.c,t)},p.gc=function(){var t,i,s;if(this.f.Te()?this.a?i=tA(this.c,this.b,!0):i=tA(this.c,this.b,!1):i=F_e(this.c),!(i&&MB(this,i.d)&&i))return 0;for(t=0,s=new Wee(this.c,this.f,this.b,this.a,this.e,this.d);GY(s.a);s.b=f(Pve(s.a),44))++t;return t},p.ad=function(t,i){if(this.f.Te()&&this.c.a.Ne(t,this.b)<0)throw ne(new hn(uRe+t+ZCt+this.b));return this.f.Ue()?cgt(this.c,t,i,this.e,this.d):Hgt(this.c,t,i)},p.a=!1,p.d=!1,N(Ln,"TreeMap/SubMap",631),P(304,22,zre,SF),p.Te=function(){return!1},p.Ue=function(){return!1};var hse,pse,bse,gse,CG=Wn(Ln,"TreeMap/SubMapType",304,qn,J2n,swn);P(1143,304,zre,bft),p.Ue=function(){return!0},Wn(Ln,"TreeMap/SubMapType/1",1143,CG,null,null),P(1144,304,zre,kft),p.Te=function(){return!0},p.Ue=function(){return!0},Wn(Ln,"TreeMap/SubMapType/2",1144,CG,null,null),P(1145,304,zre,pft),p.Te=function(){return!0},Wn(Ln,"TreeMap/SubMapType/3",1145,CG,null,null);var N6t;P(157,lh,{3:1,20:1,31:1,16:1,277:1,21:1,87:1,157:1},T0e,sg,Fx),p.Nc=function(){return new _F(this)},p.Fc=function(t){return R7(this,t)},p.$b=function(){this.a.$b()},p.Hc=function(t){return this.a._b(t)},p.Kc=function(){return this.a.ec().Kc()},p.Mc=function(t){return MQ(this,t)},p.gc=function(){return this.a.gc()};var mFn=N(Ln,"TreeSet",157);P(1082,1,{},grt),p.Ve=function(t,i){return E0n(this.a,t,i)},N(Kre,"BinaryOperator/lambda$0$Type",1082),P(1083,1,{},wrt),p.Ve=function(t,i){return k0n(this.a,t,i)},N(Kre,"BinaryOperator/lambda$1$Type",1083),P(952,1,{},nn),p.Kb=function(t){return t},N(Kre,"Function/lambda$0$Type",952),P(395,1,sr,Bx),p.Mb=function(t){return!this.a.Mb(t)},N(Kre,"Predicate/lambda$2$Type",395),P(581,1,{581:1});var M6t=N(oI,"Handler",581);P(2107,1,iM),p.xe=function(){return"DUMMY"},p.Ib=function(){return this.xe()};var y4e;N(oI,"Level",2107),P(1706,2107,iM,Pe),p.xe=function(){return"INFO"},N(oI,"Level/LevelInfo",1706),P(1843,1,{},Ust);var wse;N(oI,"LogManager",1843),P(1896,1,iM,ght),p.b=null,N(oI,"LogRecord",1896),P(525,1,{525:1},see),p.e=!1;var D6t=!1,L6t=!1,fh=!1,j6t=!1,F6t=!1;N(oI,"Logger",525),P(835,581,{581:1},Ne),N(oI,"SimpleConsoleLogHandler",835),P(108,22,{3:1,34:1,22:1,108:1},KY);var v4e,pl,k_,qs=Wn(no,"Collector/Characteristics",108,qn,LSn,lwn),B6t;P(758,1,{},fve),N(no,"CollectorImpl",758),P(1074,1,{},T),p.Ve=function(t,i){return wCn(f(t,213),f(i,213))},N(no,"Collectors/10methodref$merge$Type",1074),P(1075,1,{},$),p.Kb=function(t){return m1t(f(t,213))},N(no,"Collectors/11methodref$toString$Type",1075),P(1076,1,{},mrt),p.Kb=function(t){return cn(),!!ome(t)},N(no,"Collectors/12methodref$test$Type",1076),P(144,1,{},B),p.Yd=function(t,i){f(t,16).Fc(i)},N(no,"Collectors/20methodref$add$Type",144),P(146,1,{},K),p.Xe=function(){return new st},N(no,"Collectors/21methodref$ctor$Type",146),P(359,1,{},q),p.Xe=function(){return new Gi},N(no,"Collectors/23methodref$ctor$Type",359),P(360,1,{},ke),p.Yd=function(t,i){Zi(f(t,49),i)},N(no,"Collectors/24methodref$add$Type",360),P(1069,1,{},Ee),p.Ve=function(t,i){return cct(f(t,15),f(i,16))},N(no,"Collectors/4methodref$addAll$Type",1069),P(1073,1,{},Ie),p.Yd=function(t,i){bb(f(t,213),f(i,484))},N(no,"Collectors/9methodref$add$Type",1073),P(1072,1,{},Oht),p.Xe=function(){return new cw(this.a,this.b,this.c)},N(no,"Collectors/lambda$15$Type",1072),P(1077,1,{},_t),p.Xe=function(){var t;return t=new hg,kg(t,(cn(),!1),new st),kg(t,!0,new st),t},N(no,"Collectors/lambda$22$Type",1077),P(1078,1,{},yrt),p.Xe=function(){return se(ie(ho,1),on,1,5,[this.a])},N(no,"Collectors/lambda$25$Type",1078),P(1079,1,{},vrt),p.Yd=function(t,i){Uyn(this.a,ow(t))},N(no,"Collectors/lambda$26$Type",1079),P(1080,1,{},_rt),p.Ve=function(t,i){return wvn(this.a,ow(t),ow(i))},N(no,"Collectors/lambda$27$Type",1080),P(1081,1,{},he),p.Kb=function(t){return ow(t)[0]},N(no,"Collectors/lambda$28$Type",1081),P(728,1,{},Xt),p.Ve=function(t,i){return Vye(t,i)},N(no,"Collectors/lambda$4$Type",728),P(145,1,{},Zt),p.Ve=function(t,i){return Qbn(f(t,16),f(i,16))},N(no,"Collectors/lambda$42$Type",145),P(361,1,{},$n),p.Ve=function(t,i){return Zbn(f(t,49),f(i,49))},N(no,"Collectors/lambda$50$Type",361),P(362,1,{},Gn),p.Kb=function(t){return f(t,49)},N(no,"Collectors/lambda$51$Type",362),P(1068,1,{},Srt),p.Yd=function(t,i){Exn(this.a,f(t,85),i)},N(no,"Collectors/lambda$7$Type",1068),P(1070,1,{},$e),p.Ve=function(t,i){return ZRn(f(t,85),f(i,85),new Ee)},N(no,"Collectors/lambda$8$Type",1070),P(1071,1,{},Ert),p.Kb=function(t){return JCn(this.a,f(t,85))},N(no,"Collectors/lambda$9$Type",1071),P(550,1,{}),p.$e=function(){Q$(this)},p.d=!1,N(no,"TerminatableStream",550),P(827,550,fRe,Gme),p.$e=function(){Q$(this)},N(no,"DoubleStreamImpl",827),P(1847,736,Cu,Nht),p.Re=function(t){return Z4n(this,f(t,189))},p.a=null,N(no,"DoubleStreamImpl/2",1847),P(1848,1,hM,krt),p.Pe=function(t){zgn(this.a,t)},N(no,"DoubleStreamImpl/2/lambda$0$Type",1848),P(1845,1,hM,Rrt),p.Pe=function(t){Vgn(this.a,t)},N(no,"DoubleStreamImpl/lambda$0$Type",1845),P(1846,1,hM,xrt),p.Pe=function(t){N_t(this.a,t)},N(no,"DoubleStreamImpl/lambda$2$Type",1846),P(1397,735,Cu,E0t),p.Re=function(t){return F2n(this,f(t,202))},p.a=0,p.b=0,p.c=0,N(no,"IntStream/5",1397),P(806,550,fRe,Vme),p.$e=function(){Q$(this)},p._e=function(){return A1(this),this.a},N(no,"IntStreamImpl",806),P(807,550,fRe,gwe),p.$e=function(){Q$(this)},p._e=function(){return A1(this),xme(),O6t},N(no,"IntStreamImpl/Empty",807),P(1687,1,sM,Crt),p.Dd=function(t){Gyt(this.a,t)},N(no,"IntStreamImpl/lambda$4$Type",1687);var yFn=Ei(no,"Stream");P(26,550,{533:1,687:1,848:1},Wt),p.$e=function(){Q$(this)};var z3;N(no,"StreamImpl",26),P(1102,500,Cu,aht),p.Bd=function(t){for(;Hkn(this);){if(this.a.Bd(t))return!0;Q$(this.b),this.b=null,this.a=null}return!1},N(no,"StreamImpl/1",1102),P(1103,1,Rn,Art),p.Cd=function(t){byn(this.a,f(t,848))},N(no,"StreamImpl/1/lambda$0$Type",1103),P(1104,1,sr,Trt),p.Mb=function(t){return Zi(this.a,t)},N(no,"StreamImpl/1methodref$add$Type",1104),P(1105,500,Cu,Hbt),p.Bd=function(t){var i;return this.a||(i=new st,this.b.a.Nb(new $rt(i)),Kt(),Hi(i,this.c),this.a=new Vt(i,16)),Rmt(this.a,t)},p.a=null,N(no,"StreamImpl/5",1105),P(1106,1,Rn,$rt),p.Cd=function(t){lt(this.a,t)},N(no,"StreamImpl/5/2methodref$add$Type",1106),P(737,500,Cu,B_e),p.Bd=function(t){for(this.b=!1;!this.b&&this.c.Bd(new xct(this,t)););return this.b},p.b=!1,N(no,"StreamImpl/FilterSpliterator",737),P(1096,1,Rn,xct),p.Cd=function(t){fvn(this.a,this.b,t)},N(no,"StreamImpl/FilterSpliterator/lambda$0$Type",1096),P(1091,736,Cu,N0t),p.Re=function(t){return V0n(this,f(t,189))},N(no,"StreamImpl/MapToDoubleSpliterator",1091),P(1095,1,Rn,Cct),p.Cd=function(t){bgn(this.a,this.b,t)},N(no,"StreamImpl/MapToDoubleSpliterator/lambda$0$Type",1095),P(1090,735,Cu,M0t),p.Re=function(t){return z0n(this,f(t,202))},N(no,"StreamImpl/MapToIntSpliterator",1090),P(1094,1,Rn,Act),p.Cd=function(t){ggn(this.a,this.b,t)},N(no,"StreamImpl/MapToIntSpliterator/lambda$0$Type",1094),P(734,500,Cu,R_e),p.Bd=function(t){return oht(this,t)},N(no,"StreamImpl/MapToObjSpliterator",734),P(1093,1,Rn,Tct),p.Cd=function(t){wgn(this.a,this.b,t)},N(no,"StreamImpl/MapToObjSpliterator/lambda$0$Type",1093),P(1092,500,Cu,uyt),p.Bd=function(t){for(;VY(this.b,0);){if(!this.a.Bd(new ce))return!1;this.b=vf(this.b,1)}return this.a.Bd(t)},p.b=0,N(no,"StreamImpl/SkipSpliterator",1092),P(1097,1,Rn,ce),p.Cd=function(t){},N(no,"StreamImpl/SkipSpliterator/lambda$0$Type",1097),P(626,1,Rn,de),p.Cd=function(t){srt(this,t)},N(no,"StreamImpl/ValueConsumer",626),P(1098,1,Rn,et),p.Cd=function(t){K0()},N(no,"StreamImpl/lambda$0$Type",1098),P(1099,1,Rn,pt),p.Cd=function(t){K0()},N(no,"StreamImpl/lambda$1$Type",1099),P(1100,1,{},Irt),p.Ve=function(t,i){return kwn(this.a,t,i)},N(no,"StreamImpl/lambda$4$Type",1100),P(1101,1,Rn,$ct),p.Cd=function(t){$0n(this.b,this.a,t)},N(no,"StreamImpl/lambda$5$Type",1101),P(1107,1,Rn,Prt),p.Cd=function(t){WRn(this.a,f(t,380))},N(no,"TerminatableStream/lambda$0$Type",1107),P(2142,1,{}),P(2014,1,{},Jt),N("javaemul.internal","ConsoleLogger",2014);var vFn=0;P(2134,1,{}),P(1830,1,Rn,Qt),p.Cd=function(t){f(t,317)},N(TA,"BowyerWatsonTriangulation/lambda$0$Type",1830),P(1831,1,Rn,Ort),p.Cd=function(t){Do(this.a,f(t,317).e)},N(TA,"BowyerWatsonTriangulation/lambda$1$Type",1831),P(1832,1,Rn,qr),p.Cd=function(t){f(t,177)},N(TA,"BowyerWatsonTriangulation/lambda$2$Type",1832),P(1827,1,cr,Nrt),p.Ne=function(t,i){return kEn(this.a,f(t,177),f(i,177))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(TA,"NaiveMinST/lambda$0$Type",1827),P(449,1,{},QT),N(TA,"NodeMicroLayout",449),P(177,1,{177:1},Wk),p.Fb=function(t){var i;return ve(t,177)?(i=f(t,177),Ul(this.a,i.a)&&Ul(this.b,i.b)||Ul(this.a,i.b)&&Ul(this.b,i.a)):!1},p.Hb=function(){return VS(this.a)+VS(this.b)};var _Fn=N(TA,"TEdge",177);P(317,1,{317:1},R3e),p.Fb=function(t){var i;return ve(t,317)?(i=f(t,317),mW(this,i.a)&&mW(this,i.b)&&mW(this,i.c)):!1},p.Hb=function(){return VS(this.a)+VS(this.b)+VS(this.c)},N(TA,"TTriangle",317),P(225,1,{225:1},XF),N(TA,"Tree",225),P(1218,1,{},Cgt),N(nAt,"Scanline",1218);var W6t=Ei(nAt,rAt);P(1758,1,{},Smt),N(Ap,"CGraph",1758),P(316,1,{316:1},$gt),p.b=0,p.c=0,p.d=0,p.g=0,p.i=0,p.k=to,N(Ap,"CGroup",316),P(830,1,{},P0e),N(Ap,"CGroup/CGroupBuilder",830),P(60,1,{60:1},Hdt),p.Ib=function(){var t;return this.j?or(this.j.Kb(this)):(cb(AG),AG.o+"@"+(t=xm(this)>>>0,t.toString(16)))},p.f=0,p.i=to;var AG=N(Ap,"CNode",60);P(829,1,{},O0e),N(Ap,"CNode/CNodeBuilder",829);var H6t;P(1590,1,{},ao),p.ff=function(t,i){return 0},p.gf=function(t,i){return 0},N(Ap,oAt,1590),P(1853,1,{},ki),p.cf=function(t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X;for(k=hi,a=new ee(t.a.b);a.aa.d.c||a.d.c==b.d.c&&a.d.b0?t+this.n.d+this.n.a:0},p.kf=function(){var t,i,s,a,c;if(c=0,this.e)this.b?c=this.b.a:this.a[1][1]&&(c=this.a[1][1].kf());else if(this.g)c=E2e(this,rne(this,null,!0));else for(i=(Pd(),se(ie(R_,1),Je,237,0,[Nl,Aa,Ml])),s=0,a=i.length;s0?c+this.n.b+this.n.c:0},p.lf=function(){var t,i,s,a,c;if(this.g)for(t=rne(this,null,!1),s=(Pd(),se(ie(R_,1),Je,237,0,[Nl,Aa,Ml])),a=0,c=s.length;a0&&(a[0]+=this.d,s-=a[0]),a[2]>0&&(a[2]+=this.d,s-=a[2]),this.c.a=h.Math.max(0,s),this.c.d=i.d+t.d+(this.c.a-s)/2,a[1]=h.Math.max(a[1],s),__e(this,Aa,i.d+t.d+a[0]-(a[1]-s)/2,a)},p.b=null,p.d=0,p.e=!1,p.f=!1,p.g=!1;var Sse=0,TG=0;N(vw,"GridContainerCell",1538),P(471,22,{3:1,34:1,22:1,471:1},XY);var Q1,tp,ld,Q6t=Wn(vw,"HorizontalLabelAlignment",471,qn,FSn,dwn),Z6t;P(314,217,{217:1,314:1},hgt,kmt,sgt),p.jf=function(){return Kht(this)},p.kf=function(){return Fye(this)},p.a=0,p.c=!1;var SFn=N(vw,"LabelCell",314);P(252,336,{217:1,336:1,252:1},A6),p.jf=function(){return j6(this)},p.kf=function(){return F6(this)},p.lf=function(){Vne(this)},p.mf=function(){zne(this)},p.b=0,p.c=0,p.d=!1,N(vw,"StripContainerCell",252),P(1691,1,sr,Zc),p.Mb=function(t){return dbn(f(t,217))},N(vw,"StripContainerCell/lambda$0$Type",1691),P(1692,1,{},bu),p.Ye=function(t){return f(t,217).kf()},N(vw,"StripContainerCell/lambda$1$Type",1692),P(1693,1,sr,So),p.Mb=function(t){return hbn(f(t,217))},N(vw,"StripContainerCell/lambda$2$Type",1693),P(1694,1,{},ql),p.Ye=function(t){return f(t,217).jf()},N(vw,"StripContainerCell/lambda$3$Type",1694),P(472,22,{3:1,34:1,22:1,472:1},JY);var ad,Z1,Ld,eIt=Wn(vw,"VerticalLabelAlignment",472,qn,jSn,hwn),tIt;P(800,1,{},H3e),p.c=0,p.d=0,p.k=0,p.s=0,p.t=0,p.v=!1,p.w=0,p.D=!1,p.F=!1,N(gU,"NodeContext",800),P(1536,1,cr,S),p.Ne=function(t,i){return oft(f(t,64),f(i,64))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(gU,"NodeContext/0methodref$comparePortSides$Type",1536),P(1537,1,cr,x),p.Ne=function(t,i){return H6n(f(t,117),f(i,117))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(gU,"NodeContext/1methodref$comparePortContexts$Type",1537),P(164,22,{3:1,34:1,22:1,164:1},Ju);var nIt,rIt,iIt,oIt,sIt,lIt,aIt,cIt,uIt,fIt,dIt,hIt,pIt,bIt,gIt,wIt,mIt,yIt,vIt,_It,SIt,Ese,EIt=Wn(gU,"NodeLabelLocation",164,qn,Nte,pwn),kIt;P(117,1,{117:1},dkt),p.a=!1,N(gU,"PortContext",117),P(1541,1,Rn,Y),p.Cd=function(t){kat(f(t,314))},N(bM,mAt,1541),P(1542,1,sr,J),p.Mb=function(t){return!!f(t,117).c},N(bM,yAt,1542),P(1543,1,Rn,ue),p.Cd=function(t){kat(f(t,117).c)},N(bM,"LabelPlacer/lambda$2$Type",1543);var H4e;P(1540,1,Rn,Yt),p.Cd=function(t){Mv(),Vpn(f(t,117))},N(bM,"NodeLabelAndSizeUtilities/lambda$0$Type",1540),P(801,1,Rn,mye),p.Cd=function(t){ogn(this.b,this.c,this.a,f(t,187))},p.a=!1,p.c=!1,N(bM,"NodeLabelCellCreator/lambda$0$Type",801),P(1539,1,Rn,Lrt),p.Cd=function(t){qpn(this.a,f(t,187))},N(bM,"PortContextCreator/lambda$0$Type",1539);var $G;P(1902,1,{},An),N(IA,"GreedyRectangleStripOverlapRemover",1902),P(1903,1,cr,Ws),p.Ne=function(t,i){return L1n(f(t,226),f(i,226))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(IA,"GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type",1903),P(1849,1,{},Kst),p.a=5,p.e=0,N(IA,"RectangleStripOverlapRemover",1849),P(1850,1,cr,Fr),p.Ne=function(t,i){return j1n(f(t,226),f(i,226))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(IA,"RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type",1850),P(1852,1,cr,Hl),p.Ne=function(t,i){return Cvn(f(t,226),f(i,226))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(IA,"RectangleStripOverlapRemover/1methodref$compareRightRectangleBorders$Type",1852),P(417,22,{3:1,34:1,22:1,417:1},kF);var WM,kse,Rse,HM,RIt=Wn(IA,"RectangleStripOverlapRemover/OverlapRemovalDirection",417,qn,Z2n,bwn),xIt;P(226,1,{226:1},fZ),N(IA,"RectangleStripOverlapRemover/RectangleNode",226),P(1851,1,Rn,jrt),p.Cd=function(t){pTn(this.a,f(t,226))},N(IA,"RectangleStripOverlapRemover/lambda$1$Type",1851),P(1323,1,cr,Ec),p.Ne=function(t,i){return O9n(f(t,176),f(i,176))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(qh,"PolyominoCompactor/CornerCasesGreaterThanRestComparator",1323),P(1326,1,{},Rs),p.Kb=function(t){return f(t,334).a},N(qh,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$0$Type",1326),P(1327,1,sr,ml),p.Mb=function(t){return f(t,332).a},N(qh,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$1$Type",1327),P(1328,1,sr,gs),p.Mb=function(t){return f(t,332).a},N(qh,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$2$Type",1328),P(1321,1,cr,as),p.Ne=function(t,i){return uNn(f(t,176),f(i,176))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(qh,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator",1321),P(1324,1,{},ws),p.Kb=function(t){return f(t,334).a},N(qh,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator/lambda$0$Type",1324),P(781,1,cr,wi),p.Ne=function(t,i){return zRn(f(t,176),f(i,176))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(qh,"PolyominoCompactor/MinNumOfExtensionsComparator",781),P(1319,1,cr,jr),p.Ne=function(t,i){return eRn(f(t,330),f(i,330))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(qh,"PolyominoCompactor/MinPerimeterComparator",1319),P(1320,1,cr,lr),p.Ne=function(t,i){return j4n(f(t,330),f(i,330))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(qh,"PolyominoCompactor/MinPerimeterComparatorWithShape",1320),P(1322,1,cr,AO),p.Ne=function(t,i){return $Nn(f(t,176),f(i,176))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(qh,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator",1322),P(1325,1,{},KJ),p.Kb=function(t){return f(t,334).a},N(qh,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator/lambda$0$Type",1325),P(782,1,{},Twe),p.Ve=function(t,i){return V2n(this,f(t,42),f(i,176))},N(qh,"SuccessorCombination",782),P(649,1,{},XT),p.Ve=function(t,i){var s;return l8n((s=f(t,42),f(i,176),s))},N(qh,"SuccessorJitter",649),P(648,1,{},TO),p.Ve=function(t,i){var s;return KOn((s=f(t,42),f(i,176),s))},N(qh,"SuccessorLineByLine",648),P(573,1,{},JT),p.Ve=function(t,i){var s;return lPn((s=f(t,42),f(i,176),s))},N(qh,"SuccessorManhattan",573),P(1344,1,{},Dj),p.Ve=function(t,i){var s;return wOn((s=f(t,42),f(i,176),s))},N(qh,"SuccessorMaxNormWindingInMathPosSense",1344),P(409,1,{},Wx),p.Ve=function(t,i){return cve(this,t,i)},p.c=!1,p.d=!1,p.e=!1,p.f=!1,N(qh,"SuccessorQuadrantsGeneric",409),P(1345,1,{},We),p.Kb=function(t){return f(t,334).a},N(qh,"SuccessorQuadrantsGeneric/lambda$0$Type",1345),P(332,22,{3:1,34:1,22:1,332:1},RF),p.a=!1;var UM,GM,VM,zM,CIt=Wn(mU,SRe,332,qn,Y2n,gwn),AIt;P(1317,1,{}),p.Ib=function(){var t,i,s,a,c,b;for(s=" ",t=ot(0),c=0;c=0?"b"+t+"["+oee(this.a)+"]":"b["+oee(this.a)+"]"):"b_"+xm(this)},N(wM,"FBendpoint",250),P(290,137,{3:1,290:1,96:1,137:1},Udt),p.Ib=function(){return oee(this)},N(wM,"FEdge",290),P(235,137,{3:1,235:1,96:1,137:1},aW);var kFn=N(wM,"FGraph",235);P(454,309,{3:1,454:1,309:1,96:1,137:1},V1t),p.Ib=function(){return this.b==null||this.b.length==0?"l["+oee(this.a)+"]":"l_"+this.b},N(wM,"FLabel",454),P(153,309,{3:1,153:1,309:1,96:1,137:1},Eft),p.Ib=function(){return Jve(this)},p.a=0,N(wM,"FNode",153),P(2100,1,{}),p.vf=function(t){v3e(this,t)},p.wf=function(){zSt(this)},p.d=0,N(IRe,"AbstractForceModel",2100),P(641,2100,{641:1},Uyt),p.uf=function(t,i){var s,a,c,b,g;return yxt(this.f,t,i),c=uo(Ho(i.d),t.d),g=h.Math.sqrt(c.a*c.a+c.b*c.b),a=h.Math.max(0,g-Y$(t.e)/2-Y$(i.e)/2),s=tkt(this.e,t,i),s>0?b=-kvn(a,this.c)*s:b=Z1n(a,this.b)*f(V(t,(od(),K3)),17).a,Nh(c,b/g),c},p.vf=function(t){v3e(this,t),this.a=f(V(t,(od(),DG)),17).a,this.c=Ae(je(V(t,LG))),this.b=Ae(je(V(t,Pse)))},p.xf=function(t){return t0&&(b-=abn(a,this.a)*s),Nh(c,b*this.b/g),c},p.vf=function(t){var i,s,a,c,b,g,m;for(v3e(this,t),this.b=Ae(je(V(t,(od(),Ose)))),this.c=this.b/f(V(t,DG),17).a,a=t.e.c.length,b=0,c=0,m=new ee(t.e);m.a0},p.a=0,p.b=0,p.c=0,N(IRe,"FruchtermanReingoldModel",642),P(860,1,Ef,jtt),p.hf=function(t){Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,_U),""),"Force Model"),"Determines the model for force calculation."),Y4e),(Cg(),pi)),Q4e),Mt((Nd(),rn))))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,PRe),""),"Iterations"),"The number of iterations on the force model."),ot(300)),bl),Ko),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,ORe),""),"Repulsive Power"),"Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model"),ot(0)),bl),Ko),Mt(op)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,fie),""),"FR Temperature"),"The temperature is used as a scaling factor for particle displacements."),Xh),es),Qi),Mt(rn)))),qi(t,fie,_U,qIt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,die),""),"Eades Repulsion"),"Factor for repulsive forces in Eades' model."),5),es),Qi),Mt(rn)))),qi(t,die,_U,VIt),lCt((new Ftt,t))};var HIt,UIt,Y4e,GIt,VIt,zIt,KIt,qIt;N(aI,"ForceMetaDataProvider",860),P(432,22,{3:1,34:1,22:1,432:1},Iwe);var Ise,MG,Q4e=Wn(aI,"ForceModelStrategy",432,qn,V_n,ywn),XIt;P(Tg,1,Ef,Ftt),p.hf=function(t){lCt(t)};var JIt,YIt,Z4e,DG,eTe,QIt,ZIt,e5t,t5t,tTe,n5t,nTe,rTe,r5t,K3,i5t,Pse,iTe,o5t,s5t,LG,Ose,l5t,a5t,c5t,oTe,u5t;N(aI,"ForceOptions",Tg),P(1001,1,{},YVe),p.sf=function(){var t;return t=new I0e,t},p.tf=function(t){},N(aI,"ForceOptions/ForceFactory",1001);var XM,FI,q3,jG;P(861,1,Ef,Btt),p.hf=function(t){Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,MRe),""),"Fixed Position"),"Prevent that the node is moved by the layout algorithm."),(cn(),!1)),(Cg(),po)),Li),Mt((Nd(),lo))))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,DRe),""),"Desired Edge Length"),"Either specified for parent nodes or for individual edges, where the latter takes higher precedence."),100),es),Qi),ii(rn,se(ie(Mp,1),Je,170,0,[op]))))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,LRe),""),"Layout Dimension"),"Dimensions that are permitted to be altered during layout."),sTe),pi),hTe),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,jRe),""),"Stress Epsilon"),"Termination criterion for the iterative process."),Xh),es),Qi),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,FRe),""),"Iteration Limit"),"Maximum number of performed iterations. Takes higher precedence than 'epsilon'."),ot(Nr)),bl),Ko),Mt(rn)))),Mxt((new Wtt,t))};var f5t,d5t,sTe,h5t,p5t,b5t;N(aI,"StressMetaDataProvider",861),P(1004,1,Ef,Wtt),p.hf=function(t){Mxt(t)};var FG,lTe,aTe,cTe,uTe,fTe,g5t,w5t,m5t,y5t,dTe,v5t;N(aI,"StressOptions",1004),P(1005,1,{},XVe),p.sf=function(){var t;return t=new Gdt,t},p.tf=function(t){},N(aI,"StressOptions/StressFactory",1005),P(1110,205,_w,Gdt),p.rf=function(t,i){var s,a,c,b,g;for(i.Ug(PAt,1),mt(wt(Ye(t,($N(),uTe))))?mt(wt(Ye(t,dTe)))||O7((s=new QT((vm(),new dm(t))),s)):Qkt(new I0e,t,i.eh(1)),c=hvt(t),a=GRt(this.a,c),g=a.Kc();g.Ob();)b=f(g.Pb(),235),!(b.e.c.length<=1)&&($9n(this.b,b),nPn(this.b),Ma(b.d,new JVe));c=iCt(a),pCt(c),i.Vg()},N(kU,"StressLayoutProvider",1110),P(1111,1,Rn,JVe),p.Cd=function(t){A3e(f(t,454))},N(kU,"StressLayoutProvider/lambda$0$Type",1111),P(1002,1,{},Hst),p.c=0,p.e=0,p.g=0,N(kU,"StressMajorization",1002),P(391,22,{3:1,34:1,22:1,391:1},YY);var Nse,Mse,Dse,hTe=Wn(kU,"StressMajorization/Dimension",391,qn,WSn,vwn),_5t;P(1003,1,cr,Hrt),p.Ne=function(t,i){return q0n(this.a,f(t,153),f(i,153))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(kU,"StressMajorization/lambda$0$Type",1003),P(1192,1,{},Jgt),N(W3,"ElkLayered",1192),P(1193,1,Rn,Urt),p.Cd=function(t){I5n(this.a,f(t,36))},N(W3,"ElkLayered/lambda$0$Type",1193),P(1194,1,Rn,Grt),p.Cd=function(t){X0n(this.a,f(t,36))},N(W3,"ElkLayered/lambda$1$Type",1194),P(1281,1,{},Oft);var S5t,E5t,k5t;N(W3,"GraphConfigurator",1281),P(770,1,Rn,b0e),p.Cd=function(t){oEt(this.a,f(t,10))},N(W3,"GraphConfigurator/lambda$0$Type",770),P(771,1,{},x1e),p.Kb=function(t){return wEe(),new Wt(null,new Vt(f(t,30).a,16))},N(W3,"GraphConfigurator/lambda$1$Type",771),P(772,1,Rn,g0e),p.Cd=function(t){oEt(this.a,f(t,10))},N(W3,"GraphConfigurator/lambda$2$Type",772),P(1109,205,_w,qst),p.rf=function(t,i){var s;s=f9n(new Jst,t),Oe(Ye(t,(bt(),M_)))===Oe((vb(),Wg))?UCn(this.a,s,i):Q8n(this.a,s,i),i.$g()||Yxt(new Htt,s)},N(W3,"LayeredLayoutProvider",1109),P(367,22,{3:1,34:1,22:1,367:1},KO);var cd,Pp,sa,ga,ll,pTe=Wn(W3,"LayeredPhases",367,qn,VEn,_wn),R5t;P(1717,1,{},lyt),p.i=0;var x5t;N(EM,"ComponentsToCGraphTransformer",1717);var C5t;P(1718,1,{},qVe),p.yf=function(t,i){return h.Math.min(t.a!=null?Ae(t.a):t.c.i,i.a!=null?Ae(i.a):i.c.i)},p.zf=function(t,i){return h.Math.min(t.a!=null?Ae(t.a):t.c.i,i.a!=null?Ae(i.a):i.c.i)},N(EM,"ComponentsToCGraphTransformer/1",1718),P(86,1,{86:1}),p.i=0,p.k=!0,p.o=to;var Lse=N(dI,"CNode",86);P(470,86,{470:1,86:1},Mme,V2e),p.Ib=function(){return""},N(EM,"ComponentsToCGraphTransformer/CRectNode",470),P(1688,1,{},QVe);var jse,Fse;N(EM,"OneDimensionalComponentsCompaction",1688),P(1689,1,{},ZVe),p.Kb=function(t){return PSn(f(t,42))},p.Fb=function(t){return this===t},N(EM,"OneDimensionalComponentsCompaction/lambda$0$Type",1689),P(1690,1,{},eze),p.Kb=function(t){return VCn(f(t,42))},p.Fb=function(t){return this===t},N(EM,"OneDimensionalComponentsCompaction/lambda$1$Type",1690),P(1720,1,{},rbt),N(dI,"CGraph",1720),P(194,1,{194:1},Ite),p.b=0,p.c=0,p.e=0,p.g=!0,p.i=to,N(dI,"CGroup",194),P(1719,1,{},tze),p.yf=function(t,i){return h.Math.max(t.a!=null?Ae(t.a):t.c.i,i.a!=null?Ae(i.a):i.c.i)},p.zf=function(t,i){return h.Math.max(t.a!=null?Ae(t.a):t.c.i,i.a!=null?Ae(i.a):i.c.i)},N(dI,oAt,1719),P(1721,1,{},rkt),p.d=!1;var A5t,Bse=N(dI,aAt,1721);P(1722,1,{},nze),p.Kb=function(t){return mwe(),cn(),f(f(t,42).a,86).d.e!=0},p.Fb=function(t){return this===t},N(dI,cAt,1722),P(833,1,{},zye),p.a=!1,p.b=!1,p.c=!1,p.d=!1,N(dI,uAt,833),P(1898,1,{},ypt),N(RU,fAt,1898);var JM=Ei(Ew,rAt);P(1899,1,{382:1},Zbt),p.bf=function(t){s7n(this,f(t,476))},N(RU,dAt,1899),P(V1,1,cr,rze),p.Ne=function(t,i){return b_n(f(t,86),f(i,86))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(RU,hAt,V1),P(476,1,{476:1},Owe),p.a=!1,N(RU,pAt,476),P(1901,1,cr,ize),p.Ne=function(t,i){return g$n(f(t,476),f(i,476))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(RU,bAt,1901),P(148,1,{148:1},eC,Tye),p.Fb=function(t){var i;return t==null||RFn!=ou(t)?!1:(i=f(t,148),Ul(this.c,i.c)&&Ul(this.d,i.d))},p.Hb=function(){return gN(se(ie(ho,1),on,1,5,[this.c,this.d]))},p.Ib=function(){return"("+this.c+ds+this.d+(this.a?"cx":"")+this.b+")"},p.a=!0,p.c=0,p.d=0;var RFn=N(Ew,"Point",148);P(416,22,{3:1,34:1,22:1,416:1},CF);var yy,x_,L2,C_,T5t=Wn(Ew,"Point/Quadrant",416,qn,eEn,Swn),$5t;P(1708,1,{},zst),p.b=null,p.c=null,p.d=null,p.e=null,p.f=null;var I5t,P5t,O5t,N5t,M5t;N(Ew,"RectilinearConvexHull",1708),P(583,1,{382:1},wH),p.bf=function(t){Gkn(this,f(t,148))},p.b=0;var bTe;N(Ew,"RectilinearConvexHull/MaximalElementsEventHandler",583),P(1710,1,cr,oze),p.Ne=function(t,i){return g_n(je(t),je(i))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(Ew,"RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type",1710),P(1709,1,{382:1},Emt),p.bf=function(t){_On(this,f(t,148))},p.a=0,p.b=null,p.c=null,p.d=null,p.e=null,N(Ew,"RectilinearConvexHull/RectangleEventHandler",1709),P(1711,1,cr,sze),p.Ne=function(t,i){return k2n(f(t,148),f(i,148))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(Ew,"RectilinearConvexHull/lambda$0$Type",1711),P(1712,1,cr,cze),p.Ne=function(t,i){return R2n(f(t,148),f(i,148))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(Ew,"RectilinearConvexHull/lambda$1$Type",1712),P(1713,1,cr,uze),p.Ne=function(t,i){return E2n(f(t,148),f(i,148))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(Ew,"RectilinearConvexHull/lambda$2$Type",1713),P(1714,1,cr,aze),p.Ne=function(t,i){return x2n(f(t,148),f(i,148))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(Ew,"RectilinearConvexHull/lambda$3$Type",1714),P(1715,1,cr,fze),p.Ne=function(t,i){return rIn(f(t,148),f(i,148))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(Ew,"RectilinearConvexHull/lambda$4$Type",1715),P(1716,1,{},Agt),N(Ew,"Scanline",1716),P(2104,1,{}),N(ch,"AbstractGraphPlacer",2104),P(335,1,{335:1},bdt),p.Ff=function(t){return this.Gf(t)?(Gt(this.b,f(V(t,(nt(),Pb)),21),t),!0):!1},p.Gf=function(t){var i,s,a,c;for(i=f(V(t,(nt(),Pb)),21),c=f(Hr(Zr,i),21),a=c.Kc();a.Ob();)if(s=f(a.Pb(),21),!f(Hr(this.b,s),15).dc())return!1;return!0};var Zr;N(ch,"ComponentGroup",335),P(779,2104,{},N0e),p.Hf=function(t){var i,s;for(s=new ee(this.a);s.as&&(I=0,D+=m+a,m=0),_=b.c,bA(b,I+_.a,D+_.b),xd(_),c=h.Math.max(c,I+k.a),m=h.Math.max(m,k.b),I+=k.a+a;i.f.a=c,i.f.b=D+m},p.Jf=function(t,i){var s,a,c,b,g;if(Oe(V(i,(bt(),N_)))===Oe((hw(),A_))){for(a=t.Kc();a.Ob();){for(s=f(a.Pb(),36),g=0,b=new ee(s.a);b.as&&!f(V(b,(nt(),Pb)),21).Hc((ut(),bn))||_&&f(V(_,(nt(),Pb)),21).Hc((ut(),_n))||f(V(b,(nt(),Pb)),21).Hc((ut(),wn)))&&(W=D,U+=m+a,m=0),k=b.c,f(V(b,(nt(),Pb)),21).Hc((ut(),bn))&&(W=c+a),bA(b,W+k.a,U+k.b),c=h.Math.max(c,W+I.a),f(V(b,Pb),21).Hc(jn)&&(D=h.Math.max(D,W+I.a+a)),xd(k),m=h.Math.max(m,I.b),W+=I.a+a,_=b;i.f.a=c,i.f.b=U+m},p.Jf=function(t,i){},N(ch,"ModelOrderRowGraphPlacer",1313),P(1311,1,cr,pze),p.Ne=function(t,i){return URn(f(t,36),f(i,36))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(ch,"SimpleRowGraphPlacer/1",1311);var L5t;P(1280,1,Kh,bze),p.Lb=function(t){var i;return i=f(V(f(t,249).b,(bt(),Xs)),75),!!i&&i.b!=0},p.Fb=function(t){return this===t},p.Mb=function(t){var i;return i=f(V(f(t,249).b,(bt(),Xs)),75),!!i&&i.b!=0},N(xU,"CompoundGraphPostprocessor/1",1280),P(1279,1,ni,Yst),p.Kf=function(t,i){xSt(this,f(t,36),i)},N(xU,"CompoundGraphPreprocessor",1279),P(453,1,{453:1},g_t),p.c=!1,N(xU,"CompoundGraphPreprocessor/ExternalPort",453),P(249,1,{249:1},aB),p.Ib=function(){return BQ(this.c)+":"+YEt(this.b)},N(xU,"CrossHierarchyEdge",249),P(777,1,cr,w0e),p.Ne=function(t,i){return GTn(this,f(t,249),f(i,249))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(xU,"CrossHierarchyEdgeComparator",777),P(305,137,{3:1,305:1,96:1,137:1}),p.p=0,N(pa,"LGraphElement",305),P(18,305,{3:1,18:1,305:1,96:1,137:1},jm),p.Ib=function(){return YEt(this)};var Use=N(pa,"LEdge",18);P(36,305,{3:1,20:1,36:1,305:1,96:1,137:1},lSe),p.Jc=function(t){Vo(this,t)},p.Kc=function(){return new ee(this.b)},p.Ib=function(){return this.b.c.length==0?"G-unlayered"+B1(this.a):this.a.c.length==0?"G-layered"+B1(this.b):"G[layerless"+B1(this.a)+", layers"+B1(this.b)+"]"};var j5t=N(pa,"LGraph",36),F5t;P(666,1,{}),p.Lf=function(){return this.e.n},p.of=function(t){return V(this.e,t)},p.Mf=function(){return this.e.o},p.Nf=function(){return this.e.p},p.pf=function(t){return ri(this.e,t)},p.Of=function(t){this.e.n.a=t.a,this.e.n.b=t.b},p.Pf=function(t){this.e.o.a=t.a,this.e.o.b=t.b},p.Qf=function(t){this.e.p=t},N(pa,"LGraphAdapters/AbstractLShapeAdapter",666),P(474,1,{853:1},ZT),p.Rf=function(){var t,i;if(!this.b)for(this.b=pp(this.a.b.c.length),i=new ee(this.a.b);i.a0&&Kvt((pn(i-1,t.length),t.charCodeAt(i-1)),jAt);)--i;if(b> ",t),CH(s)),br(aa((t.a+="[",t),s.i),"]")),t.a},p.c=!0,p.d=!1;var vTe,_Te,STe,ETe,kTe,RTe,W5t=N(pa,"LPort",12);P(408,1,Rp,Hx),p.Jc=function(t){Vo(this,t)},p.Kc=function(){var t;return t=new ee(this.a.e),new Vrt(t)},N(pa,"LPort/1",408),P(1309,1,ko,Vrt),p.Nb=function(t){Uo(this,t)},p.Pb=function(){return f(Z(this.a),18).c},p.Ob=function(){return _l(this.a)},p.Qb=function(){q$(this.a)},N(pa,"LPort/1/1",1309),P(369,1,Rp,Tk),p.Jc=function(t){Vo(this,t)},p.Kc=function(){var t;return t=new ee(this.a.g),new m0e(t)},N(pa,"LPort/2",369),P(776,1,ko,m0e),p.Nb=function(t){Uo(this,t)},p.Pb=function(){return f(Z(this.a),18).d},p.Ob=function(){return _l(this.a)},p.Qb=function(){q$(this.a)},N(pa,"LPort/2/1",776),P(1302,1,Rp,Nct),p.Jc=function(t){Vo(this,t)},p.Kc=function(){return new Zd(this)},N(pa,"LPort/CombineIter",1302),P(208,1,ko,Zd),p.Nb=function(t){Uo(this,t)},p.Qb=function(){dat()},p.Ob=function(){return L$(this)},p.Pb=function(){return _l(this.a)?Z(this.a):Z(this.b)},N(pa,"LPort/CombineIter/1",208),P(1303,1,Kh,wze),p.Lb=function(t){return Opt(t)},p.Fb=function(t){return this===t},p.Mb=function(t){return bc(),f(t,12).g.c.length!=0},N(pa,"LPort/lambda$0$Type",1303),P(1304,1,Kh,mze),p.Lb=function(t){return Npt(t)},p.Fb=function(t){return this===t},p.Mb=function(t){return bc(),f(t,12).e.c.length!=0},N(pa,"LPort/lambda$1$Type",1304),P(1305,1,Kh,yze),p.Lb=function(t){return bc(),f(t,12).j==(ut(),bn)},p.Fb=function(t){return this===t},p.Mb=function(t){return bc(),f(t,12).j==(ut(),bn)},N(pa,"LPort/lambda$2$Type",1305),P(1306,1,Kh,vze),p.Lb=function(t){return bc(),f(t,12).j==(ut(),_n)},p.Fb=function(t){return this===t},p.Mb=function(t){return bc(),f(t,12).j==(ut(),_n)},N(pa,"LPort/lambda$3$Type",1306),P(1307,1,Kh,_ze),p.Lb=function(t){return bc(),f(t,12).j==(ut(),jn)},p.Fb=function(t){return this===t},p.Mb=function(t){return bc(),f(t,12).j==(ut(),jn)},N(pa,"LPort/lambda$4$Type",1307),P(1308,1,Kh,Sze),p.Lb=function(t){return bc(),f(t,12).j==(ut(),wn)},p.Fb=function(t){return this===t},p.Mb=function(t){return bc(),f(t,12).j==(ut(),wn)},N(pa,"LPort/lambda$5$Type",1308),P(30,305,{3:1,20:1,305:1,30:1,96:1,137:1},ca),p.Jc=function(t){Vo(this,t)},p.Kc=function(){return new ee(this.a)},p.Ib=function(){return"L_"+il(this.b.b,this,0)+B1(this.a)},N(pa,"Layer",30),P(1330,1,{},Jst),N(Ig,HAt,1330),P(1334,1,{},Eze),p.Kb=function(t){return sl(f(t,84))},N(Ig,"ElkGraphImporter/0methodref$connectableShapeToNode$Type",1334),P(1337,1,{},kze),p.Kb=function(t){return sl(f(t,84))},N(Ig,"ElkGraphImporter/1methodref$connectableShapeToNode$Type",1337),P(1331,1,Rn,zrt),p.Cd=function(t){pkt(this.a,f(t,123))},N(Ig,$Re,1331),P(1332,1,Rn,Krt),p.Cd=function(t){pkt(this.a,f(t,123))},N(Ig,UAt,1332),P(1333,1,{},Rze),p.Kb=function(t){return new Wt(null,new Vt(Ave(f(t,74)),16))},N(Ig,GAt,1333),P(1335,1,sr,qrt),p.Mb=function(t){return Kgn(this.a,f(t,27))},N(Ig,VAt,1335),P(1336,1,{},xze),p.Kb=function(t){return new Wt(null,new Vt(u_n(f(t,74)),16))},N(Ig,"ElkGraphImporter/lambda$5$Type",1336),P(1338,1,sr,Xrt),p.Mb=function(t){return qgn(this.a,f(t,27))},N(Ig,"ElkGraphImporter/lambda$7$Type",1338),P(1339,1,sr,Cze),p.Mb=function(t){return k_n(f(t,74))},N(Ig,"ElkGraphImporter/lambda$8$Type",1339),P(1297,1,{},Htt);var H5t;N(Ig,"ElkGraphLayoutTransferrer",1297),P(1298,1,sr,Jrt),p.Mb=function(t){return D0n(this.a,f(t,18))},N(Ig,"ElkGraphLayoutTransferrer/lambda$0$Type",1298),P(1299,1,Rn,Yrt),p.Cd=function(t){VO(),lt(this.a,f(t,18))},N(Ig,"ElkGraphLayoutTransferrer/lambda$1$Type",1299),P(1300,1,sr,Qrt),p.Mb=function(t){return _0n(this.a,f(t,18))},N(Ig,"ElkGraphLayoutTransferrer/lambda$2$Type",1300),P(1301,1,Rn,Zrt),p.Cd=function(t){VO(),lt(this.a,f(t,18))},N(Ig,"ElkGraphLayoutTransferrer/lambda$3$Type",1301),P(819,1,{},iye),N(yn,"BiLinkedHashMultiMap",819),P(1550,1,ni,Aze),p.Kf=function(t,i){cRn(f(t,36),i)},N(yn,"CommentNodeMarginCalculator",1550),P(1551,1,{},Tze),p.Kb=function(t){return new Wt(null,new Vt(f(t,30).a,16))},N(yn,"CommentNodeMarginCalculator/lambda$0$Type",1551),P(1552,1,Rn,$ze),p.Cd=function(t){c9n(f(t,10))},N(yn,"CommentNodeMarginCalculator/lambda$1$Type",1552),P(1553,1,ni,Ize),p.Kf=function(t,i){h7n(f(t,36),i)},N(yn,"CommentPostprocessor",1553),P(1554,1,ni,Pze),p.Kf=function(t,i){MLn(f(t,36),i)},N(yn,"CommentPreprocessor",1554),P(1555,1,ni,Oze),p.Kf=function(t,i){$On(f(t,36),i)},N(yn,"ConstraintsPostprocessor",1555),P(1556,1,ni,Nze),p.Kf=function(t,i){LRn(f(t,36),i)},N(yn,"EdgeAndLayerConstraintEdgeReverser",1556),P(1557,1,ni,Mze),p.Kf=function(t,i){CAn(f(t,36),i)},N(yn,"EndLabelPostprocessor",1557),P(1558,1,{},Dze),p.Kb=function(t){return new Wt(null,new Vt(f(t,30).a,16))},N(yn,"EndLabelPostprocessor/lambda$0$Type",1558),P(1559,1,sr,Lze),p.Mb=function(t){return HEn(f(t,10))},N(yn,"EndLabelPostprocessor/lambda$1$Type",1559),P(1560,1,Rn,jze),p.Cd=function(t){w$n(f(t,10))},N(yn,"EndLabelPostprocessor/lambda$2$Type",1560),P(1561,1,ni,Fze),p.Kf=function(t,i){o5n(f(t,36),i)},N(yn,"EndLabelPreprocessor",1561),P(1562,1,{},Bze),p.Kb=function(t){return new Wt(null,new Vt(f(t,30).a,16))},N(yn,"EndLabelPreprocessor/lambda$0$Type",1562),P(1563,1,Rn,_ht),p.Cd=function(t){sgn(this.a,this.b,this.c,f(t,10))},p.a=0,p.b=0,p.c=!1,N(yn,"EndLabelPreprocessor/lambda$1$Type",1563),P(1564,1,sr,Wze),p.Mb=function(t){return Oe(V(f(t,72),(bt(),rp)))===Oe((nh(),x4))},N(yn,"EndLabelPreprocessor/lambda$2$Type",1564),P(1565,1,Rn,eit),p.Cd=function(t){hr(this.a,f(t,72))},N(yn,"EndLabelPreprocessor/lambda$3$Type",1565),P(1566,1,sr,Hze),p.Mb=function(t){return Oe(V(f(t,72),(bt(),rp)))===Oe((nh(),K_))},N(yn,"EndLabelPreprocessor/lambda$4$Type",1566),P(1567,1,Rn,tit),p.Cd=function(t){hr(this.a,f(t,72))},N(yn,"EndLabelPreprocessor/lambda$5$Type",1567),P(1615,1,ni,Ntt),p.Kf=function(t,i){xCn(f(t,36),i)};var U5t;N(yn,"EndLabelSorter",1615),P(1616,1,cr,Uze),p.Ne=function(t,i){return o4n(f(t,466),f(i,466))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(yn,"EndLabelSorter/1",1616),P(466,1,{466:1},Kbt),N(yn,"EndLabelSorter/LabelGroup",466),P(1617,1,{},Gze),p.Kb=function(t){return GO(),new Wt(null,new Vt(f(t,30).a,16))},N(yn,"EndLabelSorter/lambda$0$Type",1617),P(1618,1,sr,Vze),p.Mb=function(t){return GO(),f(t,10).k==(gn(),ji)},N(yn,"EndLabelSorter/lambda$1$Type",1618),P(1619,1,Rn,zze),p.Cd=function(t){yIn(f(t,10))},N(yn,"EndLabelSorter/lambda$2$Type",1619),P(1620,1,sr,Kze),p.Mb=function(t){return GO(),Oe(V(f(t,72),(bt(),rp)))===Oe((nh(),K_))},N(yn,"EndLabelSorter/lambda$3$Type",1620),P(1621,1,sr,qze),p.Mb=function(t){return GO(),Oe(V(f(t,72),(bt(),rp)))===Oe((nh(),x4))},N(yn,"EndLabelSorter/lambda$4$Type",1621),P(1568,1,ni,Xze),p.Kf=function(t,i){E9n(this,f(t,36))},p.b=0,p.c=0,N(yn,"FinalSplineBendpointsCalculator",1568),P(1569,1,{},Jze),p.Kb=function(t){return new Wt(null,new Vt(f(t,30).a,16))},N(yn,"FinalSplineBendpointsCalculator/lambda$0$Type",1569),P(1570,1,{},Yze),p.Kb=function(t){return new Wt(null,new Pm(new kn(xn(Wi(f(t,10)).a.Kc(),new O))))},N(yn,"FinalSplineBendpointsCalculator/lambda$1$Type",1570),P(1571,1,sr,Qze),p.Mb=function(t){return!ms(f(t,18))},N(yn,"FinalSplineBendpointsCalculator/lambda$2$Type",1571),P(1572,1,sr,Zze),p.Mb=function(t){return ri(f(t,18),(nt(),Pw))},N(yn,"FinalSplineBendpointsCalculator/lambda$3$Type",1572),P(1573,1,Rn,nit),p.Cd=function(t){PNn(this.a,f(t,131))},N(yn,"FinalSplineBendpointsCalculator/lambda$4$Type",1573),P(1574,1,Rn,eKe),p.Cd=function(t){jN(f(t,18).a)},N(yn,"FinalSplineBendpointsCalculator/lambda$5$Type",1574),P(803,1,ni,y0e),p.Kf=function(t,i){wDn(this,f(t,36),i)},N(yn,"GraphTransformer",803),P(517,22,{3:1,34:1,22:1,517:1},Pwe);var Vse,YM,G5t=Wn(yn,"GraphTransformer/Mode",517,qn,z_n,Cmn),V5t;P(1575,1,ni,tKe),p.Kf=function(t,i){FPn(f(t,36),i)},N(yn,"HierarchicalNodeResizingProcessor",1575),P(1576,1,ni,nKe),p.Kf=function(t,i){iRn(f(t,36),i)},N(yn,"HierarchicalPortConstraintProcessor",1576),P(1577,1,cr,rKe),p.Ne=function(t,i){return x4n(f(t,10),f(i,10))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(yn,"HierarchicalPortConstraintProcessor/NodeComparator",1577),P(1578,1,ni,iKe),p.Kf=function(t,i){CMn(f(t,36),i)},N(yn,"HierarchicalPortDummySizeProcessor",1578),P(1579,1,ni,oKe),p.Kf=function(t,i){L7n(this,f(t,36),i)},p.a=0,N(yn,"HierarchicalPortOrthogonalEdgeRouter",1579),P(1580,1,cr,sKe),p.Ne=function(t,i){return F1n(f(t,10),f(i,10))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(yn,"HierarchicalPortOrthogonalEdgeRouter/1",1580),P(1581,1,cr,lKe),p.Ne=function(t,i){return Vkn(f(t,10),f(i,10))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(yn,"HierarchicalPortOrthogonalEdgeRouter/2",1581),P(1582,1,ni,aKe),p.Kf=function(t,i){eIn(f(t,36),i)},N(yn,"HierarchicalPortPositionProcessor",1582),P(1583,1,ni,Utt),p.Kf=function(t,i){gjn(this,f(t,36))},p.a=0,p.c=0;var BG,WG;N(yn,"HighDegreeNodeLayeringProcessor",1583),P(580,1,{580:1},cKe),p.b=-1,p.d=-1,N(yn,"HighDegreeNodeLayeringProcessor/HighDegreeNodeInformation",580),P(1584,1,{},uKe),p.Kb=function(t){return y7(),go(f(t,10))},p.Fb=function(t){return this===t},N(yn,"HighDegreeNodeLayeringProcessor/lambda$0$Type",1584),P(1585,1,{},fKe),p.Kb=function(t){return y7(),Wi(f(t,10))},p.Fb=function(t){return this===t},N(yn,"HighDegreeNodeLayeringProcessor/lambda$1$Type",1585),P(1591,1,ni,dKe),p.Kf=function(t,i){yMn(this,f(t,36),i)},N(yn,"HyperedgeDummyMerger",1591),P(804,1,{},yye),p.a=!1,p.b=!1,p.c=!1,N(yn,"HyperedgeDummyMerger/MergeState",804),P(1592,1,{},hKe),p.Kb=function(t){return new Wt(null,new Vt(f(t,30).a,16))},N(yn,"HyperedgeDummyMerger/lambda$0$Type",1592),P(1593,1,{},pKe),p.Kb=function(t){return new Wt(null,new Vt(f(t,10).j,16))},N(yn,"HyperedgeDummyMerger/lambda$1$Type",1593),P(1594,1,Rn,bKe),p.Cd=function(t){f(t,12).p=-1},N(yn,"HyperedgeDummyMerger/lambda$2$Type",1594),P(1595,1,ni,gKe),p.Kf=function(t,i){wMn(f(t,36),i)},N(yn,"HypernodesProcessor",1595),P(1596,1,ni,wKe),p.Kf=function(t,i){xMn(f(t,36),i)},N(yn,"InLayerConstraintProcessor",1596),P(1597,1,ni,mKe),p.Kf=function(t,i){yRn(f(t,36),i)},N(yn,"InnermostNodeMarginCalculator",1597),P(1598,1,ni,yKe),p.Kf=function(t,i){ILn(this,f(t,36))},p.a=to,p.b=to,p.c=hi,p.d=hi;var xFn=N(yn,"InteractiveExternalPortPositioner",1598);P(1599,1,{},vKe),p.Kb=function(t){return f(t,18).d.i},p.Fb=function(t){return this===t},N(yn,"InteractiveExternalPortPositioner/lambda$0$Type",1599),P(1600,1,{},rit),p.Kb=function(t){return B1n(this.a,je(t))},p.Fb=function(t){return this===t},N(yn,"InteractiveExternalPortPositioner/lambda$1$Type",1600),P(1601,1,{},_Ke),p.Kb=function(t){return f(t,18).c.i},p.Fb=function(t){return this===t},N(yn,"InteractiveExternalPortPositioner/lambda$2$Type",1601),P(1602,1,{},iit),p.Kb=function(t){return W1n(this.a,je(t))},p.Fb=function(t){return this===t},N(yn,"InteractiveExternalPortPositioner/lambda$3$Type",1602),P(1603,1,{},oit),p.Kb=function(t){return j0n(this.a,je(t))},p.Fb=function(t){return this===t},N(yn,"InteractiveExternalPortPositioner/lambda$4$Type",1603),P(1604,1,{},sit),p.Kb=function(t){return F0n(this.a,je(t))},p.Fb=function(t){return this===t},N(yn,"InteractiveExternalPortPositioner/lambda$5$Type",1604),P(81,22,{3:1,34:1,22:1,81:1,196:1},Vi),p.dg=function(){switch(this.g){case 15:return new jXe;case 22:return new FXe;case 47:return new HXe;case 28:case 35:return new PKe;case 32:return new Aze;case 42:return new Ize;case 1:return new Pze;case 41:return new Oze;case 56:return new y0e((MC(),YM));case 0:return new y0e((MC(),Vse));case 2:return new Nze;case 54:return new Mze;case 33:return new Fze;case 51:return new Xze;case 55:return new tKe;case 13:return new nKe;case 38:return new iKe;case 44:return new oKe;case 40:return new aKe;case 9:return new Utt;case 49:return new sdt;case 37:return new dKe;case 43:return new gKe;case 27:return new wKe;case 30:return new mKe;case 3:return new yKe;case 18:return new EKe;case 29:return new kKe;case 5:return new Gtt;case 50:return new SKe;case 34:return new Vtt;case 36:return new OKe;case 52:return new Ntt;case 11:return new NKe;case 7:return new ztt;case 39:return new MKe;case 45:return new DKe;case 16:return new LKe;case 10:return new Qct;case 48:return new WKe;case 21:return new HKe;case 23:return new AY((zm(),s5));case 8:return new GKe;case 12:return new zKe;case 4:return new KKe;case 19:return new Qtt;case 17:return new rqe;case 53:return new iqe;case 6:return new gqe;case 25:return new Zst;case 46:return new cqe;case 31:return new qdt;case 14:return new kqe;case 26:return new VXe;case 20:return new Tqe;case 24:return new AY((zm(),VV));default:throw ne(new hn(wie+(this.f!=null?this.f:""+this.g)))}};var xTe,CTe,ATe,TTe,$Te,ITe,PTe,OTe,NTe,MTe,j2,HG,UG,DTe,LTe,jTe,FTe,BTe,WTe,HTe,BI,UTe,GTe,VTe,zTe,KTe,zse,GG,VG,qTe,zG,KG,qG,YA,T_,$_,XTe,XG,JG,JTe,YG,QG,YTe,QTe,ZTe,e$e,ZG,Kse,QM,eV,tV,nV,rV,t$e,n$e,r$e,i$e,CFn=Wn(yn,mie,81,qn,l3t,xwn),z5t;P(1605,1,ni,EKe),p.Kf=function(t,i){TLn(f(t,36),i)},N(yn,"InvertedPortProcessor",1605),P(1606,1,ni,kKe),p.Kf=function(t,i){kNn(f(t,36),i)},N(yn,"LabelAndNodeSizeProcessor",1606),P(1607,1,sr,RKe),p.Mb=function(t){return f(t,10).k==(gn(),ji)},N(yn,"LabelAndNodeSizeProcessor/lambda$0$Type",1607),P(1608,1,sr,xKe),p.Mb=function(t){return f(t,10).k==(gn(),Ui)},N(yn,"LabelAndNodeSizeProcessor/lambda$1$Type",1608),P(1609,1,Rn,Sht),p.Cd=function(t){lgn(this.b,this.a,this.c,f(t,10))},p.a=!1,p.c=!1,N(yn,"LabelAndNodeSizeProcessor/lambda$2$Type",1609),P(1610,1,ni,Gtt),p.Kf=function(t,i){tLn(f(t,36),i)};var K5t;N(yn,"LabelDummyInserter",1610),P(1611,1,Kh,CKe),p.Lb=function(t){return Oe(V(f(t,72),(bt(),rp)))===Oe((nh(),R4))},p.Fb=function(t){return this===t},p.Mb=function(t){return Oe(V(f(t,72),(bt(),rp)))===Oe((nh(),R4))},N(yn,"LabelDummyInserter/1",1611),P(1612,1,ni,SKe),p.Kf=function(t,i){UDn(f(t,36),i)},N(yn,"LabelDummyRemover",1612),P(1613,1,sr,AKe),p.Mb=function(t){return mt(wt(V(f(t,72),(bt(),Mle))))},N(yn,"LabelDummyRemover/lambda$0$Type",1613),P(1378,1,ni,Vtt),p.Kf=function(t,i){MDn(this,f(t,36),i)},p.a=null;var qse;N(yn,"LabelDummySwitcher",1378),P(293,1,{293:1},sRt),p.c=0,p.d=null,p.f=0,N(yn,"LabelDummySwitcher/LabelDummyInfo",293),P(1379,1,{},TKe),p.Kb=function(t){return b3(),new Wt(null,new Vt(f(t,30).a,16))},N(yn,"LabelDummySwitcher/lambda$0$Type",1379),P(1380,1,sr,$Ke),p.Mb=function(t){return b3(),f(t,10).k==(gn(),ea)},N(yn,"LabelDummySwitcher/lambda$1$Type",1380),P(1381,1,{},lit),p.Kb=function(t){return S0n(this.a,f(t,10))},N(yn,"LabelDummySwitcher/lambda$2$Type",1381),P(1382,1,Rn,ait),p.Cd=function(t){Hvn(this.a,f(t,293))},N(yn,"LabelDummySwitcher/lambda$3$Type",1382),P(1383,1,cr,IKe),p.Ne=function(t,i){return dvn(f(t,293),f(i,293))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(yn,"LabelDummySwitcher/lambda$4$Type",1383),P(802,1,ni,PKe),p.Kf=function(t,i){kkn(f(t,36),i)},N(yn,"LabelManagementProcessor",802),P(1614,1,ni,OKe),p.Kf=function(t,i){t7n(f(t,36),i)},N(yn,"LabelSideSelector",1614),P(1622,1,ni,NKe),p.Kf=function(t,i){HMn(f(t,36),i)},N(yn,"LayerConstraintPostprocessor",1622),P(1623,1,ni,ztt),p.Kf=function(t,i){L8n(f(t,36),i)};var o$e;N(yn,"LayerConstraintPreprocessor",1623),P(371,22,{3:1,34:1,22:1,371:1},TF);var ZM,iV,oV,Xse,q5t=Wn(yn,"LayerConstraintPreprocessor/HiddenNodeConnections",371,qn,nEn,Cwn),X5t;P(1624,1,ni,MKe),p.Kf=function(t,i){oDn(f(t,36),i)},N(yn,"LayerSizeAndGraphHeightCalculator",1624),P(1625,1,ni,DKe),p.Kf=function(t,i){BPn(f(t,36),i)},N(yn,"LongEdgeJoiner",1625),P(1626,1,ni,LKe),p.Kf=function(t,i){N9n(f(t,36),i)},N(yn,"LongEdgeSplitter",1626),P(1627,1,ni,Qct),p.Kf=function(t,i){gLn(this,f(t,36),i)},p.e=0,p.f=0,p.j=0,p.k=0,p.n=0,p.o=0;var J5t,Y5t;N(yn,"NodePromotion",1627),P(1628,1,cr,jKe),p.Ne=function(t,i){return Txn(f(t,10),f(i,10))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(yn,"NodePromotion/1",1628),P(1629,1,cr,FKe),p.Ne=function(t,i){return $xn(f(t,10),f(i,10))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(yn,"NodePromotion/2",1629),P(1630,1,{},BKe),p.Kb=function(t){return f(t,42),uB(),cn(),!0},p.Fb=function(t){return this===t},N(yn,"NodePromotion/lambda$0$Type",1630),P(1631,1,{},dit),p.Kb=function(t){return RSn(this.a,f(t,42))},p.Fb=function(t){return this===t},p.a=0,N(yn,"NodePromotion/lambda$1$Type",1631),P(1632,1,{},hit),p.Kb=function(t){return kSn(this.a,f(t,42))},p.Fb=function(t){return this===t},p.a=0,N(yn,"NodePromotion/lambda$2$Type",1632),P(1633,1,ni,WKe),p.Kf=function(t,i){ujn(f(t,36),i)},N(yn,"NorthSouthPortPostprocessor",1633),P(1634,1,ni,HKe),p.Kf=function(t,i){GLn(f(t,36),i)},N(yn,"NorthSouthPortPreprocessor",1634),P(1635,1,cr,UKe),p.Ne=function(t,i){return GRn(f(t,12),f(i,12))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(yn,"NorthSouthPortPreprocessor/lambda$0$Type",1635),P(1636,1,ni,GKe),p.Kf=function(t,i){oMn(f(t,36),i)},N(yn,"PartitionMidprocessor",1636),P(1637,1,sr,VKe),p.Mb=function(t){return ri(f(t,10),(bt(),f4))},N(yn,"PartitionMidprocessor/lambda$0$Type",1637),P(1638,1,Rn,pit),p.Cd=function(t){R_n(this.a,f(t,10))},N(yn,"PartitionMidprocessor/lambda$1$Type",1638),P(1639,1,ni,zKe),p.Kf=function(t,i){lOn(f(t,36),i)},N(yn,"PartitionPostprocessor",1639),P(1640,1,ni,KKe),p.Kf=function(t,i){_8n(f(t,36),i)},N(yn,"PartitionPreprocessor",1640),P(1641,1,sr,qKe),p.Mb=function(t){return ri(f(t,10),(bt(),f4))},N(yn,"PartitionPreprocessor/lambda$0$Type",1641),P(1642,1,{},XKe),p.Kb=function(t){return new Wt(null,new Pm(new kn(xn(Wi(f(t,10)).a.Kc(),new O))))},N(yn,"PartitionPreprocessor/lambda$1$Type",1642),P(1643,1,sr,JKe),p.Mb=function(t){return f4n(f(t,18))},N(yn,"PartitionPreprocessor/lambda$2$Type",1643),P(1644,1,Rn,YKe),p.Cd=function(t){lxn(f(t,18))},N(yn,"PartitionPreprocessor/lambda$3$Type",1644),P(1645,1,ni,Qtt),p.Kf=function(t,i){FNn(f(t,36),i)};var s$e,Q5t,Z5t,e8t,l$e,a$e;N(yn,"PortListSorter",1645),P(1648,1,cr,QKe),p.Ne=function(t,i){return Y1t(f(t,12),f(i,12))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(yn,"PortListSorter/lambda$0$Type",1648),P(1650,1,cr,ZKe),p.Ne=function(t,i){return $Rt(f(t,12),f(i,12))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(yn,"PortListSorter/lambda$1$Type",1650),P(1646,1,{},eqe),p.Kb=function(t){return zC(),f(t,12).e},N(yn,"PortListSorter/lambda$2$Type",1646),P(1647,1,{},tqe),p.Kb=function(t){return zC(),f(t,12).g},N(yn,"PortListSorter/lambda$3$Type",1647),P(1649,1,cr,nqe),p.Ne=function(t,i){return MTn(f(t,12),f(i,12))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(yn,"PortListSorter/lambda$4$Type",1649),P(1651,1,ni,rqe),p.Kf=function(t,i){J8n(f(t,36),i)},N(yn,"PortSideProcessor",1651),P(1652,1,ni,iqe),p.Kf=function(t,i){Y7n(f(t,36),i)},N(yn,"ReversedEdgeRestorer",1652),P(1657,1,ni,Zst),p.Kf=function(t,i){wTn(this,f(t,36),i)},N(yn,"SelfLoopPortRestorer",1657),P(1658,1,{},oqe),p.Kb=function(t){return new Wt(null,new Vt(f(t,30).a,16))},N(yn,"SelfLoopPortRestorer/lambda$0$Type",1658),P(1659,1,sr,sqe),p.Mb=function(t){return f(t,10).k==(gn(),ji)},N(yn,"SelfLoopPortRestorer/lambda$1$Type",1659),P(1660,1,sr,lqe),p.Mb=function(t){return ri(f(t,10),(nt(),Ry))},N(yn,"SelfLoopPortRestorer/lambda$2$Type",1660),P(1661,1,{},aqe),p.Kb=function(t){return f(V(f(t,10),(nt(),Ry)),337)},N(yn,"SelfLoopPortRestorer/lambda$3$Type",1661),P(1662,1,Rn,uit),p.Cd=function(t){PIn(this.a,f(t,337))},N(yn,"SelfLoopPortRestorer/lambda$4$Type",1662),P(805,1,Rn,T1e),p.Cd=function(t){VIn(f(t,105))},N(yn,"SelfLoopPortRestorer/lambda$5$Type",805),P(1663,1,ni,cqe),p.Kf=function(t,i){E4n(f(t,36),i)},N(yn,"SelfLoopPostProcessor",1663),P(1664,1,{},uqe),p.Kb=function(t){return new Wt(null,new Vt(f(t,30).a,16))},N(yn,"SelfLoopPostProcessor/lambda$0$Type",1664),P(1665,1,sr,fqe),p.Mb=function(t){return f(t,10).k==(gn(),ji)},N(yn,"SelfLoopPostProcessor/lambda$1$Type",1665),P(1666,1,sr,dqe),p.Mb=function(t){return ri(f(t,10),(nt(),Ry))},N(yn,"SelfLoopPostProcessor/lambda$2$Type",1666),P(1667,1,Rn,hqe),p.Cd=function(t){N$n(f(t,10))},N(yn,"SelfLoopPostProcessor/lambda$3$Type",1667),P(1668,1,{},pqe),p.Kb=function(t){return new Wt(null,new Vt(f(t,105).f,1))},N(yn,"SelfLoopPostProcessor/lambda$4$Type",1668),P(1669,1,Rn,cit),p.Cd=function(t){sEn(this.a,f(t,340))},N(yn,"SelfLoopPostProcessor/lambda$5$Type",1669),P(1670,1,sr,bqe),p.Mb=function(t){return!!f(t,105).i},N(yn,"SelfLoopPostProcessor/lambda$6$Type",1670),P(1671,1,Rn,fit),p.Cd=function(t){sbn(this.a,f(t,105))},N(yn,"SelfLoopPostProcessor/lambda$7$Type",1671),P(1653,1,ni,gqe),p.Kf=function(t,i){RPn(f(t,36),i)},N(yn,"SelfLoopPreProcessor",1653),P(1654,1,{},wqe),p.Kb=function(t){return new Wt(null,new Vt(f(t,105).f,1))},N(yn,"SelfLoopPreProcessor/lambda$0$Type",1654),P(1655,1,{},mqe),p.Kb=function(t){return f(t,340).a},N(yn,"SelfLoopPreProcessor/lambda$1$Type",1655),P(1656,1,Rn,yqe),p.Cd=function(t){c1n(f(t,18))},N(yn,"SelfLoopPreProcessor/lambda$2$Type",1656),P(1672,1,ni,qdt),p.Kf=function(t,i){hIn(this,f(t,36),i)},N(yn,"SelfLoopRouter",1672),P(1673,1,{},vqe),p.Kb=function(t){return new Wt(null,new Vt(f(t,30).a,16))},N(yn,"SelfLoopRouter/lambda$0$Type",1673),P(1674,1,sr,_qe),p.Mb=function(t){return f(t,10).k==(gn(),ji)},N(yn,"SelfLoopRouter/lambda$1$Type",1674),P(1675,1,sr,Sqe),p.Mb=function(t){return ri(f(t,10),(nt(),Ry))},N(yn,"SelfLoopRouter/lambda$2$Type",1675),P(1676,1,{},Eqe),p.Kb=function(t){return f(V(f(t,10),(nt(),Ry)),337)},N(yn,"SelfLoopRouter/lambda$3$Type",1676),P(1677,1,Rn,Pct),p.Cd=function(t){y_n(this.a,this.b,f(t,337))},N(yn,"SelfLoopRouter/lambda$4$Type",1677),P(1678,1,ni,kqe),p.Kf=function(t,i){UOn(f(t,36),i)},N(yn,"SemiInteractiveCrossMinProcessor",1678),P(1679,1,sr,Rqe),p.Mb=function(t){return f(t,10).k==(gn(),ji)},N(yn,"SemiInteractiveCrossMinProcessor/lambda$0$Type",1679),P(1680,1,sr,xqe),p.Mb=function(t){return fpt(f(t,10))._b((bt(),F_))},N(yn,"SemiInteractiveCrossMinProcessor/lambda$1$Type",1680),P(1681,1,cr,Cqe),p.Ne=function(t,i){return sRn(f(t,10),f(i,10))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(yn,"SemiInteractiveCrossMinProcessor/lambda$2$Type",1681),P(1682,1,{},Aqe),p.Ve=function(t,i){return x_n(f(t,10),f(i,10))},N(yn,"SemiInteractiveCrossMinProcessor/lambda$3$Type",1682),P(1684,1,ni,Tqe),p.Kf=function(t,i){h9n(f(t,36),i)},N(yn,"SortByInputModelProcessor",1684),P(1685,1,sr,$qe),p.Mb=function(t){return f(t,12).g.c.length!=0},N(yn,"SortByInputModelProcessor/lambda$0$Type",1685),P(1686,1,Rn,bit),p.Cd=function(t){JIn(this.a,f(t,12))},N(yn,"SortByInputModelProcessor/lambda$1$Type",1686),P(1759,817,{},_yt),p.df=function(t){var i,s,a,c;switch(this.c=t,this.a.g){case 2:i=new st,Mi(Br(new Wt(null,new Vt(this.c.a.b,16)),new Gqe),new Wct(this,i)),FN(this,new Pqe),Ma(i,new Oqe),i.c.length=0,Mi(Br(new Wt(null,new Vt(this.c.a.b,16)),new Nqe),new wit(i)),FN(this,new Mqe),Ma(i,new Dqe),i.c.length=0,s=Sft(Uee(Wv(new Wt(null,new Vt(this.c.a.b,16)),new mit(this))),new Lqe),Mi(new Wt(null,new Vt(this.c.a.a,16)),new Mct(s,i)),FN(this,new Fqe),Ma(i,new Bqe),i.c.length=0;break;case 3:a=new st,FN(this,new Iqe),c=Sft(Uee(Wv(new Wt(null,new Vt(this.c.a.b,16)),new git(this))),new jqe),Mi(Br(new Wt(null,new Vt(this.c.a.b,16)),new Wqe),new Lct(c,a)),FN(this,new Hqe),Ma(a,new Uqe),a.c.length=0;break;default:throw ne(new Bst)}},p.b=0,N(ro,"EdgeAwareScanlineConstraintCalculation",1759),P(1760,1,Kh,Iqe),p.Lb=function(t){return ve(f(t,60).g,154)},p.Fb=function(t){return this===t},p.Mb=function(t){return ve(f(t,60).g,154)},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$0$Type",1760),P(1761,1,{},git),p.Ye=function(t){return O5n(this.a,f(t,60))},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$1$Type",1761),P(1769,1,dU,Oct),p.de=function(){N6(this.a,this.b,-1)},p.b=0,N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$10$Type",1769),P(1771,1,Kh,Pqe),p.Lb=function(t){return ve(f(t,60).g,154)},p.Fb=function(t){return this===t},p.Mb=function(t){return ve(f(t,60).g,154)},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$11$Type",1771),P(1772,1,Rn,Oqe),p.Cd=function(t){f(t,380).de()},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$12$Type",1772),P(1773,1,sr,Nqe),p.Mb=function(t){return ve(f(t,60).g,10)},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$13$Type",1773),P(1775,1,Rn,wit),p.Cd=function(t){ZCn(this.a,f(t,60))},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$14$Type",1775),P(1774,1,dU,jct),p.de=function(){N6(this.b,this.a,-1)},p.a=0,N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$15$Type",1774),P(1776,1,Kh,Mqe),p.Lb=function(t){return ve(f(t,60).g,10)},p.Fb=function(t){return this===t},p.Mb=function(t){return ve(f(t,60).g,10)},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$16$Type",1776),P(1777,1,Rn,Dqe),p.Cd=function(t){f(t,380).de()},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$17$Type",1777),P(1778,1,{},mit),p.Ye=function(t){return N5n(this.a,f(t,60))},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$18$Type",1778),P(1779,1,{},Lqe),p.We=function(){return 0},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$19$Type",1779),P(1762,1,{},jqe),p.We=function(){return 0},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$2$Type",1762),P(1781,1,Rn,Mct),p.Cd=function(t){ivn(this.a,this.b,f(t,316))},p.a=0,N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$20$Type",1781),P(1780,1,dU,Dct),p.de=function(){Dkt(this.a,this.b,-1)},p.b=0,N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$21$Type",1780),P(1782,1,Kh,Fqe),p.Lb=function(t){return f(t,60),!0},p.Fb=function(t){return this===t},p.Mb=function(t){return f(t,60),!0},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$22$Type",1782),P(1783,1,Rn,Bqe),p.Cd=function(t){f(t,380).de()},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$23$Type",1783),P(1763,1,sr,Wqe),p.Mb=function(t){return ve(f(t,60).g,10)},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$3$Type",1763),P(1765,1,Rn,Lct),p.Cd=function(t){ovn(this.a,this.b,f(t,60))},p.a=0,N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$4$Type",1765),P(1764,1,dU,Fct),p.de=function(){N6(this.b,this.a,-1)},p.a=0,N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$5$Type",1764),P(1766,1,Kh,Hqe),p.Lb=function(t){return f(t,60),!0},p.Fb=function(t){return this===t},p.Mb=function(t){return f(t,60),!0},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$6$Type",1766),P(1767,1,Rn,Uqe),p.Cd=function(t){f(t,380).de()},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$7$Type",1767),P(1768,1,sr,Gqe),p.Mb=function(t){return ve(f(t,60).g,154)},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$8$Type",1768),P(1770,1,Rn,Wct),p.Cd=function(t){E3n(this.a,this.b,f(t,60))},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$9$Type",1770),P(1586,1,ni,sdt),p.Kf=function(t,i){B9n(this,f(t,36),i)};var t8t;N(ro,"HorizontalGraphCompactor",1586),P(1587,1,{},yit),p.ff=function(t,i){var s,a,c;return H_e(t,i)||(s=ZS(t),a=ZS(i),s&&s.k==(gn(),Ui)||a&&a.k==(gn(),Ui))?0:(c=f(V(this.a.a,(nt(),K2)),312),V1n(c,s?s.k:(gn(),vo),a?a.k:(gn(),vo)))},p.gf=function(t,i){var s,a,c;return H_e(t,i)?1:(s=ZS(t),a=ZS(i),c=f(V(this.a.a,(nt(),K2)),312),Ome(c,s?s.k:(gn(),vo),a?a.k:(gn(),vo)))},N(ro,"HorizontalGraphCompactor/1",1587),P(1588,1,{},Vqe),p.ef=function(t,i){return d$(),t.a.i==0},N(ro,"HorizontalGraphCompactor/lambda$0$Type",1588),P(1589,1,{},vit),p.ef=function(t,i){return T_n(this.a,t,i)},N(ro,"HorizontalGraphCompactor/lambda$1$Type",1589),P(1730,1,{},Jwt);var n8t,r8t;N(ro,"LGraphToCGraphTransformer",1730),P(1738,1,sr,zqe),p.Mb=function(t){return t!=null},N(ro,"LGraphToCGraphTransformer/0methodref$nonNull$Type",1738),P(1731,1,{},Kqe),p.Kb=function(t){return Qf(),dl(V(f(f(t,60).g,10),(nt(),Ur)))},N(ro,"LGraphToCGraphTransformer/lambda$0$Type",1731),P(1732,1,{},qqe),p.Kb=function(t){return Qf(),l_t(f(f(t,60).g,154))},N(ro,"LGraphToCGraphTransformer/lambda$1$Type",1732),P(1741,1,sr,Xqe),p.Mb=function(t){return Qf(),ve(f(t,60).g,10)},N(ro,"LGraphToCGraphTransformer/lambda$10$Type",1741),P(1742,1,Rn,Jqe),p.Cd=function(t){N_n(f(t,60))},N(ro,"LGraphToCGraphTransformer/lambda$11$Type",1742),P(1743,1,sr,Yqe),p.Mb=function(t){return Qf(),ve(f(t,60).g,154)},N(ro,"LGraphToCGraphTransformer/lambda$12$Type",1743),P(1747,1,Rn,Qqe),p.Cd=function(t){fCn(f(t,60))},N(ro,"LGraphToCGraphTransformer/lambda$13$Type",1747),P(1744,1,Rn,_it),p.Cd=function(t){jgn(this.a,f(t,8))},p.a=0,N(ro,"LGraphToCGraphTransformer/lambda$14$Type",1744),P(1745,1,Rn,Sit),p.Cd=function(t){Bgn(this.a,f(t,116))},p.a=0,N(ro,"LGraphToCGraphTransformer/lambda$15$Type",1745),P(1746,1,Rn,Eit),p.Cd=function(t){Fgn(this.a,f(t,8))},p.a=0,N(ro,"LGraphToCGraphTransformer/lambda$16$Type",1746),P(1748,1,{},Zqe),p.Kb=function(t){return Qf(),new Wt(null,new Pm(new kn(xn(Wi(f(t,10)).a.Kc(),new O))))},N(ro,"LGraphToCGraphTransformer/lambda$17$Type",1748),P(1749,1,sr,eXe),p.Mb=function(t){return Qf(),ms(f(t,18))},N(ro,"LGraphToCGraphTransformer/lambda$18$Type",1749),P(1750,1,Rn,kit),p.Cd=function(t){t3n(this.a,f(t,18))},N(ro,"LGraphToCGraphTransformer/lambda$19$Type",1750),P(1734,1,Rn,Rit),p.Cd=function(t){A2n(this.a,f(t,154))},N(ro,"LGraphToCGraphTransformer/lambda$2$Type",1734),P(1751,1,{},tXe),p.Kb=function(t){return Qf(),new Wt(null,new Vt(f(t,30).a,16))},N(ro,"LGraphToCGraphTransformer/lambda$20$Type",1751),P(1752,1,{},nXe),p.Kb=function(t){return Qf(),new Wt(null,new Pm(new kn(xn(Wi(f(t,10)).a.Kc(),new O))))},N(ro,"LGraphToCGraphTransformer/lambda$21$Type",1752),P(1753,1,{},rXe),p.Kb=function(t){return Qf(),f(V(f(t,18),(nt(),Pw)),15)},N(ro,"LGraphToCGraphTransformer/lambda$22$Type",1753),P(1754,1,sr,iXe),p.Mb=function(t){return z1n(f(t,15))},N(ro,"LGraphToCGraphTransformer/lambda$23$Type",1754),P(1755,1,Rn,xit),p.Cd=function(t){S5n(this.a,f(t,15))},N(ro,"LGraphToCGraphTransformer/lambda$24$Type",1755),P(1733,1,Rn,Hct),p.Cd=function(t){REn(this.a,this.b,f(t,154))},N(ro,"LGraphToCGraphTransformer/lambda$3$Type",1733),P(1735,1,{},oXe),p.Kb=function(t){return Qf(),new Wt(null,new Vt(f(t,30).a,16))},N(ro,"LGraphToCGraphTransformer/lambda$4$Type",1735),P(1736,1,{},sXe),p.Kb=function(t){return Qf(),new Wt(null,new Pm(new kn(xn(Wi(f(t,10)).a.Kc(),new O))))},N(ro,"LGraphToCGraphTransformer/lambda$5$Type",1736),P(1737,1,{},lXe),p.Kb=function(t){return Qf(),f(V(f(t,18),(nt(),Pw)),15)},N(ro,"LGraphToCGraphTransformer/lambda$6$Type",1737),P(1739,1,Rn,Cit),p.Cd=function(t){M5n(this.a,f(t,15))},N(ro,"LGraphToCGraphTransformer/lambda$8$Type",1739),P(1740,1,Rn,Uct),p.Cd=function(t){u1n(this.a,this.b,f(t,154))},N(ro,"LGraphToCGraphTransformer/lambda$9$Type",1740),P(1729,1,{},aXe),p.cf=function(t){var i,s,a,c,b;for(this.a=t,this.d=new yY,this.c=Fe(W4e,on,125,this.a.a.a.c.length,0,1),this.b=0,s=new ee(this.a.a.a);s.a"The options parameter is deprecated and will startInLayerDummy=`,aa(t,this.k),t.a+=` startInLayerEdge=`,aa(t,this.n),t.a+=` endInLayerDummy=`,aa(t,this.b),t.a+=` - endInLayerEdge=`,aa(t,this.c),t.a},N(Yh,"BreakingPointInserter/BPInfo",313),P(661,1,{661:1},Dit),p.a=!1,p.b=0,p.c=0,N(Yh,"BreakingPointInserter/Cut",661),P(1545,1,ni,OXe),p.Kf=function(t,i){RPn(f(t,36),i)},N(Yh,"BreakingPointProcessor",1545),P(1546,1,sr,NXe),p.Mb=function(t){return nmt(f(t,10))},N(Yh,"BreakingPointProcessor/0methodref$isEnd$Type",1546),P(1547,1,sr,MXe),p.Mb=function(t){return rmt(f(t,10))},N(Yh,"BreakingPointProcessor/1methodref$isStart$Type",1547),P(1548,1,ni,DXe),p.Kf=function(t,i){KPn(this,f(t,36),i)},N(Yh,"BreakingPointRemover",1548),P(1549,1,Rn,LXe),p.Cd=function(t){f(t,131).k=!0},N(Yh,"BreakingPointRemover/lambda$0$Type",1549),P(811,1,{},xke),p.b=0,p.e=0,p.f=0,p.j=0,N(Yh,"GraphStats",811),P(812,1,{},A1e),p.Ve=function(t,i){return h.Math.max(Ae(je(t)),Ae(je(i)))},N(Yh,"GraphStats/0methodref$max$Type",812),P(813,1,{},T1e),p.Ve=function(t,i){return h.Math.max(Ae(je(t)),Ae(je(i)))},N(Yh,"GraphStats/2methodref$max$Type",813),P(1726,1,{},jXe),p.Ve=function(t,i){return qmn(je(t),je(i))},N(Yh,"GraphStats/lambda$1$Type",1726),P(1727,1,{},Cit),p.Kb=function(t){return aSt(this.a,f(t,30))},N(Yh,"GraphStats/lambda$2$Type",1727),P(1728,1,{},Ait),p.Kb=function(t){return Zkt(this.a,f(t,30))},N(Yh,"GraphStats/lambda$6$Type",1728),P(814,1,{},$1e),p.og=function(t,i){var s;return s=f(V(t,(pt(),tIe)),15),s||(qt(),qt(),ps)},p.pg=function(){return!1},N(Yh,"ICutIndexCalculator/ManualCutIndexCalculator",814),P(816,1,{},I1e),p.og=function(t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke;for(Ke=(i.n==null&&DSt(i),i.n),_=(i.d==null&&DSt(i),i.d),Ce=Fe(Ro,js,28,Ke.length,15,1),Ce[0]=Ke[0],ge=Ke[0],k=1;k=X&&(lt(b,ot(I)),_e=h.Math.max(_e,Ce[I-1]-D),m+=z,oe+=Ce[I-1]-oe,D=Ce[I-1],z=_[I]),z=h.Math.max(z,_[I]),++I;m+=z}U=h.Math.min(1/_e,1/i.b/m),U>a&&(a=U,s=b)}return s},p.pg=function(){return!1},N(Yh,"MSDCutIndexHeuristic",816),P(1683,1,ni,FXe),p.Kf=function(t,i){MMn(f(t,36),i)},N(Yh,"SingleEdgeGraphWrapper",1683),P(232,22,{3:1,34:1,22:1,232:1},v$);var B2,e4,t4,I_,WI,W2,n4=Wn(Zl,"CenterEdgeLabelPlacementStrategy",232,qn,vkn,Swn),c8t;P(431,22,{3:1,34:1,22:1,431:1},$we);var s$e,ile,l$e=Wn(Zl,"ConstraintCalculationStrategy",431,qn,B_n,Ewn),u8t;P(322,22,{3:1,34:1,22:1,322:1,188:1,196:1},YY),p.dg=function(){return jEt(this)},p.qg=function(){return jEt(this)};var n9,HI,a$e,c$e=Wn(Zl,"CrossingMinimizationStrategy",322,qn,NSn,kwn),f8t;P(351,22,{3:1,34:1,22:1,351:1},QY);var u$e,ole,fV,f$e=Wn(Zl,"CuttingStrategy",351,qn,MSn,Rwn),d8t;P(348,22,{3:1,34:1,22:1,348:1,188:1,196:1},JO),p.dg=function(){return Akt(this)},p.qg=function(){return Akt(this)};var d$e,sle,r4,lle,i4,h$e=Wn(Zl,"CycleBreakingStrategy",348,qn,jEn,xwn),h8t;P(428,22,{3:1,34:1,22:1,428:1},Iwe);var dV,p$e,b$e=Wn(Zl,"DirectionCongruency",428,qn,F_n,Cwn),p8t;P(460,22,{3:1,34:1,22:1,460:1},ZY);var o4,ale,H2,b8t=Wn(Zl,"EdgeConstraint",460,qn,DSn,Nwn),g8t;P(283,22,{3:1,34:1,22:1,283:1},_$);var cle,ule,fle,dle,hV,hle,g$e=Wn(Zl,"EdgeLabelSideSelection",283,qn,wkn,Mwn),w8t;P(488,22,{3:1,34:1,22:1,488:1},Pwe);var pV,w$e,m$e=Wn(Zl,"EdgeStraighteningStrategy",488,qn,K_n,Dwn),m8t;P(281,22,{3:1,34:1,22:1,281:1},S$);var ple,y$e,v$e,bV,_$e,S$e,E$e=Wn(Zl,"FixedAlignment",281,qn,mkn,Own),y8t;P(282,22,{3:1,34:1,22:1,282:1},E$);var k$e,R$e,x$e,C$e,UI,A$e,T$e=Wn(Zl,"GraphCompactionStrategy",282,qn,ykn,Awn),v8t;P(259,22,{3:1,34:1,22:1,259:1},Tv);var s4,gV,l4,af,GI,wV,a4,U2,mV,VI,ble=Wn(Zl,"GraphProperties",259,qn,rRn,Twn),_8t;P(299,22,{3:1,34:1,22:1,299:1},eQ);var r9,gle,wle,mle=Wn(Zl,"GreedySwitchType",299,qn,LSn,$wn),S8t;P(311,22,{3:1,34:1,22:1,311:1},tQ);var J3,i9,G2,E8t=Wn(Zl,"InLayerConstraint",311,qn,jSn,Iwn),k8t;P(429,22,{3:1,34:1,22:1,429:1},Owe);var yle,$$e,I$e=Wn(Zl,"InteractiveReferencePoint",429,qn,j_n,Pwn),R8t,P$e,Y3,Ey,yV,O$e,N$e,vV,M$e,o9,_V,zI,Q3,Pb,vle,SV,Dl,D$e,t0,ma,_le,Sle,s9,Iw,ky,Z3,L$e,eR,l9,P_,jd,Af,Ele,V2,Yr,Ur,j$e,F$e,B$e,W$e,H$e,kle,EV,Ic,Ry,Rle,tR,KI,hh,z2,xy,K2,q2,c4,Pw,U$e,xle,Cle,nR;P(171,22,{3:1,34:1,22:1,171:1},YO);var qI,n0,XI,O_,a9,G$e=Wn(Zl,"LayerConstraint",171,qn,BEn,Lwn),x8t;P(859,1,Ef,Ztt),p.hf=function(t){Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,BRe),""),"Direction Congruency"),"Specifies how drawings of the same graph with different layout directions compare to each other: either a natural reading direction is preserved or the drawings are rotated versions of each other."),e6e),(Cg(),pi)),b$e),Mt((Nd(),nn))))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,WRe),""),"Feedback Edges"),"Whether feedback edges should be highlighted by routing around the nodes."),(cn(),!1)),po),Li),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,AU),""),"Interactive Reference Point"),"Determines which point of a node is considered by interactive layout phases."),s6e),pi),I$e),Mt(nn)))),qi(t,AU,yie,vPt),qi(t,AU,pI,yPt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,HRe),""),"Merge Edges"),"Edges that have no ports are merged so they touch the connected nodes at the same points. When this option is disabled, one port is created for each edge directly connected to a node. When it is enabled, all such incoming edges share an input port, and all outgoing edges share an output port."),!1),po),Li),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,URe),""),"Merge Hierarchy-Crossing Edges"),"If hierarchical layout is active, hierarchy-crossing edges use as few hierarchical ports as possible. They are broken by the algorithm, with hierarchical ports inserted as required. Usually, one such port is created for each edge at each hierarchy crossing point. With this option set to true, we try to create as few hierarchical ports as possible in the process. In particular, all edges that form a hyperedge can share a port."),!0),po),Li),Mt(nn)))),Ot(t,new Rt(Tbn(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,GRe),""),"Allow Non-Flow Ports To Switch Sides"),"Specifies whether non-flow ports may switch sides if their node's port constraints are either FIXED_SIDE or FIXED_ORDER. A non-flow port is a port on a side that is not part of the currently configured layout flow. For instance, given a left-to-right layout direction, north and south ports would be considered non-flow ports. Further note that the underlying criterium whether to switch sides or not solely relies on the minimization of edge crossings. Hence, edge length and other aesthetics criteria are not addressed."),!1),po),Li),Mt(Bw)),se(ie(_t,1),rt,2,6,["org.eclipse.elk.layered.northOrSouthPort"])))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,VRe),""),"Port Sorting Strategy"),"Only relevant for nodes with FIXED_SIDE port constraints. Determines the way a node's ports are distributed on the sides of a node if their order is not prescribed. The option is set on parent nodes."),p6e),pi),EIe),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,zRe),""),"Thoroughness"),"How much effort should be spent to produce a nice layout."),ot(7)),bl),Ko),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,KRe),""),"Add Unnecessary Bendpoints"),"Adds bend points even if an edge does not change direction. If true, each long edge dummy will contribute a bend point to its edges and hierarchy-crossing edges will always get a bend point where they cross hierarchy boundaries. By default, bend points are only added where an edge changes direction."),!1),po),Li),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,qRe),""),"Generate Position and Layer IDs"),"If enabled position id and layer id are generated, which are usually only used internally when setting the interactiveLayout option. This option should be specified on the root node."),!1),po),Li),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,yie),"cycleBreaking"),"Cycle Breaking Strategy"),"Strategy for cycle breaking. Cycle breaking looks for cycles in the graph and determines which edges to reverse to break the cycles. Reversed edges will end up pointing to the opposite direction of regular edges (that is, reversed edges will point left if edges usually point right)."),Z$e),pi),h$e),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,CM),Uie),"Node Layering Strategy"),"Strategy for node layering."),c6e),pi),fIe),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,XRe),Uie),"Layer Constraint"),"Determines a constraint on the placement of the node regarding the layering."),l6e),pi),G$e),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,JRe),Uie),"Layer Choice Constraint"),"Allows to set a constraint regarding the layer placement of a node. Let i be the value of teh constraint. Assumed the drawing has n layers and i < n. If set to i, it expresses that the node should be placed in i-th layer. Should i>=n be true then the node is placed in the last layer of the drawing. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),bl),Ko),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,YRe),Uie),"Layer ID"),"Layer identifier that was calculated by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),ot(-1)),bl),Ko),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,vie),JAt),"Upper Bound On Width [MinWidth Layerer]"),"Defines a loose upper bound on the width of the MinWidth layerer. If set to '-1' multiple values are tested and the best result is selected."),ot(4)),bl),Ko),Mt(nn)))),qi(t,vie,CM,CPt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,_ie),JAt),"Upper Layer Estimation Scaling Factor [MinWidth Layerer]"),"Multiplied with Upper Bound On Width for defining an upper bound on the width of layers which haven't been determined yet, but whose maximum width had been (roughly) estimated by the MinWidth algorithm. Compensates for too high estimations. If set to '-1' multiple values are tested and the best result is selected."),ot(2)),bl),Ko),Mt(nn)))),qi(t,_ie,CM,TPt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Sie),YAt),"Node Promotion Strategy"),"Reduces number of dummy nodes after layering phase (if possible)."),a6e),pi),vIe),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Eie),YAt),"Max Node Promotion Iterations"),"Limits the number of iterations for node promotion."),ot(0)),bl),Ko),Mt(nn)))),qi(t,Eie,Sie,null),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,kie),"layering.coffmanGraham"),"Layer Bound"),"The maximum number of nodes allowed per layer."),ot(Nr)),bl),Ko),Mt(nn)))),qi(t,kie,CM,SPt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,pI),DA),"Crossing Minimization Strategy"),"Strategy for crossing minimization."),Q$e),pi),c$e),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,QRe),DA),"Force Node Model Order"),"The node order given by the model does not change to produce a better layout. E.g. if node A is before node B in the model this is not changed during crossing minimization. This assumes that the node model order is already respected before crossing minimization. This can be achieved by setting considerModelOrder.strategy to NODES_AND_EDGES."),!1),po),Li),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Rie),DA),"Hierarchical Sweepiness"),"How likely it is to use cross-hierarchy (1) vs bottom-up (-1)."),.1),es),Qi),Mt(nn)))),qi(t,Rie,WU,z8t),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,xie),DA),"Semi-Interactive Crossing Minimization"),"Preserves the order of nodes within a layer but still minimizes crossings between edges connecting long edge dummies. Derives the desired order from positions specified by the 'org.eclipse.elk.position' layout option. Requires a crossing minimization strategy that is able to process 'in-layer' constraints."),!1),po),Li),Mt(nn)))),qi(t,xie,pI,Q8t),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,ZRe),DA),"In Layer Predecessor of"),"Allows to set a constraint which specifies of which node the current node is the predecessor. If set to 's' then the node is the predecessor of 's' and is in the same layer"),null),oE),_t),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,exe),DA),"In Layer Successor of"),"Allows to set a constraint which specifies of which node the current node is the successor. If set to 's' then the node is the successor of 's' and is in the same layer"),null),oE),_t),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,txe),DA),"Position Choice Constraint"),"Allows to set a constraint regarding the position placement of a node in a layer. Assumed the layer in which the node placed includes n other nodes and i < n. If set to i, it expresses that the node should be placed at the i-th position. Should i>=n be true then the node is placed at the last position in the layer. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),bl),Ko),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,nxe),DA),"Position ID"),"Position within a layer that was determined by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),ot(-1)),bl),Ko),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,rxe),QAt),"Greedy Switch Activation Threshold"),"By default it is decided automatically if the greedy switch is activated or not. The decision is based on whether the size of the input graph (without dummy nodes) is smaller than the value of this option. A '0' enforces the activation."),ot(40)),bl),Ko),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Cie),QAt),"Greedy Switch Crossing Minimization"),"Greedy Switch strategy for crossing minimization. The greedy switch heuristic is executed after the regular crossing minimization as a post-processor. Note that if 'hierarchyHandling' is set to 'INCLUDE_CHILDREN', the 'greedySwitchHierarchical.type' option must be used."),Y$e),pi),mle),Mt(nn)))),qi(t,Cie,pI,G8t),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,TU),"crossingMinimization.greedySwitchHierarchical"),"Greedy Switch Crossing Minimization (hierarchical)"),"Activates the greedy switch heuristic in case hierarchical layout is used. The differences to the non-hierarchical case (see 'greedySwitch.type') are: 1) greedy switch is inactive by default, 3) only the option value set on the node at which hierarchical layout starts is relevant, and 2) if it's activated by the user, it properly addresses hierarchy-crossing edges."),J$e),pi),mle),Mt(nn)))),qi(t,TU,pI,W8t),qi(t,TU,WU,H8t),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,T2),ZAt),"Node Placement Strategy"),"Strategy for node placement."),h6e),pi),bIe),Mt(nn)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,$U),ZAt),"Favor Straight Edges Over Balancing"),"Favor straight edges over a balanced node placement. The default behavior is determined automatically based on the used 'edgeRouting'. For an orthogonal style it is set to true, for all other styles to false."),po),Li),Mt(nn)))),qi(t,$U,T2,BPt),qi(t,$U,T2,WPt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Aie),e4t),"BK Edge Straightening"),"Specifies whether the Brandes Koepf node placer tries to increase the number of straight edges at the expense of diagram size. There is a subtle difference to the 'favorStraightEdges' option, which decides whether a balanced placement of the nodes is desired, or not. In bk terms this means combining the four alignments into a single balanced one, or not. This option on the other hand tries to straighten additional edges during the creation of each of the four alignments."),u6e),pi),m$e),Mt(nn)))),qi(t,Aie,T2,DPt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Tie),e4t),"BK Fixed Alignment"),"Tells the BK node placer to use a certain alignment (out of its four) instead of the one producing the smallest height, or the combination of all four."),f6e),pi),E$e),Mt(nn)))),qi(t,Tie,T2,jPt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,$ie),"nodePlacement.linearSegments"),"Linear Segments Deflection Dampening"),"Dampens the movement of nodes to keep the diagram from getting too large."),.3),es),Qi),Mt(nn)))),qi(t,$ie,T2,UPt),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,Iie),"nodePlacement.networkSimplex"),"Node Flexibility"),"Aims at shorter and straighter edges. Two configurations are possible: (a) allow ports to move freely on the side they are assigned to (the order is always defined beforehand), (b) additionally allow to enlarge a node wherever it helps. If this option is not configured for a node, the 'nodeFlexibility.default' value is used, which is specified for the node's parent."),pi),Xle),Mt(lo)))),qi(t,Iie,T2,KPt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Pie),"nodePlacement.networkSimplex.nodeFlexibility"),"Node Flexibility Default"),"Default value of the 'nodeFlexibility' option for the children of a hierarchical node."),d6e),pi),Xle),Mt(nn)))),qi(t,Pie,T2,zPt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,ixe),t4t),"Self-Loop Distribution"),"Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE."),r6e),pi),xIe),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,oxe),t4t),"Self-Loop Ordering"),"Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE."),i6e),pi),CIe),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,IU),"edgeRouting.splines"),"Spline Routing Mode"),"Specifies the way control points are assembled for each individual edge. CONSERVATIVE ensures that edges are properly routed around the nodes but feels rather orthogonal at times. SLOPPY uses fewer control points to obtain curvier edge routes but may result in edges overlapping nodes."),o6e),pi),TIe),Mt(nn)))),qi(t,IU,AM,cPt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,PU),"edgeRouting.splines.sloppy"),"Sloppy Spline Layer Spacing Factor"),"Spacing factor for routing area between layers when using sloppy spline routing."),.2),es),Qi),Mt(nn)))),qi(t,PU,AM,fPt),qi(t,PU,IU,dPt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Oie),"edgeRouting.polyline"),"Sloped Edge Zone Width"),"Width of the strip to the left and to the right of each layer where the polyline edge router is allowed to refrain from ensuring that edges are routed horizontally. This prevents awkward bend points for nodes that extent almost to the edge of their layer."),2),es),Qi),Mt(nn)))),qi(t,Oie,AM,oPt),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,sxe),uh),"Spacing Base Value"),"An optional base value for all other layout options of the 'spacing' group. It can be used to conveniently alter the overall 'spaciousness' of the drawing. Whenever an explicit value is set for the other layout options, this base value will have no effect. The base value is not inherited, i.e. it must be set for each hierarchical node."),es),Qi),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,lxe),uh),"Edge Node Between Layers Spacing"),"The spacing to be preserved between nodes and edges that are routed next to the node's layer. For the spacing between nodes and edges that cross the node's layer 'spacing.edgeNode' is used."),10),es),Qi),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,axe),uh),"Edge Edge Between Layer Spacing"),"Spacing to be preserved between pairs of edges that are routed between the same pair of layers. Note that 'spacing.edgeEdge' is used for the spacing between pairs of edges crossing the same layer."),10),es),Qi),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,cxe),uh),"Node Node Between Layers Spacing"),"The spacing to be preserved between any pair of nodes of two adjacent layers. Note that 'spacing.nodeNode' is used for the spacing between nodes within the layer itself."),20),es),Qi),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,uxe),vxe),"Direction Priority"),"Defines how important it is to have a certain edge point into the direction of the overall layout. This option is evaluated during the cycle breaking phase."),ot(0)),bl),Ko),Mt(op)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,fxe),vxe),"Shortness Priority"),"Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase."),ot(0)),bl),Ko),Mt(op)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,dxe),vxe),"Straightness Priority"),"Defines how important it is to keep an edge straight, i.e. aligned with one of the two axes. This option is evaluated during node placement."),ot(0)),bl),Ko),Mt(op)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Nie),_xe),wAt),"Tries to further compact components (disconnected sub-graphs)."),!1),po),Li),Mt(nn)))),qi(t,Nie,cI,!0),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,hxe),n4t),"Post Compaction Strategy"),r4t),z$e),pi),T$e),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,pxe),n4t),"Post Compaction Constraint Calculation"),r4t),V$e),pi),l$e),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,OU),Sxe),"High Degree Node Treatment"),"Makes room around high degree nodes to place leafs and trees."),!1),po),Li),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Mie),Sxe),"High Degree Node Threshold"),"Whether a node is considered to have a high degree."),ot(16)),bl),Ko),Mt(nn)))),qi(t,Mie,OU,!0),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Die),Sxe),"High Degree Node Maximum Tree Height"),"Maximum height of a subtree connected to a high degree node to be moved to separate layers."),ot(5)),bl),Ko),Mt(nn)))),qi(t,Die,OU,!0),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Tb),Exe),"Graph Wrapping Strategy"),"For certain graphs and certain prescribed drawing areas it may be desirable to split the laid out graph into chunks that are placed side by side. The edges that connect different chunks are 'wrapped' around from the end of one chunk to the start of the other chunk. The points between the chunks are referred to as 'cuts'."),w6e),pi),OIe),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,NU),Exe),"Additional Wrapped Edges Spacing"),"To visually separate edges that are wrapped from regularly routed edges an additional spacing value can be specified in form of this layout option. The spacing is added to the regular edgeNode spacing."),10),es),Qi),Mt(nn)))),qi(t,NU,Tb,sOt),qi(t,NU,Tb,lOt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,MU),Exe),"Correction Factor for Wrapping"),"At times and for certain types of graphs the executed wrapping may produce results that are consistently biased in the same fashion: either wrapping to often or to rarely. This factor can be used to correct the bias. Internally, it is simply multiplied with the 'aspect ratio' layout option."),1),es),Qi),Mt(nn)))),qi(t,MU,Tb,cOt),qi(t,MU,Tb,uOt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,bI),i4t),"Cutting Strategy"),"The strategy by which the layer indexes are determined at which the layering crumbles into chunks."),g6e),pi),f$e),Mt(nn)))),qi(t,bI,Tb,gOt),qi(t,bI,Tb,wOt),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,Lie),i4t),"Manually Specified Cuts"),"Allows the user to specify her own cuts for a certain graph."),bh),lf),Mt(nn)))),qi(t,Lie,bI,dOt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,jie),"wrapping.cutting.msd"),"MSD Freedom"),"The MSD cutting strategy starts with an initial guess on the number of chunks the graph should be split into. The freedom specifies how much the strategy may deviate from this guess. E.g. if an initial number of 3 is computed, a freedom of 1 allows 2, 3, and 4 cuts."),b6e),bl),Ko),Mt(nn)))),qi(t,jie,bI,pOt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,DU),o4t),"Validification Strategy"),"When wrapping graphs, one can specify indices that are not allowed as split points. The validification strategy makes sure every computed split point is allowed."),m6e),pi),PIe),Mt(nn)))),qi(t,DU,Tb,TOt),qi(t,DU,Tb,$Ot),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,LU),o4t),"Valid Indices for Wrapping"),null),bh),lf),Mt(nn)))),qi(t,LU,Tb,xOt),qi(t,LU,Tb,COt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,jU),kxe),"Improve Cuts"),"For general graphs it is important that not too many edges wrap backwards. Thus a compromise between evenly-distributed cuts and the total number of cut edges is sought."),!0),po),Li),Mt(nn)))),qi(t,jU,Tb,_Ot),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,FU),kxe),"Distance Penalty When Improving Cuts"),null),2),es),Qi),Mt(nn)))),qi(t,FU,Tb,yOt),qi(t,FU,jU,!0),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Fie),kxe),"Improve Wrapped Edges"),"The initial wrapping is performed in a very simple way. As a consequence, edges that wrap from one chunk to another may be unnecessarily long. Activating this option tries to shorten such edges."),!0),po),Li),Mt(nn)))),qi(t,Fie,Tb,EOt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,bxe),Gie),"Edge Label Side Selection"),"Method to decide on edge label sides."),n6e),pi),g$e),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,gxe),Gie),"Edge Center Label Placement Strategy"),"Determines in which layer center labels of long edges should be placed."),t6e),pi),n4),ii(nn,se(ie(Mp,1),Je,170,0,[Fg]))))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,BU),gI),"Consider Model Order"),"Preserves the order of nodes and edges in the model file if this does not lead to additional edge crossings. Depending on the strategy this is not always possible since the node and edge order might be conflicting."),X$e),pi),SIe),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,wxe),gI),"Consider Port Order"),"If disabled the port order of output ports is derived from the edge order and input ports are ordered by their incoming connections. If enabled all ports are ordered by the port model order."),!1),po),Li),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,mxe),gI),"No Model Order"),"Set on a node to not set a model order for this node even though it is a real node."),!1),po),Li),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Bie),gI),"Consider Model Order for Components"),"If set to NONE the usual ordering strategy (by cumulative node priority and size of nodes) is used. INSIDE_PORT_SIDES orders the components with external ports only inside the groups with the same port side. FORCE_MODEL_ORDER enforces the mode order on components. This option might produce bad alignments and sub optimal drawings in terms of used area since the ordering should be respected."),K$e),pi),hTe),Mt(nn)))),qi(t,Bie,cI,null),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,yxe),gI),"Long Edge Ordering Strategy"),"Indicates whether long edges are sorted under, over, or equal to nodes that have no connection to a previous layer in a left-to-right or right-to-left layout. Under and over changes to right and left in a vertical layout."),q$e),pi),hIe),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Wie),gI),"Crossing Counter Node Order Influence"),"Indicates with what percentage (1 for 100%) violations of the node model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal node order. Defaults to no influence (0)."),0),es),Qi),Mt(nn)))),qi(t,Wie,BU,null),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Hie),gI),"Crossing Counter Port Order Influence"),"Indicates with what percentage (1 for 100%) violations of the port model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal port order. Defaults to no influence (0)."),0),es),Qi),Mt(nn)))),qi(t,Hie,BU,null),SCt((new ent,t))};var C8t,A8t,T8t,V$e,$8t,z$e,I8t,K$e,P8t,O8t,N8t,q$e,M8t,D8t,L8t,X$e,j8t,F8t,B8t,J$e,W8t,H8t,U8t,Y$e,G8t,V8t,z8t,K8t,q8t,X8t,J8t,Y8t,Q8t,Z8t,Q$e,ePt,Z$e,tPt,e6e,nPt,t6e,rPt,n6e,iPt,oPt,sPt,r6e,lPt,i6e,aPt,o6e,cPt,uPt,fPt,dPt,hPt,pPt,bPt,gPt,wPt,mPt,s6e,yPt,vPt,_Pt,SPt,EPt,kPt,l6e,RPt,xPt,CPt,APt,TPt,$Pt,IPt,a6e,PPt,c6e,OPt,NPt,MPt,u6e,DPt,LPt,f6e,jPt,FPt,BPt,WPt,HPt,UPt,GPt,VPt,d6e,zPt,KPt,qPt,h6e,XPt,p6e,JPt,YPt,QPt,ZPt,eOt,tOt,nOt,rOt,iOt,oOt,sOt,lOt,aOt,cOt,uOt,fOt,dOt,hOt,b6e,pOt,bOt,g6e,gOt,wOt,mOt,yOt,vOt,_Ot,SOt,EOt,kOt,w6e,ROt,xOt,COt,AOt,m6e,TOt,$Ot;N(Zl,"LayeredMetaDataProvider",859),P(998,1,Ef,ent),p.hf=function(t){SCt(t)};var np,Ale,kV,JI,RV,y6e,xV,N_,CV,v6e,_6e,AV,Tle,Np,$le,Cy,S6e,c9,Ile,E6e,IOt,POt,OOt,TV,Ple,YI,Ow,NOt,$u,k6e,R6e,$V,Ole,rp,IV,Ob,x6e,C6e,A6e,Nle,Mle,T6e,Ng,Dle,$6e,M_,I6e,P6e,O6e,PV,D_,Nw,N6e,M6e,Xs,D6e,MOt,Ha,OV,L6e,j6e,F6e,r0,Mw,NV,B6e,W6e,MV,Ay,H6e,Lle,QI,U6e,Ty,ZI,DV,Dw,jle,u4,LV,Lw,G6e,V6e,z6e,f4,K6e,DOt,LOt,jOt,FOt,$y,L_,Oi,Mg,BOt,j_,q6e,d4,X6e,F_,WOt,h4,J6e,rR,HOt,UOt,u9,Fle,Y6e,f9,ud,X2,J2,Iy,jw,jV,B_,Ble,p4,b4,Py,Y2,Wle,d9,e5,t5,GOt,VOt,zOt,Q6e,KOt,Hle,Z6e,eIe,tIe,nIe,Ule,rIe,iIe,oIe,sIe,Gle,FV;N(Zl,"LayeredOptions",998),P(999,1,{},BXe),p.sf=function(){var t;return t=new Hst,t},p.tf=function(t){},N(Zl,"LayeredOptions/LayeredFactory",999),P(1391,1,{}),p.a=0;var qOt;N(Ol,"ElkSpacings/AbstractSpacingsBuilder",1391),P(792,1391,{},C2e);var BV,XOt;N(Zl,"LayeredSpacings/LayeredSpacingsBuilder",792),P(265,22,{3:1,34:1,22:1,265:1,188:1,196:1},LS),p.dg=function(){return L3t(this)},p.qg=function(){return L3t(this)};var g4,Vle,w4,lIe,aIe,cIe,WV,zle,uIe,fIe=Wn(Zl,"LayeringStrategy",265,qn,O3n,jwn),JOt;P(390,22,{3:1,34:1,22:1,390:1},nQ);var Kle,dIe,HV,hIe=Wn(Zl,"LongEdgeOrderingStrategy",390,qn,FSn,Fwn),YOt;P(203,22,{3:1,34:1,22:1,203:1},PF);var Q2,Z2,UV,qle,Xle=Wn(Zl,"NodeFlexibility",203,qn,q2n,Bwn),QOt;P(323,22,{3:1,34:1,22:1,323:1,188:1,196:1},QO),p.dg=function(){return Ckt(this)},p.qg=function(){return Ckt(this)};var n5,Jle,Yle,r5,pIe,bIe=Wn(Zl,"NodePlacementStrategy",323,qn,FEn,Wwn),ZOt;P(243,22,{3:1,34:1,22:1,243:1},$v);var gIe,Oy,W_,h9,wIe,mIe,p9,yIe,GV,VV,vIe=Wn(Zl,"NodePromotionStrategy",243,qn,iRn,Hwn),e7t;P(284,22,{3:1,34:1,22:1,284:1},OF);var _Ie,Dg,Qle,Zle,SIe=Wn(Zl,"OrderingStrategy",284,qn,X2n,Uwn),t7t;P(430,22,{3:1,34:1,22:1,430:1},Nwe);var eae,tae,EIe=Wn(Zl,"PortSortingStrategy",430,qn,W_n,Gwn),n7t;P(463,22,{3:1,34:1,22:1,463:1},rQ);var Pc,Ta,i5,r7t=Wn(Zl,"PortType",463,qn,BSn,Vwn),i7t;P(387,22,{3:1,34:1,22:1,387:1},iQ);var kIe,nae,RIe,xIe=Wn(Zl,"SelfLoopDistributionStrategy",387,qn,WSn,zwn),o7t;P(349,22,{3:1,34:1,22:1,349:1},oQ);var rae,b9,iae,CIe=Wn(Zl,"SelfLoopOrderingStrategy",349,qn,HSn,Kwn),s7t;P(312,1,{312:1},yxt),N(Zl,"Spacings",312),P(350,22,{3:1,34:1,22:1,350:1},sQ);var oae,AIe,o5,TIe=Wn(Zl,"SplineRoutingMode",350,qn,USn,qwn),l7t;P(352,22,{3:1,34:1,22:1,352:1},lQ);var sae,$Ie,IIe,PIe=Wn(Zl,"ValidifyStrategy",352,qn,GSn,Xwn),a7t;P(388,22,{3:1,34:1,22:1,388:1},aQ);var H_,lae,m4,OIe=Wn(Zl,"WrappingStrategy",388,qn,VSn,Jwn),c7t;P(1398,1,$s,Vtt),p.rg=function(t){return f(t,36),u7t},p.Kf=function(t,i){A9n(this,f(t,36),i)};var u7t;N(VU,"DepthFirstCycleBreaker",1398),P(793,1,$s,Kye),p.rg=function(t){return f(t,36),f7t},p.Kf=function(t,i){Pjn(this,f(t,36),i)},p.sg=function(t){return f(yt(t,SH(this.d,t.c.length)),10)};var f7t;N(VU,"GreedyCycleBreaker",793),P(1401,793,$s,jut),p.sg=function(t){var i,s,a,c;for(c=null,i=Nr,a=new ee(t);a.a1&&(wt(gt(V(Go((Xt(0,t.c.length),f(t.c[0],10))),(pt(),Cy))))?Bkt(t,this.d,f(this,669)):(qt(),Hi(t,this.d)),Wyt(this.e,t))},p.lg=function(t,i,s,a){var c,b,g,m,_,k,I;for(i!=ipt(s,t.length)&&(b=t[i-(s?1:-1)],S_e(this.f,b,s?(Cs(),Ta):(Cs(),Pc))),c=t[i][0],I=!a||c.k==(gn(),Ui),k=Qd(t[i]),this.vg(k,I,!1,s),g=0,_=new ee(k);_.a<_.c.c.length;)m=f(Z(_),10),t[i][g++]=m;return!1},p.mg=function(t,i){var s,a,c,b,g;for(g=ipt(i,t.length),b=Qd(t[g]),this.vg(b,!1,!0,i),s=0,c=new ee(b);c.a"),t0?HZ(this.a,t[i-1],t[i]):!s&&i1&&(wt(gt(V(Go((Xt(0,t.c.length),f(t.c[0],10))),(pt(),Cy))))?Bkt(t,this.d,this):(qt(),Hi(t,this.d)),wt(gt(V(Go((Xt(0,t.c.length),f(t.c[0],10))),Cy)))||Wyt(this.e,t))},N(mc,"ModelOrderBarycenterHeuristic",669),P(1866,1,cr,Wit),p.Ne=function(t,i){return AIn(this.a,f(t,10),f(i,10))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(mc,"ModelOrderBarycenterHeuristic/lambda$0$Type",1866),P(1423,1,$s,nnt),p.rg=function(t){var i;return f(t,36),i=XF(C7t),gr(i,(Yo(),sa),(ss(),eV)),i},p.Kf=function(t,i){f_n((f(t,36),i))};var C7t;N(mc,"NoCrossingMinimizer",1423),P(809,413,oCe,rwe),p.tg=function(t,i,s){var a,c,b,g,m,_,k,I,D,W,U;switch(D=this.g,s.g){case 1:{for(c=0,b=0,I=new ee(t.j);I.a1&&(c.j==(ft(),_n)?this.b[t]=!0:c.j==wn&&t>0&&(this.b[t-1]=!0))},p.f=0,N($p,"AllCrossingsCounter",1861),P(595,1,{},BW),p.b=0,p.d=0,N($p,"BinaryIndexedTree",595),P(532,1,{},y7);var DIe,KV;N($p,"CrossingsCounter",532),P(1950,1,cr,Hit),p.Ne=function(t,i){return Lyn(this.a,f(t,12),f(i,12))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N($p,"CrossingsCounter/lambda$0$Type",1950),P(1951,1,cr,Uit),p.Ne=function(t,i){return jyn(this.a,f(t,12),f(i,12))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N($p,"CrossingsCounter/lambda$1$Type",1951),P(1952,1,cr,Git),p.Ne=function(t,i){return Fyn(this.a,f(t,12),f(i,12))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N($p,"CrossingsCounter/lambda$2$Type",1952),P(1953,1,cr,Vit),p.Ne=function(t,i){return Byn(this.a,f(t,12),f(i,12))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N($p,"CrossingsCounter/lambda$3$Type",1953),P(1954,1,Rn,zit),p.Cd=function(t){Bkn(this.a,f(t,12))},N($p,"CrossingsCounter/lambda$4$Type",1954),P(1955,1,sr,Kit),p.Mb=function(t){return fgn(this.a,f(t,12))},N($p,"CrossingsCounter/lambda$5$Type",1955),P(1956,1,Rn,qit),p.Cd=function(t){Tut(this,t)},N($p,"CrossingsCounter/lambda$6$Type",1956),P(1957,1,Rn,Bct),p.Cd=function(t){var i;lC(),$1(this.b,(i=this.a,f(t,12),i))},N($p,"CrossingsCounter/lambda$7$Type",1957),P(839,1,Kh,P1e),p.Lb=function(t){return lC(),ri(f(t,12),(nt(),Ic))},p.Fb=function(t){return this===t},p.Mb=function(t){return lC(),ri(f(t,12),(nt(),Ic))},N($p,"CrossingsCounter/lambda$8$Type",839),P(1949,1,{},Xit),N($p,"HyperedgeCrossingsCounter",1949),P(478,1,{34:1,478:1},Udt),p.Fd=function(t){return FAn(this,f(t,478))},p.b=0,p.c=0,p.e=0,p.f=0;var yFn=N($p,"HyperedgeCrossingsCounter/Hyperedge",478);P(374,1,{34:1,374:1},WB),p.Fd=function(t){return Z8n(this,f(t,374))},p.b=0,p.c=0;var A7t=N($p,"HyperedgeCrossingsCounter/HyperedgeCorner",374);P(531,22,{3:1,34:1,22:1,531:1},Mwe);var l5,a5,T7t=Wn($p,"HyperedgeCrossingsCounter/HyperedgeCorner/Type",531,qn,H_n,Qwn),$7t;P(1425,1,$s,rnt),p.rg=function(t){return f(V(f(t,36),(nt(),ma)),21).Hc((As(),af))?I7t:null},p.Kf=function(t,i){u$n(this,f(t,36),i)};var I7t;N(Is,"InteractiveNodePlacer",1425),P(1426,1,$s,int),p.rg=function(t){return f(V(f(t,36),(nt(),ma)),21).Hc((As(),af))?P7t:null},p.Kf=function(t,i){q4n(this,f(t,36),i)};var P7t,qV,XV;N(Is,"LinearSegmentsNodePlacer",1426),P(261,1,{34:1,261:1},I0e),p.Fd=function(t){return Ebn(this,f(t,261))},p.Fb=function(t){var i;return ve(t,261)?(i=f(t,261),this.b==i.b):!1},p.Hb=function(){return this.b},p.Ib=function(){return"ls"+B1(this.e)},p.a=0,p.b=0,p.c=-1,p.d=-1,p.g=0;var O7t=N(Is,"LinearSegmentsNodePlacer/LinearSegment",261);P(1428,1,$s,ppt),p.rg=function(t){return f(V(f(t,36),(nt(),ma)),21).Hc((As(),af))?N7t:null},p.Kf=function(t,i){Ejn(this,f(t,36),i)},p.b=0,p.g=0;var N7t;N(Is,"NetworkSimplexPlacer",1428),P(1447,1,cr,JXe),p.Ne=function(t,i){return Xl(f(t,17).a,f(i,17).a)},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(Is,"NetworkSimplexPlacer/0methodref$compare$Type",1447),P(1449,1,cr,YXe),p.Ne=function(t,i){return Xl(f(t,17).a,f(i,17).a)},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(Is,"NetworkSimplexPlacer/1methodref$compare$Type",1449),P(655,1,{655:1},Wct);var vFn=N(Is,"NetworkSimplexPlacer/EdgeRep",655);P(412,1,{412:1},Cve),p.b=!1;var _Fn=N(Is,"NetworkSimplexPlacer/NodeRep",412);P(515,13,{3:1,4:1,20:1,31:1,56:1,13:1,16:1,15:1,59:1,515:1},Yst),N(Is,"NetworkSimplexPlacer/Path",515),P(1429,1,{},QXe),p.Kb=function(t){return f(t,18).d.i.k},N(Is,"NetworkSimplexPlacer/Path/lambda$0$Type",1429),P(1430,1,sr,ZXe),p.Mb=function(t){return f(t,273)==(gn(),vo)},N(Is,"NetworkSimplexPlacer/Path/lambda$1$Type",1430),P(1431,1,{},eJe),p.Kb=function(t){return f(t,18).d.i},N(Is,"NetworkSimplexPlacer/Path/lambda$2$Type",1431),P(1432,1,sr,Jit),p.Mb=function(t){return Cdt($_t(f(t,10)))},N(Is,"NetworkSimplexPlacer/Path/lambda$3$Type",1432),P(1433,1,sr,tJe),p.Mb=function(t){return _yn(f(t,12))},N(Is,"NetworkSimplexPlacer/lambda$0$Type",1433),P(1434,1,Rn,Hct),p.Cd=function(t){n1n(this.a,this.b,f(t,12))},N(Is,"NetworkSimplexPlacer/lambda$1$Type",1434),P(1443,1,Rn,Yit),p.Cd=function(t){A5n(this.a,f(t,18))},N(Is,"NetworkSimplexPlacer/lambda$10$Type",1443),P(1444,1,{},nJe),p.Kb=function(t){return mu(),new Wt(null,new Vt(f(t,30).a,16))},N(Is,"NetworkSimplexPlacer/lambda$11$Type",1444),P(1445,1,Rn,Qit),p.Cd=function(t){S7n(this.a,f(t,10))},N(Is,"NetworkSimplexPlacer/lambda$12$Type",1445),P(1446,1,{},rJe),p.Kb=function(t){return mu(),ot(f(t,125).e)},N(Is,"NetworkSimplexPlacer/lambda$13$Type",1446),P(1448,1,{},iJe),p.Kb=function(t){return mu(),ot(f(t,125).e)},N(Is,"NetworkSimplexPlacer/lambda$15$Type",1448),P(1450,1,sr,oJe),p.Mb=function(t){return mu(),f(t,412).c.k==(gn(),ji)},N(Is,"NetworkSimplexPlacer/lambda$17$Type",1450),P(1451,1,sr,sJe),p.Mb=function(t){return mu(),f(t,412).c.j.c.length>1},N(Is,"NetworkSimplexPlacer/lambda$18$Type",1451),P(1452,1,Rn,Sbt),p.Cd=function(t){lAn(this.c,this.b,this.d,this.a,f(t,412))},p.c=0,p.d=0,N(Is,"NetworkSimplexPlacer/lambda$19$Type",1452),P(1435,1,{},lJe),p.Kb=function(t){return mu(),new Wt(null,new Vt(f(t,30).a,16))},N(Is,"NetworkSimplexPlacer/lambda$2$Type",1435),P(1453,1,Rn,Zit),p.Cd=function(t){i1n(this.a,f(t,12))},p.a=0,N(Is,"NetworkSimplexPlacer/lambda$20$Type",1453),P(1454,1,{},aJe),p.Kb=function(t){return mu(),new Wt(null,new Vt(f(t,30).a,16))},N(Is,"NetworkSimplexPlacer/lambda$21$Type",1454),P(1455,1,Rn,eot),p.Cd=function(t){g1n(this.a,f(t,10))},N(Is,"NetworkSimplexPlacer/lambda$22$Type",1455),P(1456,1,sr,cJe),p.Mb=function(t){return Cdt(t)},N(Is,"NetworkSimplexPlacer/lambda$23$Type",1456),P(1457,1,{},uJe),p.Kb=function(t){return mu(),new Wt(null,new Vt(f(t,30).a,16))},N(Is,"NetworkSimplexPlacer/lambda$24$Type",1457),P(1458,1,sr,tot),p.Mb=function(t){return Rgn(this.a,f(t,10))},N(Is,"NetworkSimplexPlacer/lambda$25$Type",1458),P(1459,1,Rn,Uct),p.Cd=function(t){PIn(this.a,this.b,f(t,10))},N(Is,"NetworkSimplexPlacer/lambda$26$Type",1459),P(1460,1,sr,fJe),p.Mb=function(t){return mu(),!ms(f(t,18))},N(Is,"NetworkSimplexPlacer/lambda$27$Type",1460),P(1461,1,sr,dJe),p.Mb=function(t){return mu(),!ms(f(t,18))},N(Is,"NetworkSimplexPlacer/lambda$28$Type",1461),P(1462,1,{},not),p.Ve=function(t,i){return r1n(this.a,f(t,30),f(i,30))},N(Is,"NetworkSimplexPlacer/lambda$29$Type",1462),P(1436,1,{},hJe),p.Kb=function(t){return mu(),new Wt(null,new Om(new kn(xn(Wi(f(t,10)).a.Kc(),new O))))},N(Is,"NetworkSimplexPlacer/lambda$3$Type",1436),P(1437,1,sr,pJe),p.Mb=function(t){return mu(),O2n(f(t,18))},N(Is,"NetworkSimplexPlacer/lambda$4$Type",1437),P(1438,1,Rn,rot),p.Cd=function(t){IMn(this.a,f(t,18))},N(Is,"NetworkSimplexPlacer/lambda$5$Type",1438),P(1439,1,{},bJe),p.Kb=function(t){return mu(),new Wt(null,new Vt(f(t,30).a,16))},N(Is,"NetworkSimplexPlacer/lambda$6$Type",1439),P(1440,1,sr,gJe),p.Mb=function(t){return mu(),f(t,10).k==(gn(),ji)},N(Is,"NetworkSimplexPlacer/lambda$7$Type",1440),P(1441,1,{},wJe),p.Kb=function(t){return mu(),new Wt(null,new Om(new kn(xn(Sb(f(t,10)).a.Kc(),new O))))},N(Is,"NetworkSimplexPlacer/lambda$8$Type",1441),P(1442,1,sr,mJe),p.Mb=function(t){return mu(),vyn(f(t,18))},N(Is,"NetworkSimplexPlacer/lambda$9$Type",1442),P(1424,1,$s,ont),p.rg=function(t){return f(V(f(t,36),(nt(),ma)),21).Hc((As(),af))?M7t:null},p.Kf=function(t,i){f9n(f(t,36),i)};var M7t;N(Is,"SimpleNodePlacer",1424),P(185,1,{185:1},y2),p.Ib=function(){var t;return t="",this.c==(jh(),Ny)?t+=D3:this.c==Lg&&(t+=M3),this.o==(Jd(),Fw)?t+=Yre:this.o==ph?t+="UP":t+="BALANCED",t},N(q1,"BKAlignedLayout",185),P(523,22,{3:1,34:1,22:1,523:1},Dwe);var Lg,Ny,D7t=Wn(q1,"BKAlignedLayout/HDirection",523,qn,G_n,Zwn),L7t;P(522,22,{3:1,34:1,22:1,522:1},Lwe);var Fw,ph,j7t=Wn(q1,"BKAlignedLayout/VDirection",522,qn,V_n,emn),F7t;P(1699,1,{},Gct),N(q1,"BKAligner",1699),P(1702,1,{},t2t),N(q1,"BKCompactor",1702),P(663,1,{663:1},yJe),p.a=0,N(q1,"BKCompactor/ClassEdge",663),P(467,1,{467:1},qst),p.a=null,p.b=0,N(q1,"BKCompactor/ClassNode",467),P(1427,1,$s,qct),p.rg=function(t){return f(V(f(t,36),(nt(),ma)),21).Hc((As(),af))?B7t:null},p.Kf=function(t,i){Wjn(this,f(t,36),i)},p.d=!1;var B7t;N(q1,"BKNodePlacer",1427),P(1700,1,{},vJe),p.d=0,N(q1,"NeighborhoodInformation",1700),P(1701,1,cr,iot),p.Ne=function(t,i){return b3n(this,f(t,42),f(i,42))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(q1,"NeighborhoodInformation/NeighborComparator",1701),P(823,1,{}),N(q1,"ThresholdStrategy",823),P(1825,823,{},Xst),p.wg=function(t,i,s){return this.a.o==(Jd(),ph)?hi:to},p.xg=function(){},N(q1,"ThresholdStrategy/NullThresholdStrategy",1825),P(587,1,{587:1},Xct),p.c=!1,p.d=!1,N(q1,"ThresholdStrategy/Postprocessable",587),P(1826,823,{},Jst),p.wg=function(t,i,s){var a,c,b;return c=i==s,a=this.a.a[s.p]==i,c||a?(b=t,this.a.c==(jh(),Ny)?(c&&(b=Jne(this,i,!0)),!isNaN(b)&&!isFinite(b)&&a&&(b=Jne(this,s,!1))):(c&&(b=Jne(this,i,!0)),!isNaN(b)&&!isFinite(b)&&a&&(b=Jne(this,s,!1))),b):t},p.xg=function(){for(var t,i,s,a,c;this.d.b!=0;)c=f(sSn(this.d),587),a=CRt(this,c),a.a&&(t=a.a,s=wt(this.a.f[this.a.g[c.b.p].p]),!(!s&&!ms(t)&&t.c.i.c==t.d.i.c)&&(i=Pkt(this,c),i||Agn(this.e,c)));for(;this.e.a.c.length!=0;)Pkt(this,f(Ovt(this.e),587))},N(q1,"ThresholdStrategy/SimpleThresholdStrategy",1826),P(645,1,{645:1,188:1,196:1},_Je),p.dg=function(){return Hyt(this)},p.qg=function(){return Hyt(this)};var aae;N(Xie,"EdgeRouterFactory",645),P(1485,1,$s,snt),p.rg=function(t){return QOn(f(t,36))},p.Kf=function(t,i){w9n(f(t,36),i)};var W7t,H7t,U7t,G7t,V7t,LIe,z7t,K7t;N(Xie,"OrthogonalEdgeRouter",1485),P(1478,1,$s,Kct),p.rg=function(t){return v$n(f(t,36))},p.Kf=function(t,i){WLn(this,f(t,36),i)};var q7t,X7t,J7t,Y7t,w9,Q7t;N(Xie,"PolylineEdgeRouter",1478),P(1479,1,Kh,EJe),p.Lb=function(t){return kSe(f(t,10))},p.Fb=function(t){return this===t},p.Mb=function(t){return kSe(f(t,10))},N(Xie,"PolylineEdgeRouter/1",1479),P(1872,1,sr,kJe),p.Mb=function(t){return f(t,132).c==(Td(),i0)},N(Md,"HyperEdgeCycleDetector/lambda$0$Type",1872),P(1873,1,{},RJe),p.Ze=function(t){return f(t,132).d},N(Md,"HyperEdgeCycleDetector/lambda$1$Type",1873),P(1874,1,sr,xJe),p.Mb=function(t){return f(t,132).c==(Td(),i0)},N(Md,"HyperEdgeCycleDetector/lambda$2$Type",1874),P(1875,1,{},CJe),p.Ze=function(t){return f(t,132).d},N(Md,"HyperEdgeCycleDetector/lambda$3$Type",1875),P(1876,1,{},AJe),p.Ze=function(t){return f(t,132).d},N(Md,"HyperEdgeCycleDetector/lambda$4$Type",1876),P(1877,1,{},SJe),p.Ze=function(t){return f(t,132).d},N(Md,"HyperEdgeCycleDetector/lambda$5$Type",1877),P(118,1,{34:1,118:1},aN),p.Fd=function(t){return kbn(this,f(t,118))},p.Fb=function(t){var i;return ve(t,118)?(i=f(t,118),this.g==i.g):!1},p.Hb=function(){return this.g},p.Ib=function(){var t,i,s,a;for(t=new gu("{"),a=new ee(this.n);a.a"+this.b+" ("+U1n(this.c)+")"},p.d=0,N(Md,"HyperEdgeSegmentDependency",132),P(528,22,{3:1,34:1,22:1,528:1},jwe);var i0,U_,Z7t=Wn(Md,"HyperEdgeSegmentDependency/DependencyType",528,qn,z_n,tmn),eNt;P(1878,1,{},oot),N(Md,"HyperEdgeSegmentSplitter",1878),P(1879,1,{},Ylt),p.a=0,p.b=0,N(Md,"HyperEdgeSegmentSplitter/AreaRating",1879),P(339,1,{339:1},JQ),p.a=0,p.b=0,p.c=0,N(Md,"HyperEdgeSegmentSplitter/FreeArea",339),P(1880,1,cr,TJe),p.Ne=function(t,i){return U0n(f(t,118),f(i,118))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(Md,"HyperEdgeSegmentSplitter/lambda$0$Type",1880),P(1881,1,Rn,Ebt),p.Cd=function(t){wEn(this.a,this.d,this.c,this.b,f(t,118))},p.b=0,N(Md,"HyperEdgeSegmentSplitter/lambda$1$Type",1881),P(1882,1,{},$Je),p.Kb=function(t){return new Wt(null,new Vt(f(t,118).e,16))},N(Md,"HyperEdgeSegmentSplitter/lambda$2$Type",1882),P(1883,1,{},IJe),p.Kb=function(t){return new Wt(null,new Vt(f(t,118).j,16))},N(Md,"HyperEdgeSegmentSplitter/lambda$3$Type",1883),P(1884,1,{},PJe),p.Ye=function(t){return Ae(je(t))},N(Md,"HyperEdgeSegmentSplitter/lambda$4$Type",1884),P(664,1,{},_Z),p.a=0,p.b=0,p.c=0,N(Md,"OrthogonalRoutingGenerator",664),P(1703,1,{},OJe),p.Kb=function(t){return new Wt(null,new Vt(f(t,118).e,16))},N(Md,"OrthogonalRoutingGenerator/lambda$0$Type",1703),P(1704,1,{},NJe),p.Kb=function(t){return new Wt(null,new Vt(f(t,118).j,16))},N(Md,"OrthogonalRoutingGenerator/lambda$1$Type",1704),P(670,1,{}),N(Jie,"BaseRoutingDirectionStrategy",670),P(1870,670,{},elt),p.yg=function(t,i,s){var a,c,b,g,m,_,k,I,D,W,U,z,X;if(!(t.r&&!t.q))for(I=i+t.o*s,k=new ee(t.n);k.aXh&&(b=I,c=t,a=new tt(D,b),hr(g.a,a),oy(this,g,c,a,!1),W=t.r,W&&(U=Ae(je(tf(W.e,0))),a=new tt(U,b),hr(g.a,a),oy(this,g,c,a,!1),b=i+W.o*s,c=W,a=new tt(U,b),hr(g.a,a),oy(this,g,c,a,!1)),a=new tt(X,b),hr(g.a,a),oy(this,g,c,a,!1)))},p.zg=function(t){return t.i.n.a+t.n.a+t.a.a},p.Ag=function(){return ft(),jn},p.Bg=function(){return ft(),bn},N(Jie,"NorthToSouthRoutingStrategy",1870),P(1871,670,{},tlt),p.yg=function(t,i,s){var a,c,b,g,m,_,k,I,D,W,U,z,X;if(!(t.r&&!t.q))for(I=i-t.o*s,k=new ee(t.n);k.aXh&&(b=I,c=t,a=new tt(D,b),hr(g.a,a),oy(this,g,c,a,!1),W=t.r,W&&(U=Ae(je(tf(W.e,0))),a=new tt(U,b),hr(g.a,a),oy(this,g,c,a,!1),b=i-W.o*s,c=W,a=new tt(U,b),hr(g.a,a),oy(this,g,c,a,!1)),a=new tt(X,b),hr(g.a,a),oy(this,g,c,a,!1)))},p.zg=function(t){return t.i.n.a+t.n.a+t.a.a},p.Ag=function(){return ft(),bn},p.Bg=function(){return ft(),jn},N(Jie,"SouthToNorthRoutingStrategy",1871),P(1869,670,{},nlt),p.yg=function(t,i,s){var a,c,b,g,m,_,k,I,D,W,U,z,X;if(!(t.r&&!t.q))for(I=i+t.o*s,k=new ee(t.n);k.aXh&&(b=I,c=t,a=new tt(b,D),hr(g.a,a),oy(this,g,c,a,!0),W=t.r,W&&(U=Ae(je(tf(W.e,0))),a=new tt(b,U),hr(g.a,a),oy(this,g,c,a,!0),b=i+W.o*s,c=W,a=new tt(b,U),hr(g.a,a),oy(this,g,c,a,!0)),a=new tt(b,X),hr(g.a,a),oy(this,g,c,a,!0)))},p.zg=function(t){return t.i.n.b+t.n.b+t.a.b},p.Ag=function(){return ft(),_n},p.Bg=function(){return ft(),wn},N(Jie,"WestToEastRoutingStrategy",1869),P(828,1,{},S3e),p.Ib=function(){return B1(this.a)},p.b=0,p.c=!1,p.d=!1,p.f=0,N(y_,"NubSpline",828),P(418,1,{418:1},f3t,tgt),N(y_,"NubSpline/PolarCP",418),P(1480,1,$s,KSt),p.rg=function(t){return c6n(f(t,36))},p.Kf=function(t,i){sjn(this,f(t,36),i)};var tNt,nNt,rNt,iNt,oNt;N(y_,"SplineEdgeRouter",1480),P(274,1,{274:1},uW),p.Ib=function(){return this.a+" ->("+this.c+") "+this.b},p.c=0,N(y_,"SplineEdgeRouter/Dependency",274),P(465,22,{3:1,34:1,22:1,465:1},Fwe);var o0,eE,sNt=Wn(y_,"SplineEdgeRouter/SideToProcess",465,qn,Q_n,nmn),lNt;P(1481,1,sr,MJe),p.Mb=function(t){return V6(),!f(t,131).o},N(y_,"SplineEdgeRouter/lambda$0$Type",1481),P(1482,1,{},DJe),p.Ze=function(t){return V6(),f(t,131).v+1},N(y_,"SplineEdgeRouter/lambda$1$Type",1482),P(1483,1,Rn,Jct),p.Cd=function(t){kyn(this.a,this.b,f(t,42))},N(y_,"SplineEdgeRouter/lambda$2$Type",1483),P(1484,1,Rn,Yct),p.Cd=function(t){Ryn(this.a,this.b,f(t,42))},N(y_,"SplineEdgeRouter/lambda$3$Type",1484),P(131,1,{34:1,131:1},REt,A3e),p.Fd=function(t){return Cbn(this,f(t,131))},p.b=0,p.e=!1,p.f=0,p.g=0,p.j=!1,p.k=!1,p.n=0,p.o=!1,p.p=!1,p.q=!1,p.s=0,p.u=0,p.v=0,p.F=0,N(y_,"SplineSegment",131),P(468,1,{468:1},LJe),p.a=0,p.b=!1,p.c=!1,p.d=!1,p.e=!1,p.f=0,N(y_,"SplineSegment/EdgeInformation",468),P(1198,1,{},jJe),N(Ib,RRe,1198),P(1199,1,cr,FJe),p.Ne=function(t,i){return V5n(f(t,121),f(i,121))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(Ib,_At,1199),P(1197,1,{},hat),N(Ib,"MrTree",1197),P(405,22,{3:1,34:1,22:1,405:1,188:1,196:1},NF),p.dg=function(){return zEt(this)},p.qg=function(){return zEt(this)};var JV,c5,u5,f5,jIe=Wn(Ib,"TreeLayoutPhases",405,qn,eEn,rmn),aNt;P(1112,205,_w,Wdt),p.rf=function(t,i){var s,a,c,b,g,m,_,k;for(wt(gt(Qe(t,(Il(),c5e))))||N7((s=new QT((_m(),new hm(t))),s)),g=i.eh(Zie),g.Ug("build tGraph",1),m=(_=new U7,ol(_,t),Xe(_,(ei(),h5),t),k=new Fn,LNn(t,_,k),nMn(t,_,k),_),g.Vg(),g=i.eh(Zie),g.Ug("Split graph",1),b=UNn(this.a,m),g.Vg(),c=new ee(b);c.a"+nw(this.c):"e_"+ti(this)},N(wI,"TEdge",65),P(121,137,{3:1,121:1,96:1,137:1},U7),p.Ib=function(){var t,i,s,a,c;for(c=null,a=Hn(this.b,0);a.b!=a.d.c;)s=f(Bn(a),40),c+=(s.c==null||s.c.length==0?"n_"+s.g:"n_"+s.c)+` + endInLayerEdge=`,aa(t,this.c),t.a},N(Yh,"BreakingPointInserter/BPInfo",313),P(661,1,{661:1},Hit),p.a=!1,p.b=0,p.c=0,N(Yh,"BreakingPointInserter/Cut",661),P(1545,1,ni,FXe),p.Kf=function(t,i){NPn(f(t,36),i)},N(Yh,"BreakingPointProcessor",1545),P(1546,1,sr,BXe),p.Mb=function(t){return amt(f(t,10))},N(Yh,"BreakingPointProcessor/0methodref$isEnd$Type",1546),P(1547,1,sr,WXe),p.Mb=function(t){return cmt(f(t,10))},N(Yh,"BreakingPointProcessor/1methodref$isStart$Type",1547),P(1548,1,ni,HXe),p.Kf=function(t,i){nOn(this,f(t,36),i)},N(Yh,"BreakingPointRemover",1548),P(1549,1,Rn,UXe),p.Cd=function(t){f(t,131).k=!0},N(Yh,"BreakingPointRemover/lambda$0$Type",1549),P(811,1,{},$ke),p.b=0,p.e=0,p.f=0,p.j=0,N(Yh,"GraphStats",811),P(812,1,{},P1e),p.Ve=function(t,i){return h.Math.max(Ae(je(t)),Ae(je(i)))},N(Yh,"GraphStats/0methodref$max$Type",812),P(813,1,{},O1e),p.Ve=function(t,i){return h.Math.max(Ae(je(t)),Ae(je(i)))},N(Yh,"GraphStats/2methodref$max$Type",813),P(1726,1,{},GXe),p.Ve=function(t,i){return ryn(je(t),je(i))},N(Yh,"GraphStats/lambda$1$Type",1726),P(1727,1,{},Oit),p.Kb=function(t){return pSt(this.a,f(t,30))},N(Yh,"GraphStats/lambda$2$Type",1727),P(1728,1,{},Nit),p.Kb=function(t){return o3t(this.a,f(t,30))},N(Yh,"GraphStats/lambda$6$Type",1728),P(814,1,{},N1e),p.og=function(t,i){var s;return s=f(V(t,(bt(),oIe)),15),s||(Kt(),Kt(),ps)},p.pg=function(){return!1},N(Yh,"ICutIndexCalculator/ManualCutIndexCalculator",814),P(816,1,{},M1e),p.og=function(t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke;for(Ke=(i.n==null&&HSt(i),i.n),_=(i.d==null&&HSt(i),i.d),Ce=Fe(Ro,js,28,Ke.length,15,1),Ce[0]=Ke[0],ge=Ke[0],k=1;k=X&&(lt(b,ot(I)),_e=h.Math.max(_e,Ce[I-1]-D),m+=z,oe+=Ce[I-1]-oe,D=Ce[I-1],z=_[I]),z=h.Math.max(z,_[I]),++I;m+=z}U=h.Math.min(1/_e,1/i.b/m),U>a&&(a=U,s=b)}return s},p.pg=function(){return!1},N(Yh,"MSDCutIndexHeuristic",816),P(1683,1,ni,VXe),p.Kf=function(t,i){GMn(f(t,36),i)},N(Yh,"SingleEdgeGraphWrapper",1683),P(232,22,{3:1,34:1,22:1,232:1},v$);var B2,e4,t4,I_,WI,W2,n4=Wn(Zl,"CenterEdgeLabelPlacementStrategy",232,qn,Tkn,Iwn),b8t;P(431,22,{3:1,34:1,22:1,431:1},Nwe);var u$e,sle,f$e=Wn(Zl,"ConstraintCalculationStrategy",431,qn,X_n,Pwn),g8t;P(322,22,{3:1,34:1,22:1,322:1,188:1,196:1},ZY),p.dg=function(){return GEt(this)},p.qg=function(){return GEt(this)};var t9,HI,d$e,h$e=Wn(Zl,"CrossingMinimizationStrategy",322,qn,USn,Own),w8t;P(351,22,{3:1,34:1,22:1,351:1},eQ);var p$e,lle,uV,b$e=Wn(Zl,"CuttingStrategy",351,qn,GSn,Nwn),m8t;P(348,22,{3:1,34:1,22:1,348:1,188:1,196:1},XO),p.dg=function(){return Nkt(this)},p.qg=function(){return Nkt(this)};var g$e,ale,r4,cle,i4,w$e=Wn(Zl,"CycleBreakingStrategy",348,qn,KEn,Mwn),y8t;P(428,22,{3:1,34:1,22:1,428:1},Mwe);var fV,m$e,y$e=Wn(Zl,"DirectionCongruency",428,qn,q_n,Dwn),v8t;P(460,22,{3:1,34:1,22:1,460:1},tQ);var o4,ule,H2,_8t=Wn(Zl,"EdgeConstraint",460,qn,VSn,Uwn),S8t;P(283,22,{3:1,34:1,22:1,283:1},_$);var fle,dle,hle,ple,dV,ble,v$e=Wn(Zl,"EdgeLabelSideSelection",283,qn,xkn,Gwn),E8t;P(488,22,{3:1,34:1,22:1,488:1},Dwe);var hV,_$e,S$e=Wn(Zl,"EdgeStraighteningStrategy",488,qn,nSn,Vwn),k8t;P(281,22,{3:1,34:1,22:1,281:1},S$);var gle,E$e,k$e,pV,R$e,x$e,C$e=Wn(Zl,"FixedAlignment",281,qn,Ckn,Hwn),R8t;P(282,22,{3:1,34:1,22:1,282:1},E$);var A$e,T$e,$$e,I$e,UI,P$e,O$e=Wn(Zl,"GraphCompactionStrategy",282,qn,Akn,Lwn),x8t;P(259,22,{3:1,34:1,22:1,259:1},Tv);var s4,bV,l4,af,GI,gV,a4,U2,wV,VI,wle=Wn(Zl,"GraphProperties",259,qn,dRn,jwn),C8t;P(299,22,{3:1,34:1,22:1,299:1},nQ);var n9,mle,yle,vle=Wn(Zl,"GreedySwitchType",299,qn,zSn,Fwn),A8t;P(311,22,{3:1,34:1,22:1,311:1},rQ);var J3,r9,G2,T8t=Wn(Zl,"InLayerConstraint",311,qn,KSn,Bwn),$8t;P(429,22,{3:1,34:1,22:1,429:1},Lwe);var _le,N$e,M$e=Wn(Zl,"InteractiveReferencePoint",429,qn,K_n,Wwn),I8t,D$e,Y3,Sy,mV,L$e,j$e,yV,F$e,i9,vV,zI,Q3,Pb,Sle,_V,Dl,B$e,t0,ma,Ele,kle,o9,Iw,Ey,Z3,W$e,eR,s9,P_,jd,Af,Rle,V2,Yr,Ur,H$e,U$e,G$e,V$e,z$e,xle,SV,Ic,ky,Cle,tR,KI,hh,z2,Ry,K2,q2,c4,Pw,K$e,Ale,Tle,nR;P(171,22,{3:1,34:1,22:1,171:1},JO);var qI,n0,XI,O_,l9,q$e=Wn(Zl,"LayerConstraint",171,qn,XEn,zwn),P8t;P(859,1,Ef,ont),p.hf=function(t){Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,GRe),""),"Direction Congruency"),"Specifies how drawings of the same graph with different layout directions compare to each other: either a natural reading direction is preserved or the drawings are rotated versions of each other."),i6e),(Cg(),pi)),y$e),Mt((Nd(),rn))))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,VRe),""),"Feedback Edges"),"Whether feedback edges should be highlighted by routing around the nodes."),(cn(),!1)),po),Li),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,CU),""),"Interactive Reference Point"),"Determines which point of a node is considered by interactive layout phases."),u6e),pi),M$e),Mt(rn)))),qi(t,CU,_ie,xPt),qi(t,CU,pI,RPt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,zRe),""),"Merge Edges"),"Edges that have no ports are merged so they touch the connected nodes at the same points. When this option is disabled, one port is created for each edge directly connected to a node. When it is enabled, all such incoming edges share an input port, and all outgoing edges share an output port."),!1),po),Li),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,KRe),""),"Merge Hierarchy-Crossing Edges"),"If hierarchical layout is active, hierarchy-crossing edges use as few hierarchical ports as possible. They are broken by the algorithm, with hierarchical ports inserted as required. Usually, one such port is created for each edge at each hierarchy crossing point. With this option set to true, we try to create as few hierarchical ports as possible in the process. In particular, all edges that form a hyperedge can share a port."),!0),po),Li),Mt(rn)))),Ot(t,new Rt(jbn(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,qRe),""),"Allow Non-Flow Ports To Switch Sides"),"Specifies whether non-flow ports may switch sides if their node's port constraints are either FIXED_SIDE or FIXED_ORDER. A non-flow port is a port on a side that is not part of the currently configured layout flow. For instance, given a left-to-right layout direction, north and south ports would be considered non-flow ports. Further note that the underlying criterium whether to switch sides or not solely relies on the minimization of edge crossings. Hence, edge length and other aesthetics criteria are not addressed."),!1),po),Li),Mt(Bw)),se(ie(St,1),rt,2,6,["org.eclipse.elk.layered.northOrSouthPort"])))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,XRe),""),"Port Sorting Strategy"),"Only relevant for nodes with FIXED_SIDE port constraints. Determines the way a node's ports are distributed on the sides of a node if their order is not prescribed. The option is set on parent nodes."),m6e),pi),CIe),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,JRe),""),"Thoroughness"),"How much effort should be spent to produce a nice layout."),ot(7)),bl),Ko),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,YRe),""),"Add Unnecessary Bendpoints"),"Adds bend points even if an edge does not change direction. If true, each long edge dummy will contribute a bend point to its edges and hierarchy-crossing edges will always get a bend point where they cross hierarchy boundaries. By default, bend points are only added where an edge changes direction."),!1),po),Li),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,QRe),""),"Generate Position and Layer IDs"),"If enabled position id and layer id are generated, which are usually only used internally when setting the interactiveLayout option. This option should be specified on the root node."),!1),po),Li),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,_ie),"cycleBreaking"),"Cycle Breaking Strategy"),"Strategy for cycle breaking. Cycle breaking looks for cycles in the graph and determines which edges to reverse to break the cycles. Reversed edges will end up pointing to the opposite direction of regular edges (that is, reversed edges will point left if edges usually point right)."),r6e),pi),w$e),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,xM),Vie),"Node Layering Strategy"),"Strategy for node layering."),h6e),pi),bIe),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,ZRe),Vie),"Layer Constraint"),"Determines a constraint on the placement of the node regarding the layering."),f6e),pi),q$e),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,exe),Vie),"Layer Choice Constraint"),"Allows to set a constraint regarding the layer placement of a node. Let i be the value of teh constraint. Assumed the drawing has n layers and i < n. If set to i, it expresses that the node should be placed in i-th layer. Should i>=n be true then the node is placed in the last layer of the drawing. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),bl),Ko),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,txe),Vie),"Layer ID"),"Layer identifier that was calculated by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),ot(-1)),bl),Ko),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Sie),n4t),"Upper Bound On Width [MinWidth Layerer]"),"Defines a loose upper bound on the width of the MinWidth layerer. If set to '-1' multiple values are tested and the best result is selected."),ot(4)),bl),Ko),Mt(rn)))),qi(t,Sie,xM,OPt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Eie),n4t),"Upper Layer Estimation Scaling Factor [MinWidth Layerer]"),"Multiplied with Upper Bound On Width for defining an upper bound on the width of layers which haven't been determined yet, but whose maximum width had been (roughly) estimated by the MinWidth algorithm. Compensates for too high estimations. If set to '-1' multiple values are tested and the best result is selected."),ot(2)),bl),Ko),Mt(rn)))),qi(t,Eie,xM,MPt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,kie),r4t),"Node Promotion Strategy"),"Reduces number of dummy nodes after layering phase (if possible)."),d6e),pi),kIe),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Rie),r4t),"Max Node Promotion Iterations"),"Limits the number of iterations for node promotion."),ot(0)),bl),Ko),Mt(rn)))),qi(t,Rie,kie,null),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,xie),"layering.coffmanGraham"),"Layer Bound"),"The maximum number of nodes allowed per layer."),ot(Nr)),bl),Ko),Mt(rn)))),qi(t,xie,xM,APt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,pI),DA),"Crossing Minimization Strategy"),"Strategy for crossing minimization."),n6e),pi),h$e),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,nxe),DA),"Force Node Model Order"),"The node order given by the model does not change to produce a better layout. E.g. if node A is before node B in the model this is not changed during crossing minimization. This assumes that the node model order is already respected before crossing minimization. This can be achieved by setting considerModelOrder.strategy to NODES_AND_EDGES."),!1),po),Li),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Cie),DA),"Hierarchical Sweepiness"),"How likely it is to use cross-hierarchy (1) vs bottom-up (-1)."),.1),es),Qi),Mt(rn)))),qi(t,Cie,BU,Q8t),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Aie),DA),"Semi-Interactive Crossing Minimization"),"Preserves the order of nodes within a layer but still minimizes crossings between edges connecting long edge dummies. Derives the desired order from positions specified by the 'org.eclipse.elk.position' layout option. Requires a crossing minimization strategy that is able to process 'in-layer' constraints."),!1),po),Li),Mt(rn)))),qi(t,Aie,pI,iPt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,rxe),DA),"In Layer Predecessor of"),"Allows to set a constraint which specifies of which node the current node is the predecessor. If set to 's' then the node is the predecessor of 's' and is in the same layer"),null),oE),St),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,ixe),DA),"In Layer Successor of"),"Allows to set a constraint which specifies of which node the current node is the successor. If set to 's' then the node is the successor of 's' and is in the same layer"),null),oE),St),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,oxe),DA),"Position Choice Constraint"),"Allows to set a constraint regarding the position placement of a node in a layer. Assumed the layer in which the node placed includes n other nodes and i < n. If set to i, it expresses that the node should be placed at the i-th position. Should i>=n be true then the node is placed at the last position in the layer. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),bl),Ko),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,sxe),DA),"Position ID"),"Position within a layer that was determined by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),ot(-1)),bl),Ko),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,lxe),i4t),"Greedy Switch Activation Threshold"),"By default it is decided automatically if the greedy switch is activated or not. The decision is based on whether the size of the input graph (without dummy nodes) is smaller than the value of this option. A '0' enforces the activation."),ot(40)),bl),Ko),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Tie),i4t),"Greedy Switch Crossing Minimization"),"Greedy Switch strategy for crossing minimization. The greedy switch heuristic is executed after the regular crossing minimization as a post-processor. Note that if 'hierarchyHandling' is set to 'INCLUDE_CHILDREN', the 'greedySwitchHierarchical.type' option must be used."),t6e),pi),vle),Mt(rn)))),qi(t,Tie,pI,J8t),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,AU),"crossingMinimization.greedySwitchHierarchical"),"Greedy Switch Crossing Minimization (hierarchical)"),"Activates the greedy switch heuristic in case hierarchical layout is used. The differences to the non-hierarchical case (see 'greedySwitch.type') are: 1) greedy switch is inactive by default, 3) only the option value set on the node at which hierarchical layout starts is relevant, and 2) if it's activated by the user, it properly addresses hierarchy-crossing edges."),e6e),pi),vle),Mt(rn)))),qi(t,AU,pI,K8t),qi(t,AU,BU,q8t),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,T2),o4t),"Node Placement Strategy"),"Strategy for node placement."),w6e),pi),yIe),Mt(rn)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,TU),o4t),"Favor Straight Edges Over Balancing"),"Favor straight edges over a balanced node placement. The default behavior is determined automatically based on the used 'edgeRouting'. For an orthogonal style it is set to true, for all other styles to false."),po),Li),Mt(rn)))),qi(t,TU,T2,zPt),qi(t,TU,T2,KPt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,$ie),s4t),"BK Edge Straightening"),"Specifies whether the Brandes Koepf node placer tries to increase the number of straight edges at the expense of diagram size. There is a subtle difference to the 'favorStraightEdges' option, which decides whether a balanced placement of the nodes is desired, or not. In bk terms this means combining the four alignments into a single balanced one, or not. This option on the other hand tries to straighten additional edges during the creation of each of the four alignments."),p6e),pi),S$e),Mt(rn)))),qi(t,$ie,T2,HPt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Iie),s4t),"BK Fixed Alignment"),"Tells the BK node placer to use a certain alignment (out of its four) instead of the one producing the smallest height, or the combination of all four."),b6e),pi),C$e),Mt(rn)))),qi(t,Iie,T2,GPt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Pie),"nodePlacement.linearSegments"),"Linear Segments Deflection Dampening"),"Dampens the movement of nodes to keep the diagram from getting too large."),.3),es),Qi),Mt(rn)))),qi(t,Pie,T2,XPt),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,Oie),"nodePlacement.networkSimplex"),"Node Flexibility"),"Aims at shorter and straighter edges. Two configurations are possible: (a) allow ports to move freely on the side they are assigned to (the order is always defined beforehand), (b) additionally allow to enlarge a node wherever it helps. If this option is not configured for a node, the 'nodeFlexibility.default' value is used, which is specified for the node's parent."),pi),Yle),Mt(lo)))),qi(t,Oie,T2,ZPt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Nie),"nodePlacement.networkSimplex.nodeFlexibility"),"Node Flexibility Default"),"Default value of the 'nodeFlexibility' option for the children of a hierarchical node."),g6e),pi),Yle),Mt(rn)))),qi(t,Nie,T2,QPt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,axe),l4t),"Self-Loop Distribution"),"Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE."),l6e),pi),$Ie),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,cxe),l4t),"Self-Loop Ordering"),"Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE."),a6e),pi),IIe),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,$U),"edgeRouting.splines"),"Spline Routing Mode"),"Specifies the way control points are assembled for each individual edge. CONSERVATIVE ensures that edges are properly routed around the nodes but feels rather orthogonal at times. SLOPPY uses fewer control points to obtain curvier edge routes but may result in edges overlapping nodes."),c6e),pi),OIe),Mt(rn)))),qi(t,$U,CM,bPt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,IU),"edgeRouting.splines.sloppy"),"Sloppy Spline Layer Spacing Factor"),"Spacing factor for routing area between layers when using sloppy spline routing."),.2),es),Qi),Mt(rn)))),qi(t,IU,CM,wPt),qi(t,IU,$U,mPt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Mie),"edgeRouting.polyline"),"Sloped Edge Zone Width"),"Width of the strip to the left and to the right of each layer where the polyline edge router is allowed to refrain from ensuring that edges are routed horizontally. This prevents awkward bend points for nodes that extent almost to the edge of their layer."),2),es),Qi),Mt(rn)))),qi(t,Mie,CM,fPt),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,uxe),uh),"Spacing Base Value"),"An optional base value for all other layout options of the 'spacing' group. It can be used to conveniently alter the overall 'spaciousness' of the drawing. Whenever an explicit value is set for the other layout options, this base value will have no effect. The base value is not inherited, i.e. it must be set for each hierarchical node."),es),Qi),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,fxe),uh),"Edge Node Between Layers Spacing"),"The spacing to be preserved between nodes and edges that are routed next to the node's layer. For the spacing between nodes and edges that cross the node's layer 'spacing.edgeNode' is used."),10),es),Qi),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,dxe),uh),"Edge Edge Between Layer Spacing"),"Spacing to be preserved between pairs of edges that are routed between the same pair of layers. Note that 'spacing.edgeEdge' is used for the spacing between pairs of edges crossing the same layer."),10),es),Qi),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,hxe),uh),"Node Node Between Layers Spacing"),"The spacing to be preserved between any pair of nodes of two adjacent layers. Note that 'spacing.nodeNode' is used for the spacing between nodes within the layer itself."),20),es),Qi),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,pxe),kxe),"Direction Priority"),"Defines how important it is to have a certain edge point into the direction of the overall layout. This option is evaluated during the cycle breaking phase."),ot(0)),bl),Ko),Mt(op)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,bxe),kxe),"Shortness Priority"),"Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase."),ot(0)),bl),Ko),Mt(op)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,gxe),kxe),"Straightness Priority"),"Defines how important it is to keep an edge straight, i.e. aligned with one of the two axes. This option is evaluated during node placement."),ot(0)),bl),Ko),Mt(op)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Die),Rxe),EAt),"Tries to further compact components (disconnected sub-graphs)."),!1),po),Li),Mt(rn)))),qi(t,Die,cI,!0),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,wxe),a4t),"Post Compaction Strategy"),c4t),J$e),pi),O$e),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,mxe),a4t),"Post Compaction Constraint Calculation"),c4t),X$e),pi),f$e),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,PU),xxe),"High Degree Node Treatment"),"Makes room around high degree nodes to place leafs and trees."),!1),po),Li),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Lie),xxe),"High Degree Node Threshold"),"Whether a node is considered to have a high degree."),ot(16)),bl),Ko),Mt(rn)))),qi(t,Lie,PU,!0),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,jie),xxe),"High Degree Node Maximum Tree Height"),"Maximum height of a subtree connected to a high degree node to be moved to separate layers."),ot(5)),bl),Ko),Mt(rn)))),qi(t,jie,PU,!0),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Tb),Cxe),"Graph Wrapping Strategy"),"For certain graphs and certain prescribed drawing areas it may be desirable to split the laid out graph into chunks that are placed side by side. The edges that connect different chunks are 'wrapped' around from the end of one chunk to the start of the other chunk. The points between the chunks are referred to as 'cuts'."),_6e),pi),LIe),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,OU),Cxe),"Additional Wrapped Edges Spacing"),"To visually separate edges that are wrapped from regularly routed edges an additional spacing value can be specified in form of this layout option. The spacing is added to the regular edgeNode spacing."),10),es),Qi),Mt(rn)))),qi(t,OU,Tb,dOt),qi(t,OU,Tb,hOt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,NU),Cxe),"Correction Factor for Wrapping"),"At times and for certain types of graphs the executed wrapping may produce results that are consistently biased in the same fashion: either wrapping to often or to rarely. This factor can be used to correct the bias. Internally, it is simply multiplied with the 'aspect ratio' layout option."),1),es),Qi),Mt(rn)))),qi(t,NU,Tb,bOt),qi(t,NU,Tb,gOt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,bI),u4t),"Cutting Strategy"),"The strategy by which the layer indexes are determined at which the layering crumbles into chunks."),v6e),pi),b$e),Mt(rn)))),qi(t,bI,Tb,SOt),qi(t,bI,Tb,EOt),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,Fie),u4t),"Manually Specified Cuts"),"Allows the user to specify her own cuts for a certain graph."),bh),lf),Mt(rn)))),qi(t,Fie,bI,mOt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Bie),"wrapping.cutting.msd"),"MSD Freedom"),"The MSD cutting strategy starts with an initial guess on the number of chunks the graph should be split into. The freedom specifies how much the strategy may deviate from this guess. E.g. if an initial number of 3 is computed, a freedom of 1 allows 2, 3, and 4 cuts."),y6e),bl),Ko),Mt(rn)))),qi(t,Bie,bI,vOt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,MU),f4t),"Validification Strategy"),"When wrapping graphs, one can specify indices that are not allowed as split points. The validification strategy makes sure every computed split point is allowed."),S6e),pi),DIe),Mt(rn)))),qi(t,MU,Tb,MOt),qi(t,MU,Tb,DOt),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,DU),f4t),"Valid Indices for Wrapping"),null),bh),lf),Mt(rn)))),qi(t,DU,Tb,POt),qi(t,DU,Tb,OOt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,LU),Axe),"Improve Cuts"),"For general graphs it is important that not too many edges wrap backwards. Thus a compromise between evenly-distributed cuts and the total number of cut edges is sought."),!0),po),Li),Mt(rn)))),qi(t,LU,Tb,COt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,jU),Axe),"Distance Penalty When Improving Cuts"),null),2),es),Qi),Mt(rn)))),qi(t,jU,Tb,ROt),qi(t,jU,LU,!0),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Wie),Axe),"Improve Wrapped Edges"),"The initial wrapping is performed in a very simple way. As a consequence, edges that wrap from one chunk to another may be unnecessarily long. Activating this option tries to shorten such edges."),!0),po),Li),Mt(rn)))),qi(t,Wie,Tb,TOt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,yxe),zie),"Edge Label Side Selection"),"Method to decide on edge label sides."),s6e),pi),v$e),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,vxe),zie),"Edge Center Label Placement Strategy"),"Determines in which layer center labels of long edges should be placed."),o6e),pi),n4),ii(rn,se(ie(Mp,1),Je,170,0,[Fg]))))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,FU),gI),"Consider Model Order"),"Preserves the order of nodes and edges in the model file if this does not lead to additional edge crossings. Depending on the strategy this is not always possible since the node and edge order might be conflicting."),Z$e),pi),xIe),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,_xe),gI),"Consider Port Order"),"If disabled the port order of output ports is derived from the edge order and input ports are ordered by their incoming connections. If enabled all ports are ordered by the port model order."),!1),po),Li),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Sxe),gI),"No Model Order"),"Set on a node to not set a model order for this node even though it is a real node."),!1),po),Li),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Hie),gI),"Consider Model Order for Components"),"If set to NONE the usual ordering strategy (by cumulative node priority and size of nodes) is used. INSIDE_PORT_SIDES orders the components with external ports only inside the groups with the same port side. FORCE_MODEL_ORDER enforces the mode order on components. This option might produce bad alignments and sub optimal drawings in terms of used area since the ordering should be respected."),Y$e),pi),wTe),Mt(rn)))),qi(t,Hie,cI,null),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Exe),gI),"Long Edge Ordering Strategy"),"Indicates whether long edges are sorted under, over, or equal to nodes that have no connection to a previous layer in a left-to-right or right-to-left layout. Under and over changes to right and left in a vertical layout."),Q$e),pi),wIe),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Uie),gI),"Crossing Counter Node Order Influence"),"Indicates with what percentage (1 for 100%) violations of the node model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal node order. Defaults to no influence (0)."),0),es),Qi),Mt(rn)))),qi(t,Uie,FU,null),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Gie),gI),"Crossing Counter Port Order Influence"),"Indicates with what percentage (1 for 100%) violations of the port model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal port order. Defaults to no influence (0)."),0),es),Qi),Mt(rn)))),qi(t,Gie,FU,null),ACt((new snt,t))};var O8t,N8t,M8t,X$e,D8t,J$e,L8t,Y$e,j8t,F8t,B8t,Q$e,W8t,H8t,U8t,Z$e,G8t,V8t,z8t,e6e,K8t,q8t,X8t,t6e,J8t,Y8t,Q8t,Z8t,ePt,tPt,nPt,rPt,iPt,oPt,n6e,sPt,r6e,lPt,i6e,aPt,o6e,cPt,s6e,uPt,fPt,dPt,l6e,hPt,a6e,pPt,c6e,bPt,gPt,wPt,mPt,yPt,vPt,_Pt,SPt,EPt,kPt,u6e,RPt,xPt,CPt,APt,TPt,$Pt,f6e,IPt,PPt,OPt,NPt,MPt,DPt,LPt,d6e,jPt,h6e,FPt,BPt,WPt,p6e,HPt,UPt,b6e,GPt,VPt,zPt,KPt,qPt,XPt,JPt,YPt,g6e,QPt,ZPt,eOt,w6e,tOt,m6e,nOt,rOt,iOt,oOt,sOt,lOt,aOt,cOt,uOt,fOt,dOt,hOt,pOt,bOt,gOt,wOt,mOt,yOt,y6e,vOt,_Ot,v6e,SOt,EOt,kOt,ROt,xOt,COt,AOt,TOt,$Ot,_6e,IOt,POt,OOt,NOt,S6e,MOt,DOt;N(Zl,"LayeredMetaDataProvider",859),P(998,1,Ef,snt),p.hf=function(t){ACt(t)};var np,$le,EV,JI,kV,E6e,RV,N_,xV,k6e,R6e,CV,Ile,Np,Ple,xy,x6e,a9,Ole,C6e,LOt,jOt,FOt,AV,Nle,YI,Ow,BOt,$u,A6e,T6e,TV,Mle,rp,$V,Ob,$6e,I6e,P6e,Dle,Lle,O6e,Ng,jle,N6e,M_,M6e,D6e,L6e,IV,D_,Nw,j6e,F6e,Xs,B6e,WOt,Ha,PV,W6e,H6e,U6e,r0,Mw,OV,G6e,V6e,NV,Cy,z6e,Fle,QI,K6e,Ay,ZI,MV,Dw,Ble,u4,DV,Lw,q6e,X6e,J6e,f4,Y6e,HOt,UOt,GOt,VOt,Ty,L_,Oi,Mg,zOt,j_,Q6e,d4,Z6e,F_,KOt,h4,eIe,rR,qOt,XOt,c9,Wle,tIe,u9,ud,X2,J2,$y,jw,LV,B_,Hle,p4,b4,Iy,Y2,Ule,f9,e5,t5,JOt,YOt,QOt,nIe,ZOt,Gle,rIe,iIe,oIe,sIe,Vle,lIe,aIe,cIe,uIe,zle,jV;N(Zl,"LayeredOptions",998),P(999,1,{},zXe),p.sf=function(){var t;return t=new qst,t},p.tf=function(t){},N(Zl,"LayeredOptions/LayeredFactory",999),P(1391,1,{}),p.a=0;var e7t;N(Ol,"ElkSpacings/AbstractSpacingsBuilder",1391),P(792,1391,{},I2e);var FV,t7t;N(Zl,"LayeredSpacings/LayeredSpacingsBuilder",792),P(265,22,{3:1,34:1,22:1,265:1,188:1,196:1},LS),p.dg=function(){return U3t(this)},p.qg=function(){return U3t(this)};var g4,Kle,w4,fIe,dIe,hIe,BV,qle,pIe,bIe=Wn(Zl,"LayeringStrategy",265,qn,H3n,Kwn),n7t;P(390,22,{3:1,34:1,22:1,390:1},iQ);var Xle,gIe,WV,wIe=Wn(Zl,"LongEdgeOrderingStrategy",390,qn,qSn,qwn),r7t;P(203,22,{3:1,34:1,22:1,203:1},IF);var Q2,Z2,HV,Jle,Yle=Wn(Zl,"NodeFlexibility",203,qn,rEn,Xwn),i7t;P(323,22,{3:1,34:1,22:1,323:1,188:1,196:1},YO),p.dg=function(){return Okt(this)},p.qg=function(){return Okt(this)};var n5,Qle,Zle,r5,mIe,yIe=Wn(Zl,"NodePlacementStrategy",323,qn,qEn,Jwn),o7t;P(243,22,{3:1,34:1,22:1,243:1},$v);var vIe,Py,W_,d9,_Ie,SIe,h9,EIe,UV,GV,kIe=Wn(Zl,"NodePromotionStrategy",243,qn,hRn,Ywn),s7t;P(284,22,{3:1,34:1,22:1,284:1},PF);var RIe,Dg,eae,tae,xIe=Wn(Zl,"OrderingStrategy",284,qn,iEn,Qwn),l7t;P(430,22,{3:1,34:1,22:1,430:1},jwe);var nae,rae,CIe=Wn(Zl,"PortSortingStrategy",430,qn,J_n,Zwn),a7t;P(463,22,{3:1,34:1,22:1,463:1},oQ);var Pc,Ta,i5,c7t=Wn(Zl,"PortType",463,qn,XSn,emn),u7t;P(387,22,{3:1,34:1,22:1,387:1},sQ);var AIe,iae,TIe,$Ie=Wn(Zl,"SelfLoopDistributionStrategy",387,qn,JSn,tmn),f7t;P(349,22,{3:1,34:1,22:1,349:1},lQ);var oae,p9,sae,IIe=Wn(Zl,"SelfLoopOrderingStrategy",349,qn,YSn,nmn),d7t;P(312,1,{312:1},Rxt),N(Zl,"Spacings",312),P(350,22,{3:1,34:1,22:1,350:1},aQ);var lae,PIe,o5,OIe=Wn(Zl,"SplineRoutingMode",350,qn,QSn,rmn),h7t;P(352,22,{3:1,34:1,22:1,352:1},cQ);var aae,NIe,MIe,DIe=Wn(Zl,"ValidifyStrategy",352,qn,ZSn,imn),p7t;P(388,22,{3:1,34:1,22:1,388:1},uQ);var H_,cae,m4,LIe=Wn(Zl,"WrappingStrategy",388,qn,e2n,omn),b7t;P(1398,1,$s,Ytt),p.rg=function(t){return f(t,36),g7t},p.Kf=function(t,i){L9n(this,f(t,36),i)};var g7t;N(GU,"DepthFirstCycleBreaker",1398),P(793,1,$s,Yye),p.rg=function(t){return f(t,36),w7t},p.Kf=function(t,i){Wjn(this,f(t,36),i)},p.sg=function(t){return f(vt(t,_H(this.d,t.c.length)),10)};var w7t;N(GU,"GreedyCycleBreaker",793),P(1401,793,$s,Gut),p.sg=function(t){var i,s,a,c;for(c=null,i=Nr,a=new ee(t);a.a1&&(mt(wt(V(Go((qt(0,t.c.length),f(t.c[0],10))),(bt(),xy))))?zkt(t,this.d,f(this,669)):(Kt(),Hi(t,this.d)),Kyt(this.e,t))},p.lg=function(t,i,s,a){var c,b,g,m,_,k,I;for(i!=upt(s,t.length)&&(b=t[i-(s?1:-1)],x_e(this.f,b,s?(Cs(),Ta):(Cs(),Pc))),c=t[i][0],I=!a||c.k==(gn(),Ui),k=Qd(t[i]),this.vg(k,I,!1,s),g=0,_=new ee(k);_.a<_.c.c.length;)m=f(Z(_),10),t[i][g++]=m;return!1},p.mg=function(t,i){var s,a,c,b,g;for(g=upt(i,t.length),b=Qd(t[g]),this.vg(b,!1,!0,i),s=0,c=new ee(b);c.a"),t0?GZ(this.a,t[i-1],t[i]):!s&&i1&&(mt(wt(V(Go((qt(0,t.c.length),f(t.c[0],10))),(bt(),xy))))?zkt(t,this.d,this):(Kt(),Hi(t,this.d)),mt(wt(V(Go((qt(0,t.c.length),f(t.c[0],10))),xy)))||Kyt(this.e,t))},N(mc,"ModelOrderBarycenterHeuristic",669),P(1866,1,cr,Kit),p.Ne=function(t,i){return LIn(this.a,f(t,10),f(i,10))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(mc,"ModelOrderBarycenterHeuristic/lambda$0$Type",1866),P(1423,1,$s,ant),p.rg=function(t){var i;return f(t,36),i=qF(O7t),gr(i,(Yo(),sa),(ss(),ZG)),i},p.Kf=function(t,i){v_n((f(t,36),i))};var O7t;N(mc,"NoCrossingMinimizer",1423),P(809,413,cCe,lwe),p.tg=function(t,i,s){var a,c,b,g,m,_,k,I,D,W,U;switch(D=this.g,s.g){case 1:{for(c=0,b=0,I=new ee(t.j);I.a1&&(c.j==(ut(),_n)?this.b[t]=!0:c.j==wn&&t>0&&(this.b[t-1]=!0))},p.f=0,N($p,"AllCrossingsCounter",1861),P(595,1,{},FW),p.b=0,p.d=0,N($p,"BinaryIndexedTree",595),P(532,1,{},m7);var BIe,zV;N($p,"CrossingsCounter",532),P(1950,1,cr,qit),p.Ne=function(t,i){return zyn(this.a,f(t,12),f(i,12))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N($p,"CrossingsCounter/lambda$0$Type",1950),P(1951,1,cr,Xit),p.Ne=function(t,i){return Kyn(this.a,f(t,12),f(i,12))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N($p,"CrossingsCounter/lambda$1$Type",1951),P(1952,1,cr,Jit),p.Ne=function(t,i){return qyn(this.a,f(t,12),f(i,12))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N($p,"CrossingsCounter/lambda$2$Type",1952),P(1953,1,cr,Yit),p.Ne=function(t,i){return Xyn(this.a,f(t,12),f(i,12))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N($p,"CrossingsCounter/lambda$3$Type",1953),P(1954,1,Rn,Qit),p.Cd=function(t){Xkn(this.a,f(t,12))},N($p,"CrossingsCounter/lambda$4$Type",1954),P(1955,1,sr,Zit),p.Mb=function(t){return vgn(this.a,f(t,12))},N($p,"CrossingsCounter/lambda$5$Type",1955),P(1956,1,Rn,eot),p.Cd=function(t){Mut(this,t)},N($p,"CrossingsCounter/lambda$6$Type",1956),P(1957,1,Rn,zct),p.Cd=function(t){var i;lC(),$1(this.b,(i=this.a,f(t,12),i))},N($p,"CrossingsCounter/lambda$7$Type",1957),P(839,1,Kh,D1e),p.Lb=function(t){return lC(),ri(f(t,12),(nt(),Ic))},p.Fb=function(t){return this===t},p.Mb=function(t){return lC(),ri(f(t,12),(nt(),Ic))},N($p,"CrossingsCounter/lambda$8$Type",839),P(1949,1,{},tot),N($p,"HyperedgeCrossingsCounter",1949),P(478,1,{34:1,478:1},Xdt),p.Fd=function(t){return qAn(this,f(t,478))},p.b=0,p.c=0,p.e=0,p.f=0;var AFn=N($p,"HyperedgeCrossingsCounter/Hyperedge",478);P(374,1,{34:1,374:1},BB),p.Fd=function(t){return aPn(this,f(t,374))},p.b=0,p.c=0;var N7t=N($p,"HyperedgeCrossingsCounter/HyperedgeCorner",374);P(531,22,{3:1,34:1,22:1,531:1},Fwe);var l5,a5,M7t=Wn($p,"HyperedgeCrossingsCounter/HyperedgeCorner/Type",531,qn,Y_n,lmn),D7t;P(1425,1,$s,cnt),p.rg=function(t){return f(V(f(t,36),(nt(),ma)),21).Hc((As(),af))?L7t:null},p.Kf=function(t,i){y$n(this,f(t,36),i)};var L7t;N(Is,"InteractiveNodePlacer",1425),P(1426,1,$s,unt),p.rg=function(t){return f(V(f(t,36),(nt(),ma)),21).Hc((As(),af))?j7t:null},p.Kf=function(t,i){rTn(this,f(t,36),i)};var j7t,KV,qV;N(Is,"LinearSegmentsNodePlacer",1426),P(261,1,{34:1,261:1},M0e),p.Fd=function(t){return Pbn(this,f(t,261))},p.Fb=function(t){var i;return ve(t,261)?(i=f(t,261),this.b==i.b):!1},p.Hb=function(){return this.b},p.Ib=function(){return"ls"+B1(this.e)},p.a=0,p.b=0,p.c=-1,p.d=-1,p.g=0;var F7t=N(Is,"LinearSegmentsNodePlacer/LinearSegment",261);P(1428,1,$s,vpt),p.rg=function(t){return f(V(f(t,36),(nt(),ma)),21).Hc((As(),af))?B7t:null},p.Kf=function(t,i){Pjn(this,f(t,36),i)},p.b=0,p.g=0;var B7t;N(Is,"NetworkSimplexPlacer",1428),P(1447,1,cr,nJe),p.Ne=function(t,i){return Xl(f(t,17).a,f(i,17).a)},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(Is,"NetworkSimplexPlacer/0methodref$compare$Type",1447),P(1449,1,cr,rJe),p.Ne=function(t,i){return Xl(f(t,17).a,f(i,17).a)},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(Is,"NetworkSimplexPlacer/1methodref$compare$Type",1449),P(655,1,{655:1},Kct);var TFn=N(Is,"NetworkSimplexPlacer/EdgeRep",655);P(412,1,{412:1},Ive),p.b=!1;var $Fn=N(Is,"NetworkSimplexPlacer/NodeRep",412);P(515,13,{3:1,4:1,20:1,31:1,56:1,13:1,16:1,15:1,59:1,515:1},rlt),N(Is,"NetworkSimplexPlacer/Path",515),P(1429,1,{},iJe),p.Kb=function(t){return f(t,18).d.i.k},N(Is,"NetworkSimplexPlacer/Path/lambda$0$Type",1429),P(1430,1,sr,oJe),p.Mb=function(t){return f(t,273)==(gn(),vo)},N(Is,"NetworkSimplexPlacer/Path/lambda$1$Type",1430),P(1431,1,{},sJe),p.Kb=function(t){return f(t,18).d.i},N(Is,"NetworkSimplexPlacer/Path/lambda$2$Type",1431),P(1432,1,sr,not),p.Mb=function(t){return Odt(D_t(f(t,10)))},N(Is,"NetworkSimplexPlacer/Path/lambda$3$Type",1432),P(1433,1,sr,lJe),p.Mb=function(t){return $yn(f(t,12))},N(Is,"NetworkSimplexPlacer/lambda$0$Type",1433),P(1434,1,Rn,qct),p.Cd=function(t){f1n(this.a,this.b,f(t,12))},N(Is,"NetworkSimplexPlacer/lambda$1$Type",1434),P(1443,1,Rn,rot),p.Cd=function(t){L5n(this.a,f(t,18))},N(Is,"NetworkSimplexPlacer/lambda$10$Type",1443),P(1444,1,{},aJe),p.Kb=function(t){return mu(),new Wt(null,new Vt(f(t,30).a,16))},N(Is,"NetworkSimplexPlacer/lambda$11$Type",1444),P(1445,1,Rn,iot),p.Cd=function(t){I7n(this.a,f(t,10))},N(Is,"NetworkSimplexPlacer/lambda$12$Type",1445),P(1446,1,{},cJe),p.Kb=function(t){return mu(),ot(f(t,125).e)},N(Is,"NetworkSimplexPlacer/lambda$13$Type",1446),P(1448,1,{},uJe),p.Kb=function(t){return mu(),ot(f(t,125).e)},N(Is,"NetworkSimplexPlacer/lambda$15$Type",1448),P(1450,1,sr,fJe),p.Mb=function(t){return mu(),f(t,412).c.k==(gn(),ji)},N(Is,"NetworkSimplexPlacer/lambda$17$Type",1450),P(1451,1,sr,dJe),p.Mb=function(t){return mu(),f(t,412).c.j.c.length>1},N(Is,"NetworkSimplexPlacer/lambda$18$Type",1451),P(1452,1,Rn,Abt),p.Cd=function(t){gAn(this.c,this.b,this.d,this.a,f(t,412))},p.c=0,p.d=0,N(Is,"NetworkSimplexPlacer/lambda$19$Type",1452),P(1435,1,{},hJe),p.Kb=function(t){return mu(),new Wt(null,new Vt(f(t,30).a,16))},N(Is,"NetworkSimplexPlacer/lambda$2$Type",1435),P(1453,1,Rn,oot),p.Cd=function(t){h1n(this.a,f(t,12))},p.a=0,N(Is,"NetworkSimplexPlacer/lambda$20$Type",1453),P(1454,1,{},pJe),p.Kb=function(t){return mu(),new Wt(null,new Vt(f(t,30).a,16))},N(Is,"NetworkSimplexPlacer/lambda$21$Type",1454),P(1455,1,Rn,sot),p.Cd=function(t){R1n(this.a,f(t,10))},N(Is,"NetworkSimplexPlacer/lambda$22$Type",1455),P(1456,1,sr,bJe),p.Mb=function(t){return Odt(t)},N(Is,"NetworkSimplexPlacer/lambda$23$Type",1456),P(1457,1,{},gJe),p.Kb=function(t){return mu(),new Wt(null,new Vt(f(t,30).a,16))},N(Is,"NetworkSimplexPlacer/lambda$24$Type",1457),P(1458,1,sr,lot),p.Mb=function(t){return Ngn(this.a,f(t,10))},N(Is,"NetworkSimplexPlacer/lambda$25$Type",1458),P(1459,1,Rn,Xct),p.Cd=function(t){WIn(this.a,this.b,f(t,10))},N(Is,"NetworkSimplexPlacer/lambda$26$Type",1459),P(1460,1,sr,wJe),p.Mb=function(t){return mu(),!ms(f(t,18))},N(Is,"NetworkSimplexPlacer/lambda$27$Type",1460),P(1461,1,sr,mJe),p.Mb=function(t){return mu(),!ms(f(t,18))},N(Is,"NetworkSimplexPlacer/lambda$28$Type",1461),P(1462,1,{},aot),p.Ve=function(t,i){return d1n(this.a,f(t,30),f(i,30))},N(Is,"NetworkSimplexPlacer/lambda$29$Type",1462),P(1436,1,{},yJe),p.Kb=function(t){return mu(),new Wt(null,new Pm(new kn(xn(Wi(f(t,10)).a.Kc(),new O))))},N(Is,"NetworkSimplexPlacer/lambda$3$Type",1436),P(1437,1,sr,vJe),p.Mb=function(t){return mu(),H2n(f(t,18))},N(Is,"NetworkSimplexPlacer/lambda$4$Type",1437),P(1438,1,Rn,cot),p.Cd=function(t){BMn(this.a,f(t,18))},N(Is,"NetworkSimplexPlacer/lambda$5$Type",1438),P(1439,1,{},_Je),p.Kb=function(t){return mu(),new Wt(null,new Vt(f(t,30).a,16))},N(Is,"NetworkSimplexPlacer/lambda$6$Type",1439),P(1440,1,sr,SJe),p.Mb=function(t){return mu(),f(t,10).k==(gn(),ji)},N(Is,"NetworkSimplexPlacer/lambda$7$Type",1440),P(1441,1,{},EJe),p.Kb=function(t){return mu(),new Wt(null,new Pm(new kn(xn(Sb(f(t,10)).a.Kc(),new O))))},N(Is,"NetworkSimplexPlacer/lambda$8$Type",1441),P(1442,1,sr,kJe),p.Mb=function(t){return mu(),Tyn(f(t,18))},N(Is,"NetworkSimplexPlacer/lambda$9$Type",1442),P(1424,1,$s,fnt),p.rg=function(t){return f(V(f(t,36),(nt(),ma)),21).Hc((As(),af))?W7t:null},p.Kf=function(t,i){v9n(f(t,36),i)};var W7t;N(Is,"SimpleNodePlacer",1424),P(185,1,{185:1},y2),p.Ib=function(){var t;return t="",this.c==(jh(),Oy)?t+=D3:this.c==Lg&&(t+=M3),this.o==(Jd(),Fw)?t+=Zre:this.o==ph?t+="UP":t+="BALANCED",t},N(q1,"BKAlignedLayout",185),P(523,22,{3:1,34:1,22:1,523:1},Bwe);var Lg,Oy,H7t=Wn(q1,"BKAlignedLayout/HDirection",523,qn,Z_n,amn),U7t;P(522,22,{3:1,34:1,22:1,522:1},Wwe);var Fw,ph,G7t=Wn(q1,"BKAlignedLayout/VDirection",522,qn,eSn,cmn),V7t;P(1699,1,{},Jct),N(q1,"BKAligner",1699),P(1702,1,{},l2t),N(q1,"BKCompactor",1702),P(663,1,{663:1},RJe),p.a=0,N(q1,"BKCompactor/ClassEdge",663),P(467,1,{467:1},elt),p.a=null,p.b=0,N(q1,"BKCompactor/ClassNode",467),P(1427,1,$s,eut),p.rg=function(t){return f(V(f(t,36),(nt(),ma)),21).Hc((As(),af))?z7t:null},p.Kf=function(t,i){Jjn(this,f(t,36),i)},p.d=!1;var z7t;N(q1,"BKNodePlacer",1427),P(1700,1,{},xJe),p.d=0,N(q1,"NeighborhoodInformation",1700),P(1701,1,cr,uot),p.Ne=function(t,i){return k3n(this,f(t,42),f(i,42))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(q1,"NeighborhoodInformation/NeighborComparator",1701),P(823,1,{}),N(q1,"ThresholdStrategy",823),P(1825,823,{},tlt),p.wg=function(t,i,s){return this.a.o==(Jd(),ph)?hi:to},p.xg=function(){},N(q1,"ThresholdStrategy/NullThresholdStrategy",1825),P(587,1,{587:1},tut),p.c=!1,p.d=!1,N(q1,"ThresholdStrategy/Postprocessable",587),P(1826,823,{},nlt),p.wg=function(t,i,s){var a,c,b;return c=i==s,a=this.a.a[s.p]==i,c||a?(b=t,this.a.c==(jh(),Oy)?(c&&(b=Qne(this,i,!0)),!isNaN(b)&&!isFinite(b)&&a&&(b=Qne(this,s,!1))):(c&&(b=Qne(this,i,!0)),!isNaN(b)&&!isFinite(b)&&a&&(b=Qne(this,s,!1))),b):t},p.xg=function(){for(var t,i,s,a,c;this.d.b!=0;)c=f(bSn(this.d),587),a=ORt(this,c),a.a&&(t=a.a,s=mt(this.a.f[this.a.g[c.b.p].p]),!(!s&&!ms(t)&&t.c.i.c==t.d.i.c)&&(i=jkt(this,c),i||Lgn(this.e,c)));for(;this.e.a.c.length!=0;)jkt(this,f(Fvt(this.e),587))},N(q1,"ThresholdStrategy/SimpleThresholdStrategy",1826),P(645,1,{645:1,188:1,196:1},CJe),p.dg=function(){return qyt(this)},p.qg=function(){return qyt(this)};var uae;N(Yie,"EdgeRouterFactory",645),P(1485,1,$s,dnt),p.rg=function(t){return l7n(f(t,36))},p.Kf=function(t,i){x9n(f(t,36),i)};var K7t,q7t,X7t,J7t,Y7t,WIe,Q7t,Z7t;N(Yie,"OrthogonalEdgeRouter",1485),P(1478,1,$s,Zct),p.rg=function(t){return T$n(f(t,36))},p.Kf=function(t,i){JLn(this,f(t,36),i)};var eNt,tNt,nNt,rNt,g9,iNt;N(Yie,"PolylineEdgeRouter",1478),P(1479,1,Kh,TJe),p.Lb=function(t){return ASe(f(t,10))},p.Fb=function(t){return this===t},p.Mb=function(t){return ASe(f(t,10))},N(Yie,"PolylineEdgeRouter/1",1479),P(1872,1,sr,$Je),p.Mb=function(t){return f(t,132).c==(Td(),i0)},N(Md,"HyperEdgeCycleDetector/lambda$0$Type",1872),P(1873,1,{},IJe),p.Ze=function(t){return f(t,132).d},N(Md,"HyperEdgeCycleDetector/lambda$1$Type",1873),P(1874,1,sr,PJe),p.Mb=function(t){return f(t,132).c==(Td(),i0)},N(Md,"HyperEdgeCycleDetector/lambda$2$Type",1874),P(1875,1,{},OJe),p.Ze=function(t){return f(t,132).d},N(Md,"HyperEdgeCycleDetector/lambda$3$Type",1875),P(1876,1,{},NJe),p.Ze=function(t){return f(t,132).d},N(Md,"HyperEdgeCycleDetector/lambda$4$Type",1876),P(1877,1,{},AJe),p.Ze=function(t){return f(t,132).d},N(Md,"HyperEdgeCycleDetector/lambda$5$Type",1877),P(118,1,{34:1,118:1},lN),p.Fd=function(t){return Obn(this,f(t,118))},p.Fb=function(t){var i;return ve(t,118)?(i=f(t,118),this.g==i.g):!1},p.Hb=function(){return this.g},p.Ib=function(){var t,i,s,a;for(t=new gu("{"),a=new ee(this.n);a.a"+this.b+" ("+Q1n(this.c)+")"},p.d=0,N(Md,"HyperEdgeSegmentDependency",132),P(528,22,{3:1,34:1,22:1,528:1},Hwe);var i0,U_,oNt=Wn(Md,"HyperEdgeSegmentDependency/DependencyType",528,qn,tSn,umn),sNt;P(1878,1,{},fot),N(Md,"HyperEdgeSegmentSplitter",1878),P(1879,1,{},rat),p.a=0,p.b=0,N(Md,"HyperEdgeSegmentSplitter/AreaRating",1879),P(339,1,{339:1},QQ),p.a=0,p.b=0,p.c=0,N(Md,"HyperEdgeSegmentSplitter/FreeArea",339),P(1880,1,cr,MJe),p.Ne=function(t,i){return Q0n(f(t,118),f(i,118))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(Md,"HyperEdgeSegmentSplitter/lambda$0$Type",1880),P(1881,1,Rn,Tbt),p.Cd=function(t){xEn(this.a,this.d,this.c,this.b,f(t,118))},p.b=0,N(Md,"HyperEdgeSegmentSplitter/lambda$1$Type",1881),P(1882,1,{},DJe),p.Kb=function(t){return new Wt(null,new Vt(f(t,118).e,16))},N(Md,"HyperEdgeSegmentSplitter/lambda$2$Type",1882),P(1883,1,{},LJe),p.Kb=function(t){return new Wt(null,new Vt(f(t,118).j,16))},N(Md,"HyperEdgeSegmentSplitter/lambda$3$Type",1883),P(1884,1,{},jJe),p.Ye=function(t){return Ae(je(t))},N(Md,"HyperEdgeSegmentSplitter/lambda$4$Type",1884),P(664,1,{},EZ),p.a=0,p.b=0,p.c=0,N(Md,"OrthogonalRoutingGenerator",664),P(1703,1,{},FJe),p.Kb=function(t){return new Wt(null,new Vt(f(t,118).e,16))},N(Md,"OrthogonalRoutingGenerator/lambda$0$Type",1703),P(1704,1,{},BJe),p.Kb=function(t){return new Wt(null,new Vt(f(t,118).j,16))},N(Md,"OrthogonalRoutingGenerator/lambda$1$Type",1704),P(670,1,{}),N(Qie,"BaseRoutingDirectionStrategy",670),P(1870,670,{},slt),p.yg=function(t,i,s){var a,c,b,g,m,_,k,I,D,W,U,z,X;if(!(t.r&&!t.q))for(I=i+t.o*s,k=new ee(t.n);k.aXh&&(b=I,c=t,a=new tt(D,b),hr(g.a,a),iy(this,g,c,a,!1),W=t.r,W&&(U=Ae(je(tf(W.e,0))),a=new tt(U,b),hr(g.a,a),iy(this,g,c,a,!1),b=i+W.o*s,c=W,a=new tt(U,b),hr(g.a,a),iy(this,g,c,a,!1)),a=new tt(X,b),hr(g.a,a),iy(this,g,c,a,!1)))},p.zg=function(t){return t.i.n.a+t.n.a+t.a.a},p.Ag=function(){return ut(),jn},p.Bg=function(){return ut(),bn},N(Qie,"NorthToSouthRoutingStrategy",1870),P(1871,670,{},llt),p.yg=function(t,i,s){var a,c,b,g,m,_,k,I,D,W,U,z,X;if(!(t.r&&!t.q))for(I=i-t.o*s,k=new ee(t.n);k.aXh&&(b=I,c=t,a=new tt(D,b),hr(g.a,a),iy(this,g,c,a,!1),W=t.r,W&&(U=Ae(je(tf(W.e,0))),a=new tt(U,b),hr(g.a,a),iy(this,g,c,a,!1),b=i-W.o*s,c=W,a=new tt(U,b),hr(g.a,a),iy(this,g,c,a,!1)),a=new tt(X,b),hr(g.a,a),iy(this,g,c,a,!1)))},p.zg=function(t){return t.i.n.a+t.n.a+t.a.a},p.Ag=function(){return ut(),bn},p.Bg=function(){return ut(),jn},N(Qie,"SouthToNorthRoutingStrategy",1871),P(1869,670,{},alt),p.yg=function(t,i,s){var a,c,b,g,m,_,k,I,D,W,U,z,X;if(!(t.r&&!t.q))for(I=i+t.o*s,k=new ee(t.n);k.aXh&&(b=I,c=t,a=new tt(b,D),hr(g.a,a),iy(this,g,c,a,!0),W=t.r,W&&(U=Ae(je(tf(W.e,0))),a=new tt(b,U),hr(g.a,a),iy(this,g,c,a,!0),b=i+W.o*s,c=W,a=new tt(b,U),hr(g.a,a),iy(this,g,c,a,!0)),a=new tt(b,X),hr(g.a,a),iy(this,g,c,a,!0)))},p.zg=function(t){return t.i.n.b+t.n.b+t.a.b},p.Ag=function(){return ut(),_n},p.Bg=function(){return ut(),wn},N(Qie,"WestToEastRoutingStrategy",1869),P(828,1,{},x3e),p.Ib=function(){return B1(this.a)},p.b=0,p.c=!1,p.d=!1,p.f=0,N(y_,"NubSpline",828),P(418,1,{418:1},w3t,lgt),N(y_,"NubSpline/PolarCP",418),P(1480,1,$s,ZSt),p.rg=function(t){return m6n(f(t,36))},p.Kf=function(t,i){bjn(this,f(t,36),i)};var lNt,aNt,cNt,uNt,fNt;N(y_,"SplineEdgeRouter",1480),P(274,1,{274:1},cW),p.Ib=function(){return this.a+" ->("+this.c+") "+this.b},p.c=0,N(y_,"SplineEdgeRouter/Dependency",274),P(465,22,{3:1,34:1,22:1,465:1},Uwe);var o0,eE,dNt=Wn(y_,"SplineEdgeRouter/SideToProcess",465,qn,lSn,fmn),hNt;P(1481,1,sr,WJe),p.Mb=function(t){return V6(),!f(t,131).o},N(y_,"SplineEdgeRouter/lambda$0$Type",1481),P(1482,1,{},HJe),p.Ze=function(t){return V6(),f(t,131).v+1},N(y_,"SplineEdgeRouter/lambda$1$Type",1482),P(1483,1,Rn,nut),p.Cd=function(t){Oyn(this.a,this.b,f(t,42))},N(y_,"SplineEdgeRouter/lambda$2$Type",1483),P(1484,1,Rn,rut),p.Cd=function(t){Nyn(this.a,this.b,f(t,42))},N(y_,"SplineEdgeRouter/lambda$3$Type",1484),P(131,1,{34:1,131:1},IEt,P3e),p.Fd=function(t){return Dbn(this,f(t,131))},p.b=0,p.e=!1,p.f=0,p.g=0,p.j=!1,p.k=!1,p.n=0,p.o=!1,p.p=!1,p.q=!1,p.s=0,p.u=0,p.v=0,p.F=0,N(y_,"SplineSegment",131),P(468,1,{468:1},UJe),p.a=0,p.b=!1,p.c=!1,p.d=!1,p.e=!1,p.f=0,N(y_,"SplineSegment/EdgeInformation",468),P(1198,1,{},GJe),N(Ib,TRe,1198),P(1199,1,cr,VJe),p.Ne=function(t,i){return e8n(f(t,121),f(i,121))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(Ib,CAt,1199),P(1197,1,{},yat),N(Ib,"MrTree",1197),P(405,22,{3:1,34:1,22:1,405:1,188:1,196:1},OF),p.dg=function(){return QEt(this)},p.qg=function(){return QEt(this)};var XV,c5,u5,f5,HIe=Wn(Ib,"TreeLayoutPhases",405,qn,cEn,dmn),pNt;P(1112,205,_w,Kdt),p.rf=function(t,i){var s,a,c,b,g,m,_,k;for(mt(wt(Ye(t,(Il(),h5e))))||O7((s=new QT((vm(),new dm(t))),s)),g=i.eh(toe),g.Ug("build tGraph",1),m=(_=new H7,ol(_,t),Xe(_,(ei(),h5),t),k=new Fn,zNn(t,_,k),fMn(t,_,k),_),g.Vg(),g=i.eh(toe),g.Ug("Split graph",1),b=QNn(this.a,m),g.Vg(),c=new ee(b);c.a"+nw(this.c):"e_"+ti(this)},N(wI,"TEdge",65),P(121,137,{3:1,121:1,96:1,137:1},H7),p.Ib=function(){var t,i,s,a,c;for(c=null,a=Hn(this.b,0);a.b!=a.d.c;)s=f(Bn(a),40),c+=(s.c==null||s.c.length==0?"n_"+s.g:"n_"+s.c)+` `;for(i=Hn(this.a,0);i.b!=i.d.c;)t=f(Bn(i),65),c+=(t.b&&t.c?nw(t.b)+"->"+nw(t.c):"e_"+ti(t))+` -`;return c};var SFn=N(wI,"TGraph",121);P(643,508,{3:1,508:1,643:1,96:1,137:1}),N(wI,"TShape",643),P(40,643,{3:1,508:1,40:1,643:1,96:1,137:1},Zee),p.Ib=function(){return nw(this)};var YV=N(wI,"TNode",40);P(236,1,Rp,sb),p.Jc=function(t){Vo(this,t)},p.Kc=function(){var t;return t=Hn(this.a.d,0),new OS(t)},N(wI,"TNode/2",236),P(329,1,ko,OS),p.Nb=function(t){Uo(this,t)},p.Pb=function(){return f(Bn(this.a),65).c},p.Ob=function(){return jO(this.a)},p.Qb=function(){Cee(this.a)},N(wI,"TNode/2/1",329),P(1923,1,ni,zJe),p.Kf=function(t,i){Djn(this,f(t,121),i)},N(ba,"CompactionProcessor",1923),P(1924,1,cr,uot),p.Ne=function(t,i){return ERn(this.a,f(t,40),f(i,40))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(ba,"CompactionProcessor/lambda$0$Type",1924),P(1925,1,sr,Zct),p.Mb=function(t){return T_n(this.b,this.a,f(t,42))},p.a=0,p.b=0,N(ba,"CompactionProcessor/lambda$1$Type",1925),P(1934,1,cr,KJe),p.Ne=function(t,i){return vvn(f(t,40),f(i,40))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(ba,"CompactionProcessor/lambda$10$Type",1934),P(1935,1,cr,qJe),p.Ne=function(t,i){return N1n(f(t,40),f(i,40))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(ba,"CompactionProcessor/lambda$11$Type",1935),P(1936,1,cr,XJe),p.Ne=function(t,i){return _vn(f(t,40),f(i,40))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(ba,"CompactionProcessor/lambda$12$Type",1936),P(1926,1,sr,fot),p.Mb=function(t){return w1n(this.a,f(t,42))},p.a=0,N(ba,"CompactionProcessor/lambda$2$Type",1926),P(1927,1,sr,dot),p.Mb=function(t){return m1n(this.a,f(t,42))},p.a=0,N(ba,"CompactionProcessor/lambda$3$Type",1927),P(1928,1,sr,JJe),p.Mb=function(t){return f(t,40).c.indexOf(KU)==-1},N(ba,"CompactionProcessor/lambda$4$Type",1928),P(1929,1,{},hot),p.Kb=function(t){return I2n(this.a,f(t,40))},p.a=0,N(ba,"CompactionProcessor/lambda$5$Type",1929),P(1930,1,{},pot),p.Kb=function(t){return Fkn(this.a,f(t,40))},p.a=0,N(ba,"CompactionProcessor/lambda$6$Type",1930),P(1931,1,cr,bot),p.Ne=function(t,i){return JEn(this.a,f(t,240),f(i,240))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(ba,"CompactionProcessor/lambda$7$Type",1931),P(1932,1,cr,got),p.Ne=function(t,i){return YEn(this.a,f(t,40),f(i,40))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(ba,"CompactionProcessor/lambda$8$Type",1932),P(1933,1,cr,YJe),p.Ne=function(t,i){return M1n(f(t,40),f(i,40))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(ba,"CompactionProcessor/lambda$9$Type",1933),P(1921,1,ni,QJe),p.Kf=function(t,i){P7n(f(t,121),i)},N(ba,"DirectionProcessor",1921),P(1913,1,ni,Bdt),p.Kf=function(t,i){eMn(this,f(t,121),i)},N(ba,"FanProcessor",1913),P(1937,1,ni,ZJe),p.Kf=function(t,i){v7n(f(t,121),i)},N(ba,"GraphBoundsProcessor",1937),P(1938,1,{},eYe),p.Ye=function(t){return f(t,40).e.a},N(ba,"GraphBoundsProcessor/lambda$0$Type",1938),P(1939,1,{},tYe),p.Ye=function(t){return f(t,40).e.b},N(ba,"GraphBoundsProcessor/lambda$1$Type",1939),P(1940,1,{},nYe),p.Ye=function(t){return egn(f(t,40))},N(ba,"GraphBoundsProcessor/lambda$2$Type",1940),P(1941,1,{},rYe),p.Ye=function(t){return Zbn(f(t,40))},N(ba,"GraphBoundsProcessor/lambda$3$Type",1941),P(262,22,{3:1,34:1,22:1,262:1,196:1},Sm),p.dg=function(){switch(this.g){case 0:return new glt;case 1:return new Bdt;case 2:return new blt;case 3:return new aYe;case 4:return new oYe;case 8:return new iYe;case 5:return new QJe;case 6:return new uYe;case 7:return new zJe;case 9:return new ZJe;case 10:return new fYe;default:throw ne(new hn(bie+(this.f!=null?this.f:""+this.g)))}};var FIe,BIe,WIe,HIe,UIe,GIe,VIe,zIe,KIe,qIe,cae,EFn=Wn(ba,gie,262,qn,Nyt,imn),cNt;P(1920,1,ni,iYe),p.Kf=function(t,i){OLn(f(t,121),i)},N(ba,"LevelCoordinatesProcessor",1920),P(1918,1,ni,oYe),p.Kf=function(t,i){eOn(this,f(t,121),i)},p.a=0,N(ba,"LevelHeightProcessor",1918),P(1919,1,Rp,sYe),p.Jc=function(t){Vo(this,t)},p.Kc=function(){return qt(),Qx(),JA},N(ba,"LevelHeightProcessor/1",1919),P(1914,1,ni,blt),p.Kf=function(t,i){p7n(this,f(t,121),i)},N(ba,"LevelProcessor",1914),P(1915,1,sr,lYe),p.Mb=function(t){return wt(gt(V(f(t,40),(ei(),s0))))},N(ba,"LevelProcessor/lambda$0$Type",1915),P(1916,1,ni,aYe),p.Kf=function(t,i){YIn(this,f(t,121),i)},p.a=0,N(ba,"NeighborsProcessor",1916),P(1917,1,Rp,cYe),p.Jc=function(t){Vo(this,t)},p.Kc=function(){return qt(),Qx(),JA},N(ba,"NeighborsProcessor/1",1917),P(1922,1,ni,uYe),p.Kf=function(t,i){ZNn(this,f(t,121),i)},p.a=0,N(ba,"NodePositionProcessor",1922),P(1912,1,ni,glt),p.Kf=function(t,i){M9n(this,f(t,121),i)},N(ba,"RootProcessor",1912),P(1942,1,ni,fYe),p.Kf=function(t,i){I4n(f(t,121),i)},N(ba,"Untreeifyer",1942),P(392,22,{3:1,34:1,22:1,392:1},fQ);var m9,uae,XIe,JIe=Wn($M,"EdgeRoutingMode",392,qn,KSn,omn),uNt,y9,y4,fae,YIe,QIe,dae,hae,ZIe,pae,e5e,bae,d5,gae,QV,ZV,fd,Fd,v4,h5,p5,jg,t5e,fNt,wae,s0,v9,_9;P(862,1,Ef,lnt),p.hf=function(t){Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,aCe),""),h4t),"Turns on Tree compaction which decreases the size of the whole tree by placing nodes of multiple levels in one large level"),(cn(),!1)),(Cg(),po)),Li),Mt((Nd(),nn))))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,cCe),""),"Edge End Texture Length"),"Should be set to the length of the texture at the end of an edge. This value can be used to improve the Edge Routing."),7),es),Qi),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,uCe),""),"Tree Level"),"The index for the tree level the node is in"),ot(0)),bl),Ko),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,fCe),""),h4t),"When set to a positive number this option will force the algorithm to place the node to the specified position within the trees layer if weighting is set to constraint"),ot(-1)),bl),Ko),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,dCe),""),"Weighting of Nodes"),"Which weighting to use when computing a node order."),i5e),pi),g5e),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,hCe),""),"Edge Routing Mode"),"Chooses an Edge Routing algorithm."),n5e),pi),JIe),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,pCe),""),"Search Order"),"Which search order to use when computing a spanning tree."),r5e),pi),m5e),Mt(nn)))),nCt((new unt,t))};var dNt,hNt,pNt,n5e,bNt,gNt,r5e,wNt,mNt,i5e;N($M,"MrTreeMetaDataProvider",862),P(1006,1,Ef,unt),p.hf=function(t){nCt(t)};var yNt,o5e,s5e,My,l5e,a5e,mae,vNt,_Nt,SNt,ENt,kNt,RNt,xNt,c5e,u5e,f5e,CNt,tE,ez,d5e,ANt,h5e,yae,TNt,$Nt,INt,p5e,PNt,ip,b5e;N($M,"MrTreeOptions",1006),P(1007,1,{},dYe),p.sf=function(){var t;return t=new Wdt,t},p.tf=function(t){},N($M,"MrTreeOptions/MrtreeFactory",1007),P(353,22,{3:1,34:1,22:1,353:1},MF);var vae,tz,_ae,Sae,g5e=Wn($M,"OrderWeighting",353,qn,tEn,smn),ONt;P(433,22,{3:1,34:1,22:1,433:1},Bwe);var w5e,Eae,m5e=Wn($M,"TreeifyingOrder",433,qn,J_n,lmn),NNt;P(1486,1,$s,fnt),p.rg=function(t){return f(t,121),MNt},p.Kf=function(t,i){fRn(this,f(t,121),i)};var MNt;N("org.eclipse.elk.alg.mrtree.p1treeify","DFSTreeifyer",1486),P(1487,1,$s,dnt),p.rg=function(t){return f(t,121),DNt},p.Kf=function(t,i){m7n(this,f(t,121),i)};var DNt;N(LA,"NodeOrderer",1487),P(1494,1,{},jhn),p.td=function(t){return Kht(t)},N(LA,"NodeOrderer/0methodref$lambda$6$Type",1494),P(1488,1,sr,AYe),p.Mb=function(t){return p3(),wt(gt(V(f(t,40),(ei(),s0))))},N(LA,"NodeOrderer/lambda$0$Type",1488),P(1489,1,sr,TYe),p.Mb=function(t){return p3(),f(V(f(t,40),(Il(),tE)),17).a<0},N(LA,"NodeOrderer/lambda$1$Type",1489),P(1490,1,sr,mot),p.Mb=function(t){return B3n(this.a,f(t,40))},N(LA,"NodeOrderer/lambda$2$Type",1490),P(1491,1,sr,wot),p.Mb=function(t){return N2n(this.a,f(t,40))},N(LA,"NodeOrderer/lambda$3$Type",1491),P(1492,1,cr,$Ye),p.Ne=function(t,i){return c3n(f(t,40),f(i,40))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(LA,"NodeOrderer/lambda$4$Type",1492),P(1493,1,sr,IYe),p.Mb=function(t){return p3(),f(V(f(t,40),(ei(),hae)),17).a!=0},N(LA,"NodeOrderer/lambda$5$Type",1493),P(1495,1,$s,cnt),p.rg=function(t){return f(t,121),LNt},p.Kf=function(t,i){xNn(this,f(t,121),i)},p.b=0;var LNt;N("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1495),P(1496,1,$s,ant),p.rg=function(t){return f(t,121),jNt},p.Kf=function(t,i){aNn(f(t,121),i)};var jNt,kFn=N(lu,"EdgeRouter",1496);P(1498,1,cr,CYe),p.Ne=function(t,i){return Xl(f(t,17).a,f(i,17).a)},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(lu,"EdgeRouter/0methodref$compare$Type",1498),P(1503,1,{},pYe),p.Ye=function(t){return Ae(je(t))},N(lu,"EdgeRouter/1methodref$doubleValue$Type",1503),P(1505,1,cr,bYe),p.Ne=function(t,i){return Qr(Ae(je(t)),Ae(je(i)))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(lu,"EdgeRouter/2methodref$compare$Type",1505),P(1507,1,cr,gYe),p.Ne=function(t,i){return Qr(Ae(je(t)),Ae(je(i)))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(lu,"EdgeRouter/3methodref$compare$Type",1507),P(1509,1,{},hYe),p.Ye=function(t){return Ae(je(t))},N(lu,"EdgeRouter/4methodref$doubleValue$Type",1509),P(1511,1,cr,wYe),p.Ne=function(t,i){return Qr(Ae(je(t)),Ae(je(i)))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(lu,"EdgeRouter/5methodref$compare$Type",1511),P(1513,1,cr,mYe),p.Ne=function(t,i){return Qr(Ae(je(t)),Ae(je(i)))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(lu,"EdgeRouter/6methodref$compare$Type",1513),P(1497,1,{},yYe),p.Kb=function(t){return mb(),f(V(f(t,40),(Il(),ip)),17)},N(lu,"EdgeRouter/lambda$0$Type",1497),P(1508,1,{},vYe),p.Kb=function(t){return q1n(f(t,40))},N(lu,"EdgeRouter/lambda$11$Type",1508),P(1510,1,{},eut),p.Kb=function(t){return Syn(this.b,this.a,f(t,40))},p.a=0,p.b=0,N(lu,"EdgeRouter/lambda$13$Type",1510),P(1512,1,{},tut),p.Kb=function(t){return X1n(this.b,this.a,f(t,40))},p.a=0,p.b=0,N(lu,"EdgeRouter/lambda$15$Type",1512),P(1514,1,cr,_Ye),p.Ne=function(t,i){return l4n(f(t,65),f(i,65))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(lu,"EdgeRouter/lambda$17$Type",1514),P(1515,1,cr,SYe),p.Ne=function(t,i){return a4n(f(t,65),f(i,65))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(lu,"EdgeRouter/lambda$18$Type",1515),P(1516,1,cr,EYe),p.Ne=function(t,i){return u4n(f(t,65),f(i,65))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(lu,"EdgeRouter/lambda$19$Type",1516),P(1499,1,sr,yot),p.Mb=function(t){return fSn(this.a,f(t,40))},p.a=0,N(lu,"EdgeRouter/lambda$2$Type",1499),P(1517,1,cr,kYe),p.Ne=function(t,i){return c4n(f(t,65),f(i,65))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(lu,"EdgeRouter/lambda$20$Type",1517),P(1500,1,cr,RYe),p.Ne=function(t,i){return ayn(f(t,40),f(i,40))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(lu,"EdgeRouter/lambda$3$Type",1500),P(1501,1,cr,xYe),p.Ne=function(t,i){return cyn(f(t,40),f(i,40))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(lu,"EdgeRouter/lambda$4$Type",1501),P(1502,1,{},PYe),p.Kb=function(t){return J1n(f(t,40))},N(lu,"EdgeRouter/lambda$5$Type",1502),P(1504,1,{},nut),p.Kb=function(t){return Eyn(this.b,this.a,f(t,40))},p.a=0,p.b=0,N(lu,"EdgeRouter/lambda$7$Type",1504),P(1506,1,{},rut),p.Kb=function(t){return Y1n(this.b,this.a,f(t,40))},p.a=0,p.b=0,N(lu,"EdgeRouter/lambda$9$Type",1506),P(675,1,{675:1},MSt),p.e=0,p.f=!1,p.g=!1,N(lu,"MultiLevelEdgeNodeNodeGap",675),P(1943,1,cr,OYe),p.Ne=function(t,i){return _Sn(f(t,240),f(i,240))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(lu,"MultiLevelEdgeNodeNodeGap/lambda$0$Type",1943),P(1944,1,cr,NYe),p.Ne=function(t,i){return SSn(f(t,240),f(i,240))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(lu,"MultiLevelEdgeNodeNodeGap/lambda$1$Type",1944);var nE;P(501,22,{3:1,34:1,22:1,501:1,188:1,196:1},Wwe),p.dg=function(){return __t(this)},p.qg=function(){return __t(this)};var nz,rE,y5e=Wn(bCe,"RadialLayoutPhases",501,qn,U_n,amn),FNt;P(1113,205,_w,dat),p.rf=function(t,i){var s,a,c,b,g,m;if(s=s3t(this,t),i.Ug("Radial layout",s.c.length),wt(gt(Qe(t,(H1(),$5e))))||N7((a=new QT((_m(),new hm(t))),a)),m=d6n(t),zr(t,(JS(),nE),m),!m)throw ne(new hn("The given graph is not a tree!"));for(c=Ae(je(Qe(t,oz))),c==0&&(c=BEt(t)),zr(t,oz,c),g=new ee(s3t(this,t));g.a=3)for(Ze=f(Se(Ce,0),27),ut=f(Se(Ce,1),27),b=0;b+2=Ze.f+ut.f+I||ut.f>=Ke.f+Ze.f+I){Dt=!0;break}else++b;else Dt=!0;if(!Dt){for(W=Ce.i,m=new Sn(Ce);m.e!=m.i.gc();)g=f(Cn(m),27),zr(g,(Er(),M9),ot(W)),--W;DRt(t,new Ok),i.Vg();return}for(s=(T7(this.a),Cd(this.a,(uH(),E9),f(Qe(t,o8e),188)),Cd(this.a,sz,f(Qe(t,Z5e),188)),Cd(this.a,Mae,f(Qe(t,n8e),188)),ome(this.a,(ln=new Ki,gr(ln,E9,(_H(),jae)),gr(ln,sz,Lae),wt(gt(Qe(t,Y5e)))&&gr(ln,E9,Dae),ln)),tM(this.a,t)),k=1/s.c.length,z=new ee(s);z.a0&&Vvt((pn(i-1,t.length),t.charCodeAt(i-1)),PAt);)--i;if(a>=i)throw ne(new hn("The given string does not contain any numbers."));if(c=d_((Mo(a,i,t.length),t.substr(a,i-a)),`,|;|\r| -`),c.length!=2)throw ne(new hn("Exactly two numbers are expected, "+c.length+" were found."));try{this.a=o_(s_(c[0])),this.b=o_(s_(c[1]))}catch(b){throw b=mi(b),ve(b,130)?(s=b,ne(new hn(OAt+s))):ne(b)}},p.Ib=function(){return"("+this.a+","+this.b+")"},p.a=0,p.b=0;var wo=N(RM,"KVector",8);P(75,67,{3:1,4:1,20:1,31:1,56:1,16:1,67:1,15:1,75:1,423:1},cc,aF,udt),p.Pc=function(){return Axn(this)},p.cg=function(t){var i,s,a,c,b,g;a=d_(t,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | | -`),wu(this);try{for(s=0,b=0,c=0,g=0;s0&&(b%2==0?c=o_(a[s]):g=o_(a[s]),b>0&&b%2!=0&&hr(this,new tt(c,g)),++b),++s}catch(m){throw m=mi(m),ve(m,130)?(i=m,ne(new hn("The given string does not match the expected format for vectors."+i))):ne(m)}},p.Ib=function(){var t,i,s;for(t=new gu("("),i=Hn(this,0);i.b!=i.d.c;)s=f(Bn(i),8),br(t,s.a+","+s.b),i.b!=i.d.c&&(t.a+="; ");return(t.a+=")",t).a};var H8e=N(RM,"KVectorChain",75);P(255,22,{3:1,34:1,22:1,255:1},k$);var ice,gz,wz,A9,T9,mz,U8e=Wn(Kc,"Alignment",255,qn,Rkn,Pmn),y9t;P(991,1,Ef,_nt),p.hf=function(t){yRt(t)};var G8e,oce,v9t,V8e,z8e,_9t,K8e,S9t,E9t,q8e,X8e,k9t;N(Kc,"BoxLayouterOptions",991),P(992,1,{},HQe),p.sf=function(){var t;return t=new VQe,t},p.tf=function(t){},N(Kc,"BoxLayouterOptions/BoxFactory",992),P(298,22,{3:1,34:1,22:1,298:1},R$);var S5,sce,E5,k5,R5,lce,ace=Wn(Kc,"ContentAlignment",298,qn,xkn,Omn),R9t;P(699,1,Ef,F1e),p.hf=function(t){Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,N4t),""),"Layout Algorithm"),"Select a specific layout algorithm."),(Cg(),oE)),_t),Mt((Nd(),nn))))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,M4t),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),bh),CFn),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,jxe),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),J8e),pi),U8e),Mt(lo)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,j3),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),es),Qi),Mt(nn)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,YCe),""),"Bend Points"),"A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points."),bh),H8e),Mt(op)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,HU),""),"Content Alignment"),"Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option."),Q8e),sR),ace),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,TM),""),"Debug Mode"),"Whether additional debug information shall be generated."),(cn(),!1)),po),Li),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,zie),""),mRe),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),Z8e),pi),C5),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,AM),""),"Edge Routing"),"What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline."),nPe),pi),Sce),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,XCe),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),po),Li),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,WU),""),"Hierarchy Handling"),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),oPe),pi),VPe),ii(nn,se(ie(Mp,1),Je,170,0,[lo]))))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,fy),""),"Padding"),"The padding to be left to a parent element's border when placing child elements. This can also serve as an output option of a layout algorithm if node size calculation is setup appropriately."),pPe),bh),bTe),ii(nn,se(ie(Mp,1),Je,170,0,[lo]))))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,uI),""),"Interactive"),"Whether the algorithm should be run in interactive mode for the content of a parent node. What this means exactly depends on how the specific algorithm interprets this option. Usually in the interactive mode algorithms try to modify the current layout as little as possible."),!1),po),Li),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,GU),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),po),Li),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,fI),""),"Omit Node Micro Layout"),"Node micro layout comprises the computation of node dimensions (if requested), the placement of ports and their labels, and the placement of node labels. The functionality is implemented independent of any specific layout algorithm and shouldn't have any negative impact on the layout algorithm's performance itself. Yet, if any unforeseen behavior occurs, this option allows to deactivate the micro layout."),!1),po),Li),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,die),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),yPe),pi),qPe),Mt(lo)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,UU),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),bh),wo),ii(lo,se(ie(Mp,1),Je,170,0,[Bw,Fg]))))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,yM),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),bl),Ko),ii(lo,se(ie(Mp,1),Je,170,0,[op]))))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,EU),""),"Randomization Seed"),"Seed used for pseudo-random number generators to control the layout algorithm. If the value is 0, the seed shall be determined pseudo-randomly (e.g. from the system time)."),bl),Ko),Mt(nn)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,cI),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),po),Li),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Xxe),""),"Junction Points"),"This option is not used as option, but as output of the layout algorithms. It is attached to edges and determines the points where junction symbols should be drawn in order to represent hyperedges with orthogonal routing. Whether such points are computed depends on the chosen layout algorithm and edge routing style. The points are put into the vector chain with no specific order."),sPe),bh),H8e),Mt(op)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Qxe),""),"Comment Box"),"Whether the node should be regarded as a comment box instead of a regular node. In that case its placement should be similar to how labels are handled. Any edges incident to a comment box specify to which graph elements the comment is related."),!1),po),Li),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Zxe),""),"Hypernode"),"Whether the node should be handled as a hypernode."),!1),po),Li),Mt(lo)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,eFn),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),bh),PFn),ii(nn,se(ie(Mp,1),Je,170,0,[Fg]))))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,tCe),""),"Margins"),"Margins define additional space around the actual bounds of a graph element. For instance, ports or labels being placed on the outside of a node's border might introduce such a margin. The margin is used to guarantee non-overlap of other graph elements with those ports or labels."),lPe),bh),pTe),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Dxe),""),"No Layout"),"No layout is done for the associated element. This is used to mark parts of a diagram to avoid their inclusion in the layout graph, or to mark parts of the layout graph to prevent layout engines from processing them. If you wish to exclude the contents of a compound node from automatic layout, while the node itself is still considered on its own layer, use the 'Fixed Layout' algorithm for that node."),!1),po),Li),ii(lo,se(ie(Mp,1),Je,170,0,[op,Bw,Fg]))))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,D4t),""),"Scale Factor"),"The scaling factor to be applied to the corresponding node in recursive layout. It causes the corresponding node's size to be adjusted, and its ports and labels to be sized and placed accordingly after the layout of that node has been determined (and before the node itself and its siblings are arranged). The scaling is not reverted afterwards, so the resulting layout graph contains the adjusted size and position data. This option is currently not supported if 'Layout Hierarchy' is set."),1),es),Qi),Mt(lo)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,L4t),""),"Child Area Width"),"The width of the area occupied by the laid out children of a node."),es),Qi),Mt(nn)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,j4t),""),"Child Area Height"),"The height of the area occupied by the laid out children of a node."),es),Qi),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,vM),""),T4t),"Turns topdown layout on and off. If this option is enabled, hierarchical layout will be computed first for the root node and then for its children recursively. Layouts are then scaled down to fit the area provided by their parents. Graphs must follow a certain structure for topdown layout to work properly. {@link TopdownNodeTypes.PARALLEL_NODE} nodes must have children of type {@link TopdownNodeTypes.HIERARCHICAL_NODE} and must define {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} for their children. Furthermore they need to be laid out using an algorithm that is a {@link TopdownLayoutProvider}. Hierarchical nodes can also be parents of other hierarchical nodes and can optionally use a {@link TopdownSizeApproximator} to dynamically set sizes during topdown layout. In this case {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} should be set on the node itself rather than the parent. The values are then used by the size approximator as base values. Hierarchical nodes require the layout option {@link nodeSize.fixedGraphSize} to be true to prevent the algorithm used there from resizing the hierarchical node. This option is not supported if 'Hierarchy Handling' is set to 'INCLUDE_CHILDREN'"),!1),po),Li),Mt(nn)))),qi(t,vM,dy,null),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,F4t),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),!0),po),Li),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,B4t),""),"Animation Time Factor"),"Factor for computation of animation time. The higher the value, the longer the animation time. If the value is 0, the resulting time is always equal to the minimum defined by 'Minimal Animation Time'."),ot(100)),bl),Ko),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,W4t),""),"Layout Ancestors"),"Whether the hierarchy levels on the path from the selected element to the root of the diagram shall be included in the layout process."),!1),po),Li),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,H4t),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),ot(4e3)),bl),Ko),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,U4t),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),ot(400)),bl),Ko),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,G4t),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),po),Li),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,V4t),""),"Validate Graph"),"Whether the graph shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!1),po),Li),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,z4t),""),"Validate Options"),"Whether layout options shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!0),po),Li),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,K4t),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),!1),po),Li),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,JCe),"box"),"Box Layout Mode"),"Configures the packing mode used by the {@link BoxLayoutProvider}. If SIMPLE is not required (neither priorities are used nor the interactive mode), GROUP_DEC can improve the packing and decrease the area. GROUP_MIXED and GROUP_INC may, in very specific scenarios, work better."),Y8e),pi),iOe),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Rxe),uh),"Comment Comment Spacing"),"Spacing to be preserved between a comment box and other comment boxes connected to the same node. The space left between comment boxes of different nodes is controlled by the node-node spacing."),10),es),Qi),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,xxe),uh),"Comment Node Spacing"),"Spacing to be preserved between a node and its connected comment boxes. The space left between a node and the comments of another node is controlled by the node-node spacing."),10),es),Qi),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,oie),uh),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),es),Qi),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Cxe),uh),"Edge Spacing"),"Spacing to be preserved between any two edges. Note that while this can somewhat easily be satisfied for the segments of orthogonally drawn edges, it is harder for general polylines or splines."),10),es),Qi),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,fie),uh),"Edge Label Spacing"),"The minimal distance to be preserved between a label and the edge it is associated with. Note that the placement of a label is influenced by the 'edgelabels.placement' option."),2),es),Qi),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Vie),uh),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),es),Qi),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Axe),uh),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),es),Qi),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Ixe),uh),"Label Node Spacing"),"Spacing to be preserved between labels and the border of node they are associated with. Note that the placement of a label is influenced by the 'nodelabels.placement' option."),5),es),Qi),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Txe),uh),"Horizontal spacing between Label and Port"),"Horizontal spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),es),Qi),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,$xe),uh),"Vertical spacing between Label and Port"),"Vertical spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),es),Qi),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,m_),uh),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),es),Qi),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Pxe),uh),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),es),Qi),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Oxe),uh),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),es),Qi),ii(nn,se(ie(Mp,1),Je,170,0,[lo]))))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,Nxe),uh),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),bh),dDt),ii(lo,se(ie(Mp,1),Je,170,0,[op,Bw,Fg]))))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,nCe),uh),"Additional Port Space"),"Additional space around the sets of ports on each node side. For each side of a node, this option can reserve additional space before and after the ports on each side. For example, a top spacing of 20 makes sure that the first port on the western and eastern side is 20 units away from the northern border."),$Pe),bh),pTe),Mt(nn)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,qie),J4t),"Layout Partition"),"Partition to which the node belongs. This requires Layout Partitioning to be active. Nodes with lower partition IDs will appear to the left of nodes with higher partition IDs (assuming a left-to-right layout direction)."),bl),Ko),ii(nn,se(ie(Mp,1),Je,170,0,[lo]))))),qi(t,qie,Kie,N9t),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Kie),J4t),"Layout Partitioning"),"Whether to activate partitioned layout. This will allow to group nodes through the Layout Partition option. a pair of nodes with different partition indices is then placed such that the node with lower index is placed to the left of the other node (with left-to-right layout direction). Depending on the layout algorithm, this may only be guaranteed to work if all nodes have a layout partition configured, or at least if edges that cross partitions are not part of a partition-crossing cycle."),bPe),po),Li),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Wxe),Y4t),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),cPe),bh),bTe),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,NA),Y4t),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),uPe),sR),Ps),ii(lo,se(ie(Mp,1),Je,170,0,[Fg]))))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Gxe),eG),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),wPe),pi),I5),Mt(lo)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,Vxe),eG),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),pi),I5),Mt(lo)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,zxe),eG),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),pi),I5),Mt(lo)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,Kxe),eG),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),pi),I5),Mt(lo)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,qxe),eG),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),pi),I5),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,A2),goe),"Node Size Constraints"),"What should be taken into account when calculating a node's size. Empty size constraints specify that a node's size is already fixed and should not be changed."),fPe),sR),N5),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,F3),goe),"Node Size Options"),"Options modifying the behavior of the size constraints set on a node. Each member of the set specifies something that should be taken into account when calculating node sizes. The empty set corresponds to no further modifications."),hPe),sR),JPe),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,B3),goe),"Node Size Minimum"),"The minimal size to which a node can be reduced."),dPe),bh),wo),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,OA),goe),"Fixed Graph Size"),"By default, the fixed layout provider will enlarge a graph until it is large enough to contain its children. If this option is set, it won't do so."),!1),po),Li),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Jxe),Gie),"Edge Label Placement"),"Gives a hint on where to put edge labels."),ePe),pi),OPe),Mt(Fg)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,kU),Gie),"Inline Edge Labels"),"If true, an edge label is placed directly on its edge. May only apply to center edge labels. This kind of label placement is only advisable if the label's rendering is such that it is not crossed by its edge and thus stays legible."),!1),po),Li),Mt(Fg)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,tFn),"font"),"Font Name"),"Font name used for a label."),oE),_t),Mt(Fg)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,q4t),"font"),"Font Size"),"Font size used for a label."),bl),Ko),Mt(Fg)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,eCe),woe),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),bh),wo),Mt(Bw)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,Yxe),woe),"Port Index"),"The index of a port in the fixed order around a node. The order is assumed as clockwise, starting with the leftmost port on the top side. This option must be set if 'Port Constraints' is set to FIXED_ORDER and no specific positions are given for the ports. Additionally, the option 'Port Side' must be defined in this case."),bl),Ko),Mt(Bw)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Lxe),woe),"Port Side"),"The side of a node on which a port is situated. This option must be set if 'Port Constraints' is set to FIXED_SIDE or FIXED_ORDER and no specific positions are given for the ports."),SPe),pi),vs),Mt(Bw)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,Mxe),woe),"Port Border Offset"),"The offset of ports on the node border. With a positive offset the port is moved outside of the node, while with a negative offset the port is moved towards the inside. An offset of 0 means that the port is placed directly on the node border, i.e. if the port side is north, the port's south border touches the nodes's north border; if the port side is east, the port's west border touches the nodes's east border; if the port side is south, the port's north border touches the node's south border; if the port side is west, the port's east border touches the node's west border."),es),Qi),Mt(Bw)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,MA),eAe),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),vPe),sR),kz),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Hxe),eAe),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),!1),po),Li),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Uxe),eAe),"Treat Port Labels as Group"),"If this option is true (default), the labels of a port will be treated as a group when it comes to centering them next to their port. If this option is false, only the first label will be centered next to the port, with the others being placed below. This only applies to labels of eastern and western ports and will have no effect if labels are not placed next to their port."),!0),po),Li),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,_M),PM),"Topdown Scale Factor"),"The scaling factor to be applied to the nodes laid out within the node in recursive topdown layout. The difference to 'Scale Factor' is that the node itself is not scaled. This value has to be set on hierarchical nodes."),1),es),Qi),Mt(nn)))),qi(t,_M,dy,H9t),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,QCe),PM),"Topdown Size Approximator"),"The size approximator to be used to set sizes of hierarchical nodes during topdown layout. The default value is null, which results in nodes keeping whatever size is defined for them e.g. through parent parallel node or by manually setting the size."),null),pi),$z),Mt(lo)))),qi(t,QCe,dy,U9t),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,SM),PM),"Topdown Hierarchical Node Width"),"The fixed size of a hierarchical node when using topdown layout. If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),150),es),Qi),ii(nn,se(ie(Mp,1),Je,170,0,[lo]))))),qi(t,SM,dy,null),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,EM),PM),"Topdown Hierarchical Node Aspect Ratio"),"The fixed aspect ratio of a hierarchical node when using topdown layout. Default is 1/sqrt(2). If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),1.414),es),Qi),ii(nn,se(ie(Mp,1),Je,170,0,[lo]))))),qi(t,EM,dy,null),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,dy),PM),"Topdown Node Type"),"The different node types used for topdown layout. If the node type is set to {@link TopdownNodeTypes.PARALLEL_NODE} the algorithm must be set to a {@link TopdownLayoutProvider} such as {@link TopdownPacking}. The {@link nodeSize.fixedGraphSize} option is technically only required for hierarchical nodes."),null),pi),QPe),Mt(lo)))),qi(t,dy,OA,null),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,ZCe),PM),"Topdown Scale Cap"),"Determines the upper limit for the topdown scale factor. The default value is 1.0 which ensures that nested children never end up appearing larger than their parents in terms of unit sizes such as the font size. If the limit is larger, nodes will fully utilize the available space, but it is counteriniuitive for inner nodes to have a larger scale than outer nodes."),1),es),Qi),Mt(nn)))),qi(t,ZCe,dy,W9t),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Fxe),Q4t),"Activate Inside Self Loops"),"Whether this node allows to route self loops inside of it instead of around it. If set to true, this will make the node a compound node if it isn't already, and will require the layout algorithm to support compound nodes with hierarchical ports."),!1),po),Li),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Bxe),Q4t),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),!1),po),Li),Mt(op)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,sie),"edge"),"Edge Thickness"),"The thickness of an edge. This is a hint on the line width used to draw an edge, possibly requiring more space to be reserved for it."),1),es),Qi),Mt(op)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,X4t),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),iPe),pi),FPe),Mt(op)))),p$(t,new l3(c$(Kx(zx(new Ak,vn),"Layered"),'The layer-based method was introduced by Sugiyama, Tagawa and Toda in 1981. It emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers, which are sometimes called "hierarchies", and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.'))),p$(t,new l3(c$(Kx(zx(new Ak,"org.eclipse.elk.orthogonal"),"Orthogonal"),`Orthogonal methods that follow the "topology-shape-metrics" approach by Batini, Nardelli and Tamassia '86. The first phase determines the topology of the drawing by applying a planarization technique, which results in a planar representation of the graph. The orthogonal shape is computed in the second phase, which aims at minimizing the number of edge bends, and is called orthogonalization. The third phase leads to concrete coordinates for nodes and edge bend points by applying a compaction method, thus defining the metrics.`))),p$(t,new l3(c$(Kx(zx(new Ak,Ba),"Force"),"Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. The first successful method of this kind was proposed by Eades in 1984."))),p$(t,new l3(c$(Kx(zx(new Ak,"org.eclipse.elk.circle"),"Circle"),"Circular layout algorithms emphasize cycles or biconnected components of a graph by arranging them in circles. This is useful if a drawing is desired where such components are clearly grouped, or where cycles are shown as prominent OPTIONS of the graph."))),p$(t,new l3(c$(Kx(zx(new Ak,p4t),"Tree"),"Specialized layout methods for trees, i.e. acyclic graphs. The regular structure of graphs that have no undirected cycles can be emphasized using an algorithm of this type."))),p$(t,new l3(c$(Kx(zx(new Ak,"org.eclipse.elk.planar"),"Planar"),"Algorithms that require a planar or upward planar graph. Most of these algorithms are theoretically interesting, but not practically usable."))),p$(t,new l3(c$(Kx(zx(new Ak,rf),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),iRt((new Snt,t)),yRt((new _nt,t)),P3t((new Ent,t))};var S4,x9t,J8e,sE,C9t,A9t,Y8e,lE,aE,T9t,$9,Q8e,I9,Ww,Z8e,cce,uce,ePe,tPe,nPe,rPe,iPe,$9t,cE,oPe,I9t,P9,fce,O9,dce,Dy,sPe,E4,lPe,aPe,cPe,uE,uPe,Hw,fPe,V_,fE,dPe,l0,hPe,yz,N9,Bg,pPe,P9t,bPe,O9t,N9t,gPe,wPe,hce,pce,bce,gce,mPe,qc,x5,yPe,wce,mce,z_,vPe,_Pe,dE,SPe,lR,M9,yce,hE,M9t,vce,D9t,L9t,EPe,j9t,kPe,RPe,aR,xPe,vz,CPe,APe,Uw,F9t,TPe,$Pe,IPe,_z,D9,k4,cR,B9t,W9t,Sz,H9t,PPe,U9t;N(Kc,"CoreOptions",699),P(88,22,{3:1,34:1,22:1,88:1},i7);var gh,Js,al,wh,cf,C5=Wn(Kc,mRe,88,qn,$En,Nmn),G9t;P(278,22,{3:1,34:1,22:1,278:1},yQ);var R4,K_,x4,OPe=Wn(Kc,"EdgeLabelPlacement",278,qn,o2n,Mmn),V9t;P(223,22,{3:1,34:1,22:1,223:1},LF);var C4,L9,uR,_ce,Sce=Wn(Kc,"EdgeRouting",223,qn,oEn,Dmn),z9t;P(321,22,{3:1,34:1,22:1,321:1},x$);var NPe,MPe,DPe,LPe,Ece,jPe,FPe=Wn(Kc,"EdgeType",321,qn,kkn,Lmn),K9t;P(989,1,Ef,Snt),p.hf=function(t){iRt(t)};var BPe,WPe,HPe,UPe,q9t,GPe,A5;N(Kc,"FixedLayouterOptions",989),P(990,1,{},UQe),p.sf=function(){var t;return t=new eZe,t},p.tf=function(t){},N(Kc,"FixedLayouterOptions/FixedFactory",990),P(346,22,{3:1,34:1,22:1,346:1},vQ);var Wg,Ez,T5,VPe=Wn(Kc,"HierarchyHandling",346,qn,r2n,jmn),X9t;P(291,22,{3:1,34:1,22:1,291:1},jF);var Dp,a0,j9,F9,J9t=Wn(Kc,"LabelSide",291,qn,iEn,Fmn),Y9t;P(95,22,{3:1,34:1,22:1,95:1},jS);var Nb,dd,Tf,hd,Iu,pd,$f,Lp,bd,Ps=Wn(Kc,"NodeLabelPlacement",95,qn,R3n,Bmn),Q9t;P(256,22,{3:1,34:1,22:1,256:1},o7);var zPe,$5,c0,KPe,B9,I5=Wn(Kc,"PortAlignment",256,qn,VEn,Wmn),Z9t;P(101,22,{3:1,34:1,22:1,101:1},C$);var Gw,ya,jp,A4,mh,u0,qPe=Wn(Kc,"PortConstraints",101,qn,Ekn,Hmn),eDt;P(279,22,{3:1,34:1,22:1,279:1},A$);var P5,O5,Mb,W9,f0,fR,kz=Wn(Kc,"PortLabelPlacement",279,qn,Skn,Umn),tDt;P(64,22,{3:1,34:1,22:1,64:1},s7);var _n,bn,uf,ff,ec,Ua,yh,gd,Oc,vc,va,Nc,tc,nc,wd,Pu,Ou,If,jn,Cl,wn,vs=Wn(Kc,"PortSide",64,qn,IEn,Gmn),nDt;P(993,1,Ef,Ent),p.hf=function(t){P3t(t)};var rDt,iDt,XPe,oDt,sDt;N(Kc,"RandomLayouterOptions",993),P(994,1,{},GQe),p.sf=function(){var t;return t=new YQe,t},p.tf=function(t){},N(Kc,"RandomLayouterOptions/RandomFactory",994),P(386,22,{3:1,34:1,22:1,386:1},FF);var q_,H9,U9,Vw,N5=Wn(Kc,"SizeConstraint",386,qn,rEn,Vmn),lDt;P(264,22,{3:1,34:1,22:1,264:1},FS);var G9,Rz,T4,kce,V9,M5,xz,Cz,Az,JPe=Wn(Kc,"SizeOptions",264,qn,L3n,zmn),aDt;P(280,22,{3:1,34:1,22:1,280:1},_Q);var X_,YPe,Tz,QPe=Wn(Kc,"TopdownNodeTypes",280,qn,s2n,Kmn),cDt;P(347,22,tAe);var ZPe,eOe,$z=Wn(Kc,"TopdownSizeApproximator",347,qn,tSn,Xmn);P(987,347,tAe,zht),p.Tg=function(t){return SSt(t)},Wn(Kc,"TopdownSizeApproximator/1",987,$z,null,null),P(988,347,tAe,Ipt),p.Tg=function(t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ut,Dt,Nt,ln;for(i=f(Qe(t,(Er(),hE)),143),ut=(v1(),U=new r$,U),VN(ut,t),Dt=new Fn,b=new Sn((!t.a&&(t.a=new qe($r,t,10,11)),t.a));b.e!=b.i.gc();)a=f(Cn(b),27),_e=(W=new r$,W),VH(_e,ut),VN(_e,a),ln=SSt(a),GS(_e,h.Math.max(a.g,ln.a),h.Math.max(a.f,ln.b)),Ca(Dt.f,a,_e);for(c=new Sn((!t.a&&(t.a=new qe($r,t,10,11)),t.a));c.e!=c.i.gc();)for(a=f(Cn(c),27),I=new Sn((!a.e&&(a.e=new en(Fi,a,7,4)),a.e));I.e!=I.i.gc();)k=f(Cn(I),74),Ke=f(tl(xs(Dt.f,a)),27),Ze=f(En(Dt,Se((!k.c&&(k.c=new en(Dn,k,5,8)),k.c),0)),27),Ce=(D=new QJ,D),zn((!Ce.b&&(Ce.b=new en(Dn,Ce,4,7)),Ce.b),Ke),zn((!Ce.c&&(Ce.c=new en(Dn,Ce,5,8)),Ce.c),Ze),GH(Ce,di(Ke)),VN(Ce,k);X=f(O7(i.f),205);try{X.rf(ut,new rZe),abt(i.f,X)}catch(an){throw an=mi(an),ve(an,103)?(z=an,ne(z)):ne(an)}return eh(ut,aE)||eh(ut,lE)||W3e(ut),_=Ae(je(Qe(ut,aE))),m=Ae(je(Qe(ut,lE))),g=_/m,s=Ae(je(Qe(ut,D9)))*h.Math.sqrt((!ut.a&&(ut.a=new qe($r,ut,10,11)),ut.a).i),Nt=f(Qe(ut,Bg),107),ge=Nt.b+Nt.c+1,oe=Nt.d+Nt.a+1,new tt(h.Math.max(ge,s),h.Math.max(oe,s/g))},Wn(Kc,"TopdownSizeApproximator/2",988,$z,null,null);var uDt;P(344,1,{871:1},Ok),p.Ug=function(t,i){return M2t(this,t,i)},p.Vg=function(){iEt(this)},p.Wg=function(){return this.q},p.Xg=function(){return this.f?DZ(this.f):null},p.Yg=function(){return DZ(this.a)},p.Zg=function(){return this.p},p.$g=function(){return!1},p._g=function(){return this.n},p.ah=function(){return this.p!=null&&!this.b},p.bh=function(t){var i;this.n&&(i=t,lt(this.f,i))},p.dh=function(t,i){var s,a;this.n&&t&&_2n(this,(s=new Upt,a=Bne(s,t),nLn(s),a),(JW(),xce))},p.eh=function(t){var i;return this.b?null:(i=s3n(this,this.g),hr(this.a,i),i.i=this,this.d=t,i)},p.fh=function(t){t>0&&!this.b&&iSe(this,t)},p.b=!1,p.c=0,p.d=-1,p.e=null,p.f=null,p.g=-1,p.j=!1,p.k=!1,p.n=!1,p.o=0,p.q=0,p.r=0,N(Ol,"BasicProgressMonitor",344),P(717,205,_w,VQe),p.rf=function(t,i){DRt(t,i)},N(Ol,"BoxLayoutProvider",717),P(983,1,cr,Iot),p.Ne=function(t,i){return nOn(this,f(t,27),f(i,27))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},p.a=!1,N(Ol,"BoxLayoutProvider/1",983),P(163,1,{163:1},CW,gdt),p.Ib=function(){return this.c?r3e(this.c):B1(this.b)},N(Ol,"BoxLayoutProvider/Group",163),P(320,22,{3:1,34:1,22:1,320:1},BF);var tOe,nOe,rOe,Rce,iOe=Wn(Ol,"BoxLayoutProvider/PackingMode",320,qn,sEn,Jmn),fDt;P(984,1,cr,zQe),p.Ne=function(t,i){return __n(f(t,163),f(i,163))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(Ol,"BoxLayoutProvider/lambda$0$Type",984),P(985,1,cr,KQe),p.Ne=function(t,i){return h_n(f(t,163),f(i,163))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(Ol,"BoxLayoutProvider/lambda$1$Type",985),P(986,1,cr,qQe),p.Ne=function(t,i){return p_n(f(t,163),f(i,163))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(Ol,"BoxLayoutProvider/lambda$2$Type",986),P(1384,1,{845:1},XQe),p.Mg=function(t,i){return wF(),!ve(i,167)||wat((g3(),f(t,167)),i)},N(Ol,"ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type",1384),P(1385,1,Rn,Pot),p.Cd=function(t){Ixn(this.a,f(t,149))},N(Ol,"ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type",1385),P(1386,1,Rn,QQe),p.Cd=function(t){f(t,96),wF()},N(Ol,"ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type",1386),P(1390,1,Rn,Oot),p.Cd=function(t){Z3n(this.a,f(t,96))},N(Ol,"ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type",1390),P(1388,1,sr,lut),p.Mb=function(t){return dxn(this.a,this.b,f(t,149))},N(Ol,"ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type",1388),P(1387,1,sr,aut),p.Mb=function(t){return K1n(this.a,this.b,f(t,845))},N(Ol,"ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type",1387),P(1389,1,Rn,cut),p.Cd=function(t){svn(this.a,this.b,f(t,149))},N(Ol,"ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type",1389),P(947,1,{},ZQe),p.Kb=function(t){return ift(t)},p.Fb=function(t){return this===t},N(Ol,"ElkUtil/lambda$0$Type",947),P(948,1,Rn,uut),p.Cd=function(t){o8n(this.a,this.b,f(t,74))},p.a=0,p.b=0,N(Ol,"ElkUtil/lambda$1$Type",948),P(949,1,Rn,fut),p.Cd=function(t){Jpn(this.a,this.b,f(t,166))},p.a=0,p.b=0,N(Ol,"ElkUtil/lambda$2$Type",949),P(950,1,Rn,dut),p.Cd=function(t){Vgn(this.a,this.b,f(t,135))},p.a=0,p.b=0,N(Ol,"ElkUtil/lambda$3$Type",950),P(951,1,Rn,Not),p.Cd=function(t){Cyn(this.a,f(t,377))},N(Ol,"ElkUtil/lambda$4$Type",951),P(325,1,{34:1,325:1},xpn),p.Fd=function(t){return v1n(this,f(t,242))},p.Fb=function(t){var i;return ve(t,325)?(i=f(t,325),this.a==i.a):!1},p.Hb=function(){return oo(this.a)},p.Ib=function(){return this.a+" (exclusive)"},p.a=0,N(Ol,"ExclusiveBounds/ExclusiveLowerBound",325),P(1119,205,_w,eZe),p.rf=function(t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ut,Dt,Nt;for(i.Ug("Fixed Layout",1),b=f(Qe(t,(Er(),tPe)),223),D=0,W=0,_e=new Sn((!t.a&&(t.a=new qe($r,t,10,11)),t.a));_e.e!=_e.i.gc();){for(oe=f(Cn(_e),27),Nt=f(Qe(oe,(YW(),A5)),8),Nt&&(Wu(oe,Nt.a,Nt.b),f(Qe(oe,WPe),181).Hc((su(),q_))&&(U=f(Qe(oe,UPe),8),U.a>0&&U.b>0&&ly(oe,U.a,U.b,!0,!0))),D=h.Math.max(D,oe.i+oe.g),W=h.Math.max(W,oe.j+oe.f),k=new Sn((!oe.n&&(oe.n=new qe(Fs,oe,1,7)),oe.n));k.e!=k.i.gc();)m=f(Cn(k),135),Nt=f(Qe(m,A5),8),Nt&&Wu(m,Nt.a,Nt.b),D=h.Math.max(D,oe.i+m.i+m.g),W=h.Math.max(W,oe.j+m.j+m.f);for(Ze=new Sn((!oe.c&&(oe.c=new qe(Mc,oe,9,9)),oe.c));Ze.e!=Ze.i.gc();)for(Ke=f(Cn(Ze),123),Nt=f(Qe(Ke,A5),8),Nt&&Wu(Ke,Nt.a,Nt.b),ut=oe.i+Ke.i,Dt=oe.j+Ke.j,D=h.Math.max(D,ut+Ke.g),W=h.Math.max(W,Dt+Ke.f),_=new Sn((!Ke.n&&(Ke.n=new qe(Fs,Ke,1,7)),Ke.n));_.e!=_.i.gc();)m=f(Cn(_),135),Nt=f(Qe(m,A5),8),Nt&&Wu(m,Nt.a,Nt.b),D=h.Math.max(D,ut+m.i+m.g),W=h.Math.max(W,Dt+m.j+m.f);for(c=new kn(xn(Rb(oe).a.Kc(),new O));Un(c);)s=f(On(c),74),I=Jxt(s),D=h.Math.max(D,I.a),W=h.Math.max(W,I.b);for(a=new kn(xn(GN(oe).a.Kc(),new O));Un(a);)s=f(On(a),74),di(Sp(s))!=t&&(I=Jxt(s),D=h.Math.max(D,I.a),W=h.Math.max(W,I.b))}if(b==(_b(),C4))for(ge=new Sn((!t.a&&(t.a=new qe($r,t,10,11)),t.a));ge.e!=ge.i.gc();)for(oe=f(Cn(ge),27),a=new kn(xn(Rb(oe).a.Kc(),new O));Un(a);)s=f(On(a),74),g=lMn(s),g.b==0?zr(s,Dy,null):zr(s,Dy,g);wt(gt(Qe(t,(YW(),HPe))))||(Ce=f(Qe(t,q9t),107),X=D+Ce.b+Ce.c,z=W+Ce.d+Ce.a,ly(t,X,z,!0,!0)),i.Vg()},N(Ol,"FixedLayoutProvider",1119),P(385,137,{3:1,423:1,385:1,96:1,137:1},YJ,qwt),p.cg=function(t){var i,s,a,c,b,g,m,_,k;if(t)try{for(_=d_(t,";,;"),b=_,g=0,m=b.length;g>16&Ji|i^a<<16},p.Kc=function(){return new Mot(this)},p.Ib=function(){return this.a==null&&this.b==null?"pair(null,null)":this.a==null?"pair(null,"+dl(this.b)+")":this.b==null?"pair("+dl(this.a)+",null)":"pair("+dl(this.a)+","+dl(this.b)+")"},N(Ol,"Pair",42),P(995,1,ko,Mot),p.Nb=function(t){Uo(this,t)},p.Ob=function(){return!this.c&&(!this.b&&this.a.a!=null||this.a.b!=null)},p.Pb=function(){if(!this.c&&!this.b&&this.a.a!=null)return this.b=!0,this.a.a;if(!this.c&&this.a.b!=null)return this.c=!0,this.a.b;throw ne(new yl)},p.Qb=function(){throw this.c&&this.a.b!=null?this.a.b=null:this.b&&this.a.a!=null&&(this.a.a=null),ne(new ac)},p.b=!1,p.c=!1,N(Ol,"Pair/1",995),P(455,1,{455:1},kbt),p.Fb=function(t){return Ul(this.a,f(t,455).a)&&Ul(this.c,f(t,455).c)&&Ul(this.d,f(t,455).d)&&Ul(this.b,f(t,455).b)},p.Hb=function(){return wN(se(ie(ho,1),on,1,5,[this.a,this.c,this.d,this.b]))},p.Ib=function(){return"("+this.a+ds+this.c+ds+this.d+ds+this.b+")"},N(Ol,"Quadruple",455),P(1108,205,_w,YQe),p.rf=function(t,i){var s,a,c,b,g;if(i.Ug("Random Layout",1),(!t.a&&(t.a=new qe($r,t,10,11)),t.a).i==0){i.Vg();return}b=f(Qe(t,(P2e(),oDt)),17),b&&b.a!=0?c=new sW(b.a):c=new Ete,s=LO(je(Qe(t,rDt))),g=LO(je(Qe(t,sDt))),a=f(Qe(t,iDt),107),RLn(t,c,s,g,a),i.Vg()},N(Ol,"RandomLayoutProvider",1108),P(240,1,{240:1},YQ),p.Fb=function(t){return Ul(this.a,f(t,240).a)&&Ul(this.b,f(t,240).b)&&Ul(this.c,f(t,240).c)},p.Hb=function(){return wN(se(ie(ho,1),on,1,5,[this.a,this.b,this.c]))},p.Ib=function(){return"("+this.a+ds+this.b+ds+this.c+")"},N(Ol,"Triple",240);var bDt;P(562,1,{}),p.Lf=function(){return new tt(this.f.i,this.f.j)},p.of=function(t){return Qbt(t,(Er(),qc))?Qe(this.f,gDt):Qe(this.f,t)},p.Mf=function(){return new tt(this.f.g,this.f.f)},p.Nf=function(){return this.g},p.pf=function(t){return eh(this.f,t)},p.Of=function(t){Da(this.f,t.a),La(this.f,t.b)},p.Pf=function(t){zm(this.f,t.a),Vm(this.f,t.b)},p.Qf=function(t){this.g=t},p.g=0;var gDt;N(vI,"ElkGraphAdapters/AbstractElkGraphElementAdapter",562),P(563,1,{853:1},Xj),p.Rf=function(){var t,i;if(!this.b)for(this.b=nW(FB(this.a).i),i=new Sn(FB(this.a));i.e!=i.i.gc();)t=f(Cn(i),135),lt(this.b,new CY(t));return this.b},p.b=null,N(vI,"ElkGraphAdapters/ElkEdgeAdapter",563),P(289,562,{},hm),p.Sf=function(){return GSt(this)},p.a=null,N(vI,"ElkGraphAdapters/ElkGraphAdapter",289),P(640,562,{187:1},CY),N(vI,"ElkGraphAdapters/ElkLabelAdapter",640),P(639,562,{695:1},MQ),p.Rf=function(){return dTn(this)},p.Vf=function(){var t;return t=f(Qe(this.f,(Er(),E4)),140),!t&&(t=new n$),t},p.Xf=function(){return hTn(this)},p.Zf=function(t){var i;i=new ZQ(t),zr(this.f,(Er(),E4),i)},p.$f=function(t){zr(this.f,(Er(),Bg),new Sye(t))},p.Tf=function(){return this.d},p.Uf=function(){var t,i;if(!this.a)for(this.a=new st,i=new kn(xn(GN(f(this.f,27)).a.Kc(),new O));Un(i);)t=f(On(i),74),lt(this.a,new Xj(t));return this.a},p.Wf=function(){var t,i;if(!this.c)for(this.c=new st,i=new kn(xn(Rb(f(this.f,27)).a.Kc(),new O));Un(i);)t=f(On(i),74),lt(this.c,new Xj(t));return this.c},p.Yf=function(){return GB(f(this.f,27)).i!=0||wt(gt(f(this.f,27).of((Er(),P9))))},p._f=function(){Vkn(this,(_m(),bDt))},p.a=null,p.b=null,p.c=null,p.d=null,p.e=null,N(vI,"ElkGraphAdapters/ElkNodeAdapter",639),P(1284,562,{852:1},Dot),p.Rf=function(){return _Tn(this)},p.Uf=function(){var t,i;if(!this.a)for(this.a=pp(f(this.f,123).hh().i),i=new Sn(f(this.f,123).hh());i.e!=i.i.gc();)t=f(Cn(i),74),lt(this.a,new Xj(t));return this.a},p.Wf=function(){var t,i;if(!this.c)for(this.c=pp(f(this.f,123).ih().i),i=new Sn(f(this.f,123).ih());i.e!=i.i.gc();)t=f(Cn(i),74),lt(this.c,new Xj(t));return this.c},p.ag=function(){return f(f(this.f,123).of((Er(),dE)),64)},p.bg=function(){var t,i,s,a,c,b,g,m;for(a=Xd(f(this.f,123)),s=new Sn(f(this.f,123).ih());s.e!=s.i.gc();)for(t=f(Cn(s),74),m=new Sn((!t.c&&(t.c=new en(Dn,t,5,8)),t.c));m.e!=m.i.gc();){if(g=f(Cn(m),84),Xv(sl(g),a))return!0;if(sl(g)==a&&wt(gt(Qe(t,(Er(),fce)))))return!0}for(i=new Sn(f(this.f,123).hh());i.e!=i.i.gc();)for(t=f(Cn(i),74),b=new Sn((!t.b&&(t.b=new en(Dn,t,4,7)),t.b));b.e!=b.i.gc();)if(c=f(Cn(b),84),Xv(sl(c),a))return!0;return!1},p.a=null,p.b=null,p.c=null,N(vI,"ElkGraphAdapters/ElkPortAdapter",1284),P(1285,1,cr,JQe),p.Ne=function(t,i){return Z7n(f(t,123),f(i,123))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(vI,"ElkGraphAdapters/PortComparator",1285);var d0=Ei(of,"EObject"),$4=Ei(I2,tTt),Nu=Ei(I2,nTt),z9=Ei(I2,rTt),K9=Ei(I2,"ElkShape"),Dn=Ei(I2,iTt),Fi=Ei(I2,nAe),ai=Ei(I2,oTt),q9=Ei(of,sTt),D5=Ei(of,"EFactory"),wDt,Cce=Ei(of,lTt),Bd=Ei(of,"EPackage"),_o,mDt,yDt,aOe,Iz,vDt,cOe,uOe,fOe,Fp,_Dt,SDt,Fs=Ei(I2,rAe),$r=Ei(I2,iAe),Mc=Ei(I2,oAe);P(93,1,aTt),p.th=function(){return this.uh(),null},p.uh=function(){return null},p.vh=function(){return this.uh(),!1},p.wh=function(){return!1},p.xh=function(t){Dr(this,t)},N(U3,"BasicNotifierImpl",93),P(99,93,dTt),p.Yh=function(){return eu(this)},p.yh=function(t,i){return t},p.zh=function(){throw ne(new rr)},p.Ah=function(t){var i;return i=Es(f(tn(this.Dh(),this.Fh()),19)),this.Ph().Th(this,i.n,i.f,t)},p.Bh=function(t,i){throw ne(new rr)},p.Ch=function(t,i,s){return xu(this,t,i,s)},p.Dh=function(){var t;return this.zh()&&(t=this.zh().Nk(),t)?t:this.ii()},p.Eh=function(){return Ene(this)},p.Fh=function(){throw ne(new rr)},p.Gh=function(){var t,i;return i=this.$h().Ok(),!i&&this.zh().Tk(i=(g$(),t=Mve(Gh(this.Dh())),t==null?Mce:new f7(this,t))),i},p.Hh=function(t,i){return t},p.Ih=function(t){var i;return i=t.pk(),i?t.Lj():yi(this.Dh(),t)},p.Jh=function(){var t;return t=this.zh(),t?t.Qk():null},p.Kh=function(){return this.zh()?this.zh().Nk():null},p.Lh=function(t,i,s){return yH(this,t,i,s)},p.Mh=function(t){return EC(this,t)},p.Nh=function(t,i){return aee(this,t,i)},p.Oh=function(){var t;return t=this.zh(),!!t&&t.Rk()},p.Ph=function(){throw ne(new rr)},p.Qh=function(){return dH(this)},p.Rh=function(t,i,s,a){return S3(this,t,i,a)},p.Sh=function(t,i,s){var a;return a=f(tn(this.Dh(),i),69),a.wk().zk(this,this.hi(),i-this.ji(),t,s)},p.Th=function(t,i,s,a){return qB(this,t,i,a)},p.Uh=function(t,i,s){var a;return a=f(tn(this.Dh(),i),69),a.wk().Ak(this,this.hi(),i-this.ji(),t,s)},p.Vh=function(){return!!this.zh()&&!!this.zh().Pk()},p.Wh=function(t){return Nte(this,t)},p.Xh=function(t){return dgt(this,t)},p.Zh=function(t){return Nxt(this,t)},p.$h=function(){throw ne(new rr)},p._h=function(){return this.zh()?this.zh().Pk():null},p.ai=function(){return dH(this)},p.bi=function(t,i){mne(this,t,i)},p.ci=function(t){this.$h().Sk(t)},p.di=function(t){this.$h().Vk(t)},p.ei=function(t){this.$h().Uk(t)},p.fi=function(t,i){var s,a,c,b;return b=this.Jh(),b&&t&&(i=fs(b.El(),this,i),b.Il(this)),a=this.Ph(),a&&(Lne(this,this.Ph(),this.Fh()).Bb&ys?(c=a.Qh(),c&&(t?!b&&c.Il(this):c.Hl(this))):(i=(s=this.Fh(),s>=0?this.Ah(i):this.Ph().Th(this,-1-s,null,i)),i=this.Ch(null,-1,i))),this.di(t),i},p.gi=function(t){var i,s,a,c,b,g,m,_;if(s=this.Dh(),b=yi(s,t),i=this.ji(),b>=i)return f(t,69).wk().Dk(this,this.hi(),b-i);if(b<=-1)if(g=_2((gc(),qo),s,t),g){if(Ss(),f(g,69).xk()||(g=a3(Vs(qo,g))),c=(a=this.Ih(g),f(a>=0?this.Lh(a,!0,!0):iy(this,g,!0),160)),_=g.Ik(),_>1||_==-1)return f(f(c,220).Sl(t,!1),79)}else throw ne(new hn(X1+t.xe()+moe));else if(t.Jk())return a=this.Ih(t),f(a>=0?this.Lh(a,!1,!0):iy(this,t,!1),79);return m=new $ut(this,t),m},p.hi=function(){return B_e(this)},p.ii=function(){return(C1(),un).S},p.ji=function(){return Pn(this.ii())},p.ki=function(t){bne(this,t)},p.Ib=function(){return rd(this)},N(fn,"BasicEObjectImpl",99);var EDt;P(119,99,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1}),p.li=function(t){var i;return i=F_e(this),i[t]},p.mi=function(t,i){var s;s=F_e(this),Ci(s,t,i)},p.ni=function(t){var i;i=F_e(this),Ci(i,t,null)},p.th=function(){return f(dn(this,4),129)},p.uh=function(){throw ne(new rr)},p.vh=function(){return(this.Db&4)!=0},p.zh=function(){throw ne(new rr)},p.oi=function(t){v3(this,2,t)},p.Bh=function(t,i){this.Db=i<<16|this.Db&255,this.oi(t)},p.Dh=function(){return Xa(this)},p.Fh=function(){return this.Db>>16},p.Gh=function(){var t,i;return g$(),i=Mve(Gh((t=f(dn(this,16),29),t||this.ii()))),i==null?Mce:new f7(this,i)},p.wh=function(){return(this.Db&1)==0},p.Jh=function(){return f(dn(this,128),2034)},p.Kh=function(){return f(dn(this,16),29)},p.Oh=function(){return(this.Db&32)!=0},p.Ph=function(){return f(dn(this,2),54)},p.Vh=function(){return(this.Db&64)!=0},p.$h=function(){throw ne(new rr)},p._h=function(){return f(dn(this,64),288)},p.ci=function(t){v3(this,16,t)},p.di=function(t){v3(this,128,t)},p.ei=function(t){v3(this,64,t)},p.hi=function(){return ja(this)},p.Db=0,N(fn,"MinimalEObjectImpl",119),P(120,119,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),p.oi=function(t){this.Cb=t},p.Ph=function(){return this.Cb},N(fn,"MinimalEObjectImpl/Container",120),P(2083,120,{110:1,342:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),p.Lh=function(t,i,s){return tEe(this,t,i,s)},p.Uh=function(t,i,s){return GEe(this,t,i,s)},p.Wh=function(t){return Xve(this,t)},p.bi=function(t,i){BSe(this,t,i)},p.ii=function(){return Yl(),SDt},p.ki=function(t){TSe(this,t)},p.nf=function(){return uSt(this)},p.gh=function(){return!this.o&&(this.o=new pc((Yl(),Fp),Hg,this,0)),this.o},p.of=function(t){return Qe(this,t)},p.pf=function(t){return eh(this,t)},p.qf=function(t,i){return zr(this,t,i)},N(Rw,"EMapPropertyHolderImpl",2083),P(572,120,{110:1,377:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},jj),p.Lh=function(t,i,s){switch(t){case 0:return this.a;case 1:return this.b}return yH(this,t,i,s)},p.Wh=function(t){switch(t){case 0:return this.a!=0;case 1:return this.b!=0}return Nte(this,t)},p.bi=function(t,i){switch(t){case 0:TW(this,Ae(je(i)));return;case 1:AW(this,Ae(je(i)));return}mne(this,t,i)},p.ii=function(){return Yl(),mDt},p.ki=function(t){switch(t){case 0:TW(this,0);return;case 1:AW(this,0);return}bne(this,t)},p.Ib=function(){var t;return this.Db&64?rd(this):(t=new wf(rd(this)),t.a+=" (x: ",NS(t,this.a),t.a+=", y: ",NS(t,this.b),t.a+=")",t.a)},p.a=0,p.b=0,N(Rw,"ElkBendPointImpl",572),P(739,2083,{110:1,342:1,167:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),p.Lh=function(t,i,s){return c2e(this,t,i,s)},p.Sh=function(t,i,s){return ane(this,t,i,s)},p.Uh=function(t,i,s){return Vee(this,t,i,s)},p.Wh=function(t){return ESe(this,t)},p.bi=function(t,i){vEe(this,t,i)},p.ii=function(){return Yl(),vDt},p.ki=function(t){e2e(this,t)},p.jh=function(){return this.k},p.kh=function(){return FB(this)},p.Ib=function(){return wte(this)},p.k=null,N(Rw,"ElkGraphElementImpl",739),P(740,739,{110:1,342:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),p.Lh=function(t,i,s){return w2e(this,t,i,s)},p.Wh=function(t){return E2e(this,t)},p.bi=function(t,i){_Ee(this,t,i)},p.ii=function(){return Yl(),_Dt},p.ki=function(t){$2e(this,t)},p.lh=function(){return this.f},p.mh=function(){return this.g},p.nh=function(){return this.i},p.oh=function(){return this.j},p.ph=function(t,i){GS(this,t,i)},p.qh=function(t,i){Wu(this,t,i)},p.rh=function(t){Da(this,t)},p.sh=function(t){La(this,t)},p.Ib=function(){return hne(this)},p.f=0,p.g=0,p.i=0,p.j=0,N(Rw,"ElkShapeImpl",740),P(741,740,{110:1,342:1,84:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),p.Lh=function(t,i,s){return q2e(this,t,i,s)},p.Sh=function(t,i,s){return pEe(this,t,i,s)},p.Uh=function(t,i,s){return bEe(this,t,i,s)},p.Wh=function(t){return FSe(this,t)},p.bi=function(t,i){Ake(this,t,i)},p.ii=function(){return Yl(),yDt},p.ki=function(t){U2e(this,t)},p.hh=function(){return!this.d&&(this.d=new en(Fi,this,8,5)),this.d},p.ih=function(){return!this.e&&(this.e=new en(Fi,this,7,4)),this.e},N(Rw,"ElkConnectableShapeImpl",741),P(326,739,{110:1,342:1,74:1,167:1,326:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},QJ),p.Ah=function(t){return uEe(this,t)},p.Lh=function(t,i,s){switch(t){case 3:return M7(this);case 4:return!this.b&&(this.b=new en(Dn,this,4,7)),this.b;case 5:return!this.c&&(this.c=new en(Dn,this,5,8)),this.c;case 6:return!this.a&&(this.a=new qe(ai,this,6,6)),this.a;case 7:return cn(),!this.b&&(this.b=new en(Dn,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new en(Dn,this,5,8)),this.c.i<=1));case 8:return cn(),!!W6(this);case 9:return cn(),!!ry(this);case 10:return cn(),!this.b&&(this.b=new en(Dn,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new en(Dn,this,5,8)),this.c.i!=0)}return c2e(this,t,i,s)},p.Sh=function(t,i,s){var a;switch(i){case 3:return this.Cb&&(s=(a=this.Db>>16,a>=0?uEe(this,s):this.Cb.Th(this,-1-a,null,s))),Vme(this,f(t,27),s);case 4:return!this.b&&(this.b=new en(Dn,this,4,7)),xa(this.b,t,s);case 5:return!this.c&&(this.c=new en(Dn,this,5,8)),xa(this.c,t,s);case 6:return!this.a&&(this.a=new qe(ai,this,6,6)),xa(this.a,t,s)}return ane(this,t,i,s)},p.Uh=function(t,i,s){switch(i){case 3:return Vme(this,null,s);case 4:return!this.b&&(this.b=new en(Dn,this,4,7)),fs(this.b,t,s);case 5:return!this.c&&(this.c=new en(Dn,this,5,8)),fs(this.c,t,s);case 6:return!this.a&&(this.a=new qe(ai,this,6,6)),fs(this.a,t,s)}return Vee(this,t,i,s)},p.Wh=function(t){switch(t){case 3:return!!M7(this);case 4:return!!this.b&&this.b.i!=0;case 5:return!!this.c&&this.c.i!=0;case 6:return!!this.a&&this.a.i!=0;case 7:return!this.b&&(this.b=new en(Dn,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new en(Dn,this,5,8)),this.c.i<=1));case 8:return W6(this);case 9:return ry(this);case 10:return!this.b&&(this.b=new en(Dn,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new en(Dn,this,5,8)),this.c.i!=0)}return ESe(this,t)},p.bi=function(t,i){switch(t){case 3:GH(this,f(i,27));return;case 4:!this.b&&(this.b=new en(Dn,this,4,7)),Vn(this.b),!this.b&&(this.b=new en(Dn,this,4,7)),Ii(this.b,f(i,16));return;case 5:!this.c&&(this.c=new en(Dn,this,5,8)),Vn(this.c),!this.c&&(this.c=new en(Dn,this,5,8)),Ii(this.c,f(i,16));return;case 6:!this.a&&(this.a=new qe(ai,this,6,6)),Vn(this.a),!this.a&&(this.a=new qe(ai,this,6,6)),Ii(this.a,f(i,16));return}vEe(this,t,i)},p.ii=function(){return Yl(),aOe},p.ki=function(t){switch(t){case 3:GH(this,null);return;case 4:!this.b&&(this.b=new en(Dn,this,4,7)),Vn(this.b);return;case 5:!this.c&&(this.c=new en(Dn,this,5,8)),Vn(this.c);return;case 6:!this.a&&(this.a=new qe(ai,this,6,6)),Vn(this.a);return}e2e(this,t)},p.Ib=function(){return QRt(this)},N(Rw,"ElkEdgeImpl",326),P(452,2083,{110:1,342:1,166:1,452:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},Fj),p.Ah=function(t){return sEe(this,t)},p.Lh=function(t,i,s){switch(t){case 1:return this.j;case 2:return this.k;case 3:return this.b;case 4:return this.c;case 5:return!this.a&&(this.a=new zi(Nu,this,5)),this.a;case 6:return agt(this);case 7:return i?Fte(this):this.i;case 8:return i?jte(this):this.f;case 9:return!this.g&&(this.g=new en(ai,this,9,10)),this.g;case 10:return!this.e&&(this.e=new en(ai,this,10,9)),this.e;case 11:return this.d}return tEe(this,t,i,s)},p.Sh=function(t,i,s){var a,c,b;switch(i){case 6:return this.Cb&&(s=(c=this.Db>>16,c>=0?sEe(this,s):this.Cb.Th(this,-1-c,null,s))),Gme(this,f(t,74),s);case 9:return!this.g&&(this.g=new en(ai,this,9,10)),xa(this.g,t,s);case 10:return!this.e&&(this.e=new en(ai,this,10,9)),xa(this.e,t,s)}return b=f(tn((a=f(dn(this,16),29),a||(Yl(),Iz)),i),69),b.wk().zk(this,ja(this),i-Pn((Yl(),Iz)),t,s)},p.Uh=function(t,i,s){switch(i){case 5:return!this.a&&(this.a=new zi(Nu,this,5)),fs(this.a,t,s);case 6:return Gme(this,null,s);case 9:return!this.g&&(this.g=new en(ai,this,9,10)),fs(this.g,t,s);case 10:return!this.e&&(this.e=new en(ai,this,10,9)),fs(this.e,t,s)}return GEe(this,t,i,s)},p.Wh=function(t){switch(t){case 1:return this.j!=0;case 2:return this.k!=0;case 3:return this.b!=0;case 4:return this.c!=0;case 5:return!!this.a&&this.a.i!=0;case 6:return!!agt(this);case 7:return!!this.i;case 8:return!!this.f;case 9:return!!this.g&&this.g.i!=0;case 10:return!!this.e&&this.e.i!=0;case 11:return this.d!=null}return Xve(this,t)},p.bi=function(t,i){switch(t){case 1:TC(this,Ae(je(i)));return;case 2:IC(this,Ae(je(i)));return;case 3:AC(this,Ae(je(i)));return;case 4:$C(this,Ae(je(i)));return;case 5:!this.a&&(this.a=new zi(Nu,this,5)),Vn(this.a),!this.a&&(this.a=new zi(Nu,this,5)),Ii(this.a,f(i,16));return;case 6:Ykt(this,f(i,74));return;case 7:DW(this,f(i,84));return;case 8:MW(this,f(i,84));return;case 9:!this.g&&(this.g=new en(ai,this,9,10)),Vn(this.g),!this.g&&(this.g=new en(ai,this,9,10)),Ii(this.g,f(i,16));return;case 10:!this.e&&(this.e=new en(ai,this,10,9)),Vn(this.e),!this.e&&(this.e=new en(ai,this,10,9)),Ii(this.e,f(i,16));return;case 11:fSe(this,or(i));return}BSe(this,t,i)},p.ii=function(){return Yl(),Iz},p.ki=function(t){switch(t){case 1:TC(this,0);return;case 2:IC(this,0);return;case 3:AC(this,0);return;case 4:$C(this,0);return;case 5:!this.a&&(this.a=new zi(Nu,this,5)),Vn(this.a);return;case 6:Ykt(this,null);return;case 7:DW(this,null);return;case 8:MW(this,null);return;case 9:!this.g&&(this.g=new en(ai,this,9,10)),Vn(this.g);return;case 10:!this.e&&(this.e=new en(ai,this,10,9)),Vn(this.e);return;case 11:fSe(this,null);return}TSe(this,t)},p.Ib=function(){return fkt(this)},p.b=0,p.c=0,p.d=null,p.j=0,p.k=0,N(Rw,"ElkEdgeSectionImpl",452),P(158,120,{110:1,94:1,93:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1}),p.Lh=function(t,i,s){var a;return t==0?(!this.Ab&&(this.Ab=new qe(_r,this,0,3)),this.Ab):qu(this,t-Pn(this.ii()),tn((a=f(dn(this,16),29),a||this.ii()),t),i,s)},p.Sh=function(t,i,s){var a,c;return i==0?(!this.Ab&&(this.Ab=new qe(_r,this,0,3)),xa(this.Ab,t,s)):(c=f(tn((a=f(dn(this,16),29),a||this.ii()),i),69),c.wk().zk(this,ja(this),i-Pn(this.ii()),t,s))},p.Uh=function(t,i,s){var a,c;return i==0?(!this.Ab&&(this.Ab=new qe(_r,this,0,3)),fs(this.Ab,t,s)):(c=f(tn((a=f(dn(this,16),29),a||this.ii()),i),69),c.wk().Ak(this,ja(this),i-Pn(this.ii()),t,s))},p.Wh=function(t){var i;return t==0?!!this.Ab&&this.Ab.i!=0:zu(this,t-Pn(this.ii()),tn((i=f(dn(this,16),29),i||this.ii()),t))},p.Zh=function(t){return F3e(this,t)},p.bi=function(t,i){var s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return}Qu(this,t-Pn(this.ii()),tn((s=f(dn(this,16),29),s||this.ii()),t),i)},p.di=function(t){v3(this,128,t)},p.ii=function(){return Kt(),WDt},p.ki=function(t){var i;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return}Yu(this,t-Pn(this.ii()),tn((i=f(dn(this,16),29),i||this.ii()),t))},p.pi=function(){this.Bb|=1},p.qi=function(t){return q6(this,t)},p.Bb=0,N(fn,"EModelElementImpl",158),P(720,158,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},W1e),p.ri=function(t,i){return Cxt(this,t,i)},p.si=function(t){var i,s,a,c,b;if(this.a!=vu(t)||t.Bb&256)throw ne(new hn(voe+t.zb+gy));for(a=rl(t);ra(a.a).i!=0;){if(s=f(nM(a,0,(i=f(Se(ra(a.a),0),89),b=i.c,ve(b,90)?f(b,29):(Kt(),Mf))),29),ny(s))return c=vu(s).wi().si(s),f(c,54).ci(t),c;a=rl(s)}return(t.D!=null?t.D:t.B)=="java.util.Map$Entry"?new Ght(t):new Oye(t)},p.ti=function(t,i){return ay(this,t,i)},p.Lh=function(t,i,s){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),this.Ab;case 1:return this.a}return qu(this,t-Pn((Kt(),g0)),tn((a=f(dn(this,16),29),a||g0),t),i,s)},p.Sh=function(t,i,s){var a,c;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),xa(this.Ab,t,s);case 1:return this.a&&(s=f(this.a,54).Th(this,4,Bd,s)),ZSe(this,f(t,241),s)}return c=f(tn((a=f(dn(this,16),29),a||(Kt(),g0)),i),69),c.wk().zk(this,ja(this),i-Pn((Kt(),g0)),t,s)},p.Uh=function(t,i,s){var a,c;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),fs(this.Ab,t,s);case 1:return ZSe(this,null,s)}return c=f(tn((a=f(dn(this,16),29),a||(Kt(),g0)),i),69),c.wk().Ak(this,ja(this),i-Pn((Kt(),g0)),t,s)},p.Wh=function(t){var i;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return!!this.a}return zu(this,t-Pn((Kt(),g0)),tn((i=f(dn(this,16),29),i||g0),t))},p.bi=function(t,i){var s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return;case 1:q2t(this,f(i,241));return}Qu(this,t-Pn((Kt(),g0)),tn((s=f(dn(this,16),29),s||g0),t),i)},p.ii=function(){return Kt(),g0},p.ki=function(t){var i;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return;case 1:q2t(this,null);return}Yu(this,t-Pn((Kt(),g0)),tn((i=f(dn(this,16),29),i||g0),t))};var L5,dOe,kDt;N(fn,"EFactoryImpl",720),P(1037,720,{110:1,2113:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},oZe),p.ri=function(t,i){switch(t.hk()){case 12:return f(i,149).Pg();case 13:return dl(i);default:throw ne(new hn(HA+t.xe()+gy))}},p.si=function(t){var i,s,a,c,b,g,m,_;switch(t.G==-1&&(t.G=(i=vu(t),i?Rg(i.vi(),t):-1)),t.G){case 4:return b=new M1e,b;case 6:return g=new r$,g;case 7:return m=new M0e,m;case 8:return a=new QJ,a;case 9:return s=new jj,s;case 10:return c=new Fj,c;case 11:return _=new sZe,_;default:throw ne(new hn(voe+t.zb+gy))}},p.ti=function(t,i){switch(t.hk()){case 13:case 12:return null;default:throw ne(new hn(HA+t.xe()+gy))}},N(Rw,"ElkGraphFactoryImpl",1037),P(448,158,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1}),p.Gh=function(){var t,i;return i=(t=f(dn(this,16),29),Mve(Gh(t||this.ii()))),i==null?(g$(),g$(),Mce):new hdt(this,i)},p.Lh=function(t,i,s){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),this.Ab;case 1:return this.xe()}return qu(this,t-Pn(this.ii()),tn((a=f(dn(this,16),29),a||this.ii()),t),i,s)},p.Wh=function(t){var i;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null}return zu(this,t-Pn(this.ii()),tn((i=f(dn(this,16),29),i||this.ii()),t))},p.bi=function(t,i){var s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return;case 1:this.ui(or(i));return}Qu(this,t-Pn(this.ii()),tn((s=f(dn(this,16),29),s||this.ii()),t),i)},p.ii=function(){return Kt(),HDt},p.ki=function(t){var i;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return;case 1:this.ui(null);return}Yu(this,t-Pn(this.ii()),tn((i=f(dn(this,16),29),i||this.ii()),t))},p.xe=function(){return this.zb},p.ui=function(t){Ra(this,t)},p.Ib=function(){return S6(this)},p.zb=null,N(fn,"ENamedElementImpl",448),P(184,448,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},Bbt),p.Ah=function(t){return o2t(this,t)},p.Lh=function(t,i,s){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.yb;case 3:return this.xb;case 4:return this.sb;case 5:return!this.rb&&(this.rb=new Fv(this,Wd,this)),this.rb;case 6:return!this.vb&&(this.vb=new Xk(Bd,this,6,7)),this.vb;case 7:return i?this.Db>>16==7?f(this.Cb,241):null:bgt(this)}return qu(this,t-Pn((Kt(),zg)),tn((a=f(dn(this,16),29),a||zg),t),i,s)},p.Sh=function(t,i,s){var a,c,b;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),xa(this.Ab,t,s);case 4:return this.sb&&(s=f(this.sb,54).Th(this,1,D5,s)),n2e(this,f(t,480),s);case 5:return!this.rb&&(this.rb=new Fv(this,Wd,this)),xa(this.rb,t,s);case 6:return!this.vb&&(this.vb=new Xk(Bd,this,6,7)),xa(this.vb,t,s);case 7:return this.Cb&&(s=(c=this.Db>>16,c>=0?o2t(this,s):this.Cb.Th(this,-1-c,null,s))),xu(this,t,7,s)}return b=f(tn((a=f(dn(this,16),29),a||(Kt(),zg)),i),69),b.wk().zk(this,ja(this),i-Pn((Kt(),zg)),t,s)},p.Uh=function(t,i,s){var a,c;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),fs(this.Ab,t,s);case 4:return n2e(this,null,s);case 5:return!this.rb&&(this.rb=new Fv(this,Wd,this)),fs(this.rb,t,s);case 6:return!this.vb&&(this.vb=new Xk(Bd,this,6,7)),fs(this.vb,t,s);case 7:return xu(this,null,7,s)}return c=f(tn((a=f(dn(this,16),29),a||(Kt(),zg)),i),69),c.wk().Ak(this,ja(this),i-Pn((Kt(),zg)),t,s)},p.Wh=function(t){var i;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.yb!=null;case 3:return this.xb!=null;case 4:return!!this.sb;case 5:return!!this.rb&&this.rb.i!=0;case 6:return!!this.vb&&this.vb.i!=0;case 7:return!!bgt(this)}return zu(this,t-Pn((Kt(),zg)),tn((i=f(dn(this,16),29),i||zg),t))},p.Zh=function(t){var i;return i=pOn(this,t),i||F3e(this,t)},p.bi=function(t,i){var s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return;case 1:Ra(this,or(i));return;case 2:HW(this,or(i));return;case 3:WW(this,or(i));return;case 4:dne(this,f(i,480));return;case 5:!this.rb&&(this.rb=new Fv(this,Wd,this)),Vn(this.rb),!this.rb&&(this.rb=new Fv(this,Wd,this)),Ii(this.rb,f(i,16));return;case 6:!this.vb&&(this.vb=new Xk(Bd,this,6,7)),Vn(this.vb),!this.vb&&(this.vb=new Xk(Bd,this,6,7)),Ii(this.vb,f(i,16));return}Qu(this,t-Pn((Kt(),zg)),tn((s=f(dn(this,16),29),s||zg),t),i)},p.ei=function(t){var i,s;if(t&&this.rb)for(s=new Sn(this.rb);s.e!=s.i.gc();)i=Cn(s),ve(i,364)&&(f(i,364).w=null);v3(this,64,t)},p.ii=function(){return Kt(),zg},p.ki=function(t){var i;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return;case 1:Ra(this,null);return;case 2:HW(this,null);return;case 3:WW(this,null);return;case 4:dne(this,null);return;case 5:!this.rb&&(this.rb=new Fv(this,Wd,this)),Vn(this.rb);return;case 6:!this.vb&&(this.vb=new Xk(Bd,this,6,7)),Vn(this.vb);return}Yu(this,t-Pn((Kt(),zg)),tn((i=f(dn(this,16),29),i||zg),t))},p.pi=function(){Qte(this)},p.vi=function(){return!this.rb&&(this.rb=new Fv(this,Wd,this)),this.rb},p.wi=function(){return this.sb},p.xi=function(){return this.ub},p.yi=function(){return this.xb},p.zi=function(){return this.yb},p.Ai=function(t){this.ub=t},p.Ib=function(){var t;return this.Db&64?S6(this):(t=new wf(S6(this)),t.a+=" (nsURI: ",Ms(t,this.yb),t.a+=", nsPrefix: ",Ms(t,this.xb),t.a+=")",t.a)},p.xb=null,p.yb=null,N(fn,"EPackageImpl",184),P(569,184,{110:1,2115:1,569:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},vkt),p.q=!1,p.r=!1;var RDt=!1;N(Rw,"ElkGraphPackageImpl",569),P(366,740,{110:1,342:1,167:1,135:1,422:1,366:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},M1e),p.Ah=function(t){return lEe(this,t)},p.Lh=function(t,i,s){switch(t){case 7:return ggt(this);case 8:return this.a}return w2e(this,t,i,s)},p.Sh=function(t,i,s){var a;switch(i){case 7:return this.Cb&&(s=(a=this.Db>>16,a>=0?lEe(this,s):this.Cb.Th(this,-1-a,null,s))),qye(this,f(t,167),s)}return ane(this,t,i,s)},p.Uh=function(t,i,s){return i==7?qye(this,null,s):Vee(this,t,i,s)},p.Wh=function(t){switch(t){case 7:return!!ggt(this);case 8:return!Ht("",this.a)}return E2e(this,t)},p.bi=function(t,i){switch(t){case 7:Wke(this,f(i,167));return;case 8:sSe(this,or(i));return}_Ee(this,t,i)},p.ii=function(){return Yl(),cOe},p.ki=function(t){switch(t){case 7:Wke(this,null);return;case 8:sSe(this,"");return}$2e(this,t)},p.Ib=function(){return aEt(this)},p.a="",N(Rw,"ElkLabelImpl",366),P(207,741,{110:1,342:1,84:1,167:1,27:1,422:1,207:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},r$),p.Ah=function(t){return fEe(this,t)},p.Lh=function(t,i,s){switch(t){case 9:return!this.c&&(this.c=new qe(Mc,this,9,9)),this.c;case 10:return!this.a&&(this.a=new qe($r,this,10,11)),this.a;case 11:return di(this);case 12:return!this.b&&(this.b=new qe(Fi,this,12,3)),this.b;case 13:return cn(),!this.a&&(this.a=new qe($r,this,10,11)),this.a.i>0}return q2e(this,t,i,s)},p.Sh=function(t,i,s){var a;switch(i){case 9:return!this.c&&(this.c=new qe(Mc,this,9,9)),xa(this.c,t,s);case 10:return!this.a&&(this.a=new qe($r,this,10,11)),xa(this.a,t,s);case 11:return this.Cb&&(s=(a=this.Db>>16,a>=0?fEe(this,s):this.Cb.Th(this,-1-a,null,s))),tye(this,f(t,27),s);case 12:return!this.b&&(this.b=new qe(Fi,this,12,3)),xa(this.b,t,s)}return pEe(this,t,i,s)},p.Uh=function(t,i,s){switch(i){case 9:return!this.c&&(this.c=new qe(Mc,this,9,9)),fs(this.c,t,s);case 10:return!this.a&&(this.a=new qe($r,this,10,11)),fs(this.a,t,s);case 11:return tye(this,null,s);case 12:return!this.b&&(this.b=new qe(Fi,this,12,3)),fs(this.b,t,s)}return bEe(this,t,i,s)},p.Wh=function(t){switch(t){case 9:return!!this.c&&this.c.i!=0;case 10:return!!this.a&&this.a.i!=0;case 11:return!!di(this);case 12:return!!this.b&&this.b.i!=0;case 13:return!this.a&&(this.a=new qe($r,this,10,11)),this.a.i>0}return FSe(this,t)},p.bi=function(t,i){switch(t){case 9:!this.c&&(this.c=new qe(Mc,this,9,9)),Vn(this.c),!this.c&&(this.c=new qe(Mc,this,9,9)),Ii(this.c,f(i,16));return;case 10:!this.a&&(this.a=new qe($r,this,10,11)),Vn(this.a),!this.a&&(this.a=new qe($r,this,10,11)),Ii(this.a,f(i,16));return;case 11:VH(this,f(i,27));return;case 12:!this.b&&(this.b=new qe(Fi,this,12,3)),Vn(this.b),!this.b&&(this.b=new qe(Fi,this,12,3)),Ii(this.b,f(i,16));return}Ake(this,t,i)},p.ii=function(){return Yl(),uOe},p.ki=function(t){switch(t){case 9:!this.c&&(this.c=new qe(Mc,this,9,9)),Vn(this.c);return;case 10:!this.a&&(this.a=new qe($r,this,10,11)),Vn(this.a);return;case 11:VH(this,null);return;case 12:!this.b&&(this.b=new qe(Fi,this,12,3)),Vn(this.b);return}U2e(this,t)},p.Ib=function(){return r3e(this)},N(Rw,"ElkNodeImpl",207),P(193,741,{110:1,342:1,84:1,167:1,123:1,422:1,193:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},M0e),p.Ah=function(t){return aEe(this,t)},p.Lh=function(t,i,s){return t==9?Xd(this):q2e(this,t,i,s)},p.Sh=function(t,i,s){var a;switch(i){case 9:return this.Cb&&(s=(a=this.Db>>16,a>=0?aEe(this,s):this.Cb.Th(this,-1-a,null,s))),zme(this,f(t,27),s)}return pEe(this,t,i,s)},p.Uh=function(t,i,s){return i==9?zme(this,null,s):bEe(this,t,i,s)},p.Wh=function(t){return t==9?!!Xd(this):FSe(this,t)},p.bi=function(t,i){switch(t){case 9:Lke(this,f(i,27));return}Ake(this,t,i)},p.ii=function(){return Yl(),fOe},p.ki=function(t){switch(t){case 9:Lke(this,null);return}U2e(this,t)},p.Ib=function(){return J3t(this)},N(Rw,"ElkPortImpl",193);var xDt=Ei(hs,"BasicEMap/Entry");P(1122,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,119:1,120:1},sZe),p.Fb=function(t){return this===t},p.ld=function(){return this.b},p.Hb=function(){return Cm(this)},p.Di=function(t){lSe(this,f(t,149))},p.Lh=function(t,i,s){switch(t){case 0:return this.b;case 1:return this.c}return yH(this,t,i,s)},p.Wh=function(t){switch(t){case 0:return!!this.b;case 1:return this.c!=null}return Nte(this,t)},p.bi=function(t,i){switch(t){case 0:lSe(this,f(i,149));return;case 1:oSe(this,i);return}mne(this,t,i)},p.ii=function(){return Yl(),Fp},p.ki=function(t){switch(t){case 0:lSe(this,null);return;case 1:oSe(this,null);return}bne(this,t)},p.Bi=function(){var t;return this.a==-1&&(t=this.b,this.a=t?ti(t):0),this.a},p.md=function(){return this.c},p.Ci=function(t){this.a=t},p.nd=function(t){var i;return i=this.c,oSe(this,t),i},p.Ib=function(){var t;return this.Db&64?rd(this):(t=new m1,br(br(br(t,this.b?this.b.Pg():Za),hie),D$(this.c)),t.a)},p.a=-1,p.c=null;var Hg=N(Rw,"ElkPropertyToValueMapEntryImpl",1122);P(996,1,{},cZe),N(zo,"JsonAdapter",996),P(216,63,Cb,$h),N(zo,"JsonImportException",216),P(868,1,{},s2t),N(zo,"JsonImporter",868),P(903,1,{},hut),N(zo,"JsonImporter/lambda$0$Type",903),P(904,1,{},put),N(zo,"JsonImporter/lambda$1$Type",904),P(912,1,{},Lot),N(zo,"JsonImporter/lambda$10$Type",912),P(914,1,{},but),N(zo,"JsonImporter/lambda$11$Type",914),P(915,1,{},gut),N(zo,"JsonImporter/lambda$12$Type",915),P(921,1,{},Abt),N(zo,"JsonImporter/lambda$13$Type",921),P(920,1,{},Tbt),N(zo,"JsonImporter/lambda$14$Type",920),P(916,1,{},wut),N(zo,"JsonImporter/lambda$15$Type",916),P(917,1,{},mut),N(zo,"JsonImporter/lambda$16$Type",917),P(918,1,{},yut),N(zo,"JsonImporter/lambda$17$Type",918),P(919,1,{},vut),N(zo,"JsonImporter/lambda$18$Type",919),P(924,1,{},jot),N(zo,"JsonImporter/lambda$19$Type",924),P(905,1,{},Fot),N(zo,"JsonImporter/lambda$2$Type",905),P(922,1,{},Bot),N(zo,"JsonImporter/lambda$20$Type",922),P(923,1,{},Wot),N(zo,"JsonImporter/lambda$21$Type",923),P(927,1,{},Hot),N(zo,"JsonImporter/lambda$22$Type",927),P(925,1,{},Uot),N(zo,"JsonImporter/lambda$23$Type",925),P(926,1,{},Got),N(zo,"JsonImporter/lambda$24$Type",926),P(929,1,{},Vot),N(zo,"JsonImporter/lambda$25$Type",929),P(928,1,{},zot),N(zo,"JsonImporter/lambda$26$Type",928),P(930,1,Rn,_ut),p.Cd=function(t){Akn(this.b,this.a,or(t))},N(zo,"JsonImporter/lambda$27$Type",930),P(931,1,Rn,Sut),p.Cd=function(t){Tkn(this.b,this.a,or(t))},N(zo,"JsonImporter/lambda$28$Type",931),P(932,1,{},Eut),N(zo,"JsonImporter/lambda$29$Type",932),P(908,1,{},Kot),N(zo,"JsonImporter/lambda$3$Type",908),P(933,1,{},kut),N(zo,"JsonImporter/lambda$30$Type",933),P(934,1,{},qot),N(zo,"JsonImporter/lambda$31$Type",934),P(935,1,{},Xot),N(zo,"JsonImporter/lambda$32$Type",935),P(936,1,{},Jot),N(zo,"JsonImporter/lambda$33$Type",936),P(937,1,{},Yot),N(zo,"JsonImporter/lambda$34$Type",937),P(870,1,{},Qot),N(zo,"JsonImporter/lambda$35$Type",870),P(941,1,{},mht),N(zo,"JsonImporter/lambda$36$Type",941),P(938,1,Rn,Zot),p.Cd=function(t){NEn(this.a,f(t,377))},N(zo,"JsonImporter/lambda$37$Type",938),P(939,1,Rn,Rut),p.Cd=function(t){bgn(this.a,this.b,f(t,166))},N(zo,"JsonImporter/lambda$38$Type",939),P(940,1,Rn,xut),p.Cd=function(t){ggn(this.a,this.b,f(t,166))},N(zo,"JsonImporter/lambda$39$Type",940),P(906,1,{},est),N(zo,"JsonImporter/lambda$4$Type",906),P(942,1,Rn,tst),p.Cd=function(t){MEn(this.a,f(t,8))},N(zo,"JsonImporter/lambda$40$Type",942),P(907,1,{},nst),N(zo,"JsonImporter/lambda$5$Type",907),P(911,1,{},rst),N(zo,"JsonImporter/lambda$6$Type",911),P(909,1,{},ist),N(zo,"JsonImporter/lambda$7$Type",909),P(910,1,{},ost),N(zo,"JsonImporter/lambda$8$Type",910),P(913,1,{},sst),N(zo,"JsonImporter/lambda$9$Type",913),P(961,1,Rn,lst),p.Cd=function(t){r3(this.a,new Bv(or(t)))},N(zo,"JsonMetaDataConverter/lambda$0$Type",961),P(962,1,Rn,ast),p.Cd=function(t){xvn(this.a,f(t,245))},N(zo,"JsonMetaDataConverter/lambda$1$Type",962),P(963,1,Rn,cst),p.Cd=function(t){RSn(this.a,f(t,143))},N(zo,"JsonMetaDataConverter/lambda$2$Type",963),P(964,1,Rn,ust),p.Cd=function(t){Cvn(this.a,f(t,170))},N(zo,"JsonMetaDataConverter/lambda$3$Type",964),P(245,22,{3:1,34:1,22:1,245:1},Uk);var Pz,Oz,Ace,Nz,Mz,Dz,Tce,$ce,Lz=Wn(wM,"GraphFeature",245,qn,u3n,Zmn),CDt;P(11,1,{34:1,149:1},Xr,_i,Bt,Po),p.Fd=function(t){return _1n(this,f(t,149))},p.Fb=function(t){return Qbt(this,t)},p.Sg=function(){return dt(this)},p.Pg=function(){return this.b},p.Hb=function(){return mg(this.b)},p.Ib=function(){return this.b},N(wM,"Property",11),P(671,1,cr,dY),p.Ne=function(t,i){return ICn(this,f(t,96),f(i,96))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(wM,"PropertyHolderComparator",671),P(709,1,ko,g0e),p.Nb=function(t){Uo(this,t)},p.Pb=function(){return Pkn(this)},p.Qb=function(){sat()},p.Ob=function(){return!!this.a},N(iG,"ElkGraphUtil/AncestorIterator",709);var hOe=Ei(hs,"EList");P(70,56,{20:1,31:1,56:1,16:1,15:1,70:1,61:1}),p.bd=function(t,i){k6(this,t,i)},p.Fc=function(t){return zn(this,t)},p.cd=function(t,i){return $Se(this,t,i)},p.Gc=function(t){return Ii(this,t)},p.Ii=function(){return new qk(this)},p.Ji=function(){return new d7(this)},p.Ki=function(t){return iN(this,t)},p.Li=function(){return!0},p.Mi=function(t,i){},p.Ni=function(){},p.Oi=function(t,i){dee(this,t,i)},p.Pi=function(t,i,s){},p.Qi=function(t,i){},p.Ri=function(t,i,s){},p.Fb=function(t){return N3t(this,t)},p.Hb=function(){return xSe(this)},p.Si=function(){return!1},p.Kc=function(){return new Sn(this)},p.ed=function(){return new Kk(this)},p.fd=function(t){var i;if(i=this.gc(),t<0||t>i)throw ne(new Lv(t,i));return new wZ(this,t)},p.Ui=function(t,i){this.Ti(t,this.dd(i))},p.Mc=function(t){return _W(this,t)},p.Wi=function(t,i){return i},p.hd=function(t,i){return c2(this,t,i)},p.Ib=function(){return v2e(this)},p.Yi=function(){return!0},p.Zi=function(t,i){return VC(this,i)},N(hs,"AbstractEList",70),P(66,70,ep,Bj,Gm,vSe),p.Ei=function(t,i){return cne(this,t,i)},p.Fi=function(t){return ISt(this,t)},p.Gi=function(t,i){yN(this,t,i)},p.Hi=function(t){H7(this,t)},p.$i=function(t){return N_e(this,t)},p.$b=function(){s6(this)},p.Hc=function(t){return lA(this,t)},p.Xb=function(t){return Se(this,t)},p._i=function(t){var i,s,a;++this.j,s=this.g==null?0:this.g.length,t>s&&(a=this.g,i=s+(s/2|0)+4,i=0?(this.gd(i),!0):!1},p.Xi=function(t,i){return this.Dj(t,this.Zi(t,i))},p.gc=function(){return this.Ej()},p.Pc=function(){return this.Fj()},p.Qc=function(t){return this.Gj(t)},p.Ib=function(){return this.Hj()},N(hs,"DelegatingEList",2093),P(2094,2093,JTt),p.Ei=function(t,i){return b3e(this,t,i)},p.Fi=function(t){return this.Ei(this.Ej(),t)},p.Gi=function(t,i){_kt(this,t,i)},p.Hi=function(t){ckt(this,t)},p.Li=function(){return!this.Mj()},p.$b=function(){eI(this)},p.Ij=function(t,i,s,a,c){return new Ybt(this,t,i,s,a,c)},p.Jj=function(t){Dr(this.jj(),t)},p.Kj=function(){return null},p.Lj=function(){return-1},p.jj=function(){return null},p.Mj=function(){return!1},p.Nj=function(t,i){return i},p.Oj=function(t,i){return i},p.Pj=function(){return!1},p.Qj=function(){return!this.Aj()},p.Ti=function(t,i){var s,a;return this.Pj()?(a=this.Qj(),s=WEe(this,t,i),this.Jj(this.Ij(7,ot(i),s,t,a)),s):WEe(this,t,i)},p.gd=function(t){var i,s,a,c;return this.Pj()?(s=null,a=this.Qj(),i=this.Ij(4,c=yB(this,t),null,t,a),this.Mj()&&c?(s=this.Oj(c,s),s?(s.nj(i),s.oj()):this.Jj(i)):s?(s.nj(i),s.oj()):this.Jj(i),c):(c=yB(this,t),this.Mj()&&c&&(s=this.Oj(c,null),s&&s.oj()),c)},p.Xi=function(t,i){return ARt(this,t,i)},N(U3,"DelegatingNotifyingListImpl",2094),P(152,1,NM),p.nj=function(t){return xEe(this,t)},p.oj=function(){vee(this)},p.gj=function(){return this.d},p.Kj=function(){return null},p.Rj=function(){return null},p.hj=function(t){return-1},p.ij=function(){return b3t(this)},p.jj=function(){return null},p.kj=function(){return zke(this)},p.lj=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},p.Sj=function(){return!1},p.mj=function(t){var i,s,a,c,b,g,m,_,k,I,D;switch(this.d){case 1:case 2:switch(c=t.gj(),c){case 1:case 2:if(b=t.jj(),Ne(b)===Ne(this.jj())&&this.hj(null)==t.hj(null))return this.g=t.ij(),t.gj()==1&&(this.d=1),!0}case 4:{switch(c=t.gj(),c){case 4:{if(b=t.jj(),Ne(b)===Ne(this.jj())&&this.hj(null)==t.hj(null))return k=P3e(this),_=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,g=t.lj(),this.d=6,D=new Gm(2),_<=g?(zn(D,this.n),zn(D,t.kj()),this.g=se(ie(Xn,1),wr,28,15,[this.o=_,g+1])):(zn(D,t.kj()),zn(D,this.n),this.g=se(ie(Xn,1),wr,28,15,[this.o=g,_])),this.n=D,k||(this.o=-2-this.o-1),!0;break}}break}case 6:{switch(c=t.gj(),c){case 4:{if(b=t.jj(),Ne(b)===Ne(this.jj())&&this.hj(null)==t.hj(null)){for(k=P3e(this),g=t.lj(),I=f(this.g,53),a=Fe(Xn,wr,28,I.length+1,15,1),i=0;i>>0,i.toString(16))),a.a+=" (eventType: ",this.d){case 1:{a.a+="SET";break}case 2:{a.a+="UNSET";break}case 3:{a.a+="ADD";break}case 5:{a.a+="ADD_MANY";break}case 4:{a.a+="REMOVE";break}case 6:{a.a+="REMOVE_MANY";break}case 7:{a.a+="MOVE";break}case 8:{a.a+="REMOVING_ADAPTER";break}case 9:{a.a+="RESOLVE";break}default:{DY(a,this.d);break}}if(nRt(this)&&(a.a+=", touch: true"),a.a+=", position: ",DY(a,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),a.a+=", notifier: ",$$(a,this.jj()),a.a+=", feature: ",$$(a,this.Kj()),a.a+=", oldValue: ",$$(a,zke(this)),a.a+=", newValue: ",this.d==6&&ve(this.g,53)){for(s=f(this.g,53),a.a+="[",t=0;t10?((!this.b||this.c.j!=this.a)&&(this.b=new H$(this),this.a=this.j),Rd(this.b,t)):lA(this,t)},p.Yi=function(){return!0},p.a=0,N(hs,"AbstractEList/1",966),P(302,77,Lre,Lv),N(hs,"AbstractEList/BasicIndexOutOfBoundsException",302),P(37,1,ko,Sn),p.Nb=function(t){Uo(this,t)},p.Xj=function(){if(this.i.j!=this.f)throw ne(new Bu)},p.Yj=function(){return Cn(this)},p.Ob=function(){return this.e!=this.i.gc()},p.Pb=function(){return this.Yj()},p.Qb=function(){D6(this)},p.e=0,p.f=0,p.g=-1,N(hs,"AbstractEList/EIterator",37),P(286,37,kp,Kk,wZ),p.Qb=function(){D6(this)},p.Rb=function(t){T_t(this,t)},p.Zj=function(){var t;try{return t=this.d.Xb(--this.e),this.Xj(),this.g=this.e,t}catch(i){throw i=mi(i),ve(i,77)?(this.Xj(),ne(new yl)):ne(i)}},p.$j=function(t){NSt(this,t)},p.Sb=function(){return this.e!=0},p.Tb=function(){return this.e},p.Ub=function(){return this.Zj()},p.Vb=function(){return this.e-1},p.Wb=function(t){this.$j(t)},N(hs,"AbstractEList/EListIterator",286),P(355,37,ko,qk),p.Yj=function(){return Mte(this)},p.Qb=function(){throw ne(new rr)},N(hs,"AbstractEList/NonResolvingEIterator",355),P(398,286,kp,d7,aye),p.Rb=function(t){throw ne(new rr)},p.Yj=function(){var t;try{return t=this.c.Vi(this.e),this.Xj(),this.g=this.e++,t}catch(i){throw i=mi(i),ve(i,77)?(this.Xj(),ne(new yl)):ne(i)}},p.Zj=function(){var t;try{return t=this.c.Vi(--this.e),this.Xj(),this.g=this.e,t}catch(i){throw i=mi(i),ve(i,77)?(this.Xj(),ne(new yl)):ne(i)}},p.Qb=function(){throw ne(new rr)},p.Wb=function(t){throw ne(new rr)},N(hs,"AbstractEList/NonResolvingEListIterator",398),P(2080,70,YTt),p.Ei=function(t,i){var s,a,c,b,g,m,_,k,I,D,W;if(c=i.gc(),c!=0){for(k=f(dn(this.a,4),129),I=k==null?0:k.length,W=I+c,a=ite(this,W),D=I-t,D>0&&oa(k,t,a,t+c,D),_=i.Kc(),g=0;gs)throw ne(new Lv(t,s));return new ybt(this,t)},p.$b=function(){var t,i;++this.j,t=f(dn(this.a,4),129),i=t==null?0:t.length,rA(this,null),dee(this,i,t)},p.Hc=function(t){var i,s,a,c,b;if(i=f(dn(this.a,4),129),i!=null){if(t!=null){for(a=i,c=0,b=a.length;c=s)throw ne(new Lv(t,s));return i[t]},p.dd=function(t){var i,s,a;if(i=f(dn(this.a,4),129),i!=null){if(t!=null){for(s=0,a=i.length;ss)throw ne(new Lv(t,s));return new mbt(this,t)},p.Ti=function(t,i){var s,a,c;if(s=F_t(this),c=s==null?0:s.length,t>=c)throw ne(new Hs(Toe+t+xw+c));if(i>=c)throw ne(new Hs($oe+i+xw+c));return a=s[i],t!=i&&(t0&&oa(t,0,i,0,s),i},p.Qc=function(t){var i,s,a;return i=f(dn(this.a,4),129),a=i==null?0:i.length,a>0&&(t.lengtha&&Ci(t,a,null),t};var ADt;N(hs,"ArrayDelegatingEList",2080),P(1051,37,ko,v0t),p.Xj=function(){if(this.b.j!=this.f||Ne(f(dn(this.b.a,4),129))!==Ne(this.a))throw ne(new Bu)},p.Qb=function(){D6(this),this.a=f(dn(this.b.a,4),129)},N(hs,"ArrayDelegatingEList/EIterator",1051),P(722,286,kp,Ppt,mbt),p.Xj=function(){if(this.b.j!=this.f||Ne(f(dn(this.b.a,4),129))!==Ne(this.a))throw ne(new Bu)},p.$j=function(t){NSt(this,t),this.a=f(dn(this.b.a,4),129)},p.Qb=function(){D6(this),this.a=f(dn(this.b.a,4),129)},N(hs,"ArrayDelegatingEList/EListIterator",722),P(1052,355,ko,_0t),p.Xj=function(){if(this.b.j!=this.f||Ne(f(dn(this.b.a,4),129))!==Ne(this.a))throw ne(new Bu)},N(hs,"ArrayDelegatingEList/NonResolvingEIterator",1052),P(723,398,kp,Opt,ybt),p.Xj=function(){if(this.b.j!=this.f||Ne(f(dn(this.b.a,4),129))!==Ne(this.a))throw ne(new Bu)},N(hs,"ArrayDelegatingEList/NonResolvingEListIterator",723),P(615,302,Lre,SQ),N(hs,"BasicEList/BasicIndexOutOfBoundsException",615),P(710,66,ep,Jwe),p.bd=function(t,i){throw ne(new rr)},p.Fc=function(t){throw ne(new rr)},p.cd=function(t,i){throw ne(new rr)},p.Gc=function(t){throw ne(new rr)},p.$b=function(){throw ne(new rr)},p._i=function(t){throw ne(new rr)},p.Kc=function(){return this.Ii()},p.ed=function(){return this.Ji()},p.fd=function(t){return this.Ki(t)},p.Ti=function(t,i){throw ne(new rr)},p.Ui=function(t,i){throw ne(new rr)},p.gd=function(t){throw ne(new rr)},p.Mc=function(t){throw ne(new rr)},p.hd=function(t,i){throw ne(new rr)},N(hs,"BasicEList/UnmodifiableEList",710),P(721,1,{3:1,20:1,16:1,15:1,61:1,597:1}),p.bd=function(t,i){c1n(this,t,f(i,44))},p.Fc=function(t){return n0n(this,f(t,44))},p.Jc=function(t){Vo(this,t)},p.Xb=function(t){return f(Se(this.c,t),136)},p.Ti=function(t,i){return f(this.c.Ti(t,i),44)},p.Ui=function(t,i){u1n(this,t,f(i,44))},p.Lc=function(){return new Wt(null,new Vt(this,16))},p.gd=function(t){return f(this.c.gd(t),44)},p.hd=function(t,i){return Rvn(this,t,f(i,44))},p.jd=function(t){sw(this,t)},p.Nc=function(){return new Vt(this,16)},p.Oc=function(){return new Wt(null,new Vt(this,16))},p.cd=function(t,i){return this.c.cd(t,i)},p.Gc=function(t){return this.c.Gc(t)},p.$b=function(){this.c.$b()},p.Hc=function(t){return this.c.Hc(t)},p.Ic=function(t){return uN(this.c,t)},p._j=function(){var t,i,s;if(this.d==null){for(this.d=Fe(pOe,EAe,66,2*this.f+1,0,1),s=this.e,this.f=0,i=this.c.Kc();i.e!=i.i.gc();)t=f(i.Yj(),136),EH(this,t);this.e=s}},p.Fb=function(t){return sht(this,t)},p.Hb=function(){return xSe(this.c)},p.dd=function(t){return this.c.dd(t)},p.ak=function(){this.c=new fst(this)},p.dc=function(){return this.f==0},p.Kc=function(){return this.c.Kc()},p.ed=function(){return this.c.ed()},p.fd=function(t){return this.c.fd(t)},p.bk=function(){return V7(this)},p.ck=function(t,i,s){return new yht(t,i,s)},p.dk=function(){return new hZe},p.Mc=function(t){return zmt(this,t)},p.gc=function(){return this.f},p.kd=function(t,i){return new dg(this.c,t,i)},p.Pc=function(){return this.c.Pc()},p.Qc=function(t){return this.c.Qc(t)},p.Ib=function(){return v2e(this.c)},p.e=0,p.f=0,N(hs,"BasicEMap",721),P(1046,66,ep,fst),p.Mi=function(t,i){Wpn(this,f(i,136))},p.Pi=function(t,i,s){var a;++(a=this,f(i,136),a).a.e},p.Qi=function(t,i){Hpn(this,f(i,136))},p.Ri=function(t,i,s){W1n(this,f(i,136),f(s,136))},p.Oi=function(t,i){Fyt(this.a)},N(hs,"BasicEMap/1",1046),P(1047,66,ep,hZe),p.aj=function(t){return Fe(TFn,QTt,621,t,0,1)},N(hs,"BasicEMap/2",1047),P(1048,lh,wc,dst),p.$b=function(){this.a.c.$b()},p.Hc=function(t){return Rte(this.a,t)},p.Kc=function(){return this.a.f==0?(oC(),Y9.a):new qlt(this.a)},p.Mc=function(t){var i;return i=this.a.f,fH(this.a,t),this.a.f!=i},p.gc=function(){return this.a.f},N(hs,"BasicEMap/3",1048),P(1049,31,p_,hst),p.$b=function(){this.a.c.$b()},p.Hc=function(t){return M3t(this.a,t)},p.Kc=function(){return this.a.f==0?(oC(),Y9.a):new Xlt(this.a)},p.gc=function(){return this.a.f},N(hs,"BasicEMap/4",1049),P(1050,lh,wc,pst),p.$b=function(){this.a.c.$b()},p.Hc=function(t){var i,s,a,c,b,g,m,_,k;if(this.a.f>0&&ve(t,44)&&(this.a._j(),_=f(t,44),m=_.ld(),c=m==null?0:ti(m),b=Kme(this.a,c),i=this.a.d[b],i)){for(s=f(i.g,379),k=i.i,g=0;g"+this.c},p.a=0;var TFn=N(hs,"BasicEMap/EntryImpl",621);P(546,1,{},Wj),N(hs,"BasicEMap/View",546);var Y9;P(783,1,{}),p.Fb=function(t){return Tke((qt(),ps),t)},p.Hb=function(){return jSe((qt(),ps))},p.Ib=function(){return B1((qt(),ps))},N(hs,"ECollections/BasicEmptyUnmodifiableEList",783),P(1348,1,kp,pZe),p.Nb=function(t){Uo(this,t)},p.Rb=function(t){throw ne(new rr)},p.Ob=function(){return!1},p.Sb=function(){return!1},p.Pb=function(){throw ne(new yl)},p.Tb=function(){return 0},p.Ub=function(){throw ne(new yl)},p.Vb=function(){return-1},p.Qb=function(){throw ne(new rr)},p.Wb=function(t){throw ne(new rr)},N(hs,"ECollections/BasicEmptyUnmodifiableEList/1",1348),P(1346,783,{20:1,16:1,15:1,61:1},ilt),p.bd=function(t,i){yat()},p.Fc=function(t){return vat()},p.cd=function(t,i){return _at()},p.Gc=function(t){return Sat()},p.$b=function(){Eat()},p.Hc=function(t){return!1},p.Ic=function(t){return!1},p.Jc=function(t){Vo(this,t)},p.Xb=function(t){return Zwe((qt(),t)),null},p.dd=function(t){return-1},p.dc=function(){return!0},p.Kc=function(){return this.a},p.ed=function(){return this.a},p.fd=function(t){return this.a},p.Ti=function(t,i){return kat()},p.Ui=function(t,i){Rat()},p.Lc=function(){return new Wt(null,new Vt(this,16))},p.gd=function(t){return xat()},p.Mc=function(t){return Cat()},p.hd=function(t,i){return Aat()},p.gc=function(){return 0},p.jd=function(t){sw(this,t)},p.Nc=function(){return new Vt(this,16)},p.Oc=function(){return new Wt(null,new Vt(this,16))},p.kd=function(t,i){return qt(),new dg(ps,t,i)},p.Pc=function(){return Jye((qt(),ps))},p.Qc=function(t){return qt(),P6(ps,t)},N(hs,"ECollections/EmptyUnmodifiableEList",1346),P(1347,783,{20:1,16:1,15:1,61:1,597:1},olt),p.bd=function(t,i){yat()},p.Fc=function(t){return vat()},p.cd=function(t,i){return _at()},p.Gc=function(t){return Sat()},p.$b=function(){Eat()},p.Hc=function(t){return!1},p.Ic=function(t){return!1},p.Jc=function(t){Vo(this,t)},p.Xb=function(t){return Zwe((qt(),t)),null},p.dd=function(t){return-1},p.dc=function(){return!0},p.Kc=function(){return this.a},p.ed=function(){return this.a},p.fd=function(t){return this.a},p.Ti=function(t,i){return kat()},p.Ui=function(t,i){Rat()},p.Lc=function(){return new Wt(null,new Vt(this,16))},p.gd=function(t){return xat()},p.Mc=function(t){return Cat()},p.hd=function(t,i){return Aat()},p.gc=function(){return 0},p.jd=function(t){sw(this,t)},p.Nc=function(){return new Vt(this,16)},p.Oc=function(){return new Wt(null,new Vt(this,16))},p.kd=function(t,i){return qt(),new dg(ps,t,i)},p.Pc=function(){return Jye((qt(),ps))},p.Qc=function(t){return qt(),P6(ps,t)},p.bk=function(){return qt(),qt(),Ip},N(hs,"ECollections/EmptyUnmodifiableEMap",1347);var gOe=Ei(hs,"Enumerator"),jz;P(288,1,{288:1},Pne),p.Fb=function(t){var i;return this===t?!0:ve(t,288)?(i=f(t,288),this.f==i.f&&Wyn(this.i,i.i)&&oZ(this.a,this.f&256?i.f&256?i.a:null:i.f&256?null:i.a)&&oZ(this.d,i.d)&&oZ(this.g,i.g)&&oZ(this.e,i.e)&&f4n(this,i)):!1},p.Hb=function(){return this.f},p.Ib=function(){return pRt(this)},p.f=0;var TDt=0,$Dt=0,IDt=0,PDt=0,wOe=0,mOe=0,yOe=0,vOe=0,_Oe=0,ODt,j5=0,F5=0,NDt=0,MDt=0,Fz,SOe;N(hs,"URI",288),P(1121,45,k2,slt),p.zc=function(t,i){return f(Gs(this,or(t),f(i,288)),288)},N(hs,"URI/URICache",1121),P(506,66,ep,aZe,RB),p.Si=function(){return!0},N(hs,"UniqueEList",506),P(590,63,Cb,mW),N(hs,"WrappedException",590);var _r=Ei(of,t$t),J_=Ei(of,n$t),rc=Ei(of,r$t),Y_=Ei(of,i$t),Wd=Ei(of,o$t),Pf=Ei(of,"EClass"),Oce=Ei(of,"EDataType"),DDt;P(1233,45,k2,llt),p.xc=function(t){return Eo(t)?ua(this,t):tl(xs(this.f,t))},N(of,"EDataType/Internal/ConversionDelegate/Factory/Registry/Impl",1233);var Bz=Ei(of,"EEnum"),Db=Ei(of,s$t),Os=Ei(of,l$t),Of=Ei(of,a$t),Nf,Ly=Ei(of,c$t),Q_=Ei(of,u$t);P(1042,1,{},lZe),p.Ib=function(){return"NIL"},N(of,"EStructuralFeature/Internal/DynamicValueHolder/1",1042);var LDt;P(1041,45,k2,alt),p.xc=function(t){return Eo(t)?ua(this,t):tl(xs(this.f,t))},N(of,"EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl",1041);var Ga=Ei(of,f$t),dR=Ei(of,"EValidator/PatternMatcher"),EOe,kOe,un,Ug,Z_,p0,jDt,FDt,BDt,b0,Gg,g0,jy,vh,WDt,HDt,Mf,Vg,UDt,zg,eS,pE,_s,GDt,VDt,Fy,Wz=Ei(fi,"FeatureMap/Entry");P(545,1,{76:1},HF),p.Lk=function(){return this.a},p.md=function(){return this.b},N(fn,"BasicEObjectImpl/1",545),P(1040,1,Doe,$ut),p.Fk=function(t){return aee(this.a,this.b,t)},p.Qj=function(){return dgt(this.a,this.b)},p.Wb=function(t){jve(this.a,this.b,t)},p.Gk=function(){jvn(this.a,this.b)},N(fn,"BasicEObjectImpl/4",1040),P(2081,1,{114:1}),p.Mk=function(t){this.e=t==0?zDt:Fe(ho,on,1,t,5,1)},p.li=function(t){return this.e[t]},p.mi=function(t,i){this.e[t]=i},p.ni=function(t){this.e[t]=null},p.Nk=function(){return this.c},p.Ok=function(){throw ne(new rr)},p.Pk=function(){throw ne(new rr)},p.Qk=function(){return this.d},p.Rk=function(){return this.e!=null},p.Sk=function(t){this.c=t},p.Tk=function(t){throw ne(new rr)},p.Uk=function(t){throw ne(new rr)},p.Vk=function(t){this.d=t};var zDt;N(fn,"BasicEObjectImpl/EPropertiesHolderBaseImpl",2081),P(192,2081,{114:1},Ed),p.Ok=function(){return this.a},p.Pk=function(){return this.b},p.Tk=function(t){this.a=t},p.Uk=function(t){this.b=t},N(fn,"BasicEObjectImpl/EPropertiesHolderImpl",192),P(516,99,dTt,Hj),p.uh=function(){return this.f},p.zh=function(){return this.k},p.Bh=function(t,i){this.g=t,this.i=i},p.Dh=function(){return this.j&2?this.$h().Nk():this.ii()},p.Fh=function(){return this.i},p.wh=function(){return(this.j&1)!=0},p.Ph=function(){return this.g},p.Vh=function(){return(this.j&4)!=0},p.$h=function(){return!this.k&&(this.k=new Ed),this.k},p.ci=function(t){this.$h().Sk(t),t?this.j|=2:this.j&=-3},p.ei=function(t){this.$h().Uk(t),t?this.j|=4:this.j&=-5},p.ii=function(){return(C1(),un).S},p.i=0,p.j=1,N(fn,"EObjectImpl",516),P(798,516,{110:1,94:1,93:1,58:1,114:1,54:1,99:1},Oye),p.li=function(t){return this.e[t]},p.mi=function(t,i){this.e[t]=i},p.ni=function(t){this.e[t]=null},p.Dh=function(){return this.d},p.Ih=function(t){return yi(this.d,t)},p.Kh=function(){return this.d},p.Oh=function(){return this.e!=null},p.$h=function(){return!this.k&&(this.k=new bZe),this.k},p.ci=function(t){this.d=t},p.hi=function(){var t;return this.e==null&&(t=Pn(this.d),this.e=t==0?KDt:Fe(ho,on,1,t,5,1)),this},p.ji=function(){return 0};var KDt;N(fn,"DynamicEObjectImpl",798),P(1522,798,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1},Ght),p.Fb=function(t){return this===t},p.Hb=function(){return Cm(this)},p.ci=function(t){this.d=t,this.b=zN(t,"key"),this.c=zN(t,EI)},p.Bi=function(){var t;return this.a==-1&&(t=_ee(this,this.b),this.a=t==null?0:ti(t)),this.a},p.ld=function(){return _ee(this,this.b)},p.md=function(){return _ee(this,this.c)},p.Ci=function(t){this.a=t},p.Di=function(t){jve(this,this.b,t)},p.nd=function(t){var i;return i=_ee(this,this.c),jve(this,this.c,t),i},p.a=0,N(fn,"DynamicEObjectImpl/BasicEMapEntry",1522),P(1523,1,{114:1},bZe),p.Mk=function(t){throw ne(new rr)},p.li=function(t){throw ne(new rr)},p.mi=function(t,i){throw ne(new rr)},p.ni=function(t){throw ne(new rr)},p.Nk=function(){throw ne(new rr)},p.Ok=function(){return this.a},p.Pk=function(){return this.b},p.Qk=function(){return this.c},p.Rk=function(){throw ne(new rr)},p.Sk=function(t){throw ne(new rr)},p.Tk=function(t){this.a=t},p.Uk=function(t){this.b=t},p.Vk=function(t){this.c=t},N(fn,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1523),P(519,158,{110:1,94:1,93:1,598:1,155:1,58:1,114:1,54:1,99:1,519:1,158:1,119:1,120:1},D1e),p.Ah=function(t){return cEe(this,t)},p.Lh=function(t,i,s){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),this.Ab;case 1:return this.d;case 2:return s?(!this.b&&(this.b=new nu((Kt(),_s),Ll,this)),this.b):(!this.b&&(this.b=new nu((Kt(),_s),Ll,this)),V7(this.b));case 3:return wgt(this);case 4:return!this.a&&(this.a=new zi(d0,this,4)),this.a;case 5:return!this.c&&(this.c=new KS(d0,this,5)),this.c}return qu(this,t-Pn((Kt(),Ug)),tn((a=f(dn(this,16),29),a||Ug),t),i,s)},p.Sh=function(t,i,s){var a,c,b;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),xa(this.Ab,t,s);case 3:return this.Cb&&(s=(c=this.Db>>16,c>=0?cEe(this,s):this.Cb.Th(this,-1-c,null,s))),Xye(this,f(t,155),s)}return b=f(tn((a=f(dn(this,16),29),a||(Kt(),Ug)),i),69),b.wk().zk(this,ja(this),i-Pn((Kt(),Ug)),t,s)},p.Uh=function(t,i,s){var a,c;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),fs(this.Ab,t,s);case 2:return!this.b&&(this.b=new nu((Kt(),_s),Ll,this)),lB(this.b,t,s);case 3:return Xye(this,null,s);case 4:return!this.a&&(this.a=new zi(d0,this,4)),fs(this.a,t,s)}return c=f(tn((a=f(dn(this,16),29),a||(Kt(),Ug)),i),69),c.wk().Ak(this,ja(this),i-Pn((Kt(),Ug)),t,s)},p.Wh=function(t){var i;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.d!=null;case 2:return!!this.b&&this.b.f!=0;case 3:return!!wgt(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return zu(this,t-Pn((Kt(),Ug)),tn((i=f(dn(this,16),29),i||Ug),t))},p.bi=function(t,i){var s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return;case 1:Ayn(this,or(i));return;case 2:!this.b&&(this.b=new nu((Kt(),_s),Ll,this)),UW(this.b,i);return;case 3:n3t(this,f(i,155));return;case 4:!this.a&&(this.a=new zi(d0,this,4)),Vn(this.a),!this.a&&(this.a=new zi(d0,this,4)),Ii(this.a,f(i,16));return;case 5:!this.c&&(this.c=new KS(d0,this,5)),Vn(this.c),!this.c&&(this.c=new KS(d0,this,5)),Ii(this.c,f(i,16));return}Qu(this,t-Pn((Kt(),Ug)),tn((s=f(dn(this,16),29),s||Ug),t),i)},p.ii=function(){return Kt(),Ug},p.ki=function(t){var i;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return;case 1:uSe(this,null);return;case 2:!this.b&&(this.b=new nu((Kt(),_s),Ll,this)),this.b.c.$b();return;case 3:n3t(this,null);return;case 4:!this.a&&(this.a=new zi(d0,this,4)),Vn(this.a);return;case 5:!this.c&&(this.c=new KS(d0,this,5)),Vn(this.c);return}Yu(this,t-Pn((Kt(),Ug)),tn((i=f(dn(this,16),29),i||Ug),t))},p.Ib=function(){return s_t(this)},p.d=null,N(fn,"EAnnotationImpl",519),P(141,721,kAe,pc),p.Gi=function(t,i){zgn(this,t,f(i,44))},p.Wk=function(t,i){return q0n(this,f(t,44),i)},p.$i=function(t){return f(f(this.c,71).$i(t),136)},p.Ii=function(){return f(this.c,71).Ii()},p.Ji=function(){return f(this.c,71).Ji()},p.Ki=function(t){return f(this.c,71).Ki(t)},p.Xk=function(t,i){return lB(this,t,i)},p.Fk=function(t){return f(this.c,79).Fk(t)},p.ak=function(){},p.Qj=function(){return f(this.c,79).Qj()},p.ck=function(t,i,s){var a;return a=f(vu(this.b).wi().si(this.b),136),a.Ci(t),a.Di(i),a.nd(s),a},p.dk=function(){return new m0e(this)},p.Wb=function(t){UW(this,t)},p.Gk=function(){f(this.c,79).Gk()},N(fi,"EcoreEMap",141),P(165,141,kAe,nu),p._j=function(){var t,i,s,a,c,b;if(this.d==null){for(b=Fe(pOe,EAe,66,2*this.f+1,0,1),s=this.c.Kc();s.e!=s.i.gc();)i=f(s.Yj(),136),a=i.Bi(),c=(a&Nr)%b.length,t=b[c],!t&&(t=b[c]=new m0e(this)),t.Fc(i);this.d=b}},N(fn,"EAnnotationImpl/1",165),P(292,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,481:1,54:1,99:1,158:1,292:1,119:1,120:1}),p.Lh=function(t,i,s){var a,c;switch(t){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),this.Ab;case 1:return this.zb;case 2:return cn(),!!(this.Bb&256);case 3:return cn(),!!(this.Bb&512);case 4:return ot(this.s);case 5:return ot(this.t);case 6:return cn(),!!this.Jk();case 7:return cn(),c=this.s,c>=1;case 8:return i?_f(this):this.r;case 9:return this.q}return qu(this,t-Pn(this.ii()),tn((a=f(dn(this,16),29),a||this.ii()),t),i,s)},p.Uh=function(t,i,s){var a,c;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),fs(this.Ab,t,s);case 9:return vZ(this,s)}return c=f(tn((a=f(dn(this,16),29),a||this.ii()),i),69),c.wk().Ak(this,ja(this),i-Pn(this.ii()),t,s)},p.Wh=function(t){var i,s;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Jk();case 7:return s=this.s,s>=1;case 8:return!!this.r&&!this.q.e&&Mm(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Mm(this.q).i==0)}return zu(this,t-Pn(this.ii()),tn((i=f(dn(this,16),29),i||this.ii()),t))},p.bi=function(t,i){var s,a;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return;case 1:this.ui(or(i));return;case 2:_g(this,wt(gt(i)));return;case 3:Sg(this,wt(gt(i)));return;case 4:wg(this,f(i,17).a);return;case 5:this.Zk(f(i,17).a);return;case 8:dw(this,f(i,142));return;case 9:a=oh(this,f(i,89),null),a&&a.oj();return}Qu(this,t-Pn(this.ii()),tn((s=f(dn(this,16),29),s||this.ii()),t),i)},p.ii=function(){return Kt(),VDt},p.ki=function(t){var i,s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return;case 1:this.ui(null);return;case 2:_g(this,!0);return;case 3:Sg(this,!0);return;case 4:wg(this,0);return;case 5:this.Zk(1);return;case 8:dw(this,null);return;case 9:s=oh(this,null,null),s&&s.oj();return}Yu(this,t-Pn(this.ii()),tn((i=f(dn(this,16),29),i||this.ii()),t))},p.pi=function(){_f(this),this.Bb|=1},p.Hk=function(){return _f(this)},p.Ik=function(){return this.t},p.Jk=function(){var t;return t=this.t,t>1||t==-1},p.Si=function(){return(this.Bb&512)!=0},p.Yk=function(t,i){return r2e(this,t,i)},p.Zk=function(t){Jv(this,t)},p.Ib=function(){return vke(this)},p.s=0,p.t=1,N(fn,"ETypedElementImpl",292),P(462,292,{110:1,94:1,93:1,155:1,197:1,58:1,179:1,69:1,114:1,481:1,54:1,99:1,158:1,462:1,292:1,119:1,120:1,692:1}),p.Ah=function(t){return XSt(this,t)},p.Lh=function(t,i,s){var a,c;switch(t){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),this.Ab;case 1:return this.zb;case 2:return cn(),!!(this.Bb&256);case 3:return cn(),!!(this.Bb&512);case 4:return ot(this.s);case 5:return ot(this.t);case 6:return cn(),!!this.Jk();case 7:return cn(),c=this.s,c>=1;case 8:return i?_f(this):this.r;case 9:return this.q;case 10:return cn(),!!(this.Bb&sd);case 11:return cn(),!!(this.Bb&E_);case 12:return cn(),!!(this.Bb&g_);case 13:return this.j;case 14:return hA(this);case 15:return cn(),!!(this.Bb&yc);case 16:return cn(),!!(this.Bb&Vh);case 17:return Hv(this)}return qu(this,t-Pn(this.ii()),tn((a=f(dn(this,16),29),a||this.ii()),t),i,s)},p.Sh=function(t,i,s){var a,c,b;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),xa(this.Ab,t,s);case 17:return this.Cb&&(s=(c=this.Db>>16,c>=0?XSt(this,s):this.Cb.Th(this,-1-c,null,s))),xu(this,t,17,s)}return b=f(tn((a=f(dn(this,16),29),a||this.ii()),i),69),b.wk().zk(this,ja(this),i-Pn(this.ii()),t,s)},p.Uh=function(t,i,s){var a,c;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),fs(this.Ab,t,s);case 9:return vZ(this,s);case 17:return xu(this,null,17,s)}return c=f(tn((a=f(dn(this,16),29),a||this.ii()),i),69),c.wk().Ak(this,ja(this),i-Pn(this.ii()),t,s)},p.Wh=function(t){var i,s;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Jk();case 7:return s=this.s,s>=1;case 8:return!!this.r&&!this.q.e&&Mm(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Mm(this.q).i==0);case 10:return(this.Bb&sd)==0;case 11:return(this.Bb&E_)!=0;case 12:return(this.Bb&g_)!=0;case 13:return this.j!=null;case 14:return hA(this)!=null;case 15:return(this.Bb&yc)!=0;case 16:return(this.Bb&Vh)!=0;case 17:return!!Hv(this)}return zu(this,t-Pn(this.ii()),tn((i=f(dn(this,16),29),i||this.ii()),t))},p.bi=function(t,i){var s,a;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return;case 1:KZ(this,or(i));return;case 2:_g(this,wt(gt(i)));return;case 3:Sg(this,wt(gt(i)));return;case 4:wg(this,f(i,17).a);return;case 5:this.Zk(f(i,17).a);return;case 8:dw(this,f(i,142));return;case 9:a=oh(this,f(i,89),null),a&&a.oj();return;case 10:JC(this,wt(gt(i)));return;case 11:ZC(this,wt(gt(i)));return;case 12:YC(this,wt(gt(i)));return;case 13:Xwe(this,or(i));return;case 15:QC(this,wt(gt(i)));return;case 16:eA(this,wt(gt(i)));return}Qu(this,t-Pn(this.ii()),tn((s=f(dn(this,16),29),s||this.ii()),t),i)},p.ii=function(){return Kt(),GDt},p.ki=function(t){var i,s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return;case 1:ve(this.Cb,90)&&l_(Bc(f(this.Cb,90)),4),Ra(this,null);return;case 2:_g(this,!0);return;case 3:Sg(this,!0);return;case 4:wg(this,0);return;case 5:this.Zk(1);return;case 8:dw(this,null);return;case 9:s=oh(this,null,null),s&&s.oj();return;case 10:JC(this,!0);return;case 11:ZC(this,!1);return;case 12:YC(this,!1);return;case 13:this.i=null,LW(this,null);return;case 15:QC(this,!1);return;case 16:eA(this,!1);return}Yu(this,t-Pn(this.ii()),tn((i=f(dn(this,16),29),i||this.ii()),t))},p.pi=function(){gC(Vs((gc(),qo),this)),_f(this),this.Bb|=1},p.pk=function(){return this.f},p.ik=function(){return hA(this)},p.qk=function(){return Hv(this)},p.uk=function(){return null},p.$k=function(){return this.k},p.Lj=function(){return this.n},p.vk=function(){return IH(this)},p.wk=function(){var t,i,s,a,c,b,g,m,_;return this.p||(s=Hv(this),(s.i==null&&Gh(s),s.i).length,a=this.uk(),a&&Pn(Hv(a)),c=_f(this),g=c.kk(),t=g?g.i&1?g==Xc?Li:g==Xn?Ko:g==nS?XA:g==Ro?Qi:g==m0?my:g==mE?yy:g==_c?G3:NI:g:null,i=hA(this),m=c.ik(),HCn(this),this.Bb&Vh&&((b=gEe((gc(),qo),s))&&b!=this||(b=a3(Vs(qo,this))))?this.p=new Put(this,b):this.Jk()?this.al()?a?this.Bb&yc?t?this.bl()?this.p=new Z0(47,t,this,a):this.p=new Z0(5,t,this,a):this.bl()?this.p=new iw(46,this,a):this.p=new iw(4,this,a):t?this.bl()?this.p=new Z0(49,t,this,a):this.p=new Z0(7,t,this,a):this.bl()?this.p=new iw(48,this,a):this.p=new iw(6,this,a):this.Bb&yc?t?t==Tw?this.p=new cg(50,xDt,this):this.bl()?this.p=new cg(43,t,this):this.p=new cg(1,t,this):this.bl()?this.p=new fg(42,this):this.p=new fg(0,this):t?t==Tw?this.p=new cg(41,xDt,this):this.bl()?this.p=new cg(45,t,this):this.p=new cg(3,t,this):this.bl()?this.p=new fg(44,this):this.p=new fg(2,this):ve(c,156)?t==Wz?this.p=new fg(40,this):this.Bb&512?this.Bb&yc?t?this.p=new cg(9,t,this):this.p=new fg(8,this):t?this.p=new cg(11,t,this):this.p=new fg(10,this):this.Bb&yc?t?this.p=new cg(13,t,this):this.p=new fg(12,this):t?this.p=new cg(15,t,this):this.p=new fg(14,this):a?(_=a.t,_>1||_==-1?this.bl()?this.Bb&yc?t?this.p=new Z0(25,t,this,a):this.p=new iw(24,this,a):t?this.p=new Z0(27,t,this,a):this.p=new iw(26,this,a):this.Bb&yc?t?this.p=new Z0(29,t,this,a):this.p=new iw(28,this,a):t?this.p=new Z0(31,t,this,a):this.p=new iw(30,this,a):this.bl()?this.Bb&yc?t?this.p=new Z0(33,t,this,a):this.p=new iw(32,this,a):t?this.p=new Z0(35,t,this,a):this.p=new iw(34,this,a):this.Bb&yc?t?this.p=new Z0(37,t,this,a):this.p=new iw(36,this,a):t?this.p=new Z0(39,t,this,a):this.p=new iw(38,this,a)):this.bl()?this.Bb&yc?t?this.p=new cg(17,t,this):this.p=new fg(16,this):t?this.p=new cg(19,t,this):this.p=new fg(18,this):this.Bb&yc?t?this.p=new cg(21,t,this):this.p=new fg(20,this):t?this.p=new cg(23,t,this):this.p=new fg(22,this):this._k()?this.bl()?this.p=new vht(f(c,29),this,a):this.p=new Dve(f(c,29),this,a):ve(c,156)?t==Wz?this.p=new fg(40,this):this.Bb&yc?t?this.p=new ypt(i,m,this,(xte(),g==Xn?IOe:g==Xc?xOe:g==m0?POe:g==nS?$Oe:g==Ro?TOe:g==mE?OOe:g==_c?COe:g==df?AOe:Dce)):this.p=new Pbt(f(c,156),i,m,this):t?this.p=new mpt(i,m,this,(xte(),g==Xn?IOe:g==Xc?xOe:g==m0?POe:g==nS?$Oe:g==Ro?TOe:g==mE?OOe:g==_c?COe:g==df?AOe:Dce)):this.p=new Ibt(f(c,156),i,m,this):this.al()?a?this.Bb&yc?this.bl()?this.p=new Sht(f(c,29),this,a):this.p=new _ye(f(c,29),this,a):this.bl()?this.p=new _ht(f(c,29),this,a):this.p=new QQ(f(c,29),this,a):this.Bb&yc?this.bl()?this.p=new mdt(f(c,29),this):this.p=new Mme(f(c,29),this):this.bl()?this.p=new wdt(f(c,29),this):this.p=new FQ(f(c,29),this):this.bl()?a?this.Bb&yc?this.p=new Eht(f(c,29),this,a):this.p=new yye(f(c,29),this,a):this.Bb&yc?this.p=new ydt(f(c,29),this):this.p=new Dme(f(c,29),this):a?this.Bb&yc?this.p=new kht(f(c,29),this,a):this.p=new vye(f(c,29),this,a):this.Bb&yc?this.p=new vdt(f(c,29),this):this.p=new kB(f(c,29),this)),this.p},p.rk=function(){return(this.Bb&sd)!=0},p._k=function(){return!1},p.al=function(){return!1},p.sk=function(){return(this.Bb&Vh)!=0},p.xk=function(){return See(this)},p.bl=function(){return!1},p.tk=function(){return(this.Bb&yc)!=0},p.cl=function(t){this.k=t},p.ui=function(t){KZ(this,t)},p.Ib=function(){return QH(this)},p.e=!1,p.n=0,N(fn,"EStructuralFeatureImpl",462),P(331,462,{110:1,94:1,93:1,35:1,155:1,197:1,58:1,179:1,69:1,114:1,481:1,54:1,99:1,331:1,158:1,462:1,292:1,119:1,120:1,692:1},yY),p.Lh=function(t,i,s){var a,c;switch(t){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),this.Ab;case 1:return this.zb;case 2:return cn(),!!(this.Bb&256);case 3:return cn(),!!(this.Bb&512);case 4:return ot(this.s);case 5:return ot(this.t);case 6:return cn(),!!pke(this);case 7:return cn(),c=this.s,c>=1;case 8:return i?_f(this):this.r;case 9:return this.q;case 10:return cn(),!!(this.Bb&sd);case 11:return cn(),!!(this.Bb&E_);case 12:return cn(),!!(this.Bb&g_);case 13:return this.j;case 14:return hA(this);case 15:return cn(),!!(this.Bb&yc);case 16:return cn(),!!(this.Bb&Vh);case 17:return Hv(this);case 18:return cn(),!!(this.Bb&Vl);case 19:return i?zee(this):M0t(this)}return qu(this,t-Pn((Kt(),Z_)),tn((a=f(dn(this,16),29),a||Z_),t),i,s)},p.Wh=function(t){var i,s;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return pke(this);case 7:return s=this.s,s>=1;case 8:return!!this.r&&!this.q.e&&Mm(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Mm(this.q).i==0);case 10:return(this.Bb&sd)==0;case 11:return(this.Bb&E_)!=0;case 12:return(this.Bb&g_)!=0;case 13:return this.j!=null;case 14:return hA(this)!=null;case 15:return(this.Bb&yc)!=0;case 16:return(this.Bb&Vh)!=0;case 17:return!!Hv(this);case 18:return(this.Bb&Vl)!=0;case 19:return!!M0t(this)}return zu(this,t-Pn((Kt(),Z_)),tn((i=f(dn(this,16),29),i||Z_),t))},p.bi=function(t,i){var s,a;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return;case 1:KZ(this,or(i));return;case 2:_g(this,wt(gt(i)));return;case 3:Sg(this,wt(gt(i)));return;case 4:wg(this,f(i,17).a);return;case 5:Qlt(this,f(i,17).a);return;case 8:dw(this,f(i,142));return;case 9:a=oh(this,f(i,89),null),a&&a.oj();return;case 10:JC(this,wt(gt(i)));return;case 11:ZC(this,wt(gt(i)));return;case 12:YC(this,wt(gt(i)));return;case 13:Xwe(this,or(i));return;case 15:QC(this,wt(gt(i)));return;case 16:eA(this,wt(gt(i)));return;case 18:mte(this,wt(gt(i)));return}Qu(this,t-Pn((Kt(),Z_)),tn((s=f(dn(this,16),29),s||Z_),t),i)},p.ii=function(){return Kt(),Z_},p.ki=function(t){var i,s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return;case 1:ve(this.Cb,90)&&l_(Bc(f(this.Cb,90)),4),Ra(this,null);return;case 2:_g(this,!0);return;case 3:Sg(this,!0);return;case 4:wg(this,0);return;case 5:this.b=0,Jv(this,1);return;case 8:dw(this,null);return;case 9:s=oh(this,null,null),s&&s.oj();return;case 10:JC(this,!0);return;case 11:ZC(this,!1);return;case 12:YC(this,!1);return;case 13:this.i=null,LW(this,null);return;case 15:QC(this,!1);return;case 16:eA(this,!1);return;case 18:mte(this,!1);return}Yu(this,t-Pn((Kt(),Z_)),tn((i=f(dn(this,16),29),i||Z_),t))},p.pi=function(){zee(this),gC(Vs((gc(),qo),this)),_f(this),this.Bb|=1},p.Jk=function(){return pke(this)},p.Yk=function(t,i){return this.b=0,this.a=null,r2e(this,t,i)},p.Zk=function(t){Qlt(this,t)},p.Ib=function(){var t;return this.Db&64?QH(this):(t=new wf(QH(this)),t.a+=" (iD: ",og(t,(this.Bb&Vl)!=0),t.a+=")",t.a)},p.b=0,N(fn,"EAttributeImpl",331),P(364,448,{110:1,94:1,93:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,364:1,158:1,119:1,120:1,691:1}),p.dl=function(t){return t.Dh()==this},p.Ah=function(t){return Yte(this,t)},p.Bh=function(t,i){this.w=null,this.Db=i<<16|this.Db&255,this.Cb=t},p.Lh=function(t,i,s){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return ny(this);case 4:return this.ik();case 5:return this.F;case 6:return i?vu(this):yC(this);case 7:return!this.A&&(this.A=new uc(Ga,this,7)),this.A}return qu(this,t-Pn(this.ii()),tn((a=f(dn(this,16),29),a||this.ii()),t),i,s)},p.Sh=function(t,i,s){var a,c,b;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),xa(this.Ab,t,s);case 6:return this.Cb&&(s=(c=this.Db>>16,c>=0?Yte(this,s):this.Cb.Th(this,-1-c,null,s))),xu(this,t,6,s)}return b=f(tn((a=f(dn(this,16),29),a||this.ii()),i),69),b.wk().zk(this,ja(this),i-Pn(this.ii()),t,s)},p.Uh=function(t,i,s){var a,c;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),fs(this.Ab,t,s);case 6:return xu(this,null,6,s);case 7:return!this.A&&(this.A=new uc(Ga,this,7)),fs(this.A,t,s)}return c=f(tn((a=f(dn(this,16),29),a||this.ii()),i),69),c.wk().Ak(this,ja(this),i-Pn(this.ii()),t,s)},p.Wh=function(t){var i;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!ny(this);case 4:return this.ik()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!yC(this);case 7:return!!this.A&&this.A.i!=0}return zu(this,t-Pn(this.ii()),tn((i=f(dn(this,16),29),i||this.ii()),t))},p.bi=function(t,i){var s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return;case 1:ZB(this,or(i));return;case 2:RQ(this,or(i));return;case 5:vA(this,or(i));return;case 7:!this.A&&(this.A=new uc(Ga,this,7)),Vn(this.A),!this.A&&(this.A=new uc(Ga,this,7)),Ii(this.A,f(i,16));return}Qu(this,t-Pn(this.ii()),tn((s=f(dn(this,16),29),s||this.ii()),t),i)},p.ii=function(){return Kt(),jDt},p.ki=function(t){var i;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return;case 1:ve(this.Cb,184)&&(f(this.Cb,184).tb=null),Ra(this,null);return;case 2:KC(this,null),PC(this,this.D);return;case 5:vA(this,null);return;case 7:!this.A&&(this.A=new uc(Ga,this,7)),Vn(this.A);return}Yu(this,t-Pn(this.ii()),tn((i=f(dn(this,16),29),i||this.ii()),t))},p.hk=function(){var t;return this.G==-1&&(this.G=(t=vu(this),t?Rg(t.vi(),this):-1)),this.G},p.ik=function(){return null},p.jk=function(){return vu(this)},p.el=function(){return this.v},p.kk=function(){return ny(this)},p.lk=function(){return this.D!=null?this.D:this.B},p.mk=function(){return this.F},p.fk=function(t){return Wne(this,t)},p.fl=function(t){this.v=t},p.gl=function(t){yyt(this,t)},p.hl=function(t){this.C=t},p.ui=function(t){ZB(this,t)},p.Ib=function(){return lH(this)},p.C=null,p.D=null,p.G=-1,N(fn,"EClassifierImpl",364),P(90,364,{110:1,94:1,93:1,29:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,90:1,364:1,158:1,482:1,119:1,120:1,691:1},B1e),p.dl=function(t){return I0n(this,t.Dh())},p.Lh=function(t,i,s){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return ny(this);case 4:return null;case 5:return this.F;case 6:return i?vu(this):yC(this);case 7:return!this.A&&(this.A=new uc(Ga,this,7)),this.A;case 8:return cn(),!!(this.Bb&256);case 9:return cn(),!!(this.Bb&512);case 10:return rl(this);case 11:return!this.q&&(this.q=new qe(Of,this,11,10)),this.q;case 12:return v2(this);case 13:return Y6(this);case 14:return Y6(this),this.r;case 15:return v2(this),this.k;case 16:return rke(this);case 17:return Vne(this);case 18:return Gh(this);case 19:return UH(this);case 20:return v2(this),this.o;case 21:return!this.s&&(this.s=new qe(rc,this,21,17)),this.s;case 22:return ra(this);case 23:return Ine(this)}return qu(this,t-Pn((Kt(),p0)),tn((a=f(dn(this,16),29),a||p0),t),i,s)},p.Sh=function(t,i,s){var a,c,b;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),xa(this.Ab,t,s);case 6:return this.Cb&&(s=(c=this.Db>>16,c>=0?Yte(this,s):this.Cb.Th(this,-1-c,null,s))),xu(this,t,6,s);case 11:return!this.q&&(this.q=new qe(Of,this,11,10)),xa(this.q,t,s);case 21:return!this.s&&(this.s=new qe(rc,this,21,17)),xa(this.s,t,s)}return b=f(tn((a=f(dn(this,16),29),a||(Kt(),p0)),i),69),b.wk().zk(this,ja(this),i-Pn((Kt(),p0)),t,s)},p.Uh=function(t,i,s){var a,c;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),fs(this.Ab,t,s);case 6:return xu(this,null,6,s);case 7:return!this.A&&(this.A=new uc(Ga,this,7)),fs(this.A,t,s);case 11:return!this.q&&(this.q=new qe(Of,this,11,10)),fs(this.q,t,s);case 21:return!this.s&&(this.s=new qe(rc,this,21,17)),fs(this.s,t,s);case 22:return fs(ra(this),t,s)}return c=f(tn((a=f(dn(this,16),29),a||(Kt(),p0)),i),69),c.wk().Ak(this,ja(this),i-Pn((Kt(),p0)),t,s)},p.Wh=function(t){var i;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!ny(this);case 4:return!1;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!yC(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)!=0;case 9:return(this.Bb&512)!=0;case 10:return!!this.u&&ra(this.u.a).i!=0&&!(this.n&&Bte(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return v2(this).i!=0;case 13:return Y6(this).i!=0;case 14:return Y6(this),this.r.i!=0;case 15:return v2(this),this.k.i!=0;case 16:return rke(this).i!=0;case 17:return Vne(this).i!=0;case 18:return Gh(this).i!=0;case 19:return UH(this).i!=0;case 20:return v2(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&Bte(this.n);case 23:return Ine(this).i!=0}return zu(this,t-Pn((Kt(),p0)),tn((i=f(dn(this,16),29),i||p0),t))},p.Zh=function(t){var i;return i=this.i==null||this.q&&this.q.i!=0?null:zN(this,t),i||F3e(this,t)},p.bi=function(t,i){var s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return;case 1:ZB(this,or(i));return;case 2:RQ(this,or(i));return;case 5:vA(this,or(i));return;case 7:!this.A&&(this.A=new uc(Ga,this,7)),Vn(this.A),!this.A&&(this.A=new uc(Ga,this,7)),Ii(this.A,f(i,16));return;case 8:i2e(this,wt(gt(i)));return;case 9:o2e(this,wt(gt(i)));return;case 10:eI(rl(this)),Ii(rl(this),f(i,16));return;case 11:!this.q&&(this.q=new qe(Of,this,11,10)),Vn(this.q),!this.q&&(this.q=new qe(Of,this,11,10)),Ii(this.q,f(i,16));return;case 21:!this.s&&(this.s=new qe(rc,this,21,17)),Vn(this.s),!this.s&&(this.s=new qe(rc,this,21,17)),Ii(this.s,f(i,16));return;case 22:Vn(ra(this)),Ii(ra(this),f(i,16));return}Qu(this,t-Pn((Kt(),p0)),tn((s=f(dn(this,16),29),s||p0),t),i)},p.ii=function(){return Kt(),p0},p.ki=function(t){var i;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return;case 1:ve(this.Cb,184)&&(f(this.Cb,184).tb=null),Ra(this,null);return;case 2:KC(this,null),PC(this,this.D);return;case 5:vA(this,null);return;case 7:!this.A&&(this.A=new uc(Ga,this,7)),Vn(this.A);return;case 8:i2e(this,!1);return;case 9:o2e(this,!1);return;case 10:this.u&&eI(this.u);return;case 11:!this.q&&(this.q=new qe(Of,this,11,10)),Vn(this.q);return;case 21:!this.s&&(this.s=new qe(rc,this,21,17)),Vn(this.s);return;case 22:this.n&&Vn(this.n);return}Yu(this,t-Pn((Kt(),p0)),tn((i=f(dn(this,16),29),i||p0),t))},p.pi=function(){var t,i;if(v2(this),Y6(this),rke(this),Vne(this),Gh(this),UH(this),Ine(this),s6(ryn(Bc(this))),this.s)for(t=0,i=this.s.i;t=0;--i)Se(this,i);return T2e(this,t)},p.Gk=function(){Vn(this)},p.Zi=function(t,i){return Wmt(this,t,i)},N(fi,"EcoreEList",632),P(505,632,hl,k7),p.Li=function(){return!1},p.Lj=function(){return this.c},p.Mj=function(){return!1},p.ol=function(){return!0},p.Si=function(){return!0},p.Wi=function(t,i){return i},p.Yi=function(){return!1},p.c=0,N(fi,"EObjectEList",505),P(83,505,hl,zi),p.Mj=function(){return!0},p.ml=function(){return!1},p.al=function(){return!0},N(fi,"EObjectContainmentEList",83),P(555,83,hl,QF),p.Ni=function(){this.b=!0},p.Qj=function(){return this.b},p.Gk=function(){var t;Vn(this),eu(this.e)?(t=this.b,this.b=!1,Dr(this.e,new ed(this.e,2,this.c,t,!1))):this.b=!1},p.b=!1,N(fi,"EObjectContainmentEList/Unsettable",555),P(1161,555,hl,gpt),p.Ti=function(t,i){var s,a;return s=f(R6(this,t,i),89),eu(this.e)&&Ux(this,new z7(this.a,7,(Kt(),FDt),ot(i),(a=s.c,ve(a,90)?f(a,29):Mf),t)),s},p.Uj=function(t,i){return kAn(this,f(t,89),i)},p.Vj=function(t,i){return EAn(this,f(t,89),i)},p.Wj=function(t,i,s){return C$n(this,f(t,89),f(i,89),s)},p.Ij=function(t,i,s,a,c){switch(t){case 3:return e6(this,t,i,s,a,this.i>1);case 5:return e6(this,t,i,s,a,this.i-f(s,15).gc()>0);default:return new gb(this.e,t,this.c,i,s,a,!0)}},p.Tj=function(){return!0},p.Qj=function(){return Bte(this)},p.Gk=function(){Vn(this)},N(fn,"EClassImpl/1",1161),P(1175,1174,SAe),p.dj=function(t){var i,s,a,c,b,g,m;if(s=t.gj(),s!=8){if(a=o4n(t),a==0)switch(s){case 1:case 9:{m=t.kj(),m!=null&&(i=Bc(f(m,482)),!i.c&&(i.c=new Dx),_W(i.c,t.jj())),g=t.ij(),g!=null&&(c=f(g,482),c.Bb&1||(i=Bc(c),!i.c&&(i.c=new Dx),zn(i.c,f(t.jj(),29))));break}case 3:{g=t.ij(),g!=null&&(c=f(g,482),c.Bb&1||(i=Bc(c),!i.c&&(i.c=new Dx),zn(i.c,f(t.jj(),29))));break}case 5:{if(g=t.ij(),g!=null)for(b=f(g,16).Kc();b.Ob();)c=f(b.Pb(),482),c.Bb&1||(i=Bc(c),!i.c&&(i.c=new Dx),zn(i.c,f(t.jj(),29)));break}case 4:{m=t.kj(),m!=null&&(c=f(m,482),c.Bb&1||(i=Bc(c),!i.c&&(i.c=new Dx),_W(i.c,t.jj())));break}case 6:{if(m=t.kj(),m!=null)for(b=f(m,16).Kc();b.Ob();)c=f(b.Pb(),482),c.Bb&1||(i=Bc(c),!i.c&&(i.c=new Dx),_W(i.c,t.jj()));break}}this.ql(a)}},p.ql=function(t){H3t(this,t)},p.b=63,N(fn,"ESuperAdapter",1175),P(1176,1175,SAe,gst),p.ql=function(t){l_(this,t)},N(fn,"EClassImpl/10",1176),P(1165,710,hl),p.Ei=function(t,i){return cne(this,t,i)},p.Fi=function(t){return ISt(this,t)},p.Gi=function(t,i){yN(this,t,i)},p.Hi=function(t){H7(this,t)},p.$i=function(t){return N_e(this,t)},p.Xi=function(t,i){return Eee(this,t,i)},p.Wk=function(t,i){throw ne(new rr)},p.Ii=function(){return new qk(this)},p.Ji=function(){return new d7(this)},p.Ki=function(t){return iN(this,t)},p.Xk=function(t,i){throw ne(new rr)},p.Fk=function(t){return this},p.Qj=function(){return this.i!=0},p.Wb=function(t){throw ne(new rr)},p.Gk=function(){throw ne(new rr)},N(fi,"EcoreEList/UnmodifiableEList",1165),P(328,1165,hl,WS),p.Yi=function(){return!1},N(fi,"EcoreEList/UnmodifiableEList/FastCompare",328),P(1168,328,hl,dvt),p.dd=function(t){var i,s,a;if(ve(t,179)&&(i=f(t,179),s=i.Lj(),s!=-1)){for(a=this.i;s4)if(this.fk(t)){if(this.al()){if(a=f(t,54),s=a.Eh(),m=s==this.b&&(this.ml()?a.yh(a.Fh(),f(tn(Xa(this.b),this.Lj()).Hk(),29).kk())==Es(f(tn(Xa(this.b),this.Lj()),19)).n:-1-a.Fh()==this.Lj()),this.nl()&&!m&&!s&&a.Jh()){for(c=0;c<_;++c)if(i=bZ(this,this.xj(c)),Ne(i)===Ne(t))return!0}return m}else if(this.ml()&&!this.ll()){if(b=f(t,58).Mh(Es(f(tn(Xa(this.b),this.Lj()),19))),Ne(b)===Ne(this.b))return!0;if(b==null||!f(b,58).Vh())return!1}}else return!1;if(g=this.uj(t),this.nl()&&!g){for(c=0;c<_;++c)if(a=bZ(this,this.xj(c)),Ne(a)===Ne(t))return!0}return g}else return this.uj(t)},p.Ij=function(t,i,s,a,c){return new gb(this.b,t,this.Lj(),i,s,a,c)},p.Jj=function(t){Dr(this.b,t)},p.Fk=function(t){return this},p.Kj=function(){return tn(Xa(this.b),this.Lj())},p.Lj=function(){return yi(Xa(this.b),tn(Xa(this.b),this.Lj()))},p.jj=function(){return this.b},p.kl=function(){return!!tn(Xa(this.b),this.Lj()).Hk().kk()},p.Mj=function(){var t,i;return i=tn(Xa(this.b),this.Lj()),ve(i,102)?(t=f(i,19),(t.Bb&Vl)!=0||!!Es(f(i,19))):!1},p.ll=function(){var t,i,s,a;return i=tn(Xa(this.b),this.Lj()),ve(i,102)?(t=f(i,19),s=Es(t),!!s&&(a=s.t,a>1||a==-1)):!1},p.ml=function(){var t,i,s;return i=tn(Xa(this.b),this.Lj()),ve(i,102)?(t=f(i,19),s=Es(t),!!s):!1},p.nl=function(){var t,i;return i=tn(Xa(this.b),this.Lj()),ve(i,102)?(t=f(i,19),(t.Bb&ys)!=0):!1},p.dd=function(t){var i,s,a,c;if(a=this.zj(t),a>=0)return a;if(this.ol()){for(s=0,c=this.Ej();s=0;--t)nM(this,t,this.xj(t));return this.Fj()},p.Qc=function(t){var i;if(this.nl())for(i=this.Ej()-1;i>=0;--i)nM(this,i,this.xj(i));return this.Gj(t)},p.Gk=function(){eI(this)},p.Zi=function(t,i){return mwt(this,t,i)},N(fi,"DelegatingEcoreEList",756),P(1171,756,xAe,Pdt),p.qj=function(t,i){t0n(this,t,f(i,29))},p.rj=function(t){Ugn(this,f(t,29))},p.xj=function(t){var i,s;return i=f(Se(ra(this.a),t),89),s=i.c,ve(s,90)?f(s,29):(Kt(),Mf)},p.Cj=function(t){var i,s;return i=f(u_(ra(this.a),t),89),s=i.c,ve(s,90)?f(s,29):(Kt(),Mf)},p.Dj=function(t,i){return Q4n(this,t,f(i,29))},p.Li=function(){return!1},p.Ij=function(t,i,s,a,c){return null},p.sj=function(){return new yst(this)},p.tj=function(){Vn(ra(this.a))},p.uj=function(t){return a_t(this,t)},p.vj=function(t){var i,s;for(s=t.Kc();s.Ob();)if(i=s.Pb(),!a_t(this,i))return!1;return!0},p.wj=function(t){var i,s,a;if(ve(t,15)&&(a=f(t,15),a.gc()==ra(this.a).i)){for(i=a.Kc(),s=new Sn(this);i.Ob();)if(Ne(i.Pb())!==Ne(Cn(s)))return!1;return!0}return!1},p.yj=function(){var t,i,s,a,c;for(s=1,i=new Sn(ra(this.a));i.e!=i.i.gc();)t=f(Cn(i),89),a=(c=t.c,ve(c,90)?f(c,29):(Kt(),Mf)),s=31*s+(a?Cm(a):0);return s},p.zj=function(t){var i,s,a,c;for(a=0,s=new Sn(ra(this.a));s.e!=s.i.gc();){if(i=f(Cn(s),89),Ne(t)===Ne((c=i.c,ve(c,90)?f(c,29):(Kt(),Mf))))return a;++a}return-1},p.Aj=function(){return ra(this.a).i==0},p.Bj=function(){return null},p.Ej=function(){return ra(this.a).i},p.Fj=function(){var t,i,s,a,c,b;for(b=ra(this.a).i,c=Fe(ho,on,1,b,5,1),s=0,i=new Sn(ra(this.a));i.e!=i.i.gc();)t=f(Cn(i),89),c[s++]=(a=t.c,ve(a,90)?f(a,29):(Kt(),Mf));return c},p.Gj=function(t){var i,s,a,c,b,g,m;for(m=ra(this.a).i,t.lengthm&&Ci(t,m,null),a=0,s=new Sn(ra(this.a));s.e!=s.i.gc();)i=f(Cn(s),89),b=(g=i.c,ve(g,90)?f(g,29):(Kt(),Mf)),Ci(t,a++,b);return t},p.Hj=function(){var t,i,s,a,c;for(c=new ig,c.a+="[",t=ra(this.a),i=0,a=ra(this.a).i;i>16,c>=0?Yte(this,s):this.Cb.Th(this,-1-c,null,s))),xu(this,t,6,s);case 9:return!this.a&&(this.a=new qe(Db,this,9,5)),xa(this.a,t,s)}return b=f(tn((a=f(dn(this,16),29),a||(Kt(),b0)),i),69),b.wk().zk(this,ja(this),i-Pn((Kt(),b0)),t,s)},p.Uh=function(t,i,s){var a,c;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),fs(this.Ab,t,s);case 6:return xu(this,null,6,s);case 7:return!this.A&&(this.A=new uc(Ga,this,7)),fs(this.A,t,s);case 9:return!this.a&&(this.a=new qe(Db,this,9,5)),fs(this.a,t,s)}return c=f(tn((a=f(dn(this,16),29),a||(Kt(),b0)),i),69),c.wk().Ak(this,ja(this),i-Pn((Kt(),b0)),t,s)},p.Wh=function(t){var i;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!ny(this);case 4:return!!zSe(this);case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!yC(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0;case 9:return!!this.a&&this.a.i!=0}return zu(this,t-Pn((Kt(),b0)),tn((i=f(dn(this,16),29),i||b0),t))},p.bi=function(t,i){var s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return;case 1:ZB(this,or(i));return;case 2:RQ(this,or(i));return;case 5:vA(this,or(i));return;case 7:!this.A&&(this.A=new uc(Ga,this,7)),Vn(this.A),!this.A&&(this.A=new uc(Ga,this,7)),Ii(this.A,f(i,16));return;case 8:tH(this,wt(gt(i)));return;case 9:!this.a&&(this.a=new qe(Db,this,9,5)),Vn(this.a),!this.a&&(this.a=new qe(Db,this,9,5)),Ii(this.a,f(i,16));return}Qu(this,t-Pn((Kt(),b0)),tn((s=f(dn(this,16),29),s||b0),t),i)},p.ii=function(){return Kt(),b0},p.ki=function(t){var i;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return;case 1:ve(this.Cb,184)&&(f(this.Cb,184).tb=null),Ra(this,null);return;case 2:KC(this,null),PC(this,this.D);return;case 5:vA(this,null);return;case 7:!this.A&&(this.A=new uc(Ga,this,7)),Vn(this.A);return;case 8:tH(this,!0);return;case 9:!this.a&&(this.a=new qe(Db,this,9,5)),Vn(this.a);return}Yu(this,t-Pn((Kt(),b0)),tn((i=f(dn(this,16),29),i||b0),t))},p.pi=function(){var t,i;if(this.a)for(t=0,i=this.a.i;t>16==5?f(this.Cb,685):null}return qu(this,t-Pn((Kt(),Gg)),tn((a=f(dn(this,16),29),a||Gg),t),i,s)},p.Sh=function(t,i,s){var a,c,b;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),xa(this.Ab,t,s);case 5:return this.Cb&&(s=(c=this.Db>>16,c>=0?i2t(this,s):this.Cb.Th(this,-1-c,null,s))),xu(this,t,5,s)}return b=f(tn((a=f(dn(this,16),29),a||(Kt(),Gg)),i),69),b.wk().zk(this,ja(this),i-Pn((Kt(),Gg)),t,s)},p.Uh=function(t,i,s){var a,c;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),fs(this.Ab,t,s);case 5:return xu(this,null,5,s)}return c=f(tn((a=f(dn(this,16),29),a||(Kt(),Gg)),i),69),c.wk().Ak(this,ja(this),i-Pn((Kt(),Gg)),t,s)},p.Wh=function(t){var i;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.d!=0;case 3:return!!this.b;case 4:return this.c!=null;case 5:return!!(this.Db>>16==5&&f(this.Cb,685))}return zu(this,t-Pn((Kt(),Gg)),tn((i=f(dn(this,16),29),i||Gg),t))},p.bi=function(t,i){var s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return;case 1:Ra(this,or(i));return;case 2:Tee(this,f(i,17).a);return;case 3:tkt(this,f(i,2039));return;case 4:Iee(this,or(i));return}Qu(this,t-Pn((Kt(),Gg)),tn((s=f(dn(this,16),29),s||Gg),t),i)},p.ii=function(){return Kt(),Gg},p.ki=function(t){var i;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return;case 1:Ra(this,null);return;case 2:Tee(this,0);return;case 3:tkt(this,null);return;case 4:Iee(this,null);return}Yu(this,t-Pn((Kt(),Gg)),tn((i=f(dn(this,16),29),i||Gg),t))},p.Ib=function(){var t;return t=this.c,t??this.zb},p.b=null,p.c=null,p.d=0,N(fn,"EEnumLiteralImpl",582);var $Fn=Ei(fn,"EFactoryImpl/InternalEDateTimeFormat");P(499,1,{2114:1},NO),N(fn,"EFactoryImpl/1ClientInternalEDateTimeFormat",499),P(248,120,{110:1,94:1,93:1,89:1,58:1,114:1,54:1,99:1,248:1,119:1,120:1},dm),p.Ch=function(t,i,s){var a;return s=xu(this,t,i,s),this.e&&ve(t,179)&&(a=HH(this,this.e),a!=this.c&&(s=_A(this,a,s))),s},p.Lh=function(t,i,s){var a;switch(t){case 0:return this.f;case 1:return!this.d&&(this.d=new zi(Os,this,1)),this.d;case 2:return i?tU(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return i?Ute(this):this.a}return qu(this,t-Pn((Kt(),jy)),tn((a=f(dn(this,16),29),a||jy),t),i,s)},p.Uh=function(t,i,s){var a,c;switch(i){case 0:return Xvt(this,null,s);case 1:return!this.d&&(this.d=new zi(Os,this,1)),fs(this.d,t,s);case 3:return Jvt(this,null,s)}return c=f(tn((a=f(dn(this,16),29),a||(Kt(),jy)),i),69),c.wk().Ak(this,ja(this),i-Pn((Kt(),jy)),t,s)},p.Wh=function(t){var i;switch(t){case 0:return!!this.f;case 1:return!!this.d&&this.d.i!=0;case 2:return!!this.c;case 3:return!!this.b;case 4:return!!this.e;case 5:return!!this.a}return zu(this,t-Pn((Kt(),jy)),tn((i=f(dn(this,16),29),i||jy),t))},p.bi=function(t,i){var s;switch(t){case 0:E2t(this,f(i,89));return;case 1:!this.d&&(this.d=new zi(Os,this,1)),Vn(this.d),!this.d&&(this.d=new zi(Os,this,1)),Ii(this.d,f(i,16));return;case 3:kEe(this,f(i,89));return;case 4:UEe(this,f(i,850));return;case 5:CC(this,f(i,142));return}Qu(this,t-Pn((Kt(),jy)),tn((s=f(dn(this,16),29),s||jy),t),i)},p.ii=function(){return Kt(),jy},p.ki=function(t){var i;switch(t){case 0:E2t(this,null);return;case 1:!this.d&&(this.d=new zi(Os,this,1)),Vn(this.d);return;case 3:kEe(this,null);return;case 4:UEe(this,null);return;case 5:CC(this,null);return}Yu(this,t-Pn((Kt(),jy)),tn((i=f(dn(this,16),29),i||jy),t))},p.Ib=function(){var t;return t=new gu(rd(this)),t.a+=" (expression: ",Yne(this,t),t.a+=")",t.a};var ROe;N(fn,"EGenericTypeImpl",248),P(2067,2062,cG),p.Gi=function(t,i){Tdt(this,t,i)},p.Wk=function(t,i){return Tdt(this,this.gc(),t),i},p.$i=function(t){return tf(this.pj(),t)},p.Ii=function(){return this.Ji()},p.pj=function(){return new Est(this)},p.Ji=function(){return this.Ki(0)},p.Ki=function(t){return this.pj().fd(t)},p.Xk=function(t,i){return e_(this,t,!0),i},p.Ti=function(t,i){var s,a;return a=ene(this,i),s=this.fd(t),s.Rb(a),a},p.Ui=function(t,i){var s;e_(this,i,!0),s=this.fd(t),s.Rb(i)},N(fi,"AbstractSequentialInternalEList",2067),P(496,2067,cG,f7),p.$i=function(t){return tf(this.pj(),t)},p.Ii=function(){return this.b==null?(lg(),lg(),Q9):this.sl()},p.pj=function(){return new qut(this.a,this.b)},p.Ji=function(){return this.b==null?(lg(),lg(),Q9):this.sl()},p.Ki=function(t){var i,s;if(this.b==null){if(t<0||t>1)throw ne(new Hs(kI+t+", size=0"));return lg(),lg(),Q9}for(s=this.sl(),i=0;i0;)if(i=this.c[--this.d],(!this.e||i.pk()!=$4||i.Lj()!=0)&&(!this.vl()||this.b.Xh(i))){if(b=this.b.Nh(i,this.ul()),this.f=(Ss(),f(i,69).xk()),this.f||i.Jk()){if(this.ul()?(a=f(b,15),this.k=a):(a=f(b,71),this.k=this.j=a),ve(this.k,59)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j.Ki(this.k.gc()):this.k.fd(this.k.gc()),this.p?wEt(this,this.p):AEt(this))return c=this.p?this.p.Ub():this.j?this.j.$i(--this.n):this.k.Xb(--this.n),this.f?(t=f(c,76),t.Lk(),s=t.md(),this.i=s):(s=c,this.i=s),this.g=-3,!0}else if(b!=null)return this.k=null,this.p=null,s=b,this.i=s,this.g=-2,!0}return this.k=null,this.p=null,this.g=-1,!1}else return c=this.p?this.p.Ub():this.j?this.j.$i(--this.n):this.k.Xb(--this.n),this.f?(t=f(c,76),t.Lk(),s=t.md(),this.i=s):(s=c,this.i=s),this.g=-3,!0}},p.Pb=function(){return zW(this)},p.Tb=function(){return this.a},p.Ub=function(){var t;if(this.g<-1||this.Sb())return--this.a,this.g=0,t=this.i,this.Sb(),t;throw ne(new yl)},p.Vb=function(){return this.a-1},p.Qb=function(){throw ne(new rr)},p.ul=function(){return!1},p.Wb=function(t){throw ne(new rr)},p.vl=function(){return!0},p.a=0,p.d=0,p.f=!1,p.g=0,p.n=0,p.o=0;var Q9;N(fi,"EContentsEList/FeatureIteratorImpl",287),P(711,287,uG,Nme),p.ul=function(){return!0},N(fi,"EContentsEList/ResolvingFeatureIteratorImpl",711),P(1178,711,uG,pdt),p.vl=function(){return!1},N(fn,"ENamedElementImpl/1/1",1178),P(1179,287,uG,bdt),p.vl=function(){return!1},N(fn,"ENamedElementImpl/1/2",1179),P(39,152,NM,Vv,eee,yo,bee,gb,ed,K_e,qgt,q_e,Xgt,f_e,Jgt,Y_e,Ygt,d_e,Qgt,X_e,Zgt,K$,z7,MZ,J_e,e1t,h_e,t1t),p.Kj=function(){return $_e(this)},p.Rj=function(){var t;return t=$_e(this),t?t.ik():null},p.hj=function(t){return this.b==-1&&this.a&&(this.b=this.c.Hh(this.a.Lj(),this.a.pk())),this.c.yh(this.b,t)},p.jj=function(){return this.c},p.Sj=function(){var t;return t=$_e(this),t?t.tk():!1},p.b=-1,N(fn,"ENotificationImpl",39),P(411,292,{110:1,94:1,93:1,155:1,197:1,58:1,62:1,114:1,481:1,54:1,99:1,158:1,411:1,292:1,119:1,120:1},vY),p.Ah=function(t){return l2t(this,t)},p.Lh=function(t,i,s){var a,c,b;switch(t){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),this.Ab;case 1:return this.zb;case 2:return cn(),!!(this.Bb&256);case 3:return cn(),!!(this.Bb&512);case 4:return ot(this.s);case 5:return ot(this.t);case 6:return cn(),b=this.t,b>1||b==-1;case 7:return cn(),c=this.s,c>=1;case 8:return i?_f(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?f(this.Cb,29):null;case 11:return!this.d&&(this.d=new uc(Ga,this,11)),this.d;case 12:return!this.c&&(this.c=new qe(Ly,this,12,10)),this.c;case 13:return!this.a&&(this.a=new g7(this,this)),this.a;case 14:return Wc(this)}return qu(this,t-Pn((Kt(),Vg)),tn((a=f(dn(this,16),29),a||Vg),t),i,s)},p.Sh=function(t,i,s){var a,c,b;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),xa(this.Ab,t,s);case 10:return this.Cb&&(s=(c=this.Db>>16,c>=0?l2t(this,s):this.Cb.Th(this,-1-c,null,s))),xu(this,t,10,s);case 12:return!this.c&&(this.c=new qe(Ly,this,12,10)),xa(this.c,t,s)}return b=f(tn((a=f(dn(this,16),29),a||(Kt(),Vg)),i),69),b.wk().zk(this,ja(this),i-Pn((Kt(),Vg)),t,s)},p.Uh=function(t,i,s){var a,c;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),fs(this.Ab,t,s);case 9:return vZ(this,s);case 10:return xu(this,null,10,s);case 11:return!this.d&&(this.d=new uc(Ga,this,11)),fs(this.d,t,s);case 12:return!this.c&&(this.c=new qe(Ly,this,12,10)),fs(this.c,t,s);case 14:return fs(Wc(this),t,s)}return c=f(tn((a=f(dn(this,16),29),a||(Kt(),Vg)),i),69),c.wk().Ak(this,ja(this),i-Pn((Kt(),Vg)),t,s)},p.Wh=function(t){var i,s,a;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return a=this.t,a>1||a==-1;case 7:return s=this.s,s>=1;case 8:return!!this.r&&!this.q.e&&Mm(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Mm(this.q).i==0);case 10:return!!(this.Db>>16==10&&f(this.Cb,29));case 11:return!!this.d&&this.d.i!=0;case 12:return!!this.c&&this.c.i!=0;case 13:return!!this.a&&Wc(this.a.a).i!=0&&!(this.b&&Wte(this.b));case 14:return!!this.b&&Wte(this.b)}return zu(this,t-Pn((Kt(),Vg)),tn((i=f(dn(this,16),29),i||Vg),t))},p.bi=function(t,i){var s,a;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return;case 1:Ra(this,or(i));return;case 2:_g(this,wt(gt(i)));return;case 3:Sg(this,wt(gt(i)));return;case 4:wg(this,f(i,17).a);return;case 5:Jv(this,f(i,17).a);return;case 8:dw(this,f(i,142));return;case 9:a=oh(this,f(i,89),null),a&&a.oj();return;case 11:!this.d&&(this.d=new uc(Ga,this,11)),Vn(this.d),!this.d&&(this.d=new uc(Ga,this,11)),Ii(this.d,f(i,16));return;case 12:!this.c&&(this.c=new qe(Ly,this,12,10)),Vn(this.c),!this.c&&(this.c=new qe(Ly,this,12,10)),Ii(this.c,f(i,16));return;case 13:!this.a&&(this.a=new g7(this,this)),eI(this.a),!this.a&&(this.a=new g7(this,this)),Ii(this.a,f(i,16));return;case 14:Vn(Wc(this)),Ii(Wc(this),f(i,16));return}Qu(this,t-Pn((Kt(),Vg)),tn((s=f(dn(this,16),29),s||Vg),t),i)},p.ii=function(){return Kt(),Vg},p.ki=function(t){var i,s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return;case 1:Ra(this,null);return;case 2:_g(this,!0);return;case 3:Sg(this,!0);return;case 4:wg(this,0);return;case 5:Jv(this,1);return;case 8:dw(this,null);return;case 9:s=oh(this,null,null),s&&s.oj();return;case 11:!this.d&&(this.d=new uc(Ga,this,11)),Vn(this.d);return;case 12:!this.c&&(this.c=new qe(Ly,this,12,10)),Vn(this.c);return;case 13:this.a&&eI(this.a);return;case 14:this.b&&Vn(this.b);return}Yu(this,t-Pn((Kt(),Vg)),tn((i=f(dn(this,16),29),i||Vg),t))},p.pi=function(){var t,i;if(this.c)for(t=0,i=this.c.i;tm&&Ci(t,m,null),a=0,s=new Sn(Wc(this.a));s.e!=s.i.gc();)i=f(Cn(s),89),b=(g=i.c,g||(Kt(),vh)),Ci(t,a++,b);return t},p.Hj=function(){var t,i,s,a,c;for(c=new ig,c.a+="[",t=Wc(this.a),i=0,a=Wc(this.a).i;i1);case 5:return e6(this,t,i,s,a,this.i-f(s,15).gc()>0);default:return new gb(this.e,t,this.c,i,s,a,!0)}},p.Tj=function(){return!0},p.Qj=function(){return Wte(this)},p.Gk=function(){Vn(this)},N(fn,"EOperationImpl/2",1377),P(507,1,{2037:1,507:1},Iut),N(fn,"EPackageImpl/1",507),P(14,83,hl,qe),p.il=function(){return this.d},p.jl=function(){return this.b},p.ml=function(){return!0},p.b=0,N(fi,"EObjectContainmentWithInverseEList",14),P(365,14,hl,Xk),p.nl=function(){return!0},p.Wi=function(t,i){return A3(this,t,f(i,58))},N(fi,"EObjectContainmentWithInverseEList/Resolving",365),P(308,365,hl,Fv),p.Ni=function(){this.a.tb=null},N(fn,"EPackageImpl/2",308),P(1278,1,{},Bhn),N(fn,"EPackageImpl/3",1278),P(733,45,k2,D0e),p._b=function(t){return Eo(t)?LZ(this,t):!!xs(this.f,t)},N(fn,"EPackageRegistryImpl",733),P(518,292,{110:1,94:1,93:1,155:1,197:1,58:1,2116:1,114:1,481:1,54:1,99:1,158:1,518:1,292:1,119:1,120:1},_Y),p.Ah=function(t){return a2t(this,t)},p.Lh=function(t,i,s){var a,c,b;switch(t){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),this.Ab;case 1:return this.zb;case 2:return cn(),!!(this.Bb&256);case 3:return cn(),!!(this.Bb&512);case 4:return ot(this.s);case 5:return ot(this.t);case 6:return cn(),b=this.t,b>1||b==-1;case 7:return cn(),c=this.s,c>=1;case 8:return i?_f(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?f(this.Cb,62):null}return qu(this,t-Pn((Kt(),eS)),tn((a=f(dn(this,16),29),a||eS),t),i,s)},p.Sh=function(t,i,s){var a,c,b;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),xa(this.Ab,t,s);case 10:return this.Cb&&(s=(c=this.Db>>16,c>=0?a2t(this,s):this.Cb.Th(this,-1-c,null,s))),xu(this,t,10,s)}return b=f(tn((a=f(dn(this,16),29),a||(Kt(),eS)),i),69),b.wk().zk(this,ja(this),i-Pn((Kt(),eS)),t,s)},p.Uh=function(t,i,s){var a,c;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),fs(this.Ab,t,s);case 9:return vZ(this,s);case 10:return xu(this,null,10,s)}return c=f(tn((a=f(dn(this,16),29),a||(Kt(),eS)),i),69),c.wk().Ak(this,ja(this),i-Pn((Kt(),eS)),t,s)},p.Wh=function(t){var i,s,a;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return a=this.t,a>1||a==-1;case 7:return s=this.s,s>=1;case 8:return!!this.r&&!this.q.e&&Mm(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Mm(this.q).i==0);case 10:return!!(this.Db>>16==10&&f(this.Cb,62))}return zu(this,t-Pn((Kt(),eS)),tn((i=f(dn(this,16),29),i||eS),t))},p.ii=function(){return Kt(),eS},N(fn,"EParameterImpl",518),P(102,462,{110:1,94:1,93:1,155:1,197:1,58:1,19:1,179:1,69:1,114:1,481:1,54:1,99:1,158:1,102:1,462:1,292:1,119:1,120:1,692:1},Fme),p.Lh=function(t,i,s){var a,c,b,g;switch(t){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),this.Ab;case 1:return this.zb;case 2:return cn(),!!(this.Bb&256);case 3:return cn(),!!(this.Bb&512);case 4:return ot(this.s);case 5:return ot(this.t);case 6:return cn(),g=this.t,g>1||g==-1;case 7:return cn(),c=this.s,c>=1;case 8:return i?_f(this):this.r;case 9:return this.q;case 10:return cn(),!!(this.Bb&sd);case 11:return cn(),!!(this.Bb&E_);case 12:return cn(),!!(this.Bb&g_);case 13:return this.j;case 14:return hA(this);case 15:return cn(),!!(this.Bb&yc);case 16:return cn(),!!(this.Bb&Vh);case 17:return Hv(this);case 18:return cn(),!!(this.Bb&Vl);case 19:return cn(),b=Es(this),!!(b&&b.Bb&Vl);case 20:return cn(),!!(this.Bb&ys);case 21:return i?Es(this):this.b;case 22:return i?DSe(this):R0t(this);case 23:return!this.a&&(this.a=new KS(Y_,this,23)),this.a}return qu(this,t-Pn((Kt(),pE)),tn((a=f(dn(this,16),29),a||pE),t),i,s)},p.Wh=function(t){var i,s,a,c;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return c=this.t,c>1||c==-1;case 7:return s=this.s,s>=1;case 8:return!!this.r&&!this.q.e&&Mm(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Mm(this.q).i==0);case 10:return(this.Bb&sd)==0;case 11:return(this.Bb&E_)!=0;case 12:return(this.Bb&g_)!=0;case 13:return this.j!=null;case 14:return hA(this)!=null;case 15:return(this.Bb&yc)!=0;case 16:return(this.Bb&Vh)!=0;case 17:return!!Hv(this);case 18:return(this.Bb&Vl)!=0;case 19:return a=Es(this),!!a&&(a.Bb&Vl)!=0;case 20:return(this.Bb&ys)==0;case 21:return!!this.b;case 22:return!!R0t(this);case 23:return!!this.a&&this.a.i!=0}return zu(this,t-Pn((Kt(),pE)),tn((i=f(dn(this,16),29),i||pE),t))},p.bi=function(t,i){var s,a;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return;case 1:KZ(this,or(i));return;case 2:_g(this,wt(gt(i)));return;case 3:Sg(this,wt(gt(i)));return;case 4:wg(this,f(i,17).a);return;case 5:Jv(this,f(i,17).a);return;case 8:dw(this,f(i,142));return;case 9:a=oh(this,f(i,89),null),a&&a.oj();return;case 10:JC(this,wt(gt(i)));return;case 11:ZC(this,wt(gt(i)));return;case 12:YC(this,wt(gt(i)));return;case 13:Xwe(this,or(i));return;case 15:QC(this,wt(gt(i)));return;case 16:eA(this,wt(gt(i)));return;case 18:kSn(this,wt(gt(i)));return;case 20:p2e(this,wt(gt(i)));return;case 21:dSe(this,f(i,19));return;case 23:!this.a&&(this.a=new KS(Y_,this,23)),Vn(this.a),!this.a&&(this.a=new KS(Y_,this,23)),Ii(this.a,f(i,16));return}Qu(this,t-Pn((Kt(),pE)),tn((s=f(dn(this,16),29),s||pE),t),i)},p.ii=function(){return Kt(),pE},p.ki=function(t){var i,s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return;case 1:ve(this.Cb,90)&&l_(Bc(f(this.Cb,90)),4),Ra(this,null);return;case 2:_g(this,!0);return;case 3:Sg(this,!0);return;case 4:wg(this,0);return;case 5:Jv(this,1);return;case 8:dw(this,null);return;case 9:s=oh(this,null,null),s&&s.oj();return;case 10:JC(this,!0);return;case 11:ZC(this,!1);return;case 12:YC(this,!1);return;case 13:this.i=null,LW(this,null);return;case 15:QC(this,!1);return;case 16:eA(this,!1);return;case 18:h2e(this,!1),ve(this.Cb,90)&&l_(Bc(f(this.Cb,90)),2);return;case 20:p2e(this,!0);return;case 21:dSe(this,null);return;case 23:!this.a&&(this.a=new KS(Y_,this,23)),Vn(this.a);return}Yu(this,t-Pn((Kt(),pE)),tn((i=f(dn(this,16),29),i||pE),t))},p.pi=function(){DSe(this),gC(Vs((gc(),qo),this)),_f(this),this.Bb|=1},p.uk=function(){return Es(this)},p._k=function(){var t;return t=Es(this),!!t&&(t.Bb&Vl)!=0},p.al=function(){return(this.Bb&Vl)!=0},p.bl=function(){return(this.Bb&ys)!=0},p.Yk=function(t,i){return this.c=null,r2e(this,t,i)},p.Ib=function(){var t;return this.Db&64?QH(this):(t=new wf(QH(this)),t.a+=" (containment: ",og(t,(this.Bb&Vl)!=0),t.a+=", resolveProxies: ",og(t,(this.Bb&ys)!=0),t.a+=")",t.a)},N(fn,"EReferenceImpl",102),P(561,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,561:1,119:1,120:1},_Ze),p.Fb=function(t){return this===t},p.ld=function(){return this.b},p.md=function(){return this.c},p.Hb=function(){return Cm(this)},p.Di=function(t){Tyn(this,or(t))},p.nd=function(t){return pyn(this,or(t))},p.Lh=function(t,i,s){var a;switch(t){case 0:return this.b;case 1:return this.c}return qu(this,t-Pn((Kt(),_s)),tn((a=f(dn(this,16),29),a||_s),t),i,s)},p.Wh=function(t){var i;switch(t){case 0:return this.b!=null;case 1:return this.c!=null}return zu(this,t-Pn((Kt(),_s)),tn((i=f(dn(this,16),29),i||_s),t))},p.bi=function(t,i){var s;switch(t){case 0:$yn(this,or(i));return;case 1:cSe(this,or(i));return}Qu(this,t-Pn((Kt(),_s)),tn((s=f(dn(this,16),29),s||_s),t),i)},p.ii=function(){return Kt(),_s},p.ki=function(t){var i;switch(t){case 0:aSe(this,null);return;case 1:cSe(this,null);return}Yu(this,t-Pn((Kt(),_s)),tn((i=f(dn(this,16),29),i||_s),t))},p.Bi=function(){var t;return this.a==-1&&(t=this.b,this.a=t==null?0:mg(t)),this.a},p.Ci=function(t){this.a=t},p.Ib=function(){var t;return this.Db&64?rd(this):(t=new wf(rd(this)),t.a+=" (key: ",Ms(t,this.b),t.a+=", value: ",Ms(t,this.c),t.a+=")",t.a)},p.a=-1,p.b=null,p.c=null;var Ll=N(fn,"EStringToStringMapEntryImpl",561),XDt=Ei(fi,"FeatureMap/Entry/Internal");P(576,1,fG),p.xl=function(t){return this.yl(f(t,54))},p.yl=function(t){return this.xl(t)},p.Fb=function(t){var i,s;return this===t?!0:ve(t,76)?(i=f(t,76),i.Lk()==this.c?(s=this.md(),s==null?i.md()==null:Lr(s,i.md())):!1):!1},p.Lk=function(){return this.c},p.Hb=function(){var t;return t=this.md(),ti(this.c)^(t==null?0:ti(t))},p.Ib=function(){var t,i;return t=this.c,i=vu(t.qk()).yi(),t.xe(),(i!=null&&i.length!=0?i+":"+t.xe():t.xe())+"="+this.md()},N(fn,"EStructuralFeatureImpl/BasicFeatureMapEntry",576),P(791,576,fG,qme),p.yl=function(t){return new qme(this.c,t)},p.md=function(){return this.a},p.zl=function(t,i,s){return hRn(this,t,this.a,i,s)},p.Al=function(t,i,s){return pRn(this,t,this.a,i,s)},N(fn,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",791),P(1350,1,{},Put),p.yk=function(t,i,s,a,c){var b;return b=f(EC(t,this.b),220),b.Yl(this.a).Fk(a)},p.zk=function(t,i,s,a,c){var b;return b=f(EC(t,this.b),220),b.Pl(this.a,a,c)},p.Ak=function(t,i,s,a,c){var b;return b=f(EC(t,this.b),220),b.Ql(this.a,a,c)},p.Bk=function(t,i,s){var a;return a=f(EC(t,this.b),220),a.Yl(this.a).Qj()},p.Ck=function(t,i,s,a){var c;c=f(EC(t,this.b),220),c.Yl(this.a).Wb(a)},p.Dk=function(t,i,s){return f(EC(t,this.b),220).Yl(this.a)},p.Ek=function(t,i,s){var a;a=f(EC(t,this.b),220),a.Yl(this.a).Gk()},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1350),P(91,1,{},cg,Z0,fg,iw),p.yk=function(t,i,s,a,c){var b;if(b=i.li(s),b==null&&i.mi(s,b=uU(this,t)),!c)switch(this.e){case 50:case 41:return f(b,597).bk();case 40:return f(b,220).Vl()}return b},p.zk=function(t,i,s,a,c){var b,g;return g=i.li(s),g==null&&i.mi(s,g=uU(this,t)),b=f(g,71).Wk(a,c),b},p.Ak=function(t,i,s,a,c){var b;return b=i.li(s),b!=null&&(c=f(b,71).Xk(a,c)),c},p.Bk=function(t,i,s){var a;return a=i.li(s),a!=null&&f(a,79).Qj()},p.Ck=function(t,i,s,a){var c;c=f(i.li(s),79),!c&&i.mi(s,c=uU(this,t)),c.Wb(a)},p.Dk=function(t,i,s){var a,c;return c=i.li(s),c==null&&i.mi(s,c=uU(this,t)),ve(c,79)?f(c,79):(a=f(i.li(s),15),new _st(a))},p.Ek=function(t,i,s){var a;a=f(i.li(s),79),!a&&i.mi(s,a=uU(this,t)),a.Gk()},p.b=0,p.e=0,N(fn,"EStructuralFeatureImpl/InternalSettingDelegateMany",91),P(512,1,{}),p.zk=function(t,i,s,a,c){throw ne(new rr)},p.Ak=function(t,i,s,a,c){throw ne(new rr)},p.Dk=function(t,i,s){return new $bt(this,t,i,s)};var Bp;N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingle",512),P(1367,1,Doe,$bt),p.Fk=function(t){return this.a.yk(this.c,this.d,this.b,t,!0)},p.Qj=function(){return this.a.Bk(this.c,this.d,this.b)},p.Wb=function(t){this.a.Ck(this.c,this.d,this.b,t)},p.Gk=function(){this.a.Ek(this.c,this.d,this.b)},p.b=0,N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1367),P(784,512,{},Dve),p.yk=function(t,i,s,a,c){return Lne(t,t.Ph(),t.Fh())==this.b?this.bl()&&a?Ene(t):t.Ph():null},p.zk=function(t,i,s,a,c){var b,g;return t.Ph()&&(c=(b=t.Fh(),b>=0?t.Ah(c):t.Ph().Th(t,-1-b,null,c))),g=yi(t.Dh(),this.e),t.Ch(a,g,c)},p.Ak=function(t,i,s,a,c){var b;return b=yi(t.Dh(),this.e),t.Ch(null,b,c)},p.Bk=function(t,i,s){var a;return a=yi(t.Dh(),this.e),!!t.Ph()&&t.Fh()==a},p.Ck=function(t,i,s,a){var c,b,g,m,_;if(a!=null&&!Wne(this.a,a))throw ne(new Gx(dG+(ve(a,58)?EEe(f(a,58).Dh()):U_e(ou(a)))+hG+this.a+"'"));if(c=t.Ph(),g=yi(t.Dh(),this.e),Ne(a)!==Ne(c)||t.Fh()!=g&&a!=null){if(oA(t,f(a,58)))throw ne(new hn(SI+t.Ib()));_=null,c&&(_=(b=t.Fh(),b>=0?t.Ah(_):t.Ph().Th(t,-1-b,null,_))),m=f(a,54),m&&(_=m.Rh(t,yi(m.Dh(),this.b),null,_)),_=t.Ch(m,g,_),_&&_.oj()}else t.vh()&&t.wh()&&Dr(t,new yo(t,1,g,a,a))},p.Ek=function(t,i,s){var a,c,b,g;a=t.Ph(),a?(g=(c=t.Fh(),c>=0?t.Ah(null):t.Ph().Th(t,-1-c,null,null)),b=yi(t.Dh(),this.e),g=t.Ch(null,b,g),g&&g.oj()):t.vh()&&t.wh()&&Dr(t,new K$(t,1,this.e,null,null))},p.bl=function(){return!1},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",784),P(1351,784,{},vht),p.bl=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1351),P(574,512,{}),p.yk=function(t,i,s,a,c){var b;return b=i.li(s),b==null?this.b:Ne(b)===Ne(Bp)?null:b},p.Bk=function(t,i,s){var a;return a=i.li(s),a!=null&&(Ne(a)===Ne(Bp)||!Lr(a,this.b))},p.Ck=function(t,i,s,a){var c,b;t.vh()&&t.wh()?(c=(b=i.li(s),b==null?this.b:Ne(b)===Ne(Bp)?null:b),a==null?this.c!=null?(i.mi(s,null),a=this.b):this.b!=null?i.mi(s,Bp):i.mi(s,null):(this.Bl(a),i.mi(s,a)),Dr(t,this.d.Cl(t,1,this.e,c,a))):a==null?this.c!=null?i.mi(s,null):this.b!=null?i.mi(s,Bp):i.mi(s,null):(this.Bl(a),i.mi(s,a))},p.Ek=function(t,i,s){var a,c;t.vh()&&t.wh()?(a=(c=i.li(s),c==null?this.b:Ne(c)===Ne(Bp)?null:c),i.ni(s),Dr(t,this.d.Cl(t,1,this.e,a,this.b))):i.ni(s)},p.Bl=function(t){throw ne(new Pst)},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",574),P(N2,1,{},SZe),p.Cl=function(t,i,s,a,c){return new K$(t,i,s,a,c)},p.Dl=function(t,i,s,a,c,b){return new MZ(t,i,s,a,c,b)};var xOe,COe,AOe,TOe,$Oe,IOe,POe,Dce,OOe;N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",N2),P(1368,N2,{},EZe),p.Cl=function(t,i,s,a,c){return new h_e(t,i,s,wt(gt(a)),wt(gt(c)))},p.Dl=function(t,i,s,a,c,b){return new t1t(t,i,s,wt(gt(a)),wt(gt(c)),b)},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1368),P(1369,N2,{},kZe),p.Cl=function(t,i,s,a,c){return new K_e(t,i,s,f(a,222).a,f(c,222).a)},p.Dl=function(t,i,s,a,c,b){return new qgt(t,i,s,f(a,222).a,f(c,222).a,b)},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1369),P(1370,N2,{},RZe),p.Cl=function(t,i,s,a,c){return new q_e(t,i,s,f(a,180).a,f(c,180).a)},p.Dl=function(t,i,s,a,c,b){return new Xgt(t,i,s,f(a,180).a,f(c,180).a,b)},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1370),P(1371,N2,{},xZe),p.Cl=function(t,i,s,a,c){return new f_e(t,i,s,Ae(je(a)),Ae(je(c)))},p.Dl=function(t,i,s,a,c,b){return new Jgt(t,i,s,Ae(je(a)),Ae(je(c)),b)},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1371),P(1372,N2,{},CZe),p.Cl=function(t,i,s,a,c){return new Y_e(t,i,s,f(a,161).a,f(c,161).a)},p.Dl=function(t,i,s,a,c,b){return new Ygt(t,i,s,f(a,161).a,f(c,161).a,b)},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1372),P(1373,N2,{},AZe),p.Cl=function(t,i,s,a,c){return new d_e(t,i,s,f(a,17).a,f(c,17).a)},p.Dl=function(t,i,s,a,c,b){return new Qgt(t,i,s,f(a,17).a,f(c,17).a,b)},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1373),P(1374,N2,{},TZe),p.Cl=function(t,i,s,a,c){return new X_e(t,i,s,f(a,168).a,f(c,168).a)},p.Dl=function(t,i,s,a,c,b){return new Zgt(t,i,s,f(a,168).a,f(c,168).a,b)},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1374),P(1375,N2,{},$Ze),p.Cl=function(t,i,s,a,c){return new J_e(t,i,s,f(a,191).a,f(c,191).a)},p.Dl=function(t,i,s,a,c,b){return new e1t(t,i,s,f(a,191).a,f(c,191).a,b)},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1375),P(1353,574,{},Ibt),p.Bl=function(t){if(!this.a.fk(t))throw ne(new Gx(dG+ou(t)+hG+this.a+"'"))},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1353),P(1354,574,{},mpt),p.Bl=function(t){},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1354),P(785,574,{}),p.Bk=function(t,i,s){var a;return a=i.li(s),a!=null},p.Ck=function(t,i,s,a){var c,b;t.vh()&&t.wh()?(c=!0,b=i.li(s),b==null?(c=!1,b=this.b):Ne(b)===Ne(Bp)&&(b=null),a==null?this.c!=null?(i.mi(s,null),a=this.b):i.mi(s,Bp):(this.Bl(a),i.mi(s,a)),Dr(t,this.d.Dl(t,1,this.e,b,a,!c))):a==null?this.c!=null?i.mi(s,null):i.mi(s,Bp):(this.Bl(a),i.mi(s,a))},p.Ek=function(t,i,s){var a,c;t.vh()&&t.wh()?(a=!0,c=i.li(s),c==null?(a=!1,c=this.b):Ne(c)===Ne(Bp)&&(c=null),i.ni(s),Dr(t,this.d.Dl(t,2,this.e,c,this.b,a))):i.ni(s)},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",785),P(1355,785,{},Pbt),p.Bl=function(t){if(!this.a.fk(t))throw ne(new Gx(dG+ou(t)+hG+this.a+"'"))},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1355),P(1356,785,{},ypt),p.Bl=function(t){},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1356),P(410,512,{},kB),p.yk=function(t,i,s,a,c){var b,g,m,_,k;if(k=i.li(s),this.tk()&&Ne(k)===Ne(Bp))return null;if(this.bl()&&a&&k!=null){if(m=f(k,54),m.Vh()&&(_=D1(t,m),m!=_)){if(!Wne(this.a,_))throw ne(new Gx(dG+ou(_)+hG+this.a+"'"));i.mi(s,k=_),this.al()&&(b=f(_,54),g=m.Th(t,this.b?yi(m.Dh(),this.b):-1-yi(t.Dh(),this.e),null,null),!b.Ph()&&(g=b.Rh(t,this.b?yi(b.Dh(),this.b):-1-yi(t.Dh(),this.e),null,g)),g&&g.oj()),t.vh()&&t.wh()&&Dr(t,new K$(t,9,this.e,m,_))}return k}else return k},p.zk=function(t,i,s,a,c){var b,g;return g=i.li(s),Ne(g)===Ne(Bp)&&(g=null),i.mi(s,a),this.Mj()?Ne(g)!==Ne(a)&&g!=null&&(b=f(g,54),c=b.Th(t,yi(b.Dh(),this.b),null,c)):this.al()&&g!=null&&(c=f(g,54).Th(t,-1-yi(t.Dh(),this.e),null,c)),t.vh()&&t.wh()&&(!c&&(c=new y1(4)),c.nj(new K$(t,1,this.e,g,a))),c},p.Ak=function(t,i,s,a,c){var b;return b=i.li(s),Ne(b)===Ne(Bp)&&(b=null),i.ni(s),t.vh()&&t.wh()&&(!c&&(c=new y1(4)),this.tk()?c.nj(new K$(t,2,this.e,b,null)):c.nj(new K$(t,1,this.e,b,null))),c},p.Bk=function(t,i,s){var a;return a=i.li(s),a!=null},p.Ck=function(t,i,s,a){var c,b,g,m,_;if(a!=null&&!Wne(this.a,a))throw ne(new Gx(dG+(ve(a,58)?EEe(f(a,58).Dh()):U_e(ou(a)))+hG+this.a+"'"));_=i.li(s),m=_!=null,this.tk()&&Ne(_)===Ne(Bp)&&(_=null),g=null,this.Mj()?Ne(_)!==Ne(a)&&(_!=null&&(c=f(_,54),g=c.Th(t,yi(c.Dh(),this.b),null,g)),a!=null&&(c=f(a,54),g=c.Rh(t,yi(c.Dh(),this.b),null,g))):this.al()&&Ne(_)!==Ne(a)&&(_!=null&&(g=f(_,54).Th(t,-1-yi(t.Dh(),this.e),null,g)),a!=null&&(g=f(a,54).Rh(t,-1-yi(t.Dh(),this.e),null,g))),a==null&&this.tk()?i.mi(s,Bp):i.mi(s,a),t.vh()&&t.wh()?(b=new MZ(t,1,this.e,_,a,this.tk()&&!m),g?(g.nj(b),g.oj()):Dr(t,b)):g&&g.oj()},p.Ek=function(t,i,s){var a,c,b,g,m;m=i.li(s),g=m!=null,this.tk()&&Ne(m)===Ne(Bp)&&(m=null),b=null,m!=null&&(this.Mj()?(a=f(m,54),b=a.Th(t,yi(a.Dh(),this.b),null,b)):this.al()&&(b=f(m,54).Th(t,-1-yi(t.Dh(),this.e),null,b))),i.ni(s),t.vh()&&t.wh()?(c=new MZ(t,this.tk()?2:1,this.e,m,null,g),b?(b.nj(c),b.oj()):Dr(t,c)):b&&b.oj()},p.Mj=function(){return!1},p.al=function(){return!1},p.bl=function(){return!1},p.tk=function(){return!1},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",410),P(575,410,{},FQ),p.al=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",575),P(1359,575,{},wdt),p.bl=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1359),P(787,575,{},Mme),p.tk=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",787),P(1361,787,{},mdt),p.bl=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1361),P(650,575,{},QQ),p.Mj=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",650),P(1360,650,{},_ht),p.bl=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1360),P(788,650,{},_ye),p.tk=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",788),P(1362,788,{},Sht),p.bl=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1362),P(651,410,{},Dme),p.bl=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",651),P(1363,651,{},ydt),p.tk=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1363),P(789,651,{},yye),p.Mj=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",789),P(1364,789,{},Eht),p.tk=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1364),P(1357,410,{},vdt),p.tk=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1357),P(786,410,{},vye),p.Mj=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",786),P(1358,786,{},kht),p.tk=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1358),P(790,576,fG,wve),p.yl=function(t){return new wve(this.a,this.c,t)},p.md=function(){return this.b},p.zl=function(t,i,s){return fkn(this,t,this.b,s)},p.Al=function(t,i,s){return dkn(this,t,this.b,s)},N(fn,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",790),P(1365,1,Doe,_st),p.Fk=function(t){return this.a},p.Qj=function(){return ve(this.a,97)?f(this.a,97).Qj():!this.a.dc()},p.Wb=function(t){this.a.$b(),this.a.Gc(f(t,15))},p.Gk=function(){ve(this.a,97)?f(this.a,97).Gk():this.a.$b()},N(fn,"EStructuralFeatureImpl/SettingMany",1365),P(1366,576,fG,z1t),p.xl=function(t){return new HQ((Jr(),U5),this.b.ri(this.a,t))},p.md=function(){return null},p.zl=function(t,i,s){return s},p.Al=function(t,i,s){return s},N(fn,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1366),P(652,576,fG,HQ),p.xl=function(t){return new HQ(this.c,t)},p.md=function(){return this.a},p.zl=function(t,i,s){return s},p.Al=function(t,i,s){return s},N(fn,"EStructuralFeatureImpl/SimpleFeatureMapEntry",652),P(403,506,ep,Dx),p.aj=function(t){return Fe(Pf,on,29,t,0,1)},p.Yi=function(){return!1},N(fn,"ESuperAdapter/1",403),P(457,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,850:1,54:1,99:1,158:1,457:1,119:1,120:1},eY),p.Lh=function(t,i,s){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new U$(this,Os,this)),this.a}return qu(this,t-Pn((Kt(),Fy)),tn((a=f(dn(this,16),29),a||Fy),t),i,s)},p.Uh=function(t,i,s){var a,c;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),fs(this.Ab,t,s);case 2:return!this.a&&(this.a=new U$(this,Os,this)),fs(this.a,t,s)}return c=f(tn((a=f(dn(this,16),29),a||(Kt(),Fy)),i),69),c.wk().Ak(this,ja(this),i-Pn((Kt(),Fy)),t,s)},p.Wh=function(t){var i;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!!this.a&&this.a.i!=0}return zu(this,t-Pn((Kt(),Fy)),tn((i=f(dn(this,16),29),i||Fy),t))},p.bi=function(t,i){var s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return;case 1:Ra(this,or(i));return;case 2:!this.a&&(this.a=new U$(this,Os,this)),Vn(this.a),!this.a&&(this.a=new U$(this,Os,this)),Ii(this.a,f(i,16));return}Qu(this,t-Pn((Kt(),Fy)),tn((s=f(dn(this,16),29),s||Fy),t),i)},p.ii=function(){return Kt(),Fy},p.ki=function(t){var i;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return;case 1:Ra(this,null);return;case 2:!this.a&&(this.a=new U$(this,Os,this)),Vn(this.a);return}Yu(this,t-Pn((Kt(),Fy)),tn((i=f(dn(this,16),29),i||Fy),t))},N(fn,"ETypeParameterImpl",457),P(458,83,hl,U$),p.Nj=function(t,i){return x6n(this,f(t,89),i)},p.Oj=function(t,i){return C6n(this,f(t,89),i)},N(fn,"ETypeParameterImpl/1",458),P(647,45,k2,SY),p.ec=function(){return new Yj(this)},N(fn,"ETypeParameterImpl/2",647),P(570,lh,wc,Yj),p.Fc=function(t){return zdt(this,f(t,89))},p.Gc=function(t){var i,s,a;for(a=!1,s=t.Kc();s.Ob();)i=f(s.Pb(),89),xr(this.a,i,"")==null&&(a=!0);return a},p.$b=function(){xc(this.a)},p.Hc=function(t){return Na(this.a,t)},p.Kc=function(){var t;return t=new aw(new U0(this.a).a),new Qj(t)},p.Mc=function(t){return D0t(this,t)},p.gc=function(){return u$(this.a)},N(fn,"ETypeParameterImpl/2/1",570),P(571,1,ko,Qj),p.Nb=function(t){Uo(this,t)},p.Pb=function(){return f(Xm(this.a).ld(),89)},p.Ob=function(){return this.a.b},p.Qb=function(){Vwt(this.a)},N(fn,"ETypeParameterImpl/2/1/1",571),P(1329,45,k2,flt),p._b=function(t){return Eo(t)?LZ(this,t):!!xs(this.f,t)},p.xc=function(t){var i,s;return i=Eo(t)?ua(this,t):tl(xs(this.f,t)),ve(i,851)?(s=f(i,851),i=s.Kk(),xr(this,f(t,241),i),i):i??(t==null?(WY(),YDt):null)},N(fn,"EValidatorRegistryImpl",1329),P(1349,720,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,2040:1,54:1,99:1,158:1,119:1,120:1},IZe),p.ri=function(t,i){switch(t.hk()){case 21:case 22:case 23:case 24:case 26:case 31:case 32:case 37:case 38:case 39:case 40:case 43:case 44:case 48:case 49:case 20:return i==null?null:dl(i);case 25:return E3n(i);case 27:return Lkn(i);case 28:return jkn(i);case 29:return i==null?null:Eft(L5[0],f(i,206));case 41:return i==null?"":z0(f(i,297));case 42:return dl(i);case 50:return or(i);default:throw ne(new hn(HA+t.xe()+gy))}},p.si=function(t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe;switch(t.G==-1&&(t.G=(W=vu(t),W?Rg(W.vi(),t):-1)),t.G){case 0:return s=new yY,s;case 1:return i=new D1e,i;case 2:return a=new B1e,a;case 4:return c=new Zj,c;case 5:return b=new ult,b;case 6:return g=new Mst,g;case 7:return m=new W1e,m;case 10:return k=new Hj,k;case 11:return I=new vY,I;case 12:return D=new Bbt,D;case 13:return U=new _Y,U;case 14:return z=new Fme,z;case 17:return X=new _Ze,X;case 18:return _=new dm,_;case 19:return oe=new eY,oe;default:throw ne(new hn(voe+t.zb+gy))}},p.ti=function(t,i){switch(t.hk()){case 20:return i==null?null:new lwe(i);case 21:return i==null?null:new k1(i);case 23:case 22:return i==null?null:DAn(i);case 26:case 24:return i==null?null:Z7(Ru(i,-128,127)<<24>>24);case 25:return tPn(i);case 27:return ETn(i);case 28:return kTn(i);case 29:return K6n(i);case 32:case 31:return i==null?null:o_(i);case 38:case 37:return i==null?null:new k0e(i);case 40:case 39:return i==null?null:ot(Ru(i,Qo,Nr));case 41:return null;case 42:return i==null,null;case 44:case 43:return i==null?null:Eb(cU(i));case 49:case 48:return i==null?null:XC(Ru(i,pG,32767)<<16>>16);case 50:return i;default:throw ne(new hn(HA+t.xe()+gy))}},N(fn,"EcoreFactoryImpl",1349),P(560,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,2038:1,54:1,99:1,158:1,184:1,560:1,119:1,120:1,690:1},ubt),p.gb=!1,p.hb=!1;var NOe,JDt=!1;N(fn,"EcorePackageImpl",560),P(1234,1,{851:1},PZe),p.Kk=function(){return Dft(),QDt},N(fn,"EcorePackageImpl/1",1234),P(1243,1,Rr,OZe),p.fk=function(t){return ve(t,155)},p.gk=function(t){return Fe(q9,on,155,t,0,1)},N(fn,"EcorePackageImpl/10",1243),P(1244,1,Rr,NZe),p.fk=function(t){return ve(t,197)},p.gk=function(t){return Fe(Cce,on,197,t,0,1)},N(fn,"EcorePackageImpl/11",1244),P(1245,1,Rr,MZe),p.fk=function(t){return ve(t,58)},p.gk=function(t){return Fe(d0,on,58,t,0,1)},N(fn,"EcorePackageImpl/12",1245),P(1246,1,Rr,DZe),p.fk=function(t){return ve(t,411)},p.gk=function(t){return Fe(Of,RAe,62,t,0,1)},N(fn,"EcorePackageImpl/13",1246),P(1247,1,Rr,LZe),p.fk=function(t){return ve(t,241)},p.gk=function(t){return Fe(Bd,on,241,t,0,1)},N(fn,"EcorePackageImpl/14",1247),P(1248,1,Rr,jZe),p.fk=function(t){return ve(t,518)},p.gk=function(t){return Fe(Ly,on,2116,t,0,1)},N(fn,"EcorePackageImpl/15",1248),P(1249,1,Rr,FZe),p.fk=function(t){return ve(t,102)},p.gk=function(t){return Fe(Q_,O2,19,t,0,1)},N(fn,"EcorePackageImpl/16",1249),P(1250,1,Rr,BZe),p.fk=function(t){return ve(t,179)},p.gk=function(t){return Fe(rc,O2,179,t,0,1)},N(fn,"EcorePackageImpl/17",1250),P(1251,1,Rr,WZe),p.fk=function(t){return ve(t,481)},p.gk=function(t){return Fe(J_,on,481,t,0,1)},N(fn,"EcorePackageImpl/18",1251),P(1252,1,Rr,HZe),p.fk=function(t){return ve(t,561)},p.gk=function(t){return Fe(Ll,QTt,561,t,0,1)},N(fn,"EcorePackageImpl/19",1252),P(1235,1,Rr,UZe),p.fk=function(t){return ve(t,331)},p.gk=function(t){return Fe(Y_,O2,35,t,0,1)},N(fn,"EcorePackageImpl/2",1235),P(1253,1,Rr,GZe),p.fk=function(t){return ve(t,248)},p.gk=function(t){return Fe(Os,b$t,89,t,0,1)},N(fn,"EcorePackageImpl/20",1253),P(1254,1,Rr,VZe),p.fk=function(t){return ve(t,457)},p.gk=function(t){return Fe(Ga,on,850,t,0,1)},N(fn,"EcorePackageImpl/21",1254),P(1255,1,Rr,zZe),p.fk=function(t){return Iv(t)},p.gk=function(t){return Fe(Li,rt,485,t,8,1)},N(fn,"EcorePackageImpl/22",1255),P(1256,1,Rr,KZe),p.fk=function(t){return ve(t,195)},p.gk=function(t){return Fe(_c,rt,195,t,0,2)},N(fn,"EcorePackageImpl/23",1256),P(1257,1,Rr,qZe),p.fk=function(t){return ve(t,222)},p.gk=function(t){return Fe(G3,rt,222,t,0,1)},N(fn,"EcorePackageImpl/24",1257),P(1258,1,Rr,XZe),p.fk=function(t){return ve(t,180)},p.gk=function(t){return Fe(NI,rt,180,t,0,1)},N(fn,"EcorePackageImpl/25",1258),P(1259,1,Rr,JZe),p.fk=function(t){return ve(t,206)},p.gk=function(t){return Fe(kG,rt,206,t,0,1)},N(fn,"EcorePackageImpl/26",1259),P(1260,1,Rr,YZe),p.fk=function(t){return!1},p.gk=function(t){return Fe(QOe,on,2215,t,0,1)},N(fn,"EcorePackageImpl/27",1260),P(1261,1,Rr,QZe),p.fk=function(t){return Pv(t)},p.gk=function(t){return Fe(Qi,rt,345,t,7,1)},N(fn,"EcorePackageImpl/28",1261),P(1262,1,Rr,ZZe),p.fk=function(t){return ve(t,61)},p.gk=function(t){return Fe(hOe,w_,61,t,0,1)},N(fn,"EcorePackageImpl/29",1262),P(1236,1,Rr,eet),p.fk=function(t){return ve(t,519)},p.gk=function(t){return Fe(_r,{3:1,4:1,5:1,2033:1},598,t,0,1)},N(fn,"EcorePackageImpl/3",1236),P(1263,1,Rr,tet),p.fk=function(t){return ve(t,582)},p.gk=function(t){return Fe(gOe,on,2039,t,0,1)},N(fn,"EcorePackageImpl/30",1263),P(1264,1,Rr,net),p.fk=function(t){return ve(t,160)},p.gk=function(t){return Fe(FOe,w_,160,t,0,1)},N(fn,"EcorePackageImpl/31",1264),P(1265,1,Rr,ret),p.fk=function(t){return ve(t,76)},p.gk=function(t){return Fe(Wz,k$t,76,t,0,1)},N(fn,"EcorePackageImpl/32",1265),P(1266,1,Rr,iet),p.fk=function(t){return ve(t,161)},p.gk=function(t){return Fe(XA,rt,161,t,0,1)},N(fn,"EcorePackageImpl/33",1266),P(1267,1,Rr,oet),p.fk=function(t){return ve(t,17)},p.gk=function(t){return Fe(Ko,rt,17,t,0,1)},N(fn,"EcorePackageImpl/34",1267),P(1268,1,Rr,set),p.fk=function(t){return ve(t,297)},p.gk=function(t){return Fe(jAe,on,297,t,0,1)},N(fn,"EcorePackageImpl/35",1268),P(1269,1,Rr,aet),p.fk=function(t){return ve(t,168)},p.gk=function(t){return Fe(my,rt,168,t,0,1)},N(fn,"EcorePackageImpl/36",1269),P(1270,1,Rr,cet),p.fk=function(t){return ve(t,85)},p.gk=function(t){return Fe(FAe,on,85,t,0,1)},N(fn,"EcorePackageImpl/37",1270),P(1271,1,Rr,uet),p.fk=function(t){return ve(t,599)},p.gk=function(t){return Fe(MOe,on,599,t,0,1)},N(fn,"EcorePackageImpl/38",1271),P(1272,1,Rr,fet),p.fk=function(t){return!1},p.gk=function(t){return Fe(ZOe,on,2216,t,0,1)},N(fn,"EcorePackageImpl/39",1272),P(1237,1,Rr,det),p.fk=function(t){return ve(t,90)},p.gk=function(t){return Fe(Pf,on,29,t,0,1)},N(fn,"EcorePackageImpl/4",1237),P(1273,1,Rr,het),p.fk=function(t){return ve(t,191)},p.gk=function(t){return Fe(yy,rt,191,t,0,1)},N(fn,"EcorePackageImpl/40",1273),P(1274,1,Rr,pet),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(fn,"EcorePackageImpl/41",1274),P(1275,1,Rr,bet),p.fk=function(t){return ve(t,596)},p.gk=function(t){return Fe(bOe,on,596,t,0,1)},N(fn,"EcorePackageImpl/42",1275),P(1276,1,Rr,get),p.fk=function(t){return!1},p.gk=function(t){return Fe(e7e,rt,2217,t,0,1)},N(fn,"EcorePackageImpl/43",1276),P(1277,1,Rr,wet),p.fk=function(t){return ve(t,44)},p.gk=function(t){return Fe(Tw,dU,44,t,0,1)},N(fn,"EcorePackageImpl/44",1277),P(1238,1,Rr,met),p.fk=function(t){return ve(t,142)},p.gk=function(t){return Fe(Wd,on,142,t,0,1)},N(fn,"EcorePackageImpl/5",1238),P(1239,1,Rr,yet),p.fk=function(t){return ve(t,156)},p.gk=function(t){return Fe(Oce,on,156,t,0,1)},N(fn,"EcorePackageImpl/6",1239),P(1240,1,Rr,vet),p.fk=function(t){return ve(t,469)},p.gk=function(t){return Fe(Bz,on,685,t,0,1)},N(fn,"EcorePackageImpl/7",1240),P(1241,1,Rr,_et),p.fk=function(t){return ve(t,582)},p.gk=function(t){return Fe(Db,on,694,t,0,1)},N(fn,"EcorePackageImpl/8",1241),P(1242,1,Rr,Eet),p.fk=function(t){return ve(t,480)},p.gk=function(t){return Fe(D5,on,480,t,0,1)},N(fn,"EcorePackageImpl/9",1242),P(1038,2080,YTt,Plt),p.Mi=function(t,i){fCn(this,f(i,424))},p.Qi=function(t,i){xEt(this,t,f(i,424))},N(fn,"MinimalEObjectImpl/1ArrayDelegatingAdapterList",1038),P(1039,152,NM,ebt),p.jj=function(){return this.a.a},N(fn,"MinimalEObjectImpl/1ArrayDelegatingAdapterList/1",1039),P(1067,1066,{},pft),N("org.eclipse.emf.ecore.plugin","EcorePlugin",1067);var MOe=Ei(R$t,"Resource");P(799,1524,x$t),p.Hl=function(t){},p.Il=function(t){},p.El=function(){return!this.a&&(this.a=new hY(this)),this.a},p.Fl=function(t){var i,s,a,c,b;if(a=t.length,a>0)if(pn(0,t.length),t.charCodeAt(0)==47){for(b=new ka(4),c=1,i=1;i0&&(t=(Mo(0,s,t.length),t.substr(0,s))));return B5n(this,t)},p.Gl=function(){return this.c},p.Ib=function(){var t;return z0(this.Rm)+"@"+(t=ti(this)>>>0,t.toString(16))+" uri='"+this.d+"'"},p.b=!1,N(Loe,"ResourceImpl",799),P(1525,799,x$t,Sst),N(Loe,"BinaryResourceImpl",1525),P(1190,708,Ioe),p.bj=function(t){return ve(t,58)?I_n(this,f(t,58)):ve(t,599)?new Sn(f(t,599).El()):Ne(t)===Ne(this.f)?f(t,16).Kc():(oC(),Y9.a)},p.Ob=function(){return wke(this)},p.a=!1,N(fi,"EcoreUtil/ContentTreeIterator",1190),P(1526,1190,Ioe,$pt),p.bj=function(t){return Ne(t)===Ne(this.f)?f(t,15).Kc():new C1t(f(t,58))},N(Loe,"ResourceImpl/5",1526),P(658,2092,p$t,hY),p.Hc=function(t){return this.i<=4?lA(this,t):ve(t,54)&&f(t,54).Jh()==this.a},p.Mi=function(t,i){t==this.i-1&&(this.a.b||(this.a.b=!0))},p.Oi=function(t,i){t==0?this.a.b||(this.a.b=!0):dee(this,t,i)},p.Qi=function(t,i){},p.Ri=function(t,i,s){},p.Lj=function(){return 2},p.jj=function(){return this.a},p.Mj=function(){return!0},p.Nj=function(t,i){var s;return s=f(t,54),i=s.fi(this.a,i),i},p.Oj=function(t,i){var s;return s=f(t,54),s.fi(null,i)},p.Pj=function(){return!1},p.Si=function(){return!0},p.aj=function(t){return Fe(d0,on,58,t,0,1)},p.Yi=function(){return!1},N(Loe,"ResourceImpl/ContentsEList",658),P(970,2062,xA,Est),p.fd=function(t){return this.a.Ki(t)},p.gc=function(){return this.a.gc()},N(fi,"AbstractSequentialInternalEList/1",970);var DOe,LOe,qo,jOe;P(634,1,{},Pht);var Hz,Uz;N(fi,"BasicExtendedMetaData",634),P(1181,1,{},Nut),p.Jl=function(){return null},p.Kl=function(){return this.a==-2&&upn(this,B6n(this.d,this.b)),this.a},p.Ll=function(){return null},p.Ml=function(){return qt(),qt(),ps},p.xe=function(){return this.c==VA&&fpn(this,J_t(this.d,this.b)),this.c},p.Nl=function(){return 0},p.a=-2,p.c=VA,N(fi,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1181),P(1182,1,{},r1t),p.Jl=function(){return this.a==(SC(),Hz)&&ppn(this,F7n(this.f,this.b)),this.a},p.Kl=function(){return 0},p.Ll=function(){return this.c==(SC(),Hz)&&dpn(this,B7n(this.f,this.b)),this.c},p.Ml=function(){return!this.d&&gpn(this,kMn(this.f,this.b)),this.d},p.xe=function(){return this.e==VA&&mpn(this,J_t(this.f,this.b)),this.e},p.Nl=function(){return this.g==-2&&vpn(this,o6n(this.f,this.b)),this.g},p.e=VA,p.g=-2,N(fi,"BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl",1182),P(1180,1,{},Mut),p.b=!1,p.c=!1,N(fi,"BasicExtendedMetaData/EPackageExtendedMetaDataImpl",1180),P(1183,1,{},i1t),p.c=-2,p.e=VA,p.f=VA,N(fi,"BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl",1183),P(593,632,hl,pB),p.Lj=function(){return this.c},p.ol=function(){return!1},p.Wi=function(t,i){return i},p.c=0,N(fi,"EDataTypeEList",593);var FOe=Ei(fi,"FeatureMap");P(78,593,{3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,79:1,160:1,220:1,2036:1,71:1,97:1},Pi),p.bd=function(t,i){iOn(this,t,f(i,76))},p.Fc=function(t){return SPn(this,f(t,76))},p.Hi=function(t){Avn(this,f(t,76))},p.Nj=function(t,i){return X0n(this,f(t,76),i)},p.Oj=function(t,i){return cye(this,f(t,76),i)},p.Ti=function(t,i){return TNn(this,t,i)},p.Wi=function(t,i){return gDn(this,t,f(i,76))},p.hd=function(t,i){return VOn(this,t,f(i,76))},p.Uj=function(t,i){return J0n(this,f(t,76),i)},p.Vj=function(t,i){return lht(this,f(t,76),i)},p.Wj=function(t,i,s){return z$n(this,f(t,76),f(i,76),s)},p.Zi=function(t,i){return sne(this,t,f(i,76))},p.Ol=function(t,i){return a3e(this,t,i)},p.cd=function(t,i){var s,a,c,b,g,m,_,k,I;for(k=new Gm(i.gc()),c=i.Kc();c.Ob();)if(a=f(c.Pb(),76),b=a.Lk(),xb(this.e,b))(!b.Si()||!iW(this,b,a.md())&&!lA(k,a))&&zn(k,a);else{for(I=Fa(this.e.Dh(),b),s=f(this.g,124),g=!0,m=0;m=0;)if(i=t[this.c],this.k.am(i.Lk()))return this.j=this.f?i:i.md(),this.i=-2,!0;return this.i=-1,this.g=-1,!1},N(fi,"BasicFeatureMap/FeatureEIterator",420),P(676,420,kp,EQ),p.ul=function(){return!0},N(fi,"BasicFeatureMap/ResolvingFeatureEIterator",676),P(968,496,cG,kft),p.pj=function(){return this},N(fi,"EContentsEList/1",968),P(969,496,cG,qut),p.ul=function(){return!1},N(fi,"EContentsEList/2",969),P(967,287,uG,Rft),p.wl=function(t){},p.Ob=function(){return!1},p.Sb=function(){return!1},N(fi,"EContentsEList/FeatureIteratorImpl/1",967),P(840,593,hl,gme),p.Ni=function(){this.a=!0},p.Qj=function(){return this.a},p.Gk=function(){var t;Vn(this),eu(this.e)?(t=this.a,this.a=!1,Dr(this.e,new ed(this.e,2,this.c,t,!1))):this.a=!1},p.a=!1,N(fi,"EDataTypeEList/Unsettable",840),P(1958,593,hl,Pft),p.Si=function(){return!0},N(fi,"EDataTypeUniqueEList",1958),P(1959,840,hl,Oft),p.Si=function(){return!0},N(fi,"EDataTypeUniqueEList/Unsettable",1959),P(147,83,hl,uc),p.nl=function(){return!0},p.Wi=function(t,i){return A3(this,t,f(i,58))},N(fi,"EObjectContainmentEList/Resolving",147),P(1184,555,hl,Nft),p.nl=function(){return!0},p.Wi=function(t,i){return A3(this,t,f(i,58))},N(fi,"EObjectContainmentEList/Unsettable/Resolving",1184),P(766,14,hl,nye),p.Ni=function(){this.a=!0},p.Qj=function(){return this.a},p.Gk=function(){var t;Vn(this),eu(this.e)?(t=this.a,this.a=!1,Dr(this.e,new ed(this.e,2,this.c,t,!1))):this.a=!1},p.a=!1,N(fi,"EObjectContainmentWithInverseEList/Unsettable",766),P(1222,766,hl,Kdt),p.nl=function(){return!0},p.Wi=function(t,i){return A3(this,t,f(i,58))},N(fi,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1222),P(757,505,hl,wme),p.Ni=function(){this.a=!0},p.Qj=function(){return this.a},p.Gk=function(){var t;Vn(this),eu(this.e)?(t=this.a,this.a=!1,Dr(this.e,new ed(this.e,2,this.c,t,!1))):this.a=!1},p.a=!1,N(fi,"EObjectEList/Unsettable",757),P(338,505,hl,KS),p.nl=function(){return!0},p.Wi=function(t,i){return A3(this,t,f(i,58))},N(fi,"EObjectResolvingEList",338),P(1844,757,hl,Mft),p.nl=function(){return!0},p.Wi=function(t,i){return A3(this,t,f(i,58))},N(fi,"EObjectResolvingEList/Unsettable",1844),P(1527,1,{},ket);var YDt;N(fi,"EObjectValidator",1527),P(559,505,hl,IB),p.il=function(){return this.d},p.jl=function(){return this.b},p.Mj=function(){return!0},p.ml=function(){return!0},p.b=0,N(fi,"EObjectWithInverseEList",559),P(1225,559,hl,qdt),p.ll=function(){return!0},N(fi,"EObjectWithInverseEList/ManyInverse",1225),P(635,559,hl,GQ),p.Ni=function(){this.a=!0},p.Qj=function(){return this.a},p.Gk=function(){var t;Vn(this),eu(this.e)?(t=this.a,this.a=!1,Dr(this.e,new ed(this.e,2,this.c,t,!1))):this.a=!1},p.a=!1,N(fi,"EObjectWithInverseEList/Unsettable",635),P(1224,635,hl,Xdt),p.ll=function(){return!0},N(fi,"EObjectWithInverseEList/Unsettable/ManyInverse",1224),P(767,559,hl,rye),p.nl=function(){return!0},p.Wi=function(t,i){return A3(this,t,f(i,58))},N(fi,"EObjectWithInverseResolvingEList",767),P(32,767,hl,en),p.ll=function(){return!0},N(fi,"EObjectWithInverseResolvingEList/ManyInverse",32),P(768,635,hl,iye),p.nl=function(){return!0},p.Wi=function(t,i){return A3(this,t,f(i,58))},N(fi,"EObjectWithInverseResolvingEList/Unsettable",768),P(1223,768,hl,Jdt),p.ll=function(){return!0},N(fi,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1223),P(1185,632,hl),p.Li=function(){return(this.b&1792)==0},p.Ni=function(){this.b|=1},p.kl=function(){return(this.b&4)!=0},p.Mj=function(){return(this.b&40)!=0},p.ll=function(){return(this.b&16)!=0},p.ml=function(){return(this.b&8)!=0},p.nl=function(){return(this.b&E_)!=0},p.al=function(){return(this.b&32)!=0},p.ol=function(){return(this.b&sd)!=0},p.fk=function(t){return this.d?D1t(this.d,t):this.Lk().Hk().fk(t)},p.Qj=function(){return this.b&2?(this.b&1)!=0:this.i!=0},p.Si=function(){return(this.b&128)!=0},p.Gk=function(){var t;Vn(this),this.b&2&&(eu(this.e)?(t=(this.b&1)!=0,this.b&=-2,Ux(this,new ed(this.e,2,yi(this.e.Dh(),this.Lk()),t,!1))):this.b&=-2)},p.Yi=function(){return(this.b&1536)==0},p.b=0,N(fi,"EcoreEList/Generic",1185),P(1186,1185,hl,Hbt),p.Lk=function(){return this.a},N(fi,"EcoreEList/Dynamic",1186),P(765,66,ep,m0e),p.aj=function(t){return rN(this.a.a,t)},N(fi,"EcoreEMap/1",765),P(764,83,hl,nve),p.Mi=function(t,i){EH(this.b,f(i,136))},p.Oi=function(t,i){Fyt(this.b)},p.Pi=function(t,i,s){var a;++(a=this.b,f(i,136),a).e},p.Qi=function(t,i){bte(this.b,f(i,136))},p.Ri=function(t,i,s){bte(this.b,f(s,136)),Ne(s)===Ne(i)&&f(s,136).Ci(Kgn(f(i,136).ld())),EH(this.b,f(i,136))},N(fi,"EcoreEMap/DelegateEObjectContainmentEList",764),P(1220,141,kAe,nyt),N(fi,"EcoreEMap/Unsettable",1220),P(1221,764,hl,Ydt),p.Ni=function(){this.a=!0},p.Qj=function(){return this.a},p.Gk=function(){var t;Vn(this),eu(this.e)?(t=this.a,this.a=!1,Dr(this.e,new ed(this.e,2,this.c,t,!1))):this.a=!1},p.a=!1,N(fi,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1221),P(1189,215,k2,Upt),p.a=!1,p.b=!1,N(fi,"EcoreUtil/Copier",1189),P(759,1,ko,C1t),p.Nb=function(t){Uo(this,t)},p.Ob=function(){return M_t(this)},p.Pb=function(){var t;return M_t(this),t=this.b,this.b=null,t},p.Qb=function(){this.a.Qb()},N(fi,"EcoreUtil/ProperContentIterator",759),P(1528,1527,{},knt);var QDt;N(fi,"EcoreValidator",1528);var ZDt;Ei(fi,"FeatureMapUtil/Validator"),P(1295,1,{2041:1},Ret),p.am=function(t){return!0},N(fi,"FeatureMapUtil/1",1295),P(773,1,{2041:1},L3e),p.am=function(t){var i;return this.c==t?!0:(i=gt(En(this.a,t)),i==null?z7n(this,t)?(C0t(this.a,t,(cn(),qA)),!0):(C0t(this.a,t,(cn(),Y1)),!1):i==(cn(),qA))},p.e=!1;var Lce;N(fi,"FeatureMapUtil/BasicValidator",773),P(774,45,k2,pme),N(fi,"FeatureMapUtil/BasicValidator/Cache",774),P(509,56,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,71:1,97:1},l7),p.bd=function(t,i){g3t(this.c,this.b,t,i)},p.Fc=function(t){return a3e(this.c,this.b,t)},p.cd=function(t,i){return h9n(this.c,this.b,t,i)},p.Gc=function(t){return N$(this,t)},p.Gi=function(t,i){a3n(this.c,this.b,t,i)},p.Wk=function(t,i){return e3e(this.c,this.b,t,i)},p.$i=function(t){return iU(this.c,this.b,t,!1)},p.Ii=function(){return sft(this.c,this.b)},p.Ji=function(){return Ngn(this.c,this.b)},p.Ki=function(t){return hkn(this.c,this.b,t)},p.Xk=function(t,i){return $dt(this,t,i)},p.$b=function(){Ik(this)},p.Hc=function(t){return iW(this.c,this.b,t)},p.Ic=function(t){return dRn(this.c,this.b,t)},p.Xb=function(t){return iU(this.c,this.b,t,!0)},p.Fk=function(t){return this},p.dd=function(t){return vEn(this.c,this.b,t)},p.dc=function(){return UF(this)},p.Qj=function(){return!kN(this.c,this.b)},p.Kc=function(){return Qkn(this.c,this.b)},p.ed=function(){return Zkn(this.c,this.b)},p.fd=function(t){return $Cn(this.c,this.b,t)},p.Ti=function(t,i){return IRt(this.c,this.b,t,i)},p.Ui=function(t,i){gkn(this.c,this.b,t,i)},p.gd=function(t){return cEt(this.c,this.b,t)},p.Mc=function(t){return pNn(this.c,this.b,t)},p.hd=function(t,i){return BRt(this.c,this.b,t,i)},p.Wb=function(t){FH(this.c,this.b),N$(this,f(t,15))},p.gc=function(){return TCn(this.c,this.b)},p.Pc=function(){return S2n(this.c,this.b)},p.Qc=function(t){return _En(this.c,this.b,t)},p.Ib=function(){var t,i;for(i=new ig,i.a+="[",t=sft(this.c,this.b);ote(t);)Ms(i,D$(vH(t))),ote(t)&&(i.a+=ds);return i.a+="]",i.a},p.Gk=function(){FH(this.c,this.b)},N(fi,"FeatureMapUtil/FeatureEList",509),P(644,39,NM,tee),p.hj=function(t){return E6(this,t)},p.mj=function(t){var i,s,a,c,b,g,m;switch(this.d){case 1:case 2:{if(b=t.jj(),Ne(b)===Ne(this.c)&&E6(this,null)==t.hj(null))return this.g=t.ij(),t.gj()==1&&(this.d=1),!0;break}case 3:{switch(c=t.gj(),c){case 3:{if(b=t.jj(),Ne(b)===Ne(this.c)&&E6(this,null)==t.hj(null))return this.d=5,i=new Gm(2),zn(i,this.g),zn(i,t.ij()),this.g=i,!0;break}}break}case 5:{switch(c=t.gj(),c){case 3:{if(b=t.jj(),Ne(b)===Ne(this.c)&&E6(this,null)==t.hj(null))return s=f(this.g,16),s.Fc(t.ij()),!0;break}}break}case 4:{switch(c=t.gj(),c){case 3:{if(b=t.jj(),Ne(b)===Ne(this.c)&&E6(this,null)==t.hj(null))return this.d=1,this.g=t.ij(),!0;break}case 4:{if(b=t.jj(),Ne(b)===Ne(this.c)&&E6(this,null)==t.hj(null))return this.d=6,m=new Gm(2),zn(m,this.n),zn(m,t.kj()),this.n=m,g=se(ie(Xn,1),wr,28,15,[this.o,t.lj()]),this.g=g,!0;break}}break}case 6:{switch(c=t.gj(),c){case 4:{if(b=t.jj(),Ne(b)===Ne(this.c)&&E6(this,null)==t.hj(null))return s=f(this.n,16),s.Fc(t.kj()),g=f(this.g,53),a=Fe(Xn,wr,28,g.length+1,15,1),oa(g,0,a,0,g.length),a[g.length]=t.lj(),this.g=a,!0;break}}break}}return!1},N(fi,"FeatureMapUtil/FeatureENotificationImpl",644),P(564,509,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,160:1,220:1,2036:1,71:1,97:1},mB),p.Ol=function(t,i){return a3e(this.c,t,i)},p.Pl=function(t,i,s){return e3e(this.c,t,i,s)},p.Ql=function(t,i,s){return x3e(this.c,t,i,s)},p.Rl=function(){return this},p.Sl=function(t,i){return eM(this.c,t,i)},p.Tl=function(t){return f(iU(this.c,this.b,t,!1),76).Lk()},p.Ul=function(t){return f(iU(this.c,this.b,t,!1),76).md()},p.Vl=function(){return this.a},p.Wl=function(t){return!kN(this.c,t)},p.Xl=function(t,i){oU(this.c,t,i)},p.Yl=function(t){return oyt(this.c,t)},p.Zl=function(t){LSt(this.c,t)},N(fi,"FeatureMapUtil/FeatureFeatureMap",564),P(1294,1,Doe,Out),p.Fk=function(t){return iU(this.b,this.a,-1,t)},p.Qj=function(){return!kN(this.b,this.a)},p.Wb=function(t){oU(this.b,this.a,t)},p.Gk=function(){FH(this.b,this.a)},N(fi,"FeatureMapUtil/FeatureValue",1294);var hR,jce,Fce,pR,eLt,Z9=Ei(mG,"AnyType");P(680,63,Cb,$Y),N(mG,"InvalidDatatypeValueException",680);var Gz=Ei(mG,A$t),eD=Ei(mG,T$t),BOe=Ei(mG,$$t),tLt,zl,WOe,zw,nLt,rLt,iLt,oLt,sLt,lLt,aLt,cLt,uLt,fLt,dLt,bE,hLt,gE,W5,pLt,By,tD,nD,bLt,H5,U5;P(844,516,{110:1,94:1,93:1,58:1,54:1,99:1,857:1},L0e),p.Lh=function(t,i,s){switch(t){case 0:return s?(!this.c&&(this.c=new Pi(this,0)),this.c):(!this.c&&(this.c=new Pi(this,0)),this.c.b);case 1:return s?(!this.c&&(this.c=new Pi(this,0)),f(fa(this.c,(Jr(),zw)),160)):(!this.c&&(this.c=new Pi(this,0)),f(f(fa(this.c,(Jr(),zw)),160),220)).Vl();case 2:return s?(!this.b&&(this.b=new Pi(this,2)),this.b):(!this.b&&(this.b=new Pi(this,2)),this.b.b)}return qu(this,t-Pn(this.ii()),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():this.ii(),t),i,s)},p.Uh=function(t,i,s){var a;switch(i){case 0:return!this.c&&(this.c=new Pi(this,0)),JN(this.c,t,s);case 1:return(!this.c&&(this.c=new Pi(this,0)),f(f(fa(this.c,(Jr(),zw)),160),71)).Xk(t,s);case 2:return!this.b&&(this.b=new Pi(this,2)),JN(this.b,t,s)}return a=f(tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():this.ii(),i),69),a.wk().Ak(this,B_e(this),i-Pn(this.ii()),t,s)},p.Wh=function(t){switch(t){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new Pi(this,0)),f(fa(this.c,(Jr(),zw)),160)).dc();case 2:return!!this.b&&this.b.i!=0}return zu(this,t-Pn(this.ii()),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():this.ii(),t))},p.bi=function(t,i){switch(t){case 0:!this.c&&(this.c=new Pi(this,0)),C7(this.c,i);return;case 1:(!this.c&&(this.c=new Pi(this,0)),f(f(fa(this.c,(Jr(),zw)),160),220)).Wb(i);return;case 2:!this.b&&(this.b=new Pi(this,2)),C7(this.b,i);return}Qu(this,t-Pn(this.ii()),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():this.ii(),t),i)},p.ii=function(){return Jr(),WOe},p.ki=function(t){switch(t){case 0:!this.c&&(this.c=new Pi(this,0)),Vn(this.c);return;case 1:(!this.c&&(this.c=new Pi(this,0)),f(fa(this.c,(Jr(),zw)),160)).$b();return;case 2:!this.b&&(this.b=new Pi(this,2)),Vn(this.b);return}Yu(this,t-Pn(this.ii()),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():this.ii(),t))},p.Ib=function(){var t;return this.j&4?rd(this):(t=new wf(rd(this)),t.a+=" (mixed: ",$$(t,this.c),t.a+=", anyAttribute: ",$$(t,this.b),t.a+=")",t.a)},N(Yi,"AnyTypeImpl",844),P(681,516,{110:1,94:1,93:1,58:1,54:1,99:1,2119:1,681:1},Det),p.Lh=function(t,i,s){switch(t){case 0:return this.a;case 1:return this.b}return qu(this,t-Pn((Jr(),bE)),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():bE,t),i,s)},p.Wh=function(t){switch(t){case 0:return this.a!=null;case 1:return this.b!=null}return zu(this,t-Pn((Jr(),bE)),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():bE,t))},p.bi=function(t,i){switch(t){case 0:Epn(this,or(i));return;case 1:Rpn(this,or(i));return}Qu(this,t-Pn((Jr(),bE)),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():bE,t),i)},p.ii=function(){return Jr(),bE},p.ki=function(t){switch(t){case 0:this.a=null;return;case 1:this.b=null;return}Yu(this,t-Pn((Jr(),bE)),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():bE,t))},p.Ib=function(){var t;return this.j&4?rd(this):(t=new wf(rd(this)),t.a+=" (data: ",Ms(t,this.a),t.a+=", target: ",Ms(t,this.b),t.a+=")",t.a)},p.a=null,p.b=null,N(Yi,"ProcessingInstructionImpl",681),P(682,844,{110:1,94:1,93:1,58:1,54:1,99:1,857:1,2120:1,682:1},dlt),p.Lh=function(t,i,s){switch(t){case 0:return s?(!this.c&&(this.c=new Pi(this,0)),this.c):(!this.c&&(this.c=new Pi(this,0)),this.c.b);case 1:return s?(!this.c&&(this.c=new Pi(this,0)),f(fa(this.c,(Jr(),zw)),160)):(!this.c&&(this.c=new Pi(this,0)),f(f(fa(this.c,(Jr(),zw)),160),220)).Vl();case 2:return s?(!this.b&&(this.b=new Pi(this,2)),this.b):(!this.b&&(this.b=new Pi(this,2)),this.b.b);case 3:return!this.c&&(this.c=new Pi(this,0)),or(eM(this.c,(Jr(),W5),!0));case 4:return sye(this.a,(!this.c&&(this.c=new Pi(this,0)),or(eM(this.c,(Jr(),W5),!0))));case 5:return this.a}return qu(this,t-Pn((Jr(),gE)),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():gE,t),i,s)},p.Wh=function(t){switch(t){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new Pi(this,0)),f(fa(this.c,(Jr(),zw)),160)).dc();case 2:return!!this.b&&this.b.i!=0;case 3:return!this.c&&(this.c=new Pi(this,0)),or(eM(this.c,(Jr(),W5),!0))!=null;case 4:return sye(this.a,(!this.c&&(this.c=new Pi(this,0)),or(eM(this.c,(Jr(),W5),!0))))!=null;case 5:return!!this.a}return zu(this,t-Pn((Jr(),gE)),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():gE,t))},p.bi=function(t,i){switch(t){case 0:!this.c&&(this.c=new Pi(this,0)),C7(this.c,i);return;case 1:(!this.c&&(this.c=new Pi(this,0)),f(f(fa(this.c,(Jr(),zw)),160),220)).Wb(i);return;case 2:!this.b&&(this.b=new Pi(this,2)),C7(this.b,i);return;case 3:qve(this,or(i));return;case 4:qve(this,oye(this.a,i));return;case 5:kpn(this,f(i,156));return}Qu(this,t-Pn((Jr(),gE)),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():gE,t),i)},p.ii=function(){return Jr(),gE},p.ki=function(t){switch(t){case 0:!this.c&&(this.c=new Pi(this,0)),Vn(this.c);return;case 1:(!this.c&&(this.c=new Pi(this,0)),f(fa(this.c,(Jr(),zw)),160)).$b();return;case 2:!this.b&&(this.b=new Pi(this,2)),Vn(this.b);return;case 3:!this.c&&(this.c=new Pi(this,0)),oU(this.c,(Jr(),W5),null);return;case 4:qve(this,oye(this.a,null));return;case 5:this.a=null;return}Yu(this,t-Pn((Jr(),gE)),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():gE,t))},N(Yi,"SimpleAnyTypeImpl",682),P(683,516,{110:1,94:1,93:1,58:1,54:1,99:1,2121:1,683:1},hlt),p.Lh=function(t,i,s){switch(t){case 0:return s?(!this.a&&(this.a=new Pi(this,0)),this.a):(!this.a&&(this.a=new Pi(this,0)),this.a.b);case 1:return s?(!this.b&&(this.b=new pc((Kt(),_s),Ll,this,1)),this.b):(!this.b&&(this.b=new pc((Kt(),_s),Ll,this,1)),V7(this.b));case 2:return s?(!this.c&&(this.c=new pc((Kt(),_s),Ll,this,2)),this.c):(!this.c&&(this.c=new pc((Kt(),_s),Ll,this,2)),V7(this.c));case 3:return!this.a&&(this.a=new Pi(this,0)),fa(this.a,(Jr(),tD));case 4:return!this.a&&(this.a=new Pi(this,0)),fa(this.a,(Jr(),nD));case 5:return!this.a&&(this.a=new Pi(this,0)),fa(this.a,(Jr(),H5));case 6:return!this.a&&(this.a=new Pi(this,0)),fa(this.a,(Jr(),U5))}return qu(this,t-Pn((Jr(),By)),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():By,t),i,s)},p.Uh=function(t,i,s){var a;switch(i){case 0:return!this.a&&(this.a=new Pi(this,0)),JN(this.a,t,s);case 1:return!this.b&&(this.b=new pc((Kt(),_s),Ll,this,1)),lB(this.b,t,s);case 2:return!this.c&&(this.c=new pc((Kt(),_s),Ll,this,2)),lB(this.c,t,s);case 5:return!this.a&&(this.a=new Pi(this,0)),$dt(fa(this.a,(Jr(),H5)),t,s)}return a=f(tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():(Jr(),By),i),69),a.wk().Ak(this,B_e(this),i-Pn((Jr(),By)),t,s)},p.Wh=function(t){switch(t){case 0:return!!this.a&&this.a.i!=0;case 1:return!!this.b&&this.b.f!=0;case 2:return!!this.c&&this.c.f!=0;case 3:return!this.a&&(this.a=new Pi(this,0)),!UF(fa(this.a,(Jr(),tD)));case 4:return!this.a&&(this.a=new Pi(this,0)),!UF(fa(this.a,(Jr(),nD)));case 5:return!this.a&&(this.a=new Pi(this,0)),!UF(fa(this.a,(Jr(),H5)));case 6:return!this.a&&(this.a=new Pi(this,0)),!UF(fa(this.a,(Jr(),U5)))}return zu(this,t-Pn((Jr(),By)),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():By,t))},p.bi=function(t,i){switch(t){case 0:!this.a&&(this.a=new Pi(this,0)),C7(this.a,i);return;case 1:!this.b&&(this.b=new pc((Kt(),_s),Ll,this,1)),UW(this.b,i);return;case 2:!this.c&&(this.c=new pc((Kt(),_s),Ll,this,2)),UW(this.c,i);return;case 3:!this.a&&(this.a=new Pi(this,0)),Ik(fa(this.a,(Jr(),tD))),!this.a&&(this.a=new Pi(this,0)),N$(fa(this.a,tD),f(i,16));return;case 4:!this.a&&(this.a=new Pi(this,0)),Ik(fa(this.a,(Jr(),nD))),!this.a&&(this.a=new Pi(this,0)),N$(fa(this.a,nD),f(i,16));return;case 5:!this.a&&(this.a=new Pi(this,0)),Ik(fa(this.a,(Jr(),H5))),!this.a&&(this.a=new Pi(this,0)),N$(fa(this.a,H5),f(i,16));return;case 6:!this.a&&(this.a=new Pi(this,0)),Ik(fa(this.a,(Jr(),U5))),!this.a&&(this.a=new Pi(this,0)),N$(fa(this.a,U5),f(i,16));return}Qu(this,t-Pn((Jr(),By)),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():By,t),i)},p.ii=function(){return Jr(),By},p.ki=function(t){switch(t){case 0:!this.a&&(this.a=new Pi(this,0)),Vn(this.a);return;case 1:!this.b&&(this.b=new pc((Kt(),_s),Ll,this,1)),this.b.c.$b();return;case 2:!this.c&&(this.c=new pc((Kt(),_s),Ll,this,2)),this.c.c.$b();return;case 3:!this.a&&(this.a=new Pi(this,0)),Ik(fa(this.a,(Jr(),tD)));return;case 4:!this.a&&(this.a=new Pi(this,0)),Ik(fa(this.a,(Jr(),nD)));return;case 5:!this.a&&(this.a=new Pi(this,0)),Ik(fa(this.a,(Jr(),H5)));return;case 6:!this.a&&(this.a=new Pi(this,0)),Ik(fa(this.a,(Jr(),U5)));return}Yu(this,t-Pn((Jr(),By)),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():By,t))},p.Ib=function(){var t;return this.j&4?rd(this):(t=new wf(rd(this)),t.a+=" (mixed: ",$$(t,this.a),t.a+=")",t.a)},N(Yi,"XMLTypeDocumentRootImpl",683),P(2028,720,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1,2122:1},xet),p.ri=function(t,i){switch(t.hk()){case 7:case 8:case 9:case 10:case 16:case 22:case 23:case 24:case 25:case 26:case 32:case 33:case 34:case 36:case 37:case 44:case 45:case 50:case 51:case 53:case 55:case 56:case 57:case 58:case 60:case 61:case 4:return i==null?null:dl(i);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return or(i);case 6:return s0n(f(i,195));case 12:case 47:case 49:case 11:return Cxt(this,t,i);case 13:return i==null?null:g9n(f(i,247));case 15:case 14:return i==null?null:Svn(Ae(je(i)));case 17:return k2t((Jr(),i));case 18:return k2t(i);case 21:case 20:return i==null?null:Evn(f(i,161).a);case 27:return l0n(f(i,195));case 30:return jSt((Jr(),f(i,15)));case 31:return jSt(f(i,15));case 40:return c0n((Jr(),i));case 42:return R2t((Jr(),i));case 43:return R2t(i);case 59:case 48:return a0n((Jr(),i));default:throw ne(new hn(HA+t.xe()+gy))}},p.si=function(t){var i,s,a,c,b;switch(t.G==-1&&(t.G=(s=vu(t),s?Rg(s.vi(),t):-1)),t.G){case 0:return i=new L0e,i;case 1:return a=new Det,a;case 2:return c=new dlt,c;case 3:return b=new hlt,b;default:throw ne(new hn(voe+t.zb+gy))}},p.ti=function(t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge;switch(t.hk()){case 5:case 52:case 4:return i;case 6:return b4n(i);case 8:case 7:return i==null?null:t6n(i);case 9:return i==null?null:Z7(Ru((a=ha(i,!0),a.length>0&&(pn(0,a.length),a.charCodeAt(0)==43)?(pn(1,a.length+1),a.substr(1)):a),-128,127)<<24>>24);case 10:return i==null?null:Z7(Ru((c=ha(i,!0),c.length>0&&(pn(0,c.length),c.charCodeAt(0)==43)?(pn(1,c.length+1),c.substr(1)):c),-128,127)<<24>>24);case 11:return or(ay(this,(Jr(),iLt),i));case 12:return or(ay(this,(Jr(),oLt),i));case 13:return i==null?null:new lwe(ha(i,!0));case 15:case 14:return kPn(i);case 16:return or(ay(this,(Jr(),sLt),i));case 17:return B_t((Jr(),i));case 18:return B_t(i);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return ha(i,!0);case 21:case 20:return NPn(i);case 22:return or(ay(this,(Jr(),lLt),i));case 23:return or(ay(this,(Jr(),aLt),i));case 24:return or(ay(this,(Jr(),cLt),i));case 25:return or(ay(this,(Jr(),uLt),i));case 26:return or(ay(this,(Jr(),fLt),i));case 27:return r4n(i);case 30:return W_t((Jr(),i));case 31:return W_t(i);case 32:return i==null?null:ot(Ru((I=ha(i,!0),I.length>0&&(pn(0,I.length),I.charCodeAt(0)==43)?(pn(1,I.length+1),I.substr(1)):I),Qo,Nr));case 33:return i==null?null:new k1((D=ha(i,!0),D.length>0&&(pn(0,D.length),D.charCodeAt(0)==43)?(pn(1,D.length+1),D.substr(1)):D));case 34:return i==null?null:ot(Ru((W=ha(i,!0),W.length>0&&(pn(0,W.length),W.charCodeAt(0)==43)?(pn(1,W.length+1),W.substr(1)):W),Qo,Nr));case 36:return i==null?null:Eb(cU((U=ha(i,!0),U.length>0&&(pn(0,U.length),U.charCodeAt(0)==43)?(pn(1,U.length+1),U.substr(1)):U)));case 37:return i==null?null:Eb(cU((z=ha(i,!0),z.length>0&&(pn(0,z.length),z.charCodeAt(0)==43)?(pn(1,z.length+1),z.substr(1)):z)));case 40:return eTn((Jr(),i));case 42:return H_t((Jr(),i));case 43:return H_t(i);case 44:return i==null?null:new k1((X=ha(i,!0),X.length>0&&(pn(0,X.length),X.charCodeAt(0)==43)?(pn(1,X.length+1),X.substr(1)):X));case 45:return i==null?null:new k1((oe=ha(i,!0),oe.length>0&&(pn(0,oe.length),oe.charCodeAt(0)==43)?(pn(1,oe.length+1),oe.substr(1)):oe));case 46:return ha(i,!1);case 47:return or(ay(this,(Jr(),dLt),i));case 59:case 48:return Z4n((Jr(),i));case 49:return or(ay(this,(Jr(),hLt),i));case 50:return i==null?null:XC(Ru((ge=ha(i,!0),ge.length>0&&(pn(0,ge.length),ge.charCodeAt(0)==43)?(pn(1,ge.length+1),ge.substr(1)):ge),pG,32767)<<16>>16);case 51:return i==null?null:XC(Ru((b=ha(i,!0),b.length>0&&(pn(0,b.length),b.charCodeAt(0)==43)?(pn(1,b.length+1),b.substr(1)):b),pG,32767)<<16>>16);case 53:return or(ay(this,(Jr(),pLt),i));case 55:return i==null?null:XC(Ru((g=ha(i,!0),g.length>0&&(pn(0,g.length),g.charCodeAt(0)==43)?(pn(1,g.length+1),g.substr(1)):g),pG,32767)<<16>>16);case 56:return i==null?null:XC(Ru((m=ha(i,!0),m.length>0&&(pn(0,m.length),m.charCodeAt(0)==43)?(pn(1,m.length+1),m.substr(1)):m),pG,32767)<<16>>16);case 57:return i==null?null:Eb(cU((_=ha(i,!0),_.length>0&&(pn(0,_.length),_.charCodeAt(0)==43)?(pn(1,_.length+1),_.substr(1)):_)));case 58:return i==null?null:Eb(cU((k=ha(i,!0),k.length>0&&(pn(0,k.length),k.charCodeAt(0)==43)?(pn(1,k.length+1),k.substr(1)):k)));case 60:return i==null?null:ot(Ru((s=ha(i,!0),s.length>0&&(pn(0,s.length),s.charCodeAt(0)==43)?(pn(1,s.length+1),s.substr(1)):s),Qo,Nr));case 61:return i==null?null:ot(Ru(ha(i,!0),Qo,Nr));default:throw ne(new hn(HA+t.xe()+gy))}};var gLt,HOe,wLt,UOe;N(Yi,"XMLTypeFactoryImpl",2028),P(594,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1,2044:1,594:1},fbt),p.N=!1,p.O=!1;var mLt=!1;N(Yi,"XMLTypePackageImpl",594),P(1961,1,{851:1},Cet),p.Kk=function(){return w3e(),CLt},N(Yi,"XMLTypePackageImpl/1",1961),P(1970,1,Rr,Aet),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/10",1970),P(1971,1,Rr,Tet),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/11",1971),P(1972,1,Rr,$et),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/12",1972),P(1973,1,Rr,Iet),p.fk=function(t){return Pv(t)},p.gk=function(t){return Fe(Qi,rt,345,t,7,1)},N(Yi,"XMLTypePackageImpl/13",1973),P(1974,1,Rr,Pet),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/14",1974),P(1975,1,Rr,Oet),p.fk=function(t){return ve(t,15)},p.gk=function(t){return Fe(lf,w_,15,t,0,1)},N(Yi,"XMLTypePackageImpl/15",1975),P(1976,1,Rr,Net),p.fk=function(t){return ve(t,15)},p.gk=function(t){return Fe(lf,w_,15,t,0,1)},N(Yi,"XMLTypePackageImpl/16",1976),P(1977,1,Rr,Met),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/17",1977),P(1978,1,Rr,Let),p.fk=function(t){return ve(t,161)},p.gk=function(t){return Fe(XA,rt,161,t,0,1)},N(Yi,"XMLTypePackageImpl/18",1978),P(1979,1,Rr,jet),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/19",1979),P(1962,1,Rr,Fet),p.fk=function(t){return ve(t,857)},p.gk=function(t){return Fe(Z9,on,857,t,0,1)},N(Yi,"XMLTypePackageImpl/2",1962),P(1980,1,Rr,Bet),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/20",1980),P(1981,1,Rr,Wet),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/21",1981),P(1982,1,Rr,Het),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/22",1982),P(1983,1,Rr,Uet),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/23",1983),P(1984,1,Rr,Get),p.fk=function(t){return ve(t,195)},p.gk=function(t){return Fe(_c,rt,195,t,0,2)},N(Yi,"XMLTypePackageImpl/24",1984),P(1985,1,Rr,Vet),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/25",1985),P(1986,1,Rr,zet),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/26",1986),P(1987,1,Rr,Ket),p.fk=function(t){return ve(t,15)},p.gk=function(t){return Fe(lf,w_,15,t,0,1)},N(Yi,"XMLTypePackageImpl/27",1987),P(1988,1,Rr,qet),p.fk=function(t){return ve(t,15)},p.gk=function(t){return Fe(lf,w_,15,t,0,1)},N(Yi,"XMLTypePackageImpl/28",1988),P(1989,1,Rr,Xet),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/29",1989),P(1963,1,Rr,Jet),p.fk=function(t){return ve(t,681)},p.gk=function(t){return Fe(Gz,on,2119,t,0,1)},N(Yi,"XMLTypePackageImpl/3",1963),P(1990,1,Rr,Yet),p.fk=function(t){return ve(t,17)},p.gk=function(t){return Fe(Ko,rt,17,t,0,1)},N(Yi,"XMLTypePackageImpl/30",1990),P(1991,1,Rr,Qet),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/31",1991),P(1992,1,Rr,Zet),p.fk=function(t){return ve(t,168)},p.gk=function(t){return Fe(my,rt,168,t,0,1)},N(Yi,"XMLTypePackageImpl/32",1992),P(1993,1,Rr,ett),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/33",1993),P(1994,1,Rr,ttt),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/34",1994),P(1995,1,Rr,ntt),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/35",1995),P(1996,1,Rr,rtt),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/36",1996),P(1997,1,Rr,itt),p.fk=function(t){return ve(t,15)},p.gk=function(t){return Fe(lf,w_,15,t,0,1)},N(Yi,"XMLTypePackageImpl/37",1997),P(1998,1,Rr,ott),p.fk=function(t){return ve(t,15)},p.gk=function(t){return Fe(lf,w_,15,t,0,1)},N(Yi,"XMLTypePackageImpl/38",1998),P(1999,1,Rr,stt),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/39",1999),P(1964,1,Rr,ltt),p.fk=function(t){return ve(t,682)},p.gk=function(t){return Fe(eD,on,2120,t,0,1)},N(Yi,"XMLTypePackageImpl/4",1964),P(2e3,1,Rr,att),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/40",2e3),P(2001,1,Rr,ctt),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/41",2001),P(2002,1,Rr,utt),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/42",2002),P(2003,1,Rr,ftt),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/43",2003),P(2004,1,Rr,dtt),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/44",2004),P(2005,1,Rr,htt),p.fk=function(t){return ve(t,191)},p.gk=function(t){return Fe(yy,rt,191,t,0,1)},N(Yi,"XMLTypePackageImpl/45",2005),P(2006,1,Rr,ptt),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/46",2006),P(2007,1,Rr,btt),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/47",2007),P(2008,1,Rr,gtt),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/48",2008),P(2009,1,Rr,wtt),p.fk=function(t){return ve(t,191)},p.gk=function(t){return Fe(yy,rt,191,t,0,1)},N(Yi,"XMLTypePackageImpl/49",2009),P(1965,1,Rr,mtt),p.fk=function(t){return ve(t,683)},p.gk=function(t){return Fe(BOe,on,2121,t,0,1)},N(Yi,"XMLTypePackageImpl/5",1965),P(2010,1,Rr,ytt),p.fk=function(t){return ve(t,168)},p.gk=function(t){return Fe(my,rt,168,t,0,1)},N(Yi,"XMLTypePackageImpl/50",2010),P(2011,1,Rr,vtt),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/51",2011),P(2012,1,Rr,_tt),p.fk=function(t){return ve(t,17)},p.gk=function(t){return Fe(Ko,rt,17,t,0,1)},N(Yi,"XMLTypePackageImpl/52",2012),P(1966,1,Rr,Stt),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/6",1966),P(1967,1,Rr,Ett),p.fk=function(t){return ve(t,195)},p.gk=function(t){return Fe(_c,rt,195,t,0,2)},N(Yi,"XMLTypePackageImpl/7",1967),P(1968,1,Rr,ktt),p.fk=function(t){return Iv(t)},p.gk=function(t){return Fe(Li,rt,485,t,8,1)},N(Yi,"XMLTypePackageImpl/8",1968),P(1969,1,Rr,Rtt),p.fk=function(t){return ve(t,222)},p.gk=function(t){return Fe(G3,rt,222,t,0,1)},N(Yi,"XMLTypePackageImpl/9",1969);var _h,Kg,G5,Vz,fe;P(55,63,Cb,ar),N(Og,"RegEx/ParseException",55),P(836,1,{},j1e),p.bm=function(t){return ts*16)throw ne(new ar(dr((ir(),WTt))));s=s*16+c}while(!0);if(this.a!=125)throw ne(new ar(dr((ir(),HTt))));if(s>zA)throw ne(new ar(dr((ir(),UTt))));t=s}else{if(c=0,this.c!=0||(c=pw(this.a))<0)throw ne(new ar(dr((ir(),Pg))));if(s=c,Ir(this),this.c!=0||(c=pw(this.a))<0)throw ne(new ar(dr((ir(),Pg))));s=s*16+c,t=s}break;case 117:if(a=0,Ir(this),this.c!=0||(a=pw(this.a))<0)throw ne(new ar(dr((ir(),Pg))));if(i=a,Ir(this),this.c!=0||(a=pw(this.a))<0)throw ne(new ar(dr((ir(),Pg))));if(i=i*16+a,Ir(this),this.c!=0||(a=pw(this.a))<0)throw ne(new ar(dr((ir(),Pg))));if(i=i*16+a,Ir(this),this.c!=0||(a=pw(this.a))<0)throw ne(new ar(dr((ir(),Pg))));i=i*16+a,t=i;break;case 118:if(Ir(this),this.c!=0||(a=pw(this.a))<0)throw ne(new ar(dr((ir(),Pg))));if(i=a,Ir(this),this.c!=0||(a=pw(this.a))<0)throw ne(new ar(dr((ir(),Pg))));if(i=i*16+a,Ir(this),this.c!=0||(a=pw(this.a))<0)throw ne(new ar(dr((ir(),Pg))));if(i=i*16+a,Ir(this),this.c!=0||(a=pw(this.a))<0)throw ne(new ar(dr((ir(),Pg))));if(i=i*16+a,Ir(this),this.c!=0||(a=pw(this.a))<0)throw ne(new ar(dr((ir(),Pg))));if(i=i*16+a,Ir(this),this.c!=0||(a=pw(this.a))<0)throw ne(new ar(dr((ir(),Pg))));if(i=i*16+a,i>zA)throw ne(new ar(dr((ir(),"parser.descappe.4"))));t=i;break;case 65:case 90:case 122:throw ne(new ar(dr((ir(),GTt))))}return t},p.dm=function(t){var i,s;switch(t){case 100:s=(this.e&32)==32?U1("Nd",!0):(Or(),zz);break;case 68:s=(this.e&32)==32?U1("Nd",!1):(Or(),XOe);break;case 119:s=(this.e&32)==32?U1("IsWord",!0):(Or(),O4);break;case 87:s=(this.e&32)==32?U1("IsWord",!1):(Or(),YOe);break;case 115:s=(this.e&32)==32?U1("IsSpace",!0):(Or(),bR);break;case 83:s=(this.e&32)==32?U1("IsSpace",!1):(Or(),JOe);break;default:throw ne(new vl((i=t,G$t+i.toString(16))))}return s},p.em=function(t){var i,s,a,c,b,g,m,_,k,I,D,W;for(this.b=1,Ir(this),i=null,this.c==0&&this.a==94?(Ir(this),t?I=(Or(),Or(),new yu(5)):(i=(Or(),Or(),new yu(4)),da(i,0,zA),I=new yu(4))):I=(Or(),Or(),new yu(4)),c=!0;(W=this.c)!=1&&!(W==0&&this.a==93&&!c);){if(c=!1,s=this.a,a=!1,W==10)switch(s){case 100:case 68:case 119:case 87:case 115:case 83:h_(I,this.dm(s)),a=!0;break;case 105:case 73:case 99:case 67:s=this.um(I,s),s<0&&(a=!0);break;case 112:case 80:if(D=bke(this,s),!D)throw ne(new ar(dr((ir(),Ooe))));h_(I,D),a=!0;break;default:s=this.cm()}else if(W==20){if(g=nC(this.i,58,this.d),g<0)throw ne(new ar(dr((ir(),mAe))));if(m=!0,Jo(this.i,this.d)==94&&(++this.d,m=!1),b=Vu(this.i,this.d,g),_=gwt(b,m,(this.e&512)==512),!_)throw ne(new ar(dr((ir(),DTt))));if(h_(I,_),a=!0,g+1>=this.j||Jo(this.i,g+1)!=93)throw ne(new ar(dr((ir(),mAe))));this.d=g+2}if(Ir(this),!a)if(this.c!=0||this.a!=45)da(I,s,s);else{if(Ir(this),(W=this.c)==1)throw ne(new ar(dr((ir(),lG))));W==0&&this.a==93?(da(I,s,s),da(I,45,45)):(k=this.a,W==10&&(k=this.cm()),Ir(this),da(I,s,k))}(this.e&sd)==sd&&this.c==0&&this.a==44&&Ir(this)}if(this.c==1)throw ne(new ar(dr((ir(),lG))));return i&&(tI(i,I),I=i),b2(I),Z6(I),this.b=0,Ir(this),I},p.fm=function(){var t,i,s,a;for(s=this.em(!1);(a=this.c)!=7;)if(t=this.a,a==0&&(t==45||t==38)||a==4){if(Ir(this),this.c!=9)throw ne(new ar(dr((ir(),jTt))));if(i=this.em(!1),a==4)h_(s,i);else if(t==45)tI(s,i);else if(t==38)Ext(s,i);else throw ne(new vl("ASSERT"))}else throw ne(new ar(dr((ir(),FTt))));return Ir(this),s},p.gm=function(){var t,i;return t=this.a-48,i=(Or(),Or(),new BZ(12,null,t)),!this.g&&(this.g=new tF),eF(this.g,new y0e(t)),Ir(this),i},p.hm=function(){return Ir(this),Or(),_Lt},p.im=function(){return Ir(this),Or(),vLt},p.jm=function(){throw ne(new ar(dr((ir(),sf))))},p.km=function(){throw ne(new ar(dr((ir(),sf))))},p.lm=function(){return Ir(this),mxn()},p.mm=function(){return Ir(this),Or(),ELt},p.nm=function(){return Ir(this),Or(),RLt},p.om=function(){var t;if(this.d>=this.j||((t=Jo(this.i,this.d++))&65504)!=64)throw ne(new ar(dr((ir(),OTt))));return Ir(this),Or(),Or(),new gp(0,t-64)},p.pm=function(){return Ir(this),_Mn()},p.qm=function(){return Ir(this),Or(),xLt},p.rm=function(){var t;return t=(Or(),Or(),new gp(0,105)),Ir(this),t},p.sm=function(){return Ir(this),Or(),kLt},p.tm=function(){return Ir(this),Or(),SLt},p.um=function(t,i){return this.cm()},p.vm=function(){return Ir(this),Or(),KOe},p.wm=function(){var t,i,s,a,c;if(this.d+1>=this.j)throw ne(new ar(dr((ir(),$Tt))));if(a=-1,i=null,t=Jo(this.i,this.d),49<=t&&t<=57){if(a=t-48,!this.g&&(this.g=new tF),eF(this.g,new y0e(a)),++this.d,Jo(this.i,this.d)!=41)throw ne(new ar(dr((ir(),Cw))));++this.d}else switch(t==63&&--this.d,Ir(this),i=H3e(this),i.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw ne(new ar(dr((ir(),Cw))));break;default:throw ne(new ar(dr((ir(),ITt))))}if(Ir(this),c=ey(this),s=null,c.e==2){if(c.Pm()!=2)throw ne(new ar(dr((ir(),PTt))));s=c.Lm(1),c=c.Lm(0)}if(this.c!=7)throw ne(new ar(dr((ir(),Cw))));return Ir(this),Or(),Or(),new Ywt(a,i,c,s)},p.xm=function(){return Ir(this),Or(),qOe},p.ym=function(){var t;if(Ir(this),t=PB(24,ey(this)),this.c!=7)throw ne(new ar(dr((ir(),Cw))));return Ir(this),t},p.zm=function(){var t;if(Ir(this),t=PB(20,ey(this)),this.c!=7)throw ne(new ar(dr((ir(),Cw))));return Ir(this),t},p.Am=function(){var t;if(Ir(this),t=PB(22,ey(this)),this.c!=7)throw ne(new ar(dr((ir(),Cw))));return Ir(this),t},p.Bm=function(){var t,i,s,a,c;for(t=0,s=0,i=-1;this.d=this.j)throw ne(new ar(dr((ir(),gAe))));if(i==45){for(++this.d;this.d=this.j)throw ne(new ar(dr((ir(),gAe))))}if(i==58){if(++this.d,Ir(this),a=zpt(ey(this),t,s),this.c!=7)throw ne(new ar(dr((ir(),Cw))));Ir(this)}else if(i==41)++this.d,Ir(this),a=zpt(ey(this),t,s);else throw ne(new ar(dr((ir(),TTt))));return a},p.Cm=function(){var t;if(Ir(this),t=PB(21,ey(this)),this.c!=7)throw ne(new ar(dr((ir(),Cw))));return Ir(this),t},p.Dm=function(){var t;if(Ir(this),t=PB(23,ey(this)),this.c!=7)throw ne(new ar(dr((ir(),Cw))));return Ir(this),t},p.Em=function(){var t,i;if(Ir(this),t=this.f++,i=pZ(ey(this),t),this.c!=7)throw ne(new ar(dr((ir(),Cw))));return Ir(this),i},p.Fm=function(){var t;if(Ir(this),t=pZ(ey(this),0),this.c!=7)throw ne(new ar(dr((ir(),Cw))));return Ir(this),t},p.Gm=function(t){return Ir(this),this.c==5?(Ir(this),EB(t,(Or(),Or(),new Gv(9,t)))):EB(t,(Or(),Or(),new Gv(3,t)))},p.Hm=function(t){var i;return Ir(this),i=(Or(),Or(),new O$(2)),this.c==5?(Ir(this),ww(i,z5),ww(i,t)):(ww(i,t),ww(i,z5)),i},p.Im=function(t){return Ir(this),this.c==5?(Ir(this),Or(),Or(),new Gv(9,t)):(Or(),Or(),new Gv(3,t))},p.a=0,p.b=0,p.c=0,p.d=0,p.e=0,p.f=1,p.g=null,p.j=0,N(Og,"RegEx/RegexParser",836),P(1947,836,{},plt),p.bm=function(t){return!1},p.cm=function(){return Jke(this)},p.dm=function(t){return wA(t)},p.em=function(t){return mCt(this)},p.fm=function(){throw ne(new ar(dr((ir(),sf))))},p.gm=function(){throw ne(new ar(dr((ir(),sf))))},p.hm=function(){throw ne(new ar(dr((ir(),sf))))},p.im=function(){throw ne(new ar(dr((ir(),sf))))},p.jm=function(){return Ir(this),wA(67)},p.km=function(){return Ir(this),wA(73)},p.lm=function(){throw ne(new ar(dr((ir(),sf))))},p.mm=function(){throw ne(new ar(dr((ir(),sf))))},p.nm=function(){throw ne(new ar(dr((ir(),sf))))},p.om=function(){return Ir(this),wA(99)},p.pm=function(){throw ne(new ar(dr((ir(),sf))))},p.qm=function(){throw ne(new ar(dr((ir(),sf))))},p.rm=function(){return Ir(this),wA(105)},p.sm=function(){throw ne(new ar(dr((ir(),sf))))},p.tm=function(){throw ne(new ar(dr((ir(),sf))))},p.um=function(t,i){return h_(t,wA(i)),-1},p.vm=function(){return Ir(this),Or(),Or(),new gp(0,94)},p.wm=function(){throw ne(new ar(dr((ir(),sf))))},p.xm=function(){return Ir(this),Or(),Or(),new gp(0,36)},p.ym=function(){throw ne(new ar(dr((ir(),sf))))},p.zm=function(){throw ne(new ar(dr((ir(),sf))))},p.Am=function(){throw ne(new ar(dr((ir(),sf))))},p.Bm=function(){throw ne(new ar(dr((ir(),sf))))},p.Cm=function(){throw ne(new ar(dr((ir(),sf))))},p.Dm=function(){throw ne(new ar(dr((ir(),sf))))},p.Em=function(){var t;if(Ir(this),t=pZ(ey(this),0),this.c!=7)throw ne(new ar(dr((ir(),Cw))));return Ir(this),t},p.Fm=function(){throw ne(new ar(dr((ir(),sf))))},p.Gm=function(t){return Ir(this),EB(t,(Or(),Or(),new Gv(3,t)))},p.Hm=function(t){var i;return Ir(this),i=(Or(),Or(),new O$(2)),ww(i,t),ww(i,z5),i},p.Im=function(t){return Ir(this),Or(),Or(),new Gv(3,t)};var wE=null,I4=null;N(Og,"RegEx/ParserForXMLSchema",1947),P(122,1,KA,fm),p.Jm=function(t){throw ne(new vl("Not supported."))},p.Km=function(){return-1},p.Lm=function(t){return null},p.Mm=function(){return null},p.Nm=function(t){},p.Om=function(t){},p.Pm=function(){return 0},p.Ib=function(){return this.Qm(0)},p.Qm=function(t){return this.e==11?".":""},p.e=0;var GOe,P4,V5,yLt,VOe,tS=null,zz,Bce=null,zOe,z5,Wce=null,KOe,qOe,XOe,JOe,YOe,vLt,bR,_Lt,SLt,ELt,kLt,O4,RLt,xLt,IFn=N(Og,"RegEx/Token",122);P(138,122,{3:1,138:1,122:1},yu),p.Qm=function(t){var i,s,a;if(this.e==4)if(this==zOe)s=".";else if(this==zz)s="\\d";else if(this==O4)s="\\w";else if(this==bR)s="\\s";else{for(a=new ig,a.a+="[",i=0;i0&&(a.a+=","),this.b[i]===this.b[i+1]?Ms(a,ZN(this.b[i])):(Ms(a,ZN(this.b[i])),a.a+="-",Ms(a,ZN(this.b[i+1])));a.a+="]",s=a.a}else if(this==XOe)s="\\D";else if(this==YOe)s="\\W";else if(this==JOe)s="\\S";else{for(a=new ig,a.a+="[^",i=0;i0&&(a.a+=","),this.b[i]===this.b[i+1]?Ms(a,ZN(this.b[i])):(Ms(a,ZN(this.b[i])),a.a+="-",Ms(a,ZN(this.b[i+1])));a.a+="]",s=a.a}return s},p.a=!1,p.c=!1,N(Og,"RegEx/RangeToken",138),P(592,1,{592:1},y0e),p.a=0,N(Og,"RegEx/RegexParser/ReferencePosition",592),P(591,1,{3:1,591:1},Tat),p.Fb=function(t){var i;return t==null||!ve(t,591)?!1:(i=f(t,591),Ht(this.b,i.b)&&this.a==i.a)},p.Hb=function(){return mg(this.b+"/"+Uke(this.a))},p.Ib=function(){return this.c.Qm(this.a)},p.a=0,N(Og,"RegEx/RegularExpression",591),P(228,122,KA,gp),p.Km=function(){return this.a},p.Qm=function(t){var i,s,a;switch(this.e){case 0:switch(this.a){case 124:case 42:case 43:case 63:case 40:case 41:case 46:case 91:case 123:case 92:a="\\"+UQ(this.a&Ji);break;case 12:a="\\f";break;case 10:a="\\n";break;case 13:a="\\r";break;case 9:a="\\t";break;case 27:a="\\e";break;default:this.a>=ys?(s=(i=this.a>>>0,"0"+i.toString(16)),a="\\v"+Vu(s,s.length-6,s.length)):a=""+UQ(this.a&Ji)}break;case 8:this==KOe||this==qOe?a=""+UQ(this.a&Ji):a="\\"+UQ(this.a&Ji);break;default:a=null}return a},p.a=0,N(Og,"RegEx/Token/CharToken",228),P(318,122,KA,Gv),p.Lm=function(t){return this.a},p.Nm=function(t){this.b=t},p.Om=function(t){this.c=t},p.Pm=function(){return 1},p.Qm=function(t){var i;if(this.e==3)if(this.c<0&&this.b<0)i=this.a.Qm(t)+"*";else if(this.c==this.b)i=this.a.Qm(t)+"{"+this.c+"}";else if(this.c>=0&&this.b>=0)i=this.a.Qm(t)+"{"+this.c+","+this.b+"}";else if(this.c>=0&&this.b<0)i=this.a.Qm(t)+"{"+this.c+",}";else throw ne(new vl("Token#toString(): CLOSURE "+this.c+ds+this.b));else if(this.c<0&&this.b<0)i=this.a.Qm(t)+"*?";else if(this.c==this.b)i=this.a.Qm(t)+"{"+this.c+"}?";else if(this.c>=0&&this.b>=0)i=this.a.Qm(t)+"{"+this.c+","+this.b+"}?";else if(this.c>=0&&this.b<0)i=this.a.Qm(t)+"{"+this.c+",}?";else throw ne(new vl("Token#toString(): NONGREEDYCLOSURE "+this.c+ds+this.b));return i},p.b=0,p.c=0,N(Og,"RegEx/Token/ClosureToken",318),P(837,122,KA,ave),p.Lm=function(t){return t==0?this.a:this.b},p.Pm=function(){return 2},p.Qm=function(t){var i;return this.b.e==3&&this.b.Lm(0)==this.a?i=this.a.Qm(t)+"+":this.b.e==9&&this.b.Lm(0)==this.a?i=this.a.Qm(t)+"+?":i=this.a.Qm(t)+(""+this.b.Qm(t)),i},N(Og,"RegEx/Token/ConcatToken",837),P(1945,122,KA,Ywt),p.Lm=function(t){if(t==0)return this.d;if(t==1)return this.b;throw ne(new vl("Internal Error: "+t))},p.Pm=function(){return this.b?2:1},p.Qm=function(t){var i;return this.c>0?i="(?("+this.c+")":this.a.e==8?i="(?("+this.a+")":i="(?"+this.a,this.b?i+=this.d+"|"+this.b+")":i+=this.d+")",i},p.c=0,N(Og,"RegEx/Token/ConditionToken",1945),P(1946,122,KA,Wgt),p.Lm=function(t){return this.b},p.Pm=function(){return 1},p.Qm=function(t){return"(?"+(this.a==0?"":Uke(this.a))+(this.c==0?"":Uke(this.c))+":"+this.b.Qm(t)+")"},p.a=0,p.c=0,N(Og,"RegEx/Token/ModifierToken",1946),P(838,122,KA,mve),p.Lm=function(t){return this.a},p.Pm=function(){return 1},p.Qm=function(t){var i;switch(i=null,this.e){case 6:this.b==0?i="(?:"+this.a.Qm(t)+")":i="("+this.a.Qm(t)+")";break;case 20:i="(?="+this.a.Qm(t)+")";break;case 21:i="(?!"+this.a.Qm(t)+")";break;case 22:i="(?<="+this.a.Qm(t)+")";break;case 23:i="(?"+this.a.Qm(t)+")"}return i},p.b=0,N(Og,"RegEx/Token/ParenToken",838),P(530,122,{3:1,122:1,530:1},BZ),p.Mm=function(){return this.b},p.Qm=function(t){return this.e==12?"\\"+this.a:hPn(this.b)},p.a=0,N(Og,"RegEx/Token/StringToken",530),P(477,122,KA,O$),p.Jm=function(t){ww(this,t)},p.Lm=function(t){return f(Dm(this.a,t),122)},p.Pm=function(){return this.a?this.a.a.c.length:0},p.Qm=function(t){var i,s,a,c,b;if(this.e==1){if(this.a.a.c.length==2)i=f(Dm(this.a,0),122),s=f(Dm(this.a,1),122),s.e==3&&s.Lm(0)==i?c=i.Qm(t)+"+":s.e==9&&s.Lm(0)==i?c=i.Qm(t)+"+?":c=i.Qm(t)+(""+s.Qm(t));else{for(b=new ig,a=0;a=this.c.b:this.a<=this.c.b},p.Sb=function(){return this.b>0},p.Tb=function(){return this.b},p.Vb=function(){return this.b-1},p.Qb=function(){throw ne(new ng(Y$t))},p.a=0,p.b=0,N(LAe,"ExclusiveRange/RangeIterator",258);var df=pC(aG,"C"),Xn=pC(AI,"I"),Xc=pC($3,"Z"),m0=pC(TI,"J"),_c=pC(RI,"B"),Ro=pC(xI,"D"),nS=pC(CI,"F"),mE=pC($I,"S"),PFn=Ei("org.eclipse.elk.core.labels","ILabelManager"),QOe=Ei(hs,"DiagnosticChain"),ZOe=Ei(R$t,"ResourceSet"),e7e=N(hs,"InvocationTargetException",null),ALt=(oF(),zEn),TLt=TLt=L$n;F3n(Mpn),M3n("permProps",[[["locale","default"],[Q$t,"gecko1_8"]],[["locale","default"],[Q$t,"safari"]]]),TLt(null,"elk",null)}).call(this)}).call(this,typeof window<"u"?window:typeof self<"u"?self:typeof window<"u"?window:{})},{}],3:[function(o,l,u){function d(E,A){if(!(E instanceof A))throw new TypeError("Cannot call a class as a function")}function h(E,A){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:E}function w(E,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);E.prototype=Object.create(A&&A.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(E,A):E.__proto__=A)}var v=o("./elk-api.js").default,y=function(E){w(A,E);function A(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};d(this,A);var R=Object.assign({},C),O=!1;try{o.resolve("web-worker"),O=!0}catch{}if(C.workerUrl)if(O){var M=o("web-worker");R.workerFactory=function(G){return new M(G)}}else console.warn(`Web worker requested but 'web-worker' package not installed. +`;return c};var IFn=N(wI,"TGraph",121);P(643,508,{3:1,508:1,643:1,96:1,137:1}),N(wI,"TShape",643),P(40,643,{3:1,508:1,40:1,643:1,96:1,137:1},tte),p.Ib=function(){return nw(this)};var JV=N(wI,"TNode",40);P(236,1,Rp,sb),p.Jc=function(t){Vo(this,t)},p.Kc=function(){var t;return t=Hn(this.a.d,0),new OS(t)},N(wI,"TNode/2",236),P(329,1,ko,OS),p.Nb=function(t){Uo(this,t)},p.Pb=function(){return f(Bn(this.a),65).c},p.Ob=function(){return LO(this.a)},p.Qb=function(){Tee(this.a)},N(wI,"TNode/2/1",329),P(1923,1,ni,QJe),p.Kf=function(t,i){Vjn(this,f(t,121),i)},N(ba,"CompactionProcessor",1923),P(1924,1,cr,got),p.Ne=function(t,i){return PRn(this.a,f(t,40),f(i,40))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(ba,"CompactionProcessor/lambda$0$Type",1924),P(1925,1,sr,out),p.Mb=function(t){return j_n(this.b,this.a,f(t,42))},p.a=0,p.b=0,N(ba,"CompactionProcessor/lambda$1$Type",1925),P(1934,1,cr,ZJe),p.Ne=function(t,i){return Tvn(f(t,40),f(i,40))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(ba,"CompactionProcessor/lambda$10$Type",1934),P(1935,1,cr,eYe),p.Ne=function(t,i){return U1n(f(t,40),f(i,40))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(ba,"CompactionProcessor/lambda$11$Type",1935),P(1936,1,cr,tYe),p.Ne=function(t,i){return $vn(f(t,40),f(i,40))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(ba,"CompactionProcessor/lambda$12$Type",1936),P(1926,1,sr,wot),p.Mb=function(t){return x1n(this.a,f(t,42))},p.a=0,N(ba,"CompactionProcessor/lambda$2$Type",1926),P(1927,1,sr,mot),p.Mb=function(t){return C1n(this.a,f(t,42))},p.a=0,N(ba,"CompactionProcessor/lambda$3$Type",1927),P(1928,1,sr,nYe),p.Mb=function(t){return f(t,40).c.indexOf(zU)==-1},N(ba,"CompactionProcessor/lambda$4$Type",1928),P(1929,1,{},yot),p.Kb=function(t){return B2n(this.a,f(t,40))},p.a=0,N(ba,"CompactionProcessor/lambda$5$Type",1929),P(1930,1,{},vot),p.Kb=function(t){return qkn(this.a,f(t,40))},p.a=0,N(ba,"CompactionProcessor/lambda$6$Type",1930),P(1931,1,cr,_ot),p.Ne=function(t,i){return okn(this.a,f(t,240),f(i,240))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(ba,"CompactionProcessor/lambda$7$Type",1931),P(1932,1,cr,Sot),p.Ne=function(t,i){return skn(this.a,f(t,40),f(i,40))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(ba,"CompactionProcessor/lambda$8$Type",1932),P(1933,1,cr,rYe),p.Ne=function(t,i){return G1n(f(t,40),f(i,40))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(ba,"CompactionProcessor/lambda$9$Type",1933),P(1921,1,ni,iYe),p.Kf=function(t,i){W7n(f(t,121),i)},N(ba,"DirectionProcessor",1921),P(1913,1,ni,zdt),p.Kf=function(t,i){cMn(this,f(t,121),i)},N(ba,"FanProcessor",1913),P(1937,1,ni,oYe),p.Kf=function(t,i){T7n(f(t,121),i)},N(ba,"GraphBoundsProcessor",1937),P(1938,1,{},sYe),p.Ye=function(t){return f(t,40).e.a},N(ba,"GraphBoundsProcessor/lambda$0$Type",1938),P(1939,1,{},lYe),p.Ye=function(t){return f(t,40).e.b},N(ba,"GraphBoundsProcessor/lambda$1$Type",1939),P(1940,1,{},aYe),p.Ye=function(t){return cgn(f(t,40))},N(ba,"GraphBoundsProcessor/lambda$2$Type",1940),P(1941,1,{},cYe),p.Ye=function(t){return agn(f(t,40))},N(ba,"GraphBoundsProcessor/lambda$3$Type",1941),P(262,22,{3:1,34:1,22:1,262:1,196:1},_m),p.dg=function(){switch(this.g){case 0:return new Slt;case 1:return new zdt;case 2:return new _lt;case 3:return new pYe;case 4:return new fYe;case 8:return new uYe;case 5:return new iYe;case 6:return new gYe;case 7:return new QJe;case 9:return new oYe;case 10:return new wYe;default:throw ne(new hn(wie+(this.f!=null?this.f:""+this.g)))}};var UIe,GIe,VIe,zIe,KIe,qIe,XIe,JIe,YIe,QIe,fae,PFn=Wn(ba,mie,262,qn,Byt,hmn),bNt;P(1920,1,ni,uYe),p.Kf=function(t,i){HLn(f(t,121),i)},N(ba,"LevelCoordinatesProcessor",1920),P(1918,1,ni,fYe),p.Kf=function(t,i){cOn(this,f(t,121),i)},p.a=0,N(ba,"LevelHeightProcessor",1918),P(1919,1,Rp,dYe),p.Jc=function(t){Vo(this,t)},p.Kc=function(){return Kt(),Qx(),JA},N(ba,"LevelHeightProcessor/1",1919),P(1914,1,ni,_lt),p.Kf=function(t,i){E7n(this,f(t,121),i)},N(ba,"LevelProcessor",1914),P(1915,1,sr,hYe),p.Mb=function(t){return mt(wt(V(f(t,40),(ei(),s0))))},N(ba,"LevelProcessor/lambda$0$Type",1915),P(1916,1,ni,pYe),p.Kf=function(t,i){s5n(this,f(t,121),i)},p.a=0,N(ba,"NeighborsProcessor",1916),P(1917,1,Rp,bYe),p.Jc=function(t){Vo(this,t)},p.Kc=function(){return Kt(),Qx(),JA},N(ba,"NeighborsProcessor/1",1917),P(1922,1,ni,gYe),p.Kf=function(t,i){aMn(this,f(t,121),i)},p.a=0,N(ba,"NodePositionProcessor",1922),P(1912,1,ni,Slt),p.Kf=function(t,i){G9n(this,f(t,121),i)},N(ba,"RootProcessor",1912),P(1942,1,ni,wYe),p.Kf=function(t,i){B4n(f(t,121),i)},N(ba,"Untreeifyer",1942),P(392,22,{3:1,34:1,22:1,392:1},hQ);var w9,dae,ZIe,e5e=Wn(TM,"EdgeRoutingMode",392,qn,n2n,pmn),gNt,m9,y4,hae,t5e,n5e,pae,bae,r5e,gae,i5e,wae,d5,mae,YV,QV,fd,Fd,v4,h5,p5,jg,o5e,wNt,yae,s0,y9,v9;P(862,1,Ef,hnt),p.hf=function(t){Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,dCe),""),y4t),"Turns on Tree compaction which decreases the size of the whole tree by placing nodes of multiple levels in one large level"),(cn(),!1)),(Cg(),po)),Li),Mt((Nd(),rn))))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,hCe),""),"Edge End Texture Length"),"Should be set to the length of the texture at the end of an edge. This value can be used to improve the Edge Routing."),7),es),Qi),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,pCe),""),"Tree Level"),"The index for the tree level the node is in"),ot(0)),bl),Ko),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,bCe),""),y4t),"When set to a positive number this option will force the algorithm to place the node to the specified position within the trees layer if weighting is set to constraint"),ot(-1)),bl),Ko),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,gCe),""),"Weighting of Nodes"),"Which weighting to use when computing a node order."),a5e),pi),v5e),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,wCe),""),"Edge Routing Mode"),"Chooses an Edge Routing algorithm."),s5e),pi),e5e),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,mCe),""),"Search Order"),"Which search order to use when computing a spanning tree."),l5e),pi),S5e),Mt(rn)))),aCt((new gnt,t))};var mNt,yNt,vNt,s5e,_Nt,SNt,l5e,ENt,kNt,a5e;N(TM,"MrTreeMetaDataProvider",862),P(1006,1,Ef,gnt),p.hf=function(t){aCt(t)};var RNt,c5e,u5e,Ny,f5e,d5e,vae,xNt,CNt,ANt,TNt,$Nt,INt,PNt,h5e,p5e,b5e,ONt,tE,ZV,g5e,NNt,w5e,_ae,MNt,DNt,LNt,m5e,jNt,ip,y5e;N(TM,"MrTreeOptions",1006),P(1007,1,{},mYe),p.sf=function(){var t;return t=new Kdt,t},p.tf=function(t){},N(TM,"MrTreeOptions/MrtreeFactory",1007),P(353,22,{3:1,34:1,22:1,353:1},NF);var Sae,ez,Eae,kae,v5e=Wn(TM,"OrderWeighting",353,qn,uEn,bmn),FNt;P(433,22,{3:1,34:1,22:1,433:1},Gwe);var _5e,Rae,S5e=Wn(TM,"TreeifyingOrder",433,qn,oSn,gmn),BNt;P(1486,1,$s,wnt),p.rg=function(t){return f(t,121),WNt},p.Kf=function(t,i){vRn(this,f(t,121),i)};var WNt;N("org.eclipse.elk.alg.mrtree.p1treeify","DFSTreeifyer",1486),P(1487,1,$s,mnt),p.rg=function(t){return f(t,121),HNt},p.Kf=function(t,i){C7n(this,f(t,121),i)};var HNt;N(LA,"NodeOrderer",1487),P(1494,1,{},Khn),p.td=function(t){return Zht(t)},N(LA,"NodeOrderer/0methodref$lambda$6$Type",1494),P(1488,1,sr,NYe),p.Mb=function(t){return p3(),mt(wt(V(f(t,40),(ei(),s0))))},N(LA,"NodeOrderer/lambda$0$Type",1488),P(1489,1,sr,MYe),p.Mb=function(t){return p3(),f(V(f(t,40),(Il(),tE)),17).a<0},N(LA,"NodeOrderer/lambda$1$Type",1489),P(1490,1,sr,kot),p.Mb=function(t){return X3n(this.a,f(t,40))},N(LA,"NodeOrderer/lambda$2$Type",1490),P(1491,1,sr,Eot),p.Mb=function(t){return U2n(this.a,f(t,40))},N(LA,"NodeOrderer/lambda$3$Type",1491),P(1492,1,cr,DYe),p.Ne=function(t,i){return m3n(f(t,40),f(i,40))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(LA,"NodeOrderer/lambda$4$Type",1492),P(1493,1,sr,LYe),p.Mb=function(t){return p3(),f(V(f(t,40),(ei(),bae)),17).a!=0},N(LA,"NodeOrderer/lambda$5$Type",1493),P(1495,1,$s,bnt),p.rg=function(t){return f(t,121),UNt},p.Kf=function(t,i){MNn(this,f(t,121),i)},p.b=0;var UNt;N("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1495),P(1496,1,$s,pnt),p.rg=function(t){return f(t,121),GNt},p.Kf=function(t,i){wNn(f(t,121),i)};var GNt,OFn=N(lu,"EdgeRouter",1496);P(1498,1,cr,OYe),p.Ne=function(t,i){return Xl(f(t,17).a,f(i,17).a)},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(lu,"EdgeRouter/0methodref$compare$Type",1498),P(1503,1,{},vYe),p.Ye=function(t){return Ae(je(t))},N(lu,"EdgeRouter/1methodref$doubleValue$Type",1503),P(1505,1,cr,_Ye),p.Ne=function(t,i){return Qr(Ae(je(t)),Ae(je(i)))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(lu,"EdgeRouter/2methodref$compare$Type",1505),P(1507,1,cr,SYe),p.Ne=function(t,i){return Qr(Ae(je(t)),Ae(je(i)))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(lu,"EdgeRouter/3methodref$compare$Type",1507),P(1509,1,{},yYe),p.Ye=function(t){return Ae(je(t))},N(lu,"EdgeRouter/4methodref$doubleValue$Type",1509),P(1511,1,cr,EYe),p.Ne=function(t,i){return Qr(Ae(je(t)),Ae(je(i)))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(lu,"EdgeRouter/5methodref$compare$Type",1511),P(1513,1,cr,kYe),p.Ne=function(t,i){return Qr(Ae(je(t)),Ae(je(i)))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(lu,"EdgeRouter/6methodref$compare$Type",1513),P(1497,1,{},RYe),p.Kb=function(t){return mb(),f(V(f(t,40),(Il(),ip)),17)},N(lu,"EdgeRouter/lambda$0$Type",1497),P(1508,1,{},xYe),p.Kb=function(t){return r0n(f(t,40))},N(lu,"EdgeRouter/lambda$11$Type",1508),P(1510,1,{},sut),p.Kb=function(t){return Iyn(this.b,this.a,f(t,40))},p.a=0,p.b=0,N(lu,"EdgeRouter/lambda$13$Type",1510),P(1512,1,{},lut),p.Kb=function(t){return i0n(this.b,this.a,f(t,40))},p.a=0,p.b=0,N(lu,"EdgeRouter/lambda$15$Type",1512),P(1514,1,cr,CYe),p.Ne=function(t,i){return g4n(f(t,65),f(i,65))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(lu,"EdgeRouter/lambda$17$Type",1514),P(1515,1,cr,AYe),p.Ne=function(t,i){return w4n(f(t,65),f(i,65))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(lu,"EdgeRouter/lambda$18$Type",1515),P(1516,1,cr,TYe),p.Ne=function(t,i){return y4n(f(t,65),f(i,65))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(lu,"EdgeRouter/lambda$19$Type",1516),P(1499,1,sr,Rot),p.Mb=function(t){return vSn(this.a,f(t,40))},p.a=0,N(lu,"EdgeRouter/lambda$2$Type",1499),P(1517,1,cr,$Ye),p.Ne=function(t,i){return m4n(f(t,65),f(i,65))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(lu,"EdgeRouter/lambda$20$Type",1517),P(1500,1,cr,IYe),p.Ne=function(t,i){return wyn(f(t,40),f(i,40))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(lu,"EdgeRouter/lambda$3$Type",1500),P(1501,1,cr,PYe),p.Ne=function(t,i){return myn(f(t,40),f(i,40))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(lu,"EdgeRouter/lambda$4$Type",1501),P(1502,1,{},jYe),p.Kb=function(t){return o0n(f(t,40))},N(lu,"EdgeRouter/lambda$5$Type",1502),P(1504,1,{},aut),p.Kb=function(t){return Pyn(this.b,this.a,f(t,40))},p.a=0,p.b=0,N(lu,"EdgeRouter/lambda$7$Type",1504),P(1506,1,{},cut),p.Kb=function(t){return s0n(this.b,this.a,f(t,40))},p.a=0,p.b=0,N(lu,"EdgeRouter/lambda$9$Type",1506),P(675,1,{675:1},WSt),p.e=0,p.f=!1,p.g=!1,N(lu,"MultiLevelEdgeNodeNodeGap",675),P(1943,1,cr,FYe),p.Ne=function(t,i){return $Sn(f(t,240),f(i,240))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(lu,"MultiLevelEdgeNodeNodeGap/lambda$0$Type",1943),P(1944,1,cr,BYe),p.Ne=function(t,i){return ISn(f(t,240),f(i,240))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(lu,"MultiLevelEdgeNodeNodeGap/lambda$1$Type",1944);var nE;P(501,22,{3:1,34:1,22:1,501:1,188:1,196:1},Vwe),p.dg=function(){return C_t(this)},p.qg=function(){return C_t(this)};var tz,rE,E5e=Wn(yCe,"RadialLayoutPhases",501,qn,Q_n,wmn),VNt;P(1113,205,_w,mat),p.rf=function(t,i){var s,a,c,b,g,m;if(s=d3t(this,t),i.Ug("Radial layout",s.c.length),mt(wt(Ye(t,(H1(),N5e))))||O7((a=new QT((vm(),new dm(t))),a)),m=_6n(t),zr(t,(JS(),nE),m),!m)throw ne(new hn("The given graph is not a tree!"));for(c=Ae(je(Ye(t,iz))),c==0&&(c=zEt(t)),zr(t,iz,c),g=new ee(d3t(this,t));g.a=3)for(Ze=f(Se(Ce,0),27),ct=f(Se(Ce,1),27),b=0;b+2=Ze.f+ct.f+I||ct.f>=Ke.f+Ze.f+I){Dt=!0;break}else++b;else Dt=!0;if(!Dt){for(W=Ce.i,m=new Sn(Ce);m.e!=m.i.gc();)g=f(Cn(m),27),zr(g,(Er(),N9),ot(W)),--W;HRt(t,new Ok),i.Vg();return}for(s=(A7(this.a),Cd(this.a,(cH(),S9),f(Ye(t,c8e),188)),Cd(this.a,oz,f(Ye(t,r8e),188)),Cd(this.a,Lae,f(Ye(t,s8e),188)),cme(this.a,(ln=new Ki,gr(ln,S9,(vH(),Bae)),gr(ln,oz,Fae),mt(wt(Ye(t,t8e)))&&gr(ln,S9,jae),ln)),eM(this.a,t)),k=1/s.c.length,z=new ee(s);z.a0&&Yvt((pn(i-1,t.length),t.charCodeAt(i-1)),jAt);)--i;if(a>=i)throw ne(new hn("The given string does not contain any numbers."));if(c=d_((Mo(a,i,t.length),t.substr(a,i-a)),`,|;|\r| +`),c.length!=2)throw ne(new hn("Exactly two numbers are expected, "+c.length+" were found."));try{this.a=o_(s_(c[0])),this.b=o_(s_(c[1]))}catch(b){throw b=mi(b),ve(b,130)?(s=b,ne(new hn(FAt+s))):ne(b)}},p.Ib=function(){return"("+this.a+","+this.b+")"},p.a=0,p.b=0;var wo=N(kM,"KVector",8);P(75,67,{3:1,4:1,20:1,31:1,56:1,16:1,67:1,15:1,75:1,423:1},cc,lF,gdt),p.Pc=function(){return Lxn(this)},p.cg=function(t){var i,s,a,c,b,g;a=d_(t,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | | +`),wu(this);try{for(s=0,b=0,c=0,g=0;s0&&(b%2==0?c=o_(a[s]):g=o_(a[s]),b>0&&b%2!=0&&hr(this,new tt(c,g)),++b),++s}catch(m){throw m=mi(m),ve(m,130)?(i=m,ne(new hn("The given string does not match the expected format for vectors."+i))):ne(m)}},p.Ib=function(){var t,i,s;for(t=new gu("("),i=Hn(this,0);i.b!=i.d.c;)s=f(Bn(i),8),br(t,s.a+","+s.b),i.b!=i.d.c&&(t.a+="; ");return(t.a+=")",t).a};var z8e=N(kM,"KVectorChain",75);P(255,22,{3:1,34:1,22:1,255:1},k$);var sce,bz,gz,C9,A9,wz,K8e=Wn(Kc,"Alignment",255,qn,Nkn,Wmn),R9t;P(991,1,Ef,Cnt),p.hf=function(t){RRt(t)};var q8e,lce,x9t,X8e,J8e,C9t,Y8e,A9t,T9t,Q8e,Z8e,$9t;N(Kc,"BoxLayouterOptions",991),P(992,1,{},qQe),p.sf=function(){var t;return t=new YQe,t},p.tf=function(t){},N(Kc,"BoxLayouterOptions/BoxFactory",992),P(298,22,{3:1,34:1,22:1,298:1},R$);var S5,ace,E5,k5,R5,cce,uce=Wn(Kc,"ContentAlignment",298,qn,Mkn,Hmn),I9t;P(699,1,Ef,U1e),p.hf=function(t){Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,B4t),""),"Layout Algorithm"),"Select a specific layout algorithm."),(Cg(),oE)),St),Mt((Nd(),rn))))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,W4t),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),bh),DFn),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Hxe),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),ePe),pi),K8e),Mt(lo)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,j3),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),es),Qi),Mt(rn)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,tAe),""),"Bend Points"),"A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points."),bh),z8e),Mt(op)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,WU),""),"Content Alignment"),"Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option."),nPe),sR),uce),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,AM),""),"Debug Mode"),"Whether additional debug information shall be generated."),(cn(),!1)),po),Li),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,qie),""),SRe),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),rPe),pi),C5),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,CM),""),"Edge Routing"),"What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline."),sPe),pi),kce),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,ZCe),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),po),Li),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,BU),""),"Hierarchy Handling"),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),cPe),pi),XPe),ii(rn,se(ie(Mp,1),Je,170,0,[lo]))))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,uy),""),"Padding"),"The padding to be left to a parent element's border when placing child elements. This can also serve as an output option of a layout algorithm if node size calculation is setup appropriately."),mPe),bh),yTe),ii(rn,se(ie(Mp,1),Je,170,0,[lo]))))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,uI),""),"Interactive"),"Whether the algorithm should be run in interactive mode for the content of a parent node. What this means exactly depends on how the specific algorithm interprets this option. Usually in the interactive mode algorithms try to modify the current layout as little as possible."),!1),po),Li),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,UU),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),po),Li),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,fI),""),"Omit Node Micro Layout"),"Node micro layout comprises the computation of node dimensions (if requested), the placement of ports and their labels, and the placement of node labels. The functionality is implemented independent of any specific layout algorithm and shouldn't have any negative impact on the layout algorithm's performance itself. Yet, if any unforeseen behavior occurs, this option allows to deactivate the micro layout."),!1),po),Li),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,pie),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),EPe),pi),QPe),Mt(lo)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,HU),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),bh),wo),ii(lo,se(ie(Mp,1),Je,170,0,[Bw,Fg]))))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,mM),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),bl),Ko),ii(lo,se(ie(Mp,1),Je,170,0,[op]))))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,SU),""),"Randomization Seed"),"Seed used for pseudo-random number generators to control the layout algorithm. If the value is 0, the seed shall be determined pseudo-randomly (e.g. from the system time)."),bl),Ko),Mt(rn)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,cI),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),po),Li),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Zxe),""),"Junction Points"),"This option is not used as option, but as output of the layout algorithms. It is attached to edges and determines the points where junction symbols should be drawn in order to represent hyperedges with orthogonal routing. Whether such points are computed depends on the chosen layout algorithm and edge routing style. The points are put into the vector chain with no specific order."),uPe),bh),z8e),Mt(op)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,nCe),""),"Comment Box"),"Whether the node should be regarded as a comment box instead of a regular node. In that case its placement should be similar to how labels are handled. Any edges incident to a comment box specify to which graph elements the comment is related."),!1),po),Li),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,rCe),""),"Hypernode"),"Whether the node should be handled as a hypernode."),!1),po),Li),Mt(lo)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,cFn),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),bh),WFn),ii(rn,se(ie(Mp,1),Je,170,0,[Fg]))))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,oCe),""),"Margins"),"Margins define additional space around the actual bounds of a graph element. For instance, ports or labels being placed on the outside of a node's border might introduce such a margin. The margin is used to guarantee non-overlap of other graph elements with those ports or labels."),fPe),bh),mTe),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Bxe),""),"No Layout"),"No layout is done for the associated element. This is used to mark parts of a diagram to avoid their inclusion in the layout graph, or to mark parts of the layout graph to prevent layout engines from processing them. If you wish to exclude the contents of a compound node from automatic layout, while the node itself is still considered on its own layer, use the 'Fixed Layout' algorithm for that node."),!1),po),Li),ii(lo,se(ie(Mp,1),Je,170,0,[op,Bw,Fg]))))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,H4t),""),"Scale Factor"),"The scaling factor to be applied to the corresponding node in recursive layout. It causes the corresponding node's size to be adjusted, and its ports and labels to be sized and placed accordingly after the layout of that node has been determined (and before the node itself and its siblings are arranged). The scaling is not reverted afterwards, so the resulting layout graph contains the adjusted size and position data. This option is currently not supported if 'Layout Hierarchy' is set."),1),es),Qi),Mt(lo)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,U4t),""),"Child Area Width"),"The width of the area occupied by the laid out children of a node."),es),Qi),Mt(rn)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,G4t),""),"Child Area Height"),"The height of the area occupied by the laid out children of a node."),es),Qi),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,yM),""),M4t),"Turns topdown layout on and off. If this option is enabled, hierarchical layout will be computed first for the root node and then for its children recursively. Layouts are then scaled down to fit the area provided by their parents. Graphs must follow a certain structure for topdown layout to work properly. {@link TopdownNodeTypes.PARALLEL_NODE} nodes must have children of type {@link TopdownNodeTypes.HIERARCHICAL_NODE} and must define {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} for their children. Furthermore they need to be laid out using an algorithm that is a {@link TopdownLayoutProvider}. Hierarchical nodes can also be parents of other hierarchical nodes and can optionally use a {@link TopdownSizeApproximator} to dynamically set sizes during topdown layout. In this case {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} should be set on the node itself rather than the parent. The values are then used by the size approximator as base values. Hierarchical nodes require the layout option {@link nodeSize.fixedGraphSize} to be true to prevent the algorithm used there from resizing the hierarchical node. This option is not supported if 'Hierarchy Handling' is set to 'INCLUDE_CHILDREN'"),!1),po),Li),Mt(rn)))),qi(t,yM,fy,null),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,V4t),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),!0),po),Li),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,z4t),""),"Animation Time Factor"),"Factor for computation of animation time. The higher the value, the longer the animation time. If the value is 0, the resulting time is always equal to the minimum defined by 'Minimal Animation Time'."),ot(100)),bl),Ko),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,K4t),""),"Layout Ancestors"),"Whether the hierarchy levels on the path from the selected element to the root of the diagram shall be included in the layout process."),!1),po),Li),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,q4t),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),ot(4e3)),bl),Ko),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,X4t),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),ot(400)),bl),Ko),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,J4t),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),po),Li),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Y4t),""),"Validate Graph"),"Whether the graph shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!1),po),Li),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Q4t),""),"Validate Options"),"Whether layout options shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!0),po),Li),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Z4t),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),!1),po),Li),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,eAe),"box"),"Box Layout Mode"),"Configures the packing mode used by the {@link BoxLayoutProvider}. If SIMPLE is not required (neither priorities are used nor the interactive mode), GROUP_DEC can improve the packing and decrease the area. GROUP_MIXED and GROUP_INC may, in very specific scenarios, work better."),tPe),pi),aOe),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Txe),uh),"Comment Comment Spacing"),"Spacing to be preserved between a comment box and other comment boxes connected to the same node. The space left between comment boxes of different nodes is controlled by the node-node spacing."),10),es),Qi),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,$xe),uh),"Comment Node Spacing"),"Spacing to be preserved between a node and its connected comment boxes. The space left between a node and the comments of another node is controlled by the node-node spacing."),10),es),Qi),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,lie),uh),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),es),Qi),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Ixe),uh),"Edge Spacing"),"Spacing to be preserved between any two edges. Note that while this can somewhat easily be satisfied for the segments of orthogonally drawn edges, it is harder for general polylines or splines."),10),es),Qi),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,hie),uh),"Edge Label Spacing"),"The minimal distance to be preserved between a label and the edge it is associated with. Note that the placement of a label is influenced by the 'edgelabels.placement' option."),2),es),Qi),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Kie),uh),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),es),Qi),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Pxe),uh),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),es),Qi),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Mxe),uh),"Label Node Spacing"),"Spacing to be preserved between labels and the border of node they are associated with. Note that the placement of a label is influenced by the 'nodelabels.placement' option."),5),es),Qi),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Oxe),uh),"Horizontal spacing between Label and Port"),"Horizontal spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),es),Qi),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Nxe),uh),"Vertical spacing between Label and Port"),"Vertical spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),es),Qi),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,m_),uh),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),es),Qi),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Dxe),uh),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),es),Qi),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Lxe),uh),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),es),Qi),ii(rn,se(ie(Mp,1),Je,170,0,[lo]))))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,jxe),uh),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),bh),mDt),ii(lo,se(ie(Mp,1),Je,170,0,[op,Bw,Fg]))))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,sCe),uh),"Additional Port Space"),"Additional space around the sets of ports on each node side. For each side of a node, this option can reserve additional space before and after the ports on each side. For example, a top spacing of 20 makes sure that the first port on the western and eastern side is 20 units away from the northern border."),NPe),bh),mTe),Mt(rn)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,Jie),nTt),"Layout Partition"),"Partition to which the node belongs. This requires Layout Partitioning to be active. Nodes with lower partition IDs will appear to the left of nodes with higher partition IDs (assuming a left-to-right layout direction)."),bl),Ko),ii(rn,se(ie(Mp,1),Je,170,0,[lo]))))),qi(t,Jie,Xie,B9t),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Xie),nTt),"Layout Partitioning"),"Whether to activate partitioned layout. This will allow to group nodes through the Layout Partition option. a pair of nodes with different partition indices is then placed such that the node with lower index is placed to the left of the other node (with left-to-right layout direction). Depending on the layout algorithm, this may only be guaranteed to work if all nodes have a layout partition configured, or at least if edges that cross partitions are not part of a partition-crossing cycle."),yPe),po),Li),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Vxe),rTt),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),hPe),bh),yTe),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,NA),rTt),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),pPe),sR),Ps),ii(lo,se(ie(Mp,1),Je,170,0,[Fg]))))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,qxe),ZU),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),_Pe),pi),I5),Mt(lo)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,Xxe),ZU),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),pi),I5),Mt(lo)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,Jxe),ZU),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),pi),I5),Mt(lo)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,Yxe),ZU),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),pi),I5),Mt(lo)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,Qxe),ZU),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),pi),I5),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,A2),moe),"Node Size Constraints"),"What should be taken into account when calculating a node's size. Empty size constraints specify that a node's size is already fixed and should not be changed."),bPe),sR),N5),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,F3),moe),"Node Size Options"),"Options modifying the behavior of the size constraints set on a node. Each member of the set specifies something that should be taken into account when calculating node sizes. The empty set corresponds to no further modifications."),wPe),sR),eOe),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,B3),moe),"Node Size Minimum"),"The minimal size to which a node can be reduced."),gPe),bh),wo),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,OA),moe),"Fixed Graph Size"),"By default, the fixed layout provider will enlarge a graph until it is large enough to contain its children. If this option is set, it won't do so."),!1),po),Li),Mt(rn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,eCe),zie),"Edge Label Placement"),"Gives a hint on where to put edge labels."),iPe),pi),LPe),Mt(Fg)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,EU),zie),"Inline Edge Labels"),"If true, an edge label is placed directly on its edge. May only apply to center edge labels. This kind of label placement is only advisable if the label's rendering is such that it is not crossed by its edge and thus stays legible."),!1),po),Li),Mt(Fg)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,uFn),"font"),"Font Name"),"Font name used for a label."),oE),St),Mt(Fg)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,eTt),"font"),"Font Size"),"Font size used for a label."),bl),Ko),Mt(Fg)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,iCe),yoe),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),bh),wo),Mt(Bw)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,tCe),yoe),"Port Index"),"The index of a port in the fixed order around a node. The order is assumed as clockwise, starting with the leftmost port on the top side. This option must be set if 'Port Constraints' is set to FIXED_ORDER and no specific positions are given for the ports. Additionally, the option 'Port Side' must be defined in this case."),bl),Ko),Mt(Bw)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Wxe),yoe),"Port Side"),"The side of a node on which a port is situated. This option must be set if 'Port Constraints' is set to FIXED_SIDE or FIXED_ORDER and no specific positions are given for the ports."),xPe),pi),vs),Mt(Bw)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,Fxe),yoe),"Port Border Offset"),"The offset of ports on the node border. With a positive offset the port is moved outside of the node, while with a negative offset the port is moved towards the inside. An offset of 0 means that the port is placed directly on the node border, i.e. if the port side is north, the port's south border touches the nodes's north border; if the port side is east, the port's west border touches the nodes's east border; if the port side is south, the port's north border touches the node's south border; if the port side is west, the port's east border touches the node's west border."),es),Qi),Mt(Bw)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,MA),iAe),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),kPe),sR),Ez),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,zxe),iAe),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),!1),po),Li),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Kxe),iAe),"Treat Port Labels as Group"),"If this option is true (default), the labels of a port will be treated as a group when it comes to centering them next to their port. If this option is false, only the first label will be centered next to the port, with the others being placed below. This only applies to labels of eastern and western ports and will have no effect if labels are not placed next to their port."),!0),po),Li),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,vM),IM),"Topdown Scale Factor"),"The scaling factor to be applied to the nodes laid out within the node in recursive topdown layout. The difference to 'Scale Factor' is that the node itself is not scaled. This value has to be set on hierarchical nodes."),1),es),Qi),Mt(rn)))),qi(t,vM,fy,q9t),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,nAe),IM),"Topdown Size Approximator"),"The size approximator to be used to set sizes of hierarchical nodes during topdown layout. The default value is null, which results in nodes keeping whatever size is defined for them e.g. through parent parallel node or by manually setting the size."),null),pi),Tz),Mt(lo)))),qi(t,nAe,fy,X9t),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,_M),IM),"Topdown Hierarchical Node Width"),"The fixed size of a hierarchical node when using topdown layout. If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),150),es),Qi),ii(rn,se(ie(Mp,1),Je,170,0,[lo]))))),qi(t,_M,fy,null),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,SM),IM),"Topdown Hierarchical Node Aspect Ratio"),"The fixed aspect ratio of a hierarchical node when using topdown layout. Default is 1/sqrt(2). If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),1.414),es),Qi),ii(rn,se(ie(Mp,1),Je,170,0,[lo]))))),qi(t,SM,fy,null),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,fy),IM),"Topdown Node Type"),"The different node types used for topdown layout. If the node type is set to {@link TopdownNodeTypes.PARALLEL_NODE} the algorithm must be set to a {@link TopdownLayoutProvider} such as {@link TopdownPacking}. The {@link nodeSize.fixedGraphSize} option is technically only required for hierarchical nodes."),null),pi),nOe),Mt(lo)))),qi(t,fy,OA,null),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,rAe),IM),"Topdown Scale Cap"),"Determines the upper limit for the topdown scale factor. The default value is 1.0 which ensures that nested children never end up appearing larger than their parents in terms of unit sizes such as the font size. If the limit is larger, nodes will fully utilize the available space, but it is counteriniuitive for inner nodes to have a larger scale than outer nodes."),1),es),Qi),Mt(rn)))),qi(t,rAe,fy,K9t),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Uxe),iTt),"Activate Inside Self Loops"),"Whether this node allows to route self loops inside of it instead of around it. If set to true, this will make the node a compound node if it isn't already, and will require the layout algorithm to support compound nodes with hierarchical ports."),!1),po),Li),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Gxe),iTt),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),!1),po),Li),Mt(op)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,aie),"edge"),"Edge Thickness"),"The thickness of an edge. This is a hint on the line width used to draw an edge, possibly requiring more space to be reserved for it."),1),es),Qi),Mt(op)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,tTt),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),aPe),pi),UPe),Mt(op)))),p$(t,new l3(c$(Kx(zx(new Ak,vn),"Layered"),'The layer-based method was introduced by Sugiyama, Tagawa and Toda in 1981. It emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers, which are sometimes called "hierarchies", and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.'))),p$(t,new l3(c$(Kx(zx(new Ak,"org.eclipse.elk.orthogonal"),"Orthogonal"),`Orthogonal methods that follow the "topology-shape-metrics" approach by Batini, Nardelli and Tamassia '86. The first phase determines the topology of the drawing by applying a planarization technique, which results in a planar representation of the graph. The orthogonal shape is computed in the second phase, which aims at minimizing the number of edge bends, and is called orthogonalization. The third phase leads to concrete coordinates for nodes and edge bend points by applying a compaction method, thus defining the metrics.`))),p$(t,new l3(c$(Kx(zx(new Ak,Ba),"Force"),"Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. The first successful method of this kind was proposed by Eades in 1984."))),p$(t,new l3(c$(Kx(zx(new Ak,"org.eclipse.elk.circle"),"Circle"),"Circular layout algorithms emphasize cycles or biconnected components of a graph by arranging them in circles. This is useful if a drawing is desired where such components are clearly grouped, or where cycles are shown as prominent OPTIONS of the graph."))),p$(t,new l3(c$(Kx(zx(new Ak,v4t),"Tree"),"Specialized layout methods for trees, i.e. acyclic graphs. The regular structure of graphs that have no undirected cycles can be emphasized using an algorithm of this type."))),p$(t,new l3(c$(Kx(zx(new Ak,"org.eclipse.elk.planar"),"Planar"),"Algorithms that require a planar or upward planar graph. Most of these algorithms are theoretically interesting, but not practically usable."))),p$(t,new l3(c$(Kx(zx(new Ak,rf),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),uRt((new Ant,t)),RRt((new Cnt,t)),j3t((new Tnt,t))};var S4,P9t,ePe,sE,O9t,N9t,tPe,lE,aE,M9t,T9,nPe,$9,Ww,rPe,fce,dce,iPe,oPe,sPe,lPe,aPe,D9t,cE,cPe,L9t,I9,hce,P9,pce,My,uPe,E4,fPe,dPe,hPe,uE,pPe,Hw,bPe,V_,fE,gPe,l0,wPe,mz,O9,Bg,mPe,j9t,yPe,F9t,B9t,vPe,_Pe,bce,gce,wce,mce,SPe,qc,x5,EPe,yce,vce,z_,kPe,RPe,dE,xPe,lR,N9,_ce,hE,W9t,Sce,H9t,U9t,CPe,G9t,APe,TPe,aR,$Pe,yz,IPe,PPe,Uw,V9t,OPe,NPe,MPe,vz,M9,k4,cR,z9t,K9t,_z,q9t,DPe,X9t;N(Kc,"CoreOptions",699),P(88,22,{3:1,34:1,22:1,88:1},r7);var gh,Js,al,wh,cf,C5=Wn(Kc,SRe,88,qn,FEn,Umn),J9t;P(278,22,{3:1,34:1,22:1,278:1},_Q);var R4,K_,x4,LPe=Wn(Kc,"EdgeLabelPlacement",278,qn,p2n,Gmn),Y9t;P(223,22,{3:1,34:1,22:1,223:1},DF);var C4,D9,uR,Ece,kce=Wn(Kc,"EdgeRouting",223,qn,pEn,Vmn),Q9t;P(321,22,{3:1,34:1,22:1,321:1},x$);var jPe,FPe,BPe,WPe,Rce,HPe,UPe=Wn(Kc,"EdgeType",321,qn,Okn,zmn),Z9t;P(989,1,Ef,Ant),p.hf=function(t){uRt(t)};var GPe,VPe,zPe,KPe,eDt,qPe,A5;N(Kc,"FixedLayouterOptions",989),P(990,1,{},XQe),p.sf=function(){var t;return t=new sZe,t},p.tf=function(t){},N(Kc,"FixedLayouterOptions/FixedFactory",990),P(346,22,{3:1,34:1,22:1,346:1},SQ);var Wg,Sz,T5,XPe=Wn(Kc,"HierarchyHandling",346,qn,d2n,Kmn),tDt;P(291,22,{3:1,34:1,22:1,291:1},LF);var Dp,a0,L9,j9,nDt=Wn(Kc,"LabelSide",291,qn,hEn,qmn),rDt;P(95,22,{3:1,34:1,22:1,95:1},jS);var Nb,dd,Tf,hd,Iu,pd,$f,Lp,bd,Ps=Wn(Kc,"NodeLabelPlacement",95,qn,N3n,Xmn),iDt;P(256,22,{3:1,34:1,22:1,256:1},i7);var JPe,$5,c0,YPe,F9,I5=Wn(Kc,"PortAlignment",256,qn,ekn,Jmn),oDt;P(101,22,{3:1,34:1,22:1,101:1},C$);var Gw,ya,jp,A4,mh,u0,QPe=Wn(Kc,"PortConstraints",101,qn,Pkn,Ymn),sDt;P(279,22,{3:1,34:1,22:1,279:1},A$);var P5,O5,Mb,B9,f0,fR,Ez=Wn(Kc,"PortLabelPlacement",279,qn,Ikn,Qmn),lDt;P(64,22,{3:1,34:1,22:1,64:1},o7);var _n,bn,uf,ff,ec,Ua,yh,gd,Oc,vc,va,Nc,tc,nc,wd,Pu,Ou,If,jn,Cl,wn,vs=Wn(Kc,"PortSide",64,qn,BEn,Zmn),aDt;P(993,1,Ef,Tnt),p.hf=function(t){j3t(t)};var cDt,uDt,ZPe,fDt,dDt;N(Kc,"RandomLayouterOptions",993),P(994,1,{},JQe),p.sf=function(){var t;return t=new rZe,t},p.tf=function(t){},N(Kc,"RandomLayouterOptions/RandomFactory",994),P(386,22,{3:1,34:1,22:1,386:1},jF);var q_,W9,H9,Vw,N5=Wn(Kc,"SizeConstraint",386,qn,dEn,eyn),hDt;P(264,22,{3:1,34:1,22:1,264:1},FS);var U9,kz,T4,xce,G9,M5,Rz,xz,Cz,eOe=Wn(Kc,"SizeOptions",264,qn,z3n,tyn),pDt;P(280,22,{3:1,34:1,22:1,280:1},EQ);var X_,tOe,Az,nOe=Wn(Kc,"TopdownNodeTypes",280,qn,b2n,nyn),bDt;P(347,22,oAe);var rOe,iOe,Tz=Wn(Kc,"TopdownSizeApproximator",347,qn,uSn,iyn);P(987,347,oAe,Qht),p.Tg=function(t){return ASt(t)},Wn(Kc,"TopdownSizeApproximator/1",987,Tz,null,null),P(988,347,oAe,Lpt),p.Tg=function(t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ct,Dt,Nt,ln;for(i=f(Ye(t,(Er(),hE)),143),ct=(v1(),U=new r$,U),GN(ct,t),Dt=new Fn,b=new Sn((!t.a&&(t.a=new qe($r,t,10,11)),t.a));b.e!=b.i.gc();)a=f(Cn(b),27),_e=(W=new r$,W),GH(_e,ct),GN(_e,a),ln=ASt(a),GS(_e,h.Math.max(a.g,ln.a),h.Math.max(a.f,ln.b)),Ca(Dt.f,a,_e);for(c=new Sn((!t.a&&(t.a=new qe($r,t,10,11)),t.a));c.e!=c.i.gc();)for(a=f(Cn(c),27),I=new Sn((!a.e&&(a.e=new en(Fi,a,7,4)),a.e));I.e!=I.i.gc();)k=f(Cn(I),74),Ke=f(tl(xs(Dt.f,a)),27),Ze=f(En(Dt,Se((!k.c&&(k.c=new en(Dn,k,5,8)),k.c),0)),27),Ce=(D=new eY,D),zn((!Ce.b&&(Ce.b=new en(Dn,Ce,4,7)),Ce.b),Ke),zn((!Ce.c&&(Ce.c=new en(Dn,Ce,5,8)),Ce.c),Ze),UH(Ce,di(Ke)),GN(Ce,k);X=f(P7(i.f),205);try{X.rf(ct,new cZe),pbt(i.f,X)}catch(an){throw an=mi(an),ve(an,103)?(z=an,ne(z)):ne(an)}return eh(ct,aE)||eh(ct,lE)||V3e(ct),_=Ae(je(Ye(ct,aE))),m=Ae(je(Ye(ct,lE))),g=_/m,s=Ae(je(Ye(ct,M9)))*h.Math.sqrt((!ct.a&&(ct.a=new qe($r,ct,10,11)),ct.a).i),Nt=f(Ye(ct,Bg),107),ge=Nt.b+Nt.c+1,oe=Nt.d+Nt.a+1,new tt(h.Math.max(ge,s),h.Math.max(oe,s/g))},Wn(Kc,"TopdownSizeApproximator/2",988,Tz,null,null);var gDt;P(344,1,{871:1},Ok),p.Ug=function(t,i){return W2t(this,t,i)},p.Vg=function(){uEt(this)},p.Wg=function(){return this.q},p.Xg=function(){return this.f?jZ(this.f):null},p.Yg=function(){return jZ(this.a)},p.Zg=function(){return this.p},p.$g=function(){return!1},p._g=function(){return this.n},p.ah=function(){return this.p!=null&&!this.b},p.bh=function(t){var i;this.n&&(i=t,lt(this.f,i))},p.dh=function(t,i){var s,a;this.n&&t&&$2n(this,(s=new Xpt,a=Hne(s,t),fLn(s),a),(XW(),Ace))},p.eh=function(t){var i;return this.b?null:(i=b3n(this,this.g),hr(this.a,i),i.i=this,this.d=t,i)},p.fh=function(t){t>0&&!this.b&&aSe(this,t)},p.b=!1,p.c=0,p.d=-1,p.e=null,p.f=null,p.g=-1,p.j=!1,p.k=!1,p.n=!1,p.o=0,p.q=0,p.r=0,N(Ol,"BasicProgressMonitor",344),P(717,205,_w,YQe),p.rf=function(t,i){HRt(t,i)},N(Ol,"BoxLayoutProvider",717),P(983,1,cr,Lot),p.Ne=function(t,i){return fOn(this,f(t,27),f(i,27))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},p.a=!1,N(Ol,"BoxLayoutProvider/1",983),P(163,1,{163:1},xW,Sdt),p.Ib=function(){return this.c?l3e(this.c):B1(this.b)},N(Ol,"BoxLayoutProvider/Group",163),P(320,22,{3:1,34:1,22:1,320:1},FF);var oOe,sOe,lOe,Cce,aOe=Wn(Ol,"BoxLayoutProvider/PackingMode",320,qn,bEn,oyn),wDt;P(984,1,cr,QQe),p.Ne=function(t,i){return $_n(f(t,163),f(i,163))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(Ol,"BoxLayoutProvider/lambda$0$Type",984),P(985,1,cr,ZQe),p.Ne=function(t,i){return S_n(f(t,163),f(i,163))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(Ol,"BoxLayoutProvider/lambda$1$Type",985),P(986,1,cr,eZe),p.Ne=function(t,i){return E_n(f(t,163),f(i,163))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(Ol,"BoxLayoutProvider/lambda$2$Type",986),P(1384,1,{845:1},tZe),p.Mg=function(t,i){return gF(),!ve(i,167)||Eat((g3(),f(t,167)),i)},N(Ol,"ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type",1384),P(1385,1,Rn,jot),p.Cd=function(t){Bxn(this.a,f(t,149))},N(Ol,"ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type",1385),P(1386,1,Rn,iZe),p.Cd=function(t){f(t,96),gF()},N(Ol,"ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type",1386),P(1390,1,Rn,Fot),p.Cd=function(t){aRn(this.a,f(t,96))},N(Ol,"ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type",1390),P(1388,1,sr,hut),p.Mb=function(t){return _xn(this.a,this.b,f(t,149))},N(Ol,"ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type",1388),P(1387,1,sr,put),p.Mb=function(t){return n0n(this.a,this.b,f(t,845))},N(Ol,"ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type",1387),P(1389,1,Rn,but),p.Cd=function(t){bvn(this.a,this.b,f(t,149))},N(Ol,"ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type",1389),P(947,1,{},oZe),p.Kb=function(t){return uft(t)},p.Fb=function(t){return this===t},N(Ol,"ElkUtil/lambda$0$Type",947),P(948,1,Rn,gut),p.Cd=function(t){p8n(this.a,this.b,f(t,74))},p.a=0,p.b=0,N(Ol,"ElkUtil/lambda$1$Type",948),P(949,1,Rn,wut),p.Cd=function(t){obn(this.a,this.b,f(t,166))},p.a=0,p.b=0,N(Ol,"ElkUtil/lambda$2$Type",949),P(950,1,Rn,mut),p.Cd=function(t){e1n(this.a,this.b,f(t,135))},p.a=0,p.b=0,N(Ol,"ElkUtil/lambda$3$Type",950),P(951,1,Rn,Bot),p.Cd=function(t){Dyn(this.a,f(t,377))},N(Ol,"ElkUtil/lambda$4$Type",951),P(325,1,{34:1,325:1},Mpn),p.Fd=function(t){return T1n(this,f(t,242))},p.Fb=function(t){var i;return ve(t,325)?(i=f(t,325),this.a==i.a):!1},p.Hb=function(){return oo(this.a)},p.Ib=function(){return this.a+" (exclusive)"},p.a=0,N(Ol,"ExclusiveBounds/ExclusiveLowerBound",325),P(1119,205,_w,sZe),p.rf=function(t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ct,Dt,Nt;for(i.Ug("Fixed Layout",1),b=f(Ye(t,(Er(),oPe)),223),D=0,W=0,_e=new Sn((!t.a&&(t.a=new qe($r,t,10,11)),t.a));_e.e!=_e.i.gc();){for(oe=f(Cn(_e),27),Nt=f(Ye(oe,(JW(),A5)),8),Nt&&(Wu(oe,Nt.a,Nt.b),f(Ye(oe,VPe),181).Hc((su(),q_))&&(U=f(Ye(oe,KPe),8),U.a>0&&U.b>0&&sy(oe,U.a,U.b,!0,!0))),D=h.Math.max(D,oe.i+oe.g),W=h.Math.max(W,oe.j+oe.f),k=new Sn((!oe.n&&(oe.n=new qe(Fs,oe,1,7)),oe.n));k.e!=k.i.gc();)m=f(Cn(k),135),Nt=f(Ye(m,A5),8),Nt&&Wu(m,Nt.a,Nt.b),D=h.Math.max(D,oe.i+m.i+m.g),W=h.Math.max(W,oe.j+m.j+m.f);for(Ze=new Sn((!oe.c&&(oe.c=new qe(Mc,oe,9,9)),oe.c));Ze.e!=Ze.i.gc();)for(Ke=f(Cn(Ze),123),Nt=f(Ye(Ke,A5),8),Nt&&Wu(Ke,Nt.a,Nt.b),ct=oe.i+Ke.i,Dt=oe.j+Ke.j,D=h.Math.max(D,ct+Ke.g),W=h.Math.max(W,Dt+Ke.f),_=new Sn((!Ke.n&&(Ke.n=new qe(Fs,Ke,1,7)),Ke.n));_.e!=_.i.gc();)m=f(Cn(_),135),Nt=f(Ye(m,A5),8),Nt&&Wu(m,Nt.a,Nt.b),D=h.Math.max(D,ct+m.i+m.g),W=h.Math.max(W,Dt+m.j+m.f);for(c=new kn(xn(Rb(oe).a.Kc(),new O));Un(c);)s=f(On(c),74),I=nCt(s),D=h.Math.max(D,I.a),W=h.Math.max(W,I.b);for(a=new kn(xn(UN(oe).a.Kc(),new O));Un(a);)s=f(On(a),74),di(Sp(s))!=t&&(I=nCt(s),D=h.Math.max(D,I.a),W=h.Math.max(W,I.b))}if(b==(_b(),C4))for(ge=new Sn((!t.a&&(t.a=new qe($r,t,10,11)),t.a));ge.e!=ge.i.gc();)for(oe=f(Cn(ge),27),a=new kn(xn(Rb(oe).a.Kc(),new O));Un(a);)s=f(On(a),74),g=gMn(s),g.b==0?zr(s,My,null):zr(s,My,g);mt(wt(Ye(t,(JW(),zPe))))||(Ce=f(Ye(t,eDt),107),X=D+Ce.b+Ce.c,z=W+Ce.d+Ce.a,sy(t,X,z,!0,!0)),i.Vg()},N(Ol,"FixedLayoutProvider",1119),P(385,137,{3:1,423:1,385:1,96:1,137:1},ZJ,emt),p.cg=function(t){var i,s,a,c,b,g,m,_,k;if(t)try{for(_=d_(t,";,;"),b=_,g=0,m=b.length;g>16&Ji|i^a<<16},p.Kc=function(){return new Wot(this)},p.Ib=function(){return this.a==null&&this.b==null?"pair(null,null)":this.a==null?"pair(null,"+dl(this.b)+")":this.b==null?"pair("+dl(this.a)+",null)":"pair("+dl(this.a)+","+dl(this.b)+")"},N(Ol,"Pair",42),P(995,1,ko,Wot),p.Nb=function(t){Uo(this,t)},p.Ob=function(){return!this.c&&(!this.b&&this.a.a!=null||this.a.b!=null)},p.Pb=function(){if(!this.c&&!this.b&&this.a.a!=null)return this.b=!0,this.a.a;if(!this.c&&this.a.b!=null)return this.c=!0,this.a.b;throw ne(new yl)},p.Qb=function(){throw this.c&&this.a.b!=null?this.a.b=null:this.b&&this.a.a!=null&&(this.a.a=null),ne(new ac)},p.b=!1,p.c=!1,N(Ol,"Pair/1",995),P(455,1,{455:1},$bt),p.Fb=function(t){return Ul(this.a,f(t,455).a)&&Ul(this.c,f(t,455).c)&&Ul(this.d,f(t,455).d)&&Ul(this.b,f(t,455).b)},p.Hb=function(){return gN(se(ie(ho,1),on,1,5,[this.a,this.c,this.d,this.b]))},p.Ib=function(){return"("+this.a+ds+this.c+ds+this.d+ds+this.b+")"},N(Ol,"Quadruple",455),P(1108,205,_w,rZe),p.rf=function(t,i){var s,a,c,b,g;if(i.Ug("Random Layout",1),(!t.a&&(t.a=new qe($r,t,10,11)),t.a).i==0){i.Vg();return}b=f(Ye(t,(D2e(),fDt)),17),b&&b.a!=0?c=new oW(b.a):c=new Rte,s=DO(je(Ye(t,cDt))),g=DO(je(Ye(t,dDt))),a=f(Ye(t,uDt),107),NLn(t,c,s,g,a),i.Vg()},N(Ol,"RandomLayoutProvider",1108),P(240,1,{240:1},ZQ),p.Fb=function(t){return Ul(this.a,f(t,240).a)&&Ul(this.b,f(t,240).b)&&Ul(this.c,f(t,240).c)},p.Hb=function(){return gN(se(ie(ho,1),on,1,5,[this.a,this.b,this.c]))},p.Ib=function(){return"("+this.a+ds+this.b+ds+this.c+")"},N(Ol,"Triple",240);var _Dt;P(562,1,{}),p.Lf=function(){return new tt(this.f.i,this.f.j)},p.of=function(t){return igt(t,(Er(),qc))?Ye(this.f,SDt):Ye(this.f,t)},p.Mf=function(){return new tt(this.f.g,this.f.f)},p.Nf=function(){return this.g},p.pf=function(t){return eh(this.f,t)},p.Of=function(t){Da(this.f,t.a),La(this.f,t.b)},p.Pf=function(t){Vm(this.f,t.a),Gm(this.f,t.b)},p.Qf=function(t){this.g=t},p.g=0;var SDt;N(vI,"ElkGraphAdapters/AbstractElkGraphElementAdapter",562),P(563,1,{853:1},qj),p.Rf=function(){var t,i;if(!this.b)for(this.b=tW(jB(this.a).i),i=new Sn(jB(this.a));i.e!=i.i.gc();)t=f(Cn(i),135),lt(this.b,new TY(t));return this.b},p.b=null,N(vI,"ElkGraphAdapters/ElkEdgeAdapter",563),P(289,562,{},dm),p.Sf=function(){return JSt(this)},p.a=null,N(vI,"ElkGraphAdapters/ElkGraphAdapter",289),P(640,562,{187:1},TY),N(vI,"ElkGraphAdapters/ElkLabelAdapter",640),P(639,562,{695:1},LQ),p.Rf=function(){return _Tn(this)},p.Vf=function(){var t;return t=f(Ye(this.f,(Er(),E4)),140),!t&&(t=new n$),t},p.Xf=function(){return STn(this)},p.Zf=function(t){var i;i=new tZ(t),zr(this.f,(Er(),E4),i)},p.$f=function(t){zr(this.f,(Er(),Bg),new xye(t))},p.Tf=function(){return this.d},p.Uf=function(){var t,i;if(!this.a)for(this.a=new st,i=new kn(xn(UN(f(this.f,27)).a.Kc(),new O));Un(i);)t=f(On(i),74),lt(this.a,new qj(t));return this.a},p.Wf=function(){var t,i;if(!this.c)for(this.c=new st,i=new kn(xn(Rb(f(this.f,27)).a.Kc(),new O));Un(i);)t=f(On(i),74),lt(this.c,new qj(t));return this.c},p.Yf=function(){return UB(f(this.f,27)).i!=0||mt(wt(f(this.f,27).of((Er(),I9))))},p._f=function(){e3n(this,(vm(),_Dt))},p.a=null,p.b=null,p.c=null,p.d=null,p.e=null,N(vI,"ElkGraphAdapters/ElkNodeAdapter",639),P(1284,562,{852:1},Hot),p.Rf=function(){return $Tn(this)},p.Uf=function(){var t,i;if(!this.a)for(this.a=pp(f(this.f,123).hh().i),i=new Sn(f(this.f,123).hh());i.e!=i.i.gc();)t=f(Cn(i),74),lt(this.a,new qj(t));return this.a},p.Wf=function(){var t,i;if(!this.c)for(this.c=pp(f(this.f,123).ih().i),i=new Sn(f(this.f,123).ih());i.e!=i.i.gc();)t=f(Cn(i),74),lt(this.c,new qj(t));return this.c},p.ag=function(){return f(f(this.f,123).of((Er(),dE)),64)},p.bg=function(){var t,i,s,a,c,b,g,m;for(a=Xd(f(this.f,123)),s=new Sn(f(this.f,123).ih());s.e!=s.i.gc();)for(t=f(Cn(s),74),m=new Sn((!t.c&&(t.c=new en(Dn,t,5,8)),t.c));m.e!=m.i.gc();){if(g=f(Cn(m),84),Xv(sl(g),a))return!0;if(sl(g)==a&&mt(wt(Ye(t,(Er(),hce)))))return!0}for(i=new Sn(f(this.f,123).hh());i.e!=i.i.gc();)for(t=f(Cn(i),74),b=new Sn((!t.b&&(t.b=new en(Dn,t,4,7)),t.b));b.e!=b.i.gc();)if(c=f(Cn(b),84),Xv(sl(c),a))return!0;return!1},p.a=null,p.b=null,p.c=null,N(vI,"ElkGraphAdapters/ElkPortAdapter",1284),P(1285,1,cr,nZe),p.Ne=function(t,i){return aNn(f(t,123),f(i,123))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(vI,"ElkGraphAdapters/PortComparator",1285);var d0=Ei(of,"EObject"),$4=Ei(I2,lTt),Nu=Ei(I2,aTt),V9=Ei(I2,cTt),z9=Ei(I2,"ElkShape"),Dn=Ei(I2,uTt),Fi=Ei(I2,sAe),ai=Ei(I2,fTt),K9=Ei(of,dTt),D5=Ei(of,"EFactory"),EDt,Tce=Ei(of,hTt),Bd=Ei(of,"EPackage"),_o,kDt,RDt,dOe,$z,xDt,hOe,pOe,bOe,Fp,CDt,ADt,Fs=Ei(I2,lAe),$r=Ei(I2,aAe),Mc=Ei(I2,cAe);P(93,1,pTt),p.th=function(){return this.uh(),null},p.uh=function(){return null},p.vh=function(){return this.uh(),!1},p.wh=function(){return!1},p.xh=function(t){Dr(this,t)},N(U3,"BasicNotifierImpl",93),P(99,93,mTt),p.Yh=function(){return eu(this)},p.yh=function(t,i){return t},p.zh=function(){throw ne(new rr)},p.Ah=function(t){var i;return i=Es(f(tn(this.Dh(),this.Fh()),19)),this.Ph().Th(this,i.n,i.f,t)},p.Bh=function(t,i){throw ne(new rr)},p.Ch=function(t,i,s){return xu(this,t,i,s)},p.Dh=function(){var t;return this.zh()&&(t=this.zh().Nk(),t)?t:this.ii()},p.Eh=function(){return Rne(this)},p.Fh=function(){throw ne(new rr)},p.Gh=function(){var t,i;return i=this.$h().Ok(),!i&&this.zh().Tk(i=(g$(),t=Fve(Gh(this.Dh())),t==null?Lce:new u7(this,t))),i},p.Hh=function(t,i){return t},p.Ih=function(t){var i;return i=t.pk(),i?t.Lj():yi(this.Dh(),t)},p.Jh=function(){var t;return t=this.zh(),t?t.Qk():null},p.Kh=function(){return this.zh()?this.zh().Nk():null},p.Lh=function(t,i,s){return mH(this,t,i,s)},p.Mh=function(t){return EC(this,t)},p.Nh=function(t,i){return uee(this,t,i)},p.Oh=function(){var t;return t=this.zh(),!!t&&t.Rk()},p.Ph=function(){throw ne(new rr)},p.Qh=function(){return fH(this)},p.Rh=function(t,i,s,a){return S3(this,t,i,a)},p.Sh=function(t,i,s){var a;return a=f(tn(this.Dh(),i),69),a.wk().zk(this,this.hi(),i-this.ji(),t,s)},p.Th=function(t,i,s,a){return KB(this,t,i,a)},p.Uh=function(t,i,s){var a;return a=f(tn(this.Dh(),i),69),a.wk().Ak(this,this.hi(),i-this.ji(),t,s)},p.Vh=function(){return!!this.zh()&&!!this.zh().Pk()},p.Wh=function(t){return Dte(this,t)},p.Xh=function(t){return mgt(this,t)},p.Zh=function(t){return Bxt(this,t)},p.$h=function(){throw ne(new rr)},p._h=function(){return this.zh()?this.zh().Pk():null},p.ai=function(){return fH(this)},p.bi=function(t,i){vne(this,t,i)},p.ci=function(t){this.$h().Sk(t)},p.di=function(t){this.$h().Vk(t)},p.ei=function(t){this.$h().Uk(t)},p.fi=function(t,i){var s,a,c,b;return b=this.Jh(),b&&t&&(i=fs(b.El(),this,i),b.Il(this)),a=this.Ph(),a&&(Fne(this,this.Ph(),this.Fh()).Bb&ys?(c=a.Qh(),c&&(t?!b&&c.Il(this):c.Hl(this))):(i=(s=this.Fh(),s>=0?this.Ah(i):this.Ph().Th(this,-1-s,null,i)),i=this.Ch(null,-1,i))),this.di(t),i},p.gi=function(t){var i,s,a,c,b,g,m,_;if(s=this.Dh(),b=yi(s,t),i=this.ji(),b>=i)return f(t,69).wk().Dk(this,this.hi(),b-i);if(b<=-1)if(g=_2((gc(),qo),s,t),g){if(Ss(),f(g,69).xk()||(g=a3(Vs(qo,g))),c=(a=this.Ih(g),f(a>=0?this.Lh(a,!0,!0):ry(this,g,!0),160)),_=g.Ik(),_>1||_==-1)return f(f(c,220).Sl(t,!1),79)}else throw ne(new hn(X1+t.xe()+voe));else if(t.Jk())return a=this.Ih(t),f(a>=0?this.Lh(a,!1,!0):ry(this,t,!1),79);return m=new Dut(this,t),m},p.hi=function(){return G_e(this)},p.ii=function(){return(C1(),un).S},p.ji=function(){return Pn(this.ii())},p.ki=function(t){wne(this,t)},p.Ib=function(){return rd(this)},N(fn,"BasicEObjectImpl",99);var TDt;P(119,99,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1}),p.li=function(t){var i;return i=U_e(this),i[t]},p.mi=function(t,i){var s;s=U_e(this),Ci(s,t,i)},p.ni=function(t){var i;i=U_e(this),Ci(i,t,null)},p.th=function(){return f(dn(this,4),129)},p.uh=function(){throw ne(new rr)},p.vh=function(){return(this.Db&4)!=0},p.zh=function(){throw ne(new rr)},p.oi=function(t){v3(this,2,t)},p.Bh=function(t,i){this.Db=i<<16|this.Db&255,this.oi(t)},p.Dh=function(){return Xa(this)},p.Fh=function(){return this.Db>>16},p.Gh=function(){var t,i;return g$(),i=Fve(Gh((t=f(dn(this,16),29),t||this.ii()))),i==null?Lce:new u7(this,i)},p.wh=function(){return(this.Db&1)==0},p.Jh=function(){return f(dn(this,128),2034)},p.Kh=function(){return f(dn(this,16),29)},p.Oh=function(){return(this.Db&32)!=0},p.Ph=function(){return f(dn(this,2),54)},p.Vh=function(){return(this.Db&64)!=0},p.$h=function(){throw ne(new rr)},p._h=function(){return f(dn(this,64),288)},p.ci=function(t){v3(this,16,t)},p.di=function(t){v3(this,128,t)},p.ei=function(t){v3(this,64,t)},p.hi=function(){return ja(this)},p.Db=0,N(fn,"MinimalEObjectImpl",119),P(120,119,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),p.oi=function(t){this.Cb=t},p.Ph=function(){return this.Cb},N(fn,"MinimalEObjectImpl/Container",120),P(2083,120,{110:1,342:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),p.Lh=function(t,i,s){return oEe(this,t,i,s)},p.Uh=function(t,i,s){return qEe(this,t,i,s)},p.Wh=function(t){return Zve(this,t)},p.bi=function(t,i){GSe(this,t,i)},p.ii=function(){return Yl(),ADt},p.ki=function(t){OSe(this,t)},p.nf=function(){return gSt(this)},p.gh=function(){return!this.o&&(this.o=new pc((Yl(),Fp),Hg,this,0)),this.o},p.of=function(t){return Ye(this,t)},p.pf=function(t){return eh(this,t)},p.qf=function(t,i){return zr(this,t,i)},N(Rw,"EMapPropertyHolderImpl",2083),P(572,120,{110:1,377:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},Lj),p.Lh=function(t,i,s){switch(t){case 0:return this.a;case 1:return this.b}return mH(this,t,i,s)},p.Wh=function(t){switch(t){case 0:return this.a!=0;case 1:return this.b!=0}return Dte(this,t)},p.bi=function(t,i){switch(t){case 0:AW(this,Ae(je(i)));return;case 1:CW(this,Ae(je(i)));return}vne(this,t,i)},p.ii=function(){return Yl(),kDt},p.ki=function(t){switch(t){case 0:AW(this,0);return;case 1:CW(this,0);return}wne(this,t)},p.Ib=function(){var t;return this.Db&64?rd(this):(t=new wf(rd(this)),t.a+=" (x: ",NS(t,this.a),t.a+=", y: ",NS(t,this.b),t.a+=")",t.a)},p.a=0,p.b=0,N(Rw,"ElkBendPointImpl",572),P(739,2083,{110:1,342:1,167:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),p.Lh=function(t,i,s){return h2e(this,t,i,s)},p.Sh=function(t,i,s){return une(this,t,i,s)},p.Uh=function(t,i,s){return Kee(this,t,i,s)},p.Wh=function(t){return CSe(this,t)},p.bi=function(t,i){kEe(this,t,i)},p.ii=function(){return Yl(),xDt},p.ki=function(t){i2e(this,t)},p.jh=function(){return this.k},p.kh=function(){return jB(this)},p.Ib=function(){return yte(this)},p.k=null,N(Rw,"ElkGraphElementImpl",739),P(740,739,{110:1,342:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),p.Lh=function(t,i,s){return _2e(this,t,i,s)},p.Wh=function(t){return C2e(this,t)},p.bi=function(t,i){REe(this,t,i)},p.ii=function(){return Yl(),CDt},p.ki=function(t){N2e(this,t)},p.lh=function(){return this.f},p.mh=function(){return this.g},p.nh=function(){return this.i},p.oh=function(){return this.j},p.ph=function(t,i){GS(this,t,i)},p.qh=function(t,i){Wu(this,t,i)},p.rh=function(t){Da(this,t)},p.sh=function(t){La(this,t)},p.Ib=function(){return bne(this)},p.f=0,p.g=0,p.i=0,p.j=0,N(Rw,"ElkShapeImpl",740),P(741,740,{110:1,342:1,84:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),p.Lh=function(t,i,s){return Q2e(this,t,i,s)},p.Sh=function(t,i,s){return mEe(this,t,i,s)},p.Uh=function(t,i,s){return yEe(this,t,i,s)},p.Wh=function(t){return USe(this,t)},p.bi=function(t,i){Pke(this,t,i)},p.ii=function(){return Yl(),RDt},p.ki=function(t){K2e(this,t)},p.hh=function(){return!this.d&&(this.d=new en(Fi,this,8,5)),this.d},p.ih=function(){return!this.e&&(this.e=new en(Fi,this,7,4)),this.e},N(Rw,"ElkConnectableShapeImpl",741),P(326,739,{110:1,342:1,74:1,167:1,326:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},eY),p.Ah=function(t){return pEe(this,t)},p.Lh=function(t,i,s){switch(t){case 3:return N7(this);case 4:return!this.b&&(this.b=new en(Dn,this,4,7)),this.b;case 5:return!this.c&&(this.c=new en(Dn,this,5,8)),this.c;case 6:return!this.a&&(this.a=new qe(ai,this,6,6)),this.a;case 7:return cn(),!this.b&&(this.b=new en(Dn,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new en(Dn,this,5,8)),this.c.i<=1));case 8:return cn(),!!W6(this);case 9:return cn(),!!ny(this);case 10:return cn(),!this.b&&(this.b=new en(Dn,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new en(Dn,this,5,8)),this.c.i!=0)}return h2e(this,t,i,s)},p.Sh=function(t,i,s){var a;switch(i){case 3:return this.Cb&&(s=(a=this.Db>>16,a>=0?pEe(this,s):this.Cb.Th(this,-1-a,null,s))),Xme(this,f(t,27),s);case 4:return!this.b&&(this.b=new en(Dn,this,4,7)),xa(this.b,t,s);case 5:return!this.c&&(this.c=new en(Dn,this,5,8)),xa(this.c,t,s);case 6:return!this.a&&(this.a=new qe(ai,this,6,6)),xa(this.a,t,s)}return une(this,t,i,s)},p.Uh=function(t,i,s){switch(i){case 3:return Xme(this,null,s);case 4:return!this.b&&(this.b=new en(Dn,this,4,7)),fs(this.b,t,s);case 5:return!this.c&&(this.c=new en(Dn,this,5,8)),fs(this.c,t,s);case 6:return!this.a&&(this.a=new qe(ai,this,6,6)),fs(this.a,t,s)}return Kee(this,t,i,s)},p.Wh=function(t){switch(t){case 3:return!!N7(this);case 4:return!!this.b&&this.b.i!=0;case 5:return!!this.c&&this.c.i!=0;case 6:return!!this.a&&this.a.i!=0;case 7:return!this.b&&(this.b=new en(Dn,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new en(Dn,this,5,8)),this.c.i<=1));case 8:return W6(this);case 9:return ny(this);case 10:return!this.b&&(this.b=new en(Dn,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new en(Dn,this,5,8)),this.c.i!=0)}return CSe(this,t)},p.bi=function(t,i){switch(t){case 3:UH(this,f(i,27));return;case 4:!this.b&&(this.b=new en(Dn,this,4,7)),Vn(this.b),!this.b&&(this.b=new en(Dn,this,4,7)),Ii(this.b,f(i,16));return;case 5:!this.c&&(this.c=new en(Dn,this,5,8)),Vn(this.c),!this.c&&(this.c=new en(Dn,this,5,8)),Ii(this.c,f(i,16));return;case 6:!this.a&&(this.a=new qe(ai,this,6,6)),Vn(this.a),!this.a&&(this.a=new qe(ai,this,6,6)),Ii(this.a,f(i,16));return}kEe(this,t,i)},p.ii=function(){return Yl(),dOe},p.ki=function(t){switch(t){case 3:UH(this,null);return;case 4:!this.b&&(this.b=new en(Dn,this,4,7)),Vn(this.b);return;case 5:!this.c&&(this.c=new en(Dn,this,5,8)),Vn(this.c);return;case 6:!this.a&&(this.a=new qe(ai,this,6,6)),Vn(this.a);return}i2e(this,t)},p.Ib=function(){return ixt(this)},N(Rw,"ElkEdgeImpl",326),P(452,2083,{110:1,342:1,166:1,452:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},jj),p.Ah=function(t){return uEe(this,t)},p.Lh=function(t,i,s){switch(t){case 1:return this.j;case 2:return this.k;case 3:return this.b;case 4:return this.c;case 5:return!this.a&&(this.a=new zi(Nu,this,5)),this.a;case 6:return pgt(this);case 7:return i?Wte(this):this.i;case 8:return i?Bte(this):this.f;case 9:return!this.g&&(this.g=new en(ai,this,9,10)),this.g;case 10:return!this.e&&(this.e=new en(ai,this,10,9)),this.e;case 11:return this.d}return oEe(this,t,i,s)},p.Sh=function(t,i,s){var a,c,b;switch(i){case 6:return this.Cb&&(s=(c=this.Db>>16,c>=0?uEe(this,s):this.Cb.Th(this,-1-c,null,s))),qme(this,f(t,74),s);case 9:return!this.g&&(this.g=new en(ai,this,9,10)),xa(this.g,t,s);case 10:return!this.e&&(this.e=new en(ai,this,10,9)),xa(this.e,t,s)}return b=f(tn((a=f(dn(this,16),29),a||(Yl(),$z)),i),69),b.wk().zk(this,ja(this),i-Pn((Yl(),$z)),t,s)},p.Uh=function(t,i,s){switch(i){case 5:return!this.a&&(this.a=new zi(Nu,this,5)),fs(this.a,t,s);case 6:return qme(this,null,s);case 9:return!this.g&&(this.g=new en(ai,this,9,10)),fs(this.g,t,s);case 10:return!this.e&&(this.e=new en(ai,this,10,9)),fs(this.e,t,s)}return qEe(this,t,i,s)},p.Wh=function(t){switch(t){case 1:return this.j!=0;case 2:return this.k!=0;case 3:return this.b!=0;case 4:return this.c!=0;case 5:return!!this.a&&this.a.i!=0;case 6:return!!pgt(this);case 7:return!!this.i;case 8:return!!this.f;case 9:return!!this.g&&this.g.i!=0;case 10:return!!this.e&&this.e.i!=0;case 11:return this.d!=null}return Zve(this,t)},p.bi=function(t,i){switch(t){case 1:TC(this,Ae(je(i)));return;case 2:IC(this,Ae(je(i)));return;case 3:AC(this,Ae(je(i)));return;case 4:$C(this,Ae(je(i)));return;case 5:!this.a&&(this.a=new zi(Nu,this,5)),Vn(this.a),!this.a&&(this.a=new zi(Nu,this,5)),Ii(this.a,f(i,16));return;case 6:r3t(this,f(i,74));return;case 7:MW(this,f(i,84));return;case 8:NW(this,f(i,84));return;case 9:!this.g&&(this.g=new en(ai,this,9,10)),Vn(this.g),!this.g&&(this.g=new en(ai,this,9,10)),Ii(this.g,f(i,16));return;case 10:!this.e&&(this.e=new en(ai,this,10,9)),Vn(this.e),!this.e&&(this.e=new en(ai,this,10,9)),Ii(this.e,f(i,16));return;case 11:bSe(this,or(i));return}GSe(this,t,i)},p.ii=function(){return Yl(),$z},p.ki=function(t){switch(t){case 1:TC(this,0);return;case 2:IC(this,0);return;case 3:AC(this,0);return;case 4:$C(this,0);return;case 5:!this.a&&(this.a=new zi(Nu,this,5)),Vn(this.a);return;case 6:r3t(this,null);return;case 7:MW(this,null);return;case 8:NW(this,null);return;case 9:!this.g&&(this.g=new en(ai,this,9,10)),Vn(this.g);return;case 10:!this.e&&(this.e=new en(ai,this,10,9)),Vn(this.e);return;case 11:bSe(this,null);return}OSe(this,t)},p.Ib=function(){return wkt(this)},p.b=0,p.c=0,p.d=null,p.j=0,p.k=0,N(Rw,"ElkEdgeSectionImpl",452),P(158,120,{110:1,94:1,93:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1}),p.Lh=function(t,i,s){var a;return t==0?(!this.Ab&&(this.Ab=new qe(_r,this,0,3)),this.Ab):qu(this,t-Pn(this.ii()),tn((a=f(dn(this,16),29),a||this.ii()),t),i,s)},p.Sh=function(t,i,s){var a,c;return i==0?(!this.Ab&&(this.Ab=new qe(_r,this,0,3)),xa(this.Ab,t,s)):(c=f(tn((a=f(dn(this,16),29),a||this.ii()),i),69),c.wk().zk(this,ja(this),i-Pn(this.ii()),t,s))},p.Uh=function(t,i,s){var a,c;return i==0?(!this.Ab&&(this.Ab=new qe(_r,this,0,3)),fs(this.Ab,t,s)):(c=f(tn((a=f(dn(this,16),29),a||this.ii()),i),69),c.wk().Ak(this,ja(this),i-Pn(this.ii()),t,s))},p.Wh=function(t){var i;return t==0?!!this.Ab&&this.Ab.i!=0:zu(this,t-Pn(this.ii()),tn((i=f(dn(this,16),29),i||this.ii()),t))},p.Zh=function(t){return U3e(this,t)},p.bi=function(t,i){var s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return}Qu(this,t-Pn(this.ii()),tn((s=f(dn(this,16),29),s||this.ii()),t),i)},p.di=function(t){v3(this,128,t)},p.ii=function(){return zt(),KDt},p.ki=function(t){var i;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return}Yu(this,t-Pn(this.ii()),tn((i=f(dn(this,16),29),i||this.ii()),t))},p.pi=function(){this.Bb|=1},p.qi=function(t){return q6(this,t)},p.Bb=0,N(fn,"EModelElementImpl",158),P(720,158,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},V1e),p.ri=function(t,i){return Oxt(this,t,i)},p.si=function(t){var i,s,a,c,b;if(this.a!=vu(t)||t.Bb&256)throw ne(new hn(Soe+t.zb+by));for(a=rl(t);ra(a.a).i!=0;){if(s=f(tM(a,0,(i=f(Se(ra(a.a),0),89),b=i.c,ve(b,90)?f(b,29):(zt(),Mf))),29),ty(s))return c=vu(s).wi().si(s),f(c,54).ci(t),c;a=rl(s)}return(t.D!=null?t.D:t.B)=="java.util.Map$Entry"?new Jht(t):new Lye(t)},p.ti=function(t,i){return ly(this,t,i)},p.Lh=function(t,i,s){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),this.Ab;case 1:return this.a}return qu(this,t-Pn((zt(),g0)),tn((a=f(dn(this,16),29),a||g0),t),i,s)},p.Sh=function(t,i,s){var a,c;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),xa(this.Ab,t,s);case 1:return this.a&&(s=f(this.a,54).Th(this,4,Bd,s)),r2e(this,f(t,241),s)}return c=f(tn((a=f(dn(this,16),29),a||(zt(),g0)),i),69),c.wk().zk(this,ja(this),i-Pn((zt(),g0)),t,s)},p.Uh=function(t,i,s){var a,c;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),fs(this.Ab,t,s);case 1:return r2e(this,null,s)}return c=f(tn((a=f(dn(this,16),29),a||(zt(),g0)),i),69),c.wk().Ak(this,ja(this),i-Pn((zt(),g0)),t,s)},p.Wh=function(t){var i;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return!!this.a}return zu(this,t-Pn((zt(),g0)),tn((i=f(dn(this,16),29),i||g0),t))},p.bi=function(t,i){var s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return;case 1:eEt(this,f(i,241));return}Qu(this,t-Pn((zt(),g0)),tn((s=f(dn(this,16),29),s||g0),t),i)},p.ii=function(){return zt(),g0},p.ki=function(t){var i;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return;case 1:eEt(this,null);return}Yu(this,t-Pn((zt(),g0)),tn((i=f(dn(this,16),29),i||g0),t))};var L5,gOe,$Dt;N(fn,"EFactoryImpl",720),P(1037,720,{110:1,2113:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},fZe),p.ri=function(t,i){switch(t.hk()){case 12:return f(i,149).Pg();case 13:return dl(i);default:throw ne(new hn(HA+t.xe()+by))}},p.si=function(t){var i,s,a,c,b,g,m,_;switch(t.G==-1&&(t.G=(i=vu(t),i?Rg(i.vi(),t):-1)),t.G){case 4:return b=new F1e,b;case 6:return g=new r$,g;case 7:return m=new F0e,m;case 8:return a=new eY,a;case 9:return s=new Lj,s;case 10:return c=new jj,c;case 11:return _=new dZe,_;default:throw ne(new hn(Soe+t.zb+by))}},p.ti=function(t,i){switch(t.hk()){case 13:case 12:return null;default:throw ne(new hn(HA+t.xe()+by))}},N(Rw,"ElkGraphFactoryImpl",1037),P(448,158,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1}),p.Gh=function(){var t,i;return i=(t=f(dn(this,16),29),Fve(Gh(t||this.ii()))),i==null?(g$(),g$(),Lce):new ydt(this,i)},p.Lh=function(t,i,s){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),this.Ab;case 1:return this.xe()}return qu(this,t-Pn(this.ii()),tn((a=f(dn(this,16),29),a||this.ii()),t),i,s)},p.Wh=function(t){var i;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null}return zu(this,t-Pn(this.ii()),tn((i=f(dn(this,16),29),i||this.ii()),t))},p.bi=function(t,i){var s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return;case 1:this.ui(or(i));return}Qu(this,t-Pn(this.ii()),tn((s=f(dn(this,16),29),s||this.ii()),t),i)},p.ii=function(){return zt(),qDt},p.ki=function(t){var i;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return;case 1:this.ui(null);return}Yu(this,t-Pn(this.ii()),tn((i=f(dn(this,16),29),i||this.ii()),t))},p.xe=function(){return this.zb},p.ui=function(t){Ra(this,t)},p.Ib=function(){return S6(this)},p.zb=null,N(fn,"ENamedElementImpl",448),P(184,448,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},zbt),p.Ah=function(t){return f2t(this,t)},p.Lh=function(t,i,s){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.yb;case 3:return this.xb;case 4:return this.sb;case 5:return!this.rb&&(this.rb=new Fv(this,Wd,this)),this.rb;case 6:return!this.vb&&(this.vb=new Xk(Bd,this,6,7)),this.vb;case 7:return i?this.Db>>16==7?f(this.Cb,241):null:_gt(this)}return qu(this,t-Pn((zt(),zg)),tn((a=f(dn(this,16),29),a||zg),t),i,s)},p.Sh=function(t,i,s){var a,c,b;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),xa(this.Ab,t,s);case 4:return this.sb&&(s=f(this.sb,54).Th(this,1,D5,s)),s2e(this,f(t,480),s);case 5:return!this.rb&&(this.rb=new Fv(this,Wd,this)),xa(this.rb,t,s);case 6:return!this.vb&&(this.vb=new Xk(Bd,this,6,7)),xa(this.vb,t,s);case 7:return this.Cb&&(s=(c=this.Db>>16,c>=0?f2t(this,s):this.Cb.Th(this,-1-c,null,s))),xu(this,t,7,s)}return b=f(tn((a=f(dn(this,16),29),a||(zt(),zg)),i),69),b.wk().zk(this,ja(this),i-Pn((zt(),zg)),t,s)},p.Uh=function(t,i,s){var a,c;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),fs(this.Ab,t,s);case 4:return s2e(this,null,s);case 5:return!this.rb&&(this.rb=new Fv(this,Wd,this)),fs(this.rb,t,s);case 6:return!this.vb&&(this.vb=new Xk(Bd,this,6,7)),fs(this.vb,t,s);case 7:return xu(this,null,7,s)}return c=f(tn((a=f(dn(this,16),29),a||(zt(),zg)),i),69),c.wk().Ak(this,ja(this),i-Pn((zt(),zg)),t,s)},p.Wh=function(t){var i;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.yb!=null;case 3:return this.xb!=null;case 4:return!!this.sb;case 5:return!!this.rb&&this.rb.i!=0;case 6:return!!this.vb&&this.vb.i!=0;case 7:return!!_gt(this)}return zu(this,t-Pn((zt(),zg)),tn((i=f(dn(this,16),29),i||zg),t))},p.Zh=function(t){var i;return i=EOn(this,t),i||U3e(this,t)},p.bi=function(t,i){var s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return;case 1:Ra(this,or(i));return;case 2:WW(this,or(i));return;case 3:BW(this,or(i));return;case 4:pne(this,f(i,480));return;case 5:!this.rb&&(this.rb=new Fv(this,Wd,this)),Vn(this.rb),!this.rb&&(this.rb=new Fv(this,Wd,this)),Ii(this.rb,f(i,16));return;case 6:!this.vb&&(this.vb=new Xk(Bd,this,6,7)),Vn(this.vb),!this.vb&&(this.vb=new Xk(Bd,this,6,7)),Ii(this.vb,f(i,16));return}Qu(this,t-Pn((zt(),zg)),tn((s=f(dn(this,16),29),s||zg),t),i)},p.ei=function(t){var i,s;if(t&&this.rb)for(s=new Sn(this.rb);s.e!=s.i.gc();)i=Cn(s),ve(i,364)&&(f(i,364).w=null);v3(this,64,t)},p.ii=function(){return zt(),zg},p.ki=function(t){var i;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return;case 1:Ra(this,null);return;case 2:WW(this,null);return;case 3:BW(this,null);return;case 4:pne(this,null);return;case 5:!this.rb&&(this.rb=new Fv(this,Wd,this)),Vn(this.rb);return;case 6:!this.vb&&(this.vb=new Xk(Bd,this,6,7)),Vn(this.vb);return}Yu(this,t-Pn((zt(),zg)),tn((i=f(dn(this,16),29),i||zg),t))},p.pi=function(){ene(this)},p.vi=function(){return!this.rb&&(this.rb=new Fv(this,Wd,this)),this.rb},p.wi=function(){return this.sb},p.xi=function(){return this.ub},p.yi=function(){return this.xb},p.zi=function(){return this.yb},p.Ai=function(t){this.ub=t},p.Ib=function(){var t;return this.Db&64?S6(this):(t=new wf(S6(this)),t.a+=" (nsURI: ",Ms(t,this.yb),t.a+=", nsPrefix: ",Ms(t,this.xb),t.a+=")",t.a)},p.xb=null,p.yb=null,N(fn,"EPackageImpl",184),P(569,184,{110:1,2115:1,569:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},xkt),p.q=!1,p.r=!1;var IDt=!1;N(Rw,"ElkGraphPackageImpl",569),P(366,740,{110:1,342:1,167:1,135:1,422:1,366:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},F1e),p.Ah=function(t){return fEe(this,t)},p.Lh=function(t,i,s){switch(t){case 7:return Sgt(this);case 8:return this.a}return _2e(this,t,i,s)},p.Sh=function(t,i,s){var a;switch(i){case 7:return this.Cb&&(s=(a=this.Db>>16,a>=0?fEe(this,s):this.Cb.Th(this,-1-a,null,s))),Qye(this,f(t,167),s)}return une(this,t,i,s)},p.Uh=function(t,i,s){return i==7?Qye(this,null,s):Kee(this,t,i,s)},p.Wh=function(t){switch(t){case 7:return!!Sgt(this);case 8:return!Ht("",this.a)}return C2e(this,t)},p.bi=function(t,i){switch(t){case 7:Vke(this,f(i,167));return;case 8:uSe(this,or(i));return}REe(this,t,i)},p.ii=function(){return Yl(),hOe},p.ki=function(t){switch(t){case 7:Vke(this,null);return;case 8:uSe(this,"");return}N2e(this,t)},p.Ib=function(){return pEt(this)},p.a="",N(Rw,"ElkLabelImpl",366),P(207,741,{110:1,342:1,84:1,167:1,27:1,422:1,207:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},r$),p.Ah=function(t){return bEe(this,t)},p.Lh=function(t,i,s){switch(t){case 9:return!this.c&&(this.c=new qe(Mc,this,9,9)),this.c;case 10:return!this.a&&(this.a=new qe($r,this,10,11)),this.a;case 11:return di(this);case 12:return!this.b&&(this.b=new qe(Fi,this,12,3)),this.b;case 13:return cn(),!this.a&&(this.a=new qe($r,this,10,11)),this.a.i>0}return Q2e(this,t,i,s)},p.Sh=function(t,i,s){var a;switch(i){case 9:return!this.c&&(this.c=new qe(Mc,this,9,9)),xa(this.c,t,s);case 10:return!this.a&&(this.a=new qe($r,this,10,11)),xa(this.a,t,s);case 11:return this.Cb&&(s=(a=this.Db>>16,a>=0?bEe(this,s):this.Cb.Th(this,-1-a,null,s))),oye(this,f(t,27),s);case 12:return!this.b&&(this.b=new qe(Fi,this,12,3)),xa(this.b,t,s)}return mEe(this,t,i,s)},p.Uh=function(t,i,s){switch(i){case 9:return!this.c&&(this.c=new qe(Mc,this,9,9)),fs(this.c,t,s);case 10:return!this.a&&(this.a=new qe($r,this,10,11)),fs(this.a,t,s);case 11:return oye(this,null,s);case 12:return!this.b&&(this.b=new qe(Fi,this,12,3)),fs(this.b,t,s)}return yEe(this,t,i,s)},p.Wh=function(t){switch(t){case 9:return!!this.c&&this.c.i!=0;case 10:return!!this.a&&this.a.i!=0;case 11:return!!di(this);case 12:return!!this.b&&this.b.i!=0;case 13:return!this.a&&(this.a=new qe($r,this,10,11)),this.a.i>0}return USe(this,t)},p.bi=function(t,i){switch(t){case 9:!this.c&&(this.c=new qe(Mc,this,9,9)),Vn(this.c),!this.c&&(this.c=new qe(Mc,this,9,9)),Ii(this.c,f(i,16));return;case 10:!this.a&&(this.a=new qe($r,this,10,11)),Vn(this.a),!this.a&&(this.a=new qe($r,this,10,11)),Ii(this.a,f(i,16));return;case 11:GH(this,f(i,27));return;case 12:!this.b&&(this.b=new qe(Fi,this,12,3)),Vn(this.b),!this.b&&(this.b=new qe(Fi,this,12,3)),Ii(this.b,f(i,16));return}Pke(this,t,i)},p.ii=function(){return Yl(),pOe},p.ki=function(t){switch(t){case 9:!this.c&&(this.c=new qe(Mc,this,9,9)),Vn(this.c);return;case 10:!this.a&&(this.a=new qe($r,this,10,11)),Vn(this.a);return;case 11:GH(this,null);return;case 12:!this.b&&(this.b=new qe(Fi,this,12,3)),Vn(this.b);return}K2e(this,t)},p.Ib=function(){return l3e(this)},N(Rw,"ElkNodeImpl",207),P(193,741,{110:1,342:1,84:1,167:1,123:1,422:1,193:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},F0e),p.Ah=function(t){return dEe(this,t)},p.Lh=function(t,i,s){return t==9?Xd(this):Q2e(this,t,i,s)},p.Sh=function(t,i,s){var a;switch(i){case 9:return this.Cb&&(s=(a=this.Db>>16,a>=0?dEe(this,s):this.Cb.Th(this,-1-a,null,s))),Jme(this,f(t,27),s)}return mEe(this,t,i,s)},p.Uh=function(t,i,s){return i==9?Jme(this,null,s):yEe(this,t,i,s)},p.Wh=function(t){return t==9?!!Xd(this):USe(this,t)},p.bi=function(t,i){switch(t){case 9:Wke(this,f(i,27));return}Pke(this,t,i)},p.ii=function(){return Yl(),bOe},p.ki=function(t){switch(t){case 9:Wke(this,null);return}K2e(this,t)},p.Ib=function(){return nRt(this)},N(Rw,"ElkPortImpl",193);var PDt=Ei(hs,"BasicEMap/Entry");P(1122,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,119:1,120:1},dZe),p.Fb=function(t){return this===t},p.ld=function(){return this.b},p.Hb=function(){return xm(this)},p.Di=function(t){fSe(this,f(t,149))},p.Lh=function(t,i,s){switch(t){case 0:return this.b;case 1:return this.c}return mH(this,t,i,s)},p.Wh=function(t){switch(t){case 0:return!!this.b;case 1:return this.c!=null}return Dte(this,t)},p.bi=function(t,i){switch(t){case 0:fSe(this,f(i,149));return;case 1:cSe(this,i);return}vne(this,t,i)},p.ii=function(){return Yl(),Fp},p.ki=function(t){switch(t){case 0:fSe(this,null);return;case 1:cSe(this,null);return}wne(this,t)},p.Bi=function(){var t;return this.a==-1&&(t=this.b,this.a=t?ti(t):0),this.a},p.md=function(){return this.c},p.Ci=function(t){this.a=t},p.nd=function(t){var i;return i=this.c,cSe(this,t),i},p.Ib=function(){var t;return this.Db&64?rd(this):(t=new m1,br(br(br(t,this.b?this.b.Pg():Za),bie),D$(this.c)),t.a)},p.a=-1,p.c=null;var Hg=N(Rw,"ElkPropertyToValueMapEntryImpl",1122);P(996,1,{},bZe),N(zo,"JsonAdapter",996),P(216,63,Cb,$h),N(zo,"JsonImportException",216),P(868,1,{},d2t),N(zo,"JsonImporter",868),P(903,1,{},yut),N(zo,"JsonImporter/lambda$0$Type",903),P(904,1,{},vut),N(zo,"JsonImporter/lambda$1$Type",904),P(912,1,{},Uot),N(zo,"JsonImporter/lambda$10$Type",912),P(914,1,{},_ut),N(zo,"JsonImporter/lambda$11$Type",914),P(915,1,{},Sut),N(zo,"JsonImporter/lambda$12$Type",915),P(921,1,{},Nbt),N(zo,"JsonImporter/lambda$13$Type",921),P(920,1,{},Mbt),N(zo,"JsonImporter/lambda$14$Type",920),P(916,1,{},Eut),N(zo,"JsonImporter/lambda$15$Type",916),P(917,1,{},kut),N(zo,"JsonImporter/lambda$16$Type",917),P(918,1,{},Rut),N(zo,"JsonImporter/lambda$17$Type",918),P(919,1,{},xut),N(zo,"JsonImporter/lambda$18$Type",919),P(924,1,{},Got),N(zo,"JsonImporter/lambda$19$Type",924),P(905,1,{},Vot),N(zo,"JsonImporter/lambda$2$Type",905),P(922,1,{},zot),N(zo,"JsonImporter/lambda$20$Type",922),P(923,1,{},Kot),N(zo,"JsonImporter/lambda$21$Type",923),P(927,1,{},qot),N(zo,"JsonImporter/lambda$22$Type",927),P(925,1,{},Xot),N(zo,"JsonImporter/lambda$23$Type",925),P(926,1,{},Jot),N(zo,"JsonImporter/lambda$24$Type",926),P(929,1,{},Yot),N(zo,"JsonImporter/lambda$25$Type",929),P(928,1,{},Qot),N(zo,"JsonImporter/lambda$26$Type",928),P(930,1,Rn,Cut),p.Cd=function(t){Lkn(this.b,this.a,or(t))},N(zo,"JsonImporter/lambda$27$Type",930),P(931,1,Rn,Aut),p.Cd=function(t){jkn(this.b,this.a,or(t))},N(zo,"JsonImporter/lambda$28$Type",931),P(932,1,{},Tut),N(zo,"JsonImporter/lambda$29$Type",932),P(908,1,{},Zot),N(zo,"JsonImporter/lambda$3$Type",908),P(933,1,{},$ut),N(zo,"JsonImporter/lambda$30$Type",933),P(934,1,{},est),N(zo,"JsonImporter/lambda$31$Type",934),P(935,1,{},tst),N(zo,"JsonImporter/lambda$32$Type",935),P(936,1,{},nst),N(zo,"JsonImporter/lambda$33$Type",936),P(937,1,{},rst),N(zo,"JsonImporter/lambda$34$Type",937),P(870,1,{},ist),N(zo,"JsonImporter/lambda$35$Type",870),P(941,1,{},kht),N(zo,"JsonImporter/lambda$36$Type",941),P(938,1,Rn,ost),p.Cd=function(t){UEn(this.a,f(t,377))},N(zo,"JsonImporter/lambda$37$Type",938),P(939,1,Rn,Iut),p.Cd=function(t){kgn(this.a,this.b,f(t,166))},N(zo,"JsonImporter/lambda$38$Type",939),P(940,1,Rn,Put),p.Cd=function(t){Rgn(this.a,this.b,f(t,166))},N(zo,"JsonImporter/lambda$39$Type",940),P(906,1,{},sst),N(zo,"JsonImporter/lambda$4$Type",906),P(942,1,Rn,lst),p.Cd=function(t){GEn(this.a,f(t,8))},N(zo,"JsonImporter/lambda$40$Type",942),P(907,1,{},ast),N(zo,"JsonImporter/lambda$5$Type",907),P(911,1,{},cst),N(zo,"JsonImporter/lambda$6$Type",911),P(909,1,{},ust),N(zo,"JsonImporter/lambda$7$Type",909),P(910,1,{},fst),N(zo,"JsonImporter/lambda$8$Type",910),P(913,1,{},dst),N(zo,"JsonImporter/lambda$9$Type",913),P(961,1,Rn,hst),p.Cd=function(t){r3(this.a,new Bv(or(t)))},N(zo,"JsonMetaDataConverter/lambda$0$Type",961),P(962,1,Rn,pst),p.Cd=function(t){Mvn(this.a,f(t,245))},N(zo,"JsonMetaDataConverter/lambda$1$Type",962),P(963,1,Rn,bst),p.Cd=function(t){NSn(this.a,f(t,143))},N(zo,"JsonMetaDataConverter/lambda$2$Type",963),P(964,1,Rn,gst),p.Cd=function(t){Dvn(this.a,f(t,170))},N(zo,"JsonMetaDataConverter/lambda$3$Type",964),P(245,22,{3:1,34:1,22:1,245:1},Uk);var Iz,Pz,$ce,Oz,Nz,Mz,Ice,Pce,Dz=Wn(gM,"GraphFeature",245,qn,y3n,ayn),ODt;P(11,1,{34:1,149:1},Xr,_i,Bt,Po),p.Fd=function(t){return $1n(this,f(t,149))},p.Fb=function(t){return igt(this,t)},p.Sg=function(){return ht(this)},p.Pg=function(){return this.b},p.Hb=function(){return mg(this.b)},p.Ib=function(){return this.b},N(gM,"Property",11),P(671,1,cr,pY),p.Ne=function(t,i){return BCn(this,f(t,96),f(i,96))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(gM,"PropertyHolderComparator",671),P(709,1,ko,v0e),p.Nb=function(t){Uo(this,t)},p.Pb=function(){return Wkn(this)},p.Qb=function(){dat()},p.Ob=function(){return!!this.a},N(rG,"ElkGraphUtil/AncestorIterator",709);var wOe=Ei(hs,"EList");P(70,56,{20:1,31:1,56:1,16:1,15:1,70:1,61:1}),p.bd=function(t,i){k6(this,t,i)},p.Fc=function(t){return zn(this,t)},p.cd=function(t,i){return NSe(this,t,i)},p.Gc=function(t){return Ii(this,t)},p.Ii=function(){return new qk(this)},p.Ji=function(){return new f7(this)},p.Ki=function(t){return rN(this,t)},p.Li=function(){return!0},p.Mi=function(t,i){},p.Ni=function(){},p.Oi=function(t,i){pee(this,t,i)},p.Pi=function(t,i,s){},p.Qi=function(t,i){},p.Ri=function(t,i,s){},p.Fb=function(t){return B3t(this,t)},p.Hb=function(){return $Se(this)},p.Si=function(){return!1},p.Kc=function(){return new Sn(this)},p.ed=function(){return new Kk(this)},p.fd=function(t){var i;if(i=this.gc(),t<0||t>i)throw ne(new Lv(t,i));return new yZ(this,t)},p.Ui=function(t,i){this.Ti(t,this.dd(i))},p.Mc=function(t){return vW(this,t)},p.Wi=function(t,i){return i},p.hd=function(t,i){return c2(this,t,i)},p.Ib=function(){return k2e(this)},p.Yi=function(){return!0},p.Zi=function(t,i){return VC(this,i)},N(hs,"AbstractEList",70),P(66,70,ep,Fj,Um,kSe),p.Ei=function(t,i){return fne(this,t,i)},p.Fi=function(t){return LSt(this,t)},p.Gi=function(t,i){mN(this,t,i)},p.Hi=function(t){W7(this,t)},p.$i=function(t){return j_e(this,t)},p.$b=function(){s6(this)},p.Hc=function(t){return lA(this,t)},p.Xb=function(t){return Se(this,t)},p._i=function(t){var i,s,a;++this.j,s=this.g==null?0:this.g.length,t>s&&(a=this.g,i=s+(s/2|0)+4,i=0?(this.gd(i),!0):!1},p.Xi=function(t,i){return this.Dj(t,this.Zi(t,i))},p.gc=function(){return this.Ej()},p.Pc=function(){return this.Fj()},p.Qc=function(t){return this.Gj(t)},p.Ib=function(){return this.Hj()},N(hs,"DelegatingEList",2093),P(2094,2093,n$t),p.Ei=function(t,i){return y3e(this,t,i)},p.Fi=function(t){return this.Ei(this.Ej(),t)},p.Gi=function(t,i){Ckt(this,t,i)},p.Hi=function(t){bkt(this,t)},p.Li=function(){return!this.Mj()},p.$b=function(){eI(this)},p.Ij=function(t,i,s,a,c){return new rgt(this,t,i,s,a,c)},p.Jj=function(t){Dr(this.jj(),t)},p.Kj=function(){return null},p.Lj=function(){return-1},p.jj=function(){return null},p.Mj=function(){return!1},p.Nj=function(t,i){return i},p.Oj=function(t,i){return i},p.Pj=function(){return!1},p.Qj=function(){return!this.Aj()},p.Ti=function(t,i){var s,a;return this.Pj()?(a=this.Qj(),s=VEe(this,t,i),this.Jj(this.Ij(7,ot(i),s,t,a)),s):VEe(this,t,i)},p.gd=function(t){var i,s,a,c;return this.Pj()?(s=null,a=this.Qj(),i=this.Ij(4,c=mB(this,t),null,t,a),this.Mj()&&c?(s=this.Oj(c,s),s?(s.nj(i),s.oj()):this.Jj(i)):s?(s.nj(i),s.oj()):this.Jj(i),c):(c=mB(this,t),this.Mj()&&c&&(s=this.Oj(c,null),s&&s.oj()),c)},p.Xi=function(t,i){return NRt(this,t,i)},N(U3,"DelegatingNotifyingListImpl",2094),P(152,1,OM),p.nj=function(t){return $Ee(this,t)},p.oj=function(){See(this)},p.gj=function(){return this.d},p.Kj=function(){return null},p.Rj=function(){return null},p.hj=function(t){return-1},p.ij=function(){return _3t(this)},p.jj=function(){return null},p.kj=function(){return Jke(this)},p.lj=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},p.Sj=function(){return!1},p.mj=function(t){var i,s,a,c,b,g,m,_,k,I,D;switch(this.d){case 1:case 2:switch(c=t.gj(),c){case 1:case 2:if(b=t.jj(),Oe(b)===Oe(this.jj())&&this.hj(null)==t.hj(null))return this.g=t.ij(),t.gj()==1&&(this.d=1),!0}case 4:{switch(c=t.gj(),c){case 4:{if(b=t.jj(),Oe(b)===Oe(this.jj())&&this.hj(null)==t.hj(null))return k=D3e(this),_=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,g=t.lj(),this.d=6,D=new Um(2),_<=g?(zn(D,this.n),zn(D,t.kj()),this.g=se(ie(Xn,1),wr,28,15,[this.o=_,g+1])):(zn(D,t.kj()),zn(D,this.n),this.g=se(ie(Xn,1),wr,28,15,[this.o=g,_])),this.n=D,k||(this.o=-2-this.o-1),!0;break}}break}case 6:{switch(c=t.gj(),c){case 4:{if(b=t.jj(),Oe(b)===Oe(this.jj())&&this.hj(null)==t.hj(null)){for(k=D3e(this),g=t.lj(),I=f(this.g,53),a=Fe(Xn,wr,28,I.length+1,15,1),i=0;i>>0,i.toString(16))),a.a+=" (eventType: ",this.d){case 1:{a.a+="SET";break}case 2:{a.a+="UNSET";break}case 3:{a.a+="ADD";break}case 5:{a.a+="ADD_MANY";break}case 4:{a.a+="REMOVE";break}case 6:{a.a+="REMOVE_MANY";break}case 7:{a.a+="MOVE";break}case 8:{a.a+="REMOVING_ADAPTER";break}case 9:{a.a+="RESOLVE";break}default:{jY(a,this.d);break}}if(aRt(this)&&(a.a+=", touch: true"),a.a+=", position: ",jY(a,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),a.a+=", notifier: ",$$(a,this.jj()),a.a+=", feature: ",$$(a,this.Kj()),a.a+=", oldValue: ",$$(a,Jke(this)),a.a+=", newValue: ",this.d==6&&ve(this.g,53)){for(s=f(this.g,53),a.a+="[",t=0;t10?((!this.b||this.c.j!=this.a)&&(this.b=new H$(this),this.a=this.j),Rd(this.b,t)):lA(this,t)},p.Yi=function(){return!0},p.a=0,N(hs,"AbstractEList/1",966),P(302,77,Fre,Lv),N(hs,"AbstractEList/BasicIndexOutOfBoundsException",302),P(37,1,ko,Sn),p.Nb=function(t){Uo(this,t)},p.Xj=function(){if(this.i.j!=this.f)throw ne(new Bu)},p.Yj=function(){return Cn(this)},p.Ob=function(){return this.e!=this.i.gc()},p.Pb=function(){return this.Yj()},p.Qb=function(){D6(this)},p.e=0,p.f=0,p.g=-1,N(hs,"AbstractEList/EIterator",37),P(286,37,kp,Kk,yZ),p.Qb=function(){D6(this)},p.Rb=function(t){M_t(this,t)},p.Zj=function(){var t;try{return t=this.d.Xb(--this.e),this.Xj(),this.g=this.e,t}catch(i){throw i=mi(i),ve(i,77)?(this.Xj(),ne(new yl)):ne(i)}},p.$j=function(t){BSt(this,t)},p.Sb=function(){return this.e!=0},p.Tb=function(){return this.e},p.Ub=function(){return this.Zj()},p.Vb=function(){return this.e-1},p.Wb=function(t){this.$j(t)},N(hs,"AbstractEList/EListIterator",286),P(355,37,ko,qk),p.Yj=function(){return Lte(this)},p.Qb=function(){throw ne(new rr)},N(hs,"AbstractEList/NonResolvingEIterator",355),P(398,286,kp,f7,dye),p.Rb=function(t){throw ne(new rr)},p.Yj=function(){var t;try{return t=this.c.Vi(this.e),this.Xj(),this.g=this.e++,t}catch(i){throw i=mi(i),ve(i,77)?(this.Xj(),ne(new yl)):ne(i)}},p.Zj=function(){var t;try{return t=this.c.Vi(--this.e),this.Xj(),this.g=this.e,t}catch(i){throw i=mi(i),ve(i,77)?(this.Xj(),ne(new yl)):ne(i)}},p.Qb=function(){throw ne(new rr)},p.Wb=function(t){throw ne(new rr)},N(hs,"AbstractEList/NonResolvingEListIterator",398),P(2080,70,r$t),p.Ei=function(t,i){var s,a,c,b,g,m,_,k,I,D,W;if(c=i.gc(),c!=0){for(k=f(dn(this.a,4),129),I=k==null?0:k.length,W=I+c,a=ste(this,W),D=I-t,D>0&&oa(k,t,a,t+c,D),_=i.Kc(),g=0;gs)throw ne(new Lv(t,s));return new Rbt(this,t)},p.$b=function(){var t,i;++this.j,t=f(dn(this.a,4),129),i=t==null?0:t.length,rA(this,null),pee(this,i,t)},p.Hc=function(t){var i,s,a,c,b;if(i=f(dn(this.a,4),129),i!=null){if(t!=null){for(a=i,c=0,b=a.length;c=s)throw ne(new Lv(t,s));return i[t]},p.dd=function(t){var i,s,a;if(i=f(dn(this.a,4),129),i!=null){if(t!=null){for(s=0,a=i.length;ss)throw ne(new Lv(t,s));return new kbt(this,t)},p.Ti=function(t,i){var s,a,c;if(s=V_t(this),c=s==null?0:s.length,t>=c)throw ne(new Hs(Ioe+t+xw+c));if(i>=c)throw ne(new Hs(Poe+i+xw+c));return a=s[i],t!=i&&(t0&&oa(t,0,i,0,s),i},p.Qc=function(t){var i,s,a;return i=f(dn(this.a,4),129),a=i==null?0:i.length,a>0&&(t.lengtha&&Ci(t,a,null),t};var NDt;N(hs,"ArrayDelegatingEList",2080),P(1051,37,ko,x0t),p.Xj=function(){if(this.b.j!=this.f||Oe(f(dn(this.b.a,4),129))!==Oe(this.a))throw ne(new Bu)},p.Qb=function(){D6(this),this.a=f(dn(this.b.a,4),129)},N(hs,"ArrayDelegatingEList/EIterator",1051),P(722,286,kp,jpt,kbt),p.Xj=function(){if(this.b.j!=this.f||Oe(f(dn(this.b.a,4),129))!==Oe(this.a))throw ne(new Bu)},p.$j=function(t){BSt(this,t),this.a=f(dn(this.b.a,4),129)},p.Qb=function(){D6(this),this.a=f(dn(this.b.a,4),129)},N(hs,"ArrayDelegatingEList/EListIterator",722),P(1052,355,ko,C0t),p.Xj=function(){if(this.b.j!=this.f||Oe(f(dn(this.b.a,4),129))!==Oe(this.a))throw ne(new Bu)},N(hs,"ArrayDelegatingEList/NonResolvingEIterator",1052),P(723,398,kp,Fpt,Rbt),p.Xj=function(){if(this.b.j!=this.f||Oe(f(dn(this.b.a,4),129))!==Oe(this.a))throw ne(new Bu)},N(hs,"ArrayDelegatingEList/NonResolvingEListIterator",723),P(615,302,Fre,kQ),N(hs,"BasicEList/BasicIndexOutOfBoundsException",615),P(710,66,ep,eme),p.bd=function(t,i){throw ne(new rr)},p.Fc=function(t){throw ne(new rr)},p.cd=function(t,i){throw ne(new rr)},p.Gc=function(t){throw ne(new rr)},p.$b=function(){throw ne(new rr)},p._i=function(t){throw ne(new rr)},p.Kc=function(){return this.Ii()},p.ed=function(){return this.Ji()},p.fd=function(t){return this.Ki(t)},p.Ti=function(t,i){throw ne(new rr)},p.Ui=function(t,i){throw ne(new rr)},p.gd=function(t){throw ne(new rr)},p.Mc=function(t){throw ne(new rr)},p.hd=function(t,i){throw ne(new rr)},N(hs,"BasicEList/UnmodifiableEList",710),P(721,1,{3:1,20:1,16:1,15:1,61:1,597:1}),p.bd=function(t,i){m1n(this,t,f(i,44))},p.Fc=function(t){return f0n(this,f(t,44))},p.Jc=function(t){Vo(this,t)},p.Xb=function(t){return f(Se(this.c,t),136)},p.Ti=function(t,i){return f(this.c.Ti(t,i),44)},p.Ui=function(t,i){y1n(this,t,f(i,44))},p.Lc=function(){return new Wt(null,new Vt(this,16))},p.gd=function(t){return f(this.c.gd(t),44)},p.hd=function(t,i){return Nvn(this,t,f(i,44))},p.jd=function(t){sw(this,t)},p.Nc=function(){return new Vt(this,16)},p.Oc=function(){return new Wt(null,new Vt(this,16))},p.cd=function(t,i){return this.c.cd(t,i)},p.Gc=function(t){return this.c.Gc(t)},p.$b=function(){this.c.$b()},p.Hc=function(t){return this.c.Hc(t)},p.Ic=function(t){return cN(this.c,t)},p._j=function(){var t,i,s;if(this.d==null){for(this.d=Fe(mOe,CAe,66,2*this.f+1,0,1),s=this.e,this.f=0,i=this.c.Kc();i.e!=i.i.gc();)t=f(i.Yj(),136),SH(this,t);this.e=s}},p.Fb=function(t){return dht(this,t)},p.Hb=function(){return $Se(this.c)},p.dd=function(t){return this.c.dd(t)},p.ak=function(){this.c=new wst(this)},p.dc=function(){return this.f==0},p.Kc=function(){return this.c.Kc()},p.ed=function(){return this.c.ed()},p.fd=function(t){return this.c.fd(t)},p.bk=function(){return G7(this)},p.ck=function(t,i,s){return new Rht(t,i,s)},p.dk=function(){return new yZe},p.Mc=function(t){return Qmt(this,t)},p.gc=function(){return this.f},p.kd=function(t,i){return new dg(this.c,t,i)},p.Pc=function(){return this.c.Pc()},p.Qc=function(t){return this.c.Qc(t)},p.Ib=function(){return k2e(this.c)},p.e=0,p.f=0,N(hs,"BasicEMap",721),P(1046,66,ep,wst),p.Mi=function(t,i){Jpn(this,f(i,136))},p.Pi=function(t,i,s){var a;++(a=this,f(i,136),a).a.e},p.Qi=function(t,i){Ypn(this,f(i,136))},p.Ri=function(t,i,s){J1n(this,f(i,136),f(s,136))},p.Oi=function(t,i){Vyt(this.a)},N(hs,"BasicEMap/1",1046),P(1047,66,ep,yZe),p.aj=function(t){return Fe(jFn,i$t,621,t,0,1)},N(hs,"BasicEMap/2",1047),P(1048,lh,wc,mst),p.$b=function(){this.a.c.$b()},p.Hc=function(t){return Cte(this.a,t)},p.Kc=function(){return this.a.f==0?(oC(),J9.a):new eat(this.a)},p.Mc=function(t){var i;return i=this.a.f,uH(this.a,t),this.a.f!=i},p.gc=function(){return this.a.f},N(hs,"BasicEMap/3",1048),P(1049,31,p_,yst),p.$b=function(){this.a.c.$b()},p.Hc=function(t){return W3t(this.a,t)},p.Kc=function(){return this.a.f==0?(oC(),J9.a):new tat(this.a)},p.gc=function(){return this.a.f},N(hs,"BasicEMap/4",1049),P(1050,lh,wc,vst),p.$b=function(){this.a.c.$b()},p.Hc=function(t){var i,s,a,c,b,g,m,_,k;if(this.a.f>0&&ve(t,44)&&(this.a._j(),_=f(t,44),m=_.ld(),c=m==null?0:ti(m),b=Yme(this.a,c),i=this.a.d[b],i)){for(s=f(i.g,379),k=i.i,g=0;g"+this.c},p.a=0;var jFn=N(hs,"BasicEMap/EntryImpl",621);P(546,1,{},Bj),N(hs,"BasicEMap/View",546);var J9;P(783,1,{}),p.Fb=function(t){return Oke((Kt(),ps),t)},p.Hb=function(){return HSe((Kt(),ps))},p.Ib=function(){return B1((Kt(),ps))},N(hs,"ECollections/BasicEmptyUnmodifiableEList",783),P(1348,1,kp,vZe),p.Nb=function(t){Uo(this,t)},p.Rb=function(t){throw ne(new rr)},p.Ob=function(){return!1},p.Sb=function(){return!1},p.Pb=function(){throw ne(new yl)},p.Tb=function(){return 0},p.Ub=function(){throw ne(new yl)},p.Vb=function(){return-1},p.Qb=function(){throw ne(new rr)},p.Wb=function(t){throw ne(new rr)},N(hs,"ECollections/BasicEmptyUnmodifiableEList/1",1348),P(1346,783,{20:1,16:1,15:1,61:1},ult),p.bd=function(t,i){Rat()},p.Fc=function(t){return xat()},p.cd=function(t,i){return Cat()},p.Gc=function(t){return Aat()},p.$b=function(){Tat()},p.Hc=function(t){return!1},p.Ic=function(t){return!1},p.Jc=function(t){Vo(this,t)},p.Xb=function(t){return rme((Kt(),t)),null},p.dd=function(t){return-1},p.dc=function(){return!0},p.Kc=function(){return this.a},p.ed=function(){return this.a},p.fd=function(t){return this.a},p.Ti=function(t,i){return $at()},p.Ui=function(t,i){Iat()},p.Lc=function(){return new Wt(null,new Vt(this,16))},p.gd=function(t){return Pat()},p.Mc=function(t){return Oat()},p.hd=function(t,i){return Nat()},p.gc=function(){return 0},p.jd=function(t){sw(this,t)},p.Nc=function(){return new Vt(this,16)},p.Oc=function(){return new Wt(null,new Vt(this,16))},p.kd=function(t,i){return Kt(),new dg(ps,t,i)},p.Pc=function(){return eve((Kt(),ps))},p.Qc=function(t){return Kt(),P6(ps,t)},N(hs,"ECollections/EmptyUnmodifiableEList",1346),P(1347,783,{20:1,16:1,15:1,61:1,597:1},flt),p.bd=function(t,i){Rat()},p.Fc=function(t){return xat()},p.cd=function(t,i){return Cat()},p.Gc=function(t){return Aat()},p.$b=function(){Tat()},p.Hc=function(t){return!1},p.Ic=function(t){return!1},p.Jc=function(t){Vo(this,t)},p.Xb=function(t){return rme((Kt(),t)),null},p.dd=function(t){return-1},p.dc=function(){return!0},p.Kc=function(){return this.a},p.ed=function(){return this.a},p.fd=function(t){return this.a},p.Ti=function(t,i){return $at()},p.Ui=function(t,i){Iat()},p.Lc=function(){return new Wt(null,new Vt(this,16))},p.gd=function(t){return Pat()},p.Mc=function(t){return Oat()},p.hd=function(t,i){return Nat()},p.gc=function(){return 0},p.jd=function(t){sw(this,t)},p.Nc=function(){return new Vt(this,16)},p.Oc=function(){return new Wt(null,new Vt(this,16))},p.kd=function(t,i){return Kt(),new dg(ps,t,i)},p.Pc=function(){return eve((Kt(),ps))},p.Qc=function(t){return Kt(),P6(ps,t)},p.bk=function(){return Kt(),Kt(),Ip},N(hs,"ECollections/EmptyUnmodifiableEMap",1347);var vOe=Ei(hs,"Enumerator"),Lz;P(288,1,{288:1},Nne),p.Fb=function(t){var i;return this===t?!0:ve(t,288)?(i=f(t,288),this.f==i.f&&Jyn(this.i,i.i)&&lZ(this.a,this.f&256?i.f&256?i.a:null:i.f&256?null:i.a)&&lZ(this.d,i.d)&&lZ(this.g,i.g)&&lZ(this.e,i.e)&&v4n(this,i)):!1},p.Hb=function(){return this.f},p.Ib=function(){return vRt(this)},p.f=0;var MDt=0,DDt=0,LDt=0,jDt=0,_Oe=0,SOe=0,EOe=0,kOe=0,ROe=0,FDt,j5=0,F5=0,BDt=0,WDt=0,jz,xOe;N(hs,"URI",288),P(1121,45,k2,dlt),p.zc=function(t,i){return f(Gs(this,or(t),f(i,288)),288)},N(hs,"URI/URICache",1121),P(506,66,ep,pZe,kB),p.Si=function(){return!0},N(hs,"UniqueEList",506),P(590,63,Cb,wW),N(hs,"WrappedException",590);var _r=Ei(of,l$t),J_=Ei(of,a$t),rc=Ei(of,c$t),Y_=Ei(of,u$t),Wd=Ei(of,f$t),Pf=Ei(of,"EClass"),Mce=Ei(of,"EDataType"),HDt;P(1233,45,k2,hlt),p.xc=function(t){return Eo(t)?ua(this,t):tl(xs(this.f,t))},N(of,"EDataType/Internal/ConversionDelegate/Factory/Registry/Impl",1233);var Fz=Ei(of,"EEnum"),Db=Ei(of,d$t),Os=Ei(of,h$t),Of=Ei(of,p$t),Nf,Dy=Ei(of,b$t),Q_=Ei(of,g$t);P(1042,1,{},hZe),p.Ib=function(){return"NIL"},N(of,"EStructuralFeature/Internal/DynamicValueHolder/1",1042);var UDt;P(1041,45,k2,plt),p.xc=function(t){return Eo(t)?ua(this,t):tl(xs(this.f,t))},N(of,"EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl",1041);var Ga=Ei(of,w$t),dR=Ei(of,"EValidator/PatternMatcher"),COe,AOe,un,Ug,Z_,p0,GDt,VDt,zDt,b0,Gg,g0,Ly,vh,KDt,qDt,Mf,Vg,XDt,zg,eS,pE,_s,JDt,YDt,jy,Bz=Ei(fi,"FeatureMap/Entry");P(545,1,{76:1},WF),p.Lk=function(){return this.a},p.md=function(){return this.b},N(fn,"BasicEObjectImpl/1",545),P(1040,1,joe,Dut),p.Fk=function(t){return uee(this.a,this.b,t)},p.Qj=function(){return mgt(this.a,this.b)},p.Wb=function(t){Hve(this.a,this.b,t)},p.Gk=function(){Kvn(this.a,this.b)},N(fn,"BasicEObjectImpl/4",1040),P(2081,1,{114:1}),p.Mk=function(t){this.e=t==0?QDt:Fe(ho,on,1,t,5,1)},p.li=function(t){return this.e[t]},p.mi=function(t,i){this.e[t]=i},p.ni=function(t){this.e[t]=null},p.Nk=function(){return this.c},p.Ok=function(){throw ne(new rr)},p.Pk=function(){throw ne(new rr)},p.Qk=function(){return this.d},p.Rk=function(){return this.e!=null},p.Sk=function(t){this.c=t},p.Tk=function(t){throw ne(new rr)},p.Uk=function(t){throw ne(new rr)},p.Vk=function(t){this.d=t};var QDt;N(fn,"BasicEObjectImpl/EPropertiesHolderBaseImpl",2081),P(192,2081,{114:1},Ed),p.Ok=function(){return this.a},p.Pk=function(){return this.b},p.Tk=function(t){this.a=t},p.Uk=function(t){this.b=t},N(fn,"BasicEObjectImpl/EPropertiesHolderImpl",192),P(516,99,mTt,Wj),p.uh=function(){return this.f},p.zh=function(){return this.k},p.Bh=function(t,i){this.g=t,this.i=i},p.Dh=function(){return this.j&2?this.$h().Nk():this.ii()},p.Fh=function(){return this.i},p.wh=function(){return(this.j&1)!=0},p.Ph=function(){return this.g},p.Vh=function(){return(this.j&4)!=0},p.$h=function(){return!this.k&&(this.k=new Ed),this.k},p.ci=function(t){this.$h().Sk(t),t?this.j|=2:this.j&=-3},p.ei=function(t){this.$h().Uk(t),t?this.j|=4:this.j&=-5},p.ii=function(){return(C1(),un).S},p.i=0,p.j=1,N(fn,"EObjectImpl",516),P(798,516,{110:1,94:1,93:1,58:1,114:1,54:1,99:1},Lye),p.li=function(t){return this.e[t]},p.mi=function(t,i){this.e[t]=i},p.ni=function(t){this.e[t]=null},p.Dh=function(){return this.d},p.Ih=function(t){return yi(this.d,t)},p.Kh=function(){return this.d},p.Oh=function(){return this.e!=null},p.$h=function(){return!this.k&&(this.k=new _Ze),this.k},p.ci=function(t){this.d=t},p.hi=function(){var t;return this.e==null&&(t=Pn(this.d),this.e=t==0?ZDt:Fe(ho,on,1,t,5,1)),this},p.ji=function(){return 0};var ZDt;N(fn,"DynamicEObjectImpl",798),P(1522,798,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1},Jht),p.Fb=function(t){return this===t},p.Hb=function(){return xm(this)},p.ci=function(t){this.d=t,this.b=VN(t,"key"),this.c=VN(t,EI)},p.Bi=function(){var t;return this.a==-1&&(t=Eee(this,this.b),this.a=t==null?0:ti(t)),this.a},p.ld=function(){return Eee(this,this.b)},p.md=function(){return Eee(this,this.c)},p.Ci=function(t){this.a=t},p.Di=function(t){Hve(this,this.b,t)},p.nd=function(t){var i;return i=Eee(this,this.c),Hve(this,this.c,t),i},p.a=0,N(fn,"DynamicEObjectImpl/BasicEMapEntry",1522),P(1523,1,{114:1},_Ze),p.Mk=function(t){throw ne(new rr)},p.li=function(t){throw ne(new rr)},p.mi=function(t,i){throw ne(new rr)},p.ni=function(t){throw ne(new rr)},p.Nk=function(){throw ne(new rr)},p.Ok=function(){return this.a},p.Pk=function(){return this.b},p.Qk=function(){return this.c},p.Rk=function(){throw ne(new rr)},p.Sk=function(t){throw ne(new rr)},p.Tk=function(t){this.a=t},p.Uk=function(t){this.b=t},p.Vk=function(t){this.c=t},N(fn,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1523),P(519,158,{110:1,94:1,93:1,598:1,155:1,58:1,114:1,54:1,99:1,519:1,158:1,119:1,120:1},B1e),p.Ah=function(t){return hEe(this,t)},p.Lh=function(t,i,s){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),this.Ab;case 1:return this.d;case 2:return s?(!this.b&&(this.b=new nu((zt(),_s),Ll,this)),this.b):(!this.b&&(this.b=new nu((zt(),_s),Ll,this)),G7(this.b));case 3:return Egt(this);case 4:return!this.a&&(this.a=new zi(d0,this,4)),this.a;case 5:return!this.c&&(this.c=new KS(d0,this,5)),this.c}return qu(this,t-Pn((zt(),Ug)),tn((a=f(dn(this,16),29),a||Ug),t),i,s)},p.Sh=function(t,i,s){var a,c,b;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),xa(this.Ab,t,s);case 3:return this.Cb&&(s=(c=this.Db>>16,c>=0?hEe(this,s):this.Cb.Th(this,-1-c,null,s))),Zye(this,f(t,155),s)}return b=f(tn((a=f(dn(this,16),29),a||(zt(),Ug)),i),69),b.wk().zk(this,ja(this),i-Pn((zt(),Ug)),t,s)},p.Uh=function(t,i,s){var a,c;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),fs(this.Ab,t,s);case 2:return!this.b&&(this.b=new nu((zt(),_s),Ll,this)),sB(this.b,t,s);case 3:return Zye(this,null,s);case 4:return!this.a&&(this.a=new zi(d0,this,4)),fs(this.a,t,s)}return c=f(tn((a=f(dn(this,16),29),a||(zt(),Ug)),i),69),c.wk().Ak(this,ja(this),i-Pn((zt(),Ug)),t,s)},p.Wh=function(t){var i;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.d!=null;case 2:return!!this.b&&this.b.f!=0;case 3:return!!Egt(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return zu(this,t-Pn((zt(),Ug)),tn((i=f(dn(this,16),29),i||Ug),t))},p.bi=function(t,i){var s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return;case 1:Lyn(this,or(i));return;case 2:!this.b&&(this.b=new nu((zt(),_s),Ll,this)),HW(this.b,i);return;case 3:a3t(this,f(i,155));return;case 4:!this.a&&(this.a=new zi(d0,this,4)),Vn(this.a),!this.a&&(this.a=new zi(d0,this,4)),Ii(this.a,f(i,16));return;case 5:!this.c&&(this.c=new KS(d0,this,5)),Vn(this.c),!this.c&&(this.c=new KS(d0,this,5)),Ii(this.c,f(i,16));return}Qu(this,t-Pn((zt(),Ug)),tn((s=f(dn(this,16),29),s||Ug),t),i)},p.ii=function(){return zt(),Ug},p.ki=function(t){var i;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return;case 1:pSe(this,null);return;case 2:!this.b&&(this.b=new nu((zt(),_s),Ll,this)),this.b.c.$b();return;case 3:a3t(this,null);return;case 4:!this.a&&(this.a=new zi(d0,this,4)),Vn(this.a);return;case 5:!this.c&&(this.c=new KS(d0,this,5)),Vn(this.c);return}Yu(this,t-Pn((zt(),Ug)),tn((i=f(dn(this,16),29),i||Ug),t))},p.Ib=function(){return d_t(this)},p.d=null,N(fn,"EAnnotationImpl",519),P(141,721,AAe,pc),p.Gi=function(t,i){t1n(this,t,f(i,44))},p.Wk=function(t,i){return rwn(this,f(t,44),i)},p.$i=function(t){return f(f(this.c,71).$i(t),136)},p.Ii=function(){return f(this.c,71).Ii()},p.Ji=function(){return f(this.c,71).Ji()},p.Ki=function(t){return f(this.c,71).Ki(t)},p.Xk=function(t,i){return sB(this,t,i)},p.Fk=function(t){return f(this.c,79).Fk(t)},p.ak=function(){},p.Qj=function(){return f(this.c,79).Qj()},p.ck=function(t,i,s){var a;return a=f(vu(this.b).wi().si(this.b),136),a.Ci(t),a.Di(i),a.nd(s),a},p.dk=function(){return new S0e(this)},p.Wb=function(t){HW(this,t)},p.Gk=function(){f(this.c,79).Gk()},N(fi,"EcoreEMap",141),P(165,141,AAe,nu),p._j=function(){var t,i,s,a,c,b;if(this.d==null){for(b=Fe(mOe,CAe,66,2*this.f+1,0,1),s=this.c.Kc();s.e!=s.i.gc();)i=f(s.Yj(),136),a=i.Bi(),c=(a&Nr)%b.length,t=b[c],!t&&(t=b[c]=new S0e(this)),t.Fc(i);this.d=b}},N(fn,"EAnnotationImpl/1",165),P(292,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,481:1,54:1,99:1,158:1,292:1,119:1,120:1}),p.Lh=function(t,i,s){var a,c;switch(t){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),this.Ab;case 1:return this.zb;case 2:return cn(),!!(this.Bb&256);case 3:return cn(),!!(this.Bb&512);case 4:return ot(this.s);case 5:return ot(this.t);case 6:return cn(),!!this.Jk();case 7:return cn(),c=this.s,c>=1;case 8:return i?_f(this):this.r;case 9:return this.q}return qu(this,t-Pn(this.ii()),tn((a=f(dn(this,16),29),a||this.ii()),t),i,s)},p.Uh=function(t,i,s){var a,c;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),fs(this.Ab,t,s);case 9:return SZ(this,s)}return c=f(tn((a=f(dn(this,16),29),a||this.ii()),i),69),c.wk().Ak(this,ja(this),i-Pn(this.ii()),t,s)},p.Wh=function(t){var i,s;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Jk();case 7:return s=this.s,s>=1;case 8:return!!this.r&&!this.q.e&&Nm(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Nm(this.q).i==0)}return zu(this,t-Pn(this.ii()),tn((i=f(dn(this,16),29),i||this.ii()),t))},p.bi=function(t,i){var s,a;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return;case 1:this.ui(or(i));return;case 2:_g(this,mt(wt(i)));return;case 3:Sg(this,mt(wt(i)));return;case 4:wg(this,f(i,17).a);return;case 5:this.Zk(f(i,17).a);return;case 8:dw(this,f(i,142));return;case 9:a=oh(this,f(i,89),null),a&&a.oj();return}Qu(this,t-Pn(this.ii()),tn((s=f(dn(this,16),29),s||this.ii()),t),i)},p.ii=function(){return zt(),YDt},p.ki=function(t){var i,s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return;case 1:this.ui(null);return;case 2:_g(this,!0);return;case 3:Sg(this,!0);return;case 4:wg(this,0);return;case 5:this.Zk(1);return;case 8:dw(this,null);return;case 9:s=oh(this,null,null),s&&s.oj();return}Yu(this,t-Pn(this.ii()),tn((i=f(dn(this,16),29),i||this.ii()),t))},p.pi=function(){_f(this),this.Bb|=1},p.Hk=function(){return _f(this)},p.Ik=function(){return this.t},p.Jk=function(){var t;return t=this.t,t>1||t==-1},p.Si=function(){return(this.Bb&512)!=0},p.Yk=function(t,i){return l2e(this,t,i)},p.Zk=function(t){Jv(this,t)},p.Ib=function(){return kke(this)},p.s=0,p.t=1,N(fn,"ETypedElementImpl",292),P(462,292,{110:1,94:1,93:1,155:1,197:1,58:1,179:1,69:1,114:1,481:1,54:1,99:1,158:1,462:1,292:1,119:1,120:1,692:1}),p.Ah=function(t){return t2t(this,t)},p.Lh=function(t,i,s){var a,c;switch(t){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),this.Ab;case 1:return this.zb;case 2:return cn(),!!(this.Bb&256);case 3:return cn(),!!(this.Bb&512);case 4:return ot(this.s);case 5:return ot(this.t);case 6:return cn(),!!this.Jk();case 7:return cn(),c=this.s,c>=1;case 8:return i?_f(this):this.r;case 9:return this.q;case 10:return cn(),!!(this.Bb&sd);case 11:return cn(),!!(this.Bb&E_);case 12:return cn(),!!(this.Bb&g_);case 13:return this.j;case 14:return hA(this);case 15:return cn(),!!(this.Bb&yc);case 16:return cn(),!!(this.Bb&Vh);case 17:return Hv(this)}return qu(this,t-Pn(this.ii()),tn((a=f(dn(this,16),29),a||this.ii()),t),i,s)},p.Sh=function(t,i,s){var a,c,b;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),xa(this.Ab,t,s);case 17:return this.Cb&&(s=(c=this.Db>>16,c>=0?t2t(this,s):this.Cb.Th(this,-1-c,null,s))),xu(this,t,17,s)}return b=f(tn((a=f(dn(this,16),29),a||this.ii()),i),69),b.wk().zk(this,ja(this),i-Pn(this.ii()),t,s)},p.Uh=function(t,i,s){var a,c;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),fs(this.Ab,t,s);case 9:return SZ(this,s);case 17:return xu(this,null,17,s)}return c=f(tn((a=f(dn(this,16),29),a||this.ii()),i),69),c.wk().Ak(this,ja(this),i-Pn(this.ii()),t,s)},p.Wh=function(t){var i,s;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Jk();case 7:return s=this.s,s>=1;case 8:return!!this.r&&!this.q.e&&Nm(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Nm(this.q).i==0);case 10:return(this.Bb&sd)==0;case 11:return(this.Bb&E_)!=0;case 12:return(this.Bb&g_)!=0;case 13:return this.j!=null;case 14:return hA(this)!=null;case 15:return(this.Bb&yc)!=0;case 16:return(this.Bb&Vh)!=0;case 17:return!!Hv(this)}return zu(this,t-Pn(this.ii()),tn((i=f(dn(this,16),29),i||this.ii()),t))},p.bi=function(t,i){var s,a;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return;case 1:XZ(this,or(i));return;case 2:_g(this,mt(wt(i)));return;case 3:Sg(this,mt(wt(i)));return;case 4:wg(this,f(i,17).a);return;case 5:this.Zk(f(i,17).a);return;case 8:dw(this,f(i,142));return;case 9:a=oh(this,f(i,89),null),a&&a.oj();return;case 10:JC(this,mt(wt(i)));return;case 11:ZC(this,mt(wt(i)));return;case 12:YC(this,mt(wt(i)));return;case 13:Zwe(this,or(i));return;case 15:QC(this,mt(wt(i)));return;case 16:eA(this,mt(wt(i)));return}Qu(this,t-Pn(this.ii()),tn((s=f(dn(this,16),29),s||this.ii()),t),i)},p.ii=function(){return zt(),JDt},p.ki=function(t){var i,s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return;case 1:ve(this.Cb,90)&&l_(Bc(f(this.Cb,90)),4),Ra(this,null);return;case 2:_g(this,!0);return;case 3:Sg(this,!0);return;case 4:wg(this,0);return;case 5:this.Zk(1);return;case 8:dw(this,null);return;case 9:s=oh(this,null,null),s&&s.oj();return;case 10:JC(this,!0);return;case 11:ZC(this,!1);return;case 12:YC(this,!1);return;case 13:this.i=null,DW(this,null);return;case 15:QC(this,!1);return;case 16:eA(this,!1);return}Yu(this,t-Pn(this.ii()),tn((i=f(dn(this,16),29),i||this.ii()),t))},p.pi=function(){gC(Vs((gc(),qo),this)),_f(this),this.Bb|=1},p.pk=function(){return this.f},p.ik=function(){return hA(this)},p.qk=function(){return Hv(this)},p.uk=function(){return null},p.$k=function(){return this.k},p.Lj=function(){return this.n},p.vk=function(){return $H(this)},p.wk=function(){var t,i,s,a,c,b,g,m,_;return this.p||(s=Hv(this),(s.i==null&&Gh(s),s.i).length,a=this.uk(),a&&Pn(Hv(a)),c=_f(this),g=c.kk(),t=g?g.i&1?g==Xc?Li:g==Xn?Ko:g==nS?XA:g==Ro?Qi:g==m0?wy:g==mE?my:g==_c?G3:NI:g:null,i=hA(this),m=c.ik(),YCn(this),this.Bb&Vh&&((b=vEe((gc(),qo),s))&&b!=this||(b=a3(Vs(qo,this))))?this.p=new jut(this,b):this.Jk()?this.al()?a?this.Bb&yc?t?this.bl()?this.p=new Z0(47,t,this,a):this.p=new Z0(5,t,this,a):this.bl()?this.p=new iw(46,this,a):this.p=new iw(4,this,a):t?this.bl()?this.p=new Z0(49,t,this,a):this.p=new Z0(7,t,this,a):this.bl()?this.p=new iw(48,this,a):this.p=new iw(6,this,a):this.Bb&yc?t?t==Tw?this.p=new cg(50,PDt,this):this.bl()?this.p=new cg(43,t,this):this.p=new cg(1,t,this):this.bl()?this.p=new fg(42,this):this.p=new fg(0,this):t?t==Tw?this.p=new cg(41,PDt,this):this.bl()?this.p=new cg(45,t,this):this.p=new cg(3,t,this):this.bl()?this.p=new fg(44,this):this.p=new fg(2,this):ve(c,156)?t==Bz?this.p=new fg(40,this):this.Bb&512?this.Bb&yc?t?this.p=new cg(9,t,this):this.p=new fg(8,this):t?this.p=new cg(11,t,this):this.p=new fg(10,this):this.Bb&yc?t?this.p=new cg(13,t,this):this.p=new fg(12,this):t?this.p=new cg(15,t,this):this.p=new fg(14,this):a?(_=a.t,_>1||_==-1?this.bl()?this.Bb&yc?t?this.p=new Z0(25,t,this,a):this.p=new iw(24,this,a):t?this.p=new Z0(27,t,this,a):this.p=new iw(26,this,a):this.Bb&yc?t?this.p=new Z0(29,t,this,a):this.p=new iw(28,this,a):t?this.p=new Z0(31,t,this,a):this.p=new iw(30,this,a):this.bl()?this.Bb&yc?t?this.p=new Z0(33,t,this,a):this.p=new iw(32,this,a):t?this.p=new Z0(35,t,this,a):this.p=new iw(34,this,a):this.Bb&yc?t?this.p=new Z0(37,t,this,a):this.p=new iw(36,this,a):t?this.p=new Z0(39,t,this,a):this.p=new iw(38,this,a)):this.bl()?this.Bb&yc?t?this.p=new cg(17,t,this):this.p=new fg(16,this):t?this.p=new cg(19,t,this):this.p=new fg(18,this):this.Bb&yc?t?this.p=new cg(21,t,this):this.p=new fg(20,this):t?this.p=new cg(23,t,this):this.p=new fg(22,this):this._k()?this.bl()?this.p=new xht(f(c,29),this,a):this.p=new Bve(f(c,29),this,a):ve(c,156)?t==Bz?this.p=new fg(40,this):this.Bb&yc?t?this.p=new Rpt(i,m,this,(Ate(),g==Xn?MOe:g==Xc?$Oe:g==m0?DOe:g==nS?NOe:g==Ro?OOe:g==mE?LOe:g==_c?IOe:g==df?POe:jce)):this.p=new jbt(f(c,156),i,m,this):t?this.p=new kpt(i,m,this,(Ate(),g==Xn?MOe:g==Xc?$Oe:g==m0?DOe:g==nS?NOe:g==Ro?OOe:g==mE?LOe:g==_c?IOe:g==df?POe:jce)):this.p=new Lbt(f(c,156),i,m,this):this.al()?a?this.Bb&yc?this.bl()?this.p=new Aht(f(c,29),this,a):this.p=new Rye(f(c,29),this,a):this.bl()?this.p=new Cht(f(c,29),this,a):this.p=new eZ(f(c,29),this,a):this.Bb&yc?this.bl()?this.p=new kdt(f(c,29),this):this.p=new Fme(f(c,29),this):this.bl()?this.p=new Edt(f(c,29),this):this.p=new WQ(f(c,29),this):this.bl()?a?this.Bb&yc?this.p=new Tht(f(c,29),this,a):this.p=new Eye(f(c,29),this,a):this.Bb&yc?this.p=new Rdt(f(c,29),this):this.p=new Bme(f(c,29),this):a?this.Bb&yc?this.p=new $ht(f(c,29),this,a):this.p=new kye(f(c,29),this,a):this.Bb&yc?this.p=new xdt(f(c,29),this):this.p=new EB(f(c,29),this)),this.p},p.rk=function(){return(this.Bb&sd)!=0},p._k=function(){return!1},p.al=function(){return!1},p.sk=function(){return(this.Bb&Vh)!=0},p.xk=function(){return kee(this)},p.bl=function(){return!1},p.tk=function(){return(this.Bb&yc)!=0},p.cl=function(t){this.k=t},p.ui=function(t){XZ(this,t)},p.Ib=function(){return YH(this)},p.e=!1,p.n=0,N(fn,"EStructuralFeatureImpl",462),P(331,462,{110:1,94:1,93:1,35:1,155:1,197:1,58:1,179:1,69:1,114:1,481:1,54:1,99:1,331:1,158:1,462:1,292:1,119:1,120:1,692:1},_Y),p.Lh=function(t,i,s){var a,c;switch(t){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),this.Ab;case 1:return this.zb;case 2:return cn(),!!(this.Bb&256);case 3:return cn(),!!(this.Bb&512);case 4:return ot(this.s);case 5:return ot(this.t);case 6:return cn(),!!mke(this);case 7:return cn(),c=this.s,c>=1;case 8:return i?_f(this):this.r;case 9:return this.q;case 10:return cn(),!!(this.Bb&sd);case 11:return cn(),!!(this.Bb&E_);case 12:return cn(),!!(this.Bb&g_);case 13:return this.j;case 14:return hA(this);case 15:return cn(),!!(this.Bb&yc);case 16:return cn(),!!(this.Bb&Vh);case 17:return Hv(this);case 18:return cn(),!!(this.Bb&Vl);case 19:return i?qee(this):W0t(this)}return qu(this,t-Pn((zt(),Z_)),tn((a=f(dn(this,16),29),a||Z_),t),i,s)},p.Wh=function(t){var i,s;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return mke(this);case 7:return s=this.s,s>=1;case 8:return!!this.r&&!this.q.e&&Nm(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Nm(this.q).i==0);case 10:return(this.Bb&sd)==0;case 11:return(this.Bb&E_)!=0;case 12:return(this.Bb&g_)!=0;case 13:return this.j!=null;case 14:return hA(this)!=null;case 15:return(this.Bb&yc)!=0;case 16:return(this.Bb&Vh)!=0;case 17:return!!Hv(this);case 18:return(this.Bb&Vl)!=0;case 19:return!!W0t(this)}return zu(this,t-Pn((zt(),Z_)),tn((i=f(dn(this,16),29),i||Z_),t))},p.bi=function(t,i){var s,a;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return;case 1:XZ(this,or(i));return;case 2:_g(this,mt(wt(i)));return;case 3:Sg(this,mt(wt(i)));return;case 4:wg(this,f(i,17).a);return;case 5:iat(this,f(i,17).a);return;case 8:dw(this,f(i,142));return;case 9:a=oh(this,f(i,89),null),a&&a.oj();return;case 10:JC(this,mt(wt(i)));return;case 11:ZC(this,mt(wt(i)));return;case 12:YC(this,mt(wt(i)));return;case 13:Zwe(this,or(i));return;case 15:QC(this,mt(wt(i)));return;case 16:eA(this,mt(wt(i)));return;case 18:vte(this,mt(wt(i)));return}Qu(this,t-Pn((zt(),Z_)),tn((s=f(dn(this,16),29),s||Z_),t),i)},p.ii=function(){return zt(),Z_},p.ki=function(t){var i,s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return;case 1:ve(this.Cb,90)&&l_(Bc(f(this.Cb,90)),4),Ra(this,null);return;case 2:_g(this,!0);return;case 3:Sg(this,!0);return;case 4:wg(this,0);return;case 5:this.b=0,Jv(this,1);return;case 8:dw(this,null);return;case 9:s=oh(this,null,null),s&&s.oj();return;case 10:JC(this,!0);return;case 11:ZC(this,!1);return;case 12:YC(this,!1);return;case 13:this.i=null,DW(this,null);return;case 15:QC(this,!1);return;case 16:eA(this,!1);return;case 18:vte(this,!1);return}Yu(this,t-Pn((zt(),Z_)),tn((i=f(dn(this,16),29),i||Z_),t))},p.pi=function(){qee(this),gC(Vs((gc(),qo),this)),_f(this),this.Bb|=1},p.Jk=function(){return mke(this)},p.Yk=function(t,i){return this.b=0,this.a=null,l2e(this,t,i)},p.Zk=function(t){iat(this,t)},p.Ib=function(){var t;return this.Db&64?YH(this):(t=new wf(YH(this)),t.a+=" (iD: ",og(t,(this.Bb&Vl)!=0),t.a+=")",t.a)},p.b=0,N(fn,"EAttributeImpl",331),P(364,448,{110:1,94:1,93:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,364:1,158:1,119:1,120:1,691:1}),p.dl=function(t){return t.Dh()==this},p.Ah=function(t){return Zte(this,t)},p.Bh=function(t,i){this.w=null,this.Db=i<<16|this.Db&255,this.Cb=t},p.Lh=function(t,i,s){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return ty(this);case 4:return this.ik();case 5:return this.F;case 6:return i?vu(this):yC(this);case 7:return!this.A&&(this.A=new uc(Ga,this,7)),this.A}return qu(this,t-Pn(this.ii()),tn((a=f(dn(this,16),29),a||this.ii()),t),i,s)},p.Sh=function(t,i,s){var a,c,b;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),xa(this.Ab,t,s);case 6:return this.Cb&&(s=(c=this.Db>>16,c>=0?Zte(this,s):this.Cb.Th(this,-1-c,null,s))),xu(this,t,6,s)}return b=f(tn((a=f(dn(this,16),29),a||this.ii()),i),69),b.wk().zk(this,ja(this),i-Pn(this.ii()),t,s)},p.Uh=function(t,i,s){var a,c;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),fs(this.Ab,t,s);case 6:return xu(this,null,6,s);case 7:return!this.A&&(this.A=new uc(Ga,this,7)),fs(this.A,t,s)}return c=f(tn((a=f(dn(this,16),29),a||this.ii()),i),69),c.wk().Ak(this,ja(this),i-Pn(this.ii()),t,s)},p.Wh=function(t){var i;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!ty(this);case 4:return this.ik()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!yC(this);case 7:return!!this.A&&this.A.i!=0}return zu(this,t-Pn(this.ii()),tn((i=f(dn(this,16),29),i||this.ii()),t))},p.bi=function(t,i){var s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return;case 1:QB(this,or(i));return;case 2:CQ(this,or(i));return;case 5:vA(this,or(i));return;case 7:!this.A&&(this.A=new uc(Ga,this,7)),Vn(this.A),!this.A&&(this.A=new uc(Ga,this,7)),Ii(this.A,f(i,16));return}Qu(this,t-Pn(this.ii()),tn((s=f(dn(this,16),29),s||this.ii()),t),i)},p.ii=function(){return zt(),GDt},p.ki=function(t){var i;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return;case 1:ve(this.Cb,184)&&(f(this.Cb,184).tb=null),Ra(this,null);return;case 2:KC(this,null),PC(this,this.D);return;case 5:vA(this,null);return;case 7:!this.A&&(this.A=new uc(Ga,this,7)),Vn(this.A);return}Yu(this,t-Pn(this.ii()),tn((i=f(dn(this,16),29),i||this.ii()),t))},p.hk=function(){var t;return this.G==-1&&(this.G=(t=vu(this),t?Rg(t.vi(),this):-1)),this.G},p.ik=function(){return null},p.jk=function(){return vu(this)},p.el=function(){return this.v},p.kk=function(){return ty(this)},p.lk=function(){return this.D!=null?this.D:this.B},p.mk=function(){return this.F},p.fk=function(t){return Une(this,t)},p.fl=function(t){this.v=t},p.gl=function(t){Ryt(this,t)},p.hl=function(t){this.C=t},p.ui=function(t){QB(this,t)},p.Ib=function(){return sH(this)},p.C=null,p.D=null,p.G=-1,N(fn,"EClassifierImpl",364),P(90,364,{110:1,94:1,93:1,29:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,90:1,364:1,158:1,482:1,119:1,120:1,691:1},G1e),p.dl=function(t){return B0n(this,t.Dh())},p.Lh=function(t,i,s){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return ty(this);case 4:return null;case 5:return this.F;case 6:return i?vu(this):yC(this);case 7:return!this.A&&(this.A=new uc(Ga,this,7)),this.A;case 8:return cn(),!!(this.Bb&256);case 9:return cn(),!!(this.Bb&512);case 10:return rl(this);case 11:return!this.q&&(this.q=new qe(Of,this,11,10)),this.q;case 12:return v2(this);case 13:return Y6(this);case 14:return Y6(this),this.r;case 15:return v2(this),this.k;case 16:return lke(this);case 17:return Kne(this);case 18:return Gh(this);case 19:return HH(this);case 20:return v2(this),this.o;case 21:return!this.s&&(this.s=new qe(rc,this,21,17)),this.s;case 22:return ra(this);case 23:return One(this)}return qu(this,t-Pn((zt(),p0)),tn((a=f(dn(this,16),29),a||p0),t),i,s)},p.Sh=function(t,i,s){var a,c,b;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),xa(this.Ab,t,s);case 6:return this.Cb&&(s=(c=this.Db>>16,c>=0?Zte(this,s):this.Cb.Th(this,-1-c,null,s))),xu(this,t,6,s);case 11:return!this.q&&(this.q=new qe(Of,this,11,10)),xa(this.q,t,s);case 21:return!this.s&&(this.s=new qe(rc,this,21,17)),xa(this.s,t,s)}return b=f(tn((a=f(dn(this,16),29),a||(zt(),p0)),i),69),b.wk().zk(this,ja(this),i-Pn((zt(),p0)),t,s)},p.Uh=function(t,i,s){var a,c;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),fs(this.Ab,t,s);case 6:return xu(this,null,6,s);case 7:return!this.A&&(this.A=new uc(Ga,this,7)),fs(this.A,t,s);case 11:return!this.q&&(this.q=new qe(Of,this,11,10)),fs(this.q,t,s);case 21:return!this.s&&(this.s=new qe(rc,this,21,17)),fs(this.s,t,s);case 22:return fs(ra(this),t,s)}return c=f(tn((a=f(dn(this,16),29),a||(zt(),p0)),i),69),c.wk().Ak(this,ja(this),i-Pn((zt(),p0)),t,s)},p.Wh=function(t){var i;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!ty(this);case 4:return!1;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!yC(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)!=0;case 9:return(this.Bb&512)!=0;case 10:return!!this.u&&ra(this.u.a).i!=0&&!(this.n&&Hte(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return v2(this).i!=0;case 13:return Y6(this).i!=0;case 14:return Y6(this),this.r.i!=0;case 15:return v2(this),this.k.i!=0;case 16:return lke(this).i!=0;case 17:return Kne(this).i!=0;case 18:return Gh(this).i!=0;case 19:return HH(this).i!=0;case 20:return v2(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&Hte(this.n);case 23:return One(this).i!=0}return zu(this,t-Pn((zt(),p0)),tn((i=f(dn(this,16),29),i||p0),t))},p.Zh=function(t){var i;return i=this.i==null||this.q&&this.q.i!=0?null:VN(this,t),i||U3e(this,t)},p.bi=function(t,i){var s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return;case 1:QB(this,or(i));return;case 2:CQ(this,or(i));return;case 5:vA(this,or(i));return;case 7:!this.A&&(this.A=new uc(Ga,this,7)),Vn(this.A),!this.A&&(this.A=new uc(Ga,this,7)),Ii(this.A,f(i,16));return;case 8:a2e(this,mt(wt(i)));return;case 9:c2e(this,mt(wt(i)));return;case 10:eI(rl(this)),Ii(rl(this),f(i,16));return;case 11:!this.q&&(this.q=new qe(Of,this,11,10)),Vn(this.q),!this.q&&(this.q=new qe(Of,this,11,10)),Ii(this.q,f(i,16));return;case 21:!this.s&&(this.s=new qe(rc,this,21,17)),Vn(this.s),!this.s&&(this.s=new qe(rc,this,21,17)),Ii(this.s,f(i,16));return;case 22:Vn(ra(this)),Ii(ra(this),f(i,16));return}Qu(this,t-Pn((zt(),p0)),tn((s=f(dn(this,16),29),s||p0),t),i)},p.ii=function(){return zt(),p0},p.ki=function(t){var i;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return;case 1:ve(this.Cb,184)&&(f(this.Cb,184).tb=null),Ra(this,null);return;case 2:KC(this,null),PC(this,this.D);return;case 5:vA(this,null);return;case 7:!this.A&&(this.A=new uc(Ga,this,7)),Vn(this.A);return;case 8:a2e(this,!1);return;case 9:c2e(this,!1);return;case 10:this.u&&eI(this.u);return;case 11:!this.q&&(this.q=new qe(Of,this,11,10)),Vn(this.q);return;case 21:!this.s&&(this.s=new qe(rc,this,21,17)),Vn(this.s);return;case 22:this.n&&Vn(this.n);return}Yu(this,t-Pn((zt(),p0)),tn((i=f(dn(this,16),29),i||p0),t))},p.pi=function(){var t,i;if(v2(this),Y6(this),lke(this),Kne(this),Gh(this),HH(this),One(this),s6(dyn(Bc(this))),this.s)for(t=0,i=this.s.i;t=0;--i)Se(this,i);return O2e(this,t)},p.Gk=function(){Vn(this)},p.Zi=function(t,i){return Kmt(this,t,i)},N(fi,"EcoreEList",632),P(505,632,hl,E7),p.Li=function(){return!1},p.Lj=function(){return this.c},p.Mj=function(){return!1},p.ol=function(){return!0},p.Si=function(){return!0},p.Wi=function(t,i){return i},p.Yi=function(){return!1},p.c=0,N(fi,"EObjectEList",505),P(83,505,hl,zi),p.Mj=function(){return!0},p.ml=function(){return!1},p.al=function(){return!0},N(fi,"EObjectContainmentEList",83),P(555,83,hl,YF),p.Ni=function(){this.b=!0},p.Qj=function(){return this.b},p.Gk=function(){var t;Vn(this),eu(this.e)?(t=this.b,this.b=!1,Dr(this.e,new ed(this.e,2,this.c,t,!1))):this.b=!1},p.b=!1,N(fi,"EObjectContainmentEList/Unsettable",555),P(1161,555,hl,Spt),p.Ti=function(t,i){var s,a;return s=f(R6(this,t,i),89),eu(this.e)&&Ux(this,new V7(this.a,7,(zt(),VDt),ot(i),(a=s.c,ve(a,90)?f(a,29):Mf),t)),s},p.Uj=function(t,i){return OAn(this,f(t,89),i)},p.Vj=function(t,i){return PAn(this,f(t,89),i)},p.Wj=function(t,i,s){return D$n(this,f(t,89),f(i,89),s)},p.Ij=function(t,i,s,a,c){switch(t){case 3:return e6(this,t,i,s,a,this.i>1);case 5:return e6(this,t,i,s,a,this.i-f(s,15).gc()>0);default:return new gb(this.e,t,this.c,i,s,a,!0)}},p.Tj=function(){return!0},p.Qj=function(){return Hte(this)},p.Gk=function(){Vn(this)},N(fn,"EClassImpl/1",1161),P(1175,1174,xAe),p.dj=function(t){var i,s,a,c,b,g,m;if(s=t.gj(),s!=8){if(a=p4n(t),a==0)switch(s){case 1:case 9:{m=t.kj(),m!=null&&(i=Bc(f(m,482)),!i.c&&(i.c=new Dx),vW(i.c,t.jj())),g=t.ij(),g!=null&&(c=f(g,482),c.Bb&1||(i=Bc(c),!i.c&&(i.c=new Dx),zn(i.c,f(t.jj(),29))));break}case 3:{g=t.ij(),g!=null&&(c=f(g,482),c.Bb&1||(i=Bc(c),!i.c&&(i.c=new Dx),zn(i.c,f(t.jj(),29))));break}case 5:{if(g=t.ij(),g!=null)for(b=f(g,16).Kc();b.Ob();)c=f(b.Pb(),482),c.Bb&1||(i=Bc(c),!i.c&&(i.c=new Dx),zn(i.c,f(t.jj(),29)));break}case 4:{m=t.kj(),m!=null&&(c=f(m,482),c.Bb&1||(i=Bc(c),!i.c&&(i.c=new Dx),vW(i.c,t.jj())));break}case 6:{if(m=t.kj(),m!=null)for(b=f(m,16).Kc();b.Ob();)c=f(b.Pb(),482),c.Bb&1||(i=Bc(c),!i.c&&(i.c=new Dx),vW(i.c,t.jj()));break}}this.ql(a)}},p.ql=function(t){q3t(this,t)},p.b=63,N(fn,"ESuperAdapter",1175),P(1176,1175,xAe,Sst),p.ql=function(t){l_(this,t)},N(fn,"EClassImpl/10",1176),P(1165,710,hl),p.Ei=function(t,i){return fne(this,t,i)},p.Fi=function(t){return LSt(this,t)},p.Gi=function(t,i){mN(this,t,i)},p.Hi=function(t){W7(this,t)},p.$i=function(t){return j_e(this,t)},p.Xi=function(t,i){return Ree(this,t,i)},p.Wk=function(t,i){throw ne(new rr)},p.Ii=function(){return new qk(this)},p.Ji=function(){return new f7(this)},p.Ki=function(t){return rN(this,t)},p.Xk=function(t,i){throw ne(new rr)},p.Fk=function(t){return this},p.Qj=function(){return this.i!=0},p.Wb=function(t){throw ne(new rr)},p.Gk=function(){throw ne(new rr)},N(fi,"EcoreEList/UnmodifiableEList",1165),P(328,1165,hl,WS),p.Yi=function(){return!1},N(fi,"EcoreEList/UnmodifiableEList/FastCompare",328),P(1168,328,hl,mvt),p.dd=function(t){var i,s,a;if(ve(t,179)&&(i=f(t,179),s=i.Lj(),s!=-1)){for(a=this.i;s4)if(this.fk(t)){if(this.al()){if(a=f(t,54),s=a.Eh(),m=s==this.b&&(this.ml()?a.yh(a.Fh(),f(tn(Xa(this.b),this.Lj()).Hk(),29).kk())==Es(f(tn(Xa(this.b),this.Lj()),19)).n:-1-a.Fh()==this.Lj()),this.nl()&&!m&&!s&&a.Jh()){for(c=0;c<_;++c)if(i=wZ(this,this.xj(c)),Oe(i)===Oe(t))return!0}return m}else if(this.ml()&&!this.ll()){if(b=f(t,58).Mh(Es(f(tn(Xa(this.b),this.Lj()),19))),Oe(b)===Oe(this.b))return!0;if(b==null||!f(b,58).Vh())return!1}}else return!1;if(g=this.uj(t),this.nl()&&!g){for(c=0;c<_;++c)if(a=wZ(this,this.xj(c)),Oe(a)===Oe(t))return!0}return g}else return this.uj(t)},p.Ij=function(t,i,s,a,c){return new gb(this.b,t,this.Lj(),i,s,a,c)},p.Jj=function(t){Dr(this.b,t)},p.Fk=function(t){return this},p.Kj=function(){return tn(Xa(this.b),this.Lj())},p.Lj=function(){return yi(Xa(this.b),tn(Xa(this.b),this.Lj()))},p.jj=function(){return this.b},p.kl=function(){return!!tn(Xa(this.b),this.Lj()).Hk().kk()},p.Mj=function(){var t,i;return i=tn(Xa(this.b),this.Lj()),ve(i,102)?(t=f(i,19),(t.Bb&Vl)!=0||!!Es(f(i,19))):!1},p.ll=function(){var t,i,s,a;return i=tn(Xa(this.b),this.Lj()),ve(i,102)?(t=f(i,19),s=Es(t),!!s&&(a=s.t,a>1||a==-1)):!1},p.ml=function(){var t,i,s;return i=tn(Xa(this.b),this.Lj()),ve(i,102)?(t=f(i,19),s=Es(t),!!s):!1},p.nl=function(){var t,i;return i=tn(Xa(this.b),this.Lj()),ve(i,102)?(t=f(i,19),(t.Bb&ys)!=0):!1},p.dd=function(t){var i,s,a,c;if(a=this.zj(t),a>=0)return a;if(this.ol()){for(s=0,c=this.Ej();s=0;--t)tM(this,t,this.xj(t));return this.Fj()},p.Qc=function(t){var i;if(this.nl())for(i=this.Ej()-1;i>=0;--i)tM(this,i,this.xj(i));return this.Gj(t)},p.Gk=function(){eI(this)},p.Zi=function(t,i){return kwt(this,t,i)},N(fi,"DelegatingEcoreEList",756),P(1171,756,$Ae,jdt),p.qj=function(t,i){u0n(this,t,f(i,29))},p.rj=function(t){Qgn(this,f(t,29))},p.xj=function(t){var i,s;return i=f(Se(ra(this.a),t),89),s=i.c,ve(s,90)?f(s,29):(zt(),Mf)},p.Cj=function(t){var i,s;return i=f(u_(ra(this.a),t),89),s=i.c,ve(s,90)?f(s,29):(zt(),Mf)},p.Dj=function(t,i){return lTn(this,t,f(i,29))},p.Li=function(){return!1},p.Ij=function(t,i,s,a,c){return null},p.sj=function(){return new Rst(this)},p.tj=function(){Vn(ra(this.a))},p.uj=function(t){return p_t(this,t)},p.vj=function(t){var i,s;for(s=t.Kc();s.Ob();)if(i=s.Pb(),!p_t(this,i))return!1;return!0},p.wj=function(t){var i,s,a;if(ve(t,15)&&(a=f(t,15),a.gc()==ra(this.a).i)){for(i=a.Kc(),s=new Sn(this);i.Ob();)if(Oe(i.Pb())!==Oe(Cn(s)))return!1;return!0}return!1},p.yj=function(){var t,i,s,a,c;for(s=1,i=new Sn(ra(this.a));i.e!=i.i.gc();)t=f(Cn(i),89),a=(c=t.c,ve(c,90)?f(c,29):(zt(),Mf)),s=31*s+(a?xm(a):0);return s},p.zj=function(t){var i,s,a,c;for(a=0,s=new Sn(ra(this.a));s.e!=s.i.gc();){if(i=f(Cn(s),89),Oe(t)===Oe((c=i.c,ve(c,90)?f(c,29):(zt(),Mf))))return a;++a}return-1},p.Aj=function(){return ra(this.a).i==0},p.Bj=function(){return null},p.Ej=function(){return ra(this.a).i},p.Fj=function(){var t,i,s,a,c,b;for(b=ra(this.a).i,c=Fe(ho,on,1,b,5,1),s=0,i=new Sn(ra(this.a));i.e!=i.i.gc();)t=f(Cn(i),89),c[s++]=(a=t.c,ve(a,90)?f(a,29):(zt(),Mf));return c},p.Gj=function(t){var i,s,a,c,b,g,m;for(m=ra(this.a).i,t.lengthm&&Ci(t,m,null),a=0,s=new Sn(ra(this.a));s.e!=s.i.gc();)i=f(Cn(s),89),b=(g=i.c,ve(g,90)?f(g,29):(zt(),Mf)),Ci(t,a++,b);return t},p.Hj=function(){var t,i,s,a,c;for(c=new ig,c.a+="[",t=ra(this.a),i=0,a=ra(this.a).i;i>16,c>=0?Zte(this,s):this.Cb.Th(this,-1-c,null,s))),xu(this,t,6,s);case 9:return!this.a&&(this.a=new qe(Db,this,9,5)),xa(this.a,t,s)}return b=f(tn((a=f(dn(this,16),29),a||(zt(),b0)),i),69),b.wk().zk(this,ja(this),i-Pn((zt(),b0)),t,s)},p.Uh=function(t,i,s){var a,c;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),fs(this.Ab,t,s);case 6:return xu(this,null,6,s);case 7:return!this.A&&(this.A=new uc(Ga,this,7)),fs(this.A,t,s);case 9:return!this.a&&(this.a=new qe(Db,this,9,5)),fs(this.a,t,s)}return c=f(tn((a=f(dn(this,16),29),a||(zt(),b0)),i),69),c.wk().Ak(this,ja(this),i-Pn((zt(),b0)),t,s)},p.Wh=function(t){var i;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!ty(this);case 4:return!!JSe(this);case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!yC(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0;case 9:return!!this.a&&this.a.i!=0}return zu(this,t-Pn((zt(),b0)),tn((i=f(dn(this,16),29),i||b0),t))},p.bi=function(t,i){var s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return;case 1:QB(this,or(i));return;case 2:CQ(this,or(i));return;case 5:vA(this,or(i));return;case 7:!this.A&&(this.A=new uc(Ga,this,7)),Vn(this.A),!this.A&&(this.A=new uc(Ga,this,7)),Ii(this.A,f(i,16));return;case 8:eH(this,mt(wt(i)));return;case 9:!this.a&&(this.a=new qe(Db,this,9,5)),Vn(this.a),!this.a&&(this.a=new qe(Db,this,9,5)),Ii(this.a,f(i,16));return}Qu(this,t-Pn((zt(),b0)),tn((s=f(dn(this,16),29),s||b0),t),i)},p.ii=function(){return zt(),b0},p.ki=function(t){var i;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return;case 1:ve(this.Cb,184)&&(f(this.Cb,184).tb=null),Ra(this,null);return;case 2:KC(this,null),PC(this,this.D);return;case 5:vA(this,null);return;case 7:!this.A&&(this.A=new uc(Ga,this,7)),Vn(this.A);return;case 8:eH(this,!0);return;case 9:!this.a&&(this.a=new qe(Db,this,9,5)),Vn(this.a);return}Yu(this,t-Pn((zt(),b0)),tn((i=f(dn(this,16),29),i||b0),t))},p.pi=function(){var t,i;if(this.a)for(t=0,i=this.a.i;t>16==5?f(this.Cb,685):null}return qu(this,t-Pn((zt(),Gg)),tn((a=f(dn(this,16),29),a||Gg),t),i,s)},p.Sh=function(t,i,s){var a,c,b;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),xa(this.Ab,t,s);case 5:return this.Cb&&(s=(c=this.Db>>16,c>=0?u2t(this,s):this.Cb.Th(this,-1-c,null,s))),xu(this,t,5,s)}return b=f(tn((a=f(dn(this,16),29),a||(zt(),Gg)),i),69),b.wk().zk(this,ja(this),i-Pn((zt(),Gg)),t,s)},p.Uh=function(t,i,s){var a,c;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),fs(this.Ab,t,s);case 5:return xu(this,null,5,s)}return c=f(tn((a=f(dn(this,16),29),a||(zt(),Gg)),i),69),c.wk().Ak(this,ja(this),i-Pn((zt(),Gg)),t,s)},p.Wh=function(t){var i;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.d!=0;case 3:return!!this.b;case 4:return this.c!=null;case 5:return!!(this.Db>>16==5&&f(this.Cb,685))}return zu(this,t-Pn((zt(),Gg)),tn((i=f(dn(this,16),29),i||Gg),t))},p.bi=function(t,i){var s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return;case 1:Ra(this,or(i));return;case 2:Iee(this,f(i,17).a);return;case 3:lkt(this,f(i,2039));return;case 4:Oee(this,or(i));return}Qu(this,t-Pn((zt(),Gg)),tn((s=f(dn(this,16),29),s||Gg),t),i)},p.ii=function(){return zt(),Gg},p.ki=function(t){var i;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return;case 1:Ra(this,null);return;case 2:Iee(this,0);return;case 3:lkt(this,null);return;case 4:Oee(this,null);return}Yu(this,t-Pn((zt(),Gg)),tn((i=f(dn(this,16),29),i||Gg),t))},p.Ib=function(){var t;return t=this.c,t??this.zb},p.b=null,p.c=null,p.d=0,N(fn,"EEnumLiteralImpl",582);var FFn=Ei(fn,"EFactoryImpl/InternalEDateTimeFormat");P(499,1,{2114:1},OO),N(fn,"EFactoryImpl/1ClientInternalEDateTimeFormat",499),P(248,120,{110:1,94:1,93:1,89:1,58:1,114:1,54:1,99:1,248:1,119:1,120:1},fm),p.Ch=function(t,i,s){var a;return s=xu(this,t,i,s),this.e&&ve(t,179)&&(a=WH(this,this.e),a!=this.c&&(s=_A(this,a,s))),s},p.Lh=function(t,i,s){var a;switch(t){case 0:return this.f;case 1:return!this.d&&(this.d=new zi(Os,this,1)),this.d;case 2:return i?eU(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return i?Vte(this):this.a}return qu(this,t-Pn((zt(),Ly)),tn((a=f(dn(this,16),29),a||Ly),t),i,s)},p.Uh=function(t,i,s){var a,c;switch(i){case 0:return t_t(this,null,s);case 1:return!this.d&&(this.d=new zi(Os,this,1)),fs(this.d,t,s);case 3:return n_t(this,null,s)}return c=f(tn((a=f(dn(this,16),29),a||(zt(),Ly)),i),69),c.wk().Ak(this,ja(this),i-Pn((zt(),Ly)),t,s)},p.Wh=function(t){var i;switch(t){case 0:return!!this.f;case 1:return!!this.d&&this.d.i!=0;case 2:return!!this.c;case 3:return!!this.b;case 4:return!!this.e;case 5:return!!this.a}return zu(this,t-Pn((zt(),Ly)),tn((i=f(dn(this,16),29),i||Ly),t))},p.bi=function(t,i){var s;switch(t){case 0:T2t(this,f(i,89));return;case 1:!this.d&&(this.d=new zi(Os,this,1)),Vn(this.d),!this.d&&(this.d=new zi(Os,this,1)),Ii(this.d,f(i,16));return;case 3:AEe(this,f(i,89));return;case 4:KEe(this,f(i,850));return;case 5:CC(this,f(i,142));return}Qu(this,t-Pn((zt(),Ly)),tn((s=f(dn(this,16),29),s||Ly),t),i)},p.ii=function(){return zt(),Ly},p.ki=function(t){var i;switch(t){case 0:T2t(this,null);return;case 1:!this.d&&(this.d=new zi(Os,this,1)),Vn(this.d);return;case 3:AEe(this,null);return;case 4:KEe(this,null);return;case 5:CC(this,null);return}Yu(this,t-Pn((zt(),Ly)),tn((i=f(dn(this,16),29),i||Ly),t))},p.Ib=function(){var t;return t=new gu(rd(this)),t.a+=" (expression: ",Zne(this,t),t.a+=")",t.a};var TOe;N(fn,"EGenericTypeImpl",248),P(2067,2062,aG),p.Gi=function(t,i){Mdt(this,t,i)},p.Wk=function(t,i){return Mdt(this,this.gc(),t),i},p.$i=function(t){return tf(this.pj(),t)},p.Ii=function(){return this.Ji()},p.pj=function(){return new Tst(this)},p.Ji=function(){return this.Ki(0)},p.Ki=function(t){return this.pj().fd(t)},p.Xk=function(t,i){return e_(this,t,!0),i},p.Ti=function(t,i){var s,a;return a=nne(this,i),s=this.fd(t),s.Rb(a),a},p.Ui=function(t,i){var s;e_(this,i,!0),s=this.fd(t),s.Rb(i)},N(fi,"AbstractSequentialInternalEList",2067),P(496,2067,aG,u7),p.$i=function(t){return tf(this.pj(),t)},p.Ii=function(){return this.b==null?(lg(),lg(),Y9):this.sl()},p.pj=function(){return new eft(this.a,this.b)},p.Ji=function(){return this.b==null?(lg(),lg(),Y9):this.sl()},p.Ki=function(t){var i,s;if(this.b==null){if(t<0||t>1)throw ne(new Hs(kI+t+", size=0"));return lg(),lg(),Y9}for(s=this.sl(),i=0;i0;)if(i=this.c[--this.d],(!this.e||i.pk()!=$4||i.Lj()!=0)&&(!this.vl()||this.b.Xh(i))){if(b=this.b.Nh(i,this.ul()),this.f=(Ss(),f(i,69).xk()),this.f||i.Jk()){if(this.ul()?(a=f(b,15),this.k=a):(a=f(b,71),this.k=this.j=a),ve(this.k,59)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j.Ki(this.k.gc()):this.k.fd(this.k.gc()),this.p?EEt(this,this.p):NEt(this))return c=this.p?this.p.Ub():this.j?this.j.$i(--this.n):this.k.Xb(--this.n),this.f?(t=f(c,76),t.Lk(),s=t.md(),this.i=s):(s=c,this.i=s),this.g=-3,!0}else if(b!=null)return this.k=null,this.p=null,s=b,this.i=s,this.g=-2,!0}return this.k=null,this.p=null,this.g=-1,!1}else return c=this.p?this.p.Ub():this.j?this.j.$i(--this.n):this.k.Xb(--this.n),this.f?(t=f(c,76),t.Lk(),s=t.md(),this.i=s):(s=c,this.i=s),this.g=-3,!0}},p.Pb=function(){return VW(this)},p.Tb=function(){return this.a},p.Ub=function(){var t;if(this.g<-1||this.Sb())return--this.a,this.g=0,t=this.i,this.Sb(),t;throw ne(new yl)},p.Vb=function(){return this.a-1},p.Qb=function(){throw ne(new rr)},p.ul=function(){return!1},p.Wb=function(t){throw ne(new rr)},p.vl=function(){return!0},p.a=0,p.d=0,p.f=!1,p.g=0,p.n=0,p.o=0;var Y9;N(fi,"EContentsEList/FeatureIteratorImpl",287),P(711,287,cG,jme),p.ul=function(){return!0},N(fi,"EContentsEList/ResolvingFeatureIteratorImpl",711),P(1178,711,cG,vdt),p.vl=function(){return!1},N(fn,"ENamedElementImpl/1/1",1178),P(1179,287,cG,_dt),p.vl=function(){return!1},N(fn,"ENamedElementImpl/1/2",1179),P(39,152,OM,Vv,nee,yo,wee,gb,ed,Y_e,e1t,Q_e,t1t,b_e,n1t,tSe,r1t,g_e,i1t,Z_e,o1t,K$,V7,LZ,eSe,s1t,w_e,l1t),p.Kj=function(){return N_e(this)},p.Rj=function(){var t;return t=N_e(this),t?t.ik():null},p.hj=function(t){return this.b==-1&&this.a&&(this.b=this.c.Hh(this.a.Lj(),this.a.pk())),this.c.yh(this.b,t)},p.jj=function(){return this.c},p.Sj=function(){var t;return t=N_e(this),t?t.tk():!1},p.b=-1,N(fn,"ENotificationImpl",39),P(411,292,{110:1,94:1,93:1,155:1,197:1,58:1,62:1,114:1,481:1,54:1,99:1,158:1,411:1,292:1,119:1,120:1},SY),p.Ah=function(t){return h2t(this,t)},p.Lh=function(t,i,s){var a,c,b;switch(t){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),this.Ab;case 1:return this.zb;case 2:return cn(),!!(this.Bb&256);case 3:return cn(),!!(this.Bb&512);case 4:return ot(this.s);case 5:return ot(this.t);case 6:return cn(),b=this.t,b>1||b==-1;case 7:return cn(),c=this.s,c>=1;case 8:return i?_f(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?f(this.Cb,29):null;case 11:return!this.d&&(this.d=new uc(Ga,this,11)),this.d;case 12:return!this.c&&(this.c=new qe(Dy,this,12,10)),this.c;case 13:return!this.a&&(this.a=new b7(this,this)),this.a;case 14:return Wc(this)}return qu(this,t-Pn((zt(),Vg)),tn((a=f(dn(this,16),29),a||Vg),t),i,s)},p.Sh=function(t,i,s){var a,c,b;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),xa(this.Ab,t,s);case 10:return this.Cb&&(s=(c=this.Db>>16,c>=0?h2t(this,s):this.Cb.Th(this,-1-c,null,s))),xu(this,t,10,s);case 12:return!this.c&&(this.c=new qe(Dy,this,12,10)),xa(this.c,t,s)}return b=f(tn((a=f(dn(this,16),29),a||(zt(),Vg)),i),69),b.wk().zk(this,ja(this),i-Pn((zt(),Vg)),t,s)},p.Uh=function(t,i,s){var a,c;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),fs(this.Ab,t,s);case 9:return SZ(this,s);case 10:return xu(this,null,10,s);case 11:return!this.d&&(this.d=new uc(Ga,this,11)),fs(this.d,t,s);case 12:return!this.c&&(this.c=new qe(Dy,this,12,10)),fs(this.c,t,s);case 14:return fs(Wc(this),t,s)}return c=f(tn((a=f(dn(this,16),29),a||(zt(),Vg)),i),69),c.wk().Ak(this,ja(this),i-Pn((zt(),Vg)),t,s)},p.Wh=function(t){var i,s,a;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return a=this.t,a>1||a==-1;case 7:return s=this.s,s>=1;case 8:return!!this.r&&!this.q.e&&Nm(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Nm(this.q).i==0);case 10:return!!(this.Db>>16==10&&f(this.Cb,29));case 11:return!!this.d&&this.d.i!=0;case 12:return!!this.c&&this.c.i!=0;case 13:return!!this.a&&Wc(this.a.a).i!=0&&!(this.b&&Ute(this.b));case 14:return!!this.b&&Ute(this.b)}return zu(this,t-Pn((zt(),Vg)),tn((i=f(dn(this,16),29),i||Vg),t))},p.bi=function(t,i){var s,a;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return;case 1:Ra(this,or(i));return;case 2:_g(this,mt(wt(i)));return;case 3:Sg(this,mt(wt(i)));return;case 4:wg(this,f(i,17).a);return;case 5:Jv(this,f(i,17).a);return;case 8:dw(this,f(i,142));return;case 9:a=oh(this,f(i,89),null),a&&a.oj();return;case 11:!this.d&&(this.d=new uc(Ga,this,11)),Vn(this.d),!this.d&&(this.d=new uc(Ga,this,11)),Ii(this.d,f(i,16));return;case 12:!this.c&&(this.c=new qe(Dy,this,12,10)),Vn(this.c),!this.c&&(this.c=new qe(Dy,this,12,10)),Ii(this.c,f(i,16));return;case 13:!this.a&&(this.a=new b7(this,this)),eI(this.a),!this.a&&(this.a=new b7(this,this)),Ii(this.a,f(i,16));return;case 14:Vn(Wc(this)),Ii(Wc(this),f(i,16));return}Qu(this,t-Pn((zt(),Vg)),tn((s=f(dn(this,16),29),s||Vg),t),i)},p.ii=function(){return zt(),Vg},p.ki=function(t){var i,s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return;case 1:Ra(this,null);return;case 2:_g(this,!0);return;case 3:Sg(this,!0);return;case 4:wg(this,0);return;case 5:Jv(this,1);return;case 8:dw(this,null);return;case 9:s=oh(this,null,null),s&&s.oj();return;case 11:!this.d&&(this.d=new uc(Ga,this,11)),Vn(this.d);return;case 12:!this.c&&(this.c=new qe(Dy,this,12,10)),Vn(this.c);return;case 13:this.a&&eI(this.a);return;case 14:this.b&&Vn(this.b);return}Yu(this,t-Pn((zt(),Vg)),tn((i=f(dn(this,16),29),i||Vg),t))},p.pi=function(){var t,i;if(this.c)for(t=0,i=this.c.i;tm&&Ci(t,m,null),a=0,s=new Sn(Wc(this.a));s.e!=s.i.gc();)i=f(Cn(s),89),b=(g=i.c,g||(zt(),vh)),Ci(t,a++,b);return t},p.Hj=function(){var t,i,s,a,c;for(c=new ig,c.a+="[",t=Wc(this.a),i=0,a=Wc(this.a).i;i1);case 5:return e6(this,t,i,s,a,this.i-f(s,15).gc()>0);default:return new gb(this.e,t,this.c,i,s,a,!0)}},p.Tj=function(){return!0},p.Qj=function(){return Ute(this)},p.Gk=function(){Vn(this)},N(fn,"EOperationImpl/2",1377),P(507,1,{2037:1,507:1},Lut),N(fn,"EPackageImpl/1",507),P(14,83,hl,qe),p.il=function(){return this.d},p.jl=function(){return this.b},p.ml=function(){return!0},p.b=0,N(fi,"EObjectContainmentWithInverseEList",14),P(365,14,hl,Xk),p.nl=function(){return!0},p.Wi=function(t,i){return A3(this,t,f(i,58))},N(fi,"EObjectContainmentWithInverseEList/Resolving",365),P(308,365,hl,Fv),p.Ni=function(){this.a.tb=null},N(fn,"EPackageImpl/2",308),P(1278,1,{},Xhn),N(fn,"EPackageImpl/3",1278),P(733,45,k2,B0e),p._b=function(t){return Eo(t)?FZ(this,t):!!xs(this.f,t)},N(fn,"EPackageRegistryImpl",733),P(518,292,{110:1,94:1,93:1,155:1,197:1,58:1,2116:1,114:1,481:1,54:1,99:1,158:1,518:1,292:1,119:1,120:1},EY),p.Ah=function(t){return p2t(this,t)},p.Lh=function(t,i,s){var a,c,b;switch(t){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),this.Ab;case 1:return this.zb;case 2:return cn(),!!(this.Bb&256);case 3:return cn(),!!(this.Bb&512);case 4:return ot(this.s);case 5:return ot(this.t);case 6:return cn(),b=this.t,b>1||b==-1;case 7:return cn(),c=this.s,c>=1;case 8:return i?_f(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?f(this.Cb,62):null}return qu(this,t-Pn((zt(),eS)),tn((a=f(dn(this,16),29),a||eS),t),i,s)},p.Sh=function(t,i,s){var a,c,b;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),xa(this.Ab,t,s);case 10:return this.Cb&&(s=(c=this.Db>>16,c>=0?p2t(this,s):this.Cb.Th(this,-1-c,null,s))),xu(this,t,10,s)}return b=f(tn((a=f(dn(this,16),29),a||(zt(),eS)),i),69),b.wk().zk(this,ja(this),i-Pn((zt(),eS)),t,s)},p.Uh=function(t,i,s){var a,c;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),fs(this.Ab,t,s);case 9:return SZ(this,s);case 10:return xu(this,null,10,s)}return c=f(tn((a=f(dn(this,16),29),a||(zt(),eS)),i),69),c.wk().Ak(this,ja(this),i-Pn((zt(),eS)),t,s)},p.Wh=function(t){var i,s,a;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return a=this.t,a>1||a==-1;case 7:return s=this.s,s>=1;case 8:return!!this.r&&!this.q.e&&Nm(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Nm(this.q).i==0);case 10:return!!(this.Db>>16==10&&f(this.Cb,62))}return zu(this,t-Pn((zt(),eS)),tn((i=f(dn(this,16),29),i||eS),t))},p.ii=function(){return zt(),eS},N(fn,"EParameterImpl",518),P(102,462,{110:1,94:1,93:1,155:1,197:1,58:1,19:1,179:1,69:1,114:1,481:1,54:1,99:1,158:1,102:1,462:1,292:1,119:1,120:1,692:1},Ume),p.Lh=function(t,i,s){var a,c,b,g;switch(t){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),this.Ab;case 1:return this.zb;case 2:return cn(),!!(this.Bb&256);case 3:return cn(),!!(this.Bb&512);case 4:return ot(this.s);case 5:return ot(this.t);case 6:return cn(),g=this.t,g>1||g==-1;case 7:return cn(),c=this.s,c>=1;case 8:return i?_f(this):this.r;case 9:return this.q;case 10:return cn(),!!(this.Bb&sd);case 11:return cn(),!!(this.Bb&E_);case 12:return cn(),!!(this.Bb&g_);case 13:return this.j;case 14:return hA(this);case 15:return cn(),!!(this.Bb&yc);case 16:return cn(),!!(this.Bb&Vh);case 17:return Hv(this);case 18:return cn(),!!(this.Bb&Vl);case 19:return cn(),b=Es(this),!!(b&&b.Bb&Vl);case 20:return cn(),!!(this.Bb&ys);case 21:return i?Es(this):this.b;case 22:return i?BSe(this):I0t(this);case 23:return!this.a&&(this.a=new KS(Y_,this,23)),this.a}return qu(this,t-Pn((zt(),pE)),tn((a=f(dn(this,16),29),a||pE),t),i,s)},p.Wh=function(t){var i,s,a,c;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return c=this.t,c>1||c==-1;case 7:return s=this.s,s>=1;case 8:return!!this.r&&!this.q.e&&Nm(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Nm(this.q).i==0);case 10:return(this.Bb&sd)==0;case 11:return(this.Bb&E_)!=0;case 12:return(this.Bb&g_)!=0;case 13:return this.j!=null;case 14:return hA(this)!=null;case 15:return(this.Bb&yc)!=0;case 16:return(this.Bb&Vh)!=0;case 17:return!!Hv(this);case 18:return(this.Bb&Vl)!=0;case 19:return a=Es(this),!!a&&(a.Bb&Vl)!=0;case 20:return(this.Bb&ys)==0;case 21:return!!this.b;case 22:return!!I0t(this);case 23:return!!this.a&&this.a.i!=0}return zu(this,t-Pn((zt(),pE)),tn((i=f(dn(this,16),29),i||pE),t))},p.bi=function(t,i){var s,a;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return;case 1:XZ(this,or(i));return;case 2:_g(this,mt(wt(i)));return;case 3:Sg(this,mt(wt(i)));return;case 4:wg(this,f(i,17).a);return;case 5:Jv(this,f(i,17).a);return;case 8:dw(this,f(i,142));return;case 9:a=oh(this,f(i,89),null),a&&a.oj();return;case 10:JC(this,mt(wt(i)));return;case 11:ZC(this,mt(wt(i)));return;case 12:YC(this,mt(wt(i)));return;case 13:Zwe(this,or(i));return;case 15:QC(this,mt(wt(i)));return;case 16:eA(this,mt(wt(i)));return;case 18:OSn(this,mt(wt(i)));return;case 20:m2e(this,mt(wt(i)));return;case 21:gSe(this,f(i,19));return;case 23:!this.a&&(this.a=new KS(Y_,this,23)),Vn(this.a),!this.a&&(this.a=new KS(Y_,this,23)),Ii(this.a,f(i,16));return}Qu(this,t-Pn((zt(),pE)),tn((s=f(dn(this,16),29),s||pE),t),i)},p.ii=function(){return zt(),pE},p.ki=function(t){var i,s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return;case 1:ve(this.Cb,90)&&l_(Bc(f(this.Cb,90)),4),Ra(this,null);return;case 2:_g(this,!0);return;case 3:Sg(this,!0);return;case 4:wg(this,0);return;case 5:Jv(this,1);return;case 8:dw(this,null);return;case 9:s=oh(this,null,null),s&&s.oj();return;case 10:JC(this,!0);return;case 11:ZC(this,!1);return;case 12:YC(this,!1);return;case 13:this.i=null,DW(this,null);return;case 15:QC(this,!1);return;case 16:eA(this,!1);return;case 18:w2e(this,!1),ve(this.Cb,90)&&l_(Bc(f(this.Cb,90)),2);return;case 20:m2e(this,!0);return;case 21:gSe(this,null);return;case 23:!this.a&&(this.a=new KS(Y_,this,23)),Vn(this.a);return}Yu(this,t-Pn((zt(),pE)),tn((i=f(dn(this,16),29),i||pE),t))},p.pi=function(){BSe(this),gC(Vs((gc(),qo),this)),_f(this),this.Bb|=1},p.uk=function(){return Es(this)},p._k=function(){var t;return t=Es(this),!!t&&(t.Bb&Vl)!=0},p.al=function(){return(this.Bb&Vl)!=0},p.bl=function(){return(this.Bb&ys)!=0},p.Yk=function(t,i){return this.c=null,l2e(this,t,i)},p.Ib=function(){var t;return this.Db&64?YH(this):(t=new wf(YH(this)),t.a+=" (containment: ",og(t,(this.Bb&Vl)!=0),t.a+=", resolveProxies: ",og(t,(this.Bb&ys)!=0),t.a+=")",t.a)},N(fn,"EReferenceImpl",102),P(561,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,561:1,119:1,120:1},CZe),p.Fb=function(t){return this===t},p.ld=function(){return this.b},p.md=function(){return this.c},p.Hb=function(){return xm(this)},p.Di=function(t){jyn(this,or(t))},p.nd=function(t){return Eyn(this,or(t))},p.Lh=function(t,i,s){var a;switch(t){case 0:return this.b;case 1:return this.c}return qu(this,t-Pn((zt(),_s)),tn((a=f(dn(this,16),29),a||_s),t),i,s)},p.Wh=function(t){var i;switch(t){case 0:return this.b!=null;case 1:return this.c!=null}return zu(this,t-Pn((zt(),_s)),tn((i=f(dn(this,16),29),i||_s),t))},p.bi=function(t,i){var s;switch(t){case 0:Fyn(this,or(i));return;case 1:hSe(this,or(i));return}Qu(this,t-Pn((zt(),_s)),tn((s=f(dn(this,16),29),s||_s),t),i)},p.ii=function(){return zt(),_s},p.ki=function(t){var i;switch(t){case 0:dSe(this,null);return;case 1:hSe(this,null);return}Yu(this,t-Pn((zt(),_s)),tn((i=f(dn(this,16),29),i||_s),t))},p.Bi=function(){var t;return this.a==-1&&(t=this.b,this.a=t==null?0:mg(t)),this.a},p.Ci=function(t){this.a=t},p.Ib=function(){var t;return this.Db&64?rd(this):(t=new wf(rd(this)),t.a+=" (key: ",Ms(t,this.b),t.a+=", value: ",Ms(t,this.c),t.a+=")",t.a)},p.a=-1,p.b=null,p.c=null;var Ll=N(fn,"EStringToStringMapEntryImpl",561),tLt=Ei(fi,"FeatureMap/Entry/Internal");P(576,1,uG),p.xl=function(t){return this.yl(f(t,54))},p.yl=function(t){return this.xl(t)},p.Fb=function(t){var i,s;return this===t?!0:ve(t,76)?(i=f(t,76),i.Lk()==this.c?(s=this.md(),s==null?i.md()==null:Lr(s,i.md())):!1):!1},p.Lk=function(){return this.c},p.Hb=function(){var t;return t=this.md(),ti(this.c)^(t==null?0:ti(t))},p.Ib=function(){var t,i;return t=this.c,i=vu(t.qk()).yi(),t.xe(),(i!=null&&i.length!=0?i+":"+t.xe():t.xe())+"="+this.md()},N(fn,"EStructuralFeatureImpl/BasicFeatureMapEntry",576),P(791,576,uG,Qme),p.yl=function(t){return new Qme(this.c,t)},p.md=function(){return this.a},p.zl=function(t,i,s){return SRn(this,t,this.a,i,s)},p.Al=function(t,i,s){return ERn(this,t,this.a,i,s)},N(fn,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",791),P(1350,1,{},jut),p.yk=function(t,i,s,a,c){var b;return b=f(EC(t,this.b),220),b.Yl(this.a).Fk(a)},p.zk=function(t,i,s,a,c){var b;return b=f(EC(t,this.b),220),b.Pl(this.a,a,c)},p.Ak=function(t,i,s,a,c){var b;return b=f(EC(t,this.b),220),b.Ql(this.a,a,c)},p.Bk=function(t,i,s){var a;return a=f(EC(t,this.b),220),a.Yl(this.a).Qj()},p.Ck=function(t,i,s,a){var c;c=f(EC(t,this.b),220),c.Yl(this.a).Wb(a)},p.Dk=function(t,i,s){return f(EC(t,this.b),220).Yl(this.a)},p.Ek=function(t,i,s){var a;a=f(EC(t,this.b),220),a.Yl(this.a).Gk()},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1350),P(91,1,{},cg,Z0,fg,iw),p.yk=function(t,i,s,a,c){var b;if(b=i.li(s),b==null&&i.mi(s,b=cU(this,t)),!c)switch(this.e){case 50:case 41:return f(b,597).bk();case 40:return f(b,220).Vl()}return b},p.zk=function(t,i,s,a,c){var b,g;return g=i.li(s),g==null&&i.mi(s,g=cU(this,t)),b=f(g,71).Wk(a,c),b},p.Ak=function(t,i,s,a,c){var b;return b=i.li(s),b!=null&&(c=f(b,71).Xk(a,c)),c},p.Bk=function(t,i,s){var a;return a=i.li(s),a!=null&&f(a,79).Qj()},p.Ck=function(t,i,s,a){var c;c=f(i.li(s),79),!c&&i.mi(s,c=cU(this,t)),c.Wb(a)},p.Dk=function(t,i,s){var a,c;return c=i.li(s),c==null&&i.mi(s,c=cU(this,t)),ve(c,79)?f(c,79):(a=f(i.li(s),15),new Cst(a))},p.Ek=function(t,i,s){var a;a=f(i.li(s),79),!a&&i.mi(s,a=cU(this,t)),a.Gk()},p.b=0,p.e=0,N(fn,"EStructuralFeatureImpl/InternalSettingDelegateMany",91),P(512,1,{}),p.zk=function(t,i,s,a,c){throw ne(new rr)},p.Ak=function(t,i,s,a,c){throw ne(new rr)},p.Dk=function(t,i,s){return new Dbt(this,t,i,s)};var Bp;N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingle",512),P(1367,1,joe,Dbt),p.Fk=function(t){return this.a.yk(this.c,this.d,this.b,t,!0)},p.Qj=function(){return this.a.Bk(this.c,this.d,this.b)},p.Wb=function(t){this.a.Ck(this.c,this.d,this.b,t)},p.Gk=function(){this.a.Ek(this.c,this.d,this.b)},p.b=0,N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1367),P(784,512,{},Bve),p.yk=function(t,i,s,a,c){return Fne(t,t.Ph(),t.Fh())==this.b?this.bl()&&a?Rne(t):t.Ph():null},p.zk=function(t,i,s,a,c){var b,g;return t.Ph()&&(c=(b=t.Fh(),b>=0?t.Ah(c):t.Ph().Th(t,-1-b,null,c))),g=yi(t.Dh(),this.e),t.Ch(a,g,c)},p.Ak=function(t,i,s,a,c){var b;return b=yi(t.Dh(),this.e),t.Ch(null,b,c)},p.Bk=function(t,i,s){var a;return a=yi(t.Dh(),this.e),!!t.Ph()&&t.Fh()==a},p.Ck=function(t,i,s,a){var c,b,g,m,_;if(a!=null&&!Une(this.a,a))throw ne(new Gx(fG+(ve(a,58)?CEe(f(a,58).Dh()):K_e(ou(a)))+dG+this.a+"'"));if(c=t.Ph(),g=yi(t.Dh(),this.e),Oe(a)!==Oe(c)||t.Fh()!=g&&a!=null){if(oA(t,f(a,58)))throw ne(new hn(SI+t.Ib()));_=null,c&&(_=(b=t.Fh(),b>=0?t.Ah(_):t.Ph().Th(t,-1-b,null,_))),m=f(a,54),m&&(_=m.Rh(t,yi(m.Dh(),this.b),null,_)),_=t.Ch(m,g,_),_&&_.oj()}else t.vh()&&t.wh()&&Dr(t,new yo(t,1,g,a,a))},p.Ek=function(t,i,s){var a,c,b,g;a=t.Ph(),a?(g=(c=t.Fh(),c>=0?t.Ah(null):t.Ph().Th(t,-1-c,null,null)),b=yi(t.Dh(),this.e),g=t.Ch(null,b,g),g&&g.oj()):t.vh()&&t.wh()&&Dr(t,new K$(t,1,this.e,null,null))},p.bl=function(){return!1},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",784),P(1351,784,{},xht),p.bl=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1351),P(574,512,{}),p.yk=function(t,i,s,a,c){var b;return b=i.li(s),b==null?this.b:Oe(b)===Oe(Bp)?null:b},p.Bk=function(t,i,s){var a;return a=i.li(s),a!=null&&(Oe(a)===Oe(Bp)||!Lr(a,this.b))},p.Ck=function(t,i,s,a){var c,b;t.vh()&&t.wh()?(c=(b=i.li(s),b==null?this.b:Oe(b)===Oe(Bp)?null:b),a==null?this.c!=null?(i.mi(s,null),a=this.b):this.b!=null?i.mi(s,Bp):i.mi(s,null):(this.Bl(a),i.mi(s,a)),Dr(t,this.d.Cl(t,1,this.e,c,a))):a==null?this.c!=null?i.mi(s,null):this.b!=null?i.mi(s,Bp):i.mi(s,null):(this.Bl(a),i.mi(s,a))},p.Ek=function(t,i,s){var a,c;t.vh()&&t.wh()?(a=(c=i.li(s),c==null?this.b:Oe(c)===Oe(Bp)?null:c),i.ni(s),Dr(t,this.d.Cl(t,1,this.e,a,this.b))):i.ni(s)},p.Bl=function(t){throw ne(new jst)},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",574),P(N2,1,{},AZe),p.Cl=function(t,i,s,a,c){return new K$(t,i,s,a,c)},p.Dl=function(t,i,s,a,c,b){return new LZ(t,i,s,a,c,b)};var $Oe,IOe,POe,OOe,NOe,MOe,DOe,jce,LOe;N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",N2),P(1368,N2,{},TZe),p.Cl=function(t,i,s,a,c){return new w_e(t,i,s,mt(wt(a)),mt(wt(c)))},p.Dl=function(t,i,s,a,c,b){return new l1t(t,i,s,mt(wt(a)),mt(wt(c)),b)},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1368),P(1369,N2,{},$Ze),p.Cl=function(t,i,s,a,c){return new Y_e(t,i,s,f(a,222).a,f(c,222).a)},p.Dl=function(t,i,s,a,c,b){return new e1t(t,i,s,f(a,222).a,f(c,222).a,b)},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1369),P(1370,N2,{},IZe),p.Cl=function(t,i,s,a,c){return new Q_e(t,i,s,f(a,180).a,f(c,180).a)},p.Dl=function(t,i,s,a,c,b){return new t1t(t,i,s,f(a,180).a,f(c,180).a,b)},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1370),P(1371,N2,{},PZe),p.Cl=function(t,i,s,a,c){return new b_e(t,i,s,Ae(je(a)),Ae(je(c)))},p.Dl=function(t,i,s,a,c,b){return new n1t(t,i,s,Ae(je(a)),Ae(je(c)),b)},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1371),P(1372,N2,{},OZe),p.Cl=function(t,i,s,a,c){return new tSe(t,i,s,f(a,161).a,f(c,161).a)},p.Dl=function(t,i,s,a,c,b){return new r1t(t,i,s,f(a,161).a,f(c,161).a,b)},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1372),P(1373,N2,{},NZe),p.Cl=function(t,i,s,a,c){return new g_e(t,i,s,f(a,17).a,f(c,17).a)},p.Dl=function(t,i,s,a,c,b){return new i1t(t,i,s,f(a,17).a,f(c,17).a,b)},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1373),P(1374,N2,{},MZe),p.Cl=function(t,i,s,a,c){return new Z_e(t,i,s,f(a,168).a,f(c,168).a)},p.Dl=function(t,i,s,a,c,b){return new o1t(t,i,s,f(a,168).a,f(c,168).a,b)},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1374),P(1375,N2,{},DZe),p.Cl=function(t,i,s,a,c){return new eSe(t,i,s,f(a,191).a,f(c,191).a)},p.Dl=function(t,i,s,a,c,b){return new s1t(t,i,s,f(a,191).a,f(c,191).a,b)},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1375),P(1353,574,{},Lbt),p.Bl=function(t){if(!this.a.fk(t))throw ne(new Gx(fG+ou(t)+dG+this.a+"'"))},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1353),P(1354,574,{},kpt),p.Bl=function(t){},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1354),P(785,574,{}),p.Bk=function(t,i,s){var a;return a=i.li(s),a!=null},p.Ck=function(t,i,s,a){var c,b;t.vh()&&t.wh()?(c=!0,b=i.li(s),b==null?(c=!1,b=this.b):Oe(b)===Oe(Bp)&&(b=null),a==null?this.c!=null?(i.mi(s,null),a=this.b):i.mi(s,Bp):(this.Bl(a),i.mi(s,a)),Dr(t,this.d.Dl(t,1,this.e,b,a,!c))):a==null?this.c!=null?i.mi(s,null):i.mi(s,Bp):(this.Bl(a),i.mi(s,a))},p.Ek=function(t,i,s){var a,c;t.vh()&&t.wh()?(a=!0,c=i.li(s),c==null?(a=!1,c=this.b):Oe(c)===Oe(Bp)&&(c=null),i.ni(s),Dr(t,this.d.Dl(t,2,this.e,c,this.b,a))):i.ni(s)},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",785),P(1355,785,{},jbt),p.Bl=function(t){if(!this.a.fk(t))throw ne(new Gx(fG+ou(t)+dG+this.a+"'"))},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1355),P(1356,785,{},Rpt),p.Bl=function(t){},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1356),P(410,512,{},EB),p.yk=function(t,i,s,a,c){var b,g,m,_,k;if(k=i.li(s),this.tk()&&Oe(k)===Oe(Bp))return null;if(this.bl()&&a&&k!=null){if(m=f(k,54),m.Vh()&&(_=D1(t,m),m!=_)){if(!Une(this.a,_))throw ne(new Gx(fG+ou(_)+dG+this.a+"'"));i.mi(s,k=_),this.al()&&(b=f(_,54),g=m.Th(t,this.b?yi(m.Dh(),this.b):-1-yi(t.Dh(),this.e),null,null),!b.Ph()&&(g=b.Rh(t,this.b?yi(b.Dh(),this.b):-1-yi(t.Dh(),this.e),null,g)),g&&g.oj()),t.vh()&&t.wh()&&Dr(t,new K$(t,9,this.e,m,_))}return k}else return k},p.zk=function(t,i,s,a,c){var b,g;return g=i.li(s),Oe(g)===Oe(Bp)&&(g=null),i.mi(s,a),this.Mj()?Oe(g)!==Oe(a)&&g!=null&&(b=f(g,54),c=b.Th(t,yi(b.Dh(),this.b),null,c)):this.al()&&g!=null&&(c=f(g,54).Th(t,-1-yi(t.Dh(),this.e),null,c)),t.vh()&&t.wh()&&(!c&&(c=new y1(4)),c.nj(new K$(t,1,this.e,g,a))),c},p.Ak=function(t,i,s,a,c){var b;return b=i.li(s),Oe(b)===Oe(Bp)&&(b=null),i.ni(s),t.vh()&&t.wh()&&(!c&&(c=new y1(4)),this.tk()?c.nj(new K$(t,2,this.e,b,null)):c.nj(new K$(t,1,this.e,b,null))),c},p.Bk=function(t,i,s){var a;return a=i.li(s),a!=null},p.Ck=function(t,i,s,a){var c,b,g,m,_;if(a!=null&&!Une(this.a,a))throw ne(new Gx(fG+(ve(a,58)?CEe(f(a,58).Dh()):K_e(ou(a)))+dG+this.a+"'"));_=i.li(s),m=_!=null,this.tk()&&Oe(_)===Oe(Bp)&&(_=null),g=null,this.Mj()?Oe(_)!==Oe(a)&&(_!=null&&(c=f(_,54),g=c.Th(t,yi(c.Dh(),this.b),null,g)),a!=null&&(c=f(a,54),g=c.Rh(t,yi(c.Dh(),this.b),null,g))):this.al()&&Oe(_)!==Oe(a)&&(_!=null&&(g=f(_,54).Th(t,-1-yi(t.Dh(),this.e),null,g)),a!=null&&(g=f(a,54).Rh(t,-1-yi(t.Dh(),this.e),null,g))),a==null&&this.tk()?i.mi(s,Bp):i.mi(s,a),t.vh()&&t.wh()?(b=new LZ(t,1,this.e,_,a,this.tk()&&!m),g?(g.nj(b),g.oj()):Dr(t,b)):g&&g.oj()},p.Ek=function(t,i,s){var a,c,b,g,m;m=i.li(s),g=m!=null,this.tk()&&Oe(m)===Oe(Bp)&&(m=null),b=null,m!=null&&(this.Mj()?(a=f(m,54),b=a.Th(t,yi(a.Dh(),this.b),null,b)):this.al()&&(b=f(m,54).Th(t,-1-yi(t.Dh(),this.e),null,b))),i.ni(s),t.vh()&&t.wh()?(c=new LZ(t,this.tk()?2:1,this.e,m,null,g),b?(b.nj(c),b.oj()):Dr(t,c)):b&&b.oj()},p.Mj=function(){return!1},p.al=function(){return!1},p.bl=function(){return!1},p.tk=function(){return!1},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",410),P(575,410,{},WQ),p.al=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",575),P(1359,575,{},Edt),p.bl=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1359),P(787,575,{},Fme),p.tk=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",787),P(1361,787,{},kdt),p.bl=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1361),P(650,575,{},eZ),p.Mj=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",650),P(1360,650,{},Cht),p.bl=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1360),P(788,650,{},Rye),p.tk=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",788),P(1362,788,{},Aht),p.bl=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1362),P(651,410,{},Bme),p.bl=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",651),P(1363,651,{},Rdt),p.tk=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1363),P(789,651,{},Eye),p.Mj=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",789),P(1364,789,{},Tht),p.tk=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1364),P(1357,410,{},xdt),p.tk=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1357),P(786,410,{},kye),p.Mj=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",786),P(1358,786,{},$ht),p.tk=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1358),P(790,576,uG,_ve),p.yl=function(t){return new _ve(this.a,this.c,t)},p.md=function(){return this.b},p.zl=function(t,i,s){return vkn(this,t,this.b,s)},p.Al=function(t,i,s){return _kn(this,t,this.b,s)},N(fn,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",790),P(1365,1,joe,Cst),p.Fk=function(t){return this.a},p.Qj=function(){return ve(this.a,97)?f(this.a,97).Qj():!this.a.dc()},p.Wb=function(t){this.a.$b(),this.a.Gc(f(t,15))},p.Gk=function(){ve(this.a,97)?f(this.a,97).Gk():this.a.$b()},N(fn,"EStructuralFeatureImpl/SettingMany",1365),P(1366,576,uG,Q1t),p.xl=function(t){return new GQ((Jr(),U5),this.b.ri(this.a,t))},p.md=function(){return null},p.zl=function(t,i,s){return s},p.Al=function(t,i,s){return s},N(fn,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1366),P(652,576,uG,GQ),p.xl=function(t){return new GQ(this.c,t)},p.md=function(){return this.a},p.zl=function(t,i,s){return s},p.Al=function(t,i,s){return s},N(fn,"EStructuralFeatureImpl/SimpleFeatureMapEntry",652),P(403,506,ep,Dx),p.aj=function(t){return Fe(Pf,on,29,t,0,1)},p.Yi=function(){return!1},N(fn,"ESuperAdapter/1",403),P(457,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,850:1,54:1,99:1,158:1,457:1,119:1,120:1},nY),p.Lh=function(t,i,s){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new U$(this,Os,this)),this.a}return qu(this,t-Pn((zt(),jy)),tn((a=f(dn(this,16),29),a||jy),t),i,s)},p.Uh=function(t,i,s){var a,c;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),fs(this.Ab,t,s);case 2:return!this.a&&(this.a=new U$(this,Os,this)),fs(this.a,t,s)}return c=f(tn((a=f(dn(this,16),29),a||(zt(),jy)),i),69),c.wk().Ak(this,ja(this),i-Pn((zt(),jy)),t,s)},p.Wh=function(t){var i;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!!this.a&&this.a.i!=0}return zu(this,t-Pn((zt(),jy)),tn((i=f(dn(this,16),29),i||jy),t))},p.bi=function(t,i){var s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return;case 1:Ra(this,or(i));return;case 2:!this.a&&(this.a=new U$(this,Os,this)),Vn(this.a),!this.a&&(this.a=new U$(this,Os,this)),Ii(this.a,f(i,16));return}Qu(this,t-Pn((zt(),jy)),tn((s=f(dn(this,16),29),s||jy),t),i)},p.ii=function(){return zt(),jy},p.ki=function(t){var i;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return;case 1:Ra(this,null);return;case 2:!this.a&&(this.a=new U$(this,Os,this)),Vn(this.a);return}Yu(this,t-Pn((zt(),jy)),tn((i=f(dn(this,16),29),i||jy),t))},N(fn,"ETypeParameterImpl",457),P(458,83,hl,U$),p.Nj=function(t,i){return M6n(this,f(t,89),i)},p.Oj=function(t,i){return D6n(this,f(t,89),i)},N(fn,"ETypeParameterImpl/1",458),P(647,45,k2,kY),p.ec=function(){return new Jj(this)},N(fn,"ETypeParameterImpl/2",647),P(570,lh,wc,Jj),p.Fc=function(t){return Qdt(this,f(t,89))},p.Gc=function(t){var i,s,a;for(a=!1,s=t.Kc();s.Ob();)i=f(s.Pb(),89),xr(this.a,i,"")==null&&(a=!0);return a},p.$b=function(){xc(this.a)},p.Hc=function(t){return Na(this.a,t)},p.Kc=function(){var t;return t=new aw(new U0(this.a).a),new Yj(t)},p.Mc=function(t){return H0t(this,t)},p.gc=function(){return u$(this.a)},N(fn,"ETypeParameterImpl/2/1",570),P(571,1,ko,Yj),p.Nb=function(t){Uo(this,t)},p.Pb=function(){return f(qm(this.a).ld(),89)},p.Ob=function(){return this.a.b},p.Qb=function(){Ywt(this.a)},N(fn,"ETypeParameterImpl/2/1/1",571),P(1329,45,k2,wlt),p._b=function(t){return Eo(t)?FZ(this,t):!!xs(this.f,t)},p.xc=function(t){var i,s;return i=Eo(t)?ua(this,t):tl(xs(this.f,t)),ve(i,851)?(s=f(i,851),i=s.Kk(),xr(this,f(t,241),i),i):i??(t==null?(UY(),rLt):null)},N(fn,"EValidatorRegistryImpl",1329),P(1349,720,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,2040:1,54:1,99:1,158:1,119:1,120:1},LZe),p.ri=function(t,i){switch(t.hk()){case 21:case 22:case 23:case 24:case 26:case 31:case 32:case 37:case 38:case 39:case 40:case 43:case 44:case 48:case 49:case 20:return i==null?null:dl(i);case 25:return P3n(i);case 27:return zkn(i);case 28:return Kkn(i);case 29:return i==null?null:Tft(L5[0],f(i,206));case 41:return i==null?"":z0(f(i,297));case 42:return dl(i);case 50:return or(i);default:throw ne(new hn(HA+t.xe()+by))}},p.si=function(t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe;switch(t.G==-1&&(t.G=(W=vu(t),W?Rg(W.vi(),t):-1)),t.G){case 0:return s=new _Y,s;case 1:return i=new B1e,i;case 2:return a=new G1e,a;case 4:return c=new Qj,c;case 5:return b=new glt,b;case 6:return g=new Wst,g;case 7:return m=new V1e,m;case 10:return k=new Wj,k;case 11:return I=new SY,I;case 12:return D=new zbt,D;case 13:return U=new EY,U;case 14:return z=new Ume,z;case 17:return X=new CZe,X;case 18:return _=new fm,_;case 19:return oe=new nY,oe;default:throw ne(new hn(Soe+t.zb+by))}},p.ti=function(t,i){switch(t.hk()){case 20:return i==null?null:new fwe(i);case 21:return i==null?null:new k1(i);case 23:case 22:return i==null?null:VAn(i);case 26:case 24:return i==null?null:Q7(Ru(i,-128,127)<<24>>24);case 25:return uPn(i);case 27:return PTn(i);case 28:return OTn(i);case 29:return nIn(i);case 32:case 31:return i==null?null:o_(i);case 38:case 37:return i==null?null:new A0e(i);case 40:case 39:return i==null?null:ot(Ru(i,Qo,Nr));case 41:return null;case 42:return i==null,null;case 44:case 43:return i==null?null:Eb(aU(i));case 49:case 48:return i==null?null:XC(Ru(i,hG,32767)<<16>>16);case 50:return i;default:throw ne(new hn(HA+t.xe()+by))}},N(fn,"EcoreFactoryImpl",1349),P(560,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,2038:1,54:1,99:1,158:1,184:1,560:1,119:1,120:1,690:1},gbt),p.gb=!1,p.hb=!1;var jOe,nLt=!1;N(fn,"EcorePackageImpl",560),P(1234,1,{851:1},jZe),p.Kk=function(){return Hft(),iLt},N(fn,"EcorePackageImpl/1",1234),P(1243,1,Rr,FZe),p.fk=function(t){return ve(t,155)},p.gk=function(t){return Fe(K9,on,155,t,0,1)},N(fn,"EcorePackageImpl/10",1243),P(1244,1,Rr,BZe),p.fk=function(t){return ve(t,197)},p.gk=function(t){return Fe(Tce,on,197,t,0,1)},N(fn,"EcorePackageImpl/11",1244),P(1245,1,Rr,WZe),p.fk=function(t){return ve(t,58)},p.gk=function(t){return Fe(d0,on,58,t,0,1)},N(fn,"EcorePackageImpl/12",1245),P(1246,1,Rr,HZe),p.fk=function(t){return ve(t,411)},p.gk=function(t){return Fe(Of,TAe,62,t,0,1)},N(fn,"EcorePackageImpl/13",1246),P(1247,1,Rr,UZe),p.fk=function(t){return ve(t,241)},p.gk=function(t){return Fe(Bd,on,241,t,0,1)},N(fn,"EcorePackageImpl/14",1247),P(1248,1,Rr,GZe),p.fk=function(t){return ve(t,518)},p.gk=function(t){return Fe(Dy,on,2116,t,0,1)},N(fn,"EcorePackageImpl/15",1248),P(1249,1,Rr,VZe),p.fk=function(t){return ve(t,102)},p.gk=function(t){return Fe(Q_,O2,19,t,0,1)},N(fn,"EcorePackageImpl/16",1249),P(1250,1,Rr,zZe),p.fk=function(t){return ve(t,179)},p.gk=function(t){return Fe(rc,O2,179,t,0,1)},N(fn,"EcorePackageImpl/17",1250),P(1251,1,Rr,KZe),p.fk=function(t){return ve(t,481)},p.gk=function(t){return Fe(J_,on,481,t,0,1)},N(fn,"EcorePackageImpl/18",1251),P(1252,1,Rr,qZe),p.fk=function(t){return ve(t,561)},p.gk=function(t){return Fe(Ll,i$t,561,t,0,1)},N(fn,"EcorePackageImpl/19",1252),P(1235,1,Rr,XZe),p.fk=function(t){return ve(t,331)},p.gk=function(t){return Fe(Y_,O2,35,t,0,1)},N(fn,"EcorePackageImpl/2",1235),P(1253,1,Rr,JZe),p.fk=function(t){return ve(t,248)},p.gk=function(t){return Fe(Os,_$t,89,t,0,1)},N(fn,"EcorePackageImpl/20",1253),P(1254,1,Rr,YZe),p.fk=function(t){return ve(t,457)},p.gk=function(t){return Fe(Ga,on,850,t,0,1)},N(fn,"EcorePackageImpl/21",1254),P(1255,1,Rr,QZe),p.fk=function(t){return Iv(t)},p.gk=function(t){return Fe(Li,rt,485,t,8,1)},N(fn,"EcorePackageImpl/22",1255),P(1256,1,Rr,ZZe),p.fk=function(t){return ve(t,195)},p.gk=function(t){return Fe(_c,rt,195,t,0,2)},N(fn,"EcorePackageImpl/23",1256),P(1257,1,Rr,eet),p.fk=function(t){return ve(t,222)},p.gk=function(t){return Fe(G3,rt,222,t,0,1)},N(fn,"EcorePackageImpl/24",1257),P(1258,1,Rr,tet),p.fk=function(t){return ve(t,180)},p.gk=function(t){return Fe(NI,rt,180,t,0,1)},N(fn,"EcorePackageImpl/25",1258),P(1259,1,Rr,net),p.fk=function(t){return ve(t,206)},p.gk=function(t){return Fe(EG,rt,206,t,0,1)},N(fn,"EcorePackageImpl/26",1259),P(1260,1,Rr,ret),p.fk=function(t){return!1},p.gk=function(t){return Fe(n7e,on,2215,t,0,1)},N(fn,"EcorePackageImpl/27",1260),P(1261,1,Rr,iet),p.fk=function(t){return Pv(t)},p.gk=function(t){return Fe(Qi,rt,345,t,7,1)},N(fn,"EcorePackageImpl/28",1261),P(1262,1,Rr,oet),p.fk=function(t){return ve(t,61)},p.gk=function(t){return Fe(wOe,w_,61,t,0,1)},N(fn,"EcorePackageImpl/29",1262),P(1236,1,Rr,set),p.fk=function(t){return ve(t,519)},p.gk=function(t){return Fe(_r,{3:1,4:1,5:1,2033:1},598,t,0,1)},N(fn,"EcorePackageImpl/3",1236),P(1263,1,Rr,aet),p.fk=function(t){return ve(t,582)},p.gk=function(t){return Fe(vOe,on,2039,t,0,1)},N(fn,"EcorePackageImpl/30",1263),P(1264,1,Rr,cet),p.fk=function(t){return ve(t,160)},p.gk=function(t){return Fe(UOe,w_,160,t,0,1)},N(fn,"EcorePackageImpl/31",1264),P(1265,1,Rr,uet),p.fk=function(t){return ve(t,76)},p.gk=function(t){return Fe(Bz,$$t,76,t,0,1)},N(fn,"EcorePackageImpl/32",1265),P(1266,1,Rr,fet),p.fk=function(t){return ve(t,161)},p.gk=function(t){return Fe(XA,rt,161,t,0,1)},N(fn,"EcorePackageImpl/33",1266),P(1267,1,Rr,det),p.fk=function(t){return ve(t,17)},p.gk=function(t){return Fe(Ko,rt,17,t,0,1)},N(fn,"EcorePackageImpl/34",1267),P(1268,1,Rr,het),p.fk=function(t){return ve(t,297)},p.gk=function(t){return Fe(HAe,on,297,t,0,1)},N(fn,"EcorePackageImpl/35",1268),P(1269,1,Rr,pet),p.fk=function(t){return ve(t,168)},p.gk=function(t){return Fe(wy,rt,168,t,0,1)},N(fn,"EcorePackageImpl/36",1269),P(1270,1,Rr,bet),p.fk=function(t){return ve(t,85)},p.gk=function(t){return Fe(UAe,on,85,t,0,1)},N(fn,"EcorePackageImpl/37",1270),P(1271,1,Rr,get),p.fk=function(t){return ve(t,599)},p.gk=function(t){return Fe(FOe,on,599,t,0,1)},N(fn,"EcorePackageImpl/38",1271),P(1272,1,Rr,wet),p.fk=function(t){return!1},p.gk=function(t){return Fe(r7e,on,2216,t,0,1)},N(fn,"EcorePackageImpl/39",1272),P(1237,1,Rr,met),p.fk=function(t){return ve(t,90)},p.gk=function(t){return Fe(Pf,on,29,t,0,1)},N(fn,"EcorePackageImpl/4",1237),P(1273,1,Rr,yet),p.fk=function(t){return ve(t,191)},p.gk=function(t){return Fe(my,rt,191,t,0,1)},N(fn,"EcorePackageImpl/40",1273),P(1274,1,Rr,vet),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(St,rt,2,t,6,1)},N(fn,"EcorePackageImpl/41",1274),P(1275,1,Rr,_et),p.fk=function(t){return ve(t,596)},p.gk=function(t){return Fe(yOe,on,596,t,0,1)},N(fn,"EcorePackageImpl/42",1275),P(1276,1,Rr,Eet),p.fk=function(t){return!1},p.gk=function(t){return Fe(i7e,rt,2217,t,0,1)},N(fn,"EcorePackageImpl/43",1276),P(1277,1,Rr,ket),p.fk=function(t){return ve(t,44)},p.gk=function(t){return Fe(Tw,fU,44,t,0,1)},N(fn,"EcorePackageImpl/44",1277),P(1238,1,Rr,Ret),p.fk=function(t){return ve(t,142)},p.gk=function(t){return Fe(Wd,on,142,t,0,1)},N(fn,"EcorePackageImpl/5",1238),P(1239,1,Rr,xet),p.fk=function(t){return ve(t,156)},p.gk=function(t){return Fe(Mce,on,156,t,0,1)},N(fn,"EcorePackageImpl/6",1239),P(1240,1,Rr,Cet),p.fk=function(t){return ve(t,469)},p.gk=function(t){return Fe(Fz,on,685,t,0,1)},N(fn,"EcorePackageImpl/7",1240),P(1241,1,Rr,Aet),p.fk=function(t){return ve(t,582)},p.gk=function(t){return Fe(Db,on,694,t,0,1)},N(fn,"EcorePackageImpl/8",1241),P(1242,1,Rr,Tet),p.fk=function(t){return ve(t,480)},p.gk=function(t){return Fe(D5,on,480,t,0,1)},N(fn,"EcorePackageImpl/9",1242),P(1038,2080,r$t,jlt),p.Mi=function(t,i){vCn(this,f(i,424))},p.Qi=function(t,i){PEt(this,t,f(i,424))},N(fn,"MinimalEObjectImpl/1ArrayDelegatingAdapterList",1038),P(1039,152,OM,sbt),p.jj=function(){return this.a.a},N(fn,"MinimalEObjectImpl/1ArrayDelegatingAdapterList/1",1039),P(1067,1066,{},vft),N("org.eclipse.emf.ecore.plugin","EcorePlugin",1067);var FOe=Ei(I$t,"Resource");P(799,1524,P$t),p.Hl=function(t){},p.Il=function(t){},p.El=function(){return!this.a&&(this.a=new bY(this)),this.a},p.Fl=function(t){var i,s,a,c,b;if(a=t.length,a>0)if(pn(0,t.length),t.charCodeAt(0)==47){for(b=new ka(4),c=1,i=1;i0&&(t=(Mo(0,s,t.length),t.substr(0,s))));return X5n(this,t)},p.Gl=function(){return this.c},p.Ib=function(){var t;return z0(this.Rm)+"@"+(t=ti(this)>>>0,t.toString(16))+" uri='"+this.d+"'"},p.b=!1,N(Foe,"ResourceImpl",799),P(1525,799,P$t,Ast),N(Foe,"BinaryResourceImpl",1525),P(1190,708,Ooe),p.bj=function(t){return ve(t,58)?B_n(this,f(t,58)):ve(t,599)?new Sn(f(t,599).El()):Oe(t)===Oe(this.f)?f(t,16).Kc():(oC(),J9.a)},p.Ob=function(){return _ke(this)},p.a=!1,N(fi,"EcoreUtil/ContentTreeIterator",1190),P(1526,1190,Ooe,Dpt),p.bj=function(t){return Oe(t)===Oe(this.f)?f(t,15).Kc():new O1t(f(t,58))},N(Foe,"ResourceImpl/5",1526),P(658,2092,v$t,bY),p.Hc=function(t){return this.i<=4?lA(this,t):ve(t,54)&&f(t,54).Jh()==this.a},p.Mi=function(t,i){t==this.i-1&&(this.a.b||(this.a.b=!0))},p.Oi=function(t,i){t==0?this.a.b||(this.a.b=!0):pee(this,t,i)},p.Qi=function(t,i){},p.Ri=function(t,i,s){},p.Lj=function(){return 2},p.jj=function(){return this.a},p.Mj=function(){return!0},p.Nj=function(t,i){var s;return s=f(t,54),i=s.fi(this.a,i),i},p.Oj=function(t,i){var s;return s=f(t,54),s.fi(null,i)},p.Pj=function(){return!1},p.Si=function(){return!0},p.aj=function(t){return Fe(d0,on,58,t,0,1)},p.Yi=function(){return!1},N(Foe,"ResourceImpl/ContentsEList",658),P(970,2062,xA,Tst),p.fd=function(t){return this.a.Ki(t)},p.gc=function(){return this.a.gc()},N(fi,"AbstractSequentialInternalEList/1",970);var BOe,WOe,qo,HOe;P(634,1,{},jht);var Wz,Hz;N(fi,"BasicExtendedMetaData",634),P(1181,1,{},But),p.Jl=function(){return null},p.Kl=function(){return this.a==-2&&ypn(this,X6n(this.d,this.b)),this.a},p.Ll=function(){return null},p.Ml=function(){return Kt(),Kt(),ps},p.xe=function(){return this.c==VA&&vpn(this,nSt(this.d,this.b)),this.c},p.Nl=function(){return 0},p.a=-2,p.c=VA,N(fi,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1181),P(1182,1,{},c1t),p.Jl=function(){return this.a==(SC(),Wz)&&Epn(this,q7n(this.f,this.b)),this.a},p.Kl=function(){return 0},p.Ll=function(){return this.c==(SC(),Wz)&&_pn(this,X7n(this.f,this.b)),this.c},p.Ml=function(){return!this.d&&Rpn(this,OMn(this.f,this.b)),this.d},p.xe=function(){return this.e==VA&&Cpn(this,nSt(this.f,this.b)),this.e},p.Nl=function(){return this.g==-2&&Tpn(this,p6n(this.f,this.b)),this.g},p.e=VA,p.g=-2,N(fi,"BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl",1182),P(1180,1,{},Wut),p.b=!1,p.c=!1,N(fi,"BasicExtendedMetaData/EPackageExtendedMetaDataImpl",1180),P(1183,1,{},u1t),p.c=-2,p.e=VA,p.f=VA,N(fi,"BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl",1183),P(593,632,hl,hB),p.Lj=function(){return this.c},p.ol=function(){return!1},p.Wi=function(t,i){return i},p.c=0,N(fi,"EDataTypeEList",593);var UOe=Ei(fi,"FeatureMap");P(78,593,{3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,79:1,160:1,220:1,2036:1,71:1,97:1},Pi),p.bd=function(t,i){hOn(this,t,f(i,76))},p.Fc=function(t){return IPn(this,f(t,76))},p.Hi=function(t){Lvn(this,f(t,76))},p.Nj=function(t,i){return iwn(this,f(t,76),i)},p.Oj=function(t,i){return hye(this,f(t,76),i)},p.Ti=function(t,i){return jNn(this,t,i)},p.Wi=function(t,i){return RDn(this,t,f(i,76))},p.hd=function(t,i){return e7n(this,t,f(i,76))},p.Uj=function(t,i){return own(this,f(t,76),i)},p.Vj=function(t,i){return hht(this,f(t,76),i)},p.Wj=function(t,i,s){return t6n(this,f(t,76),f(i,76),s)},p.Zi=function(t,i){return ane(this,t,f(i,76))},p.Ol=function(t,i){return d3e(this,t,i)},p.cd=function(t,i){var s,a,c,b,g,m,_,k,I;for(k=new Um(i.gc()),c=i.Kc();c.Ob();)if(a=f(c.Pb(),76),b=a.Lk(),xb(this.e,b))(!b.Si()||!rW(this,b,a.md())&&!lA(k,a))&&zn(k,a);else{for(I=Fa(this.e.Dh(),b),s=f(this.g,124),g=!0,m=0;m=0;)if(i=t[this.c],this.k.am(i.Lk()))return this.j=this.f?i:i.md(),this.i=-2,!0;return this.i=-1,this.g=-1,!1},N(fi,"BasicFeatureMap/FeatureEIterator",420),P(676,420,kp,RQ),p.ul=function(){return!0},N(fi,"BasicFeatureMap/ResolvingFeatureEIterator",676),P(968,496,aG,$ft),p.pj=function(){return this},N(fi,"EContentsEList/1",968),P(969,496,aG,eft),p.ul=function(){return!1},N(fi,"EContentsEList/2",969),P(967,287,cG,Ift),p.wl=function(t){},p.Ob=function(){return!1},p.Sb=function(){return!1},N(fi,"EContentsEList/FeatureIteratorImpl/1",967),P(840,593,hl,vme),p.Ni=function(){this.a=!0},p.Qj=function(){return this.a},p.Gk=function(){var t;Vn(this),eu(this.e)?(t=this.a,this.a=!1,Dr(this.e,new ed(this.e,2,this.c,t,!1))):this.a=!1},p.a=!1,N(fi,"EDataTypeEList/Unsettable",840),P(1958,593,hl,jft),p.Si=function(){return!0},N(fi,"EDataTypeUniqueEList",1958),P(1959,840,hl,Fft),p.Si=function(){return!0},N(fi,"EDataTypeUniqueEList/Unsettable",1959),P(147,83,hl,uc),p.nl=function(){return!0},p.Wi=function(t,i){return A3(this,t,f(i,58))},N(fi,"EObjectContainmentEList/Resolving",147),P(1184,555,hl,Bft),p.nl=function(){return!0},p.Wi=function(t,i){return A3(this,t,f(i,58))},N(fi,"EObjectContainmentEList/Unsettable/Resolving",1184),P(766,14,hl,sye),p.Ni=function(){this.a=!0},p.Qj=function(){return this.a},p.Gk=function(){var t;Vn(this),eu(this.e)?(t=this.a,this.a=!1,Dr(this.e,new ed(this.e,2,this.c,t,!1))):this.a=!1},p.a=!1,N(fi,"EObjectContainmentWithInverseEList/Unsettable",766),P(1222,766,hl,Zdt),p.nl=function(){return!0},p.Wi=function(t,i){return A3(this,t,f(i,58))},N(fi,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1222),P(757,505,hl,_me),p.Ni=function(){this.a=!0},p.Qj=function(){return this.a},p.Gk=function(){var t;Vn(this),eu(this.e)?(t=this.a,this.a=!1,Dr(this.e,new ed(this.e,2,this.c,t,!1))):this.a=!1},p.a=!1,N(fi,"EObjectEList/Unsettable",757),P(338,505,hl,KS),p.nl=function(){return!0},p.Wi=function(t,i){return A3(this,t,f(i,58))},N(fi,"EObjectResolvingEList",338),P(1844,757,hl,Wft),p.nl=function(){return!0},p.Wi=function(t,i){return A3(this,t,f(i,58))},N(fi,"EObjectResolvingEList/Unsettable",1844),P(1527,1,{},$et);var rLt;N(fi,"EObjectValidator",1527),P(559,505,hl,$B),p.il=function(){return this.d},p.jl=function(){return this.b},p.Mj=function(){return!0},p.ml=function(){return!0},p.b=0,N(fi,"EObjectWithInverseEList",559),P(1225,559,hl,eht),p.ll=function(){return!0},N(fi,"EObjectWithInverseEList/ManyInverse",1225),P(635,559,hl,zQ),p.Ni=function(){this.a=!0},p.Qj=function(){return this.a},p.Gk=function(){var t;Vn(this),eu(this.e)?(t=this.a,this.a=!1,Dr(this.e,new ed(this.e,2,this.c,t,!1))):this.a=!1},p.a=!1,N(fi,"EObjectWithInverseEList/Unsettable",635),P(1224,635,hl,tht),p.ll=function(){return!0},N(fi,"EObjectWithInverseEList/Unsettable/ManyInverse",1224),P(767,559,hl,lye),p.nl=function(){return!0},p.Wi=function(t,i){return A3(this,t,f(i,58))},N(fi,"EObjectWithInverseResolvingEList",767),P(32,767,hl,en),p.ll=function(){return!0},N(fi,"EObjectWithInverseResolvingEList/ManyInverse",32),P(768,635,hl,aye),p.nl=function(){return!0},p.Wi=function(t,i){return A3(this,t,f(i,58))},N(fi,"EObjectWithInverseResolvingEList/Unsettable",768),P(1223,768,hl,nht),p.ll=function(){return!0},N(fi,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1223),P(1185,632,hl),p.Li=function(){return(this.b&1792)==0},p.Ni=function(){this.b|=1},p.kl=function(){return(this.b&4)!=0},p.Mj=function(){return(this.b&40)!=0},p.ll=function(){return(this.b&16)!=0},p.ml=function(){return(this.b&8)!=0},p.nl=function(){return(this.b&E_)!=0},p.al=function(){return(this.b&32)!=0},p.ol=function(){return(this.b&sd)!=0},p.fk=function(t){return this.d?H1t(this.d,t):this.Lk().Hk().fk(t)},p.Qj=function(){return this.b&2?(this.b&1)!=0:this.i!=0},p.Si=function(){return(this.b&128)!=0},p.Gk=function(){var t;Vn(this),this.b&2&&(eu(this.e)?(t=(this.b&1)!=0,this.b&=-2,Ux(this,new ed(this.e,2,yi(this.e.Dh(),this.Lk()),t,!1))):this.b&=-2)},p.Yi=function(){return(this.b&1536)==0},p.b=0,N(fi,"EcoreEList/Generic",1185),P(1186,1185,hl,qbt),p.Lk=function(){return this.a},N(fi,"EcoreEList/Dynamic",1186),P(765,66,ep,S0e),p.aj=function(t){return nN(this.a.a,t)},N(fi,"EcoreEMap/1",765),P(764,83,hl,sve),p.Mi=function(t,i){SH(this.b,f(i,136))},p.Oi=function(t,i){Vyt(this.b)},p.Pi=function(t,i,s){var a;++(a=this.b,f(i,136),a).e},p.Qi=function(t,i){wte(this.b,f(i,136))},p.Ri=function(t,i,s){wte(this.b,f(s,136)),Oe(s)===Oe(i)&&f(s,136).Ci(n1n(f(i,136).ld())),SH(this.b,f(i,136))},N(fi,"EcoreEMap/DelegateEObjectContainmentEList",764),P(1220,141,AAe,ayt),N(fi,"EcoreEMap/Unsettable",1220),P(1221,764,hl,rht),p.Ni=function(){this.a=!0},p.Qj=function(){return this.a},p.Gk=function(){var t;Vn(this),eu(this.e)?(t=this.a,this.a=!1,Dr(this.e,new ed(this.e,2,this.c,t,!1))):this.a=!1},p.a=!1,N(fi,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1221),P(1189,215,k2,Xpt),p.a=!1,p.b=!1,N(fi,"EcoreUtil/Copier",1189),P(759,1,ko,O1t),p.Nb=function(t){Uo(this,t)},p.Ob=function(){return W_t(this)},p.Pb=function(){var t;return W_t(this),t=this.b,this.b=null,t},p.Qb=function(){this.a.Qb()},N(fi,"EcoreUtil/ProperContentIterator",759),P(1528,1527,{},$nt);var iLt;N(fi,"EcoreValidator",1528);var oLt;Ei(fi,"FeatureMapUtil/Validator"),P(1295,1,{2041:1},Iet),p.am=function(t){return!0},N(fi,"FeatureMapUtil/1",1295),P(773,1,{2041:1},W3e),p.am=function(t){var i;return this.c==t?!0:(i=wt(En(this.a,t)),i==null?tNn(this,t)?(O0t(this.a,t,(cn(),qA)),!0):(O0t(this.a,t,(cn(),Y1)),!1):i==(cn(),qA))},p.e=!1;var Fce;N(fi,"FeatureMapUtil/BasicValidator",773),P(774,45,k2,mme),N(fi,"FeatureMapUtil/BasicValidator/Cache",774),P(509,56,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,71:1,97:1},s7),p.bd=function(t,i){S3t(this.c,this.b,t,i)},p.Fc=function(t){return d3e(this.c,this.b,t)},p.cd=function(t,i){return S9n(this.c,this.b,t,i)},p.Gc=function(t){return N$(this,t)},p.Gi=function(t,i){w3n(this.c,this.b,t,i)},p.Wk=function(t,i){return i3e(this.c,this.b,t,i)},p.$i=function(t){return rU(this.c,this.b,t,!1)},p.Ii=function(){return dft(this.c,this.b)},p.Ji=function(){return Ugn(this.c,this.b)},p.Ki=function(t){return Skn(this.c,this.b,t)},p.Xk=function(t,i){return Ddt(this,t,i)},p.$b=function(){Ik(this)},p.Hc=function(t){return rW(this.c,this.b,t)},p.Ic=function(t){return _Rn(this.c,this.b,t)},p.Xb=function(t){return rU(this.c,this.b,t,!0)},p.Fk=function(t){return this},p.dd=function(t){return TEn(this.c,this.b,t)},p.dc=function(){return HF(this)},p.Qj=function(){return!EN(this.c,this.b)},p.Kc=function(){return l3n(this.c,this.b)},p.ed=function(){return a3n(this.c,this.b)},p.fd=function(t){return FCn(this.c,this.b,t)},p.Ti=function(t,i){return LRt(this.c,this.b,t,i)},p.Ui=function(t,i){Rkn(this.c,this.b,t,i)},p.gd=function(t){return bEt(this.c,this.b,t)},p.Mc=function(t){return ENn(this.c,this.b,t)},p.hd=function(t,i){return zRt(this.c,this.b,t,i)},p.Wb=function(t){jH(this.c,this.b),N$(this,f(t,15))},p.gc=function(){return jCn(this.c,this.b)},p.Pc=function(){return I2n(this.c,this.b)},p.Qc=function(t){return $En(this.c,this.b,t)},p.Ib=function(){var t,i;for(i=new ig,i.a+="[",t=dft(this.c,this.b);lte(t);)Ms(i,D$(yH(t))),lte(t)&&(i.a+=ds);return i.a+="]",i.a},p.Gk=function(){jH(this.c,this.b)},N(fi,"FeatureMapUtil/FeatureEList",509),P(644,39,OM,ree),p.hj=function(t){return E6(this,t)},p.mj=function(t){var i,s,a,c,b,g,m;switch(this.d){case 1:case 2:{if(b=t.jj(),Oe(b)===Oe(this.c)&&E6(this,null)==t.hj(null))return this.g=t.ij(),t.gj()==1&&(this.d=1),!0;break}case 3:{switch(c=t.gj(),c){case 3:{if(b=t.jj(),Oe(b)===Oe(this.c)&&E6(this,null)==t.hj(null))return this.d=5,i=new Um(2),zn(i,this.g),zn(i,t.ij()),this.g=i,!0;break}}break}case 5:{switch(c=t.gj(),c){case 3:{if(b=t.jj(),Oe(b)===Oe(this.c)&&E6(this,null)==t.hj(null))return s=f(this.g,16),s.Fc(t.ij()),!0;break}}break}case 4:{switch(c=t.gj(),c){case 3:{if(b=t.jj(),Oe(b)===Oe(this.c)&&E6(this,null)==t.hj(null))return this.d=1,this.g=t.ij(),!0;break}case 4:{if(b=t.jj(),Oe(b)===Oe(this.c)&&E6(this,null)==t.hj(null))return this.d=6,m=new Um(2),zn(m,this.n),zn(m,t.kj()),this.n=m,g=se(ie(Xn,1),wr,28,15,[this.o,t.lj()]),this.g=g,!0;break}}break}case 6:{switch(c=t.gj(),c){case 4:{if(b=t.jj(),Oe(b)===Oe(this.c)&&E6(this,null)==t.hj(null))return s=f(this.n,16),s.Fc(t.kj()),g=f(this.g,53),a=Fe(Xn,wr,28,g.length+1,15,1),oa(g,0,a,0,g.length),a[g.length]=t.lj(),this.g=a,!0;break}}break}}return!1},N(fi,"FeatureMapUtil/FeatureENotificationImpl",644),P(564,509,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,160:1,220:1,2036:1,71:1,97:1},wB),p.Ol=function(t,i){return d3e(this.c,t,i)},p.Pl=function(t,i,s){return i3e(this.c,t,i,s)},p.Ql=function(t,i,s){return $3e(this.c,t,i,s)},p.Rl=function(){return this},p.Sl=function(t,i){return ZN(this.c,t,i)},p.Tl=function(t){return f(rU(this.c,this.b,t,!1),76).Lk()},p.Ul=function(t){return f(rU(this.c,this.b,t,!1),76).md()},p.Vl=function(){return this.a},p.Wl=function(t){return!EN(this.c,t)},p.Xl=function(t,i){iU(this.c,t,i)},p.Yl=function(t){return fyt(this.c,t)},p.Zl=function(t){USt(this.c,t)},N(fi,"FeatureMapUtil/FeatureFeatureMap",564),P(1294,1,joe,Fut),p.Fk=function(t){return rU(this.b,this.a,-1,t)},p.Qj=function(){return!EN(this.b,this.a)},p.Wb=function(t){iU(this.b,this.a,t)},p.Gk=function(){jH(this.b,this.a)},N(fi,"FeatureMapUtil/FeatureValue",1294);var hR,Bce,Wce,pR,sLt,Q9=Ei(wG,"AnyType");P(680,63,Cb,PY),N(wG,"InvalidDatatypeValueException",680);var Uz=Ei(wG,N$t),Z9=Ei(wG,M$t),GOe=Ei(wG,D$t),lLt,zl,VOe,zw,aLt,cLt,uLt,fLt,dLt,hLt,pLt,bLt,gLt,wLt,mLt,bE,yLt,gE,W5,vLt,Fy,eD,tD,_Lt,H5,U5;P(844,516,{110:1,94:1,93:1,58:1,54:1,99:1,857:1},W0e),p.Lh=function(t,i,s){switch(t){case 0:return s?(!this.c&&(this.c=new Pi(this,0)),this.c):(!this.c&&(this.c=new Pi(this,0)),this.c.b);case 1:return s?(!this.c&&(this.c=new Pi(this,0)),f(fa(this.c,(Jr(),zw)),160)):(!this.c&&(this.c=new Pi(this,0)),f(f(fa(this.c,(Jr(),zw)),160),220)).Vl();case 2:return s?(!this.b&&(this.b=new Pi(this,2)),this.b):(!this.b&&(this.b=new Pi(this,2)),this.b.b)}return qu(this,t-Pn(this.ii()),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():this.ii(),t),i,s)},p.Uh=function(t,i,s){var a;switch(i){case 0:return!this.c&&(this.c=new Pi(this,0)),XN(this.c,t,s);case 1:return(!this.c&&(this.c=new Pi(this,0)),f(f(fa(this.c,(Jr(),zw)),160),71)).Xk(t,s);case 2:return!this.b&&(this.b=new Pi(this,2)),XN(this.b,t,s)}return a=f(tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():this.ii(),i),69),a.wk().Ak(this,G_e(this),i-Pn(this.ii()),t,s)},p.Wh=function(t){switch(t){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new Pi(this,0)),f(fa(this.c,(Jr(),zw)),160)).dc();case 2:return!!this.b&&this.b.i!=0}return zu(this,t-Pn(this.ii()),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():this.ii(),t))},p.bi=function(t,i){switch(t){case 0:!this.c&&(this.c=new Pi(this,0)),x7(this.c,i);return;case 1:(!this.c&&(this.c=new Pi(this,0)),f(f(fa(this.c,(Jr(),zw)),160),220)).Wb(i);return;case 2:!this.b&&(this.b=new Pi(this,2)),x7(this.b,i);return}Qu(this,t-Pn(this.ii()),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():this.ii(),t),i)},p.ii=function(){return Jr(),VOe},p.ki=function(t){switch(t){case 0:!this.c&&(this.c=new Pi(this,0)),Vn(this.c);return;case 1:(!this.c&&(this.c=new Pi(this,0)),f(fa(this.c,(Jr(),zw)),160)).$b();return;case 2:!this.b&&(this.b=new Pi(this,2)),Vn(this.b);return}Yu(this,t-Pn(this.ii()),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():this.ii(),t))},p.Ib=function(){var t;return this.j&4?rd(this):(t=new wf(rd(this)),t.a+=" (mixed: ",$$(t,this.c),t.a+=", anyAttribute: ",$$(t,this.b),t.a+=")",t.a)},N(Yi,"AnyTypeImpl",844),P(681,516,{110:1,94:1,93:1,58:1,54:1,99:1,2119:1,681:1},Het),p.Lh=function(t,i,s){switch(t){case 0:return this.a;case 1:return this.b}return qu(this,t-Pn((Jr(),bE)),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():bE,t),i,s)},p.Wh=function(t){switch(t){case 0:return this.a!=null;case 1:return this.b!=null}return zu(this,t-Pn((Jr(),bE)),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():bE,t))},p.bi=function(t,i){switch(t){case 0:Ppn(this,or(i));return;case 1:Npn(this,or(i));return}Qu(this,t-Pn((Jr(),bE)),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():bE,t),i)},p.ii=function(){return Jr(),bE},p.ki=function(t){switch(t){case 0:this.a=null;return;case 1:this.b=null;return}Yu(this,t-Pn((Jr(),bE)),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():bE,t))},p.Ib=function(){var t;return this.j&4?rd(this):(t=new wf(rd(this)),t.a+=" (data: ",Ms(t,this.a),t.a+=", target: ",Ms(t,this.b),t.a+=")",t.a)},p.a=null,p.b=null,N(Yi,"ProcessingInstructionImpl",681),P(682,844,{110:1,94:1,93:1,58:1,54:1,99:1,857:1,2120:1,682:1},mlt),p.Lh=function(t,i,s){switch(t){case 0:return s?(!this.c&&(this.c=new Pi(this,0)),this.c):(!this.c&&(this.c=new Pi(this,0)),this.c.b);case 1:return s?(!this.c&&(this.c=new Pi(this,0)),f(fa(this.c,(Jr(),zw)),160)):(!this.c&&(this.c=new Pi(this,0)),f(f(fa(this.c,(Jr(),zw)),160),220)).Vl();case 2:return s?(!this.b&&(this.b=new Pi(this,2)),this.b):(!this.b&&(this.b=new Pi(this,2)),this.b.b);case 3:return!this.c&&(this.c=new Pi(this,0)),or(ZN(this.c,(Jr(),W5),!0));case 4:return uye(this.a,(!this.c&&(this.c=new Pi(this,0)),or(ZN(this.c,(Jr(),W5),!0))));case 5:return this.a}return qu(this,t-Pn((Jr(),gE)),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():gE,t),i,s)},p.Wh=function(t){switch(t){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new Pi(this,0)),f(fa(this.c,(Jr(),zw)),160)).dc();case 2:return!!this.b&&this.b.i!=0;case 3:return!this.c&&(this.c=new Pi(this,0)),or(ZN(this.c,(Jr(),W5),!0))!=null;case 4:return uye(this.a,(!this.c&&(this.c=new Pi(this,0)),or(ZN(this.c,(Jr(),W5),!0))))!=null;case 5:return!!this.a}return zu(this,t-Pn((Jr(),gE)),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():gE,t))},p.bi=function(t,i){switch(t){case 0:!this.c&&(this.c=new Pi(this,0)),x7(this.c,i);return;case 1:(!this.c&&(this.c=new Pi(this,0)),f(f(fa(this.c,(Jr(),zw)),160),220)).Wb(i);return;case 2:!this.b&&(this.b=new Pi(this,2)),x7(this.b,i);return;case 3:Qve(this,or(i));return;case 4:Qve(this,cye(this.a,i));return;case 5:Opn(this,f(i,156));return}Qu(this,t-Pn((Jr(),gE)),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():gE,t),i)},p.ii=function(){return Jr(),gE},p.ki=function(t){switch(t){case 0:!this.c&&(this.c=new Pi(this,0)),Vn(this.c);return;case 1:(!this.c&&(this.c=new Pi(this,0)),f(fa(this.c,(Jr(),zw)),160)).$b();return;case 2:!this.b&&(this.b=new Pi(this,2)),Vn(this.b);return;case 3:!this.c&&(this.c=new Pi(this,0)),iU(this.c,(Jr(),W5),null);return;case 4:Qve(this,cye(this.a,null));return;case 5:this.a=null;return}Yu(this,t-Pn((Jr(),gE)),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():gE,t))},N(Yi,"SimpleAnyTypeImpl",682),P(683,516,{110:1,94:1,93:1,58:1,54:1,99:1,2121:1,683:1},ylt),p.Lh=function(t,i,s){switch(t){case 0:return s?(!this.a&&(this.a=new Pi(this,0)),this.a):(!this.a&&(this.a=new Pi(this,0)),this.a.b);case 1:return s?(!this.b&&(this.b=new pc((zt(),_s),Ll,this,1)),this.b):(!this.b&&(this.b=new pc((zt(),_s),Ll,this,1)),G7(this.b));case 2:return s?(!this.c&&(this.c=new pc((zt(),_s),Ll,this,2)),this.c):(!this.c&&(this.c=new pc((zt(),_s),Ll,this,2)),G7(this.c));case 3:return!this.a&&(this.a=new Pi(this,0)),fa(this.a,(Jr(),eD));case 4:return!this.a&&(this.a=new Pi(this,0)),fa(this.a,(Jr(),tD));case 5:return!this.a&&(this.a=new Pi(this,0)),fa(this.a,(Jr(),H5));case 6:return!this.a&&(this.a=new Pi(this,0)),fa(this.a,(Jr(),U5))}return qu(this,t-Pn((Jr(),Fy)),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():Fy,t),i,s)},p.Uh=function(t,i,s){var a;switch(i){case 0:return!this.a&&(this.a=new Pi(this,0)),XN(this.a,t,s);case 1:return!this.b&&(this.b=new pc((zt(),_s),Ll,this,1)),sB(this.b,t,s);case 2:return!this.c&&(this.c=new pc((zt(),_s),Ll,this,2)),sB(this.c,t,s);case 5:return!this.a&&(this.a=new Pi(this,0)),Ddt(fa(this.a,(Jr(),H5)),t,s)}return a=f(tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():(Jr(),Fy),i),69),a.wk().Ak(this,G_e(this),i-Pn((Jr(),Fy)),t,s)},p.Wh=function(t){switch(t){case 0:return!!this.a&&this.a.i!=0;case 1:return!!this.b&&this.b.f!=0;case 2:return!!this.c&&this.c.f!=0;case 3:return!this.a&&(this.a=new Pi(this,0)),!HF(fa(this.a,(Jr(),eD)));case 4:return!this.a&&(this.a=new Pi(this,0)),!HF(fa(this.a,(Jr(),tD)));case 5:return!this.a&&(this.a=new Pi(this,0)),!HF(fa(this.a,(Jr(),H5)));case 6:return!this.a&&(this.a=new Pi(this,0)),!HF(fa(this.a,(Jr(),U5)))}return zu(this,t-Pn((Jr(),Fy)),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():Fy,t))},p.bi=function(t,i){switch(t){case 0:!this.a&&(this.a=new Pi(this,0)),x7(this.a,i);return;case 1:!this.b&&(this.b=new pc((zt(),_s),Ll,this,1)),HW(this.b,i);return;case 2:!this.c&&(this.c=new pc((zt(),_s),Ll,this,2)),HW(this.c,i);return;case 3:!this.a&&(this.a=new Pi(this,0)),Ik(fa(this.a,(Jr(),eD))),!this.a&&(this.a=new Pi(this,0)),N$(fa(this.a,eD),f(i,16));return;case 4:!this.a&&(this.a=new Pi(this,0)),Ik(fa(this.a,(Jr(),tD))),!this.a&&(this.a=new Pi(this,0)),N$(fa(this.a,tD),f(i,16));return;case 5:!this.a&&(this.a=new Pi(this,0)),Ik(fa(this.a,(Jr(),H5))),!this.a&&(this.a=new Pi(this,0)),N$(fa(this.a,H5),f(i,16));return;case 6:!this.a&&(this.a=new Pi(this,0)),Ik(fa(this.a,(Jr(),U5))),!this.a&&(this.a=new Pi(this,0)),N$(fa(this.a,U5),f(i,16));return}Qu(this,t-Pn((Jr(),Fy)),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():Fy,t),i)},p.ii=function(){return Jr(),Fy},p.ki=function(t){switch(t){case 0:!this.a&&(this.a=new Pi(this,0)),Vn(this.a);return;case 1:!this.b&&(this.b=new pc((zt(),_s),Ll,this,1)),this.b.c.$b();return;case 2:!this.c&&(this.c=new pc((zt(),_s),Ll,this,2)),this.c.c.$b();return;case 3:!this.a&&(this.a=new Pi(this,0)),Ik(fa(this.a,(Jr(),eD)));return;case 4:!this.a&&(this.a=new Pi(this,0)),Ik(fa(this.a,(Jr(),tD)));return;case 5:!this.a&&(this.a=new Pi(this,0)),Ik(fa(this.a,(Jr(),H5)));return;case 6:!this.a&&(this.a=new Pi(this,0)),Ik(fa(this.a,(Jr(),U5)));return}Yu(this,t-Pn((Jr(),Fy)),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():Fy,t))},p.Ib=function(){var t;return this.j&4?rd(this):(t=new wf(rd(this)),t.a+=" (mixed: ",$$(t,this.a),t.a+=")",t.a)},N(Yi,"XMLTypeDocumentRootImpl",683),P(2028,720,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1,2122:1},Pet),p.ri=function(t,i){switch(t.hk()){case 7:case 8:case 9:case 10:case 16:case 22:case 23:case 24:case 25:case 26:case 32:case 33:case 34:case 36:case 37:case 44:case 45:case 50:case 51:case 53:case 55:case 56:case 57:case 58:case 60:case 61:case 4:return i==null?null:dl(i);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return or(i);case 6:return b0n(f(i,195));case 12:case 47:case 49:case 11:return Oxt(this,t,i);case 13:return i==null?null:R9n(f(i,247));case 15:case 14:return i==null?null:Ivn(Ae(je(i)));case 17:return $2t((Jr(),i));case 18:return $2t(i);case 21:case 20:return i==null?null:Pvn(f(i,161).a);case 27:return g0n(f(i,195));case 30:return GSt((Jr(),f(i,15)));case 31:return GSt(f(i,15));case 40:return m0n((Jr(),i));case 42:return I2t((Jr(),i));case 43:return I2t(i);case 59:case 48:return w0n((Jr(),i));default:throw ne(new hn(HA+t.xe()+by))}},p.si=function(t){var i,s,a,c,b;switch(t.G==-1&&(t.G=(s=vu(t),s?Rg(s.vi(),t):-1)),t.G){case 0:return i=new W0e,i;case 1:return a=new Het,a;case 2:return c=new mlt,c;case 3:return b=new ylt,b;default:throw ne(new hn(Soe+t.zb+by))}},p.ti=function(t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge;switch(t.hk()){case 5:case 52:case 4:return i;case 6:return k4n(i);case 8:case 7:return i==null?null:u6n(i);case 9:return i==null?null:Q7(Ru((a=ha(i,!0),a.length>0&&(pn(0,a.length),a.charCodeAt(0)==43)?(pn(1,a.length+1),a.substr(1)):a),-128,127)<<24>>24);case 10:return i==null?null:Q7(Ru((c=ha(i,!0),c.length>0&&(pn(0,c.length),c.charCodeAt(0)==43)?(pn(1,c.length+1),c.substr(1)):c),-128,127)<<24>>24);case 11:return or(ly(this,(Jr(),uLt),i));case 12:return or(ly(this,(Jr(),fLt),i));case 13:return i==null?null:new fwe(ha(i,!0));case 15:case 14:return OPn(i);case 16:return or(ly(this,(Jr(),dLt),i));case 17:return z_t((Jr(),i));case 18:return z_t(i);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return ha(i,!0);case 21:case 20:return UPn(i);case 22:return or(ly(this,(Jr(),hLt),i));case 23:return or(ly(this,(Jr(),pLt),i));case 24:return or(ly(this,(Jr(),bLt),i));case 25:return or(ly(this,(Jr(),gLt),i));case 26:return or(ly(this,(Jr(),wLt),i));case 27:return d4n(i);case 30:return K_t((Jr(),i));case 31:return K_t(i);case 32:return i==null?null:ot(Ru((I=ha(i,!0),I.length>0&&(pn(0,I.length),I.charCodeAt(0)==43)?(pn(1,I.length+1),I.substr(1)):I),Qo,Nr));case 33:return i==null?null:new k1((D=ha(i,!0),D.length>0&&(pn(0,D.length),D.charCodeAt(0)==43)?(pn(1,D.length+1),D.substr(1)):D));case 34:return i==null?null:ot(Ru((W=ha(i,!0),W.length>0&&(pn(0,W.length),W.charCodeAt(0)==43)?(pn(1,W.length+1),W.substr(1)):W),Qo,Nr));case 36:return i==null?null:Eb(aU((U=ha(i,!0),U.length>0&&(pn(0,U.length),U.charCodeAt(0)==43)?(pn(1,U.length+1),U.substr(1)):U)));case 37:return i==null?null:Eb(aU((z=ha(i,!0),z.length>0&&(pn(0,z.length),z.charCodeAt(0)==43)?(pn(1,z.length+1),z.substr(1)):z)));case 40:return cTn((Jr(),i));case 42:return q_t((Jr(),i));case 43:return q_t(i);case 44:return i==null?null:new k1((X=ha(i,!0),X.length>0&&(pn(0,X.length),X.charCodeAt(0)==43)?(pn(1,X.length+1),X.substr(1)):X));case 45:return i==null?null:new k1((oe=ha(i,!0),oe.length>0&&(pn(0,oe.length),oe.charCodeAt(0)==43)?(pn(1,oe.length+1),oe.substr(1)):oe));case 46:return ha(i,!1);case 47:return or(ly(this,(Jr(),mLt),i));case 59:case 48:return aTn((Jr(),i));case 49:return or(ly(this,(Jr(),yLt),i));case 50:return i==null?null:XC(Ru((ge=ha(i,!0),ge.length>0&&(pn(0,ge.length),ge.charCodeAt(0)==43)?(pn(1,ge.length+1),ge.substr(1)):ge),hG,32767)<<16>>16);case 51:return i==null?null:XC(Ru((b=ha(i,!0),b.length>0&&(pn(0,b.length),b.charCodeAt(0)==43)?(pn(1,b.length+1),b.substr(1)):b),hG,32767)<<16>>16);case 53:return or(ly(this,(Jr(),vLt),i));case 55:return i==null?null:XC(Ru((g=ha(i,!0),g.length>0&&(pn(0,g.length),g.charCodeAt(0)==43)?(pn(1,g.length+1),g.substr(1)):g),hG,32767)<<16>>16);case 56:return i==null?null:XC(Ru((m=ha(i,!0),m.length>0&&(pn(0,m.length),m.charCodeAt(0)==43)?(pn(1,m.length+1),m.substr(1)):m),hG,32767)<<16>>16);case 57:return i==null?null:Eb(aU((_=ha(i,!0),_.length>0&&(pn(0,_.length),_.charCodeAt(0)==43)?(pn(1,_.length+1),_.substr(1)):_)));case 58:return i==null?null:Eb(aU((k=ha(i,!0),k.length>0&&(pn(0,k.length),k.charCodeAt(0)==43)?(pn(1,k.length+1),k.substr(1)):k)));case 60:return i==null?null:ot(Ru((s=ha(i,!0),s.length>0&&(pn(0,s.length),s.charCodeAt(0)==43)?(pn(1,s.length+1),s.substr(1)):s),Qo,Nr));case 61:return i==null?null:ot(Ru(ha(i,!0),Qo,Nr));default:throw ne(new hn(HA+t.xe()+by))}};var SLt,zOe,ELt,KOe;N(Yi,"XMLTypeFactoryImpl",2028),P(594,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1,2044:1,594:1},wbt),p.N=!1,p.O=!1;var kLt=!1;N(Yi,"XMLTypePackageImpl",594),P(1961,1,{851:1},Oet),p.Kk=function(){return _3e(),OLt},N(Yi,"XMLTypePackageImpl/1",1961),P(1970,1,Rr,Net),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(St,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/10",1970),P(1971,1,Rr,Met),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(St,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/11",1971),P(1972,1,Rr,Det),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(St,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/12",1972),P(1973,1,Rr,Let),p.fk=function(t){return Pv(t)},p.gk=function(t){return Fe(Qi,rt,345,t,7,1)},N(Yi,"XMLTypePackageImpl/13",1973),P(1974,1,Rr,jet),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(St,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/14",1974),P(1975,1,Rr,Fet),p.fk=function(t){return ve(t,15)},p.gk=function(t){return Fe(lf,w_,15,t,0,1)},N(Yi,"XMLTypePackageImpl/15",1975),P(1976,1,Rr,Bet),p.fk=function(t){return ve(t,15)},p.gk=function(t){return Fe(lf,w_,15,t,0,1)},N(Yi,"XMLTypePackageImpl/16",1976),P(1977,1,Rr,Wet),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(St,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/17",1977),P(1978,1,Rr,Uet),p.fk=function(t){return ve(t,161)},p.gk=function(t){return Fe(XA,rt,161,t,0,1)},N(Yi,"XMLTypePackageImpl/18",1978),P(1979,1,Rr,Get),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(St,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/19",1979),P(1962,1,Rr,Vet),p.fk=function(t){return ve(t,857)},p.gk=function(t){return Fe(Q9,on,857,t,0,1)},N(Yi,"XMLTypePackageImpl/2",1962),P(1980,1,Rr,zet),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(St,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/20",1980),P(1981,1,Rr,Ket),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(St,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/21",1981),P(1982,1,Rr,qet),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(St,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/22",1982),P(1983,1,Rr,Xet),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(St,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/23",1983),P(1984,1,Rr,Jet),p.fk=function(t){return ve(t,195)},p.gk=function(t){return Fe(_c,rt,195,t,0,2)},N(Yi,"XMLTypePackageImpl/24",1984),P(1985,1,Rr,Yet),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(St,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/25",1985),P(1986,1,Rr,Qet),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(St,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/26",1986),P(1987,1,Rr,Zet),p.fk=function(t){return ve(t,15)},p.gk=function(t){return Fe(lf,w_,15,t,0,1)},N(Yi,"XMLTypePackageImpl/27",1987),P(1988,1,Rr,ett),p.fk=function(t){return ve(t,15)},p.gk=function(t){return Fe(lf,w_,15,t,0,1)},N(Yi,"XMLTypePackageImpl/28",1988),P(1989,1,Rr,ttt),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(St,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/29",1989),P(1963,1,Rr,ntt),p.fk=function(t){return ve(t,681)},p.gk=function(t){return Fe(Uz,on,2119,t,0,1)},N(Yi,"XMLTypePackageImpl/3",1963),P(1990,1,Rr,rtt),p.fk=function(t){return ve(t,17)},p.gk=function(t){return Fe(Ko,rt,17,t,0,1)},N(Yi,"XMLTypePackageImpl/30",1990),P(1991,1,Rr,itt),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(St,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/31",1991),P(1992,1,Rr,ott),p.fk=function(t){return ve(t,168)},p.gk=function(t){return Fe(wy,rt,168,t,0,1)},N(Yi,"XMLTypePackageImpl/32",1992),P(1993,1,Rr,stt),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(St,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/33",1993),P(1994,1,Rr,ltt),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(St,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/34",1994),P(1995,1,Rr,att),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(St,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/35",1995),P(1996,1,Rr,ctt),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(St,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/36",1996),P(1997,1,Rr,utt),p.fk=function(t){return ve(t,15)},p.gk=function(t){return Fe(lf,w_,15,t,0,1)},N(Yi,"XMLTypePackageImpl/37",1997),P(1998,1,Rr,ftt),p.fk=function(t){return ve(t,15)},p.gk=function(t){return Fe(lf,w_,15,t,0,1)},N(Yi,"XMLTypePackageImpl/38",1998),P(1999,1,Rr,dtt),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(St,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/39",1999),P(1964,1,Rr,htt),p.fk=function(t){return ve(t,682)},p.gk=function(t){return Fe(Z9,on,2120,t,0,1)},N(Yi,"XMLTypePackageImpl/4",1964),P(2e3,1,Rr,ptt),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(St,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/40",2e3),P(2001,1,Rr,btt),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(St,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/41",2001),P(2002,1,Rr,gtt),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(St,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/42",2002),P(2003,1,Rr,wtt),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(St,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/43",2003),P(2004,1,Rr,mtt),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(St,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/44",2004),P(2005,1,Rr,ytt),p.fk=function(t){return ve(t,191)},p.gk=function(t){return Fe(my,rt,191,t,0,1)},N(Yi,"XMLTypePackageImpl/45",2005),P(2006,1,Rr,vtt),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(St,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/46",2006),P(2007,1,Rr,_tt),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(St,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/47",2007),P(2008,1,Rr,Stt),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(St,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/48",2008),P(2009,1,Rr,Ett),p.fk=function(t){return ve(t,191)},p.gk=function(t){return Fe(my,rt,191,t,0,1)},N(Yi,"XMLTypePackageImpl/49",2009),P(1965,1,Rr,ktt),p.fk=function(t){return ve(t,683)},p.gk=function(t){return Fe(GOe,on,2121,t,0,1)},N(Yi,"XMLTypePackageImpl/5",1965),P(2010,1,Rr,Rtt),p.fk=function(t){return ve(t,168)},p.gk=function(t){return Fe(wy,rt,168,t,0,1)},N(Yi,"XMLTypePackageImpl/50",2010),P(2011,1,Rr,xtt),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(St,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/51",2011),P(2012,1,Rr,Ctt),p.fk=function(t){return ve(t,17)},p.gk=function(t){return Fe(Ko,rt,17,t,0,1)},N(Yi,"XMLTypePackageImpl/52",2012),P(1966,1,Rr,Att),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(St,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/6",1966),P(1967,1,Rr,Ttt),p.fk=function(t){return ve(t,195)},p.gk=function(t){return Fe(_c,rt,195,t,0,2)},N(Yi,"XMLTypePackageImpl/7",1967),P(1968,1,Rr,$tt),p.fk=function(t){return Iv(t)},p.gk=function(t){return Fe(Li,rt,485,t,8,1)},N(Yi,"XMLTypePackageImpl/8",1968),P(1969,1,Rr,Itt),p.fk=function(t){return ve(t,222)},p.gk=function(t){return Fe(G3,rt,222,t,0,1)},N(Yi,"XMLTypePackageImpl/9",1969);var _h,Kg,G5,Gz,fe;P(55,63,Cb,ar),N(Og,"RegEx/ParseException",55),P(836,1,{},H1e),p.bm=function(t){return ts*16)throw ne(new ar(dr((ir(),KTt))));s=s*16+c}while(!0);if(this.a!=125)throw ne(new ar(dr((ir(),qTt))));if(s>zA)throw ne(new ar(dr((ir(),XTt))));t=s}else{if(c=0,this.c!=0||(c=pw(this.a))<0)throw ne(new ar(dr((ir(),Pg))));if(s=c,Ir(this),this.c!=0||(c=pw(this.a))<0)throw ne(new ar(dr((ir(),Pg))));s=s*16+c,t=s}break;case 117:if(a=0,Ir(this),this.c!=0||(a=pw(this.a))<0)throw ne(new ar(dr((ir(),Pg))));if(i=a,Ir(this),this.c!=0||(a=pw(this.a))<0)throw ne(new ar(dr((ir(),Pg))));if(i=i*16+a,Ir(this),this.c!=0||(a=pw(this.a))<0)throw ne(new ar(dr((ir(),Pg))));if(i=i*16+a,Ir(this),this.c!=0||(a=pw(this.a))<0)throw ne(new ar(dr((ir(),Pg))));i=i*16+a,t=i;break;case 118:if(Ir(this),this.c!=0||(a=pw(this.a))<0)throw ne(new ar(dr((ir(),Pg))));if(i=a,Ir(this),this.c!=0||(a=pw(this.a))<0)throw ne(new ar(dr((ir(),Pg))));if(i=i*16+a,Ir(this),this.c!=0||(a=pw(this.a))<0)throw ne(new ar(dr((ir(),Pg))));if(i=i*16+a,Ir(this),this.c!=0||(a=pw(this.a))<0)throw ne(new ar(dr((ir(),Pg))));if(i=i*16+a,Ir(this),this.c!=0||(a=pw(this.a))<0)throw ne(new ar(dr((ir(),Pg))));if(i=i*16+a,Ir(this),this.c!=0||(a=pw(this.a))<0)throw ne(new ar(dr((ir(),Pg))));if(i=i*16+a,i>zA)throw ne(new ar(dr((ir(),"parser.descappe.4"))));t=i;break;case 65:case 90:case 122:throw ne(new ar(dr((ir(),JTt))))}return t},p.dm=function(t){var i,s;switch(t){case 100:s=(this.e&32)==32?U1("Nd",!0):(Or(),Vz);break;case 68:s=(this.e&32)==32?U1("Nd",!1):(Or(),ZOe);break;case 119:s=(this.e&32)==32?U1("IsWord",!0):(Or(),O4);break;case 87:s=(this.e&32)==32?U1("IsWord",!1):(Or(),t7e);break;case 115:s=(this.e&32)==32?U1("IsSpace",!0):(Or(),bR);break;case 83:s=(this.e&32)==32?U1("IsSpace",!1):(Or(),e7e);break;default:throw ne(new vl((i=t,J$t+i.toString(16))))}return s},p.em=function(t){var i,s,a,c,b,g,m,_,k,I,D,W;for(this.b=1,Ir(this),i=null,this.c==0&&this.a==94?(Ir(this),t?I=(Or(),Or(),new yu(5)):(i=(Or(),Or(),new yu(4)),da(i,0,zA),I=new yu(4))):I=(Or(),Or(),new yu(4)),c=!0;(W=this.c)!=1&&!(W==0&&this.a==93&&!c);){if(c=!1,s=this.a,a=!1,W==10)switch(s){case 100:case 68:case 119:case 87:case 115:case 83:h_(I,this.dm(s)),a=!0;break;case 105:case 73:case 99:case 67:s=this.um(I,s),s<0&&(a=!0);break;case 112:case 80:if(D=yke(this,s),!D)throw ne(new ar(dr((ir(),Moe))));h_(I,D),a=!0;break;default:s=this.cm()}else if(W==20){if(g=nC(this.i,58,this.d),g<0)throw ne(new ar(dr((ir(),SAe))));if(m=!0,Jo(this.i,this.d)==94&&(++this.d,m=!1),b=Vu(this.i,this.d,g),_=Swt(b,m,(this.e&512)==512),!_)throw ne(new ar(dr((ir(),HTt))));if(h_(I,_),a=!0,g+1>=this.j||Jo(this.i,g+1)!=93)throw ne(new ar(dr((ir(),SAe))));this.d=g+2}if(Ir(this),!a)if(this.c!=0||this.a!=45)da(I,s,s);else{if(Ir(this),(W=this.c)==1)throw ne(new ar(dr((ir(),sG))));W==0&&this.a==93?(da(I,s,s),da(I,45,45)):(k=this.a,W==10&&(k=this.cm()),Ir(this),da(I,s,k))}(this.e&sd)==sd&&this.c==0&&this.a==44&&Ir(this)}if(this.c==1)throw ne(new ar(dr((ir(),sG))));return i&&(tI(i,I),I=i),b2(I),Z6(I),this.b=0,Ir(this),I},p.fm=function(){var t,i,s,a;for(s=this.em(!1);(a=this.c)!=7;)if(t=this.a,a==0&&(t==45||t==38)||a==4){if(Ir(this),this.c!=9)throw ne(new ar(dr((ir(),GTt))));if(i=this.em(!1),a==4)h_(s,i);else if(t==45)tI(s,i);else if(t==38)Txt(s,i);else throw ne(new vl("ASSERT"))}else throw ne(new ar(dr((ir(),VTt))));return Ir(this),s},p.gm=function(){var t,i;return t=this.a-48,i=(Or(),Or(),new HZ(12,null,t)),!this.g&&(this.g=new eF),Zj(this.g,new E0e(t)),Ir(this),i},p.hm=function(){return Ir(this),Or(),CLt},p.im=function(){return Ir(this),Or(),xLt},p.jm=function(){throw ne(new ar(dr((ir(),sf))))},p.km=function(){throw ne(new ar(dr((ir(),sf))))},p.lm=function(){return Ir(this),Cxn()},p.mm=function(){return Ir(this),Or(),TLt},p.nm=function(){return Ir(this),Or(),ILt},p.om=function(){var t;if(this.d>=this.j||((t=Jo(this.i,this.d++))&65504)!=64)throw ne(new ar(dr((ir(),FTt))));return Ir(this),Or(),Or(),new gp(0,t-64)},p.pm=function(){return Ir(this),$Mn()},p.qm=function(){return Ir(this),Or(),PLt},p.rm=function(){var t;return t=(Or(),Or(),new gp(0,105)),Ir(this),t},p.sm=function(){return Ir(this),Or(),$Lt},p.tm=function(){return Ir(this),Or(),ALt},p.um=function(t,i){return this.cm()},p.vm=function(){return Ir(this),Or(),YOe},p.wm=function(){var t,i,s,a,c;if(this.d+1>=this.j)throw ne(new ar(dr((ir(),DTt))));if(a=-1,i=null,t=Jo(this.i,this.d),49<=t&&t<=57){if(a=t-48,!this.g&&(this.g=new eF),Zj(this.g,new E0e(a)),++this.d,Jo(this.i,this.d)!=41)throw ne(new ar(dr((ir(),Cw))));++this.d}else switch(t==63&&--this.d,Ir(this),i=z3e(this),i.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw ne(new ar(dr((ir(),Cw))));break;default:throw ne(new ar(dr((ir(),LTt))))}if(Ir(this),c=Zm(this),s=null,c.e==2){if(c.Pm()!=2)throw ne(new ar(dr((ir(),jTt))));s=c.Lm(1),c=c.Lm(0)}if(this.c!=7)throw ne(new ar(dr((ir(),Cw))));return Ir(this),Or(),Or(),new rmt(a,i,c,s)},p.xm=function(){return Ir(this),Or(),QOe},p.ym=function(){var t;if(Ir(this),t=IB(24,Zm(this)),this.c!=7)throw ne(new ar(dr((ir(),Cw))));return Ir(this),t},p.zm=function(){var t;if(Ir(this),t=IB(20,Zm(this)),this.c!=7)throw ne(new ar(dr((ir(),Cw))));return Ir(this),t},p.Am=function(){var t;if(Ir(this),t=IB(22,Zm(this)),this.c!=7)throw ne(new ar(dr((ir(),Cw))));return Ir(this),t},p.Bm=function(){var t,i,s,a,c;for(t=0,s=0,i=-1;this.d=this.j)throw ne(new ar(dr((ir(),vAe))));if(i==45){for(++this.d;this.d=this.j)throw ne(new ar(dr((ir(),vAe))))}if(i==58){if(++this.d,Ir(this),a=Qpt(Zm(this),t,s),this.c!=7)throw ne(new ar(dr((ir(),Cw))));Ir(this)}else if(i==41)++this.d,Ir(this),a=Qpt(Zm(this),t,s);else throw ne(new ar(dr((ir(),MTt))));return a},p.Cm=function(){var t;if(Ir(this),t=IB(21,Zm(this)),this.c!=7)throw ne(new ar(dr((ir(),Cw))));return Ir(this),t},p.Dm=function(){var t;if(Ir(this),t=IB(23,Zm(this)),this.c!=7)throw ne(new ar(dr((ir(),Cw))));return Ir(this),t},p.Em=function(){var t,i;if(Ir(this),t=this.f++,i=gZ(Zm(this),t),this.c!=7)throw ne(new ar(dr((ir(),Cw))));return Ir(this),i},p.Fm=function(){var t;if(Ir(this),t=gZ(Zm(this),0),this.c!=7)throw ne(new ar(dr((ir(),Cw))));return Ir(this),t},p.Gm=function(t){return Ir(this),this.c==5?(Ir(this),SB(t,(Or(),Or(),new Gv(9,t)))):SB(t,(Or(),Or(),new Gv(3,t)))},p.Hm=function(t){var i;return Ir(this),i=(Or(),Or(),new O$(2)),this.c==5?(Ir(this),ww(i,z5),ww(i,t)):(ww(i,t),ww(i,z5)),i},p.Im=function(t){return Ir(this),this.c==5?(Ir(this),Or(),Or(),new Gv(9,t)):(Or(),Or(),new Gv(3,t))},p.a=0,p.b=0,p.c=0,p.d=0,p.e=0,p.f=1,p.g=null,p.j=0,N(Og,"RegEx/RegexParser",836),P(1947,836,{},vlt),p.bm=function(t){return!1},p.cm=function(){return e3e(this)},p.dm=function(t){return wA(t)},p.em=function(t){return kCt(this)},p.fm=function(){throw ne(new ar(dr((ir(),sf))))},p.gm=function(){throw ne(new ar(dr((ir(),sf))))},p.hm=function(){throw ne(new ar(dr((ir(),sf))))},p.im=function(){throw ne(new ar(dr((ir(),sf))))},p.jm=function(){return Ir(this),wA(67)},p.km=function(){return Ir(this),wA(73)},p.lm=function(){throw ne(new ar(dr((ir(),sf))))},p.mm=function(){throw ne(new ar(dr((ir(),sf))))},p.nm=function(){throw ne(new ar(dr((ir(),sf))))},p.om=function(){return Ir(this),wA(99)},p.pm=function(){throw ne(new ar(dr((ir(),sf))))},p.qm=function(){throw ne(new ar(dr((ir(),sf))))},p.rm=function(){return Ir(this),wA(105)},p.sm=function(){throw ne(new ar(dr((ir(),sf))))},p.tm=function(){throw ne(new ar(dr((ir(),sf))))},p.um=function(t,i){return h_(t,wA(i)),-1},p.vm=function(){return Ir(this),Or(),Or(),new gp(0,94)},p.wm=function(){throw ne(new ar(dr((ir(),sf))))},p.xm=function(){return Ir(this),Or(),Or(),new gp(0,36)},p.ym=function(){throw ne(new ar(dr((ir(),sf))))},p.zm=function(){throw ne(new ar(dr((ir(),sf))))},p.Am=function(){throw ne(new ar(dr((ir(),sf))))},p.Bm=function(){throw ne(new ar(dr((ir(),sf))))},p.Cm=function(){throw ne(new ar(dr((ir(),sf))))},p.Dm=function(){throw ne(new ar(dr((ir(),sf))))},p.Em=function(){var t;if(Ir(this),t=gZ(Zm(this),0),this.c!=7)throw ne(new ar(dr((ir(),Cw))));return Ir(this),t},p.Fm=function(){throw ne(new ar(dr((ir(),sf))))},p.Gm=function(t){return Ir(this),SB(t,(Or(),Or(),new Gv(3,t)))},p.Hm=function(t){var i;return Ir(this),i=(Or(),Or(),new O$(2)),ww(i,t),ww(i,z5),i},p.Im=function(t){return Ir(this),Or(),Or(),new Gv(3,t)};var wE=null,I4=null;N(Og,"RegEx/ParserForXMLSchema",1947),P(122,1,KA,um),p.Jm=function(t){throw ne(new vl("Not supported."))},p.Km=function(){return-1},p.Lm=function(t){return null},p.Mm=function(){return null},p.Nm=function(t){},p.Om=function(t){},p.Pm=function(){return 0},p.Ib=function(){return this.Qm(0)},p.Qm=function(t){return this.e==11?".":""},p.e=0;var qOe,P4,V5,RLt,XOe,tS=null,Vz,Hce=null,JOe,z5,Uce=null,YOe,QOe,ZOe,e7e,t7e,xLt,bR,CLt,ALt,TLt,$Lt,O4,ILt,PLt,BFn=N(Og,"RegEx/Token",122);P(138,122,{3:1,138:1,122:1},yu),p.Qm=function(t){var i,s,a;if(this.e==4)if(this==JOe)s=".";else if(this==Vz)s="\\d";else if(this==O4)s="\\w";else if(this==bR)s="\\s";else{for(a=new ig,a.a+="[",i=0;i0&&(a.a+=","),this.b[i]===this.b[i+1]?Ms(a,QN(this.b[i])):(Ms(a,QN(this.b[i])),a.a+="-",Ms(a,QN(this.b[i+1])));a.a+="]",s=a.a}else if(this==ZOe)s="\\D";else if(this==t7e)s="\\W";else if(this==e7e)s="\\S";else{for(a=new ig,a.a+="[^",i=0;i0&&(a.a+=","),this.b[i]===this.b[i+1]?Ms(a,QN(this.b[i])):(Ms(a,QN(this.b[i])),a.a+="-",Ms(a,QN(this.b[i+1])));a.a+="]",s=a.a}return s},p.a=!1,p.c=!1,N(Og,"RegEx/RangeToken",138),P(592,1,{592:1},E0e),p.a=0,N(Og,"RegEx/RegexParser/ReferencePosition",592),P(591,1,{3:1,591:1},Mat),p.Fb=function(t){var i;return t==null||!ve(t,591)?!1:(i=f(t,591),Ht(this.b,i.b)&&this.a==i.a)},p.Hb=function(){return mg(this.b+"/"+Kke(this.a))},p.Ib=function(){return this.c.Qm(this.a)},p.a=0,N(Og,"RegEx/RegularExpression",591),P(228,122,KA,gp),p.Km=function(){return this.a},p.Qm=function(t){var i,s,a;switch(this.e){case 0:switch(this.a){case 124:case 42:case 43:case 63:case 40:case 41:case 46:case 91:case 123:case 92:a="\\"+VQ(this.a&Ji);break;case 12:a="\\f";break;case 10:a="\\n";break;case 13:a="\\r";break;case 9:a="\\t";break;case 27:a="\\e";break;default:this.a>=ys?(s=(i=this.a>>>0,"0"+i.toString(16)),a="\\v"+Vu(s,s.length-6,s.length)):a=""+VQ(this.a&Ji)}break;case 8:this==YOe||this==QOe?a=""+VQ(this.a&Ji):a="\\"+VQ(this.a&Ji);break;default:a=null}return a},p.a=0,N(Og,"RegEx/Token/CharToken",228),P(318,122,KA,Gv),p.Lm=function(t){return this.a},p.Nm=function(t){this.b=t},p.Om=function(t){this.c=t},p.Pm=function(){return 1},p.Qm=function(t){var i;if(this.e==3)if(this.c<0&&this.b<0)i=this.a.Qm(t)+"*";else if(this.c==this.b)i=this.a.Qm(t)+"{"+this.c+"}";else if(this.c>=0&&this.b>=0)i=this.a.Qm(t)+"{"+this.c+","+this.b+"}";else if(this.c>=0&&this.b<0)i=this.a.Qm(t)+"{"+this.c+",}";else throw ne(new vl("Token#toString(): CLOSURE "+this.c+ds+this.b));else if(this.c<0&&this.b<0)i=this.a.Qm(t)+"*?";else if(this.c==this.b)i=this.a.Qm(t)+"{"+this.c+"}?";else if(this.c>=0&&this.b>=0)i=this.a.Qm(t)+"{"+this.c+","+this.b+"}?";else if(this.c>=0&&this.b<0)i=this.a.Qm(t)+"{"+this.c+",}?";else throw ne(new vl("Token#toString(): NONGREEDYCLOSURE "+this.c+ds+this.b));return i},p.b=0,p.c=0,N(Og,"RegEx/Token/ClosureToken",318),P(837,122,KA,dve),p.Lm=function(t){return t==0?this.a:this.b},p.Pm=function(){return 2},p.Qm=function(t){var i;return this.b.e==3&&this.b.Lm(0)==this.a?i=this.a.Qm(t)+"+":this.b.e==9&&this.b.Lm(0)==this.a?i=this.a.Qm(t)+"+?":i=this.a.Qm(t)+(""+this.b.Qm(t)),i},N(Og,"RegEx/Token/ConcatToken",837),P(1945,122,KA,rmt),p.Lm=function(t){if(t==0)return this.d;if(t==1)return this.b;throw ne(new vl("Internal Error: "+t))},p.Pm=function(){return this.b?2:1},p.Qm=function(t){var i;return this.c>0?i="(?("+this.c+")":this.a.e==8?i="(?("+this.a+")":i="(?"+this.a,this.b?i+=this.d+"|"+this.b+")":i+=this.d+")",i},p.c=0,N(Og,"RegEx/Token/ConditionToken",1945),P(1946,122,KA,Kgt),p.Lm=function(t){return this.b},p.Pm=function(){return 1},p.Qm=function(t){return"(?"+(this.a==0?"":Kke(this.a))+(this.c==0?"":Kke(this.c))+":"+this.b.Qm(t)+")"},p.a=0,p.c=0,N(Og,"RegEx/Token/ModifierToken",1946),P(838,122,KA,Sve),p.Lm=function(t){return this.a},p.Pm=function(){return 1},p.Qm=function(t){var i;switch(i=null,this.e){case 6:this.b==0?i="(?:"+this.a.Qm(t)+")":i="("+this.a.Qm(t)+")";break;case 20:i="(?="+this.a.Qm(t)+")";break;case 21:i="(?!"+this.a.Qm(t)+")";break;case 22:i="(?<="+this.a.Qm(t)+")";break;case 23:i="(?"+this.a.Qm(t)+")"}return i},p.b=0,N(Og,"RegEx/Token/ParenToken",838),P(530,122,{3:1,122:1,530:1},HZ),p.Mm=function(){return this.b},p.Qm=function(t){return this.e==12?"\\"+this.a:SPn(this.b)},p.a=0,N(Og,"RegEx/Token/StringToken",530),P(477,122,KA,O$),p.Jm=function(t){ww(this,t)},p.Lm=function(t){return f(Mm(this.a,t),122)},p.Pm=function(){return this.a?this.a.a.c.length:0},p.Qm=function(t){var i,s,a,c,b;if(this.e==1){if(this.a.a.c.length==2)i=f(Mm(this.a,0),122),s=f(Mm(this.a,1),122),s.e==3&&s.Lm(0)==i?c=i.Qm(t)+"+":s.e==9&&s.Lm(0)==i?c=i.Qm(t)+"+?":c=i.Qm(t)+(""+s.Qm(t));else{for(b=new ig,a=0;a=this.c.b:this.a<=this.c.b},p.Sb=function(){return this.b>0},p.Tb=function(){return this.b},p.Vb=function(){return this.b-1},p.Qb=function(){throw ne(new ng(r6t))},p.a=0,p.b=0,N(WAe,"ExclusiveRange/RangeIterator",258);var df=pC(lG,"C"),Xn=pC(AI,"I"),Xc=pC($3,"Z"),m0=pC(TI,"J"),_c=pC(RI,"B"),Ro=pC(xI,"D"),nS=pC(CI,"F"),mE=pC($I,"S"),WFn=Ei("org.eclipse.elk.core.labels","ILabelManager"),n7e=Ei(hs,"DiagnosticChain"),r7e=Ei(I$t,"ResourceSet"),i7e=N(hs,"InvocationTargetException",null),NLt=(iF(),tkn),MLt=MLt=z$n;q3n(Gpn),G3n("permProps",[[["locale","default"],[i6t,"gecko1_8"]],[["locale","default"],[i6t,"safari"]]]),MLt(null,"elk",null)}).call(this)}).call(this,typeof window<"u"?window:typeof self<"u"?self:typeof window<"u"?window:{})},{}],3:[function(o,l,u){function d(E,A){if(!(E instanceof A))throw new TypeError("Cannot call a class as a function")}function h(E,A){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:E}function w(E,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);E.prototype=Object.create(A&&A.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(E,A):E.__proto__=A)}var v=o("./elk-api.js").default,y=function(E){w(A,E);function A(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};d(this,A);var R=Object.assign({},C),O=!1;try{o.resolve("web-worker"),O=!0}catch{}if(C.workerUrl)if(O){var M=o("web-worker");R.workerFactory=function(G){return new M(G)}}else console.warn(`Web worker requested but 'web-worker' package not installed. Consider installing the package or pass your own 'workerFactory' to ELK's constructor. -... Falling back to non-web worker version.`);if(!R.workerFactory){var L=o("./elk-worker.min.js"),H=L.Worker;R.workerFactory=function(G){return new H(G)}}return h(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,R))}return A}(v);Object.defineProperty(l.exports,"__esModule",{value:!0}),l.exports=y,y.default=y},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(o,l,u){l.exports=Worker},{}]},{},[3])(3)})})(Xdn);var ejr=Xdn.exports;const tjr=cv(ejr),njr=76,HJt=52;function rjr(){async function n(r,o){const l={algorithm:"mrtree","org.eclipse.elk.direction":"RIGHT","org.eclipse.elk.spacing.nodeNode":"400","org.eclipse.elk.spacing.edgeEdge":"20","org.eclipse.elk.spacing.edgeNode":"30","org.eclipse.elk.mrtree.spacing.level":"500","org.eclipse.elk.mrtree.compaction.strategy":"DOWN","org.eclipse.elk.mrtree.nodePlacement.strategy":"SIMPLE","org.eclipse.elk.mrtree.nodePlacement.bk.fixedAlignment":"BALANCED"},u=r.map(v=>({id:v.id,width:1e3,height:njr+HJt*v.data.resource.properties.length,labels:[{text:v.data.resource.name}],properties:v.data.resource.properties.map(y=>({id:y.id,width:1e3,height:HJt,labels:[{text:y.name}]}))})),d=o.map(v=>({id:`${v.source}-${v.target}`,sources:[v.source],targets:[v.target]})),h={id:"root",layoutOptions:l,children:u,edges:d};return new tjr().layout(h).then(v=>{const y=r.map(E=>{const A=v.children.find(C=>C.id===E.id);return E.position={x:A.x,y:A.y},E});for(const E of o){const A=y.find(R=>R.id===E.source),C=y.find(R=>R.id===E.target);if(A.position.xmL(r.term)),l=To(()=>r.term.termType!=="Literal"?null:r.term.language??null);function u(d){d.stopPropagation()}return(d,h)=>(ze(),Lt("div",null,[r.term.termType==="NamedNode"?(ze(),Lt("span",{key:0,class:"term",onMousedown:u,style:{cursor:"pointer"}},na(o.value),33)):fr("",!0),r.term.termType==="BlankNode"?(ze(),Lt("span",{key:1,class:"term",onMousedown:u,style:{cursor:"pointer"}},"["+na(o.value)+"]",33)):fr("",!0),r.term.termType==="Literal"?(ze(),Lt("span",{key:2,class:"term literal",onMousedown:u},[nm(na(o.value),1),l.value?(ze(),Lt("small",ijr,"@"+na(l.value),1)):fr("",!0)],32)):fr("",!0)]))}}),sjr=hJ(ojr,[["__scopeId","data-v-3bf480c8"]]),ljr={class:"resource-card"},ajr={class:"resource-card-header"},cjr={class:"resource-title"},ujr={class:"table-container"},fjr=["data-id"],djr={class:"predicate"},hjr={class:"object"},pjr=["onClick"],bjr=Ka({__name:"ResourceNode",props:{id:{},type:{},selected:{type:Boolean},connectable:{type:[Boolean,Number,String,Function]},position:{},dimensions:{},label:{},isValidTargetPos:{type:Function},isValidSourcePos:{type:Function},parent:{},parentNodeId:{},dragging:{type:Boolean},resizing:{type:Boolean},zIndex:{},targetPosition:{},sourcePosition:{},dragHandle:{},data:{},events:{}},setup(n){const{fitView:r,nodeLookup:o}=hu(),l=n;function u(d){if(!(d.termType==="NamedNode"||d.termType==="BlankNode"))return;const h=o.value.get(d.value);h&&r({nodes:[h.id],duration:1e3,padding:.3})}return(d,h)=>(ze(),Lt("div",null,[mr("div",ljr,[mr("header",ajr,[mr("h3",cjr,na(l.data.resource.name),1)]),mr("div",ujr,[(ze(!0),Lt(gi,null,uu(l.data.resource.properties,(w,v)=>(ze(),Lt("div",{key:v,"data-id":w.id,class:"table-row"},[mr("div",null,[(ze(!0),Lt(gi,null,uu(w.values,y=>(ze(),Lt("div",{key:y.value,style:{position:"relative"}},[y.termType==="NamedNode"||y.termType==="BlankNode"?(ze(),Nn(Wr(ej),{key:0,type:"source",position:Wr($i).Left,id:`${l.data.resource.id}-${w.id}-left`,style:{opacity:"0"},connectable:!1},null,8,["position","id"])):fr("",!0)]))),128))]),mr("div",djr,na(w.name),1),mr("div",hjr,[(ze(!0),Lt(gi,null,uu(w.values,y=>(ze(),Lt("div",{key:y.value,onClick:E=>u(y)},[bi(sjr,{term:y,env:l.data.env},null,8,["term","env"])],8,pjr))),128))]),(ze(!0),Lt(gi,null,uu(w.values,y=>(ze(),Lt("div",{key:y.value,style:{position:"relative"}},[y.termType==="NamedNode"||y.termType==="BlankNode"?(ze(),Nn(Wr(ej),{key:0,type:"source",position:Wr($i).Right,id:`${l.data.resource.id}-${w.id}-right`,style:{opacity:"0"},connectable:!1},null,8,["position","id"])):fr("",!0)]))),128))],8,fjr))),128))])])]))}}),gjr=hJ(bjr,[["__scopeId","data-v-0fcec032"]]),wjr={style:{height:"100%",width:"100%"}},mjr=Ka({__name:"GraphView",props:{dataset:{}},setup(n){const r=n,{elkLayout:o}=rjr(),{fitView:l,nodeLookup:u}=hu(),d=To(()=>t7r(r.dataset)),h=To(()=>n7r(d.value)),w=Fo([]),v=Fo([]);Zs(d,async A=>{const C=A.map(M=>({id:M.id,type:"custom",position:{x:0,y:0},data:{resource:M}})),R=h.value.map(M=>({id:`${M.source}-${M.sourceProperty}-${M.target}`,source:M.source,target:M.target,sourceHandle:`${M.source}-${M.sourceProperty}-right`,animated:!1,data:M,type:"custom",markerEnd:jhe.ArrowClosed})),O=await o(C,R);w.value=O.nodes,v.value=O.edges,setTimeout(()=>{l()},100)});function y(A){const C=A.node;v.value.filter(H=>H.source===C.id).flatMap(H=>u.value.get(H.target)).forEach(H=>{(H==null?void 0:H.position.x)j.source===C.id&&j.target===H.id).forEach(j=>{var te;const Q=j.sourceHandle;Q!=null&&Q.endsWith("-right")&&(j.sourceHandle=`${C.id}-${(te=j.data)==null?void 0:te.sourceProperty}-left`)}):v.value.filter(j=>j.source===C.id&&j.target===H.id).forEach(j=>{var te;const Q=j.sourceHandle;Q!=null&&Q.endsWith("-left")&&(j.sourceHandle=`${C.id}-${(te=j.data)==null?void 0:te.sourceProperty}-right`)})}),v.value.filter(H=>H.target===C.id).flatMap(H=>{const G=u.value.get(H.source);return G?[G]:[]}).forEach(H=>{H.position.xj.target===C.id&&j.source===H.id).forEach(j=>{const Q=j.sourceHandle;Q&&Q.endsWith("-left")&&(j.sourceHandle=`${H.id}-${j.data.sourceProperty}-right`)}):v.value.filter(j=>j.target===C.id&&j.source===H.id).forEach(j=>{const Q=j.sourceHandle;Q&&(Q!=null&&Q.endsWith("-right"))&&(j.sourceHandle=`${H.id}-${j.data.sourceProperty}-left`)})}),v.value=[...v.value]}function E(A){l({nodes:[A.edge.sourceNode.id],duration:1e3,padding:.3})}return(A,C)=>(ze(),Lt("div",wjr,[bi(Wr(YLr),{nodes:w.value,edges:v.value,"min-zoom":.05,"max-zoom":10,onNodeDrag:y,onEdgeClick:E},{"node-custom":vi(R=>[bi(gjr,EL(kLe(R)),null,16)]),"edge-custom":vi(R=>[bi(ZLr,EL(kLe(R)),null,16)]),_:1},8,["nodes","edges"])]))}});var Jdn={name:"ArrowDownIcon",extends:Fc};function yjr(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.99994 14C6.91097 14.0004 6.82281 13.983 6.74064 13.9489C6.65843 13.9148 6.58387 13.8646 6.52133 13.8013L1.10198 8.38193C0.982318 8.25351 0.917175 8.08367 0.920272 7.90817C0.923368 7.73267 0.994462 7.56523 1.11858 7.44111C1.24269 7.317 1.41014 7.2459 1.58563 7.2428C1.76113 7.23971 1.93098 7.30485 2.0594 7.42451L6.32263 11.6877V0.677419C6.32263 0.497756 6.394 0.325452 6.52104 0.198411C6.64808 0.0713706 6.82039 0 7.00005 0C7.17971 0 7.35202 0.0713706 7.47906 0.198411C7.6061 0.325452 7.67747 0.497756 7.67747 0.677419V11.6877L11.9407 7.42451C12.0691 7.30485 12.2389 7.23971 12.4144 7.2428C12.5899 7.2459 12.7574 7.317 12.8815 7.44111C13.0056 7.56523 13.0767 7.73267 13.0798 7.90817C13.0829 8.08367 13.0178 8.25351 12.8981 8.38193L7.47875 13.8013C7.41621 13.8646 7.34164 13.9148 7.25944 13.9489C7.17727 13.983 7.08912 14.0004 7.00015 14C7.00012 14 7.00009 14 7.00005 14C7.00001 14 6.99998 14 6.99994 14Z",fill:"currentColor"},null,-1)]),16)}Jdn.render=yjr;var Ydn={name:"ArrowUpIcon",extends:Fc};function vjr(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.51551 13.799C6.64205 13.9255 6.813 13.9977 6.99193 14C7.17087 13.9977 7.34182 13.9255 7.46835 13.799C7.59489 13.6725 7.66701 13.5015 7.66935 13.3226V2.31233L11.9326 6.57554C11.9951 6.63887 12.0697 6.68907 12.1519 6.72319C12.2341 6.75731 12.3223 6.77467 12.4113 6.77425C12.5003 6.77467 12.5885 6.75731 12.6707 6.72319C12.7529 6.68907 12.8274 6.63887 12.89 6.57554C13.0168 6.44853 13.0881 6.27635 13.0881 6.09683C13.0881 5.91732 13.0168 5.74514 12.89 5.61812L7.48846 0.216594C7.48274 0.210436 7.4769 0.204374 7.47094 0.198411C7.3439 0.0713707 7.1716 0 6.99193 0C6.81227 0 6.63997 0.0713707 6.51293 0.198411C6.50704 0.204296 6.50128 0.210278 6.49563 0.216354L1.09386 5.61812C0.974201 5.74654 0.909057 5.91639 0.912154 6.09189C0.91525 6.26738 0.986345 6.43483 1.11046 6.55894C1.23457 6.68306 1.40202 6.75415 1.57752 6.75725C1.75302 6.76035 1.92286 6.6952 2.05128 6.57554L6.31451 2.31231V13.3226C6.31685 13.5015 6.38898 13.6725 6.51551 13.799Z",fill:"currentColor"},null,-1)]),16)}Ydn.render=vjr;function PX(n){"@babel/helpers - typeof";return PX=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},PX(n)}function _jr(n,r,o){return(r=Sjr(r))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n}function Sjr(n){var r=Ejr(n,"string");return PX(r)=="symbol"?r:r+""}function Ejr(n,r){if(PX(n)!="object"||!n)return n;var o=n[Symbol.toPrimitive];if(o!==void 0){var l=o.call(n,r||"default");if(PX(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}var kjr=function(r){var o=r.dt;return` +... Falling back to non-web worker version.`);if(!R.workerFactory){var L=o("./elk-worker.min.js"),H=L.Worker;R.workerFactory=function(G){return new H(G)}}return h(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,R))}return A}(v);Object.defineProperty(l.exports,"__esModule",{value:!0}),l.exports=y,y.default=y},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(o,l,u){l.exports=Worker},{}]},{},[3])(3)})})(ihn);var mjr=ihn.exports;const yjr=cv(mjr),vjr=76,KJt=52;function _jr(){async function n(r,o){const l={algorithm:"mrtree","org.eclipse.elk.direction":"RIGHT","org.eclipse.elk.spacing.nodeNode":"400","org.eclipse.elk.spacing.edgeEdge":"20","org.eclipse.elk.spacing.edgeNode":"30","org.eclipse.elk.mrtree.spacing.level":"500","org.eclipse.elk.mrtree.compaction.strategy":"DOWN","org.eclipse.elk.mrtree.nodePlacement.strategy":"SIMPLE","org.eclipse.elk.mrtree.nodePlacement.bk.fixedAlignment":"BALANCED"},u=r.map(v=>({id:v.id,width:1e3,height:vjr+KJt*v.data.resource.properties.length,labels:[{text:v.data.resource.name}],properties:v.data.resource.properties.map(y=>({id:y.id,width:1e3,height:KJt,labels:[{text:y.name}]}))})),d=o.map(v=>({id:`${v.source}-${v.target}`,sources:[v.source],targets:[v.target]})),h={id:"root",layoutOptions:l,children:u,edges:d};return new yjr().layout(h).then(v=>{const y=r.map(E=>{const A=v.children.find(C=>C.id===E.id);return E.position={x:A.x,y:A.y},E});for(const E of o){const A=y.find(R=>R.id===E.source),C=y.find(R=>R.id===E.target);if(A.position.xwL(r.term)),l=To(()=>r.term.termType!=="Literal"?null:r.term.language??null);function u(d){d.stopPropagation()}return(d,h)=>(ze(),jt("div",null,[r.term.termType==="NamedNode"?(ze(),jt("span",{key:0,class:"term",onMousedown:u,style:{cursor:"pointer"}},na(o.value),33)):fr("",!0),r.term.termType==="BlankNode"?(ze(),jt("span",{key:1,class:"term",onMousedown:u,style:{cursor:"pointer"}},"["+na(o.value)+"]",33)):fr("",!0),r.term.termType==="Literal"?(ze(),jt("span",{key:2,class:"term literal",onMousedown:u},[nm(na(o.value),1),l.value?(ze(),jt("small",Sjr,"@"+na(l.value),1)):fr("",!0)],32)):fr("",!0)]))}}),kjr=hJ(Ejr,[["__scopeId","data-v-3bf480c8"]]),Rjr={class:"resource-card"},xjr={class:"resource-card-header"},Cjr={class:"resource-title"},Ajr={class:"table-container"},Tjr=["data-id"],$jr={class:"predicate"},Ijr={class:"object"},Pjr=["onClick"],Ojr=Ka({__name:"ResourceNode",props:{id:{},type:{},selected:{type:Boolean},connectable:{type:[Boolean,Number,String,Function]},position:{},dimensions:{},label:{},isValidTargetPos:{type:Function},isValidSourcePos:{type:Function},parent:{},parentNodeId:{},dragging:{type:Boolean},resizing:{type:Boolean},zIndex:{},targetPosition:{},sourcePosition:{},dragHandle:{},data:{},events:{}},setup(n){const{fitView:r,nodeLookup:o}=hu(),l=n;function u(d){if(!(d.termType==="NamedNode"||d.termType==="BlankNode"))return;const h=o.value.get(d.value);h&&r({nodes:[h.id],duration:1e3,padding:.3})}return(d,h)=>(ze(),jt("div",null,[mr("div",Rjr,[mr("header",xjr,[mr("h3",Cjr,na(l.data.resource.name),1)]),mr("div",Ajr,[(ze(!0),jt(gi,null,uu(l.data.resource.properties,(w,v)=>(ze(),jt("div",{key:v,"data-id":w.id,class:"table-row"},[mr("div",null,[(ze(!0),jt(gi,null,uu(w.values,y=>(ze(),jt("div",{key:y.value,style:{position:"relative"}},[y.termType==="NamedNode"||y.termType==="BlankNode"?(ze(),Nn(Wr(ZL),{key:0,type:"source",position:Wr($i).Left,id:`${l.data.resource.id}-${w.id}-left`,style:{opacity:"0"},connectable:!1},null,8,["position","id"])):fr("",!0)]))),128))]),mr("div",$jr,na(w.name),1),mr("div",Ijr,[(ze(!0),jt(gi,null,uu(w.values,y=>(ze(),jt("div",{key:y.value,onClick:E=>u(y)},[bi(kjr,{term:y,env:l.data.env},null,8,["term","env"])],8,Pjr))),128))]),(ze(!0),jt(gi,null,uu(w.values,y=>(ze(),jt("div",{key:y.value,style:{position:"relative"}},[y.termType==="NamedNode"||y.termType==="BlankNode"?(ze(),Nn(Wr(ZL),{key:0,type:"source",position:Wr($i).Right,id:`${l.data.resource.id}-${w.id}-right`,style:{opacity:"0"},connectable:!1},null,8,["position","id"])):fr("",!0)]))),128))],8,Tjr))),128))])])]))}}),Njr=hJ(Ojr,[["__scopeId","data-v-0fcec032"]]),Mjr={style:{height:"100%",width:"100%"}},Djr=Ka({__name:"GraphView",props:{dataset:{}},setup(n){const r=n,{elkLayout:o}=_jr(),{fitView:l,nodeLookup:u}=hu(),d=To(()=>y7r(r.dataset)),h=To(()=>v7r(d.value)),w=Fo([]),v=Fo([]);Zs(d,async A=>{const C=A.map(M=>({id:M.id,type:"custom",position:{x:0,y:0},data:{resource:M}})),R=h.value.map(M=>({id:`${M.source}-${M.sourceProperty}-${M.target}`,source:M.source,target:M.target,sourceHandle:`${M.source}-${M.sourceProperty}-right`,animated:!1,data:M,type:"custom",markerEnd:Whe.ArrowClosed})),O=await o(C,R);w.value=O.nodes,v.value=O.edges,setTimeout(()=>{l()},100)});function y(A){const C=A.node;v.value.filter(H=>H.source===C.id).flatMap(H=>u.value.get(H.target)).forEach(H=>{(H==null?void 0:H.position.x)j.source===C.id&&j.target===H.id).forEach(j=>{var te;const Q=j.sourceHandle;Q!=null&&Q.endsWith("-right")&&(j.sourceHandle=`${C.id}-${(te=j.data)==null?void 0:te.sourceProperty}-left`)}):v.value.filter(j=>j.source===C.id&&j.target===H.id).forEach(j=>{var te;const Q=j.sourceHandle;Q!=null&&Q.endsWith("-left")&&(j.sourceHandle=`${C.id}-${(te=j.data)==null?void 0:te.sourceProperty}-right`)})}),v.value.filter(H=>H.target===C.id).flatMap(H=>{const G=u.value.get(H.source);return G?[G]:[]}).forEach(H=>{H.position.xj.target===C.id&&j.source===H.id).forEach(j=>{const Q=j.sourceHandle;Q&&Q.endsWith("-left")&&(j.sourceHandle=`${H.id}-${j.data.sourceProperty}-right`)}):v.value.filter(j=>j.target===C.id&&j.source===H.id).forEach(j=>{const Q=j.sourceHandle;Q&&(Q!=null&&Q.endsWith("-right"))&&(j.sourceHandle=`${H.id}-${j.data.sourceProperty}-left`)})}),v.value=[...v.value]}function E(A){l({nodes:[A.edge.sourceNode.id],duration:1e3,padding:.3})}return(A,C)=>(ze(),jt("div",Mjr,[bi(Wr(bjr),{nodes:w.value,edges:v.value,"min-zoom":.05,"max-zoom":10,onNodeDrag:y,onEdgeClick:E},{"node-custom":vi(R=>[bi(Njr,SL(ILe(R)),null,16)]),"edge-custom":vi(R=>[bi(wjr,SL(ILe(R)),null,16)]),_:1},8,["nodes","edges"])]))}});var ohn={name:"ArrowDownIcon",extends:Fc};function Ljr(n,r,o,l,u,d){return ze(),jt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.99994 14C6.91097 14.0004 6.82281 13.983 6.74064 13.9489C6.65843 13.9148 6.58387 13.8646 6.52133 13.8013L1.10198 8.38193C0.982318 8.25351 0.917175 8.08367 0.920272 7.90817C0.923368 7.73267 0.994462 7.56523 1.11858 7.44111C1.24269 7.317 1.41014 7.2459 1.58563 7.2428C1.76113 7.23971 1.93098 7.30485 2.0594 7.42451L6.32263 11.6877V0.677419C6.32263 0.497756 6.394 0.325452 6.52104 0.198411C6.64808 0.0713706 6.82039 0 7.00005 0C7.17971 0 7.35202 0.0713706 7.47906 0.198411C7.6061 0.325452 7.67747 0.497756 7.67747 0.677419V11.6877L11.9407 7.42451C12.0691 7.30485 12.2389 7.23971 12.4144 7.2428C12.5899 7.2459 12.7574 7.317 12.8815 7.44111C13.0056 7.56523 13.0767 7.73267 13.0798 7.90817C13.0829 8.08367 13.0178 8.25351 12.8981 8.38193L7.47875 13.8013C7.41621 13.8646 7.34164 13.9148 7.25944 13.9489C7.17727 13.983 7.08912 14.0004 7.00015 14C7.00012 14 7.00009 14 7.00005 14C7.00001 14 6.99998 14 6.99994 14Z",fill:"currentColor"},null,-1)]),16)}ohn.render=Ljr;var shn={name:"ArrowUpIcon",extends:Fc};function jjr(n,r,o,l,u,d){return ze(),jt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.51551 13.799C6.64205 13.9255 6.813 13.9977 6.99193 14C7.17087 13.9977 7.34182 13.9255 7.46835 13.799C7.59489 13.6725 7.66701 13.5015 7.66935 13.3226V2.31233L11.9326 6.57554C11.9951 6.63887 12.0697 6.68907 12.1519 6.72319C12.2341 6.75731 12.3223 6.77467 12.4113 6.77425C12.5003 6.77467 12.5885 6.75731 12.6707 6.72319C12.7529 6.68907 12.8274 6.63887 12.89 6.57554C13.0168 6.44853 13.0881 6.27635 13.0881 6.09683C13.0881 5.91732 13.0168 5.74514 12.89 5.61812L7.48846 0.216594C7.48274 0.210436 7.4769 0.204374 7.47094 0.198411C7.3439 0.0713707 7.1716 0 6.99193 0C6.81227 0 6.63997 0.0713707 6.51293 0.198411C6.50704 0.204296 6.50128 0.210278 6.49563 0.216354L1.09386 5.61812C0.974201 5.74654 0.909057 5.91639 0.912154 6.09189C0.91525 6.26738 0.986345 6.43483 1.11046 6.55894C1.23457 6.68306 1.40202 6.75415 1.57752 6.75725C1.75302 6.76035 1.92286 6.6952 2.05128 6.57554L6.31451 2.31231V13.3226C6.31685 13.5015 6.38898 13.6725 6.51551 13.799Z",fill:"currentColor"},null,-1)]),16)}shn.render=jjr;function PX(n){"@babel/helpers - typeof";return PX=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},PX(n)}function Fjr(n,r,o){return(r=Bjr(r))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n}function Bjr(n){var r=Wjr(n,"string");return PX(r)=="symbol"?r:r+""}function Wjr(n,r){if(PX(n)!="object"||!n)return n;var o=n[Symbol.toPrimitive];if(o!==void 0){var l=o.call(n,r||"default");if(PX(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}var Hjr=function(r){var o=r.dt;return` .p-paginator { display: flex; align-items: center; @@ -2269,7 +2269,7 @@ Consider installing the package or pass your own 'workerFactory' to ELK's constr .p-paginator-last:dir(rtl) { transform: rotate(180deg); } -`)},Rjr={paginator:function(r){var o=r.instance,l=r.key;return["p-paginator p-component",_jr({"p-paginator-default":!o.hasBreakpoints()},"p-paginator-".concat(l),o.hasBreakpoints())]},content:"p-paginator-content",contentStart:"p-paginator-content-start",contentEnd:"p-paginator-content-end",first:function(r){var o=r.instance;return["p-paginator-first",{"p-disabled":o.$attrs.disabled}]},firstIcon:"p-paginator-first-icon",prev:function(r){var o=r.instance;return["p-paginator-prev",{"p-disabled":o.$attrs.disabled}]},prevIcon:"p-paginator-prev-icon",next:function(r){var o=r.instance;return["p-paginator-next",{"p-disabled":o.$attrs.disabled}]},nextIcon:"p-paginator-next-icon",last:function(r){var o=r.instance;return["p-paginator-last",{"p-disabled":o.$attrs.disabled}]},lastIcon:"p-paginator-last-icon",pages:"p-paginator-pages",page:function(r){var o=r.props,l=r.pageLink;return["p-paginator-page",{"p-paginator-page-selected":l-1===o.page}]},current:"p-paginator-current",pcRowPerPageDropdown:"p-paginator-rpp-dropdown",pcJumpToPageDropdown:"p-paginator-jtp-dropdown",pcJumpToPageInputText:"p-paginator-jtp-input"},xjr=Bs.extend({name:"paginator",theme:kjr,classes:Rjr}),Qdn={name:"AngleDoubleLeftIcon",extends:Fc};function Cjr(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.71602 11.164C5.80782 11.2021 5.9063 11.2215 6.00569 11.221C6.20216 11.2301 6.39427 11.1612 6.54025 11.0294C6.68191 10.8875 6.76148 10.6953 6.76148 10.4948C6.76148 10.2943 6.68191 10.1021 6.54025 9.96024L3.51441 6.9344L6.54025 3.90855C6.624 3.76126 6.65587 3.59011 6.63076 3.42254C6.60564 3.25498 6.525 3.10069 6.40175 2.98442C6.2785 2.86815 6.11978 2.79662 5.95104 2.7813C5.78229 2.76598 5.61329 2.80776 5.47112 2.89994L1.97123 6.39983C1.82957 6.54167 1.75 6.73393 1.75 6.9344C1.75 7.13486 1.82957 7.32712 1.97123 7.46896L5.47112 10.9991C5.54096 11.0698 5.62422 11.1259 5.71602 11.164ZM11.0488 10.9689C11.1775 11.1156 11.3585 11.2061 11.5531 11.221C11.7477 11.2061 11.9288 11.1156 12.0574 10.9689C12.1815 10.8302 12.25 10.6506 12.25 10.4645C12.25 10.2785 12.1815 10.0989 12.0574 9.96024L9.03158 6.93439L12.0574 3.90855C12.1248 3.76739 12.1468 3.60881 12.1204 3.45463C12.0939 3.30045 12.0203 3.15826 11.9097 3.04765C11.7991 2.93703 11.6569 2.86343 11.5027 2.83698C11.3486 2.81053 11.19 2.83252 11.0488 2.89994L7.51865 6.36957C7.37699 6.51141 7.29742 6.70367 7.29742 6.90414C7.29742 7.1046 7.37699 7.29686 7.51865 7.4387L11.0488 10.9689Z",fill:"currentColor"},null,-1)]),16)}Qdn.render=Cjr;var Zdn={name:"AngleDownIcon",extends:Fc};function Ajr(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{d:"M3.58659 4.5007C3.68513 4.50023 3.78277 4.51945 3.87379 4.55723C3.9648 4.59501 4.04735 4.65058 4.11659 4.7207L7.11659 7.7207L10.1166 4.7207C10.2619 4.65055 10.4259 4.62911 10.5843 4.65956C10.7427 4.69002 10.8871 4.77074 10.996 4.88976C11.1049 5.00877 11.1726 5.15973 11.1889 5.32022C11.2052 5.48072 11.1693 5.6422 11.0866 5.7807L7.58659 9.2807C7.44597 9.42115 7.25534 9.50004 7.05659 9.50004C6.85784 9.50004 6.66722 9.42115 6.52659 9.2807L3.02659 5.7807C2.88614 5.64007 2.80725 5.44945 2.80725 5.2507C2.80725 5.05195 2.88614 4.86132 3.02659 4.7207C3.09932 4.64685 3.18675 4.58911 3.28322 4.55121C3.37969 4.51331 3.48305 4.4961 3.58659 4.5007Z",fill:"currentColor"},null,-1)]),16)}Zdn.render=Ajr;var ehn={name:"AngleUpIcon",extends:Fc};function Tjr(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{d:"M10.4134 9.49931C10.3148 9.49977 10.2172 9.48055 10.1262 9.44278C10.0352 9.405 9.95263 9.34942 9.88338 9.27931L6.88338 6.27931L3.88338 9.27931C3.73811 9.34946 3.57409 9.3709 3.41567 9.34044C3.25724 9.30999 3.11286 9.22926 3.00395 9.11025C2.89504 8.99124 2.82741 8.84028 2.8111 8.67978C2.79478 8.51928 2.83065 8.35781 2.91338 8.21931L6.41338 4.71931C6.55401 4.57886 6.74463 4.49997 6.94338 4.49997C7.14213 4.49997 7.33276 4.57886 7.47338 4.71931L10.9734 8.21931C11.1138 8.35994 11.1927 8.55056 11.1927 8.74931C11.1927 8.94806 11.1138 9.13868 10.9734 9.27931C10.9007 9.35315 10.8132 9.41089 10.7168 9.44879C10.6203 9.48669 10.5169 9.5039 10.4134 9.49931Z",fill:"currentColor"},null,-1)]),16)}ehn.render=Tjr;var $jr=function(r){var o=r.dt;return` +`)},Ujr={paginator:function(r){var o=r.instance,l=r.key;return["p-paginator p-component",Fjr({"p-paginator-default":!o.hasBreakpoints()},"p-paginator-".concat(l),o.hasBreakpoints())]},content:"p-paginator-content",contentStart:"p-paginator-content-start",contentEnd:"p-paginator-content-end",first:function(r){var o=r.instance;return["p-paginator-first",{"p-disabled":o.$attrs.disabled}]},firstIcon:"p-paginator-first-icon",prev:function(r){var o=r.instance;return["p-paginator-prev",{"p-disabled":o.$attrs.disabled}]},prevIcon:"p-paginator-prev-icon",next:function(r){var o=r.instance;return["p-paginator-next",{"p-disabled":o.$attrs.disabled}]},nextIcon:"p-paginator-next-icon",last:function(r){var o=r.instance;return["p-paginator-last",{"p-disabled":o.$attrs.disabled}]},lastIcon:"p-paginator-last-icon",pages:"p-paginator-pages",page:function(r){var o=r.props,l=r.pageLink;return["p-paginator-page",{"p-paginator-page-selected":l-1===o.page}]},current:"p-paginator-current",pcRowPerPageDropdown:"p-paginator-rpp-dropdown",pcJumpToPageDropdown:"p-paginator-jtp-dropdown",pcJumpToPageInputText:"p-paginator-jtp-input"},Gjr=Bs.extend({name:"paginator",theme:Hjr,classes:Ujr}),lhn={name:"AngleDoubleLeftIcon",extends:Fc};function Vjr(n,r,o,l,u,d){return ze(),jt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.71602 11.164C5.80782 11.2021 5.9063 11.2215 6.00569 11.221C6.20216 11.2301 6.39427 11.1612 6.54025 11.0294C6.68191 10.8875 6.76148 10.6953 6.76148 10.4948C6.76148 10.2943 6.68191 10.1021 6.54025 9.96024L3.51441 6.9344L6.54025 3.90855C6.624 3.76126 6.65587 3.59011 6.63076 3.42254C6.60564 3.25498 6.525 3.10069 6.40175 2.98442C6.2785 2.86815 6.11978 2.79662 5.95104 2.7813C5.78229 2.76598 5.61329 2.80776 5.47112 2.89994L1.97123 6.39983C1.82957 6.54167 1.75 6.73393 1.75 6.9344C1.75 7.13486 1.82957 7.32712 1.97123 7.46896L5.47112 10.9991C5.54096 11.0698 5.62422 11.1259 5.71602 11.164ZM11.0488 10.9689C11.1775 11.1156 11.3585 11.2061 11.5531 11.221C11.7477 11.2061 11.9288 11.1156 12.0574 10.9689C12.1815 10.8302 12.25 10.6506 12.25 10.4645C12.25 10.2785 12.1815 10.0989 12.0574 9.96024L9.03158 6.93439L12.0574 3.90855C12.1248 3.76739 12.1468 3.60881 12.1204 3.45463C12.0939 3.30045 12.0203 3.15826 11.9097 3.04765C11.7991 2.93703 11.6569 2.86343 11.5027 2.83698C11.3486 2.81053 11.19 2.83252 11.0488 2.89994L7.51865 6.36957C7.37699 6.51141 7.29742 6.70367 7.29742 6.90414C7.29742 7.1046 7.37699 7.29686 7.51865 7.4387L11.0488 10.9689Z",fill:"currentColor"},null,-1)]),16)}lhn.render=Vjr;var ahn={name:"AngleDownIcon",extends:Fc};function zjr(n,r,o,l,u,d){return ze(),jt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{d:"M3.58659 4.5007C3.68513 4.50023 3.78277 4.51945 3.87379 4.55723C3.9648 4.59501 4.04735 4.65058 4.11659 4.7207L7.11659 7.7207L10.1166 4.7207C10.2619 4.65055 10.4259 4.62911 10.5843 4.65956C10.7427 4.69002 10.8871 4.77074 10.996 4.88976C11.1049 5.00877 11.1726 5.15973 11.1889 5.32022C11.2052 5.48072 11.1693 5.6422 11.0866 5.7807L7.58659 9.2807C7.44597 9.42115 7.25534 9.50004 7.05659 9.50004C6.85784 9.50004 6.66722 9.42115 6.52659 9.2807L3.02659 5.7807C2.88614 5.64007 2.80725 5.44945 2.80725 5.2507C2.80725 5.05195 2.88614 4.86132 3.02659 4.7207C3.09932 4.64685 3.18675 4.58911 3.28322 4.55121C3.37969 4.51331 3.48305 4.4961 3.58659 4.5007Z",fill:"currentColor"},null,-1)]),16)}ahn.render=zjr;var chn={name:"AngleUpIcon",extends:Fc};function Kjr(n,r,o,l,u,d){return ze(),jt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{d:"M10.4134 9.49931C10.3148 9.49977 10.2172 9.48055 10.1262 9.44278C10.0352 9.405 9.95263 9.34942 9.88338 9.27931L6.88338 6.27931L3.88338 9.27931C3.73811 9.34946 3.57409 9.3709 3.41567 9.34044C3.25724 9.30999 3.11286 9.22926 3.00395 9.11025C2.89504 8.99124 2.82741 8.84028 2.8111 8.67978C2.79478 8.51928 2.83065 8.35781 2.91338 8.21931L6.41338 4.71931C6.55401 4.57886 6.74463 4.49997 6.94338 4.49997C7.14213 4.49997 7.33276 4.57886 7.47338 4.71931L10.9734 8.21931C11.1138 8.35994 11.1927 8.55056 11.1927 8.74931C11.1927 8.94806 11.1138 9.13868 10.9734 9.27931C10.9007 9.35315 10.8132 9.41089 10.7168 9.44879C10.6203 9.48669 10.5169 9.5039 10.4134 9.49931Z",fill:"currentColor"},null,-1)]),16)}chn.render=Kjr;var qjr=function(r){var o=r.dt;return` .p-inputnumber { display: inline-flex; position: relative; @@ -2428,9 +2428,9 @@ Consider installing the package or pass your own 'workerFactory' to ELK's constr width: `).concat(o("form.field.lg.font.size"),`; height: `).concat(o("form.field.lg.font.size"),`; } -`)},Ijr={root:function(r){var o=r.instance,l=r.props;return["p-inputnumber p-component p-inputwrapper",{"p-inputwrapper-filled":o.$filled||l.allowEmpty===!1,"p-inputwrapper-focus":o.focused,"p-inputnumber-stacked":l.showButtons&&l.buttonLayout==="stacked","p-inputnumber-horizontal":l.showButtons&&l.buttonLayout==="horizontal","p-inputnumber-vertical":l.showButtons&&l.buttonLayout==="vertical","p-inputnumber-fluid":o.$fluid}]},pcInputText:"p-inputnumber-input",buttonGroup:"p-inputnumber-button-group",incrementButton:function(r){var o=r.instance,l=r.props;return["p-inputnumber-button p-inputnumber-increment-button",{"p-disabled":l.showButtons&&l.max!==null&&o.maxBoundry()}]},decrementButton:function(r){var o=r.instance,l=r.props;return["p-inputnumber-button p-inputnumber-decrement-button",{"p-disabled":l.showButtons&&l.min!==null&&o.minBoundry()}]}},Pjr=Bs.extend({name:"inputnumber",theme:$jr,classes:Ijr}),Ojr={name:"BaseInputNumber",extends:QX,props:{format:{type:Boolean,default:!0},showButtons:{type:Boolean,default:!1},buttonLayout:{type:String,default:"stacked"},incrementButtonClass:{type:String,default:null},decrementButtonClass:{type:String,default:null},incrementButtonIcon:{type:String,default:void 0},incrementIcon:{type:String,default:void 0},decrementButtonIcon:{type:String,default:void 0},decrementIcon:{type:String,default:void 0},locale:{type:String,default:void 0},localeMatcher:{type:String,default:void 0},mode:{type:String,default:"decimal"},prefix:{type:String,default:null},suffix:{type:String,default:null},currency:{type:String,default:void 0},currencyDisplay:{type:String,default:void 0},useGrouping:{type:Boolean,default:!0},minFractionDigits:{type:Number,default:void 0},maxFractionDigits:{type:Number,default:void 0},roundingMode:{type:String,default:"halfExpand",validator:function(r){return["ceil","floor","expand","trunc","halfCeil","halfFloor","halfExpand","halfTrunc","halfEven"].includes(r)}},min:{type:Number,default:null},max:{type:Number,default:null},step:{type:Number,default:1},allowEmpty:{type:Boolean,default:!0},highlightOnFocus:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},placeholder:{type:String,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:Pjr,provide:function(){return{$pcInputNumber:this,$parentInstance:this}}};function OX(n){"@babel/helpers - typeof";return OX=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},OX(n)}function UJt(n,r){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);r&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable})),o.push.apply(o,l)}return o}function GJt(n){for(var r=1;rn.length)&&(r=n.length);for(var o=0,l=Array(r);o1){var v=this.isNumeralChar(d.charAt(o))?o+1:o+2;this.$refs.input.$el.setSelectionRange(v,v)}else this.isNumeralChar(d.charAt(o-1))||r.preventDefault();break;case"ArrowRight":if(u>1){var y=l-1;this.$refs.input.$el.setSelectionRange(y,y)}else this.isNumeralChar(d.charAt(o))||r.preventDefault();break;case"Tab":case"Enter":case"NumpadEnter":h=this.validateValue(this.parseValue(d)),this.$refs.input.$el.value=this.formatValue(h),this.$refs.input.$el.setAttribute("aria-valuenow",h),this.updateModel(r,h);break;case"Backspace":{if(r.preventDefault(),o===l){var E=d.charAt(o-1),A=this.getDecimalCharIndexes(d),C=A.decimalCharIndex,R=A.decimalCharIndexWithoutPrefix;if(this.isNumeralChar(E)){var O=this.getDecimalLength(d);if(this._group.test(E))this._group.lastIndex=0,h=d.slice(0,o-2)+d.slice(o-1);else if(this._decimal.test(E))this._decimal.lastIndex=0,O?this.$refs.input.$el.setSelectionRange(o-1,o-1):h=d.slice(0,o-1)+d.slice(o);else if(C>0&&o>C){var M=this.isDecimalMode()&&(this.minFractionDigits||0)0?h:""):h=d.slice(0,o-1)+d.slice(o)}this.updateValue(r,h,null,"delete-single")}else h=this.deleteRange(d,o,l),this.updateValue(r,h,null,"delete-range");break}case"Delete":if(r.preventDefault(),o===l){var L=d.charAt(o),H=this.getDecimalCharIndexes(d),G=H.decimalCharIndex,j=H.decimalCharIndexWithoutPrefix;if(this.isNumeralChar(L)){var Q=this.getDecimalLength(d);if(this._group.test(L))this._group.lastIndex=0,h=d.slice(0,o)+d.slice(o+2);else if(this._decimal.test(L))this._decimal.lastIndex=0,Q?this.$refs.input.$el.setSelectionRange(o+1,o+1):h=d.slice(0,o)+d.slice(o+1);else if(G>0&&o>G){var te=this.isDecimalMode()&&(this.minFractionDigits||0)0?h:""):h=d.slice(0,o)+d.slice(o+1)}this.updateValue(r,h,null,"delete-back-single")}else h=this.deleteRange(d,o,l),this.updateValue(r,h,null,"delete-range");break;case"Home":r.preventDefault(),ks(this.min)&&this.updateModel(r,this.min);break;case"End":r.preventDefault(),ks(this.max)&&this.updateModel(r,this.max);break}}},onInputKeyPress:function(r){if(!this.readonly){var o=r.key,l=this.isDecimalSign(o),u=this.isMinusSign(o);r.code!=="Enter"&&r.preventDefault(),(Number(o)>=0&&Number(o)<=9||u||l)&&this.insert(r,o,{isDecimalSign:l,isMinusSign:u})}},onPaste:function(r){r.preventDefault();var o=(r.clipboardData||window.clipboardData).getData("Text");if(o){var l=this.parseValue(o);l!=null&&this.insert(r,l.toString())}},allowMinusSign:function(){return this.min===null||this.min<0},isMinusSign:function(r){return this._minusSign.test(r)||r==="-"?(this._minusSign.lastIndex=0,!0):!1},isDecimalSign:function(r){return this._decimal.test(r)?(this._decimal.lastIndex=0,!0):!1},isDecimalMode:function(){return this.mode==="decimal"},getDecimalCharIndexes:function(r){var o=r.search(this._decimal);this._decimal.lastIndex=0;var l=r.replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,""),u=l.search(this._decimal);return this._decimal.lastIndex=0,{decimalCharIndex:o,decimalCharIndexWithoutPrefix:u}},getCharIndexes:function(r){var o=r.search(this._decimal);this._decimal.lastIndex=0;var l=r.search(this._minusSign);this._minusSign.lastIndex=0;var u=r.search(this._suffix);this._suffix.lastIndex=0;var d=r.search(this._currency);return this._currency.lastIndex=0,{decimalCharIndex:o,minusCharIndex:l,suffixCharIndex:u,currencyCharIndex:d}},insert:function(r,o){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{isDecimalSign:!1,isMinusSign:!1},u=o.search(this._minusSign);if(this._minusSign.lastIndex=0,!(!this.allowMinusSign()&&u!==-1)){var d=this.$refs.input.$el.selectionStart,h=this.$refs.input.$el.selectionEnd,w=this.$refs.input.$el.value.trim(),v=this.getCharIndexes(w),y=v.decimalCharIndex,E=v.minusCharIndex,A=v.suffixCharIndex,C=v.currencyCharIndex,R;if(l.isMinusSign)d===0&&(R=w,(E===-1||h!==0)&&(R=this.insertText(w,o,0,h)),this.updateValue(r,R,o,"insert"));else if(l.isDecimalSign)y>0&&d===y?this.updateValue(r,w,o,"insert"):y>d&&y0&&d>y){if(d+o.length-(y+1)<=O){var L=C>=d?C-1:A>=d?A:w.length;R=w.slice(0,d)+o+w.slice(d+o.length,L)+w.slice(L),this.updateValue(r,R,o,M)}}else R=this.insertText(w,o,d,h),this.updateValue(r,R,o,M)}}},insertText:function(r,o,l,u){var d=o==="."?o:o.split(".");if(d.length===2){var h=r.slice(l,u).search(this._decimal);return this._decimal.lastIndex=0,h>0?r.slice(0,l)+this.formatValue(o)+r.slice(u):this.formatValue(o)||r}else return u-l===r.length?this.formatValue(o):l===0?o+r.slice(u):u===r.length?r.slice(0,l)+o:r.slice(0,l)+o+r.slice(u)},deleteRange:function(r,o,l){var u;return l-o===r.length?u="":o===0?u=r.slice(l):l===r.length?u=r.slice(0,o):u=r.slice(0,o)+r.slice(l),u},initCursor:function(){var r=this.$refs.input.$el.selectionStart,o=this.$refs.input.$el.value,l=o.length,u=null,d=(this.prefixChar||"").length;o=o.replace(this._prefix,""),r=r-d;var h=o.charAt(r);if(this.isNumeralChar(h))return r+d;for(var w=r-1;w>=0;)if(h=o.charAt(w),this.isNumeralChar(h)){u=w+d;break}else w--;if(u!==null)this.$refs.input.$el.setSelectionRange(u+1,u+1);else{for(w=r;wthis.max?this.max:r},updateInput:function(r,o,l,u){o=o||"";var d=this.$refs.input.$el.value,h=this.formatValue(r),w=d.length;if(h!==u&&(h=this.concatValues(h,u)),w===0){this.$refs.input.$el.value=h,this.$refs.input.$el.setSelectionRange(0,0);var v=this.initCursor(),y=v+o.length;this.$refs.input.$el.setSelectionRange(y,y)}else{var E=this.$refs.input.$el.selectionStart,A=this.$refs.input.$el.selectionEnd;this.$refs.input.$el.value=h;var C=h.length;if(l==="range-insert"){var R=this.parseValue((d||"").slice(0,E)),O=R!==null?R.toString():"",M=O.split("").join("(".concat(this.groupChar,")?")),L=new RegExp(M,"g");L.test(h);var H=o.split("").join("(".concat(this.groupChar,")?")),G=new RegExp(H,"g");G.test(h.slice(L.lastIndex)),A=L.lastIndex+G.lastIndex,this.$refs.input.$el.setSelectionRange(A,A)}else if(C===w)l==="insert"||l==="delete-back-single"?this.$refs.input.$el.setSelectionRange(A+1,A+1):l==="delete-single"?this.$refs.input.$el.setSelectionRange(A-1,A-1):(l==="delete-range"||l==="spin")&&this.$refs.input.$el.setSelectionRange(A,A);else if(l==="delete-back-single"){var j=d.charAt(A-1),Q=d.charAt(A),te=w-C,pe=this._group.test(Q);pe&&te===1?A+=1:!pe&&this.isNumeralChar(j)&&(A+=-1*te+1),this._group.lastIndex=0,this.$refs.input.$el.setSelectionRange(A,A)}else if(d==="-"&&l==="insert"){this.$refs.input.$el.setSelectionRange(0,0);var Le=this.initCursor(),Ee=Le+o.length+1;this.$refs.input.$el.setSelectionRange(Ee,Ee)}else A=A+(C-w),this.$refs.input.$el.setSelectionRange(A,A)}this.$refs.input.$el.setAttribute("aria-valuenow",r)},concatValues:function(r,o){if(r&&o){var l=o.search(this._decimal);return this._decimal.lastIndex=0,this.suffixChar?l!==-1?r.replace(this.suffixChar,"").split(this._decimal)[0]+o.replace(this.suffixChar,"").slice(l)+this.suffixChar:r:l!==-1?r.split(this._decimal)[0]+o.slice(l):r}return r},getDecimalLength:function(r){if(r){var o=r.split(this._decimal);if(o.length===2)return o[1].replace(this._suffix,"").trim().replace(/\s/g,"").replace(this._currency,"").length}return 0},updateModel:function(r,o){this.writeValue(o,r)},onInputFocus:function(r){this.focused=!0,!this.disabled&&!this.readonly&&this.$refs.input.$el.value!==Ajt()&&this.highlightOnFocus&&r.target.select(),this.$emit("focus",r)},onInputBlur:function(r){var o,l;this.focused=!1;var u=r.target,d=this.validateValue(this.parseValue(u.value));this.$emit("blur",{originalEvent:r,value:u.value}),(o=(l=this.formField).onBlur)===null||o===void 0||o.call(l,r),u.value=this.formatValue(d),u.setAttribute("aria-valuenow",d),this.updateModel(r,d),!this.disabled&&!this.readonly&&this.highlightOnFocus&&Afe()},clearTimer:function(){this.timer&&clearInterval(this.timer)},maxBoundry:function(){return this.d_value>=this.max},minBoundry:function(){return this.d_value<=this.min}},computed:{upButtonListeners:function(){var r=this;return{mousedown:function(l){return r.onUpButtonMouseDown(l)},mouseup:function(l){return r.onUpButtonMouseUp(l)},mouseleave:function(l){return r.onUpButtonMouseLeave(l)},keydown:function(l){return r.onUpButtonKeyDown(l)},keyup:function(l){return r.onUpButtonKeyUp(l)}}},downButtonListeners:function(){var r=this;return{mousedown:function(l){return r.onDownButtonMouseDown(l)},mouseup:function(l){return r.onDownButtonMouseUp(l)},mouseleave:function(l){return r.onDownButtonMouseLeave(l)},keydown:function(l){return r.onDownButtonKeyDown(l)},keyup:function(l){return r.onDownButtonKeyUp(l)}}},formattedValue:function(){var r=!this.d_value&&!this.allowEmpty?0:this.d_value;return this.formatValue(r)},getFormatter:function(){return this.numberFormat}},components:{InputText:W8,AngleUpIcon:ehn,AngleDownIcon:Zdn}},Hjr=["disabled"],Ujr=["disabled"],Gjr=["disabled"],Vjr=["disabled"];function zjr(n,r,o,l,u,d){var h=Ni("InputText");return ze(),Lt("span",Et({class:n.cx("root")},n.ptmi("root")),[bi(h,{ref:"input",id:n.inputId,role:"spinbutton",class:Lo([n.cx("pcInputText"),n.inputClass]),style:Vb(n.inputStyle),value:d.formattedValue,"aria-valuemin":n.min,"aria-valuemax":n.max,"aria-valuenow":n.d_value,inputmode:n.mode==="decimal"&&!n.minFractionDigits?"numeric":"decimal",disabled:n.disabled,readonly:n.readonly,placeholder:n.placeholder,"aria-labelledby":n.ariaLabelledby,"aria-label":n.ariaLabel,size:n.size,invalid:n.invalid,variant:n.variant,onInput:d.onUserInput,onKeydown:d.onInputKeyDown,onKeypress:d.onInputKeyPress,onPaste:d.onPaste,onClick:d.onInputClick,onFocus:d.onInputFocus,onBlur:d.onInputBlur,pt:n.ptm("pcInputText"),unstyled:n.unstyled},null,8,["id","class","style","value","aria-valuemin","aria-valuemax","aria-valuenow","inputmode","disabled","readonly","placeholder","aria-labelledby","aria-label","size","invalid","variant","onInput","onKeydown","onKeypress","onPaste","onClick","onFocus","onBlur","pt","unstyled"]),n.showButtons&&n.buttonLayout==="stacked"?(ze(),Lt("span",Et({key:0,class:n.cx("buttonGroup")},n.ptm("buttonGroup")),[Vr(n.$slots,"incrementbutton",{listeners:d.upButtonListeners},function(){return[mr("button",Et({class:[n.cx("incrementButton"),n.incrementButtonClass]},Xce(d.upButtonListeners),{disabled:n.disabled,tabindex:-1,"aria-hidden":"true",type:"button"},n.ptm("incrementButton")),[Vr(n.$slots,n.$slots.incrementicon?"incrementicon":"incrementbuttonicon",{},function(){return[(ze(),Nn(jo(n.incrementIcon||n.incrementButtonIcon?"span":"AngleUpIcon"),Et({class:[n.incrementIcon,n.incrementButtonIcon]},n.ptm("incrementIcon"),{"data-pc-section":"incrementicon"}),null,16,["class"]))]})],16,Hjr)]}),Vr(n.$slots,"decrementbutton",{listeners:d.downButtonListeners},function(){return[mr("button",Et({class:[n.cx("decrementButton"),n.decrementButtonClass]},Xce(d.downButtonListeners),{disabled:n.disabled,tabindex:-1,"aria-hidden":"true",type:"button"},n.ptm("decrementButton")),[Vr(n.$slots,n.$slots.decrementicon?"decrementicon":"decrementbuttonicon",{},function(){return[(ze(),Nn(jo(n.decrementIcon||n.decrementButtonIcon?"span":"AngleDownIcon"),Et({class:[n.decrementIcon,n.decrementButtonIcon]},n.ptm("decrementIcon"),{"data-pc-section":"decrementicon"}),null,16,["class"]))]})],16,Ujr)]})],16)):fr("",!0),Vr(n.$slots,"incrementbutton",{listeners:d.upButtonListeners},function(){return[n.showButtons&&n.buttonLayout!=="stacked"?(ze(),Lt("button",Et({key:0,class:[n.cx("incrementButton"),n.incrementButtonClass]},Xce(d.upButtonListeners),{disabled:n.disabled,tabindex:-1,"aria-hidden":"true",type:"button"},n.ptm("incrementButton")),[Vr(n.$slots,n.$slots.incrementicon?"incrementicon":"incrementbuttonicon",{},function(){return[(ze(),Nn(jo(n.incrementIcon||n.incrementButtonIcon?"span":"AngleUpIcon"),Et({class:[n.incrementIcon,n.incrementButtonIcon]},n.ptm("incrementIcon"),{"data-pc-section":"incrementicon"}),null,16,["class"]))]})],16,Gjr)):fr("",!0)]}),Vr(n.$slots,"decrementbutton",{listeners:d.downButtonListeners},function(){return[n.showButtons&&n.buttonLayout!=="stacked"?(ze(),Lt("button",Et({key:0,class:[n.cx("decrementButton"),n.decrementButtonClass]},Xce(d.downButtonListeners),{disabled:n.disabled,tabindex:-1,"aria-hidden":"true",type:"button"},n.ptm("decrementButton")),[Vr(n.$slots,n.$slots.decrementicon?"decrementicon":"decrementbuttonicon",{},function(){return[(ze(),Nn(jo(n.decrementIcon||n.decrementButtonIcon?"span":"AngleDownIcon"),Et({class:[n.decrementIcon,n.decrementButtonIcon]},n.ptm("decrementIcon"),{"data-pc-section":"decrementicon"}),null,16,["class"]))]})],16,Vjr)):fr("",!0)]})],16)}thn.render=zjr;var nhn={name:"AngleDoubleRightIcon",extends:Fc};function Kjr(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.68757 11.1451C7.7791 11.1831 7.8773 11.2024 7.9764 11.2019C8.07769 11.1985 8.17721 11.1745 8.26886 11.1312C8.36052 11.088 8.44238 11.0265 8.50943 10.9505L12.0294 7.49085C12.1707 7.34942 12.25 7.15771 12.25 6.95782C12.25 6.75794 12.1707 6.56622 12.0294 6.42479L8.50943 2.90479C8.37014 2.82159 8.20774 2.78551 8.04633 2.80192C7.88491 2.81833 7.73309 2.88635 7.6134 2.99588C7.4937 3.10541 7.41252 3.25061 7.38189 3.40994C7.35126 3.56927 7.37282 3.73423 7.44337 3.88033L10.4605 6.89748L7.44337 9.91463C7.30212 10.0561 7.22278 10.2478 7.22278 10.4477C7.22278 10.6475 7.30212 10.8393 7.44337 10.9807C7.51301 11.0512 7.59603 11.1071 7.68757 11.1451ZM1.94207 10.9505C2.07037 11.0968 2.25089 11.1871 2.44493 11.2019C2.63898 11.1871 2.81949 11.0968 2.94779 10.9505L6.46779 7.49085C6.60905 7.34942 6.68839 7.15771 6.68839 6.95782C6.68839 6.75793 6.60905 6.56622 6.46779 6.42479L2.94779 2.90479C2.80704 2.83757 2.6489 2.81563 2.49517 2.84201C2.34143 2.86839 2.19965 2.94178 2.08936 3.05207C1.97906 3.16237 1.90567 3.30415 1.8793 3.45788C1.85292 3.61162 1.87485 3.76975 1.94207 3.9105L4.95922 6.92765L1.94207 9.9448C1.81838 10.0831 1.75 10.2621 1.75 10.4477C1.75 10.6332 1.81838 10.8122 1.94207 10.9505Z",fill:"currentColor"},null,-1)]),16)}nhn.render=Kjr;var rhn={name:"AngleRightIcon",extends:Fc};function qjr(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{d:"M5.25 11.1728C5.14929 11.1694 5.05033 11.1455 4.9592 11.1025C4.86806 11.0595 4.78666 10.9984 4.72 10.9228C4.57955 10.7822 4.50066 10.5916 4.50066 10.3928C4.50066 10.1941 4.57955 10.0035 4.72 9.86283L7.72 6.86283L4.72 3.86283C4.66067 3.71882 4.64765 3.55991 4.68275 3.40816C4.71785 3.25642 4.79932 3.11936 4.91585 3.01602C5.03238 2.91268 5.17819 2.84819 5.33305 2.83149C5.4879 2.81479 5.64411 2.84671 5.78 2.92283L9.28 6.42283C9.42045 6.56346 9.49934 6.75408 9.49934 6.95283C9.49934 7.15158 9.42045 7.34221 9.28 7.48283L5.78 10.9228C5.71333 10.9984 5.63193 11.0595 5.5408 11.1025C5.44966 11.1455 5.35071 11.1694 5.25 11.1728Z",fill:"currentColor"},null,-1)]),16)}rhn.render=qjr;var ihn={name:"AngleLeftIcon",extends:Fc};function Xjr(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{d:"M8.75 11.185C8.65146 11.1854 8.55381 11.1662 8.4628 11.1284C8.37179 11.0906 8.28924 11.0351 8.22 10.965L4.72 7.46496C4.57955 7.32433 4.50066 7.13371 4.50066 6.93496C4.50066 6.73621 4.57955 6.54558 4.72 6.40496L8.22 2.93496C8.36095 2.84357 8.52851 2.80215 8.69582 2.81733C8.86312 2.83252 9.02048 2.90344 9.14268 3.01872C9.26487 3.134 9.34483 3.28696 9.36973 3.4531C9.39463 3.61924 9.36303 3.78892 9.28 3.93496L6.28 6.93496L9.28 9.93496C9.42045 10.0756 9.49934 10.2662 9.49934 10.465C9.49934 10.6637 9.42045 10.8543 9.28 10.995C9.13526 11.1257 8.9448 11.1939 8.75 11.185Z",fill:"currentColor"},null,-1)]),16)}ihn.render=Xjr;var Jjr={name:"BasePaginator",extends:Kl,props:{totalRecords:{type:Number,default:0},rows:{type:Number,default:0},first:{type:Number,default:0},pageLinkSize:{type:Number,default:5},rowsPerPageOptions:{type:Array,default:null},template:{type:[Object,String],default:"FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown"},currentPageReportTemplate:{type:null,default:"({currentPage} of {totalPages})"},alwaysShow:{type:Boolean,default:!0}},style:xjr,provide:function(){return{$pcPaginator:this,$parentInstance:this}}},ohn={name:"CurrentPageReport",hostName:"Paginator",extends:Kl,props:{pageCount:{type:Number,default:0},currentPage:{type:Number,default:0},page:{type:Number,default:0},first:{type:Number,default:0},rows:{type:Number,default:0},totalRecords:{type:Number,default:0},template:{type:String,default:"({currentPage} of {totalPages})"}},computed:{text:function(){var r=this.template.replace("{currentPage}",this.currentPage).replace("{totalPages}",this.pageCount).replace("{first}",this.pageCount>0?this.first+1:0).replace("{last}",Math.min(this.first+this.rows,this.totalRecords)).replace("{rows}",this.rows).replace("{totalRecords}",this.totalRecords);return r}}};function Yjr(n,r,o,l,u,d){return ze(),Lt("span",Et({class:n.cx("current")},n.ptm("current")),na(d.text),17)}ohn.render=Yjr;var shn={name:"FirstPageLink",hostName:"Paginator",extends:Kl,props:{template:{type:Function,default:null}},methods:{getPTOptions:function(r){return this.ptm(r,{context:{disabled:this.$attrs.disabled}})}},components:{AngleDoubleLeftIcon:Qdn},directives:{ripple:bk}};function Qjr(n,r,o,l,u,d){var h=TS("ripple");return AS((ze(),Lt("button",Et({class:n.cx("first"),type:"button"},d.getPTOptions("first"),{"data-pc-group-section":"pagebutton"}),[(ze(),Nn(jo(o.template||"AngleDoubleLeftIcon"),Et({class:n.cx("firstIcon")},d.getPTOptions("firstIcon")),null,16,["class"]))],16)),[[h]])}shn.render=Qjr;var lhn={name:"JumpToPageDropdown",hostName:"Paginator",extends:Kl,emits:["page-change"],props:{page:Number,pageCount:Number,disabled:Boolean,templates:null},methods:{onChange:function(r){this.$emit("page-change",r)}},computed:{pageOptions:function(){for(var r=[],o=0;on.length)&&(r=n.length);for(var o=0,l=Array(r);o0&&r&&this.d_first>=r&&this.changePage(this.pageCount-1)}},mounted:function(){this.createStyle()},methods:{changePage:function(r){var o=this.pageCount;if(r>=0&&rn.length)&&(r=n.length);for(var o=0,l=Array(r);o1){var v=this.isNumeralChar(d.charAt(o))?o+1:o+2;this.$refs.input.$el.setSelectionRange(v,v)}else this.isNumeralChar(d.charAt(o-1))||r.preventDefault();break;case"ArrowRight":if(u>1){var y=l-1;this.$refs.input.$el.setSelectionRange(y,y)}else this.isNumeralChar(d.charAt(o))||r.preventDefault();break;case"Tab":case"Enter":case"NumpadEnter":h=this.validateValue(this.parseValue(d)),this.$refs.input.$el.value=this.formatValue(h),this.$refs.input.$el.setAttribute("aria-valuenow",h),this.updateModel(r,h);break;case"Backspace":{if(r.preventDefault(),o===l){var E=d.charAt(o-1),A=this.getDecimalCharIndexes(d),C=A.decimalCharIndex,R=A.decimalCharIndexWithoutPrefix;if(this.isNumeralChar(E)){var O=this.getDecimalLength(d);if(this._group.test(E))this._group.lastIndex=0,h=d.slice(0,o-2)+d.slice(o-1);else if(this._decimal.test(E))this._decimal.lastIndex=0,O?this.$refs.input.$el.setSelectionRange(o-1,o-1):h=d.slice(0,o-1)+d.slice(o);else if(C>0&&o>C){var M=this.isDecimalMode()&&(this.minFractionDigits||0)0?h:""):h=d.slice(0,o-1)+d.slice(o)}this.updateValue(r,h,null,"delete-single")}else h=this.deleteRange(d,o,l),this.updateValue(r,h,null,"delete-range");break}case"Delete":if(r.preventDefault(),o===l){var L=d.charAt(o),H=this.getDecimalCharIndexes(d),G=H.decimalCharIndex,j=H.decimalCharIndexWithoutPrefix;if(this.isNumeralChar(L)){var Q=this.getDecimalLength(d);if(this._group.test(L))this._group.lastIndex=0,h=d.slice(0,o)+d.slice(o+2);else if(this._decimal.test(L))this._decimal.lastIndex=0,Q?this.$refs.input.$el.setSelectionRange(o+1,o+1):h=d.slice(0,o)+d.slice(o+1);else if(G>0&&o>G){var te=this.isDecimalMode()&&(this.minFractionDigits||0)0?h:""):h=d.slice(0,o)+d.slice(o+1)}this.updateValue(r,h,null,"delete-back-single")}else h=this.deleteRange(d,o,l),this.updateValue(r,h,null,"delete-range");break;case"Home":r.preventDefault(),ks(this.min)&&this.updateModel(r,this.min);break;case"End":r.preventDefault(),ks(this.max)&&this.updateModel(r,this.max);break}}},onInputKeyPress:function(r){if(!this.readonly){var o=r.key,l=this.isDecimalSign(o),u=this.isMinusSign(o);r.code!=="Enter"&&r.preventDefault(),(Number(o)>=0&&Number(o)<=9||u||l)&&this.insert(r,o,{isDecimalSign:l,isMinusSign:u})}},onPaste:function(r){r.preventDefault();var o=(r.clipboardData||window.clipboardData).getData("Text");if(o){var l=this.parseValue(o);l!=null&&this.insert(r,l.toString())}},allowMinusSign:function(){return this.min===null||this.min<0},isMinusSign:function(r){return this._minusSign.test(r)||r==="-"?(this._minusSign.lastIndex=0,!0):!1},isDecimalSign:function(r){return this._decimal.test(r)?(this._decimal.lastIndex=0,!0):!1},isDecimalMode:function(){return this.mode==="decimal"},getDecimalCharIndexes:function(r){var o=r.search(this._decimal);this._decimal.lastIndex=0;var l=r.replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,""),u=l.search(this._decimal);return this._decimal.lastIndex=0,{decimalCharIndex:o,decimalCharIndexWithoutPrefix:u}},getCharIndexes:function(r){var o=r.search(this._decimal);this._decimal.lastIndex=0;var l=r.search(this._minusSign);this._minusSign.lastIndex=0;var u=r.search(this._suffix);this._suffix.lastIndex=0;var d=r.search(this._currency);return this._currency.lastIndex=0,{decimalCharIndex:o,minusCharIndex:l,suffixCharIndex:u,currencyCharIndex:d}},insert:function(r,o){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{isDecimalSign:!1,isMinusSign:!1},u=o.search(this._minusSign);if(this._minusSign.lastIndex=0,!(!this.allowMinusSign()&&u!==-1)){var d=this.$refs.input.$el.selectionStart,h=this.$refs.input.$el.selectionEnd,w=this.$refs.input.$el.value.trim(),v=this.getCharIndexes(w),y=v.decimalCharIndex,E=v.minusCharIndex,A=v.suffixCharIndex,C=v.currencyCharIndex,R;if(l.isMinusSign)d===0&&(R=w,(E===-1||h!==0)&&(R=this.insertText(w,o,0,h)),this.updateValue(r,R,o,"insert"));else if(l.isDecimalSign)y>0&&d===y?this.updateValue(r,w,o,"insert"):y>d&&y0&&d>y){if(d+o.length-(y+1)<=O){var L=C>=d?C-1:A>=d?A:w.length;R=w.slice(0,d)+o+w.slice(d+o.length,L)+w.slice(L),this.updateValue(r,R,o,M)}}else R=this.insertText(w,o,d,h),this.updateValue(r,R,o,M)}}},insertText:function(r,o,l,u){var d=o==="."?o:o.split(".");if(d.length===2){var h=r.slice(l,u).search(this._decimal);return this._decimal.lastIndex=0,h>0?r.slice(0,l)+this.formatValue(o)+r.slice(u):this.formatValue(o)||r}else return u-l===r.length?this.formatValue(o):l===0?o+r.slice(u):u===r.length?r.slice(0,l)+o:r.slice(0,l)+o+r.slice(u)},deleteRange:function(r,o,l){var u;return l-o===r.length?u="":o===0?u=r.slice(l):l===r.length?u=r.slice(0,o):u=r.slice(0,o)+r.slice(l),u},initCursor:function(){var r=this.$refs.input.$el.selectionStart,o=this.$refs.input.$el.value,l=o.length,u=null,d=(this.prefixChar||"").length;o=o.replace(this._prefix,""),r=r-d;var h=o.charAt(r);if(this.isNumeralChar(h))return r+d;for(var w=r-1;w>=0;)if(h=o.charAt(w),this.isNumeralChar(h)){u=w+d;break}else w--;if(u!==null)this.$refs.input.$el.setSelectionRange(u+1,u+1);else{for(w=r;wthis.max?this.max:r},updateInput:function(r,o,l,u){o=o||"";var d=this.$refs.input.$el.value,h=this.formatValue(r),w=d.length;if(h!==u&&(h=this.concatValues(h,u)),w===0){this.$refs.input.$el.value=h,this.$refs.input.$el.setSelectionRange(0,0);var v=this.initCursor(),y=v+o.length;this.$refs.input.$el.setSelectionRange(y,y)}else{var E=this.$refs.input.$el.selectionStart,A=this.$refs.input.$el.selectionEnd;this.$refs.input.$el.value=h;var C=h.length;if(l==="range-insert"){var R=this.parseValue((d||"").slice(0,E)),O=R!==null?R.toString():"",M=O.split("").join("(".concat(this.groupChar,")?")),L=new RegExp(M,"g");L.test(h);var H=o.split("").join("(".concat(this.groupChar,")?")),G=new RegExp(H,"g");G.test(h.slice(L.lastIndex)),A=L.lastIndex+G.lastIndex,this.$refs.input.$el.setSelectionRange(A,A)}else if(C===w)l==="insert"||l==="delete-back-single"?this.$refs.input.$el.setSelectionRange(A+1,A+1):l==="delete-single"?this.$refs.input.$el.setSelectionRange(A-1,A-1):(l==="delete-range"||l==="spin")&&this.$refs.input.$el.setSelectionRange(A,A);else if(l==="delete-back-single"){var j=d.charAt(A-1),Q=d.charAt(A),te=w-C,pe=this._group.test(Q);pe&&te===1?A+=1:!pe&&this.isNumeralChar(j)&&(A+=-1*te+1),this._group.lastIndex=0,this.$refs.input.$el.setSelectionRange(A,A)}else if(d==="-"&&l==="insert"){this.$refs.input.$el.setSelectionRange(0,0);var De=this.initCursor(),Re=De+o.length+1;this.$refs.input.$el.setSelectionRange(Re,Re)}else A=A+(C-w),this.$refs.input.$el.setSelectionRange(A,A)}this.$refs.input.$el.setAttribute("aria-valuenow",r)},concatValues:function(r,o){if(r&&o){var l=o.search(this._decimal);return this._decimal.lastIndex=0,this.suffixChar?l!==-1?r.replace(this.suffixChar,"").split(this._decimal)[0]+o.replace(this.suffixChar,"").slice(l)+this.suffixChar:r:l!==-1?r.split(this._decimal)[0]+o.slice(l):r}return r},getDecimalLength:function(r){if(r){var o=r.split(this._decimal);if(o.length===2)return o[1].replace(this._suffix,"").trim().replace(/\s/g,"").replace(this._currency,"").length}return 0},updateModel:function(r,o){this.writeValue(o,r)},onInputFocus:function(r){this.focused=!0,!this.disabled&&!this.readonly&&this.$refs.input.$el.value!==Njt()&&this.highlightOnFocus&&r.target.select(),this.$emit("focus",r)},onInputBlur:function(r){var o,l;this.focused=!1;var u=r.target,d=this.validateValue(this.parseValue(u.value));this.$emit("blur",{originalEvent:r,value:u.value}),(o=(l=this.formField).onBlur)===null||o===void 0||o.call(l,r),u.value=this.formatValue(d),u.setAttribute("aria-valuenow",d),this.updateModel(r,d),!this.disabled&&!this.readonly&&this.highlightOnFocus&&$fe()},clearTimer:function(){this.timer&&clearInterval(this.timer)},maxBoundry:function(){return this.d_value>=this.max},minBoundry:function(){return this.d_value<=this.min}},computed:{upButtonListeners:function(){var r=this;return{mousedown:function(l){return r.onUpButtonMouseDown(l)},mouseup:function(l){return r.onUpButtonMouseUp(l)},mouseleave:function(l){return r.onUpButtonMouseLeave(l)},keydown:function(l){return r.onUpButtonKeyDown(l)},keyup:function(l){return r.onUpButtonKeyUp(l)}}},downButtonListeners:function(){var r=this;return{mousedown:function(l){return r.onDownButtonMouseDown(l)},mouseup:function(l){return r.onDownButtonMouseUp(l)},mouseleave:function(l){return r.onDownButtonMouseLeave(l)},keydown:function(l){return r.onDownButtonKeyDown(l)},keyup:function(l){return r.onDownButtonKeyUp(l)}}},formattedValue:function(){var r=!this.d_value&&!this.allowEmpty?0:this.d_value;return this.formatValue(r)},getFormatter:function(){return this.numberFormat}},components:{InputText:W8,AngleUpIcon:chn,AngleDownIcon:ahn}},sFr=["disabled"],lFr=["disabled"],aFr=["disabled"],cFr=["disabled"];function uFr(n,r,o,l,u,d){var h=Ni("InputText");return ze(),jt("span",Et({class:n.cx("root")},n.ptmi("root")),[bi(h,{ref:"input",id:n.inputId,role:"spinbutton",class:Lo([n.cx("pcInputText"),n.inputClass]),style:Vb(n.inputStyle),value:d.formattedValue,"aria-valuemin":n.min,"aria-valuemax":n.max,"aria-valuenow":n.d_value,inputmode:n.mode==="decimal"&&!n.minFractionDigits?"numeric":"decimal",disabled:n.disabled,readonly:n.readonly,placeholder:n.placeholder,"aria-labelledby":n.ariaLabelledby,"aria-label":n.ariaLabel,size:n.size,invalid:n.invalid,variant:n.variant,onInput:d.onUserInput,onKeydown:d.onInputKeyDown,onKeypress:d.onInputKeyPress,onPaste:d.onPaste,onClick:d.onInputClick,onFocus:d.onInputFocus,onBlur:d.onInputBlur,pt:n.ptm("pcInputText"),unstyled:n.unstyled},null,8,["id","class","style","value","aria-valuemin","aria-valuemax","aria-valuenow","inputmode","disabled","readonly","placeholder","aria-labelledby","aria-label","size","invalid","variant","onInput","onKeydown","onKeypress","onPaste","onClick","onFocus","onBlur","pt","unstyled"]),n.showButtons&&n.buttonLayout==="stacked"?(ze(),jt("span",Et({key:0,class:n.cx("buttonGroup")},n.ptm("buttonGroup")),[Vr(n.$slots,"incrementbutton",{listeners:d.upButtonListeners},function(){return[mr("button",Et({class:[n.cx("incrementButton"),n.incrementButtonClass]},Yce(d.upButtonListeners),{disabled:n.disabled,tabindex:-1,"aria-hidden":"true",type:"button"},n.ptm("incrementButton")),[Vr(n.$slots,n.$slots.incrementicon?"incrementicon":"incrementbuttonicon",{},function(){return[(ze(),Nn(jo(n.incrementIcon||n.incrementButtonIcon?"span":"AngleUpIcon"),Et({class:[n.incrementIcon,n.incrementButtonIcon]},n.ptm("incrementIcon"),{"data-pc-section":"incrementicon"}),null,16,["class"]))]})],16,sFr)]}),Vr(n.$slots,"decrementbutton",{listeners:d.downButtonListeners},function(){return[mr("button",Et({class:[n.cx("decrementButton"),n.decrementButtonClass]},Yce(d.downButtonListeners),{disabled:n.disabled,tabindex:-1,"aria-hidden":"true",type:"button"},n.ptm("decrementButton")),[Vr(n.$slots,n.$slots.decrementicon?"decrementicon":"decrementbuttonicon",{},function(){return[(ze(),Nn(jo(n.decrementIcon||n.decrementButtonIcon?"span":"AngleDownIcon"),Et({class:[n.decrementIcon,n.decrementButtonIcon]},n.ptm("decrementIcon"),{"data-pc-section":"decrementicon"}),null,16,["class"]))]})],16,lFr)]})],16)):fr("",!0),Vr(n.$slots,"incrementbutton",{listeners:d.upButtonListeners},function(){return[n.showButtons&&n.buttonLayout!=="stacked"?(ze(),jt("button",Et({key:0,class:[n.cx("incrementButton"),n.incrementButtonClass]},Yce(d.upButtonListeners),{disabled:n.disabled,tabindex:-1,"aria-hidden":"true",type:"button"},n.ptm("incrementButton")),[Vr(n.$slots,n.$slots.incrementicon?"incrementicon":"incrementbuttonicon",{},function(){return[(ze(),Nn(jo(n.incrementIcon||n.incrementButtonIcon?"span":"AngleUpIcon"),Et({class:[n.incrementIcon,n.incrementButtonIcon]},n.ptm("incrementIcon"),{"data-pc-section":"incrementicon"}),null,16,["class"]))]})],16,aFr)):fr("",!0)]}),Vr(n.$slots,"decrementbutton",{listeners:d.downButtonListeners},function(){return[n.showButtons&&n.buttonLayout!=="stacked"?(ze(),jt("button",Et({key:0,class:[n.cx("decrementButton"),n.decrementButtonClass]},Yce(d.downButtonListeners),{disabled:n.disabled,tabindex:-1,"aria-hidden":"true",type:"button"},n.ptm("decrementButton")),[Vr(n.$slots,n.$slots.decrementicon?"decrementicon":"decrementbuttonicon",{},function(){return[(ze(),Nn(jo(n.decrementIcon||n.decrementButtonIcon?"span":"AngleDownIcon"),Et({class:[n.decrementIcon,n.decrementButtonIcon]},n.ptm("decrementIcon"),{"data-pc-section":"decrementicon"}),null,16,["class"]))]})],16,cFr)):fr("",!0)]})],16)}uhn.render=uFr;var fhn={name:"AngleDoubleRightIcon",extends:Fc};function fFr(n,r,o,l,u,d){return ze(),jt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.68757 11.1451C7.7791 11.1831 7.8773 11.2024 7.9764 11.2019C8.07769 11.1985 8.17721 11.1745 8.26886 11.1312C8.36052 11.088 8.44238 11.0265 8.50943 10.9505L12.0294 7.49085C12.1707 7.34942 12.25 7.15771 12.25 6.95782C12.25 6.75794 12.1707 6.56622 12.0294 6.42479L8.50943 2.90479C8.37014 2.82159 8.20774 2.78551 8.04633 2.80192C7.88491 2.81833 7.73309 2.88635 7.6134 2.99588C7.4937 3.10541 7.41252 3.25061 7.38189 3.40994C7.35126 3.56927 7.37282 3.73423 7.44337 3.88033L10.4605 6.89748L7.44337 9.91463C7.30212 10.0561 7.22278 10.2478 7.22278 10.4477C7.22278 10.6475 7.30212 10.8393 7.44337 10.9807C7.51301 11.0512 7.59603 11.1071 7.68757 11.1451ZM1.94207 10.9505C2.07037 11.0968 2.25089 11.1871 2.44493 11.2019C2.63898 11.1871 2.81949 11.0968 2.94779 10.9505L6.46779 7.49085C6.60905 7.34942 6.68839 7.15771 6.68839 6.95782C6.68839 6.75793 6.60905 6.56622 6.46779 6.42479L2.94779 2.90479C2.80704 2.83757 2.6489 2.81563 2.49517 2.84201C2.34143 2.86839 2.19965 2.94178 2.08936 3.05207C1.97906 3.16237 1.90567 3.30415 1.8793 3.45788C1.85292 3.61162 1.87485 3.76975 1.94207 3.9105L4.95922 6.92765L1.94207 9.9448C1.81838 10.0831 1.75 10.2621 1.75 10.4477C1.75 10.6332 1.81838 10.8122 1.94207 10.9505Z",fill:"currentColor"},null,-1)]),16)}fhn.render=fFr;var dhn={name:"AngleRightIcon",extends:Fc};function dFr(n,r,o,l,u,d){return ze(),jt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{d:"M5.25 11.1728C5.14929 11.1694 5.05033 11.1455 4.9592 11.1025C4.86806 11.0595 4.78666 10.9984 4.72 10.9228C4.57955 10.7822 4.50066 10.5916 4.50066 10.3928C4.50066 10.1941 4.57955 10.0035 4.72 9.86283L7.72 6.86283L4.72 3.86283C4.66067 3.71882 4.64765 3.55991 4.68275 3.40816C4.71785 3.25642 4.79932 3.11936 4.91585 3.01602C5.03238 2.91268 5.17819 2.84819 5.33305 2.83149C5.4879 2.81479 5.64411 2.84671 5.78 2.92283L9.28 6.42283C9.42045 6.56346 9.49934 6.75408 9.49934 6.95283C9.49934 7.15158 9.42045 7.34221 9.28 7.48283L5.78 10.9228C5.71333 10.9984 5.63193 11.0595 5.5408 11.1025C5.44966 11.1455 5.35071 11.1694 5.25 11.1728Z",fill:"currentColor"},null,-1)]),16)}dhn.render=dFr;var hhn={name:"AngleLeftIcon",extends:Fc};function hFr(n,r,o,l,u,d){return ze(),jt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{d:"M8.75 11.185C8.65146 11.1854 8.55381 11.1662 8.4628 11.1284C8.37179 11.0906 8.28924 11.0351 8.22 10.965L4.72 7.46496C4.57955 7.32433 4.50066 7.13371 4.50066 6.93496C4.50066 6.73621 4.57955 6.54558 4.72 6.40496L8.22 2.93496C8.36095 2.84357 8.52851 2.80215 8.69582 2.81733C8.86312 2.83252 9.02048 2.90344 9.14268 3.01872C9.26487 3.134 9.34483 3.28696 9.36973 3.4531C9.39463 3.61924 9.36303 3.78892 9.28 3.93496L6.28 6.93496L9.28 9.93496C9.42045 10.0756 9.49934 10.2662 9.49934 10.465C9.49934 10.6637 9.42045 10.8543 9.28 10.995C9.13526 11.1257 8.9448 11.1939 8.75 11.185Z",fill:"currentColor"},null,-1)]),16)}hhn.render=hFr;var pFr={name:"BasePaginator",extends:Kl,props:{totalRecords:{type:Number,default:0},rows:{type:Number,default:0},first:{type:Number,default:0},pageLinkSize:{type:Number,default:5},rowsPerPageOptions:{type:Array,default:null},template:{type:[Object,String],default:"FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown"},currentPageReportTemplate:{type:null,default:"({currentPage} of {totalPages})"},alwaysShow:{type:Boolean,default:!0}},style:Gjr,provide:function(){return{$pcPaginator:this,$parentInstance:this}}},phn={name:"CurrentPageReport",hostName:"Paginator",extends:Kl,props:{pageCount:{type:Number,default:0},currentPage:{type:Number,default:0},page:{type:Number,default:0},first:{type:Number,default:0},rows:{type:Number,default:0},totalRecords:{type:Number,default:0},template:{type:String,default:"({currentPage} of {totalPages})"}},computed:{text:function(){var r=this.template.replace("{currentPage}",this.currentPage).replace("{totalPages}",this.pageCount).replace("{first}",this.pageCount>0?this.first+1:0).replace("{last}",Math.min(this.first+this.rows,this.totalRecords)).replace("{rows}",this.rows).replace("{totalRecords}",this.totalRecords);return r}}};function bFr(n,r,o,l,u,d){return ze(),jt("span",Et({class:n.cx("current")},n.ptm("current")),na(d.text),17)}phn.render=bFr;var bhn={name:"FirstPageLink",hostName:"Paginator",extends:Kl,props:{template:{type:Function,default:null}},methods:{getPTOptions:function(r){return this.ptm(r,{context:{disabled:this.$attrs.disabled}})}},components:{AngleDoubleLeftIcon:lhn},directives:{ripple:bk}};function gFr(n,r,o,l,u,d){var h=TS("ripple");return AS((ze(),jt("button",Et({class:n.cx("first"),type:"button"},d.getPTOptions("first"),{"data-pc-group-section":"pagebutton"}),[(ze(),Nn(jo(o.template||"AngleDoubleLeftIcon"),Et({class:n.cx("firstIcon")},d.getPTOptions("firstIcon")),null,16,["class"]))],16)),[[h]])}bhn.render=gFr;var ghn={name:"JumpToPageDropdown",hostName:"Paginator",extends:Kl,emits:["page-change"],props:{page:Number,pageCount:Number,disabled:Boolean,templates:null},methods:{onChange:function(r){this.$emit("page-change",r)}},computed:{pageOptions:function(){for(var r=[],o=0;on.length)&&(r=n.length);for(var o=0,l=Array(r);o0&&r&&this.d_first>=r&&this.changePage(this.pageCount-1)}},mounted:function(){this.createStyle()},methods:{changePage:function(r){var o=this.pageCount;if(r>=0&&r0?this.page+1:0},last:function(){return Math.min(this.d_first+this.rows,this.totalRecords)}},components:{CurrentPageReport:ohn,FirstPageLink:shn,LastPageLink:chn,NextPageLink:uhn,PageLinks:fhn,PrevPageLink:dhn,RowsPerPageDropdown:hhn,JumpToPageDropdown:lhn,JumpToPageInput:ahn}};function fFr(n,r,o,l,u,d){var h=Ni("FirstPageLink"),w=Ni("PrevPageLink"),v=Ni("NextPageLink"),y=Ni("LastPageLink"),E=Ni("PageLinks"),A=Ni("CurrentPageReport"),C=Ni("RowsPerPageDropdown"),R=Ni("JumpToPageDropdown"),O=Ni("JumpToPageInput");return n.alwaysShow||d.pageLinks&&d.pageLinks.length>1?(ze(),Lt("nav",EL(Et({key:0},n.ptmi("paginatorContainer"))),[(ze(!0),Lt(gi,null,uu(d.templateItems,function(M,L){return ze(),Lt("div",Et({key:L,ref_for:!0,ref:"paginator",class:n.cx("paginator",{key:L})},n.ptm("root")),[n.$slots.container?Vr(n.$slots,"container",{key:0,first:u.d_first+1,last:d.last,rows:u.d_rows,page:d.page,pageCount:d.pageCount,totalRecords:n.totalRecords,firstPageCallback:d.changePageToFirst,lastPageCallback:d.changePageToLast,prevPageCallback:d.changePageToPrev,nextPageCallback:d.changePageToNext,rowChangeCallback:d.onRowChange}):(ze(),Lt(gi,{key:1},[n.$slots.start?(ze(),Lt("div",Et({key:0,class:n.cx("contentStart"),ref_for:!0},n.ptm("contentStart")),[Vr(n.$slots,"start",{state:d.currentState})],16)):fr("",!0),mr("div",Et({class:n.cx("content"),ref_for:!0},n.ptm("content")),[(ze(!0),Lt(gi,null,uu(M,function(H){return ze(),Lt(gi,{key:H},[H==="FirstPageLink"?(ze(),Nn(h,{key:0,"aria-label":d.getAriaLabel("firstPageLabel"),template:n.$slots.firsticon||n.$slots.firstpagelinkicon,onClick:r[0]||(r[0]=function(G){return d.changePageToFirst(G)}),disabled:d.isFirstPage||d.empty,unstyled:n.unstyled,pt:n.pt},null,8,["aria-label","template","disabled","unstyled","pt"])):H==="PrevPageLink"?(ze(),Nn(w,{key:1,"aria-label":d.getAriaLabel("prevPageLabel"),template:n.$slots.previcon||n.$slots.prevpagelinkicon,onClick:r[1]||(r[1]=function(G){return d.changePageToPrev(G)}),disabled:d.isFirstPage||d.empty,unstyled:n.unstyled,pt:n.pt},null,8,["aria-label","template","disabled","unstyled","pt"])):H==="NextPageLink"?(ze(),Nn(v,{key:2,"aria-label":d.getAriaLabel("nextPageLabel"),template:n.$slots.nexticon||n.$slots.nextpagelinkicon,onClick:r[2]||(r[2]=function(G){return d.changePageToNext(G)}),disabled:d.isLastPage||d.empty,unstyled:n.unstyled,pt:n.pt},null,8,["aria-label","template","disabled","unstyled","pt"])):H==="LastPageLink"?(ze(),Nn(y,{key:3,"aria-label":d.getAriaLabel("lastPageLabel"),template:n.$slots.lasticon||n.$slots.lastpagelinkicon,onClick:r[3]||(r[3]=function(G){return d.changePageToLast(G)}),disabled:d.isLastPage||d.empty,unstyled:n.unstyled,pt:n.pt},null,8,["aria-label","template","disabled","unstyled","pt"])):H==="PageLinks"?(ze(),Nn(E,{key:4,"aria-label":d.getAriaLabel("pageLabel"),value:d.pageLinks,page:d.page,onClick:r[4]||(r[4]=function(G){return d.changePageLink(G)}),unstyled:n.unstyled,pt:n.pt},null,8,["aria-label","value","page","unstyled","pt"])):H==="CurrentPageReport"?(ze(),Nn(A,{key:5,"aria-live":"polite",template:n.currentPageReportTemplate,currentPage:d.currentPage,page:d.page,pageCount:d.pageCount,first:u.d_first,rows:u.d_rows,totalRecords:n.totalRecords,unstyled:n.unstyled,pt:n.pt},null,8,["template","currentPage","page","pageCount","first","rows","totalRecords","unstyled","pt"])):H==="RowsPerPageDropdown"&&n.rowsPerPageOptions?(ze(),Nn(C,{key:6,"aria-label":d.getAriaLabel("rowsPerPageLabel"),rows:u.d_rows,options:n.rowsPerPageOptions,onRowsChange:r[5]||(r[5]=function(G){return d.onRowChange(G)}),disabled:d.empty,templates:n.$slots,unstyled:n.unstyled,pt:n.pt},null,8,["aria-label","rows","options","disabled","templates","unstyled","pt"])):H==="JumpToPageDropdown"?(ze(),Nn(R,{key:7,"aria-label":d.getAriaLabel("jumpToPageDropdownLabel"),page:d.page,pageCount:d.pageCount,onPageChange:r[6]||(r[6]=function(G){return d.changePage(G)}),disabled:d.empty,templates:n.$slots,unstyled:n.unstyled,pt:n.pt},null,8,["aria-label","page","pageCount","disabled","templates","unstyled","pt"])):H==="JumpToPageInput"?(ze(),Nn(O,{key:8,page:d.currentPage,onPageChange:r[7]||(r[7]=function(G){return d.changePage(G)}),disabled:d.empty,unstyled:n.unstyled,pt:n.pt},null,8,["page","disabled","unstyled","pt"])):fr("",!0)],64)}),128))],16),n.$slots.end?(ze(),Lt("div",Et({key:1,class:n.cx("contentEnd"),ref_for:!0},n.ptm("contentEnd")),[Vr(n.$slots,"end",{state:d.currentState})],16)):fr("",!0)],64))],16)}),128))],16)):fr("",!0)}phn.render=fFr;var dFr=function(r){var o=r.dt;return` + `)}this.styleElement.innerHTML=l}},hasBreakpoints:function(){return fWe(this.template)==="object"},getAriaLabel:function(r){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria[r]:void 0}},computed:{templateItems:function(){var r={};if(this.hasBreakpoints()){r=this.template,r.default||(r.default="FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown");for(var o in r)r[o]=this.template[o].split(" ").map(function(l){return l.trim()});return r}return r.default=this.template.split(" ").map(function(l){return l.trim()}),r},page:function(){return Math.floor(this.d_first/this.d_rows)},pageCount:function(){return Math.ceil(this.totalRecords/this.d_rows)},isFirstPage:function(){return this.page===0},isLastPage:function(){return this.page===this.pageCount-1},calculatePageLinkBoundaries:function(){var r=this.pageCount,o=Math.min(this.pageLinkSize,r),l=Math.max(0,Math.ceil(this.page-o/2)),u=Math.min(r-1,l+o-1),d=this.pageLinkSize-(u-l+1);return l=Math.max(0,l-d),[l,u]},pageLinks:function(){for(var r=[],o=this.calculatePageLinkBoundaries,l=o[0],u=o[1],d=l;d<=u;d++)r.push(d+1);return r},currentState:function(){return{page:this.page,first:this.d_first,rows:this.d_rows}},empty:function(){return this.pageCount===0},currentPage:function(){return this.pageCount>0?this.page+1:0},last:function(){return Math.min(this.d_first+this.rows,this.totalRecords)}},components:{CurrentPageReport:phn,FirstPageLink:bhn,LastPageLink:mhn,NextPageLink:yhn,PageLinks:vhn,PrevPageLink:_hn,RowsPerPageDropdown:Shn,JumpToPageDropdown:ghn,JumpToPageInput:whn}};function TFr(n,r,o,l,u,d){var h=Ni("FirstPageLink"),w=Ni("PrevPageLink"),v=Ni("NextPageLink"),y=Ni("LastPageLink"),E=Ni("PageLinks"),A=Ni("CurrentPageReport"),C=Ni("RowsPerPageDropdown"),R=Ni("JumpToPageDropdown"),O=Ni("JumpToPageInput");return n.alwaysShow||d.pageLinks&&d.pageLinks.length>1?(ze(),jt("nav",SL(Et({key:0},n.ptmi("paginatorContainer"))),[(ze(!0),jt(gi,null,uu(d.templateItems,function(M,L){return ze(),jt("div",Et({key:L,ref_for:!0,ref:"paginator",class:n.cx("paginator",{key:L})},n.ptm("root")),[n.$slots.container?Vr(n.$slots,"container",{key:0,first:u.d_first+1,last:d.last,rows:u.d_rows,page:d.page,pageCount:d.pageCount,totalRecords:n.totalRecords,firstPageCallback:d.changePageToFirst,lastPageCallback:d.changePageToLast,prevPageCallback:d.changePageToPrev,nextPageCallback:d.changePageToNext,rowChangeCallback:d.onRowChange}):(ze(),jt(gi,{key:1},[n.$slots.start?(ze(),jt("div",Et({key:0,class:n.cx("contentStart"),ref_for:!0},n.ptm("contentStart")),[Vr(n.$slots,"start",{state:d.currentState})],16)):fr("",!0),mr("div",Et({class:n.cx("content"),ref_for:!0},n.ptm("content")),[(ze(!0),jt(gi,null,uu(M,function(H){return ze(),jt(gi,{key:H},[H==="FirstPageLink"?(ze(),Nn(h,{key:0,"aria-label":d.getAriaLabel("firstPageLabel"),template:n.$slots.firsticon||n.$slots.firstpagelinkicon,onClick:r[0]||(r[0]=function(G){return d.changePageToFirst(G)}),disabled:d.isFirstPage||d.empty,unstyled:n.unstyled,pt:n.pt},null,8,["aria-label","template","disabled","unstyled","pt"])):H==="PrevPageLink"?(ze(),Nn(w,{key:1,"aria-label":d.getAriaLabel("prevPageLabel"),template:n.$slots.previcon||n.$slots.prevpagelinkicon,onClick:r[1]||(r[1]=function(G){return d.changePageToPrev(G)}),disabled:d.isFirstPage||d.empty,unstyled:n.unstyled,pt:n.pt},null,8,["aria-label","template","disabled","unstyled","pt"])):H==="NextPageLink"?(ze(),Nn(v,{key:2,"aria-label":d.getAriaLabel("nextPageLabel"),template:n.$slots.nexticon||n.$slots.nextpagelinkicon,onClick:r[2]||(r[2]=function(G){return d.changePageToNext(G)}),disabled:d.isLastPage||d.empty,unstyled:n.unstyled,pt:n.pt},null,8,["aria-label","template","disabled","unstyled","pt"])):H==="LastPageLink"?(ze(),Nn(y,{key:3,"aria-label":d.getAriaLabel("lastPageLabel"),template:n.$slots.lasticon||n.$slots.lastpagelinkicon,onClick:r[3]||(r[3]=function(G){return d.changePageToLast(G)}),disabled:d.isLastPage||d.empty,unstyled:n.unstyled,pt:n.pt},null,8,["aria-label","template","disabled","unstyled","pt"])):H==="PageLinks"?(ze(),Nn(E,{key:4,"aria-label":d.getAriaLabel("pageLabel"),value:d.pageLinks,page:d.page,onClick:r[4]||(r[4]=function(G){return d.changePageLink(G)}),unstyled:n.unstyled,pt:n.pt},null,8,["aria-label","value","page","unstyled","pt"])):H==="CurrentPageReport"?(ze(),Nn(A,{key:5,"aria-live":"polite",template:n.currentPageReportTemplate,currentPage:d.currentPage,page:d.page,pageCount:d.pageCount,first:u.d_first,rows:u.d_rows,totalRecords:n.totalRecords,unstyled:n.unstyled,pt:n.pt},null,8,["template","currentPage","page","pageCount","first","rows","totalRecords","unstyled","pt"])):H==="RowsPerPageDropdown"&&n.rowsPerPageOptions?(ze(),Nn(C,{key:6,"aria-label":d.getAriaLabel("rowsPerPageLabel"),rows:u.d_rows,options:n.rowsPerPageOptions,onRowsChange:r[5]||(r[5]=function(G){return d.onRowChange(G)}),disabled:d.empty,templates:n.$slots,unstyled:n.unstyled,pt:n.pt},null,8,["aria-label","rows","options","disabled","templates","unstyled","pt"])):H==="JumpToPageDropdown"?(ze(),Nn(R,{key:7,"aria-label":d.getAriaLabel("jumpToPageDropdownLabel"),page:d.page,pageCount:d.pageCount,onPageChange:r[6]||(r[6]=function(G){return d.changePage(G)}),disabled:d.empty,templates:n.$slots,unstyled:n.unstyled,pt:n.pt},null,8,["aria-label","page","pageCount","disabled","templates","unstyled","pt"])):H==="JumpToPageInput"?(ze(),Nn(O,{key:8,page:d.currentPage,onPageChange:r[7]||(r[7]=function(G){return d.changePage(G)}),disabled:d.empty,unstyled:n.unstyled,pt:n.pt},null,8,["page","disabled","unstyled","pt"])):fr("",!0)],64)}),128))],16),n.$slots.end?(ze(),jt("div",Et({key:1,class:n.cx("contentEnd"),ref_for:!0},n.ptm("contentEnd")),[Vr(n.$slots,"end",{state:d.currentState})],16)):fr("",!0)],64))],16)}),128))],16)):fr("",!0)}Ehn.render=TFr;var $Fr=function(r){var o=r.dt;return` .p-datatable { position: relative; } @@ -3037,7 +3037,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho .p-datatable-row-toggle-icon:dir(rtl) { transform: rotate(180deg); } -`)},hFr={root:function(r){var o=r.props;return["p-datatable p-component",{"p-datatable-hoverable":o.rowHover||o.selectionMode,"p-datatable-resizable":o.resizableColumns,"p-datatable-resizable-fit":o.resizableColumns&&o.columnResizeMode==="fit","p-datatable-scrollable":o.scrollable,"p-datatable-flex-scrollable":o.scrollable&&o.scrollHeight==="flex","p-datatable-striped":o.stripedRows,"p-datatable-gridlines":o.showGridlines,"p-datatable-sm":o.size==="small","p-datatable-lg":o.size==="large"}]},mask:"p-datatable-mask p-overlay-mask",loadingIcon:"p-datatable-loading-icon",header:"p-datatable-header",pcPaginator:function(r){var o=r.position;return"p-datatable-paginator-"+o},tableContainer:"p-datatable-table-container",table:function(r){var o=r.props;return["p-datatable-table",{"p-datatable-scrollable-table":o.scrollable,"p-datatable-resizable-table":o.resizableColumns,"p-datatable-resizable-table-fit":o.resizableColumns&&o.columnResizeMode==="fit"}]},thead:"p-datatable-thead",headerCell:function(r){var o=r.instance,l=r.props,u=r.column;return u&&!o.columnProp(u,"hidden")&&(l.rowGroupMode!=="subheader"||l.groupRowsBy!==o.columnProp(u,"field"))?["p-datatable-header-cell",{"p-datatable-frozen-column":o.columnProp(u,"frozen")}]:["p-datatable-header-cell",{"p-datatable-sortable-column":o.columnProp("sortable"),"p-datatable-resizable-column":o.resizableColumns,"p-datatable-column-sorted":o.isColumnSorted(),"p-datatable-frozen-column":o.columnProp("frozen"),"p-datatable-reorderable-column":l.reorderableColumns}]},columnResizer:"p-datatable-column-resizer",columnHeaderContent:"p-datatable-column-header-content",columnTitle:"p-datatable-column-title",columnFooter:"p-datatable-column-footer",sortIcon:"p-datatable-sort-icon",pcSortBadge:"p-datatable-sort-badge",filter:function(r){var o=r.props;return["p-datatable-filter",{"p-datatable-inline-filter":o.display==="row","p-datatable-popover-filter":o.display==="menu"}]},filterElementContainer:"p-datatable-filter-element-container",pcColumnFilterButton:"p-datatable-column-filter-button",pcColumnFilterClearButton:"p-datatable-column-filter-clear-button",filterOverlay:function(r){r.instance;var o=r.props;return["p-datatable-filter-overlay p-component",{"p-datatable-filter-overlay-popover":o.display==="menu"}]},filterConstraintList:"p-datatable-filter-constraint-list",filterConstraint:function(r){var o=r.instance,l=r.matchMode;return["p-datatable-filter-constraint",{"p-datatable-filter-constraint-selected":l&&o.isRowMatchModeSelected(l.value)}]},filterConstraintSeparator:"p-datatable-filter-constraint-separator",filterOperator:"p-datatable-filter-operator",pcFilterOperatorDropdown:"p-datatable-filter-operator-dropdown",filterRuleList:"p-datatable-filter-rule-list",filterRule:"p-datatable-filter-rule",pcFilterConstraintDropdown:"p-datatable-filter-constraint-dropdown",pcFilterRemoveRuleButton:"p-datatable-filter-remove-rule-button",pcFilterAddRuleButton:"p-datatable-filter-add-rule-button",filterButtonbar:"p-datatable-filter-buttonbar",pcFilterClearButton:"p-datatable-filter-clear-button",pcFilterApplyButton:"p-datatable-filter-apply-button",tbody:function(r){var o=r.props;return o.frozenRow?"p-datatable-tbody p-datatable-frozen-tbody":"p-datatable-tbody"},rowGroupHeader:"p-datatable-row-group-header",rowToggleButton:"p-datatable-row-toggle-button",rowToggleIcon:"p-datatable-row-toggle-icon",row:function(r){var o=r.instance,l=r.props,u=r.index,d=r.columnSelectionMode,h=[];return l.selectionMode&&h.push("p-datatable-selectable-row"),l.selection&&h.push({"p-datatable-row-selected":d?o.isSelected&&o.$parentInstance.$parentInstance.highlightOnSelect:o.isSelected}),l.contextMenuSelection&&h.push({"p-datatable-contextmenu-row-selected":o.isSelectedWithContextMenu}),h.push(u%2===0?"p-row-even":"p-row-odd"),h},rowExpansion:"p-datatable-row-expansion",rowGroupFooter:"p-datatable-row-group-footer",emptyMessage:"p-datatable-empty-message",bodyCell:function(r){var o=r.instance;return[{"p-datatable-frozen-column":o.columnProp("frozen")}]},reorderableRowHandle:"p-datatable-reorderable-row-handle",pcRowEditorInit:"p-datatable-row-editor-init",pcRowEditorSave:"p-datatable-row-editor-save",pcRowEditorCancel:"p-datatable-row-editor-cancel",tfoot:"p-datatable-tfoot",footerCell:function(r){var o=r.instance;return[{"p-datatable-frozen-column":o.columnProp("frozen")}]},virtualScrollerSpacer:"p-datatable-virtualscroller-spacer",footer:"p-datatable-footer",columnResizeIndicator:"p-datatable-column-resize-indicator",rowReorderIndicatorUp:"p-datatable-row-reorder-indicator-up",rowReorderIndicatorDown:"p-datatable-row-reorder-indicator-down"},pFr={tableContainer:{overflow:"auto"},thead:{position:"sticky"},tfoot:{position:"sticky"}},bFr=Bs.extend({name:"datatable",theme:dFr,classes:hFr,inlineStyles:pFr}),IVe={name:"ChevronRightIcon",extends:Fc};function gFr(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{d:"M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z",fill:"currentColor"},null,-1)]),16)}IVe.render=gFr;var bhn={name:"BarsIcon",extends:Fc};function wFr(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.3226 3.6129H0.677419C0.497757 3.6129 0.325452 3.54152 0.198411 3.41448C0.0713707 3.28744 0 3.11514 0 2.93548C0 2.75581 0.0713707 2.58351 0.198411 2.45647C0.325452 2.32943 0.497757 2.25806 0.677419 2.25806H13.3226C13.5022 2.25806 13.6745 2.32943 13.8016 2.45647C13.9286 2.58351 14 2.75581 14 2.93548C14 3.11514 13.9286 3.28744 13.8016 3.41448C13.6745 3.54152 13.5022 3.6129 13.3226 3.6129ZM13.3226 7.67741H0.677419C0.497757 7.67741 0.325452 7.60604 0.198411 7.479C0.0713707 7.35196 0 7.17965 0 6.99999C0 6.82033 0.0713707 6.64802 0.198411 6.52098C0.325452 6.39394 0.497757 6.32257 0.677419 6.32257H13.3226C13.5022 6.32257 13.6745 6.39394 13.8016 6.52098C13.9286 6.64802 14 6.82033 14 6.99999C14 7.17965 13.9286 7.35196 13.8016 7.479C13.6745 7.60604 13.5022 7.67741 13.3226 7.67741ZM0.677419 11.7419H13.3226C13.5022 11.7419 13.6745 11.6706 13.8016 11.5435C13.9286 11.4165 14 11.2442 14 11.0645C14 10.8848 13.9286 10.7125 13.8016 10.5855C13.6745 10.4585 13.5022 10.3871 13.3226 10.3871H0.677419C0.497757 10.3871 0.325452 10.4585 0.198411 10.5855C0.0713707 10.7125 0 10.8848 0 11.0645C0 11.2442 0.0713707 11.4165 0.198411 11.5435C0.325452 11.6706 0.497757 11.7419 0.677419 11.7419Z",fill:"currentColor"},null,-1)]),16)}bhn.render=wFr;var ghn={name:"PencilIcon",extends:Fc};function mFr(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{d:"M0.609628 13.959C0.530658 13.9599 0.452305 13.9451 0.379077 13.9156C0.305849 13.8861 0.239191 13.8424 0.18294 13.787C0.118447 13.7234 0.0688234 13.6464 0.0376166 13.5614C0.00640987 13.4765 -0.00560954 13.3857 0.00241768 13.2956L0.25679 10.1501C0.267698 10.0041 0.331934 9.86709 0.437312 9.76516L9.51265 0.705715C10.0183 0.233014 10.6911 -0.0203041 11.3835 0.00127367C12.0714 0.00660201 12.7315 0.27311 13.2298 0.746671C13.7076 1.23651 13.9824 1.88848 13.9992 2.57201C14.0159 3.25554 13.7733 3.92015 13.32 4.4327L4.23648 13.5331C4.13482 13.6342 4.0017 13.6978 3.85903 13.7133L0.667067 14L0.609628 13.959ZM1.43018 10.4696L1.25787 12.714L3.50619 12.5092L12.4502 3.56444C12.6246 3.35841 12.7361 3.10674 12.7714 2.83933C12.8067 2.57193 12.7644 2.30002 12.6495 2.05591C12.5346 1.8118 12.3519 1.60575 12.1231 1.46224C11.8943 1.31873 11.6291 1.2438 11.3589 1.24633C11.1813 1.23508 11.0033 1.25975 10.8355 1.31887C10.6677 1.37798 10.5136 1.47033 10.3824 1.59036L1.43018 10.4696Z",fill:"currentColor"},null,-1)]),16)}ghn.render=mFr;var whn={name:"MinusIcon",extends:Fc};function yFr(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{d:"M13.2222 7.77778H0.777778C0.571498 7.77778 0.373667 7.69584 0.227806 7.54998C0.0819442 7.40412 0 7.20629 0 7.00001C0 6.79373 0.0819442 6.5959 0.227806 6.45003C0.373667 6.30417 0.571498 6.22223 0.777778 6.22223H13.2222C13.4285 6.22223 13.6263 6.30417 13.7722 6.45003C13.9181 6.5959 14 6.79373 14 7.00001C14 7.20629 13.9181 7.40412 13.7722 7.54998C13.6263 7.69584 13.4285 7.77778 13.2222 7.77778Z",fill:"currentColor"},null,-1)]),16)}whn.render=yFr;var vFr=function(r){var o=r.dt;return` +`)},IFr={root:function(r){var o=r.props;return["p-datatable p-component",{"p-datatable-hoverable":o.rowHover||o.selectionMode,"p-datatable-resizable":o.resizableColumns,"p-datatable-resizable-fit":o.resizableColumns&&o.columnResizeMode==="fit","p-datatable-scrollable":o.scrollable,"p-datatable-flex-scrollable":o.scrollable&&o.scrollHeight==="flex","p-datatable-striped":o.stripedRows,"p-datatable-gridlines":o.showGridlines,"p-datatable-sm":o.size==="small","p-datatable-lg":o.size==="large"}]},mask:"p-datatable-mask p-overlay-mask",loadingIcon:"p-datatable-loading-icon",header:"p-datatable-header",pcPaginator:function(r){var o=r.position;return"p-datatable-paginator-"+o},tableContainer:"p-datatable-table-container",table:function(r){var o=r.props;return["p-datatable-table",{"p-datatable-scrollable-table":o.scrollable,"p-datatable-resizable-table":o.resizableColumns,"p-datatable-resizable-table-fit":o.resizableColumns&&o.columnResizeMode==="fit"}]},thead:"p-datatable-thead",headerCell:function(r){var o=r.instance,l=r.props,u=r.column;return u&&!o.columnProp(u,"hidden")&&(l.rowGroupMode!=="subheader"||l.groupRowsBy!==o.columnProp(u,"field"))?["p-datatable-header-cell",{"p-datatable-frozen-column":o.columnProp(u,"frozen")}]:["p-datatable-header-cell",{"p-datatable-sortable-column":o.columnProp("sortable"),"p-datatable-resizable-column":o.resizableColumns,"p-datatable-column-sorted":o.isColumnSorted(),"p-datatable-frozen-column":o.columnProp("frozen"),"p-datatable-reorderable-column":l.reorderableColumns}]},columnResizer:"p-datatable-column-resizer",columnHeaderContent:"p-datatable-column-header-content",columnTitle:"p-datatable-column-title",columnFooter:"p-datatable-column-footer",sortIcon:"p-datatable-sort-icon",pcSortBadge:"p-datatable-sort-badge",filter:function(r){var o=r.props;return["p-datatable-filter",{"p-datatable-inline-filter":o.display==="row","p-datatable-popover-filter":o.display==="menu"}]},filterElementContainer:"p-datatable-filter-element-container",pcColumnFilterButton:"p-datatable-column-filter-button",pcColumnFilterClearButton:"p-datatable-column-filter-clear-button",filterOverlay:function(r){r.instance;var o=r.props;return["p-datatable-filter-overlay p-component",{"p-datatable-filter-overlay-popover":o.display==="menu"}]},filterConstraintList:"p-datatable-filter-constraint-list",filterConstraint:function(r){var o=r.instance,l=r.matchMode;return["p-datatable-filter-constraint",{"p-datatable-filter-constraint-selected":l&&o.isRowMatchModeSelected(l.value)}]},filterConstraintSeparator:"p-datatable-filter-constraint-separator",filterOperator:"p-datatable-filter-operator",pcFilterOperatorDropdown:"p-datatable-filter-operator-dropdown",filterRuleList:"p-datatable-filter-rule-list",filterRule:"p-datatable-filter-rule",pcFilterConstraintDropdown:"p-datatable-filter-constraint-dropdown",pcFilterRemoveRuleButton:"p-datatable-filter-remove-rule-button",pcFilterAddRuleButton:"p-datatable-filter-add-rule-button",filterButtonbar:"p-datatable-filter-buttonbar",pcFilterClearButton:"p-datatable-filter-clear-button",pcFilterApplyButton:"p-datatable-filter-apply-button",tbody:function(r){var o=r.props;return o.frozenRow?"p-datatable-tbody p-datatable-frozen-tbody":"p-datatable-tbody"},rowGroupHeader:"p-datatable-row-group-header",rowToggleButton:"p-datatable-row-toggle-button",rowToggleIcon:"p-datatable-row-toggle-icon",row:function(r){var o=r.instance,l=r.props,u=r.index,d=r.columnSelectionMode,h=[];return l.selectionMode&&h.push("p-datatable-selectable-row"),l.selection&&h.push({"p-datatable-row-selected":d?o.isSelected&&o.$parentInstance.$parentInstance.highlightOnSelect:o.isSelected}),l.contextMenuSelection&&h.push({"p-datatable-contextmenu-row-selected":o.isSelectedWithContextMenu}),h.push(u%2===0?"p-row-even":"p-row-odd"),h},rowExpansion:"p-datatable-row-expansion",rowGroupFooter:"p-datatable-row-group-footer",emptyMessage:"p-datatable-empty-message",bodyCell:function(r){var o=r.instance;return[{"p-datatable-frozen-column":o.columnProp("frozen")}]},reorderableRowHandle:"p-datatable-reorderable-row-handle",pcRowEditorInit:"p-datatable-row-editor-init",pcRowEditorSave:"p-datatable-row-editor-save",pcRowEditorCancel:"p-datatable-row-editor-cancel",tfoot:"p-datatable-tfoot",footerCell:function(r){var o=r.instance;return[{"p-datatable-frozen-column":o.columnProp("frozen")}]},virtualScrollerSpacer:"p-datatable-virtualscroller-spacer",footer:"p-datatable-footer",columnResizeIndicator:"p-datatable-column-resize-indicator",rowReorderIndicatorUp:"p-datatable-row-reorder-indicator-up",rowReorderIndicatorDown:"p-datatable-row-reorder-indicator-down"},PFr={tableContainer:{overflow:"auto"},thead:{position:"sticky"},tfoot:{position:"sticky"}},OFr=Bs.extend({name:"datatable",theme:$Fr,classes:IFr,inlineStyles:PFr}),LVe={name:"ChevronRightIcon",extends:Fc};function NFr(n,r,o,l,u,d){return ze(),jt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{d:"M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z",fill:"currentColor"},null,-1)]),16)}LVe.render=NFr;var khn={name:"BarsIcon",extends:Fc};function MFr(n,r,o,l,u,d){return ze(),jt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.3226 3.6129H0.677419C0.497757 3.6129 0.325452 3.54152 0.198411 3.41448C0.0713707 3.28744 0 3.11514 0 2.93548C0 2.75581 0.0713707 2.58351 0.198411 2.45647C0.325452 2.32943 0.497757 2.25806 0.677419 2.25806H13.3226C13.5022 2.25806 13.6745 2.32943 13.8016 2.45647C13.9286 2.58351 14 2.75581 14 2.93548C14 3.11514 13.9286 3.28744 13.8016 3.41448C13.6745 3.54152 13.5022 3.6129 13.3226 3.6129ZM13.3226 7.67741H0.677419C0.497757 7.67741 0.325452 7.60604 0.198411 7.479C0.0713707 7.35196 0 7.17965 0 6.99999C0 6.82033 0.0713707 6.64802 0.198411 6.52098C0.325452 6.39394 0.497757 6.32257 0.677419 6.32257H13.3226C13.5022 6.32257 13.6745 6.39394 13.8016 6.52098C13.9286 6.64802 14 6.82033 14 6.99999C14 7.17965 13.9286 7.35196 13.8016 7.479C13.6745 7.60604 13.5022 7.67741 13.3226 7.67741ZM0.677419 11.7419H13.3226C13.5022 11.7419 13.6745 11.6706 13.8016 11.5435C13.9286 11.4165 14 11.2442 14 11.0645C14 10.8848 13.9286 10.7125 13.8016 10.5855C13.6745 10.4585 13.5022 10.3871 13.3226 10.3871H0.677419C0.497757 10.3871 0.325452 10.4585 0.198411 10.5855C0.0713707 10.7125 0 10.8848 0 11.0645C0 11.2442 0.0713707 11.4165 0.198411 11.5435C0.325452 11.6706 0.497757 11.7419 0.677419 11.7419Z",fill:"currentColor"},null,-1)]),16)}khn.render=MFr;var Rhn={name:"PencilIcon",extends:Fc};function DFr(n,r,o,l,u,d){return ze(),jt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{d:"M0.609628 13.959C0.530658 13.9599 0.452305 13.9451 0.379077 13.9156C0.305849 13.8861 0.239191 13.8424 0.18294 13.787C0.118447 13.7234 0.0688234 13.6464 0.0376166 13.5614C0.00640987 13.4765 -0.00560954 13.3857 0.00241768 13.2956L0.25679 10.1501C0.267698 10.0041 0.331934 9.86709 0.437312 9.76516L9.51265 0.705715C10.0183 0.233014 10.6911 -0.0203041 11.3835 0.00127367C12.0714 0.00660201 12.7315 0.27311 13.2298 0.746671C13.7076 1.23651 13.9824 1.88848 13.9992 2.57201C14.0159 3.25554 13.7733 3.92015 13.32 4.4327L4.23648 13.5331C4.13482 13.6342 4.0017 13.6978 3.85903 13.7133L0.667067 14L0.609628 13.959ZM1.43018 10.4696L1.25787 12.714L3.50619 12.5092L12.4502 3.56444C12.6246 3.35841 12.7361 3.10674 12.7714 2.83933C12.8067 2.57193 12.7644 2.30002 12.6495 2.05591C12.5346 1.8118 12.3519 1.60575 12.1231 1.46224C11.8943 1.31873 11.6291 1.2438 11.3589 1.24633C11.1813 1.23508 11.0033 1.25975 10.8355 1.31887C10.6677 1.37798 10.5136 1.47033 10.3824 1.59036L1.43018 10.4696Z",fill:"currentColor"},null,-1)]),16)}Rhn.render=DFr;var xhn={name:"MinusIcon",extends:Fc};function LFr(n,r,o,l,u,d){return ze(),jt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{d:"M13.2222 7.77778H0.777778C0.571498 7.77778 0.373667 7.69584 0.227806 7.54998C0.0819442 7.40412 0 7.20629 0 7.00001C0 6.79373 0.0819442 6.5959 0.227806 6.45003C0.373667 6.30417 0.571498 6.22223 0.777778 6.22223H13.2222C13.4285 6.22223 13.6263 6.30417 13.7722 6.45003C13.9181 6.5959 14 6.79373 14 7.00001C14 7.20629 13.9181 7.40412 13.7722 7.54998C13.6263 7.69584 13.4285 7.77778 13.2222 7.77778Z",fill:"currentColor"},null,-1)]),16)}xhn.render=LFr;var jFr=function(r){var o=r.dt;return` .p-checkbox { position: relative; display: inline-flex; @@ -3171,8 +3171,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho width: `).concat(o("checkbox.icon.lg.size"),`; height: `).concat(o("checkbox.icon.lg.size"),`; } -`)},_Fr={root:function(r){var o=r.instance,l=r.props;return["p-checkbox p-component",{"p-checkbox-checked":o.checked,"p-disabled":l.disabled,"p-invalid":o.$pcCheckboxGroup?o.$pcCheckboxGroup.$invalid:o.$invalid,"p-variant-filled":o.$variant==="filled","p-checkbox-sm p-inputfield-sm":l.size==="small","p-checkbox-lg p-inputfield-lg":l.size==="large"}]},box:"p-checkbox-box",input:"p-checkbox-input",icon:"p-checkbox-icon"},SFr=Bs.extend({name:"checkbox",theme:vFr,classes:_Fr}),EFr={name:"BaseCheckbox",extends:QX,props:{value:null,binary:Boolean,indeterminate:{type:Boolean,default:!1},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:SFr,provide:function(){return{$pcCheckbox:this,$parentInstance:this}}};function kFr(n){return AFr(n)||CFr(n)||xFr(n)||RFr()}function RFr(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xFr(n,r){if(n){if(typeof n=="string")return oWe(n,r);var o={}.toString.call(n).slice(8,-1);return o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set"?Array.from(n):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?oWe(n,r):void 0}}function CFr(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function AFr(n){if(Array.isArray(n))return oWe(n)}function oWe(n,r){(r==null||r>n.length)&&(r=n.length);for(var o=0,l=Array(r);on.length)&&(r=n.length);for(var o=0,l=Array(r);o=n.length?{done:!0}:{done:!1,value:n[l++]}},e:function(y){throw y},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d,h=!0,w=!1;return{s:function(){o=o.call(n)},n:function(){var y=o.next();return h=y.done,y},e:function(y){w=!0,d=y},f:function(){try{h||o.return==null||o.return()}finally{if(w)throw d}}}}function nBr(n,r){if(n){if(typeof n=="string")return qJt(n,r);var o={}.toString.call(n).slice(8,-1);return o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set"?Array.from(n):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?qJt(n,r):void 0}}function qJt(n,r){(r==null||r>n.length)&&(r=n.length);for(var o=0,l=Array(r);o-1:this.groupRowsBy===o:!1},findIndexInSelection:function(r){return this.findIndex(r,this.selection)},findIndex:function(r,o){var l=-1;if(o&&o.length){for(var u=0;u-1:!1},isRowGroupExpanded:function(){if(this.expandableRowGroups&&this.expandedRowGroups){var r=Bl(this.rowData,this.groupRowsBy);return this.expandedRowGroups.indexOf(r)>-1}return!1},isSelected:function(){return this.rowData&&this.selection?this.dataKey?this.selectionKeys?this.selectionKeys[Bl(this.rowData,this.dataKey)]!==void 0:!1:this.selection instanceof Array?this.findIndexInSelection(this.rowData)>-1:this.equals(this.rowData,this.selection):!1},isSelectedWithContextMenu:function(){return this.rowData&&this.contextMenuSelection?this.equals(this.rowData,this.contextMenuSelection,this.dataKey):!1},shouldRenderRowGroupHeader:function(){var r=Bl(this.rowData,this.groupRowsBy),o=this.value[this.rowIndex-1];if(o){var l=Bl(o,this.groupRowsBy);return r!==l}else return!0},shouldRenderRowGroupFooter:function(){if(this.expandableRowGroups&&!this.isRowGroupExpanded)return!1;var r=Bl(this.rowData,this.groupRowsBy),o=this.value[this.rowIndex+1];if(o){var l=Bl(o,this.groupRowsBy);return r!==l}else return!0},columnsLength:function(){var r=this;if(this.columns){var o=0;return this.columns.forEach(function(l){r.columnProp(l,"selectionMode")==="single"&&o--,r.columnProp(l,"hidden")&&o++}),this.columns.length-o}return 0}},components:{DTBodyCell:Rhn,ChevronDownIcon:spe,ChevronRightIcon:IVe}};function DX(n){"@babel/helpers - typeof";return DX=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},DX(n)}function YJt(n,r){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);r&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable})),o.push.apply(o,l)}return o}function j4(n){for(var r=1;r=n.length?{done:!0}:{done:!1,value:n[l++]}},e:function(y){throw y},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d,h=!0,w=!1;return{s:function(){o=o.call(n)},n:function(){var y=o.next();return h=y.done,y},e:function(y){w=!0,d=y},f:function(){try{h||o.return==null||o.return()}finally{if(w)throw d}}}}function EBr(n,r){if(n){if(typeof n=="string")return eYt(n,r);var o={}.toString.call(n).slice(8,-1);return o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set"?Array.from(n):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?eYt(n,r):void 0}}function eYt(n,r){(r==null||r>n.length)&&(r=n.length);for(var o=0,l=Array(r);o1},removeRuleButtonLabel:function(){return this.$primevue.config.locale?this.$primevue.config.locale.removeRule:void 0},addRuleButtonLabel:function(){return this.$primevue.config.locale?this.$primevue.config.locale.addRule:void 0},isShowAddConstraint:function(){return this.showAddButton&&this.filters[this.field].operator&&this.fieldConstraints&&this.fieldConstraints.length-1?r:r+1},isMultiSorted:function(){return this.sortMode==="multiple"&&this.columnProp("sortable")&&this.getMultiSortMetaIndex()>-1},isColumnSorted:function(){return this.sortMode==="single"?this.sortField&&(this.sortField===this.columnProp("field")||this.sortField===this.columnProp("sortField")):this.isMultiSorted()},updateStickyPosition:function(){if(this.columnProp("frozen")){var r=this.columnProp("alignFrozen");if(r==="right"){var o=0,l=OWe(this.$el,'[data-p-frozen-column="true"]');l&&(o=Kp(l)+parseFloat(l.style.right||0)),this.styleObject.insetInlineEnd=o+"px"}else{var u=0,d=NWe(this.$el,'[data-p-frozen-column="true"]');d&&(u=Kp(d)+parseFloat(d.style.left||0)),this.styleObject.insetInlineStart=u+"px"}var h=this.$el.parentElement.nextElementSibling;if(h){var w=Tfe(this.$el);h.children[w]&&(h.children[w].style.left=this.styleObject.left,h.children[w].style.right=this.styleObject.right)}}},onHeaderCheckboxChange:function(r){this.$emit("checkbox-change",r)}},computed:{containerClass:function(){return[this.cx("headerCell"),this.filterColumn?this.columnProp("filterHeaderClass"):this.columnProp("headerClass"),this.columnProp("class")]},containerStyle:function(){var r=this.filterColumn?this.columnProp("filterHeaderStyle"):this.columnProp("headerStyle"),o=this.columnProp("style");return this.columnProp("frozen")?[o,r,this.styleObject]:[o,r]},sortState:function(){var r=!1,o=null;if(this.sortMode==="single")r=this.sortField&&(this.sortField===this.columnProp("field")||this.sortField===this.columnProp("sortField")),o=r?this.sortOrder:0;else if(this.sortMode==="multiple"){var l=this.getMultiSortMetaIndex();l>-1&&(r=!0,o=this.multiSortMeta[l].order)}return{sorted:r,sortOrder:o}},sortableColumnIcon:function(){var r=this.sortState,o=r.sorted,l=r.sortOrder;if(o){if(o&&l>0)return aWe;if(o&&l<0)return lWe}else return sWe;return null},ariaSort:function(){if(this.columnProp("sortable")){var r=this.sortState,o=r.sorted,l=r.sortOrder;return o&&l<0?"descending":o&&l>0?"ascending":"none"}else return null}},components:{Badge:LWe,DTHeaderCheckbox:NVe,DTColumnFilter:OVe,SortAltIcon:sWe,SortAmountUpAltIcon:aWe,SortAmountDownIcon:lWe}};function WX(n){"@babel/helpers - typeof";return WX=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},WX(n)}function iYt(n,r){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);r&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable})),o.push.apply(o,l)}return o}function oYt(n){for(var r=1;r=n.length?{done:!0}:{done:!1,value:n[l++]}},e:function(y){throw y},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d,h=!0,w=!1;return{s:function(){o=o.call(n)},n:function(){var y=o.next();return h=y.done,y},e:function(y){w=!0,d=y},f:function(){try{h||o.return==null||o.return()}finally{if(w)throw d}}}}function Lu(n){return iWr(n)||rWr(n)||MVe(n)||nWr()}function nWr(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MVe(n,r){if(n){if(typeof n=="string")return cWe(n,r);var o={}.toString.call(n).slice(8,-1);return o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set"?Array.from(n):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?cWe(n,r):void 0}}function rWr(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function iWr(n){if(Array.isArray(n))return cWe(n)}function cWe(n,r){(r==null||r>n.length)&&(r=n.length);for(var o=0,l=Array(r);ol?this.multisortField(r,o,l+1):0:Sjt(u,d,this.d_multiSortMeta[l].order,h,this.d_nullSortOrder)},addMultiSortField:function(r){var o=this.d_multiSortMeta.findIndex(function(l){return l.field===r});o>=0?this.removableSort&&this.d_multiSortMeta[o].order*-1===this.defaultSortOrder?this.d_multiSortMeta.splice(o,1):this.d_multiSortMeta[o]={field:r,order:this.d_multiSortMeta[o].order*-1}:this.d_multiSortMeta.push({field:r,order:this.defaultSortOrder}),this.d_multiSortMeta=Lu(this.d_multiSortMeta)},getActiveFilters:function(r){var o=function(h){var w=aYt(h,2),v=w[0],y=w[1];if(y.constraints){var E=y.constraints.filter(function(A){return A.value!==null});if(E.length>0)return[v,Jw(Jw({},y),{},{constraints:E})]}else if(y.value!==null)return[v,y]},l=function(h){return h!==void 0},u=Object.entries(r).map(o).filter(l);return Object.fromEntries(u)},filter:function(r){var o=this;if(r){this.clearEditingMetaData();var l=this.getActiveFilters(this.filters),u;l.global&&(u=this.globalFilterFields||this.columns.map(function(Q){return o.columnProp(Q,"filterField")||o.columnProp(Q,"field")}));for(var d=[],h=0;h=h.length?h.length-1:l+1;this.onRowClick({originalEvent:r,data:h[w],index:w})}r.preventDefault()},onArrowUpKey:function(r,o,l,u){var d=this.findPrevSelectableRow(o);if(d&&this.focusRowChange(o,d),r.shiftKey){var h=this.dataToRender(u.rows),w=l-1<=0?0:l-1;this.onRowClick({originalEvent:r,data:h[w],index:w})}r.preventDefault()},onHomeKey:function(r,o,l,u){var d=this.findFirstSelectableRow();if(d&&this.focusRowChange(o,d),r.ctrlKey&&r.shiftKey){var h=this.dataToRender(u.rows);this.$emit("update:selection",h.slice(0,l+1))}r.preventDefault()},onEndKey:function(r,o,l,u){var d=this.findLastSelectableRow();if(d&&this.focusRowChange(o,d),r.ctrlKey&&r.shiftKey){var h=this.dataToRender(u.rows);this.$emit("update:selection",h.slice(l,h.length))}r.preventDefault()},onEnterKey:function(r,o,l){this.onRowClick({originalEvent:r,data:o,index:l}),r.preventDefault()},onSpaceKey:function(r,o,l,u){if(this.onEnterKey(r,o,l),r.shiftKey&&this.selection!==null){var d=this.dataToRender(u.rows),h;if(this.selection.length>0){var w,v;w=y7e(this.selection[0],d),v=y7e(this.selection[this.selection.length-1],d),h=l<=w?v:w}else h=y7e(this.selection,d);var y=h!==l?d.slice(Math.min(h,l),Math.max(h,l)+1):o;this.$emit("update:selection",y)}},onTabKey:function(r,o){var l=this.$refs.bodyRef&&this.$refs.bodyRef.$el,u=wD(l,'tr[data-p-selectable-row="true"]');if(r.code==="Tab"&&u&&u.length>0){var d=pT(l,'tr[data-p-selected="true"]'),h=pT(l,'tr[data-p-selectable-row="true"][tabindex="0"]');d?(d.tabIndex="0",h&&h!==d&&(h.tabIndex="-1")):(u[0].tabIndex="0",h!==u[0]&&(u[o].tabIndex="-1"))}},findNextSelectableRow:function(r){var o=r.nextElementSibling;return o?cp(o,"data-p-selectable-row")===!0?o:this.findNextSelectableRow(o):null},findPrevSelectableRow:function(r){var o=r.previousElementSibling;return o?cp(o,"data-p-selectable-row")===!0?o:this.findPrevSelectableRow(o):null},findFirstSelectableRow:function(){var r=pT(this.$refs.table,'tr[data-p-selectable-row="true"]');return r},findLastSelectableRow:function(){var r=wD(this.$refs.table,'tr[data-p-selectable-row="true"]');return r?r[r.length-1]:null},focusRowChange:function(r,o){r.tabIndex="-1",o.tabIndex="0",Gp(o)},toggleRowWithRadio:function(r){var o=r.data;this.isSelected(o)?(this.$emit("update:selection",null),this.$emit("row-unselect",{originalEvent:r.originalEvent,data:o,index:r.index,type:"radiobutton"})):(this.$emit("update:selection",o),this.$emit("row-select",{originalEvent:r.originalEvent,data:o,index:r.index,type:"radiobutton"}))},toggleRowWithCheckbox:function(r){var o=r.data;if(this.isSelected(o)){var l=this.findIndexInSelection(o),u=this.selection.filter(function(h,w){return w!=l});this.$emit("update:selection",u),this.$emit("row-unselect",{originalEvent:r.originalEvent,data:o,index:r.index,type:"checkbox"})}else{var d=this.selection?Lu(this.selection):[];d=[].concat(Lu(d),[o]),this.$emit("update:selection",d),this.$emit("row-select",{originalEvent:r.originalEvent,data:o,index:r.index,type:"checkbox"})}},toggleRowsWithCheckbox:function(r){if(this.selectAll!==null)this.$emit("select-all-change",r);else{var o=r.originalEvent,l=r.checked,u=[];l?(u=this.frozenValue?[].concat(Lu(this.frozenValue),Lu(this.processedData)):this.processedData,this.$emit("row-select-all",{originalEvent:o,data:u})):this.$emit("row-unselect-all",{originalEvent:o}),this.$emit("update:selection",u)}},isSingleSelectionMode:function(){return this.selectionMode==="single"},isMultipleSelectionMode:function(){return this.selectionMode==="multiple"},isSelected:function(r){return r&&this.selection?this.dataKey?this.d_selectionKeys?this.d_selectionKeys[Bl(r,this.dataKey)]!==void 0:!1:this.selection instanceof Array?this.findIndexInSelection(r)>-1:this.equals(r,this.selection):!1},findIndexInSelection:function(r){return this.findIndex(r,this.selection)},findIndex:function(r,o){var l=-1;if(o&&o.length){for(var u=0;uthis.anchorRowIndex?(o=this.anchorRowIndex,l=this.rangeRowIndex):this.rangeRowIndex=n.length?{done:!0}:{done:!1,value:n[l++]}},e:function(y){throw y},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d,h=!0,w=!1;return{s:function(){o=o.call(n)},n:function(){var y=o.next();return h=y.done,y},e:function(y){w=!0,d=y},f:function(){try{h||o.return==null||o.return()}finally{if(w)throw d}}}}function vBr(n,r){if(n){if(typeof n=="string")return ZJt(n,r);var o={}.toString.call(n).slice(8,-1);return o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set"?Array.from(n):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?ZJt(n,r):void 0}}function ZJt(n,r){(r==null||r>n.length)&&(r=n.length);for(var o=0,l=Array(r);o-1:this.groupRowsBy===o:!1},findIndexInSelection:function(r){return this.findIndex(r,this.selection)},findIndex:function(r,o){var l=-1;if(o&&o.length){for(var u=0;u-1:!1},isRowGroupExpanded:function(){if(this.expandableRowGroups&&this.expandedRowGroups){var r=Bl(this.rowData,this.groupRowsBy);return this.expandedRowGroups.indexOf(r)>-1}return!1},isSelected:function(){return this.rowData&&this.selection?this.dataKey?this.selectionKeys?this.selectionKeys[Bl(this.rowData,this.dataKey)]!==void 0:!1:this.selection instanceof Array?this.findIndexInSelection(this.rowData)>-1:this.equals(this.rowData,this.selection):!1},isSelectedWithContextMenu:function(){return this.rowData&&this.contextMenuSelection?this.equals(this.rowData,this.contextMenuSelection,this.dataKey):!1},shouldRenderRowGroupHeader:function(){var r=Bl(this.rowData,this.groupRowsBy),o=this.value[this.rowIndex-1];if(o){var l=Bl(o,this.groupRowsBy);return r!==l}else return!0},shouldRenderRowGroupFooter:function(){if(this.expandableRowGroups&&!this.isRowGroupExpanded)return!1;var r=Bl(this.rowData,this.groupRowsBy),o=this.value[this.rowIndex+1];if(o){var l=Bl(o,this.groupRowsBy);return r!==l}else return!0},columnsLength:function(){var r=this;if(this.columns){var o=0;return this.columns.forEach(function(l){r.columnProp(l,"selectionMode")==="single"&&o--,r.columnProp(l,"hidden")&&o++}),this.columns.length-o}return 0}},components:{DTBodyCell:Nhn,ChevronDownIcon:cpe,ChevronRightIcon:LVe}};function DX(n){"@babel/helpers - typeof";return DX=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},DX(n)}function nYt(n,r){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);r&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable})),o.push.apply(o,l)}return o}function j4(n){for(var r=1;r=n.length?{done:!0}:{done:!1,value:n[l++]}},e:function(y){throw y},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d,h=!0,w=!1;return{s:function(){o=o.call(n)},n:function(){var y=o.next();return h=y.done,y},e:function(y){w=!0,d=y},f:function(){try{h||o.return==null||o.return()}finally{if(w)throw d}}}}function WBr(n,r){if(n){if(typeof n=="string")return oYt(n,r);var o={}.toString.call(n).slice(8,-1);return o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set"?Array.from(n):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?oYt(n,r):void 0}}function oYt(n,r){(r==null||r>n.length)&&(r=n.length);for(var o=0,l=Array(r);o1},removeRuleButtonLabel:function(){return this.$primevue.config.locale?this.$primevue.config.locale.removeRule:void 0},addRuleButtonLabel:function(){return this.$primevue.config.locale?this.$primevue.config.locale.addRule:void 0},isShowAddConstraint:function(){return this.showAddButton&&this.filters[this.field].operator&&this.fieldConstraints&&this.fieldConstraints.length-1?r:r+1},isMultiSorted:function(){return this.sortMode==="multiple"&&this.columnProp("sortable")&&this.getMultiSortMetaIndex()>-1},isColumnSorted:function(){return this.sortMode==="single"?this.sortField&&(this.sortField===this.columnProp("field")||this.sortField===this.columnProp("sortField")):this.isMultiSorted()},updateStickyPosition:function(){if(this.columnProp("frozen")){var r=this.columnProp("alignFrozen");if(r==="right"){var o=0,l=BWe(this.$el,'[data-p-frozen-column="true"]');l&&(o=Kp(l)+parseFloat(l.style.right||0)),this.styleObject.insetInlineEnd=o+"px"}else{var u=0,d=WWe(this.$el,'[data-p-frozen-column="true"]');d&&(u=Kp(d)+parseFloat(d.style.left||0)),this.styleObject.insetInlineStart=u+"px"}var h=this.$el.parentElement.nextElementSibling;if(h){var w=Ife(this.$el);h.children[w]&&(h.children[w].style.left=this.styleObject.left,h.children[w].style.right=this.styleObject.right)}}},onHeaderCheckboxChange:function(r){this.$emit("checkbox-change",r)}},computed:{containerClass:function(){return[this.cx("headerCell"),this.filterColumn?this.columnProp("filterHeaderClass"):this.columnProp("headerClass"),this.columnProp("class")]},containerStyle:function(){var r=this.filterColumn?this.columnProp("filterHeaderStyle"):this.columnProp("headerStyle"),o=this.columnProp("style");return this.columnProp("frozen")?[o,r,this.styleObject]:[o,r]},sortState:function(){var r=!1,o=null;if(this.sortMode==="single")r=this.sortField&&(this.sortField===this.columnProp("field")||this.sortField===this.columnProp("sortField")),o=r?this.sortOrder:0;else if(this.sortMode==="multiple"){var l=this.getMultiSortMetaIndex();l>-1&&(r=!0,o=this.multiSortMeta[l].order)}return{sorted:r,sortOrder:o}},sortableColumnIcon:function(){var r=this.sortState,o=r.sorted,l=r.sortOrder;if(o){if(o&&l>0)return bWe;if(o&&l<0)return pWe}else return hWe;return null},ariaSort:function(){if(this.columnProp("sortable")){var r=this.sortState,o=r.sorted,l=r.sortOrder;return o&&l<0?"descending":o&&l>0?"ascending":"none"}else return null}},components:{Badge:GWe,DTHeaderCheckbox:BVe,DTColumnFilter:FVe,SortAltIcon:hWe,SortAmountUpAltIcon:bWe,SortAmountDownIcon:pWe}};function WX(n){"@babel/helpers - typeof";return WX=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},WX(n)}function cYt(n,r){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);r&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable})),o.push.apply(o,l)}return o}function uYt(n){for(var r=1;r=n.length?{done:!0}:{done:!1,value:n[l++]}},e:function(y){throw y},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d,h=!0,w=!1;return{s:function(){o=o.call(n)},n:function(){var y=o.next();return h=y.done,y},e:function(y){w=!0,d=y},f:function(){try{h||o.return==null||o.return()}finally{if(w)throw d}}}}function Lu(n){return SWr(n)||_Wr(n)||WVe(n)||vWr()}function vWr(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WVe(n,r){if(n){if(typeof n=="string")return gWe(n,r);var o={}.toString.call(n).slice(8,-1);return o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set"?Array.from(n):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?gWe(n,r):void 0}}function _Wr(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function SWr(n){if(Array.isArray(n))return gWe(n)}function gWe(n,r){(r==null||r>n.length)&&(r=n.length);for(var o=0,l=Array(r);ol?this.multisortField(r,o,l+1):0:Ajt(u,d,this.d_multiSortMeta[l].order,h,this.d_nullSortOrder)},addMultiSortField:function(r){var o=this.d_multiSortMeta.findIndex(function(l){return l.field===r});o>=0?this.removableSort&&this.d_multiSortMeta[o].order*-1===this.defaultSortOrder?this.d_multiSortMeta.splice(o,1):this.d_multiSortMeta[o]={field:r,order:this.d_multiSortMeta[o].order*-1}:this.d_multiSortMeta.push({field:r,order:this.defaultSortOrder}),this.d_multiSortMeta=Lu(this.d_multiSortMeta)},getActiveFilters:function(r){var o=function(h){var w=hYt(h,2),v=w[0],y=w[1];if(y.constraints){var E=y.constraints.filter(function(A){return A.value!==null});if(E.length>0)return[v,Jw(Jw({},y),{},{constraints:E})]}else if(y.value!==null)return[v,y]},l=function(h){return h!==void 0},u=Object.entries(r).map(o).filter(l);return Object.fromEntries(u)},filter:function(r){var o=this;if(r){this.clearEditingMetaData();var l=this.getActiveFilters(this.filters),u;l.global&&(u=this.globalFilterFields||this.columns.map(function(Q){return o.columnProp(Q,"filterField")||o.columnProp(Q,"field")}));for(var d=[],h=0;h=h.length?h.length-1:l+1;this.onRowClick({originalEvent:r,data:h[w],index:w})}r.preventDefault()},onArrowUpKey:function(r,o,l,u){var d=this.findPrevSelectableRow(o);if(d&&this.focusRowChange(o,d),r.shiftKey){var h=this.dataToRender(u.rows),w=l-1<=0?0:l-1;this.onRowClick({originalEvent:r,data:h[w],index:w})}r.preventDefault()},onHomeKey:function(r,o,l,u){var d=this.findFirstSelectableRow();if(d&&this.focusRowChange(o,d),r.ctrlKey&&r.shiftKey){var h=this.dataToRender(u.rows);this.$emit("update:selection",h.slice(0,l+1))}r.preventDefault()},onEndKey:function(r,o,l,u){var d=this.findLastSelectableRow();if(d&&this.focusRowChange(o,d),r.ctrlKey&&r.shiftKey){var h=this.dataToRender(u.rows);this.$emit("update:selection",h.slice(l,h.length))}r.preventDefault()},onEnterKey:function(r,o,l){this.onRowClick({originalEvent:r,data:o,index:l}),r.preventDefault()},onSpaceKey:function(r,o,l,u){if(this.onEnterKey(r,o,l),r.shiftKey&&this.selection!==null){var d=this.dataToRender(u.rows),h;if(this.selection.length>0){var w,v;w=E7e(this.selection[0],d),v=E7e(this.selection[this.selection.length-1],d),h=l<=w?v:w}else h=E7e(this.selection,d);var y=h!==l?d.slice(Math.min(h,l),Math.max(h,l)+1):o;this.$emit("update:selection",y)}},onTabKey:function(r,o){var l=this.$refs.bodyRef&&this.$refs.bodyRef.$el,u=gD(l,'tr[data-p-selectable-row="true"]');if(r.code==="Tab"&&u&&u.length>0){var d=pT(l,'tr[data-p-selected="true"]'),h=pT(l,'tr[data-p-selectable-row="true"][tabindex="0"]');d?(d.tabIndex="0",h&&h!==d&&(h.tabIndex="-1")):(u[0].tabIndex="0",h!==u[0]&&(u[o].tabIndex="-1"))}},findNextSelectableRow:function(r){var o=r.nextElementSibling;return o?cp(o,"data-p-selectable-row")===!0?o:this.findNextSelectableRow(o):null},findPrevSelectableRow:function(r){var o=r.previousElementSibling;return o?cp(o,"data-p-selectable-row")===!0?o:this.findPrevSelectableRow(o):null},findFirstSelectableRow:function(){var r=pT(this.$refs.table,'tr[data-p-selectable-row="true"]');return r},findLastSelectableRow:function(){var r=gD(this.$refs.table,'tr[data-p-selectable-row="true"]');return r?r[r.length-1]:null},focusRowChange:function(r,o){r.tabIndex="-1",o.tabIndex="0",Gp(o)},toggleRowWithRadio:function(r){var o=r.data;this.isSelected(o)?(this.$emit("update:selection",null),this.$emit("row-unselect",{originalEvent:r.originalEvent,data:o,index:r.index,type:"radiobutton"})):(this.$emit("update:selection",o),this.$emit("row-select",{originalEvent:r.originalEvent,data:o,index:r.index,type:"radiobutton"}))},toggleRowWithCheckbox:function(r){var o=r.data;if(this.isSelected(o)){var l=this.findIndexInSelection(o),u=this.selection.filter(function(h,w){return w!=l});this.$emit("update:selection",u),this.$emit("row-unselect",{originalEvent:r.originalEvent,data:o,index:r.index,type:"checkbox"})}else{var d=this.selection?Lu(this.selection):[];d=[].concat(Lu(d),[o]),this.$emit("update:selection",d),this.$emit("row-select",{originalEvent:r.originalEvent,data:o,index:r.index,type:"checkbox"})}},toggleRowsWithCheckbox:function(r){if(this.selectAll!==null)this.$emit("select-all-change",r);else{var o=r.originalEvent,l=r.checked,u=[];l?(u=this.frozenValue?[].concat(Lu(this.frozenValue),Lu(this.processedData)):this.processedData,this.$emit("row-select-all",{originalEvent:o,data:u})):this.$emit("row-unselect-all",{originalEvent:o}),this.$emit("update:selection",u)}},isSingleSelectionMode:function(){return this.selectionMode==="single"},isMultipleSelectionMode:function(){return this.selectionMode==="multiple"},isSelected:function(r){return r&&this.selection?this.dataKey?this.d_selectionKeys?this.d_selectionKeys[Bl(r,this.dataKey)]!==void 0:!1:this.selection instanceof Array?this.findIndexInSelection(r)>-1:this.equals(r,this.selection):!1},findIndexInSelection:function(r){return this.findIndex(r,this.selection)},findIndex:function(r,o){var l=-1;if(o&&o.length){for(var u=0;uthis.anchorRowIndex?(o=this.anchorRowIndex,l=this.rangeRowIndex):this.rangeRowIndexparseInt(u,10)){if(this.columnResizeMode==="fit"){var d=this.resizeColumnElement.nextElementSibling,h=d.offsetWidth-r;l>15&&h>15&&this.resizeTableCells(l,h)}else if(this.columnResizeMode==="expand"){var w=this.$refs.table.offsetWidth+r+"px",v=function(C){C&&(C.style.width=C.style.minWidth=w)};if(this.resizeTableCells(l),v(this.$refs.table),!this.virtualScrollerDisabled){var y=this.$refs.bodyRef&&this.$refs.bodyRef.$el,E=this.$refs.frozenBodyRef&&this.$refs.frozenBodyRef.$el;v(y),v(E)}}this.$emit("column-resize-end",{element:this.resizeColumnElement,delta:r})}this.$refs.resizeHelper.style.display="none",this.resizeColumn=null,this.$el.removeAttribute("data-p-unselectable-text"),!this.isUnstyled&&(this.$el.style["user-select"]=""),this.unbindColumnResizeEvents(),this.isStateful()&&this.saveState()},resizeTableCells:function(r,o){var l=Tfe(this.resizeColumnElement),u=[],d=wD(this.$refs.table,'thead[data-pc-section="thead"] > tr > th');d.forEach(function(v){return u.push(Kp(v))}),this.destroyStyleElement(),this.createStyleElement();var h="",w='[data-pc-name="datatable"]['.concat(this.$attrSelector,'] > [data-pc-section="tablecontainer"] ').concat(this.virtualScrollerDisabled?"":'> [data-pc-name="virtualscroller"]',' > table[data-pc-section="table"]');u.forEach(function(v,y){var E=y===l?r:o&&y===l+1?o:v,A="width: ".concat(E,"px !important; max-width: ").concat(E,"px !important");h+=` +`),this.columnProp(E,"exportable")!==!1&&this.columnProp(E,"exportFooter")&&(v?u+=this.csvSeparator:v=!0,u+='"'+(this.columnProp(E,"exportFooter")||this.columnProp(E,"footer")||this.columnProp(E,"field"))+'"')}GHn(u,this.exportFilename)},resetPage:function(){this.d_first=0,this.$emit("update:first",this.d_first)},onColumnResizeStart:function(r){var o=sT(this.$el).left;this.resizeColumnElement=r.target.parentElement,this.columnResizing=!0,this.lastResizeHelperX=r.pageX-o+this.$el.scrollLeft,this.bindColumnResizeEvents()},onColumnResize:function(r){var o=sT(this.$el).left;this.$el.setAttribute("data-p-unselectable-text","true"),!this.isUnstyled&&RL(this.$el,{"user-select":"none"}),this.$refs.resizeHelper.style.height=this.$el.offsetHeight+"px",this.$refs.resizeHelper.style.top="0px",this.$refs.resizeHelper.style.left=r.pageX-o+this.$el.scrollLeft+"px",this.$refs.resizeHelper.style.display="block"},onColumnResizeEnd:function(){var r=GQt(this.$el)?this.lastResizeHelperX-this.$refs.resizeHelper.offsetLeft:this.$refs.resizeHelper.offsetLeft-this.lastResizeHelperX,o=this.resizeColumnElement.offsetWidth,l=o+r,u=this.resizeColumnElement.style.minWidth||15;if(o+r>parseInt(u,10)){if(this.columnResizeMode==="fit"){var d=this.resizeColumnElement.nextElementSibling,h=d.offsetWidth-r;l>15&&h>15&&this.resizeTableCells(l,h)}else if(this.columnResizeMode==="expand"){var w=this.$refs.table.offsetWidth+r+"px",v=function(C){C&&(C.style.width=C.style.minWidth=w)};if(this.resizeTableCells(l),v(this.$refs.table),!this.virtualScrollerDisabled){var y=this.$refs.bodyRef&&this.$refs.bodyRef.$el,E=this.$refs.frozenBodyRef&&this.$refs.frozenBodyRef.$el;v(y),v(E)}}this.$emit("column-resize-end",{element:this.resizeColumnElement,delta:r})}this.$refs.resizeHelper.style.display="none",this.resizeColumn=null,this.$el.removeAttribute("data-p-unselectable-text"),!this.isUnstyled&&(this.$el.style["user-select"]=""),this.unbindColumnResizeEvents(),this.isStateful()&&this.saveState()},resizeTableCells:function(r,o){var l=Ife(this.resizeColumnElement),u=[],d=gD(this.$refs.table,'thead[data-pc-section="thead"] > tr > th');d.forEach(function(v){return u.push(Kp(v))}),this.destroyStyleElement(),this.createStyleElement();var h="",w='[data-pc-name="datatable"]['.concat(this.$attrSelector,'] > [data-pc-section="tablecontainer"] ').concat(this.virtualScrollerDisabled?"":'> [data-pc-name="virtualscroller"]',' > table[data-pc-section="table"]');u.forEach(function(v,y){var E=y===l?r:o&&y===l+1?o:v,A="width: ".concat(E,"px !important; max-width: ").concat(E,"px !important");h+=` `.concat(w,' > thead[data-pc-section="thead"] > tr > th:nth-child(').concat(y+1,`), `).concat(w,' > tbody[data-pc-section="tbody"] > tr > td:nth-child(').concat(y+1,`), `).concat(w,' > tfoot[data-pc-section="tfoot"] > tr > td:nth-child(').concat(y+1,`) { `).concat(A,` } - `)}),this.styleElement.innerHTML=h},bindColumnResizeEvents:function(){var r=this;this.documentColumnResizeListener||(this.documentColumnResizeListener=document.addEventListener("mousemove",function(){r.columnResizing&&r.onColumnResize(event)})),this.documentColumnResizeEndListener||(this.documentColumnResizeEndListener=document.addEventListener("mouseup",function(){r.columnResizing&&(r.columnResizing=!1,r.onColumnResizeEnd())}))},unbindColumnResizeEvents:function(){this.documentColumnResizeListener&&(document.removeEventListener("document",this.documentColumnResizeListener),this.documentColumnResizeListener=null),this.documentColumnResizeEndListener&&(document.removeEventListener("document",this.documentColumnResizeEndListener),this.documentColumnResizeEndListener=null)},onColumnHeaderMouseDown:function(r){var o=r.originalEvent,l=r.column;this.reorderableColumns&&this.columnProp(l,"reorderableColumn")!==!1&&(o.target.nodeName==="INPUT"||o.target.nodeName==="TEXTAREA"||cp(o.target,'[data-pc-section="columnresizer"]')?o.currentTarget.draggable=!1:o.currentTarget.draggable=!0)},onColumnHeaderDragStart:function(r){var o=r.originalEvent,l=r.column;if(this.columnResizing){o.preventDefault();return}this.colReorderIconWidth=BHn(this.$refs.reorderIndicatorUp),this.colReorderIconHeight=FHn(this.$refs.reorderIndicatorUp),this.draggedColumn=l,this.draggedColumnElement=this.findParentHeader(o.target),o.dataTransfer.setData("text","b")},onColumnHeaderDragOver:function(r){var o=r.originalEvent,l=r.column,u=this.findParentHeader(o.target);if(this.reorderableColumns&&this.draggedColumnElement&&u&&!this.columnProp(l,"frozen")){o.preventDefault();var d=sT(this.$el),h=sT(u);if(this.draggedColumnElement!==u){var w=h.left-d.left,v=h.left+u.offsetWidth/2;this.$refs.reorderIndicatorUp.style.top=h.top-d.top-(this.colReorderIconHeight-1)+"px",this.$refs.reorderIndicatorDown.style.top=h.top-d.top+u.offsetHeight+"px",o.pageX>v?(this.$refs.reorderIndicatorUp.style.left=w+u.offsetWidth-Math.ceil(this.colReorderIconWidth/2)+"px",this.$refs.reorderIndicatorDown.style.left=w+u.offsetWidth-Math.ceil(this.colReorderIconWidth/2)+"px",this.dropPosition=1):(this.$refs.reorderIndicatorUp.style.left=w-Math.ceil(this.colReorderIconWidth/2)+"px",this.$refs.reorderIndicatorDown.style.left=w-Math.ceil(this.colReorderIconWidth/2)+"px",this.dropPosition=-1),this.$refs.reorderIndicatorUp.style.display="block",this.$refs.reorderIndicatorDown.style.display="block"}}},onColumnHeaderDragLeave:function(r){var o=r.originalEvent;this.reorderableColumns&&this.draggedColumnElement&&(o.preventDefault(),this.$refs.reorderIndicatorUp.style.display="none",this.$refs.reorderIndicatorDown.style.display="none")},onColumnHeaderDrop:function(r){var o=this,l=r.originalEvent,u=r.column;if(l.preventDefault(),this.draggedColumnElement){var d=Tfe(this.draggedColumnElement),h=Tfe(this.findParentHeader(l.target)),w=d!==h;if(w&&(h-d===1&&this.dropPosition===-1||h-d===-1&&this.dropPosition===1)&&(w=!1),w){var v=function(H,G){return o.columnProp(H,"columnKey")||o.columnProp(G,"columnKey")?o.columnProp(H,"columnKey")===o.columnProp(G,"columnKey"):o.columnProp(H,"field")===o.columnProp(G,"field")},y=this.columns.findIndex(function(L){return v(L,o.draggedColumn)}),E=this.columns.findIndex(function(L){return v(L,u)}),A=[],C=wD(this.$el,'thead[data-pc-section="thead"] > tr > th');C.forEach(function(L){return A.push(Kp(L))});var R=A.find(function(L,H){return H===y}),O=A.filter(function(L,H){return H!==y}),M=[].concat(Lu(O.slice(0,E)),[R],Lu(O.slice(E)));this.addColumnWidthStyles(M),Ey&&this.dropPosition===-1&&E--,_jt(this.columns,y,E),this.updateReorderableColumns(),this.$emit("column-reorder",{originalEvent:l,dragIndex:y,dropIndex:E})}this.$refs.reorderIndicatorUp.style.display="none",this.$refs.reorderIndicatorDown.style.display="none",this.draggedColumnElement.draggable=!1,this.draggedColumnElement=null,this.draggedColumn=null,this.dropPosition=null}},findParentHeader:function(r){if(r.nodeName==="TH")return r;for(var o=r.parentElement;o.nodeName!=="TH"&&(o=o.parentElement,!!o););return o},findColumnByKey:function(r,o){if(r&&r.length)for(var l=0;lthis.droppedRowIndex?this.droppedRowIndex:this.droppedRowIndex===0?0:this.droppedRowIndex-1,l=Lu(this.processedData);_jt(l,this.draggedRowIndex+this.d_first,o+this.d_first),this.$emit("row-reorder",{originalEvent:r,dragIndex:this.draggedRowIndex,dropIndex:o,value:l})}this.onRowDragLeave(r),this.onRowDragEnd(r),r.preventDefault()},toggleRow:function(r){var o=this,l=r.expanded,u=qBr(r,KBr),d=r.data,h;if(this.dataKey){var w=Bl(d,this.dataKey);h=this.expandedRows?Jw({},this.expandedRows):{},l?h[w]=!0:delete h[w]}else h=this.expandedRows?Lu(this.expandedRows):[],l?h.push(d):h=h.filter(function(v){return!o.equals(d,v)});this.$emit("update:expandedRows",h),l?this.$emit("row-expand",u):this.$emit("row-collapse",u)},toggleRowGroup:function(r){var o=r.originalEvent,l=r.data,u=Bl(l,this.groupRowsBy),d=this.expandedRowGroups?Lu(this.expandedRowGroups):[];this.isRowGroupExpanded(l)?(d=d.filter(function(h){return h!==u}),this.$emit("update:expandedRowGroups",d),this.$emit("rowgroup-collapse",{originalEvent:o,data:u})):(d.push(u),this.$emit("update:expandedRowGroups",d),this.$emit("rowgroup-expand",{originalEvent:o,data:u}))},isRowGroupExpanded:function(r){if(this.expandableRowGroups&&this.expandedRowGroups){var o=Bl(r,this.groupRowsBy);return this.expandedRowGroups.indexOf(o)>-1}return!1},isStateful:function(){return this.stateKey!=null},getStorage:function(){switch(this.stateStorage){case"local":return window.localStorage;case"session":return window.sessionStorage;default:throw new Error(this.stateStorage+' is not a valid value for the state storage, supported values are "local" and "session".')}},saveState:function(){var r=this.getStorage(),o={};this.paginator&&(o.first=this.d_first,o.rows=this.d_rows),this.d_sortField&&(o.sortField=this.d_sortField,o.sortOrder=this.d_sortOrder),this.d_multiSortMeta&&(o.multiSortMeta=this.d_multiSortMeta),this.hasFilters&&(o.filters=this.filters),this.resizableColumns&&this.saveColumnWidths(o),this.reorderableColumns&&(o.columnOrder=this.d_columnOrder),this.expandedRows&&(o.expandedRows=this.expandedRows),this.expandedRowGroups&&(o.expandedRowGroups=this.expandedRowGroups),this.selection&&(o.selection=this.selection,o.selectionKeys=this.d_selectionKeys),Object.keys(o).length&&r.setItem(this.stateKey,JSON.stringify(o)),this.$emit("state-save",o)},restoreState:function(){var r=this.getStorage(),o=r.getItem(this.stateKey),l=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/,u=function(w,v){return typeof v=="string"&&l.test(v)?new Date(v):v};if(o){var d=JSON.parse(o,u);this.paginator&&(this.d_first=d.first,this.d_rows=d.rows),d.sortField&&(this.d_sortField=d.sortField,this.d_sortOrder=d.sortOrder),d.multiSortMeta&&(this.d_multiSortMeta=d.multiSortMeta),d.filters&&this.$emit("update:filters",d.filters),this.resizableColumns&&(this.columnWidthsState=d.columnWidths,this.tableWidthState=d.tableWidth),this.reorderableColumns&&(this.d_columnOrder=d.columnOrder),d.expandedRows&&this.$emit("update:expandedRows",d.expandedRows),d.expandedRowGroups&&this.$emit("update:expandedRowGroups",d.expandedRowGroups),d.selection&&(this.d_selectionKeys=d.d_selectionKeys,this.$emit("update:selection",d.selection)),this.$emit("state-restore",d)}},saveColumnWidths:function(r){var o=[],l=wD(this.$el,'thead[data-pc-section="thead"] > tr > th');l.forEach(function(u){return o.push(Kp(u))}),r.columnWidths=o.join(","),this.columnResizeMode==="expand"&&(r.tableWidth=Kp(this.$refs.table)+"px")},addColumnWidthStyles:function(r){this.createStyleElement();var o="",l='[data-pc-name="datatable"]['.concat(this.$attrSelector,'] > [data-pc-section="tablecontainer"] ').concat(this.virtualScrollerDisabled?"":'> [data-pc-name="virtualscroller"]',' > table[data-pc-section="table"]');r.forEach(function(u,d){var h="width: ".concat(u,"px !important; max-width: ").concat(u,"px !important");o+=` + `)}),this.styleElement.innerHTML=h},bindColumnResizeEvents:function(){var r=this;this.documentColumnResizeListener||(this.documentColumnResizeListener=document.addEventListener("mousemove",function(){r.columnResizing&&r.onColumnResize(event)})),this.documentColumnResizeEndListener||(this.documentColumnResizeEndListener=document.addEventListener("mouseup",function(){r.columnResizing&&(r.columnResizing=!1,r.onColumnResizeEnd())}))},unbindColumnResizeEvents:function(){this.documentColumnResizeListener&&(document.removeEventListener("document",this.documentColumnResizeListener),this.documentColumnResizeListener=null),this.documentColumnResizeEndListener&&(document.removeEventListener("document",this.documentColumnResizeEndListener),this.documentColumnResizeEndListener=null)},onColumnHeaderMouseDown:function(r){var o=r.originalEvent,l=r.column;this.reorderableColumns&&this.columnProp(l,"reorderableColumn")!==!1&&(o.target.nodeName==="INPUT"||o.target.nodeName==="TEXTAREA"||cp(o.target,'[data-pc-section="columnresizer"]')?o.currentTarget.draggable=!1:o.currentTarget.draggable=!0)},onColumnHeaderDragStart:function(r){var o=r.originalEvent,l=r.column;if(this.columnResizing){o.preventDefault();return}this.colReorderIconWidth=XHn(this.$refs.reorderIndicatorUp),this.colReorderIconHeight=qHn(this.$refs.reorderIndicatorUp),this.draggedColumn=l,this.draggedColumnElement=this.findParentHeader(o.target),o.dataTransfer.setData("text","b")},onColumnHeaderDragOver:function(r){var o=r.originalEvent,l=r.column,u=this.findParentHeader(o.target);if(this.reorderableColumns&&this.draggedColumnElement&&u&&!this.columnProp(l,"frozen")){o.preventDefault();var d=sT(this.$el),h=sT(u);if(this.draggedColumnElement!==u){var w=h.left-d.left,v=h.left+u.offsetWidth/2;this.$refs.reorderIndicatorUp.style.top=h.top-d.top-(this.colReorderIconHeight-1)+"px",this.$refs.reorderIndicatorDown.style.top=h.top-d.top+u.offsetHeight+"px",o.pageX>v?(this.$refs.reorderIndicatorUp.style.left=w+u.offsetWidth-Math.ceil(this.colReorderIconWidth/2)+"px",this.$refs.reorderIndicatorDown.style.left=w+u.offsetWidth-Math.ceil(this.colReorderIconWidth/2)+"px",this.dropPosition=1):(this.$refs.reorderIndicatorUp.style.left=w-Math.ceil(this.colReorderIconWidth/2)+"px",this.$refs.reorderIndicatorDown.style.left=w-Math.ceil(this.colReorderIconWidth/2)+"px",this.dropPosition=-1),this.$refs.reorderIndicatorUp.style.display="block",this.$refs.reorderIndicatorDown.style.display="block"}}},onColumnHeaderDragLeave:function(r){var o=r.originalEvent;this.reorderableColumns&&this.draggedColumnElement&&(o.preventDefault(),this.$refs.reorderIndicatorUp.style.display="none",this.$refs.reorderIndicatorDown.style.display="none")},onColumnHeaderDrop:function(r){var o=this,l=r.originalEvent,u=r.column;if(l.preventDefault(),this.draggedColumnElement){var d=Ife(this.draggedColumnElement),h=Ife(this.findParentHeader(l.target)),w=d!==h;if(w&&(h-d===1&&this.dropPosition===-1||h-d===-1&&this.dropPosition===1)&&(w=!1),w){var v=function(H,G){return o.columnProp(H,"columnKey")||o.columnProp(G,"columnKey")?o.columnProp(H,"columnKey")===o.columnProp(G,"columnKey"):o.columnProp(H,"field")===o.columnProp(G,"field")},y=this.columns.findIndex(function(L){return v(L,o.draggedColumn)}),E=this.columns.findIndex(function(L){return v(L,u)}),A=[],C=gD(this.$el,'thead[data-pc-section="thead"] > tr > th');C.forEach(function(L){return A.push(Kp(L))});var R=A.find(function(L,H){return H===y}),O=A.filter(function(L,H){return H!==y}),M=[].concat(Lu(O.slice(0,E)),[R],Lu(O.slice(E)));this.addColumnWidthStyles(M),Ey&&this.dropPosition===-1&&E--,Cjt(this.columns,y,E),this.updateReorderableColumns(),this.$emit("column-reorder",{originalEvent:l,dragIndex:y,dropIndex:E})}this.$refs.reorderIndicatorUp.style.display="none",this.$refs.reorderIndicatorDown.style.display="none",this.draggedColumnElement.draggable=!1,this.draggedColumnElement=null,this.draggedColumn=null,this.dropPosition=null}},findParentHeader:function(r){if(r.nodeName==="TH")return r;for(var o=r.parentElement;o.nodeName!=="TH"&&(o=o.parentElement,!!o););return o},findColumnByKey:function(r,o){if(r&&r.length)for(var l=0;lthis.droppedRowIndex?this.droppedRowIndex:this.droppedRowIndex===0?0:this.droppedRowIndex-1,l=Lu(this.processedData);Cjt(l,this.draggedRowIndex+this.d_first,o+this.d_first),this.$emit("row-reorder",{originalEvent:r,dragIndex:this.draggedRowIndex,dropIndex:o,value:l})}this.onRowDragLeave(r),this.onRowDragEnd(r),r.preventDefault()},toggleRow:function(r){var o=this,l=r.expanded,u=dWr(r,fWr),d=r.data,h;if(this.dataKey){var w=Bl(d,this.dataKey);h=this.expandedRows?Jw({},this.expandedRows):{},l?h[w]=!0:delete h[w]}else h=this.expandedRows?Lu(this.expandedRows):[],l?h.push(d):h=h.filter(function(v){return!o.equals(d,v)});this.$emit("update:expandedRows",h),l?this.$emit("row-expand",u):this.$emit("row-collapse",u)},toggleRowGroup:function(r){var o=r.originalEvent,l=r.data,u=Bl(l,this.groupRowsBy),d=this.expandedRowGroups?Lu(this.expandedRowGroups):[];this.isRowGroupExpanded(l)?(d=d.filter(function(h){return h!==u}),this.$emit("update:expandedRowGroups",d),this.$emit("rowgroup-collapse",{originalEvent:o,data:u})):(d.push(u),this.$emit("update:expandedRowGroups",d),this.$emit("rowgroup-expand",{originalEvent:o,data:u}))},isRowGroupExpanded:function(r){if(this.expandableRowGroups&&this.expandedRowGroups){var o=Bl(r,this.groupRowsBy);return this.expandedRowGroups.indexOf(o)>-1}return!1},isStateful:function(){return this.stateKey!=null},getStorage:function(){switch(this.stateStorage){case"local":return window.localStorage;case"session":return window.sessionStorage;default:throw new Error(this.stateStorage+' is not a valid value for the state storage, supported values are "local" and "session".')}},saveState:function(){var r=this.getStorage(),o={};this.paginator&&(o.first=this.d_first,o.rows=this.d_rows),this.d_sortField&&(o.sortField=this.d_sortField,o.sortOrder=this.d_sortOrder),this.d_multiSortMeta&&(o.multiSortMeta=this.d_multiSortMeta),this.hasFilters&&(o.filters=this.filters),this.resizableColumns&&this.saveColumnWidths(o),this.reorderableColumns&&(o.columnOrder=this.d_columnOrder),this.expandedRows&&(o.expandedRows=this.expandedRows),this.expandedRowGroups&&(o.expandedRowGroups=this.expandedRowGroups),this.selection&&(o.selection=this.selection,o.selectionKeys=this.d_selectionKeys),Object.keys(o).length&&r.setItem(this.stateKey,JSON.stringify(o)),this.$emit("state-save",o)},restoreState:function(){var r=this.getStorage(),o=r.getItem(this.stateKey),l=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/,u=function(w,v){return typeof v=="string"&&l.test(v)?new Date(v):v};if(o){var d=JSON.parse(o,u);this.paginator&&(this.d_first=d.first,this.d_rows=d.rows),d.sortField&&(this.d_sortField=d.sortField,this.d_sortOrder=d.sortOrder),d.multiSortMeta&&(this.d_multiSortMeta=d.multiSortMeta),d.filters&&this.$emit("update:filters",d.filters),this.resizableColumns&&(this.columnWidthsState=d.columnWidths,this.tableWidthState=d.tableWidth),this.reorderableColumns&&(this.d_columnOrder=d.columnOrder),d.expandedRows&&this.$emit("update:expandedRows",d.expandedRows),d.expandedRowGroups&&this.$emit("update:expandedRowGroups",d.expandedRowGroups),d.selection&&(this.d_selectionKeys=d.d_selectionKeys,this.$emit("update:selection",d.selection)),this.$emit("state-restore",d)}},saveColumnWidths:function(r){var o=[],l=gD(this.$el,'thead[data-pc-section="thead"] > tr > th');l.forEach(function(u){return o.push(Kp(u))}),r.columnWidths=o.join(","),this.columnResizeMode==="expand"&&(r.tableWidth=Kp(this.$refs.table)+"px")},addColumnWidthStyles:function(r){this.createStyleElement();var o="",l='[data-pc-name="datatable"]['.concat(this.$attrSelector,'] > [data-pc-section="tablecontainer"] ').concat(this.virtualScrollerDisabled?"":'> [data-pc-name="virtualscroller"]',' > table[data-pc-section="table"]');r.forEach(function(u,d){var h="width: ".concat(u,"px !important; max-width: ").concat(u,"px !important");o+=` `.concat(l,' > thead[data-pc-section="thead"] > tr > th:nth-child(').concat(d+1,`), `).concat(l,' > tbody[data-pc-section="tbody"] > tr > td:nth-child(').concat(d+1,`), `).concat(l,' > tfoot[data-pc-section="tfoot"] > tr > td:nth-child(').concat(d+1,`) { `).concat(h,` } - `)}),this.styleElement.innerHTML=o},restoreColumnWidths:function(){if(this.columnWidthsState){var r=this.columnWidthsState.split(",");this.columnResizeMode==="expand"&&this.tableWidthState&&(this.$refs.table.style.width=this.tableWidthState,this.$refs.table.style.minWidth=this.tableWidthState),ks(r)&&this.addColumnWidthStyles(r)}},onCellEditInit:function(r){this.$emit("cell-edit-init",r)},onCellEditComplete:function(r){this.$emit("cell-edit-complete",r)},onCellEditCancel:function(r){this.$emit("cell-edit-cancel",r)},onRowEditInit:function(r){var o=this.editingRows?Lu(this.editingRows):[];o.push(r.data),this.$emit("update:editingRows",o),this.$emit("row-edit-init",r)},onRowEditSave:function(r){var o=Lu(this.editingRows);o.splice(this.findIndex(r.data,o),1),this.$emit("update:editingRows",o),this.$emit("row-edit-save",r)},onRowEditCancel:function(r){var o=Lu(this.editingRows);o.splice(this.findIndex(r.data,o),1),this.$emit("update:editingRows",o),this.$emit("row-edit-cancel",r)},onEditingMetaChange:function(r){var o=r.data,l=r.field,u=r.index,d=r.editing,h=Jw({},this.d_editingMeta),w=h[u];if(d)!w&&(w=h[u]={data:Jw({},o),fields:[]}),w.fields.push(l);else if(w){var v=w.fields.filter(function(y){return y!==l});v.length?w.fields=v:delete h[u]}this.d_editingMeta=h},clearEditingMetaData:function(){this.editMode&&(this.d_editingMeta={})},createLazyLoadEvent:function(r){return{originalEvent:r,first:this.d_first,rows:this.d_rows,sortField:this.d_sortField,sortOrder:this.d_sortOrder,multiSortMeta:this.d_multiSortMeta,filters:this.d_filters}},hasGlobalFilter:function(){return this.filters&&Object.prototype.hasOwnProperty.call(this.filters,"global")},onFilterChange:function(r){this.d_filters=r},onFilterApply:function(){this.d_first=0,this.$emit("update:first",this.d_first),this.$emit("update:filters",this.d_filters),this.lazy&&this.$emit("filter",this.createLazyLoadEvent())},cloneFilters:function(){var r={};return this.filters&&Object.entries(this.filters).forEach(function(o){var l=aYt(o,2),u=l[0],d=l[1];r[u]=d.operator?{operator:d.operator,constraints:d.constraints.map(function(h){return Jw({},h)})}:Jw({},d)}),r},updateReorderableColumns:function(){var r=this,o=[];this.columns.forEach(function(l){return o.push(r.columnProp(l,"columnKey")||r.columnProp(l,"field"))}),this.d_columnOrder=o},createStyleElement:function(){var r;this.styleElement=document.createElement("style"),this.styleElement.type="text/css",JX(this.styleElement,"nonce",(r=this.$primevue)===null||r===void 0||(r=r.config)===null||r===void 0||(r=r.csp)===null||r===void 0?void 0:r.nonce),document.head.appendChild(this.styleElement)},destroyStyleElement:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},dataToRender:function(r){var o=r||this.processedData;if(o&&this.paginator){var l=this.lazy?0:this.d_first;return o.slice(l,l+this.d_rows)}return o},getVirtualScrollerRef:function(){return this.$refs.virtualScroller},hasSpacerStyle:function(r){return ks(r)}},computed:{columns:function(){var r=this.d_columns.get(this);if(this.reorderableColumns&&this.d_columnOrder){var o=[],l=vK(this.d_columnOrder),u;try{for(l.s();!(u=l.n()).done;){var d=u.value,h=this.findColumnByKey(r,d);h&&!this.columnProp(h,"hidden")&&o.push(h)}}catch(w){l.e(w)}finally{l.f()}return[].concat(o,Lu(r.filter(function(w){return o.indexOf(w)<0})))}return r},columnGroups:function(){return this.d_columnGroups.get(this)},headerColumnGroup:function(){var r,o=this;return(r=this.columnGroups)===null||r===void 0?void 0:r.find(function(l){return o.columnProp(l,"type")==="header"})},footerColumnGroup:function(){var r,o=this;return(r=this.columnGroups)===null||r===void 0?void 0:r.find(function(l){return o.columnProp(l,"type")==="footer"})},hasFilters:function(){return this.filters&&Object.keys(this.filters).length>0&&this.filters.constructor===Object},processedData:function(){var r,o=this.value||[];return!this.lazy&&!((r=this.virtualScrollerOptions)!==null&&r!==void 0&&r.lazy)&&o&&o.length&&(this.hasFilters&&(o=this.filter(o)),this.sorted&&(this.sortMode==="single"?o=this.sortSingle(o):this.sortMode==="multiple"&&(o=this.sortMultiple(o)))),o},totalRecordsLength:function(){if(this.lazy)return this.totalRecords;var r=this.processedData;return r?r.length:0},empty:function(){var r=this.processedData;return!r||r.length===0},paginatorTop:function(){return this.paginator&&(this.paginatorPosition!=="bottom"||this.paginatorPosition==="both")},paginatorBottom:function(){return this.paginator&&(this.paginatorPosition!=="top"||this.paginatorPosition==="both")},sorted:function(){return this.d_sortField||this.d_multiSortMeta&&this.d_multiSortMeta.length>0},allRowsSelected:function(){var r=this;if(this.selectAll!==null)return this.selectAll;var o=this.frozenValue?[].concat(Lu(this.frozenValue),Lu(this.processedData)):this.processedData;return ks(o)&&this.selection&&Array.isArray(this.selection)&&o.every(function(l){return r.selection.some(function(u){return r.equals(u,l)})})},groupRowSortField:function(){return this.sortMode==="single"?this.sortField:this.d_groupRowsSortMeta?this.d_groupRowsSortMeta.field:null},headerFilterButtonProps:function(){return Jw(Jw({filter:{severity:"secondary",text:!0,rounded:!0}},this.filterButtonProps),{},{inline:Jw({clear:{severity:"secondary",text:!0,rounded:!0}},this.filterButtonProps.inline),popover:Jw({addRule:{severity:"info",text:!0,size:"small"},removeRule:{severity:"danger",text:!0,size:"small"},apply:{size:"small"},clear:{outlined:!0,size:"small"}},this.filterButtonProps.popover)})},rowEditButtonProps:function(){return Jw(Jw({},{init:{severity:"secondary",text:!0,rounded:!0},save:{severity:"secondary",text:!0,rounded:!0},cancel:{severity:"secondary",text:!0,rounded:!0}}),this.editButtonProps)},virtualScrollerDisabled:function(){return ov(this.virtualScrollerOptions)||!this.scrollable}},components:{DTPaginator:phn,DTTableHeader:Ihn,DTTableBody:Chn,DTTableFooter:Thn,DTVirtualScroller:FWe,ArrowDownIcon:Jdn,ArrowUpIcon:Ydn,SpinnerIcon:YX}};function GX(n){"@babel/helpers - typeof";return GX=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},GX(n)}function cYt(n,r){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);r&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable})),o.push.apply(o,l)}return o}function uYt(n){for(var r=1;r{const v=[];return o.dataset.forEach(y=>{v.push({subject:mL(y.subject),subjectTerm:y.subject,predicate:mL(y.predicate),predicateTerm:y.predicate,object:mL(y.object),objectTerm:y.object,context:y.graph.value})}),v}),d=To(()=>u.value.some(v=>v.context!=="")),h=Fo({global:{value:null,matchMode:pf.CONTAINS},subject:{value:null,matchMode:pf.CONTAINS},predicate:{value:null,matchMode:pf.CONTAINS},object:{value:null,matchMode:pf.CONTAINS},context:{value:null,matchMode:pf.CONTAINS}});function w(v){l("selected",v)}return(v,y)=>(ze(),Nn(Wr(Phn),{filters:h.value,"onUpdate:filters":y[0]||(y[0]=E=>h.value=E),filterDisplay:"row",value:u.value,scrollable:"",scrollHeight:"flex"},{default:vi(()=>[bi(Wr(Efe),{field:"subject",header:"Subject",style:{width:"20%"}},{filter:vi(({filterModel:E,filterCallback:A})=>[bi(Wr(W8),{size:"small",modelValue:E.value,"onUpdate:modelValue":C=>E.value=C,type:"text",onInput:C=>A(),placeholder:"Search Subject"},null,8,["modelValue","onUpdate:modelValue","onInput"])]),body:vi(({data:E})=>[mr("span",{onClick:A=>w(E.subjectTerm),class:"node-link"},na(E.subject),9,fWr)]),_:1}),bi(Wr(Efe),{field:"predicate",header:"Predicate",style:{width:"20%"}},{filter:vi(({filterModel:E,filterCallback:A})=>[bi(Wr(W8),{size:"small",modelValue:E.value,"onUpdate:modelValue":C=>E.value=C,type:"text",onInput:C=>A(),placeholder:"Search Predicate"},null,8,["modelValue","onUpdate:modelValue","onInput"])]),body:vi(({data:E})=>[mr("span",{onClick:A=>w(E.subjectTerm),class:"node-link"},na(E.predicate),9,dWr)]),_:1}),bi(Wr(Efe),{field:"object",header:"Object",style:{width:"20%"}},{filter:vi(({filterModel:E,filterCallback:A})=>[bi(Wr(W8),{size:"small",modelValue:E.value,"onUpdate:modelValue":C=>E.value=C,type:"text",onInput:C=>A(),placeholder:"Search Object"},null,8,["modelValue","onUpdate:modelValue","onInput"])]),body:vi(({data:E})=>[E.predicateTerm.value==="http://www.w3.org/1999/02/22-rdf-syntax-ns#type"||E.objectTerm.termType==="Literal"?(ze(),Lt("span",hWr,na(E.object),1)):(ze(),Lt("span",{key:1,onClick:A=>w(E.objectTerm),class:"node-link"},na(E.object),9,pWr))]),_:1}),d.value?(ze(),Nn(Wr(Efe),{key:0,field:"context",header:"Context",style:{width:"20%"}},{filter:vi(({filterModel:E,filterCallback:A})=>[bi(Wr(W8),{modelValue:E.value,"onUpdate:modelValue":C=>E.value=C,type:"text",onInput:C=>A(),placeholder:"Search Context aka Named Graph"},null,8,["modelValue","onUpdate:modelValue","onInput"])]),_:1})):fr("",!0)]),_:1},8,["filters","value"]))}}),gWr=hJ(bWr,[["__scopeId","data-v-ff7b29fe"]]);var wWr=function(r){var o=r.dt;return` + `)}),this.styleElement.innerHTML=o},restoreColumnWidths:function(){if(this.columnWidthsState){var r=this.columnWidthsState.split(",");this.columnResizeMode==="expand"&&this.tableWidthState&&(this.$refs.table.style.width=this.tableWidthState,this.$refs.table.style.minWidth=this.tableWidthState),ks(r)&&this.addColumnWidthStyles(r)}},onCellEditInit:function(r){this.$emit("cell-edit-init",r)},onCellEditComplete:function(r){this.$emit("cell-edit-complete",r)},onCellEditCancel:function(r){this.$emit("cell-edit-cancel",r)},onRowEditInit:function(r){var o=this.editingRows?Lu(this.editingRows):[];o.push(r.data),this.$emit("update:editingRows",o),this.$emit("row-edit-init",r)},onRowEditSave:function(r){var o=Lu(this.editingRows);o.splice(this.findIndex(r.data,o),1),this.$emit("update:editingRows",o),this.$emit("row-edit-save",r)},onRowEditCancel:function(r){var o=Lu(this.editingRows);o.splice(this.findIndex(r.data,o),1),this.$emit("update:editingRows",o),this.$emit("row-edit-cancel",r)},onEditingMetaChange:function(r){var o=r.data,l=r.field,u=r.index,d=r.editing,h=Jw({},this.d_editingMeta),w=h[u];if(d)!w&&(w=h[u]={data:Jw({},o),fields:[]}),w.fields.push(l);else if(w){var v=w.fields.filter(function(y){return y!==l});v.length?w.fields=v:delete h[u]}this.d_editingMeta=h},clearEditingMetaData:function(){this.editMode&&(this.d_editingMeta={})},createLazyLoadEvent:function(r){return{originalEvent:r,first:this.d_first,rows:this.d_rows,sortField:this.d_sortField,sortOrder:this.d_sortOrder,multiSortMeta:this.d_multiSortMeta,filters:this.d_filters}},hasGlobalFilter:function(){return this.filters&&Object.prototype.hasOwnProperty.call(this.filters,"global")},onFilterChange:function(r){this.d_filters=r},onFilterApply:function(){this.d_first=0,this.$emit("update:first",this.d_first),this.$emit("update:filters",this.d_filters),this.lazy&&this.$emit("filter",this.createLazyLoadEvent())},cloneFilters:function(){var r={};return this.filters&&Object.entries(this.filters).forEach(function(o){var l=hYt(o,2),u=l[0],d=l[1];r[u]=d.operator?{operator:d.operator,constraints:d.constraints.map(function(h){return Jw({},h)})}:Jw({},d)}),r},updateReorderableColumns:function(){var r=this,o=[];this.columns.forEach(function(l){return o.push(r.columnProp(l,"columnKey")||r.columnProp(l,"field"))}),this.d_columnOrder=o},createStyleElement:function(){var r;this.styleElement=document.createElement("style"),this.styleElement.type="text/css",JX(this.styleElement,"nonce",(r=this.$primevue)===null||r===void 0||(r=r.config)===null||r===void 0||(r=r.csp)===null||r===void 0?void 0:r.nonce),document.head.appendChild(this.styleElement)},destroyStyleElement:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},dataToRender:function(r){var o=r||this.processedData;if(o&&this.paginator){var l=this.lazy?0:this.d_first;return o.slice(l,l+this.d_rows)}return o},getVirtualScrollerRef:function(){return this.$refs.virtualScroller},hasSpacerStyle:function(r){return ks(r)}},computed:{columns:function(){var r=this.d_columns.get(this);if(this.reorderableColumns&&this.d_columnOrder){var o=[],l=yK(this.d_columnOrder),u;try{for(l.s();!(u=l.n()).done;){var d=u.value,h=this.findColumnByKey(r,d);h&&!this.columnProp(h,"hidden")&&o.push(h)}}catch(w){l.e(w)}finally{l.f()}return[].concat(o,Lu(r.filter(function(w){return o.indexOf(w)<0})))}return r},columnGroups:function(){return this.d_columnGroups.get(this)},headerColumnGroup:function(){var r,o=this;return(r=this.columnGroups)===null||r===void 0?void 0:r.find(function(l){return o.columnProp(l,"type")==="header"})},footerColumnGroup:function(){var r,o=this;return(r=this.columnGroups)===null||r===void 0?void 0:r.find(function(l){return o.columnProp(l,"type")==="footer"})},hasFilters:function(){return this.filters&&Object.keys(this.filters).length>0&&this.filters.constructor===Object},processedData:function(){var r,o=this.value||[];return!this.lazy&&!((r=this.virtualScrollerOptions)!==null&&r!==void 0&&r.lazy)&&o&&o.length&&(this.hasFilters&&(o=this.filter(o)),this.sorted&&(this.sortMode==="single"?o=this.sortSingle(o):this.sortMode==="multiple"&&(o=this.sortMultiple(o)))),o},totalRecordsLength:function(){if(this.lazy)return this.totalRecords;var r=this.processedData;return r?r.length:0},empty:function(){var r=this.processedData;return!r||r.length===0},paginatorTop:function(){return this.paginator&&(this.paginatorPosition!=="bottom"||this.paginatorPosition==="both")},paginatorBottom:function(){return this.paginator&&(this.paginatorPosition!=="top"||this.paginatorPosition==="both")},sorted:function(){return this.d_sortField||this.d_multiSortMeta&&this.d_multiSortMeta.length>0},allRowsSelected:function(){var r=this;if(this.selectAll!==null)return this.selectAll;var o=this.frozenValue?[].concat(Lu(this.frozenValue),Lu(this.processedData)):this.processedData;return ks(o)&&this.selection&&Array.isArray(this.selection)&&o.every(function(l){return r.selection.some(function(u){return r.equals(u,l)})})},groupRowSortField:function(){return this.sortMode==="single"?this.sortField:this.d_groupRowsSortMeta?this.d_groupRowsSortMeta.field:null},headerFilterButtonProps:function(){return Jw(Jw({filter:{severity:"secondary",text:!0,rounded:!0}},this.filterButtonProps),{},{inline:Jw({clear:{severity:"secondary",text:!0,rounded:!0}},this.filterButtonProps.inline),popover:Jw({addRule:{severity:"info",text:!0,size:"small"},removeRule:{severity:"danger",text:!0,size:"small"},apply:{size:"small"},clear:{outlined:!0,size:"small"}},this.filterButtonProps.popover)})},rowEditButtonProps:function(){return Jw(Jw({},{init:{severity:"secondary",text:!0,rounded:!0},save:{severity:"secondary",text:!0,rounded:!0},cancel:{severity:"secondary",text:!0,rounded:!0}}),this.editButtonProps)},virtualScrollerDisabled:function(){return iv(this.virtualScrollerOptions)||!this.scrollable}},components:{DTPaginator:Ehn,DTTableHeader:Bhn,DTTableBody:Dhn,DTTableFooter:jhn,DTVirtualScroller:zWe,ArrowDownIcon:ohn,ArrowUpIcon:shn,SpinnerIcon:YX}};function GX(n){"@babel/helpers - typeof";return GX=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},GX(n)}function pYt(n,r){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);r&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable})),o.push.apply(o,l)}return o}function bYt(n){for(var r=1;r{const v=[];return o.dataset.forEach(y=>{v.push({subject:wL(y.subject),subjectTerm:y.subject,predicate:wL(y.predicate),predicateTerm:y.predicate,object:wL(y.object),objectTerm:y.object,context:y.graph.value})}),v}),d=To(()=>u.value.some(v=>v.context!=="")),h=Fo({global:{value:null,matchMode:pf.CONTAINS},subject:{value:null,matchMode:pf.CONTAINS},predicate:{value:null,matchMode:pf.CONTAINS},object:{value:null,matchMode:pf.CONTAINS},context:{value:null,matchMode:pf.CONTAINS}});function w(v){l("selected",v)}return(v,y)=>(ze(),Nn(Wr(Whn),{filters:h.value,"onUpdate:filters":y[0]||(y[0]=E=>h.value=E),filterDisplay:"row",value:u.value,scrollable:"",scrollHeight:"flex"},{default:vi(()=>[bi(Wr(Rfe),{field:"subject",header:"Subject",style:{width:"20%"}},{filter:vi(({filterModel:E,filterCallback:A})=>[bi(Wr(W8),{size:"small",modelValue:E.value,"onUpdate:modelValue":C=>E.value=C,type:"text",onInput:C=>A(),placeholder:"Search Subject"},null,8,["modelValue","onUpdate:modelValue","onInput"])]),body:vi(({data:E})=>[mr("span",{onClick:A=>w(E.subjectTerm),class:"node-link"},na(E.subject),9,TWr)]),_:1}),bi(Wr(Rfe),{field:"predicate",header:"Predicate",style:{width:"20%"}},{filter:vi(({filterModel:E,filterCallback:A})=>[bi(Wr(W8),{size:"small",modelValue:E.value,"onUpdate:modelValue":C=>E.value=C,type:"text",onInput:C=>A(),placeholder:"Search Predicate"},null,8,["modelValue","onUpdate:modelValue","onInput"])]),body:vi(({data:E})=>[mr("span",{onClick:A=>w(E.subjectTerm),class:"node-link"},na(E.predicate),9,$Wr)]),_:1}),bi(Wr(Rfe),{field:"object",header:"Object",style:{width:"20%"}},{filter:vi(({filterModel:E,filterCallback:A})=>[bi(Wr(W8),{size:"small",modelValue:E.value,"onUpdate:modelValue":C=>E.value=C,type:"text",onInput:C=>A(),placeholder:"Search Object"},null,8,["modelValue","onUpdate:modelValue","onInput"])]),body:vi(({data:E})=>[E.predicateTerm.value==="http://www.w3.org/1999/02/22-rdf-syntax-ns#type"||E.objectTerm.termType==="Literal"?(ze(),jt("span",IWr,na(E.object),1)):(ze(),jt("span",{key:1,onClick:A=>w(E.objectTerm),class:"node-link"},na(E.object),9,PWr))]),_:1}),d.value?(ze(),Nn(Wr(Rfe),{key:0,field:"context",header:"Context",style:{width:"20%"}},{filter:vi(({filterModel:E,filterCallback:A})=>[bi(Wr(W8),{modelValue:E.value,"onUpdate:modelValue":C=>E.value=C,type:"text",onInput:C=>A(),placeholder:"Search Context aka Named Graph"},null,8,["modelValue","onUpdate:modelValue","onInput"])]),_:1})):fr("",!0)]),_:1},8,["filters","value"]))}}),NWr=hJ(OWr,[["__scopeId","data-v-ff7b29fe"]]);var MWr=function(r){var o=r.dt;return` .p-popover { margin-block-start: `.concat(o("popover.gutter"),`; background: `).concat(o("popover.background"),`; @@ -3408,10 +3408,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho border-bottom-color: transparent; border-top-color: `).concat(o("popover.border.color"),`; } -`)},mWr={root:"p-popover p-component",content:"p-popover-content"},yWr=Bs.extend({name:"popover",theme:wWr,classes:mWr}),vWr={name:"BasePopover",extends:Kl,props:{dismissable:{type:Boolean,default:!0},appendTo:{type:[String,Object],default:"body"},baseZIndex:{type:Number,default:0},autoZIndex:{type:Boolean,default:!0},breakpoints:{type:Object,default:null},closeOnEscape:{type:Boolean,default:!0}},style:yWr,provide:function(){return{$pcPopover:this,$parentInstance:this}}},Ohn={name:"Popover",extends:vWr,inheritAttrs:!1,emits:["show","hide"],data:function(){return{visible:!1}},watch:{dismissable:{immediate:!0,handler:function(r){r?this.bindOutsideClickListener():this.unbindOutsideClickListener()}}},selfClick:!1,target:null,eventTarget:null,outsideClickListener:null,scrollHandler:null,resizeListener:null,container:null,styleElement:null,overlayEventListener:null,documentKeydownListener:null,beforeUnmount:function(){this.dismissable&&this.unbindOutsideClickListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.destroyStyle(),this.unbindResizeListener(),this.target=null,this.container&&this.autoZIndex&&nv.clear(this.container),this.overlayEventListener&&(Zy.off("overlay-click",this.overlayEventListener),this.overlayEventListener=null),this.container=null},mounted:function(){this.breakpoints&&this.createStyle()},methods:{toggle:function(r,o){this.visible?this.hide():this.show(r,o)},show:function(r,o){this.visible=!0,this.eventTarget=r.currentTarget,this.target=o||r.currentTarget},hide:function(){this.visible=!1},onContentClick:function(){this.selfClick=!0},onEnter:function(r){var o=this;xL(r,{position:"absolute",top:"0",left:"0"}),this.alignOverlay(),this.dismissable&&this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.autoZIndex&&nv.set("overlay",r,this.baseZIndex+this.$primevue.config.zIndex.overlay),this.overlayEventListener=function(l){o.container.contains(l.target)&&(o.selfClick=!0)},this.focus(),Zy.on("overlay-click",this.overlayEventListener),this.$emit("show"),this.closeOnEscape&&this.bindDocumentKeyDownListener()},onLeave:function(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.unbindDocumentKeyDownListener(),Zy.off("overlay-click",this.overlayEventListener),this.overlayEventListener=null,this.$emit("hide")},onAfterLeave:function(r){this.autoZIndex&&nv.clear(r)},alignOverlay:function(){$We(this.container,this.target,!1);var r=sT(this.container),o=sT(this.target),l=0;r.left2e3&&h(u.value),o.value.toggle(v))}async function h(v){const y=new URLSearchParams({url:v}),E=await fetch("https://s.zazuko.com/api/v1/shorten/",{method:"POST",body:y}),A=await E;A.status<200||A.status>=300?console.error("shortener error",A.status):u.value=await E.text()}function w(v){navigator.clipboard.writeText(v).then(()=>{o.value&&o.value.hide()}).catch(y=>{console.error("copy failed",y),o.value&&o.value.hide()})}return(v,y)=>(ze(),Lt("div",EWr,[bi(Wr(Jy),{icon:"pi pi-share-alt",onClick:d,severity:"secondary",text:""}),bi(Wr(Ohn),{ref_key:"popoverElement",ref:o},{default:vi(()=>[mr("div",kWr,[mr("div",RWr,[mr("div",xWr,[mr("div",CWr,na(u.value),1),u.value.startsWith("https://s.zazuko.com/")?fr("",!0):(ze(),Lt("div",AWr,"..."))]),bi(Wr(Jy),{icon:"pi pi-clipboard",onClick:y[0]||(y[0]=E=>w(u.value)),variant:"text",rounded:"","aria-label":"Copy to Clipboard"})]),bi(Wr(Jy),{disabled:u.value.startsWith("https://s.zazuko.com/"),type:"button",severity:"secondary",onClick:y[1]||(y[1]=E=>h(u.value)),label:"Shorten"},null,8,["disabled"])])]),_:1},512)]))}}),$Wr=hJ(TWr,[["__scopeId","data-v-28872e37"]]),IWr=Ka({__name:"App",setup(n){const{fitView:r,nodeLookup:o}=hu(),l=Fo(DR.find(H=>H.type===zpe.Turtle)??DR[0]),u=Fo(DR),d=Fo(""),h=To(()=>l.value.type),w=Fo(WBe.dataset()),v=Fo(!1),y=Fo(!0),E=Fo(!1);function A(H){const G=WBe.dataset(H.quads);Ufn.update(H.prefix),d.value=H.rdfText,w.value=G}function C(){v.value=!0}function R(){v.value=!1}function O(){y.value=!y.value}function M(H){const G=DR.find(j=>j.type===H)??DR[0];l.value=G}function L(H){if(!(H.termType==="NamedNode"||H.termType==="BlankNode"))return;const G=o.value.get(H.value);G&&r({nodes:[G.id],duration:1e3,padding:.3})}return(H,G)=>(ze(),Lt(gi,null,[bi(Wr(UQt),null,{start:vi(()=>[v.value?fr("",!0):(ze(),Nn(Wr(Jy),{key:0,icon:"pi pi-file-edit",class:"mr-2",severity:"secondary",onClick:C,text:""})),v.value?(ze(),Nn(Wr(Jy),{key:1,icon:"pi pi-file-edit",class:"mr-2",severity:"secondary",onClick:R,text:""})):fr("",!0),bi(Wr(eJ),{modelValue:l.value,"onUpdate:modelValue":G[0]||(G[0]=j=>l.value=j),options:u.value,optionLabel:"name",placeholder:"Select RDF Serialization",checkmark:"",highlightOnSelect:!1},null,8,["modelValue","options"])]),center:vi(()=>G[3]||(G[3]=[mr("span",null,"Sketch",-1)])),end:vi(()=>[bi(Wr(Jy),{icon:"pi pi-search",class:"mr-2",severity:"secondary",onClick:O,text:""}),bi($Wr,{format:h.value,"rdf-text":d.value},null,8,["format","rdf-text"]),bi(Wr(Jy),{icon:"pi pi-lightbulb",class:"mr-2",severity:"secondary",onClick:G[1]||(G[1]=j=>E.value=!E.value),text:""}),bi(Wr(Jy),{as:"a",icon:"pi pi-github",class:"mr-2",severity:"secondary",href:"https://github.com/zazuko/rdf-sketch",target:"_blank",text:""})]),_:1}),bi(Wr(VQt),{style:{height:"calc(100vh - (67.5px + ( 2 * 8px) + 8px) )","margin-top":"8px"},class:"mb-8"},{default:vi(()=>[bi(Wr($fe),{style:Vb({display:v.value?"none":"flex"}),class:"flex items-center justify-center"},{default:vi(()=>[bi(isr,{format:h.value,onChange:A,onFormatChange:M},null,8,["format"])]),_:1},8,["style"]),bi(Wr($fe),{class:"flex items-center justify-center"},{default:vi(()=>[bi(mjr,{dataset:w.value},null,8,["dataset"])]),_:1}),y.value?fr("",!0):(ze(),Nn(Wr($fe),{key:0},{default:vi(()=>[bi(gWr,{dataset:w.value,onSelected:L},null,8,["dataset"])]),_:1}))]),_:1}),bi(Wr(eZt),{visible:E.value,"onUpdate:visible":G[2]||(G[2]=j=>E.value=j),modal:"",header:"Zazuko RDF Sketch",style:{width:"60rem"}},{default:vi(()=>G[4]||(G[4]=[mr("div",{style:{display:"flex","flex-direction":"row",gap:"24px"}},[mr("img",{src:rVn,alt:"Zazuko Logo",style:{width:"100px"}}),mr("div",{style:{opacity:"0.8"}},[nm(" Sketch is a simple yet powerful tool for visualizing RDF graphs. It allows you to: "),mr("ul",{style:{"padding-left":"20px"}},[mr("li",null," Traverse and Explore: Seamlessly navigate through your RDF graphs. "),mr("li",null," Search with Ease:Quickly locate nodes and connections. "),mr("li",null," Interact Intuitively: Click edges and Objects (SPO) to navigate. ")]),nm(" You can find more tools and resources at "),mr("a",{href:"https://zazuko.com",target:"_blank"},"Zazuko.com"),nm(". ")])],-1)])),_:1},8,["visible"])],64))}});function PWr(n){return zhe()?(qK(n),!0):!1}function Nhn(n){return typeof n=="function"?n():Wr(n)}const OWr=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const NWr=Object.prototype.toString,MWr=n=>NWr.call(n)==="[object Object]",DWr=()=>{};function LWr(n,r){function o(...l){return new Promise((u,d)=>{Promise.resolve(n(()=>r.apply(this,l),{fn:r,thisArg:this,args:l})).then(u).catch(d)})}return o}const Mhn=n=>n();function jWr(n=Mhn){const r=Fo(!0);function o(){r.value=!1}function l(){r.value=!0}const u=(...d)=>{r.value&&n(...d)};return{isActive:zX(r),pause:o,resume:l,eventFilter:u}}function FWr(n,r,o={}){const{eventFilter:l=Mhn,...u}=o;return Zs(n,LWr(l,r),u)}function BWr(n,r,o={}){const{eventFilter:l,...u}=o,{eventFilter:d,pause:h,resume:w,isActive:v}=jWr(l);return{stop:FWr(n,r,{...u,eventFilter:d}),pause:h,resume:w,isActive:v}}function WWr(n){var r;const o=Nhn(n);return(r=o==null?void 0:o.$el)!=null?r:o}const Dhn=OWr?window:void 0;function fYt(...n){let r,o,l,u;if(typeof n[0]=="string"||Array.isArray(n[0])?([o,l,u]=n,r=Dhn):[r,o,l,u]=n,!r)return DWr;Array.isArray(o)||(o=[o]),Array.isArray(l)||(l=[l]);const d=[],h=()=>{d.forEach(E=>E()),d.length=0},w=(E,A,C,R)=>(E.addEventListener(A,C,R),()=>E.removeEventListener(A,C,R)),v=Zs(()=>[WWr(r),Nhn(u)],([E,A])=>{if(h(),!E)return;const C=MWr(A)?{...A}:A;d.push(...o.flatMap(R=>l.map(O=>w(E,R,O,C))))},{immediate:!0,flush:"post"}),y=()=>{v(),h()};return PWr(y),y}function HWr(n="history",r={}){const{initialValue:o={},removeNullishValues:l=!0,removeFalsyValues:u=!1,write:d=!0,window:h=Dhn}=r;if(!h)return mP(o);const w=mP({});function v(){if(n==="history")return h.location.search||"";if(n==="hash"){const H=h.location.hash||"",G=H.indexOf("?");return G>0?H.slice(G):""}else return(h.location.hash||"").replace(/^#/,"")}function y(H){const G=H.toString();if(n==="history")return`${G?`?${G}`:""}${h.location.hash||""}`;if(n==="hash-params")return`${h.location.search||""}${G?`#${G}`:""}`;const j=h.location.hash||"#",Q=j.indexOf("?");return Q>0?`${j.slice(0,Q)}${G?`?${G}`:""}`:`${j}${G?`?${G}`:""}`}function E(){return new URLSearchParams(v())}function A(H){const G=new Set(Object.keys(w));for(const j of H.keys()){const Q=H.getAll(j);w[j]=Q.length>1?Q:H.get(j)||"",G.delete(j)}Array.from(G).forEach(j=>delete w[j])}const{pause:C,resume:R}=BWr(w,()=>{const H=new URLSearchParams("");Object.keys(w).forEach(G=>{const j=w[G];Array.isArray(j)?j.forEach(Q=>H.append(G,Q)):l&&j==null||u&&!j?H.delete(G):H.set(G,j)}),O(H)},{deep:!0});function O(H,G){C(),G&&A(H),h.history.replaceState(h.history.state,h.document.title,h.location.pathname+y(H)),R()}function M(){d&&O(E(),!0)}fYt(h,"popstate",M,!1),n!=="history"&&fYt(h,"hashchange",M,!1);const L=E();return L.keys().next().value?A(L):Object.assign(w,o),w}const v8=HWr("hash-params"),Lhn=aHn(IWr);Lhn.use(wUn,{theme:{preset:nVn},options:{darkModeSelector:".my-app-dark",cssLayer:!1}});UWr();Lhn.mount("#app");function UWr(){if(v8.rdf){const n=(Array.isArray(v8.rdf)?v8.rdf[0]:v8.rdf)??"",r=((Array.isArray(v8.format)?v8.format[0]:v8.format)??zpe.Turtle).replace(" ","+");n.length>0&&DR.find(o=>o.type===r)&&(localStorage.setItem(Hfe,n),localStorage.setItem(Ufe,r))}}export{Lgr as B,rFe as D,aL as L,Ngr as N,uon as Q,NAr as S,yk as T,jgr as V,Wun as a,Kr as b,fu as c,lUr as d,Jpe as e,qwr as f,cv as g,xue as h,gon as i,rUr as j,Xwr as k,con as l,Knr as m,$E as n,Fgr as o,Wl as p,oHe as r,rm as s,Rue as t}; + `);this.styleElement.innerHTML=o}},destroyStyle:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},onOverlayClick:function(r){Qy.emit("overlay-click",{originalEvent:r,target:this.target})}},directives:{focustrap:KWe,ripple:bk},components:{Portal:ZX}},FWr=["aria-modal"];function BWr(n,r,o,l,u,d){var h=Ni("Portal"),w=TS("focustrap");return ze(),Nn(h,{appendTo:n.appendTo},{default:vi(function(){return[bi(spe,Et({name:"p-popover",onEnter:d.onEnter,onLeave:d.onLeave,onAfterLeave:d.onAfterLeave},n.ptm("transition")),{default:vi(function(){return[u.visible?AS((ze(),jt("div",Et({key:0,ref:d.containerRef,role:"dialog","aria-modal":u.visible,onClick:r[3]||(r[3]=function(){return d.onOverlayClick&&d.onOverlayClick.apply(d,arguments)}),class:n.cx("root")},n.ptmi("root")),[n.$slots.container?Vr(n.$slots,"container",{key:0,closeCallback:d.hide,keydownCallback:function(y){return d.onButtonKeydown(y)}}):(ze(),jt("div",Et({key:1,class:n.cx("content"),onClick:r[0]||(r[0]=function(){return d.onContentClick&&d.onContentClick.apply(d,arguments)}),onMousedown:r[1]||(r[1]=function(){return d.onContentClick&&d.onContentClick.apply(d,arguments)}),onKeydown:r[2]||(r[2]=function(){return d.onContentKeydown&&d.onContentKeydown.apply(d,arguments)})},n.ptm("content")),[Vr(n.$slots,"default")],16))],16,FWr)),[[w]]):fr("",!0)]}),_:3},16,["onEnter","onLeave","onAfterLeave"])]}),_:3},8,["appendTo"])}Hhn.render=BWr;const WWr={class:"card flex justify-center"},HWr={class:"content"},UWr={class:"group"},GWr={style:{display:"flex","flex-direction":"row",gap:"1"}},VWr={class:"limit"},zWr={key:0},KWr=Ka({__name:"ShareButton",props:{format:{},rdfText:{}},setup(n){const r=n,o=Fo(null),l=new URL(window.location.href.split("#")[0]),u=Fo("");async function d(v){o.value&&(u.value=`${l}#rdf=${encodeURIComponent(r.rdfText)}&format=${r.format}`,u.value.length>2e3&&h(u.value),o.value.toggle(v))}async function h(v){const y=new URLSearchParams({url:v}),E=await fetch("https://s.zazuko.com/api/v1/shorten/",{method:"POST",body:y}),A=await E;A.status<200||A.status>=300?console.error("shortener error",A.status):u.value=await E.text()}function w(v){navigator.clipboard.writeText(v).then(()=>{o.value&&o.value.hide()}).catch(y=>{console.error("copy failed",y),o.value&&o.value.hide()})}return(v,y)=>(ze(),jt("div",WWr,[bi(Wr(Xy),{icon:"pi pi-share-alt",onClick:d,severity:"secondary",text:""}),bi(Wr(Hhn),{ref_key:"popoverElement",ref:o},{default:vi(()=>[mr("div",HWr,[mr("div",UWr,[mr("div",GWr,[mr("div",VWr,na(u.value),1),u.value.startsWith("https://s.zazuko.com/")?fr("",!0):(ze(),jt("div",zWr,"..."))]),bi(Wr(Xy),{icon:"pi pi-clipboard",onClick:y[0]||(y[0]=E=>w(u.value)),variant:"text",rounded:"","aria-label":"Copy to Clipboard"})]),bi(Wr(Xy),{disabled:u.value.startsWith("https://s.zazuko.com/"),type:"button",severity:"secondary",onClick:y[1]||(y[1]=E=>h(u.value)),label:"Shorten"},null,8,["disabled"])])]),_:1},512)]))}}),qWr=hJ(KWr,[["__scopeId","data-v-28872e37"]]),XWr=Ka({__name:"App",setup(n){const{fitView:r,nodeLookup:o}=hu(),l=Fo(DR.find(H=>H.type===Xpe.Turtle)??DR[0]),u=Fo(DR),d=Fo(""),h=To(()=>l.value.type),w=Fo(qBe.dataset()),v=Fo(!1),y=Fo(!0),E=Fo(!1);function A(H){const G=qBe.dataset(H.quads);Qfn.update(H.prefix),d.value=H.rdfText,w.value=G}function C(){v.value=!0}function R(){v.value=!1}function O(){y.value=!y.value}function M(H){const G=DR.find(j=>j.type===H)??DR[0];l.value=G}function L(H){if(!(H.termType==="NamedNode"||H.termType==="BlankNode"))return;const G=o.value.get(H.value);G&&r({nodes:[G.id],duration:1e3,padding:.3})}return(H,G)=>(ze(),jt(gi,null,[bi(Wr(qQt),null,{start:vi(()=>[v.value?fr("",!0):(ze(),Nn(Wr(Xy),{key:0,icon:"pi pi-file-edit",class:"mr-2",severity:"secondary",onClick:C,text:""})),v.value?(ze(),Nn(Wr(Xy),{key:1,icon:"pi pi-file-edit",class:"mr-2",severity:"secondary",onClick:R,text:""})):fr("",!0),bi(Wr(eJ),{modelValue:l.value,"onUpdate:modelValue":G[0]||(G[0]=j=>l.value=j),options:u.value,optionLabel:"name",placeholder:"Select RDF Serialization",checkmark:"",highlightOnSelect:!1},null,8,["modelValue","options"])]),center:vi(()=>G[3]||(G[3]=[mr("span",null,"Sketch",-1)])),end:vi(()=>[bi(Wr(Xy),{icon:"pi pi-search",class:"mr-2",severity:"secondary",onClick:O,text:""}),bi(qWr,{format:h.value,"rdf-text":d.value},null,8,["format","rdf-text"]),bi(Wr(Xy),{icon:"pi pi-lightbulb",class:"mr-2",severity:"secondary",onClick:G[1]||(G[1]=j=>E.value=!E.value),text:""}),bi(Wr(Xy),{as:"a",icon:"pi pi-github",class:"mr-2",severity:"secondary",href:"https://github.com/zazuko/rdf-sketch",target:"_blank",text:""})]),_:1}),bi(Wr(JQt),{style:{height:"calc(100vh - (67.5px + ( 2 * 8px) + 8px) )","margin-top":"8px"},class:"mb-8"},{default:vi(()=>[bi(Wr(Pfe),{style:Vb({display:v.value?"none":"flex"}),class:"flex items-center justify-center"},{default:vi(()=>[bi(hsr,{format:h.value,onChange:A,onFormatChange:M},null,8,["format"])]),_:1},8,["style"]),bi(Wr(Pfe),{class:"flex items-center justify-center"},{default:vi(()=>[bi(Djr,{dataset:w.value},null,8,["dataset"])]),_:1}),y.value?fr("",!0):(ze(),Nn(Wr(Pfe),{key:0},{default:vi(()=>[bi(NWr,{dataset:w.value,onSelected:L},null,8,["dataset"])]),_:1}))]),_:1}),bi(Wr(oZt),{visible:E.value,"onUpdate:visible":G[2]||(G[2]=j=>E.value=j),modal:"",header:"Zazuko RDF Sketch",style:{width:"60rem"}},{default:vi(()=>G[4]||(G[4]=[mr("div",{style:{display:"flex","flex-direction":"row",gap:"24px"}},[mr("img",{src:dVn,alt:"Zazuko Logo",style:{width:"100px"}}),mr("div",{style:{opacity:"0.8"}},[nm(" Sketch is a simple yet powerful tool for visualizing RDF graphs. It allows you to: "),mr("ul",{style:{"padding-left":"20px"}},[mr("li",null," Traverse and Explore: Seamlessly navigate through your RDF graphs. "),mr("li",null," Search with Ease:Quickly locate nodes and connections. "),mr("li",null," Interact Intuitively: Click edges and Objects (SPO) to navigate. ")]),nm(" You can find more tools and resources at "),mr("a",{href:"https://zazuko.com",target:"_blank"},"Zazuko.com"),nm(". ")])],-1)])),_:1},8,["visible"])],64))}});function JWr(n){return Xhe()?(KK(n),!0):!1}function Uhn(n){return typeof n=="function"?n():Wr(n)}const YWr=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const QWr=Object.prototype.toString,ZWr=n=>QWr.call(n)==="[object Object]",eHr=()=>{};function tHr(n,r){function o(...l){return new Promise((u,d)=>{Promise.resolve(n(()=>r.apply(this,l),{fn:r,thisArg:this,args:l})).then(u).catch(d)})}return o}const Ghn=n=>n();function nHr(n=Ghn){const r=Fo(!0);function o(){r.value=!1}function l(){r.value=!0}const u=(...d)=>{r.value&&n(...d)};return{isActive:zX(r),pause:o,resume:l,eventFilter:u}}function rHr(n,r,o={}){const{eventFilter:l=Ghn,...u}=o;return Zs(n,tHr(l,r),u)}function iHr(n,r,o={}){const{eventFilter:l,...u}=o,{eventFilter:d,pause:h,resume:w,isActive:v}=nHr(l);return{stop:rHr(n,r,{...u,eventFilter:d}),pause:h,resume:w,isActive:v}}function oHr(n){var r;const o=Uhn(n);return(r=o==null?void 0:o.$el)!=null?r:o}const Vhn=YWr?window:void 0;function gYt(...n){let r,o,l,u;if(typeof n[0]=="string"||Array.isArray(n[0])?([o,l,u]=n,r=Vhn):[r,o,l,u]=n,!r)return eHr;Array.isArray(o)||(o=[o]),Array.isArray(l)||(l=[l]);const d=[],h=()=>{d.forEach(E=>E()),d.length=0},w=(E,A,C,R)=>(E.addEventListener(A,C,R),()=>E.removeEventListener(A,C,R)),v=Zs(()=>[oHr(r),Uhn(u)],([E,A])=>{if(h(),!E)return;const C=ZWr(A)?{...A}:A;d.push(...o.flatMap(R=>l.map(O=>w(E,R,O,C))))},{immediate:!0,flush:"post"}),y=()=>{v(),h()};return JWr(y),y}function sHr(n="history",r={}){const{initialValue:o={},removeNullishValues:l=!0,removeFalsyValues:u=!1,write:d=!0,window:h=Vhn}=r;if(!h)return wP(o);const w=wP({});function v(){if(n==="history")return h.location.search||"";if(n==="hash"){const H=h.location.hash||"",G=H.indexOf("?");return G>0?H.slice(G):""}else return(h.location.hash||"").replace(/^#/,"")}function y(H){const G=H.toString();if(n==="history")return`${G?`?${G}`:""}${h.location.hash||""}`;if(n==="hash-params")return`${h.location.search||""}${G?`#${G}`:""}`;const j=h.location.hash||"#",Q=j.indexOf("?");return Q>0?`${j.slice(0,Q)}${G?`?${G}`:""}`:`${j}${G?`?${G}`:""}`}function E(){return new URLSearchParams(v())}function A(H){const G=new Set(Object.keys(w));for(const j of H.keys()){const Q=H.getAll(j);w[j]=Q.length>1?Q:H.get(j)||"",G.delete(j)}Array.from(G).forEach(j=>delete w[j])}const{pause:C,resume:R}=iHr(w,()=>{const H=new URLSearchParams("");Object.keys(w).forEach(G=>{const j=w[G];Array.isArray(j)?j.forEach(Q=>H.append(G,Q)):l&&j==null||u&&!j?H.delete(G):H.set(G,j)}),O(H)},{deep:!0});function O(H,G){C(),G&&A(H),h.history.replaceState(h.history.state,h.document.title,h.location.pathname+y(H)),R()}function M(){d&&O(E(),!0)}gYt(h,"popstate",M,!1),n!=="history"&&gYt(h,"hashchange",M,!1);const L=E();return L.keys().next().value?A(L):Object.assign(w,o),w}const v8=sHr("hash-params"),zhn=wHn(XWr);zhn.use(xUn,{theme:{preset:fVn},options:{darkModeSelector:".my-app-dark",cssLayer:!1}});lHr();zhn.mount("#app");function lHr(){if(v8.rdf){const n=(Array.isArray(v8.rdf)?v8.rdf[0]:v8.rdf)??"",r=((Array.isArray(v8.format)?v8.format[0]:v8.format)??Xpe.Turtle).replace(" ","+");n.length>0&&DR.find(o=>o.type===r)&&(localStorage.setItem(Gfe,n),localStorage.setItem(Vfe,r))}}export{t1r as B,uFe as D,lL as L,Qgr as N,yon as Q,QAr as S,yk as T,n1r as V,Jun as a,Kr as b,fu as c,RUr as d,ebe as e,dmr as f,cv as g,Aue as h,Ron as i,_Ur as j,hmr as k,mon as l,nrr as m,$E as n,r1r as o,Wl as p,dHe as r,rm as s,Cue as t}; diff --git a/assets/main-BPEm6UCI.js b/assets/main-Bbig3v3v.js similarity index 97% rename from assets/main-BPEm6UCI.js rename to assets/main-Bbig3v3v.js index b57796e..6427063 100644 --- a/assets/main-BPEm6UCI.js +++ b/assets/main-Bbig3v3v.js @@ -1,4 +1,4 @@ -import{g as T,m as S}from"./main-BgiPY9C9.js";import{m as C}from"./main-eTk_fASt.js";function I(l,e){for(var t=0;ti[r]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}if(typeof queueMicrotask!="function"){let l=Promise.resolve();try{queueMicrotask=e=>l.then(e).catch(t=>setTimeout(()=>{throw t},0))}catch{}}const u=S,A=C,k=/^([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\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\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\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}.]*[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\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,p=1,w=2,E=4;class h extends A{constructor(e={}){super(e);let{prefixes:t={},lists:i=null,debug:r=!1,style:s=null}=e;if(Object.assign(this,{_b_debug:r,_s_indent:" ",_b_simplify_default_graph:!1,_xc_directives:0,_s_token_prefix:"@prefix"}),s){s.indent&&(this._s_indent=s.indent.replace(/[^\s]/g,""));let f=s.directives||s.directives;if(f)switch(f){case"sparql":{this._xc_directives=p,this._s_token_prefix="prefix";break}case"Sparql":{this._xc_directives=p|w,this._s_token_prefix="Prefix";break}case"SPARQL":{this._xc_directives=p|E,this._s_token_prefix="PREFIX";break}case"turtle":break;case"Turtle":{this._xc_directives=w,this._s_token_prefix="@Prefix";break}case"TURTLE":{this._xc_directives=E,this._s_token_prefix="@PREFIX";break}default:throw new Error(`Value not understood for 'directives' option: ${f}`)}}i&&(this._serialize_list_object=function(f,a){let d=this._transcode_list(f);return this._encode_objects(d,a)});let _=this._s_token_prefix,n=this._xc_directives&p?` +import{g as T,m as S}from"./main-BFf8j2gg.js";import{m as C}from"./main-Dj80NaNp.js";function I(l,e){for(var t=0;ti[r]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}if(typeof queueMicrotask!="function"){let l=Promise.resolve();try{queueMicrotask=e=>l.then(e).catch(t=>setTimeout(()=>{throw t},0))}catch{}}const u=S,A=C,k=/^([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\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\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\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}.]*[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\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,p=1,w=2,E=4;class h extends A{constructor(e={}){super(e);let{prefixes:t={},lists:i=null,debug:r=!1,style:s=null}=e;if(Object.assign(this,{_b_debug:r,_s_indent:" ",_b_simplify_default_graph:!1,_xc_directives:0,_s_token_prefix:"@prefix"}),s){s.indent&&(this._s_indent=s.indent.replace(/[^\s]/g,""));let f=s.directives||s.directives;if(f)switch(f){case"sparql":{this._xc_directives=p,this._s_token_prefix="prefix";break}case"Sparql":{this._xc_directives=p|w,this._s_token_prefix="Prefix";break}case"SPARQL":{this._xc_directives=p|E,this._s_token_prefix="PREFIX";break}case"turtle":break;case"Turtle":{this._xc_directives=w,this._s_token_prefix="@Prefix";break}case"TURTLE":{this._xc_directives=E,this._s_token_prefix="@PREFIX";break}default:throw new Error(`Value not understood for 'directives' option: ${f}`)}}i&&(this._serialize_list_object=function(f,a){let d=this._transcode_list(f);return this._encode_objects(d,a)});let _=this._s_token_prefix,n=this._xc_directives&p?` `:` . `,o="";try{for(let f in t){if(!k.test(f))throw new Error(`Invlalid prefix id for text/turtle RDF serialization format: '${f}'`);o+=`${_} ${f}: ${u.namedNode(t[f]).verbose()}${n}`}}catch(f){queueMicrotask(()=>{this.emit("error",f)})}o&&this.push(o)}_serialize_prefixes(e){let t=this._xc_state===2?` diff --git a/assets/main-D8J4Fi79.js b/assets/main-C0Hzf2I6.js similarity index 99% rename from assets/main-D8J4Fi79.js rename to assets/main-C0Hzf2I6.js index 372324b..b3b5cba 100644 --- a/assets/main-D8J4Fi79.js +++ b/assets/main-C0Hzf2I6.js @@ -1,4 +1,4 @@ -import{g as P,m as U}from"./main-BgiPY9C9.js";import{m as z}from"./main-BDGbRj7V.js";function M(o,e){for(var t=0;ts[a]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}if(typeof queueMicrotask!="function"){let o=Promise.resolve();try{queueMicrotask=e=>o.then(e).catch(t=>setTimeout(()=>{throw t},0))}catch{}}const w=z,C=U,G=/^[a-z][a-z0-9+\-.]*:(?:[^\0-\x20<>"{}|^`\\]|\\u[A-Fa-f0-9]{4}|\\U[A-Fa-f0-9]{8})*$/,H=/^[a-z][a-z0-9+\-.]*:[^\0-\x20<>"{}|^`]*$/,B=/^([^\0-\x20<>"{}|^`\\]|\\u[A-Fa-f0-9]{4}|\\U[A-Fa-f0-9]{8})*$/,V=/^([^\0-\x20<>"{}|^`])*$/,b=/\\u([0-9A-Fa-f]{4})|\\U([0-9A-Fa-f]{8})/g,g=(o,e,t)=>String.fromCodePoint(parseInt(e||t,16)),W=/\s*(?:#[^\n]*\n\s*)*\s*/y,Z=/\s*(#[^\n]*\n\s*)*\s*/y,k=/[\\]/,j=/[^\n]+\n/y,Q=/^(?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\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])(?:(?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\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}.])*[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\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,J=/^[a-z]+(-[a-z0-9]+)*$/,S=/[ \t]*/y,T=/@([A-Za-z]+(?:-[A-Za-z0-9-]+)*)(?:\s+|(?=[.,;\])#]))/y,I=/<([^>]*)>\s*/y,$=(o,e,t,s,a,n)=>{if(e)switch(e){case"t":return" ";case"n":return` +import{g as P,m as U}from"./main-BFf8j2gg.js";import{m as z}from"./main-D8DixJoJ.js";function M(o,e){for(var t=0;ts[a]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}if(typeof queueMicrotask!="function"){let o=Promise.resolve();try{queueMicrotask=e=>o.then(e).catch(t=>setTimeout(()=>{throw t},0))}catch{}}const w=z,C=U,G=/^[a-z][a-z0-9+\-.]*:(?:[^\0-\x20<>"{}|^`\\]|\\u[A-Fa-f0-9]{4}|\\U[A-Fa-f0-9]{8})*$/,H=/^[a-z][a-z0-9+\-.]*:[^\0-\x20<>"{}|^`]*$/,B=/^([^\0-\x20<>"{}|^`\\]|\\u[A-Fa-f0-9]{4}|\\U[A-Fa-f0-9]{8})*$/,V=/^([^\0-\x20<>"{}|^`])*$/,b=/\\u([0-9A-Fa-f]{4})|\\U([0-9A-Fa-f]{8})/g,g=(o,e,t)=>String.fromCodePoint(parseInt(e||t,16)),W=/\s*(?:#[^\n]*\n\s*)*\s*/y,Z=/\s*(#[^\n]*\n\s*)*\s*/y,k=/[\\]/,j=/[^\n]+\n/y,Q=/^(?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\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])(?:(?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\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}.])*[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\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,J=/^[a-z]+(-[a-z0-9]+)*$/,S=/[ \t]*/y,T=/@([A-Za-z]+(?:-[A-Za-z0-9-]+)*)(?:\s+|(?=[.,;\])#]))/y,I=/<([^>]*)>\s*/y,$=(o,e,t,s,a,n)=>{if(e)switch(e){case"t":return" ";case"n":return` `;case"r":return"\r";case"f":return"\f";case"b":return"\b";default:console.assert(`bad regex escape char mapping: '${e}'`)}else{if(t)return t;if(s)return String.fromCodePoint(parseInt(s,16));if(a)return String.fromCodePoint(parseInt(a,16));if(n)throw n[0]==="\\"?new Error(`expected string_literal but invalid escape sequence within contents: '${n}'. failed to parse a valid token`):new Error(`expected string_literal but invalid whitespace character within contents: ${JSON.stringify(n)}. failed to parse a valid token`);console.assert("unexpected no match branch in escape sequence replace callback")}},K=/(?:\\(?:([tnrfb])|([\\"'])|u([0-9A-Fa-f]{4})|U([0-9A-Fa-f]{8}))|([\r\n]|\\.))/g,F=/(?:\\(?:([tnrfb])|([\\"'])|u([0-9A-Fa-f]{4})|U([0-9A-Fa-f]{8}))|([\r\n]|\\[^uU]|\\u[^]{4}|\\U[^]{8}))/g,v=o=>o.replace(K,$),Y=o=>{let e=X.exec(o);if(e){let t=e.index;return[o.slice(0,t).replace(F,$),o.slice(t)]}else return[o.replace(F,$),""]},[X,D]=(()=>{function o(t){let s=RegExp.prototype.exec.call(this,t);if(s){let a=s[0].length-s[1].length;s.index+=a,s[0]=s[0].slice(a)}return s}let e=(()=>{try{new RegExp("(?(a.exec=n,a)}return t=>t()})();return[e(()=>new RegExp("(?new RegExp('(?]*)>|_:([^\x20\t<]+))[\x20\t]*<([^\\>]*)>[\x20\t]*(?:(?:(<[^\\>]*)>|_:([^\x20\t<]+))[\x20\t]*(?:<([^\\>]*)>|_:([^\x20\t<]+)|)[\x20\t]*\.\s*(#[^\n]*\n\s*|\n\s*)+|"([^"\\]*)(?:(")(?:\^\^<([^\\>]*)>|@([^\x20\t.]+)|)[\x20\t]*(?:<([^\\>]*)>|_:([^\x20\t<]+)|)[\x20\t]*\.\s*(#[^\n]*\n\s*|\n\s*)+)?)/y,N=/(?:<([^>]*)>|_:([^\x20\t<]+))[\x20\t]*<([^>]*)>[\x20\t]*(?:(?:(<[^>]*)>|_:([^\x20\t<]+))[\x20\t]*(?:<([^>]*)>|_:([^\x20\t<]+)|)[\x20\t]*\.\s*(#[^\n]*\n\s*|\n\s*)+|"((?:[^"\\]|\\.)*)(?:(")(?:\^\^<([^>]*)>|@([^\x20\t.]+)|)[\x20\t]*(?:<([^>]*)>|_:([^\x20\t<]+)|)[\x20\t]*\.\s*(#[^\n]*\n\s*|\n\s*)+)?)/y,O=/_:([^\x20\t<]+)/y;class ee extends w.Transform{constructor(e){super({decodeStrings:!1,writableObjectMode:!1,readableObjectMode:!0,flush:e.flush,transform:e.transform}),this.on("pipe",t=>{this._ds_input=t,typeof t.setEncoding=="function"&&t.setEncoding("utf8")})}pipe(e){let t=e;return t._writableState.objectMode?e.isGraphyWritable&&(e=w.quads_to_writable()):e=w.quads_to_json(),e!==t?(super.pipe(e),e.pipe(t)):super.pipe(t)}}class te{constructor(e){let{input:t=null,relax:s=!1,debug:a=!1}=e,n=e.allow_relative_iris||e.allowRelativeIRIs||e.allowRelativeIris||!1,d=this._dc_factory=C.adopt(e.dataFactory||e.data_factory||C.unfiltered),u=this._f_quad=d.quad;Object.assign(this,{s:e.prepend||"",n:0,_b_debug:a,_b_relax:s,_b_destroyed:!1,_b_trim_start:!0,_f_state:this.statement,_kt_subject:null,_kt_predicate:null,_kt_object:null,_s_literal:""}),this._kt_default_graph=d.defaultGraph(),this._kt_rdfs_lang_string=d.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString");let x=this._r_clean=W;e.relaxed&&console.warn(new Error("no such option 'relaxed'; did you mean 'relax' ?").stack.replace(/^Error:/,"Warning:")),"validate"in e&&console.warn(new Error("option 'validate' has been removed and validation is now on by default. Use 'relax' option if you wish to disable validation.").stack.replace(/^Error:/,"Warning:"));let E=d.namedNode,A=d.blankNode,_=d.languagedLiteral,l=n?B:G,m=n?V:H,p=this;Object.assign(this,s?{create_named_node:E,create_named_node_escapeless:E,create_blank_node:A,create_languaged_literal:_}:{create_named_node(r){return l.test(r)?E(r):p._error(`invalid IRI: "${r}"`)},create_named_node_escapeless(r){return m.test(r)?E(r):p._error(`invalid IRI: "${r}"`)},create_blank_node(r){return Q.test(r)?A(r):p._error(`Invalid blank node label: "${r}"`)},create_languaged_literal(r,i){return J.test(i)?_(r,i):p._error(`Invalid literal language tag: ${i}`)}});let f,y=!1;if(f=this.transform=new ee({transform:(r,i,c)=>{y||(f.emit("ready"),y=!1);let h=this.s+=r;if(this._b_trim_start){x.lastIndex=0;let R=x.exec(h);this.emit_comments&&this.emit_comments(R[1]),this.i=x.lastIndex}else this.i=0;this.n=h.length;try{this.parse(!0)}catch(R){return f.destroy(R)}f.emit("progress",r.length),c()},flush:r=>{if(this.s.length){if(this.s+=` `,this._b_trim_start){x.lastIndex=0;let i=x.exec(this.s);this.emit_comments&&this.emit_comments(i[1]),this.i=x.lastIndex}else this.i=0;try{this.parse()}catch(i){return f.demolish(i)}if(this.s.length)return f.demolish(new Error(`parsing error occurred in state: statement ${this.s.substr(0,50)} diff --git a/assets/main-BswWzHG7.js b/assets/main-CvyrvPY3.js similarity index 97% rename from assets/main-BswWzHG7.js rename to assets/main-CvyrvPY3.js index e53da11..7ae449c 100644 --- a/assets/main-BswWzHG7.js +++ b/assets/main-CvyrvPY3.js @@ -1,4 +1,4 @@ -import{g,m as z}from"./main-BgiPY9C9.js";import{m as $}from"./main-CGOqhCAx.js";function C(a,s){for(var i=0;ie[r]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}const b=z,D=$,{c1:c,namedNode:j,$_PREFIX_CACHE:m}=b,v=/[&"<>']/g,M={"&":"&","<":"<",">":">",'"':""","'":"'"},k=/^xml/i,f=a=>a.replace(v,s=>M[s]),L=/([A-Za-z_][A-Za-z_.0-9-]*)$/,X=/([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\u{10000}-\u{EFFFF}][A-Za-z_.0-9\-\u00b7\u203f-\u2040\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\u{EFFFF}]*$)/u;function x(a,s,i,e){if(e.isNamedNode)i+=' rdf:resource="'+f(e.value)+'"/>';else if(e.isLiteral)e.isLanguaged?i+=' xml:lang="'+e.language+'"':e.isDatatyped&&(i+=' rdf:datatype="'+f(e.datatype.value)+'"'),i+=">"+f(e.value)+"";else if(e.isBlankNode)i+=' rdf:nodeID="'+f(e.value)+'"/>';else throw new Error(`Not allowed to serialize term type '${e.termType}' as object in XML serializer.`);return i}function F(a,s){let i=a._h_prefixes,e=s.value,r,t;{let u=L.exec(e);if(u)r=e.slice(0,u.index),t=u[1];else if(u=X.exec(e),u)r=e.slice(0,u.index),t=u[1];else throw new Error(`Cannot serialize predicate <${e}> into an XML qname`)}let n,l;e:for(;;){t:for(;;)if(i[m]){let o=i[m]._h_inverse;if(r in o){let _=o[r];n=(_?_+":":"")+t,l="<"+n;break e}else break}else{for(let o in i)if(i[o]===r){n=(o?o+":":"")+t,l="<"+n;break t}break}let u="__g"+a._c_prefixes_tmp++;n=u+":"+t,l="<"+n+" xmlns:"+u+'="'+r+'"';break}return[n,l]}class p extends D{constructor(s={}){let i=s.prefixes;delete s.prefixes,super(s),this._b_prefixes_open=!0,this._c_prefixes_tmp=0,this._kt_subject=null;let e=` +import{g,m as z}from"./main-BFf8j2gg.js";import{m as $}from"./main-WH1QwD4R.js";function C(a,s){for(var i=0;ie[r]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}const b=z,D=$,{c1:c,namedNode:j,$_PREFIX_CACHE:m}=b,v=/[&"<>']/g,M={"&":"&","<":"<",">":">",'"':""","'":"'"},k=/^xml/i,f=a=>a.replace(v,s=>M[s]),L=/([A-Za-z_][A-Za-z_.0-9-]*)$/,X=/([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\u{10000}-\u{EFFFF}][A-Za-z_.0-9\-\u00b7\u203f-\u2040\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\u{EFFFF}]*$)/u;function x(a,s,i,e){if(e.isNamedNode)i+=' rdf:resource="'+f(e.value)+'"/>';else if(e.isLiteral)e.isLanguaged?i+=' xml:lang="'+e.language+'"':e.isDatatyped&&(i+=' rdf:datatype="'+f(e.datatype.value)+'"'),i+=">"+f(e.value)+"";else if(e.isBlankNode)i+=' rdf:nodeID="'+f(e.value)+'"/>';else throw new Error(`Not allowed to serialize term type '${e.termType}' as object in XML serializer.`);return i}function F(a,s){let i=a._h_prefixes,e=s.value,r,t;{let u=L.exec(e);if(u)r=e.slice(0,u.index),t=u[1];else if(u=X.exec(e),u)r=e.slice(0,u.index),t=u[1];else throw new Error(`Cannot serialize predicate <${e}> into an XML qname`)}let n,l;e:for(;;){t:for(;;)if(i[m]){let o=i[m]._h_inverse;if(r in o){let _=o[r];n=(_?_+":":"")+t,l="<"+n;break e}else break}else{for(let o in i)if(i[o]===r){n=(o?o+":":"")+t,l="<"+n;break t}break}let u="__g"+a._c_prefixes_tmp++;n=u+":"+t,l="<"+n+" xmlns:"+u+'="'+r+'"';break}return[n,l]}class p extends D{constructor(s={}){let i=s.prefixes;delete s.prefixes,super(s),this._b_prefixes_open=!0,this._c_prefixes_tmp=0,this._kt_subject=null;let e=` to <${s[t]}>`)}if(k.test(t))throw new Error(`Cannot serialize prefix '${t}' since it is reserved under the blanket XML namespace.`);r+=` xmlns${t?":"+t:""}="${j(s[t]).value}"`}return r&&this._update_prefixes(s,!0),r}_serialize_c3r(s){let i="";this._b_prefixes_open&&(i+=">",this._b_prefixes_open=!1);let e=this._h_prefixes;this._kt_subject!==null&&(i+=` diff --git a/assets/main-BDGbRj7V.js b/assets/main-D8DixJoJ.js similarity index 98% rename from assets/main-BDGbRj7V.js rename to assets/main-D8DixJoJ.js index 3b8469b..ef2190a 100644 --- a/assets/main-BDGbRj7V.js +++ b/assets/main-D8DixJoJ.js @@ -1,2 +1,2 @@ -import{b as d,p as f,r as b}from"./main-BgiPY9C9.js";const u=b;class c extends u.Readable{constructor(e={}){if(super(e),e.iterator)throw new Error("readable stream iterator shortcut not yet implemented")}until(e,s){return new Promise((i,n)=>{this.on("error",t=>{n(t)}),s?this.once(e,(...t)=>{i(this,...t)}):this.once(e,i)})}bucket(e="utf8"){if(this._readableState.objectMode)return new Promise((i,n)=>{let t=[];this.pipe(new u.Writable({write(r,o,a){t.push(r),a()},writev(r,o){t.push(...r),o()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})});if(e==="utf8"||e==="utf-8")return new Promise((i,n)=>{let t="";this.setEncoding(e),this.pipe(new u.Writable({decodeStrings:!1,write(r,o,a){t+=r,a()},writev(r,o){t+=r.join(""),o()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})});if(e==="buffer")return new Promise((i,n)=>{let t=d.Buffer.from([]);this.pipe(new u.Writable({decodeStrings:!0,write(r,o,a){t=d.Buffer.concat([t,r],t.length+r.length),a()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})})}}class m extends u.Writable{until(e,s){return new Promise((i,n)=>{this.on("error",t=>{n(t)}),s?this.once(e,(...t)=>{i(this,...t)}):this.once(e,i)})}import(e){return e.on("data",s=>this.write(s)).on("end",()=>this.end()).on("error",s=>this.emit("error",s)),this}}class w extends u.Duplex{until(e,s){return new Promise((i,n)=>{this.on("error",t=>{n(t)}),s?this.once(e,(...t)=>{i(this,...t)}):this.once(e,i)})}bucket(e="utf8"){if(this._readableState.objectMode)return new Promise((i,n)=>{let t=[];this.pipe(new u.Writable({write(r,o,a){t.push(r),a()},writev(r,o){t.push(...r),o()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})});if(e==="utf8"||e==="utf-8")return new Promise((i,n)=>{let t="";this.setEncoding(e),this.pipe(new u.Writable({decodeStrings:!1,write(r,o,a){t+=r,a()},writev(r,o){t+=r.join(""),o()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})});if(e==="buffer")return new Promise((i,n)=>{let t=d.Buffer.from([]);this.pipe(new u.Writable({decodeStrings:!0,write(r,o,a){t=d.Buffer.concat([t,r],t.length+r.length),a()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})})}}class h extends u.Transform{until(e,s){return new Promise((i,n)=>{this.on("error",t=>{n(t)}),s?this.once(e,(...t)=>{i(this,...t)}):this.once(e,i)})}bucket(e="utf8"){if(this._readableState.objectMode)return new Promise((i,n)=>{let t=[];this.pipe(new u.Writable({write(r,o,a){t.push(r),a()},writev(r,o){t.push(...r),o()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})});if(e==="utf8"||e==="utf-8")return new Promise((i,n)=>{let t="";this.setEncoding(e),this.pipe(new u.Writable({decodeStrings:!1,write(r,o,a){t+=r,a()},writev(r,o){t+=r.join(""),o()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})});if(e==="buffer")return new Promise((i,n)=>{let t=d.Buffer.from([]);this.pipe(new u.Writable({decodeStrings:!0,write(r,o,a){t=d.Buffer.concat([t,r],t.length+r.length),a()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})})}import(e){return e.on("data",s=>this.write(s)).on("end",()=>this.end()).on("error",s=>this.emit("error",s)),this}demolish(e){if(this.push=s=>{if(s!==null)throw new Error("[ERR_STREAM_DESTROYED]: Cannot push after stream was destroyed")},this.emit=function(s,...i){s!=="end"&&Object.getPrototypeOf(this).emit.apply(this,[s,...i])},e)return u.Transform.prototype.destroy.call(this,e)}}const _=new Function("try {return this===global;}catch(e){return false;}")(),[P,g]=typeof f>"u"?[!0,!1]:f.browser?[!0,!0]:f.versions==="undefined"||f.versions.node==="undefined"?[!0,!1]:[!1,!1];(g||_&&+/^v(\d+)/.exec(f.version)[1]<10)&&(h.prototype.destroy=w.prototype.destroy=function(l,e){this._readableState.destroyed=!0,this._writableState.destroyed=!0;let s=()=>{this._writableState.emitClose&&this._readableState.emitClose&&this.emit("close")};return this._destroy(l||null,i=>{!e&&i?(f.nextTick(()=>{this.emit("error",i),s()}),this._writableState.errorEmitted=!0):(f.nextTick(s),e&&e(i))}),this},h.prototype._destroy=w.prototype._destroy=(l,e)=>e(l));class p extends h{constructor(e={}){super({...e,writableObjectMode:!0,readableObjectMode:!0}),this._as_inputs=new Set,this.on("pipe",s=>{this._as_inputs.add(s),s.on("prefix",(...i)=>{this.emit("prefix",...i)}).on("comment",(...i)=>{this.emit("comment",...i)})}),this.on("unpipe",s=>{this._as_inputs.delete(s)})}_destroy(){for(let e of this._as_inputs)e.destroy()}}class S extends p{_transform(e,s,i){i(null,JSON.stringify(e.isolate())+` +import{b as d,p as f,r as b}from"./main-BFf8j2gg.js";const u=b;class c extends u.Readable{constructor(e={}){if(super(e),e.iterator)throw new Error("readable stream iterator shortcut not yet implemented")}until(e,s){return new Promise((i,n)=>{this.on("error",t=>{n(t)}),s?this.once(e,(...t)=>{i(this,...t)}):this.once(e,i)})}bucket(e="utf8"){if(this._readableState.objectMode)return new Promise((i,n)=>{let t=[];this.pipe(new u.Writable({write(r,o,a){t.push(r),a()},writev(r,o){t.push(...r),o()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})});if(e==="utf8"||e==="utf-8")return new Promise((i,n)=>{let t="";this.setEncoding(e),this.pipe(new u.Writable({decodeStrings:!1,write(r,o,a){t+=r,a()},writev(r,o){t+=r.join(""),o()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})});if(e==="buffer")return new Promise((i,n)=>{let t=d.Buffer.from([]);this.pipe(new u.Writable({decodeStrings:!0,write(r,o,a){t=d.Buffer.concat([t,r],t.length+r.length),a()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})})}}class m extends u.Writable{until(e,s){return new Promise((i,n)=>{this.on("error",t=>{n(t)}),s?this.once(e,(...t)=>{i(this,...t)}):this.once(e,i)})}import(e){return e.on("data",s=>this.write(s)).on("end",()=>this.end()).on("error",s=>this.emit("error",s)),this}}class w extends u.Duplex{until(e,s){return new Promise((i,n)=>{this.on("error",t=>{n(t)}),s?this.once(e,(...t)=>{i(this,...t)}):this.once(e,i)})}bucket(e="utf8"){if(this._readableState.objectMode)return new Promise((i,n)=>{let t=[];this.pipe(new u.Writable({write(r,o,a){t.push(r),a()},writev(r,o){t.push(...r),o()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})});if(e==="utf8"||e==="utf-8")return new Promise((i,n)=>{let t="";this.setEncoding(e),this.pipe(new u.Writable({decodeStrings:!1,write(r,o,a){t+=r,a()},writev(r,o){t+=r.join(""),o()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})});if(e==="buffer")return new Promise((i,n)=>{let t=d.Buffer.from([]);this.pipe(new u.Writable({decodeStrings:!0,write(r,o,a){t=d.Buffer.concat([t,r],t.length+r.length),a()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})})}}class h extends u.Transform{until(e,s){return new Promise((i,n)=>{this.on("error",t=>{n(t)}),s?this.once(e,(...t)=>{i(this,...t)}):this.once(e,i)})}bucket(e="utf8"){if(this._readableState.objectMode)return new Promise((i,n)=>{let t=[];this.pipe(new u.Writable({write(r,o,a){t.push(r),a()},writev(r,o){t.push(...r),o()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})});if(e==="utf8"||e==="utf-8")return new Promise((i,n)=>{let t="";this.setEncoding(e),this.pipe(new u.Writable({decodeStrings:!1,write(r,o,a){t+=r,a()},writev(r,o){t+=r.join(""),o()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})});if(e==="buffer")return new Promise((i,n)=>{let t=d.Buffer.from([]);this.pipe(new u.Writable({decodeStrings:!0,write(r,o,a){t=d.Buffer.concat([t,r],t.length+r.length),a()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})})}import(e){return e.on("data",s=>this.write(s)).on("end",()=>this.end()).on("error",s=>this.emit("error",s)),this}demolish(e){if(this.push=s=>{if(s!==null)throw new Error("[ERR_STREAM_DESTROYED]: Cannot push after stream was destroyed")},this.emit=function(s,...i){s!=="end"&&Object.getPrototypeOf(this).emit.apply(this,[s,...i])},e)return u.Transform.prototype.destroy.call(this,e)}}const _=new Function("try {return this===global;}catch(e){return false;}")(),[P,g]=typeof f>"u"?[!0,!1]:f.browser?[!0,!0]:f.versions==="undefined"||f.versions.node==="undefined"?[!0,!1]:[!1,!1];(g||_&&+/^v(\d+)/.exec(f.version)[1]<10)&&(h.prototype.destroy=w.prototype.destroy=function(l,e){this._readableState.destroyed=!0,this._writableState.destroyed=!0;let s=()=>{this._writableState.emitClose&&this._readableState.emitClose&&this.emit("close")};return this._destroy(l||null,i=>{!e&&i?(f.nextTick(()=>{this.emit("error",i),s()}),this._writableState.errorEmitted=!0):(f.nextTick(s),e&&e(i))}),this},h.prototype._destroy=w.prototype._destroy=(l,e)=>e(l));class p extends h{constructor(e={}){super({...e,writableObjectMode:!0,readableObjectMode:!0}),this._as_inputs=new Set,this.on("pipe",s=>{this._as_inputs.add(s),s.on("prefix",(...i)=>{this.emit("prefix",...i)}).on("comment",(...i)=>{this.emit("comment",...i)})}),this.on("unpipe",s=>{this._as_inputs.delete(s)})}_destroy(){for(let e of this._as_inputs)e.destroy()}}class S extends p{_transform(e,s,i){i(null,JSON.stringify(e.isolate())+` `)}}class y extends p{_transform(e,s,i){i(null,{type:"quad",value:e})}}h.QuadsToOther=p;var W={...u,Readable:c,Writable:m,Duplex:w,Transform:h,QuadsToOther:p,quads_to_json(){return new S},quads_to_writable(){return new y},source(l,e=null){return!e&&typeof l=="string"&&(e="utf8"),new c({objectMode:!e&&typeof l!="string"&&!d.Buffer.isBuffer(l),read(){this.push(l,e),this.push(null)}})}};export{W as m}; diff --git a/assets/main-Crpq21kw.js b/assets/main-DBX7HHCf.js similarity index 99% rename from assets/main-Crpq21kw.js rename to assets/main-DBX7HHCf.js index 59803c1..48fd05b 100644 --- a/assets/main-Crpq21kw.js +++ b/assets/main-DBX7HHCf.js @@ -1,4 +1,4 @@ -import{c as As,g as ws,b as Pt,s as $s,m as Ds}from"./main-BgiPY9C9.js";import{m as Ts}from"./main-BDGbRj7V.js";function Ns(v,t){for(var n=0;ne[_]})}}}return Object.freeze(Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}))}var ut={exports:{}};/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */(function(v,t){(function(n,e){e(t)})(As,function(n){function e(){for(var i=arguments.length,s=Array(i),r=0;r1){s[0]=s[0].slice(0,-1);for(var h=s.length-1,l=1;l= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Le=x-y,ee=Math.floor,Pe=String.fromCharCode;function xe(i){throw new RangeError(is[i])}function rs(i,s){for(var r=[],h=i.length;h--;)r[h]=s(i[h]);return r}function dt(i,s){var r=i.split("@"),h="";r.length>1&&(h=r[0]+"@",i=r[1]),i=i.replace(ss,".");var l=i.split("."),g=rs(l,s).join(".");return h+g}function pt(i){for(var s=[],r=0,h=i.length;r=55296&&l<=56319&&r>1,s+=ee(s/r);s>Le*S>>1;l+=x)s=ee(s/Le);return ee(l+(Le+1)*s/(s+Q))},bt=function(s){var r=[],h=s.length,l=0,g=V,I=B,w=s.lastIndexOf(K);w<0&&(w=0);for(var N=0;N=128&&xe("not-basic"),r.push(s.charCodeAt(N));for(var U=w>0?w+1:0;U=h&&xe("invalid-input");var j=as(s.charCodeAt(U++));(j>=x||j>ee((f-l)/T))&&xe("overflow"),l+=j*T;var C=M<=I?y:M>=I+S?S:M-I;if(jee(f/H)&&xe("overflow"),T*=H}var L=r.length+1;I=mt(l-A,L,A==0),ee(l/L)>f-g&&xe("overflow"),g+=ee(l/L),l%=L,r.splice(l++,0,g)}return String.fromCodePoint.apply(String,r)},kt=function(s){var r=[];s=pt(s);var h=s.length,l=V,g=0,I=B,w=!0,N=!1,U=void 0;try{for(var A=s[Symbol.iterator](),T;!(w=(T=A.next()).done);w=!0){var M=T.value;M<128&&r.push(Pe(M))}}catch(De){N=!0,U=De}finally{try{!w&&A.return&&A.return()}finally{if(N)throw U}}var j=r.length,C=j;for(j&&r.push(K);C=l&&meee((f-g)/Y)&&xe("overflow"),g+=(H-l)*Y,l=H;var ae=!0,be=!1,he=void 0;try{for(var $e=s[Symbol.iterator](),Nt;!(ae=(Nt=$e.next()).done);ae=!0){var Ot=Nt.value;if(Otf&&xe("overflow"),Ot==l){for(var Ne=g,Oe=x;;Oe+=x){var Ce=Oe<=I?y:Oe>=I+S?S:Oe-I;if(Ne>6|192).toString(16).toUpperCase()+"%"+(s&63|128).toString(16).toUpperCase():r="%"+(s>>12|224).toString(16).toUpperCase()+"%"+(s>>6&63|128).toString(16).toUpperCase()+"%"+(s&63|128).toString(16).toUpperCase(),r}function Ie(i){for(var s="",r=0,h=i.length;r=194&&l<224){if(h-r>=6){var g=parseInt(i.substr(r+4,2),16);s+=String.fromCharCode((l&31)<<6|g&63)}else s+=i.substr(r,6);r+=6}else if(l>=224){if(h-r>=9){var I=parseInt(i.substr(r+4,2),16),w=parseInt(i.substr(r+7,2),16);s+=String.fromCharCode((l&15)<<12|(I&63)<<6|w&63)}else s+=i.substr(r,9);r+=9}else s+=i.substr(r,3),r+=3}return s}function Fe(i,s){function r(h){var l=Ie(h);return l.match(s.UNRESERVED)?l:h}return i.scheme&&(i.scheme=String(i.scheme).replace(s.PCT_ENCODED,r).toLowerCase().replace(s.NOT_SCHEME,"")),i.userinfo!==void 0&&(i.userinfo=String(i.userinfo).replace(s.PCT_ENCODED,r).replace(s.NOT_USERINFO,te).replace(s.PCT_ENCODED,c)),i.host!==void 0&&(i.host=String(i.host).replace(s.PCT_ENCODED,r).toLowerCase().replace(s.NOT_HOST,te).replace(s.PCT_ENCODED,c)),i.path!==void 0&&(i.path=String(i.path).replace(s.PCT_ENCODED,r).replace(i.scheme?s.NOT_PATH:s.NOT_PATH_NOSCHEME,te).replace(s.PCT_ENCODED,c)),i.query!==void 0&&(i.query=String(i.query).replace(s.PCT_ENCODED,r).replace(s.NOT_QUERY,te).replace(s.PCT_ENCODED,c)),i.fragment!==void 0&&(i.fragment=String(i.fragment).replace(s.PCT_ENCODED,r).replace(s.NOT_FRAGMENT,te).replace(s.PCT_ENCODED,c)),i}function Ue(i){return i.replace(/^0*(.*)/,"$1")||"0"}function Me(i,s){var r=i.match(s.IPV4ADDRESS)||[],h=p(r,2),l=h[1];return l?l.split(".").map(Ue).join("."):i}function gt(i,s){var r=i.match(s.IPV6ADDRESS)||[],h=p(r,3),l=h[1],g=h[2];if(l){for(var I=l.toLowerCase().split("::").reverse(),w=p(I,2),N=w[0],U=w[1],A=U?U.split(":").map(Ue):[],T=N.split(":").map(Ue),M=s.IPV4ADDRESS.test(T[T.length-1]),j=M?7:8,C=T.length-j,H=Array(j),L=0;L1){var ye=H.slice(0,re.index),me=H.slice(re.index+re.length);_e=ye.join(":")+"::"+me.join(":")}else _e=H.join(":");return g&&(_e+="%"+g),_e}else return i}var hs=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,fs="".match(/(){0}/)[1]===void 0;function ne(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r={},h=s.iri!==!1?R:b;s.reference==="suffix"&&(i=(s.scheme?s.scheme+":":"")+"//"+i);var l=i.match(hs);if(l){fs?(r.scheme=l[1],r.userinfo=l[3],r.host=l[4],r.port=parseInt(l[5],10),r.path=l[6]||"",r.query=l[7],r.fragment=l[8],isNaN(r.port)&&(r.port=l[5])):(r.scheme=l[1]||void 0,r.userinfo=i.indexOf("@")!==-1?l[3]:void 0,r.host=i.indexOf("//")!==-1?l[4]:void 0,r.port=parseInt(l[5],10),r.path=l[6]||"",r.query=i.indexOf("?")!==-1?l[7]:void 0,r.fragment=i.indexOf("#")!==-1?l[8]:void 0,isNaN(r.port)&&(r.port=i.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?l[4]:void 0)),r.host&&(r.host=gt(Me(r.host,h),h)),r.scheme===void 0&&r.userinfo===void 0&&r.host===void 0&&r.port===void 0&&!r.path&&r.query===void 0?r.reference="same-document":r.scheme===void 0?r.reference="relative":r.fragment===void 0?r.reference="absolute":r.reference="uri",s.reference&&s.reference!=="suffix"&&s.reference!==r.reference&&(r.error=r.error||"URI is not a "+s.reference+" reference.");var g=W[(s.scheme||r.scheme||"").toLowerCase()];if(!s.unicodeSupport&&(!g||!g.unicodeSupport)){if(r.host&&(s.domainHost||g&&g.domainHost))try{r.host=ge.toASCII(r.host.replace(h.PCT_ENCODED,Ie).toLowerCase())}catch(I){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+I}Fe(r,b)}else Fe(r,h);g&&g.parse&&g.parse(r,s)}else r.error=r.error||"URI can not be parsed.";return r}function cs(i,s){var r=s.iri!==!1?R:b,h=[];return i.userinfo!==void 0&&(h.push(i.userinfo),h.push("@")),i.host!==void 0&&h.push(gt(Me(String(i.host),r),r).replace(r.IPV6ADDRESS,function(l,g,I){return"["+g+(I?"%25"+I:"")+"]"})),(typeof i.port=="number"||typeof i.port=="string")&&(h.push(":"),h.push(String(i.port))),h.length?h.join(""):void 0}var It=/^\.\.?\//,vt=/^\/\.(\/|$)/,Et=/^\/\.\.(\/|$)/,os=/^\/?(?:.|\n)*?(?=\/|$)/;function ve(i){for(var s=[];i.length;)if(i.match(It))i=i.replace(It,"");else if(i.match(vt))i=i.replace(vt,"/");else if(i.match(Et))i=i.replace(Et,"/"),s.pop();else if(i==="."||i==="..")i="";else{var r=i.match(os);if(r){var h=r[0];i=i.slice(h.length),s.push(h)}else throw new Error("Unexpected dot segment condition")}return s.join("")}function se(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=s.iri?R:b,h=[],l=W[(s.scheme||i.scheme||"").toLowerCase()];if(l&&l.serialize&&l.serialize(i,s),i.host&&!r.IPV6ADDRESS.test(i.host)){if(s.domainHost||l&&l.domainHost)try{i.host=s.iri?ge.toUnicode(i.host):ge.toASCII(i.host.replace(r.PCT_ENCODED,Ie).toLowerCase())}catch(w){i.error=i.error||"Host's domain name can not be converted to "+(s.iri?"Unicode":"ASCII")+" via punycode: "+w}}Fe(i,r),s.reference!=="suffix"&&i.scheme&&(h.push(i.scheme),h.push(":"));var g=cs(i,s);if(g!==void 0&&(s.reference!=="suffix"&&h.push("//"),h.push(g),i.path&&i.path.charAt(0)!=="/"&&h.push("/")),i.path!==void 0){var I=i.path;!s.absolutePath&&(!l||!l.absolutePath)&&(I=ve(I)),g===void 0&&(I=I.replace(/^\/\//,"/%2F")),h.push(I)}return i.query!==void 0&&(h.push("?"),h.push(i.query)),i.fragment!==void 0&&(h.push("#"),h.push(i.fragment)),h.join("")}function yt(i,s){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},h=arguments[3],l={};return h||(i=ne(se(i,r),r),s=ne(se(s,r),r)),r=r||{},!r.tolerant&&s.scheme?(l.scheme=s.scheme,l.userinfo=s.userinfo,l.host=s.host,l.port=s.port,l.path=ve(s.path||""),l.query=s.query):(s.userinfo!==void 0||s.host!==void 0||s.port!==void 0?(l.userinfo=s.userinfo,l.host=s.host,l.port=s.port,l.path=ve(s.path||""),l.query=s.query):(s.path?(s.path.charAt(0)==="/"?l.path=ve(s.path):((i.userinfo!==void 0||i.host!==void 0||i.port!==void 0)&&!i.path?l.path="/"+s.path:i.path?l.path=i.path.slice(0,i.path.lastIndexOf("/")+1)+s.path:l.path=s.path,l.path=ve(l.path)),l.query=s.query):(l.path=i.path,s.query!==void 0?l.query=s.query:l.query=i.query),l.userinfo=i.userinfo,l.host=i.host,l.port=i.port),l.scheme=i.scheme),l.fragment=s.fragment,l}function us(i,s,r){var h=d({scheme:"null"},r);return se(yt(ne(i,h),ne(s,h),h,!0),h)}function ds(i,s){return typeof i=="string"?i=se(ne(i,s),s):a(i)==="object"&&(i=ne(se(i,s),s)),i}function ps(i,s,r){return typeof i=="string"?i=se(ne(i,r),r):a(i)==="object"&&(i=se(i,r)),typeof s=="string"?s=se(ne(s,r),r):a(s)==="object"&&(s=se(s,r)),i===s}function xs(i,s){return i&&i.toString().replace(!s||!s.iri?b.ESCAPE:R.ESCAPE,te)}function le(i,s){return i&&i.toString().replace(!s||!s.iri?b.PCT_ENCODED:R.PCT_ENCODED,Ie)}var Ae={scheme:"http",domainHost:!0,parse:function(s,r){return s.host||(s.error=s.error||"HTTP URIs must have a host."),s},serialize:function(s,r){var h=String(s.scheme).toLowerCase()==="https";return(s.port===(h?443:80)||s.port==="")&&(s.port=void 0),s.path||(s.path="/"),s}},jt={scheme:"https",domainHost:Ae.domainHost,parse:Ae.parse,serialize:Ae.serialize};function Rt(i){return typeof i.secure=="boolean"?i.secure:String(i.scheme).toLowerCase()==="wss"}var we={scheme:"ws",domainHost:!0,parse:function(s,r){var h=s;return h.secure=Rt(h),h.resourceName=(h.path||"/")+(h.query?"?"+h.query:""),h.path=void 0,h.query=void 0,h},serialize:function(s,r){if((s.port===(Rt(s)?443:80)||s.port==="")&&(s.port=void 0),typeof s.secure=="boolean"&&(s.scheme=s.secure?"wss":"ws",s.secure=void 0),s.resourceName){var h=s.resourceName.split("?"),l=p(h,2),g=l[0],I=l[1];s.path=g&&g!=="/"?g:void 0,s.query=I,s.resourceName=void 0}return s.fragment=void 0,s}},St={scheme:"wss",domainHost:we.domainHost,parse:we.parse,serialize:we.serialize},ms={},At="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ie="[0-9A-Fa-f]",bs=_(_("%[EFef]"+ie+"%"+ie+ie+"%"+ie+ie)+"|"+_("%[89A-Fa-f]"+ie+"%"+ie+ie)+"|"+_("%"+ie+ie)),ks="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",gs="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",Is=e(gs,'[\\"\\\\]'),vs="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Es=new RegExp(At,"g"),Ee=new RegExp(bs,"g"),ys=new RegExp(e("[^]",ks,"[\\.]",'[\\"]',Is),"g"),wt=new RegExp(e("[^]",At,vs),"g"),js=wt;function He(i){var s=Ie(i);return s.match(Es)?s:i}var $t={scheme:"mailto",parse:function(s,r){var h=s,l=h.to=h.path?h.path.split(","):[];if(h.path=void 0,h.query){for(var g=!1,I={},w=h.query.split("&"),N=0,U=w.length;Nv.then(t).catch(n=>setTimeout(()=>{throw n},0))}catch{}}const P=Os,Cs=$s,qe=Ts,Te=Ds,Ls=v=>Te.quad(v._kt_subject,v._kt_predicate,v._kt_object,v._kt_graph),Ft=/^([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\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\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\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}.]*[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\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,Ut=/^([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\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]|%[A-Fa-f0-9]{2}|\\[_~.\-!$&'()*+,;=/?#@%])(([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\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}.:]|%[A-Fa-f0-9]{2}|\\[_~.\-!$&'()*+,;=/?#@%])*([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\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}:]|%[A-Fa-f0-9]{2}|\\[_~.\-!$&'()*+,;=/?#@%]))?$/u,Ps=/^[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\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]([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\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}.]*[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\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,ze=/^([^\0-\x20<>"{}|^`\\]|\\u[A-Fa-f0-9]{4}|\\U[A-Fa-f0-9]{8})*$/,Fs=/^([^\0-\x20<>"{}|^`])*$/,z=/\\u([0-9A-Fa-f]{4})|\\U([0-9A-Fa-f]{8})/g,G=(v,t,n)=>String.fromCodePoint(parseInt(t||n,16)),q=Object.prototype.hasOwnProperty,J=/([A-Za-z][A-Za-z0-9_-]*)?:([A-Za-z_0-9:][A-Za-z0-9_:-]*)(?:\s+|(?=\.?[<[("';,)\]#{}]|\.[\s\0]))/y,Ge=/([^\s#@<[("':_{}][^\s#@<[("':{}]*)?:((?:[^\s#@<[("'.;,{})\]\\](?:[^\s#@<[("';,{})\]\\]*[^\s#@<[("'.;,{})\]\\])?)?)(?:\s+|(?=\.?[<[("';,)\]#{}]|\.[\s\0]))/y,Ve=/([^\s#@<[("':_{}][^\s#@<[("':{}]*)?:((?:(?:[^\s#@<[("'.;,{})\]\\]|\\(?:%[0-9A-Fa-f][0-9A-Fa-f]|[^\s"]))(?:(?:[^\s#@<[("';,{})\]\\]|\\(?:%[0-9A-Fa-f][0-9A-Fa-f]|[^\s"]))*(?:[^\s#@<[("'.;,{})\]\\]|\\(?:%[0-9A-Fa-f][0-9A-Fa-f]|[^\s"])))?)?)(?:\s+|(?=\.?[<[("';,)\]#{}]|\.[\s\0]))/y,pe=/\\(.)/g,Z=/_:(.(?:[^\s:<;,)\]#}]*[^\s:<.;,)\]#}])?)(?:\s+|(?=[<:{,;\])#]))/y,Be=/_:(.(?:[^\s:<;,)\]#}]*[^\s:<.;,)\]#}])?)(?:\s+|(?=\.?[<:{,;\])#])|(?=\.[\s@#<({[}]))/y,$=/<([^\\>]*)>\s*/y,D=/<([^>]*)>\s*/y,fe=/([+-]?(?:[0-9]+(\.[0-9]+)?|(\.[0-9]+))(\.?[eE][+-]?[0-9]+)?)(?:\s+|(?=\.[^eE0-9]|[;,)\]]))/y,ce=/(?:(true|TRUE)|false|FALSE)\s*/y,Ze=/a(?:\s+|(?=[[("'<#]))/y,Ke=/\^\^/y,m=/\s*/y,Xe=/@([A-Za-z]+(?:-[A-Za-z0-9-]+)*)(?:\s+|(?=[.},;\])#]))/y,We=/(?:(@prefix)|[pP][rR][eE][fF][iI][xX])\s*/y,Ye=/([^#:]*):\s*/iy,Je=/(?:(@base)|[bB][aA][sS][eE])\s*/y,Qe=/(?:graph)?\s*<([^\\>]*)>\s*\{\s*/iy,et=/(?:graph)?\s*([^\s#@<[("':_{}][^\s#@<[("':{}]*)?:((?:(?:[^\s#@<[("'.;,{})\]\\]|\\(?:%[0-9A-Fa-f][0-9A-Fa-f]|[^\s"]))(?:(?:[^\s#@<[("';,{})\]\\]|\\(?:%[0-9A-Fa-f][0-9A-Fa-f]|[^\s"]))*(?:[^\s#@<[("'.;,{})\]\\]|\\(?:%[0-9A-Fa-f][0-9A-Fa-f]|[^\s"])))?)?)\s*\{\s*/iy,tt=/(?:graph)?\s*_:(.(?:[^\s:<;,)\]#}]*[^\s:<.;,)\]#}])?)\s*\{\s*/iy,st=/(?:graph)?\s*\[\s*\]\s*\{\s*/iy,it=/(?:graph)?\s*<([^>]*)>\s*\{\s*/iy,rt=/graph(?:\s+|(?=[#<[{]))/iy,k=/(#[^\n]*\n\s*)+/y,F=/^[A-Za-z][A-Za-z0-9.\-+]*:/,_t=/^((([A-Za-z0-9.\-+]*:\/)?\/[^/>]*)?(\/(?:[^/>]*\/)*)?[^>]*)$/,oe=/\[\s*\]\s*/y,je=/\[(?:\s+|(?=[^\]]))/y,Re=/\(\s*/y,at=/\]\s*/y,nt=/\{\s*/y,ue=/\}\s*/y,lt=/\.\s*/y,ht=/[\\"\r\n]/g,ft=/[\\'\r\n]/g,Mt=/"{1,2}$/g,Ht=/'{1,2}$/g,ct=/(\\|""")/g,ot=/(\\|''')/g,Se=(v,t,n,e,_,a)=>{if(t)switch(t){case"t":return" ";case"n":return` +import{c as As,g as ws,b as Pt,s as $s,m as Ds}from"./main-BFf8j2gg.js";import{m as Ts}from"./main-D8DixJoJ.js";function Ns(v,t){for(var n=0;ne[_]})}}}return Object.freeze(Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}))}var ut={exports:{}};/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */(function(v,t){(function(n,e){e(t)})(As,function(n){function e(){for(var i=arguments.length,s=Array(i),r=0;r1){s[0]=s[0].slice(0,-1);for(var h=s.length-1,l=1;l= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Le=x-y,ee=Math.floor,Pe=String.fromCharCode;function xe(i){throw new RangeError(is[i])}function rs(i,s){for(var r=[],h=i.length;h--;)r[h]=s(i[h]);return r}function dt(i,s){var r=i.split("@"),h="";r.length>1&&(h=r[0]+"@",i=r[1]),i=i.replace(ss,".");var l=i.split("."),g=rs(l,s).join(".");return h+g}function pt(i){for(var s=[],r=0,h=i.length;r=55296&&l<=56319&&r>1,s+=ee(s/r);s>Le*S>>1;l+=x)s=ee(s/Le);return ee(l+(Le+1)*s/(s+Q))},bt=function(s){var r=[],h=s.length,l=0,g=V,I=B,w=s.lastIndexOf(K);w<0&&(w=0);for(var N=0;N=128&&xe("not-basic"),r.push(s.charCodeAt(N));for(var U=w>0?w+1:0;U=h&&xe("invalid-input");var j=as(s.charCodeAt(U++));(j>=x||j>ee((f-l)/T))&&xe("overflow"),l+=j*T;var C=M<=I?y:M>=I+S?S:M-I;if(jee(f/H)&&xe("overflow"),T*=H}var L=r.length+1;I=mt(l-A,L,A==0),ee(l/L)>f-g&&xe("overflow"),g+=ee(l/L),l%=L,r.splice(l++,0,g)}return String.fromCodePoint.apply(String,r)},kt=function(s){var r=[];s=pt(s);var h=s.length,l=V,g=0,I=B,w=!0,N=!1,U=void 0;try{for(var A=s[Symbol.iterator](),T;!(w=(T=A.next()).done);w=!0){var M=T.value;M<128&&r.push(Pe(M))}}catch(De){N=!0,U=De}finally{try{!w&&A.return&&A.return()}finally{if(N)throw U}}var j=r.length,C=j;for(j&&r.push(K);C=l&&meee((f-g)/Y)&&xe("overflow"),g+=(H-l)*Y,l=H;var ae=!0,be=!1,he=void 0;try{for(var $e=s[Symbol.iterator](),Nt;!(ae=(Nt=$e.next()).done);ae=!0){var Ot=Nt.value;if(Otf&&xe("overflow"),Ot==l){for(var Ne=g,Oe=x;;Oe+=x){var Ce=Oe<=I?y:Oe>=I+S?S:Oe-I;if(Ne>6|192).toString(16).toUpperCase()+"%"+(s&63|128).toString(16).toUpperCase():r="%"+(s>>12|224).toString(16).toUpperCase()+"%"+(s>>6&63|128).toString(16).toUpperCase()+"%"+(s&63|128).toString(16).toUpperCase(),r}function Ie(i){for(var s="",r=0,h=i.length;r=194&&l<224){if(h-r>=6){var g=parseInt(i.substr(r+4,2),16);s+=String.fromCharCode((l&31)<<6|g&63)}else s+=i.substr(r,6);r+=6}else if(l>=224){if(h-r>=9){var I=parseInt(i.substr(r+4,2),16),w=parseInt(i.substr(r+7,2),16);s+=String.fromCharCode((l&15)<<12|(I&63)<<6|w&63)}else s+=i.substr(r,9);r+=9}else s+=i.substr(r,3),r+=3}return s}function Fe(i,s){function r(h){var l=Ie(h);return l.match(s.UNRESERVED)?l:h}return i.scheme&&(i.scheme=String(i.scheme).replace(s.PCT_ENCODED,r).toLowerCase().replace(s.NOT_SCHEME,"")),i.userinfo!==void 0&&(i.userinfo=String(i.userinfo).replace(s.PCT_ENCODED,r).replace(s.NOT_USERINFO,te).replace(s.PCT_ENCODED,c)),i.host!==void 0&&(i.host=String(i.host).replace(s.PCT_ENCODED,r).toLowerCase().replace(s.NOT_HOST,te).replace(s.PCT_ENCODED,c)),i.path!==void 0&&(i.path=String(i.path).replace(s.PCT_ENCODED,r).replace(i.scheme?s.NOT_PATH:s.NOT_PATH_NOSCHEME,te).replace(s.PCT_ENCODED,c)),i.query!==void 0&&(i.query=String(i.query).replace(s.PCT_ENCODED,r).replace(s.NOT_QUERY,te).replace(s.PCT_ENCODED,c)),i.fragment!==void 0&&(i.fragment=String(i.fragment).replace(s.PCT_ENCODED,r).replace(s.NOT_FRAGMENT,te).replace(s.PCT_ENCODED,c)),i}function Ue(i){return i.replace(/^0*(.*)/,"$1")||"0"}function Me(i,s){var r=i.match(s.IPV4ADDRESS)||[],h=p(r,2),l=h[1];return l?l.split(".").map(Ue).join("."):i}function gt(i,s){var r=i.match(s.IPV6ADDRESS)||[],h=p(r,3),l=h[1],g=h[2];if(l){for(var I=l.toLowerCase().split("::").reverse(),w=p(I,2),N=w[0],U=w[1],A=U?U.split(":").map(Ue):[],T=N.split(":").map(Ue),M=s.IPV4ADDRESS.test(T[T.length-1]),j=M?7:8,C=T.length-j,H=Array(j),L=0;L1){var ye=H.slice(0,re.index),me=H.slice(re.index+re.length);_e=ye.join(":")+"::"+me.join(":")}else _e=H.join(":");return g&&(_e+="%"+g),_e}else return i}var hs=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,fs="".match(/(){0}/)[1]===void 0;function ne(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r={},h=s.iri!==!1?R:b;s.reference==="suffix"&&(i=(s.scheme?s.scheme+":":"")+"//"+i);var l=i.match(hs);if(l){fs?(r.scheme=l[1],r.userinfo=l[3],r.host=l[4],r.port=parseInt(l[5],10),r.path=l[6]||"",r.query=l[7],r.fragment=l[8],isNaN(r.port)&&(r.port=l[5])):(r.scheme=l[1]||void 0,r.userinfo=i.indexOf("@")!==-1?l[3]:void 0,r.host=i.indexOf("//")!==-1?l[4]:void 0,r.port=parseInt(l[5],10),r.path=l[6]||"",r.query=i.indexOf("?")!==-1?l[7]:void 0,r.fragment=i.indexOf("#")!==-1?l[8]:void 0,isNaN(r.port)&&(r.port=i.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?l[4]:void 0)),r.host&&(r.host=gt(Me(r.host,h),h)),r.scheme===void 0&&r.userinfo===void 0&&r.host===void 0&&r.port===void 0&&!r.path&&r.query===void 0?r.reference="same-document":r.scheme===void 0?r.reference="relative":r.fragment===void 0?r.reference="absolute":r.reference="uri",s.reference&&s.reference!=="suffix"&&s.reference!==r.reference&&(r.error=r.error||"URI is not a "+s.reference+" reference.");var g=W[(s.scheme||r.scheme||"").toLowerCase()];if(!s.unicodeSupport&&(!g||!g.unicodeSupport)){if(r.host&&(s.domainHost||g&&g.domainHost))try{r.host=ge.toASCII(r.host.replace(h.PCT_ENCODED,Ie).toLowerCase())}catch(I){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+I}Fe(r,b)}else Fe(r,h);g&&g.parse&&g.parse(r,s)}else r.error=r.error||"URI can not be parsed.";return r}function cs(i,s){var r=s.iri!==!1?R:b,h=[];return i.userinfo!==void 0&&(h.push(i.userinfo),h.push("@")),i.host!==void 0&&h.push(gt(Me(String(i.host),r),r).replace(r.IPV6ADDRESS,function(l,g,I){return"["+g+(I?"%25"+I:"")+"]"})),(typeof i.port=="number"||typeof i.port=="string")&&(h.push(":"),h.push(String(i.port))),h.length?h.join(""):void 0}var It=/^\.\.?\//,vt=/^\/\.(\/|$)/,Et=/^\/\.\.(\/|$)/,os=/^\/?(?:.|\n)*?(?=\/|$)/;function ve(i){for(var s=[];i.length;)if(i.match(It))i=i.replace(It,"");else if(i.match(vt))i=i.replace(vt,"/");else if(i.match(Et))i=i.replace(Et,"/"),s.pop();else if(i==="."||i==="..")i="";else{var r=i.match(os);if(r){var h=r[0];i=i.slice(h.length),s.push(h)}else throw new Error("Unexpected dot segment condition")}return s.join("")}function se(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=s.iri?R:b,h=[],l=W[(s.scheme||i.scheme||"").toLowerCase()];if(l&&l.serialize&&l.serialize(i,s),i.host&&!r.IPV6ADDRESS.test(i.host)){if(s.domainHost||l&&l.domainHost)try{i.host=s.iri?ge.toUnicode(i.host):ge.toASCII(i.host.replace(r.PCT_ENCODED,Ie).toLowerCase())}catch(w){i.error=i.error||"Host's domain name can not be converted to "+(s.iri?"Unicode":"ASCII")+" via punycode: "+w}}Fe(i,r),s.reference!=="suffix"&&i.scheme&&(h.push(i.scheme),h.push(":"));var g=cs(i,s);if(g!==void 0&&(s.reference!=="suffix"&&h.push("//"),h.push(g),i.path&&i.path.charAt(0)!=="/"&&h.push("/")),i.path!==void 0){var I=i.path;!s.absolutePath&&(!l||!l.absolutePath)&&(I=ve(I)),g===void 0&&(I=I.replace(/^\/\//,"/%2F")),h.push(I)}return i.query!==void 0&&(h.push("?"),h.push(i.query)),i.fragment!==void 0&&(h.push("#"),h.push(i.fragment)),h.join("")}function yt(i,s){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},h=arguments[3],l={};return h||(i=ne(se(i,r),r),s=ne(se(s,r),r)),r=r||{},!r.tolerant&&s.scheme?(l.scheme=s.scheme,l.userinfo=s.userinfo,l.host=s.host,l.port=s.port,l.path=ve(s.path||""),l.query=s.query):(s.userinfo!==void 0||s.host!==void 0||s.port!==void 0?(l.userinfo=s.userinfo,l.host=s.host,l.port=s.port,l.path=ve(s.path||""),l.query=s.query):(s.path?(s.path.charAt(0)==="/"?l.path=ve(s.path):((i.userinfo!==void 0||i.host!==void 0||i.port!==void 0)&&!i.path?l.path="/"+s.path:i.path?l.path=i.path.slice(0,i.path.lastIndexOf("/")+1)+s.path:l.path=s.path,l.path=ve(l.path)),l.query=s.query):(l.path=i.path,s.query!==void 0?l.query=s.query:l.query=i.query),l.userinfo=i.userinfo,l.host=i.host,l.port=i.port),l.scheme=i.scheme),l.fragment=s.fragment,l}function us(i,s,r){var h=d({scheme:"null"},r);return se(yt(ne(i,h),ne(s,h),h,!0),h)}function ds(i,s){return typeof i=="string"?i=se(ne(i,s),s):a(i)==="object"&&(i=ne(se(i,s),s)),i}function ps(i,s,r){return typeof i=="string"?i=se(ne(i,r),r):a(i)==="object"&&(i=se(i,r)),typeof s=="string"?s=se(ne(s,r),r):a(s)==="object"&&(s=se(s,r)),i===s}function xs(i,s){return i&&i.toString().replace(!s||!s.iri?b.ESCAPE:R.ESCAPE,te)}function le(i,s){return i&&i.toString().replace(!s||!s.iri?b.PCT_ENCODED:R.PCT_ENCODED,Ie)}var Ae={scheme:"http",domainHost:!0,parse:function(s,r){return s.host||(s.error=s.error||"HTTP URIs must have a host."),s},serialize:function(s,r){var h=String(s.scheme).toLowerCase()==="https";return(s.port===(h?443:80)||s.port==="")&&(s.port=void 0),s.path||(s.path="/"),s}},jt={scheme:"https",domainHost:Ae.domainHost,parse:Ae.parse,serialize:Ae.serialize};function Rt(i){return typeof i.secure=="boolean"?i.secure:String(i.scheme).toLowerCase()==="wss"}var we={scheme:"ws",domainHost:!0,parse:function(s,r){var h=s;return h.secure=Rt(h),h.resourceName=(h.path||"/")+(h.query?"?"+h.query:""),h.path=void 0,h.query=void 0,h},serialize:function(s,r){if((s.port===(Rt(s)?443:80)||s.port==="")&&(s.port=void 0),typeof s.secure=="boolean"&&(s.scheme=s.secure?"wss":"ws",s.secure=void 0),s.resourceName){var h=s.resourceName.split("?"),l=p(h,2),g=l[0],I=l[1];s.path=g&&g!=="/"?g:void 0,s.query=I,s.resourceName=void 0}return s.fragment=void 0,s}},St={scheme:"wss",domainHost:we.domainHost,parse:we.parse,serialize:we.serialize},ms={},At="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ie="[0-9A-Fa-f]",bs=_(_("%[EFef]"+ie+"%"+ie+ie+"%"+ie+ie)+"|"+_("%[89A-Fa-f]"+ie+"%"+ie+ie)+"|"+_("%"+ie+ie)),ks="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",gs="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",Is=e(gs,'[\\"\\\\]'),vs="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Es=new RegExp(At,"g"),Ee=new RegExp(bs,"g"),ys=new RegExp(e("[^]",ks,"[\\.]",'[\\"]',Is),"g"),wt=new RegExp(e("[^]",At,vs),"g"),js=wt;function He(i){var s=Ie(i);return s.match(Es)?s:i}var $t={scheme:"mailto",parse:function(s,r){var h=s,l=h.to=h.path?h.path.split(","):[];if(h.path=void 0,h.query){for(var g=!1,I={},w=h.query.split("&"),N=0,U=w.length;Nv.then(t).catch(n=>setTimeout(()=>{throw n},0))}catch{}}const P=Os,Cs=$s,qe=Ts,Te=Ds,Ls=v=>Te.quad(v._kt_subject,v._kt_predicate,v._kt_object,v._kt_graph),Ft=/^([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\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\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\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}.]*[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\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,Ut=/^([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\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]|%[A-Fa-f0-9]{2}|\\[_~.\-!$&'()*+,;=/?#@%])(([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\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}.:]|%[A-Fa-f0-9]{2}|\\[_~.\-!$&'()*+,;=/?#@%])*([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\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}:]|%[A-Fa-f0-9]{2}|\\[_~.\-!$&'()*+,;=/?#@%]))?$/u,Ps=/^[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\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]([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\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}.]*[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\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,ze=/^([^\0-\x20<>"{}|^`\\]|\\u[A-Fa-f0-9]{4}|\\U[A-Fa-f0-9]{8})*$/,Fs=/^([^\0-\x20<>"{}|^`])*$/,z=/\\u([0-9A-Fa-f]{4})|\\U([0-9A-Fa-f]{8})/g,G=(v,t,n)=>String.fromCodePoint(parseInt(t||n,16)),q=Object.prototype.hasOwnProperty,J=/([A-Za-z][A-Za-z0-9_-]*)?:([A-Za-z_0-9:][A-Za-z0-9_:-]*)(?:\s+|(?=\.?[<[("';,)\]#{}]|\.[\s\0]))/y,Ge=/([^\s#@<[("':_{}][^\s#@<[("':{}]*)?:((?:[^\s#@<[("'.;,{})\]\\](?:[^\s#@<[("';,{})\]\\]*[^\s#@<[("'.;,{})\]\\])?)?)(?:\s+|(?=\.?[<[("';,)\]#{}]|\.[\s\0]))/y,Ve=/([^\s#@<[("':_{}][^\s#@<[("':{}]*)?:((?:(?:[^\s#@<[("'.;,{})\]\\]|\\(?:%[0-9A-Fa-f][0-9A-Fa-f]|[^\s"]))(?:(?:[^\s#@<[("';,{})\]\\]|\\(?:%[0-9A-Fa-f][0-9A-Fa-f]|[^\s"]))*(?:[^\s#@<[("'.;,{})\]\\]|\\(?:%[0-9A-Fa-f][0-9A-Fa-f]|[^\s"])))?)?)(?:\s+|(?=\.?[<[("';,)\]#{}]|\.[\s\0]))/y,pe=/\\(.)/g,Z=/_:(.(?:[^\s:<;,)\]#}]*[^\s:<.;,)\]#}])?)(?:\s+|(?=[<:{,;\])#]))/y,Be=/_:(.(?:[^\s:<;,)\]#}]*[^\s:<.;,)\]#}])?)(?:\s+|(?=\.?[<:{,;\])#])|(?=\.[\s@#<({[}]))/y,$=/<([^\\>]*)>\s*/y,D=/<([^>]*)>\s*/y,fe=/([+-]?(?:[0-9]+(\.[0-9]+)?|(\.[0-9]+))(\.?[eE][+-]?[0-9]+)?)(?:\s+|(?=\.[^eE0-9]|[;,)\]]))/y,ce=/(?:(true|TRUE)|false|FALSE)\s*/y,Ze=/a(?:\s+|(?=[[("'<#]))/y,Ke=/\^\^/y,m=/\s*/y,Xe=/@([A-Za-z]+(?:-[A-Za-z0-9-]+)*)(?:\s+|(?=[.},;\])#]))/y,We=/(?:(@prefix)|[pP][rR][eE][fF][iI][xX])\s*/y,Ye=/([^#:]*):\s*/iy,Je=/(?:(@base)|[bB][aA][sS][eE])\s*/y,Qe=/(?:graph)?\s*<([^\\>]*)>\s*\{\s*/iy,et=/(?:graph)?\s*([^\s#@<[("':_{}][^\s#@<[("':{}]*)?:((?:(?:[^\s#@<[("'.;,{})\]\\]|\\(?:%[0-9A-Fa-f][0-9A-Fa-f]|[^\s"]))(?:(?:[^\s#@<[("';,{})\]\\]|\\(?:%[0-9A-Fa-f][0-9A-Fa-f]|[^\s"]))*(?:[^\s#@<[("'.;,{})\]\\]|\\(?:%[0-9A-Fa-f][0-9A-Fa-f]|[^\s"])))?)?)\s*\{\s*/iy,tt=/(?:graph)?\s*_:(.(?:[^\s:<;,)\]#}]*[^\s:<.;,)\]#}])?)\s*\{\s*/iy,st=/(?:graph)?\s*\[\s*\]\s*\{\s*/iy,it=/(?:graph)?\s*<([^>]*)>\s*\{\s*/iy,rt=/graph(?:\s+|(?=[#<[{]))/iy,k=/(#[^\n]*\n\s*)+/y,F=/^[A-Za-z][A-Za-z0-9.\-+]*:/,_t=/^((([A-Za-z0-9.\-+]*:\/)?\/[^/>]*)?(\/(?:[^/>]*\/)*)?[^>]*)$/,oe=/\[\s*\]\s*/y,je=/\[(?:\s+|(?=[^\]]))/y,Re=/\(\s*/y,at=/\]\s*/y,nt=/\{\s*/y,ue=/\}\s*/y,lt=/\.\s*/y,ht=/[\\"\r\n]/g,ft=/[\\'\r\n]/g,Mt=/"{1,2}$/g,Ht=/'{1,2}$/g,ct=/(\\|""")/g,ot=/(\\|''')/g,Se=(v,t,n,e,_,a)=>{if(t)switch(t){case"t":return" ";case"n":return` `;case"r":return"\r";case"f":return"\f";case"b":return"\b";default:console.assert(`bad regex escape char mapping: '${t}'`)}else{if(n)return n;if(e)return String.fromCodePoint(parseInt(e,16));if(_)return String.fromCodePoint(parseInt(_,16));if(a)throw a[0]==="\\"?new Error(`expected string_literal but invalid escape sequence within contents: '${a}'. failed to parse a valid token`):new Error(`expected string_literal but invalid whitespace character within contents: ${JSON.stringify(a)}. failed to parse a valid token`);console.assert("unexpected no match branch in escape sequence replace callback")}},Us=/(?:\\(?:([tnrfb])|([\\"'])|u([0-9A-Fa-f]{4})|U([0-9A-Fa-f]{8}))|([\r\n]|\\.))/g,qt=/(?:\\(?:([tnrfb])|([\\"'])|u([0-9A-Fa-f]{4})|U([0-9A-Fa-f]{8}))|([\r\n]|\\[^uU]|\\u[^]{4}|\\U[^]{8}))/g,zt=v=>v.replace(Us,Se),Gt=v=>{let t=es.exec(v);if(t){let n=t.index;return[v.slice(0,n).replace(qt,Se),v.slice(n)]}else return[v.replace(qt,Se),""]},Ms=/(?:\\(?:([tnrfb])|([\\"'])|u([0-9A-Fa-f]{4})|U([0-9A-Fa-f]{8}))|(\\.))/g,Vt=/(?:\\(?:([tnrfb])|([\\"'])|u([0-9A-Fa-f]{4})|U([0-9A-Fa-f]{8}))|(\\[^uU]|\\u[^]{4}|\\U[^]{8}))/g,Bt=v=>v.replace(Ms,Se),Zt=v=>{let t=es.exec(v);if(t){let n=t.index;return[v.slice(0,n).replace(Vt,Se),v.slice(n)]}else return[v.replace(Vt,Se),""]},[es,Kt,Xt,Wt,Yt]=(()=>{function v(n){let e=RegExp.prototype.exec.call(this,n);if(e){let _=e[0].length-e[1].length;e.index+=_,e[0]=e[0].slice(_)}return e}let t=(()=>{try{new RegExp("(?(_.exec=a,_)}return n=>n()})();return[t(()=>new RegExp("(?new RegExp('(?new RegExp("(?new RegExp('(?new RegExp("(?(Ge.lastIndex=t,[Ge.exec(v),Ge.lastIndex]),Qt=(v,t)=>(Ve.lastIndex=t,[Ve.exec(v),Ve.lastIndex]);function Hs(v,t,n,e){let _=Math.min(t,Math.abs(t-15)),a=v.s;return v.error(` \`${a.substr(_,_+90).replace(/[\n\t]/g," ")}\` ${" ".repeat(t-_)}^ diff --git a/assets/main-eTk_fASt.js b/assets/main-Dj80NaNp.js similarity index 94% rename from assets/main-eTk_fASt.js rename to assets/main-Dj80NaNp.js index cfe1688..df9ac50 100644 --- a/assets/main-eTk_fASt.js +++ b/assets/main-Dj80NaNp.js @@ -1,3 +1,3 @@ -import{m as p}from"./main-BgiPY9C9.js";import{m as w}from"./main-CGOqhCAx.js";const _=p,d=w,u=/^`\[[^\]]+\](.*)$/,m=new Map([[Date,a=>_.dateTime(a)],[Number,a=>_.number(a)]]);class g extends d{constructor(e={}){super(e);let{lists:t=null}=e,s=m;if(e.coercions){s=new Map(s);for(let[r,n]of e.coercions)s.set(r,n)}let i={first:">http://www.w3.org/1999/02/22-rdf-syntax-ns#first",rest:">http://www.w3.org/1999/02/22-rdf-syntax-ns#rest",nil:">http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"};if(t){let{first:r=null,rest:n=null,nil:l=null}=t;r&&(i.first=r),n&&(i.rest=n),l&&(i.nil=l)}Object.assign(this,{_xc_state:0,_hm_coercions:s,_g_lists:i})}_serialize_comment(e,t){let s="";if(this._xc_state!==2&&(s+=` +import{m as p}from"./main-BFf8j2gg.js";import{m as w}from"./main-WH1QwD4R.js";const _=p,d=w,u=/^`\[[^\]]+\](.*)$/,m=new Map([[Date,a=>_.dateTime(a)],[Number,a=>_.number(a)]]);class g extends d{constructor(e={}){super(e);let{lists:t=null}=e,s=m;if(e.coercions){s=new Map(s);for(let[r,n]of e.coercions)s.set(r,n)}let i={first:">http://www.w3.org/1999/02/22-rdf-syntax-ns#first",rest:">http://www.w3.org/1999/02/22-rdf-syntax-ns#rest",nil:">http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"};if(t){let{first:r=null,rest:n=null,nil:l=null}=t;r&&(i.first=r),n&&(i.rest=n),l&&(i.nil=l)}Object.assign(this,{_xc_state:0,_hm_coercions:s,_g_lists:i})}_serialize_comment(e,t){let s="";if(this._xc_state!==2&&(s+=` `,this._xc_state=2),t&&t.width){let i=t.width,r=[];for(;e.length>i;){let n=e.slice(0,i+1),l=/^(.*[^\s])\s+/.exec(n);if(l){let o=l[1];r.push(o),e=e.slice(o.length).replace(/^\s+/,"")}else r.push(e.slice(0,i)),e=e.slice(i)}e=r.join(` `)}return s+(super._serialize_comment(e)||"")}_transcode_list(e,t=this._g_lists){if(e.length){let s=e[0],i=s;return Array.isArray(s)&&(i=this._transcode_list(s,t)),{[t.first]:i,[t.rest]:e.length===1?t.nil:this._transcode_list(e.slice(1),t)}}else return t.nil}_apply_directive(e,t){let s=u.exec(e);if(!s)throw new Error(`Invalid writable data event directive string: "${e}"`);let i;try{i=JSON.parse(s[1])}catch{throw new Error(`Unable to parse JSON in writable data event directive: "${s[1]}"`)}let r=i.type;switch(r){case"comment":{if(this._serialize_comment)return{write:this._serialize_comment(t+"",i)};break}case"newlines":{if(this._serialize_newlines)return{write:this._serialize_newlines(t)};break}case"config":switch(i.value){case"lists":{let n=this._a_list_serializers;n.push(this._serialize_list_object);let l=this._g_lists,o={first:t.first||l.first,rest:t.rest||l.rest,nil:t.nil||l.nil};return this._serialize_list_object=function(c,h){let f=this._transcode_list(c,o);return this._encode_objects(f,h)},{exit:()=>{this._serialize_list_object=n.pop()}}}default:throw new Error(`No such config key '${i.value}'`)}default:throw new Error(`Invalid writable data event directive type: '${r}'`)}return{}}_serialize_c4(e){let t=this._h_prefixes,s=[],i="";for(let r in e)r!=="*"&&s.push(r),i+=this._serialize_c3(e[r]);if(s.length){let r=`Destination format does not support quads; an implicit union into the default graph was performed on the quads contained in graphs: ${s.map(n=>_.c1(n,t).verbose()).join(", ")}`;this.emit("warning",r)||console.warn(r)}return i}}var z=g;export{z as m}; diff --git a/assets/main-CxslsK_i.js b/assets/main-GqMsSp0-.js similarity index 98% rename from assets/main-CxslsK_i.js rename to assets/main-GqMsSp0-.js index f7f5545..f0ac9a5 100644 --- a/assets/main-CxslsK_i.js +++ b/assets/main-GqMsSp0-.js @@ -1,4 +1,4 @@ -import{g as z,m as O}from"./main-BgiPY9C9.js";import{m as F}from"./main-eTk_fASt.js";function G(x,e){for(var i=0;is[t]})}}}return Object.freeze(Object.defineProperty(x,Symbol.toStringTag,{value:"Module"}))}if(typeof queueMicrotask!="function"){let x=Promise.resolve();try{queueMicrotask=e=>x.then(e).catch(i=>setTimeout(()=>{throw i},0))}catch{}}const p=O,I=F,j=/^([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\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\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\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}.]*[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\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,k=1,T=2,C=4;class E extends I{constructor(e={}){super(e);let{prefixes:i={},lists:s=null,debug:t=!1,style:r=null}=e;Object.assign(this,{_b_debug:t,_s_indent:" ",_b_simplify_default_graph:!1,_xc_directives:0,_s_token_prefix:"@prefix"});let f="";if(r){let _=r.graph_keyword||r.graphKeyword||r["graph-keyword"];if(_)if(_===!0)f="GRAPH ";else{if(typeof _!="string")throw new TypeError(`Invalid argument type given for 'graph' token: ${_}`);if(/^graph$/i.test(_))f=_+" ";else throw new Error(`Graph token must equal case-insensitive "GRAPH"; found: "${_}"`)}let d=r.simplify_default_graph||r.simplifyDefaultGraph||r["simplify-default-graph"];d&&(this._b_simplify_default_graph=!!d),r.indent&&(this._s_indent=r.indent.replace(/[^\s]/g,""));let h=r.directives||r.directives;if(h)switch(h){case"sparql":{this._xc_directives=k,this._s_token_prefix="prefix";break}case"Sparql":{this._xc_directives=k|T,this._s_token_prefix="Prefix";break}case"SPARQL":{this._xc_directives=k|C,this._s_token_prefix="PREFIX";break}case"turtle":break;case"Turtle":{this._xc_directives=T,this._s_token_prefix="@Prefix";break}case"TURTLE":{this._xc_directives=C,this._s_token_prefix="@PREFIX";break}default:throw new Error(`Value not understood for 'directives' option: ${h}`)}}this._s_graph_keyword=f,s&&(this._serialize_list_object=function(_,d){let h=this._transcode_list(_);return this._encode_objects(h,d)});let a=this._s_token_prefix,l=this._xc_directives&k?` +import{g as z,m as O}from"./main-BFf8j2gg.js";import{m as F}from"./main-Dj80NaNp.js";function G(x,e){for(var i=0;is[t]})}}}return Object.freeze(Object.defineProperty(x,Symbol.toStringTag,{value:"Module"}))}if(typeof queueMicrotask!="function"){let x=Promise.resolve();try{queueMicrotask=e=>x.then(e).catch(i=>setTimeout(()=>{throw i},0))}catch{}}const p=O,I=F,j=/^([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\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\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\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}.]*[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\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,k=1,T=2,C=4;class E extends I{constructor(e={}){super(e);let{prefixes:i={},lists:s=null,debug:t=!1,style:r=null}=e;Object.assign(this,{_b_debug:t,_s_indent:" ",_b_simplify_default_graph:!1,_xc_directives:0,_s_token_prefix:"@prefix"});let f="";if(r){let _=r.graph_keyword||r.graphKeyword||r["graph-keyword"];if(_)if(_===!0)f="GRAPH ";else{if(typeof _!="string")throw new TypeError(`Invalid argument type given for 'graph' token: ${_}`);if(/^graph$/i.test(_))f=_+" ";else throw new Error(`Graph token must equal case-insensitive "GRAPH"; found: "${_}"`)}let d=r.simplify_default_graph||r.simplifyDefaultGraph||r["simplify-default-graph"];d&&(this._b_simplify_default_graph=!!d),r.indent&&(this._s_indent=r.indent.replace(/[^\s]/g,""));let h=r.directives||r.directives;if(h)switch(h){case"sparql":{this._xc_directives=k,this._s_token_prefix="prefix";break}case"Sparql":{this._xc_directives=k|T,this._s_token_prefix="Prefix";break}case"SPARQL":{this._xc_directives=k|C,this._s_token_prefix="PREFIX";break}case"turtle":break;case"Turtle":{this._xc_directives=T,this._s_token_prefix="@Prefix";break}case"TURTLE":{this._xc_directives=C,this._s_token_prefix="@PREFIX";break}default:throw new Error(`Value not understood for 'directives' option: ${h}`)}}this._s_graph_keyword=f,s&&(this._serialize_list_object=function(_,d){let h=this._transcode_list(_);return this._encode_objects(h,d)});let a=this._s_token_prefix,l=this._xc_directives&k?` `:` . `,n="";try{for(let _ in i){if(!j.test(_))throw new Error(`Invlalid prefix id for application/trig RDF serialization format: '${_}'`);n+=`${a} ${_}: ${p.namedNode(i[_]).verbose()}${l}`}}catch(_){queueMicrotask(()=>{this.emit("error",_)})}n&&this.push(n)}_serialize_prefixes(e){let i=this._xc_state===2?` diff --git a/assets/main-CGOqhCAx.js b/assets/main-WH1QwD4R.js similarity index 96% rename from assets/main-CGOqhCAx.js rename to assets/main-WH1QwD4R.js index 1748708..2f67f2f 100644 --- a/assets/main-CGOqhCAx.js +++ b/assets/main-WH1QwD4R.js @@ -1,4 +1,4 @@ -import{m as o}from"./main-BgiPY9C9.js";import{m as f}from"./main-BDGbRj7V.js";if(typeof queueMicrotask!="function"){let a=Promise.resolve();try{queueMicrotask=e=>a.then(e).catch(r=>setTimeout(()=>{throw r},0))}catch{}}const h=o,_=f,p=32768;class n extends _.Transform{static _flush_buffer(e){e._s_push&&(e.push(e._s_push),e._s_push="")}constructor(e={}){super({writableObjectMode:!0,readableObjectMode:!1});let{prefixes:r={}}=e;this._s_push="",this._n_max_buffer=e.max_buffer||e.maxBuffer||p,this._h_prefixes=h.cache_prefixes(r||{}),this.on("pipe",t=>{t.on("prefix",(i,s)=>{this.write({type:"prefixes",value:{[i]:s}})}),t.on("comment",i=>{this.write({type:"comment",value:i})})}),e.close&&this.once("close",e.close),e.drain&&this.on("drain",e.drain),e.error&&this.on("error",e.error),e.finish&&this.once("finish",e.finish),e.data&&this.on("data",e.data),e.end&&this.once("end",e.end),e.warning&&this.on("warning",e.warning)}_serialize_hash_comment(e){return"# "+e.replace(/\n/g,` +import{m as o}from"./main-BFf8j2gg.js";import{m as f}from"./main-D8DixJoJ.js";if(typeof queueMicrotask!="function"){let a=Promise.resolve();try{queueMicrotask=e=>a.then(e).catch(r=>setTimeout(()=>{throw r},0))}catch{}}const h=o,_=f,p=32768;class n extends _.Transform{static _flush_buffer(e){e._s_push&&(e.push(e._s_push),e._s_push="")}constructor(e={}){super({writableObjectMode:!0,readableObjectMode:!1});let{prefixes:r={}}=e;this._s_push="",this._n_max_buffer=e.max_buffer||e.maxBuffer||p,this._h_prefixes=h.cache_prefixes(r||{}),this.on("pipe",t=>{t.on("prefix",(i,s)=>{this.write({type:"prefixes",value:{[i]:s}})}),t.on("comment",i=>{this.write({type:"comment",value:i})})}),e.close&&this.once("close",e.close),e.drain&&this.on("drain",e.drain),e.error&&this.on("error",e.error),e.finish&&this.once("finish",e.finish),e.data&&this.on("data",e.data),e.end&&this.once("end",e.end),e.warning&&this.on("warning",e.warning)}_serialize_hash_comment(e){return"# "+e.replace(/\n/g,` # `)+` `}_serialize_newlines(e=1){return` `.repeat(e)}_serialize_c4r(e){let r=this._h_prefixes,t=[],i="";for(let s in e)s!=="*"&&t.push(s),i+=this._serialize_c3r(e[s]);if(t.length){let s=`Destination format does not support quads; an implicit union into the default graph was performed on the quads contained in graphs: ${t.map(u=>h.c1(u,r).verbose()).join(", ")}`;this.emit("warning",s)||console.warn(s)}return i}_serialize_c3(){throw new Error(`Write event type 'c3' not supported by ${this.constructor.name}`)}_serialize_c4(){throw new Error(`Write event type 'c4' not supported by ${this.constructor.name}`)}_serialize_c3r(){throw new Error(`Write event type 'c3r' should have been implemented by subclass ${this.constructor.name}`)}_serialize_quad(){throw new Error(`Write event type 'quad' should have been implemented by subclass ${this.constructor.name}`)}_serialize_comment(){}_update_prefixes(e,r=!1){let t={...this._h_prefixes,...e};this._h_prefixes=h.cachePrefixes(t||{},r)}_transform(e,r,t){let i;try{i=this.serialize(e)}catch(s){return t(s),s}if(i)n._flush_buffer(this),this.push(i);else{let s=this._s_push.length;s>this._n_max_buffer?n._flush_buffer(this):s&&queueMicrotask(()=>n._flush_buffer(this))}t()}_queue(e){this._s_push+=e,this._s_push.length>this._n_max_buffer?n._flush_buffer(this):queueMicrotask(()=>n._flush_buffer(this))}serialize(e){switch(e.type){case void 0:return this._serialize_quad(e);case"c3r":return this._serialize_c3r(e.value);case"c4r":return this._serialize_c4r(e.value);case"array":{let r="";for(let t of e.value){let i=this.serialize(t);i?r+=i:this._s_push&&(r+=this._s_push,this._s_push="")}return r}case"quad":return this._serialize_quad(e.value);case"c3":return this._serialize_c3(e.value);case"c4":return this._serialize_c4(e.value);case"prefixes":return this._serialize_prefixes(e.value);case"comment":return this._serialize_comment(e.value);case"newline":case"newlines":return this._serialize_newlines(e.value);default:throw new Error(`no such writable data event type for RDF stream: '${e.type}'`)}}rinse(){this._reset(),n._flush_buffer(this)}_flush(){n._flush_buffer(this),this.push(null)}}Object.assign(n.prototype,{isGraphyWritable:!0,_serialize_prefixes:n.prototype._update_prefixes});var c=n;export{c as m}; diff --git a/assets/stream-C_f__s1m.js b/assets/stream-DrVE15ld.js similarity index 83% rename from assets/stream-C_f__s1m.js rename to assets/stream-DrVE15ld.js index e5700f9..5d2b2fc 100644 --- a/assets/stream-C_f__s1m.js +++ b/assets/stream-DrVE15ld.js @@ -1 +1 @@ -import{p as a,b as n,g as o,r}from"./main-BgiPY9C9.js";var i=u;const c=r;class d extends c.Readable{constructor(t,s){super(),this._str=t,this._encoding=s||"utf8"}_read(){this.ended||(a.nextTick(()=>{this.push(n.Buffer.from(this._str,this._encoding)),this.push(null)}),this.ended=!0)}}function u(e,t){return new d(e,t)}const f=o(i),m=f,p=r.Readable;export{p as Readable,m as toStream}; +import{p as a,b as n,g as o,r}from"./main-BFf8j2gg.js";var i=u;const c=r;class d extends c.Readable{constructor(t,s){super(),this._str=t,this._encoding=s||"utf8"}_read(){this.ended||(a.nextTick(()=>{this.push(n.Buffer.from(this._str,this._encoding)),this.push(null)}),this.ended=!0)}}function u(e,t){return new d(e,t)}const f=o(i),m=f,p=r.Readable;export{p as Readable,m as toStream}; diff --git a/index.html b/index.html index 93a42c1..65fb1d0 100644 --- a/index.html +++ b/index.html @@ -10,7 +10,7 @@ Zazuko RDF Sketch - + diff --git a/service-worker.js b/service-worker.js index d0eda78..252e020 100644 --- a/service-worker.js +++ b/service-worker.js @@ -1 +1 @@ -if(!self.define){let s,e={};const i=(i,n)=>(i=new URL(i+".js",n).href,e[i]||new Promise((e=>{if("document"in self){const s=document.createElement("script");s.src=i,s.onload=e,document.head.appendChild(s)}else s=i,importScripts(i),e()})).then((()=>{let s=e[i];if(!s)throw new Error(`Module ${i} didn’t register its module`);return s})));self.define=(n,r)=>{const l=s||("document"in self?document.currentScript.src:"")||location.href;if(e[l])return;let o={};const a=s=>i(s,l),u={module:{uri:l},exports:o,require:a};e[l]=Promise.all(n.map((s=>u[s]||a(s)))).then((s=>(r(...s),o)))}}define(["./workbox-5ffe50d4"],(function(s){"use strict";self.skipWaiting(),s.clientsClaim(),s.precacheAndRoute([{url:"apple-touch-icon.png",revision:"45a9d073e13dc6da956715f9e81ed6fc"},{url:"assets/CustomJsonLdSerializer-WUB4X4eN.js",revision:null},{url:"assets/CustomRdfXmlParser-jEPeRMqO.js",revision:null},{url:"assets/index-D_aAaXze.js",revision:null},{url:"assets/index-fs3sy2sF.js",revision:null},{url:"assets/main-_2tfKWhP.css",revision:null},{url:"assets/main-BDGbRj7V.js",revision:null},{url:"assets/main-BgiPY9C9.js",revision:null},{url:"assets/main-BPEm6UCI.js",revision:null},{url:"assets/main-BswWzHG7.js",revision:null},{url:"assets/main-CGOqhCAx.js",revision:null},{url:"assets/main-Crpq21kw.js",revision:null},{url:"assets/main-CxslsK_i.js",revision:null},{url:"assets/main-D8J4Fi79.js",revision:null},{url:"assets/main-eTk_fASt.js",revision:null},{url:"assets/primeicons-C6QP2o4f.woff2",revision:null},{url:"assets/primeicons-Dr5RGzOO.svg",revision:null},{url:"assets/primeicons-WjwUDZjB.woff",revision:null},{url:"assets/stream-C_f__s1m.js",revision:null},{url:"favicon-96x96.png",revision:"275ecb711d5bfd9651ebfd68fac51322"},{url:"favicon.ico",revision:"873abf72f4f693cf67266d7caf42f2a6"},{url:"favicon.svg",revision:"f06571cc81d76ad5f8e281def81a4549"},{url:"img/icons/zazuko_icon.svg",revision:"049394536d76b8e49af24ecc352f1996"},{url:"index.html",revision:"e7d3898d523fd537f0626c5a8f2099c0"},{url:"manifest.webmanifest",revision:"8a9fe5d65c729a2210be1dfc77392944"},{url:"registerSW.js",revision:"38013143dc2183340ede8bc1c5124507"},{url:"site.webmanifest",revision:"881827f24d54a9791bca578c6dbaba49"},{url:"web-app-manifest-192x192.png",revision:"5e22dba4727f0d17032d5dbbc20623db"},{url:"web-app-manifest-512x512.png",revision:"cfdf277a5514f2744218fb81ca27266c"},{url:"manifest.webmanifest",revision:"8a9fe5d65c729a2210be1dfc77392944"}],{}),s.cleanupOutdatedCaches(),s.registerRoute(new s.NavigationRoute(s.createHandlerBoundToURL("index.html")))})); +if(!self.define){let s,e={};const i=(i,n)=>(i=new URL(i+".js",n).href,e[i]||new Promise((e=>{if("document"in self){const s=document.createElement("script");s.src=i,s.onload=e,document.head.appendChild(s)}else s=i,importScripts(i),e()})).then((()=>{let s=e[i];if(!s)throw new Error(`Module ${i} didn’t register its module`);return s})));self.define=(n,r)=>{const l=s||("document"in self?document.currentScript.src:"")||location.href;if(e[l])return;let o={};const a=s=>i(s,l),u={module:{uri:l},exports:o,require:a};e[l]=Promise.all(n.map((s=>u[s]||a(s)))).then((s=>(r(...s),o)))}}define(["./workbox-5ffe50d4"],(function(s){"use strict";self.skipWaiting(),s.clientsClaim(),s.precacheAndRoute([{url:"apple-touch-icon.png",revision:"45a9d073e13dc6da956715f9e81ed6fc"},{url:"assets/CustomJsonLdSerializer-D8N1qWIh.js",revision:null},{url:"assets/CustomRdfXmlParser-D5friA1M.js",revision:null},{url:"assets/index-BMzMoN0b.js",revision:null},{url:"assets/index-DMn3ABzq.js",revision:null},{url:"assets/main-_2tfKWhP.css",revision:null},{url:"assets/main-Bbig3v3v.js",revision:null},{url:"assets/main-BFf8j2gg.js",revision:null},{url:"assets/main-C0Hzf2I6.js",revision:null},{url:"assets/main-CvyrvPY3.js",revision:null},{url:"assets/main-D8DixJoJ.js",revision:null},{url:"assets/main-DBX7HHCf.js",revision:null},{url:"assets/main-Dj80NaNp.js",revision:null},{url:"assets/main-GqMsSp0-.js",revision:null},{url:"assets/main-WH1QwD4R.js",revision:null},{url:"assets/primeicons-C6QP2o4f.woff2",revision:null},{url:"assets/primeicons-Dr5RGzOO.svg",revision:null},{url:"assets/primeicons-WjwUDZjB.woff",revision:null},{url:"assets/stream-DrVE15ld.js",revision:null},{url:"favicon-96x96.png",revision:"275ecb711d5bfd9651ebfd68fac51322"},{url:"favicon.ico",revision:"873abf72f4f693cf67266d7caf42f2a6"},{url:"favicon.svg",revision:"f06571cc81d76ad5f8e281def81a4549"},{url:"img/icons/zazuko_icon.svg",revision:"049394536d76b8e49af24ecc352f1996"},{url:"index.html",revision:"12325dc64917ce8ca60ec7446ea1aa4c"},{url:"manifest.webmanifest",revision:"8a9fe5d65c729a2210be1dfc77392944"},{url:"registerSW.js",revision:"38013143dc2183340ede8bc1c5124507"},{url:"site.webmanifest",revision:"881827f24d54a9791bca578c6dbaba49"},{url:"web-app-manifest-192x192.png",revision:"5e22dba4727f0d17032d5dbbc20623db"},{url:"web-app-manifest-512x512.png",revision:"cfdf277a5514f2744218fb81ca27266c"},{url:"manifest.webmanifest",revision:"8a9fe5d65c729a2210be1dfc77392944"}],{}),s.cleanupOutdatedCaches(),s.registerRoute(new s.NavigationRoute(s.createHandlerBoundToURL("index.html")))}));